@genesislcap/foundation-rapid-cdn 15.111.0 → 15.111.1

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.
@@ -18,7 +18,7 @@ function M(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPrope
18
18
  * tabbable 5.3.3
19
19
  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
20
20
  */
21
- var pi=[`input`,`select`,`textarea`,`a[href]`,`button`,`[tabindex]:not(slot)`,`audio[controls]`,`video[controls]`,`[contenteditable]:not([contenteditable="false"])`,`details>summary:first-of-type`,`details`],mi=/* #__PURE__ */ pi.join(`,`),hi=typeof Element>`u`,gi=hi?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,_i=!hi&&Element.prototype.getRootNode?function(e){return e.getRootNode()}:function(e){return e.ownerDocument},vi=function(e,t){return e.tabIndex<0&&(t||/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||e.isContentEditable)&&isNaN(parseInt(e.getAttribute(`tabindex`),10))?0:e.tabIndex},yi=function(e){return e.tagName===`INPUT`},bi=function(e){return yi(e)&&e.type===`hidden`},xi=function(e){return e.tagName===`DETAILS`&&Array.prototype.slice.apply(e.children).some(function(e){return e.tagName===`SUMMARY`})},Si=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]},Ci=function(e){if(!e.name)return!0;var t=e.form||_i(e),n=function(e){return t.querySelectorAll(`input[type="radio"][name="`+e+`"]`)},r;if(typeof window<`u`&&window.CSS!==void 0&&typeof window.CSS.escape==`function`)r=n(window.CSS.escape(e.name));else try{r=n(e.name)}catch(e){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`,e.message),!1}var i=Si(r,e.form);return!i||i===e},wi=function(e){return yi(e)&&e.type===`radio`},Ti=function(e){return wi(e)&&!Ci(e)},Ei=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return n===0&&r===0},Di=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if(getComputedStyle(e).visibility===`hidden`)return!0;var i=gi.call(e,`details>summary:first-of-type`)?e.parentElement:e;if(gi.call(i,`details:not([open]) *`))return!0;var a=_i(e).host,o=a?.ownerDocument.contains(a)||e.ownerDocument.contains(e);if(!n||n===`full`){if(typeof r==`function`){for(var s=e;e;){var c=e.parentElement,l=_i(e);if(c&&!c.shadowRoot&&r(c)===!0)return Ei(e);e=e.assignedSlot?e.assignedSlot:!c&&l!==e.ownerDocument?l.host:c}e=s}if(o)return!e.getClientRects().length}else if(n===`non-zero-area`)return Ei(e);return!1},Oi=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName===`FIELDSET`&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if(r.tagName===`LEGEND`)return gi.call(t,`fieldset[disabled] *`)?!0:!r.contains(e)}return!0}t=t.parentElement}return!1},ki=function(e,t){return!(t.disabled||bi(t)||Di(t,e)||xi(t)||Oi(t))},Ai=function(e,t){return!(Ti(t)||vi(t)<0||!ki(e,t))},ji=function(e,t){if(t=t||{},!e)throw Error(`No node provided`);return gi.call(e,mi)!==!1&&Ai(t,e)},Mi=/* #__PURE__ */ pi.concat(`iframe`).join(`,`),Ni=function(e,t){if(t=t||{},!e)throw Error(`No node provided`);return gi.call(e,Mi)!==!1&&ki(t,e)},Pi=class e extends P{constructor(){super(...arguments),this.modal=!0,this.hidden=!1,this.trapFocus=!0,this.trapFocusChanged=()=>{this.$fastController.isConnected&&this.updateTrapFocus()},this.isTrappingFocus=!1,this.handleDocumentKeydown=e=>{if(!e.defaultPrevented&&!this.hidden)switch(e.key){case jn:this.dismiss(),e.preventDefault();break;case`Tab`:this.handleTabKeyDown(e)}},this.handleDocumentFocus=e=>{!e.defaultPrevented&&this.shouldForceFocus(e.target)&&(this.focusFirstElement(),e.preventDefault())},this.handleTabKeyDown=e=>{if(!this.trapFocus||this.hidden)return;let t=this.getTabQueueBounds();if(t.length!==0){if(t.length===1){t[0].focus(),e.preventDefault();return}e.shiftKey&&e.target===t[0]?(t[t.length-1].focus(),e.preventDefault()):!e.shiftKey&&e.target===t[t.length-1]&&(t[0].focus(),e.preventDefault())}},this.getTabQueueBounds=()=>e.reduceTabbableItems([],this),this.focusFirstElement=()=>{let e=this.getTabQueueBounds();e.length>0?e[0].focus():this.dialog instanceof HTMLElement&&this.dialog.focus()},this.shouldForceFocus=e=>this.isTrappingFocus&&!this.contains(e),this.shouldTrapFocus=()=>this.trapFocus&&!this.hidden,this.updateTrapFocus=e=>{let t=e===void 0?this.shouldTrapFocus():e;t&&!this.isTrappingFocus?(this.isTrappingFocus=!0,document.addEventListener(`focusin`,this.handleDocumentFocus),x.queueUpdate(()=>{this.shouldForceFocus(document.activeElement)&&this.focusFirstElement()})):!t&&this.isTrappingFocus&&(this.isTrappingFocus=!1,document.removeEventListener(`focusin`,this.handleDocumentFocus))}}dismiss(){this.$emit(`dismiss`),this.$emit(`cancel`)}show(){this.hidden=!1}hide(){this.hidden=!0,this.$emit(`close`)}connectedCallback(){super.connectedCallback(),document.addEventListener(`keydown`,this.handleDocumentKeydown),this.notifier=S.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(e,t){t===`hidden`&&this.updateTrapFocus()}static reduceTabbableItems(t,n){return n.getAttribute(`tabindex`)===`-1`?t:ji(n)||e.isFocusableFastElement(n)&&e.hasTabbableShadow(n)?(t.push(n),t):n.childElementCount?t.concat(Array.from(n.children).reduce(e.reduceTabbableItems,[])):t}static isFocusableFastElement(e){return!!e.$fastController?.definition.shadowOptions?.delegatesFocus}static hasTabbableShadow(e){return Array.from(e.shadowRoot?.querySelectorAll(`*`)??[]).some(e=>ji(e))}};M([D({mode:`boolean`})],Pi.prototype,`modal`,void 0),M([D({mode:`boolean`})],Pi.prototype,`hidden`,void 0),M([D({attribute:`trap-focus`,mode:`boolean`})],Pi.prototype,`trapFocus`,void 0),M([D({attribute:`aria-describedby`})],Pi.prototype,`ariaDescribedby`,void 0),M([D({attribute:`aria-labelledby`})],Pi.prototype,`ariaLabelledby`,void 0),M([D({attribute:`aria-label`})],Pi.prototype,`ariaLabel`,void 0);let Fi=new MutationObserver(e=>{for(let t of e)Ii.getOrCreateFor(t.target).notify(t.attributeName)});var Ii=class e extends te{constructor(t){super(t),this.watchedAttributes=/* @__PURE__ */ new Set,e.subscriberCache.set(t,this)}subscribe(e){super.subscribe(e),this.watchedAttributes.has(e.attributes)||(this.watchedAttributes.add(e.attributes),this.observe())}unsubscribe(e){super.unsubscribe(e),this.watchedAttributes.has(e.attributes)&&(this.watchedAttributes.delete(e.attributes),this.observe())}static getOrCreateFor(t){return this.subscriberCache.get(t)||new e(t)}observe(){let e=[];for(let t of this.watchedAttributes.values())for(let n=0;n<t.length;n++)e.push(t[n]);Fi.observe(this.source,{attributeFilter:e})}};Ii.subscriberCache=/* @__PURE__ */ new WeakMap;let Li=(e,t)=>T`<details class="disclosure" ${k(`details`)}><summary class="invoker" role="button" aria-controls="disclosure-content" aria-expanded="${e=>e.expanded}"><slot name="start"></slot><slot name="title">${e=>e.title}</slot><slot name="end"></slot></summary><div id="disclosure-content"><slot></slot></div></details>`;var Ri=class extends P{connectedCallback(){super.connectedCallback(),this.setup()}disconnectedCallback(){super.disconnectedCallback(),this.details.removeEventListener(`toggle`,this.onToggle)}show(){this.details.open=!0}hide(){this.details.open=!1}toggle(){this.details.open=!this.details.open}setup(){this.onToggle=this.onToggle.bind(this),this.details.addEventListener(`toggle`,this.onToggle),this.expanded&&this.show()}onToggle(){this.expanded=this.details.open,this.$emit(`toggle`)}};M([D({mode:`boolean`})],Ri.prototype,`expanded`,void 0),M([D],Ri.prototype,`title`,void 0);let zi=(e,t)=>T`<template role="${e=>e.role}" aria-orientation="${e=>e.orientation}"></template>`,ite={separator:`separator`,presentation:`presentation`};var Bi=class extends P{constructor(){super(...arguments),this.role=ite.separator,this.orientation=un.horizontal}};M([D],Bi.prototype,`role`,void 0),M([D],Bi.prototype,`orientation`,void 0);let Vi={next:`next`,previous:`previous`},Hi=(e,t)=>T`<template role="button" aria-disabled="${e=>e.disabled?!0:void 0}" tabindex="${e=>e.hiddenFromAT?-1:0}" class="${e=>e.direction} ${e=>e.disabled?`disabled`:``}" @keyup="${(e,t)=>e.keyupHandler(t.event)}">${A(e=>e.direction===Vi.next,T`<span part="next" class="next"><slot name="next">${t.next||``}</slot></span>`)} ${A(e=>e.direction===Vi.previous,T`<span part="previous" class="previous"><slot name="previous">${t.previous||``}</slot></span>`)}</template>`;var Ui=class extends P{constructor(){super(...arguments),this.hiddenFromAT=!0,this.direction=Vi.next}keyupHandler(e){if(!this.hiddenFromAT){let t=e.key;(t===`Enter`||t===`Space`)&&this.$emit(`click`,e),t===`Escape`&&this.blur()}}};M([D({mode:`boolean`})],Ui.prototype,`disabled`,void 0),M([D({attribute:`aria-hidden`,converter:Ue})],Ui.prototype,`hiddenFromAT`,void 0),M([D],Ui.prototype,`direction`,void 0);let Wi=(e,t)=>T`<template aria-checked="${e=>e.ariaChecked}" aria-disabled="${e=>e.ariaDisabled}" aria-posinset="${e=>e.ariaPosInSet}" aria-selected="${e=>e.ariaSelected}" aria-setsize="${e=>e.ariaSetSize}" class="${e=>[e.checked&&`checked`,e.selected&&`selected`,e.disabled&&`disabled`].filter(Boolean).join(` `)}" role="option">${wt(e,t)}<span class="content" part="content"><slot ${bt(`content`)}></slot></span>${Ct(e,t)}</template>`;var Gi=class extends Rr{constructor(){super(...arguments),this.activeIndex=-1,this.rangeStartIndex=-1}get activeOption(){return this.options[this.activeIndex]}get checkedOptions(){return this.options?.filter(e=>e.checked)}get firstSelectedOptionIndex(){return this.options.indexOf(this.firstSelectedOption)}activeIndexChanged(e,t){this.ariaActiveDescendant=this.options[t]?.id??``,this.focusAndScrollOptionIntoView()}checkActiveIndex(){if(!this.multiple)return;let e=this.activeOption;e&&(e.checked=!0)}checkFirstOption(e=!1){e?(this.rangeStartIndex===-1&&(this.rangeStartIndex=this.activeIndex+1),this.options.forEach((e,t)=>{e.checked=In(t,this.rangeStartIndex)})):this.uncheckAllOptions(),this.activeIndex=0,this.checkActiveIndex()}checkLastOption(e=!1){e?(this.rangeStartIndex===-1&&(this.rangeStartIndex=this.activeIndex),this.options.forEach((e,t)=>{e.checked=In(t,this.rangeStartIndex,this.options.length)})):this.uncheckAllOptions(),this.activeIndex=this.options.length-1,this.checkActiveIndex()}connectedCallback(){super.connectedCallback(),this.addEventListener(`focusout`,this.focusoutHandler)}disconnectedCallback(){this.removeEventListener(`focusout`,this.focusoutHandler),super.disconnectedCallback()}checkNextOption(e=!1){e?(this.rangeStartIndex===-1&&(this.rangeStartIndex=this.activeIndex),this.options.forEach((e,t)=>{e.checked=In(t,this.rangeStartIndex,this.activeIndex+1)})):this.uncheckAllOptions(),this.activeIndex+=+(this.activeIndex<this.options.length-1),this.checkActiveIndex()}checkPreviousOption(e=!1){e?(this.rangeStartIndex===-1&&(this.rangeStartIndex=this.activeIndex),this.checkedOptions.length===1&&(this.rangeStartIndex+=1),this.options.forEach((e,t)=>{e.checked=In(t,this.activeIndex,this.rangeStartIndex)})):this.uncheckAllOptions(),this.activeIndex-=+(this.activeIndex>0),this.checkActiveIndex()}clickHandler(e){if(!this.multiple)return super.clickHandler(e);let t=e.target?.closest(`[role=option]`);if(t&&!t.disabled)return this.uncheckAllOptions(),this.activeIndex=this.options.indexOf(t),this.checkActiveIndex(),this.toggleSelectedForAllCheckedOptions(),!0}focusAndScrollOptionIntoView(){super.focusAndScrollOptionIntoView(this.activeOption)}focusinHandler(e){if(!this.multiple)return super.focusinHandler(e);!this.shouldSkipFocus&&e.target===e.currentTarget&&(this.uncheckAllOptions(),this.activeIndex===-1&&(this.activeIndex=this.firstSelectedOptionIndex===-1?0:this.firstSelectedOptionIndex),this.checkActiveIndex(),this.setSelectedOptions(),this.focusAndScrollOptionIntoView()),this.shouldSkipFocus=!1}focusoutHandler(e){this.multiple&&this.uncheckAllOptions()}keydownHandler(e){if(!this.multiple)return super.keydownHandler(e);if(this.disabled)return!0;let{key:t,shiftKey:n}=e;switch(this.shouldSkipFocus=!1,t){case Mn:this.checkFirstOption(n);return;case En:this.checkNextOption(n);return;case kn:this.checkPreviousOption(n);return;case`End`:this.checkLastOption(n);return;case`Tab`:return this.focusAndScrollOptionIntoView(),!0;case jn:return this.uncheckAllOptions(),this.checkActiveIndex(),!0;case` `:if(e.preventDefault(),this.typeAheadExpired){this.toggleSelectedForAllCheckedOptions();return}default:return t.length===1&&this.handleTypeAhead(`${t}`),!0}}mousedownHandler(e){if(e.offsetX>=0&&e.offsetX<=this.scrollWidth)return super.mousedownHandler(e)}multipleChanged(e,t){var n;this.ariaMultiSelectable=t?`true`:null,(n=this.options)==null||n.forEach(e=>{e.checked=!t&&void 0}),this.setSelectedOptions()}setSelectedOptions(){if(!this.multiple){super.setSelectedOptions();return}this.$fastController.isConnected&&this.options&&(this.selectedOptions=this.options.filter(e=>e.selected),this.focusAndScrollOptionIntoView())}sizeChanged(e,t){let n=Math.max(0,parseInt(t?.toFixed()??``,10));n!==t&&x.queueUpdate(()=>{this.size=n})}toggleSelectedForAllCheckedOptions(){let e=this.checkedOptions.filter(e=>!e.disabled),t=!e.every(e=>e.selected);e.forEach(e=>e.selected=t),this.selectedIndex=this.options.indexOf(e[e.length-1]),this.setSelectedOptions()}typeaheadBufferChanged(e,t){if(!this.multiple){super.typeaheadBufferChanged(e,t);return}if(this.$fastController.isConnected){let e=this.getTypeaheadMatches(),t=this.options.indexOf(e[0]);t>-1&&(this.activeIndex=t,this.uncheckAllOptions(),this.checkActiveIndex()),this.typeAheadExpired=!1}}uncheckAllOptions(e=!1){this.options.forEach(e=>e.checked=!this.multiple&&void 0),e||(this.rangeStartIndex=-1)}};M([C],Gi.prototype,`activeIndex`,void 0),M([D({mode:`boolean`})],Gi.prototype,`multiple`,void 0),M([D({converter:E})],Gi.prototype,`size`,void 0);let Ki=(e,t)=>T`<template aria-activedescendant="${e=>e.ariaActiveDescendant}" aria-multiselectable="${e=>e.ariaMultiSelectable}" class="listbox" role="listbox" tabindex="${e=>e.disabled?null:`0`}" @click="${(e,t)=>e.clickHandler(t.event)}" @focusin="${(e,t)=>e.focusinHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}" @mousedown="${(e,t)=>e.mousedownHandler(t.event)}"><slot ${bt({filter:Gi.slottedOptionFilter,flatten:!0,property:`slottedOptions`})}></slot></template>`;var qi=class extends P{constructor(){super(...arguments),this.optionElements=[]}menuElementsChanged(){this.updateOptions()}headerElementsChanged(){this.updateOptions()}footerElementsChanged(){this.updateOptions()}updateOptions(){this.optionElements.splice(0,this.optionElements.length),this.addSlottedListItems(this.headerElements),this.addSlottedListItems(this.menuElements),this.addSlottedListItems(this.footerElements),this.$emit(`optionsupdated`,{bubbles:!1})}addSlottedListItems(e){e!==void 0&&e.forEach(e=>{e.nodeType===1&&e.getAttribute(`role`)===`listitem`&&(e.id=e.id||Ln(`option-`),this.optionElements.push(e))})}};M([C],qi.prototype,`menuElements`,void 0),M([C],qi.prototype,`headerElements`,void 0),M([C],qi.prototype,`footerElements`,void 0),M([C],qi.prototype,`suggestionsAvailableText`,void 0);let ate=T`<template>${e=>e.value}</template>`;var Ji=class extends P{contentsTemplateChanged(){this.$fastController.isConnected&&this.updateView()}connectedCallback(){super.connectedCallback(),this.updateView()}disconnectedCallback(){super.disconnectedCallback(),this.disconnectView()}handleClick(e){return e.defaultPrevented||this.handleInvoked(),!1}handleInvoked(){this.$emit(`pickeroptioninvoked`)}updateView(){this.disconnectView(),this.customView=this.contentsTemplate?.render(this,this)??ate.render(this,this)}disconnectView(){var e;(e=this.customView)==null||e.dispose(),this.customView=void 0}};M([D({attribute:`value`})],Ji.prototype,`value`,void 0),M([C],Ji.prototype,`contentsTemplate`,void 0);var Yi=class extends P{};let ote=T`<template>${e=>e.value}</template>`;var Xi=class extends P{contentsTemplateChanged(){this.$fastController.isConnected&&this.updateView()}connectedCallback(){super.connectedCallback(),this.updateView()}disconnectedCallback(){this.disconnectView(),super.disconnectedCallback()}handleKeyDown(e){return e.defaultPrevented?!1:e.key!==`Enter`||(this.handleInvoke(),!1)}handleClick(e){return e.defaultPrevented||this.handleInvoke(),!1}handleInvoke(){this.$emit(`pickeriteminvoked`)}updateView(){this.disconnectView(),this.customView=this.contentsTemplate?.render(this,this)??ote.render(this,this)}disconnectView(){var e;(e=this.customView)==null||e.dispose(),this.customView=void 0}};M([D({attribute:`value`})],Xi.prototype,`value`,void 0),M([C],Xi.prototype,`contentsTemplate`,void 0);function ste(e){let t=e.tagFor(Xi);return T`<${t}value="${e=>e}" :contentsTemplate="${(e,t)=>t.parent.listItemContentsTemplate}"></${t}>`}function cte(e){let t=e.tagFor(Ji);return T`<${t}value="${e=>e}" :contentsTemplate="${(e,t)=>t.parent.menuOptionContentsTemplate}"></${t}>`}let lte=(e,t)=>{let n=e.tagFor(Jn),r=e.tagFor(qi),i=e.tagFor(Yi),a=e.tagFor(Yi);return T`<template :selectedListTag="${()=>i}" :menuTag="${()=>r}" :defaultListItemTemplate="${ste(e)}" :defaultMenuOptionTemplate="${cte(e)}" @focusin="${(e,t)=>e.handleFocusIn(t.event)}" @focusout="${(e,t)=>e.handleFocusOut(t.event)}" @keydown="${(e,t)=>e.handleKeyDown(t.event)}" @pickeriteminvoked="${(e,t)=>e.handleItemInvoke(t.event)}" @pickeroptioninvoked="${(e,t)=>e.handleOptionInvoke(t.event)}"><slot name="list-region"></slot>${A(e=>e.flyoutOpen,T`<${n}class="region" part="region" auto-update-mode="${e=>e.menuConfig.autoUpdateMode}" fixed-placement="${e=>e.menuConfig.fixedPlacement}" vertical-positioning-mode="${e=>e.menuConfig.verticalPositioningMode}" vertical-default-position="${e=>e.menuConfig.verticalDefaultPosition}" vertical-scaling="${e=>e.menuConfig.verticalScaling}" vertical-inset="${e=>e.menuConfig.verticalInset}" vertical-viewport-lock="${e=>e.menuConfig.verticalViewportLock}" horizontal-positioning-mode="${e=>e.menuConfig.horizontalPositioningMode}" horizontal-default-position="${e=>e.menuConfig.horizontalDefaultPosition}" horizontal-scaling="${e=>e.menuConfig.horizontalScaling}" horizontal-inset="${e=>e.menuConfig.horizontalInset}" horizontal-viewport-lock="${e=>e.menuConfig.horizontalViewportLock}" @loaded="${(e,t)=>e.handleRegionLoaded(t.event)}" ${k(`region`)}>${A(e=>!e.showNoOptions&&!e.showLoading,T`<slot name="menu-region"></slot>`)} ${A(e=>e.showNoOptions&&!e.showLoading,T`<div class="no-options-display" part="no-options-display"><slot name="no-options-region">${e=>e.noSuggestionsText}</slot></div>`)} ${A(e=>e.showLoading,T`<div class="loading-display" part="loading-display"><slot name="loading-region"><${a}part="loading-progress" class="loading-progress slot="loading-region"></${a}>${e=>e.loadingText}</slot></div>`)}</${n}>`)}</template>`};var ute=class extends P{},dte=class extends pr(ute){constructor(){super(...arguments),this.proxy=document.createElement(`input`)}};let fte=T`<input slot="input-region" role="combobox" type="text" autocapitalize="off" autocomplete="off" haspopup="list" aria-label="${e=>e.label}" aria-labelledby="${e=>e.labelledBy}" placeholder="${e=>e.placeholder}" ${k(`inputElement`)}></input>`;var Zi=class extends dte{constructor(){super(...arguments),this.selection=``,this.filterSelected=!0,this.filterQuery=!0,this.noSuggestionsText=`No suggestions available`,this.suggestionsAvailableText=`Suggestions available`,this.loadingText=`Loading suggestions`,this.menuPlacement=`bottom-fill`,this.showLoading=!1,this.optionsList=[],this.filteredOptionsList=[],this.flyoutOpen=!1,this.menuFocusIndex=-1,this.showNoOptions=!1,this.selectedItems=[],this.inputElementView=null,this.handleTextInput=e=>{this.query=this.inputElement.value},this.handleInputClick=e=>{e.preventDefault(),this.toggleFlyout(!0)},this.setRegionProps=()=>{if(this.flyoutOpen){if(this.region===null||this.region===void 0){x.queueUpdate(this.setRegionProps);return}this.region.anchorElement=this.inputElement}},this.configLookup={top:Xn,bottom:Zn,tallest:Qn,"top-fill":Aee,"bottom-fill":$n,"tallest-fill":jee}}selectionChanged(){this.$fastController.isConnected&&(this.handleSelectionChange(),this.proxy instanceof HTMLInputElement&&(this.proxy.value=this.selection,this.validate()))}optionsChanged(){this.optionsList=this.options.split(`,`).map(e=>e.trim()).filter(e=>e!==``)}menuPlacementChanged(){this.$fastController.isConnected&&this.updateMenuConfig()}showLoadingChanged(){this.$fastController.isConnected&&x.queueUpdate(()=>{this.setFocusedOption(0)})}listItemTemplateChanged(){this.updateListItemTemplate()}defaultListItemTemplateChanged(){this.updateListItemTemplate()}menuOptionTemplateChanged(){this.updateOptionTemplate()}defaultMenuOptionTemplateChanged(){this.updateOptionTemplate()}optionsListChanged(){this.updateFilteredOptions()}queryChanged(){this.$fastController.isConnected&&(this.inputElement.value!==this.query&&(this.inputElement.value=this.query),this.updateFilteredOptions(),this.$emit(`querychange`,{bubbles:!1}))}filteredOptionsListChanged(){this.$fastController.isConnected&&(this.showNoOptions=this.filteredOptionsList.length===0&&this.menuElement.querySelectorAll(`[role="listitem"]`).length===0,this.setFocusedOption(this.showNoOptions?-1:0))}flyoutOpenChanged(){this.flyoutOpen?(x.queueUpdate(this.setRegionProps),this.$emit(`menuopening`,{bubbles:!1})):this.$emit(`menuclosing`,{bubbles:!1})}showNoOptionsChanged(){this.$fastController.isConnected&&x.queueUpdate(()=>{this.setFocusedOption(0)})}connectedCallback(){super.connectedCallback(),this.listElement=document.createElement(this.selectedListTag),this.appendChild(this.listElement),this.itemsPlaceholderElement=document.createComment(``),this.listElement.append(this.itemsPlaceholderElement),this.inputElementView=fte.render(this,this.listElement);let e=this.menuTag.toUpperCase();this.menuElement=Array.from(this.children).find(t=>t.tagName===e),this.menuElement===void 0&&(this.menuElement=document.createElement(this.menuTag),this.appendChild(this.menuElement)),this.menuElement.id===``&&(this.menuElement.id=Ln(`listbox-`)),this.menuId=this.menuElement.id,this.optionsPlaceholder=document.createComment(``),this.menuElement.append(this.optionsPlaceholder),this.updateMenuConfig(),x.queueUpdate(()=>this.initialize())}disconnectedCallback(){super.disconnectedCallback(),this.toggleFlyout(!1),this.inputElement.removeEventListener(`input`,this.handleTextInput),this.inputElement.removeEventListener(`click`,this.handleInputClick),this.inputElementView!==null&&(this.inputElementView.dispose(),this.inputElementView=null)}focus(){this.inputElement.focus()}initialize(){this.updateListItemTemplate(),this.updateOptionTemplate(),this.itemsRepeatBehavior=new _t(e=>e.selectedItems,e=>e.activeListItemTemplate,{positioning:!0}).createBehavior(this.itemsPlaceholderElement),this.inputElement.addEventListener(`input`,this.handleTextInput),this.inputElement.addEventListener(`click`,this.handleInputClick),this.$fastController.addBehaviors([this.itemsRepeatBehavior]),this.menuElement.suggestionsAvailableText=this.suggestionsAvailableText,this.menuElement.addEventListener(`optionsupdated`,this.handleMenuOptionsUpdated),this.optionsRepeatBehavior=new _t(e=>e.filteredOptionsList,e=>e.activeMenuOptionTemplate,{positioning:!0}).createBehavior(this.optionsPlaceholder),this.$fastController.addBehaviors([this.optionsRepeatBehavior]),this.handleSelectionChange()}toggleFlyout(e){if(this.flyoutOpen!==e){if(e&&document.activeElement===this.inputElement){this.flyoutOpen=e,x.queueUpdate(()=>{this.menuElement===void 0?this.disableMenu():this.setFocusedOption(0)});return}this.flyoutOpen=!1,this.disableMenu()}}handleMenuOptionsUpdated(e){e.preventDefault(),this.flyoutOpen&&this.setFocusedOption(0)}handleKeyDown(e){if(e.defaultPrevented)return!1;switch(e.key){case En:if(!this.flyoutOpen)this.toggleFlyout(!0);else{let e=this.flyoutOpen?Math.min(this.menuFocusIndex+1,this.menuElement.optionElements.length-1):0;this.setFocusedOption(e)}return!1;case kn:if(!this.flyoutOpen)this.toggleFlyout(!0);else{let e=this.flyoutOpen?Math.max(this.menuFocusIndex-1,0):0;this.setFocusedOption(e)}return!1;case jn:return this.toggleFlyout(!1),!1;case An:return this.menuFocusIndex!==-1&&this.menuElement.optionElements.length>this.menuFocusIndex&&this.menuElement.optionElements[this.menuFocusIndex].click(),!1;case On:return document.activeElement===this.inputElement||(this.incrementFocusedItem(1),!1);case Dn:return this.inputElement.selectionStart!==0||(this.incrementFocusedItem(-1),!1);case`Delete`:case`Backspace`:{if(document.activeElement===null)return!0;if(document.activeElement===this.inputElement)return this.inputElement.selectionStart!==0||(this.selection=this.selectedItems.slice(0,this.selectedItems.length-1).toString(),this.toggleFlyout(!1),!1);let e=Array.from(this.listElement.children),t=e.indexOf(document.activeElement);return t>-1?(this.selection=this.selectedItems.splice(t,1).toString(),x.queueUpdate(()=>{e[Math.min(e.length,t)].focus()}),!1):!0}}return this.toggleFlyout(!0),!0}handleFocusIn(e){return!1}handleFocusOut(e){return(this.menuElement===void 0||!this.menuElement.contains(e.relatedTarget))&&this.toggleFlyout(!1),!1}handleSelectionChange(){this.selectedItems.toString()!==this.selection&&(this.selectedItems=this.selection===``?[]:this.selection.split(`,`),this.updateFilteredOptions(),x.queueUpdate(()=>{this.checkMaxItems()}),this.$emit(`selectionchange`,{bubbles:!1}))}handleRegionLoaded(e){x.queueUpdate(()=>{this.setFocusedOption(0),this.$emit(`menuloaded`,{bubbles:!1})})}checkMaxItems(){if(this.inputElement!==void 0){if(this.maxSelected!==void 0&&this.selectedItems.length>=this.maxSelected){if(document.activeElement===this.inputElement){let e=Array.from(this.listElement.querySelectorAll(`[role='listitem']`));e[e.length-1].focus()}this.inputElement.hidden=!0}else this.inputElement.hidden=!1}}handleItemInvoke(e){if(e.defaultPrevented)return!1;if(e.target instanceof Xi){let t=Array.from(this.listElement.querySelectorAll(`[role='listitem']`)).indexOf(e.target);if(t!==-1){let e=this.selectedItems.slice();e.splice(t,1),this.selection=e.toString(),x.queueUpdate(()=>this.incrementFocusedItem(0))}return!1}return!0}handleOptionInvoke(e){return e.defaultPrevented?!1:e.target instanceof Ji?(e.target.value!==void 0&&(this.selection=`${this.selection}${this.selection===``?``:`,`}${e.target.value}`),this.inputElement.value=``,this.query=``,this.inputElement.focus(),this.toggleFlyout(!1),!1):!0}incrementFocusedItem(e){if(this.selectedItems.length===0){this.inputElement.focus();return}let t=Array.from(this.listElement.querySelectorAll(`[role='listitem']`));if(document.activeElement!==null){let n=t.indexOf(document.activeElement);n===-1&&(n=t.length);let r=Math.min(t.length,Math.max(0,n+e));r===t.length?this.maxSelected!==void 0&&this.selectedItems.length>=this.maxSelected?t[r-1].focus():this.inputElement.focus():t[r].focus()}}disableMenu(){var e,t,n;this.menuFocusIndex=-1,this.menuFocusOptionId=void 0,(e=this.inputElement)==null||e.removeAttribute(`aria-activedescendant`),(t=this.inputElement)==null||t.removeAttribute(`aria-owns`),(n=this.inputElement)==null||n.removeAttribute(`aria-expanded`)}setFocusedOption(e){if(!this.flyoutOpen||e===-1||this.showNoOptions||this.showLoading){this.disableMenu();return}if(this.menuElement.optionElements.length===0)return;this.menuElement.optionElements.forEach(e=>{e.setAttribute(`aria-selected`,`false`)}),this.menuFocusIndex=e,this.menuFocusIndex>this.menuElement.optionElements.length-1&&(this.menuFocusIndex=this.menuElement.optionElements.length-1),this.menuFocusOptionId=this.menuElement.optionElements[this.menuFocusIndex].id,this.inputElement.setAttribute(`aria-owns`,this.menuId),this.inputElement.setAttribute(`aria-expanded`,`true`),this.inputElement.setAttribute(`aria-activedescendant`,this.menuFocusOptionId);let t=this.menuElement.optionElements[this.menuFocusIndex];t.setAttribute(`aria-selected`,`true`),this.menuElement.scrollTo(0,t.offsetTop)}updateListItemTemplate(){this.activeListItemTemplate=this.listItemTemplate??this.defaultListItemTemplate}updateOptionTemplate(){this.activeMenuOptionTemplate=this.menuOptionTemplate??this.defaultMenuOptionTemplate}updateFilteredOptions(){this.filteredOptionsList=this.optionsList.slice(0),this.filterSelected&&(this.filteredOptionsList=this.filteredOptionsList.filter(e=>this.selectedItems.indexOf(e)===-1)),this.filterQuery&&this.query!==``&&this.query!==void 0&&(this.filteredOptionsList=this.filteredOptionsList.filter(e=>e.indexOf(this.query)!==-1))}updateMenuConfig(){let e=this.configLookup[this.menuPlacement];e===null&&(e=$n),this.menuConfig=Object.assign(Object.assign({},e),{autoUpdateMode:`auto`,fixedPlacement:!0,horizontalViewportLock:!1,verticalViewportLock:!1})}};M([D({attribute:`selection`})],Zi.prototype,`selection`,void 0),M([D({attribute:`options`})],Zi.prototype,`options`,void 0),M([D({attribute:`filter-selected`,mode:`boolean`})],Zi.prototype,`filterSelected`,void 0),M([D({attribute:`filter-query`,mode:`boolean`})],Zi.prototype,`filterQuery`,void 0),M([D({attribute:`max-selected`})],Zi.prototype,`maxSelected`,void 0),M([D({attribute:`no-suggestions-text`})],Zi.prototype,`noSuggestionsText`,void 0),M([D({attribute:`suggestions-available-text`})],Zi.prototype,`suggestionsAvailableText`,void 0),M([D({attribute:`loading-text`})],Zi.prototype,`loadingText`,void 0),M([D({attribute:`label`})],Zi.prototype,`label`,void 0),M([D({attribute:`labelledby`})],Zi.prototype,`labelledBy`,void 0),M([D({attribute:`placeholder`})],Zi.prototype,`placeholder`,void 0),M([D({attribute:`menu-placement`})],Zi.prototype,`menuPlacement`,void 0),M([C],Zi.prototype,`showLoading`,void 0),M([C],Zi.prototype,`listItemTemplate`,void 0),M([C],Zi.prototype,`defaultListItemTemplate`,void 0),M([C],Zi.prototype,`activeListItemTemplate`,void 0),M([C],Zi.prototype,`menuOptionTemplate`,void 0),M([C],Zi.prototype,`defaultMenuOptionTemplate`,void 0),M([C],Zi.prototype,`activeMenuOptionTemplate`,void 0),M([C],Zi.prototype,`listItemContentsTemplate`,void 0),M([C],Zi.prototype,`menuOptionContentsTemplate`,void 0),M([C],Zi.prototype,`optionsList`,void 0),M([C],Zi.prototype,`query`,void 0),M([C],Zi.prototype,`filteredOptionsList`,void 0),M([C],Zi.prototype,`flyoutOpen`,void 0),M([C],Zi.prototype,`menuId`,void 0),M([C],Zi.prototype,`selectedListTag`,void 0),M([C],Zi.prototype,`menuTag`,void 0),M([C],Zi.prototype,`menuFocusIndex`,void 0),M([C],Zi.prototype,`menuFocusOptionId`,void 0),M([C],Zi.prototype,`showNoOptions`,void 0),M([C],Zi.prototype,`menuConfig`,void 0),M([C],Zi.prototype,`selectedItems`,void 0);let pte=(e,t)=>T`<template role="list" slot="menu-region"><div class="options-display" part="options-display"><div class="header-region" part="header-region"><slot name="header-region" ${bt(`headerElements`)}></slot></div><slot ${bt(`menuElements`)}></slot><div class="footer-region" part="footer-region"><slot name="footer-region" ${bt(`footerElements`)}></slot></div><div role="alert" aria-live="polite" part="suggestions-available-alert" class="suggestions-available-alert">${e=>e.suggestionsAvailableText}</div></div></template>`,mte=(e,t)=>T`<template role="listitem" tabindex="-1" @click="${(e,t)=>e.handleClick(t.event)}"><slot></slot></template>`,hte=(e,t)=>T`<template slot="list-region" role="list" class="picker-list"><slot></slot><slot name="input-region"></slot></template>`,gte=(e,t)=>T`<template role="listitem" tabindex="0" @click="${(e,t)=>e.handleClick(t.event)}" @keydown="${(e,t)=>e.handleKeyDown(t.event)}"><slot></slot></template>`,Qi={menuitem:`menuitem`,menuitemcheckbox:`menuitemcheckbox`,menuitemradio:`menuitemradio`},_te={[Qi.menuitem]:`menuitem`,[Qi.menuitemcheckbox]:`menuitemcheckbox`,[Qi.menuitemradio]:`menuitemradio`};var $i=class extends P{constructor(){super(...arguments),this.role=Qi.menuitem,this.hasSubmenu=!1,this.currentDirection=Pn.ltr,this.focusSubmenuOnLoad=!1,this.handleMenuItemKeyDown=e=>{if(e.defaultPrevented)return!1;switch(e.key){case An:case` `:return this.invoke(),!1;case On:return this.expandAndFocus(),!1;case Dn:if(this.expanded)return this.expanded=!1,this.focus(),!1}return!0},this.handleMenuItemClick=e=>(e.defaultPrevented||this.disabled||this.invoke(),!1),this.submenuLoaded=()=>{this.focusSubmenuOnLoad&&(this.focusSubmenuOnLoad=!1,this.hasSubmenu&&(this.submenu.focus(),this.setAttribute(`tabindex`,`-1`)))},this.handleMouseOver=e=>(this.disabled||!this.hasSubmenu||this.expanded||(this.expanded=!0),!1),this.handleMouseOut=e=>(!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 Qi.menuitemcheckbox:this.checked=!this.checked;break;case Qi.menuitem:this.updateSubmenu(),this.hasSubmenu?this.expandAndFocus():this.$emit(`change`);break;case Qi.menuitemradio:this.checked||(this.checked=!0)}},this.updateSubmenu=()=>{this.submenu=this.domChildren().find(e=>e.getAttribute(`role`)===`menu`),this.hasSubmenu=this.submenu!==void 0}}expandedChanged(e){if(this.$fastController.isConnected){if(this.submenu===void 0)return;this.expanded===!1?this.submenu.collapseExpandedItem():this.currentDirection=qn(this),this.$emit(`expanded-change`,this,{bubbles:!1})}}checkedChanged(e,t){this.$fastController.isConnected&&this.$emit(`change`)}connectedCallback(){super.connectedCallback(),x.queueUpdate(()=>{this.updateSubmenu()}),this.startColumnCount||(this.startColumnCount=1),this.observer=new MutationObserver(this.updateSubmenu)}disconnectedCallback(){super.disconnectedCallback(),this.submenu=void 0,this.observer!==void 0&&(this.observer.disconnect(),this.observer=void 0)}domChildren(){return Array.from(this.children).filter(e=>!e.hasAttribute(`hidden`))}};M([D({mode:`boolean`})],$i.prototype,`disabled`,void 0),M([D({mode:`boolean`})],$i.prototype,`expanded`,void 0),M([C],$i.prototype,`startColumnCount`,void 0),M([D],$i.prototype,`role`,void 0),M([D({mode:`boolean`})],$i.prototype,`checked`,void 0),M([C],$i.prototype,`submenuRegion`,void 0),M([C],$i.prototype,`hasSubmenu`,void 0),M([C],$i.prototype,`currentDirection`,void 0),M([C],$i.prototype,`submenu`,void 0),sn($i,St);let ea=(e,t)=>T`<template role="${e=>e.role}" aria-haspopup="${e=>e.hasSubmenu?`menu`:void 0}" aria-checked="${e=>e.role===Qi.menuitem?void 0:e.checked}" aria-disabled="${e=>e.disabled}" aria-expanded="${e=>e.expanded}" @keydown="${(e,t)=>e.handleMenuItemKeyDown(t.event)}" @click="${(e,t)=>e.handleMenuItemClick(t.event)}" @mouseover="${(e,t)=>e.handleMouseOver(t.event)}" @mouseout="${(e,t)=>e.handleMouseOut(t.event)}" class="${e=>e.disabled?`disabled`:``} ${e=>e.expanded?`expanded`:``} ${e=>`indent-${e.startColumnCount}`}">${A(e=>e.role===Qi.menuitemcheckbox,T`<div part="input-container" class="input-container"><span part="checkbox" class="checkbox"><slot name="checkbox-indicator">${t.checkboxIndicator||``}</slot></span></div>`)} ${A(e=>e.role===Qi.menuitemradio,T`<div part="input-container" class="input-container"><span part="radio" class="radio"><slot name="radio-indicator">${t.radioIndicator||``}</slot></span></div>`)}</div>${wt(e,t)}<span class="content" part="content"><slot></slot></span>${Ct(e,t)} ${A(e=>e.hasSubmenu,T`<div part="expand-collapse-glyph-container" class="expand-collapse-glyph-container"><span part="expand-collapse" class="expand-collapse"><slot name="expand-collapse-indicator">${t.expandCollapseGlyph||``}</slot></span></div>`)} ${A(e=>e.expanded,T`<${e.tagFor(Jn)}:anchorElement="${e=>e}" vertical-positioning-mode="dynamic" vertical-default-position="bottom" vertical-inset="true" horizontal-positioning-mode="dynamic" horizontal-default-position="end" class="submenu-region" dir="${e=>e.currentDirection}" @loaded="${e=>e.submenuLoaded()}" ${k(`submenuRegion`)}part="submenu-region"><slot name="submenu"></slot></${e.tagFor(Jn)}>`)}</template>`,ta=(e,t)=>T`<template slot="${e=>e.slot?e.slot:e.isNestedMenu()?`submenu`:void 0}" role="menu" @keydown="${(e,t)=>e.handleMenuKeyDown(t.event)}" @focusout="${(e,t)=>e.handleFocusOut(t.event)}"><slot ${bt(`items`)}></slot></template>`;var na=class e extends P{constructor(){super(...arguments),this.expandedItem=null,this.focusIndex=-1,this.isNestedMenu=()=>this.parentElement!==null&&mn(this.parentElement)&&this.parentElement.getAttribute(`role`)===`menuitem`,this.handleFocusOut=e=>{if(!this.contains(e.relatedTarget)&&this.menuItems!==void 0){this.collapseExpandedItem();let e=this.menuItems.findIndex(this.isFocusableElement);this.menuItems[this.focusIndex].setAttribute(`tabindex`,`-1`),this.menuItems[e].setAttribute(`tabindex`,`0`),this.focusIndex=e}},this.handleItemFocus=e=>{let t=e.target;this.menuItems!==void 0&&t!==this.menuItems[this.focusIndex]&&(this.menuItems[this.focusIndex].setAttribute(`tabindex`,`-1`),this.focusIndex=this.menuItems.indexOf(t),t.setAttribute(`tabindex`,`0`))},this.handleExpandedChanged=e=>{if(e.defaultPrevented||e.target===null||this.menuItems===void 0||this.menuItems.indexOf(e.target)<0)return;e.preventDefault();let t=e.target;if(this.expandedItem!==null&&t===this.expandedItem&&t.expanded===!1){this.expandedItem=null;return}t.expanded&&(this.expandedItem!==null&&this.expandedItem!==t&&(this.expandedItem.expanded=!1),this.menuItems[this.focusIndex].setAttribute(`tabindex`,`-1`),this.expandedItem=t,this.focusIndex=this.menuItems.indexOf(t),t.setAttribute(`tabindex`,`0`))},this.removeItemListeners=()=>{this.menuItems!==void 0&&this.menuItems.forEach(e=>{e.removeEventListener(`expanded-change`,this.handleExpandedChanged),e.removeEventListener(`focus`,this.handleItemFocus)})},this.setItems=()=>{let e=this.domChildren();this.removeItemListeners(),this.menuItems=e;let t=this.menuItems.filter(this.isMenuItemElement);t.length&&(this.focusIndex=0);function n(e){let t=e.getAttribute(`role`),n=e.querySelector(`[slot=start]`);return t!==Qi.menuitem&&n===null||t===Qi.menuitem&&n!==null?1:t!==Qi.menuitem&&n!==null?2:0}let r=t.reduce((e,t)=>{let r=n(t);return e>r?e:r},0);t.forEach((e,t)=>{e.setAttribute(`tabindex`,t===0?`0`:`-1`),e.addEventListener(`expanded-change`,this.handleExpandedChanged),e.addEventListener(`focus`,this.handleItemFocus),(e instanceof $i||`startColumnCount`in e)&&(e.startColumnCount=r)})},this.changeHandler=e=>{if(this.menuItems===void 0)return;let t=e.target,n=this.menuItems.indexOf(t);if(n!==-1&&t.role===`menuitemradio`&&t.checked===!0){for(let e=n-1;e>=0;--e){let t=this.menuItems[e],n=t.getAttribute(`role`);if(n===Qi.menuitemradio&&(t.checked=!1),n===`separator`)break}let e=this.menuItems.length-1;for(let t=n+1;t<=e;++t){let e=this.menuItems[t],n=e.getAttribute(`role`);if(n===Qi.menuitemradio&&(e.checked=!1),n===`separator`)break}}},this.isMenuItemElement=t=>mn(t)&&e.focusableElementRoles.hasOwnProperty(t.getAttribute(`role`)),this.isFocusableElement=e=>this.isMenuItemElement(e)}itemsChanged(e,t){this.$fastController.isConnected&&this.menuItems!==void 0&&this.setItems()}connectedCallback(){super.connectedCallback(),x.queueUpdate(()=>{this.setItems()}),this.addEventListener(`change`,this.changeHandler)}disconnectedCallback(){super.disconnectedCallback(),this.removeItemListeners(),this.menuItems=void 0,this.removeEventListener(`change`,this.changeHandler)}focus(){this.setFocus(0,1)}collapseExpandedItem(){this.expandedItem!==null&&(this.expandedItem.expanded=!1,this.expandedItem=null)}handleMenuKeyDown(e){if(!(e.defaultPrevented||this.menuItems===void 0))switch(e.key){case En:this.setFocus(this.focusIndex+1,1);return;case kn:this.setFocus(this.focusIndex-1,-1);return;case`End`:this.setFocus(this.menuItems.length-1,-1);return;case Mn:this.setFocus(0,1);return;default:return!0}}domChildren(){return Array.from(this.children).filter(e=>!e.hasAttribute(`hidden`))}setFocus(e,t){if(this.menuItems!==void 0)for(;e>=0&&e<this.menuItems.length;){let n=this.menuItems[e];if(this.isFocusableElement(n)){this.focusIndex>-1&&this.menuItems.length>=this.focusIndex-1&&this.menuItems[this.focusIndex].setAttribute(`tabindex`,`-1`),this.focusIndex=e,n.setAttribute(`tabindex`,`0`),n.focus();break}e+=t}}};na.focusableElementRoles=_te,M([C],na.prototype,`items`,void 0);let vte=(e,t)=>T`<template class="${e=>e.readOnly?`readonly`:``}"><label part="label" for="control" class="${e=>e.defaultSlottedNodes&&e.defaultSlottedNodes.length?`label`:`label label__hidden`}"><slot ${bt(`defaultSlottedNodes`)}></slot></label><div class="root" part="root">${wt(e,t)}<input class="control" part="control" id="control" @input="${e=>e.handleTextInput()}" @change="${e=>e.handleChange()}" @keydown="${(e,t)=>e.handleKeyDown(t.event)}" @blur="${(e,t)=>e.handleBlur()}" ?autofocus="${e=>e.autofocus}" ?disabled="${e=>e.disabled}" list="${e=>e.list}" maxlength="${e=>e.maxlength}" minlength="${e=>e.minlength}" placeholder="${e=>e.placeholder}" ?readonly="${e=>e.readOnly}" ?required="${e=>e.required}" size="${e=>e.size}" type="text" inputmode="numeric" min="${e=>e.min}" max="${e=>e.max}" step="${e=>e.step}" aria-atomic="${e=>e.ariaAtomic}" aria-busy="${e=>e.ariaBusy}" aria-controls="${e=>e.ariaControls}" aria-current="${e=>e.ariaCurrent}" aria-describedby="${e=>e.ariaDescribedby}" aria-details="${e=>e.ariaDetails}" aria-disabled="${e=>e.ariaDisabled}" aria-errormessage="${e=>e.ariaErrormessage}" aria-flowto="${e=>e.ariaFlowto}" aria-haspopup="${e=>e.ariaHaspopup}" aria-hidden="${e=>e.ariaHidden}" aria-invalid="${e=>e.ariaInvalid}" aria-keyshortcuts="${e=>e.ariaKeyshortcuts}" aria-label="${e=>e.ariaLabel}" aria-labelledby="${e=>e.ariaLabelledby}" aria-live="${e=>e.ariaLive}" aria-owns="${e=>e.ariaOwns}" aria-relevant="${e=>e.ariaRelevant}" aria-roledescription="${e=>e.ariaRoledescription}" ${k(`control`)}/>${A(e=>!e.hideStep&&!e.readOnly&&!e.disabled,T`<div class="controls" part="controls"><div class="step-up" part="step-up" @click="${e=>e.stepUp()}"><slot name="step-up-glyph">${t.stepUpGlyph||``}</slot></div><div class="step-down" part="step-down" @click="${e=>e.stepDown()}"><slot name="step-down-glyph">${t.stepDownGlyph||``}</slot></div></div>`)} ${Ct(e,t)}</div></template>`;var yte=class extends P{},bte=class extends pr(yte){constructor(){super(...arguments),this.proxy=document.createElement(`input`)}};let xte={email:`email`,password:`password`,tel:`tel`,text:`text`,url:`url`};var ra=class extends bte{constructor(){super(...arguments),this.type=xte.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&&x.queueUpdate(()=>{this.focus()})}select(){this.control.select(),this.$emit(`select`)}handleTextInput(){this.value=this.control.value}handleChange(){this.$emit(`change`)}validate(){super.validate(this.control)}};M([D({attribute:`readonly`,mode:`boolean`})],ra.prototype,`readOnly`,void 0),M([D({mode:`boolean`})],ra.prototype,`autofocus`,void 0),M([D],ra.prototype,`placeholder`,void 0),M([D],ra.prototype,`type`,void 0),M([D],ra.prototype,`list`,void 0),M([D({converter:E})],ra.prototype,`maxlength`,void 0),M([D({converter:E})],ra.prototype,`minlength`,void 0),M([D],ra.prototype,`pattern`,void 0),M([D({converter:E})],ra.prototype,`size`,void 0),M([D({mode:`boolean`})],ra.prototype,`spellcheck`,void 0),M([C],ra.prototype,`defaultSlottedNodes`,void 0);var ia=class{};sn(ia,Un),sn(ra,St,ia);var Ste=class extends P{},Cte=class extends pr(Ste){constructor(){super(...arguments),this.proxy=document.createElement(`input`)}},aa=class extends Cte{constructor(){super(...arguments),this.hideStep=!1,this.step=1,this.isUserInput=!1}maxChanged(e,t){this.max=Math.max(t,this.min??t);let n=Math.min(this.min,this.max);this.min!==void 0&&this.min!==n&&(this.min=n),this.value=this.getValidValue(this.value)}minChanged(e,t){this.min=Math.min(t,this.max??t);let n=Math.max(this.min,this.max);this.max!==void 0&&this.max!==n&&(this.max=n),this.value=this.getValidValue(this.value)}get valueAsNumber(){return parseFloat(super.value)}set valueAsNumber(e){this.value=e.toString()}valueChanged(e,t){this.value=this.getValidValue(t),t===this.value&&(this.control&&!this.isUserInput&&(this.control.value=this.value),super.valueChanged(e,this.value),e!==void 0&&!this.isUserInput&&(this.$emit(`input`),this.$emit(`change`)),this.isUserInput=!1)}validate(){super.validate(this.control)}getValidValue(e){let t=parseFloat(parseFloat(e).toPrecision(12));return isNaN(t)?t=``:(t=Math.min(t,this.max??t),t=Math.max(t,this.min??t).toString()),t}stepUp(){let e=parseFloat(this.value),t=isNaN(e)?this.min>0?this.min:this.max<0?this.max:this.min?0:this.step:e+this.step;this.value=t.toString()}stepDown(){let e=parseFloat(this.value),t=isNaN(e)?this.min>0?this.min:this.max<0?this.max:this.min?0:0-this.step:e-this.step;this.value=t.toString()}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute(`type`,`number`),this.validate(),this.control.value=this.value,this.autofocus&&x.queueUpdate(()=>{this.focus()})}select(){this.control.select(),this.$emit(`select`)}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(e){switch(e.key){case kn:return this.stepUp(),!1;case En:return this.stepDown(),!1}return!0}handleBlur(){this.control.value=this.value}};M([D({attribute:`readonly`,mode:`boolean`})],aa.prototype,`readOnly`,void 0),M([D({mode:`boolean`})],aa.prototype,`autofocus`,void 0),M([D({attribute:`hide-step`,mode:`boolean`})],aa.prototype,`hideStep`,void 0),M([D],aa.prototype,`placeholder`,void 0),M([D],aa.prototype,`list`,void 0),M([D({converter:E})],aa.prototype,`maxlength`,void 0),M([D({converter:E})],aa.prototype,`minlength`,void 0),M([D({converter:E})],aa.prototype,`size`,void 0),M([D({converter:E})],aa.prototype,`step`,void 0),M([D({converter:E})],aa.prototype,`max`,void 0),M([D({converter:E})],aa.prototype,`min`,void 0),M([C],aa.prototype,`defaultSlottedNodes`,void 0),sn(aa,St,ia);let oa=(e,t)=>T`<template role="progressbar" aria-valuenow="${e=>e.value}" aria-valuemin="${e=>e.min}" aria-valuemax="${e=>e.max}" class="${e=>e.paused?`paused`:``}">${A(e=>typeof e.value==`number`,T`<svg class="progress" part="progress" viewBox="0 0 16 16" slot="determinate"><circle class="background" part="background" cx="8px" cy="8px" r="7px"></circle><circle class="determinate" part="determinate" style="stroke-dasharray:${e=>44*e.percentComplete/100}px ${44}px" cx="8px" cy="8px" r="7px"></circle></svg>`,T`<slot name="indeterminate" slot="indeterminate">${t.indeterminateIndicator||``}</slot>`)}</template>`;var sa=class extends P{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(){let e=typeof this.min==`number`?this.min:0,t=typeof this.max==`number`?this.max:100,n=typeof this.value==`number`?this.value:0,r=t-e;this.percentComplete=r===0?0:Math.fround((n-e)/r*100)}};M([D({converter:E})],sa.prototype,`value`,void 0),M([D({converter:E})],sa.prototype,`min`,void 0),M([D({converter:E})],sa.prototype,`max`,void 0),M([D({mode:`boolean`})],sa.prototype,`paused`,void 0),M([C],sa.prototype,`percentComplete`,void 0);let ca=(e,t)=>T`<template role="progressbar" aria-valuenow="${e=>e.value}" aria-valuemin="${e=>e.min}" aria-valuemax="${e=>e.max}" class="${e=>e.paused?`paused`:``}">${A(e=>typeof e.value==`number`,T`<div class="progress" part="progress" slot="determinate"><div class="determinate" part="determinate" style="width:${e=>e.percentComplete}%"></div></div>`,T`<div class="progress" part="progress" slot="indeterminate"><slot class="indeterminate" name="indeterminate">${t.indeterminateIndicator1||``} ${t.indeterminateIndicator2||``}</slot></div>`)}</template>`,la=(e,t)=>T`<template role="radiogroup" aria-disabled="${e=>e.disabled}" aria-readonly="${e=>e.readOnly}" @click="${(e,t)=>e.clickHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}" @focusout="${(e,t)=>e.focusOutHandler(t.event)}"><slot name="label"></slot><div class="positioning-region ${e=>e.orientation===un.horizontal?`horizontal`:`vertical`}" part="positioning-region"><slot ${bt({property:`slottedRadioButtons`,filter:vt(`[role=radio]`)})}></slot></div></template>`;var ua=class extends P{constructor(){super(...arguments),this.orientation=un.horizontal,this.radioChangeHandler=e=>{let t=e.target;t.checked&&(this.slottedRadioButtons.forEach(e=>{e!==t&&(e.checked=!1,this.isInsideFoundationToolbar||e.setAttribute(`tabindex`,`-1`))}),this.selectedRadio=t,this.value=t.value,t.setAttribute(`tabindex`,`0`),this.focusedRadio=t),e.stopPropagation()},this.moveToRadioByIndex=(e,t)=>{let n=e[t];this.isInsideToolbar||(n.setAttribute(`tabindex`,`0`),n.readOnly?this.slottedRadioButtons.forEach(e=>{e!==n&&e.setAttribute(`tabindex`,`-1`)}):(n.checked=!0,this.selectedRadio=n)),this.focusedRadio=n,n.focus()},this.moveRightOffGroup=()=>{var e;(e=this.nextElementSibling)==null||e.focus()},this.moveLeftOffGroup=()=>{var e;(e=this.previousElementSibling)==null||e.focus()},this.focusOutHandler=e=>{let t=this.slottedRadioButtons,n=e.target,r=n===null?0:t.indexOf(n),i=this.focusedRadio?t.indexOf(this.focusedRadio):-1;return(i===0&&r===i||i===t.length-1&&i===r)&&(this.selectedRadio?(this.focusedRadio=this.selectedRadio,this.isInsideFoundationToolbar||(this.selectedRadio.setAttribute(`tabindex`,`0`),t.forEach(e=>{e!==this.selectedRadio&&e.setAttribute(`tabindex`,`-1`)}))):(this.focusedRadio=t[0],this.focusedRadio.setAttribute(`tabindex`,`0`),t.forEach(e=>{e!==this.focusedRadio&&e.setAttribute(`tabindex`,`-1`)}))),!0},this.clickHandler=e=>{let t=e.target;if(t){let e=this.slottedRadioButtons;t.checked||e.indexOf(t)===0?(t.setAttribute(`tabindex`,`0`),this.selectedRadio=t):(t.setAttribute(`tabindex`,`-1`),this.selectedRadio=null),this.focusedRadio=t}e.preventDefault()},this.shouldMoveOffGroupToTheRight=(e,t,n)=>e===t.length&&this.isInsideToolbar&&n===`ArrowRight`,this.shouldMoveOffGroupToTheLeft=(e,t)=>(this.focusedRadio?e.indexOf(this.focusedRadio)-1:0)<0&&this.isInsideToolbar&&t===`ArrowLeft`,this.checkFocusedRadio=()=>{this.focusedRadio!==null&&!this.focusedRadio.readOnly&&!this.focusedRadio.checked&&(this.focusedRadio.checked=!0,this.focusedRadio.setAttribute(`tabindex`,`0`),this.focusedRadio.focus(),this.selectedRadio=this.focusedRadio)},this.moveRight=e=>{let t=this.slottedRadioButtons,n=0;if(n=this.focusedRadio?t.indexOf(this.focusedRadio)+1:1,this.shouldMoveOffGroupToTheRight(n,t,e.key)){this.moveRightOffGroup();return}for(n===t.length&&(n=0);n<t.length&&t.length>1;)if(!t[n].disabled){this.moveToRadioByIndex(t,n);break}else if(this.focusedRadio&&n===t.indexOf(this.focusedRadio))break;else if(n+1>=t.length){if(this.isInsideToolbar)break;n=0}else n+=1},this.moveLeft=e=>{let t=this.slottedRadioButtons,n=0;if(n=this.focusedRadio?t.indexOf(this.focusedRadio)-1:0,n=n<0?t.length-1:n,this.shouldMoveOffGroupToTheLeft(t,e.key)){this.moveLeftOffGroup();return}for(;n>=0&&t.length>1;)if(!t[n].disabled){this.moveToRadioByIndex(t,n);break}else if(this.focusedRadio&&n===t.indexOf(this.focusedRadio))break;else n-1<0?n=t.length-1:--n},this.keydownHandler=e=>{let t=e.key;if(t in Nn&&this.isInsideFoundationToolbar)return!0;switch(t){case An:this.checkFocusedRadio();break;case On:case En:this.direction===Pn.ltr?this.moveRight(e):this.moveLeft(e);break;case Dn:case kn:this.direction===Pn.ltr?this.moveLeft(e):this.moveRight(e);break;default:return!0}}}readOnlyChanged(){this.slottedRadioButtons!==void 0&&this.slottedRadioButtons.forEach(e=>{e.readOnly=!!this.readOnly})}disabledChanged(){this.slottedRadioButtons!==void 0&&this.slottedRadioButtons.forEach(e=>{e.disabled=!!this.disabled})}nameChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach(e=>{e.setAttribute(`name`,this.name)})}valueChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach(e=>{e.value===this.value&&(e.checked=!0,this.selectedRadio=e)}),this.$emit(`change`)}slottedRadioButtonsChanged(e,t){this.slottedRadioButtons&&this.slottedRadioButtons.length>0&&this.setupRadioButtons()}get parentToolbar(){return this.closest(`[role="toolbar"]`)}get isInsideToolbar(){return this.parentToolbar??!1}get isInsideFoundationToolbar(){return!!this.parentToolbar?.$fastController}connectedCallback(){super.connectedCallback(),this.direction=qn(this),this.setupRadioButtons()}disconnectedCallback(){this.slottedRadioButtons.forEach(e=>{e.removeEventListener(`change`,this.radioChangeHandler)})}setupRadioButtons(){let e=this.slottedRadioButtons.filter(e=>e.hasAttribute(`checked`)),t=e?e.length:0;if(t>1){let n=e[t-1];n.checked=!0}let n=!1;if(this.slottedRadioButtons.forEach(e=>{this.name!==void 0&&e.setAttribute(`name`,this.name),this.disabled&&(e.disabled=!0),this.readOnly&&(e.readOnly=!0),this.value&&this.value===e.value?(this.selectedRadio=e,this.focusedRadio=e,e.checked=!0,e.setAttribute(`tabindex`,`0`),n=!0):(this.isInsideFoundationToolbar||e.setAttribute(`tabindex`,`-1`),e.checked=!1),e.addEventListener(`change`,this.radioChangeHandler)}),this.value===void 0&&this.slottedRadioButtons.length>0){let e=this.slottedRadioButtons.filter(e=>e.hasAttribute(`checked`)),t=e===null?0:e.length;if(t>0&&!n){let n=e[t-1];n.checked=!0,this.focusedRadio=n,n.setAttribute(`tabindex`,`0`)}else this.slottedRadioButtons[0].setAttribute(`tabindex`,`0`),this.focusedRadio=this.slottedRadioButtons[0]}}};M([D({attribute:`readonly`,mode:`boolean`})],ua.prototype,`readOnly`,void 0),M([D({attribute:`disabled`,mode:`boolean`})],ua.prototype,`disabled`,void 0),M([D],ua.prototype,`name`,void 0),M([D],ua.prototype,`value`,void 0),M([D],ua.prototype,`orientation`,void 0),M([C],ua.prototype,`childItems`,void 0),M([C],ua.prototype,`slottedRadioButtons`,void 0);let da=(e,t)=>T`<template role="radio" class="${e=>e.checked?`checked`:``} ${e=>e.readOnly?`readonly`:``}" aria-checked="${e=>e.checked}" aria-required="${e=>e.required}" aria-disabled="${e=>e.disabled}" aria-readonly="${e=>e.readOnly}" @keypress="${(e,t)=>e.keypressHandler(t.event)}" @click="${(e,t)=>e.clickHandler(t.event)}"><div part="control" class="control"><slot name="checked-indicator">${t.checkedIndicator||``}</slot></div><label part="label" class="${e=>e.defaultSlottedNodes&&e.defaultSlottedNodes.length?`label`:`label label__hidden`}"><slot ${bt(`defaultSlottedNodes`)}></slot></label></template>`;var wte=class extends P{},Tte=class extends mr(wte){constructor(){super(...arguments),this.proxy=document.createElement(`input`)}},fa=class extends Tte{constructor(){super(),this.initialValue=`on`,this.keypressHandler=e=>{if(e.key===` `){!this.checked&&!this.readOnly&&(this.checked=!0);return}return!0},this.proxy.setAttribute(`type`,`radio`)}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}defaultCheckedChanged(){this.$fastController.isConnected&&!this.dirtyChecked&&(this.isInsideRadioGroup()||(this.checked=this.defaultChecked??!1,this.dirtyChecked=!1))}connectedCallback(){super.connectedCallback(),this.validate(),this.parentElement?.getAttribute(`role`)!==`radiogroup`&&this.getAttribute(`tabindex`)===null&&(this.disabled||this.setAttribute(`tabindex`,`0`)),this.checkedAttribute&&(this.dirtyChecked||this.isInsideRadioGroup()||(this.checked=this.defaultChecked??!1,this.dirtyChecked=!1))}isInsideRadioGroup(){return this.closest(`[role=radiogroup]`)!==null}clickHandler(e){!this.disabled&&!this.readOnly&&!this.checked&&(this.checked=!0)}};M([D({attribute:`readonly`,mode:`boolean`})],fa.prototype,`readOnly`,void 0),M([C],fa.prototype,`name`,void 0),M([C],fa.prototype,`defaultSlottedNodes`,void 0);var pa=class extends P{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(e,t){if(this.scrollContainer){let e=this.scrolling==1?`scrollstart`:`scrollend`;this.$emit(e,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(e,t){t&&!this.updatingItems&&x.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;let e=this.scrollItems.reduce((e,t)=>t instanceof HTMLSlotElement?e.concat(t.assignedElements()):(e.push(t),e),[]);this.scrollItems=e,this.updatingItems=!1}setStops(){this.updateScrollStops();let{scrollContainer:e}=this,{scrollLeft:t}=e,{width:n,left:r}=e.getBoundingClientRect();this.width=n;let i=0,a=this.scrollItems.map((e,n)=>{let{left:a,width:o}=e.getBoundingClientRect(),s=Math.round(a+t-r),c=Math.round(s+o);return this.isRtl?-c:(i=c,n===0?0:s)}).concat(i);a=this.fixScrollMisalign(a),a.sort((e,t)=>Math.abs(e)-Math.abs(t)),this.scrollStops=a,this.setFlippers()}validateStops(e=!0){let t=()=>!!this.scrollStops.find(e=>e>0);return!t()&&e&&this.setStops(),t()}fixScrollMisalign(e){if(this.isRtl&&e.some(e=>e>0)){e.sort((e,t)=>t-e);let t=e[0];e=e.map(e=>e-t)}return e}setFlippers(){var e,t;let n=this.scrollContainer.scrollLeft;if((e=this.previousFlipperContainer)==null||e.classList.toggle(`disabled`,n===0),this.scrollStops){let e=Math.abs(this.scrollStops[this.scrollStops.length-1]);(t=this.nextFlipperContainer)==null||t.classList.toggle(`disabled`,this.validateStops(!1)&&Math.abs(n)+this.width>=e)}}scrollInView(e,t=0,n){if(typeof e!=`number`&&e&&(e=this.scrollItems.findIndex(t=>t===e||t.contains(e))),e!==void 0){n=n??t;let{scrollContainer:r,scrollStops:i,scrollItems:a}=this,{scrollLeft:o}=this.scrollContainer,{width:s}=r.getBoundingClientRect(),c=i[e],{width:l}=a[e].getBoundingClientRect(),u=c+l,d=o+t>c;if(d||o+s-n<u){let e=[...i].sort((e,t)=>d?t-e:e-t).find(e=>d?e+t<c:e+s-(n??0)>u)??0;this.scrollToPosition(e)}}}keyupHandler(e){switch(e.key){case`ArrowLeft`:this.scrollToPrevious();break;case`ArrowRight`:this.scrollToNext()}}scrollToPrevious(){this.validateStops();let e=this.scrollContainer.scrollLeft,t=this.scrollStops.findIndex((t,n)=>t>=e&&(this.isRtl||n===this.scrollStops.length-1||this.scrollStops[n+1]>e)),n=Math.abs(this.scrollStops[t+1]),r=this.scrollStops.findIndex(e=>Math.abs(e)+this.width>n);(r>=t||r===-1)&&(r=t>0?t-1:0),this.scrollToPosition(this.scrollStops[r],e)}scrollToNext(){this.validateStops();let e=this.scrollContainer.scrollLeft,t=this.scrollStops.findIndex(t=>Math.abs(t)>=Math.abs(e)),n=this.scrollStops.findIndex(t=>Math.abs(e)+this.width<=Math.abs(t)),r=t;n>t+2?r=n-2:t<this.scrollStops.length-2&&(r=t+1),this.scrollToPosition(this.scrollStops[r],e)}scrollToPosition(e,t=this.scrollContainer.scrollLeft){if(this.scrolling)return;this.scrolling=!0;let n=this.duration??`${Math.abs(e-t)/this.speed}s`;this.content.style.setProperty(`transition-duration`,n);let r=parseFloat(getComputedStyle(this.content).getPropertyValue(`transition-duration`)),i=t=>{t&&t.target!==t.currentTarget||(this.content.style.setProperty(`transition-duration`,`0s`),this.content.style.removeProperty(`transform`),this.scrollContainer.style.setProperty(`scroll-behavior`,`auto`),this.scrollContainer.scrollLeft=e,this.setFlippers(),this.content.removeEventListener(`transitionend`,i),this.scrolling=!1)};if(r===0){i();return}this.content.addEventListener(`transitionend`,i);let a=this.scrollContainer.scrollWidth-this.scrollContainer.clientWidth,o=this.scrollContainer.scrollLeft-Math.min(e,a);this.isRtl&&(o=this.scrollContainer.scrollLeft+Math.min(Math.abs(e),a)),this.content.style.setProperty(`transition-property`,`transform`),this.content.style.setProperty(`transition-timing-function`,this.easing),this.content.style.setProperty(`transform`,`translateX(${o}px)`)}resized(){this.resizeTimeout&&(this.resizeTimeout=clearTimeout(this.resizeTimeout)),this.resizeTimeout=setTimeout(()=>{this.width=this.scrollContainer.offsetWidth,this.setFlippers()},this.frameTime)}scrolled(){this.scrollTimeout&&(this.scrollTimeout=clearTimeout(this.scrollTimeout)),this.scrollTimeout=setTimeout(()=>{this.setFlippers()},this.frameTime)}};M([D({converter:E})],pa.prototype,`speed`,void 0),M([D],pa.prototype,`duration`,void 0),M([D],pa.prototype,`easing`,void 0),M([D({attribute:`flippers-hidden-from-at`,converter:Ue})],pa.prototype,`flippersHiddenFromAT`,void 0),M([C],pa.prototype,`scrolling`,void 0),M([C],pa.prototype,`scrollItems`,void 0),M([D({attribute:`view`})],pa.prototype,`view`,void 0);let ma=(e,t)=>T`<template class="horizontal-scroll" @keyup="${(e,t)=>e.keyupHandler(t.event)}">${wt(e,t)}<div class="scroll-area" part="scroll-area"><div class="scroll-view" part="scroll-view" @scroll="${e=>e.scrolled()}" ${k(`scrollContainer`)}><div class="content-container" part="content-container" ${k(`content`)}><slot ${bt({property:`scrollItems`,filter:vt()})}></slot></div></div>${A(e=>e.view!==`mobile`,T`<div class="scroll scroll-prev" part="scroll-prev" ${k(`previousFlipperContainer`)}><div class="scroll-action" part="scroll-action-previous"><slot name="previous-flipper">${t.previousFlipper instanceof Function?t.previousFlipper(e,t):t.previousFlipper??``}</slot></div></div><div class="scroll scroll-next" part="scroll-next" ${k(`nextFlipperContainer`)}><div class="scroll-action" part="scroll-action-next"><slot name="next-flipper">${t.nextFlipper instanceof Function?t.nextFlipper(e,t):t.nextFlipper??``}</slot></div></div>`)}</div>${Ct(e,t)}</template>`;function ha(e,t,n){return e.nodeType!==Node.TEXT_NODE||typeof e.nodeValue==`string`&&!!e.nodeValue.trim().length}let Ete=(e,t)=>T`<template class=" ${e=>e.readOnly?`readonly`:``}"><label part="label" for="control" class="${e=>e.defaultSlottedNodes&&e.defaultSlottedNodes.length?`label`:`label label__hidden`}"><slot ${bt({property:`defaultSlottedNodes`,filter:ha})}></slot></label><div class="root" part="root" ${k(`root`)}>${wt(e,t)}<div class="input-wrapper" part="input-wrapper"><input class="control" part="control" id="control" @input="${e=>e.handleTextInput()}" @change="${e=>e.handleChange()}" ?autofocus="${e=>e.autofocus}" ?disabled="${e=>e.disabled}" list="${e=>e.list}" maxlength="${e=>e.maxlength}" minlength="${e=>e.minlength}" pattern="${e=>e.pattern}" placeholder="${e=>e.placeholder}" ?readonly="${e=>e.readOnly}" ?required="${e=>e.required}" size="${e=>e.size}" ?spellcheck="${e=>e.spellcheck}" :value="${e=>e.value}" type="search" aria-atomic="${e=>e.ariaAtomic}" aria-busy="${e=>e.ariaBusy}" aria-controls="${e=>e.ariaControls}" aria-current="${e=>e.ariaCurrent}" aria-describedby="${e=>e.ariaDescribedby}" aria-details="${e=>e.ariaDetails}" aria-disabled="${e=>e.ariaDisabled}" aria-errormessage="${e=>e.ariaErrormessage}" aria-flowto="${e=>e.ariaFlowto}" aria-haspopup="${e=>e.ariaHaspopup}" aria-hidden="${e=>e.ariaHidden}" aria-invalid="${e=>e.ariaInvalid}" aria-keyshortcuts="${e=>e.ariaKeyshortcuts}" aria-label="${e=>e.ariaLabel}" aria-labelledby="${e=>e.ariaLabelledby}" aria-live="${e=>e.ariaLive}" aria-owns="${e=>e.ariaOwns}" aria-relevant="${e=>e.ariaRelevant}" aria-roledescription="${e=>e.ariaRoledescription}" ${k(`control`)}/><slot name="close-button"><button class="clear-button ${e=>e.value?``:`clear-button__hidden`}" part="clear-button" tabindex="-1" @click=${e=>e.handleClearInput()}><slot name="close-glyph"><svg width="9" height="9" viewBox="0 0 9 9" xmlns="http://www.w3.org/2000/svg"><path d="M0.146447 0.146447C0.338683 -0.0478972 0.645911 -0.0270359 0.853553 0.146447L4.5 3.793L8.14645 0.146447C8.34171 -0.0488155 8.65829 -0.0488155 8.85355 0.146447C9.04882 0.341709 9.04882 0.658291 8.85355 0.853553L5.207 4.5L8.85355 8.14645C9.05934 8.35223 9.03129 8.67582 8.85355 8.85355C8.67582 9.03129 8.35409 9.02703 8.14645 8.85355L4.5 5.207L0.853553 8.85355C0.658291 9.04882 0.341709 9.04882 0.146447 8.85355C-0.0488155 8.65829 -0.0488155 8.34171 0.146447 8.14645L3.793 4.5L0.146447 0.853553C-0.0268697 0.680237 -0.0457894 0.34079 0.146447 0.146447Z" /></svg></slot></button></slot></div>${Ct(e,t)}</div></template>`;var Dte=class extends P{},Ote=class extends pr(Dte){constructor(){super(...arguments),this.proxy=document.createElement(`input`)}},ga=class extends Ote{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&&x.queueUpdate(()=>{this.focus()})}validate(){super.validate(this.control)}handleTextInput(){this.value=this.control.value}handleClearInput(){this.value=``,this.control.focus(),this.handleChange()}handleChange(){this.$emit(`change`)}};M([D({attribute:`readonly`,mode:`boolean`})],ga.prototype,`readOnly`,void 0),M([D({mode:`boolean`})],ga.prototype,`autofocus`,void 0),M([D],ga.prototype,`placeholder`,void 0),M([D],ga.prototype,`list`,void 0),M([D({converter:E})],ga.prototype,`maxlength`,void 0),M([D({converter:E})],ga.prototype,`minlength`,void 0),M([D],ga.prototype,`pattern`,void 0),M([D({converter:E})],ga.prototype,`size`,void 0),M([D({mode:`boolean`})],ga.prototype,`spellcheck`,void 0),M([C],ga.prototype,`defaultSlottedNodes`,void 0);var _a=class{};sn(_a,Un),sn(ga,St,_a);var kte=class extends Gi{},Ate=class extends pr(kte){constructor(){super(...arguments),this.proxy=document.createElement(`select`)}},va=class extends Ate{constructor(){super(...arguments),this.open=!1,this.forcedPosition=!1,this.listboxId=Ln(`listbox-`),this.maxHeight=0}openChanged(e,t){if(this.collapsible){if(this.open){this.ariaControls=this.listboxId,this.ariaExpanded=`true`,this.setPositioning(),this.focusAndScrollOptionIntoView(),this.indexWhenOpened=this.selectedIndex,x.queueUpdate(()=>this.focus());return}this.ariaControls=``,this.ariaExpanded=`false`}}get collapsible(){return!(this.multiple||typeof this.size==`number`)}get value(){return S.track(this,`value`),this._value}set value(e){let t=`${this._value}`;if(this._options?.length){let t=this._options.findIndex(t=>t.value===e),n=this._options[this.selectedIndex]?.value??null,r=this._options[t]?.value??null;(t===-1||n!==r)&&(e=``,this.selectedIndex=t),e=this.firstSelectedOption?.value??e}t!==e&&(this._value=e,super.valueChanged(t,e),S.notify(this,`value`),this.updateDisplayValue())}updateValue(e){this.$fastController.isConnected&&(this.value=this.firstSelectedOption?.value??``),e&&(this.$emit(`input`),this.$emit(`change`,this,{bubbles:!0,composed:void 0}))}selectedIndexChanged(e,t){super.selectedIndexChanged(e,t),this.updateValue()}positionChanged(e,t){this.positionAttribute=t,this.setPositioning()}setPositioning(){let e=this.getBoundingClientRect(),t=window.innerHeight-e.bottom;this.position=this.forcedPosition?this.positionAttribute:e.top>t?Br.above:Br.below,this.positionAttribute=this.forcedPosition?this.positionAttribute:this.position,this.maxHeight=this.position===Br.above?~~e.top:~~t}get displayValue(){return S.track(this,`displayValue`),this.firstSelectedOption?.text??``}disabledChanged(e,t){super.disabledChanged&&super.disabledChanged(e,t),this.ariaDisabled=this.disabled?`true`:`false`}formResetCallback(){this.setProxyOptions(),super.setDefaultSelectedOption(),this.selectedIndex===-1&&(this.selectedIndex=0)}clickHandler(e){if(!this.disabled){if(this.open){let t=e.target.closest(`option,[role=option]`);if(t&&t.disabled)return}return super.clickHandler(e),this.open=this.collapsible&&!this.open,!this.open&&this.indexWhenOpened!==this.selectedIndex&&this.updateValue(!0),!0}}focusoutHandler(e){if(super.focusoutHandler(e),!this.open)return!0;let t=e.relatedTarget;if(this.isSameNode(t)){this.focus();return}this.options?.includes(t)||(this.open=!1,this.indexWhenOpened!==this.selectedIndex&&this.updateValue(!0))}handleChange(e,t){super.handleChange(e,t),t===`value`&&this.updateValue()}slottedOptionsChanged(e,t){this.options.forEach(e=>{S.getNotifier(e).unsubscribe(this,`value`)}),super.slottedOptionsChanged(e,t),this.options.forEach(e=>{S.getNotifier(e).subscribe(this,`value`)}),this.setProxyOptions(),this.updateValue()}mousedownHandler(e){return e.offsetX>=0&&e.offsetX<=this.listbox?.scrollWidth?super.mousedownHandler(e):this.collapsible}multipleChanged(e,t){super.multipleChanged(e,t),this.proxy&&(this.proxy.multiple=t)}selectedOptionsChanged(e,t){var n;super.selectedOptionsChanged(e,t),(n=this.options)==null||n.forEach((e,t)=>{let n=this.proxy?.options.item(t);n&&(n.selected=e.selected)})}setDefaultSelectedOption(){let e=(this.options??Array.from(this.children).filter(Rr.slottedOptionFilter))?.findIndex(e=>e.hasAttribute(`selected`)||e.selected||e.value===this.value);if(e!==-1){this.selectedIndex=e;return}this.selectedIndex=0}setProxyOptions(){this.proxy instanceof HTMLSelectElement&&this.options&&(this.proxy.options.length=0,this.options.forEach(e=>{let t=e.proxy||(e instanceof HTMLOptionElement?e.cloneNode():null);t&&this.proxy.options.add(t)}))}keydownHandler(e){super.keydownHandler(e);let t=e.key||e.key.charCodeAt(0);switch(t){case` `:e.preventDefault(),this.collapsible&&this.typeAheadExpired&&(this.open=!this.open);break;case Mn:case`End`:e.preventDefault();break;case An:e.preventDefault(),this.open=!this.open;break;case jn:this.collapsible&&this.open&&(e.preventDefault(),this.open=!1);break;case`Tab`:return this.collapsible&&this.open&&(e.preventDefault(),this.open=!1),!0}return!this.open&&this.indexWhenOpened!==this.selectedIndex&&(this.updateValue(!0),this.indexWhenOpened=this.selectedIndex),t!==`ArrowDown`&&t!==`ArrowUp`}connectedCallback(){super.connectedCallback(),this.forcedPosition=!!this.positionAttribute,this.addEventListener(`contentchange`,this.updateDisplayValue)}disconnectedCallback(){this.removeEventListener(`contentchange`,this.updateDisplayValue),super.disconnectedCallback()}sizeChanged(e,t){super.sizeChanged(e,t),this.proxy&&(this.proxy.size=t)}updateDisplayValue(){this.collapsible&&S.notify(this,`displayValue`)}};M([D({attribute:`open`,mode:`boolean`})],va.prototype,`open`,void 0),M([w],va.prototype,`collapsible`,null),M([C],va.prototype,`control`,void 0),M([D({attribute:`position`})],va.prototype,`positionAttribute`,void 0),M([C],va.prototype,`position`,void 0),M([C],va.prototype,`maxHeight`,void 0);var ya=class{};M([C],ya.prototype,`ariaControls`,void 0),sn(ya,zr),sn(va,St,ya);let ba=(e,t)=>T`<template class="${e=>[e.collapsible&&`collapsible`,e.collapsible&&e.open&&`open`,e.disabled&&`disabled`,e.collapsible&&e.position].filter(Boolean).join(` `)}" aria-activedescendant="${e=>e.ariaActiveDescendant}" aria-controls="${e=>e.ariaControls}" aria-disabled="${e=>e.ariaDisabled}" aria-expanded="${e=>e.ariaExpanded}" aria-haspopup="${e=>e.collapsible?`listbox`:null}" aria-multiselectable="${e=>e.ariaMultiSelectable}" ?open="${e=>e.open}" role="combobox" tabindex="${e=>e.disabled?null:`0`}" @click="${(e,t)=>e.clickHandler(t.event)}" @focusin="${(e,t)=>e.focusinHandler(t.event)}" @focusout="${(e,t)=>e.focusoutHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}" @mousedown="${(e,t)=>e.mousedownHandler(t.event)}">${A(e=>e.collapsible,T`<div class="control" part="control" ?disabled="${e=>e.disabled}" ${k(`control`)}>${wt(e,t)}<slot name="button-container"><div class="selected-value" part="selected-value"><slot name="selected-value">${e=>e.displayValue}</slot></div><div aria-hidden="true" class="indicator" part="indicator"><slot name="indicator">${t.indicator||``}</slot></div></slot>${Ct(e,t)}</div>`)}<div class="listbox" id="${e=>e.listboxId}" part="listbox" role="listbox" ?disabled="${e=>e.disabled}" ?hidden="${e=>e.collapsible?!e.open:!1}" ${k(`listbox`)}><slot ${bt({filter:Rr.slottedOptionFilter,flatten:!0,property:`slottedOptions`})}></slot></div></template>`,xa=(e,t)=>T`<template class="${e=>e.shape===`circle`?`circle`:`rect`}" pattern="${e=>e.pattern}" ?shimmer="${e=>e.shimmer}">${A(e=>e.shimmer===!0,T`<span class="shimmer"></span>`)}<object type="image/svg+xml" data="${e=>e.pattern}" role="presentation"><img class="pattern" src="${e=>e.pattern}" /></object><slot></slot></template>`;var Sa=class extends P{constructor(){super(...arguments),this.shape=`rect`}};M([D],Sa.prototype,`fill`,void 0),M([D],Sa.prototype,`shape`,void 0),M([D],Sa.prototype,`pattern`,void 0),M([D({mode:`boolean`})],Sa.prototype,`shimmer`,void 0);let Ca=(e,t)=>T`<template aria-disabled="${e=>e.disabled}" class="${e=>e.sliderOrientation||un.horizontal} ${e=>e.disabled?`disabled`:``}"><div ${k(`root`)}part="root" class="root" style="${e=>e.positionStyle}"><div class="container">${A(e=>!e.hideMark,T`<div class="mark"></div>`)}<div class="label"><slot></slot></div></div></div></template>`;function wa(e,t,n,r){let i=Fn(0,1,(e-t)/(n-t));return r===Pn.rtl&&(i=1-i),i}let Ta={min:0,max:0,direction:Pn.ltr,orientation:un.horizontal,disabled:!1};var Ea=class extends P{constructor(){super(...arguments),this.hideMark=!1,this.sliderDirection=Pn.ltr,this.getSliderConfiguration=()=>{if(!this.isSliderConfig(this.parentNode))this.sliderDirection=Ta.direction||Pn.ltr,this.sliderOrientation=Ta.orientation||un.horizontal,this.sliderMaxPosition=Ta.max,this.sliderMinPosition=Ta.min;else{let{min:e,max:t,direction:n,orientation:r,disabled:i}=this.parentNode;i!==void 0&&(this.disabled=i),this.sliderDirection=n||Pn.ltr,this.sliderOrientation=r||un.horizontal,this.sliderMaxPosition=t,this.sliderMinPosition=e}},this.positionAsStyle=()=>{let e=this.sliderDirection?this.sliderDirection:Pn.ltr,t=wa(Number(this.position),Number(this.sliderMinPosition),Number(this.sliderMaxPosition)),n=Math.round((1-t)*100),r=Math.round(t*100);return Number.isNaN(r)&&Number.isNaN(n)&&(n=50,r=50),this.sliderOrientation===un.horizontal?e===Pn.rtl?`right: ${r}%; left: ${n}%;`:`left: ${r}%; right: ${n}%;`:`top: ${r}%; bottom: ${n}%;`}}positionChanged(){this.positionStyle=this.positionAsStyle()}sliderOrientationChanged(){}connectedCallback(){super.connectedCallback(),this.getSliderConfiguration(),this.positionStyle=this.positionAsStyle(),this.notifier=S.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(e,t){switch(t){case`direction`:this.sliderDirection=e.direction;break;case`orientation`:this.sliderOrientation=e.orientation;break;case`max`:this.sliderMaxPosition=e.max;break;case`min`:this.sliderMinPosition=e.min}this.positionStyle=this.positionAsStyle()}isSliderConfig(e){return e.max!==void 0&&e.min!==void 0}};M([C],Ea.prototype,`positionStyle`,void 0),M([D],Ea.prototype,`position`,void 0),M([D({attribute:`hide-mark`,mode:`boolean`})],Ea.prototype,`hideMark`,void 0),M([D({attribute:`disabled`,mode:`boolean`})],Ea.prototype,`disabled`,void 0),M([C],Ea.prototype,`sliderOrientation`,void 0),M([C],Ea.prototype,`sliderMinPosition`,void 0),M([C],Ea.prototype,`sliderMaxPosition`,void 0),M([C],Ea.prototype,`sliderDirection`,void 0);let jte=(e,t)=>T`<template role="slider" class="${e=>e.readOnly?`readonly`:``} ${e=>e.orientation||un.horizontal}" tabindex="${e=>e.disabled?null:0}" aria-valuetext="${e=>e.valueTextFormatter(e.value)}" aria-valuenow="${e=>e.value}" aria-valuemin="${e=>e.min}" aria-valuemax="${e=>e.max}" aria-disabled="${e=>e.disabled?!0:void 0}" aria-readonly="${e=>e.readOnly?!0:void 0}" aria-orientation="${e=>e.orientation}" class="${e=>e.orientation}"><div part="positioning-region" class="positioning-region"><div ${k(`track`)}part="track-container" class="track"><slot name="track"></slot><div part="track-start" class="track-start" style="${e=>e.position}"><slot name="track-start"></slot></div></div><slot></slot><div ${k(`thumb`)}part="thumb-container" class="thumb-container" style="${e=>e.position}"><slot name="thumb">${t.thumb||``}</slot></div></div></template>`;var Mte=class extends P{},Nte=class extends pr(Mte){constructor(){super(...arguments),this.proxy=document.createElement(`input`)}};let Pte={singleValue:`single-value`};var Da=class extends Nte{constructor(){super(...arguments),this.direction=Pn.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=un.horizontal,this.mode=Pte.singleValue,this.keypressHandler=e=>{if(!this.readOnly){if(e.key===`Home`)e.preventDefault(),this.value=`${this.min}`;else if(e.key===`End`)e.preventDefault(),this.value=`${this.max}`;else if(!e.shiftKey)switch(e.key){case On:case kn:e.preventDefault(),this.increment();break;case Dn:case En:e.preventDefault(),this.decrement()}}},this.setupTrackConstraints=()=>{let e=this.track.getBoundingClientRect();this.trackWidth=this.track.clientWidth,this.trackMinWidth=this.track.clientLeft,this.trackHeight=e.bottom,this.trackMinHeight=e.top,this.trackLeft=this.getBoundingClientRect().left,this.trackWidth===0&&(this.trackWidth=1)},this.setupListeners=(e=!1)=>{let t=`${e?`remove`:`add`}EventListener`;this[t](`keydown`,this.keypressHandler),this[t](`mousedown`,this.handleMouseDown),this.thumb[t](`mousedown`,this.handleThumbMouseDown,{passive:!0}),this.thumb[t](`touchstart`,this.handleThumbMouseDown,{passive:!0}),e&&(this.handleMouseDown(null),this.handleThumbMouseDown(null))},this.initialValue=``,this.handleThumbMouseDown=e=>{if(e){if(this.readOnly||this.disabled||e.defaultPrevented)return;e.target.focus()}let t=`${e===null?`remove`:`add`}EventListener`;window[t](`mouseup`,this.handleWindowMouseUp),window[t](`mousemove`,this.handleMouseMove,{passive:!0}),window[t](`touchmove`,this.handleMouseMove,{passive:!0}),window[t](`touchend`,this.handleWindowMouseUp),this.isDragging=e!==null},this.handleMouseMove=e=>{if(this.readOnly||this.disabled||e.defaultPrevented)return;let t=window.TouchEvent&&e instanceof TouchEvent?e.touches[0]:e,n=this.orientation===un.horizontal?t.pageX-document.documentElement.scrollLeft-this.trackLeft:t.pageY-document.documentElement.scrollTop;this.value=`${this.calculateNewValue(n)}`},this.calculateNewValue=e=>{let t=wa(e,this.orientation===un.horizontal?this.trackMinWidth:this.trackMinHeight,this.orientation===un.horizontal?this.trackWidth:this.trackHeight,this.direction),n=(this.max-this.min)*t+this.min;return this.convertToConstrainedValue(n)},this.handleWindowMouseUp=e=>{this.stopDragging()},this.stopDragging=()=>{this.isDragging=!1,this.handleMouseDown(null),this.handleThumbMouseDown(null)},this.handleMouseDown=e=>{let t=`${e===null?`remove`:`add`}EventListener`;if((e===null||!this.disabled&&!this.readOnly)&&(window[t](`mouseup`,this.handleWindowMouseUp),window.document[t](`mouseleave`,this.handleWindowMouseUp),window[t](`mousemove`,this.handleMouseMove),e)){e.preventDefault(),this.setupTrackConstraints(),e.target.focus();let t=this.orientation===un.horizontal?e.pageX-document.documentElement.scrollLeft-this.trackLeft:e.pageY-document.documentElement.scrollTop;this.value=`${this.calculateNewValue(t)}`}},this.convertToConstrainedValue=e=>{isNaN(e)&&(e=this.min);let t=e-this.min,n=Math.round(t/this.step),r=t-n*(this.stepMultiplier*this.step)/this.stepMultiplier;return t=r>=Number(this.step)/2?t-r+Number(this.step):t-r,t+this.min}}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}get valueAsNumber(){return parseFloat(super.value)}set valueAsNumber(e){this.value=e.toString()}valueChanged(e,t){super.valueChanged(e,t),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=qn(this),this.updateStepMultiplier(),this.setupTrackConstraints(),this.setupListeners(),this.setupDefaultValue(),this.setThumbPositionForOrientation(this.direction)}disconnectedCallback(){this.setupListeners(!0)}increment(){let e=this.direction!==Pn.rtl&&this.orientation!==un.vertical?Number(this.value)+Number(this.step):Number(this.value)-Number(this.step),t=this.convertToConstrainedValue(e),n=t<Number(this.max)?`${t}`:`${this.max}`;this.value=n}decrement(){let e=this.direction!==Pn.rtl&&this.orientation!==un.vertical?Number(this.value)-Number(this.step):Number(this.value)+Number(this.step),t=this.convertToConstrainedValue(e),n=t>Number(this.min)?`${t}`:`${this.min}`;this.value=n}setThumbPositionForOrientation(e){let t=(1-wa(Number(this.value),Number(this.min),Number(this.max),e))*100;this.position=this.orientation===un.horizontal?this.isDragging?`right: ${t}%; transition: none;`:`right: ${t}%; transition: all 0.2s ease;`:this.isDragging?`bottom: ${t}%; transition: none;`:`bottom: ${t}%; transition: all 0.2s ease;`}updateStepMultiplier(){let e=this.step+``,t=this.step%1?e.length-e.indexOf(`.`)-1:0;this.stepMultiplier=10**t}get midpoint(){return`${this.convertToConstrainedValue((this.max+this.min)/2)}`}setupDefaultValue(){if(typeof this.value==`string`){if(this.value.length===0)this.initialValue=this.midpoint;else{let e=parseFloat(this.value);!Number.isNaN(e)&&(e<this.min||e>this.max)&&(this.value=this.midpoint)}}}};M([D({attribute:`readonly`,mode:`boolean`})],Da.prototype,`readOnly`,void 0),M([C],Da.prototype,`direction`,void 0),M([C],Da.prototype,`isDragging`,void 0),M([C],Da.prototype,`position`,void 0),M([C],Da.prototype,`trackWidth`,void 0),M([C],Da.prototype,`trackMinWidth`,void 0),M([C],Da.prototype,`trackHeight`,void 0),M([C],Da.prototype,`trackLeft`,void 0),M([C],Da.prototype,`trackMinHeight`,void 0),M([C],Da.prototype,`valueTextFormatter`,void 0),M([D({converter:E})],Da.prototype,`min`,void 0),M([D({converter:E})],Da.prototype,`max`,void 0),M([D({converter:E})],Da.prototype,`step`,void 0),M([D],Da.prototype,`orientation`,void 0),M([D],Da.prototype,`mode`,void 0);let Oa=(e,t)=>T`<template role="switch" aria-checked="${e=>e.checked}" aria-disabled="${e=>e.disabled}" aria-readonly="${e=>e.readOnly}" tabindex="${e=>e.disabled?null:0}" @keypress="${(e,t)=>e.keypressHandler(t.event)}" @click="${(e,t)=>e.clickHandler(t.event)}" class="${e=>e.checked?`checked`:``}"><label part="label" class="${e=>e.defaultSlottedNodes&&e.defaultSlottedNodes.length?`label`:`label label__hidden`}"><slot ${bt(`defaultSlottedNodes`)}></slot></label><div part="switch" class="switch"><slot name="switch">${t.switch||``}</slot></div><span class="status-message" part="status-message"><span class="checked-message" part="checked-message"><slot name="checked-message"></slot></span><span class="unchecked-message" part="unchecked-message"><slot name="unchecked-message"></slot></span></span></template>`;var Fte=class extends P{},Ite=class extends mr(Fte){constructor(){super(...arguments),this.proxy=document.createElement(`input`)}},ka=class extends Ite{constructor(){super(),this.initialValue=`on`,this.keypressHandler=e=>{if(!this.readOnly)switch(e.key){case An:case` `:this.checked=!this.checked}},this.clickHandler=e=>{!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(e,t){super.checkedChanged(e,t),this.checked?this.classList.add(`checked`):this.classList.remove(`checked`)}};M([D({attribute:`readonly`,mode:`boolean`})],ka.prototype,`readOnly`,void 0),M([C],ka.prototype,`defaultSlottedNodes`,void 0);let Aa=(e,t)=>T`<template slot="tabpanel" role="tabpanel"><slot></slot></template>`;var ja=class extends P{};let Ma=(e,t)=>T`<template slot="tab" role="tab" aria-disabled="${e=>e.disabled}"><slot></slot></template>`;var Na=class extends P{};M([D({mode:`boolean`})],Na.prototype,`disabled`,void 0);let Pa=(e,t)=>T`<template class="${e=>e.orientation}">${wt(e,t)}<div class="tablist" part="tablist" role="tablist"><slot class="tab" name="tab" part="tab" ${bt(`tabs`)}></slot>${A(e=>e.showActiveIndicator,T`<div ${k(`activeIndicatorRef`)}class="activeIndicator" part="activeIndicator"></div>`)}</div>${Ct(e,t)}<div class="tabpanel" part="tabpanel"><slot name="tabpanel" ${bt(`tabpanels`)}></slot></div></template>`,Fa={vertical:`vertical`,horizontal:`horizontal`};var Ia=class extends P{constructor(){super(...arguments),this.orientation=Fa.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=e=>e.getAttribute(`aria-disabled`)===`true`,this.isHiddenElement=e=>e.hasAttribute(`hidden`),this.isFocusableElement=e=>!this.isDisabledElement(e)&&!this.isHiddenElement(e),this.setTabs=()=>{let e=`gridColumn`,t=`gridRow`,n=this.isHorizontal()?e:t;this.activeTabIndex=this.getActiveIndex(),this.showActiveIndicator=!1,this.tabs.forEach((r,i)=>{if(r.slot===`tab`){let e=this.activeTabIndex===i&&this.isFocusableElement(r);this.activeindicator&&this.isFocusableElement(r)&&(this.showActiveIndicator=!0);let t=this.tabIds[i],n=this.tabpanelIds[i];r.setAttribute(`id`,t),r.setAttribute(`aria-selected`,e?`true`:`false`),r.setAttribute(`aria-controls`,n),r.addEventListener(`click`,this.handleTabClick),r.addEventListener(`keydown`,this.handleTabKeyDown),r.setAttribute(`tabindex`,e?`0`:`-1`),e&&(this.activetab=r,this.activeid=t)}r.style[e]=``,r.style[t]=``,r.style[n]=`${i+1}`,this.isHorizontal()?r.classList.remove(`vertical`):r.classList.add(`vertical`)})},this.setTabPanels=()=>{this.tabpanels.forEach((e,t)=>{let n=this.tabIds[t],r=this.tabpanelIds[t];e.setAttribute(`id`,r),e.setAttribute(`aria-labelledby`,n),this.activeTabIndex===t?e.removeAttribute(`hidden`):e.setAttribute(`hidden`,``)})},this.handleTabClick=e=>{let t=e.currentTarget;t.nodeType===1&&this.isFocusableElement(t)&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(t),this.setComponent())},this.handleTabKeyDown=e=>{if(this.isHorizontal())switch(e.key){case Dn:e.preventDefault(),this.adjustBackward(e);break;case On:e.preventDefault(),this.adjustForward(e)}else switch(e.key){case kn:e.preventDefault(),this.adjustBackward(e);break;case En:e.preventDefault(),this.adjustForward(e)}switch(e.key){case Mn:e.preventDefault(),this.adjust(-this.activeTabIndex);break;case`End`:e.preventDefault(),this.adjust(this.tabs.length-this.activeTabIndex-1)}},this.adjustForward=e=>{let t=this.tabs,n=0;for(n=this.activetab?t.indexOf(this.activetab)+1:1,n===t.length&&(n=0);n<t.length&&t.length>1;)if(this.isFocusableElement(t[n])){this.moveToTabByIndex(t,n);break}else if(this.activetab&&n===t.indexOf(this.activetab))break;else n+1>=t.length?n=0:n+=1},this.adjustBackward=e=>{let t=this.tabs,n=0;for(n=this.activetab?t.indexOf(this.activetab)-1:0,n=n<0?t.length-1:n;n>=0&&t.length>1;)if(this.isFocusableElement(t[n])){this.moveToTabByIndex(t,n);break}else n-1<0?n=t.length-1:--n},this.moveToTabByIndex=(e,t)=>{let n=e[t];this.activetab=n,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=t,n.focus(),this.setComponent()}}orientationChanged(){this.$fastController.isConnected&&(this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}activeidChanged(e,t){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.prevActiveTabIndex=this.tabs.findIndex(t=>t.id===e),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}tabsChanged(){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}tabpanelsChanged(){this.$fastController.isConnected&&this.tabpanels.length<=this.tabs.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}getActiveIndex(){return this.activeid===void 0||this.tabIds.indexOf(this.activeid)===-1?0:this.tabIds.indexOf(this.activeid)}getTabIds(){return this.tabs.map(e=>e.getAttribute(`id`)??`tab-${Ln()}`)}getTabPanelIds(){return this.tabpanels.map(e=>e.getAttribute(`id`)??`panel-${Ln()}`)}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}isHorizontal(){return this.orientation===Fa.horizontal}handleActiveIndicatorPosition(){this.showActiveIndicator&&this.activeindicator&&this.activeTabIndex!==this.prevActiveTabIndex&&(this.ticking?this.ticking=!1:(this.ticking=!0,this.animateActiveIndicator()))}animateActiveIndicator(){this.ticking=!0;let e=this.isHorizontal()?`gridColumn`:`gridRow`,t=this.isHorizontal()?`translateX`:`translateY`,n=this.isHorizontal()?`offsetLeft`:`offsetTop`,r=this.activeIndicatorRef[n];this.activeIndicatorRef.style[e]=`${this.activeTabIndex+1}`;let i=this.activeIndicatorRef[n];this.activeIndicatorRef.style[e]=`${this.prevActiveTabIndex+1}`;let a=i-r;this.activeIndicatorRef.style.transform=`${t}(${a}px)`,this.activeIndicatorRef.classList.add(`activeIndicatorTransition`),this.activeIndicatorRef.addEventListener(`transitionend`,()=>{this.ticking=!1,this.activeIndicatorRef.style[e]=`${this.activeTabIndex+1}`,this.activeIndicatorRef.style.transform=`${t}(0px)`,this.activeIndicatorRef.classList.remove(`activeIndicatorTransition`)})}adjust(e){let t=this.tabs.filter(e=>this.isFocusableElement(e)),n=t.indexOf(this.activetab),r=Fn(0,t.length-1,n+e),i=this.tabs.indexOf(t[r]);i>-1&&this.moveToTabByIndex(this.tabs,i)}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}};M([D],Ia.prototype,`orientation`,void 0),M([D],Ia.prototype,`activeid`,void 0),M([C],Ia.prototype,`tabs`,void 0),M([C],Ia.prototype,`tabpanels`,void 0),M([D({mode:`boolean`})],Ia.prototype,`activeindicator`,void 0),M([C],Ia.prototype,`activeIndicatorRef`,void 0),M([C],Ia.prototype,`showActiveIndicator`,void 0),sn(Ia,St);var Lte=class extends P{},Rte=class extends pr(Lte){constructor(){super(...arguments),this.proxy=document.createElement(`textarea`)}};let La={none:`none`,both:`both`,horizontal:`horizontal`,vertical:`vertical`};var Ra=class extends Rte{constructor(){super(...arguments),this.resize=La.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)}select(){this.control.select(),this.$emit(`select`)}handleChange(){this.$emit(`change`)}validate(){super.validate(this.control)}};M([D({mode:`boolean`})],Ra.prototype,`readOnly`,void 0),M([D],Ra.prototype,`resize`,void 0),M([D({mode:`boolean`})],Ra.prototype,`autofocus`,void 0),M([D({attribute:`form`})],Ra.prototype,`formId`,void 0),M([D],Ra.prototype,`list`,void 0),M([D({converter:E})],Ra.prototype,`maxlength`,void 0),M([D({converter:E})],Ra.prototype,`minlength`,void 0),M([D],Ra.prototype,`name`,void 0),M([D],Ra.prototype,`placeholder`,void 0),M([D({converter:E,mode:`fromView`})],Ra.prototype,`cols`,void 0),M([D({converter:E,mode:`fromView`})],Ra.prototype,`rows`,void 0),M([D({mode:`boolean`})],Ra.prototype,`spellcheck`,void 0),M([C],Ra.prototype,`defaultSlottedNodes`,void 0),sn(Ra,ia);let za=(e,t)=>T`<template class=" ${e=>e.readOnly?`readonly`:``} ${e=>e.resize===La.none?``:`resize-${e.resize}`}"><label part="label" for="control" class="${e=>e.defaultSlottedNodes&&e.defaultSlottedNodes.length?`label`:`label label__hidden`}"><slot ${bt(`defaultSlottedNodes`)}></slot></label><textarea part="control" class="control" id="control" ?autofocus="${e=>e.autofocus}" cols="${e=>e.cols}" ?disabled="${e=>e.disabled}" form="${e=>e.form}" list="${e=>e.list}" maxlength="${e=>e.maxlength}" minlength="${e=>e.minlength}" name="${e=>e.name}" placeholder="${e=>e.placeholder}" ?readonly="${e=>e.readOnly}" ?required="${e=>e.required}" rows="${e=>e.rows}" ?spellcheck="${e=>e.spellcheck}" :value="${e=>e.value}" aria-atomic="${e=>e.ariaAtomic}" aria-busy="${e=>e.ariaBusy}" aria-controls="${e=>e.ariaControls}" aria-current="${e=>e.ariaCurrent}" aria-describedby="${e=>e.ariaDescribedby}" aria-details="${e=>e.ariaDetails}" aria-disabled="${e=>e.ariaDisabled}" aria-errormessage="${e=>e.ariaErrormessage}" aria-flowto="${e=>e.ariaFlowto}" aria-haspopup="${e=>e.ariaHaspopup}" aria-hidden="${e=>e.ariaHidden}" aria-invalid="${e=>e.ariaInvalid}" aria-keyshortcuts="${e=>e.ariaKeyshortcuts}" aria-label="${e=>e.ariaLabel}" aria-labelledby="${e=>e.ariaLabelledby}" aria-live="${e=>e.ariaLive}" aria-owns="${e=>e.ariaOwns}" aria-relevant="${e=>e.ariaRelevant}" aria-roledescription="${e=>e.ariaRoledescription}" @input="${(e,t)=>e.handleTextInput()}" @change="${e=>e.handleChange()}" ${k(`control`)}></textarea></template>`,zte=(e,t)=>T`<template class=" ${e=>e.readOnly?`readonly`:``}"><label part="label" for="control" class="${e=>e.defaultSlottedNodes&&e.defaultSlottedNodes.length?`label`:`label label__hidden`}"><slot ${bt({property:`defaultSlottedNodes`,filter:ha})}></slot></label><div class="root" part="root">${wt(e,t)}<input class="control" part="control" id="control" @input="${e=>e.handleTextInput()}" @change="${e=>e.handleChange()}" ?autofocus="${e=>e.autofocus}" ?disabled="${e=>e.disabled}" list="${e=>e.list}" maxlength="${e=>e.maxlength}" minlength="${e=>e.minlength}" pattern="${e=>e.pattern}" placeholder="${e=>e.placeholder}" ?readonly="${e=>e.readOnly}" ?required="${e=>e.required}" size="${e=>e.size}" ?spellcheck="${e=>e.spellcheck}" :value="${e=>e.value}" type="${e=>e.type}" aria-atomic="${e=>e.ariaAtomic}" aria-busy="${e=>e.ariaBusy}" aria-controls="${e=>e.ariaControls}" aria-current="${e=>e.ariaCurrent}" aria-describedby="${e=>e.ariaDescribedby}" aria-details="${e=>e.ariaDetails}" aria-disabled="${e=>e.ariaDisabled}" aria-errormessage="${e=>e.ariaErrormessage}" aria-flowto="${e=>e.ariaFlowto}" aria-haspopup="${e=>e.ariaHaspopup}" aria-hidden="${e=>e.ariaHidden}" aria-invalid="${e=>e.ariaInvalid}" aria-keyshortcuts="${e=>e.ariaKeyshortcuts}" aria-label="${e=>e.ariaLabel}" aria-labelledby="${e=>e.ariaLabelledby}" aria-live="${e=>e.ariaLive}" aria-owns="${e=>e.ariaOwns}" aria-relevant="${e=>e.ariaRelevant}" aria-roledescription="${e=>e.ariaRoledescription}" ${k(`control`)}/>${Ct(e,t)}</div></template>`,Ba=(e,t)=>T`<template aria-label="${e=>e.ariaLabel}" aria-labelledby="${e=>e.ariaLabelledby}" aria-orientation="${e=>e.orientation}" orientation="${e=>e.orientation}" role="toolbar" @mousedown="${(e,t)=>e.mouseDownHandler(t.event)}" @focusin="${(e,t)=>e.focusinHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}" ${xt({property:`childItems`,attributeFilter:[`disabled`,`hidden`],filter:vt(),subtree:!0})}><slot name="label"></slot><div class="positioning-region" part="positioning-region">${wt(e,t)}<slot ${bt({filter:vt(),property:`slottedItems`})}></slot>${Ct(e,t)}</div></template>`;function Bte(e){let t=e.getRootNode();return t instanceof ShadowRoot?t.activeElement:document.activeElement}let Va=Object.freeze({[Nn.ArrowUp]:{[un.vertical]:-1},[Nn.ArrowDown]:{[un.vertical]:1},[Nn.ArrowLeft]:{[un.horizontal]:{[Pn.ltr]:-1,[Pn.rtl]:1}},[Nn.ArrowRight]:{[un.horizontal]:{[Pn.ltr]:1,[Pn.rtl]:-1}}});var Ha=class e extends P{constructor(){super(...arguments),this._activeIndex=0,this.direction=Pn.ltr,this.orientation=un.horizontal}get activeIndex(){return S.track(this,`activeIndex`),this._activeIndex}set activeIndex(e){this.$fastController.isConnected&&(this._activeIndex=Fn(0,this.focusableElements.length-1,e),S.notify(this,`activeIndex`))}slottedItemsChanged(){this.$fastController.isConnected&&this.reduceFocusableElements()}mouseDownHandler(e){let t=this.focusableElements?.findIndex(t=>t.contains(e.target));return t>-1&&this.activeIndex!==t&&this.setFocusedElement(t),!0}childItemsChanged(e,t){this.$fastController.isConnected&&this.reduceFocusableElements()}connectedCallback(){super.connectedCallback(),this.direction=qn(this)}focusinHandler(e){let t=e.relatedTarget;t&&!this.contains(t)&&this.setFocusedElement()}getDirectionalIncrementer(e){return Va[e]?.[this.orientation]?.[this.direction]??Va[e]?.[this.orientation]??0}keydownHandler(e){let t=e.key;if(!(t in Nn)||e.defaultPrevented||e.shiftKey)return!0;let n=this.getDirectionalIncrementer(t);if(!n)return!e.target.closest(`[role=radiogroup]`);let r=this.activeIndex+n;return this.focusableElements[r]&&e.preventDefault(),this.setFocusedElement(r),!0}get allSlottedItems(){return[...this.start.assignedElements(),...this.slottedItems,...this.end.assignedElements()]}reduceFocusableElements(){let t=this.focusableElements?.[this.activeIndex];this.focusableElements=this.allSlottedItems.reduce(e.reduceFocusableItems,[]);let n=this.focusableElements.indexOf(t);this.activeIndex=Math.max(0,n),this.setFocusableElements()}setFocusedElement(e=this.activeIndex){this.activeIndex=e,this.setFocusableElements(),this.focusableElements[this.activeIndex]&&this.contains(Bte(this))&&this.focusableElements[this.activeIndex].focus()}static reduceFocusableItems(t,n){let r=n.getAttribute(`role`)===`radio`,i=n.$fastController?.definition.shadowOptions?.delegatesFocus,a=Array.from(n.shadowRoot?.querySelectorAll(`*`)??[]).some(e=>Ni(e));return!n.hasAttribute(`disabled`)&&!n.hasAttribute(`hidden`)&&(Ni(n)||r||i||a)?(t.push(n),t):n.childElementCount?t.concat(Array.from(n.children).reduce(e.reduceFocusableItems,[])):t}setFocusableElements(){this.$fastController.isConnected&&this.focusableElements.length>0&&this.focusableElements.forEach((e,t)=>{e.tabIndex=this.activeIndex===t?0:-1})}};M([C],Ha.prototype,`direction`,void 0),M([D],Ha.prototype,`orientation`,void 0),M([C],Ha.prototype,`slottedItems`,void 0),M([C],Ha.prototype,`slottedLabel`,void 0),M([C],Ha.prototype,`childItems`,void 0);var Ua=class{};M([D({attribute:`aria-labelledby`})],Ua.prototype,`ariaLabelledby`,void 0),M([D({attribute:`aria-label`})],Ua.prototype,`ariaLabel`,void 0),sn(Ua,Un),sn(Ha,St,Ua);let Wa=(e,t)=>T` ${A(e=>e.tooltipVisible,T`<${e.tagFor(Jn)}fixed-placement="true" auto-update-mode="${e=>e.autoUpdateMode}" vertical-positioning-mode="${e=>e.verticalPositioningMode}" vertical-default-position="${e=>e.verticalDefaultPosition}" vertical-inset="${e=>e.verticalInset}" vertical-scaling="${e=>e.verticalScaling}" horizontal-positioning-mode="${e=>e.horizontalPositioningMode}" horizontal-default-position="${e=>e.horizontalDefaultPosition}" horizontal-scaling="${e=>e.horizontalScaling}" horizontal-inset="${e=>e.horizontalInset}" vertical-viewport-lock="${e=>e.horizontalViewportLock}" horizontal-viewport-lock="${e=>e.verticalViewportLock}" dir="${e=>e.currentDirection}" ${k(`region`)}><div class="tooltip" part="tooltip" role="tooltip"><slot></slot></div></${e.tagFor(Jn)}>`)} `,Ga={top:`top`,right:`right`,bottom:`bottom`,left:`left`,start:`start`,end:`end`,topLeft:`top-left`,topRight:`top-right`,bottomLeft:`bottom-left`,bottomRight:`bottom-right`,topStart:`top-start`,topEnd:`top-end`,bottomStart:`bottom-start`,bottomEnd:`bottom-end`};var Ka=class extends P{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=Pn.ltr,this.showDelayTimer=null,this.hideDelayTimer=null,this.isAnchorHoveredFocused=!1,this.isRegionHovered=!1,this.handlePositionChange=e=>{this.classList.toggle(`top`,this.region.verticalPosition===`start`),this.classList.toggle(`bottom`,this.region.verticalPosition===`end`),this.classList.toggle(`inset-top`,this.region.verticalPosition===`insetStart`),this.classList.toggle(`inset-bottom`,this.region.verticalPosition===`insetEnd`),this.classList.toggle(`center-vertical`,this.region.verticalPosition===`center`),this.classList.toggle(`left`,this.region.horizontalPosition===`start`),this.classList.toggle(`right`,this.region.horizontalPosition===`end`),this.classList.toggle(`inset-left`,this.region.horizontalPosition===`insetStart`),this.classList.toggle(`inset-right`,this.region.horizontalPosition===`insetEnd`),this.classList.toggle(`center-horizontal`,this.region.horizontalPosition===`center`)},this.handleRegionMouseOver=e=>{this.isRegionHovered=!0},this.handleRegionMouseOut=e=>{this.isRegionHovered=!1,this.startHideDelayTimer()},this.handleAnchorMouseOver=e=>{if(this.tooltipVisible){this.isAnchorHoveredFocused=!0;return}this.startShowDelayTimer()},this.handleAnchorMouseOut=e=>{this.isAnchorHoveredFocused=!1,this.clearShowDelayTimer(),this.startHideDelayTimer()},this.handleAnchorFocusIn=e=>{this.startShowDelayTimer()},this.handleAnchorFocusOut=e=>{this.isAnchorHoveredFocused=!1,this.clearShowDelayTimer(),this.startHideDelayTimer()},this.startHideDelayTimer=()=>{this.clearHideDelayTimer(),this.tooltipVisible&&(this.hideDelayTimer=window.setTimeout(()=>{this.updateTooltipVisibility()},60))},this.clearHideDelayTimer=()=>{this.hideDelayTimer!==null&&(clearTimeout(this.hideDelayTimer),this.hideDelayTimer=null)},this.startShowDelayTimer=()=>{if(!this.isAnchorHoveredFocused){if(this.delay>1){this.showDelayTimer===null&&(this.showDelayTimer=window.setTimeout(()=>{this.startHover()},this.delay));return}this.startHover()}},this.startHover=()=>{this.isAnchorHoveredFocused=!0,this.updateTooltipVisibility()},this.clearShowDelayTimer=()=>{this.showDelayTimer!==null&&(clearTimeout(this.showDelayTimer),this.showDelayTimer=null)},this.getAnchor=()=>{let e=this.getRootNode();return e instanceof ShadowRoot?e.getElementById(this.anchor):document.getElementById(this.anchor)},this.handleDocumentKeydown=e=>{if(!e.defaultPrevented&&this.tooltipVisible)switch(e.key){case jn:this.isAnchorHoveredFocused=!1,this.updateTooltipVisibility(),this.$emit(`dismiss`)}},this.updateTooltipVisibility=()=>{if(this.visible===!1)this.hideTooltip();else if(this.visible===!0){this.showTooltip();return}else{if(this.isAnchorHoveredFocused||this.isRegionHovered){this.showTooltip();return}this.hideTooltip()}},this.showTooltip=()=>{this.tooltipVisible||(this.currentDirection=qn(this),this.tooltipVisible=!0,document.addEventListener(`keydown`,this.handleDocumentKeydown),x.queueUpdate(this.setRegionProps))},this.hideTooltip=()=>{this.tooltipVisible&&(this.clearHideDelayTimer(),this.region!==null&&this.region!==void 0&&(this.region.removeEventListener(`positionchange`,this.handlePositionChange),this.region.viewportElement=null,this.region.anchorElement=null,this.region.removeEventListener(`mouseover`,this.handleRegionMouseOver),this.region.removeEventListener(`mouseout`,this.handleRegionMouseOut)),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),this.region.addEventListener(`mouseover`,this.handleRegionMouseOver,{passive:!0}),this.region.addEventListener(`mouseout`,this.handleRegionMouseOut,{passive:!0}))}}visibleChanged(){this.$fastController.isConnected&&(this.updateTooltipVisibility(),this.updateLayout())}anchorChanged(){this.$fastController.isConnected&&(this.anchorElement=this.getAnchor())}positionChanged(){this.$fastController.isConnected&&this.updateLayout()}anchorElementChanged(e){if(this.$fastController.isConnected){if(e!=null&&(e.removeEventListener(`mouseover`,this.handleAnchorMouseOver),e.removeEventListener(`mouseout`,this.handleAnchorMouseOut),e.removeEventListener(`focusin`,this.handleAnchorFocusIn),e.removeEventListener(`focusout`,this.handleAnchorFocusOut)),this.anchorElement!==null&&this.anchorElement!==void 0){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});let e=this.anchorElement.id;this.anchorElement.parentElement!==null&&this.anchorElement.parentElement.querySelectorAll(`:hover`).forEach(t=>{t.id===e&&this.startShowDelayTimer()})}this.region!==null&&this.region!==void 0&&this.tooltipVisible&&(this.region.anchorElement=this.anchorElement),this.updateLayout()}}viewportElementChanged(){this.region!==null&&this.region!==void 0&&(this.region.viewportElement=this.viewportElement),this.updateLayout()}connectedCallback(){super.connectedCallback(),this.anchorElement=this.getAnchor(),this.updateTooltipVisibility()}disconnectedCallback(){this.hideTooltip(),this.clearShowDelayTimer(),this.clearHideDelayTimer(),super.disconnectedCallback()}updateLayout(){switch(this.verticalPositioningMode=`locktodefault`,this.horizontalPositioningMode=`locktodefault`,this.position){case Ga.top:case Ga.bottom:this.verticalDefaultPosition=this.position,this.horizontalDefaultPosition=`center`;break;case Ga.right:case Ga.left:case Ga.start:case Ga.end:this.verticalDefaultPosition=`center`,this.horizontalDefaultPosition=this.position;break;case Ga.topLeft:this.verticalDefaultPosition=`top`,this.horizontalDefaultPosition=`left`;break;case Ga.topRight:this.verticalDefaultPosition=`top`,this.horizontalDefaultPosition=`right`;break;case Ga.bottomLeft:this.verticalDefaultPosition=`bottom`,this.horizontalDefaultPosition=`left`;break;case Ga.bottomRight:this.verticalDefaultPosition=`bottom`,this.horizontalDefaultPosition=`right`;break;case Ga.topStart:this.verticalDefaultPosition=`top`,this.horizontalDefaultPosition=`start`;break;case Ga.topEnd:this.verticalDefaultPosition=`top`,this.horizontalDefaultPosition=`end`;break;case Ga.bottomStart:this.verticalDefaultPosition=`bottom`,this.horizontalDefaultPosition=`start`;break;case Ga.bottomEnd:this.verticalDefaultPosition=`bottom`,this.horizontalDefaultPosition=`end`;break;default:this.verticalPositioningMode=`dynamic`,this.horizontalPositioningMode=`dynamic`,this.verticalDefaultPosition=void 0,this.horizontalDefaultPosition=`center`}}};M([D({mode:`boolean`})],Ka.prototype,`visible`,void 0),M([D],Ka.prototype,`anchor`,void 0),M([D],Ka.prototype,`delay`,void 0),M([D],Ka.prototype,`position`,void 0),M([D({attribute:`auto-update-mode`})],Ka.prototype,`autoUpdateMode`,void 0),M([D({attribute:`horizontal-viewport-lock`})],Ka.prototype,`horizontalViewportLock`,void 0),M([D({attribute:`vertical-viewport-lock`})],Ka.prototype,`verticalViewportLock`,void 0),M([C],Ka.prototype,`anchorElement`,void 0),M([C],Ka.prototype,`viewportElement`,void 0),M([C],Ka.prototype,`verticalPositioningMode`,void 0),M([C],Ka.prototype,`horizontalPositioningMode`,void 0),M([C],Ka.prototype,`horizontalInset`,void 0),M([C],Ka.prototype,`verticalInset`,void 0),M([C],Ka.prototype,`horizontalScaling`,void 0),M([C],Ka.prototype,`verticalScaling`,void 0),M([C],Ka.prototype,`verticalDefaultPosition`,void 0),M([C],Ka.prototype,`horizontalDefaultPosition`,void 0),M([C],Ka.prototype,`tooltipVisible`,void 0),M([C],Ka.prototype,`currentDirection`,void 0);let qa=(e,t)=>T`<template role="treeitem" slot="${e=>e.isNestedItem()?`item`:void 0}" tabindex="-1" class="${e=>e.expanded?`expanded`:``} ${e=>e.selected?`selected`:``} ${e=>e.nested?`nested`:``} ${e=>e.disabled?`disabled`:``}" aria-expanded="${e=>e.childItems&&e.childItemLength()>0?e.expanded:void 0}" aria-selected="${e=>e.selected}" aria-disabled="${e=>e.disabled}" @focusin="${(e,t)=>e.handleFocus(t.event)}" @focusout="${(e,t)=>e.handleBlur(t.event)}" ${xt({property:`childItems`,filter:vt()})}><div class="positioning-region" part="positioning-region"><div class="content-region" part="content-region">${A(e=>e.childItems&&e.childItemLength()>0,T`<div aria-hidden="true" class="expand-collapse-button" part="expand-collapse-button" @click="${(e,t)=>e.handleExpandCollapseButtonClick(t.event)}" ${k(`expandCollapseButton`)}><slot name="expand-collapse-glyph">${t.expandCollapseGlyph||``}</slot></div>`)} ${wt(e,t)}<slot></slot>${Ct(e,t)}</div></div>${A(e=>e.childItems&&e.childItemLength()>0&&(e.expanded||e.renderCollapsedChildren),T`<div role="group" class="items" part="items"><slot name="item" ${bt(`items`)}></slot></div>`)}</template>`;function Ja(e){return mn(e)&&e.getAttribute(`role`)===`treeitem`}var Ya=class extends P{constructor(){super(...arguments),this.expanded=!1,this.focusable=!1,this.isNestedItem=()=>Ja(this.parentElement),this.handleExpandCollapseButtonClick=e=>{!this.disabled&&!e.defaultPrevented&&(this.expanded=!this.expanded)},this.handleFocus=e=>{this.setAttribute(`tabindex`,`0`)},this.handleBlur=e=>{this.setAttribute(`tabindex`,`-1`)}}expandedChanged(){this.$fastController.isConnected&&this.$emit(`expanded-change`,this)}selectedChanged(){this.$fastController.isConnected&&this.$emit(`selected-change`,this)}itemsChanged(e,t){this.$fastController.isConnected&&this.items.forEach(e=>{Ja(e)&&(e.nested=!0)})}static focusItem(e){e.focusable=!0,e.focus()}childItemLength(){let e=this.childItems.filter(e=>Ja(e));return e?e.length:0}};M([D({mode:`boolean`})],Ya.prototype,`expanded`,void 0),M([D({mode:`boolean`})],Ya.prototype,`selected`,void 0),M([D({mode:`boolean`})],Ya.prototype,`disabled`,void 0),M([C],Ya.prototype,`focusable`,void 0),M([C],Ya.prototype,`childItems`,void 0),M([C],Ya.prototype,`items`,void 0),M([C],Ya.prototype,`nested`,void 0),M([C],Ya.prototype,`renderCollapsedChildren`,void 0),sn(Ya,St);let Xa=(e,t)=>T`<template role="tree" ${k(`treeView`)}@keydown="${(e,t)=>e.handleKeyDown(t.event)}" @focusin="${(e,t)=>e.handleFocus(t.event)}" @focusout="${(e,t)=>e.handleBlur(t.event)}" @click="${(e,t)=>e.handleClick(t.event)}" @selected-change="${(e,t)=>e.handleSelectedChange(t.event)}"><slot ${bt(`slottedTreeItems`)}></slot></template>`;var Za=class extends P{constructor(){super(...arguments),this.currentFocused=null,this.handleFocus=e=>{if(!(this.slottedTreeItems.length<1)){if(e.target===this){this.currentFocused===null&&(this.currentFocused=this.getValidFocusableItem()),this.currentFocused!==null&&Ya.focusItem(this.currentFocused);return}this.contains(e.target)&&(this.setAttribute(`tabindex`,`-1`),this.currentFocused=e.target)}},this.handleBlur=e=>{e.target instanceof HTMLElement&&(e.relatedTarget===null||!this.contains(e.relatedTarget))&&this.setAttribute(`tabindex`,`0`)},this.handleKeyDown=e=>{if(e.defaultPrevented)return;if(this.slottedTreeItems.length<1)return!0;let t=this.getVisibleNodes();switch(e.key){case Mn:t.length&&Ya.focusItem(t[0]);return;case`End`:t.length&&Ya.focusItem(t[t.length-1]);return;case Dn:if(e.target&&this.isFocusableElement(e.target)){let t=e.target;t instanceof Ya&&t.childItemLength()>0&&t.expanded?t.expanded=!1:t instanceof Ya&&t.parentElement instanceof Ya&&Ya.focusItem(t.parentElement)}return!1;case On:if(e.target&&this.isFocusableElement(e.target)){let t=e.target;t instanceof Ya&&t.childItemLength()>0&&!t.expanded?t.expanded=!0:t instanceof Ya&&t.childItemLength()>0&&this.focusNextNode(1,e.target)}return;case En:e.target&&this.isFocusableElement(e.target)&&this.focusNextNode(1,e.target);return;case kn:e.target&&this.isFocusableElement(e.target)&&this.focusNextNode(-1,e.target);return;case An:this.handleClick(e);return}return!0},this.handleSelectedChange=e=>{if(e.defaultPrevented)return;if(!(e.target instanceof Element)||!Ja(e.target))return!0;let t=e.target;t.selected?(this.currentSelected&&this.currentSelected!==t&&(this.currentSelected.selected=!1),this.currentSelected=t):!t.selected&&this.currentSelected===t&&(this.currentSelected=null)},this.setItems=()=>{let e=this.treeView.querySelector(`[aria-selected='true']`);this.currentSelected=e,(this.currentFocused===null||!this.contains(this.currentFocused))&&(this.currentFocused=this.getValidFocusableItem()),this.nested=this.checkForNestedItems(),this.getVisibleNodes().forEach(e=>{Ja(e)&&(e.nested=this.nested)})},this.isFocusableElement=e=>Ja(e),this.isSelectedElement=e=>e.selected}slottedTreeItemsChanged(){this.$fastController.isConnected&&this.setItems()}connectedCallback(){super.connectedCallback(),this.setAttribute(`tabindex`,`0`),x.queueUpdate(()=>{this.setItems()})}handleClick(e){if(e.defaultPrevented)return;if(!(e.target instanceof Element)||!Ja(e.target))return!0;let t=e.target;t.disabled||(t.selected=!t.selected)}focusNextNode(e,t){let n=this.getVisibleNodes();if(!n)return;let r=n[n.indexOf(t)+e];mn(r)&&Ya.focusItem(r)}getValidFocusableItem(){let e=this.getVisibleNodes(),t=e.findIndex(this.isSelectedElement);return t===-1&&(t=e.findIndex(this.isFocusableElement)),t===-1?null:e[t]}checkForNestedItems(){return this.slottedTreeItems.some(e=>Ja(e)&&e.querySelector(`[role='treeitem']`))}getVisibleNodes(){return hn(this,`[role='treeitem']`)||[]}};M([D({attribute:`render-collapsed-nodes`})],Za.prototype,`renderCollapsedNodes`,void 0),M([C],Za.prototype,`currentSelected`,void 0),M([C],Za.prototype,`slottedTreeItems`,void 0);var Qa=class{constructor(e){this.listenerCache=/* @__PURE__ */ new WeakMap,this.query=e}bind(e){let{query:t}=this,n=this.constructListener(e);n.bind(t)(),t.addListener(n),this.listenerCache.set(e,n)}unbind(e){let t=this.listenerCache.get(e);t&&(this.query.removeListener(t),this.listenerCache.delete(e))}},$a=class e extends Qa{constructor(e,t){super(e),this.styles=t}static with(t){return n=>new e(t,n)}constructListener(e){let t=!1,n=this.styles;return function(){let{matches:r}=this;r&&!t?(e.$fastController.addStyles(n),t=r):!r&&t&&(e.$fastController.removeStyles(n),t=r)}}unbind(e){super.unbind(e),e.$fastController.removeStyles(this.styles)}};let eo=$a.with(window.matchMedia(`(forced-colors)`));$a.with(window.matchMedia(`(prefers-color-scheme: dark)`)),$a.with(window.matchMedia(`(prefers-color-scheme: light)`));var to=class{constructor(e,t,n){this.propertyName=e,this.value=t,this.styles=n}bind(e){S.getNotifier(e).subscribe(this,this.propertyName),this.handleChange(e,this.propertyName)}unbind(e){S.getNotifier(e).unsubscribe(this,this.propertyName),e.$fastController.removeStyles(this.styles)}handleChange(e,t){e[t]===this.value?e.$fastController.addStyles(this.styles):e.$fastController.removeStyles(this.styles)}};let no=`not-allowed`;function ro(e){return`:host([hidden]){display:none}:host{display:${e}}`}let I=vn()?`focus-visible`:`focus`,io=(e,t)=>ln(e,t);function ao(e,t,n){return isNaN(e)||e<=t?t:e>=n?n:e}function oo(e,t,n){return isNaN(e)||e<=t?0:e>=n?1:e/(n-t)}function so(e,t,n){return isNaN(e)?t:t+e*(n-t)}function co(e){return Math.PI/180*e}function lo(e){return 180/Math.PI*e}function uo(e){let t=Math.round(ao(e,0,255)).toString(16);return t.length===1?`0`+t:t}function fo(e,t,n){return isNaN(e)||e<=0?t:e>=1?n:t+e*(n-t)}function po(e,t,n){if(e<=0)return t%360;if(e>=1)return n%360;let r=(t-n+360)%360;return r<=(n-t+360)%360?(t-r*e+360)%360:(t+r*e+360)%360}function mo(e,t){let n=10**t;return Math.round(e*n)/n}var ho=class e{constructor(e,t,n){this.h=e,this.s=t,this.l=n}static fromObject(t){return t&&!isNaN(t.h)&&!isNaN(t.s)&&!isNaN(t.l)?new e(t.h,t.s,t.l):null}equalValue(e){return this.h===e.h&&this.s===e.s&&this.l===e.l}roundToPrecision(t){return new e(mo(this.h,t),mo(this.s,t),mo(this.l,t))}toObject(){return{h:this.h,s:this.s,l:this.l}}},go=class e{constructor(e,t,n){this.h=e,this.s=t,this.v=n}static fromObject(t){return t&&!isNaN(t.h)&&!isNaN(t.s)&&!isNaN(t.v)?new e(t.h,t.s,t.v):null}equalValue(e){return this.h===e.h&&this.s===e.s&&this.v===e.v}roundToPrecision(t){return new e(mo(this.h,t),mo(this.s,t),mo(this.v,t))}toObject(){return{h:this.h,s:this.s,v:this.v}}},_o=class e{constructor(e,t,n){this.l=e,this.a=t,this.b=n}static fromObject(t){return t&&!isNaN(t.l)&&!isNaN(t.a)&&!isNaN(t.b)?new e(t.l,t.a,t.b):null}equalValue(e){return this.l===e.l&&this.a===e.a&&this.b===e.b}roundToPrecision(t){return new e(mo(this.l,t),mo(this.a,t),mo(this.b,t))}toObject(){return{l:this.l,a:this.a,b:this.b}}};_o.epsilon=216/24389,_o.kappa=24389/27;var vo=class e{constructor(e,t,n){this.l=e,this.c=t,this.h=n}static fromObject(t){return t&&!isNaN(t.l)&&!isNaN(t.c)&&!isNaN(t.h)?new e(t.l,t.c,t.h):null}equalValue(e){return this.l===e.l&&this.c===e.c&&this.h===e.h}roundToPrecision(t){return new e(mo(this.l,t),mo(this.c,t),mo(this.h,t))}toObject(){return{l:this.l,c:this.c,h:this.h}}},yo=class e{constructor(e,t,n,r){this.r=e,this.g=t,this.b=n,this.a=typeof r==`number`&&!isNaN(r)?r:1}static fromObject(t){return t&&!isNaN(t.r)&&!isNaN(t.g)&&!isNaN(t.b)?new e(t.r,t.g,t.b,t.a):null}equalValue(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.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(so(this.r,0,255))},${Math.round(so(this.g,0,255))},${Math.round(so(this.b,0,255))})`}toStringWebRGBA(){return`rgba(${Math.round(so(this.r,0,255))},${Math.round(so(this.g,0,255))},${Math.round(so(this.b,0,255))},${ao(this.a,0,1)})`}roundToPrecision(t){return new e(mo(this.r,t),mo(this.g,t),mo(this.b,t),mo(this.a,t))}clamp(){return new e(ao(this.r,0,1),ao(this.g,0,1),ao(this.b,0,1),ao(this.a,0,1))}toObject(){return{r:this.r,g:this.g,b:this.b,a:this.a}}formatHexValue(e){return uo(so(e,0,255))}},bo=class e{constructor(e,t,n){this.x=e,this.y=t,this.z=n}static fromObject(t){return t&&!isNaN(t.x)&&!isNaN(t.y)&&!isNaN(t.z)?new e(t.x,t.y,t.z):null}equalValue(e){return this.x===e.x&&this.y===e.y&&this.z===e.z}roundToPrecision(t){return new e(mo(this.x,t),mo(this.y,t),mo(this.z,t))}toObject(){return{x:this.x,y:this.y,z:this.z}}};bo.whitePoint=new bo(.95047,1,1.08883);function xo(e){return e.r*.2126+e.g*.7152+e.b*.0722}function So(e){function t(e){return e<=.03928?e/12.92:((e+.055)/1.055)**2.4}return xo(new yo(t(e.r),t(e.g),t(e.b),1))}let Co=(e,t)=>(e+.05)/(t+.05);function wo(e,t){let n=So(e),r=So(t);return n>r?Co(n,r):Co(r,n)}function To(e){let t=Math.max(e.r,e.g,e.b),n=Math.min(e.r,e.g,e.b),r=t-n,i=0;r!==0&&(i=t===e.r?60*((e.g-e.b)/r%6):t===e.g?60*((e.b-e.r)/r+2):60*((e.r-e.g)/r+4)),i<0&&(i+=360);let a=(t+n)/2,o=0;return r!==0&&(o=r/(1-Math.abs(2*a-1))),new ho(i,o,a)}function Eo(e,t=1){let n=(1-Math.abs(2*e.l-1))*e.s,r=n*(1-Math.abs(e.h/60%2-1)),i=e.l-n/2,a=0,o=0,s=0;return e.h<60?(a=n,o=r,s=0):e.h<120?(a=r,o=n,s=0):e.h<180?(a=0,o=n,s=r):e.h<240?(a=0,o=r,s=n):e.h<300?(a=r,o=0,s=n):e.h<360&&(a=n,o=0,s=r),new yo(a+i,o+i,s+i,t)}function Do(e){let t=Math.max(e.r,e.g,e.b),n=t-Math.min(e.r,e.g,e.b),r=0;n!==0&&(r=t===e.r?60*((e.g-e.b)/n%6):t===e.g?60*((e.b-e.r)/n+2):60*((e.r-e.g)/n+4)),r<0&&(r+=360);let i=0;return t!==0&&(i=n/t),new go(r,i,t)}function Oo(e,t=1){let n=e.s*e.v,r=n*(1-Math.abs(e.h/60%2-1)),i=e.v-n,a=0,o=0,s=0;return e.h<60?(a=n,o=r,s=0):e.h<120?(a=r,o=n,s=0):e.h<180?(a=0,o=n,s=r):e.h<240?(a=0,o=r,s=n):e.h<300?(a=r,o=0,s=n):e.h<360&&(a=n,o=0,s=r),new yo(a+i,o+i,s+i,t)}function ko(e){let t=0,n=0;return e.h!==0&&(t=Math.cos(co(e.h))*e.c,n=Math.sin(co(e.h))*e.c),new _o(e.l,t,n)}function Ao(e){let t=0;(Math.abs(e.b)>.001||Math.abs(e.a)>.001)&&(t=lo(Math.atan2(e.b,e.a))),t<0&&(t+=360);let n=Math.sqrt(e.a*e.a+e.b*e.b);return new vo(e.l,n,t)}function jo(e){let t=(e.l+16)/116,n=t+e.a/500,r=t-e.b/200,i=n**3,a=t**3,o=r**3,s=0;s=i>_o.epsilon?i:(116*n-16)/_o.kappa;let c=0;c=e.l>_o.epsilon*_o.kappa?a:e.l/_o.kappa;let l=0;return l=o>_o.epsilon?o:(116*r-16)/_o.kappa,s=bo.whitePoint.x*s,c=bo.whitePoint.y*c,l=bo.whitePoint.z*l,new bo(s,c,l)}function Mo(e){function t(e){return e>_o.epsilon?e**(1/3):(_o.kappa*e+16)/116}let n=t(e.x/bo.whitePoint.x),r=t(e.y/bo.whitePoint.y),i=t(e.z/bo.whitePoint.z);return new _o(116*r-16,500*(n-r),200*(r-i))}function No(e){function t(e){return e<=.04045?e/12.92:((e+.055)/1.055)**2.4}let n=t(e.r),r=t(e.g),i=t(e.b);return new bo(n*.4124564+r*.3575761+i*.1804375,n*.2126729+r*.7151522+i*.072175,n*.0193339+r*.119192+i*.9503041)}function Po(e,t=1){function n(e){return e<=.0031308?e*12.92:1.055*e**(1/2.4)-.055}return new yo(n(e.x*3.2404542-e.y*1.5371385-e.z*.4985314),n(e.x*-.969266+e.y*1.8760108+e.z*.041556),n(e.x*.0556434-e.y*.2040259+e.z*1.0572252),t)}function Fo(e){return Mo(No(e))}function Io(e,t=1){return Po(jo(e),t)}function Lo(e){return Ao(Fo(e))}function Ro(e,t=1){return Io(ko(e),t)}function zo(e,t,n=18){let r=Lo(e),i=r.c+t*n;return i<0&&(i=0),Ro(new vo(r.l,i,r.h))}function Bo(e,t){return e*t}function Vo(e,t){return new yo(Bo(e.r,t.r),Bo(e.g,t.g),Bo(e.b,t.b),1)}function Ho(e,t){return ao(e<.5?2*t*e:1-2*(1-t)*(1-e),0,1)}function Uo(e,t){return new yo(Ho(e.r,t.r),Ho(e.g,t.g),Ho(e.b,t.b),1)}var Wo;(function(e){e[e.Burn=0]=`Burn`,e[e.Color=1]=`Color`,e[e.Darken=2]=`Darken`,e[e.Dodge=3]=`Dodge`,e[e.Lighten=4]=`Lighten`,e[e.Multiply=5]=`Multiply`,e[e.Overlay=6]=`Overlay`,e[e.Screen=7]=`Screen`})(Wo||(Wo={}));function Vte(e,t,n){return isNaN(e)||e<=0?t:e>=1?n:new yo(fo(e,t.r,n.r),fo(e,t.g,n.g),fo(e,t.b,n.b),fo(e,t.a,n.a))}function Hte(e,t,n){return isNaN(e)||e<=0?t:e>=1?n:new ho(po(e,t.h,n.h),fo(e,t.s,n.s),fo(e,t.l,n.l))}function Ute(e,t,n){return isNaN(e)||e<=0?t:e>=1?n:new go(po(e,t.h,n.h),fo(e,t.s,n.s),fo(e,t.v,n.v))}function Wte(e,t,n){return isNaN(e)||e<=0?t:e>=1?n:new bo(fo(e,t.x,n.x),fo(e,t.y,n.y),fo(e,t.z,n.z))}function Gte(e,t,n){return isNaN(e)||e<=0?t:e>=1?n:new _o(fo(e,t.l,n.l),fo(e,t.a,n.a),fo(e,t.b,n.b))}function Kte(e,t,n){return isNaN(e)||e<=0?t:e>=1?n:new vo(fo(e,t.l,n.l),fo(e,t.c,n.c),po(e,t.h,n.h))}var Go;(function(e){e[e.RGB=0]=`RGB`,e[e.HSL=1]=`HSL`,e[e.HSV=2]=`HSV`,e[e.XYZ=3]=`XYZ`,e[e.LAB=4]=`LAB`,e[e.LCH=5]=`LCH`})(Go||(Go={}));function Ko(e,t,n,r){if(isNaN(e)||e<=0)return n;if(e>=1)return r;switch(t){case Go.HSL:return Eo(Hte(e,To(n),To(r)));case Go.HSV:return Oo(Ute(e,Do(n),Do(r)));case Go.XYZ:return Po(Wte(e,No(n),No(r)));case Go.LAB:return Io(Gte(e,Fo(n),Fo(r)));case Go.LCH:return Ro(Kte(e,Lo(n),Lo(r)));default:return Vte(e,n,r)}}var qo=class e{constructor(e){if(e==null||e.length===0)throw Error(`The stops argument must be non-empty`);this.stops=this.sortColorScaleStops(e)}static createBalancedColorScale(t){if(t==null||t.length===0)throw Error(`The colors argument must be non-empty`);let n=Array(t.length);for(let e=0;e<t.length;e++)e===0?n[e]={color:t[e],position:0}:e===t.length-1?n[e]={color:t[e],position:1}:n[e]={color:t[e],position:e*(1/(t.length-1))};return new e(n)}getColor(e,t=Go.RGB){if(this.stops.length===1||e<=0)return this.stops[0].color;if(e>=1)return this.stops[this.stops.length-1].color;let n=0;for(let t=0;t<this.stops.length;t++)this.stops[t].position<=e&&(n=t);let r=n+1;return r>=this.stops.length&&(r=this.stops.length-1),Ko((e-this.stops[n].position)*(1/(this.stops[r].position-this.stops[n].position)),t,this.stops[n].color,this.stops[r].color)}trim(t,n,r=Go.RGB){if(t<0||n>1||n<t)throw Error(`Invalid bounds`);if(t===n)return new e([{color:this.getColor(t,r),position:0}]);let i=[];for(let e=0;e<this.stops.length;e++)this.stops[e].position>=t&&this.stops[e].position<=n&&i.push(this.stops[e]);if(i.length===0)return new e([{color:this.getColor(t),position:t},{color:this.getColor(n),position:n}]);i[0].position!==t&&i.unshift({color:this.getColor(t),position:t}),i[i.length-1].position!==n&&i.push({color:this.getColor(n),position:n});let a=n-t,o=Array(i.length);for(let e=0;e<i.length;e++)o[e]={color:i[e].color,position:(i[e].position-t)/a};return new e(o)}findNextColor(e,t,n=!1,r=Go.RGB,i=.005,a=32){isNaN(e)||e<=0?e=0:e>=1&&(e=1);let o=this.getColor(e,r),s=+!n;if(wo(o,this.getColor(s,r))<=t)return s;let c=n?0:e,l=n?e:0,u=s,d=0;for(;d<=a;){u=Math.abs(l-c)/2+c;let e=wo(o,this.getColor(u,r));if(Math.abs(e-t)<=i)return u;e>t?n?c=u:l=u:n?l=u:c=u,d++}return u}clone(){let t=Array(this.stops.length);for(let e=0;e<t.length;e++)t[e]={color:this.stops[e].color,position:this.stops[e].position};return new e(t)}sortColorScaleStops(e){return e.sort((e,t)=>{let n=e.position,r=t.position;return n<r?-1:+(n>r)})}};let qte=/^#((?:[0-9a-f]{6}|[0-9a-f]{3}))$/i;function Jo(e){let t=qte.exec(e);if(t===null)return null;let n=t[1];if(n.length===3){let e=n.charAt(0),t=n.charAt(1),r=n.charAt(2);n=e.concat(e,t,t,r,r)}let r=parseInt(n,16);return isNaN(r)?null:new yo(oo((r&16711680)>>>16,0,255),oo((r&65280)>>>8,0,255),oo(r&255,0,255),1)}var Yo=class e{constructor(t){this.config=Object.assign({},e.defaultPaletteConfig,t),this.palette=[],this.updatePaletteColors()}updatePaletteGenerationValues(e){let t=!1;for(let n in e)this.config[n]&&(this.config[n].equalValue?this.config[n].equalValue(e[n])||(this.config[n]=e[n],t=!0):e[n]!==this.config[n]&&(this.config[n]=e[n],t=!0));return t&&this.updatePaletteColors(),t}updatePaletteColors(){let e=this.generatePaletteColorScale();for(let t=0;t<this.config.steps;t++)this.palette[t]=e.getColor(t/(this.config.steps-1),this.config.interpolationMode)}generatePaletteColorScale(){let e=To(this.config.baseColor),t=new qo([{position:0,color:this.config.scaleColorLight},{position:.5,color:this.config.baseColor},{position:1,color:this.config.scaleColorDark}]).trim(this.config.clipLight,1-this.config.clipDark),n=t.getColor(0),r=t.getColor(1),i=n,a=r;if(e.s>=this.config.saturationAdjustmentCutoff&&(i=zo(i,this.config.saturationLight),a=zo(a,this.config.saturationDark)),this.config.multiplyLight!==0){let e=Vo(this.config.baseColor,i);i=Ko(this.config.multiplyLight,this.config.interpolationMode,i,e)}if(this.config.multiplyDark!==0){let e=Vo(this.config.baseColor,a);a=Ko(this.config.multiplyDark,this.config.interpolationMode,a,e)}if(this.config.overlayLight!==0){let e=Uo(this.config.baseColor,i);i=Ko(this.config.overlayLight,this.config.interpolationMode,i,e)}if(this.config.overlayDark!==0){let e=Uo(this.config.baseColor,a);a=Ko(this.config.overlayDark,this.config.interpolationMode,a,e)}return this.config.baseScalePosition?this.config.baseScalePosition<=0?new qo([{position:0,color:this.config.baseColor},{position:1,color:a.clamp()}]):this.config.baseScalePosition>=1?new qo([{position:0,color:i.clamp()},{position:1,color:this.config.baseColor}]):new qo([{position:0,color:i.clamp()},{position:this.config.baseScalePosition,color:this.config.baseColor},{position:1,color:a.clamp()}]):new qo([{position:0,color:i.clamp()},{position:.5,color:this.config.baseColor},{position:1,color:a.clamp()}])}};Yo.defaultPaletteConfig={baseColor:Jo(`#808080`),steps:11,interpolationMode:Go.RGB,scaleColorLight:new yo(1,1,1,1),scaleColorDark:new yo(0,0,0,1),clipLight:.185,clipDark:.16,saturationAdjustmentCutoff:.05,saturationLight:.35,saturationDark:1.25,overlayLight:0,overlayDark:.25,multiplyLight:0,multiplyDark:0,baseScalePosition:.5},Yo.greyscalePaletteConfig={baseColor:Jo(`#808080`),steps:11,interpolationMode:Go.RGB,scaleColorLight:new yo(1,1,1,1),scaleColorDark:new yo(0,0,0,1),clipLight:0,clipDark:0,saturationAdjustmentCutoff:0,saturationLight:0,saturationDark:0,overlayLight:0,overlayDark:0,multiplyLight:0,multiplyDark:0,baseScalePosition:.5},Yo.defaultPaletteConfig.scaleColorLight,Yo.defaultPaletteConfig.scaleColorDark;var Xo=class e{constructor(t){this.palette=[],this.config=Object.assign({},e.defaultPaletteConfig,t),this.regenPalettes()}regenPalettes(){let e=this.config.steps;(isNaN(e)||e<3)&&(e=3);let t=.14,n=new yo(t,t,t,1),r=new Yo(Object.assign(Object.assign({},Yo.greyscalePaletteConfig),{baseColor:n,baseScalePosition:86/94,steps:e})).palette,i=(xo(this.config.baseColor)+To(this.config.baseColor).l)/2,a=this.matchRelativeLuminanceIndex(i,r)/(e-1),o=this.matchRelativeLuminanceIndex(t,r)/(e-1),s=To(this.config.baseColor),c=Eo(ho.fromObject({h:s.h,s:s.s,l:t})),l=Eo(ho.fromObject({h:s.h,s:s.s,l:.06})),u=[,,,,,];u[0]={position:0,color:new yo(1,1,1,1)},u[1]={position:a,color:this.config.baseColor},u[2]={position:o,color:c},u[3]={position:.99,color:l},u[4]={position:1,color:new yo(0,0,0,1)};let d=new qo(u);this.palette=Array(e);for(let t=0;t<e;t++){let n=d.getColor(t/(e-1),Go.RGB);this.palette[t]=n}}matchRelativeLuminanceIndex(e,t){let n=Number.MAX_VALUE,r=0,i=0,a=t.length;for(;i<a;i++){let a=Math.abs(xo(t[i])-e);a<n&&(n=a,r=i)}return r}};Xo.defaultPaletteConfig={baseColor:Jo(`#808080`),steps:94};function Zo(e,t){let n=e.relativeLuminance>t.relativeLuminance?e:t,r=e.relativeLuminance>t.relativeLuminance?t:e;return(n.relativeLuminance+.05)/(r.relativeLuminance+.05)}let Qo=Object.freeze({create(e,t,n){return new $o(e,t,n)},from(e){return new $o(e.r,e.g,e.b)}});function Jte(e){let t={r:0,g:0,b:0,toColorString:()=>``,contrast:()=>0,relativeLuminance:0};for(let n in t)if(typeof t[n]!=typeof e[n])return!1;return!0}var $o=class e extends yo{constructor(e,t,n){super(e,t,n,1),this.toColorString=this.toStringHexRGB,this.contrast=Zo.bind(null,this),this.createCSS=this.toColorString,this.relativeLuminance=So(this)}static fromObject(t){return new e(t.r,t.g,t.b)}};function es(e,t,n=0,r=e.length-1){if(r===n)return e[n];let i=Math.floor((r-n)/2)+n;return t(e[i])?es(e,t,n,i):es(e,t,i+1,r)}let Yte=(-.1+Math.sqrt(.21))/2;function ts(e){return e.relativeLuminance<=Yte}function ns(e){return ts(e)?-1:1}function Xte(e,t,n){return typeof e==`number`?rs.from(Qo.create(e,t,n)):rs.from(e)}function Zte(e){return Jte(e)?is.from(e):is.from(Qo.create(e.r,e.g,e.b))}let rs=Object.freeze({create:Xte,from:Zte});var is=class e{constructor(e,t){this.closestIndexCache=/* @__PURE__ */ new Map,this.source=e,this.swatches=t,this.reversedSwatches=Object.freeze([...this.swatches].reverse()),this.lastIndex=this.swatches.length-1}colorContrast(e,t,n,r){n===void 0&&(n=this.closestIndexOf(e));let i=this.swatches,a=this.lastIndex,o=n;return r===void 0&&(r=ns(e)),r===-1&&(i=this.reversedSwatches,o=a-o),es(i,n=>Zo(e,n)>=t,o,a)}get(e){return this.swatches[e]||this.swatches[ao(e,0,this.lastIndex)]}closestIndexOf(e){if(this.closestIndexCache.has(e.relativeLuminance))return this.closestIndexCache.get(e.relativeLuminance);let t=this.swatches.indexOf(e);if(t!==-1)return this.closestIndexCache.set(e.relativeLuminance,t),t;let n=this.swatches.reduce((t,n)=>Math.abs(n.relativeLuminance-e.relativeLuminance)<Math.abs(t.relativeLuminance-e.relativeLuminance)?n:t);return t=this.swatches.indexOf(n),this.closestIndexCache.set(e.relativeLuminance,t),t}static from(t){return new e(t,Object.freeze(new Xo({baseColor:yo.fromObject(t)}).palette.map(e=>{let t=Jo(e.toStringHexRGB());return Qo.create(t.r,t.g,t.b)})))}};function Qte(e,t,n,r,i,a,o,s,c){let l=e.source,u=t.closestIndexOf(n)>=Math.max(o,s,c)?-1:1,d=e.closestIndexOf(l),f=d+u*-1*r,p=f+u*i,m=f+u*a;return{rest:e.get(f),hover:e.get(d),active:e.get(p),focus:e.get(m)}}function $te(e,t,n,r,i,a,o){let s=e.source,c=e.closestIndexOf(s),l=ns(t),u=c+(l===1?Math.min(r,i):Math.max(l*r,l*i)),d=e.colorContrast(t,n,u,l),f=e.closestIndexOf(d),p=f+l*Math.abs(r-i),m=l===1?r<i:l*r>l*i,h,g;return m?(h=f,g=p):(h=p,g=f),{rest:e.get(h),hover:e.get(g),active:e.get(h+l*a),focus:e.get(h+l*o)}}let as=Qo.create(1,1,1),ene=Qo.create(0,0,0),tne=Qo.from(Jo(`#808080`)),nne=Qo.from(Jo(`#DA1A5F`));function rne(e,t){return e.contrast(as)>=t?as:ene}function ine(e,t,n,r,i,a){let o=e.closestIndexOf(t),s=o>=Math.max(n,r,i,a)?-1:1;return{rest:e.get(o+s*n),hover:e.get(o+s*r),active:e.get(o+s*i),focus:e.get(o+s*a)}}function ane(e,t,n,r,i,a){let o=ns(t),s=e.closestIndexOf(t);return{rest:e.get(s-o*n),hover:e.get(s-o*r),active:e.get(s-o*i),focus:e.get(s-o*a)}}function one(e,t,n){let r=e.closestIndexOf(t);return e.get(r-(r<n?n*-1:n))}function sne(e,t,n,r,i,a,o,s,c,l){let u=Math.max(n,r,i,a,o,s,c,l),d=e.closestIndexOf(t),f=d>=u?-1:1;return{rest:e.get(d+f*n),hover:e.get(d+f*r),active:e.get(d+f*i),focus:e.get(d+f*a)}}function cne(e,t,n,r,i,a){let o=ns(t),s=e.closestIndexOf(e.colorContrast(t,4.5)),c=s+o*Math.abs(n-r),l=o===1?n<r:o*n>o*r,u,d;return l?(u=s,d=c):(u=c,d=s),{rest:e.get(u),hover:e.get(d),active:e.get(u+o*i),focus:e.get(u+o*a)}}function lne(e,t){return e.colorContrast(t,3.5)}function une(e,t,n){return e.colorContrast(n,3.5,e.closestIndexOf(e.source),ns(t)*-1)}function dne(e,t){return e.colorContrast(t,14)}function fne(e,t){return e.colorContrast(t,4.5)}function os(e){return Qo.create(e,e,e)}let ss={LightMode:1,DarkMode:.23};function pne(e,t,n){return e.get(e.closestIndexOf(os(t))+n)}function mne(e,t,n){let r=e.closestIndexOf(os(t))-n;return e.get(r-n)}function hne(e,t){return e.get(e.closestIndexOf(os(t)))}function cs(e,t,n,r,i,a){return Math.max(e.closestIndexOf(os(t))+n,r,i,a)}function gne(e,t,n,r,i,a){return e.get(cs(e,t,n,r,i,a))}function _ne(e,t,n,r,i,a){return e.get(cs(e,t,n,r,i,a)+n)}function vne(e,t,n,r,i,a){return e.get(cs(e,t,n,r,i,a)+n*2)}function yne(e,t,n,r,i,a){let o=e.closestIndexOf(t),s=ns(t),c=o+s*n,l=c+s*(r-n),u=c+s*(i-n),d=c+s*(a-n);return{rest:e.get(c),hover:e.get(l),active:e.get(u),focus:e.get(d)}}function bne(e,t,n){return e.get(e.closestIndexOf(t)+ns(t)*n)}let{create:L}=ni;function R(e){return ni.create({name:e,cssCustomPropertyName:null})}let ls=L(`body-font`).withDefault(`aktiv-grotesk, "Segoe UI", Arial, Helvetica, sans-serif`),us=L(`base-height-multiplier`).withDefault(10),xne=L(`base-horizontal-spacing-multiplier`).withDefault(3),ds=L(`base-layer-luminance`).withDefault(ss.DarkMode),z=L(`control-corner-radius`).withDefault(4),fs=L(`density`).withDefault(0),B=L(`design-unit`).withDefault(4),ps=L(`direction`).withDefault(Pn.ltr),ms=L(`disabled-opacity`).withDefault(.3),V=L(`stroke-width`).withDefault(1),hs=L(`focus-stroke-width`).withDefault(2),gs=L(`type-ramp-base-font-size`).withDefault(`14px`),_s=L(`type-ramp-base-line-height`).withDefault(`20px`),vs=L(`type-ramp-minus-1-font-size`).withDefault(`12px`),ys=L(`type-ramp-minus-1-line-height`).withDefault(`16px`),bs=L(`type-ramp-minus-2-font-size`).withDefault(`10px`),xs=L(`type-ramp-minus-2-line-height`).withDefault(`16px`),Ss=L(`type-ramp-plus-1-font-size`).withDefault(`16px`),Cs=L(`type-ramp-plus-1-line-height`).withDefault(`24px`),ws=L(`type-ramp-plus-2-font-size`).withDefault(`20px`),Ts=L(`type-ramp-plus-2-line-height`).withDefault(`28px`),Es=L(`type-ramp-plus-3-font-size`).withDefault(`28px`),Ds=L(`type-ramp-plus-3-line-height`).withDefault(`36px`),Os=L(`type-ramp-plus-4-font-size`).withDefault(`34px`),ks=L(`type-ramp-plus-4-line-height`).withDefault(`44px`),As=L(`type-ramp-plus-5-font-size`).withDefault(`46px`),js=L(`type-ramp-plus-5-line-height`).withDefault(`56px`),Ms=L(`type-ramp-plus-6-font-size`).withDefault(`60px`),Ns=L(`type-ramp-plus-6-line-height`).withDefault(`72px`),Ps=R(`accent-fill-rest-delta`).withDefault(0),Fs=R(`accent-fill-hover-delta`).withDefault(4),Is=R(`accent-fill-active-delta`).withDefault(-5),Ls=R(`accent-fill-focus-delta`).withDefault(0),Rs=R(`accent-foreground-rest-delta`).withDefault(0),zs=R(`accent-foreground-hover-delta`).withDefault(6),Bs=R(`accent-foreground-active-delta`).withDefault(-4),Vs=R(`accent-foreground-focus-delta`).withDefault(0),Hs=R(`neutral-fill-rest-delta`).withDefault(7),Us=R(`neutral-fill-hover-delta`).withDefault(10),Ws=R(`neutral-fill-active-delta`).withDefault(5),Gs=R(`neutral-fill-focus-delta`).withDefault(0),Ks=R(`neutral-fill-input-rest-delta`).withDefault(0),qs=R(`neutral-fill-input-hover-delta`).withDefault(0),Js=R(`neutral-fill-input-active-delta`).withDefault(0),Ys=R(`neutral-fill-input-focus-delta`).withDefault(0),Xs=R(`neutral-fill-stealth-rest-delta`).withDefault(0),Zs=R(`neutral-fill-stealth-hover-delta`).withDefault(5),Qs=R(`neutral-fill-stealth-active-delta`).withDefault(3),$s=R(`neutral-fill-stealth-focus-delta`).withDefault(0),ec=R(`neutral-fill-strong-rest-delta`).withDefault(0),tc=R(`neutral-fill-strong-hover-delta`).withDefault(8),nc=R(`neutral-fill-strong-active-delta`).withDefault(-5),rc=R(`neutral-fill-strong-focus-delta`).withDefault(0),ic=R(`neutral-fill-layer-rest-delta`).withDefault(3),ac=R(`neutral-stroke-rest-delta`).withDefault(25),oc=R(`neutral-stroke-hover-delta`).withDefault(40),sc=R(`neutral-stroke-active-delta`).withDefault(16),cc=R(`neutral-stroke-focus-delta`).withDefault(25),lc=R(`neutral-stroke-divider-rest-delta`).withDefault(8),uc=L(`neutral-color`).withDefault(tne),dc=R(`neutral-palette`).withDefault(e=>rs.from(uc.getValueFor(e))),fc=L(`accent-color`).withDefault(nne),pc=R(`accent-palette`).withDefault(e=>rs.from(fc.getValueFor(e))),Sne=R(`neutral-layer-card-container-recipe`).withDefault({evaluate:e=>pne(dc.getValueFor(e),ds.getValueFor(e),ic.getValueFor(e))}),mc=L(`neutral-layer-card-container`).withDefault(e=>Sne.getValueFor(e).evaluate(e)),Cne=R(`neutral-layer-floating-recipe`).withDefault({evaluate:e=>mne(dc.getValueFor(e),ds.getValueFor(e),ic.getValueFor(e))}),hc=L(`neutral-layer-floating`).withDefault(e=>Cne.getValueFor(e).evaluate(e)),wne=R(`neutral-layer-1-recipe`).withDefault({evaluate:e=>hne(dc.getValueFor(e),ds.getValueFor(e))}),gc=L(`neutral-layer-1`).withDefault(e=>wne.getValueFor(e).evaluate(e)),Tne=R(`neutral-layer-2-recipe`).withDefault({evaluate:e=>gne(dc.getValueFor(e),ds.getValueFor(e),ic.getValueFor(e),Hs.getValueFor(e),Us.getValueFor(e),Ws.getValueFor(e))}),_c=L(`neutral-layer-2`).withDefault(e=>Tne.getValueFor(e).evaluate(e)),vc=R(`neutral-layer-3-recipe`).withDefault({evaluate:e=>_ne(dc.getValueFor(e),ds.getValueFor(e),ic.getValueFor(e),Hs.getValueFor(e),Us.getValueFor(e),Ws.getValueFor(e))}),yc=L(`neutral-layer-3`).withDefault(e=>vc.getValueFor(e).evaluate(e)),bc=R(`neutral-layer-4-recipe`).withDefault({evaluate:e=>vne(dc.getValueFor(e),ds.getValueFor(e),ic.getValueFor(e),Hs.getValueFor(e),Us.getValueFor(e),Ws.getValueFor(e))}),xc=L(`neutral-layer-4`).withDefault(e=>bc.getValueFor(e).evaluate(e)),Sc=L(`fill-color`).withDefault(e=>gc.getValueFor(e));var Cc;(function(e){e[e.normal=4.5]=`normal`,e[e.large=7]=`large`})(Cc||(Cc={}));let wc=L({name:`accent-fill-recipe`,cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>Qte(pc.getValueFor(e),dc.getValueFor(e),t||Sc.getValueFor(e),Fs.getValueFor(e),Is.getValueFor(e),Ls.getValueFor(e),Hs.getValueFor(e),Us.getValueFor(e),Ws.getValueFor(e))}),Tc=L(`accent-fill-rest`).withDefault(e=>wc.getValueFor(e).evaluate(e).rest),Ec=L(`accent-fill-hover`).withDefault(e=>wc.getValueFor(e).evaluate(e).hover),Dc=L(`accent-fill-active`).withDefault(e=>wc.getValueFor(e).evaluate(e).active),Oc=L(`accent-fill-focus`).withDefault(e=>wc.getValueFor(e).evaluate(e).focus),kc=e=>(t,n)=>rne(n||Tc.getValueFor(t),e),Ac=R(`foreground-on-accent-recipe`).withDefault({evaluate:(e,t)=>kc(Cc.normal)(e,t)}),jc=L(`foreground-on-accent-rest`).withDefault(e=>Ac.getValueFor(e).evaluate(e,Tc.getValueFor(e))),Mc=L(`foreground-on-accent-hover`).withDefault(e=>Ac.getValueFor(e).evaluate(e,Ec.getValueFor(e))),Nc=L(`foreground-on-accent-active`).withDefault(e=>Ac.getValueFor(e).evaluate(e,Dc.getValueFor(e))),Pc=L(`foreground-on-accent-focus`).withDefault(e=>Ac.getValueFor(e).evaluate(e,Oc.getValueFor(e))),Fc=R(`foreground-on-accent-large-recipe`).withDefault({evaluate:(e,t)=>kc(Cc.large)(e,t)}),Ic=L(`foreground-on-accent-rest-large`).withDefault(e=>Fc.getValueFor(e).evaluate(e,Tc.getValueFor(e))),Lc=L(`foreground-on-accent-hover-large`).withDefault(e=>Fc.getValueFor(e).evaluate(e,Ec.getValueFor(e))),Rc=L(`foreground-on-accent-active-large`).withDefault(e=>Fc.getValueFor(e).evaluate(e,Dc.getValueFor(e))),zc=L(`foreground-on-accent-focus-large`).withDefault(e=>Fc.getValueFor(e).evaluate(e,Oc.getValueFor(e))),Bc=e=>(t,n)=>$te(pc.getValueFor(t),n||Sc.getValueFor(t),e,Rs.getValueFor(t),zs.getValueFor(t),Bs.getValueFor(t),Vs.getValueFor(t)),Vc=L({name:`accent-foreground-recipe`,cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>Bc(Cc.normal)(e,t)}),Hc=L(`accent-foreground-rest`).withDefault(e=>Vc.getValueFor(e).evaluate(e).rest),Uc=L(`accent-foreground-hover`).withDefault(e=>Vc.getValueFor(e).evaluate(e).hover),Wc=L(`accent-foreground-active`).withDefault(e=>Vc.getValueFor(e).evaluate(e).active),Gc=L(`accent-foreground-focus`).withDefault(e=>Vc.getValueFor(e).evaluate(e).focus),Kc=L({name:`neutral-fill-recipe`,cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>ine(dc.getValueFor(e),t||Sc.getValueFor(e),Hs.getValueFor(e),Us.getValueFor(e),Ws.getValueFor(e),Gs.getValueFor(e))}),qc=L(`neutral-fill-rest`).withDefault(e=>Kc.getValueFor(e).evaluate(e).rest),Jc=L(`neutral-fill-hover`).withDefault(e=>Kc.getValueFor(e).evaluate(e).hover),Yc=L(`neutral-fill-active`).withDefault(e=>Kc.getValueFor(e).evaluate(e).active),Xc=L(`neutral-fill-focus`).withDefault(e=>Kc.getValueFor(e).evaluate(e).focus),Zc=L({name:`neutral-fill-input-recipe`,cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>ane(dc.getValueFor(e),t||Sc.getValueFor(e),Ks.getValueFor(e),qs.getValueFor(e),Js.getValueFor(e),Ys.getValueFor(e))}),Qc=L(`neutral-fill-input-rest`).withDefault(e=>Zc.getValueFor(e).evaluate(e).rest),$c=L(`neutral-fill-input-hover`).withDefault(e=>Zc.getValueFor(e).evaluate(e).hover),el=L(`neutral-fill-input-active`).withDefault(e=>Zc.getValueFor(e).evaluate(e).active),tl=L(`neutral-fill-input-focus`).withDefault(e=>Zc.getValueFor(e).evaluate(e).focus),nl=L({name:`neutral-fill-stealth-recipe`,cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>sne(dc.getValueFor(e),t||Sc.getValueFor(e),Xs.getValueFor(e),Zs.getValueFor(e),Qs.getValueFor(e),$s.getValueFor(e),Hs.getValueFor(e),Us.getValueFor(e),Ws.getValueFor(e),Gs.getValueFor(e))}),rl=L(`neutral-fill-stealth-rest`).withDefault(e=>nl.getValueFor(e).evaluate(e).rest),il=L(`neutral-fill-stealth-hover`).withDefault(e=>nl.getValueFor(e).evaluate(e).hover),al=L(`neutral-fill-stealth-active`).withDefault(e=>nl.getValueFor(e).evaluate(e).active),ol=L(`neutral-fill-stealth-focus`).withDefault(e=>nl.getValueFor(e).evaluate(e).focus),sl=L({name:`neutral-fill-strong-recipe`,cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>cne(dc.getValueFor(e),t||Sc.getValueFor(e),ec.getValueFor(e),tc.getValueFor(e),nc.getValueFor(e),rc.getValueFor(e))}),cl=L(`neutral-fill-strong-rest`).withDefault(e=>sl.getValueFor(e).evaluate(e).rest),ll=L(`neutral-fill-strong-hover`).withDefault(e=>sl.getValueFor(e).evaluate(e).hover),ul=L(`neutral-fill-strong-active`).withDefault(e=>sl.getValueFor(e).evaluate(e).active),dl=L(`neutral-fill-strong-focus`).withDefault(e=>sl.getValueFor(e).evaluate(e).focus),fl=R(`neutral-fill-layer-recipe`).withDefault({evaluate:(e,t)=>one(dc.getValueFor(e),t||Sc.getValueFor(e),ic.getValueFor(e))}),pl=L(`neutral-fill-layer-rest`).withDefault(e=>fl.getValueFor(e).evaluate(e)),ml=R(`focus-stroke-outer-recipe`).withDefault({evaluate:e=>lne(dc.getValueFor(e),Sc.getValueFor(e))}),hl=L(`focus-stroke-outer`).withDefault(e=>ml.getValueFor(e).evaluate(e)),Ene=R(`focus-stroke-inner-recipe`).withDefault({evaluate:e=>une(pc.getValueFor(e),Sc.getValueFor(e),hl.getValueFor(e))}),gl=L(`focus-stroke-inner`).withDefault(e=>Ene.getValueFor(e).evaluate(e)),Dne=R(`neutral-foreground-hint-recipe`).withDefault({evaluate:e=>fne(dc.getValueFor(e),Sc.getValueFor(e))}),_l=L(`neutral-foreground-hint`).withDefault(e=>Dne.getValueFor(e).evaluate(e)),One=R(`neutral-foreground-recipe`).withDefault({evaluate:e=>dne(dc.getValueFor(e),Sc.getValueFor(e))}),H=L(`neutral-foreground-rest`).withDefault(e=>One.getValueFor(e).evaluate(e)),vl=L({name:`neutral-stroke-recipe`,cssCustomPropertyName:null}).withDefault({evaluate:e=>yne(dc.getValueFor(e),Sc.getValueFor(e),ac.getValueFor(e),oc.getValueFor(e),sc.getValueFor(e),cc.getValueFor(e))}),yl=L(`neutral-stroke-rest`).withDefault(e=>vl.getValueFor(e).evaluate(e).rest),bl=L(`neutral-stroke-hover`).withDefault(e=>vl.getValueFor(e).evaluate(e).hover),xl=L(`neutral-stroke-active`).withDefault(e=>vl.getValueFor(e).evaluate(e).active),Sl=L(`neutral-stroke-focus`).withDefault(e=>vl.getValueFor(e).evaluate(e).focus),kne=R(`neutral-stroke-divider-recipe`).withDefault({evaluate:(e,t)=>bne(dc.getValueFor(e),t||Sc.getValueFor(e),lc.getValueFor(e))}),Cl=L(`neutral-stroke-divider-rest`).withDefault(e=>kne.getValueFor(e).evaluate(e)),wl=ni.create({name:`height-number`,cssCustomPropertyName:null}).withDefault(e=>(us.getValueFor(e)+fs.getValueFor(e))*B.getValueFor(e)),Tl=(e,t)=>O` ${ro(`flex`)} :host{box-sizing: border-box;flex-direction: column;font-family: ${ls};font-size: ${vs};line-height: ${ys};color: ${H};border-top: calc(${V} * 1px) solid ${Cl}}`,U=rt`(${us} + ${fs}) * ${B}`,El=(e,t)=>O` ${ro(`flex`)} :host{box-sizing: border-box;font-family: ${ls};flex-direction: column;font-size: ${vs};line-height: ${ys};border-bottom: calc(${V} * 1px) solid ${Cl}}.region{display: none;padding: calc((6 + (${B} * 2 * ${fs})) * 1px)}.heading{display: grid;position: relative;grid-template-columns: auto 1fr auto calc(${U} * 1px)}.button{appearance: none;border: none;background: none;grid-column: 2;grid-row: 1;outline: none;padding: 0 calc((6 + (${B} * 2 * ${fs})) * 1px);text-align: left;height: calc(${U} * 1px);color: ${H};cursor: pointer;font-family: inherit}.button:hover{color: ${H}}.button:active{color: ${H}}.button::before{content: "";position: absolute;top: 0;left: 0;right: 0;bottom: 0;cursor: pointer}.button:${I}::before{outline: none;border: calc(${hs} * 1px) solid ${hl};border-radius: calc(${z} * 1px)}:host([expanded]) .region{display: block}.icon{display: flex;align-items: center;justify-content: center;grid-column: 4;pointer-events: none;position: relative}slot[name="expanded-icon"], slot[name="collapsed-icon"]{fill: ${Hc}}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(${B} * 1px);justify-content: center;grid-column: 1;position: relative}.end{display: flex;align-items: center;justify-content: center;grid-column: 3;position: relative}`.withBehaviors(eo(O` .button:${I}::before{border-color: ${F.Highlight}}:host slot[name="collapsed-icon"], :host([expanded]) slot[name="expanded-icon"]{fill: ${F.ButtonText}}`));cn.compose({baseName:`accordion-item`,template:Tt,styles:El,collapsedIcon:`
21
+ var pi=[`input`,`select`,`textarea`,`a[href]`,`button`,`[tabindex]:not(slot)`,`audio[controls]`,`video[controls]`,`[contenteditable]:not([contenteditable="false"])`,`details>summary:first-of-type`,`details`],mi=/* #__PURE__ */ pi.join(`,`),hi=typeof Element>`u`,gi=hi?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,_i=!hi&&Element.prototype.getRootNode?function(e){return e.getRootNode()}:function(e){return e.ownerDocument},vi=function(e,t){return e.tabIndex<0&&(t||/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||e.isContentEditable)&&isNaN(parseInt(e.getAttribute(`tabindex`),10))?0:e.tabIndex},yi=function(e){return e.tagName===`INPUT`},bi=function(e){return yi(e)&&e.type===`hidden`},xi=function(e){return e.tagName===`DETAILS`&&Array.prototype.slice.apply(e.children).some(function(e){return e.tagName===`SUMMARY`})},Si=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]},Ci=function(e){if(!e.name)return!0;var t=e.form||_i(e),n=function(e){return t.querySelectorAll(`input[type="radio"][name="`+e+`"]`)},r;if(typeof window<`u`&&window.CSS!==void 0&&typeof window.CSS.escape==`function`)r=n(window.CSS.escape(e.name));else try{r=n(e.name)}catch(e){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`,e.message),!1}var i=Si(r,e.form);return!i||i===e},wi=function(e){return yi(e)&&e.type===`radio`},Ti=function(e){return wi(e)&&!Ci(e)},Ei=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return n===0&&r===0},Di=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if(getComputedStyle(e).visibility===`hidden`)return!0;var i=gi.call(e,`details>summary:first-of-type`)?e.parentElement:e;if(gi.call(i,`details:not([open]) *`))return!0;var a=_i(e).host,o=a?.ownerDocument.contains(a)||e.ownerDocument.contains(e);if(!n||n===`full`){if(typeof r==`function`){for(var s=e;e;){var c=e.parentElement,l=_i(e);if(c&&!c.shadowRoot&&r(c)===!0)return Ei(e);e=e.assignedSlot?e.assignedSlot:!c&&l!==e.ownerDocument?l.host:c}e=s}if(o)return!e.getClientRects().length}else if(n===`non-zero-area`)return Ei(e);return!1},Oi=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName===`FIELDSET`&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if(r.tagName===`LEGEND`)return gi.call(t,`fieldset[disabled] *`)?!0:!r.contains(e)}return!0}t=t.parentElement}return!1},ki=function(e,t){return!(t.disabled||bi(t)||Di(t,e)||xi(t)||Oi(t))},Ai=function(e,t){return!(Ti(t)||vi(t)<0||!ki(e,t))},ji=function(e,t){if(t=t||{},!e)throw Error(`No node provided`);return gi.call(e,mi)!==!1&&Ai(t,e)},Mi=/* #__PURE__ */ pi.concat(`iframe`).join(`,`),Ni=function(e,t){if(t=t||{},!e)throw Error(`No node provided`);return gi.call(e,Mi)!==!1&&ki(t,e)},Pi=class e extends P{constructor(){super(...arguments),this.modal=!0,this.hidden=!1,this.trapFocus=!0,this.trapFocusChanged=()=>{this.$fastController.isConnected&&this.updateTrapFocus()},this.isTrappingFocus=!1,this.handleDocumentKeydown=e=>{if(!e.defaultPrevented&&!this.hidden)switch(e.key){case jn:this.dismiss(),e.preventDefault();break;case`Tab`:this.handleTabKeyDown(e)}},this.handleDocumentFocus=e=>{!e.defaultPrevented&&this.shouldForceFocus(e.target)&&(this.focusFirstElement(),e.preventDefault())},this.handleTabKeyDown=e=>{if(!this.trapFocus||this.hidden)return;let t=this.getTabQueueBounds();if(t.length!==0){if(t.length===1){t[0].focus(),e.preventDefault();return}e.shiftKey&&e.target===t[0]?(t[t.length-1].focus(),e.preventDefault()):!e.shiftKey&&e.target===t[t.length-1]&&(t[0].focus(),e.preventDefault())}},this.getTabQueueBounds=()=>e.reduceTabbableItems([],this),this.focusFirstElement=()=>{let e=this.getTabQueueBounds();e.length>0?e[0].focus():this.dialog instanceof HTMLElement&&this.dialog.focus()},this.shouldForceFocus=e=>this.isTrappingFocus&&!this.contains(e),this.shouldTrapFocus=()=>this.trapFocus&&!this.hidden,this.updateTrapFocus=e=>{let t=e===void 0?this.shouldTrapFocus():e;t&&!this.isTrappingFocus?(this.isTrappingFocus=!0,document.addEventListener(`focusin`,this.handleDocumentFocus),x.queueUpdate(()=>{this.shouldForceFocus(document.activeElement)&&this.focusFirstElement()})):!t&&this.isTrappingFocus&&(this.isTrappingFocus=!1,document.removeEventListener(`focusin`,this.handleDocumentFocus))}}dismiss(){this.$emit(`dismiss`),this.$emit(`cancel`)}show(){this.hidden=!1}hide(){this.hidden=!0,this.$emit(`close`)}connectedCallback(){super.connectedCallback(),document.addEventListener(`keydown`,this.handleDocumentKeydown),this.notifier=S.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(e,t){t===`hidden`&&this.updateTrapFocus()}static reduceTabbableItems(t,n){return n.getAttribute(`tabindex`)===`-1`?t:ji(n)||e.isFocusableFastElement(n)&&e.hasTabbableShadow(n)?(t.push(n),t):n.childElementCount?t.concat(Array.from(n.children).reduce(e.reduceTabbableItems,[])):t}static isFocusableFastElement(e){return!!e.$fastController?.definition.shadowOptions?.delegatesFocus}static hasTabbableShadow(e){return Array.from(e.shadowRoot?.querySelectorAll(`*`)??[]).some(e=>ji(e))}};M([D({mode:`boolean`})],Pi.prototype,`modal`,void 0),M([D({mode:`boolean`})],Pi.prototype,`hidden`,void 0),M([D({attribute:`trap-focus`,mode:`boolean`})],Pi.prototype,`trapFocus`,void 0),M([D({attribute:`aria-describedby`})],Pi.prototype,`ariaDescribedby`,void 0),M([D({attribute:`aria-labelledby`})],Pi.prototype,`ariaLabelledby`,void 0),M([D({attribute:`aria-label`})],Pi.prototype,`ariaLabel`,void 0);let Fi=new MutationObserver(e=>{for(let t of e)Ii.getOrCreateFor(t.target).notify(t.attributeName)});var Ii=class e extends te{constructor(t){super(t),this.watchedAttributes=/* @__PURE__ */ new Set,e.subscriberCache.set(t,this)}subscribe(e){super.subscribe(e),this.watchedAttributes.has(e.attributes)||(this.watchedAttributes.add(e.attributes),this.observe())}unsubscribe(e){super.unsubscribe(e),this.watchedAttributes.has(e.attributes)&&(this.watchedAttributes.delete(e.attributes),this.observe())}static getOrCreateFor(t){return this.subscriberCache.get(t)||new e(t)}observe(){let e=[];for(let t of this.watchedAttributes.values())for(let n=0;n<t.length;n++)e.push(t[n]);Fi.observe(this.source,{attributeFilter:e})}};Ii.subscriberCache=/* @__PURE__ */ new WeakMap;let Li=(e,t)=>T`<details class="disclosure" ${k(`details`)}><summary class="invoker" role="button" aria-controls="disclosure-content" aria-expanded="${e=>e.expanded}"><slot name="start"></slot><slot name="title">${e=>e.title}</slot><slot name="end"></slot></summary><div id="disclosure-content"><slot></slot></div></details>`;var Ri=class extends P{connectedCallback(){super.connectedCallback(),this.setup()}disconnectedCallback(){super.disconnectedCallback(),this.details.removeEventListener(`toggle`,this.onToggle)}show(){this.details.open=!0}hide(){this.details.open=!1}toggle(){this.details.open=!this.details.open}setup(){this.onToggle=this.onToggle.bind(this),this.details.addEventListener(`toggle`,this.onToggle),this.expanded&&this.show()}onToggle(){this.expanded=this.details.open,this.$emit(`toggle`)}};M([D({mode:`boolean`})],Ri.prototype,`expanded`,void 0),M([D],Ri.prototype,`title`,void 0);let zi=(e,t)=>T`<template role="${e=>e.role}" aria-orientation="${e=>e.orientation}"></template>`,ite={separator:`separator`,presentation:`presentation`};var Bi=class extends P{constructor(){super(...arguments),this.role=ite.separator,this.orientation=un.horizontal}};M([D],Bi.prototype,`role`,void 0),M([D],Bi.prototype,`orientation`,void 0);let Vi={next:`next`,previous:`previous`},Hi=(e,t)=>T`<template role="button" aria-disabled="${e=>e.disabled?!0:void 0}" tabindex="${e=>e.hiddenFromAT?-1:0}" class="${e=>e.direction} ${e=>e.disabled?`disabled`:``}" @keyup="${(e,t)=>e.keyupHandler(t.event)}">${A(e=>e.direction===Vi.next,T`<span part="next" class="next"><slot name="next">${t.next||``}</slot></span>`)} ${A(e=>e.direction===Vi.previous,T`<span part="previous" class="previous"><slot name="previous">${t.previous||``}</slot></span>`)}</template>`;var Ui=class extends P{constructor(){super(...arguments),this.hiddenFromAT=!0,this.direction=Vi.next}keyupHandler(e){if(!this.hiddenFromAT){let t=e.key;(t===`Enter`||t===`Space`)&&this.$emit(`click`,e),t===`Escape`&&this.blur()}}};M([D({mode:`boolean`})],Ui.prototype,`disabled`,void 0),M([D({attribute:`aria-hidden`,converter:Ue})],Ui.prototype,`hiddenFromAT`,void 0),M([D],Ui.prototype,`direction`,void 0);let Wi=(e,t)=>T`<template aria-checked="${e=>e.ariaChecked}" aria-disabled="${e=>e.ariaDisabled}" aria-posinset="${e=>e.ariaPosInSet}" aria-selected="${e=>e.ariaSelected}" aria-setsize="${e=>e.ariaSetSize}" class="${e=>[e.checked&&`checked`,e.selected&&`selected`,e.disabled&&`disabled`].filter(Boolean).join(` `)}" role="option">${wt(e,t)}<span class="content" part="content"><slot ${bt(`content`)}></slot></span>${Ct(e,t)}</template>`;var Gi=class extends Rr{constructor(){super(...arguments),this.activeIndex=-1,this.rangeStartIndex=-1}get activeOption(){return this.options[this.activeIndex]}get checkedOptions(){return this.options?.filter(e=>e.checked)}get firstSelectedOptionIndex(){return this.options.indexOf(this.firstSelectedOption)}activeIndexChanged(e,t){this.ariaActiveDescendant=this.options[t]?.id??``,this.focusAndScrollOptionIntoView()}checkActiveIndex(){if(!this.multiple)return;let e=this.activeOption;e&&(e.checked=!0)}checkFirstOption(e=!1){e?(this.rangeStartIndex===-1&&(this.rangeStartIndex=this.activeIndex+1),this.options.forEach((e,t)=>{e.checked=In(t,this.rangeStartIndex)})):this.uncheckAllOptions(),this.activeIndex=0,this.checkActiveIndex()}checkLastOption(e=!1){e?(this.rangeStartIndex===-1&&(this.rangeStartIndex=this.activeIndex),this.options.forEach((e,t)=>{e.checked=In(t,this.rangeStartIndex,this.options.length)})):this.uncheckAllOptions(),this.activeIndex=this.options.length-1,this.checkActiveIndex()}connectedCallback(){super.connectedCallback(),this.addEventListener(`focusout`,this.focusoutHandler)}disconnectedCallback(){this.removeEventListener(`focusout`,this.focusoutHandler),super.disconnectedCallback()}checkNextOption(e=!1){e?(this.rangeStartIndex===-1&&(this.rangeStartIndex=this.activeIndex),this.options.forEach((e,t)=>{e.checked=In(t,this.rangeStartIndex,this.activeIndex+1)})):this.uncheckAllOptions(),this.activeIndex+=+(this.activeIndex<this.options.length-1),this.checkActiveIndex()}checkPreviousOption(e=!1){e?(this.rangeStartIndex===-1&&(this.rangeStartIndex=this.activeIndex),this.checkedOptions.length===1&&(this.rangeStartIndex+=1),this.options.forEach((e,t)=>{e.checked=In(t,this.activeIndex,this.rangeStartIndex)})):this.uncheckAllOptions(),this.activeIndex-=+(this.activeIndex>0),this.checkActiveIndex()}clickHandler(e){if(!this.multiple)return super.clickHandler(e);let t=e.target?.closest(`[role=option]`);if(t&&!t.disabled)return this.uncheckAllOptions(),this.activeIndex=this.options.indexOf(t),this.checkActiveIndex(),this.toggleSelectedForAllCheckedOptions(),!0}focusAndScrollOptionIntoView(){super.focusAndScrollOptionIntoView(this.activeOption)}focusinHandler(e){if(!this.multiple)return super.focusinHandler(e);!this.shouldSkipFocus&&e.target===e.currentTarget&&(this.uncheckAllOptions(),this.activeIndex===-1&&(this.activeIndex=this.firstSelectedOptionIndex===-1?0:this.firstSelectedOptionIndex),this.checkActiveIndex(),this.setSelectedOptions(),this.focusAndScrollOptionIntoView()),this.shouldSkipFocus=!1}focusoutHandler(e){this.multiple&&this.uncheckAllOptions()}keydownHandler(e){if(!this.multiple)return super.keydownHandler(e);if(this.disabled)return!0;let{key:t,shiftKey:n}=e;switch(this.shouldSkipFocus=!1,t){case Mn:this.checkFirstOption(n);return;case En:this.checkNextOption(n);return;case kn:this.checkPreviousOption(n);return;case`End`:this.checkLastOption(n);return;case`Tab`:return this.focusAndScrollOptionIntoView(),!0;case jn:return this.uncheckAllOptions(),this.checkActiveIndex(),!0;case` `:if(e.preventDefault(),this.typeAheadExpired){this.toggleSelectedForAllCheckedOptions();return}default:return t.length===1&&this.handleTypeAhead(`${t}`),!0}}mousedownHandler(e){if(e.offsetX>=0&&e.offsetX<=this.scrollWidth)return super.mousedownHandler(e)}multipleChanged(e,t){var n;this.ariaMultiSelectable=t?`true`:null,(n=this.options)==null||n.forEach(e=>{e.checked=!t&&void 0}),this.setSelectedOptions()}setSelectedOptions(){if(!this.multiple){super.setSelectedOptions();return}this.$fastController.isConnected&&this.options&&(this.selectedOptions=this.options.filter(e=>e.selected),this.focusAndScrollOptionIntoView())}sizeChanged(e,t){let n=Math.max(0,parseInt(t?.toFixed()??``,10));n!==t&&x.queueUpdate(()=>{this.size=n})}toggleSelectedForAllCheckedOptions(){let e=this.checkedOptions.filter(e=>!e.disabled),t=!e.every(e=>e.selected);e.forEach(e=>e.selected=t),this.selectedIndex=this.options.indexOf(e[e.length-1]),this.setSelectedOptions()}typeaheadBufferChanged(e,t){if(!this.multiple){super.typeaheadBufferChanged(e,t);return}if(this.$fastController.isConnected){let e=this.getTypeaheadMatches(),t=this.options.indexOf(e[0]);t>-1&&(this.activeIndex=t,this.uncheckAllOptions(),this.checkActiveIndex()),this.typeAheadExpired=!1}}uncheckAllOptions(e=!1){this.options.forEach(e=>e.checked=!this.multiple&&void 0),e||(this.rangeStartIndex=-1)}};M([C],Gi.prototype,`activeIndex`,void 0),M([D({mode:`boolean`})],Gi.prototype,`multiple`,void 0),M([D({converter:E})],Gi.prototype,`size`,void 0);let Ki=(e,t)=>T`<template aria-activedescendant="${e=>e.ariaActiveDescendant}" aria-multiselectable="${e=>e.ariaMultiSelectable}" class="listbox" role="listbox" tabindex="${e=>e.disabled?null:`0`}" @click="${(e,t)=>e.clickHandler(t.event)}" @focusin="${(e,t)=>e.focusinHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}" @mousedown="${(e,t)=>e.mousedownHandler(t.event)}"><slot ${bt({filter:Gi.slottedOptionFilter,flatten:!0,property:`slottedOptions`})}></slot></template>`;var qi=class extends P{constructor(){super(...arguments),this.optionElements=[]}menuElementsChanged(){this.updateOptions()}headerElementsChanged(){this.updateOptions()}footerElementsChanged(){this.updateOptions()}updateOptions(){this.optionElements.splice(0,this.optionElements.length),this.addSlottedListItems(this.headerElements),this.addSlottedListItems(this.menuElements),this.addSlottedListItems(this.footerElements),this.$emit(`optionsupdated`,{bubbles:!1})}addSlottedListItems(e){e!==void 0&&e.forEach(e=>{e.nodeType===1&&e.getAttribute(`role`)===`listitem`&&(e.id=e.id||Ln(`option-`),this.optionElements.push(e))})}};M([C],qi.prototype,`menuElements`,void 0),M([C],qi.prototype,`headerElements`,void 0),M([C],qi.prototype,`footerElements`,void 0),M([C],qi.prototype,`suggestionsAvailableText`,void 0);let ate=T`<template>${e=>e.value}</template>`;var Ji=class extends P{contentsTemplateChanged(){this.$fastController.isConnected&&this.updateView()}connectedCallback(){super.connectedCallback(),this.updateView()}disconnectedCallback(){super.disconnectedCallback(),this.disconnectView()}handleClick(e){return e.defaultPrevented||this.handleInvoked(),!1}handleInvoked(){this.$emit(`pickeroptioninvoked`)}updateView(){this.disconnectView(),this.customView=this.contentsTemplate?.render(this,this)??ate.render(this,this)}disconnectView(){var e;(e=this.customView)==null||e.dispose(),this.customView=void 0}};M([D({attribute:`value`})],Ji.prototype,`value`,void 0),M([C],Ji.prototype,`contentsTemplate`,void 0);var Yi=class extends P{};let ote=T`<template>${e=>e.value}</template>`;var Xi=class extends P{contentsTemplateChanged(){this.$fastController.isConnected&&this.updateView()}connectedCallback(){super.connectedCallback(),this.updateView()}disconnectedCallback(){this.disconnectView(),super.disconnectedCallback()}handleKeyDown(e){return e.defaultPrevented?!1:e.key!==`Enter`||(this.handleInvoke(),!1)}handleClick(e){return e.defaultPrevented||this.handleInvoke(),!1}handleInvoke(){this.$emit(`pickeriteminvoked`)}updateView(){this.disconnectView(),this.customView=this.contentsTemplate?.render(this,this)??ote.render(this,this)}disconnectView(){var e;(e=this.customView)==null||e.dispose(),this.customView=void 0}};M([D({attribute:`value`})],Xi.prototype,`value`,void 0),M([C],Xi.prototype,`contentsTemplate`,void 0);function ste(e){let t=e.tagFor(Xi);return T`<${t}value="${e=>e}" :contentsTemplate="${(e,t)=>t.parent.listItemContentsTemplate}"></${t}>`}function cte(e){let t=e.tagFor(Ji);return T`<${t}value="${e=>e}" :contentsTemplate="${(e,t)=>t.parent.menuOptionContentsTemplate}"></${t}>`}let lte=(e,t)=>{let n=e.tagFor(Jn),r=e.tagFor(qi),i=e.tagFor(Yi),a=e.tagFor(Yi);return T`<template :selectedListTag="${()=>i}" :menuTag="${()=>r}" :defaultListItemTemplate="${ste(e)}" :defaultMenuOptionTemplate="${cte(e)}" @focusin="${(e,t)=>e.handleFocusIn(t.event)}" @focusout="${(e,t)=>e.handleFocusOut(t.event)}" @keydown="${(e,t)=>e.handleKeyDown(t.event)}" @pickeriteminvoked="${(e,t)=>e.handleItemInvoke(t.event)}" @pickeroptioninvoked="${(e,t)=>e.handleOptionInvoke(t.event)}"><slot name="list-region"></slot>${A(e=>e.flyoutOpen,T`<${n}class="region" part="region" auto-update-mode="${e=>e.menuConfig.autoUpdateMode}" fixed-placement="${e=>e.menuConfig.fixedPlacement}" vertical-positioning-mode="${e=>e.menuConfig.verticalPositioningMode}" vertical-default-position="${e=>e.menuConfig.verticalDefaultPosition}" vertical-scaling="${e=>e.menuConfig.verticalScaling}" vertical-inset="${e=>e.menuConfig.verticalInset}" vertical-viewport-lock="${e=>e.menuConfig.verticalViewportLock}" horizontal-positioning-mode="${e=>e.menuConfig.horizontalPositioningMode}" horizontal-default-position="${e=>e.menuConfig.horizontalDefaultPosition}" horizontal-scaling="${e=>e.menuConfig.horizontalScaling}" horizontal-inset="${e=>e.menuConfig.horizontalInset}" horizontal-viewport-lock="${e=>e.menuConfig.horizontalViewportLock}" @loaded="${(e,t)=>e.handleRegionLoaded(t.event)}" ${k(`region`)}>${A(e=>!e.showNoOptions&&!e.showLoading,T`<slot name="menu-region"></slot>`)} ${A(e=>e.showNoOptions&&!e.showLoading,T`<div class="no-options-display" part="no-options-display"><slot name="no-options-region">${e=>e.noSuggestionsText}</slot></div>`)} ${A(e=>e.showLoading,T`<div class="loading-display" part="loading-display"><slot name="loading-region"><${a}part="loading-progress" class="loading-progress slot="loading-region"></${a}>${e=>e.loadingText}</slot></div>`)}</${n}>`)}</template>`};var ute=class extends P{},dte=class extends pr(ute){constructor(){super(...arguments),this.proxy=document.createElement(`input`)}};let fte=T`<input slot="input-region" role="combobox" type="text" autocapitalize="off" autocomplete="off" haspopup="list" aria-label="${e=>e.label}" aria-labelledby="${e=>e.labelledBy}" placeholder="${e=>e.placeholder}" ${k(`inputElement`)}></input>`;var Zi=class extends dte{constructor(){super(...arguments),this.selection=``,this.filterSelected=!0,this.filterQuery=!0,this.noSuggestionsText=`No suggestions available`,this.suggestionsAvailableText=`Suggestions available`,this.loadingText=`Loading suggestions`,this.menuPlacement=`bottom-fill`,this.showLoading=!1,this.optionsList=[],this.filteredOptionsList=[],this.flyoutOpen=!1,this.menuFocusIndex=-1,this.showNoOptions=!1,this.selectedItems=[],this.inputElementView=null,this.handleTextInput=e=>{this.query=this.inputElement.value},this.handleInputClick=e=>{e.preventDefault(),this.toggleFlyout(!0)},this.setRegionProps=()=>{if(this.flyoutOpen){if(this.region===null||this.region===void 0){x.queueUpdate(this.setRegionProps);return}this.region.anchorElement=this.inputElement}},this.configLookup={top:Xn,bottom:Zn,tallest:Qn,"top-fill":Aee,"bottom-fill":$n,"tallest-fill":jee}}selectionChanged(){this.$fastController.isConnected&&(this.handleSelectionChange(),this.proxy instanceof HTMLInputElement&&(this.proxy.value=this.selection,this.validate()))}optionsChanged(){this.optionsList=this.options.split(`,`).map(e=>e.trim()).filter(e=>e!==``)}menuPlacementChanged(){this.$fastController.isConnected&&this.updateMenuConfig()}showLoadingChanged(){this.$fastController.isConnected&&x.queueUpdate(()=>{this.setFocusedOption(0)})}listItemTemplateChanged(){this.updateListItemTemplate()}defaultListItemTemplateChanged(){this.updateListItemTemplate()}menuOptionTemplateChanged(){this.updateOptionTemplate()}defaultMenuOptionTemplateChanged(){this.updateOptionTemplate()}optionsListChanged(){this.updateFilteredOptions()}queryChanged(){this.$fastController.isConnected&&(this.inputElement.value!==this.query&&(this.inputElement.value=this.query),this.updateFilteredOptions(),this.$emit(`querychange`,{bubbles:!1}))}filteredOptionsListChanged(){this.$fastController.isConnected&&(this.showNoOptions=this.filteredOptionsList.length===0&&this.menuElement.querySelectorAll(`[role="listitem"]`).length===0,this.setFocusedOption(this.showNoOptions?-1:0))}flyoutOpenChanged(){this.flyoutOpen?(x.queueUpdate(this.setRegionProps),this.$emit(`menuopening`,{bubbles:!1})):this.$emit(`menuclosing`,{bubbles:!1})}showNoOptionsChanged(){this.$fastController.isConnected&&x.queueUpdate(()=>{this.setFocusedOption(0)})}connectedCallback(){super.connectedCallback(),this.listElement=document.createElement(this.selectedListTag),this.appendChild(this.listElement),this.itemsPlaceholderElement=document.createComment(``),this.listElement.append(this.itemsPlaceholderElement),this.inputElementView=fte.render(this,this.listElement);let e=this.menuTag.toUpperCase();this.menuElement=Array.from(this.children).find(t=>t.tagName===e),this.menuElement===void 0&&(this.menuElement=document.createElement(this.menuTag),this.appendChild(this.menuElement)),this.menuElement.id===``&&(this.menuElement.id=Ln(`listbox-`)),this.menuId=this.menuElement.id,this.optionsPlaceholder=document.createComment(``),this.menuElement.append(this.optionsPlaceholder),this.updateMenuConfig(),x.queueUpdate(()=>this.initialize())}disconnectedCallback(){super.disconnectedCallback(),this.toggleFlyout(!1),this.inputElement.removeEventListener(`input`,this.handleTextInput),this.inputElement.removeEventListener(`click`,this.handleInputClick),this.inputElementView!==null&&(this.inputElementView.dispose(),this.inputElementView=null)}focus(){this.inputElement.focus()}initialize(){this.updateListItemTemplate(),this.updateOptionTemplate(),this.itemsRepeatBehavior=new _t(e=>e.selectedItems,e=>e.activeListItemTemplate,{positioning:!0}).createBehavior(this.itemsPlaceholderElement),this.inputElement.addEventListener(`input`,this.handleTextInput),this.inputElement.addEventListener(`click`,this.handleInputClick),this.$fastController.addBehaviors([this.itemsRepeatBehavior]),this.menuElement.suggestionsAvailableText=this.suggestionsAvailableText,this.menuElement.addEventListener(`optionsupdated`,this.handleMenuOptionsUpdated),this.optionsRepeatBehavior=new _t(e=>e.filteredOptionsList,e=>e.activeMenuOptionTemplate,{positioning:!0}).createBehavior(this.optionsPlaceholder),this.$fastController.addBehaviors([this.optionsRepeatBehavior]),this.handleSelectionChange()}toggleFlyout(e){if(this.flyoutOpen!==e){if(e&&document.activeElement===this.inputElement){this.flyoutOpen=e,x.queueUpdate(()=>{this.menuElement===void 0?this.disableMenu():this.setFocusedOption(0)});return}this.flyoutOpen=!1,this.disableMenu()}}handleMenuOptionsUpdated(e){e.preventDefault(),this.flyoutOpen&&this.setFocusedOption(0)}handleKeyDown(e){if(e.defaultPrevented)return!1;switch(e.key){case En:if(!this.flyoutOpen)this.toggleFlyout(!0);else{let e=this.flyoutOpen?Math.min(this.menuFocusIndex+1,this.menuElement.optionElements.length-1):0;this.setFocusedOption(e)}return!1;case kn:if(!this.flyoutOpen)this.toggleFlyout(!0);else{let e=this.flyoutOpen?Math.max(this.menuFocusIndex-1,0):0;this.setFocusedOption(e)}return!1;case jn:return this.toggleFlyout(!1),!1;case An:return this.menuFocusIndex!==-1&&this.menuElement.optionElements.length>this.menuFocusIndex&&this.menuElement.optionElements[this.menuFocusIndex].click(),!1;case On:return document.activeElement===this.inputElement||(this.incrementFocusedItem(1),!1);case Dn:return this.inputElement.selectionStart!==0||(this.incrementFocusedItem(-1),!1);case`Delete`:case`Backspace`:{if(document.activeElement===null)return!0;if(document.activeElement===this.inputElement)return this.inputElement.selectionStart!==0||(this.selection=this.selectedItems.slice(0,this.selectedItems.length-1).toString(),this.toggleFlyout(!1),!1);let e=Array.from(this.listElement.children),t=e.indexOf(document.activeElement);return t>-1?(this.selection=this.selectedItems.splice(t,1).toString(),x.queueUpdate(()=>{e[Math.min(e.length,t)].focus()}),!1):!0}}return this.toggleFlyout(!0),!0}handleFocusIn(e){return!1}handleFocusOut(e){return(this.menuElement===void 0||!this.menuElement.contains(e.relatedTarget))&&this.toggleFlyout(!1),!1}handleSelectionChange(){this.selectedItems.toString()!==this.selection&&(this.selectedItems=this.selection===``?[]:this.selection.split(`,`),this.updateFilteredOptions(),x.queueUpdate(()=>{this.checkMaxItems()}),this.$emit(`selectionchange`,{bubbles:!1}))}handleRegionLoaded(e){x.queueUpdate(()=>{this.setFocusedOption(0),this.$emit(`menuloaded`,{bubbles:!1})})}checkMaxItems(){if(this.inputElement!==void 0){if(this.maxSelected!==void 0&&this.selectedItems.length>=this.maxSelected){if(document.activeElement===this.inputElement){let e=Array.from(this.listElement.querySelectorAll(`[role='listitem']`));e[e.length-1].focus()}this.inputElement.hidden=!0}else this.inputElement.hidden=!1}}handleItemInvoke(e){if(e.defaultPrevented)return!1;if(e.target instanceof Xi){let t=Array.from(this.listElement.querySelectorAll(`[role='listitem']`)).indexOf(e.target);if(t!==-1){let e=this.selectedItems.slice();e.splice(t,1),this.selection=e.toString(),x.queueUpdate(()=>this.incrementFocusedItem(0))}return!1}return!0}handleOptionInvoke(e){return e.defaultPrevented?!1:e.target instanceof Ji?(e.target.value!==void 0&&(this.selection=`${this.selection}${this.selection===``?``:`,`}${e.target.value}`),this.inputElement.value=``,this.query=``,this.inputElement.focus(),this.toggleFlyout(!1),!1):!0}incrementFocusedItem(e){if(this.selectedItems.length===0){this.inputElement.focus();return}let t=Array.from(this.listElement.querySelectorAll(`[role='listitem']`));if(document.activeElement!==null){let n=t.indexOf(document.activeElement);n===-1&&(n=t.length);let r=Math.min(t.length,Math.max(0,n+e));r===t.length?this.maxSelected!==void 0&&this.selectedItems.length>=this.maxSelected?t[r-1].focus():this.inputElement.focus():t[r].focus()}}disableMenu(){var e,t,n;this.menuFocusIndex=-1,this.menuFocusOptionId=void 0,(e=this.inputElement)==null||e.removeAttribute(`aria-activedescendant`),(t=this.inputElement)==null||t.removeAttribute(`aria-owns`),(n=this.inputElement)==null||n.removeAttribute(`aria-expanded`)}setFocusedOption(e){if(!this.flyoutOpen||e===-1||this.showNoOptions||this.showLoading){this.disableMenu();return}if(this.menuElement.optionElements.length===0)return;this.menuElement.optionElements.forEach(e=>{e.setAttribute(`aria-selected`,`false`)}),this.menuFocusIndex=e,this.menuFocusIndex>this.menuElement.optionElements.length-1&&(this.menuFocusIndex=this.menuElement.optionElements.length-1),this.menuFocusOptionId=this.menuElement.optionElements[this.menuFocusIndex].id,this.inputElement.setAttribute(`aria-owns`,this.menuId),this.inputElement.setAttribute(`aria-expanded`,`true`),this.inputElement.setAttribute(`aria-activedescendant`,this.menuFocusOptionId);let t=this.menuElement.optionElements[this.menuFocusIndex];t.setAttribute(`aria-selected`,`true`),this.menuElement.scrollTo(0,t.offsetTop)}updateListItemTemplate(){this.activeListItemTemplate=this.listItemTemplate??this.defaultListItemTemplate}updateOptionTemplate(){this.activeMenuOptionTemplate=this.menuOptionTemplate??this.defaultMenuOptionTemplate}updateFilteredOptions(){this.filteredOptionsList=this.optionsList.slice(0),this.filterSelected&&(this.filteredOptionsList=this.filteredOptionsList.filter(e=>this.selectedItems.indexOf(e)===-1)),this.filterQuery&&this.query!==``&&this.query!==void 0&&(this.filteredOptionsList=this.filteredOptionsList.filter(e=>e.indexOf(this.query)!==-1))}updateMenuConfig(){let e=this.configLookup[this.menuPlacement];e===null&&(e=$n),this.menuConfig=Object.assign(Object.assign({},e),{autoUpdateMode:`auto`,fixedPlacement:!0,horizontalViewportLock:!1,verticalViewportLock:!1})}};M([D({attribute:`selection`})],Zi.prototype,`selection`,void 0),M([D({attribute:`options`})],Zi.prototype,`options`,void 0),M([D({attribute:`filter-selected`,mode:`boolean`})],Zi.prototype,`filterSelected`,void 0),M([D({attribute:`filter-query`,mode:`boolean`})],Zi.prototype,`filterQuery`,void 0),M([D({attribute:`max-selected`})],Zi.prototype,`maxSelected`,void 0),M([D({attribute:`no-suggestions-text`})],Zi.prototype,`noSuggestionsText`,void 0),M([D({attribute:`suggestions-available-text`})],Zi.prototype,`suggestionsAvailableText`,void 0),M([D({attribute:`loading-text`})],Zi.prototype,`loadingText`,void 0),M([D({attribute:`label`})],Zi.prototype,`label`,void 0),M([D({attribute:`labelledby`})],Zi.prototype,`labelledBy`,void 0),M([D({attribute:`placeholder`})],Zi.prototype,`placeholder`,void 0),M([D({attribute:`menu-placement`})],Zi.prototype,`menuPlacement`,void 0),M([C],Zi.prototype,`showLoading`,void 0),M([C],Zi.prototype,`listItemTemplate`,void 0),M([C],Zi.prototype,`defaultListItemTemplate`,void 0),M([C],Zi.prototype,`activeListItemTemplate`,void 0),M([C],Zi.prototype,`menuOptionTemplate`,void 0),M([C],Zi.prototype,`defaultMenuOptionTemplate`,void 0),M([C],Zi.prototype,`activeMenuOptionTemplate`,void 0),M([C],Zi.prototype,`listItemContentsTemplate`,void 0),M([C],Zi.prototype,`menuOptionContentsTemplate`,void 0),M([C],Zi.prototype,`optionsList`,void 0),M([C],Zi.prototype,`query`,void 0),M([C],Zi.prototype,`filteredOptionsList`,void 0),M([C],Zi.prototype,`flyoutOpen`,void 0),M([C],Zi.prototype,`menuId`,void 0),M([C],Zi.prototype,`selectedListTag`,void 0),M([C],Zi.prototype,`menuTag`,void 0),M([C],Zi.prototype,`menuFocusIndex`,void 0),M([C],Zi.prototype,`menuFocusOptionId`,void 0),M([C],Zi.prototype,`showNoOptions`,void 0),M([C],Zi.prototype,`menuConfig`,void 0),M([C],Zi.prototype,`selectedItems`,void 0);let pte=(e,t)=>T`<template role="list" slot="menu-region"><div class="options-display" part="options-display"><div class="header-region" part="header-region"><slot name="header-region" ${bt(`headerElements`)}></slot></div><slot ${bt(`menuElements`)}></slot><div class="footer-region" part="footer-region"><slot name="footer-region" ${bt(`footerElements`)}></slot></div><div role="alert" aria-live="polite" part="suggestions-available-alert" class="suggestions-available-alert">${e=>e.suggestionsAvailableText}</div></div></template>`,mte=(e,t)=>T`<template role="listitem" tabindex="-1" @click="${(e,t)=>e.handleClick(t.event)}"><slot></slot></template>`,hte=(e,t)=>T`<template slot="list-region" role="list" class="picker-list"><slot></slot><slot name="input-region"></slot></template>`,gte=(e,t)=>T`<template role="listitem" tabindex="0" @click="${(e,t)=>e.handleClick(t.event)}" @keydown="${(e,t)=>e.handleKeyDown(t.event)}"><slot></slot></template>`,Qi={menuitem:`menuitem`,menuitemcheckbox:`menuitemcheckbox`,menuitemradio:`menuitemradio`},_te={[Qi.menuitem]:`menuitem`,[Qi.menuitemcheckbox]:`menuitemcheckbox`,[Qi.menuitemradio]:`menuitemradio`};var $i=class extends P{constructor(){super(...arguments),this.role=Qi.menuitem,this.hasSubmenu=!1,this.currentDirection=Pn.ltr,this.focusSubmenuOnLoad=!1,this.handleMenuItemKeyDown=e=>{if(e.defaultPrevented)return!1;switch(e.key){case An:case` `:return this.invoke(),!1;case On:return this.expandAndFocus(),!1;case Dn:if(this.expanded)return this.expanded=!1,this.focus(),!1}return!0},this.handleMenuItemClick=e=>(e.defaultPrevented||this.disabled||this.invoke(),!1),this.submenuLoaded=()=>{this.focusSubmenuOnLoad&&(this.focusSubmenuOnLoad=!1,this.hasSubmenu&&(this.submenu.focus(),this.setAttribute(`tabindex`,`-1`)))},this.handleMouseOver=e=>(this.disabled||!this.hasSubmenu||this.expanded||(this.expanded=!0),!1),this.handleMouseOut=e=>(!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 Qi.menuitemcheckbox:this.checked=!this.checked;break;case Qi.menuitem:this.updateSubmenu(),this.hasSubmenu?this.expandAndFocus():this.$emit(`change`);break;case Qi.menuitemradio:this.checked||(this.checked=!0)}},this.updateSubmenu=()=>{this.submenu=this.domChildren().find(e=>e.getAttribute(`role`)===`menu`),this.hasSubmenu=this.submenu!==void 0}}expandedChanged(e){if(this.$fastController.isConnected){if(this.submenu===void 0)return;this.expanded===!1?this.submenu.collapseExpandedItem():this.currentDirection=qn(this),this.$emit(`expanded-change`,this,{bubbles:!1})}}checkedChanged(e,t){this.$fastController.isConnected&&this.$emit(`change`)}connectedCallback(){super.connectedCallback(),x.queueUpdate(()=>{this.updateSubmenu()}),this.startColumnCount||(this.startColumnCount=1),this.observer=new MutationObserver(this.updateSubmenu)}disconnectedCallback(){super.disconnectedCallback(),this.submenu=void 0,this.observer!==void 0&&(this.observer.disconnect(),this.observer=void 0)}domChildren(){return Array.from(this.children).filter(e=>!e.hasAttribute(`hidden`))}};M([D({mode:`boolean`})],$i.prototype,`disabled`,void 0),M([D({mode:`boolean`})],$i.prototype,`expanded`,void 0),M([C],$i.prototype,`startColumnCount`,void 0),M([D],$i.prototype,`role`,void 0),M([D({mode:`boolean`})],$i.prototype,`checked`,void 0),M([C],$i.prototype,`submenuRegion`,void 0),M([C],$i.prototype,`hasSubmenu`,void 0),M([C],$i.prototype,`currentDirection`,void 0),M([C],$i.prototype,`submenu`,void 0),sn($i,St);let ea=(e,t)=>T`<template role="${e=>e.role}" aria-haspopup="${e=>e.hasSubmenu?`menu`:void 0}" aria-checked="${e=>e.role===Qi.menuitem?void 0:e.checked}" aria-disabled="${e=>e.disabled}" aria-expanded="${e=>e.expanded}" @keydown="${(e,t)=>e.handleMenuItemKeyDown(t.event)}" @click="${(e,t)=>e.handleMenuItemClick(t.event)}" @mouseover="${(e,t)=>e.handleMouseOver(t.event)}" @mouseout="${(e,t)=>e.handleMouseOut(t.event)}" class="${e=>e.disabled?`disabled`:``} ${e=>e.expanded?`expanded`:``} ${e=>`indent-${e.startColumnCount}`}">${A(e=>e.role===Qi.menuitemcheckbox,T`<div part="input-container" class="input-container"><span part="checkbox" class="checkbox"><slot name="checkbox-indicator">${t.checkboxIndicator||``}</slot></span></div>`)} ${A(e=>e.role===Qi.menuitemradio,T`<div part="input-container" class="input-container"><span part="radio" class="radio"><slot name="radio-indicator">${t.radioIndicator||``}</slot></span></div>`)}</div>${wt(e,t)}<span class="content" part="content"><slot></slot></span>${Ct(e,t)} ${A(e=>e.hasSubmenu,T`<div part="expand-collapse-glyph-container" class="expand-collapse-glyph-container"><span part="expand-collapse" class="expand-collapse"><slot name="expand-collapse-indicator">${t.expandCollapseGlyph||``}</slot></span></div>`)} ${A(e=>e.expanded,T`<${e.tagFor(Jn)}:anchorElement="${e=>e}" vertical-positioning-mode="dynamic" vertical-default-position="bottom" vertical-inset="true" horizontal-positioning-mode="dynamic" horizontal-default-position="end" class="submenu-region" dir="${e=>e.currentDirection}" @loaded="${e=>e.submenuLoaded()}" ${k(`submenuRegion`)}part="submenu-region"><slot name="submenu"></slot></${e.tagFor(Jn)}>`)}</template>`,ta=(e,t)=>T`<template slot="${e=>e.slot?e.slot:e.isNestedMenu()?`submenu`:void 0}" role="menu" @keydown="${(e,t)=>e.handleMenuKeyDown(t.event)}" @focusout="${(e,t)=>e.handleFocusOut(t.event)}"><slot ${bt(`items`)}></slot></template>`;var na=class e extends P{constructor(){super(...arguments),this.expandedItem=null,this.focusIndex=-1,this.isNestedMenu=()=>this.parentElement!==null&&mn(this.parentElement)&&this.parentElement.getAttribute(`role`)===`menuitem`,this.handleFocusOut=e=>{if(!this.contains(e.relatedTarget)&&this.menuItems!==void 0){this.collapseExpandedItem();let e=this.menuItems.findIndex(this.isFocusableElement);this.menuItems[this.focusIndex].setAttribute(`tabindex`,`-1`),this.menuItems[e].setAttribute(`tabindex`,`0`),this.focusIndex=e}},this.handleItemFocus=e=>{let t=e.target;this.menuItems!==void 0&&t!==this.menuItems[this.focusIndex]&&(this.menuItems[this.focusIndex].setAttribute(`tabindex`,`-1`),this.focusIndex=this.menuItems.indexOf(t),t.setAttribute(`tabindex`,`0`))},this.handleExpandedChanged=e=>{if(e.defaultPrevented||e.target===null||this.menuItems===void 0||this.menuItems.indexOf(e.target)<0)return;e.preventDefault();let t=e.target;if(this.expandedItem!==null&&t===this.expandedItem&&t.expanded===!1){this.expandedItem=null;return}t.expanded&&(this.expandedItem!==null&&this.expandedItem!==t&&(this.expandedItem.expanded=!1),this.menuItems[this.focusIndex].setAttribute(`tabindex`,`-1`),this.expandedItem=t,this.focusIndex=this.menuItems.indexOf(t),t.setAttribute(`tabindex`,`0`))},this.removeItemListeners=()=>{this.menuItems!==void 0&&this.menuItems.forEach(e=>{e.removeEventListener(`expanded-change`,this.handleExpandedChanged),e.removeEventListener(`focus`,this.handleItemFocus)})},this.setItems=()=>{let e=this.domChildren();this.removeItemListeners(),this.menuItems=e;let t=this.menuItems.filter(this.isMenuItemElement);t.length&&(this.focusIndex=0);function n(e){let t=e.getAttribute(`role`),n=e.querySelector(`[slot=start]`);return t!==Qi.menuitem&&n===null||t===Qi.menuitem&&n!==null?1:t!==Qi.menuitem&&n!==null?2:0}let r=t.reduce((e,t)=>{let r=n(t);return e>r?e:r},0);t.forEach((e,t)=>{e.setAttribute(`tabindex`,t===0?`0`:`-1`),e.addEventListener(`expanded-change`,this.handleExpandedChanged),e.addEventListener(`focus`,this.handleItemFocus),(e instanceof $i||`startColumnCount`in e)&&(e.startColumnCount=r)})},this.changeHandler=e=>{if(this.menuItems===void 0)return;let t=e.target,n=this.menuItems.indexOf(t);if(n!==-1&&t.role===`menuitemradio`&&t.checked===!0){for(let e=n-1;e>=0;--e){let t=this.menuItems[e],n=t.getAttribute(`role`);if(n===Qi.menuitemradio&&(t.checked=!1),n===`separator`)break}let e=this.menuItems.length-1;for(let t=n+1;t<=e;++t){let e=this.menuItems[t],n=e.getAttribute(`role`);if(n===Qi.menuitemradio&&(e.checked=!1),n===`separator`)break}}},this.isMenuItemElement=t=>mn(t)&&e.focusableElementRoles.hasOwnProperty(t.getAttribute(`role`)),this.isFocusableElement=e=>this.isMenuItemElement(e)}itemsChanged(e,t){this.$fastController.isConnected&&this.menuItems!==void 0&&this.setItems()}connectedCallback(){super.connectedCallback(),x.queueUpdate(()=>{this.setItems()}),this.addEventListener(`change`,this.changeHandler)}disconnectedCallback(){super.disconnectedCallback(),this.removeItemListeners(),this.menuItems=void 0,this.removeEventListener(`change`,this.changeHandler)}focus(){this.setFocus(0,1)}collapseExpandedItem(){this.expandedItem!==null&&(this.expandedItem.expanded=!1,this.expandedItem=null)}handleMenuKeyDown(e){if(!(e.defaultPrevented||this.menuItems===void 0))switch(e.key){case En:this.setFocus(this.focusIndex+1,1);return;case kn:this.setFocus(this.focusIndex-1,-1);return;case`End`:this.setFocus(this.menuItems.length-1,-1);return;case Mn:this.setFocus(0,1);return;default:return!0}}domChildren(){return Array.from(this.children).filter(e=>!e.hasAttribute(`hidden`))}setFocus(e,t){if(this.menuItems!==void 0)for(;e>=0&&e<this.menuItems.length;){let n=this.menuItems[e];if(this.isFocusableElement(n)){this.focusIndex>-1&&this.menuItems.length>=this.focusIndex-1&&this.menuItems[this.focusIndex].setAttribute(`tabindex`,`-1`),this.focusIndex=e,n.setAttribute(`tabindex`,`0`),n.focus();break}e+=t}}};na.focusableElementRoles=_te,M([C],na.prototype,`items`,void 0);let vte=(e,t)=>T`<template class="${e=>e.readOnly?`readonly`:``}"><label part="label" for="control" class="${e=>e.defaultSlottedNodes&&e.defaultSlottedNodes.length?`label`:`label label__hidden`}"><slot ${bt(`defaultSlottedNodes`)}></slot></label><div class="root" part="root">${wt(e,t)}<input class="control" part="control" id="control" @input="${e=>e.handleTextInput()}" @change="${e=>e.handleChange()}" @keydown="${(e,t)=>e.handleKeyDown(t.event)}" @blur="${(e,t)=>e.handleBlur()}" ?autofocus="${e=>e.autofocus}" ?disabled="${e=>e.disabled}" list="${e=>e.list}" maxlength="${e=>e.maxlength}" minlength="${e=>e.minlength}" placeholder="${e=>e.placeholder}" ?readonly="${e=>e.readOnly}" ?required="${e=>e.required}" size="${e=>e.size}" type="text" inputmode="numeric" min="${e=>e.min}" max="${e=>e.max}" step="${e=>e.step}" aria-atomic="${e=>e.ariaAtomic}" aria-busy="${e=>e.ariaBusy}" aria-controls="${e=>e.ariaControls}" aria-current="${e=>e.ariaCurrent}" aria-describedby="${e=>e.ariaDescribedby}" aria-details="${e=>e.ariaDetails}" aria-disabled="${e=>e.ariaDisabled}" aria-errormessage="${e=>e.ariaErrormessage}" aria-flowto="${e=>e.ariaFlowto}" aria-haspopup="${e=>e.ariaHaspopup}" aria-hidden="${e=>e.ariaHidden}" aria-invalid="${e=>e.ariaInvalid}" aria-keyshortcuts="${e=>e.ariaKeyshortcuts}" aria-label="${e=>e.ariaLabel}" aria-labelledby="${e=>e.ariaLabelledby}" aria-live="${e=>e.ariaLive}" aria-owns="${e=>e.ariaOwns}" aria-relevant="${e=>e.ariaRelevant}" aria-roledescription="${e=>e.ariaRoledescription}" ${k(`control`)}/>${A(e=>!e.hideStep&&!e.readOnly&&!e.disabled,T`<div class="controls" part="controls"><div class="step-up" part="step-up" @click="${e=>e.stepUp()}"><slot name="step-up-glyph">${t.stepUpGlyph||``}</slot></div><div class="step-down" part="step-down" @click="${e=>e.stepDown()}"><slot name="step-down-glyph">${t.stepDownGlyph||``}</slot></div></div>`)} ${Ct(e,t)}</div></template>`;var yte=class extends P{},bte=class extends pr(yte){constructor(){super(...arguments),this.proxy=document.createElement(`input`)}};let xte={email:`email`,password:`password`,tel:`tel`,text:`text`,url:`url`};var ra=class extends bte{constructor(){super(...arguments),this.type=xte.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&&x.queueUpdate(()=>{this.focus()})}select(){this.control.select(),this.$emit(`select`)}handleTextInput(){this.value=this.control.value}handleChange(){this.$emit(`change`)}validate(){super.validate(this.control)}};M([D({attribute:`readonly`,mode:`boolean`})],ra.prototype,`readOnly`,void 0),M([D({mode:`boolean`})],ra.prototype,`autofocus`,void 0),M([D],ra.prototype,`placeholder`,void 0),M([D],ra.prototype,`type`,void 0),M([D],ra.prototype,`list`,void 0),M([D({converter:E})],ra.prototype,`maxlength`,void 0),M([D({converter:E})],ra.prototype,`minlength`,void 0),M([D],ra.prototype,`pattern`,void 0),M([D({converter:E})],ra.prototype,`size`,void 0),M([D({mode:`boolean`})],ra.prototype,`spellcheck`,void 0),M([C],ra.prototype,`defaultSlottedNodes`,void 0);var ia=class{};sn(ia,Un),sn(ra,St,ia);var Ste=class extends P{},Cte=class extends pr(Ste){constructor(){super(...arguments),this.proxy=document.createElement(`input`)}},aa=class extends Cte{constructor(){super(...arguments),this.hideStep=!1,this.step=1,this.isUserInput=!1}maxChanged(e,t){this.max=Math.max(t,this.min??t);let n=Math.min(this.min,this.max);this.min!==void 0&&this.min!==n&&(this.min=n),this.value=this.getValidValue(this.value)}minChanged(e,t){this.min=Math.min(t,this.max??t);let n=Math.max(this.min,this.max);this.max!==void 0&&this.max!==n&&(this.max=n),this.value=this.getValidValue(this.value)}get valueAsNumber(){return parseFloat(super.value)}set valueAsNumber(e){this.value=e.toString()}valueChanged(e,t){this.value=this.getValidValue(t),t===this.value&&(this.control&&!this.isUserInput&&(this.control.value=this.value),super.valueChanged(e,this.value),e!==void 0&&!this.isUserInput&&(this.$emit(`input`),this.$emit(`change`)),this.isUserInput=!1)}validate(){super.validate(this.control)}getValidValue(e){let t=parseFloat(parseFloat(e).toPrecision(12));return isNaN(t)?t=``:(t=Math.min(t,this.max??t),t=Math.max(t,this.min??t).toString()),t}stepUp(){let e=parseFloat(this.value),t=isNaN(e)?this.min>0?this.min:this.max<0?this.max:this.min?0:this.step:e+this.step;this.value=t.toString()}stepDown(){let e=parseFloat(this.value),t=isNaN(e)?this.min>0?this.min:this.max<0?this.max:this.min?0:0-this.step:e-this.step;this.value=t.toString()}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute(`type`,`number`),this.validate(),this.control.value=this.value,this.autofocus&&x.queueUpdate(()=>{this.focus()})}select(){this.control.select(),this.$emit(`select`)}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(e){switch(e.key){case kn:return this.stepUp(),!1;case En:return this.stepDown(),!1}return!0}handleBlur(){this.control.value=this.value}};M([D({attribute:`readonly`,mode:`boolean`})],aa.prototype,`readOnly`,void 0),M([D({mode:`boolean`})],aa.prototype,`autofocus`,void 0),M([D({attribute:`hide-step`,mode:`boolean`})],aa.prototype,`hideStep`,void 0),M([D],aa.prototype,`placeholder`,void 0),M([D],aa.prototype,`list`,void 0),M([D({converter:E})],aa.prototype,`maxlength`,void 0),M([D({converter:E})],aa.prototype,`minlength`,void 0),M([D({converter:E})],aa.prototype,`size`,void 0),M([D({converter:E})],aa.prototype,`step`,void 0),M([D({converter:E})],aa.prototype,`max`,void 0),M([D({converter:E})],aa.prototype,`min`,void 0),M([C],aa.prototype,`defaultSlottedNodes`,void 0),sn(aa,St,ia);let oa=(e,t)=>T`<template role="progressbar" aria-valuenow="${e=>e.value}" aria-valuemin="${e=>e.min}" aria-valuemax="${e=>e.max}" class="${e=>e.paused?`paused`:``}">${A(e=>typeof e.value==`number`,T`<svg class="progress" part="progress" viewBox="0 0 16 16" slot="determinate"><circle class="background" part="background" cx="8px" cy="8px" r="7px"></circle><circle class="determinate" part="determinate" style="stroke-dasharray:${e=>44*e.percentComplete/100}px ${44}px" cx="8px" cy="8px" r="7px"></circle></svg>`,T`<slot name="indeterminate" slot="indeterminate">${t.indeterminateIndicator||``}</slot>`)}</template>`;var sa=class extends P{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(){let e=typeof this.min==`number`?this.min:0,t=typeof this.max==`number`?this.max:100,n=typeof this.value==`number`?this.value:0,r=t-e;this.percentComplete=r===0?0:Math.fround((n-e)/r*100)}};M([D({converter:E})],sa.prototype,`value`,void 0),M([D({converter:E})],sa.prototype,`min`,void 0),M([D({converter:E})],sa.prototype,`max`,void 0),M([D({mode:`boolean`})],sa.prototype,`paused`,void 0),M([C],sa.prototype,`percentComplete`,void 0);let ca=(e,t)=>T`<template role="progressbar" aria-valuenow="${e=>e.value}" aria-valuemin="${e=>e.min}" aria-valuemax="${e=>e.max}" class="${e=>e.paused?`paused`:``}">${A(e=>typeof e.value==`number`,T`<div class="progress" part="progress" slot="determinate"><div class="determinate" part="determinate" style="width:${e=>e.percentComplete}%"></div></div>`,T`<div class="progress" part="progress" slot="indeterminate"><slot class="indeterminate" name="indeterminate">${t.indeterminateIndicator1||``} ${t.indeterminateIndicator2||``}</slot></div>`)}</template>`,la=(e,t)=>T`<template role="radiogroup" aria-disabled="${e=>e.disabled}" aria-readonly="${e=>e.readOnly}" @click="${(e,t)=>e.clickHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}" @focusout="${(e,t)=>e.focusOutHandler(t.event)}"><slot name="label"></slot><div class="positioning-region ${e=>e.orientation===un.horizontal?`horizontal`:`vertical`}" part="positioning-region"><slot ${bt({property:`slottedRadioButtons`,filter:vt(`[role=radio]`)})}></slot></div></template>`;var ua=class extends P{constructor(){super(...arguments),this.orientation=un.horizontal,this.radioChangeHandler=e=>{let t=e.target;t.checked&&(this.slottedRadioButtons.forEach(e=>{e!==t&&(e.checked=!1,this.isInsideFoundationToolbar||e.setAttribute(`tabindex`,`-1`))}),this.selectedRadio=t,this.value=t.value,t.setAttribute(`tabindex`,`0`),this.focusedRadio=t),e.stopPropagation()},this.moveToRadioByIndex=(e,t)=>{let n=e[t];this.isInsideToolbar||(n.setAttribute(`tabindex`,`0`),n.readOnly?this.slottedRadioButtons.forEach(e=>{e!==n&&e.setAttribute(`tabindex`,`-1`)}):(n.checked=!0,this.selectedRadio=n)),this.focusedRadio=n,n.focus()},this.moveRightOffGroup=()=>{var e;(e=this.nextElementSibling)==null||e.focus()},this.moveLeftOffGroup=()=>{var e;(e=this.previousElementSibling)==null||e.focus()},this.focusOutHandler=e=>{let t=this.slottedRadioButtons,n=e.target,r=n===null?0:t.indexOf(n),i=this.focusedRadio?t.indexOf(this.focusedRadio):-1;return(i===0&&r===i||i===t.length-1&&i===r)&&(this.selectedRadio?(this.focusedRadio=this.selectedRadio,this.isInsideFoundationToolbar||(this.selectedRadio.setAttribute(`tabindex`,`0`),t.forEach(e=>{e!==this.selectedRadio&&e.setAttribute(`tabindex`,`-1`)}))):(this.focusedRadio=t[0],this.focusedRadio.setAttribute(`tabindex`,`0`),t.forEach(e=>{e!==this.focusedRadio&&e.setAttribute(`tabindex`,`-1`)}))),!0},this.clickHandler=e=>{let t=e.target;if(t){let e=this.slottedRadioButtons;t.checked||e.indexOf(t)===0?(t.setAttribute(`tabindex`,`0`),this.selectedRadio=t):(t.setAttribute(`tabindex`,`-1`),this.selectedRadio=null),this.focusedRadio=t}e.preventDefault()},this.shouldMoveOffGroupToTheRight=(e,t,n)=>e===t.length&&this.isInsideToolbar&&n===`ArrowRight`,this.shouldMoveOffGroupToTheLeft=(e,t)=>(this.focusedRadio?e.indexOf(this.focusedRadio)-1:0)<0&&this.isInsideToolbar&&t===`ArrowLeft`,this.checkFocusedRadio=()=>{this.focusedRadio!==null&&!this.focusedRadio.readOnly&&!this.focusedRadio.checked&&(this.focusedRadio.checked=!0,this.focusedRadio.setAttribute(`tabindex`,`0`),this.focusedRadio.focus(),this.selectedRadio=this.focusedRadio)},this.moveRight=e=>{let t=this.slottedRadioButtons,n=0;if(n=this.focusedRadio?t.indexOf(this.focusedRadio)+1:1,this.shouldMoveOffGroupToTheRight(n,t,e.key)){this.moveRightOffGroup();return}for(n===t.length&&(n=0);n<t.length&&t.length>1;)if(!t[n].disabled){this.moveToRadioByIndex(t,n);break}else if(this.focusedRadio&&n===t.indexOf(this.focusedRadio))break;else if(n+1>=t.length){if(this.isInsideToolbar)break;n=0}else n+=1},this.moveLeft=e=>{let t=this.slottedRadioButtons,n=0;if(n=this.focusedRadio?t.indexOf(this.focusedRadio)-1:0,n=n<0?t.length-1:n,this.shouldMoveOffGroupToTheLeft(t,e.key)){this.moveLeftOffGroup();return}for(;n>=0&&t.length>1;)if(!t[n].disabled){this.moveToRadioByIndex(t,n);break}else if(this.focusedRadio&&n===t.indexOf(this.focusedRadio))break;else n-1<0?n=t.length-1:--n},this.keydownHandler=e=>{let t=e.key;if(t in Nn&&this.isInsideFoundationToolbar)return!0;switch(t){case An:this.checkFocusedRadio();break;case On:case En:this.direction===Pn.ltr?this.moveRight(e):this.moveLeft(e);break;case Dn:case kn:this.direction===Pn.ltr?this.moveLeft(e):this.moveRight(e);break;default:return!0}}}readOnlyChanged(){this.slottedRadioButtons!==void 0&&this.slottedRadioButtons.forEach(e=>{e.readOnly=!!this.readOnly})}disabledChanged(){this.slottedRadioButtons!==void 0&&this.slottedRadioButtons.forEach(e=>{e.disabled=!!this.disabled})}nameChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach(e=>{e.setAttribute(`name`,this.name)})}valueChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach(e=>{e.value===this.value&&(e.checked=!0,this.selectedRadio=e)}),this.$emit(`change`)}slottedRadioButtonsChanged(e,t){this.slottedRadioButtons&&this.slottedRadioButtons.length>0&&this.setupRadioButtons()}get parentToolbar(){return this.closest(`[role="toolbar"]`)}get isInsideToolbar(){return this.parentToolbar??!1}get isInsideFoundationToolbar(){return!!this.parentToolbar?.$fastController}connectedCallback(){super.connectedCallback(),this.direction=qn(this),this.setupRadioButtons()}disconnectedCallback(){this.slottedRadioButtons.forEach(e=>{e.removeEventListener(`change`,this.radioChangeHandler)})}setupRadioButtons(){let e=this.slottedRadioButtons.filter(e=>e.hasAttribute(`checked`)),t=e?e.length:0;if(t>1){let n=e[t-1];n.checked=!0}let n=!1;if(this.slottedRadioButtons.forEach(e=>{this.name!==void 0&&e.setAttribute(`name`,this.name),this.disabled&&(e.disabled=!0),this.readOnly&&(e.readOnly=!0),this.value&&this.value===e.value?(this.selectedRadio=e,this.focusedRadio=e,e.checked=!0,e.setAttribute(`tabindex`,`0`),n=!0):(this.isInsideFoundationToolbar||e.setAttribute(`tabindex`,`-1`),e.checked=!1),e.addEventListener(`change`,this.radioChangeHandler)}),this.value===void 0&&this.slottedRadioButtons.length>0){let e=this.slottedRadioButtons.filter(e=>e.hasAttribute(`checked`)),t=e===null?0:e.length;if(t>0&&!n){let n=e[t-1];n.checked=!0,this.focusedRadio=n,n.setAttribute(`tabindex`,`0`)}else this.slottedRadioButtons[0].setAttribute(`tabindex`,`0`),this.focusedRadio=this.slottedRadioButtons[0]}}};M([D({attribute:`readonly`,mode:`boolean`})],ua.prototype,`readOnly`,void 0),M([D({attribute:`disabled`,mode:`boolean`})],ua.prototype,`disabled`,void 0),M([D],ua.prototype,`name`,void 0),M([D],ua.prototype,`value`,void 0),M([D],ua.prototype,`orientation`,void 0),M([C],ua.prototype,`childItems`,void 0),M([C],ua.prototype,`slottedRadioButtons`,void 0);let da=(e,t)=>T`<template role="radio" class="${e=>e.checked?`checked`:``} ${e=>e.readOnly?`readonly`:``}" aria-checked="${e=>e.checked}" aria-required="${e=>e.required}" aria-disabled="${e=>e.disabled}" aria-readonly="${e=>e.readOnly}" @keypress="${(e,t)=>e.keypressHandler(t.event)}" @click="${(e,t)=>e.clickHandler(t.event)}"><div part="control" class="control"><slot name="checked-indicator">${t.checkedIndicator||``}</slot></div><label part="label" class="${e=>e.defaultSlottedNodes&&e.defaultSlottedNodes.length?`label`:`label label__hidden`}"><slot ${bt(`defaultSlottedNodes`)}></slot></label></template>`;var wte=class extends P{},Tte=class extends mr(wte){constructor(){super(...arguments),this.proxy=document.createElement(`input`)}},fa=class extends Tte{constructor(){super(),this.initialValue=`on`,this.keypressHandler=e=>{if(e.key===` `){!this.checked&&!this.readOnly&&(this.checked=!0);return}return!0},this.proxy.setAttribute(`type`,`radio`)}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}defaultCheckedChanged(){this.$fastController.isConnected&&!this.dirtyChecked&&(this.isInsideRadioGroup()||(this.checked=this.defaultChecked??!1,this.dirtyChecked=!1))}connectedCallback(){super.connectedCallback(),this.validate(),this.parentElement?.getAttribute(`role`)!==`radiogroup`&&this.getAttribute(`tabindex`)===null&&(this.disabled||this.setAttribute(`tabindex`,`0`)),this.checkedAttribute&&(this.dirtyChecked||this.isInsideRadioGroup()||(this.checked=this.defaultChecked??!1,this.dirtyChecked=!1))}isInsideRadioGroup(){return this.closest(`[role=radiogroup]`)!==null}clickHandler(e){!this.disabled&&!this.readOnly&&!this.checked&&(this.checked=!0)}};M([D({attribute:`readonly`,mode:`boolean`})],fa.prototype,`readOnly`,void 0),M([C],fa.prototype,`name`,void 0),M([C],fa.prototype,`defaultSlottedNodes`,void 0);var pa=class extends P{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(e,t){if(this.scrollContainer){let e=this.scrolling==1?`scrollstart`:`scrollend`;this.$emit(e,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(e,t){t&&!this.updatingItems&&x.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;let e=this.scrollItems.reduce((e,t)=>t instanceof HTMLSlotElement?e.concat(t.assignedElements()):(e.push(t),e),[]);this.scrollItems=e,this.updatingItems=!1}setStops(){this.updateScrollStops();let{scrollContainer:e}=this,{scrollLeft:t}=e,{width:n,left:r}=e.getBoundingClientRect();this.width=n;let i=0,a=this.scrollItems.map((e,n)=>{let{left:a,width:o}=e.getBoundingClientRect(),s=Math.round(a+t-r),c=Math.round(s+o);return this.isRtl?-c:(i=c,n===0?0:s)}).concat(i);a=this.fixScrollMisalign(a),a.sort((e,t)=>Math.abs(e)-Math.abs(t)),this.scrollStops=a,this.setFlippers()}validateStops(e=!0){let t=()=>!!this.scrollStops.find(e=>e>0);return!t()&&e&&this.setStops(),t()}fixScrollMisalign(e){if(this.isRtl&&e.some(e=>e>0)){e.sort((e,t)=>t-e);let t=e[0];e=e.map(e=>e-t)}return e}setFlippers(){var e,t;let n=this.scrollContainer.scrollLeft;if((e=this.previousFlipperContainer)==null||e.classList.toggle(`disabled`,n===0),this.scrollStops){let e=Math.abs(this.scrollStops[this.scrollStops.length-1]);(t=this.nextFlipperContainer)==null||t.classList.toggle(`disabled`,this.validateStops(!1)&&Math.abs(n)+this.width>=e)}}scrollInView(e,t=0,n){if(typeof e!=`number`&&e&&(e=this.scrollItems.findIndex(t=>t===e||t.contains(e))),e!==void 0){n=n??t;let{scrollContainer:r,scrollStops:i,scrollItems:a}=this,{scrollLeft:o}=this.scrollContainer,{width:s}=r.getBoundingClientRect(),c=i[e],{width:l}=a[e].getBoundingClientRect(),u=c+l,d=o+t>c;if(d||o+s-n<u){let e=[...i].sort((e,t)=>d?t-e:e-t).find(e=>d?e+t<c:e+s-(n??0)>u)??0;this.scrollToPosition(e)}}}keyupHandler(e){switch(e.key){case`ArrowLeft`:this.scrollToPrevious();break;case`ArrowRight`:this.scrollToNext()}}scrollToPrevious(){this.validateStops();let e=this.scrollContainer.scrollLeft,t=this.scrollStops.findIndex((t,n)=>t>=e&&(this.isRtl||n===this.scrollStops.length-1||this.scrollStops[n+1]>e)),n=Math.abs(this.scrollStops[t+1]),r=this.scrollStops.findIndex(e=>Math.abs(e)+this.width>n);(r>=t||r===-1)&&(r=t>0?t-1:0),this.scrollToPosition(this.scrollStops[r],e)}scrollToNext(){this.validateStops();let e=this.scrollContainer.scrollLeft,t=this.scrollStops.findIndex(t=>Math.abs(t)>=Math.abs(e)),n=this.scrollStops.findIndex(t=>Math.abs(e)+this.width<=Math.abs(t)),r=t;n>t+2?r=n-2:t<this.scrollStops.length-2&&(r=t+1),this.scrollToPosition(this.scrollStops[r],e)}scrollToPosition(e,t=this.scrollContainer.scrollLeft){if(this.scrolling)return;this.scrolling=!0;let n=this.duration??`${Math.abs(e-t)/this.speed}s`;this.content.style.setProperty(`transition-duration`,n);let r=parseFloat(getComputedStyle(this.content).getPropertyValue(`transition-duration`)),i=t=>{t&&t.target!==t.currentTarget||(this.content.style.setProperty(`transition-duration`,`0s`),this.content.style.removeProperty(`transform`),this.scrollContainer.style.setProperty(`scroll-behavior`,`auto`),this.scrollContainer.scrollLeft=e,this.setFlippers(),this.content.removeEventListener(`transitionend`,i),this.scrolling=!1)};if(r===0){i();return}this.content.addEventListener(`transitionend`,i);let a=this.scrollContainer.scrollWidth-this.scrollContainer.clientWidth,o=this.scrollContainer.scrollLeft-Math.min(e,a);this.isRtl&&(o=this.scrollContainer.scrollLeft+Math.min(Math.abs(e),a)),this.content.style.setProperty(`transition-property`,`transform`),this.content.style.setProperty(`transition-timing-function`,this.easing),this.content.style.setProperty(`transform`,`translateX(${o}px)`)}resized(){this.resizeTimeout&&(this.resizeTimeout=clearTimeout(this.resizeTimeout)),this.resizeTimeout=setTimeout(()=>{this.width=this.scrollContainer.offsetWidth,this.setFlippers()},this.frameTime)}scrolled(){this.scrollTimeout&&(this.scrollTimeout=clearTimeout(this.scrollTimeout)),this.scrollTimeout=setTimeout(()=>{this.setFlippers()},this.frameTime)}};M([D({converter:E})],pa.prototype,`speed`,void 0),M([D],pa.prototype,`duration`,void 0),M([D],pa.prototype,`easing`,void 0),M([D({attribute:`flippers-hidden-from-at`,converter:Ue})],pa.prototype,`flippersHiddenFromAT`,void 0),M([C],pa.prototype,`scrolling`,void 0),M([C],pa.prototype,`scrollItems`,void 0),M([D({attribute:`view`})],pa.prototype,`view`,void 0);let ma=(e,t)=>T`<template class="horizontal-scroll" @keyup="${(e,t)=>e.keyupHandler(t.event)}">${wt(e,t)}<div class="scroll-area" part="scroll-area"><div class="scroll-view" part="scroll-view" @scroll="${e=>e.scrolled()}" ${k(`scrollContainer`)}><div class="content-container" part="content-container" ${k(`content`)}><slot ${bt({property:`scrollItems`,filter:vt()})}></slot></div></div>${A(e=>e.view!==`mobile`,T`<div class="scroll scroll-prev" part="scroll-prev" ${k(`previousFlipperContainer`)}><div class="scroll-action" part="scroll-action-previous"><slot name="previous-flipper">${t.previousFlipper instanceof Function?t.previousFlipper(e,t):t.previousFlipper??``}</slot></div></div><div class="scroll scroll-next" part="scroll-next" ${k(`nextFlipperContainer`)}><div class="scroll-action" part="scroll-action-next"><slot name="next-flipper">${t.nextFlipper instanceof Function?t.nextFlipper(e,t):t.nextFlipper??``}</slot></div></div>`)}</div>${Ct(e,t)}</template>`;function ha(e,t,n){return e.nodeType!==Node.TEXT_NODE||typeof e.nodeValue==`string`&&!!e.nodeValue.trim().length}let Ete=(e,t)=>T`<template class=" ${e=>e.readOnly?`readonly`:``}"><label part="label" for="control" class="${e=>e.defaultSlottedNodes&&e.defaultSlottedNodes.length?`label`:`label label__hidden`}"><slot ${bt({property:`defaultSlottedNodes`,filter:ha})}></slot></label><div class="root" part="root" ${k(`root`)}>${wt(e,t)}<div class="input-wrapper" part="input-wrapper"><input class="control" part="control" id="control" @input="${e=>e.handleTextInput()}" @change="${e=>e.handleChange()}" ?autofocus="${e=>e.autofocus}" ?disabled="${e=>e.disabled}" list="${e=>e.list}" maxlength="${e=>e.maxlength}" minlength="${e=>e.minlength}" pattern="${e=>e.pattern}" placeholder="${e=>e.placeholder}" ?readonly="${e=>e.readOnly}" ?required="${e=>e.required}" size="${e=>e.size}" ?spellcheck="${e=>e.spellcheck}" :value="${e=>e.value}" type="search" aria-atomic="${e=>e.ariaAtomic}" aria-busy="${e=>e.ariaBusy}" aria-controls="${e=>e.ariaControls}" aria-current="${e=>e.ariaCurrent}" aria-describedby="${e=>e.ariaDescribedby}" aria-details="${e=>e.ariaDetails}" aria-disabled="${e=>e.ariaDisabled}" aria-errormessage="${e=>e.ariaErrormessage}" aria-flowto="${e=>e.ariaFlowto}" aria-haspopup="${e=>e.ariaHaspopup}" aria-hidden="${e=>e.ariaHidden}" aria-invalid="${e=>e.ariaInvalid}" aria-keyshortcuts="${e=>e.ariaKeyshortcuts}" aria-label="${e=>e.ariaLabel}" aria-labelledby="${e=>e.ariaLabelledby}" aria-live="${e=>e.ariaLive}" aria-owns="${e=>e.ariaOwns}" aria-relevant="${e=>e.ariaRelevant}" aria-roledescription="${e=>e.ariaRoledescription}" ${k(`control`)}/><slot name="close-button"><button class="clear-button ${e=>e.value?``:`clear-button__hidden`}" part="clear-button" tabindex="-1" @click=${e=>e.handleClearInput()}><slot name="close-glyph"><svg width="9" height="9" viewBox="0 0 9 9" xmlns="http://www.w3.org/2000/svg"><path d="M0.146447 0.146447C0.338683 -0.0478972 0.645911 -0.0270359 0.853553 0.146447L4.5 3.793L8.14645 0.146447C8.34171 -0.0488155 8.65829 -0.0488155 8.85355 0.146447C9.04882 0.341709 9.04882 0.658291 8.85355 0.853553L5.207 4.5L8.85355 8.14645C9.05934 8.35223 9.03129 8.67582 8.85355 8.85355C8.67582 9.03129 8.35409 9.02703 8.14645 8.85355L4.5 5.207L0.853553 8.85355C0.658291 9.04882 0.341709 9.04882 0.146447 8.85355C-0.0488155 8.65829 -0.0488155 8.34171 0.146447 8.14645L3.793 4.5L0.146447 0.853553C-0.0268697 0.680237 -0.0457894 0.34079 0.146447 0.146447Z" /></svg></slot></button></slot></div>${Ct(e,t)}</div></template>`;var Dte=class extends P{},Ote=class extends pr(Dte){constructor(){super(...arguments),this.proxy=document.createElement(`input`)}},ga=class extends Ote{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&&x.queueUpdate(()=>{this.focus()})}validate(){super.validate(this.control)}handleTextInput(){this.value=this.control.value}handleClearInput(){this.value=``,this.control.focus(),this.handleChange()}handleChange(){this.$emit(`change`)}};M([D({attribute:`readonly`,mode:`boolean`})],ga.prototype,`readOnly`,void 0),M([D({mode:`boolean`})],ga.prototype,`autofocus`,void 0),M([D],ga.prototype,`placeholder`,void 0),M([D],ga.prototype,`list`,void 0),M([D({converter:E})],ga.prototype,`maxlength`,void 0),M([D({converter:E})],ga.prototype,`minlength`,void 0),M([D],ga.prototype,`pattern`,void 0),M([D({converter:E})],ga.prototype,`size`,void 0),M([D({mode:`boolean`})],ga.prototype,`spellcheck`,void 0),M([C],ga.prototype,`defaultSlottedNodes`,void 0);var _a=class{};sn(_a,Un),sn(ga,St,_a);var kte=class extends Gi{},Ate=class extends pr(kte){constructor(){super(...arguments),this.proxy=document.createElement(`select`)}},va=class extends Ate{constructor(){super(...arguments),this.open=!1,this.forcedPosition=!1,this.listboxId=Ln(`listbox-`),this.maxHeight=0}openChanged(e,t){if(this.collapsible){if(this.open){this.ariaControls=this.listboxId,this.ariaExpanded=`true`,this.setPositioning(),this.focusAndScrollOptionIntoView(),this.indexWhenOpened=this.selectedIndex,x.queueUpdate(()=>this.focus());return}this.ariaControls=``,this.ariaExpanded=`false`}}get collapsible(){return!(this.multiple||typeof this.size==`number`)}get value(){return S.track(this,`value`),this._value}set value(e){let t=`${this._value}`;if(this._options?.length){let t=this._options.findIndex(t=>t.value===e),n=this._options[this.selectedIndex]?.value??null,r=this._options[t]?.value??null;(t===-1||n!==r)&&(e=``,this.selectedIndex=t),e=this.firstSelectedOption?.value??e}t!==e&&(this._value=e,super.valueChanged(t,e),S.notify(this,`value`),this.updateDisplayValue())}updateValue(e){this.$fastController.isConnected&&(this.value=this.firstSelectedOption?.value??``),e&&(this.$emit(`input`),this.$emit(`change`,this,{bubbles:!0,composed:void 0}))}selectedIndexChanged(e,t){super.selectedIndexChanged(e,t),this.updateValue()}positionChanged(e,t){this.positionAttribute=t,this.setPositioning()}setPositioning(){let e=this.getBoundingClientRect(),t=window.innerHeight-e.bottom;this.position=this.forcedPosition?this.positionAttribute:e.top>t?Br.above:Br.below,this.positionAttribute=this.forcedPosition?this.positionAttribute:this.position,this.maxHeight=this.position===Br.above?~~e.top:~~t}get displayValue(){return S.track(this,`displayValue`),this.firstSelectedOption?.text??``}disabledChanged(e,t){super.disabledChanged&&super.disabledChanged(e,t),this.ariaDisabled=this.disabled?`true`:`false`}formResetCallback(){this.setProxyOptions(),super.setDefaultSelectedOption(),this.selectedIndex===-1&&(this.selectedIndex=0)}clickHandler(e){if(!this.disabled){if(this.open){let t=e.target.closest(`option,[role=option]`);if(t&&t.disabled)return}return super.clickHandler(e),this.open=this.collapsible&&!this.open,!this.open&&this.indexWhenOpened!==this.selectedIndex&&this.updateValue(!0),!0}}focusoutHandler(e){if(super.focusoutHandler(e),!this.open)return!0;let t=e.relatedTarget;if(this.isSameNode(t)){this.focus();return}this.options?.includes(t)||(this.open=!1,this.indexWhenOpened!==this.selectedIndex&&this.updateValue(!0))}handleChange(e,t){super.handleChange(e,t),t===`value`&&this.updateValue()}slottedOptionsChanged(e,t){this.options.forEach(e=>{S.getNotifier(e).unsubscribe(this,`value`)}),super.slottedOptionsChanged(e,t),this.options.forEach(e=>{S.getNotifier(e).subscribe(this,`value`)}),this.setProxyOptions(),this.updateValue()}mousedownHandler(e){return e.offsetX>=0&&e.offsetX<=this.listbox?.scrollWidth?super.mousedownHandler(e):this.collapsible}multipleChanged(e,t){super.multipleChanged(e,t),this.proxy&&(this.proxy.multiple=t)}selectedOptionsChanged(e,t){var n;super.selectedOptionsChanged(e,t),(n=this.options)==null||n.forEach((e,t)=>{let n=this.proxy?.options.item(t);n&&(n.selected=e.selected)})}setDefaultSelectedOption(){let e=(this.options??Array.from(this.children).filter(Rr.slottedOptionFilter))?.findIndex(e=>e.hasAttribute(`selected`)||e.selected||e.value===this.value);if(e!==-1){this.selectedIndex=e;return}this.selectedIndex=0}setProxyOptions(){this.proxy instanceof HTMLSelectElement&&this.options&&(this.proxy.options.length=0,this.options.forEach(e=>{let t=e.proxy||(e instanceof HTMLOptionElement?e.cloneNode():null);t&&this.proxy.options.add(t)}))}keydownHandler(e){super.keydownHandler(e);let t=e.key||e.key.charCodeAt(0);switch(t){case` `:e.preventDefault(),this.collapsible&&this.typeAheadExpired&&(this.open=!this.open);break;case Mn:case`End`:e.preventDefault();break;case An:e.preventDefault(),this.open=!this.open;break;case jn:this.collapsible&&this.open&&(e.preventDefault(),this.open=!1);break;case`Tab`:return this.collapsible&&this.open&&(e.preventDefault(),this.open=!1),!0}return!this.open&&this.indexWhenOpened!==this.selectedIndex&&(this.updateValue(!0),this.indexWhenOpened=this.selectedIndex),t!==`ArrowDown`&&t!==`ArrowUp`}connectedCallback(){super.connectedCallback(),this.forcedPosition=!!this.positionAttribute,this.addEventListener(`contentchange`,this.updateDisplayValue)}disconnectedCallback(){this.removeEventListener(`contentchange`,this.updateDisplayValue),super.disconnectedCallback()}sizeChanged(e,t){super.sizeChanged(e,t),this.proxy&&(this.proxy.size=t)}updateDisplayValue(){this.collapsible&&S.notify(this,`displayValue`)}};M([D({attribute:`open`,mode:`boolean`})],va.prototype,`open`,void 0),M([w],va.prototype,`collapsible`,null),M([C],va.prototype,`control`,void 0),M([D({attribute:`position`})],va.prototype,`positionAttribute`,void 0),M([C],va.prototype,`position`,void 0),M([C],va.prototype,`maxHeight`,void 0);var ya=class{};M([C],ya.prototype,`ariaControls`,void 0),sn(ya,zr),sn(va,St,ya);let ba=(e,t)=>T`<template class="${e=>[e.collapsible&&`collapsible`,e.collapsible&&e.open&&`open`,e.disabled&&`disabled`,e.collapsible&&e.position].filter(Boolean).join(` `)}" aria-activedescendant="${e=>e.ariaActiveDescendant}" aria-controls="${e=>e.ariaControls}" aria-disabled="${e=>e.ariaDisabled}" aria-expanded="${e=>e.ariaExpanded}" aria-haspopup="${e=>e.collapsible?`listbox`:null}" aria-multiselectable="${e=>e.ariaMultiSelectable}" ?open="${e=>e.open}" role="combobox" tabindex="${e=>e.disabled?null:`0`}" @click="${(e,t)=>e.clickHandler(t.event)}" @focusin="${(e,t)=>e.focusinHandler(t.event)}" @focusout="${(e,t)=>e.focusoutHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}" @mousedown="${(e,t)=>e.mousedownHandler(t.event)}">${A(e=>e.collapsible,T`<div class="control" part="control" ?disabled="${e=>e.disabled}" ${k(`control`)}>${wt(e,t)}<slot name="button-container"><div class="selected-value" part="selected-value"><slot name="selected-value">${e=>e.displayValue}</slot></div><div aria-hidden="true" class="indicator" part="indicator"><slot name="indicator">${t.indicator||``}</slot></div></slot>${Ct(e,t)}</div>`)}<div class="listbox" id="${e=>e.listboxId}" part="listbox" role="listbox" ?disabled="${e=>e.disabled}" ?hidden="${e=>e.collapsible?!e.open:!1}" ${k(`listbox`)}><slot ${bt({filter:Rr.slottedOptionFilter,flatten:!0,property:`slottedOptions`})}></slot></div></template>`,xa=(e,t)=>T`<template class="${e=>e.shape===`circle`?`circle`:`rect`}" pattern="${e=>e.pattern}" ?shimmer="${e=>e.shimmer}">${A(e=>e.shimmer===!0,T`<span class="shimmer"></span>`)}<object type="image/svg+xml" data="${e=>e.pattern}" role="presentation"><img class="pattern" src="${e=>e.pattern}" /></object><slot></slot></template>`;var Sa=class extends P{constructor(){super(...arguments),this.shape=`rect`}};M([D],Sa.prototype,`fill`,void 0),M([D],Sa.prototype,`shape`,void 0),M([D],Sa.prototype,`pattern`,void 0),M([D({mode:`boolean`})],Sa.prototype,`shimmer`,void 0);let Ca=(e,t)=>T`<template aria-disabled="${e=>e.disabled}" class="${e=>e.sliderOrientation||un.horizontal} ${e=>e.disabled?`disabled`:``}"><div ${k(`root`)}part="root" class="root" style="${e=>e.positionStyle}"><div class="container">${A(e=>!e.hideMark,T`<div class="mark"></div>`)}<div class="label"><slot></slot></div></div></div></template>`;function wa(e,t,n,r){let i=Fn(0,1,(e-t)/(n-t));return r===Pn.rtl&&(i=1-i),i}let Ta={min:0,max:0,direction:Pn.ltr,orientation:un.horizontal,disabled:!1};var Ea=class extends P{constructor(){super(...arguments),this.hideMark=!1,this.sliderDirection=Pn.ltr,this.getSliderConfiguration=()=>{if(!this.isSliderConfig(this.parentNode))this.sliderDirection=Ta.direction||Pn.ltr,this.sliderOrientation=Ta.orientation||un.horizontal,this.sliderMaxPosition=Ta.max,this.sliderMinPosition=Ta.min;else{let{min:e,max:t,direction:n,orientation:r,disabled:i}=this.parentNode;i!==void 0&&(this.disabled=i),this.sliderDirection=n||Pn.ltr,this.sliderOrientation=r||un.horizontal,this.sliderMaxPosition=t,this.sliderMinPosition=e}},this.positionAsStyle=()=>{let e=this.sliderDirection?this.sliderDirection:Pn.ltr,t=wa(Number(this.position),Number(this.sliderMinPosition),Number(this.sliderMaxPosition)),n=Math.round((1-t)*100),r=Math.round(t*100);return Number.isNaN(r)&&Number.isNaN(n)&&(n=50,r=50),this.sliderOrientation===un.horizontal?e===Pn.rtl?`right: ${r}%; left: ${n}%;`:`left: ${r}%; right: ${n}%;`:`top: ${r}%; bottom: ${n}%;`}}positionChanged(){this.positionStyle=this.positionAsStyle()}sliderOrientationChanged(){}connectedCallback(){super.connectedCallback(),this.getSliderConfiguration(),this.positionStyle=this.positionAsStyle(),this.notifier=S.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(e,t){switch(t){case`direction`:this.sliderDirection=e.direction;break;case`orientation`:this.sliderOrientation=e.orientation;break;case`max`:this.sliderMaxPosition=e.max;break;case`min`:this.sliderMinPosition=e.min}this.positionStyle=this.positionAsStyle()}isSliderConfig(e){return e.max!==void 0&&e.min!==void 0}};M([C],Ea.prototype,`positionStyle`,void 0),M([D],Ea.prototype,`position`,void 0),M([D({attribute:`hide-mark`,mode:`boolean`})],Ea.prototype,`hideMark`,void 0),M([D({attribute:`disabled`,mode:`boolean`})],Ea.prototype,`disabled`,void 0),M([C],Ea.prototype,`sliderOrientation`,void 0),M([C],Ea.prototype,`sliderMinPosition`,void 0),M([C],Ea.prototype,`sliderMaxPosition`,void 0),M([C],Ea.prototype,`sliderDirection`,void 0);let jte=(e,t)=>T`<template role="slider" class="${e=>e.readOnly?`readonly`:``} ${e=>e.orientation||un.horizontal}" tabindex="${e=>e.disabled?null:0}" aria-valuetext="${e=>e.valueTextFormatter(e.value)}" aria-valuenow="${e=>e.value}" aria-valuemin="${e=>e.min}" aria-valuemax="${e=>e.max}" aria-disabled="${e=>e.disabled?!0:void 0}" aria-readonly="${e=>e.readOnly?!0:void 0}" aria-orientation="${e=>e.orientation}" class="${e=>e.orientation}"><div part="positioning-region" class="positioning-region"><div ${k(`track`)}part="track-container" class="track"><slot name="track"></slot><div part="track-start" class="track-start" style="${e=>e.position}"><slot name="track-start"></slot></div></div><slot></slot><div ${k(`thumb`)}part="thumb-container" class="thumb-container" style="${e=>e.position}"><slot name="thumb">${t.thumb||``}</slot></div></div></template>`;var Mte=class extends P{},Nte=class extends pr(Mte){constructor(){super(...arguments),this.proxy=document.createElement(`input`)}};let Pte={singleValue:`single-value`};var Da=class extends Nte{constructor(){super(...arguments),this.direction=Pn.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=un.horizontal,this.mode=Pte.singleValue,this.keypressHandler=e=>{if(!this.readOnly){if(e.key===`Home`)e.preventDefault(),this.value=`${this.min}`;else if(e.key===`End`)e.preventDefault(),this.value=`${this.max}`;else if(!e.shiftKey)switch(e.key){case On:case kn:e.preventDefault(),this.increment();break;case Dn:case En:e.preventDefault(),this.decrement()}}},this.setupTrackConstraints=()=>{let e=this.track.getBoundingClientRect();this.trackWidth=this.track.clientWidth,this.trackMinWidth=this.track.clientLeft,this.trackHeight=e.bottom,this.trackMinHeight=e.top,this.trackLeft=this.getBoundingClientRect().left,this.trackWidth===0&&(this.trackWidth=1)},this.setupListeners=(e=!1)=>{let t=`${e?`remove`:`add`}EventListener`;this[t](`keydown`,this.keypressHandler),this[t](`mousedown`,this.handleMouseDown),this.thumb[t](`mousedown`,this.handleThumbMouseDown,{passive:!0}),this.thumb[t](`touchstart`,this.handleThumbMouseDown,{passive:!0}),e&&(this.handleMouseDown(null),this.handleThumbMouseDown(null))},this.initialValue=``,this.handleThumbMouseDown=e=>{if(e){if(this.readOnly||this.disabled||e.defaultPrevented)return;e.target.focus()}let t=`${e===null?`remove`:`add`}EventListener`;window[t](`mouseup`,this.handleWindowMouseUp),window[t](`mousemove`,this.handleMouseMove,{passive:!0}),window[t](`touchmove`,this.handleMouseMove,{passive:!0}),window[t](`touchend`,this.handleWindowMouseUp),this.isDragging=e!==null},this.handleMouseMove=e=>{if(this.readOnly||this.disabled||e.defaultPrevented)return;let t=window.TouchEvent&&e instanceof TouchEvent?e.touches[0]:e,n=this.orientation===un.horizontal?t.pageX-document.documentElement.scrollLeft-this.trackLeft:t.pageY-document.documentElement.scrollTop;this.value=`${this.calculateNewValue(n)}`},this.calculateNewValue=e=>{let t=wa(e,this.orientation===un.horizontal?this.trackMinWidth:this.trackMinHeight,this.orientation===un.horizontal?this.trackWidth:this.trackHeight,this.direction),n=(this.max-this.min)*t+this.min;return this.convertToConstrainedValue(n)},this.handleWindowMouseUp=e=>{this.stopDragging()},this.stopDragging=()=>{this.isDragging=!1,this.handleMouseDown(null),this.handleThumbMouseDown(null)},this.handleMouseDown=e=>{let t=`${e===null?`remove`:`add`}EventListener`;if((e===null||!this.disabled&&!this.readOnly)&&(window[t](`mouseup`,this.handleWindowMouseUp),window.document[t](`mouseleave`,this.handleWindowMouseUp),window[t](`mousemove`,this.handleMouseMove),e)){e.preventDefault(),this.setupTrackConstraints(),e.target.focus();let t=this.orientation===un.horizontal?e.pageX-document.documentElement.scrollLeft-this.trackLeft:e.pageY-document.documentElement.scrollTop;this.value=`${this.calculateNewValue(t)}`}},this.convertToConstrainedValue=e=>{isNaN(e)&&(e=this.min);let t=e-this.min,n=Math.round(t/this.step),r=t-n*(this.stepMultiplier*this.step)/this.stepMultiplier;return t=r>=Number(this.step)/2?t-r+Number(this.step):t-r,t+this.min}}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}get valueAsNumber(){return parseFloat(super.value)}set valueAsNumber(e){this.value=e.toString()}valueChanged(e,t){super.valueChanged(e,t),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=qn(this),this.updateStepMultiplier(),this.setupTrackConstraints(),this.setupListeners(),this.setupDefaultValue(),this.setThumbPositionForOrientation(this.direction)}disconnectedCallback(){this.setupListeners(!0)}increment(){let e=this.direction!==Pn.rtl&&this.orientation!==un.vertical?Number(this.value)+Number(this.step):Number(this.value)-Number(this.step),t=this.convertToConstrainedValue(e),n=t<Number(this.max)?`${t}`:`${this.max}`;this.value=n}decrement(){let e=this.direction!==Pn.rtl&&this.orientation!==un.vertical?Number(this.value)-Number(this.step):Number(this.value)+Number(this.step),t=this.convertToConstrainedValue(e),n=t>Number(this.min)?`${t}`:`${this.min}`;this.value=n}setThumbPositionForOrientation(e){let t=(1-wa(Number(this.value),Number(this.min),Number(this.max),e))*100;this.position=this.orientation===un.horizontal?this.isDragging?`right: ${t}%; transition: none;`:`right: ${t}%; transition: all 0.2s ease;`:this.isDragging?`bottom: ${t}%; transition: none;`:`bottom: ${t}%; transition: all 0.2s ease;`}updateStepMultiplier(){let e=this.step+``,t=this.step%1?e.length-e.indexOf(`.`)-1:0;this.stepMultiplier=10**t}get midpoint(){return`${this.convertToConstrainedValue((this.max+this.min)/2)}`}setupDefaultValue(){if(typeof this.value==`string`){if(this.value.length===0)this.initialValue=this.midpoint;else{let e=parseFloat(this.value);!Number.isNaN(e)&&(e<this.min||e>this.max)&&(this.value=this.midpoint)}}}};M([D({attribute:`readonly`,mode:`boolean`})],Da.prototype,`readOnly`,void 0),M([C],Da.prototype,`direction`,void 0),M([C],Da.prototype,`isDragging`,void 0),M([C],Da.prototype,`position`,void 0),M([C],Da.prototype,`trackWidth`,void 0),M([C],Da.prototype,`trackMinWidth`,void 0),M([C],Da.prototype,`trackHeight`,void 0),M([C],Da.prototype,`trackLeft`,void 0),M([C],Da.prototype,`trackMinHeight`,void 0),M([C],Da.prototype,`valueTextFormatter`,void 0),M([D({converter:E})],Da.prototype,`min`,void 0),M([D({converter:E})],Da.prototype,`max`,void 0),M([D({converter:E})],Da.prototype,`step`,void 0),M([D],Da.prototype,`orientation`,void 0),M([D],Da.prototype,`mode`,void 0);let Oa=(e,t)=>T`<template role="switch" aria-checked="${e=>e.checked}" aria-disabled="${e=>e.disabled}" aria-readonly="${e=>e.readOnly}" tabindex="${e=>e.disabled?null:0}" @keypress="${(e,t)=>e.keypressHandler(t.event)}" @click="${(e,t)=>e.clickHandler(t.event)}" class="${e=>e.checked?`checked`:``}"><label part="label" class="${e=>e.defaultSlottedNodes&&e.defaultSlottedNodes.length?`label`:`label label__hidden`}"><slot ${bt(`defaultSlottedNodes`)}></slot></label><div part="switch" class="switch"><slot name="switch">${t.switch||``}</slot></div><span class="status-message" part="status-message"><span class="checked-message" part="checked-message"><slot name="checked-message"></slot></span><span class="unchecked-message" part="unchecked-message"><slot name="unchecked-message"></slot></span></span></template>`;var Fte=class extends P{},Ite=class extends mr(Fte){constructor(){super(...arguments),this.proxy=document.createElement(`input`)}},ka=class extends Ite{constructor(){super(),this.initialValue=`on`,this.keypressHandler=e=>{if(!this.readOnly)switch(e.key){case An:case` `:this.checked=!this.checked}},this.clickHandler=e=>{!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(e,t){super.checkedChanged(e,t),this.checked?this.classList.add(`checked`):this.classList.remove(`checked`)}};M([D({attribute:`readonly`,mode:`boolean`})],ka.prototype,`readOnly`,void 0),M([C],ka.prototype,`defaultSlottedNodes`,void 0);let Aa=(e,t)=>T`<template slot="tabpanel" role="tabpanel"><slot></slot></template>`;var ja=class extends P{};let Ma=(e,t)=>T`<template slot="tab" role="tab" aria-disabled="${e=>e.disabled}"><slot></slot></template>`;var Na=class extends P{};M([D({mode:`boolean`})],Na.prototype,`disabled`,void 0);let Pa=(e,t)=>T`<template class="${e=>e.orientation}">${wt(e,t)}<div class="tablist" part="tablist" role="tablist"><slot class="tab" name="tab" part="tab" ${bt(`tabs`)}></slot>${A(e=>e.showActiveIndicator,T`<div ${k(`activeIndicatorRef`)}class="activeIndicator" part="activeIndicator"></div>`)}</div>${Ct(e,t)}<div class="tabpanel" part="tabpanel"><slot name="tabpanel" ${bt(`tabpanels`)}></slot></div></template>`,Fa={vertical:`vertical`,horizontal:`horizontal`};var Ia=class extends P{constructor(){super(...arguments),this.orientation=Fa.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=e=>e.getAttribute(`aria-disabled`)===`true`,this.isHiddenElement=e=>e.hasAttribute(`hidden`),this.isFocusableElement=e=>!this.isDisabledElement(e)&&!this.isHiddenElement(e),this.setTabs=()=>{let e=`gridColumn`,t=`gridRow`,n=this.isHorizontal()?e:t;this.activeTabIndex=this.getActiveIndex(),this.showActiveIndicator=!1,this.tabs.forEach((r,i)=>{if(r.slot===`tab`){let e=this.activeTabIndex===i&&this.isFocusableElement(r);this.activeindicator&&this.isFocusableElement(r)&&(this.showActiveIndicator=!0);let t=this.tabIds[i],n=this.tabpanelIds[i];r.setAttribute(`id`,t),r.setAttribute(`aria-selected`,e?`true`:`false`),r.setAttribute(`aria-controls`,n),r.addEventListener(`click`,this.handleTabClick),r.addEventListener(`keydown`,this.handleTabKeyDown),r.setAttribute(`tabindex`,e?`0`:`-1`),e&&(this.activetab=r,this.activeid=t)}r.style[e]=``,r.style[t]=``,r.style[n]=`${i+1}`,this.isHorizontal()?r.classList.remove(`vertical`):r.classList.add(`vertical`)})},this.setTabPanels=()=>{this.tabpanels.forEach((e,t)=>{let n=this.tabIds[t],r=this.tabpanelIds[t];e.setAttribute(`id`,r),e.setAttribute(`aria-labelledby`,n),this.activeTabIndex===t?e.removeAttribute(`hidden`):e.setAttribute(`hidden`,``)})},this.handleTabClick=e=>{let t=e.currentTarget;t.nodeType===1&&this.isFocusableElement(t)&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(t),this.setComponent())},this.handleTabKeyDown=e=>{if(this.isHorizontal())switch(e.key){case Dn:e.preventDefault(),this.adjustBackward(e);break;case On:e.preventDefault(),this.adjustForward(e)}else switch(e.key){case kn:e.preventDefault(),this.adjustBackward(e);break;case En:e.preventDefault(),this.adjustForward(e)}switch(e.key){case Mn:e.preventDefault(),this.adjust(-this.activeTabIndex);break;case`End`:e.preventDefault(),this.adjust(this.tabs.length-this.activeTabIndex-1)}},this.adjustForward=e=>{let t=this.tabs,n=0;for(n=this.activetab?t.indexOf(this.activetab)+1:1,n===t.length&&(n=0);n<t.length&&t.length>1;)if(this.isFocusableElement(t[n])){this.moveToTabByIndex(t,n);break}else if(this.activetab&&n===t.indexOf(this.activetab))break;else n+1>=t.length?n=0:n+=1},this.adjustBackward=e=>{let t=this.tabs,n=0;for(n=this.activetab?t.indexOf(this.activetab)-1:0,n=n<0?t.length-1:n;n>=0&&t.length>1;)if(this.isFocusableElement(t[n])){this.moveToTabByIndex(t,n);break}else n-1<0?n=t.length-1:--n},this.moveToTabByIndex=(e,t)=>{let n=e[t];this.activetab=n,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=t,n.focus(),this.setComponent()}}orientationChanged(){this.$fastController.isConnected&&(this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}activeidChanged(e,t){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.prevActiveTabIndex=this.tabs.findIndex(t=>t.id===e),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}tabsChanged(){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}tabpanelsChanged(){this.$fastController.isConnected&&this.tabpanels.length<=this.tabs.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}getActiveIndex(){return this.activeid===void 0||this.tabIds.indexOf(this.activeid)===-1?0:this.tabIds.indexOf(this.activeid)}getTabIds(){return this.tabs.map(e=>e.getAttribute(`id`)??`tab-${Ln()}`)}getTabPanelIds(){return this.tabpanels.map(e=>e.getAttribute(`id`)??`panel-${Ln()}`)}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}isHorizontal(){return this.orientation===Fa.horizontal}handleActiveIndicatorPosition(){this.showActiveIndicator&&this.activeindicator&&this.activeTabIndex!==this.prevActiveTabIndex&&(this.ticking?this.ticking=!1:(this.ticking=!0,this.animateActiveIndicator()))}animateActiveIndicator(){this.ticking=!0;let e=this.isHorizontal()?`gridColumn`:`gridRow`,t=this.isHorizontal()?`translateX`:`translateY`,n=this.isHorizontal()?`offsetLeft`:`offsetTop`,r=this.activeIndicatorRef[n];this.activeIndicatorRef.style[e]=`${this.activeTabIndex+1}`;let i=this.activeIndicatorRef[n];this.activeIndicatorRef.style[e]=`${this.prevActiveTabIndex+1}`;let a=i-r;this.activeIndicatorRef.style.transform=`${t}(${a}px)`,this.activeIndicatorRef.classList.add(`activeIndicatorTransition`),this.activeIndicatorRef.addEventListener(`transitionend`,()=>{this.ticking=!1,this.activeIndicatorRef.style[e]=`${this.activeTabIndex+1}`,this.activeIndicatorRef.style.transform=`${t}(0px)`,this.activeIndicatorRef.classList.remove(`activeIndicatorTransition`)})}adjust(e){let t=this.tabs.filter(e=>this.isFocusableElement(e)),n=t.indexOf(this.activetab),r=Fn(0,t.length-1,n+e),i=this.tabs.indexOf(t[r]);i>-1&&this.moveToTabByIndex(this.tabs,i)}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}};M([D],Ia.prototype,`orientation`,void 0),M([D],Ia.prototype,`activeid`,void 0),M([C],Ia.prototype,`tabs`,void 0),M([C],Ia.prototype,`tabpanels`,void 0),M([D({mode:`boolean`})],Ia.prototype,`activeindicator`,void 0),M([C],Ia.prototype,`activeIndicatorRef`,void 0),M([C],Ia.prototype,`showActiveIndicator`,void 0),sn(Ia,St);var Lte=class extends P{},Rte=class extends pr(Lte){constructor(){super(...arguments),this.proxy=document.createElement(`textarea`)}};let La={none:`none`,both:`both`,horizontal:`horizontal`,vertical:`vertical`};var Ra=class extends Rte{constructor(){super(...arguments),this.resize=La.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)}select(){this.control.select(),this.$emit(`select`)}handleChange(){this.$emit(`change`)}validate(){super.validate(this.control)}};M([D({mode:`boolean`})],Ra.prototype,`readOnly`,void 0),M([D],Ra.prototype,`resize`,void 0),M([D({mode:`boolean`})],Ra.prototype,`autofocus`,void 0),M([D({attribute:`form`})],Ra.prototype,`formId`,void 0),M([D],Ra.prototype,`list`,void 0),M([D({converter:E})],Ra.prototype,`maxlength`,void 0),M([D({converter:E})],Ra.prototype,`minlength`,void 0),M([D],Ra.prototype,`name`,void 0),M([D],Ra.prototype,`placeholder`,void 0),M([D({converter:E,mode:`fromView`})],Ra.prototype,`cols`,void 0),M([D({converter:E,mode:`fromView`})],Ra.prototype,`rows`,void 0),M([D({mode:`boolean`})],Ra.prototype,`spellcheck`,void 0),M([C],Ra.prototype,`defaultSlottedNodes`,void 0),sn(Ra,ia);let za=(e,t)=>T`<template class=" ${e=>e.readOnly?`readonly`:``} ${e=>e.resize===La.none?``:`resize-${e.resize}`}"><label part="label" for="control" class="${e=>e.defaultSlottedNodes&&e.defaultSlottedNodes.length?`label`:`label label__hidden`}"><slot ${bt(`defaultSlottedNodes`)}></slot></label><textarea part="control" class="control" id="control" ?autofocus="${e=>e.autofocus}" cols="${e=>e.cols}" ?disabled="${e=>e.disabled}" form="${e=>e.form}" list="${e=>e.list}" maxlength="${e=>e.maxlength}" minlength="${e=>e.minlength}" name="${e=>e.name}" placeholder="${e=>e.placeholder}" ?readonly="${e=>e.readOnly}" ?required="${e=>e.required}" rows="${e=>e.rows}" ?spellcheck="${e=>e.spellcheck}" :value="${e=>e.value}" aria-atomic="${e=>e.ariaAtomic}" aria-busy="${e=>e.ariaBusy}" aria-controls="${e=>e.ariaControls}" aria-current="${e=>e.ariaCurrent}" aria-describedby="${e=>e.ariaDescribedby}" aria-details="${e=>e.ariaDetails}" aria-disabled="${e=>e.ariaDisabled}" aria-errormessage="${e=>e.ariaErrormessage}" aria-flowto="${e=>e.ariaFlowto}" aria-haspopup="${e=>e.ariaHaspopup}" aria-hidden="${e=>e.ariaHidden}" aria-invalid="${e=>e.ariaInvalid}" aria-keyshortcuts="${e=>e.ariaKeyshortcuts}" aria-label="${e=>e.ariaLabel}" aria-labelledby="${e=>e.ariaLabelledby}" aria-live="${e=>e.ariaLive}" aria-owns="${e=>e.ariaOwns}" aria-relevant="${e=>e.ariaRelevant}" aria-roledescription="${e=>e.ariaRoledescription}" @input="${(e,t)=>e.handleTextInput()}" @change="${e=>e.handleChange()}" ${k(`control`)}></textarea></template>`,zte=(e,t)=>T`<template class=" ${e=>e.readOnly?`readonly`:``}"><label part="label" for="control" class="${e=>e.defaultSlottedNodes&&e.defaultSlottedNodes.length?`label`:`label label__hidden`}"><slot ${bt({property:`defaultSlottedNodes`,filter:ha})}></slot></label><div class="root" part="root">${wt(e,t)}<input class="control" part="control" id="control" @input="${e=>e.handleTextInput()}" @change="${e=>e.handleChange()}" ?autofocus="${e=>e.autofocus}" ?disabled="${e=>e.disabled}" list="${e=>e.list}" maxlength="${e=>e.maxlength}" minlength="${e=>e.minlength}" pattern="${e=>e.pattern}" placeholder="${e=>e.placeholder}" ?readonly="${e=>e.readOnly}" ?required="${e=>e.required}" size="${e=>e.size}" ?spellcheck="${e=>e.spellcheck}" :value="${e=>e.value}" type="${e=>e.type}" aria-atomic="${e=>e.ariaAtomic}" aria-busy="${e=>e.ariaBusy}" aria-controls="${e=>e.ariaControls}" aria-current="${e=>e.ariaCurrent}" aria-describedby="${e=>e.ariaDescribedby}" aria-details="${e=>e.ariaDetails}" aria-disabled="${e=>e.ariaDisabled}" aria-errormessage="${e=>e.ariaErrormessage}" aria-flowto="${e=>e.ariaFlowto}" aria-haspopup="${e=>e.ariaHaspopup}" aria-hidden="${e=>e.ariaHidden}" aria-invalid="${e=>e.ariaInvalid}" aria-keyshortcuts="${e=>e.ariaKeyshortcuts}" aria-label="${e=>e.ariaLabel}" aria-labelledby="${e=>e.ariaLabelledby}" aria-live="${e=>e.ariaLive}" aria-owns="${e=>e.ariaOwns}" aria-relevant="${e=>e.ariaRelevant}" aria-roledescription="${e=>e.ariaRoledescription}" ${k(`control`)}/>${Ct(e,t)}</div></template>`,Ba=(e,t)=>T`<template aria-label="${e=>e.ariaLabel}" aria-labelledby="${e=>e.ariaLabelledby}" aria-orientation="${e=>e.orientation}" orientation="${e=>e.orientation}" role="toolbar" @mousedown="${(e,t)=>e.mouseDownHandler(t.event)}" @focusin="${(e,t)=>e.focusinHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}" ${xt({property:`childItems`,attributeFilter:[`disabled`,`hidden`],filter:vt(),subtree:!0})}><slot name="label"></slot><div class="positioning-region" part="positioning-region">${wt(e,t)}<slot ${bt({filter:vt(),property:`slottedItems`})}></slot>${Ct(e,t)}</div></template>`;function Bte(e){let t=e.getRootNode();return t instanceof ShadowRoot?t.activeElement:document.activeElement}let Va=Object.freeze({[Nn.ArrowUp]:{[un.vertical]:-1},[Nn.ArrowDown]:{[un.vertical]:1},[Nn.ArrowLeft]:{[un.horizontal]:{[Pn.ltr]:-1,[Pn.rtl]:1}},[Nn.ArrowRight]:{[un.horizontal]:{[Pn.ltr]:1,[Pn.rtl]:-1}}});var Ha=class e extends P{constructor(){super(...arguments),this._activeIndex=0,this.direction=Pn.ltr,this.orientation=un.horizontal}get activeIndex(){return S.track(this,`activeIndex`),this._activeIndex}set activeIndex(e){this.$fastController.isConnected&&(this._activeIndex=Fn(0,this.focusableElements.length-1,e),S.notify(this,`activeIndex`))}slottedItemsChanged(){this.$fastController.isConnected&&this.reduceFocusableElements()}mouseDownHandler(e){let t=this.focusableElements?.findIndex(t=>t.contains(e.target));return t>-1&&this.activeIndex!==t&&this.setFocusedElement(t),!0}childItemsChanged(e,t){this.$fastController.isConnected&&this.reduceFocusableElements()}connectedCallback(){super.connectedCallback(),this.direction=qn(this)}focusinHandler(e){let t=e.relatedTarget;t&&!this.contains(t)&&this.setFocusedElement()}getDirectionalIncrementer(e){return Va[e]?.[this.orientation]?.[this.direction]??Va[e]?.[this.orientation]??0}keydownHandler(e){let t=e.key;if(!(t in Nn)||e.defaultPrevented||e.shiftKey)return!0;let n=this.getDirectionalIncrementer(t);if(!n)return!e.target.closest(`[role=radiogroup]`);let r=this.activeIndex+n;return this.focusableElements[r]&&e.preventDefault(),this.setFocusedElement(r),!0}get allSlottedItems(){return[...this.start.assignedElements(),...this.slottedItems,...this.end.assignedElements()]}reduceFocusableElements(){let t=this.focusableElements?.[this.activeIndex];this.focusableElements=this.allSlottedItems.reduce(e.reduceFocusableItems,[]);let n=this.focusableElements.indexOf(t);this.activeIndex=Math.max(0,n),this.setFocusableElements()}setFocusedElement(e=this.activeIndex){this.activeIndex=e,this.setFocusableElements(),this.focusableElements[this.activeIndex]&&this.contains(Bte(this))&&this.focusableElements[this.activeIndex].focus()}static reduceFocusableItems(t,n){let r=n.getAttribute(`role`)===`radio`,i=n.$fastController?.definition.shadowOptions?.delegatesFocus,a=Array.from(n.shadowRoot?.querySelectorAll(`*`)??[]).some(e=>Ni(e));return!n.hasAttribute(`disabled`)&&!n.hasAttribute(`hidden`)&&(Ni(n)||r||i||a)?(t.push(n),t):n.childElementCount?t.concat(Array.from(n.children).reduce(e.reduceFocusableItems,[])):t}setFocusableElements(){this.$fastController.isConnected&&this.focusableElements.length>0&&this.focusableElements.forEach((e,t)=>{e.tabIndex=this.activeIndex===t?0:-1})}};M([C],Ha.prototype,`direction`,void 0),M([D],Ha.prototype,`orientation`,void 0),M([C],Ha.prototype,`slottedItems`,void 0),M([C],Ha.prototype,`slottedLabel`,void 0),M([C],Ha.prototype,`childItems`,void 0);var Ua=class{};M([D({attribute:`aria-labelledby`})],Ua.prototype,`ariaLabelledby`,void 0),M([D({attribute:`aria-label`})],Ua.prototype,`ariaLabel`,void 0),sn(Ua,Un),sn(Ha,St,Ua);let Wa=(e,t)=>T` ${A(e=>e.tooltipVisible,T`<${e.tagFor(Jn)}fixed-placement="true" auto-update-mode="${e=>e.autoUpdateMode}" vertical-positioning-mode="${e=>e.verticalPositioningMode}" vertical-default-position="${e=>e.verticalDefaultPosition}" vertical-inset="${e=>e.verticalInset}" vertical-scaling="${e=>e.verticalScaling}" horizontal-positioning-mode="${e=>e.horizontalPositioningMode}" horizontal-default-position="${e=>e.horizontalDefaultPosition}" horizontal-scaling="${e=>e.horizontalScaling}" horizontal-inset="${e=>e.horizontalInset}" vertical-viewport-lock="${e=>e.horizontalViewportLock}" horizontal-viewport-lock="${e=>e.verticalViewportLock}" dir="${e=>e.currentDirection}" ${k(`region`)}><div class="tooltip" part="tooltip" role="tooltip"><slot></slot></div></${e.tagFor(Jn)}>`)} `,Ga={top:`top`,right:`right`,bottom:`bottom`,left:`left`,start:`start`,end:`end`,topLeft:`top-left`,topRight:`top-right`,bottomLeft:`bottom-left`,bottomRight:`bottom-right`,topStart:`top-start`,topEnd:`top-end`,bottomStart:`bottom-start`,bottomEnd:`bottom-end`};var Ka=class extends P{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=Pn.ltr,this.showDelayTimer=null,this.hideDelayTimer=null,this.isAnchorHoveredFocused=!1,this.isRegionHovered=!1,this.handlePositionChange=e=>{this.classList.toggle(`top`,this.region.verticalPosition===`start`),this.classList.toggle(`bottom`,this.region.verticalPosition===`end`),this.classList.toggle(`inset-top`,this.region.verticalPosition===`insetStart`),this.classList.toggle(`inset-bottom`,this.region.verticalPosition===`insetEnd`),this.classList.toggle(`center-vertical`,this.region.verticalPosition===`center`),this.classList.toggle(`left`,this.region.horizontalPosition===`start`),this.classList.toggle(`right`,this.region.horizontalPosition===`end`),this.classList.toggle(`inset-left`,this.region.horizontalPosition===`insetStart`),this.classList.toggle(`inset-right`,this.region.horizontalPosition===`insetEnd`),this.classList.toggle(`center-horizontal`,this.region.horizontalPosition===`center`)},this.handleRegionMouseOver=e=>{this.isRegionHovered=!0},this.handleRegionMouseOut=e=>{this.isRegionHovered=!1,this.startHideDelayTimer()},this.handleAnchorMouseOver=e=>{if(this.tooltipVisible){this.isAnchorHoveredFocused=!0;return}this.startShowDelayTimer()},this.handleAnchorMouseOut=e=>{this.isAnchorHoveredFocused=!1,this.clearShowDelayTimer(),this.startHideDelayTimer()},this.handleAnchorFocusIn=e=>{this.startShowDelayTimer()},this.handleAnchorFocusOut=e=>{this.isAnchorHoveredFocused=!1,this.clearShowDelayTimer(),this.startHideDelayTimer()},this.startHideDelayTimer=()=>{this.clearHideDelayTimer(),this.tooltipVisible&&(this.hideDelayTimer=window.setTimeout(()=>{this.updateTooltipVisibility()},60))},this.clearHideDelayTimer=()=>{this.hideDelayTimer!==null&&(clearTimeout(this.hideDelayTimer),this.hideDelayTimer=null)},this.startShowDelayTimer=()=>{if(!this.isAnchorHoveredFocused){if(this.delay>1){this.showDelayTimer===null&&(this.showDelayTimer=window.setTimeout(()=>{this.startHover()},this.delay));return}this.startHover()}},this.startHover=()=>{this.isAnchorHoveredFocused=!0,this.updateTooltipVisibility()},this.clearShowDelayTimer=()=>{this.showDelayTimer!==null&&(clearTimeout(this.showDelayTimer),this.showDelayTimer=null)},this.getAnchor=()=>{let e=this.getRootNode();return e instanceof ShadowRoot?e.getElementById(this.anchor):document.getElementById(this.anchor)},this.handleDocumentKeydown=e=>{if(!e.defaultPrevented&&this.tooltipVisible)switch(e.key){case jn:this.isAnchorHoveredFocused=!1,this.updateTooltipVisibility(),this.$emit(`dismiss`)}},this.updateTooltipVisibility=()=>{if(this.visible===!1)this.hideTooltip();else if(this.visible===!0){this.showTooltip();return}else{if(this.isAnchorHoveredFocused||this.isRegionHovered){this.showTooltip();return}this.hideTooltip()}},this.showTooltip=()=>{this.tooltipVisible||(this.currentDirection=qn(this),this.tooltipVisible=!0,document.addEventListener(`keydown`,this.handleDocumentKeydown),x.queueUpdate(this.setRegionProps))},this.hideTooltip=()=>{this.tooltipVisible&&(this.clearHideDelayTimer(),this.region!==null&&this.region!==void 0&&(this.region.removeEventListener(`positionchange`,this.handlePositionChange),this.region.viewportElement=null,this.region.anchorElement=null,this.region.removeEventListener(`mouseover`,this.handleRegionMouseOver),this.region.removeEventListener(`mouseout`,this.handleRegionMouseOut)),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),this.region.addEventListener(`mouseover`,this.handleRegionMouseOver,{passive:!0}),this.region.addEventListener(`mouseout`,this.handleRegionMouseOut,{passive:!0}))}}visibleChanged(){this.$fastController.isConnected&&(this.updateTooltipVisibility(),this.updateLayout())}anchorChanged(){this.$fastController.isConnected&&(this.anchorElement=this.getAnchor())}positionChanged(){this.$fastController.isConnected&&this.updateLayout()}anchorElementChanged(e){if(this.$fastController.isConnected){if(e!=null&&(e.removeEventListener(`mouseover`,this.handleAnchorMouseOver),e.removeEventListener(`mouseout`,this.handleAnchorMouseOut),e.removeEventListener(`focusin`,this.handleAnchorFocusIn),e.removeEventListener(`focusout`,this.handleAnchorFocusOut)),this.anchorElement!==null&&this.anchorElement!==void 0){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});let e=this.anchorElement.id;this.anchorElement.parentElement!==null&&this.anchorElement.parentElement.querySelectorAll(`:hover`).forEach(t=>{t.id===e&&this.startShowDelayTimer()})}this.region!==null&&this.region!==void 0&&this.tooltipVisible&&(this.region.anchorElement=this.anchorElement),this.updateLayout()}}viewportElementChanged(){this.region!==null&&this.region!==void 0&&(this.region.viewportElement=this.viewportElement),this.updateLayout()}connectedCallback(){super.connectedCallback(),this.anchorElement=this.getAnchor(),this.updateTooltipVisibility()}disconnectedCallback(){this.hideTooltip(),this.clearShowDelayTimer(),this.clearHideDelayTimer(),super.disconnectedCallback()}updateLayout(){switch(this.verticalPositioningMode=`locktodefault`,this.horizontalPositioningMode=`locktodefault`,this.position){case Ga.top:case Ga.bottom:this.verticalDefaultPosition=this.position,this.horizontalDefaultPosition=`center`;break;case Ga.right:case Ga.left:case Ga.start:case Ga.end:this.verticalDefaultPosition=`center`,this.horizontalDefaultPosition=this.position;break;case Ga.topLeft:this.verticalDefaultPosition=`top`,this.horizontalDefaultPosition=`left`;break;case Ga.topRight:this.verticalDefaultPosition=`top`,this.horizontalDefaultPosition=`right`;break;case Ga.bottomLeft:this.verticalDefaultPosition=`bottom`,this.horizontalDefaultPosition=`left`;break;case Ga.bottomRight:this.verticalDefaultPosition=`bottom`,this.horizontalDefaultPosition=`right`;break;case Ga.topStart:this.verticalDefaultPosition=`top`,this.horizontalDefaultPosition=`start`;break;case Ga.topEnd:this.verticalDefaultPosition=`top`,this.horizontalDefaultPosition=`end`;break;case Ga.bottomStart:this.verticalDefaultPosition=`bottom`,this.horizontalDefaultPosition=`start`;break;case Ga.bottomEnd:this.verticalDefaultPosition=`bottom`,this.horizontalDefaultPosition=`end`;break;default:this.verticalPositioningMode=`dynamic`,this.horizontalPositioningMode=`dynamic`,this.verticalDefaultPosition=void 0,this.horizontalDefaultPosition=`center`}}};M([D({mode:`boolean`})],Ka.prototype,`visible`,void 0),M([D],Ka.prototype,`anchor`,void 0),M([D],Ka.prototype,`delay`,void 0),M([D],Ka.prototype,`position`,void 0),M([D({attribute:`auto-update-mode`})],Ka.prototype,`autoUpdateMode`,void 0),M([D({attribute:`horizontal-viewport-lock`})],Ka.prototype,`horizontalViewportLock`,void 0),M([D({attribute:`vertical-viewport-lock`})],Ka.prototype,`verticalViewportLock`,void 0),M([C],Ka.prototype,`anchorElement`,void 0),M([C],Ka.prototype,`viewportElement`,void 0),M([C],Ka.prototype,`verticalPositioningMode`,void 0),M([C],Ka.prototype,`horizontalPositioningMode`,void 0),M([C],Ka.prototype,`horizontalInset`,void 0),M([C],Ka.prototype,`verticalInset`,void 0),M([C],Ka.prototype,`horizontalScaling`,void 0),M([C],Ka.prototype,`verticalScaling`,void 0),M([C],Ka.prototype,`verticalDefaultPosition`,void 0),M([C],Ka.prototype,`horizontalDefaultPosition`,void 0),M([C],Ka.prototype,`tooltipVisible`,void 0),M([C],Ka.prototype,`currentDirection`,void 0);let qa=(e,t)=>T`<template role="treeitem" slot="${e=>e.isNestedItem()?`item`:void 0}" tabindex="-1" class="${e=>e.expanded?`expanded`:``} ${e=>e.selected?`selected`:``} ${e=>e.nested?`nested`:``} ${e=>e.disabled?`disabled`:``}" aria-expanded="${e=>e.childItems&&e.childItemLength()>0?e.expanded:void 0}" aria-selected="${e=>e.selected}" aria-disabled="${e=>e.disabled}" @focusin="${(e,t)=>e.handleFocus(t.event)}" @focusout="${(e,t)=>e.handleBlur(t.event)}" ${xt({property:`childItems`,filter:vt()})}><div class="positioning-region" part="positioning-region"><div class="content-region" part="content-region">${A(e=>e.childItems&&e.childItemLength()>0,T`<div aria-hidden="true" class="expand-collapse-button" part="expand-collapse-button" @click="${(e,t)=>e.handleExpandCollapseButtonClick(t.event)}" ${k(`expandCollapseButton`)}><slot name="expand-collapse-glyph">${t.expandCollapseGlyph||``}</slot></div>`)} ${wt(e,t)}<slot></slot>${Ct(e,t)}</div></div>${A(e=>e.childItems&&e.childItemLength()>0&&(e.expanded||e.renderCollapsedChildren),T`<div role="group" class="items" part="items"><slot name="item" ${bt(`items`)}></slot></div>`)}</template>`;function Ja(e){return mn(e)&&e.getAttribute(`role`)===`treeitem`}var Ya=class extends P{constructor(){super(...arguments),this.expanded=!1,this.focusable=!1,this.isNestedItem=()=>Ja(this.parentElement),this.handleExpandCollapseButtonClick=e=>{!this.disabled&&!e.defaultPrevented&&(this.expanded=!this.expanded)},this.handleFocus=e=>{this.setAttribute(`tabindex`,`0`)},this.handleBlur=e=>{this.setAttribute(`tabindex`,`-1`)}}expandedChanged(){this.$fastController.isConnected&&this.$emit(`expanded-change`,this)}selectedChanged(){this.$fastController.isConnected&&this.$emit(`selected-change`,this)}itemsChanged(e,t){this.$fastController.isConnected&&this.items.forEach(e=>{Ja(e)&&(e.nested=!0)})}static focusItem(e){e.focusable=!0,e.focus()}childItemLength(){let e=this.childItems.filter(e=>Ja(e));return e?e.length:0}};M([D({mode:`boolean`})],Ya.prototype,`expanded`,void 0),M([D({mode:`boolean`})],Ya.prototype,`selected`,void 0),M([D({mode:`boolean`})],Ya.prototype,`disabled`,void 0),M([C],Ya.prototype,`focusable`,void 0),M([C],Ya.prototype,`childItems`,void 0),M([C],Ya.prototype,`items`,void 0),M([C],Ya.prototype,`nested`,void 0),M([C],Ya.prototype,`renderCollapsedChildren`,void 0),sn(Ya,St);let Xa=(e,t)=>T`<template role="tree" ${k(`treeView`)}@keydown="${(e,t)=>e.handleKeyDown(t.event)}" @focusin="${(e,t)=>e.handleFocus(t.event)}" @focusout="${(e,t)=>e.handleBlur(t.event)}" @click="${(e,t)=>e.handleClick(t.event)}" @selected-change="${(e,t)=>e.handleSelectedChange(t.event)}"><slot ${bt(`slottedTreeItems`)}></slot></template>`;var Za=class extends P{constructor(){super(...arguments),this.currentFocused=null,this.handleFocus=e=>{if(!(this.slottedTreeItems.length<1)){if(e.target===this){this.currentFocused===null&&(this.currentFocused=this.getValidFocusableItem()),this.currentFocused!==null&&Ya.focusItem(this.currentFocused);return}this.contains(e.target)&&(this.setAttribute(`tabindex`,`-1`),this.currentFocused=e.target)}},this.handleBlur=e=>{e.target instanceof HTMLElement&&(e.relatedTarget===null||!this.contains(e.relatedTarget))&&this.setAttribute(`tabindex`,`0`)},this.handleKeyDown=e=>{if(e.defaultPrevented)return;if(this.slottedTreeItems.length<1)return!0;let t=this.getVisibleNodes();switch(e.key){case Mn:t.length&&Ya.focusItem(t[0]);return;case`End`:t.length&&Ya.focusItem(t[t.length-1]);return;case Dn:if(e.target&&this.isFocusableElement(e.target)){let t=e.target;t instanceof Ya&&t.childItemLength()>0&&t.expanded?t.expanded=!1:t instanceof Ya&&t.parentElement instanceof Ya&&Ya.focusItem(t.parentElement)}return!1;case On:if(e.target&&this.isFocusableElement(e.target)){let t=e.target;t instanceof Ya&&t.childItemLength()>0&&!t.expanded?t.expanded=!0:t instanceof Ya&&t.childItemLength()>0&&this.focusNextNode(1,e.target)}return;case En:e.target&&this.isFocusableElement(e.target)&&this.focusNextNode(1,e.target);return;case kn:e.target&&this.isFocusableElement(e.target)&&this.focusNextNode(-1,e.target);return;case An:this.handleClick(e);return}return!0},this.handleSelectedChange=e=>{if(e.defaultPrevented)return;if(!(e.target instanceof Element)||!Ja(e.target))return!0;let t=e.target;t.selected?(this.currentSelected&&this.currentSelected!==t&&(this.currentSelected.selected=!1),this.currentSelected=t):!t.selected&&this.currentSelected===t&&(this.currentSelected=null)},this.setItems=()=>{let e=this.treeView.querySelector(`[aria-selected='true']`);this.currentSelected=e,(this.currentFocused===null||!this.contains(this.currentFocused))&&(this.currentFocused=this.getValidFocusableItem()),this.nested=this.checkForNestedItems(),this.getVisibleNodes().forEach(e=>{Ja(e)&&(e.nested=this.nested)})},this.isFocusableElement=e=>Ja(e),this.isSelectedElement=e=>e.selected}slottedTreeItemsChanged(){this.$fastController.isConnected&&this.setItems()}connectedCallback(){super.connectedCallback(),this.setAttribute(`tabindex`,`0`),x.queueUpdate(()=>{this.setItems()})}handleClick(e){if(e.defaultPrevented)return;if(!(e.target instanceof Element)||!Ja(e.target))return!0;let t=e.target;t.disabled||(t.selected=!t.selected)}focusNextNode(e,t){let n=this.getVisibleNodes();if(!n)return;let r=n[n.indexOf(t)+e];mn(r)&&Ya.focusItem(r)}getValidFocusableItem(){let e=this.getVisibleNodes(),t=e.findIndex(this.isSelectedElement);return t===-1&&(t=e.findIndex(this.isFocusableElement)),t===-1?null:e[t]}checkForNestedItems(){return this.slottedTreeItems.some(e=>Ja(e)&&e.querySelector(`[role='treeitem']`))}getVisibleNodes(){return hn(this,`[role='treeitem']`)||[]}};M([D({attribute:`render-collapsed-nodes`})],Za.prototype,`renderCollapsedNodes`,void 0),M([C],Za.prototype,`currentSelected`,void 0),M([C],Za.prototype,`slottedTreeItems`,void 0);var Qa=class{constructor(e){this.listenerCache=/* @__PURE__ */ new WeakMap,this.query=e}bind(e){let{query:t}=this,n=this.constructListener(e);n.bind(t)(),t.addListener(n),this.listenerCache.set(e,n)}unbind(e){let t=this.listenerCache.get(e);t&&(this.query.removeListener(t),this.listenerCache.delete(e))}},$a=class e extends Qa{constructor(e,t){super(e),this.styles=t}static with(t){return n=>new e(t,n)}constructListener(e){let t=!1,n=this.styles;return function(){let{matches:r}=this;r&&!t?(e.$fastController.addStyles(n),t=r):!r&&t&&(e.$fastController.removeStyles(n),t=r)}}unbind(e){super.unbind(e),e.$fastController.removeStyles(this.styles)}};let eo=$a.with(window.matchMedia(`(forced-colors)`));$a.with(window.matchMedia(`(prefers-color-scheme: dark)`)),$a.with(window.matchMedia(`(prefers-color-scheme: light)`));var to=class{constructor(e,t,n){this.propertyName=e,this.value=t,this.styles=n}bind(e){S.getNotifier(e).subscribe(this,this.propertyName),this.handleChange(e,this.propertyName)}unbind(e){S.getNotifier(e).unsubscribe(this,this.propertyName),e.$fastController.removeStyles(this.styles)}handleChange(e,t){e[t]===this.value?e.$fastController.addStyles(this.styles):e.$fastController.removeStyles(this.styles)}};let no=`not-allowed`;function ro(e){return`:host([hidden]){display:none}:host{display:${e}}`}let I=vn()?`focus-visible`:`focus`,io=(e,t)=>ln(e,t);function ao(e,t,n){return isNaN(e)||e<=t?t:e>=n?n:e}function oo(e,t,n){return isNaN(e)||e<=t?0:e>=n?1:e/(n-t)}function so(e,t,n){return isNaN(e)?t:t+e*(n-t)}function co(e){return Math.PI/180*e}function lo(e){return 180/Math.PI*e}function uo(e){let t=Math.round(ao(e,0,255)).toString(16);return t.length===1?`0`+t:t}function fo(e,t,n){return isNaN(e)||e<=0?t:e>=1?n:t+e*(n-t)}function po(e,t,n){if(e<=0)return t%360;if(e>=1)return n%360;let r=(t-n+360)%360;return r<=(n-t+360)%360?(t-r*e+360)%360:(t+r*e+360)%360}function mo(e,t){let n=10**t;return Math.round(e*n)/n}var ho=class e{constructor(e,t,n){this.h=e,this.s=t,this.l=n}static fromObject(t){return t&&!isNaN(t.h)&&!isNaN(t.s)&&!isNaN(t.l)?new e(t.h,t.s,t.l):null}equalValue(e){return this.h===e.h&&this.s===e.s&&this.l===e.l}roundToPrecision(t){return new e(mo(this.h,t),mo(this.s,t),mo(this.l,t))}toObject(){return{h:this.h,s:this.s,l:this.l}}},go=class e{constructor(e,t,n){this.h=e,this.s=t,this.v=n}static fromObject(t){return t&&!isNaN(t.h)&&!isNaN(t.s)&&!isNaN(t.v)?new e(t.h,t.s,t.v):null}equalValue(e){return this.h===e.h&&this.s===e.s&&this.v===e.v}roundToPrecision(t){return new e(mo(this.h,t),mo(this.s,t),mo(this.v,t))}toObject(){return{h:this.h,s:this.s,v:this.v}}},_o=class e{constructor(e,t,n){this.l=e,this.a=t,this.b=n}static fromObject(t){return t&&!isNaN(t.l)&&!isNaN(t.a)&&!isNaN(t.b)?new e(t.l,t.a,t.b):null}equalValue(e){return this.l===e.l&&this.a===e.a&&this.b===e.b}roundToPrecision(t){return new e(mo(this.l,t),mo(this.a,t),mo(this.b,t))}toObject(){return{l:this.l,a:this.a,b:this.b}}};_o.epsilon=216/24389,_o.kappa=24389/27;var vo=class e{constructor(e,t,n){this.l=e,this.c=t,this.h=n}static fromObject(t){return t&&!isNaN(t.l)&&!isNaN(t.c)&&!isNaN(t.h)?new e(t.l,t.c,t.h):null}equalValue(e){return this.l===e.l&&this.c===e.c&&this.h===e.h}roundToPrecision(t){return new e(mo(this.l,t),mo(this.c,t),mo(this.h,t))}toObject(){return{l:this.l,c:this.c,h:this.h}}},yo=class e{constructor(e,t,n,r){this.r=e,this.g=t,this.b=n,this.a=typeof r==`number`&&!isNaN(r)?r:1}static fromObject(t){return t&&!isNaN(t.r)&&!isNaN(t.g)&&!isNaN(t.b)?new e(t.r,t.g,t.b,t.a):null}equalValue(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.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(so(this.r,0,255))},${Math.round(so(this.g,0,255))},${Math.round(so(this.b,0,255))})`}toStringWebRGBA(){return`rgba(${Math.round(so(this.r,0,255))},${Math.round(so(this.g,0,255))},${Math.round(so(this.b,0,255))},${ao(this.a,0,1)})`}roundToPrecision(t){return new e(mo(this.r,t),mo(this.g,t),mo(this.b,t),mo(this.a,t))}clamp(){return new e(ao(this.r,0,1),ao(this.g,0,1),ao(this.b,0,1),ao(this.a,0,1))}toObject(){return{r:this.r,g:this.g,b:this.b,a:this.a}}formatHexValue(e){return uo(so(e,0,255))}},bo=class e{constructor(e,t,n){this.x=e,this.y=t,this.z=n}static fromObject(t){return t&&!isNaN(t.x)&&!isNaN(t.y)&&!isNaN(t.z)?new e(t.x,t.y,t.z):null}equalValue(e){return this.x===e.x&&this.y===e.y&&this.z===e.z}roundToPrecision(t){return new e(mo(this.x,t),mo(this.y,t),mo(this.z,t))}toObject(){return{x:this.x,y:this.y,z:this.z}}};bo.whitePoint=new bo(.95047,1,1.08883);function xo(e){return e.r*.2126+e.g*.7152+e.b*.0722}function So(e){function t(e){return e<=.03928?e/12.92:((e+.055)/1.055)**2.4}return xo(new yo(t(e.r),t(e.g),t(e.b),1))}let Co=(e,t)=>(e+.05)/(t+.05);function wo(e,t){let n=So(e),r=So(t);return n>r?Co(n,r):Co(r,n)}function To(e){let t=Math.max(e.r,e.g,e.b),n=Math.min(e.r,e.g,e.b),r=t-n,i=0;r!==0&&(i=t===e.r?60*((e.g-e.b)/r%6):t===e.g?60*((e.b-e.r)/r+2):60*((e.r-e.g)/r+4)),i<0&&(i+=360);let a=(t+n)/2,o=0;return r!==0&&(o=r/(1-Math.abs(2*a-1))),new ho(i,o,a)}function Eo(e,t=1){let n=(1-Math.abs(2*e.l-1))*e.s,r=n*(1-Math.abs(e.h/60%2-1)),i=e.l-n/2,a=0,o=0,s=0;return e.h<60?(a=n,o=r,s=0):e.h<120?(a=r,o=n,s=0):e.h<180?(a=0,o=n,s=r):e.h<240?(a=0,o=r,s=n):e.h<300?(a=r,o=0,s=n):e.h<360&&(a=n,o=0,s=r),new yo(a+i,o+i,s+i,t)}function Do(e){let t=Math.max(e.r,e.g,e.b),n=t-Math.min(e.r,e.g,e.b),r=0;n!==0&&(r=t===e.r?60*((e.g-e.b)/n%6):t===e.g?60*((e.b-e.r)/n+2):60*((e.r-e.g)/n+4)),r<0&&(r+=360);let i=0;return t!==0&&(i=n/t),new go(r,i,t)}function Oo(e,t=1){let n=e.s*e.v,r=n*(1-Math.abs(e.h/60%2-1)),i=e.v-n,a=0,o=0,s=0;return e.h<60?(a=n,o=r,s=0):e.h<120?(a=r,o=n,s=0):e.h<180?(a=0,o=n,s=r):e.h<240?(a=0,o=r,s=n):e.h<300?(a=r,o=0,s=n):e.h<360&&(a=n,o=0,s=r),new yo(a+i,o+i,s+i,t)}function ko(e){let t=0,n=0;return e.h!==0&&(t=Math.cos(co(e.h))*e.c,n=Math.sin(co(e.h))*e.c),new _o(e.l,t,n)}function Ao(e){let t=0;(Math.abs(e.b)>.001||Math.abs(e.a)>.001)&&(t=lo(Math.atan2(e.b,e.a))),t<0&&(t+=360);let n=Math.sqrt(e.a*e.a+e.b*e.b);return new vo(e.l,n,t)}function jo(e){let t=(e.l+16)/116,n=t+e.a/500,r=t-e.b/200,i=n**3,a=t**3,o=r**3,s=0;s=i>_o.epsilon?i:(116*n-16)/_o.kappa;let c=0;c=e.l>_o.epsilon*_o.kappa?a:e.l/_o.kappa;let l=0;return l=o>_o.epsilon?o:(116*r-16)/_o.kappa,s=bo.whitePoint.x*s,c=bo.whitePoint.y*c,l=bo.whitePoint.z*l,new bo(s,c,l)}function Mo(e){function t(e){return e>_o.epsilon?e**(1/3):(_o.kappa*e+16)/116}let n=t(e.x/bo.whitePoint.x),r=t(e.y/bo.whitePoint.y),i=t(e.z/bo.whitePoint.z);return new _o(116*r-16,500*(n-r),200*(r-i))}function No(e){function t(e){return e<=.04045?e/12.92:((e+.055)/1.055)**2.4}let n=t(e.r),r=t(e.g),i=t(e.b);return new bo(n*.4124564+r*.3575761+i*.1804375,n*.2126729+r*.7151522+i*.072175,n*.0193339+r*.119192+i*.9503041)}function Po(e,t=1){function n(e){return e<=.0031308?e*12.92:1.055*e**(1/2.4)-.055}return new yo(n(e.x*3.2404542-e.y*1.5371385-e.z*.4985314),n(e.x*-.969266+e.y*1.8760108+e.z*.041556),n(e.x*.0556434-e.y*.2040259+e.z*1.0572252),t)}function Fo(e){return Mo(No(e))}function Io(e,t=1){return Po(jo(e),t)}function Lo(e){return Ao(Fo(e))}function Ro(e,t=1){return Io(ko(e),t)}function zo(e,t,n=18){let r=Lo(e),i=r.c+t*n;return i<0&&(i=0),Ro(new vo(r.l,i,r.h))}function Bo(e,t){return e*t}function Vo(e,t){return new yo(Bo(e.r,t.r),Bo(e.g,t.g),Bo(e.b,t.b),1)}function Ho(e,t){return ao(e<.5?2*t*e:1-2*(1-t)*(1-e),0,1)}function Uo(e,t){return new yo(Ho(e.r,t.r),Ho(e.g,t.g),Ho(e.b,t.b),1)}var Wo;(function(e){e[e.Burn=0]=`Burn`,e[e.Color=1]=`Color`,e[e.Darken=2]=`Darken`,e[e.Dodge=3]=`Dodge`,e[e.Lighten=4]=`Lighten`,e[e.Multiply=5]=`Multiply`,e[e.Overlay=6]=`Overlay`,e[e.Screen=7]=`Screen`})(Wo||(Wo={}));function Vte(e,t,n){return isNaN(e)||e<=0?t:e>=1?n:new yo(fo(e,t.r,n.r),fo(e,t.g,n.g),fo(e,t.b,n.b),fo(e,t.a,n.a))}function Hte(e,t,n){return isNaN(e)||e<=0?t:e>=1?n:new ho(po(e,t.h,n.h),fo(e,t.s,n.s),fo(e,t.l,n.l))}function Ute(e,t,n){return isNaN(e)||e<=0?t:e>=1?n:new go(po(e,t.h,n.h),fo(e,t.s,n.s),fo(e,t.v,n.v))}function Wte(e,t,n){return isNaN(e)||e<=0?t:e>=1?n:new bo(fo(e,t.x,n.x),fo(e,t.y,n.y),fo(e,t.z,n.z))}function Gte(e,t,n){return isNaN(e)||e<=0?t:e>=1?n:new _o(fo(e,t.l,n.l),fo(e,t.a,n.a),fo(e,t.b,n.b))}function Kte(e,t,n){return isNaN(e)||e<=0?t:e>=1?n:new vo(fo(e,t.l,n.l),fo(e,t.c,n.c),po(e,t.h,n.h))}var Go;(function(e){e[e.RGB=0]=`RGB`,e[e.HSL=1]=`HSL`,e[e.HSV=2]=`HSV`,e[e.XYZ=3]=`XYZ`,e[e.LAB=4]=`LAB`,e[e.LCH=5]=`LCH`})(Go||(Go={}));function Ko(e,t,n,r){if(isNaN(e)||e<=0)return n;if(e>=1)return r;switch(t){case Go.HSL:return Eo(Hte(e,To(n),To(r)));case Go.HSV:return Oo(Ute(e,Do(n),Do(r)));case Go.XYZ:return Po(Wte(e,No(n),No(r)));case Go.LAB:return Io(Gte(e,Fo(n),Fo(r)));case Go.LCH:return Ro(Kte(e,Lo(n),Lo(r)));default:return Vte(e,n,r)}}var qo=class e{constructor(e){if(e==null||e.length===0)throw Error(`The stops argument must be non-empty`);this.stops=this.sortColorScaleStops(e)}static createBalancedColorScale(t){if(t==null||t.length===0)throw Error(`The colors argument must be non-empty`);let n=Array(t.length);for(let e=0;e<t.length;e++)e===0?n[e]={color:t[e],position:0}:e===t.length-1?n[e]={color:t[e],position:1}:n[e]={color:t[e],position:e*(1/(t.length-1))};return new e(n)}getColor(e,t=Go.RGB){if(this.stops.length===1||e<=0)return this.stops[0].color;if(e>=1)return this.stops[this.stops.length-1].color;let n=0;for(let t=0;t<this.stops.length;t++)this.stops[t].position<=e&&(n=t);let r=n+1;return r>=this.stops.length&&(r=this.stops.length-1),Ko((e-this.stops[n].position)*(1/(this.stops[r].position-this.stops[n].position)),t,this.stops[n].color,this.stops[r].color)}trim(t,n,r=Go.RGB){if(t<0||n>1||n<t)throw Error(`Invalid bounds`);if(t===n)return new e([{color:this.getColor(t,r),position:0}]);let i=[];for(let e=0;e<this.stops.length;e++)this.stops[e].position>=t&&this.stops[e].position<=n&&i.push(this.stops[e]);if(i.length===0)return new e([{color:this.getColor(t),position:t},{color:this.getColor(n),position:n}]);i[0].position!==t&&i.unshift({color:this.getColor(t),position:t}),i[i.length-1].position!==n&&i.push({color:this.getColor(n),position:n});let a=n-t,o=Array(i.length);for(let e=0;e<i.length;e++)o[e]={color:i[e].color,position:(i[e].position-t)/a};return new e(o)}findNextColor(e,t,n=!1,r=Go.RGB,i=.005,a=32){isNaN(e)||e<=0?e=0:e>=1&&(e=1);let o=this.getColor(e,r),s=+!n;if(wo(o,this.getColor(s,r))<=t)return s;let c=n?0:e,l=n?e:0,u=s,d=0;for(;d<=a;){u=Math.abs(l-c)/2+c;let e=wo(o,this.getColor(u,r));if(Math.abs(e-t)<=i)return u;e>t?n?c=u:l=u:n?l=u:c=u,d++}return u}clone(){let t=Array(this.stops.length);for(let e=0;e<t.length;e++)t[e]={color:this.stops[e].color,position:this.stops[e].position};return new e(t)}sortColorScaleStops(e){return e.sort((e,t)=>{let n=e.position,r=t.position;return n<r?-1:+(n>r)})}};let qte=/^#((?:[0-9a-f]{6}|[0-9a-f]{3}))$/i;function Jo(e){let t=qte.exec(e);if(t===null)return null;let n=t[1];if(n.length===3){let e=n.charAt(0),t=n.charAt(1),r=n.charAt(2);n=e.concat(e,t,t,r,r)}let r=parseInt(n,16);return isNaN(r)?null:new yo(oo((r&16711680)>>>16,0,255),oo((r&65280)>>>8,0,255),oo(r&255,0,255),1)}var Yo=class e{constructor(t){this.config=Object.assign({},e.defaultPaletteConfig,t),this.palette=[],this.updatePaletteColors()}updatePaletteGenerationValues(e){let t=!1;for(let n in e)this.config[n]&&(this.config[n].equalValue?this.config[n].equalValue(e[n])||(this.config[n]=e[n],t=!0):e[n]!==this.config[n]&&(this.config[n]=e[n],t=!0));return t&&this.updatePaletteColors(),t}updatePaletteColors(){let e=this.generatePaletteColorScale();for(let t=0;t<this.config.steps;t++)this.palette[t]=e.getColor(t/(this.config.steps-1),this.config.interpolationMode)}generatePaletteColorScale(){let e=To(this.config.baseColor),t=new qo([{position:0,color:this.config.scaleColorLight},{position:.5,color:this.config.baseColor},{position:1,color:this.config.scaleColorDark}]).trim(this.config.clipLight,1-this.config.clipDark),n=t.getColor(0),r=t.getColor(1),i=n,a=r;if(e.s>=this.config.saturationAdjustmentCutoff&&(i=zo(i,this.config.saturationLight),a=zo(a,this.config.saturationDark)),this.config.multiplyLight!==0){let e=Vo(this.config.baseColor,i);i=Ko(this.config.multiplyLight,this.config.interpolationMode,i,e)}if(this.config.multiplyDark!==0){let e=Vo(this.config.baseColor,a);a=Ko(this.config.multiplyDark,this.config.interpolationMode,a,e)}if(this.config.overlayLight!==0){let e=Uo(this.config.baseColor,i);i=Ko(this.config.overlayLight,this.config.interpolationMode,i,e)}if(this.config.overlayDark!==0){let e=Uo(this.config.baseColor,a);a=Ko(this.config.overlayDark,this.config.interpolationMode,a,e)}return this.config.baseScalePosition?this.config.baseScalePosition<=0?new qo([{position:0,color:this.config.baseColor},{position:1,color:a.clamp()}]):this.config.baseScalePosition>=1?new qo([{position:0,color:i.clamp()},{position:1,color:this.config.baseColor}]):new qo([{position:0,color:i.clamp()},{position:this.config.baseScalePosition,color:this.config.baseColor},{position:1,color:a.clamp()}]):new qo([{position:0,color:i.clamp()},{position:.5,color:this.config.baseColor},{position:1,color:a.clamp()}])}};Yo.defaultPaletteConfig={baseColor:Jo(`#808080`),steps:11,interpolationMode:Go.RGB,scaleColorLight:new yo(1,1,1,1),scaleColorDark:new yo(0,0,0,1),clipLight:.185,clipDark:.16,saturationAdjustmentCutoff:.05,saturationLight:.35,saturationDark:1.25,overlayLight:0,overlayDark:.25,multiplyLight:0,multiplyDark:0,baseScalePosition:.5},Yo.greyscalePaletteConfig={baseColor:Jo(`#808080`),steps:11,interpolationMode:Go.RGB,scaleColorLight:new yo(1,1,1,1),scaleColorDark:new yo(0,0,0,1),clipLight:0,clipDark:0,saturationAdjustmentCutoff:0,saturationLight:0,saturationDark:0,overlayLight:0,overlayDark:0,multiplyLight:0,multiplyDark:0,baseScalePosition:.5},Yo.defaultPaletteConfig.scaleColorLight,Yo.defaultPaletteConfig.scaleColorDark;var Xo=class e{constructor(t){this.palette=[],this.config=Object.assign({},e.defaultPaletteConfig,t),this.regenPalettes()}regenPalettes(){let e=this.config.steps;(isNaN(e)||e<3)&&(e=3);let t=.14,n=new yo(t,t,t,1),r=new Yo(Object.assign(Object.assign({},Yo.greyscalePaletteConfig),{baseColor:n,baseScalePosition:86/94,steps:e})).palette,i=(xo(this.config.baseColor)+To(this.config.baseColor).l)/2,a=this.matchRelativeLuminanceIndex(i,r)/(e-1),o=this.matchRelativeLuminanceIndex(t,r)/(e-1),s=To(this.config.baseColor),c=Eo(ho.fromObject({h:s.h,s:s.s,l:t})),l=Eo(ho.fromObject({h:s.h,s:s.s,l:.06})),u=[,,,,,];u[0]={position:0,color:new yo(1,1,1,1)},u[1]={position:a,color:this.config.baseColor},u[2]={position:o,color:c},u[3]={position:.99,color:l},u[4]={position:1,color:new yo(0,0,0,1)};let d=new qo(u);this.palette=Array(e);for(let t=0;t<e;t++){let n=d.getColor(t/(e-1),Go.RGB);this.palette[t]=n}}matchRelativeLuminanceIndex(e,t){let n=Number.MAX_VALUE,r=0,i=0,a=t.length;for(;i<a;i++){let a=Math.abs(xo(t[i])-e);a<n&&(n=a,r=i)}return r}};Xo.defaultPaletteConfig={baseColor:Jo(`#808080`),steps:94};function Zo(e,t){let n=e.relativeLuminance>t.relativeLuminance?e:t,r=e.relativeLuminance>t.relativeLuminance?t:e;return(n.relativeLuminance+.05)/(r.relativeLuminance+.05)}let Qo=Object.freeze({create(e,t,n){return new $o(e,t,n)},from(e){return new $o(e.r,e.g,e.b)}});function Jte(e){let t={r:0,g:0,b:0,toColorString:()=>``,contrast:()=>0,relativeLuminance:0};for(let n in t)if(typeof t[n]!=typeof e[n])return!1;return!0}var $o=class e extends yo{constructor(e,t,n){super(e,t,n,1),this.toColorString=this.toStringHexRGB,this.contrast=Zo.bind(null,this),this.createCSS=this.toColorString,this.relativeLuminance=So(this)}static fromObject(t){return new e(t.r,t.g,t.b)}};function es(e,t,n=0,r=e.length-1){if(r===n)return e[n];let i=Math.floor((r-n)/2)+n;return t(e[i])?es(e,t,n,i):es(e,t,i+1,r)}let Yte=(-.1+Math.sqrt(.21))/2;function ts(e){return e.relativeLuminance<=Yte}function ns(e){return ts(e)?-1:1}function Xte(e,t,n){return typeof e==`number`?rs.from(Qo.create(e,t,n)):rs.from(e)}function Zte(e){return Jte(e)?is.from(e):is.from(Qo.create(e.r,e.g,e.b))}let rs=Object.freeze({create:Xte,from:Zte});var is=class e{constructor(e,t){this.closestIndexCache=/* @__PURE__ */ new Map,this.source=e,this.swatches=t,this.reversedSwatches=Object.freeze([...this.swatches].reverse()),this.lastIndex=this.swatches.length-1}colorContrast(e,t,n,r){n===void 0&&(n=this.closestIndexOf(e));let i=this.swatches,a=this.lastIndex,o=n;return r===void 0&&(r=ns(e)),r===-1&&(i=this.reversedSwatches,o=a-o),es(i,n=>Zo(e,n)>=t,o,a)}get(e){return this.swatches[e]||this.swatches[ao(e,0,this.lastIndex)]}closestIndexOf(e){if(this.closestIndexCache.has(e.relativeLuminance))return this.closestIndexCache.get(e.relativeLuminance);let t=this.swatches.indexOf(e);if(t!==-1)return this.closestIndexCache.set(e.relativeLuminance,t),t;let n=this.swatches.reduce((t,n)=>Math.abs(n.relativeLuminance-e.relativeLuminance)<Math.abs(t.relativeLuminance-e.relativeLuminance)?n:t);return t=this.swatches.indexOf(n),this.closestIndexCache.set(e.relativeLuminance,t),t}static from(t){return new e(t,Object.freeze(new Xo({baseColor:yo.fromObject(t)}).palette.map(e=>{let t=Jo(e.toStringHexRGB());return Qo.create(t.r,t.g,t.b)})))}};function Qte(e,t,n,r,i,a,o,s,c){let l=e.source,u=t.closestIndexOf(n)>=Math.max(o,s,c)?-1:1,d=e.closestIndexOf(l),f=d+u*-1*r,p=f+u*i,m=f+u*a;return{rest:e.get(f),hover:e.get(d),active:e.get(p),focus:e.get(m)}}function $te(e,t,n,r,i,a,o){let s=e.source,c=e.closestIndexOf(s),l=ns(t),u=c+(l===1?Math.min(r,i):Math.max(l*r,l*i)),d=e.colorContrast(t,n,u,l),f=e.closestIndexOf(d),p=f+l*Math.abs(r-i),m=l===1?r<i:l*r>l*i,h,g;return m?(h=f,g=p):(h=p,g=f),{rest:e.get(h),hover:e.get(g),active:e.get(h+l*a),focus:e.get(h+l*o)}}let as=Qo.create(1,1,1),ene=Qo.create(0,0,0),tne=Qo.from(Jo(`#808080`)),nne=Qo.from(Jo(`#DA1A5F`));function rne(e,t){return e.contrast(as)>=t?as:ene}function ine(e,t,n,r,i,a){let o=e.closestIndexOf(t),s=o>=Math.max(n,r,i,a)?-1:1;return{rest:e.get(o+s*n),hover:e.get(o+s*r),active:e.get(o+s*i),focus:e.get(o+s*a)}}function ane(e,t,n,r,i,a){let o=ns(t),s=e.closestIndexOf(t);return{rest:e.get(s-o*n),hover:e.get(s-o*r),active:e.get(s-o*i),focus:e.get(s-o*a)}}function one(e,t,n){let r=e.closestIndexOf(t);return e.get(r-(r<n?n*-1:n))}function sne(e,t,n,r,i,a,o,s,c,l){let u=Math.max(n,r,i,a,o,s,c,l),d=e.closestIndexOf(t),f=d>=u?-1:1;return{rest:e.get(d+f*n),hover:e.get(d+f*r),active:e.get(d+f*i),focus:e.get(d+f*a)}}function cne(e,t,n,r,i,a){let o=ns(t),s=e.closestIndexOf(e.colorContrast(t,4.5)),c=s+o*Math.abs(n-r),l=o===1?n<r:o*n>o*r,u,d;return l?(u=s,d=c):(u=c,d=s),{rest:e.get(u),hover:e.get(d),active:e.get(u+o*i),focus:e.get(u+o*a)}}function lne(e,t){return e.colorContrast(t,3.5)}function une(e,t,n){return e.colorContrast(n,3.5,e.closestIndexOf(e.source),ns(t)*-1)}function dne(e,t){return e.colorContrast(t,14)}function fne(e,t){return e.colorContrast(t,4.5)}function os(e){return Qo.create(e,e,e)}let ss={LightMode:1,DarkMode:.23};function pne(e,t,n){return e.get(e.closestIndexOf(os(t))+n)}function mne(e,t,n){let r=e.closestIndexOf(os(t))-n;return e.get(r-n)}function hne(e,t){return e.get(e.closestIndexOf(os(t)))}function cs(e,t,n,r,i,a){return Math.max(e.closestIndexOf(os(t))+n,r,i,a)}function gne(e,t,n,r,i,a){return e.get(cs(e,t,n,r,i,a))}function _ne(e,t,n,r,i,a){return e.get(cs(e,t,n,r,i,a)+n)}function vne(e,t,n,r,i,a){return e.get(cs(e,t,n,r,i,a)+n*2)}function yne(e,t,n,r,i,a){let o=e.closestIndexOf(t),s=ns(t),c=o+s*n,l=c+s*(r-n),u=c+s*(i-n),d=c+s*(a-n);return{rest:e.get(c),hover:e.get(l),active:e.get(u),focus:e.get(d)}}function bne(e,t,n){return e.get(e.closestIndexOf(t)+ns(t)*n)}let{create:L}=ni;function R(e){return ni.create({name:e,cssCustomPropertyName:null})}let ls=L(`body-font`).withDefault(`aktiv-grotesk, "Segoe UI", Arial, Helvetica, sans-serif`),us=L(`base-height-multiplier`).withDefault(10),xne=L(`base-horizontal-spacing-multiplier`).withDefault(3),ds=L(`base-layer-luminance`).withDefault(ss.DarkMode),fs=L(`control-corner-radius`).withDefault(4),ps=L(`density`).withDefault(0),z=L(`design-unit`).withDefault(4),ms=L(`direction`).withDefault(Pn.ltr),hs=L(`disabled-opacity`).withDefault(.3),B=L(`stroke-width`).withDefault(1),gs=L(`focus-stroke-width`).withDefault(2),_s=L(`type-ramp-base-font-size`).withDefault(`14px`),vs=L(`type-ramp-base-line-height`).withDefault(`20px`),ys=L(`type-ramp-minus-1-font-size`).withDefault(`12px`),bs=L(`type-ramp-minus-1-line-height`).withDefault(`16px`),xs=L(`type-ramp-minus-2-font-size`).withDefault(`10px`),Ss=L(`type-ramp-minus-2-line-height`).withDefault(`16px`),Cs=L(`type-ramp-plus-1-font-size`).withDefault(`16px`),ws=L(`type-ramp-plus-1-line-height`).withDefault(`24px`),Ts=L(`type-ramp-plus-2-font-size`).withDefault(`20px`),Es=L(`type-ramp-plus-2-line-height`).withDefault(`28px`),Ds=L(`type-ramp-plus-3-font-size`).withDefault(`28px`),Os=L(`type-ramp-plus-3-line-height`).withDefault(`36px`),ks=L(`type-ramp-plus-4-font-size`).withDefault(`34px`),As=L(`type-ramp-plus-4-line-height`).withDefault(`44px`),js=L(`type-ramp-plus-5-font-size`).withDefault(`46px`),Ms=L(`type-ramp-plus-5-line-height`).withDefault(`56px`),Ns=L(`type-ramp-plus-6-font-size`).withDefault(`60px`),Ps=L(`type-ramp-plus-6-line-height`).withDefault(`72px`),Fs=R(`accent-fill-rest-delta`).withDefault(0),Is=R(`accent-fill-hover-delta`).withDefault(4),Ls=R(`accent-fill-active-delta`).withDefault(-5),Rs=R(`accent-fill-focus-delta`).withDefault(0),zs=R(`accent-foreground-rest-delta`).withDefault(0),Bs=R(`accent-foreground-hover-delta`).withDefault(6),Vs=R(`accent-foreground-active-delta`).withDefault(-4),Hs=R(`accent-foreground-focus-delta`).withDefault(0),Us=R(`neutral-fill-rest-delta`).withDefault(7),Ws=R(`neutral-fill-hover-delta`).withDefault(10),Gs=R(`neutral-fill-active-delta`).withDefault(5),Ks=R(`neutral-fill-focus-delta`).withDefault(0),qs=R(`neutral-fill-input-rest-delta`).withDefault(0),Js=R(`neutral-fill-input-hover-delta`).withDefault(0),Ys=R(`neutral-fill-input-active-delta`).withDefault(0),Xs=R(`neutral-fill-input-focus-delta`).withDefault(0),Zs=R(`neutral-fill-stealth-rest-delta`).withDefault(0),Qs=R(`neutral-fill-stealth-hover-delta`).withDefault(5),$s=R(`neutral-fill-stealth-active-delta`).withDefault(3),ec=R(`neutral-fill-stealth-focus-delta`).withDefault(0),tc=R(`neutral-fill-strong-rest-delta`).withDefault(0),nc=R(`neutral-fill-strong-hover-delta`).withDefault(8),rc=R(`neutral-fill-strong-active-delta`).withDefault(-5),ic=R(`neutral-fill-strong-focus-delta`).withDefault(0),ac=R(`neutral-fill-layer-rest-delta`).withDefault(3),oc=R(`neutral-stroke-rest-delta`).withDefault(25),sc=R(`neutral-stroke-hover-delta`).withDefault(40),cc=R(`neutral-stroke-active-delta`).withDefault(16),lc=R(`neutral-stroke-focus-delta`).withDefault(25),uc=R(`neutral-stroke-divider-rest-delta`).withDefault(8),dc=L(`neutral-color`).withDefault(tne),fc=R(`neutral-palette`).withDefault(e=>rs.from(dc.getValueFor(e))),pc=L(`accent-color`).withDefault(nne),mc=R(`accent-palette`).withDefault(e=>rs.from(pc.getValueFor(e))),Sne=R(`neutral-layer-card-container-recipe`).withDefault({evaluate:e=>pne(fc.getValueFor(e),ds.getValueFor(e),ac.getValueFor(e))}),hc=L(`neutral-layer-card-container`).withDefault(e=>Sne.getValueFor(e).evaluate(e)),Cne=R(`neutral-layer-floating-recipe`).withDefault({evaluate:e=>mne(fc.getValueFor(e),ds.getValueFor(e),ac.getValueFor(e))}),gc=L(`neutral-layer-floating`).withDefault(e=>Cne.getValueFor(e).evaluate(e)),wne=R(`neutral-layer-1-recipe`).withDefault({evaluate:e=>hne(fc.getValueFor(e),ds.getValueFor(e))}),_c=L(`neutral-layer-1`).withDefault(e=>wne.getValueFor(e).evaluate(e)),Tne=R(`neutral-layer-2-recipe`).withDefault({evaluate:e=>gne(fc.getValueFor(e),ds.getValueFor(e),ac.getValueFor(e),Us.getValueFor(e),Ws.getValueFor(e),Gs.getValueFor(e))}),vc=L(`neutral-layer-2`).withDefault(e=>Tne.getValueFor(e).evaluate(e)),yc=R(`neutral-layer-3-recipe`).withDefault({evaluate:e=>_ne(fc.getValueFor(e),ds.getValueFor(e),ac.getValueFor(e),Us.getValueFor(e),Ws.getValueFor(e),Gs.getValueFor(e))}),bc=L(`neutral-layer-3`).withDefault(e=>yc.getValueFor(e).evaluate(e)),xc=R(`neutral-layer-4-recipe`).withDefault({evaluate:e=>vne(fc.getValueFor(e),ds.getValueFor(e),ac.getValueFor(e),Us.getValueFor(e),Ws.getValueFor(e),Gs.getValueFor(e))}),Sc=L(`neutral-layer-4`).withDefault(e=>xc.getValueFor(e).evaluate(e)),Cc=L(`fill-color`).withDefault(e=>_c.getValueFor(e));var wc;(function(e){e[e.normal=4.5]=`normal`,e[e.large=7]=`large`})(wc||(wc={}));let Tc=L({name:`accent-fill-recipe`,cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>Qte(mc.getValueFor(e),fc.getValueFor(e),t||Cc.getValueFor(e),Is.getValueFor(e),Ls.getValueFor(e),Rs.getValueFor(e),Us.getValueFor(e),Ws.getValueFor(e),Gs.getValueFor(e))}),Ec=L(`accent-fill-rest`).withDefault(e=>Tc.getValueFor(e).evaluate(e).rest),Dc=L(`accent-fill-hover`).withDefault(e=>Tc.getValueFor(e).evaluate(e).hover),Oc=L(`accent-fill-active`).withDefault(e=>Tc.getValueFor(e).evaluate(e).active),kc=L(`accent-fill-focus`).withDefault(e=>Tc.getValueFor(e).evaluate(e).focus),Ac=e=>(t,n)=>rne(n||Ec.getValueFor(t),e),jc=R(`foreground-on-accent-recipe`).withDefault({evaluate:(e,t)=>Ac(wc.normal)(e,t)}),Mc=L(`foreground-on-accent-rest`).withDefault(e=>jc.getValueFor(e).evaluate(e,Ec.getValueFor(e))),Nc=L(`foreground-on-accent-hover`).withDefault(e=>jc.getValueFor(e).evaluate(e,Dc.getValueFor(e))),Pc=L(`foreground-on-accent-active`).withDefault(e=>jc.getValueFor(e).evaluate(e,Oc.getValueFor(e))),Fc=L(`foreground-on-accent-focus`).withDefault(e=>jc.getValueFor(e).evaluate(e,kc.getValueFor(e))),Ic=R(`foreground-on-accent-large-recipe`).withDefault({evaluate:(e,t)=>Ac(wc.large)(e,t)}),Lc=L(`foreground-on-accent-rest-large`).withDefault(e=>Ic.getValueFor(e).evaluate(e,Ec.getValueFor(e))),Rc=L(`foreground-on-accent-hover-large`).withDefault(e=>Ic.getValueFor(e).evaluate(e,Dc.getValueFor(e))),zc=L(`foreground-on-accent-active-large`).withDefault(e=>Ic.getValueFor(e).evaluate(e,Oc.getValueFor(e))),Bc=L(`foreground-on-accent-focus-large`).withDefault(e=>Ic.getValueFor(e).evaluate(e,kc.getValueFor(e))),Vc=e=>(t,n)=>$te(mc.getValueFor(t),n||Cc.getValueFor(t),e,zs.getValueFor(t),Bs.getValueFor(t),Vs.getValueFor(t),Hs.getValueFor(t)),Hc=L({name:`accent-foreground-recipe`,cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>Vc(wc.normal)(e,t)}),Uc=L(`accent-foreground-rest`).withDefault(e=>Hc.getValueFor(e).evaluate(e).rest),Wc=L(`accent-foreground-hover`).withDefault(e=>Hc.getValueFor(e).evaluate(e).hover),Gc=L(`accent-foreground-active`).withDefault(e=>Hc.getValueFor(e).evaluate(e).active),Kc=L(`accent-foreground-focus`).withDefault(e=>Hc.getValueFor(e).evaluate(e).focus),qc=L({name:`neutral-fill-recipe`,cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>ine(fc.getValueFor(e),t||Cc.getValueFor(e),Us.getValueFor(e),Ws.getValueFor(e),Gs.getValueFor(e),Ks.getValueFor(e))}),Jc=L(`neutral-fill-rest`).withDefault(e=>qc.getValueFor(e).evaluate(e).rest),Yc=L(`neutral-fill-hover`).withDefault(e=>qc.getValueFor(e).evaluate(e).hover),Xc=L(`neutral-fill-active`).withDefault(e=>qc.getValueFor(e).evaluate(e).active),Zc=L(`neutral-fill-focus`).withDefault(e=>qc.getValueFor(e).evaluate(e).focus),Qc=L({name:`neutral-fill-input-recipe`,cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>ane(fc.getValueFor(e),t||Cc.getValueFor(e),qs.getValueFor(e),Js.getValueFor(e),Ys.getValueFor(e),Xs.getValueFor(e))}),$c=L(`neutral-fill-input-rest`).withDefault(e=>Qc.getValueFor(e).evaluate(e).rest),el=L(`neutral-fill-input-hover`).withDefault(e=>Qc.getValueFor(e).evaluate(e).hover),tl=L(`neutral-fill-input-active`).withDefault(e=>Qc.getValueFor(e).evaluate(e).active),nl=L(`neutral-fill-input-focus`).withDefault(e=>Qc.getValueFor(e).evaluate(e).focus),rl=L({name:`neutral-fill-stealth-recipe`,cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>sne(fc.getValueFor(e),t||Cc.getValueFor(e),Zs.getValueFor(e),Qs.getValueFor(e),$s.getValueFor(e),ec.getValueFor(e),Us.getValueFor(e),Ws.getValueFor(e),Gs.getValueFor(e),Ks.getValueFor(e))}),il=L(`neutral-fill-stealth-rest`).withDefault(e=>rl.getValueFor(e).evaluate(e).rest),al=L(`neutral-fill-stealth-hover`).withDefault(e=>rl.getValueFor(e).evaluate(e).hover),ol=L(`neutral-fill-stealth-active`).withDefault(e=>rl.getValueFor(e).evaluate(e).active),sl=L(`neutral-fill-stealth-focus`).withDefault(e=>rl.getValueFor(e).evaluate(e).focus),cl=L({name:`neutral-fill-strong-recipe`,cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>cne(fc.getValueFor(e),t||Cc.getValueFor(e),tc.getValueFor(e),nc.getValueFor(e),rc.getValueFor(e),ic.getValueFor(e))}),ll=L(`neutral-fill-strong-rest`).withDefault(e=>cl.getValueFor(e).evaluate(e).rest),ul=L(`neutral-fill-strong-hover`).withDefault(e=>cl.getValueFor(e).evaluate(e).hover),dl=L(`neutral-fill-strong-active`).withDefault(e=>cl.getValueFor(e).evaluate(e).active),fl=L(`neutral-fill-strong-focus`).withDefault(e=>cl.getValueFor(e).evaluate(e).focus),pl=R(`neutral-fill-layer-recipe`).withDefault({evaluate:(e,t)=>one(fc.getValueFor(e),t||Cc.getValueFor(e),ac.getValueFor(e))}),ml=L(`neutral-fill-layer-rest`).withDefault(e=>pl.getValueFor(e).evaluate(e)),hl=R(`focus-stroke-outer-recipe`).withDefault({evaluate:e=>lne(fc.getValueFor(e),Cc.getValueFor(e))}),V=L(`focus-stroke-outer`).withDefault(e=>hl.getValueFor(e).evaluate(e)),Ene=R(`focus-stroke-inner-recipe`).withDefault({evaluate:e=>une(mc.getValueFor(e),Cc.getValueFor(e),V.getValueFor(e))}),gl=L(`focus-stroke-inner`).withDefault(e=>Ene.getValueFor(e).evaluate(e)),Dne=R(`neutral-foreground-hint-recipe`).withDefault({evaluate:e=>fne(fc.getValueFor(e),Cc.getValueFor(e))}),_l=L(`neutral-foreground-hint`).withDefault(e=>Dne.getValueFor(e).evaluate(e)),One=R(`neutral-foreground-recipe`).withDefault({evaluate:e=>dne(fc.getValueFor(e),Cc.getValueFor(e))}),H=L(`neutral-foreground-rest`).withDefault(e=>One.getValueFor(e).evaluate(e)),vl=L({name:`neutral-stroke-recipe`,cssCustomPropertyName:null}).withDefault({evaluate:e=>yne(fc.getValueFor(e),Cc.getValueFor(e),oc.getValueFor(e),sc.getValueFor(e),cc.getValueFor(e),lc.getValueFor(e))}),yl=L(`neutral-stroke-rest`).withDefault(e=>vl.getValueFor(e).evaluate(e).rest),bl=L(`neutral-stroke-hover`).withDefault(e=>vl.getValueFor(e).evaluate(e).hover),xl=L(`neutral-stroke-active`).withDefault(e=>vl.getValueFor(e).evaluate(e).active),Sl=L(`neutral-stroke-focus`).withDefault(e=>vl.getValueFor(e).evaluate(e).focus),kne=R(`neutral-stroke-divider-recipe`).withDefault({evaluate:(e,t)=>bne(fc.getValueFor(e),t||Cc.getValueFor(e),uc.getValueFor(e))}),Cl=L(`neutral-stroke-divider-rest`).withDefault(e=>kne.getValueFor(e).evaluate(e)),wl=ni.create({name:`height-number`,cssCustomPropertyName:null}).withDefault(e=>(us.getValueFor(e)+ps.getValueFor(e))*z.getValueFor(e)),Tl=(e,t)=>O` ${ro(`flex`)} :host{box-sizing: border-box;flex-direction: column;font-family: ${ls};font-size: ${ys};line-height: ${bs};color: ${H};border-top: calc(${B} * 1px) solid ${Cl}}`,U=rt`(${us} + ${ps}) * ${z}`,El=(e,t)=>O` ${ro(`flex`)} :host{box-sizing: border-box;font-family: ${ls};flex-direction: column;font-size: ${ys};line-height: ${bs};border-bottom: calc(${B} * 1px) solid ${Cl}}.region{display: none;padding: calc((6 + (${z} * 2 * ${ps})) * 1px)}.heading{display: grid;position: relative;grid-template-columns: auto 1fr auto calc(${U} * 1px)}.button{appearance: none;border: none;background: none;grid-column: 2;grid-row: 1;outline: none;padding: 0 calc((6 + (${z} * 2 * ${ps})) * 1px);text-align: left;height: calc(${U} * 1px);color: ${H};cursor: pointer;font-family: inherit}.button:hover{color: ${H}}.button:active{color: ${H}}.button::before{content: "";position: absolute;top: 0;left: 0;right: 0;bottom: 0;cursor: pointer}.button:${I}::before{outline: none;border: calc(${gs} * 1px) solid ${V};border-radius: calc(${fs} * 1px)}:host([expanded]) .region{display: block}.icon{display: flex;align-items: center;justify-content: center;grid-column: 4;pointer-events: none;position: relative}slot[name="expanded-icon"], slot[name="collapsed-icon"]{fill: ${Uc}}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(${z} * 1px);justify-content: center;grid-column: 1;position: relative}.end{display: flex;align-items: center;justify-content: center;grid-column: 3;position: relative}`.withBehaviors(eo(O` .button:${I}::before{border-color: ${F.Highlight}}:host slot[name="collapsed-icon"], :host([expanded]) slot[name="expanded-icon"]{fill: ${F.ButtonText}}`));cn.compose({baseName:`accordion-item`,template:Tt,styles:El,collapsedIcon:`
22
22
  <svg
23
23
  width="20"
24
24
  height="20"
@@ -59,7 +59,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
59
59
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
60
60
  PERFORMANCE OF THIS SOFTWARE.
61
61
  ***************************************************************************** */
62
- function W(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}let Dl=`box-shadow: 0 0 calc((var(--elevation) * 0.225px) + 2px) rgba(0, 0, 0, calc(.11 * (2 - var(--background-luminance, 1)))), 0 calc(var(--elevation) * 0.4px) calc((var(--elevation) * 0.9px)) rgba(0, 0, 0, calc(.13 * (2 - var(--background-luminance, 1))));`,Ol=O` ${ro(`inline-flex`)} :host{font-family: ${ls};outline: none;font-size: ${gs};line-height: ${_s};height: calc(${U} * 1px);min-width: calc(${U} * 1px);background-color: ${qc};color: ${H};border-radius: calc(${z} * 1px);fill: currentcolor;cursor: pointer}.control{background: transparent;height: inherit;flex-grow: 1;box-sizing: border-box;display: inline-flex;justify-content: center;align-items: baseline;padding: 0 calc((10 + (${B} * 2 * ${fs})) * 1px);white-space: nowrap;outline: none;text-decoration: none;border: calc(${V} * 1px) solid transparent;color: inherit;border-radius: inherit;fill: inherit;cursor: inherit;font-weight: inherit;font-family: inherit;font-size: inherit;line-height: inherit}:host(:hover){background-color: ${Jc}}:host(:active){background-color: ${Yc}}.control:${I}{border-color: ${hl};box-shadow: 0 0 0 calc((${hs} - ${V}) * 1px) ${hl} inset}.control::-moz-focus-inner{border: 0}.start, .content, .end{align-self: center}.start, .end{display: flex}.control.icon-only{padding: 0;line-height: 0}::slotted(svg){${``} width: 16px;height: 16px;pointer-events: none}.start{margin-inline-end: 11px}.end{margin-inline-start: 11px}`.withBehaviors(eo(O` :host .control{background-color: ${F.ButtonFace};border-color: ${F.ButtonText};color: ${F.ButtonText};fill: currentColor}:host(:hover) .control{forced-color-adjust: none;background-color: ${F.Highlight};color: ${F.HighlightText}}.control:${I}{forced-color-adjust: none;background-color: ${F.Highlight};border-color: ${F.ButtonText};box-shadow: 0 0 0 calc((${hs} - ${V}) * 1px) ${F.ButtonText} inset;color: ${F.HighlightText}}.control:hover, :host([appearance="outline"]) .control:hover{border-color: ${F.ButtonText}}:host([href]) .control{border-color: ${F.LinkText};color: ${F.LinkText}}:host([href]) .control:hover, :host([href]) .control:${I}{forced-color-adjust: none;background: ${F.ButtonFace};border-color: ${F.LinkText};box-shadow: 0 0 0 1px ${F.LinkText} inset;color: ${F.LinkText};fill: currentColor}`)),kl=O` :host([appearance="accent"]){background: ${Tc};color: ${jc}}:host([appearance="accent"]:hover){background: ${Ec};color: ${Mc}}:host([appearance="accent"]:active) .control:active{background: ${Dc};color: ${Nc}}:host([appearance="accent"]) .control:${I}{box-shadow: 0 0 0 calc((${hs} - ${V}) * 1px) ${hl} inset, 0 0 0 calc((${hs} + ${V}) * 1px) ${gl} inset}`.withBehaviors(eo(O` :host([appearance="accent"]) .control{forced-color-adjust: none;background: ${F.Highlight};color: ${F.HighlightText}}:host([appearance="accent"]) .control:hover, :host([appearance="accent"]:active) .control:active{background: ${F.HighlightText};border-color: ${F.Highlight};color: ${F.Highlight}}:host([appearance="accent"]) .control:${I}{border-color: ${F.Highlight};box-shadow: 0 0 0 calc(${hs} * 1px) ${F.HighlightText} inset}:host([appearance="accent"][href]) .control{background: ${F.LinkText};color: ${F.HighlightText}}:host([appearance="accent"][href]) .control:hover{background: ${F.ButtonFace};border-color: ${F.LinkText};box-shadow: none;color: ${F.LinkText};fill: currentColor}:host([appearance="accent"][href]) .control:${I}{border-color: ${F.LinkText};box-shadow: 0 0 0 calc(${hs} * 1px) ${F.HighlightText} inset}`)),Ane=O` :host([appearance="hypertext"]){font-size: inherit;line-height: inherit;height: auto;min-width: 0;background: transparent}:host([appearance="hypertext"]) .control{display: inline;padding: 0;border: none;box-shadow: none;border-radius: 0;line-height: 1}:host a.control:not(:link){background-color: transparent;cursor: default}:host([appearance="hypertext"]) .control:link, :host([appearance="hypertext"]) .control:visited{background: transparent;color: ${Hc};border-bottom: calc(${V} * 1px) solid ${Hc}}:host([appearance="hypertext"]:hover), :host([appearance="hypertext"]) .control:hover{background: transparent;border-bottom-color: ${Uc}}:host([appearance="hypertext"]:active), :host([appearance="hypertext"]) .control:active{background: transparent;border-bottom-color: ${Wc}}:host([appearance="hypertext"]) .control:${I}{border-bottom: calc(${hs} * 1px) solid ${hl};margin-bottom: calc(calc(${V} - ${hs}) * 1px)}`.withBehaviors(eo(O` :host([appearance="hypertext"]:hover){background-color: ${F.ButtonFace};color: ${F.ButtonText}}:host([appearance="hypertext"][href]) .control:hover, :host([appearance="hypertext"][href]) .control:active, :host([appearance="hypertext"][href]) .control:${I}{color: ${F.LinkText};border-bottom-color: ${F.LinkText};box-shadow: none}`)),Al=O` :host([appearance="lightweight"]){background: transparent;color: ${Hc}}:host([appearance="lightweight"]) .control{padding: 0;height: initial;border: none;box-shadow: none;border-radius: 0}:host([appearance="lightweight"]:hover){background: transparent;color: ${Uc}}:host([appearance="lightweight"]:active){background: transparent;color: ${Wc}}:host([appearance="lightweight"]) .content{position: relative}:host([appearance="lightweight"]) .content::before{content: "";display: block;height: calc(${V} * 1px);position: absolute;top: calc(1em + 4px);width: 100%}:host([appearance="lightweight"]:hover) .content::before{background: ${Uc}}:host([appearance="lightweight"]:active) .content::before{background: ${Wc}}:host([appearance="lightweight"]) .control:${I} .content::before{background: ${H};height: calc(${hs} * 1px)}`.withBehaviors(eo(O` :host([appearance="lightweight"]) .control:hover, :host([appearance="lightweight"]) .control:${I}{forced-color-adjust: none;background: ${F.ButtonFace};color: ${F.Highlight}}:host([appearance="lightweight"]) .control:hover .content::before, :host([appearance="lightweight"]) .control:${I} .content::before{background: ${F.Highlight}}:host([appearance="lightweight"][href]) .control:hover, :host([appearance="lightweight"][href]) .control:${I}{background: ${F.ButtonFace};box-shadow: none;color: ${F.LinkText}}:host([appearance="lightweight"][href]) .control:hover .content::before, :host([appearance="lightweight"][href]) .control:${I} .content::before{background: ${F.LinkText}}`)),jl=O` :host([appearance="outline"]){background: transparent;border-color: ${Tc}}:host([appearance="outline"]:hover){border-color: ${Ec}}:host([appearance="outline"]:active){border-color: ${Dc}}:host([appearance="outline"]) .control{border-color: inherit}:host([appearance="outline"]) .control:${I}{box-shadow: 0 0 0 calc((${hs} - ${V}) * 1px) ${hl} inset;border-color: ${hl}}`.withBehaviors(eo(O` :host([appearance="outline"]) .control{border-color: ${F.ButtonText}}:host([appearance="outline"]) .control:${I}{forced-color-adjust: none;background-color: ${F.Highlight};border-color: ${F.ButtonText};box-shadow: 0 0 0 calc((${hs} - ${V}) * 1px) ${F.ButtonText} inset;color: ${F.HighlightText};fill: currentColor}:host([appearance="outline"][href]) .control{background: ${F.ButtonFace};border-color: ${F.LinkText};color: ${F.LinkText};fill: currentColor}:host([appearance="outline"][href]) .control:hover, :host([appearance="outline"][href]) .control:${I}{forced-color-adjust: none;border-color: ${F.LinkText};box-shadow: 0 0 0 1px ${F.LinkText} inset}`)),Ml=O` :host([appearance="stealth"]){background: ${rl}}:host([appearance="stealth"]:hover){background: ${il}}:host([appearance="stealth"]:active){background: ${al}}`.withBehaviors(eo(O` :host([appearance="stealth"]), :host([appearance="stealth"]) .control{forced-color-adjust: none;background: ${F.ButtonFace};border-color: transparent;color: ${F.ButtonText};fill: currentColor}:host([appearance="stealth"]:hover) .control{background: ${F.Highlight};border-color: ${F.Highlight};color: ${F.HighlightText};fill: currentColor}:host([appearance="stealth"]:${I}) .control{background: ${F.Highlight};box-shadow: 0 0 0 1px ${F.Highlight};color: ${F.HighlightText};fill: currentColor}:host([appearance="stealth"][href]) .control{color: ${F.LinkText}}:host([appearance="stealth"][href]:hover) .control, :host([appearance="stealth"][href]:${I}) .control{background: ${F.LinkText};border-color: ${F.LinkText};color: ${F.HighlightText};fill: currentColor}:host([appearance="stealth"][href]:${I}) .control{forced-color-adjust: none;box-shadow: 0 0 0 1px ${F.LinkText}}`));var Nl=class{constructor(e,t){this.cache=/* @__PURE__ */ new WeakMap,this.ltr=e,this.rtl=t}bind(e){this.attach(e)}unbind(e){let t=this.cache.get(e);t&&ps.unsubscribe(t)}attach(e){let t=this.cache.get(e)||new jne(this.ltr,this.rtl,e),n=ps.getValueFor(e);ps.subscribe(t),t.attach(n),this.cache.set(e,t)}},jne=class{constructor(e,t,n){this.ltr=e,this.rtl=t,this.source=n,this.attached=null}handleChange({target:e,token:t}){this.attach(t.getValueFor(e))}attach(e){this.attached!==this[e]&&(this.attached!==null&&this.source.$fastController.removeStyles(this.attached),this.attached=this[e],this.attached!==null&&this.source.$fastController.addStyles(this.attached))}};function Pl(e,t){return new to(`appearance`,e,t)}let Fl=(e,t)=>O` ${Ol} `.withBehaviors(Pl(`accent`,kl),Pl(`hypertext`,Ane),Pl(`lightweight`,Al),Pl(`outline`,jl),Pl(`stealth`,Ml));var Il=class extends Wn{appearanceChanged(e,t){this.$fastController.isConnected&&(this.classList.remove(e),this.classList.add(t))}connectedCallback(){super.connectedCallback(),this.appearance||(this.appearance=`neutral`)}defaultSlottedContentChanged(e,t){let n=this.defaultSlottedContent.filter(e=>e.nodeType===Node.ELEMENT_NODE);n.length===1&&n[0]instanceof SVGElement?this.control.classList.add(`icon-only`):this.control.classList.remove(`icon-only`)}};W([D],Il.prototype,`appearance`,void 0),Il.compose({baseName:`anchor`,baseClass:Wn,template:Hn,styles:Fl,shadowOptions:{delegatesFocus:!0}});let Ll=(e,t)=>O` :host{contain: layout;display: block}`;Jn.compose({baseName:`anchored-region`,template:Kn,styles:Ll});let Mne=(e,t)=>O` ::slotted(${e.tagFor(rr)}){left: 0}`,Nne=(e,t)=>O` ::slotted(${e.tagFor(rr)}){right: 0}`,Rl=(e,t)=>O` ${ro(`flex`)} :host{position: relative;height: var(--avatar-size, var(--avatar-size-default));max-width: var(--avatar-size, var(--avatar-size-default));--avatar-size-default: calc( ( (${us} + ${fs}) * ${B} + ((${B} * 8) - 40) ) * 1px );--avatar-text-size: ${gs};--avatar-text-ratio: ${B}}.link{text-decoration: none;color: ${H};display: flex;flex-direction: row;justify-content: center;align-items: center;min-width: 100%}.square{border-radius: calc(${z} * 1px);min-width: 100%;overflow: hidden}.circle{border-radius: 100%;min-width: 100%;overflow: hidden}.backplate{position: relative;display: flex}.media, ::slotted(img){max-width: 100%;position: absolute;display: block}.content{font-size: calc( (var(--avatar-text-size) + var(--avatar-size, var(--avatar-size-default))) / var(--avatar-text-ratio) );line-height: var(--avatar-size, var(--avatar-size-default));display: block;min-height: var(--avatar-size, var(--avatar-size-default))}::slotted(${e.tagFor(rr)}){position: absolute;display: block}`.withBehaviors(new Nl(Nne(e,t),Mne(e,t)));var zl=class extends tr{};W([D({attribute:`src`})],zl.prototype,`imgSrc`,void 0),W([D],zl.prototype,`alt`,void 0);let Pne=T` ${A(e=>e.imgSrc,T`<img src="${e=>e.imgSrc}" alt="${e=>e.alt}" slot="media" class="media" part="media" />`)} `;zl.compose({baseName:`avatar`,baseClass:tr,template:er,styles:Rl,media:Pne,shadowOptions:{delegatesFocus:!0}});let Bl=(e,t)=>O` ${ro(`inline-block`)} :host{box-sizing: border-box;font-family: ${ls};font-size: ${vs};line-height: ${ys}}.control{border-radius: calc(${z} * 1px);padding: calc(((${B} * 0.5) - ${V}) * 1px) calc((${B} - ${V}) * 1px);color: ${Hc};font-weight: 600;border: calc(${V} * 1px) solid transparent}.control[style]{font-weight: 400}:host([circular]) .control{border-radius: 100px;padding: 0 calc(${B} * 1px);height: calc((${U} - (${B} * 3)) * 1px);min-width: calc((${U} - (${B} * 3)) * 1px);display: flex;align-items: center;justify-content: center;box-sizing: border-box}`;rr.compose({baseName:`badge`,template:nr,styles:Bl});let Vl=(e,t)=>O` ${ro(`inline-flex`)} :host{background: transparent;box-sizing: border-box;font-family: ${ls};font-size: ${gs};fill: currentColor;line-height: ${_s};min-width: calc(${U} * 1px);outline: none;color: ${H}}.listitem{display: flex;align-items: center;width: max-content}.separator{margin: 0 6px;display: flex}.control{align-items: center;box-sizing: border-box;color: ${Hc};cursor: pointer;display: flex;fill: inherit;outline: none;text-decoration: none;white-space: nowrap}.control:hover{color: ${Uc}}.control:active{color: ${Wc}}.control .content{position: relative}.control .content::before{content: "";display: block;height: calc(${V} * 1px);left: 0;position: absolute;right: 0;top: calc(1em + 4px);width: 100%}.control:hover .content::before{background: ${Uc}}.control:active .content::before{background: ${Wc}}.control:${I} .content::before{background: ${H};height: calc(${hs} * 1px)}.control:not([href]){color: ${H};cursor: default}.control:not([href]) .content::before{background: none}.start, .end{display: flex}::slotted(svg){/* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */ width: 16px;height: 16px}.start{margin-inline-end: 6px}.end{margin-inline-start: 6px}`.withBehaviors(eo(O` .control:hover .content::before, .control:${I} .content::before{background: ${F.LinkText}}.start, .end{fill: ${F.ButtonText}}`));ar.compose({baseName:`breadcrumb-item`,template:ir,styles:Vl,separator:`/`,shadowOptions:{delegatesFocus:!0}});let Hl=(e,t)=>O` ${ro(`inline-block`)} :host{box-sizing: border-box;font-family: ${ls};font-size: ${gs};line-height: ${_s}}.list{display: flex;flex-wrap: wrap}`;sr.compose({baseName:`breadcrumb`,template:or,styles:Hl});let Ul=(e,t)=>O` :host([disabled]), :host([disabled]:hover), :host([disabled]:active){opacity: ${ms};background-color: ${qc};cursor: ${no}}${Ol} `.withBehaviors(eo(O` :host([disabled]), :host([disabled]) .control, :host([disabled]:hover), :host([disabled]:active){forced-color-adjust: none;background-color: ${F.ButtonFace};border-color: ${F.GrayText};color: ${F.GrayText};cursor: ${no};opacity: 1}`),Pl(`accent`,O` :host([appearance="accent"][disabled]), :host([appearance="accent"][disabled]:hover), :host([appearance="accent"][disabled]:active){background: ${Tc}}${kl} `.withBehaviors(eo(O` :host([appearance="accent"][disabled]) .control, :host([appearance="accent"][disabled]) .control:hover{background: ${F.ButtonFace};border-color: ${F.GrayText};color: ${F.GrayText}}`))),Pl(`lightweight`,O` :host([appearance="lightweight"][disabled]:hover), :host([appearance="lightweight"][disabled]:active){background-color: transparent;color: ${Hc}}:host([appearance="lightweight"][disabled]) .content::before, :host([appearance="lightweight"][disabled]:hover) .content::before, :host([appearance="lightweight"][disabled]:active) .content::before{background: transparent}${Al} `.withBehaviors(eo(O` :host([appearance="lightweight"].disabled) .control{forced-color-adjust: none;color: ${F.GrayText}}:host([appearance="lightweight"].disabled) .control:hover .content::before{background: none}`))),Pl(`outline`,O` :host([appearance="outline"][disabled]), :host([appearance="outline"][disabled]:hover), :host([appearance="outline"][disabled]:active){background: transparent;border-color: ${Tc}}${jl} `.withBehaviors(eo(O` :host([appearance="outline"][disabled]) .control{border-color: ${F.GrayText}}`))),Pl(`stealth`,O` :host([appearance="stealth"][disabled]), :host([appearance="stealth"][disabled]:hover), :host([appearance="stealth"][disabled]:active){background: ${rl}}${Ml} `.withBehaviors(eo(O` :host([appearance="stealth"][disabled]){background: ${F.ButtonFace}}:host([appearance="stealth"][disabled]) .control{background: ${F.ButtonFace};border-color: transparent;color: ${F.GrayText}}`))));var Wl=class extends _r{constructor(){super(...arguments),this.appearance=`neutral`}defaultSlottedContentChanged(e,t){let n=this.defaultSlottedContent.filter(e=>e.nodeType===Node.ELEMENT_NODE);n.length===1&&n[0]instanceof SVGElement?this.control.classList.add(`icon-only`):this.control.classList.remove(`icon-only`)}};W([D],Wl.prototype,`appearance`,void 0),Wl.compose({baseName:`button`,baseClass:_r,template:cr,styles:Ul,shadowOptions:{delegatesFocus:!0}});let Gl=O` ${ro(`block`)} :host{--cell-border: none;--cell-height: calc(${U} * 1px);--selected-day-outline: 1px solid ${Wc};--selected-day-color: ${Wc};--selected-day-background: ${qc};--cell-padding: calc(${B} * 1px);--disabled-day-opacity: ${ms};--inactive-day-opacity: ${ms};font-family: ${ls};font-size: ${gs};line-height: ${_s};color: ${H}}.title{font-size: ${Es};line-height: ${Ds};padding: var(--cell-padding);text-align: center}.week-days, .week{display: grid;grid-template-columns: repeat(7, 1fr);border-left: var(--cell-border, none);border-bottom: none;padding: 0}.interact .week{grid-gap: calc(${B} * 1px);margin-top: calc(${B} * 1px)}.day, .week-day{border-bottom: var(--cell-border);border-right: var(--cell-border);padding: var(--cell-padding)}.week-day{text-align: center;border-radius: 0;border-top: var(--cell-border)}.day{box-sizing: border-box;vertical-align: top;outline-offset: -1px;line-height: var(--cell-line-height);white-space: normal}.interact .day{background: ${qc};cursor: pointer}.day.inactive{background: var(--inactive-day-background);color: var(--inactive-day-color);opacity: var(--inactive-day-opacity);outline: var(--inactive-day-outline)}.day.disabled{background: var(--disabled-day-background);color: var(--disabled-day-color);cursor: ${no};opacity: var(--disabled-day-opacity);outline: var(--disabled-day-outline)}.day.selected{color: var(--selected-day-color);background: var(--selected-day-background);outline: var(--selected-day-outline)}.date{padding: var(--cell-padding);text-align: center}.interact .today, .today{color: ${Nc};background: ${Wc}}.today.inactive .date{background: transparent;color: inherit;width: auto}`.withBehaviors(eo(O` :host{--selected-day-outline: 1px solid ${F.Highlight}}.day, .week-day{background: ${F.Canvas};color: ${F.CanvasText};fill: currentcolor}.day.selected{color: ${F.Highlight}}.today .date{background: ${F.Highlight};color: ${F.HighlightText}}`));br.compose({baseName:`calendar`,template:Ar,styles:Gl,title:Lee});let Kl=(e,t)=>O` ${ro(`block`)} :host{--elevation: 4;display: block;contain: content;height: var(--card-height, 100%);width: var(--card-width, 100%);box-sizing: border-box;background: ${Sc};border-radius: calc(${z} * 1px);${Dl}}`.withBehaviors(eo(O` :host{forced-color-adjust: none;background: ${F.Canvas};box-shadow: 0 0 0 1px ${F.CanvasText}}`));var ql=class extends Mr{connectedCallback(){super.connectedCallback();let e=Wr(this);e&&Sc.setValueFor(this,t=>fl.getValueFor(t).evaluate(t,Sc.getValueFor(e)))}};ql.compose({baseName:`card`,baseClass:Mr,template:jr,styles:Kl});let Jl=(e,t)=>O` ${ro(`inline-flex`)} :host{align-items: center;outline: none;margin: calc(${B} * 1px) 0;/* Chromium likes to select label text or the default slot when the checkbox is clicked. Maybe there is a better solution here? */ user-select: none}.control{position: relative;width: calc((${U} / 2 + ${B}) * 1px);height: calc((${U} / 2 + ${B}) * 1px);box-sizing: border-box;border-radius: calc(${z} * 1px);border: calc(${V} * 1px) solid ${yl};background: ${Qc};outline: none;cursor: pointer}.label{font-family: ${ls};color: ${H};padding-inline-start: calc(${B} * 2px + 2px);margin-inline-end: calc(${B} * 2px + 2px);cursor: pointer;font-size: ${gs};line-height: ${_s}}.label__hidden{display: none;visibility: hidden}.checked-indicator{width: 100%;height: 100%;display: block;fill: ${jc};opacity: 0;pointer-events: none}.indeterminate-indicator{border-radius: calc(${z} * 1px);background: ${jc};position: absolute;top: 50%;left: 50%;width: 50%;height: 50%;transform: translate(-50%, -50%);opacity: 0}:host(:not([disabled])) .control:hover{background: ${$c};border-color: ${bl}}:host(:not([disabled])) .control:active{background: ${el};border-color: ${xl}}:host(:${I}) .control{box-shadow: 0 0 0 2px ${Sc}, 0 0 0 4px ${hl}}:host([aria-checked="true"]) .control{background: ${Tc};border: calc(${V} * 1px) solid ${Tc}}:host([aria-checked="true"]:not([disabled])) .control:hover{background: ${Ec};border: calc(${V} * 1px) solid ${Ec}}:host([aria-checked="true"]:not([disabled])) .control:hover .checked-indicator{fill: ${Mc}}:host([aria-checked="true"]:not([disabled])) .control:hover .indeterminate-indicator{background: ${Mc}}:host([aria-checked="true"]:not([disabled])) .control:active{background: ${Dc};border: calc(${V} * 1px) solid ${Dc}}:host([aria-checked="true"]:not([disabled])) .control:active .checked-indicator{fill: ${Nc}}:host([aria-checked="true"]:not([disabled])) .control:active .indeterminate-indicator{background: ${Nc}}:host([aria-checked="true"]:${I}:not([disabled])) .control{box-shadow: 0 0 0 2px ${Sc}, 0 0 0 4px ${hl}}:host([disabled]) .label, :host([readonly]) .label, :host([readonly]) .control, :host([disabled]) .control{cursor: ${no}}:host([aria-checked="true"]:not(.indeterminate)) .checked-indicator, :host(.indeterminate) .indeterminate-indicator{opacity: 1}:host([disabled]){opacity: ${ms}}`.withBehaviors(eo(O` .control{forced-color-adjust: none;border-color: ${F.FieldText};background: ${F.Field}}.checked-indicator{fill: ${F.FieldText}}.indeterminate-indicator{background: ${F.FieldText}}:host(:not([disabled])) .control:hover, .control:active{border-color: ${F.Highlight};background: ${F.Field}}:host(:${I}) .control{box-shadow: 0 0 0 2px ${F.Field}, 0 0 0 4px ${F.FieldText}}:host([aria-checked="true"]:${I}:not([disabled])) .control{box-shadow: 0 0 0 2px ${F.Field}, 0 0 0 4px ${F.FieldText}}:host([aria-checked="true"]) .control{background: ${F.Highlight};border-color: ${F.Highlight}}:host([aria-checked="true"]:not([disabled])) .control:hover, .control:active{border-color: ${F.Highlight};background: ${F.HighlightText}}:host([aria-checked="true"]) .checked-indicator{fill: ${F.HighlightText}}:host([aria-checked="true"]:not([disabled])) .control:hover .checked-indicator{fill: ${F.Highlight}}:host([aria-checked="true"]) .indeterminate-indicator{background: ${F.HighlightText}}:host([aria-checked="true"]) .control:hover .indeterminate-indicator{background: ${F.Highlight}}:host([disabled]){opacity: 1}:host([disabled]) .control{forced-color-adjust: none;border-color: ${F.GrayText};background: ${F.Field}}:host([disabled]) .indeterminate-indicator, :host([aria-checked="true"][disabled]) .control:hover .indeterminate-indicator{forced-color-adjust: none;background: ${F.GrayText}}:host([disabled]) .checked-indicator, :host([aria-checked="true"][disabled]) .control:hover .checked-indicator{forced-color-adjust: none;fill: ${F.GrayText}}`));Pr.compose({baseName:`checkbox`,template:Nr,styles:Jl,checkedIndicator:`
62
+ function W(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}let Dl=`box-shadow: 0 0 calc((var(--elevation) * 0.225px) + 2px) rgba(0, 0, 0, calc(.11 * (2 - var(--background-luminance, 1)))), 0 calc(var(--elevation) * 0.4px) calc((var(--elevation) * 0.9px)) rgba(0, 0, 0, calc(.13 * (2 - var(--background-luminance, 1))));`,Ol=O` ${ro(`inline-flex`)} :host{font-family: ${ls};outline: none;font-size: ${_s};line-height: ${vs};height: calc(${U} * 1px);min-width: calc(${U} * 1px);background-color: ${Jc};color: ${H};border-radius: calc(${fs} * 1px);fill: currentcolor;cursor: pointer}.control{background: transparent;height: inherit;flex-grow: 1;box-sizing: border-box;display: inline-flex;justify-content: center;align-items: baseline;padding: 0 calc((10 + (${z} * 2 * ${ps})) * 1px);white-space: nowrap;outline: none;text-decoration: none;border: calc(${B} * 1px) solid transparent;color: inherit;border-radius: inherit;fill: inherit;cursor: inherit;font-weight: inherit;font-family: inherit;font-size: inherit;line-height: inherit}:host(:hover){background-color: ${Yc}}:host(:active){background-color: ${Xc}}.control:${I}{border-color: ${V};box-shadow: 0 0 0 calc((${gs} - ${B}) * 1px) ${V} inset}.control::-moz-focus-inner{border: 0}.start, .content, .end{align-self: center}.start, .end{display: flex}.control.icon-only{padding: 0;line-height: 0}::slotted(svg){${``} width: 16px;height: 16px;pointer-events: none}.start{margin-inline-end: 11px}.end{margin-inline-start: 11px}`.withBehaviors(eo(O` :host .control{background-color: ${F.ButtonFace};border-color: ${F.ButtonText};color: ${F.ButtonText};fill: currentColor}:host(:hover) .control{forced-color-adjust: none;background-color: ${F.Highlight};color: ${F.HighlightText}}.control:${I}{forced-color-adjust: none;background-color: ${F.Highlight};border-color: ${F.ButtonText};box-shadow: 0 0 0 calc((${gs} - ${B}) * 1px) ${F.ButtonText} inset;color: ${F.HighlightText}}.control:hover, :host([appearance="outline"]) .control:hover{border-color: ${F.ButtonText}}:host([href]) .control{border-color: ${F.LinkText};color: ${F.LinkText}}:host([href]) .control:hover, :host([href]) .control:${I}{forced-color-adjust: none;background: ${F.ButtonFace};border-color: ${F.LinkText};box-shadow: 0 0 0 1px ${F.LinkText} inset;color: ${F.LinkText};fill: currentColor}`)),kl=O` :host([appearance="accent"]){background: ${Ec};color: ${Mc}}:host([appearance="accent"]:hover){background: ${Dc};color: ${Nc}}:host([appearance="accent"]:active) .control:active{background: ${Oc};color: ${Pc}}:host([appearance="accent"]) .control:${I}{box-shadow: 0 0 0 calc((${gs} - ${B}) * 1px) ${V} inset, 0 0 0 calc((${gs} + ${B}) * 1px) ${gl} inset}`.withBehaviors(eo(O` :host([appearance="accent"]) .control{forced-color-adjust: none;background: ${F.Highlight};color: ${F.HighlightText}}:host([appearance="accent"]) .control:hover, :host([appearance="accent"]:active) .control:active{background: ${F.HighlightText};border-color: ${F.Highlight};color: ${F.Highlight}}:host([appearance="accent"]) .control:${I}{border-color: ${F.Highlight};box-shadow: 0 0 0 calc(${gs} * 1px) ${F.HighlightText} inset}:host([appearance="accent"][href]) .control{background: ${F.LinkText};color: ${F.HighlightText}}:host([appearance="accent"][href]) .control:hover{background: ${F.ButtonFace};border-color: ${F.LinkText};box-shadow: none;color: ${F.LinkText};fill: currentColor}:host([appearance="accent"][href]) .control:${I}{border-color: ${F.LinkText};box-shadow: 0 0 0 calc(${gs} * 1px) ${F.HighlightText} inset}`)),Ane=O` :host([appearance="hypertext"]){font-size: inherit;line-height: inherit;height: auto;min-width: 0;background: transparent}:host([appearance="hypertext"]) .control{display: inline;padding: 0;border: none;box-shadow: none;border-radius: 0;line-height: 1}:host a.control:not(:link){background-color: transparent;cursor: default}:host([appearance="hypertext"]) .control:link, :host([appearance="hypertext"]) .control:visited{background: transparent;color: ${Uc};border-bottom: calc(${B} * 1px) solid ${Uc}}:host([appearance="hypertext"]:hover), :host([appearance="hypertext"]) .control:hover{background: transparent;border-bottom-color: ${Wc}}:host([appearance="hypertext"]:active), :host([appearance="hypertext"]) .control:active{background: transparent;border-bottom-color: ${Gc}}:host([appearance="hypertext"]) .control:${I}{border-bottom: calc(${gs} * 1px) solid ${V};margin-bottom: calc(calc(${B} - ${gs}) * 1px)}`.withBehaviors(eo(O` :host([appearance="hypertext"]:hover){background-color: ${F.ButtonFace};color: ${F.ButtonText}}:host([appearance="hypertext"][href]) .control:hover, :host([appearance="hypertext"][href]) .control:active, :host([appearance="hypertext"][href]) .control:${I}{color: ${F.LinkText};border-bottom-color: ${F.LinkText};box-shadow: none}`)),Al=O` :host([appearance="lightweight"]){background: transparent;color: ${Uc}}:host([appearance="lightweight"]) .control{padding: 0;height: initial;border: none;box-shadow: none;border-radius: 0}:host([appearance="lightweight"]:hover){background: transparent;color: ${Wc}}:host([appearance="lightweight"]:active){background: transparent;color: ${Gc}}:host([appearance="lightweight"]) .content{position: relative}:host([appearance="lightweight"]) .content::before{content: "";display: block;height: calc(${B} * 1px);position: absolute;top: calc(1em + 4px);width: 100%}:host([appearance="lightweight"]:hover) .content::before{background: ${Wc}}:host([appearance="lightweight"]:active) .content::before{background: ${Gc}}:host([appearance="lightweight"]) .control:${I} .content::before{background: ${H};height: calc(${gs} * 1px)}`.withBehaviors(eo(O` :host([appearance="lightweight"]) .control:hover, :host([appearance="lightweight"]) .control:${I}{forced-color-adjust: none;background: ${F.ButtonFace};color: ${F.Highlight}}:host([appearance="lightweight"]) .control:hover .content::before, :host([appearance="lightweight"]) .control:${I} .content::before{background: ${F.Highlight}}:host([appearance="lightweight"][href]) .control:hover, :host([appearance="lightweight"][href]) .control:${I}{background: ${F.ButtonFace};box-shadow: none;color: ${F.LinkText}}:host([appearance="lightweight"][href]) .control:hover .content::before, :host([appearance="lightweight"][href]) .control:${I} .content::before{background: ${F.LinkText}}`)),jl=O` :host([appearance="outline"]){background: transparent;border-color: ${Ec}}:host([appearance="outline"]:hover){border-color: ${Dc}}:host([appearance="outline"]:active){border-color: ${Oc}}:host([appearance="outline"]) .control{border-color: inherit}:host([appearance="outline"]) .control:${I}{box-shadow: 0 0 0 calc((${gs} - ${B}) * 1px) ${V} inset;border-color: ${V}}`.withBehaviors(eo(O` :host([appearance="outline"]) .control{border-color: ${F.ButtonText}}:host([appearance="outline"]) .control:${I}{forced-color-adjust: none;background-color: ${F.Highlight};border-color: ${F.ButtonText};box-shadow: 0 0 0 calc((${gs} - ${B}) * 1px) ${F.ButtonText} inset;color: ${F.HighlightText};fill: currentColor}:host([appearance="outline"][href]) .control{background: ${F.ButtonFace};border-color: ${F.LinkText};color: ${F.LinkText};fill: currentColor}:host([appearance="outline"][href]) .control:hover, :host([appearance="outline"][href]) .control:${I}{forced-color-adjust: none;border-color: ${F.LinkText};box-shadow: 0 0 0 1px ${F.LinkText} inset}`)),Ml=O` :host([appearance="stealth"]){background: ${il}}:host([appearance="stealth"]:hover){background: ${al}}:host([appearance="stealth"]:active){background: ${ol}}`.withBehaviors(eo(O` :host([appearance="stealth"]), :host([appearance="stealth"]) .control{forced-color-adjust: none;background: ${F.ButtonFace};border-color: transparent;color: ${F.ButtonText};fill: currentColor}:host([appearance="stealth"]:hover) .control{background: ${F.Highlight};border-color: ${F.Highlight};color: ${F.HighlightText};fill: currentColor}:host([appearance="stealth"]:${I}) .control{background: ${F.Highlight};box-shadow: 0 0 0 1px ${F.Highlight};color: ${F.HighlightText};fill: currentColor}:host([appearance="stealth"][href]) .control{color: ${F.LinkText}}:host([appearance="stealth"][href]:hover) .control, :host([appearance="stealth"][href]:${I}) .control{background: ${F.LinkText};border-color: ${F.LinkText};color: ${F.HighlightText};fill: currentColor}:host([appearance="stealth"][href]:${I}) .control{forced-color-adjust: none;box-shadow: 0 0 0 1px ${F.LinkText}}`));var Nl=class{constructor(e,t){this.cache=/* @__PURE__ */ new WeakMap,this.ltr=e,this.rtl=t}bind(e){this.attach(e)}unbind(e){let t=this.cache.get(e);t&&ms.unsubscribe(t)}attach(e){let t=this.cache.get(e)||new jne(this.ltr,this.rtl,e),n=ms.getValueFor(e);ms.subscribe(t),t.attach(n),this.cache.set(e,t)}},jne=class{constructor(e,t,n){this.ltr=e,this.rtl=t,this.source=n,this.attached=null}handleChange({target:e,token:t}){this.attach(t.getValueFor(e))}attach(e){this.attached!==this[e]&&(this.attached!==null&&this.source.$fastController.removeStyles(this.attached),this.attached=this[e],this.attached!==null&&this.source.$fastController.addStyles(this.attached))}};function Pl(e,t){return new to(`appearance`,e,t)}let Fl=(e,t)=>O` ${Ol} `.withBehaviors(Pl(`accent`,kl),Pl(`hypertext`,Ane),Pl(`lightweight`,Al),Pl(`outline`,jl),Pl(`stealth`,Ml));var Il=class extends Wn{appearanceChanged(e,t){this.$fastController.isConnected&&(this.classList.remove(e),this.classList.add(t))}connectedCallback(){super.connectedCallback(),this.appearance||(this.appearance=`neutral`)}defaultSlottedContentChanged(e,t){let n=this.defaultSlottedContent.filter(e=>e.nodeType===Node.ELEMENT_NODE);n.length===1&&n[0]instanceof SVGElement?this.control.classList.add(`icon-only`):this.control.classList.remove(`icon-only`)}};W([D],Il.prototype,`appearance`,void 0),Il.compose({baseName:`anchor`,baseClass:Wn,template:Hn,styles:Fl,shadowOptions:{delegatesFocus:!0}});let Ll=(e,t)=>O` :host{contain: layout;display: block}`;Jn.compose({baseName:`anchored-region`,template:Kn,styles:Ll});let Mne=(e,t)=>O` ::slotted(${e.tagFor(rr)}){left: 0}`,Nne=(e,t)=>O` ::slotted(${e.tagFor(rr)}){right: 0}`,Rl=(e,t)=>O` ${ro(`flex`)} :host{position: relative;height: var(--avatar-size, var(--avatar-size-default));max-width: var(--avatar-size, var(--avatar-size-default));--avatar-size-default: calc( ( (${us} + ${ps}) * ${z} + ((${z} * 8) - 40) ) * 1px );--avatar-text-size: ${_s};--avatar-text-ratio: ${z}}.link{text-decoration: none;color: ${H};display: flex;flex-direction: row;justify-content: center;align-items: center;min-width: 100%}.square{border-radius: calc(${fs} * 1px);min-width: 100%;overflow: hidden}.circle{border-radius: 100%;min-width: 100%;overflow: hidden}.backplate{position: relative;display: flex}.media, ::slotted(img){max-width: 100%;position: absolute;display: block}.content{font-size: calc( (var(--avatar-text-size) + var(--avatar-size, var(--avatar-size-default))) / var(--avatar-text-ratio) );line-height: var(--avatar-size, var(--avatar-size-default));display: block;min-height: var(--avatar-size, var(--avatar-size-default))}::slotted(${e.tagFor(rr)}){position: absolute;display: block}`.withBehaviors(new Nl(Nne(e,t),Mne(e,t)));var zl=class extends tr{};W([D({attribute:`src`})],zl.prototype,`imgSrc`,void 0),W([D],zl.prototype,`alt`,void 0);let Pne=T` ${A(e=>e.imgSrc,T`<img src="${e=>e.imgSrc}" alt="${e=>e.alt}" slot="media" class="media" part="media" />`)} `;zl.compose({baseName:`avatar`,baseClass:tr,template:er,styles:Rl,media:Pne,shadowOptions:{delegatesFocus:!0}});let Bl=(e,t)=>O` ${ro(`inline-block`)} :host{box-sizing: border-box;font-family: ${ls};font-size: ${ys};line-height: ${bs}}.control{border-radius: calc(${fs} * 1px);padding: calc(((${z} * 0.5) - ${B}) * 1px) calc((${z} - ${B}) * 1px);color: ${Uc};font-weight: 600;border: calc(${B} * 1px) solid transparent}.control[style]{font-weight: 400}:host([circular]) .control{border-radius: 100px;padding: 0 calc(${z} * 1px);height: calc((${U} - (${z} * 3)) * 1px);min-width: calc((${U} - (${z} * 3)) * 1px);display: flex;align-items: center;justify-content: center;box-sizing: border-box}`;rr.compose({baseName:`badge`,template:nr,styles:Bl});let Vl=(e,t)=>O` ${ro(`inline-flex`)} :host{background: transparent;box-sizing: border-box;font-family: ${ls};font-size: ${_s};fill: currentColor;line-height: ${vs};min-width: calc(${U} * 1px);outline: none;color: ${H}}.listitem{display: flex;align-items: center;width: max-content}.separator{margin: 0 6px;display: flex}.control{align-items: center;box-sizing: border-box;color: ${Uc};cursor: pointer;display: flex;fill: inherit;outline: none;text-decoration: none;white-space: nowrap}.control:hover{color: ${Wc}}.control:active{color: ${Gc}}.control .content{position: relative}.control .content::before{content: "";display: block;height: calc(${B} * 1px);left: 0;position: absolute;right: 0;top: calc(1em + 4px);width: 100%}.control:hover .content::before{background: ${Wc}}.control:active .content::before{background: ${Gc}}.control:${I} .content::before{background: ${H};height: calc(${gs} * 1px)}.control:not([href]){color: ${H};cursor: default}.control:not([href]) .content::before{background: none}.start, .end{display: flex}::slotted(svg){/* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */ width: 16px;height: 16px}.start{margin-inline-end: 6px}.end{margin-inline-start: 6px}`.withBehaviors(eo(O` .control:hover .content::before, .control:${I} .content::before{background: ${F.LinkText}}.start, .end{fill: ${F.ButtonText}}`));ar.compose({baseName:`breadcrumb-item`,template:ir,styles:Vl,separator:`/`,shadowOptions:{delegatesFocus:!0}});let Hl=(e,t)=>O` ${ro(`inline-block`)} :host{box-sizing: border-box;font-family: ${ls};font-size: ${_s};line-height: ${vs}}.list{display: flex;flex-wrap: wrap}`;sr.compose({baseName:`breadcrumb`,template:or,styles:Hl});let Ul=(e,t)=>O` :host([disabled]), :host([disabled]:hover), :host([disabled]:active){opacity: ${hs};background-color: ${Jc};cursor: ${no}}${Ol} `.withBehaviors(eo(O` :host([disabled]), :host([disabled]) .control, :host([disabled]:hover), :host([disabled]:active){forced-color-adjust: none;background-color: ${F.ButtonFace};border-color: ${F.GrayText};color: ${F.GrayText};cursor: ${no};opacity: 1}`),Pl(`accent`,O` :host([appearance="accent"][disabled]), :host([appearance="accent"][disabled]:hover), :host([appearance="accent"][disabled]:active){background: ${Ec}}${kl} `.withBehaviors(eo(O` :host([appearance="accent"][disabled]) .control, :host([appearance="accent"][disabled]) .control:hover{background: ${F.ButtonFace};border-color: ${F.GrayText};color: ${F.GrayText}}`))),Pl(`lightweight`,O` :host([appearance="lightweight"][disabled]:hover), :host([appearance="lightweight"][disabled]:active){background-color: transparent;color: ${Uc}}:host([appearance="lightweight"][disabled]) .content::before, :host([appearance="lightweight"][disabled]:hover) .content::before, :host([appearance="lightweight"][disabled]:active) .content::before{background: transparent}${Al} `.withBehaviors(eo(O` :host([appearance="lightweight"].disabled) .control{forced-color-adjust: none;color: ${F.GrayText}}:host([appearance="lightweight"].disabled) .control:hover .content::before{background: none}`))),Pl(`outline`,O` :host([appearance="outline"][disabled]), :host([appearance="outline"][disabled]:hover), :host([appearance="outline"][disabled]:active){background: transparent;border-color: ${Ec}}${jl} `.withBehaviors(eo(O` :host([appearance="outline"][disabled]) .control{border-color: ${F.GrayText}}`))),Pl(`stealth`,O` :host([appearance="stealth"][disabled]), :host([appearance="stealth"][disabled]:hover), :host([appearance="stealth"][disabled]:active){background: ${il}}${Ml} `.withBehaviors(eo(O` :host([appearance="stealth"][disabled]){background: ${F.ButtonFace}}:host([appearance="stealth"][disabled]) .control{background: ${F.ButtonFace};border-color: transparent;color: ${F.GrayText}}`))));var Wl=class extends _r{constructor(){super(...arguments),this.appearance=`neutral`}defaultSlottedContentChanged(e,t){let n=this.defaultSlottedContent.filter(e=>e.nodeType===Node.ELEMENT_NODE);n.length===1&&n[0]instanceof SVGElement?this.control.classList.add(`icon-only`):this.control.classList.remove(`icon-only`)}};W([D],Wl.prototype,`appearance`,void 0),Wl.compose({baseName:`button`,baseClass:_r,template:cr,styles:Ul,shadowOptions:{delegatesFocus:!0}});let Gl=O` ${ro(`block`)} :host{--cell-border: none;--cell-height: calc(${U} * 1px);--selected-day-outline: 1px solid ${Gc};--selected-day-color: ${Gc};--selected-day-background: ${Jc};--cell-padding: calc(${z} * 1px);--disabled-day-opacity: ${hs};--inactive-day-opacity: ${hs};font-family: ${ls};font-size: ${_s};line-height: ${vs};color: ${H}}.title{font-size: ${Ds};line-height: ${Os};padding: var(--cell-padding);text-align: center}.week-days, .week{display: grid;grid-template-columns: repeat(7, 1fr);border-left: var(--cell-border, none);border-bottom: none;padding: 0}.interact .week{grid-gap: calc(${z} * 1px);margin-top: calc(${z} * 1px)}.day, .week-day{border-bottom: var(--cell-border);border-right: var(--cell-border);padding: var(--cell-padding)}.week-day{text-align: center;border-radius: 0;border-top: var(--cell-border)}.day{box-sizing: border-box;vertical-align: top;outline-offset: -1px;line-height: var(--cell-line-height);white-space: normal}.interact .day{background: ${Jc};cursor: pointer}.day.inactive{background: var(--inactive-day-background);color: var(--inactive-day-color);opacity: var(--inactive-day-opacity);outline: var(--inactive-day-outline)}.day.disabled{background: var(--disabled-day-background);color: var(--disabled-day-color);cursor: ${no};opacity: var(--disabled-day-opacity);outline: var(--disabled-day-outline)}.day.selected{color: var(--selected-day-color);background: var(--selected-day-background);outline: var(--selected-day-outline)}.date{padding: var(--cell-padding);text-align: center}.interact .today, .today{color: ${Pc};background: ${Gc}}.today.inactive .date{background: transparent;color: inherit;width: auto}`.withBehaviors(eo(O` :host{--selected-day-outline: 1px solid ${F.Highlight}}.day, .week-day{background: ${F.Canvas};color: ${F.CanvasText};fill: currentcolor}.day.selected{color: ${F.Highlight}}.today .date{background: ${F.Highlight};color: ${F.HighlightText}}`));br.compose({baseName:`calendar`,template:Ar,styles:Gl,title:Lee});let Kl=(e,t)=>O` ${ro(`block`)} :host{--elevation: 4;display: block;contain: content;height: var(--card-height, 100%);width: var(--card-width, 100%);box-sizing: border-box;background: ${Cc};border-radius: calc(${fs} * 1px);${Dl}}`.withBehaviors(eo(O` :host{forced-color-adjust: none;background: ${F.Canvas};box-shadow: 0 0 0 1px ${F.CanvasText}}`));var ql=class extends Mr{connectedCallback(){super.connectedCallback();let e=Wr(this);e&&Cc.setValueFor(this,t=>pl.getValueFor(t).evaluate(t,Cc.getValueFor(e)))}};ql.compose({baseName:`card`,baseClass:Mr,template:jr,styles:Kl});let Jl=(e,t)=>O` ${ro(`inline-flex`)} :host{align-items: center;outline: none;margin: calc(${z} * 1px) 0;/* Chromium likes to select label text or the default slot when the checkbox is clicked. Maybe there is a better solution here? */ user-select: none}.control{position: relative;width: calc((${U} / 2 + ${z}) * 1px);height: calc((${U} / 2 + ${z}) * 1px);box-sizing: border-box;border-radius: calc(${fs} * 1px);border: calc(${B} * 1px) solid ${yl};background: ${$c};outline: none;cursor: pointer}.label{font-family: ${ls};color: ${H};padding-inline-start: calc(${z} * 2px + 2px);margin-inline-end: calc(${z} * 2px + 2px);cursor: pointer;font-size: ${_s};line-height: ${vs}}.label__hidden{display: none;visibility: hidden}.checked-indicator{width: 100%;height: 100%;display: block;fill: ${Mc};opacity: 0;pointer-events: none}.indeterminate-indicator{border-radius: calc(${fs} * 1px);background: ${Mc};position: absolute;top: 50%;left: 50%;width: 50%;height: 50%;transform: translate(-50%, -50%);opacity: 0}:host(:not([disabled])) .control:hover{background: ${el};border-color: ${bl}}:host(:not([disabled])) .control:active{background: ${tl};border-color: ${xl}}:host(:${I}) .control{box-shadow: 0 0 0 2px ${Cc}, 0 0 0 4px ${V}}:host([aria-checked="true"]) .control{background: ${Ec};border: calc(${B} * 1px) solid ${Ec}}:host([aria-checked="true"]:not([disabled])) .control:hover{background: ${Dc};border: calc(${B} * 1px) solid ${Dc}}:host([aria-checked="true"]:not([disabled])) .control:hover .checked-indicator{fill: ${Nc}}:host([aria-checked="true"]:not([disabled])) .control:hover .indeterminate-indicator{background: ${Nc}}:host([aria-checked="true"]:not([disabled])) .control:active{background: ${Oc};border: calc(${B} * 1px) solid ${Oc}}:host([aria-checked="true"]:not([disabled])) .control:active .checked-indicator{fill: ${Pc}}:host([aria-checked="true"]:not([disabled])) .control:active .indeterminate-indicator{background: ${Pc}}:host([aria-checked="true"]:${I}:not([disabled])) .control{box-shadow: 0 0 0 2px ${Cc}, 0 0 0 4px ${V}}:host([disabled]) .label, :host([readonly]) .label, :host([readonly]) .control, :host([disabled]) .control{cursor: ${no}}:host([aria-checked="true"]:not(.indeterminate)) .checked-indicator, :host(.indeterminate) .indeterminate-indicator{opacity: 1}:host([disabled]){opacity: ${hs}}`.withBehaviors(eo(O` .control{forced-color-adjust: none;border-color: ${F.FieldText};background: ${F.Field}}.checked-indicator{fill: ${F.FieldText}}.indeterminate-indicator{background: ${F.FieldText}}:host(:not([disabled])) .control:hover, .control:active{border-color: ${F.Highlight};background: ${F.Field}}:host(:${I}) .control{box-shadow: 0 0 0 2px ${F.Field}, 0 0 0 4px ${F.FieldText}}:host([aria-checked="true"]:${I}:not([disabled])) .control{box-shadow: 0 0 0 2px ${F.Field}, 0 0 0 4px ${F.FieldText}}:host([aria-checked="true"]) .control{background: ${F.Highlight};border-color: ${F.Highlight}}:host([aria-checked="true"]:not([disabled])) .control:hover, .control:active{border-color: ${F.Highlight};background: ${F.HighlightText}}:host([aria-checked="true"]) .checked-indicator{fill: ${F.HighlightText}}:host([aria-checked="true"]:not([disabled])) .control:hover .checked-indicator{fill: ${F.Highlight}}:host([aria-checked="true"]) .indeterminate-indicator{background: ${F.HighlightText}}:host([aria-checked="true"]) .control:hover .indeterminate-indicator{background: ${F.Highlight}}:host([disabled]){opacity: 1}:host([disabled]) .control{forced-color-adjust: none;border-color: ${F.GrayText};background: ${F.Field}}:host([disabled]) .indeterminate-indicator, :host([aria-checked="true"][disabled]) .control:hover .indeterminate-indicator{forced-color-adjust: none;background: ${F.GrayText}}:host([disabled]) .checked-indicator, :host([aria-checked="true"][disabled]) .control:hover .checked-indicator{forced-color-adjust: none;fill: ${F.GrayText}}`));Pr.compose({baseName:`checkbox`,template:Nr,styles:Jl,checkedIndicator:`
63
63
  <svg
64
64
  part="checked-indicator"
65
65
  class="checked-indicator"
@@ -74,7 +74,7 @@ function W(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPrope
74
74
  </svg>
75
75
  `,indeterminateIndicator:`
76
76
  <div part="indeterminate-indicator" class="indeterminate-indicator"></div>
77
- `});let Yl=(e,t)=>{let n=e.tagFor(Ir),r=e.name===e.tagFor(Gi)?``:`.listbox`;return O` ${r?``:ro(`inline-flex`)} :host ${r}{background: ${Sc};border: calc(${V} * 1px) solid ${yl};border-radius: calc(${z} * 1px);box-sizing: border-box;flex-direction: column;padding: calc(${B} * 1px) 0}${r?``:O` :host(:focus-within:not([disabled])){border-color: ${hl};box-shadow: 0 0 0 calc((${hs} - ${V}) * 1px) ${hl} inset}:host([disabled]) ::slotted(*){cursor: ${no};opacity: ${ms};pointer-events: none}`} ${r||`:host([size])`}{max-height: calc( (var(--size) * ${U} + (${B} * ${V} * 2)) * 1px );overflow-y: auto}:host([size="0"]) ${r}{max-height: none}`.withBehaviors(eo(O` :host(:not([multiple]):${I}) ::slotted(${n}[aria-selected="true"]), :host([multiple]:${I}) ::slotted(${n}[aria-checked="true"]){border-color: ${F.ButtonText};box-shadow: 0 0 0 calc(${hs} * 1px) inset ${F.HighlightText}}:host(:not([multiple]):${I}) ::slotted(${n}[aria-selected="true"]){background: ${F.Highlight};color: ${F.HighlightText};fill: currentcolor}::slotted(${n}[aria-selected="true"]:not([aria-checked="true"])){background: ${F.Highlight};border-color: ${F.HighlightText};color: ${F.HighlightText}}`))},Xl=(e,t)=>{let n=e.name===e.tagFor(va);return O` ${ro(`inline-flex`)} :host{--elevation: 14;background: ${Qc};border-radius: calc(${z} * 1px);border: calc(${V} * 1px) solid ${Tc};box-sizing: border-box;color: ${H};font-family: ${ls};height: calc(${U} * 1px);position: relative;user-select: none;min-width: 250px;outline: none;vertical-align: top}${n?O` :host(:not([aria-haspopup])){--elevation: 0;border: 0;height: auto;min-width: 0}`:``} ${Yl(e,t)} :host .listbox{${Dl} border: none;display: flex;left: 0;position: absolute;width: 100%;z-index: 1}.control + .listbox{--stroke-size: calc(${B} * ${V} * 2);max-height: calc( (var(--listbox-max-height) * ${U} + var(--stroke-size)) * 1px )}${n?O` :host(:not([aria-haspopup])) .listbox{left: auto;position: static;z-index: auto}`:``} .listbox[hidden]{display: none}.control{align-items: center;box-sizing: border-box;cursor: pointer;display: flex;font-size: ${gs};font-family: inherit;line-height: ${_s};min-height: 100%;padding: 0 calc(${B} * 2.25px);width: 100%}:host(:not([disabled]):hover){background: ${$c};border-color: ${Ec}}:host(:${I}){border-color: ${hl}}:host(:not([size]):not([multiple]):not([open]):${I}), :host([multiple]:${I}), :host([size]:${I}){box-shadow: 0 0 0 calc(${hs} * 1px) ${hl}}:host(:not([multiple]):not([size]):${I}) ::slotted(${e.tagFor(Ir)}[aria-selected="true"]:not([disabled])){box-shadow: 0 0 0 calc(${hs} * 1px) inset ${gl};border-color: ${hl};background: ${Oc};color: ${Pc}}:host([disabled]){cursor: ${no};opacity: ${ms}}:host([disabled]) .control{cursor: ${no};user-select: none}:host([disabled]:hover){background: ${rl};color: ${H};fill: currentcolor}:host(:not([disabled])) .control:active{background: ${el};border-color: ${Dc};border-radius: calc(${z} * 1px)}:host([open][position="above"]) .listbox{border-bottom-left-radius: 0;border-bottom-right-radius: 0;border-bottom: 0;bottom: calc(${U} * 1px)}:host([open][position="below"]) .listbox{border-top-left-radius: 0;border-top-right-radius: 0;border-top: 0;top: calc(${U} * 1px)}.selected-value{flex: 1 1 auto;font-family: inherit;min-width: calc(var(--listbox-scroll-width, 0) - (${B} * 4) * 1px);overflow: hidden;text-align: start;text-overflow: ellipsis;white-space: nowrap}.indicator{flex: 0 0 auto;margin-inline-start: 1em}slot[name="listbox"]{display: none;width: 100%}:host([open]) slot[name="listbox"]{display: flex;position: absolute;${Dl}}.end{margin-inline-start: auto}.start, .end, .indicator, .select-indicator, ::slotted(svg){/* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */ fill: currentcolor;height: 1em;min-height: calc(${B} * 4px);min-width: calc(${B} * 4px);width: 1em}::slotted([role="option"]), ::slotted(option){flex: 0 0 auto}`.withBehaviors(eo(O` :host(:not([disabled]):hover), :host(:not([disabled]):active){border-color: ${F.Highlight}}:host(:not([disabled]):${I}){background-color: ${F.ButtonFace};box-shadow: 0 0 0 calc(${hs} * 1px) ${F.Highlight};color: ${F.ButtonText};fill: currentcolor;forced-color-adjust: none}:host(:not([disabled]):${I}) .listbox{background: ${F.ButtonFace}}:host([disabled]){border-color: ${F.GrayText};background-color: ${F.ButtonFace};color: ${F.GrayText};fill: currentcolor;opacity: 1;forced-color-adjust: none}:host([disabled]:hover){background: ${F.ButtonFace}}:host([disabled]) .control{color: ${F.GrayText};border-color: ${F.GrayText}}:host([disabled]) .control .select-indicator{fill: ${F.GrayText}}:host(:${I}) ::slotted([aria-selected="true"][role="option"]), :host(:${I}) ::slotted(option[aria-selected="true"]), :host(:${I}) ::slotted([aria-selected="true"][role="option"]:not([disabled])){background: ${F.Highlight};border-color: ${F.ButtonText};box-shadow: 0 0 0 calc(${hs} * 1px) inset ${F.HighlightText};color: ${F.HighlightText};fill: currentcolor}.start, .end, .indicator, .select-indicator, ::slotted(svg){color: ${F.ButtonText};fill: currentcolor}`))},Zl=(e,t)=>O` ${Xl(e,t)} :host(:empty) .listbox{display: none}:host([disabled]) *, :host([disabled]){cursor: ${no};user-select: none}.selected-value{-webkit-appearance: none;background: transparent;border: none;color: inherit;font-size: ${gs};line-height: ${_s};height: calc(100% - (${V} * 1px));margin: auto 0;width: 100%}.selected-value:hover, .selected-value:${I}, .selected-value:disabled, .selected-value:active{outline: none}`;var Ql=class extends Hr{maxHeightChanged(e,t){this.updateComputedStylesheet()}updateComputedStylesheet(){this.computedStylesheet&&this.$fastController.removeStyles(this.computedStylesheet);let e=Math.floor(this.maxHeight/wl.getValueFor(this)).toString();this.computedStylesheet=O` :host{--listbox-max-height: ${e}}`,this.$fastController.addStyles(this.computedStylesheet)}};Ql.compose({baseName:`combobox`,baseClass:Hr,template:qee,styles:Zl,shadowOptions:{delegatesFocus:!0},indicator:`
77
+ `});let Yl=(e,t)=>{let n=e.tagFor(Ir),r=e.name===e.tagFor(Gi)?``:`.listbox`;return O` ${r?``:ro(`inline-flex`)} :host ${r}{background: ${Cc};border: calc(${B} * 1px) solid ${yl};border-radius: calc(${fs} * 1px);box-sizing: border-box;flex-direction: column;padding: calc(${z} * 1px) 0}${r?``:O` :host(:focus-within:not([disabled])){border-color: ${V};box-shadow: 0 0 0 calc((${gs} - ${B}) * 1px) ${V} inset}:host([disabled]) ::slotted(*){cursor: ${no};opacity: ${hs};pointer-events: none}`} ${r||`:host([size])`}{max-height: calc( (var(--size) * ${U} + (${z} * ${B} * 2)) * 1px );overflow-y: auto}:host([size="0"]) ${r}{max-height: none}`.withBehaviors(eo(O` :host(:not([multiple]):${I}) ::slotted(${n}[aria-selected="true"]), :host([multiple]:${I}) ::slotted(${n}[aria-checked="true"]){border-color: ${F.ButtonText};box-shadow: 0 0 0 calc(${gs} * 1px) inset ${F.HighlightText}}:host(:not([multiple]):${I}) ::slotted(${n}[aria-selected="true"]){background: ${F.Highlight};color: ${F.HighlightText};fill: currentcolor}::slotted(${n}[aria-selected="true"]:not([aria-checked="true"])){background: ${F.Highlight};border-color: ${F.HighlightText};color: ${F.HighlightText}}`))},Xl=(e,t)=>{let n=e.name===e.tagFor(va);return O` ${ro(`inline-flex`)} :host{--elevation: 14;background: ${$c};border-radius: calc(${fs} * 1px);border: calc(${B} * 1px) solid ${Ec};box-sizing: border-box;color: ${H};font-family: ${ls};height: calc(${U} * 1px);position: relative;user-select: none;min-width: 250px;outline: none;vertical-align: top}${n?O` :host(:not([aria-haspopup])){--elevation: 0;border: 0;height: auto;min-width: 0}`:``} ${Yl(e,t)} :host .listbox{${Dl} border: none;display: flex;left: 0;position: absolute;width: 100%;z-index: 1}.control + .listbox{--stroke-size: calc(${z} * ${B} * 2);max-height: calc( (var(--listbox-max-height) * ${U} + var(--stroke-size)) * 1px )}${n?O` :host(:not([aria-haspopup])) .listbox{left: auto;position: static;z-index: auto}`:``} .listbox[hidden]{display: none}.control{align-items: center;box-sizing: border-box;cursor: pointer;display: flex;font-size: ${_s};font-family: inherit;line-height: ${vs};min-height: 100%;padding: 0 calc(${z} * 2.25px);width: 100%}:host(:not([disabled]):hover){background: ${el};border-color: ${Dc}}:host(:${I}){border-color: ${V}}:host(:not([size]):not([multiple]):not([open]):${I}), :host([multiple]:${I}), :host([size]:${I}){box-shadow: 0 0 0 calc(${gs} * 1px) ${V}}:host(:not([multiple]):not([size]):${I}) ::slotted(${e.tagFor(Ir)}[aria-selected="true"]:not([disabled])){box-shadow: 0 0 0 calc(${gs} * 1px) inset ${gl};border-color: ${V};background: ${kc};color: ${Fc}}:host([disabled]){cursor: ${no};opacity: ${hs}}:host([disabled]) .control{cursor: ${no};user-select: none}:host([disabled]:hover){background: ${il};color: ${H};fill: currentcolor}:host(:not([disabled])) .control:active{background: ${tl};border-color: ${Oc};border-radius: calc(${fs} * 1px)}:host([open][position="above"]) .listbox{border-bottom-left-radius: 0;border-bottom-right-radius: 0;border-bottom: 0;bottom: calc(${U} * 1px)}:host([open][position="below"]) .listbox{border-top-left-radius: 0;border-top-right-radius: 0;border-top: 0;top: calc(${U} * 1px)}.selected-value{flex: 1 1 auto;font-family: inherit;min-width: calc(var(--listbox-scroll-width, 0) - (${z} * 4) * 1px);overflow: hidden;text-align: start;text-overflow: ellipsis;white-space: nowrap}.indicator{flex: 0 0 auto;margin-inline-start: 1em}slot[name="listbox"]{display: none;width: 100%}:host([open]) slot[name="listbox"]{display: flex;position: absolute;${Dl}}.end{margin-inline-start: auto}.start, .end, .indicator, .select-indicator, ::slotted(svg){/* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */ fill: currentcolor;height: 1em;min-height: calc(${z} * 4px);min-width: calc(${z} * 4px);width: 1em}::slotted([role="option"]), ::slotted(option){flex: 0 0 auto}`.withBehaviors(eo(O` :host(:not([disabled]):hover), :host(:not([disabled]):active){border-color: ${F.Highlight}}:host(:not([disabled]):${I}){background-color: ${F.ButtonFace};box-shadow: 0 0 0 calc(${gs} * 1px) ${F.Highlight};color: ${F.ButtonText};fill: currentcolor;forced-color-adjust: none}:host(:not([disabled]):${I}) .listbox{background: ${F.ButtonFace}}:host([disabled]){border-color: ${F.GrayText};background-color: ${F.ButtonFace};color: ${F.GrayText};fill: currentcolor;opacity: 1;forced-color-adjust: none}:host([disabled]:hover){background: ${F.ButtonFace}}:host([disabled]) .control{color: ${F.GrayText};border-color: ${F.GrayText}}:host([disabled]) .control .select-indicator{fill: ${F.GrayText}}:host(:${I}) ::slotted([aria-selected="true"][role="option"]), :host(:${I}) ::slotted(option[aria-selected="true"]), :host(:${I}) ::slotted([aria-selected="true"][role="option"]:not([disabled])){background: ${F.Highlight};border-color: ${F.ButtonText};box-shadow: 0 0 0 calc(${gs} * 1px) inset ${F.HighlightText};color: ${F.HighlightText};fill: currentcolor}.start, .end, .indicator, .select-indicator, ::slotted(svg){color: ${F.ButtonText};fill: currentcolor}`))},Zl=(e,t)=>O` ${Xl(e,t)} :host(:empty) .listbox{display: none}:host([disabled]) *, :host([disabled]){cursor: ${no};user-select: none}.selected-value{-webkit-appearance: none;background: transparent;border: none;color: inherit;font-size: ${_s};line-height: ${vs};height: calc(100% - (${B} * 1px));margin: auto 0;width: 100%}.selected-value:hover, .selected-value:${I}, .selected-value:disabled, .selected-value:active{outline: none}`;var Ql=class extends Hr{maxHeightChanged(e,t){this.updateComputedStylesheet()}updateComputedStylesheet(){this.computedStylesheet&&this.$fastController.removeStyles(this.computedStylesheet);let e=Math.floor(this.maxHeight/wl.getValueFor(this)).toString();this.computedStylesheet=O` :host{--listbox-max-height: ${e}}`,this.$fastController.addStyles(this.computedStylesheet)}};Ql.compose({baseName:`combobox`,baseClass:Hr,template:qee,styles:Zl,shadowOptions:{delegatesFocus:!0},indicator:`
78
78
  <svg
79
79
  class="select-indicator"
80
80
  part="select-indicator"
@@ -85,7 +85,7 @@ function W(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPrope
85
85
  d="M11.85.65c.2.2.2.5 0 .7L6.4 6.84a.55.55 0 01-.78 0L.14 1.35a.5.5 0 11.71-.7L6 5.8 11.15.65c.2-.2.5-.2.7 0z"
86
86
  />
87
87
  </svg>
88
- `});let $l=(e,t)=>O` :host{display: flex;position: relative;flex-direction: column}`,eu=(e,t)=>O` :host{display: grid;padding: 1px 0;box-sizing: border-box;width: 100%;border-bottom: calc(${V} * 1px) solid ${Cl}}:host(.header){}:host(.sticky-header){background: ${qc};position: sticky;top: 0}`,tu=(e,t)=>O` :host{padding: calc(${B} * 1px) calc(${B} * 3px);color: ${H};box-sizing: border-box;font-family: ${ls};font-size: ${gs};line-height: ${_s};font-weight: 400;border: transparent calc(${hs} * 1px) solid;overflow: hidden;white-space: nowrap;border-radius: calc(${z} * 1px)}:host(.column-header){font-weight: 600}:host(:${I}){border: ${hl} calc(${hs} * 1px) solid;outline: none;color: ${H}}`.withBehaviors(eo(O` :host{forced-color-adjust: none;border-color: transparent;background: ${F.Field};color: ${F.FieldText}}:host(:${I}){border-color: ${F.FieldText};box-shadow: 0 0 0 2px inset ${F.Field};color: ${F.FieldText}}`));Dr.compose({baseName:`data-grid-cell`,template:kr,styles:tu}),wr.compose({baseName:`data-grid-row`,template:Or,styles:eu}),Er.compose({baseName:`data-grid`,template:Tr,styles:$l});let nu={toView(e){return e==null?null:e?.toColorString()},fromView(e){if(e==null)return null;let t=Jo(e);return t?Qo.create(t.r,t.g,t.b):null}},ru=O` :host{background-color: ${Sc};color: ${H}}`.withBehaviors(eo(O` :host{background-color: ${F.ButtonFace};box-shadow: 0 0 0 1px ${F.CanvasText};color: ${F.ButtonText}}`));function G(e){return(t,n)=>{t[n+`Changed`]=function(t,n){n==null?e.deleteValueFor(this):e.setValueFor(this,n)}}}var K=class extends P{constructor(){super(),this.noPaint=!1;let e={handleChange:this.noPaintChanged.bind(this)};S.getNotifier(this).subscribe(e,`fillColor`),S.getNotifier(this).subscribe(e,`baseLayerLuminance`)}noPaintChanged(){!this.noPaint&&(this.fillColor!==void 0||this.baseLayerLuminance)?this.$fastController.addStyles(ru):this.$fastController.removeStyles(ru)}};W([D({attribute:`no-paint`,mode:`boolean`})],K.prototype,`noPaint`,void 0),W([D({attribute:`fill-color`,converter:nu}),G(Sc)],K.prototype,`fillColor`,void 0),W([D({attribute:`accent-color`,converter:nu,mode:`fromView`}),G(fc)],K.prototype,`accentColor`,void 0),W([D({attribute:`neutral-color`,converter:nu,mode:`fromView`}),G(uc)],K.prototype,`neutralColor`,void 0),W([D({converter:E}),G(fs)],K.prototype,`density`,void 0),W([D({attribute:`design-unit`,converter:E}),G(B)],K.prototype,`designUnit`,void 0),W([D({attribute:`direction`}),G(ps)],K.prototype,`direction`,void 0),W([D({attribute:`base-height-multiplier`,converter:E}),G(us)],K.prototype,`baseHeightMultiplier`,void 0),W([D({attribute:`base-horizontal-spacing-multiplier`,converter:E}),G(xne)],K.prototype,`baseHorizontalSpacingMultiplier`,void 0),W([D({attribute:`control-corner-radius`,converter:E}),G(z)],K.prototype,`controlCornerRadius`,void 0),W([D({attribute:`stroke-width`,converter:E}),G(V)],K.prototype,`strokeWidth`,void 0),W([D({attribute:`focus-stroke-width`,converter:E}),G(hs)],K.prototype,`focusStrokeWidth`,void 0),W([D({attribute:`disabled-opacity`,converter:E}),G(ms)],K.prototype,`disabledOpacity`,void 0),W([D({attribute:`type-ramp-minus-2-font-size`}),G(bs)],K.prototype,`typeRampMinus2FontSize`,void 0),W([D({attribute:`type-ramp-minus-2-line-height`}),G(xs)],K.prototype,`typeRampMinus2LineHeight`,void 0),W([D({attribute:`type-ramp-minus-1-font-size`}),G(vs)],K.prototype,`typeRampMinus1FontSize`,void 0),W([D({attribute:`type-ramp-minus-1-line-height`}),G(ys)],K.prototype,`typeRampMinus1LineHeight`,void 0),W([D({attribute:`type-ramp-base-font-size`}),G(gs)],K.prototype,`typeRampBaseFontSize`,void 0),W([D({attribute:`type-ramp-base-line-height`}),G(_s)],K.prototype,`typeRampBaseLineHeight`,void 0),W([D({attribute:`type-ramp-plus-1-font-size`}),G(Ss)],K.prototype,`typeRampPlus1FontSize`,void 0),W([D({attribute:`type-ramp-plus-1-line-height`}),G(Cs)],K.prototype,`typeRampPlus1LineHeight`,void 0),W([D({attribute:`type-ramp-plus-2-font-size`}),G(ws)],K.prototype,`typeRampPlus2FontSize`,void 0),W([D({attribute:`type-ramp-plus-2-line-height`}),G(Ts)],K.prototype,`typeRampPlus2LineHeight`,void 0),W([D({attribute:`type-ramp-plus-3-font-size`}),G(Es)],K.prototype,`typeRampPlus3FontSize`,void 0),W([D({attribute:`type-ramp-plus-3-line-height`}),G(Ds)],K.prototype,`typeRampPlus3LineHeight`,void 0),W([D({attribute:`type-ramp-plus-4-font-size`}),G(Os)],K.prototype,`typeRampPlus4FontSize`,void 0),W([D({attribute:`type-ramp-plus-4-line-height`}),G(ks)],K.prototype,`typeRampPlus4LineHeight`,void 0),W([D({attribute:`type-ramp-plus-5-font-size`}),G(As)],K.prototype,`typeRampPlus5FontSize`,void 0),W([D({attribute:`type-ramp-plus-5-line-height`}),G(js)],K.prototype,`typeRampPlus5LineHeight`,void 0),W([D({attribute:`type-ramp-plus-6-font-size`}),G(Ms)],K.prototype,`typeRampPlus6FontSize`,void 0),W([D({attribute:`type-ramp-plus-6-line-height`}),G(Ns)],K.prototype,`typeRampPlus6LineHeight`,void 0),W([D({attribute:`accent-fill-rest-delta`,converter:E}),G(Ps)],K.prototype,`accentFillRestDelta`,void 0),W([D({attribute:`accent-fill-hover-delta`,converter:E}),G(Fs)],K.prototype,`accentFillHoverDelta`,void 0),W([D({attribute:`accent-fill-active-delta`,converter:E}),G(Is)],K.prototype,`accentFillActiveDelta`,void 0),W([D({attribute:`accent-fill-focus-delta`,converter:E}),G(Ls)],K.prototype,`accentFillFocusDelta`,void 0),W([D({attribute:`accent-foreground-rest-delta`,converter:E}),G(Rs)],K.prototype,`accentForegroundRestDelta`,void 0),W([D({attribute:`accent-foreground-hover-delta`,converter:E}),G(zs)],K.prototype,`accentForegroundHoverDelta`,void 0),W([D({attribute:`accent-foreground-active-delta`,converter:E}),G(Bs)],K.prototype,`accentForegroundActiveDelta`,void 0),W([D({attribute:`accent-foreground-focus-delta`,converter:E}),G(Vs)],K.prototype,`accentForegroundFocusDelta`,void 0),W([D({attribute:`neutral-fill-rest-delta`,converter:E}),G(Hs)],K.prototype,`neutralFillRestDelta`,void 0),W([D({attribute:`neutral-fill-hover-delta`,converter:E}),G(Us)],K.prototype,`neutralFillHoverDelta`,void 0),W([D({attribute:`neutral-fill-active-delta`,converter:E}),G(Ws)],K.prototype,`neutralFillActiveDelta`,void 0),W([D({attribute:`neutral-fill-focus-delta`,converter:E}),G(Gs)],K.prototype,`neutralFillFocusDelta`,void 0),W([D({attribute:`neutral-fill-input-rest-delta`,converter:E}),G(Ks)],K.prototype,`neutralFillInputRestDelta`,void 0),W([D({attribute:`neutral-fill-input-hover-delta`,converter:E}),G(qs)],K.prototype,`neutralFillInputHoverDelta`,void 0),W([D({attribute:`neutral-fill-input-active-delta`,converter:E}),G(Js)],K.prototype,`neutralFillInputActiveDelta`,void 0),W([D({attribute:`neutral-fill-input-focus-delta`,converter:E}),G(Ys)],K.prototype,`neutralFillInputFocusDelta`,void 0),W([D({attribute:`neutral-fill-stealth-rest-delta`,converter:E}),G(Xs)],K.prototype,`neutralFillStealthRestDelta`,void 0),W([D({attribute:`neutral-fill-stealth-hover-delta`,converter:E}),G(Zs)],K.prototype,`neutralFillStealthHoverDelta`,void 0),W([D({attribute:`neutral-fill-stealth-active-delta`,converter:E}),G(Qs)],K.prototype,`neutralFillStealthActiveDelta`,void 0),W([D({attribute:`neutral-fill-stealth-focus-delta`,converter:E}),G($s)],K.prototype,`neutralFillStealthFocusDelta`,void 0),W([D({attribute:`neutral-fill-strong-hover-delta`,converter:E}),G(tc)],K.prototype,`neutralFillStrongHoverDelta`,void 0),W([D({attribute:`neutral-fill-strong-active-delta`,converter:E}),G(nc)],K.prototype,`neutralFillStrongActiveDelta`,void 0),W([D({attribute:`neutral-fill-strong-focus-delta`,converter:E}),G(rc)],K.prototype,`neutralFillStrongFocusDelta`,void 0),W([D({attribute:`base-layer-luminance`,converter:E}),G(ds)],K.prototype,`baseLayerLuminance`,void 0),W([D({attribute:`neutral-fill-layer-rest-delta`,converter:E}),G(ic)],K.prototype,`neutralFillLayerRestDelta`,void 0),W([D({attribute:`neutral-stroke-divider-rest-delta`,converter:E}),G(lc)],K.prototype,`neutralStrokeDividerRestDelta`,void 0),W([D({attribute:`neutral-stroke-rest-delta`,converter:E}),G(ac)],K.prototype,`neutralStrokeRestDelta`,void 0),W([D({attribute:`neutral-stroke-hover-delta`,converter:E}),G(oc)],K.prototype,`neutralStrokeHoverDelta`,void 0),W([D({attribute:`neutral-stroke-active-delta`,converter:E}),G(sc)],K.prototype,`neutralStrokeActiveDelta`,void 0),W([D({attribute:`neutral-stroke-focus-delta`,converter:E}),G(cc)],K.prototype,`neutralStrokeFocusDelta`,void 0),K.compose({baseName:`design-system-provider`,template:(e,t)=>T`<slot></slot>`,styles:(e,t)=>O` ${ro(`block`)}`}),Pi.compose({baseName:`dialog`,template:fi,styles:(e,t)=>O` :host([hidden]){display: none}:host{--elevation: 14;--dialog-height: 480px;--dialog-width: 640px;display: block}.overlay{position: fixed;top: 0;left: 0;right: 0;bottom: 0;background: rgba(0, 0, 0, 0.3);touch-action: none}.positioning-region{display: flex;justify-content: center;position: fixed;top: 0;bottom: 0;left: 0;right: 0;overflow: auto}.control{${Dl} margin-top: auto;margin-bottom: auto;width: var(--dialog-width);height: var(--dialog-height);background-color: ${Sc};z-index: 1;border-radius: calc(${z} * 1px);border: calc(${V} * 1px) solid transparent}`});let iu=(e,t)=>O` .disclosure{transition: height 0.35s}.disclosure .invoker::-webkit-details-marker{display: none}.disclosure .invoker{list-style-type: none}:host([appearance="accent"]) .invoker{background: ${Tc};color: ${jc};font-family: ${ls};font-size: ${gs};border-radius: calc(${z} * 1px);outline: none;cursor: pointer;margin: 16px 0;padding: 12px;max-width: max-content}:host([appearance="accent"]) .invoker:active{background: ${Dc};color: ${Nc}}:host([appearance="accent"]) .invoker:hover{background: ${Ec};color: ${Mc}}:host([appearance="lightweight"]) .invoker{background: transparent;color: ${Hc};border-bottom: calc(${V} * 1px) solid ${Hc};cursor: pointer;width: max-content;margin: 16px 0}:host([appearance="lightweight"]) .invoker:active{border-bottom-color: ${Wc}}:host([appearance="lightweight"]) .invoker:hover{border-bottom-color: ${Uc}}.disclosure[open] .invoker ~ *{animation: fadeIn 0.5s ease-in-out}@keyframes fadeIn{0%{opacity: 0}100%{opacity: 1}}`;var au=class extends Ri{constructor(){super(...arguments),this.height=0,this.totalHeight=0}connectedCallback(){super.connectedCallback(),this.appearance||(this.appearance=`accent`)}appearanceChanged(e,t){e!==t&&(this.classList.add(t),this.classList.remove(e))}onToggle(){super.onToggle(),this.details.style.setProperty(`height`,`${this.disclosureHeight}px`)}setup(){super.setup();let e=()=>this.details.getBoundingClientRect().height;this.show(),this.totalHeight=e(),this.hide(),this.height=e(),this.expanded&&this.show()}get disclosureHeight(){return this.expanded?this.totalHeight:this.height}};W([D],au.prototype,`appearance`,void 0),au.compose({baseName:`disclosure`,baseClass:Ri,template:Li,styles:iu});let ou=(e,t)=>O` ${ro(`block`)} :host{box-sizing: content-box;height: 0;margin: calc(${B} * 1px) 0;border-top: calc(${V} * 1px) solid ${Cl};border-left: none}:host([orientation="vertical"]){height: 100%;margin: 0 calc(${B} * 1px);border-top: none;border-left: calc(${V} * 1px) solid ${Cl}}`;Bi.compose({baseName:`divider`,template:zi,styles:ou});let su=(e,t)=>O` ${ro(`inline-flex`)} :host{width: calc(${U} * 1px);height: calc(${U} * 1px);justify-content: center;align-items: center;margin: 0;position: relative;fill: currentcolor;color: ${jc};background: transparent;outline: none;border: none;padding: 0}:host::before{content: "";background: ${Tc};border: calc(${V} * 1px) solid ${Tc};border-radius: 50%;position: absolute;top: 0;right: 0;left: 0;bottom: 0;transition: all 0.1s ease-in-out}.next, .previous{position: relative;/* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */ width: 16px;height: 16px;display: grid}:host([disabled]){opacity: ${ms};cursor: ${no};fill: currentcolor;color: ${H};pointer-events: none}:host([disabled])::before, :host([disabled]:hover)::before, :host([disabled]:active)::before{background: ${rl};border-color: ${yl}}:host(:hover){color: ${Mc}}:host(:hover)::before{background: ${Ec};border-color: ${Ec}}:host(:active){color: ${Nc}}:host(:active)::before{background: ${Dc};border-color: ${Dc}}:host(:${I}){outline: none}:host(:${I})::before{box-shadow: 0 0 0 calc((${hs} - ${V}) * 1px) ${hl} inset, 0 0 0 calc((${hs} + ${V}) * 1px) ${gl} inset;border-color: ${hl}}:host::-moz-focus-inner{border: 0}`.withBehaviors(eo(O` :host{background: ${F.Canvas}}:host .next, :host .previous{color: ${F.ButtonText};fill: currentcolor}:host::before{background: ${F.Canvas};border-color: ${F.ButtonText}}:host(:hover)::before{forced-color-adjust: none;background: ${F.Highlight};border-color: ${F.ButtonText};opacity: 1}:host(:hover) .next, :host(:hover) .previous{forced-color-adjust: none;color: ${F.HighlightText};fill: currentcolor}:host([disabled]){opacity: 1}:host([disabled])::before, :host([disabled]:hover)::before, :host([disabled]) .next, :host([disabled]) .previous{forced-color-adjust: none;background: ${F.Canvas};border-color: ${F.GrayText};color: ${F.GrayText};fill: ${F.GrayText}}:host(:${I})::before{forced-color-adjust: none;border-color: ${F.Highlight};box-shadow: 0 0 0 calc((${hs} - ${V}) * 1px) ${F.Highlight} inset}`));Ui.compose({baseName:`flipper`,template:Hi,styles:su,next:`
88
+ `});let $l=(e,t)=>O` :host{display: flex;position: relative;flex-direction: column}`,eu=(e,t)=>O` :host{display: grid;padding: 1px 0;box-sizing: border-box;width: 100%;border-bottom: calc(${B} * 1px) solid ${Cl}}:host(.header){}:host(.sticky-header){background: ${Jc};position: sticky;top: 0}`,tu=(e,t)=>O` :host{padding: calc(${z} * 1px) calc(${z} * 3px);color: ${H};box-sizing: border-box;font-family: ${ls};font-size: ${_s};line-height: ${vs};font-weight: 400;border: transparent calc(${gs} * 1px) solid;overflow: hidden;white-space: nowrap;border-radius: calc(${fs} * 1px)}:host(.column-header){font-weight: 600}:host(:${I}){border: ${V} calc(${gs} * 1px) solid;outline: none;color: ${H}}`.withBehaviors(eo(O` :host{forced-color-adjust: none;border-color: transparent;background: ${F.Field};color: ${F.FieldText}}:host(:${I}){border-color: ${F.FieldText};box-shadow: 0 0 0 2px inset ${F.Field};color: ${F.FieldText}}`));Dr.compose({baseName:`data-grid-cell`,template:kr,styles:tu}),wr.compose({baseName:`data-grid-row`,template:Or,styles:eu}),Er.compose({baseName:`data-grid`,template:Tr,styles:$l});let nu={toView(e){return e==null?null:e?.toColorString()},fromView(e){if(e==null)return null;let t=Jo(e);return t?Qo.create(t.r,t.g,t.b):null}},ru=O` :host{background-color: ${Cc};color: ${H}}`.withBehaviors(eo(O` :host{background-color: ${F.ButtonFace};box-shadow: 0 0 0 1px ${F.CanvasText};color: ${F.ButtonText}}`));function G(e){return(t,n)=>{t[n+`Changed`]=function(t,n){n==null?e.deleteValueFor(this):e.setValueFor(this,n)}}}var K=class extends P{constructor(){super(),this.noPaint=!1;let e={handleChange:this.noPaintChanged.bind(this)};S.getNotifier(this).subscribe(e,`fillColor`),S.getNotifier(this).subscribe(e,`baseLayerLuminance`)}noPaintChanged(){!this.noPaint&&(this.fillColor!==void 0||this.baseLayerLuminance)?this.$fastController.addStyles(ru):this.$fastController.removeStyles(ru)}};W([D({attribute:`no-paint`,mode:`boolean`})],K.prototype,`noPaint`,void 0),W([D({attribute:`fill-color`,converter:nu}),G(Cc)],K.prototype,`fillColor`,void 0),W([D({attribute:`accent-color`,converter:nu,mode:`fromView`}),G(pc)],K.prototype,`accentColor`,void 0),W([D({attribute:`neutral-color`,converter:nu,mode:`fromView`}),G(dc)],K.prototype,`neutralColor`,void 0),W([D({converter:E}),G(ps)],K.prototype,`density`,void 0),W([D({attribute:`design-unit`,converter:E}),G(z)],K.prototype,`designUnit`,void 0),W([D({attribute:`direction`}),G(ms)],K.prototype,`direction`,void 0),W([D({attribute:`base-height-multiplier`,converter:E}),G(us)],K.prototype,`baseHeightMultiplier`,void 0),W([D({attribute:`base-horizontal-spacing-multiplier`,converter:E}),G(xne)],K.prototype,`baseHorizontalSpacingMultiplier`,void 0),W([D({attribute:`control-corner-radius`,converter:E}),G(fs)],K.prototype,`controlCornerRadius`,void 0),W([D({attribute:`stroke-width`,converter:E}),G(B)],K.prototype,`strokeWidth`,void 0),W([D({attribute:`focus-stroke-width`,converter:E}),G(gs)],K.prototype,`focusStrokeWidth`,void 0),W([D({attribute:`disabled-opacity`,converter:E}),G(hs)],K.prototype,`disabledOpacity`,void 0),W([D({attribute:`type-ramp-minus-2-font-size`}),G(xs)],K.prototype,`typeRampMinus2FontSize`,void 0),W([D({attribute:`type-ramp-minus-2-line-height`}),G(Ss)],K.prototype,`typeRampMinus2LineHeight`,void 0),W([D({attribute:`type-ramp-minus-1-font-size`}),G(ys)],K.prototype,`typeRampMinus1FontSize`,void 0),W([D({attribute:`type-ramp-minus-1-line-height`}),G(bs)],K.prototype,`typeRampMinus1LineHeight`,void 0),W([D({attribute:`type-ramp-base-font-size`}),G(_s)],K.prototype,`typeRampBaseFontSize`,void 0),W([D({attribute:`type-ramp-base-line-height`}),G(vs)],K.prototype,`typeRampBaseLineHeight`,void 0),W([D({attribute:`type-ramp-plus-1-font-size`}),G(Cs)],K.prototype,`typeRampPlus1FontSize`,void 0),W([D({attribute:`type-ramp-plus-1-line-height`}),G(ws)],K.prototype,`typeRampPlus1LineHeight`,void 0),W([D({attribute:`type-ramp-plus-2-font-size`}),G(Ts)],K.prototype,`typeRampPlus2FontSize`,void 0),W([D({attribute:`type-ramp-plus-2-line-height`}),G(Es)],K.prototype,`typeRampPlus2LineHeight`,void 0),W([D({attribute:`type-ramp-plus-3-font-size`}),G(Ds)],K.prototype,`typeRampPlus3FontSize`,void 0),W([D({attribute:`type-ramp-plus-3-line-height`}),G(Os)],K.prototype,`typeRampPlus3LineHeight`,void 0),W([D({attribute:`type-ramp-plus-4-font-size`}),G(ks)],K.prototype,`typeRampPlus4FontSize`,void 0),W([D({attribute:`type-ramp-plus-4-line-height`}),G(As)],K.prototype,`typeRampPlus4LineHeight`,void 0),W([D({attribute:`type-ramp-plus-5-font-size`}),G(js)],K.prototype,`typeRampPlus5FontSize`,void 0),W([D({attribute:`type-ramp-plus-5-line-height`}),G(Ms)],K.prototype,`typeRampPlus5LineHeight`,void 0),W([D({attribute:`type-ramp-plus-6-font-size`}),G(Ns)],K.prototype,`typeRampPlus6FontSize`,void 0),W([D({attribute:`type-ramp-plus-6-line-height`}),G(Ps)],K.prototype,`typeRampPlus6LineHeight`,void 0),W([D({attribute:`accent-fill-rest-delta`,converter:E}),G(Fs)],K.prototype,`accentFillRestDelta`,void 0),W([D({attribute:`accent-fill-hover-delta`,converter:E}),G(Is)],K.prototype,`accentFillHoverDelta`,void 0),W([D({attribute:`accent-fill-active-delta`,converter:E}),G(Ls)],K.prototype,`accentFillActiveDelta`,void 0),W([D({attribute:`accent-fill-focus-delta`,converter:E}),G(Rs)],K.prototype,`accentFillFocusDelta`,void 0),W([D({attribute:`accent-foreground-rest-delta`,converter:E}),G(zs)],K.prototype,`accentForegroundRestDelta`,void 0),W([D({attribute:`accent-foreground-hover-delta`,converter:E}),G(Bs)],K.prototype,`accentForegroundHoverDelta`,void 0),W([D({attribute:`accent-foreground-active-delta`,converter:E}),G(Vs)],K.prototype,`accentForegroundActiveDelta`,void 0),W([D({attribute:`accent-foreground-focus-delta`,converter:E}),G(Hs)],K.prototype,`accentForegroundFocusDelta`,void 0),W([D({attribute:`neutral-fill-rest-delta`,converter:E}),G(Us)],K.prototype,`neutralFillRestDelta`,void 0),W([D({attribute:`neutral-fill-hover-delta`,converter:E}),G(Ws)],K.prototype,`neutralFillHoverDelta`,void 0),W([D({attribute:`neutral-fill-active-delta`,converter:E}),G(Gs)],K.prototype,`neutralFillActiveDelta`,void 0),W([D({attribute:`neutral-fill-focus-delta`,converter:E}),G(Ks)],K.prototype,`neutralFillFocusDelta`,void 0),W([D({attribute:`neutral-fill-input-rest-delta`,converter:E}),G(qs)],K.prototype,`neutralFillInputRestDelta`,void 0),W([D({attribute:`neutral-fill-input-hover-delta`,converter:E}),G(Js)],K.prototype,`neutralFillInputHoverDelta`,void 0),W([D({attribute:`neutral-fill-input-active-delta`,converter:E}),G(Ys)],K.prototype,`neutralFillInputActiveDelta`,void 0),W([D({attribute:`neutral-fill-input-focus-delta`,converter:E}),G(Xs)],K.prototype,`neutralFillInputFocusDelta`,void 0),W([D({attribute:`neutral-fill-stealth-rest-delta`,converter:E}),G(Zs)],K.prototype,`neutralFillStealthRestDelta`,void 0),W([D({attribute:`neutral-fill-stealth-hover-delta`,converter:E}),G(Qs)],K.prototype,`neutralFillStealthHoverDelta`,void 0),W([D({attribute:`neutral-fill-stealth-active-delta`,converter:E}),G($s)],K.prototype,`neutralFillStealthActiveDelta`,void 0),W([D({attribute:`neutral-fill-stealth-focus-delta`,converter:E}),G(ec)],K.prototype,`neutralFillStealthFocusDelta`,void 0),W([D({attribute:`neutral-fill-strong-hover-delta`,converter:E}),G(nc)],K.prototype,`neutralFillStrongHoverDelta`,void 0),W([D({attribute:`neutral-fill-strong-active-delta`,converter:E}),G(rc)],K.prototype,`neutralFillStrongActiveDelta`,void 0),W([D({attribute:`neutral-fill-strong-focus-delta`,converter:E}),G(ic)],K.prototype,`neutralFillStrongFocusDelta`,void 0),W([D({attribute:`base-layer-luminance`,converter:E}),G(ds)],K.prototype,`baseLayerLuminance`,void 0),W([D({attribute:`neutral-fill-layer-rest-delta`,converter:E}),G(ac)],K.prototype,`neutralFillLayerRestDelta`,void 0),W([D({attribute:`neutral-stroke-divider-rest-delta`,converter:E}),G(uc)],K.prototype,`neutralStrokeDividerRestDelta`,void 0),W([D({attribute:`neutral-stroke-rest-delta`,converter:E}),G(oc)],K.prototype,`neutralStrokeRestDelta`,void 0),W([D({attribute:`neutral-stroke-hover-delta`,converter:E}),G(sc)],K.prototype,`neutralStrokeHoverDelta`,void 0),W([D({attribute:`neutral-stroke-active-delta`,converter:E}),G(cc)],K.prototype,`neutralStrokeActiveDelta`,void 0),W([D({attribute:`neutral-stroke-focus-delta`,converter:E}),G(lc)],K.prototype,`neutralStrokeFocusDelta`,void 0),K.compose({baseName:`design-system-provider`,template:(e,t)=>T`<slot></slot>`,styles:(e,t)=>O` ${ro(`block`)}`}),Pi.compose({baseName:`dialog`,template:fi,styles:(e,t)=>O` :host([hidden]){display: none}:host{--elevation: 14;--dialog-height: 480px;--dialog-width: 640px;display: block}.overlay{position: fixed;top: 0;left: 0;right: 0;bottom: 0;background: rgba(0, 0, 0, 0.3);touch-action: none}.positioning-region{display: flex;justify-content: center;position: fixed;top: 0;bottom: 0;left: 0;right: 0;overflow: auto}.control{${Dl} margin-top: auto;margin-bottom: auto;width: var(--dialog-width);height: var(--dialog-height);background-color: ${Cc};z-index: 1;border-radius: calc(${fs} * 1px);border: calc(${B} * 1px) solid transparent}`});let iu=(e,t)=>O` .disclosure{transition: height 0.35s}.disclosure .invoker::-webkit-details-marker{display: none}.disclosure .invoker{list-style-type: none}:host([appearance="accent"]) .invoker{background: ${Ec};color: ${Mc};font-family: ${ls};font-size: ${_s};border-radius: calc(${fs} * 1px);outline: none;cursor: pointer;margin: 16px 0;padding: 12px;max-width: max-content}:host([appearance="accent"]) .invoker:active{background: ${Oc};color: ${Pc}}:host([appearance="accent"]) .invoker:hover{background: ${Dc};color: ${Nc}}:host([appearance="lightweight"]) .invoker{background: transparent;color: ${Uc};border-bottom: calc(${B} * 1px) solid ${Uc};cursor: pointer;width: max-content;margin: 16px 0}:host([appearance="lightweight"]) .invoker:active{border-bottom-color: ${Gc}}:host([appearance="lightweight"]) .invoker:hover{border-bottom-color: ${Wc}}.disclosure[open] .invoker ~ *{animation: fadeIn 0.5s ease-in-out}@keyframes fadeIn{0%{opacity: 0}100%{opacity: 1}}`;var au=class extends Ri{constructor(){super(...arguments),this.height=0,this.totalHeight=0}connectedCallback(){super.connectedCallback(),this.appearance||(this.appearance=`accent`)}appearanceChanged(e,t){e!==t&&(this.classList.add(t),this.classList.remove(e))}onToggle(){super.onToggle(),this.details.style.setProperty(`height`,`${this.disclosureHeight}px`)}setup(){super.setup();let e=()=>this.details.getBoundingClientRect().height;this.show(),this.totalHeight=e(),this.hide(),this.height=e(),this.expanded&&this.show()}get disclosureHeight(){return this.expanded?this.totalHeight:this.height}};W([D],au.prototype,`appearance`,void 0),au.compose({baseName:`disclosure`,baseClass:Ri,template:Li,styles:iu});let ou=(e,t)=>O` ${ro(`block`)} :host{box-sizing: content-box;height: 0;margin: calc(${z} * 1px) 0;border-top: calc(${B} * 1px) solid ${Cl};border-left: none}:host([orientation="vertical"]){height: 100%;margin: 0 calc(${z} * 1px);border-top: none;border-left: calc(${B} * 1px) solid ${Cl}}`;Bi.compose({baseName:`divider`,template:zi,styles:ou});let su=(e,t)=>O` ${ro(`inline-flex`)} :host{width: calc(${U} * 1px);height: calc(${U} * 1px);justify-content: center;align-items: center;margin: 0;position: relative;fill: currentcolor;color: ${Mc};background: transparent;outline: none;border: none;padding: 0}:host::before{content: "";background: ${Ec};border: calc(${B} * 1px) solid ${Ec};border-radius: 50%;position: absolute;top: 0;right: 0;left: 0;bottom: 0;transition: all 0.1s ease-in-out}.next, .previous{position: relative;/* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */ width: 16px;height: 16px;display: grid}:host([disabled]){opacity: ${hs};cursor: ${no};fill: currentcolor;color: ${H};pointer-events: none}:host([disabled])::before, :host([disabled]:hover)::before, :host([disabled]:active)::before{background: ${il};border-color: ${yl}}:host(:hover){color: ${Nc}}:host(:hover)::before{background: ${Dc};border-color: ${Dc}}:host(:active){color: ${Pc}}:host(:active)::before{background: ${Oc};border-color: ${Oc}}:host(:${I}){outline: none}:host(:${I})::before{box-shadow: 0 0 0 calc((${gs} - ${B}) * 1px) ${V} inset, 0 0 0 calc((${gs} + ${B}) * 1px) ${gl} inset;border-color: ${V}}:host::-moz-focus-inner{border: 0}`.withBehaviors(eo(O` :host{background: ${F.Canvas}}:host .next, :host .previous{color: ${F.ButtonText};fill: currentcolor}:host::before{background: ${F.Canvas};border-color: ${F.ButtonText}}:host(:hover)::before{forced-color-adjust: none;background: ${F.Highlight};border-color: ${F.ButtonText};opacity: 1}:host(:hover) .next, :host(:hover) .previous{forced-color-adjust: none;color: ${F.HighlightText};fill: currentcolor}:host([disabled]){opacity: 1}:host([disabled])::before, :host([disabled]:hover)::before, :host([disabled]) .next, :host([disabled]) .previous{forced-color-adjust: none;background: ${F.Canvas};border-color: ${F.GrayText};color: ${F.GrayText};fill: ${F.GrayText}}:host(:${I})::before{forced-color-adjust: none;border-color: ${F.Highlight};box-shadow: 0 0 0 calc((${gs} - ${B}) * 1px) ${F.Highlight} inset}`));Ui.compose({baseName:`flipper`,template:Hi,styles:su,next:`
89
89
  <svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
90
90
  <path
91
91
  d="M4.023 15.273L11.29 8 4.023.727l.704-.704L12.71 8l-7.984 7.977-.704-.704z"
@@ -97,7 +97,7 @@ function W(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPrope
97
97
  d="M11.273 15.977L3.29 8 11.273.023l.704.704L4.71 8l7.266 7.273-.704.704z"
98
98
  />
99
99
  </svg>
100
- `});let Fne=O` .scroll-prev{right: auto;left: 0}.scroll.scroll-next::before, .scroll-next .scroll-action{left: auto;right: 0}.scroll.scroll-next::before{background: linear-gradient(to right, transparent, var(--scroll-fade-next))}.scroll-next .scroll-action{transform: translate(50%, -50%)}`,Ine=O` .scroll.scroll-next{right: auto;left: 0}.scroll.scroll-next::before{background: linear-gradient(to right, var(--scroll-fade-next), transparent);left: auto;right: 0}.scroll.scroll-prev::before{background: linear-gradient(to right, transparent, var(--scroll-fade-previous))}.scroll-prev .scroll-action{left: auto;right: 0;transform: translate(50%, -50%)}`,Lne=O` .scroll-area{position: relative}div.scroll-view{overflow-x: hidden}.scroll{bottom: 0;pointer-events: none;position: absolute;right: 0;top: 0;user-select: none;width: 100px}.scroll.disabled{display: none}.scroll::before, .scroll-action{left: 0;position: absolute}.scroll::before{background: linear-gradient(to right, var(--scroll-fade-previous), transparent);content: "";display: block;height: 100%;width: 100%}.scroll-action{pointer-events: auto;right: auto;top: 50%;transform: translate(-50%, -50%)}`.withBehaviors(new Nl(Fne,Ine)),cu=(e,t)=>O` ${ro(`block`)} :host{--scroll-align: center;--scroll-item-spacing: 5px;contain: layout;position: relative}.scroll-view{overflow-x: auto;scrollbar-width: none}::-webkit-scrollbar{display: none}.content-container{align-items: var(--scroll-align);display: inline-flex;flex-wrap: nowrap;position: relative}.content-container ::slotted(*){margin-right: var(--scroll-item-spacing)}.content-container ::slotted(*:last-child){margin-right: 0}`;var lu=class extends pa{connectedCallback(){super.connectedCallback(),this.view!==`mobile`&&this.$fastController.addStyles(Lne)}};lu.compose({baseName:`horizontal-scroll`,baseClass:pa,template:ma,styles:cu,nextFlipper:e=>T`<${e.tagFor(Ui)}@click="${e=>e.scrollToNext()}" aria-hidden="${e=>e.flippersHiddenFromAT}"></${e.tagFor(Ui)}>`,previousFlipper:e=>T`<${e.tagFor(Ui)}@click="${e=>e.scrollToPrevious()}" direction="previous" aria-hidden="${e=>e.flippersHiddenFromAT}"></${e.tagFor(Ui)}>`});let uu=(e,t)=>O` ${ro(`inline-flex`)} :host{align-items: center;font-family: ${ls};border-radius: calc(${z} * 1px);border: calc(${hs} * 1px) solid transparent;box-sizing: border-box;background: ${rl};color: ${H};cursor: pointer;flex: 0 0 auto;fill: currentcolor;font-size: ${gs};height: calc(${U} * 1px);line-height: ${_s};margin: 0 calc((${B} - ${hs}) * 1px);outline: none;overflow: hidden;padding: 0 1ch;user-select: none;white-space: nowrap}:host(:not([disabled]):not([aria-selected="true"]):hover){background: ${il}}:host(:not([disabled]):not([aria-selected="true"]):active){background: ${al}}:host([aria-selected="true"]){background: ${Tc};color: ${jc}}:host(:not([disabled])[aria-selected="true"]:hover){background: ${Ec};color: ${Mc}}:host(:not([disabled])[aria-selected="true"]:active){background: ${Dc};color: ${Nc}}:host([disabled]){cursor: ${no};opacity: ${ms}}.content{grid-column-start: 2;justify-self: start;overflow: hidden;text-overflow: ellipsis}.start, .end, ::slotted(svg){display: flex}::slotted(svg){/* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */ height: calc(${B} * 4px);width: calc(${B} * 4px)}::slotted([slot="end"]){margin-inline-start: 1ch}::slotted([slot="start"]){margin-inline-end: 1ch}:host([aria-checked="true"][aria-selected="false"]){border-color: ${hl}}:host([aria-checked="true"][aria-selected="true"]){border-color: ${hl};box-shadow: 0 0 0 calc(${hs} * 2 * 1px) inset ${gl}}`.withBehaviors(eo(O` :host{border-color: transparent;forced-color-adjust: none;color: ${F.ButtonText};fill: currentcolor}:host(:not([aria-selected="true"]):hover), :host([aria-selected="true"]){background: ${F.Highlight};color: ${F.HighlightText}}:host([disabled]), :host([disabled][aria-selected="false"]:hover){background: ${F.Canvas};color: ${F.GrayText};fill: currentcolor;opacity: 1}:host([aria-checked="true"][aria-selected="false"]){background: ${F.ButtonFace};color: ${F.ButtonText};border-color: ${F.ButtonText}}:host([aria-checked="true"][aria-selected="true"]), :host([aria-checked="true"][aria-selected="true"]:hover){background: ${F.Highlight};color: ${F.HighlightText};border-color: ${F.ButtonText}}`));Ir.compose({baseName:`option`,template:Wi,styles:uu});var du=class extends Gi{sizeChanged(e,t){super.sizeChanged(e,t),this.updateComputedStylesheet()}updateComputedStylesheet(){this.computedStylesheet&&this.$fastController.removeStyles(this.computedStylesheet);let e=`${this.size}`;this.computedStylesheet=O` :host{--size: ${e}}`,this.$fastController.addStyles(this.computedStylesheet)}};du.compose({baseName:`listbox`,baseClass:Gi,template:Ki,styles:Yl});let fu=(e,t)=>O` ${ro(`grid`)} :host{contain: layout;overflow: visible;font-family: ${ls};outline: none;box-sizing: border-box;height: calc(${U} * 1px);grid-template-columns: minmax(42px, auto) 1fr minmax(42px, auto);grid-template-rows: auto;justify-items: center;align-items: center;padding: 0;margin: 0 calc(${B} * 1px);white-space: nowrap;background: ${rl};color: ${H};fill: currentcolor;cursor: pointer;font-size: ${gs};line-height: ${_s};border-radius: calc(${z} * 1px);border: calc(${hs} * 1px) solid transparent}:host(:hover){position: relative;z-index: 1}:host(.indent-0){grid-template-columns: auto 1fr minmax(42px, auto)}:host(.indent-0) .content{grid-column: 1;grid-row: 1;margin-inline-start: 10px}:host(.indent-0) .expand-collapse-glyph-container{grid-column: 5;grid-row: 1}:host(.indent-2){grid-template-columns: minmax(42px, auto) minmax(42px, auto) 1fr minmax(42px, auto) minmax(42px, auto)}:host(.indent-2) .content{grid-column: 3;grid-row: 1;margin-inline-start: 10px}:host(.indent-2) .expand-collapse-glyph-container{grid-column: 5;grid-row: 1}:host(.indent-2) .start{grid-column: 2}:host(.indent-2) .end{grid-column: 4}:host(:${I}){border-color: ${hl};background: ${ol};color: ${H}}:host(:hover){background: ${il};color: ${H}}:host(:active){background: ${al}}:host([aria-checked="true"]), :host(.expanded){background: ${qc};color: ${H}}:host([disabled]){cursor: ${no};opacity: ${ms}}:host([disabled]:hover){color: ${H};fill: currentcolor;background: ${rl}}:host([disabled]:hover) .start, :host([disabled]:hover) .end, :host([disabled]:hover)::slotted(svg){fill: ${H}}.expand-collapse-glyph{/* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */ width: 16px;height: 16px;fill: currentcolor}.content{grid-column-start: 2;justify-self: start;overflow: hidden;text-overflow: ellipsis}.start, .end{display: flex;justify-content: center}::slotted(svg){/* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */ width: 16px;height: 16px}:host(:hover) .start, :host(:hover) .end, :host(:hover)::slotted(svg), :host(:active) .start, :host(:active) .end, :host(:active)::slotted(svg){fill: ${H}}:host(.indent-0[aria-haspopup="menu"]){display: grid;grid-template-columns: minmax(42px, auto) auto 1fr minmax(42px, auto) minmax(42px, auto);align-items: center;min-height: 32px}:host(.indent-1[aria-haspopup="menu"]), :host(.indent-1[role="menuitemcheckbox"]), :host(.indent-1[role="menuitemradio"]){display: grid;grid-template-columns: minmax(42px, auto) auto 1fr minmax(42px, auto) minmax(42px, auto);align-items: center;min-height: 32px}:host(.indent-2:not([aria-haspopup="menu"])) .end{grid-column: 5}:host .input-container, :host .expand-collapse-glyph-container{display: none}:host([aria-haspopup="menu"]) .expand-collapse-glyph-container, :host([role="menuitemcheckbox"]) .input-container, :host([role="menuitemradio"]) .input-container{display: grid;margin-inline-end: 10px}:host([aria-haspopup="menu"]) .content, :host([role="menuitemcheckbox"]) .content, :host([role="menuitemradio"]) .content{grid-column-start: 3}:host([aria-haspopup="menu"].indent-0) .content{grid-column-start: 1}:host([aria-haspopup="menu"]) .end, :host([role="menuitemcheckbox"]) .end, :host([role="menuitemradio"]) .end{grid-column-start: 4}:host .expand-collapse, :host .checkbox, :host .radio{display: flex;align-items: center;justify-content: center;position: relative;width: 20px;height: 20px;box-sizing: border-box;outline: none;margin-inline-start: 10px}:host .checkbox, :host .radio{border: calc(${V} * 1px) solid ${H}}:host([aria-checked="true"]) .checkbox, :host([aria-checked="true"]) .radio{background: ${Tc};border-color: ${Tc}}:host .checkbox{border-radius: calc(${z} * 1px)}:host .radio{border-radius: 999px}:host .checkbox-indicator, :host .radio-indicator, :host .expand-collapse-indicator, ::slotted([slot="checkbox-indicator"]), ::slotted([slot="radio-indicator"]), ::slotted([slot="expand-collapse-indicator"]){display: none}::slotted([slot="end"]:not(svg)){margin-inline-end: 10px;color: ${_l}}:host([aria-checked="true"]) .checkbox-indicator, :host([aria-checked="true"]) ::slotted([slot="checkbox-indicator"]){width: 100%;height: 100%;display: block;fill: ${jc};pointer-events: none}:host([aria-checked="true"]) .radio-indicator{position: absolute;top: 4px;left: 4px;right: 4px;bottom: 4px;border-radius: 999px;display: block;background: ${jc};pointer-events: none}:host([aria-checked="true"]) ::slotted([slot="radio-indicator"]){display: block;pointer-events: none}`.withBehaviors(eo(O` :host{border-color: transparent;color: ${F.ButtonText};forced-color-adjust: none}:host(:hover){background: ${F.Highlight};color: ${F.HighlightText}}:host(:hover) .start, :host(:hover) .end, :host(:hover)::slotted(svg), :host(:active) .start, :host(:active) .end, :host(:active)::slotted(svg){fill: ${F.HighlightText}}:host(.expanded){background: ${F.Highlight};border-color: ${F.Highlight};color: ${F.HighlightText}}:host(:${I}){background: ${F.Highlight};border-color: ${F.ButtonText};box-shadow: 0 0 0 calc(${hs} * 1px) inset ${F.HighlightText};color: ${F.HighlightText};fill: currentcolor}:host([disabled]), :host([disabled]:hover), :host([disabled]:hover) .start, :host([disabled]:hover) .end, :host([disabled]:hover)::slotted(svg){background: ${F.Canvas};color: ${F.GrayText};fill: currentcolor;opacity: 1}:host .expanded-toggle, :host .checkbox, :host .radio{border-color: ${F.ButtonText};background: ${F.HighlightText}}:host([checked="true"]) .checkbox, :host([checked="true"]) .radio{background: ${F.HighlightText};border-color: ${F.HighlightText}}:host(:hover) .expanded-toggle, :host(:hover) .checkbox, :host(:hover) .radio, :host(:${I}) .expanded-toggle, :host(:${I}) .checkbox, :host(:${I}) .radio, :host([checked="true"]:hover) .checkbox, :host([checked="true"]:hover) .radio, :host([checked="true"]:${I}) .checkbox, :host([checked="true"]:${I}) .radio{border-color: ${F.HighlightText}}:host([aria-checked="true"]){background: ${F.Highlight};color: ${F.HighlightText}}:host([aria-checked="true"]) .checkbox-indicator, :host([aria-checked="true"]) ::slotted([slot="checkbox-indicator"]), :host([aria-checked="true"]) ::slotted([slot="radio-indicator"]){fill: ${F.Highlight}}:host([aria-checked="true"]) .radio-indicator{background: ${F.Highlight}}::slotted([slot="end"]:not(svg)){color: ${F.ButtonText}}:host(:hover) ::slotted([slot="end"]:not(svg)), :host(:${I}) ::slotted([slot="end"]:not(svg)){color: ${F.HighlightText}}`),new Nl(O` .expand-collapse-glyph{transform: rotate(0deg)}`,O` .expand-collapse-glyph{transform: rotate(180deg)}`));$i.compose({baseName:`menu-item`,template:ea,styles:fu,checkboxIndicator:`
100
+ `});let Fne=O` .scroll-prev{right: auto;left: 0}.scroll.scroll-next::before, .scroll-next .scroll-action{left: auto;right: 0}.scroll.scroll-next::before{background: linear-gradient(to right, transparent, var(--scroll-fade-next))}.scroll-next .scroll-action{transform: translate(50%, -50%)}`,Ine=O` .scroll.scroll-next{right: auto;left: 0}.scroll.scroll-next::before{background: linear-gradient(to right, var(--scroll-fade-next), transparent);left: auto;right: 0}.scroll.scroll-prev::before{background: linear-gradient(to right, transparent, var(--scroll-fade-previous))}.scroll-prev .scroll-action{left: auto;right: 0;transform: translate(50%, -50%)}`,Lne=O` .scroll-area{position: relative}div.scroll-view{overflow-x: hidden}.scroll{bottom: 0;pointer-events: none;position: absolute;right: 0;top: 0;user-select: none;width: 100px}.scroll.disabled{display: none}.scroll::before, .scroll-action{left: 0;position: absolute}.scroll::before{background: linear-gradient(to right, var(--scroll-fade-previous), transparent);content: "";display: block;height: 100%;width: 100%}.scroll-action{pointer-events: auto;right: auto;top: 50%;transform: translate(-50%, -50%)}`.withBehaviors(new Nl(Fne,Ine)),cu=(e,t)=>O` ${ro(`block`)} :host{--scroll-align: center;--scroll-item-spacing: 5px;contain: layout;position: relative}.scroll-view{overflow-x: auto;scrollbar-width: none}::-webkit-scrollbar{display: none}.content-container{align-items: var(--scroll-align);display: inline-flex;flex-wrap: nowrap;position: relative}.content-container ::slotted(*){margin-right: var(--scroll-item-spacing)}.content-container ::slotted(*:last-child){margin-right: 0}`;var lu=class extends pa{connectedCallback(){super.connectedCallback(),this.view!==`mobile`&&this.$fastController.addStyles(Lne)}};lu.compose({baseName:`horizontal-scroll`,baseClass:pa,template:ma,styles:cu,nextFlipper:e=>T`<${e.tagFor(Ui)}@click="${e=>e.scrollToNext()}" aria-hidden="${e=>e.flippersHiddenFromAT}"></${e.tagFor(Ui)}>`,previousFlipper:e=>T`<${e.tagFor(Ui)}@click="${e=>e.scrollToPrevious()}" direction="previous" aria-hidden="${e=>e.flippersHiddenFromAT}"></${e.tagFor(Ui)}>`});let uu=(e,t)=>O` ${ro(`inline-flex`)} :host{align-items: center;font-family: ${ls};border-radius: calc(${fs} * 1px);border: calc(${gs} * 1px) solid transparent;box-sizing: border-box;background: ${il};color: ${H};cursor: pointer;flex: 0 0 auto;fill: currentcolor;font-size: ${_s};height: calc(${U} * 1px);line-height: ${vs};margin: 0 calc((${z} - ${gs}) * 1px);outline: none;overflow: hidden;padding: 0 1ch;user-select: none;white-space: nowrap}:host(:not([disabled]):not([aria-selected="true"]):hover){background: ${al}}:host(:not([disabled]):not([aria-selected="true"]):active){background: ${ol}}:host([aria-selected="true"]){background: ${Ec};color: ${Mc}}:host(:not([disabled])[aria-selected="true"]:hover){background: ${Dc};color: ${Nc}}:host(:not([disabled])[aria-selected="true"]:active){background: ${Oc};color: ${Pc}}:host([disabled]){cursor: ${no};opacity: ${hs}}.content{grid-column-start: 2;justify-self: start;overflow: hidden;text-overflow: ellipsis}.start, .end, ::slotted(svg){display: flex}::slotted(svg){/* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */ height: calc(${z} * 4px);width: calc(${z} * 4px)}::slotted([slot="end"]){margin-inline-start: 1ch}::slotted([slot="start"]){margin-inline-end: 1ch}:host([aria-checked="true"][aria-selected="false"]){border-color: ${V}}:host([aria-checked="true"][aria-selected="true"]){border-color: ${V};box-shadow: 0 0 0 calc(${gs} * 2 * 1px) inset ${gl}}`.withBehaviors(eo(O` :host{border-color: transparent;forced-color-adjust: none;color: ${F.ButtonText};fill: currentcolor}:host(:not([aria-selected="true"]):hover), :host([aria-selected="true"]){background: ${F.Highlight};color: ${F.HighlightText}}:host([disabled]), :host([disabled][aria-selected="false"]:hover){background: ${F.Canvas};color: ${F.GrayText};fill: currentcolor;opacity: 1}:host([aria-checked="true"][aria-selected="false"]){background: ${F.ButtonFace};color: ${F.ButtonText};border-color: ${F.ButtonText}}:host([aria-checked="true"][aria-selected="true"]), :host([aria-checked="true"][aria-selected="true"]:hover){background: ${F.Highlight};color: ${F.HighlightText};border-color: ${F.ButtonText}}`));Ir.compose({baseName:`option`,template:Wi,styles:uu});var du=class extends Gi{sizeChanged(e,t){super.sizeChanged(e,t),this.updateComputedStylesheet()}updateComputedStylesheet(){this.computedStylesheet&&this.$fastController.removeStyles(this.computedStylesheet);let e=`${this.size}`;this.computedStylesheet=O` :host{--size: ${e}}`,this.$fastController.addStyles(this.computedStylesheet)}};du.compose({baseName:`listbox`,baseClass:Gi,template:Ki,styles:Yl});let fu=(e,t)=>O` ${ro(`grid`)} :host{contain: layout;overflow: visible;font-family: ${ls};outline: none;box-sizing: border-box;height: calc(${U} * 1px);grid-template-columns: minmax(42px, auto) 1fr minmax(42px, auto);grid-template-rows: auto;justify-items: center;align-items: center;padding: 0;margin: 0 calc(${z} * 1px);white-space: nowrap;background: ${il};color: ${H};fill: currentcolor;cursor: pointer;font-size: ${_s};line-height: ${vs};border-radius: calc(${fs} * 1px);border: calc(${gs} * 1px) solid transparent}:host(:hover){position: relative;z-index: 1}:host(.indent-0){grid-template-columns: auto 1fr minmax(42px, auto)}:host(.indent-0) .content{grid-column: 1;grid-row: 1;margin-inline-start: 10px}:host(.indent-0) .expand-collapse-glyph-container{grid-column: 5;grid-row: 1}:host(.indent-2){grid-template-columns: minmax(42px, auto) minmax(42px, auto) 1fr minmax(42px, auto) minmax(42px, auto)}:host(.indent-2) .content{grid-column: 3;grid-row: 1;margin-inline-start: 10px}:host(.indent-2) .expand-collapse-glyph-container{grid-column: 5;grid-row: 1}:host(.indent-2) .start{grid-column: 2}:host(.indent-2) .end{grid-column: 4}:host(:${I}){border-color: ${V};background: ${sl};color: ${H}}:host(:hover){background: ${al};color: ${H}}:host(:active){background: ${ol}}:host([aria-checked="true"]), :host(.expanded){background: ${Jc};color: ${H}}:host([disabled]){cursor: ${no};opacity: ${hs}}:host([disabled]:hover){color: ${H};fill: currentcolor;background: ${il}}:host([disabled]:hover) .start, :host([disabled]:hover) .end, :host([disabled]:hover)::slotted(svg){fill: ${H}}.expand-collapse-glyph{/* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */ width: 16px;height: 16px;fill: currentcolor}.content{grid-column-start: 2;justify-self: start;overflow: hidden;text-overflow: ellipsis}.start, .end{display: flex;justify-content: center}::slotted(svg){/* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */ width: 16px;height: 16px}:host(:hover) .start, :host(:hover) .end, :host(:hover)::slotted(svg), :host(:active) .start, :host(:active) .end, :host(:active)::slotted(svg){fill: ${H}}:host(.indent-0[aria-haspopup="menu"]){display: grid;grid-template-columns: minmax(42px, auto) auto 1fr minmax(42px, auto) minmax(42px, auto);align-items: center;min-height: 32px}:host(.indent-1[aria-haspopup="menu"]), :host(.indent-1[role="menuitemcheckbox"]), :host(.indent-1[role="menuitemradio"]){display: grid;grid-template-columns: minmax(42px, auto) auto 1fr minmax(42px, auto) minmax(42px, auto);align-items: center;min-height: 32px}:host(.indent-2:not([aria-haspopup="menu"])) .end{grid-column: 5}:host .input-container, :host .expand-collapse-glyph-container{display: none}:host([aria-haspopup="menu"]) .expand-collapse-glyph-container, :host([role="menuitemcheckbox"]) .input-container, :host([role="menuitemradio"]) .input-container{display: grid;margin-inline-end: 10px}:host([aria-haspopup="menu"]) .content, :host([role="menuitemcheckbox"]) .content, :host([role="menuitemradio"]) .content{grid-column-start: 3}:host([aria-haspopup="menu"].indent-0) .content{grid-column-start: 1}:host([aria-haspopup="menu"]) .end, :host([role="menuitemcheckbox"]) .end, :host([role="menuitemradio"]) .end{grid-column-start: 4}:host .expand-collapse, :host .checkbox, :host .radio{display: flex;align-items: center;justify-content: center;position: relative;width: 20px;height: 20px;box-sizing: border-box;outline: none;margin-inline-start: 10px}:host .checkbox, :host .radio{border: calc(${B} * 1px) solid ${H}}:host([aria-checked="true"]) .checkbox, :host([aria-checked="true"]) .radio{background: ${Ec};border-color: ${Ec}}:host .checkbox{border-radius: calc(${fs} * 1px)}:host .radio{border-radius: 999px}:host .checkbox-indicator, :host .radio-indicator, :host .expand-collapse-indicator, ::slotted([slot="checkbox-indicator"]), ::slotted([slot="radio-indicator"]), ::slotted([slot="expand-collapse-indicator"]){display: none}::slotted([slot="end"]:not(svg)){margin-inline-end: 10px;color: ${_l}}:host([aria-checked="true"]) .checkbox-indicator, :host([aria-checked="true"]) ::slotted([slot="checkbox-indicator"]){width: 100%;height: 100%;display: block;fill: ${Mc};pointer-events: none}:host([aria-checked="true"]) .radio-indicator{position: absolute;top: 4px;left: 4px;right: 4px;bottom: 4px;border-radius: 999px;display: block;background: ${Mc};pointer-events: none}:host([aria-checked="true"]) ::slotted([slot="radio-indicator"]){display: block;pointer-events: none}`.withBehaviors(eo(O` :host{border-color: transparent;color: ${F.ButtonText};forced-color-adjust: none}:host(:hover){background: ${F.Highlight};color: ${F.HighlightText}}:host(:hover) .start, :host(:hover) .end, :host(:hover)::slotted(svg), :host(:active) .start, :host(:active) .end, :host(:active)::slotted(svg){fill: ${F.HighlightText}}:host(.expanded){background: ${F.Highlight};border-color: ${F.Highlight};color: ${F.HighlightText}}:host(:${I}){background: ${F.Highlight};border-color: ${F.ButtonText};box-shadow: 0 0 0 calc(${gs} * 1px) inset ${F.HighlightText};color: ${F.HighlightText};fill: currentcolor}:host([disabled]), :host([disabled]:hover), :host([disabled]:hover) .start, :host([disabled]:hover) .end, :host([disabled]:hover)::slotted(svg){background: ${F.Canvas};color: ${F.GrayText};fill: currentcolor;opacity: 1}:host .expanded-toggle, :host .checkbox, :host .radio{border-color: ${F.ButtonText};background: ${F.HighlightText}}:host([checked="true"]) .checkbox, :host([checked="true"]) .radio{background: ${F.HighlightText};border-color: ${F.HighlightText}}:host(:hover) .expanded-toggle, :host(:hover) .checkbox, :host(:hover) .radio, :host(:${I}) .expanded-toggle, :host(:${I}) .checkbox, :host(:${I}) .radio, :host([checked="true"]:hover) .checkbox, :host([checked="true"]:hover) .radio, :host([checked="true"]:${I}) .checkbox, :host([checked="true"]:${I}) .radio{border-color: ${F.HighlightText}}:host([aria-checked="true"]){background: ${F.Highlight};color: ${F.HighlightText}}:host([aria-checked="true"]) .checkbox-indicator, :host([aria-checked="true"]) ::slotted([slot="checkbox-indicator"]), :host([aria-checked="true"]) ::slotted([slot="radio-indicator"]){fill: ${F.Highlight}}:host([aria-checked="true"]) .radio-indicator{background: ${F.Highlight}}::slotted([slot="end"]:not(svg)){color: ${F.ButtonText}}:host(:hover) ::slotted([slot="end"]:not(svg)), :host(:${I}) ::slotted([slot="end"]:not(svg)){color: ${F.HighlightText}}`),new Nl(O` .expand-collapse-glyph{transform: rotate(0deg)}`,O` .expand-collapse-glyph{transform: rotate(180deg)}`));$i.compose({baseName:`menu-item`,template:ea,styles:fu,checkboxIndicator:`
101
101
  <svg
102
102
  part="checkbox-indicator"
103
103
  class="checkbox-indicator"
@@ -123,11 +123,11 @@ function W(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPrope
123
123
  </svg>
124
124
  `,radioIndicator:`
125
125
  <span part="radio-indicator" class="radio-indicator"></span>
126
- `});let pu=(e,t)=>O` ${ro(`block`)} :host{--elevation: 11;background: ${Sc};border: calc(${V} * 1px) solid transparent;${Dl} margin: 0;border-radius: calc(${z} * 1px);padding: calc(${B} * 1px) 0;max-width: 368px;min-width: 64px}:host([slot="submenu"]){width: max-content;margin: 0 calc(${B} * 1px)}::slotted(hr){box-sizing: content-box;height: 0;margin: 0;border: none;border-top: calc(${V} * 1px) solid ${Cl}}`.withBehaviors(eo(O` :host{background: ${F.Canvas};border-color: ${F.CanvasText}}`));var mu=class extends na{connectedCallback(){super.connectedCallback(),Sc.setValueFor(this,hc)}};mu.compose({baseName:`menu`,template:ta,styles:pu});let hu=(e,t)=>O` ${ro(`inline-block`)} :host{font-family: ${ls};outline: none;user-select: none}.root{box-sizing: border-box;position: relative;display: flex;flex-direction: row;color: ${H};background: ${Qc};border-radius: calc(${z} * 1px);border: calc(${V} * 1px) solid ${Tc};height: calc(${U} * 1px);align-items: baseline}.control{-webkit-appearance: none;font: inherit;background: transparent;border: 0;color: inherit;height: calc(100% - 4px);width: 100%;margin-top: auto;margin-bottom: auto;border: none;padding: 0 calc(${B} * 2px + 1px);font-size: ${gs};line-height: ${_s}}.control:hover, .control:${I}, .control:disabled, .control:active{outline: none}.controls{opacity: 0}.label{display: block;color: ${H};cursor: pointer;font-size: ${gs};line-height: ${_s};margin-bottom: 4px}.label__hidden{display: none;visibility: hidden}.start, .control, .controls, .end{align-self: center}.start, .end{margin: auto;fill: currentcolor}.step-up-glyph, .step-down-glyph{display: block;padding: 4px 10px;cursor: pointer}.step-up-glyph:before, .step-down-glyph:before{content: '';display: block;border: solid transparent 6px}.step-up-glyph:before{border-bottom-color: ${H}}.step-down-glyph:before{border-top-color: ${H}}::slotted(svg){/* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */ width: 16px;height: 16px}.start{margin-inline-start: 11px}.end{margin-inline-end: 11px}:host(:hover:not([disabled])) .root{background: ${$c};border-color: ${Ec}}:host(:active:not([disabled])) .root{background: ${$c};border-color: ${Dc}}:host(:focus-within:not([disabled])) .root{border-color: ${hl};box-shadow: 0 0 0 calc(${hs} * 1px) ${hl} inset}:host(:hover:not([disabled])) .controls, :host(:focus-within:not([disabled])) .controls{opacity: 1}:host([appearance="filled"]) .root{background: ${qc}}:host([appearance="filled"]:hover:not([disabled])) .root{background: ${Jc}}:host([disabled]) .label, :host([readonly]) .label, :host([readonly]) .control, :host([disabled]) .control{cursor: ${no}}:host([disabled]){opacity: ${ms}}:host([disabled]) .control{border-color: ${yl}}`.withBehaviors(eo(O` .root, :host([appearance="filled"]) .root{forced-color-adjust: none;background: ${F.Field};border-color: ${F.FieldText}}:host(:hover:not([disabled])) .root, :host([appearance="filled"]:hover:not([disabled])) .root, :host([appearance="filled"]:hover) .root{background: ${F.Field};border-color: ${F.Highlight}}.start, .end{fill: currentcolor}:host([disabled]){opacity: 1}:host([disabled]) .root, :host([appearance="filled"]:hover[disabled]) .root{border-color: ${F.GrayText};background: ${F.Field}}:host(:focus-within:enabled) .root{border-color: ${F.Highlight};box-shadow: 0 0 0 1px ${F.Highlight} inset}input::placeholder{color: ${F.GrayText}}`));var gu=class extends aa{constructor(){super(...arguments),this.appearance=`outline`}};W([D],gu.prototype,`appearance`,void 0),gu.compose({baseName:`number-field`,baseClass:aa,styles:hu,template:vte,shadowOptions:{delegatesFocus:!0},stepDownGlyph:`
126
+ `});let pu=(e,t)=>O` ${ro(`block`)} :host{--elevation: 11;background: ${Cc};border: calc(${B} * 1px) solid transparent;${Dl} margin: 0;border-radius: calc(${fs} * 1px);padding: calc(${z} * 1px) 0;max-width: 368px;min-width: 64px}:host([slot="submenu"]){width: max-content;margin: 0 calc(${z} * 1px)}::slotted(hr){box-sizing: content-box;height: 0;margin: 0;border: none;border-top: calc(${B} * 1px) solid ${Cl}}`.withBehaviors(eo(O` :host{background: ${F.Canvas};border-color: ${F.CanvasText}}`));var mu=class extends na{connectedCallback(){super.connectedCallback(),Cc.setValueFor(this,gc)}};mu.compose({baseName:`menu`,template:ta,styles:pu});let hu=(e,t)=>O` ${ro(`inline-block`)} :host{font-family: ${ls};outline: none;user-select: none}.root{box-sizing: border-box;position: relative;display: flex;flex-direction: row;color: ${H};background: ${$c};border-radius: calc(${fs} * 1px);border: calc(${B} * 1px) solid ${Ec};height: calc(${U} * 1px);align-items: baseline}.control{-webkit-appearance: none;font: inherit;background: transparent;border: 0;color: inherit;height: calc(100% - 4px);width: 100%;margin-top: auto;margin-bottom: auto;border: none;padding: 0 calc(${z} * 2px + 1px);font-size: ${_s};line-height: ${vs}}.control:hover, .control:${I}, .control:disabled, .control:active{outline: none}.controls{opacity: 0}.label{display: block;color: ${H};cursor: pointer;font-size: ${_s};line-height: ${vs};margin-bottom: 4px}.label__hidden{display: none;visibility: hidden}.start, .control, .controls, .end{align-self: center}.start, .end{margin: auto;fill: currentcolor}.step-up-glyph, .step-down-glyph{display: block;padding: 4px 10px;cursor: pointer}.step-up-glyph:before, .step-down-glyph:before{content: '';display: block;border: solid transparent 6px}.step-up-glyph:before{border-bottom-color: ${H}}.step-down-glyph:before{border-top-color: ${H}}::slotted(svg){/* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */ width: 16px;height: 16px}.start{margin-inline-start: 11px}.end{margin-inline-end: 11px}:host(:hover:not([disabled])) .root{background: ${el};border-color: ${Dc}}:host(:active:not([disabled])) .root{background: ${el};border-color: ${Oc}}:host(:focus-within:not([disabled])) .root{border-color: ${V};box-shadow: 0 0 0 calc(${gs} * 1px) ${V} inset}:host(:hover:not([disabled])) .controls, :host(:focus-within:not([disabled])) .controls{opacity: 1}:host([appearance="filled"]) .root{background: ${Jc}}:host([appearance="filled"]:hover:not([disabled])) .root{background: ${Yc}}:host([disabled]) .label, :host([readonly]) .label, :host([readonly]) .control, :host([disabled]) .control{cursor: ${no}}:host([disabled]){opacity: ${hs}}:host([disabled]) .control{border-color: ${yl}}`.withBehaviors(eo(O` .root, :host([appearance="filled"]) .root{forced-color-adjust: none;background: ${F.Field};border-color: ${F.FieldText}}:host(:hover:not([disabled])) .root, :host([appearance="filled"]:hover:not([disabled])) .root, :host([appearance="filled"]:hover) .root{background: ${F.Field};border-color: ${F.Highlight}}.start, .end{fill: currentcolor}:host([disabled]){opacity: 1}:host([disabled]) .root, :host([appearance="filled"]:hover[disabled]) .root{border-color: ${F.GrayText};background: ${F.Field}}:host(:focus-within:enabled) .root{border-color: ${F.Highlight};box-shadow: 0 0 0 1px ${F.Highlight} inset}input::placeholder{color: ${F.GrayText}}`));var gu=class extends aa{constructor(){super(...arguments),this.appearance=`outline`}};W([D],gu.prototype,`appearance`,void 0),gu.compose({baseName:`number-field`,baseClass:aa,styles:hu,template:vte,shadowOptions:{delegatesFocus:!0},stepDownGlyph:`
127
127
  <span class="step-down-glyph" part="step-down-glyph"></span>
128
128
  `,stepUpGlyph:`
129
129
  <span class="step-up-glyph" part="step-up-glyph"></span>
130
- `}),Zi.compose({baseName:`picker`,template:lte,styles:(e,t)=>O` .region{z-index: 1000;overflow: hidden;display: flex;font-family: ${ls};font-size: ${gs}}.loaded{opacity: 1;pointer-events: none}.loading-display, .no-options-display{background: ${Sc};width: 100%;min-height: calc(${U} * 1px);display: flex;flex-direction: column;align-items: center;justify-items: center;padding: calc(${B} * 1px)}.loading-progress{width: 42px;height: 42px}.bottom{flex-direction: column}.top{flex-direction: column-reverse}`,shadowOptions:{}}),class extends qi{connectedCallback(){Sc.setValueFor(this,hc),super.connectedCallback()}}.compose({baseName:`picker-menu`,baseClass:qi,template:pte,styles:(e,t)=>O` :host{background: ${Sc};--elevation: 11;/* TODO: a mechanism to manage z-index across components https://github.com/microsoft/fast/issues/3813 */ z-index: 1000;display: flex;width: 100%;max-height: 100%;min-height: 58px;box-sizing: border-box;flex-direction: column;overflow-y: auto;overflow-x: hidden;pointer-events: auto;border-radius: calc(${z} * 1px);padding: calc(${B} * 1px) 0;border: calc(${V} * 1px) solid transparent;${Dl}}.suggestions-available-alert{height: 0;opacity: 0;overflow: hidden}`.withBehaviors(eo(O` :host{background: ${F.Canvas};border-color: ${F.CanvasText}}`))}),Ji.compose({baseName:`picker-menu-option`,template:mte,styles:(e,t)=>O` :host{display: flex;align-items: center;justify-items: center;font-family: ${ls};border-radius: calc(${z} * 1px);border: calc(${hs} * 1px) solid transparent;box-sizing: border-box;background: ${rl};color: ${H};cursor: pointer;fill: currentcolor;font-size: ${gs};min-height: calc(${U} * 1px);line-height: ${_s};margin: 0 calc(${B} * 1px);outline: none;overflow: hidden;padding: 0 calc(${B} * 2.25px);user-select: none;white-space: nowrap}:host(:${I}[role="listitem"]){border-color: ${hl};background: ${ol}}:host(:hover){background: ${il}}:host(:active){background: ${al}}:host([aria-selected="true"]){background: ${Tc};color: ${jc}}:host([aria-selected="true"]:hover){background: ${Ec};color: ${Mc}}:host([aria-selected="true"]:active){background: ${Dc};color: ${Nc}}`.withBehaviors(eo(O` :host{border-color: transparent;forced-color-adjust: none;color: ${F.ButtonText};fill: currentcolor}:host(:not([aria-selected="true"]):hover), :host([aria-selected="true"]){background: ${F.Highlight};color: ${F.HighlightText}}:host([disabled]), :host([disabled]:not([aria-selected="true"]):hover){background: ${F.Canvas};color: ${F.GrayText};fill: currentcolor;opacity: 1}`))}),Yi.compose({baseName:`picker-list`,template:hte,styles:(e,t)=>O` :host{display: flex;flex-direction: row;column-gap: calc(${B} * 1px);row-gap: calc(${B} * 1px);flex-wrap: wrap}::slotted([role="combobox"]){min-width: 260px;width: auto;box-sizing: border-box;color: ${H};background: ${Qc};border-radius: calc(${z} * 1px);border: calc(${V} * 1px) solid ${Tc};height: calc(${U} * 1px);font-family: ${ls};outline: none;user-select: none;font-size: ${gs};line-height: ${_s};padding: 0 calc(${B} * 2px + 1px)}::slotted([role="combobox"]:active){{background: ${$c};border-color: ${Dc}}::slotted([role="combobox"]:focus-within){border-color: ${hl};box-shadow: 0 0 0 1px ${hl} inset}`.withBehaviors(eo(O` ::slotted([role="combobox"]:active){background: ${F.Field};border-color: ${F.Highlight}}::slotted([role="combobox"]:focus-within){border-color: ${F.Highlight};box-shadow: 0 0 0 1px ${F.Highlight} inset}::slotted(input:placeholder){color: ${F.GrayText}}`))}),Xi.compose({baseName:`picker-list-item`,template:gte,styles:(e,t)=>O` :host{display: flex;align-items: center;justify-items: center;font-family: ${ls};border-radius: calc(${z} * 1px);border: calc(${hs} * 1px) solid transparent;box-sizing: border-box;background: ${rl};color: ${H};cursor: pointer;fill: currentcolor;font-size: ${gs};height: calc(${U} * 1px);line-height: ${_s};outline: none;overflow: hidden;padding: 0 calc(${B} * 2.25px);user-select: none;white-space: nowrap}:host(:hover){background: ${il}}:host(:active){background: ${al}}:host(:${I}){background: ${ol};border-color: ${hl}}:host([aria-selected="true"]){background: ${Tc};color: ${Nc}}`.withBehaviors(eo(O` :host{border-color: transparent;forced-color-adjust: none;color: ${F.ButtonText};fill: currentcolor}:host(:not([aria-selected="true"]):hover), :host([aria-selected="true"]){background: ${F.Highlight};color: ${F.HighlightText}}:host([disabled]), :host([disabled]:not([aria-selected="true"]):hover){background: ${F.Canvas};color: ${F.GrayText};fill: currentcolor;opacity: 1}`))});let _u=(e,t)=>O` ${ro(`flex`)} :host{align-items: center;outline: none;height: calc(${U} * 1px);width: calc(${U} * 1px);margin: calc(${U} * 1px) 0}.progress{height: 100%;width: 100%}.background{stroke: ${qc};fill: none;stroke-width: 2px}.determinate{stroke: ${Hc};fill: none;stroke-width: 2px;stroke-linecap: round;transform-origin: 50% 50%;transform: rotate(-90deg);transition: all 0.2s ease-in-out}.indeterminate-indicator-1{stroke: ${Hc};fill: none;stroke-width: 2px;stroke-linecap: round;transform-origin: 50% 50%;transform: rotate(-90deg);transition: all 0.2s ease-in-out;animation: spin-infinite 2s linear infinite}:host([paused]) .indeterminate-indicator-1{animation-play-state: paused;stroke: ${qc}}:host([paused]) .determinate{stroke: ${_l}}@keyframes spin-infinite{0%{stroke-dasharray: 0.01px 43.97px;transform: rotate(0deg)}50%{stroke-dasharray: 21.99px 21.99px;transform: rotate(450deg)}100%{stroke-dasharray: 0.01px 43.97px;transform: rotate(1080deg)}}`.withBehaviors(eo(O` .indeterminate-indicator-1, .determinate{stroke: ${F.FieldText}}.background{stroke: ${F.Field}}:host([paused]) .indeterminate-indicator-1{stroke: ${F.Field}}:host([paused]) .determinate{stroke: ${F.GrayText}}`));sa.compose({baseName:`progress-ring`,template:oa,styles:_u,indeterminateIndicator:`
130
+ `}),Zi.compose({baseName:`picker`,template:lte,styles:(e,t)=>O` .region{z-index: 1000;overflow: hidden;display: flex;font-family: ${ls};font-size: ${_s}}.loaded{opacity: 1;pointer-events: none}.loading-display, .no-options-display{background: ${Cc};width: 100%;min-height: calc(${U} * 1px);display: flex;flex-direction: column;align-items: center;justify-items: center;padding: calc(${z} * 1px)}.loading-progress{width: 42px;height: 42px}.bottom{flex-direction: column}.top{flex-direction: column-reverse}`,shadowOptions:{}}),class extends qi{connectedCallback(){Cc.setValueFor(this,gc),super.connectedCallback()}}.compose({baseName:`picker-menu`,baseClass:qi,template:pte,styles:(e,t)=>O` :host{background: ${Cc};--elevation: 11;/* TODO: a mechanism to manage z-index across components https://github.com/microsoft/fast/issues/3813 */ z-index: 1000;display: flex;width: 100%;max-height: 100%;min-height: 58px;box-sizing: border-box;flex-direction: column;overflow-y: auto;overflow-x: hidden;pointer-events: auto;border-radius: calc(${fs} * 1px);padding: calc(${z} * 1px) 0;border: calc(${B} * 1px) solid transparent;${Dl}}.suggestions-available-alert{height: 0;opacity: 0;overflow: hidden}`.withBehaviors(eo(O` :host{background: ${F.Canvas};border-color: ${F.CanvasText}}`))}),Ji.compose({baseName:`picker-menu-option`,template:mte,styles:(e,t)=>O` :host{display: flex;align-items: center;justify-items: center;font-family: ${ls};border-radius: calc(${fs} * 1px);border: calc(${gs} * 1px) solid transparent;box-sizing: border-box;background: ${il};color: ${H};cursor: pointer;fill: currentcolor;font-size: ${_s};min-height: calc(${U} * 1px);line-height: ${vs};margin: 0 calc(${z} * 1px);outline: none;overflow: hidden;padding: 0 calc(${z} * 2.25px);user-select: none;white-space: nowrap}:host(:${I}[role="listitem"]){border-color: ${V};background: ${sl}}:host(:hover){background: ${al}}:host(:active){background: ${ol}}:host([aria-selected="true"]){background: ${Ec};color: ${Mc}}:host([aria-selected="true"]:hover){background: ${Dc};color: ${Nc}}:host([aria-selected="true"]:active){background: ${Oc};color: ${Pc}}`.withBehaviors(eo(O` :host{border-color: transparent;forced-color-adjust: none;color: ${F.ButtonText};fill: currentcolor}:host(:not([aria-selected="true"]):hover), :host([aria-selected="true"]){background: ${F.Highlight};color: ${F.HighlightText}}:host([disabled]), :host([disabled]:not([aria-selected="true"]):hover){background: ${F.Canvas};color: ${F.GrayText};fill: currentcolor;opacity: 1}`))}),Yi.compose({baseName:`picker-list`,template:hte,styles:(e,t)=>O` :host{display: flex;flex-direction: row;column-gap: calc(${z} * 1px);row-gap: calc(${z} * 1px);flex-wrap: wrap}::slotted([role="combobox"]){min-width: 260px;width: auto;box-sizing: border-box;color: ${H};background: ${$c};border-radius: calc(${fs} * 1px);border: calc(${B} * 1px) solid ${Ec};height: calc(${U} * 1px);font-family: ${ls};outline: none;user-select: none;font-size: ${_s};line-height: ${vs};padding: 0 calc(${z} * 2px + 1px)}::slotted([role="combobox"]:active){{background: ${el};border-color: ${Oc}}::slotted([role="combobox"]:focus-within){border-color: ${V};box-shadow: 0 0 0 1px ${V} inset}`.withBehaviors(eo(O` ::slotted([role="combobox"]:active){background: ${F.Field};border-color: ${F.Highlight}}::slotted([role="combobox"]:focus-within){border-color: ${F.Highlight};box-shadow: 0 0 0 1px ${F.Highlight} inset}::slotted(input:placeholder){color: ${F.GrayText}}`))}),Xi.compose({baseName:`picker-list-item`,template:gte,styles:(e,t)=>O` :host{display: flex;align-items: center;justify-items: center;font-family: ${ls};border-radius: calc(${fs} * 1px);border: calc(${gs} * 1px) solid transparent;box-sizing: border-box;background: ${il};color: ${H};cursor: pointer;fill: currentcolor;font-size: ${_s};height: calc(${U} * 1px);line-height: ${vs};outline: none;overflow: hidden;padding: 0 calc(${z} * 2.25px);user-select: none;white-space: nowrap}:host(:hover){background: ${al}}:host(:active){background: ${ol}}:host(:${I}){background: ${sl};border-color: ${V}}:host([aria-selected="true"]){background: ${Ec};color: ${Pc}}`.withBehaviors(eo(O` :host{border-color: transparent;forced-color-adjust: none;color: ${F.ButtonText};fill: currentcolor}:host(:not([aria-selected="true"]):hover), :host([aria-selected="true"]){background: ${F.Highlight};color: ${F.HighlightText}}:host([disabled]), :host([disabled]:not([aria-selected="true"]):hover){background: ${F.Canvas};color: ${F.GrayText};fill: currentcolor;opacity: 1}`))});let _u=(e,t)=>O` ${ro(`flex`)} :host{align-items: center;outline: none;height: calc(${U} * 1px);width: calc(${U} * 1px);margin: calc(${U} * 1px) 0}.progress{height: 100%;width: 100%}.background{stroke: ${Jc};fill: none;stroke-width: 2px}.determinate{stroke: ${Uc};fill: none;stroke-width: 2px;stroke-linecap: round;transform-origin: 50% 50%;transform: rotate(-90deg);transition: all 0.2s ease-in-out}.indeterminate-indicator-1{stroke: ${Uc};fill: none;stroke-width: 2px;stroke-linecap: round;transform-origin: 50% 50%;transform: rotate(-90deg);transition: all 0.2s ease-in-out;animation: spin-infinite 2s linear infinite}:host([paused]) .indeterminate-indicator-1{animation-play-state: paused;stroke: ${Jc}}:host([paused]) .determinate{stroke: ${_l}}@keyframes spin-infinite{0%{stroke-dasharray: 0.01px 43.97px;transform: rotate(0deg)}50%{stroke-dasharray: 21.99px 21.99px;transform: rotate(450deg)}100%{stroke-dasharray: 0.01px 43.97px;transform: rotate(1080deg)}}`.withBehaviors(eo(O` .indeterminate-indicator-1, .determinate{stroke: ${F.FieldText}}.background{stroke: ${F.Field}}:host([paused]) .indeterminate-indicator-1{stroke: ${F.Field}}:host([paused]) .determinate{stroke: ${F.GrayText}}`));sa.compose({baseName:`progress-ring`,template:oa,styles:_u,indeterminateIndicator:`
131
131
  <svg class="progress" part="progress" viewBox="0 0 16 16">
132
132
  <circle
133
133
  class="background"
@@ -144,13 +144,13 @@ function W(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPrope
144
144
  r="7px"
145
145
  ></circle>
146
146
  </svg>
147
- `});let vu=(e,t)=>O` ${ro(`flex`)} :host{align-items: center;outline: none;height: calc(${B} * 1px);margin: calc(${B} * 1px) 0}.progress{background-color: ${qc};border-radius: calc(${B} * 1px);width: 100%;height: 100%;display: flex;align-items: center;position: relative}.determinate{background-color: ${Hc};border-radius: calc(${B} * 1px);height: 100%;transition: all 0.2s ease-in-out;display: flex}.indeterminate{height: 100%;border-radius: calc(${B} * 1px);display: flex;width: 100%;position: relative;overflow: hidden}.indeterminate-indicator-1{position: absolute;opacity: 0;height: 100%;background-color: ${Hc};border-radius: calc(${B} * 1px);animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);width: 40%;animation: indeterminate-1 2s infinite}.indeterminate-indicator-2{position: absolute;opacity: 0;height: 100%;background-color: ${Hc};border-radius: calc(${B} * 1px);animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);width: 60%;animation: indeterminate-2 2s infinite}:host([paused]) .indeterminate-indicator-1, :host([paused]) .indeterminate-indicator-2{animation-play-state: paused;background-color: ${qc}}:host([paused]) .determinate{background-color: ${_l}}@keyframes indeterminate-1{0%{opacity: 1;transform: translateX(-100%)}70%{opacity: 1;transform: translateX(300%)}70.01%{opacity: 0}100%{opacity: 0;transform: translateX(300%)}}@keyframes indeterminate-2{0%{opacity: 0;transform: translateX(-150%)}29.99%{opacity: 0}30%{opacity: 1;transform: translateX(-150%)}100%{transform: translateX(166.66%);opacity: 1}}`.withBehaviors(eo(O` .progress{forced-color-adjust: none;background-color: ${F.Field};box-shadow: 0 0 0 1px inset ${F.FieldText}}.determinate, .indeterminate-indicator-1, .indeterminate-indicator-2{forced-color-adjust: none;background-color: ${F.FieldText}}:host([paused]) .determinate, :host([paused]) .indeterminate-indicator-1, :host([paused]) .indeterminate-indicator-2{background-color: ${F.GrayText}}`));sa.compose({baseName:`progress`,template:ca,styles:vu,indeterminateIndicator1:`
147
+ `});let vu=(e,t)=>O` ${ro(`flex`)} :host{align-items: center;outline: none;height: calc(${z} * 1px);margin: calc(${z} * 1px) 0}.progress{background-color: ${Jc};border-radius: calc(${z} * 1px);width: 100%;height: 100%;display: flex;align-items: center;position: relative}.determinate{background-color: ${Uc};border-radius: calc(${z} * 1px);height: 100%;transition: all 0.2s ease-in-out;display: flex}.indeterminate{height: 100%;border-radius: calc(${z} * 1px);display: flex;width: 100%;position: relative;overflow: hidden}.indeterminate-indicator-1{position: absolute;opacity: 0;height: 100%;background-color: ${Uc};border-radius: calc(${z} * 1px);animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);width: 40%;animation: indeterminate-1 2s infinite}.indeterminate-indicator-2{position: absolute;opacity: 0;height: 100%;background-color: ${Uc};border-radius: calc(${z} * 1px);animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);width: 60%;animation: indeterminate-2 2s infinite}:host([paused]) .indeterminate-indicator-1, :host([paused]) .indeterminate-indicator-2{animation-play-state: paused;background-color: ${Jc}}:host([paused]) .determinate{background-color: ${_l}}@keyframes indeterminate-1{0%{opacity: 1;transform: translateX(-100%)}70%{opacity: 1;transform: translateX(300%)}70.01%{opacity: 0}100%{opacity: 0;transform: translateX(300%)}}@keyframes indeterminate-2{0%{opacity: 0;transform: translateX(-150%)}29.99%{opacity: 0}30%{opacity: 1;transform: translateX(-150%)}100%{transform: translateX(166.66%);opacity: 1}}`.withBehaviors(eo(O` .progress{forced-color-adjust: none;background-color: ${F.Field};box-shadow: 0 0 0 1px inset ${F.FieldText}}.determinate, .indeterminate-indicator-1, .indeterminate-indicator-2{forced-color-adjust: none;background-color: ${F.FieldText}}:host([paused]) .determinate, :host([paused]) .indeterminate-indicator-1, :host([paused]) .indeterminate-indicator-2{background-color: ${F.GrayText}}`));sa.compose({baseName:`progress`,template:ca,styles:vu,indeterminateIndicator1:`
148
148
  <span class="indeterminate-indicator-1" part="indeterminate-indicator-1"></span>
149
149
  `,indeterminateIndicator2:`
150
150
  <span class="indeterminate-indicator-1" part="indeterminate-indicator-1"></span>
151
- `});let yu=(e,t)=>O` ${ro(`flex`)} :host{align-items: flex-start;margin: calc(${B} * 1px) 0;flex-direction: column}.positioning-region{display: flex;flex-wrap: wrap}:host([orientation="vertical"]) .positioning-region{flex-direction: column}:host([orientation="horizontal"]) .positioning-region{flex-direction: row}`;ua.compose({baseName:`radio-group`,template:la,styles:yu});let bu=(e,t)=>O` ${ro(`inline-flex`)} :host{--input-size: calc((${U} / 2) + ${B});align-items: center;outline: none;margin: calc(${B} * 1px) 0;/* Chromium likes to select label text or the default slot when the radio is clicked. Maybe there is a better solution here? */ user-select: none;position: relative;flex-direction: row;transition: all 0.2s ease-in-out}.control{position: relative;width: calc((${U} / 2 + ${B}) * 1px);height: calc((${U} / 2 + ${B}) * 1px);box-sizing: border-box;border-radius: 999px;border: calc(${V} * 1px) solid ${yl};background: ${Qc};outline: none;cursor: pointer}.label{font-family: ${ls};color: ${H};padding-inline-start: calc(${B} * 2px + 2px);margin-inline-end: calc(${B} * 2px + 2px);cursor: pointer;font-size: ${gs};line-height: ${_s}}.label__hidden{display: none;visibility: hidden}.control, .checked-indicator{flex-shrink: 0}.checked-indicator{position: absolute;top: 5px;left: 5px;right: 5px;bottom: 5px;border-radius: 999px;display: inline-block;background: ${jc};fill: ${jc};opacity: 0;pointer-events: none}:host(:not([disabled])) .control:hover{background: ${$c};border-color: ${bl}}:host(:not([disabled])) .control:active{background: ${el};border-color: ${xl}}:host(:${I}) .control{box-shadow: 0 0 0 2px ${Sc}, 0 0 0 4px ${hl}}:host([aria-checked="true"]) .control{background: ${Tc};border: calc(${V} * 1px) solid ${Tc}}:host([aria-checked="true"]:not([disabled])) .control:hover{background: ${Ec};border: calc(${V} * 1px) solid ${Ec}}:host([aria-checked="true"]:not([disabled])) .control:hover .checked-indicator{background: ${Mc};fill: ${Mc}}:host([aria-checked="true"]:not([disabled])) .control:active{background: ${Dc};border: calc(${V} * 1px) solid ${Dc}}:host([aria-checked="true"]:not([disabled])) .control:active .checked-indicator{background: ${Nc};fill: ${Nc}}:host([aria-checked="true"]:${I}:not([disabled])) .control{box-shadow: 0 0 0 2px ${Sc}, 0 0 0 4px ${hl}}:host([disabled]) .label, :host([readonly]) .label, :host([readonly]) .control, :host([disabled]) .control{cursor: ${no}}:host([aria-checked="true"]) .checked-indicator{opacity: 1}:host([disabled]){opacity: ${ms}}`.withBehaviors(eo(O` .control, :host([aria-checked="true"]:not([disabled])) .control{forced-color-adjust: none;border-color: ${F.FieldText};background: ${F.Field}}:host(:not([disabled])) .control:hover{border-color: ${F.Highlight};background: ${F.Field}}:host([aria-checked="true"]:not([disabled])) .control:hover, :host([aria-checked="true"]:not([disabled])) .control:active{border-color: ${F.Highlight};background: ${F.Highlight}}:host([aria-checked="true"]) .checked-indicator{background: ${F.Highlight};fill: ${F.Highlight}}:host([aria-checked="true"]:not([disabled])) .control:hover .checked-indicator, :host([aria-checked="true"]:not([disabled])) .control:active .checked-indicator{background: ${F.HighlightText};fill: ${F.HighlightText}}:host(:${I}) .control{border-color: ${F.Highlight};box-shadow: 0 0 0 2px ${F.Field}, 0 0 0 4px ${F.FieldText}}:host([aria-checked="true"]:${I}:not([disabled])) .control{border-color: ${F.Highlight};box-shadow: 0 0 0 2px ${F.Field}, 0 0 0 4px ${F.FieldText}}:host([disabled]){forced-color-adjust: none;opacity: 1}:host([disabled]) .label{color: ${F.GrayText}}:host([disabled]) .control, :host([aria-checked="true"][disabled]) .control:hover, .control:active{background: ${F.Field};border-color: ${F.GrayText}}:host([disabled]) .checked-indicator, :host([aria-checked="true"][disabled]) .control:hover .checked-indicator{fill: ${F.GrayText};background: ${F.GrayText}}`));fa.compose({baseName:`radio`,template:da,styles:bu,checkedIndicator:`
151
+ `});let yu=(e,t)=>O` ${ro(`flex`)} :host{align-items: flex-start;margin: calc(${z} * 1px) 0;flex-direction: column}.positioning-region{display: flex;flex-wrap: wrap}:host([orientation="vertical"]) .positioning-region{flex-direction: column}:host([orientation="horizontal"]) .positioning-region{flex-direction: row}`;ua.compose({baseName:`radio-group`,template:la,styles:yu});let bu=(e,t)=>O` ${ro(`inline-flex`)} :host{--input-size: calc((${U} / 2) + ${z});align-items: center;outline: none;margin: calc(${z} * 1px) 0;/* Chromium likes to select label text or the default slot when the radio is clicked. Maybe there is a better solution here? */ user-select: none;position: relative;flex-direction: row;transition: all 0.2s ease-in-out}.control{position: relative;width: calc((${U} / 2 + ${z}) * 1px);height: calc((${U} / 2 + ${z}) * 1px);box-sizing: border-box;border-radius: 999px;border: calc(${B} * 1px) solid ${yl};background: ${$c};outline: none;cursor: pointer}.label{font-family: ${ls};color: ${H};padding-inline-start: calc(${z} * 2px + 2px);margin-inline-end: calc(${z} * 2px + 2px);cursor: pointer;font-size: ${_s};line-height: ${vs}}.label__hidden{display: none;visibility: hidden}.control, .checked-indicator{flex-shrink: 0}.checked-indicator{position: absolute;top: 5px;left: 5px;right: 5px;bottom: 5px;border-radius: 999px;display: inline-block;background: ${Mc};fill: ${Mc};opacity: 0;pointer-events: none}:host(:not([disabled])) .control:hover{background: ${el};border-color: ${bl}}:host(:not([disabled])) .control:active{background: ${tl};border-color: ${xl}}:host(:${I}) .control{box-shadow: 0 0 0 2px ${Cc}, 0 0 0 4px ${V}}:host([aria-checked="true"]) .control{background: ${Ec};border: calc(${B} * 1px) solid ${Ec}}:host([aria-checked="true"]:not([disabled])) .control:hover{background: ${Dc};border: calc(${B} * 1px) solid ${Dc}}:host([aria-checked="true"]:not([disabled])) .control:hover .checked-indicator{background: ${Nc};fill: ${Nc}}:host([aria-checked="true"]:not([disabled])) .control:active{background: ${Oc};border: calc(${B} * 1px) solid ${Oc}}:host([aria-checked="true"]:not([disabled])) .control:active .checked-indicator{background: ${Pc};fill: ${Pc}}:host([aria-checked="true"]:${I}:not([disabled])) .control{box-shadow: 0 0 0 2px ${Cc}, 0 0 0 4px ${V}}:host([disabled]) .label, :host([readonly]) .label, :host([readonly]) .control, :host([disabled]) .control{cursor: ${no}}:host([aria-checked="true"]) .checked-indicator{opacity: 1}:host([disabled]){opacity: ${hs}}`.withBehaviors(eo(O` .control, :host([aria-checked="true"]:not([disabled])) .control{forced-color-adjust: none;border-color: ${F.FieldText};background: ${F.Field}}:host(:not([disabled])) .control:hover{border-color: ${F.Highlight};background: ${F.Field}}:host([aria-checked="true"]:not([disabled])) .control:hover, :host([aria-checked="true"]:not([disabled])) .control:active{border-color: ${F.Highlight};background: ${F.Highlight}}:host([aria-checked="true"]) .checked-indicator{background: ${F.Highlight};fill: ${F.Highlight}}:host([aria-checked="true"]:not([disabled])) .control:hover .checked-indicator, :host([aria-checked="true"]:not([disabled])) .control:active .checked-indicator{background: ${F.HighlightText};fill: ${F.HighlightText}}:host(:${I}) .control{border-color: ${F.Highlight};box-shadow: 0 0 0 2px ${F.Field}, 0 0 0 4px ${F.FieldText}}:host([aria-checked="true"]:${I}:not([disabled])) .control{border-color: ${F.Highlight};box-shadow: 0 0 0 2px ${F.Field}, 0 0 0 4px ${F.FieldText}}:host([disabled]){forced-color-adjust: none;opacity: 1}:host([disabled]) .label{color: ${F.GrayText}}:host([disabled]) .control, :host([aria-checked="true"][disabled]) .control:hover, .control:active{background: ${F.Field};border-color: ${F.GrayText}}:host([disabled]) .checked-indicator, :host([aria-checked="true"][disabled]) .control:hover .checked-indicator{fill: ${F.GrayText};background: ${F.GrayText}}`));fa.compose({baseName:`radio`,template:da,styles:bu,checkedIndicator:`
152
152
  <div part="checked-indicator" class="checked-indicator"></div>
153
- `});let Rne=ni.create(`clear-button-hover`).withDefault(e=>{let t=nl.getValueFor(e),n=Kc.getValueFor(e);return t.evaluate(e,n.evaluate(e).hover).hover}),zne=ni.create(`clear-button-active`).withDefault(e=>{let t=nl.getValueFor(e),n=Kc.getValueFor(e);return t.evaluate(e,n.evaluate(e).hover).active}),Bne=(e,t)=>O` ${ro(`inline-block`)} :host{font-family: ${ls};outline: none;user-select: none}.root{box-sizing: border-box;position: relative;display: flex;flex-direction: row;color: ${H};background: ${Qc};border-radius: calc(${z} * 1px);border: calc(${V} * 1px) solid ${Tc};height: calc(${U} * 1px);align-items: baseline}.control{-webkit-appearance: none;font: inherit;background: transparent;border: 0;color: inherit;height: calc(100% - 4px);width: 100%;margin-top: auto;margin-bottom: auto;border: none;padding: 0 calc(${B} * 2px + 1px);font-size: ${gs};line-height: ${_s}}.control::-webkit-search-cancel-button{-webkit-appearance: none}.control:hover, .control:${I}, .control:disabled, .control:active{outline: none}.clear-button{height: calc(100% - 2px);opacity: 0;margin: 1px;background: transparent;color: ${H};fill: currentcolor;border: none;border-radius: calc(${z} * 1px);min-width: calc(${U} * 1px);font-size: ${gs};line-height: ${_s};outline: none;font-family: ${ls};padding: 0 calc((10 + (${B} * 2 * ${fs})) * 1px)}.clear-button:hover{background: ${il}}.clear-button:active{background: ${al}}:host([appearance="filled"]) .clear-button:hover{background: ${Rne}}:host([appearance="filled"]) .clear-button:active{background: ${zne}}.input-wrapper{display: flex;position: relative;width: 100%;height: 100%}.label{display: block;color: ${H};cursor: pointer;font-size: ${gs};line-height: ${_s};margin-bottom: 4px}.label__hidden{display: none;visibility: hidden}.input-wrapper, .start, .end{align-self: center}.start, .end{display: flex;margin: 1px;fill: currentcolor}::slotted([slot="end"]){height: 100%}.end{margin-inline-end: 1px;height: calc(100% - 2px)}::slotted(svg){/* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */ width: 16px;height: 16px;margin-inline-end: 11px;margin-inline-start: 11px;margin-top: auto;margin-bottom: auto}:host(:hover:not([disabled])) .root{background: ${$c};border-color: ${Ec}}:host(:active:not([disabled])) .root{background: ${$c};border-color: ${Dc}}:host(:focus-within:not([disabled])) .root{border-color: ${hl};box-shadow: 0 0 0 1px ${hl} inset}.clear-button__hidden{opacity: 0}:host(:hover:not([disabled], [readOnly])) .clear-button, :host(:active:not([disabled], [readOnly])) .clear-button, :host(:focus-within:not([disabled], [readOnly])) .clear-button{opacity: 1}:host(:hover:not([disabled], [readOnly])) .clear-button__hidden, :host(:active:not([disabled], [readOnly])) .clear-button__hidden, :host(:focus-within:not([disabled], [readOnly])) .clear-button__hidden{opacity: 0}:host([appearance="filled"]) .root{background: ${Sc}}:host([appearance="filled"]:hover:not([disabled])) .root{background: ${Jc}}:host([disabled]) .label, :host([readonly]) .label, :host([readonly]) .control, :host([disabled]) .control{cursor: ${no}}:host([disabled]){opacity: ${ms}}:host([disabled]) .control{border-color: ${yl}}`.withBehaviors(eo(O` .root, :host([appearance="filled"]) .root{forced-color-adjust: none;background: ${F.Field};border-color: ${F.FieldText}}:host(:hover:not([disabled])) .root, :host([appearance="filled"]:hover:not([disabled])) .root, :host([appearance="filled"]:hover) .root{background: ${F.Field};border-color: ${F.Highlight}}.start, .end{fill: currentcolor}:host([disabled]){opacity: 1}:host([disabled]) .root, :host([appearance="filled"]:hover[disabled]) .root{border-color: ${F.GrayText};background: ${F.Field}}:host(:focus-within:enabled) .root{border-color: ${F.Highlight};box-shadow: 0 0 0 1px ${F.Highlight} inset}input::placeholder{color: ${F.GrayText}}`));var xu=class extends ga{constructor(){super(...arguments),this.appearance=`outline`}};W([D],xu.prototype,`appearance`,void 0),xu.compose({baseName:`search`,baseClass:ga,template:Ete,styles:Bne,shadowOptions:{delegatesFocus:!0}});var Su=class extends va{constructor(){super(...arguments),this.listboxScrollWidth=``}connectedCallback(){super.connectedCallback(),this.listbox&&Sc.setValueFor(this.listbox,hc)}get listboxMaxHeight(){return Math.floor(this.maxHeight/wl.getValueFor(this)).toString()}listboxScrollWidthChanged(){this.updateComputedStylesheet()}get selectSize(){return`${this.size??(this.multiple?4:0)}`}multipleChanged(e,t){super.multipleChanged(e,t),this.updateComputedStylesheet()}maxHeightChanged(e,t){this.collapsible&&this.updateComputedStylesheet()}setPositioning(){super.setPositioning(),this.updateComputedStylesheet()}sizeChanged(e,t){if(super.sizeChanged(e,t),this.updateComputedStylesheet(),this.collapsible){requestAnimationFrame(()=>{this.listbox.style.setProperty(`display`,`flex`),this.listbox.style.setProperty(`overflow`,`visible`),this.listbox.style.setProperty(`visibility`,`hidden`),this.listbox.style.setProperty(`width`,`auto`),this.listbox.hidden=!1,this.listboxScrollWidth=`${this.listbox.scrollWidth}`,this.listbox.hidden=!0,this.listbox.style.removeProperty(`display`),this.listbox.style.removeProperty(`overflow`),this.listbox.style.removeProperty(`visibility`),this.listbox.style.removeProperty(`width`)});return}this.listboxScrollWidth=``}updateComputedStylesheet(){this.computedStylesheet&&this.$fastController.removeStyles(this.computedStylesheet),this.computedStylesheet=O` :host{--listbox-max-height: ${this.listboxMaxHeight};--listbox-scroll-width: ${this.listboxScrollWidth};--size: ${this.selectSize}}`,this.$fastController.addStyles(this.computedStylesheet)}};W([C],Su.prototype,`listboxScrollWidth`,void 0),Su.compose({baseName:`select`,baseClass:va,template:ba,styles:Xl,indicator:`
153
+ `});let Rne=ni.create(`clear-button-hover`).withDefault(e=>{let t=rl.getValueFor(e),n=qc.getValueFor(e);return t.evaluate(e,n.evaluate(e).hover).hover}),zne=ni.create(`clear-button-active`).withDefault(e=>{let t=rl.getValueFor(e),n=qc.getValueFor(e);return t.evaluate(e,n.evaluate(e).hover).active}),Bne=(e,t)=>O` ${ro(`inline-block`)} :host{font-family: ${ls};outline: none;user-select: none}.root{box-sizing: border-box;position: relative;display: flex;flex-direction: row;color: ${H};background: ${$c};border-radius: calc(${fs} * 1px);border: calc(${B} * 1px) solid ${Ec};height: calc(${U} * 1px);align-items: baseline}.control{-webkit-appearance: none;font: inherit;background: transparent;border: 0;color: inherit;height: calc(100% - 4px);width: 100%;margin-top: auto;margin-bottom: auto;border: none;padding: 0 calc(${z} * 2px + 1px);font-size: ${_s};line-height: ${vs}}.control::-webkit-search-cancel-button{-webkit-appearance: none}.control:hover, .control:${I}, .control:disabled, .control:active{outline: none}.clear-button{height: calc(100% - 2px);opacity: 0;margin: 1px;background: transparent;color: ${H};fill: currentcolor;border: none;border-radius: calc(${fs} * 1px);min-width: calc(${U} * 1px);font-size: ${_s};line-height: ${vs};outline: none;font-family: ${ls};padding: 0 calc((10 + (${z} * 2 * ${ps})) * 1px)}.clear-button:hover{background: ${al}}.clear-button:active{background: ${ol}}:host([appearance="filled"]) .clear-button:hover{background: ${Rne}}:host([appearance="filled"]) .clear-button:active{background: ${zne}}.input-wrapper{display: flex;position: relative;width: 100%;height: 100%}.label{display: block;color: ${H};cursor: pointer;font-size: ${_s};line-height: ${vs};margin-bottom: 4px}.label__hidden{display: none;visibility: hidden}.input-wrapper, .start, .end{align-self: center}.start, .end{display: flex;margin: 1px;fill: currentcolor}::slotted([slot="end"]){height: 100%}.end{margin-inline-end: 1px;height: calc(100% - 2px)}::slotted(svg){/* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */ width: 16px;height: 16px;margin-inline-end: 11px;margin-inline-start: 11px;margin-top: auto;margin-bottom: auto}:host(:hover:not([disabled])) .root{background: ${el};border-color: ${Dc}}:host(:active:not([disabled])) .root{background: ${el};border-color: ${Oc}}:host(:focus-within:not([disabled])) .root{border-color: ${V};box-shadow: 0 0 0 1px ${V} inset}.clear-button__hidden{opacity: 0}:host(:hover:not([disabled], [readOnly])) .clear-button, :host(:active:not([disabled], [readOnly])) .clear-button, :host(:focus-within:not([disabled], [readOnly])) .clear-button{opacity: 1}:host(:hover:not([disabled], [readOnly])) .clear-button__hidden, :host(:active:not([disabled], [readOnly])) .clear-button__hidden, :host(:focus-within:not([disabled], [readOnly])) .clear-button__hidden{opacity: 0}:host([appearance="filled"]) .root{background: ${Cc}}:host([appearance="filled"]:hover:not([disabled])) .root{background: ${Yc}}:host([disabled]) .label, :host([readonly]) .label, :host([readonly]) .control, :host([disabled]) .control{cursor: ${no}}:host([disabled]){opacity: ${hs}}:host([disabled]) .control{border-color: ${yl}}`.withBehaviors(eo(O` .root, :host([appearance="filled"]) .root{forced-color-adjust: none;background: ${F.Field};border-color: ${F.FieldText}}:host(:hover:not([disabled])) .root, :host([appearance="filled"]:hover:not([disabled])) .root, :host([appearance="filled"]:hover) .root{background: ${F.Field};border-color: ${F.Highlight}}.start, .end{fill: currentcolor}:host([disabled]){opacity: 1}:host([disabled]) .root, :host([appearance="filled"]:hover[disabled]) .root{border-color: ${F.GrayText};background: ${F.Field}}:host(:focus-within:enabled) .root{border-color: ${F.Highlight};box-shadow: 0 0 0 1px ${F.Highlight} inset}input::placeholder{color: ${F.GrayText}}`));var xu=class extends ga{constructor(){super(...arguments),this.appearance=`outline`}};W([D],xu.prototype,`appearance`,void 0),xu.compose({baseName:`search`,baseClass:ga,template:Ete,styles:Bne,shadowOptions:{delegatesFocus:!0}});var Su=class extends va{constructor(){super(...arguments),this.listboxScrollWidth=``}connectedCallback(){super.connectedCallback(),this.listbox&&Cc.setValueFor(this.listbox,gc)}get listboxMaxHeight(){return Math.floor(this.maxHeight/wl.getValueFor(this)).toString()}listboxScrollWidthChanged(){this.updateComputedStylesheet()}get selectSize(){return`${this.size??(this.multiple?4:0)}`}multipleChanged(e,t){super.multipleChanged(e,t),this.updateComputedStylesheet()}maxHeightChanged(e,t){this.collapsible&&this.updateComputedStylesheet()}setPositioning(){super.setPositioning(),this.updateComputedStylesheet()}sizeChanged(e,t){if(super.sizeChanged(e,t),this.updateComputedStylesheet(),this.collapsible){requestAnimationFrame(()=>{this.listbox.style.setProperty(`display`,`flex`),this.listbox.style.setProperty(`overflow`,`visible`),this.listbox.style.setProperty(`visibility`,`hidden`),this.listbox.style.setProperty(`width`,`auto`),this.listbox.hidden=!1,this.listboxScrollWidth=`${this.listbox.scrollWidth}`,this.listbox.hidden=!0,this.listbox.style.removeProperty(`display`),this.listbox.style.removeProperty(`overflow`),this.listbox.style.removeProperty(`visibility`),this.listbox.style.removeProperty(`width`)});return}this.listboxScrollWidth=``}updateComputedStylesheet(){this.computedStylesheet&&this.$fastController.removeStyles(this.computedStylesheet),this.computedStylesheet=O` :host{--listbox-max-height: ${this.listboxMaxHeight};--listbox-scroll-width: ${this.listboxScrollWidth};--size: ${this.selectSize}}`,this.$fastController.addStyles(this.computedStylesheet)}};W([C],Su.prototype,`listboxScrollWidth`,void 0),Su.compose({baseName:`select`,baseClass:va,template:ba,styles:Xl,indicator:`
154
154
  <svg
155
155
  class="select-indicator"
156
156
  part="select-indicator"
@@ -161,11 +161,11 @@ function W(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPrope
161
161
  d="M11.85.65c.2.2.2.5 0 .7L6.4 6.84a.55.55 0 01-.78 0L.14 1.35a.5.5 0 11.71-.7L6 5.8 11.15.65c.2-.2.5-.2.7 0z"
162
162
  />
163
163
  </svg>
164
- `});let Cu=(e,t)=>O` ${ro(`block`)} :host{--skeleton-fill-default: #e1dfdd;overflow: hidden;width: 100%;position: relative;background-color: var(--skeleton-fill, var(--skeleton-fill-default));--skeleton-animation-gradient-default: linear-gradient( 270deg, var(--skeleton-fill, var(--skeleton-fill-default)) 0%, #f3f2f1 51.13%, var(--skeleton-fill, var(--skeleton-fill-default)) 100% );--skeleton-animation-timing-default: ease-in-out}:host([shape="rect"]){border-radius: calc(${z} * 1px)}:host([shape="circle"]){border-radius: 100%;overflow: hidden}object{position: absolute;width: 100%;height: auto;z-index: 2}object img{width: 100%;height: auto}${ro(`block`)} span.shimmer{position: absolute;width: 100%;height: 100%;background-image: var( --skeleton-animation-gradient, var(--skeleton-animation-gradient-default) );background-size: 0px 0px / 90% 100%;background-repeat: no-repeat;background-color: var(--skeleton-animation-fill, ${qc});animation: shimmer 2s infinite;animation-timing-function: var( --skeleton-animation-timing, var(--skeleton-timing-default) );animation-direction: normal;z-index: 1}::slotted(svg){z-index: 2}::slotted(.pattern){width: 100%;height: 100%}@keyframes shimmer{0%{transform: translateX(-100%)}100%{transform: translateX(100%)}}`.withBehaviors(eo(O` :host{forced-color-adjust: none;background-color: ${F.ButtonFace};box-shadow: 0 0 0 1px ${F.ButtonText}}${ro(`block`)} span.shimmer{display: none}`));Sa.compose({baseName:`skeleton`,template:xa,styles:Cu});let wu=O` :host{align-self: start;grid-row: 2;margin-top: -2px;height: calc((${U} / 2 + ${B}) * 1px);width: auto}.container{grid-template-rows: auto auto;grid-template-columns: 0}.label{margin: 2px 0}`,Tu=O` :host{justify-self: start;grid-column: 2;margin-left: 2px;height: auto;width: calc((${U} / 2 + ${B}) * 1px)}.container{grid-template-columns: auto auto;grid-template-rows: 0;min-width: calc(var(--thumb-size) * 1px);height: calc(var(--thumb-size) * 1px)}.mark{transform: rotate(90deg);align-self: center}.label{margin-left: calc((${B} / 2) * 3px);align-self: center}`,Eu=(e,t)=>O` ${ro(`block`)} :host{font-family: ${ls};color: ${H};fill: currentcolor}.root{position: absolute;display: grid}.container{display: grid;justify-self: center}.label{justify-self: center;align-self: center;white-space: nowrap;max-width: 30px}.mark{width: calc((${B} / 4) * 1px);height: calc(${U} * 0.25 * 1px);background: ${yl};justify-self: center}:host(.disabled){opacity: ${ms}}`.withBehaviors(eo(O` .mark{forced-color-adjust: none;background: ${F.FieldText}}:host(.disabled){forced-color-adjust: none;opacity: 1}:host(.disabled) .label{color: ${F.GrayText}}:host(.disabled) .mark{background: ${F.GrayText}}`));var Du=class extends Ea{sliderOrientationChanged(){this.sliderOrientation===un.horizontal?(this.$fastController.addStyles(wu),this.$fastController.removeStyles(Tu)):(this.$fastController.addStyles(Tu),this.$fastController.removeStyles(wu))}};Du.compose({baseName:`slider-label`,baseClass:Ea,template:Ca,styles:Eu});let Vne=O` .track-start{left: 0}`,Hne=O` .track-start{right: 0}`,Ou=(e,t)=>O` :host([hidden]){display: none}${ro(`inline-grid`)} :host{--thumb-size: calc(${U} * 0.5 - ${B});--thumb-translate: calc(var(--thumb-size) * -0.5 + var(--track-width) / 2);--track-overhang: calc((${B} / 2) * -1);--track-width: ${B};--fast-slider-height: calc(var(--thumb-size) * 10);align-items: center;width: 100%;margin: calc(${B} * 1px) 0;user-select: none;box-sizing: border-box;border-radius: calc(${z} * 1px);outline: none;cursor: pointer}:host([orientation="horizontal"]) .positioning-region{position: relative;margin: 0 8px;display: grid;grid-template-rows: calc(var(--thumb-size) * 1px) 1fr}:host([orientation="vertical"]) .positioning-region{position: relative;margin: 0 8px;display: grid;height: 100%;grid-template-columns: calc(var(--thumb-size) * 1px) 1fr}:host(:${I}) .thumb-cursor{box-shadow: 0 0 0 2px ${Sc}, 0 0 0 4px ${hl}}.thumb-container{position: absolute;height: calc(var(--thumb-size) * 1px);width: calc(var(--thumb-size) * 1px);transition: all 0.2s ease;color: ${H};fill: currentcolor}.thumb-cursor{border: none;width: calc(var(--thumb-size) * 1px);height: calc(var(--thumb-size) * 1px);background: ${H};border-radius: calc(${z} * 1px)}.thumb-cursor:hover{background: ${H};border-color: ${bl}}.thumb-cursor:active{background: ${H}}.track-start{background: ${Hc};position: absolute;height: 100%;left: 0;border-radius: calc(${z} * 1px)}:host([orientation="horizontal"]) .thumb-container{transform: translateX(calc(var(--thumb-size) * 0.5px)) translateY(calc(var(--thumb-translate) * 1px))}:host([orientation="vertical"]) .thumb-container{transform: translateX(calc(var(--thumb-translate) * 1px)) translateY(calc(var(--thumb-size) * 0.5px))}:host([orientation="horizontal"]){min-width: calc(var(--thumb-size) * 1px)}:host([orientation="horizontal"]) .track{right: calc(var(--track-overhang) * 1px);left: calc(var(--track-overhang) * 1px);align-self: start;height: calc(var(--track-width) * 1px)}:host([orientation="vertical"]) .track{top: calc(var(--track-overhang) * 1px);bottom: calc(var(--track-overhang) * 1px);width: calc(var(--track-width) * 1px);height: 100%}.track{background: ${yl};position: absolute;border-radius: calc(${z} * 1px)}:host([orientation="vertical"]){height: calc(var(--fast-slider-height) * 1px);min-height: calc(var(--thumb-size) * 1px);min-width: calc(${B} * 20px)}:host([orientation="vertical"]) .track-start{height: auto;width: 100%;top: 0}:host([disabled]), :host([readonly]){cursor: ${no}}:host([disabled]){opacity: ${ms}}`.withBehaviors(new Nl(Vne,Hne),eo(O` .thumb-cursor{forced-color-adjust: none;border-color: ${F.FieldText};background: ${F.FieldText}}.thumb-cursor:hover, .thumb-cursor:active{background: ${F.Highlight}}.track{forced-color-adjust: none;background: ${F.FieldText}}:host(:${I}) .thumb-cursor{border-color: ${F.Highlight}}:host([disabled]){opacity: 1}:host([disabled]) .track, :host([disabled]) .thumb-cursor{forced-color-adjust: none;background: ${F.GrayText}}:host(:${I}) .thumb-cursor{background: ${F.Highlight};border-color: ${F.Highlight};box-shadow: 0 0 0 2px ${F.Field}, 0 0 0 4px ${F.FieldText}}`));Da.compose({baseName:`slider`,template:jte,styles:Ou,thumb:`
164
+ `});let Cu=(e,t)=>O` ${ro(`block`)} :host{--skeleton-fill-default: #e1dfdd;overflow: hidden;width: 100%;position: relative;background-color: var(--skeleton-fill, var(--skeleton-fill-default));--skeleton-animation-gradient-default: linear-gradient( 270deg, var(--skeleton-fill, var(--skeleton-fill-default)) 0%, #f3f2f1 51.13%, var(--skeleton-fill, var(--skeleton-fill-default)) 100% );--skeleton-animation-timing-default: ease-in-out}:host([shape="rect"]){border-radius: calc(${fs} * 1px)}:host([shape="circle"]){border-radius: 100%;overflow: hidden}object{position: absolute;width: 100%;height: auto;z-index: 2}object img{width: 100%;height: auto}${ro(`block`)} span.shimmer{position: absolute;width: 100%;height: 100%;background-image: var( --skeleton-animation-gradient, var(--skeleton-animation-gradient-default) );background-size: 0px 0px / 90% 100%;background-repeat: no-repeat;background-color: var(--skeleton-animation-fill, ${Jc});animation: shimmer 2s infinite;animation-timing-function: var( --skeleton-animation-timing, var(--skeleton-timing-default) );animation-direction: normal;z-index: 1}::slotted(svg){z-index: 2}::slotted(.pattern){width: 100%;height: 100%}@keyframes shimmer{0%{transform: translateX(-100%)}100%{transform: translateX(100%)}}`.withBehaviors(eo(O` :host{forced-color-adjust: none;background-color: ${F.ButtonFace};box-shadow: 0 0 0 1px ${F.ButtonText}}${ro(`block`)} span.shimmer{display: none}`));Sa.compose({baseName:`skeleton`,template:xa,styles:Cu});let wu=O` :host{align-self: start;grid-row: 2;margin-top: -2px;height: calc((${U} / 2 + ${z}) * 1px);width: auto}.container{grid-template-rows: auto auto;grid-template-columns: 0}.label{margin: 2px 0}`,Tu=O` :host{justify-self: start;grid-column: 2;margin-left: 2px;height: auto;width: calc((${U} / 2 + ${z}) * 1px)}.container{grid-template-columns: auto auto;grid-template-rows: 0;min-width: calc(var(--thumb-size) * 1px);height: calc(var(--thumb-size) * 1px)}.mark{transform: rotate(90deg);align-self: center}.label{margin-left: calc((${z} / 2) * 3px);align-self: center}`,Eu=(e,t)=>O` ${ro(`block`)} :host{font-family: ${ls};color: ${H};fill: currentcolor}.root{position: absolute;display: grid}.container{display: grid;justify-self: center}.label{justify-self: center;align-self: center;white-space: nowrap;max-width: 30px}.mark{width: calc((${z} / 4) * 1px);height: calc(${U} * 0.25 * 1px);background: ${yl};justify-self: center}:host(.disabled){opacity: ${hs}}`.withBehaviors(eo(O` .mark{forced-color-adjust: none;background: ${F.FieldText}}:host(.disabled){forced-color-adjust: none;opacity: 1}:host(.disabled) .label{color: ${F.GrayText}}:host(.disabled) .mark{background: ${F.GrayText}}`));var Du=class extends Ea{sliderOrientationChanged(){this.sliderOrientation===un.horizontal?(this.$fastController.addStyles(wu),this.$fastController.removeStyles(Tu)):(this.$fastController.addStyles(Tu),this.$fastController.removeStyles(wu))}};Du.compose({baseName:`slider-label`,baseClass:Ea,template:Ca,styles:Eu});let Vne=O` .track-start{left: 0}`,Hne=O` .track-start{right: 0}`,Ou=(e,t)=>O` :host([hidden]){display: none}${ro(`inline-grid`)} :host{--thumb-size: calc(${U} * 0.5 - ${z});--thumb-translate: calc(var(--thumb-size) * -0.5 + var(--track-width) / 2);--track-overhang: calc((${z} / 2) * -1);--track-width: ${z};--fast-slider-height: calc(var(--thumb-size) * 10);align-items: center;width: 100%;margin: calc(${z} * 1px) 0;user-select: none;box-sizing: border-box;border-radius: calc(${fs} * 1px);outline: none;cursor: pointer}:host([orientation="horizontal"]) .positioning-region{position: relative;margin: 0 8px;display: grid;grid-template-rows: calc(var(--thumb-size) * 1px) 1fr}:host([orientation="vertical"]) .positioning-region{position: relative;margin: 0 8px;display: grid;height: 100%;grid-template-columns: calc(var(--thumb-size) * 1px) 1fr}:host(:${I}) .thumb-cursor{box-shadow: 0 0 0 2px ${Cc}, 0 0 0 4px ${V}}.thumb-container{position: absolute;height: calc(var(--thumb-size) * 1px);width: calc(var(--thumb-size) * 1px);transition: all 0.2s ease;color: ${H};fill: currentcolor}.thumb-cursor{border: none;width: calc(var(--thumb-size) * 1px);height: calc(var(--thumb-size) * 1px);background: ${H};border-radius: calc(${fs} * 1px)}.thumb-cursor:hover{background: ${H};border-color: ${bl}}.thumb-cursor:active{background: ${H}}.track-start{background: ${Uc};position: absolute;height: 100%;left: 0;border-radius: calc(${fs} * 1px)}:host([orientation="horizontal"]) .thumb-container{transform: translateX(calc(var(--thumb-size) * 0.5px)) translateY(calc(var(--thumb-translate) * 1px))}:host([orientation="vertical"]) .thumb-container{transform: translateX(calc(var(--thumb-translate) * 1px)) translateY(calc(var(--thumb-size) * 0.5px))}:host([orientation="horizontal"]){min-width: calc(var(--thumb-size) * 1px)}:host([orientation="horizontal"]) .track{right: calc(var(--track-overhang) * 1px);left: calc(var(--track-overhang) * 1px);align-self: start;height: calc(var(--track-width) * 1px)}:host([orientation="vertical"]) .track{top: calc(var(--track-overhang) * 1px);bottom: calc(var(--track-overhang) * 1px);width: calc(var(--track-width) * 1px);height: 100%}.track{background: ${yl};position: absolute;border-radius: calc(${fs} * 1px)}:host([orientation="vertical"]){height: calc(var(--fast-slider-height) * 1px);min-height: calc(var(--thumb-size) * 1px);min-width: calc(${z} * 20px)}:host([orientation="vertical"]) .track-start{height: auto;width: 100%;top: 0}:host([disabled]), :host([readonly]){cursor: ${no}}:host([disabled]){opacity: ${hs}}`.withBehaviors(new Nl(Vne,Hne),eo(O` .thumb-cursor{forced-color-adjust: none;border-color: ${F.FieldText};background: ${F.FieldText}}.thumb-cursor:hover, .thumb-cursor:active{background: ${F.Highlight}}.track{forced-color-adjust: none;background: ${F.FieldText}}:host(:${I}) .thumb-cursor{border-color: ${F.Highlight}}:host([disabled]){opacity: 1}:host([disabled]) .track, :host([disabled]) .thumb-cursor{forced-color-adjust: none;background: ${F.GrayText}}:host(:${I}) .thumb-cursor{background: ${F.Highlight};border-color: ${F.Highlight};box-shadow: 0 0 0 2px ${F.Field}, 0 0 0 4px ${F.FieldText}}`));Da.compose({baseName:`slider`,template:jte,styles:Ou,thumb:`
165
165
  <div class="thumb-cursor"></div>
166
- `});let ku=(e,t)=>O` :host([hidden]){display: none}${ro(`inline-flex`)} :host{align-items: center;outline: none;font-family: ${ls};margin: calc(${B} * 1px) 0;${``} user-select: none}:host([disabled]){opacity: ${ms}}:host([disabled]) .label, :host([readonly]) .label, :host([readonly]) .switch, :host([disabled]) .switch{cursor: ${no}}.switch{position: relative;outline: none;box-sizing: border-box;width: calc(${U} * 1px);height: calc((${U} / 2 + ${B}) * 1px);background: ${Qc};border-radius: calc(${z} * 1px);border: calc(${V} * 1px) solid ${yl}}.switch:hover{background: ${$c};border-color: ${bl};cursor: pointer}host([disabled]) .switch:hover, host([readonly]) .switch:hover{background: ${$c};border-color: ${bl};cursor: ${no}}:host(:not([disabled])) .switch:active{background: ${el};border-color: ${xl}}:host(:${I}) .switch{box-shadow: 0 0 0 2px ${Sc}, 0 0 0 4px ${hl}}.checked-indicator{position: absolute;top: 5px;bottom: 5px;background: ${H};border-radius: calc(${z} * 1px);transition: all 0.2s ease-in-out}.status-message{color: ${H};cursor: pointer;font-size: ${gs};line-height: ${_s}}:host([disabled]) .status-message, :host([readonly]) .status-message{cursor: ${no}}.label{color: ${H};margin-inline-end: calc(${B} * 2px + 2px);font-size: ${gs};line-height: ${_s};cursor: pointer}.label__hidden{display: none;visibility: hidden}::slotted([slot="checked-message"]), ::slotted([slot="unchecked-message"]){margin-inline-start: calc(${B} * 2px + 2px)}:host([aria-checked="true"]) .checked-indicator{background: ${jc}}:host([aria-checked="true"]) .switch{background: ${Tc};border-color: ${Tc}}:host([aria-checked="true"]:not([disabled])) .switch:hover{background: ${Ec};border-color: ${Ec}}:host([aria-checked="true"]:not([disabled])) .switch:hover .checked-indicator{background: ${Mc}}:host([aria-checked="true"]:not([disabled])) .switch:active{background: ${Dc};border-color: ${Dc}}:host([aria-checked="true"]:not([disabled])) .switch:active .checked-indicator{background: ${Nc}}:host([aria-checked="true"]:${I}:not([disabled])) .switch{box-shadow: 0 0 0 2px ${Sc}, 0 0 0 4px ${hl}}.unchecked-message{display: block}.checked-message{display: none}:host([aria-checked="true"]) .unchecked-message{display: none}:host([aria-checked="true"]) .checked-message{display: block}`.withBehaviors(eo(O` .checked-indicator, :host(:not([disabled])) .switch:active .checked-indicator{forced-color-adjust: none;background: ${F.FieldText}}.switch{forced-color-adjust: none;background: ${F.Field};border-color: ${F.FieldText}}:host(:not([disabled])) .switch:hover{background: ${F.HighlightText};border-color: ${F.Highlight}}:host([aria-checked="true"]) .switch{background: ${F.Highlight};border-color: ${F.Highlight}}:host([aria-checked="true"]:not([disabled])) .switch:hover, :host(:not([disabled])) .switch:active{background: ${F.HighlightText};border-color: ${F.Highlight}}:host([aria-checked="true"]) .checked-indicator{background: ${F.HighlightText}}:host([aria-checked="true"]:not([disabled])) .switch:hover .checked-indicator{background: ${F.Highlight}}:host([disabled]){opacity: 1}:host(:${I}) .switch{border-color: ${F.Highlight};box-shadow: 0 0 0 2px ${F.Field}, 0 0 0 4px ${F.FieldText}}:host([aria-checked="true"]:${I}:not([disabled])) .switch{box-shadow: 0 0 0 2px ${F.Field}, 0 0 0 4px ${F.FieldText}}:host([disabled]) .checked-indicator{background: ${F.GrayText}}:host([disabled]) .switch{background: ${F.Field};border-color: ${F.GrayText}}`),new Nl(O` .checked-indicator{left: 5px;right: calc(((${U} / 2) + 1) * 1px)}:host([aria-checked="true"]) .checked-indicator{left: calc(((${U} / 2) + 1) * 1px);right: 5px}`,O` .checked-indicator{right: 5px;left: calc(((${U} / 2) + 1) * 1px)}:host([aria-checked="true"]) .checked-indicator{right: calc(((${U} / 2) + 1) * 1px);left: 5px}`));ka.compose({baseName:`switch`,template:Oa,styles:ku,switch:`
166
+ `});let ku=(e,t)=>O` :host([hidden]){display: none}${ro(`inline-flex`)} :host{align-items: center;outline: none;font-family: ${ls};margin: calc(${z} * 1px) 0;${``} user-select: none}:host([disabled]){opacity: ${hs}}:host([disabled]) .label, :host([readonly]) .label, :host([readonly]) .switch, :host([disabled]) .switch{cursor: ${no}}.switch{position: relative;outline: none;box-sizing: border-box;width: calc(${U} * 1px);height: calc((${U} / 2 + ${z}) * 1px);background: ${$c};border-radius: calc(${fs} * 1px);border: calc(${B} * 1px) solid ${yl}}.switch:hover{background: ${el};border-color: ${bl};cursor: pointer}host([disabled]) .switch:hover, host([readonly]) .switch:hover{background: ${el};border-color: ${bl};cursor: ${no}}:host(:not([disabled])) .switch:active{background: ${tl};border-color: ${xl}}:host(:${I}) .switch{box-shadow: 0 0 0 2px ${Cc}, 0 0 0 4px ${V}}.checked-indicator{position: absolute;top: 5px;bottom: 5px;background: ${H};border-radius: calc(${fs} * 1px);transition: all 0.2s ease-in-out}.status-message{color: ${H};cursor: pointer;font-size: ${_s};line-height: ${vs}}:host([disabled]) .status-message, :host([readonly]) .status-message{cursor: ${no}}.label{color: ${H};margin-inline-end: calc(${z} * 2px + 2px);font-size: ${_s};line-height: ${vs};cursor: pointer}.label__hidden{display: none;visibility: hidden}::slotted([slot="checked-message"]), ::slotted([slot="unchecked-message"]){margin-inline-start: calc(${z} * 2px + 2px)}:host([aria-checked="true"]) .checked-indicator{background: ${Mc}}:host([aria-checked="true"]) .switch{background: ${Ec};border-color: ${Ec}}:host([aria-checked="true"]:not([disabled])) .switch:hover{background: ${Dc};border-color: ${Dc}}:host([aria-checked="true"]:not([disabled])) .switch:hover .checked-indicator{background: ${Nc}}:host([aria-checked="true"]:not([disabled])) .switch:active{background: ${Oc};border-color: ${Oc}}:host([aria-checked="true"]:not([disabled])) .switch:active .checked-indicator{background: ${Pc}}:host([aria-checked="true"]:${I}:not([disabled])) .switch{box-shadow: 0 0 0 2px ${Cc}, 0 0 0 4px ${V}}.unchecked-message{display: block}.checked-message{display: none}:host([aria-checked="true"]) .unchecked-message{display: none}:host([aria-checked="true"]) .checked-message{display: block}`.withBehaviors(eo(O` .checked-indicator, :host(:not([disabled])) .switch:active .checked-indicator{forced-color-adjust: none;background: ${F.FieldText}}.switch{forced-color-adjust: none;background: ${F.Field};border-color: ${F.FieldText}}:host(:not([disabled])) .switch:hover{background: ${F.HighlightText};border-color: ${F.Highlight}}:host([aria-checked="true"]) .switch{background: ${F.Highlight};border-color: ${F.Highlight}}:host([aria-checked="true"]:not([disabled])) .switch:hover, :host(:not([disabled])) .switch:active{background: ${F.HighlightText};border-color: ${F.Highlight}}:host([aria-checked="true"]) .checked-indicator{background: ${F.HighlightText}}:host([aria-checked="true"]:not([disabled])) .switch:hover .checked-indicator{background: ${F.Highlight}}:host([disabled]){opacity: 1}:host(:${I}) .switch{border-color: ${F.Highlight};box-shadow: 0 0 0 2px ${F.Field}, 0 0 0 4px ${F.FieldText}}:host([aria-checked="true"]:${I}:not([disabled])) .switch{box-shadow: 0 0 0 2px ${F.Field}, 0 0 0 4px ${F.FieldText}}:host([disabled]) .checked-indicator{background: ${F.GrayText}}:host([disabled]) .switch{background: ${F.Field};border-color: ${F.GrayText}}`),new Nl(O` .checked-indicator{left: 5px;right: calc(((${U} / 2) + 1) * 1px)}:host([aria-checked="true"]) .checked-indicator{left: calc(((${U} / 2) + 1) * 1px);right: 5px}`,O` .checked-indicator{right: 5px;left: calc(((${U} / 2) + 1) * 1px)}:host([aria-checked="true"]) .checked-indicator{right: calc(((${U} / 2) + 1) * 1px);left: 5px}`));ka.compose({baseName:`switch`,template:Oa,styles:ku,switch:`
167
167
  <span class="checked-indicator" part="checked-indicator"></span>
168
- `});let Au=(e,t)=>O` ${ro(`grid`)} :host{box-sizing: border-box;font-family: ${ls};font-size: ${gs};line-height: ${_s};color: ${H};grid-template-columns: auto 1fr auto;grid-template-rows: auto 1fr}.tablist{display: grid;grid-template-rows: auto auto;grid-template-columns: auto;position: relative;width: max-content;align-self: end;padding: calc(${B} * 4px) calc(${B} * 4px) 0;box-sizing: border-box}.start, .end{align-self: center}.activeIndicator{grid-row: 2;grid-column: 1;width: 100%;height: 5px;justify-self: center;background: ${Tc};margin-top: 10px;border-radius: calc(${z} * 1px) calc(${z} * 1px) 0 0}.activeIndicatorTransition{transition: transform 0.2s ease-in-out}.tabpanel{grid-row: 2;grid-column-start: 1;grid-column-end: 4;position: relative}:host([orientation="vertical"]){grid-template-rows: auto 1fr auto;grid-template-columns: auto 1fr}:host([orientation="vertical"]) .tablist{grid-row-start: 2;grid-row-end: 2;display: grid;grid-template-rows: auto;grid-template-columns: auto 1fr;position: relative;width: max-content;justify-self: end;align-self: flex-start;width: 100%;padding: 0 calc(${B} * 4px) calc((${U} - ${B}) * 1px) 0}:host([orientation="vertical"]) .tabpanel{grid-column: 2;grid-row-start: 1;grid-row-end: 4}:host([orientation="vertical"]) .end{grid-row: 3}:host([orientation="vertical"]) .activeIndicator{grid-column: 1;grid-row: 1;width: 5px;height: 100%;margin-inline-end: 10px;align-self: center;background: ${Tc};margin-top: 0;border-radius: 0 calc(${z} * 1px) calc(${z} * 1px) 0}:host([orientation="vertical"]) .activeIndicatorTransition{transition: transform 0.2s linear}`.withBehaviors(eo(O` .activeIndicator, :host([orientation="vertical"]) .activeIndicator{forced-color-adjust: none;background: ${F.Highlight}}`)),ju=(e,t)=>O` ${ro(`inline-flex`)} :host{box-sizing: border-box;font-family: ${ls};font-size: ${gs};line-height: ${_s};height: calc(${U} * 1px);padding: calc(${B} * 5px) calc(${B} * 4px);color: ${_l};fill: currentcolor;border-radius: calc(${z} * 1px);border: calc(${V} * 1px) solid transparent;align-items: center;justify-content: center;grid-row: 1;cursor: pointer}:host(:hover){color: ${H};fill: currentcolor}:host(:active){color: ${H};fill: currentcolor}:host([disabled]){cursor: ${no};opacity: ${ms}}:host([disabled]:hover){color: ${_l};background: ${rl}}:host([aria-selected="true"]){background: ${qc};color: ${Hc};fill: currentcolor}:host([aria-selected="true"]:hover){background: ${Jc};color: ${Uc};fill: currentcolor}:host([aria-selected="true"]:active){background: ${Yc};color: ${Wc};fill: currentcolor}:host(:${I}){outline: none;border: calc(${V} * 1px) solid ${hl};box-shadow: 0 0 0 calc((${hs} - ${V}) * 1px) ${hl}}:host(:focus){outline: none}:host(.vertical){justify-content: end;grid-column: 2}:host(.vertical[aria-selected="true"]){z-index: 2}:host(.vertical:hover){color: ${H}}:host(.vertical:active){color: ${H}}:host(.vertical:hover[aria-selected="true"]){}`.withBehaviors(eo(O` :host{forced-color-adjust: none;border-color: transparent;color: ${F.ButtonText};fill: currentcolor}:host(:hover), :host(.vertical:hover), :host([aria-selected="true"]:hover){background: ${F.Highlight};color: ${F.HighlightText};fill: currentcolor}:host([aria-selected="true"]){background: ${F.HighlightText};color: ${F.Highlight};fill: currentcolor}:host(:${I}){border-color: ${F.ButtonText};box-shadow: none}:host([disabled]), :host([disabled]:hover){opacity: 1;color: ${F.GrayText};background: ${F.ButtonFace}}`));Na.compose({baseName:`tab`,template:Ma,styles:ju});let Mu=(e,t)=>O` ${ro(`block`)} :host{box-sizing: border-box;font-size: ${gs};line-height: ${_s};padding: 0 calc((6 + (${B} * 2 * ${fs})) * 1px)}`;ja.compose({baseName:`tab-panel`,template:Aa,styles:Mu}),Ia.compose({baseName:`tabs`,template:Pa,styles:Au});let Nu=(e,t)=>O` ${ro(`inline-block`)} :host{font-family: ${ls};outline: none;user-select: none}.control{box-sizing: border-box;position: relative;color: ${H};background: ${Qc};border-radius: calc(${z} * 1px);border: calc(${V} * 1px) solid ${Tc};height: calc(${U} * 2px);font: inherit;font-size: ${gs};line-height: ${_s};padding: calc(${B} * 2px + 1px);width: 100%;resize: none}.control:hover:enabled{background: ${$c};border-color: ${Ec}}.control:active:enabled{background: ${el};border-color: ${Dc}}.control:hover, .control:${I}, .control:disabled, .control:active{outline: none}:host(:focus-within) .control{border-color: ${hl};box-shadow: 0 0 0 1px ${hl} inset}:host([appearance="filled"]) .control{background: ${qc}}:host([appearance="filled"]:hover:not([disabled])) .control{background: ${Jc}}:host([resize="both"]) .control{resize: both}:host([resize="horizontal"]) .control{resize: horizontal}:host([resize="vertical"]) .control{resize: vertical}.label{display: block;color: ${H};cursor: pointer;font-size: ${gs};line-height: ${_s};margin-bottom: 4px}.label__hidden{display: none;visibility: hidden}:host([disabled]) .label, :host([readonly]) .label, :host([readonly]) .control, :host([disabled]) .control{cursor: ${no}}:host([disabled]){opacity: ${ms}}:host([disabled]) .control{border-color: ${yl}}:host([cols]){width: initial}:host([rows]) .control{height: initial}`.withBehaviors(eo(O` :host([disabled]){opacity: 1}`));var Pu=class extends Ra{constructor(){super(...arguments),this.appearance=`outline`}};W([D],Pu.prototype,`appearance`,void 0),Pu.compose({baseName:`text-area`,baseClass:Ra,template:za,styles:Nu,shadowOptions:{delegatesFocus:!0}});let Fu=(e,t)=>O` ${ro(`inline-block`)} :host{font-family: ${ls};outline: none;user-select: none}.root{box-sizing: border-box;position: relative;display: flex;flex-direction: row;color: ${H};background: ${Qc};border-radius: calc(${z} * 1px);border: calc(${V} * 1px) solid ${Tc};height: calc(${U} * 1px);align-items: baseline}.control{-webkit-appearance: none;font: inherit;background: transparent;border: 0;color: inherit;height: calc(100% - 4px);width: 100%;margin-top: auto;margin-bottom: auto;border: none;padding: 0 calc(${B} * 2px + 1px);font-size: ${gs};line-height: ${_s}}.control:hover, .control:${I}, .control:disabled, .control:active{outline: none}.label{display: block;color: ${H};cursor: pointer;font-size: ${gs};line-height: ${_s};margin-bottom: 4px}.label__hidden{display: none;visibility: hidden}.start, .control, .end{align-self: center}.start, .end{display: flex;margin: auto;fill: currentcolor}::slotted(svg){/* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */ width: 16px;height: 16px}.start{margin-inline-start: 11px}.end{margin-inline-end: 11px}:host(:hover:not([disabled])) .root{background: ${$c};border-color: ${Ec}}:host(:active:not([disabled])) .root{background: ${$c};border-color: ${Dc}}:host(:focus-within:not([disabled])) .root{border-color: ${hl};box-shadow: 0 0 0 calc(${hs} * 1px) ${hl} inset}:host([appearance="filled"]) .root{background: ${qc}}:host([appearance="filled"]:hover:not([disabled])) .root{background: ${Jc}}:host([disabled]) .label, :host([readonly]) .label, :host([readonly]) .control, :host([disabled]) .control{cursor: ${no}}:host([disabled]){opacity: ${ms}}:host([disabled]) .control{border-color: ${yl}}`.withBehaviors(eo(O` .root, :host([appearance="filled"]) .root{forced-color-adjust: none;background: ${F.Field};border-color: ${F.FieldText}}:host(:hover:not([disabled])) .root, :host([appearance="filled"]:hover:not([disabled])) .root, :host([appearance="filled"]:hover) .root{background: ${F.Field};border-color: ${F.Highlight}}.start, .end{fill: currentcolor}:host([disabled]){opacity: 1}:host([disabled]) .root, :host([appearance="filled"]:hover[disabled]) .root{border-color: ${F.GrayText};background: ${F.Field}}:host(:focus-within:enabled) .root{border-color: ${F.Highlight};box-shadow: 0 0 0 1px ${F.Highlight} inset}input::placeholder{color: ${F.GrayText}}`));var Iu=class extends ra{constructor(){super(...arguments),this.appearance=`outline`}};W([D],Iu.prototype,`appearance`,void 0),Iu.compose({baseName:`text-field`,baseClass:ra,template:zte,styles:Fu,shadowOptions:{delegatesFocus:!0}});let Lu=(e,t)=>O` ${ro(`inline-flex`)} :host{--toolbar-item-gap: calc( (var(--design-unit) + calc(var(--density) + 2)) * 1px );background-color: ${Sc};border-radius: calc(${z} * 1px);fill: currentcolor;padding: var(--toolbar-item-gap)}:host(${I}){outline: calc(${V} * 1px) solid ${Sl}}.positioning-region{align-items: flex-start;display: inline-flex;flex-flow: row wrap;justify-content: flex-start}:host([orientation="vertical"]) .positioning-region{flex-direction: column}::slotted(:not([slot])){flex: 0 0 auto;margin: 0 var(--toolbar-item-gap)}:host([orientation="vertical"]) ::slotted(:not([slot])){margin: var(--toolbar-item-gap) 0}.start, .end{display: flex;margin: auto;margin-inline: 0}::slotted(svg){/* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */ width: 16px;height: 16px}`.withBehaviors(eo(O` :host(:${I}){box-shadow: 0 0 0 calc(${hs} * 1px) ${F.Highlight};color: ${F.ButtonText};forced-color-adjust: none}`));var Ru=class extends Ha{connectedCallback(){super.connectedCallback();let e=Wr(this);e&&Sc.setValueFor(this,t=>fl.getValueFor(t).evaluate(t,Sc.getValueFor(e)))}};Ru.compose({baseName:`toolbar`,baseClass:Ha,template:Ba,styles:Lu,shadowOptions:{delegatesFocus:!0}});let zu=(e,t)=>{let n=e.tagFor(Jn);return O` :host{contain: size;overflow: visible;height: 0;width: 0}.tooltip{box-sizing: border-box;border-radius: calc(${z} * 1px);border: calc(${V} * 1px) solid ${hl};box-shadow: 0 0 0 1px ${hl} inset;background: ${qc};color: ${H};padding: 4px;height: fit-content;width: fit-content;font-family: ${ls};font-size: ${gs};line-height: ${_s};white-space: nowrap;/* TODO: a mechanism to manage z-index across components https://github.com/microsoft/fast/issues/3813 */ z-index: 10000}${n}{display: flex;justify-content: center;align-items: center;overflow: visible;flex-direction: row}${n}.right, ${n}.left{flex-direction: column}${n}.top .tooltip{margin-bottom: 4px}${n}.bottom .tooltip{margin-top: 4px}${n}.left .tooltip{margin-right: 4px}${n}.right .tooltip{margin-left: 4px}${n}.top.left .tooltip, ${n}.top.right .tooltip{margin-bottom: 0px}${n}.bottom.left .tooltip, ${n}.bottom.right .tooltip{margin-top: 0px}${n}.top.left .tooltip, ${n}.bottom.left .tooltip{margin-right: 0px}${n}.top.right .tooltip, ${n}.bottom.right .tooltip{margin-left: 0px}`.withBehaviors(eo(O` :host([disabled]){opacity: 1}`))};Ka.compose({baseName:`tooltip`,template:Wa,styles:zu});let Une=O` .expand-collapse-glyph{transform: rotate(0deg)}:host(.nested) .expand-collapse-button{left: var(--expand-collapse-button-nested-width, calc(${U} * -1px))}:host([selected])::after{left: calc(${hs} * 1px)}:host([expanded]) > .positioning-region .expand-collapse-glyph{transform: rotate(45deg)}`,Wne=O` .expand-collapse-glyph{transform: rotate(180deg)}:host(.nested) .expand-collapse-button{right: var(--expand-collapse-button-nested-width, calc(${U} * -1px))}:host([selected])::after{right: calc(${hs} * 1px)}:host([expanded]) > .positioning-region .expand-collapse-glyph{transform: rotate(135deg)}`,Bu=rt`((${us} / 2) * ${B}) + ((${B} * ${fs}) / 2)`,Gne=ni.create(`tree-item-expand-collapse-hover`).withDefault(e=>{let t=nl.getValueFor(e);return t.evaluate(e,t.evaluate(e).hover).hover}),Kne=ni.create(`tree-item-expand-collapse-selected-hover`).withDefault(e=>{let t=Kc.getValueFor(e);return nl.getValueFor(e).evaluate(e,t.evaluate(e).rest).hover}),Vu=(e,t)=>O` /** * This animation exists because when tree item children are conditionally loaded * there is a visual bug where the DOM exists but styles have not yet been applied (essentially FOUC). * This subtle animation provides a ever so slight timing adjustment for loading that solves the issue. */ @keyframes treeItemLoading{0%{opacity: 0}100%{opacity: 1}}${ro(`block`)} :host{contain: content;position: relative;outline: none;color: ${H};background: ${rl};cursor: pointer;font-family: ${ls};--expand-collapse-button-size: calc(${U} * 1px);--tree-item-nested-width: 0}:host(:focus) > .positioning-region{outline: none}:host(:focus) .content-region{outline: none}:host(:${I}) .positioning-region{border: ${hl} calc(${V} * 1px) solid;border-radius: calc(${z} * 1px);color: ${H}}.positioning-region{display: flex;position: relative;box-sizing: border-box;background: ${rl};border: transparent calc(${V} * 1px) solid;height: calc((${U} + 1) * 1px)}.positioning-region::before{content: "";display: block;width: var(--tree-item-nested-width);flex-shrink: 0}:host(:not([disabled])) .positioning-region:hover{background: ${il}}:host(:not([disabled])) .positioning-region:active{background: ${al}}.content-region{display: inline-flex;align-items: center;white-space: nowrap;width: 100%;height: calc(${U} * 1px);margin-inline-start: calc(${B} * 2px + 8px);font-size: ${gs};line-height: ${_s};font-weight: 400}.items{/* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */ font-size: calc(1em + (${B} + 16) * 1px)}.expand-collapse-button{background: none;border: none;outline: none;/* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */ width: calc((${Bu} + (${B} * 2)) * 1px);height: calc((${Bu} + (${B} * 2)) * 1px);padding: 0;display: flex;justify-content: center;align-items: center;cursor: pointer;margin-left: 6px;margin-right: 6px}.expand-collapse-glyph{/* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */ width: 16px;height: 16px;transition: transform 0.1s linear;pointer-events: none;fill: currentcolor}.start, .end{display: flex;fill: currentcolor}::slotted(svg){/* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */ width: 16px;height: 16px}.start{/* TODO: horizontalSpacing https://github.com/microsoft/fast/issues/2766 */ margin-inline-end: calc(${B} * 2px + 2px)}.end{/* TODO: horizontalSpacing https://github.com/microsoft/fast/issues/2766 */ margin-inline-start: calc(${B} * 2px + 2px)}:host([expanded]) > .items{animation: treeItemLoading ease-in 10ms;animation-iteration-count: 1;animation-fill-mode: forwards}:host([disabled]) .content-region{opacity: ${ms};cursor: ${no}}:host(.nested) .content-region{position: relative;margin-inline-start: var(--expand-collapse-button-size)}:host(.nested) .expand-collapse-button{position: absolute}:host(.nested:not([disabled])) .expand-collapse-button:hover{background: ${Gne}}:host([selected]) .positioning-region{background: ${qc}}:host([selected]:not([disabled])) .positioning-region:hover{background: ${Jc}}:host([selected]:not([disabled])) .positioning-region:active{background: ${Yc}}:host([selected]:not([disabled])) .expand-collapse-button:hover{background: ${Kne}}:host([selected])::after{/* The background needs to be calculated based on the selected background state for this control. We currently have no way of changing that, so setting to accent-foreground-rest for the time being */ background: ${Hc};border-radius: calc(${z} * 1px);content: "";display: block;position: absolute;top: calc((${U} / 4) * 1px);width: 3px;height: calc((${U} / 2) * 1px)}::slotted(${e.tagFor(Ya)}){--tree-item-nested-width: 1em;--expand-collapse-button-nested-width: calc(${U} * -1px)}`.withBehaviors(new Nl(Une,Wne),eo(O` :host{forced-color-adjust: none;border-color: transparent;background: ${F.Field};color: ${F.FieldText}}:host .content-region .expand-collapse-glyph{fill: ${F.FieldText}}:host .positioning-region:hover, :host([selected]) .positioning-region{background: ${F.Highlight}}:host .positioning-region:hover .content-region, :host([selected]) .positioning-region .content-region{color: ${F.HighlightText}}:host .positioning-region:hover .content-region .expand-collapse-glyph, :host .positioning-region:hover .content-region .start, :host .positioning-region:hover .content-region .end, :host([selected]) .content-region .expand-collapse-glyph, :host([selected]) .content-region .start, :host([selected]) .content-region .end{fill: ${F.HighlightText}}:host([selected])::after{background: ${F.Field}}:host(:${I}) .positioning-region{border-color: ${F.FieldText};box-shadow: 0 0 0 2px inset ${F.Field};color: ${F.FieldText}}:host([disabled]) .content-region, :host([disabled]) .positioning-region:hover .content-region{opacity: 1;color: ${F.GrayText}}:host([disabled]) .content-region .expand-collapse-glyph, :host([disabled]) .content-region .start, :host([disabled]) .content-region .end, :host([disabled]) .positioning-region:hover .content-region .expand-collapse-glyph, :host([disabled]) .positioning-region:hover .content-region .start, :host([disabled]) .positioning-region:hover .content-region .end{fill: ${F.GrayText}}:host([disabled]) .positioning-region:hover{background: ${F.Field}}.expand-collapse-glyph, .start, .end{fill: ${F.FieldText}}:host(.nested) .expand-collapse-button:hover{background: ${F.Field}}:host(.nested) .expand-collapse-button:hover .expand-collapse-glyph{fill: ${F.FieldText}}`));Ya.compose({baseName:`tree-item`,template:qa,styles:Vu,expandCollapseGlyph:`
168
+ `});let Au=(e,t)=>O` ${ro(`grid`)} :host{box-sizing: border-box;font-family: ${ls};font-size: ${_s};line-height: ${vs};color: ${H};grid-template-columns: auto 1fr auto;grid-template-rows: auto 1fr}.tablist{display: grid;grid-template-rows: auto auto;grid-template-columns: auto;position: relative;width: max-content;align-self: end;padding: calc(${z} * 4px) calc(${z} * 4px) 0;box-sizing: border-box}.start, .end{align-self: center}.activeIndicator{grid-row: 2;grid-column: 1;width: 100%;height: 5px;justify-self: center;background: ${Ec};margin-top: 10px;border-radius: calc(${fs} * 1px) calc(${fs} * 1px) 0 0}.activeIndicatorTransition{transition: transform 0.2s ease-in-out}.tabpanel{grid-row: 2;grid-column-start: 1;grid-column-end: 4;position: relative}:host([orientation="vertical"]){grid-template-rows: auto 1fr auto;grid-template-columns: auto 1fr}:host([orientation="vertical"]) .tablist{grid-row-start: 2;grid-row-end: 2;display: grid;grid-template-rows: auto;grid-template-columns: auto 1fr;position: relative;width: max-content;justify-self: end;align-self: flex-start;width: 100%;padding: 0 calc(${z} * 4px) calc((${U} - ${z}) * 1px) 0}:host([orientation="vertical"]) .tabpanel{grid-column: 2;grid-row-start: 1;grid-row-end: 4}:host([orientation="vertical"]) .end{grid-row: 3}:host([orientation="vertical"]) .activeIndicator{grid-column: 1;grid-row: 1;width: 5px;height: 100%;margin-inline-end: 10px;align-self: center;background: ${Ec};margin-top: 0;border-radius: 0 calc(${fs} * 1px) calc(${fs} * 1px) 0}:host([orientation="vertical"]) .activeIndicatorTransition{transition: transform 0.2s linear}`.withBehaviors(eo(O` .activeIndicator, :host([orientation="vertical"]) .activeIndicator{forced-color-adjust: none;background: ${F.Highlight}}`)),ju=(e,t)=>O` ${ro(`inline-flex`)} :host{box-sizing: border-box;font-family: ${ls};font-size: ${_s};line-height: ${vs};height: calc(${U} * 1px);padding: calc(${z} * 5px) calc(${z} * 4px);color: ${_l};fill: currentcolor;border-radius: calc(${fs} * 1px);border: calc(${B} * 1px) solid transparent;align-items: center;justify-content: center;grid-row: 1;cursor: pointer}:host(:hover){color: ${H};fill: currentcolor}:host(:active){color: ${H};fill: currentcolor}:host([disabled]){cursor: ${no};opacity: ${hs}}:host([disabled]:hover){color: ${_l};background: ${il}}:host([aria-selected="true"]){background: ${Jc};color: ${Uc};fill: currentcolor}:host([aria-selected="true"]:hover){background: ${Yc};color: ${Wc};fill: currentcolor}:host([aria-selected="true"]:active){background: ${Xc};color: ${Gc};fill: currentcolor}:host(:${I}){outline: none;border: calc(${B} * 1px) solid ${V};box-shadow: 0 0 0 calc((${gs} - ${B}) * 1px) ${V}}:host(:focus){outline: none}:host(.vertical){justify-content: end;grid-column: 2}:host(.vertical[aria-selected="true"]){z-index: 2}:host(.vertical:hover){color: ${H}}:host(.vertical:active){color: ${H}}:host(.vertical:hover[aria-selected="true"]){}`.withBehaviors(eo(O` :host{forced-color-adjust: none;border-color: transparent;color: ${F.ButtonText};fill: currentcolor}:host(:hover), :host(.vertical:hover), :host([aria-selected="true"]:hover){background: ${F.Highlight};color: ${F.HighlightText};fill: currentcolor}:host([aria-selected="true"]){background: ${F.HighlightText};color: ${F.Highlight};fill: currentcolor}:host(:${I}){border-color: ${F.ButtonText};box-shadow: none}:host([disabled]), :host([disabled]:hover){opacity: 1;color: ${F.GrayText};background: ${F.ButtonFace}}`));Na.compose({baseName:`tab`,template:Ma,styles:ju});let Mu=(e,t)=>O` ${ro(`block`)} :host{box-sizing: border-box;font-size: ${_s};line-height: ${vs};padding: 0 calc((6 + (${z} * 2 * ${ps})) * 1px)}`;ja.compose({baseName:`tab-panel`,template:Aa,styles:Mu}),Ia.compose({baseName:`tabs`,template:Pa,styles:Au});let Nu=(e,t)=>O` ${ro(`inline-block`)} :host{font-family: ${ls};outline: none;user-select: none}.control{box-sizing: border-box;position: relative;color: ${H};background: ${$c};border-radius: calc(${fs} * 1px);border: calc(${B} * 1px) solid ${Ec};height: calc(${U} * 2px);font: inherit;font-size: ${_s};line-height: ${vs};padding: calc(${z} * 2px + 1px);width: 100%;resize: none}.control:hover:enabled{background: ${el};border-color: ${Dc}}.control:active:enabled{background: ${tl};border-color: ${Oc}}.control:hover, .control:${I}, .control:disabled, .control:active{outline: none}:host(:focus-within) .control{border-color: ${V};box-shadow: 0 0 0 1px ${V} inset}:host([appearance="filled"]) .control{background: ${Jc}}:host([appearance="filled"]:hover:not([disabled])) .control{background: ${Yc}}:host([resize="both"]) .control{resize: both}:host([resize="horizontal"]) .control{resize: horizontal}:host([resize="vertical"]) .control{resize: vertical}.label{display: block;color: ${H};cursor: pointer;font-size: ${_s};line-height: ${vs};margin-bottom: 4px}.label__hidden{display: none;visibility: hidden}:host([disabled]) .label, :host([readonly]) .label, :host([readonly]) .control, :host([disabled]) .control{cursor: ${no}}:host([disabled]){opacity: ${hs}}:host([disabled]) .control{border-color: ${yl}}:host([cols]){width: initial}:host([rows]) .control{height: initial}`.withBehaviors(eo(O` :host([disabled]){opacity: 1}`));var Pu=class extends Ra{constructor(){super(...arguments),this.appearance=`outline`}};W([D],Pu.prototype,`appearance`,void 0),Pu.compose({baseName:`text-area`,baseClass:Ra,template:za,styles:Nu,shadowOptions:{delegatesFocus:!0}});let Fu=(e,t)=>O` ${ro(`inline-block`)} :host{font-family: ${ls};outline: none;user-select: none}.root{box-sizing: border-box;position: relative;display: flex;flex-direction: row;color: ${H};background: ${$c};border-radius: calc(${fs} * 1px);border: calc(${B} * 1px) solid ${Ec};height: calc(${U} * 1px);align-items: baseline}.control{-webkit-appearance: none;font: inherit;background: transparent;border: 0;color: inherit;height: calc(100% - 4px);width: 100%;margin-top: auto;margin-bottom: auto;border: none;padding: 0 calc(${z} * 2px + 1px);font-size: ${_s};line-height: ${vs}}.control:hover, .control:${I}, .control:disabled, .control:active{outline: none}.label{display: block;color: ${H};cursor: pointer;font-size: ${_s};line-height: ${vs};margin-bottom: 4px}.label__hidden{display: none;visibility: hidden}.start, .control, .end{align-self: center}.start, .end{display: flex;margin: auto;fill: currentcolor}::slotted(svg){/* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */ width: 16px;height: 16px}.start{margin-inline-start: 11px}.end{margin-inline-end: 11px}:host(:hover:not([disabled])) .root{background: ${el};border-color: ${Dc}}:host(:active:not([disabled])) .root{background: ${el};border-color: ${Oc}}:host(:focus-within:not([disabled])) .root{border-color: ${V};box-shadow: 0 0 0 calc(${gs} * 1px) ${V} inset}:host([appearance="filled"]) .root{background: ${Jc}}:host([appearance="filled"]:hover:not([disabled])) .root{background: ${Yc}}:host([disabled]) .label, :host([readonly]) .label, :host([readonly]) .control, :host([disabled]) .control{cursor: ${no}}:host([disabled]){opacity: ${hs}}:host([disabled]) .control{border-color: ${yl}}`.withBehaviors(eo(O` .root, :host([appearance="filled"]) .root{forced-color-adjust: none;background: ${F.Field};border-color: ${F.FieldText}}:host(:hover:not([disabled])) .root, :host([appearance="filled"]:hover:not([disabled])) .root, :host([appearance="filled"]:hover) .root{background: ${F.Field};border-color: ${F.Highlight}}.start, .end{fill: currentcolor}:host([disabled]){opacity: 1}:host([disabled]) .root, :host([appearance="filled"]:hover[disabled]) .root{border-color: ${F.GrayText};background: ${F.Field}}:host(:focus-within:enabled) .root{border-color: ${F.Highlight};box-shadow: 0 0 0 1px ${F.Highlight} inset}input::placeholder{color: ${F.GrayText}}`));var Iu=class extends ra{constructor(){super(...arguments),this.appearance=`outline`}};W([D],Iu.prototype,`appearance`,void 0),Iu.compose({baseName:`text-field`,baseClass:ra,template:zte,styles:Fu,shadowOptions:{delegatesFocus:!0}});let Lu=(e,t)=>O` ${ro(`inline-flex`)} :host{--toolbar-item-gap: calc( (var(--design-unit) + calc(var(--density) + 2)) * 1px );background-color: ${Cc};border-radius: calc(${fs} * 1px);fill: currentcolor;padding: var(--toolbar-item-gap)}:host(${I}){outline: calc(${B} * 1px) solid ${Sl}}.positioning-region{align-items: flex-start;display: inline-flex;flex-flow: row wrap;justify-content: flex-start}:host([orientation="vertical"]) .positioning-region{flex-direction: column}::slotted(:not([slot])){flex: 0 0 auto;margin: 0 var(--toolbar-item-gap)}:host([orientation="vertical"]) ::slotted(:not([slot])){margin: var(--toolbar-item-gap) 0}.start, .end{display: flex;margin: auto;margin-inline: 0}::slotted(svg){/* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */ width: 16px;height: 16px}`.withBehaviors(eo(O` :host(:${I}){box-shadow: 0 0 0 calc(${gs} * 1px) ${F.Highlight};color: ${F.ButtonText};forced-color-adjust: none}`));var Ru=class extends Ha{connectedCallback(){super.connectedCallback();let e=Wr(this);e&&Cc.setValueFor(this,t=>pl.getValueFor(t).evaluate(t,Cc.getValueFor(e)))}};Ru.compose({baseName:`toolbar`,baseClass:Ha,template:Ba,styles:Lu,shadowOptions:{delegatesFocus:!0}});let zu=(e,t)=>{let n=e.tagFor(Jn);return O` :host{contain: size;overflow: visible;height: 0;width: 0}.tooltip{box-sizing: border-box;border-radius: calc(${fs} * 1px);border: calc(${B} * 1px) solid ${V};box-shadow: 0 0 0 1px ${V} inset;background: ${Jc};color: ${H};padding: 4px;height: fit-content;width: fit-content;font-family: ${ls};font-size: ${_s};line-height: ${vs};white-space: nowrap;/* TODO: a mechanism to manage z-index across components https://github.com/microsoft/fast/issues/3813 */ z-index: 10000}${n}{display: flex;justify-content: center;align-items: center;overflow: visible;flex-direction: row}${n}.right, ${n}.left{flex-direction: column}${n}.top .tooltip{margin-bottom: 4px}${n}.bottom .tooltip{margin-top: 4px}${n}.left .tooltip{margin-right: 4px}${n}.right .tooltip{margin-left: 4px}${n}.top.left .tooltip, ${n}.top.right .tooltip{margin-bottom: 0px}${n}.bottom.left .tooltip, ${n}.bottom.right .tooltip{margin-top: 0px}${n}.top.left .tooltip, ${n}.bottom.left .tooltip{margin-right: 0px}${n}.top.right .tooltip, ${n}.bottom.right .tooltip{margin-left: 0px}`.withBehaviors(eo(O` :host([disabled]){opacity: 1}`))};Ka.compose({baseName:`tooltip`,template:Wa,styles:zu});let Une=O` .expand-collapse-glyph{transform: rotate(0deg)}:host(.nested) .expand-collapse-button{left: var(--expand-collapse-button-nested-width, calc(${U} * -1px))}:host([selected])::after{left: calc(${gs} * 1px)}:host([expanded]) > .positioning-region .expand-collapse-glyph{transform: rotate(45deg)}`,Wne=O` .expand-collapse-glyph{transform: rotate(180deg)}:host(.nested) .expand-collapse-button{right: var(--expand-collapse-button-nested-width, calc(${U} * -1px))}:host([selected])::after{right: calc(${gs} * 1px)}:host([expanded]) > .positioning-region .expand-collapse-glyph{transform: rotate(135deg)}`,Bu=rt`((${us} / 2) * ${z}) + ((${z} * ${ps}) / 2)`,Gne=ni.create(`tree-item-expand-collapse-hover`).withDefault(e=>{let t=rl.getValueFor(e);return t.evaluate(e,t.evaluate(e).hover).hover}),Kne=ni.create(`tree-item-expand-collapse-selected-hover`).withDefault(e=>{let t=qc.getValueFor(e);return rl.getValueFor(e).evaluate(e,t.evaluate(e).rest).hover}),Vu=(e,t)=>O` /** * This animation exists because when tree item children are conditionally loaded * there is a visual bug where the DOM exists but styles have not yet been applied (essentially FOUC). * This subtle animation provides a ever so slight timing adjustment for loading that solves the issue. */ @keyframes treeItemLoading{0%{opacity: 0}100%{opacity: 1}}${ro(`block`)} :host{contain: content;position: relative;outline: none;color: ${H};background: ${il};cursor: pointer;font-family: ${ls};--expand-collapse-button-size: calc(${U} * 1px);--tree-item-nested-width: 0}:host(:focus) > .positioning-region{outline: none}:host(:focus) .content-region{outline: none}:host(:${I}) .positioning-region{border: ${V} calc(${B} * 1px) solid;border-radius: calc(${fs} * 1px);color: ${H}}.positioning-region{display: flex;position: relative;box-sizing: border-box;background: ${il};border: transparent calc(${B} * 1px) solid;height: calc((${U} + 1) * 1px)}.positioning-region::before{content: "";display: block;width: var(--tree-item-nested-width);flex-shrink: 0}:host(:not([disabled])) .positioning-region:hover{background: ${al}}:host(:not([disabled])) .positioning-region:active{background: ${ol}}.content-region{display: inline-flex;align-items: center;white-space: nowrap;width: 100%;height: calc(${U} * 1px);margin-inline-start: calc(${z} * 2px + 8px);font-size: ${_s};line-height: ${vs};font-weight: 400}.items{/* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */ font-size: calc(1em + (${z} + 16) * 1px)}.expand-collapse-button{background: none;border: none;outline: none;/* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */ width: calc((${Bu} + (${z} * 2)) * 1px);height: calc((${Bu} + (${z} * 2)) * 1px);padding: 0;display: flex;justify-content: center;align-items: center;cursor: pointer;margin-left: 6px;margin-right: 6px}.expand-collapse-glyph{/* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */ width: 16px;height: 16px;transition: transform 0.1s linear;pointer-events: none;fill: currentcolor}.start, .end{display: flex;fill: currentcolor}::slotted(svg){/* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */ width: 16px;height: 16px}.start{/* TODO: horizontalSpacing https://github.com/microsoft/fast/issues/2766 */ margin-inline-end: calc(${z} * 2px + 2px)}.end{/* TODO: horizontalSpacing https://github.com/microsoft/fast/issues/2766 */ margin-inline-start: calc(${z} * 2px + 2px)}:host([expanded]) > .items{animation: treeItemLoading ease-in 10ms;animation-iteration-count: 1;animation-fill-mode: forwards}:host([disabled]) .content-region{opacity: ${hs};cursor: ${no}}:host(.nested) .content-region{position: relative;margin-inline-start: var(--expand-collapse-button-size)}:host(.nested) .expand-collapse-button{position: absolute}:host(.nested:not([disabled])) .expand-collapse-button:hover{background: ${Gne}}:host([selected]) .positioning-region{background: ${Jc}}:host([selected]:not([disabled])) .positioning-region:hover{background: ${Yc}}:host([selected]:not([disabled])) .positioning-region:active{background: ${Xc}}:host([selected]:not([disabled])) .expand-collapse-button:hover{background: ${Kne}}:host([selected])::after{/* The background needs to be calculated based on the selected background state for this control. We currently have no way of changing that, so setting to accent-foreground-rest for the time being */ background: ${Uc};border-radius: calc(${fs} * 1px);content: "";display: block;position: absolute;top: calc((${U} / 4) * 1px);width: 3px;height: calc((${U} / 2) * 1px)}::slotted(${e.tagFor(Ya)}){--tree-item-nested-width: 1em;--expand-collapse-button-nested-width: calc(${U} * -1px)}`.withBehaviors(new Nl(Une,Wne),eo(O` :host{forced-color-adjust: none;border-color: transparent;background: ${F.Field};color: ${F.FieldText}}:host .content-region .expand-collapse-glyph{fill: ${F.FieldText}}:host .positioning-region:hover, :host([selected]) .positioning-region{background: ${F.Highlight}}:host .positioning-region:hover .content-region, :host([selected]) .positioning-region .content-region{color: ${F.HighlightText}}:host .positioning-region:hover .content-region .expand-collapse-glyph, :host .positioning-region:hover .content-region .start, :host .positioning-region:hover .content-region .end, :host([selected]) .content-region .expand-collapse-glyph, :host([selected]) .content-region .start, :host([selected]) .content-region .end{fill: ${F.HighlightText}}:host([selected])::after{background: ${F.Field}}:host(:${I}) .positioning-region{border-color: ${F.FieldText};box-shadow: 0 0 0 2px inset ${F.Field};color: ${F.FieldText}}:host([disabled]) .content-region, :host([disabled]) .positioning-region:hover .content-region{opacity: 1;color: ${F.GrayText}}:host([disabled]) .content-region .expand-collapse-glyph, :host([disabled]) .content-region .start, :host([disabled]) .content-region .end, :host([disabled]) .positioning-region:hover .content-region .expand-collapse-glyph, :host([disabled]) .positioning-region:hover .content-region .start, :host([disabled]) .positioning-region:hover .content-region .end{fill: ${F.GrayText}}:host([disabled]) .positioning-region:hover{background: ${F.Field}}.expand-collapse-glyph, .start, .end{fill: ${F.FieldText}}:host(.nested) .expand-collapse-button:hover{background: ${F.Field}}:host(.nested) .expand-collapse-button:hover .expand-collapse-glyph{fill: ${F.FieldText}}`));Ya.compose({baseName:`tree-item`,template:qa,styles:Vu,expandCollapseGlyph:`
169
169
  <svg
170
170
  viewBox="0 0 16 16"
171
171
  xmlns="http://www.w3.org/2000/svg"
@@ -250,7 +250,7 @@ function ty(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r
250
250
  `;case`t`:return` `;case`r`:return`\r`;case`b`:return`\b`;case`f`:return`\f`;case`\\`:return`\\`;case`"`:return`"`;case`'`:return`'`;case`/`:return`/`;case`u`:return this.readHexCodepoint(4);case`x`:return this.readHexCodepoint(2);default:return this.bail()}}readHexCodepoint(e){let t=this.src.slice(this.pos,this.pos+e);return(t.length!==e||!/^[0-9a-fA-F]+$/.test(t))&&this.bail(),this.pos+=e,String.fromCharCode(parseInt(t,16))}readNumber(){let e=this.pos;for((this.peek()===`-`||this.peek()===`+`)&&(this.pos+=1);this.pos<this.src.length&&/[0-9.eE+-]/.test(this.src[this.pos]);)this.pos+=1;let t=Number(this.src.slice(e,this.pos));return Number.isFinite(t)||this.bail(),t}readBareword(){switch(this.readIdentifier()){case`true`:case`True`:return!0;case`false`:case`False`:return!1;case`null`:case`None`:return null;default:return this.bail()}}readIdentifier(){let e=this.pos;for(/[A-Za-z_]/.test(this.peek())||this.bail();this.pos<this.src.length&&/[A-Za-z0-9_]/.test(this.src[this.pos]);)this.pos+=1;return this.src.slice(e,this.pos)}isDigit(e){return e>=`0`&&e<=`9`}peek(){return this.pos<this.src.length?this.src[this.pos]:``}skipWhitespace(){for(;this.pos<this.src.length&&/\s/.test(this.src[this.pos]);)this.pos+=1}expect(e){this.src[this.pos]!==e&&this.bail(),this.pos+=1}expectLiteral(e){this.src.slice(this.pos,this.pos+e.length)!==e&&this.bail(),this.pos+=e.length}bail(){throw Error(`MalformedFunctionCallParser: unexpected token`)}};function Roe(e,t){if(!e)return null;let n;try{n=new Loe(e).parse()}catch{return null}return t.has(n.name)?n:null}let zoe=e=>`https://generativelanguage.googleapis.com/v1beta/models/${e}:generateContent`,Boe={"gemini-2.5-pro":1048576,"gemini-2.5-flash":1048576,"gemini-2.5-flash-lite":1048576,"gemini-4-argon":1048576,"gemini-3.8-flash":1048576,"gemini-3.5-flash":1048576,"gemini-3.1-flash-lite":1048576,"gemini-3.1-pro-preview":1048576};function Voe(e){if(e&&e!==`auto`)return e===`required`?{functionCallingConfig:{mode:`ANY`}}:e===`none`?{functionCallingConfig:{mode:`NONE`}}:{functionCallingConfig:{mode:`ANY`,allowedFunctionNames:[e.tool]}}}function Hoe(e){if(!rx.includes(e))throw Error(`GeminiTransport: unsupported model "${e}". Use one of: ${rx.join(`, `)}.`)}let Uoe={"gemini-2.5-flash":`GeminiTransport: using gemini-2.5-flash — higher cost than flash-lite; use for harder reasoning or agent tasks.`,"gemini-2.5-pro":`GeminiTransport: using gemini-2.5-pro — significantly higher, prompt-size-tiered cost; reserve for tasks where flash reliability is insufficient.`,"gemini-3.5-flash":`GeminiTransport: using gemini-3.5-flash — frontier model, materially higher cost than flash-lite; use for harder reasoning or agent tasks.`,"gemini-3.8-flash":`GeminiTransport: using gemini-3.8-flash — frontier model, materially higher cost than flash-lite. Billed at an introductory $0.75/$3.75 per MTok through 2026-12-31 and $1.50/$7.50 from 2027-01-01; weigh a tier choice against the later rate.`,"gemini-4-argon":`GeminiTransport: using gemini-4-argon — premium reasoning model, materially higher cost than the flash tiers. Billed at $2/$10 per MTok through 2026-11-30 and $4/$20 from 2026-12-01; weigh a tier choice against the later rate.`,"gemini-3.1-pro-preview":`GeminiTransport: using gemini-3.1-pro-preview — PREVIEW model (no stability guarantee, may be withdrawn) with significantly higher, prompt-size-tiered cost; reserve for tasks where flash reliability is insufficient.`},IS=[`gemini-2.5-flash`,`gemini-2.5-flash-lite`],Woe=[`gemini-3.8-flash`,`gemini-3.5-flash`,`gemini-3.1-flash-lite`,`gemini-3.1-pro-preview`],Goe=[`gemini-4-argon`,`gemini-3.8-flash`,`gemini-3.5-flash`,`gemini-3.1-flash-lite`,`gemini-3.1-pro-preview`],LS=[`minimal`,`low`,`medium`,`high`],RS={"gemini-4-argon":[`low`,`medium`,`high`],"gemini-3.8-flash":[`low`,`medium`,`high`],"gemini-3.5-flash":[`minimal`,`low`,`medium`,`high`],"gemini-3.1-flash-lite":[`minimal`,`low`,`medium`,`high`],"gemini-3.1-pro-preview":[`low`,`medium`,`high`]};function zS(e,t){if(!e?.length||e.includes(t))return t;let n=LS.indexOf(t),r=e=>Math.abs(LS.indexOf(e)-n),i=e[0];for(let t of e)r(t)<=r(i)&&(i=t);return i}let BS={minimal:`minimal`,low:`low`,medium:`medium`,high:`high`,max:`high`},VS=e=>e!==void 0&&e!==`auto`&&e!==`off`;function Koe(e,t){if(VS(t)){let n=RS[e];if(n)return{includeThoughts:!0,thinkingLevel:zS(n,BS[t])}}return t===`off`&&IS.includes(e)?{includeThoughts:!1,thinkingBudget:0}:t===`auto`&&IS.includes(e)?{includeThoughts:!0,thinkingBudget:-1}:{includeThoughts:!0}}let HS=`gemini`;function US(e){let t=[],n=[];for(let r of e)r.kind===`image`?t.push({inlineData:{mimeType:ox(r.mimeType),data:sx(r.data)}}):n.push({text:`[File: ${r.name}]\n${r.content}`});return{imageParts:t,textParts:n}}var qoe=class extends Error{constructor(e){super(`Gemini returned MALFORMED_FUNCTION_CALL`),this.finishMessage=e,this.name=`MalformedFunctionCallError`}},WS=class e{warnIfThinkingUnclampable(e){if(!this.warnedThinkingClamped){if(e===`off`&&!IS.includes(this.model)){this.warnedThinkingClamped=!0,$b.warn(`GeminiTransport: thinkingPolicy 'off' ignored — ${this.model} runs its default thinking posture and takes no budget we can safely set. Reasoning tokens are still billed at the candidate rate; use a flash tier if you need them gone.`);return}if(VS(e)){let t=RS[this.model];if(!t){this.warnedThinkingClamped=!0,$b.warn(`GeminiTransport: thinkingPolicy '${e}' ignored — ${this.model} takes a numeric thinking budget, not the graded 'thinkingLevel' the Gemini 3 tiers use, so this turn runs at its default reasoning posture. Use a Gemini 3 tier to set reasoning depth.`);return}let n=BS[e],r=zS(t,n);r!==n&&(this.warnedThinkingClamped=!0,$b.warn(`GeminiTransport: thinkingPolicy '${e}' sent as thinkingLevel '${r}' — ${this.model} does not accept '${n}' (it takes ${t.join(`/`)}). Reasoning bills at the candidate rate, so an upward clamp costs more than you asked for.`))}}}constructor(e={}){this.lifetimeCostUsd=0,this.lifetimeSavingsUsd=0,this.warnedThinkingClamped=!1;let t=e.model??`gemini-2.5-flash-lite`;Hoe(t),this.model=t;let n=Uoe[t];n&&$b.warn(n),this.timeout=e.timeout??3e5,this.stallTimeout=e.stallTimeout??3e4,this.apiKey=e.apiKey,this.serverEndpoint=e.serverEndpoint}getConfig(){return{provider:`gemini`,model:this.model,contextLimit:Boe[this.model]}}getLifetimeCost(){return this.lifetimeCostUsd}getLifetimeSavings(){return this.lifetimeSavingsUsd}resetLifetimeCost(){this.lifetimeCostUsd=0,this.lifetimeSavingsUsd=0}sendStructuredPrompt(e){return J(this,void 0,void 0,function*(){let{systemPrompt:t,userPrompt:n,responseSchema:r}=e,i=[];return t&&(i.push({role:`user`,parts:[{text:t}]}),i.push({role:`model`,parts:[{text:`Understood.`}]})),i.push({role:`user`,parts:[{text:n}]}),(yield this.post({model:this.model,contents:i,responseSchema:r}))?.content??``})}sendChatMessage(e,t,n){return J(this,void 0,void 0,function*(){let r=this.toGeminiContents(e,t,n?.attachments);n?.tailContext&&r.push({role:`user`,parts:[{text:n.tailContext}]});let i=n?.tools?.length?[{functionDeclarations:n.tools.map(e=>({name:e.name,description:e.description,parameters:Fx(e.parameters)}))}]:void 0,a=n?.systemPrompt?{role:`system`,parts:[{text:n.systemPrompt}]}:void 0,o=i?Voe(n?.toolChoice):void 0;this.warnIfThinkingUnclampable(n?.thinkingPolicy);let s={thinkingConfig:Koe(this.model,n?.thinkingPolicy)};n?.maxTokens!=null&&(s.maxOutputTokens=n.maxTokens);let c=[...n?.attachments??[],...e.flatMap(e=>e.attachments??[]),...e.flatMap(e=>e.toolResult?.attachments??[])].find(e=>e.kind===`image`&&e.detail);c?.kind===`image`&&c.detail&&Woe.includes(this.model)&&(s.mediaResolution=`MEDIA_RESOLUTION_${c.detail.toUpperCase()}`),n?.temperature!=null&&(s.temperature=lx(n.temperature,{defaultTemp:1,maxTemp:2}));let l=new Set((n?.tools??[]).map(e=>e.name)),u=Goe.includes(this.model),d=n?.responseSchema!=null&&(!i||u),f=yield this.post(Object.assign({model:this.model,contents:r,tools:i,systemInstruction:a,toolConfig:o,generationConfig:s},d?{responseSchema:Fx(n.responseSchema)}:{}),n?.signal);return this.fromGeminiResponse(f,l,s.maxOutputTokens)})}logTokenUsage(t,n,r,i){let{costUsd:a,savedUsd:o,breakdown:s}=_x(this.model,{promptTokens:t,candidateTokens:n,thoughtTokens:r,cachedTokens:i});this.lifetimeCostUsd+=a,this.lifetimeSavingsUsd+=o;let c=e.COST_DECIMAL_PLACES;return console.log(`--- Gemini Token Usage (${this.model}) ---`),console.log(`Prompt Tokens: ${t} (${i} cached) ($${s.promptUsd.toFixed(c)} + $${s.cacheReadUsd.toFixed(c)})`),console.log(`Candidate Tokens: ${n} (+${r} thinking) ($${s.candidateUsd.toFixed(c)})`),console.log(`Total Cost: $${a.toFixed(c)}`),console.log(`Cache Saved: $${o.toFixed(c)} (lifetime $${this.lifetimeSavingsUsd.toFixed(c)})`),console.log(`Lifetime Cost: $${this.lifetimeCostUsd.toFixed(c)}`),console.log(`--------------------------`),a}toGeminiContents(e,t,n){let r=[],i=/* @__PURE__ */ new Map;for(let t of e){if(t.role===`system`||t.role===`system-event`||t.role===`synthetic-user`||t.role===`compacted-summary`||t.category===`reasoning`||t.category===`narration`||t.excludeFromProvider||t.thinking)continue;let e=t.role===`user`?`user`:`model`;if(t.toolResult){let e=i.get(t.toolResult.toolCallId)??t.toolResult.toolCallId;r.push({role:`user`,parts:[{functionResponse:{name:e,response:{content:t.toolResult.content}}}]});let n=t.toolResult.attachments??[];n.length&&r.push({role:`user`,parts:n.map(e=>({inlineData:{mimeType:ox(e.mimeType),data:e.data}}))})}else if(t.toolCalls?.length){for(let e of t.toolCalls)i.set(e.id,e.name);r.push({role:`model`,parts:t.toolCalls.map((e,t)=>{let n={functionCall:{name:e.name,args:e.args}},r=e.providerMetadata?.[HS],i=r?.model===this.model?r.thoughtSignature:void 0;return i?n.thoughtSignature=i:t===0&&(n.thoughtSignature=`skip_thought_signature_validator`),n})})}else if(e===`user`&&t.attachments?.length){let{imageParts:e,textParts:n}=US(t.attachments);r.push({role:`user`,parts:[...e,...t.content?[{text:t.content}]:[],...n]})}else r.push({role:e,parts:[{text:t.content}]})}let{imageParts:a,textParts:o}=US(n??[]);return(t||a.length||o.length)&&r.push({role:`user`,parts:[...a,...t?[{text:t}]:[],...o]}),r}usageFromGemini(e){if(!e)return{};let t=e,n=this.logTokenUsage(t.promptTokenCount??0,t.candidatesTokenCount??0,t.thoughtsTokenCount??0,t.cachedContentTokenCount??0);return{inputTokens:t.promptTokenCount,outputTokens:t.candidatesTokenCount!=null||t.thoughtsTokenCount!=null?(t.candidatesTokenCount??0)+(t.thoughtsTokenCount??0):void 0,thoughtsTokens:t.thoughtsTokenCount,cacheReadTokens:t.cachedContentTokenCount,cost:n}}fromGeminiResponse(e,t=/* @__PURE__ */ new Set,n){let{inputTokens:r,outputTokens:i,thoughtsTokens:a,cacheReadTokens:o,cost:s}=this.usageFromGemini(e.usageMetadata),c=e?.candidates?.[0],l=c?.content?.parts??[],u=[],d=[],f=[];for(let e of l)if(e.functionCall){let t={model:this.model};e.thoughtSignature&&(t.thoughtSignature=e.thoughtSignature),u.push({id:crypto.randomUUID(),name:e.functionCall.name,args:e.functionCall.args??{},providerMetadata:{[HS]:t}})}else e.thought&&e.text?d.push(e.text):e.text&&f.push(e.text);if(c?.finishReason===`MALFORMED_FUNCTION_CALL`){let e=Roe(c.finishMessage,t);if(!e)throw new qoe(c.finishMessage);u.push({id:crypto.randomUUID(),name:e.name,args:e.args})}let p=d.join(``),m=f.join(``),h=u.length>0?{role:`assistant`,content:m,reasoning:p||void 0,toolCalls:u}:{role:`assistant`,content:m,reasoning:p||void 0},g=c?.finishReason;(u.length===0&&!p&&!m||g&&g!==`STOP`&&g!==`MALFORMED_FUNCTION_CALL`)&&this.logAbnormalResponse(e,{finishReason:g,functionCallParts:u.length,thoughtParts:d.length,textParts:f.length}),this.guardMaxTokensTruncation(g,u,m,i,n),r!=null&&(h.inputTokens=r),i!=null&&(h.outputTokens=i),o!=null&&(h.cacheReadTokens=o),s!=null&&(h.cost=s);let _=e.promptFeedback?.blockReason;return(g!=null||a!=null||_!=null)&&(h.responseMeta={finishReason:g,thoughtsTokens:a,parts:{functionCall:u.length,thought:d.length,text:f.length},blockReason:_}),h}guardMaxTokensTruncation(e,t,n,r,i){if(e===`MAX_TOKENS`&&(t.length!==0||n.trim()===``))throw new NS(this.model,i,r,t.map(e=>e.name))}logAbnormalResponse(e,t){let n=e.usageMetadata??{},r=e.candidates?.[0]??{};$b.warn(`GeminiTransport: blank/non-STOP response`,{model:this.model,finishReason:t.finishReason,finishMessage:r.finishMessage,parts:{total:t.functionCallParts+t.thoughtParts+t.textParts,functionCall:t.functionCallParts,thought:t.thoughtParts,text:t.textParts},usage:{promptTokenCount:n.promptTokenCount,candidatesTokenCount:n.candidatesTokenCount,thoughtsTokenCount:n.thoughtsTokenCount,totalTokenCount:n.totalTokenCount},promptFeedback:e.promptFeedback,safetyRatings:r.safetyRatings,citationMetadata:r.citationMetadata})}buildEndpoint(e){if(this.apiKey)return{url:`${zoe(this.model)}?key=${this.apiKey}`,payload:this.toDirectPayload(e),headers:{"Content-Type":`application/json`},credentials:`omit`};if(this.serverEndpoint)return{url:this.serverEndpoint,payload:e,headers:{"Content-Type":`application/json`,Accept:`application/x-ndjson`},credentials:`include`};throw Error(`GeminiTransport: no API key or server endpoint configured. Set GEMINI_API_KEY in your .env or pass apiKey/serverEndpoint in GeminiAIConfig.`)}post(t,n){return J(this,void 0,void 0,function*(){let{url:r,payload:i,headers:a,credentials:o}=this.buildEndpoint(t);return yield vS({url:r,headers:a,body:i,credentials:o,vendorLabel:Bx.gemini,retryableStatuses:e.RETRYABLE_STATUSES,timeout:this.timeout,stallTimeout:this.stallTimeout,backoffBaseMs:e.BACKOFF_BASE_MS,signal:n})})}toDirectPayload(e){let t=Object.assign({},e);return delete t.model,t.responseSchema&&(t.generationConfig=Object.assign(Object.assign({},t.generationConfig),{responseMimeType:`application/json`,responseSchema:t.responseSchema}),delete t.responseSchema),t}};WS.TOKENS_PER_MILLION=1e6,WS.COST_DECIMAL_PLACES=6,WS.RATE_LIMIT_STATUS=429,WS.SERVICE_UNAVAILABLE_STATUS=503,WS.BAD_GATEWAY_STATUS=502,WS.RETRYABLE_STATUSES=[WS.RATE_LIMIT_STATUS,WS.SERVICE_UNAVAILABLE_STATUS,WS.BAD_GATEWAY_STATUS],WS.BACKOFF_BASE_MS=1e3;let Joe={"gpt-6-astra":922e3,"gpt-6.1-sol":105e4,"gpt-6.1-terra":105e4,"gpt-6-sol":105e4,"gpt-6-luna":105e4},GS=[`gpt-6.1-terra`,`gpt-6-luna`],Yoe={minimal:`low`,low:`low`,medium:`medium`,high:`high`,max:`max`};function Xoe(e,t){if(t!==void 0&&t!==`auto`)return t===`off`?GS.includes(e)?`none`:`low`:Yoe[t]}function Zoe(e){if(e&&e!==`auto`)return e===`required`||e===`none`?e:{type:`function`,name:e.tool}}function Qoe(e){let t=e.enforceSchema?zx(e.parameters,e.name):e.parameters;return{type:`function`,name:e.name,description:e.description,parameters:t,strict:!!e.enforceSchema}}function $oe(e){if(!ax.includes(e))throw Error(`OpenAITransport: unsupported model "${e}". Use one of: ${ax.join(`, `)}.`)}let ese={"gpt-6-astra":`OpenAITransport: using gpt-6-astra — flagship model at $10/$50 per MTok; reserve for tasks where the cheaper tiers are insufficient.`,"gpt-6.1-sol":`OpenAITransport: using gpt-6.1-sol — materially higher cost than terra/luna, and it cannot turn reasoning off (thinkingPolicy "off" runs at effort "low").`,"gpt-6-sol":`OpenAITransport: using gpt-6-sol — superseded by gpt-6.1-sol at the same price, and it cannot turn reasoning off.`},KS=`openai`,qS=Object.freeze({mode:`explicit`});function tse(e){let t=[],n=[],r=[],i=[],a=[],o;for(let s of e)if(s.type===`reasoning`){t.push(s);for(let e of s.summary??[])e.text&&n.push(e.text)}else if(s.type===`message`){typeof s.phase==`string`&&o!==`final_answer`&&(o=s.phase);for(let e of s.content??[])e.type===`output_text`&&typeof e.text==`string`&&r.push(e.text),e.type===`refusal`&&typeof e.refusal==`string`&&i.push(e.refusal)}else s.type===`function_call`&&a.push({id:String(s.call_id??s.id??crypto.randomUUID()),name:String(s.name),args:ose(s.arguments)});return{reasoning:t,summaryParts:n,textParts:r,refusals:i,toolCalls:a,phase:o}}function JS(e){let t={type:`input_image`,image_url:`data:${ox(e.mimeType)};base64,${sx(e.data)}`};return e.detail&&(t.detail=e.detail===`medium`?`auto`:e.detail),t}function YS(e,t){let n=[];for(let e of t)e.kind===`image`&&n.push(JS(e));e&&n.push({type:`input_text`,text:e});for(let e of t)e.kind!==`image`&&n.push({type:`input_text`,text:`[File: ${e.name}]\n${e.content}`});return n}function nse(e){return e.providerMetadata?.[KS]??e.toolCalls?.[0]?.providerMetadata?.[KS]}function rse(e){let{status:t}=e;return nd(e,[`status`])}var XS=class e{constructor(e={}){this.lifetimeCostUsd=0,this.lifetimeSavingsUsd=0,this.warnedThinkingClamped=/* @__PURE__ */ new Set;let t=e.model??`gpt-6-luna`;$oe(t),this.model=t;let n=ese[t];n&&$b.warn(n),this.timeout=e.timeout??3e5,this.stallTimeout=e.stallTimeout??3e4,this.apiKey=e.apiKey,this.serverEndpoint=e.serverEndpoint,this.maxTokens=e.maxTokens,this.reasoningSummary=e.reasoningSummary??`none`}getConfig(){return{provider:`openai`,model:this.model,contextLimit:Joe[this.model]}}getLifetimeCost(){return this.lifetimeCostUsd}getLifetimeSavings(){return this.lifetimeSavingsUsd}resetLifetimeCost(){this.lifetimeCostUsd=0,this.lifetimeSavingsUsd=0}sendStructuredPrompt(e){return J(this,void 0,void 0,function*(){let{systemPrompt:t,userPrompt:n,responseSchema:r}=e;return(yield this.sendChatMessage([],n,{systemPrompt:t,responseSchema:r})).content})}sendChatMessage(e,t,n){return J(this,void 0,void 0,function*(){let r=this.buildRequestBody(e,t,n),i=yield this.post(r,n?.signal),a=this.fromResponse(i,r.max_output_tokens);return this.restoreOptionalFields(a,n),a})}restoreOptionalFields(e,t){let n=ase(t?.tools);for(let t of e.toolCalls??[]){let e=n.get(t.name);e&&ZS(t.args,e)}if(!t?.responseSchema||!e.content)return;let{madeNullable:r}=Rx(t.responseSchema);if(r.length)try{let t=JSON.parse(e.content);ZS(t,r),e.content=JSON.stringify(t)}catch{}}buildRequestBody(e,t,n){let r=n?.cachePolicy&&n.cachePolicy.scope!=="default"?n.cachePolicy.scope:void 0,i=[];if(n?.systemPrompt){let e={type:`input_text`,text:n.systemPrompt};r&&(e.prompt_cache_breakpoint=qS),i.push({type:`message`,role:`developer`,content:[e]})}i.push(...this.toInputItems(e,t,n?.attachments)),r===`history`&&this.markHistoryBreakpoints(i),n?.tailContext&&i.push({type:`message`,role:`user`,content:[{type:`input_text`,text:n.tailContext}]});let a={model:this.model,input:i,store:!1,include:[`reasoning.encrypted_content`]};if(r&&(a.prompt_cache_options={mode:`explicit`,ttl:`30m`}),n?.tools?.length){a.tools=n.tools.map(Qoe);let e=Zoe(n.toolChoice);e&&(a.tool_choice=e)}this.warnIfThinkingClamped(n?.thinkingPolicy);let o=Xoe(this.model,n?.thinkingPolicy);o?a.reasoning=o===`none`||this.reasoningSummary===`none`?{effort:o}:{effort:o,summary:this.reasoningSummary}:this.reasoningSummary!==`none`&&(a.reasoning={summary:this.reasoningSummary}),n?.temperature!=null&&o===`none`&&(a.temperature=lx(n.temperature,{defaultTemp:1,maxTemp:2}));let s=n?.maxTokens??this.maxTokens;return s!=null&&(a.max_output_tokens=s),n?.responseSchema&&(a.text={format:{type:`json_schema`,name:`response`,schema:Rx(n.responseSchema).schema,strict:!0}}),a}warnIfThinkingClamped(e){e&&!this.warnedThinkingClamped.has(e)&&(e===`off`&&!GS.includes(this.model)?(this.warnedThinkingClamped.add(e),$b.warn(`OpenAITransport: thinkingPolicy 'off' sent as effort 'low' — ${this.model} does not accept effort 'none'. Reasoning tokens are billed as output; use gpt-6.1-terra or gpt-6-luna if you need them gone.`)):e===`minimal`&&(this.warnedThinkingClamped.add(e),$b.warn(`OpenAITransport: thinkingPolicy 'minimal' sent as effort 'low' — OpenAI has no 'minimal' effort.`)))}toInputItems(e,t,n){let r=[],i=/* @__PURE__ */ new Set;for(let t of e){if(t.role===`system`||t.role===`system-event`||t.role===`synthetic-user`||t.role===`compacted-summary`||t.category===`reasoning`||t.category===`narration`||t.excludeFromProvider||t.thinking)continue;if(t.toolResult){r.push(this.toFunctionCallOutput(t));continue}if(t.role===`user`){let e=YS(t.content,t.attachments??[]);e.length&&r.push({type:`message`,role:`user`,content:e});continue}let e=nse(t);if(e?.model===this.model)for(let t of e.reasoning??[]){let e=t.id??t.encrypted_content;i.has(e)||(i.add(e),r.push(rse(t)))}if(t.content){let n={type:`message`,role:`assistant`,content:[{type:`output_text`,text:t.content}]};e?.phase&&(n.phase=e.phase),r.push(n)}for(let e of t.toolCalls??[])r.push({type:`function_call`,call_id:e.id,name:e.name,arguments:JSON.stringify(e.args??{})})}let a=YS(t,n??[]);return a.length&&r.push({type:`message`,role:`user`,content:a}),r}toFunctionCallOutput(e){let t=e.toolResult,n=t.attachments??[];return{type:`function_call_output`,call_id:t.toolCallId,output:[{type:`input_text`,text:t.content},...n.map(JS)]}}markHistoryBreakpoints(e){let t=0;for(let n=e.length-1;n>=0&&t<49;--n){let r=e[n];if(r.role===`developer`)continue;let i=r.type===`function_call_output`?`output`:r.type===`message`&&r.role!==`assistant`?`content`:void 0;if(!i)continue;let a=[...r[i]],o=-1;for(let e=a.length-1;e>=0;--e)if(a[e].type===`input_text`){o=e;break}o<0||(a[o]=Object.assign(Object.assign({},a[o]),{prompt_cache_breakpoint:qS}),e[n]=Object.assign(Object.assign({},r),{[i]:a}),t+=1)}}usageFromResponse(t){if(!t)return{};let n=t,r=n.input_tokens_details?.cached_tokens??0,i=n.input_tokens_details?.cache_write_tokens??0,{costUsd:a,savedUsd:o}=bx(this.model,{inputTokens:n.input_tokens??0,outputTokens:n.output_tokens??0,cacheReadTokens:r,cacheWriteTokens:i,cacheWrite12hTokens:n.input_tokens_details?.cache_write_tokens_details?.ttl_12h_tokens??0});this.lifetimeCostUsd+=a,this.lifetimeSavingsUsd+=o;let s=e.COST_DECIMAL_PLACES;return console.log(`--- OpenAI Token Usage (${this.model}) ---`),console.log(`Input Tokens: ${n.input_tokens??0} (${r} cached, ${i} written)`),console.log(`Output Tokens: ${n.output_tokens??0} (incl. ${n.output_tokens_details?.reasoning_tokens??0} reasoning)`),console.log(`Total Cost: $${a.toFixed(s)}`),console.log(`Cache Saved: $${o.toFixed(s)} (lifetime $${this.lifetimeSavingsUsd.toFixed(s)})`),console.log(`Lifetime Cost: $${this.lifetimeCostUsd.toFixed(s)}`),console.log(`--------------------------`),{inputTokens:n.input_tokens,outputTokens:n.output_tokens,thoughtsTokens:n.output_tokens_details?.reasoning_tokens,cacheReadTokens:n.input_tokens_details?.cached_tokens,cacheWriteTokens:n.input_tokens_details?.cache_write_tokens,cost:a}}fromResponse(e,t){let n=this.usageFromResponse(e.usage),r=e.output??[],{reasoning:i,summaryParts:a,textParts:o,refusals:s,toolCalls:c,phase:l}=tse(r),u={model:this.model};i.length&&(u.reasoning=i),l&&(u.phase=l);let d={[KS]:u};c.length&&(c[0].providerMetadata=d);let f=o.join(``),p=a.join(`
251
251
 
252
252
  `),m=Object.assign({role:`assistant`,content:f,reasoning:p||void 0},c.length?{toolCalls:c}:{providerMetadata:d}),h=e.status;if(h===`failed`)throw ise(this.model,e.error);let g=e.incomplete_details?.reason,_=s.length&&!f&&!c.length?`refusal`:h===`incomplete`?g??`incomplete`:h;if(_===`refusal`&&$b.warn(`OpenAITransport: the model refused`,{model:this.model,refusal:s.join(`
253
- `)}),h===`incomplete`&&g===`content_filter`&&(m.content=``,delete m.toolCalls,$b.warn(`OpenAITransport: response stopped by the content filter; partial output dropped`,{model:this.model,outputTypes:r.map(e=>e.type)})),h===`incomplete`&&g===`max_output_tokens`&&(c.length||!f.trim()))throw new NS(this.model,t,n.outputTokens,c.map(e=>e.name));return!c.length&&!f&&!p&&_!==`refusal`&&_!==`content_filter`&&$b.warn(`OpenAITransport: blank response`,{model:this.model,status:h,incompleteReason:g,outputTypes:r.map(e=>e.type),usage:e.usage}),n.inputTokens!=null&&(m.inputTokens=n.inputTokens),n.outputTokens!=null&&(m.outputTokens=n.outputTokens),n.cacheReadTokens!=null&&(m.cacheReadTokens=n.cacheReadTokens),n.cacheWriteTokens!=null&&(m.cacheWriteTokens=n.cacheWriteTokens),n.cost!=null&&(m.cost=n.cost),m.model=this.model,(_!=null||n.thoughtsTokens!=null)&&(m.responseMeta={finishReason:_,thoughtsTokens:n.thoughtsTokens,parts:{functionCall:c.length,thought:a.length,text:o.length}}),m}buildEndpoint(e){if(this.apiKey)return{url:`https://api.openai.com/v1/responses`,payload:e,headers:{"Content-Type":`application/json`,Authorization:`Bearer ${this.apiKey}`},credentials:`omit`};if(this.serverEndpoint)return{url:this.serverEndpoint,payload:e,headers:{"Content-Type":`application/json`,Accept:`application/x-ndjson`},credentials:`include`};throw Error(`OpenAITransport: no API key or server endpoint configured. Pass apiKey or serverEndpoint in OpenAIAIConfig.`)}post(t,n){return J(this,void 0,void 0,function*(){let{url:r,payload:i,headers:a,credentials:o}=this.buildEndpoint(t);return yield vS({url:r,headers:a,body:i,credentials:o,vendorLabel:Bx.openai,retryableStatuses:e.RETRYABLE_STATUSES,timeout:this.timeout,stallTimeout:this.stallTimeout,backoffBaseMs:e.BACKOFF_BASE_MS,signal:n})})}};XS.COST_DECIMAL_PLACES=6,XS.RATE_LIMIT_STATUS=429,XS.SERVER_ERROR_STATUS=500,XS.BAD_GATEWAY_STATUS=502,XS.SERVICE_UNAVAILABLE_STATUS=503,XS.RETRYABLE_STATUSES=[XS.RATE_LIMIT_STATUS,XS.SERVER_ERROR_STATUS,XS.BAD_GATEWAY_STATUS,XS.SERVICE_UNAVAILABLE_STATUS],XS.BACKOFF_BASE_MS=1e3;function ise(e,t){let{code:n,message:r}=t??{};return/* @__PURE__ */ Error(`OpenAITransport: ${e} response failed${n?` (${n})`:``}: ${r??`no error detail`}`)}function ZS(e,t){for(let n of t)QS(e,n.split(`/`).slice(1))}function QS(e,t){if(!e||typeof e!=`object`)return;let[n,...r]=t;if(n===`items`&&Array.isArray(e)){for(let t of e)QS(t,r);return}if(n!==`properties`||!r.length||Array.isArray(e))return;let[i,...a]=r,o=e;if(!a.length){o[i]===null&&delete o[i];return}QS(o[i],a)}function ase(e){let t=/* @__PURE__ */ new Map;for(let n of e??[]){if(!n.enforceSchema)continue;let{madeNullable:e}=Rx(n.parameters);e.length&&t.set(n.name,e)}return t}function ose(e){if(e&&typeof e==`object`)return e;if(typeof e!=`string`||!e.trim())return{};try{let t=JSON.parse(e);return t&&typeof t==`object`?t:{}}catch{return $b.warn(`OpenAITransport: function_call arguments are not valid JSON`,{raw:e}),{}}}var $S=class e{constructor(){this.noopProvider=new nx}get(t){return t===e.DEFAULT_NAME?this.noopProvider:void 0}default(){return this.noopProvider}defaultName(){return e.DEFAULT_NAME}names(){return[e.DEFAULT_NAME]}getStatus(t){return J(this,void 0,void 0,function*(){var n;return t!==void 0&&t!==e.DEFAULT_NAME?null:(yield(n=this.noopProvider).getStatus?.call(n))??null})}listStatuses(){return J(this,void 0,void 0,function*(){var t;let n=(yield(t=this.noopProvider).getStatus?.call(t))??null;return[{name:e.DEFAULT_NAME,isDefault:!0,status:n}]})}};$S.DEFAULT_NAME=`default`;let eC=N.createInterface(e=>e.singleton($S)),tC=6e4,nC=3e5;Object.freeze({anthropic:Object.freeze({low:Object.freeze({model:`claude-haiku-5-5`,maxTokens:32e3,stallTimeoutMs:tC,timeoutMs:nC}),high:Object.freeze({model:`claude-sonnet-5-5`,maxTokens:128e3,stallTimeoutMs:tC,timeoutMs:nC}),reasoning:Object.freeze({model:`claude-opus-5-5`,maxTokens:128e3,stallTimeoutMs:tC,timeoutMs:nC})}),gemini:Object.freeze({low:Object.freeze({model:`gemini-3.1-flash-lite`,stallTimeoutMs:tC,timeoutMs:nC}),high:Object.freeze({model:`gemini-3.8-flash`,stallTimeoutMs:tC,timeoutMs:nC}),reasoning:Object.freeze({model:`gemini-3.1-pro-preview`,stallTimeoutMs:tC,timeoutMs:nC})}),openai:Object.freeze({low:Object.freeze({model:`gpt-6-luna`,stallTimeoutMs:tC,timeoutMs:nC}),high:Object.freeze({model:`gpt-6.1-terra`,stallTimeoutMs:tC,timeoutMs:nC}),reasoning:Object.freeze({model:`gpt-6.1-sol`,stallTimeoutMs:tC,timeoutMs:nC})})});let rC=O` :host{display: block;width: 800px}.ai-criteria-search{display: flex;flex-direction: column;gap: calc(${B} * 2px)}.ai-criteria-search-row{display: flex;flex-direction: row;gap: calc(${B} * 2px);align-items: center}.criteria-input{height: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit) - 4) * 1px);flex: 1;min-width: 0}.criteria-chips-inline{height: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit) - 4) * 1px);flex: 1;min-width: 0;display: flex;align-items: center;gap: calc(${B} * 1px);overflow-x: auto;padding: 0 calc(${B} * 2px);background: var(--neutral-fill-input-rest);border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);border-radius: calc(var(--control-corner-radius) * 1px);scrollbar-width: none}.criteria-chips-inline::-webkit-scrollbar{display: none}.mic-icon{color: var(--neutral-foreground-rest);fill: currentColor}.criteria-toggle-button, .criteria-clear-button{flex-shrink: 0}.criteria-chip{display: inline-flex;align-items: center;flex-shrink: 0;gap: calc(${B} * 1px);padding: calc(${B} * 0.5px) calc(${B} * 2px);background: var(--neutral-fill-rest);border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);border-radius: calc(${B} * 4px);font-size: var(--type-ramp-minus-1-font-size);color: var(--neutral-foreground-rest);white-space: nowrap}.criteria-chip-field{font-weight: 600}.criteria-chip-operator{color: var(--neutral-foreground-hint, var(--neutral-foreground-rest));font-style: italic}.criteria-chip-remove{display: inline-flex;align-items: center;justify-content: center;width: 14px;height: 14px;padding: 0;margin-left: calc(${B} * 0.5px);background: none;border: none;cursor: pointer;color: var(--neutral-foreground-hint, var(--neutral-foreground-rest));font-size: 10px;border-radius: 50%;line-height: 1}.criteria-chip-remove:hover{background: var(--neutral-fill-hover);color: var(--neutral-foreground-rest)}`,sse=e=>T` ${A(()=>Qb(),T`<div class="ai-criteria-search"><div class="ai-criteria-search-row">${A(e=>!e.showingChips,T`<${e}-text-area ${k(`textAreaRef`)}class="criteria-input" placeholder="${e=>e.placeholder}" ?disabled=${e=>e.disabled||e.isInterpreting}:value=${cf(e=>e.inputValue,`string`,`input`)}@blur=${e=>e.handleBlur()}rows="1"></${e}-text-area>`)} ${A(e=>e.showingChips,T`<div class="criteria-chips-inline">${j(e=>e.criteriaChips,T`<span class="criteria-chip"><span class="criteria-chip-field">${e=>e.fieldLabel}</span><span class="criteria-chip-operator">${e=>e.operatorLabel}</span>${A(e=>!!e.valueLabel,T`<span class="criteria-chip-value">${e=>e.valueLabel}</span>`)}<button class="criteria-chip-remove" aria-label="Remove filter" @click=${(e,t)=>t.parent.removeChip(e.groupIndex,e.clauseIndex)}>
253
+ `)}),h===`incomplete`&&g===`content_filter`&&(m.content=``,delete m.toolCalls,$b.warn(`OpenAITransport: response stopped by the content filter; partial output dropped`,{model:this.model,outputTypes:r.map(e=>e.type)})),h===`incomplete`&&g===`max_output_tokens`&&(c.length||!f.trim()))throw new NS(this.model,t,n.outputTokens,c.map(e=>e.name));return!c.length&&!f&&!p&&_!==`refusal`&&_!==`content_filter`&&$b.warn(`OpenAITransport: blank response`,{model:this.model,status:h,incompleteReason:g,outputTypes:r.map(e=>e.type),usage:e.usage}),n.inputTokens!=null&&(m.inputTokens=n.inputTokens),n.outputTokens!=null&&(m.outputTokens=n.outputTokens),n.cacheReadTokens!=null&&(m.cacheReadTokens=n.cacheReadTokens),n.cacheWriteTokens!=null&&(m.cacheWriteTokens=n.cacheWriteTokens),n.cost!=null&&(m.cost=n.cost),m.model=this.model,(_!=null||n.thoughtsTokens!=null)&&(m.responseMeta={finishReason:_,thoughtsTokens:n.thoughtsTokens,parts:{functionCall:c.length,thought:a.length,text:o.length}}),m}buildEndpoint(e){if(this.apiKey)return{url:`https://api.openai.com/v1/responses`,payload:e,headers:{"Content-Type":`application/json`,Authorization:`Bearer ${this.apiKey}`},credentials:`omit`};if(this.serverEndpoint)return{url:this.serverEndpoint,payload:e,headers:{"Content-Type":`application/json`,Accept:`application/x-ndjson`},credentials:`include`};throw Error(`OpenAITransport: no API key or server endpoint configured. Pass apiKey or serverEndpoint in OpenAIAIConfig.`)}post(t,n){return J(this,void 0,void 0,function*(){let{url:r,payload:i,headers:a,credentials:o}=this.buildEndpoint(t);return yield vS({url:r,headers:a,body:i,credentials:o,vendorLabel:Bx.openai,retryableStatuses:e.RETRYABLE_STATUSES,timeout:this.timeout,stallTimeout:this.stallTimeout,backoffBaseMs:e.BACKOFF_BASE_MS,signal:n})})}};XS.COST_DECIMAL_PLACES=6,XS.RATE_LIMIT_STATUS=429,XS.SERVER_ERROR_STATUS=500,XS.BAD_GATEWAY_STATUS=502,XS.SERVICE_UNAVAILABLE_STATUS=503,XS.RETRYABLE_STATUSES=[XS.RATE_LIMIT_STATUS,XS.SERVER_ERROR_STATUS,XS.BAD_GATEWAY_STATUS,XS.SERVICE_UNAVAILABLE_STATUS],XS.BACKOFF_BASE_MS=1e3;function ise(e,t){let{code:n,message:r}=t??{};return/* @__PURE__ */ Error(`OpenAITransport: ${e} response failed${n?` (${n})`:``}: ${r??`no error detail`}`)}function ZS(e,t){for(let n of t)QS(e,n.split(`/`).slice(1))}function QS(e,t){if(!e||typeof e!=`object`)return;let[n,...r]=t;if(n===`items`&&Array.isArray(e)){for(let t of e)QS(t,r);return}if(n!==`properties`||!r.length||Array.isArray(e))return;let[i,...a]=r,o=e;if(!a.length){o[i]===null&&delete o[i];return}QS(o[i],a)}function ase(e){let t=/* @__PURE__ */ new Map;for(let n of e??[]){if(!n.enforceSchema)continue;let{madeNullable:e}=Rx(n.parameters);e.length&&t.set(n.name,e)}return t}function ose(e){if(e&&typeof e==`object`)return e;if(typeof e!=`string`||!e.trim())return{};try{let t=JSON.parse(e);return t&&typeof t==`object`?t:{}}catch{return $b.warn(`OpenAITransport: function_call arguments are not valid JSON`,{raw:e}),{}}}var $S=class e{constructor(){this.noopProvider=new nx}get(t){return t===e.DEFAULT_NAME?this.noopProvider:void 0}default(){return this.noopProvider}defaultName(){return e.DEFAULT_NAME}names(){return[e.DEFAULT_NAME]}getStatus(t){return J(this,void 0,void 0,function*(){var n;return t!==void 0&&t!==e.DEFAULT_NAME?null:(yield(n=this.noopProvider).getStatus?.call(n))??null})}listStatuses(){return J(this,void 0,void 0,function*(){var t;let n=(yield(t=this.noopProvider).getStatus?.call(t))??null;return[{name:e.DEFAULT_NAME,isDefault:!0,status:n}]})}};$S.DEFAULT_NAME=`default`;let eC=N.createInterface(e=>e.singleton($S)),tC=6e4,nC=3e5;Object.freeze({anthropic:Object.freeze({low:Object.freeze({model:`claude-haiku-5-5`,maxTokens:32e3,stallTimeoutMs:tC,timeoutMs:nC}),high:Object.freeze({model:`claude-sonnet-5-5`,maxTokens:128e3,stallTimeoutMs:tC,timeoutMs:nC}),reasoning:Object.freeze({model:`claude-opus-5-5`,maxTokens:128e3,stallTimeoutMs:tC,timeoutMs:nC})}),gemini:Object.freeze({low:Object.freeze({model:`gemini-3.1-flash-lite`,stallTimeoutMs:tC,timeoutMs:nC}),high:Object.freeze({model:`gemini-3.8-flash`,stallTimeoutMs:tC,timeoutMs:nC}),reasoning:Object.freeze({model:`gemini-3.1-pro-preview`,stallTimeoutMs:tC,timeoutMs:nC})}),openai:Object.freeze({low:Object.freeze({model:`gpt-6-luna`,stallTimeoutMs:tC,timeoutMs:nC}),high:Object.freeze({model:`gpt-6.1-terra`,stallTimeoutMs:tC,timeoutMs:nC}),reasoning:Object.freeze({model:`gpt-6.1-sol`,stallTimeoutMs:tC,timeoutMs:nC})})});let rC=O` :host{display: block;width: 800px}.ai-criteria-search{display: flex;flex-direction: column;gap: calc(${z} * 2px)}.ai-criteria-search-row{display: flex;flex-direction: row;gap: calc(${z} * 2px);align-items: center}.criteria-input{height: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit) - 4) * 1px);flex: 1;min-width: 0}.criteria-chips-inline{height: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit) - 4) * 1px);flex: 1;min-width: 0;display: flex;align-items: center;gap: calc(${z} * 1px);overflow-x: auto;padding: 0 calc(${z} * 2px);background: var(--neutral-fill-input-rest);border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);border-radius: calc(var(--control-corner-radius) * 1px);scrollbar-width: none}.criteria-chips-inline::-webkit-scrollbar{display: none}.mic-icon{color: var(--neutral-foreground-rest);fill: currentColor}.criteria-toggle-button, .criteria-clear-button{flex-shrink: 0}.criteria-chip{display: inline-flex;align-items: center;flex-shrink: 0;gap: calc(${z} * 1px);padding: calc(${z} * 0.5px) calc(${z} * 2px);background: var(--neutral-fill-rest);border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);border-radius: calc(${z} * 4px);font-size: var(--type-ramp-minus-1-font-size);color: var(--neutral-foreground-rest);white-space: nowrap}.criteria-chip-field{font-weight: 600}.criteria-chip-operator{color: var(--neutral-foreground-hint, var(--neutral-foreground-rest));font-style: italic}.criteria-chip-remove{display: inline-flex;align-items: center;justify-content: center;width: 14px;height: 14px;padding: 0;margin-left: calc(${z} * 0.5px);background: none;border: none;cursor: pointer;color: var(--neutral-foreground-hint, var(--neutral-foreground-rest));font-size: 10px;border-radius: 50%;line-height: 1}.criteria-chip-remove:hover{background: var(--neutral-fill-hover);color: var(--neutral-foreground-rest)}`,sse=e=>T` ${A(()=>Qb(),T`<div class="ai-criteria-search"><div class="ai-criteria-search-row">${A(e=>!e.showingChips,T`<${e}-text-area ${k(`textAreaRef`)}class="criteria-input" placeholder="${e=>e.placeholder}" ?disabled=${e=>e.disabled||e.isInterpreting}:value=${cf(e=>e.inputValue,`string`,`input`)}@blur=${e=>e.handleBlur()}rows="1"></${e}-text-area>`)} ${A(e=>e.showingChips,T`<div class="criteria-chips-inline">${j(e=>e.criteriaChips,T`<span class="criteria-chip"><span class="criteria-chip-field">${e=>e.fieldLabel}</span><span class="criteria-chip-operator">${e=>e.operatorLabel}</span>${A(e=>!!e.valueLabel,T`<span class="criteria-chip-value">${e=>e.valueLabel}</span>`)}<button class="criteria-chip-remove" aria-label="Remove filter" @click=${(e,t)=>t.parent.removeChip(e.groupIndex,e.clauseIndex)}>
254
254
  &#x2715;
255
255
  </button></span>`)}</div>`)}<${e}-button class="criteria-toggle-button" appearance="outline" title=${e=>e.showingChips?`Add more criteria`:`View active filters`}?disabled=${e=>e.activeGroups.length===0||e.isInterpreting}@click=${e=>e.toggleCriteriaView()}><${e}-icon name="pen" size="sm"></${e}-icon></${e}-button><${e}-button class="criteria-clear-button" appearance="outline" title="Clear all filters" ?disabled=${e=>e.activeGroups.length===0||e.isInterpreting}@click=${e=>e.clearChips()}><${e}-icon name="trash-alt" size="sm"></${e}-icon></${e}-button>${A(e=>e.speechAvailable,T`<${e}-button class="mic-button" appearance="${e=>e.isRecording?`accent`:`outline`}" ?disabled=${e=>e.disabled||e.isInterpreting}@click=${e=>e.toggleSpeechInput()}title=${e=>e.isRecording?`Stop recording`:`Start voice input`}><${e}-icon class="mic-icon" name="microphone" size="lg" variant="solid"></${e}-icon></${e}-button>`)}</div></div>`)} `,iC=T` ${e=>sse(yb(e))} `,cse={contains:Ab.containsIgnoreCase,equals:Ab.EQ,startsWith:Ab.startsWith,endsWith:Ab.endsWith,greaterThan:Ab.GT,lessThan:Ab.LT,greaterThanOrEqual:Ab.GE,lessThanOrEqual:Ab.LE,notEqual:Ab.NE,dateIsToday:Ab.dateIsToday,dateIsAfter:Ab.dateIsGreaterEqual,dateIsGreaterEqual:Ab.dateIsGreaterEqual,dateIsBefore:Ab.dateIsLessEqual,dateIsLessEqual:Ab.dateIsLessEqual,dateIsEqual:Ab.dateIsEqual,dateTimeIsAfter:Ab.dateTimeIsGreaterEqual,dateTimeIsGreaterEqual:Ab.dateTimeIsGreaterEqual,dateTimeIsBefore:Ab.dateTimeIsLessEqual,dateTimeIsLessEqual:Ab.dateTimeIsLessEqual};function lse(e){let t=cse[e.operator];if(!t)throw Error(`Unknown criteria operator '${e.operator}'`);return new Fb().withField(e.field).withValue(e.value??null).withSerialiser(t).withGroup(`default`).build()}function use(e,t){return e.length===1?e[0]:e.reduce((e,n,r)=>r===0?[n]:[...e,t,n],[])}function aC(e){let t=new Pb,n=!1;for(let r of e){if(!r.clauses?.length)continue;let e=r.clauses.map(lse),i=r.logic===`or`?Cb.Or():Cb.And(),a=use(e,i),o=e.length>1?{join:i}:{};r.negated?t.And([Cb.Not(),a]):t.And(e.length===1?e[0]:e,o),n=!0}return n?t.build():``}let dse=[`contains`,`equals`,`startsWith`,`notEqual`],oC=[`equals`,`greaterThan`,`lessThan`,`greaterThanOrEqual`,`lessThanOrEqual`,`notEqual`],sC=[`dateIsToday`,`dateIsAfter`,`dateIsBefore`,`dateIsEqual`,`dateIsGreaterEqual`,`dateIsLessEqual`],cC=[`dateTimeIsAfter`,`dateTimeIsBefore`,`dateTimeIsGreaterEqual`,`dateTimeIsLessEqual`],fse={contains:`contains`,equals:`=`,startsWith:`starts with`,endsWith:`ends with`,notEqual:`≠`,greaterThan:`>`,lessThan:`<`,greaterThanOrEqual:`≥`,lessThanOrEqual:`≤`,dateIsToday:`is today`,dateIsAfter:`after`,dateIsBefore:`before`,dateIsEqual:`=`,dateIsGreaterEqual:`≥`,dateIsLessEqual:`≤`,dateTimeIsAfter:`after`,dateTimeIsBefore:`before`,dateTimeIsGreaterEqual:`≥`,dateTimeIsLessEqual:`≤`},pse=/* @__PURE__ */ new Set([`DATE`,`LOCALDATE`]),mse=/* @__PURE__ */ new Set([`DATETIME`,`NANO_TIMESTAMP`,`LOCALDATETIME`,`TIMESTAMP`]),lC=/* @__PURE__ */ new Set([`INT`,`INTEGER`,`LONG`,`SHORT`,`DOUBLE`,`BIGDECIMAL`,`DECIMAL`]);function uC(e){return(e||``).toUpperCase().trim().split(`(`)[0].trim()}function hse(e){let t=uC(e);return pse.has(t)?sC:mse.has(t)?cC:lC.has(t)?oC:dse}function gse(e){return lC.has(uC(e))}function _se(e){return e==null?!1:typeof e==`number`?!Number.isNaN(e)&&e>0:typeof e==`string`?/^\d{8}$/.test(e)||/^\d{4}-\d{2}-\d{2}$/.test(e)||/^\d{8}-\d{2}:\d{2}(:\d{2})?$/.test(e):!1}function vse(e){return e==null?!1:typeof e==`number`?!Number.isNaN(e):typeof e==`string`&&!Number.isNaN(Number(e))}function yse(e,t){let n=[],r=[],i=/* @__PURE__ */ new Map;Array.isArray(t)&&t.length>0&&(typeof t[0]==`string`?t.forEach(e=>i.set(e,void 0)):t.forEach(e=>i.set(e.NAME,e)));for(let t of e){let{field:e,operator:a,value:o}=t;if(!e||typeof e!=`string`){r.push({field:String(e),message:`Field name is required`});continue}let s=i.get(e),c=s&&`TYPE`in s?s.TYPE:`STRING`;if(!hse(c).includes(a)){r.push({field:e,operator:a,value:o,message:`Operator '${a}' is not allowed for field type ${c}`});continue}if((sC.includes(a)||cC.includes(a))&&a!==`dateIsToday`&&!_se(o)){r.push({field:e,operator:a,value:o,message:`Invalid date/datetime value; use yyyyMMdd, yyyy-MM-dd, or epoch`});continue}if(gse(c)&&oC.includes(a)&&!vse(o)){r.push({field:e,operator:a,value:o,message:`Invalid numeric value`});continue}if(i.size>0&&!i.has(e)){r.push({field:e,operator:a,value:o,message:`Unknown field '${e}'`});continue}n.push(t)}return{valid:n,invalid:r}}function bse(e,t){let n=[],r=[];for(let i of e){if(!i?.clauses||!Array.isArray(i.clauses)){r.push({field:``,message:`Group must have a clauses array`});continue}let{valid:e,invalid:a}=yse(i.clauses,t);r.push(...a),e.length>0&&n.push({logic:i.logic??`and`,negated:i.negated,clauses:e})}return{valid:n,invalid:r}}let dC=kd(`foundation-notifications`),fC=null,pC=/* @__PURE__ */ new Map,mC=e=>`${e?.title??`Error`}: ${e?.body??`Something went wrong`}`,xse=e=>e?.logLevel||e?.config?.logLevel||_d.debug,hC=e=>{dC.log({message:mC(e),level:xse(e)})},gC=(e,t)=>{let n=document.querySelector(`#${e}`);if(!n){if(pC.has(e))n=pC.get(e);else{let t=Id(document).find(t=>t.id===e);t&&(n=t,pC.set(e,t))}}if(!n){n=document.createElement(`div`),n.setAttribute(`id`,e),n.style.zIndex=`9999`;let{element:t,prefix:r}=zd(document.body,`rapid`);if(t)t.appendChild(n),fC=t;else if(fC)fC.appendChild(n);else{let e=document.createElement(`${r}-design-system-provider`);e.appendChild(n),document.body.appendChild(e),fC=e}}return n},Sse=e=>{for(;e&&!(e instanceof ShadowRoot);){let t=(e?.getRootNode())?.getElementById(`banner-anchor`);if(t)return t.style.position=`relative`,t;e=e?.getRootNode()?.host}return Cse()},Cse=()=>{let e=document.createElement(`div`);return e.setAttribute(`id`,`banner-anchor`),e.style.position=`relative`,document.body.insertBefore(e,document.body.firstChild),e},wse=e=>{hC(e),alert(mC(e))},Tse=(e,t,n)=>{hC(e);let r=t.split(`-`)[0],i=document.createElement(`${r}-banner`),a=Sse(n);a?.children?.length>0&&(i.style.position=`absolute`,i.style.top=`0`,i.style.left=`0`,i.style.width=`100%`),a.appendChild(i),i.notification=e},Ese=e=>{let t=e.querySelector(`#dialog-container`);return t||(t=document.createElement(`div`),t.setAttribute(`id`,`dialog-container`),t.style.position=`relative`,e.appendChild(t)),t},Dse=(e,t,n)=>{hC(e);let r=t.split(`-`)[0],i=document.createElement(`${r}-dialog`);(n?Ese(n):gC(`dialog-container`,t)).appendChild(i),i.notification=e,i.show()};var _C;(function(e){e.NOTIFICATION_EVENT=`notification-event`})(_C||(_C={}));var vC;(function(e){e.Top=`top`,e.Bottom=`bottom`})(vC||(vC={}));var yC;(function(e){e.Left=`left`,e.Right=`right`})(yC||(yC={}));let bC=`12px`,Ose=(e,t,n)=>{e.style.position=`fixed`,e.style.top=t===vC.Top?bC:``,e.style.bottom=t===vC.Bottom?bC:``,e.style.left=n===yC.Left?bC:``,e.style.right=n===yC.Right?bC:``},kse=(e,t)=>{hC(e);let n=t.split(`-`)[0],r=document.createElement(`${n}-snackbar`),i=e.config?.snackbar?.verticalEdge??vC.Bottom,a=e.config?.snackbar?.horizontalEdge??yC.Left,o=gC(`snack-container-${i}-${a}`,t);o&&Ose(o,i,a),o.appendChild(r),r.notification=e},Ase=e=>Id(document.body).find(t=>t.tagName.toLowerCase()===`notify-container`&&t.position===e);function jse(e,t){switch(t.style.position=`fixed`,e?.config?.toast?.position){case`top-left`:t.style.top=`var(--nav-height, 0)`,t.style.left=`0`;break;case`bottom-left`:t.style.bottom=`0`,t.style.left=`0`;break;case`bottom-right`:t.style.bottom=`0`,t.style.right=`0`;break;default:t.style.top=`var(--nav-height, 0)`,t.style.right=`0`}}let xC=(e,t,n)=>{var r,i;hC(e);let a=t.split(`-`)[0],o=e?.config?.toast?.position||`top-right`,s=n??Ase(o)??gC(`notify-container`,t);s&&s.tagName.toLowerCase()!==`notify-container`&&jse(e,s);let c=document.createElement(`${a}-toast`),l=document.createElement(`div`);l.setAttribute(`slot`,`top`),l.textContent=e.title;let u=document.createElement(`div`);u.setAttribute(`slot`,`content`),u.textContent=e?.body||``;let d=document.createElement(`div`);d.setAttribute(`slot`,`date`),d.textContent=(e?.createdAt)?.toLocaleTimeString()||``;let f;e?.config?.toast?.buttons&&e?.config?.toast?.buttons?.length&&(f=document.createElement(`div`),f.setAttribute(`slot`,`bottom`),e.config.toast.buttons.forEach(t=>{let n=document.createElement(`${a}-button`);n.textContent=t.placeholder||`example placeholder`,n.addEventListener(`click`,()=>{let{details:r}=e.config.toast;if(t.action)return t.action({details:r,buttonElement:n,toastElement:c})}),t.appearance&&n.setAttribute(`appearance`,t.appearance),f.appendChild(n)})),c.setAttribute(`notify`,e?.config?.toast?.type||``),e.iconName&&c.setAttribute(`notification-icon`,e.iconName),(r=e?.config?.toast)!=null&&r.autoClose&&c.setAttribute(`auto-close`,`${e?.config?.toast?.autoClose}`),(i=e?.config?.toast)!=null&&i.closeTimeout&&c.setAttribute(`close-timeout`,`${e?.config?.toast?.closeTimeout}`),c.appendChild(l),c.appendChild(u),c.appendChild(d),f&&c.appendChild(f),s.prepend(c)},SC=(e,t,n)=>{if(!e.title)throw Error(`Title is required`);if(!e.body)throw Error(`Missing required param 'body'`);let r={title:e.title,body:e.body,iconName:e.iconName},i={};e.createdAt&&(r=Object.assign({createdAt:e.createdAt},r)),e.logLevel!=null&&(r=Object.assign({logLevel:e.logLevel},r)),e.toast&&(i=Object.assign({toast:e.toast},i),r=Object.assign({config:i},r)),xC(r,t,n)},Mse=O` :host{position: fixed;z-index: 9999;display: flex;flex-direction: column;gap: 4px;box-sizing: border-box;pointer-events: none;/* Allow clicks to pass through empty space */ width: 415px}.toast-container{padding: 0 8px 12px 12px;position: relative}/* Expanded / List State: Allow scrolling if too many items */ :host(:not([stack-collapsed])){max-height: calc(100% - var(--nav-height));overflow: hidden;pointer-events: auto;/* Enable pointer events for scrolling */ slot{display: block;height: calc(100vh - var(--nav-height) - 54px);position: relative}.toast-container{flex: 1;height: 100%;overflow: hidden auto;scrollbar-color: var(--neutral-layer-3) transparent;&:hover{scrollbar-color: var(--neutral-layer-4) transparent}}}.header{display: flex;gap: 12px;pointer-events: none;margin: 5px 24px;justify-content: space-between;visibility: hidden;align-items: center;box-sizing: border-box;.header-title{text-shadow: 0 0 10px #000}.notification-header-buttons{display: flex;gap: 4px;rapid-icon{color: var(--neutral-foreground-hint);margin-left: 4px;display: inline-flex;font-size: 14px;&.chevron-up.collapse{transform: rotate(180deg);transition: transform 0.3s ease}}}--base-height-multiplier: 8;*[appearance='neutral']{font-size: 11px;cursor: pointer;background: var(--neutral-fill-rest)}}.header.visible{visibility: visible;pointer-events: auto;/* Enable clicks on header buttons */}:host([position$='left']) .header{justify-content: space-between}:host([position^='bottom']) .header{margin-bottom: 0;margin-top: 4px}/* Ensure children (toasts) are clickable */ ::slotted(*){pointer-events: auto}:host([position='top-right']){top: var(--nav-height, 0);right: 0}:host([position='top-left']){top: var(--nav-height, 0);left: 0}:host([position='bottom-right']){bottom: 0;right: 0;flex-direction: column-reverse}:host([position='bottom-left']){bottom: 0;left: 0;flex-direction: column-reverse}/* Stacked / Collapsed State */ :host([stack-collapsed]){height: min-content;/* Host allows pointer events so they can reach the slot */ pointer-events: auto;cursor: pointer}/* Apply the grid layout to the slot itself so it acts as the container and click target */ :host([stack-collapsed]) slot{display: grid;grid-template-columns: auto;grid-template-rows: auto;place-items: end center;/* Default to bottom-up stacking */ /* The slot catches the click */ pointer-events: auto}/* Rotate when the collapse class is present */ :host([stack-collapsed][position^='top']) slot{align-items: start}:host([stack-collapsed][position$='right']) slot{justify-items: end}:host([stack-collapsed][position$='left']) slot{justify-items: start}:host([stack-collapsed]) ::slotted(*){grid-area: 1 / 1;transition: transform 0.3s ease, top 0.3s ease, opacity 0.3s ease;opacity: 0%;pointer-events: none !important;/* Disable interaction with toasts in collapsed state */ transform: scale(0.9);top: 0 !important}/* Show and offset the top 3 items in the stack */ :host([stack-collapsed]) ::slotted([data-stack-index='0']){opacity: 100%;pointer-events: auto;transform: translateY(0) scale(1);z-index: 3;position: relative !important}:host([stack-collapsed]) ::slotted([data-stack-index='1']){opacity: 100%;transform: translateY(var(--stack-offset-y, 8px)) scale(0.95);z-index: 2;position: relative !important}:host([stack-collapsed]) ::slotted([data-stack-index='2']){opacity: 100%;transform: translateY(var(--stack-offset-y-2, 16px)) scale(0.9);z-index: 1;position: relative !important}/* Adjust offset direction based on position */ :host([stack-collapsed][position^='top']){--stack-offset-y: 8px;--stack-offset-y-2: 16px}:host([stack-collapsed][position^='bottom']){--stack-offset-y: -8px;--stack-offset-y-2: -16px}`,Nse=e=>T`<div class="header ${e=>fn([`visible`,e.slottedNodes.length>1])}">${A(e=>e.showCount,T`<span class="header-title">${e=>e.slottedNodes.length}Notifications</span>`)}<div class="notification-header-buttons">${A(e=>e.allowManualCollapse,T`<${e}-button @click=${e=>e.handleToggleCollapse()}>${e=>e.stackCollapsed?`Expand`:`Collapse`}<${e}-icon class="chevron-up ${e=>fn([`collapse`,e.stackCollapsed])}" name="chevron-up"></${e}-icon></${e}-button>`)} ${A(e=>e.allowCloseAll,T`<${e}-button @click=${e=>e.handleCloseAll()}>
256
256
  Close All <${e}-icon name="xmark"></${e}-icon></${e}-button>`)}</div></div>`,Pse=T` ${A(e=>e.allowCloseAll||e.allowManualCollapse,T` ${e=>Nse(e.designSystemPrefix)} `)}<div class="toast-container"><slot ${bt(`slottedNodes`)}@click="${e=>e.handleContainerClick()}"></slot></div>`,CC=class extends Qe{constructor(){super(...arguments),this.position=`top-right`,this.stackThreshold=5,this.allowManualCollapse=!0,this.allowCloseAll=!0,this.designSystemPrefix=`rapid`,this.showCount=!0,this.stackCollapsed=!1,this.notificationInterval=0,this.manuallyExpanded=!1,this.pendingQueue=[],this.queueTimer=null,this.queuedNodes=/* @__PURE__ */ new Set,this.mutationObserver=null,this.knownNodes=/* @__PURE__ */ new Set,this.peekingNode=null,this.peekTimer=null,this.routeSubscriber={handleChange:()=>this.checkRoute(Bf.shared.pathName)},this.slottedNodes=[]}connectedCallback(){super.connectedCallback(),(this.position===`bottom-left`||this.position===`bottom-right`)&&dC.error(`NotifyContainer doesn't currently support bottom corner placements`),S.getNotifier(Bf.shared).subscribe(this.routeSubscriber,`pathName`),this.checkRoute(Bf.shared.pathName),this.mutationObserver=new MutationObserver(e=>this.handleMutation(e)),this.mutationObserver.observe(this,{childList:!0})}disconnectedCallback(){var e;super.disconnectedCallback(),S.getNotifier(Bf.shared).unsubscribe(this.routeSubscriber,`pathName`),(e=this.mutationObserver)==null||e.disconnect(),this.mutationObserver=null}checkRoute(e){(e.includes(`/login`)||e.includes(`/logout`))&&(this.pendingQueue=[],this.queuedNodes.clear(),clearTimeout(this.queueTimer),this.queueTimer=null,this.handleCloseAll())}slottedNodesChanged(){if(!this.manuallyExpanded&&!this.stackCollapsed&&this.slottedNodes.length>this.stackThreshold&&(this.stackCollapsed=!0),this.stackCollapsed&&this.slottedNodes.length<=1&&(this.stackCollapsed=!1,this.manuallyExpanded=!1,this.cancelPeek()),this.stackCollapsed){let e=this.slottedNodes.filter(e=>e instanceof HTMLElement&&!this.knownNodes.has(e)).shift();e&&this.maybePeek(e)}this.knownNodes=new Set(this.slottedNodes),this.applySort()}handleContainerClick(){this.stackCollapsed&&(this.stackCollapsed=!1,this.manuallyExpanded=!0,this.cancelPeek())}handleToggleCollapse(){this.stackCollapsed=!this.stackCollapsed,this.manuallyExpanded=!this.stackCollapsed,this.stackCollapsed||this.cancelPeek()}handleCloseAll(){for(this.cancelPeek();this.firstChild;)this.removeChild(this.firstChild);this.stackCollapsed=!1,this.manuallyExpanded=!1}notificationIntervalChanged(e,t){!t&&this.pendingQueue&&this.flushQueue()}handleMutation(e){this.notificationInterval&&(e.forEach(e=>{e.addedNodes.forEach(e=>{e instanceof HTMLElement&&(this.queuedNodes.has(e)?this.queuedNodes.delete(e):(this.removeChild(e),this.pendingQueue.push(e)))})}),this.queueTimer||this.processQueue())}processQueue(){if(!this.pendingQueue.length){this.queueTimer=null;return}let e=this.pendingQueue.shift();this.queuedNodes.add(e),this.prepend(e),this.queueTimer=setTimeout(()=>{this.queueTimer=null,this.processQueue()},this.notificationInterval)}flushQueue(){for(clearTimeout(this.queueTimer),this.queueTimer=null;this.pendingQueue.length;){let e=this.pendingQueue.shift();this.queuedNodes.add(e),this.prepend(e)}}sortFnChanged(){this.applySort()}applySort(){let e=this.slottedNodes.filter(e=>e instanceof HTMLElement);if(!e.length)return;let t=this.sortFn&&e.length>1?[...e].sort(this.sortFn):e;this.peekingNode&&t.includes(this.peekingNode)?this.handlePosition([this.peekingNode,...t.filter(e=>e!==this.peekingNode)]):this.handlePosition(t)}maybePeek(e){let t=this.slottedNodes.filter(e=>e instanceof HTMLElement);if((this.sortFn&&t.length>1?[...t].sort(this.sortFn):t).indexOf(e)===0)return;this.cancelPeek(),this.peekingNode=e;let n=this.notificationInterval?this.notificationInterval/2:1500;this.peekTimer=setTimeout(()=>{this.peekingNode=null,this.peekTimer=null,this.applySort()},n)}cancelPeek(){clearTimeout(this.peekTimer),this.peekTimer=null,this.peekingNode=null}handlePosition(e){if(!e.length)return;e.forEach((t,n)=>{t.style.position=`absolute`,t.style.transition=`all 0.3s ease-in`,t.style.right=`0px`,t.style.zIndex=(e.length-n).toString(),t.dataset.stackIndex=n.toString()});let t=e.map(e=>e.offsetHeight);e.reduce((e,n,r)=>(n.style.top=`${e}px`,e+t[r]),0)}};q([D],CC.prototype,`position`,void 0),q([D({attribute:`stack-threshold`})],CC.prototype,`stackThreshold`,void 0),q([D({attribute:`allow-manual-collapse`,mode:`boolean`})],CC.prototype,`allowManualCollapse`,void 0),q([D({attribute:`allow-close-all`,mode:`boolean`})],CC.prototype,`allowCloseAll`,void 0),q([D({attribute:`design-system-prefix`})],CC.prototype,`designSystemPrefix`,void 0),q([D({attribute:`show-count`,mode:`boolean`})],CC.prototype,`showCount`,void 0),q([D({attribute:`stack-collapsed`,mode:`boolean`})],CC.prototype,`stackCollapsed`,void 0),q([D({attribute:`notification-interval`})],CC.prototype,`notificationInterval`,void 0),q([C],CC.prototype,`sortFn`,void 0),q([C],CC.prototype,`slottedNodes`,void 0),CC=q([$e({name:`notify-container`,template:Pse,styles:Mse})],CC);let wC={alert:wse,toast:xC,dialog:Dse,snackbar:kse,banner:Tse},TC=(e,t,n)=>{Object.keys(e?.config||{}).forEach(r=>{wC[r]&&wC[r](e,t,n)})};function Fse(e){return e.length===0?``:e.length===1?e[0].message:e.map(e=>e.message).join(`; `)}function EC(e,t,n){t?.trim()&&TC({title:e,body:t,config:{toast:{autoClose:!0,closeTimeout:4e3,type:`error`}}},n)}var DC=class extends P{constructor(){super(...arguments),this.placeholder=`Describe your search criteria in natural language...`,this.inputValue=``,this.isInterpreting=!1,this.lastValidCriteria=null,this.activeGroups=[],this.showingChips=!1,this.fieldMetadata=[],this.isRecording=!1,this.stopRecording=null,this.speechApplyDebounceTimer=null}get speechAvailable(){return ex()}get criteriaChips(){return this.activeGroups.flatMap((e,t)=>e.clauses.map((e,n)=>({groupIndex:t,clauseIndex:n,fieldLabel:this.getFieldLabel(e.field),operatorLabel:fse[e.operator]??e.operator,valueLabel:e.operator===`dateIsToday`?``:String(e.value??``)})))}getFieldLabel(e){if(!Array.isArray(this.fieldMetadata)||this.fieldMetadata.length===0||typeof this.fieldMetadata[0]==`string`)return e;let t=this.fieldMetadata.find(t=>t.NAME===e);return t?.UI_LABEL??t?.NAME??e}toggleCriteriaView(){this.showingChips?(this.inputValue=``,this.showingChips=!1):this.showingChips=!0}removeChip(e,t){var n;let r=this.activeGroups.map(e=>Object.assign(Object.assign({},e),{clauses:[...e.clauses]}));(n=r[e])==null||n.clauses.splice(t,1);let i=r.filter(e=>e.clauses.length>0);if(this.activeGroups=i,i.length===0)this.showingChips=!1,this.lastValidCriteria=null,this.$emit(`criteria-changed`,null);else{let e=aC(i);this.lastValidCriteria=e,this.$emit(`criteria-changed`,e)}}clearChips(){this.activeGroups=[],this.showingChips=!1,this.lastValidCriteria=null,this.$emit(`criteria-changed`,null)}handleSubmit(){return J(this,void 0,void 0,function*(){let e=this.inputValue?.trim();if(!e||this.isInterpreting)return;let t=this.providerRegistry?.default();if(!t?.interpretCriteria){EC(`AI criteria search`,`AI provider not configured`,yb(this));return}this.isInterpreting=!0;try{let n=Array.isArray(this.fieldMetadata)?this.fieldMetadata:[],r=yield t.interpretCriteria(e,{fields:n});if(!(r?.groups)?.some(e=>e.clauses?.length)){EC(`AI criteria search`,`AI could not interpret the criteria`,yb(this)),this.isInterpreting=!1;return}let{valid:i,invalid:a}=bse(r.groups,this.fieldMetadata);if(a.length>0&&(EC(`Criteria validation error`,Fse(a),yb(this)),this.$emit(`validation-errors`,a)),i.length>0){let e=[...this.activeGroups,...i],t=aC(e);this.lastValidCriteria=t,this.activeGroups=e,this.inputValue=``,this.showingChips=!0,this.$emit(`criteria-changed`,t)}}catch(e){EC(`AI criteria search`,e instanceof Error?e.message:`Interpretation failed`,yb(this))}finally{this.isInterpreting=!1}})}handleBlur(){this.isRecording||(this.inputValue?.trim()?this.handleSubmit():this.activeGroups.length>0&&(this.showingChips=!0))}clear(){this.inputValue=``,this.lastValidCriteria=null,this.activeGroups=[],this.showingChips=!1,this.$emit(`criteria-changed`,null)}toggleSpeechInput(){if(this.isRecording&&this.stopRecording){this.clearSpeechApplyDebounce(),this.stopRecording(),this.stopRecording=null,this.isRecording=!1;return}this.inputValue=``,this.showingChips=!1,this.stopRecording=tx((e,t)=>{this.inputValue=e,t&&e?.trim()&&(this.clearSpeechApplyDebounce(),this.stopRecording&&(this.stopRecording(),this.stopRecording=null,this.isRecording=!1),this.speechApplyDebounceTimer=setTimeout(()=>{this.speechApplyDebounceTimer=null,this.handleSubmit()},700))},()=>{this.clearSpeechApplyDebounce(),this.isRecording=!1,this.stopRecording=null}),this.stopRecording&&(this.isRecording=!0)}clearSpeechApplyDebounce(){this.speechApplyDebounceTimer&&(clearTimeout(this.speechApplyDebounceTimer),this.speechApplyDebounceTimer=null)}};q([eC],DC.prototype,`providerRegistry`,void 0),q([D],DC.prototype,`placeholder`,void 0),q([D({mode:`boolean`})],DC.prototype,`disabled`,void 0),q([C],DC.prototype,`inputValue`,void 0),q([C],DC.prototype,`isInterpreting`,void 0),q([C],DC.prototype,`lastValidCriteria`,void 0),q([C],DC.prototype,`activeGroups`,void 0),q([C],DC.prototype,`showingChips`,void 0),q([C],DC.prototype,`fieldMetadata`,void 0),q([C],DC.prototype,`isRecording`,void 0),q([w],DC.prototype,`speechAvailable`,null),q([w],DC.prototype,`criteriaChips`,null);let OC={};DC.compose(Object.assign({baseName:`ai-criteria-search`,template:iC,styles:rC,shadowOptions:void 0},OC));let kC=(e,t)=>O` :host{display: flex;justify-content: center;align-items: center;width: 100%;margin: calc(var(--design-unit) * 2px) 0;position: relative;/* Same as connection indicator */ --green: 50 164 49;--trafic-light-green: rgb(var(--green));--red: 187 30 16;--trafic-light-red: rgb(var(--red));--amber: 230 160 20;--trafic-light-amber: rgb(var(--amber))}.ai-indicator-container{display: flex;flex-direction: column;align-items: center;position: relative}.ai-indicator-badge{display: inline-flex;align-items: center;gap: calc(var(--design-unit) * 1.4px);font-size: 12px;line-height: 1;font-weight: 600;text-transform: uppercase;height: calc(var(--design-unit) * 6px);padding: calc(var(--design-unit) * 0.5px) calc(var(--design-unit) * 2px);border-radius: calc(var(--design-unit) * 1px);cursor: pointer;color: #fff}.ai-indicator-badge:hover{opacity: 90%}.ai-indicator-badge.green{background: var(--trafic-light-green)}.ai-indicator-badge.amber{background: var(--trafic-light-amber)}.ai-indicator-badge.red{background: var(--trafic-light-red)}.ai-indicator-badge .ai-indicator-icon{flex-shrink: 0;color: inherit}.ai-indicator-badge.pulsing{animation: ai-indicator-pulse 1.5s ease-in-out infinite}@keyframes ai-indicator-pulse{0%, 100%{opacity: 100%}50%{opacity: 50%}}.ai-indicator-dropdown{position: absolute;top: 100%;right: 0;margin-top: calc(var(--design-unit) * 2px);min-width: 200px;padding: calc(var(--design-unit) * 4px);background: var(--neutral-layer-floating, #fff);border: 1px solid var(--neutral-stroke-rest, #e0e0e0);border-radius: calc(var(--design-unit) * 2px);box-shadow: 0 calc(var(--design-unit) * 1px) calc(var(--design-unit) * 4px) rgb(0 0 0 / 12%);z-index: 1000}.ai-indicator-info{display: flex;flex-direction: column;gap: 0;margin: 0;padding: 0}.ai-indicator-info .info-row{display: grid;grid-template-columns: 72px 1fr;gap: calc(var(--design-unit) * 4px);align-items: baseline;padding: calc(var(--design-unit) * 1.5px) 0;border-bottom: 1px solid var(--neutral-stroke-subtle, #eee)}.ai-indicator-info .info-row:last-child{border-bottom: none}.ai-indicator-info .info-label{margin: 0;font-size: var(--type-ramp-base-font-size);font-weight: 500;color: var(--neutral-foreground-hint, #666)}.ai-indicator-info .info-value{margin: 0;font-size: var(--type-ramp-base-font-size);color: var(--neutral-foreground-rest, #333);text-transform: capitalize;word-break: break-word}.install-button{margin-top: calc(var(--design-unit) * 3px);width: 100%}`,Ise=e=>T` ${A(()=>Qb(),T`<div class="ai-indicator-container" part="ai-indicator-container"><div class=${e=>fn(`ai-indicator-badge`,[`green`,e.state===`available`||e.state===`server`],[`amber`,e.state===`downloading`||e.state===`downloadable`],[`red`,e.state===`unavailable`||e.state===`none`],[`pulsing`,e.state===`downloading`||e.isInstalling])}data-test-id="ai-indicator-badge" part="ai-indicator-badge" role="button" tabindex="0" aria-label="AI status" aria-haspopup="true" aria-expanded="${e=>e.open}" @click=${e=>e.toggleDropdown()}@keydown=${(e,t)=>{let n=t.event;(n.key===`Enter`||n.key===` `)&&(n.preventDefault(),e.toggleDropdown())}}><${e}-icon class="ai-indicator-icon" name="wand-magic-sparkles" size="xs" variant="solid" part="ai-indicator-icon"></${e}-icon><span class="ai-indicator-text" data-test-id="ai-indicator-text" part="ai-indicator-text">AI</span></div>${A(e=>e.open,T`<div class="ai-indicator-dropdown" part="ai-indicator-dropdown"><dl class="ai-indicator-info"><div class="info-row"><dt class="info-label">Provider</dt><dd class="info-value">${e=>e.status?.provider??`none`}</dd></div><div class="info-row"><dt class="info-label">Model</dt><dd class="info-value">${e=>e.status?.model||`—`}</dd></div>${A(e=>e.chromeStatusLabel,T`<div class="info-row"><dt class="info-label">Status</dt><dd class="info-value">${e=>e.chromeStatusLabel}</dd></div>`)}</dl>${A(e=>e.canInstall,T`<${e}-button class="install-button" appearance="accent" @click=${(e,t)=>{t.event.preventDefault(),e.onInstall()}}>
@@ -281,7 +281,7 @@ function ty(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r
281
281
  d="M11.85.65c.2.2.2.5 0 .7L6.4 6.84a.55.55 0 01-.78 0L.14 1.35a.5.5 0 11.71-.7L6 5.8 11.15.65c.2-.2.5-.2.7 0z"
282
282
  />
283
283
  </svg>
284
- `};Uw.compose(Object.assign({baseName:`combobox`,template:Bw,styles:zw,shadowOptions:Ww},Gw));let Kw=(e,t)=>O` :host{--light-size: 12px;--height: calc(var(--design-unit) * 2px + var(--light-size));display: flex;justify-content: center;align-items: center;width: 100%;height: var(--height);margin: calc(var(--design-unit) * 2px) 0;/* https://www.colorxs.com/color/traffic-light-green-2032-20 */ --green: 50 164 49;--trafic-light-green: rgb(var(--green));--trafic-light-green-glow: rgb(var(--green) / 40%) 0 0 4px 4px, rgb(var(--green) / 20%) 0 0 8px 8px;/* https://www.colorxs.com/color/ral-3020-traffic-red */ --red: 187 30 16;--trafic-light-red: rgb(var(--red));--trafic-light-red-glow: rgb(var(--red) / 40%) 0 0 4px 4px, rgb(var(--red) / 20%) 0 0 8px 8px}.light{height: var(--light-size);width: var(--light-size);margin: 1rem;border-radius: 100%}.green{background: var(--trafic-light-green);box-shadow: var(--trafic-light-green-glow)}.red{background: var(--trafic-light-red);box-shadow: var(--trafic-light-red-glow)}.label{font-size: small;color: grey;overflow: hidden;text-overflow: ellipsis;white-space: nowrap}`,qw=T`<div class=${e=>fn([`light`,!0],[e.colour,!0])}></div>${A(e=>e.showLabel,T`<div class="label">${e=>e.label}</div>`)} `;var Jw=class extends P{constructor(){super(...arguments),this.showLabel=!1,this.label=`disconnected`,this.colour=`red`}connectedCallback(){super.connectedCallback(),this.subscription=this.connect.isConnectedSubject.subscribe(e=>{this.label=this.getLabel(e),this.colour=e?`green`:`red`})}disconnectedCallback(){var e;(e=this.subscription)==null||e.unsubscribe()}getLabel(e){return e?`${this.session.getSessionStorageItem(`hostUrl`)} ✔`:`disconnected`}};q([Qv],Jw.prototype,`connect`,void 0),q([Sg],Jw.prototype,`session`,void 0),q([D({mode:`boolean`,attribute:`show-label`})],Jw.prototype,`showLabel`,void 0),q([C],Jw.prototype,`label`,void 0),q([C],Jw.prototype,`colour`,void 0),Jw.compose({baseName:`connection-indicator`,template:qw,styles:Kw}),class extends Er{}.compose(Object.assign({baseName:`data-grid`,template:(e,t)=>Tr(e,t),styles:(e,t)=>O` ${$l(e,t)}`,shadowOptions:void 0},{})),class extends Dr{}.compose(Object.assign({baseName:`data-grid-cell`,template:kr,styles:(e,t)=>O` ${tu(e,t)}`,shadowOptions:void 0},{})),class extends wr{}.compose(Object.assign({baseName:`data-grid-row`,template:Or,styles:(e,t)=>O` ${eu(e,t)}`,shadowOptions:void 0},{}));let Yw=O` :host{position: relative}.date-toggle::part(control){cursor: pointer}.date-toggle::part(label){cursor: pointer}.calendar-dropdown{display: none;width: 300px;z-index: 999;position: absolute;top: 100%;left: 50%;transform: translate(-50%, 8px);margin: 10px 0 0;padding: 20px;background: var(--neutral-fill-rest);border-radius: calc(var(--control-corner-radius) * 1px);box-shadow: 0 0 8px rgb(0 0 0 / 20%)}.calendar-dropdown.hide-weekends{width: 215px}.calendar-dropdown.top{top: auto;bottom: 100%;margin: 0 0 5px;transform: translate(-50%, -8px)}.calendar-dropdown.left{top: 50%;left: 0;margin: 0 0 0 5px;transform: translate(calc(-8px + -100%), -50%)}.calendar-dropdown.right{top: 50%;left: 100%;transform: translate(8px, -50%)}.calendar-dropdown.visible{display: block}.calendar-dropdown.inline{display: block;position: static;z-index: auto;margin-top: 5px;transform: none}.header{display: flex;justify-content: space-between;align-items: center;margin: 0 0 10px}.header h3{margin: 0;text-transform: capitalize;font-weight: bold;color: var(--neutral-foreground-rest)}.header .icon-button{height: auto;padding: 0;min-width: auto}.header .months-arrows{display: flex;gap: calc(var(--design-unit) * 2px)}.week-days{display: grid;grid-template-columns: repeat(7, 1fr);grid-gap: 5px;margin-bottom: 10px;color: var(--neutral-foreground-rest)}.week-days span{display: flex;justify-content: center;align-items: center;font-size: 14px;font-weight: bold;text-transform: capitalize}.week-days span.disabled{opacity: 60%}.month-days{display: grid;grid-template-columns: repeat(7, 1fr);grid-gap: 5px}.week-days.hide-weekends, .month-days.hide-weekends{grid-template-columns: repeat(5, 1fr)}.month-day{padding: 8px 5px;color: #808080;background: none;display: flex;justify-content: center;align-items: center;border-radius: calc(var(--control-corner-radius) * 4px);cursor: pointer;border: none}.month-day.current{opacity: 100%;color: var(--neutral-foreground-hint)}.month-day.selected{background: var(--accent-foreground-rest);color: var(--neutral-foreground-rest)}.month-day:hover:not(:disabled){background: var(--neutral-stroke-hover);color: var(--neutral-foreground-rest)}.month-day[disabled]{opacity: 50%;cursor: not-allowed}.date-toggle[readonly] .label{cursor: pointer}`,Xw=[1,7],Zw=e=>T`<${e}-text-field data-test-id="date-picker" readonly :value="${e=>e.inputValue}" placeholder="${e=>e.inputPlaceholder}" part="date-toggle" class="date-toggle" @click="${e=>e.toggleCalendar()}">${e=>e.label}<div class="input-icon-container" part="input-icon-container" slot="end"><${e}-icon variant="regular" name="calendar-alt" size="sm"></${e}-icon></div></${e}-text-field><div class="calendar-dropdown ${e=>e.calendarDropdownClasses} ${e=>e.position}"><div class="header"><h3>${e=>e.currentMonth} ${e=>e.currentYear}</h3><div class="months-arrows"><${e}-button class="icon-button" appearance="accent" @click="${e=>e.prevMonth()}" aria-label="previous month"><${e}-icon name="angle-left"></${e}-icon></${e}-button><${e}-button class="icon-button" appearance="accent" @click="${e=>e.nextMonth()}" aria-label="next month"><${e}-icon name="angle-right"></${e}-icon></${e}-button></div></div><div class="week-days ${e=>fn([`hide-weekends`,e.hideWeekends])}">${j(e=>e.calendar?.weekDays,T` ${A((e,t)=>!t.parent.hideWeekends||Xw.indexOf(t.index+1)===-1,T`<span class="${(e,t)=>fn([`disabled`,t.parent.disabledDaysOfWeek.indexOf(t.index+1)!==-1])}">${(e,t)=>e.substring(0,t.parent.substringNumber)}</span>`)} `,{positioning:!0})}</div><div class="month-days ${e=>fn([`hide-weekends`,e.hideWeekends])}">${j(e=>e.monthList,T` ${A((e,t)=>!t.parent.hideWeekends||Xw.indexOf(e.dayNumber)===-1,T`<button ?disabled="${(e,t)=>t.parent.disabledDaysOfWeek.indexOf(e.dayNumber)!==-1}" class="month-day ${(e,t)=>t.parent.isSelectedDate(e)?`selected`:``} ${(e,t)=>e.monthNumber===t.parent.calendar.month.number?`current`:``}" @click=${(e,t)=>t.parent.selectDay(e)}>${e=>e.date}</button>`)} `)}</div><slot name="bottom"></slot></div>`,Vse=T` ${e=>Zw(yb(e))} `;var Qw=/* @__PURE__ */ s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(e,(function(){"use strict";var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||``).toLowerCase().replace(/s$/,``)},u:function(e){return e===void 0}},y=`en`,b={};b[y]=g;var ee=`$isDayjsObject`,x=function(e){return e instanceof C||!(!e||!e[ee])},te=function e(t,n,r){var i;if(!t)return y;if(typeof t==`string`){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split(`-`);if(!i&&o.length>1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},ne=function(e,t){if(x(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new C(n)},S=v;S.l=te,S.i=x,S.w=function(e,t){return ne(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var C=function(){function g(e){this.$L=te(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[ee]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return/* @__PURE__ */ new Date(NaN);if(S.u(t))return/* @__PURE__ */ new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return S},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=ne(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return ne(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<ne(e)},_.$g=function(e,t,n){return S.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var n=this,r=!!S.u(t)||t,u=S.p(e),p=function(e,t){var i=S.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},m=function(e,t){return S.w(n.toDate()[e].apply(n.toDate(`s`),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,_=this.$D,v=`set`+(this.$u?`UTC`:``);switch(u){case d:return r?p(1,0):p(31,11);case l:return r?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,b=(h<y?h+7:h)-y;return p(r?_-b:_+(6-b),g);case s:case f:return m(v+`Hours`,0);case o:return m(v+`Minutes`,1);case a:return m(v+`Seconds`,2);case i:return m(v+`Milliseconds`,3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(e,t){var n,c=S.p(e),u=`set`+(this.$u?`UTC`:``),p=(n={},n[s]=u+`Date`,n[f]=u+`Date`,n[l]=u+`Month`,n[d]=u+`FullYear`,n[o]=u+`Hours`,n[a]=u+`Minutes`,n[i]=u+`Seconds`,n[r]=u+`Milliseconds`,n)[c],m=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[S.p(e)]()},_.add=function(r,u){var f,p=this;r=Number(r);var m=S.p(u),h=function(e){var t=ne(p);return S.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return h(1);if(m===c)return h(7);var g=(f={},f[a]=t,f[o]=n,f[i]=e,f)[m]||1,_=this.$d.getTime()+r*g;return S.w(_,this)},_.subtract=function(e,t){return this.add(-1*e,t)},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||`YYYY-MM-DDTHH:mm:ssZ`,i=S.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return S.s(a%12||12,e,`0`)},m=u||function(e,t,n){var r=e<12?`AM`:`PM`;return n?r.toLowerCase():r};return r.replace(h,(function(e,r){return r||function(e){switch(e){case`YY`:return String(t.$y).slice(-2);case`YYYY`:return S.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return S.s(s+1,2,`0`);case`MMM`:return d(n.monthsShort,s,l,3);case`MMMM`:return d(l,s);case`D`:return t.$D;case`DD`:return S.s(t.$D,2,`0`);case`d`:return String(t.$W);case`dd`:return d(n.weekdaysMin,t.$W,c,2);case`ddd`:return d(n.weekdaysShort,t.$W,c,3);case`dddd`:return c[t.$W];case`H`:return String(a);case`HH`:return S.s(a,2,`0`);case`h`:return f(1);case`hh`:return f(2);case`a`:return m(a,o,!0);case`A`:return m(a,o,!1);case`m`:return String(o);case`mm`:return S.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return S.s(t.$s,2,`0`);case`SSS`:return S.s(t.$ms,3,`0`);case`Z`:return i}return null}(e)||i.replace(`:`,``)}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(r,f,p){var m,h=this,g=S.p(f),_=ne(r),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function(){return S.m(h,_)};switch(g){case d:m=b()/12;break;case l:m=b();break;case u:m=b()/3;break;case c:m=(y-v)/6048e5;break;case s:m=(y-v)/864e5;break;case o:m=y/n;break;case a:m=y/t;break;case i:m=y/e;break;default:m=y}return p?m:S.a(m)},_.daysInMonth=function(){return this.endOf(l).$D},_.$locale=function(){return b[this.$L]},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=te(e,t,!0);return r&&(n.$L=r),n},_.clone=function(){return S.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},g}(),w=C.prototype;return ne.prototype=w,[[`$ms`,r],[`$s`,i],[`$m`,a],[`$H`,o],[`$W`,s],[`$M`,l],[`$y`,d],[`$D`,f]].forEach((function(e){w[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),ne.extend=function(e,t){return e.$i||(e(t,C,ne),e.$i=!0),ne},ne.locale=te,ne.isDayjs=x,ne.unix=function(e){return ne(1e3*e)},ne.en=b[y],ne.Ls=b,ne.p={},ne}))})),Hse=/* @__PURE__ */ s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_customParseFormat=r()})(e,(function(){"use strict";var e={LTS:`h:mm:ss A`,LT:`h:mm A`,L:`MM/DD/YYYY`,LL:`MMMM D, YYYY`,LLL:`MMMM D, YYYY h:mm A`,LLLL:`dddd, MMMM D, YYYY h:mm A`},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,i=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,o={},s=function(e){return(e=+e)+(e>68?1900:2e3)},c=function(e){return function(t){this[e]=+t}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e||e===`Z`)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return n===0?0:t[0]===`+`?-n:n}(e)}],u=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,r=o.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?`pm`:`PM`);return n},f={A:[a,function(e){this.afternoon=d(e,!1)}],a:[a,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*e}],SS:[r,function(e){this.milliseconds=10*e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[i,c(`seconds`)],ss:[i,c(`seconds`)],m:[i,c(`minutes`)],mm:[i,c(`minutes`)],H:[i,c(`hours`)],h:[i,c(`hours`)],HH:[i,c(`hours`)],hh:[i,c(`hours`)],D:[i,c(`day`)],DD:[r,c(`day`)],Do:[a,function(e){var t=o.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,``)===e&&(this.day=r)}],w:[i,c(`week`)],ww:[r,c(`week`)],M:[i,c(`month`)],MM:[r,c(`month`)],MMM:[a,function(e){var t=u(`months`),n=(u(`monthsShort`)||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw Error();this.month=n%12||n}],MMMM:[a,function(e){var t=u(`months`).indexOf(e)+1;if(t<1)throw Error();this.month=t%12||t}],Y:[/[+-]?\d+/,c(`year`)],YY:[r,function(e){this.year=s(e)}],YYYY:[/\d{4}/,c(`year`)],Z:l,ZZ:l};function p(n){for(var r=n,i=o&&o.formats,a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var a=r&&r.toUpperCase();return n||i[r]||e[r]||i[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),s=a.length,c=0;c<s;c+=1){var l=a[c],u=f[l],d=u&&u[0],p=u&&u[1];a[c]=p?{regex:d,parser:p}:l.replace(/^\[|\]$/g,``)}return function(e){for(var t={},n=0,r=0;n<s;n+=1){var i=a[n];if(typeof i==`string`)r+=i.length;else{var o=i.regex,c=i.parser,l=e.slice(r),u=o.exec(l)[0];c.call(t,u),e=e.replace(u,``)}}return function(e){var t=e.afternoon;if(t!==void 0){var n=e.hours;t?n<12&&(e.hours+=12):n===12&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(s=e.parseTwoDigitYear);var r=t.prototype,i=r.parse;r.parse=function(e){var t=e.date,r=e.utc,a=e.args;this.$u=r;var s=a[1];if(typeof s==`string`){var c=!0===a[2],l=!0===a[3],u=c||l,d=a[2];l&&(d=a[2]),o=this.$locale(),!c&&d&&(o=n.Ls[d]),this.$d=function(e,t,n,r){try{if([`x`,`X`].indexOf(t)>-1)return/* @__PURE__ */ new Date((t===`X`?1e3:1)*e);var i=p(t)(e),a=i.year,o=i.month,s=i.day,c=i.hours,l=i.minutes,u=i.seconds,d=i.milliseconds,f=i.zone,m=i.week,h=/* @__PURE__ */ new Date,g=s||(a||o?1:h.getDate()),_=a||h.getFullYear(),v=0;a&&!o||(v=o>0?o-1:h.getMonth());var y,b=c||0,ee=l||0,x=u||0,te=d||0;return f?new Date(Date.UTC(_,v,g,b,ee,x,te+60*f.offset*1e3)):n?new Date(Date.UTC(_,v,g,b,ee,x,te)):(y=new Date(_,v,g,b,ee,x,te),m&&(y=r(y).week(m).toDate()),y)}catch{return/* @__PURE__ */ new Date(``)}}(t,s,r,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(s)&&(this.$d=/* @__PURE__ */ new Date(``)),o={}}else if(s instanceof Array)for(var f=s.length,m=1;m<=f;m+=1){a[1]=s[m-1];var h=n.apply(this,a);if(h.isValid()){this.$d=h.$d,this.$L=h.$L,this.init();break}m===f&&(this.$d=/* @__PURE__ */ new Date(``))}else i.call(this,e)}}}))})),Use=/* @__PURE__ */ s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_localeData=r()})(e,(function(){"use strict";return function(e,t,n){var r=t.prototype,i=function(e){return e&&(e.indexOf?e:e.s)},a=function(e,t,n,r,a){var o=e.name?e:e.$locale(),s=i(o[t]),c=i(o[n]),l=s||c.map((function(e){return e.slice(0,r)}));if(!a)return l;var u=o.weekStart;return l.map((function(e,t){return l[(t+(u||0))%7]}))},o=function(){return n.Ls[n.locale()]},s=function(e,t){return e.formats[t]||function(e){return e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}(e.formats[t.toUpperCase()])},c=function(){var e=this;return{months:function(t){return t?t.format(`MMMM`):a(e,`months`)},monthsShort:function(t){return t?t.format(`MMM`):a(e,`monthsShort`,`months`,3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format(`dddd`):a(e,`weekdays`)},weekdaysMin:function(t){return t?t.format(`dd`):a(e,`weekdaysMin`,`weekdays`,2)},weekdaysShort:function(t){return t?t.format(`ddd`):a(e,`weekdaysShort`,`weekdays`,3)},longDateFormat:function(t){return s(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return c.bind(this)()},n.localeData=function(){var e=o();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(t){return s(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},n.months=function(){return a(o(),`months`)},n.monthsShort=function(){return a(o(),`monthsShort`,`months`,3)},n.weekdays=function(e){return a(o(),`weekdays`,null,null,e)},n.weekdaysShort=function(e){return a(o(),`weekdaysShort`,`weekdays`,3,e)},n.weekdaysMin=function(e){return a(o(),`weekdaysMin`,`weekdays`,2,e)}}}))})),Wse=/* @__PURE__ */ s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_localizedFormat=r()})(e,(function(){"use strict";var e={LTS:`h:mm:ss A`,LT:`h:mm A`,L:`MM/DD/YYYY`,LL:`MMMM D, YYYY`,LLL:`MMMM D, YYYY h:mm A`,LLLL:`dddd, MMMM D, YYYY h:mm A`};return function(t,n,r){var i=n.prototype,a=i.format;r.en.formats=e,i.format=function(t){t===void 0&&(t=`YYYY-MM-DDTHH:mm:ssZ`);var n=this.$locale().formats,r=function(t,n){return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,r,i){var a=i&&i.toUpperCase();return r||n[i]||e[i]||n[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))}(t,n===void 0?{}:n);return a.call(this,r)}}}))})),Gse=/* @__PURE__ */ s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_isLeapYear=r()})(e,(function(){"use strict";return function(e,t){t.prototype.isLeapYear=function(){return this.$y%4==0&&this.$y%100!=0||this.$y%400==0}}}))})),$w=/* @__PURE__ */ u(Qw()),eT=/* @__PURE__ */ u(Hse()),tT=/* @__PURE__ */ u(Use()),nT=/* @__PURE__ */ u(Wse()),rT=/* @__PURE__ */ u(Gse()),iT=class{constructor(e,t=`default`){e=e??/* @__PURE__ */ new Date,this.Date=e,this.date=e.getDate(),this.day=e.toLocaleString(t,{weekday:`long`}),this.dayNumber=e.getDay()+1,this.dayShort=e.toLocaleString(t,{weekday:`short`}),this.year=e.getFullYear(),this.yearShort=Number(e.toLocaleString(t,{year:`2-digit`})),this.month=e.toLocaleString(t,{month:`long`}),this.monthShort=e.toLocaleString(t,{month:`short`}),this.monthNumber=e.getMonth()+1,this.timestamp=e.getTime()}};$w.default.extend(rT.default);var aT=class{constructor(e=null,t=`default`){let n=new iT(e,t),r=[31,28,31,30,31,30,31,31,30,31,30,31];this.lang=t,this.name=n.month,this.number=n.monthNumber,this.year=n.year,this.numberOfDays=r[this.number-1],this.number===2&&(this.numberOfDays+=+!!(0,$w.default)(n.date).isLeapYear())}getDay(e){return new iT(new Date(this.year,this.number-1,e),this.lang)}};$w.default.extend(rT.default);var oT=class{constructor(e=null,t=null,n=`default`){this.weekDays=Array.from({length:7}),this.today=new iT(null,n),this.year=e??this.today.year,this.month=new aT(new Date(this.year,(t||this.today.monthNumber)-1),n),this.lang=n,this.weekDays.forEach((e,t)=>{let n=this.month.getDay(t);this.weekDays[n.dayNumber-1]=n.day})}getMonth(e){return new aT(new Date(this.year,e-1),this.lang)}getPreviousMonth(){return this.month.number===1?new aT(new Date(this.year-1,11),this.lang):new aT(new Date(this.year,this.month.number-2),this.lang)}getNextMonth(){return this.month.number===1?new aT(new Date(this.year+1,0),this.lang):new aT(new Date(this.year,this.month.number+2),this.lang)}goToDate(e,t){this.month=new aT(new Date(t,e-1),this.lang),this.year=t}goToNextYear(){this.year+=1,this.month=new aT(new Date(this.year,0),this.lang)}goToPreviousYear(){--this.year,this.month=new aT(new Date(this.year,11),this.lang)}goToNextMonth(){if(this.month.number===12)return this.goToNextYear();this.month=new aT(new Date(this.year,this.month.number+1-1),this.lang)}goToPreviousMonth(){if(this.month.number===1)return this.goToPreviousYear();this.month=new aT(new Date(this.year,this.month.number-1-1),this.lang)}};(/* @__PURE__ */ s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(Qw()):typeof define==`function`&&define.amd?define([`dayjs`],r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_en_gb=r(n.dayjs)})(e,(function(e){"use strict";function t(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var n=t(e),r={name:`en-gb`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),weekdaysShort:`Sun_Mon_Tue_Wed_Thu_Fri_Sat`.split(`_`),weekdaysMin:`Su_Mo_Tu_We_Th_Fr_Sa`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),monthsShort:`Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec`.split(`_`),weekStart:1,yearStart:4,relativeTime:{future:`in %s`,past:`%s ago`,s:`a few seconds`,m:`a minute`,mm:`%d minutes`,h:`an hour`,hh:`%d hours`,d:`a day`,dd:`%d days`,M:`a month`,MM:`%d months`,y:`a year`,yy:`%d years`},formats:{LT:`HH:mm`,LTS:`HH:mm:ss`,L:`DD/MM/YYYY`,LL:`D MMMM YYYY`,LLL:`D MMMM YYYY HH:mm`,LLLL:`dddd, D MMMM YYYY HH:mm`},ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}};return n.default.locale(r,null,!0),r}))})))(),$w.default.extend(eT.default),$w.default.extend(tT.default),$w.default.extend(nT.default);function Kse(e){let t=(e?.trim()||`en`).toLowerCase().replace(/_/g,`-`);return t===`en-us`||t===`en`?`en`:t===`en-gb`?`en-gb`:t}function qse(e,t){return e===t||t===e.split(`-`)[0]}function Jse(){return typeof navigator<`u`&&navigator.language?navigator.language:`en`}function Yse(e=`en`){let t=Kse(e),n=(0,$w.default)().locale(t);return qse(t,n.locale())?n.localeData().longDateFormat(`L`)||`MM/DD/YYYY`:(0,$w.default)().locale(`en`).localeData().longDateFormat(`L`)||`MM/DD/YYYY`}function Xse(e){return e.replace(/YYYY/g,`yyyy`).replace(/YY(?!Y)/g,`yy`).replace(/DD/g,`dd`).replace(/D(?!D)/g,`d`).replace(/MM/g,`mm`).replace(/M(?!M)/g,`m`)}function sT(e){return e!=null&&String(e).trim()!==``}let cT=`MM-DD-YYYY`;function Zse(e,t){let n=String(e).trim(),r=(0,$w.default)(n,t,!0);if(r.isValid())return r;let i=(0,$w.default)(n,cT,!0);return i.isValid()?i:null}let Qse=(e,t=1)=>{let n=new Date(e);return n.setDate(e.getDate()+t),n},$se=(e,t)=>e.indexOf(t.dayNumber)===-1,ece=[1,2,3,4,5,6,7],tce=(e,t,n)=>{if($se(e,t))return t;let r=ece.filter(t=>e.indexOf(t)===-1),i=r.find(e=>e>t.dayNumber);i||(i=Math.min(...r));let a=t.dayNumber<i?i-t.dayNumber:i-t.dayNumber+7;return r.length?new iT(Qse(t.Date,a),n):(Fd.warn(`Date picker disabled days - all days of week have been disabled`),t)},nce={};var lT=class extends P{constructor(){super(...arguments),this.format=cT,this.lang=`en-US`,this.visible=!1,this.position=`bottom`,this.disabledDaysOfWeek=[],this.suppressValueChanged=!1,this.cachedFormat=cT,this.clickOutside=e=>this.handleClickOutside(e),this.keydownOutside=e=>this.handleKeydownOutside(e)}formatChanged(e,t){!this.useLocaleFormat&&t&&this.cacheUserFormat(t),t&&this.calendar&&sT(this.value)&&(this.formatDate=(0,$w.default)(this.currentDate.Date).format(t))}langChanged(){this.applyEffectiveLangChange()}useLocaleFormatChanged(e,t){this.calendar&&(t&&!e?this.cacheUserFormat(this.format):!t&&e&&this.restoreUserFormat(),this.applyEffectiveLangChange())}inlineCalendarChanged(){this.inlineCalendar?(document.removeEventListener(`mousedown`,this.clickOutside),document.removeEventListener(`keydown`,this.keydownOutside)):this.visible&&(document.addEventListener(`mousedown`,this.clickOutside),document.addEventListener(`keydown`,this.keydownOutside)),this.toggleVisibility()}hideWeekendsCalendarChanged(){this.toggleVisibility()}valueChanged(e,t){if(!this.suppressValueChanged&&this.calendar){if(!sT(t)){this.allowEmpty?this.clearToEmpty(!1):this.resetToDefaultDate();return}this.applyValue(t)}}disconnectedCallback(){document.removeEventListener(`mousedown`,this.clickOutside),document.removeEventListener(`keydown`,this.keydownOutside),super.disconnectedCallback()}connectedCallback(){super.connectedCallback(),$w.default.extend(eT.default),$w.default.extend(nT.default),$w.default.extend(tT.default),this.substringNumber=3,this.useLocaleFormat&&(this.cacheUserFormat(this.format),this.applyLocaleFormat());let e=this.value;if(this.allowEmpty&&!sT(e)){this.initializeEmpty();return}if(sT(e)){this.applyValue(e);return}this.initializeWithDefaultDate()}clear(){this.allowEmpty&&this.clearToEmpty(!0)}get inputValue(){return sT(this.value)?this.formatDate:``}get inputPlaceholder(){return!this.allowEmpty||sT(this.value)?``:this.placeholder?.trim()||Xse(this.format)}get effectiveLang(){return this.useLocaleFormat&&!this.hasAttribute(`lang`)?Jse():this.lang}applyLocaleFormat(){this.format=Yse(this.effectiveLang)}cacheUserFormat(e){let t=e?.trim();t&&(this.cachedFormat=t)}restoreUserFormat(){this.format=this.cachedFormat}applyEffectiveLangChange(){if(!this.calendar)return;this.useLocaleFormat&&this.applyLocaleFormat();let e=this.calendar.year,t=this.calendar.month.number,n=this.currentDate?.Date??(0,$w.default)().toDate();this.currentDate=new iT(n,this.effectiveLang),this.calendar=new oT(e,t,this.effectiveLang),sT(this.value)&&(this.formatDate=(0,$w.default)(this.currentDate.Date).format(this.format)),this.updateHeaderText(),this.monthList=this.getMonthDaysGrid()}syncValueAttribute(e){this.suppressValueChanged=!0,this.value=e,this.suppressValueChanged=!1}initializeEmpty(){let e=(0,$w.default)();this.currentDate=new iT(e.toDate(),this.effectiveLang),this.calendar=new oT(this.currentDate.year,this.currentDate.monthNumber,this.effectiveLang),this.formatDate=``,this.syncValueAttribute(``),this.currentMonth=this.calendar.month.name,this.currentYear=this.calendar.year,this.monthList=this.getMonthDaysGrid()}initializeWithDefaultDate(){this.resetToDefaultDate(!0)}resetToDefaultDate(e=!1){let t=new iT((0,$w.default)().toDate(),this.effectiveLang);this.disabledDaysOfWeek?.length&&(t=tce(this.disabledDaysOfWeek,t,this.effectiveLang)),this.currentDate=t,e||!this.calendar?this.calendar=new oT(this.currentDate.year,this.currentDate.monthNumber,this.effectiveLang):this.calendar.goToDate(this.currentDate.monthNumber,this.currentDate.year),this.formatDate=(0,$w.default)(this.currentDate.Date).format(this.format),this.syncValueAttribute((0,$w.default)(this.currentDate.Date).format(cT)),this.currentMonth=this.calendar.month.name,this.currentYear=this.calendar.year,this.monthList=this.getMonthDaysGrid()}applyValue(e){let t=Zse(e,this.format);if(!t){this.allowEmpty?this.clearToEmpty(!1):this.resetToDefaultDate();return}this.currentDate=new iT(t.toDate(),this.effectiveLang),this.calendar?this.calendar.goToDate(this.currentDate.monthNumber,this.currentDate.year):this.calendar=new oT(this.currentDate.year,this.currentDate.monthNumber,this.effectiveLang),this.formatDate=(0,$w.default)(this.currentDate.Date).format(this.format),this.syncValueAttribute((0,$w.default)(this.currentDate.Date).format(cT)),this.updateHeaderText(),this.monthList=this.getMonthDaysGrid()}clearToEmpty(e){let t=(0,$w.default)();this.currentDate=new iT(t.toDate(),this.effectiveLang),this.calendar&&(this.calendar.goToDate(this.currentDate.monthNumber,this.currentDate.year),this.updateHeaderText(),this.monthList=this.getMonthDaysGrid()),this.formatDate=``,this.syncValueAttribute(``),e&&this.$emit(`value-changed`,void 0)}updateHeaderText(){this.currentMonth=this.calendar.month.name,this.currentYear=this.calendar.year}visibleChanged(e,t){this.inlineCalendar||(t?(document.addEventListener(`mousedown`,this.clickOutside),document.addEventListener(`keydown`,this.keydownOutside)):(document.removeEventListener(`mousedown`,this.clickOutside),document.removeEventListener(`keydown`,this.keydownOutside)))}handleKeydownOutside(e){!this.inlineCalendar&&this.visible&&e.key===`Escape`&&(e.preventDefault(),this.closeCalendar())}handleClickOutside(e){!this.inlineCalendar&&this.visible&&_b(e,this)&&this.closeCalendar()}closeCalendar(){this.visible&&(this.visible=!1,this.toggleVisibility())}toggleCalendar(){this.visible=!this.visible,this.toggleVisibility(),this.isCurrentCalendarMonth()||(this.calendar.goToDate(this.currentDate.monthNumber,this.currentDate.year),this.updateHeaderText())}toggleVisibility(){this.calendarDropdownClasses=fn([`visible`,this.visible],this.position,[`inline`,this.inlineCalendar],[`hide-weekends`,this.hideWeekends])}isSelectedDate(e){return this.allowEmpty&&!sT(this.value)?!1:(0,$w.default)(e.Date).isSame(this.currentDate.Date,`day`)}isCurrentCalendarMonth(){return this.currentMonth===this.currentDate.monthNumber&&this.currentYear===this.currentDate.year}prevMonth(){this.calendar.goToPreviousMonth(),this.updateHeaderText(),this.monthList=this.getMonthDaysGrid()}nextMonth(){this.calendar.goToNextMonth(),this.updateHeaderText(),this.monthList=this.getMonthDaysGrid()}selectDay(e){(0,$w.default)(e.Date).isSame(this.currentDate.Date,`day`)&&sT(this.value)||(this.currentDate=e,e.monthNumber!==this.calendar.month.number&&this.prevMonth(),this.formatDate=(0,$w.default)(this.currentDate.Date).format(this.format),this.syncValueAttribute((0,$w.default)(e.Date).format(cT)),this.$emit(`value-changed`,this.value),this.toggleCalendar())}getMonthDaysGrid(){let e=this.calendar.month.getDay(1),t=this.calendar.getPreviousMonth(),n=e.dayNumber-1,r=this.calendar.month.numberOfDays+n,i=Array.from({length:r});for(let e=n;e<r;e+=1)i[e]=this.calendar.month.getDay(e+1-n);for(let e=0;e<n;e+=1){let r=n-(e+1);i[e]=t.getDay(t.numberOfDays-r)}return i}};q([D],lT.prototype,`format`,void 0),q([D],lT.prototype,`lang`,void 0),q([D({attribute:`use-locale-format`,mode:`boolean`})],lT.prototype,`useLocaleFormat`,void 0),q([D],lT.prototype,`visible`,void 0),q([D({attribute:`inline-calendar`,mode:`boolean`})],lT.prototype,`inlineCalendar`,void 0),q([D({attribute:`hide-weekends`,mode:`boolean`})],lT.prototype,`hideWeekends`,void 0),q([D],lT.prototype,`position`,void 0),q([D],lT.prototype,`label`,void 0),q([D({attribute:`allow-empty`,mode:`boolean`})],lT.prototype,`allowEmpty`,void 0),q([D],lT.prototype,`placeholder`,void 0),q([D],lT.prototype,`value`,void 0),q([C],lT.prototype,`currentDate`,void 0),q([C],lT.prototype,`currentMonth`,void 0),q([C],lT.prototype,`currentYear`,void 0),q([C],lT.prototype,`calendarDropdownClasses`,void 0),q([C],lT.prototype,`formatDate`,void 0),q([C],lT.prototype,`monthList`,void 0),q([C],lT.prototype,`disabledDaysOfWeek`,void 0),q([C],lT.prototype,`calendar`,void 0),lT.compose(Object.assign({baseName:`date-picker`,styles:Yw,template:Vse,shadowOptions:void 0},nce));let rce=e=>J(void 0,void 0,void 0,function*(){!e.isConnected&&e.isConnected$&&(yield vie(e.isConnected$.pipe(gh(Boolean))))}),ice=e=>{let t=()=>J(void 0,void 0,void 0,function*(){let t=N.findResponsibleContainer(e);return yield rce(t.get(Qv)),t.get(fb)});return{load(e){return J(this,void 0,void 0,function*(){return(yield(yield t()).get(e))?.kv?.value})},save(e,n){return J(this,void 0,void 0,function*(){return(yield t()).put([{key:e,value:n}])})}}},uT=e=>e>=.5?`light`:`dark`,ace=e=>e===`light`?ss.LightMode:ss.DarkMode,dT=/* @__PURE__ */ new WeakMap,fT=/* @__PURE__ */ new WeakSet,oce=e=>{let t=e.parentNode;for(;t;){if(t instanceof HTMLElement&&fT.has(t))return!0;t=t.parentNode??(t instanceof ShadowRoot?t.host:null)}return!1},pT=e=>{let t=typeof e==`string`?e.replace(/^"|"$/g,``):e;return t===`light`||t===`dark`?t:void 0};var mT=class{constructor(e,t=ice(e)){this.provider=e,this.storage=t,this.applying=!1,this.connected=!1}connect(e){this.connected=!0,ds.subscribe(this,this.provider),this.reflect(uT(ds.getValueFor(this.provider))),this.setPersist(e)}disconnect(){this.connected=!1,ds.unsubscribe(this,this.provider),this.stopPersisting()}setPersist(e){let t=this.connected&&e&&!oce(this.provider);t&&!this.key?this.startPersisting():!t&&this.key&&this.stopPersisting()}startPersisting(){this.key=`rapid-luminance`,fT.add(this.provider),typeof BroadcastChannel<`u`&&(this.channel=new BroadcastChannel(`luminance:${this.key}`),this.channel.onmessage=e=>{let t=pT(e.data);t&&(dT.set(this.provider,t),this.apply(t))});let e=this.restore(this.key);this.restoring=e,e.then(()=>{this.restoring===e&&(this.restoring=void 0)})}stopPersisting(){var e;(e=this.channel)==null||e.close(),this.channel=void 0,this.key=void 0,this.restoring=void 0,fT.delete(this.provider),dT.delete(this.provider)}handleChange(e){var t;let n=uT(ds.getValueFor(this.provider));n!==this.current&&(this.reflect(n),this.key&&!this.restoring&&!this.applying&&(dT.set(this.provider,n),this.save(this.key,n),(t=this.channel)==null||t.postMessage(n)))}restore(e){return J(this,void 0,void 0,function*(){try{let t=pT(yield this.storage.load(e));t&&e===this.key&&(dT.set(this.provider,t),this.apply(t))}catch(e){hb.error(`Failed to restore luminance from KVStorage`,e)}})}save(e,t){return J(this,void 0,void 0,function*(){try{yield this.storage.save(e,t)}catch(e){hb.error(`Failed to save luminance to KVStorage`,e)}})}apply(e){if(e!==this.current){this.applying=!0;try{ds.setValueFor(this.provider,ace(e))}finally{this.applying=!1}}}reflect(e){e!==this.current&&(this.current=e,this.provider.setAttribute(`luminance`,e),this.provider.dispatchEvent(new CustomEvent(`luminance-change`,{detail:{luminance:e}})))}},hT=class{constructor(){this.value=null}};q([C],hT.prototype,`value`,void 0),new hT;let gT=(e,t,n)=>{let r=n?(e,t)=>e.setValueFor(n,t):(e,t)=>e.withDefault(t);Object.keys(e).forEach(n=>{let i=`${n}Value`;t[i]&&r(e[n],t[i])})};function _T(e){return(t,n)=>{t[n+`Changed`]=function(t,n){n==null?e.deleteValueFor(this):e.setValueFor(this,n)}}}let vT={toView(e){return e==null?null:e?.toColorString()},fromView(e){if(e==null)return null;let t=Jo(e);return t?Qo.create(t.r,t.g,t.b):null}},yT=e=>rs.from(Qo.from(Jo(e)));Qo.create(1,1,1),Qo.create(0,0,0);let bT=Jo(`#585858`),sce=Qo.create(bT.r,bT.g,bT.b),xT=Jo(`#ffffff`),ST=Qo.create(xT.r,xT.g,xT.b),cce=rs.from(ST),CT=Jo(`#eeeeee`),lce=Qo.create(CT.r,CT.g,CT.b);rs.from(lce);let wT=Jo(`#08c3a5`),uce=Qo.create(wT.r,wT.g,wT.b);rs.from(uce);let{create:TT}=ni,ET=TT(`fui-fill-color`).withDefault(sce),DT=TT({name:`card-fill-color`,cssCustomPropertyName:`fui-card-fill-color`}).withDefault(ST);function OT(e,t){return e.colorContrast(t,14)}let kT=TT({name:`card-foreground-color`,cssCustomPropertyName:`fui-card-foreground-color`}).withDefault(e=>OT(TT(`fui-card-palette`).withDefault(cce).getValueFor(e),DT.getValueFor(e)));var AT=/* @__PURE__ */ c({accentFillActive:()=>Dc,accentFillActiveDelta:()=>Is,accentFillFocus:()=>Oc,accentFillFocusDelta:()=>Ls,accentFillHover:()=>Ec,accentFillHoverDelta:()=>Fs,accentFillRest:()=>Tc,accentFillRestDelta:()=>Ps,accentForegroundActive:()=>Wc,accentForegroundActiveDelta:()=>Bs,accentForegroundFocus:()=>Gc,accentForegroundFocusDelta:()=>Vs,accentForegroundHover:()=>Uc,accentForegroundHoverDelta:()=>zs,accentForegroundRest:()=>Hc,accentForegroundRestDelta:()=>Rs,accentPalette:()=>pc,baseHeightMultiplier:()=>us,baseLayerLuminance:()=>ds,bodyFont:()=>ls,controlCornerRadius:()=>z,defaultNeutralForegroundContrast:()=>14,density:()=>fs,designUnit:()=>B,direction:()=>ps,disabledOpacity:()=>ms,fillColor:()=>Sc,focusStrokeInner:()=>gl,focusStrokeOuter:()=>hl,focusStrokeWidth:()=>hs,foregroundOnAccentActive:()=>Nc,foregroundOnAccentActiveLarge:()=>Rc,foregroundOnAccentFocus:()=>Pc,foregroundOnAccentFocusLarge:()=>zc,foregroundOnAccentHover:()=>Mc,foregroundOnAccentHoverLarge:()=>Lc,foregroundOnAccentRest:()=>jc,foregroundOnAccentRestLarge:()=>Ic,fuiCardFillColor:()=>DT,fuiCardForegroundColor:()=>kT,fuiFillColor:()=>ET,neutralFillActive:()=>Yc,neutralFillActiveDelta:()=>Ws,neutralFillFocus:()=>Xc,neutralFillFocusDelta:()=>Gs,neutralFillHover:()=>Jc,neutralFillHoverDelta:()=>Us,neutralFillInputActive:()=>el,neutralFillInputActiveDelta:()=>Js,neutralFillInputFocus:()=>tl,neutralFillInputFocusDelta:()=>Ys,neutralFillInputHover:()=>$c,neutralFillInputHoverDelta:()=>qs,neutralFillInputRest:()=>Qc,neutralFillInputRestDelta:()=>Ks,neutralFillLayerRest:()=>pl,neutralFillLayerRestDelta:()=>ic,neutralFillRest:()=>qc,neutralFillRestDelta:()=>Hs,neutralFillStealthActive:()=>al,neutralFillStealthActiveDelta:()=>Qs,neutralFillStealthFocus:()=>ol,neutralFillStealthFocusDelta:()=>$s,neutralFillStealthHover:()=>il,neutralFillStealthHoverDelta:()=>Zs,neutralFillStealthRest:()=>rl,neutralFillStealthRestDelta:()=>Xs,neutralFillStrongActive:()=>ul,neutralFillStrongActiveDelta:()=>nc,neutralFillStrongFocus:()=>dl,neutralFillStrongFocusDelta:()=>rc,neutralFillStrongHover:()=>ll,neutralFillStrongHoverDelta:()=>tc,neutralFillStrongRest:()=>cl,neutralFillStrongRestDelta:()=>ec,neutralForeground:()=>OT,neutralForegroundHint:()=>_l,neutralForegroundRest:()=>H,neutralLayer1:()=>gc,neutralLayer2:()=>_c,neutralLayer3:()=>yc,neutralLayer4:()=>xc,neutralLayerCardContainer:()=>mc,neutralLayerFloating:()=>hc,neutralPalette:()=>dc,neutralStrokeActive:()=>xl,neutralStrokeActiveDelta:()=>sc,neutralStrokeDividerRest:()=>Cl,neutralStrokeDividerRestDelta:()=>lc,neutralStrokeFocus:()=>Sl,neutralStrokeFocusDelta:()=>cc,neutralStrokeHover:()=>bl,neutralStrokeHoverDelta:()=>oc,neutralStrokeRest:()=>yl,neutralStrokeRestDelta:()=>ac,strokeWidth:()=>V,typeRampBaseFontSize:()=>gs,typeRampBaseLineHeight:()=>_s,typeRampMinus1FontSize:()=>vs,typeRampMinus1LineHeight:()=>ys,typeRampMinus2FontSize:()=>bs,typeRampMinus2LineHeight:()=>xs,typeRampPlus1FontSize:()=>Ss,typeRampPlus1LineHeight:()=>Cs,typeRampPlus2FontSize:()=>ws,typeRampPlus2LineHeight:()=>Ts,typeRampPlus3FontSize:()=>Es,typeRampPlus3LineHeight:()=>Ds,typeRampPlus4FontSize:()=>Os,typeRampPlus4LineHeight:()=>ks,typeRampPlus5FontSize:()=>As,typeRampPlus5LineHeight:()=>js,typeRampPlus6FontSize:()=>Ms,typeRampPlus6LineHeight:()=>Ns});let dce=yT(`#08c3a5`),fce=yT(`#eeeeee`),pce=ss.DarkMode,mce=Pn.ltr;var jT=/* @__PURE__ */ c({accentPaletteValue:()=>dce,baseLayerLuminanceValue:()=>pce,controlCornerRadiusValue:()=>4,designUnitValue:()=>4,directionValue:()=>mce,neutralPaletteValue:()=>fce});
284
+ `};Uw.compose(Object.assign({baseName:`combobox`,template:Bw,styles:zw,shadowOptions:Ww},Gw));let Kw=(e,t)=>O` :host{--light-size: 12px;--height: calc(var(--design-unit) * 2px + var(--light-size));display: flex;justify-content: center;align-items: center;width: 100%;height: var(--height);margin: calc(var(--design-unit) * 2px) 0;/* https://www.colorxs.com/color/traffic-light-green-2032-20 */ --green: 50 164 49;--trafic-light-green: rgb(var(--green));--trafic-light-green-glow: rgb(var(--green) / 40%) 0 0 4px 4px, rgb(var(--green) / 20%) 0 0 8px 8px;/* https://www.colorxs.com/color/ral-3020-traffic-red */ --red: 187 30 16;--trafic-light-red: rgb(var(--red));--trafic-light-red-glow: rgb(var(--red) / 40%) 0 0 4px 4px, rgb(var(--red) / 20%) 0 0 8px 8px}.light{height: var(--light-size);width: var(--light-size);margin: 1rem;border-radius: 100%}.green{background: var(--trafic-light-green);box-shadow: var(--trafic-light-green-glow)}.red{background: var(--trafic-light-red);box-shadow: var(--trafic-light-red-glow)}.label{font-size: small;color: grey;overflow: hidden;text-overflow: ellipsis;white-space: nowrap}`,qw=T`<div class=${e=>fn([`light`,!0],[e.colour,!0])}></div>${A(e=>e.showLabel,T`<div class="label">${e=>e.label}</div>`)} `;var Jw=class extends P{constructor(){super(...arguments),this.showLabel=!1,this.label=`disconnected`,this.colour=`red`}connectedCallback(){super.connectedCallback(),this.subscription=this.connect.isConnectedSubject.subscribe(e=>{this.label=this.getLabel(e),this.colour=e?`green`:`red`})}disconnectedCallback(){var e;(e=this.subscription)==null||e.unsubscribe()}getLabel(e){return e?`${this.session.getSessionStorageItem(`hostUrl`)} ✔`:`disconnected`}};q([Qv],Jw.prototype,`connect`,void 0),q([Sg],Jw.prototype,`session`,void 0),q([D({mode:`boolean`,attribute:`show-label`})],Jw.prototype,`showLabel`,void 0),q([C],Jw.prototype,`label`,void 0),q([C],Jw.prototype,`colour`,void 0),Jw.compose({baseName:`connection-indicator`,template:qw,styles:Kw}),class extends Er{}.compose(Object.assign({baseName:`data-grid`,template:(e,t)=>Tr(e,t),styles:(e,t)=>O` ${$l(e,t)}`,shadowOptions:void 0},{})),class extends Dr{}.compose(Object.assign({baseName:`data-grid-cell`,template:kr,styles:(e,t)=>O` ${tu(e,t)}`,shadowOptions:void 0},{})),class extends wr{}.compose(Object.assign({baseName:`data-grid-row`,template:Or,styles:(e,t)=>O` ${eu(e,t)}`,shadowOptions:void 0},{}));let Yw=O` :host{position: relative}.date-toggle::part(control){cursor: pointer}.date-toggle::part(label){cursor: pointer}.calendar-dropdown{display: none;width: 300px;z-index: 999;position: absolute;top: 100%;left: 50%;transform: translate(-50%, 8px);margin: 10px 0 0;padding: 20px;background: var(--neutral-fill-rest);border-radius: calc(var(--control-corner-radius) * 1px);box-shadow: 0 0 8px rgb(0 0 0 / 20%)}.calendar-dropdown.hide-weekends{width: 215px}.calendar-dropdown.top{top: auto;bottom: 100%;margin: 0 0 5px;transform: translate(-50%, -8px)}.calendar-dropdown.left{top: 50%;left: 0;margin: 0 0 0 5px;transform: translate(calc(-8px + -100%), -50%)}.calendar-dropdown.right{top: 50%;left: 100%;transform: translate(8px, -50%)}.calendar-dropdown.visible{display: block}.calendar-dropdown.inline{display: block;position: static;z-index: auto;margin-top: 5px;transform: none}.header{display: flex;justify-content: space-between;align-items: center;margin: 0 0 10px}.header h3{margin: 0;text-transform: capitalize;font-weight: bold;color: var(--neutral-foreground-rest)}.header .icon-button{height: auto;padding: 0;min-width: auto}.header .months-arrows{display: flex;gap: calc(var(--design-unit) * 2px)}.week-days{display: grid;grid-template-columns: repeat(7, 1fr);grid-gap: 5px;margin-bottom: 10px;color: var(--neutral-foreground-rest)}.week-days span{display: flex;justify-content: center;align-items: center;font-size: 14px;font-weight: bold;text-transform: capitalize}.week-days span.disabled{opacity: 60%}.month-days{display: grid;grid-template-columns: repeat(7, 1fr);grid-gap: 5px}.week-days.hide-weekends, .month-days.hide-weekends{grid-template-columns: repeat(5, 1fr)}.month-day{padding: 8px 5px;color: #808080;background: none;display: flex;justify-content: center;align-items: center;border-radius: calc(var(--control-corner-radius) * 4px);cursor: pointer;border: none}.month-day.current{opacity: 100%;color: var(--neutral-foreground-hint)}.month-day.selected{background: var(--accent-foreground-rest);color: var(--neutral-foreground-rest)}.month-day:hover:not(:disabled){background: var(--neutral-stroke-hover);color: var(--neutral-foreground-rest)}.month-day[disabled]{opacity: 50%;cursor: not-allowed}.date-toggle[readonly] .label{cursor: pointer}`,Xw=[1,7],Zw=e=>T`<${e}-text-field data-test-id="date-picker" readonly :value="${e=>e.inputValue}" placeholder="${e=>e.inputPlaceholder}" part="date-toggle" class="date-toggle" @click="${e=>e.toggleCalendar()}">${e=>e.label}<div class="input-icon-container" part="input-icon-container" slot="end"><${e}-icon variant="regular" name="calendar-alt" size="sm"></${e}-icon></div></${e}-text-field><div class="calendar-dropdown ${e=>e.calendarDropdownClasses} ${e=>e.position}"><div class="header"><h3>${e=>e.currentMonth} ${e=>e.currentYear}</h3><div class="months-arrows"><${e}-button class="icon-button" appearance="accent" @click="${e=>e.prevMonth()}" aria-label="previous month"><${e}-icon name="angle-left"></${e}-icon></${e}-button><${e}-button class="icon-button" appearance="accent" @click="${e=>e.nextMonth()}" aria-label="next month"><${e}-icon name="angle-right"></${e}-icon></${e}-button></div></div><div class="week-days ${e=>fn([`hide-weekends`,e.hideWeekends])}">${j(e=>e.calendar?.weekDays,T` ${A((e,t)=>!t.parent.hideWeekends||Xw.indexOf(t.index+1)===-1,T`<span class="${(e,t)=>fn([`disabled`,t.parent.disabledDaysOfWeek.indexOf(t.index+1)!==-1])}">${(e,t)=>e.substring(0,t.parent.substringNumber)}</span>`)} `,{positioning:!0})}</div><div class="month-days ${e=>fn([`hide-weekends`,e.hideWeekends])}">${j(e=>e.monthList,T` ${A((e,t)=>!t.parent.hideWeekends||Xw.indexOf(e.dayNumber)===-1,T`<button ?disabled="${(e,t)=>t.parent.disabledDaysOfWeek.indexOf(e.dayNumber)!==-1}" class="month-day ${(e,t)=>t.parent.isSelectedDate(e)?`selected`:``} ${(e,t)=>e.monthNumber===t.parent.calendar.month.number?`current`:``}" @click=${(e,t)=>t.parent.selectDay(e)}>${e=>e.date}</button>`)} `)}</div><slot name="bottom"></slot></div>`,Vse=T` ${e=>Zw(yb(e))} `;var Qw=/* @__PURE__ */ s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(e,(function(){"use strict";var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||``).toLowerCase().replace(/s$/,``)},u:function(e){return e===void 0}},y=`en`,b={};b[y]=g;var ee=`$isDayjsObject`,x=function(e){return e instanceof C||!(!e||!e[ee])},te=function e(t,n,r){var i;if(!t)return y;if(typeof t==`string`){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split(`-`);if(!i&&o.length>1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},ne=function(e,t){if(x(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new C(n)},S=v;S.l=te,S.i=x,S.w=function(e,t){return ne(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var C=function(){function g(e){this.$L=te(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[ee]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return/* @__PURE__ */ new Date(NaN);if(S.u(t))return/* @__PURE__ */ new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return S},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=ne(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return ne(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<ne(e)},_.$g=function(e,t,n){return S.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var n=this,r=!!S.u(t)||t,u=S.p(e),p=function(e,t){var i=S.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},m=function(e,t){return S.w(n.toDate()[e].apply(n.toDate(`s`),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,_=this.$D,v=`set`+(this.$u?`UTC`:``);switch(u){case d:return r?p(1,0):p(31,11);case l:return r?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,b=(h<y?h+7:h)-y;return p(r?_-b:_+(6-b),g);case s:case f:return m(v+`Hours`,0);case o:return m(v+`Minutes`,1);case a:return m(v+`Seconds`,2);case i:return m(v+`Milliseconds`,3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(e,t){var n,c=S.p(e),u=`set`+(this.$u?`UTC`:``),p=(n={},n[s]=u+`Date`,n[f]=u+`Date`,n[l]=u+`Month`,n[d]=u+`FullYear`,n[o]=u+`Hours`,n[a]=u+`Minutes`,n[i]=u+`Seconds`,n[r]=u+`Milliseconds`,n)[c],m=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[S.p(e)]()},_.add=function(r,u){var f,p=this;r=Number(r);var m=S.p(u),h=function(e){var t=ne(p);return S.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return h(1);if(m===c)return h(7);var g=(f={},f[a]=t,f[o]=n,f[i]=e,f)[m]||1,_=this.$d.getTime()+r*g;return S.w(_,this)},_.subtract=function(e,t){return this.add(-1*e,t)},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||`YYYY-MM-DDTHH:mm:ssZ`,i=S.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return S.s(a%12||12,e,`0`)},m=u||function(e,t,n){var r=e<12?`AM`:`PM`;return n?r.toLowerCase():r};return r.replace(h,(function(e,r){return r||function(e){switch(e){case`YY`:return String(t.$y).slice(-2);case`YYYY`:return S.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return S.s(s+1,2,`0`);case`MMM`:return d(n.monthsShort,s,l,3);case`MMMM`:return d(l,s);case`D`:return t.$D;case`DD`:return S.s(t.$D,2,`0`);case`d`:return String(t.$W);case`dd`:return d(n.weekdaysMin,t.$W,c,2);case`ddd`:return d(n.weekdaysShort,t.$W,c,3);case`dddd`:return c[t.$W];case`H`:return String(a);case`HH`:return S.s(a,2,`0`);case`h`:return f(1);case`hh`:return f(2);case`a`:return m(a,o,!0);case`A`:return m(a,o,!1);case`m`:return String(o);case`mm`:return S.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return S.s(t.$s,2,`0`);case`SSS`:return S.s(t.$ms,3,`0`);case`Z`:return i}return null}(e)||i.replace(`:`,``)}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(r,f,p){var m,h=this,g=S.p(f),_=ne(r),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function(){return S.m(h,_)};switch(g){case d:m=b()/12;break;case l:m=b();break;case u:m=b()/3;break;case c:m=(y-v)/6048e5;break;case s:m=(y-v)/864e5;break;case o:m=y/n;break;case a:m=y/t;break;case i:m=y/e;break;default:m=y}return p?m:S.a(m)},_.daysInMonth=function(){return this.endOf(l).$D},_.$locale=function(){return b[this.$L]},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=te(e,t,!0);return r&&(n.$L=r),n},_.clone=function(){return S.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},g}(),w=C.prototype;return ne.prototype=w,[[`$ms`,r],[`$s`,i],[`$m`,a],[`$H`,o],[`$W`,s],[`$M`,l],[`$y`,d],[`$D`,f]].forEach((function(e){w[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),ne.extend=function(e,t){return e.$i||(e(t,C,ne),e.$i=!0),ne},ne.locale=te,ne.isDayjs=x,ne.unix=function(e){return ne(1e3*e)},ne.en=b[y],ne.Ls=b,ne.p={},ne}))})),Hse=/* @__PURE__ */ s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_customParseFormat=r()})(e,(function(){"use strict";var e={LTS:`h:mm:ss A`,LT:`h:mm A`,L:`MM/DD/YYYY`,LL:`MMMM D, YYYY`,LLL:`MMMM D, YYYY h:mm A`,LLLL:`dddd, MMMM D, YYYY h:mm A`},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,i=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,o={},s=function(e){return(e=+e)+(e>68?1900:2e3)},c=function(e){return function(t){this[e]=+t}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e||e===`Z`)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return n===0?0:t[0]===`+`?-n:n}(e)}],u=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,r=o.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?`pm`:`PM`);return n},f={A:[a,function(e){this.afternoon=d(e,!1)}],a:[a,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*e}],SS:[r,function(e){this.milliseconds=10*e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[i,c(`seconds`)],ss:[i,c(`seconds`)],m:[i,c(`minutes`)],mm:[i,c(`minutes`)],H:[i,c(`hours`)],h:[i,c(`hours`)],HH:[i,c(`hours`)],hh:[i,c(`hours`)],D:[i,c(`day`)],DD:[r,c(`day`)],Do:[a,function(e){var t=o.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,``)===e&&(this.day=r)}],w:[i,c(`week`)],ww:[r,c(`week`)],M:[i,c(`month`)],MM:[r,c(`month`)],MMM:[a,function(e){var t=u(`months`),n=(u(`monthsShort`)||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw Error();this.month=n%12||n}],MMMM:[a,function(e){var t=u(`months`).indexOf(e)+1;if(t<1)throw Error();this.month=t%12||t}],Y:[/[+-]?\d+/,c(`year`)],YY:[r,function(e){this.year=s(e)}],YYYY:[/\d{4}/,c(`year`)],Z:l,ZZ:l};function p(n){for(var r=n,i=o&&o.formats,a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var a=r&&r.toUpperCase();return n||i[r]||e[r]||i[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),s=a.length,c=0;c<s;c+=1){var l=a[c],u=f[l],d=u&&u[0],p=u&&u[1];a[c]=p?{regex:d,parser:p}:l.replace(/^\[|\]$/g,``)}return function(e){for(var t={},n=0,r=0;n<s;n+=1){var i=a[n];if(typeof i==`string`)r+=i.length;else{var o=i.regex,c=i.parser,l=e.slice(r),u=o.exec(l)[0];c.call(t,u),e=e.replace(u,``)}}return function(e){var t=e.afternoon;if(t!==void 0){var n=e.hours;t?n<12&&(e.hours+=12):n===12&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(s=e.parseTwoDigitYear);var r=t.prototype,i=r.parse;r.parse=function(e){var t=e.date,r=e.utc,a=e.args;this.$u=r;var s=a[1];if(typeof s==`string`){var c=!0===a[2],l=!0===a[3],u=c||l,d=a[2];l&&(d=a[2]),o=this.$locale(),!c&&d&&(o=n.Ls[d]),this.$d=function(e,t,n,r){try{if([`x`,`X`].indexOf(t)>-1)return/* @__PURE__ */ new Date((t===`X`?1e3:1)*e);var i=p(t)(e),a=i.year,o=i.month,s=i.day,c=i.hours,l=i.minutes,u=i.seconds,d=i.milliseconds,f=i.zone,m=i.week,h=/* @__PURE__ */ new Date,g=s||(a||o?1:h.getDate()),_=a||h.getFullYear(),v=0;a&&!o||(v=o>0?o-1:h.getMonth());var y,b=c||0,ee=l||0,x=u||0,te=d||0;return f?new Date(Date.UTC(_,v,g,b,ee,x,te+60*f.offset*1e3)):n?new Date(Date.UTC(_,v,g,b,ee,x,te)):(y=new Date(_,v,g,b,ee,x,te),m&&(y=r(y).week(m).toDate()),y)}catch{return/* @__PURE__ */ new Date(``)}}(t,s,r,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(s)&&(this.$d=/* @__PURE__ */ new Date(``)),o={}}else if(s instanceof Array)for(var f=s.length,m=1;m<=f;m+=1){a[1]=s[m-1];var h=n.apply(this,a);if(h.isValid()){this.$d=h.$d,this.$L=h.$L,this.init();break}m===f&&(this.$d=/* @__PURE__ */ new Date(``))}else i.call(this,e)}}}))})),Use=/* @__PURE__ */ s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_localeData=r()})(e,(function(){"use strict";return function(e,t,n){var r=t.prototype,i=function(e){return e&&(e.indexOf?e:e.s)},a=function(e,t,n,r,a){var o=e.name?e:e.$locale(),s=i(o[t]),c=i(o[n]),l=s||c.map((function(e){return e.slice(0,r)}));if(!a)return l;var u=o.weekStart;return l.map((function(e,t){return l[(t+(u||0))%7]}))},o=function(){return n.Ls[n.locale()]},s=function(e,t){return e.formats[t]||function(e){return e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}(e.formats[t.toUpperCase()])},c=function(){var e=this;return{months:function(t){return t?t.format(`MMMM`):a(e,`months`)},monthsShort:function(t){return t?t.format(`MMM`):a(e,`monthsShort`,`months`,3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format(`dddd`):a(e,`weekdays`)},weekdaysMin:function(t){return t?t.format(`dd`):a(e,`weekdaysMin`,`weekdays`,2)},weekdaysShort:function(t){return t?t.format(`ddd`):a(e,`weekdaysShort`,`weekdays`,3)},longDateFormat:function(t){return s(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return c.bind(this)()},n.localeData=function(){var e=o();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(t){return s(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},n.months=function(){return a(o(),`months`)},n.monthsShort=function(){return a(o(),`monthsShort`,`months`,3)},n.weekdays=function(e){return a(o(),`weekdays`,null,null,e)},n.weekdaysShort=function(e){return a(o(),`weekdaysShort`,`weekdays`,3,e)},n.weekdaysMin=function(e){return a(o(),`weekdaysMin`,`weekdays`,2,e)}}}))})),Wse=/* @__PURE__ */ s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_localizedFormat=r()})(e,(function(){"use strict";var e={LTS:`h:mm:ss A`,LT:`h:mm A`,L:`MM/DD/YYYY`,LL:`MMMM D, YYYY`,LLL:`MMMM D, YYYY h:mm A`,LLLL:`dddd, MMMM D, YYYY h:mm A`};return function(t,n,r){var i=n.prototype,a=i.format;r.en.formats=e,i.format=function(t){t===void 0&&(t=`YYYY-MM-DDTHH:mm:ssZ`);var n=this.$locale().formats,r=function(t,n){return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,r,i){var a=i&&i.toUpperCase();return r||n[i]||e[i]||n[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))}(t,n===void 0?{}:n);return a.call(this,r)}}}))})),Gse=/* @__PURE__ */ s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_isLeapYear=r()})(e,(function(){"use strict";return function(e,t){t.prototype.isLeapYear=function(){return this.$y%4==0&&this.$y%100!=0||this.$y%400==0}}}))})),$w=/* @__PURE__ */ u(Qw()),eT=/* @__PURE__ */ u(Hse()),tT=/* @__PURE__ */ u(Use()),nT=/* @__PURE__ */ u(Wse()),rT=/* @__PURE__ */ u(Gse()),iT=class{constructor(e,t=`default`){e=e??/* @__PURE__ */ new Date,this.Date=e,this.date=e.getDate(),this.day=e.toLocaleString(t,{weekday:`long`}),this.dayNumber=e.getDay()+1,this.dayShort=e.toLocaleString(t,{weekday:`short`}),this.year=e.getFullYear(),this.yearShort=Number(e.toLocaleString(t,{year:`2-digit`})),this.month=e.toLocaleString(t,{month:`long`}),this.monthShort=e.toLocaleString(t,{month:`short`}),this.monthNumber=e.getMonth()+1,this.timestamp=e.getTime()}};$w.default.extend(rT.default);var aT=class{constructor(e=null,t=`default`){let n=new iT(e,t),r=[31,28,31,30,31,30,31,31,30,31,30,31];this.lang=t,this.name=n.month,this.number=n.monthNumber,this.year=n.year,this.numberOfDays=r[this.number-1],this.number===2&&(this.numberOfDays+=+!!(0,$w.default)(n.date).isLeapYear())}getDay(e){return new iT(new Date(this.year,this.number-1,e),this.lang)}};$w.default.extend(rT.default);var oT=class{constructor(e=null,t=null,n=`default`){this.weekDays=Array.from({length:7}),this.today=new iT(null,n),this.year=e??this.today.year,this.month=new aT(new Date(this.year,(t||this.today.monthNumber)-1),n),this.lang=n,this.weekDays.forEach((e,t)=>{let n=this.month.getDay(t);this.weekDays[n.dayNumber-1]=n.day})}getMonth(e){return new aT(new Date(this.year,e-1),this.lang)}getPreviousMonth(){return this.month.number===1?new aT(new Date(this.year-1,11),this.lang):new aT(new Date(this.year,this.month.number-2),this.lang)}getNextMonth(){return this.month.number===1?new aT(new Date(this.year+1,0),this.lang):new aT(new Date(this.year,this.month.number+2),this.lang)}goToDate(e,t){this.month=new aT(new Date(t,e-1),this.lang),this.year=t}goToNextYear(){this.year+=1,this.month=new aT(new Date(this.year,0),this.lang)}goToPreviousYear(){--this.year,this.month=new aT(new Date(this.year,11),this.lang)}goToNextMonth(){if(this.month.number===12)return this.goToNextYear();this.month=new aT(new Date(this.year,this.month.number+1-1),this.lang)}goToPreviousMonth(){if(this.month.number===1)return this.goToPreviousYear();this.month=new aT(new Date(this.year,this.month.number-1-1),this.lang)}};(/* @__PURE__ */ s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(Qw()):typeof define==`function`&&define.amd?define([`dayjs`],r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_en_gb=r(n.dayjs)})(e,(function(e){"use strict";function t(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var n=t(e),r={name:`en-gb`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),weekdaysShort:`Sun_Mon_Tue_Wed_Thu_Fri_Sat`.split(`_`),weekdaysMin:`Su_Mo_Tu_We_Th_Fr_Sa`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),monthsShort:`Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec`.split(`_`),weekStart:1,yearStart:4,relativeTime:{future:`in %s`,past:`%s ago`,s:`a few seconds`,m:`a minute`,mm:`%d minutes`,h:`an hour`,hh:`%d hours`,d:`a day`,dd:`%d days`,M:`a month`,MM:`%d months`,y:`a year`,yy:`%d years`},formats:{LT:`HH:mm`,LTS:`HH:mm:ss`,L:`DD/MM/YYYY`,LL:`D MMMM YYYY`,LLL:`D MMMM YYYY HH:mm`,LLLL:`dddd, D MMMM YYYY HH:mm`},ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}};return n.default.locale(r,null,!0),r}))})))(),$w.default.extend(eT.default),$w.default.extend(tT.default),$w.default.extend(nT.default);function Kse(e){let t=(e?.trim()||`en`).toLowerCase().replace(/_/g,`-`);return t===`en-us`||t===`en`?`en`:t===`en-gb`?`en-gb`:t}function qse(e,t){return e===t||t===e.split(`-`)[0]}function Jse(){return typeof navigator<`u`&&navigator.language?navigator.language:`en`}function Yse(e=`en`){let t=Kse(e),n=(0,$w.default)().locale(t);return qse(t,n.locale())?n.localeData().longDateFormat(`L`)||`MM/DD/YYYY`:(0,$w.default)().locale(`en`).localeData().longDateFormat(`L`)||`MM/DD/YYYY`}function Xse(e){return e.replace(/YYYY/g,`yyyy`).replace(/YY(?!Y)/g,`yy`).replace(/DD/g,`dd`).replace(/D(?!D)/g,`d`).replace(/MM/g,`mm`).replace(/M(?!M)/g,`m`)}function sT(e){return e!=null&&String(e).trim()!==``}let cT=`MM-DD-YYYY`;function Zse(e,t){let n=String(e).trim(),r=(0,$w.default)(n,t,!0);if(r.isValid())return r;let i=(0,$w.default)(n,cT,!0);return i.isValid()?i:null}let Qse=(e,t=1)=>{let n=new Date(e);return n.setDate(e.getDate()+t),n},$se=(e,t)=>e.indexOf(t.dayNumber)===-1,ece=[1,2,3,4,5,6,7],tce=(e,t,n)=>{if($se(e,t))return t;let r=ece.filter(t=>e.indexOf(t)===-1),i=r.find(e=>e>t.dayNumber);i||(i=Math.min(...r));let a=t.dayNumber<i?i-t.dayNumber:i-t.dayNumber+7;return r.length?new iT(Qse(t.Date,a),n):(Fd.warn(`Date picker disabled days - all days of week have been disabled`),t)},nce={};var lT=class extends P{constructor(){super(...arguments),this.format=cT,this.lang=`en-US`,this.visible=!1,this.position=`bottom`,this.disabledDaysOfWeek=[],this.suppressValueChanged=!1,this.cachedFormat=cT,this.clickOutside=e=>this.handleClickOutside(e),this.keydownOutside=e=>this.handleKeydownOutside(e)}formatChanged(e,t){!this.useLocaleFormat&&t&&this.cacheUserFormat(t),t&&this.calendar&&sT(this.value)&&(this.formatDate=(0,$w.default)(this.currentDate.Date).format(t))}langChanged(){this.applyEffectiveLangChange()}useLocaleFormatChanged(e,t){this.calendar&&(t&&!e?this.cacheUserFormat(this.format):!t&&e&&this.restoreUserFormat(),this.applyEffectiveLangChange())}inlineCalendarChanged(){this.inlineCalendar?(document.removeEventListener(`mousedown`,this.clickOutside),document.removeEventListener(`keydown`,this.keydownOutside)):this.visible&&(document.addEventListener(`mousedown`,this.clickOutside),document.addEventListener(`keydown`,this.keydownOutside)),this.toggleVisibility()}hideWeekendsCalendarChanged(){this.toggleVisibility()}valueChanged(e,t){if(!this.suppressValueChanged&&this.calendar){if(!sT(t)){this.allowEmpty?this.clearToEmpty(!1):this.resetToDefaultDate();return}this.applyValue(t)}}disconnectedCallback(){document.removeEventListener(`mousedown`,this.clickOutside),document.removeEventListener(`keydown`,this.keydownOutside),super.disconnectedCallback()}connectedCallback(){super.connectedCallback(),$w.default.extend(eT.default),$w.default.extend(nT.default),$w.default.extend(tT.default),this.substringNumber=3,this.useLocaleFormat&&(this.cacheUserFormat(this.format),this.applyLocaleFormat());let e=this.value;if(this.allowEmpty&&!sT(e)){this.initializeEmpty();return}if(sT(e)){this.applyValue(e);return}this.initializeWithDefaultDate()}clear(){this.allowEmpty&&this.clearToEmpty(!0)}get inputValue(){return sT(this.value)?this.formatDate:``}get inputPlaceholder(){return!this.allowEmpty||sT(this.value)?``:this.placeholder?.trim()||Xse(this.format)}get effectiveLang(){return this.useLocaleFormat&&!this.hasAttribute(`lang`)?Jse():this.lang}applyLocaleFormat(){this.format=Yse(this.effectiveLang)}cacheUserFormat(e){let t=e?.trim();t&&(this.cachedFormat=t)}restoreUserFormat(){this.format=this.cachedFormat}applyEffectiveLangChange(){if(!this.calendar)return;this.useLocaleFormat&&this.applyLocaleFormat();let e=this.calendar.year,t=this.calendar.month.number,n=this.currentDate?.Date??(0,$w.default)().toDate();this.currentDate=new iT(n,this.effectiveLang),this.calendar=new oT(e,t,this.effectiveLang),sT(this.value)&&(this.formatDate=(0,$w.default)(this.currentDate.Date).format(this.format)),this.updateHeaderText(),this.monthList=this.getMonthDaysGrid()}syncValueAttribute(e){this.suppressValueChanged=!0,this.value=e,this.suppressValueChanged=!1}initializeEmpty(){let e=(0,$w.default)();this.currentDate=new iT(e.toDate(),this.effectiveLang),this.calendar=new oT(this.currentDate.year,this.currentDate.monthNumber,this.effectiveLang),this.formatDate=``,this.syncValueAttribute(``),this.currentMonth=this.calendar.month.name,this.currentYear=this.calendar.year,this.monthList=this.getMonthDaysGrid()}initializeWithDefaultDate(){this.resetToDefaultDate(!0)}resetToDefaultDate(e=!1){let t=new iT((0,$w.default)().toDate(),this.effectiveLang);this.disabledDaysOfWeek?.length&&(t=tce(this.disabledDaysOfWeek,t,this.effectiveLang)),this.currentDate=t,e||!this.calendar?this.calendar=new oT(this.currentDate.year,this.currentDate.monthNumber,this.effectiveLang):this.calendar.goToDate(this.currentDate.monthNumber,this.currentDate.year),this.formatDate=(0,$w.default)(this.currentDate.Date).format(this.format),this.syncValueAttribute((0,$w.default)(this.currentDate.Date).format(cT)),this.currentMonth=this.calendar.month.name,this.currentYear=this.calendar.year,this.monthList=this.getMonthDaysGrid()}applyValue(e){let t=Zse(e,this.format);if(!t){this.allowEmpty?this.clearToEmpty(!1):this.resetToDefaultDate();return}this.currentDate=new iT(t.toDate(),this.effectiveLang),this.calendar?this.calendar.goToDate(this.currentDate.monthNumber,this.currentDate.year):this.calendar=new oT(this.currentDate.year,this.currentDate.monthNumber,this.effectiveLang),this.formatDate=(0,$w.default)(this.currentDate.Date).format(this.format),this.syncValueAttribute((0,$w.default)(this.currentDate.Date).format(cT)),this.updateHeaderText(),this.monthList=this.getMonthDaysGrid()}clearToEmpty(e){let t=(0,$w.default)();this.currentDate=new iT(t.toDate(),this.effectiveLang),this.calendar&&(this.calendar.goToDate(this.currentDate.monthNumber,this.currentDate.year),this.updateHeaderText(),this.monthList=this.getMonthDaysGrid()),this.formatDate=``,this.syncValueAttribute(``),e&&this.$emit(`value-changed`,void 0)}updateHeaderText(){this.currentMonth=this.calendar.month.name,this.currentYear=this.calendar.year}visibleChanged(e,t){this.inlineCalendar||(t?(document.addEventListener(`mousedown`,this.clickOutside),document.addEventListener(`keydown`,this.keydownOutside)):(document.removeEventListener(`mousedown`,this.clickOutside),document.removeEventListener(`keydown`,this.keydownOutside)))}handleKeydownOutside(e){!this.inlineCalendar&&this.visible&&e.key===`Escape`&&(e.preventDefault(),this.closeCalendar())}handleClickOutside(e){!this.inlineCalendar&&this.visible&&_b(e,this)&&this.closeCalendar()}closeCalendar(){this.visible&&(this.visible=!1,this.toggleVisibility())}toggleCalendar(){this.visible=!this.visible,this.toggleVisibility(),this.isCurrentCalendarMonth()||(this.calendar.goToDate(this.currentDate.monthNumber,this.currentDate.year),this.updateHeaderText())}toggleVisibility(){this.calendarDropdownClasses=fn([`visible`,this.visible],this.position,[`inline`,this.inlineCalendar],[`hide-weekends`,this.hideWeekends])}isSelectedDate(e){return this.allowEmpty&&!sT(this.value)?!1:(0,$w.default)(e.Date).isSame(this.currentDate.Date,`day`)}isCurrentCalendarMonth(){return this.currentMonth===this.currentDate.monthNumber&&this.currentYear===this.currentDate.year}prevMonth(){this.calendar.goToPreviousMonth(),this.updateHeaderText(),this.monthList=this.getMonthDaysGrid()}nextMonth(){this.calendar.goToNextMonth(),this.updateHeaderText(),this.monthList=this.getMonthDaysGrid()}selectDay(e){(0,$w.default)(e.Date).isSame(this.currentDate.Date,`day`)&&sT(this.value)||(this.currentDate=e,e.monthNumber!==this.calendar.month.number&&this.prevMonth(),this.formatDate=(0,$w.default)(this.currentDate.Date).format(this.format),this.syncValueAttribute((0,$w.default)(e.Date).format(cT)),this.$emit(`value-changed`,this.value),this.toggleCalendar())}getMonthDaysGrid(){let e=this.calendar.month.getDay(1),t=this.calendar.getPreviousMonth(),n=e.dayNumber-1,r=this.calendar.month.numberOfDays+n,i=Array.from({length:r});for(let e=n;e<r;e+=1)i[e]=this.calendar.month.getDay(e+1-n);for(let e=0;e<n;e+=1){let r=n-(e+1);i[e]=t.getDay(t.numberOfDays-r)}return i}};q([D],lT.prototype,`format`,void 0),q([D],lT.prototype,`lang`,void 0),q([D({attribute:`use-locale-format`,mode:`boolean`})],lT.prototype,`useLocaleFormat`,void 0),q([D],lT.prototype,`visible`,void 0),q([D({attribute:`inline-calendar`,mode:`boolean`})],lT.prototype,`inlineCalendar`,void 0),q([D({attribute:`hide-weekends`,mode:`boolean`})],lT.prototype,`hideWeekends`,void 0),q([D],lT.prototype,`position`,void 0),q([D],lT.prototype,`label`,void 0),q([D({attribute:`allow-empty`,mode:`boolean`})],lT.prototype,`allowEmpty`,void 0),q([D],lT.prototype,`placeholder`,void 0),q([D],lT.prototype,`value`,void 0),q([C],lT.prototype,`currentDate`,void 0),q([C],lT.prototype,`currentMonth`,void 0),q([C],lT.prototype,`currentYear`,void 0),q([C],lT.prototype,`calendarDropdownClasses`,void 0),q([C],lT.prototype,`formatDate`,void 0),q([C],lT.prototype,`monthList`,void 0),q([C],lT.prototype,`disabledDaysOfWeek`,void 0),q([C],lT.prototype,`calendar`,void 0),lT.compose(Object.assign({baseName:`date-picker`,styles:Yw,template:Vse,shadowOptions:void 0},nce));let rce=e=>J(void 0,void 0,void 0,function*(){!e.isConnected&&e.isConnected$&&(yield vie(e.isConnected$.pipe(gh(Boolean))))}),ice=e=>{let t=()=>J(void 0,void 0,void 0,function*(){let t=N.findResponsibleContainer(e);return yield rce(t.get(Qv)),t.get(fb)});return{load(e){return J(this,void 0,void 0,function*(){return(yield(yield t()).get(e))?.kv?.value})},save(e,n){return J(this,void 0,void 0,function*(){return(yield t()).put([{key:e,value:n}])})}}},uT=e=>e>=.5?`light`:`dark`,ace=e=>e===`light`?ss.LightMode:ss.DarkMode,dT=/* @__PURE__ */ new WeakMap,fT=/* @__PURE__ */ new WeakSet,oce=e=>{let t=e.parentNode;for(;t;){if(t instanceof HTMLElement&&fT.has(t))return!0;t=t.parentNode??(t instanceof ShadowRoot?t.host:null)}return!1},pT=e=>{let t=typeof e==`string`?e.replace(/^"|"$/g,``):e;return t===`light`||t===`dark`?t:void 0};var mT=class{constructor(e,t=ice(e)){this.provider=e,this.storage=t,this.applying=!1,this.connected=!1}connect(e){this.connected=!0,ds.subscribe(this,this.provider),this.reflect(uT(ds.getValueFor(this.provider))),this.setPersist(e)}disconnect(){this.connected=!1,ds.unsubscribe(this,this.provider),this.stopPersisting()}setPersist(e){let t=this.connected&&e&&!oce(this.provider);t&&!this.key?this.startPersisting():!t&&this.key&&this.stopPersisting()}startPersisting(){this.key=`rapid-luminance`,fT.add(this.provider),typeof BroadcastChannel<`u`&&(this.channel=new BroadcastChannel(`luminance:${this.key}`),this.channel.onmessage=e=>{let t=pT(e.data);t&&(dT.set(this.provider,t),this.apply(t))});let e=this.restore(this.key);this.restoring=e,e.then(()=>{this.restoring===e&&(this.restoring=void 0)})}stopPersisting(){var e;(e=this.channel)==null||e.close(),this.channel=void 0,this.key=void 0,this.restoring=void 0,fT.delete(this.provider),dT.delete(this.provider)}handleChange(e){var t;let n=uT(ds.getValueFor(this.provider));n!==this.current&&(this.reflect(n),this.key&&!this.restoring&&!this.applying&&(dT.set(this.provider,n),this.save(this.key,n),(t=this.channel)==null||t.postMessage(n)))}restore(e){return J(this,void 0,void 0,function*(){try{let t=pT(yield this.storage.load(e));t&&e===this.key&&(dT.set(this.provider,t),this.apply(t))}catch(e){hb.error(`Failed to restore luminance from KVStorage`,e)}})}save(e,t){return J(this,void 0,void 0,function*(){try{yield this.storage.save(e,t)}catch(e){hb.error(`Failed to save luminance to KVStorage`,e)}})}apply(e){if(e!==this.current){this.applying=!0;try{ds.setValueFor(this.provider,ace(e))}finally{this.applying=!1}}}reflect(e){e!==this.current&&(this.current=e,this.provider.setAttribute(`luminance`,e),this.provider.dispatchEvent(new CustomEvent(`luminance-change`,{detail:{luminance:e}})))}},hT=class{constructor(){this.value=null}};q([C],hT.prototype,`value`,void 0),new hT;let gT=(e,t,n)=>{let r=n?(e,t)=>e.setValueFor(n,t):(e,t)=>e.withDefault(t);Object.keys(e).forEach(n=>{let i=`${n}Value`;t[i]&&r(e[n],t[i])})};function _T(e){return(t,n)=>{t[n+`Changed`]=function(t,n){n==null?e.deleteValueFor(this):e.setValueFor(this,n)}}}let vT={toView(e){return e==null?null:e?.toColorString()},fromView(e){if(e==null)return null;let t=Jo(e);return t?Qo.create(t.r,t.g,t.b):null}},yT=e=>rs.from(Qo.from(Jo(e)));Qo.create(1,1,1),Qo.create(0,0,0);let bT=Jo(`#585858`),sce=Qo.create(bT.r,bT.g,bT.b),xT=Jo(`#ffffff`),ST=Qo.create(xT.r,xT.g,xT.b),cce=rs.from(ST),CT=Jo(`#eeeeee`),lce=Qo.create(CT.r,CT.g,CT.b);rs.from(lce);let wT=Jo(`#08c3a5`),uce=Qo.create(wT.r,wT.g,wT.b);rs.from(uce);let{create:TT}=ni,ET=TT(`fui-fill-color`).withDefault(sce),DT=TT({name:`card-fill-color`,cssCustomPropertyName:`fui-card-fill-color`}).withDefault(ST);function OT(e,t){return e.colorContrast(t,14)}let kT=TT({name:`card-foreground-color`,cssCustomPropertyName:`fui-card-foreground-color`}).withDefault(e=>OT(TT(`fui-card-palette`).withDefault(cce).getValueFor(e),DT.getValueFor(e)));var AT=/* @__PURE__ */ c({accentFillActive:()=>Oc,accentFillActiveDelta:()=>Ls,accentFillFocus:()=>kc,accentFillFocusDelta:()=>Rs,accentFillHover:()=>Dc,accentFillHoverDelta:()=>Is,accentFillRest:()=>Ec,accentFillRestDelta:()=>Fs,accentForegroundActive:()=>Gc,accentForegroundActiveDelta:()=>Vs,accentForegroundFocus:()=>Kc,accentForegroundFocusDelta:()=>Hs,accentForegroundHover:()=>Wc,accentForegroundHoverDelta:()=>Bs,accentForegroundRest:()=>Uc,accentForegroundRestDelta:()=>zs,accentPalette:()=>mc,baseHeightMultiplier:()=>us,baseLayerLuminance:()=>ds,bodyFont:()=>ls,controlCornerRadius:()=>fs,defaultNeutralForegroundContrast:()=>14,density:()=>ps,designUnit:()=>z,direction:()=>ms,disabledOpacity:()=>hs,fillColor:()=>Cc,focusStrokeInner:()=>gl,focusStrokeOuter:()=>V,focusStrokeWidth:()=>gs,foregroundOnAccentActive:()=>Pc,foregroundOnAccentActiveLarge:()=>zc,foregroundOnAccentFocus:()=>Fc,foregroundOnAccentFocusLarge:()=>Bc,foregroundOnAccentHover:()=>Nc,foregroundOnAccentHoverLarge:()=>Rc,foregroundOnAccentRest:()=>Mc,foregroundOnAccentRestLarge:()=>Lc,fuiCardFillColor:()=>DT,fuiCardForegroundColor:()=>kT,fuiFillColor:()=>ET,neutralFillActive:()=>Xc,neutralFillActiveDelta:()=>Gs,neutralFillFocus:()=>Zc,neutralFillFocusDelta:()=>Ks,neutralFillHover:()=>Yc,neutralFillHoverDelta:()=>Ws,neutralFillInputActive:()=>tl,neutralFillInputActiveDelta:()=>Ys,neutralFillInputFocus:()=>nl,neutralFillInputFocusDelta:()=>Xs,neutralFillInputHover:()=>el,neutralFillInputHoverDelta:()=>Js,neutralFillInputRest:()=>$c,neutralFillInputRestDelta:()=>qs,neutralFillLayerRest:()=>ml,neutralFillLayerRestDelta:()=>ac,neutralFillRest:()=>Jc,neutralFillRestDelta:()=>Us,neutralFillStealthActive:()=>ol,neutralFillStealthActiveDelta:()=>$s,neutralFillStealthFocus:()=>sl,neutralFillStealthFocusDelta:()=>ec,neutralFillStealthHover:()=>al,neutralFillStealthHoverDelta:()=>Qs,neutralFillStealthRest:()=>il,neutralFillStealthRestDelta:()=>Zs,neutralFillStrongActive:()=>dl,neutralFillStrongActiveDelta:()=>rc,neutralFillStrongFocus:()=>fl,neutralFillStrongFocusDelta:()=>ic,neutralFillStrongHover:()=>ul,neutralFillStrongHoverDelta:()=>nc,neutralFillStrongRest:()=>ll,neutralFillStrongRestDelta:()=>tc,neutralForeground:()=>OT,neutralForegroundHint:()=>_l,neutralForegroundRest:()=>H,neutralLayer1:()=>_c,neutralLayer2:()=>vc,neutralLayer3:()=>bc,neutralLayer4:()=>Sc,neutralLayerCardContainer:()=>hc,neutralLayerFloating:()=>gc,neutralPalette:()=>fc,neutralStrokeActive:()=>xl,neutralStrokeActiveDelta:()=>cc,neutralStrokeDividerRest:()=>Cl,neutralStrokeDividerRestDelta:()=>uc,neutralStrokeFocus:()=>Sl,neutralStrokeFocusDelta:()=>lc,neutralStrokeHover:()=>bl,neutralStrokeHoverDelta:()=>sc,neutralStrokeRest:()=>yl,neutralStrokeRestDelta:()=>oc,strokeWidth:()=>B,typeRampBaseFontSize:()=>_s,typeRampBaseLineHeight:()=>vs,typeRampMinus1FontSize:()=>ys,typeRampMinus1LineHeight:()=>bs,typeRampMinus2FontSize:()=>xs,typeRampMinus2LineHeight:()=>Ss,typeRampPlus1FontSize:()=>Cs,typeRampPlus1LineHeight:()=>ws,typeRampPlus2FontSize:()=>Ts,typeRampPlus2LineHeight:()=>Es,typeRampPlus3FontSize:()=>Ds,typeRampPlus3LineHeight:()=>Os,typeRampPlus4FontSize:()=>ks,typeRampPlus4LineHeight:()=>As,typeRampPlus5FontSize:()=>js,typeRampPlus5LineHeight:()=>Ms,typeRampPlus6FontSize:()=>Ns,typeRampPlus6LineHeight:()=>Ps});let dce=yT(`#08c3a5`),fce=yT(`#eeeeee`),pce=ss.DarkMode,mce=Pn.ltr;var jT=/* @__PURE__ */ c({accentPaletteValue:()=>dce,baseLayerLuminanceValue:()=>pce,controlCornerRadiusValue:()=>4,designUnitValue:()=>4,directionValue:()=>mce,neutralPaletteValue:()=>fce});
285
285
  /*!
286
286
  * Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
287
287
  * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
@@ -864,7 +864,7 @@ let aL={prefix:`fas`,iconName:`0`,icon:[320,512,[],`30`,`M0 192C0 103.6 71.6 32
864
864
  font-family: ${ls};
865
865
  font-style: ${e};
866
866
  font-weight: ${t};
867
- `,MNe=O` ${ro(`flex`)} :host{flex: 1}`,NNe=O` :host{background-color: ${ET}}`.withBehaviors(eo(O` :host{background-color: ${F.ButtonFace};box-shadow: 0 0 0 1px ${F.CanvasText};color: ${F.ButtonText}}`)),Z1=(e,t)=>O` ${e.name} ${`h`+t}{margin: 0}`,PNe=e=>O` ${Z1(e,`1`)} ${Z1(e,`2`)} ${Z1(e,`3`)} ${Z1(e,`4`)} ${Z1(e,`5`)} ${Z1(e,`6`)}`,FNe=e=>{let t=PNe(e);return t.addStylesTo(document),O` ${MNe} ${NNe} ${t} :host *{${jNe()}}`};var Q1=class extends K{constructor(){super(),this.luminancePersistence=new mT(this),gT(AT,jT,this)}connectedCallback(){super.connectedCallback(),this.luminancePersistence.connect(this.persistLuminance)}disconnectedCallback(){super.disconnectedCallback(),this.luminancePersistence.disconnect()}persistLuminanceChanged(){var e;(e=this.luminancePersistence)==null||e.setPersist(this.persistLuminance)}};q([D({attribute:`persist-luminance`,mode:`boolean`})],Q1.prototype,`persistLuminance`,void 0),q([D({attribute:`card-fill-color`,converter:vT}),_T(DT)],Q1.prototype,`cardFillColor`,void 0),q([D({attribute:`card-foreground-color`,converter:vT}),_T(kT)],Q1.prototype,`cardForegroundColor`,void 0),Q1.compose({baseName:`design-system-provider`,template:T`<slot></slot>`,styles:FNe});let $1=O` :host{--dialog-close-icon-display: flex;--dialog-min-width: 358px;--notification-details-min-height: 40px}dialog[type='error'], dialog[type='alert'], dialog[type='success']{padding: calc(var(--design-unit) * 2px) calc(var(--design-unit) * 4px) calc(var(--design-unit) * 2px) calc(var(--design-unit) * 6px)}dialog[type='error']::before, dialog[type='alert']::before, dialog[type='success']::before{content: '';position: absolute;top: 50%;transform: translateY(-50%);left: calc(var(--design-unit) * 3px - 2px);height: calc(100% - (var(--design-unit) * 4px));width: 4px;border-radius: 2px}dialog[type='error']::before{background-color: var(--error-color)}dialog[type='alert']::before{background-color: var(--warning-color)}dialog[type='success']::before{background-color: var(--success-color)}.header-controls{display: flex;gap: calc(var(--design-unit) * 1px);align-items: center}:host([draggable])::part(top){cursor: move}.close-icon{display: var(--dialog-close-icon-display)}.reset-size-icon{display: flex}dialog{background-color: var(--dialog-background, var(--fill-color));padding: calc(var(--design-unit) * 3px);outline: none;overflow: inherit;/* The inner element is position:fixed, so it is never CLIPPED — but an 'auto' default leaves it in the normal paint tree at its tree position, where any later-in-DOM sibling paints over it (e.g. a non-modal dialog inside one FlexLayout tile disappears under the tiles below). 1001 clears app headers (999) and FlexLayout's drag chrome (1000) while staying under Flyout (2000/2001). Modal is unaffected: showModal() puts it in the top layer, above all of this. */ z-index: var(--dialog-z-index, 1001)}:host([position='left']) dialog{margin-left: 0}:host([position='right']) dialog{margin-right: 0}.top{display: flex;justify-content: space-between;align-items: center;gap: calc(var(--design-unit) * 2px)}.title{margin-top: calc(var(--design-unit) * 2px);font-size: 14px}.details{font-size: 12px;overflow: hidden;min-height: var(--notification-details-min-height);white-space: pre-line}.content-container{box-sizing: border-box}:host([resizable]) dialog{position: relative;box-sizing: border-box;max-width: 100%;max-height: 100%}:host([resizable]) dialog[open]{display: flex;flex-direction: column}/* Override design system max-width constraints for resizable dialogs */ :host([resizable]) dialog .content-wrapper{position: relative;height: 100%;width: 100%;max-height: 100%;min-width: 100%;max-width: 100%;resize: none;box-sizing: border-box;display: flex;flex-direction: column;overflow: hidden}:host([resizable]) .content-container{flex: 1 1 auto;overflow: auto;min-height: 0;box-sizing: border-box}:host([resizable]) .top, :host([resizable]) .bottom{flex: 0 0 auto}:host([position='right']) dialog .content-wrapper, :host([position='left']) dialog .content-wrapper, :host([position='left']) dialog, :host([position='right']) dialog{height: 100%}/* Resize handles */ .resize-handle{position: absolute;z-index: 10}/* Edge handles */ .resize-handle-n, .resize-handle-s{left: 0;right: 0;height: 8px;cursor: ns-resize}.resize-handle-n{top: 0}.resize-handle-s{bottom: 0}.resize-handle-e, .resize-handle-w{top: 0;bottom: 0;width: 8px;cursor: ew-resize}.resize-handle-e{right: 0}.resize-handle-w{left: 0}/* Corner handles */ .resize-handle-ne, .resize-handle-nw, .resize-handle-se, .resize-handle-sw{width: 16px;height: 16px}.resize-handle-ne{top: 0;right: 0;cursor: nesw-resize}.resize-handle-nw{top: 0;left: 0;cursor: nwse-resize}.resize-handle-se{bottom: 0;right: 0;cursor: nwse-resize}.resize-handle-sw{bottom: 0;left: 0;cursor: nesw-resize}/* Visual indicator for corner handles */ .resize-handle-se::after, .resize-handle-sw::after, .resize-handle-ne::after, .resize-handle-nw::after{content: '';position: absolute;width: 8px;height: 8px;border-style: solid;border-color: var(--neutral-stroke-divider-rest);opacity: 50%;transition: opacity 0.2s;margin: 2px}.resize-handle-se::after{bottom: 2px;right: 2px;border-width: 0 3px 3px 0}.resize-handle-sw::after{bottom: 2px;left: 2px;border-width: 0 0 3px 3px}.resize-handle-ne::after{top: 2px;right: 2px;border-width: 3px 3px 0 0}.resize-handle-nw::after{top: 2px;left: 2px;border-width: 3px 0 0 3px}/* Hover effect */ .resize-handle:hover::after{opacity: 100%}/* Resizing state */ dialog.resizing{user-select: none;pointer-events: auto}/* Fixed positioning support for resizable dialogs */ dialog[style*='position: fixed']{margin: 0}`,e0=T`<slot>${A(e=>e.notification,T`<div class="details">${e=>e.notification?.body||`Place holder for notification message`}</div>`)}</slot>`,INe=e=>T`<dialog ${k(`mainElement`)}part="dialog" type=${e=>e.type}><div class="content-wrapper" part="content"><div part="top" class="top" ${k(`topElement`)}><slot name="top" ${k(`topElementSlot`)}><h2 slot="top" class="title">${e=>e.notification?.title}</h2></slot><div class="header-controls">${A(e=>e.resizable,T`<${e}-button class="reset-size-icon" part="reset-size-icon" aria-label="reset size" appearance="stealth" @click=${e=>e.resetSize()}><${e}-icon name="${e=>e.resizeIconName}"></${e}-icon></${e}-button>`)} ${A(e=>e.showCloseIcon,T`<${e}-button class="close-icon" part="close-icon" aria-label="close" appearance="stealth" @click=${e=>e.close()}><${e}-icon name="times" size="lg"></${e}-icon></${e}-button>`)}</div></div>${lf(e=>e.resizable,T`<div class="content-container" part="content-container">${e0}</div>`,e0)}<div part="bottom" class="bottom"><slot name="bottom">${A(e=>e.notification,T`<${e}-button appearance="lightweight" @click=${e=>{e.dismiss()}}>${e=>e.notification?.config?.dialog?.dismissingAction?.label||`Ignore`}</${e}-button>`)} ${j(e=>(e.notification?.config)?.dialog.confirmingActions,T`<${e}-button appearance="lightweight" @click=${(e,t)=>{e?.action(),t.parent.closeDialog()}}>${e=>e.label}</${e}-button>`)}</slot></div></div>${A(e=>e.resizable,T`<div class="resize-handle resize-handle-n" data-direction="n"></div><div class="resize-handle resize-handle-s" data-direction="s"></div><div class="resize-handle resize-handle-e" data-direction="e"></div><div class="resize-handle resize-handle-w" data-direction="w"></div><div class="resize-handle resize-handle-ne" data-direction="ne"></div><div class="resize-handle resize-handle-nw" data-direction="nw"></div><div class="resize-handle resize-handle-se" data-direction="se"></div><div class="resize-handle resize-handle-sw" data-direction="sw"></div>`)}</dialog>`,t0=T` ${e=>INe(yb(e))} `;var n0=window.CustomEvent;(!n0||typeof n0==`object`)&&(n0=function(e,t){t=t||{};var n=document.createEvent(`CustomEvent`);return n.initCustomEvent(e,!!t.bubbles,!!t.cancelable,t.detail||null),n},n0.prototype=window.Event.prototype);function r0(e,t){var n=`on`+t.type.toLowerCase();return typeof e[n]==`function`&&e[n](t),e.dispatchEvent(t)}function LNe(e){for(;e&&e!==document.body;){var t=window.getComputedStyle(e),n=function(e,n){return t[e]!==void 0&&t[e]!==n};if(t.opacity<1||n(`zIndex`,`auto`)||n(`transform`,`none`)||n(`mixBlendMode`,`normal`)||n(`filter`,`none`)||n(`perspective`,`none`)||t.isolation===`isolate`||t.position===`fixed`||t.webkitOverflowScrolling===`touch`)return!0;e=e.parentElement}return!1}function i0(e){for(;e;){if(e.localName===`dialog`)return e;e=e.parentElement?e.parentElement:e.parentNode?e.parentNode.host:null}return null}function a0(e){for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;e&&e.blur&&e!==document.body&&e.blur()}function RNe(e,t){for(var n=0;n<e.length;++n)if(e[n]===t)return!0;return!1}function o0(e){return!e||!e.hasAttribute(`method`)?!1:e.getAttribute(`method`).toLowerCase()===`dialog`}function s0(e){var t=[`button`,`input`,`keygen`,`select`,`textarea`].map(function(e){return e+`:not([disabled])`});t.push(`[tabindex]:not([disabled]):not([tabindex=""])`);var n=e.querySelector(t.join(`, `));if(!n&&`attachShadow`in Element.prototype)for(var r=e.querySelectorAll(`*`),i=0;i<r.length&&!(r[i].tagName&&r[i].shadowRoot&&(n=s0(r[i].shadowRoot),n));i++);return n}function c0(e){return e.isConnected||document.body.contains(e)}function l0(e){if(e.submitter)return e.submitter;var t=e.target;if(!(t instanceof HTMLFormElement))return null;var n=d0.formSubmitter;if(!n){var r=e.target;n=(`getRootNode`in r&&r.getRootNode()||document).activeElement}return!n||n.form!==t?null:n}function zNe(e){if(!e.defaultPrevented){var t=e.target,n=d0.imagemapUseValue,r=l0(e);n===null&&r&&(n=r.value);var i=i0(t);i&&(r&&r.getAttribute(`formmethod`)||t.getAttribute(`method`))===`dialog`&&(e.preventDefault(),n==null?i.close():i.close(n))}}function u0(e){if(this.dialog_=e,this.replacedStyleTop_=!1,this.openAsModal_=!1,e.hasAttribute(`role`)||e.setAttribute(`role`,`dialog`),e.show=this.show.bind(this),e.showModal=this.showModal.bind(this),e.close=this.close.bind(this),e.addEventListener(`submit`,zNe,!1),`returnValue`in e||(e.returnValue=``),`MutationObserver`in window)new MutationObserver(this.maybeHideModal.bind(this)).observe(e,{attributes:!0,attributeFilter:[`open`]});else{var t=!1,n=function(){t?this.downgradeModal():this.maybeHideModal(),t=!1}.bind(this),r,i=function(i){if(i.target===e){var a=`DOMNodeRemoved`;t|=i.type.substr(0,a.length)===a,window.clearTimeout(r),r=window.setTimeout(n,0)}};[`DOMAttrModified`,`DOMNodeRemoved`,`DOMNodeRemovedFromDocument`].forEach(function(t){e.addEventListener(t,i)})}Object.defineProperty(e,"open",{set:this.setOpen.bind(this),get:e.hasAttribute.bind(e,`open`)}),this.backdrop_=document.createElement(`div`),this.backdrop_.className=`backdrop`,this.backdrop_.addEventListener(`mouseup`,this.backdropMouseEvent_.bind(this)),this.backdrop_.addEventListener(`mousedown`,this.backdropMouseEvent_.bind(this)),this.backdrop_.addEventListener(`click`,this.backdropMouseEvent_.bind(this))}u0.prototype={get dialog(){return this.dialog_},maybeHideModal:function(){this.dialog_.hasAttribute(`open`)&&c0(this.dialog_)||this.downgradeModal()},downgradeModal:function(){this.openAsModal_&&(this.openAsModal_=!1,this.dialog_.style.zIndex=``,this.replacedStyleTop_&&(this.dialog_.style.top=``,this.replacedStyleTop_=!1),this.backdrop_.parentNode&&this.backdrop_.parentNode.removeChild(this.backdrop_),d0.dm.removeDialog(this))},setOpen:function(e){e?this.dialog_.hasAttribute(`open`)||this.dialog_.setAttribute(`open`,``):(this.dialog_.removeAttribute(`open`),this.maybeHideModal())},backdropMouseEvent_:function(e){if(this.dialog_.hasAttribute(`tabindex`))this.dialog_.focus();else{var t=document.createElement(`div`);this.dialog_.insertBefore(t,this.dialog_.firstChild),t.tabIndex=-1,t.focus(),this.dialog_.removeChild(t)}var n=document.createEvent(`MouseEvents`);n.initMouseEvent(e.type,e.bubbles,e.cancelable,window,e.detail,e.screenX,e.screenY,e.clientX,e.clientY,e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,e.button,e.relatedTarget),this.dialog_.dispatchEvent(n),e.stopPropagation()},focus_:function(){var e=this.dialog_.querySelector(`[autofocus]:not([disabled])`);!e&&this.dialog_.tabIndex>=0&&(e=this.dialog_),e||(e=s0(this.dialog_)),a0(document.activeElement),e&&e.focus()},updateZIndex:function(e,t){if(e<t)throw Error(`dialogZ should never be < backdropZ`);this.dialog_.style.zIndex=e,this.backdrop_.style.zIndex=t},show:function(){this.dialog_.open||(this.setOpen(!0),this.focus_())},showModal:function(){if(this.dialog_.hasAttribute(`open`))throw Error(`Failed to execute 'showModal' on dialog: The element is already open, and therefore cannot be opened modally.`);if(!c0(this.dialog_))throw Error(`Failed to execute 'showModal' on dialog: The element is not in a Document.`);if(!d0.dm.pushDialog(this))throw Error(`Failed to execute 'showModal' on dialog: There are too many open modal dialogs.`);LNe(this.dialog_.parentElement)&&console.warn(`A dialog is being shown inside a stacking context. This may cause it to be unusable. For more information, see this link: https://github.com/GoogleChrome/dialog-polyfill/#stacking-context`),this.setOpen(!0),this.openAsModal_=!0,d0.needsCentering(this.dialog_)?(d0.reposition(this.dialog_),this.replacedStyleTop_=!0):this.replacedStyleTop_=!1,this.dialog_.parentNode.insertBefore(this.backdrop_,this.dialog_.nextSibling),this.focus_()},close:function(e){if(!this.dialog_.hasAttribute(`open`))throw Error(`Failed to execute 'close' on dialog: The element does not have an 'open' attribute, and therefore cannot be closed.`);this.setOpen(!1),e!==void 0&&(this.dialog_.returnValue=e);var t=new n0(`close`,{bubbles:!1,cancelable:!1});r0(this.dialog_,t)}};var d0={};if(d0.reposition=function(e){var t=document.body.scrollTop||document.documentElement.scrollTop,n=t+(window.innerHeight-e.offsetHeight)/2;e.style.top=Math.max(t,n)+`px`},d0.isInlinePositionSetByStylesheet=function(e){for(var t=0;t<document.styleSheets.length;++t){var n=document.styleSheets[t],r=null;try{r=n.cssRules}catch{}if(r)for(var i=0;i<r.length;++i){var a=r[i],o=null;try{o=document.querySelectorAll(a.selectorText)}catch{}if(o&&RNe(o,e)){var s=a.style.getPropertyValue(`top`),c=a.style.getPropertyValue(`bottom`);if(s&&s!==`auto`||c&&c!==`auto`)return!0}}}return!1},d0.needsCentering=function(e){return window.getComputedStyle(e).position!==`absolute`||e.style.top!==`auto`&&e.style.top!==``||e.style.bottom!==`auto`&&e.style.bottom!==``?!1:!d0.isInlinePositionSetByStylesheet(e)},d0.forceRegisterDialog=function(e){if((window.HTMLDialogElement||e.showModal)&&console.warn(`This browser already supports <dialog>, the polyfill may not work correctly`,e),e.localName!==`dialog`)throw Error(`Failed to register dialog: The element is not a dialog.`);new u0(e)},d0.registerDialog=function(e){e.showModal||d0.forceRegisterDialog(e)},d0.DialogManager=function(){this.pendingDialogStack=[];var e=this.checkDOM_.bind(this);this.overlay=document.createElement(`div`),this.overlay.className=`_dialog_overlay`,this.overlay.addEventListener(`click`,function(t){this.forwardTab_=void 0,t.stopPropagation(),e([])}.bind(this)),this.handleKey_=this.handleKey_.bind(this),this.handleFocus_=this.handleFocus_.bind(this),this.zIndexLow_=1e5,this.zIndexHigh_=100150,this.forwardTab_=void 0,`MutationObserver`in window&&(this.mo_=new MutationObserver(function(t){var n=[];t.forEach(function(e){for(var t=0,r;r=e.removedNodes[t];++t){if(r instanceof Element)r.localName===`dialog`&&n.push(r);else continue;n=n.concat(r.querySelectorAll(`dialog`))}}),n.length&&e(n)}))},d0.DialogManager.prototype.blockDocument=function(){document.documentElement.addEventListener(`focus`,this.handleFocus_,!0),document.addEventListener(`keydown`,this.handleKey_),this.mo_&&this.mo_.observe(document,{childList:!0,subtree:!0})},d0.DialogManager.prototype.unblockDocument=function(){document.documentElement.removeEventListener(`focus`,this.handleFocus_,!0),document.removeEventListener(`keydown`,this.handleKey_),this.mo_&&this.mo_.disconnect()},d0.DialogManager.prototype.updateStacking=function(){for(var e=this.zIndexHigh_,t=0,n;n=this.pendingDialogStack[t];++t)n.updateZIndex(--e,--e),t===0&&(this.overlay.style.zIndex=--e);var r=this.pendingDialogStack[0];r?(r.dialog.parentNode||document.body).appendChild(this.overlay):this.overlay.parentNode&&this.overlay.parentNode.removeChild(this.overlay)},d0.DialogManager.prototype.containedByTopDialog_=function(e){for(;e=i0(e);){for(var t=0,n;n=this.pendingDialogStack[t];++t)if(n.dialog===e)return t===0;e=e.parentElement}return!1},d0.DialogManager.prototype.handleFocus_=function(e){var t=e.composedPath?e.composedPath()[0]:e.target;if(!this.containedByTopDialog_(t)&&document.activeElement!==document.documentElement&&(e.preventDefault(),e.stopPropagation(),a0(t),this.forwardTab_!==void 0)){var n=this.pendingDialogStack[0];return n.dialog.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_PRECEDING&&(this.forwardTab_?n.focus_():t!==document.documentElement&&document.documentElement.focus()),!1}},d0.DialogManager.prototype.handleKey_=function(e){if(this.forwardTab_=void 0,e.keyCode===27){e.preventDefault(),e.stopPropagation();var t=new n0(`cancel`,{bubbles:!1,cancelable:!0}),n=this.pendingDialogStack[0];n&&r0(n.dialog,t)&&n.dialog.close()}else e.keyCode===9&&(this.forwardTab_=!e.shiftKey)},d0.DialogManager.prototype.checkDOM_=function(e){this.pendingDialogStack.slice().forEach(function(t){e.indexOf(t.dialog)===-1?t.maybeHideModal():t.downgradeModal()})},d0.DialogManager.prototype.pushDialog=function(e){var t=(this.zIndexHigh_-this.zIndexLow_)/2-1;return this.pendingDialogStack.length>=t?!1:(this.pendingDialogStack.unshift(e)===1&&this.blockDocument(),this.updateStacking(),!0)},d0.DialogManager.prototype.removeDialog=function(e){var t=this.pendingDialogStack.indexOf(e);t!==-1&&(this.pendingDialogStack.splice(t,1),this.pendingDialogStack.length===0&&this.unblockDocument(),this.updateStacking())},d0.dm=new d0.DialogManager,d0.formSubmitter=null,d0.imagemapUseValue=null,window.HTMLDialogElement===void 0){var f0=document.createElement(`form`);if(f0.setAttribute(`method`,`dialog`),f0.method!==`dialog`){var p0=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,`method`);if(p0){var BNe=p0.get;p0.get=function(){return o0(this)?`dialog`:BNe.call(this)};var VNe=p0.set;p0.set=function(e){return typeof e==`string`&&e.toLowerCase()===`dialog`?this.setAttribute(`method`,e):VNe.call(this,e)},Object.defineProperty(HTMLFormElement.prototype,"method",p0)}}document.addEventListener(`click`,function(e){if(d0.formSubmitter=null,d0.imagemapUseValue=null,!e.defaultPrevented){var t=e.target;if(`composedPath`in e&&(t=e.composedPath().shift()||t),t&&o0(t.form)){if(!(t.type===`submit`&&[`button`,`input`].indexOf(t.localName)>-1)){if(t.localName!==`input`||t.type!==`image`)return;d0.imagemapUseValue=e.offsetX+`,`+e.offsetY}i0(t)&&(d0.formSubmitter=t)}}},!1),document.addEventListener(`submit`,function(e){var t=e.target;if(!i0(t)){var n=l0(e);(n&&n.getAttribute(`formmethod`)||t.getAttribute(`method`))===`dialog`&&e.preventDefault()}});var HNe=HTMLFormElement.prototype.submit,UNe=function(){if(!o0(this))return HNe.call(this);var e=i0(this);e&&e.close()};HTMLFormElement.prototype.submit=UNe}let m0={mode:`open`,delegatesFocus:!0},h0={};var g0=class extends P{constructor(){super(...arguments),this.type=`default`,this.position=`center`,this.showCloseIcon=!0,this.resizable=!1,this.draggable=!1,this.minWidth=300,this.minHeight=200,this.isResizing=!1,this.currentResizeHandle=null,this.startX=0,this.startY=0,this.startWidth=0,this.startHeight=0,this.startLeft=0,this.startTop=0,this.resizeOffsetX=0,this.resizeOffsetY=0,this.originalWidth=``,this.originalHeight=``,this.originalPosition=``,this.originalLeft=``,this.originalTop=``,this.originalMargin=``,this.isMaximized=!1,this.hasBeenResized=!1,this.isDragging=!1,this.dragOffsetX=0,this.dragOffsetY=0,this.dragDialogWidth=0,this.dragDialogHeight=0,this.onMouseDownBound=null,this.onMouseMoveBound=null,this.onMouseUpBound=null}notificationChanged(){this.notification&&(this.showCloseIcon=!1)}draggableChanged(e,t){t?this.attachDragMouseDown():(this.detachDragMouseDown(),this.removeDraggableEventListeners())}connectedCallback(){super.connectedCallback(),window.HTMLDialogElement||d0.registerDialog(this.mainElement),this.mainElement.addEventListener(`close`,()=>{this.resetDraggableStyle(),this.onCloseCallback&&this.onCloseCallback(),this.$emit(`close`)}),this.hasAttribute(`open`)&&this.shadowRoot.querySelector(`dialog`).setAttribute(`open`,``),this.setupResizeHandlers(),this.attachDragMouseDown()}disconnectedCallback(){super.disconnectedCallback(),this.removeResizeHandlers(),this.detachDragMouseDown(),this.removeDraggableEventListeners()}setupResizeHandlers(){if(!this.resizable)return;let e=window.innerWidth,t=window.innerHeight,n=this.minWidth,r=this.minHeight;this.initialWidth!==void 0&&(n=Math.max(this.minWidth,Math.min(this.initialWidth,e))),this.initialHeight!==void 0&&(r=Math.max(this.minHeight,Math.min(this.initialHeight,t))),this.originalWidth=this.mainElement.style.width||`${n}px`,this.originalHeight=this.mainElement.style.height||`${r}px`,this.originalPosition=this.mainElement.style.position||``,this.originalLeft=this.mainElement.style.left||``,this.originalTop=this.mainElement.style.top||``,this.originalMargin=this.mainElement.style.margin||``,this.mainElement.style.height=`${r}px`,this.mainElement.style.minHeight=`${this.minHeight}px`,this.mainElement.style.width=`${n}px`,this.mainElement.style.minWidth=`${this.minWidth}px`,this.originalWidth=this.mainElement.style.width,this.originalHeight=this.mainElement.style.height,this.shadowRoot.querySelectorAll(`.resize-handle`).forEach(e=>{e.addEventListener(`mousedown`,this.handleResizeStart.bind(this)),e.addEventListener(`dblclick`,this.handleEdgeDoubleClick.bind(this))})}removeResizeHandlers(){document.removeEventListener(`mousemove`,this.handleResizeMove.bind(this)),document.removeEventListener(`mouseup`,this.handleResizeEnd.bind(this)),(this.shadowRoot?.querySelectorAll(`.resize-handle`))?.forEach(e=>{e.removeEventListener(`dblclick`,this.handleEdgeDoubleClick.bind(this))})}handleEdgeDoubleClick(e){if(!this.resizable)return;e.preventDefault(),e.stopPropagation();let t=e.target.dataset.direction;if(![`n`,`s`,`e`,`w`].includes(t))return;let n=this.mainElement.getBoundingClientRect(),r=window.innerWidth,i=window.innerHeight;switch(this.mainElement.style.position=`fixed`,this.mainElement.style.margin=`0`,t){case`n`:this.mainElement.style.height=`${n.bottom}px`,this.mainElement.style.top=`0px`;break;case`s`:this.mainElement.style.height=`${i-n.top}px`;break;case`e`:this.mainElement.style.width=`${r-n.left}px`;break;case`w`:this.mainElement.style.width=`${n.right}px`,this.mainElement.style.left=`0px`}this.hasBeenResized=!0,this.$emit(`resize`,{width:this.mainElement.offsetWidth,height:this.mainElement.offsetHeight})}handleResizeStart(e){if(!this.resizable)return;e.preventDefault(),e.stopPropagation(),this.isResizing=!0;let t=e.target;this.currentResizeHandle=t.dataset.direction,this.startX=e.clientX,this.startY=e.clientY;let n=this.mainElement.getBoundingClientRect();switch(this.startWidth=n.width,this.startHeight=n.height,this.startLeft=n.left,this.startTop=n.top,this.resizeOffsetX=0,this.resizeOffsetY=0,this.currentResizeHandle){case`n`:this.resizeOffsetY=e.clientY-n.top;break;case`s`:this.resizeOffsetY=e.clientY-n.bottom;break;case`e`:this.resizeOffsetX=e.clientX-n.right;break;case`w`:this.resizeOffsetX=e.clientX-n.left;break;case`ne`:this.resizeOffsetX=e.clientX-n.right,this.resizeOffsetY=e.clientY-n.top;break;case`nw`:this.resizeOffsetX=e.clientX-n.left,this.resizeOffsetY=e.clientY-n.top;break;case`se`:this.resizeOffsetX=e.clientX-n.right,this.resizeOffsetY=e.clientY-n.bottom;break;case`sw`:this.resizeOffsetX=e.clientX-n.left,this.resizeOffsetY=e.clientY-n.bottom}this.mainElement.style.position=`fixed`,this.mainElement.style.left=`${n.left}px`,this.mainElement.style.top=`${n.top}px`,this.mainElement.style.margin=`0`,document.addEventListener(`mousemove`,this.handleResizeMove.bind(this)),document.addEventListener(`mouseup`,this.handleResizeEnd.bind(this)),this.mainElement.classList.add(`resizing`)}handleResizeMove(e){if(!this.isResizing||!this.currentResizeHandle)return;e.preventDefault();let t=e.clientX-this.startX-this.resizeOffsetX,n=e.clientY-this.startY-this.resizeOffsetY,r=this.startWidth,i=this.startHeight,a=this.startLeft,o=this.startTop,s=!1;switch(this.currentResizeHandle){case`se`:r=this.startWidth+t,i=this.startHeight+n;break;case`sw`:r=this.startWidth-t,i=this.startHeight+n,a=this.startLeft+t,s=!0;break;case`ne`:r=this.startWidth+t,i=this.startHeight-n,o=this.startTop+n,s=!0;break;case`nw`:r=this.startWidth-t,i=this.startHeight-n,a=this.startLeft+t,o=this.startTop+n,s=!0;break;case`e`:r=this.startWidth+t;break;case`w`:r=this.startWidth-t,a=this.startLeft+t,s=!0;break;case`s`:i=this.startHeight+n;break;case`n`:i=this.startHeight-n,o=this.startTop+n,s=!0}let c=window.innerWidth,l=window.innerHeight;if(this.resizable){if(r<this.minWidth){let e=this.minWidth-r;r=this.minWidth,this.currentResizeHandle.includes(`w`)&&(a-=e)}if(i<this.minHeight){let e=this.minHeight-i;i=this.minHeight,this.currentResizeHandle.includes(`n`)&&(o-=e)}if(this.currentResizeHandle.includes(`e`)){let e=c-this.startLeft;r>e&&(r=e)}if(this.currentResizeHandle.includes(`s`)){let e=l-this.startTop;i>e&&(i=e)}if(this.currentResizeHandle.includes(`w`)){a<0&&(r+=a,a=0);let e=c-a;r>e&&(r=e)}if(this.currentResizeHandle.includes(`n`)){o<0&&(i+=o,o=0);let e=l-o;i>e&&(i=e)}}this.mainElement.style.width=`${r}px`,this.mainElement.style.height=`${i}px`,s&&(this.mainElement.style.left=`${a}px`,this.mainElement.style.top=`${o}px`)}handleResizeEnd(e){if(!this.isResizing)return;e.preventDefault(),this.isResizing=!1,this.currentResizeHandle=null,this.resizeOffsetX=0,this.resizeOffsetY=0,document.removeEventListener(`mousemove`,this.handleResizeMove.bind(this)),document.removeEventListener(`mouseup`,this.handleResizeEnd.bind(this)),this.mainElement.classList.remove(`resizing`);let t=this.mainElement.style.width,n=this.mainElement.style.height;(t!==this.originalWidth||n!==this.originalHeight)&&(this.hasBeenResized=!0),this.$emit(`resize`,{width:this.mainElement.offsetWidth,height:this.mainElement.offsetHeight})}get open(){return this.mainElement.hasAttribute(`open`)}get resizeIconName(){return this.hasBeenResized||this.isMaximized?`compress`:`expand`}close(){this.mainElement.close()}dismiss(){this.notification?.config?.dialog?.dismissingAction?.action&&this.notification.config.dialog.dismissingAction.action(),this.closeDialog()}closeDialog(){try{this.mainElement.close(),this.remove()}catch(e){hb.error(e)}}maximize(){this.resizable&&this.mainElement&&(this.mainElement.style.position=`fixed`,this.mainElement.style.left=`0px`,this.mainElement.style.top=`0px`,this.mainElement.style.margin=`0`,this.mainElement.style.width=`100vw`,this.mainElement.style.height=`100vh`,this.isMaximized=!0,this.hasBeenResized=!0,this.$emit(`resize`,{width:this.mainElement.offsetWidth,height:this.mainElement.offsetHeight}))}resetSize(){if(this.resizable&&this.mainElement){if(!this.hasBeenResized&&!this.isMaximized){this.maximize();return}this.mainElement.style.width=this.originalWidth,this.mainElement.style.height=this.originalHeight,this.mainElement.style.position=this.originalPosition,this.mainElement.style.left=this.originalLeft,this.mainElement.style.top=this.originalTop,this.mainElement.style.margin=this.originalMargin,this.isMaximized=!1,this.hasBeenResized=!1,this.$emit(`resize`,{width:this.mainElement.offsetWidth,height:this.mainElement.offsetHeight})}}attachDragMouseDown(){this.draggable&&this.mainElement&&(this.onMouseDownBound||(this.onMouseDownBound=this.onMouseDown.bind(this)),this.mainElement.removeEventListener(`mousedown`,this.onMouseDownBound),this.mainElement.addEventListener(`mousedown`,this.onMouseDownBound))}detachDragMouseDown(){this.onMouseDownBound&&this.mainElement&&(this.mainElement.removeEventListener(`mousedown`,this.onMouseDownBound),this.onMouseDownBound=null)}isEventTargetInDraggableTarget(e){return this.topElement?.contains(e.target)||this.isInsideTopSlot(e.target)}isInsideTopSlot(e){return this.topElementSlot?this.topElementSlot.assignedNodes().some(t=>t===e||t.contains(e)):!1}onMouseDown(e){if(!this.topElement||!this.isEventTargetInDraggableTarget(e)||this.isDragging)return;this.isDragging=!0;let t=this.mainElement.getBoundingClientRect();this.dragOffsetX=e.clientX-t.left,this.dragOffsetY=e.clientY-t.top,this.dragDialogWidth=t.width,this.dragDialogHeight=t.height,this.onMouseMoveBound=this.onMouseMove.bind(this),this.onMouseUpBound=this.onMouseUp.bind(this),document.addEventListener(`mousemove`,this.onMouseMoveBound),document.addEventListener(`mouseup`,this.onMouseUpBound)}onMouseMove(e){if(!this.isDragging||!this.mainElement)return;let t=window.innerWidth,n=window.innerHeight,r=e.clientX-this.dragOffsetX,i=e.clientY-this.dragOffsetY;r=Math.max(0,Math.min(t-this.dragDialogWidth,r)),i=Math.max(0,Math.min(n-this.dragDialogHeight,i)),requestAnimationFrame(()=>{Object.assign(this.mainElement.style,{position:`absolute`,left:`${r}px`,top:`${i}px`,margin:`0`})})}onMouseUp(){this.isDragging=!1,this.removeDraggableEventListeners()}removeDraggableEventListeners(){this.onMouseMoveBound&&(document.removeEventListener(`mousemove`,this.onMouseMoveBound),this.onMouseMoveBound=null),this.onMouseUpBound&&(document.removeEventListener(`mouseup`,this.onMouseUpBound),this.onMouseUpBound=null)}resetDraggableStyle(){this.draggable&&this.mainElement instanceof HTMLElement&&Object.assign(this.mainElement.style,{position:``,left:``,top:``,margin:``})}};q([C],g0.prototype,`notification`,void 0),q([D({attribute:`type`})],g0.prototype,`type`,void 0),q([D],g0.prototype,`position`,void 0),q([D({mode:`boolean`,attribute:`show-close-icon`})],g0.prototype,`showCloseIcon`,void 0),q([D({mode:`boolean`,attribute:`resizable`})],g0.prototype,`resizable`,void 0),q([D({mode:`boolean`})],g0.prototype,`draggable`,void 0),q([D({attribute:`min-width`})],g0.prototype,`minWidth`,void 0),q([D({attribute:`min-height`})],g0.prototype,`minHeight`,void 0),q([D({attribute:`initial-width`})],g0.prototype,`initialWidth`,void 0),q([D({attribute:`initial-height`})],g0.prototype,`initialHeight`,void 0),q([C],g0.prototype,`onShowCallback`,void 0),q([C],g0.prototype,`onCloseCallback`,void 0),q([C],g0.prototype,`isMaximized`,void 0),q([C],g0.prototype,`hasBeenResized`,void 0),q([w],g0.prototype,`open`,null),q([w],g0.prototype,`resizeIconName`,null);var _0=class extends g0{show(){this.onShowCallback&&this.onShowCallback(),this.mainElement.show()}};_0.compose(Object.assign({baseName:`dialog`,styles:$1,template:t0,shadowOptions:m0},h0));let v0=(e,t)=>Li(e,t),y0=(e,t)=>O` ${iu(e,t)}`;var b0=class extends Ri{};let x0={};b0.compose(Object.assign({baseName:`disclosure`,template:v0,styles:y0,shadowOptions:void 0},x0));let S0=(e,t)=>zi(e,t),C0=(e,t)=>O` ${ou(e,t)}`;var w0=class extends Bi{};let T0={};w0.compose(Object.assign({baseName:`divider`,template:S0,styles:C0,shadowOptions:void 0},T0));let E0=(e,t,n)=>O` :host{--dropdown-opener-height-multiplier: 0.7px;--menu-item-height-multiplier: 0.7px}.actions-menu{display: inline-flex;flex-direction: column;max-height: calc( var(--max-height) - ((var(--base-height-multiplier) + var(--density)) * var(--design-unit) * 1px) );position: absolute;z-index: 1;gap: calc(var(--design-unit) * 1px)}.hidden{display: none}.actions-opener{display: flex;justify-content: center;height: calc( (var(--base-height-multiplier) + var(--density)) * var(--design-unit) * var(--dropdown-opener-height-multiplier) );max-width: 120px}${e}-menu-item{display: flex;user-select: none}${e}-menu-item::part(content){margin-inline: 5px}${e}-menu-item::part(expand-collapse-glyph-container){margin-inline-end: 5px}${e}-menu-item::part(expand-collapse){margin-inline-start: 5px}${e}-menu-item[disabled]{pointer-events: none}${e}-icon{padding-left: 5px}.menu-item{max-height: calc( (var(--base-height-multiplier) + var(--density)) * var(--design-unit) * var(--menu-item-height-multiplier) )}`,WNe=(e,t)=>O` ${E0(`foundation`,e,t)}`,D0=(e,t)=>T` ${j(()=>e,T` ${A(e=>e.isDisabled&&e.isDisabled(),T`<${t}-menu-item class="menu-item" disabled>${e=>e.name}</${t}-menu-item>`)} ${A(e=>!e.isDisabled||!e.isDisabled(),T`<${t}-menu-item class="menu-item" @click=${e=>e.submenu?``:e.callback()}style="${e=>e.color?`color: ${e.color};`:``}">${A(e=>e.icon,T`<${t}-icon name=${e=>e.icon.name}size=${e=>e.icon.size}variant=${e=>e.icon.variant}slot="start"></${t}-icon>`)} ${e=>e.name} ${A(e=>e.submenu,T`<${t}-menu>${e=>D0(e.submenu,t)}</${t}-menu>`)}</${t}-menu-item>`)} `)} `,GNe=e=>T`<div class="actions-container" part="actions-container"><${e}-button id="actiosnMenuTrigger" class="actions-opener" appearance="${e=>e.buttonAppearance}" part="actions-opener" @click=${e=>e.toggleDropdownMenuVisibility()}:disabled=${e=>e.disabled}><slot>${e=>e.name}</slot></${e}-button><${e}-menu ${k(`dropdownMenu`)}class="actions-menu ${e=>e.classNames}" part="actions-menu">${t=>D0(t.allItems,e)}</${e}-menu></div>`,O0=T` ${e=>GNe(yb(e))} `;var k0=class extends P{constructor(){super(...arguments),this.autoClose=!0,this.disabled=!1,this.name=`Dropdown Menu`,this.open=!1,this.clickOutside=e=>this.handleClickOutside(e)}connectedCallback(){super.connectedCallback(),this.addEventListener(`onMenuClick`,this.onDropdownMenuItemClick)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener(`mousedown`,this.clickOutside)}handleClickOutside(e){_b(e,this)&&(this.open=!1)}openChanged(){this.classNames=fn([`hidden`,!this.open]),this.open?document.addEventListener(`mousedown`,this.clickOutside):document.removeEventListener(`mousedown`,this.clickOutside)}toggleDropdownMenuVisibility(){this.open=!this.open}onDropdownMenuItemClick(){this.autoClose&&(this.open=!1)}get allItems(){return this.items}};q([C],k0.prototype,`items`,void 0),q([D({attribute:`auto-close`,mode:`boolean`})],k0.prototype,`autoClose`,void 0),q([D({attribute:`disable-button`,mode:`boolean`})],k0.prototype,`disabled`,void 0),q([C],k0.prototype,`classNames`,void 0),q([D],k0.prototype,`name`,void 0),q([D({attribute:`open`,mode:`boolean`})],k0.prototype,`open`,void 0),q([D],k0.prototype,`buttonAppearance`,void 0),k0.compose({baseName:`dropdown-menu`,styles:WNe,template:O0});let A0=O` .environment-indicator{font-size: 12px;display: inline-flex;align-items: center;gap: calc(var(--design-unit) * 1.4px);border-radius: calc(var(--design-unit) * 1px);height: calc(var(--design-unit) * 6px);padding: calc(var(--design-unit) * 0.5px) calc(var(--design-unit) * 2px);line-height: 1;font-weight: 600;text-transform: uppercase}.environment-indicator.lg{border-radius: calc(var(--design-unit) * 4px);padding: calc(var(--design-unit) * 1px) calc(var(--design-unit) * 3.5px);font-size: calc(var(--design-unit) * 4px)}.environment-indicator .icon{font-size: calc(var(--design-unit) * 3px)}.environment-indicator.lg .icon{font-size: calc(var(--design-unit) * 3.5px)}`,KNe=e=>T` ${A(e=>e.config,T`<div data-test-id="environment-indicator" part="environment-indicator" class="environment-indicator ${({config:e})=>e.size}" style="${({config:e})=>`color: ${e.textColor}; background: ${e.backgroundColor}`}" aria-label="Environment indicator:${({config:e})=>e.label}" title="Environment:${({config:e})=>e.label}">${A(({config:e})=>e.showIcon&&e.icon,T`<${e}-icon name="${({config:e})=>e.icon}" size="${({config:e})=>e.iconSize}" aria-hidden="true" class="icon"></${e}-icon>`)}<span data-test-id="environment-indicator-text" aria-label="Environment label">${({config:e})=>e.label}</span></div>`)} `,j0=T` ${e=>KNe(yb(e))} `,M0=`default`,N0={level:M0,showIcon:!1,iconSize:`sm`,backgroundColor:`#2222ff`,textColor:`#ffffff`,label:`DEFAULT`},qNe=[N0,{level:`dev`,showIcon:!1,icon:`code`,backgroundColor:`#ff6b35`,label:`DEV`},{level:`prod`,showIcon:!1,icon:`check-circle`,backgroundColor:`#28a745`,label:`PROD`}],P0=Pd(),JNe=N.createInterface(e=>e.instance(P0),e=>e.instance(P0)),YNe=N.createInterface(`EnvironmentIndicatorConfig`);function XNe(){try{let e=N.getOrCreateDOMContainer().get(YNe);if(e)return e}catch{return}}let F0=kd(`EnvironmentIndicator`);var I0=class extends P{constructor(){super(...arguments),this.size=`sm`,this.textColor=`#ffffff`,this.icon=`check-circle`,this.iconSize=`sm`,this.useDefaultConfig=!1,this.config=N0,this.envConfigs=qNe}envConfigsChanged(){this.config=this.getEnvConfigByLevel()}diConfigChanged(){this.config=this.getEnvConfigByLevel()}subscribeToDiConfig(){let e=N.getOrCreateDOMContainer().get(JNe);e&&typeof e.subscribe==`function`?this.unsubscribeConfig=e.subscribe(e=>{this.diConfig=e}):F0.error(`Observer not found or invalid in DI container`)}connectedCallback(){super.connectedCallback(),this.diConfig=XNe(),this.subscribeToDiConfig(),this.config=this.getEnvConfigByLevel()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeConfig&&(this.unsubscribeConfig(),this.unsubscribeConfig=void 0)}getAttributesConfig(){let e={};return[`label`,`size`,`showIcon`,`icon`,`iconSize`,`backgroundColor`,`textColor`].filter(e=>!!this[e]).forEach(t=>{e[t]=this[t]}),e||{}}getCurrentEnvironmentLevel(){if(this.level)return this.level;if(this.diConfig)try{let{currentLevel:e}=this.diConfig;if(e)return e}catch(e){F0.error(e)}if(Tf!=="default")return Tf;if(this.useDefaultConfig)return M0}getEnvConfigByLevel(){let e=this.getAttributesConfig(),t=this.getCurrentEnvironmentLevel();if(!t)return this.useDefaultConfig?N0:void 0;if(this.label)return Object.assign(Object.assign(Object.assign({},N0),{level:t}),e);if(this.diConfig){let{configs:n}=this.diConfig;if(n&&n.length>0){let r=n.find(({level:e})=>e===t);if(r)return Object.assign(Object.assign({},r),e)}}let n=this.envConfigs.find(({level:e})=>e===t);if(n)return Object.assign(Object.assign({},n),e)}attributeChangedCallback(e,t,n){super.attributeChangedCallback(e,t,n),[`level`,`label`,`show-icon`,`icon-size`,`size`,`background-color`,`text-color`,`icon`].includes(e)&&t!==n&&(this.config=this.getEnvConfigByLevel())}setEnvConfigs(e){this.envConfigs=e}};q([D],I0.prototype,`level`,void 0),q([D],I0.prototype,`label`,void 0),q([D({mode:`boolean`,attribute:`show-icon`})],I0.prototype,`showIcon`,void 0),q([D],I0.prototype,`size`,void 0),q([D({attribute:`background-color`})],I0.prototype,`backgroundColor`,void 0),q([D({attribute:`text-color`})],I0.prototype,`textColor`,void 0),q([D],I0.prototype,`icon`,void 0),q([D({attribute:`icon-size`})],I0.prototype,`iconSize`,void 0),q([D({mode:`boolean`,attribute:`use-default-config`})],I0.prototype,`useDefaultConfig`,void 0),q([C],I0.prototype,`config`,void 0),q([C],I0.prototype,`envConfigs`,void 0),q([C],I0.prototype,`diConfig`,void 0),I0.compose({baseName:`environment-indicator`,template:j0,styles:A0});let ZNe=e=>T`<${e}-banner ${k(`banner`)}><div slot="content"><div>${e=>e.error?.errorDetails||e.notification?.body||`Place holder for error message`}</div></div><${e}-button slot="action" appearance="lightweight" @click=${e=>e.dismiss()}>${e=>e.error?.config?.banner?.dismissingAction?.label||e.notification?.config?.banner?.dismissingAction?.label||`Ignore`}</${e}-button>${j(e=>(e.error?.config)?.banner.confirmingActions||(e.notification?.config)?.banner.confirmingActions,T`<${e}-button slot="action" appearance="lightweight" @click=${(e,t)=>{var n;e?.action(),(n=t.parent)==null||n.dismiss()}}>${e=>e.label}</${e}-button>`)}</${e}-banner>`,QNe=T` ${e=>ZNe(yb(e))} `,$Ne={mode:`open`,delegatesFocus:!0};var L0=class extends P{connectedCallback(){super.connectedCallback(),hb.deprecated(`ErrorBanner`,"Use `${prefix}-banner` instead.")}dismiss(){return J(this,void 0,void 0,function*(){try{yield this.banner.dismiss(),this.remove()}catch(e){hb.error(e)}})}};q([C],L0.prototype,`error`,void 0),q([C],L0.prototype,`notification`,void 0),L0.compose({baseName:`error-banner`,template:QNe,shadowOptions:$Ne});let ePe=T`<template ${k(`errorBoundary`)}><slot></slot></template>`;var R0;(function(e){e.ERROR_BOUNDARY_EVENT=`error-boundary-event`})(R0||(R0={}));var tPe=class{withTitle(e){return this.title=e,this}withErrorDetails(e){return this.errorDetails=e,this}withLogLevel(e){return this.logLevel=e,this}withAlert(e){return this.alert=e,this}withNotification(e){return this.notification=e,this}withBanner(e){return this.banner=e,this}withSnackbar(e){return this.snackbar=e,this}withDialog(e){return this.dialog=e,this}build(){if(!this.title)throw Error(`Title is required`);if(!this.errorDetails)throw Error(`Missing required param 'errorDetails'`);let e={title:this.title,errorDetails:this.errorDetails},t={};return this.logLevel!=null&&(e=Object.assign({logLevel:this.logLevel},e)),this.alert&&(t=Object.assign({alert:this.alert},t),e=Object.assign({config:t},e)),this.notification&&(t=Object.assign({notification:this.notification},t),e=Object.assign({config:t},e)),this.banner&&(t=Object.assign({banner:this.banner},t),e=Object.assign({config:t},e)),this.snackbar&&(t=Object.assign({snackbar:this.snackbar},t),e=Object.assign({config:t},e)),this.dialog&&(t=Object.assign({dialog:this.dialog},t),e=Object.assign({config:t},e)),e}};let nPe=()=>new tPe;var rPe=class{withPosition(e){return this.position=e,this}withAutoClose(e){return this.autoClose=e,this}withCloseTimeout(e){return this.closeTimeout=e,this}withType(e){return this.type=e,this}build(){let e={};return this.position&&(e=Object.assign({position:this.position},e)),this.autoClose&&(e=Object.assign({autoClose:this.autoClose},e)),this.closeTimeout&&(e=Object.assign({closeTimeout:this.closeTimeout},e)),this.type&&(e=Object.assign({type:this.type},e)),e}};let iPe=()=>new rPe,z0=e=>`${e?.title??`Error`}: ${e?.errorDetails??`Something went wrong`}`,aPe=e=>e?.logLevel||e?.config?.logLevel||_d.error,B0=(e,t)=>{let n=t.split(`-`)[0],r=document.querySelector(`#${e}`);if(!r){r=document.createElement(`div`),r.setAttribute(`id`,e);let t=document.createElement(`${n}-design-system-provider`);t.appendChild(r),document.body.appendChild(t)}return r},oPe=e=>{for(;e&&!(e instanceof ShadowRoot);){let t=(e?.getRootNode())?.getElementById(`error-banner-anchor`);if(t)return t.style.position=`relative`,t;e=e?.getRootNode()?.host}return sPe()},sPe=()=>{let e=document.createElement(`div`);return e.setAttribute(`id`,`error-banner-anchor`),e.style.position=`relative`,document.body.insertBefore(e,document.body.firstChild),e},cPe=(e,t)=>{var n,r;let i=t.split(`-`)[0],a=B0(`notify-container`,t);if(a)switch(a.style.position=`fixed`,e?.config?.notification?.position){case`top-left`:a.style.top=`0`,a.style.left=`0`;break;case`bottom-left`:a.style.bottom=`0`,a.style.left=`0`;break;case`bottom-right`:a.style.bottom=`0`,a.style.right=`0`;break;default:a.style.top=`0`,a.style.right=`0`}let o=document.createElement(`${i}-toast`),s=document.createElement(`div`);s.setAttribute(`slot`,`top`),s.textContent=e.title??`Error`;let c=document.createElement(`div`);c.setAttribute(`slot`,`content`),c.textContent=e?.errorDetails||``;let l=document.createElement(`div`);l.setAttribute(`slot`,`date`),l.textContent=(/* @__PURE__ */ new Date()).toLocaleTimeString(),o.setAttribute(`notify`,e?.config?.notification?.type||``),(n=e?.config?.notification)!=null&&n.autoClose&&o.setAttribute(`auto-close`,`${e?.config?.notification?.autoClose}`),(r=e?.config?.notification)!=null&&r.closeTimeout&&o.setAttribute(`close-timeout`,`${e?.config?.notification?.closeTimeout}`),o.appendChild(s),o.appendChild(c),o.appendChild(l),a.appendChild(o)},lPe=(e,t,n)=>{let r=t.split(`-`)[0],i=document.createElement(`${r}-error-banner`),a=oPe(n);a?.children?.length>0&&(i.style.position=`absolute`,i.style.top=`0`,i.style.left=`0`,i.style.width=`100%`),a.appendChild(i),i.error=e},uPe=(e,t)=>{let n=t.split(`-`)[0],r=document.createElement(`${n}-error-dialog`);B0(`dialog-container`,t).appendChild(r),r.error=e,r.show()},dPe=(e,t)=>{let n=t.split(`-`)[0],r=document.createElement(`${n}-snackbar`);B0(`snack-container`,t).appendChild(r),r.error=e},fPe=kd(`foundation-error`),V0={alert:e=>{alert(z0(e))},notification:cPe,dialog:uPe,snackbar:dPe,banner:lPe},H0=(e,t,n)=>{fPe.log({message:z0(e),level:aPe(e)}),Object.keys(e?.config||{}).forEach(r=>{V0[r]&&V0[r](e,t,n)})},pPe={mode:`open`,delegatesFocus:!0};var U0=class extends P{constructor(){super(...arguments),this.logger=kd(`error-boundary`),this.closeTimeout=0}connectedCallback(){let e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});return J(this,void 0,void 0,function*(){if(e.connectedCallback.call(this),this.addEventListener(R0.ERROR_BOUNDARY_EVENT,e=>{e.stopImmediatePropagation(),H0(e.detail,this.tagName,this.errorBoundary)}),this.resourceName){if(!(yield this.datasource.init({resourceName:this.resourceName},!0))){hb.debug(`Genesis Datasource init failed for ${this.resourceName}`);return}this.dataSub=this.datasource.stream?.subscribe(e=>{if(!e.ROW)return;let t=e?.ROW[0];if(e.SEQUENCE_ID>1){let e=t.HEADER,n=t?.BODY,r=t.NOTIFY_SEVERITY;H0(nPe().withTitle(e).withErrorDetails(n).withNotification(iPe().withType(r).withAutoClose(!!this.closeTimeout).withCloseTimeout(this.closeTimeout).build()).build(),this.tagName,this.errorBoundary)}})}})}disconnectedCallback(){var e,t;super.disconnectedCallback(),(e=this.dataSub)==null||e.unsubscribe(),delete this.dataSub,(t=this.datasource)==null||t.destroy(),delete this.datasource}};q([C],U0.prototype,`errorBoundary`,void 0),q([D({attribute:`resource-name`})],U0.prototype,`resourceName`,void 0),q([D({attribute:`close-timeout`,converter:E})],U0.prototype,`closeTimeout`,void 0),q([Gy],U0.prototype,`datasource`,void 0),U0.compose({baseName:`error-boundary`,template:ePe,shadowOptions:pPe});let mPe=e=>T`<${e}-dialog show-close-icon="false" ${k(`dialog`)}><h2 slot="top" class="title">${e=>e.error?.title}</h2><div class="details">${e=>e.error?.errorDetails||e.notification?.body||`Place holder for error message`}</div><${e}-button slot="bottom" appearance="lightweight" @click=${e=>{e.dismiss()}}>${e=>e.error?.config?.dialog?.dismissingAction?.label||e.notification?.config?.dialog?.dismissingAction?.label||`Ignore`}</${e}-button>${j(e=>(e.error?.config)?.dialog.confirmingActions||(e.notification?.config)?.dialog.confirmingActions,T`<${e}-button slot="bottom" appearance="lightweight" @click=${(e,t)=>{e?.action(),t.parent.closeDialog()}}>${e=>e.label}</${e}-button>`)}</${e}-dialog>`,hPe=T` ${e=>mPe(yb(e))} `,gPe=O` :host{--design-unit: 3;--dialog-max-width: 358px;--dialog-min-width: 358px;--dialog-max-height: 128px;--error-details-min-height: 40px}.title{margin-top: calc(var(--design-unit) * 2px);font-size: 14px}.details{font-size: 12px;overflow: hidden;min-height: var(--error-details-min-height)}`,_Pe={mode:`open`,delegatesFocus:!0};var W0=class extends P{connectedCallback(){super.connectedCallback(),hb.deprecated(`ErrorDialog`,"Use `${prefix}-dialog` instead.")}show(){this.dialog.show()}dismiss(){this.error?.config?.dialog?.dismissingAction?.action&&this.error.config.dialog.dismissingAction.action(),this.notification?.config?.dialog?.dismissingAction?.action&&this.notification.config.dialog.dismissingAction.action(),this.closeDialog()}closeDialog(){try{this.dialog.close(),this.remove()}catch(e){hb.error(e)}}};q([C],W0.prototype,`error`,void 0),q([C],W0.prototype,`notification`,void 0),W0.compose({baseName:`error-dialog`,template:hPe,styles:gPe,shadowOptions:_Pe});function G0(e){class t extends e{constructor(){super(...arguments),this.hideAffixFromScreenReader=!1}get controlAriaDescribedby(){let e=this.ariaDescribedby?.trim(),t=[];if(e&&t.push(...e.split(/\s+/).filter(Boolean)),!this.hideAffixFromScreenReader){let e=this.id||`control`;this.prefix&&t.push(`${e}-prefix`),this.suffix&&t.push(`${e}-suffix`)}let n=/* @__PURE__ */ new Set,r=[];for(let e of t)n.has(e)||(n.add(e),r.push(e));return r.join(` `)||void 0}}return q([D],t.prototype,`prefix`,void 0),q([D],t.prototype,`suffix`,void 0),q([D({attribute:`hide-affix-from-screen-reader`,mode:`boolean`})],t.prototype,`hideAffixFromScreenReader`,void 0),t}let K0=`--alert-flash-t`,q0=`alert-flash-clock`,J0=!1;function vPe(){if(!(J0||typeof document>`u`)){J0=!0;try{CSS.registerProperty({name:K0,syntax:`<number>`,inherits:!0,initialValue:`0`});let e=new CSSStyleSheet;e.replaceSync(`
867
+ `,MNe=O` ${ro(`flex`)} :host{flex: 1}`,NNe=O` :host{background-color: ${ET}}`.withBehaviors(eo(O` :host{background-color: ${F.ButtonFace};box-shadow: 0 0 0 1px ${F.CanvasText};color: ${F.ButtonText}}`)),Z1=(e,t)=>O` ${e.name} ${`h`+t}{margin: 0}`,PNe=e=>O` ${Z1(e,`1`)} ${Z1(e,`2`)} ${Z1(e,`3`)} ${Z1(e,`4`)} ${Z1(e,`5`)} ${Z1(e,`6`)}`,FNe=e=>{let t=PNe(e);return t.addStylesTo(document),O` ${MNe} ${NNe} ${t} :host *{${jNe()}}`};var Q1=class extends K{constructor(){super(),this.luminancePersistence=new mT(this),gT(AT,jT,this)}connectedCallback(){super.connectedCallback(),this.luminancePersistence.connect(this.persistLuminance)}disconnectedCallback(){super.disconnectedCallback(),this.luminancePersistence.disconnect()}persistLuminanceChanged(){var e;(e=this.luminancePersistence)==null||e.setPersist(this.persistLuminance)}};q([D({attribute:`persist-luminance`,mode:`boolean`})],Q1.prototype,`persistLuminance`,void 0),q([D({attribute:`card-fill-color`,converter:vT}),_T(DT)],Q1.prototype,`cardFillColor`,void 0),q([D({attribute:`card-foreground-color`,converter:vT}),_T(kT)],Q1.prototype,`cardForegroundColor`,void 0),Q1.compose({baseName:`design-system-provider`,template:T`<slot></slot>`,styles:FNe});let $1=O` :host{--dialog-close-icon-display: flex;--dialog-min-width: 358px;--notification-details-min-height: 40px}dialog[type='error'], dialog[type='alert'], dialog[type='success']{padding: calc(var(--design-unit) * 2px) calc(var(--design-unit) * 4px) calc(var(--design-unit) * 2px) calc(var(--design-unit) * 6px)}dialog[type='error']::before, dialog[type='alert']::before, dialog[type='success']::before{content: '';position: absolute;top: 50%;transform: translateY(-50%);left: calc(var(--design-unit) * 3px - 2px);height: calc(100% - (var(--design-unit) * 4px));width: 4px;border-radius: 2px}dialog[type='error']::before{background-color: var(--error-color)}dialog[type='alert']::before{background-color: var(--warning-color)}dialog[type='success']::before{background-color: var(--success-color)}.header-controls{display: flex;gap: calc(var(--design-unit) * 1px);align-items: center}:host([draggable])::part(top){cursor: move}.close-icon{display: var(--dialog-close-icon-display)}.reset-size-icon{display: flex}dialog{background-color: var(--dialog-background, var(--fill-color));padding: calc(var(--design-unit) * 3px);outline: none;overflow: inherit;/* The inner element is position:fixed, so it is never CLIPPED — but an 'auto' default leaves it in the normal paint tree at its tree position, where any later-in-DOM sibling paints over it (e.g. a non-modal dialog inside one FlexLayout tile disappears under the tiles below). 1001 clears app headers (999) and FlexLayout's drag chrome (1000) while staying under Flyout (2000/2001). Modal is unaffected: showModal() puts it in the top layer, above all of this. */ z-index: var(--dialog-z-index, 1001)}:host([position='left']) dialog{margin-left: 0}:host([position='right']) dialog{margin-right: 0}.top{display: flex;justify-content: space-between;align-items: center;gap: calc(var(--design-unit) * 2px)}.title{margin-top: calc(var(--design-unit) * 2px);font-size: 14px}.details{font-size: 12px;overflow: hidden;min-height: var(--notification-details-min-height);white-space: pre-line}.content-container{box-sizing: border-box}/* Non-resizable: keep the dialog inside the UA modal max-height clamp and scroll the default slot */ :host(:not([resizable])) dialog[open]{display: flex;flex-direction: column}:host(:not([resizable])) dialog .content-wrapper{display: flex;flex-direction: column;max-height: var(--dialog-max-height, 100%);min-height: var(--dialog-min-height, 0)}/* Slotted content keeps the flex-item layout it had as a direct child of .content-wrapper */ :host(:not([resizable])) .content-container{flex: 1 1 auto;display: flex;flex-direction: column;justify-content: inherit;align-items: inherit;gap: inherit;min-height: 0}:host(:not([resizable])) .content-container ::slotted(*){flex-shrink: 0}/* Scroll only when needed: a scroll container clips absolutely positioned popups (select listboxes) */ :host(:not([resizable])) .content-container.overflowing{overflow: auto}:host(:not([resizable])) .top, :host(:not([resizable])) .bottom{flex: 0 0 auto}:host([resizable]) dialog{position: relative;box-sizing: border-box;max-width: 100%;max-height: 100%}:host([resizable]) dialog[open]{display: flex;flex-direction: column}/* Override design system max-width constraints for resizable dialogs */ :host([resizable]) dialog .content-wrapper{position: relative;height: 100%;width: 100%;max-height: 100%;min-width: 100%;max-width: 100%;resize: none;box-sizing: border-box;display: flex;flex-direction: column;overflow: hidden}:host([resizable]) .content-container{flex: 1 1 auto;overflow: auto;min-height: 0;box-sizing: border-box}:host([resizable]) .top, :host([resizable]) .bottom{flex: 0 0 auto}:host([position='right']) dialog .content-wrapper, :host([position='left']) dialog .content-wrapper, :host([position='left']) dialog, :host([position='right']) dialog{height: 100%}/* Resize handles */ .resize-handle{position: absolute;z-index: 10}/* Edge handles */ .resize-handle-n, .resize-handle-s{left: 0;right: 0;height: 8px;cursor: ns-resize}.resize-handle-n{top: 0}.resize-handle-s{bottom: 0}.resize-handle-e, .resize-handle-w{top: 0;bottom: 0;width: 8px;cursor: ew-resize}.resize-handle-e{right: 0}.resize-handle-w{left: 0}/* Corner handles */ .resize-handle-ne, .resize-handle-nw, .resize-handle-se, .resize-handle-sw{width: 16px;height: 16px}.resize-handle-ne{top: 0;right: 0;cursor: nesw-resize}.resize-handle-nw{top: 0;left: 0;cursor: nwse-resize}.resize-handle-se{bottom: 0;right: 0;cursor: nwse-resize}.resize-handle-sw{bottom: 0;left: 0;cursor: nesw-resize}/* Visual indicator for corner handles */ .resize-handle-se::after, .resize-handle-sw::after, .resize-handle-ne::after, .resize-handle-nw::after{content: '';position: absolute;width: 8px;height: 8px;border-style: solid;border-color: var(--neutral-stroke-divider-rest);opacity: 50%;transition: opacity 0.2s;margin: 2px}.resize-handle-se::after{bottom: 2px;right: 2px;border-width: 0 3px 3px 0}.resize-handle-sw::after{bottom: 2px;left: 2px;border-width: 0 0 3px 3px}.resize-handle-ne::after{top: 2px;right: 2px;border-width: 3px 3px 0 0}.resize-handle-nw::after{top: 2px;left: 2px;border-width: 3px 0 0 3px}/* Hover effect */ .resize-handle:hover::after{opacity: 100%}/* Resizing state */ dialog.resizing{user-select: none;pointer-events: auto}/* Fixed positioning support for resizable dialogs */ dialog[style*='position: fixed']{margin: 0}`,INe=T`<slot ${k(`contentSlot`)}>${A(e=>e.notification,T`<div class="details">${e=>e.notification?.body||`Place holder for notification message`}</div>`)}</slot>`,LNe=e=>T`<dialog ${k(`mainElement`)}part="dialog" type=${e=>e.type}><div class="content-wrapper" part="content"><div part="top" class="top" ${k(`topElement`)}><slot name="top" ${k(`topElementSlot`)}><h2 slot="top" class="title">${e=>e.notification?.title}</h2></slot><div class="header-controls">${A(e=>e.resizable,T`<${e}-button class="reset-size-icon" part="reset-size-icon" aria-label="reset size" appearance="stealth" @click=${e=>e.resetSize()}><${e}-icon name="${e=>e.resizeIconName}"></${e}-icon></${e}-button>`)} ${A(e=>e.showCloseIcon,T`<${e}-button class="close-icon" part="close-icon" aria-label="close" appearance="stealth" @click=${e=>e.close()}><${e}-icon name="times" size="lg"></${e}-icon></${e}-button>`)}</div></div><div class="content-container" part="content-container" ${k(`contentContainer`)}>${INe}</div><div part="bottom" class="bottom"><slot name="bottom">${A(e=>e.notification,T`<${e}-button appearance="lightweight" @click=${e=>{e.dismiss()}}>${e=>e.notification?.config?.dialog?.dismissingAction?.label||`Ignore`}</${e}-button>`)} ${j(e=>(e.notification?.config)?.dialog.confirmingActions,T`<${e}-button appearance="lightweight" @click=${(e,t)=>{e?.action(),t.parent.closeDialog()}}>${e=>e.label}</${e}-button>`)}</slot></div></div>${A(e=>e.resizable,T`<div class="resize-handle resize-handle-n" data-direction="n"></div><div class="resize-handle resize-handle-s" data-direction="s"></div><div class="resize-handle resize-handle-e" data-direction="e"></div><div class="resize-handle resize-handle-w" data-direction="w"></div><div class="resize-handle resize-handle-ne" data-direction="ne"></div><div class="resize-handle resize-handle-nw" data-direction="nw"></div><div class="resize-handle resize-handle-se" data-direction="se"></div><div class="resize-handle resize-handle-sw" data-direction="sw"></div>`)}</dialog>`,e0=T` ${e=>LNe(yb(e))} `;var t0=window.CustomEvent;(!t0||typeof t0==`object`)&&(t0=function(e,t){t=t||{};var n=document.createEvent(`CustomEvent`);return n.initCustomEvent(e,!!t.bubbles,!!t.cancelable,t.detail||null),n},t0.prototype=window.Event.prototype);function n0(e,t){var n=`on`+t.type.toLowerCase();return typeof e[n]==`function`&&e[n](t),e.dispatchEvent(t)}function RNe(e){for(;e&&e!==document.body;){var t=window.getComputedStyle(e),n=function(e,n){return t[e]!==void 0&&t[e]!==n};if(t.opacity<1||n(`zIndex`,`auto`)||n(`transform`,`none`)||n(`mixBlendMode`,`normal`)||n(`filter`,`none`)||n(`perspective`,`none`)||t.isolation===`isolate`||t.position===`fixed`||t.webkitOverflowScrolling===`touch`)return!0;e=e.parentElement}return!1}function r0(e){for(;e;){if(e.localName===`dialog`)return e;e=e.parentElement?e.parentElement:e.parentNode?e.parentNode.host:null}return null}function i0(e){for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;e&&e.blur&&e!==document.body&&e.blur()}function zNe(e,t){for(var n=0;n<e.length;++n)if(e[n]===t)return!0;return!1}function a0(e){return!e||!e.hasAttribute(`method`)?!1:e.getAttribute(`method`).toLowerCase()===`dialog`}function o0(e){var t=[`button`,`input`,`keygen`,`select`,`textarea`].map(function(e){return e+`:not([disabled])`});t.push(`[tabindex]:not([disabled]):not([tabindex=""])`);var n=e.querySelector(t.join(`, `));if(!n&&`attachShadow`in Element.prototype)for(var r=e.querySelectorAll(`*`),i=0;i<r.length&&!(r[i].tagName&&r[i].shadowRoot&&(n=o0(r[i].shadowRoot),n));i++);return n}function s0(e){return e.isConnected||document.body.contains(e)}function c0(e){if(e.submitter)return e.submitter;var t=e.target;if(!(t instanceof HTMLFormElement))return null;var n=u0.formSubmitter;if(!n){var r=e.target;n=(`getRootNode`in r&&r.getRootNode()||document).activeElement}return!n||n.form!==t?null:n}function BNe(e){if(!e.defaultPrevented){var t=e.target,n=u0.imagemapUseValue,r=c0(e);n===null&&r&&(n=r.value);var i=r0(t);i&&(r&&r.getAttribute(`formmethod`)||t.getAttribute(`method`))===`dialog`&&(e.preventDefault(),n==null?i.close():i.close(n))}}function l0(e){if(this.dialog_=e,this.replacedStyleTop_=!1,this.openAsModal_=!1,e.hasAttribute(`role`)||e.setAttribute(`role`,`dialog`),e.show=this.show.bind(this),e.showModal=this.showModal.bind(this),e.close=this.close.bind(this),e.addEventListener(`submit`,BNe,!1),`returnValue`in e||(e.returnValue=``),`MutationObserver`in window)new MutationObserver(this.maybeHideModal.bind(this)).observe(e,{attributes:!0,attributeFilter:[`open`]});else{var t=!1,n=function(){t?this.downgradeModal():this.maybeHideModal(),t=!1}.bind(this),r,i=function(i){if(i.target===e){var a=`DOMNodeRemoved`;t|=i.type.substr(0,a.length)===a,window.clearTimeout(r),r=window.setTimeout(n,0)}};[`DOMAttrModified`,`DOMNodeRemoved`,`DOMNodeRemovedFromDocument`].forEach(function(t){e.addEventListener(t,i)})}Object.defineProperty(e,"open",{set:this.setOpen.bind(this),get:e.hasAttribute.bind(e,`open`)}),this.backdrop_=document.createElement(`div`),this.backdrop_.className=`backdrop`,this.backdrop_.addEventListener(`mouseup`,this.backdropMouseEvent_.bind(this)),this.backdrop_.addEventListener(`mousedown`,this.backdropMouseEvent_.bind(this)),this.backdrop_.addEventListener(`click`,this.backdropMouseEvent_.bind(this))}l0.prototype={get dialog(){return this.dialog_},maybeHideModal:function(){this.dialog_.hasAttribute(`open`)&&s0(this.dialog_)||this.downgradeModal()},downgradeModal:function(){this.openAsModal_&&(this.openAsModal_=!1,this.dialog_.style.zIndex=``,this.replacedStyleTop_&&(this.dialog_.style.top=``,this.replacedStyleTop_=!1),this.backdrop_.parentNode&&this.backdrop_.parentNode.removeChild(this.backdrop_),u0.dm.removeDialog(this))},setOpen:function(e){e?this.dialog_.hasAttribute(`open`)||this.dialog_.setAttribute(`open`,``):(this.dialog_.removeAttribute(`open`),this.maybeHideModal())},backdropMouseEvent_:function(e){if(this.dialog_.hasAttribute(`tabindex`))this.dialog_.focus();else{var t=document.createElement(`div`);this.dialog_.insertBefore(t,this.dialog_.firstChild),t.tabIndex=-1,t.focus(),this.dialog_.removeChild(t)}var n=document.createEvent(`MouseEvents`);n.initMouseEvent(e.type,e.bubbles,e.cancelable,window,e.detail,e.screenX,e.screenY,e.clientX,e.clientY,e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,e.button,e.relatedTarget),this.dialog_.dispatchEvent(n),e.stopPropagation()},focus_:function(){var e=this.dialog_.querySelector(`[autofocus]:not([disabled])`);!e&&this.dialog_.tabIndex>=0&&(e=this.dialog_),e||(e=o0(this.dialog_)),i0(document.activeElement),e&&e.focus()},updateZIndex:function(e,t){if(e<t)throw Error(`dialogZ should never be < backdropZ`);this.dialog_.style.zIndex=e,this.backdrop_.style.zIndex=t},show:function(){this.dialog_.open||(this.setOpen(!0),this.focus_())},showModal:function(){if(this.dialog_.hasAttribute(`open`))throw Error(`Failed to execute 'showModal' on dialog: The element is already open, and therefore cannot be opened modally.`);if(!s0(this.dialog_))throw Error(`Failed to execute 'showModal' on dialog: The element is not in a Document.`);if(!u0.dm.pushDialog(this))throw Error(`Failed to execute 'showModal' on dialog: There are too many open modal dialogs.`);RNe(this.dialog_.parentElement)&&console.warn(`A dialog is being shown inside a stacking context. This may cause it to be unusable. For more information, see this link: https://github.com/GoogleChrome/dialog-polyfill/#stacking-context`),this.setOpen(!0),this.openAsModal_=!0,u0.needsCentering(this.dialog_)?(u0.reposition(this.dialog_),this.replacedStyleTop_=!0):this.replacedStyleTop_=!1,this.dialog_.parentNode.insertBefore(this.backdrop_,this.dialog_.nextSibling),this.focus_()},close:function(e){if(!this.dialog_.hasAttribute(`open`))throw Error(`Failed to execute 'close' on dialog: The element does not have an 'open' attribute, and therefore cannot be closed.`);this.setOpen(!1),e!==void 0&&(this.dialog_.returnValue=e);var t=new t0(`close`,{bubbles:!1,cancelable:!1});n0(this.dialog_,t)}};var u0={};if(u0.reposition=function(e){var t=document.body.scrollTop||document.documentElement.scrollTop,n=t+(window.innerHeight-e.offsetHeight)/2;e.style.top=Math.max(t,n)+`px`},u0.isInlinePositionSetByStylesheet=function(e){for(var t=0;t<document.styleSheets.length;++t){var n=document.styleSheets[t],r=null;try{r=n.cssRules}catch{}if(r)for(var i=0;i<r.length;++i){var a=r[i],o=null;try{o=document.querySelectorAll(a.selectorText)}catch{}if(o&&zNe(o,e)){var s=a.style.getPropertyValue(`top`),c=a.style.getPropertyValue(`bottom`);if(s&&s!==`auto`||c&&c!==`auto`)return!0}}}return!1},u0.needsCentering=function(e){return window.getComputedStyle(e).position!==`absolute`||e.style.top!==`auto`&&e.style.top!==``||e.style.bottom!==`auto`&&e.style.bottom!==``?!1:!u0.isInlinePositionSetByStylesheet(e)},u0.forceRegisterDialog=function(e){if((window.HTMLDialogElement||e.showModal)&&console.warn(`This browser already supports <dialog>, the polyfill may not work correctly`,e),e.localName!==`dialog`)throw Error(`Failed to register dialog: The element is not a dialog.`);new l0(e)},u0.registerDialog=function(e){e.showModal||u0.forceRegisterDialog(e)},u0.DialogManager=function(){this.pendingDialogStack=[];var e=this.checkDOM_.bind(this);this.overlay=document.createElement(`div`),this.overlay.className=`_dialog_overlay`,this.overlay.addEventListener(`click`,function(t){this.forwardTab_=void 0,t.stopPropagation(),e([])}.bind(this)),this.handleKey_=this.handleKey_.bind(this),this.handleFocus_=this.handleFocus_.bind(this),this.zIndexLow_=1e5,this.zIndexHigh_=100150,this.forwardTab_=void 0,`MutationObserver`in window&&(this.mo_=new MutationObserver(function(t){var n=[];t.forEach(function(e){for(var t=0,r;r=e.removedNodes[t];++t){if(r instanceof Element)r.localName===`dialog`&&n.push(r);else continue;n=n.concat(r.querySelectorAll(`dialog`))}}),n.length&&e(n)}))},u0.DialogManager.prototype.blockDocument=function(){document.documentElement.addEventListener(`focus`,this.handleFocus_,!0),document.addEventListener(`keydown`,this.handleKey_),this.mo_&&this.mo_.observe(document,{childList:!0,subtree:!0})},u0.DialogManager.prototype.unblockDocument=function(){document.documentElement.removeEventListener(`focus`,this.handleFocus_,!0),document.removeEventListener(`keydown`,this.handleKey_),this.mo_&&this.mo_.disconnect()},u0.DialogManager.prototype.updateStacking=function(){for(var e=this.zIndexHigh_,t=0,n;n=this.pendingDialogStack[t];++t)n.updateZIndex(--e,--e),t===0&&(this.overlay.style.zIndex=--e);var r=this.pendingDialogStack[0];r?(r.dialog.parentNode||document.body).appendChild(this.overlay):this.overlay.parentNode&&this.overlay.parentNode.removeChild(this.overlay)},u0.DialogManager.prototype.containedByTopDialog_=function(e){for(;e=r0(e);){for(var t=0,n;n=this.pendingDialogStack[t];++t)if(n.dialog===e)return t===0;e=e.parentElement}return!1},u0.DialogManager.prototype.handleFocus_=function(e){var t=e.composedPath?e.composedPath()[0]:e.target;if(!this.containedByTopDialog_(t)&&document.activeElement!==document.documentElement&&(e.preventDefault(),e.stopPropagation(),i0(t),this.forwardTab_!==void 0)){var n=this.pendingDialogStack[0];return n.dialog.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_PRECEDING&&(this.forwardTab_?n.focus_():t!==document.documentElement&&document.documentElement.focus()),!1}},u0.DialogManager.prototype.handleKey_=function(e){if(this.forwardTab_=void 0,e.keyCode===27){e.preventDefault(),e.stopPropagation();var t=new t0(`cancel`,{bubbles:!1,cancelable:!0}),n=this.pendingDialogStack[0];n&&n0(n.dialog,t)&&n.dialog.close()}else e.keyCode===9&&(this.forwardTab_=!e.shiftKey)},u0.DialogManager.prototype.checkDOM_=function(e){this.pendingDialogStack.slice().forEach(function(t){e.indexOf(t.dialog)===-1?t.maybeHideModal():t.downgradeModal()})},u0.DialogManager.prototype.pushDialog=function(e){var t=(this.zIndexHigh_-this.zIndexLow_)/2-1;return this.pendingDialogStack.length>=t?!1:(this.pendingDialogStack.unshift(e)===1&&this.blockDocument(),this.updateStacking(),!0)},u0.DialogManager.prototype.removeDialog=function(e){var t=this.pendingDialogStack.indexOf(e);t!==-1&&(this.pendingDialogStack.splice(t,1),this.pendingDialogStack.length===0&&this.unblockDocument(),this.updateStacking())},u0.dm=new u0.DialogManager,u0.formSubmitter=null,u0.imagemapUseValue=null,window.HTMLDialogElement===void 0){var d0=document.createElement(`form`);if(d0.setAttribute(`method`,`dialog`),d0.method!==`dialog`){var f0=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,`method`);if(f0){var VNe=f0.get;f0.get=function(){return a0(this)?`dialog`:VNe.call(this)};var HNe=f0.set;f0.set=function(e){return typeof e==`string`&&e.toLowerCase()===`dialog`?this.setAttribute(`method`,e):HNe.call(this,e)},Object.defineProperty(HTMLFormElement.prototype,"method",f0)}}document.addEventListener(`click`,function(e){if(u0.formSubmitter=null,u0.imagemapUseValue=null,!e.defaultPrevented){var t=e.target;if(`composedPath`in e&&(t=e.composedPath().shift()||t),t&&a0(t.form)){if(!(t.type===`submit`&&[`button`,`input`].indexOf(t.localName)>-1)){if(t.localName!==`input`||t.type!==`image`)return;u0.imagemapUseValue=e.offsetX+`,`+e.offsetY}r0(t)&&(u0.formSubmitter=t)}}},!1),document.addEventListener(`submit`,function(e){var t=e.target;if(!r0(t)){var n=c0(e);(n&&n.getAttribute(`formmethod`)||t.getAttribute(`method`))===`dialog`&&e.preventDefault()}});var UNe=HTMLFormElement.prototype.submit,WNe=function(){if(!a0(this))return UNe.call(this);var e=r0(this);e&&e.close()};HTMLFormElement.prototype.submit=WNe}let p0=e=>e.nodeType===e.ELEMENT_NODE,GNe=e=>{if(p0(e))return e.getBoundingClientRect().bottom;if(e.nodeType!==e.TEXT_NODE||!e.textContent?.trim())return-1/0;let t=document.createRange();return t.selectNodeContents(e),t.getBoundingClientRect().bottom},m0={mode:`open`,delegatesFocus:!0},h0={};var g0=class extends P{constructor(){super(...arguments),this.type=`default`,this.position=`center`,this.showCloseIcon=!0,this.resizable=!1,this.draggable=!1,this.minWidth=300,this.minHeight=200,this.isResizing=!1,this.currentResizeHandle=null,this.startX=0,this.startY=0,this.startWidth=0,this.startHeight=0,this.startLeft=0,this.startTop=0,this.resizeOffsetX=0,this.resizeOffsetY=0,this.originalWidth=``,this.originalHeight=``,this.originalPosition=``,this.originalLeft=``,this.originalTop=``,this.originalMargin=``,this.isMaximized=!1,this.hasBeenResized=!1,this.isDragging=!1,this.dragOffsetX=0,this.dragOffsetY=0,this.dragDialogWidth=0,this.dragDialogHeight=0,this.onMouseDownBound=null,this.onMouseMoveBound=null,this.onMouseUpBound=null,this.contentResizeObserver=null,this.contentTextObserver=null,this.contentOverflowFrame=null,this.onContentSlotChange=()=>{var e,t;(e=this.contentResizeObserver)==null||e.disconnect(),(t=this.contentTextObserver)==null||t.disconnect(),this.observeContentNodes()}}notificationChanged(){this.notification&&(this.showCloseIcon=!1)}draggableChanged(e,t){t?this.attachDragMouseDown():(this.detachDragMouseDown(),this.removeDraggableEventListeners())}connectedCallback(){super.connectedCallback(),window.HTMLDialogElement||u0.registerDialog(this.mainElement),this.mainElement.addEventListener(`close`,()=>{this.resetDraggableStyle(),this.onCloseCallback&&this.onCloseCallback(),this.$emit(`close`)}),this.hasAttribute(`open`)&&this.shadowRoot.querySelector(`dialog`).setAttribute(`open`,``),this.setupResizeHandlers(),this.attachDragMouseDown(),this.observeContentOverflow()}disconnectedCallback(){super.disconnectedCallback(),this.unobserveContentOverflow(),this.removeResizeHandlers(),this.detachDragMouseDown(),this.removeDraggableEventListeners()}observeContentOverflow(){typeof ResizeObserver<`u`&&this.contentContainer&&this.contentSlot&&(this.contentResizeObserver=new ResizeObserver(()=>this.scheduleContentOverflowCheck()),typeof MutationObserver<`u`&&(this.contentTextObserver=new MutationObserver(()=>this.scheduleContentOverflowCheck())),this.observeContentNodes(),this.contentSlot.addEventListener(`slotchange`,this.onContentSlotChange))}unobserveContentOverflow(){var e,t,n;(e=this.contentSlot)==null||e.removeEventListener(`slotchange`,this.onContentSlotChange),(t=this.contentResizeObserver)==null||t.disconnect(),this.contentResizeObserver=null,(n=this.contentTextObserver)==null||n.disconnect(),this.contentTextObserver=null,this.contentOverflowFrame!==null&&cancelAnimationFrame(this.contentOverflowFrame),this.contentOverflowFrame=null}observeContentNodes(){this.contentResizeObserver.observe(this.contentContainer),this.contentSlot.assignedNodes({flatten:!0}).forEach(e=>{var t;p0(e)?this.contentResizeObserver.observe(e):e.nodeType===e.TEXT_NODE&&((t=this.contentTextObserver)==null||t.observe(e,{characterData:!0}))})}scheduleContentOverflowCheck(){this.resizable||this.contentOverflowFrame!==null||(this.contentOverflowFrame=requestAnimationFrame(()=>{this.contentOverflowFrame=null,this.contentContainer.classList.toggle(`overflowing`,this.isContentOverflowing())}))}isContentOverflowing(){let e=this.contentContainer,t=e.getBoundingClientRect().top-e.scrollTop;return Math.max(t,...this.contentSlot.assignedNodes({flatten:!0}).map(GNe))-t>e.clientHeight+1}setupResizeHandlers(){if(!this.resizable)return;let e=window.innerWidth,t=window.innerHeight,n=this.minWidth,r=this.minHeight;this.initialWidth!==void 0&&(n=Math.max(this.minWidth,Math.min(this.initialWidth,e))),this.initialHeight!==void 0&&(r=Math.max(this.minHeight,Math.min(this.initialHeight,t))),this.originalWidth=this.mainElement.style.width||`${n}px`,this.originalHeight=this.mainElement.style.height||`${r}px`,this.originalPosition=this.mainElement.style.position||``,this.originalLeft=this.mainElement.style.left||``,this.originalTop=this.mainElement.style.top||``,this.originalMargin=this.mainElement.style.margin||``,this.mainElement.style.height=`${r}px`,this.mainElement.style.minHeight=`${this.minHeight}px`,this.mainElement.style.width=`${n}px`,this.mainElement.style.minWidth=`${this.minWidth}px`,this.originalWidth=this.mainElement.style.width,this.originalHeight=this.mainElement.style.height,this.shadowRoot.querySelectorAll(`.resize-handle`).forEach(e=>{e.addEventListener(`mousedown`,this.handleResizeStart.bind(this)),e.addEventListener(`dblclick`,this.handleEdgeDoubleClick.bind(this))})}removeResizeHandlers(){document.removeEventListener(`mousemove`,this.handleResizeMove.bind(this)),document.removeEventListener(`mouseup`,this.handleResizeEnd.bind(this)),(this.shadowRoot?.querySelectorAll(`.resize-handle`))?.forEach(e=>{e.removeEventListener(`dblclick`,this.handleEdgeDoubleClick.bind(this))})}handleEdgeDoubleClick(e){if(!this.resizable)return;e.preventDefault(),e.stopPropagation();let t=e.target.dataset.direction;if(![`n`,`s`,`e`,`w`].includes(t))return;let n=this.mainElement.getBoundingClientRect(),r=window.innerWidth,i=window.innerHeight;switch(this.mainElement.style.position=`fixed`,this.mainElement.style.margin=`0`,t){case`n`:this.mainElement.style.height=`${n.bottom}px`,this.mainElement.style.top=`0px`;break;case`s`:this.mainElement.style.height=`${i-n.top}px`;break;case`e`:this.mainElement.style.width=`${r-n.left}px`;break;case`w`:this.mainElement.style.width=`${n.right}px`,this.mainElement.style.left=`0px`}this.hasBeenResized=!0,this.$emit(`resize`,{width:this.mainElement.offsetWidth,height:this.mainElement.offsetHeight})}handleResizeStart(e){if(!this.resizable)return;e.preventDefault(),e.stopPropagation(),this.isResizing=!0;let t=e.target;this.currentResizeHandle=t.dataset.direction,this.startX=e.clientX,this.startY=e.clientY;let n=this.mainElement.getBoundingClientRect();switch(this.startWidth=n.width,this.startHeight=n.height,this.startLeft=n.left,this.startTop=n.top,this.resizeOffsetX=0,this.resizeOffsetY=0,this.currentResizeHandle){case`n`:this.resizeOffsetY=e.clientY-n.top;break;case`s`:this.resizeOffsetY=e.clientY-n.bottom;break;case`e`:this.resizeOffsetX=e.clientX-n.right;break;case`w`:this.resizeOffsetX=e.clientX-n.left;break;case`ne`:this.resizeOffsetX=e.clientX-n.right,this.resizeOffsetY=e.clientY-n.top;break;case`nw`:this.resizeOffsetX=e.clientX-n.left,this.resizeOffsetY=e.clientY-n.top;break;case`se`:this.resizeOffsetX=e.clientX-n.right,this.resizeOffsetY=e.clientY-n.bottom;break;case`sw`:this.resizeOffsetX=e.clientX-n.left,this.resizeOffsetY=e.clientY-n.bottom}this.mainElement.style.position=`fixed`,this.mainElement.style.left=`${n.left}px`,this.mainElement.style.top=`${n.top}px`,this.mainElement.style.margin=`0`,document.addEventListener(`mousemove`,this.handleResizeMove.bind(this)),document.addEventListener(`mouseup`,this.handleResizeEnd.bind(this)),this.mainElement.classList.add(`resizing`)}handleResizeMove(e){if(!this.isResizing||!this.currentResizeHandle)return;e.preventDefault();let t=e.clientX-this.startX-this.resizeOffsetX,n=e.clientY-this.startY-this.resizeOffsetY,r=this.startWidth,i=this.startHeight,a=this.startLeft,o=this.startTop,s=!1;switch(this.currentResizeHandle){case`se`:r=this.startWidth+t,i=this.startHeight+n;break;case`sw`:r=this.startWidth-t,i=this.startHeight+n,a=this.startLeft+t,s=!0;break;case`ne`:r=this.startWidth+t,i=this.startHeight-n,o=this.startTop+n,s=!0;break;case`nw`:r=this.startWidth-t,i=this.startHeight-n,a=this.startLeft+t,o=this.startTop+n,s=!0;break;case`e`:r=this.startWidth+t;break;case`w`:r=this.startWidth-t,a=this.startLeft+t,s=!0;break;case`s`:i=this.startHeight+n;break;case`n`:i=this.startHeight-n,o=this.startTop+n,s=!0}let c=window.innerWidth,l=window.innerHeight;if(this.resizable){if(r<this.minWidth){let e=this.minWidth-r;r=this.minWidth,this.currentResizeHandle.includes(`w`)&&(a-=e)}if(i<this.minHeight){let e=this.minHeight-i;i=this.minHeight,this.currentResizeHandle.includes(`n`)&&(o-=e)}if(this.currentResizeHandle.includes(`e`)){let e=c-this.startLeft;r>e&&(r=e)}if(this.currentResizeHandle.includes(`s`)){let e=l-this.startTop;i>e&&(i=e)}if(this.currentResizeHandle.includes(`w`)){a<0&&(r+=a,a=0);let e=c-a;r>e&&(r=e)}if(this.currentResizeHandle.includes(`n`)){o<0&&(i+=o,o=0);let e=l-o;i>e&&(i=e)}}this.mainElement.style.width=`${r}px`,this.mainElement.style.height=`${i}px`,s&&(this.mainElement.style.left=`${a}px`,this.mainElement.style.top=`${o}px`)}handleResizeEnd(e){if(!this.isResizing)return;e.preventDefault(),this.isResizing=!1,this.currentResizeHandle=null,this.resizeOffsetX=0,this.resizeOffsetY=0,document.removeEventListener(`mousemove`,this.handleResizeMove.bind(this)),document.removeEventListener(`mouseup`,this.handleResizeEnd.bind(this)),this.mainElement.classList.remove(`resizing`);let t=this.mainElement.style.width,n=this.mainElement.style.height;(t!==this.originalWidth||n!==this.originalHeight)&&(this.hasBeenResized=!0),this.$emit(`resize`,{width:this.mainElement.offsetWidth,height:this.mainElement.offsetHeight})}get open(){return this.mainElement.hasAttribute(`open`)}get resizeIconName(){return this.hasBeenResized||this.isMaximized?`compress`:`expand`}close(){this.mainElement.close()}dismiss(){this.notification?.config?.dialog?.dismissingAction?.action&&this.notification.config.dialog.dismissingAction.action(),this.closeDialog()}closeDialog(){try{this.mainElement.close(),this.remove()}catch(e){hb.error(e)}}maximize(){this.resizable&&this.mainElement&&(this.mainElement.style.position=`fixed`,this.mainElement.style.left=`0px`,this.mainElement.style.top=`0px`,this.mainElement.style.margin=`0`,this.mainElement.style.width=`100vw`,this.mainElement.style.height=`100vh`,this.isMaximized=!0,this.hasBeenResized=!0,this.$emit(`resize`,{width:this.mainElement.offsetWidth,height:this.mainElement.offsetHeight}))}resetSize(){if(this.resizable&&this.mainElement){if(!this.hasBeenResized&&!this.isMaximized){this.maximize();return}this.mainElement.style.width=this.originalWidth,this.mainElement.style.height=this.originalHeight,this.mainElement.style.position=this.originalPosition,this.mainElement.style.left=this.originalLeft,this.mainElement.style.top=this.originalTop,this.mainElement.style.margin=this.originalMargin,this.isMaximized=!1,this.hasBeenResized=!1,this.$emit(`resize`,{width:this.mainElement.offsetWidth,height:this.mainElement.offsetHeight})}}attachDragMouseDown(){this.draggable&&this.mainElement&&(this.onMouseDownBound||(this.onMouseDownBound=this.onMouseDown.bind(this)),this.mainElement.removeEventListener(`mousedown`,this.onMouseDownBound),this.mainElement.addEventListener(`mousedown`,this.onMouseDownBound))}detachDragMouseDown(){this.onMouseDownBound&&this.mainElement&&(this.mainElement.removeEventListener(`mousedown`,this.onMouseDownBound),this.onMouseDownBound=null)}isEventTargetInDraggableTarget(e){return this.topElement?.contains(e.target)||this.isInsideTopSlot(e.target)}isInsideTopSlot(e){return this.topElementSlot?this.topElementSlot.assignedNodes().some(t=>t===e||t.contains(e)):!1}onMouseDown(e){if(!this.topElement||!this.isEventTargetInDraggableTarget(e)||this.isDragging)return;this.isDragging=!0;let t=this.mainElement.getBoundingClientRect();this.dragOffsetX=e.clientX-t.left,this.dragOffsetY=e.clientY-t.top,this.dragDialogWidth=t.width,this.dragDialogHeight=t.height,this.onMouseMoveBound=this.onMouseMove.bind(this),this.onMouseUpBound=this.onMouseUp.bind(this),document.addEventListener(`mousemove`,this.onMouseMoveBound),document.addEventListener(`mouseup`,this.onMouseUpBound)}onMouseMove(e){if(!this.isDragging||!this.mainElement)return;let t=window.innerWidth,n=window.innerHeight,r=e.clientX-this.dragOffsetX,i=e.clientY-this.dragOffsetY;r=Math.max(0,Math.min(t-this.dragDialogWidth,r)),i=Math.max(0,Math.min(n-this.dragDialogHeight,i)),requestAnimationFrame(()=>{Object.assign(this.mainElement.style,{position:`absolute`,left:`${r}px`,top:`${i}px`,margin:`0`})})}onMouseUp(){this.isDragging=!1,this.removeDraggableEventListeners()}removeDraggableEventListeners(){this.onMouseMoveBound&&(document.removeEventListener(`mousemove`,this.onMouseMoveBound),this.onMouseMoveBound=null),this.onMouseUpBound&&(document.removeEventListener(`mouseup`,this.onMouseUpBound),this.onMouseUpBound=null)}resetDraggableStyle(){this.draggable&&this.mainElement instanceof HTMLElement&&Object.assign(this.mainElement.style,{position:``,left:``,top:``,margin:``})}};q([C],g0.prototype,`notification`,void 0),q([D({attribute:`type`})],g0.prototype,`type`,void 0),q([D],g0.prototype,`position`,void 0),q([D({mode:`boolean`,attribute:`show-close-icon`})],g0.prototype,`showCloseIcon`,void 0),q([D({mode:`boolean`,attribute:`resizable`})],g0.prototype,`resizable`,void 0),q([D({mode:`boolean`})],g0.prototype,`draggable`,void 0),q([D({attribute:`min-width`})],g0.prototype,`minWidth`,void 0),q([D({attribute:`min-height`})],g0.prototype,`minHeight`,void 0),q([D({attribute:`initial-width`})],g0.prototype,`initialWidth`,void 0),q([D({attribute:`initial-height`})],g0.prototype,`initialHeight`,void 0),q([C],g0.prototype,`onShowCallback`,void 0),q([C],g0.prototype,`onCloseCallback`,void 0),q([C],g0.prototype,`isMaximized`,void 0),q([C],g0.prototype,`hasBeenResized`,void 0),q([w],g0.prototype,`open`,null),q([w],g0.prototype,`resizeIconName`,null);var _0=class extends g0{show(){this.onShowCallback&&this.onShowCallback(),this.mainElement.show()}};_0.compose(Object.assign({baseName:`dialog`,styles:$1,template:e0,shadowOptions:m0},h0));let v0=(e,t)=>Li(e,t),y0=(e,t)=>O` ${iu(e,t)}`;var b0=class extends Ri{};let x0={};b0.compose(Object.assign({baseName:`disclosure`,template:v0,styles:y0,shadowOptions:void 0},x0));let S0=(e,t)=>zi(e,t),C0=(e,t)=>O` ${ou(e,t)}`;var w0=class extends Bi{};let T0={};w0.compose(Object.assign({baseName:`divider`,template:S0,styles:C0,shadowOptions:void 0},T0));let E0=(e,t,n)=>O` :host{--dropdown-opener-height-multiplier: 0.7px;--menu-item-height-multiplier: 0.7px}.actions-menu{display: inline-flex;flex-direction: column;max-height: calc( var(--max-height) - ((var(--base-height-multiplier) + var(--density)) * var(--design-unit) * 1px) );position: absolute;z-index: 1;gap: calc(var(--design-unit) * 1px)}.hidden{display: none}.actions-opener{display: flex;justify-content: center;height: calc( (var(--base-height-multiplier) + var(--density)) * var(--design-unit) * var(--dropdown-opener-height-multiplier) );max-width: 120px}${e}-menu-item{display: flex;user-select: none}${e}-menu-item::part(content){margin-inline: 5px}${e}-menu-item::part(expand-collapse-glyph-container){margin-inline-end: 5px}${e}-menu-item::part(expand-collapse){margin-inline-start: 5px}${e}-menu-item[disabled]{pointer-events: none}${e}-icon{padding-left: 5px}.menu-item{max-height: calc( (var(--base-height-multiplier) + var(--density)) * var(--design-unit) * var(--menu-item-height-multiplier) )}`,KNe=(e,t)=>O` ${E0(`foundation`,e,t)}`,D0=(e,t)=>T` ${j(()=>e,T` ${A(e=>e.isDisabled&&e.isDisabled(),T`<${t}-menu-item class="menu-item" disabled>${e=>e.name}</${t}-menu-item>`)} ${A(e=>!e.isDisabled||!e.isDisabled(),T`<${t}-menu-item class="menu-item" @click=${e=>e.submenu?``:e.callback()}style="${e=>e.color?`color: ${e.color};`:``}">${A(e=>e.icon,T`<${t}-icon name=${e=>e.icon.name}size=${e=>e.icon.size}variant=${e=>e.icon.variant}slot="start"></${t}-icon>`)} ${e=>e.name} ${A(e=>e.submenu,T`<${t}-menu>${e=>D0(e.submenu,t)}</${t}-menu>`)}</${t}-menu-item>`)} `)} `,qNe=e=>T`<div class="actions-container" part="actions-container"><${e}-button id="actiosnMenuTrigger" class="actions-opener" appearance="${e=>e.buttonAppearance}" part="actions-opener" @click=${e=>e.toggleDropdownMenuVisibility()}:disabled=${e=>e.disabled}><slot>${e=>e.name}</slot></${e}-button><${e}-menu ${k(`dropdownMenu`)}class="actions-menu ${e=>e.classNames}" part="actions-menu">${t=>D0(t.allItems,e)}</${e}-menu></div>`,O0=T` ${e=>qNe(yb(e))} `;var k0=class extends P{constructor(){super(...arguments),this.autoClose=!0,this.disabled=!1,this.name=`Dropdown Menu`,this.open=!1,this.clickOutside=e=>this.handleClickOutside(e)}connectedCallback(){super.connectedCallback(),this.addEventListener(`onMenuClick`,this.onDropdownMenuItemClick)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener(`mousedown`,this.clickOutside)}handleClickOutside(e){_b(e,this)&&(this.open=!1)}openChanged(){this.classNames=fn([`hidden`,!this.open]),this.open?document.addEventListener(`mousedown`,this.clickOutside):document.removeEventListener(`mousedown`,this.clickOutside)}toggleDropdownMenuVisibility(){this.open=!this.open}onDropdownMenuItemClick(){this.autoClose&&(this.open=!1)}get allItems(){return this.items}};q([C],k0.prototype,`items`,void 0),q([D({attribute:`auto-close`,mode:`boolean`})],k0.prototype,`autoClose`,void 0),q([D({attribute:`disable-button`,mode:`boolean`})],k0.prototype,`disabled`,void 0),q([C],k0.prototype,`classNames`,void 0),q([D],k0.prototype,`name`,void 0),q([D({attribute:`open`,mode:`boolean`})],k0.prototype,`open`,void 0),q([D],k0.prototype,`buttonAppearance`,void 0),k0.compose({baseName:`dropdown-menu`,styles:KNe,template:O0});let A0=O` .environment-indicator{font-size: 12px;display: inline-flex;align-items: center;gap: calc(var(--design-unit) * 1.4px);border-radius: calc(var(--design-unit) * 1px);height: calc(var(--design-unit) * 6px);padding: calc(var(--design-unit) * 0.5px) calc(var(--design-unit) * 2px);line-height: 1;font-weight: 600;text-transform: uppercase}.environment-indicator.lg{border-radius: calc(var(--design-unit) * 4px);padding: calc(var(--design-unit) * 1px) calc(var(--design-unit) * 3.5px);font-size: calc(var(--design-unit) * 4px)}.environment-indicator .icon{font-size: calc(var(--design-unit) * 3px)}.environment-indicator.lg .icon{font-size: calc(var(--design-unit) * 3.5px)}`,JNe=e=>T` ${A(e=>e.config,T`<div data-test-id="environment-indicator" part="environment-indicator" class="environment-indicator ${({config:e})=>e.size}" style="${({config:e})=>`color: ${e.textColor}; background: ${e.backgroundColor}`}" aria-label="Environment indicator:${({config:e})=>e.label}" title="Environment:${({config:e})=>e.label}">${A(({config:e})=>e.showIcon&&e.icon,T`<${e}-icon name="${({config:e})=>e.icon}" size="${({config:e})=>e.iconSize}" aria-hidden="true" class="icon"></${e}-icon>`)}<span data-test-id="environment-indicator-text" aria-label="Environment label">${({config:e})=>e.label}</span></div>`)} `,j0=T` ${e=>JNe(yb(e))} `,M0=`default`,N0={level:M0,showIcon:!1,iconSize:`sm`,backgroundColor:`#2222ff`,textColor:`#ffffff`,label:`DEFAULT`},YNe=[N0,{level:`dev`,showIcon:!1,icon:`code`,backgroundColor:`#ff6b35`,label:`DEV`},{level:`prod`,showIcon:!1,icon:`check-circle`,backgroundColor:`#28a745`,label:`PROD`}],P0=Pd(),XNe=N.createInterface(e=>e.instance(P0),e=>e.instance(P0)),ZNe=N.createInterface(`EnvironmentIndicatorConfig`);function QNe(){try{let e=N.getOrCreateDOMContainer().get(ZNe);if(e)return e}catch{return}}let F0=kd(`EnvironmentIndicator`);var I0=class extends P{constructor(){super(...arguments),this.size=`sm`,this.textColor=`#ffffff`,this.icon=`check-circle`,this.iconSize=`sm`,this.useDefaultConfig=!1,this.config=N0,this.envConfigs=YNe}envConfigsChanged(){this.config=this.getEnvConfigByLevel()}diConfigChanged(){this.config=this.getEnvConfigByLevel()}subscribeToDiConfig(){let e=N.getOrCreateDOMContainer().get(XNe);e&&typeof e.subscribe==`function`?this.unsubscribeConfig=e.subscribe(e=>{this.diConfig=e}):F0.error(`Observer not found or invalid in DI container`)}connectedCallback(){super.connectedCallback(),this.diConfig=QNe(),this.subscribeToDiConfig(),this.config=this.getEnvConfigByLevel()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeConfig&&(this.unsubscribeConfig(),this.unsubscribeConfig=void 0)}getAttributesConfig(){let e={};return[`label`,`size`,`showIcon`,`icon`,`iconSize`,`backgroundColor`,`textColor`].filter(e=>!!this[e]).forEach(t=>{e[t]=this[t]}),e||{}}getCurrentEnvironmentLevel(){if(this.level)return this.level;if(this.diConfig)try{let{currentLevel:e}=this.diConfig;if(e)return e}catch(e){F0.error(e)}if(Tf!=="default")return Tf;if(this.useDefaultConfig)return M0}getEnvConfigByLevel(){let e=this.getAttributesConfig(),t=this.getCurrentEnvironmentLevel();if(!t)return this.useDefaultConfig?N0:void 0;if(this.label)return Object.assign(Object.assign(Object.assign({},N0),{level:t}),e);if(this.diConfig){let{configs:n}=this.diConfig;if(n&&n.length>0){let r=n.find(({level:e})=>e===t);if(r)return Object.assign(Object.assign({},r),e)}}let n=this.envConfigs.find(({level:e})=>e===t);if(n)return Object.assign(Object.assign({},n),e)}attributeChangedCallback(e,t,n){super.attributeChangedCallback(e,t,n),[`level`,`label`,`show-icon`,`icon-size`,`size`,`background-color`,`text-color`,`icon`].includes(e)&&t!==n&&(this.config=this.getEnvConfigByLevel())}setEnvConfigs(e){this.envConfigs=e}};q([D],I0.prototype,`level`,void 0),q([D],I0.prototype,`label`,void 0),q([D({mode:`boolean`,attribute:`show-icon`})],I0.prototype,`showIcon`,void 0),q([D],I0.prototype,`size`,void 0),q([D({attribute:`background-color`})],I0.prototype,`backgroundColor`,void 0),q([D({attribute:`text-color`})],I0.prototype,`textColor`,void 0),q([D],I0.prototype,`icon`,void 0),q([D({attribute:`icon-size`})],I0.prototype,`iconSize`,void 0),q([D({mode:`boolean`,attribute:`use-default-config`})],I0.prototype,`useDefaultConfig`,void 0),q([C],I0.prototype,`config`,void 0),q([C],I0.prototype,`envConfigs`,void 0),q([C],I0.prototype,`diConfig`,void 0),I0.compose({baseName:`environment-indicator`,template:j0,styles:A0});let $Ne=e=>T`<${e}-banner ${k(`banner`)}><div slot="content"><div>${e=>e.error?.errorDetails||e.notification?.body||`Place holder for error message`}</div></div><${e}-button slot="action" appearance="lightweight" @click=${e=>e.dismiss()}>${e=>e.error?.config?.banner?.dismissingAction?.label||e.notification?.config?.banner?.dismissingAction?.label||`Ignore`}</${e}-button>${j(e=>(e.error?.config)?.banner.confirmingActions||(e.notification?.config)?.banner.confirmingActions,T`<${e}-button slot="action" appearance="lightweight" @click=${(e,t)=>{var n;e?.action(),(n=t.parent)==null||n.dismiss()}}>${e=>e.label}</${e}-button>`)}</${e}-banner>`,ePe=T` ${e=>$Ne(yb(e))} `,tPe={mode:`open`,delegatesFocus:!0};var L0=class extends P{connectedCallback(){super.connectedCallback(),hb.deprecated(`ErrorBanner`,"Use `${prefix}-banner` instead.")}dismiss(){return J(this,void 0,void 0,function*(){try{yield this.banner.dismiss(),this.remove()}catch(e){hb.error(e)}})}};q([C],L0.prototype,`error`,void 0),q([C],L0.prototype,`notification`,void 0),L0.compose({baseName:`error-banner`,template:ePe,shadowOptions:tPe});let nPe=T`<template ${k(`errorBoundary`)}><slot></slot></template>`;var R0;(function(e){e.ERROR_BOUNDARY_EVENT=`error-boundary-event`})(R0||(R0={}));var rPe=class{withTitle(e){return this.title=e,this}withErrorDetails(e){return this.errorDetails=e,this}withLogLevel(e){return this.logLevel=e,this}withAlert(e){return this.alert=e,this}withNotification(e){return this.notification=e,this}withBanner(e){return this.banner=e,this}withSnackbar(e){return this.snackbar=e,this}withDialog(e){return this.dialog=e,this}build(){if(!this.title)throw Error(`Title is required`);if(!this.errorDetails)throw Error(`Missing required param 'errorDetails'`);let e={title:this.title,errorDetails:this.errorDetails},t={};return this.logLevel!=null&&(e=Object.assign({logLevel:this.logLevel},e)),this.alert&&(t=Object.assign({alert:this.alert},t),e=Object.assign({config:t},e)),this.notification&&(t=Object.assign({notification:this.notification},t),e=Object.assign({config:t},e)),this.banner&&(t=Object.assign({banner:this.banner},t),e=Object.assign({config:t},e)),this.snackbar&&(t=Object.assign({snackbar:this.snackbar},t),e=Object.assign({config:t},e)),this.dialog&&(t=Object.assign({dialog:this.dialog},t),e=Object.assign({config:t},e)),e}};let iPe=()=>new rPe;var aPe=class{withPosition(e){return this.position=e,this}withAutoClose(e){return this.autoClose=e,this}withCloseTimeout(e){return this.closeTimeout=e,this}withType(e){return this.type=e,this}build(){let e={};return this.position&&(e=Object.assign({position:this.position},e)),this.autoClose&&(e=Object.assign({autoClose:this.autoClose},e)),this.closeTimeout&&(e=Object.assign({closeTimeout:this.closeTimeout},e)),this.type&&(e=Object.assign({type:this.type},e)),e}};let oPe=()=>new aPe,z0=e=>`${e?.title??`Error`}: ${e?.errorDetails??`Something went wrong`}`,sPe=e=>e?.logLevel||e?.config?.logLevel||_d.error,B0=(e,t)=>{let n=t.split(`-`)[0],r=document.querySelector(`#${e}`);if(!r){r=document.createElement(`div`),r.setAttribute(`id`,e);let t=document.createElement(`${n}-design-system-provider`);t.appendChild(r),document.body.appendChild(t)}return r},cPe=e=>{for(;e&&!(e instanceof ShadowRoot);){let t=(e?.getRootNode())?.getElementById(`error-banner-anchor`);if(t)return t.style.position=`relative`,t;e=e?.getRootNode()?.host}return lPe()},lPe=()=>{let e=document.createElement(`div`);return e.setAttribute(`id`,`error-banner-anchor`),e.style.position=`relative`,document.body.insertBefore(e,document.body.firstChild),e},uPe=(e,t)=>{var n,r;let i=t.split(`-`)[0],a=B0(`notify-container`,t);if(a)switch(a.style.position=`fixed`,e?.config?.notification?.position){case`top-left`:a.style.top=`0`,a.style.left=`0`;break;case`bottom-left`:a.style.bottom=`0`,a.style.left=`0`;break;case`bottom-right`:a.style.bottom=`0`,a.style.right=`0`;break;default:a.style.top=`0`,a.style.right=`0`}let o=document.createElement(`${i}-toast`),s=document.createElement(`div`);s.setAttribute(`slot`,`top`),s.textContent=e.title??`Error`;let c=document.createElement(`div`);c.setAttribute(`slot`,`content`),c.textContent=e?.errorDetails||``;let l=document.createElement(`div`);l.setAttribute(`slot`,`date`),l.textContent=(/* @__PURE__ */ new Date()).toLocaleTimeString(),o.setAttribute(`notify`,e?.config?.notification?.type||``),(n=e?.config?.notification)!=null&&n.autoClose&&o.setAttribute(`auto-close`,`${e?.config?.notification?.autoClose}`),(r=e?.config?.notification)!=null&&r.closeTimeout&&o.setAttribute(`close-timeout`,`${e?.config?.notification?.closeTimeout}`),o.appendChild(s),o.appendChild(c),o.appendChild(l),a.appendChild(o)},dPe=(e,t,n)=>{let r=t.split(`-`)[0],i=document.createElement(`${r}-error-banner`),a=cPe(n);a?.children?.length>0&&(i.style.position=`absolute`,i.style.top=`0`,i.style.left=`0`,i.style.width=`100%`),a.appendChild(i),i.error=e},fPe=(e,t)=>{let n=t.split(`-`)[0],r=document.createElement(`${n}-error-dialog`);B0(`dialog-container`,t).appendChild(r),r.error=e,r.show()},pPe=(e,t)=>{let n=t.split(`-`)[0],r=document.createElement(`${n}-snackbar`);B0(`snack-container`,t).appendChild(r),r.error=e},mPe=kd(`foundation-error`),V0={alert:e=>{alert(z0(e))},notification:uPe,dialog:fPe,snackbar:pPe,banner:dPe},H0=(e,t,n)=>{mPe.log({message:z0(e),level:sPe(e)}),Object.keys(e?.config||{}).forEach(r=>{V0[r]&&V0[r](e,t,n)})},hPe={mode:`open`,delegatesFocus:!0};var U0=class extends P{constructor(){super(...arguments),this.logger=kd(`error-boundary`),this.closeTimeout=0}connectedCallback(){let e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});return J(this,void 0,void 0,function*(){if(e.connectedCallback.call(this),this.addEventListener(R0.ERROR_BOUNDARY_EVENT,e=>{e.stopImmediatePropagation(),H0(e.detail,this.tagName,this.errorBoundary)}),this.resourceName){if(!(yield this.datasource.init({resourceName:this.resourceName},!0))){hb.debug(`Genesis Datasource init failed for ${this.resourceName}`);return}this.dataSub=this.datasource.stream?.subscribe(e=>{if(!e.ROW)return;let t=e?.ROW[0];if(e.SEQUENCE_ID>1){let e=t.HEADER,n=t?.BODY,r=t.NOTIFY_SEVERITY;H0(iPe().withTitle(e).withErrorDetails(n).withNotification(oPe().withType(r).withAutoClose(!!this.closeTimeout).withCloseTimeout(this.closeTimeout).build()).build(),this.tagName,this.errorBoundary)}})}})}disconnectedCallback(){var e,t;super.disconnectedCallback(),(e=this.dataSub)==null||e.unsubscribe(),delete this.dataSub,(t=this.datasource)==null||t.destroy(),delete this.datasource}};q([C],U0.prototype,`errorBoundary`,void 0),q([D({attribute:`resource-name`})],U0.prototype,`resourceName`,void 0),q([D({attribute:`close-timeout`,converter:E})],U0.prototype,`closeTimeout`,void 0),q([Gy],U0.prototype,`datasource`,void 0),U0.compose({baseName:`error-boundary`,template:nPe,shadowOptions:hPe});let gPe=e=>T`<${e}-dialog show-close-icon="false" ${k(`dialog`)}><h2 slot="top" class="title">${e=>e.error?.title}</h2><div class="details">${e=>e.error?.errorDetails||e.notification?.body||`Place holder for error message`}</div><${e}-button slot="bottom" appearance="lightweight" @click=${e=>{e.dismiss()}}>${e=>e.error?.config?.dialog?.dismissingAction?.label||e.notification?.config?.dialog?.dismissingAction?.label||`Ignore`}</${e}-button>${j(e=>(e.error?.config)?.dialog.confirmingActions||(e.notification?.config)?.dialog.confirmingActions,T`<${e}-button slot="bottom" appearance="lightweight" @click=${(e,t)=>{e?.action(),t.parent.closeDialog()}}>${e=>e.label}</${e}-button>`)}</${e}-dialog>`,_Pe=T` ${e=>gPe(yb(e))} `,vPe=O` :host{--design-unit: 3;--dialog-max-width: 358px;--dialog-min-width: 358px;--dialog-max-height: 128px;--error-details-min-height: 40px}.title{margin-top: calc(var(--design-unit) * 2px);font-size: 14px}.details{font-size: 12px;overflow: hidden;min-height: var(--error-details-min-height)}`,yPe={mode:`open`,delegatesFocus:!0};var W0=class extends P{connectedCallback(){super.connectedCallback(),hb.deprecated(`ErrorDialog`,"Use `${prefix}-dialog` instead.")}show(){this.dialog.show()}dismiss(){this.error?.config?.dialog?.dismissingAction?.action&&this.error.config.dialog.dismissingAction.action(),this.notification?.config?.dialog?.dismissingAction?.action&&this.notification.config.dialog.dismissingAction.action(),this.closeDialog()}closeDialog(){try{this.dialog.close(),this.remove()}catch(e){hb.error(e)}}};q([C],W0.prototype,`error`,void 0),q([C],W0.prototype,`notification`,void 0),W0.compose({baseName:`error-dialog`,template:_Pe,styles:vPe,shadowOptions:yPe});function G0(e){class t extends e{constructor(){super(...arguments),this.hideAffixFromScreenReader=!1}get controlAriaDescribedby(){let e=this.ariaDescribedby?.trim(),t=[];if(e&&t.push(...e.split(/\s+/).filter(Boolean)),!this.hideAffixFromScreenReader){let e=this.id||`control`;this.prefix&&t.push(`${e}-prefix`),this.suffix&&t.push(`${e}-suffix`)}let n=/* @__PURE__ */ new Set,r=[];for(let e of t)n.has(e)||(n.add(e),r.push(e));return r.join(` `)||void 0}}return q([D],t.prototype,`prefix`,void 0),q([D],t.prototype,`suffix`,void 0),q([D({attribute:`hide-affix-from-screen-reader`,mode:`boolean`})],t.prototype,`hideAffixFromScreenReader`,void 0),t}let K0=`--alert-flash-t`,q0=`alert-flash-clock`,J0=!1;function bPe(){if(!(J0||typeof document>`u`)){J0=!0;try{CSS.registerProperty({name:K0,syntax:`<number>`,inherits:!0,initialValue:`0`});let e=new CSSStyleSheet;e.replaceSync(`
868
868
  @keyframes ${q0} {
869
869
  0%, 100% { ${K0}: 0; }
870
870
  50% { ${K0}: 1; }
@@ -880,15 +880,15 @@ let aL={prefix:`fas`,iconName:`0`,icon:[320,512,[],`30`,`M0 192C0 103.6 71.6 32
880
880
  animation: none;
881
881
  }
882
882
  }
883
- `),document.adoptedStyleSheets=[...document.adoptedStyleSheets??[],e]}catch{}}}var Y0=class extends P{constructor(){super(...arguments),this.selectedFile=null,this.accept=``,this.fileSizeLimitBytes=10485760,this.fileName=``,this.isProcessing=!1}handleClick(){this.fileInput.value=null,this.fileInput.click()}onInputChange(e){let t=e?.target,n=Array.from(t?.files??[]),r=n.find(e=>e.size>this.fileSizeLimitBytes);if(r){let e=`File "${r.name}" exceeds size limit of ${this.fileSizeLimitBytes} bytes`;this.showError(`File Size Error`,e),this.$emit(`error`,Error(e));return}this.onFileSelected(n)}clearSelection(){this.fileName=``,this.selectedFile=null,this.isProcessing=!1,this.fileInput&&(this.fileInput.value=``),this.onFileCleared(),this.$emit(`clear`)}getSelectedFile(){return this.selectedFile}showError(e,t){TC({title:e,body:t,config:{toast:{type:`warning`,autoClose:!0,closeTimeout:5e3}}},this.tagName)}};q([D],Y0.prototype,`label`,void 0),q([D],Y0.prototype,`accept`,void 0),q([D({attribute:`file-size-limit-bytes`})],Y0.prototype,`fileSizeLimitBytes`,void 0),q([C],Y0.prototype,`fileName`,void 0),q([C],Y0.prototype,`isProcessing`,void 0);let X0=O` .label-hidden{margin: 0}.control-field{display: flex;flex: 1 1 0%;min-width: 0;align-self: stretch;align-items: stretch}.control-field .control{flex: 1 1 auto;min-width: 0;width: auto}.prefix, .suffix{display: flex;align-items: center;flex-shrink: 0;box-sizing: border-box;padding: 0 calc(var(--design-unit) * 2px);user-select: none;white-space: nowrap;background-color: var(--neutral-fill-rest);color: var(--neutral-foreground-hint);font-size: var(--type-ramp-base-font-size);font-family: inherit;line-height: 1}.prefix{border-right: 1px solid var(--neutral-stroke-divider-rest);border-radius: calc(var(--control-corner-radius) * 1px) 0 0 calc(var(--control-corner-radius) * 1px)}.suffix{border-left: 1px solid var(--neutral-stroke-divider-rest);border-radius: 0 calc(var(--control-corner-radius) * 1px) calc(var(--control-corner-radius) * 1px) 0}:host(.has-prefix:not(.has-suffix)) .control-field .control{border-radius: 0 calc(var(--control-corner-radius) * 1px) calc(var(--control-corner-radius) * 1px) 0}:host(.has-suffix:not(.has-prefix)) .control-field .control{border-radius: calc(var(--control-corner-radius) * 1px) 0 0 calc(var(--control-corner-radius) * 1px)}:host(.has-prefix.has-suffix) .control-field .control{border-radius: 0}`,yPe=(e=`start`,t=`#879ba6`)=>`
883
+ `),document.adoptedStyleSheets=[...document.adoptedStyleSheets??[],e]}catch{}}}var Y0=class extends P{constructor(){super(...arguments),this.selectedFile=null,this.accept=``,this.fileSizeLimitBytes=10485760,this.fileName=``,this.isProcessing=!1}handleClick(){this.fileInput.value=null,this.fileInput.click()}onInputChange(e){let t=e?.target,n=Array.from(t?.files??[]),r=n.find(e=>e.size>this.fileSizeLimitBytes);if(r){let e=`File "${r.name}" exceeds size limit of ${this.fileSizeLimitBytes} bytes`;this.showError(`File Size Error`,e),this.$emit(`error`,Error(e));return}this.onFileSelected(n)}clearSelection(){this.fileName=``,this.selectedFile=null,this.isProcessing=!1,this.fileInput&&(this.fileInput.value=``),this.onFileCleared(),this.$emit(`clear`)}getSelectedFile(){return this.selectedFile}showError(e,t){TC({title:e,body:t,config:{toast:{type:`warning`,autoClose:!0,closeTimeout:5e3}}},this.tagName)}};q([D],Y0.prototype,`label`,void 0),q([D],Y0.prototype,`accept`,void 0),q([D({attribute:`file-size-limit-bytes`})],Y0.prototype,`fileSizeLimitBytes`,void 0),q([C],Y0.prototype,`fileName`,void 0),q([C],Y0.prototype,`isProcessing`,void 0);let X0=O` .label-hidden{margin: 0}.control-field{display: flex;flex: 1 1 0%;min-width: 0;align-self: stretch;align-items: stretch}.control-field .control{flex: 1 1 auto;min-width: 0;width: auto}.prefix, .suffix{display: flex;align-items: center;flex-shrink: 0;box-sizing: border-box;padding: 0 calc(var(--design-unit) * 2px);user-select: none;white-space: nowrap;background-color: var(--neutral-fill-rest);color: var(--neutral-foreground-hint);font-size: var(--type-ramp-base-font-size);font-family: inherit;line-height: 1}.prefix{border-right: 1px solid var(--neutral-stroke-divider-rest);border-radius: calc(var(--control-corner-radius) * 1px) 0 0 calc(var(--control-corner-radius) * 1px)}.suffix{border-left: 1px solid var(--neutral-stroke-divider-rest);border-radius: 0 calc(var(--control-corner-radius) * 1px) calc(var(--control-corner-radius) * 1px) 0}:host(.has-prefix:not(.has-suffix)) .control-field .control{border-radius: 0 calc(var(--control-corner-radius) * 1px) calc(var(--control-corner-radius) * 1px) 0}:host(.has-suffix:not(.has-prefix)) .control-field .control{border-radius: calc(var(--control-corner-radius) * 1px) 0 0 calc(var(--control-corner-radius) * 1px)}:host(.has-prefix.has-suffix) .control-field .control{border-radius: 0}`,xPe=(e=`start`,t=`#879ba6`)=>`
884
884
  <svg class="svg-icon" slot="${e}" width="16px" height="16px">
885
885
  <g transform="matrix(1 0 0 1 -1865 -3576 )">
886
886
  <path d="M 15.8825 14.185499999999998 L 9.697000000000001 8 L 14.825000000000001 2.872 L 15.8825 1.814499999999999 C 16.0385 1.6584999999999992 16.0385 1.4049999999999994 15.8825 1.2489999999999988 L 14.751 0.11749999999999972 C 14.594999999999999 -0.03850000000000087 14.3415 -0.03850000000000087 14.1855 0.11749999999999972 L 8 6.303000000000001 L 1.8145 0.11699999999999999 C 1.6585 -0.03900000000000059 1.4050000000000002 -0.03900000000000059 1.2489999999999999 0.11699999999999999 L 0.11699999999999999 1.2485 C -0.039000000000000014 1.4044999999999996 -0.039000000000000014 1.6579999999999995 0.11699999999999999 1.814 L 6.303000000000001 8 L 0.11699999999999999 14.185499999999998 C -0.039000000000000014 14.3415 -0.039000000000000014 14.594999999999999 0.11699999999999999 14.751000000000001 L 1.2485 15.8825 C 1.4045 16.0385 1.658 16.0385 1.814 15.8825 L 8 9.697 L 13.128 14.825 L 14.1855 15.8825 C 14.3415 16.0385 14.594999999999999 16.0385 14.751 15.8825 L 15.8825 14.751000000000001 C 16.0385 14.594999999999999 16.0385 14.3415 15.8825 14.185499999999998 Z " fill-rule="nonzero" fill="${t}" stroke="none" transform="matrix(1 0 0 1 1865 3576 )" />
887
887
  </g>
888
888
  </svg>
889
- `,bPe=(e,t,n)=>O` /* Host */ :host{display: flex;flex-direction: column;width: 100%;height: 100%;position: relative}.file-reader{display: flex;align-items: end;justify-content: start;position: relative}.file-reader > *:not(.processing-overlay){margin: 0}.file-reader > *:not(.processing-overlay):not(:last-child){margin-right: calc(var(--design-unit) * 2px)}input[type='file']{display: none}.file-name-input{flex: 1}.clear-icon{cursor: pointer}.processing-overlay{position: absolute;inset: 0;background-color: rgba(0 0 0 / 20%);display: flex;flex-direction: column;align-items: center;justify-content: center;z-index: 2}`,xPe=(e,t)=>O` ${bPe(`foundation`,e,t)}`,SPe=e=>T`<template><div class="file-reader">${A(e=>e.isProcessing,T`<div class="processing-overlay" part="processing-overlay"><${e}-progress-ring class="processing-spinner"></${e}-progress-ring></div>`)}<input type="file" ${k(`fileInput`)}@change=${(e,t)=>e.onInputChange(t.event)}:accept="${e=>e.accept}"/><${e}-text-field readOnly type="text" id="fileName" class="file-name-input" :value="${e=>e.fileName}" part="file-name-input">${e=>e.label} ${A(e=>e.fileName,T`<${e}-icon slot="end" class="clear-icon" name="xmark" part="clear-icon" @click=${e=>e.clearSelection()}></${e}-icon>`)}</${e}-text-field><${e}-button @click=${e=>e.handleClick()}part="select-file-button">
890
- Browse </${e}-button>${A(e=>e.fileName&&!e.autoProcess,T`<${e}-button @click=${e=>e.handleFileProcessing()}part="process-file-button" :disabled="${e=>!e.fileName}">Process file</${e}-button>`)}</div></template>`,CPe=T` ${e=>SPe(yb(e))} `;var Z0=class extends Y0{constructor(){super(),this.processingTimeout=null,this.autoProcess=!1,this.processingDelayMs=1e3,this.fileContent=null,this.accept=`.json,application/json`}onFileSelected(e){let t=e[0];if(t&&this.accept.includes(`json`)&&!((t?.name)?.toLowerCase())?.endsWith(`.json`)){let e=`Selected file is not a JSON file`;this.showError(`File Type Error`,e),this.$emit(`error`,/* @__PURE__ */ Error(e));return}this.selectedFile=t,this.fileName=t.name,this.autoProcess&&this.handleFileProcessing()}onFileCleared(){this.fileContent=null,this.processingTimeout&&(clearTimeout(this.processingTimeout),this.processingTimeout=null)}handleFileProcessing(){return J(this,void 0,void 0,function*(){var e;if(!this.getSelectedFile()){this.showError(`No File Selected`,`Please select a file to process`);return}this.processingTimeout&&clearTimeout(this.processingTimeout),this.isProcessing=!0;try{let t=yield this.getSelectedFile().text(),n;try{n=JSON.parse(t)}catch(e){this.showError(`Invalid JSON Format`,`The selected file contains invalid JSON`),this.$emit(`error`,e);return}this.fileContent=n,this.$emit(`file-read`,{fileName:this.fileName,content:this.fileContent,file:this.getSelectedFile()}),(e=this.onFileRead)==null||e.call(this,this.fileContent)}catch(e){this.showError(`File Processing Error`,`An error occurred while processing the file`),this.$emit(`error`,e)}finally{this.processingTimeout=window.setTimeout(()=>{this.isProcessing=!1,this.processingTimeout=null},this.processingDelayMs)}})}getFileContent(){return this.fileContent}disconnectedCallback(){super.disconnectedCallback(),this.processingTimeout&&(clearTimeout(this.processingTimeout),this.processingTimeout=null)}};q([D({attribute:`auto-process`,mode:`boolean`})],Z0.prototype,`autoProcess`,void 0),q([D({attribute:`processing-delay-ms`})],Z0.prototype,`processingDelayMs`,void 0),q([C],Z0.prototype,`fileContent`,void 0),q([C],Z0.prototype,`onFileRead`,void 0),Z0.compose({baseName:`file-reader`,styles:xPe,template:CPe});let Q0=O` /* Host */ :host{display: flex;flex-direction: column;width: 100%;height: 100%}.file-selection{display: flex;align-items: end;justify-content: start;padding-bottom: 10px}.file-selection :nth-last-child(-n + 2){margin: 0;margin-left: 10px}input[type='file']{display: none}.clear-icon{cursor: pointer}.uploader-grid{overflow-y: auto}.file-name-input{flex: 1}.download-button-container{display: flex}.download-button{height: 22px}fast-data-grid-row{align-items: center}`,$0=e=>T`<template><div class="file-selection"><input type="file" multiple ${k(`fileInput`)}@change=${(e,t)=>e.onInputChange(t.event)}:accept="${e=>e.accept}"/><${e}-text-field readOnly type="text" id="fileName" part="file-name-input" class="file-name-input" :label="${e=>e.label}" :value="${e=>e.fileName}">${e=>e.label} ${A(e=>e.fileName,T`<${e}-icon slot="end" class="clear-icon" name="xmark" @click=${e=>e.clearSelection()}></${e}-icon>`)}</${e}-text-field><${e}-button @click=${e=>e.handleClick()}part="select-file-button">Browse</${e}-button><${e}-button @click=${e=>e.handleFileUpload()}part="upload-file-button" :disabled="${e=>!e.fileName}">Upload</${e}-button></div><div class="uploader-grid"><${e}-data-grid generate-header="sticky" part="uploaded-files-grid" :rowsData="${e=>e.uploadedFilesList}" :columnDefinitions="${e=>e.filesGridColumnDefinitions}"></${e}-data-grid></div></template>`,wPe=T` ${e=>$0(yb(e))} `,TPe=e=>{let t=new FormData;return e.forEach(e=>{t.append(e.name,e)}),t},EPe=(e,t,n,r)=>{let i=new Headers;return i.append(`SESSION_AUTH_TOKEN`,n),r.post(e,{body:t,headers:i})},DPe=(e,t,n,r=`GET`,i,a,o=`rapid`)=>{let s=new Headers;s.append(`SESSION_AUTH_TOKEN`,n),fetch(e,{method:r,body:a,headers:s,credentials:`include`}).then(e=>J(void 0,void 0,void 0,function*(){if(e.ok)return e.blob();{let t=yield e.json();i&&TC({title:t?.MESSAGE_TYPE,body:t?.DETAILS?.ERROR,config:{toast:{autoClose:!0,closeTimeout:5e3,type:`warning`}}},o),hb.error(t||`An error occurred while downloading the file.`)}})).then(e=>{if(e){let n=window.URL.createObjectURL(e),r=document.createElement(`a`);r.href=n,r.download=t,document.body.appendChild(r),r.click(),r.remove(),i&&TC({title:`Success`,body:`File downloaded successfully`,config:{toast:{autoClose:!0,closeTimeout:5e3,type:`success`}}},o),hb.info(`File downloaded successfully`)}}).catch(e=>{hb.error(e)})},OPe=[`image/png`,`image/bmp`,`image/gif`,`image/jpeg`,`image/jpg`],kPe=[`text/plain`,`text/csv`],APe=[`application/vnd.ms-excel`,`application/vnd.openxmlformats-officedocument.spreadsheetml.sheet`,`application/vnd.ms-powerpoint`,`application/vnd.openxmlformats-officedocument.presentationml.presentation`,`application/msword`,`application/vnd.openxmlformats-officedocument.wordprocessingml.document`,`application/pdf`],jPe=T` ${A(e=>e.rowData,T` ${e=>e.columnDefinition.type===`DATETIME`?Of(e.rowData[e.columnDefinition.columnDataKey]):e.rowData[e.columnDefinition.columnDataKey]} `)} `;var e2=class extends Y0{constructor(){super(...arguments),this.acceptedFormats=[],this.selectedFiles=[],this.uploadedFilesResourceName=`ALL_FILE_ATTACHMENTS`,this.uploadEventName=`gwf/attachment-handler/upload`,this.gridFields=``,this.fileName=``,this.uploadedFilesList=[],this.filesGridColumnDefinitions=[]}acceptChanged(){let e=[];this.accept.length>0&&this.accept.split(`,`).forEach(t=>{t===`image/*`?e=[...e,...OPe]:t===`office/*`?e=[...e,...APe]:t===`text/*`?e=[...e,...kPe]:e.push(t)}),this.acceptedFormats=e}fieldNameChanged(){this.setupGrid()}entityIdChanged(){this.setupGrid()}connectedCallback(){let e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});return J(this,void 0,void 0,function*(){e.connectedCallback.call(this),this.filesGridColumnDefinitions?.length||this.setColumnDefs()})}setupGrid(){this.entityId!==void 0&&this.fieldName!==void 0&&(this.gridCriteria=new Pb().withExpression(new Fb().withField(this.fieldName).withValue(this.entityId).build()).build(),this.setRowData())}handleStreamRowOperation(e){let t;for(let n of e.ROW)if(n.DETAILS)switch(n.DETAILS.OPERATION){case`INSERT`:this.uploadedFilesList.unshift(n);break;case`MODIFY`:t=this.uploadedFilesList.findIndex(e=>e.FILE_ATTACHMENT_ID===n.FILE_ATTACHMENT_ID),this.uploadedFilesList.splice(t,1,n);break;case`DELETE`:t=this.uploadedFilesList.findIndex(e=>e.FILE_ATTACHMENT_ID===n.FILE_ATTACHMENT_ID),this.uploadedFilesList.splice(t,1);break;default:Y.error(`Unsupported operation type: ${n.DETAILS.OPERATION}`)}}setRowData(){return J(this,void 0,void 0,function*(){yield this.connect.stream(this.uploadedFilesResourceName,e=>{e.SEQUENCE_ID===1?this.uploadedFilesList=e.ROW??[]:this.handleStreamRowOperation(e)},e=>{Y.error(e)},{CRITERIA_MATCH:this.gridCriteria})})}setColumnDefs(){return J(this,void 0,void 0,function*(){var e;let t=yield this.connect.getMetadata(this.uploadedFilesResourceName),n=[];this.gridFields.length>0?this.gridFields.split(` `).forEach(e=>{let r=t.FIELD?.find(t=>t.NAME===e);r?n.push(this.getColumnObject(r)):e===`DOWNLOAD`&&this.downloadEventName&&n.push(this.getDownloadColumn())}):((e=t.FIELD)==null||e.forEach(e=>{n.push(this.getColumnObject(e))}),this.downloadEventName&&n.push(this.getDownloadColumn())),this.filesGridColumnDefinitions=n})}getDownloadColumn(){let e=this.tagName.toLowerCase().split(`-`)[0];return{columnDataKey:`FILE_NAME`,title:`File`,cellTemplate:T`<template><div class="download-button-container"><${e}-button class="download-button" @click="${e=>this.handleFileDownload(e.rowData)}">
891
- DOWNLOAD </${e}-button></div></template>`}}getColumnObject(e){return{columnDataKey:e.NAME,title:e.NAME.toLowerCase().split(`_`).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(` `),type:e.TYPE,cellTemplate:jPe}}handleClick(){this.fileInput.value=null,this.fileInput.click()}onFileSelected(e){let t=Array.isArray(e)?e:[e];if(t.length>0&&this.acceptedFormats.length>0){for(let e of t)if(!(this.accept.split(`,`).includes(`.msg`)&&e.name&&e.name.endsWith(`msg`))&&!this.acceptedFormats.includes(e.type)){this.showError(`File Type Error`,`Not a valid file type. Accepted Formats are ${this.accept}`);return}}this.selectedFiles=t,this.fileName=this.selectedFiles.map(e=>e.name.trim()).join(),this.$emit(`file-selected`,{files:this.selectedFiles})}onFileCleared(){this.fileName=``,this.selectedFiles=[]}handleFileUpload(){return J(this,void 0,void 0,function*(){try{let e=TPe(this.selectedFiles);e.append(this.uploadKey,this.entityId);let t=yield EPe(this.uploadEventName,e,this.session.getItem(`authToken`,`session`),this.http);if(t.ERROR){Y.error(t.ERROR),this.$emit(`errorOut`,t.ERROR);return}Y.info(t),this.$emit(`success`,t),this.clearSelection()}catch(e){this.$emit(`errorOut`,e),Y.error(e)}})}handleFileDownload(e){let t=this.tagName.toLowerCase().split(`-`)[0];DPe(this.downloadEventName(e),e.FILE_NAME,this.session.getItem(`authToken`,`session`),`GET`,!0,void 0,t)}};q([C],e2.prototype,`gridCriteria`,void 0),q([Qv],e2.prototype,`connect`,void 0),q([Eg],e2.prototype,`http`,void 0),q([Sg],e2.prototype,`session`,void 0),q([D({attribute:`uploaded-files-resource-name`})],e2.prototype,`uploadedFilesResourceName`,void 0),q([D({attribute:`upload-event-name`})],e2.prototype,`uploadEventName`,void 0),q([D({attribute:`field-name`})],e2.prototype,`fieldName`,void 0),q([D({attribute:`entity-id`})],e2.prototype,`entityId`,void 0),q([D({attribute:`upload-key`})],e2.prototype,`uploadKey`,void 0),q([D({attribute:`grid-fields`})],e2.prototype,`gridFields`,void 0),q([C],e2.prototype,`fileName`,void 0),q([C],e2.prototype,`uploadedFilesList`,void 0),q([C],e2.prototype,`filesGridColumnDefinitions`,void 0);let t2={};e2.compose(Object.assign({baseName:`file-upload`,styles:Q0,template:wPe,shadowOptions:void 0},t2));let n2=O` .filter-wrapper{border: 1px solid gray;border-radius: calc(var(--design-unit) * 2px);padding: calc(var(--design-unit) * 1px)}.close-icon{display: flex;place-content: center;align-items: center;flex-direction: column;margin: calc(var(--design-unit) * 1px);padding: calc(var(--design-unit) * 1px);border: 1px solid transparent;border-radius: calc(var(--design-unit) * 2px);cursor: pointer}.close-icon, .cloase-icon svg path{transition-property: all;transition-timing-function: linear;transition-duration: 300ms}.close-icon:hover{border-color: red;background: rgb(255 0 0 / 25%)}.close-icon:hover svg path{fill: red}.flex-row{display: flex;flex-direction: row;place-content: center space-between;align-items: center}.flex-row foundation-text-field, .flex-row foundation-select{flex: 1}`,r2=T`<div class="close-icon" @click=${e=>e.clear()}>${yPe()}</div>`,MPe=e=>T`<div class="flex-row"><div>${e=>e.label}</div>${r2}</div><div class="flex-row"><${e}-text-field ${k(`textFilterField`)}type="text" :value=${cf(e=>e.textFilter)}/></div>`,NPe=e=>T`<div class="flex-row"><div>${e=>e.label}</div>${r2}</div><div class="flex-row"><${e}-text-field ${k(`numFilterFieldMin`)}type="number" :value=${cf(e=>e.numFilterMin)}placeholder="min"></${e}-text-field><${e}-text-field ${k(`numFilterFieldMax`)}type="number" :value=${cf(e=>e.numFilterMax)}placeholder="max"></${e}-text-field></div>`,PPe=e=>T`<div class="flex-row"><div>${e=>e.label}</div>${r2}</div><div class="flex-row"><${e}-text-field ${k(`dateFilterFieldMin`)}type="date" :value=${cf(e=>e.dateFilterMin)}></${e}-text-field><${e}-text-field ${k(`dateFilterFieldMax`)}type="date" :value=${cf(e=>e.dateFilterMax)}></${e}-text-field></div>`;function i2(e){return e?.event?.target?.value??`all`}let FPe=[{name:`All`,value:`all`,selected:!0},{name:`True`,value:`true`},{name:`False`,value:`false`},{name:`N/A`,value:`null`}],IPe=e=>T`<div class="flex-row"><div>${e=>e.label}</div>${r2}</div><div class="flex-row"><${e}-select @change="${(e,t)=>e.onBooleanFilterSelection(i2(t))}}">${j(()=>FPe,T`<${e}-option value="${e=>e.value}" selected="${e=>e.selected}">${e=>e.name}</${e}-option>`)}</${e}-select></div>`,LPe=e=>T`<div class="flex-row"><div>${e=>e.label}</div>${r2}</div><div class="flex-row"><${e}-select @change="${(e,t)=>e.onEnumFilterSelection(i2(t))}}">${j(e=>e.enumFilterOptions,T`<${e}-option value="${e=>e.value}" selected="${e=>e.selected}">${e=>e.name}</${e}-option>`)}</${e}-select></div>`,RPe=(e,t)=>{switch(e.type){case`number`:return NPe(t);case`date`:return PPe(t);case`boolean`:return IPe(t);case`enum`:return LPe(t);default:return MPe(t)}},a2=e=>T`<div class="filter-wrapper">${t=>RPe(t,e)}</div>`,zPe=T` ${e=>a2(yb(e))}</div>`;var o2;(function(e){e.change=`filter-changed`,e.clear=`filter-cleared`})(o2||(o2={}));var s2=class extends P{constructor(){super(...arguments),this.type=`text`,this.textFilter=``,this.enumFilterOptions=[{name:`All`,value:`all`,selected:!0}]}textFilterChanged(e,t){if(!t?.length){this.$emit(o2.clear,{fieldName:this.fieldName,target:this.target});return}let n=`Expr.containsIgnoreCase(${this.fieldName},'${t}')`;this.$emit(o2.change,{fieldName:this.fieldName,filter:n,target:this.target})}numFilterMinChanged(e,t){this.numFilterMin=Number.isFinite(Number(t))?Number(t):void 0,this.handleNumericFilter(this.numFilterMin,this.numFilterMax)}numFilterMaxChanged(e,t){this.numFilterMax=Number.isFinite(Number(t))?Number(t):void 0,this.handleNumericFilter(this.numFilterMin,this.numFilterMax)}handleNumericFilter(e,t){if(!Number.isFinite(e)&&!Number.isFinite(t)){this.$emit(o2.clear,{fieldName:this.fieldName,target:this.target});return}let n=`${this.fieldName} >= ${e}`,r=`${this.fieldName} <= ${t}`,i=Number.isFinite(e)?Number.isFinite(t)?`(${n} && ${r})`:n:r;this.$emit(o2.change,{fieldName:this.fieldName,filter:i,target:this.target})}formatDate(e){if(Number.isFinite(e))return new Date(e).toISOString().slice(0,19).replace(/-/g,``).replace(`T`,`-`)}dateFilterMinChanged(e,t){this.dateMinMS=Date.parse(t),this.handleDateFilter(this.dateMinMS,this.dateMaxMS)}dateFilterMaxChanged(e,t){this.dateMaxMS=Date.parse(t),this.handleDateFilter(this.dateMinMS,this.dateMaxMS)}handleDateFilter(e,t){if(!Number.isFinite(e)&&!Number.isFinite(t)){this.$emit(o2.clear,{fieldName:this.fieldName});return}let n=`Expr.dateTimeIsAfter(${this.fieldName}, '${this.formatDate(e)}')`,r=`Expr.dateTimeIsBefore(${this.fieldName}, '${this.formatDate(t)}')`,i=Number.isFinite(e)?Number.isFinite(t)?`(${n} && ${r})`:n:r;this.$emit(o2.change,{fieldName:this.fieldName,filter:i,target:this.target})}connectedCallback(){if(super.connectedCallback(),this.enumOptions?.length){let e=this.enumOptions.includes(`|`)?`|`:`,`,t=this.enumOptions.split(e).map(e=>({name:e,value:e}));this.enumFilterOptions=[{name:`All`,value:`all`,selected:!0},...t]}}clear(){switch(this.type){case`number`:this.numFilterFieldMin.value=void 0,this.numFilterFieldMax.value=void 0,this.numFilterMin=void 0,this.numFilterMax=void 0;break;case`date`:this.dateFilterFieldMin.value=``,this.dateFilterFieldMax.value=``,this.dateMinMS=NaN,this.dateMaxMS=NaN;break;case`text`:this.textFilterField.value=``}this.$emit(o2.clear,{fieldName:this.fieldName,target:this.target})}onBooleanFilterSelection(e){if(!e||e===`all`){this.$emit(o2.clear,{fieldName:this.fieldName,target:this.target});return}this.$emit(o2.change,{fieldName:this.fieldName,filter:`${this.fieldName} == ${e}`,target:this.target})}onEnumFilterSelection(e){if(!e||e===`all`){this.$emit(o2.clear,{fieldName:this.fieldName,target:this.target});return}this.$emit(o2.change,{fieldName:this.fieldName,filter:`${this.fieldName} == "${e}"`,target:this.target})}};q([D],s2.prototype,`fieldName`,void 0),q([D],s2.prototype,`type`,void 0),q([D],s2.prototype,`label`,void 0),q([D],s2.prototype,`target`,void 0),q([C],s2.prototype,`textFilter`,void 0),q([C],s2.prototype,`numFilterMin`,void 0),q([C],s2.prototype,`numFilterMax`,void 0),q([C],s2.prototype,`dateFilterMin`,void 0),q([C],s2.prototype,`dateFilterMax`,void 0),q([D],s2.prototype,`enumOptions`,void 0),q([C],s2.prototype,`enumFilterOptions`,void 0),s2.compose({baseName:`filter`,template:zPe,styles:n2});let c2=(e,t)=>O` .filter-bar{background-color: #2c2f33;padding: calc(var(--design-unit) * 2px);transition: all 0.5s ease-out}.filter-grid{display: grid;grid-template-columns: repeat(3, 1fr);grid-auto-rows: minmax(64px, auto);gap: calc(var(--design-unit) * 1px);place-items: end stretch}.toggle{display: flex;justify-content: center;min-height: 20px;cursor: pointer;border-radius: calc(var(--control-corner-radius) * 1px) calc(var(--control-corner-radius) * 1px) 0 0;border-top: 2px solid;color: #f44378}.collapsed{max-height: 0;padding: 0;overflow: hidden}.toggle-collapsed{color: #48ed9c}`,BPe=e=>{switch(e){case`INT`:case`DOUBLE`:case`LONG`:return`number`;case`DATETIME`:return`date`;case`BOOLEAN`:return`boolean`;case`ENUM`:return`enum`;default:return`text`}},VPe=T`<p>Fetching metadata for ${e=>e.resource}...</p>`,HPe=e=>T` ${A(e=>e.collapsed,T`<${e}-icon name="chevron-up"></${e}-icon>`)} ${A(e=>!e.collapsed,T`<${e}-icon name="chevron-down"></${e}-icon>`)} `,l2=e=>T`<div class=${e=>fn([`toggle`,!0],[`toggle-collapsed`,e.collapsed])}@click="${e=>e.toggle()}">${HPe(e)}</div><div class=${e=>fn([`filter-bar`,!0],[`collapsed`,e.collapsed])}><div class="filter-grid" ${k(`filterGrid`)}>${j(e=>e.fields,T`<${e}-filter label="${e=>e.UI_LABEL}" target="${(e,t)=>t.parent?.target}" type="${e=>BPe(e.TYPE)}" fieldName="${e=>e.NAME}" enumOptions="${e=>e.VALID_VALUES}"></${e}-filter>`)}</div></div>`,UPe=T` ${e=>e.ready?l2(yb(e)):VPe} `;var u2=class extends P{constructor(){super(...arguments),this.columns=5,this.ready=!1,this.collapsed=!0}connectedCallback(){super.connectedCallback(),this.init()}initLabels(){let e=!1,t=[];(this===null||this===void 0?void 0:this.labels)?.length&&(t=this.labels.split(`,`)?.map(e=>e.trim()),e=this.fields?.length===t?.length);for(let n=0;n<(this.fields?.length||0);n+=1){let r=e?t[n]:this.camelCasePreserveWhitespace(this.fields[n].NAME.replace(/_/g,` `));this.fields[n].UI_LABEL=r}}camelCasePreserveWhitespace(e){return e.split(` `).map(e=>Rn(e)).join(` `)}resourceChanged(e,t){e!==t&&e?.length&&this.init()}init(){this.ready=!1,this.connect.getMetadata(this.resource).then(e=>{if(this.fields=e.FIELD,this.only?.length){let e=this.only.split(`,`).map(e=>e.trim()),t=(t,n)=>e.indexOf(t.NAME)>e.indexOf(n.NAME)?1:-1;this.fields=this.fields?.filter(t=>e.includes(t.NAME)).sort(t)}this.ready=!0}).then(()=>this.initLabels()).then(()=>window.requestAnimationFrame(()=>{this.adjustColumnStyles()})).catch(e=>hb.error(e))}adjustColumnStyles(){this.filterGrid&&(this.filterGrid.style[`grid-template-columns`]=`repeat(${this.columns}, 1fr)`)}toggle(){this.ready&&(this.collapsed=!this.collapsed)}};q([D],u2.prototype,`resource`,void 0),q([D],u2.prototype,`only`,void 0),q([D],u2.prototype,`labels`,void 0),q([D],u2.prototype,`target`,void 0),q([D],u2.prototype,`columns`,void 0),q([C],u2.prototype,`ready`,void 0),q([C],u2.prototype,`fields`,void 0),q([Qv],u2.prototype,`connect`,void 0),q([C],u2.prototype,`collapsed`,void 0),u2.compose({baseName:`filter-bar`,template:UPe,styles:c2});let WPe=T`<template><slot></slot></template>`;var d2;(function(e){e.sm=`(max-width: 640px)`,e.md=`(min-width: 641px) and (max-width: 1023px)`,e.lg=`(min-width: 1024px)`})(d2||(d2={}));let f2=e=>{let t=e?`-${e}`:``;return O` ${t&&`@media only screen and ${d2[e]} {`} :host(.spacing${t}-1x) slot{gap: calc(var(--design-unit) * 2px)}:host(.spacing${t}-2x) slot{gap: calc(var(--design-unit) * 4px)}:host(.spacing${t}-3x) slot{gap: calc(var(--design-unit) * 6px)}:host(.spacing${t}-4x) slot{gap: calc(var(--design-unit) * 8px)}:host(.spacing${t}-5x) slot{gap: calc(var(--design-unit) * 10px)}:host(.spacing${t}-6x) slot{gap: calc(var(--design-unit) * 12px)}:host(.flex${t}-column) slot{flex-direction: column}:host(.flex${t}-column-reverse) slot{flex-direction: column-reverse}:host(.flex${t}-row) slot{flex-direction: row}:host(.flex${t}-row-reverse) slot{flex-direction: row-reverse}:host(.flex${t}-wrap) slot{flex-wrap: wrap}:host(.flex${t}-wrap-reverse) slot{flex-wrap: wrap-reverse}:host(.justify${t}-start) slot{justify-content: flex-start}:host(.justify${t}-end) slot{justify-content: flex-end}:host(.justify${t}-center) slot{justify-content: center}:host(.justify${t}-between) slot{justify-content: space-between}:host(.justify${t}-around) slot{justify-content: space-around}:host(.justify${t}-evenly) slot{justify-content: space-evenly}:host(.items${t}-start) slot{align-items: flex-start}:host(.items${t}-end) slot{align-items: flex-end}:host(.items${t}-center) slot{align-items: center}:host(.items${t}-stretch) slot{align-items: stretch}:host(.items${t}-baseline) slot{align-items: baseline}:host(.content${t}-start) slot{align-content: flex-start}:host(.content${t}-end) slot{align-content: flex-end}:host(.content${t}-center) slot{align-content: center}:host(.content${t}-between) slot{align-content: space-between}:host(.content${t}-around) slot{align-content: space-around}:host(.content${t}-evenly) slot{align-content: space-evenly}${t&&`}`} `},GPe=O` :host{width: 100%;height: 100%}slot{width: 100%;height: 100%;display: flex}${f2()} ${f2(`lg`)} ${f2(`md`)} ${f2(`sm`)}`;(class extends P{}).compose(Object.assign({baseName:`flex-layout`,styles:GPe,template:WPe,shadowOptions:void 0},{}));let p2=(e,t)=>Hi(e,t),m2=(e,t)=>O` ${su(e,t)}`;var h2=class extends Ui{};let g2={next:`
889
+ `,SPe=(e,t,n)=>O` /* Host */ :host{display: flex;flex-direction: column;width: 100%;height: 100%;position: relative}.file-reader{display: flex;align-items: end;justify-content: start;position: relative}.file-reader > *:not(.processing-overlay){margin: 0}.file-reader > *:not(.processing-overlay):not(:last-child){margin-right: calc(var(--design-unit) * 2px)}input[type='file']{display: none}.file-name-input{flex: 1}.clear-icon{cursor: pointer}.processing-overlay{position: absolute;inset: 0;background-color: rgba(0 0 0 / 20%);display: flex;flex-direction: column;align-items: center;justify-content: center;z-index: 2}`,CPe=(e,t)=>O` ${SPe(`foundation`,e,t)}`,wPe=e=>T`<template><div class="file-reader">${A(e=>e.isProcessing,T`<div class="processing-overlay" part="processing-overlay"><${e}-progress-ring class="processing-spinner"></${e}-progress-ring></div>`)}<input type="file" ${k(`fileInput`)}@change=${(e,t)=>e.onInputChange(t.event)}:accept="${e=>e.accept}"/><${e}-text-field readOnly type="text" id="fileName" class="file-name-input" :value="${e=>e.fileName}" part="file-name-input">${e=>e.label} ${A(e=>e.fileName,T`<${e}-icon slot="end" class="clear-icon" name="xmark" part="clear-icon" @click=${e=>e.clearSelection()}></${e}-icon>`)}</${e}-text-field><${e}-button @click=${e=>e.handleClick()}part="select-file-button">
890
+ Browse </${e}-button>${A(e=>e.fileName&&!e.autoProcess,T`<${e}-button @click=${e=>e.handleFileProcessing()}part="process-file-button" :disabled="${e=>!e.fileName}">Process file</${e}-button>`)}</div></template>`,TPe=T` ${e=>wPe(yb(e))} `;var Z0=class extends Y0{constructor(){super(),this.processingTimeout=null,this.autoProcess=!1,this.processingDelayMs=1e3,this.fileContent=null,this.accept=`.json,application/json`}onFileSelected(e){let t=e[0];if(t&&this.accept.includes(`json`)&&!((t?.name)?.toLowerCase())?.endsWith(`.json`)){let e=`Selected file is not a JSON file`;this.showError(`File Type Error`,e),this.$emit(`error`,/* @__PURE__ */ Error(e));return}this.selectedFile=t,this.fileName=t.name,this.autoProcess&&this.handleFileProcessing()}onFileCleared(){this.fileContent=null,this.processingTimeout&&(clearTimeout(this.processingTimeout),this.processingTimeout=null)}handleFileProcessing(){return J(this,void 0,void 0,function*(){var e;if(!this.getSelectedFile()){this.showError(`No File Selected`,`Please select a file to process`);return}this.processingTimeout&&clearTimeout(this.processingTimeout),this.isProcessing=!0;try{let t=yield this.getSelectedFile().text(),n;try{n=JSON.parse(t)}catch(e){this.showError(`Invalid JSON Format`,`The selected file contains invalid JSON`),this.$emit(`error`,e);return}this.fileContent=n,this.$emit(`file-read`,{fileName:this.fileName,content:this.fileContent,file:this.getSelectedFile()}),(e=this.onFileRead)==null||e.call(this,this.fileContent)}catch(e){this.showError(`File Processing Error`,`An error occurred while processing the file`),this.$emit(`error`,e)}finally{this.processingTimeout=window.setTimeout(()=>{this.isProcessing=!1,this.processingTimeout=null},this.processingDelayMs)}})}getFileContent(){return this.fileContent}disconnectedCallback(){super.disconnectedCallback(),this.processingTimeout&&(clearTimeout(this.processingTimeout),this.processingTimeout=null)}};q([D({attribute:`auto-process`,mode:`boolean`})],Z0.prototype,`autoProcess`,void 0),q([D({attribute:`processing-delay-ms`})],Z0.prototype,`processingDelayMs`,void 0),q([C],Z0.prototype,`fileContent`,void 0),q([C],Z0.prototype,`onFileRead`,void 0),Z0.compose({baseName:`file-reader`,styles:CPe,template:TPe});let Q0=O` /* Host */ :host{display: flex;flex-direction: column;width: 100%;height: 100%}.file-selection{display: flex;align-items: end;justify-content: start;padding-bottom: 10px}.file-selection :nth-last-child(-n + 2){margin: 0;margin-left: 10px}input[type='file']{display: none}.clear-icon{cursor: pointer}.uploader-grid{overflow-y: auto}.file-name-input{flex: 1}.download-button-container{display: flex}.download-button{height: 22px}fast-data-grid-row{align-items: center}`,$0=e=>T`<template><div class="file-selection"><input type="file" multiple ${k(`fileInput`)}@change=${(e,t)=>e.onInputChange(t.event)}:accept="${e=>e.accept}"/><${e}-text-field readOnly type="text" id="fileName" part="file-name-input" class="file-name-input" :label="${e=>e.label}" :value="${e=>e.fileName}">${e=>e.label} ${A(e=>e.fileName,T`<${e}-icon slot="end" class="clear-icon" name="xmark" @click=${e=>e.clearSelection()}></${e}-icon>`)}</${e}-text-field><${e}-button @click=${e=>e.handleClick()}part="select-file-button">Browse</${e}-button><${e}-button @click=${e=>e.handleFileUpload()}part="upload-file-button" :disabled="${e=>!e.fileName}">Upload</${e}-button></div><div class="uploader-grid"><${e}-data-grid generate-header="sticky" part="uploaded-files-grid" :rowsData="${e=>e.uploadedFilesList}" :columnDefinitions="${e=>e.filesGridColumnDefinitions}"></${e}-data-grid></div></template>`,EPe=T` ${e=>$0(yb(e))} `,DPe=e=>{let t=new FormData;return e.forEach(e=>{t.append(e.name,e)}),t},OPe=(e,t,n,r)=>{let i=new Headers;return i.append(`SESSION_AUTH_TOKEN`,n),r.post(e,{body:t,headers:i})},kPe=(e,t,n,r=`GET`,i,a,o=`rapid`)=>{let s=new Headers;s.append(`SESSION_AUTH_TOKEN`,n),fetch(e,{method:r,body:a,headers:s,credentials:`include`}).then(e=>J(void 0,void 0,void 0,function*(){if(e.ok)return e.blob();{let t=yield e.json();i&&TC({title:t?.MESSAGE_TYPE,body:t?.DETAILS?.ERROR,config:{toast:{autoClose:!0,closeTimeout:5e3,type:`warning`}}},o),hb.error(t||`An error occurred while downloading the file.`)}})).then(e=>{if(e){let n=window.URL.createObjectURL(e),r=document.createElement(`a`);r.href=n,r.download=t,document.body.appendChild(r),r.click(),r.remove(),i&&TC({title:`Success`,body:`File downloaded successfully`,config:{toast:{autoClose:!0,closeTimeout:5e3,type:`success`}}},o),hb.info(`File downloaded successfully`)}}).catch(e=>{hb.error(e)})},APe=[`image/png`,`image/bmp`,`image/gif`,`image/jpeg`,`image/jpg`],jPe=[`text/plain`,`text/csv`],MPe=[`application/vnd.ms-excel`,`application/vnd.openxmlformats-officedocument.spreadsheetml.sheet`,`application/vnd.ms-powerpoint`,`application/vnd.openxmlformats-officedocument.presentationml.presentation`,`application/msword`,`application/vnd.openxmlformats-officedocument.wordprocessingml.document`,`application/pdf`],NPe=T` ${A(e=>e.rowData,T` ${e=>e.columnDefinition.type===`DATETIME`?Of(e.rowData[e.columnDefinition.columnDataKey]):e.rowData[e.columnDefinition.columnDataKey]} `)} `;var e2=class extends Y0{constructor(){super(...arguments),this.acceptedFormats=[],this.selectedFiles=[],this.uploadedFilesResourceName=`ALL_FILE_ATTACHMENTS`,this.uploadEventName=`gwf/attachment-handler/upload`,this.gridFields=``,this.fileName=``,this.uploadedFilesList=[],this.filesGridColumnDefinitions=[]}acceptChanged(){let e=[];this.accept.length>0&&this.accept.split(`,`).forEach(t=>{t===`image/*`?e=[...e,...APe]:t===`office/*`?e=[...e,...MPe]:t===`text/*`?e=[...e,...jPe]:e.push(t)}),this.acceptedFormats=e}fieldNameChanged(){this.setupGrid()}entityIdChanged(){this.setupGrid()}connectedCallback(){let e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});return J(this,void 0,void 0,function*(){e.connectedCallback.call(this),this.filesGridColumnDefinitions?.length||this.setColumnDefs()})}setupGrid(){this.entityId!==void 0&&this.fieldName!==void 0&&(this.gridCriteria=new Pb().withExpression(new Fb().withField(this.fieldName).withValue(this.entityId).build()).build(),this.setRowData())}handleStreamRowOperation(e){let t;for(let n of e.ROW)if(n.DETAILS)switch(n.DETAILS.OPERATION){case`INSERT`:this.uploadedFilesList.unshift(n);break;case`MODIFY`:t=this.uploadedFilesList.findIndex(e=>e.FILE_ATTACHMENT_ID===n.FILE_ATTACHMENT_ID),this.uploadedFilesList.splice(t,1,n);break;case`DELETE`:t=this.uploadedFilesList.findIndex(e=>e.FILE_ATTACHMENT_ID===n.FILE_ATTACHMENT_ID),this.uploadedFilesList.splice(t,1);break;default:Y.error(`Unsupported operation type: ${n.DETAILS.OPERATION}`)}}setRowData(){return J(this,void 0,void 0,function*(){yield this.connect.stream(this.uploadedFilesResourceName,e=>{e.SEQUENCE_ID===1?this.uploadedFilesList=e.ROW??[]:this.handleStreamRowOperation(e)},e=>{Y.error(e)},{CRITERIA_MATCH:this.gridCriteria})})}setColumnDefs(){return J(this,void 0,void 0,function*(){var e;let t=yield this.connect.getMetadata(this.uploadedFilesResourceName),n=[];this.gridFields.length>0?this.gridFields.split(` `).forEach(e=>{let r=t.FIELD?.find(t=>t.NAME===e);r?n.push(this.getColumnObject(r)):e===`DOWNLOAD`&&this.downloadEventName&&n.push(this.getDownloadColumn())}):((e=t.FIELD)==null||e.forEach(e=>{n.push(this.getColumnObject(e))}),this.downloadEventName&&n.push(this.getDownloadColumn())),this.filesGridColumnDefinitions=n})}getDownloadColumn(){let e=this.tagName.toLowerCase().split(`-`)[0];return{columnDataKey:`FILE_NAME`,title:`File`,cellTemplate:T`<template><div class="download-button-container"><${e}-button class="download-button" @click="${e=>this.handleFileDownload(e.rowData)}">
891
+ DOWNLOAD </${e}-button></div></template>`}}getColumnObject(e){return{columnDataKey:e.NAME,title:e.NAME.toLowerCase().split(`_`).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(` `),type:e.TYPE,cellTemplate:NPe}}handleClick(){this.fileInput.value=null,this.fileInput.click()}onFileSelected(e){let t=Array.isArray(e)?e:[e];if(t.length>0&&this.acceptedFormats.length>0){for(let e of t)if(!(this.accept.split(`,`).includes(`.msg`)&&e.name&&e.name.endsWith(`msg`))&&!this.acceptedFormats.includes(e.type)){this.showError(`File Type Error`,`Not a valid file type. Accepted Formats are ${this.accept}`);return}}this.selectedFiles=t,this.fileName=this.selectedFiles.map(e=>e.name.trim()).join(),this.$emit(`file-selected`,{files:this.selectedFiles})}onFileCleared(){this.fileName=``,this.selectedFiles=[]}handleFileUpload(){return J(this,void 0,void 0,function*(){try{let e=DPe(this.selectedFiles);e.append(this.uploadKey,this.entityId);let t=yield OPe(this.uploadEventName,e,this.session.getItem(`authToken`,`session`),this.http);if(t.ERROR){Y.error(t.ERROR),this.$emit(`errorOut`,t.ERROR);return}Y.info(t),this.$emit(`success`,t),this.clearSelection()}catch(e){this.$emit(`errorOut`,e),Y.error(e)}})}handleFileDownload(e){let t=this.tagName.toLowerCase().split(`-`)[0];kPe(this.downloadEventName(e),e.FILE_NAME,this.session.getItem(`authToken`,`session`),`GET`,!0,void 0,t)}};q([C],e2.prototype,`gridCriteria`,void 0),q([Qv],e2.prototype,`connect`,void 0),q([Eg],e2.prototype,`http`,void 0),q([Sg],e2.prototype,`session`,void 0),q([D({attribute:`uploaded-files-resource-name`})],e2.prototype,`uploadedFilesResourceName`,void 0),q([D({attribute:`upload-event-name`})],e2.prototype,`uploadEventName`,void 0),q([D({attribute:`field-name`})],e2.prototype,`fieldName`,void 0),q([D({attribute:`entity-id`})],e2.prototype,`entityId`,void 0),q([D({attribute:`upload-key`})],e2.prototype,`uploadKey`,void 0),q([D({attribute:`grid-fields`})],e2.prototype,`gridFields`,void 0),q([C],e2.prototype,`fileName`,void 0),q([C],e2.prototype,`uploadedFilesList`,void 0),q([C],e2.prototype,`filesGridColumnDefinitions`,void 0);let t2={};e2.compose(Object.assign({baseName:`file-upload`,styles:Q0,template:EPe,shadowOptions:void 0},t2));let n2=O` .filter-wrapper{border: 1px solid gray;border-radius: calc(var(--design-unit) * 2px);padding: calc(var(--design-unit) * 1px)}.close-icon{display: flex;place-content: center;align-items: center;flex-direction: column;margin: calc(var(--design-unit) * 1px);padding: calc(var(--design-unit) * 1px);border: 1px solid transparent;border-radius: calc(var(--design-unit) * 2px);cursor: pointer}.close-icon, .cloase-icon svg path{transition-property: all;transition-timing-function: linear;transition-duration: 300ms}.close-icon:hover{border-color: red;background: rgb(255 0 0 / 25%)}.close-icon:hover svg path{fill: red}.flex-row{display: flex;flex-direction: row;place-content: center space-between;align-items: center}.flex-row foundation-text-field, .flex-row foundation-select{flex: 1}`,r2=T`<div class="close-icon" @click=${e=>e.clear()}>${xPe()}</div>`,PPe=e=>T`<div class="flex-row"><div>${e=>e.label}</div>${r2}</div><div class="flex-row"><${e}-text-field ${k(`textFilterField`)}type="text" :value=${cf(e=>e.textFilter)}/></div>`,FPe=e=>T`<div class="flex-row"><div>${e=>e.label}</div>${r2}</div><div class="flex-row"><${e}-text-field ${k(`numFilterFieldMin`)}type="number" :value=${cf(e=>e.numFilterMin)}placeholder="min"></${e}-text-field><${e}-text-field ${k(`numFilterFieldMax`)}type="number" :value=${cf(e=>e.numFilterMax)}placeholder="max"></${e}-text-field></div>`,IPe=e=>T`<div class="flex-row"><div>${e=>e.label}</div>${r2}</div><div class="flex-row"><${e}-text-field ${k(`dateFilterFieldMin`)}type="date" :value=${cf(e=>e.dateFilterMin)}></${e}-text-field><${e}-text-field ${k(`dateFilterFieldMax`)}type="date" :value=${cf(e=>e.dateFilterMax)}></${e}-text-field></div>`;function i2(e){return e?.event?.target?.value??`all`}let LPe=[{name:`All`,value:`all`,selected:!0},{name:`True`,value:`true`},{name:`False`,value:`false`},{name:`N/A`,value:`null`}],RPe=e=>T`<div class="flex-row"><div>${e=>e.label}</div>${r2}</div><div class="flex-row"><${e}-select @change="${(e,t)=>e.onBooleanFilterSelection(i2(t))}}">${j(()=>LPe,T`<${e}-option value="${e=>e.value}" selected="${e=>e.selected}">${e=>e.name}</${e}-option>`)}</${e}-select></div>`,zPe=e=>T`<div class="flex-row"><div>${e=>e.label}</div>${r2}</div><div class="flex-row"><${e}-select @change="${(e,t)=>e.onEnumFilterSelection(i2(t))}}">${j(e=>e.enumFilterOptions,T`<${e}-option value="${e=>e.value}" selected="${e=>e.selected}">${e=>e.name}</${e}-option>`)}</${e}-select></div>`,BPe=(e,t)=>{switch(e.type){case`number`:return FPe(t);case`date`:return IPe(t);case`boolean`:return RPe(t);case`enum`:return zPe(t);default:return PPe(t)}},a2=e=>T`<div class="filter-wrapper">${t=>BPe(t,e)}</div>`,VPe=T` ${e=>a2(yb(e))}</div>`;var o2;(function(e){e.change=`filter-changed`,e.clear=`filter-cleared`})(o2||(o2={}));var s2=class extends P{constructor(){super(...arguments),this.type=`text`,this.textFilter=``,this.enumFilterOptions=[{name:`All`,value:`all`,selected:!0}]}textFilterChanged(e,t){if(!t?.length){this.$emit(o2.clear,{fieldName:this.fieldName,target:this.target});return}let n=`Expr.containsIgnoreCase(${this.fieldName},'${t}')`;this.$emit(o2.change,{fieldName:this.fieldName,filter:n,target:this.target})}numFilterMinChanged(e,t){this.numFilterMin=Number.isFinite(Number(t))?Number(t):void 0,this.handleNumericFilter(this.numFilterMin,this.numFilterMax)}numFilterMaxChanged(e,t){this.numFilterMax=Number.isFinite(Number(t))?Number(t):void 0,this.handleNumericFilter(this.numFilterMin,this.numFilterMax)}handleNumericFilter(e,t){if(!Number.isFinite(e)&&!Number.isFinite(t)){this.$emit(o2.clear,{fieldName:this.fieldName,target:this.target});return}let n=`${this.fieldName} >= ${e}`,r=`${this.fieldName} <= ${t}`,i=Number.isFinite(e)?Number.isFinite(t)?`(${n} && ${r})`:n:r;this.$emit(o2.change,{fieldName:this.fieldName,filter:i,target:this.target})}formatDate(e){if(Number.isFinite(e))return new Date(e).toISOString().slice(0,19).replace(/-/g,``).replace(`T`,`-`)}dateFilterMinChanged(e,t){this.dateMinMS=Date.parse(t),this.handleDateFilter(this.dateMinMS,this.dateMaxMS)}dateFilterMaxChanged(e,t){this.dateMaxMS=Date.parse(t),this.handleDateFilter(this.dateMinMS,this.dateMaxMS)}handleDateFilter(e,t){if(!Number.isFinite(e)&&!Number.isFinite(t)){this.$emit(o2.clear,{fieldName:this.fieldName});return}let n=`Expr.dateTimeIsAfter(${this.fieldName}, '${this.formatDate(e)}')`,r=`Expr.dateTimeIsBefore(${this.fieldName}, '${this.formatDate(t)}')`,i=Number.isFinite(e)?Number.isFinite(t)?`(${n} && ${r})`:n:r;this.$emit(o2.change,{fieldName:this.fieldName,filter:i,target:this.target})}connectedCallback(){if(super.connectedCallback(),this.enumOptions?.length){let e=this.enumOptions.includes(`|`)?`|`:`,`,t=this.enumOptions.split(e).map(e=>({name:e,value:e}));this.enumFilterOptions=[{name:`All`,value:`all`,selected:!0},...t]}}clear(){switch(this.type){case`number`:this.numFilterFieldMin.value=void 0,this.numFilterFieldMax.value=void 0,this.numFilterMin=void 0,this.numFilterMax=void 0;break;case`date`:this.dateFilterFieldMin.value=``,this.dateFilterFieldMax.value=``,this.dateMinMS=NaN,this.dateMaxMS=NaN;break;case`text`:this.textFilterField.value=``}this.$emit(o2.clear,{fieldName:this.fieldName,target:this.target})}onBooleanFilterSelection(e){if(!e||e===`all`){this.$emit(o2.clear,{fieldName:this.fieldName,target:this.target});return}this.$emit(o2.change,{fieldName:this.fieldName,filter:`${this.fieldName} == ${e}`,target:this.target})}onEnumFilterSelection(e){if(!e||e===`all`){this.$emit(o2.clear,{fieldName:this.fieldName,target:this.target});return}this.$emit(o2.change,{fieldName:this.fieldName,filter:`${this.fieldName} == "${e}"`,target:this.target})}};q([D],s2.prototype,`fieldName`,void 0),q([D],s2.prototype,`type`,void 0),q([D],s2.prototype,`label`,void 0),q([D],s2.prototype,`target`,void 0),q([C],s2.prototype,`textFilter`,void 0),q([C],s2.prototype,`numFilterMin`,void 0),q([C],s2.prototype,`numFilterMax`,void 0),q([C],s2.prototype,`dateFilterMin`,void 0),q([C],s2.prototype,`dateFilterMax`,void 0),q([D],s2.prototype,`enumOptions`,void 0),q([C],s2.prototype,`enumFilterOptions`,void 0),s2.compose({baseName:`filter`,template:VPe,styles:n2});let c2=(e,t)=>O` .filter-bar{background-color: #2c2f33;padding: calc(var(--design-unit) * 2px);transition: all 0.5s ease-out}.filter-grid{display: grid;grid-template-columns: repeat(3, 1fr);grid-auto-rows: minmax(64px, auto);gap: calc(var(--design-unit) * 1px);place-items: end stretch}.toggle{display: flex;justify-content: center;min-height: 20px;cursor: pointer;border-radius: calc(var(--control-corner-radius) * 1px) calc(var(--control-corner-radius) * 1px) 0 0;border-top: 2px solid;color: #f44378}.collapsed{max-height: 0;padding: 0;overflow: hidden}.toggle-collapsed{color: #48ed9c}`,HPe=e=>{switch(e){case`INT`:case`DOUBLE`:case`LONG`:return`number`;case`DATETIME`:return`date`;case`BOOLEAN`:return`boolean`;case`ENUM`:return`enum`;default:return`text`}},UPe=T`<p>Fetching metadata for ${e=>e.resource}...</p>`,WPe=e=>T` ${A(e=>e.collapsed,T`<${e}-icon name="chevron-up"></${e}-icon>`)} ${A(e=>!e.collapsed,T`<${e}-icon name="chevron-down"></${e}-icon>`)} `,l2=e=>T`<div class=${e=>fn([`toggle`,!0],[`toggle-collapsed`,e.collapsed])}@click="${e=>e.toggle()}">${WPe(e)}</div><div class=${e=>fn([`filter-bar`,!0],[`collapsed`,e.collapsed])}><div class="filter-grid" ${k(`filterGrid`)}>${j(e=>e.fields,T`<${e}-filter label="${e=>e.UI_LABEL}" target="${(e,t)=>t.parent?.target}" type="${e=>HPe(e.TYPE)}" fieldName="${e=>e.NAME}" enumOptions="${e=>e.VALID_VALUES}"></${e}-filter>`)}</div></div>`,GPe=T` ${e=>e.ready?l2(yb(e)):UPe} `;var u2=class extends P{constructor(){super(...arguments),this.columns=5,this.ready=!1,this.collapsed=!0}connectedCallback(){super.connectedCallback(),this.init()}initLabels(){let e=!1,t=[];(this===null||this===void 0?void 0:this.labels)?.length&&(t=this.labels.split(`,`)?.map(e=>e.trim()),e=this.fields?.length===t?.length);for(let n=0;n<(this.fields?.length||0);n+=1){let r=e?t[n]:this.camelCasePreserveWhitespace(this.fields[n].NAME.replace(/_/g,` `));this.fields[n].UI_LABEL=r}}camelCasePreserveWhitespace(e){return e.split(` `).map(e=>Rn(e)).join(` `)}resourceChanged(e,t){e!==t&&e?.length&&this.init()}init(){this.ready=!1,this.connect.getMetadata(this.resource).then(e=>{if(this.fields=e.FIELD,this.only?.length){let e=this.only.split(`,`).map(e=>e.trim()),t=(t,n)=>e.indexOf(t.NAME)>e.indexOf(n.NAME)?1:-1;this.fields=this.fields?.filter(t=>e.includes(t.NAME)).sort(t)}this.ready=!0}).then(()=>this.initLabels()).then(()=>window.requestAnimationFrame(()=>{this.adjustColumnStyles()})).catch(e=>hb.error(e))}adjustColumnStyles(){this.filterGrid&&(this.filterGrid.style[`grid-template-columns`]=`repeat(${this.columns}, 1fr)`)}toggle(){this.ready&&(this.collapsed=!this.collapsed)}};q([D],u2.prototype,`resource`,void 0),q([D],u2.prototype,`only`,void 0),q([D],u2.prototype,`labels`,void 0),q([D],u2.prototype,`target`,void 0),q([D],u2.prototype,`columns`,void 0),q([C],u2.prototype,`ready`,void 0),q([C],u2.prototype,`fields`,void 0),q([Qv],u2.prototype,`connect`,void 0),q([C],u2.prototype,`collapsed`,void 0),u2.compose({baseName:`filter-bar`,template:GPe,styles:c2});let KPe=T`<template><slot></slot></template>`;var d2;(function(e){e.sm=`(max-width: 640px)`,e.md=`(min-width: 641px) and (max-width: 1023px)`,e.lg=`(min-width: 1024px)`})(d2||(d2={}));let f2=e=>{let t=e?`-${e}`:``;return O` ${t&&`@media only screen and ${d2[e]} {`} :host(.spacing${t}-1x) slot{gap: calc(var(--design-unit) * 2px)}:host(.spacing${t}-2x) slot{gap: calc(var(--design-unit) * 4px)}:host(.spacing${t}-3x) slot{gap: calc(var(--design-unit) * 6px)}:host(.spacing${t}-4x) slot{gap: calc(var(--design-unit) * 8px)}:host(.spacing${t}-5x) slot{gap: calc(var(--design-unit) * 10px)}:host(.spacing${t}-6x) slot{gap: calc(var(--design-unit) * 12px)}:host(.flex${t}-column) slot{flex-direction: column}:host(.flex${t}-column-reverse) slot{flex-direction: column-reverse}:host(.flex${t}-row) slot{flex-direction: row}:host(.flex${t}-row-reverse) slot{flex-direction: row-reverse}:host(.flex${t}-wrap) slot{flex-wrap: wrap}:host(.flex${t}-wrap-reverse) slot{flex-wrap: wrap-reverse}:host(.justify${t}-start) slot{justify-content: flex-start}:host(.justify${t}-end) slot{justify-content: flex-end}:host(.justify${t}-center) slot{justify-content: center}:host(.justify${t}-between) slot{justify-content: space-between}:host(.justify${t}-around) slot{justify-content: space-around}:host(.justify${t}-evenly) slot{justify-content: space-evenly}:host(.items${t}-start) slot{align-items: flex-start}:host(.items${t}-end) slot{align-items: flex-end}:host(.items${t}-center) slot{align-items: center}:host(.items${t}-stretch) slot{align-items: stretch}:host(.items${t}-baseline) slot{align-items: baseline}:host(.content${t}-start) slot{align-content: flex-start}:host(.content${t}-end) slot{align-content: flex-end}:host(.content${t}-center) slot{align-content: center}:host(.content${t}-between) slot{align-content: space-between}:host(.content${t}-around) slot{align-content: space-around}:host(.content${t}-evenly) slot{align-content: space-evenly}${t&&`}`} `},qPe=O` :host{width: 100%;height: 100%}slot{width: 100%;height: 100%;display: flex}${f2()} ${f2(`lg`)} ${f2(`md`)} ${f2(`sm`)}`;(class extends P{}).compose(Object.assign({baseName:`flex-layout`,styles:qPe,template:KPe,shadowOptions:void 0},{}));let p2=(e,t)=>Hi(e,t),m2=(e,t)=>O` ${su(e,t)}`;var h2=class extends Ui{};let g2={next:`
892
892
  <svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
893
893
  <path
894
894
  d="M4.023 15.273L11.29 8 4.023.727l.704-.704L12.71 8l-7.984 7.977-.704-.704z"
@@ -900,7 +900,7 @@ let aL={prefix:`fas`,iconName:`0`,icon:[320,512,[],`30`,`M0 192C0 103.6 71.6 32
900
900
  d="M11.273 15.977L3.29 8 11.273.023l.704.704L4.71 8l7.266 7.273-.704.704z"
901
901
  />
902
902
  </svg>
903
- `};h2.compose(Object.assign({baseName:`flipper`,template:p2,styles:m2,shadowOptions:void 0},g2));let _2=O` /* Host */ :host{display: inline-block;height: 100vh;position: absolute;width: 100vw}:host([closed]){display: none}div.container{height: 100%;width: 100%}/* flyout */ div.flyout{background-color: white;color: black;height: 100%;position: absolute;/* stylelint-disable-next-line function-name-case */ transition: transform ${`225`}ms ease-in, width ${`225`}ms ease-in-out;width: var(--flyout-width, 20%);z-index: 2001}:host([position='left']) div.flyout{left: 0;transform: translateX(0%)}:host([position='right']) div.flyout{right: 0;transform: translateX(0%)}:host([visuallyhidden][position='left']) div.flyout{left: 0;transform: translateX(-100%)}:host([visuallyhidden][position='right']) div.flyout{right: 0;transform: translateX(100%)}div.header{display: flex;align-items: center;justify-content: space-between;color: var(--neutral-foreground-hint);font-weight: 500;padding: calc(var(--design-unit) * 2px) calc(var(--design-unit) * 3px);rapid-button{--base-height-multiplier: 8}rapid-button::part(control){padding: 0 calc((8 + var(--design-unit) * 1 * var(--density)) * 1px)}}div.title{flex-grow: 1}div.footer{bottom: 0;position: absolute;width: 100%}/* Background */ div.background{background-color: black;height: 100%;opacity: 50%;position: absolute;/* stylelint-disable-next-line function-name-case */ transition: opacity ${`225`}ms linear;width: 100%;z-index: 2000}:host([visuallyhidden]) div.background{opacity: 0%}`,v2=e=>T`<div ?closed=${e=>e.closed}?visuallyhidden=${e=>e.visuallyhidden}><div class="container"><div class="background" part="background" @click=${e=>e.closeFlyout()}></div><div class="flyout" part="flyout" @transitionend=${e=>e.closingFinished()}>${A(e=>e.displayHeader,T`<div class="header" part="header"><div class="title" part="title"><slot name="title"></slot></div><${e}-button class="exit" part="exit" aria-label="exit" ${k(`exit`)}appearance="stealth" @click=${e=>e.closeFlyout()}><${e}-icon name="times"></${e}-icon></${e}-button></div>`)}<div class="content" part="content"><slot></slot></div><div class="footer" part="footer"><slot name="footer"></slot></div></div></div></div>`,KPe=T` ${e=>v2(yb(e))} `;var y2=class extends P{constructor(){super(...arguments),this.position=`right`,this.flyoutWidth=`20%`,this.displayHeader=!0,this.closed=!0,this.visuallyhidden=!0}flyoutWidthChanged(){this.isConnected&&this.flyoutWidth!=null&&this.style.setProperty(`--flyout-width`,this.flyoutWidth)}closedChanged(){this.closed||(setTimeout(()=>this.visuallyhidden=!1,1),this.focusExit())}connectedCallback(){super.connectedCallback(),this.flyoutWidth!=null&&this.style.setProperty(`--flyout-width`,this.flyoutWidth)}closeFlyout(){this.visuallyhidden=!0}closingFinished(){this.visuallyhidden&&(this.closed=!0,this.$emit(`closed`))}focusExit(){this.exit.focus()}};q([D],y2.prototype,`position`,void 0),q([D({attribute:`flyout-width`})],y2.prototype,`flyoutWidth`,void 0),q([D({mode:`boolean`})],y2.prototype,`displayHeader`,void 0),q([D({mode:`boolean`})],y2.prototype,`closed`,void 0),q([D({mode:`boolean`})],y2.prototype,`visuallyhidden`,void 0);let b2={};y2.compose(Object.assign({baseName:`flyout`,styles:_2,template:KPe,shadowOptions:void 0},b2));let qPe=T`<template><slot></slot></template>`;var x2;(function(e){e.sm=`(max-width: 640px)`,e.md=`(min-width: 641px) and (max-width: 1023px)`,e.lg=`(min-width: 1024px)`})(x2||(x2={}));let S2=e=>{let t=e?`-${e}`:``;return O` ${t&&`@media only screen and ${x2[e]} {`} :host(.spacing${t}-1x) slot{gap: calc(var(--design-unit) * 2px)}:host(.spacing${t}-2x) slot{gap: calc(var(--design-unit) * 4px)}:host(.spacing${t}-3x) slot{gap: calc(var(--design-unit) * 6px)}:host(.spacing${t}-4x) slot{gap: calc(var(--design-unit) * 8px)}:host(.spacing${t}-5x) slot{gap: calc(var(--design-unit) * 10px)}:host(.spacing${t}-6x) slot{gap: calc(var(--design-unit) * 12px)}:host(.flow${t}-row) slot{grid-auto-flow: row}:host(.flow${t}-column) slot{grid-auto-flow: column}:host(.flow${t}-row-dense) slot{grid-auto-flow: row dense}:host(.flow${t}-column-dense) slot{grid-auto-flow: column dense}:host(.content${t}-center) slot{place-content: center}:host(.content${t}-start) slot{place-content: start}:host(.content${t}-end) slot{place-content: end}:host(.content${t}-between) slot{place-content: space-between}:host(.content${t}-around) slot{place-content: space-around}:host(.content${t}-evenly) slot{place-content: space-evenly}:host(.content${t}-stretch) slot{place-content: stretch}:host(.place${t}-items-start) slot{place-items: start}:host(.place${t}-items-end) slot{place-items: end}:host(.place${t}-items-center) slot{place-items: center}:host(.place${t}-items-stretch) slot{place-items: stretch}${t&&`}`} `},JPe=O` slot{width: 100%;height: 100%;display: grid}${S2()} ${S2(`lg`)} ${S2(`md`)} ${S2(`sm`)}`,YPe={};var XPe=class{constructor(e,t,n,r=`1fr`,i=`1fr`){this.listenerCache=/* @__PURE__ */ new WeakMap,this.query=window.matchMedia(e);let a=t&&rt`grid-template-columns: repeat(${t}, ${r});`,o=n&&rt`grid-template-rows: repeat(${n}, ${i});`;this.styles=O` slot{${o||``} ${a||``}}`}bind(e){let t=!1,n=n=>{let{matches:r}=n;r&&!t?(e.$fastController.addStyles(this.styles),t=!0):!r&&t&&(this.styles&&e.$fastController.removeStyles(this.styles),t=!1)};n({matches:this.query.matches}),this.query.addEventListener(`change`,n),this.listenerCache.set(e,n)}unbind(e){let t=this.listenerCache.get(e);t&&(this.query.removeEventListener(`change`,t),this.listenerCache.delete(e)),this.styles&&e.$fastController.removeStyles(this.styles)}},C2=class extends P{constructor(){super(...arguments),this.behaviors=[]}connectedCallback(){super.connectedCallback(),this.behaviors=Object.keys(x2).map(e=>{if(this[`col-${e}-count`]||this[`row-${e}-count`])return new XPe(x2[e],this[`col-${e}-count`],this[`row-${e}-count`],this[`col-${e}-width`],this[`row-${e}-height`])}).filter(e=>!!e);let e=this[`row-count`]&&rt`grid-template-rows: repeat(${this[`row-count`]}, ${this[`row-height`]||`1fr`});`,t=this[`col-count`]&&rt`grid-template-columns: repeat(${this[`col-count`]}, ${this[`col-width`]||`1fr`});`;this.baseStyles=O` slot{${e||``} ${t||``}}`,this.$fastController.addStyles(this.baseStyles),this.$fastController.addBehaviors(this.behaviors)}disconnectedCallback(){super.disconnectedCallback(),this.$fastController.removeBehaviors(this.behaviors),this.baseStyles&&this.$fastController.removeStyles(this.baseStyles)}};q([D],C2.prototype,`col-count`,void 0),q([D],C2.prototype,`col-width`,void 0),q([D],C2.prototype,`col-lg-count`,void 0),q([D],C2.prototype,`col-lg-width`,void 0),q([D],C2.prototype,`col-md-count`,void 0),q([D],C2.prototype,`col-md-width`,void 0),q([D],C2.prototype,`col-sm-count`,void 0),q([D],C2.prototype,`col-sm-width`,void 0),q([D],C2.prototype,`row-count`,void 0),q([D],C2.prototype,`row-height`,void 0),q([D],C2.prototype,`row-lg-count`,void 0),q([D],C2.prototype,`row-lg-height`,void 0),q([D],C2.prototype,`row-md-count`,void 0),q([D],C2.prototype,`row-md-height`,void 0),q([D],C2.prototype,`row-sm-count`,void 0),q([D],C2.prototype,`row-sm-height`,void 0),C2.compose(Object.assign({baseName:`grid-layout`,styles:JPe,template:qPe,shadowOptions:void 0},YPe));let ZPe=T`<template><style>
903
+ `};h2.compose(Object.assign({baseName:`flipper`,template:p2,styles:m2,shadowOptions:void 0},g2));let _2=O` /* Host */ :host{display: inline-block;height: 100vh;position: absolute;width: 100vw}:host([closed]){display: none}div.container{height: 100%;width: 100%}/* flyout */ div.flyout{background-color: white;color: black;height: 100%;position: absolute;/* stylelint-disable-next-line function-name-case */ transition: transform ${`225`}ms ease-in, width ${`225`}ms ease-in-out;width: var(--flyout-width, 20%);z-index: 2001}:host([position='left']) div.flyout{left: 0;transform: translateX(0%)}:host([position='right']) div.flyout{right: 0;transform: translateX(0%)}:host([visuallyhidden][position='left']) div.flyout{left: 0;transform: translateX(-100%)}:host([visuallyhidden][position='right']) div.flyout{right: 0;transform: translateX(100%)}div.header{display: flex;align-items: center;justify-content: space-between;color: var(--neutral-foreground-hint);font-weight: 500;padding: calc(var(--design-unit) * 2px) calc(var(--design-unit) * 3px);rapid-button{--base-height-multiplier: 8}rapid-button::part(control){padding: 0 calc((8 + var(--design-unit) * 1 * var(--density)) * 1px)}}div.title{flex-grow: 1}div.footer{bottom: 0;position: absolute;width: 100%}/* Background */ div.background{background-color: black;height: 100%;opacity: 50%;position: absolute;/* stylelint-disable-next-line function-name-case */ transition: opacity ${`225`}ms linear;width: 100%;z-index: 2000}:host([visuallyhidden]) div.background{opacity: 0%}`,v2=e=>T`<div ?closed=${e=>e.closed}?visuallyhidden=${e=>e.visuallyhidden}><div class="container"><div class="background" part="background" @click=${e=>e.closeFlyout()}></div><div class="flyout" part="flyout" @transitionend=${e=>e.closingFinished()}>${A(e=>e.displayHeader,T`<div class="header" part="header"><div class="title" part="title"><slot name="title"></slot></div><${e}-button class="exit" part="exit" aria-label="exit" ${k(`exit`)}appearance="stealth" @click=${e=>e.closeFlyout()}><${e}-icon name="times"></${e}-icon></${e}-button></div>`)}<div class="content" part="content"><slot></slot></div><div class="footer" part="footer"><slot name="footer"></slot></div></div></div></div>`,JPe=T` ${e=>v2(yb(e))} `;var y2=class extends P{constructor(){super(...arguments),this.position=`right`,this.flyoutWidth=`20%`,this.displayHeader=!0,this.closed=!0,this.visuallyhidden=!0}flyoutWidthChanged(){this.isConnected&&this.flyoutWidth!=null&&this.style.setProperty(`--flyout-width`,this.flyoutWidth)}closedChanged(){this.closed||(setTimeout(()=>this.visuallyhidden=!1,1),this.focusExit())}connectedCallback(){super.connectedCallback(),this.flyoutWidth!=null&&this.style.setProperty(`--flyout-width`,this.flyoutWidth)}closeFlyout(){this.visuallyhidden=!0}closingFinished(){this.visuallyhidden&&(this.closed=!0,this.$emit(`closed`))}focusExit(){this.exit.focus()}};q([D],y2.prototype,`position`,void 0),q([D({attribute:`flyout-width`})],y2.prototype,`flyoutWidth`,void 0),q([D({mode:`boolean`})],y2.prototype,`displayHeader`,void 0),q([D({mode:`boolean`})],y2.prototype,`closed`,void 0),q([D({mode:`boolean`})],y2.prototype,`visuallyhidden`,void 0);let b2={};y2.compose(Object.assign({baseName:`flyout`,styles:_2,template:JPe,shadowOptions:void 0},b2));let YPe=T`<template><slot></slot></template>`;var x2;(function(e){e.sm=`(max-width: 640px)`,e.md=`(min-width: 641px) and (max-width: 1023px)`,e.lg=`(min-width: 1024px)`})(x2||(x2={}));let S2=e=>{let t=e?`-${e}`:``;return O` ${t&&`@media only screen and ${x2[e]} {`} :host(.spacing${t}-1x) slot{gap: calc(var(--design-unit) * 2px)}:host(.spacing${t}-2x) slot{gap: calc(var(--design-unit) * 4px)}:host(.spacing${t}-3x) slot{gap: calc(var(--design-unit) * 6px)}:host(.spacing${t}-4x) slot{gap: calc(var(--design-unit) * 8px)}:host(.spacing${t}-5x) slot{gap: calc(var(--design-unit) * 10px)}:host(.spacing${t}-6x) slot{gap: calc(var(--design-unit) * 12px)}:host(.flow${t}-row) slot{grid-auto-flow: row}:host(.flow${t}-column) slot{grid-auto-flow: column}:host(.flow${t}-row-dense) slot{grid-auto-flow: row dense}:host(.flow${t}-column-dense) slot{grid-auto-flow: column dense}:host(.content${t}-center) slot{place-content: center}:host(.content${t}-start) slot{place-content: start}:host(.content${t}-end) slot{place-content: end}:host(.content${t}-between) slot{place-content: space-between}:host(.content${t}-around) slot{place-content: space-around}:host(.content${t}-evenly) slot{place-content: space-evenly}:host(.content${t}-stretch) slot{place-content: stretch}:host(.place${t}-items-start) slot{place-items: start}:host(.place${t}-items-end) slot{place-items: end}:host(.place${t}-items-center) slot{place-items: center}:host(.place${t}-items-stretch) slot{place-items: stretch}${t&&`}`} `},XPe=O` slot{width: 100%;height: 100%;display: grid}${S2()} ${S2(`lg`)} ${S2(`md`)} ${S2(`sm`)}`,ZPe={};var QPe=class{constructor(e,t,n,r=`1fr`,i=`1fr`){this.listenerCache=/* @__PURE__ */ new WeakMap,this.query=window.matchMedia(e);let a=t&&rt`grid-template-columns: repeat(${t}, ${r});`,o=n&&rt`grid-template-rows: repeat(${n}, ${i});`;this.styles=O` slot{${o||``} ${a||``}}`}bind(e){let t=!1,n=n=>{let{matches:r}=n;r&&!t?(e.$fastController.addStyles(this.styles),t=!0):!r&&t&&(this.styles&&e.$fastController.removeStyles(this.styles),t=!1)};n({matches:this.query.matches}),this.query.addEventListener(`change`,n),this.listenerCache.set(e,n)}unbind(e){let t=this.listenerCache.get(e);t&&(this.query.removeEventListener(`change`,t),this.listenerCache.delete(e)),this.styles&&e.$fastController.removeStyles(this.styles)}},C2=class extends P{constructor(){super(...arguments),this.behaviors=[]}connectedCallback(){super.connectedCallback(),this.behaviors=Object.keys(x2).map(e=>{if(this[`col-${e}-count`]||this[`row-${e}-count`])return new QPe(x2[e],this[`col-${e}-count`],this[`row-${e}-count`],this[`col-${e}-width`],this[`row-${e}-height`])}).filter(e=>!!e);let e=this[`row-count`]&&rt`grid-template-rows: repeat(${this[`row-count`]}, ${this[`row-height`]||`1fr`});`,t=this[`col-count`]&&rt`grid-template-columns: repeat(${this[`col-count`]}, ${this[`col-width`]||`1fr`});`;this.baseStyles=O` slot{${e||``} ${t||``}}`,this.$fastController.addStyles(this.baseStyles),this.$fastController.addBehaviors(this.behaviors)}disconnectedCallback(){super.disconnectedCallback(),this.$fastController.removeBehaviors(this.behaviors),this.baseStyles&&this.$fastController.removeStyles(this.baseStyles)}};q([D],C2.prototype,`col-count`,void 0),q([D],C2.prototype,`col-width`,void 0),q([D],C2.prototype,`col-lg-count`,void 0),q([D],C2.prototype,`col-lg-width`,void 0),q([D],C2.prototype,`col-md-count`,void 0),q([D],C2.prototype,`col-md-width`,void 0),q([D],C2.prototype,`col-sm-count`,void 0),q([D],C2.prototype,`col-sm-width`,void 0),q([D],C2.prototype,`row-count`,void 0),q([D],C2.prototype,`row-height`,void 0),q([D],C2.prototype,`row-lg-count`,void 0),q([D],C2.prototype,`row-lg-height`,void 0),q([D],C2.prototype,`row-md-count`,void 0),q([D],C2.prototype,`row-md-height`,void 0),q([D],C2.prototype,`row-sm-count`,void 0),q([D],C2.prototype,`row-sm-height`,void 0),C2.compose(Object.assign({baseName:`grid-layout`,styles:XPe,template:YPe,shadowOptions:void 0},ZPe));let $Pe=T`<template><style>
904
904
  :host {
905
905
  width: 100%;
906
906
  height: 100%;${e=>e.setGridItemProperties(e.colNumber,e.rowNumber,e.width,e.height)}}
@@ -913,7 +913,7 @@ let aL={prefix:`fas`,iconName:`0`,icon:[320,512,[],`30`,`M0 192C0 103.6 71.6 32
913
913
  @media only screen and (max-width: 640px) {
914
914
  :host {${e=>e.setGridItemProperties(e.colSmNumber,e.rowSmNumber,e.widthSm,e.heightSm)}}
915
915
  }
916
- </style><slot></slot></template>`,QPe={};var w2=class extends P{setGridItemProperties(e,t,n,r){if(t&&e&&n&&r)return`grid-row: ${t===0||r===0?`auto`:`${t} / ${Number(t)+Number(r)}`}; grid-column: ${e===0||n===0?`auto`:`${e} / ${Number(e)+Number(n)}`}`}};q([D({attribute:`col-number`})],w2.prototype,`colNumber`,void 0),q([D({attribute:`col-sm-number`})],w2.prototype,`colSmNumber`,void 0),q([D({attribute:`col-md-number`})],w2.prototype,`colMdNumber`,void 0),q([D({attribute:`col-lg-number`})],w2.prototype,`colLgNumber`,void 0),q([D({attribute:`row-number`})],w2.prototype,`rowNumber`,void 0),q([D({attribute:`row-sm-number`})],w2.prototype,`rowSmNumber`,void 0),q([D({attribute:`row-md-number`})],w2.prototype,`rowMdNumber`,void 0),q([D({attribute:`row-lg-number`})],w2.prototype,`rowLgNumber`,void 0),q([D({attribute:`width`})],w2.prototype,`width`,void 0),q([D({attribute:`width-sm`})],w2.prototype,`widthSm`,void 0),q([D({attribute:`width-md`})],w2.prototype,`widthMd`,void 0),q([D({attribute:`width-lg`})],w2.prototype,`widthLg`,void 0),q([D({attribute:`height`})],w2.prototype,`height`,void 0),q([D({attribute:`height-sm`})],w2.prototype,`heightSm`,void 0),q([D({attribute:`height-md`})],w2.prototype,`heightMd`,void 0),q([D({attribute:`height-lg`})],w2.prototype,`heightLg`,void 0),w2.compose(Object.assign({baseName:`grid-layout-item`,template:ZPe,shadowOptions:void 0},QPe));let T2=(e,t)=>ma(e,t),E2=(e,t)=>O` ${cu(e,t)}`;var D2=class extends lu{};let O2={delegatesFocus:!0,mode:`open`},$Pe={nextFlipper:T`<foundation-flipper @click="${e=>e.scrollToNext()}" aria-hidden="${e=>e.flippersHiddenFromAT}"></foundation-flipper>`,previousFlipper:T`<foundation-flipper @click="${e=>e.scrollToPrevious()}" direction="previous" aria-hidden="${e=>e.flippersHiddenFromAT}"></foundation-flipper>`};D2.compose(Object.assign({baseName:`horizontal-scroll`,template:T2,styles:E2,shadowOptions:O2},$Pe));let k2=(e,t)=>O` ${X1()} .fa-stack-1x{font-size: 1em}.fa-stack-2x{font-size: 2em}.tooltip-icon{color: var(--accent-foreground-rest)}.error-tooltip{color: var(--error-color)}.tooltip-element{/* Shown as a top-layer popover (see Icon.showTooltip): the top layer escapes ancestor stacking contexts, transforms and overflow clipping, so virtualized grid rows cannot paint over the bubble and no z-index is needed. Placement is inline top/left from the anchor rect, so the UA popover box (inset/margin/border/padding/background) is reset to leave the visible box to ::part(tooltip). No display rule here: the UA sheet hides the popover while closed (an author display rule would override that), and position: fixed blockifies the host while open. */ position: fixed;inset: unset;margin: 0;border: none;padding: 0;background: transparent;color: inherit;overflow: visible;width: 300px;contain: unset;/* The top layer changes painting, not style inheritance: the bubble still inherits text properties from its host context (e.g. AG Grid cells set white-space: nowrap), so reset the ones that would break a multi-line bubble. */ white-space: normal;text-overflow: clip}.tooltip-element::part(tooltip){padding: calc(var(--design-unit) * 4px);background-color: color-mix(in srgb, var(--neutral-layer-4), #000 10%);border: 1px solid var(--neutral-layer-3);text-align: left;color: var(--neutral-foreground-hint);box-shadow: 0 4px 10px rgb(0 0 0 / 35%);font-size: var(--type-ramp-minus-1-font-size)}.tooltip-title{color: var(--neutral-fill-strong-hover);margin: 0}.tooltip-description{margin-top: calc(var(--design-unit) * 2px);margin-bottom: 0;font-size: var(--type-ramp-base-font-size)}.tooltip-second-title-margin{margin-top: calc(var(--design-unit) * 2px)}.tooltip-list-padding{margin: 0;padding: 0 0 0 calc(var(--design-unit) * 4px)}a, a:active, a:visited{color: var(--accent-foreground-rest);text-decoration: none}.warning{background: var(--warning-color);color: #000}.info{margin-top: calc(var(--design-unit) * 2px);padding: 20px;margin-bottom: 20px;height: auto;box-sizing: border-box}`,A2=e=>T`<template><i ${k(`iElement`)}id="${e=>e.tooltipId}" class=${e=>`fa-${e.name} fa-${e.size} fa-${e.variant} ${fn([`error-tooltip`,!!(e.isError&&e.tooltip)],[`tooltip-icon`,!(e.isError||!e.tooltip)])}`}part=${e=>`icon-${e.name}-${e.size}-${e.variant} i-icon`}><slot></slot></i>${A(e=>e.tooltip,T`<${e}-tooltip ${k(`tooltipElement`)}part="tooltip" class="tooltip-element" popover="manual" delay="0" anchor="${e=>e.tooltipId}">${e=>T` ${e.tooltip} `}</${e}-tooltip>`)}</template>`,eFe=T` ${e=>A2(yb(e))} `,j2={mode:`open`,delegatesFocus:!0},M2={};var N2;(function(e){e.solid=`fas`,e.regular=`far`,e.brand=`fab`})(N2||(N2={}));var P2=class extends P{constructor(){super(...arguments),this.isError=!1,this.tooltipShowTimer=null,this.size=`sm`,this.variant=`solid`,this.showTooltip=()=>{let e=this.tooltipElement;e&&this.tooltipShowTimer===null&&!e.matches(`:popover-open`)&&(this.tooltipShowTimer=window.setTimeout(()=>{this.tooltipShowTimer=null;let e=this.tooltipElement;e?.isConnected&&(e.showPopover(),this.positionTooltip(e))},300))},this.hideTooltip=()=>{this.tooltipShowTimer!==null&&(window.clearTimeout(this.tooltipShowTimer),this.tooltipShowTimer=null),this.tooltipElement?.matches(`:popover-open`)&&this.tooltipElement.hidePopover()}}nameChanged(e,t){t&&this.loadIcon()}sizeChanged(e,t){t&&this.loadIcon()}variantChanged(e,t){t&&this.loadIcon()}connectedCallback(){var e,t,n,r;super.connectedCallback(),this.loadIcon(),(e=this.iElement)==null||e.addEventListener(`mouseover`,this.showTooltip,{passive:!0}),(t=this.iElement)==null||t.addEventListener(`focusin`,this.showTooltip,{passive:!0}),(n=this.iElement)==null||n.addEventListener(`mouseout`,this.hideTooltip,{passive:!0}),(r=this.iElement)==null||r.addEventListener(`focusout`,this.hideTooltip,{passive:!0})}disconnectedCallback(){super.disconnectedCallback(),this.iElement.replaceChildren(),this.iElement.removeEventListener(`mouseover`,this.showTooltip),this.iElement.removeEventListener(`focusin`,this.showTooltip),this.iElement.removeEventListener(`mouseout`,this.hideTooltip),this.iElement.removeEventListener(`focusout`,this.hideTooltip),this.hideTooltip()}positionTooltip(e){let t=this.iElement.getBoundingClientRect(),n=e.getBoundingClientRect(),r=Math.max(n.width,e.scrollWidth),i=Math.max(n.height,e.scrollHeight),a=t.right;a+r>window.innerWidth-8&&(a=Math.max(8,t.left-r));let o=Math.max(8,window.innerHeight-i-8),s=Math.min(Math.max(t.top,8),o);e.style.top=`${s}px`,e.style.left=`${a}px`}getDefaultTooltipConfig(){this.name||(this.name=`question-circle`,this.size=`1x`,this.variant=`regular`)}loadIcon(){if(!this.iElement)return;this.tooltip&&(this.tooltipId||(this.tooltipId=this.uuid.createId()),this.getDefaultTooltipConfig());let e=aue({prefix:N2[this.variant],iconName:this.name}),t=oue(e);t&&t.node&&(this.iElement.innerHTML=``,Array.from(t.node).map(e=>this.iElement.appendChild(e)))}};q([C],P2.prototype,`iElement`,void 0),q([Yh],P2.prototype,`uuid`,void 0),q([D({attribute:`tooltip-id`})],P2.prototype,`tooltipId`,void 0),q([D],P2.prototype,`tooltip`,void 0),q([D({attribute:`error`,mode:`boolean`})],P2.prototype,`isError`,void 0),q([D],P2.prototype,`name`,void 0),q([D],P2.prototype,`size`,void 0),q([D],P2.prototype,`variant`,void 0),P2.compose(Object.assign({baseName:`icon`,template:eFe,styles:k2,shadowOptions:j2},M2));let F2=(e,t)=>Ki(e,t),I2=(e,t)=>O` ${Yl(e,t)} :host{display: flex;flex-direction: column;max-width: fit-content;padding: calc(var(--design-unit) * 1px) 0;border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);border-radius: calc(var(--control-corner-radius) * 1px)}`;var L2=class extends du{};let R2={};L2.compose(Object.assign({baseName:`listbox`,template:F2,styles:I2,shadowOptions:void 0},R2));let z2=(e,t)=>Wi(e,t),B2=(e,t)=>O` ${uu(e,t)}`;var V2=class extends Ir{};let H2={};V2.compose(Object.assign({baseName:`option`,template:z2,styles:B2,shadowOptions:void 0},H2));let U2=(e,t)=>ta(e,t),W2=(e,t)=>O` ${pu(e,t)}`;var G2=class extends mu{};let K2={};G2.compose(Object.assign({baseName:`menu`,template:U2,styles:W2,shadowOptions:void 0},K2));let q2=(e,t)=>ea(e,t),J2=(e,t)=>O` ${fu(e,t)} :host, :host(.indent-0[aria-haspopup='menu']){align-content: center;min-height: calc(var(--design-unit) * 8px)}.expand-collapse-glyph{max-height: calc(var(--design-unit) * 4px);max-width: calc(var(--design-unit) * 4px);height: auto;width: auto}`;var Y2=class extends $i{connectedCallback(){super.connectedCallback(),this.addEventListener(`click`,()=>this.$emit(`onMenuClick`))}};let X2={expandCollapseGlyph:`
916
+ </style><slot></slot></template>`,eFe={};var w2=class extends P{setGridItemProperties(e,t,n,r){if(t&&e&&n&&r)return`grid-row: ${t===0||r===0?`auto`:`${t} / ${Number(t)+Number(r)}`}; grid-column: ${e===0||n===0?`auto`:`${e} / ${Number(e)+Number(n)}`}`}};q([D({attribute:`col-number`})],w2.prototype,`colNumber`,void 0),q([D({attribute:`col-sm-number`})],w2.prototype,`colSmNumber`,void 0),q([D({attribute:`col-md-number`})],w2.prototype,`colMdNumber`,void 0),q([D({attribute:`col-lg-number`})],w2.prototype,`colLgNumber`,void 0),q([D({attribute:`row-number`})],w2.prototype,`rowNumber`,void 0),q([D({attribute:`row-sm-number`})],w2.prototype,`rowSmNumber`,void 0),q([D({attribute:`row-md-number`})],w2.prototype,`rowMdNumber`,void 0),q([D({attribute:`row-lg-number`})],w2.prototype,`rowLgNumber`,void 0),q([D({attribute:`width`})],w2.prototype,`width`,void 0),q([D({attribute:`width-sm`})],w2.prototype,`widthSm`,void 0),q([D({attribute:`width-md`})],w2.prototype,`widthMd`,void 0),q([D({attribute:`width-lg`})],w2.prototype,`widthLg`,void 0),q([D({attribute:`height`})],w2.prototype,`height`,void 0),q([D({attribute:`height-sm`})],w2.prototype,`heightSm`,void 0),q([D({attribute:`height-md`})],w2.prototype,`heightMd`,void 0),q([D({attribute:`height-lg`})],w2.prototype,`heightLg`,void 0),w2.compose(Object.assign({baseName:`grid-layout-item`,template:$Pe,shadowOptions:void 0},eFe));let T2=(e,t)=>ma(e,t),E2=(e,t)=>O` ${cu(e,t)}`;var D2=class extends lu{};let O2={delegatesFocus:!0,mode:`open`},tFe={nextFlipper:T`<foundation-flipper @click="${e=>e.scrollToNext()}" aria-hidden="${e=>e.flippersHiddenFromAT}"></foundation-flipper>`,previousFlipper:T`<foundation-flipper @click="${e=>e.scrollToPrevious()}" direction="previous" aria-hidden="${e=>e.flippersHiddenFromAT}"></foundation-flipper>`};D2.compose(Object.assign({baseName:`horizontal-scroll`,template:T2,styles:E2,shadowOptions:O2},tFe));let k2=(e,t)=>O` ${X1()} .fa-stack-1x{font-size: 1em}.fa-stack-2x{font-size: 2em}.tooltip-icon{color: var(--accent-foreground-rest)}.error-tooltip{color: var(--error-color)}.tooltip-element{/* Shown as a top-layer popover (see Icon.showTooltip): the top layer escapes ancestor stacking contexts, transforms and overflow clipping, so virtualized grid rows cannot paint over the bubble and no z-index is needed. Placement is inline top/left from the anchor rect, so the UA popover box (inset/margin/border/padding/background) is reset to leave the visible box to ::part(tooltip). No display rule here: the UA sheet hides the popover while closed (an author display rule would override that), and position: fixed blockifies the host while open. */ position: fixed;inset: unset;margin: 0;border: none;padding: 0;background: transparent;color: inherit;overflow: visible;width: 300px;contain: unset;/* The top layer changes painting, not style inheritance: the bubble still inherits text properties from its host context (e.g. AG Grid cells set white-space: nowrap), so reset the ones that would break a multi-line bubble. */ white-space: normal;text-overflow: clip}.tooltip-element::part(tooltip){padding: calc(var(--design-unit) * 4px);background-color: color-mix(in srgb, var(--neutral-layer-4), #000 10%);border: 1px solid var(--neutral-layer-3);text-align: left;color: var(--neutral-foreground-hint);box-shadow: 0 4px 10px rgb(0 0 0 / 35%);font-size: var(--type-ramp-minus-1-font-size)}.tooltip-title{color: var(--neutral-fill-strong-hover);margin: 0}.tooltip-description{margin-top: calc(var(--design-unit) * 2px);margin-bottom: 0;font-size: var(--type-ramp-base-font-size)}.tooltip-second-title-margin{margin-top: calc(var(--design-unit) * 2px)}.tooltip-list-padding{margin: 0;padding: 0 0 0 calc(var(--design-unit) * 4px)}a, a:active, a:visited{color: var(--accent-foreground-rest);text-decoration: none}.warning{background: var(--warning-color);color: #000}.info{margin-top: calc(var(--design-unit) * 2px);padding: 20px;margin-bottom: 20px;height: auto;box-sizing: border-box}`,A2=e=>T`<template><i ${k(`iElement`)}id="${e=>e.tooltipId}" class=${e=>`fa-${e.name} fa-${e.size} fa-${e.variant} ${fn([`error-tooltip`,!!(e.isError&&e.tooltip)],[`tooltip-icon`,!(e.isError||!e.tooltip)])}`}part=${e=>`icon-${e.name}-${e.size}-${e.variant} i-icon`}><slot></slot></i>${A(e=>e.tooltip,T`<${e}-tooltip ${k(`tooltipElement`)}part="tooltip" class="tooltip-element" popover="manual" delay="0" anchor="${e=>e.tooltipId}">${e=>T` ${e.tooltip} `}</${e}-tooltip>`)}</template>`,nFe=T` ${e=>A2(yb(e))} `,j2={mode:`open`,delegatesFocus:!0},M2={};var N2;(function(e){e.solid=`fas`,e.regular=`far`,e.brand=`fab`})(N2||(N2={}));var P2=class extends P{constructor(){super(...arguments),this.isError=!1,this.tooltipShowTimer=null,this.size=`sm`,this.variant=`solid`,this.showTooltip=()=>{let e=this.tooltipElement;e&&this.tooltipShowTimer===null&&!e.matches(`:popover-open`)&&(this.tooltipShowTimer=window.setTimeout(()=>{this.tooltipShowTimer=null;let e=this.tooltipElement;e?.isConnected&&(e.showPopover(),this.positionTooltip(e))},300))},this.hideTooltip=()=>{this.tooltipShowTimer!==null&&(window.clearTimeout(this.tooltipShowTimer),this.tooltipShowTimer=null),this.tooltipElement?.matches(`:popover-open`)&&this.tooltipElement.hidePopover()}}nameChanged(e,t){t&&this.loadIcon()}sizeChanged(e,t){t&&this.loadIcon()}variantChanged(e,t){t&&this.loadIcon()}connectedCallback(){var e,t,n,r;super.connectedCallback(),this.loadIcon(),(e=this.iElement)==null||e.addEventListener(`mouseover`,this.showTooltip,{passive:!0}),(t=this.iElement)==null||t.addEventListener(`focusin`,this.showTooltip,{passive:!0}),(n=this.iElement)==null||n.addEventListener(`mouseout`,this.hideTooltip,{passive:!0}),(r=this.iElement)==null||r.addEventListener(`focusout`,this.hideTooltip,{passive:!0})}disconnectedCallback(){super.disconnectedCallback(),this.iElement.replaceChildren(),this.iElement.removeEventListener(`mouseover`,this.showTooltip),this.iElement.removeEventListener(`focusin`,this.showTooltip),this.iElement.removeEventListener(`mouseout`,this.hideTooltip),this.iElement.removeEventListener(`focusout`,this.hideTooltip),this.hideTooltip()}positionTooltip(e){let t=this.iElement.getBoundingClientRect(),n=e.getBoundingClientRect(),r=Math.max(n.width,e.scrollWidth),i=Math.max(n.height,e.scrollHeight),a=t.right;a+r>window.innerWidth-8&&(a=Math.max(8,t.left-r));let o=Math.max(8,window.innerHeight-i-8),s=Math.min(Math.max(t.top,8),o);e.style.top=`${s}px`,e.style.left=`${a}px`}getDefaultTooltipConfig(){this.name||(this.name=`question-circle`,this.size=`1x`,this.variant=`regular`)}loadIcon(){if(!this.iElement)return;this.tooltip&&(this.tooltipId||(this.tooltipId=this.uuid.createId()),this.getDefaultTooltipConfig());let e=aue({prefix:N2[this.variant],iconName:this.name}),t=oue(e);t&&t.node&&(this.iElement.innerHTML=``,Array.from(t.node).map(e=>this.iElement.appendChild(e)))}};q([C],P2.prototype,`iElement`,void 0),q([Yh],P2.prototype,`uuid`,void 0),q([D({attribute:`tooltip-id`})],P2.prototype,`tooltipId`,void 0),q([D],P2.prototype,`tooltip`,void 0),q([D({attribute:`error`,mode:`boolean`})],P2.prototype,`isError`,void 0),q([D],P2.prototype,`name`,void 0),q([D],P2.prototype,`size`,void 0),q([D],P2.prototype,`variant`,void 0),P2.compose(Object.assign({baseName:`icon`,template:nFe,styles:k2,shadowOptions:j2},M2));let F2=(e,t)=>Ki(e,t),I2=(e,t)=>O` ${Yl(e,t)} :host{display: flex;flex-direction: column;max-width: fit-content;padding: calc(var(--design-unit) * 1px) 0;border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);border-radius: calc(var(--control-corner-radius) * 1px)}`;var L2=class extends du{};let R2={};L2.compose(Object.assign({baseName:`listbox`,template:F2,styles:I2,shadowOptions:void 0},R2));let z2=(e,t)=>Wi(e,t),B2=(e,t)=>O` ${uu(e,t)}`;var V2=class extends Ir{};let H2={};V2.compose(Object.assign({baseName:`option`,template:z2,styles:B2,shadowOptions:void 0},H2));let U2=(e,t)=>ta(e,t),W2=(e,t)=>O` ${pu(e,t)}`;var G2=class extends mu{};let K2={};G2.compose(Object.assign({baseName:`menu`,template:U2,styles:W2,shadowOptions:void 0},K2));let q2=(e,t)=>ea(e,t),J2=(e,t)=>O` ${fu(e,t)} :host, :host(.indent-0[aria-haspopup='menu']){align-content: center;min-height: calc(var(--design-unit) * 8px)}.expand-collapse-glyph{max-height: calc(var(--design-unit) * 4px);max-width: calc(var(--design-unit) * 4px);height: auto;width: auto}`;var Y2=class extends $i{connectedCallback(){super.connectedCallback(),this.addEventListener(`click`,()=>this.$emit(`onMenuClick`))}};let X2={expandCollapseGlyph:`
917
917
  <svg
918
918
  class="expand-collapse-glyph"
919
919
  part="expand-collapse-glyph"
@@ -923,7 +923,7 @@ let aL={prefix:`fas`,iconName:`0`,icon:[320,512,[],`30`,`M0 192C0 103.6 71.6 32
923
923
  d="M4.023 15.273L11.29 8 4.023.727l.704-.704L12.71 8l-7.984 7.977-.704-.704z"
924
924
  />
925
925
  </svg>
926
- `};Y2.compose(Object.assign({baseName:`menu-item`,template:q2,styles:J2,shadowOptions:void 0},X2));let tFe=O` ${$1}`,Z2=T` ${t0} `,Q2={mode:`open`,delegatesFocus:!0},$2={};var e4=class extends g0{show(){var e,t;(e=this.onShowCallback)==null||e.call(this),(t=this.mainElement)==null||t.showModal()}};e4.compose(Object.assign({baseName:`modal`,template:Z2,styles:tFe,shadowOptions:Q2},$2));let t4=(e,t)=>T`<template class="${e=>[e.readOnly?`readonly`:``,e.prefix?`has-prefix`:``,e.suffix?`has-suffix`:``].filter(Boolean).join(` `)}"><label part="label" for="${e=>e.id?e.id:`control`}" class="${e=>e.defaultSlottedNodes&&e.defaultSlottedNodes.length?`label`:`label label-hidden`}"><slot ${bt(`defaultSlottedNodes`)}></slot></label><div class="root" part="root">${wt(e,t)}<div class="control-field">${A(e=>e.prefix,T`<span class="prefix" part="prefix" id="${e=>`${e.id||`control`}-prefix`}" ?aria-hidden="${e=>e.hideAffixFromScreenReader}">${e=>e.prefix}</span>`)}<input class="control" part="control" name="${e=>e.name}" autocomplete="${e=>e.autocomplete}" id="${e=>e.id?e.id:`control`}" @input="${e=>e.handleTextInput()}" @change="${e=>e.handleChange()}" @keydown="${(e,t)=>e.handleKeyDown(t.event)}" @blur="${(e,t)=>e.handleBlur()}" ?autofocus="${e=>e.autofocus}" ?disabled="${e=>e.disabled}" list="${e=>e.list}" maxlength="${e=>e.maxlength}" minlength="${e=>e.minlength}" placeholder="${e=>e.placeholder}" ?readonly="${e=>e.readOnly}" ?required="${e=>e.required}" size="${e=>e.size}" type="text" inputmode="numeric" min="${e=>e.min}" max="${e=>e.max}" step="${e=>e.step}" aria-atomic="${e=>e.ariaAtomic}" aria-busy="${e=>e.ariaBusy}" aria-controls="${e=>e.ariaControls}" aria-current="${e=>e.ariaCurrent}" aria-describedby="${e=>e.controlAriaDescribedby}" aria-details="${e=>e.ariaDetails}" aria-disabled="${e=>e.ariaDisabled}" aria-errormessage="${e=>e.ariaErrormessage}" aria-flowto="${e=>e.ariaFlowto}" aria-haspopup="${e=>e.ariaHaspopup}" aria-hidden="${e=>e.ariaHidden}" aria-invalid="${e=>e.ariaInvalid}" aria-keyshortcuts="${e=>e.ariaKeyshortcuts}" aria-label="${e=>e.ariaLabel}" aria-labelledby="${e=>e.ariaLabelledby}" aria-live="${e=>e.ariaLive}" aria-owns="${e=>e.ariaOwns}" aria-relevant="${e=>e.ariaRelevant}" aria-roledescription="${e=>e.ariaRoledescription}" ${k(`control`)}/>${A(e=>e.suffix,T`<span class="suffix" part="suffix" id="${e=>`${e.id||`control`}-suffix`}" ?aria-hidden="${e=>e.hideAffixFromScreenReader}">${e=>e.suffix}</span>`)}</div>${A(e=>!e.hideStep&&!e.readOnly&&!e.disabled,T`<div class="controls" part="controls"><div class="step-up" part="step-up" @click="${e=>e.stepUp()}"><slot name="step-up-glyph">${t.stepUpGlyph||``}</slot></div><div class="step-down" part="step-down" @click="${e=>e.stepDown()}"><slot name="step-down-glyph">${t.stepDownGlyph||``}</slot></div></div>`)} ${Ct(e,t)}</div></template>`,nFe=(e,t)=>O` ${hu(e,t)} ::part(label){color: var(--neutral-foreground-rest)}fast-text-field{display: unset}.controls{margin-bottom: auto;margin-inline-end: 5px;margin-top: auto}.step-down, .step-up{display: block;fill: var(--neutral-foreground-rest)}.step-down-glyph, .step-up-glyph{padding: unset}::part(end){margin-inline-end: unset}${X0}`,n4=/* @__PURE__ */ new Map,r4=e=>{let t=n4.get(e);if(t)return t;let n=new Intl.NumberFormat(e).formatToParts(12345.6),r=[...new Intl.NumberFormat(e,{useGrouping:!1}).format(9876543210)],i={decimalSeparator:n.find(e=>e.type===`decimal`)?.value||`.`,groupSeparator:n.find(e=>e.type===`group`)?.value||``,digits:/* @__PURE__ */ new Set([...`0123456789`,...r]),zeroDigits:/* @__PURE__ */ new Set([`0`,r[r.length-1]])};return n4.set(e,i),i},i4=(e,t)=>{let{decimalSeparator:n,groupSeparator:r}=r4(t);return{decimalSeparator:n,groupSeparator:r}},rFe=/[kmb]\s*$/i,a4=(e,t)=>{let{decimalSeparator:n,digits:r,zeroDigits:i}=r4(t),a=!0;return t=>{let o=e[t];return o===n?(a=!1,!0):o===`-`||o===`−`?!0:!r.has(o)||a&&i.has(o)?!1:(a=!1,!0)}},o4=(e,t,n,r)=>{let i=Math.min(Math.max(n,0),e.length),a=e.length-t.length;if(a>0&&a<=i&&e.slice(0,i-a)+e.slice(i)===t)return i-a;if(i===e.length&&rFe.test(e))return t.length;let o=a4(e,r),s=0;for(let e=0;e<i;e+=1)o(e)&&(s+=1);let c=a4(t,r);if(s===0){for(let e=0;e<t.length;e+=1)if(c(e))return e;return i===e.length?t.length:0}let l=0;for(let e=0;e<t.length;e+=1)if(c(e)&&(l+=1,l===s))return e+1;return t.length},s4=(e,t)=>{let{groupSeparator:n,decimalSeparator:r}=r4(t),i=e.trim();return n&&(i=i.split(n).join(``)),r!==`.`&&(i=i.replace(r,`.`)),i},c4=(e,t)=>{let{decimalSeparator:n}=r4(t),r=0;for(let t of e)t===n&&(r+=1);return r},l4=(e,t)=>c4(e,t)>1,iFe=(e,t,n)=>{let r=s4(String(e??``),t);return!r||!/^-?\d+$/.test(r)?!1:r.replace(/^-/,``).length>=n},u4=(e,t,n,r)=>iFe(e,n,r)&&c4(t,n)>0,aFe=(e,t)=>{let n=e.startsWith(`-`),r=n?e.slice(1):e,i=r4(t).groupSeparator||`,`,a=[],o=r;for(;o.length>3;)a.unshift(o.slice(-3)),o=o.slice(0,-3);a.unshift(o);let s=a.join(i);return n?`-${s}`:s},oFe=e=>{let t=e.replace(/^-/,``),n=t.indexOf(`.`);return(n===-1?t:t.slice(0,n)).length>15},sFe=(e,t,n)=>{let r=e.startsWith(`-`),i=r?e.slice(1):e,a=i.indexOf(`.`),o=a===-1?i:i.slice(0,a),s=a===-1?``:i.slice(a+1),c=n.minimumFractionDigits,l=n.maximumFractionDigits;l!==void 0&&s.length>l&&(s=s.slice(0,l)),c!==void 0&&s.length<c&&(s=s.padEnd(c,`0`));let u=r?`-${o}`:o,d=aFe(u,t),{decimalSeparator:f}=i4(e,t);return a===-1?c!==void 0&&c>0?`${d}${f}${`0`.repeat(c)}`:d:l===0?d:`${d}${f}${s}`},cFe=(e,t,n)=>{let r=BigInt(e);if(n!==void 0&&!Number.isNaN(n)){let e=BigInt(Math.trunc(n));r>e&&(r=e)}if(t!==void 0&&!Number.isNaN(t)){let e=BigInt(Math.trunc(t));r<e&&(r=e)}return r.toString()},d4=(e,t)=>{let{decimalSeparator:n}=i4(e,t);return n===`.`?e:e.replace(/\./g,n)},lFe=(e,t)=>{let n=s4(String(e),t),r=n.replace(/^-/,``).replace(`.`,``).length;return/^-?\d+(\.\d+)?$/.test(n)&&r>15?n:String(new Mf(t).parse(String(e)))},f4=(e,t,n)=>e===``?``:oFe(e)&&/^-?\d+(\.\d*)?$/.test(e)?sFe(e,t,n):Intl.NumberFormat(t,n).format(Number(e)),p4=(e,t)=>{if(!e||e===``)return e;let n=Number(e);if(isNaN(n))return e;let r=e.indexOf(`.`),i=r!==-1,a=i?e.length-r-1:0,o=t.minimumFractionDigits,s=t.maximumFractionDigits;if(a>=o&&a<=s)return e;let c=e;if(a<o){i||(c=e+`.`);let t=o-a;c+=`0`.repeat(t)}if(a>s){let t=i?e.substring(0,r):e,n=(i?e.substring(r+1):``).substring(0,s);c=s===0?t:`${t}.${n}`}return c},uFe=(e,t,n)=>{let{decimalSeparator:r}=i4(e,n),i=r.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`),a=RegExp(`${i}(\\d*?)(0+)$`),o=e.match(a);if(o){let e=o[1],n=o[2],r=String(t);if(!isNaN(Number(t))){if(r.includes(`.`)){let t=r.split(`.`)[1],i=Math.max(0,n.length-(t.length-e.length));return r+`0`.repeat(i)}return r+`.`+e+n}}return String(t)},m4=(e,t,n=!0,r)=>{if(e==null||e===``)return``;let i=typeof e==`number`?e.toString():e,a=r??12;if(l4(i,t))return``;let o;if(n)o=lFe(i,t);else{let{decimalSeparator:e}=i4(i,t);if(e!==`.`){o=i.replace(RegExp(`\\${e}`,`g`),`.`);let t=o.indexOf(`.`);t!==-1&&(o=o.substring(0,t))}else o=i}if(o=String(o),!/^-?\d*\.?\d+$/.test(o))return``;if(a!==void 0&&o.replace(`.`,``).replace(/^0+/,``).length>a){let e=o.indexOf(`.`);if(e!==-1){let t=o.substring(0,e),n=t.length;if(n>=a)return o.substring(0,a);{let r=a-n;return`${t}.${o.substring(e+1).substring(0,r)}`}}return o.substring(0,a)}return o},dFe=(e,t,n,r)=>{if(n!==void 0&&c4(e,t)>0){let i=s4(e,t),a=i.indexOf(`.`),o=a===-1?i:i.slice(0,a);if(u4(r===void 0?o:r,e,t,n))return``}let i=m4(e,t,!0,n);return uFe(e,i,t)},h4=(e,t,n=!0,r,i,a)=>{let o=m4(e,t,n,a);if(!o)return``;let s=o.replace(/^-/,``).replace(`.`,``).length;if(/^-?\d+$/.test(o)&&s>15)try{return cFe(o,r,i)}catch{return o}let c=parseFloat(o);return isNaN(c)?c=``:(c=Math.min(c,i??c),c=Math.max(c,r??c)),String(c)},fFe=(e,t)=>{try{let n=typeof e==`string`?e:e.toString(),r=n.indexOf(`.`);if(r===-1)return(parseInt(n)+t).toString();let i=n.substring(r+1),a=i.length-1,o=parseInt(i.charAt(a))+1;if(o<=9){let e=i.substring(0,a)+o;return n.substring(0,r+1)+e}{let e=``,t=1;for(let n=a;n>=0;--n){let r=parseInt(i.charAt(n))+t;r<=9?(e=r+e,t=0):(e=`0`+e,t=1)}return t===1?parseInt(n.substring(0,r))+1+`.`+e:n.substring(0,r+1)+e}}catch{return((typeof e==`string`?parseFloat(e):e)+t).toString()}},pFe=(e,t)=>{try{let n=typeof e==`string`?e:e.toString(),r=n.indexOf(`.`);if(r===-1)return(parseInt(n)-t).toString();let i=n.substring(r+1),a=i.length-1,o=parseInt(i.charAt(a))-1;if(o>=0){let e=i.substring(0,a)+o;return n.substring(0,r+1)+e}{let e=``,t=1;for(let n=a;n>=0;--n){let r=parseInt(i.charAt(n))-t;r>=0?(e=r+e,t=0):(e=`9`+e,t=1)}return t===1?parseInt(n.substring(0,r))-1+`.`+e:n.substring(0,r+1)+e}}catch{return((typeof e==`string`?parseFloat(e):e)-t).toString()}},g4=e=>{try{let t=typeof e==`string`?e:e.toString(),n=t.indexOf(`.`);if(n===-1)return 1;let r=t.substring(n+1).length;if(r===0)return 1;let i=10**-r;return parseFloat(i.toFixed(r))}catch{let t=typeof e==`string`?e:e.toString(),n=t.indexOf(`.`);if(n===-1)return 1;let r=t.substring(n+1).length;if(r===0)return 1;let i=10**-r;return parseFloat(i.toFixed(r))}};var _4=class extends G0(gu){constructor(){super(...arguments),this.autocomplete=`off`,this.hideStep=!1,this.value=``,this.withFormatting=!1,this.locale=`en-US`,this.autoStepPrecision=!1,this.maximumInputPrecision=12,this.options={maximumFractionDigits:3,minimumFractionDigits:0}}autocompleteChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autocomplete=this.autocomplete)}stepUp(){if(/^-?\d*\.?\d+$/.test(this.value)&&this.value!==``){let e;e=this.autoStepPrecision?g4(this.value):this.step;let t=fFe(this.value,e);this.value=t.toString()}else{let e=this.min>0?this.min:this.max<0?this.max:this.min?0:this.step;this.value=e.toString()}this.control&&(this.min!==void 0||this.max!==void 0?this.control.value=h4(this.value,this.locale,this.withFormatting,this.min,this.max,this.maximumInputPrecision):this.control.value=this.value),this.handleTextInput()}stepDown(){if(/^-?\d*\.?\d+$/.test(this.value)&&this.value!==``){let e;e=this.autoStepPrecision?g4(this.value):this.step;let t=pFe(this.value,e);this.value=t.toString()}else{let e=this.min>0?this.min:this.max<0?this.max:this.min?0:0-this.step;this.value=e.toString()}this.control&&(this.min!==void 0||this.max!==void 0?this.control.value=h4(this.value,this.locale,this.withFormatting,this.min,this.max,this.maximumInputPrecision):this.control.value=this.value),this.handleTextInput()}hasSeparatorWithoutDecimals(){return/* @__PURE__ */ RegExp(`[.]$`)}writeControlValue(e){let t=this.control,n=t.value;if(n===e)return;let{selectionStart:r,selectionEnd:i}=t;if(t.value=e,r===null||t.getRootNode().activeElement!==t)return;let a=o4(n,e,r,this.locale),o=i===null||i===r?a:o4(n,e,i,this.locale);t.setSelectionRange(a,o)}restoreControlToCommittedValue(){if(!this.control)return;let e=this.value;this.writeControlValue(e?this.withFormatting?f4(e,this.locale,this.options):d4(String(e),this.locale):``),this.isUserInput=!1}skipGroupSeparator(e){if(!this.withFormatting||e.ctrlKey||e.metaKey||e.altKey)return;let{value:t,selectionStart:n,selectionEnd:r}=this.control;if(n===null||n!==r)return;let{groupSeparator:i}=i4(t,this.locale);i&&(e.key===`Backspace`&&t[n-1]===i?this.control.setSelectionRange(n-1,n-1):e.key===`Delete`&&t[n]===i&&this.control.setSelectionRange(n+1,n+1))}handleKeyDown(e){return e.key===`Enter`&&(this.isUserInput=!1),this.control&&(e.key===`Backspace`||e.key===`Delete`)&&this.skipGroupSeparator(e),super.handleKeyDown(e)}handleTextInput(){if(this.control&&this.control.value!==`-`&&this.control.value!==`-0`){if(l4(this.control.value,this.locale)){this.restoreControlToCommittedValue();return}if(u4(this.value,this.control.value,this.locale,this.maximumInputPrecision)){this.restoreControlToCommittedValue();return}this.isUserInput=!0,this.withFormatting&&!new Mf(this.locale).hasSeparator(this.control.value)?x.queueUpdate(()=>{let e=this.value,t=dFe(this.control.value,this.locale,this.maximumInputPrecision,this.value);if(!t&&e&&this.control.value!==``){this.restoreControlToCommittedValue();return}if(this.control){let e=this.withFormatting&&t!==``?f4(t,this.locale,this.options):d4(t,this.locale);this.writeControlValue(p4(e,this.options))}this.value=p4(t,this.options),this.$emit(`input`)}):!this.withFormatting&&!this.hasSeparatorWithoutDecimals().test(this.control.value)&&x.queueUpdate(()=>{this.control&&this.writeControlValue(this.control.value.replace(/[^0-9.-]/g,``).replace(/(?!^)-/g,``)),this.value=this.control?.value||``,this.$emit(`input`)})}}valueChanged(e,t){if(t==null&&this.control){this.control.value=``;return}if(t!=null&&t!==e){if(!this.isUserInput){this.value=h4(this.value,this.locale,!1,this.min,this.max,this.maximumInputPrecision),x.queueUpdate(()=>{this.isUserInput||this.control&&(this.control.value=this.withFormatting&&this.value?f4(this.value,this.locale,this.options):this.value)});return}return}}handleBlur(){if(!this.control)return;this.isUserInput=!1;let e=h4(this.control.value,this.locale,this.withFormatting,this.min,this.max,this.maximumInputPrecision);e&&/^-?\d*\.?\d+$/.test(e)&&(this.value=this.withFormatting?p4(e,this.options):e),this.control.value=this.withFormatting&&this.value?f4(this.value,this.locale,this.options):this.value,this.$emit(`input`)}};q([D],_4.prototype,`autocomplete`,void 0),q([D({mode:`boolean`})],_4.prototype,`hideStep`,void 0),q([D({converter:{fromView:e=>e==null?``:String(e),toView:e=>e}})],_4.prototype,`value`,void 0),q([D({mode:`boolean`})],_4.prototype,`withFormatting`,void 0),q([D],_4.prototype,`locale`,void 0),q([D({mode:`boolean`})],_4.prototype,`autoStepPrecision`,void 0),q([D],_4.prototype,`maximumInputPrecision`,void 0);let v4={delegatesFocus:!0,mode:`open`},y4={stepDownGlyph:`
926
+ `};Y2.compose(Object.assign({baseName:`menu-item`,template:q2,styles:J2,shadowOptions:void 0},X2));let rFe=O` ${$1}`,Z2=T` ${e0} `,Q2={mode:`open`,delegatesFocus:!0},$2={};var e4=class extends g0{show(){var e,t;(e=this.onShowCallback)==null||e.call(this),(t=this.mainElement)==null||t.showModal()}};e4.compose(Object.assign({baseName:`modal`,template:Z2,styles:rFe,shadowOptions:Q2},$2));let t4=(e,t)=>T`<template class="${e=>[e.readOnly?`readonly`:``,e.prefix?`has-prefix`:``,e.suffix?`has-suffix`:``].filter(Boolean).join(` `)}"><label part="label" for="${e=>e.id?e.id:`control`}" class="${e=>e.defaultSlottedNodes&&e.defaultSlottedNodes.length?`label`:`label label-hidden`}"><slot ${bt(`defaultSlottedNodes`)}></slot></label><div class="root" part="root">${wt(e,t)}<div class="control-field">${A(e=>e.prefix,T`<span class="prefix" part="prefix" id="${e=>`${e.id||`control`}-prefix`}" ?aria-hidden="${e=>e.hideAffixFromScreenReader}">${e=>e.prefix}</span>`)}<input class="control" part="control" name="${e=>e.name}" autocomplete="${e=>e.autocomplete}" id="${e=>e.id?e.id:`control`}" @input="${e=>e.handleTextInput()}" @change="${e=>e.handleChange()}" @keydown="${(e,t)=>e.handleKeyDown(t.event)}" @blur="${(e,t)=>e.handleBlur()}" ?autofocus="${e=>e.autofocus}" ?disabled="${e=>e.disabled}" list="${e=>e.list}" maxlength="${e=>e.maxlength}" minlength="${e=>e.minlength}" placeholder="${e=>e.placeholder}" ?readonly="${e=>e.readOnly}" ?required="${e=>e.required}" size="${e=>e.size}" type="text" inputmode="numeric" min="${e=>e.min}" max="${e=>e.max}" step="${e=>e.step}" aria-atomic="${e=>e.ariaAtomic}" aria-busy="${e=>e.ariaBusy}" aria-controls="${e=>e.ariaControls}" aria-current="${e=>e.ariaCurrent}" aria-describedby="${e=>e.controlAriaDescribedby}" aria-details="${e=>e.ariaDetails}" aria-disabled="${e=>e.ariaDisabled}" aria-errormessage="${e=>e.ariaErrormessage}" aria-flowto="${e=>e.ariaFlowto}" aria-haspopup="${e=>e.ariaHaspopup}" aria-hidden="${e=>e.ariaHidden}" aria-invalid="${e=>e.ariaInvalid}" aria-keyshortcuts="${e=>e.ariaKeyshortcuts}" aria-label="${e=>e.ariaLabel}" aria-labelledby="${e=>e.ariaLabelledby}" aria-live="${e=>e.ariaLive}" aria-owns="${e=>e.ariaOwns}" aria-relevant="${e=>e.ariaRelevant}" aria-roledescription="${e=>e.ariaRoledescription}" ${k(`control`)}/>${A(e=>e.suffix,T`<span class="suffix" part="suffix" id="${e=>`${e.id||`control`}-suffix`}" ?aria-hidden="${e=>e.hideAffixFromScreenReader}">${e=>e.suffix}</span>`)}</div>${A(e=>!e.hideStep&&!e.readOnly&&!e.disabled,T`<div class="controls" part="controls"><div class="step-up" part="step-up" @click="${e=>e.stepUp()}"><slot name="step-up-glyph">${t.stepUpGlyph||``}</slot></div><div class="step-down" part="step-down" @click="${e=>e.stepDown()}"><slot name="step-down-glyph">${t.stepDownGlyph||``}</slot></div></div>`)} ${Ct(e,t)}</div></template>`,iFe=(e,t)=>O` ${hu(e,t)} ::part(label){color: var(--neutral-foreground-rest)}fast-text-field{display: unset}.controls{margin-bottom: auto;margin-inline-end: 5px;margin-top: auto}.step-down, .step-up{display: block;fill: var(--neutral-foreground-rest)}.step-down-glyph, .step-up-glyph{padding: unset}::part(end){margin-inline-end: unset}${X0}`,n4=/* @__PURE__ */ new Map,r4=e=>{let t=n4.get(e);if(t)return t;let n=new Intl.NumberFormat(e).formatToParts(12345.6),r=[...new Intl.NumberFormat(e,{useGrouping:!1}).format(9876543210)],i={decimalSeparator:n.find(e=>e.type===`decimal`)?.value||`.`,groupSeparator:n.find(e=>e.type===`group`)?.value||``,digits:/* @__PURE__ */ new Set([...`0123456789`,...r]),zeroDigits:/* @__PURE__ */ new Set([`0`,r[r.length-1]])};return n4.set(e,i),i},i4=(e,t)=>{let{decimalSeparator:n,groupSeparator:r}=r4(t);return{decimalSeparator:n,groupSeparator:r}},aFe=/[kmb]\s*$/i,a4=(e,t)=>{let{decimalSeparator:n,digits:r,zeroDigits:i}=r4(t),a=!0;return t=>{let o=e[t];return o===n?(a=!1,!0):o===`-`||o===`−`?!0:!r.has(o)||a&&i.has(o)?!1:(a=!1,!0)}},o4=(e,t,n,r)=>{let i=Math.min(Math.max(n,0),e.length),a=e.length-t.length;if(a>0&&a<=i&&e.slice(0,i-a)+e.slice(i)===t)return i-a;if(i===e.length&&aFe.test(e))return t.length;let o=a4(e,r),s=0;for(let e=0;e<i;e+=1)o(e)&&(s+=1);let c=a4(t,r);if(s===0){for(let e=0;e<t.length;e+=1)if(c(e))return e;return i===e.length?t.length:0}let l=0;for(let e=0;e<t.length;e+=1)if(c(e)&&(l+=1,l===s))return e+1;return t.length},s4=(e,t)=>{let{groupSeparator:n,decimalSeparator:r}=r4(t),i=e.trim();return n&&(i=i.split(n).join(``)),r!==`.`&&(i=i.replace(r,`.`)),i},c4=(e,t)=>{let{decimalSeparator:n}=r4(t),r=0;for(let t of e)t===n&&(r+=1);return r},l4=(e,t)=>c4(e,t)>1,oFe=(e,t,n)=>{let r=s4(String(e??``),t);return!r||!/^-?\d+$/.test(r)?!1:r.replace(/^-/,``).length>=n},u4=(e,t,n,r)=>oFe(e,n,r)&&c4(t,n)>0,sFe=(e,t)=>{let n=e.startsWith(`-`),r=n?e.slice(1):e,i=r4(t).groupSeparator||`,`,a=[],o=r;for(;o.length>3;)a.unshift(o.slice(-3)),o=o.slice(0,-3);a.unshift(o);let s=a.join(i);return n?`-${s}`:s},cFe=e=>{let t=e.replace(/^-/,``),n=t.indexOf(`.`);return(n===-1?t:t.slice(0,n)).length>15},lFe=(e,t,n)=>{let r=e.startsWith(`-`),i=r?e.slice(1):e,a=i.indexOf(`.`),o=a===-1?i:i.slice(0,a),s=a===-1?``:i.slice(a+1),c=n.minimumFractionDigits,l=n.maximumFractionDigits;l!==void 0&&s.length>l&&(s=s.slice(0,l)),c!==void 0&&s.length<c&&(s=s.padEnd(c,`0`));let u=r?`-${o}`:o,d=sFe(u,t),{decimalSeparator:f}=i4(e,t);return a===-1?c!==void 0&&c>0?`${d}${f}${`0`.repeat(c)}`:d:l===0?d:`${d}${f}${s}`},uFe=(e,t,n)=>{let r=BigInt(e);if(n!==void 0&&!Number.isNaN(n)){let e=BigInt(Math.trunc(n));r>e&&(r=e)}if(t!==void 0&&!Number.isNaN(t)){let e=BigInt(Math.trunc(t));r<e&&(r=e)}return r.toString()},d4=(e,t)=>{let{decimalSeparator:n}=i4(e,t);return n===`.`?e:e.replace(/\./g,n)},dFe=(e,t)=>{let n=s4(String(e),t),r=n.replace(/^-/,``).replace(`.`,``).length;return/^-?\d+(\.\d+)?$/.test(n)&&r>15?n:String(new Mf(t).parse(String(e)))},f4=(e,t,n)=>e===``?``:cFe(e)&&/^-?\d+(\.\d*)?$/.test(e)?lFe(e,t,n):Intl.NumberFormat(t,n).format(Number(e)),p4=(e,t)=>{if(!e||e===``)return e;let n=Number(e);if(isNaN(n))return e;let r=e.indexOf(`.`),i=r!==-1,a=i?e.length-r-1:0,o=t.minimumFractionDigits,s=t.maximumFractionDigits;if(a>=o&&a<=s)return e;let c=e;if(a<o){i||(c=e+`.`);let t=o-a;c+=`0`.repeat(t)}if(a>s){let t=i?e.substring(0,r):e,n=(i?e.substring(r+1):``).substring(0,s);c=s===0?t:`${t}.${n}`}return c},fFe=(e,t,n)=>{let{decimalSeparator:r}=i4(e,n),i=r.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`),a=RegExp(`${i}(\\d*?)(0+)$`),o=e.match(a);if(o){let e=o[1],n=o[2],r=String(t);if(!isNaN(Number(t))){if(r.includes(`.`)){let t=r.split(`.`)[1],i=Math.max(0,n.length-(t.length-e.length));return r+`0`.repeat(i)}return r+`.`+e+n}}return String(t)},m4=(e,t,n=!0,r)=>{if(e==null||e===``)return``;let i=typeof e==`number`?e.toString():e,a=r??12;if(l4(i,t))return``;let o;if(n)o=dFe(i,t);else{let{decimalSeparator:e}=i4(i,t);if(e!==`.`){o=i.replace(RegExp(`\\${e}`,`g`),`.`);let t=o.indexOf(`.`);t!==-1&&(o=o.substring(0,t))}else o=i}if(o=String(o),!/^-?\d*\.?\d+$/.test(o))return``;if(a!==void 0&&o.replace(`.`,``).replace(/^0+/,``).length>a){let e=o.indexOf(`.`);if(e!==-1){let t=o.substring(0,e),n=t.length;if(n>=a)return o.substring(0,a);{let r=a-n;return`${t}.${o.substring(e+1).substring(0,r)}`}}return o.substring(0,a)}return o},pFe=(e,t,n,r)=>{if(n!==void 0&&c4(e,t)>0){let i=s4(e,t),a=i.indexOf(`.`),o=a===-1?i:i.slice(0,a);if(u4(r===void 0?o:r,e,t,n))return``}let i=m4(e,t,!0,n);return fFe(e,i,t)},h4=(e,t,n=!0,r,i,a)=>{let o=m4(e,t,n,a);if(!o)return``;let s=o.replace(/^-/,``).replace(`.`,``).length;if(/^-?\d+$/.test(o)&&s>15)try{return uFe(o,r,i)}catch{return o}let c=parseFloat(o);return isNaN(c)?c=``:(c=Math.min(c,i??c),c=Math.max(c,r??c)),String(c)},mFe=(e,t)=>{try{let n=typeof e==`string`?e:e.toString(),r=n.indexOf(`.`);if(r===-1)return(parseInt(n)+t).toString();let i=n.substring(r+1),a=i.length-1,o=parseInt(i.charAt(a))+1;if(o<=9){let e=i.substring(0,a)+o;return n.substring(0,r+1)+e}{let e=``,t=1;for(let n=a;n>=0;--n){let r=parseInt(i.charAt(n))+t;r<=9?(e=r+e,t=0):(e=`0`+e,t=1)}return t===1?parseInt(n.substring(0,r))+1+`.`+e:n.substring(0,r+1)+e}}catch{return((typeof e==`string`?parseFloat(e):e)+t).toString()}},hFe=(e,t)=>{try{let n=typeof e==`string`?e:e.toString(),r=n.indexOf(`.`);if(r===-1)return(parseInt(n)-t).toString();let i=n.substring(r+1),a=i.length-1,o=parseInt(i.charAt(a))-1;if(o>=0){let e=i.substring(0,a)+o;return n.substring(0,r+1)+e}{let e=``,t=1;for(let n=a;n>=0;--n){let r=parseInt(i.charAt(n))-t;r>=0?(e=r+e,t=0):(e=`9`+e,t=1)}return t===1?parseInt(n.substring(0,r))-1+`.`+e:n.substring(0,r+1)+e}}catch{return((typeof e==`string`?parseFloat(e):e)-t).toString()}},g4=e=>{try{let t=typeof e==`string`?e:e.toString(),n=t.indexOf(`.`);if(n===-1)return 1;let r=t.substring(n+1).length;if(r===0)return 1;let i=10**-r;return parseFloat(i.toFixed(r))}catch{let t=typeof e==`string`?e:e.toString(),n=t.indexOf(`.`);if(n===-1)return 1;let r=t.substring(n+1).length;if(r===0)return 1;let i=10**-r;return parseFloat(i.toFixed(r))}};var _4=class extends G0(gu){constructor(){super(...arguments),this.autocomplete=`off`,this.hideStep=!1,this.value=``,this.withFormatting=!1,this.locale=`en-US`,this.autoStepPrecision=!1,this.maximumInputPrecision=12,this.options={maximumFractionDigits:3,minimumFractionDigits:0}}autocompleteChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autocomplete=this.autocomplete)}stepUp(){if(/^-?\d*\.?\d+$/.test(this.value)&&this.value!==``){let e;e=this.autoStepPrecision?g4(this.value):this.step;let t=mFe(this.value,e);this.value=t.toString()}else{let e=this.min>0?this.min:this.max<0?this.max:this.min?0:this.step;this.value=e.toString()}this.control&&(this.min!==void 0||this.max!==void 0?this.control.value=h4(this.value,this.locale,this.withFormatting,this.min,this.max,this.maximumInputPrecision):this.control.value=this.value),this.handleTextInput()}stepDown(){if(/^-?\d*\.?\d+$/.test(this.value)&&this.value!==``){let e;e=this.autoStepPrecision?g4(this.value):this.step;let t=hFe(this.value,e);this.value=t.toString()}else{let e=this.min>0?this.min:this.max<0?this.max:this.min?0:0-this.step;this.value=e.toString()}this.control&&(this.min!==void 0||this.max!==void 0?this.control.value=h4(this.value,this.locale,this.withFormatting,this.min,this.max,this.maximumInputPrecision):this.control.value=this.value),this.handleTextInput()}hasSeparatorWithoutDecimals(){return/* @__PURE__ */ RegExp(`[.]$`)}writeControlValue(e){let t=this.control,n=t.value;if(n===e)return;let{selectionStart:r,selectionEnd:i}=t;if(t.value=e,r===null||t.getRootNode().activeElement!==t)return;let a=o4(n,e,r,this.locale),o=i===null||i===r?a:o4(n,e,i,this.locale);t.setSelectionRange(a,o)}restoreControlToCommittedValue(){if(!this.control)return;let e=this.value;this.writeControlValue(e?this.withFormatting?f4(e,this.locale,this.options):d4(String(e),this.locale):``),this.isUserInput=!1}skipGroupSeparator(e){if(!this.withFormatting||e.ctrlKey||e.metaKey||e.altKey)return;let{value:t,selectionStart:n,selectionEnd:r}=this.control;if(n===null||n!==r)return;let{groupSeparator:i}=i4(t,this.locale);i&&(e.key===`Backspace`&&t[n-1]===i?this.control.setSelectionRange(n-1,n-1):e.key===`Delete`&&t[n]===i&&this.control.setSelectionRange(n+1,n+1))}handleKeyDown(e){return e.key===`Enter`&&(this.isUserInput=!1),this.control&&(e.key===`Backspace`||e.key===`Delete`)&&this.skipGroupSeparator(e),super.handleKeyDown(e)}handleTextInput(){if(this.control&&this.control.value!==`-`&&this.control.value!==`-0`){if(l4(this.control.value,this.locale)){this.restoreControlToCommittedValue();return}if(u4(this.value,this.control.value,this.locale,this.maximumInputPrecision)){this.restoreControlToCommittedValue();return}this.isUserInput=!0,this.withFormatting&&!new Mf(this.locale).hasSeparator(this.control.value)?x.queueUpdate(()=>{let e=this.value,t=pFe(this.control.value,this.locale,this.maximumInputPrecision,this.value);if(!t&&e&&this.control.value!==``){this.restoreControlToCommittedValue();return}if(this.control){let e=this.withFormatting&&t!==``?f4(t,this.locale,this.options):d4(t,this.locale);this.writeControlValue(p4(e,this.options))}this.value=p4(t,this.options),this.$emit(`input`)}):!this.withFormatting&&!this.hasSeparatorWithoutDecimals().test(this.control.value)&&x.queueUpdate(()=>{this.control&&this.writeControlValue(this.control.value.replace(/[^0-9.-]/g,``).replace(/(?!^)-/g,``)),this.value=this.control?.value||``,this.$emit(`input`)})}}valueChanged(e,t){if(t==null&&this.control){this.control.value=``;return}if(t!=null&&t!==e){if(!this.isUserInput){this.value=h4(this.value,this.locale,!1,this.min,this.max,this.maximumInputPrecision),x.queueUpdate(()=>{this.isUserInput||this.control&&(this.control.value=this.withFormatting&&this.value?f4(this.value,this.locale,this.options):this.value)});return}return}}handleBlur(){if(!this.control)return;this.isUserInput=!1;let e=h4(this.control.value,this.locale,this.withFormatting,this.min,this.max,this.maximumInputPrecision);e&&/^-?\d*\.?\d+$/.test(e)&&(this.value=this.withFormatting?p4(e,this.options):e),this.control.value=this.withFormatting&&this.value?f4(this.value,this.locale,this.options):this.value,this.$emit(`input`)}};q([D],_4.prototype,`autocomplete`,void 0),q([D({mode:`boolean`})],_4.prototype,`hideStep`,void 0),q([D({converter:{fromView:e=>e==null?``:String(e),toView:e=>e}})],_4.prototype,`value`,void 0),q([D({mode:`boolean`})],_4.prototype,`withFormatting`,void 0),q([D],_4.prototype,`locale`,void 0),q([D({mode:`boolean`})],_4.prototype,`autoStepPrecision`,void 0),q([D],_4.prototype,`maximumInputPrecision`,void 0);let v4={delegatesFocus:!0,mode:`open`},y4={stepDownGlyph:`
927
927
  <svg class="step-down-glyph" viewBox="0 0 24 24" width="1rem" height="1rem" xmlns="http://www.w3.org/2000/svg">
928
928
  <path d="M6.1018 8C5.02785 8 4.45387 9.2649 5.16108 10.0731L10.6829 16.3838C11.3801 17.1806 12.6197 17.1806 13.3169 16.3838L18.8388 10.0731C19.5459 9.2649 18.972 8 17.898 8H6.1018Z"/>
929
929
  </svg>
@@ -931,18 +931,18 @@ let aL={prefix:`fas`,iconName:`0`,icon:[320,512,[],`30`,`M0 192C0 103.6 71.6 32
931
931
  <svg class="step-up-glyph" viewBox="0 0 24 24" width="1rem" height="1rem" xmlns="http://www.w3.org/2000/svg">
932
932
  <path d="M6.1018 16.9814C5.02785 16.9814 4.45387 15.7165 5.16108 14.9083L10.6829 8.59762C11.3801 7.80079 12.6197 7.80079 13.3169 8.59762L18.8388 14.9083C19.5459 15.7165 18.972 16.9814 17.898 16.9814H6.1018Z"/>
933
933
  </svg>
934
- `};_4.compose(Object.assign({baseName:`number-field`,template:t4,styles:nFe,shadowOptions:v4},y4));let b4=(e,t)=>O` :host{display: block}.label{display: flex;align-items: center;padding: 0 10px;height: 32px;font-weight: bold;user-select: none}.items{display: flex;flex-direction: column}/* Indent options inside the group */ ::slotted(*){padding-left: 20px}`,x4=(e,t)=>T`<template role="option"><div class="label" part="label" role="presentation">${e=>e.groupLabel}</div><div class="items" part="items" role="group" aria-label="${e=>e.groupLabel}"><slot></slot></div></template>`;var S4=class extends Ir{connectedCallback(){super.connectedCallback(),this.disabled=!0}};q([D({attribute:`label`})],S4.prototype,`groupLabel`,void 0),S4.compose({baseName:`optgroup`,template:x4,styles:b4});let C4=(e,t)=>ca(e,t),w4=(e,t)=>O` ${vu(e,t)} :host{height: calc(var(--design-unit) * 2px)}`;var T4=class extends sa{};let E4={indeterminateIndicator1:`<span class="indeterminate-indicator-1" part="indeterminate-indicator-1"></span>`,indeterminateIndicator2:`<span class="indeterminate-indicator-1" part="indeterminate-indicator-1"></span>`},mFe=T4.compose(Object.assign({baseName:`progress`,template:C4,styles:w4,shadowOptions:void 0},E4));function hFe(e){return new Proxy(e,{get:(e,t,...n)=>{if([`withPrefix`,`withShadowRootMode`,`withElementDisambiguation`].includes(t))throw Error(`Modification of the Design System is not allowed.`);return Reflect.get(e,t,...n)}})}let gFe=(e,t=`foundation`,n,r)=>(e&&gT(n??AT,r??jT,e),hFe(ci.getOrCreate(e).withPrefix(t))),D4={app:`app`,component:`component`};gFe().register(mFe({prefix:`next-update`}));var O4=class extends P{constructor(){super(...arguments),this.timeTillNextUpdate={totalMs:1e4,remainMs:1e4,remainPercent:100},this.mode=D4.app,this.status={isOnline:!0,isHealthy:!0,browserInformation:{},socket:{},resources:{}},this.onSystemHealthChanged=e=>{this.status=e.detail,this.resourceList=Object.values(this.status.resources).sort((e,t)=>Number(t.isConnected)-Number(e.isConnected))},this.onOpen=(e=!1)=>{this.isOpen=!0,this.wasOpenedByUser=e,this.isDismissed=!1},this.onClose=()=>{this.isOpen=!1,this.wasOpenedByUser=!1,this.isDismissed=!1},this.onDismiss=()=>{if(this.isDismissed||this.status.isHealthy){this.onClose();return}this.isDismissed=!0},this.onUpdateStatus=()=>{this.status.runAllChecks()},this.onReportStatus=()=>{this.status.reportStabilityToGenesis()},this.onReloadWindow=()=>{location.reload()},this.onDocumentKeydown=e=>{if(!e.defaultPrevented)switch(e.key){case Nn.ArrowUp:e.ctrlKey&&e.altKey&&!this.isOpen&&(this.onOpen(!0),e.preventDefault());break;case Nn.ArrowDown:e.ctrlKey&&e.altKey&&this.isOpen&&(this.onClose(),e.preventDefault());break;case jn:this.isOpen&&(this.onDismiss(),e.preventDefault())}}}isOpenChanged(){this.updateTemplateClassNames()}isDismissedChanged(){this.updateTemplateClassNames()}modeChanged(){this.$fastController.isConnected&&this.mode===D4.component&&hb.warn(`SystemHealthOverlay has support for app overlays only right now.`)}logLevelChanged(){tb.level=this.logLevel}statusChanged(e,t){this.updateClassNames(),this.$fastController.isConnected&&(t?.isHealthy===!1&&!this.isOpen&&this.onOpen(),t?.isHealthy===!0&&this.isOpen&&!this.wasOpenedByUser&&this.onClose(),this.startTimeTillNextUpdateCountdown())}updateClassNames(){this.isOnlineClassNames=fn([`healthy`,this.status.isOnline],[`unhealthy`,!this.status.isOnline]),this.isHealthyClassNames=fn([`healthy`,this.status.isHealthy],[`unhealthy`,!this.status.isHealthy]),this.isSocketHealthyClassNames=fn([`healthy`,this.isSocketHealthy],[`unhealthy`,!this.isSocketHealthy]),this.resourcesAllConnectedClassNames=fn([`healthy`,this.status.resourcesAllConnected],[`unhealthy`,!this.status.resourcesAllConnected],[`hidden`,!this.validResourceList]),this.updateTemplateClassNames()}updateTemplateClassNames(){this.templateClassNames=fn([`open`,this.isOpen],[`dismissed`,this.isDismissed]),this.containerClassNames=fn(this.isHealthyClassNames,[`open`,this.isOpen],[`dismissed`,this.isDismissed])}startTimeTillNextUpdateCountdown(){let e=1e3,t=this.status.nextUpdate-Date.now(),n=t,r=100;clearInterval(this.timeTillNextUpdateInterval),this.timeTillNextUpdate={totalMs:t,remainMs:n,remainPercent:r},this.timeTillNextUpdateInterval=setInterval(()=>{n-=e,r=Math.floor(n/t*100),this.timeTillNextUpdate={totalMs:t,remainMs:n,remainPercent:r},n<0&&clearInterval(this.timeTillNextUpdateInterval)},e)}connectedCallback(){super.connectedCallback(),this.networkMonitor.create(),this.addEventListeners()}disconnectedCallback(){super.disconnectedCallback(),this.networkMonitor.destroy(),this.removeEventListeners()}get isSocketHealthy(){return this.status.isOnline&&(!this.status.socket.isConfigured||this.status.socket.isConfigured&&this.status.socket.isConnected)}get validResourceList(){return this.resourceList?.length>0}eventBridge(){return this.config.eventEmitter??document}addEventListeners(){this.eventBridge().addEventListener(Jy,this.onSystemHealthChanged,!0),document.addEventListener(`keydown`,this.onDocumentKeydown)}removeEventListeners(){this.eventBridge().removeEventListener(Jy,this.onSystemHealthChanged,!0),document.removeEventListener(`keydown`,this.onDocumentKeydown)}static getCheckmarkTemplate(e){return e?T`<span class="checkmark">&#x2714;</span>`:T`<span class="checkmark">&#10008;</span>`}};q([Xy],O4.prototype,`config`,void 0),q([ob],O4.prototype,`networkMonitor`,void 0),q([C],O4.prototype,`resourceList`,void 0),q([C],O4.prototype,`isOpen`,void 0),q([C],O4.prototype,`wasOpenedByUser`,void 0),q([C],O4.prototype,`isDismissed`,void 0),q([C],O4.prototype,`templateClassNames`,void 0),q([C],O4.prototype,`containerClassNames`,void 0),q([C],O4.prototype,`isOnlineClassNames`,void 0),q([C],O4.prototype,`isHealthyClassNames`,void 0),q([C],O4.prototype,`isSocketHealthyClassNames`,void 0),q([C],O4.prototype,`resourcesAllConnectedClassNames`,void 0),q([C],O4.prototype,`timeTillNextUpdate`,void 0),q([C],O4.prototype,`saveDataCallback`,void 0),q([D],O4.prototype,`mode`,void 0),q([D({attribute:`log-level`,converter:E})],O4.prototype,`logLevel`,void 0),q([C],O4.prototype,`status`,void 0);let k4=(e,t)=>T`<template class="${e=>e.templateClassNames}"><header class="${e=>e.isHealthyClassNames}" part="header"><h1>System ${e=>Rn(e.isHealthyClassNames)}</h1>${A(e=>!e.status.isHealthy,T`<span class="data-warning">Data Validity Unknown</span>`)}<div class="controls">${A(e=>e.isDismissed,T`<a href="#" class="open-button" @click="${e=>e.onOpen(!0)}">View Status</a>`)} ${A(e=>!e.isDismissed,T`<a href="#" class="update-status-button" @click="${e=>e.onUpdateStatus()}">
934
+ `};_4.compose(Object.assign({baseName:`number-field`,template:t4,styles:iFe,shadowOptions:v4},y4));let b4=(e,t)=>O` :host{display: block}.label{display: flex;align-items: center;padding: 0 10px;height: 32px;font-weight: bold;user-select: none}.items{display: flex;flex-direction: column}/* Indent options inside the group */ ::slotted(*){padding-left: 20px}`,x4=(e,t)=>T`<template role="option"><div class="label" part="label" role="presentation">${e=>e.groupLabel}</div><div class="items" part="items" role="group" aria-label="${e=>e.groupLabel}"><slot></slot></div></template>`;var S4=class extends Ir{connectedCallback(){super.connectedCallback(),this.disabled=!0}};q([D({attribute:`label`})],S4.prototype,`groupLabel`,void 0),S4.compose({baseName:`optgroup`,template:x4,styles:b4});let C4=(e,t)=>ca(e,t),w4=(e,t)=>O` ${vu(e,t)} :host{height: calc(var(--design-unit) * 2px)}`;var T4=class extends sa{};let E4={indeterminateIndicator1:`<span class="indeterminate-indicator-1" part="indeterminate-indicator-1"></span>`,indeterminateIndicator2:`<span class="indeterminate-indicator-1" part="indeterminate-indicator-1"></span>`},gFe=T4.compose(Object.assign({baseName:`progress`,template:C4,styles:w4,shadowOptions:void 0},E4));function _Fe(e){return new Proxy(e,{get:(e,t,...n)=>{if([`withPrefix`,`withShadowRootMode`,`withElementDisambiguation`].includes(t))throw Error(`Modification of the Design System is not allowed.`);return Reflect.get(e,t,...n)}})}let vFe=(e,t=`foundation`,n,r)=>(e&&gT(n??AT,r??jT,e),_Fe(ci.getOrCreate(e).withPrefix(t))),D4={app:`app`,component:`component`};vFe().register(gFe({prefix:`next-update`}));var O4=class extends P{constructor(){super(...arguments),this.timeTillNextUpdate={totalMs:1e4,remainMs:1e4,remainPercent:100},this.mode=D4.app,this.status={isOnline:!0,isHealthy:!0,browserInformation:{},socket:{},resources:{}},this.onSystemHealthChanged=e=>{this.status=e.detail,this.resourceList=Object.values(this.status.resources).sort((e,t)=>Number(t.isConnected)-Number(e.isConnected))},this.onOpen=(e=!1)=>{this.isOpen=!0,this.wasOpenedByUser=e,this.isDismissed=!1},this.onClose=()=>{this.isOpen=!1,this.wasOpenedByUser=!1,this.isDismissed=!1},this.onDismiss=()=>{if(this.isDismissed||this.status.isHealthy){this.onClose();return}this.isDismissed=!0},this.onUpdateStatus=()=>{this.status.runAllChecks()},this.onReportStatus=()=>{this.status.reportStabilityToGenesis()},this.onReloadWindow=()=>{location.reload()},this.onDocumentKeydown=e=>{if(!e.defaultPrevented)switch(e.key){case Nn.ArrowUp:e.ctrlKey&&e.altKey&&!this.isOpen&&(this.onOpen(!0),e.preventDefault());break;case Nn.ArrowDown:e.ctrlKey&&e.altKey&&this.isOpen&&(this.onClose(),e.preventDefault());break;case jn:this.isOpen&&(this.onDismiss(),e.preventDefault())}}}isOpenChanged(){this.updateTemplateClassNames()}isDismissedChanged(){this.updateTemplateClassNames()}modeChanged(){this.$fastController.isConnected&&this.mode===D4.component&&hb.warn(`SystemHealthOverlay has support for app overlays only right now.`)}logLevelChanged(){tb.level=this.logLevel}statusChanged(e,t){this.updateClassNames(),this.$fastController.isConnected&&(t?.isHealthy===!1&&!this.isOpen&&this.onOpen(),t?.isHealthy===!0&&this.isOpen&&!this.wasOpenedByUser&&this.onClose(),this.startTimeTillNextUpdateCountdown())}updateClassNames(){this.isOnlineClassNames=fn([`healthy`,this.status.isOnline],[`unhealthy`,!this.status.isOnline]),this.isHealthyClassNames=fn([`healthy`,this.status.isHealthy],[`unhealthy`,!this.status.isHealthy]),this.isSocketHealthyClassNames=fn([`healthy`,this.isSocketHealthy],[`unhealthy`,!this.isSocketHealthy]),this.resourcesAllConnectedClassNames=fn([`healthy`,this.status.resourcesAllConnected],[`unhealthy`,!this.status.resourcesAllConnected],[`hidden`,!this.validResourceList]),this.updateTemplateClassNames()}updateTemplateClassNames(){this.templateClassNames=fn([`open`,this.isOpen],[`dismissed`,this.isDismissed]),this.containerClassNames=fn(this.isHealthyClassNames,[`open`,this.isOpen],[`dismissed`,this.isDismissed])}startTimeTillNextUpdateCountdown(){let e=1e3,t=this.status.nextUpdate-Date.now(),n=t,r=100;clearInterval(this.timeTillNextUpdateInterval),this.timeTillNextUpdate={totalMs:t,remainMs:n,remainPercent:r},this.timeTillNextUpdateInterval=setInterval(()=>{n-=e,r=Math.floor(n/t*100),this.timeTillNextUpdate={totalMs:t,remainMs:n,remainPercent:r},n<0&&clearInterval(this.timeTillNextUpdateInterval)},e)}connectedCallback(){super.connectedCallback(),this.networkMonitor.create(),this.addEventListeners()}disconnectedCallback(){super.disconnectedCallback(),this.networkMonitor.destroy(),this.removeEventListeners()}get isSocketHealthy(){return this.status.isOnline&&(!this.status.socket.isConfigured||this.status.socket.isConfigured&&this.status.socket.isConnected)}get validResourceList(){return this.resourceList?.length>0}eventBridge(){return this.config.eventEmitter??document}addEventListeners(){this.eventBridge().addEventListener(Jy,this.onSystemHealthChanged,!0),document.addEventListener(`keydown`,this.onDocumentKeydown)}removeEventListeners(){this.eventBridge().removeEventListener(Jy,this.onSystemHealthChanged,!0),document.removeEventListener(`keydown`,this.onDocumentKeydown)}static getCheckmarkTemplate(e){return e?T`<span class="checkmark">&#x2714;</span>`:T`<span class="checkmark">&#10008;</span>`}};q([Xy],O4.prototype,`config`,void 0),q([ob],O4.prototype,`networkMonitor`,void 0),q([C],O4.prototype,`resourceList`,void 0),q([C],O4.prototype,`isOpen`,void 0),q([C],O4.prototype,`wasOpenedByUser`,void 0),q([C],O4.prototype,`isDismissed`,void 0),q([C],O4.prototype,`templateClassNames`,void 0),q([C],O4.prototype,`containerClassNames`,void 0),q([C],O4.prototype,`isOnlineClassNames`,void 0),q([C],O4.prototype,`isHealthyClassNames`,void 0),q([C],O4.prototype,`isSocketHealthyClassNames`,void 0),q([C],O4.prototype,`resourcesAllConnectedClassNames`,void 0),q([C],O4.prototype,`timeTillNextUpdate`,void 0),q([C],O4.prototype,`saveDataCallback`,void 0),q([D],O4.prototype,`mode`,void 0),q([D({attribute:`log-level`,converter:E})],O4.prototype,`logLevel`,void 0),q([C],O4.prototype,`status`,void 0);let k4=(e,t)=>T`<template class="${e=>e.templateClassNames}"><header class="${e=>e.isHealthyClassNames}" part="header"><h1>System ${e=>Rn(e.isHealthyClassNames)}</h1>${A(e=>!e.status.isHealthy,T`<span class="data-warning">Data Validity Unknown</span>`)}<div class="controls">${A(e=>e.isDismissed,T`<a href="#" class="open-button" @click="${e=>e.onOpen(!0)}">View Status</a>`)} ${A(e=>!e.isDismissed,T`<a href="#" class="update-status-button" @click="${e=>e.onUpdateStatus()}">
935
935
  Update Status </a><a href="#" class="report-status-button" @click="${e=>e.onReportStatus()}">
936
936
  Report Status </a>`)} ${A(e=>!e.status.isHealthy&&e.saveDataCallback,T`<a href="#" class="save-data-button" @click="${e=>e.saveDataCallback()}">
937
937
  Save Data </a>`)}<a href="#" class="reload-window-button" @click="${e=>e.onReloadWindow()}">
938
- Reload Window </a><a href="#" class="dismiss-button" @click="${e=>e.onDismiss()}">Dismiss (Esc)</a></div></header><div class="container ${e=>e.containerClassNames}" part="container"><section class="network-section ${e=>e.isOnlineClassNames}" part="network-section"><h2>Network ${e=>Rn(e.status.isOnline?`online`:`offline`)}</h2><dl class="resource-list"><div class="resource ${e=>e.isOnlineClassNames}"><div class="attributes"><div class="online"><dt>Online</dt><dd>${e=>e.status.isOnline}</dd></div><div class="authenticated"><dt>Authenticated</dt><dd>${e=>e.status.isAuthenticated}</dd></div>${A(e=>e.status.username,T`<div class="username"><dt>Username</dt><dd>${e=>e.status.username}</dd></div>`)}<div class="platform-type"><dt>Platform Type</dt><dd>${e=>Rn(e.status.browserInformation.platform?.type)}</dd></div><div class="os-name"><dt>OS Name</dt><dd>${e=>Rn(e.status.browserInformation.os?.name)}</dd></div><div class="os-version"><dt>OS Version</dt><dd>${e=>e.status.browserInformation.os?.version}</dd></div></div><div class="attributes"><div class="browser-name"><dt>Browser Name</dt><dd>${e=>Rn(e.status.browserInformation.browser?.name)}</dd></div><div class="browser-version"><dt>Browser Version</dt><dd>${e=>e.status.browserInformation.browser?.version}</dd></div><div class="first-updated"><dt>First updated</dt><dd>${e=>Of(e.status.firstUpdated)}</dd></div><div class="last-updated"><dt>Last updated</dt><dd>${e=>Of(e.status.lastUpdated)}</dd></div>${A(e=>!e.status.socket.reconnectionLimitReached,T`<div class="next-update"><dt>Next update</dt><dd>${e=>Of(e.status.nextUpdate)}</dd></div><div class="next-update-progress"><dt></dt><dd><next-update-progress value="${e=>e.timeTillNextUpdate.remainPercent}"></next-update-progress></dd></div>`)}</div><div class="controls">${e=>O4.getCheckmarkTemplate(e.status.isOnline)}</div></div></dl></section><section class="socket-section ${e=>e.isSocketHealthyClassNames}" part="socket-section"><h2>WebSocket ${e=>Rn(e.isSocketHealthyClassNames)}</h2><dl class="resource-list"><div class="resource ${e=>e.isSocketHealthyClassNames}"><div class="attributes"><div class="configured"><dt>Configured</dt><dd>${e=>e.status.socket.isConfigured}</dd></div><div class="connected"><dt>Connected</dt><dd>${e=>e.status.socket.isConnected}</dd></div><div class="reconnecting"><dt>Reconnecting</dt><dd>${e=>e.status.socket.isReconnecting}</dd></div><div class="reconnection-exhausted"><dt>Reconnection exhausted</dt><dd>${e=>e.status.socket.reconnectionLimitReached}</dd></div></div><div class="attributes"><div class="disconnected-by-server"><dt>Disconnected by server</dt><dd>${e=>e.status.socket.isDisconnectedByServer}</dd></div><div class="closed-clean"><dt>Closed clean</dt><dd>${e=>e.status.socket.closedClean}</dd></div><div class="closed-code"><dt>Closed code</dt><dd>${e=>e.status.socket.closedCode}</dd></div><div class="closed-reason"><dt>Closed reason</dt><dd>${e=>e.status.socket.closedReason}</dd></div></div><div class="controls">${e=>O4.getCheckmarkTemplate(e.isSocketHealthy)}</div></div></dl></section><section class="resource-section ${e=>e.resourcesAllConnectedClassNames}" part="resource-section"><h2>Resources ${e=>Rn(e.resourcesAllConnectedClassNames)}</h2><dl class="resource-list">${j(e=>e.resourceList,T`<div class="resource ${e=>e.isConnected?`healthy`:`unhealthy`}"><div class="attributes"><div class="name"><dt>Name</dt><dd>${e=>e.name}</dd></div><div class="status"><dt>Status</dt><dd>${e=>e.isConnected?`Healthy`:`Unhealthy`}</dd></div><div class="last-checked"><dt>Checked</dt><dd>${e=>Of(e.lastUpdated)}</dd></div><div class="subscriptions"><dt>Subscriptions</dt><dd>${e=>e.sourceRef?.length}</dd></div><div class="source-refs"><dt>Source Refs</dt><dd>${e=>e.sourceRef}</dd></div></div><div class="controls">${e=>O4.getCheckmarkTemplate(e.isConnected)}</div></div>`)}</dl></section></div></template>`,A4=(e,t)=>O` :host{--font-family: Menlo, Consolas, monospace;--color-background: black;--color-healthy: green;--color-unhealthy: red;--opacity-low-percent: 10%;--opacity-med-percent: 50%;--opacity-high-percent: 90%;--color-background-opacity-high: rgba(0, 0, 0, 0.9);--color-healthy-opacity-low: rgba(0, 128, 0, 0.1);--color-healthy-opacity-20: rgba(0, 128, 0, 0.2);--color-healthy-opacity-med: rgba(0, 128, 0, 0.5);--color-unhealthy-opacity-low: rgba(255, 0, 0, 0.1);--color-unhealthy-opacity-20: rgba(255, 0, 0, 0.2);--color-unhealthy-opacity-med: rgba(255, 0, 0, 0.5);display: none;position: fixed;inset: 0;width: 100vw;height: 100vh;border: none;z-index: 2147483647;box-sizing: border-box;padding: 2rem 2rem 4rem;overflow: auto;background-color: var(--color-background-opacity-high);line-height: 1.5;font-size: 1rem;font-family: var(--font-family, Menlo, Consolas, monospace) !important}@supports (color: color-mix(in srgb, black, black)){:host{--color-background-opacity-high: color-mix( in srgb, var(--color-background) var(--opacity-high-percent), transparent );--color-healthy-opacity-low: color-mix( in srgb, var(--color-healthy) var(--opacity-low-percent), transparent );--color-healthy-opacity-20: color-mix(in srgb, var(--color-healthy) 20%, transparent);--color-healthy-opacity-med: color-mix( in srgb, var(--color-healthy) var(--opacity-med-percent), transparent );--color-unhealthy-opacity-low: color-mix( in srgb, var(--color-unhealthy) var(--opacity-low-percent), transparent );--color-unhealthy-opacity-20: color-mix(in srgb, var(--color-unhealthy) 20%, transparent);--color-unhealthy-opacity-med: color-mix( in srgb, var(--color-unhealthy) var(--opacity-med-percent), transparent )}}:host(.open.dismissed){display: block;overflow: hidden;padding: 0;height: fit-content;min-height: 45px;background-color: var(--color-unhealthy-opacity-low);inset: unset;position: fixed;bottom: 0}:host(.open.dismissed) header{padding: 0 1em}:host(.open){display: block;height: 100vh}.container{padding: 0 1rem 1.5rem}.container.healthy{background-color: var(--color-healthy-opacity-low)}.container.unhealthy{background-color: var(--color-unhealthy-opacity-low)}.container.open.dismissed{display: none}header{display: flex;justify-content: space-between;align-items: baseline;margin-bottom: 1px;padding: 0.5em 1em;flex-wrap: wrap;flex-direction: row}header h1{font-size: 1em;font-weight: normal}header .controls a{font-size: small;padding: 0 1em 0 0}header.healthy{color: var(--color-healthy);background-color: var(--color-healthy-opacity-low)}header.unhealthy{color: var(--color-unhealthy);background-color: var(--color-unhealthy-opacity-low)}section{padding-top: 1.5em;font-size: x-small}section h2{font-size: 1.3em;margin: 0 0 1em 0;text-align: center;color: var(--color-unhealthy)}section.unhealthy h2{color: var(--color-unhealthy)}section.healthy h2{color: var(--color-healthy)}.hidden{display: none}.resource-list{display: grid;grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));gap: 1rem}.resource{padding: 0.5em 1em;display: grid;grid-template-columns: 3fr 1fr;border-radius: calc(var(--control-corner-radius) * 1px)}.resource.healthy{border: var(--color-healthy-opacity-med) 1px solid;color: var(--color-healthy)}.resource.unhealthy{border: var(--color-unhealthy-opacity-med) 1px solid;color: var(--color-unhealthy)}.resource .attributes > div{display: grid;grid-template-columns: 1fr 2fr}.resource dt{color: inherit;opacity: 0.7}.resource dt:not(:empty)::after{content: ': '}.resource dd{margin: 0 0 0 0.1em}.resource .controls{display: grid;justify-content: center;align-items: center;border-left: 1px var(--color-background-opacity-high) solid}.controls a{display: inline-block;color: inherit;text-underline-offset: 0.2em}.controls .checkmark{font-size: large}.resource.healthy .controls{border-left: 1px var(--color-healthy-opacity-20) solid}.resource.unhealthy .controls{border-left: 1px var(--color-unhealthy-opacity-20) solid}.network-section .resource-list, .socket-section .resource-list{display: grid;grid-template-columns: 1fr}.network-section .resource, .socket-section .resource{grid-template-columns: 2fr 2fr 1fr}next-update-progress{height: 1px;margin: 0 1em 0 0}.resource.healthy next-update-progress::part(determinate){background-color: var(--color-healthy)}.resource.healthy next-update-progress::part(progress){background-color: var(--color-healthy-opacity-20)}.resource.unhealthy next-update-progress::part(determinate){background-color: var(--color-unhealthy)}.resource.unhealthy next-update-progress::part(progress){background-color: var(--color-unhealthy-opacity-20)}.data-warning{font-size: small;margin: 0 0.5em;padding: 0.2em 0.5em;background-color: var(--color-unhealthy-opacity-20)}`,j4={};O4.compose(Object.assign({baseName:`system-health-overlay`,template:k4,styles:A4,shadowOptions:void 0},j4));let M4=O` :host{--pill-fill: var(--neutral-fill-rest, #e5e5e5);--pill-fill-hover: var(--neutral-fill-hover, #d9d9d9);--pill-foreground: var(--neutral-foreground-rest, #1a1a1a);--pill-border-radius: 12px;display: inline-flex}.pill{display: inline-flex;align-items: center;gap: 4px;height: 24px;padding: 0 4px 0 10px;border-radius: var(--pill-border-radius);background: var(--pill-fill);color: var(--pill-foreground);font-size: 12px;line-height: 1}.pill[disabled]{opacity: 50%}.pill-body{display: inline-flex;align-items: center;gap: 4px;border: none;background: transparent;color: inherit;font: inherit;padding: 0;cursor: pointer}.pill-body:disabled{cursor: not-allowed}.pill-body:hover:not(:disabled){background: var(--pill-fill-hover);border-radius: var(--pill-border-radius)}.pill-label{font-weight: 600;white-space: nowrap}.pill-value{white-space: nowrap}.pill-remove{display: inline-flex;align-items: center;justify-content: center;width: 16px;height: 16px;border: none;border-radius: 50%;background: transparent;color: inherit;cursor: pointer;padding: 0}.pill-remove:disabled{cursor: not-allowed}.pill-remove:hover:not(:disabled){background: var(--pill-fill-hover)}`,_Fe=e=>{let t=[e.label,e.value].filter(Boolean).join(`: `);return t?`Remove ${t}`:`Remove`},vFe=e=>T`<div class="pill" part="pill" ?disabled=${e=>e.disabled}><button class="pill-body" part="pill-body" type="button" data-test-id="pill-body" ?disabled=${e=>e.disabled}@click=${e=>e.handleBodyClick()}><span class="pill-label" part="pill-label" data-test-id="pill-label">${e=>e.label}${e=>e.value?`:`:``}</span>${A(e=>e.value,T`<span class="pill-value" part="pill-value" data-test-id="pill-value">${e=>e.value}</span>`)}<slot></slot></button>${A(e=>e.removable,T`<button class="pill-remove" part="pill-remove" type="button" data-test-id="pill-remove" aria-label="${e=>_Fe(e)}" ?disabled=${e=>e.disabled}@click=${(e,t)=>e.handleRemoveClick(t.event)}><${e}-icon name="xmark" size="2xs"></${e}-icon></button>`)}</div>`,N4=T` ${e=>vFe(yb(e))} `,P4={};var F4=class extends P{constructor(){super(...arguments),this.removable=!0,this.disabled=!1}handleBodyClick(){this.disabled||this.$emit(`pill-click`)}handleRemoveClick(e){e?.stopPropagation(),!this.disabled&&this.$emit(`remove`)}};q([D],F4.prototype,`label`,void 0),q([D],F4.prototype,`value`,void 0),q([D({mode:`boolean`})],F4.prototype,`removable`,void 0),q([D({mode:`boolean`})],F4.prototype,`disabled`,void 0),F4.compose(Object.assign({baseName:`pill`,template:N4,styles:M4,shadowOptions:void 0},P4));var I4=`bottom`,L4=`right`,R4=`left`,yFe=`auto`,z4=[`top`,I4,L4,R4],B4=`start`,bFe=`clippingParents`,xFe=`viewport`,V4=`popper`,SFe=`reference`,H4=/*#__PURE__*/ z4.reduce(function(e,t){return e.concat([t+`-`+B4,t+`-end`])},[]),U4=/*#__PURE__*/ [].concat(z4,[yFe]).reduce(function(e,t){return e.concat([t,t+`-`+B4,t+`-end`])},[]),CFe=[`beforeRead`,`read`,`afterRead`,`beforeMain`,`main`,`afterMain`,`beforeWrite`,`write`,`afterWrite`];function W4(e){return e?(e.nodeName||``).toLowerCase():null}function G4(e){if(e==null)return window;if(e.toString()!==`[object Window]`){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function K4(e){return e instanceof G4(e).Element||e instanceof Element}function q4(e){return e instanceof G4(e).HTMLElement||e instanceof HTMLElement}function J4(e){return typeof ShadowRoot>`u`?!1:e instanceof G4(e).ShadowRoot||e instanceof ShadowRoot}function wFe(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];q4(i)&&W4(i)&&(Object.assign(i.style,n),Object.keys(r).forEach(function(e){var t=r[e];t===!1?i.removeAttribute(e):i.setAttribute(e,t===!0?``:t)}))})}function TFe(e){var t=e.state,n={popper:{position:t.options.strategy,left:`0`,top:`0`,margin:`0`},arrow:{position:`absolute`},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],i=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]=``,e},{});q4(r)&&W4(r)&&(Object.assign(r.style,a),Object.keys(i).forEach(function(e){r.removeAttribute(e)}))})}}var EFe={name:`applyStyles`,enabled:!0,phase:`write`,fn:wFe,effect:TFe,requires:[`computeStyles`]};function Y4(e){return e.split(`-`)[0]}var X4=Math.max,Z4=Math.min,Q4=Math.round;function $4(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+`/`+e.version}).join(` `):navigator.userAgent}function e3(){return!/^((?!chrome|android).)*safari/i.test($4())}function t3(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&q4(e)&&(i=e.offsetWidth>0&&Q4(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Q4(r.height)/e.offsetHeight||1);var o=(K4(e)?G4(e):window).visualViewport,s=!e3()&&n,c=(r.left+(s&&o?o.offsetLeft:0))/i,l=(r.top+(s&&o?o.offsetTop:0))/a,u=r.width/i,d=r.height/a;return{width:u,height:d,top:l,right:c+u,bottom:l+d,left:c,x:c,y:l}}function n3(e){var t=t3(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function r3(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&J4(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function i3(e){return G4(e).getComputedStyle(e)}function DFe(e){return[`table`,`td`,`th`].indexOf(W4(e))>=0}function a3(e){return((K4(e)?e.ownerDocument:e.document)||window.document).documentElement}function o3(e){return W4(e)===`html`?e:e.assignedSlot||e.parentNode||(J4(e)?e.host:null)||a3(e)}function s3(e){return!q4(e)||i3(e).position===`fixed`?null:e.offsetParent}function OFe(e){var t=/firefox/i.test($4());if(/Trident/i.test($4())&&q4(e)&&i3(e).position===`fixed`)return null;var n=o3(e);for(J4(n)&&(n=n.host);q4(n)&&[`html`,`body`].indexOf(W4(n))<0;){var r=i3(n);if(r.transform!==`none`||r.perspective!==`none`||r.contain===`paint`||[`transform`,`perspective`].indexOf(r.willChange)!==-1||t&&r.willChange===`filter`||t&&r.filter&&r.filter!==`none`)return n;n=n.parentNode}return null}function c3(e){for(var t=G4(e),n=s3(e);n&&DFe(n)&&i3(n).position===`static`;)n=s3(n);return n&&(W4(n)===`html`||W4(n)===`body`&&i3(n).position===`static`)?t:n||OFe(e)||t}function l3(e){return[`top`,`bottom`].indexOf(e)>=0?`x`:`y`}function u3(e,t,n){return X4(e,Z4(t,n))}function kFe(e,t,n){var r=u3(e,t,n);return r>n?n:r}function d3(){return{top:0,right:0,bottom:0,left:0}}function f3(e){return Object.assign({},d3(),e)}function p3(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var AFe=function(e,t){return e=typeof e==`function`?e(Object.assign({},t.rects,{placement:t.placement})):e,f3(typeof e==`number`?p3(e,z4):e)};function jFe(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,s=Y4(n.placement),c=l3(s),l=[`left`,`right`].indexOf(s)>=0?`height`:`width`;if(a&&o){var u=AFe(i.padding,n),d=n3(a),f=c===`y`?`top`:R4,p=c===`y`?I4:L4,m=n.rects.reference[l]+n.rects.reference[c]-o[c]-n.rects.popper[l],h=o[c]-n.rects.reference[c],g=c3(a),_=g?c===`y`?g.clientHeight||0:g.clientWidth||0:0,v=m/2-h/2,y=u[f],b=_-d[l]-u[p],ee=_/2-d[l]/2+v,x=u3(y,ee,b),te=c;n.modifiersData[r]=(t={},t[te]=x,t.centerOffset=x-ee,t)}}function MFe(e){var t=e.state,n=e.options.element,r=n===void 0?`[data-popper-arrow]`:n;r!=null&&(typeof r==`string`&&(r=t.elements.popper.querySelector(r),!r)||r3(t.elements.popper,r)&&(t.elements.arrow=r))}var NFe={name:`arrow`,enabled:!0,phase:`main`,fn:jFe,effect:MFe,requires:[`popperOffsets`],requiresIfExists:[`preventOverflow`]};function m3(e){return e.split(`-`)[1]}var PFe={top:`auto`,right:`auto`,bottom:`auto`,left:`auto`};function FFe(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Q4(n*i)/i||0,y:Q4(r*i)/i||0}}function h3(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=o.x,p=f===void 0?0:f,m=o.y,h=m===void 0?0:m,g=typeof u==`function`?u({x:p,y:h}):{x:p,y:h};p=g.x,h=g.y;var _=o.hasOwnProperty(`x`),v=o.hasOwnProperty(`y`),y=R4,b=`top`,ee=window;if(l){var x=c3(n),te=`clientHeight`,ne=`clientWidth`;if(x===G4(n)&&(x=a3(n),i3(x).position!==`static`&&s===`absolute`&&(te=`scrollHeight`,ne=`scrollWidth`)),x=x,i===`top`||(i===`left`||i===`right`)&&a===`end`){b=I4;var S=d&&x===ee&&ee.visualViewport?ee.visualViewport.height:x[te];h-=S-r.height,h*=c?1:-1}if(i===`left`||(i===`top`||i===`bottom`)&&a===`end`){y=L4;var C=d&&x===ee&&ee.visualViewport?ee.visualViewport.width:x[ne];p-=C-r.width,p*=c?1:-1}}var w=Object.assign({position:s},l&&PFe),re=u===!0?FFe({x:p,y:h},G4(n)):{x:p,y:h};if(p=re.x,h=re.y,c){var ie;return Object.assign({},w,(ie={},ie[b]=v?`0`:``,ie[y]=_?`0`:``,ie.transform=(ee.devicePixelRatio||1)<=1?`translate(`+p+`px, `+h+`px)`:`translate3d(`+p+`px, `+h+`px, 0)`,ie))}return Object.assign({},w,(t={},t[b]=v?h+`px`:``,t[y]=_?p+`px`:``,t.transform=``,t))}function IFe(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0||r,a=n.adaptive,o=a===void 0||a,s=n.roundOffsets,c=s===void 0||s,l={placement:Y4(t.placement),variation:m3(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy===`fixed`};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,h3(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,h3(Object.assign({},l,{offsets:t.modifiersData.arrow,position:`absolute`,adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var LFe={name:`computeStyles`,enabled:!0,phase:`beforeWrite`,fn:IFe,data:{}},g3={passive:!0};function RFe(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=i===void 0||i,o=r.resize,s=o===void 0||o,c=G4(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach(function(e){e.addEventListener(`scroll`,n.update,g3)}),s&&c.addEventListener(`resize`,n.update,g3),function(){a&&l.forEach(function(e){e.removeEventListener(`scroll`,n.update,g3)}),s&&c.removeEventListener(`resize`,n.update,g3)}}var zFe={name:`eventListeners`,enabled:!0,phase:`write`,fn:function(){},effect:RFe,data:{}},BFe={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function _3(e){return e.replace(/left|right|bottom|top/g,function(e){return BFe[e]})}var VFe={start:`end`,end:`start`};function v3(e){return e.replace(/start|end/g,function(e){return VFe[e]})}function y3(e){var t=G4(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function b3(e){return t3(a3(e)).left+y3(e).scrollLeft}function HFe(e,t){var n=G4(e),r=a3(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;var l=e3();(l||!l&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s+b3(e),y:c}}function UFe(e){var t=a3(e),n=y3(e),r=e.ownerDocument?.body,i=X4(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=X4(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),o=-n.scrollLeft+b3(e),s=-n.scrollTop;return i3(r||t).direction===`rtl`&&(o+=X4(t.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:o,y:s}}function x3(e){var t=i3(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function S3(e){return[`html`,`body`,`#document`].indexOf(W4(e))>=0?e.ownerDocument.body:q4(e)&&x3(e)?e:S3(o3(e))}function C3(e,t){t===void 0&&(t=[]);var n=S3(e),r=n===e.ownerDocument?.body,i=G4(n),a=r?[i].concat(i.visualViewport||[],x3(n)?n:[]):n,o=t.concat(a);return r?o:o.concat(C3(o3(a)))}function w3(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function WFe(e,t){var n=t3(e,!1,t===`fixed`);return n.top+=e.clientTop,n.left+=e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function T3(e,t,n){return t===`viewport`?w3(HFe(e,n)):K4(t)?WFe(t,n):w3(UFe(a3(e)))}function GFe(e){var t=C3(o3(e)),n=[`absolute`,`fixed`].indexOf(i3(e).position)>=0&&q4(e)?c3(e):e;return K4(n)?t.filter(function(e){return K4(e)&&r3(e,n)&&W4(e)!==`body`}):[]}function KFe(e,t,n,r){var i=t===`clippingParents`?GFe(e):[].concat(t),a=[].concat(i,[n]),o=a[0],s=a.reduce(function(t,n){var i=T3(e,n,r);return t.top=X4(i.top,t.top),t.right=Z4(i.right,t.right),t.bottom=Z4(i.bottom,t.bottom),t.left=X4(i.left,t.left),t},T3(e,o,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function E3(e){var t=e.reference,n=e.element,r=e.placement,i=r?Y4(r):null,a=r?m3(r):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,c;switch(i){case`top`:c={x:o,y:t.y-n.height};break;case I4:c={x:o,y:t.y+t.height};break;case L4:c={x:t.x+t.width,y:s};break;case R4:c={x:t.x-n.width,y:s};break;default:c={x:t.x,y:t.y}}var l=i?l3(i):null;if(l!=null){var u=l===`y`?`height`:`width`;switch(a){case B4:c[l]=c[l]-(t[u]/2-n[u]/2);break;case`end`:c[l]=c[l]+(t[u]/2-n[u]/2)}}return c}function D3(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,a=n.strategy,o=a===void 0?e.strategy:a,s=n.boundary,c=s===void 0?bFe:s,l=n.rootBoundary,u=l===void 0?xFe:l,d=n.elementContext,f=d===void 0?V4:d,p=n.altBoundary,m=p!==void 0&&p,h=n.padding,g=h===void 0?0:h,_=f3(typeof g==`number`?p3(g,z4):g),v=f===`popper`?SFe:V4,y=e.rects.popper,b=e.elements[m?v:f],ee=KFe(K4(b)?b:b.contextElement||a3(e.elements.popper),c,u,o),x=t3(e.elements.reference),te=E3({reference:x,element:y,strategy:`absolute`,placement:i}),ne=w3(Object.assign({},y,te)),S=f===`popper`?ne:x,C={top:ee.top-S.top+_.top,bottom:S.bottom-ee.bottom+_.bottom,left:ee.left-S.left+_.left,right:S.right-ee.right+_.right},w=e.modifiersData.offset;if(f===`popper`&&w){var re=w[i];Object.keys(C).forEach(function(e){var t=[`right`,`bottom`].indexOf(e)>=0?1:-1,n=[`top`,`bottom`].indexOf(e)>=0?`y`:`x`;C[e]+=re[n]*t})}return C}function qFe(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,o=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,l=c===void 0?U4:c,u=m3(r),d=u?s?H4:H4.filter(function(e){return m3(e)===u}):z4,f=d.filter(function(e){return l.indexOf(e)>=0});f.length===0&&(f=d);var p=f.reduce(function(t,n){return t[n]=D3(e,{placement:n,boundary:i,rootBoundary:a,padding:o})[Y4(n)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}function JFe(e){if(Y4(e)===`auto`)return[];var t=_3(e);return[v3(e),t,v3(t)]}function YFe(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0||i,o=n.altAxis,s=o===void 0||o,c=n.fallbackPlacements,l=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=p===void 0||p,h=n.allowedAutoPlacements,g=t.options.placement,_=Y4(g)===g,v=c||(_||!m?[_3(g)]:JFe(g)),y=[g].concat(v).reduce(function(e,n){return e.concat(Y4(n)===`auto`?qFe(t,{placement:n,boundary:u,rootBoundary:d,padding:l,flipVariations:m,allowedAutoPlacements:h}):n)},[]),b=t.rects.reference,ee=t.rects.popper,x=/* @__PURE__ */ new Map,te=!0,ne=y[0],S=0;S<y.length;S++){var C=y[S],w=Y4(C),re=m3(C)===B4,ie=[`top`,I4].indexOf(w)>=0,ae=ie?`width`:`height`,oe=D3(t,{placement:C,boundary:u,rootBoundary:d,altBoundary:f,padding:l}),se=ie?re?L4:R4:re?I4:`top`;b[ae]>ee[ae]&&(se=_3(se));var ce=_3(se),le=[];if(a&&le.push(oe[w]<=0),s&&le.push(oe[se]<=0,oe[ce]<=0),le.every(function(e){return e})){ne=C,te=!1;break}x.set(C,le)}if(te)for(var ue=m?3:1,de=function(e){var t=y.find(function(t){var n=x.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return ne=t,`break`},fe=ue;fe>0&&de(fe)!==`break`;fe--);t.placement!==ne&&(t.modifiersData[r]._skip=!0,t.placement=ne,t.reset=!0)}}var XFe={name:`flip`,enabled:!0,phase:`main`,fn:YFe,requiresIfExists:[`offset`],data:{_skip:!1}};function O3(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function k3(e){return[`top`,L4,I4,R4].some(function(t){return e[t]>=0})}function ZFe(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=D3(t,{elementContext:`reference`}),s=D3(t,{altBoundary:!0}),c=O3(o,r),l=O3(s,i,a),u=k3(c),d=k3(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}var QFe={name:`hide`,enabled:!0,phase:`main`,requiresIfExists:[`preventOverflow`],fn:ZFe};function $Fe(e,t,n){var r=Y4(e),i=[`left`,`top`].indexOf(r)>=0?-1:1,a=typeof n==`function`?n(Object.assign({},t,{placement:e})):n,o=a[0],s=a[1];return o=o||0,s=(s||0)*i,[`left`,`right`].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function eIe(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,o=U4.reduce(function(e,n){return e[n]=$Fe(n,t.rects,a),e},{}),s=o[t.placement],c=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=o}var tIe={name:`offset`,enabled:!0,phase:`main`,requires:[`popperOffsets`],fn:eIe};function nIe(e){var t=e.state,n=e.name;t.modifiersData[n]=E3({reference:t.rects.reference,element:t.rects.popper,strategy:`absolute`,placement:t.placement})}var rIe={name:`popperOffsets`,enabled:!0,phase:`read`,fn:nIe,data:{}};function iIe(e){return e===`x`?`y`:`x`}function aIe(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=i===void 0||i,o=n.altAxis,s=o!==void 0&&o,c=n.boundary,l=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0||f,m=n.tetherOffset,h=m===void 0?0:m,g=D3(t,{boundary:c,rootBoundary:l,padding:d,altBoundary:u}),_=Y4(t.placement),v=m3(t.placement),y=!v,b=l3(_),ee=iIe(b),x=t.modifiersData.popperOffsets,te=t.rects.reference,ne=t.rects.popper,S=typeof h==`function`?h(Object.assign({},t.rects,{placement:t.placement})):h,C=typeof S==`number`?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),w=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,re={x:0,y:0};if(x){if(a){var ie=b===`y`?`top`:R4,ae=b===`y`?I4:L4,oe=b===`y`?`height`:`width`,se=x[b],ce=se+g[ie],le=se-g[ae],ue=p?-ne[oe]/2:0,de=v===`start`?te[oe]:ne[oe],fe=v===`start`?-ne[oe]:-te[oe],pe=t.elements.arrow,me=p&&pe?n3(pe):{width:0,height:0},he=t.modifiersData[`arrow#persistent`]?t.modifiersData[`arrow#persistent`].padding:d3(),ge=he[ie],_e=he[ae],ve=u3(0,te[oe],me[oe]),ye=y?te[oe]/2-ue-ve-ge-C.mainAxis:de-ve-ge-C.mainAxis,be=y?-te[oe]/2+ue+ve+_e+C.mainAxis:fe+ve+_e+C.mainAxis,xe=t.elements.arrow&&c3(t.elements.arrow),Se=xe?b===`y`?xe.clientTop||0:xe.clientLeft||0:0,Ce=w?.[b]??0,we=se+ye-Ce-Se,Te=se+be-Ce,Ee=u3(p?Z4(ce,we):ce,se,p?X4(le,Te):le);x[b]=Ee,re[b]=Ee-se}if(s){var De=b===`x`?`top`:R4,Oe=b===`x`?I4:L4,ke=x[ee],Ae=ee===`y`?`height`:`width`,je=ke+g[De],Me=ke-g[Oe],T=[`top`,R4].indexOf(_)!==-1,Ne=w?.[ee]??0,Pe=T?je:ke-te[Ae]-ne[Ae]-Ne+C.altAxis,Fe=T?ke+te[Ae]+ne[Ae]-Ne-C.altAxis:Me,Ie=p&&T?kFe(Pe,ke,Fe):u3(p?Pe:je,ke,p?Fe:Me);x[ee]=Ie,re[ee]=Ie-ke}t.modifiersData[r]=re}}var oIe={name:`preventOverflow`,enabled:!0,phase:`main`,fn:aIe,requiresIfExists:[`offset`]};function sIe(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function cIe(e){return e===G4(e)||!q4(e)?y3(e):sIe(e)}function lIe(e){var t=e.getBoundingClientRect(),n=Q4(t.width)/e.offsetWidth||1,r=Q4(t.height)/e.offsetHeight||1;return n!==1||r!==1}function uIe(e,t,n){n===void 0&&(n=!1);var r=q4(t),i=q4(t)&&lIe(t),a=a3(t),o=t3(e,i,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((W4(t)!==`body`||x3(a))&&(s=cIe(t)),q4(t)?(c=t3(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=b3(a))),{x:o.left+s.scrollLeft-c.x,y:o.top+s.scrollTop-c.y,width:o.width,height:o.height}}function dIe(e){var t=/* @__PURE__ */ new Map,n=/* @__PURE__ */ new Set,r=[];e.forEach(function(e){t.set(e.name,e)});function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}}),r.push(e)}return e.forEach(function(e){n.has(e.name)||i(e)}),r}function fIe(e){var t=dIe(e);return CFe.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}function pIe(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function mIe(e){var t=e.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{});return Object.keys(t).map(function(e){return t[e]})}var A3={placement:`bottom`,modifiers:[],strategy:`absolute`};function j3(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&typeof e.getBoundingClientRect==`function`)})}function hIe(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,a=i===void 0?A3:i;return function(e,t,n){n===void 0&&(n=a);var i={placement:`bottom`,orderedModifiers:[],options:Object.assign({},A3,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},o=[],s=!1,c={state:i,setOptions:function(n){var o=typeof n==`function`?n(i.options):n;u(),i.options=Object.assign({},a,i.options,o),i.scrollParents={reference:K4(e)?C3(e):e.contextElement?C3(e.contextElement):[],popper:C3(t)};var s=fIe(mIe([].concat(r,i.options.modifiers)));return i.orderedModifiers=s.filter(function(e){return e.enabled}),l(),c.update()},forceUpdate:function(){if(!s){var e=i.elements,t=e.reference,n=e.popper;if(j3(t,n)){i.rects={reference:uIe(t,c3(n),i.options.strategy===`fixed`),popper:n3(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach(function(e){return i.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0;r<i.orderedModifiers.length;r++){if(i.reset===!0){i.reset=!1,r=-1;continue}var a=i.orderedModifiers[r],o=a.fn,l=a.options,u=l===void 0?{}:l,d=a.name;typeof o==`function`&&(i=o({state:i,options:u,name:d,instance:c})||i)}}}},update:pIe(function(){return new Promise(function(e){c.forceUpdate(),e(i)})}),destroy:function(){u(),s=!0}};if(!j3(e,t))return c;c.setOptions(n).then(function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)});function l(){i.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=n===void 0?{}:n,a=e.effect;if(typeof a==`function`){var s=a({state:i,name:t,instance:c,options:r});o.push(s||function(){})}})}function u(){o.forEach(function(e){return e()}),o=[]}return c}}var gIe=/*#__PURE__*/ hIe({defaultModifiers:[zFe,rIe,LFe,EFe,tIe,XFe,oIe,NFe,QFe]});let _Ie={toView(e){return JSON.stringify(e)},fromView(e){return e==null?e:JSON.parse(e)}};var M3=class extends P{constructor(){super(...arguments),this.show=!1,this.event=`click`,this.placement=`bottom`,this.flip=!1}selectorChanged(e,t){t!==e&&(this.popper&&this.popper.destroy(),this.target&&this.target.removeEventListener(this.event,this.toggle.bind(this)),this.target=this.getRootNode().querySelector(this.selector),this.target.addEventListener(this.event,this.toggle.bind(this)),this.popper=gIe(this.target,this,this.buildOptions()))}placementChanged(){this.popper&&this.popper.setOptions(this.buildOptions())}offsetChanged(){this.popper&&this.popper.setOptions(this.buildOptions())}flipChanged(){this.popper&&this.popper.setOptions(this.buildOptions())}buildOptions(){return{placement:this.placement,modifiers:[{name:`offset`,options:{offset:this.offset||[0,0]}},{name:`flip`,enabled:this.flip}]}}toggle(){this.show=!this.show}disconnectedCallback(){super.disconnectedCallback(),this.popper&&(this.popper.destroy(),this.popper=null)}};q([D],M3.prototype,`selector`,void 0),q([D({mode:`boolean`})],M3.prototype,`show`,void 0),q([D],M3.prototype,`event`,void 0),q([D],M3.prototype,`placement`,void 0),q([D({converter:_Ie})],M3.prototype,`offset`,void 0),q([D({mode:`boolean`})],M3.prototype,`flip`,void 0);let vIe=O` :host{display: none;inset: unset !important;transform: unset !important}:host([show]){display: block}`,yIe=T`<template><slot></slot></template>`;M3.compose({baseName:`popper`,styles:vIe,template:yIe});let N3=(e,t)=>oa(e,t),P3=(e,t)=>O` ${_u(e,t)}`;var F3=class extends sa{};let I3={indeterminateIndicator:`
938
+ Reload Window </a><a href="#" class="dismiss-button" @click="${e=>e.onDismiss()}">Dismiss (Esc)</a></div></header><div class="container ${e=>e.containerClassNames}" part="container"><section class="network-section ${e=>e.isOnlineClassNames}" part="network-section"><h2>Network ${e=>Rn(e.status.isOnline?`online`:`offline`)}</h2><dl class="resource-list"><div class="resource ${e=>e.isOnlineClassNames}"><div class="attributes"><div class="online"><dt>Online</dt><dd>${e=>e.status.isOnline}</dd></div><div class="authenticated"><dt>Authenticated</dt><dd>${e=>e.status.isAuthenticated}</dd></div>${A(e=>e.status.username,T`<div class="username"><dt>Username</dt><dd>${e=>e.status.username}</dd></div>`)}<div class="platform-type"><dt>Platform Type</dt><dd>${e=>Rn(e.status.browserInformation.platform?.type)}</dd></div><div class="os-name"><dt>OS Name</dt><dd>${e=>Rn(e.status.browserInformation.os?.name)}</dd></div><div class="os-version"><dt>OS Version</dt><dd>${e=>e.status.browserInformation.os?.version}</dd></div></div><div class="attributes"><div class="browser-name"><dt>Browser Name</dt><dd>${e=>Rn(e.status.browserInformation.browser?.name)}</dd></div><div class="browser-version"><dt>Browser Version</dt><dd>${e=>e.status.browserInformation.browser?.version}</dd></div><div class="first-updated"><dt>First updated</dt><dd>${e=>Of(e.status.firstUpdated)}</dd></div><div class="last-updated"><dt>Last updated</dt><dd>${e=>Of(e.status.lastUpdated)}</dd></div>${A(e=>!e.status.socket.reconnectionLimitReached,T`<div class="next-update"><dt>Next update</dt><dd>${e=>Of(e.status.nextUpdate)}</dd></div><div class="next-update-progress"><dt></dt><dd><next-update-progress value="${e=>e.timeTillNextUpdate.remainPercent}"></next-update-progress></dd></div>`)}</div><div class="controls">${e=>O4.getCheckmarkTemplate(e.status.isOnline)}</div></div></dl></section><section class="socket-section ${e=>e.isSocketHealthyClassNames}" part="socket-section"><h2>WebSocket ${e=>Rn(e.isSocketHealthyClassNames)}</h2><dl class="resource-list"><div class="resource ${e=>e.isSocketHealthyClassNames}"><div class="attributes"><div class="configured"><dt>Configured</dt><dd>${e=>e.status.socket.isConfigured}</dd></div><div class="connected"><dt>Connected</dt><dd>${e=>e.status.socket.isConnected}</dd></div><div class="reconnecting"><dt>Reconnecting</dt><dd>${e=>e.status.socket.isReconnecting}</dd></div><div class="reconnection-exhausted"><dt>Reconnection exhausted</dt><dd>${e=>e.status.socket.reconnectionLimitReached}</dd></div></div><div class="attributes"><div class="disconnected-by-server"><dt>Disconnected by server</dt><dd>${e=>e.status.socket.isDisconnectedByServer}</dd></div><div class="closed-clean"><dt>Closed clean</dt><dd>${e=>e.status.socket.closedClean}</dd></div><div class="closed-code"><dt>Closed code</dt><dd>${e=>e.status.socket.closedCode}</dd></div><div class="closed-reason"><dt>Closed reason</dt><dd>${e=>e.status.socket.closedReason}</dd></div></div><div class="controls">${e=>O4.getCheckmarkTemplate(e.isSocketHealthy)}</div></div></dl></section><section class="resource-section ${e=>e.resourcesAllConnectedClassNames}" part="resource-section"><h2>Resources ${e=>Rn(e.resourcesAllConnectedClassNames)}</h2><dl class="resource-list">${j(e=>e.resourceList,T`<div class="resource ${e=>e.isConnected?`healthy`:`unhealthy`}"><div class="attributes"><div class="name"><dt>Name</dt><dd>${e=>e.name}</dd></div><div class="status"><dt>Status</dt><dd>${e=>e.isConnected?`Healthy`:`Unhealthy`}</dd></div><div class="last-checked"><dt>Checked</dt><dd>${e=>Of(e.lastUpdated)}</dd></div><div class="subscriptions"><dt>Subscriptions</dt><dd>${e=>e.sourceRef?.length}</dd></div><div class="source-refs"><dt>Source Refs</dt><dd>${e=>e.sourceRef}</dd></div></div><div class="controls">${e=>O4.getCheckmarkTemplate(e.isConnected)}</div></div>`)}</dl></section></div></template>`,A4=(e,t)=>O` :host{--font-family: Menlo, Consolas, monospace;--color-background: black;--color-healthy: green;--color-unhealthy: red;--opacity-low-percent: 10%;--opacity-med-percent: 50%;--opacity-high-percent: 90%;--color-background-opacity-high: rgba(0, 0, 0, 0.9);--color-healthy-opacity-low: rgba(0, 128, 0, 0.1);--color-healthy-opacity-20: rgba(0, 128, 0, 0.2);--color-healthy-opacity-med: rgba(0, 128, 0, 0.5);--color-unhealthy-opacity-low: rgba(255, 0, 0, 0.1);--color-unhealthy-opacity-20: rgba(255, 0, 0, 0.2);--color-unhealthy-opacity-med: rgba(255, 0, 0, 0.5);display: none;position: fixed;inset: 0;width: 100vw;height: 100vh;border: none;z-index: 2147483647;box-sizing: border-box;padding: 2rem 2rem 4rem;overflow: auto;background-color: var(--color-background-opacity-high);line-height: 1.5;font-size: 1rem;font-family: var(--font-family, Menlo, Consolas, monospace) !important}@supports (color: color-mix(in srgb, black, black)){:host{--color-background-opacity-high: color-mix( in srgb, var(--color-background) var(--opacity-high-percent), transparent );--color-healthy-opacity-low: color-mix( in srgb, var(--color-healthy) var(--opacity-low-percent), transparent );--color-healthy-opacity-20: color-mix(in srgb, var(--color-healthy) 20%, transparent);--color-healthy-opacity-med: color-mix( in srgb, var(--color-healthy) var(--opacity-med-percent), transparent );--color-unhealthy-opacity-low: color-mix( in srgb, var(--color-unhealthy) var(--opacity-low-percent), transparent );--color-unhealthy-opacity-20: color-mix(in srgb, var(--color-unhealthy) 20%, transparent);--color-unhealthy-opacity-med: color-mix( in srgb, var(--color-unhealthy) var(--opacity-med-percent), transparent )}}:host(.open.dismissed){display: block;overflow: hidden;padding: 0;height: fit-content;min-height: 45px;background-color: var(--color-unhealthy-opacity-low);inset: unset;position: fixed;bottom: 0}:host(.open.dismissed) header{padding: 0 1em}:host(.open){display: block;height: 100vh}.container{padding: 0 1rem 1.5rem}.container.healthy{background-color: var(--color-healthy-opacity-low)}.container.unhealthy{background-color: var(--color-unhealthy-opacity-low)}.container.open.dismissed{display: none}header{display: flex;justify-content: space-between;align-items: baseline;margin-bottom: 1px;padding: 0.5em 1em;flex-wrap: wrap;flex-direction: row}header h1{font-size: 1em;font-weight: normal}header .controls a{font-size: small;padding: 0 1em 0 0}header.healthy{color: var(--color-healthy);background-color: var(--color-healthy-opacity-low)}header.unhealthy{color: var(--color-unhealthy);background-color: var(--color-unhealthy-opacity-low)}section{padding-top: 1.5em;font-size: x-small}section h2{font-size: 1.3em;margin: 0 0 1em 0;text-align: center;color: var(--color-unhealthy)}section.unhealthy h2{color: var(--color-unhealthy)}section.healthy h2{color: var(--color-healthy)}.hidden{display: none}.resource-list{display: grid;grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));gap: 1rem}.resource{padding: 0.5em 1em;display: grid;grid-template-columns: 3fr 1fr;border-radius: calc(var(--control-corner-radius) * 1px)}.resource.healthy{border: var(--color-healthy-opacity-med) 1px solid;color: var(--color-healthy)}.resource.unhealthy{border: var(--color-unhealthy-opacity-med) 1px solid;color: var(--color-unhealthy)}.resource .attributes > div{display: grid;grid-template-columns: 1fr 2fr}.resource dt{color: inherit;opacity: 0.7}.resource dt:not(:empty)::after{content: ': '}.resource dd{margin: 0 0 0 0.1em}.resource .controls{display: grid;justify-content: center;align-items: center;border-left: 1px var(--color-background-opacity-high) solid}.controls a{display: inline-block;color: inherit;text-underline-offset: 0.2em}.controls .checkmark{font-size: large}.resource.healthy .controls{border-left: 1px var(--color-healthy-opacity-20) solid}.resource.unhealthy .controls{border-left: 1px var(--color-unhealthy-opacity-20) solid}.network-section .resource-list, .socket-section .resource-list{display: grid;grid-template-columns: 1fr}.network-section .resource, .socket-section .resource{grid-template-columns: 2fr 2fr 1fr}next-update-progress{height: 1px;margin: 0 1em 0 0}.resource.healthy next-update-progress::part(determinate){background-color: var(--color-healthy)}.resource.healthy next-update-progress::part(progress){background-color: var(--color-healthy-opacity-20)}.resource.unhealthy next-update-progress::part(determinate){background-color: var(--color-unhealthy)}.resource.unhealthy next-update-progress::part(progress){background-color: var(--color-unhealthy-opacity-20)}.data-warning{font-size: small;margin: 0 0.5em;padding: 0.2em 0.5em;background-color: var(--color-unhealthy-opacity-20)}`,j4={};O4.compose(Object.assign({baseName:`system-health-overlay`,template:k4,styles:A4,shadowOptions:void 0},j4));let M4=O` :host{--pill-fill: var(--neutral-fill-rest, #e5e5e5);--pill-fill-hover: var(--neutral-fill-hover, #d9d9d9);--pill-foreground: var(--neutral-foreground-rest, #1a1a1a);--pill-border-radius: 12px;display: inline-flex}.pill{display: inline-flex;align-items: center;gap: 4px;height: 24px;padding: 0 4px 0 10px;border-radius: var(--pill-border-radius);background: var(--pill-fill);color: var(--pill-foreground);font-size: 12px;line-height: 1}.pill[disabled]{opacity: 50%}.pill-body{display: inline-flex;align-items: center;gap: 4px;border: none;background: transparent;color: inherit;font: inherit;padding: 0;cursor: pointer}.pill-body:disabled{cursor: not-allowed}.pill-body:hover:not(:disabled){background: var(--pill-fill-hover);border-radius: var(--pill-border-radius)}.pill-label{font-weight: 600;white-space: nowrap}.pill-value{white-space: nowrap}.pill-remove{display: inline-flex;align-items: center;justify-content: center;width: 16px;height: 16px;border: none;border-radius: 50%;background: transparent;color: inherit;cursor: pointer;padding: 0}.pill-remove:disabled{cursor: not-allowed}.pill-remove:hover:not(:disabled){background: var(--pill-fill-hover)}`,yFe=e=>{let t=[e.label,e.value].filter(Boolean).join(`: `);return t?`Remove ${t}`:`Remove`},bFe=e=>T`<div class="pill" part="pill" ?disabled=${e=>e.disabled}><button class="pill-body" part="pill-body" type="button" data-test-id="pill-body" ?disabled=${e=>e.disabled}@click=${e=>e.handleBodyClick()}><span class="pill-label" part="pill-label" data-test-id="pill-label">${e=>e.label}${e=>e.value?`:`:``}</span>${A(e=>e.value,T`<span class="pill-value" part="pill-value" data-test-id="pill-value">${e=>e.value}</span>`)}<slot></slot></button>${A(e=>e.removable,T`<button class="pill-remove" part="pill-remove" type="button" data-test-id="pill-remove" aria-label="${e=>yFe(e)}" ?disabled=${e=>e.disabled}@click=${(e,t)=>e.handleRemoveClick(t.event)}><${e}-icon name="xmark" size="2xs"></${e}-icon></button>`)}</div>`,N4=T` ${e=>bFe(yb(e))} `,P4={};var F4=class extends P{constructor(){super(...arguments),this.removable=!0,this.disabled=!1}handleBodyClick(){this.disabled||this.$emit(`pill-click`)}handleRemoveClick(e){e?.stopPropagation(),!this.disabled&&this.$emit(`remove`)}};q([D],F4.prototype,`label`,void 0),q([D],F4.prototype,`value`,void 0),q([D({mode:`boolean`})],F4.prototype,`removable`,void 0),q([D({mode:`boolean`})],F4.prototype,`disabled`,void 0),F4.compose(Object.assign({baseName:`pill`,template:N4,styles:M4,shadowOptions:void 0},P4));var I4=`bottom`,L4=`right`,R4=`left`,xFe=`auto`,z4=[`top`,I4,L4,R4],B4=`start`,SFe=`clippingParents`,CFe=`viewport`,V4=`popper`,wFe=`reference`,H4=/*#__PURE__*/ z4.reduce(function(e,t){return e.concat([t+`-`+B4,t+`-end`])},[]),U4=/*#__PURE__*/ [].concat(z4,[xFe]).reduce(function(e,t){return e.concat([t,t+`-`+B4,t+`-end`])},[]),TFe=[`beforeRead`,`read`,`afterRead`,`beforeMain`,`main`,`afterMain`,`beforeWrite`,`write`,`afterWrite`];function W4(e){return e?(e.nodeName||``).toLowerCase():null}function G4(e){if(e==null)return window;if(e.toString()!==`[object Window]`){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function K4(e){return e instanceof G4(e).Element||e instanceof Element}function q4(e){return e instanceof G4(e).HTMLElement||e instanceof HTMLElement}function J4(e){return typeof ShadowRoot>`u`?!1:e instanceof G4(e).ShadowRoot||e instanceof ShadowRoot}function EFe(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];q4(i)&&W4(i)&&(Object.assign(i.style,n),Object.keys(r).forEach(function(e){var t=r[e];t===!1?i.removeAttribute(e):i.setAttribute(e,t===!0?``:t)}))})}function DFe(e){var t=e.state,n={popper:{position:t.options.strategy,left:`0`,top:`0`,margin:`0`},arrow:{position:`absolute`},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],i=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]=``,e},{});q4(r)&&W4(r)&&(Object.assign(r.style,a),Object.keys(i).forEach(function(e){r.removeAttribute(e)}))})}}var OFe={name:`applyStyles`,enabled:!0,phase:`write`,fn:EFe,effect:DFe,requires:[`computeStyles`]};function Y4(e){return e.split(`-`)[0]}var X4=Math.max,Z4=Math.min,Q4=Math.round;function $4(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+`/`+e.version}).join(` `):navigator.userAgent}function e3(){return!/^((?!chrome|android).)*safari/i.test($4())}function t3(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&q4(e)&&(i=e.offsetWidth>0&&Q4(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Q4(r.height)/e.offsetHeight||1);var o=(K4(e)?G4(e):window).visualViewport,s=!e3()&&n,c=(r.left+(s&&o?o.offsetLeft:0))/i,l=(r.top+(s&&o?o.offsetTop:0))/a,u=r.width/i,d=r.height/a;return{width:u,height:d,top:l,right:c+u,bottom:l+d,left:c,x:c,y:l}}function n3(e){var t=t3(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function r3(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&J4(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function i3(e){return G4(e).getComputedStyle(e)}function kFe(e){return[`table`,`td`,`th`].indexOf(W4(e))>=0}function a3(e){return((K4(e)?e.ownerDocument:e.document)||window.document).documentElement}function o3(e){return W4(e)===`html`?e:e.assignedSlot||e.parentNode||(J4(e)?e.host:null)||a3(e)}function s3(e){return!q4(e)||i3(e).position===`fixed`?null:e.offsetParent}function AFe(e){var t=/firefox/i.test($4());if(/Trident/i.test($4())&&q4(e)&&i3(e).position===`fixed`)return null;var n=o3(e);for(J4(n)&&(n=n.host);q4(n)&&[`html`,`body`].indexOf(W4(n))<0;){var r=i3(n);if(r.transform!==`none`||r.perspective!==`none`||r.contain===`paint`||[`transform`,`perspective`].indexOf(r.willChange)!==-1||t&&r.willChange===`filter`||t&&r.filter&&r.filter!==`none`)return n;n=n.parentNode}return null}function c3(e){for(var t=G4(e),n=s3(e);n&&kFe(n)&&i3(n).position===`static`;)n=s3(n);return n&&(W4(n)===`html`||W4(n)===`body`&&i3(n).position===`static`)?t:n||AFe(e)||t}function l3(e){return[`top`,`bottom`].indexOf(e)>=0?`x`:`y`}function u3(e,t,n){return X4(e,Z4(t,n))}function jFe(e,t,n){var r=u3(e,t,n);return r>n?n:r}function d3(){return{top:0,right:0,bottom:0,left:0}}function f3(e){return Object.assign({},d3(),e)}function p3(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var MFe=function(e,t){return e=typeof e==`function`?e(Object.assign({},t.rects,{placement:t.placement})):e,f3(typeof e==`number`?p3(e,z4):e)};function NFe(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,s=Y4(n.placement),c=l3(s),l=[`left`,`right`].indexOf(s)>=0?`height`:`width`;if(a&&o){var u=MFe(i.padding,n),d=n3(a),f=c===`y`?`top`:R4,p=c===`y`?I4:L4,m=n.rects.reference[l]+n.rects.reference[c]-o[c]-n.rects.popper[l],h=o[c]-n.rects.reference[c],g=c3(a),_=g?c===`y`?g.clientHeight||0:g.clientWidth||0:0,v=m/2-h/2,y=u[f],b=_-d[l]-u[p],ee=_/2-d[l]/2+v,x=u3(y,ee,b),te=c;n.modifiersData[r]=(t={},t[te]=x,t.centerOffset=x-ee,t)}}function PFe(e){var t=e.state,n=e.options.element,r=n===void 0?`[data-popper-arrow]`:n;r!=null&&(typeof r==`string`&&(r=t.elements.popper.querySelector(r),!r)||r3(t.elements.popper,r)&&(t.elements.arrow=r))}var FFe={name:`arrow`,enabled:!0,phase:`main`,fn:NFe,effect:PFe,requires:[`popperOffsets`],requiresIfExists:[`preventOverflow`]};function m3(e){return e.split(`-`)[1]}var IFe={top:`auto`,right:`auto`,bottom:`auto`,left:`auto`};function LFe(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Q4(n*i)/i||0,y:Q4(r*i)/i||0}}function h3(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=o.x,p=f===void 0?0:f,m=o.y,h=m===void 0?0:m,g=typeof u==`function`?u({x:p,y:h}):{x:p,y:h};p=g.x,h=g.y;var _=o.hasOwnProperty(`x`),v=o.hasOwnProperty(`y`),y=R4,b=`top`,ee=window;if(l){var x=c3(n),te=`clientHeight`,ne=`clientWidth`;if(x===G4(n)&&(x=a3(n),i3(x).position!==`static`&&s===`absolute`&&(te=`scrollHeight`,ne=`scrollWidth`)),x=x,i===`top`||(i===`left`||i===`right`)&&a===`end`){b=I4;var S=d&&x===ee&&ee.visualViewport?ee.visualViewport.height:x[te];h-=S-r.height,h*=c?1:-1}if(i===`left`||(i===`top`||i===`bottom`)&&a===`end`){y=L4;var C=d&&x===ee&&ee.visualViewport?ee.visualViewport.width:x[ne];p-=C-r.width,p*=c?1:-1}}var w=Object.assign({position:s},l&&IFe),re=u===!0?LFe({x:p,y:h},G4(n)):{x:p,y:h};if(p=re.x,h=re.y,c){var ie;return Object.assign({},w,(ie={},ie[b]=v?`0`:``,ie[y]=_?`0`:``,ie.transform=(ee.devicePixelRatio||1)<=1?`translate(`+p+`px, `+h+`px)`:`translate3d(`+p+`px, `+h+`px, 0)`,ie))}return Object.assign({},w,(t={},t[b]=v?h+`px`:``,t[y]=_?p+`px`:``,t.transform=``,t))}function RFe(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0||r,a=n.adaptive,o=a===void 0||a,s=n.roundOffsets,c=s===void 0||s,l={placement:Y4(t.placement),variation:m3(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy===`fixed`};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,h3(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,h3(Object.assign({},l,{offsets:t.modifiersData.arrow,position:`absolute`,adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var zFe={name:`computeStyles`,enabled:!0,phase:`beforeWrite`,fn:RFe,data:{}},g3={passive:!0};function BFe(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=i===void 0||i,o=r.resize,s=o===void 0||o,c=G4(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach(function(e){e.addEventListener(`scroll`,n.update,g3)}),s&&c.addEventListener(`resize`,n.update,g3),function(){a&&l.forEach(function(e){e.removeEventListener(`scroll`,n.update,g3)}),s&&c.removeEventListener(`resize`,n.update,g3)}}var VFe={name:`eventListeners`,enabled:!0,phase:`write`,fn:function(){},effect:BFe,data:{}},HFe={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function _3(e){return e.replace(/left|right|bottom|top/g,function(e){return HFe[e]})}var UFe={start:`end`,end:`start`};function v3(e){return e.replace(/start|end/g,function(e){return UFe[e]})}function y3(e){var t=G4(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function b3(e){return t3(a3(e)).left+y3(e).scrollLeft}function WFe(e,t){var n=G4(e),r=a3(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;var l=e3();(l||!l&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s+b3(e),y:c}}function GFe(e){var t=a3(e),n=y3(e),r=e.ownerDocument?.body,i=X4(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=X4(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),o=-n.scrollLeft+b3(e),s=-n.scrollTop;return i3(r||t).direction===`rtl`&&(o+=X4(t.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:o,y:s}}function x3(e){var t=i3(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function S3(e){return[`html`,`body`,`#document`].indexOf(W4(e))>=0?e.ownerDocument.body:q4(e)&&x3(e)?e:S3(o3(e))}function C3(e,t){t===void 0&&(t=[]);var n=S3(e),r=n===e.ownerDocument?.body,i=G4(n),a=r?[i].concat(i.visualViewport||[],x3(n)?n:[]):n,o=t.concat(a);return r?o:o.concat(C3(o3(a)))}function w3(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function KFe(e,t){var n=t3(e,!1,t===`fixed`);return n.top+=e.clientTop,n.left+=e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function T3(e,t,n){return t===`viewport`?w3(WFe(e,n)):K4(t)?KFe(t,n):w3(GFe(a3(e)))}function qFe(e){var t=C3(o3(e)),n=[`absolute`,`fixed`].indexOf(i3(e).position)>=0&&q4(e)?c3(e):e;return K4(n)?t.filter(function(e){return K4(e)&&r3(e,n)&&W4(e)!==`body`}):[]}function JFe(e,t,n,r){var i=t===`clippingParents`?qFe(e):[].concat(t),a=[].concat(i,[n]),o=a[0],s=a.reduce(function(t,n){var i=T3(e,n,r);return t.top=X4(i.top,t.top),t.right=Z4(i.right,t.right),t.bottom=Z4(i.bottom,t.bottom),t.left=X4(i.left,t.left),t},T3(e,o,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function E3(e){var t=e.reference,n=e.element,r=e.placement,i=r?Y4(r):null,a=r?m3(r):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,c;switch(i){case`top`:c={x:o,y:t.y-n.height};break;case I4:c={x:o,y:t.y+t.height};break;case L4:c={x:t.x+t.width,y:s};break;case R4:c={x:t.x-n.width,y:s};break;default:c={x:t.x,y:t.y}}var l=i?l3(i):null;if(l!=null){var u=l===`y`?`height`:`width`;switch(a){case B4:c[l]=c[l]-(t[u]/2-n[u]/2);break;case`end`:c[l]=c[l]+(t[u]/2-n[u]/2)}}return c}function D3(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,a=n.strategy,o=a===void 0?e.strategy:a,s=n.boundary,c=s===void 0?SFe:s,l=n.rootBoundary,u=l===void 0?CFe:l,d=n.elementContext,f=d===void 0?V4:d,p=n.altBoundary,m=p!==void 0&&p,h=n.padding,g=h===void 0?0:h,_=f3(typeof g==`number`?p3(g,z4):g),v=f===`popper`?wFe:V4,y=e.rects.popper,b=e.elements[m?v:f],ee=JFe(K4(b)?b:b.contextElement||a3(e.elements.popper),c,u,o),x=t3(e.elements.reference),te=E3({reference:x,element:y,strategy:`absolute`,placement:i}),ne=w3(Object.assign({},y,te)),S=f===`popper`?ne:x,C={top:ee.top-S.top+_.top,bottom:S.bottom-ee.bottom+_.bottom,left:ee.left-S.left+_.left,right:S.right-ee.right+_.right},w=e.modifiersData.offset;if(f===`popper`&&w){var re=w[i];Object.keys(C).forEach(function(e){var t=[`right`,`bottom`].indexOf(e)>=0?1:-1,n=[`top`,`bottom`].indexOf(e)>=0?`y`:`x`;C[e]+=re[n]*t})}return C}function YFe(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,o=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,l=c===void 0?U4:c,u=m3(r),d=u?s?H4:H4.filter(function(e){return m3(e)===u}):z4,f=d.filter(function(e){return l.indexOf(e)>=0});f.length===0&&(f=d);var p=f.reduce(function(t,n){return t[n]=D3(e,{placement:n,boundary:i,rootBoundary:a,padding:o})[Y4(n)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}function XFe(e){if(Y4(e)===`auto`)return[];var t=_3(e);return[v3(e),t,v3(t)]}function ZFe(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0||i,o=n.altAxis,s=o===void 0||o,c=n.fallbackPlacements,l=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=p===void 0||p,h=n.allowedAutoPlacements,g=t.options.placement,_=Y4(g)===g,v=c||(_||!m?[_3(g)]:XFe(g)),y=[g].concat(v).reduce(function(e,n){return e.concat(Y4(n)===`auto`?YFe(t,{placement:n,boundary:u,rootBoundary:d,padding:l,flipVariations:m,allowedAutoPlacements:h}):n)},[]),b=t.rects.reference,ee=t.rects.popper,x=/* @__PURE__ */ new Map,te=!0,ne=y[0],S=0;S<y.length;S++){var C=y[S],w=Y4(C),re=m3(C)===B4,ie=[`top`,I4].indexOf(w)>=0,ae=ie?`width`:`height`,oe=D3(t,{placement:C,boundary:u,rootBoundary:d,altBoundary:f,padding:l}),se=ie?re?L4:R4:re?I4:`top`;b[ae]>ee[ae]&&(se=_3(se));var ce=_3(se),le=[];if(a&&le.push(oe[w]<=0),s&&le.push(oe[se]<=0,oe[ce]<=0),le.every(function(e){return e})){ne=C,te=!1;break}x.set(C,le)}if(te)for(var ue=m?3:1,de=function(e){var t=y.find(function(t){var n=x.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return ne=t,`break`},fe=ue;fe>0&&de(fe)!==`break`;fe--);t.placement!==ne&&(t.modifiersData[r]._skip=!0,t.placement=ne,t.reset=!0)}}var QFe={name:`flip`,enabled:!0,phase:`main`,fn:ZFe,requiresIfExists:[`offset`],data:{_skip:!1}};function O3(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function k3(e){return[`top`,L4,I4,R4].some(function(t){return e[t]>=0})}function $Fe(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=D3(t,{elementContext:`reference`}),s=D3(t,{altBoundary:!0}),c=O3(o,r),l=O3(s,i,a),u=k3(c),d=k3(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}var eIe={name:`hide`,enabled:!0,phase:`main`,requiresIfExists:[`preventOverflow`],fn:$Fe};function tIe(e,t,n){var r=Y4(e),i=[`left`,`top`].indexOf(r)>=0?-1:1,a=typeof n==`function`?n(Object.assign({},t,{placement:e})):n,o=a[0],s=a[1];return o=o||0,s=(s||0)*i,[`left`,`right`].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function nIe(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,o=U4.reduce(function(e,n){return e[n]=tIe(n,t.rects,a),e},{}),s=o[t.placement],c=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=o}var rIe={name:`offset`,enabled:!0,phase:`main`,requires:[`popperOffsets`],fn:nIe};function iIe(e){var t=e.state,n=e.name;t.modifiersData[n]=E3({reference:t.rects.reference,element:t.rects.popper,strategy:`absolute`,placement:t.placement})}var aIe={name:`popperOffsets`,enabled:!0,phase:`read`,fn:iIe,data:{}};function oIe(e){return e===`x`?`y`:`x`}function sIe(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=i===void 0||i,o=n.altAxis,s=o!==void 0&&o,c=n.boundary,l=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0||f,m=n.tetherOffset,h=m===void 0?0:m,g=D3(t,{boundary:c,rootBoundary:l,padding:d,altBoundary:u}),_=Y4(t.placement),v=m3(t.placement),y=!v,b=l3(_),ee=oIe(b),x=t.modifiersData.popperOffsets,te=t.rects.reference,ne=t.rects.popper,S=typeof h==`function`?h(Object.assign({},t.rects,{placement:t.placement})):h,C=typeof S==`number`?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),w=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,re={x:0,y:0};if(x){if(a){var ie=b===`y`?`top`:R4,ae=b===`y`?I4:L4,oe=b===`y`?`height`:`width`,se=x[b],ce=se+g[ie],le=se-g[ae],ue=p?-ne[oe]/2:0,de=v===`start`?te[oe]:ne[oe],fe=v===`start`?-ne[oe]:-te[oe],pe=t.elements.arrow,me=p&&pe?n3(pe):{width:0,height:0},he=t.modifiersData[`arrow#persistent`]?t.modifiersData[`arrow#persistent`].padding:d3(),ge=he[ie],_e=he[ae],ve=u3(0,te[oe],me[oe]),ye=y?te[oe]/2-ue-ve-ge-C.mainAxis:de-ve-ge-C.mainAxis,be=y?-te[oe]/2+ue+ve+_e+C.mainAxis:fe+ve+_e+C.mainAxis,xe=t.elements.arrow&&c3(t.elements.arrow),Se=xe?b===`y`?xe.clientTop||0:xe.clientLeft||0:0,Ce=w?.[b]??0,we=se+ye-Ce-Se,Te=se+be-Ce,Ee=u3(p?Z4(ce,we):ce,se,p?X4(le,Te):le);x[b]=Ee,re[b]=Ee-se}if(s){var De=b===`x`?`top`:R4,Oe=b===`x`?I4:L4,ke=x[ee],Ae=ee===`y`?`height`:`width`,je=ke+g[De],Me=ke-g[Oe],T=[`top`,R4].indexOf(_)!==-1,Ne=w?.[ee]??0,Pe=T?je:ke-te[Ae]-ne[Ae]-Ne+C.altAxis,Fe=T?ke+te[Ae]+ne[Ae]-Ne-C.altAxis:Me,Ie=p&&T?jFe(Pe,ke,Fe):u3(p?Pe:je,ke,p?Fe:Me);x[ee]=Ie,re[ee]=Ie-ke}t.modifiersData[r]=re}}var cIe={name:`preventOverflow`,enabled:!0,phase:`main`,fn:sIe,requiresIfExists:[`offset`]};function lIe(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function uIe(e){return e===G4(e)||!q4(e)?y3(e):lIe(e)}function dIe(e){var t=e.getBoundingClientRect(),n=Q4(t.width)/e.offsetWidth||1,r=Q4(t.height)/e.offsetHeight||1;return n!==1||r!==1}function fIe(e,t,n){n===void 0&&(n=!1);var r=q4(t),i=q4(t)&&dIe(t),a=a3(t),o=t3(e,i,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((W4(t)!==`body`||x3(a))&&(s=uIe(t)),q4(t)?(c=t3(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=b3(a))),{x:o.left+s.scrollLeft-c.x,y:o.top+s.scrollTop-c.y,width:o.width,height:o.height}}function pIe(e){var t=/* @__PURE__ */ new Map,n=/* @__PURE__ */ new Set,r=[];e.forEach(function(e){t.set(e.name,e)});function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}}),r.push(e)}return e.forEach(function(e){n.has(e.name)||i(e)}),r}function mIe(e){var t=pIe(e);return TFe.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}function hIe(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function gIe(e){var t=e.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{});return Object.keys(t).map(function(e){return t[e]})}var A3={placement:`bottom`,modifiers:[],strategy:`absolute`};function j3(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&typeof e.getBoundingClientRect==`function`)})}function _Ie(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,a=i===void 0?A3:i;return function(e,t,n){n===void 0&&(n=a);var i={placement:`bottom`,orderedModifiers:[],options:Object.assign({},A3,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},o=[],s=!1,c={state:i,setOptions:function(n){var o=typeof n==`function`?n(i.options):n;u(),i.options=Object.assign({},a,i.options,o),i.scrollParents={reference:K4(e)?C3(e):e.contextElement?C3(e.contextElement):[],popper:C3(t)};var s=mIe(gIe([].concat(r,i.options.modifiers)));return i.orderedModifiers=s.filter(function(e){return e.enabled}),l(),c.update()},forceUpdate:function(){if(!s){var e=i.elements,t=e.reference,n=e.popper;if(j3(t,n)){i.rects={reference:fIe(t,c3(n),i.options.strategy===`fixed`),popper:n3(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach(function(e){return i.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0;r<i.orderedModifiers.length;r++){if(i.reset===!0){i.reset=!1,r=-1;continue}var a=i.orderedModifiers[r],o=a.fn,l=a.options,u=l===void 0?{}:l,d=a.name;typeof o==`function`&&(i=o({state:i,options:u,name:d,instance:c})||i)}}}},update:hIe(function(){return new Promise(function(e){c.forceUpdate(),e(i)})}),destroy:function(){u(),s=!0}};if(!j3(e,t))return c;c.setOptions(n).then(function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)});function l(){i.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=n===void 0?{}:n,a=e.effect;if(typeof a==`function`){var s=a({state:i,name:t,instance:c,options:r});o.push(s||function(){})}})}function u(){o.forEach(function(e){return e()}),o=[]}return c}}var vIe=/*#__PURE__*/ _Ie({defaultModifiers:[VFe,aIe,zFe,OFe,rIe,QFe,cIe,FFe,eIe]});let yIe={toView(e){return JSON.stringify(e)},fromView(e){return e==null?e:JSON.parse(e)}};var M3=class extends P{constructor(){super(...arguments),this.show=!1,this.event=`click`,this.placement=`bottom`,this.flip=!1}selectorChanged(e,t){t!==e&&(this.popper&&this.popper.destroy(),this.target&&this.target.removeEventListener(this.event,this.toggle.bind(this)),this.target=this.getRootNode().querySelector(this.selector),this.target.addEventListener(this.event,this.toggle.bind(this)),this.popper=vIe(this.target,this,this.buildOptions()))}placementChanged(){this.popper&&this.popper.setOptions(this.buildOptions())}offsetChanged(){this.popper&&this.popper.setOptions(this.buildOptions())}flipChanged(){this.popper&&this.popper.setOptions(this.buildOptions())}buildOptions(){return{placement:this.placement,modifiers:[{name:`offset`,options:{offset:this.offset||[0,0]}},{name:`flip`,enabled:this.flip}]}}toggle(){this.show=!this.show}disconnectedCallback(){super.disconnectedCallback(),this.popper&&(this.popper.destroy(),this.popper=null)}};q([D],M3.prototype,`selector`,void 0),q([D({mode:`boolean`})],M3.prototype,`show`,void 0),q([D],M3.prototype,`event`,void 0),q([D],M3.prototype,`placement`,void 0),q([D({converter:yIe})],M3.prototype,`offset`,void 0),q([D({mode:`boolean`})],M3.prototype,`flip`,void 0);let bIe=O` :host{display: none;inset: unset !important;transform: unset !important}:host([show]){display: block}`,xIe=T`<template><slot></slot></template>`;M3.compose({baseName:`popper`,styles:bIe,template:xIe});let N3=(e,t)=>oa(e,t),P3=(e,t)=>O` ${_u(e,t)}`;var F3=class extends sa{};let I3={indeterminateIndicator:`
939
939
  <svg class="progress" part="progress" viewBox="0 0 16 16">
940
940
  <circle class="background" part="background" cx="8px" cy="8px" r="7px"></circle>
941
941
  <circle class="indeterminate-indicator-1" part="indeterminate-indicator-1" cx="8px" cy="8px" r="7px"></circle>
942
942
  </svg>
943
943
  `};F3.compose(Object.assign({baseName:`progress-ring`,template:N3,styles:P3,shadowOptions:void 0},I3));let L3=(e,t)=>da(e,t),R3=(e,t)=>O` ${bu(e,t)}`;var z3=class extends fa{};let B3={checkedIndicator:`
944
944
  <div part="checked-indicator" class="checked-indicator"></div>
945
- `};z3.compose(Object.assign({baseName:`radio`,template:L3,styles:R3,shadowOptions:void 0},B3));let V3=(e,t)=>la(e,t),H3=(e,t)=>O` ${yu(e,t)}`;var U3=class extends ua{};let W3={};U3.compose(Object.assign({baseName:`radio-group`,template:V3,styles:H3,shadowOptions:void 0},W3));let G3=O` /* Host */ :host{display: flex;flex-direction: column;width: 100%}`,K3=e=>T`<template><${e}-scheduler-timezone :timezone=${cf(e=>e.timezone)}@change=${(e,t)=>e.handleChange(t.event,`timezone`)}></${e}-scheduler-timezone><${e}-scheduler-cron-builder :cron=${cf(e=>e.cron)}@change=${(e,t)=>e.handleChange(t.event,`cronExpression`)}min-minute-interval=${e=>e.minMinuteInterval}?disable-tooltips=${e=>e.disableTooltips}></${e}-scheduler-cron-builder></template>`,bIe=T` ${e=>K3(yb(e))} `;var q3=class extends P{constructor(){super(...arguments),this.disableTooltips=!1,this.timezone=``,this.cron=``}cronConfigChanged(){this.timezone=this.cronConfig?.timezone||``,this.cron=this.cronConfig?.cronExpression||``}handleChange(e,t){e.stopPropagation();let{value:n}=e.target;this.cronConfig=Object.assign(Object.assign({},this.cronConfig),{[t]:n}),this.$emit(`change`,this.cronConfig)}};q([D({attribute:`min-minute-interval`})],q3.prototype,`minMinuteInterval`,void 0),q([D({mode:`boolean`,attribute:`disable-tooltips`})],q3.prototype,`disableTooltips`,void 0),q([C],q3.prototype,`timezone`,void 0),q([C],q3.prototype,`cron`,void 0),q([C],q3.prototype,`cronConfig`,void 0);let J3={};q3.compose(Object.assign({baseName:`scheduler`,styles:G3,template:bIe,shadowOptions:void 0},J3));var Q;(function(e){e.MINUTES=`Minutes`,e.HOURLY=`Hourly`,e.DAILY=`Daily`,e.WEEKLY=`Weekly`,e.MONTHLY=`Monthly`,e.YEARLY=`Yearly`})(Q||(Q={}));var Y3;(function(e){e.WEEK=`Week`,e.WORK_WEEK=`Work week`})(Y3||(Y3={}));var X3;(function(e){e.DATE=`Date`,e.DAY_OF_MONTH=`Day of month`})(X3||(X3={}));let Z3=[{value:`2`,label:`Monday`},{value:`3`,label:`Tuesday`},{value:`4`,label:`Wednesday`},{value:`5`,label:`Thursday`},{value:`6`,label:`Friday`},{value:`7`,label:`Saturday`},{value:`1`,label:`Sunday`}],xIe=[{value:`1`,label:`First`},{value:`2`,label:`Second`},{value:`3`,label:`Third`},{value:`4`,label:`Fourth`},{value:`-1`,label:`Last`}],SIe=[{value:`1`,label:`January`},{value:`2`,label:`February`},{value:`3`,label:`March`},{value:`4`,label:`April`},{value:`5`,label:`May`},{value:`6`,label:`June`},{value:`7`,label:`July`},{value:`8`,label:`August`},{value:`9`,label:`September`},{value:`10`,label:`October`},{value:`11`,label:`November`},{value:`12`,label:`December`}];var Q3;(function(e){e.updateCronConfig=`update-cron-config`})(Q3||(Q3={}));let $3=e=>Number(e)>1?`/${e}`:``;function CIe(e){return e.during===`specific_hours`&&e.hours&&e.hours!==`*`?`${e.seconds} ${e.minutes} ${e.hours} ? * *`:`${e.seconds} ${e.minutes} 0/${e.frequency} ? * *`}function wIe(e){let t=e.during===`specific_hours`&&e.hours?e.hours:`*`;return`${e.seconds} 0/${e.frequency} ${t} ? * *`}function TIe(e,t=$3){let n=e.weekType===Y3.WORK_WEEK?`?`:`*${t(e.frequency)}`;return`${e.seconds} ${e.minutes} ${e.hours} ${n} * ${e.weekType===Y3.WORK_WEEK?`2-6`:`?`}`}function EIe(e){let t=[...e.selectedDays].join(`,`)||`*`;return`${e.seconds} ${e.minutes} ${e.hours} ? * ${t}`}function DIe(e,t=$3){let{dateOrDay:n,minutes:r,hours:i,seconds:a,frequency:o}=e,s=t(o);return n.type===X3.DATE?`${a} ${r} ${i} ${n.dayDate} *${s} ?`:n.weekNumber===`-1`?`${a} ${r} ${i} ? *${s} ${n.day}L`:`${e.seconds} ${r} ${i} ? *${s} ${n.day}#${n.weekNumber}`}function OIe(e){let{dateOrDay:t,minutes:n,seconds:r,hours:i}=e;return t.type===X3.DATE?`${r} ${n} ${i} ${t.dayDate} ${t.month} ?`:t.weekNumber===`-1`?`${r} ${n} ${i} ? ${t.month} ${t.day}L`:`${r} ${n} ${i} ? ${t.month} ${t.day}#${t.weekNumber}`}let kIe=(e,t,n)=>{let r=Number(e);return!isNaN(r)&&r<=n&&r>=t};function e6(e,t,n,r=!1,i=kIe){if(e===`*`||r&&(e===`?`||e===`L`))return!0;if(r&&e.endsWith(`L`))return i(e.slice(0,-1),t,n);if(e.startsWith(`*/`)||e.startsWith(`0/`))return i(e.substring(2),1,n);if(r&&e.includes(`#`)){let[r,a]=e.split(`#`);return i(r,t,n)&&i(a,1,4)}if(i(e,t,n))return!0;if(e.includes(`-`)){let[r,a]=e.split(`-`);return i(r,t,n)&&i(a,t,n)}return e.includes(`,`)?e.split(`,`).every(e=>e6(e,t,n,r,i)):!1}let AIe=(e,t=e6)=>{let n=e.trim().split(` `);if(n.length!=6)return!1;let[r,i,a,o,s,c]=n;return t(r,0,59)&&t(i,0,59)&&t(a,0,23)&&t(o,1,31,!0)&&t(s,1,12)&&t(c,0,7,!0)};function jIe(e,t){return{type:Q.DAILY,frequency:e.startsWith(`*/`)?e.split(`*/`)[1]:`1`,weekType:t===`?`?Y3.WEEK:Y3.WORK_WEEK}}function MIe(e){let t=e.includes(`/`);return{type:Q.HOURLY,frequency:t?e.split(`/`)[1]:`1`,during:t?`every_hour`:`specific_hours`,hours:t?void 0:e}}function NIe(e,t=`*`){let n=t!==`*`&&t!==`0/1`;return{type:Q.MINUTES,frequency:e.includes(`/`)?e.split(`/`)[1]:`1`,during:n?`specific_hours`:`every_hour`,hours:n?t:void 0}}function PIe(e){return{type:Q.WEEKLY,selectedDays:e===`*`?/* @__PURE__ */ new Set:new Set(e.split(`,`))}}let t6=(e,t,n,r)=>{let i;return i=t===`?`?{type:X3.DAY_OF_MONTH,day:r.split(/[L#]/)[0],weekNumber:r.includes(`#`)?r.split(`#`)[1]:`-1`}:{type:X3.DATE,dayDate:t},e===Q.YEARLY&&(i.month=n),i};function FIe(e,t,n,r=t6){return{type:Q.YEARLY,frequency:n.split(`/`).length===2?n.split(`/`)[1]:`1`,dateOrDay:r(Q.YEARLY,e,t,n.split(`/`)[0])}}function IIe(e,t,n,r=t6){return{type:Q.MONTHLY,frequency:t.startsWith(`*/`)?t.split(`*/`)[1]:`1`,dateOrDay:r(Q.MONTHLY,e,t,n.split(`/`)[0])}}function LIe(e,t){if(!e)return;let[n,r,i,a,o,s]=e.split(` `);if(s!==`?`&&a!==`?`)throw Error(`Support for specifying both a day-of-week AND a day-of-month parameter is not implemented`);if(/^(0|\*)\/\d+$/.test(r))return Object.assign({seconds:n},t.buildConfigForMinutesRecurrence(r,i));if(/^(0|\*)\/\d+$/.test(i)||a===`?`&&s===`*`)return Object.assign({minutes:r,seconds:n},t.buildConfigForHourlyRecurrence(i));if(s===`2-6`||s===`?`&&(a===`*`||a.startsWith(`*`)))return Object.assign({hours:i,minutes:r,seconds:n},t.buildConfigForDailyRecurrence(a,s));if(/^([1-7](,[1-7])*)$/.test(s)||s===`*`)return Object.assign({hours:i,minutes:r,seconds:n},t.buildConfigForWeeklyRecurrence(s));if(s.includes(`L`)||s.includes(`#`)||/^([1-9]|[12]\d|3[01])$/.test(a)&&s===`?`)return o!=`*`&&!o.startsWith(`*/`)?Object.assign({hours:i,minutes:r,seconds:n},t.buildConfigForYearlyRecurrence(a,o,s)):Object.assign({hours:i,minutes:r,seconds:n},t.buildConfigForMonthlyRecurrence(a,o,s));throw Error(`Invalid Cron Expression`)}let n6=O` .input-container{display: flex;flex-direction: column;gap: calc(var(--design-unit) * 2px)}.label{color: var(--neutral-foreground-hint);display: block;cursor: pointer;font-size: var(--type-ramp-base-font-size);line-height: var(--type-ramp-base-line-height);font-style: normal}.row{display: flex;width: 100%;flex-wrap: wrap;align-items: flex-start;gap: calc(var(--design-unit) * 4px)}.minutes-options-row{width: 100%;display: flex;flex-wrap: wrap;align-items: flex-start;gap: calc(var(--design-unit) * 4px)}.break{width: 100%;height: 0}`,r6=O` ${n6} /* Host */ :host{display: flex;flex-direction: column;width: 100%}.container{padding: calc(var(--design-unit) * 2px) calc(var(--design-unit) * 4px);display: flex;flex-direction: column;gap: calc(var(--design-unit) * 4px)}.flex-row{display: flex;align-items: center;gap: calc(var(--design-unit) * 4px)}.time-select{min-width: 110px;position: relative}[data-test-id='hours-multiselect']{min-width: 400px}[data-test-id='hours-multiselect']::part(options-ol){display: grid;grid-template-columns: repeat(6, 1fr)}.frequency-select{position: relative}.frequency-select::part(end), .time-select::part(end){min-width: 0;width: 0}.frequency-select::part(listbox), .time-select::part(listbox){max-height: 20vh}.suffix-label{position: absolute;right: 35px;/* Move it before the icon */ top: 50%;transform: translateY(-50%);padding: 0 calc(var(--design-unit) * 1px);color: var(--neutral-foreground-hint);font-size: var(--type-ramp-minus-1-font-size);white-space: nowrap}`,RIe=e=>e?.hasOwnProperty(`bubbles`)||e?.hasOwnProperty(`cancelable`)||e?.hasOwnProperty(`composed`)||e?.hasOwnProperty(`broadcast`),i6=(...e)=>{let[t,n,r]=e,i=n;if(RIe(n)&&(r=n,i=void 0),typeof t!=`string`)throw Error(`$emit event types must be typeof string.`);return[t,i,r]};var zIe=class{emit(...e){let[t,...n]=e,[r,i,a]=i6(...n);return t.$emit(r,i,a)}};N.createInterface(e=>e.singleton(zIe));let a6=e=>{class t extends e{$emit(...e){let[t,n,r]=i6(...e);if(r?.broadcast){let e=new CustomEvent(t,Object.assign({detail:n,bubbles:!0,composed:!0,cancelable:!0},r));return e.broadcast=!0,this.dispatchEvent(e)}return super.$emit(t,n,r)}}return t};kd(`foundation-events`);let BIe=O` ${n6}`,VIe=e=>`
945
+ `};z3.compose(Object.assign({baseName:`radio`,template:L3,styles:R3,shadowOptions:void 0},B3));let V3=(e,t)=>la(e,t),H3=(e,t)=>O` ${yu(e,t)}`;var U3=class extends ua{};let W3={};U3.compose(Object.assign({baseName:`radio-group`,template:V3,styles:H3,shadowOptions:void 0},W3));let G3=O` /* Host */ :host{display: flex;flex-direction: column;width: 100%}`,K3=e=>T`<template><${e}-scheduler-timezone :timezone=${cf(e=>e.timezone)}@change=${(e,t)=>e.handleChange(t.event,`timezone`)}></${e}-scheduler-timezone><${e}-scheduler-cron-builder :cron=${cf(e=>e.cron)}@change=${(e,t)=>e.handleChange(t.event,`cronExpression`)}min-minute-interval=${e=>e.minMinuteInterval}?disable-tooltips=${e=>e.disableTooltips}></${e}-scheduler-cron-builder></template>`,SIe=T` ${e=>K3(yb(e))} `;var q3=class extends P{constructor(){super(...arguments),this.disableTooltips=!1,this.timezone=``,this.cron=``}cronConfigChanged(){this.timezone=this.cronConfig?.timezone||``,this.cron=this.cronConfig?.cronExpression||``}handleChange(e,t){e.stopPropagation();let{value:n}=e.target;this.cronConfig=Object.assign(Object.assign({},this.cronConfig),{[t]:n}),this.$emit(`change`,this.cronConfig)}};q([D({attribute:`min-minute-interval`})],q3.prototype,`minMinuteInterval`,void 0),q([D({mode:`boolean`,attribute:`disable-tooltips`})],q3.prototype,`disableTooltips`,void 0),q([C],q3.prototype,`timezone`,void 0),q([C],q3.prototype,`cron`,void 0),q([C],q3.prototype,`cronConfig`,void 0);let J3={};q3.compose(Object.assign({baseName:`scheduler`,styles:G3,template:SIe,shadowOptions:void 0},J3));var Q;(function(e){e.MINUTES=`Minutes`,e.HOURLY=`Hourly`,e.DAILY=`Daily`,e.WEEKLY=`Weekly`,e.MONTHLY=`Monthly`,e.YEARLY=`Yearly`})(Q||(Q={}));var Y3;(function(e){e.WEEK=`Week`,e.WORK_WEEK=`Work week`})(Y3||(Y3={}));var X3;(function(e){e.DATE=`Date`,e.DAY_OF_MONTH=`Day of month`})(X3||(X3={}));let Z3=[{value:`2`,label:`Monday`},{value:`3`,label:`Tuesday`},{value:`4`,label:`Wednesday`},{value:`5`,label:`Thursday`},{value:`6`,label:`Friday`},{value:`7`,label:`Saturday`},{value:`1`,label:`Sunday`}],CIe=[{value:`1`,label:`First`},{value:`2`,label:`Second`},{value:`3`,label:`Third`},{value:`4`,label:`Fourth`},{value:`-1`,label:`Last`}],wIe=[{value:`1`,label:`January`},{value:`2`,label:`February`},{value:`3`,label:`March`},{value:`4`,label:`April`},{value:`5`,label:`May`},{value:`6`,label:`June`},{value:`7`,label:`July`},{value:`8`,label:`August`},{value:`9`,label:`September`},{value:`10`,label:`October`},{value:`11`,label:`November`},{value:`12`,label:`December`}];var Q3;(function(e){e.updateCronConfig=`update-cron-config`})(Q3||(Q3={}));let $3=e=>Number(e)>1?`/${e}`:``;function TIe(e){return e.during===`specific_hours`&&e.hours&&e.hours!==`*`?`${e.seconds} ${e.minutes} ${e.hours} ? * *`:`${e.seconds} ${e.minutes} 0/${e.frequency} ? * *`}function EIe(e){let t=e.during===`specific_hours`&&e.hours?e.hours:`*`;return`${e.seconds} 0/${e.frequency} ${t} ? * *`}function DIe(e,t=$3){let n=e.weekType===Y3.WORK_WEEK?`?`:`*${t(e.frequency)}`;return`${e.seconds} ${e.minutes} ${e.hours} ${n} * ${e.weekType===Y3.WORK_WEEK?`2-6`:`?`}`}function OIe(e){let t=[...e.selectedDays].join(`,`)||`*`;return`${e.seconds} ${e.minutes} ${e.hours} ? * ${t}`}function kIe(e,t=$3){let{dateOrDay:n,minutes:r,hours:i,seconds:a,frequency:o}=e,s=t(o);return n.type===X3.DATE?`${a} ${r} ${i} ${n.dayDate} *${s} ?`:n.weekNumber===`-1`?`${a} ${r} ${i} ? *${s} ${n.day}L`:`${e.seconds} ${r} ${i} ? *${s} ${n.day}#${n.weekNumber}`}function AIe(e){let{dateOrDay:t,minutes:n,seconds:r,hours:i}=e;return t.type===X3.DATE?`${r} ${n} ${i} ${t.dayDate} ${t.month} ?`:t.weekNumber===`-1`?`${r} ${n} ${i} ? ${t.month} ${t.day}L`:`${r} ${n} ${i} ? ${t.month} ${t.day}#${t.weekNumber}`}let jIe=(e,t,n)=>{let r=Number(e);return!isNaN(r)&&r<=n&&r>=t};function e6(e,t,n,r=!1,i=jIe){if(e===`*`||r&&(e===`?`||e===`L`))return!0;if(r&&e.endsWith(`L`))return i(e.slice(0,-1),t,n);if(e.startsWith(`*/`)||e.startsWith(`0/`))return i(e.substring(2),1,n);if(r&&e.includes(`#`)){let[r,a]=e.split(`#`);return i(r,t,n)&&i(a,1,4)}if(i(e,t,n))return!0;if(e.includes(`-`)){let[r,a]=e.split(`-`);return i(r,t,n)&&i(a,t,n)}return e.includes(`,`)?e.split(`,`).every(e=>e6(e,t,n,r,i)):!1}let MIe=(e,t=e6)=>{let n=e.trim().split(` `);if(n.length!=6)return!1;let[r,i,a,o,s,c]=n;return t(r,0,59)&&t(i,0,59)&&t(a,0,23)&&t(o,1,31,!0)&&t(s,1,12)&&t(c,0,7,!0)};function NIe(e,t){return{type:Q.DAILY,frequency:e.startsWith(`*/`)?e.split(`*/`)[1]:`1`,weekType:t===`?`?Y3.WEEK:Y3.WORK_WEEK}}function PIe(e){let t=e.includes(`/`);return{type:Q.HOURLY,frequency:t?e.split(`/`)[1]:`1`,during:t?`every_hour`:`specific_hours`,hours:t?void 0:e}}function FIe(e,t=`*`){let n=t!==`*`&&t!==`0/1`;return{type:Q.MINUTES,frequency:e.includes(`/`)?e.split(`/`)[1]:`1`,during:n?`specific_hours`:`every_hour`,hours:n?t:void 0}}function IIe(e){return{type:Q.WEEKLY,selectedDays:e===`*`?/* @__PURE__ */ new Set:new Set(e.split(`,`))}}let t6=(e,t,n,r)=>{let i;return i=t===`?`?{type:X3.DAY_OF_MONTH,day:r.split(/[L#]/)[0],weekNumber:r.includes(`#`)?r.split(`#`)[1]:`-1`}:{type:X3.DATE,dayDate:t},e===Q.YEARLY&&(i.month=n),i};function LIe(e,t,n,r=t6){return{type:Q.YEARLY,frequency:n.split(`/`).length===2?n.split(`/`)[1]:`1`,dateOrDay:r(Q.YEARLY,e,t,n.split(`/`)[0])}}function RIe(e,t,n,r=t6){return{type:Q.MONTHLY,frequency:t.startsWith(`*/`)?t.split(`*/`)[1]:`1`,dateOrDay:r(Q.MONTHLY,e,t,n.split(`/`)[0])}}function zIe(e,t){if(!e)return;let[n,r,i,a,o,s]=e.split(` `);if(s!==`?`&&a!==`?`)throw Error(`Support for specifying both a day-of-week AND a day-of-month parameter is not implemented`);if(/^(0|\*)\/\d+$/.test(r))return Object.assign({seconds:n},t.buildConfigForMinutesRecurrence(r,i));if(/^(0|\*)\/\d+$/.test(i)||a===`?`&&s===`*`)return Object.assign({minutes:r,seconds:n},t.buildConfigForHourlyRecurrence(i));if(s===`2-6`||s===`?`&&(a===`*`||a.startsWith(`*`)))return Object.assign({hours:i,minutes:r,seconds:n},t.buildConfigForDailyRecurrence(a,s));if(/^([1-7](,[1-7])*)$/.test(s)||s===`*`)return Object.assign({hours:i,minutes:r,seconds:n},t.buildConfigForWeeklyRecurrence(s));if(s.includes(`L`)||s.includes(`#`)||/^([1-9]|[12]\d|3[01])$/.test(a)&&s===`?`)return o!=`*`&&!o.startsWith(`*/`)?Object.assign({hours:i,minutes:r,seconds:n},t.buildConfigForYearlyRecurrence(a,o,s)):Object.assign({hours:i,minutes:r,seconds:n},t.buildConfigForMonthlyRecurrence(a,o,s));throw Error(`Invalid Cron Expression`)}let n6=O` .input-container{display: flex;flex-direction: column;gap: calc(var(--design-unit) * 2px)}.label{color: var(--neutral-foreground-hint);display: block;cursor: pointer;font-size: var(--type-ramp-base-font-size);line-height: var(--type-ramp-base-line-height);font-style: normal}.row{display: flex;width: 100%;flex-wrap: wrap;align-items: flex-start;gap: calc(var(--design-unit) * 4px)}.minutes-options-row{width: 100%;display: flex;flex-wrap: wrap;align-items: flex-start;gap: calc(var(--design-unit) * 4px)}.break{width: 100%;height: 0}`,r6=O` ${n6} /* Host */ :host{display: flex;flex-direction: column;width: 100%}.container{padding: calc(var(--design-unit) * 2px) calc(var(--design-unit) * 4px);display: flex;flex-direction: column;gap: calc(var(--design-unit) * 4px)}.flex-row{display: flex;align-items: center;gap: calc(var(--design-unit) * 4px)}.time-select{min-width: 110px;position: relative}[data-test-id='hours-multiselect']{min-width: 400px}[data-test-id='hours-multiselect']::part(options-ol){display: grid;grid-template-columns: repeat(6, 1fr)}.frequency-select{position: relative}.frequency-select::part(end), .time-select::part(end){min-width: 0;width: 0}.frequency-select::part(listbox), .time-select::part(listbox){max-height: 20vh}.suffix-label{position: absolute;right: 35px;/* Move it before the icon */ top: 50%;transform: translateY(-50%);padding: 0 calc(var(--design-unit) * 1px);color: var(--neutral-foreground-hint);font-size: var(--type-ramp-minus-1-font-size);white-space: nowrap}`,BIe=e=>e?.hasOwnProperty(`bubbles`)||e?.hasOwnProperty(`cancelable`)||e?.hasOwnProperty(`composed`)||e?.hasOwnProperty(`broadcast`),i6=(...e)=>{let[t,n,r]=e,i=n;if(BIe(n)&&(r=n,i=void 0),typeof t!=`string`)throw Error(`$emit event types must be typeof string.`);return[t,i,r]};var VIe=class{emit(...e){let[t,...n]=e,[r,i,a]=i6(...n);return t.$emit(r,i,a)}};N.createInterface(e=>e.singleton(VIe));let a6=e=>{class t extends e{$emit(...e){let[t,n,r]=i6(...e);if(r?.broadcast){let e=new CustomEvent(t,Object.assign({detail:n,bubbles:!0,composed:!0,cancelable:!0},r));return e.broadcast=!0,this.dispatchEvent(e)}return super.$emit(t,n,r)}}return t};kd(`foundation-events`);let HIe=O` ${n6}`,UIe=e=>`
946
946
  <p>Select how often the event should occur:</p>
947
947
  <ul>
948
948
  ${e?`<li><strong>Minutes:</strong> Runs at every interval of minutes from the hour. Can be for every or specific hours.</li>`:``}
@@ -954,17 +954,17 @@ ${e?`<li><strong>Minutes:</strong> Runs at every interval of minutes from the ho
954
954
  </ul>
955
955
  `,o6=`
956
956
  <p>Select one or more hours.</p>
957
- `,HIe=e=>T`<template><div class="input-container"><label class="label">Of ${t=>t.disableTooltips?``:Bb(`
957
+ `,WIe=e=>T`<template><div class="input-container"><label class="label">Of ${t=>t.disableTooltips?``:Bb(`
958
958
  <p>Controls the daily frequency:</p>
959
959
  <ul>
960
960
  <li><strong>Week:</strong> allows you to configure the frequency of repeating days, including both weekdays and weekends.</li>
961
961
  <li><strong>Work week:</strong> runs the schedule at the specified time on every weekday (Monday - Friday). When this option is selected you cannot change the day frequency, it's every weekday.</li>
962
962
  </ul>
963
- `,e)}</label><${e}-select data-test-id="select-week-type" :value=${cf(e=>e.weekType)}@change="${e=>e.updateCronConfig()}"><${e}-option data-test-id="${Y3.WEEK}">${Y3.WEEK}</${e}-option><${e}-option data-test-id="${Y3.WORK_WEEK}">${Y3.WORK_WEEK}</${e}-option></${e}-select></div></template>`,UIe=T` ${e=>HIe(e.prefix)} `,s6=class extends a6(P){constructor(){super(...arguments),this.disableTooltips=!1,this.prefix=``}configChanged(){this.weekType=this.config?.weekType||Y3.WORK_WEEK}updateCronConfig(){this.config=Object.assign(Object.assign({},this.config),{weekType:this.weekType}),this.$emit(Q3.updateCronConfig,this.config)}};q([D({mode:`boolean`,attribute:`disable-tooltips`})],s6.prototype,`disableTooltips`,void 0),q([C],s6.prototype,`prefix`,void 0),q([C],s6.prototype,`config`,void 0),q([C],s6.prototype,`weekType`,void 0),s6=q([$e({name:`daily-recurrence`,template:UIe,styles:BIe})],s6);let WIe=O` ${n6} :host{display: flex;flex-direction: column;gap: calc(var(--design-unit) * 4px)}.weekdays-row{display: flex;gap: calc(var(--design-unit) * 3px)}.day-of-month-row{display: flex;gap: calc(var(--design-unit) * 4px);width: 100%}.day-date-number-field::part(root){width: 40%}`,GIe=e=>T`<div class="input-container"><label class="label">On</label><${e}-select data-test-id="select-day-or-date" :value=${cf(e=>e.dayOrDate)}@change="${e=>e.updateCronConfig()}"><${e}-option data-test-id="${X3.DATE}">${X3.DATE}</${e}-option><${e}-option data-test-id="${X3.DAY_OF_MONTH}">${X3.DAY_OF_MONTH}</${e}-option></${e}-select></div>`,c6=e=>T`<div class="input-container"><label class="label">Month</label><${e}-select data-test-id="month-dropdown" :value=${cf(e=>e.selectedMonth)}@change="${e=>e.updateCronConfig()}">${j(()=>SIe,T`<${e}-option value="${e=>e.value}">${e=>e.label}</${e}-option>`)}</${e}-select></div>`,KIe=e=>T`<div class="row">${A(e=>e.config.type===Q.YEARLY,T` ${c6(e)} `)}<div class="input-container"><label class="label">${e=>e.config.type===Q.MONTHLY?`Day date`:`Day`}</label><${e}-select data-test-id="day-date-dropdown" :value=${cf(e=>e.dayDate)}@change="${e=>e.updateCronConfig()}">${j(()=>Array.from({length:31},(e,t)=>t+1),T`<${e}-option value="${e=>e}">${e=>e}</${e}-option>`)}</${e}-select></div></div>`,qIe=e=>T`<div class="day-of-month-row">${A(e=>e.config.type===Q.YEARLY,T` ${c6(e)} `)}<div class="input-container"><label class="label">Day of Month</label><${e}-select data-test-id="select-week-number" :value=${cf(e=>e.weekNumber)}@change="${e=>e.updateCronConfig()}">${j(()=>xIe,T`<${e}-option value="${e=>e.value}">${e=>e.label}</${e}-option>`)}</${e}-select></div><div class="input-container"><label class="label">Day</label><${e}-select data-test-id="select-week-day" :value=${cf(e=>e.day)}@change="${e=>e.updateCronConfig()}">${j(()=>Z3,T`<${e}-option value="${e=>e.value}">${e=>e.label}</${e}-option>`)}</${e}-select></div></div>`,JIe=e=>T` ${GIe(e)} ${lf(e=>e.dayOrDate===X3.DATE,KIe(e),qIe(e))} `,YIe=T` ${e=>JIe(e.prefix)} `,l6=class extends a6(P){constructor(){super(...arguments),this.prefix=``,this.dayOrDate=X3.DATE,this.weekNumber=`1`,this.day=`1`,this.selectedMonth=`1`}configChanged(){(this.config.type===Q.YEARLY||this.config.type===Q.MONTHLY)&&(this.dayOrDate=this.config.dateOrDay.type||X3.DATE,this.setFieldsFromConfig())}setFieldsFromConfig(){this.config.type===Q.YEARLY&&(this.selectedMonth=this.config.dateOrDay.month),this.config.dateOrDay.type===X3.DAY_OF_MONTH?(this.weekNumber=this.config.dateOrDay.weekNumber||`1`,this.day=this.config.dateOrDay.day||`1`):this.dayDate=this.config.dateOrDay.dayDate||`1`}getDayOrDateConfig(){let e;return e=this.dayOrDate===X3.DATE?{type:X3.DATE,dayDate:this.dayDate||`1`}:{type:X3.DAY_OF_MONTH,day:this.day||`1`,weekNumber:this.weekNumber||`1`},e}updateCronConfig(){this.config=this.config.type===Q.MONTHLY?Object.assign(Object.assign({},this.config),{dateOrDay:this.getDayOrDateConfig()}):Object.assign(Object.assign({},this.config),{dateOrDay:Object.assign(Object.assign({},this.getDayOrDateConfig()),{month:this.selectedMonth||`1`})}),this.$emit(Q3.updateCronConfig,this.config)}};q([C],l6.prototype,`prefix`,void 0),q([C],l6.prototype,`config`,void 0),q([C],l6.prototype,`dayOrDate`,void 0),q([C],l6.prototype,`dayDate`,void 0),q([C],l6.prototype,`weekNumber`,void 0),q([C],l6.prototype,`day`,void 0),q([C],l6.prototype,`selectedMonth`,void 0),l6=q([$e({name:`monthly-yearly-recurrence`,template:YIe,styles:WIe})],l6);let XIe=O` ${n6} .weekdays-row{display: flex;gap: calc(var(--design-unit) * 3px);flex-wrap: wrap}`,ZIe=e=>T`<template><div class="input-container"><label class="label">
963
+ `,e)}</label><${e}-select data-test-id="select-week-type" :value=${cf(e=>e.weekType)}@change="${e=>e.updateCronConfig()}"><${e}-option data-test-id="${Y3.WEEK}">${Y3.WEEK}</${e}-option><${e}-option data-test-id="${Y3.WORK_WEEK}">${Y3.WORK_WEEK}</${e}-option></${e}-select></div></template>`,GIe=T` ${e=>WIe(e.prefix)} `,s6=class extends a6(P){constructor(){super(...arguments),this.disableTooltips=!1,this.prefix=``}configChanged(){this.weekType=this.config?.weekType||Y3.WORK_WEEK}updateCronConfig(){this.config=Object.assign(Object.assign({},this.config),{weekType:this.weekType}),this.$emit(Q3.updateCronConfig,this.config)}};q([D({mode:`boolean`,attribute:`disable-tooltips`})],s6.prototype,`disableTooltips`,void 0),q([C],s6.prototype,`prefix`,void 0),q([C],s6.prototype,`config`,void 0),q([C],s6.prototype,`weekType`,void 0),s6=q([$e({name:`daily-recurrence`,template:GIe,styles:HIe})],s6);let KIe=O` ${n6} :host{display: flex;flex-direction: column;gap: calc(var(--design-unit) * 4px)}.weekdays-row{display: flex;gap: calc(var(--design-unit) * 3px)}.day-of-month-row{display: flex;gap: calc(var(--design-unit) * 4px);width: 100%}.day-date-number-field::part(root){width: 40%}`,qIe=e=>T`<div class="input-container"><label class="label">On</label><${e}-select data-test-id="select-day-or-date" :value=${cf(e=>e.dayOrDate)}@change="${e=>e.updateCronConfig()}"><${e}-option data-test-id="${X3.DATE}">${X3.DATE}</${e}-option><${e}-option data-test-id="${X3.DAY_OF_MONTH}">${X3.DAY_OF_MONTH}</${e}-option></${e}-select></div>`,c6=e=>T`<div class="input-container"><label class="label">Month</label><${e}-select data-test-id="month-dropdown" :value=${cf(e=>e.selectedMonth)}@change="${e=>e.updateCronConfig()}">${j(()=>wIe,T`<${e}-option value="${e=>e.value}">${e=>e.label}</${e}-option>`)}</${e}-select></div>`,JIe=e=>T`<div class="row">${A(e=>e.config.type===Q.YEARLY,T` ${c6(e)} `)}<div class="input-container"><label class="label">${e=>e.config.type===Q.MONTHLY?`Day date`:`Day`}</label><${e}-select data-test-id="day-date-dropdown" :value=${cf(e=>e.dayDate)}@change="${e=>e.updateCronConfig()}">${j(()=>Array.from({length:31},(e,t)=>t+1),T`<${e}-option value="${e=>e}">${e=>e}</${e}-option>`)}</${e}-select></div></div>`,YIe=e=>T`<div class="day-of-month-row">${A(e=>e.config.type===Q.YEARLY,T` ${c6(e)} `)}<div class="input-container"><label class="label">Day of Month</label><${e}-select data-test-id="select-week-number" :value=${cf(e=>e.weekNumber)}@change="${e=>e.updateCronConfig()}">${j(()=>CIe,T`<${e}-option value="${e=>e.value}">${e=>e.label}</${e}-option>`)}</${e}-select></div><div class="input-container"><label class="label">Day</label><${e}-select data-test-id="select-week-day" :value=${cf(e=>e.day)}@change="${e=>e.updateCronConfig()}">${j(()=>Z3,T`<${e}-option value="${e=>e.value}">${e=>e.label}</${e}-option>`)}</${e}-select></div></div>`,XIe=e=>T` ${qIe(e)} ${lf(e=>e.dayOrDate===X3.DATE,JIe(e),YIe(e))} `,ZIe=T` ${e=>XIe(e.prefix)} `,l6=class extends a6(P){constructor(){super(...arguments),this.prefix=``,this.dayOrDate=X3.DATE,this.weekNumber=`1`,this.day=`1`,this.selectedMonth=`1`}configChanged(){(this.config.type===Q.YEARLY||this.config.type===Q.MONTHLY)&&(this.dayOrDate=this.config.dateOrDay.type||X3.DATE,this.setFieldsFromConfig())}setFieldsFromConfig(){this.config.type===Q.YEARLY&&(this.selectedMonth=this.config.dateOrDay.month),this.config.dateOrDay.type===X3.DAY_OF_MONTH?(this.weekNumber=this.config.dateOrDay.weekNumber||`1`,this.day=this.config.dateOrDay.day||`1`):this.dayDate=this.config.dateOrDay.dayDate||`1`}getDayOrDateConfig(){let e;return e=this.dayOrDate===X3.DATE?{type:X3.DATE,dayDate:this.dayDate||`1`}:{type:X3.DAY_OF_MONTH,day:this.day||`1`,weekNumber:this.weekNumber||`1`},e}updateCronConfig(){this.config=this.config.type===Q.MONTHLY?Object.assign(Object.assign({},this.config),{dateOrDay:this.getDayOrDateConfig()}):Object.assign(Object.assign({},this.config),{dateOrDay:Object.assign(Object.assign({},this.getDayOrDateConfig()),{month:this.selectedMonth||`1`})}),this.$emit(Q3.updateCronConfig,this.config)}};q([C],l6.prototype,`prefix`,void 0),q([C],l6.prototype,`config`,void 0),q([C],l6.prototype,`dayOrDate`,void 0),q([C],l6.prototype,`dayDate`,void 0),q([C],l6.prototype,`weekNumber`,void 0),q([C],l6.prototype,`day`,void 0),q([C],l6.prototype,`selectedMonth`,void 0),l6=q([$e({name:`monthly-yearly-recurrence`,template:ZIe,styles:KIe})],l6);let QIe=O` ${n6} .weekdays-row{display: flex;gap: calc(var(--design-unit) * 3px);flex-wrap: wrap}`,$Ie=e=>T`<template><div class="input-container"><label class="label">
964
964
  On ${t=>t.disableTooltips?``:Bb(`
965
965
  <p>Select which days to run this recurrence on. It's not valid to select no days, so if there is only a single day selected then its checkbox is disabled. </p>
966
966
  <p>If you need to change the day you can enable other days which will allow you to disable days until you only have a single day selected again.</p>
967
- `,e)}</label><div class="weekdays-row">${j(()=>Z3,T`<${e}-checkbox part="weekdays-checkbox" class="weekdays-checkbox" :value=${e=>e.value}?checked=${(e,t)=>t.parent.selectedDays.has(e.value)}?disabled=${(e,t)=>t.parent.isDisabled(e.value)}@change=${(e,t)=>t.parent.checkboxChangeHandler(t.event)}>${e=>e.label}</${e}-checkbox>`)}</div></div></template>`,QIe=T` ${e=>ZIe(e.prefix)} `,u6=class extends a6(P){constructor(){super(...arguments),this.disableTooltips=!1,this.prefix=``,this.selectedDays=/* @__PURE__ */ new Set}configChanged(){this.selectedDays=this.config?.selectedDays?new Set(this.config.selectedDays):/* @__PURE__ */ new Set}isDisabled(e){return this.selectedDays.size===1&&this.selectedDays.has(e)}checkboxChangeHandler(e){let{checked:t,value:n}=e.target;t?this.selectedDays.add(n):this.selectedDays.size>1&&this.selectedDays.delete(n),this.updateCronConfig()}updateCronConfig(){this.config=Object.assign(Object.assign({},this.config),{selectedDays:this.selectedDays}),this.$emit(Q3.updateCronConfig,this.config)}};q([D({mode:`boolean`,attribute:`disable-tooltips`})],u6.prototype,`disableTooltips`,void 0),q([C],u6.prototype,`prefix`,void 0),q([C],u6.prototype,`config`,void 0),q([C],u6.prototype,`selectedDays`,void 0),u6=q([$e({name:`weekly-recurrence`,template:QIe,styles:XIe})],u6),Rd(s6,u6,l6);let $Ie=(e,t)=>T`<daily-recurrence :prefix=${()=>e}:config=${()=>t.cronConfig}?disable-tooltips=${()=>t.disableTooltips}></daily-recurrence>`,eLe=(e,t)=>T`<weekly-recurrence :prefix=${()=>e}:config=${()=>t.cronConfig}?disable-tooltips=${()=>t.disableTooltips}></weekly-recurrence>`,d6=(e,t)=>T`<monthly-yearly-recurrence :prefix=${()=>e}:config=${()=>t.cronConfig}></monthly-yearly-recurrence>`,f6=(e,t,n)=>T`<div class="input-container">${A(()=>n,T`<label class="label">${n}</label>`)}<${e}-select class="frequency-select" ?disabled=${()=>t.isDailyFrequencyDisabled}data-test-id="frequency-dropdown" :value=${cf(()=>t.frequency)}@change="${()=>t.handleChange(`frequency`)}">${j(()=>t.frequencyList,T`<${e}-option value="${e=>e}">${e=>e}</${e}-option>`)}<div slot="end" class="suffix-label">${()=>t.frequencySuffix}</div></${e}-select></div>`,p6=(e,t,n,r)=>T`<div class="input-container"><label class="label">Time </label><div class="flex-row">${A(()=>n,T`<${e}-select class="time-select" data-test-id="hours-dropdown" :value=${cf(()=>t.hours)}@change="${()=>t.handleChange(`hours`)}">${j(()=>Array.from({length:24},(e,t)=>t),T`<${e}-option value="${e=>e}">${e=>e}</${e}-option>`)}<div slot="end" class="suffix-label">hr</div></${e}-select>`)} ${A(()=>r,T`<${e}-select class="time-select" data-test-id="mins-dropdown" :value=${cf(()=>t.minutes)}@change="${()=>t.handleChange(`minutes`)}">${j(()=>Array.from({length:60},(e,t)=>t),T`<${e}-option value="${e=>e}">${e=>e}</${e}-option>`)}<div slot="end" class="suffix-label">min</div></${e}-select>`)}<${e}-select class="time-select" data-test-id="seconds-dropdown" :value=${cf(()=>t.seconds)}@change="${()=>t.handleChange(`seconds`)}">${j(()=>Array.from({length:60},(e,t)=>t),T`<${e}-option value="${e=>e}">${e=>e}</${e}-option>`)}<div slot="end" class="suffix-label">sec</div></${e}-select></div></div>`,tLe=(e,t,n)=>{switch(e){case Q.MINUTES:return T`<div class="minutes-options-row"><div class="input-container"><label class="label">During ${()=>n.disableTooltips?``:Bb(`
967
+ `,e)}</label><div class="weekdays-row">${j(()=>Z3,T`<${e}-checkbox part="weekdays-checkbox" class="weekdays-checkbox" :value=${e=>e.value}?checked=${(e,t)=>t.parent.selectedDays.has(e.value)}?disabled=${(e,t)=>t.parent.isDisabled(e.value)}@change=${(e,t)=>t.parent.checkboxChangeHandler(t.event)}>${e=>e.label}</${e}-checkbox>`)}</div></div></template>`,eLe=T` ${e=>$Ie(e.prefix)} `,u6=class extends a6(P){constructor(){super(...arguments),this.disableTooltips=!1,this.prefix=``,this.selectedDays=/* @__PURE__ */ new Set}configChanged(){this.selectedDays=this.config?.selectedDays?new Set(this.config.selectedDays):/* @__PURE__ */ new Set}isDisabled(e){return this.selectedDays.size===1&&this.selectedDays.has(e)}checkboxChangeHandler(e){let{checked:t,value:n}=e.target;t?this.selectedDays.add(n):this.selectedDays.size>1&&this.selectedDays.delete(n),this.updateCronConfig()}updateCronConfig(){this.config=Object.assign(Object.assign({},this.config),{selectedDays:this.selectedDays}),this.$emit(Q3.updateCronConfig,this.config)}};q([D({mode:`boolean`,attribute:`disable-tooltips`})],u6.prototype,`disableTooltips`,void 0),q([C],u6.prototype,`prefix`,void 0),q([C],u6.prototype,`config`,void 0),q([C],u6.prototype,`selectedDays`,void 0),u6=q([$e({name:`weekly-recurrence`,template:eLe,styles:QIe})],u6),Rd(s6,u6,l6);let tLe=(e,t)=>T`<daily-recurrence :prefix=${()=>e}:config=${()=>t.cronConfig}?disable-tooltips=${()=>t.disableTooltips}></daily-recurrence>`,nLe=(e,t)=>T`<weekly-recurrence :prefix=${()=>e}:config=${()=>t.cronConfig}?disable-tooltips=${()=>t.disableTooltips}></weekly-recurrence>`,d6=(e,t)=>T`<monthly-yearly-recurrence :prefix=${()=>e}:config=${()=>t.cronConfig}></monthly-yearly-recurrence>`,f6=(e,t,n)=>T`<div class="input-container">${A(()=>n,T`<label class="label">${n}</label>`)}<${e}-select class="frequency-select" ?disabled=${()=>t.isDailyFrequencyDisabled}data-test-id="frequency-dropdown" :value=${cf(()=>t.frequency)}@change="${()=>t.handleChange(`frequency`)}">${j(()=>t.frequencyList,T`<${e}-option value="${e=>e}">${e=>e}</${e}-option>`)}<div slot="end" class="suffix-label">${()=>t.frequencySuffix}</div></${e}-select></div>`,p6=(e,t,n,r)=>T`<div class="input-container"><label class="label">Time </label><div class="flex-row">${A(()=>n,T`<${e}-select class="time-select" data-test-id="hours-dropdown" :value=${cf(()=>t.hours)}@change="${()=>t.handleChange(`hours`)}">${j(()=>Array.from({length:24},(e,t)=>t),T`<${e}-option value="${e=>e}">${e=>e}</${e}-option>`)}<div slot="end" class="suffix-label">hr</div></${e}-select>`)} ${A(()=>r,T`<${e}-select class="time-select" data-test-id="mins-dropdown" :value=${cf(()=>t.minutes)}@change="${()=>t.handleChange(`minutes`)}">${j(()=>Array.from({length:60},(e,t)=>t),T`<${e}-option value="${e=>e}">${e=>e}</${e}-option>`)}<div slot="end" class="suffix-label">min</div></${e}-select>`)}<${e}-select class="time-select" data-test-id="seconds-dropdown" :value=${cf(()=>t.seconds)}@change="${()=>t.handleChange(`seconds`)}">${j(()=>Array.from({length:60},(e,t)=>t),T`<${e}-option value="${e=>e}">${e=>e}</${e}-option>`)}<div slot="end" class="suffix-label">sec</div></${e}-select></div></div>`,rLe=(e,t,n)=>{switch(e){case Q.MINUTES:return T`<div class="minutes-options-row"><div class="input-container"><label class="label">During ${()=>n.disableTooltips?``:Bb(`
968
968
  <p>Which hours in the day to run this schedule for:</p>
969
969
  <ul>
970
970
  <li><strong>Every hour:</strong> runs the minute schedule during every hour of the day.</li>
@@ -977,7 +977,7 @@ ${e?`<li><strong>Minutes:</strong> Runs at every interval of minutes from the ho
977
977
  <li><strong>Selected Hours:</strong> allows you to choose specific hours of the day (e.g. 9, 10, and 14).</li>
978
978
  </ul>
979
979
  `,t)}</label><${t}-select data-test-id="hourly-during-select" :value=${cf(()=>n.during)}@change="${()=>n.handleDuringChange()}"><${t}-option value="every_hour">Interval</${t}-option><${t}-option value="specific_hours">Selected Hours</${t}-option></${t}-select></div>${A(()=>n.during===`every_hour`,f6(t,n,`Every`))} ${A(()=>n.isSpecificHours,T`<div class="break"></div><div class="input-container"><label class="label">
980
- Hours ${Bb(o6,t)}</label><${t}-multiselect class="time-select" data-test-id="hours-multiselect" name="Hours" :options=${()=>n.hourOptions}:selectedOptions=${()=>n.selectedHours}@selectionChange="${(e,t)=>n.handleHoursChange(t.event)}"></${t}-multiselect></div>`)} ${p6(t,n,!1,!0)}</div>`;case Q.DAILY:return T` ${$Ie(t,n)}<div class="row">${f6(t,n,`Every`)} ${p6(t,n,!0,!0)}</div>`;case Q.WEEKLY:return T`<div class="row">${eLe(t,n)} ${p6(t,n,!0,!0)}</div>`;case Q.MONTHLY:return T`<div class="row">${f6(t,n,`Every`)} ${p6(t,n,!0,!0)}</div>${d6(t,n)} `;case Q.YEARLY:return T`<div class="row">${p6(t,n,!0,!0)}</div>${d6(t,n)} `;default:return T``}},m6=e=>T`<template><div class="container"><div class="input-container"><label class="label">Recurrence ${A(e=>!e.disableTooltips,T` ${t=>Bb(VIe(!t.minMinuteInterval||t.minMinuteInterval<30),e)} `)}</label><${e}-select data-test-id="select-recurrence" :value=${cf(e=>e.recurrence)}@change="${e=>e.handleRecurrenceChange()}">${A(e=>e.isMinutesRecurrenceEnabled,T`<${e}-option data-test-id="${Q.MINUTES}">${Q.MINUTES}</${e}-option>`)}<${e}-option data-test-id="${Q.HOURLY}">${Q.HOURLY}</${e}-option><${e}-option data-test-id="${Q.DAILY}">${Q.DAILY}</${e}-option><${e}-option data-test-id="${Q.WEEKLY}">${Q.WEEKLY}</${e}-option><${e}-option data-test-id="${Q.MONTHLY}">${Q.MONTHLY}</${e}-option><${e}-option data-test-id="${Q.YEARLY}">${Q.YEARLY}</${e}-option></${e}-select></div>${j(e=>[`${e.recurrence}-${e.during}`],T` ${(t,n)=>tLe(n.parent.recurrence,e,n.parent)} `,{recycle:!1})}</div></template>`,nLe=T` ${e=>m6(yb(e))} `;var h6=class extends P{constructor(){super(...arguments),this.getConfigs={buildConfigForMinutesRecurrence:NIe,buildConfigForHourlyRecurrence:MIe,buildConfigForDailyRecurrence:jIe,buildConfigForWeeklyRecurrence:PIe,buildConfigForMonthlyRecurrence:IIe,buildConfigForYearlyRecurrence:FIe},this.recurrence=Q.DAILY,this.cron=``,this.value=this.cron,this.cronConfig={type:Q.DAILY,weekType:Y3.WEEK,hours:`0`,minutes:`0`,seconds:`0`},this.frequency=`1`,this.during=`every_hour`,this.hours=`0`,this.minutes=`0`,this.seconds=`0`,this.disableTooltips=!1,this.timezone=``}cronChanged(){if(this.cron)try{if(!AIe(this.cron)){SC({title:`Cron Scheduler`,body:`Invalid Cron Expression`,toast:{type:`critical`}},yb(this));return}this.setsFieldsFromCronEx()}catch(e){console.error(`Error:`,e),SC({title:`Cron Scheduler`,body:e,toast:{type:`critical`}},yb(this));return}}get duringOptions(){return[{label:`Every hour`,value:`every_hour`},{label:`Specific hours`,value:`specific_hours`}]}get frequencySuffix(){switch(this.cronConfig.type){case Q.MINUTES:return`Minute(s)`;case Q.HOURLY:return`Hour(s)`;case Q.DAILY:return`Day(s)`;case Q.MONTHLY:return`Month(s)`;default:return``}}get frequencyList(){switch(this.cronConfig.type){case Q.MINUTES:let e=[1,2,3,4,5,6,10,12,15,20,30],t=this.minMinuteInterval?Number(this.minMinuteInterval):1;return e.filter(e=>e>=t);case Q.HOURLY:return Array.from({length:23},(e,t)=>t+1);case Q.DAILY:return Array.from({length:31},(e,t)=>t+1);case Q.MONTHLY:return Array.from({length:12},(e,t)=>t+1);case Q.YEARLY:return Array.from({length:12},(e,t)=>t+1);case Q.WEEKLY:return[1];default:return[]}}get hourOptions(){return Array.from({length:24},(e,t)=>({label:t.toString(),value:t.toString()}))}get selectedHours(){return!this.hours||this.hours===`*`||this.hours===`0`?this.hours===`*`?this.hourOptions.map(e=>e.value):[this.hours]:this.hours.split(`,`)}handleHoursChange(e){let t=e.detail;t.length===24?(this.hours=`*`,this.frequency=`1`,this.cronConfig.frequency=`1`):this.hours=!t||t.length===0?`0`:t.sort((e,t)=>Number(e)-Number(t)).join(`,`),this.handleChange(`hours`)}get isMinutesRecurrenceEnabled(){return!this.minMinuteInterval||Number(this.minMinuteInterval)<=30}get isSpecificHours(){return this.during===`specific_hours`}get isDailyFrequencyDisabled(){return this.cronConfig.type===Q.DAILY&&this.cronConfig.weekType===Y3.WORK_WEEK}minMinuteIntervalChanged(){this.minMinuteInterval>=60&&console.warn(`Minimum minute interval has no effect on schedules with an hourly or longer recurrance`)}connectedCallback(){super.connectedCallback(),this.addEventListener(Q3.updateCronConfig,this.handleCronConfigUpdate)}disconnectedCallback(){this.removeEventListener(Q3.updateCronConfig,this.handleCronConfigUpdate)}getBaseConfigFields(){return{frequency:this.frequency,hours:this.hours,minutes:this.minutes,seconds:this.seconds}}handleRecurrenceChange(){switch(this.recurrence){case Q.MINUTES:let e=this.getBaseConfigFields(),{minutes:t}=e,n=nd(e,[`minutes`]);this.during=`every_hour`,this.hours=`*`;let r=[1,2,3,4,5,6,10,12,15,20,30],i=this.minMinuteInterval?Number(this.minMinuteInterval):1,a=r.find(e=>e>=i)||1;this.cronConfig=Object.assign(Object.assign({type:Q.MINUTES},n),{frequency:a.toString(),during:`every_hour`,hours:`*`}),this.generateCronExpressionFromConfig(this.cronConfig);break;case Q.HOURLY:let o=this.getBaseConfigFields(),{hours:s}=o,c=nd(o,[`hours`]);this.during=`every_hour`,this.hours=`0`,this.cronConfig=Object.assign(Object.assign({type:Q.HOURLY},c),{frequency:`1`,during:`every_hour`,hours:`0`}),this.generateCronExpressionFromConfig(this.cronConfig);break;case Q.DAILY:(this.hours===`*`||this.hours.includes(`,`))&&(this.hours=`0`),this.cronConfig=Object.assign(Object.assign({type:Q.DAILY},this.getBaseConfigFields()),{frequency:`1`,weekType:Y3.WEEK}),this.generateCronExpressionFromConfig(this.cronConfig);break;case Q.WEEKLY:(this.hours===`*`||this.hours.includes(`,`))&&(this.hours=`0`),this.cronConfig=Object.assign(Object.assign({type:Q.WEEKLY},this.getBaseConfigFields()),{frequency:`1`,selectedDays:/* @__PURE__ */ new Set([`2`])}),this.generateCronExpressionFromConfig(this.cronConfig);break;case Q.MONTHLY:(this.hours===`*`||this.hours.includes(`,`))&&(this.hours=`0`),this.cronConfig=Object.assign(Object.assign({type:Q.MONTHLY},this.getBaseConfigFields()),{frequency:`1`,dateOrDay:{type:X3.DATE,dayDate:`1`}}),this.generateCronExpressionFromConfig(this.cronConfig);break;case Q.YEARLY:(this.hours===`*`||this.hours.includes(`,`))&&(this.hours=`0`),this.cronConfig=Object.assign(Object.assign({type:Q.YEARLY},this.getBaseConfigFields()),{frequency:`1`,dateOrDay:{type:X3.DATE,dayDate:`1`,month:`1`}}),this.generateCronExpressionFromConfig(this.cronConfig);break;default:SC({title:`Cron Scheduler`,body:`Recurrence type should be one of the known types: Daily, Weekly,Monthly or Yearly`,toast:{type:`critical`}},yb(this))}}handleChange(e){if(e===`frequency`&&Number(this.frequency)===0)throw Error(`Frequency must be greater than 0`);this.cronConfig[e]=this[e],this.generateCronExpressionFromConfig(this.cronConfig)}handleDuringChange(){this.during===`every_hour`?this.hours=`*`:this.hours===`*`&&(this.hours=`0`),(this.cronConfig.type===Q.MINUTES||this.cronConfig.type===Q.HOURLY)&&(this.cronConfig.during=this.during,this.cronConfig.hours=this.hours),this.generateCronExpressionFromConfig(this.cronConfig)}handleCronConfigUpdate({detail:e}){this.cronConfig=Object.assign(Object.assign({},this.getBaseConfigFields()),e),this.generateCronExpressionFromConfig(this.cronConfig)}generateCronExpressionFromConfig(e){switch(e.type){case Q.MINUTES:this.cron=wIe(e);break;case Q.HOURLY:this.cron=CIe(e);break;case Q.DAILY:this.cron=TIe(e,$3);break;case Q.WEEKLY:this.cron=EIe(e);break;case Q.MONTHLY:this.cron=DIe(e,$3);break;case Q.YEARLY:this.cron=OIe(e);break;default:SC({title:`Cron Scheduler`,body:`Recurrence type should be one of the known types: Daily, Weekly,Monthly or Yearly`,toast:{type:`critical`}},yb(this))}this.value=this.cron,this.$emit(`change`)}setsFieldsFromCronEx(){this.cronConfig=LIe(this.cron,this.getConfigs),this.recurrence=this.cronConfig.type,this.frequency=this.cronConfig.frequency;let e=this.cronConfig;`minutes`in e&&(this.minutes=e.minutes),(e.type===Q.MINUTES||e.type===Q.HOURLY)&&(this.during=e.during||`every_hour`,e.hours&&(this.hours=e.hours)),this.seconds=e.seconds,e.type!==Q.HOURLY&&e.type!==Q.MINUTES&&(this.hours=e.hours)}};q([C],h6.prototype,`recurrence`,void 0),q([C],h6.prototype,`cron`,void 0),q([C],h6.prototype,`cronConfig`,void 0),q([C],h6.prototype,`frequency`,void 0),q([C],h6.prototype,`during`,void 0),q([w],h6.prototype,`duringOptions`,null),q([C],h6.prototype,`hours`,void 0),q([C],h6.prototype,`minutes`,void 0),q([C],h6.prototype,`seconds`,void 0),q([w],h6.prototype,`frequencySuffix`,null),q([w],h6.prototype,`frequencyList`,null),q([w],h6.prototype,`hourOptions`,null),q([w],h6.prototype,`selectedHours`,null),q([D({attribute:`min-minute-interval`})],h6.prototype,`minMinuteInterval`,void 0),q([D({mode:`boolean`,attribute:`disable-tooltips`})],h6.prototype,`disableTooltips`,void 0),q([w],h6.prototype,`isMinutesRecurrenceEnabled`,null),q([w],h6.prototype,`isSpecificHours`,null),q([w],h6.prototype,`isDailyFrequencyDisabled`,null),q([D],h6.prototype,`timezone`,void 0);let g6={};h6.compose(Object.assign({baseName:`scheduler-cron-builder`,styles:r6,template:nLe,shadowOptions:void 0},g6));let _6=O` /* Host */ :host{display: flex;flex-direction: column;width: 100%}.container{padding: calc(var(--design-unit) * 2px) calc(var(--design-unit) * 4px);display: flex;flex-direction: column;gap: calc(var(--design-unit) * 2px)}.label{color: var(--neutral-foreground-hint);display: block;cursor: pointer;font-size: var(--type-ramp-base-font-size);line-height: var(--type-ramp-base-line-height);font-style: normal}.timezone-combobox::part(listbox){max-height: 20vh}`,v6=e=>T`<template><div class="container"><label class="label">Time Zone</label><${e}-combobox data-test-id="cron-scheduler-timezone" autocomplete="both" class="timezone-combobox" value="${cf(e=>e.timezone)}">${j(e=>e.timeZones,T`<${e}-option value="${e=>e}">${e=>e}</${e}-option>`)}</${e}-combobox></div></template>`,rLe=T` ${e=>v6(yb(e))} `;var y6=class extends P{constructor(){super(...arguments),this.timezone=``,this.value=this.timezone}timezoneChanged(){this.value=this.timezone,this.$emit(`change`)}connectedCallback(){super.connectedCallback(),this.getTimeZones()}getTimeZones(){return J(this,void 0,void 0,function*(){let e=[`Europe/London`,`America/New_York`];try{let t=yield this.connect.request(`VALID_TIME_ZONE`,{REQUEST:{}});if(!t.REPLY||!Array.isArray(t.REPLY))throw Error(`Invalid data returned for Timezones`);this.timeZones=t.REPLY.map(e=>e.ZONE_ID).sort((t,n)=>e.includes(t)&&!e.includes(n)?-1:!e.includes(t)&&e.includes(n)?1:t.localeCompare(n))}catch(e){SC({title:`Cron Scheduler`,body:`Unable to fetch timezones data.`,toast:{type:`critical`}},`rapid`),Y.error(e)}})}};q([C],y6.prototype,`timezone`,void 0),q([Qv],y6.prototype,`connect`,void 0),q([C],y6.prototype,`timeZones`,void 0);let b6={};y6.compose(Object.assign({baseName:`scheduler-timezone`,styles:_6,template:rLe,shadowOptions:void 0},b6));let x6=O` .search-bar-combobox{width: 100%;min-width: auto}.padding{padding-left: calc(${B} * 1px)}.selected-options{display: flex;align-items: center;overflow: hidden;gap: calc(${B} * 1px);padding-right: calc(${B} * 1px)}.selected-options:hover{overflow-x: overlay}.selected-options::-webkit-scrollbar{height: 7px}.selected-options::-webkit-scrollbar-thumb{border-radius: 10px;box-shadow: inset 0 0 6px rgb(0 0 0 / 30%);background-color: #484848;border: 1px solid #7e7e7e}.selected-options-divider{border-right: calc(var(--stroke-width) * 1px) solid var(--neutral-fill-rest)}.options-button{height: fit-content;min-width: fit-content}.label{display: block;font-size: var(--type-ramp-base-font-size);margin: calc(${B} * 2px) 2px}.label-hidden{display: none}.search-clear-button{min-width: 28px;min-height: 28px;height: 28px;margin: 0}.search-clear-button svg{rotate: 45deg}.search-clear-button::part(control){padding: 0}.search-clear-button .svg-container{display: flex;align-items: center;justify-content: center}.close-icon{color: var(--accent-fill-rest)}`,S6=e=>T`<label part="label" for="control" data-test-id="label" class=${e=>fn(`label`,[`label-hidden`,!e.defaultSlottedNodes?.length])}><slot ${bt({property:`defaultSlottedNodes`,filter:ha})}></slot></label><${e}-search-bar-combobox ${k(`combobox`)}position="${e=>e.position}" placeholder=${e=>e.placeholder}disabled=${e=>e.disabled}:inputLocked="${e=>e.allSearchFieldsUsed}" autocomplete="none" minlength=${e=>e.minlength}@inputdeleted=${e=>e.inputdeleted()}@change=${e=>e.changeHandler()}@input=${e=>e.inputHandler()}@paste=${(e,t)=>e.pasteHandler(t.event)}class="search-bar-combobox ${e=>e.selectedOptions.length>0?`padding`:null}" data-test-id="search-bar"><div ${k(`selectedOptionsDiv`)}slot="selectedOptions" class="selected-options ${e=>e.selectedOptions.length>0?`selected-options-divider`:null}">${j(e=>e.selectedOptions,T`<${e}-button class="options-button" appearance=${(e,t)=>t.parent.appearance}disabled=${(e,t)=>t.parent.disabled}@click=${(e,t)=>t.parent.unselectOption(e)}>${e=>e.label}<${e}-icon class="close-icon" slot="end" name="circle-xmark" variant="regular"></${e}-icon></${e}-button>`)}</div>${j(e=>e.filteredOptions,T`<${e}-option value="${e=>e.field}" :disabled=${(e,t)=>!t.parent.isOptionEnabled(e)}>${(e,t)=>e.label(t.parent.searchTerm)}</${e}-option>`)} ${A(e=>e.showClearAffordance,T`<${e}-button class="search-clear-button" @click=${e=>e.clearSearch()}slot="end" data-test-id="clear-search" aria-label="Clear search terms" title="Clear search terms"><div class="svg-container"><svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" width="26px" height="26px" class="bi bi-plus" viewBox="0 0 16 16"><path d="M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4z" /></svg></div></${e}-button>`)}</${e}-search-bar-combobox>`,iLe=T` ${e=>S6(yb(e))} `;var C6=class extends P{constructor(){super(...arguments),this.searchTerm=``,this.appearance=`neutral`,this.minlength=3,this.position=Sw.BELOW,this.placeholder=`Start typing to search`,this.clearButton=!0,this.selectedOptions=[],this.normalizeDelimiter=e=>e.trim().replace(/\t|\r\n|\n|\r|,/g,` `),this.addOrReplaceSelectedText=(e,t,n)=>t?.length>0?e.replace(t,n):e.concat(n)}clear(){this.selectedOptions=[],this.searchTerm=``,this.combobox&&(this.combobox.currentValue=``,this.combobox.value=``),this.$emit(`selectionChange`,[])}clearSearch(){this.clear()}get showClearAffordance(){if(!this.clearButton)return!1;let e=(this.searchTerm??this.combobox?.value??``).trim();return this.selectedOptions.length>0||e.length>0}get allSearchFieldsUsed(){return this.options?.length?this.options.every(e=>this.selectedOptions.some(t=>t.field===e.field)):!1}isOptionEnabled(e){return e.isEnabled?e.isEnabled(this.searchTerm,this.selectedOptions,this.minlength):this.searchTerm.length>=this.minlength&&!this.selectedOptions.some(t=>t.field===e.field)}selectedOptionsChanged(){this.applySearchInputLock()}optionsChanged(){this.applySearchInputLock()}applySearchInputLock(){this.combobox&&this.allSearchFieldsUsed&&(this.searchTerm=``,this.combobox.value=``,this.combobox.currentValue=``,this.combobox.open=!1,this.filteredOptions=[])}inputdeleted(){this.selectedOptions.length>0&&this.unselectOption(this.selectedOptions[this.selectedOptions.length-1])}changeHandler(){let e=[];this.combobox.selectedOptions.forEach(t=>{let n=t.value,r=this.searchTerm.trim();e.push({field:n,term:r,label:this.options.find(e=>e.field===n)?.label(r)||t.text,createCriteria:this.options.find(e=>e.field===n)?.createCriteria,resourceType:this.options.find(e=>e.field===n)?.resourceType})}),this.selectedOptions=[...this.selectedOptions,...e],this.selectedOptions=this.selectedOptions.filter((e,t,n)=>t===n.findIndex(t=>e.field===t.field&&e.term===t.term)),this.combobox.value=``,this.combobox.open=!1,this.$emit(`selectionChange`,this.selectedOptions),x.queueUpdate(()=>{setTimeout(()=>{this.selectedOptionsDiv.scrollTo(this.selectedOptionsDiv.scrollWidth,0)},10)})}pasteHandler(e){if(this.allSearchFieldsUsed){e.preventDefault();return}this.loading=!0;let t=e.clipboardData.getData(`text/plain`),n=this.normalizeDelimiter(t),r=window.getSelection()?.toString(),i=this.addOrReplaceSelectedText(this.combobox.value,r,n);i?.length>=this.minlength&&(this.combobox.value=i,this.searchTerm=i,this.options&&this.filterSelectedOptions(i),this.combobox.open=!0),this.loading=!1}hasSelectedOption(e,t){return this.selectedOptions.some(n=>n.term===e&&n.field===t)}unselectOption(e){this.selectedOptions=this.selectedOptions.filter(t=>t!==e),this.$emit(`selectionChange`,this.selectedOptions)}inputHandler(){return J(this,void 0,void 0,function*(){if(this.allSearchFieldsUsed){this.applySearchInputLock();return}this.loading=!0,this.searchTerm=this.combobox.value,this.combobox.value.length>=this.minlength&&this.filterSelectedOptions(this.combobox.value),this.loading=!1})}filterSelectedOptions(e){this.filteredOptions=this.options.filter(t=>!this.selectedOptions.find(n=>n.field===t.field&&n.term.trim()===e.trim()))}};q([C],C6.prototype,`defaultSlottedNodes`,void 0),q([C],C6.prototype,`options`,void 0),q([C],C6.prototype,`searchTerm`,void 0),q([D],C6.prototype,`appearance`,void 0),q([D],C6.prototype,`minlength`,void 0),q([D],C6.prototype,`position`,void 0),q([D],C6.prototype,`placeholder`,void 0),q([D],C6.prototype,`disabled`,void 0),q([D({attribute:`clear-button`,mode:`boolean`})],C6.prototype,`clearButton`,void 0),q([C],C6.prototype,`loading`,void 0),q([C],C6.prototype,`selectedOptions`,void 0),q([C],C6.prototype,`filteredOptions`,void 0);let w6={};C6.compose(Object.assign({baseName:`search-bar`,template:iLe,styles:x6,shadowOptions:void 0},w6));let T6=(e,t)=>O` ${zw(e,t)} .control{width: auto;padding-left: calc(${B} * 1px);padding-right: 0}.end{height: 100%;min-width: 36px;max-width: 36px;padding-right: 2px;display: flex;justify-content: flex-end;align-items: center}.selected-value{min-width: 150px;max-width: 169px}.input-locked .control, :host(.input-locked) .control{width: 0;min-width: 0;padding: 0;margin: 0;overflow: hidden;flex: 0}.input-locked .selected-value, :host(.input-locked) .selected-value{display: none}`,E6=(e,t)=>T`<template aria-disabled="${e=>e.ariaDisabled}" autocomplete="${e=>e.autocomplete}" class="${e=>e.open?`open`:``} ${e=>e.disabled?`disabled`:``} ${e=>e.position} ${e=>e.inputLocked?`input-locked`:``}body" ?open="${e=>e.open}" tabindex="${e=>e.disabled?null:`0`}" @click="${(e,t)=>e.clickHandler(t.event)}" @focusout="${(e,t)=>e.focusoutHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}" data-test-id="combobox"><slot name="selectedOptions" data-test-id="options"></slot><div class="control" part="control"><slot name="control"><input aria-activedescendant="${e=>e.open?e.ariaActiveDescendant:null}" aria-autocomplete="${e=>e.ariaAutoComplete}" aria-controls="${e=>e.ariaControls}" aria-disabled="${e=>e.ariaDisabled}" aria-expanded="${e=>e.ariaExpanded}" aria-haspopup="listbox" class="selected-value" part="selected-value" placeholder="${e=>e.placeholder}" role="combobox" type="text" ?disabled="${e=>e.disabled}" :value="${e=>e.value}" @input="${(e,t)=>e.inputHandler(t.event)}" @keyup="${(e,t)=>e.keyupHandler(t.event)}" ${k(`control`)}data-test-id="selected-value" /></slot></div>${Ct(e,t)}<div class="listbox" id="${e=>e.listboxId}" part="listbox" role="listbox" ?disabled="${e=>e.disabled}" ?hidden="${e=>!e.open}" ${k(`listbox`)}data-test-id="listbox"><slot ${bt({filter:Rr.slottedOptionFilter,flatten:!0,property:`slottedOptions`})}></slot></div></template>`,aLe=/* @__PURE__ */ new Set([`Backspace`,`Delete`,`Tab`,`Escape`,`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`,`Home`,`End`]);var D6=class extends Ql{constructor(){super(...arguments),this.minlength=1,this.previousLength=-1,this.changeListener=e=>{this.previousLength=0}}connectedCallback(){super.connectedCallback(),this.addEventListener(`change`,this.changeListener)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(`change`,this.changeListener)}clickHandler(e){if(!this.disabled){if(this.open){let t=e.target.closest(`option,[role=option]`);if(!t||t.disabled)return;this.selectedOptions=[t],this.control.value=t.text,this.value=this.control.value,this.$emit(`change`)}this.control.focus()}}keyupHandler(e){switch(e.key){case`Backspace`:case`Delete`:this.previousLength<0?this.$emit(`inputdeleted`):--this.previousLength;break;case`Enter`:if(this.open&&this.selectedIndex!==-1){let e=this.slottedOptions[0];this.selectedOptions=[e],this.control.value=e.text,this.value=this.control.value,this.$emit(`change`)}}super.keyupHandler(e)}keydownHandler(e){let t=e.key;if(this.inputLocked){let n=e.ctrlKey||e.metaKey||e.altKey;if(!(aLe.has(t)||n))return e.preventDefault(),!1}switch(t){case`ArrowUp`:case`ArrowDown`:return this.control.value.length<this.minlength?void 0:super.keydownHandler(e);case`Enter`:return this.selectedIndex!==-1&&super.keydownHandler(e);case`Tab`:if(!this.open)return!0;e.shiftKey?this.selectPreviousOption():this.selectNextOption();break;default:return super.keydownHandler(e)}}inputHandler(e){if(this.inputLocked){this.control.value=``,this.value=``,this.open=!1,e.stopImmediatePropagation();return}this.control.value.length>=this.minlength?this.open=!0:(e.stopImmediatePropagation(),this.open=!1),this.value=this.control.value,this.previousLength=this.control.value.length}openChanged(){if(this.open){this.ariaControls=this.listboxId,this.ariaExpanded=`true`,this.setPositioning(),this.focusAndScrollOptionIntoView();return}this.ariaControls=``,this.ariaExpanded=`false`}};q([D],D6.prototype,`minlength`,void 0),q([C],D6.prototype,`inputLocked`,void 0);let O6={delegatesFocus:!0,mode:`open`},k6={};D6.compose(Object.assign({baseName:`search-bar-combobox`,template:E6,styles:T6,shadowOptions:O6},k6));let A6=O` :host{display: block;width: 100%;height: 100%;min-height: 400px;/* Section link marker CSS variables to allow customization of the marker */ --section-link-marker-width: 2px;--section-link-marker-height: 100%;--section-link-marker-left: 0;--section-link-marker-top: 0;--section-link-marker-transition: background-color 0.2s ease;--section-link-marker-background-color: transparent;--section-link-marker-background-color-hover: var(--neutral-layer-hover);--section-link-marker-background-color-active: var(--accent-fill-rest);/* Section link CSS variables to allow customization of the link */ --section-link-text-align: left;--section-link-text-white-space: initial}.section-navigator-container{display: flex;height: 100%;max-height: 100%;width: 100%}.section-navigation{background-color: var(--neutral-layer-2);border-right: 1px solid var(--neutral-stroke-divider);overflow-y: auto;height: 100%;min-width: 20%}.section-link{position: relative;display: block;width: 100%;color: var(--neutral-foreground-rest);text-decoration: none;border: none;background: none;text-align: left;transition: all 0.2s ease;cursor: pointer;font-family: inherit;font-size: inherit;margin: 0;border-radius: 0;vertical-align: top}.section-link.active:hover{color: var(--neutral-foreground-rest)}.section-link:hover{color: var(--accent-foreground-rest)}.section-link::part(control){vertical-align: top;white-space: inherit}.section-link::before{content: '';position: absolute;top: var(--section-link-marker-top);left: var(--section-link-marker-left);width: var(--section-link-marker-width);height: var(--section-link-marker-height);background-color: var(--section-link-marker-background-color);transition: var(--section-link-marker-transition);z-index: 1}.section-link:hover::before{background-color: var(--section-link-marker-background-color-hover)}.section-link.active::before{background-color: var(--section-link-marker-background-color-active)}.section-link::part(content){padding: 0;text-align: var(--section-link-text-align);white-space: var(--section-link-text-white-space)}.section-content-wrapper{flex: 1;height: 100%;overflow: hidden;display: flex;flex-direction: column}.section-content{flex: 1;overflow: hidden auto;padding: calc(var(--design-unit) * 4px);background-color: var(--neutral-layer-1);min-height: 0}.section-content::-webkit-scrollbar{width: var(--scrollbar-width)}.section-content::-webkit-scrollbar-track{background: var(--neutral-layer-4)}.section-content::-webkit-scrollbar-thumb{width: var(--scrollbar-thumb-width);/* 8px */ border-radius: 10px;box-shadow: inset 0 0 6px rgba(0 0 0 / 30%);background-color: var(--neutral-layer-2);border: 3px solid var(--neutral-layer-4)}.content-section{background-color: var(--neutral-layer-1)}.state-icon{margin-left: calc(var(--design-unit) * 1px);width: 12px;height: 12px}.state-icon[data-state='active']{color: var(--accent-fill-rest)}.state-icon[data-state='inactive']{color: var(--neutral-foreground-rest)}.state-icon[data-state='pending']{color: var(--warning-fill-rest)}.state-icon[data-state='disabled']{color: var(--neutral-foreground-disabled)}.state-icon[data-state='error']{color: var(--error-fill-rest)}.state-icon[data-state='completed']{color: var(--success-fill-rest)}/* Section button state colors */ .section-link.state-active{color: var(--accent-foreground-rest)}.section-link.state-inactive{color: var(--neutral-foreground-hint)}.section-link.state-pending{color: var(--warning-color)}.section-link.state-disabled{color: var(--neutral-foreground-disabled)}.section-link.state-error{color: var(--error-color)}.section-link.state-completed{color: var(--success-color)}.section-link.state-multiple{color: var(--accent-foreground-rest)}.section-link.state-none{color: var(--neutral-foreground-rest)}`,oLe=e=>T`<template><div class="section-navigator-container" part="section-navigator-container" ${k(`sectionNavigatorContainer`)}><nav class="section-navigation" part="section-navigator-navigation">${j(e=>e.sectionItems,T`<${e}-button class="section-link ${(e,t)=>t.parent.activeSection===e.name?`active`:``} ${(e,t)=>t.parent.getSectionStateClass(e)}" part="section-navigator-section-link ${(e,t)=>t.parent.getSectionStateClass(e)}" @click="${(e,t)=>t.parent.handleSectionClick(e.name)}">${e=>e.label} ${j(e=>e.states||[],T`<${e}-icon class="state-icon" part="section-navigator-state-icon" title="${(e,t)=>t.parentContext.parent.getStateTooltip(e)}" data-state="${e=>e}" name="${(e,t)=>t.parentContext.parent.getStateIcon(e).name}" variant="${(e,t)=>t.parentContext.parent.getStateIcon(e).variant}"></${e}-icon>`)}</${e}-button>`)}</nav><div class="section-content-wrapper" part="section-navigator-content-wrapper"><section class="section-content" part="section-navigator-content" ${k(`sectionContent`)}>${j(e=>e.sectionItems,T`<div class="content-section" part="section-navigator-content-section" data-section="${e=>e.name}"><slot name="${e=>e.name}"></slot></div>`)}</section></div></div></template>`,j6=T` ${e=>oLe(yb(e))} `,M6=kd(`SectionNavigator`),N6=`section-navigator`,P6={setState:`${N6}-set-state`,setStates:`${N6}-set-states`,clearState:`${N6}-clear-state`,clearAllStates:`${N6}-clear-all-states`},sLe={active:`Active`,inactive:`Inactive`,pending:`Pending`,disabled:`Disabled`,error:`Error`,completed:`Completed`},F6={active:{name:`circle-dot`,variant:`solid`},inactive:{name:`times-circle`,variant:`regular`},pending:{name:`clock`,variant:`solid`},disabled:{name:`ban`,variant:`solid`},error:{name:`times`,variant:`solid`},completed:{name:`check`,variant:`solid`}};var I6=class e extends P{constructor(){super(...arguments),this.sections=[],this.scrollBehavior=`top`,this.stateTooltips=sLe,this.stateIcons=F6,this.disableAutoScrollDetection=!1,this.userClickedSection=!1,this.isUserScrolling=!1,this.sectionItems=[],this.activeSection=``}sectionsChanged(){this.setSectionItems(),this.setActiveSection(),this.updateScrollDetection()}disableAutoScrollDetectionChanged(){this.updateScrollDetection()}scrollBehaviorChanged(){this.updateSpacer()}connectedCallback(){super.connectedCallback(),this.setSectionItems(),this.setActiveSection(),this.updateSpacer(),this.setupStateEventListeners(),this.updateScrollDetection()}setSectionItems(){if(!Array.isArray(this.sections)){M6.warn(`Sections must be an array`),this.sectionItems=[];return}this.sectionItems=this.sections}setActiveSection(){this.sectionItems.length>0&&!this.activeSection&&(this.activeSection=this.sectionItems[0].name)}handleSectionClick(e){this.activeSection=e,this.userClickedSection=!0,this.scrollToSection(e)}updateSpacer(){var e;if(!this.sectionContent){M6.warn(`Section content element not found`);return}if((e=this.spacerElement)==null||e.remove(),this.spacerElement=void 0,this.scrollBehavior===`top`)try{let e=this.sectionContent.clientHeight,t=this.sectionContent.querySelector(`.content-section:last-child`);if(t){let n=t.offsetHeight,r=Math.max(0,e-n-20);this.spacerElement=document.createElement(`div`),this.spacerElement.className=`scroll-spacer`,this.spacerElement.style.height=`${r}px`,this.spacerElement.style.pointerEvents=`none`,this.sectionContent.appendChild(this.spacerElement)}}catch(e){M6.error(`Error updating spacer:`,e)}}scrollToSection(e){if(!this.sectionContent){M6.warn(`Section content not available`);return}try{let t=this.sectionContent.querySelector(`[data-section="${e}"]`);if(!t){M6.warn(`Section "${e}" not found`);return}let n=t.offsetTop-this.sectionContent.offsetTop;this.sectionContent.scrollTo({top:n,behavior:`smooth`}),this.setupScrollEndDetection()}catch(e){M6.error(`Error scrolling to section:`,e)}}updateScrollDetection(){this.cleanupScrollDetection(),!this.disableAutoScrollDetection&&this.sectionContent&&this.setupScrollDetection()}setupScrollDetection(){if(!this.sectionContent){M6.warn(`Section content not available for scroll detection`);return}try{this.scrollCheckHandler=()=>{this.isUserScrolling&&!this.userClickedSection&&(this.scrollDebounceTimeout&&clearTimeout(this.scrollDebounceTimeout),this.scrollDebounceTimeout=window.setTimeout(()=>{this.updateActiveSectionBasedOnScrollPosition()},e.SCROLL_DEBOUNCE_TIMEOUT))},this.sectionContent.addEventListener(`scroll`,this.scrollCheckHandler,{passive:!0});let t=()=>{this.isUserScrolling=!0},n=()=>{this.isUserScrolling=!1,this.userClickedSection=!1};this.sectionContent.addEventListener(`wheel`,t,{passive:!0}),this.sectionContent.addEventListener(`touchstart`,t,{passive:!0}),this.sectionContent.addEventListener(`mousedown`,t,{passive:!0}),this.sectionContent.addEventListener(`scrollend`,n,{passive:!0});let r;this.sectionContent.addEventListener(`scroll`,()=>{clearTimeout(r),r=window.setTimeout(n,e.SCROLL_END_TIMEOUT)},{passive:!0})}catch(e){M6.error(`Error setting up scroll detection:`,e)}}updateActiveSectionBasedOnScrollPosition(){if(!this.sectionContent)return;let e=this.sectionContent.scrollTop+this.sectionContent.clientHeight/2,t=null,n=1/0;this.sectionItems.forEach(r=>{let i=this.sectionContent.querySelector(`[data-section="${r.name}"]`);if(i){let a=i.offsetTop+i.clientHeight/2,o=Math.abs(a-e);o<n&&(n=o,t=r.name)}}),t&&t!==this.activeSection&&(this.activeSection=t)}setupScrollEndDetection(){this.sectionContent&&(this.cleanupScrollEndDetection(),this.scrollEndHandler=()=>{this.userClickedSection=!1,this.cleanupScrollEndDetection()},this.sectionContent.addEventListener(`scroll`,this.scrollEndHandler,{passive:!0}))}cleanupScrollEndDetection(){this.scrollEndHandler&&this.sectionContent&&(this.sectionContent.removeEventListener(`scroll`,this.scrollEndHandler),this.scrollEndHandler=void 0)}cleanupScrollDetection(){this.scrollCheckHandler&&this.sectionContent&&(this.sectionContent.removeEventListener(`scroll`,this.scrollCheckHandler),this.scrollCheckHandler=void 0),this.scrollDebounceTimeout&&(clearTimeout(this.scrollDebounceTimeout),this.scrollDebounceTimeout=void 0),this.cleanupScrollEndDetection()}setupStateEventListeners(){if(!this.sectionContent){M6.warn(`Section content not available for event listeners`);return}this.handleSetStateRef=e=>{try{let{sectionName:t,stateName:n}=e.detail;this.addState(t,n)}catch(e){M6.error(`Error handling set-state event:`,e)}},this.handleSetStatesRef=e=>{try{let{sectionName:t,stateNames:n}=e.detail;this.addStates(t,n)}catch(e){M6.error(`Error handling set-states event:`,e)}},this.handleClearStateRef=e=>{try{let{sectionName:t,stateName:n}=e.detail;this.clearState(t,n)}catch(e){M6.error(`Error handling clear-state event:`,e)}},this.handleClearAllStatesRef=e=>{try{let{sectionName:t}=e.detail;t?this.clearAllStates(t):this.clearAllStatesInAllSections()}catch(e){M6.error(`Error handling clear-all-states event:`,e)}},this.handleGenericStateEventRef=e=>{try{let t=e.type,n=e.detail;if(n?.sectionName)return;let r=e.target.closest(`[data-section]`)?.getAttribute(`data-section`);r||(r=e.target.closest(`[slot]`)?.getAttribute(`slot`)||this.activeSection),r||(r=this.activeSection),e.stopPropagation(),e.preventDefault();let i=Object.assign(Object.assign({},n),{sectionName:r}),a=new CustomEvent(t,{detail:i,bubbles:!0,cancelable:!0});this.dispatchEvent(a)}catch(e){M6.error(`Error handling generic state event:`,e)}},this.addEventListener(P6.setState,this.handleSetStateRef),this.addEventListener(P6.setStates,this.handleSetStatesRef),this.addEventListener(P6.clearState,this.handleClearStateRef),this.addEventListener(P6.clearAllStates,this.handleClearAllStatesRef),this.sectionContent.addEventListener(P6.setState,this.handleGenericStateEventRef,!0),this.sectionContent.addEventListener(P6.setStates,this.handleGenericStateEventRef,!0),this.sectionContent.addEventListener(P6.clearState,this.handleGenericStateEventRef,!0),this.sectionContent.addEventListener(P6.clearAllStates,this.handleGenericStateEventRef,!0)}updateSectionStates(e,t){let n=this.sectionItems.findIndex(t=>t.name===e);if(n!==-1){let e=Object.assign(Object.assign({},this.sectionItems[n]),{states:t});this.sectionItems=[...this.sectionItems.slice(0,n),e,...this.sectionItems.slice(n+1)]}}addState(e,t){if(!e||!t){M6.warn(`Section name and state name are required`);return}let n=this.sectionItems.findIndex(t=>t.name===e);if(n===-1){M6.warn(`Section "${e}" not found`);return}let r=this.sectionItems[n].states||[];if(!r.includes(t)){let n=[...r,t];this.updateSectionStates(e,n)}}addStates(e,t){if(!e||!Array.isArray(t)){M6.warn(`Section name and state names array are required`);return}let n=this.sectionItems.findIndex(t=>t.name===e);if(n===-1){M6.warn(`Section "${e}" not found`);return}let r=[...this.sectionItems[n].states||[]];t.forEach(e=>{r.includes(e)||r.push(e)}),this.updateSectionStates(e,r)}clearState(e,t){if(!e||!t){M6.warn(`Section name and state name are required`);return}let n=this.sectionItems.findIndex(t=>t.name===e);if(n===-1){M6.warn(`Section "${e}" not found`);return}let r=this.sectionItems[n].states||[],i=r.indexOf(t);if(i>-1){let t=r.filter((e,t)=>t!==i);this.updateSectionStates(e,t)}}clearAllStates(e){if(!e){M6.warn(`Section name is required`);return}if(this.sectionItems.findIndex(t=>t.name===e)===-1){M6.warn(`Section "${e}" not found`);return}this.updateSectionStates(e,[])}clearAllStatesInAllSections(){this.sectionItems=this.sectionItems.map(e=>Object.assign(Object.assign({},e),{states:[]}))}getStateTooltip(e){return e?this.stateTooltips[e]||``:(M6.warn(`State name is required`),``)}getSectionStateClass(e){if(!e)return M6.warn(`Section is required`),`state-none`;let t=e.states||[];return t.length===0?`state-none`:t.length>1?`state-multiple`:`state-${t[0]}`}getStateIcon(e){return e?this.stateIcons[e]||F6[e]:(M6.warn(`State name is required`),F6.active)}disconnectedCallback(){var e;super.disconnectedCallback(),this.handleSetStateRef&&this.removeEventListener(P6.setState,this.handleSetStateRef),this.handleSetStatesRef&&this.removeEventListener(P6.setStates,this.handleSetStatesRef),this.handleClearStateRef&&this.removeEventListener(P6.clearState,this.handleClearStateRef),this.handleClearAllStatesRef&&this.removeEventListener(P6.clearAllStates,this.handleClearAllStatesRef),this.handleGenericStateEventRef&&this.sectionContent&&(this.sectionContent.removeEventListener(P6.setState,this.handleGenericStateEventRef,!0),this.sectionContent.removeEventListener(P6.setStates,this.handleGenericStateEventRef,!0),this.sectionContent.removeEventListener(P6.clearState,this.handleGenericStateEventRef,!0),this.sectionContent.removeEventListener(P6.clearAllStates,this.handleGenericStateEventRef,!0)),this.cleanupScrollDetection(),(e=this.spacerElement)==null||e.remove(),this.spacerElement=void 0}};I6.SCROLL_END_TIMEOUT=150,I6.SCROLL_DEBOUNCE_TIMEOUT=100,q([C],I6.prototype,`sections`,void 0),q([D({attribute:`scroll-behavior`})],I6.prototype,`scrollBehavior`,void 0),q([D({attribute:`state-tooltips`})],I6.prototype,`stateTooltips`,void 0),q([D({attribute:`state-icons`})],I6.prototype,`stateIcons`,void 0),q([D({attribute:`disable-auto-scroll-detection`,mode:`boolean`})],I6.prototype,`disableAutoScrollDetection`,void 0),q([C],I6.prototype,`sectionItems`,void 0),q([C],I6.prototype,`activeSection`,void 0);let L6={mode:`open`},R6={};I6.compose(Object.assign({baseName:`foundation-section-navigator`,template:j6,styles:A6,shadowOptions:L6},R6));let z6=(e,t)=>la(e,t),B6=(e,t)=>O` ${yu(e,t)} ::slotted(foundation-segmented-item:first-of-type){border-radius: calc(var(--control-corner-radius) * 1px) 0 0 calc(var(--control-corner-radius) * 1px);border-right-width: 0}::slotted(foundation-segmented-item:last-of-type){border-radius: 0 calc(var(--control-corner-radius) * 1px) calc(var(--control-corner-radius) * 1px) 0;border-left-width: 0}`;var V6=class extends ua{valueChanged(){this.value===void 0&&this.slottedRadioButtons&&this.slottedRadioButtons.forEach(e=>{e.checked=!1}),super.valueChanged()}};V6.compose(Object.assign({baseName:`segmented-control`,template:z6,styles:B6,shadowOptions:void 0},{}));let H6=(e,t)=>T`<template role="radio" aria-checked="${e=>e.checked}" aria-required="${e=>e.required}" aria-disabled="${e=>e.disabled}" aria-readonly="${e=>e.readOnly}" @keypress="${(e,t)=>e.keypressHandler(t.event)}" @click="${(e,t)=>e.clickHandler(t.event)}"><span><slot></slot></span></template>`,U6=(e,t)=>O` ${bu(e,t)} :host{padding: calc(var(--design-unit) * 2px) calc(var(--design-unit) * 4px);border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);cursor: pointer}:host([aria-checked='true']){background: var(--accent-foreground-rest)}`;(class extends fa{}).compose(Object.assign({baseName:`segmented-item`,template:H6,styles:U6,shadowOptions:void 0},{}));let W6=(e,t)=>ba(e,t),G6=(e,t)=>O` ${Xl(e,t)} :host(:not([size]):not([multiple]):not([open]):focus-visible), :host([multiple]:focus-visible), :host([size]:focus-visible), .control:focus-visible{box-shadow: none;outline: none}`;var K6=class extends Su{get scrollableListbox(){return this.listbox??this.shadowRoot?.querySelector(`.listbox`)}slottedOptionsChanged(e,t){let n=this.value;super.slottedOptionsChanged(e,t),this.selectedIndex=-1;let r=[];this.slottedOptions&&this.slottedOptions.forEach(e=>{let t=e.nodeName.toLowerCase();if(t.endsWith(`-optgroup`)){let t=Array.from(e.children).filter(e=>{let t=e.nodeName.toLowerCase();return e.getAttribute(`role`)===`option`||t.endsWith(`-option`)});r.push(...t)}else(e.getAttribute(`role`)===`option`||t.endsWith(`-option`))&&r.push(e)}),this.options=r,n&&(this.value=n),this.selectedIndex===-1&&this.options.length>0&&(this.selectedIndex=0)}focusAndScrollOptionIntoView(e=this.firstSelectedOption){this.contains(bb(this))&&e!==null&&(e.focus(),requestAnimationFrame(()=>{e.scrollIntoView({block:`nearest`})}))}openChanged(e,t){if(this.collapsible){if(this.$emit(`open-change`,{open:this.open}),this.open){this.ariaControls=this.listboxId,this.ariaExpanded=`true`,this.setPositioning(),this.focusAndScrollOptionIntoView(),this.indexWhenOpened=this.selectedIndex,x.queueUpdate(()=>this.focus());return}this.ariaControls=``,this.ariaExpanded=`false`}}keydownHandler(e){switch(e.key){case`ArrowDown`:case`ArrowUp`:this.open?this.options[this.selectedIndex]?.scrollIntoView({block:`center`,behavior:`auto`}):this.open=!0}return super.keydownHandler(e)}};let q6={indicator:`
980
+ Hours ${Bb(o6,t)}</label><${t}-multiselect class="time-select" data-test-id="hours-multiselect" name="Hours" :options=${()=>n.hourOptions}:selectedOptions=${()=>n.selectedHours}@selectionChange="${(e,t)=>n.handleHoursChange(t.event)}"></${t}-multiselect></div>`)} ${p6(t,n,!1,!0)}</div>`;case Q.DAILY:return T` ${tLe(t,n)}<div class="row">${f6(t,n,`Every`)} ${p6(t,n,!0,!0)}</div>`;case Q.WEEKLY:return T`<div class="row">${nLe(t,n)} ${p6(t,n,!0,!0)}</div>`;case Q.MONTHLY:return T`<div class="row">${f6(t,n,`Every`)} ${p6(t,n,!0,!0)}</div>${d6(t,n)} `;case Q.YEARLY:return T`<div class="row">${p6(t,n,!0,!0)}</div>${d6(t,n)} `;default:return T``}},m6=e=>T`<template><div class="container"><div class="input-container"><label class="label">Recurrence ${A(e=>!e.disableTooltips,T` ${t=>Bb(UIe(!t.minMinuteInterval||t.minMinuteInterval<30),e)} `)}</label><${e}-select data-test-id="select-recurrence" :value=${cf(e=>e.recurrence)}@change="${e=>e.handleRecurrenceChange()}">${A(e=>e.isMinutesRecurrenceEnabled,T`<${e}-option data-test-id="${Q.MINUTES}">${Q.MINUTES}</${e}-option>`)}<${e}-option data-test-id="${Q.HOURLY}">${Q.HOURLY}</${e}-option><${e}-option data-test-id="${Q.DAILY}">${Q.DAILY}</${e}-option><${e}-option data-test-id="${Q.WEEKLY}">${Q.WEEKLY}</${e}-option><${e}-option data-test-id="${Q.MONTHLY}">${Q.MONTHLY}</${e}-option><${e}-option data-test-id="${Q.YEARLY}">${Q.YEARLY}</${e}-option></${e}-select></div>${j(e=>[`${e.recurrence}-${e.during}`],T` ${(t,n)=>rLe(n.parent.recurrence,e,n.parent)} `,{recycle:!1})}</div></template>`,iLe=T` ${e=>m6(yb(e))} `;var h6=class extends P{constructor(){super(...arguments),this.getConfigs={buildConfigForMinutesRecurrence:FIe,buildConfigForHourlyRecurrence:PIe,buildConfigForDailyRecurrence:NIe,buildConfigForWeeklyRecurrence:IIe,buildConfigForMonthlyRecurrence:RIe,buildConfigForYearlyRecurrence:LIe},this.recurrence=Q.DAILY,this.cron=``,this.value=this.cron,this.cronConfig={type:Q.DAILY,weekType:Y3.WEEK,hours:`0`,minutes:`0`,seconds:`0`},this.frequency=`1`,this.during=`every_hour`,this.hours=`0`,this.minutes=`0`,this.seconds=`0`,this.disableTooltips=!1,this.timezone=``}cronChanged(){if(this.cron)try{if(!MIe(this.cron)){SC({title:`Cron Scheduler`,body:`Invalid Cron Expression`,toast:{type:`critical`}},yb(this));return}this.setsFieldsFromCronEx()}catch(e){console.error(`Error:`,e),SC({title:`Cron Scheduler`,body:e,toast:{type:`critical`}},yb(this));return}}get duringOptions(){return[{label:`Every hour`,value:`every_hour`},{label:`Specific hours`,value:`specific_hours`}]}get frequencySuffix(){switch(this.cronConfig.type){case Q.MINUTES:return`Minute(s)`;case Q.HOURLY:return`Hour(s)`;case Q.DAILY:return`Day(s)`;case Q.MONTHLY:return`Month(s)`;default:return``}}get frequencyList(){switch(this.cronConfig.type){case Q.MINUTES:let e=[1,2,3,4,5,6,10,12,15,20,30],t=this.minMinuteInterval?Number(this.minMinuteInterval):1;return e.filter(e=>e>=t);case Q.HOURLY:return Array.from({length:23},(e,t)=>t+1);case Q.DAILY:return Array.from({length:31},(e,t)=>t+1);case Q.MONTHLY:return Array.from({length:12},(e,t)=>t+1);case Q.YEARLY:return Array.from({length:12},(e,t)=>t+1);case Q.WEEKLY:return[1];default:return[]}}get hourOptions(){return Array.from({length:24},(e,t)=>({label:t.toString(),value:t.toString()}))}get selectedHours(){return!this.hours||this.hours===`*`||this.hours===`0`?this.hours===`*`?this.hourOptions.map(e=>e.value):[this.hours]:this.hours.split(`,`)}handleHoursChange(e){let t=e.detail;t.length===24?(this.hours=`*`,this.frequency=`1`,this.cronConfig.frequency=`1`):this.hours=!t||t.length===0?`0`:t.sort((e,t)=>Number(e)-Number(t)).join(`,`),this.handleChange(`hours`)}get isMinutesRecurrenceEnabled(){return!this.minMinuteInterval||Number(this.minMinuteInterval)<=30}get isSpecificHours(){return this.during===`specific_hours`}get isDailyFrequencyDisabled(){return this.cronConfig.type===Q.DAILY&&this.cronConfig.weekType===Y3.WORK_WEEK}minMinuteIntervalChanged(){this.minMinuteInterval>=60&&console.warn(`Minimum minute interval has no effect on schedules with an hourly or longer recurrance`)}connectedCallback(){super.connectedCallback(),this.addEventListener(Q3.updateCronConfig,this.handleCronConfigUpdate)}disconnectedCallback(){this.removeEventListener(Q3.updateCronConfig,this.handleCronConfigUpdate)}getBaseConfigFields(){return{frequency:this.frequency,hours:this.hours,minutes:this.minutes,seconds:this.seconds}}handleRecurrenceChange(){switch(this.recurrence){case Q.MINUTES:let e=this.getBaseConfigFields(),{minutes:t}=e,n=nd(e,[`minutes`]);this.during=`every_hour`,this.hours=`*`;let r=[1,2,3,4,5,6,10,12,15,20,30],i=this.minMinuteInterval?Number(this.minMinuteInterval):1,a=r.find(e=>e>=i)||1;this.cronConfig=Object.assign(Object.assign({type:Q.MINUTES},n),{frequency:a.toString(),during:`every_hour`,hours:`*`}),this.generateCronExpressionFromConfig(this.cronConfig);break;case Q.HOURLY:let o=this.getBaseConfigFields(),{hours:s}=o,c=nd(o,[`hours`]);this.during=`every_hour`,this.hours=`0`,this.cronConfig=Object.assign(Object.assign({type:Q.HOURLY},c),{frequency:`1`,during:`every_hour`,hours:`0`}),this.generateCronExpressionFromConfig(this.cronConfig);break;case Q.DAILY:(this.hours===`*`||this.hours.includes(`,`))&&(this.hours=`0`),this.cronConfig=Object.assign(Object.assign({type:Q.DAILY},this.getBaseConfigFields()),{frequency:`1`,weekType:Y3.WEEK}),this.generateCronExpressionFromConfig(this.cronConfig);break;case Q.WEEKLY:(this.hours===`*`||this.hours.includes(`,`))&&(this.hours=`0`),this.cronConfig=Object.assign(Object.assign({type:Q.WEEKLY},this.getBaseConfigFields()),{frequency:`1`,selectedDays:/* @__PURE__ */ new Set([`2`])}),this.generateCronExpressionFromConfig(this.cronConfig);break;case Q.MONTHLY:(this.hours===`*`||this.hours.includes(`,`))&&(this.hours=`0`),this.cronConfig=Object.assign(Object.assign({type:Q.MONTHLY},this.getBaseConfigFields()),{frequency:`1`,dateOrDay:{type:X3.DATE,dayDate:`1`}}),this.generateCronExpressionFromConfig(this.cronConfig);break;case Q.YEARLY:(this.hours===`*`||this.hours.includes(`,`))&&(this.hours=`0`),this.cronConfig=Object.assign(Object.assign({type:Q.YEARLY},this.getBaseConfigFields()),{frequency:`1`,dateOrDay:{type:X3.DATE,dayDate:`1`,month:`1`}}),this.generateCronExpressionFromConfig(this.cronConfig);break;default:SC({title:`Cron Scheduler`,body:`Recurrence type should be one of the known types: Daily, Weekly,Monthly or Yearly`,toast:{type:`critical`}},yb(this))}}handleChange(e){if(e===`frequency`&&Number(this.frequency)===0)throw Error(`Frequency must be greater than 0`);this.cronConfig[e]=this[e],this.generateCronExpressionFromConfig(this.cronConfig)}handleDuringChange(){this.during===`every_hour`?this.hours=`*`:this.hours===`*`&&(this.hours=`0`),(this.cronConfig.type===Q.MINUTES||this.cronConfig.type===Q.HOURLY)&&(this.cronConfig.during=this.during,this.cronConfig.hours=this.hours),this.generateCronExpressionFromConfig(this.cronConfig)}handleCronConfigUpdate({detail:e}){this.cronConfig=Object.assign(Object.assign({},this.getBaseConfigFields()),e),this.generateCronExpressionFromConfig(this.cronConfig)}generateCronExpressionFromConfig(e){switch(e.type){case Q.MINUTES:this.cron=EIe(e);break;case Q.HOURLY:this.cron=TIe(e);break;case Q.DAILY:this.cron=DIe(e,$3);break;case Q.WEEKLY:this.cron=OIe(e);break;case Q.MONTHLY:this.cron=kIe(e,$3);break;case Q.YEARLY:this.cron=AIe(e);break;default:SC({title:`Cron Scheduler`,body:`Recurrence type should be one of the known types: Daily, Weekly,Monthly or Yearly`,toast:{type:`critical`}},yb(this))}this.value=this.cron,this.$emit(`change`)}setsFieldsFromCronEx(){this.cronConfig=zIe(this.cron,this.getConfigs),this.recurrence=this.cronConfig.type,this.frequency=this.cronConfig.frequency;let e=this.cronConfig;`minutes`in e&&(this.minutes=e.minutes),(e.type===Q.MINUTES||e.type===Q.HOURLY)&&(this.during=e.during||`every_hour`,e.hours&&(this.hours=e.hours)),this.seconds=e.seconds,e.type!==Q.HOURLY&&e.type!==Q.MINUTES&&(this.hours=e.hours)}};q([C],h6.prototype,`recurrence`,void 0),q([C],h6.prototype,`cron`,void 0),q([C],h6.prototype,`cronConfig`,void 0),q([C],h6.prototype,`frequency`,void 0),q([C],h6.prototype,`during`,void 0),q([w],h6.prototype,`duringOptions`,null),q([C],h6.prototype,`hours`,void 0),q([C],h6.prototype,`minutes`,void 0),q([C],h6.prototype,`seconds`,void 0),q([w],h6.prototype,`frequencySuffix`,null),q([w],h6.prototype,`frequencyList`,null),q([w],h6.prototype,`hourOptions`,null),q([w],h6.prototype,`selectedHours`,null),q([D({attribute:`min-minute-interval`})],h6.prototype,`minMinuteInterval`,void 0),q([D({mode:`boolean`,attribute:`disable-tooltips`})],h6.prototype,`disableTooltips`,void 0),q([w],h6.prototype,`isMinutesRecurrenceEnabled`,null),q([w],h6.prototype,`isSpecificHours`,null),q([w],h6.prototype,`isDailyFrequencyDisabled`,null),q([D],h6.prototype,`timezone`,void 0);let g6={};h6.compose(Object.assign({baseName:`scheduler-cron-builder`,styles:r6,template:iLe,shadowOptions:void 0},g6));let _6=O` /* Host */ :host{display: flex;flex-direction: column;width: 100%}.container{padding: calc(var(--design-unit) * 2px) calc(var(--design-unit) * 4px);display: flex;flex-direction: column;gap: calc(var(--design-unit) * 2px)}.label{color: var(--neutral-foreground-hint);display: block;cursor: pointer;font-size: var(--type-ramp-base-font-size);line-height: var(--type-ramp-base-line-height);font-style: normal}.timezone-combobox::part(listbox){max-height: 20vh}`,v6=e=>T`<template><div class="container"><label class="label">Time Zone</label><${e}-combobox data-test-id="cron-scheduler-timezone" autocomplete="both" class="timezone-combobox" value="${cf(e=>e.timezone)}">${j(e=>e.timeZones,T`<${e}-option value="${e=>e}">${e=>e}</${e}-option>`)}</${e}-combobox></div></template>`,aLe=T` ${e=>v6(yb(e))} `;var y6=class extends P{constructor(){super(...arguments),this.timezone=``,this.value=this.timezone}timezoneChanged(){this.value=this.timezone,this.$emit(`change`)}connectedCallback(){super.connectedCallback(),this.getTimeZones()}getTimeZones(){return J(this,void 0,void 0,function*(){let e=[`Europe/London`,`America/New_York`];try{let t=yield this.connect.request(`VALID_TIME_ZONE`,{REQUEST:{}});if(!t.REPLY||!Array.isArray(t.REPLY))throw Error(`Invalid data returned for Timezones`);this.timeZones=t.REPLY.map(e=>e.ZONE_ID).sort((t,n)=>e.includes(t)&&!e.includes(n)?-1:!e.includes(t)&&e.includes(n)?1:t.localeCompare(n))}catch(e){SC({title:`Cron Scheduler`,body:`Unable to fetch timezones data.`,toast:{type:`critical`}},`rapid`),Y.error(e)}})}};q([C],y6.prototype,`timezone`,void 0),q([Qv],y6.prototype,`connect`,void 0),q([C],y6.prototype,`timeZones`,void 0);let b6={};y6.compose(Object.assign({baseName:`scheduler-timezone`,styles:_6,template:aLe,shadowOptions:void 0},b6));let x6=O` .search-bar-combobox{width: 100%;min-width: auto}.padding{padding-left: calc(${z} * 1px)}.selected-options{display: flex;align-items: center;overflow: hidden;gap: calc(${z} * 1px);padding-right: calc(${z} * 1px)}.selected-options:hover{overflow-x: overlay}.selected-options::-webkit-scrollbar{height: 7px}.selected-options::-webkit-scrollbar-thumb{border-radius: 10px;box-shadow: inset 0 0 6px rgb(0 0 0 / 30%);background-color: #484848;border: 1px solid #7e7e7e}.selected-options-divider{border-right: calc(var(--stroke-width) * 1px) solid var(--neutral-fill-rest)}.options-button{height: fit-content;min-width: fit-content}.label{display: block;font-size: var(--type-ramp-base-font-size);margin: calc(${z} * 2px) 2px}.label-hidden{display: none}.search-clear-button{min-width: 28px;min-height: 28px;height: 28px;margin: 0}.search-clear-button svg{rotate: 45deg}.search-clear-button::part(control){padding: 0}.search-clear-button .svg-container{display: flex;align-items: center;justify-content: center}.close-icon{color: var(--accent-fill-rest)}`,S6=e=>T`<label part="label" for="control" data-test-id="label" class=${e=>fn(`label`,[`label-hidden`,!e.defaultSlottedNodes?.length])}><slot ${bt({property:`defaultSlottedNodes`,filter:ha})}></slot></label><${e}-search-bar-combobox ${k(`combobox`)}position="${e=>e.position}" placeholder=${e=>e.placeholder}disabled=${e=>e.disabled}:inputLocked="${e=>e.allSearchFieldsUsed}" autocomplete="none" minlength=${e=>e.minlength}@inputdeleted=${e=>e.inputdeleted()}@change=${e=>e.changeHandler()}@input=${e=>e.inputHandler()}@paste=${(e,t)=>e.pasteHandler(t.event)}class="search-bar-combobox ${e=>e.selectedOptions.length>0?`padding`:null}" data-test-id="search-bar"><div ${k(`selectedOptionsDiv`)}slot="selectedOptions" class="selected-options ${e=>e.selectedOptions.length>0?`selected-options-divider`:null}">${j(e=>e.selectedOptions,T`<${e}-button class="options-button" appearance=${(e,t)=>t.parent.appearance}disabled=${(e,t)=>t.parent.disabled}@click=${(e,t)=>t.parent.unselectOption(e)}>${e=>e.label}<${e}-icon class="close-icon" slot="end" name="circle-xmark" variant="regular"></${e}-icon></${e}-button>`)}</div>${j(e=>e.filteredOptions,T`<${e}-option value="${e=>e.field}" :disabled=${(e,t)=>!t.parent.isOptionEnabled(e)}>${(e,t)=>e.label(t.parent.searchTerm)}</${e}-option>`)} ${A(e=>e.showClearAffordance,T`<${e}-button class="search-clear-button" @click=${e=>e.clearSearch()}slot="end" data-test-id="clear-search" aria-label="Clear search terms" title="Clear search terms"><div class="svg-container"><svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" width="26px" height="26px" class="bi bi-plus" viewBox="0 0 16 16"><path d="M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4z" /></svg></div></${e}-button>`)}</${e}-search-bar-combobox>`,oLe=T` ${e=>S6(yb(e))} `;var C6=class extends P{constructor(){super(...arguments),this.searchTerm=``,this.appearance=`neutral`,this.minlength=3,this.position=Sw.BELOW,this.placeholder=`Start typing to search`,this.clearButton=!0,this.selectedOptions=[],this.normalizeDelimiter=e=>e.trim().replace(/\t|\r\n|\n|\r|,/g,` `),this.addOrReplaceSelectedText=(e,t,n)=>t?.length>0?e.replace(t,n):e.concat(n)}clear(){this.selectedOptions=[],this.searchTerm=``,this.combobox&&(this.combobox.currentValue=``,this.combobox.value=``),this.$emit(`selectionChange`,[])}clearSearch(){this.clear()}get showClearAffordance(){if(!this.clearButton)return!1;let e=(this.searchTerm??this.combobox?.value??``).trim();return this.selectedOptions.length>0||e.length>0}get allSearchFieldsUsed(){return this.options?.length?this.options.every(e=>this.selectedOptions.some(t=>t.field===e.field)):!1}isOptionEnabled(e){return e.isEnabled?e.isEnabled(this.searchTerm,this.selectedOptions,this.minlength):this.searchTerm.length>=this.minlength&&!this.selectedOptions.some(t=>t.field===e.field)}selectedOptionsChanged(){this.applySearchInputLock()}optionsChanged(){this.applySearchInputLock()}applySearchInputLock(){this.combobox&&this.allSearchFieldsUsed&&(this.searchTerm=``,this.combobox.value=``,this.combobox.currentValue=``,this.combobox.open=!1,this.filteredOptions=[])}inputdeleted(){this.selectedOptions.length>0&&this.unselectOption(this.selectedOptions[this.selectedOptions.length-1])}changeHandler(){let e=[];this.combobox.selectedOptions.forEach(t=>{let n=t.value,r=this.searchTerm.trim();e.push({field:n,term:r,label:this.options.find(e=>e.field===n)?.label(r)||t.text,createCriteria:this.options.find(e=>e.field===n)?.createCriteria,resourceType:this.options.find(e=>e.field===n)?.resourceType})}),this.selectedOptions=[...this.selectedOptions,...e],this.selectedOptions=this.selectedOptions.filter((e,t,n)=>t===n.findIndex(t=>e.field===t.field&&e.term===t.term)),this.combobox.value=``,this.combobox.open=!1,this.$emit(`selectionChange`,this.selectedOptions),x.queueUpdate(()=>{setTimeout(()=>{this.selectedOptionsDiv.scrollTo(this.selectedOptionsDiv.scrollWidth,0)},10)})}pasteHandler(e){if(this.allSearchFieldsUsed){e.preventDefault();return}this.loading=!0;let t=e.clipboardData.getData(`text/plain`),n=this.normalizeDelimiter(t),r=window.getSelection()?.toString(),i=this.addOrReplaceSelectedText(this.combobox.value,r,n);i?.length>=this.minlength&&(this.combobox.value=i,this.searchTerm=i,this.options&&this.filterSelectedOptions(i),this.combobox.open=!0),this.loading=!1}hasSelectedOption(e,t){return this.selectedOptions.some(n=>n.term===e&&n.field===t)}unselectOption(e){this.selectedOptions=this.selectedOptions.filter(t=>t!==e),this.$emit(`selectionChange`,this.selectedOptions)}inputHandler(){return J(this,void 0,void 0,function*(){if(this.allSearchFieldsUsed){this.applySearchInputLock();return}this.loading=!0,this.searchTerm=this.combobox.value,this.combobox.value.length>=this.minlength&&this.filterSelectedOptions(this.combobox.value),this.loading=!1})}filterSelectedOptions(e){this.filteredOptions=this.options.filter(t=>!this.selectedOptions.find(n=>n.field===t.field&&n.term.trim()===e.trim()))}};q([C],C6.prototype,`defaultSlottedNodes`,void 0),q([C],C6.prototype,`options`,void 0),q([C],C6.prototype,`searchTerm`,void 0),q([D],C6.prototype,`appearance`,void 0),q([D],C6.prototype,`minlength`,void 0),q([D],C6.prototype,`position`,void 0),q([D],C6.prototype,`placeholder`,void 0),q([D],C6.prototype,`disabled`,void 0),q([D({attribute:`clear-button`,mode:`boolean`})],C6.prototype,`clearButton`,void 0),q([C],C6.prototype,`loading`,void 0),q([C],C6.prototype,`selectedOptions`,void 0),q([C],C6.prototype,`filteredOptions`,void 0);let w6={};C6.compose(Object.assign({baseName:`search-bar`,template:oLe,styles:x6,shadowOptions:void 0},w6));let T6=(e,t)=>O` ${zw(e,t)} .control{width: auto;padding-left: calc(${z} * 1px);padding-right: 0}.end{height: 100%;min-width: 36px;max-width: 36px;padding-right: 2px;display: flex;justify-content: flex-end;align-items: center}.selected-value{min-width: 150px;max-width: 169px}.input-locked .control, :host(.input-locked) .control{width: 0;min-width: 0;padding: 0;margin: 0;overflow: hidden;flex: 0}.input-locked .selected-value, :host(.input-locked) .selected-value{display: none}`,E6=(e,t)=>T`<template aria-disabled="${e=>e.ariaDisabled}" autocomplete="${e=>e.autocomplete}" class="${e=>e.open?`open`:``} ${e=>e.disabled?`disabled`:``} ${e=>e.position} ${e=>e.inputLocked?`input-locked`:``}body" ?open="${e=>e.open}" tabindex="${e=>e.disabled?null:`0`}" @click="${(e,t)=>e.clickHandler(t.event)}" @focusout="${(e,t)=>e.focusoutHandler(t.event)}" @keydown="${(e,t)=>e.keydownHandler(t.event)}" data-test-id="combobox"><slot name="selectedOptions" data-test-id="options"></slot><div class="control" part="control"><slot name="control"><input aria-activedescendant="${e=>e.open?e.ariaActiveDescendant:null}" aria-autocomplete="${e=>e.ariaAutoComplete}" aria-controls="${e=>e.ariaControls}" aria-disabled="${e=>e.ariaDisabled}" aria-expanded="${e=>e.ariaExpanded}" aria-haspopup="listbox" class="selected-value" part="selected-value" placeholder="${e=>e.placeholder}" role="combobox" type="text" ?disabled="${e=>e.disabled}" :value="${e=>e.value}" @input="${(e,t)=>e.inputHandler(t.event)}" @keyup="${(e,t)=>e.keyupHandler(t.event)}" ${k(`control`)}data-test-id="selected-value" /></slot></div>${Ct(e,t)}<div class="listbox" id="${e=>e.listboxId}" part="listbox" role="listbox" ?disabled="${e=>e.disabled}" ?hidden="${e=>!e.open}" ${k(`listbox`)}data-test-id="listbox"><slot ${bt({filter:Rr.slottedOptionFilter,flatten:!0,property:`slottedOptions`})}></slot></div></template>`,sLe=/* @__PURE__ */ new Set([`Backspace`,`Delete`,`Tab`,`Escape`,`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`,`Home`,`End`]);var D6=class extends Ql{constructor(){super(...arguments),this.minlength=1,this.previousLength=-1,this.changeListener=e=>{this.previousLength=0}}connectedCallback(){super.connectedCallback(),this.addEventListener(`change`,this.changeListener)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(`change`,this.changeListener)}clickHandler(e){if(!this.disabled){if(this.open){let t=e.target.closest(`option,[role=option]`);if(!t||t.disabled)return;this.selectedOptions=[t],this.control.value=t.text,this.value=this.control.value,this.$emit(`change`)}this.control.focus()}}keyupHandler(e){switch(e.key){case`Backspace`:case`Delete`:this.previousLength<0?this.$emit(`inputdeleted`):--this.previousLength;break;case`Enter`:if(this.open&&this.selectedIndex!==-1){let e=this.slottedOptions[0];this.selectedOptions=[e],this.control.value=e.text,this.value=this.control.value,this.$emit(`change`)}}super.keyupHandler(e)}keydownHandler(e){let t=e.key;if(this.inputLocked){let n=e.ctrlKey||e.metaKey||e.altKey;if(!(sLe.has(t)||n))return e.preventDefault(),!1}switch(t){case`ArrowUp`:case`ArrowDown`:return this.control.value.length<this.minlength?void 0:super.keydownHandler(e);case`Enter`:return this.selectedIndex!==-1&&super.keydownHandler(e);case`Tab`:if(!this.open)return!0;e.shiftKey?this.selectPreviousOption():this.selectNextOption();break;default:return super.keydownHandler(e)}}inputHandler(e){if(this.inputLocked){this.control.value=``,this.value=``,this.open=!1,e.stopImmediatePropagation();return}this.control.value.length>=this.minlength?this.open=!0:(e.stopImmediatePropagation(),this.open=!1),this.value=this.control.value,this.previousLength=this.control.value.length}openChanged(){if(this.open){this.ariaControls=this.listboxId,this.ariaExpanded=`true`,this.setPositioning(),this.focusAndScrollOptionIntoView();return}this.ariaControls=``,this.ariaExpanded=`false`}};q([D],D6.prototype,`minlength`,void 0),q([C],D6.prototype,`inputLocked`,void 0);let O6={delegatesFocus:!0,mode:`open`},k6={};D6.compose(Object.assign({baseName:`search-bar-combobox`,template:E6,styles:T6,shadowOptions:O6},k6));let A6=O` :host{display: block;width: 100%;height: 100%;min-height: 400px;/* Section link marker CSS variables to allow customization of the marker */ --section-link-marker-width: 2px;--section-link-marker-height: 100%;--section-link-marker-left: 0;--section-link-marker-top: 0;--section-link-marker-transition: background-color 0.2s ease;--section-link-marker-background-color: transparent;--section-link-marker-background-color-hover: var(--neutral-layer-hover);--section-link-marker-background-color-active: var(--accent-fill-rest);/* Section link CSS variables to allow customization of the link */ --section-link-text-align: left;--section-link-text-white-space: initial}.section-navigator-container{display: flex;height: 100%;max-height: 100%;width: 100%}.section-navigation{background-color: var(--neutral-layer-2);border-right: 1px solid var(--neutral-stroke-divider);overflow-y: auto;height: 100%;min-width: 20%}.section-link{position: relative;display: block;width: 100%;color: var(--neutral-foreground-rest);text-decoration: none;border: none;background: none;text-align: left;transition: all 0.2s ease;cursor: pointer;font-family: inherit;font-size: inherit;margin: 0;border-radius: 0;vertical-align: top}.section-link.active:hover{color: var(--neutral-foreground-rest)}.section-link:hover{color: var(--accent-foreground-rest)}.section-link::part(control){vertical-align: top;white-space: inherit}.section-link::before{content: '';position: absolute;top: var(--section-link-marker-top);left: var(--section-link-marker-left);width: var(--section-link-marker-width);height: var(--section-link-marker-height);background-color: var(--section-link-marker-background-color);transition: var(--section-link-marker-transition);z-index: 1}.section-link:hover::before{background-color: var(--section-link-marker-background-color-hover)}.section-link.active::before{background-color: var(--section-link-marker-background-color-active)}.section-link::part(content){padding: 0;text-align: var(--section-link-text-align);white-space: var(--section-link-text-white-space)}.section-content-wrapper{flex: 1;height: 100%;overflow: hidden;display: flex;flex-direction: column}.section-content{flex: 1;overflow: hidden auto;padding: calc(var(--design-unit) * 4px);background-color: var(--neutral-layer-1);min-height: 0}.section-content::-webkit-scrollbar{width: var(--scrollbar-width)}.section-content::-webkit-scrollbar-track{background: var(--neutral-layer-4)}.section-content::-webkit-scrollbar-thumb{width: var(--scrollbar-thumb-width);/* 8px */ border-radius: 10px;box-shadow: inset 0 0 6px rgba(0 0 0 / 30%);background-color: var(--neutral-layer-2);border: 3px solid var(--neutral-layer-4)}.content-section{background-color: var(--neutral-layer-1)}.state-icon{margin-left: calc(var(--design-unit) * 1px);width: 12px;height: 12px}.state-icon[data-state='active']{color: var(--accent-fill-rest)}.state-icon[data-state='inactive']{color: var(--neutral-foreground-rest)}.state-icon[data-state='pending']{color: var(--warning-fill-rest)}.state-icon[data-state='disabled']{color: var(--neutral-foreground-disabled)}.state-icon[data-state='error']{color: var(--error-fill-rest)}.state-icon[data-state='completed']{color: var(--success-fill-rest)}/* Section button state colors */ .section-link.state-active{color: var(--accent-foreground-rest)}.section-link.state-inactive{color: var(--neutral-foreground-hint)}.section-link.state-pending{color: var(--warning-color)}.section-link.state-disabled{color: var(--neutral-foreground-disabled)}.section-link.state-error{color: var(--error-color)}.section-link.state-completed{color: var(--success-color)}.section-link.state-multiple{color: var(--accent-foreground-rest)}.section-link.state-none{color: var(--neutral-foreground-rest)}`,cLe=e=>T`<template><div class="section-navigator-container" part="section-navigator-container" ${k(`sectionNavigatorContainer`)}><nav class="section-navigation" part="section-navigator-navigation">${j(e=>e.sectionItems,T`<${e}-button class="section-link ${(e,t)=>t.parent.activeSection===e.name?`active`:``} ${(e,t)=>t.parent.getSectionStateClass(e)}" part="section-navigator-section-link ${(e,t)=>t.parent.getSectionStateClass(e)}" @click="${(e,t)=>t.parent.handleSectionClick(e.name)}">${e=>e.label} ${j(e=>e.states||[],T`<${e}-icon class="state-icon" part="section-navigator-state-icon" title="${(e,t)=>t.parentContext.parent.getStateTooltip(e)}" data-state="${e=>e}" name="${(e,t)=>t.parentContext.parent.getStateIcon(e).name}" variant="${(e,t)=>t.parentContext.parent.getStateIcon(e).variant}"></${e}-icon>`)}</${e}-button>`)}</nav><div class="section-content-wrapper" part="section-navigator-content-wrapper"><section class="section-content" part="section-navigator-content" ${k(`sectionContent`)}>${j(e=>e.sectionItems,T`<div class="content-section" part="section-navigator-content-section" data-section="${e=>e.name}"><slot name="${e=>e.name}"></slot></div>`)}</section></div></div></template>`,j6=T` ${e=>cLe(yb(e))} `,M6=kd(`SectionNavigator`),N6=`section-navigator`,P6={setState:`${N6}-set-state`,setStates:`${N6}-set-states`,clearState:`${N6}-clear-state`,clearAllStates:`${N6}-clear-all-states`},lLe={active:`Active`,inactive:`Inactive`,pending:`Pending`,disabled:`Disabled`,error:`Error`,completed:`Completed`},F6={active:{name:`circle-dot`,variant:`solid`},inactive:{name:`times-circle`,variant:`regular`},pending:{name:`clock`,variant:`solid`},disabled:{name:`ban`,variant:`solid`},error:{name:`times`,variant:`solid`},completed:{name:`check`,variant:`solid`}};var I6=class e extends P{constructor(){super(...arguments),this.sections=[],this.scrollBehavior=`top`,this.stateTooltips=lLe,this.stateIcons=F6,this.disableAutoScrollDetection=!1,this.userClickedSection=!1,this.isUserScrolling=!1,this.sectionItems=[],this.activeSection=``}sectionsChanged(){this.setSectionItems(),this.setActiveSection(),this.updateScrollDetection()}disableAutoScrollDetectionChanged(){this.updateScrollDetection()}scrollBehaviorChanged(){this.updateSpacer()}connectedCallback(){super.connectedCallback(),this.setSectionItems(),this.setActiveSection(),this.updateSpacer(),this.setupStateEventListeners(),this.updateScrollDetection()}setSectionItems(){if(!Array.isArray(this.sections)){M6.warn(`Sections must be an array`),this.sectionItems=[];return}this.sectionItems=this.sections}setActiveSection(){this.sectionItems.length>0&&!this.activeSection&&(this.activeSection=this.sectionItems[0].name)}handleSectionClick(e){this.activeSection=e,this.userClickedSection=!0,this.scrollToSection(e)}updateSpacer(){var e;if(!this.sectionContent){M6.warn(`Section content element not found`);return}if((e=this.spacerElement)==null||e.remove(),this.spacerElement=void 0,this.scrollBehavior===`top`)try{let e=this.sectionContent.clientHeight,t=this.sectionContent.querySelector(`.content-section:last-child`);if(t){let n=t.offsetHeight,r=Math.max(0,e-n-20);this.spacerElement=document.createElement(`div`),this.spacerElement.className=`scroll-spacer`,this.spacerElement.style.height=`${r}px`,this.spacerElement.style.pointerEvents=`none`,this.sectionContent.appendChild(this.spacerElement)}}catch(e){M6.error(`Error updating spacer:`,e)}}scrollToSection(e){if(!this.sectionContent){M6.warn(`Section content not available`);return}try{let t=this.sectionContent.querySelector(`[data-section="${e}"]`);if(!t){M6.warn(`Section "${e}" not found`);return}let n=t.offsetTop-this.sectionContent.offsetTop;this.sectionContent.scrollTo({top:n,behavior:`smooth`}),this.setupScrollEndDetection()}catch(e){M6.error(`Error scrolling to section:`,e)}}updateScrollDetection(){this.cleanupScrollDetection(),!this.disableAutoScrollDetection&&this.sectionContent&&this.setupScrollDetection()}setupScrollDetection(){if(!this.sectionContent){M6.warn(`Section content not available for scroll detection`);return}try{this.scrollCheckHandler=()=>{this.isUserScrolling&&!this.userClickedSection&&(this.scrollDebounceTimeout&&clearTimeout(this.scrollDebounceTimeout),this.scrollDebounceTimeout=window.setTimeout(()=>{this.updateActiveSectionBasedOnScrollPosition()},e.SCROLL_DEBOUNCE_TIMEOUT))},this.sectionContent.addEventListener(`scroll`,this.scrollCheckHandler,{passive:!0});let t=()=>{this.isUserScrolling=!0},n=()=>{this.isUserScrolling=!1,this.userClickedSection=!1};this.sectionContent.addEventListener(`wheel`,t,{passive:!0}),this.sectionContent.addEventListener(`touchstart`,t,{passive:!0}),this.sectionContent.addEventListener(`mousedown`,t,{passive:!0}),this.sectionContent.addEventListener(`scrollend`,n,{passive:!0});let r;this.sectionContent.addEventListener(`scroll`,()=>{clearTimeout(r),r=window.setTimeout(n,e.SCROLL_END_TIMEOUT)},{passive:!0})}catch(e){M6.error(`Error setting up scroll detection:`,e)}}updateActiveSectionBasedOnScrollPosition(){if(!this.sectionContent)return;let e=this.sectionContent.scrollTop+this.sectionContent.clientHeight/2,t=null,n=1/0;this.sectionItems.forEach(r=>{let i=this.sectionContent.querySelector(`[data-section="${r.name}"]`);if(i){let a=i.offsetTop+i.clientHeight/2,o=Math.abs(a-e);o<n&&(n=o,t=r.name)}}),t&&t!==this.activeSection&&(this.activeSection=t)}setupScrollEndDetection(){this.sectionContent&&(this.cleanupScrollEndDetection(),this.scrollEndHandler=()=>{this.userClickedSection=!1,this.cleanupScrollEndDetection()},this.sectionContent.addEventListener(`scroll`,this.scrollEndHandler,{passive:!0}))}cleanupScrollEndDetection(){this.scrollEndHandler&&this.sectionContent&&(this.sectionContent.removeEventListener(`scroll`,this.scrollEndHandler),this.scrollEndHandler=void 0)}cleanupScrollDetection(){this.scrollCheckHandler&&this.sectionContent&&(this.sectionContent.removeEventListener(`scroll`,this.scrollCheckHandler),this.scrollCheckHandler=void 0),this.scrollDebounceTimeout&&(clearTimeout(this.scrollDebounceTimeout),this.scrollDebounceTimeout=void 0),this.cleanupScrollEndDetection()}setupStateEventListeners(){if(!this.sectionContent){M6.warn(`Section content not available for event listeners`);return}this.handleSetStateRef=e=>{try{let{sectionName:t,stateName:n}=e.detail;this.addState(t,n)}catch(e){M6.error(`Error handling set-state event:`,e)}},this.handleSetStatesRef=e=>{try{let{sectionName:t,stateNames:n}=e.detail;this.addStates(t,n)}catch(e){M6.error(`Error handling set-states event:`,e)}},this.handleClearStateRef=e=>{try{let{sectionName:t,stateName:n}=e.detail;this.clearState(t,n)}catch(e){M6.error(`Error handling clear-state event:`,e)}},this.handleClearAllStatesRef=e=>{try{let{sectionName:t}=e.detail;t?this.clearAllStates(t):this.clearAllStatesInAllSections()}catch(e){M6.error(`Error handling clear-all-states event:`,e)}},this.handleGenericStateEventRef=e=>{try{let t=e.type,n=e.detail;if(n?.sectionName)return;let r=e.target.closest(`[data-section]`)?.getAttribute(`data-section`);r||(r=e.target.closest(`[slot]`)?.getAttribute(`slot`)||this.activeSection),r||(r=this.activeSection),e.stopPropagation(),e.preventDefault();let i=Object.assign(Object.assign({},n),{sectionName:r}),a=new CustomEvent(t,{detail:i,bubbles:!0,cancelable:!0});this.dispatchEvent(a)}catch(e){M6.error(`Error handling generic state event:`,e)}},this.addEventListener(P6.setState,this.handleSetStateRef),this.addEventListener(P6.setStates,this.handleSetStatesRef),this.addEventListener(P6.clearState,this.handleClearStateRef),this.addEventListener(P6.clearAllStates,this.handleClearAllStatesRef),this.sectionContent.addEventListener(P6.setState,this.handleGenericStateEventRef,!0),this.sectionContent.addEventListener(P6.setStates,this.handleGenericStateEventRef,!0),this.sectionContent.addEventListener(P6.clearState,this.handleGenericStateEventRef,!0),this.sectionContent.addEventListener(P6.clearAllStates,this.handleGenericStateEventRef,!0)}updateSectionStates(e,t){let n=this.sectionItems.findIndex(t=>t.name===e);if(n!==-1){let e=Object.assign(Object.assign({},this.sectionItems[n]),{states:t});this.sectionItems=[...this.sectionItems.slice(0,n),e,...this.sectionItems.slice(n+1)]}}addState(e,t){if(!e||!t){M6.warn(`Section name and state name are required`);return}let n=this.sectionItems.findIndex(t=>t.name===e);if(n===-1){M6.warn(`Section "${e}" not found`);return}let r=this.sectionItems[n].states||[];if(!r.includes(t)){let n=[...r,t];this.updateSectionStates(e,n)}}addStates(e,t){if(!e||!Array.isArray(t)){M6.warn(`Section name and state names array are required`);return}let n=this.sectionItems.findIndex(t=>t.name===e);if(n===-1){M6.warn(`Section "${e}" not found`);return}let r=[...this.sectionItems[n].states||[]];t.forEach(e=>{r.includes(e)||r.push(e)}),this.updateSectionStates(e,r)}clearState(e,t){if(!e||!t){M6.warn(`Section name and state name are required`);return}let n=this.sectionItems.findIndex(t=>t.name===e);if(n===-1){M6.warn(`Section "${e}" not found`);return}let r=this.sectionItems[n].states||[],i=r.indexOf(t);if(i>-1){let t=r.filter((e,t)=>t!==i);this.updateSectionStates(e,t)}}clearAllStates(e){if(!e){M6.warn(`Section name is required`);return}if(this.sectionItems.findIndex(t=>t.name===e)===-1){M6.warn(`Section "${e}" not found`);return}this.updateSectionStates(e,[])}clearAllStatesInAllSections(){this.sectionItems=this.sectionItems.map(e=>Object.assign(Object.assign({},e),{states:[]}))}getStateTooltip(e){return e?this.stateTooltips[e]||``:(M6.warn(`State name is required`),``)}getSectionStateClass(e){if(!e)return M6.warn(`Section is required`),`state-none`;let t=e.states||[];return t.length===0?`state-none`:t.length>1?`state-multiple`:`state-${t[0]}`}getStateIcon(e){return e?this.stateIcons[e]||F6[e]:(M6.warn(`State name is required`),F6.active)}disconnectedCallback(){var e;super.disconnectedCallback(),this.handleSetStateRef&&this.removeEventListener(P6.setState,this.handleSetStateRef),this.handleSetStatesRef&&this.removeEventListener(P6.setStates,this.handleSetStatesRef),this.handleClearStateRef&&this.removeEventListener(P6.clearState,this.handleClearStateRef),this.handleClearAllStatesRef&&this.removeEventListener(P6.clearAllStates,this.handleClearAllStatesRef),this.handleGenericStateEventRef&&this.sectionContent&&(this.sectionContent.removeEventListener(P6.setState,this.handleGenericStateEventRef,!0),this.sectionContent.removeEventListener(P6.setStates,this.handleGenericStateEventRef,!0),this.sectionContent.removeEventListener(P6.clearState,this.handleGenericStateEventRef,!0),this.sectionContent.removeEventListener(P6.clearAllStates,this.handleGenericStateEventRef,!0)),this.cleanupScrollDetection(),(e=this.spacerElement)==null||e.remove(),this.spacerElement=void 0}};I6.SCROLL_END_TIMEOUT=150,I6.SCROLL_DEBOUNCE_TIMEOUT=100,q([C],I6.prototype,`sections`,void 0),q([D({attribute:`scroll-behavior`})],I6.prototype,`scrollBehavior`,void 0),q([D({attribute:`state-tooltips`})],I6.prototype,`stateTooltips`,void 0),q([D({attribute:`state-icons`})],I6.prototype,`stateIcons`,void 0),q([D({attribute:`disable-auto-scroll-detection`,mode:`boolean`})],I6.prototype,`disableAutoScrollDetection`,void 0),q([C],I6.prototype,`sectionItems`,void 0),q([C],I6.prototype,`activeSection`,void 0);let L6={mode:`open`},R6={};I6.compose(Object.assign({baseName:`foundation-section-navigator`,template:j6,styles:A6,shadowOptions:L6},R6));let z6=(e,t)=>la(e,t),B6=(e,t)=>O` ${yu(e,t)} ::slotted(foundation-segmented-item:first-of-type){border-radius: calc(var(--control-corner-radius) * 1px) 0 0 calc(var(--control-corner-radius) * 1px);border-right-width: 0}::slotted(foundation-segmented-item:last-of-type){border-radius: 0 calc(var(--control-corner-radius) * 1px) calc(var(--control-corner-radius) * 1px) 0;border-left-width: 0}`;var V6=class extends ua{valueChanged(){this.value===void 0&&this.slottedRadioButtons&&this.slottedRadioButtons.forEach(e=>{e.checked=!1}),super.valueChanged()}};V6.compose(Object.assign({baseName:`segmented-control`,template:z6,styles:B6,shadowOptions:void 0},{}));let H6=(e,t)=>T`<template role="radio" aria-checked="${e=>e.checked}" aria-required="${e=>e.required}" aria-disabled="${e=>e.disabled}" aria-readonly="${e=>e.readOnly}" @keypress="${(e,t)=>e.keypressHandler(t.event)}" @click="${(e,t)=>e.clickHandler(t.event)}"><span><slot></slot></span></template>`,U6=(e,t)=>O` ${bu(e,t)} :host{padding: calc(var(--design-unit) * 2px) calc(var(--design-unit) * 4px);border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);cursor: pointer}:host([aria-checked='true']){background: var(--accent-foreground-rest)}`;(class extends fa{}).compose(Object.assign({baseName:`segmented-item`,template:H6,styles:U6,shadowOptions:void 0},{}));let W6=(e,t)=>ba(e,t),G6=(e,t)=>O` ${Xl(e,t)} :host(:not([size]):not([multiple]):not([open]):focus-visible), :host([multiple]:focus-visible), :host([size]:focus-visible), .control:focus-visible{box-shadow: none;outline: none}`;var K6=class extends Su{get scrollableListbox(){return this.listbox??this.shadowRoot?.querySelector(`.listbox`)}slottedOptionsChanged(e,t){let n=this.value;super.slottedOptionsChanged(e,t),this.selectedIndex=-1;let r=[];this.slottedOptions&&this.slottedOptions.forEach(e=>{let t=e.nodeName.toLowerCase();if(t.endsWith(`-optgroup`)){let t=Array.from(e.children).filter(e=>{let t=e.nodeName.toLowerCase();return e.getAttribute(`role`)===`option`||t.endsWith(`-option`)});r.push(...t)}else(e.getAttribute(`role`)===`option`||t.endsWith(`-option`))&&r.push(e)}),this.options=r,n&&(this.value=n),this.selectedIndex===-1&&this.options.length>0&&(this.selectedIndex=0)}focusAndScrollOptionIntoView(e=this.firstSelectedOption){this.contains(bb(this))&&e!==null&&(e.focus(),requestAnimationFrame(()=>{e.scrollIntoView({block:`nearest`})}))}openChanged(e,t){if(this.collapsible){if(this.$emit(`open-change`,{open:this.open}),this.open){this.ariaControls=this.listboxId,this.ariaExpanded=`true`,this.setPositioning(),this.focusAndScrollOptionIntoView(),this.indexWhenOpened=this.selectedIndex,x.queueUpdate(()=>this.focus());return}this.ariaControls=``,this.ariaExpanded=`false`}}keydownHandler(e){switch(e.key){case`ArrowDown`:case`ArrowUp`:this.open?this.options[this.selectedIndex]?.scrollIntoView({block:`center`,behavior:`auto`}):this.open=!0}return super.keydownHandler(e)}};let q6={indicator:`
981
981
  <svg
982
982
  class="select-indicator"
983
983
  part="select-indicator"
@@ -990,20 +990,20 @@ ${e?`<li><strong>Minutes:</strong> Runs at every interval of minutes from the ho
990
990
  </svg>
991
991
  `};K6.compose(Object.assign({baseName:`select`,template:W6,styles:G6,shadowOptions:void 0},q6));let J6=(e,t)=>xa(e,t),Y6=(e,t)=>O` ${Cu(e,t)}`;var X6=class extends Sa{};let Z6={};X6.compose(Object.assign({baseName:`skeleton`,template:J6,styles:Y6,shadowOptions:void 0},Z6));let Q6=(e,t)=>T`<template role="slider" class="${e=>e.readOnly?`readonly`:``} ${e=>e.orientation||un.horizontal}" tabindex="${e=>e.disabled?null:0}" aria-valuetext="${e=>e.valueTextFormatter(e.value)}" aria-valuenow="${e=>e.value}" aria-valuemin="${e=>e.min}" aria-valuemax="${e=>e.max}" aria-disabled="${e=>e.disabled?!0:void 0}" aria-readonly="${e=>e.readOnly?!0:void 0}" aria-orientation="${e=>e.orientation}" class="${e=>e.orientation}"><div part="positioning-region" class="positioning-region"><div ${k(`track`)}part="track-container" class="track"><div class="track-progress" style="${e=>{let t=1-Fn(0,1,(parseInt(e.value)-e.min)/(e.max-e.min)),n=Math.round((1-t)*100);return e.orientation===`horizontal`?e.isDragging?`height: calc(var(--track-width) * 1px); width: ${n}%;`:`height: calc(var(--track-width) * 1px); width: ${n}%; transition: all 0.2s ease;`:e.isDragging?`width: calc(var(--track-width) * 1px); height: ${n}%;`:`width: calc(var(--track-width) * 1px); height: ${n}%; transition: all 0.2s ease;`}}"></div></div><slot></slot><div ${k(`thumb`)}part="thumb-container" class="thumb-container" style="${e=>e.position}"><slot name="thumb">${t.thumb||``}</slot></div></div></template>`,$6=(e,t)=>O` ${Ou(e,t)} .track-progress{background-color: var(--accent-fill-rest);border-radius: calc(var(--control-corner-radius) * 1px)}`;var e8=class extends Da{};let t8={thumb:`
992
992
  <div class="thumb-cursor"></div>
993
- `};e8.compose(Object.assign({baseName:`slider`,template:Q6,styles:$6,shadowOptions:void 0},t8));let n8=(e,t)=>Ca(e,t),r8=(e,t)=>O` ${Eu(e,t)}`;var i8=class extends Du{};let a8={};i8.compose(Object.assign({baseName:`slider-label`,template:n8,styles:r8,shadowOptions:void 0},a8));let o8=`default`,s8=1e4,c8={DISMISS:`dismiss`,AUTO_DISMISS:`autoDismiss`},l8=O` @keyframes append-from-left-animate{from{transform: translateX(100%);opacity: 0%}to{transform: translateX(0%);opacity: 100%}}@keyframes delete-from-left-animate{from{transform: translateX(0%);opacity: 100%}to{transform: translateX(100%);opacity: 0%}}@keyframes append-from-top-animate{from{transform: translateY(-100%);opacity: 0%}to{transform: translateY(0%);opacity: 100%}}@keyframes delete-from-top-animate{from{transform: translateY(0%);opacity: 100%}to{transform: translateY(-100%);opacity: 0%}}@keyframes delete-fade-animate{from{opacity: 100%}to{opacity: 0%}}:host{--snackbar-min-width: 356px;--snackbar-min-height: 55px;--snackbar-max-width: 496px;--snackbar-max-height: auto;--snackbar-animation-name: append-from-left-animate;--snackbar-animation-delete-name: delete-from-left-animate}.snackbar{animation: var(--snackbar-animation-name) 0.3s linear;max-width: var(--snackbar-max-width);min-width: var(--snackbar-min-width);min-height: var(--snackbar-min-height);max-height: var(--snackbar-max-height);background-color: var(--fill-color);border-radius: calc(var(--control-corner-radius) * 1px);border-width: thin;border-color: var(--neutral-fill-rest);box-shadow: 0 2px 5px 0 rgb(0 0 0 / 35%);box-sizing: border-box;display: flex;position: relative;bottom: 5px;flex-direction: row;padding: 2px 16px}.snackbar-delete{animation: var(--snackbar-animation-delete-name) 0.3s linear;opacity: 0%}.snackbar::after{content: '';position: absolute;top: 50%;transform: translateY(-50%);left: 0;height: calc(100% - 2px);width: 2px;border-radius: 2px}.content{display: flex;align-items: center;flex: 2;font-size: 12px;overflow: hidden;overflow-wrap: anywhere;white-space: pre-line}.action{display: flex;flex-direction: row-reverse;align-items: center;gap: 10px;flex: 1;overflow: hidden}`,u8=e=>T`<div role="alert" aria-live="polite" part="snackbar" class="snackbar ${e=>e.deleteAnimation}" ${k(`snackbar`)}><div part="content" class="content"><slot name="content">${e=>e.error?.errorDetails||e.notification?.body||`Place holder for error message`}</slot></div>${A(e=>e.error?.config?.snackbar?.confirmingActions?.length||e.notification?.config?.snackbar?.confirmingActions?.length,T`<div part="action" class="action"><slot name="action">${j(e=>e.error?.config?.snackbar?.confirmingActions||e.notification?.config?.snackbar?.confirmingActions,T`<${e}-button slot="action" appearance="lightweight" @click=${(e,t)=>{var n;e?.action(),(n=t.parent)==null||n.dismiss()}}>${e=>e.label}</${e}-button>`)}</slot></div>`)}</div>`,cLe=T` ${e=>u8(yb(e))} `,d8={mode:`open`,delegatesFocus:!0};var f8=class extends P{constructor(){super(...arguments),this.deleteAnimation=``,this.closeTimeout=s8,this.autoClose=!0,this.type=o8,this.dismissEventListener=this.handleDissmis.bind(this)}autoCloseChanged(){this.autoClose&&(this.timeoutRef=setTimeout(()=>{this.handleDissmis(!0)},this.closeTimeout)),!this.autoClose&&this.timeoutRef&&clearTimeout(this.timeoutRef)}connectedCallback(){super.connectedCallback(),this.addEventListener(c8.DISMISS,this.dismissEventListener)}errorChanged(e,t){this.type=t?.config?.snackbar?.type??o8}notificationChanged(e,t){this.type=t?.config?.snackbar?.type??o8,this.autoClose=t?.config?.snackbar?.autoClose??!0,this.closeTimeout=t?.config?.snackbar?.closeTimeout??s8}handleDissmis(e=!1){this.deleteAnimation=`snackbar-delete`,this.snackbar.onanimationend=()=>{this.dismiss(),e&&this.dispatchEvent(new CustomEvent(c8.AUTO_DISMISS,{bubbles:!0,composed:!0,detail:this.identifier}))}}dismiss(){this.remove(),this.timeoutRef&&clearTimeout(this.timeoutRef)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(c8.DISMISS,this.dismissEventListener),this.timeoutRef&&clearTimeout(this.timeoutRef)}};q([C],f8.prototype,`error`,void 0),q([C],f8.prototype,`notification`,void 0),q([C],f8.prototype,`deleteAnimation`,void 0),q([D({attribute:`identifier`})],f8.prototype,`identifier`,void 0),q([D({attribute:`close-timeout`})],f8.prototype,`closeTimeout`,void 0),q([D({attribute:`auto-close`,mode:`boolean`})],f8.prototype,`autoClose`,void 0),q([D({attribute:`type`})],f8.prototype,`type`,void 0),f8.compose({baseName:`snackbar`,styles:l8,template:cLe,shadowOptions:d8});let p8=(e,t)=>O` ${X1()} .fa-stack{display: inline-block;text-align: center;line-height: 2em;height: 2em;position: relative;width: 2em}.fa-stack-1x, .fa-stack-2x{left: 50%;position: absolute;transform: translateX(-50%)}.fa-stack-2x{font-size: 2em}.fa-stack-1x{z-index: 1}`,m8=T`<span class=${e=>`fa-stack fa-${e.size}`}style=${e=>`vertical-align: ${e[`vertical-align`]};`}><slot></slot></span>`;var h8=class extends P{constructor(){super(...arguments),this.size=`1x`,this[`vertical-align`]=`baseline`}};q([D],h8.prototype,`size`,void 0),q([D],h8.prototype,`vertical-align`,void 0),h8.compose({baseName:`stacking-icons`,template:m8,styles:p8});let g8=O` .status-pill{font-size: var(--ag-data-font-size);display: inline-flex;align-items: center;gap: 5px;border-radius: 30px;height: 16px;background: grey;color: var(--neutral-foreground-rest);padding: 2px 8px;line-height: 1;font-weight: 500}.status-pill.lg{height: 32px;border-radius: 16px;padding: 2px 12px}.status-pill-initial{height: 14px;width: 14px;border-radius: 7px;font-weight: bold;font-size: 12px;display: flex;justify-content: center;align-items: center}.status-pill-image{height: 14px}`,lLe=e=>T` ${A(e=>e.isCountdownVisible&&!(e.hideWhenCountdownCompleted&&e.isCountdownExpired),T`<div data-test-id="status-pill" part="status-pill" class="status-pill" style="color:${e=>e.textColor||``}; background:${e=>e.backgroundColor||``};">${A(e=>e.iconName,T`<${e}-icon name="${e=>e.iconName}" size="${e=>e.iconSize}"></${e}-icon>`)} ${A(e=>e.iconSrc,T`<img alt="${e=>e.iconSrc}" class="status-pill-image" src="${e=>e.iconSrc}" />`)} ${A(e=>e.iconInitial,T`<div data-test-id="status-pill-initial" class="status-pill-initial" style="color:${e=>e.textColor}; background-color:${e=>e.iconInitialBackgroundColor}">${e=>e.iconInitial.substring(0,1)}</div>`)}<span data-test-id="status-pill-text">${e=>e.text}</span>${A(e=>e.countdown,T`<span data-test-id="status-pill-countdown">${e=>e.countdown}</span>`)}</div>`)} `,_8=T` ${e=>lLe(yb(e))} `,v8=1e3,y8=86400,b8=3600,uLe=(e,t=`second`)=>{let n=e/v8,r=Math.floor(n/y8);n%=y8;let i=Math.floor(n/b8);n%=b8;let a=Math.floor(n/60),o=Math.floor(n%60),s=[];switch(r&&s.push(`${r}d`),t){case`minute`:i&&s.push(`${i}h`),a&&s.push(`${a}m`),!a&&o&&s.push(`< 1m`);break;case`hour`:i&&s.push(`${i}h`),!i&&(a||o)&&s.push(`< 1h`);break;default:i&&s.push(`${i}h`),a&&s.push(`${a}m`),o&&s.push(`${o}s`)}return s.length?s.join(` `):`0s`};var x8=class extends P{constructor(){super(...arguments),this.iconSize=`sm`,this.dateCountdownCompletedMessage=`Expired`,this.dateCountdownUnit=`second`,this.hideWhenCountdownCompleted=!1,this.isCountdownExpired=!1,this.isCountdownVisible=!0}dateCountdownChanged(e,t){if(e!==t){if(!t){this.clearCountdownTimer();return}this.isCountdownExpired=!1,this.setUpDateCountdown(t)}}dateCountdownVisibleAfterChanged(e,t){e!==t&&this.updateVisibilityFromStartTime()}connectedCallback(){this.updateVisibilityFromStartTime(),super.connectedCallback()}disconnectedCallback(){this.clearCountdownTimer(),super.disconnectedCallback()}setUpDateCountdown(e){if(this.clearCountdownTimer(),isNaN(parseInt(e)))hb.warn(`invalid date-countdown value passed. Must be a number`);else{e=parseInt(e);let t=new Date(e);this.updateCountdown(t),this.dateInterval=setInterval(()=>this.updateCountdown(t),v8)}}updateCountdown(e){let t=(/* @__PURE__ */ new Date()).getTime(),n=Math.floor(e.getTime()-t),r=this.dateCountdownVisibleAfter!==void 0&&this.dateCountdownVisibleAfter!==null?Number(this.dateCountdownVisibleAfter):void 0;if(r!==void 0&&!isNaN(r)&&t<r){this.isCountdownVisible=!1,this.countdown=null,this.isCountdownExpired=!1;return}this.isCountdownVisible=!0,n<=0?this.hideWhenCountdownCompleted?(this.isCountdownExpired=!0,this.clearCountdownTimer()):(this.countdown=this.dateCountdownCompletedMessage,clearInterval(this.dateInterval)):this.countdown=uLe(n,this.dateCountdownUnit)}updateVisibilityFromStartTime(){let e=this.dateCountdownVisibleAfter!==void 0&&this.dateCountdownVisibleAfter!==null?Number(this.dateCountdownVisibleAfter):void 0;if(e!==void 0&&!isNaN(e)){let t=Date.now();this.isCountdownVisible=t>=e}else this.isCountdownVisible=!0}clearCountdownTimer(){this.dateInterval&&(clearInterval(this.dateInterval),this.dateInterval=null),this.countdown=null}};q([D({attribute:`background-color`})],x8.prototype,`backgroundColor`,void 0),q([D({attribute:`icon-name`})],x8.prototype,`iconName`,void 0),q([D({attribute:`icon-src`})],x8.prototype,`iconSrc`,void 0),q([D({attribute:`icon-initial`})],x8.prototype,`iconInitial`,void 0),q([D({attribute:`icon-initial-background-color`})],x8.prototype,`iconInitialBackgroundColor`,void 0),q([D({attribute:`icon-size`})],x8.prototype,`iconSize`,void 0),q([D({attribute:`text-color`})],x8.prototype,`textColor`,void 0),q([D],x8.prototype,`text`,void 0),q([D({attribute:`date-countdown`})],x8.prototype,`dateCountdown`,void 0),q([D({attribute:`date-countdown-completed-message`})],x8.prototype,`dateCountdownCompletedMessage`,void 0),q([D({attribute:`date-countdown-unit`})],x8.prototype,`dateCountdownUnit`,void 0),q([D({attribute:`date-countdown-visible-after`})],x8.prototype,`dateCountdownVisibleAfter`,void 0),q([D({mode:`boolean`,attribute:`hide-when-countdown-completed`})],x8.prototype,`hideWhenCountdownCompleted`,void 0),q([C],x8.prototype,`countdown`,void 0),q([C],x8.prototype,`isCountdownExpired`,void 0),q([C],x8.prototype,`isCountdownVisible`,void 0),x8.compose({baseName:`status-pill`,styles:g8,template:_8});let S8=(e,t)=>{let n=[`step`,`step-${t}`];return e.selected&&n.push(`step-selected`),e.completed&&n.push(`step-completed`),e.error&&n.push(`step-error`),n.join(` `)},dLe=[`positioning-region: step-positioning-region`,`content-region: step-content-region`,`expand-collapse-button: step-expand-collapse-button`,`items: step-items`].join(`, `),C8=e=>T` ${lf(e=>e.orientation===Fa.vertical,T`<${e}-tree-item ${k(`treeItem`)}class=${e=>fn(`tree-item`,[`cursor-pointer`,e.showCursorPointer])}part="${e=>S8(e,`vertical`)}" exportparts="${dLe}" @click="${(e,t)=>e.$emit(`tab-clicked`,e.tabPosition-1)}">${A(e=>e.completed,T`<${e}-icon name="check-circle" variant="regular" size="lg" class="stepper-icon completed-icon" part="step-icon step-icon-completed"></${e}-icon>`)} ${A(e=>e.error,T`<${e}-icon name="times-circle" variant="regular" size="lg" class="stepper-icon error-icon" part="step-icon step-icon-error"></${e}-icon>`)}<slot></slot></${e}-tree-item>`,T`<div class=${e=>fn(`step-container`,[`selected`,e.selected])}part="${e=>S8(e,`horizontal`)}"><div class=${e=>fn(`step-number-container`,[`cursor-pointer`,e.showCursorPointer])}part="step-number-container" @click="${e=>e.$emit(`tab-clicked`,e.tabPosition-1)}">${A(e=>!e.hideStepNumber,T`<span class="step-number" part="step-number">${e=>e.tabPosition}</span>`)}<slot class="step-title"></slot></div>${A(e=>!e.isLast,T`<${e}-icon class="stepper-icon angle-icon" part="step-icon step-icon-angle" name="angle-right" variant="solid" size="lg"></${e}-icon>`)}</div>`)} `,fLe=T` ${e=>C8(yb(e))} `,w8=(e,t)=>O` .tree-item{cursor: default}.tree-item::part(content-region){margin-inline-start: 0}.tree-item[selected]::part(positioning-region):hover{background: var(--neutral-fill-rest)}.tree-item::part(positioning-region):hover{background: var(--neutral-fill-stealth-rest)}.stepper-icon{margin-right: 5px}.completed-icon{color: #69cd70}.error-icon{color: #f14376}.step-number{display: flex;justify-content: center;align-items: center;margin: 0 5px 0 0;width: 24px;height: 24px;font-size: var(--type-ramp-minus-1-font-size);font-weight: 500;color: var(--focus-stroke-outer);background-color: var(--neutral-fill-input-rest);border-radius: 50%;border: calc(var(--stroke-width) * 1px) solid var(--neutral-fill-input-rest)}.step-number-container{display: flex;flex-direction: row;align-items: center;justify-content: center;width: 75%}.angle-icon{color: var(--neutral-fill-input-rest);margin: 0 calc(var(--design-unit) * 4px)}.step-title{font-size: var(--type-ramp-base-font-size);color: var(--focus-stroke-outer);font-weight: 600}:host([completed]) .step-number{border-color: #69cd70;color: white;background-color: #69cd70}:host([completed]) .step-title{color: #69cd70}:host([error]) .step-number{border-color: #f14376;color: white;background-color: #f14376}:host([error]) .step-title{color: #f14376}:host([orientation='horizontal']){flex: 1 1 0;height: 100%}.cursor-pointer{cursor: pointer}.step-container{position: relative;display: flex;align-items: center;justify-content: space-between;height: 100%}.step-container.selected::after{content: '';position: absolute;bottom: 0;left: calc(var(--design-unit) * -3px);/* This matches the left padding */ right: 28px;/* This matches the icon width + right margin */ height: 2px;width: calc(100% - 28px);background-color: var(--accent-fill-rest);/* Choose a color */}`;var T8=class extends P{constructor(){super(...arguments),this.slot=`tab`,this.orientation=Fa.vertical}isCompleted(){return this.completed}selectedChanged(){this.treeItem&&(this.treeItem.selected=this.selected)}disconnectedCallback(){super.disconnectedCallback(),this.completed=void 0,this.error=void 0,this.selected=void 0}};q([D],T8.prototype,`slot`,void 0),q([D({mode:`boolean`})],T8.prototype,`selected`,void 0),q([D({mode:`boolean`})],T8.prototype,`completed`,void 0),q([D({mode:`boolean`})],T8.prototype,`error`,void 0),q([D({mode:`boolean`})],T8.prototype,`isLast`,void 0),q([D({mode:`boolean`})],T8.prototype,`hideStepNumber`,void 0),q([D({mode:`boolean`})],T8.prototype,`showCursorPointer`,void 0),q([D({attribute:`tab-position`})],T8.prototype,`tabPosition`,void 0),q([D],T8.prototype,`orientation`,void 0);let E8={};T8.compose(Object.assign({baseName:`stepper-tab`,template:fLe,styles:w8,shadowOptions:void 0},E8));let D8=()=>T`<template slot="tab-panel" role="stepper-tab-panel"><slot></slot></template>`;var O8=class extends P{};let k8={};O8.compose(Object.assign({baseName:`stepper-tab-panel`,template:D8,shadowOptions:void 0},k8));let A8=(e,t)=>Oa(e,t),j8=(e,t)=>O` ${ku(e,t)} .checked-indicator{transform: scale(1.3);border-radius: calc(var(--control-corner-radius) * 2px)}.switch{border-radius: calc(var(--control-corner-radius) * 3px)}`;var M8=class extends ka{};M8.compose(Object.assign({baseName:`switch`,template:A8,styles:j8,shadowOptions:void 0},{switch:`<div class="checked-indicator" part="checked-indicator"></div>`}));let N8=(e,t)=>Ma(e,t),P8=(e,t)=>O` ${ju(e,t)} :host{user-select: none}`;var F8=class extends Na{constructor(){super(...arguments),this.alert=!1}alertChanged(){this.alert&&vPe()}};q([D({mode:`boolean`})],F8.prototype,`alert`,void 0);let I8={};F8.compose(Object.assign({baseName:`tab`,template:N8,styles:P8,shadowOptions:void 0},I8));let L8=(e,t)=>Aa(e,t),R8=(e,t)=>O` ${Mu(e,t)} :host{height: 100%;padding: 0}`;var z8=class extends ja{};let B8={};z8.compose(Object.assign({baseName:`tab-panel`,template:L8,styles:R8,shadowOptions:void 0},B8));let V8=(e,t)=>Pa(e,t),H8=(e,t)=>O` ${Au(e,t)} :host{height: 100%;width: 100%}:host([scrollable]) [part='tablist']{overflow: auto hidden;white-space: nowrap}:host([scrollable]) ::slotted([role='tab']){flex: 0 0 auto}`;var U8=class extends Ia{constructor(){super(...arguments),this.scrollable=!1}get currentTabIndex(){return this.activeTabIndex}};q([D({mode:`boolean`})],U8.prototype,`scrollable`,void 0);let W8={};U8.compose(Object.assign({baseName:`tabs`,template:V8,styles:H8,shadowOptions:void 0},W8));let G8=(e,t)=>za(e,t),K8=(e,t)=>O` ${Nu(e,t)} :host .control{padding: calc(var(--design-unit) * 3px)}`;var q8=class extends Pu{};let J8={};q8.compose(Object.assign({baseName:`text-area`,template:G8,styles:K8,shadowOptions:void 0},J8));let Y8=(e,t)=>T`<template class="${e=>fn([`readonly`,e.readOnly],[`has-prefix`,!!e.prefix],[`has-suffix`,!!e.suffix])}"><label part="label" for="${e=>e.id?e.id:`control`}" class="${e=>e.defaultSlottedNodes&&e.defaultSlottedNodes.length?`label`:`label label-hidden`}"><slot ${bt({property:`defaultSlottedNodes`,filter:ha})}></slot></label><div class="root" part="root">${wt(e,t)}<div class="control-field">${A(e=>e.prefix,T`<span class="prefix" part="prefix" id="${e=>`${e.id||`control`}-prefix`}" ?aria-hidden="${e=>e.hideAffixFromScreenReader}">${e=>e.prefix}</span>`)}<input name="${e=>e.name}" autocomplete="${e=>e.autocomplete}" autocapitalize="${e=>e.autocapitalize}" id="${e=>e.id?e.id:`control`}" class="control" part="control" @input="${e=>e.handleTextInput()}" @change="${e=>e.handleChange()}" step="${e=>e.step}" ?autofocus="${e=>e.autofocus}" ?disabled="${e=>e.disabled}" list="${e=>e.list}" maxlength="${e=>e.maxlength}" minlength="${e=>e.minlength}" pattern="${e=>e.pattern}" placeholder="${e=>e.placeholder}" ?readonly="${e=>e.readOnly}" ?required="${e=>e.required}" size="${e=>e.size}" ?spellcheck="${e=>e.spellcheck}" :value="${e=>e.value}" type="${e=>e.type}" aria-atomic="${e=>e.ariaAtomic}" aria-busy="${e=>e.ariaBusy}" aria-controls="${e=>e.ariaControls}" aria-current="${e=>e.ariaCurrent}" aria-describedby="${e=>e.controlAriaDescribedby}" aria-details="${e=>e.ariaDetails}" aria-disabled="${e=>e.ariaDisabled}" aria-errormessage="${e=>e.ariaErrormessage}" aria-flowto="${e=>e.ariaFlowto}" aria-haspopup="${e=>e.ariaHaspopup}" aria-hidden="${e=>e.ariaHidden}" aria-invalid="${e=>e.ariaInvalid}" aria-keyshortcuts="${e=>e.ariaKeyshortcuts}" aria-label="${e=>e.ariaLabel}" aria-labelledby="${e=>e.ariaLabelledby}" aria-live="${e=>e.ariaLive}" aria-owns="${e=>e.ariaOwns}" aria-relevant="${e=>e.ariaRelevant}" aria-roledescription="${e=>e.ariaRoledescription}" ${k(`control`)}/>${A(e=>e.suffix,T`<span class="suffix" part="suffix" id="${e=>`${e.id||`control`}-suffix`}" ?aria-hidden="${e=>e.hideAffixFromScreenReader}">${e=>e.suffix}</span>`)}</div>${Ct(e,t)}</div></template>`,X8=(e,t)=>O` ${Fu(e,t)} /* Override FAST .root align-items: baseline for this flex child so it still fills the row. */ ${X0} input{color-scheme: ${Ah}}`;var Z8=class extends G0(Iu){constructor(){super(...arguments),this.autocomplete=`off`,this.autocapitalize=`off`}autocompleteChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autocomplete=this.autocomplete)}autocapitalizeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autocapitalize=this.autocapitalize)}};q([D],Z8.prototype,`autocomplete`,void 0),q([D],Z8.prototype,`autocapitalize`,void 0),q([D],Z8.prototype,`step`,void 0);let Q8={mode:`open`,delegatesFocus:!0},$8={};Z8.compose(Object.assign({baseName:`text-field`,template:Y8,styles:X8,shadowOptions:Q8},$8));let e5=O` @keyframes append-animate{from{transform: translateX(100%);opacity: 0%}to{transform: translateX(0%);opacity: 100%}}@keyframes delete-animate{from{transform: translateX(0%);opacity: 100%}to{transform: translateX(100%);opacity: 0%}}:host{--toast-min-width: 356px;--toast-min-height: 128px;--toast-max-width: 356px;--toast-max-height: 272px}.toast{animation: append-animate 0.3s linear;max-width: var(--toast-max-width);min-width: var(--toast-min-width);background-color: var(--fill-color);border-radius: calc(var(--control-corner-radius) * 1px);border-width: thin;border-color: var(--neutral-stroke-rest);box-shadow: 0 2px 15px 0 rgb(0 0 0 / 35%);display: flex;position: relative;flex-direction: row;padding: 8px 8px 8px 15px;margin: 5px}.toast-delete{animation: delete-animate 0.3s linear;opacity: 0%}.toast::after{content: '';position: absolute;top: 50%;transform: translateY(-50%);left: 5px;height: calc(100% - 10px);width: 4px;border-radius: 2px;background-color: red}.content-wrapper{height: fit-content;width: 100%;display: flex;flex-direction: column;justify-content: space-between;align-items: stretch}.bottom{width: 70%}.top{width: 100%;display: flex;flex-direction: row;justify-content: space-between;align-items: center}.content{width: 85%;font-size: 12px;overflow-wrap: break-word}::slotted(*){white-space: pre-line}.date{color: var(--neutral-foreground-hint);font-size: 12px;margin: 0 0 5px}.notification-icon{margin-right: 6px}.close-icon{cursor: pointer;margin-left: auto;color: #879ba6}`,pLe=(e=`rapid`)=>T`<${e}-icon class="close-icon" size="lg" name="xmark"></prefix-icon>`,mLe=(e=`rapid`)=>T`<div role="alert" part="root" aria-live="polite" class="toast ${e=>e.deleteAnimation}" ${k(`toast`)}><div class="content-wrapper"><div part="top" class="top">${A(e=>e.notificationIcon,T`<${e}-icon class="notification-icon" name="${e=>e.notificationIcon}" size="lg"></prefix-icon>`)}<slot name="top"></slot><div class="close-icon" @click=${e=>e.close()}>${pLe(e)}</div></div><div part="content" class="content"><slot name="content"></slot></div><div part="date" class="date"><slot name="date"></slot></div><div part="bottom" class="bottom"><slot name="bottom"></slot></div></div></div>`,t5=T` ${e=>mLe(yb(e))} `,n5={mode:`open`,delegatesFocus:!0},r5={};var i5=class extends P{constructor(){super(...arguments),this.deleteAnimation=``,this.closeTimeout=1e4,this.autoClose=!1,this.closeTimer=null}connectedCallback(){super.connectedCallback(),this.autoClose&&(this.closeTimer=setTimeout(()=>{this.deleteAnimation=`toast-delete`,this.toast.onanimationend=()=>{this.remove()}},this.closeTimeout))}disconnectedCallback(){super.disconnectedCallback(),clearTimeout(this.closeTimer),this.closeTimer=null}close(){this.remove()}};q([C],i5.prototype,`deleteAnimation`,void 0),q([D({attribute:`close-timeout`})],i5.prototype,`closeTimeout`,void 0),q([D({attribute:`auto-close`})],i5.prototype,`autoClose`,void 0),q([D({attribute:`notification-icon`})],i5.prototype,`notificationIcon`,void 0),i5.compose(Object.assign({baseName:`toast`,styles:e5,template:t5,shadowOptions:n5},r5));let a5=(e,t)=>Ba(e,t),o5=(e,t)=>O` ${Lu(e,t)}`;var s5=class extends Ru{};let c5={};s5.compose(Object.assign({baseName:`toolbar`,template:a5,styles:o5,shadowOptions:void 0},c5));let l5=(e,t)=>Wa(e,t),u5=(e,t)=>O` ${zu(e,t)}`;var d5=class extends Ka{};let f5={};d5.compose(Object.assign({baseName:`tooltip`,template:l5,styles:u5,shadowOptions:void 0},f5));let p5=(e,t)=>qa(e,t),m5=(e,t)=>O` ${Vu(e,t)} :host{--focus-stroke-width: 0;--tree-item-nested-width: 1em}:host([selected])::after{height: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) * 1px);width: 5px;top: 0;border-radius: 0}.positioning-region{height: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) * 1px)}`;var h5=class extends Ya{};h5.compose(Object.assign({baseName:`tree-item`,template:p5,styles:m5,shadowOptions:void 0},{expandCollapseGlyph:`
993
+ `};e8.compose(Object.assign({baseName:`slider`,template:Q6,styles:$6,shadowOptions:void 0},t8));let n8=(e,t)=>Ca(e,t),r8=(e,t)=>O` ${Eu(e,t)}`;var i8=class extends Du{};let a8={};i8.compose(Object.assign({baseName:`slider-label`,template:n8,styles:r8,shadowOptions:void 0},a8));let o8=`default`,s8=1e4,c8={DISMISS:`dismiss`,AUTO_DISMISS:`autoDismiss`},l8=O` @keyframes append-from-left-animate{from{transform: translateX(100%);opacity: 0%}to{transform: translateX(0%);opacity: 100%}}@keyframes delete-from-left-animate{from{transform: translateX(0%);opacity: 100%}to{transform: translateX(100%);opacity: 0%}}@keyframes append-from-top-animate{from{transform: translateY(-100%);opacity: 0%}to{transform: translateY(0%);opacity: 100%}}@keyframes delete-from-top-animate{from{transform: translateY(0%);opacity: 100%}to{transform: translateY(-100%);opacity: 0%}}@keyframes delete-fade-animate{from{opacity: 100%}to{opacity: 0%}}:host{--snackbar-min-width: 356px;--snackbar-min-height: 55px;--snackbar-max-width: 496px;--snackbar-max-height: auto;--snackbar-animation-name: append-from-left-animate;--snackbar-animation-delete-name: delete-from-left-animate}.snackbar{animation: var(--snackbar-animation-name) 0.3s linear;max-width: var(--snackbar-max-width);min-width: var(--snackbar-min-width);min-height: var(--snackbar-min-height);max-height: var(--snackbar-max-height);background-color: var(--fill-color);border-radius: calc(var(--control-corner-radius) * 1px);border-width: thin;border-color: var(--neutral-fill-rest);box-shadow: 0 2px 5px 0 rgb(0 0 0 / 35%);box-sizing: border-box;display: flex;position: relative;bottom: 5px;flex-direction: row;padding: 2px 16px}.snackbar-delete{animation: var(--snackbar-animation-delete-name) 0.3s linear;opacity: 0%}.snackbar::after{content: '';position: absolute;top: 50%;transform: translateY(-50%);left: 0;height: calc(100% - 2px);width: 2px;border-radius: 2px}.content{display: flex;align-items: center;flex: 2;font-size: 12px;overflow: hidden;overflow-wrap: anywhere;white-space: pre-line}.action{display: flex;flex-direction: row-reverse;align-items: center;gap: 10px;flex: 1;overflow: hidden}`,u8=e=>T`<div role="alert" aria-live="polite" part="snackbar" class="snackbar ${e=>e.deleteAnimation}" ${k(`snackbar`)}><div part="content" class="content"><slot name="content">${e=>e.error?.errorDetails||e.notification?.body||`Place holder for error message`}</slot></div>${A(e=>e.error?.config?.snackbar?.confirmingActions?.length||e.notification?.config?.snackbar?.confirmingActions?.length,T`<div part="action" class="action"><slot name="action">${j(e=>e.error?.config?.snackbar?.confirmingActions||e.notification?.config?.snackbar?.confirmingActions,T`<${e}-button slot="action" appearance="lightweight" @click=${(e,t)=>{var n;e?.action(),(n=t.parent)==null||n.dismiss()}}>${e=>e.label}</${e}-button>`)}</slot></div>`)}</div>`,uLe=T` ${e=>u8(yb(e))} `,d8={mode:`open`,delegatesFocus:!0};var f8=class extends P{constructor(){super(...arguments),this.deleteAnimation=``,this.closeTimeout=s8,this.autoClose=!0,this.type=o8,this.dismissEventListener=this.handleDissmis.bind(this)}autoCloseChanged(){this.autoClose&&(this.timeoutRef=setTimeout(()=>{this.handleDissmis(!0)},this.closeTimeout)),!this.autoClose&&this.timeoutRef&&clearTimeout(this.timeoutRef)}connectedCallback(){super.connectedCallback(),this.addEventListener(c8.DISMISS,this.dismissEventListener)}errorChanged(e,t){this.type=t?.config?.snackbar?.type??o8}notificationChanged(e,t){this.type=t?.config?.snackbar?.type??o8,this.autoClose=t?.config?.snackbar?.autoClose??!0,this.closeTimeout=t?.config?.snackbar?.closeTimeout??s8}handleDissmis(e=!1){this.deleteAnimation=`snackbar-delete`,this.snackbar.onanimationend=()=>{this.dismiss(),e&&this.dispatchEvent(new CustomEvent(c8.AUTO_DISMISS,{bubbles:!0,composed:!0,detail:this.identifier}))}}dismiss(){this.remove(),this.timeoutRef&&clearTimeout(this.timeoutRef)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(c8.DISMISS,this.dismissEventListener),this.timeoutRef&&clearTimeout(this.timeoutRef)}};q([C],f8.prototype,`error`,void 0),q([C],f8.prototype,`notification`,void 0),q([C],f8.prototype,`deleteAnimation`,void 0),q([D({attribute:`identifier`})],f8.prototype,`identifier`,void 0),q([D({attribute:`close-timeout`})],f8.prototype,`closeTimeout`,void 0),q([D({attribute:`auto-close`,mode:`boolean`})],f8.prototype,`autoClose`,void 0),q([D({attribute:`type`})],f8.prototype,`type`,void 0),f8.compose({baseName:`snackbar`,styles:l8,template:uLe,shadowOptions:d8});let p8=(e,t)=>O` ${X1()} .fa-stack{display: inline-block;text-align: center;line-height: 2em;height: 2em;position: relative;width: 2em}.fa-stack-1x, .fa-stack-2x{left: 50%;position: absolute;transform: translateX(-50%)}.fa-stack-2x{font-size: 2em}.fa-stack-1x{z-index: 1}`,m8=T`<span class=${e=>`fa-stack fa-${e.size}`}style=${e=>`vertical-align: ${e[`vertical-align`]};`}><slot></slot></span>`;var h8=class extends P{constructor(){super(...arguments),this.size=`1x`,this[`vertical-align`]=`baseline`}};q([D],h8.prototype,`size`,void 0),q([D],h8.prototype,`vertical-align`,void 0),h8.compose({baseName:`stacking-icons`,template:m8,styles:p8});let g8=O` .status-pill{font-size: var(--ag-data-font-size);display: inline-flex;align-items: center;gap: 5px;border-radius: 30px;height: 16px;background: grey;color: var(--neutral-foreground-rest);padding: 2px 8px;line-height: 1;font-weight: 500}.status-pill.lg{height: 32px;border-radius: 16px;padding: 2px 12px}.status-pill-initial{height: 14px;width: 14px;border-radius: 7px;font-weight: bold;font-size: 12px;display: flex;justify-content: center;align-items: center}.status-pill-image{height: 14px}`,dLe=e=>T` ${A(e=>e.isCountdownVisible&&!(e.hideWhenCountdownCompleted&&e.isCountdownExpired),T`<div data-test-id="status-pill" part="status-pill" class="status-pill" style="color:${e=>e.textColor||``}; background:${e=>e.backgroundColor||``};">${A(e=>e.iconName,T`<${e}-icon name="${e=>e.iconName}" size="${e=>e.iconSize}"></${e}-icon>`)} ${A(e=>e.iconSrc,T`<img alt="${e=>e.iconSrc}" class="status-pill-image" src="${e=>e.iconSrc}" />`)} ${A(e=>e.iconInitial,T`<div data-test-id="status-pill-initial" class="status-pill-initial" style="color:${e=>e.textColor}; background-color:${e=>e.iconInitialBackgroundColor}">${e=>e.iconInitial.substring(0,1)}</div>`)}<span data-test-id="status-pill-text">${e=>e.text}</span>${A(e=>e.countdown,T`<span data-test-id="status-pill-countdown">${e=>e.countdown}</span>`)}</div>`)} `,_8=T` ${e=>dLe(yb(e))} `,v8=1e3,y8=86400,b8=3600,fLe=(e,t=`second`)=>{let n=e/v8,r=Math.floor(n/y8);n%=y8;let i=Math.floor(n/b8);n%=b8;let a=Math.floor(n/60),o=Math.floor(n%60),s=[];switch(r&&s.push(`${r}d`),t){case`minute`:i&&s.push(`${i}h`),a&&s.push(`${a}m`),!a&&o&&s.push(`< 1m`);break;case`hour`:i&&s.push(`${i}h`),!i&&(a||o)&&s.push(`< 1h`);break;default:i&&s.push(`${i}h`),a&&s.push(`${a}m`),o&&s.push(`${o}s`)}return s.length?s.join(` `):`0s`};var x8=class extends P{constructor(){super(...arguments),this.iconSize=`sm`,this.dateCountdownCompletedMessage=`Expired`,this.dateCountdownUnit=`second`,this.hideWhenCountdownCompleted=!1,this.isCountdownExpired=!1,this.isCountdownVisible=!0}dateCountdownChanged(e,t){if(e!==t){if(!t){this.clearCountdownTimer();return}this.isCountdownExpired=!1,this.setUpDateCountdown(t)}}dateCountdownVisibleAfterChanged(e,t){e!==t&&this.updateVisibilityFromStartTime()}connectedCallback(){this.updateVisibilityFromStartTime(),super.connectedCallback()}disconnectedCallback(){this.clearCountdownTimer(),super.disconnectedCallback()}setUpDateCountdown(e){if(this.clearCountdownTimer(),isNaN(parseInt(e)))hb.warn(`invalid date-countdown value passed. Must be a number`);else{e=parseInt(e);let t=new Date(e);this.updateCountdown(t),this.dateInterval=setInterval(()=>this.updateCountdown(t),v8)}}updateCountdown(e){let t=(/* @__PURE__ */ new Date()).getTime(),n=Math.floor(e.getTime()-t),r=this.dateCountdownVisibleAfter!==void 0&&this.dateCountdownVisibleAfter!==null?Number(this.dateCountdownVisibleAfter):void 0;if(r!==void 0&&!isNaN(r)&&t<r){this.isCountdownVisible=!1,this.countdown=null,this.isCountdownExpired=!1;return}this.isCountdownVisible=!0,n<=0?this.hideWhenCountdownCompleted?(this.isCountdownExpired=!0,this.clearCountdownTimer()):(this.countdown=this.dateCountdownCompletedMessage,clearInterval(this.dateInterval)):this.countdown=fLe(n,this.dateCountdownUnit)}updateVisibilityFromStartTime(){let e=this.dateCountdownVisibleAfter!==void 0&&this.dateCountdownVisibleAfter!==null?Number(this.dateCountdownVisibleAfter):void 0;if(e!==void 0&&!isNaN(e)){let t=Date.now();this.isCountdownVisible=t>=e}else this.isCountdownVisible=!0}clearCountdownTimer(){this.dateInterval&&(clearInterval(this.dateInterval),this.dateInterval=null),this.countdown=null}};q([D({attribute:`background-color`})],x8.prototype,`backgroundColor`,void 0),q([D({attribute:`icon-name`})],x8.prototype,`iconName`,void 0),q([D({attribute:`icon-src`})],x8.prototype,`iconSrc`,void 0),q([D({attribute:`icon-initial`})],x8.prototype,`iconInitial`,void 0),q([D({attribute:`icon-initial-background-color`})],x8.prototype,`iconInitialBackgroundColor`,void 0),q([D({attribute:`icon-size`})],x8.prototype,`iconSize`,void 0),q([D({attribute:`text-color`})],x8.prototype,`textColor`,void 0),q([D],x8.prototype,`text`,void 0),q([D({attribute:`date-countdown`})],x8.prototype,`dateCountdown`,void 0),q([D({attribute:`date-countdown-completed-message`})],x8.prototype,`dateCountdownCompletedMessage`,void 0),q([D({attribute:`date-countdown-unit`})],x8.prototype,`dateCountdownUnit`,void 0),q([D({attribute:`date-countdown-visible-after`})],x8.prototype,`dateCountdownVisibleAfter`,void 0),q([D({mode:`boolean`,attribute:`hide-when-countdown-completed`})],x8.prototype,`hideWhenCountdownCompleted`,void 0),q([C],x8.prototype,`countdown`,void 0),q([C],x8.prototype,`isCountdownExpired`,void 0),q([C],x8.prototype,`isCountdownVisible`,void 0),x8.compose({baseName:`status-pill`,styles:g8,template:_8});let S8=(e,t)=>{let n=[`step`,`step-${t}`];return e.selected&&n.push(`step-selected`),e.completed&&n.push(`step-completed`),e.error&&n.push(`step-error`),n.join(` `)},pLe=[`positioning-region: step-positioning-region`,`content-region: step-content-region`,`expand-collapse-button: step-expand-collapse-button`,`items: step-items`].join(`, `),C8=e=>T` ${lf(e=>e.orientation===Fa.vertical,T`<${e}-tree-item ${k(`treeItem`)}class=${e=>fn(`tree-item`,[`cursor-pointer`,e.showCursorPointer])}part="${e=>S8(e,`vertical`)}" exportparts="${pLe}" @click="${(e,t)=>e.$emit(`tab-clicked`,e.tabPosition-1)}">${A(e=>e.completed,T`<${e}-icon name="check-circle" variant="regular" size="lg" class="stepper-icon completed-icon" part="step-icon step-icon-completed"></${e}-icon>`)} ${A(e=>e.error,T`<${e}-icon name="times-circle" variant="regular" size="lg" class="stepper-icon error-icon" part="step-icon step-icon-error"></${e}-icon>`)}<slot></slot></${e}-tree-item>`,T`<div class=${e=>fn(`step-container`,[`selected`,e.selected])}part="${e=>S8(e,`horizontal`)}"><div class=${e=>fn(`step-number-container`,[`cursor-pointer`,e.showCursorPointer])}part="step-number-container" @click="${e=>e.$emit(`tab-clicked`,e.tabPosition-1)}">${A(e=>!e.hideStepNumber,T`<span class="step-number" part="step-number">${e=>e.tabPosition}</span>`)}<slot class="step-title"></slot></div>${A(e=>!e.isLast,T`<${e}-icon class="stepper-icon angle-icon" part="step-icon step-icon-angle" name="angle-right" variant="solid" size="lg"></${e}-icon>`)}</div>`)} `,mLe=T` ${e=>C8(yb(e))} `,w8=(e,t)=>O` .tree-item{cursor: default}.tree-item::part(content-region){margin-inline-start: 0}.tree-item[selected]::part(positioning-region):hover{background: var(--neutral-fill-rest)}.tree-item::part(positioning-region):hover{background: var(--neutral-fill-stealth-rest)}.stepper-icon{margin-right: 5px}.completed-icon{color: #69cd70}.error-icon{color: #f14376}.step-number{display: flex;justify-content: center;align-items: center;margin: 0 5px 0 0;width: 24px;height: 24px;font-size: var(--type-ramp-minus-1-font-size);font-weight: 500;color: var(--focus-stroke-outer);background-color: var(--neutral-fill-input-rest);border-radius: 50%;border: calc(var(--stroke-width) * 1px) solid var(--neutral-fill-input-rest)}.step-number-container{display: flex;flex-direction: row;align-items: center;justify-content: center;width: 75%}.angle-icon{color: var(--neutral-fill-input-rest);margin: 0 calc(var(--design-unit) * 4px)}.step-title{font-size: var(--type-ramp-base-font-size);color: var(--focus-stroke-outer);font-weight: 600}:host([completed]) .step-number{border-color: #69cd70;color: white;background-color: #69cd70}:host([completed]) .step-title{color: #69cd70}:host([error]) .step-number{border-color: #f14376;color: white;background-color: #f14376}:host([error]) .step-title{color: #f14376}:host([orientation='horizontal']){flex: 1 1 0;height: 100%}.cursor-pointer{cursor: pointer}.step-container{position: relative;display: flex;align-items: center;justify-content: space-between;height: 100%}.step-container.selected::after{content: '';position: absolute;bottom: 0;left: calc(var(--design-unit) * -3px);/* This matches the left padding */ right: 28px;/* This matches the icon width + right margin */ height: 2px;width: calc(100% - 28px);background-color: var(--accent-fill-rest);/* Choose a color */}`;var T8=class extends P{constructor(){super(...arguments),this.slot=`tab`,this.orientation=Fa.vertical}isCompleted(){return this.completed}selectedChanged(){this.treeItem&&(this.treeItem.selected=this.selected)}disconnectedCallback(){super.disconnectedCallback(),this.completed=void 0,this.error=void 0,this.selected=void 0}};q([D],T8.prototype,`slot`,void 0),q([D({mode:`boolean`})],T8.prototype,`selected`,void 0),q([D({mode:`boolean`})],T8.prototype,`completed`,void 0),q([D({mode:`boolean`})],T8.prototype,`error`,void 0),q([D({mode:`boolean`})],T8.prototype,`isLast`,void 0),q([D({mode:`boolean`})],T8.prototype,`hideStepNumber`,void 0),q([D({mode:`boolean`})],T8.prototype,`showCursorPointer`,void 0),q([D({attribute:`tab-position`})],T8.prototype,`tabPosition`,void 0),q([D],T8.prototype,`orientation`,void 0);let E8={};T8.compose(Object.assign({baseName:`stepper-tab`,template:mLe,styles:w8,shadowOptions:void 0},E8));let D8=()=>T`<template slot="tab-panel" role="stepper-tab-panel"><slot></slot></template>`;var O8=class extends P{};let k8={};O8.compose(Object.assign({baseName:`stepper-tab-panel`,template:D8,shadowOptions:void 0},k8));let A8=(e,t)=>Oa(e,t),j8=(e,t)=>O` ${ku(e,t)} .checked-indicator{transform: scale(1.3);border-radius: calc(var(--control-corner-radius) * 2px)}.switch{border-radius: calc(var(--control-corner-radius) * 3px)}`;var M8=class extends ka{};M8.compose(Object.assign({baseName:`switch`,template:A8,styles:j8,shadowOptions:void 0},{switch:`<div class="checked-indicator" part="checked-indicator"></div>`}));let N8=(e,t)=>Ma(e,t),P8=(e,t)=>O` ${ju(e,t)} :host{user-select: none}`;var F8=class extends Na{constructor(){super(...arguments),this.alert=!1}alertChanged(){this.alert&&bPe()}};q([D({mode:`boolean`})],F8.prototype,`alert`,void 0);let I8={};F8.compose(Object.assign({baseName:`tab`,template:N8,styles:P8,shadowOptions:void 0},I8));let L8=(e,t)=>Aa(e,t),R8=(e,t)=>O` ${Mu(e,t)} :host{height: 100%;padding: 0}`;var z8=class extends ja{};let B8={};z8.compose(Object.assign({baseName:`tab-panel`,template:L8,styles:R8,shadowOptions:void 0},B8));let V8=(e,t)=>Pa(e,t),H8=(e,t)=>O` ${Au(e,t)} :host{height: 100%;width: 100%}:host([scrollable]) [part='tablist']{overflow: auto hidden;white-space: nowrap}:host([scrollable]) ::slotted([role='tab']){flex: 0 0 auto}`;var U8=class extends Ia{constructor(){super(...arguments),this.scrollable=!1}get currentTabIndex(){return this.activeTabIndex}};q([D({mode:`boolean`})],U8.prototype,`scrollable`,void 0);let W8={};U8.compose(Object.assign({baseName:`tabs`,template:V8,styles:H8,shadowOptions:void 0},W8));let G8=(e,t)=>za(e,t),K8=(e,t)=>O` ${Nu(e,t)} :host .control{padding: calc(var(--design-unit) * 3px)}`;var q8=class extends Pu{};let J8={};q8.compose(Object.assign({baseName:`text-area`,template:G8,styles:K8,shadowOptions:void 0},J8));let Y8=(e,t)=>T`<template class="${e=>fn([`readonly`,e.readOnly],[`has-prefix`,!!e.prefix],[`has-suffix`,!!e.suffix])}"><label part="label" for="${e=>e.id?e.id:`control`}" class="${e=>e.defaultSlottedNodes&&e.defaultSlottedNodes.length?`label`:`label label-hidden`}"><slot ${bt({property:`defaultSlottedNodes`,filter:ha})}></slot></label><div class="root" part="root">${wt(e,t)}<div class="control-field">${A(e=>e.prefix,T`<span class="prefix" part="prefix" id="${e=>`${e.id||`control`}-prefix`}" ?aria-hidden="${e=>e.hideAffixFromScreenReader}">${e=>e.prefix}</span>`)}<input name="${e=>e.name}" autocomplete="${e=>e.autocomplete}" autocapitalize="${e=>e.autocapitalize}" id="${e=>e.id?e.id:`control`}" class="control" part="control" @input="${e=>e.handleTextInput()}" @change="${e=>e.handleChange()}" step="${e=>e.step}" ?autofocus="${e=>e.autofocus}" ?disabled="${e=>e.disabled}" list="${e=>e.list}" maxlength="${e=>e.maxlength}" minlength="${e=>e.minlength}" pattern="${e=>e.pattern}" placeholder="${e=>e.placeholder}" ?readonly="${e=>e.readOnly}" ?required="${e=>e.required}" size="${e=>e.size}" ?spellcheck="${e=>e.spellcheck}" :value="${e=>e.value}" type="${e=>e.type}" aria-atomic="${e=>e.ariaAtomic}" aria-busy="${e=>e.ariaBusy}" aria-controls="${e=>e.ariaControls}" aria-current="${e=>e.ariaCurrent}" aria-describedby="${e=>e.controlAriaDescribedby}" aria-details="${e=>e.ariaDetails}" aria-disabled="${e=>e.ariaDisabled}" aria-errormessage="${e=>e.ariaErrormessage}" aria-flowto="${e=>e.ariaFlowto}" aria-haspopup="${e=>e.ariaHaspopup}" aria-hidden="${e=>e.ariaHidden}" aria-invalid="${e=>e.ariaInvalid}" aria-keyshortcuts="${e=>e.ariaKeyshortcuts}" aria-label="${e=>e.ariaLabel}" aria-labelledby="${e=>e.ariaLabelledby}" aria-live="${e=>e.ariaLive}" aria-owns="${e=>e.ariaOwns}" aria-relevant="${e=>e.ariaRelevant}" aria-roledescription="${e=>e.ariaRoledescription}" ${k(`control`)}/>${A(e=>e.suffix,T`<span class="suffix" part="suffix" id="${e=>`${e.id||`control`}-suffix`}" ?aria-hidden="${e=>e.hideAffixFromScreenReader}">${e=>e.suffix}</span>`)}</div>${Ct(e,t)}</div></template>`,X8=(e,t)=>O` ${Fu(e,t)} /* Override FAST .root align-items: baseline for this flex child so it still fills the row. */ ${X0} input{color-scheme: ${Ah}}`;var Z8=class extends G0(Iu){constructor(){super(...arguments),this.autocomplete=`off`,this.autocapitalize=`off`}autocompleteChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autocomplete=this.autocomplete)}autocapitalizeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autocapitalize=this.autocapitalize)}};q([D],Z8.prototype,`autocomplete`,void 0),q([D],Z8.prototype,`autocapitalize`,void 0),q([D],Z8.prototype,`step`,void 0);let Q8={mode:`open`,delegatesFocus:!0},$8={};Z8.compose(Object.assign({baseName:`text-field`,template:Y8,styles:X8,shadowOptions:Q8},$8));let e5=O` @keyframes append-animate{from{transform: translateX(100%);opacity: 0%}to{transform: translateX(0%);opacity: 100%}}@keyframes delete-animate{from{transform: translateX(0%);opacity: 100%}to{transform: translateX(100%);opacity: 0%}}:host{--toast-min-width: 356px;--toast-min-height: 128px;--toast-max-width: 356px;--toast-max-height: 272px}.toast{animation: append-animate 0.3s linear;max-width: var(--toast-max-width);min-width: var(--toast-min-width);background-color: var(--fill-color);border-radius: calc(var(--control-corner-radius) * 1px);border-width: thin;border-color: var(--neutral-stroke-rest);box-shadow: 0 2px 15px 0 rgb(0 0 0 / 35%);display: flex;position: relative;flex-direction: row;padding: 8px 8px 8px 15px;margin: 5px}.toast-delete{animation: delete-animate 0.3s linear;opacity: 0%}.toast::after{content: '';position: absolute;top: 50%;transform: translateY(-50%);left: 5px;height: calc(100% - 10px);width: 4px;border-radius: 2px;background-color: red}.content-wrapper{height: fit-content;width: 100%;display: flex;flex-direction: column;justify-content: space-between;align-items: stretch}.bottom{width: 70%}.top{width: 100%;display: flex;flex-direction: row;justify-content: space-between;align-items: center}.content{width: 85%;font-size: 12px;overflow-wrap: break-word}::slotted(*){white-space: pre-line}.date{color: var(--neutral-foreground-hint);font-size: 12px;margin: 0 0 5px}.notification-icon{margin-right: 6px}.close-icon{cursor: pointer;margin-left: auto;color: #879ba6}`,hLe=(e=`rapid`)=>T`<${e}-icon class="close-icon" size="lg" name="xmark"></prefix-icon>`,gLe=(e=`rapid`)=>T`<div role="alert" part="root" aria-live="polite" class="toast ${e=>e.deleteAnimation}" ${k(`toast`)}><div class="content-wrapper"><div part="top" class="top">${A(e=>e.notificationIcon,T`<${e}-icon class="notification-icon" name="${e=>e.notificationIcon}" size="lg"></prefix-icon>`)}<slot name="top"></slot><div class="close-icon" @click=${e=>e.close()}>${hLe(e)}</div></div><div part="content" class="content"><slot name="content"></slot></div><div part="date" class="date"><slot name="date"></slot></div><div part="bottom" class="bottom"><slot name="bottom"></slot></div></div></div>`,t5=T` ${e=>gLe(yb(e))} `,n5={mode:`open`,delegatesFocus:!0},r5={};var i5=class extends P{constructor(){super(...arguments),this.deleteAnimation=``,this.closeTimeout=1e4,this.autoClose=!1,this.closeTimer=null}connectedCallback(){super.connectedCallback(),this.autoClose&&(this.closeTimer=setTimeout(()=>{this.deleteAnimation=`toast-delete`,this.toast.onanimationend=()=>{this.remove()}},this.closeTimeout))}disconnectedCallback(){super.disconnectedCallback(),clearTimeout(this.closeTimer),this.closeTimer=null}close(){this.remove()}};q([C],i5.prototype,`deleteAnimation`,void 0),q([D({attribute:`close-timeout`})],i5.prototype,`closeTimeout`,void 0),q([D({attribute:`auto-close`})],i5.prototype,`autoClose`,void 0),q([D({attribute:`notification-icon`})],i5.prototype,`notificationIcon`,void 0),i5.compose(Object.assign({baseName:`toast`,styles:e5,template:t5,shadowOptions:n5},r5));let a5=(e,t)=>Ba(e,t),o5=(e,t)=>O` ${Lu(e,t)}`;var s5=class extends Ru{};let c5={};s5.compose(Object.assign({baseName:`toolbar`,template:a5,styles:o5,shadowOptions:void 0},c5));let l5=(e,t)=>Wa(e,t),u5=(e,t)=>O` ${zu(e,t)}`;var d5=class extends Ka{};let f5={};d5.compose(Object.assign({baseName:`tooltip`,template:l5,styles:u5,shadowOptions:void 0},f5));let p5=(e,t)=>qa(e,t),m5=(e,t)=>O` ${Vu(e,t)} :host{--focus-stroke-width: 0;--tree-item-nested-width: 1em}:host([selected])::after{height: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) * 1px);width: 5px;top: 0;border-radius: 0}.positioning-region{height: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) * 1px)}`;var h5=class extends Ya{};h5.compose(Object.assign({baseName:`tree-item`,template:p5,styles:m5,shadowOptions:void 0},{expandCollapseGlyph:`
994
994
  <svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" class="expand-collapse-glyph">
995
995
  <path d="M5.00001 12.3263C5.00124 12.5147 5.05566 12.699 5.15699 12.8578C5.25831 13.0167 5.40243 13.1437 5.57273 13.2242C5.74304 13.3047 5.9326 13.3354 6.11959 13.3128C6.30659 13.2902 6.4834 13.2152 6.62967 13.0965L10.8988 8.83532C11.0739 8.69473 11.2153 8.51658 11.3124 8.31402C11.4096 8.11146 11.46 7.88966 11.46 7.66499C11.46 7.44033 11.4096 7.21853 11.3124 7.01597C11.2153 6.81341 11.0739 6.63526 10.8988 6.49467L6.62967 2.22347C6.48274 2.10422 6.30501 2.02912 6.11712 2.00691C5.92923 1.9847 5.73889 2.01628 5.56823 2.09799C5.39757 2.17969 5.25358 2.30817 5.153 2.46849C5.05241 2.62882 4.99936 2.8144 5.00001 3.00369V12.3263Z"></path>
996
- </svg>`}));let g5=(e,t)=>Xa(e,t),_5=(e,t)=>O` ${Hu(e,t)}`;var v5=class extends Za{};let y5={};v5.compose(Object.assign({baseName:`tree-view`,template:g5,styles:_5,shadowOptions:void 0},y5));let b5=(e,t)=>O` .container{position: relative;width: 100%}.url-input{position: relative;width: 100%}.url-input-link{position: absolute;left: 10px;top: 24px;max-width: 100%;white-space: nowrap;overflow: hidden;text-overflow: ellipsis}`,x5=e=>T`<div class="container" value=${e=>e.value}><${e}-text-field class="url-input" required type="url" :value=${e=>e.focused&&!e.readOnly?e.value:``}@blur=${(e,t)=>e.readOnly?``:e.saveUrl(t.event?.target.value)}@focus=${e=>e.focus()}:readOnly=${e=>e.readOnly}></${e}-text-field>${A(e=>e.readOnly||!e.focused,T`<a class="url-input-link" href=${e=>e.value}target="_blank">${e=>e.value}</a>`)}</div>`,hLe=T` ${e=>x5(yb(e))} `,S5={};var C5=class extends Iu{constructor(){super(...arguments),this.value=``}saveUrl(e){this.value=e.startsWith(`http`)?e:`https://`+e,this.focused=!1}focus(){this.focused=!0}};q([C],C5.prototype,`value`,void 0),q([C],C5.prototype,`focused`,void 0),C5.compose(Object.assign({baseName:`url-input`,template:hLe,styles:b5,shadowOptions:void 0},S5));let w5=O` :host{display: block;font-family: var(--body-font);outline: none}.label{display: block;color: var(--neutral-foreground-rest);cursor: pointer;font-size: var(--type-ramp-base-font-size);line-height: var(--type-ramp-base-line-height);margin-bottom: 4px}.label-hidden{display: none}:host([readonly]) .label{cursor: var(--disabled-cursor)}.container{display: flex;gap: calc(var(--design-unit) * 1px);align-items: center}.digit{display: inline-block;box-sizing: border-box;outline: none;min-width: calc( (((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) - 4) * 1px )}.digit .root{box-sizing: border-box;position: relative;display: flex;flex-direction: row;align-items: center;color: var(--neutral-foreground-rest);background: var(--neutral-fill-input-rest);border-radius: calc(var(--control-corner-radius) * 1px);border: calc(var(--stroke-width) * 1px) solid var(--accent-fill-rest);height: calc( (((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) - 4) * 1px )}.digit .control{appearance: none;font: inherit;background: transparent;border: 0;color: inherit;height: calc(100% - 4px);width: 100%;margin-top: auto;margin-bottom: auto;padding: 0 calc(var(--design-unit) * 2px + 1px);font-size: var(--type-ramp-base-font-size);line-height: var(--type-ramp-base-line-height);text-align: center;outline: none;color-scheme: ${Ah}}.digit[appearance='filled'] .root{background: var(--neutral-fill-rest)}.digit.error .root{border-color: var(--error-fill-rest)}.digit.disabled{opacity: var(--disabled-opacity);cursor: var(--disabled-cursor)}.digit.disabled .control{cursor: var(--disabled-cursor)}.digit:hover:not(.disabled) .root{background: var(--neutral-fill-input-hover);border-color: var(--accent-fill-hover)}.digit:focus-within:not(.disabled) .root{border-color: var(--focus-stroke-outer);box-shadow: 0 0 0 calc(var(--focus-stroke-width) * 1px) var(--focus-stroke-outer) inset}.digit[appearance='filled']:hover:not(.disabled) .root{background: var(--neutral-fill-hover)}${X0}`,T5=T`<label part="label" id="${e=>e.labelId}" for="${e=>e.getControlId(0)}" class="${e=>e.defaultSlottedNodes&&e.defaultSlottedNodes.length?`label`:`label label-hidden`}"><slot ${bt({property:`defaultSlottedNodes`,filter:ha})}></slot></label><div class="container" role="group" aria-labelledby="${e=>e.hasLabel?e.labelId:void 0}" aria-label="${e=>e.hasLabel?void 0:`Verification code`}">${j(e=>e.digitsIndexes,T`<div class="digit ${(e,t)=>t.parent.digitClassnames}" data-digit-index="${e=>e}" appearance="${(e,t)=>t.parent.appearance}"><div class="root" part="root"><div class="control-field"><input class="control" part="control" type="text" inputmode="numeric" pattern="[0-9]*" name="${(e,t)=>t.parent.getControlId(e)}" id="${(e,t)=>t.parent.getControlId(e)}" autocomplete="${e=>e===0?`one-time-code`:`off`}" data-test-id="${(e,t)=>t.parent.getControlId(e)}" title="Only numbers are allowed" maxlength="1" ?autofocus="${(e,t)=>t.parent.autofocus&&e===0}" ?readonly="${(e,t)=>t.parent.readOnly}" ?disabled="${(e,t)=>t.parent.disabled||t.parent.readOnly}" aria-required="${(e,t)=>t.parent.required}" aria-invalid="${(e,t)=>t.parent.error}" /></div></div></div>`)}</div>`,E5={mode:`open`,delegatesFocus:!0},D5={},O5=/^\d$/;var gLe=class extends P{},k5=class extends pr(gLe){constructor(){super(),this.values=[],this.controlListeners=/* @__PURE__ */ new Map,this.syncingFromDigits=!1,this.appearance=`outline`,this.digits=6,this.readOnly=!1,this.autofocus=!1,this.error=!1,this.proxy=document.createElement(`input`)}get digitsIndexes(){return Array.from({length:this.digits},(e,t)=>t)}get controlIdPrefix(){return this.id||`verification-code`}get labelId(){return`${this.controlIdPrefix}-label`}get hasLabel(){return!!this.defaultSlottedNodes?.length}getControlId(e){return`${this.controlIdPrefix}-${e}`}clear(){this.value=``,this.emitChange(),this.$fastController.isConnected&&this.focusDigit(0)}focus(){this.focusDigit(0)}valueChanged(e,t){let n=this.sanitizeCode(t);if(this.syncingFromDigits||this.syncDigitsFromValue(n),String(t??``)!==n){this.value=n;return}super.valueChanged(e,n)}validate(e){if(!(this.proxy instanceof HTMLElement))return;let t=e??this.getControlElement(0)??void 0;if(String(this.value??``).length>0&&!this.isComplete()){this.setValidity({patternMismatch:!0},`Please enter a ${this.digits}-digit code.`,t);return}if(this.required&&!this.isComplete()){this.setValidity({valueMissing:!0},`Please fill out this field.`,t);return}this.setValidity({},``,t)}connectedCallback(){super.connectedCallback(),this.proxy.type=`text`,this.proxy.inputMode=`numeric`,x.queueUpdate(()=>{this.syncFieldValues(),this.bindControlListeners(),this.autofocus&&!this.readOnly&&this.focus()})}disconnectedCallback(){super.disconnectedCallback(),this.unbindControlListeners()}digitsChanged(){this.syncDigitsFromValue(this.sanitizeCode(this.value));let e=(this.values??[]).join(``);this.value===e?this.validate():this.value=e,x.queueUpdate(()=>{this.syncFieldValues(),this.bindControlListeners()})}get digitClassnames(){return[this.error&&`error`,(this.disabled||this.readOnly)&&`disabled`].filter(Boolean).join(` `)}sanitizeCode(e){let t=Math.max(1,Number(this.digits)||6);return String(e??``).replace(/\D/g,``).slice(0,t)}bindControlListeners(){this.unbindControlListeners(),this.rootNode.querySelectorAll(`[data-digit-index] input.control`).forEach(e=>{let t=this.getIndexFromInput(e);if(t===null)return;let n={paste:e=>this.onPaste(e,t),keydown:e=>this.onKeyDown(e,t),input:e=>this.onInput(e,t)};e.addEventListener(`paste`,n.paste,!0),e.addEventListener(`keydown`,n.keydown),e.addEventListener(`input`,n.input),this.controlListeners.set(e,n)})}unbindControlListeners(){var e,t;(e=this.controlListeners)==null||e.forEach((e,t)=>{t.removeEventListener(`paste`,e.paste,!0),t.removeEventListener(`keydown`,e.keydown),t.removeEventListener(`input`,e.input)}),(t=this.controlListeners)==null||t.clear()}onKeyDown(e,t){if(!(this.readOnly||this.disabled)){if(O5.test(e.key)&&!e.ctrlKey&&!e.metaKey&&!e.altKey){e.preventDefault(),this.updateDigit(t,e.key),this.focusDigit(t+1);return}switch(e.key){case`Backspace`:e.preventDefault(),this.handleBackspace(t);break;case`Delete`:e.preventDefault(),this.handleDelete(t);break;case`ArrowLeft`:e.preventDefault(),this.focusDigit(t-1);break;case`ArrowRight`:e.preventDefault(),this.focusDigit(t+1);break;case`Tab`:case`Home`:case`End`:break;default:this.isBlockedCharacter(e)&&e.preventDefault()}}}isBlockedCharacter(e){return e.ctrlKey||e.metaKey||e.altKey?!1:e.key.length===1&&!O5.test(e.key)}onInput(e,t){if(this.readOnly||this.disabled)return;let n=e.target,r=n.value.replace(/\D/g,``);if(r.length>1){this.applyDigits(r,t);return}let i=r.slice(-1);n.value!==i&&(n.value=i),i&&this.values[t]!==i?(this.updateDigit(t,i),this.focusDigit(t+1)):!i&&this.values[t]&&this.updateDigit(t,``)}onPaste(e,t){if(this.readOnly||this.disabled)return;e.preventDefault();let n=e.clipboardData?.getData(`text`)??``;n&&this.applyDigits(n,t)}handleBackspace(e){if(this.values[e]){this.updateDigit(e,``);return}e>0&&(this.updateDigit(e-1,``),this.focusDigit(e-1))}handleDelete(e){this.values[e]&&this.updateDigit(e,``)}getIndexFromInput(e){let t=Number(e.closest(`[data-digit-index]`)?.getAttribute(`data-digit-index`));return Number.isNaN(t)?null:t}syncDigitsFromValue(e){let t=Math.max(1,Number(this.digits)||6),n=Array.from({length:t},(t,n)=>e[n]??``),r=this.values??[];n.length===r.length&&n.every((e,t)=>e===r[t])||(this.values=n,this.$fastController?.isConnected&&this.syncFieldValues())}updateDigit(e,t){if(e<0||e>=this.digits)return;let n=[...this.values];n[e]=t,this.values=n,this.syncFieldValue(e),this.commitValues(n)}applyDigits(e,t){let n=e.replace(/\D/g,``).slice(0,this.digits-t);if(!n.length)return;let r=[...this.values];for(let e=0;e<n.length;e+=1)r[t+e]=n[e];this.values=r,this.syncFieldValues(),this.commitValues(r),this.focusDigit(this.isComplete()?this.digits-1:t+n.length)}commitValues(e){let t=e.join(``);this.syncingFromDigits=!0;try{this.value===t?this.validate():this.value=t}finally{this.syncingFromDigits=!1}this.emitChange(),this.isComplete()&&this.$emit(`complete`,{value:this.value})}syncFieldValues(){for(let e=0;e<this.digits;e+=1)this.syncFieldValue(e)}syncFieldValue(e){let t=this.getControlElement(e);t&&(t.value=this.values[e]??``)}focusDigit(e){var t;e<0||e>=this.digits||(t=this.getControlElement(e))==null||t.focus()}get rootNode(){return this.shadowRoot??this}getControlElement(e){return this.rootNode.querySelector(`[data-digit-index="${e}"] input.control`)}isComplete(){let e=this.values??[];return e.length===this.digits&&e.every(e=>O5.test(e))}emitChange(){this.$emit(`change`,{value:this.value})}};q([C],k5.prototype,`values`,void 0),q([C],k5.prototype,`defaultSlottedNodes`,void 0),q([D],k5.prototype,`id`,void 0),q([D],k5.prototype,`appearance`,void 0),q([D],k5.prototype,`digits`,void 0),q([D({attribute:`readonly`,mode:`boolean`})],k5.prototype,`readOnly`,void 0),q([D({mode:`boolean`})],k5.prototype,`autofocus`,void 0),q([D({mode:`boolean`})],k5.prototype,`error`,void 0),k5.compose(Object.assign({baseName:`verification-code-input`,template:T5,styles:w5,shadowOptions:E5},D5));let A5=class extends gb{constructor(){super(...arguments),this.isSnapshot=!0}connectedCallback(){let e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});return J(this,void 0,void 0,function*(){e.connectedCallback.call(this),this.dataGrid=this.parentElement,this.dataGrid&&this.resourceName&&this.connect.isConnected&&this.fetchGenesisData()})}getColumnDefs(e){return e?.flatMap(e=>this.fields&&!this.fields.includes(e.name)?[]:{columnDataKey:e.name})}clearData(){hb.debug(`clearData - Method not implemented.`)}syncComponentData(e){let t=e??Array.from(this.rowsSyncedWithStream.values()),n=this.getColumnDefs(this.datasource.fieldMetadata);this.dataGrid.columnDefinitions=n,this.dataGrid.rowsData=t}handleStreamInserts(e){hb.debug(`handleStreamInserts - Method not implemented.`)}handleStreamDeletes(e){hb.debug(`handleStreamDeletes - Method not implemented.`)}handleStreamUpdates(e){hb.debug(`handleStreamUpdates - Method not implemented.`)}};A5=q([$e({name:`data-grid-datasource`})],A5);let j5={type:`NULL`,maxRules:1,invisible:!0},_Le=[`enum`],M5=[`int`,`short`,`long`,`bigdecimal`,`double`],vLe=[`string`],N5=[`date`,`date-time`],yLe=[`boolean`],P5=[..._Le,...M5,...vLe,...N5,...yLe];[...M5,...N5],[...M5,...N5],[...P5].filter(e=>e!==`boolean`),[...P5].filter(e=>e!==`boolean`),[...M5,...N5],[...M5,...N5],[...P5],[...P5];let bLe=(0,(/* @__PURE__ */ u((/* @__PURE__ */ s(((e,t)=>{t.exports=r;function n(e){return e instanceof Buffer?Buffer.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}function r(e){if(e=e||{},e.circles)return i(e);let t=/* @__PURE__ */ new Map;if(t.set(Date,e=>new Date(e)),t.set(Map,(e,t)=>new Map(a(Array.from(e),t))),t.set(Set,(e,t)=>new Set(a(Array.from(e),t))),e.constructorHandlers)for(let n of e.constructorHandlers)t.set(n[0],n[1]);let r=null;return e.proto?s:o;function a(e,i){let a=Object.keys(e),o=Array(a.length);for(let s=0;s<a.length;s++){let c=a[s],l=e[c];o[c]=typeof l!=`object`||!l?l:l.constructor!==Object&&(r=t.get(l.constructor))?r(l,i):ArrayBuffer.isView(l)?n(l):i(l)}return o}function o(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return a(e,o);if(e.constructor!==Object&&(r=t.get(e.constructor)))return r(e,o);let i={};for(let a in e){if(Object.hasOwnProperty.call(e,a)===!1)continue;let s=e[a];i[a]=typeof s!=`object`||!s?s:s.constructor!==Object&&(r=t.get(s.constructor))?r(s,o):ArrayBuffer.isView(s)?n(s):o(s)}return i}function s(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return a(e,s);if(e.constructor!==Object&&(r=t.get(e.constructor)))return r(e,s);let i={};for(let a in e){let o=e[a];i[a]=typeof o!=`object`||!o?o:o.constructor!==Object&&(r=t.get(o.constructor))?r(o,s):ArrayBuffer.isView(o)?n(o):s(o)}return i}}function i(e){let t=[],r=[],i=/* @__PURE__ */ new Map;if(i.set(Date,e=>new Date(e)),i.set(Map,(e,t)=>new Map(o(Array.from(e),t))),i.set(Set,(e,t)=>new Set(o(Array.from(e),t))),e.constructorHandlers)for(let t of e.constructorHandlers)i.set(t[0],t[1]);let a=null;return e.proto?c:s;function o(e,o){let s=Object.keys(e),c=Array(s.length);for(let l=0;l<s.length;l++){let u=s[l],d=e[u];if(typeof d!=`object`||!d)c[u]=d;else if(d.constructor!==Object&&(a=i.get(d.constructor)))c[u]=a(d,o);else if(ArrayBuffer.isView(d))c[u]=n(d);else{let e=t.indexOf(d);c[u]=e===-1?o(d):r[e]}}return c}function s(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return o(e,s);if(e.constructor!==Object&&(a=i.get(e.constructor)))return a(e,s);let c={};t.push(e),r.push(c);for(let o in e){if(Object.hasOwnProperty.call(e,o)===!1)continue;let l=e[o];if(typeof l!=`object`||!l)c[o]=l;else if(l.constructor!==Object&&(a=i.get(l.constructor)))c[o]=a(l,s);else if(ArrayBuffer.isView(l))c[o]=n(l);else{let e=t.indexOf(l);c[o]=e===-1?s(l):r[e]}}return t.pop(),r.pop(),c}function c(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return o(e,c);if(e.constructor!==Object&&(a=i.get(e.constructor)))return a(e,c);let s={};t.push(e),r.push(s);for(let o in e){let l=e[o];if(typeof l!=`object`||!l)s[o]=l;else if(l.constructor!==Object&&(a=i.get(l.constructor)))s[o]=a(l,c);else if(ArrayBuffer.isView(l))s[o]=n(l);else{let e=t.indexOf(l);s[o]=e===-1?c(l):r[e]}}return t.pop(),r.pop(),s}}})))())).default)();function F5(e,t,n){function r(e){let i=bLe(e);if(i.groupId===t)return i.children=n(i.children),i;let a=[],o=!1;for(let e of i.children)if(`children`in e){let t=r(e);t?(a.push(t),o=!0):a.push(e)}else a.push(e);return i.children=a,o?i:null}let i=r(e);if(!i)throw Error(`Unable to find group with groupId ${t}`);return i}function I5(e,t,n){function r(e){for(let i of e.children){if(n(i,t))return e;if(`children`in i){let e=r(i);if(e)return e}}return null}return r(e)}function L5(e,t){let n=I5(e,t,(e,t)=>`children`in e&&e.groupId===t);if(!n)throw Error(`No parent group found for group with ID ${t}`);return n}function R5(e,t){let n=I5(e,t,(e,t)=>`ruleId`in e&&e.ruleId===t);if(!n)throw Error(`No parent group found for rule with ID ${t}`);return n}function z5(e,t,n){return F5(e,t,e=>[...e,n])}function xLe(e,t){return F5(e,L5(e,t).groupId,e=>e.filter(e=>`groupId`in e?e.groupId!==t:!0))}function SLe(e,t){return F5(e,R5(e,t).groupId,e=>e.filter(e=>`ruleId`in e?e.ruleId!==t:!0))}let B5=`group-root`;function CLe(e,t,n){return t===`group-root`?Object.assign(Object.assign({},e),n):F5(e,L5(e,t).groupId,e=>e.map(e=>`groupId`in e&&e.groupId===t?Object.assign(Object.assign({},e),n):e))}function wLe(e,t,n){return F5(e,R5(e,t).groupId,e=>e.map(e=>`ruleId`in e&&e.ruleId===t?Object.assign(Object.assign({},e),n):e))}function TLe(e,t){let n=(e,t)=>`children`in e?r(e,t):i(e);function r(e,r){return Object.assign(Object.assign({},e),{level:r,config:t.getConfig(),groupId:t.getGroupId(),children:e.children.map(e=>n(e,r+1))})}function i(e){return Object.assign(Object.assign({},e),{ruleId:t.getRuleId(),config:t.getConfig()})}return Object.assign(Object.assign({},e),{config:t.getConfig(),level:1,groupId:B5,children:e.children.map(e=>n(e,2))})}function V5(e){let t=e.children.map(e=>`children`in e?V5(e):ELe(e));return{combinator:e.combinator,children:t}}function ELe(e){let{operator:t,field:n,value:r}=e;return{operator:t,field:n,value:r}}let H5=e=>`${e.getUTCFullYear()}-${String(e.getUTCMonth()+1).padStart(2,`0`)}-${String(e.getUTCDate()).padStart(2,`0`)}`,U5=e=>`${H5(e)}T${String(e.getUTCHours()).padStart(2,`0`)}:${String(e.getUTCMinutes()).padStart(2,`0`)}:${String(e.getUTCSeconds()).padStart(2,`0`)}`,W5=e=>e.operator?.valueType?.input??e.field.input,G5=e=>e.operator?.valueType?.type??e.field.type,K5=e=>{let t={},n=[],r=e=>[...e].sort((e,t)=>`fieldId`in e&&`fieldId`in t?e.fieldId.localeCompare(t.fieldId):`type`in e&&`type`in t?e.type.localeCompare(t.type):0);e.forEach(e=>{if(e.optgroup){let n=e.optgroup;t[n]||(t[n]=[]),t[n].push(e)}else n.push(e)});let i=[];return Object.keys(t).sort().forEach(e=>{i.push({optgroup:e,xs:r(t[e])})}),[...i,...r(n)]};function q5(e,t,n){if(!e.shadowRoot||!t?.customStyles)return;let r=t.customStyles[n];if(r){let t=document.createElement(`style`);t.textContent=r,e.shadowRoot.firstChild?e.shadowRoot.insertBefore(t,e.shadowRoot.firstChild):e.shadowRoot.appendChild(t)}}var J5;(function(e){e.AddGroup=`add-group`,e.DelGroup=`del-group`,e.AddRule=`add-rule`,e.DelRule=`del-rule`,e.UpdateGroup=`update-group`,e.UpdateRule=`update-rule`,e.FieldSelected=`field-selected`,e.OperatorSelected=`operator-selected`,e.ValueUpdated=`value-updated`,e.RemoveVarArg=`remove-variadic-operand`})(J5||(J5={}));let Y5=O` :host{--item-vertical-spacing: 4px;--item-border-radius: 5px;--group-background-color: rgb(250 240 210 / 50%);--group-border-color: #dcc896;--group-border: 1px solid var(--group-border-color);--group-padding: 10px;--rule-background-color: rgb(255 255 255 / 90%);--rule-border-color: #eee;--rule-border: 1px solid var(--rule-border-color);--rule-padding: 5px;--rule-value-separator: 1px solid #ddd;--error-icon-color: #f00;--error-border-color: #f99;--error-background-color: #fdd;--ticks-width: 2px;--ticks-color: #ccc}p.test{color: black}.query-builder{font-family: sans-serif}.rules-group-container{position: relative;margin: var(--item-vertical-spacing) 0;border-radius: var(--item-border-radius);padding: var(--group-padding);border: var(--group-border);background: var(--group-background-color)}.rules-group-header{margin-bottom: var(--group-padding)}.group-conditions{display: inline-block}.group-conditions .btn{padding: 0.25rem 0.5rem;font-size: 0.875rem;line-height: 1.5;border-radius: 0.2rem;border: 1px solid #007bff;color: #007bff;background-color: transparent;cursor: pointer}.group-conditions .btn:hover{background-color: #007bff;color: #fff}.group-conditions .btn.active{background-color: #007bff;color: #fff}.group-actions{display: inline-block;float: right}.rules-list{list-style: none;padding: 0 0 0 20px;/* Adjusted ticks position */ margin: 0}.rule-container{position: relative;margin: var(--item-vertical-spacing) 0;border-radius: var(--item-border-radius);padding: var(--rule-padding);border: var(--rule-border);background: var(--rule-background-color)}.rule-header{margin-bottom: 5px}.rule-actions{display: inline-block;float: right}.rule-field-container, .rule-operator-container, .rule-value-container{display: inline-block;margin: 0 5px 0 0;vertical-align: middle}.rule-value-container{border-left: var(--rule-value-separator);padding-left: 5px}.rule-value-container label{margin-bottom: 0;font-weight: normal}.rule-value-container label.block{display: block}.error-container{display: none;cursor: help;color: var(--error-icon-color);margin-left: 5px}.rule-container.has-error, .rules-group-container.has-error{background-color: var(--error-background-color);border-color: var(--error-border-color)}.rule-container.has-error .error-container, .rules-group-container.has-error .error-container{display: inline-block !important}/* Ticks */ .rules-list > *{position: relative}.rules-list > *::before, .rules-list > *::after{content: '';position: absolute;left: -10px;/* Adjusted ticks position */ width: 10px;/* Adjusted ticks position */ border-color: var(--ticks-color);border-style: solid}.rules-list > *::before{top: -2px;/* Adjusted ticks position */ height: calc(50% + var(--item-vertical-spacing));border-width: 0 0 var(--ticks-width) var(--ticks-width)}.rules-list > *::after{top: 50%;border-width: 0 0 0 var(--ticks-width);height: 50%}.rules-list > *:first-child::before{top: calc(-1 * var(--group-padding) - var(--ticks-width));height: calc(50% + var(--group-padding) + var(--item-vertical-spacing))}.rules-list > *:last-child::before{border-radius: 0 0 0 calc(2 * var(--ticks-width))}.rules-list > *:last-child::after{display: none}`,DLe=O` .rules-group-container{border: 1px solid #ccc;margin-bottom: 10px;padding: 10px}.rules-group-header{margin-bottom: 5px}.btn-group{margin-right: 5px}.btn{padding: 0.25rem 0.5rem;font-size: 0.875rem;line-height: 1.5;border-radius: 0.2rem;cursor: pointer}.btn-success{color: #fff;background-color: #28a745;border-color: #28a745}.btn-danger{color: #fff;background-color: #dc3545;border-color: #dc3545}.radio-group-container{display: flex}.rules-list{list-style: none;padding-left: 0}`,OLe=T` ${e=>{let t=e.styles?.customElements?.radio,{radioTag:n,radioGroupTag:r}=t?{radioTag:t.input,radioGroupTag:t.group}:{radioTag:`input`,radioGroupTag:`div`};return T`<div class="btn-group group-conditions">${u_(e=>n!==`input`,T`<${r}class="radio-group-container" name="combinator" @change="${(e,t)=>e.handleCombinatorChange(t.event)}" value="${e=>e.model?.combinator?.type}">${j(e=>e.config?.combinators??[],T` ${A(e=>!e.invisible,T`<${n}value="${e=>e.type}" ?checked=${(e,t)=>t.parent.model?.combinator?.type===e.type}>${e=>e.label??e.type}</${n}>`)} `)}</${r}>`,T`<div class="radio-group-container">${j(e=>e.config.combinators,T` ${A(e=>!e.invisible,T`<label class="btn btn-sm btn-primary"><input type="radio" name="combinator" value="${e=>e.type}" @change="${(e,t)=>t.parent.handleCombinatorChange(t.event)}" ?checked=${(e,t)=>t.parent.model?.combinator?.type===e.type}/>${e=>e.label??e.type}</label>`)} `)}</div>`)}</div>`}} `,kLe=T`<div class="rules-group-container"><div class="rules-group-header">${T` ${e=>{let t=e.styles?.customElements?.button||`button`,n=`Add a new condition with field (e.g. CURRENCY), operator (e.g. EQUALS), and value (e.g. GBP) that will be combined with other conditions in this group using the selected logic (e.g. ${e.config?.combinators?.[0]?.type})`,r=`Add a new nested sub-group to create more complex expressions, joined by combinatorial logic (e.g. ${e.config?.combinators?.[0]?.type})`;return T`<div class="btn-group float-end group-actions">${A(e=>e.allowAddRule,T`<${t}type="button" class="btn btn-sm btn-success" data-add="rule" @click="${(e,t)=>e.dispatchAddRule(t.event)}" title=${e=>n}>
996
+ </svg>`}));let g5=(e,t)=>Xa(e,t),_5=(e,t)=>O` ${Hu(e,t)}`;var v5=class extends Za{};let y5={};v5.compose(Object.assign({baseName:`tree-view`,template:g5,styles:_5,shadowOptions:void 0},y5));let b5=(e,t)=>O` .container{position: relative;width: 100%}.url-input{position: relative;width: 100%}.url-input-link{position: absolute;left: 10px;top: 24px;max-width: 100%;white-space: nowrap;overflow: hidden;text-overflow: ellipsis}`,x5=e=>T`<div class="container" value=${e=>e.value}><${e}-text-field class="url-input" required type="url" :value=${e=>e.focused&&!e.readOnly?e.value:``}@blur=${(e,t)=>e.readOnly?``:e.saveUrl(t.event?.target.value)}@focus=${e=>e.focus()}:readOnly=${e=>e.readOnly}></${e}-text-field>${A(e=>e.readOnly||!e.focused,T`<a class="url-input-link" href=${e=>e.value}target="_blank">${e=>e.value}</a>`)}</div>`,_Le=T` ${e=>x5(yb(e))} `,S5={};var C5=class extends Iu{constructor(){super(...arguments),this.value=``}saveUrl(e){this.value=e.startsWith(`http`)?e:`https://`+e,this.focused=!1}focus(){this.focused=!0}};q([C],C5.prototype,`value`,void 0),q([C],C5.prototype,`focused`,void 0),C5.compose(Object.assign({baseName:`url-input`,template:_Le,styles:b5,shadowOptions:void 0},S5));let w5=O` :host{display: block;font-family: var(--body-font);outline: none}.label{display: block;color: var(--neutral-foreground-rest);cursor: pointer;font-size: var(--type-ramp-base-font-size);line-height: var(--type-ramp-base-line-height);margin-bottom: 4px}.label-hidden{display: none}:host([readonly]) .label{cursor: var(--disabled-cursor)}.container{display: flex;gap: calc(var(--design-unit) * 1px);align-items: center}.digit{display: inline-block;box-sizing: border-box;outline: none;min-width: calc( (((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) - 4) * 1px )}.digit .root{box-sizing: border-box;position: relative;display: flex;flex-direction: row;align-items: center;color: var(--neutral-foreground-rest);background: var(--neutral-fill-input-rest);border-radius: calc(var(--control-corner-radius) * 1px);border: calc(var(--stroke-width) * 1px) solid var(--accent-fill-rest);height: calc( (((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) - 4) * 1px )}.digit .control{appearance: none;font: inherit;background: transparent;border: 0;color: inherit;height: calc(100% - 4px);width: 100%;margin-top: auto;margin-bottom: auto;padding: 0 calc(var(--design-unit) * 2px + 1px);font-size: var(--type-ramp-base-font-size);line-height: var(--type-ramp-base-line-height);text-align: center;outline: none;color-scheme: ${Ah}}.digit[appearance='filled'] .root{background: var(--neutral-fill-rest)}.digit.error .root{border-color: var(--error-fill-rest)}.digit.disabled{opacity: var(--disabled-opacity);cursor: var(--disabled-cursor)}.digit.disabled .control{cursor: var(--disabled-cursor)}.digit:hover:not(.disabled) .root{background: var(--neutral-fill-input-hover);border-color: var(--accent-fill-hover)}.digit:focus-within:not(.disabled) .root{border-color: var(--focus-stroke-outer);box-shadow: 0 0 0 calc(var(--focus-stroke-width) * 1px) var(--focus-stroke-outer) inset}.digit[appearance='filled']:hover:not(.disabled) .root{background: var(--neutral-fill-hover)}${X0}`,T5=T`<label part="label" id="${e=>e.labelId}" for="${e=>e.getControlId(0)}" class="${e=>e.defaultSlottedNodes&&e.defaultSlottedNodes.length?`label`:`label label-hidden`}"><slot ${bt({property:`defaultSlottedNodes`,filter:ha})}></slot></label><div class="container" role="group" aria-labelledby="${e=>e.hasLabel?e.labelId:void 0}" aria-label="${e=>e.hasLabel?void 0:`Verification code`}">${j(e=>e.digitsIndexes,T`<div class="digit ${(e,t)=>t.parent.digitClassnames}" data-digit-index="${e=>e}" appearance="${(e,t)=>t.parent.appearance}"><div class="root" part="root"><div class="control-field"><input class="control" part="control" type="text" inputmode="numeric" pattern="[0-9]*" name="${(e,t)=>t.parent.getControlId(e)}" id="${(e,t)=>t.parent.getControlId(e)}" autocomplete="${e=>e===0?`one-time-code`:`off`}" data-test-id="${(e,t)=>t.parent.getControlId(e)}" title="Only numbers are allowed" maxlength="1" ?autofocus="${(e,t)=>t.parent.autofocus&&e===0}" ?readonly="${(e,t)=>t.parent.readOnly}" ?disabled="${(e,t)=>t.parent.disabled||t.parent.readOnly}" aria-required="${(e,t)=>t.parent.required}" aria-invalid="${(e,t)=>t.parent.error}" /></div></div></div>`)}</div>`,E5={mode:`open`,delegatesFocus:!0},D5={},O5=/^\d$/;var vLe=class extends P{},k5=class extends pr(vLe){constructor(){super(),this.values=[],this.controlListeners=/* @__PURE__ */ new Map,this.syncingFromDigits=!1,this.appearance=`outline`,this.digits=6,this.readOnly=!1,this.autofocus=!1,this.error=!1,this.proxy=document.createElement(`input`)}get digitsIndexes(){return Array.from({length:this.digits},(e,t)=>t)}get controlIdPrefix(){return this.id||`verification-code`}get labelId(){return`${this.controlIdPrefix}-label`}get hasLabel(){return!!this.defaultSlottedNodes?.length}getControlId(e){return`${this.controlIdPrefix}-${e}`}clear(){this.value=``,this.emitChange(),this.$fastController.isConnected&&this.focusDigit(0)}focus(){this.focusDigit(0)}valueChanged(e,t){let n=this.sanitizeCode(t);if(this.syncingFromDigits||this.syncDigitsFromValue(n),String(t??``)!==n){this.value=n;return}super.valueChanged(e,n)}validate(e){if(!(this.proxy instanceof HTMLElement))return;let t=e??this.getControlElement(0)??void 0;if(String(this.value??``).length>0&&!this.isComplete()){this.setValidity({patternMismatch:!0},`Please enter a ${this.digits}-digit code.`,t);return}if(this.required&&!this.isComplete()){this.setValidity({valueMissing:!0},`Please fill out this field.`,t);return}this.setValidity({},``,t)}connectedCallback(){super.connectedCallback(),this.proxy.type=`text`,this.proxy.inputMode=`numeric`,x.queueUpdate(()=>{this.syncFieldValues(),this.bindControlListeners(),this.autofocus&&!this.readOnly&&this.focus()})}disconnectedCallback(){super.disconnectedCallback(),this.unbindControlListeners()}digitsChanged(){this.syncDigitsFromValue(this.sanitizeCode(this.value));let e=(this.values??[]).join(``);this.value===e?this.validate():this.value=e,x.queueUpdate(()=>{this.syncFieldValues(),this.bindControlListeners()})}get digitClassnames(){return[this.error&&`error`,(this.disabled||this.readOnly)&&`disabled`].filter(Boolean).join(` `)}sanitizeCode(e){let t=Math.max(1,Number(this.digits)||6);return String(e??``).replace(/\D/g,``).slice(0,t)}bindControlListeners(){this.unbindControlListeners(),this.rootNode.querySelectorAll(`[data-digit-index] input.control`).forEach(e=>{let t=this.getIndexFromInput(e);if(t===null)return;let n={paste:e=>this.onPaste(e,t),keydown:e=>this.onKeyDown(e,t),input:e=>this.onInput(e,t)};e.addEventListener(`paste`,n.paste,!0),e.addEventListener(`keydown`,n.keydown),e.addEventListener(`input`,n.input),this.controlListeners.set(e,n)})}unbindControlListeners(){var e,t;(e=this.controlListeners)==null||e.forEach((e,t)=>{t.removeEventListener(`paste`,e.paste,!0),t.removeEventListener(`keydown`,e.keydown),t.removeEventListener(`input`,e.input)}),(t=this.controlListeners)==null||t.clear()}onKeyDown(e,t){if(!(this.readOnly||this.disabled)){if(O5.test(e.key)&&!e.ctrlKey&&!e.metaKey&&!e.altKey){e.preventDefault(),this.updateDigit(t,e.key),this.focusDigit(t+1);return}switch(e.key){case`Backspace`:e.preventDefault(),this.handleBackspace(t);break;case`Delete`:e.preventDefault(),this.handleDelete(t);break;case`ArrowLeft`:e.preventDefault(),this.focusDigit(t-1);break;case`ArrowRight`:e.preventDefault(),this.focusDigit(t+1);break;case`Tab`:case`Home`:case`End`:break;default:this.isBlockedCharacter(e)&&e.preventDefault()}}}isBlockedCharacter(e){return e.ctrlKey||e.metaKey||e.altKey?!1:e.key.length===1&&!O5.test(e.key)}onInput(e,t){if(this.readOnly||this.disabled)return;let n=e.target,r=n.value.replace(/\D/g,``);if(r.length>1){this.applyDigits(r,t);return}let i=r.slice(-1);n.value!==i&&(n.value=i),i&&this.values[t]!==i?(this.updateDigit(t,i),this.focusDigit(t+1)):!i&&this.values[t]&&this.updateDigit(t,``)}onPaste(e,t){if(this.readOnly||this.disabled)return;e.preventDefault();let n=e.clipboardData?.getData(`text`)??``;n&&this.applyDigits(n,t)}handleBackspace(e){if(this.values[e]){this.updateDigit(e,``);return}e>0&&(this.updateDigit(e-1,``),this.focusDigit(e-1))}handleDelete(e){this.values[e]&&this.updateDigit(e,``)}getIndexFromInput(e){let t=Number(e.closest(`[data-digit-index]`)?.getAttribute(`data-digit-index`));return Number.isNaN(t)?null:t}syncDigitsFromValue(e){let t=Math.max(1,Number(this.digits)||6),n=Array.from({length:t},(t,n)=>e[n]??``),r=this.values??[];n.length===r.length&&n.every((e,t)=>e===r[t])||(this.values=n,this.$fastController?.isConnected&&this.syncFieldValues())}updateDigit(e,t){if(e<0||e>=this.digits)return;let n=[...this.values];n[e]=t,this.values=n,this.syncFieldValue(e),this.commitValues(n)}applyDigits(e,t){let n=e.replace(/\D/g,``).slice(0,this.digits-t);if(!n.length)return;let r=[...this.values];for(let e=0;e<n.length;e+=1)r[t+e]=n[e];this.values=r,this.syncFieldValues(),this.commitValues(r),this.focusDigit(this.isComplete()?this.digits-1:t+n.length)}commitValues(e){let t=e.join(``);this.syncingFromDigits=!0;try{this.value===t?this.validate():this.value=t}finally{this.syncingFromDigits=!1}this.emitChange(),this.isComplete()&&this.$emit(`complete`,{value:this.value})}syncFieldValues(){for(let e=0;e<this.digits;e+=1)this.syncFieldValue(e)}syncFieldValue(e){let t=this.getControlElement(e);t&&(t.value=this.values[e]??``)}focusDigit(e){var t;e<0||e>=this.digits||(t=this.getControlElement(e))==null||t.focus()}get rootNode(){return this.shadowRoot??this}getControlElement(e){return this.rootNode.querySelector(`[data-digit-index="${e}"] input.control`)}isComplete(){let e=this.values??[];return e.length===this.digits&&e.every(e=>O5.test(e))}emitChange(){this.$emit(`change`,{value:this.value})}};q([C],k5.prototype,`values`,void 0),q([C],k5.prototype,`defaultSlottedNodes`,void 0),q([D],k5.prototype,`id`,void 0),q([D],k5.prototype,`appearance`,void 0),q([D],k5.prototype,`digits`,void 0),q([D({attribute:`readonly`,mode:`boolean`})],k5.prototype,`readOnly`,void 0),q([D({mode:`boolean`})],k5.prototype,`autofocus`,void 0),q([D({mode:`boolean`})],k5.prototype,`error`,void 0),k5.compose(Object.assign({baseName:`verification-code-input`,template:T5,styles:w5,shadowOptions:E5},D5));let A5=class extends gb{constructor(){super(...arguments),this.isSnapshot=!0}connectedCallback(){let e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});return J(this,void 0,void 0,function*(){e.connectedCallback.call(this),this.dataGrid=this.parentElement,this.dataGrid&&this.resourceName&&this.connect.isConnected&&this.fetchGenesisData()})}getColumnDefs(e){return e?.flatMap(e=>this.fields&&!this.fields.includes(e.name)?[]:{columnDataKey:e.name})}clearData(){hb.debug(`clearData - Method not implemented.`)}syncComponentData(e){let t=e??Array.from(this.rowsSyncedWithStream.values()),n=this.getColumnDefs(this.datasource.fieldMetadata);this.dataGrid.columnDefinitions=n,this.dataGrid.rowsData=t}handleStreamInserts(e){hb.debug(`handleStreamInserts - Method not implemented.`)}handleStreamDeletes(e){hb.debug(`handleStreamDeletes - Method not implemented.`)}handleStreamUpdates(e){hb.debug(`handleStreamUpdates - Method not implemented.`)}};A5=q([$e({name:`data-grid-datasource`})],A5);let j5={type:`NULL`,maxRules:1,invisible:!0},yLe=[`enum`],M5=[`int`,`short`,`long`,`bigdecimal`,`double`],bLe=[`string`],N5=[`date`,`date-time`],xLe=[`boolean`],P5=[...yLe,...M5,...bLe,...N5,...xLe];[...M5,...N5],[...M5,...N5],[...P5].filter(e=>e!==`boolean`),[...P5].filter(e=>e!==`boolean`),[...M5,...N5],[...M5,...N5],[...P5],[...P5];let SLe=(0,(/* @__PURE__ */ u((/* @__PURE__ */ s(((e,t)=>{t.exports=r;function n(e){return e instanceof Buffer?Buffer.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}function r(e){if(e=e||{},e.circles)return i(e);let t=/* @__PURE__ */ new Map;if(t.set(Date,e=>new Date(e)),t.set(Map,(e,t)=>new Map(a(Array.from(e),t))),t.set(Set,(e,t)=>new Set(a(Array.from(e),t))),e.constructorHandlers)for(let n of e.constructorHandlers)t.set(n[0],n[1]);let r=null;return e.proto?s:o;function a(e,i){let a=Object.keys(e),o=Array(a.length);for(let s=0;s<a.length;s++){let c=a[s],l=e[c];o[c]=typeof l!=`object`||!l?l:l.constructor!==Object&&(r=t.get(l.constructor))?r(l,i):ArrayBuffer.isView(l)?n(l):i(l)}return o}function o(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return a(e,o);if(e.constructor!==Object&&(r=t.get(e.constructor)))return r(e,o);let i={};for(let a in e){if(Object.hasOwnProperty.call(e,a)===!1)continue;let s=e[a];i[a]=typeof s!=`object`||!s?s:s.constructor!==Object&&(r=t.get(s.constructor))?r(s,o):ArrayBuffer.isView(s)?n(s):o(s)}return i}function s(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return a(e,s);if(e.constructor!==Object&&(r=t.get(e.constructor)))return r(e,s);let i={};for(let a in e){let o=e[a];i[a]=typeof o!=`object`||!o?o:o.constructor!==Object&&(r=t.get(o.constructor))?r(o,s):ArrayBuffer.isView(o)?n(o):s(o)}return i}}function i(e){let t=[],r=[],i=/* @__PURE__ */ new Map;if(i.set(Date,e=>new Date(e)),i.set(Map,(e,t)=>new Map(o(Array.from(e),t))),i.set(Set,(e,t)=>new Set(o(Array.from(e),t))),e.constructorHandlers)for(let t of e.constructorHandlers)i.set(t[0],t[1]);let a=null;return e.proto?c:s;function o(e,o){let s=Object.keys(e),c=Array(s.length);for(let l=0;l<s.length;l++){let u=s[l],d=e[u];if(typeof d!=`object`||!d)c[u]=d;else if(d.constructor!==Object&&(a=i.get(d.constructor)))c[u]=a(d,o);else if(ArrayBuffer.isView(d))c[u]=n(d);else{let e=t.indexOf(d);c[u]=e===-1?o(d):r[e]}}return c}function s(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return o(e,s);if(e.constructor!==Object&&(a=i.get(e.constructor)))return a(e,s);let c={};t.push(e),r.push(c);for(let o in e){if(Object.hasOwnProperty.call(e,o)===!1)continue;let l=e[o];if(typeof l!=`object`||!l)c[o]=l;else if(l.constructor!==Object&&(a=i.get(l.constructor)))c[o]=a(l,s);else if(ArrayBuffer.isView(l))c[o]=n(l);else{let e=t.indexOf(l);c[o]=e===-1?s(l):r[e]}}return t.pop(),r.pop(),c}function c(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return o(e,c);if(e.constructor!==Object&&(a=i.get(e.constructor)))return a(e,c);let s={};t.push(e),r.push(s);for(let o in e){let l=e[o];if(typeof l!=`object`||!l)s[o]=l;else if(l.constructor!==Object&&(a=i.get(l.constructor)))s[o]=a(l,c);else if(ArrayBuffer.isView(l))s[o]=n(l);else{let e=t.indexOf(l);s[o]=e===-1?c(l):r[e]}}return t.pop(),r.pop(),s}}})))())).default)();function F5(e,t,n){function r(e){let i=SLe(e);if(i.groupId===t)return i.children=n(i.children),i;let a=[],o=!1;for(let e of i.children)if(`children`in e){let t=r(e);t?(a.push(t),o=!0):a.push(e)}else a.push(e);return i.children=a,o?i:null}let i=r(e);if(!i)throw Error(`Unable to find group with groupId ${t}`);return i}function I5(e,t,n){function r(e){for(let i of e.children){if(n(i,t))return e;if(`children`in i){let e=r(i);if(e)return e}}return null}return r(e)}function L5(e,t){let n=I5(e,t,(e,t)=>`children`in e&&e.groupId===t);if(!n)throw Error(`No parent group found for group with ID ${t}`);return n}function R5(e,t){let n=I5(e,t,(e,t)=>`ruleId`in e&&e.ruleId===t);if(!n)throw Error(`No parent group found for rule with ID ${t}`);return n}function z5(e,t,n){return F5(e,t,e=>[...e,n])}function CLe(e,t){return F5(e,L5(e,t).groupId,e=>e.filter(e=>`groupId`in e?e.groupId!==t:!0))}function wLe(e,t){return F5(e,R5(e,t).groupId,e=>e.filter(e=>`ruleId`in e?e.ruleId!==t:!0))}let B5=`group-root`;function TLe(e,t,n){return t===`group-root`?Object.assign(Object.assign({},e),n):F5(e,L5(e,t).groupId,e=>e.map(e=>`groupId`in e&&e.groupId===t?Object.assign(Object.assign({},e),n):e))}function ELe(e,t,n){return F5(e,R5(e,t).groupId,e=>e.map(e=>`ruleId`in e&&e.ruleId===t?Object.assign(Object.assign({},e),n):e))}function DLe(e,t){let n=(e,t)=>`children`in e?r(e,t):i(e);function r(e,r){return Object.assign(Object.assign({},e),{level:r,config:t.getConfig(),groupId:t.getGroupId(),children:e.children.map(e=>n(e,r+1))})}function i(e){return Object.assign(Object.assign({},e),{ruleId:t.getRuleId(),config:t.getConfig()})}return Object.assign(Object.assign({},e),{config:t.getConfig(),level:1,groupId:B5,children:e.children.map(e=>n(e,2))})}function V5(e){let t=e.children.map(e=>`children`in e?V5(e):OLe(e));return{combinator:e.combinator,children:t}}function OLe(e){let{operator:t,field:n,value:r}=e;return{operator:t,field:n,value:r}}let H5=e=>`${e.getUTCFullYear()}-${String(e.getUTCMonth()+1).padStart(2,`0`)}-${String(e.getUTCDate()).padStart(2,`0`)}`,U5=e=>`${H5(e)}T${String(e.getUTCHours()).padStart(2,`0`)}:${String(e.getUTCMinutes()).padStart(2,`0`)}:${String(e.getUTCSeconds()).padStart(2,`0`)}`,W5=e=>e.operator?.valueType?.input??e.field.input,G5=e=>e.operator?.valueType?.type??e.field.type,K5=e=>{let t={},n=[],r=e=>[...e].sort((e,t)=>`fieldId`in e&&`fieldId`in t?e.fieldId.localeCompare(t.fieldId):`type`in e&&`type`in t?e.type.localeCompare(t.type):0);e.forEach(e=>{if(e.optgroup){let n=e.optgroup;t[n]||(t[n]=[]),t[n].push(e)}else n.push(e)});let i=[];return Object.keys(t).sort().forEach(e=>{i.push({optgroup:e,xs:r(t[e])})}),[...i,...r(n)]};function q5(e,t,n){if(!e.shadowRoot||!t?.customStyles)return;let r=t.customStyles[n];if(r){let t=document.createElement(`style`);t.textContent=r,e.shadowRoot.firstChild?e.shadowRoot.insertBefore(t,e.shadowRoot.firstChild):e.shadowRoot.appendChild(t)}}var J5;(function(e){e.AddGroup=`add-group`,e.DelGroup=`del-group`,e.AddRule=`add-rule`,e.DelRule=`del-rule`,e.UpdateGroup=`update-group`,e.UpdateRule=`update-rule`,e.FieldSelected=`field-selected`,e.OperatorSelected=`operator-selected`,e.ValueUpdated=`value-updated`,e.RemoveVarArg=`remove-variadic-operand`})(J5||(J5={}));let Y5=O` :host{--item-vertical-spacing: 4px;--item-border-radius: 5px;--group-background-color: rgb(250 240 210 / 50%);--group-border-color: #dcc896;--group-border: 1px solid var(--group-border-color);--group-padding: 10px;--rule-background-color: rgb(255 255 255 / 90%);--rule-border-color: #eee;--rule-border: 1px solid var(--rule-border-color);--rule-padding: 5px;--rule-value-separator: 1px solid #ddd;--error-icon-color: #f00;--error-border-color: #f99;--error-background-color: #fdd;--ticks-width: 2px;--ticks-color: #ccc}p.test{color: black}.query-builder{font-family: sans-serif}.rules-group-container{position: relative;margin: var(--item-vertical-spacing) 0;border-radius: var(--item-border-radius);padding: var(--group-padding);border: var(--group-border);background: var(--group-background-color)}.rules-group-header{margin-bottom: var(--group-padding)}.group-conditions{display: inline-block}.group-conditions .btn{padding: 0.25rem 0.5rem;font-size: 0.875rem;line-height: 1.5;border-radius: 0.2rem;border: 1px solid #007bff;color: #007bff;background-color: transparent;cursor: pointer}.group-conditions .btn:hover{background-color: #007bff;color: #fff}.group-conditions .btn.active{background-color: #007bff;color: #fff}.group-actions{display: inline-block;float: right}.rules-list{list-style: none;padding: 0 0 0 20px;/* Adjusted ticks position */ margin: 0}.rule-container{position: relative;margin: var(--item-vertical-spacing) 0;border-radius: var(--item-border-radius);padding: var(--rule-padding);border: var(--rule-border);background: var(--rule-background-color)}.rule-header{margin-bottom: 5px}.rule-actions{display: inline-block;float: right}.rule-field-container, .rule-operator-container, .rule-value-container{display: inline-block;margin: 0 5px 0 0;vertical-align: middle}.rule-value-container{border-left: var(--rule-value-separator);padding-left: 5px}.rule-value-container label{margin-bottom: 0;font-weight: normal}.rule-value-container label.block{display: block}.error-container{display: none;cursor: help;color: var(--error-icon-color);margin-left: 5px}.rule-container.has-error, .rules-group-container.has-error{background-color: var(--error-background-color);border-color: var(--error-border-color)}.rule-container.has-error .error-container, .rules-group-container.has-error .error-container{display: inline-block !important}/* Ticks */ .rules-list > *{position: relative}.rules-list > *::before, .rules-list > *::after{content: '';position: absolute;left: -10px;/* Adjusted ticks position */ width: 10px;/* Adjusted ticks position */ border-color: var(--ticks-color);border-style: solid}.rules-list > *::before{top: -2px;/* Adjusted ticks position */ height: calc(50% + var(--item-vertical-spacing));border-width: 0 0 var(--ticks-width) var(--ticks-width)}.rules-list > *::after{top: 50%;border-width: 0 0 0 var(--ticks-width);height: 50%}.rules-list > *:first-child::before{top: calc(-1 * var(--group-padding) - var(--ticks-width));height: calc(50% + var(--group-padding) + var(--item-vertical-spacing))}.rules-list > *:last-child::before{border-radius: 0 0 0 calc(2 * var(--ticks-width))}.rules-list > *:last-child::after{display: none}`,kLe=O` .rules-group-container{border: 1px solid #ccc;margin-bottom: 10px;padding: 10px}.rules-group-header{margin-bottom: 5px}.btn-group{margin-right: 5px}.btn{padding: 0.25rem 0.5rem;font-size: 0.875rem;line-height: 1.5;border-radius: 0.2rem;cursor: pointer}.btn-success{color: #fff;background-color: #28a745;border-color: #28a745}.btn-danger{color: #fff;background-color: #dc3545;border-color: #dc3545}.radio-group-container{display: flex}.rules-list{list-style: none;padding-left: 0}`,ALe=T` ${e=>{let t=e.styles?.customElements?.radio,{radioTag:n,radioGroupTag:r}=t?{radioTag:t.input,radioGroupTag:t.group}:{radioTag:`input`,radioGroupTag:`div`};return T`<div class="btn-group group-conditions">${u_(e=>n!==`input`,T`<${r}class="radio-group-container" name="combinator" @change="${(e,t)=>e.handleCombinatorChange(t.event)}" value="${e=>e.model?.combinator?.type}">${j(e=>e.config?.combinators??[],T` ${A(e=>!e.invisible,T`<${n}value="${e=>e.type}" ?checked=${(e,t)=>t.parent.model?.combinator?.type===e.type}>${e=>e.label??e.type}</${n}>`)} `)}</${r}>`,T`<div class="radio-group-container">${j(e=>e.config.combinators,T` ${A(e=>!e.invisible,T`<label class="btn btn-sm btn-primary"><input type="radio" name="combinator" value="${e=>e.type}" @change="${(e,t)=>t.parent.handleCombinatorChange(t.event)}" ?checked=${(e,t)=>t.parent.model?.combinator?.type===e.type}/>${e=>e.label??e.type}</label>`)} `)}</div>`)}</div>`}} `,jLe=T`<div class="rules-group-container"><div class="rules-group-header">${T` ${e=>{let t=e.styles?.customElements?.button||`button`,n=`Add a new condition with field (e.g. CURRENCY), operator (e.g. EQUALS), and value (e.g. GBP) that will be combined with other conditions in this group using the selected logic (e.g. ${e.config?.combinators?.[0]?.type})`,r=`Add a new nested sub-group to create more complex expressions, joined by combinatorial logic (e.g. ${e.config?.combinators?.[0]?.type})`;return T`<div class="btn-group float-end group-actions">${A(e=>e.allowAddRule,T`<${t}type="button" class="btn btn-sm btn-success" data-add="rule" @click="${(e,t)=>e.dispatchAddRule(t.event)}" title=${e=>n}>
997
997
  Add Rule </${t}>`)} ${A(e=>e.allowAddGroup,T`<${t}type="button" class="btn btn-sm btn-success" data-add="group" @click="${(e,t)=>e.dispatchAddGroup(t.event)}" title="${e=>r}">
998
998
  Add Group </${t}>`)} ${A(e=>typeof e.index==`number`,T`<${t}type="button" class="btn btn-sm btn-danger" data-delete="group" @click="${(e,t)=>e.dispatchDeleteGroup(t.event)}">
999
- Delete Group </${t}>`)}</div>`}} `} ${OLe}</div><div class="rules-group-body"><div class="rules-list">${j(e=>e.model?.children??[],T` ${u_(e=>`children`in e,T`<expression-group :config=${(e,t)=>t.parent.config}:styles=${(e,t)=>t.parent.styles}:model=${e=>e}:index=${(e,t)=>t.index}></expression-group>`,T`<expression-rule :config=${(e,t)=>t.parent.config}:styles=${(e,t)=>t.parent.styles}:model=${e=>e}:index=${(e,t)=>t.index}></expression-rule>`)} ${A((e,t)=>!t.isLast,T`<p class="group-combinator-link">${(e,t)=>t.parent.model.combinator.type}</p>`)} `,{recycle:!1,positioning:!0})}</div></div></div>`,X5=class extends Qe{connectedCallback(){super.connectedCallback(),q5(this,this.styles,`group`)}get allowAddRule(){return this.model?this.model.combinator.maxRules===`many`||this.model.children.length<this.model.combinator.maxRules:!1}get allowAddGroup(){return!this.model||this.model.combinator.maxRules===1||this.model.combinator.maxRules===2&&this.model.children.length>=2?!1:!this.config?.maxNesting||this.config?.maxNesting<1||this.config.maxNesting>this.model.level}dispatchAddRule(e){if(e.stopPropagation(),!this.allowAddRule)throw Error(`Cannot add extra rules to group`);let t={parentGroupId:this.model.groupId};this.dispatchEvent(new CustomEvent(J5.AddRule,{detail:t,bubbles:!0,composed:!0}))}dispatchAddGroup(e){if(e.stopPropagation(),!this.allowAddGroup)throw Error(`Cannot add further nested groups`);let t={parentGroupId:this.model.groupId,newGroup:{level:this.model.level+1}};this.dispatchEvent(new CustomEvent(J5.AddGroup,{detail:t,bubbles:!0,composed:!0}))}dispatchDeleteGroup(e){e.stopPropagation();let t={groupId:this.model.groupId};this.dispatchEvent(new CustomEvent(J5.DelGroup,{detail:t,bubbles:!0,composed:!0}))}handleCombinatorChange(e){e.stopPropagation();let t=e.target.value;this.updateCombinator(t)}handleCustomCombinatorChange(e){if(e.stopPropagation(),!this.model?.groupId||!e.target)return;let t=e.target.getAttribute(`value`);if(!t)throw Error(`No value found in the custom radio group event target`);this.updateCombinator(t)}updateCombinator(e){let t=this.config.combinators.find(({type:t})=>t===e);if(!t)throw Error(`Cannot find selected combinator ${e}`);this.model?.combinator?.type!==t.type&&this.dispatchGroupDataUpdated(t)}dispatchGroupDataUpdated(e){let t={groupId:this.model.groupId,newData:{combinator:e}};this.dispatchEvent(new CustomEvent(J5.UpdateGroup,{detail:t,bubbles:!0,composed:!0}))}};q([C],X5.prototype,`config`,void 0),q([C],X5.prototype,`styles`,void 0),q([C],X5.prototype,`model`,void 0),q([C],X5.prototype,`index`,void 0),q([w],X5.prototype,`allowAddRule`,null),q([w],X5.prototype,`allowAddGroup`,null),X5=q([$e({name:`expression-group`,template:kLe,styles:DLe,shadowOptions:{delegatesFocus:!0}})],X5);let Z5=T`<div class="query-builder">${A(e=>e.model!==null,T`<expression-group :model=${e=>e.model}:config=${e=>e.config}:styles=${e=>e.styles}></expression-group>`)}</div>`,ALe=T` ${e=>{let t=e.styles?.customElements?.select||`select`,n=e.styles?.customElements?.option||`option`,r=e.styles?.customElements?.optgroup||`optgroup`;return T`<${t}class="form-select" @change=${(e,t)=>e.dispatchFieldsChanged(t.event)}value=${e=>e.field?.fieldId}><${n}value="">Select a field</${n}>${j(e=>e.groupedFieldss,T` ${e=>`xs`in e?T`<${r}label="${e=>e.optgroup}">${j(e=>e.xs,T`<${n}value="${e=>e.fieldId}" ?selected=${(e,t)=>e.fieldId===t.parentContext.parent?.field?.fieldId}>${e=>e.label}</${n}>`)}</${r}>`:T`<${n}value="${e=>e.fieldId}" ?selected=${(e,t)=>e.fieldId===t.parent?.field?.fieldId}>${e=>e.label}</${n}>`} `)}</${t}>`}} `,Q5=class extends Qe{constructor(){super(...arguments),this.fields=[]}connectedCallback(){super.connectedCallback(),q5(this,this.styles,`field`)}get groupedFieldss(){return K5(this.fields)}dispatchFieldsChanged(e){e.stopPropagation();let t={fieldId:e.target.value};this.dispatchEvent(new CustomEvent(J5.FieldSelected,{detail:t,bubbles:!0,composed:!0}))}};q([C],Q5.prototype,`fields`,void 0),q([C],Q5.prototype,`field`,void 0),q([C],Q5.prototype,`config`,void 0),q([C],Q5.prototype,`styles`,void 0),q([w],Q5.prototype,`groupedFieldss`,null),Q5=q([$e({name:`expression-rule-field`,template:ALe})],Q5);let jLe=T` ${e=>{let t=e.styles?.customElements?.select||`select`,n=e.styles?.customElements?.option||`option`,r=e.styles?.customElements?.optgroup||`optgroup`;return T`<${t}class="form-select" @change=${(e,t)=>e.handleOperatorChange(t.event)}value=${e=>e.operator?.type}><${n}value="">Select an operator</${n}>${j(e=>e.groupedOperators,T` ${e=>`xs`in e?T`<${r}label="${e.optgroup}">${j(e=>e.xs,T`<${n}value="${e=>e.type}" ?selected=${(e,t)=>e.type===t.parentContext.parent.operator?.type}title=${e=>e.tooltip}>${e=>e.label??e.type}</${n}>`)}</${r}>`:T`<${n}value="${e=>e.type}" ?selected=${(e,t)=>t.parent.operator?.type===e.type}title=${e=>e.tooltip}>${e=>e.label??e.type}</${n}>`} `)}</${t}>`}} `,$5=class extends Qe{constructor(){super(...arguments),this.operators=[],this.field=null}connectedCallback(){super.connectedCallback(),q5(this,this.styles,`operator`)}get allowedOperators(){let e=e=>(this.field?.operators)?.includes(e.type)??!0,t=e=>{var t;return((t=e?.applyTo)?.includes)?.call(t,this.field?.type)??!0};return this.operators.filter(n=>e(n)&&t(n))}get groupedOperators(){return K5(this.allowedOperators)}handleOperatorChange(e){e.stopPropagation();let t={operatorId:e.target.value};this.dispatchEvent(new CustomEvent(J5.OperatorSelected,{detail:t,bubbles:!0,composed:!0}))}};q([C],$5.prototype,`operators`,void 0),q([C],$5.prototype,`operator`,void 0),q([C],$5.prototype,`field`,void 0),q([C],$5.prototype,`config`,void 0),q([C],$5.prototype,`styles`,void 0),q([w],$5.prototype,`allowedOperators`,null),q([w],$5.prototype,`groupedOperators`,null),$5=q([$e({name:`expression-rule-operator`,template:jLe})],$5);let e7=e=>[`short`,`int`,`long`].includes(e),t7=e=>[`double`,`bigdecimal`].includes(e),MLe=e=>e7(e)?/^[+-]?[0-9]+$/:t7(e)?/[+-]?([0-9]*[.])?[0-9]+/:null,NLe=(e,t)=>MLe(e)?.test(t)??!0?null:`Invalid number format`,PLe=O` .text-input.error{color: red}div.value-and-validation{display: inline-grid;align-items: center}`,FLe=T` ${e=>{let t=W5(e),n=t===`datetime-local`?`datetimeLocal`:t;return T`<${e.styles?.customElements?.[n]||`input`}type="${t}" class="text-input ${e=>fn([`error`,e.validationError])}" value=${e=>e.value}@blur=${(e,t)=>e.handleInputChange(t.event)}/>`}} `,ILe=T` ${e=>{let t=e.styles?.customElements?.select||`select`,n=e.styles?.customElements?.option||`option`;return T`<${t}class="form-select" @change=${(e,t)=>e.handleInputChange(t.event)}value=${e=>e.value}>${j(e=>{let t=e.operator?.valueType?.type===`enum`&&e?.operator?.valueType?.values?e.operator.valueType.values:e.field.type===`enum`&&e.field.values?e.field.values:{};return Object.entries(t)},()=>T`<${n}value="${e=>e[0]}" ?selected=${(e,t)=>e[0]===t.parent.value}title="${e=>typeof e[1]==`object`?e[1].tooltip:``}">${e=>typeof e[1]==`object`?e[1].label:e[1]}</${n}>`)}</${t}>`}} `,LLe=T` ${e=>{let t=e.styles?.customElements?.checkbox;return T`<label><${t||`input`} ${t?``:`type="checkbox"`}?checked=${e=>!!e.value}@change=${(e,t)=>e.handleInputChange(t.event)}role="checkbox" />
1000
- True </label>`}} `,RLe=T`<div>Input type "${e=>W5(e)}" not yet supported.</div>`,zLe=T` ${u_(e=>e.field,T` ${e=>{let t=W5(e);return T`<div class="value-and-validation">${A(()=>[`text`,`number`,`date`,`datetime-local`].includes(t),FLe)} ${A(()=>t===`select`,ILe)} ${A(()=>t===`checkbox`,LLe)} ${A(()=>![`text`,`number`,`select`,`checkbox`,`date`,`datetime-local`].includes(t),RLe)} ${A(e=>e.validationMsg,T`<p class="validation-msg">${e=>e.validationMsg}</p>`)}</div>${A(e=>e.variadic&&e.valueIndex!==`0`,T` ${()=>{let t=e.styles?.customElements?.button||`button`;return T`<${t}type="button" class="btn btn-sm btn-remove" @click="${e=>e.handleRemoveVariadicOperand()}">
999
+ Delete Group </${t}>`)}</div>`}} `} ${ALe}</div><div class="rules-group-body"><div class="rules-list">${j(e=>e.model?.children??[],T` ${u_(e=>`children`in e,T`<expression-group :config=${(e,t)=>t.parent.config}:styles=${(e,t)=>t.parent.styles}:model=${e=>e}:index=${(e,t)=>t.index}></expression-group>`,T`<expression-rule :config=${(e,t)=>t.parent.config}:styles=${(e,t)=>t.parent.styles}:model=${e=>e}:index=${(e,t)=>t.index}></expression-rule>`)} ${A((e,t)=>!t.isLast,T`<p class="group-combinator-link">${(e,t)=>t.parent.model.combinator.type}</p>`)} `,{recycle:!1,positioning:!0})}</div></div></div>`,X5=class extends Qe{connectedCallback(){super.connectedCallback(),q5(this,this.styles,`group`)}get allowAddRule(){return this.model?this.model.combinator.maxRules===`many`||this.model.children.length<this.model.combinator.maxRules:!1}get allowAddGroup(){return!this.model||this.model.combinator.maxRules===1||this.model.combinator.maxRules===2&&this.model.children.length>=2?!1:!this.config?.maxNesting||this.config?.maxNesting<1||this.config.maxNesting>this.model.level}dispatchAddRule(e){if(e.stopPropagation(),!this.allowAddRule)throw Error(`Cannot add extra rules to group`);let t={parentGroupId:this.model.groupId};this.dispatchEvent(new CustomEvent(J5.AddRule,{detail:t,bubbles:!0,composed:!0}))}dispatchAddGroup(e){if(e.stopPropagation(),!this.allowAddGroup)throw Error(`Cannot add further nested groups`);let t={parentGroupId:this.model.groupId,newGroup:{level:this.model.level+1}};this.dispatchEvent(new CustomEvent(J5.AddGroup,{detail:t,bubbles:!0,composed:!0}))}dispatchDeleteGroup(e){e.stopPropagation();let t={groupId:this.model.groupId};this.dispatchEvent(new CustomEvent(J5.DelGroup,{detail:t,bubbles:!0,composed:!0}))}handleCombinatorChange(e){e.stopPropagation();let t=e.target.value;this.updateCombinator(t)}handleCustomCombinatorChange(e){if(e.stopPropagation(),!this.model?.groupId||!e.target)return;let t=e.target.getAttribute(`value`);if(!t)throw Error(`No value found in the custom radio group event target`);this.updateCombinator(t)}updateCombinator(e){let t=this.config.combinators.find(({type:t})=>t===e);if(!t)throw Error(`Cannot find selected combinator ${e}`);this.model?.combinator?.type!==t.type&&this.dispatchGroupDataUpdated(t)}dispatchGroupDataUpdated(e){let t={groupId:this.model.groupId,newData:{combinator:e}};this.dispatchEvent(new CustomEvent(J5.UpdateGroup,{detail:t,bubbles:!0,composed:!0}))}};q([C],X5.prototype,`config`,void 0),q([C],X5.prototype,`styles`,void 0),q([C],X5.prototype,`model`,void 0),q([C],X5.prototype,`index`,void 0),q([w],X5.prototype,`allowAddRule`,null),q([w],X5.prototype,`allowAddGroup`,null),X5=q([$e({name:`expression-group`,template:jLe,styles:kLe,shadowOptions:{delegatesFocus:!0}})],X5);let Z5=T`<div class="query-builder">${A(e=>e.model!==null,T`<expression-group :model=${e=>e.model}:config=${e=>e.config}:styles=${e=>e.styles}></expression-group>`)}</div>`,MLe=T` ${e=>{let t=e.styles?.customElements?.select||`select`,n=e.styles?.customElements?.option||`option`,r=e.styles?.customElements?.optgroup||`optgroup`;return T`<${t}class="form-select" @change=${(e,t)=>e.dispatchFieldsChanged(t.event)}value=${e=>e.field?.fieldId}><${n}value="">Select a field</${n}>${j(e=>e.groupedFieldss,T` ${e=>`xs`in e?T`<${r}label="${e=>e.optgroup}">${j(e=>e.xs,T`<${n}value="${e=>e.fieldId}" ?selected=${(e,t)=>e.fieldId===t.parentContext.parent?.field?.fieldId}>${e=>e.label}</${n}>`)}</${r}>`:T`<${n}value="${e=>e.fieldId}" ?selected=${(e,t)=>e.fieldId===t.parent?.field?.fieldId}>${e=>e.label}</${n}>`} `)}</${t}>`}} `,Q5=class extends Qe{constructor(){super(...arguments),this.fields=[]}connectedCallback(){super.connectedCallback(),q5(this,this.styles,`field`)}get groupedFieldss(){return K5(this.fields)}dispatchFieldsChanged(e){e.stopPropagation();let t={fieldId:e.target.value};this.dispatchEvent(new CustomEvent(J5.FieldSelected,{detail:t,bubbles:!0,composed:!0}))}};q([C],Q5.prototype,`fields`,void 0),q([C],Q5.prototype,`field`,void 0),q([C],Q5.prototype,`config`,void 0),q([C],Q5.prototype,`styles`,void 0),q([w],Q5.prototype,`groupedFieldss`,null),Q5=q([$e({name:`expression-rule-field`,template:MLe})],Q5);let NLe=T` ${e=>{let t=e.styles?.customElements?.select||`select`,n=e.styles?.customElements?.option||`option`,r=e.styles?.customElements?.optgroup||`optgroup`;return T`<${t}class="form-select" @change=${(e,t)=>e.handleOperatorChange(t.event)}value=${e=>e.operator?.type}><${n}value="">Select an operator</${n}>${j(e=>e.groupedOperators,T` ${e=>`xs`in e?T`<${r}label="${e.optgroup}">${j(e=>e.xs,T`<${n}value="${e=>e.type}" ?selected=${(e,t)=>e.type===t.parentContext.parent.operator?.type}title=${e=>e.tooltip}>${e=>e.label??e.type}</${n}>`)}</${r}>`:T`<${n}value="${e=>e.type}" ?selected=${(e,t)=>t.parent.operator?.type===e.type}title=${e=>e.tooltip}>${e=>e.label??e.type}</${n}>`} `)}</${t}>`}} `,$5=class extends Qe{constructor(){super(...arguments),this.operators=[],this.field=null}connectedCallback(){super.connectedCallback(),q5(this,this.styles,`operator`)}get allowedOperators(){let e=e=>(this.field?.operators)?.includes(e.type)??!0,t=e=>{var t;return((t=e?.applyTo)?.includes)?.call(t,this.field?.type)??!0};return this.operators.filter(n=>e(n)&&t(n))}get groupedOperators(){return K5(this.allowedOperators)}handleOperatorChange(e){e.stopPropagation();let t={operatorId:e.target.value};this.dispatchEvent(new CustomEvent(J5.OperatorSelected,{detail:t,bubbles:!0,composed:!0}))}};q([C],$5.prototype,`operators`,void 0),q([C],$5.prototype,`operator`,void 0),q([C],$5.prototype,`field`,void 0),q([C],$5.prototype,`config`,void 0),q([C],$5.prototype,`styles`,void 0),q([w],$5.prototype,`allowedOperators`,null),q([w],$5.prototype,`groupedOperators`,null),$5=q([$e({name:`expression-rule-operator`,template:NLe})],$5);let e7=e=>[`short`,`int`,`long`].includes(e),t7=e=>[`double`,`bigdecimal`].includes(e),PLe=e=>e7(e)?/^[+-]?[0-9]+$/:t7(e)?/[+-]?([0-9]*[.])?[0-9]+/:null,FLe=(e,t)=>PLe(e)?.test(t)??!0?null:`Invalid number format`,ILe=O` .text-input.error{color: red}div.value-and-validation{display: inline-grid;align-items: center}`,LLe=T` ${e=>{let t=W5(e),n=t===`datetime-local`?`datetimeLocal`:t;return T`<${e.styles?.customElements?.[n]||`input`}type="${t}" class="text-input ${e=>fn([`error`,e.validationError])}" value=${e=>e.value}@blur=${(e,t)=>e.handleInputChange(t.event)}/>`}} `,RLe=T` ${e=>{let t=e.styles?.customElements?.select||`select`,n=e.styles?.customElements?.option||`option`;return T`<${t}class="form-select" @change=${(e,t)=>e.handleInputChange(t.event)}value=${e=>e.value}>${j(e=>{let t=e.operator?.valueType?.type===`enum`&&e?.operator?.valueType?.values?e.operator.valueType.values:e.field.type===`enum`&&e.field.values?e.field.values:{};return Object.entries(t)},()=>T`<${n}value="${e=>e[0]}" ?selected=${(e,t)=>e[0]===t.parent.value}title="${e=>typeof e[1]==`object`?e[1].tooltip:``}">${e=>typeof e[1]==`object`?e[1].label:e[1]}</${n}>`)}</${t}>`}} `,zLe=T` ${e=>{let t=e.styles?.customElements?.checkbox;return T`<label><${t||`input`} ${t?``:`type="checkbox"`}?checked=${e=>!!e.value}@change=${(e,t)=>e.handleInputChange(t.event)}role="checkbox" />
1000
+ True </label>`}} `,BLe=T`<div>Input type "${e=>W5(e)}" not yet supported.</div>`,VLe=T` ${u_(e=>e.field,T` ${e=>{let t=W5(e);return T`<div class="value-and-validation">${A(()=>[`text`,`number`,`date`,`datetime-local`].includes(t),LLe)} ${A(()=>t===`select`,RLe)} ${A(()=>t===`checkbox`,zLe)} ${A(()=>![`text`,`number`,`select`,`checkbox`,`date`,`datetime-local`].includes(t),BLe)} ${A(e=>e.validationMsg,T`<p class="validation-msg">${e=>e.validationMsg}</p>`)}</div>${A(e=>e.variadic&&e.valueIndex!==`0`,T` ${()=>{let t=e.styles?.customElements?.button||`button`;return T`<${t}type="button" class="btn btn-sm btn-remove" @click="${e=>e.handleRemoveVariadicOperand()}">
1001
1001
  -
1002
- </${t}>`}} `)} `}} `,T`<div>Select a field to set value</div>`)} `,n7=class extends Qe{constructor(){super(...arguments),this.variadic=!1,this.validationError=!1,this.field=null,this.operator=null}connectedCallback(){super.connectedCallback(),q5(this,this.styles,`value`)}validateInput(e){return this.field&&[`validation`in this.field?this.field.validation(e):null,NLe(G5(this),e)].filter(e=>!!e).join(`, `)||null}handleInputChange(e){e.stopPropagation();let t=e.target;if(t.type!==`checkbox`&&t.type!==`select-one`){let e=this.validateInput(t.value);if(e){this.validationError=!0,this.validationMsg=e;return}this.validationError=!1,this.validationMsg=null}let n;n=t.getAttribute(`role`)===`checkbox`?t.checked:t.type===`select-one`?e.target.value:this.field&&e7(G5(this))?parseInt(t.value):this.field&&t7(G5(this))?parseFloat(t.value):t.value,this.value=n;let r={value:n,index:parseInt(this.valueIndex)};this.dispatchEvent(new CustomEvent(J5.ValueUpdated,{detail:r,bubbles:!0,composed:!0}))}handleRemoveVariadicOperand(){if(!this.variadic)throw Error(`Cannot remove inputs for non-variadic operator`);let e={index:parseInt(this.valueIndex)};this.dispatchEvent(new CustomEvent(J5.RemoveVarArg,{detail:e,bubbles:!0,composed:!0}))}};q([D({attribute:`value-index`})],n7.prototype,`valueIndex`,void 0),q([D({mode:`boolean`})],n7.prototype,`variadic`,void 0),q([D({mode:`boolean`,attribute:`validation-error`})],n7.prototype,`validationError`,void 0),q([D({attribute:`validation-msg`})],n7.prototype,`validationMsg`,void 0),q([C],n7.prototype,`field`,void 0),q([C],n7.prototype,`operator`,void 0),q([C],n7.prototype,`value`,void 0),q([C],n7.prototype,`config`,void 0),q([C],n7.prototype,`styles`,void 0),n7=q([$e({name:`expression-rule-value`,template:zLe,styles:PLe,shadowOptions:{delegatesFocus:!0}})],n7);let r7=(e,t)=>t.field.defaultValue===void 0?VLe(e,t):t.field.defaultValue,BLe=(e,t)=>n=>{if(e?.valueType?.type!==t.operator?.valueType?.type||!(`value`in t)||!t.value||!t.operator)return null;let r=t.operator.nbInputs===1?[t.value]:t.value;return n>=r.length?null:r[n]},VLe=(e,t)=>{switch(G5(Object.assign(Object.assign({},t),{operator:e}))){case`string`:return``;case`boolean`:return!1;case`date`:return H5(/* @__PURE__ */ new Date);case`date-time`:return U5(/* @__PURE__ */ new Date);case`double`:case`int`:case`bigdecimal`:case`short`:case`long`:return 0;case`enum`:{let n=e?.valueType?.type===`enum`?e?.valueType?.values:t.field.type===`enum`?t.field.values:{};if(Object.keys(n).length===0)throw Error(`Enums require configured values`);return Object.keys(n)[0]}}},HLe=(e,t)=>{let n=BLe(e,t);switch(e.nbInputs){case 0:return{field:t.field,operator:e,value:void 0};case 1:return{field:t.field,operator:e,value:n(0)??r7(e,t)};case 2:return{field:t.field,operator:e,value:[n(0)??r7(e,t),n(1)??r7(e,t)]};case`many`:return{field:t.field,operator:e,value:[n(0)??r7(e,t)]}}},ULe=(e,t,n)=>{switch(e.operator.nbInputs){case 0:throw Error(`Cannot set the value for a UniraryOperator`);case 1:return{field:e.field,operator:e.operator,value:t};case 2:case`many`:if(!(`value`in e)||!Array.isArray(e.value))throw Error(`Invalid value shape for rule`);return{field:e.field,operator:e.operator,value:e.value.map((e,r)=>r===n?t:e)}}},WLe=e=>!e&&e!==0,GLe=e=>{if(!e.field||!e.operator)return!0;if(e.operator.nbInputs===0)return!1;if(!(`value`in e))throw Error(`No value set as required for operator`);return G5(e)!==`boolean`&&!!(Array.isArray(e.value)?e.value:[e.value]).some(WLe)},KLe=O` .rule-container{border: 1px solid #eee;margin-bottom: 5px;padding: 5px;display: grid;grid-template-columns: auto 1fr}.rule-container.error{border-color: red}.margin{margin-left: calc(var(--design-unit) * 1px);margin-right: calc(var(--design-unit) * 1px)}.rule-header{margin-bottom: 5px;display: flex;justify-content: flex-end}.rule-actions{display: inline-block}.rule-content{display: flex;flex-wrap: wrap;align-items: center}.rule-field-container, .rule-operator-container, .rule-value-container{display: inline-block;margin: 0 5px 0 0;vertical-align: middle}.rule-value-container{border-left: var(--rule-value-separator);padding-left: 5px}.rule-value-container label{margin-bottom: 0;font-weight: normal}.rule-value-container label.block{display: block}expression-rule-value{display: flex}`,qLe=T` ${e=>{let t=e.styles?.customElements?.button||`button`;return T`<div class="rule-container ${e=>fn([`error`,e.error])}"><div class="rule-content"><expression-rule-field class="margin" :fields=${e=>e.config.fields}:field=${e=>e.model?.field}:config=${e=>e.config}:styles=${e=>e.styles}@field-selected=${(e,t)=>e.handleFieldSelected(t.event)}></expression-rule-field><expression-rule-operator class="margin" :operators=${e=>e.config.operators}:field=${e=>e.model.field}:operator=${e=>e.model?.operator}:config=${e=>e.config}:styles=${e=>e.styles}@operator-selected=${(e,t)=>e.handleOperatorSelected(t.event)}></expression-rule-operator>${j(e=>e.operandIterator,T`<expression-rule-value class="margin" :config=${(e,t)=>t.parent.config}:styles=${(e,t)=>t.parent.styles}:field=${(e,t)=>t.parent.model.field}:operator=${(e,t)=>t.parent.model.operator}:value=${(e,t)=>t.parent.operandValue(t.index)}value-index=${(e,t)=>t.index}?variadic=${(e,t)=>t.parent.model?.operator?.nbInputs===`many`}@value-updated=${(e,t)=>t.parent.handleValueChanged(t.event)}@remove-variadic-operand=${(e,t)=>t.parent.handleRemoveVarArg(t.event)}></expression-rule-value>`,{positioning:!0,recycle:!1})} ${A(e=>e.model?.operator?.nbInputs===`many`,T`<${t}type="button" class="btn btn-sm btn-accept" @click="${e=>e.dispatchAddVarArg()}">
1002
+ </${t}>`}} `)} `}} `,T`<div>Select a field to set value</div>`)} `,n7=class extends Qe{constructor(){super(...arguments),this.variadic=!1,this.validationError=!1,this.field=null,this.operator=null}connectedCallback(){super.connectedCallback(),q5(this,this.styles,`value`)}validateInput(e){return this.field&&[`validation`in this.field?this.field.validation(e):null,FLe(G5(this),e)].filter(e=>!!e).join(`, `)||null}handleInputChange(e){e.stopPropagation();let t=e.target;if(t.type!==`checkbox`&&t.type!==`select-one`){let e=this.validateInput(t.value);if(e){this.validationError=!0,this.validationMsg=e;return}this.validationError=!1,this.validationMsg=null}let n;n=t.getAttribute(`role`)===`checkbox`?t.checked:t.type===`select-one`?e.target.value:this.field&&e7(G5(this))?parseInt(t.value):this.field&&t7(G5(this))?parseFloat(t.value):t.value,this.value=n;let r={value:n,index:parseInt(this.valueIndex)};this.dispatchEvent(new CustomEvent(J5.ValueUpdated,{detail:r,bubbles:!0,composed:!0}))}handleRemoveVariadicOperand(){if(!this.variadic)throw Error(`Cannot remove inputs for non-variadic operator`);let e={index:parseInt(this.valueIndex)};this.dispatchEvent(new CustomEvent(J5.RemoveVarArg,{detail:e,bubbles:!0,composed:!0}))}};q([D({attribute:`value-index`})],n7.prototype,`valueIndex`,void 0),q([D({mode:`boolean`})],n7.prototype,`variadic`,void 0),q([D({mode:`boolean`,attribute:`validation-error`})],n7.prototype,`validationError`,void 0),q([D({attribute:`validation-msg`})],n7.prototype,`validationMsg`,void 0),q([C],n7.prototype,`field`,void 0),q([C],n7.prototype,`operator`,void 0),q([C],n7.prototype,`value`,void 0),q([C],n7.prototype,`config`,void 0),q([C],n7.prototype,`styles`,void 0),n7=q([$e({name:`expression-rule-value`,template:VLe,styles:ILe,shadowOptions:{delegatesFocus:!0}})],n7);let r7=(e,t)=>t.field.defaultValue===void 0?ULe(e,t):t.field.defaultValue,HLe=(e,t)=>n=>{if(e?.valueType?.type!==t.operator?.valueType?.type||!(`value`in t)||!t.value||!t.operator)return null;let r=t.operator.nbInputs===1?[t.value]:t.value;return n>=r.length?null:r[n]},ULe=(e,t)=>{switch(G5(Object.assign(Object.assign({},t),{operator:e}))){case`string`:return``;case`boolean`:return!1;case`date`:return H5(/* @__PURE__ */ new Date);case`date-time`:return U5(/* @__PURE__ */ new Date);case`double`:case`int`:case`bigdecimal`:case`short`:case`long`:return 0;case`enum`:{let n=e?.valueType?.type===`enum`?e?.valueType?.values:t.field.type===`enum`?t.field.values:{};if(Object.keys(n).length===0)throw Error(`Enums require configured values`);return Object.keys(n)[0]}}},WLe=(e,t)=>{let n=HLe(e,t);switch(e.nbInputs){case 0:return{field:t.field,operator:e,value:void 0};case 1:return{field:t.field,operator:e,value:n(0)??r7(e,t)};case 2:return{field:t.field,operator:e,value:[n(0)??r7(e,t),n(1)??r7(e,t)]};case`many`:return{field:t.field,operator:e,value:[n(0)??r7(e,t)]}}},GLe=(e,t,n)=>{switch(e.operator.nbInputs){case 0:throw Error(`Cannot set the value for a UniraryOperator`);case 1:return{field:e.field,operator:e.operator,value:t};case 2:case`many`:if(!(`value`in e)||!Array.isArray(e.value))throw Error(`Invalid value shape for rule`);return{field:e.field,operator:e.operator,value:e.value.map((e,r)=>r===n?t:e)}}},KLe=e=>!e&&e!==0,qLe=e=>{if(!e.field||!e.operator)return!0;if(e.operator.nbInputs===0)return!1;if(!(`value`in e))throw Error(`No value set as required for operator`);return G5(e)!==`boolean`&&!!(Array.isArray(e.value)?e.value:[e.value]).some(KLe)},JLe=O` .rule-container{border: 1px solid #eee;margin-bottom: 5px;padding: 5px;display: grid;grid-template-columns: auto 1fr}.rule-container.error{border-color: red}.margin{margin-left: calc(var(--design-unit) * 1px);margin-right: calc(var(--design-unit) * 1px)}.rule-header{margin-bottom: 5px;display: flex;justify-content: flex-end}.rule-actions{display: inline-block}.rule-content{display: flex;flex-wrap: wrap;align-items: center}.rule-field-container, .rule-operator-container, .rule-value-container{display: inline-block;margin: 0 5px 0 0;vertical-align: middle}.rule-value-container{border-left: var(--rule-value-separator);padding-left: 5px}.rule-value-container label{margin-bottom: 0;font-weight: normal}.rule-value-container label.block{display: block}expression-rule-value{display: flex}`,YLe=T` ${e=>{let t=e.styles?.customElements?.button||`button`;return T`<div class="rule-container ${e=>fn([`error`,e.error])}"><div class="rule-content"><expression-rule-field class="margin" :fields=${e=>e.config.fields}:field=${e=>e.model?.field}:config=${e=>e.config}:styles=${e=>e.styles}@field-selected=${(e,t)=>e.handleFieldSelected(t.event)}></expression-rule-field><expression-rule-operator class="margin" :operators=${e=>e.config.operators}:field=${e=>e.model.field}:operator=${e=>e.model?.operator}:config=${e=>e.config}:styles=${e=>e.styles}@operator-selected=${(e,t)=>e.handleOperatorSelected(t.event)}></expression-rule-operator>${j(e=>e.operandIterator,T`<expression-rule-value class="margin" :config=${(e,t)=>t.parent.config}:styles=${(e,t)=>t.parent.styles}:field=${(e,t)=>t.parent.model.field}:operator=${(e,t)=>t.parent.model.operator}:value=${(e,t)=>t.parent.operandValue(t.index)}value-index=${(e,t)=>t.index}?variadic=${(e,t)=>t.parent.model?.operator?.nbInputs===`many`}@value-updated=${(e,t)=>t.parent.handleValueChanged(t.event)}@remove-variadic-operand=${(e,t)=>t.parent.handleRemoveVarArg(t.event)}></expression-rule-value>`,{positioning:!0,recycle:!1})} ${A(e=>e.model?.operator?.nbInputs===`many`,T`<${t}type="button" class="btn btn-sm btn-accept" @click="${e=>e.dispatchAddVarArg()}">
1003
1003
  +
1004
1004
  </${t}>`)}</div><div class="rule-header"><div class="btn-group rule-actions"><${t}type="button" class="btn btn-sm btn-danger" data-delete="rule" @click="${(e,t)=>e.dispatchDeleteRule(t.event)}">
1005
- Delete Rule </${t}></div></div></div>`}} `,i7=class extends Qe{constructor(){super(...arguments),this.error=!1}connectedCallback(){super.connectedCallback(),q5(this,this.styles,`rule`),this.config.partialRuleValidationWarning&&(this.error=GLe(this.model))}variadicRule(e){return e.operator.nbInputs===`many`&&`value`in e&&Array.isArray(e.value)}get operandIterator(){if(this.model.operator?.nbInputs===`many`){if(!this.variadicRule(this.model))throw Error(`Varargs disabled for many nbInputs`);return Array(this.model.value.length).fill(!0)}return Array(this.model.operator?.nbInputs??0).fill(!0)}operandValue(e){if(this.model.operator){if(this.model.operator.nbInputs===1&&`value`in this.model)return this.model.value;if((this.model.operator.nbInputs===2||this.model.operator.nbInputs===`many`)&&`value`in this.model&&Array.isArray(this.model.value))return this.model.value[e];throw Error(`Invalid operand lookup`)}}dispatchAddVarArg(){if(!this.variadicRule(this.model))throw Error(`Cannot add inputs for non-variadic operator, or invalid format`);let e={ruleId:this.model.ruleId,newData:{operator:this.model.operator,field:this.model.field,value:[...this.model.value,r7(this.model.operator,this.model)]}};this.dispatchEvent(new CustomEvent(J5.UpdateRule,{detail:e,bubbles:!0,composed:!0}))}handleRemoveVarArg(e){let{index:t}=e.detail;if(!this.variadicRule(this.model))throw Error(`Cannot remove inputs for non-variadic operator, or invalid format`);let n={ruleId:this.model.ruleId,newData:{operator:this.model.operator,field:this.model.field,value:this.model.value.filter((e,n)=>n!==t)}};this.dispatchEvent(new CustomEvent(J5.UpdateRule,{detail:n,bubbles:!0,composed:!0}))}dispatchDeleteRule(e){e.stopPropagation();let t={ruleId:this.model.ruleId};this.dispatchEvent(new CustomEvent(J5.DelRule,{detail:t,bubbles:!0,composed:!0}))}handleFieldSelected(e){e.stopPropagation();let{fieldId:t}=e.detail,n=this.config.fields.find(e=>e.fieldId===t)??null,r={ruleId:this.model.ruleId,newData:{field:n,value:null,operator:null}};this.dispatchEvent(new CustomEvent(J5.UpdateRule,{detail:r,bubbles:!0,composed:!0}))}handleValueChanged(e){e.stopPropagation();let{value:t,index:n}=e.detail,r={ruleId:this.model.ruleId,newData:ULe(this.model,t,n)};this.dispatchEvent(new CustomEvent(J5.UpdateRule,{detail:r,bubbles:!0,composed:!0}))}handleOperatorSelected(e){e.stopPropagation();let{operatorId:t}=e.detail;if(!t)return;let n=this.config.operators.find(e=>e.type===t)??null;if(!n)throw Error(`Unable to find operator of type ${t}`);this.dispatchEvent(new CustomEvent(J5.UpdateRule,{detail:{ruleId:this.model.ruleId,newData:HLe(n,this.model)},bubbles:!0,composed:!0}))}};q([C],i7.prototype,`config`,void 0),q([C],i7.prototype,`styles`,void 0),q([C],i7.prototype,`model`,void 0),q([C],i7.prototype,`index`,void 0),q([D({mode:`boolean`})],i7.prototype,`error`,void 0),q([w],i7.prototype,`operandIterator`,null),i7=q([$e({name:`expression-rule`,template:qLe,styles:KLe,shadowOptions:{delegatesFocus:!0}})],i7);let a7=class extends Qe{constructor(){super(...arguments),this.model=null,this.ruleCount=0,this.groupCount=0,this.userUpdatingModel=!1,this.handleAddGroup=this._handleAddGroup.bind(this),this.handleAddRule=this._handleAddRule.bind(this),this.handleDeleteGroup=this._handleDeleteGroup.bind(this),this.handleDeleteRule=this._handleDeleteRule.bind(this),this.handleUpdateGroupData=this._handleUpdateGroupData.bind(this),this.handleUpdateRuleData=this._handleUpdateRuleData.bind(this)}configChanged(e,t){if(!this.isValidConfig(t)){console.warn(`Invalid config passed to ExpressionBuilder. Verify you've defined operators, fields, and combinators.`);return}t.model?(this.ruleCount=0,this.groupCount=0,this.userUpdatingModel=!0,this.model=TLe(t.model,this),this.userUpdatingModel=!1):this.model===null&&this.initBaseModel()}modelChanged(e,t){if(!t||this.userUpdatingModel)return;let n=V5(t);this.dispatchChangeEvent(n)}dispatchChangeEvent(e){this.dispatchEvent(new CustomEvent(`change`,{detail:e,bubbles:!0,cancelable:!0,composed:!0}))}getConfig(){return this.config}getGroupId(){return this.groupCount+=1,`group-${this.groupCount}`}getRuleId(){return this.ruleCount+=1,`rule-${this.ruleCount}`}connectedCallback(){if(super.connectedCallback(),this.addEventListener(J5.AddGroup,this.handleAddGroup),this.addEventListener(J5.DelGroup,this.handleDeleteGroup),this.addEventListener(J5.AddRule,this.handleAddRule),this.addEventListener(J5.DelRule,this.handleDeleteRule),this.addEventListener(J5.UpdateGroup,this.handleUpdateGroupData),this.addEventListener(J5.UpdateRule,this.handleUpdateRuleData),!this.isValidConfig(this.config)){this.config&&console.warn(`Config detected during connectedCallback but it isn't valid`),this.config=null;return}this.config.model||this.initBaseModel()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(J5.AddGroup,this.handleAddGroup),this.removeEventListener(J5.DelGroup,this.handleDeleteGroup),this.removeEventListener(J5.AddRule,this.handleAddRule),this.removeEventListener(J5.DelRule,this.handleDeleteRule),this.removeEventListener(J5.UpdateGroup,this.handleUpdateGroupData),this.removeEventListener(J5.UpdateRule,this.handleUpdateRuleData)}isValidConfig(e){return!!(e&&e.combinators?.length&&e.operators?.length&&e.fields?.length)}initBaseModel(){if(!this.isValidConfig(this.config))throw Error(`Invalid config set on ExpressionBuilder. Verify you've defined operators, fields, and combinators.`);this.model={children:[],level:1,groupId:B5,config:this.config,combinator:this.config.combinators[0]}}_handleAddGroup(e){let{parentGroupId:t,newGroup:n}=e.detail,r={groupId:this.getGroupId(),level:n.level,children:[],config:this.config,combinator:this.config.combinators[0]};this.model=z5(this.model,t,r)}_handleAddRule(e){let{parentGroupId:t}=e.detail,n={ruleId:this.getRuleId(),config:this.config,field:null,operator:null,value:null};this.model=z5(this.model,t,n)}_handleDeleteGroup(e){let{groupId:t}=e.detail;this.model=xLe(this.model,t)}_handleDeleteRule(e){let{ruleId:t}=e.detail;this.model=SLe(this.model,t)}_handleUpdateGroupData(e){let{groupId:t,newData:n}=e.detail;this.model=CLe(this.model,t,n)}_handleUpdateRuleData(e){let{ruleId:t,newData:n}=e.detail;this.model=wLe(this.model,t,n)}};q([C],a7.prototype,`config`,void 0),q([C],a7.prototype,`styles`,void 0),q([C],a7.prototype,`model`,void 0),a7=q([$e({name:`expression-builder`,template:Z5,styles:Y5})],a7);let o7=class extends a7{};o7=q([$e({name:`foundation-expression-builder`,styles:Y5,template:Z5})],o7);let s7=[`int`,`short`,`long`],c7=[`double`,`bigdecimal`],l7=[...s7,...c7],u7=[`date`,`date-time`],d7=[`string`,`enum`],f7=[`boolean`],p7=e=>e.operator?.valueType?.type??e.field.type;function m7(e){switch(p7(e)){case`int`:case`long`:case`double`:case`bigdecimal`:case`date`:case`date-time`:case`short`:return`NUMBER`;case`string`:case`enum`:return`STRING`;case`boolean`:return`BOOLEAN`}}function h7(e,t,n){return`value`in e?{TYPE:`BINARY_EXPRESSION`,LEFT:{TYPE:`FIELD`,NAME:e.field.fieldId},OPERATION:t,RIGHT:{TYPE:n,VALUE:e.value}}:null}function g7(e,t,n){return{TYPE:`BINARY_EXPRESSION`,LEFT:{TYPE:`FIELD`,NAME:e.field.fieldId},OPERATION:t,RIGHT:n}}function _7(e,t,n=[]){return`value`in e?{TYPE:`METHOD_EXPRESSION`,PARAMETERS:[{TYPE:`FIELD`,NAME:e.field.fieldId},...n],METHOD:t}:null}function v7(e){let t=t=>{let n=p7(e);if(d7.includes(n))return t;if(l7.includes(n))return t.toString();if(f7.includes(n))return t;if(Array.isArray(t))throw Error(`Not implemented TernararyOperator or VariadicOperator args in rule value transformer`);if(u7.includes(n))return new Date(t).getTime().toString();throw Error(`Unhandled transformRuleValue case`)},n=!(!(`value`in e)||e.value===void 0||e.value===null);return Object.assign(Object.assign({},e),n?{value:t(e.value)}:{})}function y7(e,t){return{TYPE:`PREDICATE_EXPRESSION`,OPERATION:e.combinator.type,EXPRESSIONS:e.children.map(e=>`children`in e?y7(e,t):t(e)).filter(Boolean)}}function b7(e,t){let n=t=>{let n=p7(e);if(d7.includes(n))return t;if(s7.includes(n))return parseInt(t);if(c7.includes(n))return parseFloat(t);if(f7.includes(n))return t;if(u7.includes(n)){let e=new Date(parseInt(t));return n===`date`?H5(e):U5(e)}throw Error(`Unhandled rebuildRuleValue case`)},r=e.operator.nbInputs;if(r===`many`||r===2)throw Error(`Not implemented TernararyOperator or VariadicOperator args in rebuildRuleValue`);return Object.assign(Object.assign({},e),r===0?{}:{value:n(t.VALUE)})}let x7={template:Z5,styles:Y5};var S7;(function(e){e.methodCall={CONTAINS_IGNORE_CASE:`CONTAINS_IGNORE_CASE`,CONTAINS_WORDS_STARTING_WITH_IGNORE_CASE:`CONTAINS_WORDS_STARTING_WITH_IGNORE_CASE`,IS_NULL_OR_BLANK:`IS_NULL_OR_BLANK`,NOT_NULL_OR_BLANK:`NOT_NULL_OR_BLANK`,TRIM:`TRIM`,LONG_TO_DATE:`LONG_TO_DATE`,LONG_TO_DATE_TIME:`LONG_TO_DATE_TIME`,DATE_TIME_IS_IN_RANGE:`DATE_TIME_IS_IN_RANGE`},e.logicalOperations={AND:`AND`,OR:`OR`},e.operations=Object.assign(Object.assign({},e.logicalOperations),{GREATER_THAN:`GREATER_THAN`,LESS_THAN:`LESS_THAN`,GREATER_THAN_OR_EQUAL:`GREATER_THAN_OR_EQUAL`,LESS_THAN_OR_EQUAL:`LESS_THAN_OR_EQUAL`,EQUALS:`EQUALS`,NOT_EQUALS:`NOT_EQUALS`,PLUS:`PLUS`,MINUS:`MINUS`,MULTIPLY:`MULTIPLY`,DIVIDE:`DIVIDE`,BITWISE_AND:`BITWISE_AND`,BITWISE_OR:`BITWISE_OR`,ASSIGNMENT:`ASSIGNMENT`,IS_CURRENT:`IS_CURRENT`,IS_PREVIOUS:`IS_PREVIOUS`})})(S7||(S7={}));let C7=[{type:S7.logicalOperations.AND,maxRules:`many`},{type:S7.logicalOperations.OR,maxRules:`many`}],$={EQUALS:S7.operations.EQUALS,NOT_EQUALS:S7.operations.NOT_EQUALS,IS_NULL:`IS_NULL`,NOT_NULL:`NOT_NULL`,IS_NULL_OR_BLANK:`IS_NULL_OR_BLANK`,NOT_NULL_OR_BLANK:`NOT_NULL_OR_BLANK`,CONTAINS:`CONTAINS`,CONTAINS_WORDS_STARTING_WITH:`CONTAINS_WORDS_STARTING_WITH`,CONTAINS_WORDS_STARTING_SPLIT_DELIMITER:`CONTAINS_WORDS_STARTING_SPLIT_DELIMITER`,GREATER_THAN:S7.operations.GREATER_THAN,GREATER_THAN_OR_EQUAL:S7.operations.GREATER_THAN_OR_EQUAL,LESS_THAN:S7.operations.LESS_THAN,LESS_THAN_OR_EQUAL:S7.operations.LESS_THAN_OR_EQUAL,IS_BEFORE:`IS_BEFORE`,IS_AFTER:`IS_AFTER`,ON_OR_BEFORE:`ON_OR_BEFORE`,ON_OR_AFTER:`ON_OR_AFTER`,IS_CURRENT:S7.operations.IS_CURRENT,IS_PREVIOUS:S7.operations.IS_PREVIOUS},w7=e=>({type:`enum`,input:`select`,values:e}),JLe=w7({HOUR:{label:`Hour`,tooltip:`Beginning of the hour immediately preceding the current one to the current hour.`},DAY:{label:`Day`,tooltip:`Midnight on the day before today to midnight of the current day.`},WEEK_DAY:{label:`Week day`,tooltip:`Midnight on the day before today to midnight of the current day. If the current day is Monday then the previous day is Friday.`},WEEK:{label:`Week`,tooltip:`Midnight on the Monday of the previous week to midnight on the Monday of the current week.`},MONTH:{label:`Month`,tooltip:`Midnight on the 1st of the previous month to midnight on the 1st of the current month.`},YEAR:{label:`Year`,tooltip:`Midnight on Jan 1st of the previous year to midnight on the 1st Jan of the current year.`}}),YLe=w7({HOUR:{label:`Hour`,tooltip:`Beginning of the current hour to beginning of the next hour.`},DAY:{label:`Day`,tooltip:`Midnight on the current day day to midnight of the next day.`},WEEK_DAY:{label:`Week day`,tooltip:`Midnight on the current day day to midnight of the next day. This filter will never match Sat or Sun, always returning false on the weekends.`},WEEK:{label:`Week`,tooltip:`Midnight on the Monday of the current week to midnight on the Monday of the next week.`},MONTH:{label:`Month`,tooltip:`Midnight on the 1st of the current month to midnight on the 1st of the next month.`},YEAR:{label:`Year`,tooltip:`Midnight on Jan 1st of the current year to midnight on the 1st Jan of the next year.`}}),T7=[{type:$.EQUALS,label:`Equals`,nbInputs:1,applyTo:[...d7,...f7,...l7,...u7],tooltip:`Check the equality of the field compared to a set value`},{type:$.NOT_EQUALS,label:`Not equals`,nbInputs:1,applyTo:[...d7,...f7,...l7,...u7],tooltip:`Check that the field is different from a set value`},{type:$.IS_NULL,label:`Is null`,nbInputs:0,applyTo:[`enum`,...f7,...l7,...u7],tooltip:`Check if the field value is null`},{type:$.NOT_NULL,label:`Not null`,nbInputs:0,applyTo:[`enum`,...f7,...l7,...u7],tooltip:`Check if the field value is not null`},{type:$.IS_NULL_OR_BLANK,label:`Is null or blank`,nbInputs:0,applyTo:[`string`],tooltip:`Check if the field value is null or an empty string`},{type:$.NOT_NULL_OR_BLANK,label:`Not null or blank`,nbInputs:0,applyTo:[`string`],tooltip:`Check if the field value is not null and not an empty string`},{type:$.CONTAINS,label:`Contains`,nbInputs:1,applyTo:[`string`],tooltip:`Check if the field contains the specified text (case insensitive)`},{type:$.CONTAINS_WORDS_STARTING_WITH,label:`Contains words starting with`,nbInputs:1,applyTo:[`string`],tooltip:`Check if the field contains words that start with the specified text, split by whitespace (case insensitive)`},{type:$.CONTAINS_WORDS_STARTING_SPLIT_DELIMITER,label:`Contains words starting with (split)`,nbInputs:2,applyTo:[`string`],tooltip:`Check if field contains words starting with text, split by a delimiter (case insensitive)`},{type:$.GREATER_THAN,label:`Greater than`,nbInputs:1,applyTo:[...l7],tooltip:`Check if the field value is greater than a specified number`},{type:$.GREATER_THAN_OR_EQUAL,label:`Greater than or equal to`,nbInputs:1,applyTo:[...l7],tooltip:`Check if the field value is greater than or equal to a specified number`},{type:$.LESS_THAN,label:`Less than`,nbInputs:1,applyTo:[...l7],tooltip:`Check if the field value is less than a specified number`},{type:$.LESS_THAN_OR_EQUAL,label:`Less than or equal to`,nbInputs:1,applyTo:[...l7],tooltip:`Check if the field value is less than or equal to a specified number`},{type:$.IS_BEFORE,label:`Is before`,nbInputs:1,applyTo:[...u7],tooltip:`Check if the field is before a specified date/time`},{type:$.IS_AFTER,label:`Is after`,nbInputs:1,applyTo:[...u7],tooltip:`Check if the field is after a specified date/time`},{type:$.ON_OR_BEFORE,label:`On or before`,nbInputs:1,applyTo:[...u7],tooltip:`Check if the field is on or before a specified date/time`},{type:$.ON_OR_AFTER,label:`On or after`,nbInputs:1,applyTo:[...u7],tooltip:`Check if the field is on or after a specified date/time`},{type:$.IS_CURRENT,label:`Is current`,nbInputs:1,applyTo:[...u7],tooltip:`Check whether the current date/time matches the current hour/day/work day/week/month/year.`,valueType:YLe,optgroup:`Relative Period`},{type:$.IS_PREVIOUS,label:`Is previous`,nbInputs:1,applyTo:[...u7],tooltip:`Check whether the current date/time matches the previous hour/day/work day/week/month/year`,valueType:JLe,optgroup:`Relative Period`}];function XLe(e){switch(e){case`IS_BEFORE`:return`LESS_THAN`;case`IS_AFTER`:return`GREATER_THAN`;case`ON_OR_BEFORE`:return`LESS_THAN_OR_EQUAL`;case`ON_OR_AFTER`:return`GREATER_THAN_OR_EQUAL`;default:return e}}function ZLe(e,t){switch(t){case $.IS_NULL_OR_BLANK:return _7(e,S7.methodCall.IS_NULL_OR_BLANK,[]);case $.NOT_NULL_OR_BLANK:return _7(e,S7.methodCall.NOT_NULL_OR_BLANK,[]);case $.CONTAINS:if(!(`value`in e))throw Error(`Invalid shape for operator CONTAINS`);return _7(e,S7.methodCall.CONTAINS_IGNORE_CASE,[{TYPE:`STRING`,VALUE:e.value}]);case $.CONTAINS_WORDS_STARTING_WITH:if(!(`value`in e))throw Error(`Invalid shape for operator CONTAINS_WORDS_STARTING_WITH`);return _7(e,S7.methodCall.CONTAINS_WORDS_STARTING_WITH_IGNORE_CASE,[{TYPE:`STRING`,VALUE:e.value}]);case $.CONTAINS_WORDS_STARTING_SPLIT_DELIMITER:if(!(`value`in e)||!Array.isArray(e.value)||e.value.length!==2)throw Error(`Invalid shape for CONTAINS_WORDS_STARTING_SPLIT_DELIMITER`);return _7(e,S7.methodCall.CONTAINS_WORDS_STARTING_WITH_IGNORE_CASE,e.value.map(e=>({TYPE:`STRING`,VALUE:e})));case $.IS_CURRENT:case $.IS_PREVIOUS:if(!(`value`in e))throw Error(`Invalid shape for operator IS_CURRENT | IS_PREVIOUS`);return _7(e,S7.methodCall.DATE_TIME_IS_IN_RANGE,[{TYPE:`STRING`,VALUE:e.value},{TYPE:`STRING`,VALUE:t===$.IS_CURRENT?`CURRENT`:`PREVIOUS`}]);default:throw Error(`Unreachable default case`)}}function QLe(e){if(!(e.operator?.type&&e.field?.fieldId))return null;let t=v7(e),n=m7(t),r=XLe(t.operator.type);switch(r){case $.EQUALS:case $.NOT_EQUALS:case $.GREATER_THAN:case $.GREATER_THAN_OR_EQUAL:case $.LESS_THAN:case $.LESS_THAN_OR_EQUAL:return h7(t,r,n);case $.IS_NULL:return g7(t,S7.operations.EQUALS,{TYPE:`NULL`});case $.NOT_NULL:return g7(t,S7.operations.NOT_EQUALS,{TYPE:`NULL`});case $.IS_NULL_OR_BLANK:case $.NOT_NULL_OR_BLANK:case $.CONTAINS:case $.CONTAINS_WORDS_STARTING_WITH:case $.CONTAINS_WORDS_STARTING_SPLIT_DELIMITER:case $.IS_CURRENT:case $.IS_PREVIOUS:return ZLe(t,r);default:throw Error(`Unmatched case for operator name: ${r}`)}}function $Le(e,t){if(t.field.type!==`date`&&t.field.type!==`date-time`)return e;switch(e){case`LESS_THAN`:return`IS_BEFORE`;case`GREATER_THAN`:return`IS_AFTER`;case`LESS_THAN_OR_EQUAL`:return`ON_OR_BEFORE`;case`GREATER_THAN_OR_EQUAL`:return`ON_OR_AFTER`;default:return e}}function eRe(e,t){let n=(()=>{if(t.RIGHT.TYPE===`NULL`){let e=t.OPERATION===`EQUALS`?$[$.IS_NULL]:$[$.NOT_NULL];return T7.find(t=>t.type===e)}let n=$Le(t.OPERATION,e);return T7.find(e=>e.type===n)})();return Object.assign(Object.assign({},e),{operator:n})}function tRe(e,t){if(t.LEFT.TYPE!==`FIELD`)throw Error(`BinaryExpression LHS must be TYPE === FIELD`);if(![`STRING`,`NUMBER`,`BOOLEAN`,`NULL`].includes(t.RIGHT.TYPE))throw Error(`BinaryExpression RHS must be TYPE === NUMBER | STRING | BOOLEAN | NULL`);return b7(eRe({field:e.find(e=>e.fieldId===t.LEFT.NAME)},t),t.RIGHT)}function nRe(e,t){let[n,r]=(()=>{switch(!0){case t.METHOD===`IS_NULL_OR_BLANK`:return[$[$.IS_NULL_OR_BLANK],void 0];case t.METHOD===`NOT_NULL_OR_BLANK`:return[$[$.NOT_NULL_OR_BLANK],void 0];case t.METHOD===`CONTAINS_IGNORE_CASE`:return[$[$.CONTAINS],t.PARAMETERS[1].VALUE];case t.METHOD===`CONTAINS_WORDS_STARTING_WITH_IGNORE_CASE`&&t.PARAMETERS.length===2:return[$[$.CONTAINS_WORDS_STARTING_WITH],t.PARAMETERS[1].VALUE];case t.METHOD===`CONTAINS_WORDS_STARTING_WITH_IGNORE_CASE`&&t.PARAMETERS.length===3:return[$[$.CONTAINS_WORDS_STARTING_SPLIT_DELIMITER],t.PARAMETERS.slice(1).map(e=>e.VALUE)];case t.METHOD===S7.methodCall.DATE_TIME_IS_IN_RANGE&&t.PARAMETERS.length===3&&t.PARAMETERS[2].TYPE===`STRING`&&(t.PARAMETERS[2].VALUE===`CURRENT`||t.PARAMETERS[2].VALUE===`PREVIOUS`):return[$[t.PARAMETERS[2].VALUE===`CURRENT`?$.IS_CURRENT:$.IS_PREVIOUS],t.PARAMETERS[1].VALUE];default:throw Error(`Unhandled fromMethodExpression case`)}})();return{field:e.find(e=>e.fieldId===t.PARAMETERS[0].NAME),operator:T7.find(e=>e.type===n),value:r}}function E7(e,t){return{combinator:C7.find(e=>e.type===t.OPERATION),children:t.EXPRESSIONS.map(t=>{if(!(`TYPE`in t))throw Error(`RuleExpression format not yet supported - no TYPE`);if(t.TYPE===`PREDICATE_EXPRESSION`)return E7(e,t);if(t.TYPE===`BINARY_EXPRESSION`)return tRe(e,t);if(t.TYPE===`METHOD_EXPRESSION`)return nRe(e,t);throw Error(`RuleExpression format not yet supported - unsupported TYPE`)})}}let D7=class extends a7{ruleConfigChanged(e,t){this.config=Object.assign({combinators:C7,operators:T7,fields:t.fields,maxNesting:t.maxNesting,partialRuleValidationWarning:t.partialRuleValidationWarning},t?.model?{model:E7(t.fields,t.model)}:{})}configChanged(e,t){if(t!==null){if(!t.operators||!t.combinators)throw Error(`Unable to detect operators or combinators. Did you set the config on the rule builder via the config property? Use the ruleConfig property instead`);super.configChanged(e,t)}}dispatchChangeEvent(e){let t=y7(e,QLe);this.dispatchEvent(new CustomEvent(`change`,{detail:t,bubbles:!0,cancelable:!0,composed:!0}))}};q([C],D7.prototype,`ruleConfig`,void 0),D7=q([$e({name:`foundation-rule-expression-builder`,styles:Y5,template:Z5})],D7);let O7={TRIM:`TRIM`,PLUS:`PLUS`,MINUS:`MINUS`,MULTIPLY:`MULTIPLY`,DIVIDE:`DIVIDE`,CONVERT_TO_DATE:`CONVERT_TO_DATE`,CONVERT_TO_DATE_TIME:`CONVERT_TO_DATE_TIME`},k7=[{type:O7.PLUS,label:`Add (+)`,applyTo:[...l7],nbInputs:1,tooltip:`Returns the result of the field value mathematically added to the specified rule value. FIELD + VALUE`},{type:O7.MINUS,label:`Subtract (-)`,applyTo:[...l7],nbInputs:1,tooltip:`Returns the result of the field value mathematically subtracted by the specified rule value. FIELD - VALUE`},{type:O7.MULTIPLY,label:`Multiply (*)`,applyTo:[...l7],nbInputs:1,tooltip:`Returns the result of the field value mathematically multiplied by the specified rule value. FIELD * VALUE`},{type:O7.DIVIDE,label:`Divide (/)`,applyTo:[...l7],nbInputs:1,tooltip:`Returns the result of the field value mathematically divided by the specified rule value. FIELD / VALUE`},{type:O7.CONVERT_TO_DATE,label:`Convert to date`,applyTo:[`date`],nbInputs:0,tooltip:`Returns the date, which is stored as the epoch time, as a formatted date YYYY/dd/mm`},{type:O7.CONVERT_TO_DATE_TIME,label:`Convert to date time`,applyTo:[`date-time`],nbInputs:0,tooltip:`Returns the date-time, which is stored as the epoch time, as a formatted date YYYY/dd/mm HH:mm:ss`}];function rRe(e){return e}function iRe(e,t){switch(t){case O7.TRIM:return _7(e,S7.methodCall.TRIM,[]);case O7.CONVERT_TO_DATE:return _7(e,S7.methodCall.LONG_TO_DATE,[]);case O7.CONVERT_TO_DATE_TIME:return _7(e,S7.methodCall.LONG_TO_DATE_TIME,[])}}function aRe(e){if(!(e.operator?.type&&e.field?.fieldId))return null;let t=v7(e),n=m7(t),r=rRe(t.operator.type);switch(r){case O7.TRIM:case O7.CONVERT_TO_DATE:case O7.CONVERT_TO_DATE_TIME:return iRe(t,r);case O7.PLUS:case O7.MINUS:case O7.DIVIDE:case O7.MULTIPLY:return h7(t,r,n);default:throw Error(`Unmatched case for operator name: ${r}`)}}function oRe(e,t){return t.field.type!==`date`&&t.field.type,e}function sRe(e,t){let n=(()=>{let n=oRe(t.OPERATION,e);return k7.find(e=>e.type===n)})();return Object.assign(Object.assign({},e),{operator:n})}function cRe(e,t){if(t.LEFT.TYPE!==`FIELD`)throw Error(`BinaryExpression LHS must be TYPE === FIELD`);if(![`STRING`,`NUMBER`,`BOOLEAN`,`NULL`].includes(t.RIGHT.TYPE))throw Error(`BinaryExpression RHS must be TYPE === NUMBER | STRING | BOOLEAN | NULL`);return b7(sRe({field:e.find(e=>e.fieldId===t.LEFT.NAME)},t),t.RIGHT)}function lRe(e,t){let[n,r]=(()=>{switch(!0){case t.METHOD===`TRIM`:return[O7[O7.TRIM],void 0];case t.METHOD===`LONG_TO_DATE`:return[O7[O7.CONVERT_TO_DATE],void 0];case t.METHOD===`LONG_TO_DATE_TIME`:return[O7[O7.CONVERT_TO_DATE_TIME],void 0];default:throw Error(`Unhandled fromMethodExpression case`)}})();return{field:e.find(e=>e.fieldId===t.PARAMETERS[0].NAME),operator:k7.find(e=>e.type===n),value:r}}function A7(e,t){return{combinator:j5,children:t.EXPRESSIONS.map(t=>{if(!(`TYPE`in t))throw Error(`RuleExpression format not yet supported - no TYPE`);if(t.TYPE===`PREDICATE_EXPRESSION`)return A7(e,t);if(t.TYPE===`BINARY_EXPRESSION`)return cRe(e,t);if(t.TYPE===`METHOD_EXPRESSION`)return lRe(e,t);throw Error(`RuleExpression format not yet supported - unsupported TYPE`)})}}let j7=class extends a7{valueConfigChanged(e,t){let n={TYPE:`PREDICATE_EXPRESSION`,OPERATION:`NULL`,EXPRESSIONS:t.model?[t.model]:[]},r=A7(t.fields,n);this.config={combinators:[j5],operators:k7,fields:t.fields,model:r,maxNesting:t.maxNesting,partialRuleValidationWarning:t.partialRuleValidationWarning}}configChanged(e,t){if(t!==null){if(!t.operators||!t.combinators)throw Error(`Unable to detect operators or combinators. Did you set the config on the rule builder via the config property? Use the valueConfig property instead`);super.configChanged(e,t)}}dispatchChangeEvent(e){if(!(`children`in e))throw Error(`Invalid top level group hierarchy`);if(e.children.length>1)throw Error(`Value expressions should not have multiple rules`);if(e.children[0]&&`children`in e.children[0])throw Error(`Trying to convert group to rule`);let t=e.children.length===0?void 0:aRe(e.children[0]);this.dispatchEvent(new CustomEvent(`change`,{detail:t,bubbles:!0,cancelable:!0,composed:!0}))}};q([C],j7.prototype,`valueConfig`,void 0),j7=q([$e({name:`foundation-value-expression-builder`,styles:Y5,template:Z5})],j7);let M7=T`<template ${k(`notificationListener`)}><slot></slot></template>`,uRe={mode:`open`,delegatesFocus:!0};var N7=class extends P{constructor(){super(...arguments),this.closeTimeout=0,this.toastButtons=[],this.desktopNotifications=!1,this.reconnections=0,this.reconnection=Promise.resolve(),this.reconnectionWaitMs=1e4}desktopNotificationsChanged(){this.desktopNotifications&&this.isConnected&&typeof document<`u`&&document.visibilityState===`visible`&&this.clearDesktopNotifications()}connectedCallback(){let e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});return J(this,void 0,void 0,function*(){e.connectedCallback.call(this),this.boundVisibilityChange=this.handleVisibilityChange.bind(this),typeof document<`u`&&document.addEventListener(`visibilitychange`,this.boundVisibilityChange),this.addEventListener(_C.NOTIFICATION_EVENT,e=>{e.stopImmediatePropagation(),TC(e.detail,this.tagName,this.notificationListener)}),this.connectionSub=this.connect.isConnected$.subscribe(e=>{if(!e)return;let t=this.reconnections+=1;this.reconnection=dRe(this.reconnection,this.reconnectionWaitMs).then(()=>this.handleReconnection(t)).catch(e=>hb.error(e))})})}handleReconnection(e){return J(this,void 0,void 0,function*(){var t;let n=()=>e===this.reconnections&&this.isConnected;if(!this.resourceName||!n())return;(t=this.dataSub)==null||t.unsubscribe(),this.dataSub=void 0;let r=yield this.initializeDatasource();if(n()){if(!r)throw Error(`Failed to initialize datasource for ${this.resourceName}`);this.setupDataSubscription()}})}initializeDatasource(){return J(this,void 0,void 0,function*(){return this.datasource?.initialized&&this.datasource.destroy(),this.datasource.init({resourceName:this.resourceName},!0)})}setupDataSubscription(){if(!this.datasource.stream){hb.warn(`No stream available for ${this.resourceName}`);return}this.dataSub=this.datasource.stream.subscribe(e=>{e.ROW&&e.SEQUENCE_ID>1&&this.handleStreamUpdate(ky(e))})}disconnectedCallback(){var e,t,n;super.disconnectedCallback(),typeof document<`u`&&this.boundVisibilityChange&&document.removeEventListener(`visibilitychange`,this.boundVisibilityChange),delete this.boundVisibilityChange,(e=this.dataSub)==null||e.unsubscribe(),delete this.dataSub,(t=this.connectionSub)==null||t.unsubscribe(),delete this.connectionSub,(n=this.datasource)==null||n.destroy(),delete this.datasource}handleVisibilityChange(){this.desktopNotifications&&typeof document<`u`&&document.visibilityState===`visible`&&this.clearDesktopNotifications()}clearDesktopNotifications(){this.postToServiceWorker({type:`genesis-clear-desktop-notifications`})}postToServiceWorker(e){typeof navigator<`u`&&navigator.serviceWorker&&(navigator.serviceWorker.controller?navigator.serviceWorker.controller.postMessage(e):navigator.serviceWorker.ready&&navigator.serviceWorker.ready.then(t=>{var n;(n=t?.active)==null||n.postMessage(e)}).catch(()=>{}))}handleStreamUpdate(e){let t=e.inserts;t.length>0&&t.forEach(e=>{this.showNotificationToast(e),this.handleDesktopNotification(e)})}handleDesktopNotification(e){if(this.desktopNotifications&&typeof document<`u`&&document.visibilityState===`hidden`&&typeof Notification<`u`&&Notification.permission===`granted`)try{let t=this.desktopNotificationFor(e);if(!t)return;this.postToServiceWorker({type:`genesis-desktop-notification`,notification:t})}catch(e){hb.error(e)}}desktopNotificationFor(e){return{title:e.HEADER,options:{body:e.MESSAGE,tag:`genesis-alert-${e.ALERT_ID??``}`,data:{alertId:e.ALERT_ID}}}}showNotificationToast(e){let{HEADER:t,MESSAGE:n,NOTIFY_SEVERITY:r}=e,i=e.CREATED_AT?new Date(e.CREATED_AT):void 0,a=e.EXPIRY?e.EXPIRY-e.CREATED_AT:void 0,o=[];this.toastButtons&&this.toastButtons.length>0&&(o=this.toastButtons.filter(({condition:t})=>!t||t({details:e})));let s={title:t,body:n,createdAt:i,toast:{details:e,type:r?.toLowerCase(),buttons:o,autoClose:a===void 0?!!this.closeTimeout:!!a,closeTimeout:a??this.closeTimeout,position:this.toastPosition}};SC(s,this.tagName)}};q([C],N7.prototype,`notificationListener`,void 0),q([Qv],N7.prototype,`connect`,void 0),q([D({attribute:`resource-name`})],N7.prototype,`resourceName`,void 0),q([D({attribute:`close-timeout`,converter:E})],N7.prototype,`closeTimeout`,void 0),q([C],N7.prototype,`toastButtons`,void 0),q([D({attribute:`toast-position`})],N7.prototype,`toastPosition`,void 0),q([D({attribute:`desktop-notifications`,mode:`boolean`})],N7.prototype,`desktopNotifications`,void 0),q([Gy],N7.prototype,`datasource`,void 0);function dRe(e,t){return new Promise(n=>{let r=setTimeout(n,t);e.finally(()=>{clearTimeout(r),n()})})}N7.compose({baseName:`notification-listener`,template:M7,shadowOptions:uRe});let P7=kd(`foundation-router`),F7=`$router`,I7=Object.freeze({getOrCreateFor:e=>{let t=e[F7];return t===void 0?e[F7]=new fRe(e):t},find:e=>z_.find(e),from:e=>z_.from(e)});var fRe=class extends V_{};let pRe=/^([a-z][a-z0-9+\-.]*:)?\/\//i;function L7(e){return pRe.test(e)}function R7(e){return e.config instanceof cv?e:I7.find(e)}function mRe(e,t=`/`,n=!1){let r=e.join(t).replace(RegExp(t+`{1,}`,`g`),t);return!n&&r.endsWith(t)?r.slice(0,-1):r}function hRe(e){return e.replace(`/*${j_}`,``)}function z7(){document.querySelector(`foundation-router, fast-router`)===null&&window.dispatchEvent(new PopStateEvent(`popstate`))}let B7=Object.freeze({path:Object.freeze({get current(){return h_.path.current},generateRoute:(e,t,...n)=>J(void 0,[e,t,...n],void 0,function*(e,t,n={}){let r=R7(e);for(;r!==null;){let e=yield r.config.generateRouteFromPath(t,n);if(e!==null)return e;r=r.parent}return null}),push:(e,t=!0)=>{if(e&&L7(e)){location.href=e;return}history.pushState({},document.title,e),z7(),t&&B7.path.trigger(e)},replace:(e,t=!0)=>{if(e&&L7(e)){location.href=e;return}history.replaceState({},document.title,e),z7(),t&&B7.path.trigger(e)},trigger:e=>{h_.path.trigger(e)}}),name:Object.freeze({generateRoute:(e,t,...n)=>J(void 0,[e,t,...n],void 0,function*(e,t,n={}){let r=R7(e);for(;r!==null;){let e=yield r.config.generateRouteFromName(t,n);if(e!==null)return e;r=r.parent}return null}),push:(e,t,...n)=>J(void 0,[e,t,...n],void 0,function*(e,t,n={},r=!0){let i=yield B7.name.generateRoute(e,t,n);i!==null&&B7.path.push(i,r)}),replace:(e,t,...n)=>J(void 0,[e,t,...n],void 0,function*(e,t,n={},r=!0){let i=yield B7.name.generateRoute(e,t,n);i!==null&&B7.path.replace(i,r)}),trigger:(e,t,...n)=>J(void 0,[e,t,...n],void 0,function*(e,t,n={}){let r=yield B7.name.generateRoute(e,t,n);r!==null&&B7.path.trigger(r)})})}),V7=e=>!e.navId||e.navId===`header`||e.navId===`side-nav`;function gRe(e,t=V7,n=10){let r=[];return e.filter(e=>e.navItems&&e.navItems.some(t)).forEach((e,i)=>{e.navItems.filter(t).map((t,r)=>{let a=t.placementIndex??i*n+r;return Object.assign(Object.assign({},t),{navId:t.navId??`header`,placementIndex:a,routePath:t.routePath??e.path,routeName:t.routeName??e.name})}).forEach(e=>r.push(e))}),r.sort((e,t)=>e.placementIndex-t.placementIndex)}var H7=class extends F_{constructor(){super(...arguments),this.definitions=[]}map(...e){let t=this.owner,n=!t.parent,r=t.basename;n&&r!==``&&r!==`/`&&(P7.debug(`Route paths remap required due to detected sub-path deployment`),e=e.map(e=>{if(!e.path)return e;if(e.path.startsWith(r))return P7.debug(`'${e.path}' path okay as is`),e;let t=e.path.charAt(0)===`/`?``:`/`,n=`${r}${t}${e.path}`;return P7.debug(`'${e.path}' path modified to '${n}'`),Object.assign(Object.assign({},e),{path:n})})),this.definitions=[...e,...this.definitions],super.map(...e)}};q([C],H7.prototype,`definitions`,void 0);var U7=class extends cv{constructor(){super(),this.logger=P7,this.loginPath=`login`,this.notFoundPath=`not-found`,this.notPermittedPath=`not-permitted`,this.routes=new H7(this),this.basename=_f,this.routes=new H7(this)}getNavItems(e=V7){return gRe(this.routes.definitions,e)}configureAnalytics(){this.contributors.push({navigate:e=>J(this,void 0,void 0,function*(){this.analytics.trackEvent(Ad.routeChanged,{path:e.route.endpoint.path})})})}configureRoutePermittedChecks(){this.contributors.push({navigate:e=>J(this,void 0,void 0,function*(){let{settings:t}=e.route;(t?.isPermitted)?.call(t)===!1&&e.cancel(()=>{if(!this.user.isAuthenticated)this.user.trackPath(),B7.name.replace(e.router,this.loginPath);else{let n=t.notPermittedPath?.call(t)??this.notPermittedPath;this.logger.debug(`User not permitted to access route. Re-routing to ${n}.`),B7.name.replace(e.router,n)}})})})}configureFallbackRouteDefinition(){this.routes.fallback(()=>{let e={redirect:this.notFoundPath};return this.user.isAuthenticated||(this.user.trackPath(),this._session.captureReturnUrl(),e={redirect:this.loginPath}),this.logger.debug(`Route unresolved. Re-routing to ${e.redirect}.`),e})}navigationPhaseLoginRedirect(e){e.cancel(()=>{this.user.trackPath(),this._session.captureReturnUrl(),B7.name.replace(e.router,this.loginPath)})}generateRouteFromName(e,t){let n=Object.create(null,{generateRouteFromName:{get:()=>super.generateRouteFromName}});return J(this,void 0,void 0,function*(){let r=yield n.generateRouteFromName.call(this,e,t);return r?this.generateNavigationPath(r):null})}navigateTo(e){return J(this,void 0,void 0,function*(){if(e.name){this.relativeTo||this.logger.error(`unable to navigate by name as the relativeTo router is not set`),yield B7.name.push(this.relativeTo,e.name,e.params,e.trigger);return}if(e.path){B7.path.push(this.generateNavigationPath(e.path,e.params),e.trigger);return}})}generateNavigationPath(e,t){let n=this.getNavigationPathBasename(),r=y_.build(t),i=n&&!e.startsWith(n)?mRe([n,e]):e;return i=r?`${i}?${r}`:i,i}getNavigationPathBasename(){let e=(this.parent?.relativeTo?.route)?.endpoint.route.path;return e?hRe(e):this.basename?this.basename:``}construct(e){return this.container.get(e)}};q([Mt],U7.prototype,`container`,void 0),q([Cre],U7.prototype,`analytics`,void 0),q([$h],U7.prototype,`user`,void 0),q([Sg],U7.prototype,`_session`,void 0);let W7=`navigate-to`,G7=`generate-navigation-path`,K7=class extends I7.from(Qe){constructor(){super(...arguments),this.logger=P7,this.onNavigateTo=e=>{e.stopImmediatePropagation(),this.config.navigateTo(e.detail)},this.onGenerateNavigationPath=e=>{e.stopImmediatePropagation();let{path:t,params:n,callback:r}=e.detail;r&&r(this.config.generateNavigationPath(t,n))}}get router(){return this[F7]}connectedCallback(){var e;super.connectedCallback(),!this.config.isConfigured&&((e=this.config).relativeTo??(e.relativeTo=this.router),x.queueUpdate(()=>J(this,void 0,void 0,function*(){this.router.config?this.router.connect():this.router.config=this.config})),this.addEventListeners())}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListeners()}addEventListeners(){this.addEventListener(W7,this.onNavigateTo),this.addEventListener(G7,this.onGenerateNavigationPath)}removeEventListeners(){this.removeEventListener(W7,this.onNavigateTo),this.removeEventListener(G7,this.onGenerateNavigationPath)}};K7=q([$e({name:`foundation-router`})],K7);let q7=e=>`control: ${e}-control, content: ${e}-content`,_Re=[`background: progress-ring-background`,`progress: progress-ring-progress`,`indeterminate-indicator-1: progress-ring-indeterminate`].join(`, `),J7=e=>T`<${e}-card class=${e=>fn(`stepper-tab`,[`stepper-tab-hidden`,e.hideTabs])}part="stepper-tab" @tab-clicked="${(e,t)=>e.handleStepClick(t.event.detail)}" role="stepper-tab" data-test-id="stepper-tab"><div class=${e=>fn(`stepper-tab-menu`,[`stepper-tab-menu-hidden`,e.hideTabs])}part="stepper-tab-menu"><slot name="tab" ${bt(`tabs`)}></slot></div>${A(e=>e.orientation===Fa.vertical&&!e.hideProgress,T`<div class="stepper-tab-progress" part="stepper-tab-progress"><${e}-progress-ring class="progress-ring" part="progress-ring" exportparts="${_Re}" value=${e=>e.progressValue}></${e}-progress-ring><label part="progress-label">You have completed ${e=>e.progressValue}% of the fields required to create a project</label></div>`)}</${e}-card>${A(e=>!e.indicatorOnly,T`<${e}-card class="stepper-tab-panel" part="stepper-tab-panel" data-test-id="stepper-tab-panel"><div class="stepper-panel-container" part="stepper-panel-container"><slot name="tab-panel" ${bt(`tabpanels`)}></slot></div>${A(e=>!e.hideAllButtons,T`<div class="action-buttons-container" part="action-buttons-container"><slot name="action-buttons"><${e}-button part="back-button" exportparts="${q7(`back-button`)}" @click=${e=>e.previousStep()}?disabled=${e=>e.disabledPreviousStep}>Back</${e}-button>${A(e=>e.isLastStep&&!e.hideSubmitButton,T`<${e}-button part="submit-button" exportparts="${q7(`submit-button`)}" @click=${e=>e._submit()}?disabled=${e=>e.islastStepValid}data-test-id="submit-button">
1006
- Submit </${e}-button>`)} ${A(e=>!e.isLastStep,T`<${e}-button part="next-button" exportparts="${q7(`next-button`)}" @click=${e=>e.nextStep()}data-test-id="next-button">Next</${e}-button>`)}</slot></div>`)}</${e}-card>`)} `,vRe=T` ${e=>J7(yb(e))} `,Y7=O` :host{display: flex;height: 100%;width: 100%}:host([orientation='horizontal']){flex-direction: column}.stepper-tab{display: flex;flex-direction: column;width: 100%;height: 100%;max-width: 280px;border-radius: 0}.action-buttons-container{width: 100%;display: flex;justify-content: flex-end}.stepper-panel-container{height: 100%;overflow: hidden;padding: 15px}.stepper-tab-menu{display: flex;flex-direction: column;width: 100%;margin-bottom: 30px}.stepper-tab-menu-hidden{display: none}.stepper-tab-progress{display: flex;flex-direction: column;align-items: center;justify-content: start;flex: 1}.stepper-tab-progress .progress-ring{--design-unit: 10;margin: 0}.stepper-tab-panel{display: flex;flex-direction: column;justify-content: space-between;width: 100%;min-width: 370px;border-radius: 0}label{padding: 0 10px;color: rgb(135 155 166);display: block;cursor: pointer;text-align: center;font-size: var(--type-ramp-base-font-size);line-height: var(--type-ramp-base-line-height);font-style: normal;margin: calc(var(--design-unit) * 2px) 0}:host([orientation='horizontal']) .stepper-tab-menu{height: 100%;width: 100%;display: flex;flex-direction: row;margin-bottom: 0;align-items: center;justify-content: center;gap: calc(var(--design-unit) * 4px);padding: 0 calc(var(--design-unit) * 4px)}:host([orientation='horizontal']) .stepper-tab-hidden{display: none}:host([orientation='horizontal']) .stepper-tab{max-width: 100%;max-height: 70px;height: 70px}`;var X7=class extends P{constructor(){super(...arguments),this.hideProgress=!1,this.allowBackwardJumps=!1,this.allowForwardJumps=!1,this.hideAllButtons=!1,this.hideTabs=!1,this.indicatorOnly=!1,this.orientation=Fa.vertical,this.tabs=[],this.tabpanels=[],this.progressValue=0,this.activeTabIndex=0,this.pendingNextStep=!1,this.slotsInitialized=!1,this.setTabs=()=>{this.activeTabIndex=this.getActiveIndex(),this.tabs.forEach((e,t)=>{if(e.slot===`tab`){let n=this.activeTabIndex===t,r=t+1===this.tabIds.length,i=this.tabIds[t],a=this.tabpanelIds[t];e.setAttribute(`id`,i),e.setAttribute(`aria-selected`,n?`true`:`false`),e.setAttribute(`aria-disabled`,n?`false`:`true`),x.setBooleanAttribute(e,`selected`,n),e.setAttribute(`orientation`,this.orientation),a&&e.setAttribute(`aria-controls`,a),e.setAttribute(`tab-position`,String(t+1)),x.setBooleanAttribute(e,`isLast`,r),x.setBooleanAttribute(e,`hideStepNumber`,this.hideStepNumber===!0),e.setAttribute(`tabindex`,n?`0`:`-1`),x.setBooleanAttribute(e,`showCursorPointer`,t<=this.activeTabIndex&&this.allowBackwardJumps||t>this.activeTabIndex&&this.allowForwardJumps),n&&(this.activetab=e,this.activeid=i)}}),this.activeTabIndex===0&&this.resetCompletedState()},this.getCompletedTabs=()=>{let e=0;this.tabs.forEach(t=>{t.isCompleted()&&(e+=1)});let t=this.indicatorOnly?this.tabs.length:this.tabpanels.length;this.progressValue=t?Math.round(e/t*100):0},this.setTabPanels=()=>{this.tabpanels.forEach((e,t)=>{let n=this.tabIds[t],r=this.tabpanelIds[t];e.setAttribute(`id`,r),e.setAttribute(`aria-labelledby`,n),this.activeTabIndex===t?e.removeAttribute(`hidden`):e.setAttribute(`hidden`,``)})}}orientationChanged(){this.$fastController.isConnected&&(this.setTabs(),this.setTabPanels())}activeidChanged(e,t){this.$fastController.isConnected&&(this.indicatorOnly||this.tabs.length<=this.tabpanels.length)&&(this.setTabs(),this.setTabPanels(),this.getCompletedTabs())}tabsChanged(){this.$fastController.isConnected&&(this.indicatorOnly||this.tabs.length<=this.tabpanels.length)&&(this.setTabsAndTabPanels(),this.checkAndExecutePendingNextStep())}tabpanelsChanged(){this.$fastController.isConnected&&this.tabpanels.length<=this.tabs.length&&(this.setTabsAndTabPanels(),this.checkAndExecutePendingNextStep())}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}setTabsAndTabPanels(){this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels(),this.getCompletedTabs(),this.slotsInitialized=this.tabs.length>0&&(this.indicatorOnly||this.tabpanels.length>0)}checkAndExecutePendingNextStep(){this.pendingNextStep&&this.slotsInitialized&&(this.pendingNextStep=!1,this.nextStep())}getActiveIndex(){return this.activeid===void 0||this.tabIds.indexOf(this.activeid)===-1?0:this.tabIds.indexOf(this.activeid)}goToStep(e,t=!1){let n=e-1;if(e<1||e>this.tabs.length)return hb.warn(`[Stepper] Invalid step number: ${e}. Must be between 1 and ${this.tabs.length}`),!1;if(n===this.activeTabIndex)return!1;if(t){if(n<this.activeTabIndex)return this.handleBackwardJump(n);if(n>this.activeTabIndex)return this.handleForwardJump(n)}return n<this.activeTabIndex&&this.allowBackwardJumps?this.handleBackwardJump(n):n>this.activeTabIndex&&this.allowForwardJumps?this.handleForwardJump(n):n===this.activeTabIndex+1?(this.nextStep(),!0):(hb.warn(`[Stepper] Cannot jump to step ${e}. Jumps are not allowed or step is not adjacent.`),!1)}goToFirstStep(){return this.goToStep(1,!0)}goToLastStep(){return this.goToStep(this.tabs.length,!0)}handleStepClick(e){e<this.activeTabIndex&&this.allowBackwardJumps?this.handleBackwardJump(e):e>this.activeTabIndex&&this.allowForwardJumps&&this.handleForwardJump(e)}handleBackwardJump(e){for(let t=e+1;t<=this.activeTabIndex;t+=1)this.tabs[t].completed=!1;return this.activeTabIndex=e,this.activetab=this.tabs[e],this.activeid=this.tabIds[e],this.$emit(`step-click`,{activetab:this.activetab,activeid:this.activeid}),!0}handleForwardJump(e){for(let t=this.activeTabIndex;t<e;t+=1)if(this.validation&&this.validation[t]){if(!this.validation[t].isValid())return this.tabs[t].completed=!1,this.tabs[t].error=!0,this.getCompletedTabs(),this.$emit(`validation-failure`,{stepIndex:t,stepId:this.tabIds[t],message:`Validation failed for step ${t+1}`}),!1;this.tabs[t].error=!1}for(let t=this.activeTabIndex;t<e;t+=1)this.tabs[t].completed=!0,this.tabs[t].error=!1;return this.tabs[e].completed=!1,this.tabs[e].error=!1,this.activeTabIndex=e,this.activetab=this.tabs[e],this.activeid=this.tabIds[e],this.getCompletedTabs(),this.$emit(`step-click`,{activetab:this.activetab,activeid:this.activeid}),!0}get disabledPreviousStep(){return this.activeTabIndex===0}get isLastStep(){return this.activeTabIndex+1===this.tabs.length}get islastStepValid(){let e=this.tabs.length-1;return this.activeTabIndex===e&&(this.validation&&this.validation[e]?.isValid()||!this.validation||!this.validation[e])?(this.tabs[e].completed=!0,this.getCompletedTabs(),!1):(this.tabs[e].completed=!1,this.getCompletedTabs(),!0)}_submit(){this.$emit(`submit`)}nextStep(){if(!this.slotsInitialized){this.pendingNextStep=!0;return}if(this.validation&&this.validation[this.activeTabIndex]){if(!this.validation[this.activeTabIndex].isValid()){this.tabs[this.activeTabIndex].completed=!1,this.tabs[this.activeTabIndex].error=!0,this.getCompletedTabs();return}this.tabs[this.activeTabIndex].error=!1}this.activeTabIndex+2<=this.tabIds.length&&(this.tabs[this.activeTabIndex].completed=!0,this.activeTabIndex+=1,this.activeid=this.tabIds[this.activeTabIndex],this.$emit(`next-step`),this.$emit(`validation-success`));let e=this.tabs.length-1,t=this.activeTabIndex===e;this.hideSubmitButton&&t&&(this.validation&&this.validation[e]?.isValid()||!this.validation||!this.validation[e])?(this.tabs[e].completed=!0,this.getCompletedTabs()):(this.tabs[e].completed=!1,this.getCompletedTabs())}previousStep(){this.activeTabIndex!==0&&(this.tabs[this.activeTabIndex].completed=!1,--this.activeTabIndex,this.activeid=this.tabIds[this.activeTabIndex])}getTabIds(){return this.tabs.map(e=>e.getAttribute(`id`)??`tab-${Ln()}`)}getTabPanelIds(){return this.tabpanels.map(e=>e.getAttribute(`id`)??`panel-${Ln()}`)}resetCompletedState(){this.tabs.forEach(e=>e.completed=!1)}};q([D({attribute:`hide-submit-button`,mode:`boolean`})],X7.prototype,`hideSubmitButton`,void 0),q([D({attribute:`hide-progress`,mode:`boolean`})],X7.prototype,`hideProgress`,void 0),q([D({attribute:`hide-step-number`,mode:`boolean`})],X7.prototype,`hideStepNumber`,void 0),q([D({attribute:`allow-backward-jumps`,mode:`boolean`})],X7.prototype,`allowBackwardJumps`,void 0),q([D({attribute:`allow-forward-jumps`,mode:`boolean`})],X7.prototype,`allowForwardJumps`,void 0),q([D({attribute:`hide-all-buttons`,mode:`boolean`})],X7.prototype,`hideAllButtons`,void 0),q([D({attribute:`hide-tabs`,mode:`boolean`})],X7.prototype,`hideTabs`,void 0),q([D({attribute:`indicator-only`,mode:`boolean`})],X7.prototype,`indicatorOnly`,void 0),q([D],X7.prototype,`orientation`,void 0),q([D],X7.prototype,`activeid`,void 0),q([C],X7.prototype,`tabs`,void 0),q([C],X7.prototype,`tabpanels`,void 0),q([C],X7.prototype,`validation`,void 0),q([C],X7.prototype,`progressValue`,void 0),q([C],X7.prototype,`activeTabIndex`,void 0),q([w],X7.prototype,`disabledPreviousStep`,null),q([w],X7.prototype,`isLastStep`,null),q([w],X7.prototype,`islastStepValid`,null);let Z7={};X7.compose(Object.assign({baseName:`stepper`,template:vRe,styles:Y7,shadowOptions:void 0},Z7)),class extends Yu{}.compose(Object.assign({baseName:`accordion-item`,template:(e,t)=>qu(e,t),styles:(e,t)=>O` ${Ju(e,t)} :host{--icon-container-calculator: calc( (6 + (var(--design-unit) * 6)) * 1px );/* height of section - (padding top +padding-bottom) */ --icon-margin-calculation: calc((6 + (var(--design-unit) * 2 * var(--density))) * 1px)}.region{padding: 0 calc((16 + (var(--design-unit) * 2 * var(--density))) * 1px);color: var(--accent-foreground-rest)}:host([expanded]) .region{color: var(--accent-foreground-rest)}slot[name='expanded-icon']{display: none;stroke: none}slot[name='collapsed-icon'] path.plus-sign, slot[name='expanded-icon'] path.minus-sign{stroke: white}slot[name='expanded-icon'], slot[name='collapsed-icon']{background: var(--neutral-fill-rest);fill: none;stroke: none;height: calc((var(--design-unit) * 4) * 1px);width: calc((var(--design-unit) * 4) * 1px)}svg:not(:root){height: calc((var(--design-unit) * 4) * 1px);width: calc((var(--design-unit) * 4) * 1px)}.icon{height: var( --icon-container-calculator );/* UX 30px* for now it's 30 on default design unit - 4/ */ width: var(--icon-container-calculator);/* UX 30px */ margin: var(--icon-margin-calculation) var(--icon-margin-calculation) var(--icon-margin-calculation) 0}.button{padding: 0 calc((8 + (var(--design-unit) * 2 * var(--density))) * 1px) 0 calc((16 + (var(--design-unit) * 2 * var(--density))) * 1px)}.heading{grid-template-columns: auto 1fr auto;align-items: center}`,shadowOptions:Xu},Zu)),class extends Wu{}.compose(Object.assign({baseName:`accordion`,template:(e,t)=>io(e,t),styles:(e,t)=>O` ${Uu(e,t)} :host{border-top: none;border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest)}.heading{height: calc(var(--base-height-multiplier) * 4px)}`,shadowOptions:Gu},Ku)),class extends Jb{}.compose({baseName:`actions-menu`,styles:(e,t)=>O` :host{--actions-opener-height-multiplier: 0.6px;--menu-item-height-multiplier: 0.5px}${Qu(e,t)} rapid-menu-item{display: flex;user-select: none}rapid-menu-item::part(content){margin-inline: calc(var(--design-unit) * 3px)}rapid-menu-item[disabled]{pointer-events: none}`,template:Kb});let yRe=O` ${rC}`;(class extends DC{}).compose(Object.assign({baseName:`ai-criteria-search`,template:(e,t)=>iC,styles:yRe,shadowOptions:void 0},OC)),class extends jC{}.compose({baseName:`ai-indicator`,template:AC,styles:(e,t)=>O` ${kC(e,t)} :host{--green: var(--success-color);--trafic-light-green: var(--success-color);--red: var(--error-color);--trafic-light-red: var(--error-color);--amber: var(--warning-color);--trafic-light-amber: var(--warning-color)}`});function Q7(e,t){return new to(`appearance`,e,t)}let bRe=O` :host([appearance='primary']){background: var(--accent-fill-rest);color: var(--foreground-on-accent-rest)}:host([appearance='primary']:hover){background: var(--accent-fill-hover);color: var(--foreground-on-accent-hover)}:host([appearance='primary']:active){background: var(--accent-fill-active);color: var(--foreground-on-accent-active)}:host([appearance='primary'][disabled]), :host([appearance='primary'][disabled]):hover, :host([appearance='primary'][disabled]):active{opacity: 50%}`,xRe=O` :host([appearance='secondary']){background: var(--secondary-fill-rest);color: contrast-color(var(--secondary-fill-rest))}:host([appearance='secondary']:hover){background: var(--secondary-fill-hover);color: contrast-color(var(--secondary-fill-hover))}:host([appearance='secondary']:active){background: var(--secondary-fill-active);color: contrast-color(var(--secondary-fill-active))}:host([appearance='secondary'][disabled]), :host([appearance='secondary'][disabled]):hover, :host([appearance='secondary'][disabled]):active{opacity: 50%}`,SRe=O` :host([appearance='neutral']){background: var(--neutral-button-fill, var(--neutral-fill-rest));border: var(--neutral-button-border, 0);color: var(--neutral-button-foreground, var(--neutral-foreground-rest))}:host([appearance='neutral']:hover){background: color-mix( in srgb, var(--neutral-button-fill, var(--neutral-fill-hover)), transparent 20% )}:host([appearance='neutral']:active){background: color-mix( in srgb, var(--neutral-button-fill, var(--neutral-fill-active)), transparent 30% )}:host([appearance='neutral'][disabled]), :host([appearance='neutral'][disabled]):hover, :host([appearance='neutral'][disabled]):active{opacity: 50%;background: var(--neutral-button-fill, var(--neutral-fill-rest));color: var(--neutral-button-foreground, var(--neutral-foreground-rest));border: var(--neutral-button-border, 0)}`,CRe=O` :host([appearance='danger']){background: var(--error-fill-rest);color: contrast-color(var(--error-fill-rest));border: 0}:host([appearance='danger']:hover){background: var(--error-fill-hover);color: contrast-color(var(--error-fill-hover))}:host([appearance='danger']:active){background: var(--error-fill-active);color: contrast-color(var(--error-fill-active))}:host([appearance='danger'][disabled]), :host([appearance='danger'][disabled]):hover, :host([appearance='danger'][disabled]):active{opacity: 50%}`,wRe=O` :host([appearance='success']){background: var(--success-fill-rest);color: contrast-color(var(--success-fill-rest));border: 0}:host([appearance='success']:hover){background: var(--success-fill-hover);color: contrast-color(var(--success-fill-hover))}:host([appearance='success']:active){background: var(--success-fill-active);color: contrast-color(var(--success-fill-active))}:host([appearance='success'][disabled]), :host([appearance='success'][disabled]):hover, :host([appearance='success'][disabled]):active{opacity: 50%}`,TRe=O` :host([appearance='warning']){background: var(--warning-fill-rest);color: contrast-color(var(--warning-fill-rest));border: 0}:host([appearance='warning']:hover){background: var(--warning-fill-hover);color: contrast-color(var(--warning-fill-hover))}:host([appearance='warning']:active){background: var(--warning-fill-active);color: contrast-color(var(--warning-fill-active))}:host([appearance='warning'][disabled]), :host([appearance='warning'][disabled]):hover, :host([appearance='warning'][disabled]):active{opacity: 50%}`,ERe=O` :host([appearance='tertiary']){background: var(--tertiary-fill-rest);color: contrast-color(var(--tertiary-fill-rest));border: 0}:host([appearance='tertiary']:hover){background: var(--tertiary-fill-hover);color: contrast-color(var(--tertiary-fill-hover))}:host([appearance='tertiary']:active){background: var(--tertiary-fill-active);color: contrast-color(var(--tertiary-fill-active))}:host([appearance='tertiary'][disabled]), :host([appearance='tertiary'][disabled]):hover, :host([appearance='tertiary'][disabled]):active{opacity: 50%}`,DRe=O` :host([appearance='primary-outline']){background: none;border: calc(var(--stroke-width) * 1px) solid var(--accent-fill-rest)}:host([appearance='primary-outline']:hover){background: var(--accent-fill-hover);color: contrast-color(var(--accent-fill-hover))}:host([appearance='primary-outline']:active){background: var(--accent-fill-active);color: contrast-color(var(--accent-fill-active))}:host([appearance='primary-outline'][disabled]), :host([appearance='primary-outline'][disabled]):hover, :host([appearance='primary-outline'][disabled]):active{opacity: 50%}`,ORe=O` :host([appearance='secondary-outline']){background: none;border: calc(var(--stroke-width) * 1px) solid var(--secondary-fill-rest)}:host([appearance='secondary-outline']:hover){background: var(--secondary-fill-hover);color: contrast-color(var(--secondary-fill-hover))}:host([appearance='secondary-outline']:active){background: var(--secondary-fill-active);color: contrast-color(var(--secondary-fill-active))}:host([appearance='secondary-outline'][disabled]), :host([appearance='secondary-outline'][disabled]):hover, :host([appearance='secondary-outline'][disabled]):active{opacity: 50%}`,kRe=O` :host([appearance='neutral-outline']){background: none;border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest)}:host([appearance='neutral-outline']:hover){background: var(--neutral-fill-hover);color: contrast-color(var(--neutral-fill-hover))}:host([appearance='neutral-outline']:active){background: var(--neutral-fill-active);color: contrast-color(var(--neutral-fill-active))}:host([appearance='neutral-outline'][disabled]), :host([appearance='neutral-outline'][disabled]):hover, :host([appearance='neutral-outline'][disabled]):active{opacity: 50%}`,ARe=O` :host([appearance='link']){background: none;border: none;color: var(--accent-foreground-rest)}:host([appearance='link']) .control{padding: 0}:host([appearance='link']:hover){color: var(--accent-foreground-hover)}:host([appearance='link'][disabled]), :host([appearance='link'][disabled]):hover, :host([appearance='link'][disabled]):active{opacity: 50%}`,jRe=(e,t)=>O` :host{font-weight: 500;color: var(--neutral-foreground-rest);box-sizing: border-box;font-size: var(--type-ramp-base-font-size);height: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit) - 4) * 1px)}.control{padding: 0 calc((16 + var(--design-unit) * 2 * var(--density)) * 1px)}.start{margin-inline-end: calc(var(--design-unit) * 2px)}.end{margin-inline-start: calc(var(--design-unit) * 2px)}.control:has(.start){padding-left: calc((12 + var(--design-unit) * 2 * var(--density)) * 1px)}.control:has(.end){padding-right: calc((12 + var(--design-unit) * 2 * var(--density)) * 1px)}:host([appearance='neutral']){background: color-mix(in srgb, var(--neutral-fill-rest), transparent 50%);border: calc(var(--stroke-width) * 1px) solid var(--neutral-fill-rest)}:host([appearance='neutral']:hover){background: var(--neutral-fill-rest)}:host([appearance='neutral']:active){background: color-mix(in srgb, var(--neutral-fill-rest), transparent 70%));border: calc(var(--stroke-width) * 1px) solid var(--neutral-fill-rest)}:host([appearance='neutral'][disabled]), :host([appearance='neutral'][disabled]):hover, :host([appearance='neutral'][disabled]):active{background: color-mix(in srgb, var(--neutral-fill-rest), transparent 70%);border: calc(var(--stroke-width) * 1px) solid var(--neutral-fill-rest);color: color-mix(in srgb, var(--neutral-foreground-rest), transparent 50%);opacity: 100%}:host([appearance='accent']){color: contrast-color(var(--accent-fill-rest))}`,$7=(e,t)=>O` ${lw(e,t)} ${jRe(e,t)} `.withBehaviors(Q7(`primary`,bRe),Q7(`secondary`,xRe),Q7(`tertiary`,ERe),Q7(`neutral`,SRe),Q7(`danger`,CRe),Q7(`success`,wRe),Q7(`warning`,TRe),Q7(`primary-outline`,DRe),Q7(`secondary-outline`,ORe),Q7(`neutral-outline`,kRe),Q7(`link`,ARe));(class extends PC{}).compose(Object.assign({baseName:`anchor`,template:(e,t)=>MC(e,t),styles:(e,t)=>O` ${NC(e,t)} ${$7(e,t)} `.withBehaviors(...$7(e,t).behaviors),shadowOptions:FC},IC)),class extends zC{}.compose(Object.assign({baseName:`anchored-region`,template:(e,t)=>LC(e,t),styles:(e,t)=>O` ${RC(e,t)}`,shadowOptions:BC},VC)),class extends WC{}.compose(Object.assign({baseName:`avatar`,template:(e,t)=>HC(e,t),styles:(e,t)=>O` ${UC(e,t)}`,shadowOptions:GC},KC)),class extends YC{}.compose(Object.assign({baseName:`badge`,template:(e,t)=>qC(e,t),styles:(e,t)=>O` ${JC(e,t)} :host{--badge-fill-primary: var(--accent-fill-rest);--badge-fill-neutral: var(--neutral-fill-rest);--badge-fill-success: var(--success-color);--badge-fill-danger: var(--error-color);--badge-fill-warning: var(--warning-color);--badge-fill-buy: var(--buy-color);--badge-fill-sell: var(--sell-color);--badge-color-text: var(--neutral-foreground-rest);font-size: var(--type-ramp-minus-2-font-size)}:host .control{padding: calc(${B} * 1px) calc(${B} * 2px);border: none}`,shadowOptions:void 0},XC));let MRe=O` ${ZC} :host{--banner-height: calc( ((var(--design-unit) + 2) * var(--base-height-multiplier)) + (var(--design-unit) * var(--design-unit)) * 1px )}.banner{background-color: var(--neutral-layer-1);color: var(--neutral-foreground-rest);padding: calc(var(--design-unit) * 4px)}.content{font-size: var(--type-ramp-base-font-size);font-family: var(--body-font);line-height: var(--type-ramp-base-line-height)}`,NRe=$C;(class extends ew{}).compose({baseName:`banner`,shadowOptions:NRe,styles:MRe,template:QC}),class extends ow{}.compose(Object.assign({baseName:`breadcrumb-item`,template:(e,t)=>iw(e,t),styles:(e,t)=>O` ${aw(e,t)} .listitem{color: var(--accent-foreground-rest)}.control{color: var(--neutral-foreground-rest)}.control:hover{color: var(--neutral-foreground-rest)}.separator{color: var(--neutral-stroke-rest);margin: 0 12px}.control:hover .content::before{background: var(--neutral-foreground-rest)}.control .start{width: calc(var(--base-height-multiplier) * 3px);height: calc(var(--base-height-multiplier) * 3px);display: flex;justify-content: center;align-items: center;border-radius: calc(var(--control-corner-radius) * 1px);margin: 0 -4px 0 0}.control:hover .start{background: color-mix(in srgb, var(--neutral-foreground-rest), transparent 95%)}`,shadowOptions:void 0},sw)),class extends rw{}.compose(Object.assign({baseName:`breadcrumb`,template:(e,t)=>tw(e,t),styles:(e,t)=>O` ${nw(e,t)}`,shadowOptions:void 0},{})),class extends uw{}.compose(Object.assign({baseName:`button`,template:(e,t)=>cw(e,t),styles:$7,shadowOptions:dw},fw)),class extends hw{}.compose(Object.assign({baseName:`calendar`,template:(e,t)=>mw(e,t),styles:()=>O` ${pw()}`,shadowOptions:gw},_w)),class extends bw{}.compose(Object.assign({baseName:`card`,template:(e,t)=>vw(e,t),styles:(e,t)=>O` ${yw(e,t)} :host{background: var(--neutral-layer-card-container);color: ${H};border-radius: var(--card-corner-radius, calc(var(--control-corner-radius) * 1px));box-shadow: var(--card-box-shadow, none);border: var( --card-border, 1px solid var(--neutral-stroke-rest) );/** uses a token instead of #2E3339 value available in ux docs */ /* box-shadow and border-radius are being calculated at host level by using design-tokens */}::slotted(rapid-card){background: var(--neutral-layer-3)}`,shadowOptions:void 0},xw));let PRe=O` ${jw} .label{color: var(--neutral-foreground-hint)}.options{background: var(--neutral-layer-4)}rapid-checkbox:hover:not([disabled]){background: var(--neutral-layer-4)}`,FRe=T` ${Mw(`rapid`)} `;var IRe=class extends Pw{};let LRe=Nw;IRe.compose(Object.assign({baseName:`categorized-multiselect`,template:FRe,styles:PRe,shadowOptions:void 0},LRe)),class extends Lw{}.compose(Object.assign({baseName:`checkbox`,template:(e,t)=>Fw(e,t),styles:(e,t)=>O` ${Iw(e,t)} .checked-indicator{fill: contrast-color(var(--accent-fill-rest));box-shadow: 2px 1000px 1px rgb(0 0 0 / 20%) inset;border-radius: calc(var(--control-corner-radius) * 1px)}:host([aria-checked='true']:not([disabled])) .control:hover .checked-indicator{fill: var(--neutral-foreground-rest)}.label{padding-inline-start: calc(var(--design-unit) * 2px)}`,shadowOptions:void 0},Rw)),class extends Uw{}.compose(Object.assign({baseName:`combobox`,template:(e,t)=>Bw(e,t),styles:(e,t)=>O` ${zw(e,t)} :host{border-style: solid;border-width: var(--neutral-stroke-width-rest, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-rest, var(--focus-stroke-outer));background-color: var(--neutral-fill-input-rest);height: calc( (((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) - 4) * 1px );min-width: 0}:host(:focus-within:not([disabled])){border-style: solid;border-width: var(--neutral-stroke-width-focus, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-focus, var(--accent-fill-rest));background-color: var(--neutral-fill-input-focus)}:host(:hover:not([disabled]):not([open])){border-style: solid;border-width: var(--neutral-stroke-width-hover, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-hover, var(--neutral-foreground-rest));background: var(--neutral-fill-input-hover)}:host([open][position='below']) .listbox{padding: 0;margin-top: calc(${B} * 1px);border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);border-radius: calc(var(--control-corner-radius) * 1px)}:host .listbox ::slotted(*:last-child){border-bottom: none}.control{padding: 0 calc((var(--design-unit) - 2) * 1px) 0 calc(var(--design-unit) * 2px)}:host(:not([disabled])) .control:active{background: none}.indicator{width: calc((var(--base-height-multiplier) * (var(--design-unit) - 1)) * 1px);height: calc((var(--base-height-multiplier) * (var(--design-unit) - 1)) * 1px);background-color: var(--dropdown-indicator-background, var(--neutral-fill-rest));border-radius: calc(var(--control-corner-radius) * 1px);display: flex;justify-content: center;align-items: center}.combo-box-indicator{width: calc(var(--design-unit) * 3.5px);height: calc(var(--design-unit) * 3.5px);transition: all 0.35s}.selected-value{height: calc(100% - (var(--design-unit) * 1px));padding: 0;margin: 0}:host(:focus-within:not([disabled])) .indicator{background-color: transparent}:host([open]) .combo-box-indicator{transition: all 0.35s;transform: rotate(180deg)}::slotted([role='option']){margin: 0}`,shadowOptions:Ww},Gw)),class extends Jw{}.compose({baseName:`connection-indicator`,template:qw,styles:(e,t)=>O` ${Kw(e,t)} :host{--light-size: calc(var(--design-unit) * 3px);--red: var(--error-color);--trafic-light-red: color-mix(in srgb, var(--red), transparent 0%);--trafic-light-red-glow: color-mix(in srgb, var(--red), transparent 60%) 0 0 4px 4px, color-mix(in srgb, var(--red), transparent 80%) 0 0 8px 8px;--green: var(--success-color);--trafic-light-green: color-mix(in srgb, var(--green), transparent 0%);--trafic-light-green-glow: color-mix(in srgb, var(--green), transparent 60%) 0 0 4px 4px, color-mix(in srgb, var(--green), transparent 80%) 0 0 8px 8px}.light{margin: calc(var(--design-unit) * 4px)}.label{font-family: var(--body-font);font-size: var(--type-ramp-base-font-size);color: var(--neutral-stroke-rest)}`});let RRe=()=>O` ${Yw} :host{--primary-gradient-angle: -113.5deg;display: inline-block}.calendar-dropdown{border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);font-family: var(--body-font);font-size: var(--type-ramp-base-font-size);line-height: var(--type-ramp-base-line-height)}.input-icon-container{display: flex;justify-content: center;align-items: center;border-radius: calc(var(--control-corner-radius) * 1px);width: calc((var(--base-height-multiplier) * (var(--design-unit) - 1)) * 1px);height: calc((var(--base-height-multiplier) * (var(--design-unit) - 1)) * 1px)}.input-icon-container:hover{background-color: var(--neutral-fill-rest)}.date-toggle::part(end){margin-inline-end: calc(var(--design-unit) * 1px)}.date-toggle{margin-bottom: 0}.month-day{width: calc(((var(--base-height-multiplier) * (var(--design-unit) - 1)) + 2) * 1px);height: calc(((var(--base-height-multiplier) * (var(--design-unit) - 1)) + 2) * 1px)}.week-days span{font-size: var(--type-ramp-minus-2-font-size)}`,zRe=T` ${Zw(`rapid`)} `;(class extends lT{}).compose(Object.assign({baseName:`date-picker`,template:zRe,styles:RRe,shadowOptions:void 0},{}));var e9;(function(e){e.primary=`#11C9FC`,e.neutral=`#7C909B`,e.error=`#F9644D`,e.success=`#7ACC79`,e.warning=`#FFB660`,e.tertiary=`#7B2FBE`,e.info=`#11C9FC`,e.buy=`#7ACC79`,e.sell=`#F14376`,e.chartPink=`#fb8176`,e.longGreen=`#7acc79`,e.shortPink=`#f14376`,e.warningYellow=`#fcb35f`,e.green=`#44c14c`,e.lightGreen=`#69cd70`,e.red=`#ef4d28`,e.lightRed=`#ee6588`,e.dodgerBlue=`#33a9ff`,e.lightDodgerBlue=`#5cbaff`,e.violet=`#9b1e74`,e.lightViolet=`#b528af`,e.white=`#f9f9f9`,e.silver=`#c1c1c1`,e.salomie=`#ffdf94`,e.lightSalomie=`#ccb276`,e.melon=`#ffbbb2`,e.lightMelon=`#cc968e`,e.portage=`#8a99f5`,e.lightPortage=`#adb8f8`,e.ice=`#97f4eb`,e.lightIce=`#6befe2`})(e9||(e9={}));let{create:t9}=ni,n9=Jo(e9.error),r9=Qo.create(n9.r,n9.g,n9.b),i9=t9(`error-color`).withDefault(r9),a9=Jo(e9.success),o9=Qo.create(a9.r,a9.g,a9.b),s9=t9(`success-color`).withDefault(o9),c9=Jo(e9.warning),l9=Qo.create(c9.r,c9.g,c9.b),u9=t9(`warning-color`).withDefault(l9),d9=Jo(e9.buy),f9=Qo.create(d9.r,d9.g,d9.b),BRe=t9(`buy-color`).withDefault(f9),p9=Jo(e9.sell),m9=Qo.create(p9.r,p9.g,p9.b),VRe=t9(`sell-color`).withDefault(m9),h9=Jo(e9.info),g9=Qo.create(h9.r,h9.g,h9.b),HRe=t9(`info-color`).withDefault(g9),_9=Jo(e9.error),v9=Qo.create(_9.r,_9.g,_9.b),URe=t9(`serious-notify-color`).withDefault(v9),{create:y9}=ni,b9=e=>ni.create({name:e,cssCustomPropertyName:null}),x9=Qo.create(1,1,1),WRe=Qo.create(0,0,0),S9=4.5;function GRe(e,t,n,r,i,a,o,s,c){let l=e.source,u=t.closestIndexOf(n)>=Math.max(o,s,c)?-1:1,d=e.closestIndexOf(l),f=d+u*-1*r,p=f+u*i,m=f+u*a;return{rest:e.get(f),hover:e.get(d),active:e.get(p),focus:e.get(m)}}function KRe(e,t,n,r,i,a,o){let s=e.source,c=e.closestIndexOf(s),l=ts(t)?-1:1,u=c+(l===1?Math.min(r,i):Math.max(l*r,l*i)),d=e.colorContrast(t,n,u,l),f=e.closestIndexOf(d),p=f+l*Math.abs(r-i),m=l===1?r<i:l*r>l*i,h=m?f:p,g=m?p:f;return{rest:e.get(h),hover:e.get(g),active:e.get(h+l*a),focus:e.get(h+l*o)}}function C9(e,t){return e.contrast(x9)>=t?x9:WRe}function w9(e,t){let n=e,r=b9(`${n}-palette`).withDefault(e=>rs.from(t.getValueFor(e))),i=b9(`${n}-fill-rest-delta`).withDefault(0),a=b9(`${n}-fill-hover-delta`).withDefault(4),o=b9(`${n}-fill-active-delta`).withDefault(-5),s=b9(`${n}-fill-focus-delta`).withDefault(0),c=b9(`${n}-foreground-rest-delta`).withDefault(0),l=b9(`${n}-foreground-hover-delta`).withDefault(6),u=b9(`${n}-foreground-active-delta`).withDefault(-4),d=b9(`${n}-foreground-focus-delta`).withDefault(0),f=b9(`${n}-fill-recipe`).withDefault({evaluate:(e,t)=>GRe(r.getValueFor(e),dc.getValueFor(e),t??Sc.getValueFor(e),a.getValueFor(e),o.getValueFor(e),s.getValueFor(e),Hs.getValueFor(e),Us.getValueFor(e),Ws.getValueFor(e))}),p=y9(`${n}-fill-rest`).withDefault(e=>f.getValueFor(e).evaluate(e).rest),m=y9(`${n}-fill-hover`).withDefault(e=>f.getValueFor(e).evaluate(e).hover),h=y9(`${n}-fill-active`).withDefault(e=>f.getValueFor(e).evaluate(e).active),g=y9(`${n}-fill-focus`).withDefault(e=>f.getValueFor(e).evaluate(e).focus),_=e=>(t,n)=>C9(n??p.getValueFor(t),e),v=b9(`foreground-on-${n}-recipe`).withDefault({evaluate:(e,t)=>_(S9)(e,t)}),y=y9(`foreground-on-${n}-rest`).withDefault(e=>v.getValueFor(e).evaluate(e,p.getValueFor(e))),b=y9(`foreground-on-${n}-hover`).withDefault(e=>v.getValueFor(e).evaluate(e,m.getValueFor(e))),ee=y9(`foreground-on-${n}-active`).withDefault(e=>v.getValueFor(e).evaluate(e,h.getValueFor(e))),x=y9(`foreground-on-${n}-focus`).withDefault(e=>v.getValueFor(e).evaluate(e,g.getValueFor(e))),te=b9(`foreground-on-${n}-large-recipe`).withDefault({evaluate:(e,t)=>_(7)(e,t)}),ne=y9(`foreground-on-${n}-rest-large`).withDefault(e=>te.getValueFor(e).evaluate(e,p.getValueFor(e))),S=y9(`foreground-on-${n}-hover-large`).withDefault(e=>te.getValueFor(e).evaluate(e,m.getValueFor(e))),C=y9(`foreground-on-${n}-active-large`).withDefault(e=>te.getValueFor(e).evaluate(e,h.getValueFor(e))),w=y9(`foreground-on-${n}-focus-large`).withDefault(e=>te.getValueFor(e).evaluate(e,g.getValueFor(e))),re=b9(`${n}-foreground-recipe`).withDefault({evaluate:(e,t)=>KRe(r.getValueFor(e),t??Sc.getValueFor(e),S9,c.getValueFor(e),l.getValueFor(e),u.getValueFor(e),d.getValueFor(e))});return{palette:r,fillRestDelta:i,fillHoverDelta:a,fillActiveDelta:o,fillFocusDelta:s,foregroundRestDelta:c,foregroundHoverDelta:l,foregroundActiveDelta:u,foregroundFocusDelta:d,fillRecipe:f,fillRest:p,fillHover:m,fillActive:h,fillFocus:g,foregroundOnRecipe:v,foregroundOnRest:y,foregroundOnHover:b,foregroundOnActive:ee,foregroundOnFocus:x,foregroundOnLargeRecipe:te,foregroundOnRestLarge:ne,foregroundOnHoverLarge:S,foregroundOnActiveLarge:C,foregroundOnFocusLarge:w,foregroundRecipe:re,foregroundRest:y9(`${n}-foreground-rest`).withDefault(e=>re.getValueFor(e).evaluate(e).rest),foregroundHover:y9(`${n}-foreground-hover`).withDefault(e=>re.getValueFor(e).evaluate(e).hover),foregroundActive:y9(`${n}-foreground-active`).withDefault(e=>re.getValueFor(e).evaluate(e).active),foregroundFocus:y9(`${n}-foreground-focus`).withDefault(e=>re.getValueFor(e).evaluate(e).focus)}}let T9=Jo(e9.green),E9=Qo.create(T9.r,T9.g,T9.b),D9=ni.create(`secondary-color`).withDefault(E9),{palette:qRe,fillRestDelta:JRe,fillHoverDelta:YRe,fillActiveDelta:XRe,fillFocusDelta:ZRe,foregroundRestDelta:QRe,foregroundHoverDelta:$Re,foregroundActiveDelta:eze,foregroundFocusDelta:tze,fillRecipe:nze,fillRest:rze,fillHover:ize,fillActive:aze,fillFocus:oze,foregroundOnRecipe:sze,foregroundOnRest:cze,foregroundOnHover:lze,foregroundOnActive:uze,foregroundOnFocus:dze,foregroundOnLargeRecipe:fze,foregroundOnRestLarge:pze,foregroundOnHoverLarge:mze,foregroundOnActiveLarge:hze,foregroundOnFocusLarge:gze,foregroundRecipe:_ze,foregroundRest:vze,foregroundHover:yze,foregroundActive:bze,foregroundFocus:xze}=w9(`secondary`,D9),O9=Jo(e9.tertiary),k9=Qo.create(O9.r,O9.g,O9.b),A9=ni.create(`tertiary-color`).withDefault(k9),{palette:Sze,fillRestDelta:Cze,fillHoverDelta:wze,fillActiveDelta:Tze,fillFocusDelta:Eze,foregroundRestDelta:Dze,foregroundHoverDelta:Oze,foregroundActiveDelta:kze,foregroundFocusDelta:Aze,fillRecipe:jze,fillRest:Mze,fillHover:Nze,fillActive:Pze,fillFocus:Fze,foregroundOnRecipe:Ize,foregroundOnRest:Lze,foregroundOnHover:Rze,foregroundOnActive:zze,foregroundOnFocus:Bze,foregroundOnLargeRecipe:Vze,foregroundOnRestLarge:Hze,foregroundOnHoverLarge:Uze,foregroundOnActiveLarge:Wze,foregroundOnFocusLarge:Gze,foregroundRecipe:Kze,foregroundRest:qze,foregroundHover:Jze,foregroundActive:Yze,foregroundFocus:Xze}=w9(`tertiary`,A9),{palette:Zze,fillRestDelta:Qze,fillHoverDelta:$ze,fillActiveDelta:eBe,fillFocusDelta:tBe,foregroundRestDelta:nBe,foregroundHoverDelta:rBe,foregroundActiveDelta:iBe,foregroundFocusDelta:aBe,fillRecipe:oBe,fillRest:sBe,fillHover:cBe,fillActive:lBe,fillFocus:uBe,foregroundOnRecipe:dBe,foregroundOnRest:fBe,foregroundOnHover:pBe,foregroundOnActive:mBe,foregroundOnFocus:hBe,foregroundOnLargeRecipe:gBe,foregroundOnRestLarge:_Be,foregroundOnHoverLarge:vBe,foregroundOnActiveLarge:yBe,foregroundOnFocusLarge:bBe,foregroundRecipe:xBe,foregroundRest:SBe,foregroundHover:CBe,foregroundActive:wBe,foregroundFocus:TBe}=w9(`error`,i9),{palette:EBe,fillRestDelta:DBe,fillHoverDelta:OBe,fillActiveDelta:kBe,fillFocusDelta:ABe,foregroundRestDelta:jBe,foregroundHoverDelta:MBe,foregroundActiveDelta:NBe,foregroundFocusDelta:PBe,fillRecipe:FBe,fillRest:IBe,fillHover:LBe,fillActive:RBe,fillFocus:zBe,foregroundOnRecipe:BBe,foregroundOnRest:VBe,foregroundOnHover:HBe,foregroundOnActive:UBe,foregroundOnFocus:WBe,foregroundOnLargeRecipe:GBe,foregroundOnRestLarge:KBe,foregroundOnHoverLarge:qBe,foregroundOnActiveLarge:JBe,foregroundOnFocusLarge:YBe,foregroundRecipe:XBe,foregroundRest:ZBe,foregroundHover:QBe,foregroundActive:$Be,foregroundFocus:eVe}=w9(`success`,s9),{palette:tVe,fillRestDelta:nVe,fillHoverDelta:rVe,fillActiveDelta:iVe,fillFocusDelta:aVe,foregroundRestDelta:oVe,foregroundHoverDelta:sVe,foregroundActiveDelta:cVe,foregroundFocusDelta:lVe,fillRecipe:uVe,fillRest:dVe,fillHover:fVe,fillActive:pVe,fillFocus:mVe,foregroundOnRecipe:hVe,foregroundOnRest:gVe,foregroundOnHover:_Ve,foregroundOnActive:vVe,foregroundOnFocus:yVe,foregroundOnLargeRecipe:bVe,foregroundOnRestLarge:xVe,foregroundOnHoverLarge:SVe,foregroundOnActiveLarge:CVe,foregroundOnFocusLarge:wVe,foregroundRecipe:TVe,foregroundRest:EVe,foregroundHover:DVe,foregroundActive:OVe,foregroundFocus:kVe}=w9(`warning`,u9);var AVe=/* @__PURE__ */ c({accentFillActive:()=>Dc,accentFillActiveDelta:()=>Is,accentFillFocus:()=>Oc,accentFillFocusDelta:()=>Ls,accentFillHover:()=>Ec,accentFillHoverDelta:()=>Fs,accentFillRest:()=>Tc,accentFillRestDelta:()=>Ps,accentForegroundActive:()=>Wc,accentForegroundActiveDelta:()=>Bs,accentForegroundFocus:()=>Gc,accentForegroundFocusDelta:()=>Vs,accentForegroundHover:()=>Uc,accentForegroundHoverDelta:()=>zs,accentForegroundRest:()=>Hc,accentForegroundRestDelta:()=>Rs,accentPalette:()=>pc,baseHeightMultiplier:()=>us,baseLayerLuminance:()=>ds,bodyFont:()=>ls,buyColor:()=>BRe,controlCornerRadius:()=>z,defaultBuyColor:()=>f9,defaultErrorColor:()=>r9,defaultInfoColor:()=>g9,defaultSecondaryColor:()=>E9,defaultSellColor:()=>m9,defaultSeriousNotifyColor:()=>v9,defaultSuccessColor:()=>o9,defaultTertiaryColor:()=>k9,defaultWarningColor:()=>l9,density:()=>fs,designUnit:()=>B,direction:()=>ps,disabledOpacity:()=>ms,errorColor:()=>i9,errorFillActive:()=>lBe,errorFillActiveDelta:()=>eBe,errorFillFocus:()=>uBe,errorFillFocusDelta:()=>tBe,errorFillHover:()=>cBe,errorFillHoverDelta:()=>$ze,errorFillRecipe:()=>oBe,errorFillRest:()=>sBe,errorFillRestDelta:()=>Qze,errorForegroundActive:()=>wBe,errorForegroundActiveDelta:()=>iBe,errorForegroundFocus:()=>TBe,errorForegroundFocusDelta:()=>aBe,errorForegroundHover:()=>CBe,errorForegroundHoverDelta:()=>rBe,errorForegroundRecipe:()=>xBe,errorForegroundRest:()=>SBe,errorForegroundRestDelta:()=>nBe,errorPalette:()=>Zze,fillColor:()=>Sc,focusStrokeInner:()=>gl,focusStrokeOuter:()=>hl,focusStrokeWidth:()=>hs,foregroundOnAccentActive:()=>Nc,foregroundOnAccentActiveLarge:()=>Rc,foregroundOnAccentFocus:()=>Pc,foregroundOnAccentFocusLarge:()=>zc,foregroundOnAccentHover:()=>Mc,foregroundOnAccentHoverLarge:()=>Lc,foregroundOnAccentRest:()=>jc,foregroundOnAccentRestLarge:()=>Ic,foregroundOnErrorActive:()=>mBe,foregroundOnErrorActiveLarge:()=>yBe,foregroundOnErrorFocus:()=>hBe,foregroundOnErrorFocusLarge:()=>bBe,foregroundOnErrorHover:()=>pBe,foregroundOnErrorHoverLarge:()=>vBe,foregroundOnErrorLargeRecipe:()=>gBe,foregroundOnErrorRecipe:()=>dBe,foregroundOnErrorRest:()=>fBe,foregroundOnErrorRestLarge:()=>_Be,foregroundOnSecondaryActive:()=>uze,foregroundOnSecondaryActiveLarge:()=>hze,foregroundOnSecondaryFocus:()=>dze,foregroundOnSecondaryFocusLarge:()=>gze,foregroundOnSecondaryHover:()=>lze,foregroundOnSecondaryHoverLarge:()=>mze,foregroundOnSecondaryLargeRecipe:()=>fze,foregroundOnSecondaryRecipe:()=>sze,foregroundOnSecondaryRest:()=>cze,foregroundOnSecondaryRestLarge:()=>pze,foregroundOnSuccessActive:()=>UBe,foregroundOnSuccessActiveLarge:()=>JBe,foregroundOnSuccessFocus:()=>WBe,foregroundOnSuccessFocusLarge:()=>YBe,foregroundOnSuccessHover:()=>HBe,foregroundOnSuccessHoverLarge:()=>qBe,foregroundOnSuccessLargeRecipe:()=>GBe,foregroundOnSuccessRecipe:()=>BBe,foregroundOnSuccessRest:()=>VBe,foregroundOnSuccessRestLarge:()=>KBe,foregroundOnTertiaryActive:()=>zze,foregroundOnTertiaryActiveLarge:()=>Wze,foregroundOnTertiaryFocus:()=>Bze,foregroundOnTertiaryFocusLarge:()=>Gze,foregroundOnTertiaryHover:()=>Rze,foregroundOnTertiaryHoverLarge:()=>Uze,foregroundOnTertiaryLargeRecipe:()=>Vze,foregroundOnTertiaryRecipe:()=>Ize,foregroundOnTertiaryRest:()=>Lze,foregroundOnTertiaryRestLarge:()=>Hze,foregroundOnWarningActive:()=>vVe,foregroundOnWarningActiveLarge:()=>CVe,foregroundOnWarningFocus:()=>yVe,foregroundOnWarningFocusLarge:()=>wVe,foregroundOnWarningHover:()=>_Ve,foregroundOnWarningHoverLarge:()=>SVe,foregroundOnWarningLargeRecipe:()=>bVe,foregroundOnWarningRecipe:()=>hVe,foregroundOnWarningRest:()=>gVe,foregroundOnWarningRestLarge:()=>xVe,infoColor:()=>HRe,neutralFillActive:()=>Yc,neutralFillActiveDelta:()=>Ws,neutralFillFocus:()=>Xc,neutralFillFocusDelta:()=>Gs,neutralFillHover:()=>Jc,neutralFillHoverDelta:()=>Us,neutralFillInputActive:()=>el,neutralFillInputActiveDelta:()=>Js,neutralFillInputFocus:()=>tl,neutralFillInputFocusDelta:()=>Ys,neutralFillInputHover:()=>$c,neutralFillInputHoverDelta:()=>qs,neutralFillInputRest:()=>Qc,neutralFillInputRestDelta:()=>Ks,neutralFillLayerRest:()=>pl,neutralFillLayerRestDelta:()=>ic,neutralFillRest:()=>qc,neutralFillRestDelta:()=>Hs,neutralFillStealthActive:()=>al,neutralFillStealthActiveDelta:()=>Qs,neutralFillStealthFocus:()=>ol,neutralFillStealthFocusDelta:()=>$s,neutralFillStealthHover:()=>il,neutralFillStealthHoverDelta:()=>Zs,neutralFillStealthRest:()=>rl,neutralFillStealthRestDelta:()=>Xs,neutralFillStrongActive:()=>ul,neutralFillStrongActiveDelta:()=>nc,neutralFillStrongFocus:()=>dl,neutralFillStrongFocusDelta:()=>rc,neutralFillStrongHover:()=>ll,neutralFillStrongHoverDelta:()=>tc,neutralFillStrongRest:()=>cl,neutralFillStrongRestDelta:()=>ec,neutralForegroundHint:()=>_l,neutralForegroundRest:()=>H,neutralLayer1:()=>gc,neutralLayer2:()=>_c,neutralLayer3:()=>yc,neutralLayer4:()=>xc,neutralLayerCardContainer:()=>mc,neutralLayerFloating:()=>hc,neutralPalette:()=>dc,neutralStrokeActive:()=>xl,neutralStrokeActiveDelta:()=>sc,neutralStrokeDividerRest:()=>Cl,neutralStrokeDividerRestDelta:()=>lc,neutralStrokeFocus:()=>Sl,neutralStrokeFocusDelta:()=>cc,neutralStrokeHover:()=>bl,neutralStrokeHoverDelta:()=>oc,neutralStrokeRest:()=>yl,neutralStrokeRestDelta:()=>ac,secondaryColor:()=>D9,secondaryFillActive:()=>aze,secondaryFillActiveDelta:()=>XRe,secondaryFillFocus:()=>oze,secondaryFillFocusDelta:()=>ZRe,secondaryFillHover:()=>ize,secondaryFillHoverDelta:()=>YRe,secondaryFillRecipe:()=>nze,secondaryFillRest:()=>rze,secondaryFillRestDelta:()=>JRe,secondaryForegroundActive:()=>bze,secondaryForegroundActiveDelta:()=>eze,secondaryForegroundFocus:()=>xze,secondaryForegroundFocusDelta:()=>tze,secondaryForegroundHover:()=>yze,secondaryForegroundHoverDelta:()=>$Re,secondaryForegroundRecipe:()=>_ze,secondaryForegroundRest:()=>vze,secondaryForegroundRestDelta:()=>QRe,secondaryPalette:()=>qRe,sellColor:()=>VRe,seriousNotifyColor:()=>URe,strokeWidth:()=>V,successColor:()=>s9,successFillActive:()=>RBe,successFillActiveDelta:()=>kBe,successFillFocus:()=>zBe,successFillFocusDelta:()=>ABe,successFillHover:()=>LBe,successFillHoverDelta:()=>OBe,successFillRecipe:()=>FBe,successFillRest:()=>IBe,successFillRestDelta:()=>DBe,successForegroundActive:()=>$Be,successForegroundActiveDelta:()=>NBe,successForegroundFocus:()=>eVe,successForegroundFocusDelta:()=>PBe,successForegroundHover:()=>QBe,successForegroundHoverDelta:()=>MBe,successForegroundRecipe:()=>XBe,successForegroundRest:()=>ZBe,successForegroundRestDelta:()=>jBe,successPalette:()=>EBe,tertiaryColor:()=>A9,tertiaryFillActive:()=>Pze,tertiaryFillActiveDelta:()=>Tze,tertiaryFillFocus:()=>Fze,tertiaryFillFocusDelta:()=>Eze,tertiaryFillHover:()=>Nze,tertiaryFillHoverDelta:()=>wze,tertiaryFillRecipe:()=>jze,tertiaryFillRest:()=>Mze,tertiaryFillRestDelta:()=>Cze,tertiaryForegroundActive:()=>Yze,tertiaryForegroundActiveDelta:()=>kze,tertiaryForegroundFocus:()=>Xze,tertiaryForegroundFocusDelta:()=>Aze,tertiaryForegroundHover:()=>Jze,tertiaryForegroundHoverDelta:()=>Oze,tertiaryForegroundRecipe:()=>Kze,tertiaryForegroundRest:()=>qze,tertiaryForegroundRestDelta:()=>Dze,tertiaryPalette:()=>Sze,typeRampBaseFontSize:()=>gs,typeRampBaseLineHeight:()=>_s,typeRampMinus1FontSize:()=>vs,typeRampMinus1LineHeight:()=>ys,typeRampMinus2FontSize:()=>bs,typeRampMinus2LineHeight:()=>xs,typeRampPlus1FontSize:()=>Ss,typeRampPlus1LineHeight:()=>Cs,typeRampPlus2FontSize:()=>ws,typeRampPlus2LineHeight:()=>Ts,typeRampPlus3FontSize:()=>Es,typeRampPlus3LineHeight:()=>Ds,typeRampPlus4FontSize:()=>Os,typeRampPlus4LineHeight:()=>ks,typeRampPlus5FontSize:()=>As,typeRampPlus5LineHeight:()=>js,typeRampPlus6FontSize:()=>Ms,typeRampPlus6LineHeight:()=>Ns,warningColor:()=>u9,warningFillActive:()=>pVe,warningFillActiveDelta:()=>iVe,warningFillFocus:()=>mVe,warningFillFocusDelta:()=>aVe,warningFillHover:()=>fVe,warningFillHoverDelta:()=>rVe,warningFillRecipe:()=>uVe,warningFillRest:()=>dVe,warningFillRestDelta:()=>nVe,warningForegroundActive:()=>OVe,warningForegroundActiveDelta:()=>cVe,warningForegroundFocus:()=>kVe,warningForegroundFocusDelta:()=>lVe,warningForegroundHover:()=>DVe,warningForegroundHoverDelta:()=>sVe,warningForegroundRecipe:()=>TVe,warningForegroundRest:()=>EVe,warningForegroundRestDelta:()=>oVe,warningPalette:()=>tVe});let j9=yT(e9.primary),M9=yT(e9.neutral),N9=yT(e9.green),P9=yT(e9.tertiary),F9=yT(e9.error),I9=yT(e9.success),L9=yT(e9.warning),R9=ss.DarkMode,jVe=Pn.ltr,z9=`"Segoe UI", Arial, Helvetica, sans-serif`,B9=`14px`,V9=`20px`,MVe={design_tokens:{color:{accent:{$value:j9.source.toColorString(),$type:`color`},neutral:{$value:M9.source.toColorString(),$type:`color`},secondary:{$value:N9.source.toColorString(),$type:`color`},tertiary:{$value:P9.source.toColorString(),$type:`color`},error:{$value:F9.source.toColorString(),$type:`color`},success:{$value:I9.source.toColorString(),$type:`color`},warning:{$value:L9.source.toColorString(),$type:`color`}},fontFamily:{bodyFont:{$value:z9,$type:`fontFamily`}},typography:{baseFontSize:{$value:B9,$type:`dimension`},baseLineHeight:{$value:V9,$type:`dimension`}},mode:{luminance:{$value:R9,$type:`number`}},style:{density:{$value:0,$type:`number`},baseHeightMultiplier:{$value:10,$type:`number`},borderRadius:{$value:4,$type:`number`},strokeWidth:{$value:1,$type:`number`}},space:{designUnit:{$value:4,$type:`number`}}}};var NVe=/* @__PURE__ */ c({accentFillActiveDeltaValue:()=>-5,accentFillFocusDeltaValue:()=>0,accentFillHoverDeltaValue:()=>4,accentFillRestDeltaValue:()=>0,accentForegroundActiveDeltaValue:()=>-4,accentForegroundFocusDeltaValue:()=>0,accentForegroundHoverDeltaValue:()=>6,accentForegroundRestDeltaValue:()=>0,accentPaletteValue:()=>j9,baseHeightMultiplierValue:()=>10,baseLayerLuminanceValue:()=>R9,bodyFontValue:()=>z9,controlCornerRadiusValue:()=>4,densityValue:()=>0,designTokens:()=>MVe,designUnitValue:()=>4,directionValue:()=>jVe,disabledOpacityValue:()=>.3,errorPaletteValue:()=>F9,focusStrokeWidthValue:()=>2,neutralFillActiveDeltaValue:()=>5,neutralFillFocusDeltaValue:()=>0,neutralFillHoverDeltaValue:()=>10,neutralFillInputActiveDeltaValue:()=>0,neutralFillInputFocusDeltaValue:()=>10,neutralFillInputHoverDeltaValue:()=>5,neutralFillInputRestDeltaValue:()=>0,neutralFillLayerRestDeltaValue:()=>3,neutralFillRestDeltaValue:()=>7,neutralFillStealthActiveDeltaValue:()=>3,neutralFillStealthFocusDeltaValue:()=>0,neutralFillStealthHoverDeltaValue:()=>5,neutralFillStealthRestDeltaValue:()=>0,neutralFillStrongActiveDeltaValue:()=>-5,neutralFillStrongFocusDeltaValue:()=>0,neutralFillStrongHoverDeltaValue:()=>8,neutralFillStrongRestDeltaValue:()=>0,neutralPaletteValue:()=>M9,neutralStrokeActiveDeltaValue:()=>16,neutralStrokeDividerRestDeltaValue:()=>8,neutralStrokeFocusDeltaValue:()=>25,neutralStrokeHoverDeltaValue:()=>40,neutralStrokeRestDeltaValue:()=>25,prefix:()=>`rapid`,secondaryPaletteValue:()=>N9,strokeWidthValue:()=>1,successPaletteValue:()=>I9,tertiaryPaletteValue:()=>P9,typeRampBaseFontSizeValue:()=>B9,typeRampBaseLineHeightValue:()=>V9,typeRampMinus1FontSizeValue:()=>`13px`,typeRampMinus1LineHeightValue:()=>`19px`,typeRampMinus2FontSizeValue:()=>`12px`,typeRampMinus2LineHeightValue:()=>`18px`,typeRampPlus1FontSizeValue:()=>`15px`,typeRampPlus1LineHeightValue:()=>`21px`,typeRampPlus2FontSizeValue:()=>`16px`,typeRampPlus2LineHeightValue:()=>`22px`,typeRampPlus3FontSizeValue:()=>`17px`,typeRampPlus3LineHeightValue:()=>`23px`,typeRampPlus4FontSizeValue:()=>`18px`,typeRampPlus4LineHeightValue:()=>`24px`,typeRampPlus5FontSizeValue:()=>`19px`,typeRampPlus5LineHeightValue:()=>`25px`,typeRampPlus6FontSizeValue:()=>`20px`,typeRampPlus6LineHeightValue:()=>`26px`,warningPaletteValue:()=>L9}),H9=class extends K{constructor(){super(),this.luminancePersistence=new mT(this),gT(AVe,NVe,this)}connectedCallback(){super.connectedCallback(),this.luminancePersistence.connect(this.persistLuminance)}disconnectedCallback(){super.disconnectedCallback(),this.luminancePersistence.disconnect()}persistLuminanceChanged(){var e;(e=this.luminancePersistence)==null||e.setPersist(this.persistLuminance)}};q([D({attribute:`persist-luminance`,mode:`boolean`})],H9.prototype,`persistLuminance`,void 0),H9.compose({baseName:`design-system-provider`,template:T`<slot></slot>`});let U9=O` ${$1} :host{font-family: var(--body-font);font-size: var(--type-ramp-base-font-size);line-height: var(--type-ramp-base-line-height)}dialog{position: var(--dialog-position, fixed);top: 0;bottom: 0;border-radius: var(--card-corner-radius, calc(var(--control-corner-radius) * 1px));border: var(--card-border, calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest));text-align: left;line-height: normal;box-shadow: 0 2px 15px 0 rgb(0 0 0 / 35%);background-color: var(--dialog-background, var(--neutral-layer-1))}.top{display: flex;align-items: center;justify-content: space-between;color: var(--neutral-foreground-rest);margin-bottom: calc(var(--design-unit) * 2px);font-weight: 500}.bottom{display: flex;flex-wrap: wrap;justify-content: flex-end;color: var(--neutral-foreground-rest);gap: calc(var(--design-unit) * 2px)}:host slot:first-of-type{color: ${H}}::slotted(rapid-button){margin-top: calc(var(--design-unit) * 4px - 1px)}slot[name='top']::slotted(*){margin: 0;font-size: var(--type-ramp-base-font-size);color: var(--neutral-foreground-hint);font-weight: 700}.content-wrapper{min-width: var(--dialog-min-width);min-height: var(--dialog-min-height);height: fit-content;width: fit-content;max-width: var(--dialog-max-width);max-height: var(--dialog-max-height);display: flex;flex-direction: column;justify-content: space-between;align-items: stretch}.close-icon:hover svg{background-color: color-mix(in srgb, var(--neutral-foreground-rest), transparent 95%)}.close-icon svg g path{fill: color-mix(in srgb, var(--neutral-foreground-rest), transparent 50%)}.close-icon:hover svg g path{fill: var(--neutral-foreground-rest)}.close-icon:active svg{background-color: var(--neutral-layer-4)}.close-icon:active svg g path{fill: color-mix(in srgb, var(--neutral-foreground-rest), transparent 67%)}.header-controls{rapid-button{--base-height-multiplier: 8}rapid-button::part(control){padding: 0 calc((8 + var(--design-unit) * 1 * var(--density)) * 1px)}}`,PVe=h0,FVe=t0,IVe=m0;(class extends _0{}).compose(Object.assign({baseName:`dialog`,shadowOptions:IVe,styles:U9,template:FVe},PVe)),class extends b0{}.compose(Object.assign({baseName:`disclosure`,template:(e,t)=>v0(e,t),styles:(e,t)=>O` ${y0(e,t)} :host{font-size: var(--type-ramp-base-font-size);font-family: var(--body-font);line-height: var(--type-ramp-base-line-height);color: var(--neutral-foreground-rest)}:host([appearance='accent']) .invoker{padding: calc((10 + (var(--design-unit) * 2 * var(--density))) * 1px)}#disclosure-content{padding: 0 calc(var(--design-unit) * 4px) calc(var(--design-unit) * 4px);text-align: center}`,shadowOptions:m0},x0)),class extends w0{}.compose(Object.assign({baseName:`divider`,template:(e,t)=>S0(e,t),styles:(e,t)=>O` ${C0(e,t)}`,shadowOptions:void 0},T0)),class extends k0{}.compose({baseName:`dropdown-menu`,styles:(e,t)=>O` ${E0(`rapid`,e,t)} .actions-menu{border-radius: calc(var(--control-corner-radius) * 1px);border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);gap: 0;margin: calc(var(--design-unit) * 1px) 0}rapid-menu{margin: 0 0 calc(var(--design-unit) * 1px) calc(var(--design-unit) * -2px);border-radius: calc(var(--control-corner-radius) * 1px);border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest)}`,template:O0});let LVe=O` ${A0}`;(class extends I0{}).compose({baseName:`environment-indicator`,styles:LVe,template:j0});function W9(e,...t){let n=``;return e.forEach((e,r)=>{n+=e,r<t.length&&(n+=t[r])}),n}let G9={number:`rapid-number-field`,text:`rapid-text-field`,date:`rapid-text-field`,datetimeLocal:`rapid-text-field`,checkbox:`rapid-checkbox`,button:`rapid-button`,select:`rapid-select`,option:`rapid-option`,optgroup:`rapid-optgroup`,radio:{input:`rapid-radio`,group:`rapid-radio-group`}},K9=W9` rapid-select, rapid-text-field, rapid-number-field{min-width: 180px}rapid-button.btn{padding: 0}rapid-button.btn-success{background-color: var(--accent-fill-active);border-color: var(--accent-fill-active)}rapid-button.btn-danger{background-color: var(--error-color);border-color: var(--error-border-color)}rapid-select::part(listbox){max-height: 15vh}`,q9=W9` border: unset;border: 1px solid var(--focus-stroke-outer);padding: calc(var(--design-unit) * 2.5px);border-radius: 10px;margin: calc(var(--design-unit) * 1px);`,J9={value:W9` ${K9} rapid-number-field, rapid-text-field{margin-bottom: 0}rapid-number-field::part(label){display: none}p.validation-msg{color: var(--neutral-foreground-rest)}`,rule:W9` ${K9} div.rule-container{${q9}}div.rule-container.error{border-color: var(--error-border-color)}`,operator:W9` ${K9} rapid-select{min-width: 350px}`,field:W9` ${K9} rapid-select{min-width: 350px}`,group:W9` ${K9} div.rules-group-container{${q9}}p.group-combinator-link{padding-left: calc(var(--design-unit) * 2.5px);color: var(--neutral-foreground-rest)}`},Y9=class extends o7{constructor(){super(...arguments),this.styles={customElements:G9,customStyles:J9}}};q([C],Y9.prototype,`styles`,void 0),Y9=q([$e({name:`rapid-expression-builder`,styles:x7.styles,template:x7.template})],Y9);let X9=class extends D7{constructor(){super(...arguments),this.styles={customElements:G9,customStyles:J9}}};q([C],X9.prototype,`styles`,void 0),X9=q([$e({name:`rapid-rule-expression-builder`,styles:x7.styles,template:x7.template})],X9);let Z9=class extends j7{constructor(){super(...arguments),this.styles={customElements:G9,customStyles:J9}}};q([C],Z9.prototype,`styles`,void 0),Z9=q([$e({name:`rapid-value-expression-builder`,styles:x7.styles,template:x7.template})],Z9);let RVe=O` ${Q0} ::-webkit-scrollbar{width: calc(var(--design-unit) * 3px)}::-webkit-scrollbar-track{background: rgb(31 33 38)}::-webkit-scrollbar-thumb{width: 8px;border-radius: 10px;box-shadow: inset 0 0 6px rgba(0 0 0 / 30%);background-color: var(--neutral-fill-rest);border: calc(var(--stroke-width) * 3px) solid var(--neutral-layer-4)}:host::part(select-file-button), :host::part(upload-file-button){margin: 0 0 calc(var(--design-unit) * 2px) calc(var(--design-unit) * 2px)}`,zVe=T` ${$0(`rapid`)} `,BVe=t2;(class extends e2{}).compose(Object.assign({baseName:`file-upload`,shadowOptions:void 0,styles:RVe,template:zVe},BVe));let VVe=(e,t)=>O` ${c2(e,t)} .toggle, .toggle-collapsed{background: var(--neutral-layer-4);color: var(--neutral-foreground-hint)}.toggle{border-top: calc(var(--stroke-width) * 2px) solid}.toggle:hover, .toggle-collapsed:hover{color: var(--accent-foreground-rest)}.filter-bar{background: var(--neutral-layer-3)}`,HVe=T` ${l2(`rapid`)} `;(class extends u2{}).compose({baseName:`filter-bar`,template:HVe,styles:VVe});let UVe=(e,t)=>O` ${n2} .filter-wrapper{border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest)}.close-icon{border: calc(var(--stroke-width) * 1px) solid transparent}.close-icon:hover{border-color: var(--error-color);background: color-mix(in srgb, var(--error-color), transparent 75%)}.close-icon:hover svg path{fill: var(--error-color)}rapid-select{margin-bottom: calc(var(--design-unit) * 2px)}.flex-row rapid-text-field, .flex-row rapid-select{flex: 1}`,WVe=T` ${a2(`rapid`)} `;(class extends s2{}).compose({baseName:`filter`,template:WVe,styles:UVe}),class extends h2{}.compose(Object.assign({baseName:`flipper`,template:(e,t)=>p2(e,t),styles:(e,t)=>O` ${m2(e,t)} :host{color: var(--neutral-foreground-rest)}:host(:hover){color: var(--neutral-foreground-rest)}:host::before{background: color-mix(in srgb, var(--accent-fill-rest), transparent 50%);border: calc(var(--stroke-width) * 1px) solid var(--accent-fill-rest);color: var(--neutral-foreground-rest)}:host(:hover)::before{background: var(--accent-fill-rest);color: var(--neutral-foreground-rest)}`,shadowOptions:void 0},g2));let GVe=O` ${_2} div.flyout{background-color: var(--neutral-layer-1);border-color: var(--neutral-stroke-rest);color: var(--neutral-foreground-rest);padding: calc(var(--design-unit) * 4px)}div.background{padding: calc(var(--design-unit) * 4px) 0}:host{font-size: var(--type-ramp-base-font-size);font-family: var(--body-font);line-height: var(--type-ramp-base-line-height)}:host([position='left']) div.flyout{border-right-style: solid;border-right-width: calc(var(--stroke-width) * 1px)}:host([position='right']) div.flyout{border-left-style: solid;border-left-width: calc(var(--stroke-width) * 1px)}div.exit{cursor: pointer;width: calc((var(--base-height-multiplier) * (var(--design-unit) - 1)) * 1px);height: calc((var(--base-height-multiplier) * (var(--design-unit) - 1)) * 1px);display: flex;justify-content: center;align-items: center}div.content, div.footer{padding: 0 0 calc(var(--design-unit) * 2px)}div.exit:hover{background-color: var(--neutral-fill-hover);border-radius: calc(var(--stroke-width) * 3px)}`,KVe=T` ${v2(`rapid`)} `,qVe=b2;(class extends y2{}).compose(Object.assign({baseName:`flyout`,shadowOptions:void 0,styles:GVe,template:KVe},qVe));let JVe=(e,t)=>O` ${E2(e,t)}`,YVe=(e,t)=>T2(e,t);var XVe=class extends D2{};let ZVe={nextFlipper:T`<rapid-flipper @click="${e=>e.scrollToNext()}" aria-hidden="${e=>e.flippersHiddenFromAT}"></rapid-flipper>`,previousFlipper:T`<rapid-flipper @click="${e=>e.scrollToPrevious()}" direction="previous" aria-hidden="${e=>e.flippersHiddenFromAT}"></rapid-flipper>`};XVe.compose(Object.assign({baseName:`horizontal-scroll`,template:YVe,styles:JVe,shadowOptions:O2},ZVe));let QVe=(e,t)=>O` ${k2(e,t)}`,$Ve=T` ${A2(`rapid`)} `;var eHe=class extends P2{};let tHe=M2,nHe=j2;eHe.compose(Object.assign({baseName:`icon`,template:$Ve,styles:QVe,shadowOptions:nHe},tHe)),class extends V2{}.compose(Object.assign({baseName:`option`,template:(e,t)=>z2(e,t),styles:(e,t)=>O` ${B2(e,t)} :host{border-radius: 0;padding: 0 calc(var(--design-unit) * 4px);height: calc( (((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) - 4) * 1px );border-bottom: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest)}:host(.selected), :host(:not([disabled])[aria-selected='true']:active), :host(:not([disabled])[aria-selected='true']:hover){background: var(--neutral-layer-2);color: var(--accent-fill-rest);font-weight: 500}`,shadowOptions:void 0},H2)),class extends L2{}.compose(Object.assign({baseName:`listbox`,template:(e,t)=>F2(e,t),styles:(e,t)=>O` ${I2(e,t)} :host{padding: 0;max-width: 300px;/** if removed max-width will be fit-content */}::slotted(*:last-child){border-bottom: none}`,shadowOptions:void 0},R2)),class extends Y2{}.compose(Object.assign({baseName:`menu-item`,template:(e,t)=>q2(e,t),styles:(e,t)=>O` ${J2(e,t)} :host{margin: 0;--control-corner-radius: 0;background: var(--neutral-fill-stealth-rest);border-radius: calc(var(--control-corner-radius) * 1px)}:host(:hover){background: color-mix(in srgb, ${il}, transparent 15%);border: calc(var(--focus-stroke-width) * 1px) solid color-mix(in srgb, ${il}, transparent 15%)}:host(:focus){background: var(--neutral-fill-stealth-hover)}:host(.indent-0){border-bottom: calc(var(--stroke-width) * 1px) solid var(--neutral-fill-stealth-hover)}/* UX team wants border: solid 1px #2E3339;background: #2E3339 */ /* tokens being used by fast background: ${il} color: ${H} */`,shadowOptions:void 0},X2)),class extends G2{}.compose(Object.assign({baseName:`menu`,template:(e,t)=>U2(e,t),styles:(e,t)=>O` ${W2(e,t)} :host{border: calc(var(--focus-stroke-width) * 1px) solid color-mix(in srgb, ${il}, transparent 15%);padding: 0}`,shadowOptions:void 0},K2));let rHe=O` ${U9}`,iHe=$2,aHe=Z2,oHe=Q2;(class extends e4{}).compose(Object.assign({baseName:`modal`,shadowOptions:oHe,styles:rHe,template:aHe},iHe));let sHe=O` ${ww} .root{min-width: 0}.control{height: calc( (((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) - 4) * 1px );min-height: 0;outline: none;border-style: solid;border-width: var(--neutral-stroke-width-rest, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-rest, var(--focus-stroke-outer));background-color: var(--neutral-fill-input-rest);color: var(--neutral-foreground-rest);font-size: var(--type-ramp-base-font-size);line-height: var(--type-ramp-base-line-height);font-family: var(--body-font);box-sizing: border-box}:host(:focus-within:not([disabled])) .control{outline: none;border-style: solid;border-width: var(--neutral-stroke-width-focus, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-focus, var(--accent-fill-rest));background-color: var(--neutral-fill-input-focus)}.control:hover:not(:focus):not([disabled]){outline: none;border-style: solid;border-width: var(--neutral-stroke-width-hover, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-hover, var(--neutral-foreground-rest));background: var(--neutral-fill-input-hover)}#display-field{min-height: unset;padding: 0 calc((var(--design-unit) - 2) * 1px) 0 calc(var(--design-unit) * 2px);font-family: var(--body-font), sans-serif;font-size: var(--type-ramp-base-font-size);background-color: transparent}#display-field:focus{outline: none;background: unset}#display-field:hover:not(:focus):not([disabled]){outline: none}.indicator{width: calc((var(--base-height-multiplier) * (var(--design-unit) - 1)) * 1px);height: calc((var(--base-height-multiplier) * (var(--design-unit) - 1)) * 1px);left: calc( 100% - ((var(--base-height-multiplier) * (var(--design-unit) - 1)) + (var(--design-unit) - 2)) * 1px );background-color: var(--dropdown-indicator-background, var(--neutral-fill-rest));border-radius: calc(var(--control-corner-radius) * 1px);display: flex;justify-content: center;align-items: center}#arrow-icon{width: calc(var(--design-unit) * 3.5px);height: calc(var(--design-unit) * 3.5px);fill: var(--neutral-foreground-rest)}.label{color: var(--neutral-foreground-hint)}.options{border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);overflow-x: hidden}rapid-checkbox{border-bottom: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);padding: calc((var(--design-unit) + 1) * 1px) 0 calc((var(--design-unit) + 1) * 1px) calc((var(--design-unit) + 1) * 1px);margin: 0}rapid-checkbox:hover:not([disabled]){background: var(--neutral-layer-4)}rapid-checkbox::part(label){overflow-x: hidden;text-overflow: ellipsis;white-space: nowrap}rapid-checkbox[disabled]{cursor: not-allowed}`,cHe=T` ${Ow(`rapid`)} `;var lHe=class extends Aw{};let uHe=kw;lHe.compose(Object.assign({baseName:`multiselect`,template:cHe,styles:sHe,shadowOptions:void 0},uHe)),class extends N7{}.compose({baseName:`notification-listener`,template:M7,shadowOptions:{mode:`open`,delegatesFocus:!0}});let dHe=(e,t)=>O` :host{flex: 1 1 auto;box-sizing: border-box}:host([disabled]){opacity: var(--disabled-opacity);cursor: not-allowed}:host .control{height: 100%;width: 100%;border: none;background-color: transparent;padding: 0 calc(var(--design-unit) * 2px);color: var(--neutral-foreground-rest);font-size: var(--type-ramp-base-font-size);font-family: var(--body-font)}:host .root{display: flex;box-sizing: border-box;position: relative;align-items: center;border-radius: calc(var(--control-corner-radius) * 1px);border-style: solid;border-width: var(--neutral-stroke-width-rest, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-rest, var(--focus-stroke-outer));background-color: var(--neutral-fill-input-rest);height: calc( (((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) - 4) * 1px )}:host(:hover:not([disabled])) .root{border-style: solid;border-width: var(--neutral-stroke-width-hover, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-hover, var(--neutral-foreground-rest));background: var(--neutral-fill-input-hover)}:host(:focus-within:not([disabled])) .root{border-style: solid;border-width: var(--neutral-stroke-width-focus, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-focus, var(--accent-fill-rest));background-color: var(--neutral-fill-input-focus);box-shadow: none}.label{display: block;color: var(--neutral-foreground-hint);font-weight: 700;margin: calc(var(--design-unit) * 2px) 0;font-family: var(--body-font);font-size: var(--type-ramp-base-font-size);line-height: var(--type-ramp-base-line-height)}.label-hidden{margin: 0}.controls{position: absolute;right: 3px;width: calc((var(--base-height-multiplier) * (var(--design-unit) - 1)) * 1px);height: calc((var(--base-height-multiplier) * (var(--design-unit) - 1)) * 1px);background-color: var(--neutral-fill-rest);border-radius: calc(var(--control-corner-radius) * 1px);display: flex;justify-content: center;align-items: center;flex-direction: column;cursor: pointer}.step-down, .step-up{width: 1em;height: 1em;margin: -2px}.step-up-glyph, .step-down-glyph{fill: var(--neutral-foreground-hint)}.control:focus-visible{outline: none}:host .control-field .control{width: 100%}${X0}`;var fHe=class extends _4{};let pHe=y4,mHe=t4,hHe=v4;fHe.compose(Object.assign({baseName:`number-field`,template:mHe,styles:dHe,shadowOptions:hHe},pHe)),class extends S4{}.compose({baseName:`optgroup`,template:(e,t)=>x4(e,t),styles:(e,t)=>O` ${b4(e,t)}`}),class extends O4{}.compose(Object.assign({baseName:`system-health-overlay`,template:k4,styles:A4,shadowOptions:void 0},j4));let gHe=O` ${M4} :host{--pill-fill: ${qc};--pill-fill-hover: ${Jc};--pill-foreground: ${H}}`,_He=N4;(class extends F4{}).compose(Object.assign({baseName:`pill`,template:_He,styles:gHe,shadowOptions:void 0},P4)),class extends F3{}.compose(Object.assign({baseName:`progress-ring`,template:(e,t)=>N3(e,t),styles:(e,t)=>O` ${P3(e,t)}`,shadowOptions:void 0},I3)),class extends T4{}.compose(Object.assign({baseName:`progress`,template:(e,t)=>C4(e,t),styles:(e,t)=>O` ${w4(e,t)}`,shadowOptions:void 0},E4)),class extends U3{}.compose(Object.assign({baseName:`radio-group`,template:(e,t)=>V3(e,t),styles:(e,t)=>O` ${H3(e,t)}`,shadowOptions:void 0},W3)),class extends z3{}.compose(Object.assign({baseName:`radio`,template:(e,t)=>L3(e,t),styles:(e,t)=>O` ${R3(e,t)} :host{margin: 0}:host .control{background: transparent}:host([aria-checked='true']) .control{background: transparent;border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest)}:host .label{padding-inline-start: calc(var(--design-unit) * 2px)}:host(:not([disabled])) .control:hover{background: transparent}:host([aria-checked='true']:not([disabled])) .control:hover{background: transparent;border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-hover)}.checked-indicator, :host([aria-checked='true']:not([disabled])) .control:hover .checked-indicator{background: var(--accent-fill-rest)}`,shadowOptions:void 0},B3));let Q9=class extends z_.from(Qe){connectedCallback(){super.connectedCallback(),x.queueUpdate(()=>J(this,void 0,void 0,function*(){this.$router.config=this.config}))}};Q9=q([$e({name:`rapid-router`})],Q9);let vHe=O` ${r6} :host{font-family: var(--body-font)}`,yHe=T` ${m6(`rapid`)} `;(class extends h6{}).compose(Object.assign({baseName:`scheduler-cron-builder`,template:yHe,styles:vHe,shadowOptions:void 0},g6));let bHe=O` ${_6} :host{font-family: var(--body-font)}`,xHe=T` ${v6(`rapid`)} `;(class extends y6{}).compose(Object.assign({baseName:`scheduler-timezone`,template:xHe,styles:bHe,shadowOptions:void 0},b6));let SHe=O` ${G3} :host{font-family: var(--body-font)}`,CHe=T` ${K3(`rapid`)} `;(class extends q3{}).compose(Object.assign({baseName:`scheduler`,template:CHe,styles:SHe,shadowOptions:void 0},J3)),class extends D6{}.compose(Object.assign({baseName:`search-bar-combobox`,template:(e,t)=>E6(e,t),styles:(e,t)=>O` ${T6(e,t)} :host{border-style: solid;border-width: var(--neutral-stroke-width-rest, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-rest, var(--neutral-stroke-rest));background-color: var(--neutral-fill-input-rest);height: calc( (((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) - 4) * 1px )}:host(:focus-within:not([disabled])){border-style: solid;border-width: var(--neutral-stroke-width-focus, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-focus, var(--accent-fill-rest));background-color: var(--neutral-fill-input-focus)}:host(:hover:not([disabled]):not([open])){border-style: solid;border-width: var(--neutral-stroke-width-hover, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-hover, var(--neutral-foreground-rest));background: var(--neutral-fill-input-hover)}:host([open][position='below']) .listbox{padding: 0;margin-top: calc(${B} * 1px);border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);border-radius: calc(var(--control-corner-radius) * 1px)}:host .listbox ::slotted(*:last-child){border-bottom: none}`,shadowOptions:O6},k6));let wHe=O` ${x6}`,THe=T` ${S6(`rapid`)} `;(class extends C6{}).compose(Object.assign({baseName:`search-bar`,template:THe,styles:wHe,shadowOptions:void 0},w6)),class extends I6{}.compose(Object.assign({baseName:`section-navigator`,template:j6,styles:(e,t)=>A6,shadowOptions:L6},R6)),class extends V6{}.compose(Object.assign({baseName:`segmented-control`,template:(e,t)=>z6(e,t),styles:(e,t)=>O` ${B6(e,t)} :host{font-family: var(--body-font);margin: 0}:host ::slotted(*){transition: color 0.4s ease 0s}:host ::slotted(label){color: var(--neutral-foreground-rest)}:host ::slotted(rapid-segmented-item:first-of-type){border-radius: calc(var(--control-corner-radius) * 1px) 0 0 calc(var(--control-corner-radius) * 1px);border-right-width: 0}:host ::slotted(rapid-segmented-item:last-of-type){border-radius: 0 calc(var(--control-corner-radius) * 1px) calc(var(--control-corner-radius) * 1px) 0;border-left-width: 0}:host ::slotted(rapid-segmented-item:only-of-type){border-radius: calc(var(--control-corner-radius) * 1px);border-left-width: 1px;border-right-width: 1px}:host ::slotted(*[aria-checked='true']){background: var(--neutral-fill-rest);box-shadow: none;color: var(--neutral-foreground-rest)}:host([appearance='primary']) ::slotted(*[aria-checked='true']){background: var(--accent-fill-rest);border-color: transparent;box-shadow: none;color: var(--foreground-on-accent-rest)}`,shadowOptions:void 0},{})),class extends z3{}.compose(Object.assign({baseName:`segmented-item`,template:(e,t)=>H6(e,t),styles:(e,t)=>O` ${U6(e,t)} :host{color: var(--neutral-fill-strong-rest);font-size: var(--type-ramp-minus-2-font-size);font-weight: 500;border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);box-sizing: border-box;height: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit) - 4) * 1px);padding: 0 calc((16 + var(--design-unit) * 2 * var(--density)) * 1px);margin: 0}:host([aria-checked='true']){color: color-mix(in srgb, white, transparent 10%)}`,shadowOptions:void 0},{})),class extends K6{}.compose(Object.assign({baseName:`select`,template:(e,t)=>W6(e,t),styles:(e,t)=>O` ${G6(e,t)} :host{border-radius: calc(var(--control-corner-radius) * 1px);border-style: solid;border-width: var(--neutral-stroke-width-rest, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-rest, var(--focus-stroke-outer));background-color: var(--neutral-fill-input-rest);height: calc( (((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) - 4) * 1px )}:host(:focus-within:not([disabled])){border-style: solid;border-width: var(--neutral-stroke-width-focus, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-focus, var(--accent-fill-rest));background-color: var(--neutral-fill-input-focus)}:host(:hover:not([disabled]):not(.open)){border-style: solid;border-width: var(--neutral-stroke-width-hover, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-hover, var(--neutral-foreground-rest));background: var(--neutral-fill-input-hover)}:host([open][position='below']) .listbox{padding: 0;margin-top: calc(${B} * 1px);border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);border-radius: calc(var(--control-corner-radius) * 1px)}.control{padding: 0 calc((var(--design-unit) - 2) * 1px) 0 calc(var(--design-unit) * 2px)}:host(:not([disabled])) .control:active{background: none}.indicator{width: calc((var(--base-height-multiplier) * (var(--design-unit) - 1)) * 1px);height: calc((var(--base-height-multiplier) * (var(--design-unit) - 1)) * 1px);background-color: var(--dropdown-indicator-background, var(--neutral-fill-rest));border-radius: calc(var(--control-corner-radius) * 1px);display: flex;justify-content: center;align-items: center}.select-indicator{width: calc(var(--design-unit) * 3.5px);height: calc(var(--design-unit) * 3.5px);transition: all 0.35s;min-width: unset;min-height: unset}.selected-value{display: flex;align-items: center;height: calc(100% - (var(--design-unit) * 1px));padding: 0;margin: 0}:host(:focus-within:not([disabled])) .indicator{background-color: transparent}:host([open]) .select-indicator{transition: all 0.35s;transform: rotate(180deg)}::slotted([role='option']){margin: 0}`,shadowOptions:void 0},q6)),class extends X6{}.compose(Object.assign({baseName:`skeleton`,template:(e,t)=>J6(e,t),styles:(e,t)=>O` ${Y6(e,t)} :host{--skeleton-fill: var( --neutral-fill-stealth-rest );/** value in ux doc rgba(242 242 242 / 0.1) */}`,shadowOptions:void 0},Z6)),class extends i8{}.compose(Object.assign({baseName:`slider-label`,template:(e,t)=>n8(e,t),styles:(e,t)=>O` ${r8(e,t)} .label{padding: calc((var(--design-unit) - 1) * 2px) calc(var(--design-unit) * 2px);border-radius: calc(var(--control-corner-radius) * 1px);border: calc(var(--stroke-width) * 1px) solid var(--neutral-layer-4);background-color: var(--neutral-fill-strong-hover);color: var(--neutral-layer-4);text-align: center;font-size: var(--type-ramp-minus-1-font-size, 12px)}`,shadowOptions:void 0},a8)),class extends e8{}.compose(Object.assign({baseName:`slider`,template:(e,t)=>Q6(e,t),styles:(e,t)=>O` ${$6(e,t)} .thumb-cursor{background: var(--accent-fill-rest);border-radius: calc(var(--control-corner-radius) * 2px)}.thumb-cursor:hover, .thumb-cursor:focus, .thumb-cursor:active{background: var(--accent-fill-rest);border-radius: transparent}:host(:focus-visible) .thumb-cursor{box-shadow: 0 0 0 0}.thumb-cursor:hover::after, .thumb-cursor:focus::after, .thumb-cursor:active::after{content: '';height: calc(var(--thumb-size) * 2px);width: calc(var(--thumb-size) * 2px);border-radius: calc(var(--control-corner-radius) * 4px);position: absolute;top: 50%;left: 50%;transform: translate(-50%, -50%);z-index: -1}.thumb-cursor:hover::after{background-color: color-mix(in srgb, ${Tc}, transparent 90%)}.thumb-cursor:focus::after{background-color: color-mix(in srgb, ${Tc}, transparent 80%)}.thumb-cursor:active::after{background-color: color-mix(in srgb, ${Tc}, transparent 70%)}.track{background-color: var(--neutral-fill-rest)}:host([orientation='horizontal']) .track .track-progress{background-color: var(--neutral-stroke-rest);height: calc((var(--track-width) + 2) * 1px) !important}:host([orientation='vertical']) .track .track-progress{background-color: var(--neutral-stroke-rest);width: calc((var(--track-width) + 2) * 1px) !important}`,shadowOptions:void 0},t8));let EHe=O` ${l8} .snackbar{border: calc(var(--stroke-width) * 1px) solid var(--neutral-layer-2);background-color: var(--neutral-layer-1);padding: calc((var(--design-unit) - 2) * 1px) calc(var(--design-unit) * 4px)}:host([type='error']) .snackbar::after{background-color: var(--error-color)}.content{font-family: var(--body-font);font-size: var(--type-ramp-minus-2-font-size);color: var(--neutral-foreground-rest)}.action{gap: calc(var(--design-unit) * 2px)}`,DHe=T` ${u8(`rapid`)} `,OHe=d8;(class extends f8{}).compose({baseName:`snackbar`,shadowOptions:OHe,styles:EHe,template:DHe}),class extends h8{}.compose({baseName:`stacking-icons`,template:m8,styles:(e,t)=>O` ${p8(e,t)}`}),class extends x8{}.compose({baseName:`status-pill`,template:_8,styles:g8}),class extends O8{}.compose(Object.assign({baseName:`stepper-tab-panel`,template:(e,t)=>D8(e,t),shadowOptions:void 0},k8));let kHe=(e,t)=>O` ${w8(e,t)} rapid-tree-item{--design-unit: 2.5;--neutral-fill-stealth-rest: var(--neutral-layer-3);--neutral-fill-stealth-hover: var(--fill-color);--neutral-fill-rest: var(--fill-color);--base-height-multiplier: 14.5;border-bottom: calc(var(--stroke-width) * 1px) solid var(--fill-color)}.completed-icon{color: var(--success-color)}.tree-item::part(positioning-region)::before{width: var(--tree-item-nested-width)}.stepper-icon{margin-right: calc(var(--design-unit) * 2px)}.error-icon{color: var(--error-color)}.step-number{font-size: var(--type-ramp-minus-1-font-size);border: calc(var(--stroke-width) * 1px) solid var(--neutral-fill-input-rest)}.step-title{font-size: var(--type-ramp-base-font-size)}.angle-icon{margin: 0 calc(var(--design-unit) * 4px)}:host([completed]) .step-number{border-color: var(--success-color);color: white;background-color: var(--success-color)}:host([completed]) .step-title{color: var(--success-color)}:host([error]) .step-number{border-color: var(--error-color);color: white;background-color: var(--error-color)}:host([error]) .step-title{color: var(--error-color)}`,AHe=T` ${C8(`rapid`)} `;(class extends T8{}).compose(Object.assign({baseName:`stepper-tab`,template:AHe,styles:kHe,shadowOptions:void 0},E8));let jHe=O` ${Y7} :host{font-family: var(--body-font)}:host([orientation='horizontal']){height: 100%}.stepper-tab-panel{border: none;height: auto}:host([orientation='horizontal']) .stepper-tab-panel{height: 100%}.stepper-tab{background-color: var(--neutral-layer-3);border: none}.stepper-panel-container{padding: calc(var(--design-unit) * 4px)}.action-buttons-container{padding: calc(var(--design-unit) * 2px);width: auto;gap: calc(var(--design-unit) * 2px)}.stepper-tab-menu{margin-bottom: calc(var(--design-unit) * 4px)}.stepper-tab-progress{padding: calc(var(--design-unit) * 4px) 0}label{padding: 0 calc(var(--design-unit) * 2px);color: var(--neutral-foreground-hint)}`,MHe=T` ${J7(`rapid`)} `;(class extends X7{}).compose(Object.assign({baseName:`stepper`,template:MHe,styles:jHe,shadowOptions:void 0},Z7)),class extends M8{}.compose(Object.assign({baseName:`switch`,template:(e,t)=>A8(e,t),styles:(e,t)=>O` ${j8(e,t)} :host{--primary-gradient-angle: -113.5deg}.switch{background: none;border-color: var(--neutral-stroke-rest)}.checked-indicator{background-color: var(--neutral-stroke-rest)}.switch:hover{border-color: var(--neutral-stroke-rest);background: none}:host([aria-checked='true']) .switch{background: none}:host([aria-checked='true']) .checked-indicator{background: var(--accent-fill-rest)}:host([aria-checked='true']:not([disabled])) .switch:hover, :host([aria-checked='true']:not([disabled])) .switch:active{background: none}:host([aria-checked='true']:not([disabled])) .switch:hover .checked-indicator, :host([aria-checked='true']:not([disabled])) .switch:active .checked-indicator{background: var(--accent-fill-rest)}`,shadowOptions:void 0},{switch:`<div class="checked-indicator" part="checked-indicator"></div>`})),class extends z8{}.compose(Object.assign({baseName:`tab-panel`,template:(e,t)=>L8(e,t),styles:(e,t)=>O` ${R8(e,t)} :host{padding: 0;background-color: var(--neutral-layer-card-container);border-radius: 0 0 var(--card-corner-radius, calc(var(--control-corner-radius) * 1.5px)) var(--card-corner-radius, calc(var(--control-corner-radius) * 1.5px));border-style: solid;border-width: var(--tabs-border-width, 1px);border-color: var(--tabs-border-color, var(--neutral-stroke-rest))}`,shadowOptions:void 0},B8)),class extends F8{}.compose(Object.assign({baseName:`tab`,template:(e,t)=>N8(e,t),styles:(e,t)=>O` ${P8(e,t)} :host{background-color: var(--neutral-layer-2);border-radius: calc(var(--control-corner-radius) * 2px);box-shadow: 0 0 15px 0 rgb(0 0 0 / 30%);margin-right: calc(var(--design-unit) * 5px);height: calc( (((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) - 4) * 1px )}:host([aria-selected='true']), :host([aria-selected='true']:hover){background-color: var(--neutral-layer-4);font-weight: 700}/* * Sustained alert, sampling the flash phase the platform animates on the document. Every * alerting surface reads that one value, so tabs and grid rows brighten and fade together * however long ago each of them started alerting. * * Mixing towards transparent and currentColor lets the tab fade back to its own resting * colours, so selected and unselected tabs each return to the right background. * * !important because a :host rule loses to any app stylesheet that colours tabs from the light * DOM, and an alert nobody can see is worse than no alert. */ :host([alert]){background-color: color-mix( in srgb, var(--tab-alert-color, var(--error-fill-rest)) calc(var(${K0}, 0) * 100%), transparent ) !important;color: color-mix( in srgb, contrast-color(var(--tab-alert-color, var(--error-fill-rest))) calc(var(${K0}, 0) * 100%), currentColor ) !important}/* Reduced motion stops the clock, leaving the phase at 0, so paint a steady alert instead. */ @media (prefers-reduced-motion: reduce){:host([alert]){background-color: var(--tab-alert-color, var(--error-fill-rest)) !important;color: contrast-color(var(--tab-alert-color, var(--error-fill-rest))) !important}}`,shadowOptions:void 0},I8)),class extends U8{}.compose(Object.assign({baseName:`tabs`,template:(e,t)=>V8(e,t),styles:(e,t)=>O` ${H8(e,t)} :host{background: var(--neutral-layer-3);border-radius: calc(var(--control-corner-radius) * 1px)}:host(:not([appearance='secondary'])){background: var(--rapid-layout-item-background, var(--neutral-layer-3));border-radius: var(--card-corner-radius, calc(var(--control-corner-radius) * 1px));border: var(--card-border, 0)}:host([appearance='secondary']){background: transparent}:host .tablist{padding: 0;display: grid;width: max-content;margin-top: 0}:host .tabpanel{height: 100%;min-height: 0}:host([appearance='secondary']) .tablist{margin-bottom: 0}:host .end, :host .start{padding: 0 calc((16 + var(--design-unit) * 2 * var(--density)) * 1px);height: calc(100% - 1px);display: flex;align-items: center}::slotted([slot='tab']:hover){color: var(--neutral-foreground-rest);background: var(--neutral-layer-1)}::slotted([role='tab']){border-radius: calc(var(--control-corner-radius) * 1.5px) calc(var(--control-corner-radius) * 1.5px) 0 0;background: var(--tab-rest-background-color, var(--neutral-layer-4));padding: 0 calc((16 + var(--design-unit) * 2 * var(--density)) * 1px);margin-right: 2px;box-shadow: none;font-size: var(--type-ramp-minus-1-font-size);border-style: solid;border-width: var(--tab-rest-border-width, 1px);border-color: var(--tab-rest-border-color, transparent)}::slotted([role='tab'][aria-selected='true']:not([appearance='secondary'])){border-style: solid;border-width: var(--tab-active-border-width, 1px 1px 0 1px);border-color: var(--tab-active-border-color, var(--neutral-stroke-rest));background: var(--tab-active-background-color, var(--neutral-layer-card-container))}::slotted([role='tab'][aria-selected='true']){color: var(--accent-foreground-rest);background: var(--neutral-layer-card-container)}/* stylelint-disable selector-class-pattern */ .activeIndicator{display: none}:host([appearance='secondary']) .tablist .activeIndicator{display: block;height: 1px;margin-top: unset}::slotted([role='tab'][aria-selected='true'][appearance='secondary']){background: none}::slotted([role='tab'][appearance='secondary']){margin-left: 0;box-shadow: none;background: none}:host([appearance='secondary']:hover){color: var(--neutral-foreground-rest);background: none}:host([appearance='secondary']) ::slotted([role='tabpanel']){border: 0}`,shadowOptions:void 0},W8)),class extends q8{}.compose(Object.assign({baseName:`text-area`,template:(e,t)=>G8(e,t),styles:(e,t)=>O` ${K8(e,t)} :host{display: grid;flex: 1 1 auto;box-sizing: border-box}:host .control{height: 100%;border-style: solid;border-width: var(--neutral-stroke-width-rest, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-rest, var(--focus-stroke-outer));background-color: var(--neutral-fill-input-rest);border-radius: calc(var(--control-corner-radius) * 1px);padding: calc(var(--design-unit) * 2px)}:host(:hover:not([disabled])) .control{border-style: solid;border-width: var(--neutral-stroke-width-hover, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-hover, var(--neutral-foreground-rest));background: var(--neutral-fill-input-hover)}:host(:is(:focus, :focus-within, :focus-visible):not([disabled])) .control{border-style: solid;border-width: var(--neutral-stroke-width-focus, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-focus, var(--accent-fill-rest));background-color: var(--neutral-fill-input-focus);box-shadow: none}.label{color: var(--neutral-foreground-hint);font-weight: 700;margin: calc(var(--design-unit) * 2px) 0}`,shadowOptions:void 0},J8)),class extends Z8{}.compose(Object.assign({baseName:`text-field`,template:(e,t)=>Y8(e,t),styles:(e,t)=>O` ${X8(e,t)} :host{display: block;flex: 1 1 auto;box-sizing: border-box}:host .control{height: 100%;border-radius: calc(var(--control-corner-radius) * 1px);padding: 0 calc(var(--design-unit) * 2px)}:host .control-field .control{width: 100%}:host .root{border-style: solid;border-width: var(--neutral-stroke-width-rest, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-rest, var(--focus-stroke-outer));background-color: var(--neutral-fill-input-rest);height: calc( (((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) - 4) * 1px )}:host(:hover:not([disabled])) .root{border-style: solid;border-width: var(--neutral-stroke-width-hover, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-hover, var(--neutral-foreground-rest));background: var(--neutral-fill-input-hover);box-shadow: none}:host(:is(:focus, :focus-within, :focus-visible):not([disabled])) .root{border-style: solid;border-width: var(--neutral-stroke-width-focus, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-focus, var(--accent-fill-rest));background-color: var(--neutral-fill-input-focus);box-shadow: none}.label{color: var(--neutral-foreground-hint);font-weight: 700;margin: calc(var(--design-unit) * 2px) 0}.label-hidden{margin: 0}:host input::placeholder{color: var(--neutral-foreground-hint);opacity: 75%}`,shadowOptions:Q8},$8));let NHe=O` ${e5} .toast{background-color: ${gc};border-radius: calc(var(--control-corner-radius) * 2px);border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest)}.top{align-items: flex-start}:host{font-size: var(--type-ramp-base-font-size);font-family: var(--body-font);line-height: var(--type-ramp-base-line-height);color: var(--neutral-foreground-rest)}.content{font-size: var(--type-ramp-minus-1-font-size)}.date{margin: calc(var(--design-unit) * 2px) calc(var(--design-unit) * 0) calc(var(--design-unit) * 1px)}.content-wrapper{padding: calc(var(--design-unit) * 2px)}.toast::after{background-color: var(--accent-fill-rest);border-radius: 0;height: calc(100% - calc(var(--design-unit) * 5px));margin: calc(var(--design-unit) * 0) calc(var(--design-unit) * 1px)}:host([notify='warning']) .toast::after{background-color: var(--warning-color)}:host([notify='success']) .toast::after{background-color: var(--success-color)}:host([notify='critical']) .toast::after, :host([notify='serious']) .toast::after, :host([notify='error']) .toast::after{background-color: var(--error-color)}`,PHe=r5,FHe=n5;(class extends i5{}).compose(Object.assign({baseName:`toast`,shadowOptions:FHe,styles:NHe,template:t5},PHe)),class extends s5{}.compose(Object.assign({baseName:`toolbar`,template:(e,t)=>a5(e,t),styles:(e,t)=>O` ${o5(e,t)} :host{align-items: center;color: var(--neutral-foreground-rest)}.positioning-region{align-items: center}`,shadowOptions:void 0},c5)),class extends d5{}.compose(Object.assign({baseName:`tooltip`,template:(e,t)=>l5(e,t),styles:(e,t)=>O` ${u5(e,t)} :host{visibility: visible}.tooltip{padding: calc((var(--design-unit) - 1) * 2px) calc(var(--design-unit) * 2px);text-align: center;white-space: inherit;font-weight: 400}rapid-anchored-region.bottom .tooltip{margin-top: calc(var(--design-unit) * 1px);margin-left: calc(var(--design-unit) * 2px)}rapid-anchored-region.top.right .tooltip, rapid-anchored-region.bottom.right .tooltip{margin-left: 0}`,shadowOptions:void 0},f5)),class extends h5{}.compose(Object.assign({baseName:`tree-item`,template:(e,t)=>p5(e,t),styles:(e,t)=>O` ${m5(e,t)} :host{font-size: var(--type-ramp-base-font-size);color: var(--neutral-foreground-rest);background-color: transparent}:host(.nested) .expand-collapse-button{background: var(--neutral-fill-rest);border-radius: calc(var(--control-corner-radius) * 1px);width: calc(var(--design-unit) * 5px);height: calc(var(--design-unit) * 5px);margin-left: calc(var(--design-unit) * 2px)}:host([selected]) .positioning-region{background: var(--neutral-fill-stealth-active)}.positioning-region::before{width: calc(var(--design-unit) * 1px)}:host([selected])::after{background: var(--accent-fill-rest);background-origin: border-box;background-size: cover;background-repeat: no-repeat}:host([slot='item']) .content-region{margin-inline-start: calc(var(--design-unit) * 4px + var(--expand-collapse-button-size))}.expand-collapse-glyph{width: calc(var(--design-unit) * 3px);height: calc(var(--design-unit) * 3px)}`,shadowOptions:void 0},{expandCollapseGlyph:`
1005
+ Delete Rule </${t}></div></div></div>`}} `,i7=class extends Qe{constructor(){super(...arguments),this.error=!1}connectedCallback(){super.connectedCallback(),q5(this,this.styles,`rule`),this.config.partialRuleValidationWarning&&(this.error=qLe(this.model))}variadicRule(e){return e.operator.nbInputs===`many`&&`value`in e&&Array.isArray(e.value)}get operandIterator(){if(this.model.operator?.nbInputs===`many`){if(!this.variadicRule(this.model))throw Error(`Varargs disabled for many nbInputs`);return Array(this.model.value.length).fill(!0)}return Array(this.model.operator?.nbInputs??0).fill(!0)}operandValue(e){if(this.model.operator){if(this.model.operator.nbInputs===1&&`value`in this.model)return this.model.value;if((this.model.operator.nbInputs===2||this.model.operator.nbInputs===`many`)&&`value`in this.model&&Array.isArray(this.model.value))return this.model.value[e];throw Error(`Invalid operand lookup`)}}dispatchAddVarArg(){if(!this.variadicRule(this.model))throw Error(`Cannot add inputs for non-variadic operator, or invalid format`);let e={ruleId:this.model.ruleId,newData:{operator:this.model.operator,field:this.model.field,value:[...this.model.value,r7(this.model.operator,this.model)]}};this.dispatchEvent(new CustomEvent(J5.UpdateRule,{detail:e,bubbles:!0,composed:!0}))}handleRemoveVarArg(e){let{index:t}=e.detail;if(!this.variadicRule(this.model))throw Error(`Cannot remove inputs for non-variadic operator, or invalid format`);let n={ruleId:this.model.ruleId,newData:{operator:this.model.operator,field:this.model.field,value:this.model.value.filter((e,n)=>n!==t)}};this.dispatchEvent(new CustomEvent(J5.UpdateRule,{detail:n,bubbles:!0,composed:!0}))}dispatchDeleteRule(e){e.stopPropagation();let t={ruleId:this.model.ruleId};this.dispatchEvent(new CustomEvent(J5.DelRule,{detail:t,bubbles:!0,composed:!0}))}handleFieldSelected(e){e.stopPropagation();let{fieldId:t}=e.detail,n=this.config.fields.find(e=>e.fieldId===t)??null,r={ruleId:this.model.ruleId,newData:{field:n,value:null,operator:null}};this.dispatchEvent(new CustomEvent(J5.UpdateRule,{detail:r,bubbles:!0,composed:!0}))}handleValueChanged(e){e.stopPropagation();let{value:t,index:n}=e.detail,r={ruleId:this.model.ruleId,newData:GLe(this.model,t,n)};this.dispatchEvent(new CustomEvent(J5.UpdateRule,{detail:r,bubbles:!0,composed:!0}))}handleOperatorSelected(e){e.stopPropagation();let{operatorId:t}=e.detail;if(!t)return;let n=this.config.operators.find(e=>e.type===t)??null;if(!n)throw Error(`Unable to find operator of type ${t}`);this.dispatchEvent(new CustomEvent(J5.UpdateRule,{detail:{ruleId:this.model.ruleId,newData:WLe(n,this.model)},bubbles:!0,composed:!0}))}};q([C],i7.prototype,`config`,void 0),q([C],i7.prototype,`styles`,void 0),q([C],i7.prototype,`model`,void 0),q([C],i7.prototype,`index`,void 0),q([D({mode:`boolean`})],i7.prototype,`error`,void 0),q([w],i7.prototype,`operandIterator`,null),i7=q([$e({name:`expression-rule`,template:YLe,styles:JLe,shadowOptions:{delegatesFocus:!0}})],i7);let a7=class extends Qe{constructor(){super(...arguments),this.model=null,this.ruleCount=0,this.groupCount=0,this.userUpdatingModel=!1,this.handleAddGroup=this._handleAddGroup.bind(this),this.handleAddRule=this._handleAddRule.bind(this),this.handleDeleteGroup=this._handleDeleteGroup.bind(this),this.handleDeleteRule=this._handleDeleteRule.bind(this),this.handleUpdateGroupData=this._handleUpdateGroupData.bind(this),this.handleUpdateRuleData=this._handleUpdateRuleData.bind(this)}configChanged(e,t){if(!this.isValidConfig(t)){console.warn(`Invalid config passed to ExpressionBuilder. Verify you've defined operators, fields, and combinators.`);return}t.model?(this.ruleCount=0,this.groupCount=0,this.userUpdatingModel=!0,this.model=DLe(t.model,this),this.userUpdatingModel=!1):this.model===null&&this.initBaseModel()}modelChanged(e,t){if(!t||this.userUpdatingModel)return;let n=V5(t);this.dispatchChangeEvent(n)}dispatchChangeEvent(e){this.dispatchEvent(new CustomEvent(`change`,{detail:e,bubbles:!0,cancelable:!0,composed:!0}))}getConfig(){return this.config}getGroupId(){return this.groupCount+=1,`group-${this.groupCount}`}getRuleId(){return this.ruleCount+=1,`rule-${this.ruleCount}`}connectedCallback(){if(super.connectedCallback(),this.addEventListener(J5.AddGroup,this.handleAddGroup),this.addEventListener(J5.DelGroup,this.handleDeleteGroup),this.addEventListener(J5.AddRule,this.handleAddRule),this.addEventListener(J5.DelRule,this.handleDeleteRule),this.addEventListener(J5.UpdateGroup,this.handleUpdateGroupData),this.addEventListener(J5.UpdateRule,this.handleUpdateRuleData),!this.isValidConfig(this.config)){this.config&&console.warn(`Config detected during connectedCallback but it isn't valid`),this.config=null;return}this.config.model||this.initBaseModel()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(J5.AddGroup,this.handleAddGroup),this.removeEventListener(J5.DelGroup,this.handleDeleteGroup),this.removeEventListener(J5.AddRule,this.handleAddRule),this.removeEventListener(J5.DelRule,this.handleDeleteRule),this.removeEventListener(J5.UpdateGroup,this.handleUpdateGroupData),this.removeEventListener(J5.UpdateRule,this.handleUpdateRuleData)}isValidConfig(e){return!!(e&&e.combinators?.length&&e.operators?.length&&e.fields?.length)}initBaseModel(){if(!this.isValidConfig(this.config))throw Error(`Invalid config set on ExpressionBuilder. Verify you've defined operators, fields, and combinators.`);this.model={children:[],level:1,groupId:B5,config:this.config,combinator:this.config.combinators[0]}}_handleAddGroup(e){let{parentGroupId:t,newGroup:n}=e.detail,r={groupId:this.getGroupId(),level:n.level,children:[],config:this.config,combinator:this.config.combinators[0]};this.model=z5(this.model,t,r)}_handleAddRule(e){let{parentGroupId:t}=e.detail,n={ruleId:this.getRuleId(),config:this.config,field:null,operator:null,value:null};this.model=z5(this.model,t,n)}_handleDeleteGroup(e){let{groupId:t}=e.detail;this.model=CLe(this.model,t)}_handleDeleteRule(e){let{ruleId:t}=e.detail;this.model=wLe(this.model,t)}_handleUpdateGroupData(e){let{groupId:t,newData:n}=e.detail;this.model=TLe(this.model,t,n)}_handleUpdateRuleData(e){let{ruleId:t,newData:n}=e.detail;this.model=ELe(this.model,t,n)}};q([C],a7.prototype,`config`,void 0),q([C],a7.prototype,`styles`,void 0),q([C],a7.prototype,`model`,void 0),a7=q([$e({name:`expression-builder`,template:Z5,styles:Y5})],a7);let o7=class extends a7{};o7=q([$e({name:`foundation-expression-builder`,styles:Y5,template:Z5})],o7);let s7=[`int`,`short`,`long`],c7=[`double`,`bigdecimal`],l7=[...s7,...c7],u7=[`date`,`date-time`],d7=[`string`,`enum`],f7=[`boolean`],p7=e=>e.operator?.valueType?.type??e.field.type;function m7(e){switch(p7(e)){case`int`:case`long`:case`double`:case`bigdecimal`:case`date`:case`date-time`:case`short`:return`NUMBER`;case`string`:case`enum`:return`STRING`;case`boolean`:return`BOOLEAN`}}function h7(e,t,n){return`value`in e?{TYPE:`BINARY_EXPRESSION`,LEFT:{TYPE:`FIELD`,NAME:e.field.fieldId},OPERATION:t,RIGHT:{TYPE:n,VALUE:e.value}}:null}function g7(e,t,n){return{TYPE:`BINARY_EXPRESSION`,LEFT:{TYPE:`FIELD`,NAME:e.field.fieldId},OPERATION:t,RIGHT:n}}function _7(e,t,n=[]){return`value`in e?{TYPE:`METHOD_EXPRESSION`,PARAMETERS:[{TYPE:`FIELD`,NAME:e.field.fieldId},...n],METHOD:t}:null}function v7(e){let t=t=>{let n=p7(e);if(d7.includes(n))return t;if(l7.includes(n))return t.toString();if(f7.includes(n))return t;if(Array.isArray(t))throw Error(`Not implemented TernararyOperator or VariadicOperator args in rule value transformer`);if(u7.includes(n))return new Date(t).getTime().toString();throw Error(`Unhandled transformRuleValue case`)},n=!(!(`value`in e)||e.value===void 0||e.value===null);return Object.assign(Object.assign({},e),n?{value:t(e.value)}:{})}function y7(e,t){return{TYPE:`PREDICATE_EXPRESSION`,OPERATION:e.combinator.type,EXPRESSIONS:e.children.map(e=>`children`in e?y7(e,t):t(e)).filter(Boolean)}}function b7(e,t){let n=t=>{let n=p7(e);if(d7.includes(n))return t;if(s7.includes(n))return parseInt(t);if(c7.includes(n))return parseFloat(t);if(f7.includes(n))return t;if(u7.includes(n)){let e=new Date(parseInt(t));return n===`date`?H5(e):U5(e)}throw Error(`Unhandled rebuildRuleValue case`)},r=e.operator.nbInputs;if(r===`many`||r===2)throw Error(`Not implemented TernararyOperator or VariadicOperator args in rebuildRuleValue`);return Object.assign(Object.assign({},e),r===0?{}:{value:n(t.VALUE)})}let x7={template:Z5,styles:Y5};var S7;(function(e){e.methodCall={CONTAINS_IGNORE_CASE:`CONTAINS_IGNORE_CASE`,CONTAINS_WORDS_STARTING_WITH_IGNORE_CASE:`CONTAINS_WORDS_STARTING_WITH_IGNORE_CASE`,IS_NULL_OR_BLANK:`IS_NULL_OR_BLANK`,NOT_NULL_OR_BLANK:`NOT_NULL_OR_BLANK`,TRIM:`TRIM`,LONG_TO_DATE:`LONG_TO_DATE`,LONG_TO_DATE_TIME:`LONG_TO_DATE_TIME`,DATE_TIME_IS_IN_RANGE:`DATE_TIME_IS_IN_RANGE`},e.logicalOperations={AND:`AND`,OR:`OR`},e.operations=Object.assign(Object.assign({},e.logicalOperations),{GREATER_THAN:`GREATER_THAN`,LESS_THAN:`LESS_THAN`,GREATER_THAN_OR_EQUAL:`GREATER_THAN_OR_EQUAL`,LESS_THAN_OR_EQUAL:`LESS_THAN_OR_EQUAL`,EQUALS:`EQUALS`,NOT_EQUALS:`NOT_EQUALS`,PLUS:`PLUS`,MINUS:`MINUS`,MULTIPLY:`MULTIPLY`,DIVIDE:`DIVIDE`,BITWISE_AND:`BITWISE_AND`,BITWISE_OR:`BITWISE_OR`,ASSIGNMENT:`ASSIGNMENT`,IS_CURRENT:`IS_CURRENT`,IS_PREVIOUS:`IS_PREVIOUS`})})(S7||(S7={}));let C7=[{type:S7.logicalOperations.AND,maxRules:`many`},{type:S7.logicalOperations.OR,maxRules:`many`}],$={EQUALS:S7.operations.EQUALS,NOT_EQUALS:S7.operations.NOT_EQUALS,IS_NULL:`IS_NULL`,NOT_NULL:`NOT_NULL`,IS_NULL_OR_BLANK:`IS_NULL_OR_BLANK`,NOT_NULL_OR_BLANK:`NOT_NULL_OR_BLANK`,CONTAINS:`CONTAINS`,CONTAINS_WORDS_STARTING_WITH:`CONTAINS_WORDS_STARTING_WITH`,CONTAINS_WORDS_STARTING_SPLIT_DELIMITER:`CONTAINS_WORDS_STARTING_SPLIT_DELIMITER`,GREATER_THAN:S7.operations.GREATER_THAN,GREATER_THAN_OR_EQUAL:S7.operations.GREATER_THAN_OR_EQUAL,LESS_THAN:S7.operations.LESS_THAN,LESS_THAN_OR_EQUAL:S7.operations.LESS_THAN_OR_EQUAL,IS_BEFORE:`IS_BEFORE`,IS_AFTER:`IS_AFTER`,ON_OR_BEFORE:`ON_OR_BEFORE`,ON_OR_AFTER:`ON_OR_AFTER`,IS_CURRENT:S7.operations.IS_CURRENT,IS_PREVIOUS:S7.operations.IS_PREVIOUS},w7=e=>({type:`enum`,input:`select`,values:e}),XLe=w7({HOUR:{label:`Hour`,tooltip:`Beginning of the hour immediately preceding the current one to the current hour.`},DAY:{label:`Day`,tooltip:`Midnight on the day before today to midnight of the current day.`},WEEK_DAY:{label:`Week day`,tooltip:`Midnight on the day before today to midnight of the current day. If the current day is Monday then the previous day is Friday.`},WEEK:{label:`Week`,tooltip:`Midnight on the Monday of the previous week to midnight on the Monday of the current week.`},MONTH:{label:`Month`,tooltip:`Midnight on the 1st of the previous month to midnight on the 1st of the current month.`},YEAR:{label:`Year`,tooltip:`Midnight on Jan 1st of the previous year to midnight on the 1st Jan of the current year.`}}),ZLe=w7({HOUR:{label:`Hour`,tooltip:`Beginning of the current hour to beginning of the next hour.`},DAY:{label:`Day`,tooltip:`Midnight on the current day day to midnight of the next day.`},WEEK_DAY:{label:`Week day`,tooltip:`Midnight on the current day day to midnight of the next day. This filter will never match Sat or Sun, always returning false on the weekends.`},WEEK:{label:`Week`,tooltip:`Midnight on the Monday of the current week to midnight on the Monday of the next week.`},MONTH:{label:`Month`,tooltip:`Midnight on the 1st of the current month to midnight on the 1st of the next month.`},YEAR:{label:`Year`,tooltip:`Midnight on Jan 1st of the current year to midnight on the 1st Jan of the next year.`}}),T7=[{type:$.EQUALS,label:`Equals`,nbInputs:1,applyTo:[...d7,...f7,...l7,...u7],tooltip:`Check the equality of the field compared to a set value`},{type:$.NOT_EQUALS,label:`Not equals`,nbInputs:1,applyTo:[...d7,...f7,...l7,...u7],tooltip:`Check that the field is different from a set value`},{type:$.IS_NULL,label:`Is null`,nbInputs:0,applyTo:[`enum`,...f7,...l7,...u7],tooltip:`Check if the field value is null`},{type:$.NOT_NULL,label:`Not null`,nbInputs:0,applyTo:[`enum`,...f7,...l7,...u7],tooltip:`Check if the field value is not null`},{type:$.IS_NULL_OR_BLANK,label:`Is null or blank`,nbInputs:0,applyTo:[`string`],tooltip:`Check if the field value is null or an empty string`},{type:$.NOT_NULL_OR_BLANK,label:`Not null or blank`,nbInputs:0,applyTo:[`string`],tooltip:`Check if the field value is not null and not an empty string`},{type:$.CONTAINS,label:`Contains`,nbInputs:1,applyTo:[`string`],tooltip:`Check if the field contains the specified text (case insensitive)`},{type:$.CONTAINS_WORDS_STARTING_WITH,label:`Contains words starting with`,nbInputs:1,applyTo:[`string`],tooltip:`Check if the field contains words that start with the specified text, split by whitespace (case insensitive)`},{type:$.CONTAINS_WORDS_STARTING_SPLIT_DELIMITER,label:`Contains words starting with (split)`,nbInputs:2,applyTo:[`string`],tooltip:`Check if field contains words starting with text, split by a delimiter (case insensitive)`},{type:$.GREATER_THAN,label:`Greater than`,nbInputs:1,applyTo:[...l7],tooltip:`Check if the field value is greater than a specified number`},{type:$.GREATER_THAN_OR_EQUAL,label:`Greater than or equal to`,nbInputs:1,applyTo:[...l7],tooltip:`Check if the field value is greater than or equal to a specified number`},{type:$.LESS_THAN,label:`Less than`,nbInputs:1,applyTo:[...l7],tooltip:`Check if the field value is less than a specified number`},{type:$.LESS_THAN_OR_EQUAL,label:`Less than or equal to`,nbInputs:1,applyTo:[...l7],tooltip:`Check if the field value is less than or equal to a specified number`},{type:$.IS_BEFORE,label:`Is before`,nbInputs:1,applyTo:[...u7],tooltip:`Check if the field is before a specified date/time`},{type:$.IS_AFTER,label:`Is after`,nbInputs:1,applyTo:[...u7],tooltip:`Check if the field is after a specified date/time`},{type:$.ON_OR_BEFORE,label:`On or before`,nbInputs:1,applyTo:[...u7],tooltip:`Check if the field is on or before a specified date/time`},{type:$.ON_OR_AFTER,label:`On or after`,nbInputs:1,applyTo:[...u7],tooltip:`Check if the field is on or after a specified date/time`},{type:$.IS_CURRENT,label:`Is current`,nbInputs:1,applyTo:[...u7],tooltip:`Check whether the current date/time matches the current hour/day/work day/week/month/year.`,valueType:ZLe,optgroup:`Relative Period`},{type:$.IS_PREVIOUS,label:`Is previous`,nbInputs:1,applyTo:[...u7],tooltip:`Check whether the current date/time matches the previous hour/day/work day/week/month/year`,valueType:XLe,optgroup:`Relative Period`}];function QLe(e){switch(e){case`IS_BEFORE`:return`LESS_THAN`;case`IS_AFTER`:return`GREATER_THAN`;case`ON_OR_BEFORE`:return`LESS_THAN_OR_EQUAL`;case`ON_OR_AFTER`:return`GREATER_THAN_OR_EQUAL`;default:return e}}function $Le(e,t){switch(t){case $.IS_NULL_OR_BLANK:return _7(e,S7.methodCall.IS_NULL_OR_BLANK,[]);case $.NOT_NULL_OR_BLANK:return _7(e,S7.methodCall.NOT_NULL_OR_BLANK,[]);case $.CONTAINS:if(!(`value`in e))throw Error(`Invalid shape for operator CONTAINS`);return _7(e,S7.methodCall.CONTAINS_IGNORE_CASE,[{TYPE:`STRING`,VALUE:e.value}]);case $.CONTAINS_WORDS_STARTING_WITH:if(!(`value`in e))throw Error(`Invalid shape for operator CONTAINS_WORDS_STARTING_WITH`);return _7(e,S7.methodCall.CONTAINS_WORDS_STARTING_WITH_IGNORE_CASE,[{TYPE:`STRING`,VALUE:e.value}]);case $.CONTAINS_WORDS_STARTING_SPLIT_DELIMITER:if(!(`value`in e)||!Array.isArray(e.value)||e.value.length!==2)throw Error(`Invalid shape for CONTAINS_WORDS_STARTING_SPLIT_DELIMITER`);return _7(e,S7.methodCall.CONTAINS_WORDS_STARTING_WITH_IGNORE_CASE,e.value.map(e=>({TYPE:`STRING`,VALUE:e})));case $.IS_CURRENT:case $.IS_PREVIOUS:if(!(`value`in e))throw Error(`Invalid shape for operator IS_CURRENT | IS_PREVIOUS`);return _7(e,S7.methodCall.DATE_TIME_IS_IN_RANGE,[{TYPE:`STRING`,VALUE:e.value},{TYPE:`STRING`,VALUE:t===$.IS_CURRENT?`CURRENT`:`PREVIOUS`}]);default:throw Error(`Unreachable default case`)}}function eRe(e){if(!(e.operator?.type&&e.field?.fieldId))return null;let t=v7(e),n=m7(t),r=QLe(t.operator.type);switch(r){case $.EQUALS:case $.NOT_EQUALS:case $.GREATER_THAN:case $.GREATER_THAN_OR_EQUAL:case $.LESS_THAN:case $.LESS_THAN_OR_EQUAL:return h7(t,r,n);case $.IS_NULL:return g7(t,S7.operations.EQUALS,{TYPE:`NULL`});case $.NOT_NULL:return g7(t,S7.operations.NOT_EQUALS,{TYPE:`NULL`});case $.IS_NULL_OR_BLANK:case $.NOT_NULL_OR_BLANK:case $.CONTAINS:case $.CONTAINS_WORDS_STARTING_WITH:case $.CONTAINS_WORDS_STARTING_SPLIT_DELIMITER:case $.IS_CURRENT:case $.IS_PREVIOUS:return $Le(t,r);default:throw Error(`Unmatched case for operator name: ${r}`)}}function tRe(e,t){if(t.field.type!==`date`&&t.field.type!==`date-time`)return e;switch(e){case`LESS_THAN`:return`IS_BEFORE`;case`GREATER_THAN`:return`IS_AFTER`;case`LESS_THAN_OR_EQUAL`:return`ON_OR_BEFORE`;case`GREATER_THAN_OR_EQUAL`:return`ON_OR_AFTER`;default:return e}}function nRe(e,t){let n=(()=>{if(t.RIGHT.TYPE===`NULL`){let e=t.OPERATION===`EQUALS`?$[$.IS_NULL]:$[$.NOT_NULL];return T7.find(t=>t.type===e)}let n=tRe(t.OPERATION,e);return T7.find(e=>e.type===n)})();return Object.assign(Object.assign({},e),{operator:n})}function rRe(e,t){if(t.LEFT.TYPE!==`FIELD`)throw Error(`BinaryExpression LHS must be TYPE === FIELD`);if(![`STRING`,`NUMBER`,`BOOLEAN`,`NULL`].includes(t.RIGHT.TYPE))throw Error(`BinaryExpression RHS must be TYPE === NUMBER | STRING | BOOLEAN | NULL`);return b7(nRe({field:e.find(e=>e.fieldId===t.LEFT.NAME)},t),t.RIGHT)}function iRe(e,t){let[n,r]=(()=>{switch(!0){case t.METHOD===`IS_NULL_OR_BLANK`:return[$[$.IS_NULL_OR_BLANK],void 0];case t.METHOD===`NOT_NULL_OR_BLANK`:return[$[$.NOT_NULL_OR_BLANK],void 0];case t.METHOD===`CONTAINS_IGNORE_CASE`:return[$[$.CONTAINS],t.PARAMETERS[1].VALUE];case t.METHOD===`CONTAINS_WORDS_STARTING_WITH_IGNORE_CASE`&&t.PARAMETERS.length===2:return[$[$.CONTAINS_WORDS_STARTING_WITH],t.PARAMETERS[1].VALUE];case t.METHOD===`CONTAINS_WORDS_STARTING_WITH_IGNORE_CASE`&&t.PARAMETERS.length===3:return[$[$.CONTAINS_WORDS_STARTING_SPLIT_DELIMITER],t.PARAMETERS.slice(1).map(e=>e.VALUE)];case t.METHOD===S7.methodCall.DATE_TIME_IS_IN_RANGE&&t.PARAMETERS.length===3&&t.PARAMETERS[2].TYPE===`STRING`&&(t.PARAMETERS[2].VALUE===`CURRENT`||t.PARAMETERS[2].VALUE===`PREVIOUS`):return[$[t.PARAMETERS[2].VALUE===`CURRENT`?$.IS_CURRENT:$.IS_PREVIOUS],t.PARAMETERS[1].VALUE];default:throw Error(`Unhandled fromMethodExpression case`)}})();return{field:e.find(e=>e.fieldId===t.PARAMETERS[0].NAME),operator:T7.find(e=>e.type===n),value:r}}function E7(e,t){return{combinator:C7.find(e=>e.type===t.OPERATION),children:t.EXPRESSIONS.map(t=>{if(!(`TYPE`in t))throw Error(`RuleExpression format not yet supported - no TYPE`);if(t.TYPE===`PREDICATE_EXPRESSION`)return E7(e,t);if(t.TYPE===`BINARY_EXPRESSION`)return rRe(e,t);if(t.TYPE===`METHOD_EXPRESSION`)return iRe(e,t);throw Error(`RuleExpression format not yet supported - unsupported TYPE`)})}}let D7=class extends a7{ruleConfigChanged(e,t){this.config=Object.assign({combinators:C7,operators:T7,fields:t.fields,maxNesting:t.maxNesting,partialRuleValidationWarning:t.partialRuleValidationWarning},t?.model?{model:E7(t.fields,t.model)}:{})}configChanged(e,t){if(t!==null){if(!t.operators||!t.combinators)throw Error(`Unable to detect operators or combinators. Did you set the config on the rule builder via the config property? Use the ruleConfig property instead`);super.configChanged(e,t)}}dispatchChangeEvent(e){let t=y7(e,eRe);this.dispatchEvent(new CustomEvent(`change`,{detail:t,bubbles:!0,cancelable:!0,composed:!0}))}};q([C],D7.prototype,`ruleConfig`,void 0),D7=q([$e({name:`foundation-rule-expression-builder`,styles:Y5,template:Z5})],D7);let O7={TRIM:`TRIM`,PLUS:`PLUS`,MINUS:`MINUS`,MULTIPLY:`MULTIPLY`,DIVIDE:`DIVIDE`,CONVERT_TO_DATE:`CONVERT_TO_DATE`,CONVERT_TO_DATE_TIME:`CONVERT_TO_DATE_TIME`},k7=[{type:O7.PLUS,label:`Add (+)`,applyTo:[...l7],nbInputs:1,tooltip:`Returns the result of the field value mathematically added to the specified rule value. FIELD + VALUE`},{type:O7.MINUS,label:`Subtract (-)`,applyTo:[...l7],nbInputs:1,tooltip:`Returns the result of the field value mathematically subtracted by the specified rule value. FIELD - VALUE`},{type:O7.MULTIPLY,label:`Multiply (*)`,applyTo:[...l7],nbInputs:1,tooltip:`Returns the result of the field value mathematically multiplied by the specified rule value. FIELD * VALUE`},{type:O7.DIVIDE,label:`Divide (/)`,applyTo:[...l7],nbInputs:1,tooltip:`Returns the result of the field value mathematically divided by the specified rule value. FIELD / VALUE`},{type:O7.CONVERT_TO_DATE,label:`Convert to date`,applyTo:[`date`],nbInputs:0,tooltip:`Returns the date, which is stored as the epoch time, as a formatted date YYYY/dd/mm`},{type:O7.CONVERT_TO_DATE_TIME,label:`Convert to date time`,applyTo:[`date-time`],nbInputs:0,tooltip:`Returns the date-time, which is stored as the epoch time, as a formatted date YYYY/dd/mm HH:mm:ss`}];function aRe(e){return e}function oRe(e,t){switch(t){case O7.TRIM:return _7(e,S7.methodCall.TRIM,[]);case O7.CONVERT_TO_DATE:return _7(e,S7.methodCall.LONG_TO_DATE,[]);case O7.CONVERT_TO_DATE_TIME:return _7(e,S7.methodCall.LONG_TO_DATE_TIME,[])}}function sRe(e){if(!(e.operator?.type&&e.field?.fieldId))return null;let t=v7(e),n=m7(t),r=aRe(t.operator.type);switch(r){case O7.TRIM:case O7.CONVERT_TO_DATE:case O7.CONVERT_TO_DATE_TIME:return oRe(t,r);case O7.PLUS:case O7.MINUS:case O7.DIVIDE:case O7.MULTIPLY:return h7(t,r,n);default:throw Error(`Unmatched case for operator name: ${r}`)}}function cRe(e,t){return t.field.type!==`date`&&t.field.type,e}function lRe(e,t){let n=(()=>{let n=cRe(t.OPERATION,e);return k7.find(e=>e.type===n)})();return Object.assign(Object.assign({},e),{operator:n})}function uRe(e,t){if(t.LEFT.TYPE!==`FIELD`)throw Error(`BinaryExpression LHS must be TYPE === FIELD`);if(![`STRING`,`NUMBER`,`BOOLEAN`,`NULL`].includes(t.RIGHT.TYPE))throw Error(`BinaryExpression RHS must be TYPE === NUMBER | STRING | BOOLEAN | NULL`);return b7(lRe({field:e.find(e=>e.fieldId===t.LEFT.NAME)},t),t.RIGHT)}function dRe(e,t){let[n,r]=(()=>{switch(!0){case t.METHOD===`TRIM`:return[O7[O7.TRIM],void 0];case t.METHOD===`LONG_TO_DATE`:return[O7[O7.CONVERT_TO_DATE],void 0];case t.METHOD===`LONG_TO_DATE_TIME`:return[O7[O7.CONVERT_TO_DATE_TIME],void 0];default:throw Error(`Unhandled fromMethodExpression case`)}})();return{field:e.find(e=>e.fieldId===t.PARAMETERS[0].NAME),operator:k7.find(e=>e.type===n),value:r}}function A7(e,t){return{combinator:j5,children:t.EXPRESSIONS.map(t=>{if(!(`TYPE`in t))throw Error(`RuleExpression format not yet supported - no TYPE`);if(t.TYPE===`PREDICATE_EXPRESSION`)return A7(e,t);if(t.TYPE===`BINARY_EXPRESSION`)return uRe(e,t);if(t.TYPE===`METHOD_EXPRESSION`)return dRe(e,t);throw Error(`RuleExpression format not yet supported - unsupported TYPE`)})}}let j7=class extends a7{valueConfigChanged(e,t){let n={TYPE:`PREDICATE_EXPRESSION`,OPERATION:`NULL`,EXPRESSIONS:t.model?[t.model]:[]},r=A7(t.fields,n);this.config={combinators:[j5],operators:k7,fields:t.fields,model:r,maxNesting:t.maxNesting,partialRuleValidationWarning:t.partialRuleValidationWarning}}configChanged(e,t){if(t!==null){if(!t.operators||!t.combinators)throw Error(`Unable to detect operators or combinators. Did you set the config on the rule builder via the config property? Use the valueConfig property instead`);super.configChanged(e,t)}}dispatchChangeEvent(e){if(!(`children`in e))throw Error(`Invalid top level group hierarchy`);if(e.children.length>1)throw Error(`Value expressions should not have multiple rules`);if(e.children[0]&&`children`in e.children[0])throw Error(`Trying to convert group to rule`);let t=e.children.length===0?void 0:sRe(e.children[0]);this.dispatchEvent(new CustomEvent(`change`,{detail:t,bubbles:!0,cancelable:!0,composed:!0}))}};q([C],j7.prototype,`valueConfig`,void 0),j7=q([$e({name:`foundation-value-expression-builder`,styles:Y5,template:Z5})],j7);let M7=T`<template ${k(`notificationListener`)}><slot></slot></template>`,fRe={mode:`open`,delegatesFocus:!0};var N7=class extends P{constructor(){super(...arguments),this.closeTimeout=0,this.toastButtons=[],this.desktopNotifications=!1,this.reconnections=0,this.reconnection=Promise.resolve(),this.reconnectionWaitMs=1e4}desktopNotificationsChanged(){this.desktopNotifications&&this.isConnected&&typeof document<`u`&&document.visibilityState===`visible`&&this.clearDesktopNotifications()}connectedCallback(){let e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});return J(this,void 0,void 0,function*(){e.connectedCallback.call(this),this.boundVisibilityChange=this.handleVisibilityChange.bind(this),typeof document<`u`&&document.addEventListener(`visibilitychange`,this.boundVisibilityChange),this.addEventListener(_C.NOTIFICATION_EVENT,e=>{e.stopImmediatePropagation(),TC(e.detail,this.tagName,this.notificationListener)}),this.connectionSub=this.connect.isConnected$.subscribe(e=>{if(!e)return;let t=this.reconnections+=1;this.reconnection=pRe(this.reconnection,this.reconnectionWaitMs).then(()=>this.handleReconnection(t)).catch(e=>hb.error(e))})})}handleReconnection(e){return J(this,void 0,void 0,function*(){var t;let n=()=>e===this.reconnections&&this.isConnected;if(!this.resourceName||!n())return;(t=this.dataSub)==null||t.unsubscribe(),this.dataSub=void 0;let r=yield this.initializeDatasource();if(n()){if(!r)throw Error(`Failed to initialize datasource for ${this.resourceName}`);this.setupDataSubscription()}})}initializeDatasource(){return J(this,void 0,void 0,function*(){return this.datasource?.initialized&&this.datasource.destroy(),this.datasource.init({resourceName:this.resourceName},!0)})}setupDataSubscription(){if(!this.datasource.stream){hb.warn(`No stream available for ${this.resourceName}`);return}this.dataSub=this.datasource.stream.subscribe(e=>{e.ROW&&e.SEQUENCE_ID>1&&this.handleStreamUpdate(ky(e))})}disconnectedCallback(){var e,t,n;super.disconnectedCallback(),typeof document<`u`&&this.boundVisibilityChange&&document.removeEventListener(`visibilitychange`,this.boundVisibilityChange),delete this.boundVisibilityChange,(e=this.dataSub)==null||e.unsubscribe(),delete this.dataSub,(t=this.connectionSub)==null||t.unsubscribe(),delete this.connectionSub,(n=this.datasource)==null||n.destroy(),delete this.datasource}handleVisibilityChange(){this.desktopNotifications&&typeof document<`u`&&document.visibilityState===`visible`&&this.clearDesktopNotifications()}clearDesktopNotifications(){this.postToServiceWorker({type:`genesis-clear-desktop-notifications`})}postToServiceWorker(e){typeof navigator<`u`&&navigator.serviceWorker&&(navigator.serviceWorker.controller?navigator.serviceWorker.controller.postMessage(e):navigator.serviceWorker.ready&&navigator.serviceWorker.ready.then(t=>{var n;(n=t?.active)==null||n.postMessage(e)}).catch(()=>{}))}handleStreamUpdate(e){let t=e.inserts;t.length>0&&t.forEach(e=>{this.showNotificationToast(e),this.handleDesktopNotification(e)})}handleDesktopNotification(e){if(this.desktopNotifications&&typeof document<`u`&&document.visibilityState===`hidden`&&typeof Notification<`u`&&Notification.permission===`granted`)try{let t=this.desktopNotificationFor(e);if(!t)return;this.postToServiceWorker({type:`genesis-desktop-notification`,notification:t})}catch(e){hb.error(e)}}desktopNotificationFor(e){return{title:e.HEADER,options:{body:e.MESSAGE,tag:`genesis-alert-${e.ALERT_ID??``}`,data:{alertId:e.ALERT_ID}}}}showNotificationToast(e){let{HEADER:t,MESSAGE:n,NOTIFY_SEVERITY:r}=e,i=e.CREATED_AT?new Date(e.CREATED_AT):void 0,a=e.EXPIRY?e.EXPIRY-e.CREATED_AT:void 0,o=[];this.toastButtons&&this.toastButtons.length>0&&(o=this.toastButtons.filter(({condition:t})=>!t||t({details:e})));let s={title:t,body:n,createdAt:i,toast:{details:e,type:r?.toLowerCase(),buttons:o,autoClose:a===void 0?!!this.closeTimeout:!!a,closeTimeout:a??this.closeTimeout,position:this.toastPosition}};SC(s,this.tagName)}};q([C],N7.prototype,`notificationListener`,void 0),q([Qv],N7.prototype,`connect`,void 0),q([D({attribute:`resource-name`})],N7.prototype,`resourceName`,void 0),q([D({attribute:`close-timeout`,converter:E})],N7.prototype,`closeTimeout`,void 0),q([C],N7.prototype,`toastButtons`,void 0),q([D({attribute:`toast-position`})],N7.prototype,`toastPosition`,void 0),q([D({attribute:`desktop-notifications`,mode:`boolean`})],N7.prototype,`desktopNotifications`,void 0),q([Gy],N7.prototype,`datasource`,void 0);function pRe(e,t){return new Promise(n=>{let r=setTimeout(n,t);e.finally(()=>{clearTimeout(r),n()})})}N7.compose({baseName:`notification-listener`,template:M7,shadowOptions:fRe});let P7=kd(`foundation-router`),F7=`$router`,I7=Object.freeze({getOrCreateFor:e=>{let t=e[F7];return t===void 0?e[F7]=new mRe(e):t},find:e=>z_.find(e),from:e=>z_.from(e)});var mRe=class extends V_{};let hRe=/^([a-z][a-z0-9+\-.]*:)?\/\//i;function L7(e){return hRe.test(e)}function R7(e){return e.config instanceof cv?e:I7.find(e)}function gRe(e,t=`/`,n=!1){let r=e.join(t).replace(RegExp(t+`{1,}`,`g`),t);return!n&&r.endsWith(t)?r.slice(0,-1):r}function _Re(e){return e.replace(`/*${j_}`,``)}function z7(){document.querySelector(`foundation-router, fast-router`)===null&&window.dispatchEvent(new PopStateEvent(`popstate`))}let B7=Object.freeze({path:Object.freeze({get current(){return h_.path.current},generateRoute:(e,t,...n)=>J(void 0,[e,t,...n],void 0,function*(e,t,n={}){let r=R7(e);for(;r!==null;){let e=yield r.config.generateRouteFromPath(t,n);if(e!==null)return e;r=r.parent}return null}),push:(e,t=!0)=>{if(e&&L7(e)){location.href=e;return}history.pushState({},document.title,e),z7(),t&&B7.path.trigger(e)},replace:(e,t=!0)=>{if(e&&L7(e)){location.href=e;return}history.replaceState({},document.title,e),z7(),t&&B7.path.trigger(e)},trigger:e=>{h_.path.trigger(e)}}),name:Object.freeze({generateRoute:(e,t,...n)=>J(void 0,[e,t,...n],void 0,function*(e,t,n={}){let r=R7(e);for(;r!==null;){let e=yield r.config.generateRouteFromName(t,n);if(e!==null)return e;r=r.parent}return null}),push:(e,t,...n)=>J(void 0,[e,t,...n],void 0,function*(e,t,n={},r=!0){let i=yield B7.name.generateRoute(e,t,n);i!==null&&B7.path.push(i,r)}),replace:(e,t,...n)=>J(void 0,[e,t,...n],void 0,function*(e,t,n={},r=!0){let i=yield B7.name.generateRoute(e,t,n);i!==null&&B7.path.replace(i,r)}),trigger:(e,t,...n)=>J(void 0,[e,t,...n],void 0,function*(e,t,n={}){let r=yield B7.name.generateRoute(e,t,n);r!==null&&B7.path.trigger(r)})})}),V7=e=>!e.navId||e.navId===`header`||e.navId===`side-nav`;function vRe(e,t=V7,n=10){let r=[];return e.filter(e=>e.navItems&&e.navItems.some(t)).forEach((e,i)=>{e.navItems.filter(t).map((t,r)=>{let a=t.placementIndex??i*n+r;return Object.assign(Object.assign({},t),{navId:t.navId??`header`,placementIndex:a,routePath:t.routePath??e.path,routeName:t.routeName??e.name})}).forEach(e=>r.push(e))}),r.sort((e,t)=>e.placementIndex-t.placementIndex)}var H7=class extends F_{constructor(){super(...arguments),this.definitions=[]}map(...e){let t=this.owner,n=!t.parent,r=t.basename;n&&r!==``&&r!==`/`&&(P7.debug(`Route paths remap required due to detected sub-path deployment`),e=e.map(e=>{if(!e.path)return e;if(e.path.startsWith(r))return P7.debug(`'${e.path}' path okay as is`),e;let t=e.path.charAt(0)===`/`?``:`/`,n=`${r}${t}${e.path}`;return P7.debug(`'${e.path}' path modified to '${n}'`),Object.assign(Object.assign({},e),{path:n})})),this.definitions=[...e,...this.definitions],super.map(...e)}};q([C],H7.prototype,`definitions`,void 0);var U7=class extends cv{constructor(){super(),this.logger=P7,this.loginPath=`login`,this.notFoundPath=`not-found`,this.notPermittedPath=`not-permitted`,this.routes=new H7(this),this.basename=_f,this.routes=new H7(this)}getNavItems(e=V7){return vRe(this.routes.definitions,e)}configureAnalytics(){this.contributors.push({navigate:e=>J(this,void 0,void 0,function*(){this.analytics.trackEvent(Ad.routeChanged,{path:e.route.endpoint.path})})})}configureRoutePermittedChecks(){this.contributors.push({navigate:e=>J(this,void 0,void 0,function*(){let{settings:t}=e.route;(t?.isPermitted)?.call(t)===!1&&e.cancel(()=>{if(!this.user.isAuthenticated)this.user.trackPath(),B7.name.replace(e.router,this.loginPath);else{let n=t.notPermittedPath?.call(t)??this.notPermittedPath;this.logger.debug(`User not permitted to access route. Re-routing to ${n}.`),B7.name.replace(e.router,n)}})})})}configureFallbackRouteDefinition(){this.routes.fallback(()=>{let e={redirect:this.notFoundPath};return this.user.isAuthenticated||(this.user.trackPath(),this._session.captureReturnUrl(),e={redirect:this.loginPath}),this.logger.debug(`Route unresolved. Re-routing to ${e.redirect}.`),e})}navigationPhaseLoginRedirect(e){e.cancel(()=>{this.user.trackPath(),this._session.captureReturnUrl(),B7.name.replace(e.router,this.loginPath)})}generateRouteFromName(e,t){let n=Object.create(null,{generateRouteFromName:{get:()=>super.generateRouteFromName}});return J(this,void 0,void 0,function*(){let r=yield n.generateRouteFromName.call(this,e,t);return r?this.generateNavigationPath(r):null})}navigateTo(e){return J(this,void 0,void 0,function*(){if(e.name){this.relativeTo||this.logger.error(`unable to navigate by name as the relativeTo router is not set`),yield B7.name.push(this.relativeTo,e.name,e.params,e.trigger);return}if(e.path){B7.path.push(this.generateNavigationPath(e.path,e.params),e.trigger);return}})}generateNavigationPath(e,t){let n=this.getNavigationPathBasename(),r=y_.build(t),i=n&&!e.startsWith(n)?gRe([n,e]):e;return i=r?`${i}?${r}`:i,i}getNavigationPathBasename(){let e=(this.parent?.relativeTo?.route)?.endpoint.route.path;return e?_Re(e):this.basename?this.basename:``}construct(e){return this.container.get(e)}};q([Mt],U7.prototype,`container`,void 0),q([Cre],U7.prototype,`analytics`,void 0),q([$h],U7.prototype,`user`,void 0),q([Sg],U7.prototype,`_session`,void 0);let W7=`navigate-to`,G7=`generate-navigation-path`,K7=class extends I7.from(Qe){constructor(){super(...arguments),this.logger=P7,this.onNavigateTo=e=>{e.stopImmediatePropagation(),this.config.navigateTo(e.detail)},this.onGenerateNavigationPath=e=>{e.stopImmediatePropagation();let{path:t,params:n,callback:r}=e.detail;r&&r(this.config.generateNavigationPath(t,n))}}get router(){return this[F7]}connectedCallback(){var e;super.connectedCallback(),!this.config.isConfigured&&((e=this.config).relativeTo??(e.relativeTo=this.router),x.queueUpdate(()=>J(this,void 0,void 0,function*(){this.router.config?this.router.connect():this.router.config=this.config})),this.addEventListeners())}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListeners()}addEventListeners(){this.addEventListener(W7,this.onNavigateTo),this.addEventListener(G7,this.onGenerateNavigationPath)}removeEventListeners(){this.removeEventListener(W7,this.onNavigateTo),this.removeEventListener(G7,this.onGenerateNavigationPath)}};K7=q([$e({name:`foundation-router`})],K7);let q7=e=>`control: ${e}-control, content: ${e}-content`,yRe=[`background: progress-ring-background`,`progress: progress-ring-progress`,`indeterminate-indicator-1: progress-ring-indeterminate`].join(`, `),J7=e=>T`<${e}-card class=${e=>fn(`stepper-tab`,[`stepper-tab-hidden`,e.hideTabs])}part="stepper-tab" @tab-clicked="${(e,t)=>e.handleStepClick(t.event.detail)}" role="stepper-tab" data-test-id="stepper-tab"><div class=${e=>fn(`stepper-tab-menu`,[`stepper-tab-menu-hidden`,e.hideTabs])}part="stepper-tab-menu"><slot name="tab" ${bt(`tabs`)}></slot></div>${A(e=>e.orientation===Fa.vertical&&!e.hideProgress,T`<div class="stepper-tab-progress" part="stepper-tab-progress"><${e}-progress-ring class="progress-ring" part="progress-ring" exportparts="${yRe}" value=${e=>e.progressValue}></${e}-progress-ring><label part="progress-label">You have completed ${e=>e.progressValue}% of the fields required to create a project</label></div>`)}</${e}-card>${A(e=>!e.indicatorOnly,T`<${e}-card class="stepper-tab-panel" part="stepper-tab-panel" data-test-id="stepper-tab-panel"><div class="stepper-panel-container" part="stepper-panel-container"><slot name="tab-panel" ${bt(`tabpanels`)}></slot></div>${A(e=>!e.hideAllButtons,T`<div class="action-buttons-container" part="action-buttons-container"><slot name="action-buttons"><${e}-button part="back-button" exportparts="${q7(`back-button`)}" @click=${e=>e.previousStep()}?disabled=${e=>e.disabledPreviousStep}>Back</${e}-button>${A(e=>e.isLastStep&&!e.hideSubmitButton,T`<${e}-button part="submit-button" exportparts="${q7(`submit-button`)}" @click=${e=>e._submit()}?disabled=${e=>e.islastStepValid}data-test-id="submit-button">
1006
+ Submit </${e}-button>`)} ${A(e=>!e.isLastStep,T`<${e}-button part="next-button" exportparts="${q7(`next-button`)}" @click=${e=>e.nextStep()}data-test-id="next-button">Next</${e}-button>`)}</slot></div>`)}</${e}-card>`)} `,bRe=T` ${e=>J7(yb(e))} `,Y7=O` :host{display: flex;height: 100%;width: 100%}:host([orientation='horizontal']){flex-direction: column}.stepper-tab{display: flex;flex-direction: column;width: 100%;height: 100%;max-width: 280px;border-radius: 0}.action-buttons-container{width: 100%;display: flex;justify-content: flex-end}.stepper-panel-container{height: 100%;overflow: hidden;padding: 15px}.stepper-tab-menu{display: flex;flex-direction: column;width: 100%;margin-bottom: 30px}.stepper-tab-menu-hidden{display: none}.stepper-tab-progress{display: flex;flex-direction: column;align-items: center;justify-content: start;flex: 1}.stepper-tab-progress .progress-ring{--design-unit: 10;margin: 0}.stepper-tab-panel{display: flex;flex-direction: column;justify-content: space-between;width: 100%;min-width: 370px;border-radius: 0}label{padding: 0 10px;color: rgb(135 155 166);display: block;cursor: pointer;text-align: center;font-size: var(--type-ramp-base-font-size);line-height: var(--type-ramp-base-line-height);font-style: normal;margin: calc(var(--design-unit) * 2px) 0}:host([orientation='horizontal']) .stepper-tab-menu{height: 100%;width: 100%;display: flex;flex-direction: row;margin-bottom: 0;align-items: center;justify-content: center;gap: calc(var(--design-unit) * 4px);padding: 0 calc(var(--design-unit) * 4px)}:host([orientation='horizontal']) .stepper-tab-hidden{display: none}:host([orientation='horizontal']) .stepper-tab{max-width: 100%;max-height: 70px;height: 70px}`;var X7=class extends P{constructor(){super(...arguments),this.hideProgress=!1,this.allowBackwardJumps=!1,this.allowForwardJumps=!1,this.hideAllButtons=!1,this.hideTabs=!1,this.indicatorOnly=!1,this.orientation=Fa.vertical,this.tabs=[],this.tabpanels=[],this.progressValue=0,this.activeTabIndex=0,this.pendingNextStep=!1,this.slotsInitialized=!1,this.setTabs=()=>{this.activeTabIndex=this.getActiveIndex(),this.tabs.forEach((e,t)=>{if(e.slot===`tab`){let n=this.activeTabIndex===t,r=t+1===this.tabIds.length,i=this.tabIds[t],a=this.tabpanelIds[t];e.setAttribute(`id`,i),e.setAttribute(`aria-selected`,n?`true`:`false`),e.setAttribute(`aria-disabled`,n?`false`:`true`),x.setBooleanAttribute(e,`selected`,n),e.setAttribute(`orientation`,this.orientation),a&&e.setAttribute(`aria-controls`,a),e.setAttribute(`tab-position`,String(t+1)),x.setBooleanAttribute(e,`isLast`,r),x.setBooleanAttribute(e,`hideStepNumber`,this.hideStepNumber===!0),e.setAttribute(`tabindex`,n?`0`:`-1`),x.setBooleanAttribute(e,`showCursorPointer`,t<=this.activeTabIndex&&this.allowBackwardJumps||t>this.activeTabIndex&&this.allowForwardJumps),n&&(this.activetab=e,this.activeid=i)}}),this.activeTabIndex===0&&this.resetCompletedState()},this.getCompletedTabs=()=>{let e=0;this.tabs.forEach(t=>{t.isCompleted()&&(e+=1)});let t=this.indicatorOnly?this.tabs.length:this.tabpanels.length;this.progressValue=t?Math.round(e/t*100):0},this.setTabPanels=()=>{this.tabpanels.forEach((e,t)=>{let n=this.tabIds[t],r=this.tabpanelIds[t];e.setAttribute(`id`,r),e.setAttribute(`aria-labelledby`,n),this.activeTabIndex===t?e.removeAttribute(`hidden`):e.setAttribute(`hidden`,``)})}}orientationChanged(){this.$fastController.isConnected&&(this.setTabs(),this.setTabPanels())}activeidChanged(e,t){this.$fastController.isConnected&&(this.indicatorOnly||this.tabs.length<=this.tabpanels.length)&&(this.setTabs(),this.setTabPanels(),this.getCompletedTabs())}tabsChanged(){this.$fastController.isConnected&&(this.indicatorOnly||this.tabs.length<=this.tabpanels.length)&&(this.setTabsAndTabPanels(),this.checkAndExecutePendingNextStep())}tabpanelsChanged(){this.$fastController.isConnected&&this.tabpanels.length<=this.tabs.length&&(this.setTabsAndTabPanels(),this.checkAndExecutePendingNextStep())}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}setTabsAndTabPanels(){this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels(),this.getCompletedTabs(),this.slotsInitialized=this.tabs.length>0&&(this.indicatorOnly||this.tabpanels.length>0)}checkAndExecutePendingNextStep(){this.pendingNextStep&&this.slotsInitialized&&(this.pendingNextStep=!1,this.nextStep())}getActiveIndex(){return this.activeid===void 0||this.tabIds.indexOf(this.activeid)===-1?0:this.tabIds.indexOf(this.activeid)}goToStep(e,t=!1){let n=e-1;if(e<1||e>this.tabs.length)return hb.warn(`[Stepper] Invalid step number: ${e}. Must be between 1 and ${this.tabs.length}`),!1;if(n===this.activeTabIndex)return!1;if(t){if(n<this.activeTabIndex)return this.handleBackwardJump(n);if(n>this.activeTabIndex)return this.handleForwardJump(n)}return n<this.activeTabIndex&&this.allowBackwardJumps?this.handleBackwardJump(n):n>this.activeTabIndex&&this.allowForwardJumps?this.handleForwardJump(n):n===this.activeTabIndex+1?(this.nextStep(),!0):(hb.warn(`[Stepper] Cannot jump to step ${e}. Jumps are not allowed or step is not adjacent.`),!1)}goToFirstStep(){return this.goToStep(1,!0)}goToLastStep(){return this.goToStep(this.tabs.length,!0)}handleStepClick(e){e<this.activeTabIndex&&this.allowBackwardJumps?this.handleBackwardJump(e):e>this.activeTabIndex&&this.allowForwardJumps&&this.handleForwardJump(e)}handleBackwardJump(e){for(let t=e+1;t<=this.activeTabIndex;t+=1)this.tabs[t].completed=!1;return this.activeTabIndex=e,this.activetab=this.tabs[e],this.activeid=this.tabIds[e],this.$emit(`step-click`,{activetab:this.activetab,activeid:this.activeid}),!0}handleForwardJump(e){for(let t=this.activeTabIndex;t<e;t+=1)if(this.validation&&this.validation[t]){if(!this.validation[t].isValid())return this.tabs[t].completed=!1,this.tabs[t].error=!0,this.getCompletedTabs(),this.$emit(`validation-failure`,{stepIndex:t,stepId:this.tabIds[t],message:`Validation failed for step ${t+1}`}),!1;this.tabs[t].error=!1}for(let t=this.activeTabIndex;t<e;t+=1)this.tabs[t].completed=!0,this.tabs[t].error=!1;return this.tabs[e].completed=!1,this.tabs[e].error=!1,this.activeTabIndex=e,this.activetab=this.tabs[e],this.activeid=this.tabIds[e],this.getCompletedTabs(),this.$emit(`step-click`,{activetab:this.activetab,activeid:this.activeid}),!0}get disabledPreviousStep(){return this.activeTabIndex===0}get isLastStep(){return this.activeTabIndex+1===this.tabs.length}get islastStepValid(){let e=this.tabs.length-1;return this.activeTabIndex===e&&(this.validation&&this.validation[e]?.isValid()||!this.validation||!this.validation[e])?(this.tabs[e].completed=!0,this.getCompletedTabs(),!1):(this.tabs[e].completed=!1,this.getCompletedTabs(),!0)}_submit(){this.$emit(`submit`)}nextStep(){if(!this.slotsInitialized){this.pendingNextStep=!0;return}if(this.validation&&this.validation[this.activeTabIndex]){if(!this.validation[this.activeTabIndex].isValid()){this.tabs[this.activeTabIndex].completed=!1,this.tabs[this.activeTabIndex].error=!0,this.getCompletedTabs();return}this.tabs[this.activeTabIndex].error=!1}this.activeTabIndex+2<=this.tabIds.length&&(this.tabs[this.activeTabIndex].completed=!0,this.activeTabIndex+=1,this.activeid=this.tabIds[this.activeTabIndex],this.$emit(`next-step`),this.$emit(`validation-success`));let e=this.tabs.length-1,t=this.activeTabIndex===e;this.hideSubmitButton&&t&&(this.validation&&this.validation[e]?.isValid()||!this.validation||!this.validation[e])?(this.tabs[e].completed=!0,this.getCompletedTabs()):(this.tabs[e].completed=!1,this.getCompletedTabs())}previousStep(){this.activeTabIndex!==0&&(this.tabs[this.activeTabIndex].completed=!1,--this.activeTabIndex,this.activeid=this.tabIds[this.activeTabIndex])}getTabIds(){return this.tabs.map(e=>e.getAttribute(`id`)??`tab-${Ln()}`)}getTabPanelIds(){return this.tabpanels.map(e=>e.getAttribute(`id`)??`panel-${Ln()}`)}resetCompletedState(){this.tabs.forEach(e=>e.completed=!1)}};q([D({attribute:`hide-submit-button`,mode:`boolean`})],X7.prototype,`hideSubmitButton`,void 0),q([D({attribute:`hide-progress`,mode:`boolean`})],X7.prototype,`hideProgress`,void 0),q([D({attribute:`hide-step-number`,mode:`boolean`})],X7.prototype,`hideStepNumber`,void 0),q([D({attribute:`allow-backward-jumps`,mode:`boolean`})],X7.prototype,`allowBackwardJumps`,void 0),q([D({attribute:`allow-forward-jumps`,mode:`boolean`})],X7.prototype,`allowForwardJumps`,void 0),q([D({attribute:`hide-all-buttons`,mode:`boolean`})],X7.prototype,`hideAllButtons`,void 0),q([D({attribute:`hide-tabs`,mode:`boolean`})],X7.prototype,`hideTabs`,void 0),q([D({attribute:`indicator-only`,mode:`boolean`})],X7.prototype,`indicatorOnly`,void 0),q([D],X7.prototype,`orientation`,void 0),q([D],X7.prototype,`activeid`,void 0),q([C],X7.prototype,`tabs`,void 0),q([C],X7.prototype,`tabpanels`,void 0),q([C],X7.prototype,`validation`,void 0),q([C],X7.prototype,`progressValue`,void 0),q([C],X7.prototype,`activeTabIndex`,void 0),q([w],X7.prototype,`disabledPreviousStep`,null),q([w],X7.prototype,`isLastStep`,null),q([w],X7.prototype,`islastStepValid`,null);let Z7={};X7.compose(Object.assign({baseName:`stepper`,template:bRe,styles:Y7,shadowOptions:void 0},Z7)),class extends Yu{}.compose(Object.assign({baseName:`accordion-item`,template:(e,t)=>qu(e,t),styles:(e,t)=>O` ${Ju(e,t)} :host{--icon-container-calculator: calc( (6 + (var(--design-unit) * 6)) * 1px );/* height of section - (padding top +padding-bottom) */ --icon-margin-calculation: calc((6 + (var(--design-unit) * 2 * var(--density))) * 1px)}.region{padding: 0 calc((16 + (var(--design-unit) * 2 * var(--density))) * 1px);color: var(--accent-foreground-rest)}:host([expanded]) .region{color: var(--accent-foreground-rest)}slot[name='expanded-icon']{display: none;stroke: none}slot[name='collapsed-icon'] path.plus-sign, slot[name='expanded-icon'] path.minus-sign{stroke: white}slot[name='expanded-icon'], slot[name='collapsed-icon']{background: var(--neutral-fill-rest);fill: none;stroke: none;height: calc((var(--design-unit) * 4) * 1px);width: calc((var(--design-unit) * 4) * 1px)}svg:not(:root){height: calc((var(--design-unit) * 4) * 1px);width: calc((var(--design-unit) * 4) * 1px)}.icon{height: var( --icon-container-calculator );/* UX 30px* for now it's 30 on default design unit - 4/ */ width: var(--icon-container-calculator);/* UX 30px */ margin: var(--icon-margin-calculation) var(--icon-margin-calculation) var(--icon-margin-calculation) 0}.button{padding: 0 calc((8 + (var(--design-unit) * 2 * var(--density))) * 1px) 0 calc((16 + (var(--design-unit) * 2 * var(--density))) * 1px)}.heading{grid-template-columns: auto 1fr auto;align-items: center}`,shadowOptions:Xu},Zu)),class extends Wu{}.compose(Object.assign({baseName:`accordion`,template:(e,t)=>io(e,t),styles:(e,t)=>O` ${Uu(e,t)} :host{border-top: none;border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest)}.heading{height: calc(var(--base-height-multiplier) * 4px)}`,shadowOptions:Gu},Ku)),class extends Jb{}.compose({baseName:`actions-menu`,styles:(e,t)=>O` :host{--actions-opener-height-multiplier: 0.6px;--menu-item-height-multiplier: 0.5px}${Qu(e,t)} rapid-menu-item{display: flex;user-select: none}rapid-menu-item::part(content){margin-inline: calc(var(--design-unit) * 3px)}rapid-menu-item[disabled]{pointer-events: none}`,template:Kb});let xRe=O` ${rC}`;(class extends DC{}).compose(Object.assign({baseName:`ai-criteria-search`,template:(e,t)=>iC,styles:xRe,shadowOptions:void 0},OC)),class extends jC{}.compose({baseName:`ai-indicator`,template:AC,styles:(e,t)=>O` ${kC(e,t)} :host{--green: var(--success-color);--trafic-light-green: var(--success-color);--red: var(--error-color);--trafic-light-red: var(--error-color);--amber: var(--warning-color);--trafic-light-amber: var(--warning-color)}`});function Q7(e,t){return new to(`appearance`,e,t)}let SRe=O` :host([appearance='primary']){background: var(--accent-fill-rest);color: var(--foreground-on-accent-rest)}:host([appearance='primary']:hover){background: var(--accent-fill-hover);color: var(--foreground-on-accent-hover)}:host([appearance='primary']:active){background: var(--accent-fill-active);color: var(--foreground-on-accent-active)}:host([appearance='primary'][disabled]), :host([appearance='primary'][disabled]):hover, :host([appearance='primary'][disabled]):active{opacity: 50%}`,CRe=O` :host([appearance='secondary']){background: var(--secondary-fill-rest);color: contrast-color(var(--secondary-fill-rest))}:host([appearance='secondary']:hover){background: var(--secondary-fill-hover);color: contrast-color(var(--secondary-fill-hover))}:host([appearance='secondary']:active){background: var(--secondary-fill-active);color: contrast-color(var(--secondary-fill-active))}:host([appearance='secondary'][disabled]), :host([appearance='secondary'][disabled]):hover, :host([appearance='secondary'][disabled]):active{opacity: 50%}`,wRe=O` :host([appearance='neutral']){background: var(--neutral-button-fill, var(--neutral-fill-rest));border: var(--neutral-button-border, 0);color: var(--neutral-button-foreground, var(--neutral-foreground-rest))}:host([appearance='neutral']:hover){background: color-mix( in srgb, var(--neutral-button-fill, var(--neutral-fill-hover)), transparent 20% )}:host([appearance='neutral']:active){background: color-mix( in srgb, var(--neutral-button-fill, var(--neutral-fill-active)), transparent 30% )}:host([appearance='neutral'][disabled]), :host([appearance='neutral'][disabled]):hover, :host([appearance='neutral'][disabled]):active{opacity: 50%;background: var(--neutral-button-fill, var(--neutral-fill-rest));color: var(--neutral-button-foreground, var(--neutral-foreground-rest));border: var(--neutral-button-border, 0)}`,TRe=O` :host([appearance='danger']){background: var(--error-fill-rest);color: contrast-color(var(--error-fill-rest));border: 0}:host([appearance='danger']:hover){background: var(--error-fill-hover);color: contrast-color(var(--error-fill-hover))}:host([appearance='danger']:active){background: var(--error-fill-active);color: contrast-color(var(--error-fill-active))}:host([appearance='danger'][disabled]), :host([appearance='danger'][disabled]):hover, :host([appearance='danger'][disabled]):active{opacity: 50%}`,ERe=O` :host([appearance='success']){background: var(--success-fill-rest);color: contrast-color(var(--success-fill-rest));border: 0}:host([appearance='success']:hover){background: var(--success-fill-hover);color: contrast-color(var(--success-fill-hover))}:host([appearance='success']:active){background: var(--success-fill-active);color: contrast-color(var(--success-fill-active))}:host([appearance='success'][disabled]), :host([appearance='success'][disabled]):hover, :host([appearance='success'][disabled]):active{opacity: 50%}`,DRe=O` :host([appearance='warning']){background: var(--warning-fill-rest);color: contrast-color(var(--warning-fill-rest));border: 0}:host([appearance='warning']:hover){background: var(--warning-fill-hover);color: contrast-color(var(--warning-fill-hover))}:host([appearance='warning']:active){background: var(--warning-fill-active);color: contrast-color(var(--warning-fill-active))}:host([appearance='warning'][disabled]), :host([appearance='warning'][disabled]):hover, :host([appearance='warning'][disabled]):active{opacity: 50%}`,ORe=O` :host([appearance='tertiary']){background: var(--tertiary-fill-rest);color: contrast-color(var(--tertiary-fill-rest));border: 0}:host([appearance='tertiary']:hover){background: var(--tertiary-fill-hover);color: contrast-color(var(--tertiary-fill-hover))}:host([appearance='tertiary']:active){background: var(--tertiary-fill-active);color: contrast-color(var(--tertiary-fill-active))}:host([appearance='tertiary'][disabled]), :host([appearance='tertiary'][disabled]):hover, :host([appearance='tertiary'][disabled]):active{opacity: 50%}`,kRe=O` :host([appearance='primary-outline']){background: none;border: calc(var(--stroke-width) * 1px) solid var(--accent-fill-rest)}:host([appearance='primary-outline']:hover){background: var(--accent-fill-hover);color: contrast-color(var(--accent-fill-hover))}:host([appearance='primary-outline']:active){background: var(--accent-fill-active);color: contrast-color(var(--accent-fill-active))}:host([appearance='primary-outline'][disabled]), :host([appearance='primary-outline'][disabled]):hover, :host([appearance='primary-outline'][disabled]):active{opacity: 50%}`,ARe=O` :host([appearance='secondary-outline']){background: none;border: calc(var(--stroke-width) * 1px) solid var(--secondary-fill-rest)}:host([appearance='secondary-outline']:hover){background: var(--secondary-fill-hover);color: contrast-color(var(--secondary-fill-hover))}:host([appearance='secondary-outline']:active){background: var(--secondary-fill-active);color: contrast-color(var(--secondary-fill-active))}:host([appearance='secondary-outline'][disabled]), :host([appearance='secondary-outline'][disabled]):hover, :host([appearance='secondary-outline'][disabled]):active{opacity: 50%}`,jRe=O` :host([appearance='neutral-outline']){background: none;border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest)}:host([appearance='neutral-outline']:hover){background: var(--neutral-fill-hover);color: contrast-color(var(--neutral-fill-hover))}:host([appearance='neutral-outline']:active){background: var(--neutral-fill-active);color: contrast-color(var(--neutral-fill-active))}:host([appearance='neutral-outline'][disabled]), :host([appearance='neutral-outline'][disabled]):hover, :host([appearance='neutral-outline'][disabled]):active{opacity: 50%}`,MRe=O` :host([appearance='link']){background: none;border: none;color: var(--accent-foreground-rest)}:host([appearance='link']) .control{padding: 0}:host([appearance='link']:hover){color: var(--accent-foreground-hover)}:host([appearance='link'][disabled]), :host([appearance='link'][disabled]):hover, :host([appearance='link'][disabled]):active{opacity: 50%}`,NRe=(e,t)=>O` :host{font-weight: 500;color: var(--neutral-foreground-rest);box-sizing: border-box;font-size: var(--type-ramp-base-font-size);height: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit) - 4) * 1px)}.control{padding: 0 calc((16 + var(--design-unit) * 2 * var(--density)) * 1px)}.start{margin-inline-end: calc(var(--design-unit) * 2px)}.end{margin-inline-start: calc(var(--design-unit) * 2px)}.control:has(.start){padding-left: calc((12 + var(--design-unit) * 2 * var(--density)) * 1px)}.control:has(.end){padding-right: calc((12 + var(--design-unit) * 2 * var(--density)) * 1px)}:host([appearance='neutral']){background: color-mix(in srgb, var(--neutral-fill-rest), transparent 50%);border: calc(var(--stroke-width) * 1px) solid var(--neutral-fill-rest)}:host([appearance='neutral']:hover){background: var(--neutral-fill-rest)}:host([appearance='neutral']:active){background: color-mix(in srgb, var(--neutral-fill-rest), transparent 70%));border: calc(var(--stroke-width) * 1px) solid var(--neutral-fill-rest)}:host([appearance='neutral'][disabled]), :host([appearance='neutral'][disabled]):hover, :host([appearance='neutral'][disabled]):active{background: color-mix(in srgb, var(--neutral-fill-rest), transparent 70%);border: calc(var(--stroke-width) * 1px) solid var(--neutral-fill-rest);color: color-mix(in srgb, var(--neutral-foreground-rest), transparent 50%);opacity: 100%}:host([appearance='accent']){color: contrast-color(var(--accent-fill-rest))}`,$7=(e,t)=>O` ${lw(e,t)} ${NRe(e,t)} `.withBehaviors(Q7(`primary`,SRe),Q7(`secondary`,CRe),Q7(`tertiary`,ORe),Q7(`neutral`,wRe),Q7(`danger`,TRe),Q7(`success`,ERe),Q7(`warning`,DRe),Q7(`primary-outline`,kRe),Q7(`secondary-outline`,ARe),Q7(`neutral-outline`,jRe),Q7(`link`,MRe));(class extends PC{}).compose(Object.assign({baseName:`anchor`,template:(e,t)=>MC(e,t),styles:(e,t)=>O` ${NC(e,t)} ${$7(e,t)} `.withBehaviors(...$7(e,t).behaviors),shadowOptions:FC},IC)),class extends zC{}.compose(Object.assign({baseName:`anchored-region`,template:(e,t)=>LC(e,t),styles:(e,t)=>O` ${RC(e,t)}`,shadowOptions:BC},VC)),class extends WC{}.compose(Object.assign({baseName:`avatar`,template:(e,t)=>HC(e,t),styles:(e,t)=>O` ${UC(e,t)}`,shadowOptions:GC},KC)),class extends YC{}.compose(Object.assign({baseName:`badge`,template:(e,t)=>qC(e,t),styles:(e,t)=>O` ${JC(e,t)} :host{--badge-fill-primary: var(--accent-fill-rest);--badge-fill-neutral: var(--neutral-fill-rest);--badge-fill-success: var(--success-color);--badge-fill-danger: var(--error-color);--badge-fill-warning: var(--warning-color);--badge-fill-buy: var(--buy-color);--badge-fill-sell: var(--sell-color);--badge-color-text: var(--neutral-foreground-rest);font-size: var(--type-ramp-minus-2-font-size)}:host .control{padding: calc(${z} * 1px) calc(${z} * 2px);border: none}`,shadowOptions:void 0},XC));let PRe=O` ${ZC} :host{--banner-height: calc( ((var(--design-unit) + 2) * var(--base-height-multiplier)) + (var(--design-unit) * var(--design-unit)) * 1px )}.banner{background-color: var(--neutral-layer-1);color: var(--neutral-foreground-rest);padding: calc(var(--design-unit) * 4px)}.content{font-size: var(--type-ramp-base-font-size);font-family: var(--body-font);line-height: var(--type-ramp-base-line-height)}`,FRe=$C;(class extends ew{}).compose({baseName:`banner`,shadowOptions:FRe,styles:PRe,template:QC}),class extends ow{}.compose(Object.assign({baseName:`breadcrumb-item`,template:(e,t)=>iw(e,t),styles:(e,t)=>O` ${aw(e,t)} .listitem{color: var(--accent-foreground-rest)}.control{color: var(--neutral-foreground-rest)}.control:hover{color: var(--neutral-foreground-rest)}.separator{color: var(--neutral-stroke-rest);margin: 0 12px}.control:hover .content::before{background: var(--neutral-foreground-rest)}.control .start{width: calc(var(--base-height-multiplier) * 3px);height: calc(var(--base-height-multiplier) * 3px);display: flex;justify-content: center;align-items: center;border-radius: calc(var(--control-corner-radius) * 1px);margin: 0 -4px 0 0}.control:hover .start{background: color-mix(in srgb, var(--neutral-foreground-rest), transparent 95%)}`,shadowOptions:void 0},sw)),class extends rw{}.compose(Object.assign({baseName:`breadcrumb`,template:(e,t)=>tw(e,t),styles:(e,t)=>O` ${nw(e,t)}`,shadowOptions:void 0},{})),class extends uw{}.compose(Object.assign({baseName:`button`,template:(e,t)=>cw(e,t),styles:$7,shadowOptions:dw},fw)),class extends hw{}.compose(Object.assign({baseName:`calendar`,template:(e,t)=>mw(e,t),styles:()=>O` ${pw()}`,shadowOptions:gw},_w)),class extends bw{}.compose(Object.assign({baseName:`card`,template:(e,t)=>vw(e,t),styles:(e,t)=>O` ${yw(e,t)} :host{background: var(--neutral-layer-card-container);color: ${H};border-radius: var(--card-corner-radius, calc(var(--control-corner-radius) * 1px));box-shadow: var(--card-box-shadow, none);border: var( --card-border, 1px solid var(--neutral-stroke-rest) );/** uses a token instead of #2E3339 value available in ux docs */ /* box-shadow and border-radius are being calculated at host level by using design-tokens */}::slotted(rapid-card){background: var(--neutral-layer-3)}`,shadowOptions:void 0},xw));let IRe=O` ${jw} .label{color: var(--neutral-foreground-hint)}.options{background: var(--neutral-layer-4)}rapid-checkbox:hover:not([disabled]){background: var(--neutral-layer-4)}`,LRe=T` ${Mw(`rapid`)} `;var RRe=class extends Pw{};let zRe=Nw;RRe.compose(Object.assign({baseName:`categorized-multiselect`,template:LRe,styles:IRe,shadowOptions:void 0},zRe)),class extends Lw{}.compose(Object.assign({baseName:`checkbox`,template:(e,t)=>Fw(e,t),styles:(e,t)=>O` ${Iw(e,t)} .checked-indicator{fill: contrast-color(var(--accent-fill-rest));box-shadow: 2px 1000px 1px rgb(0 0 0 / 20%) inset;border-radius: calc(var(--control-corner-radius) * 1px)}:host([aria-checked='true']:not([disabled])) .control:hover .checked-indicator{fill: var(--neutral-foreground-rest)}.label{padding-inline-start: calc(var(--design-unit) * 2px)}`,shadowOptions:void 0},Rw)),class extends Uw{}.compose(Object.assign({baseName:`combobox`,template:(e,t)=>Bw(e,t),styles:(e,t)=>O` ${zw(e,t)} :host{border-style: solid;border-width: var(--neutral-stroke-width-rest, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-rest, var(--focus-stroke-outer));background-color: var(--neutral-fill-input-rest);height: calc( (((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) - 4) * 1px );min-width: 0}:host(:focus-within:not([disabled])){border-style: solid;border-width: var(--neutral-stroke-width-focus, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-focus, var(--accent-fill-rest));background-color: var(--neutral-fill-input-focus)}:host(:hover:not([disabled]):not([open])){border-style: solid;border-width: var(--neutral-stroke-width-hover, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-hover, var(--neutral-foreground-rest));background: var(--neutral-fill-input-hover)}:host([open][position='below']) .listbox{padding: 0;margin-top: calc(${z} * 1px);border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);border-radius: calc(var(--control-corner-radius) * 1px)}:host .listbox ::slotted(*:last-child){border-bottom: none}.control{padding: 0 calc((var(--design-unit) - 2) * 1px) 0 calc(var(--design-unit) * 2px)}:host(:not([disabled])) .control:active{background: none}.indicator{width: calc((var(--base-height-multiplier) * (var(--design-unit) - 1)) * 1px);height: calc((var(--base-height-multiplier) * (var(--design-unit) - 1)) * 1px);background-color: var(--dropdown-indicator-background, var(--neutral-fill-rest));border-radius: calc(var(--control-corner-radius) * 1px);display: flex;justify-content: center;align-items: center}.combo-box-indicator{width: calc(var(--design-unit) * 3.5px);height: calc(var(--design-unit) * 3.5px);transition: all 0.35s}.selected-value{height: calc(100% - (var(--design-unit) * 1px));padding: 0;margin: 0}:host(:focus-within:not([disabled])) .indicator{background-color: transparent}:host([open]) .combo-box-indicator{transition: all 0.35s;transform: rotate(180deg)}::slotted([role='option']){margin: 0}`,shadowOptions:Ww},Gw)),class extends Jw{}.compose({baseName:`connection-indicator`,template:qw,styles:(e,t)=>O` ${Kw(e,t)} :host{--light-size: calc(var(--design-unit) * 3px);--red: var(--error-color);--trafic-light-red: color-mix(in srgb, var(--red), transparent 0%);--trafic-light-red-glow: color-mix(in srgb, var(--red), transparent 60%) 0 0 4px 4px, color-mix(in srgb, var(--red), transparent 80%) 0 0 8px 8px;--green: var(--success-color);--trafic-light-green: color-mix(in srgb, var(--green), transparent 0%);--trafic-light-green-glow: color-mix(in srgb, var(--green), transparent 60%) 0 0 4px 4px, color-mix(in srgb, var(--green), transparent 80%) 0 0 8px 8px}.light{margin: calc(var(--design-unit) * 4px)}.label{font-family: var(--body-font);font-size: var(--type-ramp-base-font-size);color: var(--neutral-stroke-rest)}`});let BRe=()=>O` ${Yw} :host{--primary-gradient-angle: -113.5deg;display: inline-block}.calendar-dropdown{border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);font-family: var(--body-font);font-size: var(--type-ramp-base-font-size);line-height: var(--type-ramp-base-line-height)}.input-icon-container{display: flex;justify-content: center;align-items: center;border-radius: calc(var(--control-corner-radius) * 1px);width: calc((var(--base-height-multiplier) * (var(--design-unit) - 1)) * 1px);height: calc((var(--base-height-multiplier) * (var(--design-unit) - 1)) * 1px)}.input-icon-container:hover{background-color: var(--neutral-fill-rest)}.date-toggle::part(end){margin-inline-end: calc(var(--design-unit) * 1px)}.date-toggle{margin-bottom: 0}.month-day{width: calc(((var(--base-height-multiplier) * (var(--design-unit) - 1)) + 2) * 1px);height: calc(((var(--base-height-multiplier) * (var(--design-unit) - 1)) + 2) * 1px)}.week-days span{font-size: var(--type-ramp-minus-2-font-size)}`,VRe=T` ${Zw(`rapid`)} `;(class extends lT{}).compose(Object.assign({baseName:`date-picker`,template:VRe,styles:BRe,shadowOptions:void 0},{}));var e9;(function(e){e.primary=`#11C9FC`,e.neutral=`#7C909B`,e.error=`#F9644D`,e.success=`#7ACC79`,e.warning=`#FFB660`,e.tertiary=`#7B2FBE`,e.info=`#11C9FC`,e.buy=`#7ACC79`,e.sell=`#F14376`,e.chartPink=`#fb8176`,e.longGreen=`#7acc79`,e.shortPink=`#f14376`,e.warningYellow=`#fcb35f`,e.green=`#44c14c`,e.lightGreen=`#69cd70`,e.red=`#ef4d28`,e.lightRed=`#ee6588`,e.dodgerBlue=`#33a9ff`,e.lightDodgerBlue=`#5cbaff`,e.violet=`#9b1e74`,e.lightViolet=`#b528af`,e.white=`#f9f9f9`,e.silver=`#c1c1c1`,e.salomie=`#ffdf94`,e.lightSalomie=`#ccb276`,e.melon=`#ffbbb2`,e.lightMelon=`#cc968e`,e.portage=`#8a99f5`,e.lightPortage=`#adb8f8`,e.ice=`#97f4eb`,e.lightIce=`#6befe2`})(e9||(e9={}));let{create:t9}=ni,n9=Jo(e9.error),r9=Qo.create(n9.r,n9.g,n9.b),i9=t9(`error-color`).withDefault(r9),a9=Jo(e9.success),o9=Qo.create(a9.r,a9.g,a9.b),s9=t9(`success-color`).withDefault(o9),c9=Jo(e9.warning),l9=Qo.create(c9.r,c9.g,c9.b),u9=t9(`warning-color`).withDefault(l9),d9=Jo(e9.buy),f9=Qo.create(d9.r,d9.g,d9.b),HRe=t9(`buy-color`).withDefault(f9),p9=Jo(e9.sell),m9=Qo.create(p9.r,p9.g,p9.b),URe=t9(`sell-color`).withDefault(m9),h9=Jo(e9.info),g9=Qo.create(h9.r,h9.g,h9.b),WRe=t9(`info-color`).withDefault(g9),_9=Jo(e9.error),v9=Qo.create(_9.r,_9.g,_9.b),GRe=t9(`serious-notify-color`).withDefault(v9),{create:y9}=ni,b9=e=>ni.create({name:e,cssCustomPropertyName:null}),x9=Qo.create(1,1,1),KRe=Qo.create(0,0,0),S9=4.5;function qRe(e,t,n,r,i,a,o,s,c){let l=e.source,u=t.closestIndexOf(n)>=Math.max(o,s,c)?-1:1,d=e.closestIndexOf(l),f=d+u*-1*r,p=f+u*i,m=f+u*a;return{rest:e.get(f),hover:e.get(d),active:e.get(p),focus:e.get(m)}}function JRe(e,t,n,r,i,a,o){let s=e.source,c=e.closestIndexOf(s),l=ts(t)?-1:1,u=c+(l===1?Math.min(r,i):Math.max(l*r,l*i)),d=e.colorContrast(t,n,u,l),f=e.closestIndexOf(d),p=f+l*Math.abs(r-i),m=l===1?r<i:l*r>l*i,h=m?f:p,g=m?p:f;return{rest:e.get(h),hover:e.get(g),active:e.get(h+l*a),focus:e.get(h+l*o)}}function YRe(e,t){return e.contrast(x9)>=t?x9:KRe}function C9(e,t){let n=e,r=b9(`${n}-palette`).withDefault(e=>rs.from(t.getValueFor(e))),i=b9(`${n}-fill-rest-delta`).withDefault(0),a=b9(`${n}-fill-hover-delta`).withDefault(4),o=b9(`${n}-fill-active-delta`).withDefault(-5),s=b9(`${n}-fill-focus-delta`).withDefault(0),c=b9(`${n}-foreground-rest-delta`).withDefault(0),l=b9(`${n}-foreground-hover-delta`).withDefault(6),u=b9(`${n}-foreground-active-delta`).withDefault(-4),d=b9(`${n}-foreground-focus-delta`).withDefault(0),f=b9(`${n}-fill-recipe`).withDefault({evaluate:(e,t)=>qRe(r.getValueFor(e),fc.getValueFor(e),t??Cc.getValueFor(e),a.getValueFor(e),o.getValueFor(e),s.getValueFor(e),Us.getValueFor(e),Ws.getValueFor(e),Gs.getValueFor(e))}),p=y9(`${n}-fill-rest`).withDefault(e=>f.getValueFor(e).evaluate(e).rest),m=y9(`${n}-fill-hover`).withDefault(e=>f.getValueFor(e).evaluate(e).hover),h=y9(`${n}-fill-active`).withDefault(e=>f.getValueFor(e).evaluate(e).active),g=y9(`${n}-fill-focus`).withDefault(e=>f.getValueFor(e).evaluate(e).focus),_=e=>(t,n)=>YRe(n??p.getValueFor(t),e),v=b9(`foreground-on-${n}-recipe`).withDefault({evaluate:(e,t)=>_(S9)(e,t)}),y=y9(`foreground-on-${n}-rest`).withDefault(e=>v.getValueFor(e).evaluate(e,p.getValueFor(e))),b=y9(`foreground-on-${n}-hover`).withDefault(e=>v.getValueFor(e).evaluate(e,m.getValueFor(e))),ee=y9(`foreground-on-${n}-active`).withDefault(e=>v.getValueFor(e).evaluate(e,h.getValueFor(e))),x=y9(`foreground-on-${n}-focus`).withDefault(e=>v.getValueFor(e).evaluate(e,g.getValueFor(e))),te=b9(`foreground-on-${n}-large-recipe`).withDefault({evaluate:(e,t)=>_(7)(e,t)}),ne=y9(`foreground-on-${n}-rest-large`).withDefault(e=>te.getValueFor(e).evaluate(e,p.getValueFor(e))),S=y9(`foreground-on-${n}-hover-large`).withDefault(e=>te.getValueFor(e).evaluate(e,m.getValueFor(e))),C=y9(`foreground-on-${n}-active-large`).withDefault(e=>te.getValueFor(e).evaluate(e,h.getValueFor(e))),w=y9(`foreground-on-${n}-focus-large`).withDefault(e=>te.getValueFor(e).evaluate(e,g.getValueFor(e))),re=b9(`${n}-foreground-recipe`).withDefault({evaluate:(e,t)=>JRe(r.getValueFor(e),t??Cc.getValueFor(e),S9,c.getValueFor(e),l.getValueFor(e),u.getValueFor(e),d.getValueFor(e))});return{palette:r,fillRestDelta:i,fillHoverDelta:a,fillActiveDelta:o,fillFocusDelta:s,foregroundRestDelta:c,foregroundHoverDelta:l,foregroundActiveDelta:u,foregroundFocusDelta:d,fillRecipe:f,fillRest:p,fillHover:m,fillActive:h,fillFocus:g,foregroundOnRecipe:v,foregroundOnRest:y,foregroundOnHover:b,foregroundOnActive:ee,foregroundOnFocus:x,foregroundOnLargeRecipe:te,foregroundOnRestLarge:ne,foregroundOnHoverLarge:S,foregroundOnActiveLarge:C,foregroundOnFocusLarge:w,foregroundRecipe:re,foregroundRest:y9(`${n}-foreground-rest`).withDefault(e=>re.getValueFor(e).evaluate(e).rest),foregroundHover:y9(`${n}-foreground-hover`).withDefault(e=>re.getValueFor(e).evaluate(e).hover),foregroundActive:y9(`${n}-foreground-active`).withDefault(e=>re.getValueFor(e).evaluate(e).active),foregroundFocus:y9(`${n}-foreground-focus`).withDefault(e=>re.getValueFor(e).evaluate(e).focus)}}let w9=Jo(e9.green),T9=Qo.create(w9.r,w9.g,w9.b),E9=ni.create(`secondary-color`).withDefault(T9),{palette:XRe,fillRestDelta:ZRe,fillHoverDelta:QRe,fillActiveDelta:D9,fillFocusDelta:$Re,foregroundRestDelta:eze,foregroundHoverDelta:tze,foregroundActiveDelta:nze,foregroundFocusDelta:rze,fillRecipe:ize,fillRest:aze,fillHover:oze,fillActive:sze,fillFocus:cze,foregroundOnRecipe:lze,foregroundOnRest:uze,foregroundOnHover:dze,foregroundOnActive:fze,foregroundOnFocus:pze,foregroundOnLargeRecipe:mze,foregroundOnRestLarge:hze,foregroundOnHoverLarge:gze,foregroundOnActiveLarge:_ze,foregroundOnFocusLarge:vze,foregroundRecipe:yze,foregroundRest:bze,foregroundHover:xze,foregroundActive:Sze,foregroundFocus:Cze}=C9(`secondary`,E9),O9=Jo(e9.tertiary),k9=Qo.create(O9.r,O9.g,O9.b),A9=ni.create(`tertiary-color`).withDefault(k9),{palette:wze,fillRestDelta:Tze,fillHoverDelta:Eze,fillActiveDelta:Dze,fillFocusDelta:Oze,foregroundRestDelta:kze,foregroundHoverDelta:Aze,foregroundActiveDelta:jze,foregroundFocusDelta:Mze,fillRecipe:Nze,fillRest:Pze,fillHover:Fze,fillActive:Ize,fillFocus:Lze,foregroundOnRecipe:Rze,foregroundOnRest:zze,foregroundOnHover:Bze,foregroundOnActive:Vze,foregroundOnFocus:Hze,foregroundOnLargeRecipe:Uze,foregroundOnRestLarge:Wze,foregroundOnHoverLarge:Gze,foregroundOnActiveLarge:Kze,foregroundOnFocusLarge:qze,foregroundRecipe:Jze,foregroundRest:Yze,foregroundHover:Xze,foregroundActive:Zze,foregroundFocus:Qze}=C9(`tertiary`,A9),{palette:$ze,fillRestDelta:eBe,fillHoverDelta:tBe,fillActiveDelta:nBe,fillFocusDelta:rBe,foregroundRestDelta:iBe,foregroundHoverDelta:aBe,foregroundActiveDelta:oBe,foregroundFocusDelta:sBe,fillRecipe:cBe,fillRest:lBe,fillHover:uBe,fillActive:dBe,fillFocus:fBe,foregroundOnRecipe:pBe,foregroundOnRest:mBe,foregroundOnHover:hBe,foregroundOnActive:gBe,foregroundOnFocus:_Be,foregroundOnLargeRecipe:vBe,foregroundOnRestLarge:yBe,foregroundOnHoverLarge:bBe,foregroundOnActiveLarge:xBe,foregroundOnFocusLarge:SBe,foregroundRecipe:CBe,foregroundRest:wBe,foregroundHover:TBe,foregroundActive:EBe,foregroundFocus:DBe}=C9(`error`,i9),{palette:OBe,fillRestDelta:kBe,fillHoverDelta:ABe,fillActiveDelta:jBe,fillFocusDelta:MBe,foregroundRestDelta:NBe,foregroundHoverDelta:PBe,foregroundActiveDelta:FBe,foregroundFocusDelta:IBe,fillRecipe:LBe,fillRest:RBe,fillHover:zBe,fillActive:BBe,fillFocus:VBe,foregroundOnRecipe:HBe,foregroundOnRest:UBe,foregroundOnHover:WBe,foregroundOnActive:GBe,foregroundOnFocus:KBe,foregroundOnLargeRecipe:qBe,foregroundOnRestLarge:JBe,foregroundOnHoverLarge:YBe,foregroundOnActiveLarge:XBe,foregroundOnFocusLarge:ZBe,foregroundRecipe:QBe,foregroundRest:$Be,foregroundHover:eVe,foregroundActive:tVe,foregroundFocus:nVe}=C9(`success`,s9),{palette:rVe,fillRestDelta:iVe,fillHoverDelta:aVe,fillActiveDelta:oVe,fillFocusDelta:sVe,foregroundRestDelta:cVe,foregroundHoverDelta:lVe,foregroundActiveDelta:uVe,foregroundFocusDelta:dVe,fillRecipe:fVe,fillRest:pVe,fillHover:mVe,fillActive:hVe,fillFocus:gVe,foregroundOnRecipe:_Ve,foregroundOnRest:vVe,foregroundOnHover:yVe,foregroundOnActive:bVe,foregroundOnFocus:xVe,foregroundOnLargeRecipe:SVe,foregroundOnRestLarge:CVe,foregroundOnHoverLarge:wVe,foregroundOnActiveLarge:TVe,foregroundOnFocusLarge:EVe,foregroundRecipe:DVe,foregroundRest:OVe,foregroundHover:kVe,foregroundActive:AVe,foregroundFocus:jVe}=C9(`warning`,u9);var MVe=/* @__PURE__ */ c({accentFillActive:()=>Oc,accentFillActiveDelta:()=>Ls,accentFillFocus:()=>kc,accentFillFocusDelta:()=>Rs,accentFillHover:()=>Dc,accentFillHoverDelta:()=>Is,accentFillRest:()=>Ec,accentFillRestDelta:()=>Fs,accentForegroundActive:()=>Gc,accentForegroundActiveDelta:()=>Vs,accentForegroundFocus:()=>Kc,accentForegroundFocusDelta:()=>Hs,accentForegroundHover:()=>Wc,accentForegroundHoverDelta:()=>Bs,accentForegroundRest:()=>Uc,accentForegroundRestDelta:()=>zs,accentPalette:()=>mc,baseHeightMultiplier:()=>us,baseLayerLuminance:()=>ds,bodyFont:()=>ls,buyColor:()=>HRe,controlCornerRadius:()=>fs,defaultBuyColor:()=>f9,defaultErrorColor:()=>r9,defaultInfoColor:()=>g9,defaultSecondaryColor:()=>T9,defaultSellColor:()=>m9,defaultSeriousNotifyColor:()=>v9,defaultSuccessColor:()=>o9,defaultTertiaryColor:()=>k9,defaultWarningColor:()=>l9,density:()=>ps,designUnit:()=>z,direction:()=>ms,disabledOpacity:()=>hs,errorColor:()=>i9,errorFillActive:()=>dBe,errorFillActiveDelta:()=>nBe,errorFillFocus:()=>fBe,errorFillFocusDelta:()=>rBe,errorFillHover:()=>uBe,errorFillHoverDelta:()=>tBe,errorFillRecipe:()=>cBe,errorFillRest:()=>lBe,errorFillRestDelta:()=>eBe,errorForegroundActive:()=>EBe,errorForegroundActiveDelta:()=>oBe,errorForegroundFocus:()=>DBe,errorForegroundFocusDelta:()=>sBe,errorForegroundHover:()=>TBe,errorForegroundHoverDelta:()=>aBe,errorForegroundRecipe:()=>CBe,errorForegroundRest:()=>wBe,errorForegroundRestDelta:()=>iBe,errorPalette:()=>$ze,fillColor:()=>Cc,focusStrokeInner:()=>gl,focusStrokeOuter:()=>V,focusStrokeWidth:()=>gs,foregroundOnAccentActive:()=>Pc,foregroundOnAccentActiveLarge:()=>zc,foregroundOnAccentFocus:()=>Fc,foregroundOnAccentFocusLarge:()=>Bc,foregroundOnAccentHover:()=>Nc,foregroundOnAccentHoverLarge:()=>Rc,foregroundOnAccentRest:()=>Mc,foregroundOnAccentRestLarge:()=>Lc,foregroundOnErrorActive:()=>gBe,foregroundOnErrorActiveLarge:()=>xBe,foregroundOnErrorFocus:()=>_Be,foregroundOnErrorFocusLarge:()=>SBe,foregroundOnErrorHover:()=>hBe,foregroundOnErrorHoverLarge:()=>bBe,foregroundOnErrorLargeRecipe:()=>vBe,foregroundOnErrorRecipe:()=>pBe,foregroundOnErrorRest:()=>mBe,foregroundOnErrorRestLarge:()=>yBe,foregroundOnSecondaryActive:()=>fze,foregroundOnSecondaryActiveLarge:()=>_ze,foregroundOnSecondaryFocus:()=>pze,foregroundOnSecondaryFocusLarge:()=>vze,foregroundOnSecondaryHover:()=>dze,foregroundOnSecondaryHoverLarge:()=>gze,foregroundOnSecondaryLargeRecipe:()=>mze,foregroundOnSecondaryRecipe:()=>lze,foregroundOnSecondaryRest:()=>uze,foregroundOnSecondaryRestLarge:()=>hze,foregroundOnSuccessActive:()=>GBe,foregroundOnSuccessActiveLarge:()=>XBe,foregroundOnSuccessFocus:()=>KBe,foregroundOnSuccessFocusLarge:()=>ZBe,foregroundOnSuccessHover:()=>WBe,foregroundOnSuccessHoverLarge:()=>YBe,foregroundOnSuccessLargeRecipe:()=>qBe,foregroundOnSuccessRecipe:()=>HBe,foregroundOnSuccessRest:()=>UBe,foregroundOnSuccessRestLarge:()=>JBe,foregroundOnTertiaryActive:()=>Vze,foregroundOnTertiaryActiveLarge:()=>Kze,foregroundOnTertiaryFocus:()=>Hze,foregroundOnTertiaryFocusLarge:()=>qze,foregroundOnTertiaryHover:()=>Bze,foregroundOnTertiaryHoverLarge:()=>Gze,foregroundOnTertiaryLargeRecipe:()=>Uze,foregroundOnTertiaryRecipe:()=>Rze,foregroundOnTertiaryRest:()=>zze,foregroundOnTertiaryRestLarge:()=>Wze,foregroundOnWarningActive:()=>bVe,foregroundOnWarningActiveLarge:()=>TVe,foregroundOnWarningFocus:()=>xVe,foregroundOnWarningFocusLarge:()=>EVe,foregroundOnWarningHover:()=>yVe,foregroundOnWarningHoverLarge:()=>wVe,foregroundOnWarningLargeRecipe:()=>SVe,foregroundOnWarningRecipe:()=>_Ve,foregroundOnWarningRest:()=>vVe,foregroundOnWarningRestLarge:()=>CVe,infoColor:()=>WRe,neutralFillActive:()=>Xc,neutralFillActiveDelta:()=>Gs,neutralFillFocus:()=>Zc,neutralFillFocusDelta:()=>Ks,neutralFillHover:()=>Yc,neutralFillHoverDelta:()=>Ws,neutralFillInputActive:()=>tl,neutralFillInputActiveDelta:()=>Ys,neutralFillInputFocus:()=>nl,neutralFillInputFocusDelta:()=>Xs,neutralFillInputHover:()=>el,neutralFillInputHoverDelta:()=>Js,neutralFillInputRest:()=>$c,neutralFillInputRestDelta:()=>qs,neutralFillLayerRest:()=>ml,neutralFillLayerRestDelta:()=>ac,neutralFillRest:()=>Jc,neutralFillRestDelta:()=>Us,neutralFillStealthActive:()=>ol,neutralFillStealthActiveDelta:()=>$s,neutralFillStealthFocus:()=>sl,neutralFillStealthFocusDelta:()=>ec,neutralFillStealthHover:()=>al,neutralFillStealthHoverDelta:()=>Qs,neutralFillStealthRest:()=>il,neutralFillStealthRestDelta:()=>Zs,neutralFillStrongActive:()=>dl,neutralFillStrongActiveDelta:()=>rc,neutralFillStrongFocus:()=>fl,neutralFillStrongFocusDelta:()=>ic,neutralFillStrongHover:()=>ul,neutralFillStrongHoverDelta:()=>nc,neutralFillStrongRest:()=>ll,neutralFillStrongRestDelta:()=>tc,neutralForegroundHint:()=>_l,neutralForegroundRest:()=>H,neutralLayer1:()=>_c,neutralLayer2:()=>vc,neutralLayer3:()=>bc,neutralLayer4:()=>Sc,neutralLayerCardContainer:()=>hc,neutralLayerFloating:()=>gc,neutralPalette:()=>fc,neutralStrokeActive:()=>xl,neutralStrokeActiveDelta:()=>cc,neutralStrokeDividerRest:()=>Cl,neutralStrokeDividerRestDelta:()=>uc,neutralStrokeFocus:()=>Sl,neutralStrokeFocusDelta:()=>lc,neutralStrokeHover:()=>bl,neutralStrokeHoverDelta:()=>sc,neutralStrokeRest:()=>yl,neutralStrokeRestDelta:()=>oc,secondaryColor:()=>E9,secondaryFillActive:()=>sze,secondaryFillActiveDelta:()=>D9,secondaryFillFocus:()=>cze,secondaryFillFocusDelta:()=>$Re,secondaryFillHover:()=>oze,secondaryFillHoverDelta:()=>QRe,secondaryFillRecipe:()=>ize,secondaryFillRest:()=>aze,secondaryFillRestDelta:()=>ZRe,secondaryForegroundActive:()=>Sze,secondaryForegroundActiveDelta:()=>nze,secondaryForegroundFocus:()=>Cze,secondaryForegroundFocusDelta:()=>rze,secondaryForegroundHover:()=>xze,secondaryForegroundHoverDelta:()=>tze,secondaryForegroundRecipe:()=>yze,secondaryForegroundRest:()=>bze,secondaryForegroundRestDelta:()=>eze,secondaryPalette:()=>XRe,sellColor:()=>URe,seriousNotifyColor:()=>GRe,strokeWidth:()=>B,successColor:()=>s9,successFillActive:()=>BBe,successFillActiveDelta:()=>jBe,successFillFocus:()=>VBe,successFillFocusDelta:()=>MBe,successFillHover:()=>zBe,successFillHoverDelta:()=>ABe,successFillRecipe:()=>LBe,successFillRest:()=>RBe,successFillRestDelta:()=>kBe,successForegroundActive:()=>tVe,successForegroundActiveDelta:()=>FBe,successForegroundFocus:()=>nVe,successForegroundFocusDelta:()=>IBe,successForegroundHover:()=>eVe,successForegroundHoverDelta:()=>PBe,successForegroundRecipe:()=>QBe,successForegroundRest:()=>$Be,successForegroundRestDelta:()=>NBe,successPalette:()=>OBe,tertiaryColor:()=>A9,tertiaryFillActive:()=>Ize,tertiaryFillActiveDelta:()=>Dze,tertiaryFillFocus:()=>Lze,tertiaryFillFocusDelta:()=>Oze,tertiaryFillHover:()=>Fze,tertiaryFillHoverDelta:()=>Eze,tertiaryFillRecipe:()=>Nze,tertiaryFillRest:()=>Pze,tertiaryFillRestDelta:()=>Tze,tertiaryForegroundActive:()=>Zze,tertiaryForegroundActiveDelta:()=>jze,tertiaryForegroundFocus:()=>Qze,tertiaryForegroundFocusDelta:()=>Mze,tertiaryForegroundHover:()=>Xze,tertiaryForegroundHoverDelta:()=>Aze,tertiaryForegroundRecipe:()=>Jze,tertiaryForegroundRest:()=>Yze,tertiaryForegroundRestDelta:()=>kze,tertiaryPalette:()=>wze,typeRampBaseFontSize:()=>_s,typeRampBaseLineHeight:()=>vs,typeRampMinus1FontSize:()=>ys,typeRampMinus1LineHeight:()=>bs,typeRampMinus2FontSize:()=>xs,typeRampMinus2LineHeight:()=>Ss,typeRampPlus1FontSize:()=>Cs,typeRampPlus1LineHeight:()=>ws,typeRampPlus2FontSize:()=>Ts,typeRampPlus2LineHeight:()=>Es,typeRampPlus3FontSize:()=>Ds,typeRampPlus3LineHeight:()=>Os,typeRampPlus4FontSize:()=>ks,typeRampPlus4LineHeight:()=>As,typeRampPlus5FontSize:()=>js,typeRampPlus5LineHeight:()=>Ms,typeRampPlus6FontSize:()=>Ns,typeRampPlus6LineHeight:()=>Ps,warningColor:()=>u9,warningFillActive:()=>hVe,warningFillActiveDelta:()=>oVe,warningFillFocus:()=>gVe,warningFillFocusDelta:()=>sVe,warningFillHover:()=>mVe,warningFillHoverDelta:()=>aVe,warningFillRecipe:()=>fVe,warningFillRest:()=>pVe,warningFillRestDelta:()=>iVe,warningForegroundActive:()=>AVe,warningForegroundActiveDelta:()=>uVe,warningForegroundFocus:()=>jVe,warningForegroundFocusDelta:()=>dVe,warningForegroundHover:()=>kVe,warningForegroundHoverDelta:()=>lVe,warningForegroundRecipe:()=>DVe,warningForegroundRest:()=>OVe,warningForegroundRestDelta:()=>cVe,warningPalette:()=>rVe});let j9=yT(e9.primary),M9=yT(e9.neutral),N9=yT(e9.green),P9=yT(e9.tertiary),F9=yT(e9.error),I9=yT(e9.success),L9=yT(e9.warning),R9=ss.DarkMode,NVe=Pn.ltr,z9=`"Segoe UI", Arial, Helvetica, sans-serif`,B9=`14px`,V9=`20px`,PVe={design_tokens:{color:{accent:{$value:j9.source.toColorString(),$type:`color`},neutral:{$value:M9.source.toColorString(),$type:`color`},secondary:{$value:N9.source.toColorString(),$type:`color`},tertiary:{$value:P9.source.toColorString(),$type:`color`},error:{$value:F9.source.toColorString(),$type:`color`},success:{$value:I9.source.toColorString(),$type:`color`},warning:{$value:L9.source.toColorString(),$type:`color`}},fontFamily:{bodyFont:{$value:z9,$type:`fontFamily`}},typography:{baseFontSize:{$value:B9,$type:`dimension`},baseLineHeight:{$value:V9,$type:`dimension`}},mode:{luminance:{$value:R9,$type:`number`}},style:{density:{$value:0,$type:`number`},baseHeightMultiplier:{$value:10,$type:`number`},borderRadius:{$value:4,$type:`number`},strokeWidth:{$value:1,$type:`number`}},space:{designUnit:{$value:4,$type:`number`}}}};var FVe=/* @__PURE__ */ c({accentFillActiveDeltaValue:()=>-5,accentFillFocusDeltaValue:()=>0,accentFillHoverDeltaValue:()=>4,accentFillRestDeltaValue:()=>0,accentForegroundActiveDeltaValue:()=>-4,accentForegroundFocusDeltaValue:()=>0,accentForegroundHoverDeltaValue:()=>6,accentForegroundRestDeltaValue:()=>0,accentPaletteValue:()=>j9,baseHeightMultiplierValue:()=>10,baseLayerLuminanceValue:()=>R9,bodyFontValue:()=>z9,controlCornerRadiusValue:()=>4,densityValue:()=>0,designTokens:()=>PVe,designUnitValue:()=>4,directionValue:()=>NVe,disabledOpacityValue:()=>.3,errorPaletteValue:()=>F9,focusStrokeWidthValue:()=>2,neutralFillActiveDeltaValue:()=>5,neutralFillFocusDeltaValue:()=>0,neutralFillHoverDeltaValue:()=>10,neutralFillInputActiveDeltaValue:()=>0,neutralFillInputFocusDeltaValue:()=>10,neutralFillInputHoverDeltaValue:()=>5,neutralFillInputRestDeltaValue:()=>0,neutralFillLayerRestDeltaValue:()=>3,neutralFillRestDeltaValue:()=>7,neutralFillStealthActiveDeltaValue:()=>3,neutralFillStealthFocusDeltaValue:()=>0,neutralFillStealthHoverDeltaValue:()=>5,neutralFillStealthRestDeltaValue:()=>0,neutralFillStrongActiveDeltaValue:()=>-5,neutralFillStrongFocusDeltaValue:()=>0,neutralFillStrongHoverDeltaValue:()=>8,neutralFillStrongRestDeltaValue:()=>0,neutralPaletteValue:()=>M9,neutralStrokeActiveDeltaValue:()=>16,neutralStrokeDividerRestDeltaValue:()=>8,neutralStrokeFocusDeltaValue:()=>25,neutralStrokeHoverDeltaValue:()=>40,neutralStrokeRestDeltaValue:()=>25,prefix:()=>`rapid`,secondaryPaletteValue:()=>N9,strokeWidthValue:()=>1,successPaletteValue:()=>I9,tertiaryPaletteValue:()=>P9,typeRampBaseFontSizeValue:()=>B9,typeRampBaseLineHeightValue:()=>V9,typeRampMinus1FontSizeValue:()=>`13px`,typeRampMinus1LineHeightValue:()=>`19px`,typeRampMinus2FontSizeValue:()=>`12px`,typeRampMinus2LineHeightValue:()=>`18px`,typeRampPlus1FontSizeValue:()=>`15px`,typeRampPlus1LineHeightValue:()=>`21px`,typeRampPlus2FontSizeValue:()=>`16px`,typeRampPlus2LineHeightValue:()=>`22px`,typeRampPlus3FontSizeValue:()=>`17px`,typeRampPlus3LineHeightValue:()=>`23px`,typeRampPlus4FontSizeValue:()=>`18px`,typeRampPlus4LineHeightValue:()=>`24px`,typeRampPlus5FontSizeValue:()=>`19px`,typeRampPlus5LineHeightValue:()=>`25px`,typeRampPlus6FontSizeValue:()=>`20px`,typeRampPlus6LineHeightValue:()=>`26px`,warningPaletteValue:()=>L9}),H9=class extends K{constructor(){super(),this.luminancePersistence=new mT(this),gT(MVe,FVe,this)}connectedCallback(){super.connectedCallback(),this.luminancePersistence.connect(this.persistLuminance)}disconnectedCallback(){super.disconnectedCallback(),this.luminancePersistence.disconnect()}persistLuminanceChanged(){var e;(e=this.luminancePersistence)==null||e.setPersist(this.persistLuminance)}};q([D({attribute:`persist-luminance`,mode:`boolean`})],H9.prototype,`persistLuminance`,void 0),H9.compose({baseName:`design-system-provider`,template:T`<slot></slot>`});let U9=O` ${$1} :host{font-family: var(--body-font);font-size: var(--type-ramp-base-font-size);line-height: var(--type-ramp-base-line-height)}dialog{position: var(--dialog-position, fixed);top: 0;bottom: 0;border-radius: var(--card-corner-radius, calc(var(--control-corner-radius) * 1px));border: var(--card-border, calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest));text-align: left;line-height: normal;box-shadow: 0 2px 15px 0 rgb(0 0 0 / 35%);background-color: var(--dialog-background, var(--neutral-layer-1))}.top{display: flex;align-items: center;justify-content: space-between;color: var(--neutral-foreground-rest);margin-bottom: calc(var(--design-unit) * 2px);font-weight: 500}.bottom{display: flex;flex-wrap: wrap;justify-content: flex-end;color: var(--neutral-foreground-rest);gap: calc(var(--design-unit) * 2px)}:host slot:first-of-type{color: ${H}}::slotted(rapid-button){margin-top: calc(var(--design-unit) * 4px - 1px)}slot[name='top']::slotted(*){margin: 0;font-size: var(--type-ramp-base-font-size);color: var(--neutral-foreground-hint);font-weight: 700}.content-wrapper{min-width: var(--dialog-min-width);min-height: var(--dialog-min-height);height: fit-content;width: fit-content;max-width: var(--dialog-max-width);max-height: var(--dialog-max-height);display: flex;flex-direction: column;justify-content: space-between;align-items: stretch}.close-icon:hover svg{background-color: color-mix(in srgb, var(--neutral-foreground-rest), transparent 95%)}.close-icon svg g path{fill: color-mix(in srgb, var(--neutral-foreground-rest), transparent 50%)}.close-icon:hover svg g path{fill: var(--neutral-foreground-rest)}.close-icon:active svg{background-color: var(--neutral-layer-4)}.close-icon:active svg g path{fill: color-mix(in srgb, var(--neutral-foreground-rest), transparent 67%)}.header-controls{rapid-button{--base-height-multiplier: 8}rapid-button::part(control){padding: 0 calc((8 + var(--design-unit) * 1 * var(--density)) * 1px)}}`,IVe=h0,LVe=e0,RVe=m0;(class extends _0{}).compose(Object.assign({baseName:`dialog`,shadowOptions:RVe,styles:U9,template:LVe},IVe)),class extends b0{}.compose(Object.assign({baseName:`disclosure`,template:(e,t)=>v0(e,t),styles:(e,t)=>O` ${y0(e,t)} :host{font-size: var(--type-ramp-base-font-size);font-family: var(--body-font);line-height: var(--type-ramp-base-line-height);color: var(--neutral-foreground-rest)}:host([appearance='accent']) .invoker{padding: calc((10 + (var(--design-unit) * 2 * var(--density))) * 1px)}#disclosure-content{padding: 0 calc(var(--design-unit) * 4px) calc(var(--design-unit) * 4px);text-align: center}`,shadowOptions:m0},x0)),class extends w0{}.compose(Object.assign({baseName:`divider`,template:(e,t)=>S0(e,t),styles:(e,t)=>O` ${C0(e,t)}`,shadowOptions:void 0},T0)),class extends k0{}.compose({baseName:`dropdown-menu`,styles:(e,t)=>O` ${E0(`rapid`,e,t)} .actions-menu{border-radius: calc(var(--control-corner-radius) * 1px);border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);gap: 0;margin: calc(var(--design-unit) * 1px) 0}rapid-menu{margin: 0 0 calc(var(--design-unit) * 1px) calc(var(--design-unit) * -2px);border-radius: calc(var(--control-corner-radius) * 1px);border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest)}`,template:O0});let zVe=O` ${A0}`;(class extends I0{}).compose({baseName:`environment-indicator`,styles:zVe,template:j0});function W9(e,...t){let n=``;return e.forEach((e,r)=>{n+=e,r<t.length&&(n+=t[r])}),n}let G9={number:`rapid-number-field`,text:`rapid-text-field`,date:`rapid-text-field`,datetimeLocal:`rapid-text-field`,checkbox:`rapid-checkbox`,button:`rapid-button`,select:`rapid-select`,option:`rapid-option`,optgroup:`rapid-optgroup`,radio:{input:`rapid-radio`,group:`rapid-radio-group`}},K9=W9` rapid-select, rapid-text-field, rapid-number-field{min-width: 180px}rapid-button.btn{padding: 0}rapid-button.btn-success{background-color: var(--accent-fill-active);border-color: var(--accent-fill-active)}rapid-button.btn-danger{background-color: var(--error-color);border-color: var(--error-border-color)}rapid-select::part(listbox){max-height: 15vh}`,q9=W9` border: unset;border: 1px solid var(--focus-stroke-outer);padding: calc(var(--design-unit) * 2.5px);border-radius: 10px;margin: calc(var(--design-unit) * 1px);`,J9={value:W9` ${K9} rapid-number-field, rapid-text-field{margin-bottom: 0}rapid-number-field::part(label){display: none}p.validation-msg{color: var(--neutral-foreground-rest)}`,rule:W9` ${K9} div.rule-container{${q9}}div.rule-container.error{border-color: var(--error-border-color)}`,operator:W9` ${K9} rapid-select{min-width: 350px}`,field:W9` ${K9} rapid-select{min-width: 350px}`,group:W9` ${K9} div.rules-group-container{${q9}}p.group-combinator-link{padding-left: calc(var(--design-unit) * 2.5px);color: var(--neutral-foreground-rest)}`},Y9=class extends o7{constructor(){super(...arguments),this.styles={customElements:G9,customStyles:J9}}};q([C],Y9.prototype,`styles`,void 0),Y9=q([$e({name:`rapid-expression-builder`,styles:x7.styles,template:x7.template})],Y9);let X9=class extends D7{constructor(){super(...arguments),this.styles={customElements:G9,customStyles:J9}}};q([C],X9.prototype,`styles`,void 0),X9=q([$e({name:`rapid-rule-expression-builder`,styles:x7.styles,template:x7.template})],X9);let Z9=class extends j7{constructor(){super(...arguments),this.styles={customElements:G9,customStyles:J9}}};q([C],Z9.prototype,`styles`,void 0),Z9=q([$e({name:`rapid-value-expression-builder`,styles:x7.styles,template:x7.template})],Z9);let BVe=O` ${Q0} ::-webkit-scrollbar{width: calc(var(--design-unit) * 3px)}::-webkit-scrollbar-track{background: rgb(31 33 38)}::-webkit-scrollbar-thumb{width: 8px;border-radius: 10px;box-shadow: inset 0 0 6px rgba(0 0 0 / 30%);background-color: var(--neutral-fill-rest);border: calc(var(--stroke-width) * 3px) solid var(--neutral-layer-4)}:host::part(select-file-button), :host::part(upload-file-button){margin: 0 0 calc(var(--design-unit) * 2px) calc(var(--design-unit) * 2px)}`,VVe=T` ${$0(`rapid`)} `,HVe=t2;(class extends e2{}).compose(Object.assign({baseName:`file-upload`,shadowOptions:void 0,styles:BVe,template:VVe},HVe));let UVe=(e,t)=>O` ${c2(e,t)} .toggle, .toggle-collapsed{background: var(--neutral-layer-4);color: var(--neutral-foreground-hint)}.toggle{border-top: calc(var(--stroke-width) * 2px) solid}.toggle:hover, .toggle-collapsed:hover{color: var(--accent-foreground-rest)}.filter-bar{background: var(--neutral-layer-3)}`,WVe=T` ${l2(`rapid`)} `;(class extends u2{}).compose({baseName:`filter-bar`,template:WVe,styles:UVe});let GVe=(e,t)=>O` ${n2} .filter-wrapper{border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest)}.close-icon{border: calc(var(--stroke-width) * 1px) solid transparent}.close-icon:hover{border-color: var(--error-color);background: color-mix(in srgb, var(--error-color), transparent 75%)}.close-icon:hover svg path{fill: var(--error-color)}rapid-select{margin-bottom: calc(var(--design-unit) * 2px)}.flex-row rapid-text-field, .flex-row rapid-select{flex: 1}`,KVe=T` ${a2(`rapid`)} `;(class extends s2{}).compose({baseName:`filter`,template:KVe,styles:GVe}),class extends h2{}.compose(Object.assign({baseName:`flipper`,template:(e,t)=>p2(e,t),styles:(e,t)=>O` ${m2(e,t)} :host{color: var(--neutral-foreground-rest)}:host(:hover){color: var(--neutral-foreground-rest)}:host::before{background: color-mix(in srgb, var(--accent-fill-rest), transparent 50%);border: calc(var(--stroke-width) * 1px) solid var(--accent-fill-rest);color: var(--neutral-foreground-rest)}:host(:hover)::before{background: var(--accent-fill-rest);color: var(--neutral-foreground-rest)}`,shadowOptions:void 0},g2));let qVe=O` ${_2} div.flyout{background-color: var(--neutral-layer-1);border-color: var(--neutral-stroke-rest);color: var(--neutral-foreground-rest);padding: calc(var(--design-unit) * 4px)}div.background{padding: calc(var(--design-unit) * 4px) 0}:host{font-size: var(--type-ramp-base-font-size);font-family: var(--body-font);line-height: var(--type-ramp-base-line-height)}:host([position='left']) div.flyout{border-right-style: solid;border-right-width: calc(var(--stroke-width) * 1px)}:host([position='right']) div.flyout{border-left-style: solid;border-left-width: calc(var(--stroke-width) * 1px)}div.exit{cursor: pointer;width: calc((var(--base-height-multiplier) * (var(--design-unit) - 1)) * 1px);height: calc((var(--base-height-multiplier) * (var(--design-unit) - 1)) * 1px);display: flex;justify-content: center;align-items: center}div.content, div.footer{padding: 0 0 calc(var(--design-unit) * 2px)}div.exit:hover{background-color: var(--neutral-fill-hover);border-radius: calc(var(--stroke-width) * 3px)}`,JVe=T` ${v2(`rapid`)} `,YVe=b2;(class extends y2{}).compose(Object.assign({baseName:`flyout`,shadowOptions:void 0,styles:qVe,template:JVe},YVe));let XVe=(e,t)=>O` ${E2(e,t)}`,ZVe=(e,t)=>T2(e,t);var QVe=class extends D2{};let $Ve={nextFlipper:T`<rapid-flipper @click="${e=>e.scrollToNext()}" aria-hidden="${e=>e.flippersHiddenFromAT}"></rapid-flipper>`,previousFlipper:T`<rapid-flipper @click="${e=>e.scrollToPrevious()}" direction="previous" aria-hidden="${e=>e.flippersHiddenFromAT}"></rapid-flipper>`};QVe.compose(Object.assign({baseName:`horizontal-scroll`,template:ZVe,styles:XVe,shadowOptions:O2},$Ve));let eHe=(e,t)=>O` ${k2(e,t)}`,tHe=T` ${A2(`rapid`)} `;var nHe=class extends P2{};let rHe=M2,iHe=j2;nHe.compose(Object.assign({baseName:`icon`,template:tHe,styles:eHe,shadowOptions:iHe},rHe)),class extends V2{}.compose(Object.assign({baseName:`option`,template:(e,t)=>z2(e,t),styles:(e,t)=>O` ${B2(e,t)} :host{border-radius: 0;padding: 0 calc(var(--design-unit) * 4px);height: calc( (((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) - 4) * 1px );border-bottom: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest)}:host(.selected), :host(:not([disabled])[aria-selected='true']:active), :host(:not([disabled])[aria-selected='true']:hover){background: var(--neutral-layer-2);color: var(--accent-fill-rest);font-weight: 500}`,shadowOptions:void 0},H2)),class extends L2{}.compose(Object.assign({baseName:`listbox`,template:(e,t)=>F2(e,t),styles:(e,t)=>O` ${I2(e,t)} :host{padding: 0;max-width: 300px;/** if removed max-width will be fit-content */}::slotted(*:last-child){border-bottom: none}`,shadowOptions:void 0},R2)),class extends Y2{}.compose(Object.assign({baseName:`menu-item`,template:(e,t)=>q2(e,t),styles:(e,t)=>O` ${J2(e,t)} :host{margin: 0;--control-corner-radius: 0;background: var(--neutral-fill-stealth-rest);border-radius: calc(var(--control-corner-radius) * 1px)}:host(:hover){background: color-mix(in srgb, ${al}, transparent 15%);border: calc(var(--focus-stroke-width) * 1px) solid color-mix(in srgb, ${al}, transparent 15%)}:host(:focus){background: var(--neutral-fill-stealth-hover)}:host(.indent-0){border-bottom: calc(var(--stroke-width) * 1px) solid var(--neutral-fill-stealth-hover)}/* UX team wants border: solid 1px #2E3339;background: #2E3339 */ /* tokens being used by fast background: ${al} color: ${H} */`,shadowOptions:void 0},X2)),class extends G2{}.compose(Object.assign({baseName:`menu`,template:(e,t)=>U2(e,t),styles:(e,t)=>O` ${W2(e,t)} :host{border: calc(var(--focus-stroke-width) * 1px) solid color-mix(in srgb, ${al}, transparent 15%);padding: 0}`,shadowOptions:void 0},K2));let aHe=O` ${U9}`,oHe=$2,sHe=Z2,cHe=Q2;(class extends e4{}).compose(Object.assign({baseName:`modal`,shadowOptions:cHe,styles:aHe,template:sHe},oHe));let lHe=O` ${ww} .root{min-width: 0}.control{height: calc( (((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) - 4) * 1px );min-height: 0;outline: none;border-style: solid;border-width: var(--neutral-stroke-width-rest, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-rest, var(--focus-stroke-outer));background-color: var(--neutral-fill-input-rest);color: var(--neutral-foreground-rest);font-size: var(--type-ramp-base-font-size);line-height: var(--type-ramp-base-line-height);font-family: var(--body-font);box-sizing: border-box}:host(:focus-within:not([disabled])) .control{outline: none;border-style: solid;border-width: var(--neutral-stroke-width-focus, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-focus, var(--accent-fill-rest));background-color: var(--neutral-fill-input-focus)}.control:hover:not(:focus):not([disabled]){outline: none;border-style: solid;border-width: var(--neutral-stroke-width-hover, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-hover, var(--neutral-foreground-rest));background: var(--neutral-fill-input-hover)}#display-field{min-height: unset;padding: 0 calc((var(--design-unit) - 2) * 1px) 0 calc(var(--design-unit) * 2px);font-family: var(--body-font), sans-serif;font-size: var(--type-ramp-base-font-size);background-color: transparent}#display-field:focus{outline: none;background: unset}#display-field:hover:not(:focus):not([disabled]){outline: none}.indicator{width: calc((var(--base-height-multiplier) * (var(--design-unit) - 1)) * 1px);height: calc((var(--base-height-multiplier) * (var(--design-unit) - 1)) * 1px);left: calc( 100% - ((var(--base-height-multiplier) * (var(--design-unit) - 1)) + (var(--design-unit) - 2)) * 1px );background-color: var(--dropdown-indicator-background, var(--neutral-fill-rest));border-radius: calc(var(--control-corner-radius) * 1px);display: flex;justify-content: center;align-items: center}#arrow-icon{width: calc(var(--design-unit) * 3.5px);height: calc(var(--design-unit) * 3.5px);fill: var(--neutral-foreground-rest)}.label{color: var(--neutral-foreground-hint)}.options{border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);overflow-x: hidden}rapid-checkbox{border-bottom: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);padding: calc((var(--design-unit) + 1) * 1px) 0 calc((var(--design-unit) + 1) * 1px) calc((var(--design-unit) + 1) * 1px);margin: 0}rapid-checkbox:hover:not([disabled]){background: var(--neutral-layer-4)}rapid-checkbox::part(label){overflow-x: hidden;text-overflow: ellipsis;white-space: nowrap}rapid-checkbox[disabled]{cursor: not-allowed}`,uHe=T` ${Ow(`rapid`)} `;var dHe=class extends Aw{};let fHe=kw;dHe.compose(Object.assign({baseName:`multiselect`,template:uHe,styles:lHe,shadowOptions:void 0},fHe)),class extends N7{}.compose({baseName:`notification-listener`,template:M7,shadowOptions:{mode:`open`,delegatesFocus:!0}});let pHe=(e,t)=>O` :host{flex: 1 1 auto;box-sizing: border-box}:host([disabled]){opacity: var(--disabled-opacity);cursor: not-allowed}:host .control{height: 100%;width: 100%;border: none;background-color: transparent;padding: 0 calc(var(--design-unit) * 2px);color: var(--neutral-foreground-rest);font-size: var(--type-ramp-base-font-size);font-family: var(--body-font)}:host .root{display: flex;box-sizing: border-box;position: relative;align-items: center;border-radius: calc(var(--control-corner-radius) * 1px);border-style: solid;border-width: var(--neutral-stroke-width-rest, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-rest, var(--focus-stroke-outer));background-color: var(--neutral-fill-input-rest);height: calc( (((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) - 4) * 1px )}:host(:hover:not([disabled])) .root{border-style: solid;border-width: var(--neutral-stroke-width-hover, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-hover, var(--neutral-foreground-rest));background: var(--neutral-fill-input-hover)}:host(:focus-within:not([disabled])) .root{border-style: solid;border-width: var(--neutral-stroke-width-focus, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-focus, var(--accent-fill-rest));background-color: var(--neutral-fill-input-focus);box-shadow: none}.label{display: block;color: var(--neutral-foreground-hint);font-weight: 700;margin: calc(var(--design-unit) * 2px) 0;font-family: var(--body-font);font-size: var(--type-ramp-base-font-size);line-height: var(--type-ramp-base-line-height)}.label-hidden{margin: 0}.controls{position: absolute;right: 3px;width: calc((var(--base-height-multiplier) * (var(--design-unit) - 1)) * 1px);height: calc((var(--base-height-multiplier) * (var(--design-unit) - 1)) * 1px);background-color: var(--neutral-fill-rest);border-radius: calc(var(--control-corner-radius) * 1px);display: flex;justify-content: center;align-items: center;flex-direction: column;cursor: pointer}.step-down, .step-up{width: 1em;height: 1em;margin: -2px}.step-up-glyph, .step-down-glyph{fill: var(--neutral-foreground-hint)}.control:focus-visible{outline: none}:host .control-field .control{width: 100%}${X0}`;var mHe=class extends _4{};let hHe=y4,gHe=t4,_He=v4;mHe.compose(Object.assign({baseName:`number-field`,template:gHe,styles:pHe,shadowOptions:_He},hHe)),class extends S4{}.compose({baseName:`optgroup`,template:(e,t)=>x4(e,t),styles:(e,t)=>O` ${b4(e,t)}`}),class extends O4{}.compose(Object.assign({baseName:`system-health-overlay`,template:k4,styles:A4,shadowOptions:void 0},j4));let vHe=O` ${M4} :host{--pill-fill: ${Jc};--pill-fill-hover: ${Yc};--pill-foreground: ${H}}`,yHe=N4;(class extends F4{}).compose(Object.assign({baseName:`pill`,template:yHe,styles:vHe,shadowOptions:void 0},P4)),class extends F3{}.compose(Object.assign({baseName:`progress-ring`,template:(e,t)=>N3(e,t),styles:(e,t)=>O` ${P3(e,t)}`,shadowOptions:void 0},I3)),class extends T4{}.compose(Object.assign({baseName:`progress`,template:(e,t)=>C4(e,t),styles:(e,t)=>O` ${w4(e,t)}`,shadowOptions:void 0},E4)),class extends U3{}.compose(Object.assign({baseName:`radio-group`,template:(e,t)=>V3(e,t),styles:(e,t)=>O` ${H3(e,t)}`,shadowOptions:void 0},W3)),class extends z3{}.compose(Object.assign({baseName:`radio`,template:(e,t)=>L3(e,t),styles:(e,t)=>O` ${R3(e,t)} :host{margin: 0}:host .control{background: transparent}:host([aria-checked='true']) .control{background: transparent;border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest)}:host .label{padding-inline-start: calc(var(--design-unit) * 2px)}:host(:not([disabled])) .control:hover{background: transparent}:host([aria-checked='true']:not([disabled])) .control:hover{background: transparent;border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-hover)}.checked-indicator, :host([aria-checked='true']:not([disabled])) .control:hover .checked-indicator{background: var(--accent-fill-rest)}`,shadowOptions:void 0},B3));let Q9=class extends z_.from(Qe){connectedCallback(){super.connectedCallback(),x.queueUpdate(()=>J(this,void 0,void 0,function*(){this.$router.config=this.config}))}};Q9=q([$e({name:`rapid-router`})],Q9);let bHe=O` ${r6} :host{font-family: var(--body-font)}`,xHe=T` ${m6(`rapid`)} `;(class extends h6{}).compose(Object.assign({baseName:`scheduler-cron-builder`,template:xHe,styles:bHe,shadowOptions:void 0},g6));let SHe=O` ${_6} :host{font-family: var(--body-font)}`,CHe=T` ${v6(`rapid`)} `;(class extends y6{}).compose(Object.assign({baseName:`scheduler-timezone`,template:CHe,styles:SHe,shadowOptions:void 0},b6));let wHe=O` ${G3} :host{font-family: var(--body-font)}`,THe=T` ${K3(`rapid`)} `;(class extends q3{}).compose(Object.assign({baseName:`scheduler`,template:THe,styles:wHe,shadowOptions:void 0},J3)),class extends D6{}.compose(Object.assign({baseName:`search-bar-combobox`,template:(e,t)=>E6(e,t),styles:(e,t)=>O` ${T6(e,t)} :host{border-style: solid;border-width: var(--neutral-stroke-width-rest, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-rest, var(--neutral-stroke-rest));background-color: var(--neutral-fill-input-rest);height: calc( (((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) - 4) * 1px )}:host(:focus-within:not([disabled])){border-style: solid;border-width: var(--neutral-stroke-width-focus, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-focus, var(--accent-fill-rest));background-color: var(--neutral-fill-input-focus)}:host(:hover:not([disabled]):not([open])){border-style: solid;border-width: var(--neutral-stroke-width-hover, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-hover, var(--neutral-foreground-rest));background: var(--neutral-fill-input-hover)}:host([open][position='below']) .listbox{padding: 0;margin-top: calc(${z} * 1px);border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);border-radius: calc(var(--control-corner-radius) * 1px)}:host .listbox ::slotted(*:last-child){border-bottom: none}`,shadowOptions:O6},k6));let EHe=O` ${x6}`,DHe=T` ${S6(`rapid`)} `;(class extends C6{}).compose(Object.assign({baseName:`search-bar`,template:DHe,styles:EHe,shadowOptions:void 0},w6)),class extends I6{}.compose(Object.assign({baseName:`section-navigator`,template:j6,styles:(e,t)=>A6,shadowOptions:L6},R6)),class extends V6{}.compose(Object.assign({baseName:`segmented-control`,template:(e,t)=>z6(e,t),styles:(e,t)=>O` ${B6(e,t)} :host{font-family: var(--body-font);margin: 0}:host ::slotted(*){transition: color 0.4s ease 0s}:host ::slotted(label){color: var(--neutral-foreground-rest)}:host ::slotted(rapid-segmented-item:first-of-type){border-radius: calc(var(--control-corner-radius) * 1px) 0 0 calc(var(--control-corner-radius) * 1px);border-right-width: 0}:host ::slotted(rapid-segmented-item:last-of-type){border-radius: 0 calc(var(--control-corner-radius) * 1px) calc(var(--control-corner-radius) * 1px) 0;border-left-width: 0}:host ::slotted(rapid-segmented-item:only-of-type){border-radius: calc(var(--control-corner-radius) * 1px);border-left-width: 1px;border-right-width: 1px}:host ::slotted(*[aria-checked='true']){background: var(--neutral-fill-rest);box-shadow: none;color: var(--neutral-foreground-rest)}:host([appearance='primary']) ::slotted(*[aria-checked='true']){background: var(--accent-fill-rest);border-color: transparent;box-shadow: none;color: var(--foreground-on-accent-rest)}`,shadowOptions:void 0},{})),class extends z3{}.compose(Object.assign({baseName:`segmented-item`,template:(e,t)=>H6(e,t),styles:(e,t)=>O` ${U6(e,t)} :host{color: var(--neutral-fill-strong-rest);font-size: var(--type-ramp-minus-2-font-size);font-weight: 500;border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);box-sizing: border-box;height: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit) - 4) * 1px);padding: 0 calc((16 + var(--design-unit) * 2 * var(--density)) * 1px);margin: 0}:host([aria-checked='true']){color: color-mix(in srgb, white, transparent 10%)}`,shadowOptions:void 0},{})),class extends K6{}.compose(Object.assign({baseName:`select`,template:(e,t)=>W6(e,t),styles:(e,t)=>O` ${G6(e,t)} :host{border-radius: calc(var(--control-corner-radius) * 1px);border-style: solid;border-width: var(--neutral-stroke-width-rest, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-rest, var(--focus-stroke-outer));background-color: var(--neutral-fill-input-rest);height: calc( (((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) - 4) * 1px )}:host(:focus-within:not([disabled])){border-style: solid;border-width: var(--neutral-stroke-width-focus, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-focus, var(--accent-fill-rest));background-color: var(--neutral-fill-input-focus)}:host(:hover:not([disabled]):not(.open)){border-style: solid;border-width: var(--neutral-stroke-width-hover, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-hover, var(--neutral-foreground-rest));background: var(--neutral-fill-input-hover)}:host([open][position='below']) .listbox{padding: 0;margin-top: calc(${z} * 1px);border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);border-radius: calc(var(--control-corner-radius) * 1px)}.control{padding: 0 calc((var(--design-unit) - 2) * 1px) 0 calc(var(--design-unit) * 2px)}:host(:not([disabled])) .control:active{background: none}.indicator{width: calc((var(--base-height-multiplier) * (var(--design-unit) - 1)) * 1px);height: calc((var(--base-height-multiplier) * (var(--design-unit) - 1)) * 1px);background-color: var(--dropdown-indicator-background, var(--neutral-fill-rest));border-radius: calc(var(--control-corner-radius) * 1px);display: flex;justify-content: center;align-items: center}.select-indicator{width: calc(var(--design-unit) * 3.5px);height: calc(var(--design-unit) * 3.5px);transition: all 0.35s;min-width: unset;min-height: unset}.selected-value{display: flex;align-items: center;height: calc(100% - (var(--design-unit) * 1px));padding: 0;margin: 0}:host(:focus-within:not([disabled])) .indicator{background-color: transparent}:host([open]) .select-indicator{transition: all 0.35s;transform: rotate(180deg)}::slotted([role='option']){margin: 0}`,shadowOptions:void 0},q6)),class extends X6{}.compose(Object.assign({baseName:`skeleton`,template:(e,t)=>J6(e,t),styles:(e,t)=>O` ${Y6(e,t)} :host{--skeleton-fill: var( --neutral-fill-stealth-rest );/** value in ux doc rgba(242 242 242 / 0.1) */}`,shadowOptions:void 0},Z6)),class extends i8{}.compose(Object.assign({baseName:`slider-label`,template:(e,t)=>n8(e,t),styles:(e,t)=>O` ${r8(e,t)} .label{padding: calc((var(--design-unit) - 1) * 2px) calc(var(--design-unit) * 2px);border-radius: calc(var(--control-corner-radius) * 1px);border: calc(var(--stroke-width) * 1px) solid var(--neutral-layer-4);background-color: var(--neutral-fill-strong-hover);color: var(--neutral-layer-4);text-align: center;font-size: var(--type-ramp-minus-1-font-size, 12px)}`,shadowOptions:void 0},a8)),class extends e8{}.compose(Object.assign({baseName:`slider`,template:(e,t)=>Q6(e,t),styles:(e,t)=>O` ${$6(e,t)} .thumb-cursor{background: var(--accent-fill-rest);border-radius: calc(var(--control-corner-radius) * 2px)}.thumb-cursor:hover, .thumb-cursor:focus, .thumb-cursor:active{background: var(--accent-fill-rest);border-radius: transparent}:host(:focus-visible) .thumb-cursor{box-shadow: 0 0 0 0}.thumb-cursor:hover::after, .thumb-cursor:focus::after, .thumb-cursor:active::after{content: '';height: calc(var(--thumb-size) * 2px);width: calc(var(--thumb-size) * 2px);border-radius: calc(var(--control-corner-radius) * 4px);position: absolute;top: 50%;left: 50%;transform: translate(-50%, -50%);z-index: -1}.thumb-cursor:hover::after{background-color: color-mix(in srgb, ${Ec}, transparent 90%)}.thumb-cursor:focus::after{background-color: color-mix(in srgb, ${Ec}, transparent 80%)}.thumb-cursor:active::after{background-color: color-mix(in srgb, ${Ec}, transparent 70%)}.track{background-color: var(--neutral-fill-rest)}:host([orientation='horizontal']) .track .track-progress{background-color: var(--neutral-stroke-rest);height: calc((var(--track-width) + 2) * 1px) !important}:host([orientation='vertical']) .track .track-progress{background-color: var(--neutral-stroke-rest);width: calc((var(--track-width) + 2) * 1px) !important}`,shadowOptions:void 0},t8));let OHe=O` ${l8} .snackbar{border: calc(var(--stroke-width) * 1px) solid var(--neutral-layer-2);background-color: var(--neutral-layer-1);padding: calc((var(--design-unit) - 2) * 1px) calc(var(--design-unit) * 4px)}:host([type='error']) .snackbar::after{background-color: var(--error-color)}.content{font-family: var(--body-font);font-size: var(--type-ramp-minus-2-font-size);color: var(--neutral-foreground-rest)}.action{gap: calc(var(--design-unit) * 2px)}`,kHe=T` ${u8(`rapid`)} `,AHe=d8;(class extends f8{}).compose({baseName:`snackbar`,shadowOptions:AHe,styles:OHe,template:kHe}),class extends h8{}.compose({baseName:`stacking-icons`,template:m8,styles:(e,t)=>O` ${p8(e,t)}`}),class extends x8{}.compose({baseName:`status-pill`,template:_8,styles:g8}),class extends O8{}.compose(Object.assign({baseName:`stepper-tab-panel`,template:(e,t)=>D8(e,t),shadowOptions:void 0},k8));let jHe=(e,t)=>O` ${w8(e,t)} rapid-tree-item{--design-unit: 2.5;--neutral-fill-stealth-rest: var(--neutral-layer-3);--neutral-fill-stealth-hover: var(--fill-color);--neutral-fill-rest: var(--fill-color);--base-height-multiplier: 14.5;border-bottom: calc(var(--stroke-width) * 1px) solid var(--fill-color)}.completed-icon{color: var(--success-color)}.tree-item::part(positioning-region)::before{width: var(--tree-item-nested-width)}.stepper-icon{margin-right: calc(var(--design-unit) * 2px)}.error-icon{color: var(--error-color)}.step-number{font-size: var(--type-ramp-minus-1-font-size);border: calc(var(--stroke-width) * 1px) solid var(--neutral-fill-input-rest)}.step-title{font-size: var(--type-ramp-base-font-size)}.angle-icon{margin: 0 calc(var(--design-unit) * 4px)}:host([completed]) .step-number{border-color: var(--success-color);color: white;background-color: var(--success-color)}:host([completed]) .step-title{color: var(--success-color)}:host([error]) .step-number{border-color: var(--error-color);color: white;background-color: var(--error-color)}:host([error]) .step-title{color: var(--error-color)}`,MHe=T` ${C8(`rapid`)} `;(class extends T8{}).compose(Object.assign({baseName:`stepper-tab`,template:MHe,styles:jHe,shadowOptions:void 0},E8));let NHe=O` ${Y7} :host{font-family: var(--body-font)}:host([orientation='horizontal']){height: 100%}.stepper-tab-panel{border: none;height: auto}:host([orientation='horizontal']) .stepper-tab-panel{height: 100%}.stepper-tab{background-color: var(--neutral-layer-3);border: none}.stepper-panel-container{padding: calc(var(--design-unit) * 4px)}.action-buttons-container{padding: calc(var(--design-unit) * 2px);width: auto;gap: calc(var(--design-unit) * 2px)}.stepper-tab-menu{margin-bottom: calc(var(--design-unit) * 4px)}.stepper-tab-progress{padding: calc(var(--design-unit) * 4px) 0}label{padding: 0 calc(var(--design-unit) * 2px);color: var(--neutral-foreground-hint)}`,PHe=T` ${J7(`rapid`)} `;(class extends X7{}).compose(Object.assign({baseName:`stepper`,template:PHe,styles:NHe,shadowOptions:void 0},Z7)),class extends M8{}.compose(Object.assign({baseName:`switch`,template:(e,t)=>A8(e,t),styles:(e,t)=>O` ${j8(e,t)} :host{--primary-gradient-angle: -113.5deg}.switch{background: none;border-color: var(--neutral-stroke-rest)}.checked-indicator{background-color: var(--neutral-stroke-rest)}.switch:hover{border-color: var(--neutral-stroke-rest);background: none}:host([aria-checked='true']) .switch{background: none}:host([aria-checked='true']) .checked-indicator{background: var(--accent-fill-rest)}:host([aria-checked='true']:not([disabled])) .switch:hover, :host([aria-checked='true']:not([disabled])) .switch:active{background: none}:host([aria-checked='true']:not([disabled])) .switch:hover .checked-indicator, :host([aria-checked='true']:not([disabled])) .switch:active .checked-indicator{background: var(--accent-fill-rest)}`,shadowOptions:void 0},{switch:`<div class="checked-indicator" part="checked-indicator"></div>`})),class extends z8{}.compose(Object.assign({baseName:`tab-panel`,template:(e,t)=>L8(e,t),styles:(e,t)=>O` ${R8(e,t)} :host{padding: 0;background-color: var(--neutral-layer-card-container);border-radius: 0 0 var(--card-corner-radius, calc(var(--control-corner-radius) * 1.5px)) var(--card-corner-radius, calc(var(--control-corner-radius) * 1.5px));border-style: solid;border-width: var(--tabs-border-width, 1px);border-color: var(--tabs-border-color, var(--neutral-stroke-rest))}`,shadowOptions:void 0},B8)),class extends F8{}.compose(Object.assign({baseName:`tab`,template:(e,t)=>N8(e,t),styles:(e,t)=>O` ${P8(e,t)} :host{background-color: var(--neutral-layer-2);border-radius: calc(var(--control-corner-radius) * 2px);box-shadow: 0 0 15px 0 rgb(0 0 0 / 30%);margin-right: calc(var(--design-unit) * 5px);height: calc( (((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) - 4) * 1px )}:host([aria-selected='true']), :host([aria-selected='true']:hover){background-color: var(--neutral-layer-4);font-weight: 700}/* * Sustained alert, sampling the flash phase the platform animates on the document. Every * alerting surface reads that one value, so tabs and grid rows brighten and fade together * however long ago each of them started alerting. * * Mixing towards transparent and currentColor lets the tab fade back to its own resting * colours, so selected and unselected tabs each return to the right background. * * !important because a :host rule loses to any app stylesheet that colours tabs from the light * DOM, and an alert nobody can see is worse than no alert. */ :host([alert]){background-color: color-mix( in srgb, var(--tab-alert-color, var(--error-fill-rest)) calc(var(${K0}, 0) * 100%), transparent ) !important;color: color-mix( in srgb, contrast-color(var(--tab-alert-color, var(--error-fill-rest))) calc(var(${K0}, 0) * 100%), currentColor ) !important}/* Reduced motion stops the clock, leaving the phase at 0, so paint a steady alert instead. */ @media (prefers-reduced-motion: reduce){:host([alert]){background-color: var(--tab-alert-color, var(--error-fill-rest)) !important;color: contrast-color(var(--tab-alert-color, var(--error-fill-rest))) !important}}`,shadowOptions:void 0},I8)),class extends U8{}.compose(Object.assign({baseName:`tabs`,template:(e,t)=>V8(e,t),styles:(e,t)=>O` ${H8(e,t)} :host{background: var(--neutral-layer-3);border-radius: calc(var(--control-corner-radius) * 1px)}:host(:not([appearance='secondary'])){background: var(--rapid-layout-item-background, var(--neutral-layer-3));border-radius: var(--card-corner-radius, calc(var(--control-corner-radius) * 1px));border: var(--card-border, 0)}:host([appearance='secondary']){background: transparent}:host .tablist{padding: 0;display: grid;width: max-content;margin-top: 0}:host .tabpanel{height: 100%;min-height: 0}:host([appearance='secondary']) .tablist{margin-bottom: 0}:host .end, :host .start{padding: 0 calc((16 + var(--design-unit) * 2 * var(--density)) * 1px);height: calc(100% - 1px);display: flex;align-items: center}::slotted([slot='tab']:hover){color: var(--neutral-foreground-rest);background: var(--neutral-layer-1)}::slotted([role='tab']){border-radius: calc(var(--control-corner-radius) * 1.5px) calc(var(--control-corner-radius) * 1.5px) 0 0;background: var(--tab-rest-background-color, var(--neutral-layer-4));padding: 0 calc((16 + var(--design-unit) * 2 * var(--density)) * 1px);margin-right: 2px;box-shadow: none;font-size: var(--type-ramp-minus-1-font-size);border-style: solid;border-width: var(--tab-rest-border-width, 1px);border-color: var(--tab-rest-border-color, transparent)}::slotted([role='tab'][aria-selected='true']:not([appearance='secondary'])){border-style: solid;border-width: var(--tab-active-border-width, 1px 1px 0 1px);border-color: var(--tab-active-border-color, var(--neutral-stroke-rest));background: var(--tab-active-background-color, var(--neutral-layer-card-container))}::slotted([role='tab'][aria-selected='true']){color: var(--accent-foreground-rest);background: var(--neutral-layer-card-container)}/* stylelint-disable selector-class-pattern */ .activeIndicator{display: none}:host([appearance='secondary']) .tablist .activeIndicator{display: block;height: 1px;margin-top: unset}::slotted([role='tab'][aria-selected='true'][appearance='secondary']){background: none}::slotted([role='tab'][appearance='secondary']){margin-left: 0;box-shadow: none;background: none}:host([appearance='secondary']:hover){color: var(--neutral-foreground-rest);background: none}:host([appearance='secondary']) ::slotted([role='tabpanel']){border: 0}`,shadowOptions:void 0},W8)),class extends q8{}.compose(Object.assign({baseName:`text-area`,template:(e,t)=>G8(e,t),styles:(e,t)=>O` ${K8(e,t)} :host{display: grid;flex: 1 1 auto;box-sizing: border-box}:host .control{height: 100%;border-style: solid;border-width: var(--neutral-stroke-width-rest, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-rest, var(--focus-stroke-outer));background-color: var(--neutral-fill-input-rest);border-radius: calc(var(--control-corner-radius) * 1px);padding: calc(var(--design-unit) * 2px)}:host(:hover:not([disabled])) .control{border-style: solid;border-width: var(--neutral-stroke-width-hover, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-hover, var(--neutral-foreground-rest));background: var(--neutral-fill-input-hover)}:host(:is(:focus, :focus-within, :focus-visible):not([disabled])) .control{border-style: solid;border-width: var(--neutral-stroke-width-focus, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-focus, var(--accent-fill-rest));background-color: var(--neutral-fill-input-focus);box-shadow: none}.label{color: var(--neutral-foreground-hint);font-weight: 700;margin: calc(var(--design-unit) * 2px) 0}`,shadowOptions:void 0},J8)),class extends Z8{}.compose(Object.assign({baseName:`text-field`,template:(e,t)=>Y8(e,t),styles:(e,t)=>O` ${X8(e,t)} :host{display: block;flex: 1 1 auto;box-sizing: border-box}:host .control{height: 100%;border-radius: calc(var(--control-corner-radius) * 1px);padding: 0 calc(var(--design-unit) * 2px)}:host .control-field .control{width: 100%}:host .root{border-style: solid;border-width: var(--neutral-stroke-width-rest, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-rest, var(--focus-stroke-outer));background-color: var(--neutral-fill-input-rest);height: calc( (((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) - 4) * 1px )}:host(:hover:not([disabled])) .root{border-style: solid;border-width: var(--neutral-stroke-width-hover, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-hover, var(--neutral-foreground-rest));background: var(--neutral-fill-input-hover);box-shadow: none}:host(:is(:focus, :focus-within, :focus-visible):not([disabled])) .root{border-style: solid;border-width: var(--neutral-stroke-width-focus, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-focus, var(--accent-fill-rest));background-color: var(--neutral-fill-input-focus);box-shadow: none}.label{color: var(--neutral-foreground-hint);font-weight: 700;margin: calc(var(--design-unit) * 2px) 0}.label-hidden{margin: 0}:host input::placeholder{color: var(--neutral-foreground-hint);opacity: 75%}`,shadowOptions:Q8},$8));let FHe=O` ${e5} .toast{background-color: ${_c};border-radius: calc(var(--control-corner-radius) * 2px);border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest)}.top{align-items: flex-start}:host{font-size: var(--type-ramp-base-font-size);font-family: var(--body-font);line-height: var(--type-ramp-base-line-height);color: var(--neutral-foreground-rest)}.content{font-size: var(--type-ramp-minus-1-font-size)}.date{margin: calc(var(--design-unit) * 2px) calc(var(--design-unit) * 0) calc(var(--design-unit) * 1px)}.content-wrapper{padding: calc(var(--design-unit) * 2px)}.toast::after{background-color: var(--accent-fill-rest);border-radius: 0;height: calc(100% - calc(var(--design-unit) * 5px));margin: calc(var(--design-unit) * 0) calc(var(--design-unit) * 1px)}:host([notify='warning']) .toast::after{background-color: var(--warning-color)}:host([notify='success']) .toast::after{background-color: var(--success-color)}:host([notify='critical']) .toast::after, :host([notify='serious']) .toast::after, :host([notify='error']) .toast::after{background-color: var(--error-color)}`,IHe=r5,LHe=n5;(class extends i5{}).compose(Object.assign({baseName:`toast`,shadowOptions:LHe,styles:FHe,template:t5},IHe)),class extends s5{}.compose(Object.assign({baseName:`toolbar`,template:(e,t)=>a5(e,t),styles:(e,t)=>O` ${o5(e,t)} :host{align-items: center;color: var(--neutral-foreground-rest)}.positioning-region{align-items: center}`,shadowOptions:void 0},c5)),class extends d5{}.compose(Object.assign({baseName:`tooltip`,template:(e,t)=>l5(e,t),styles:(e,t)=>O` ${u5(e,t)} :host{visibility: visible}.tooltip{padding: calc((var(--design-unit) - 1) * 2px) calc(var(--design-unit) * 2px);text-align: center;white-space: inherit;font-weight: 400}rapid-anchored-region.bottom .tooltip{margin-top: calc(var(--design-unit) * 1px);margin-left: calc(var(--design-unit) * 2px)}rapid-anchored-region.top.right .tooltip, rapid-anchored-region.bottom.right .tooltip{margin-left: 0}`,shadowOptions:void 0},f5)),class extends h5{}.compose(Object.assign({baseName:`tree-item`,template:(e,t)=>p5(e,t),styles:(e,t)=>O` ${m5(e,t)} :host{font-size: var(--type-ramp-base-font-size);color: var(--neutral-foreground-rest);background-color: transparent}:host(.nested) .expand-collapse-button{background: var(--neutral-fill-rest);border-radius: calc(var(--control-corner-radius) * 1px);width: calc(var(--design-unit) * 5px);height: calc(var(--design-unit) * 5px);margin-left: calc(var(--design-unit) * 2px)}:host([selected]) .positioning-region{background: var(--neutral-fill-stealth-active)}.positioning-region::before{width: calc(var(--design-unit) * 1px)}:host([selected])::after{background: var(--accent-fill-rest);background-origin: border-box;background-size: cover;background-repeat: no-repeat}:host([slot='item']) .content-region{margin-inline-start: calc(var(--design-unit) * 4px + var(--expand-collapse-button-size))}.expand-collapse-glyph{width: calc(var(--design-unit) * 3px);height: calc(var(--design-unit) * 3px)}`,shadowOptions:void 0},{expandCollapseGlyph:`
1007
1007
  <svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" class="expand-collapse-glyph">
1008
1008
  <path d="M4.023 15.273L11.29 8 4.023.727l.704-.704L12.71 8l-7.984 7.977-.704-.704z"/>
1009
- </svg>`})),class extends v5{}.compose(Object.assign({baseName:`tree-view`,template:(e,t)=>g5(e,t),styles:(e,t)=>O` ${_5(e,t)}`,shadowOptions:void 0},y5));let IHe=(e,t)=>O` ${b5(e,t)} a{color: var(--accent-fill-rest);opacity: 65%}a:hover{opacity: 100%}.url-input-link{font-family: var(--body-font);font-size: var(--type-ramp-base-font-size);top: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) / 2 * 1px)}`,LHe=T` ${x5(`rapid`)} `;(class extends C5{}).compose(Object.assign({baseName:`url-input`,template:LHe,styles:IHe,shadowOptions:void 0},S5));let RHe=O` ${w5} .digit .control{height: 100%;border-radius: calc(var(--control-corner-radius) * 1px);padding: 0 calc(var(--design-unit) * 2px)}.digit .control-field .control{width: 100%}.digit .root{border-style: solid;border-width: var(--neutral-stroke-width-rest, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-rest, var(--focus-stroke-outer));background-color: var(--neutral-fill-input-rest);height: calc( (((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) - 4) * 1px )}.digit:hover:not(.disabled) .root{border-style: solid;border-width: var(--neutral-stroke-width-hover, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-hover, var(--neutral-foreground-rest));background: var(--neutral-fill-input-hover);box-shadow: none}.digit:focus-within:not(.disabled) .root{border-style: solid;border-width: var(--neutral-stroke-width-focus, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-focus, var(--accent-fill-rest));background-color: var(--neutral-fill-input-focus);box-shadow: none}.label{color: var(--neutral-foreground-hint);font-weight: 700;margin: calc(var(--design-unit) * 2px) 0}.label-hidden{margin: 0}`,zHe=T5;var BHe=class extends k5{};let VHe=D5,HHe=E5;BHe.compose(Object.assign({baseName:`verification-code-input`,template:zHe,styles:RHe,shadowOptions:HHe},VHe));var UHe=/* @__PURE__ */ c({Accordion:()=>WHe,AccordionItem:()=>GHe,ActionsMenu:()=>KHe,AiCriteriaSearch:()=>qHe,AiIndicator:()=>JHe,Anchor:()=>YHe,AnchoredRegion:()=>XHe,Avatar:()=>ZHe,Badge:()=>QHe,Banner:()=>$He,Breadcrumb:()=>eUe,BreadcrumbItem:()=>tUe,Button:()=>nUe,Calendar:()=>rUe,Card:()=>iUe,CategorizedMultiselect:()=>aUe,Checkbox:()=>oUe,Combobox:()=>sUe,ConnectionIndicator:()=>cUe,DatePicker:()=>lUe,DesignSystemProvider:()=>uUe,Dialog:()=>dUe,Disclosure:()=>fUe,Divider:()=>pUe,DropdownMenu:()=>mUe,EnvironmentIndicator:()=>hUe,FileUpload:()=>yUe,Filter:()=>bUe,FilterBar:()=>xUe,Flipper:()=>SUe,Flyout:()=>CUe,HorizontalScroll:()=>wUe,Icon:()=>TUe,Listbox:()=>EUe,ListboxOption:()=>DUe,Menu:()=>OUe,MenuItem:()=>kUe,Modal:()=>AUe,Multiselect:()=>jUe,NotificationListener:()=>MUe,NumberField:()=>NUe,Optgroup:()=>PUe,Pill:()=>FUe,Progress:()=>IUe,ProgressRing:()=>LUe,Radio:()=>RUe,RadioGroup:()=>zUe,RapidExpressionBuilder:()=>gUe,RapidRouter:()=>BUe,RapidRuleExpressionBuilder:()=>_Ue,RapidValueExpressionBuilder:()=>vUe,Scheduler:()=>VUe,SchedulerCronBuilder:()=>HUe,SchedulerTimezone:()=>UUe,SearchBar:()=>GUe,SearchBarCombobox:()=>WUe,SectionNavigator:()=>KUe,SegmentedControl:()=>qUe,SegmentedItem:()=>JUe,Select:()=>YUe,Skeleton:()=>XUe,Slider:()=>ZUe,SliderLabel:()=>QUe,Snackbar:()=>$Ue,StackingIcons:()=>eWe,StatusPill:()=>tWe,Stepper:()=>nWe,StepperTab:()=>rWe,StepperTabPanel:()=>iWe,Switch:()=>aWe,SystemHealthOverlay:()=>vWe,Tab:()=>oWe,TabPanel:()=>sWe,Tabs:()=>cWe,TextArea:()=>lWe,TextField:()=>uWe,Toast:()=>dWe,Toolbar:()=>fWe,Tooltip:()=>pWe,TreeItem:()=>mWe,TreeView:()=>hWe,UrlInput:()=>gWe,VerificationCodeInput:()=>_We});function $9(...e){return t=>{for(let n of e)typeof n==`function`?n(t):n!=null&&(n.current=t)}}let WHe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-accordion`,{...i,ref:n},r)}),GHe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-accordion-item`,{...i,ref:n},r)}),KHe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-actions-menu`,{...i,ref:n},r)}),qHe=e.default.forwardRef(function(t,n){let{onCriteriaChanged:r,onValidationErrors:i,children:a,...o}=t,s=e.default.useRef(null),c=e.default.useRef(r);c.current=r;let l=e.default.useRef(i);return l.current=i,e.default.useLayoutEffect(()=>{let e=s.current;if(!e)return;let t=e=>c.current?.(e);e.addEventListener(`criteria-changed`,t);let n=e=>l.current?.(e);return e.addEventListener(`validation-errors`,n),()=>{e.removeEventListener(`criteria-changed`,t),e.removeEventListener(`validation-errors`,n)}},[]),e.default.createElement(`rapid-ai-criteria-search`,{...o,ref:$9(s,n)},a)}),JHe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-ai-indicator`,{...i,ref:n},r)}),YHe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-anchor`,{...i,ref:n},r)}),XHe=e.default.forwardRef(function(t,n){let{onLoaded:r,onPositionchange:i,children:a,...o}=t,s=e.default.useRef(null),c=e.default.useRef(r);c.current=r;let l=e.default.useRef(i);return l.current=i,e.default.useLayoutEffect(()=>{let e=s.current;if(!e)return;let t=e=>c.current?.(e);e.addEventListener(`loaded`,t);let n=e=>l.current?.(e);return e.addEventListener(`positionchange`,n),()=>{e.removeEventListener(`loaded`,t),e.removeEventListener(`positionchange`,n)}},[]),e.default.createElement(`rapid-anchored-region`,{...o,ref:$9(s,n)},a)}),ZHe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-avatar`,{...i,ref:n},r)}),QHe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-badge`,{...i,ref:n},r)}),$He=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-banner`,{...i,ref:n},r)}),eUe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-breadcrumb`,{...i,ref:n},r)}),tUe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-breadcrumb-item`,{...i,ref:n},r)}),nUe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-button`,{...i,ref:n},r)}),rUe=e.default.forwardRef(function(t,n){let{onDateselected:r,children:i,...a}=t,o=e.default.useRef(null),s=e.default.useRef(r);return s.current=r,e.default.useLayoutEffect(()=>{let e=o.current;if(!e)return;let t=e=>s.current?.(e);return e.addEventListener(`dateselected`,t),()=>{e.removeEventListener(`dateselected`,t)}},[]),e.default.createElement(`rapid-calendar`,{...a,ref:$9(o,n)},i)}),iUe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-card`,{...i,ref:n},r)}),aUe=e.default.forwardRef(function(t,n){let{onSelectionChange:r,children:i,...a}=t,o=e.default.useRef(null),s=e.default.useRef(r);return s.current=r,e.default.useLayoutEffect(()=>{let e=o.current;if(!e)return;let t=e=>s.current?.(e);return e.addEventListener(`selectionChange`,t),()=>{e.removeEventListener(`selectionChange`,t)}},[]),e.default.createElement(`rapid-categorized-multiselect`,{...a,ref:$9(o,n)},i)}),oUe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-checkbox`,{...i,ref:n},r)}),sUe=e.default.forwardRef(function(t,n){let{onOpenChange:r,onValueChange:i,children:a,...o}=t,s=e.default.useRef(null),c=e.default.useRef(r);c.current=r;let l=e.default.useRef(i);return l.current=i,e.default.useLayoutEffect(()=>{let e=s.current;if(!e)return;let t=e=>c.current?.(e);e.addEventListener(`open-change`,t);let n=e=>l.current?.(e);return e.addEventListener(`value-change`,n),()=>{e.removeEventListener(`open-change`,t),e.removeEventListener(`value-change`,n)}},[]),e.default.createElement(`rapid-combobox`,{...o,ref:$9(s,n)},a)}),cUe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-connection-indicator`,{...i,ref:n},r)}),lUe=e.default.forwardRef(function(t,n){let{onValueChanged:r,children:i,...a}=t,o=e.default.useRef(null),s=e.default.useRef(r);return s.current=r,e.default.useLayoutEffect(()=>{let e=o.current;if(!e)return;let t=e=>s.current?.(e);return e.addEventListener(`value-changed`,t),()=>{e.removeEventListener(`value-changed`,t)}},[]),e.default.createElement(`rapid-date-picker`,{...a,ref:$9(o,n)},i)}),uUe=e.default.forwardRef(function(t,n){let{onLuminanceChange:r,children:i,...a}=t,o=e.default.useRef(null),s=e.default.useRef(r);return s.current=r,e.default.useLayoutEffect(()=>{let e=o.current;if(!e)return;let t=e=>s.current?.(e);return e.addEventListener(`luminance-change`,t),()=>{e.removeEventListener(`luminance-change`,t)}},[]),e.default.createElement(`rapid-design-system-provider`,{...a,ref:$9(o,n)},i)}),dUe=e.default.forwardRef(function(t,n){let{onClose:r,children:i,...a}=t,o=e.default.useRef(null),s=e.default.useRef(r);return s.current=r,e.default.useLayoutEffect(()=>{let e=o.current;if(!e)return;let t=e=>s.current?.(e);return e.addEventListener(`close`,t),()=>{e.removeEventListener(`close`,t)}},[]),e.default.createElement(`rapid-dialog`,{...a,ref:$9(o,n)},i)}),fUe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-disclosure`,{...i,ref:n},r)}),pUe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-divider`,{...i,ref:n},r)}),mUe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-dropdown-menu`,{...i,ref:n},r)}),hUe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-environment-indicator`,{...i,ref:n},r)}),gUe=e.default.forwardRef(function(t,n){let{onAddGroup:r,onDelGroup:i,onAddRule:a,onDelRule:o,onUpdateGroup:s,onUpdateRule:c,children:l,...u}=t,d=e.default.useRef(null),f=e.default.useRef(r);f.current=r;let p=e.default.useRef(i);p.current=i;let m=e.default.useRef(a);m.current=a;let h=e.default.useRef(o);h.current=o;let g=e.default.useRef(s);g.current=s;let _=e.default.useRef(c);return _.current=c,e.default.useLayoutEffect(()=>{let e=d.current;if(!e)return;let t=e=>f.current?.(e);e.addEventListener(`add-group`,t);let n=e=>p.current?.(e);e.addEventListener(`del-group`,n);let r=e=>m.current?.(e);e.addEventListener(`add-rule`,r);let i=e=>h.current?.(e);e.addEventListener(`del-rule`,i);let a=e=>g.current?.(e);e.addEventListener(`update-group`,a);let o=e=>_.current?.(e);return e.addEventListener(`update-rule`,o),()=>{e.removeEventListener(`add-group`,t),e.removeEventListener(`del-group`,n),e.removeEventListener(`add-rule`,r),e.removeEventListener(`del-rule`,i),e.removeEventListener(`update-group`,a),e.removeEventListener(`update-rule`,o)}},[]),e.default.createElement(customElements.getName(Y9)??`rapid-expression-builder`,{...u,ref:$9(d,n)},l)}),_Ue=e.default.forwardRef(function(t,n){let{onAddGroup:r,onDelGroup:i,onAddRule:a,onDelRule:o,onUpdateGroup:s,onUpdateRule:c,children:l,...u}=t,d=e.default.useRef(null),f=e.default.useRef(r);f.current=r;let p=e.default.useRef(i);p.current=i;let m=e.default.useRef(a);m.current=a;let h=e.default.useRef(o);h.current=o;let g=e.default.useRef(s);g.current=s;let _=e.default.useRef(c);return _.current=c,e.default.useLayoutEffect(()=>{let e=d.current;if(!e)return;let t=e=>f.current?.(e);e.addEventListener(`add-group`,t);let n=e=>p.current?.(e);e.addEventListener(`del-group`,n);let r=e=>m.current?.(e);e.addEventListener(`add-rule`,r);let i=e=>h.current?.(e);e.addEventListener(`del-rule`,i);let a=e=>g.current?.(e);e.addEventListener(`update-group`,a);let o=e=>_.current?.(e);return e.addEventListener(`update-rule`,o),()=>{e.removeEventListener(`add-group`,t),e.removeEventListener(`del-group`,n),e.removeEventListener(`add-rule`,r),e.removeEventListener(`del-rule`,i),e.removeEventListener(`update-group`,a),e.removeEventListener(`update-rule`,o)}},[]),e.default.createElement(customElements.getName(X9)??`rapid-rule-expression-builder`,{...u,ref:$9(d,n)},l)}),vUe=e.default.forwardRef(function(t,n){let{onAddGroup:r,onDelGroup:i,onAddRule:a,onDelRule:o,onUpdateGroup:s,onUpdateRule:c,children:l,...u}=t,d=e.default.useRef(null),f=e.default.useRef(r);f.current=r;let p=e.default.useRef(i);p.current=i;let m=e.default.useRef(a);m.current=a;let h=e.default.useRef(o);h.current=o;let g=e.default.useRef(s);g.current=s;let _=e.default.useRef(c);return _.current=c,e.default.useLayoutEffect(()=>{let e=d.current;if(!e)return;let t=e=>f.current?.(e);e.addEventListener(`add-group`,t);let n=e=>p.current?.(e);e.addEventListener(`del-group`,n);let r=e=>m.current?.(e);e.addEventListener(`add-rule`,r);let i=e=>h.current?.(e);e.addEventListener(`del-rule`,i);let a=e=>g.current?.(e);e.addEventListener(`update-group`,a);let o=e=>_.current?.(e);return e.addEventListener(`update-rule`,o),()=>{e.removeEventListener(`add-group`,t),e.removeEventListener(`del-group`,n),e.removeEventListener(`add-rule`,r),e.removeEventListener(`del-rule`,i),e.removeEventListener(`update-group`,a),e.removeEventListener(`update-rule`,o)}},[]),e.default.createElement(customElements.getName(Z9)??`rapid-value-expression-builder`,{...u,ref:$9(d,n)},l)}),yUe=e.default.forwardRef(function(t,n){let{onFileSelected:r,onSuccess:i,onErrorOut:a,onClear:o,children:s,...c}=t,l=e.default.useRef(null),u=e.default.useRef(r);u.current=r;let d=e.default.useRef(i);d.current=i;let f=e.default.useRef(a);f.current=a;let p=e.default.useRef(o);return p.current=o,e.default.useLayoutEffect(()=>{let e=l.current;if(!e)return;let t=e=>u.current?.(e);e.addEventListener(`file-selected`,t);let n=e=>d.current?.(e);e.addEventListener(`success`,n);let r=e=>f.current?.(e);e.addEventListener(`errorOut`,r);let i=e=>p.current?.(e);return e.addEventListener(`clear`,i),()=>{e.removeEventListener(`file-selected`,t),e.removeEventListener(`success`,n),e.removeEventListener(`errorOut`,r),e.removeEventListener(`clear`,i)}},[]),e.default.createElement(`rapid-file-upload`,{...c,ref:$9(l,n)},s)}),bUe=e.default.forwardRef(function(t,n){let{onFilterChanged:r,onFilterCleared:i,children:a,...o}=t,s=e.default.useRef(null),c=e.default.useRef(r);c.current=r;let l=e.default.useRef(i);return l.current=i,e.default.useLayoutEffect(()=>{let e=s.current;if(!e)return;let t=e=>c.current?.(e);e.addEventListener(`filter-changed`,t);let n=e=>l.current?.(e);return e.addEventListener(`filter-cleared`,n),()=>{e.removeEventListener(`filter-changed`,t),e.removeEventListener(`filter-cleared`,n)}},[]),e.default.createElement(`rapid-filter`,{...o,ref:$9(s,n)},a)}),xUe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-filter-bar`,{...i,ref:n},r)}),SUe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-flipper`,{...i,ref:n},r)}),CUe=e.default.forwardRef(function(t,n){let{onClosed:r,children:i,...a}=t,o=e.default.useRef(null),s=e.default.useRef(r);return s.current=r,e.default.useLayoutEffect(()=>{let e=o.current;if(!e)return;let t=e=>s.current?.(e);return e.addEventListener(`closed`,t),()=>{e.removeEventListener(`closed`,t)}},[]),e.default.createElement(`rapid-flyout`,{...a,ref:$9(o,n)},i)}),wUe=e.default.forwardRef(function(t,n){let{onScrollstart:r,onScrollend:i,children:a,...o}=t,s=e.default.useRef(null),c=e.default.useRef(r);c.current=r;let l=e.default.useRef(i);return l.current=i,e.default.useLayoutEffect(()=>{let e=s.current;if(!e)return;let t=e=>c.current?.(e);e.addEventListener(`scrollstart`,t);let n=e=>l.current?.(e);return e.addEventListener(`scrollend`,n),()=>{e.removeEventListener(`scrollstart`,t),e.removeEventListener(`scrollend`,n)}},[]),e.default.createElement(`rapid-horizontal-scroll`,{...o,ref:$9(s,n)},a)}),TUe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-icon`,{...i,ref:n},r)}),EUe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-listbox`,{...i,ref:n},r)}),DUe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-option`,{...i,ref:n},r)}),OUe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-menu`,{...i,ref:n},r)}),kUe=e.default.forwardRef(function(t,n){let{onOnMenuClick:r,onExpandedChange:i,children:a,...o}=t,s=e.default.useRef(null),c=e.default.useRef(r);c.current=r;let l=e.default.useRef(i);return l.current=i,e.default.useLayoutEffect(()=>{let e=s.current;if(!e)return;let t=e=>c.current?.(e);e.addEventListener(`onMenuClick`,t);let n=e=>l.current?.(e);return e.addEventListener(`expanded-change`,n),()=>{e.removeEventListener(`onMenuClick`,t),e.removeEventListener(`expanded-change`,n)}},[]),e.default.createElement(`rapid-menu-item`,{...o,ref:$9(s,n)},a)}),AUe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-modal`,{...i,ref:n},r)}),jUe=e.default.forwardRef(function(t,n){let{onSelectionChange:r,onOptionCreated:i,onClear:a,children:o,...s}=t,c=e.default.useRef(null),l=e.default.useRef(r);l.current=r;let u=e.default.useRef(i);u.current=i;let d=e.default.useRef(a);return d.current=a,e.default.useLayoutEffect(()=>{let e=c.current;if(!e)return;let t=e=>l.current?.(e);e.addEventListener(`selectionChange`,t);let n=e=>u.current?.(e);e.addEventListener(`optionCreated`,n);let r=e=>d.current?.(e);return e.addEventListener(`clear`,r),()=>{e.removeEventListener(`selectionChange`,t),e.removeEventListener(`optionCreated`,n),e.removeEventListener(`clear`,r)}},[]),e.default.createElement(`rapid-multiselect`,{...s,ref:$9(c,n)},o)}),MUe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-notification-listener`,{...i,ref:n},r)}),NUe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-number-field`,{...i,ref:n},r)}),PUe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-optgroup`,{...i,ref:n},r)}),FUe=e.default.forwardRef(function(t,n){let{onRemove:r,onPillClick:i,children:a,...o}=t,s=e.default.useRef(null),c=e.default.useRef(r);c.current=r;let l=e.default.useRef(i);return l.current=i,e.default.useLayoutEffect(()=>{let e=s.current;if(!e)return;let t=e=>c.current?.(e);e.addEventListener(`remove`,t);let n=e=>l.current?.(e);return e.addEventListener(`pill-click`,n),()=>{e.removeEventListener(`remove`,t),e.removeEventListener(`pill-click`,n)}},[]),e.default.createElement(`rapid-pill`,{...o,ref:$9(s,n)},a)}),IUe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-progress`,{...i,ref:n},r)}),LUe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-progress-ring`,{...i,ref:n},r)}),RUe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-radio`,{...i,ref:n},r)}),zUe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-radio-group`,{...i,ref:n},r)}),BUe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(customElements.getName(Q9)??`rapid-router`,{...i,ref:n},r)}),VUe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-scheduler`,{...i,ref:n},r)}),HUe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-scheduler-cron-builder`,{...i,ref:n},r)}),UUe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-scheduler-timezone`,{...i,ref:n},r)}),WUe=e.default.forwardRef(function(t,n){let{onOpenChange:r,onValueChange:i,children:a,...o}=t,s=e.default.useRef(null),c=e.default.useRef(r);c.current=r;let l=e.default.useRef(i);return l.current=i,e.default.useLayoutEffect(()=>{let e=s.current;if(!e)return;let t=e=>c.current?.(e);e.addEventListener(`open-change`,t);let n=e=>l.current?.(e);return e.addEventListener(`value-change`,n),()=>{e.removeEventListener(`open-change`,t),e.removeEventListener(`value-change`,n)}},[]),e.default.createElement(`rapid-search-bar-combobox`,{...o,ref:$9(s,n)},a)}),GUe=e.default.forwardRef(function(t,n){let{onSelectionChange:r,children:i,...a}=t,o=e.default.useRef(null),s=e.default.useRef(r);return s.current=r,e.default.useLayoutEffect(()=>{let e=o.current;if(!e)return;let t=e=>s.current?.(e);return e.addEventListener(`selectionChange`,t),()=>{e.removeEventListener(`selectionChange`,t)}},[]),e.default.createElement(`rapid-search-bar`,{...a,ref:$9(o,n)},i)}),KUe=e.default.forwardRef(function(t,n){let{onSectionNavigatorSetState:r,onSectionNavigatorSetStates:i,onSectionNavigatorClearState:a,onSectionNavigatorClearAllStates:o,children:s,...c}=t,l=e.default.useRef(null),u=e.default.useRef(r);u.current=r;let d=e.default.useRef(i);d.current=i;let f=e.default.useRef(a);f.current=a;let p=e.default.useRef(o);return p.current=o,e.default.useLayoutEffect(()=>{let e=l.current;if(!e)return;let t=e=>u.current?.(e);e.addEventListener(`section-navigator-set-state`,t);let n=e=>d.current?.(e);e.addEventListener(`section-navigator-set-states`,n);let r=e=>f.current?.(e);e.addEventListener(`section-navigator-clear-state`,r);let i=e=>p.current?.(e);return e.addEventListener(`section-navigator-clear-all-states`,i),()=>{e.removeEventListener(`section-navigator-set-state`,t),e.removeEventListener(`section-navigator-set-states`,n),e.removeEventListener(`section-navigator-clear-state`,r),e.removeEventListener(`section-navigator-clear-all-states`,i)}},[]),e.default.createElement(`rapid-section-navigator`,{...c,ref:$9(l,n)},s)}),qUe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-segmented-control`,{...i,ref:n},r)}),JUe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-segmented-item`,{...i,ref:n},r)}),YUe=e.default.forwardRef(function(t,n){let{onOpenChange:r,onValueChange:i,children:a,...o}=t,s=e.default.useRef(null),c=e.default.useRef(r);c.current=r;let l=e.default.useRef(i);return l.current=i,e.default.useLayoutEffect(()=>{let e=s.current;if(!e)return;let t=e=>c.current?.(e);e.addEventListener(`open-change`,t);let n=e=>l.current?.(e);return e.addEventListener(`value-change`,n),()=>{e.removeEventListener(`open-change`,t),e.removeEventListener(`value-change`,n)}},[]),e.default.createElement(`rapid-select`,{...o,ref:$9(s,n)},a)}),XUe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-skeleton`,{...i,ref:n},r)}),ZUe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-slider`,{...i,ref:n},r)}),QUe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-slider-label`,{...i,ref:n},r)}),$Ue=e.default.forwardRef(function(t,n){let{onAutoDismiss:r,children:i,...a}=t,o=e.default.useRef(null),s=e.default.useRef(r);return s.current=r,e.default.useLayoutEffect(()=>{let e=o.current;if(!e)return;let t=e=>s.current?.(e);return e.addEventListener(`autoDismiss`,t),()=>{e.removeEventListener(`autoDismiss`,t)}},[]),e.default.createElement(`rapid-snackbar`,{...a,ref:$9(o,n)},i)}),eWe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-stacking-icons`,{...i,ref:n},r)}),tWe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-status-pill`,{...i,ref:n},r)}),nWe=e.default.forwardRef(function(t,n){let{onStepClick:r,onValidationFailure:i,onNextStep:a,onValidationSuccess:o,children:s,...c}=t,l=e.default.useRef(null),u=e.default.useRef(r);u.current=r;let d=e.default.useRef(i);d.current=i;let f=e.default.useRef(a);f.current=a;let p=e.default.useRef(o);return p.current=o,e.default.useLayoutEffect(()=>{let e=l.current;if(!e)return;let t=e=>u.current?.(e);e.addEventListener(`step-click`,t);let n=e=>d.current?.(e);e.addEventListener(`validation-failure`,n);let r=e=>f.current?.(e);e.addEventListener(`next-step`,r);let i=e=>p.current?.(e);return e.addEventListener(`validation-success`,i),()=>{e.removeEventListener(`step-click`,t),e.removeEventListener(`validation-failure`,n),e.removeEventListener(`next-step`,r),e.removeEventListener(`validation-success`,i)}},[]),e.default.createElement(`rapid-stepper`,{...c,ref:$9(l,n)},s)}),rWe=e.default.forwardRef(function(t,n){let{onTabClicked:r,children:i,...a}=t,o=e.default.useRef(null),s=e.default.useRef(r);return s.current=r,e.default.useLayoutEffect(()=>{let e=o.current;if(!e)return;let t=e=>s.current?.(e);return e.addEventListener(`tab-clicked`,t),()=>{e.removeEventListener(`tab-clicked`,t)}},[]),e.default.createElement(`rapid-stepper-tab`,{...a,ref:$9(o,n)},i)}),iWe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-stepper-tab-panel`,{...i,ref:n},r)}),aWe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-switch`,{...i,ref:n},r)}),oWe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-tab`,{...i,ref:n},r)}),sWe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-tab-panel`,{...i,ref:n},r)}),cWe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-tabs`,{...i,ref:n},r)}),lWe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-text-area`,{...i,ref:n},r)}),uWe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-text-field`,{...i,ref:n},r)}),dWe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-toast`,{...i,ref:n},r)}),fWe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-toolbar`,{...i,ref:n},r)}),pWe=e.default.forwardRef(function(t,n){let{onDismiss:r,children:i,...a}=t,o=e.default.useRef(null),s=e.default.useRef(r);return s.current=r,e.default.useLayoutEffect(()=>{let e=o.current;if(!e)return;let t=e=>s.current?.(e);return e.addEventListener(`dismiss`,t),()=>{e.removeEventListener(`dismiss`,t)}},[]),e.default.createElement(`rapid-tooltip`,{...a,ref:$9(o,n)},i)}),mWe=e.default.forwardRef(function(t,n){let{onExpandedChange:r,onSelectedChange:i,children:a,...o}=t,s=e.default.useRef(null),c=e.default.useRef(r);c.current=r;let l=e.default.useRef(i);return l.current=i,e.default.useLayoutEffect(()=>{let e=s.current;if(!e)return;let t=e=>c.current?.(e);e.addEventListener(`expanded-change`,t);let n=e=>l.current?.(e);return e.addEventListener(`selected-change`,n),()=>{e.removeEventListener(`expanded-change`,t),e.removeEventListener(`selected-change`,n)}},[]),e.default.createElement(`rapid-tree-item`,{...o,ref:$9(s,n)},a)}),hWe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-tree-view`,{...i,ref:n},r)}),gWe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-url-input`,{...i,ref:n},r)}),_We=e.default.forwardRef(function(t,n){let{onComplete:r,children:i,...a}=t,o=e.default.useRef(null),s=e.default.useRef(r);return s.current=r,e.default.useLayoutEffect(()=>{let e=o.current;if(!e)return;let t=e=>s.current?.(e);return e.addEventListener(`complete`,t),()=>{e.removeEventListener(`complete`,t)}},[]),e.default.createElement(`rapid-verification-code-input`,{...a,ref:$9(o,n)},i)}),vWe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-system-health-overlay`,{...i,ref:n},r)});if(typeof window<`u`){let e=window;e.rapid||(e.rapid={}),e.rapid.react=UHe}})(React);
1009
+ </svg>`})),class extends v5{}.compose(Object.assign({baseName:`tree-view`,template:(e,t)=>g5(e,t),styles:(e,t)=>O` ${_5(e,t)}`,shadowOptions:void 0},y5));let RHe=(e,t)=>O` ${b5(e,t)} a{color: var(--accent-fill-rest);opacity: 65%}a:hover{opacity: 100%}.url-input-link{font-family: var(--body-font);font-size: var(--type-ramp-base-font-size);top: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) / 2 * 1px)}`,zHe=T` ${x5(`rapid`)} `;(class extends C5{}).compose(Object.assign({baseName:`url-input`,template:zHe,styles:RHe,shadowOptions:void 0},S5));let BHe=O` ${w5} .digit .control{height: 100%;border-radius: calc(var(--control-corner-radius) * 1px);padding: 0 calc(var(--design-unit) * 2px)}.digit .control-field .control{width: 100%}.digit .root{border-style: solid;border-width: var(--neutral-stroke-width-rest, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-rest, var(--focus-stroke-outer));background-color: var(--neutral-fill-input-rest);height: calc( (((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) - 4) * 1px )}.digit:hover:not(.disabled) .root{border-style: solid;border-width: var(--neutral-stroke-width-hover, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-hover, var(--neutral-foreground-rest));background: var(--neutral-fill-input-hover);box-shadow: none}.digit:focus-within:not(.disabled) .root{border-style: solid;border-width: var(--neutral-stroke-width-focus, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-focus, var(--accent-fill-rest));background-color: var(--neutral-fill-input-focus);box-shadow: none}.label{color: var(--neutral-foreground-hint);font-weight: 700;margin: calc(var(--design-unit) * 2px) 0}.label-hidden{margin: 0}`,VHe=T5;var HHe=class extends k5{};let UHe=D5,WHe=E5;HHe.compose(Object.assign({baseName:`verification-code-input`,template:VHe,styles:BHe,shadowOptions:WHe},UHe));var GHe=/* @__PURE__ */ c({Accordion:()=>KHe,AccordionItem:()=>qHe,ActionsMenu:()=>JHe,AiCriteriaSearch:()=>YHe,AiIndicator:()=>XHe,Anchor:()=>ZHe,AnchoredRegion:()=>QHe,Avatar:()=>$He,Badge:()=>eUe,Banner:()=>tUe,Breadcrumb:()=>nUe,BreadcrumbItem:()=>rUe,Button:()=>iUe,Calendar:()=>aUe,Card:()=>oUe,CategorizedMultiselect:()=>sUe,Checkbox:()=>cUe,Combobox:()=>lUe,ConnectionIndicator:()=>uUe,DatePicker:()=>dUe,DesignSystemProvider:()=>fUe,Dialog:()=>pUe,Disclosure:()=>mUe,Divider:()=>hUe,DropdownMenu:()=>gUe,EnvironmentIndicator:()=>_Ue,FileUpload:()=>xUe,Filter:()=>SUe,FilterBar:()=>CUe,Flipper:()=>wUe,Flyout:()=>TUe,HorizontalScroll:()=>EUe,Icon:()=>DUe,Listbox:()=>OUe,ListboxOption:()=>kUe,Menu:()=>AUe,MenuItem:()=>jUe,Modal:()=>MUe,Multiselect:()=>NUe,NotificationListener:()=>PUe,NumberField:()=>FUe,Optgroup:()=>IUe,Pill:()=>LUe,Progress:()=>RUe,ProgressRing:()=>zUe,Radio:()=>BUe,RadioGroup:()=>VUe,RapidExpressionBuilder:()=>vUe,RapidRouter:()=>HUe,RapidRuleExpressionBuilder:()=>yUe,RapidValueExpressionBuilder:()=>bUe,Scheduler:()=>UUe,SchedulerCronBuilder:()=>WUe,SchedulerTimezone:()=>GUe,SearchBar:()=>qUe,SearchBarCombobox:()=>KUe,SectionNavigator:()=>JUe,SegmentedControl:()=>YUe,SegmentedItem:()=>XUe,Select:()=>ZUe,Skeleton:()=>QUe,Slider:()=>$Ue,SliderLabel:()=>eWe,Snackbar:()=>tWe,StackingIcons:()=>nWe,StatusPill:()=>rWe,Stepper:()=>iWe,StepperTab:()=>aWe,StepperTabPanel:()=>oWe,Switch:()=>sWe,SystemHealthOverlay:()=>bWe,Tab:()=>cWe,TabPanel:()=>lWe,Tabs:()=>uWe,TextArea:()=>dWe,TextField:()=>fWe,Toast:()=>pWe,Toolbar:()=>mWe,Tooltip:()=>hWe,TreeItem:()=>gWe,TreeView:()=>_We,UrlInput:()=>vWe,VerificationCodeInput:()=>yWe});function $9(...e){return t=>{for(let n of e)typeof n==`function`?n(t):n!=null&&(n.current=t)}}let KHe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-accordion`,{...i,ref:n},r)}),qHe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-accordion-item`,{...i,ref:n},r)}),JHe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-actions-menu`,{...i,ref:n},r)}),YHe=e.default.forwardRef(function(t,n){let{onCriteriaChanged:r,onValidationErrors:i,children:a,...o}=t,s=e.default.useRef(null),c=e.default.useRef(r);c.current=r;let l=e.default.useRef(i);return l.current=i,e.default.useLayoutEffect(()=>{let e=s.current;if(!e)return;let t=e=>c.current?.(e);e.addEventListener(`criteria-changed`,t);let n=e=>l.current?.(e);return e.addEventListener(`validation-errors`,n),()=>{e.removeEventListener(`criteria-changed`,t),e.removeEventListener(`validation-errors`,n)}},[]),e.default.createElement(`rapid-ai-criteria-search`,{...o,ref:$9(s,n)},a)}),XHe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-ai-indicator`,{...i,ref:n},r)}),ZHe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-anchor`,{...i,ref:n},r)}),QHe=e.default.forwardRef(function(t,n){let{onLoaded:r,onPositionchange:i,children:a,...o}=t,s=e.default.useRef(null),c=e.default.useRef(r);c.current=r;let l=e.default.useRef(i);return l.current=i,e.default.useLayoutEffect(()=>{let e=s.current;if(!e)return;let t=e=>c.current?.(e);e.addEventListener(`loaded`,t);let n=e=>l.current?.(e);return e.addEventListener(`positionchange`,n),()=>{e.removeEventListener(`loaded`,t),e.removeEventListener(`positionchange`,n)}},[]),e.default.createElement(`rapid-anchored-region`,{...o,ref:$9(s,n)},a)}),$He=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-avatar`,{...i,ref:n},r)}),eUe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-badge`,{...i,ref:n},r)}),tUe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-banner`,{...i,ref:n},r)}),nUe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-breadcrumb`,{...i,ref:n},r)}),rUe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-breadcrumb-item`,{...i,ref:n},r)}),iUe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-button`,{...i,ref:n},r)}),aUe=e.default.forwardRef(function(t,n){let{onDateselected:r,children:i,...a}=t,o=e.default.useRef(null),s=e.default.useRef(r);return s.current=r,e.default.useLayoutEffect(()=>{let e=o.current;if(!e)return;let t=e=>s.current?.(e);return e.addEventListener(`dateselected`,t),()=>{e.removeEventListener(`dateselected`,t)}},[]),e.default.createElement(`rapid-calendar`,{...a,ref:$9(o,n)},i)}),oUe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-card`,{...i,ref:n},r)}),sUe=e.default.forwardRef(function(t,n){let{onSelectionChange:r,children:i,...a}=t,o=e.default.useRef(null),s=e.default.useRef(r);return s.current=r,e.default.useLayoutEffect(()=>{let e=o.current;if(!e)return;let t=e=>s.current?.(e);return e.addEventListener(`selectionChange`,t),()=>{e.removeEventListener(`selectionChange`,t)}},[]),e.default.createElement(`rapid-categorized-multiselect`,{...a,ref:$9(o,n)},i)}),cUe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-checkbox`,{...i,ref:n},r)}),lUe=e.default.forwardRef(function(t,n){let{onOpenChange:r,onValueChange:i,children:a,...o}=t,s=e.default.useRef(null),c=e.default.useRef(r);c.current=r;let l=e.default.useRef(i);return l.current=i,e.default.useLayoutEffect(()=>{let e=s.current;if(!e)return;let t=e=>c.current?.(e);e.addEventListener(`open-change`,t);let n=e=>l.current?.(e);return e.addEventListener(`value-change`,n),()=>{e.removeEventListener(`open-change`,t),e.removeEventListener(`value-change`,n)}},[]),e.default.createElement(`rapid-combobox`,{...o,ref:$9(s,n)},a)}),uUe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-connection-indicator`,{...i,ref:n},r)}),dUe=e.default.forwardRef(function(t,n){let{onValueChanged:r,children:i,...a}=t,o=e.default.useRef(null),s=e.default.useRef(r);return s.current=r,e.default.useLayoutEffect(()=>{let e=o.current;if(!e)return;let t=e=>s.current?.(e);return e.addEventListener(`value-changed`,t),()=>{e.removeEventListener(`value-changed`,t)}},[]),e.default.createElement(`rapid-date-picker`,{...a,ref:$9(o,n)},i)}),fUe=e.default.forwardRef(function(t,n){let{onLuminanceChange:r,children:i,...a}=t,o=e.default.useRef(null),s=e.default.useRef(r);return s.current=r,e.default.useLayoutEffect(()=>{let e=o.current;if(!e)return;let t=e=>s.current?.(e);return e.addEventListener(`luminance-change`,t),()=>{e.removeEventListener(`luminance-change`,t)}},[]),e.default.createElement(`rapid-design-system-provider`,{...a,ref:$9(o,n)},i)}),pUe=e.default.forwardRef(function(t,n){let{onClose:r,children:i,...a}=t,o=e.default.useRef(null),s=e.default.useRef(r);return s.current=r,e.default.useLayoutEffect(()=>{let e=o.current;if(!e)return;let t=e=>s.current?.(e);return e.addEventListener(`close`,t),()=>{e.removeEventListener(`close`,t)}},[]),e.default.createElement(`rapid-dialog`,{...a,ref:$9(o,n)},i)}),mUe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-disclosure`,{...i,ref:n},r)}),hUe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-divider`,{...i,ref:n},r)}),gUe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-dropdown-menu`,{...i,ref:n},r)}),_Ue=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-environment-indicator`,{...i,ref:n},r)}),vUe=e.default.forwardRef(function(t,n){let{onAddGroup:r,onDelGroup:i,onAddRule:a,onDelRule:o,onUpdateGroup:s,onUpdateRule:c,children:l,...u}=t,d=e.default.useRef(null),f=e.default.useRef(r);f.current=r;let p=e.default.useRef(i);p.current=i;let m=e.default.useRef(a);m.current=a;let h=e.default.useRef(o);h.current=o;let g=e.default.useRef(s);g.current=s;let _=e.default.useRef(c);return _.current=c,e.default.useLayoutEffect(()=>{let e=d.current;if(!e)return;let t=e=>f.current?.(e);e.addEventListener(`add-group`,t);let n=e=>p.current?.(e);e.addEventListener(`del-group`,n);let r=e=>m.current?.(e);e.addEventListener(`add-rule`,r);let i=e=>h.current?.(e);e.addEventListener(`del-rule`,i);let a=e=>g.current?.(e);e.addEventListener(`update-group`,a);let o=e=>_.current?.(e);return e.addEventListener(`update-rule`,o),()=>{e.removeEventListener(`add-group`,t),e.removeEventListener(`del-group`,n),e.removeEventListener(`add-rule`,r),e.removeEventListener(`del-rule`,i),e.removeEventListener(`update-group`,a),e.removeEventListener(`update-rule`,o)}},[]),e.default.createElement(customElements.getName(Y9)??`rapid-expression-builder`,{...u,ref:$9(d,n)},l)}),yUe=e.default.forwardRef(function(t,n){let{onAddGroup:r,onDelGroup:i,onAddRule:a,onDelRule:o,onUpdateGroup:s,onUpdateRule:c,children:l,...u}=t,d=e.default.useRef(null),f=e.default.useRef(r);f.current=r;let p=e.default.useRef(i);p.current=i;let m=e.default.useRef(a);m.current=a;let h=e.default.useRef(o);h.current=o;let g=e.default.useRef(s);g.current=s;let _=e.default.useRef(c);return _.current=c,e.default.useLayoutEffect(()=>{let e=d.current;if(!e)return;let t=e=>f.current?.(e);e.addEventListener(`add-group`,t);let n=e=>p.current?.(e);e.addEventListener(`del-group`,n);let r=e=>m.current?.(e);e.addEventListener(`add-rule`,r);let i=e=>h.current?.(e);e.addEventListener(`del-rule`,i);let a=e=>g.current?.(e);e.addEventListener(`update-group`,a);let o=e=>_.current?.(e);return e.addEventListener(`update-rule`,o),()=>{e.removeEventListener(`add-group`,t),e.removeEventListener(`del-group`,n),e.removeEventListener(`add-rule`,r),e.removeEventListener(`del-rule`,i),e.removeEventListener(`update-group`,a),e.removeEventListener(`update-rule`,o)}},[]),e.default.createElement(customElements.getName(X9)??`rapid-rule-expression-builder`,{...u,ref:$9(d,n)},l)}),bUe=e.default.forwardRef(function(t,n){let{onAddGroup:r,onDelGroup:i,onAddRule:a,onDelRule:o,onUpdateGroup:s,onUpdateRule:c,children:l,...u}=t,d=e.default.useRef(null),f=e.default.useRef(r);f.current=r;let p=e.default.useRef(i);p.current=i;let m=e.default.useRef(a);m.current=a;let h=e.default.useRef(o);h.current=o;let g=e.default.useRef(s);g.current=s;let _=e.default.useRef(c);return _.current=c,e.default.useLayoutEffect(()=>{let e=d.current;if(!e)return;let t=e=>f.current?.(e);e.addEventListener(`add-group`,t);let n=e=>p.current?.(e);e.addEventListener(`del-group`,n);let r=e=>m.current?.(e);e.addEventListener(`add-rule`,r);let i=e=>h.current?.(e);e.addEventListener(`del-rule`,i);let a=e=>g.current?.(e);e.addEventListener(`update-group`,a);let o=e=>_.current?.(e);return e.addEventListener(`update-rule`,o),()=>{e.removeEventListener(`add-group`,t),e.removeEventListener(`del-group`,n),e.removeEventListener(`add-rule`,r),e.removeEventListener(`del-rule`,i),e.removeEventListener(`update-group`,a),e.removeEventListener(`update-rule`,o)}},[]),e.default.createElement(customElements.getName(Z9)??`rapid-value-expression-builder`,{...u,ref:$9(d,n)},l)}),xUe=e.default.forwardRef(function(t,n){let{onFileSelected:r,onSuccess:i,onErrorOut:a,onClear:o,children:s,...c}=t,l=e.default.useRef(null),u=e.default.useRef(r);u.current=r;let d=e.default.useRef(i);d.current=i;let f=e.default.useRef(a);f.current=a;let p=e.default.useRef(o);return p.current=o,e.default.useLayoutEffect(()=>{let e=l.current;if(!e)return;let t=e=>u.current?.(e);e.addEventListener(`file-selected`,t);let n=e=>d.current?.(e);e.addEventListener(`success`,n);let r=e=>f.current?.(e);e.addEventListener(`errorOut`,r);let i=e=>p.current?.(e);return e.addEventListener(`clear`,i),()=>{e.removeEventListener(`file-selected`,t),e.removeEventListener(`success`,n),e.removeEventListener(`errorOut`,r),e.removeEventListener(`clear`,i)}},[]),e.default.createElement(`rapid-file-upload`,{...c,ref:$9(l,n)},s)}),SUe=e.default.forwardRef(function(t,n){let{onFilterChanged:r,onFilterCleared:i,children:a,...o}=t,s=e.default.useRef(null),c=e.default.useRef(r);c.current=r;let l=e.default.useRef(i);return l.current=i,e.default.useLayoutEffect(()=>{let e=s.current;if(!e)return;let t=e=>c.current?.(e);e.addEventListener(`filter-changed`,t);let n=e=>l.current?.(e);return e.addEventListener(`filter-cleared`,n),()=>{e.removeEventListener(`filter-changed`,t),e.removeEventListener(`filter-cleared`,n)}},[]),e.default.createElement(`rapid-filter`,{...o,ref:$9(s,n)},a)}),CUe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-filter-bar`,{...i,ref:n},r)}),wUe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-flipper`,{...i,ref:n},r)}),TUe=e.default.forwardRef(function(t,n){let{onClosed:r,children:i,...a}=t,o=e.default.useRef(null),s=e.default.useRef(r);return s.current=r,e.default.useLayoutEffect(()=>{let e=o.current;if(!e)return;let t=e=>s.current?.(e);return e.addEventListener(`closed`,t),()=>{e.removeEventListener(`closed`,t)}},[]),e.default.createElement(`rapid-flyout`,{...a,ref:$9(o,n)},i)}),EUe=e.default.forwardRef(function(t,n){let{onScrollstart:r,onScrollend:i,children:a,...o}=t,s=e.default.useRef(null),c=e.default.useRef(r);c.current=r;let l=e.default.useRef(i);return l.current=i,e.default.useLayoutEffect(()=>{let e=s.current;if(!e)return;let t=e=>c.current?.(e);e.addEventListener(`scrollstart`,t);let n=e=>l.current?.(e);return e.addEventListener(`scrollend`,n),()=>{e.removeEventListener(`scrollstart`,t),e.removeEventListener(`scrollend`,n)}},[]),e.default.createElement(`rapid-horizontal-scroll`,{...o,ref:$9(s,n)},a)}),DUe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-icon`,{...i,ref:n},r)}),OUe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-listbox`,{...i,ref:n},r)}),kUe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-option`,{...i,ref:n},r)}),AUe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-menu`,{...i,ref:n},r)}),jUe=e.default.forwardRef(function(t,n){let{onOnMenuClick:r,onExpandedChange:i,children:a,...o}=t,s=e.default.useRef(null),c=e.default.useRef(r);c.current=r;let l=e.default.useRef(i);return l.current=i,e.default.useLayoutEffect(()=>{let e=s.current;if(!e)return;let t=e=>c.current?.(e);e.addEventListener(`onMenuClick`,t);let n=e=>l.current?.(e);return e.addEventListener(`expanded-change`,n),()=>{e.removeEventListener(`onMenuClick`,t),e.removeEventListener(`expanded-change`,n)}},[]),e.default.createElement(`rapid-menu-item`,{...o,ref:$9(s,n)},a)}),MUe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-modal`,{...i,ref:n},r)}),NUe=e.default.forwardRef(function(t,n){let{onSelectionChange:r,onOptionCreated:i,onClear:a,children:o,...s}=t,c=e.default.useRef(null),l=e.default.useRef(r);l.current=r;let u=e.default.useRef(i);u.current=i;let d=e.default.useRef(a);return d.current=a,e.default.useLayoutEffect(()=>{let e=c.current;if(!e)return;let t=e=>l.current?.(e);e.addEventListener(`selectionChange`,t);let n=e=>u.current?.(e);e.addEventListener(`optionCreated`,n);let r=e=>d.current?.(e);return e.addEventListener(`clear`,r),()=>{e.removeEventListener(`selectionChange`,t),e.removeEventListener(`optionCreated`,n),e.removeEventListener(`clear`,r)}},[]),e.default.createElement(`rapid-multiselect`,{...s,ref:$9(c,n)},o)}),PUe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-notification-listener`,{...i,ref:n},r)}),FUe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-number-field`,{...i,ref:n},r)}),IUe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-optgroup`,{...i,ref:n},r)}),LUe=e.default.forwardRef(function(t,n){let{onRemove:r,onPillClick:i,children:a,...o}=t,s=e.default.useRef(null),c=e.default.useRef(r);c.current=r;let l=e.default.useRef(i);return l.current=i,e.default.useLayoutEffect(()=>{let e=s.current;if(!e)return;let t=e=>c.current?.(e);e.addEventListener(`remove`,t);let n=e=>l.current?.(e);return e.addEventListener(`pill-click`,n),()=>{e.removeEventListener(`remove`,t),e.removeEventListener(`pill-click`,n)}},[]),e.default.createElement(`rapid-pill`,{...o,ref:$9(s,n)},a)}),RUe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-progress`,{...i,ref:n},r)}),zUe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-progress-ring`,{...i,ref:n},r)}),BUe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-radio`,{...i,ref:n},r)}),VUe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-radio-group`,{...i,ref:n},r)}),HUe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(customElements.getName(Q9)??`rapid-router`,{...i,ref:n},r)}),UUe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-scheduler`,{...i,ref:n},r)}),WUe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-scheduler-cron-builder`,{...i,ref:n},r)}),GUe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-scheduler-timezone`,{...i,ref:n},r)}),KUe=e.default.forwardRef(function(t,n){let{onOpenChange:r,onValueChange:i,children:a,...o}=t,s=e.default.useRef(null),c=e.default.useRef(r);c.current=r;let l=e.default.useRef(i);return l.current=i,e.default.useLayoutEffect(()=>{let e=s.current;if(!e)return;let t=e=>c.current?.(e);e.addEventListener(`open-change`,t);let n=e=>l.current?.(e);return e.addEventListener(`value-change`,n),()=>{e.removeEventListener(`open-change`,t),e.removeEventListener(`value-change`,n)}},[]),e.default.createElement(`rapid-search-bar-combobox`,{...o,ref:$9(s,n)},a)}),qUe=e.default.forwardRef(function(t,n){let{onSelectionChange:r,children:i,...a}=t,o=e.default.useRef(null),s=e.default.useRef(r);return s.current=r,e.default.useLayoutEffect(()=>{let e=o.current;if(!e)return;let t=e=>s.current?.(e);return e.addEventListener(`selectionChange`,t),()=>{e.removeEventListener(`selectionChange`,t)}},[]),e.default.createElement(`rapid-search-bar`,{...a,ref:$9(o,n)},i)}),JUe=e.default.forwardRef(function(t,n){let{onSectionNavigatorSetState:r,onSectionNavigatorSetStates:i,onSectionNavigatorClearState:a,onSectionNavigatorClearAllStates:o,children:s,...c}=t,l=e.default.useRef(null),u=e.default.useRef(r);u.current=r;let d=e.default.useRef(i);d.current=i;let f=e.default.useRef(a);f.current=a;let p=e.default.useRef(o);return p.current=o,e.default.useLayoutEffect(()=>{let e=l.current;if(!e)return;let t=e=>u.current?.(e);e.addEventListener(`section-navigator-set-state`,t);let n=e=>d.current?.(e);e.addEventListener(`section-navigator-set-states`,n);let r=e=>f.current?.(e);e.addEventListener(`section-navigator-clear-state`,r);let i=e=>p.current?.(e);return e.addEventListener(`section-navigator-clear-all-states`,i),()=>{e.removeEventListener(`section-navigator-set-state`,t),e.removeEventListener(`section-navigator-set-states`,n),e.removeEventListener(`section-navigator-clear-state`,r),e.removeEventListener(`section-navigator-clear-all-states`,i)}},[]),e.default.createElement(`rapid-section-navigator`,{...c,ref:$9(l,n)},s)}),YUe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-segmented-control`,{...i,ref:n},r)}),XUe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-segmented-item`,{...i,ref:n},r)}),ZUe=e.default.forwardRef(function(t,n){let{onOpenChange:r,onValueChange:i,children:a,...o}=t,s=e.default.useRef(null),c=e.default.useRef(r);c.current=r;let l=e.default.useRef(i);return l.current=i,e.default.useLayoutEffect(()=>{let e=s.current;if(!e)return;let t=e=>c.current?.(e);e.addEventListener(`open-change`,t);let n=e=>l.current?.(e);return e.addEventListener(`value-change`,n),()=>{e.removeEventListener(`open-change`,t),e.removeEventListener(`value-change`,n)}},[]),e.default.createElement(`rapid-select`,{...o,ref:$9(s,n)},a)}),QUe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-skeleton`,{...i,ref:n},r)}),$Ue=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-slider`,{...i,ref:n},r)}),eWe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-slider-label`,{...i,ref:n},r)}),tWe=e.default.forwardRef(function(t,n){let{onAutoDismiss:r,children:i,...a}=t,o=e.default.useRef(null),s=e.default.useRef(r);return s.current=r,e.default.useLayoutEffect(()=>{let e=o.current;if(!e)return;let t=e=>s.current?.(e);return e.addEventListener(`autoDismiss`,t),()=>{e.removeEventListener(`autoDismiss`,t)}},[]),e.default.createElement(`rapid-snackbar`,{...a,ref:$9(o,n)},i)}),nWe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-stacking-icons`,{...i,ref:n},r)}),rWe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-status-pill`,{...i,ref:n},r)}),iWe=e.default.forwardRef(function(t,n){let{onStepClick:r,onValidationFailure:i,onNextStep:a,onValidationSuccess:o,children:s,...c}=t,l=e.default.useRef(null),u=e.default.useRef(r);u.current=r;let d=e.default.useRef(i);d.current=i;let f=e.default.useRef(a);f.current=a;let p=e.default.useRef(o);return p.current=o,e.default.useLayoutEffect(()=>{let e=l.current;if(!e)return;let t=e=>u.current?.(e);e.addEventListener(`step-click`,t);let n=e=>d.current?.(e);e.addEventListener(`validation-failure`,n);let r=e=>f.current?.(e);e.addEventListener(`next-step`,r);let i=e=>p.current?.(e);return e.addEventListener(`validation-success`,i),()=>{e.removeEventListener(`step-click`,t),e.removeEventListener(`validation-failure`,n),e.removeEventListener(`next-step`,r),e.removeEventListener(`validation-success`,i)}},[]),e.default.createElement(`rapid-stepper`,{...c,ref:$9(l,n)},s)}),aWe=e.default.forwardRef(function(t,n){let{onTabClicked:r,children:i,...a}=t,o=e.default.useRef(null),s=e.default.useRef(r);return s.current=r,e.default.useLayoutEffect(()=>{let e=o.current;if(!e)return;let t=e=>s.current?.(e);return e.addEventListener(`tab-clicked`,t),()=>{e.removeEventListener(`tab-clicked`,t)}},[]),e.default.createElement(`rapid-stepper-tab`,{...a,ref:$9(o,n)},i)}),oWe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-stepper-tab-panel`,{...i,ref:n},r)}),sWe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-switch`,{...i,ref:n},r)}),cWe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-tab`,{...i,ref:n},r)}),lWe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-tab-panel`,{...i,ref:n},r)}),uWe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-tabs`,{...i,ref:n},r)}),dWe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-text-area`,{...i,ref:n},r)}),fWe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-text-field`,{...i,ref:n},r)}),pWe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-toast`,{...i,ref:n},r)}),mWe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-toolbar`,{...i,ref:n},r)}),hWe=e.default.forwardRef(function(t,n){let{onDismiss:r,children:i,...a}=t,o=e.default.useRef(null),s=e.default.useRef(r);return s.current=r,e.default.useLayoutEffect(()=>{let e=o.current;if(!e)return;let t=e=>s.current?.(e);return e.addEventListener(`dismiss`,t),()=>{e.removeEventListener(`dismiss`,t)}},[]),e.default.createElement(`rapid-tooltip`,{...a,ref:$9(o,n)},i)}),gWe=e.default.forwardRef(function(t,n){let{onExpandedChange:r,onSelectedChange:i,children:a,...o}=t,s=e.default.useRef(null),c=e.default.useRef(r);c.current=r;let l=e.default.useRef(i);return l.current=i,e.default.useLayoutEffect(()=>{let e=s.current;if(!e)return;let t=e=>c.current?.(e);e.addEventListener(`expanded-change`,t);let n=e=>l.current?.(e);return e.addEventListener(`selected-change`,n),()=>{e.removeEventListener(`expanded-change`,t),e.removeEventListener(`selected-change`,n)}},[]),e.default.createElement(`rapid-tree-item`,{...o,ref:$9(s,n)},a)}),_We=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-tree-view`,{...i,ref:n},r)}),vWe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-url-input`,{...i,ref:n},r)}),yWe=e.default.forwardRef(function(t,n){let{onComplete:r,children:i,...a}=t,o=e.default.useRef(null),s=e.default.useRef(r);return s.current=r,e.default.useLayoutEffect(()=>{let e=o.current;if(!e)return;let t=e=>s.current?.(e);return e.addEventListener(`complete`,t),()=>{e.removeEventListener(`complete`,t)}},[]),e.default.createElement(`rapid-verification-code-input`,{...a,ref:$9(o,n)},i)}),bWe=e.default.forwardRef(function(t,n){let{children:r,...i}=t;return e.default.createElement(`rapid-system-health-overlay`,{...i,ref:n},r)});if(typeof window<`u`){let e=window;e.rapid||(e.rapid={}),e.rapid.react=GHe}})(React);