@tylertech/forge 3.10.4-dev.0 → 3.10.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/lib.js CHANGED
@@ -66,7 +66,7 @@ var V3=Object.defineProperty,Am=Object.defineProperties,Tm=Object.getOwnProperty
66
66
  <slot @slotchange=${this._debounceMeterChange}></slot>
67
67
  </div>
68
68
  </div>
69
- `}_syncMeters(){this._meters.forEach(e=>{e.direction=this.direction,e.min=this.min,e.max=this.max})}_handleMeterChange(e){e.stopPropagation(),this._meters.reduce((o,a,s,r)=>(a.style.setProperty("--_meter-z-index",`${r.length-s}`),a.style.setProperty("--_meter-inset",`${o}%`),o+a.percentage),0)}_handleHeadingSlotChange(){let e=[...this._labelNodes,...this._valueNodes].filter(o=>{var a;return!!((a=o.textContent)!=null&&a.trim())});this._hasSlottedHeadingContent=!!e.length}};k2.styles=dt(of),k2.formAssociated=!0,k2[h7]=c7,i([u1({type:Number})],k2.prototype,"min",2),i([u1({type:Number})],k2.prototype,"max",2),i([u1({type:Boolean})],k2.prototype,"tickmarks",2),i([u1()],k2.prototype,"direction",2),i([u1()],k2.prototype,"density",2),i([u1()],k2.prototype,"shape",2),i([u1({attribute:"inner-shape"})],k2.prototype,"innerShape",2),i([ie()],k2.prototype,"_hasSlottedHeadingContent",2),i([j0({slot:"label"})],k2.prototype,"_labelNodes",2),i([j0({slot:"value"})],k2.prototype,"_valueNodes",2),i([qh({selector:"forge-meter"})],k2.prototype,"_meters",2),k2=i([kt(c7)],k2);function p7(){f(k2)}var af=`${b}page-state`,m7={elementName:af};var nf='<template><div class="forge-page-state" part="root"><div class="graphic" part="graphic-container"><slot name="graphic"></slot></div><div class="title" part="title-container"><slot name="title"></slot></div><div class="message" part="message-container"><slot name="message"></slot></div><div class="actions" part="actions-container"><slot name="action"></slot></div></div></template>',sf=':host{--_page-state-width:var(--forge-page-state-width, 576px);--_page-state-height:var(--forge-page-state-height, auto);--_page-state-spacing:var(--forge-page-state-spacing, var(--forge-spacing-xxxlarge, 56px));--_page-state-mobile-width:var(--forge-page-state-mobile-width, 70%);--_page-state-graphic-height:var(--forge-page-state-graphic-height, 296px);--_page-state-graphic-spacing:var(--forge-page-state-graphic-spacing, var(--forge-spacing-xxxlarge, 56px));--_page-state-mobile-graphic-height:var(--forge-page-state-mobile-graphic-height, auto);--_page-state-title-color:var(--forge-page-state-title-color, var(--forge-theme-text-medium, rgba(0, 0, 0, 0.6)));--_page-state-title-spacing:var(--forge-page-state-title-spacing, var(--forge-spacing-xxxlarge, 56px));--_page-state-title-spacing-mobile:var(--forge-page-state-title-spacing-mobile, var(--forge-spacing-large, 24px));--_page-state-message-color:var(--forge-page-state-message-color, var(--forge-theme-text-high, rgba(0, 0, 0, 0.87)));--_page-state-message-spacing:var(--forge-page-state-message-spacing, var(--forge-spacing-xxxlarge, 56px));--_page-state-message-spacing-mobile:var(--forge-page-state-message-spacing-mobile, var(--forge-spacing-large, 24px));--_page-state-actions-spacing:var(--forge-page-state-actions-spacing, 16px)}:host{display:flex;justify-content:center;align-items:center;width:100%;container-type:inline-size}:host([hidden]){display:none}.forge-page-state{width:var(--_page-state-width);margin-block:var(--_page-state-spacing);text-align:center}.forge-page-state .graphic{display:flex;justify-content:center;align-items:center;height:var(--_page-state-graphic-height);width:100%;margin-block-end:var(--_page-state-graphic-spacing)}.forge-page-state .graphic ::slotted([slot=graphic]){height:100%;width:100%}.forge-page-state .title{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-heading8-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-heading8-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-heading8-font-size-scale, 2.25)));font-weight:var(--forge-typography-heading8-font-weight,500);line-height:var(--forge-typography-heading8-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-heading8-line-height-scale, 2.625)));letter-spacing:var(--forge-typography-heading8-letter-spacing, -.0027777778em);text-transform:var(--forge-typography-heading8-text-transform,inherit);text-decoration:var(--forge-typography-heading8-text-decoration,inherit);--_page-state-title-spacing:var(--_page-state-title-spacing-mobile);color:var(--_page-state-title-color);margin-block:var(--_page-state-title-spacing)}.forge-page-state .message{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-body4-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-body4-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-font-size-scale, 1.25)));font-weight:var(--forge-typography-body4-font-weight,400);line-height:var(--forge-typography-body4-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-line-height-scale, 1.75)));letter-spacing:var(--forge-typography-body4-letter-spacing, .005em);text-transform:var(--forge-typography-body4-text-transform,inherit);text-decoration:var(--forge-typography-body4-text-decoration,inherit);--_page-state-message-spacing:var(--_page-state-message-spacing-mobile);color:var(--_page-state-message-color);margin-block-end:var(--_page-state-message-spacing)}.forge-page-state .actions{display:grid;justify-content:center;grid-auto-flow:column;gap:var(--_page-state-actions-spacing)}@container (max-width:599px){.forge-page-state{--_page-state-width:var(--_page-state-mobile-width)}.forge-page-state .graphic{--_page-state-graphic-height:var(--_page-state-mobile-graphic-height);--_page-state-graphic-spacing:var(--forge-page-state-graphic-spacing, 0)}.forge-page-state .title{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-heading5-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-heading5-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-heading5-font-size-scale, 1.5)));font-weight:var(--forge-typography-heading5-font-weight,500);line-height:var(--forge-typography-heading5-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-heading5-line-height-scale, 1.75)));letter-spacing:var(--forge-typography-heading5-letter-spacing, 0);text-transform:var(--forge-typography-heading5-text-transform,inherit);text-decoration:var(--forge-typography-heading5-text-decoration,inherit)}.forge-page-state .message{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-body2-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-body2-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-font-size-scale, 1)));font-weight:var(--forge-typography-body2-font-weight,400);line-height:var(--forge-typography-body2-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-line-height-scale, 1.375)));letter-spacing:var(--forge-typography-body2-letter-spacing, .015625em);text-transform:var(--forge-typography-body2-text-transform,inherit);text-decoration:var(--forge-typography-body2-text-decoration,inherit)}.forge-page-state .actions{grid-auto-flow:row}}',Da=class extends M{constructor(){super(),z(this,nf,sf)}};Da=i([y({name:m7.elementName})],Da);function d7(){f(Da)}var g7=`${b}paginator`,w7={PAGE_INDEX:"page-index",PAGE_SIZE:"page-size",OFFSET:"offset",TOTAL:"total",PAGE_SIZE_OPTIONS:"page-size-options",LABEL:"label",FIRST_LAST:"first-last",FIRST:"first",DISABLED:"disabled",ALTERNATIVE:"alternative"},rf=d({},w7),lf={LABEL:".label > slot[name=label]",PAGE_SIZE_SELECT:".page-size-options",RANGE_LABEL:".range-label > slot[name=range-label]",FIRST_PAGE_BUTTON:".first-page",FIRST_PAGE_CONTAINER:"#first-page-container",PREVIOUS_PAGE_BUTTON:".previous-page",PREVIOUS_PAGE_CONTAINER:"#previous-page-container",NEXT_PAGE_BUTTON:".next-page",NEXT_PAGE_CONTAINER:"#next-page-container",LAST_PAGE_BUTTON:".last-page",LAST_PAGE_CONTAINER:"#last-page-container",RANGE_LABEL_ALTERNATIVE:".alternative-range-label > slot[name=alternative-range-label]"},cf={CHANGE:`${g7}-change`},hf={DEFAULT_PAGE_INDEX:0,DEFAULT_TOTAL:0,DEFAULT_PAGE_SIZE:25,DEFAULT_PAGE_SIZE_OPTIONS:[5,15,25,50,100]},vf={DEFAULT_LABEL:"Rows per page:",RANGE_SEPARATOR_LABEL:"of"},Z={elementName:g7,observedAttributes:w7,attributes:rf,selectors:lf,events:cf,numbers:hf,strings:vf};var s4=class{constructor(t){this._adapter=t;this._pageIndex=Z.numbers.DEFAULT_PAGE_INDEX;this._pageSize=Z.numbers.DEFAULT_PAGE_SIZE;this._offset=0;this._total=Z.numbers.DEFAULT_TOTAL;this._pageSizeOptions=Z.numbers.DEFAULT_PAGE_SIZE_OPTIONS.map(t=>({label:`${t}`,value:`${t}`}));this._label=Z.strings.DEFAULT_LABEL;this._firstLast=!1;this._first=!1;this._disabled=!1;this._alternative=!1;this._firstPageListener=this._onFirstPage.bind(this);this._previousPageListener=this._onPreviousPage.bind(this);this._nextPageListener=this._onNextPage.bind(this);this._lastPageListener=this._onLastPage.bind(this);this._pageSizeListener=this._onPageSizeChanged.bind(this)}initialize(){this._updateRangeLabel(),this._adapter.setLabel(this._label),this._adapter.setPageSizeOptions(this._pageSizeOptions),this._adapter.setPageSize(this._pageSize),this._attachListeners(),this._toggleFirstLastButtons(),this._syncInteractionState()}focus(t){this._adapter.setFocus(t)}_attachListeners(){this._adapter.attachPageSizeChangeListener(this._pageSizeListener),this._adapter.attachFirstPageListener(this._firstPageListener),this._adapter.attachPreviousPageListener(this._previousPageListener),this._adapter.attachNextPageListener(this._nextPageListener),this._adapter.attachLastPageListener(this._lastPageListener)}_onFirstPage(t){if(t.stopPropagation(),!this._hasFirstPage())return;let e=0;this._dispatchChangeEvent("first-page",{pageIndex:e})&&this._applyPageIndex(e)}_onPreviousPage(t){if(t.stopPropagation(),!this._hasPreviousPage())return;let e=this._pageIndex-1;this._dispatchChangeEvent("previous-page",{pageIndex:e})&&this._applyPageIndex(e)}_onNextPage(t){if(t.stopPropagation(),!this._hasNextPage())return;let e=this._pageIndex+1;this._dispatchChangeEvent("next-page",{pageIndex:e})&&this._applyPageIndex(e)}_onLastPage(t){if(t.stopPropagation(),!this._hasLastPage())return;let e=this._getMaxPages();this._dispatchChangeEvent("last-page",{pageIndex:e})&&this._applyPageIndex(e)}_onPageSizeChanged(t){t.stopPropagation();let e=Number(t.detail);this._dispatchChangeEvent("page-size",{pageIndex:0,pageSize:e})?(this._applyPageIndex(0),this._applyPageSize(e)):t.preventDefault()}_dispatchChangeEvent(t,{pageSize:e=this._pageSize,pageIndex:o=this._pageIndex}={}){let a=o*e,s={type:t,pageSize:e,pageIndex:o,offset:a},r=new CustomEvent(Z.events.CHANGE,{detail:s,bubbles:!0,cancelable:!0});return this._adapter.dispatchHostEvent(r),!r.defaultPrevented}_getMaxPages(){return Math.ceil(this._total/this._pageSize)-1}_updateRangeLabel(){let t;if(typeof this._rangeLabelCallback=="function"){let e={pageSize:this._pageSize,pageIndex:this._pageIndex,offset:this._offset,pageStart:this._pageIndex*this._pageSize+1,pageEnd:Math.min((this._pageIndex+1)*this._pageSize,this._total),total:this._total};t=this._rangeLabelCallback.call(null,e)}else if(this.pageSize>1){let e=this._pageIndex*this._pageSize,a=(Math.floor(e/this._pageSize)||0)*this._pageSize+1,s=e<this._total?Math.min(e+this._pageSize,this._total):e+this._pageSize;t=`${a}-${s} ${Z.strings.RANGE_SEPARATOR_LABEL} ${this._total}`}else t=`${this._pageIndex+1} ${Z.strings.RANGE_SEPARATOR_LABEL} ${this._total}`;this._adapter.setRangeLabel(t)}_syncInteractionState(){if(this._disabled)return;this._adapter.setFirstPageButtonEnabled(!0),this._adapter.setPreviousPageButtonEnabled(!0),this._adapter.setNextPageButtonEnabled(!0),this._adapter.setLastPageButtonEnabled(!0);let t=[];this._hasFirstPage()||t.push("first"),this._hasPreviousPage()||t.push("previous"),this._hasNextPage()||t.push("next"),this._hasLastPage()||t.push("last"),this._adapter.tryDisableFields(t)}_toggleFirstLastButtons(){this._toggleFirstButton(),this._firstLast?this._adapter.hasLastPageButton()||this._adapter.showLastPageButton():this._adapter.hasLastPageButton()&&this._adapter.hideLastPageButton()}_toggleFirstButton(){this._first||this._firstLast?this._adapter.hasFirstPageButton()||this._adapter.showFirstPageButton():this._adapter.hasFirstPageButton()&&this._adapter.hideFirstPageButton()}_hasFirstPage(){return this._hasPreviousPage()}_hasPreviousPage(){return this._pageIndex>0&&this._pageSize>0}_hasNextPage(){let t=this._getMaxPages();return this._pageIndex<t&&this._pageSize>0}_hasLastPage(){return this._hasNextPage()}_computePageIndexFromOffset(t){t>=this._total&&(this._total>=this._pageSize?t=this._total-this._pageSize:t=0);let e=Math.min(Math.max(t,0),this._total),o=Math.floor(e/this._pageSize);this._applyPageIndex(o)}_computeOffset(){this._total>0&&(this._offset=this._pageIndex*this._pageSize)}_applyPageIndex(t){this._pageIndex=t,this._computeOffset(),this._updateRangeLabel(),this._syncInteractionState(),this._adapter.toggleHostAttribute(Z.attributes.PAGE_INDEX,this._pageIndex!=null,this._pageIndex.toString())}_applyPageSize(t){this._pageSize=t,this._adapter.setPageSize(this._pageSize),this._computeOffset(),this._updateRangeLabel(),this._syncInteractionState()}_applyTotal(t){this._total=t,this._updateRangeLabel(),this._offset>0&&this._total>0&&this._computePageIndexFromOffset(this._offset),this._syncInteractionState()}_applyDisabled(t){this._disabled=t,t?(this._adapter.setPageSizeSelectEnabled(!1),this._adapter.setFirstPageButtonEnabled(!1),this._adapter.setPreviousPageButtonEnabled(!1),this._adapter.setNextPageButtonEnabled(!1),this._adapter.setLastPageButtonEnabled(!1)):(this._adapter.setPageSizeSelectEnabled(!0),this._syncInteractionState())}get pageIndex(){return this._pageIndex}set pageIndex(t){this._pageIndex!==t&&(O(t)?this._applyPageIndex(t):this._adapter.removeHostAttribute(Z.attributes.PAGE_INDEX))}get pageSize(){return this._pageSize}set pageSize(t){this._pageSize!==t&&(this._applyPageSize(t),this._adapter.setHostAttribute(Z.attributes.PAGE_SIZE,`${this._pageSize}`))}get offset(){return this._offset}set offset(t){this._offset!==t&&(this._offset=t,this._computePageIndexFromOffset(t))}get total(){return this._total}set total(t){this._total!==t&&(this._applyTotal(t),this._adapter.setHostAttribute(Z.attributes.TOTAL,`${this._total}`))}get pageSizeOptions(){return this._pageSizeOptions.map(t=>Number(t.value))}set pageSizeOptions(t){if(ht(t)&&t.length){if(this._pageSizeOptions=t.map(e=>({label:e.toString(),value:e.toString()})).sort((e,o)=>K(e.value)-K(o.value)),this._adapter.setPageSizeOptions(this._pageSizeOptions),this._adapter.attachPageSizeChangeListener(this._pageSizeListener),this._adapter.setPageSizeVisibility(!0),O(this._pageSize)&&this._pageSizeOptions.length&&!this._pageSizeOptions.find(e=>K(e.value)===this._pageSize)){let e=K(this._pageSizeOptions[0].value);this._applyPageSize(e)}}else t!=null&&t.length||(this._adapter.detachPageSizeChangeListener(this._pageSizeListener),this._adapter.setPageSizeVisibility(!1))}get label(){return this._label}set label(t){this._label!==t&&(this._label=t,this._adapter.setLabel(this._label),O(this._label)&&this._label.length?this._adapter.setHostAttribute(Z.attributes.LABEL,String(this._label)):this._adapter.removeHostAttribute(Z.attributes.LABEL))}get firstLast(){return this._firstLast}set firstLast(t){t=!!t,this._firstLast!==t&&(this._firstLast=t,this._toggleFirstLastButtons(),this._adapter.toggleHostAttribute(Z.attributes.FIRST_LAST,this._firstLast))}get first(){return this._first}set first(t){t=!!t,this._first!==t&&(this._first=t,this._toggleFirstButton(),this._adapter.toggleHostAttribute(Z.attributes.FIRST,this._first))}get disabled(){return this._disabled}set disabled(t){t=!!t,this._disabled!==t&&(this._applyDisabled(t),this._adapter.toggleHostAttribute(Z.attributes.DISABLED,this._disabled))}get alternative(){return this._alternative}set alternative(t){t=!!t,t!==this._alternative&&(this._alternative=t,this._adapter.toggleHostAttribute(Z.attributes.ALTERNATIVE,this._alternative))}get rangeLabelCallback(){return this._rangeLabelCallback}set rangeLabelCallback(t){this._rangeLabelCallback=t,this._updateRangeLabel()}};var r4=class extends I{constructor(t){super(t),this._labelElement=w(t,Z.selectors.LABEL),this._pageSizeSelect=w(t,Z.selectors.PAGE_SIZE_SELECT),this._rangeLabel=w(t,Z.selectors.RANGE_LABEL),this._rangeLabelAlternative=w(t,Z.selectors.RANGE_LABEL_ALTERNATIVE),this._firstPageButton=w(t,Z.selectors.FIRST_PAGE_BUTTON),this._firstPageContainer=w(t,Z.selectors.FIRST_PAGE_CONTAINER),this._previousPageButton=w(t,Z.selectors.PREVIOUS_PAGE_BUTTON),this._previousPageContainer=w(t,Z.selectors.PREVIOUS_PAGE_CONTAINER),this._nextPageButton=w(t,Z.selectors.NEXT_PAGE_BUTTON),this._nextPageContainer=w(t,Z.selectors.NEXT_PAGE_CONTAINER),this._lastPageButton=w(t,Z.selectors.LAST_PAGE_BUTTON),this._lastPageContainer=w(t,Z.selectors.LAST_PAGE_CONTAINER)}setLabel(t){this._labelElement.textContent=t}setPageSizeOptions(t){n2(this._pageSizeSelect),this._pageSizeSelect.options=t}setPageSize(t){this._pageSizeSelect.value=t.toString()}setRangeLabel(t){this._rangeLabel.innerText=t,this._rangeLabelAlternative.innerText=t}hasFirstPageButton(){return!!w(this._component,Z.selectors.FIRST_PAGE_BUTTON)}showFirstPageButton(){this._firstPagePlaceholder=Za(this._component,!0,Z.elementName,Z.selectors.FIRST_PAGE_CONTAINER,this._firstPageContainer,this._firstPagePlaceholder)}hideFirstPageButton(){this._firstPagePlaceholder=Za(this._component,!1,Z.elementName,Z.selectors.FIRST_PAGE_CONTAINER,this._firstPageContainer,this._firstPagePlaceholder)}hasLastPageButton(){return!!w(this._component,Z.selectors.LAST_PAGE_BUTTON)}showLastPageButton(){this._lastPagePlaceholder=Za(this._component,!0,Z.elementName,Z.selectors.LAST_PAGE_CONTAINER,this._lastPageContainer,this._lastPagePlaceholder)}hideLastPageButton(){this._lastPagePlaceholder=Za(this._component,!1,Z.elementName,Z.selectors.LAST_PAGE_CONTAINER,this._lastPageContainer,this._lastPagePlaceholder)}attachPageSizeChangeListener(t){this._pageSizeSelect.addEventListener("change",t)}detachPageSizeChangeListener(t){this._pageSizeSelect.removeEventListener("change",t)}attachFirstPageListener(t){this._firstPageButton.addEventListener("click",t)}attachPreviousPageListener(t){this._previousPageButton.addEventListener("click",t)}attachNextPageListener(t){this._nextPageButton.addEventListener("click",t)}attachLastPageListener(t){this._lastPageButton.addEventListener("click",t)}setFirstPageButtonEnabled(t){this._firstPageButton.disabled=!t}setPreviousPageButtonEnabled(t){this._previousPageButton.disabled=!t}setNextPageButtonEnabled(t){this._nextPageButton.disabled=!t}setLastPageButtonEnabled(t){this._lastPageButton.disabled=!t}setPageSizeSelectEnabled(t){this._pageSizeSelect.disabled=!t}setPageSizeVisibility(t){this._pageSizeSelect.hidden=!t}setFocus(t){this._tryFocus([this._pageSizeSelect,this._firstPageButton,this._previousPageButton,this._nextPageButton,this._lastPageButton],t)}tryDisableFields(t){let e={first:()=>this.setFirstPageButtonEnabled(!1),last:()=>this.setLastPageButtonEnabled(!1),previous:()=>this.setPreviousPageButtonEnabled(!1),next:()=>this.setNextPageButtonEnabled(!1)};t.forEach(o=>{var a;return(a=e[o])==null?void 0:a.call(e)})}_tryFocus(t,e){let o=typeof(e==null?void 0:e.preventScroll)=="boolean"?e.preventScroll:!0;for(let a of t)if(a&&a.isConnected&&!a.disabled&&a.style.display!=="none"){a.focus(S(d({},e),{preventScroll:o}));return}}};function u7(n){class t extends n{constructor(...o){super(...o)}initializeFieldInstance(o){this._fieldElement=o,this._fieldElement.shadowRoot||window.customElements.upgrade(this._fieldElement)}attributeChangedCallback(o,a,s){var r;switch(o){case Y.observedAttributes.LABEL_POSITION:this.labelPosition=s;return;case Y.observedAttributes.LABEL_ALIGNMENT:this.labelAlignment=s;return;case Y.observedAttributes.INVALID:this.invalid=p(s);return;case Y.observedAttributes.REQUIRED:this.required=p(s);return;case Y.observedAttributes.OPTIONAL:this.optional=p(s);return;case Y.observedAttributes.DISABLED:this.disabled=p(s);return;case Y.observedAttributes.FLOAT_LABEL:this.floatLabel=p(s);return;case Y.observedAttributes.VARIANT:this.variant=s;return;case Y.observedAttributes.THEME:this.theme=s;return;case Y.observedAttributes.SHAPE:this.shape=s;return;case Y.observedAttributes.DENSITY:this.density=s;return;case Y.observedAttributes.DENSE:this.dense=p(s);return;case Y.observedAttributes.POPOVER_ICON:this.popoverIcon=p(s);return;case Y.observedAttributes.SUPPORT_TEXT_INSET:this.supportTextInset=s;return}(r=super.attributeChangedCallback)==null||r.call(this,o,a,s)}get labelPosition(){return this._fieldElement.labelPosition}set labelPosition(o){this._fieldElement.labelPosition!==o&&(this._fieldElement.labelPosition=o,this.setAttribute(L.attributes.LABEL_POSITION,o))}get labelAlignment(){return this._fieldElement.labelAlignment}set labelAlignment(o){this._fieldElement.labelAlignment!==o&&(this._fieldElement.labelAlignment=o,this.setAttribute(L.attributes.LABEL_ALIGNMENT,o))}get invalid(){return this._fieldElement.invalid}set invalid(o){this._fieldElement.invalid!==o&&(this._fieldElement.invalid=o,this.toggleAttribute(L.attributes.INVALID,o))}get required(){return this._fieldElement.required}set required(o){this._fieldElement.required!==o&&(this._fieldElement.required=o,this.toggleAttribute(L.attributes.REQUIRED,o))}get optional(){return this._fieldElement.optional}set optional(o){this._fieldElement.optional!==o&&(this._fieldElement.optional=o,this.toggleAttribute(L.attributes.OPTIONAL,o))}get disabled(){return this._fieldElement.disabled}set disabled(o){this._fieldElement.disabled!==o&&(this._fieldElement.disabled=o,this.toggleAttribute(L.attributes.DISABLED,o))}get floatLabel(){return this._fieldElement.floatLabel}set floatLabel(o){this._fieldElement.floatLabel!==o&&(this._fieldElement.floatLabel=o,this.toggleAttribute(L.attributes.FLOAT_LABEL,o))}get variant(){return this._fieldElement.variant}set variant(o){this._fieldElement.variant!==o&&(this._fieldElement.variant=o,this.setAttribute(L.attributes.VARIANT,o))}get theme(){return this._fieldElement.theme}set theme(o){this._fieldElement.theme!==o&&(this._fieldElement.theme=o,this.setAttribute(L.attributes.THEME,o))}get shape(){return this._fieldElement.shape}set shape(o){this._fieldElement.shape!==o&&(this._fieldElement.shape=o,this.setAttribute(L.attributes.SHAPE,o))}get density(){return this._fieldElement.density}set density(o){this._fieldElement.density!==o&&(this._fieldElement.density=o,this.setAttribute(L.attributes.DENSITY,o))}get dense(){return this._fieldElement.dense}set dense(o){this._fieldElement.dense!==o&&(this._fieldElement.dense=o,this.toggleAttribute(L.attributes.DENSE,o))}get popoverIcon(){return this._fieldElement.popoverIcon}set popoverIcon(o){this._fieldElement.popoverIcon!==o&&(this._fieldElement.popoverIcon=o,this.toggleAttribute(L.attributes.POPOVER_ICON,o))}get supportTextInset(){return this._fieldElement.supportTextInset}set supportTextInset(o){this._fieldElement.supportTextInset!==o&&(this._fieldElement.supportTextInset=o,this.setAttribute(L.attributes.SUPPORT_TEXT_INSET,o))}floatLabelWithoutAnimation(o){this._fieldElement.floatLabelWithoutAnimation(o)}}return t}var pf=`${b}scaffold`,_7={VIEWPORT:"viewport"},mf=d({},_7),Pa={elementName:pf,observedAttributes:_7,attributes:mf};var df='<template><div class="forge-scaffold" part="root"><slot name="left"></slot><div class="header" part="header"><slot name="header"></slot></div><div class="body" part="body"><slot name="body-left"></slot><slot name="body-header"></slot><slot name="body"></slot><slot name="body-footer"></slot><slot name="body-right"></slot></div><slot name="footer"></slot><slot name="right"></slot></div></template>',gf=':host{--_scaffold-height:var(--forge-scaffold-height, 100%);--_scaffold-width:var(--forge-scaffold-width, 100%)}:host{display:block;width:var(--_scaffold-width);height:var(--_scaffold-height)}:host([hidden]){display:none}.forge-scaffold{--_scaffold-overflow:var(--forge-scaffold-overflow, initial);--_scaffold-body-position:var(--forge-scaffold-body-position, relative)}.forge-scaffold{position:relative;display:grid;grid-template-areas:"left header right" "left body right" "left footer right";grid-template-rows:auto 1fr auto;grid-template-columns:auto 1fr auto;height:var(--_scaffold-height);width:var(--_scaffold-width);overflow:var(--_scaffold-overflow)}.header{grid-area:header;min-width:0;min-height:0}.body{position:var(--_scaffold-body-position);display:grid;grid-area:body;grid-template-areas:"body-left body-header body-right" "body-left body-inner body-right" "body-left body-footer body-right";grid-template-rows:auto 1fr auto;grid-template-columns:auto 1fr auto;width:var(--_scaffold-width);min-width:0;min-height:0;overflow:var(--_scaffold-overflow)}::slotted(*){min-width:0;min-height:0}::slotted([slot=left]){grid-area:left}::slotted([slot=right]){grid-area:right}::slotted([slot=body-left]){grid-area:body-left}::slotted([slot=body-right]){grid-area:body-right}::slotted([slot=body-header]){grid-area:body-header}::slotted([slot=body]){overflow:auto;grid-area:body-inner}::slotted([slot=body-footer]){grid-area:body-footer}::slotted([slot=footer]){grid-area:footer}::slotted([slot=body-left]),::slotted([slot=body-right]),::slotted([slot=body]),::slotted([slot=left]),::slotted([slot=right]){overflow:auto}:host([viewport]){--_scaffold-height:var(--forge-scaffold-height, 100dvh);--_scaffold-width:var(--forge-scaffold-width, 100dvw)}',Je=class extends M{static get observedAttributes(){return Object.values(Pa.observedAttributes)}constructor(){super(),z(this,df,gf)}attributeChangedCallback(t,e,o){switch(t){case Pa.observedAttributes.VIEWPORT:this.viewport=o!==null;break}}get viewport(){return this.hasAttribute(Pa.attributes.VIEWPORT)}set viewport(t){this.toggleAttribute(Pa.attributes.VIEWPORT,!!t)}};Je=i([y({name:Pa.elementName})],Je);function x7(){f(Je)}var i4=class extends I{constructor(t){super(t)}};var f7=`${b}option`,wf={DISABLED:"disabled",DIVIDER:"divider",LABEL:"label",SECONDARY_LABEL:"secondary-label",LEADING_ICON_CLASS:"leading-icon-class",LEADING_ICON_TYPE:"leading-icon-type",LEADING_ICON:"leading-icon",OPTION_CLASS:"option-class",TRAILING_ICON_CLASS:"trailing-icon-class",TRAILING_ICON_TYPE:"trailing-icon-type",TRAILING_ICON:"trailing-icon",TOOLTIP:"tooltip",VALUE:"value"},uf={VALUE_CHANGE:`${f7}-value-change`},R={elementName:f7,attributes:wf,events:uf};var l4=class{constructor(t){this._adapter=t;this._disabled=!1;this._divider=!1;this._optionClass=[]}get value(){return this._value}set value(t){this._value!==t&&(this._value=t,this._adapter.emitHostEvent(R.events.VALUE_CHANGE,this._value))}get label(){return this._label}set label(t){this._label!==t&&(this._label=t,this._adapter.toggleHostAttribute(R.attributes.LABEL,!!this._label,this._label))}get secondaryLabel(){return this._secondaryLabel}set secondaryLabel(t){this._secondaryLabel!==t&&(this._secondaryLabel=t,this._adapter.toggleHostAttribute(R.attributes.SECONDARY_LABEL,!!this._secondaryLabel,this._secondaryLabel))}get disabled(){return this._disabled}set disabled(t){this._disabled!==t&&(this._disabled=t,this._adapter.toggleHostAttribute(R.attributes.DISABLED,this._disabled))}get divider(){return this._divider}set divider(t){this._divider!==t&&(this._divider=t,this._adapter.toggleHostAttribute(R.attributes.DIVIDER,this._divider))}get optionClass(){return this._optionClass}set optionClass(t){t?typeof t=="string"&&(t=t.split(" ")):t=[],t=t.filter(e=>e&&!/\s+/.test(e)),this._optionClass.toString()!==t.toString()&&(this._optionClass=t,this._adapter.toggleHostAttribute(R.attributes.OPTION_CLASS,this._optionClass&&!!this._optionClass.length,this._optionClass.join(" ")))}get leadingIcon(){return this._leadingIcon}set leadingIcon(t){this._leadingIcon!==t&&(this._leadingIcon=t,this._adapter.toggleHostAttribute(R.attributes.LEADING_ICON,!!this._leadingIcon,this._leadingIcon))}get leadingIconClass(){return this._leadingIconClass}set leadingIconClass(t){this._leadingIconClass!==t&&(this._leadingIconClass=t,this._adapter.toggleHostAttribute(R.attributes.LEADING_ICON_CLASS,!!this._leadingIconClass,this._leadingIconClass))}get leadingIconType(){return this._leadingIconType}set leadingIconType(t){this._leadingIconType!==t&&(this._leadingIconType=t,this._adapter.toggleHostAttribute(R.attributes.LEADING_ICON_TYPE,!!this._leadingIconType,this._leadingIconType))}get leadingIconComponentProps(){return this._leadingIconComponentProps}set leadingIconComponentProps(t){this._leadingIconComponentProps!==t&&(this._leadingIconComponentProps=t)}get trailingIcon(){return this._trailingIcon}set trailingIcon(t){this._trailingIcon!==t&&(this._trailingIcon=t,this._adapter.toggleHostAttribute(R.attributes.TRAILING_ICON,!!this._trailingIcon,this._trailingIcon))}get trailingIconClass(){return this._trailingIconClass}set trailingIconClass(t){this._trailingIconClass!==t&&(this._trailingIconClass=t,this._adapter.toggleHostAttribute(R.attributes.TRAILING_ICON_CLASS,!!this._trailingIconClass,this._trailingIconClass))}get trailingIconType(){return this._trailingIconType}set trailingIconType(t){this._trailingIconType!==t&&(this._trailingIconType=t,this._adapter.toggleHostAttribute(R.attributes.TRAILING_ICON_TYPE,!!this._trailingIconType,this._trailingIconType))}get trailingIconComponentProps(){return this._trailingIconComponentProps}set trailingIconComponentProps(t){this._trailingIconComponentProps!==t&&(this._trailingIconComponentProps=t)}get leadingBuilder(){return this._leadingBuilder}set leadingBuilder(t){this._leadingBuilder!==t&&(this._leadingBuilder=t)}get trailingBuilder(){return this._trailingBuilder}set trailingBuilder(t){this._trailingBuilder!==t&&(this._trailingBuilder=t)}get tooltip(){return this._tooltip}set tooltip(t){this._tooltip!==t&&(this._tooltip=t)}};var $1=class extends M{static get observedAttributes(){return[R.attributes.VALUE,R.attributes.LABEL,R.attributes.SECONDARY_LABEL,R.attributes.DISABLED,R.attributes.DIVIDER,R.attributes.OPTION_CLASS,R.attributes.LEADING_ICON,R.attributes.LEADING_ICON_CLASS,R.attributes.LEADING_ICON_TYPE,R.attributes.TRAILING_ICON,R.attributes.TRAILING_ICON_CLASS,R.attributes.TRAILING_ICON_TYPE,R.attributes.TOOLTIP]}constructor(){super(),this._core=new l4(new i4(this))}attributeChangedCallback(t,e,o){switch(t){case R.attributes.VALUE:this.value=o;break;case R.attributes.LABEL:this.label=o;break;case R.attributes.SECONDARY_LABEL:this.secondaryLabel=o;break;case R.attributes.DISABLED:this.disabled=p(o);break;case R.attributes.DIVIDER:this.divider=this.hasAttribute(R.attributes.DIVIDER);break;case R.attributes.OPTION_CLASS:this.optionClass=o;break;case R.attributes.LEADING_ICON:this.leadingIcon=o;break;case R.attributes.LEADING_ICON_CLASS:this.leadingIconClass=o;break;case R.attributes.LEADING_ICON_TYPE:this.leadingIconType=o;break;case R.attributes.TRAILING_ICON:this.trailingIcon=o;break;case R.attributes.TRAILING_ICON_CLASS:this.trailingIconClass=o;break;case R.attributes.TRAILING_ICON_TYPE:this.trailingIconType=o;break;case R.attributes.TOOLTIP:this.tooltip=o?{text:o}:void 0;break}}};i([c()],$1.prototype,"value",2),i([c()],$1.prototype,"label",2),i([c()],$1.prototype,"secondaryLabel",2),i([c()],$1.prototype,"disabled",2),i([c()],$1.prototype,"divider",2),i([c()],$1.prototype,"optionClass",2),i([c()],$1.prototype,"leadingIcon",2),i([c()],$1.prototype,"leadingIconClass",2),i([c()],$1.prototype,"leadingIconType",2),i([c()],$1.prototype,"leadingIconComponentProps",2),i([c()],$1.prototype,"trailingIcon",2),i([c()],$1.prototype,"trailingIconClass",2),i([c()],$1.prototype,"trailingIconType",2),i([c()],$1.prototype,"trailingIconComponentProps",2),i([c()],$1.prototype,"leadingBuilder",2),i([c()],$1.prototype,"trailingBuilder",2),i([c()],$1.prototype,"tooltip",2),$1=i([y({name:R.elementName})],$1);function b7(){f($1)}var _f=`${b}option-group`,xf={LABEL:"label"},vo={elementName:_f,attributes:xf};var t0=class extends M{static get observedAttributes(){return[vo.attributes.LABEL]}constructor(){super()}attributeChangedCallback(t,e,o){switch(t){case vo.attributes.LABEL:this.label=o;break}}get label(){return this._label}set label(t){this._label!==t&&(this._label=t||"",this.setAttribute(vo.attributes.LABEL,this._label))}get text(){return this._label}set text(t){this.label=t}};t0=i([y({name:vo.elementName})],t0);function y7(){f(t0)}var M7=(e=>(e[e.Option=0]="Option",e[e.Group=1]="Group",e))(M7||{});function w3(n,t){let e=n.some(a=>u3(a)),o=n.some(a=>ff(a));return e&&t===1||o&&t===0}function u3(n){return O(n)&&vt(n)&&Object.prototype.hasOwnProperty.call(n,"options")}function ff(n){return O(n)&&vt(n)&&Object.prototype.hasOwnProperty.call(n,"label")&&Object.prototype.hasOwnProperty.call(n,"value")}var Na=class extends I{constructor(t){super(t)}get popupElement(){var t;return(t=this._listDropdown)==null?void 0:t.dropdownElement}getOptions(){let t=Array.from(this._component.querySelectorAll(vo.elementName));if(t.length)return t.map(e=>{let o=Array.from(e.querySelectorAll(R.elementName)),a=this._createOptionsFromElements(o);return{text:e.label,builder:e.builder,value:e.value,options:a}});{let e=Array.from(this._component.querySelectorAll(R.elementName));return this._createOptionsFromElements(e)}}_createOptionsFromElements(t){return t.map(e=>{let o=e.hasAttribute(R.attributes.OPTION_CLASS)?e.getAttribute(R.attributes.OPTION_CLASS):e.optionClass;return typeof o=="string"&&(o=o.split(" ")),{label:e.hasAttribute(R.attributes.LABEL)?e.getAttribute(R.attributes.LABEL):O(e.label)?e.label:e.innerText,secondaryLabel:e.hasAttribute(R.attributes.SECONDARY_LABEL)?e.getAttribute(R.attributes.SECONDARY_LABEL):O(e.secondaryLabel)?e.secondaryLabel:void 0,value:e.hasAttribute(R.attributes.VALUE)?e.getAttribute(R.attributes.VALUE):e.value,disabled:e.hasAttribute(R.attributes.DISABLED),divider:e.hasAttribute(R.attributes.DIVIDER),optionClass:o,leadingIcon:e.hasAttribute(R.attributes.LEADING_ICON)?e.getAttribute(R.attributes.LEADING_ICON):e.leadingIcon,leadingIconClass:e.hasAttribute(R.attributes.LEADING_ICON_CLASS)?e.getAttribute(R.attributes.LEADING_ICON_CLASS):e.leadingIconClass,leadingIconType:e.hasAttribute(R.attributes.LEADING_ICON_TYPE)?e.getAttribute(R.attributes.LEADING_ICON_TYPE):e.leadingIconType,leadingIconComponentProps:e.leadingIconComponentProps,trailingIcon:e.hasAttribute(R.attributes.TRAILING_ICON)?e.getAttribute(R.attributes.TRAILING_ICON):e.trailingIcon,trailingIconClass:e.hasAttribute(R.attributes.TRAILING_ICON_CLASS)?e.getAttribute(R.attributes.TRAILING_ICON_CLASS):e.trailingIconClass,trailingIconType:e.hasAttribute(R.attributes.TRAILING_ICON_TYPE)?e.getAttribute(R.attributes.TRAILING_ICON_TYPE):e.trailingIconType,trailingIconComponentProps:e.trailingIconComponentProps,leadingBuilder:e.leadingBuilder,trailingBuilder:e.trailingBuilder,tooltip:e.tooltip}})}open(t){var e;if(this._listDropdown=new qe(this._targetElement,t),this._listDropdown.open(),this._component.id){let o=(e=this._listDropdown.dropdownElement)==null?void 0:e.querySelector("forge-list");o==null||o.setAttribute("aria-labelledby",this._component.id)}}async close(){this._listDropdown&&(await this._listDropdown.close(),this.destroyListDropdown())}destroyListDropdown(){var t;(t=this._listDropdown)==null||t.destroy(),this._listDropdown=void 0}setDismissListener(t){!this._listDropdown||!this._listDropdown.dropdownElement||this._listDropdown.dropdownElement.addEventListener(Q.events.TOGGLE,t)}toggleOptionMultiple(t,e){var o;(o=this._listDropdown)==null||o.toggleOptionMultiple(t,e)}getActiveOptionIndex(){var t,e;return(e=(t=this._listDropdown)==null?void 0:t.getActiveOptionIndex())!=null?e:-1}activateSelectedOption(){var t;(t=this._listDropdown)==null||t.activateSelectedOption()}activateFirstOption(){var t;(t=this._listDropdown)==null||t.activateFirstOption()}highlightActiveOption(t){var e;(e=this._listDropdown)==null||e.activateOption(t)}patchSelectedValues(t){var e;(e=this._listDropdown)==null||e.setSelectedValues(t)}setOptionsListener(t){let e=a=>{a.stopPropagation(),t(this.getOptions())};this._component.addEventListener(R.events.VALUE_CHANGE,e);let o=new MutationObserver(()=>t(this.getOptions()));return o.observe(this._component,{childList:!0,subtree:!0}),()=>{this._component.removeEventListener(R.events.VALUE_CHANGE,e),o.disconnect()}}setOptions(t,e=!0){e&&this._clearOptions();for(let o of t)if(u3(o)){let a=this._createOptionGroupElement(o);for(let s of o.options){let r=this._createOptionElement(s);a.appendChild(r)}this._component.appendChild(a)}else{let a=this._createOptionElement(o);this._component.appendChild(a)}}appendDropdownOptions(t){var e;(e=this._listDropdown)==null||e.appendOptions(t)}setDropdownOptions(t){var e;(e=this._listDropdown)==null||e.setOptions(t)}scrollSelectedOptionIntoView(){var t;(t=this._listDropdown)==null||t.scrollSelectedOptionIntoView()}isFocusWithinPopup(t){return!this._listDropdown||!this._listDropdown.dropdownElement?!1:this._listDropdown.dropdownElement.contains(t)}queueDropdownPositionUpdate(){this.popupElement&&window.requestAnimationFrame(()=>{let t=this.popupElement;t==null||t.position()})}_clearOptions(){Array.from(this._component.querySelectorAll(vo.elementName)).forEach(o=>Fe(o)),Array.from(this._component.querySelectorAll(R.elementName)).forEach(o=>Fe(o))}_createOptionGroupElement(t){let e=document.createElement("forge-option-group");return Object.assign(e,t),e}_createOptionElement(t){let e=document.createElement("forge-option");return Object.assign(e,t),e.textContent=t.label,t.elementAttributes&&t.elementAttributes.forEach((o,a)=>{e.setAttribute(a,o)}),e}};var z7={VALUE:"value",MULTIPLE:"multiple",OBSERVE_SCROLL:"observe-scroll",OBSERVE_SCROLL_THRESHOLD:"observe-scroll-threshold",POPUP_CLASSES:"popup-classes",OPTION_LIMIT:"option-limit",SYNC_POPUP_WIDTH:"sync-popup-width",CONSTRAIN_POPUP_WIDTH:"constrain-popup-width",WRAP_OPTION_TEXT:"wrap-option-text"},bf=d({},z7),yf={CHANGE:"change"},Lt={observedAttributes:z7,attributes:bf,events:yf};var Ra=class extends J0{constructor(e){super();this._adapter=e;this._options=[];this._value=[];this._multiple=!1;this._open=!1;this._selectedValues=[];this._selectedLabels=[];this._selectedIndexes=[];this._filterString="";this._focusListener=o=>this._onFocus(o),this._blurListener=o=>this._onBlur(o),this._clickListener=o=>this._onClick(o),this._keydownListener=o=>this._onKeydown(o),this._optionsChangedListener=o=>this._onOptionsChanged(o),this._activeChangeListener=o=>this._onActiveOptionChanged(o),this._dropdownScrollEndListener=()=>this._onDropdownScrollEnd(),this._dismissListener=()=>this._onDismiss(),this._identifier=V2()}_onFocus(e){}initialize(){this._optionListenerDestructor&&this._optionListenerDestructor(),this._optionListenerDestructor=this._adapter.setOptionsListener(this._optionsChangedListener),this._initializeValue()}initializeTarget(){this._adapter.initializeAccessibility(),this._adapter.addClickListener(this._clickListener),this._adapter.addTargetListener("blur",this._blurListener),this._adapter.addTargetListener("focus",this._focusListener),this._adapter.addTargetListener("keydown",this._keydownListener)}destroy(){this._adapter.removeClickListener(this._clickListener),this._adapter.removeTargetListener("blur",this._blurListener),this._adapter.removeTargetListener("focus",this._focusListener),this._adapter.removeTargetListener("keydown",this._keydownListener),this._optionListenerDestructor&&this._optionListenerDestructor(),this._open=!1,this._adapter.destroyListDropdown()}appendOptions(e){this._adapter.setOptions(e,!1),this._open&&this._adapter.appendDropdownOptions(e)}selectAll(){this._multiple&&(this.value=this._flatOptions.map(e=>e.value))}deselectAll(){this._multiple&&(this.value=[])}get _flatOptions(){return w3(this._options,1)?this._options.flatMap(e=>e.options):this._options}get _nonDividerOptions(){return this._flatOptions.filter(e=>!e.divider)}_initializeValue(){let e=this._options.length&&this._options||this._adapter.getOptions();O(this._value)&&e.length&&this._applyValue(this._value)}_onClick(e){e.button===0&&(this._open?this._closeDropdown():this._openDropdown())}_onBlur(e){this._adapter.isFocusWithinPopup(e.relatedTarget)||this._open&&this._closeDropdown()}_openDropdown(){if(this._options=this._adapter.getOptions(),!this._flatOptions.length)return;this._open=!0;let e={options:this._options,referenceElement:this._adapter.hostElement,multiple:this._multiple,selectedValues:[...this._selectedValues],id:this._identifier,optionBuilder:this._optionBuilder,syncWidth:this._syncPopupWidth,constrainViewportWidth:this._constrainPopupWidth,wrapOptionText:this._wrapOptionText,observeScroll:this._observeScroll,observeScrollThreshold:this._observeScrollThreshold,scrollEndListener:this._dropdownScrollEndListener,activeChangeCallback:this._activeChangeListener,targetWidthCallback:this._targetWidthCallback,popupPlacement:this._popoverPlacement,popupOffset:this._popoverOffset,popupFlip:this._popoverFlip,popupShift:this._popoverShift,popupFallbackPlacements:this._popoverFallbackPlacements,popupClasses:this._popupClasses,optionLimit:this._optionLimit,headerBuilder:this._popupHeaderBuilder,footerBuilder:this._popupFooterBuilder,closeCallback:()=>this._closeDropdown(),selectCallback:o=>{let a=this._flatOptions,s=a.find(r=>r.value===o);if(s){let r=a.indexOf(s);this._onSelect(s,r,!0)}}};this._adapter.open(e),this._adapter.setDismissListener(this._dismissListener)}_closeDropdown(){this._open=!1,this._adapter.close()}async _onSelect(e,o,a=!0){if(this._valueChanging)return!1;let s=e?e.value:"",r=e?e.label:"",l=[...this._value],h=[...this._selectedValues],v=[...this._selectedLabels],m=[...this._selectedIndexes];if(this._multiple)if(this._selectedValues.includes(s)){let E=this._selectedValues.indexOf(s);this._selectedValues.splice(E,1),this._selectedLabels.splice(E,1),this._selectedIndexes.splice(E,1)}else this._selectedValues.push(s),this._selectedLabels.push(r),this._selectedIndexes.push(o);else O(s)?(this._selectedValues[0]=s,this._selectedLabels[0]=r,this._selectedIndexes[0]=o):(this._selectedValues=[],this._selectedLabels=[],this._selectedIndexes=[]);this._value=[...this._selectedValues];let u=()=>{this._selectedValues=[...h],this._selectedLabels=[...v],this._selectedIndexes=[...m],this._value=[...l]},H=()=>{if(this._multiple){let E=this._selectedIndexes.includes(o);this._adapter.toggleOptionMultiple(o,E)}this._applySelection()},x=this.multiple?[...this._selectedValues]:this._selectedValues[0];if(this._open&&a&&!this._multiple&&this._closeDropdown(),typeof this._beforeValueChange=="function"){this._valueChanging=Promise.resolve(this._beforeValueChange.call(null,x));let E=await this._valueChanging;if(this._valueChanging=void 0,!E)return u(),this._tryUpdateDropdownPosition(),!1}let C=!this._adapter.emitHostEvent(Lt.events.CHANGE,x,!0,!0);return C?u():H(),this._tryUpdateDropdownPosition(),!C}_selectActiveOption(){let e=this._adapter.getActiveOptionIndex();e>=0&&this._nonDividerOptions[e]&&this._onSelect(this._nonDividerOptions[e],e)}_tryUpdateDropdownPosition(){this._open&&this._adapter.queueDropdownPositionUpdate()}_reset(){this._selectedValues=[],this._selectedLabels=[],this._selectedIndexes=[]}_applyValue(e){this._selectedValues=[],this._selectedLabels=[],this._options=this._adapter.getOptions(),Array.isArray(e)||(e=[e]),this._value=[];for(let o of e){this._value.includes(o)||this._value.push(o);let a=this._flatOptions.find(s=>Wt(s.value,o));a&&(this._selectedValues.push(a.value),this._selectedLabels.push(a.label))}this._selectedIndexes=this._selectedValues.map(o=>this._flatOptions.findIndex(a=>a.value===o)),this._adapter.patchSelectedValues(this._selectedValues)}_onDismiss(){this._closeDropdown()}_getSelectedText(){if(typeof this._selectedTextBuilder=="function"){let e=this._flatOptions.filter(o=>this._selectedValues.includes(o.value));return this._selectedTextBuilder(e)}return this._multiple?this._selectedLabels.length?this._selectedLabels.length===1?this._selectedLabels[0]:`${this._selectedLabels.length} options selected`:"":this._selectedLabels.filter(e=>e&&e.length).join(" ").trim()}_onKeydown(e){let o=e.key==="Escape"||e.keyCode===27,a=e.key==="Enter"||e.keyCode===13,s=e.key==="Space"||e.keyCode===32,r=e.key==="ArrowDown"||e.keyCode===40,l=e.key==="ArrowUp"||e.keyCode===38,h=e.keyCode>=48&&e.keyCode<=90,v=e.key==="Home"||e.keyCode===36,m=e.key==="End"||e.keyCode===35;if(e.key==="Tab"&&this._open&&!this._multiple){this._selectActiveOption();return}if(!h&&this._filterTimeout&&(window.clearTimeout(this._filterTimeout),this._filterString="",this._filterTimeout=void 0),o&&(e.preventDefault(),e.stopPropagation(),this._open)){this._closeDropdown();return}if(s)e.preventDefault(),e.stopPropagation(),this._open?this._closeDropdown():this._openDropdown();else if(a)this._open&&(e.stopPropagation(),e.preventDefault(),this._options=this._adapter.getOptions(),this._selectActiveOption());else if(l||r){if(e.preventDefault(),!this._open){this._openDropdown(),this._adapter.activateFirstOption();return}if(this._flatOptions.length===0)return;let H=0;this._open?(H=this._adapter.getActiveOptionIndex(),H===-1&&(H=this._getFirstSelectedOptionIndex())):H=this._getFirstSelectedOptionIndex(),l?H=this._getPreviousHighlightableOptionIndex(H,this._nonDividerOptions):H=this._getNextHighlightableOptionIndex(H,this._nonDividerOptions),this._adapter.highlightActiveOption(H)}else if(v)this._open&&(e.preventDefault(),this._adapter.highlightActiveOption(this._nonDividerOptions.findIndex(H=>!H.disabled)));else if(m){if(this._open){e.preventDefault();let H=this._nonDividerOptions;for(let x=H.length-1;x>=0;x--)if(!H[x].disabled){this._adapter.highlightActiveOption(x);break}}}else h&&this._filter(e.key)}_getFirstSelectedOptionIndex(){return this._nonDividerOptions.findIndex(e=>this._selectedValues.includes(e.value))}_getPreviousHighlightableOptionIndex(e,o){let a=e;return a<=0?a=o.length-1:a--,o[a].disabled?this._getPreviousHighlightableOptionIndex(a,o):a}_getNextHighlightableOptionIndex(e,o){let a=e;return a===o.length-1?a=0:a++,o[a].disabled?this._getNextHighlightableOptionIndex(a,o):a}_filter(e){this._filterTimeout&&(window.clearTimeout(this._filterTimeout),this._filterTimeout=void 0),this._filterString+=e,this._filterTimeout=window.setTimeout(()=>{this._filterString="",this._filterTimeout=void 0},300),this._options=this._adapter.getOptions();let o=this._flatOptions.find(({disabled:a,label:s})=>!a&&s.trim().toLowerCase().startsWith(this._filterString.trim().toLowerCase()));if(o){let a=this._flatOptions.indexOf(o);this._open?this._adapter.highlightActiveOption(a):this._multiple||this._onSelect(o,a,!1)}}_onOptionsChanged(e){this._options=e,this._applyValue(this._value)}_onActiveOptionChanged(e){this._adapter.updateActiveDescendant(e)}get value(){return this._multiple?[...this._value]:this._value[0]}set value(e){let o;Array.isArray(e)?o=[...e]:o=e,this._applyValue(o)}get selectedIndex(){return this._multiple?[...this._selectedIndexes]:this._selectedIndexes[0]}set selectedIndex(e){this._options=this._adapter.getOptions();let o;if(Array.isArray(e)?o=[...e]:o=[e],o.sort(),this.multiple)this.value=o.map(a=>this._flatOptions[a]).filter(a=>a).map(a=>a.value);else{let a=this._flatOptions[o[o.length-1]];if(!a)return;this.value=a.value}}get options(){return this._adapter.getOptions()}set options(e){let o;w3(e,1)?o=e.map(a=>d({},a)):o=e.map(a=>d({},a)),this._options=o,this._adapter.setOptions(o),this._initializeValue(),this._open&&this._adapter.setDropdownOptions(o)}get multiple(){return this._multiple}set multiple(e){this._multiple!==e&&(this._multiple=e,this._reset(),this._open&&this._closeDropdown())}get open(){return this._open}set open(e){this._open!==e&&(e?this._openDropdown():this._closeDropdown())}get optionBuilder(){return this._optionBuilder}set optionBuilder(e){this._optionBuilder=e}get selectedTextBuilder(){return this._selectedTextBuilder}set selectedTextBuilder(e){this._selectedTextBuilder=e}get optionLimit(){return this._optionLimit}set optionLimit(e){this._optionLimit=e}get popupClasses(){return this._popupClasses}set popupClasses(e){this._popupClasses=e}get popupHeaderBuilder(){return this._popupHeaderBuilder}set popupHeaderBuilder(e){this._popupHeaderBuilder=e}get popupFooterBuilder(){return this._popupFooterBuilder}set popupFooterBuilder(e){this._popupFooterBuilder=e}get popupElement(){return this._adapter.popupElement}get beforeValueChange(){return this._beforeValueChange}set beforeValueChange(e){this._beforeValueChange=e}};var Vt=class extends Q1{constructor(){super()}attributeChangedCallback(t,e,o){switch(super.attributeChangedCallback(t,e,o),t){case Lt.attributes.MULTIPLE:this.multiple=p(o);break;case Lt.attributes.VALUE:this.value=o;break}}appendOptions(t){this._core.appendOptions(t)}selectAll(){this._core.selectAll()}deselectAll(){this._core.deselectAll()}connectedCallback(){this._core.initialize()}disconnectedCallback(){this._core.destroy()}};i([c()],Vt.prototype,"value",2),i([c()],Vt.prototype,"selectedIndex",2),i([c()],Vt.prototype,"options",2),i([c()],Vt.prototype,"multiple",2),i([c()],Vt.prototype,"open",2),i([c()],Vt.prototype,"optionBuilder",2),i([c()],Vt.prototype,"selectedTextBuilder",2),i([c()],Vt.prototype,"beforeValueChange",2),i([c({set:!1})],Vt.prototype,"popupElement",2);var H7=`${b}select`,Mf={FIELD:"#field",SELECTED_TEXT:"#selected-text",LABEL:"#select-label"},I7={OPEN:"open",TYPE:"type",VALUE:"value",LABEL:"label",MULTIPLE:"multiple",DISABLED:"disabled",PLACEHOLDER:"placeholder",OBSERVE_SCROLL:"observe-scroll",OBSERVE_SCROLL_THRESHOLD:"observe-scroll-threshold"},zf=d({},I7),Hf={SCROLLED_BOTTOM:`${H7}-scrolled-bottom`},X2={elementName:H7,observedAttributes:I7,attributes:zf,selectors:Mf,events:Hf};var c4=class extends Na{constructor(t){super(t),this._fieldElement=w(t,X2.selectors.FIELD),this._labelElement=w(t,X2.selectors.LABEL),this._selectedTextElement=w(t,X2.selectors.SELECTED_TEXT),this._fieldElement.setAttribute("exportparts",Object.values(L.parts).join(", ")),this._fieldElement.focusIndicatorTargetElement=this._component}get fieldElement(){return this._fieldElement}initializeAccessibility(){this._component.setAttribute("role","combobox"),this._component.setAttribute("aria-haspopup","true"),this._component.setAttribute("aria-expanded","false"),Ge(),Yt(this._component),this.fieldElement.required&&this.setHostAttribute("aria-required","true"),this.fieldElement.disabled&&this.setHostAttribute("aria-disabled","true"),this.fieldElement.invalid&&this.setHostAttribute("aria-invalid","true"),this._component[s2]=!this._component.disabled}setLabel(t){let o=!(this._fieldElement.labelPosition==="inset"&&(this._fieldElement.density==="extra-small"||this._fieldElement.dense))&&!!(t!=null&&t.trim());(!this._component.hasAttribute("aria-label")||this._component.getAttribute("aria-label")===this._labelElement.textContent)&&this._component.setAttribute("aria-label",t),o?(this._labelElement.isConnected||this._fieldElement.insertAdjacentElement("afterbegin",this._labelElement),this._labelElement.textContent=t):this._labelElement.remove()}setPlaceholderText(t){G(this._selectedTextElement,!!(t!=null&&t.trim()),"placeholder",t)}open(t){this._targetElement||(this._targetElement=w(this._fieldElement,L.selectors.POPOVER_TARGET)),super.open(t),this._component.setAttribute("aria-controls",`list-dropdown-popup-${t.id}`),this._component.setAttribute("aria-expanded","true"),this._fieldElement.popoverExpanded=!0}close(){return this._component.setAttribute("aria-expanded","false"),this._component.removeAttribute("aria-activedescendant"),Yt(this._component),this._fieldElement.popoverExpanded=!1,super.close()}floatLabel(t){this._fieldElement.floatLabel=t}updateActiveDescendant(t){G(this._component,!!t,"aria-activedescendant",t)}setSelectedText(t){this._selectedTextElement.textContent=t}setDisabled(t){this._component[s2]=!t,G(this._component,t,"aria-disabled","true")}setRequired(){this._component[Mt]()}addClickListener(t){this._component.addEventListener("click",t)}removeClickListener(t){this._component.removeEventListener("click",t)}addTargetListener(t,e){this._component.addEventListener(t,e)}removeTargetListener(t,e){this._component.removeEventListener(t,e)}syncValue(t){let o=(Array.isArray(t)?!t.length||!t.some(s=>s!=null):t==null)?null:new FormData,a=JSON.stringify(t);o&&t&&o.append(this._component.name,a),this._component.setFormValue(o,a),this._component[Mt]()}};var h4=class extends Ra{constructor(e){super(e);this._label="";this._required=!1;this._permanentlyFloatLabel=!1;this._mousedownListener=this._onMouseDown.bind(this)}initialize(){this._adapter.tryApplyGlobalConfiguration(["labelPosition","variant"]),super.initialize(),super.initializeTarget(),this._initializeLabel(),this._initializeAccessibility(),this._adapter.addTargetListener("mousedown",this._mousedownListener)}destroy(){super.destroy(),this._adapter.removeTargetListener("mousedown",this._mousedownListener)}syncFloatingLabelState({force:e}={}){e!==void 0&&(this._permanentlyFloatLabel=e),this._updateLabel(),this._tryFloatLabel()}setDisabled(e){this._adapter.setDisabled(e)}_initializeLabel(){this._updateLabel(),this._tryFloatLabel()}_initializeValue(){super._initializeValue(),this._tryFloatLabel()}_initializeAccessibility(){this._adapter.initializeAccessibility()}_onMouseDown(e){e.preventDefault()}_onClick(e){this._adapter.fieldElement.disabled||e.composedPath().find(a=>{var s;return(s=a.matches)==null?void 0:s.call(a,"slot[name=accessory]")})||(this._adapter.focusHost(),super._onClick(e))}_openDropdown(){super._openDropdown(),this._open&&this._adapter.toggleHostAttribute(X2.attributes.OPEN,!0)}_closeDropdown(){super._closeDropdown(),this._open||this._adapter.toggleHostAttribute(X2.attributes.OPEN,!1)}_onDismiss(){super._onDismiss()}_onDropdownScrollEnd(){this._adapter.emitHostEvent(X2.events.SCROLLED_BOTTOM)}async _onSelect(e,o,a=!0){let s=await super._onSelect(e,o,a);return s&&(this._adapter.setSelectedText(this._getSelectedText()),a&&!this._multiple&&this._adapter.focusHost()),this._tryFloatLabel(),this._adapter.syncValue(this._value),s}_reset(){super._reset(),this._adapter.setSelectedText(""),this._tryFloatLabel()}_tryFloatLabel(){if(this._permanentlyFloatLabel){this._adapter.floatLabel(!0);return}let e=!!this._getSelectedText()||!!this._selectedValues.length,o=!!this._placeholder;this._adapter.floatLabel(e||o)}_updateLabel(){this._adapter.setLabel(this._label)}_applyValue(e){super._applyValue(e),this._adapter.syncValue(this._value);let o=this._getSelectedText();this._adapter.setSelectedText(o),this._tryFloatLabel()}get label(){return this._label}set label(e){this._label!==e&&(this._label=e,this._updateLabel(),this._label&&this._initializeLabel(),this._adapter.toggleHostAttribute(X2.attributes.LABEL,!!this._label,this._label))}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder!==e&&(this._placeholder=e,this._adapter.setPlaceholderText(this._placeholder),this._initializeLabel())}get multiple(){return super.multiple}set multiple(e){this._multiple!==e&&(super.multiple=e,this._adapter.toggleHostAttribute(X2.attributes.MULTIPLE,e))}set required(e){this._required!==e&&this._adapter.setRequired()}};var If='<template><forge-field id="field" popover-icon focus-indicator-allow-focus focus-indicator-focus-mode="focus"><span id="select-label" slot="label"></span><slot slot="start" name="start"></slot><div data-forge-field-input class="selected-text-container" part="text-container" aria-live="assertive" aria-atomic="true"><slot name="value"><span id="selected-text" class="selected-text" part="text"></span></slot></div><slot slot="end" name="end"></slot><slot slot="accessory" name="accessory"></slot><slot slot="support-text" name="support-text"></slot><slot slot="support-text-end" name="support-text-end"></slot><slot slot="start" name="leading"></slot><slot slot="end" name="trailing"></slot><slot slot="accessory" name="addon-end"></slot><slot slot="support-text" name="helper-text"></slot></forge-field></template>',Lf=":host{display:block;outline:0}:host([hidden]){display:none}forge-field{--_select-placeholder-color:var(--forge-select-placeholder-color, var(--forge-field-placeholder-color, var(--forge-theme-text-medium, rgba(0, 0, 0, 0.6))))}.selected-text-container{display:grid;align-items:center;cursor:pointer}.selected-text,::slotted([slot=value]){white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.selected-text:empty::before{content:attr(placeholder);color:var(--_select-placeholder-color);font-size:inherit}:host([disabled]) .selected-text-container{cursor:not-allowed}forge-field{display:contents}",Ae=class extends $e(mt(Ke(V1(L1(u7(Vt)))))){static get observedAttributes(){return[...Q1.observedAttributes,...Object.values(Y.observedAttributes),...Object.values(X2.observedAttributes),...Object.values(Lt.observedAttributes)]}constructor(){var e;super(),X.define([S0,T0]),z(this,If,Lf);let t=(e=this.shadowRoot)==null?void 0:e.querySelector(L.elementName);this.initializeFieldInstance(t),this[oe]="select",this._core=new h4(new c4(this))}connectedCallback(){super.connectedCallback(),this[N]({role:"combobox",ariaDisabled:this.disabled?"true":"false",ariaRequired:this.required?"true":"false"})}attributeChangedCallback(t,e,o){switch(t){case X2.observedAttributes.OPEN:this.open=p(o);return;case X2.observedAttributes.LABEL:this.label=o;return;case X2.observedAttributes.PLACEHOLDER:this.placeholder=o;return}super.attributeChangedCallback(t,e,o)}[Bt](){return this.value}[Mt](){this[s1].setValidity({valueMissing:this.required&&!this.value},this[ee]({required:this.required,value:this.value}))}formResetCallback(){this.value=null}formStateRestoreCallback(t){this.value=JSON.parse(t)}labelClickedCallback(){this.click(),this.focus()}labelChangedCallback(t){this[N]({ariaLabel:t})}setFormValue(t,e){this[s1].setFormValue(t,e)}get floatLabel(){return super.floatLabel}set floatLabel(t){this._core.syncFloatingLabelState({force:t})}get density(){return super.density}set density(t){super.density=t,this._core.syncFloatingLabelState()}get dense(){return super.dense}set dense(t){super.dense=t,this._core.syncFloatingLabelState()}get disabled(){return super.disabled}set disabled(t){super.disabled=t,this._core.setDisabled(t)}get required(){return super.required}set required(t){super.required=t,this._core.required=t}get labelPosition(){return super.labelPosition}set labelPosition(t){super.labelPosition=t,this._core.syncFloatingLabelState()}};i([c()],Ae.prototype,"label",2),i([c()],Ae.prototype,"placeholder",2),i([c()],Ae.prototype,"readonly",2),Ae=i([y({name:X2.elementName,dependencies:[F1,$1,t0,R1,v2,j1,Pt,j,Je,pe,i1]})],Ae);function L7(){f(Ae)}var Vf='<template><div class="forge-paginator" part="root" forge-popover-host><div class="container" part="container"><div class="label" part="label" id="label"><slot name="label"></slot></div><forge-select class="page-size-options" aria-labelledby="label" label-position="none" density="extra-small" part="page-size-options"></forge-select><div class="range-label" part="range-label"><slot name="range-label"></slot></div></div><div class="actions" part="actions"><div id="first-page-container"><forge-icon-button class="first-page" part="first-page-button" part="first-page-button-element"><forge-icon name="first_page" part="first-page-icon"></forge-icon></forge-icon-button><forge-tooltip type="label" placement="top"><slot name="first-page-tooltip">Go to the first page</slot></forge-tooltip></div><div id="previous-page-container"><forge-icon-button class="previous-page" part="previous-page-button" part="previous-page-button-element"><forge-icon name="keyboard_arrow_left" part="previous-page-button-icon"></forge-icon></forge-icon-button><forge-tooltip type="label" placement="top"><slot name="previous-page-tooltip">Go to the previous page</slot></forge-tooltip></div><div class="alternative-range-label" part="alternative-range-label"><slot name="alternative-range-label"></slot></div><div id="next-page-container"><forge-icon-button class="next-page" part="next-page-button" part="next-page-button-element"><forge-icon name="keyboard_arrow_right" part="next-page-icon"></forge-icon></forge-icon-button><forge-tooltip type="label" placement="top"><slot name="next-page-tooltip">Go to the next page</slot></forge-tooltip></div><div id="last-page-container"><forge-icon-button class="last-page" part="last-page-button" part="last-page-button-element"><forge-icon name="last_page" part="last-page-icon"></forge-icon></forge-icon-button><forge-tooltip type="label" placement="top"><slot name="last-page-tooltip">Go to the last page</slot></forge-tooltip></div></div></div></template>',Cf=':host{display:block}:host([hidden]){display:none}.forge-paginator{display:flex;gap:var(--forge-spacing-xsmall,8px)}.container{display:flex;gap:var(--forge-spacing-medium,16px);align-items:center}.alternative-range-label,.label,.range-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-label1-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-label1-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-label-font-size-scale, .75)));font-weight:var(--forge-typography-label1-font-weight,400);line-height:var(--forge-typography-label1-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-label-line-height-scale, 1.25)));letter-spacing:var(--forge-typography-label1-letter-spacing, .0357142857em);text-transform:var(--forge-typography-label1-text-transform,inherit);text-decoration:var(--forge-typography-label1-text-decoration,inherit)}.actions{display:flex;align-items:center}.alternative-range-label{display:none}:host([alternative]) .alternative-range-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-body1-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-body1-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-font-size-scale, .875)));font-weight:var(--forge-typography-body1-font-weight,400);line-height:var(--forge-typography-body1-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-line-height-scale, 1.125)));letter-spacing:var(--forge-typography-body1-letter-spacing, .0357142857em);text-transform:var(--forge-typography-body1-text-transform,inherit);text-decoration:var(--forge-typography-body1-text-decoration,inherit);display:inline-block}:host([alternative]) .container{display:none}:host([alternative]) .actions{width:100%;justify-content:var(--forge-paginator-alternative-alignment,start)}',it=class extends M{static get observedAttributes(){return Object.values(Z.observedAttributes)}constructor(){super(),X.define([ul,v0,ze,fl]),z(this,Vf,Cf),this._core=new s4(new r4(this))}connectedCallback(){this._core.initialize()}attributeChangedCallback(t,e,o){var a,s,r,l;switch(t){case Z.observedAttributes.PAGE_INDEX:this.pageIndex=(a=K(o))!=null?a:Z.numbers.DEFAULT_PAGE_INDEX;break;case Z.observedAttributes.PAGE_SIZE:this.pageSize=(s=K(o))!=null?s:Z.numbers.DEFAULT_PAGE_SIZE;break;case Z.observedAttributes.OFFSET:this.offset=K(o);break;case Z.observedAttributes.TOTAL:this.total=(r=K(o))!=null?r:Z.numbers.DEFAULT_TOTAL;break;case Z.observedAttributes.PAGE_SIZE_OPTIONS:this.pageSizeOptions=(l=Wn(o))!=null?l:Z.numbers.DEFAULT_PAGE_SIZE_OPTIONS;break;case Z.observedAttributes.LABEL:this.label=o;break;case Z.observedAttributes.FIRST_LAST:this.firstLast=p(o);break;case Z.observedAttributes.FIRST:this.first=p(o);break;case Z.observedAttributes.DISABLED:this.disabled=p(o);break;case Z.observedAttributes.ALTERNATIVE:this.alternative=p(o);break}}focus(t){this._core.focus(t)}};i([c()],it.prototype,"pageIndex",2),i([c()],it.prototype,"pageSize",2),i([c()],it.prototype,"offset",2),i([c()],it.prototype,"total",2),i([c()],it.prototype,"pageSizeOptions",2),i([c()],it.prototype,"label",2),i([c()],it.prototype,"firstLast",2),i([c()],it.prototype,"first",2),i([c()],it.prototype,"disabled",2),i([c()],it.prototype,"alternative",2),i([c()],it.prototype,"rangeLabelCallback",2),it=i([y({name:Z.elementName,dependencies:[i1,Ae,m1]})],it);function V7(){f(it)}var C7=`${b}select-dropdown`,Ef={TARGET:"target",SELECTED_TEXT_TARGET:"selected-text-target",SYNC_SELECTED_TEXT:"sync-selected-text"},Bf=d({},Ef),Af={SCROLLED_BOTTOM:`${C7}-scrolled-bottom`},e0={elementName:C7,attributes:Bf,events:Af};var v4=class extends Ra{constructor(e){super(e);this._syncSelectedText=!1;this._originalTargetText="";this._targetDisconnectedListener=()=>this._onTargetDisconnected()}initialize(){this._tryAttach(),super.initialize()}destroy(){super.destroy(),this._adapter.isAttached()&&this._detach()}_onDropdownScrollEnd(){this._adapter.emitHostEvent(e0.events.SCROLLED_BOTTOM)}_applyValue(e){super._applyValue(e),this._applySelection()}_applySelection(){if(super._applySelection(),this._syncSelectedText||typeof this._selectedTextBuilder=="function"){let e=this._getSelectedText();e||(e=this._originalTargetText),this._adapter.setTargetText(e||"",this._selectedTextTarget)}}_tryAttach(){this._adapter.attach(this._target),this._adapter.isAttached()&&(this._targetDisconnectedDestructor=this._adapter.setTargetDisconnectedListener(this._targetDisconnectedListener),this._originalTargetText=this._adapter.getTargetText(this._selectedTextTarget),this.initializeTarget())}_detach(){this._adapter.detach(),this._targetDisconnectedDestructor&&(this._targetDisconnectedDestructor(),this._targetDisconnectedDestructor=void 0)}_onTargetDisconnected(){this._adapter.detach()}get target(){return this._target}set target(e){this._target!==e&&(this._target=e,this._adapter.isAttached()&&this._detach(),this._tryAttach())}get selectedTextTarget(){return this._selectedTextTarget}set selectedTextTarget(e){this._selectedTextTarget!==e&&(this._selectedTextTarget=e)}get syncSelectedText(){return this._syncSelectedText}set syncSelectedText(e){this._syncSelectedText!==e&&(this._syncSelectedText=e)}};var p4=class extends Na{constructor(t){super(t)}initializeAccessibility(){this._targetElement.setAttribute("role","combobox"),this._targetElement.setAttribute("aria-live","polite"),this._targetElement.setAttribute("aria-haspopup","true"),this._targetElement.setAttribute("aria-expanded","false"),this.setAriaControls()}addClickListener(t){this._targetElement.addEventListener("click",t)}removeClickListener(t){this._targetElement&&this._targetElement.removeEventListener("click",t)}addTargetListener(t,e){let o,a;t==="keydown"&&(o=!1,a=!0),this._targetElement.addEventListener(t,e,{passive:o,capture:a})}removeTargetListener(t,e){this._targetElement&&this._targetElement.removeEventListener(t,e)}updateActiveDescendant(t){t?this._targetElement.setAttribute("aria-activedescendant",t):this._targetElement.removeAttribute("aria-activedescendant")}open(t){super.open(t),this._targetElement.setAttribute("aria-controls",`list-dropdown-popup-${t.id}`),this._targetElement.setAttribute("aria-expanded","true")}close(){return this._targetElement.setAttribute("aria-expanded","false"),this._targetElement.removeAttribute("aria-activedescendant"),this.setAriaControls(),super.close()}attach(t){let a=(this._component.getRootNode()||HTMLDocument||this._component.ownerDocument||document).querySelector(t);a&&(this._targetElement=a)}detach(){this._targetElement=void 0}setTargetDisconnectedListener(t){if(!this._targetElement||!this._targetElement.parentElement)return()=>{};let e=new MutationObserver(o=>{o.some(s=>Array.from(s.removedNodes).some(r=>r===this._targetElement))&&(e.disconnect(),t())});return e.observe(this._targetElement.parentElement,{childList:!0}),()=>e.disconnect()}isAttached(){return!!this._targetElement}setTargetText(t,e){let o=this._targetElement;if(e){let a=this._getElementBySelector(e);a&&(o=a)}o&&(o.textContent=t)}getTargetText(t){let e=t?this._getElementBySelector(t):this._targetElement;return e?e.innerText:""}_getElementBySelector(t){return this._targetElement.querySelector(t)||this._getRootNode().querySelector(t)}_getRootNode(){var t,e;return(e=(t=this._component.getRootNode())!=null?t:this._component.ownerDocument)!=null?e:document}setAriaControls(){let t=this._component.querySelector("[data-forge-aria-controls-placeholder]");if(t){this._targetElement.setAttribute("aria-controls",t.id);return}t=document.createElement("div"),t.id=`forge-select-dropdown-temp-${V2(10)}`,t.setAttribute("data-forge-aria-controls-placeholder",""),this._targetElement.setAttribute("aria-controls",t.id),this._component.appendChild(t)}};var Tf="<template></template>",Sf=":host{display:none}",H0=class extends Vt{static get observedAttributes(){return[e0.attributes.TARGET,e0.attributes.SELECTED_TEXT_TARGET,e0.attributes.SYNC_SELECTED_TEXT,Lt.attributes.VALUE,Lt.attributes.MULTIPLE,Lt.attributes.OBSERVE_SCROLL,Lt.attributes.OBSERVE_SCROLL_THRESHOLD,Lt.attributes.POPUP_CLASSES,Lt.attributes.OPTION_LIMIT,Lt.attributes.SYNC_POPUP_WIDTH]}constructor(){super(),z(this,Tf,Sf),this._core=new v4(new p4(this))}attributeChangedCallback(t,e,o){switch(t){case e0.attributes.TARGET:this.target=o;return;case e0.attributes.SELECTED_TEXT_TARGET:this.selectedTextTarget=o;return;case e0.attributes.SYNC_SELECTED_TEXT:this.syncSelectedText=p(o);return}super.attributeChangedCallback(t,e,o)}};i([c()],H0.prototype,"target",2),i([c()],H0.prototype,"selectedTextTarget",2),i([c()],H0.prototype,"syncSelectedText",2),H0=i([y({name:e0.elementName,dependencies:[$1,t0,R1,v2,j1,Pt,Je,pe,i1]})],H0);function E7(){f(H0)}var B7=class extends o2{constructor(t){super(t)}_build(){return document.createElement(X2.elementName)}_configure(){var t;typeof((t=this._config.options)==null?void 0:t.helperText)=="string"&&this.setHelperText(this._config.options.helperText)}get value(){return this._element.value}set value(t){this._element.value=t}get disabled(){return this._element.disabled}set disabled(t){this._element.disabled=t}get invalid(){return this._element.invalid||!1}set invalid(t){this._element.invalid=t}onChange(t){this._element.addEventListener("change",e=>t(e.detail))}onFocus(t){this._element.addEventListener("focus",e=>t(e))}onBlur(t){this._element.addEventListener("blur",e=>t(e))}setHelperText(t){t?(this._helperTextElement||(this._helperTextElement=document.createElement("span"),this._helperTextElement.slot="helper-text",this._element.appendChild(this._helperTextElement)),this._helperTextElement.textContent=t):this._helperTextElement&&this._helperTextElement.isConnected&&(this._element.removeChild(this._helperTextElement),this._helperTextElement=void 0)}};var kf=`${b}skip-link`,A7={TARGET:"target",THEME:"theme",MUTED:"muted",PERSISTENT:"persistent",INLINE:"inline",SKIP_URL_CHANGE:"skip-url-change"},Of=d({},A7),Df={ANCHOR:"a"},bt={elementName:kf,observedAttributes:A7,attributes:Of,selectors:Df};var Pf='<template><a class="forge-skip-link" part="anchor"><slot>Skip to main content</slot><forge-focus-indicator part="focus-indicator"></forge-focus-indicator><forge-state-layer exportparts="surface:state-layer"></forge-state-layer></a></template>',Nf=':host{--_skip-link-inset:var(--forge-skip-link-inset, var(--forge-spacing-xsmall, 8px) var(--forge-spacing-medium, 16px));--_skip-link-z-index:var(--forge-skip-link-z-index, var(--forge-z-index-popup, 10));--_skip-link-transition-duration:var(--forge-skip-link-transition-duration, var(--forge-animation-duration-short4, 200ms));--_skip-link-transition-timing-function:var(--forge-skip-link-transition-timing-function, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1)))}:host{transition-property:opacity,transform;transition-duration:var(--_skip-link-transition-duration);transition-timing-function:var(--_skip-link-transition-timing-function);display:block;position:fixed;inset:var(--_skip-link-inset);z-index:var(--_skip-link-z-index);block-size:fit-content;inline-size:fit-content;opacity:0;transform:translateY(-100%)}:host([hidden]){display:none}:host(:where(:focus-within,[persistent])){transition-property:opacity,transform;transition-duration:var(--_skip-link-transition-duration);transition-timing-function:var(--_skip-link-transition-timing-function);transform:translateY(0);opacity:1}.forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-secondary, #ffc107));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-secondary, #000000));--_skip-link-shape:var(--forge-skip-link-shape, calc(var(--forge-shape-medium, 4px) * var(--forge-shape-factor, 1)));--_skip-link-elevation:var(--forge-skip-link-elevation, 0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12));--_skip-link-padding-block:var(--forge-skip-link-padding-block, var(--forge-spacing-xsmall, 8px));--_skip-link-padding-inline:var(--forge-skip-link-padding-inline, var(--forge-spacing-medium, 16px));--_skip-link-focus-indicator-color:var(--forge-skip-link-focus-indicator-color, var(--_skip-link-background))}.forge-skip-link{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-body2-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-body2-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-font-size-scale, 1)));font-weight:var(--forge-typography-body2-font-weight,400);line-height:var(--forge-typography-body2-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-line-height-scale, 1.375)));letter-spacing:var(--forge-typography-body2-letter-spacing, .015625em);text-transform:var(--forge-typography-body2-text-transform,inherit);text-decoration:var(--forge-typography-body2-text-decoration,inherit);display:block;outline:0;box-shadow:var(--_skip-link-elevation);border-radius:var(--_skip-link-shape);background:var(--_skip-link-background);padding-block:var(--_skip-link-padding-block);padding-inline:var(--_skip-link-padding-inline);cursor:pointer;color:var(--_skip-link-color);text-decoration:underline}:host([theme=primary]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-primary, #3f51b5));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-primary, #ffffff))}:host([theme=primary][muted]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-primary-container-high, #b6bde3));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-primary-container-high, #000000))}:host([theme=secondary]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-secondary, #ffc107));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-secondary, #000000))}:host([theme=secondary][muted]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-secondary-container-high, #ffe7a1));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-secondary-container-high, #000000))}:host([theme=tertiary]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-tertiary, #3d5afe));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-tertiary, #ffffff))}:host([theme=tertiary][muted]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-tertiary-container-high, #b5c0ff));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-tertiary-container-high, #000000))}:host([theme=success]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-success, #2e7d32));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-success, #ffffff))}:host([theme=success][muted]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-success-container-high, #b0ceb1));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-success-container-high, #000000))}:host([theme=error]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-error, #b00020));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-error, #ffffff))}:host([theme=error][muted]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-error-container-high, #e19eaa));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-error-container-high, #000000))}:host([theme=warning]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-warning, #d14900));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-warning, #ffffff))}:host([theme=warning][muted]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-warning-container-high, #eeba9e));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-warning-container-high, #000000))}:host([theme=info]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-info, #1565c0));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-info, #ffffff))}:host([theme=info][muted]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-info-container-high, #a6c4e7));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-info-container-high, #000000))}:host(:where(:not([theme]),[theme=default])[muted]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-secondary-container-high, #ffe7a1));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-secondary-container-high, #000000))}:host([inline]){position:absolute;transform:none}forge-focus-indicator{--forge-focus-indicator-color:var(--_skip-link-focus-indicator-color);--forge-focus-indicator-shape:var(--_skip-link-shape)}@media (prefers-reduced-motion:reduce){:host{--_skip-link-transition-duration:var(--forge-skip-link-transition-duration, 0s)}}',Fa=class extends M{constructor(){super();this._target="";this._theme="default";this._muted=!1;this._persistent=!1;this._inline=!1;this._skipUrlChange=!1;this._clickListener=e=>this._handleClick(e);z(this,Pf,Nf),this._anchorElement=w(this,bt.selectors.ANCHOR)}static get observedAttributes(){return Object.values(bt.observedAttributes)}attributeChangedCallback(e,o,a){switch(e){case bt.observedAttributes.TARGET:this.target=a;break;case bt.observedAttributes.THEME:this.theme=a;break;case bt.observedAttributes.MUTED:this.muted=p(a);break;case bt.observedAttributes.PERSISTENT:this.persistent=p(a);break;case bt.observedAttributes.INLINE:this.inline=p(a);break;case bt.observedAttributes.SKIP_URL_CHANGE:this.skipUrlChange=p(a);break}}get target(){return this._target}set target(e){this._target!==e&&(this._target=e,this.setAttribute(bt.attributes.TARGET,this._target),this._anchorElement.href=`#${this._target}`)}get theme(){return this._theme}set theme(e){this._theme!==e&&(this._theme=e,this.setAttribute(bt.attributes.THEME,this._theme))}get muted(){return this._muted}set muted(e){this._muted!==e&&(this._muted=e,this.toggleAttribute(bt.attributes.MUTED,this._muted))}get persistent(){return this._persistent}set persistent(e){this._persistent!==e&&(this._persistent=e,this.toggleAttribute(bt.attributes.PERSISTENT,this._persistent))}get inline(){return this._inline}set inline(e){this._inline!==e&&(this._inline=e,this.toggleAttribute(bt.attributes.INLINE,this._inline))}get skipUrlChange(){return this._skipUrlChange}set skipUrlChange(e){if(this._skipUrlChange!==e){if(this._skipUrlChange=e,this.toggleAttribute(bt.attributes.SKIP_URL_CHANGE,this._skipUrlChange),this._skipUrlChange){this._anchorElement.addEventListener("click",this._clickListener);return}this._anchorElement.removeEventListener("click",this._clickListener)}}_handleClick(e){e.preventDefault();let o=document.getElementById(this._target);o==null||o.focus(),o==null||o.scrollIntoView({behavior:"smooth"})}};Fa=i([y({name:bt.elementName,dependencies:[J,r1]})],Fa);function T7(){f(Fa)}var On=class extends M{};On.formAssociated=!0;var Rf=`${b}slider`,Ff={ARIA_LABEL:"data-aria-label",ARIA_LABEL_START:"data-aria-label-start",ARIA_LABEL_END:"data-aria-label-end",VALUE:"value",VALUE_START:"value-start",VALUE_END:"value-end",LABEL:"label",LABEL_START:"label-start",LABEL_END:"label-end",MIN:"min",MAX:"max",STEP:"step",TICKMARKS:"tickmarks",LABELED:"labeled",RANGE:"range",DISABLED:"disabled",READONLY:"readonly"},Uf={ROOT:".forge-slider",TRACK:".track",HANDLE_CONTAINER:".handle-container",START_INPUT:"input.start",END_INPUT:"input.end",START_HANDLE:".handle.start",START_HANDLE_THUMB:".handle.start .handle-thumb",END_HANDLE:".handle.end",END_HANDLE_THUMB:".handle.end .handle-thumb",START_LABEL:".handle.start .handle-label",START_LABEL_CONTENT:".handle.start .handle-label-content",END_LABEL:".handle.end .handle-label",END_LABEL_CONTENT:".handle.end .handle-label-content",LABEL:".handle-label",INPUT:"input[type=range]"},Wf={RANGE:"range",TICKMARKS:"tickmarks",ON_TOP:"on-top",OVERLAPPING:"overlapping",HOVER:"hover",HANDLE:"handle",HANDLE_THUMB:"handle-thumb",HANDLE_START:"start",HANDLE_LABEL:"handle-label",LABEL:"handle-label",LABEL_CONTENT:"handle-label-content"},Gf={INPUT:"forge-slider-input",CHANGE:"forge-slider-change",RANGE_INPUT:"forge-slider-range-input",RANGE_CHANGE:"forge-slider-range-change"},qf={START_FRACTION:"--_slider-start-fraction",END_FRACTION:"--_slider-end-fraction",TICK_COUNT:"--_slider-tick-count"},Yf={DEFAULT_STEP:1,DEFAULT_VALUE:50,DEFAULT_START_VALUE:33,DEFAULT_END_VALUE:67},V={elementName:Rf,attributes:Ff,selectors:Uf,classes:Wf,events:Gf,numbers:Yf,cssCustomProperties:qf};function S7(n){let t=document.createElement("input");return t.type="range",t.id="start",t.min=String(n.min),t.max=String(n.max),t.step=String(n.step),t.valueAsNumber=n.valueStart,t.disabled=n.disabled,t.classList.add("start"),n.hasAttribute(V.attributes.ARIA_LABEL_START)&&t.setAttribute("aria-label",n.getAttribute(V.attributes.ARIA_LABEL_START)),t.setAttribute("aria-valuetext",String(n.valueStart)),t}function k7(n){let t=document.createElement("div");t.classList.add(V.classes.HANDLE,V.classes.HANDLE_START),t.setAttribute("part","handle-start");let e=document.createElement("forge-state-layer");e.target="start",t.appendChild(e);let o=document.createElement("forge-focus-indicator");o.target="start",t.appendChild(o);let a=document.createElement("div");a.classList.add(V.classes.HANDLE_THUMB),a.setAttribute("part","handle-start-thumb"),t.appendChild(a);let s=document.createElement("div");s.classList.add(V.classes.HANDLE_LABEL),s.setAttribute("part","handle-start-label"),t.appendChild(s);let r=document.createElement("span");return r.textContent=n,r.classList.add(V.classes.LABEL_CONTENT),r.setAttribute("part","handle-start-label-content"),s.appendChild(r),t}function _3(n){let t=document.createElement("div");t.classList.add(V.classes.LABEL);let e=document.createElement("span");return e.textContent=n,e.classList.add(V.classes.LABEL_CONTENT),t.appendChild(e),t}var m4=class extends I{constructor(t){super(t),this._rootElement=w(t,V.selectors.ROOT),this._trackElement=w(t,V.selectors.TRACK),this._handleContainerElement=w(t,V.selectors.HANDLE_CONTAINER),this._endInputElement=w(t,V.selectors.END_INPUT),this._endHandleElement=w(t,V.selectors.END_HANDLE),this._endHandleThumbElement=w(t,V.selectors.END_HANDLE_THUMB),this._endLabelContentElement=w(t,V.selectors.END_LABEL_CONTENT)}addInputListener(t,e){this._getInputs().forEach(a=>a.addEventListener(t,e))}update({startFraction:t,endFraction:e,tickCount:o}){this._rootElement.style.setProperty(V.cssCustomProperties.START_FRACTION,String(t)),this._rootElement.style.setProperty(V.cssCustomProperties.END_FRACTION,String(e)),this._rootElement.style.setProperty(V.cssCustomProperties.TICK_COUNT,String(o))}updateLabels(t,e){var o;this._startLabelContentElement&&(this._startLabelContentElement.textContent=t),this._endLabelContentElement&&(this._endLabelContentElement.textContent=e),(o=this._startInputElement)==null||o.setAttribute("aria-valuetext",t),this._endInputElement.setAttribute("aria-valuetext",e)}updateHandleLayering(){let t=this._endInputElement.matches(":focus");this._startHandleElement&&f2(this._startHandleElement,!t,V.classes.ON_TOP),f2(this._endHandleElement,t,V.classes.ON_TOP)}tryHoverStartHandle(t){var e,o,a;this._startHandleThumbElement&&h5(t,this._startHandleThumbElement)?(this._handleContainerElement.classList.add(V.classes.HOVER),(e=this._startHandleElement)==null||e.classList.add(V.classes.HOVER)):(o=this._startInputElement)!=null&&o.matches(":focus")||(this._handleContainerElement.classList.remove(V.classes.HOVER),(a=this._startHandleElement)==null||a.classList.remove(V.classes.HOVER))}tryHoverEndHandle(t){h5(t,this._endHandleThumbElement)?(this._handleContainerElement.classList.add(V.classes.HOVER),this._endHandleElement.classList.add(V.classes.HOVER)):this._endInputElement.matches(":focus")||(this._handleContainerElement.classList.remove(V.classes.HOVER),this._endHandleElement.classList.remove(V.classes.HOVER))}tryDetectOverlap(){if(this._startHandleElement){let t=Dl(this._startHandleElement,this._endHandleElement);f2(this._endHandleElement,t,V.classes.OVERLAPPING),f2(this._startHandleElement,t,V.classes.OVERLAPPING)}}leaveHandleContainer(){this._handleContainerElement.classList.remove(V.classes.HOVER)}syncInputValues(t,e){if(this._startInputElement&&(this._startInputElement.valueAsNumber=t),this._endInputElement.valueAsNumber=e,this._startInputElement){let o=new FormData;o.append(this._component.nameStart,String(t)),o.append(this._component.nameEnd,String(e)),this._component[s1].setFormValue(o)}else this._component[s1].setFormValue(String(e))}setRange(t){var e,o;if(this._rootElement.classList.toggle(V.classes.RANGE,t),t){this._startInputElement=S7(this._component),this._rootElement.insertAdjacentElement("afterbegin",this._startInputElement),this._endInputElement.valueAsNumber=this._component.valueEnd;let a=this._startInputElement.value;this._startHandleElement=k7(a),this._handleContainerElement.insertAdjacentElement("afterbegin",this._startHandleElement),this._startHandleThumbElement=w(this._component,V.selectors.START_HANDLE_THUMB),this._startLabelContentElement=w(this._component,V.selectors.START_LABEL_CONTENT)}else(e=this._startInputElement)==null||e.remove(),(o=this._startHandleElement)==null||o.remove(),this._startInputElement=void 0,this._startHandleElement=void 0,this._startHandleThumbElement=void 0,this._startLabelContentElement=void 0}setTickmarks(t){this._trackElement.classList.toggle(V.classes.TICKMARKS,t)}setStep(t){this._getInputs().forEach(o=>o.step=String(t))}setMin(t){this._getInputs().forEach(o=>o.min=String(t))}setMax(t){this._getInputs().forEach(o=>o.max=String(t))}setDisabled(t){this._getInputs().forEach(a=>a.disabled=t),this._rootElement.querySelectorAll(I1.elementName).forEach(a=>a.disabled=t)}setReadonly(t){this._getInputs().forEach(o=>o.readOnly=t)}toggleLabels(t){var o;if(this._rootElement.querySelectorAll(V.selectors.LABEL).forEach(a=>a.remove()),this._endLabelContentElement=void 0,this._startLabelContentElement=void 0,t){let a=_3(this._endInputElement.value);if(this._endHandleElement.insertAdjacentElement("beforeend",a),this._endLabelContentElement=w(this._component,V.selectors.END_LABEL_CONTENT),this._startInputElement){let s=_3(this._startInputElement.value);(o=this._startHandleElement)==null||o.insertAdjacentElement("beforeend",s),this._startLabelContentElement=w(this._component,V.selectors.START_LABEL_CONTENT)}}}setStartAriaLabel(t){this._startInputElement&&G(this._startInputElement,!!t,"aria-label",t)}setEndAriaLabel(t){G(this._endInputElement,!!t,"aria-label",t)}_getInputs(){let t=[];return this._startInputElement&&t.push(this._startInputElement),[...t,this._endInputElement]}};var d4=class{constructor(t){this._adapter=t;this._value=V.numbers.DEFAULT_VALUE;this._valueStart=V.numbers.DEFAULT_START_VALUE;this._valueEnd=V.numbers.DEFAULT_END_VALUE;this._min=0;this._max=100;this._step=V.numbers.DEFAULT_STEP;this._tickmarks=!1;this._labeled=!0;this._range=!1;this._disabled=!1;this._readonly=!1;this._pointerEnterListener=e=>this._handlePointerEnter(e),this._pointerMoveListener=e=>this._handlePointerMove(e),this._pointerLeaveListener=e=>this._handlePointerLeave(e),this._changeUpdateListener=e=>this._handleInputUpdate(e),this._focusListener=e=>this._handleFocus(e)}initialize(){this._applyInputListeners(),this._update()}_update(){var H,x;let{value:t,valueStart:e,valueEnd:o}=this._clampMinMax(),a=this._step<=0?1:this._step,s=Math.max(this._max-this._min,a),r=this._range?((e!=null?e:this._min)-this._min)/s:0,l=this._range?o:t,h=((l!=null?l:this.min)-this.min)/s,v=s/a;this._adapter.update({startFraction:r,endFraction:h,tickCount:v}),this._adapter.syncInputValues(e,this._range?o:t),this._range&&this._adapter.tryDetectOverlap();let m=(H=this._labelStart)!=null?H:String(e),u=(x=this._labelEnd)!=null?x:String(this._range?o:t);typeof this._labelBuilder=="function"&&(this._range?(m=this._labelBuilder(e,"start"),u=this._labelBuilder(o,"end")):u=this._labelBuilder(t)),this._adapter.updateLabels(m,u)}_clampMinMax(){let t=this._value,e=this._valueStart,o=this._valueEnd;return this._range?(e>this._max?e=this._max:e<this._min&&(e=this._min),o>this._max?o=this._max:o<this._min&&(o=this._min)):t>this._max?t=this._max:this._value<this._min&&(t=this._min),{value:t,valueStart:e,valueEnd:o}}_applyInputListeners(){this._adapter.addInputListener("pointerenter",this._pointerEnterListener),this._adapter.addInputListener("pointermove",this._pointerMoveListener),this._adapter.addInputListener("pointerleave",this._pointerLeaveListener),this._adapter.addInputListener("input",this._changeUpdateListener),this._adapter.addInputListener("change",this._changeUpdateListener),this._adapter.addInputListener("focus",this._focusListener)}_handlePointerEnter(t){this._handlePointerMove(t)}_handlePointerMove({target:t,x:e,y:o}){t.id==="start"?this._adapter.tryHoverStartHandle({x:e,y:o}):this._adapter.tryHoverEndHandle({x:e,y:o})}_handlePointerLeave(t){this._adapter.leaveHandleContainer()}_handleInputUpdate(t){if(t.stopPropagation(),this._disabled||this._readonly){this._adapter.syncInputValues(this._valueStart,this._range?this._valueEnd:this._value);return}let e=t.target;if(this._range){let l=e.id==="start";if(l?this._valueStart=e.valueAsNumber:this._valueEnd=e.valueAsNumber,this._canClamp()){l?this._valueStart=this._valueEnd:this._valueEnd=this._valueStart,this._adapter.syncInputValues(this._valueStart,this._valueEnd),this._update();return}}else this._value=e.valueAsNumber;let o={default:{change:V.events.CHANGE,input:V.events.INPUT},range:{change:V.events.RANGE_CHANGE,input:V.events.RANGE_INPUT}},a=this._range?o.range[t.type]:o.default[t.type],s=this._range?{valueStart:this._valueStart,valueEnd:this._valueEnd}:{value:this._value},r=new CustomEvent(a,{detail:s,bubbles:!0});this._adapter.dispatchHostEvent(r),this._update()}_handleFocus(t){this._adapter.updateHandleLayering()}_canClamp(){return this._valueStart>this._valueEnd||this._valueEnd<this._valueStart}get value(){return this._value}set value(t){this._value!==t&&(this._value=t,this._update())}get valueStart(){return this._valueStart}set valueStart(t){this._valueStart!==t&&(this._valueStart=t,this._update())}get valueEnd(){return this._valueEnd}set valueEnd(t){this._valueEnd!==t&&(this._valueEnd=t,this._update())}get label(){return this.labelEnd}set label(t){this.labelEnd=t}get labelStart(){return this._labelStart}set labelStart(t){this._labelStart!==t&&(this._labelStart=t,this._adapter.updateLabels(this._labelStart,this._labelEnd))}get labelEnd(){return this._labelEnd}set labelEnd(t){this._labelEnd!==t&&(this._labelEnd=t,this._adapter.updateLabels(this._labelStart,this._labelEnd))}get labelBuilder(){return this._labelBuilder}set labelBuilder(t){this._labelBuilder=t,this._update()}get min(){return this._min}set min(t){this._min!==t&&(this._min=t,this._adapter.setMin(this._min),this._update(),this._adapter.setHostAttribute(V.attributes.MIN,String(this._min)))}get max(){return this._max}set max(t){this._max!==t&&(this._max=t,this._adapter.setMax(this._max),this._update(),this._adapter.setHostAttribute(V.attributes.MAX,String(this._max)))}get step(){return this._step}set step(t){this._step!==t&&(this._step=t,this._adapter.setStep(this._step),this._update(),this._adapter.setHostAttribute(V.attributes.STEP,String(this._step)))}get tickmarks(){return this._tickmarks}set tickmarks(t){this._tickmarks!==t&&(this._tickmarks=t,this._adapter.setTickmarks(this._tickmarks),this._adapter.toggleHostAttribute(V.attributes.TICKMARKS,this._tickmarks))}get labeled(){return this._labeled}set labeled(t){this._labeled!==t&&(this._labeled=t,this._adapter.toggleLabels(this._labeled),this._update(),this._adapter.toggleHostAttribute(V.attributes.LABELED,this._labeled))}get range(){return this._range}set range(t){this._range!==t&&(this._range=t,this._adapter.setRange(this._range),this._range&&this._applyInputListeners(),this._update(),this._adapter.toggleHostAttribute(V.attributes.RANGE,this._range))}get disabled(){return this._disabled}set disabled(t){this._disabled!==t&&(this._disabled=t,this._adapter.setDisabled(t),this._adapter.toggleHostAttribute(V.attributes.DISABLED,this._disabled))}get readonly(){return this._readonly}set readonly(t){this._readonly!==t&&(this._readonly=t,this._adapter.setReadonly(t),this._adapter.toggleHostAttribute(V.attributes.READONLY,this._readonly))}set ariaLabel(t){this.ariaLabelEnd=t}set ariaLabelStart(t){this._adapter.setStartAriaLabel(t)}set ariaLabelEnd(t){this._adapter.setEndAriaLabel(t)}};var Kf='<template><div part="root" class="forge-slider"><input type="range" class="end" id="end" min="0" max="100" step="1" aria-valuetext="0"><div class="track" part="track"></div><div class="handle-container-padded"><div class="handle-container-block"><div class="handle-container"><div class="handle end" part="handle-end"><forge-state-layer exportparts="surface:state-layer" target="end"></forge-state-layer><forge-focus-indicator part="focus-indicator" target="end"></forge-focus-indicator><div class="handle-thumb" part="handle-end-thumb"></div><div class="handle-label" part="handle-end-label"><span class="handle-label-content" part="handle-end-label-content"></span></div></div></div></div></div></div></template>',$f=':host{display:inline-flex;vertical-align:middle;min-inline-size:100%}:host([hidden]){display:none}.forge-slider{--_slider-start-fraction:0;--_slider-end-fraction:0;--_slider-tick-count:100;--_slider-track-height:var(--forge-slider-track-height, 4px);--_slider-active-track-color:var(--forge-slider-active-track-color, var(--forge-theme-primary, #3f51b5));--_slider-active-track-height:var(--forge-slider-active-track-height, var(--_slider-track-height));--_slider-active-track-shape:var(--forge-slider-active-track-shape, calc(var(--forge-shape-full, 9999px) * var(--forge-shape-factor, 1)));--_slider-disabled-active-track-color:var(--forge-slider-disabled-active-track-color, var(--forge-theme-surface-container-high, #9e9e9e));--_slider-disabled-active-track-opacity:var(--forge-slider-disabled-active-track-opacity, 0.38);--_slider-disabled-handle-color:var(--forge-slider-disabled-handle-color, var(--forge-theme-surface-container-high, #9e9e9e));--_slider-disabled-inactive-track-color:var(--forge-slider-disabled-inactive-track-color, var(--forge-theme-surface-container-high, #9e9e9e));--_slider-disabled-inactive-track-opacity:var(--forge-slider-disabled-inactive-track-opacity, 0.12);--_slider-focus-handle-color:var(--forge-slider-focus-handle-color, var(--forge-theme-primary, #3f51b5));--_slider-handle-color:var(--forge-slider-handle-color, var(--forge-theme-primary, #3f51b5));--_slider-handle-height:var(--forge-slider-handle-height, 20px);--_slider-handle-shape:var(--forge-slider-handle-shape, calc(var(--forge-shape-round, 50%) * var(--forge-shape-factor, 1)));--_slider-handle-width:var(--forge-slider-handle-width, 20px);--_slider-hover-handle-color:var(--forge-slider-hover-handle-color, var(--forge-theme-primary, #3f51b5));--_slider-inactive-track-color:var(--forge-slider-inactive-track-color, var(--forge-theme-primary-container, #d1d5ed));--_slider-inactive-track-height:var(--forge-slider-inactive-track-height, var(--_slider-track-height));--_slider-inactive-track-shape:var(--forge-slider-inactive-track-shape, calc(var(--forge-shape-full, 9999px) * var(--forge-shape-factor, 1)));--_slider-label-container-shape:var(--forge-slider-label-container-shape, calc(var(--forge-shape-full, 9999px) * var(--forge-shape-factor, 1)));--_slider-label-container-color:var(--forge-slider-label-container-color, var(--forge-theme-primary, #3f51b5));--_slider-label-container-height:var(--forge-slider-label-container-height, 28px);--_slider-label-text-color:var(--forge-slider-label-text-color, var(--forge-theme-on-primary, #ffffff));--_slider-pressed-handle-color:var(--forge-slider-pressed-handle-color, var(--forge-theme-primary, #3f51b5));--_slider-state-layer-size:var(--forge-slider-state-layer-size, 40px);--_slider-with-overlap-handle-outline-color:var(--forge-slider-with-overlap-handle-outline-color, var(--forge-theme-on-primary, #ffffff));--_slider-with-overlap-handle-outline-width:var(--forge-slider-with-overlap-handle-outline-width, 1px);--_slider-with-tick-marks-active-container-color:var(--forge-slider-with-tick-marks-active-container-color, var(--forge-theme-on-primary, #ffffff));--_slider-with-tick-marks-container-size:var(--forge-slider-with-tick-marks-container-size, 2px);--_slider-with-tick-marks-disabled-active-container-color:var(--forge-slider-with-tick-marks-disabled-active-container-color, var(--forge-theme-on-surface-container-high, #000000));--_slider-with-tick-marks-disabled-inactive-container-color:var(--forge-slider-with-tick-marks-disabled-inactive-container-color, var(--forge-theme-on-surface-container-high, #000000));--_slider-with-tick-marks-inactive-container-color:var(--forge-slider-with-tick-marks-inactive-container-color, var(--forge-theme-primary, #3f51b5))}.forge-slider{flex:1;display:flex;align-items:center;position:relative;block-size:var(--_slider-state-layer-size);pointer-events:none;touch-action:none}.forge-slider.range :host-context([dir=rtl]) input.start{clip-path:inset(0 0 0 calc(100% - (var(--_slider-state-layer-size)/ 2 + (100% - var(--_slider-state-layer-size)) * (var(--_slider-start-fraction) + (var(--_slider-end-fraction) - var(--_slider-start-fraction))/ 2))))}.forge-slider.range :host([dir=rtl]) input.start{clip-path:inset(0 0 0 calc(100% - (var(--_slider-state-layer-size)/ 2 + (100% - var(--_slider-state-layer-size)) * (var(--_slider-start-fraction) + (var(--_slider-end-fraction) - var(--_slider-start-fraction))/ 2))))}.forge-slider.range input.start:dir(rtl){clip-path:inset(0 0 0 calc(100% - (var(--_slider-state-layer-size)/ 2 + (100% - var(--_slider-state-layer-size)) * (var(--_slider-start-fraction) + (var(--_slider-end-fraction) - var(--_slider-start-fraction))/ 2))))}.forge-slider.range input.start{clip-path:inset(0 calc(100% - (var(--_slider-state-layer-size)/ 2 + (100% - var(--_slider-state-layer-size)) * (var(--_slider-start-fraction) + (var(--_slider-end-fraction) - var(--_slider-start-fraction))/ 2))) 0 0)}.forge-slider.range input.end{clip-path:inset(0 0 0 calc(var(--_slider-state-layer-size)/ 2 + (100% - var(--_slider-state-layer-size)) * (var(--_slider-start-fraction) + (var(--_slider-end-fraction) - var(--_slider-start-fraction))/ 2)))}.forge-slider.range :host-context([dir=rtl]) input.end{clip-path:inset(0 calc(var(--_slider-state-layer-size)/ 2 + (100% - var(--_slider-state-layer-size)) * (var(--_slider-start-fraction) + (var(--_slider-end-fraction) - var(--_slider-start-fraction))/ 2)) 0 0)}.forge-slider.range :host([dir=rtl]) input.end{clip-path:inset(0 calc(var(--_slider-state-layer-size)/ 2 + (100% - var(--_slider-state-layer-size)) * (var(--_slider-start-fraction) + (var(--_slider-end-fraction) - var(--_slider-start-fraction))/ 2)) 0 0)}.forge-slider.range input.end:dir(rtl){clip-path:inset(0 calc(var(--_slider-state-layer-size)/ 2 + (100% - var(--_slider-state-layer-size)) * (var(--_slider-start-fraction) + (var(--_slider-end-fraction) - var(--_slider-start-fraction))/ 2)) 0 0)}.track{position:absolute;inset:0;display:flex;align-items:center}.track::after,.track::before{content:"";position:absolute;inset-inline-start:calc(var(--_slider-state-layer-size)/ 2 - var(--_slider-with-tick-marks-container-size));inset-inline-end:calc(var(--_slider-state-layer-size)/ 2 - var(--_slider-with-tick-marks-container-size));background-size:calc((100% - var(--_slider-with-tick-marks-container-size) * 2)/ var(--_slider-tick-count)) 100%}.track::before{block-size:var(--_slider-inactive-track-height);border-radius:var(--_slider-inactive-track-shape);background-color:var(--_slider-inactive-track-color)}.track::after{block-size:var(--_slider-active-track-height);border-radius:var(--_slider-active-track-shape);clip-path:inset(0 calc(calc(var(--_slider-with-tick-marks-container-size) * min((1 - var(--_slider-end-fraction)) * 1000000000,1)) + calc(100% - var(--_slider-with-tick-marks-container-size) * 2) * (1 - var(--_slider-end-fraction))) 0 calc(calc(var(--_slider-with-tick-marks-container-size) * min(var(--_slider-start-fraction) * 1000000000,1)) + calc(100% - var(--_slider-with-tick-marks-container-size) * 2) * var(--_slider-start-fraction)));background-color:var(--_slider-active-track-color)}.track.tickmarks::before{background-image:radial-gradient(circle at var(--_slider-with-tick-marks-container-size) center,var(--_slider-with-tick-marks-inactive-container-color) 0,var(--_slider-with-tick-marks-inactive-container-color) calc(var(--_slider-with-tick-marks-container-size)/ 2),transparent calc(var(--_slider-with-tick-marks-container-size)/ 2))}.track.tickmarks::after{background-image:radial-gradient(circle at var(--_slider-with-tick-marks-container-size) center,var(--_slider-with-tick-marks-active-container-color) 0,var(--_slider-with-tick-marks-active-container-color) calc(var(--_slider-with-tick-marks-container-size)/ 2),transparent calc(var(--_slider-with-tick-marks-container-size)/ 2))}.handle-container-block,.handle-container-padded{position:relative;block-size:100%;inline-size:100%}.handle-container-padded{padding-inline:calc(var(--_slider-state-layer-size)/ 2)}.handle-container{position:absolute;inset-block-start:0;inset-block-end:0;inset-inline-start:calc(100% * var(--_slider-start-fraction));inline-size:calc(100% * (var(--_slider-end-fraction) - var(--_slider-start-fraction)))}.handle{position:absolute;block-size:var(--_slider-state-layer-size);inline-size:var(--_slider-state-layer-size);border-radius:var(--_slider-handle-shape);display:grid;place-items:center}.handle.start{inset-inline-start:calc(0px - var(--_slider-state-layer-size)/ 2)}.handle.end{inset-inline-end:calc(0px - var(--_slider-state-layer-size)/ 2)}.handle-thumb{box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12);position:absolute;height:var(--_slider-handle-height);width:var(--_slider-handle-width);border-radius:var(--_slider-handle-shape);background:var(--_slider-handle-color)}.handle-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-label1-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-label1-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-label-font-size-scale, .75)));line-height:var(--forge-typography-label1-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-label-line-height-scale, 1.25)));letter-spacing:var(--forge-typography-label1-letter-spacing, .0357142857em);text-transform:var(--forge-typography-label1-text-transform,inherit);text-decoration:var(--forge-typography-label1-text-decoration,inherit);position:absolute;box-sizing:border-box;display:grid;padding:4px;place-items:center;border-radius:var(--_slider-label-container-shape);color:var(--_slider-label-text-color);font-weight:500;white-space:nowrap;inset-block-end:100%;min-inline-size:var(--_slider-label-container-height);min-block-size:var(--_slider-label-container-height);background:var(--_slider-label-container-color);transition:transform var(--forge-animation-duration-short2, 100ms) var(--forge-animation-easing-standard, cubic-bezier(.2, 0, 0, 1));transform-origin:center bottom;transform:scale(0)}.handle-label::after,.handle-label::before{content:"";position:absolute;display:block;background:inherit}.handle-label::before{inline-size:calc(var(--_slider-label-container-height)/ 2);block-size:calc(var(--_slider-label-container-height)/ 2);bottom:calc(var(--_slider-label-container-height)/ -10);transform:rotate(45deg)}.handle-label::after{inset:0;border-radius:inherit}.handle-label-content{z-index:1}.handle-container.hover .handle-thumb{background:var(--_slider-hover-handle-color)}:host(:not([disabled])) input.end:active~.handle-container-padded .handle.end>.handle-thumb,:host(:not([disabled])) input.start:active~.handle-container-padded .handle.start>.handle-thumb{background:var(--_slider-pressed-handle-color)}:host([disabled]) .handle-thumb{box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12);background:var(--_slider-disabled-handle-color)}:host([disabled]) .handle-label{background:var(--_slider-disabled-handle-color)}:host([disabled]) .track::before{opacity:calc(1 / var(--_slider-disabled-active-track-opacity) * var(--_slider-disabled-inactive-track-opacity));background-color:var(--_slider-disabled-inactive-track-color)}:host([disabled]) .track::after{background-color:var(--_slider-disabled-active-track-color)}:host([disabled]) .track.tickmarks::before{background-image:radial-gradient(circle at var(--_slider-with-tick-marks-container-size) center,var(--_slider-with-tick-marks-disabled-inactive-container-color) 0,var(--_slider-with-tick-marks-disabled-inactive-container-color) calc(var(--_slider-with-tick-marks-container-size)/ 2),transparent calc(var(--_slider-with-tick-marks-container-size)/ 2))}:host([disabled]) .track.tickmarks::after{background-image:radial-gradient(circle at var(--_slider-with-tick-marks-container-size) center,var(--_slider-with-tick-marks-disabled-active-container-color) 0,var(--_slider-with-tick-marks-disabled-active-container-color) calc(var(--_slider-with-tick-marks-container-size)/ 2),transparent calc(var(--_slider-with-tick-marks-container-size)/ 2))}:host([disabled]) input[type=range]{cursor:not-allowed}:host-context([dir=rtl]) .track::after{clip-path:inset(0 calc(calc(var(--_slider-with-tick-marks-container-size) * min(var(--_slider-start-fraction) * 1000000000,1)) + calc(100% - var(--_slider-with-tick-marks-container-size) * 2) * var(--_slider-start-fraction)) 0 calc(calc(var(--_slider-with-tick-marks-container-size) * min((1 - var(--_slider-end-fraction)) * 1000000000,1)) + calc(100% - var(--_slider-with-tick-marks-container-size) * 2) * (1 - var(--_slider-end-fraction))))}:host([dir=rtl]) .track::after{clip-path:inset(0 calc(calc(var(--_slider-with-tick-marks-container-size) * min(var(--_slider-start-fraction) * 1000000000,1)) + calc(100% - var(--_slider-with-tick-marks-container-size) * 2) * var(--_slider-start-fraction)) 0 calc(calc(var(--_slider-with-tick-marks-container-size) * min((1 - var(--_slider-end-fraction)) * 1000000000,1)) + calc(100% - var(--_slider-with-tick-marks-container-size) * 2) * (1 - var(--_slider-end-fraction))))}.track:dir(rtl)::after{clip-path:inset(0 calc(calc(var(--_slider-with-tick-marks-container-size) * min(var(--_slider-start-fraction) * 1000000000,1)) + calc(100% - var(--_slider-with-tick-marks-container-size) * 2) * var(--_slider-start-fraction)) 0 calc(calc(var(--_slider-with-tick-marks-container-size) * min((1 - var(--_slider-end-fraction)) * 1000000000,1)) + calc(100% - var(--_slider-with-tick-marks-container-size) * 2) * (1 - var(--_slider-end-fraction))))}input.end:focus~.handle-container-padded .handle.end>.handle-thumb,input.start:focus~.handle-container-padded .handle.start>.handle-thumb{background:var(--_slider-focus-handle-color)}.on-top.overlapping .handle-label,.on-top.overlapping .handle-label::before,.on-top.overlapping .handle-thumb{border:var(--_slider-with-overlap-handle-outline-color) solid var(--_slider-with-overlap-handle-outline-width)}.handle-container.hover .handle-label,:host(:focus-within) .handle-label,:where(:has(input:active)) .handle-label{transform:scale(1)}input[type=range]{opacity:0;-webkit-tap-highlight-color:transparent;position:absolute;box-sizing:border-box;height:100%;width:100%;margin:0;background:0 0;cursor:pointer;pointer-events:auto;appearance:none}input[type=range]:focus{outline:0}input[type=range]::-webkit-slider-runnable-track{-webkit-appearance:none}input[type=range]::-moz-range-track{appearance:none}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;block-size:var(--_slider-state-layer-size);inline-size:var(--_slider-state-layer-size);transform:scaleX(0);opacity:0;z-index:2}input[type=range]::-moz-range-thumb{appearance:none;block-size:var(--_slider-state-layer-size);inline-size:var(--_slider-state-layer-size);transform:scaleX(0);opacity:0;z-index:2}.on-top{z-index:1}@media (prefers-reduced-motion){.handle-label{transition-duration:0}}forge-focus-indicator{--forge-focus-indicator-shape:50%;--forge-focus-indicator-outward-offset:0px}forge-state-layer{--forge-state-layer-color:var(--_slider-handle-color)}',O7,_2=class extends(O7=On,s1,O7){static get observedAttributes(){return[V.attributes.ARIA_LABEL,V.attributes.ARIA_LABEL_START,V.attributes.ARIA_LABEL_END,V.attributes.VALUE,V.attributes.VALUE_START,V.attributes.VALUE_END,V.attributes.LABEL,V.attributes.LABEL_START,V.attributes.LABEL_END,V.attributes.MAX,V.attributes.MIN,V.attributes.STEP,V.attributes.TICKMARKS,V.attributes.LABELED,V.attributes.RANGE,V.attributes.DISABLED,V.attributes.READONLY]}get form(){return this[s1].form}get labels(){return this[s1].labels}get name(){var t;return(t=this.getAttribute("name"))!=null?t:""}set name(t){G(this,!!t,"name",t!=null?t:"")}get nameStart(){var t;return(t=this.getAttribute("name-start"))!=null?t:this.name}set nameStart(t){G(this,!!t,"name-start",t!=null?t:"")}get nameEnd(){var t;return(t=this.getAttribute("name-end"))!=null?t:this.nameStart}set nameEnd(t){G(this,!!t,"name-end",t!=null?t:"")}constructor(){super(),z(this,Kf,$f),this[s1]=this.attachInternals(),this._core=new d4(new m4(this))}connectedCallback(){this._core.initialize()}attributeChangedCallback(t,e,o){switch(t){case V.attributes.ARIA_LABEL:this._core.ariaLabel=o;break;case V.attributes.ARIA_LABEL_START:this._core.ariaLabelStart=o;break;case V.attributes.ARIA_LABEL_END:this._core.ariaLabelEnd=o;break;case V.attributes.VALUE:this.value=K(o);break;case V.attributes.VALUE_START:this.valueStart=K(o);break;case V.attributes.VALUE_END:this.valueEnd=K(o);break;case V.attributes.LABEL:this.label=o;break;case V.attributes.LABEL_START:this.labelStart=o;break;case V.attributes.LABEL_END:this.labelEnd=o;break;case V.attributes.MIN:this.min=K(o);break;case V.attributes.MAX:this.max=K(o);break;case V.attributes.STEP:this.step=K(o);break;case V.attributes.TICKMARKS:this.tickmarks=p(o);break;case V.attributes.LABELED:this.labeled=p(o);break;case V.attributes.RANGE:this.range=p(o);break;case V.attributes.DISABLED:this.disabled=p(o);break;case V.attributes.READONLY:this.readonly=p(o);break}}formResetCallback(){if(this._core.range){let e=this.getAttribute("value-start");this.valueStart=e!==null?Number(e):V.numbers.DEFAULT_START_VALUE;let o=this.getAttribute("value-end");this.valueEnd=o!==null?Number(o):V.numbers.DEFAULT_END_VALUE;return}let t=this.getAttribute("value");this.value=t!==null?Number(t):V.numbers.DEFAULT_VALUE}formStateRestoreCallback(t){if(t&&t[0]instanceof FormData){let e=Array.from(t[0]),[[,o],[,a]]=e;this.valueStart=Number(o),this.valueEnd=Number(a),this.range=!0;return}this.value=Number(t),this.range=!1}formDisabledCallback(t){this.disabled=t}};_2.formAssociated=!0,i([c()],_2.prototype,"value",2),i([c()],_2.prototype,"valueStart",2),i([c()],_2.prototype,"valueEnd",2),i([c()],_2.prototype,"label",2),i([c()],_2.prototype,"labelStart",2),i([c()],_2.prototype,"labelEnd",2),i([c()],_2.prototype,"labelBuilder",2),i([c()],_2.prototype,"min",2),i([c()],_2.prototype,"max",2),i([c()],_2.prototype,"step",2),i([c()],_2.prototype,"tickmarks",2),i([c()],_2.prototype,"labeled",2),i([c()],_2.prototype,"range",2),i([c()],_2.prototype,"disabled",2),i([c()],_2.prototype,"readonly",2),_2=i([y({name:V.elementName,dependencies:[J,r1]})],_2);var D7=class extends o2{constructor(t){super(t)}get value(){return this._element.value}set value(t){this._element.value=t}get valueStart(){return this._element.valueStart}set valueStart(t){this._element.valueStart=t}get valueEnd(){return this._element.valueEnd}set valueEnd(t){this._element.valueEnd=t}get disabled(){return this._element.disabled}set disabled(t){this._element.disabled=t}get min(){return this._element.min}set min(t){this._element.min=t}get max(){return this._element.max}set max(t){this._element.max=t}get step(){return this._element.step}get range(){return this._element.range}set range(t){this._element.range=t}get tickmarks(){return this._element.tickmarks}set tickmarks(t){this._element.tickmarks=t}get labeled(){return this._element.labeled}set labeled(t){this._element.labeled=t}get labelBuilder(){return this._element.labelBuilder}set labelBuilder(t){this._element.labelBuilder=t}onInput(t){this._element.addEventListener("forge-slider-input",({detail:e})=>t(e))}onChange(t){this._element.addEventListener("forge-slider-change",({detail:e})=>t(e))}onRangeInput(t){this._element.addEventListener("forge-slider-range-input",({detail:e})=>t(e))}onRangeChange(t){this._element.addEventListener("forge-slider-range-change",({detail:e})=>t(e))}onFocus(t){this._element.addEventListener("focus",e=>t(e))}onBlur(t){this._element.addEventListener("blur",e=>t(e))}_build(){return document.createElement(V.elementName)}};function P7(){f(_2)}var I0=`${b}split-view-panel`,Xf={RESIZABLE:"resizable",SIZE:"size",MIN:"min",MAX:"max",OPEN:"open",ACCESSIBLE_LABEL:"accessible-label",DISABLED:"disabled",ALLOW_CLOSE:"allow-close",AUTO_CLOSE:"auto-close",AUTO_CLOSE_THRESHOLD:"auto-close-threshold",ORIENTATION:"orientation"},Zf={ROOT:"forge-split-view-panel",GRABBED:"forge-split-view-panel--grabbed",HANDLE:"forge-split-view-panel__handle",ICON:"forge-split-view-panel__icon",CONTENT:"forge-split-view-panel__content",CLOSED:"forge-split-view-panel--closed",CLOSING:"forge-split-view-panel--closing",OPENING:"forge-split-view-panel--opening",DISABLED:"forge-split-view-panel--disabled",OVERLAY:"forge-split-view-panel-overlay"},Ua={ROOT:"root",HANDLE:"handle",ICON:"icon",STATE_LAYER:"state-layer",CONTENT:"content"},jf={ROOT:`#${Ua.ROOT}`,HANDLE:`#${Ua.HANDLE}`,ICON:`#${Ua.ICON}`,STATE_LAYER:`#${Ua.STATE_LAYER}`,CONTENT:`#${Ua.CONTENT}`},Qf={WILL_RESIZE:`${I0}-will-resize`,RESIZE_START:`${I0}-resize-start`,RESIZE_END:`${I0}-resize-end`,RESIZE:`${I0}-resize`,DID_OPEN:`${I0}-did-open`,DID_CLOSE:`${I0}-did-close`,WILL_OPEN:`${I0}-will-open`,WILL_CLOSE:`${I0}-will-close`},Jf={STATE_LAYER_ACTIVATION_WAIT:200},tb={SIZE:"--forge-split-view-panel-size",CURSOR:"--forge-split-view-panel-cursor"},P={elementName:I0,attributes:Xf,classes:Zf,ids:Ua,selectors:jf,events:Qf,numbers:Jf,customCssProperties:tb},N7=(o=>(o[o.Under=1]="Under",o[o.Active=2]="Active",o[o.Above=3]="Above",o))(N7||{});function R7(){return{orientation:"horizontal",resizable:"off",arrowKeyHeld:!1,keyboardDelta:0,isAtMin:!1,isAtMax:!1,min:0}}function F7(n,t){let e=n.getContentSize(t.orientation);return S(d({},t),{currentSize:e,startSize:e,availableSpace:n.getAvailableSpace(t.orientation,t.resizable),siblingSize:n.getSiblingContentSize(),isAtMin:!1,isAtMax:!1})}function U7(n){return S(d({},n),{arrowKeyHeld:!1,keyboardDelta:0,isAtMin:!1,isAtMax:!1})}function W7(n,t,e){if(e.startPoint===void 0||e.startSize===void 0)return!1;let o=e.currentSize,a=e.orientation==="horizontal"?t.clientX:t.clientY,s=e.startPoint-a;e.resizable==="start"&&(s*=-1);let r=e.startSize-s;e.currentSize=g4(r,e),n.setContentSize(e.currentSize),w4(n,e,"pointer"),n.setValuenow(u4(e.currentSize,e));let l=r-e.currentSize+s;return K7(n,l,e),o!==e.currentSize}function G7(n,t,e){if(e.startSize===void 0)return!1;let o=e.currentSize;e.keyboardDelta+=t;let a=e.startSize+e.keyboardDelta;e.currentSize=g4(a,e),n.setContentSize(e.currentSize),w4(n,e,"keyboard"),n.setValuenow(u4(e.currentSize,e));let s=a-e.currentSize+e.keyboardDelta*-1;return K7(n,s,e),o!==e.currentSize}function q7(n,t){return n.setContentSize(t.min),t.min}function Y7(n,t){let e=n.getAvailableSpace(t.orientation,t.resizable),o=k0(t.max,e);return n.setContentSize(o),o}function K7(n,t,e){if(e.siblingSize!==void 0){let o=e.siblingSize+t;n.setSiblingContentSize(o)}}function g4(n,t){return n=Math.max(n,t.min),n=k0(n,t.max,t.availableSpace),n}function w4(n,t,e){if(t.currentSize===void 0)return!1;if(t.currentSize<=t.min)return t.isAtMin||(n.animateStateLayer(e==="pointer"),e==="pointer"&&n.setBodyCursor(t.orientation,{resizable:t.resizable,boundary:"min"}),t.isAtMin=!0),!0;t.isAtMin&&(t.isAtMin=!1);let o=k0(t.max,t.availableSpace);return t.currentSize>=o?(t.isAtMax||(n.animateStateLayer(e==="pointer"),e==="pointer"&&n.setBodyCursor(t.orientation,{resizable:t.resizable,boundary:"max"}),t.isAtMax=!0),!0):(t.isAtMax&&(t.isAtMax=!1),e==="pointer"&&n.setBodyCursor(t.orientation),!1)}function $7(n,t,e){if(t<=e.min)return n.setHandleCursor(e.orientation,{resizable:e.resizable,boundary:"min"}),!0;let o=k0(e.max,e.availableSpace);return t>=o?(n.setHandleCursor(e.orientation,{resizable:e.resizable,boundary:"max"}),!0):(n.setHandleCursor(e.orientation),!1)}function u4(n,t){if(!t.availableSpace&&!t.max)return 100;let e=k0(t.max,t.availableSpace);return cs(n,t.min,e)}function x3(n,t){if(n==="horizontal")switch(t==null?void 0:t.boundary){case"min":return t.resizable==="end"?"e-resize":"w-resize";case"max":return t.resizable==="end"?"w-resize":"e-resize";default:return"col-resize"}else switch(t==null?void 0:t.boundary){case"min":return t.resizable==="end"?"s-resize":"n-resize";case"max":return t.resizable==="end"?"n-resize":"s-resize";default:return"row-resize"}}function X7(n){return n==="horizontal"?"drag_vertical_variant":"drag_handle"}function _4(n){let t=n.resizable;if(t==="off")return;let e=n;do e=t==="end"?e.nextElementSibling:e.previousElementSibling;while(e instanceof L2&&!e.open);if(e instanceof L2)return e}function eb(n){var s,r;if(!isNaN(+n))return{amount:+n,unit:"px"};let t=/(^\d*\.?\d*)\s*(px|%$)?/i,e=n.match(t),o=e!=null&&e[1]?+e[1]:-1,a=(r=(s=e==null?void 0:e[2])==null?void 0:s.toLowerCase())!=null?r:"";return{amount:o,unit:a}}function Uo(n,t){let e=eb(n);return e.unit==="%"?Ol(e.amount,t):e.amount}function Z7(){let n=document.createElement("div");return n.classList.add(P.classes.OVERLAY),n.style.position="fixed",n.style.top="0",n.style.left="0",n.style.width="100vw",n.style.height="100vh",n.style.zIndex="9999",n}var x4=class{constructor(t){this._adapter=t;this._size=200;this._min=0;this._accessibleLabel="Split view panel";this._open=!0;this._state=R7();this._isInitialized=!1;this._parentProperties={};this._pointerdownListener=e=>this._onPointerdown(e),this._pointerupListener=e=>this._onPointerup(e),this._pointermoveListener=e=>this._onPointermove(e),this._keydownListener=e=>this._onKeydown(e),this._keyupListener=e=>this._onKeyup(e)}get _orientation(){return this._state.orientation}set _orientation(t){this._state.orientation=t}get _resizable(){return this._state.resizable}set _resizable(t){this._state.resizable=t}get _pixelMin(){return this._state.min}set _pixelMin(t){this._state.min=t}get _pixelMax(){return this._state.max}set _pixelMax(t){this._state.max=t}get _appliedDisabled(){var t,e;return(e=(t=this._disabled)!=null?t:this._parentProperties.disabled)!=null?e:!1}get _appliedAllowClose(){var t,e;return(e=(t=this._allowClose)!=null?t:this._parentProperties.allowClose)!=null?e:!1}get _appliedAutoClose(){var t,e;return(e=(t=this._autoClose)!=null?t:this._parentProperties.autoClose)!=null?e:!1}get _appliedAutoCloseThreshold(){var t,e;return(e=(t=this._autoCloseThreshold)!=null?t:this._parentProperties.autoCloseThreshold)!=null?e:0}initialize(){this._adapter.initialize(),this._adapter.setPointerdownListener(this._pointerdownListener),this._adapter.setKeydownListener(this._keydownListener),this._getParentProperties(),this._applyResizable(),this._applyMin(),this._applyMax(),this._applySize(),this._applyAccessibleLabel(),this._applyOpen(),this._applyDisabled(),this._applyAllowClose(),this._applyAutoClose(),this._applyAutoCloseThreshold(),this._isInitialized=!0}destroy(){this._adapter.tryRemoveOverlay(),this._adapter.removePointerupListener(this._pointerupListener),this._adapter.removePointermoveListener(this._pointermoveListener)}_onPointerdown(t){this._appliedDisabled||!this._allowResize("pointer")||(t.preventDefault(),this._adapter.setPointermoveListener(this._pointermoveListener),this._adapter.setPointerupListener(this._pointerupListener),this._handlePointerdown(t))}_onPointerup(t){t.preventDefault(),this._adapter.removePointermoveListener(this._pointermoveListener),this._adapter.removePointerupListener(this._pointerupListener),this._handlePointerup()}_onPointermove(t){if(!this._appliedDisabled){if(t.preventDefault(),t.buttons===0){this._adapter.removePointermoveListener(this._pointermoveListener),this._adapter.removePointerupListener(this._pointerupListener),this._handlePointerup();return}this._handlePointermove(t)}}_onKeydown(t){this._appliedDisabled||(t.key==="Enter"?this._handleEnterKey(t):t.key==="Home"&&this._allowResize("keyboard")?this._handleHomeKey(t):t.key==="End"&&this._allowResize("keyboard")?this._handleEndKey(t):m5(t)&&this._allowResize("keyboard")&&(this._adapter.setKeyupListener(this._keyupListener),this._handleArrowKey(t)))}_onKeyup(t){m5(t)&&(this._adapter.removeKeyupListener(this._keyupListener),this._handleArrowKeyUp())}_handleEnterKey(t){this._appliedAllowClose&&(t.preventDefault(),this._tryOpenOrClose(!this._open,!1,!0))}_handleHomeKey(t){t.preventDefault();let e=q7(this._adapter,this._state);this._adapter.emitHostEvent(P.events.RESIZE,e),this._tryAutoClose()}_handleEndKey(t){t.preventDefault();let e=Y7(this._adapter,this._state);this._adapter.emitHostEvent(P.events.RESIZE,e)}_handleArrowKey(t){let e=0;if(this._orientation==="horizontal")switch(t.key){case"ArrowLeft":e=-1;break;case"ArrowRight":e=1;break;default:return}else switch(t.key){case"ArrowUp":e=-1;break;case"ArrowDown":e=1;break;default:return}t.preventDefault(),this._resizable==="start"&&(e*=-1),t.shiftKey&&(e*=10),this._tryHandleArrowKeyDown(),this._handleArrowKeyHeld(e)}_tryHandleArrowKeyDown(){this._state.arrowKeyHeld||this._startResize(),this._state.arrowKeyHeld=!0}_handleArrowKeyUp(){this._endResize()}_handleArrowKeyHeld(t){G7(this._adapter,t,this._state)&&this._adapter.emitHostEvent(P.events.RESIZE,this._state.currentSize)}_handlePointerdown(t){this._adapter.setGrabbed(!0),this._adapter.focusHandle(),this._startResize(),this._state.startPoint=this._orientation==="horizontal"?t.clientX:t.clientY,w4(this._adapter,this._state,"pointer")}_handlePointerup(){this._adapter.setGrabbed(!1),this._endResize()}_handlePointermove(t){W7(this._adapter,t,this._state)&&this._adapter.emitHostEvent(P.events.RESIZE,this._state.currentSize)}_allowResize(t){return this._adapter.emitHostEvent(P.events.WILL_RESIZE,{inputDeviceType:t},!0,!0)}_startResize(){this._state=F7(this._adapter,this._state),this._adapter.emitHostEvent(P.events.RESIZE_START,this._state.startSize)}_endResize(){this._adapter.emitHostEvent(P.events.RESIZE_END,this._state.currentSize),this._adapter.updateParent({accessibility:this._state.startSize!==this._state.currentSize,cursor:!0}),this._state=U7(this._state),this._tryAutoClose()}_tryOpenOrClose(t=!0,e=!1,o=!1){let a=t?P.events.WILL_OPEN:P.events.WILL_CLOSE,s={auto:e,userInitiated:o};this._adapter.emitHostEvent(a,s,!0,!0)&&(this._open=t,this._applyOpen(s))}_tryAutoClose(){let t=this._adapter.getContentSize(this._orientation);this._appliedAutoClose&&t<=this._appliedAutoCloseThreshold&&this._tryOpenOrClose(!1,!0,!1)}_getParentProperties(){let t=this._adapter.getParentProperty("disabled");this._parentProperties.disabled=t,this._applyParentDisabled();let e=this._adapter.getParentProperty("allowClose");this._parentProperties.allowClose=e;let o=this._adapter.getParentProperty("autoClose");this._parentProperties.autoClose=o,this._applyParentAutoClose();let a=this._adapter.getParentProperty("autoCloseThreshold");this._parentProperties.autoCloseThreshold=a,this._applyParentAutoCloseThreshold()}_applyOrientation(){this._adapter.setOrientation(this._orientation)}get resizable(){return this._resizable}set resizable(t){this._resizable!==t&&(this._resizable=t,this._applyResizable())}_applyResizable(){this._adapter.setHostAttribute(P.attributes.RESIZABLE,this._resizable),this._adapter.setResizable(this._resizable)}get size(){return this._size}set size(t){this._size.toString()!==t.toString()&&(this._size=t,this._applySize())}_applySize(){let t=this._adapter.getParentSize(this._orientation),e=Uo(this._size,t);this._adapter.setHostAttribute(P.attributes.SIZE,this._size.toString()),this._adapter.setContentSize(e),window.requestAnimationFrame(()=>{let o=this._adapter.getAvailableSpace(this._orientation,this._resizable),a=k0(this._pixelMax,o),s=cs(e,this._pixelMin,a);this._adapter.setValuenow(s),this._adapter.updateParent({cursor:!0})})}get min(){return this._min}set min(t){this._min.toString()!==t.toString()&&(this._min=t,this._applyMin())}_applyMin(){this._adapter.setHostAttribute(P.attributes.MIN,this._min.toString());let t=this._adapter.getParentSize(this._orientation);if(this._pixelMin=Uo(this._min,t),this._resizable==="off")return;let e=this._adapter.getContentSize(this._orientation);e<this._pixelMin&&this.setContentSize(e)}get max(){return this._max}set max(t){var e;((e=this._max)==null?void 0:e.toString())!==(t==null?void 0:t.toString())&&(this._max=t,this._applyMax())}_applyMax(){var o;if(this._adapter.toggleHostAttribute(P.attributes.MAX,this._max!==void 0,(o=this._max)==null?void 0:o.toString()),this._max===void 0){this._pixelMax=void 0;return}let t=this._adapter.getParentSize(this._orientation);if(this._pixelMax=Uo(this._max,t),this._resizable==="off")return;let e=this._adapter.getContentSize(this._orientation);e>this._pixelMax&&this.setContentSize(e)}get accessibleLabel(){return this._accessibleLabel}set accessibleLabel(t){this._accessibleLabel!==t&&(this._accessibleLabel=t,this._applyAccessibleLabel())}_applyAccessibleLabel(){this._adapter.setHostAttribute(P.attributes.ACCESSIBLE_LABEL,this._accessibleLabel),this._adapter.setAccessibleLabel(this._accessibleLabel)}get open(){return this._open}set open(t){if(this._open!==t){if(this._isInitialized){this._tryOpenOrClose(t,!1,!1);return}this._open=t;let e=this._isInitialized?{auto:!1,userInitiated:!1}:void 0;this._applyOpen(e)}}_applyOpen(t){this._adapter.setHostAttribute(P.attributes.OPEN,this._open.toString()),this._adapter.setOpen(this._open,this._isInitialized,t)}get disabled(){return this._disabled}set disabled(t){this._disabled!==t&&(this._disabled=t,this._applyDisabled())}_applyDisabled(){var t;this._adapter.toggleHostAttribute(P.attributes.DISABLED,(t=this._disabled)!=null?t:!1),this._adapter.setDisabled(this._appliedDisabled)}_applyParentDisabled(){this._isInitialized&&!O(this._disabled)&&this._adapter.setDisabled(this._appliedDisabled)}get allowClose(){return this._allowClose}set allowClose(t){this._allowClose!==t&&(this._allowClose=t,this._applyAllowClose())}_applyAllowClose(){var t;this._adapter.toggleHostAttribute(P.attributes.ALLOW_CLOSE,(t=this._allowClose)!=null?t:!1)}get autoClose(){return this._autoClose}set autoClose(t){this._autoClose!==t&&(this._autoClose=t,this._applyAutoClose())}_applyAutoClose(){var t;this._adapter.toggleHostAttribute(P.attributes.AUTO_CLOSE,(t=this._autoClose)!=null?t:!1),this._isInitialized&&this._tryAutoClose()}_applyParentAutoClose(){this._isInitialized&&!O(this._autoClose)&&this._tryAutoClose()}get autoCloseThreshold(){return this._autoCloseThreshold}set autoCloseThreshold(t){this._autoCloseThreshold!==t&&(this._autoCloseThreshold=t,this._applyAutoCloseThreshold())}_applyAutoCloseThreshold(){var t;this._adapter.toggleHostAttribute(P.attributes.AUTO_CLOSE_THRESHOLD,O(this._autoCloseThreshold),(t=this.autoCloseThreshold)==null?void 0:t.toString()),this._isInitialized&&this._tryAutoClose()}_applyParentAutoCloseThreshold(){this._isInitialized&&!O(this._autoCloseThreshold)&&this._tryAutoClose()}getContentSize(){return this._adapter.getContentSize(this._orientation)}getCollapsibleSize(){let t=this._adapter.getParentSize(this._orientation),e=Uo(this._min,t);return this._adapter.getContentSize(this._orientation)-e}setContentSize(t){if(this._resizable==="off")return;let e=g4(t,this._state);this._adapter.setContentSize(e),this._isInitialized&&this._adapter.emitHostEvent(P.events.RESIZE,e)}update(t){if(t.orientation&&(this._orientation=t.orientation,this._applyOrientation()),t.properties&&(O(t.properties.disabled)&&this._parentProperties.disabled!==t.properties.disabled&&(this._parentProperties.disabled=t.properties.disabled,this._applyDisabled()),O(t.properties.allowClose)&&(this._parentProperties.allowClose=t.properties.allowClose),O(t.properties.autoClose)&&this._parentProperties.autoClose!==t.properties.autoClose&&(this._parentProperties.autoClose=t.properties.autoClose,O(this._autoClose)||this._applyAutoClose()),O(t.properties.autoCloseThreshold)&&this._parentProperties.autoCloseThreshold!==t.properties.autoCloseThreshold&&(this._parentProperties.autoCloseThreshold=t.properties.autoCloseThreshold,O(this._autoCloseThreshold)||this._applyAutoCloseThreshold())),t.size&&this.open){let a=this._adapter.getParentSize(this._orientation);this._pixelMin=Uo(this._min,a),this._pixelMax=O(this._max)?Uo(this._max,a):void 0,this.setContentSize(this._adapter.getContentSize(this._orientation))}if(this._resizable==="off")return;let e=this._adapter.getContentSize(this._orientation),o=this._adapter.getAvailableSpace(this._orientation,this._resizable);if(t.accessibility&&this.open){let a=u4(e,S(d({},this._state),{availableSpace:o}));this._adapter.setValuenow(a)}t.cursor&&$7(this._adapter,e,S(d({},this._state),{availableSpace:o}))}};var ob=`${b}split-view`,ab={ORIENTATION:"orientation",DISABLED:"disabled",ALLOW_CLOSE:"allow-close",AUTO_CLOSE:"auto-close",AUTO_CLOSE_THRESHOLD:"auto-close-threshold"},nb={ROOT:"forge-split-view"},j7={ROOT:"root"},sb={ROOT:`#${j7.ROOT}`,PANEL:P.elementName},rb={RESIZE_THROTTLE_THRESHOLD:200},ib={ANIMATING_LAYER:"--forge-split-view-animating-layer"},t2={elementName:ob,attributes:ab,classes:nb,ids:j7,selectors:sb,numbers:rb,customCssProperties:ib};var f4=class extends I{constructor(t){super(t),this._root=w(t,P.selectors.ROOT),this._handle=w(t,P.selectors.HANDLE),this._icon=w(t,P.selectors.ICON),this._stateLayer=w(t,P.selectors.STATE_LAYER),this._content=w(t,P.selectors.CONTENT)}initialize(){let t=this._component.parentElement;(t==null?void 0:t.tagName.toLowerCase())===t2.elementName&&(this._parent=t)}tryRemoveOverlay(){var t;(t=this._overlay)==null||t.remove(),this._overlay=void 0}setPointerdownListener(t){this._handle.addEventListener("pointerdown",t)}setPointerupListener(t){document.addEventListener("pointerup",t)}removePointerupListener(t){document.removeEventListener("pointerup",t)}setPointermoveListener(t){document.addEventListener("pointermove",t)}removePointermoveListener(t){document.removeEventListener("pointermove",t)}setKeydownListener(t){this._handle.addEventListener("keydown",t)}setKeyupListener(t){this._handle.addEventListener("keyup",t)}removeKeyupListener(t){this._handle.removeEventListener("keyup",t)}getParentProperty(t){var e;return(e=this._parent)==null?void 0:e[t]}setAccessibleLabel(t){this._handle.setAttribute("aria-label",t)}setDisabled(t){this._root.classList.toggle(P.classes.DISABLED,t),this._handle&&(this._handle.setAttribute("tabindex",t?"-1":"0"),G(this._handle,t,"aria-disabled","true"))}setResizable(t){this._root.setAttribute(P.attributes.RESIZABLE,t.toString()),G(this._handle,t!=="off","aria-valuemin","0"),G(this._handle,t!=="off","aria-valuemax","100"),t!=="off"&&(this._handle.remove(),t==="end"?this._root.append(this._handle):this._root.prepend(this._handle))}setOrientation(t){this._root.setAttribute(P.attributes.ORIENTATION,t),this._handle.setAttribute("aria-orientation",t==="horizontal"?"vertical":"horizontal"),this._icon.setAttribute("name",X7(t))}setOpen(t,e=!0,o){var s,r;let a=()=>{var l,h;t||this._root.classList.add(P.classes.CLOSED),o&&this.emitHostEvent(t?P.events.DID_OPEN:P.events.DID_CLOSE,o),(l=this._parent)==null||l.unlayerSlottedPanels(),(h=this._parent)==null||h.update({accessibility:!0,cursor:!0})};if(t&&this._root.classList.contains(P.classes.CLOSED)){if(this._root.classList.remove(P.classes.CLOSED),!e){a();return}(s=this._parent)==null||s.layerSlottedPanels(this._component),Gt(this._root,P.classes.OPENING,!0).then(()=>{a()})}else if(!t&&!this._root.classList.contains(P.classes.CLOSED)){if(!e){a();return}(r=this._parent)==null||r.layerSlottedPanels(this._component),Gt(this._root,P.classes.CLOSING,!0).then(()=>{a()})}}setGrabbed(t){var e;this._root.classList.toggle(P.classes.GRABBED,t),this._handle.setAttribute("aria-grabbed",t.toString()),t?(this._overlay||(this._overlay=Z7()),document.body.append(this._overlay)):(e=this._overlay)==null||e.remove()}setHandleCursor(t,e){t?this._root.style.setProperty(P.customCssProperties.CURSOR,x3(t,e)):this._root.style.removeProperty(P.customCssProperties.CURSOR)}setBodyCursor(t,e){var o;(o=this._overlay)==null||o.style.setProperty("cursor",x3(t,e))}getContentSize(t){return t==="horizontal"?this._content.clientWidth:this._content.clientHeight}setContentSize(t){this._component.style.setProperty(P.customCssProperties.SIZE,`${t}px`)}setValuenow(t){this._handle.setAttribute("aria-valuenow",t.toFixed(2))}focusHandle(){this._handle.focus()}getAvailableSpace(t,e){if(e==="off")return-1;let o=_4(this._component);return o?o.getCollapsibleSize()+this.getContentSize(t):this.getParentSize(t)}getSiblingContentSize(){var e;let t=_4(this._component);return(e=t==null?void 0:t.getContentSize())!=null?e:0}setSiblingContentSize(t){let e=_4(this._component);e==null||e.setContentSize(t)}animateStateLayer(t){t?window.setTimeout(()=>{this._stateLayer.playAnimation()},P.numbers.STATE_LAYER_ACTIVATION_WAIT):this._stateLayer.playAnimation()}getParentSize(t){var o,a;let e=t==="horizontal"?(o=this._parent)==null?void 0:o.clientWidth:(a=this._parent)==null?void 0:a.clientHeight;return e!=null?e:0}updateParent(t){var e;(e=this._parent)==null||e.update(t)}};var lb='<template><div class="forge-split-view-panel" id="root" part="root"><div class="forge-split-view-panel__handle" id="handle" part="handle" role="separator" aria-controls="content" aria-grabbed="false" tabindex="0"><forge-icon class="forge-split-view-panel__icon" id="icon" part="icon"></forge-icon><forge-state-layer target="handle" id="state-layer" exportparts="surface:state-layer"></forge-state-layer><forge-focus-indicator inward target="handle" part="focus-indicator"></forge-focus-indicator></div><div class="forge-split-view-panel__content" id="content" part="content" role="group"><slot></slot></div></div></template>',cb=".forge-split-view-panel{display:flex;width:100%;height:100%;overflow:hidden}.forge-split-view-panel__handle{color:var(--forge-theme-text-medium,rgba(0,0,0,.6));background-color:var(--forge-theme-outline,#e0e0e0);position:relative;display:flex;flex-shrink:0;justify-content:center;align-items:center;outline:0}.forge-split-view-panel__content{flex:1;overflow:hidden}.forge-split-view-panel--closed{display:none}.forge-split-view-panel--disabled #handle{pointer-events:none}.forge-split-view-panel--disabled .forge-split-view-panel__icon{display:none}.forge-split-view-panel[orientation=horizontal]{min-width:var(--forge-split-view-handle-width,8px);width:calc(var(--forge-split-view-panel-size,unset) + var(--forge-split-view-handle-width,8px));flex-direction:row}.forge-split-view-panel[orientation=horizontal] .forge-split-view-panel__handle{width:var(--forge-split-view-handle-width,8px);cursor:var(--forge-split-view-panel-cursor)}.forge-split-view-panel[orientation=horizontal].forge-split-view-panel--closing[resizable=end]{position:absolute;top:0;left:0;animation-name:uq6tmnl;animation-duration:var(--forge-animation-duration-medium2, 300ms);animation-timing-function:var(--forge-animation-easing-standard,cubic-bezier(0.2,0,0,1))}@keyframes uq6tmnl{from{transform:none}to{transform:translateX(-100%)}}.forge-split-view-panel[orientation=horizontal].forge-split-view-panel--closing[resizable=start]{position:absolute;top:0;right:0;animation-name:uq6tmog;animation-duration:var(--forge-animation-duration-medium2, 300ms);animation-timing-function:var(--forge-animation-easing-standard,cubic-bezier(0.2,0,0,1))}@keyframes uq6tmog{from{transform:none}to{transform:translateX(100%)}}.forge-split-view-panel[orientation=horizontal].forge-split-view-panel--opening[resizable=end]{position:absolute;top:0;left:0;animation-name:uq6tmok;animation-duration:var(--forge-animation-duration-medium2, 300ms);animation-timing-function:var(--forge-animation-easing-standard,cubic-bezier(0.2,0,0,1));animation-direction:reverse}@keyframes uq6tmok{from{transform:none}to{transform:translateX(-100%)}}.forge-split-view-panel[orientation=horizontal].forge-split-view-panel--opening[resizable=start]{position:absolute;top:0;right:0;animation-name:uq6tmpb;animation-duration:var(--forge-animation-duration-medium2, 300ms);animation-timing-function:var(--forge-animation-easing-standard,cubic-bezier(0.2,0,0,1));animation-direction:reverse}@keyframes uq6tmpb{from{transform:none}to{transform:translateX(100%)}}.forge-split-view-panel[orientation=vertical]{min-height:var(--forge-split-view-handle-width,8px);height:calc(var(--forge-split-view-panel-size,unset) + var(--forge-split-view-handle-width,8px));flex-direction:column}.forge-split-view-panel[orientation=vertical] .forge-split-view-panel__handle{height:var(--forge-split-view-handle-width,8px);cursor:var(--forge-split-view-panel-cursor)}.forge-split-view-panel[orientation=vertical].forge-split-view-panel--closing[resizable=end]{position:absolute;top:0;left:0;animation-name:uq6tmpd;animation-duration:var(--forge-animation-duration-medium2, 300ms);animation-timing-function:var(--forge-animation-easing-standard,cubic-bezier(0.2,0,0,1))}@keyframes uq6tmpd{from{transform:none}to{transform:translateY(-100%)}}.forge-split-view-panel[orientation=vertical].forge-split-view-panel--closing[resizable=start]{position:absolute;bottom:0;left:0;animation-name:uq6tmpn;animation-duration:var(--forge-animation-duration-medium2, 300ms);animation-timing-function:var(--forge-animation-easing-standard,cubic-bezier(0.2,0,0,1))}@keyframes uq6tmpn{from{transform:none}to{transform:translateY(100%)}}.forge-split-view-panel[orientation=vertical].forge-split-view-panel--opening[resizable=end]{position:absolute;top:0;left:0;animation-name:uq6tmqa;animation-duration:var(--forge-animation-duration-medium2, 300ms);animation-timing-function:var(--forge-animation-easing-standard,cubic-bezier(0.2,0,0,1));animation-direction:reverse}@keyframes uq6tmqa{from{transform:none}to{transform:translateY(-100%)}}.forge-split-view-panel[orientation=vertical].forge-split-view-panel--opening[resizable=start]{position:absolute;bottom:0;left:0;animation-name:uq6tmqs;animation-duration:var(--forge-animation-duration-medium2, 300ms);animation-timing-function:var(--forge-animation-easing-standard,cubic-bezier(0.2,0,0,1));animation-direction:reverse}@keyframes uq6tmqs{from{transform:none}to{transform:translateY(100%)}}:host{z-index:var(--forge-split-view-animating-layer)!important;display:block;position:relative;height:100%;width:100%;flex:0}:host([hidden]){display:none}:host(:not([resizable=start],[resizable=end])){flex:1}:host(:not([resizable=start],[resizable=end])) .forge-split-view-panel{width:100%;height:100%;min-width:0;min-height:0}:host(:not([resizable=start],[resizable=end])) .forge-split-view-panel__handle{display:none}forge-focus-indicator{--forge-focus-indicator-active-width:2px}",L2=class extends M{static get observedAttributes(){return[P.attributes.RESIZABLE,P.attributes.SIZE,P.attributes.MIN,P.attributes.MAX,P.attributes.ACCESSIBLE_LABEL,P.attributes.OPEN,P.attributes.DISABLED,P.attributes.ALLOW_CLOSE,P.attributes.AUTO_CLOSE,P.attributes.AUTO_CLOSE_THRESHOLD]}constructor(){super(),X.define([wl,gl]),z(this,lb,cb),this._core=new x4(new f4(this))}connectedCallback(){this._core.initialize()}disconnectedCallback(){this._core.destroy()}attributeChangedCallback(t,e,o){switch(t){case P.attributes.RESIZABLE:this.resizable=o;break;case P.attributes.SIZE:this.size=o;break;case P.attributes.MIN:this.min=o;break;case P.attributes.MAX:o?this.max=o:this.max=void 0;break;case P.attributes.ACCESSIBLE_LABEL:this.accessibleLabel=o;break;case P.attributes.OPEN:this.open=p(o);break;case P.attributes.DISABLED:this.hasAttribute(t)?this.disabled=p(o):this.disabled=void 0;break;case P.attributes.ALLOW_CLOSE:this.hasAttribute(t)?this.allowClose=p(o):this.allowClose=void 0;break;case P.attributes.AUTO_CLOSE:this.hasAttribute(t)?this.autoClose=p(o):this.autoClose=void 0;break;case P.attributes.AUTO_CLOSE_THRESHOLD:o?this.autoCloseThreshold=K(o):this.autoCloseThreshold=void 0;break}}getContentSize(){return this._core.getContentSize()}getCollapsibleSize(){return this._core.getCollapsibleSize()}setContentSize(t){this._core.setContentSize(t)}update(t){this._core.update(t)}};i([c()],L2.prototype,"resizable",2),i([c()],L2.prototype,"size",2),i([c()],L2.prototype,"min",2),i([c()],L2.prototype,"max",2),i([c()],L2.prototype,"accessibleLabel",2),i([c()],L2.prototype,"open",2),i([c()],L2.prototype,"disabled",2),i([c()],L2.prototype,"allowClose",2),i([c()],L2.prototype,"autoClose",2),i([c()],L2.prototype,"autoCloseThreshold",2),L2=i([y({name:P.elementName,dependencies:[j,r1,J]})],L2);function Dy1(){f(L2)}var b4=class extends I{constructor(t){super(t),this._root=w(t,t2.selectors.ROOT)}registerSlotListener(t){this._root.addEventListener("slotchange",t)}registerDidOpenListener(t){this._root.addEventListener(P.events.DID_OPEN,t)}registerDidCloseListener(t){this._root.addEventListener(P.events.DID_CLOSE,t)}observeResize(t){B0.observe(this._root,t)}unobserveResize(){B0.unobserve(this._root)}getSlottedPanels(){let t=this._component.querySelectorAll(t2.selectors.PANEL);return Array.from(t).filter(a=>a.parentElement===this._component)}refitSlottedPanels(t){let e=t==="horizontal"?this._root.clientWidth:this._root.clientHeight,o=this.getSlottedPanels(),a=o.map(r=>{var v;let l=(v=r.shadowRoot)==null?void 0:v.querySelector(P.selectors.ROOT),h=t==="horizontal"?l==null?void 0:l.clientWidth:l==null?void 0:l.clientHeight;return h!=null?h:0}).reduce((r,l)=>r+l,0);if(a<=e)return;let s=a-e;o.slice().reverse().filter(r=>r.open).forEach(r=>{if(s<=0)return;let l=r.getContentSize(),h=r.getCollapsibleSize(),v=Math.min(s,h),m=l-v;r.setContentSize(m),s-=v})}};var y4=class{constructor(t){this._adapter=t;this._orientation="horizontal";this._disabled=!1;this._allowClose=!1;this._autoClose=!1;this._autoCloseThreshold=0;this._isInitialized=!1;this._slotListener=e=>this._onSlotChange(e),this._didOpenListener=()=>this._onDidOpen(),this._didCloseListener=()=>this._onDidClose(),this._resizeObserverCallback=Gn(e=>this._onResize(e),t2.numbers.RESIZE_THROTTLE_THRESHOLD)}initialize(){this._adapter.registerSlotListener(this._slotListener),this._adapter.registerDidOpenListener(this._didOpenListener),this._adapter.registerDidCloseListener(this._didCloseListener),this._adapter.observeResize(this._resizeObserverCallback),this._applyOrientation(),this._isInitialized=!0}destroy(){this._adapter.unobserveResize()}_onSlotChange(t){this._layoutSlottedPanels(),this.update({accessibility:!0,cursor:!0,orientation:this._orientation})}_onDidOpen(){this._adapter.refitSlottedPanels(this._orientation),this.update({accessibility:!0,cursor:!0,size:!0})}_onDidClose(){this._adapter.refitSlottedPanels(this._orientation),this.update({accessibility:!0,cursor:!0,size:!0})}_onResize(t){this.update({accessibility:!0,cursor:!0,size:!0})}_layoutSlottedPanels(){let t=this._adapter.getSlottedPanels();t.length<2||t.some(e=>e.resizable!=="off")||t.slice(1).forEach(e=>e.resizable="start")}get orientation(){return this._orientation}set orientation(t){this._orientation!==t&&(this._orientation=t,this._applyOrientation())}_applyOrientation(){this._adapter.setHostAttribute(t2.attributes.ORIENTATION,this._orientation),this.update({orientation:this._orientation}),this._isInitialized&&this._adapter.refitSlottedPanels(this._orientation),this.update({accessibility:!0,cursor:!0})}get disabled(){return this._disabled}set disabled(t){this._disabled!==t&&(this._disabled=t,this._applyDisabled())}_applyDisabled(){this._adapter.toggleHostAttribute(t2.attributes.DISABLED,this._disabled),this.update({properties:{disabled:this._disabled}})}get allowClose(){return this._allowClose}set allowClose(t){this._allowClose!==t&&(this._allowClose=t,this._applyAllowClose())}_applyAllowClose(){this._adapter.toggleHostAttribute(t2.attributes.ALLOW_CLOSE,this._allowClose),this.update({properties:{allowClose:this._allowClose}})}get autoClose(){return this._autoClose}set autoClose(t){this._autoClose!==t&&(this._autoClose=t,this._applyAutoClose())}_applyAutoClose(){this._adapter.toggleHostAttribute(t2.attributes.AUTO_CLOSE,this._autoClose),this.update({properties:{autoClose:this._autoClose}})}get autoCloseThreshold(){return this._autoCloseThreshold}set autoCloseThreshold(t){this._autoCloseThreshold!==t&&(this._autoCloseThreshold=t,this._applyAutoCloseThreshold())}_applyAutoCloseThreshold(){this._adapter.setHostAttribute(t2.attributes.AUTO_CLOSE_THRESHOLD,this._autoCloseThreshold.toString()),this.update({properties:{autoCloseThreshold:this._autoCloseThreshold}})}layerSlottedPanels(t){let e=this._adapter.getSlottedPanels(),o=t.resizable==="start"?1:-1,a=t.resizable==="start"?1:3;e.forEach(s=>{(s===t||a===2)&&(a+=o),s.style.setProperty(t2.customCssProperties.ANIMATING_LAYER,a.toString())})}unlayerSlottedPanels(){this._adapter.getSlottedPanels().forEach(e=>{e.style.removeProperty(t2.customCssProperties.ANIMATING_LAYER)})}update(t){this._adapter.getSlottedPanels().forEach(o=>{o.update(t)})}refitSlottedPanels(){this._adapter.refitSlottedPanels(this._orientation)}};var hb='<template><div class="forge-split-view" id="root" part="root"><slot></slot></div></template>',vb=".forge-split-view{display:flex;width:100%;height:100%}:host{--forge-split-view-handle-width:8px;display:block;height:100%;width:100%;overflow:hidden}:host([hidden]){display:none}:host([orientation=horizontal]) .forge-split-view{flex-direction:row}:host([orientation=vertical]) .forge-split-view{flex-direction:column}",Te=class extends M{static get observedAttributes(){return[t2.attributes.ORIENTATION,t2.attributes.DISABLED,t2.attributes.ALLOW_CLOSE,t2.attributes.AUTO_CLOSE,t2.attributes.AUTO_CLOSE_THRESHOLD]}constructor(){super(),z(this,hb,vb),this._core=new y4(new b4(this))}connectedCallback(){this._core.initialize()}disconnectedCallback(){this._core.destroy()}attributeChangedCallback(t,e,o){switch(t){case t2.attributes.ORIENTATION:this.orientation=o;break;case t2.attributes.DISABLED:this.disabled=p(o);break;case t2.attributes.ALLOW_CLOSE:this.allowClose=p(o);break;case t2.attributes.AUTO_CLOSE:this.autoClose=p(o);break;case t2.attributes.AUTO_CLOSE_THRESHOLD:this.autoCloseThreshold=K(o);break}}layerSlottedPanels(t){this._core.layerSlottedPanels(t)}unlayerSlottedPanels(){this._core.unlayerSlottedPanels()}update(t){this._core.update(t)}refit(){this._core.refitSlottedPanels()}};i([c()],Te.prototype,"orientation",2),i([c()],Te.prototype,"disabled",2),i([c()],Te.prototype,"allowClose",2),i([c()],Te.prototype,"autoClose",2),i([c()],Te.prototype,"autoCloseThreshold",2),Te=i([y({name:t2.elementName,dependencies:[L2]})],Te);function Q7(){f(Te)}var pb=`${b}stack`,J7={DEFAULT:"forge-stack"},mb={ROOT:`.${J7.DEFAULT}`},tm={INLINE:"inline",WRAP:"wrap",STRETCH:"stretch",GAP:"gap",ALIGNMENT:"alignment",JUSTIFY:"justify"},db=d({},tm),gb={DEFAULT_GAP:"16"},W2={elementName:pb,classes:J7,observedAttributes:tm,attributes:db,selectors:mb,strings:gb};var M4=class extends I{constructor(t){super(t),this._rootElement=w(t,W2.selectors.ROOT)}setGap(t){let e=/^\d+$/.test(t)?`${t}px`:t;this._rootElement.style.gap=`var(--forge-stack-gap, ${e})`}};var z4=class{constructor(t){this._adapter=t;this._inline=!1;this._wrap=!1;this._stretch=!1;this._gap=W2.strings.DEFAULT_GAP;this._alignment="start";this._justify="start"}get inline(){return this._inline}set inline(t){t=!!t,this._inline!==t&&(this._inline=t,this._adapter.toggleHostAttribute(W2.attributes.INLINE,this._inline))}get wrap(){return this._wrap}set wrap(t){t=!!t,this._wrap!==t&&(this._wrap=t,this._adapter.toggleHostAttribute(W2.attributes.WRAP,this._wrap))}get stretch(){return this._stretch}set stretch(t){t=!!t,this._stretch!==t&&(this._stretch=t,this._adapter.toggleHostAttribute(W2.attributes.STRETCH,this._stretch))}get gap(){return this._gap}set gap(t){this._gap!==t&&(this._gap=t,this._adapter.setGap(this._gap),this._adapter.setHostAttribute(W2.attributes.GAP,this._gap))}get alignment(){return this._alignment}set alignment(t){this._alignment!==t&&(this._alignment=t,this._adapter.setHostAttribute(W2.attributes.ALIGNMENT,this._alignment))}get justify(){return this._justify}set justify(t){this._justify!==t&&(this._justify=t,this._adapter.setHostAttribute(W2.attributes.JUSTIFY,this._justify))}};var wb='<template><div class="forge-stack" part="root"><slot></slot></div></template>',ub=".forge-stack{display:flex;flex-direction:column;align-items:var(--_stack-alignment);justify-content:var(--_stack-justify);gap:var(--_stack-gap);height:var(--_stack-height);width:100%;--_stack-gap:var(--forge-stack-gap, var(--forge-spacing-medium, 16px));--_stack-height:var(--forge-stack-height);--_stack-stretch:var(--forge-stack-stretch, initial);--_stack-alignment:var(--forge-stack-alignment, normal);--_stack-justify:var(--forge-stack-justify, normal);--_stack-wrap:var(--forge-stack-wrap, wrap)}.forge-stack ::slotted(*){flex:var(--_stack-stretch)}:host([inline]) .forge-stack{flex-direction:row}:host([inline][wrap]) .forge-stack{flex-wrap:wrap}:host(:not([inline])) .forge-stack{--_stack-height:var(--forge-stack-height, 100%)}:host([stretch]) ::slotted(*){--_stack-stretch:var(--forge-stack-stretch, 1)}:host([alignment=start]) .forge-stack{--_stack-alignment:var(--forge-stack-alignment, start)}:host([alignment=center]) .forge-stack{--_stack-alignment:var(--forge-stack-alignment, center)}:host([alignment=end]) .forge-stack{--_stack-alignment:var(--forge-stack-alignment, end)}:host([justify=start]) .forge-stack{--_stack-justify:var(--forge-stack-justify, start)}:host([justify=center]) .forge-stack{--_stack-justify:var(--forge-stack-justify, center)}:host([justify=end]) .forge-stack{--_stack-justify:var(--forge-stack-justify, end)}",_e=class extends M{static get observedAttributes(){return Object.values(W2.observedAttributes)}constructor(){super(),z(this,wb,ub),this._core=new z4(new M4(this))}attributeChangedCallback(t,e,o){switch(t){case W2.observedAttributes.INLINE:this.inline=p(o);break;case W2.observedAttributes.WRAP:this.wrap=p(o);break;case W2.observedAttributes.STRETCH:this.stretch=p(o);break;case W2.observedAttributes.GAP:this.gap=o;break;case W2.observedAttributes.ALIGNMENT:this.alignment=o;break;case W2.observedAttributes.JUSTIFY:this.justify=o;break}}};i([c()],_e.prototype,"inline",2),i([c()],_e.prototype,"wrap",2),i([c()],_e.prototype,"stretch",2),i([c()],_e.prototype,"gap",2),i([c()],_e.prototype,"alignment",2),i([c()],_e.prototype,"justify",2),_e=i([y({name:W2.elementName})],_e);function em(){f(_e)}var H4=`${b}step`,po={STEP:"forge-step",STEP_CONTAINER:"container",ERROR:"error",SELECTED:"selected",COMPLETED:"completed",EDITABLE:"editable",ALTERNATIVE:"alternative",ICON_CONTENT:"icon-content",ICON:"icon",LABEL_CONTAINER:"label-container",LABEL:"label",OPTIONAL_LABEL:"optional-label",INDEX:"index",CLUSTERED:"clustered",DISABLED:"disabled",VERTICAL:"vertical",EXPANDED:"expanded",EXPANDABLE:"expandable",EXPANSION_PANEL:"expansion-panel",EXPANSION_ICON:"expanded-icon",EXPANSION_ICON_EXPANDED:"expanded-icon--expanded",EXPANSION_CONTENT:"expansion-content"},_b={SELECTED:"selected",INDEX:"index",EDITABLE:"editable",COMPLETED:"completed",ERROR:"error",ALTERNATIVE:"alternative",FIRST:"first",LAST:"last",ARIA_SELECTED:"aria-selected",CLUSTERED:"clustered",DISABLED:"disabled",VERTICAL:"vertical",EXPANDED:"expanded",EXPANDABLE:"expandable",IGNORE_USER_EXPANSION:"ignore-user-expansion"},xb={STEP:`.${po.STEP}`,STEP_CONTAINER:`.${po.STEP_CONTAINER}`,INDEX:`.${po.INDEX}`,ICON:`.${po.ICON}`,ICON_CONTENT:`.${po.ICON_CONTENT}`,EXPANSION_SLOT:'slot[name="expansion-content"]',EXPANSION_PANEL:`.${po.EXPANSION_PANEL}`,EXPANSION_ICON:`.${po.EXPANSION_ICON}`},fb={ARROW_LEFT_KEY:"ArrowLeft",ARROW_RIGHT_KEY:"ArrowRight",ARROW_UP_KEY:"ArrowUp",ARROW_DOWN_KEY:"ArrowDown",END_KEY:"End",ENTER_KEY:"Enter",HOME_KEY:"Home",SPACE_KEY:"Space",EXPANSION_CONTENT_SLOT_NAME:"expansion-content"},bb={SELECT:`${H4}-select`,EXPANDED_CONTENT_FOCUSIN:`${H4}-expanded-content-focusin`,EXPANDED_CONTENT_FOCUSOUT:`${H4}-expanded-content-focusout`},k={elementName:H4,classes:po,selectors:xb,attributes:_b,events:bb,strings:fb};var I4=class extends I{constructor(t){super(t),this._stepContainer=w(t,k.selectors.STEP),this._container=w(t,k.selectors.STEP_CONTAINER),this._stateLayerElement=w(this._component,I1.elementName)}get component(){return this._component}initialize(){this._component.hasAttribute("role")||this._component.setAttribute("role","tab")}setIndex(t){this._stepContainer.querySelector(k.selectors.INDEX).innerHTML=(t+1||"").toString()}toggleRootClass(t,e){f2(this._stepContainer,e,t)}toggleDisabled(t){f2(this._stepContainer,t,k.classes.DISABLED),G(this._component,t,"aria-disabled"),this._stateLayerElement.disabled=t}toggleIcon(t,e){let o=this._stepContainer.querySelector(k.selectors.INDEX),a=this._stepContainer.querySelector(k.selectors.ICON);if(!e){o.style.display="inherit",a.style.display="none";return}o.style.display="none",a.style.display="inherit",a.name=t}slotHasContent(){return this._expansionSlot.assignedElements({flatten:!0}).length>0}setClickListener(t){this._component.addEventListener("click",t)}removeClickListener(t){this._component.removeEventListener("click",t)}setSlotListener(t){this._expansionSlot.addEventListener("slotchange",t)}removeSlotListener(t){this._expansionSlot&&this._expansionSlot.removeEventListener("slotchange",t)}setExpanded(t){this._expansionPanel&&(this._expansionPanel.open=t,G(this._expansionPanel,!t,"tabindex","-1")),f2(this._stepContainer,t,k.classes.EXPANDED)}setExpansionPanelAnimations(t){this._expansionPanel.animationType=t?"default":"none"}addExpansionPanel(){this._container.querySelector(k.selectors.EXPANSION_PANEL)||(this._expansionPanel=this._container.appendChild(this._createExpansionPanel()),this._expansionSlot=this._expansionPanel.querySelector(k.selectors.EXPANSION_SLOT))}removeExpansionPanel(){let t=this._container.querySelector(k.selectors.EXPANSION_PANEL);t&&this._container.removeChild(t)}addExpansionIcon(){this._stepContainer.querySelector(k.selectors.EXPANSION_ICON)||this._stepContainer.appendChild(this._createExpansionIcon())}removeExpansionIcon(){let t=this._stepContainer.querySelector(k.selectors.EXPANSION_ICON);t&&this._stepContainer.removeChild(t)}addExpansionPanelListener(t,e){this._expansionPanel.addEventListener(t,e)}removeExpansionPanelListener(t,e){this._expansionPanel&&this._expansionPanel.removeEventListener(t,e)}isExpandedContentInFocus(t){return this._expansionSlot.assignedElements().some(e=>e.contains(t||document.activeElement))}_createExpansionPanel(){let t=document.createElement("forge-expansion-panel");t.animationType="none",t.setAttribute("part","expansion-panel"),H1(k.classes.EXPANSION_PANEL,t);let e=document.createElement("slot");return e.setAttribute("name","expansion-content"),H1(k.classes.EXPANSION_CONTENT,e),t.appendChild(e),t}_createExpansionIcon(){let t=document.createElement("forge-icon");return H1(k.classes.EXPANSION_ICON,t),t.name="keyboard_arrow_down",t.setAttribute("part","expanded-icon"),t}};var L4=class{constructor(t){this._adapter=t;this._clickListener=()=>this._onClickListener(),this._expansionContentSlotChangeListener=e=>this._onExpansionContentSlotChange(e),this._expansionContentFocusInListener=e=>this._onExpansionContentFocusIn(e),this._expansionContentFocusOutListener=e=>this._onExpansionContentFocusOut(e)}initialize(){this._adapter.initialize(),this._applySelected(),this._toggleIcon(),this._vertical&&(this._adapter.addExpansionPanel(),this._adapter.addExpansionIcon(),this._adapter.setClickListener(this._clickListener),this._adapter.setSlotListener(this._expansionContentSlotChangeListener),this._adapter.addExpansionPanelListener("focusin",this._expansionContentFocusInListener),this._adapter.addExpansionPanelListener("focusout",this._expansionContentFocusOutListener)),this._initialized=!0}destroy(){this._adapter.removeClickListener(this._clickListener),this._adapter.removeSlotListener(this._expansionContentSlotChangeListener),this._adapter.removeExpansionPanelListener("focusin",this._onExpansionContentFocusIn),this._adapter.removeExpansionPanelListener("focusout",this._onExpansionContentFocusOut)}get index(){return this._index}set index(t){this._index!==t&&(this._index=t,this._applyIndex(),this._adapter.setHostAttribute(k.attributes.INDEX,t.toString()))}get editable(){return this._editable}set editable(t){this._editable!==t&&(this._editable=t,this._adapter.toggleHostAttribute(k.attributes.EDITABLE,t),this._applyEditable())}get completed(){return this._completed}set completed(t){this._completed!==t&&(this._completed=t,this._adapter.toggleHostAttribute(k.attributes.COMPLETED,t),this._applyCompleted())}get error(){return this._error}set error(t){this._error!==t&&(this._error=t,this._adapter.toggleHostAttribute(k.attributes.ERROR,t),this._applyError())}get selected(){return this._selected}set selected(t){this._selected!==t&&(this._selected=t,this._adapter.toggleHostAttribute(k.attributes.SELECTED,t),this._applySelected())}get alternative(){return this._alternative}set alternative(t){this._alternative!==t&&(this._alternative=t,this._adapter.toggleHostAttribute(k.attributes.ALTERNATIVE,t),this._applyAlternative())}get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._applyDisabled()}get vertical(){return this._vertical}set vertical(t){t!==this._vertical&&(this._vertical=t,this._applyVertical(),this._initialized&&(this._vertical?(this._adapter.addExpansionPanel(),this._adapter.addExpansionIcon(),this._adapter.setClickListener(this._clickListener),this._adapter.setSlotListener(this._expansionContentSlotChangeListener)):(this._adapter.removeClickListener(this._clickListener),this._adapter.removeSlotListener(this._expansionContentSlotChangeListener),this._adapter.removeExpansionPanel(),this._adapter.removeExpansionIcon())))}get expanded(){return this._expanded}set expanded(t){t!==this._expanded&&(this._expanded=t,this._adapter.toggleHostAttribute(k.attributes.EXPANDED,this._expanded),this._initialized&&this._applyExpanded())}get ignoreUserExpansion(){return this._ignoreUserExpansion}set ignoreUserExpansion(t){t!==this._ignoreUserExpansion&&(this._ignoreUserExpansion=t)}_applyExpanded(){this._adapter.setExpanded(this._expanded)}_applyVertical(){this._adapter.toggleHostAttribute(k.attributes.VERTICAL,this._vertical),this._adapter.toggleRootClass(k.classes.VERTICAL,this._vertical)}_applyAlternative(){this._adapter.toggleRootClass(k.classes.ALTERNATIVE,this._alternative)}_applySelected(){this._adapter.toggleRootClass(k.classes.SELECTED,this._selected),this._adapter.setHostAttribute(k.attributes.ARIA_SELECTED,(this._selected||!1).toString()),this._adapter.hostElement.tabIndex=this._selected?0:-1,this._toggleIcon()}_applyIndex(){this._adapter.setIndex(this._index)}_applyEditable(){this._adapter.toggleRootClass(k.classes.EDITABLE,this._editable),this._toggleIcon()}_applyCompleted(){this._adapter.toggleRootClass(k.classes.COMPLETED,this._completed),this._toggleIcon()}_applyError(){this._adapter.toggleRootClass(k.classes.ERROR,this._error),this._toggleIcon()}_applyDisabled(){this._adapter.toggleDisabled(this._disabled),this._toggleIcon()}_getIconState(){return this._error?"warning":this._completed?this._editable?"mode_edit":"check":this._editable&&this._selected&&!this._disabled?"mode_edit":this._disabled?"block":""}_toggleIcon(){this._iconState=this._getIconState(),this._adapter.toggleIcon(this._iconState,this._iconState!=="")}_toggleExpanded(){this._adapter.slotHasContent()&&(this._expanded=!this._expanded,this._applyExpanded(),this._adapter.toggleHostAttribute(k.attributes.EXPANDED,this._expanded))}_onClickListener(){this._vertical&&!this._ignoreUserExpansion&&this._toggleExpanded()}_onExpansionContentSlotChange(t){let e=this._adapter.slotHasContent();e?(this._adapter.setHostAttribute(k.attributes.EXPANDABLE),this._applyExpanded(),this._adapter.setExpansionPanelAnimations(!0)):(this._adapter.removeHostAttribute(k.attributes.EXPANDABLE),this._adapter.setExpansionPanelAnimations(!1)),this._adapter.toggleRootClass(k.classes.EXPANDABLE,e)}_onExpansionContentFocusIn(t){!this._expandedContentFocused&&this._adapter.isExpandedContentInFocus(t.target)&&(this._adapter.emitHostEvent(k.events.EXPANDED_CONTENT_FOCUSIN,this._adapter.component),this._expandedContentFocused=!0)}_onExpansionContentFocusOut(t){t.relatedTarget&&!this._adapter.isExpandedContentInFocus(t.relatedTarget)&&(this._adapter.emitHostEvent(k.events.EXPANDED_CONTENT_FOCUSOUT,this._adapter.component),this._expandedContentFocused=!1)}};var yb='<template><div class="container" part="root"><div class="forge-step" part="step"><div class="before" part="before"></div><div class="icon-container" part="icon-container"><div class="icon-content" part="icon-content"><span class="index" part="index"></span><forge-icon class="icon" part="icon"></forge-icon></div></div><div class="text-container" part="text-container"><div class="title" part="title-container"><slot></slot></div><div class="subtitle" part="subtitle-container"><slot name="optional"></slot></div></div><div class="after" part="after"></div><forge-state-layer exportparts="surface:state-layer" target=":host"></forge-state-layer><forge-focus-indicator part="focus-indicator" target=":host" inward></forge-focus-indicator></div></div></template>',Mb=':host{--_step-primary-color:var(--forge-step-primary-color, var(--forge-theme-primary, #3f51b5));--_step-text-color:var(--forge-step-text-color, var(--forge-theme-on-primary, #ffffff));--_step-border-radius:var(--forge-step-border-radius, calc(var(--forge-shape-extra-large, 16px) * var(--forge-shape-factor, 1)));--_step-border-radius-vertical:var(--forge-step-border-radius-vertical, calc(var(--forge-shape-medium, 4px) * var(--forge-shape-factor, 1)));--_step-disabled-text-color:var(--forge-step-disabled-text-color, var(--forge-theme-text-low, rgba(0, 0, 0, 0.38)));--_step-disabled-color:var(--forge-step-disabled-color, var(--forge-theme-surface-container-minimum, #f5f5f5));--_step-icon-fill:var(--forge-step-icon-fill, unset);--_step-icon-fill-active:var(--forge-step-icon-fill-active, var(--_step-primary-color));--_step-icon-text-color:var(--forge-step-icon-text-color, var(--forge-theme-primary, #3f51b5));--_step-icon-text-color-active:var(--forge-step-icon-text-color-active, var(--forge-theme-on-primary, #ffffff));--_step-icon-content-size:var(--forge-step-icon-content-size, 24px);--_step-icon-size:var(--forge-step-icon-size, calc(var(--forge-typography-font-size, 1rem) * 0.875));--_step-icon-transition-duration:var(--forge-step-icon-transition-duration, var(--forge-animation-duration-medium4, 400ms));--_step-icon-transition-easing:var(--forge-step-icon-transition-easing, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1)));--_step-line-color:var(--forge-step-line-color, var(--forge-theme-outline, #e0e0e0));--_step-line-min-width:var(--forge-step-line-min-width, 10px);--_step-line-min-width-clustered:var(--forge-step-line-min-width-clustered, 25px);--_step-label-color:var(--forge-step-label-color, var(--forge-theme-text-high, rgba(0, 0, 0, 0.87)));--_step-sub-label-color:var(--forge-step-sub-label-color, var(--forge-theme-text-medium, rgba(0, 0, 0, 0.6)));--_step-error-color:var(--forge-step-error-color, var(--forge-theme-error, #b00020));--_step-error-text-color:var(--forge-step-error-text-color, var(--forge-theme-on-error, #ffffff));--_step-expansion-panel-border-left-width:var(--forge-step-expansion-panel-border-left-width, 1px);--_step-expansion-panel-margin-bottom:var(--forge-step-expansion-panel-margin-bottom, 4px);--_step-expansion-panel-margin-left:var(--forge-step-expansion-panel-margin-left, 60px);--_step-expansion-panel-margin-top:var(--forge-step-expansion-panel-margin-top, 4px);--_step-expansion-panel-icon-color:var(--forge-step-expansion-panel-icon-color, var(--forge-theme-text-medium, rgba(0, 0, 0, 0.6)))}:host(:focus){outline:0}:host([error]){--forge-state-layer-color:var(--_step-error-color)}:host(:first-child[alternative])::after{align-self:flex-start;top:22px;margin:0}:host(:last-child[alternative])::before{align-self:flex-start;top:22px;margin:0}:host(:not(:first-child):not(:last-child)[alternative])::after,:host(:not(:first-child):not(:last-child)[alternative])::before{align-self:flex-start;top:22px;min-width:7px;margin:0}:host(:not(:last-child)[alternative]) .after{align-self:flex-start;top:22px;position:absolute;width:calc(50% - 18px);left:calc(50% + 18px);height:0;right:0}:host(:not(:first-child)[alternative]) .before{align-self:flex-start;top:22px;position:absolute;left:0;width:calc(50% - 18px);height:0}:host(:not(:first-child):not(:last-child)):host(:not([vertical]))::after,:host(:not(:first-child):not(:last-child)):host(:not([vertical]))::before{border-color:var(--_step-line-color);min-width:var(--_step-line-min-width);content:"";position:relative;height:0;flex:1;flex-basis:0.000000001px;border-top-style:solid;border-top-width:1px;border-radius:1px 0 0 1px;margin:0 -10px}:host(:last-child):host(:not([vertical]))::before{border-color:var(--_step-line-color);min-width:var(--_step-line-min-width);content:"";position:relative;height:0;flex:1;flex-basis:0.000000001px;border-top-style:solid;border-top-width:1px;border-radius:1px 0 0 1px;margin:0 -10px 0 0}:host(:is(:first-child)):host(:not([vertical]))::after{border-color:var(--_step-line-color);min-width:var(--_step-line-min-width);content:"";position:relative;height:0;flex:1;flex-basis:0.000000001px;border-top-style:solid;border-top-width:1px;border-radius:1px 0 0 1px;margin:0 -10px}:host([vertical]){flex-direction:column}:host([vertical])::after{content:none}:host([vertical])::before{content:none}:host([vertical]) .forge-step{--_step-border-radius:var(--_step-border-radius-vertical);width:100%;min-height:52px}:host([vertical]) .forge-step .text-container{white-space:normal}:host([vertical]) .icon-container .icon-content{margin:0 16px 0 0}:host([vertical]) .expansion-panel{display:none}:host([vertical]) .expanded-icon{color:var(--_step-expansion-panel-icon-color);display:none;margin-left:auto}:host([vertical][expandable]) .expansion-panel{display:block}:host([ignore-user-expansion]) .forge-step .expanded-icon{display:none}forge-expansion-panel::part(root){border-color:var(--_step-line-color);margin-left:var(--_step-expansion-panel-margin-left);margin-top:var(--_step-expansion-panel-margin-top);margin-bottom:var(--_step-expansion-panel-margin-bottom);border-left-width:var(--_step-expansion-panel-border-left-width);border-left-style:solid}forge-focus-indicator{--forge-focus-indicator-color:var(--_step-primary-color);--forge-focus-indicator-shape:16px}.container{display:contents}.forge-step{-webkit-tap-highlight-color:transparent;padding:12px 16px;outline:0;background:0 0;border:none;border-radius:var(--_step-border-radius);position:relative;display:flex;overflow:hidden;align-items:center;box-sizing:border-box;cursor:pointer}.forge-step:focus{outline:0}.forge-step::-moz-focus-inner,.forge-step::-moz-focus-outer{padding:0;border:0}.forge-step.error forge-focus-indicator{--forge-focus-indicator-color:var(--_step-error-color)}.forge-step.vertical forge-focus-indicator{--forge-focus-indicator-shape:4px}.forge-step.selected:not(.disabled){--forge-state-layer-color:var(--_step-primary-color)}.forge-step.selected:not(.disabled)::before{background-color:var(--_step-primary-color);content:"";position:absolute;inset:0;opacity:.08;height:100%;width:100%}.forge-step.selected:not(.disabled).error{--_step-primary-color:var(--_step-error-color)}.forge-step .title{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-body1-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-body1-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-font-size-scale, .875)));font-weight:var(--forge-typography-body1-font-weight,400);line-height:var(--forge-typography-body1-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-line-height-scale, 1.125)));letter-spacing:var(--forge-typography-body1-letter-spacing, .0357142857em);text-transform:var(--forge-typography-body1-text-transform,inherit);text-decoration:var(--forge-typography-body1-text-decoration,inherit);color:var(--_step-label-color);text-align:left;overflow:hidden;text-overflow:ellipsis}.forge-step .subtitle{text-align:left;overflow:hidden;text-overflow:ellipsis}.forge-step .subtitle ::slotted(*){color:var(--_step-sub-label-color);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-label1-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-label1-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-label-font-size-scale, .75)));font-weight:var(--forge-typography-label1-font-weight,400);line-height:var(--forge-typography-label1-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-label-line-height-scale, 1.25)));letter-spacing:var(--forge-typography-label1-letter-spacing, .0357142857em);text-transform:var(--forge-typography-label1-text-transform,inherit);text-decoration:var(--forge-typography-label1-text-decoration,inherit)}.forge-step .icon-container .icon-content{color:var(--_step-icon-text-color);background-color:var(--_step-icon-fill);height:var(--_step-icon-content-size);width:var(--_step-icon-content-size);border-style:solid;border-width:2px;border-color:transparent;border-radius:50%;display:flex;align-items:center;justify-content:center;transition:background-color var(--_step-icon-transition-duration) var(--_step-icon-transition-easing);margin:0 8px 0 0;flex:none}.forge-step .icon-container .icon-content forge-icon{font-size:var(--_step-icon-size)}.forge-step.disabled{color:var(--_step-disabled-text-color);cursor:not-allowed}.forge-step.disabled.forge-step .icon-container .icon-content{--_step-icon-fill:var(--_step-disabled-color);--_step-icon-text-color:var(--_step-disabled-text-color)}.forge-step.disabled .text-container .title{color:var(--_step-disabled-text-color)}.forge-step.disabled .text-container .subtitle ::slotted(*){color:var(--_step-disabled-text-color)}.forge-step.alternative{flex-direction:column}.forge-step.alternative .icon-container .icon-content{margin:0}.forge-step.alternative .text-container{margin-top:8px;place-items:center}.forge-step:not(.selected):not(.disabled).editable:not(.completed):not(.error) .icon-content,.forge-step:not(.selected):not(.disabled):not(.editable):not(.completed):not(.error) .icon-content{border-color:var(--_step-primary-color)}.forge-step:not(.selected):not(.disabled).editable:not(.completed):not(.error) .icon-content .index,.forge-step:not(.selected):not(.disabled):not(.editable):not(.completed):not(.error) .icon-content .index{color:var(--_step-primary-color)}.forge-step.selected.disabled .icon-content{--_step-icon-fill:var(--_step-disabled-color);--_step-icon-text-color:var(--_step-disabled-text-color)}.forge-step.selected:not(.disabled) .icon-container .icon-content{--_step-icon-fill:var(--_step-icon-fill-active);--_step-icon-text-color:var(--_step-icon-text-color-active)}.forge-step.selected:not(.disabled) .title{color:var(--_step-primary-color);font-weight:500}.forge-step.selected:not(.disabled) .subtitle ::slotted(*){color:var(--_step-primary-color);font-weight:500}.forge-step.error:not(.disabled) .title{color:var(--_step-error-color)}.forge-step.error:not(.disabled) .subtitle ::slotted(*){color:var(--_step-error-color)}.forge-step.error:not(.disabled) .icon-container .icon-content{--_step-icon-fill:var(--_step-error-color);--_step-icon-text-color:var(--_step-error-text-color)}.forge-step.completed:not(.disabled):not(.error):not(.editable) .icon-content{--_step-icon-fill:var(--_step-icon-fill-active);--_step-icon-text-color:var(--_step-icon-text-color-active)}.forge-step.completed:not(.disabled):not(.error).editable .icon-content{--_step-icon-fill:var(--_step-icon-fill-active);--_step-icon-text-color:var(--_step-icon-text-color-active)}.forge-step.expandable .expanded-icon{display:inline-block;transition:transform .3s ease-in-out}.forge-step.expandable.expanded .expanded-icon{transform:rotate(180deg)}.forge-step.expandable .icon-container .icon-content{margin:0 16px 0 0}.forge-step .text-container{display:flex;flex-direction:column;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host(:not(:last-child)[clustered])::after{--_step-line-min-width:var(--_step-line-min-width-clustered)}:host(:last-child[clustered])::before{--_step-line-min-width:var(--_step-line-min-width-clustered)}:host(:not(:first-child):not(:last-child)[clustered])::after,:host(:not(:first-child):not(:last-child)[clustered])::before{--_step-line-min-width:var(--_step-line-min-width-clustered)}',Z2=class extends M{static get observedAttributes(){return[k.attributes.COMPLETED,k.attributes.EDITABLE,k.attributes.ERROR,k.attributes.INDEX,k.attributes.SELECTED,k.attributes.ALTERNATIVE,k.attributes.DISABLED,k.attributes.VERTICAL,k.attributes.EXPANDED,k.attributes.IGNORE_USER_EXPANSION]}constructor(){super(),X.define([yl,vl,Il,cl,h0]),z(this,yb,Mb),this._core=new L4(new I4(this))}connectedCallback(){this._core.initialize()}disconnectedCallback(){this._core.destroy()}attributeChangedCallback(t,e,o){switch(t){case k.attributes.INDEX:this.index=K(o);break;case k.attributes.COMPLETED:this.completed=p(o);break;case k.attributes.EDITABLE:this.editable=p(o);break;case k.attributes.ERROR:this.error=p(o);break;case k.attributes.SELECTED:this.selected=p(o);break;case k.attributes.ALTERNATIVE:this.alternative=p(o);break;case k.attributes.DISABLED:this.disabled=p(o);break;case k.attributes.VERTICAL:this.vertical=p(o);break;case k.attributes.EXPANDED:this.expanded=p(o);break;case k.attributes.IGNORE_USER_EXPANSION:this.ignoreUserExpansion=p(o);break}}};i([c()],Z2.prototype,"alternative",2),i([c()],Z2.prototype,"index",2),i([c()],Z2.prototype,"editable",2),i([c()],Z2.prototype,"completed",2),i([c()],Z2.prototype,"error",2),i([c()],Z2.prototype,"selected",2),i([c()],Z2.prototype,"disabled",2),i([c()],Z2.prototype,"vertical",2),i([c()],Z2.prototype,"expanded",2),i([c()],Z2.prototype,"ignoreUserExpansion",2),Z2=i([y({name:k.elementName,dependencies:[j,tt,r1,J]})],Z2);function om(){f(Z2)}var zb=`${b}stepper`,am={STEPPER:"forge-stepper",LINEAR:"linear",ALTERNATIVE:"alternative",CLUSTERED:"clustered",FIXED:"fixed",ALIGN_LEFT:"align-left",ALIGN_CENTER:"align-center",ALIGN_RIGHT:"align-right",VERTICAL:"vertical",FOCUSED:"focused"},Hb={STEPPER:`.${am.STEPPER}`},Ib={SELECTED_INDEX:"selected-index",LINEAR:"linear",ALTERNATIVE:"alternative",LAYOUT_MODE:"layout-mode",LAYOUT_ALIGN:"layout-align",DISABLED:"disabled",VERTICAL:"vertical"},yt={ARROW_LEFT_KEY:"ArrowLeft",ARROW_RIGHT_KEY:"ArrowRight",ARROW_UP_KEY:"ArrowUp",ARROW_DOWN_KEY:"ArrowDown",END_KEY:"End",ENTER_KEY:"Enter",HOME_KEY:"Home",SPACE_KEY:"Space",TAB_KEY:"Tab"},Wo={ARROW_LEFT_KEYCODE:37,ARROW_RIGHT_KEYCODE:39,END_KEYCODE:35,HOME_KEYCODE:36,ENTER_KEYCODE:13,SPACE_KEYCODE:32},Lb=[yt.ARROW_LEFT_KEY,yt.ARROW_RIGHT_KEY,yt.ARROW_DOWN_KEY,yt.ARROW_UP_KEY,yt.END_KEY,yt.HOME_KEY,yt.ENTER_KEY,yt.SPACE_KEY,yt.TAB_KEY],Vb={[Wo.ARROW_LEFT_KEYCODE]:yt.ARROW_LEFT_KEY,[Wo.ARROW_RIGHT_KEYCODE]:yt.ARROW_RIGHT_KEY,[Wo.END_KEYCODE]:yt.END_KEY,[Wo.HOME_KEYCODE]:yt.HOME_KEY,[Wo.ENTER_KEYCODE]:yt.ENTER_KEY,[Wo.SPACE_KEYCODE]:yt.SPACE_KEY},F={elementName:zb,classes:am,selectors:Hb,attributes:Ib,numbers:Wo,strings:yt,ACCEPTABLE_KEYS:Lb,KEYCODE_MAP:Vb};var L0=class n{static createStepElement(t,e,o){var s,r;let a=document.createElement(k.elementName);return a.index=e,a.completed=t.completed||!1,a.editable=t.editable||!1,a.selected=o.selectedIndex===e,a.alternative=o.alternative,a.error=t.error||!1,a.disabled=t.disabled||!1,a.vertical=(r=(s=t.vertical)!=null?s:o.vertical)!=null?r:!1,a.ignoreUserExpansion=t.ignoreUserExpansion||!1,a.expanded=t.expanded||!1,o.linear&&e>o.selectedIndex&&(a.tabIndex=-1),a.textContent=t.label,t.optionalLabel&&a.appendChild(this.createStepOptionalLabel(t.optionalLabel)),a}static createStepOptionalLabel(t){let e=document.createElement("span");return e.slot="optional",e.textContent=t||"",e}static setLinearState(t,e){let o=t.classList.contains(F.classes.LINEAR);o&&!e&&(t.classList.remove(F.classes.LINEAR),o=!1),!o&&e&&t.classList.add(F.classes.LINEAR)}static setAlternativeState(t,e){let o=t.classList.contains(F.classes.ALTERNATIVE);o&&!e&&(t.classList.remove(F.classes.ALTERNATIVE),o=!1),!o&&e&&t.classList.add(F.classes.ALTERNATIVE)}static setLayoutMode(t,e){switch(e){case"clustered":t.classList.contains(F.classes.FIXED)&&t.classList.remove(F.classes.FIXED),t.classList.add(F.classes.CLUSTERED);break;case"fixed":t.classList.contains(F.classes.CLUSTERED)&&t.classList.remove(F.classes.CLUSTERED),t.classList.add(F.classes.FIXED);break}}static setLayoutAlign(t,e){switch(t.classList.contains(F.classes.ALIGN_LEFT)&&t.classList.remove(F.classes.ALIGN_LEFT),t.classList.contains(F.classes.ALIGN_CENTER)&&t.classList.remove(F.classes.ALIGN_CENTER),t.classList.contains(F.classes.ALIGN_RIGHT)&&t.classList.remove(F.classes.ALIGN_RIGHT),e){case"left":t.classList.add(F.classes.ALIGN_LEFT);break;case"center":t.classList.add(F.classes.ALIGN_CENTER);break;case"right":t.classList.add(F.classes.ALIGN_RIGHT);break}}static createSteps(t){let e=[];return t.steps.forEach((o,a)=>{let s=n.createStepElement(o,a,t);e.push(s)}),e[0].setAttribute(k.attributes.FIRST,""),e[e.length-1].setAttribute(k.attributes.LAST,""),e}};var V4=class extends I{constructor(t){super(t),this._rootElement=w(t,F.selectors.STEPPER),this._slotElement=this._rootElement.querySelector("slot")}initializeAccessibility(){this._component.hasAttribute("role")||this._component.setAttribute("role","tablist")}patchSafari(){this._applyToSteps(t=>t.setAttribute("safari",""))}addSlotChangeListener(t){this._slotElement.addEventListener("slotchange",t)}removeSlotChangeListener(t){this._slotElement.addEventListener("slotchange",t)}getLastStep(){let t=this._getSteps();return t.item(t.length-1)}setSelected(t){this._getSteps().forEach(e=>{e===t?e.selected=!0:e.selected=!1})}assignIndices(){this._getSteps().forEach((e,o)=>{e.index=o})}assignFirstLastStep(){let t=this._getSteps();t&&t.length>1&&(t[0].setAttribute("first",""),t[t.length-1].setAttribute("last",""))}setLayoutAlign(t){L0.setLayoutAlign(this._rootElement,t)}setLayoutMode(t){L0.setLayoutMode(this._rootElement,t),this._applyToSteps(e=>e.setAttribute(k.attributes.CLUSTERED,""))}setAlternativeState(t){L0.setAlternativeState(this._rootElement,t),this._applyToSteps(e=>e.alternative=t)}setVertical(t){f2(this._rootElement,t,F.classes.VERTICAL),this._applyToSteps(e=>e.vertical=t)}setLinearState(t){L0.setLinearState(this._rootElement,t)}removeRootListener(t,e){this._rootElement.removeEventListener("click",e)}addRootListener(t,e){this._rootElement.addEventListener(t,e)}setSelectedByIndex(t){this._applyToSteps(e=>{e.selected&&e.index!==t&&(e.selected=!1),e.index===t&&(e.selected=!0)})}applyConfiguredSteps(t){this._component.querySelectorAll(k.elementName).forEach(e=>{this._component.removeChild(e)}),t.forEach(e=>this._component.appendChild(e))}tryGetFocusedStep(){let t;return this._applyToSteps(e=>{e.matches(":focus-within")&&(t=e)}),t}getFocusedOrSelectedStep(){let t=this.tryGetFocusedStep();return t||(t=this._getSteps()[0],t.focus()),t}getStep(t){let e=0,o=this._getSteps();return t<0?o.item(o.length-1):(o.length>t&&(e=t),o.item(e))}toggleDisabled(t){this._applyToSteps(e=>e.disabled=t)}toggleRootClass(t,e){f2(this._rootElement,e,t)}isStepperFocused(){return this._rootElement.classList.contains(F.classes.FOCUSED)}setStepsListener(t,e){this._applyToSteps(o=>o.addEventListener(t,e))}removeStepsListener(t,e){this._applyToSteps(o=>o.removeEventListener(t,e))}_applyToSteps(t){this._getSteps().forEach(t)}_getSteps(){return this._component.querySelectorAll(k.elementName)}};var C4=class{constructor(t){this._adapter=t;this._steps=[];this._selectedIndex=0;this._linear=!1;this._alternative=!1;this._layoutMode="fixed";this._layoutAlign="center";this._initialize=!1;this._clickListener=e=>this._handleClick(e),this._keyListener=e=>this._onKeydown(e),this._stepFocusListener=()=>this._onStepFocus(),this._stepBlurListener=()=>this._onStepBlur(),this._stepExpandedContentFocusInListener=e=>this._onStepExpandedContentFocusIn(e),this._stepExpandedContentFocusOutListener=e=>this._onStepExpandedContentFocusOut(e),this._slotChangeListener=e=>this._onSlotChange(e)}initialize(){this._adapter.initializeAccessibility(),this._adapter.assignIndices(),this._adapter.setLinearState(this._linear),this._adapter.setAlternativeState(this._alternative),this._adapter.setLayoutAlign(this._layoutAlign),this._adapter.setLayoutMode(this._layoutMode),this._adapter.addRootListener("click",this._clickListener),this._adapter.addHostListener("keydown",this._keyListener),this._adapter.assignFirstLastStep(),this._adapter.addRootListener(k.events.EXPANDED_CONTENT_FOCUSIN,this._stepExpandedContentFocusInListener),this._adapter.addRootListener(k.events.EXPANDED_CONTENT_FOCUSOUT,this._stepExpandedContentFocusOutListener),this._applySelectedIndex(),this._patchBrowser(),this._adapter.setStepsListener("blur",this._stepBlurListener),this._adapter.setStepsListener("focus",this._stepFocusListener),this._initialize||this._adapter.addSlotChangeListener(this._slotChangeListener),this._initialize=!0}destroy(){this._adapter.removeRootListener("click",this._clickListener),this._adapter.removeHostListener("keydown",this._keyListener),this._adapter.removeSlotChangeListener(this._slotChangeListener),this._adapter.removeStepsListener("blur",this._stepBlurListener),this._adapter.removeStepsListener("focus",this._stepFocusListener)}get steps(){return this._steps.map(t=>d({},t))}set steps(t){if(Array.isArray(t)&&t.length>0)this._steps=[...t.map(e=>d({},e))];else{this._steps=[];return}this._renderConfiguration()}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){if(!O(t))t=0;else if(!O2(t)){let e=Number(t);t=isNaN(e)?0:e}this._selectedIndex!==t&&(this._selectedIndex=t,this._adapter.setHostAttribute(F.attributes.SELECTED_INDEX,this._selectedIndex.toString()),this._applySelectedIndex())}get linear(){return this._linear}set linear(t){t=!!t,this._linear!==t&&(this._linear=t,this._adapter.setLinearState(this._linear),this._adapter.setHostAttribute(F.attributes.LINEAR,this._linear.toString()))}get alternative(){return this._alternative}set alternative(t){t=!!t,this._alternative!==t&&(this._alternative=t,this._adapter.setAlternativeState(this._alternative),this._adapter.setHostAttribute(F.attributes.ALTERNATIVE,this._alternative.toString()))}get layoutMode(){return this._layoutMode}set layoutMode(t){/^(fixed|clustered)$/.test(t)&&this._layoutMode!==t&&(this._layoutMode=t,this._adapter.setHostAttribute(F.attributes.LAYOUT_MODE,this._layoutMode),this._adapter.setLayoutMode(this._layoutMode))}get layoutAlign(){return this._layoutAlign}set layoutAlign(t){/^(left|center|right)$/.test(t)&&this._layoutAlign!==t&&(this._layoutAlign=t,this._adapter.setLayoutAlign(this._layoutAlign),this._adapter.setHostAttribute(F.attributes.LAYOUT_ALIGN,this._layoutAlign))}get disabled(){return this._disabled}set disabled(t){t!==this._disabled&&(this._disabled=t,this._applyDisabled())}get vertical(){return this._vertical}set vertical(t){t!==this._vertical&&(this._vertical=t,this._applyVertical(),this._adapter.toggleHostAttribute(F.attributes.VERTICAL,this._vertical))}_applyVertical(){this._adapter.setVertical(this._vertical)}_applyDisabled(){this._disabled?this._adapter.setHostAttribute(F.attributes.DISABLED,"disabled"):this._adapter.removeHostAttribute(F.attributes.DISABLED),this._adapter.toggleDisabled(this._disabled)}_applySelectedIndex(){this._adapter.setSelectedByIndex(this._selectedIndex)}_handleClick(t){if(t.preventDefault(),this._linear)return;let o=C2(t).filter(a=>a.nodeType===Node.ELEMENT_NODE).find(a=>a.matches(k.elementName));o&&!o.selected&&!o.disabled&&this._adapter.emitHostEvent(k.events.SELECT,o.index,!0,!0)&&(this._adapter.setSelected(o),this.selectedIndex=o.index)}_renderConfiguration(){let t=L0.createSteps({steps:this._steps,vertical:this._vertical,selectedIndex:this._selectedIndex,alternative:this._alternative,layoutAlign:this._layoutAlign,layoutMode:this._layoutMode,linear:this._linear});this.destroy(),this._adapter.applyConfiguredSteps(t),this.initialize()}_onKeydown(t){var a;if(this._linear)return;let e=this._getKeyFromEvent(t);if(!this._adapter.isStepperFocused()||!e)return;if([k.strings.HOME_KEY,k.strings.END_KEY,k.strings.ARROW_DOWN_KEY,F.strings.ARROW_UP_KEY,F.strings.ENTER_KEY,F.strings.SPACE_KEY].includes(e)&&t.preventDefault(),[F.strings.ENTER_KEY,F.strings.SPACE_KEY].includes(e)){(a=this._adapter.getFocusedOrSelectedStep())==null||a.click();return}let o=this._vertical?this._determineVerticalMoveTarget(e):this._determineMoveTarget(e);o&&this._moveFocusTo(o)}_moveFocusTo(t){t.focus()}_getKeyFromEvent(t){return F.ACCEPTABLE_KEYS.includes(t.key)?t.key:F.KEYCODE_MAP[t.keyCode]}_determineMoveTarget(t){let e=this._adapter.getFocusedOrSelectedStep();if(e)switch(t){case F.strings.ARROW_RIGHT_KEY:return this._adapter.getStep(e.index+1);case F.strings.ARROW_LEFT_KEY:return this._adapter.getStep(e.index-1);case F.strings.HOME_KEY:return this._adapter.getStep(0);case F.strings.END_KEY:return this._adapter.getLastStep()}return e}_determineVerticalMoveTarget(t){let e=this._adapter.getFocusedOrSelectedStep();if(e)switch(t){case F.strings.ARROW_DOWN_KEY:return this._adapter.getStep(e.index+1);case F.strings.ARROW_UP_KEY:return this._adapter.getStep(e.index-1);case F.strings.HOME_KEY:return this._adapter.getStep(0);case F.strings.END_KEY:return this._adapter.getLastStep()}return e}_onSlotChange(t){this.destroy(),this.initialize()}_onStepExpandedContentFocusIn(t){let e=this._adapter.getStep(t.detail.index+1);e&&(e.tabIndex=0),t.detail.tabIndex=0}_onStepExpandedContentFocusOut(t){let e=t.target,o=this._adapter.getStep(e.index+1);o&&(o.tabIndex=-1),e.tabIndex=-1}_onStepFocus(){this._adapter.toggleRootClass(F.classes.FOCUSED,!0)}_onStepBlur(){this._adapter.toggleRootClass(F.classes.FOCUSED,!1)}_patchBrowser(){new Q2().SAFARI()&&this._adapter.patchSafari()}};var Cb='<template><div class="forge-stepper" part="root"><slot></slot></div></template>',Eb=":host{display:block}:host([hidden]){display:none}:host([vertical]) .forge-stepper{display:unset;align-items:unset;white-space:unset;overflow:unset}.forge-stepper{display:flex;align-items:center;white-space:nowrap;overflow:hidden}.forge-stepper:not(.vertical) ::slotted(*){display:flex;align-items:center;position:relative;min-width:112px}.forge-stepper.fixed ::slotted(*){flex:1}.forge-stepper.alternative{align-items:flex-start}.forge-stepper.alternative ::slotted(*){min-width:160px}.forge-stepper.align-left{justify-content:flex-start}.forge-stepper.align-center{justify-content:center}.forge-stepper.align-right{justify-content:flex-end}",Nt=class extends M{static get observedAttributes(){return[F.attributes.SELECTED_INDEX,F.attributes.LINEAR,F.attributes.ALTERNATIVE,F.attributes.LAYOUT_MODE,F.attributes.LAYOUT_ALIGN,F.attributes.DISABLED,F.attributes.VERTICAL]}constructor(){super(),z(this,Cb,Eb),this._core=new C4(new V4(this))}async connectedCallback(){await Ko(this),this._core.initialize()}disconnectedCallback(){this._core.destroy()}attributeChangedCallback(t,e,o){switch(t){case F.attributes.SELECTED_INDEX:this.selectedIndex=Number(o)||0;break;case F.attributes.LINEAR:this.linear=p(o);break;case F.attributes.ALTERNATIVE:this.alternative=p(o);break;case F.attributes.LAYOUT_MODE:this.layoutMode=o;break;case F.attributes.LAYOUT_ALIGN:this.layoutAlign=o;break;case F.attributes.DISABLED:this.disabled=p(o);break;case F.attributes.VERTICAL:this.vertical=p(o);break}}};i([c()],Nt.prototype,"steps",2),i([c()],Nt.prototype,"selectedIndex",2),i([c()],Nt.prototype,"linear",2),i([c()],Nt.prototype,"alternative",2),i([c()],Nt.prototype,"layoutMode",2),i([c()],Nt.prototype,"layoutAlign",2),i([c()],Nt.prototype,"disabled",2),i([c()],Nt.prototype,"vertical",2),Nt=i([y({name:F.elementName,dependencies:[Z2]})],Nt);function nm(){f(Nt)}var Se=`${b}table`,sm={TABLE:"forge-table",TABLE_DENSE:"forge-table--dense",TABLE_ROOMY:"forge-table--roomy",TABLE_RESIZABLE:"forge-table--resizable",TABLE_RESIZING:"forge-table--resizing",TABLE_RESIZE_HANDLE:"forge-table__resize-handle",TABLE_NO_WRAP_CONTENT:"forge-table--no-wrap-content",TABLE_LAYOUT_FIXED:"forge-table--layout-fixed",TABLE_FILTER_VISIBLE:"forge-table--filter-visible",TABLE_FIXED:"forge-table--fixed",TABLE_HEAD:"forge-table-head",TABLE_HEAD_ROW:"forge-table-head__row",TABLE_HEAD_ROW_FILTER:"forge-table-head__row__filter",TABLE_HEAD_CELL:"forge-table-head__cell",TABLE_HEAD_CELL_CONTAINER:"forge-table-head__cell-container",TABLE_HEAD_CELL_SORTABLE:"forge-table-head__cell--sortable",TABLE_HEAD_CELL_SORT_ICON:"forge-table-head__cell-sort-icon",TABLE_HEAD_CELL_TEXT:"forge-table-head__cell-text",TABLE_HEAD_CELL_SORT_ICON_ACTIVE:"forge-table-head__cell-sort-icon--active",TABLE_HEAD_CELL_SORTED_ASCENDING:"forge-table-head__cell--sorted-ascending",TABLE_HEAD_CELL_SORTED_DESCENDING:"forge-table-head__cell--sorted-descending",TABLE_HEAD_CELL_SORT_ORDER:"forge-table-head__cell__sort-order",TABLE_HEAD_CELL_SORT_ORDER_HIDDEN:"forge-table-head__cell__sort-order--hidden",TABLE_BODY:"forge-table-body",TABLE_BODY_ROW:"forge-table-body__row",TABLE_BODY_ROW_SELECTED:"forge-table-body__row--selected",TABLE_BODY_ROW_CLICKABLE:"forge-table-body__row--clickable",TABLE_BODY_CELL:"forge-table-body__cell",TABLE_ROW:"forge-table-row",TABLE_ROW_EXPANDED:"forge-table-row--expanded",TABLE_ROW_EXPANDABLE_CONTENT:"forge-table-row__expandable-content",TABLE_ROW_EXPANDABLE_CONTENT_CELL:"forge-table-row__expandable-content-cell",TABLE_CELL:"forge-table-cell",TABLE_CELL_SELECT:"forge-table-cell__select",TABLE_CELL_SELECT_CHECKBOX:"forge-table-cell__select-checkbox",TABLE_CELL_SELECT_CHECKBOX_CONTAINER:"forge-table-cell__select-checkbox-container",TABLE_CELL_SELECT_CHECKBOX_CONTAINER_ALIGN_RIGHT:"forge-table-cell__select-checkbox-container--align-right",TABLE_CELL_SELECT_CHECKBOX_CONTAINER_ALIGN_LEFT:"forge-table-cell__select-checkbox-container--align-left",TABLE_CELL_SELECT_CHECKBOX_CONTAINER_ALIGN_CENTER:"forge-table-cell__select-checkbox-container--align-center",TABLE_CELL_CONTAINER:"forge-table-cell__container",TABLE_CELL_CONTAINER_TEXT:"forge-table-cell__container-text",TABLE_CELL_CENTER:"forge-table-cell--center",TABLE_CELL_RIGHT:"forge-table-cell--right",TABLE_CELL_RESIZABLE:"forge-table-cell--resizing"},Bb={TABLE:".forge-table",CHECKBOX_INPUT:":is(forge-checkbox,input[type=checkbox]):not([forge-ignore])",SELECT_ALL_TEMPLATE_CHECKBOX_INPUT:":is(forge-checkbox,input[type=checkbox]):not([forge-ignore])",ROW_SELECTED:`.${sm.TABLE_BODY_ROW_SELECTED}`},Ab={SELECT:"select",MULTISELECT:"multiselect",SELECT_KEY:"select-key",DENSE:"dense",ROOMY:"roomy",FILTER:"filter",FIXED_HEADERS:"fixed-headers",LAYOUT_TYPE:"layout-type",WRAP_CONTENT:"wrap-content",RESIZABLE:"resizable",MIN_RESIZE_WIDTH:"min-resize-width",ALLOW_ROW_CLICK:"allow-row-click",MULTI_COLUMN_SORT:"multi-column-sort",SELECT_CHECKBOX_ALIGNMENT:"select-checkbox-alignment",TOOLTIP_SELECT:"tooltip-select",TOOLTIP_SELECT_ALL:"tooltip-select-all",CHECKBOX_TYPE:"forge-checkbox-type",CUSTOM_CELL_TEMPLATE:"data-cell-template",CUSTOM_CELL_TEMPLATE_STOP_PROPAGATION:"data-cell-template-stop-propagation",SELECT_CHECKBOX:"forge-table-row-select-checkbox"},Tb={ROW_CLICK:`${Se}-row-click`,SELECT:`${Se}-select`,SELECT_DOUBLE:`${Se}-select-double`,SELECT_ALL:`${Se}-select-all`,SORT:`${Se}-sort`,FILTER:`${Se}-filter`,INITIALIZED:`${Se}-initialized`,COLUMN_RESIZE:`${Se}-column-resize`,BEFORE_BODY_RENDERED:`${Se}-before-body-rendered`,BODY_RENDERED:`${Se}-body-rendered`},Sb={SELECT_ALL:"select-all",SELECT_ROW:"select-row",DEFAULT_LAYOUT_TYPE:"auto"},kb={SORT_DOWN:"arrow_downward"},Ob={DEFAULT_FILTER_DEBOUNCE_TIME:750,MIN_RESIZE_WIDTH:100,RESIZE_HOVER_DURATION:150},_={elementName:Se,classes:sm,selectors:Bb,attributes:Ab,events:Tb,strings:Sb,icons:kb,numbers:Ob};var E4=(o=>(o.Left="left",o.Right="right",o.Center="center",o))(E4||{}),B4=(o=>(o.Ascending="ASC",o.Descending="DESC",o.Unset="UNSET",o))(B4||{}),Db=(r=>(r.InputText="text",r.InputNumber="number",r.Select="select",r.SelectMultiple="select-multiple",r.Date="date",r.DateRange="date-range",r))(Db||{});function rm(n){return n&&typeof n=="object"&&"content"in n}var A1=class n{static createTable(t){n._resetTable(t.tableElement);let e=n._createTableHead(t),o=n._createTableBody(t);t.clickListener&&(n._attachRowClickListeners(o,t.clickListener,t.doubleClickListener),n._addRowClickAttributes(o)),t.fixedHeaders&&n.setFixedHeaders(t),t.resizable&&n.setResizable(t),t.dense&&n.setDenseState(t.tableElement,t.dense),t.wrapContent&&n.setWrapContentState(t.tableElement,t.wrapContent),t.selectListener&&n._addSelectColumn(e,o,t.selectListener,t.selectAllListener,t.selectAllTemplate,t.selectCheckboxAlignment,t.data,t.tooltipSelect,t.tooltipSelectAll),(t.resizable||t.columnConfigurations.some(a=>!!a.sortable))&&(n._attachHeadRowMouseDownListener(e,t.headRowMouseDownListener),n._isMac()&&n._attachHeadRowContextMenuListener(e,t.headRowContextMenuListener)),n.setLayoutType(t),n._setTableHead(t.tableElement,e),t.filter&&n.setFilterRow(t),n._setTableBody(t.tableElement,o)}static _setTableHead(t,e){t.tHead?s0(e,t.tHead):t.appendChild(e)}static _setTableBody(t,e){t.tBodies.length?s0(e,t.tBodies[0]):t.appendChild(e)}static recreateTableBody(t){let e=n._createTableBody(t);t.clickListener&&(n._attachRowClickListeners(e,t.clickListener,t.doubleClickListener),n._addRowClickAttributes(e)),t.selectListener&&(n._createBodySelectColumn(e,t.selectCheckboxAlignment,t.data,t.tooltipSelect,t.tooltipSelectAll),n._attachRowSelectListeners(e,t.selectListener)),n._setTableBody(t.tableElement,e)}static _resetTable(t){n2(t)}static _createMultisortTooltip(){let t=document.createElement("forge-tooltip");return t.textContent="Ctrl + click to sort multiple columns",t.placement="bottom",t.delay=0,t}static _createTableHead(t){let e=document.createElement("thead"),o=e.insertRow();H1([_.classes.TABLE_ROW,_.classes.TABLE_HEAD_ROW],o);let a=!1;for(let s=0;s<t.columnConfigurations.length;s++){let r=t.columnConfigurations[s],l=document.createElement("th");l.scope="col",H1([_.classes.TABLE_CELL,_.classes.TABLE_HEAD_CELL],l);let h;if(r.sortable?(h=document.createElement("button"),h.type="button",h.addEventListener("keydown",t.sortableHeadCellKeydownListener)):h=document.createElement("div"),h.classList.add(_.classes.TABLE_HEAD_CELL_CONTAINER),t.multiColumnSort){let v=n._createMultisortTooltip();h.appendChild(v)}if(r.align&&n._setCellAlignmentClass(h,r.align),O(r.width)){let v=j4(r.width);v&&(l.style.width=v)}if(t.resizable&&r.resizable!==!1){let v=document.createElement("div");v.classList.add(_.classes.TABLE_RESIZE_HANDLE),l.appendChild(v)}if(O(r.headerCellStyle)&&vt(r.headerCellStyle)&&(Object.assign(l.style,r.headerCellStyle),Object.assign(h.style,r.headerCellStyle)),r.sortable){l.classList.add(_.classes.TABLE_HEAD_CELL_SORTABLE);let v=document.createElement("span");H1([_.classes.TABLE_HEAD_CELL_SORT_ORDER_HIDDEN,_.classes.TABLE_HEAD_CELL_SORT_ORDER],v);let m=document.createElement(p1.elementName);m.name=_.icons.SORT_DOWN,H1([_.classes.TABLE_HEAD_CELL_SORT_ICON],m),t.multiColumnSort?typeof r.initialSort=="object"&&r.initialSort.sortOrder&&(v.textContent=r.initialSort.sortOrder.toString(),t.columnConfigurations.filter(u=>typeof u.initialSort=="object").length>1&&ye(_.classes.TABLE_HEAD_CELL_SORT_ORDER_HIDDEN,v),l.classList.add(_.classes.TABLE_HEAD_CELL_SORTED_DESCENDING),m.classList.add(_.classes.TABLE_HEAD_CELL_SORT_ICON_ACTIVE),n._setColumnSortDirection(l,r.initialSort.direction)):t.sortedColumn===s&&!a&&!t.multiColumnSort&&(l.classList.add(_.classes.TABLE_HEAD_CELL_SORTED_DESCENDING),m.classList.add(_.classes.TABLE_HEAD_CELL_SORT_ICON_ACTIVE),n._setColumnSortDirection(l,t.sortDirection),a=!0),h.appendChild(m),h.appendChild(v)}if(typeof r.headerTemplate=="function")Promise.resolve(r.headerTemplate(s,h,r)).then(v=>{if(v){let m=document.createElement("div");H1(_.classes.TABLE_CELL_CONTAINER,m),typeof v=="string"?m.innerHTML=v:n._prepend(v,m),m.setAttribute(_.attributes.CUSTOM_CELL_TEMPLATE,""),n._prepend(m,h)}});else{let v=document.createElement("span");v.classList.add(_.classes.TABLE_HEAD_CELL_TEXT),v.textContent=r.header&&typeof r.header=="string"?r.header.trim():"",v.textContent.trim().length===0&&l.setAttribute("aria-hidden","true"),n._prepend(v,h)}l.appendChild(h),o.appendChild(l)}return e}static setSortDirection(t,e,o){let a=n._getHeaderCellByIndex(t,e);t.querySelectorAll("th[aria-sort]").forEach(s=>s.removeAttribute("aria-sort")),n._setColumnSortDirection(a,o)}static _setColumnSortDirection(t,e){t.classList.contains(_.classes.TABLE_HEAD_CELL_SORTED_ASCENDING)&&t.classList.remove(_.classes.TABLE_HEAD_CELL_SORTED_ASCENDING),t.classList.contains(_.classes.TABLE_HEAD_CELL_SORTED_DESCENDING)&&t.classList.remove(_.classes.TABLE_HEAD_CELL_SORTED_DESCENDING),!e||e==="DESC"?(t.setAttribute("aria-sort","descending"),t.classList.add(_.classes.TABLE_HEAD_CELL_SORTED_DESCENDING)):(t.setAttribute("aria-sort","ascending"),t.classList.add(_.classes.TABLE_HEAD_CELL_SORTED_ASCENDING))}static _createTableBody(t){let e=document.createElement("tbody");return n._getOrderedRowData(t.columnConfigurations,t.data).forEach((a,s)=>{let r=e.insertRow();H1([_.classes.TABLE_ROW,_.classes.TABLE_BODY_ROW],r),n._populateRowCells(t,r,a,s),typeof t.rowCreatedCallback=="function"&&t.rowCreatedCallback(r,s,d({},t.data[s].data))}),e}static _populateRowCells(t,e,o,a){for(let s=0;s<o.length;s++){let r=t.columnConfigurations[s],l=e.insertCell();if(H1([_.classes.TABLE_CELL,_.classes.TABLE_BODY_CELL],l),O(r.width)){let v=j4(r.width);v&&(l.style.width=v)}let h=document.createElement("div");if(h.classList.add(_.classes.TABLE_CELL_CONTAINER),O(r.cellStyle)&&vt(r.cellStyle)&&(Object.assign(l.style,r.cellStyle),Object.assign(h.style,r.cellStyle)),r.template&&typeof r.template=="function"){let v=t.data[a]?t.data[a].data:void 0;Promise.resolve(r.template(a,h,v,s)).then(m=>{let u=rm(m)?m:{content:m,stopClickPropagation:r.stopCellTemplateClickPropagation};u.content&&(typeof u.content=="string"?h.innerHTML=u.content:h.appendChild(u.content),h.setAttribute(_.attributes.CUSTOM_CELL_TEMPLATE,""),u.stopClickPropagation&&h.setAttribute(_.attributes.CUSTOM_CELL_TEMPLATE_STOP_PROPAGATION,""))})}else if(r.property){let v=document.createElement("span");v.classList.add(_.classes.TABLE_CELL_CONTAINER_TEXT),h.appendChild(v),r.transform&&typeof r.transform=="function"?Promise.resolve(r.transform(o[s])).then(m=>v.textContent=m):o[s]==null?v.textContent="":v.textContent=o[s].toString()}if(r.align&&n._setCellAlignmentClass(h,r.align),l.appendChild(h),O(r.columnSpan)){if(r.columnSpan==="all"){l.colSpan=o.length-s;break}else if(typeof r.columnSpan=="number"&&r.columnSpan>0){let v=r.columnSpan;r.columnSpan>o.length-s&&(v=o.length),l.colSpan=v,s=s+(v-1)}}typeof t.cellCreatedCallback=="function"&&t.cellCreatedCallback(l,a,s)}}static _setCellAlignmentClass(t,e){switch(e){case"center":t.classList.add(_.classes.TABLE_CELL_CENTER);break;case"right":t.classList.add(_.classes.TABLE_CELL_RIGHT);break}}static _getNonExpandedRows(t){return Array.from(t).filter(e=>!e.classList.contains(_.classes.TABLE_ROW_EXPANDABLE_CONTENT))}static _getExpandedRows(t){return Array.from(t).filter(e=>e.classList.contains(_.classes.TABLE_ROW_EXPANDABLE_CONTENT))}static _createColumnDataMap(t,e){return t.map(o=>({config:o,data:e.map(a=>{if(o.property){let s=P3(a.data,o.property);return O(s)?s:null}return null})}))}static _getOrderedRowData(t,e){let o=n._createColumnDataMap(t,e),a=[];for(let s of o)for(let r=0;r<s.data.length;r++)a[r]||(a[r]=[]),a[r].push(s.data[r]);return a}static _attachRowClickListeners(t,e,o){n._getNonExpandedRows(t.rows).forEach(s=>{s.addEventListener("click",e),o&&s.addEventListener("dblclick",o)})}static _addRowClickAttributes(t){n._getNonExpandedRows(t.rows).forEach(o=>{o.classList.add(_.classes.TABLE_BODY_ROW_CLICKABLE)})}static _removeRowClickAttributes(t){n._getNonExpandedRows(t.rows).forEach(o=>{o.classList.remove(_.classes.TABLE_BODY_ROW_CLICKABLE)})}static _attachRowSelectListeners(t,e){n._getNonExpandedRows(t.rows).forEach(a=>n._attachRowSelectListener(a,e))}static _attachRowSelectListener(t,e){let o=n._getCheckboxElement(t);o==null||o.addEventListener("change",e),o==null||o.addEventListener("keydown",e),o==null||o.addEventListener("pointerdown",e)}static _detachRowSelectListeners(t,e){Array.from(t.rows).forEach(o=>{let a=n._getCheckboxElement(o);a==null||a.removeEventListener("change",e),a==null||a.removeEventListener("keydown",e),a==null||a.removeEventListener("pointerdown",e)})}static _detachRowClickListeners(t,e,o){Array.from(t.rows).forEach(a=>{a.removeEventListener("click",e),a.removeEventListener("dblclick",o)})}static _attachSelectAllListener(t,e){let o=t.rows[t.rows.length-1],a=n._getCheckboxElement(o);if(!a)throw new Error("Checkbox element not found.");a.addEventListener("change",e)}static _tryAttachSelectAllTemplateListener(t,e){let o=t.rows[t.rows.length-1],a=n._tryGetSelectAllCheckboxElement(o);a&&a.addEventListener("change",e)}static _detachSelectAllListener(t,e){let o=t.rows[t.rows.length-1],a=n._tryGetSelectAllCheckboxElement(o);a&&a.removeEventListener("change",e)}static _attachHeadRowMouseDownListener(t,e){let o=t.rows[0];if(!o)throw new Error("Missing table header row. Unable to attach sort listener.");o.addEventListener("mousedown",e)}static _attachHeadRowContextMenuListener(t,e){let o=t.rows[0];if(!o)throw new Error("Missing table header row. Unable to attach sort listener.");o.addEventListener("contextmenu",e)}static _createSelectColumn(t,e,o,a,s,r,l,h,v){t&&n._createHeadSelectColumn(t,o,a,s,r,v),e&&n._createBodySelectColumn(e,r,l,h,v)}static _createHeadSelectColumn(t,e,o,a,s,r){var l;if(Array.from(t.rows).forEach(h=>{let v=document.createElement("th");H1([_.classes.TABLE_CELL,_.classes.TABLE_HEAD_CELL],v),h.insertBefore(v,h.cells.item(0))}),e){let h=(l=t.rows.item(t.rows.length-1))==null?void 0:l.cells.item(0);h.classList.add(_.classes.TABLE_CELL_SELECT),typeof o=="function"?n._renderSelectAllTemplate(o,t).then(()=>{typeof a=="function"&&a()}):h==null||h.appendChild(n._createCheckboxElement(!0,s,null,null,null,r))}}static _createBodySelectColumn(t,e,o,a,s){if(n._getNonExpandedRows(t.rows).forEach((l,h)=>n._addRowSelectColumn(l,e,h,o[h],a,s)),t.rows.length){let l=t.rows.item(0);l&&n._updateExpandedRowColspan(t.rows,l.cells.length)}}static _addRowSelectColumn(t,e,o,a,s,r){let l=t.insertCell(0);H1([_.classes.TABLE_CELL,_.classes.TABLE_BODY_CELL,_.classes.TABLE_CELL_SELECT],l),l.appendChild(n._createCheckboxElement(!1,e,o,a,s,r))}static _destroySelectColumn(t,e){let o=n._getNonExpandedRows(e.rows);if(Array.from(t.rows).forEach(a=>a.removeChild(a.cells.item(0))),Array.from(o).forEach(a=>a.removeChild(a.cells.item(0))),e.rows.length){let a=e.rows.item(0);a&&n._updateExpandedRowColspan(e.rows,a.cells.length)}}static _hasSelectColumn(t,e){return[...Array.from(t.rows),...Array.from(e.rows)].some(a=>a.cells.item(0).classList.contains(_.classes.TABLE_CELL_SELECT))}static _createCheckboxElement(t,e,o,a,s,r){let l=document.createElement("div");if(l.classList.add(_.classes.TABLE_CELL_SELECT_CHECKBOX_CONTAINER),e)switch(e){case"center":l.classList.add(_.classes.TABLE_CELL_SELECT_CHECKBOX_CONTAINER_ALIGN_CENTER);break;case"left":l.classList.add(_.classes.TABLE_CELL_SELECT_CHECKBOX_CONTAINER_ALIGN_LEFT);break;case"right":l.classList.add(_.classes.TABLE_CELL_SELECT_CHECKBOX_CONTAINER_ALIGN_RIGHT);break}let h=document.createElement(T1.elementName);h.setAttribute(_.attributes.SELECT_CHECKBOX,""),l.appendChild(h);let v=m=>{let u=document.createElement("forge-tooltip");return u.placement="left",u.type="label",u.textContent=m,u};if(t)if(typeof r=="string"&&r.length){let u=v(r);l.appendChild(u)}else h.setAttribute("aria-label","Select all rows");else{let m=s||"";if(a&&typeof s=="function"&&(m=s.call(null,o,a.data)),typeof m=="string"&&m.length){let u=v(m);l.appendChild(u)}else h.setAttribute("aria-label","Select row")}return l}static _getCheckboxElement(t){let e=t.querySelector(`.${_.classes.TABLE_CELL_SELECT}`);return e?e.querySelector(_.selectors.CHECKBOX_INPUT):null}static _tryGetSelectAllCheckboxElement(t){let e=t.querySelector(`.${_.classes.TABLE_CELL_SELECT}`);return e?e.querySelector(_.selectors.CHECKBOX_INPUT)||e.querySelector(_.selectors.SELECT_ALL_TEMPLATE_CHECKBOX_INPUT):null}static _setSelectedCheckboxState(t,e){t&&(t.checked=e)}static _setIndeterminateCheckboxState(t,e){t&&(t.indeterminate=e)}static _setRowSelectedState(t,e){e?t.classList.contains(_.classes.TABLE_BODY_ROW_SELECTED)||t.classList.add(_.classes.TABLE_BODY_ROW_SELECTED):t.classList.remove(_.classes.TABLE_BODY_ROW_SELECTED)}static _updateExpandedRowColspan(t,e){n._getExpandedRows(t).forEach(a=>{let s=a.cells.item(0);s&&(s.colSpan=e)})}static updateSelectedState(t,e){n._setRowSelectedState(t,e);let o=n._getCheckboxElement(t);o&&n._setSelectedCheckboxState(o,e)}static getRowByIndex(t,e){return n._getNonExpandedRows(t.tBodies[0].rows)[e]}static updateSelectAllState(t,e,o){if(!t.tHead)return;let a=t.tHead.rows[t.tHead.rows.length-1],s=n._tryGetSelectAllCheckboxElement(a);s&&(n._setSelectedCheckboxState(s,e),n._setIndeterminateCheckboxState(s,!!o))}static setSelectedRows(t,e,o,a,s=!1){if(!t.tBodies.length)return;s||n.clearSelectedRows(t);let r=t.tBodies[0].rows,l=0;a.length&&Array.from(r).forEach((h,v)=>{let m=o[v];if($n(a,xo(e,m))){n._setRowSelectedState(h,!0);let H=n._getCheckboxElement(h);H&&n._setSelectedCheckboxState(H,!0),l++}}),n.updateSelectAllState(t,l>0&&r.length===l)}static clearSelectedRows(t){if(!t.tBodies.length)return;n._getNonExpandedRows(t.tBodies[0].rows).forEach(o=>{n._setRowSelectedState(o,!1);let a=n._getCheckboxElement(o);a&&n._setSelectedCheckboxState(a,!1)})}static setSortedColumn(t,e,o){let a=n._getHeaderCellByIndex(t,e);n._getSortIconElementFromHeaderCell(a).classList.add(_.classes.TABLE_HEAD_CELL_SORT_ICON_ACTIVE),n._setColumnSortDirection(a,o)}static setMultiSortColumnSortNumber(t,e,o,a){let l=n._getHeaderCellByIndex(t,o).querySelector(`.${_.classes.TABLE_HEAD_CELL_CONTAINER}`).querySelector(`.${_.classes.TABLE_HEAD_CELL_SORT_ORDER}`);l&&(f2(l,typeof a!="number"||!e,_.classes.TABLE_HEAD_CELL_SORT_ORDER_HIDDEN),a&&(l.textContent=a.toString()))}static removeColumnSort(t,e){let o=n._getHeaderCellByIndex(t,e);o.removeAttribute("aria-sort"),o.classList.contains(_.classes.TABLE_HEAD_CELL_SORTED_ASCENDING)&&o.classList.remove(_.classes.TABLE_HEAD_CELL_SORTED_ASCENDING),o.classList.contains(_.classes.TABLE_HEAD_CELL_SORTED_DESCENDING)&&o.classList.remove(_.classes.TABLE_HEAD_CELL_SORTED_DESCENDING);let a=n._getSortIconElementFromHeaderCell(o);a&&a.classList.contains(_.classes.TABLE_HEAD_CELL_SORT_ICON_ACTIVE)&&a.classList.remove(_.classes.TABLE_HEAD_CELL_SORT_ICON_ACTIVE)}static _getHeaderCellByIndex(t,e){if(!t.tHead)throw new Error("Table head element cannot be null.");return t.tHead.rows.item(0).cells.item(e)}static _getSortIconElementFromHeaderCell(t){return t.querySelector(`.${_.classes.TABLE_HEAD_CELL_SORT_ICON}`)}static setSelectColumnVisibility(t,e,o,a,s,r,l,h,v){let m=t.tHead,u=t.tBodies[0];!m||!u||(e?n._addSelectColumn(m,u,o,a,s,r,l,h,v):n._hasSelectColumn(m,u)&&(o&&n._detachRowSelectListeners(u,o),a&&n._detachSelectAllListener(m,a),n._destroySelectColumn(m,u)))}static _addSelectColumn(t,e,o,a,s,r,l,h,v){n._createSelectColumn(t,e,!!a,s,()=>{a&&n._tryAttachSelectAllTemplateListener(t,a)},r,l,h,v),o&&n._attachRowSelectListeners(e,o),a&&!s&&n._tryAttachSelectAllTemplateListener(t,a)}static setDenseState(t,e){t.classList.contains(_.classes.TABLE_DENSE)&&t.classList.remove(_.classes.TABLE_DENSE),e&&t.classList.add(_.classes.TABLE_DENSE)}static setRoomyState(t,e){t.classList.contains(_.classes.TABLE_ROOMY)&&t.classList.remove(_.classes.TABLE_ROOMY),e&&t.classList.add(_.classes.TABLE_ROOMY)}static setResizable(t){let e=t.tableElement.tHead;t.resizable?(t.tableElement.classList.add(_.classes.TABLE_RESIZABLE),n._addResizeHandles(e,t)):(t.tableElement.classList.remove(_.classes.TABLE_RESIZABLE),n._removeResizeHandles(e,t))}static _addResizeHandles(t,e){if(!t)return;let o=t.rows.item(0);if(o){let a=Array.from(o.cells);e.selectListener&&(a=a.slice(1));for(let s of a){let r=a.indexOf(s);if(e.columnConfigurations[r].resizable!==!1){let h=document.createElement("div");h.classList.add(_.classes.TABLE_RESIZE_HANDLE),s.appendChild(h)}}}}static _removeResizeHandles(t,e){if(!t)return;let o=t.rows.item(0);if(o){let a=Array.from(o.cells);e.selectListener&&(a=a.slice(1));for(let s of a){let r=document.querySelector(`.${_.classes.TABLE_RESIZE_HANDLE}`);r&&s.removeChild(r)}}}static setWrapContentState(t,e){e?t.classList.remove(_.classes.TABLE_NO_WRAP_CONTENT):t.classList.add(_.classes.TABLE_NO_WRAP_CONTENT)}static setSelectAllVisibility(t,e,o,a,s,r){let l=t.tHead;if(!l)return;!e&&o&&n._detachSelectAllListener(l,o);let v=l.rows[l.rows.length-1].cells.item(0);e?v.childElementCount||(v.classList.add(_.classes.TABLE_CELL_SELECT),a?n._renderSelectAllTemplate(a,l).then(()=>{o&&n._tryAttachSelectAllTemplateListener(l,o)}):v.appendChild(n._createCheckboxElement(!0,s||null,null,null,null,r)),o&&!a&&n._attachSelectAllListener(l,o)):(o&&n._detachSelectAllListener(l,o),n2(v))}static setFilterRow(t){if(!t.tableElement.tHead)return;let e=n._getFilterRowElement(t.tableElement.tHead),o;if(t.filter?t.tableElement.classList.add(_.classes.TABLE_FILTER_VISIBLE):t.tableElement.classList.remove(_.classes.TABLE_FILTER_VISIBLE),t.filter&&!e){if(t.columnConfigurations.every(s=>!s.filter))return;t.selectListener&&t.selectAllListener&&(o=t.tableElement.tHead.rows[t.tableElement.tHead.rows.length-1].cells.item(0));let a=n._createFilterRowElement(t);a&&o&&Array.from(o.children).forEach(s=>{var r;(r=a.cells.item(0))==null||r.appendChild(s)})}else if(!t.filter&&e){if(t.selectListener&&t.selectAllListener){o=e.cells.item(0);let a=Array.from(t.tableElement.tHead.rows).indexOf(e)-1,s=t.tableElement.tHead.rows.item(a);s&&Array.from(o.children).forEach(r=>{var l;(l=s.cells.item(0))==null||l.appendChild(r)})}Fe(e)}}static _createFilterRowElement(t){if(!t.tableElement.tHead)throw new Error("Table head element cannot be null.");let e=t.tableElement.tHead.insertRow();if(H1([_.classes.TABLE_ROW,_.classes.TABLE_HEAD_ROW_FILTER],e),t.selectListener){let o=document.createElement("th");H1([_.classes.TABLE_CELL,_.classes.TABLE_HEAD_CELL],o),e.insertBefore(o,e.cells[0]),o.classList.add(_.classes.TABLE_CELL_SELECT)}return t.columnConfigurations.forEach((o,a)=>{let s=document.createElement("th");if(H1([_.classes.TABLE_CELL,_.classes.TABLE_HEAD_CELL],s),o.filter&&O(o.filterDelegate)){let r=document.createElement("div");r.classList.add(_.classes.TABLE_HEAD_CELL_CONTAINER),o.align&&n._setCellAlignmentClass(r,o.align);let l=n._createFilterElement(o,a,t.filterListener);r.appendChild(l),s.appendChild(r)}e.appendChild(s)}),e}static _createFilterElement(t,e,o){let a;if(n0(t.filterDelegate))a=t.filterDelegate();else if(t.filterDelegate instanceof o2||t.filterDelegate instanceof Z1)a=t.filterDelegate;else throw new Error("Invalid filter delegate.");if(o&&a instanceof o2&&n0(a.onChange))if(!O(t.filterDebounceTime)||O2(t.filterDebounceTime)){let s=O(t.filterDebounceTime)?t.filterDebounceTime:_.numbers.DEFAULT_FILTER_DEBOUNCE_TIME;a.onChange(Ne(r=>o(r,e),s))}else a.onChange(s=>o(s,e));return a.element}static _getFilterRowElement(t){if(t)return Array.from(t.rows).find(e=>e.classList.contains(_.classes.TABLE_HEAD_ROW_FILTER))}static async expandRow(t,e,o){let a=t.tableElement.tBodies[0],r=n._getNonExpandedRows(a.rows)[e];r.classList.add(_.classes.TABLE_ROW_EXPANDED);let l=Array.from(a.rows).indexOf(r),h=a.insertRow(l+1);H1([_.classes.TABLE_ROW,_.classes.TABLE_BODY_ROW,_.classes.TABLE_ROW_EXPANDABLE_CONTENT],h);let v=h.insertCell();v.setAttribute("colspan",r.cells.length.toString()),v.classList.add(_.classes.TABLE_ROW_EXPANDABLE_CONTENT_CELL);let m=document.createElement("div"),u=document.createElement(D1.elementName);u.appendChild(m),v.appendChild(u);let H=o;if(n0(o)){let x=t.data[e]?t.data[e].data:void 0,C=o(e,m,x);try{let E=await Promise.resolve(C);H=rm(E)?E.content:E}catch(E){console.error("Failed to load row template "+E.message),H=""}}H&&n._setRowTemplate(m,H),window.requestAnimationFrame(()=>u.open=!0)}static _setRowTemplate(t,e){Ut(e)?t.innerHTML=e:t.appendChild(e)}static collapseRow(t,e){if(!t.tableElement||!t.tableElement.tBodies.length||!t.tableElement.tBodies[0].rows.length)return Promise.resolve();let o=t.tableElement.tBodies[0],s=n._getNonExpandedRows(o.rows)[e],r=Array.from(o.rows).indexOf(s);if(s&&s.classList.contains(_.classes.TABLE_ROW_EXPANDED)){let l=o.rows[r+1],h=l.querySelector(D1.elementName);if(h&&h.open){let v=new Promise(m=>{h.addEventListener(D1.events.ANIMATION_COMPLETE,()=>{s.classList.remove(_.classes.TABLE_ROW_EXPANDED),Fe(l),m()},{once:!0})});return h.open=!1,v}}return Promise.resolve()}static isRowExpanded(t,e){let o=t.tableElement.tBodies[0],s=n._getNonExpandedRows(o.rows)[e];return s&&s.classList.contains(_.classes.TABLE_ROW_EXPANDED)}static setFixedHeaders(t){t.fixedHeaders?t.tableElement.classList.add(_.classes.TABLE_FIXED):t.tableElement.classList.remove(_.classes.TABLE_FIXED)}static setLayoutType(t){t.layoutType==="fixed"?t.tableElement.classList.add(_.classes.TABLE_LAYOUT_FIXED):t.tableElement.classList.remove(_.classes.TABLE_LAYOUT_FIXED)}static normalizeColumnWidths(t){let e=t.tableElement;if(e.tHead&&e.tHead.rows.length){let o=Array.from(e.tHead.rows[0].cells);for(let a of o){let s=getComputedStyle(a).width;a.style.width&&a.style.width!==s&&(a.style.width=s)}}}static setColumnResizeIndicatorVisibility(t,e,o){let a=t.tableElement;if(a.tHead&&a.tHead.rows.length){let s=Array.from(a.tHead.rows);for(let r of s){let l=r.cells[e];l&&(o?l.classList.add(_.classes.TABLE_CELL_RESIZABLE):l.classList.remove(_.classes.TABLE_CELL_RESIZABLE))}}if(a.tBodies.length){let s=Array.from(a.tBodies[0].rows);for(let r of s){let l=r.cells[e];l&&(o?l.classList.add(_.classes.TABLE_CELL_RESIZABLE):l.classList.remove(_.classes.TABLE_CELL_RESIZABLE))}}}static setRowClickListeners(t,e,o,a){let s=t.tBodies[0];s&&(e?n._attachRowClickListeners(s,o,a):n._detachRowClickListeners(s,o,a))}static setRowClickAttributes(t,e){let o=t.tBodies[0];o&&(e?n._addRowClickAttributes(o):n._removeRowClickAttributes(o))}static getOwnerDocument(t){return t.ownerDocument||document}static _prepend(t,e){let o=e.childNodes.item(0);o?e.insertBefore(t,o):e.appendChild(t)}static _isMac(){return!!(navigator&&navigator.platform&&navigator.platform.substr(0,3)==="Mac")}static _renderSelectAllTemplate(t,e){return Promise.resolve(t()).then(o=>{let a=e.rows.item(e.rows.length-1);if(!a)return;let s=a.cells.item(0);o&&s&&(typeof o=="string"?s.innerHTML=o:o instanceof HTMLElement&&s.appendChild(o),s.setAttribute(_.attributes.CUSTOM_CELL_TEMPLATE,""))})}};var A4=class extends I{constructor(t){super(t)}initialize(){this._tableElement||(this._tableElement=document.createElement("table"),this._tableElement.classList.add(_.classes.TABLE),this._component.children.length&&n2(this._component),this._component.appendChild(this._tableElement))}getTableElement(){return this._tableElement||this.initialize(),this._tableElement}createTable(t){return A1.createTable(t)}recreateTableBody(t){A1.recreateTableBody(t)}setSelectedRows(t,e,o,a,s=!1){A1.setSelectedRows(t,e,o,a,s)}clearSelectedRows(t){A1.clearSelectedRows(t)}updateSelectedState(t,e){A1.updateSelectedState(t,e)}updateSelectAllState(t,e,o){A1.updateSelectAllState(t,e,o)}setSortedColumn(t,e,o){A1.setSortedColumn(t,e,o)}removeColumnSort(t,e){A1.removeColumnSort(t,e)}setSortDirection(t,e,o){A1.setSortDirection(t,e,o)}setSelectColumnVisibility(t,e,o,a,s,r,l,h,v){A1.setSelectColumnVisibility(t,e,o,a||null,s||null,r||null,l||[],h||null,v||null)}setDense(t,e){A1.setDenseState(t,e)}setRoomy(t,e){A1.setRoomyState(t,e)}setResizable(t){A1.setResizable(t)}setSelectAllVisibility(t,e,o,a,s,r=null){A1.setSelectAllVisibility(t,e,o,a,s||null,r||null)}setFilterRow(t){A1.setFilterRow(t)}expandRow(t,e,o){return A1.expandRow(t,e,o)}collapseRow(t,e){return A1.collapseRow(t,e)}isRowExpanded(t,e){return A1.isRowExpanded(t,e)}setFixedHeaders(t){A1.setFixedHeaders(t)}setTableLayoutType(t){A1.setLayoutType(t)}setWrapContentState(t){A1.setWrapContentState(t.tableElement,t.wrapContent)}addDocumentListener(t,e){A1.getOwnerDocument(this._component).addEventListener(t,e)}removeDocumentListener(t,e){A1.getOwnerDocument(this._component).removeEventListener(t,e)}normalizeColumnWidths(t){A1.normalizeColumnWidths(t)}setResizeColumnVisibility(t,e,o){A1.setColumnResizeIndicatorVisibility(t,e,o)}addTableClass(t){H1(t,this._tableElement)}removeTableClass(t){ye(t,this._tableElement)}setRowClickListeners(t,e,o,a){A1.setRowClickListeners(t,e,o,a)}setRowClickAttributes(t,e){A1.setRowClickAttributes(t,e)}};var T4=class{constructor(){this._sortedColumns=[]}get sortedColumns(){return[...this._sortedColumns.map(t=>d({},t))]}addSortColumn(t){this._sortedColumns.push(d({},t)),this._updateSortNumbers()}updateSortColumn(t){let e=this._sortedColumns.find(o=>o.columnIndex===t.columnIndex);if(e)switch(e.direction){case"ASC":this.removeSortColumn(t);break;case"DESC":e.direction="ASC";break;case"UNSET":e.direction="DESC";break}}setSortColumns(t){this._sortedColumns=[...t.map(e=>d({},e))]}removeSortColumn(t){typeof t=="number"?this._sortedColumns.splice(t,1):this._sortedColumns.splice(this._sortedColumns.indexOf(t),1),this._updateSortNumbers()}isSortColumn(t){return typeof t=="number"?this._sortedColumns.some(e=>e.columnIndex===t):this._sortedColumns.includes(t)}clearMultiSort(){this._sortedColumns=[]}getSortColumn(t){return this._sortedColumns.find(e=>e.columnIndex===t)}_updateSortNumbers(){this._sortedColumns.every(t=>typeof t.sortOrder=="number")&&this._sortedColumns.sort((t,e)=>t.sortOrder-e.sortOrder),this._sortedColumns.forEach((t,e)=>t.sortOrder=e+1)}};var S4=class{constructor(t,e=!1){this.data=t;this.selected=e}};var k4=class{constructor(t){this._adapter=t;this._tableRows=[];this._data=[];this._columnConfigurations=[];this._select=!1;this._multiselect=!0;this._dense=!1;this._roomy=!1;this._filter=!1;this._fixedHeaders=!1;this._layoutType=_.strings.DEFAULT_LAYOUT_TYPE;this._wrapContent=!0;this._resizable=!1;this._minResizeWidth=_.numbers.MIN_RESIZE_WIDTH;this._multiColumnSort=!1;this._selectCheckboxAlignment="center";this._isAllSelected=!1;this._sortedColumnIndex=-1;this._rendered=!1;this._allowRowClick=!1;this._multiSortManager=new T4;this._rowClickListener=e=>this._onRowClick(e),this._rowDoubleClickListener=e=>this._onRowDoubleClick(e),this._selectRowListener=e=>this._onRowSelected(e),this._selectAllListener=e=>this._onSelectAll(e),this._sortableHeadCellKeydownListener=e=>this._onSortableHeadCellKeydown(e),this._headRowMouseDownListener=e=>this._onHeadRowMouseDown(e),this._headRowContextMenuListener=e=>this._onHeadRowContextMenu(e),this._documentMouseMoveListener=e=>this._onMouseMove(e),this._documentMouseUpListener=e=>this._onMouseUp(e),this._filterListener=(e,o)=>this._onFilter(e,o),this._selectionManager=new $a(this._selectKey),this._hiddenColumnManager=new $a}initialize(){this._adapter.initialize(),this._adapter.setHostAttribute(_.attributes.SELECT,this._select.toString()),this._adapter.setHostAttribute(_.attributes.MULTISELECT,this._multiselect.toString()),this._adapter.setHostAttribute(_.attributes.DENSE,this._dense.toString()),this._adapter.setHostAttribute(_.attributes.ROOMY,this._roomy.toString()),this._adapter.setHostAttribute(_.attributes.FILTER,this._filter.toString()),this._adapter.emitHostEvent(_.events.INITIALIZED,void 0,!1)}destroy(){this._resizeDescriptor=void 0,this._adapter.removeDocumentListener("mousemove",this._documentMouseMoveListener),this._adapter.removeDocumentListener("mouseup",this._documentMouseUpListener)}set data(t){Array.isArray(t)&&t.length>0?vt(t[0])?this._data=t.map(e=>d({},e)):this._data=[...t]:this._data=[],this._tableRows=this._data.map(e=>new S4(e,this._selectionManager.exists(e))),this._renderBody()}get data(){return this._data.map(t=>d({},t))}set columnConfigurations(t){this._columnConfigurations=t.map(e=>d({},e)),this._hiddenColumnManager.clear(),this._columnConfigurations.forEach(e=>{e.hidden&&this._hiddenColumnManager.add(e)}),this._refreshTableSort(),this.render()}get columnConfigurations(){return this._columnConfigurations.map(t=>d({},t))}get _visibleColumnConfigurations(){return this._columnConfigurations.filter(t=>!this._hiddenColumnManager.exists(t))}get _tableConfiguration(){return{tableElement:this._adapter.getTableElement(),columnConfigurations:this._visibleColumnConfigurations,data:this._tableRows,clickListener:this._allowRowClick?this._rowClickListener:null,doubleClickListener:this._allowRowClick?this._rowDoubleClickListener:null,selectListener:this._select?this._selectRowListener:null,selectAllListener:this._multiselect?this._selectAllListener:null,sortableHeadCellKeydownListener:this._sortableHeadCellKeydownListener,headRowMouseDownListener:this._headRowMouseDownListener,headRowContextMenuListener:this._headRowContextMenuListener,filterListener:this._filter?this._filterListener:null,sortDirection:this._sortDirection,sortedColumn:this._sortedColumnIndex,multiColumnSort:this._multiColumnSort,filter:this._filter,wrapContent:this._wrapContent,fixedHeaders:this._fixedHeaders,layoutType:this._layoutType,dense:this._dense,resizable:this._resizable,rowCreatedCallback:this._rowCreatedCallback,cellCreatedCallback:this._cellCreatedCallback,selectAllTemplate:this._selectAllTemplate,selectCheckboxAlignment:this._selectCheckboxAlignment,tooltipSelect:this._tooltipSelect,tooltipSelectAll:this._tooltipSelectAll}}set select(t){this._select!==t&&(this._select=t,this._adapter.setSelectColumnVisibility(this._adapter.getTableElement(),this._select,this._selectRowListener,this._multiselect?this._selectAllListener:void 0,this._multiselect?this._selectAllTemplate:null,this._selectCheckboxAlignment,this._tableRows,this._tooltipSelect,this._tooltipSelectAll),this._updateSelections(!0),this._select?this._adapter.setHostAttribute(_.attributes.SELECT,this._select.toString()):this._adapter.removeHostAttribute(_.attributes.SELECT))}get select(){return this._select}set multiselect(t){this._multiselect!==t&&(this._multiselect=t,this._select&&(this._adapter.setSelectAllVisibility(this._adapter.getTableElement(),this._multiselect,this._multiselect?this._selectAllListener:null,this._multiselect?this.selectAllTemplate:null,this._selectCheckboxAlignment,this._tooltipSelectAll),this._updateSelections(!0)),this._adapter.setHostAttribute(_.attributes.MULTISELECT,this._multiselect.toString()))}get multiselect(){return this._multiselect}get selectKey(){return Array.isArray(this._selectKey)?[...this._selectKey]:this._selectKey}set selectKey(t){this._originalSelectKey!==t&&(Array.isArray(t)?(this._originalSelectKey=[...t],this._selectKey=[...t]):(this._originalSelectKey=t,this._selectKey=[t]),this._selectionManager.setKey(this._selectKey),this._updateSelections(!1))}get dense(){return this._dense}set dense(t){this._dense!==t&&(this._dense=t,this._adapter.setDense(this._adapter.getTableElement(),this._dense),this._adapter.setHostAttribute(_.attributes.DENSE,this._dense.toString()))}get roomy(){return this._roomy}set roomy(t){t!==this._roomy&&(this._roomy=t,this._applyRoomy())}set filter(t){this._filter!==t&&(this._filter=t,this._adapter.setFilterRow(this._tableConfiguration),this._adapter.setHostAttribute(_.attributes.FILTER,this._filter.toString()))}get filter(){return this._filter}set fixedHeaders(t){this._fixedHeaders!==t&&(this._fixedHeaders=t,this._adapter.setFixedHeaders(this._tableConfiguration))}get fixedHeaders(){return this._fixedHeaders}get layoutType(){return this._layoutType}set layoutType(t){this._layoutType!==t&&(this._layoutType=t,this._adapter.setTableLayoutType(this._tableConfiguration))}get wrapContent(){return this._wrapContent}set wrapContent(t){this._wrapContent!==t&&(this._wrapContent=t,this._adapter.setWrapContentState(this._tableConfiguration))}get resizable(){return this._resizable}set resizable(t){this._resizable!==t&&(this._resizable=t,this._adapter.setResizable(this._tableConfiguration))}get minResizeWidth(){return this._minResizeWidth}set minResizeWidth(t){this._minResizeWidth!==t&&(this._minResizeWidth=t,O2(this._minResizeWidth)?this._minResizeWidth<0&&(this._minResizeWidth=0):this._minResizeWidth=_.numbers.MIN_RESIZE_WIDTH)}get allowRowClick(){return this._allowRowClick}set allowRowClick(t){this._allowRowClick!==t&&(this._allowRowClick=t,this._rendered&&(this._adapter.setRowClickListeners(this._adapter.getTableElement(),this._allowRowClick,this._rowClickListener,this._rowDoubleClickListener),this._adapter.setRowClickAttributes(this._adapter.getTableElement(),this._allowRowClick)))}get multiColumnSort(){return this._multiColumnSort}set multiColumnSort(t){t!==this._multiColumnSort&&(this._multiColumnSort=t,this._refreshTableSort(),this.render())}get selectCheckboxAlignment(){return this._selectCheckboxAlignment}set selectCheckboxAlignment(t){t!==this._selectCheckboxAlignment&&(this._selectCheckboxAlignment=t,this._adapter.setHostAttribute(_.attributes.SELECT_CHECKBOX_ALIGNMENT,t),this.render())}get tooltipSelect(){return this._tooltipSelect}set tooltipSelect(t){t!==this._tooltipSelect&&(this._tooltipSelect=t,typeof t=="string"&&this._adapter.setHostAttribute(_.attributes.TOOLTIP_SELECT,t),this.render())}get tooltipSelectAll(){return this._tooltipSelectAll}set tooltipSelectAll(t){t!==this._tooltipSelectAll&&(this._tooltipSelectAll=t,this._adapter.setHostAttribute(_.attributes.TOOLTIP_SELECT_ALL,t),this.render())}get selectAllTemplate(){return this._selectAllTemplate}set selectAllTemplate(t){t!==this._selectAllTemplate&&(this._selectAllTemplate=t,this.render())}get rowCreated(){return this._rowCreatedCallback}set rowCreated(t){this._rowCreatedCallback=t}get cellCreated(){return this._cellCreatedCallback}set cellCreated(t){this._cellCreatedCallback=t}isRowSelected(t){let e=xo(Array.isArray(this._selectKey)?this._selectKey:[this._selectKey],t);return this.selectKey?!!this._selectionManager.getItems().find(o=>Xn(o,e)):this._selectionManager.exists(t)}getSelectedRows(){return this._selectionManager.getItems()}selectRows(t,e){if(!this._selectKey)throw new Error("You must set a selectKey to select rows.");(!this._multiselect||e)&&this.clearSelections(),t&&t.length&&(this._selectionManager.add(t),this._updateSelections(!e))}deselectRows(t){t&&t.length&&(this._selectionManager.remove(t),this._updateSelections(!1))}clearSelections(){let t=this._adapter.getTableElement();this._selectionManager.clear(),this._tableRows.forEach(e=>e.selected=!1),this._isAllSelected=!1,this._adapter.clearSelectedRows(t),this._select&&this._multiselect&&this._adapter.updateSelectAllState(t,!1)}hideColumn(t){let e=this._columnConfigurations[t];this._sortedColumnIndex===t&&(this._sortedColumnIndex=-1),this._hiddenColumnManager.exists(e)||(this._hiddenColumnManager.add(e),this.render())}showColumn(t){let e=this._columnConfigurations[t];this._hiddenColumnManager.exists(e)&&(this._hiddenColumnManager.remove(e),this.render())}isColumnHidden(t){let e=this._columnConfigurations[t];return!!e&&this._hiddenColumnManager.exists(e)}render(){this._adapter.emitHostEvent(_.events.BEFORE_BODY_RENDERED,void 0,!1),this._adapter.createTable(this._tableConfiguration),this._renderSelections(),this._rendered=!0,this._adapter.emitHostEvent(_.events.BODY_RENDERED,void 0,!1)}_renderBody(){this._rendered&&(this._adapter.emitHostEvent(_.events.BEFORE_BODY_RENDERED,void 0,!1),this._adapter.recreateTableBody(this._tableConfiguration),this._renderSelections(),this._adapter.emitHostEvent(_.events.BODY_RENDERED,void 0,!1))}_renderSelections(){this.select&&(this._isAllSelected=this._getSelectAllState(),this._multiselect&&this._adapter.updateSelectAllState(this._adapter.getTableElement(),this._isAllSelected,this._isIndeterminate(this._isAllSelected)));let t=this._selectionManager.getItems();t.length&&this._adapter.setSelectedRows(this._adapter.getTableElement(),this._selectKey,this._data,t,!1)}expandRow(t,e){if(!this._rendered)throw new Error("Cannot expand a row before the table has rendered.");if(t<0||t>this._tableRows.length)throw new Error(`Invalid row index: ${t}.`);return this._adapter.expandRow(this._tableConfiguration,t,e)}collapseRow(t){return!this._rendered||t<0||t>this._tableRows.length?Promise.resolve():this._adapter.collapseRow(this._tableConfiguration,t)}isRowExpanded(t){return this._adapter.isRowExpanded(this._tableConfiguration,t)}selectRowsByIndex(t,e){let o=t.map(a=>this._data[a]).filter(a=>!!a);this.selectRows(o,!e)}deselectRowsByIndex(t){let e=t.map(o=>this._data[o]).filter(o=>!!o);this.deselectRows(e)}_getSelectAllState(){return this._tableRows.length>0&&this._tableRows.every(t=>t.selected)}_updateSelections(t){this._tableRows.forEach(o=>o.selected=this._selectionManager.exists(o.data));let e=this._getSelectAllState();this._adapter.setSelectedRows(this._adapter.getTableElement(),this._selectKey,this._data,this._selectionManager.getItems(),t),(e!==this._isAllSelected||this._isIndeterminate(e))&&(this._isAllSelected=e,this._multiselect&&this._adapter.updateSelectAllState(this._adapter.getTableElement(),this._isAllSelected,this._isIndeterminate(this._isAllSelected)))}_onRowClick(t){if(t.stopImmediatePropagation(),t.target.matches(`[${_.attributes.SELECT_CHECKBOX}]`))return;let a=C2(t).filter(v=>v.nodeType===1).find(v=>v.hasAttribute(_.attributes.CUSTOM_CELL_TEMPLATE));if(a&&a.hasAttribute(_.attributes.CUSTOM_CELL_TEMPLATE_STOP_PROPAGATION))return;let{index:r,data:l}=this._getSelectedRowFromEvent(t),h={index:r,data:l};this._adapter.emitHostEvent(_.events.ROW_CLICK,h,!0,!1)}_onRowDoubleClick(t){if(t.stopPropagation(),t.target.matches(`[${_.attributes.SELECT_CHECKBOX}]`))return;let e=this._getSelectedRowFromEvent(t),o={index:e.index,data:e.data};this._adapter.emitHostEvent(_.events.SELECT_DOUBLE,o,!0,!1)}_onRowSelected(t){var r;if(t.type==="change"){t.preventDefault();return}if(t.type==="keydown"&&t.key!==" ")return;let e=this._getSelectedRowFromEvent(t);this._multiselect||this._tableRows.filter(h=>h.selected).forEach(h=>{Xn(h.data,xo(this._selectKey,e.data))||this.deselectRows([h.data])});let o=!this._selectionManager.exists(e.data);this._adapter.updateSelectedState(e.rowElement,o),o?this._selectionManager.add(e.data):this._selectionManager.remove(e.data),this._tableRows[e.index].selected=o;let a=[e.index],s=!1;if(this._multiselect){if(t.shiftKey&&this._previouslyClickedRow&&((r=document.getSelection())==null||r.removeAllRanges(),a=this._shiftSelectRows(e),a.includes(this._previouslyClickedRow.index))){let h=a.indexOf(this._previouslyClickedRow.index);a.splice(h,1)}s=this._getSelectAllState(),this._adapter.updateSelectAllState(this._adapter.getTableElement(),s,this._isIndeterminate(s))}for(let l of a){let h=this._tableRows[l].data,m={selected:this._selectionManager.exists(h),index:l,data:h};this._adapter.emitHostEvent(_.events.SELECT,m,!0,!1)}if(this._isAllSelected!==s){this._isAllSelected=s;let l={status:this._isAllSelected,count:this._tableRows.filter(h=>h.selected).length,data:[...this._data],targetType:"row"};this._adapter.emitHostEvent(_.events.SELECT_ALL,l,!0,!1)}this._previouslyClickedRow=d({},e)}_getSelectedRowFromEvent(t){let o=C2(t).find(l=>l.tagName==="TR"),a=o.parentElement,s=this._getNonExpandedRows(a).findIndex(l=>l===o),r=this._tableRows[s].data;return{rowElement:o,index:s,data:r}}_getNonExpandedRows(t){return Array.from(t.rows).filter(e=>!e.classList.contains(_.classes.TABLE_ROW_EXPANDABLE_CONTENT))}_onSelectAll(t){t.stopPropagation(),this._isAllSelected=!this._isAllSelected;let e=this._adapter.getTableElement();this._adapter.updateSelectAllState(e,this._isAllSelected),this._tableRows.forEach((a,s)=>{a.selected=this._isAllSelected,this._isAllSelected?this._selectionManager.add(a.data):this._selectionManager.remove(a.data);let r=A1.getRowByIndex(e,s);r&&this._adapter.updateSelectedState(r,this._isAllSelected)});let o={status:this._isAllSelected,count:this._tableRows.filter(a=>a.selected).length,data:[...this._data],targetType:"select-all"};this._adapter.emitHostEvent(_.events.SELECT_ALL,o,!0,!1)}_onHeadRowContextMenu(t){t.ctrlKey&&t.preventDefault()}_onHeadRowMouseDown(t){if(t.button!==0)return;let e=C2(t),o=t.target,a=e.find(l=>l.tagName==="TR"),s=e.find(l=>l.tagName==="TH"),r=Array.from(a.cells).findIndex(l=>l===s);this._headCellMouseDownIndex=r,o!==s&&o.classList.contains(_.classes.TABLE_RESIZE_HANDLE)&&(this._resizeDescriptor={element:s,startWidth:s.offsetWidth,startX:t.pageX,width:s.offsetWidth,index:this._select?r-1:r},this._adapter.addDocumentListener("mousemove",this._documentMouseMoveListener),this._adapter.setResizeColumnVisibility(this._tableConfiguration,r,!0)),this._adapter.addDocumentListener("mouseup",this._documentMouseUpListener)}_onMouseMove(t){if(this._resizeDescriptor){let e=this._resizeDescriptor.startWidth+(t.pageX-this._resizeDescriptor.startX);e<this._minResizeWidth&&(e=this._minResizeWidth),this._resizeDescriptor.width=e,this._resizeDescriptor.element.style.width=`${e}px`,this._adapter.addTableClass(_.classes.TABLE_RESIZING)}}_onMouseUp(t){if(this._adapter.removeDocumentListener("mousemove",this._documentMouseMoveListener),this._adapter.removeDocumentListener("mouseup",this._documentMouseUpListener),this._adapter.removeTableClass(_.classes.TABLE_RESIZING),this._headCellMouseDownIndex!==void 0){if(this._resizeDescriptor){this._adapter.normalizeColumnWidths(this._tableConfiguration),this._adapter.setResizeColumnVisibility(this._tableConfiguration,this._headCellMouseDownIndex,!1);let e={index:this._resizeDescriptor.index,width:this._resizeDescriptor.width};this._adapter.emitHostEvent(_.events.COLUMN_RESIZE,e),this._resizeDescriptor=void 0}else this._tableConfiguration.tableElement.tHead.contains(t.target)&&(this._multiColumnSort?this._onMultiSort(this._headCellMouseDownIndex,t.ctrlKey):this._onSort(this._headCellMouseDownIndex));this._headCellMouseDownIndex=void 0}}_onSortableHeadCellKeydown(t){if(t.key===" "||t.key==="Enter"){let e=C2(t),o=e.find(r=>r.tagName==="TR"),a=e.find(r=>r.tagName==="TH"),s=Array.from(o.cells).findIndex(r=>r===a);this._onSort(s)}}_onSort(t){let e=this._select?t-1:t,o=e>=0?this._visibleColumnConfigurations[e]:null;if(!o||!o.sortable)return;let a="ASC",s=e===this._sortedColumnIndex,r=this._sortDirection==="ASC"||this._sortDirection===void 0,l=s&&this._sortDirection==="DESC";s&&r&&(a="DESC"),l&&!o.preventUnsort&&(a="UNSET");let h={direction:a,columnIndex:e};if(this._adapter.emitHostEvent(_.events.SORT,h,!0,!0)){if(s&&this._sortDirection==="DESC"&&!o.preventUnsort){this._adapter.removeColumnSort(this._adapter.getTableElement(),this._select?this._sortedColumnIndex+1:this._sortedColumnIndex),this._sortedColumnIndex=-1;return}this._sortDirection=a,e===this._sortedColumnIndex?this._adapter.setSortDirection(this._adapter.getTableElement(),t,this._sortDirection):(this._sortedColumnIndex>=0&&this._adapter.removeColumnSort(this._adapter.getTableElement(),this._select?this._sortedColumnIndex+1:this._sortedColumnIndex),this._sortedColumnIndex=e,this._adapter.setSortedColumn(this._adapter.getTableElement(),t,this._sortDirection))}}_onMultiSort(t,e){let o=this._select?t-1:t,a=o>=0?this._visibleColumnConfigurations[o]:null;if(!a||!a.sortable)return;let s=this._multiSortManager.sortedColumns,r=this._multiSortManager.getSortColumn(o);r?this._multiSortManager.updateSortColumn(r):e?this._multiSortManager.addSortColumn({direction:"DESC",columnIndex:o,propertyName:a.property}):(this._multiSortManager.clearMultiSort(),this._multiSortManager.addSortColumn({direction:"DESC",columnIndex:o,propertyName:a.property}));let l=this._multiSortManager.sortedColumns.map(m=>d({},m));if(!this._adapter.emitHostEvent(_.events.SORT,l,!0,!0)){this._multiSortManager.setSortColumns(s);return}let v=this._multiSortManager.sortedColumns.length>1;for(let m=0;m<this._visibleColumnConfigurations.length;m++){let u=this._select?m+1:m;if(!this._multiSortManager.isSortColumn(m))this._adapter.removeColumnSort(this._adapter.getTableElement(),u),A1.setMultiSortColumnSortNumber(this._adapter.getTableElement(),v,u,null);else{let H=this._multiSortManager.getSortColumn(m);H&&(this._adapter.setSortedColumn(this._adapter.getTableElement(),u,H.direction),A1.setMultiSortColumnSortNumber(this._adapter.getTableElement(),v,u,H.sortOrder||null))}}}_onFilter(t,e){let o={value:t,columnIndex:e};this._adapter.emitHostEvent(_.events.FILTER,o,!0,!1)}_shiftSelectRows(t){let e=[];if(this._previouslyClickedRow){let o=this._previouslyClickedRow.index,a=t.index,s=a>=o?o:a,r=a>=o?a:o;r+=r>s?1:0,s+=s>r?1:0;let l=m=>this.selectRows(m,!1),h=this._tableRows.find(m=>m.selected&&m.data===t.data),v=this._tableRows.find(m=>{var u;return m.data===((u=this._previouslyClickedRow)==null?void 0:u.data)&&!m.selected});(!h||v)&&(l=m=>this.deselectRows(m));for(let m=s;m<r;m++)e.push(m);l(this.data.filter((m,u)=>e.includes(u)))}return e}_isIndeterminate(t){return!t&&this.getSelectedRows().length>0&&this._data.length!==this.getSelectedRows().length}_applyRoomy(){this._adapter.setRoomy(this._adapter.getTableElement(),this._roomy),this._adapter.setHostAttribute(_.attributes.ROOMY,this._roomy.toString())}_refreshTableSort(){if(this._sortedColumnIndex=this._visibleColumnConfigurations.findIndex(t=>t.initialSort),this._sortedColumnIndex>=0&&this._sortDirection===void 0){let t=this._visibleColumnConfigurations[this._sortedColumnIndex];t.initialSort===!0&&t.sortDirection?this._sortDirection=t.sortDirection:typeof t.initialSort=="object"&&t.initialSort.direction&&(this._sortDirection=t.initialSort.direction)}if(this._multiColumnSort){let t=[];this._visibleColumnConfigurations.forEach((e,o)=>{typeof e.initialSort=="object"&&t.push({columnIndex:o,direction:e.initialSort.direction,sortOrder:e.initialSort.sortOrder,propertyName:e.property})}),this._multiSortManager.setSortColumns(t)}}};var X1=class extends M{static get observedAttributes(){return[_.attributes.SELECT,_.attributes.MULTISELECT,_.attributes.SELECT_KEY,_.attributes.DENSE,_.attributes.ROOMY,_.attributes.FILTER,_.attributes.FIXED_HEADERS,_.attributes.LAYOUT_TYPE,_.attributes.WRAP_CONTENT,_.attributes.RESIZABLE,_.attributes.MIN_RESIZE_WIDTH,_.attributes.ALLOW_ROW_CLICK,_.attributes.MULTI_COLUMN_SORT,_.attributes.SELECT_CHECKBOX_ALIGNMENT,_.attributes.TOOLTIP_SELECT,_.attributes.TOOLTIP_SELECT_ALL]}constructor(){super(),X.define(il),this._core=new k4(new A4(this))}initializedCallback(){this._core.initialize()}connectedCallback(){this._core.initialize()}disconnectedCallback(){this._core.destroy()}attributeChangedCallback(t,e,o){switch(t){case _.attributes.SELECT:this.select=p(o);break;case _.attributes.MULTISELECT:this.multiselect=p(o);break;case _.attributes.SELECT_KEY:this.selectKey=o;break;case _.attributes.DENSE:this.dense=p(o);break;case _.attributes.ROOMY:this.roomy=p(o);break;case _.attributes.FILTER:this.filter=p(o);break;case _.attributes.FIXED_HEADERS:this.fixedHeaders=p(o);break;case _.attributes.LAYOUT_TYPE:this.layoutType=o;break;case _.attributes.WRAP_CONTENT:this.wrapContent=p(o);break;case _.attributes.RESIZABLE:this.resizable=p(o);break;case _.attributes.MIN_RESIZE_WIDTH:this.minResizeWidth=K(o);break;case _.attributes.ALLOW_ROW_CLICK:this.allowRowClick=p(o);break;case _.attributes.MULTI_COLUMN_SORT:this.multiColumnSort=p(o);break;case _.attributes.SELECT_CHECKBOX_ALIGNMENT:this.selectCheckboxAlignment=this.getAttribute(_.attributes.SELECT_CHECKBOX_ALIGNMENT)||"center";break;case _.attributes.TOOLTIP_SELECT:this.tooltipSelect=o;break;case _.attributes.TOOLTIP_SELECT_ALL:this.tooltipSelectAll=o;break}}hideColumn(t){this._core.hideColumn(t)}showColumn(t){this._core.showColumn(t)}isColumnHidden(t){return this._core.isColumnHidden(t)}getSelectedRows(){return this._core.getSelectedRows()}selectRow(t){this._core.selectRows([t],!1)}selectRows(t,e=!1){this._core.selectRows(t,!e)}deselectRow(t){this._core.deselectRows([t])}deselectRows(t){this._core.deselectRows(t)}clearSelections(){this._core.clearSelections()}render(){this._core.render()}expandRow(t,e){return this._core.expandRow(t,e)}collapseRow(t){return this._core.collapseRow(t)}isRowExpanded(t){return this._core.isRowExpanded(t)}selectRowsByIndex(t,e){typeof t=="number"?this._core.selectRowsByIndex([t],e):Array.isArray(t)&&this._core.selectRowsByIndex(t,e)}deselectRowsByIndex(t){typeof t=="number"?this._core.deselectRowsByIndex([t]):Array.isArray(t)&&this._core.deselectRowsByIndex(t)}isRowSelected(t){return this._core.isRowSelected(t)}};i([c()],X1.prototype,"data",2),i([c()],X1.prototype,"columnConfigurations",2),i([c()],X1.prototype,"select",2),i([c()],X1.prototype,"multiselect",2),i([c()],X1.prototype,"selectKey",2),i([c()],X1.prototype,"tooltipSelect",2),i([c()],X1.prototype,"tooltipSelectAll",2),i([c()],X1.prototype,"dense",2),i([c()],X1.prototype,"roomy",2),i([c()],X1.prototype,"filter",2),i([c()],X1.prototype,"fixedHeaders",2),i([c()],X1.prototype,"layoutType",2),i([c()],X1.prototype,"wrapContent",2),i([c()],X1.prototype,"resizable",2),i([c()],X1.prototype,"minResizeWidth",2),i([c()],X1.prototype,"allowRowClick",2),i([c()],X1.prototype,"multiColumnSort",2),i([c()],X1.prototype,"rowCreated",2),i([c()],X1.prototype,"cellCreated",2),i([c()],X1.prototype,"selectAllTemplate",2),i([c()],X1.prototype,"selectCheckboxAlignment",2),X1=i([y({name:_.elementName,dependencies:[tt,j,at,m1]})],X1);function im(){f(X1)}var lm=`${b}tab-bar`,cm={DISABLED:"disabled",ACTIVE_TAB:"active-tab",VERTICAL:"vertical",STACKED:"stacked",CLUSTERED:"clustered",SECONDARY:"secondary",INVERTED:"inverted",AUTO_ACTIVATE:"auto-activate",SCROLL_BUTTONS:"scroll-buttons"},Pb=d({},cm),Nb={ROOT:".forge-tab-bar",SCROLL_CONTAINER:".scroll-container",DEFAULT_SLOT:"slot:not([name])"},Rb={SCROLL_BUTTON:"scroll-button"},Fb={CHANGE:`${lm}-change`},Ub={SCROLL_MARGIN:48},N1={elementName:lm,observedAttributes:cm,attributes:Pb,events:Fb,selectors:Nb,classes:Rb,numbers:Ub},f3=new Map([["default",new Set(["Home","End"])],["horizontal",new Set(["ArrowLeft","ArrowRight"])],["vertical",new Set(["ArrowUp","ArrowDown"])]]);var hm=`${b}tab`,vm={DISABLED:"disabled",SELECTED:"selected",VERTICAL:"vertical",STACKED:"stacked",SECONDARY:"secondary",INVERTED:"inverted"},Wb=d({},vm),Gb={INDICATOR:".indicator"},qb={},Yb={SELECT:`${hm}-select`},Kb={EASING:"cubic-bezier(0.4, 0, 0.2, 1)"},$b={ANIMATION_DURATION:250},K1={elementName:hm,observedAttributes:vm,attributes:Wb,selectors:Gb,classes:qb,events:Yb,strings:Kb,numbers:$b};var O4=class extends I{constructor(t){super(t),this._tabIndicatorElement=w(this._component,K1.selectors.INDICATOR),this._focusIndicatorElement=w(this._component,w1.elementName),this._stateLayerElement=w(this._component,I1.elementName)}initialize(){this._component.tabIndex=this._component.selected?0:-1,this._component.setAttribute("role","tab"),this._component.setAttribute("aria-selected",this._component.selected?"true":"false")}activateFocusIndicator(){this._focusIndicatorElement.active=!0}addInteractionListener(t,e){this._component.addEventListener(t,e)}setDisabled(t){this._stateLayerElement.disabled=t,this._component.tabIndex=t?-1:this._component.selected?0:-1,this._component.setAttribute("aria-disabled",String(t)),G(this._component,t,K1.attributes.DISABLED,String(t))}setSelected(t){this._component.tabIndex=t?0:-1,this._component.setAttribute("aria-selected",String(t))}animateSelected(){this._tabIndicatorElement.getAnimations().forEach(e=>e.cancel());let t=this._getKeyframes();t&&this._tabIndicatorElement.animate(t,{duration:K1.numbers.ANIMATION_DURATION,easing:K1.strings.EASING})}animateStateLayer(){this._stateLayerElement.playAnimation()}_getKeyframes(){var x;let t=window.matchMedia("(prefers-reduced-motion: reduce)").matches;if(!this._component.selected)return t?[{opacity:1},{transform:"none"}]:null;let e={},o=this._component.vertical,a=this._getSelectedTabIndicator(),s=(x=a==null?void 0:a.getBoundingClientRect())!=null?x:{},r=o?s.top:s.left,l=o?s.height:s.width,h=this._tabIndicatorElement.getBoundingClientRect(),v=o?h.top:h.left,m=o?h.height:h.width,u=o?"Y":"X",H=l/m;return!t&&r!==void 0&&v!==void 0&&!isNaN(H)?e.transform=`translate${u}(${(r-v).toFixed(4)}px) scale${u}(${H.toFixed(4)})`:e.opacity=0,[e,{transform:"none"}]}_getSelectedTabIndicator(){let t=N3(this._component,N1.elementName);if(t){let o=Array.from(t.querySelectorAll(K1.elementName)).find(a=>a.hasAttribute(K1.attributes.SELECTED));if(o)return w(o,K1.selectors.INDICATOR)}return null}};var D4=class{constructor(t){this._adapter=t;this._selected=!1;this._disabled=!1;this._vertical=!1;this._stacked=!1;this._secondary=!1;this._inverted=!1;this._clickListener=()=>this._onClick(),this._keydownListener=e=>this._onKeydown(e)}initialize(){this._adapter.initialize(),this._adapter.addInteractionListener("click",this._clickListener),this._adapter.addInteractionListener("keydown",this._keydownListener)}setFocus(t){t!=null&&t.focusVisible&&this._adapter.activateFocusIndicator()}_onClick(){this._disabled||this._selected||this._dispatchSelectEvent()}_onKeydown(t){if(this._disabled||this._selected)return;(t.key===" "||t.key==="Enter")&&(t.preventDefault(),this._adapter.animateStateLayer(),this._dispatchSelectEvent())}_dispatchSelectEvent(){this._adapter.dispatchHostEvent(new CustomEvent(K1.events.SELECT,{bubbles:!0,composed:!0}))}get disabled(){return this._disabled}set disabled(t){this._disabled!==t&&(this._disabled=t,this._adapter.setDisabled(this._disabled),this._adapter.toggleHostAttribute(K1.attributes.DISABLED,this._disabled))}get selected(){return this._selected}set selected(t){this._selected!==t&&(this._selected=t,this._adapter.setSelected(this._selected),this._adapter.animateSelected(),this._adapter.toggleHostAttribute(K1.attributes.SELECTED,this._selected))}get vertical(){return this._vertical}set vertical(t){this._vertical!==t&&(this._vertical=t,this._adapter.toggleHostAttribute(K1.attributes.VERTICAL,this._vertical))}get stacked(){return this._stacked}set stacked(t){this._stacked!==t&&(this._stacked=t,this._adapter.toggleHostAttribute(K1.attributes.STACKED,this._stacked))}get secondary(){return this._secondary}set secondary(t){this._secondary!==t&&(this._secondary=t,this._adapter.toggleHostAttribute(K1.attributes.SECONDARY,this._secondary))}get inverted(){return this._inverted}set inverted(t){this._inverted!==t&&(this._inverted=t,this._adapter.toggleHostAttribute(K1.attributes.INVERTED,this._inverted))}};var Xb='<template><div class="forge-tab" part="container"><span class="content" part="content"><slot name="start"><slot name="leading"></slot></slot><span class="label" part="label"><slot></slot></span><slot name="end"><slot name="trailing"></slot></slot><span class="indicator" part="indicator"></span></span><forge-state-layer exportparts="surface:state-layer" target=":host"></forge-state-layer><forge-focus-indicator part="focus-indicator" target=":host" inward></forge-focus-indicator></div></template>',Zb=':host{display:inline-flex;outline:0;-webkit-tap-highlight-color:transparent;vertical-align:middle}:host([hidden]){display:none}.forge-tab{--_tab-active-color:var(--forge-tab-active-color, var(--forge-theme-primary, #3f51b5));--_tab-inactive-color:var(--forge-tab-inactive-color, var(--forge-theme-text-medium, rgba(0, 0, 0, 0.6)));--_tab-height:var(--forge-tab-height, 48px);--_tab-stacked-height:var(--forge-tab-stacked-height, 64px);--_tab-padding-block:var(--forge-tab-padding-block, 0);--_tab-padding-inline:var(--forge-tab-padding-inline, 0);--_tab-disabled-opacity:var(--forge-tab-disabled-opacity, 0.38);--_tab-indicator-color:var(--forge-tab-indicator-color, var(--_tab-active-color));--_tab-indicator-height:var(--forge-tab-indicator-height, 3px);--_tab-indicator-shape:var(--forge-tab-indicator-shape, 3px 3px 0 0);--_tab-vertical-indicator-shape:var(--forge-tab-vertical-indicator-shape, 3px 0 0 3px);--_tab-secondary-indicator-height:var(--forge-tab-secondary-indicator-height, 2px);--_tab-secondary-indicator-shape:var(--forge-tab-secondary-indicator-shape, 0);--_tab-inverted-indicator-shape:var(--forge-tab-inverted-indicator-shape, 0 0 3px 3px);--_tab-vertical-inverted-indicator-shape:var(--forge-tab-vertical-inverted-indicator-shape, 0 3px 3px 0);--_tab-container-color:var(--forge-tab-container-color, transparent);--_tab-container-height:var(--forge-tab-container-height, var(--_tab-height));--_tab-container-shape:var(--forge-tab-container-shape, 0);--_tab-content-height:var(--forge-tab-content-height, var(--_tab-height));--_tab-content-spacing:var(--forge-tab-content-spacing, var(--forge-spacing-xsmall, 8px));--_tab-content-padding:var(--forge-tab-content-padding, var(--forge-spacing-xxsmall, 4px));--_tab-content-padding-block:var(--forge-tab-content-padding-block, var(--_tab-content-padding));--_tab-content-padding-inline:var(--forge-tab-content-padding-inline, var(--forge-spacing-medium, 16px));--_tab-content-padding-inline-secondary:var(--forge-tab-content-padding-inline-secondary, var(--forge-spacing-medium, 16px));--_tab-active-focus-icon-color:var(--forge-tab-active-focus-icon-color, var(--_tab-active-color));--_tab-active-hover-icon-color:var(--forge-tab-active-hover-icon-color, var(--_tab-active-color));--_tab-active-icon-color:var(--forge-tab-active-icon-color, var(--_tab-active-color));--_tab-active-pressed-icon-color:var(--forge-tab-active-pressed-icon-color, var(--_tab-active-color));--_tab-icon-size:var(--forge-tab-icon-size, 24px);--_tab-focus-icon-color:var(--forge-tab-focus-icon-color, var(--_tab-inactive-color));--_tab-hover-icon-color:var(--forge-tab-hover-icon-color, var(--_tab-inactive-color));--_tab-icon-color:var(--forge-tab-icon-color, var(--_tab-inactive-color));--_tab-pressed-icon-color:var(--forge-tab-pressed-icon-color, var(--_tab-inactive-color));--_tab-active-focus-label-text-color:var(--forge-tab-active-focus-label-text-color, var(--_tab-active-color));--_tab-active-hover-label-text-color:var(--forge-tab-active-hover-label-text-color, var(--_tab-active-color));--_tab-active-label-text-color:var(--forge-tab-active-label-text-color, var(--_tab-active-color));--_tab-active-pressed-label-text-color:var(--forge-tab-active-pressed-label-text-color, var(--_tab-active-color));--_tab-focus-label-text-color:var(--forge-tab-focus-label-text-color, var(--_tab-inactive-color));--_tab-hover-label-text-color:var(--forge-tab-hover-label-text-color, var(--_tab-inactive-color));--_tab-label-text-color:var(--forge-tab-label-text-color, var(--_tab-inactive-color));--_tab-pressed-label-text-color:var(--forge-tab-pressed-label-text-color, var(--_tab-inactive-color))}.forge-tab{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-button-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-button-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-button-font-size-scale, .875)));font-weight:var(--forge-typography-button-font-weight,500);line-height:var(--forge-typography-button-line-height, normal);letter-spacing:var(--forge-typography-button-letter-spacing, .0714285714em);text-transform:var(--forge-typography-button-text-transform,inherit);text-decoration:var(--forge-typography-button-text-decoration,inherit);display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;border:none;outline:0;user-select:none;-webkit-appearance:none;vertical-align:middle;background:0 0;text-decoration:none;width:100%;position:relative;padding-block:var(--_tab-padding-block);padding-inline:var(--_tab-padding-inline);margin:0;z-index:0;background-color:var(--_tab-container-color);color:var(--_tab-label-text-color);min-height:var(--_tab-container-height)}.forge-tab::-moz-focus-inner{padding:0;border:0}.forge-tab ::slotted([slot=leading]),.forge-tab ::slotted([slot=trailing]){display:inline-flex;position:relative;writing-mode:horizontal-tb;fill:currentColor;color:var(--_tab-icon-color);font-size:var(--_tab-icon-size);width:var(--_tab-icon-size);height:var(--_tab-icon-size)}.forge-tab:hover{color:var(--_tab-hover-label-text-color);cursor:pointer}.forge-tab:hover ::slotted([slot=leading]),.forge-tab:hover ::slotted([slot=trailing]){color:var(--_tab-hover-icon-color)}.forge-tab .content{position:relative;box-sizing:border-box;display:inline-flex;flex-direction:row;align-items:center;justify-content:center;white-space:nowrap;transition:150ms color linear;max-height:calc(var(--_tab-content-height) + 2 * var(--_tab-content-padding-block));min-height:var(--_tab-content-height);width:100%;padding-block:var(--_tab-content-padding-block);padding-inline:var(--_tab-content-padding-inline);gap:var(--_tab-content-spacing)}.forge-tab .content .label{display:inline-block;line-height:1}.forge-tab .indicator{position:absolute;box-sizing:border-box;z-index:-1;transform-origin:bottom left;background:var(--_tab-indicator-color);border-radius:var(--_tab-indicator-shape);height:var(--_tab-indicator-height);min-width:100%;inset:auto 0 0;opacity:0}::slotted(*),:host{white-space:nowrap}forge-focus-indicator{--forge-focus-indicator-color:var(--_tab-active-color);--forge-focus-indicator-shape:8px}forge-state-layer{--forge-state-layer-color:var(--_tab-inactive-color)}:host(:focus) .forge-tab{color:var(--_tab-focus-label-text-color)}:host(:focus) .forge-tab ::slotted([slot=leading]),:host(:focus) .forge-tab ::slotted([slot=trailing]){color:var(--_tab-focus-icon-color)}:host(:active) .forge-tab{color:var(--_tab-pressed-label-text-color);outline:0}:host(:active) .forge-tab ::slotted([slot=leading]),:host(:active) .forge-tab ::slotted([slot=trailing]){color:var(--_tab-pressed-icon-color)}:host([disabled]){cursor:not-allowed}:host([disabled]) .forge-tab{opacity:var(--_tab-disabled-opacity);pointer-events:none}:host([selected]) .forge-tab{color:var(--_tab-active-label-text-color)}:host([selected]) .forge-tab ::slotted([slot=end]),:host([selected]) .forge-tab ::slotted([slot=leading]),:host([selected]) .forge-tab ::slotted([slot=start]),:host([selected]) .forge-tab ::slotted([slot=trailing]){color:var(--_tab-active-icon-color)}:host([selected]) .forge-tab:hover{color:var(--_tab-active-hover-label-text-color)}:host([selected]) .forge-tab:hover ::slotted([slot=end]),:host([selected]) .forge-tab:hover ::slotted([slot=leading]),:host([selected]) .forge-tab:hover ::slotted([slot=start]),:host([selected]) .forge-tab:hover ::slotted([slot=trailing]){color:var(--_tab-active-hover-icon-color)}:host([selected]) .forge-tab .indicator{opacity:1}:host([selected]) forge-state-layer{--forge-state-layer-color:var(--_tab-active-color)}:host([selected]:not([vertical])) forge-focus-indicator{--forge-focus-indicator-offset-block:0 calc(var(--_tab-indicator-height) + 1px)}:host([selected]:focus) .forge-tab{color:var(--_tab-active-focus-label-text-color)}:host([selected]:focus) .forge-tab ::slotted([slot=leading]),:host([selected]:focus) .forge-tab ::slotted([slot=trailing]){color:var(--_tab-active-focus-icon-color)}:host([selected]:active) .forge-tab{color:var(--_tab-active-pressed-label-text-color)}:host([selected]:active) .forge-tab ::slotted([slot=leading]),:host([selected]:active) .forge-tab ::slotted([slot=trailing]){color:var(--_tab-active-pressed-icon-color)}:host([stacked]) .forge-tab{--_tab-height:var(--_tab-stacked-height)}:host([stacked]) .forge-tab .content{max-height:none;flex-direction:column;height:100%}:host([vertical]) .forge-tab{--_tab-padding-inline:var(--forge-tab-padding-inline, 0);width:100%;flex-direction:row;border-bottom:none}:host([vertical]) .forge-tab .content{width:100%;min-height:100%}:host([vertical]) .forge-tab .indicator{height:100%;min-width:var(--_tab-indicator-height);inset:0 0 0 auto}:host([vertical]) forge-focus-indicator{--forge-focus-indicator-offset-inline:0 calc(var(--_tab-indicator-height) + 1px)}:host([vertical]) .forge-tab{--_tab-indicator-shape:var(--_tab-vertical-indicator-shape)}:host([inverted]) .forge-tab{--_tab-indicator-shape:var(--_tab-inverted-indicator-shape)}:host([inverted]) .indicator{inset:0 0 auto;transform-origin:top left}:host([inverted][vertical]) .forge-tab{--_tab-indicator-shape:var(--_tab-vertical-inverted-indicator-shape)}:host([inverted][vertical]) .indicator{inset:0 auto 0 0}',Rt=class extends M{static get observedAttributes(){return Object.values(K1.observedAttributes)}constructor(){super(),z(this,Xb,Zb),this._core=new D4(new O4(this))}connectedCallback(){this._core.initialize()}attributeChangedCallback(t,e,o){switch(t){case K1.observedAttributes.DISABLED:this.disabled=p(o);break;case K1.observedAttributes.SELECTED:this.selected=p(o);break;case K1.observedAttributes.VERTICAL:this.vertical=p(o);break;case K1.observedAttributes.STACKED:this.stacked=p(o);break;case K1.observedAttributes.SECONDARY:this.secondary=p(o);break;case K1.observedAttributes.INVERTED:this.inverted=p(o);break}}focus(t){super.focus(t),this._core.setFocus(t)}};i([c()],Rt.prototype,"disabled",2),i([c()],Rt.prototype,"selected",2),i([c()],Rt.prototype,"vertical",2),i([c()],Rt.prototype,"stacked",2),i([c()],Rt.prototype,"secondary",2),i([c()],Rt.prototype,"inverted",2),Rt=i([y({name:K1.elementName,dependencies:[J,r1]})],Rt);function pm(){f(Rt)}var P4=class extends I{constructor(t){super(t),this._defaultSlotElement=w(this._component,N1.selectors.DEFAULT_SLOT),this._rootElement=w(this._component,N1.selectors.ROOT),this._scrollContainer=w(this._component,N1.selectors.SCROLL_CONTAINER)}initializeContainerSizeObserver(t){this._resizeObserver=new ResizeObserver(()=>t()),this._resizeObserver.observe(this._component)}initializeScrollObserver(t){this._scrollContainer.addEventListener("scroll",t,{passive:!0})}destroyContainerSizeObserver(){var t;(t=this._resizeObserver)==null||t.disconnect(),this._resizeObserver=void 0}destroyScrollObserver(t){this._scrollContainer.removeEventListener("scroll",t,{passive:!0})}setVertical(t){G(this._component,!!t,"aria-orientation","vertical")}setScrollBackwardButtonListener(t){var e;(e=this._backwardScrollButton)==null||e.addEventListener("click",t)}setScrollForwardButtonListener(t){var e;(e=this._forwardScrollButton)==null||e.addEventListener("click",t)}addSlotListener(t){this._defaultSlotElement.addEventListener("slotchange",t)}getTabs(){return Array.from(this._component.querySelectorAll(K1.elementName))}async tryScrollTabIntoView(t){if(await new Promise(requestAnimationFrame),!t.isConnected||!t.selected&&!t.matches(":focus"))return;let e=this._component.vertical,o=e?this._scrollContainer.offsetTop:this._scrollContainer.offsetLeft,a=e?t.offsetTop:t.offsetLeft,s=e?t.offsetHeight:t.offsetWidth,r=e?this._scrollContainer.scrollTop:this._scrollContainer.scrollLeft,l=e?this._scrollContainer.offsetHeight:this._scrollContainer.offsetWidth,h=a-(N1.numbers.SCROLL_MARGIN+o),v=a+s-l+(N1.numbers.SCROLL_MARGIN-o),m=Math.min(h,Math.max(v,r)),u=t.matches(":focus")?"smooth":"instant";this._scrollContainer.scrollTo({behavior:u,[e?"left":"top"]:0,[e?"top":"left"]:m})}getScrollState(){let{scrollHeight:t,scrollWidth:e,scrollLeft:o,scrollTop:a,clientHeight:s,clientWidth:r}=this._scrollContainer,l=this._component.vertical?s+a:r+o,h=this._component.vertical?t:e,v=l===h;return{isScrolledStart:(this._component.vertical?l-s:l-r)===0,isScrolledEnd:v}}isScrollable(){let{scrollHeight:t,scrollWidth:e,clientHeight:o,clientWidth:a}=this._scrollContainer;return this._component.vertical?t>o:e>a}setScrollButtons(t){var e,o;t?(this._backwardScrollButton=this._createScrollButton(this._component.vertical?Qa.name:v0.name),this._rootElement.insertAdjacentElement("afterbegin",this._backwardScrollButton),this._forwardScrollButton=this._createScrollButton(this._component.vertical?h0.name:ze.name),this._rootElement.insertAdjacentElement("beforeend",this._forwardScrollButton)):((e=this._backwardScrollButton)==null||e.remove(),this._backwardScrollButton=void 0,(o=this._forwardScrollButton)==null||o.remove(),this._forwardScrollButton=void 0)}syncScrollButtons({backwardEnabled:t,forwardEnabled:e}){var o,a;if(this._backwardScrollButton){let s=!t;s&&this._backwardScrollButton.matches(":focus")&&((o=this._forwardScrollButton)==null||o.focus()),this._backwardScrollButton.disabled=s,this._backwardScrollButton.tabIndex=-1}if(this._forwardScrollButton){let s=!e;s&&this._forwardScrollButton.matches(":focus")&&((a=this._backwardScrollButton)==null||a.focus()),this._forwardScrollButton.disabled=s,this._forwardScrollButton.tabIndex=-1}}scroll(t){let e=this._component.vertical?this._scrollContainer.offsetHeight:this._scrollContainer.offsetWidth;this._scrollContainer.scrollBy({behavior:"smooth",[this._component.vertical?"top":"left"]:e*(t==="forward"?1:-1)})}updateScrollButtonIcons(t){var a,s;let e=(a=this._backwardScrollButton)==null?void 0:a.querySelector("forge-icon");e&&(e.name=t?Qa.name:v0.name);let o=(s=this._forwardScrollButton)==null?void 0:s.querySelector("forge-icon");o&&(o.name=t?h0.name:ze.name)}_createScrollButton(t){let e=document.createElement("forge-icon-button");e.classList.add(N1.classes.SCROLL_BUTTON),e.shape="squared",e.type="button",e.tabIndex=-1,e.setAttribute("aria-hidden","true");let o=document.createElement("forge-icon");return o.name=t,e.appendChild(o),e}};var N4=class{constructor(t){this._adapter=t;this._isInitialized=!1;this._disabled=!1;this._vertical=!1;this._clustered=!1;this._stacked=!1;this._secondary=!1;this._inverted=!1;this._autoActivate=!1;this._scrollButtons=!1;this._scrollButtonsVisible=!1;this._tabsChangedListener=()=>this._onTabsChanged(),this._tabSelectedListener=e=>this._onTabSelected(e),this._keydownListener=e=>this._onKeydown(e),this._resizeListener=()=>this._onResize(),this._scrollListener=()=>this._onScroll(),this._scrollBackwardButtonListener=()=>this._onScrollBackward(),this._scrollForwardButtonListener=()=>this._onScrollForward()}initialize(){this._adapter.addSlotListener(this._tabsChangedListener),this._adapter.addHostListener(K1.events.SELECT,this._tabSelectedListener),this._adapter.addHostListener("keydown",this._keydownListener),this._adapter.setVertical(this._vertical),this._scrollButtons&&(this._adapter.initializeContainerSizeObserver(this._resizeListener),this._adapter.initializeScrollObserver(this._scrollListener),this._updateScrollState()),this._tryScrollActiveTabIntoView(),this._isInitialized=!0}destroy(){this._adapter.destroyContainerSizeObserver(),this._adapter.destroyScrollObserver(this._scrollListener),this._isInitialized=!1}_getTabs(){return this._adapter.getTabs()}async _onTabsChanged(){this._syncTabState(),this._scrollButtons&&this._detectScrollableStatus(),this._tryScrollActiveTabIntoView()}_onTabSelected(t){this._selectTab({tab:t.target,focusTab:!0})}async _onKeydown(t){var r,l;let e=this._vertical?"vertical":"horizontal";if(!(((r=f3.get("default"))==null?void 0:r.has(t.key))||((l=f3.get(e))==null?void 0:l.has(t.key))))return;t.preventDefault();let a=-1,s=this._getTabs();if(t.key==="Home")a=s.findIndex(h=>!h.disabled);else if(t.key==="End")a=s.reduceRight((h,v,m)=>!v.disabled&&h===-1?m:h,-1);else{let h=s.findIndex(u=>u.matches(":focus")),v=t.key==="ArrowLeft"||t.key==="ArrowUp",m=u=>{var x;a=u+(v?-1:1),a=a<0?s.length-1:a%s.length,!s.every(C=>C.disabled)&&((x=s[a])!=null&&x.disabled)&&m(a)};m(h)}a!==-1&&(this._autoActivate?this._selectTab({tab:s[a],focusTab:!0}):(s[a].focus({preventScroll:!0,focusVisible:!0}),await this._adapter.tryScrollTabIntoView(s[a])))}async _selectTab({tab:t,emitEvent:e=!0,focusTab:o=!1}){if(!t||t.disabled)return;let a=this._getTabs(),s=a.find(r=>r.selected);if(s!==t){if(e){let r=a.indexOf(t),l=new CustomEvent(N1.events.CHANGE,{detail:{index:r},bubbles:!0,cancelable:!0,composed:!0});if(this._adapter.dispatchHostEvent(l),l.defaultPrevented)return}t.selected=!0,o&&t.focus({preventScroll:!0}),await this._adapter.tryScrollTabIntoView(t),s&&(s.selected=!1),this._activeTab=a.indexOf(t)}}_syncTabState(){this._getTabs().forEach((t,e)=>{t.selected=e===this._activeTab,this._disabled&&(t.disabled=this._disabled),t.vertical=this._vertical,t.stacked=this._stacked,t.secondary=this._secondary,t.inverted=this._inverted})}_onResize(){this._detectScrollableStatus()}_onScroll(){this._updateScrollState()}_onScrollBackward(){this._adapter.scroll("backward")}_onScrollForward(){this._adapter.scroll("forward")}_detectScrollableStatus(){let t=this._adapter.isScrollable();this._scrollButtonsVisible!==t&&(this._adapter.setScrollButtons(t),t?(this._adapter.initializeScrollObserver(this._scrollListener),this._updateScrollState(),this._adapter.setScrollBackwardButtonListener(this._scrollBackwardButtonListener),this._adapter.setScrollForwardButtonListener(this._scrollForwardButtonListener)):this._adapter.destroyScrollObserver(this._scrollListener),this._scrollButtonsVisible=t)}_updateScrollState(){let{isScrolledEnd:t,isScrolledStart:e}=this._adapter.getScrollState(),o={backwardEnabled:!e,forwardEnabled:!t};this._adapter.syncScrollButtons(o)}_tryScrollActiveTabIntoView(){this._tabScrollAnimationFrame&&window.cancelAnimationFrame(this._tabScrollAnimationFrame),this._tabScrollAnimationFrame=window.requestAnimationFrame(()=>{if(this._tabScrollAnimationFrame=void 0,this._adapter.isScrollable()){let t=this._getTabs();typeof this._activeTab=="number"&&this._activeTab>=0&&t[this._activeTab]&&this._adapter.tryScrollTabIntoView(t[this._activeTab])}})}get disabled(){return this._disabled}set disabled(t){t=!!t,this._disabled!==t&&(this._disabled=t,this._getTabs().forEach(e=>e.disabled=this._disabled),this._adapter.toggleHostAttribute(N1.attributes.DISABLED,this._disabled))}get activeTab(){return this._activeTab}set activeTab(t){if(this._activeTab!==t){this._activeTab=t!=null?t:void 0;let e=this._getTabs();if(typeof this._activeTab=="number"){let o=e[this._activeTab];this._selectTab({tab:o,emitEvent:!1,focusTab:!1}),this._adapter.setHostAttribute(N1.attributes.ACTIVE_TAB,String(this._activeTab))}else e.forEach(o=>o.selected=!1),this._adapter.removeHostAttribute(N1.attributes.ACTIVE_TAB)}}get vertical(){return this._vertical}set vertical(t){t=!!t,this._vertical!==t&&(this._vertical=t,this._isInitialized&&this._adapter.setVertical(this._vertical),this._getTabs().forEach(e=>e.vertical=this._vertical),this._scrollButtonsVisible&&this._adapter.updateScrollButtonIcons(this._vertical),this._adapter.toggleHostAttribute(K1.attributes.VERTICAL,this._vertical))}get clustered(){return this._clustered}set clustered(t){t=!!t,this._clustered!==t&&(this._clustered=t,this._adapter.toggleHostAttribute(N1.attributes.CLUSTERED,this._clustered))}get stacked(){return this._stacked}set stacked(t){t=!!t,this._stacked!==t&&(this._stacked=t,this._getTabs().forEach(e=>e.stacked=this._stacked),this._adapter.toggleHostAttribute(N1.attributes.STACKED,this._stacked))}get secondary(){return this._secondary}set secondary(t){t=!!t,this._secondary!==t&&(this._secondary=t,this._getTabs().forEach(e=>e.secondary=this._secondary),this._adapter.toggleHostAttribute(N1.attributes.SECONDARY,this._secondary))}get inverted(){return this._inverted}set inverted(t){t=!!t,this._inverted!==t&&(this._inverted=t,this._getTabs().forEach(e=>e.inverted=this._inverted),this._adapter.toggleHostAttribute(N1.attributes.INVERTED,this._inverted))}get autoActivate(){return this._autoActivate}set autoActivate(t){t=!!t,this._autoActivate!==t&&(this._autoActivate=t,this._adapter.toggleHostAttribute(N1.attributes.AUTO_ACTIVATE,this._autoActivate))}get scrollButtons(){return this._scrollButtons}set scrollButtons(t){t=!!t,this._scrollButtons!==t&&(this._scrollButtons=!!t,this._isInitialized&&(this._scrollButtons?(this._adapter.initializeContainerSizeObserver(this._resizeListener),this._adapter.initializeScrollObserver(this._scrollListener),this._detectScrollableStatus(),this._updateScrollState(),this._tryScrollActiveTabIntoView()):(this._adapter.destroyContainerSizeObserver(),this._adapter.destroyScrollObserver(this._scrollListener),this._adapter.setScrollButtons(this._scrollButtons),this._scrollButtonsVisible=!1)),this._adapter.setHostAttribute(N1.attributes.SCROLL_BUTTONS,String(this._scrollButtons)))}};var jb='<template><div class="forge-tab-bar" part="container"><div class="scroll-container" part="scroll-container"><slot></slot></div></div></template>',Qb=":host{position:relative;display:block}:host([hidden]){display:none}.forge-tab-bar{--_tab-bar-justify:var(--forge-tab-bar-justify, space-between);--_tab-bar-stretch:var(--forge-tab-bar-stretch, 1);--_tab-bar-divider-color:var(--forge-tab-bar-divider-color, var(--forge-theme-outline, #e0e0e0));--_tab-bar-divider-thickness:var(--forge-tab-bar-divider-thickness, 1px)}.forge-tab-bar{position:relative;display:grid;grid-template-columns:auto 1fr auto;max-width:100%;max-height:100%;align-items:center;border-bottom:var(--_tab-bar-divider-thickness) solid var(--_tab-bar-divider-color)}.scroll-container{position:relative;display:flex;justify-content:var(--_tab-bar-justify);align-items:flex-end;box-sizing:border-box;overflow:auto;scroll-behavior:smooth;scrollbar-width:none;grid-column:2}.scroll-container::-webkit-scrollbar{display:none}::slotted(*){flex:var(--_tab-bar-stretch);align-self:stretch}::slotted([selected]){z-index:1}forge-icon-button{--forge-icon-button-shape-squared:0px}:host([vertical]) .forge-tab-bar{grid-template-columns:none;grid-template-rows:auto 1fr auto;align-items:initial;border-bottom:none;border-right:var(--_tab-bar-divider-thickness) solid var(--_tab-bar-divider-color);height:100%}:host([vertical]) .scroll-container{display:inline-flex;flex-direction:column;align-items:stretch;gap:0;grid-column:auto;grid-row:2}:host([vertical]) .scroll-button{justify-self:center}:host([inverted]:not([vertical])) .forge-tab-bar{border-bottom:none;border-top:variale(divider-thickness) solid var(--_tab-bar-divider-color)}:host([inverted][vertical]) .forge-tab-bar{border-bottom:none;border-top:var(--_tab-bar-divider-thickness) solid var(--_tab-bar-divider-color)}:host([clustered]) .forge-tab-bar{--_tab-bar-justify:var(--forge-tab-bar-justify, flex-start);--_tab-bar-stretch:var(--forge-tab-bar-stretch, 0)}:host([clustered=start]) .forge-tab-bar{--_tab-bar-justify:var(--forge-tab-bar-justify, flex-start)}:host([clustered=center]) .forge-tab-bar{--_tab-bar-justify:var(--forge-tab-bar-justify, center)}:host([clustered=end]) .forge-tab-bar{--_tab-bar-justify:var(--forge-tab-bar-justify, flex-end)}:host([theme=app-bar]){--forge-tab-active-color:var(--_app-bar-theme-foreground);--forge-tab-inactive-color:var(--_app-bar-theme-foreground-muted)}:host([theme=app-bar]) forge-icon-button{--forge-icon-button-icon-color:var(--_app-bar-theme-foreground)}",Ct=class extends V1(L1(M)){static get observedAttributes(){return Object.values(N1.observedAttributes)}constructor(){super(),X.define([v0,ze,Qa,h0]),z(this,jb,Qb),this._core=new N4(new P4(this))}connectedCallback(){this[N]({role:"tablist"},{setAttribute:!0}),this._core.initialize()}disconnectedCallback(){this._core.destroy()}attributeChangedCallback(t,e,o){switch(t){case N1.observedAttributes.DISABLED:this.disabled=p(o);break;case N1.observedAttributes.ACTIVE_TAB:this.activeTab=o?K(o):void 0;break;case N1.observedAttributes.VERTICAL:this.vertical=p(o);break;case N1.observedAttributes.CLUSTERED:this.clustered=p(o);break;case N1.observedAttributes.STACKED:this.stacked=p(o);break;case N1.observedAttributes.SECONDARY:this.secondary=p(o);break;case N1.observedAttributes.INVERTED:this.inverted=p(o);break;case N1.observedAttributes.AUTO_ACTIVATE:this.autoActivate=p(o);break;case N1.observedAttributes.SCROLL_BUTTONS:this.scrollButtons=p(o);break}}};i([c()],Ct.prototype,"disabled",2),i([c()],Ct.prototype,"activeTab",2),i([c()],Ct.prototype,"vertical",2),i([c()],Ct.prototype,"clustered",2),i([c()],Ct.prototype,"stacked",2),i([c()],Ct.prototype,"secondary",2),i([c()],Ct.prototype,"inverted",2),i([c()],Ct.prototype,"autoActivate",2),i([c()],Ct.prototype,"scrollButtons",2),Ct=i([y({name:N1.elementName,dependencies:[Rt,i1,j]})],Ct);function mm(){f(Ct)}var Dn=`${b}time-picker`,dm={TOGGLE:"forge-time-picker-toggle",VALUE:"value",OPEN:"open",ALLOW_SECONDS:"allow-seconds",MASKED:"masked",SHOW_MASK_FORMAT:"show-mask-format",USE_24_HOUR_TIME:"use-24-hour-time",ALLOW_INVALID_TIME:"allow-invalid-time",MIN:"min",MAX:"max",START_TIME:"start-time",STEP:"step",ALLOW_INPUT:"allow-input",SHOW_NOW:"show-now",SHOW_HOUR_OPTIONS:"show-hour-options",DISABLED:"disabled",POPUP_CLASSES:"popup-classes",ALLOW_DROPDOWN:"allow-dropdown"},Jb={INPUT:"input, input[forge-time-picker-input]",TOGGLE:`[${dm.TOGGLE}]`},ty={OPEN:`${Dn}-open`,CLOSE:`${Dn}-close`,INPUT:`${Dn}-input`,CHANGE:`${Dn}-change`},ey={DEFAULT_MINUTE_STEP:60,MAX_DAY_MILLIS:864e5,MAX_DAY_MINUTES:1440},W={elementName:Dn,attributes:dm,selectors:Jb,events:ty,numbers:ey};var R4=class extends I{constructor(t){super(t)}get inputElement(){return this._inputElement}initialize(){this._inputElement=this._component.querySelector(W.selectors.INPUT)}initializeMask(t){this.destroyMask(),this._inputElement&&(this._inputMask=new ys(this._inputElement,t))}destroy(){this._targetElement=void 0,this._toggleElement=void 0,this._inputElement=void 0}destroyMask(){var t;(t=this._inputMask)==null||t.destroy(),this._inputMask=void 0}initializeAccessibility(t){var e,o,a,s,r,l,h,v,m;(e=this._inputElement)==null||e.setAttribute("autocomplete","off"),(o=this._inputElement)==null||o.setAttribute("autocorrect","off"),(a=this._inputElement)==null||a.setAttribute("autocapitalize","off"),(s=this._inputElement)==null||s.setAttribute("spellcheck","false"),(r=this._inputElement)==null||r.setAttribute("role","combobox"),(l=this._inputElement)==null||l.setAttribute("aria-live","assertive"),(h=this._inputElement)==null||h.setAttribute("aria-atomic","true"),(v=this._inputElement)==null||v.setAttribute("aria-haspopup","true"),(m=this._inputElement)==null||m.setAttribute("aria-expanded","false"),Ge(),this._inputElement&&Yt(this._inputElement)}addInputListener(t,e,o){var a;(a=this._inputElement)==null||a.addEventListener(t,e,{capture:o})}removeInputListener(t,e,o){var a;(a=this._inputElement)==null||a.removeEventListener(t,e,{capture:o})}addToggleListener(t,e){this._toggleElement&&this._toggleElement.addEventListener(t,e)}removeToggleListener(t,e){this._toggleElement&&this._toggleElement.removeEventListener(t,e)}hasInputElement(){return!!this._inputElement}tryCreateToggle(){let t=this._component.querySelector(E1.elementName),e=this._component.querySelector(W.selectors.TOGGLE);if(t){let o=t.querySelector(`${t1.elementName}[slot=trailing]`);if(o||e){this._toggleElement=o||e;return}let a=document.createElement(t1.elementName);a.slot="trailing",a.density="medium",a.type="button",a.tabIndex=-1,a.setAttribute("aria-label","Toggle time dropdown");let s=document.createElement(p1.elementName);s.name="clock_outline",a.appendChild(s),t.appendChild(a),this._toggleElement=a}else e&&(this._toggleElement=e)}tryFocusInput(){var t;(t=this._inputElement)==null||t.select()}tryBlurInput(){var t;(t=this._inputElement)==null||t.blur()}selectInputText(){var t;(t=this._inputElement)==null||t.select()}isInputDisabled(){var t,e;return(e=(t=this._inputElement)==null?void 0:t.disabled)!=null?e:!1}isInputFocused(){return Ue(this._component.ownerDocument)===this._inputElement}setInputValue(t,e){var o;((o=this._inputElement)==null?void 0:o.value)!==t&&(this._inputElement&&(this._inputElement.value=t),this._inputMask&&this._inputMask.update(),e&&(this._emitInputEvent("change"),this._emitInputEvent("input")))}getInputValue(){var t,e;return this._inputMask?this._inputMask.maskedValue:(e=(t=this._inputElement)==null?void 0:t.value)!=null?e:""}setDisabled(t){this._inputElement&&(this._inputElement.disabled=t,this._inputElement.setAttribute("aria-disabled",t.toString())),this.setToggleDisabled(t)}attachDropdown(t){var e;this._targetElement||(this._targetElement=this._getTargetElement(this._component.popupTarget)),this._listDropdown=new qe(this._targetElement,t),this._listDropdown.open(),(e=this._inputElement)==null||e.setAttribute("aria-controls",`list-dropdown-popup-${t.id}`)}async detachDropdown({destroy:t=!1}={}){this._listDropdown&&(t?this._listDropdown.destroy():await this._listDropdown.close(),this._listDropdown=void 0),this._inputElement&&Yt(this._inputElement)}propagateKey(t){var e;(e=this._listDropdown)==null||e.handleKey(t)}setActiveDescendant(t){this._inputElement&&G(this._inputElement,!!t,"aria-activedescendant",t)}getTargetElementWidth(t){return this._getTargetElement(t).getBoundingClientRect().width}_emitInputEvent(t){var e;(e=this._inputElement)==null||e.dispatchEvent(new Event(t))}emitInputEvent(t,e){this._inputElement&&i0(this._inputElement,t,e)}setInputReadonly(t){this._inputElement&&(this._inputElement.readOnly=t)}setToggleDisabled(t){if(this._toggleElement)if(this._toggleElement.setAttribute("aria-disabled",t.toString()),"disabled"in this._toggleElement)this._toggleElement.disabled=t;else{let e=this._toggleElement.querySelector("button");e&&(e.disabled=t)}}hasActiveOption(){var t,e;return((e=(t=this._listDropdown)==null?void 0:t.getActiveOptionIndex())!=null?e:-1)>=0}activateOptionByIndex(t){var e;(e=this._listDropdown)==null||e.activateOption(t)}activateFirstOption(){var t;(t=this._listDropdown)==null||t.activateFirstOption()}getActiveOption(){var t;return(t=this._listDropdown)==null?void 0:t.getActiveOption()}_getTargetElement(t){return this._targetElement?this._targetElement:(this._targetElement=t?this._component.querySelector(t)||this._getDefaultTargetElement():this._getDefaultTargetElement(),this._targetElement)}_getDefaultTargetElement(){var e;let t=this._component.querySelector(E1.elementName);return(e=t==null?void 0:t.popoverTargetElement)!=null?e:this._component}};function F4(n,t,e){if(!n||/^\s*$/.test(n))return null;let o=0,a=0,s=0;if(Jo.test(n)){let r=Yl(n);o=+r.hours||0,a=+r.minutes||0,s=+r.seconds||0}else if(ps.test(n)){let r=Kl(n);o=+r.hours||0,a=+r.minutes||0,s=+r.seconds||0,o===12&&r.meridiem==="AM"&&(o=0),o<12&&r.meridiem==="PM"&&(o+=12)}else return null;return um(o)+Wa(a)+(e?y3(s):0)}function lt(n,t,e){if(typeof n!="number"||n<0)return null;let o=Math.min(gm(n),23),a=Math.min(wm(n),59),r=n/(1e3*60)<720?"AM":"PM";t||(o=o<=12?o:o-12,o===0&&(o=12));let l=`${String(o).padStart(2,"0")}:${String(a).padStart(2,"0")}`;if(e){let h=Math.min(b3(n),59);l+=`:${String(h).padStart(2,"0")}`}return t||(l+=` ${r}`),l}function gm(n){return Math.abs(Math.floor(n/(1e3*60*60)))}function wm(n){return Math.abs(Math.floor(U4(n)%60))}function U4(n){return n/(1e3*60)}function b3(n){return Math.abs(Math.floor(oy(n)%60))}function oy(n){return n/1e3}function um(n){return n*60*60*1e3}function Wa(n){return n*60*1e3}function y3(n){return n*1e3}function _m(n){return n-y3(b3(n))}function M3(n){let t=new Date,e=t.getHours(),o=t.getMinutes();return um(e)+Wa(o)+(n?y3(t.getSeconds()):0)}function cC1(n,t,e=!1){n||(n=new Date);let o=F4(t,!0,e);if(!o)return n.setHours(0,0,0),n;let a=gm(o),s=828e5;a>s?a=s:a<0&&(a=0);let r=wm(o),l=e?b3(o):0;return n.setHours(a,r,l),n}var W4=class{constructor(t){this._adapter=t;this._value=null;this._masked=!0;this._use24HourTime=!1;this._showMaskFormat=!1;this._min=null;this._max=null;this._restrictedTimes=[];this._startTime=null;this._step=W.numbers.DEFAULT_MINUTE_STEP;this._allowInput=!0;this._open=!1;this._allowSeconds=!1;this._allowInvalidTime=!1;this._showNow=!1;this._showHourOptions=!0;this._customOptions=[];this._disabled=!1;this._popupClasses=[];this._allowDropdown=!0;this._isInitialized=!1;this._identifier=V2(),this._inputListener=e=>this._onInput(e),this._inputKeydownListener=e=>this._onInputKeydown(e),this._toggleMousedownListener=e=>this._onToggleMousedown(e),this._inputFocusListener=e=>this._onInputFocus(e),this._inputBlurListener=e=>this._onInputBlur(e),this._inputMousedownListener=e=>this._onInputMousedown(e)}initialize(){if(this._adapter.initialize(),!this._adapter.hasInputElement())throw new Error("Unable to locate <input> element to attach to.");if(this._adapter.initializeAccessibility(this._identifier),!this._value){let t=this._adapter.getInputValue();this._setValue(this._convertTimeStringToMillis(t,this._use24HourTime,this._allowSeconds))}this._adapter.addInputListener("focus",this._inputFocusListener),this._adapter.addInputListener("blur",this._inputBlurListener),this._adapter.addInputListener("keydown",this._inputKeydownListener,!0),this._formatInputValue(!1),typeof this._value=="number"&&this._applyValue(this._value,!1),this._applyAllowInput(),this._applyAllowDropdown(),this._applyDisabled(),this._applyMask(),this._isInitialized=!0}destroy(){this._isInitialized=!1,this._adapter.removeInputListener("input",this._inputListener),this._adapter.removeInputListener("focus",this._inputFocusListener),this._adapter.removeInputListener("blur",this._inputBlurListener),this._adapter.removeToggleListener("mousedown",this._toggleMousedownListener),this._adapter.removeInputListener("keydown",this._inputKeydownListener,!0),this._masked&&this._adapter.destroyMask(),this._closeDropdown({destroy:!0}),this._adapter.destroy()}_onInput(t){this._handleInput(this._adapter.getInputValue())}_onInputKeydown(t){var e,o;if(t.shiftKey)switch(t.code){case"Backspace":case"Delete":{t.preventDefault(),this._trySetValue(null)&&this._formatInputValue();return}}switch(t.code){case"Tab":this._open&&this._selectActiveOption();break;case"Esc":case"Escape":this._open&&(t.preventDefault(),t.stopPropagation(),this._closeDropdown({emitCloseEvent:!0}));break;case"Down":case"ArrowDown":this._allowDropdown&&(t.preventDefault(),this._open?this._adapter.hasActiveOption()?this._adapter.propagateKey(t.code):this._trySetActiveOption():(this._openDropdown(),typeof((e=this._dropdownConfig)==null?void 0:e.visibleStartIndex)=="number"&&this._dropdownConfig.visibleStartIndex>=0?this._adapter.activateOptionByIndex((o=this._dropdownConfig)==null?void 0:o.visibleStartIndex):this._adapter.activateFirstOption()));break;case"ArrowUp":this._allowDropdown&&(t.preventDefault(),this._open&&(this._adapter.hasActiveOption()?this._adapter.propagateKey(t.code):this._trySetActiveOption()));break;case"Enter":case"NumpadEnter":case"Home":case"End":this._open&&((t.code==="Enter"||t.code==="NumpadEnter")&&t.stopPropagation(),t.preventDefault(),this._adapter.propagateKey(t.code));break;case"KeyN":{t.preventDefault();let a=M3(this._allowSeconds);if(this._value!==a){let s=lt(a,!0,this._allowSeconds);this._emitChangeEvent(s)&&(this._applyValue(a),this._selectInputText())}break}}}_trySetActiveOption(){var t,e;!this._adapter.hasActiveOption()&&typeof((t=this._dropdownConfig)==null?void 0:t.visibleStartIndex)=="number"&&this._dropdownConfig.visibleStartIndex>=0&&this._adapter.activateOptionByIndex((e=this._dropdownConfig)==null?void 0:e.visibleStartIndex)}_selectActiveOption(){let t=this._adapter.getActiveOption();t&&this._onSelect(t.value)}_onToggleMousedown(t){this._disabled||!this.allowDropdown||(t.stopPropagation(),!this._adapter.isInputDisabled()&&(t.preventDefault(),this._open?this._closeDropdown({emitCloseEvent:!0}):(Q2.isMobile?this._adapter.tryBlurInput():this._adapter.tryFocusInput(),this._openDropdown())))}_onInputFocus(t){this.masked&&this._showMaskFormat&&this._applyMask(),this._allowInput&&this._adapter.selectInputText()}_onInputBlur(t){this.masked&&this._showMaskFormat&&this._applyMask(),this._formatInputValue(),this._open&&!this._adapter.isInputFocused()&&this._closeDropdown({emitCloseEvent:!0})}_onInputMousedown(t){!this._allowInput&&!this._open&&(this._openDropdown(),this._adapter.tryFocusInput(),window.requestAnimationFrame(()=>this._adapter.selectInputText()))}_applyDisabled(){this._adapter.setDisabled(this._disabled)}_applyMask(){if(this._masked&&this._allowInput){this._adapter.destroyMask();let t={showMaskFormat:this._showMaskFormat&&this._adapter.isInputFocused(),use24HourTime:this._use24HourTime,showSeconds:this._allowSeconds,prepareCallback:this._prepareMaskCallback,onChange:Ne(e=>this._handleInput(e),0,!0)};this._adapter.initializeMask(t)}else this._adapter.destroyMask(),this._formatInputValue()}_applyAllowInput(){this._adapter.setInputReadonly(!this._allowInput),this._allowInput?(this._adapter.removeInputListener("mousedown",this._inputMousedownListener),this._masked||this._adapter.addInputListener("input",this._inputListener)):(this._adapter.addInputListener("mousedown",this._inputMousedownListener),this._adapter.removeInputListener("input",this._inputListener))}_applyAllowDropdown(){this._adapter.setToggleDisabled(!this._allowDropdown),this._allowDropdown?(this._adapter.removeToggleListener("mousedown",this._toggleMousedownListener),this._adapter.tryCreateToggle(),this._adapter.addToggleListener("mousedown",this._toggleMousedownListener)):this._open&&this._closeDropdown({emitCloseEvent:!0})}_applyAllowSeconds(){let t=this._value;if(this._allowSeconds){if(this._isInitialized&&t!==this._value){let e=lt(this._value,!0,!0);this._emitChangeEvent(e)}}else{if(typeof this._value!="number")return;if(this._setValue(_m(this._value)),this._isInitialized&&t!==this._value){let e=lt(this._value,!0,!1);this._emitChangeEvent(e)}}}_handleInput(t){let e=t;if(!this._allowInput)return;this._open&&this._closeDropdown({emitCloseEvent:!0}),t=Xl(t,this._use24HourTime,this._allowSeconds),typeof this._coercionCallback=="function"&&(t=this._coercionCallback.call(null,e,t,this._allowSeconds)),this._isValidTimeFormat(t)||(t="");let o;!this._masked&&typeof this._parseCallback=="function"?o=this._parseCallback.call(null,t):o=this._convertTimeStringToMillis(t,this._use24HourTime,this._allowSeconds),o=this._validateMillis(o),this._trySetValue(o)}_emitChangeEvent(t,e=!1){return this._adapter.emitHostEvent(W.events.CHANGE,t,!0,!e)}_trySetValue(t){if(t===this._value)return!1;let e=lt(t,!0,this._allowSeconds);return this._adapter.emitInputEvent(W.events.INPUT,e),this._value!==t&&this._emitChangeEvent(e)?(this._setValue(t),!0):!1}_setValue(t){this._value=this._normalizeTimeValue(t)}_validateMillis(t){return typeof t=="number"&&(typeof this._min=="number"||typeof this._max=="number")&&(this._isTimeInRange(t,this._min,this._max)||(t=null)),typeof t=="number"&&this._restrictedTimes.length&&this._restrictedTimes.includes(t)&&(t=null),t}_isTimeInRange(t,e,o){return typeof e!="number"&&typeof o!="number"?!0:typeof e=="number"&&typeof o!="number"?t>=e:typeof o=="number"&&typeof e!="number"?t<=o:typeof e=="number"&&typeof o=="number"?e<=o?t>=e&&t<=o:t>=e||t<=o:!0}_isValidTimeFormat(t){return!this._masked&&typeof this._validationCallback=="function"?this._validationCallback.call(this,t):$l(t)}_isValidInputValue(t){return Jo.test(t)}_onSelect(t){if(this._closeDropdown({emitCloseEvent:!0}),!t.isCustom&&t.metadata==="now"&&(t.time=M3(this._allowSeconds)),t.isCustom)if(typeof t.customCallback=="function"){let a=t.customCallback.call(null,t.metadata);if(typeof a!="number")throw new Error("Custom options must provide a time of day value in milliseconds.");t.time=a}else throw new Error("You must implement a `toMilliseconds` callback that returns the time value to use for this custom option.");if(this._value===t.time)return;let e=lt(t.time,!0,this._allowSeconds);this._emitChangeEvent(e)&&(this._applyValue(t.time),this._selectInputText())}_selectInputText(){window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>{this._adapter.isInputFocused()&&this._adapter.selectInputText()})})}_applyValue(t,e=!0){this._setValue(t);let o=this._formatValue(this._value);this._adapter.getInputValue()!==o&&this._adapter.setInputValue(o,e)}_normalizeTimeValue(t){return t==null?null:t<0?0:t>W.numbers.MAX_DAY_MILLIS?W.numbers.MAX_DAY_MILLIS:t}_openDropdown(){let t=this._generateTimeOptions();if(!this.allowDropdown||!t.length||!this._adapter.inputElement)return;this._formatInputValue(),this._open=!0,this._adapter.setHostAttribute(W.attributes.OPEN);let e=t.filter(s=>!s.divider&&!s.disabled),o=[],a=0;if(t.length)if(this._value!=null){let s=this._findClosestOptionIndex(this._value,e);s>=0&&(e[s].value.time===this._value?o=[e[s].value]:a=s)}else if(typeof this._startTime=="number"){let s=this._findClosestOptionIndex(this._startTime,e);s>=0&&s<e.length&&(a=s)}else this._startTime==null&&(a=this._getOptionIndexClosestCurrent(e));this._dropdownConfig={id:`forge-time-picker-${this._identifier}`,referenceElement:this._adapter.inputElement,selectedValues:o,syncWidth:!0,visibleStartIndex:a,popupClasses:this._popupClasses,popupStatic:!0,type:"standard",options:t,selectCallback:s=>this._onSelect(s),closeCallback:()=>this._closeDropdown({emitCloseEvent:!0}),activeChangeCallback:s=>this._adapter.setActiveDescendant(s),targetWidthCallback:()=>this._adapter.getTargetElementWidth(this._popupTarget)},this._adapter.attachDropdown(this._dropdownConfig),this._adapter.emitHostEvent(W.events.OPEN,void 0,!1)}_closeDropdown({destroy:t=!1,emitCloseEvent:e=!1}={}){this._open=!1,this._dropdownConfig=void 0,this._adapter.removeHostAttribute(W.attributes.OPEN),this._adapter.detachDropdown({destroy:t}),e&&this._adapter.emitHostEvent(W.events.CLOSE,!0,!1)}_getOptionIndexClosestCurrent(t){let e=new Date,o=`${String(e.getHours()).padStart(2,"0")}:${String(e.getMinutes()).padStart(2,"0")}`,a=F4(o,!0,!1);return this._findClosestOptionIndex(a,t)}_findClosestOptionIndex(t,e){let o=e.reduce((a,s)=>Math.abs((s.value.time||0)-t)<Math.abs((a.value.time||0)-t)?s:a);return e.indexOf(o)}_formatInputValue(t=!0){let e=this._adapter.getInputValue();if(this._allowInvalidTime&&!this._masked&&e&&!this._value)return;let o=this._formatValue(this._value);e!==o&&(this._adapter.setInputValue(o,t),this._adapter.emitInputEvent(W.events.INPUT,o))}_generateTimeOptions(){let t=this._min!=null?Math.max(U4(this._min),0):0,e=this._max!=null?Math.min(U4(this._max),W.numbers.MAX_DAY_MINUTES):W.numbers.MAX_DAY_MINUTES,o=this._step,a=[],s=[];if(this._showHourOptions){let r=this._min!=null&&this._max!=null&&this._min>this._max;if(r){for(let l=t;l<W.numbers.MAX_DAY_MINUTES;l+=o){let h=Wa(l),v=this._restrictedTimes.includes(h),m=lt(h,this._use24HourTime,!1)||"",u={time:h};a.push({label:m,value:u,disabled:v})}for(let l=0;l<=e;l+=o){let h=Wa(l),v=this._restrictedTimes.includes(h),m=lt(h,this._use24HourTime,!1)||"",u={time:h};a.push({label:m,value:u,disabled:v})}}else{let l=this._min!=null?t:0,h=this._max!=null?e:W.numbers.MAX_DAY_MINUTES;for(let v=l;v<=h&&v!==W.numbers.MAX_DAY_MINUTES;v+=o){let m=Wa(v),u=this._restrictedTimes.includes(m),H=lt(m,this._use24HourTime,!1)||"",x={time:m};a.push({label:H,value:x,disabled:u})}}if(!r){let l=a.findIndex(h=>h.value.time/1e3/60>=720);l>=0&&l<a.length-1&&a.splice(l,0,{label:"",value:null,divider:!0})}}if(this._showNow){let r={time:null,metadata:"now"};s.push({label:"Now",value:r})}if(Array.isArray(this._customOptions)&&this._customOptions.length){let r=this._customOptions.map(l=>{let h={time:null,metadata:l.value,isCustom:!0,customCallback:l.toMilliseconds};return{label:l.label,value:h}});s=[...s,...r]}return s.length&&(a.length&&a.splice(0,0,{label:"",value:null,divider:!0}),s.forEach((r,l)=>a.splice(l,0,r))),a}_convertTimeStringToMillis(t,e,o){return(!t||!this._isValidTimeFormat(t))&&(t=""),F4(t,e,o)}_formatValue(t){return!this._masked&&typeof this._formatCallback=="function"?this._formatCallback.call(null,t,this._use24HourTime,this._allowSeconds):lt(this._value,this._use24HourTime,this._allowSeconds)||""}_warnInvalidFormat(t){console.warn(`The specified value "${t}" does not conform to the required format. The format is "HH:mm", "HH:mm:ss" where HH is 00-23, mm is 00-59, and ss is 00-59.`)}get open(){return this._open}set open(t){this._open!==t&&this._isInitialized&&(this._open=t,this._open?this._openDropdown():this._closeDropdown())}get masked(){return this._masked}set masked(t){this._masked!==t&&(this._masked=t,this._isInitialized&&(this._masked?(this._adapter.removeInputListener("input",this._inputListener),this._applyMask()):(this._adapter.destroyMask(),this._formatInputValue(),this._adapter.addInputListener("input",this._inputListener))))}get showMaskFormat(){return this._showMaskFormat}set showMaskFormat(t){this._showMaskFormat!==t&&(this._showMaskFormat=t)}get allowSeconds(){return this._allowSeconds}set allowSeconds(t){this._allowSeconds!==t&&(this._allowSeconds=!!t,this._applyAllowSeconds(),this._isInitialized&&(this._applyMask(),this._formatInputValue()),this._adapter.setHostAttribute(W.attributes.ALLOW_SECONDS,`${!!t}`))}get use24HourTime(){return this._use24HourTime}set use24HourTime(t){this._use24HourTime!==t&&(this._use24HourTime=!!t,this._isInitialized&&(this._applyMask(),this._formatInputValue()),this._adapter.setHostAttribute(W.attributes.USE_24_HOUR_TIME,`${!!t}`))}get allowInvalidTime(){return this._allowInvalidTime}set allowInvalidTime(t){this._allowInvalidTime!==t&&(this._allowInvalidTime=!!t,this._adapter.setHostAttribute(W.attributes.ALLOW_INVALID_TIME,`${!!t}`))}get value(){return lt(this._value,!0,this._allowSeconds)}set value(t){if(t&&!this._isValidInputValue(t)){this._warnInvalidFormat(t);return}let e=this._validateMillis(this._convertTimeStringToMillis(t,!0,!0));this._setValue(e),this._isInitialized&&this._applyValue(this._value)}get min(){return lt(this._min,!0,this._allowSeconds)}set min(t){if(this._min!==t){if(t&&!this._isValidInputValue(t)){this._warnInvalidFormat(t);return}this._min=this._convertTimeStringToMillis(t,!0,this._allowSeconds);let e=this._value,o=this._validateMillis(this._value);if(this._setValue(o),this._isInitialized&&(this._applyValue(o),e!==o)){let a=lt(o,!0,this._allowSeconds);this._emitChangeEvent(a)}}}get max(){return lt(this._max,!0,this._allowSeconds)}set max(t){if(this._max!==t){if(t&&!this._isValidInputValue(t)){this._warnInvalidFormat(t);return}this._max=this._convertTimeStringToMillis(t,!0,this._allowSeconds);let e=this._value,o=this._validateMillis(this._value);if(this._setValue(o),this._isInitialized&&(this._applyValue(o),e!==o)){let a=lt(o,!0,this._allowSeconds);this._emitChangeEvent(a)}}}get restrictedTimes(){return this._restrictedTimes.map(t=>lt(t,!0,this._allowSeconds)).filter(t=>typeof t=="string")}set restrictedTimes(t){Array.isArray(t)||(t=[]),this._restrictedTimes=t.filter(e=>typeof e=="string").map(e=>this._convertTimeStringToMillis(e,!0,!0)).filter(e=>typeof e=="number")}get startTime(){return lt(this._startTime,!0,this._allowSeconds)}set startTime(t){if(this._startTime!==t){if(t&&!this._isValidInputValue(t)){this._warnInvalidFormat(t);return}this._startTime=this._convertTimeStringToMillis(t,!0,this._allowSeconds)}}get step(){return this._step}set step(t){this._step=t}get allowInput(){return this._allowInput}set allowInput(t){this._allowInput!==t&&(this._allowInput=t,this._isInitialized&&(this._applyAllowInput(),this._applyMask()))}get popupTarget(){return this._popupTarget}set popupTarget(t){this._popupTarget!==t&&(this._popupTarget=t)}get showNow(){return this._showNow}set showNow(t){this._showNow!==t&&(this._showNow=t)}get showHourOptions(){return this._showHourOptions}set showHourOptions(t){this._showHourOptions!==t&&(this._showHourOptions=t)}get customOptions(){return this._customOptions}set customOptions(t){this._customOptions=Array.isArray(t)?t:[]}set validationCallback(t){this._validationCallback=t,this._isInitialized&&this._applyMask()}set parseCallback(t){this._parseCallback=t}set formatCallback(t){this._formatCallback=t}set coercionCallback(t){this._coercionCallback=t}set prepareMaskCallback(t){this._prepareMaskCallback=t,this._isInitialized&&this._applyMask()}get disabled(){return this._disabled}set disabled(t){this._disabled!==t&&(this._disabled=!!t,this._isInitialized&&this._applyDisabled(),this._adapter.toggleHostAttribute(W.attributes.DISABLED,this._disabled))}get popupClasses(){return Array.isArray(this._popupClasses)?[...this._popupClasses]:this._popupClasses}set popupClasses(t){Array.isArray(t)?this._popupClasses=[...t]:this._popupClasses=[t]}get allowDropdown(){return this._allowDropdown}set allowDropdown(t){this._allowDropdown!==t&&(this._allowDropdown=t,this._isInitialized&&this._applyAllowDropdown())}};var ay="<template><slot></slot></template>",ny=":host{display:block}:host([hidden]){display:none}",W1=class extends M{static get observedAttributes(){return[W.attributes.VALUE,W.attributes.OPEN,W.attributes.ALLOW_SECONDS,W.attributes.MASKED,W.attributes.SHOW_MASK_FORMAT,W.attributes.USE_24_HOUR_TIME,W.attributes.ALLOW_INVALID_TIME,W.attributes.MIN,W.attributes.MAX,W.attributes.START_TIME,W.attributes.STEP,W.attributes.ALLOW_INPUT,W.attributes.SHOW_NOW,W.attributes.SHOW_HOUR_OPTIONS,W.attributes.DISABLED,W.attributes.POPUP_CLASSES,W.attributes.ALLOW_DROPDOWN]}constructor(){super(),X.define([ml,jo]),z(this,ay,ny),this._core=new W4(new R4(this))}connectedCallback(){this.querySelector(W.selectors.INPUT)?this._core.initialize():C0(this,W.selectors.INPUT).then(()=>this._core.initialize())}disconnectedCallback(){this._core.destroy()}attributeChangedCallback(t,e,o){switch(t){case W.attributes.VALUE:this.value=o;break;case W.attributes.OPEN:this.open=p(o);break;case W.attributes.ALLOW_SECONDS:this.allowSeconds=p(o);break;case W.attributes.MASKED:this.masked=p(o);break;case W.attributes.SHOW_MASK_FORMAT:this.showMaskFormat=p(o);break;case W.attributes.USE_24_HOUR_TIME:this.use24HourTime=p(o);break;case W.attributes.ALLOW_INVALID_TIME:this.allowInvalidTime=p(o);break;case W.attributes.SHOW_NOW:this.showNow=p(o);break;case W.attributes.SHOW_HOUR_OPTIONS:this.showHourOptions=p(o);break;case W.attributes.MIN:this.min=o;break;case W.attributes.MAX:this.max=o;break;case W.attributes.START_TIME:this.startTime=o;break;case W.attributes.STEP:this.step=K(o);break;case W.attributes.ALLOW_INPUT:this.allowInput=p(o);break;case W.attributes.DISABLED:this.disabled=p(o);break;case W.attributes.POPUP_CLASSES:this.popupClasses=o;break;case W.attributes.ALLOW_DROPDOWN:this.allowDropdown=p(o);break}}};i([c()],W1.prototype,"value",2),i([c()],W1.prototype,"open",2),i([c()],W1.prototype,"allowSeconds",2),i([c()],W1.prototype,"masked",2),i([c()],W1.prototype,"showMaskFormat",2),i([c()],W1.prototype,"use24HourTime",2),i([c()],W1.prototype,"allowInvalidTime",2),i([c()],W1.prototype,"min",2),i([c()],W1.prototype,"max",2),i([c()],W1.prototype,"restrictedTimes",2),i([c()],W1.prototype,"startTime",2),i([c()],W1.prototype,"step",2),i([c()],W1.prototype,"allowInput",2),i([c()],W1.prototype,"showNow",2),i([c()],W1.prototype,"showHourOptions",2),i([c()],W1.prototype,"customOptions",2),i([c()],W1.prototype,"validationCallback",2),i([c()],W1.prototype,"parseCallback",2),i([c()],W1.prototype,"formatCallback",2),i([c()],W1.prototype,"coercionCallback",2),i([c()],W1.prototype,"prepareMaskCallback",2),i([c()],W1.prototype,"disabled",2),i([c()],W1.prototype,"popupClasses",2),i([c()],W1.prototype,"allowDropdown",2),i([c()],W1.prototype,"popupTarget",2),W1=i([y({name:W.elementName,dependencies:[v2,j1,i1,j,R1,j,B1]})],W1);var xm=class extends o2{constructor(t){super(t)}_build(){let t=document.createElement(W.elementName);return this._attachTextField(t),t}get inputElement(){return this._textFieldDelegate.inputElement}get textFieldElement(){return this._textFieldDelegate.element}get value(){return this._element.value}set value(t){this._element.value=t}get disabled(){return this._element.disabled}set disabled(t){this._element.disabled=t}get invalid(){return this._textFieldDelegate.invalid||!1}set invalid(t){this._textFieldDelegate.invalid=t}onChange(t){this._element.addEventListener(W.events.CHANGE,e=>{var o;return t((o=e.detail)!=null?o:"")})}onInput(t){this._element.addEventListener(W.events.INPUT,e=>{var o;return t((o=e.detail)!=null?o:"")})}onFocus(t){this._textFieldDelegate.inputElement.addEventListener("focus",e=>t(e))}onBlur(t){this._textFieldDelegate.inputElement.addEventListener("blur",e=>t(e))}_attachTextField(t){var o,a,s,r;let e={props:d({},(a=(o=this._config.options)==null?void 0:o.textFieldDelegateConfig)==null?void 0:a.props),options:d({},(r=(s=this._config.options)==null?void 0:s.textFieldDelegateConfig)==null?void 0:r.options)};this._textFieldDelegate=new ao(e),t.appendChild(this._textFieldDelegate.element)}};function fm(){f(W1)}var z3=`${b}toast`,bm={OPEN:"open",DURATION:"duration",PLACEMENT:"placement",ACTION_TEXT:"action-text",DISMISSIBLE:"dismissible",DISMISS_LABEL:"dismiss-label",THEME:"theme"},sy=d({},bm),ry={ACTION:`${z3}-action`,CLOSE:`${z3}-close`},iy={EXITING:"exiting"},ly={SURFACE:".surface",ACTION_BUTTON:".action-button",CLOSE_BUTTON:".close-button"},cy={PLACEMENT:"bottom",DURATION:2750,THEME:"default"},k1={elementName:z3,observedAttributes:bm,attributes:sy,classes:iy,selectors:ly,defaults:cy,events:ry};var G4=class extends I{constructor(t){super(t),this._overlayElement=w(t,B.elementName),this._surfaceElement=w(t,k1.selectors.SURFACE),this._actionButtonElement=w(t,k1.selectors.ACTION_BUTTON),this._closeButtonElement=w(t,k1.selectors.CLOSE_BUTTON)}show(){this._overlayElement.open=!0}async hide(){await Gt(this._surfaceElement,k1.classes.EXITING),this._overlayElement.open=!1}addCloseListener(t){this._closeButtonElement.addEventListener("click",t)}removeCloseListener(t){this._closeButtonElement.removeEventListener("click",t)}addActionListener(t){this._actionButtonElement.addEventListener("click",t)}removeActionListener(t){this._actionButtonElement.removeEventListener("click",t)}setDismissLabel(t){this._closeButtonElement.setAttribute("aria-label",t)}setActionText(t){this._actionButtonElement.textContent=t,t?this._actionButtonElement.removeAttribute("hidden"):this._actionButtonElement.setAttribute("hidden","")}};var q4=class{constructor(t){this._adapter=t;this._open=!1;this._duration=k1.defaults.DURATION;this._placement=k1.defaults.PLACEMENT;this._dismissible=!1;this._theme=k1.defaults.THEME;this._actionListener=this._onAction.bind(this);this._closeListener=this._onClose.bind(this)}initialize(){this._adapter.tryApplyGlobalConfiguration(["duration","placement","dismissible"]),this._open&&this.show()}show(){this._adapter.show(),isFinite(this._duration)&&this._duration>0&&(this._hideTimeout&&window.clearTimeout(this._hideTimeout),this._hideTimeout=window.setTimeout(()=>this.hide(),this._duration)),this._open=!0,this._adapter.toggleHostAttribute(k1.attributes.OPEN,this._open)}async hide({dispatchEvent:t=!0}={}){this._hideTimeout&&(window.clearTimeout(this._hideTimeout),this._hideTimeout=void 0),await this._adapter.hide(),this._open=!1,this._adapter.toggleHostAttribute(k1.attributes.OPEN,this._open),t&&this._adapter.dispatchHostEvent(new CustomEvent(k1.events.CLOSE,{bubbles:!0}))}_onAction(t){t.stopPropagation(),this._adapter.dispatchHostEvent(new CustomEvent(k1.events.ACTION,{bubbles:!0}))}_onClose(t){this.hide()}get open(){return this._open}set open(t){t=!!t,this._open!==t&&(this._adapter.isConnected?t?this.show():this.hide({dispatchEvent:!1}):this._open=t,this._adapter.toggleHostAttribute(k1.attributes.OPEN,this._open))}get duration(){return this._duration}set duration(t){this._duration!==t&&(this._duration=t,this._hideTimeout&&(window.clearTimeout(this._hideTimeout),isFinite(this._duration)&&this._duration>0&&(this._hideTimeout=window.setTimeout(()=>this.hide(),this._duration))))}get placement(){return this._placement}set placement(t){this._placement!==t&&(this._placement=t,this._adapter.setHostAttribute(k1.attributes.PLACEMENT,this._placement))}get actionText(){return this._actionText}set actionText(t){var e;t=(e=t==null?void 0:t.trim())!=null?e:"",this._actionText!==t&&(this._actionText=t,this._adapter.setActionText(this._actionText),this._actionText?this._adapter.addActionListener(this._actionListener):this._adapter.removeActionListener(this._actionListener),this._adapter.toggleHostAttribute(k1.attributes.ACTION_TEXT,!!this._actionText,this._actionText))}get dismissible(){return this._dismissible}set dismissible(t){t=!!t,this._dismissible!==t&&(this._dismissible=t,this._dismissible?this._adapter.addCloseListener(this._closeListener):this._adapter.removeCloseListener(this._closeListener),this._adapter.toggleHostAttribute(k1.attributes.DISMISSIBLE,this._dismissible))}get dismissLabel(){return this._dismissLabel}set dismissLabel(t){this._dismissLabel!==t&&(this._dismissLabel=t,this._adapter.setDismissLabel(this._dismissLabel))}get theme(){return this._theme}set theme(t){t!=null||(t=k1.defaults.THEME),this._theme!==t&&(this._theme=t,this._adapter.setHostAttribute(k1.attributes.THEME,this._theme))}};var hy='<template><forge-overlay exportparts="root:overlay" no-anchor persistent><div class="surface" part="surface"><slot name="icon"></slot><div class="message" part="message"><slot></slot></div><forge-button hidden part="action-button" class="action-button"></forge-button><forge-icon-button part="close-button" class="close-button" aria-label="Dismiss" density="medium"><forge-icon name="close"></forge-icon></forge-icon-button></div></forge-overlay></template>',vy='@keyframes slidein{from{transform:translateY(var(--_toast-slide-origin))}to{transform:translateY(0)}}@keyframes slideout{from{transform:translateY(0)}to{transform:translateY(var(--_toast-slide-origin))}}@keyframes fadein{from{opacity:0}to{opacity:1}}@keyframes fadeout{from{opacity:1}to{opacity:0}}@layer base,open,theme,placement,media; @layer base{:host{display:contents}:host([hidden]){display:none}.surface{--_toast-background:var(--forge-toast-background, var(--forge-theme-surface-inverse, #333333));--_toast-color:var(--forge-toast-color, var(--forge-theme-on-surface-inverse, #ffffff));--_toast-offset:var(--forge-toast-offset, var(--forge-spacing-medium, 16px));--_toast-shape:var(--forge-toast-shape, calc(var(--forge-shape-medium, 4px) * var(--forge-shape-factor, 1)));--_toast-elevation:var(--forge-toast-elevation, 0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12));--_toast-action-color:var(--forge-toast-action-color, var(--forge-theme-secondary, #ffc107));--_toast-min-width:var(--forge-toast-min-width, 344px);--_toast-max-width:var(--forge-toast-max-width, 672px);--_toast-min-height:var(--forge-toast-min-height, 48px);--_toast-inline-padding:var(--forge-toast-inline-padding, var(--forge-spacing-medium, 16px));--_toast-spacing:var(--forge-toast-spacing, var(--forge-spacing-xsmall, 8px));--_toast-message-padding:var(--forge-toast-message-padding, var(--forge-spacing-xsmall, 8px));--_toast-enter-duration:var(--forge-toast-enter-duration, var(--forge-animation-duration-medium1, 250ms));--_toast-enter-timing:var(--forge-toast-enter-timing, var(--forge-animation-easing-decelerate, cubic-bezier(0, 0, 0, 1)));--_toast-exit-duration:var(--forge-toast-exit-duration, var(--forge-animation-duration-short4, 200ms));--_toast-exit-timing:var(--forge-toast-exit-timing, var(--forge-animation-easing-emphasized-accelerate, cubic-bezier(0.3, 0, 0.8, 0.15)));--_toast-slide-origin:var(--forge-toast-slide-origin, 100%)}.surface{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-body2-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-body2-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-font-size-scale, 1)));font-weight:var(--forge-typography-body2-font-weight,400);line-height:var(--forge-typography-body2-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-line-height-scale, 1.375)));letter-spacing:var(--forge-typography-body2-letter-spacing, .015625em);text-transform:var(--forge-typography-body2-text-transform,inherit);text-decoration:var(--forge-typography-body2-text-decoration,inherit);position:fixed;display:flex;align-items:center;column-gap:var(--_toast-spacing);border-radius:var(--_toast-shape);padding-inline:var(--_toast-inline-padding);margin:var(--_toast-offset);min-width:var(--_toast-min-width);max-width:var(--_toast-max-width);min-height:var(--_toast-min-height);box-sizing:border-box;background:var(--_toast-background);color:var(--_toast-color);box-shadow:var(--_toast-elevation)}.message{flex-grow:1;padding-block:var(--_toast-message-padding);text-overflow:ellipsis;overflow:hidden}forge-button.action-button{--forge-button-primary-color:var(--_toast-action-color)}forge-icon-button.close-button{--forge-icon-button-focus-indicator-color:var(--_toast-color)}:host(:not([dismissible])) .close-button{display:none}.action-button:not([hidden]){margin-inline-end:-8px}:host([dismissible]) .close-button{margin-inline-end:-8px}}@layer theme{:host([theme=primary]) .surface{--_toast-background:var(--forge-toast-background, var(--forge-theme-primary, #3f51b5));--_toast-color:var(--forge-toast-color, var(--forge-theme-on-primary, #ffffff));--_toast-action-color:var(--_toast-color)}:host([theme=secondary]) .surface{--_toast-background:var(--forge-toast-background, var(--forge-theme-secondary, #ffc107));--_toast-color:var(--forge-toast-color, var(--forge-theme-on-secondary, #000000));--_toast-action-color:var(--_toast-color)}:host([theme=tertiary]) .surface{--_toast-background:var(--forge-toast-background, var(--forge-theme-tertiary, #3d5afe));--_toast-color:var(--forge-toast-color, var(--forge-theme-on-tertiary, #ffffff));--_toast-action-color:var(--_toast-color)}:host([theme=success]) .surface{--_toast-background:var(--forge-toast-background, var(--forge-theme-success, #2e7d32));--_toast-color:var(--forge-toast-color, var(--forge-theme-on-success, #ffffff));--_toast-action-color:var(--_toast-color)}:host([theme=warning]) .surface{--_toast-background:var(--forge-toast-background, var(--forge-theme-warning, #d14900));--_toast-color:var(--forge-toast-color, var(--forge-theme-on-warning, #ffffff));--_toast-action-color:var(--_toast-color)}:host([theme=error]) .surface{--_toast-background:var(--forge-toast-background, var(--forge-theme-error, #b00020));--_toast-color:var(--forge-toast-color, var(--forge-theme-on-error, #ffffff));--_toast-action-color:var(--_toast-color)}:host([theme=info]) .surface{--_toast-background:var(--forge-toast-background, var(--forge-theme-info, #1565c0));--_toast-color:var(--forge-toast-color, var(--forge-theme-on-info, #ffffff));--_toast-action-color:var(--_toast-color)}}@layer open{forge-overlay[open] .surface{animation-name:slidein;animation-duration:var(--_toast-enter-duration);animation-timing-function:var(--_toast-enter-timing)}forge-overlay[open] .surface.exiting{animation-name:slideout;animation-duration:var(--_toast-exit-duration);animation-timing-function:var(--_toast-exit-timing)}}@layer placement{:host([placement=bottom-start]) .surface{bottom:0;left:0}:host(:is(:not([placement]),[placement=bottom])) .surface{bottom:0;left:50%;translate:-50%}:host([placement=bottom-end]) .surface{bottom:0;right:0}:host([placement=top-start]) .surface{--_toast-slide-origin:var(--forge-toast-slide-origin, -100%);top:0;left:0}:host([placement=top]) .surface{--_toast-slide-origin:var(--forge-toast-slide-origin, -100%);top:0;left:50%;translate:-50%}:host([placement=top-end]) .surface{--_toast-slide-origin:var(--forge-toast-slide-origin, -100%);top:0;right:0}}@layer media{@media (prefers-reduced-motion:reduce){forge-overlay[open] .surface{animation-name:fadein}forge-overlay[open] .surface.exiting{animation-name:fadeout}}@media (max-width:599px){:host([placement^=top]) .surface{bottom:auto;top:0}.surface{bottom:0;left:0;right:0;margin:0;translate:none;max-width:none;min-width:auto;border-radius:0}}}',Jt=class extends L1(V1(M)){static get observedAttributes(){return Object.values(k1.observedAttributes)}constructor(){super(),X.define(jo),z(this,hy,vy),this._core=new q4(new G4(this))}connectedCallback(){this.hasAttribute("role")||this.getAttribute("aria-hidden")==="true"||this[N]({role:"alert",ariaLive:"assertive",ariaAtomic:"true"}),this._core.initialize()}attributeChangedCallback(t,e,o){switch(t){case k1.attributes.OPEN:this.open=p(o);break;case k1.attributes.DURATION:{let a=Number(o);this.duration=a&&a>0?a:k1.defaults.DURATION;break}case k1.attributes.PLACEMENT:this.placement=o||k1.defaults.PLACEMENT;break;case k1.attributes.ACTION_TEXT:this.actionText=o;break;case k1.attributes.DISMISSIBLE:this.dismissible=p(o);break;case k1.attributes.DISMISS_LABEL:this.dismissLabel=o;break;case k1.attributes.THEME:this.theme=o;break}}show(){this._core.show()}hide(){return this._core.hide()}static present(l){var h=l,{message:t,element:e,icon:o,className:a,topLayer:s}=h,r=O1(h,["message","element","icon","className","topLayer"]);let v=document.createElement(k1.elementName);if(e?v.appendChild(e):t&&v.append(t),o){let u=document.createElement("forge-icon");Object.assign(u,o),u.slot="icon",v.appendChild(u)}if(a){let u=Array.isArray(a)?a:[a];v.classList.add(...u)}return r&&Object.assign(v,r),(s&&Array.from(B1[b0]).at(-1)||document.body).appendChild(v),v.open=!0,v.addEventListener(k1.events.CLOSE,()=>v.remove()),v}};i([c()],Jt.prototype,"open",2),i([c()],Jt.prototype,"duration",2),i([c()],Jt.prototype,"placement",2),i([c()],Jt.prototype,"actionText",2),i([c()],Jt.prototype,"dismissible",2),i([c()],Jt.prototype,"dismissLabel",2),i([c()],Jt.prototype,"theme",2),Jt=i([y({name:k1.elementName,dependencies:[d2,T2,i1,j]})],Jt);function ym(){f(Jt)}var py=`${b}view-switcher`,H3={ROOT:"forge-view-switcher",VIEW_HIDDEN:"forge-view-switcher__view--hidden",VIEW_SWITCHER_SLIDE:"slide",VIEW_SWITCHER_FADE:"fade"},my={ROOT:`.${H3.ROOT}`,DEFAULT_SLOT:"slot:not([name])",VIEW_HIDDEN:`.${H3.VIEW_HIDDEN}`},dy={INDEX:"index",ANIMATION_TYPE:"animation-type"},gy={DEFAULT_TRANSITION_DURATION:500},e2={elementName:py,attributes:dy,classes:H3,selectors:my,numbers:gy},I3=(e=>(e.Left="left",e.Right="right",e))(I3||{}),wy=(o=>(o.None="none",o.Slide="slide",o.Fade="fade",o))(wy||{});var Y4=class extends I{constructor(t){super(t),this._rootElement=w(t,e2.selectors.ROOT),this._slotElement=w(t,e2.selectors.DEFAULT_SLOT)}getViewCount(){return this._getViews().length}startViewObserver(t){this._viewObserver=new MutationObserver(t),this._viewObserver.observe(this._component,{childList:!0})}stopViewObserver(){var t;(t=this._viewObserver)==null||t.disconnect()}initializeSlideViews(t){let e=this._getViews();e.forEach((o,a)=>{if(o.style.removeProperty("opacity"),o.style.removeProperty("display"),a===t){e[t].classList.remove(e2.classes.VIEW_HIDDEN),o.style.removeProperty("visibility");return}o.style.transition="none",o.classList.add(e2.classes.VIEW_HIDDEN),o.style.visibility="hidden",a>t?o.style.transform="translate3d(100%, 0, 0)":o.style.transform="translate3d(-100%, 0, 0)"}),window.requestAnimationFrame(()=>{e=this._getViews(),e.forEach((o,a)=>{a!==t&&o.style.removeProperty("transition")})})}initializeFadeViews(t){let e=this._getViews();e.forEach((o,a)=>{if(o.style.removeProperty("transform"),o.style.removeProperty("display"),a===t){o.classList.remove(e2.classes.VIEW_HIDDEN),o.style.removeProperty("visibility");return}o.classList.add(e2.classes.VIEW_HIDDEN),o.style.visibility="hidden"}),e[t]&&(e[t].style.opacity="1")}setActiveView(t){let e=this._getViews();e.forEach((o,a)=>{a!==t&&(o.classList.add(e2.classes.VIEW_HIDDEN),o.style.display="none")}),e[t]&&(e[t].classList.remove(e2.classes.VIEW_HIDDEN),e[t].style.removeProperty("display"))}hideInactiveViews(t){this._getViews().forEach((o,a)=>{if(o.style.removeProperty("opacity"),o.style.removeProperty("transform"),o.style.removeProperty("visibility"),a===t){o.classList.remove(e2.classes.VIEW_HIDDEN);return}o.classList.add(e2.classes.VIEW_HIDDEN),o.style.display="none"})}async transitionToView(t,e,o,a){let s=this._getViews(),r=s[t],l=s[e];return new Promise(h=>{l.style.removeProperty("visibility"),window.requestAnimationFrame(()=>{let v;switch(o){case"slide":this._slideToView(r,l,a),v="transform";break;case"fade":this._fadeToView(r,l),v="opacity";break;default:return}this._animateHeight(r,l),r?r.addEventListener("transitionend",m):l.classList.remove(e2.classes.VIEW_HIDDEN);function m(u){u.propertyName===v&&(r.removeEventListener("transitionend",m),l.classList.remove(e2.classes.VIEW_HIDDEN),h())}})})}_slideToView(t,e,o){o==="left"?(t&&(t.style.transform="translate3d(-100%, 0, 0)"),e.style.transform="translate3d(0, 0, 0)"):(t&&(t.style.transform="translate3d(100%, 0, 0)"),e.style.transform="translate3d(0, 0, 0)")}_fadeToView(t,e){t&&(t.style.opacity="0"),e.style.opacity="1"}_animateHeight(t,e){let o=t?this._getViewHeight(t):0,a=this._getViewHeight(e);o!==a&&(this._rootElement.addEventListener("transitionend",this._onRootTransitionEnd.bind(this)),this._setHeight(o),window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>{this._setHeight(a)})}))}_onRootTransitionEnd(t){t.propertyName==="height"&&(this._rootElement.removeEventListener("transitionend",this._onRootTransitionEnd),this._rootElement.style.removeProperty("height"))}setAnimationType(t){switch(ye([e2.classes.VIEW_SWITCHER_SLIDE,e2.classes.VIEW_SWITCHER_FADE],this._component),t){case"slide":this._component.classList.add(e2.classes.VIEW_SWITCHER_SLIDE);break;case"fade":this._component.classList.add(e2.classes.VIEW_SWITCHER_FADE);break}}_getViews(){return this._slotElement.assignedNodes().filter(t=>t.nodeType===1)}_setHeight(t){this._rootElement.style.height=`${t}px`}_getViewHeight(t){let e=0,o=t.children.length?Array.from(t.children):[t];for(let a of o){let s=window.getComputedStyle(a),r=parseFloat(s.marginTop)+parseFloat(s.marginBottom);e+=Math.ceil(a.offsetHeight+r)}return e}};var K4=class{constructor(t){this._adapter=t;this._viewCount=0;this._viewIndex=0;this._animationType="none";this._viewsChangedListener=()=>this._onViewsChanged()}initialize(){this._viewCount=this._adapter.getViewCount(),this._adapter.startViewObserver(this._viewsChangedListener),this._adapter.setAnimationType(this._animationType),this._viewCount&&this._initializeAnimationType()}destroy(){this._adapter.stopViewObserver()}_initializeAnimationType(){switch(this._animationType){case"slide":this._adapter.initializeSlideViews(this._viewIndex);break;case"fade":this._adapter.initializeFadeViews(this._viewIndex);break;case"none":default:this._adapter.hideInactiveViews(this._viewIndex);break}}_onViewsChanged(){if(this._viewCount=this._adapter.getViewCount(),this._viewCount===0&&(this._viewIndex=0),this._viewCount&&this._initializeAnimationType(),this._viewCount>0&&this._viewIndex>=this._viewCount){let t=this._viewIndex;this._viewIndex=this._viewCount>0?this._viewCount-1:0,this._goToView(t,this._viewCount)}}async _goToView(t,e){if(this._viewCount=O(e)?e:this._adapter.getViewCount(),!(!(this._viewIndex>=0&&this._viewIndex<=this._viewCount-1)||t===this._clampedViewIndex(this._viewIndex,this._viewCount)))switch(this._animationType){case"slide":{let a=this._viewIndex>t?"left":"right";await this._adapter.transitionToView(t,this._viewIndex,"slide",a),this._adapter.initializeSlideViews(this._viewIndex);break}case"fade":await this._adapter.transitionToView(t,this._viewIndex,"fade"),this._adapter.initializeFadeViews(this._viewIndex);break;case"none":default:this._adapter.setActiveView(this._viewIndex);break}}_clampedViewIndex(t,e){return t<0?t=0:t>e-1&&(t=e>0?e-1:0),t}next(){this.index++}previous(){this.index--}goToStart(){this.index=0}goToEnd(){this.index=this._viewCount-1}get index(){return this._viewIndex}set index(t){if(this._viewIndex!==t){let e=this._viewIndex;this._viewIndex=t,this._goToView(e),this._adapter.setHostAttribute(e2.attributes.INDEX,this._viewIndex.toString())}}get animationType(){return this._animationType}set animationType(t){this._animationType!==t&&(this._animationType=t,this._initializeAnimationType(),this._adapter.setAnimationType(this._animationType),this._adapter.setHostAttribute(e2.attributes.ANIMATION_TYPE,this._animationType))}};var uy=`${b}view`,Mm={elementName:uy};var _y="<template><slot></slot></template>",xy=":host{display:block}:host([hidden]){display:none}",mo=class extends M{constructor(){super(),z(this,_y,xy)}};mo=i([y({name:Mm.elementName})],mo);var fy='<template><div class="forge-view-switcher" part="root"><slot></slot></div></template>',by=":host{height:var(--_view-switcher-height);width:var(--_view-switcher-width);display:block}:host{--_view-switcher-height:var(--forge-view-switcher-height, auto);--_view-switcher-width:var(--forge-view-switcher-width, auto)}:host([hidden]){display:none}.forge-view-switcher{--_view-switcher-animation-duration:var(--forge-view-switcher-animation-duration, var(--forge-animation-duration-medium2, 300ms));--_view-switcher-animation-easing:var(--forge-view-switcher-animation-easing, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1)))}.forge-view-switcher{height:var(--_view-switcher-height);width:var(--_view-switcher-width);position:relative;overflow:hidden;transition-property:height;transition-duration:var(--_view-switcher-animation-duration);transition-timing-function:var(--_view-switcher-animation-easing)}.forge-view-switcher ::slotted(.forge-view-switcher__view--hidden){position:absolute;top:0;right:0;bottom:0;left:0}:host(.slide) ::slotted(forge-view){transition-property:transform;transition-duration:var(--_view-switcher-animation-duration);transition-timing-function:var(--_view-switcher-animation-easing);will-change:transform}:host(.fade) ::slotted(forge-view){transition-property:opacity;transition-duration:var(--_view-switcher-animation-duration);transition-timing-function:var(--_view-switcher-animation-easing);will-change:opacity}:host(.fade) ::slotted(.forge-view-switcher__view--hidden){opacity:0}",go=class extends M{static get observedAttributes(){return[e2.attributes.INDEX,e2.attributes.ANIMATION_TYPE]}constructor(){super(),z(this,fy,by),this._core=new K4(new Y4(this))}connectedCallback(){this._core.initialize()}disconnectedCallback(){this._core.destroy()}attributeChangedCallback(t,e,o){switch(t){case e2.attributes.INDEX:this.index=K(o);break;case e2.attributes.ANIMATION_TYPE:this.animationType=o;break}}next(){this._core.next()}previous(){this._core.previous()}goToStart(){this._core.goToStart()}goToEnd(){this._core.goToEnd()}};i([c()],go.prototype,"index",2),i([c()],go.prototype,"animationType",2),go=i([y({name:e2.elementName,dependencies:[mo]})],go);function zm(){f(mo)}function Hm(){f(go)}var yy=`${b}deprecated-button`,My={TYPE:"type",DISABLED:"disabled",FULL_WIDTH:"full-width"},zy={BUTTON:"button,a"},Ft={elementName:yy,attributes:My,selectors:zy};var Hy='<template><slot></slot><forge-focus-indicator part="focus-indicator"></forge-focus-indicator><forge-state-layer exportparts="surface:state-layer"></forge-state-layer></template>',Iy=':host{--_button-primary-color:var(--forge-button-primary-color, var(--forge-theme-primary, #3f51b5));--_button-text-color:var(--forge-button-text-color, var(--_button-primary-color));--_button-disabled-color:var(--forge-button-disabled-color, var(--forge-theme-surface-container, #e0e0e0));--_button-padding:var(--forge-button-padding, var(--forge-spacing-medium, 16px));--_button-display:var(--forge-button-display, inline-grid);--_button-justify:var(--forge-button-justify, center);--_button-shape:var(--forge-button-shape, calc(var(--forge-shape-medium, 4px) * var(--forge-shape-factor, 1)));--_button-height:var(--forge-button-height, 36px);--_button-min-width:var(--forge-button-min-width, 64px);--_button-spacing:var(--forge-button-spacing, var(--forge-spacing-xsmall, 8px));--_button-border-width:var(--forge-button-border-width, medium);--_button-border-style:var(--forge-button-border-style, none);--_button-border-color:var(--forge-button-border-color, currentColor);--_button-shape-start-start-radius:var(--forge-button-shape-start-start-radius, var(--_button-shape));--_button-shape-start-end-radius:var(--forge-button-shape-start-end-radius, var(--_button-shape));--_button-shape-end-start-radius:var(--forge-button-shape-end-start-radius, var(--_button-shape));--_button-shape-end-end-radius:var(--forge-button-shape-end-end-radius, var(--_button-shape));--_button-padding-block:var(--forge-button-padding-block, var(--_button-0));--_button-padding-inline:var(--forge-button-padding-inline, var(--_button-padding));--_button-background:var(--forge-button-background, transparent);--_button-hover-background:var(--forge-button-hover-background, var(--_button-background));--_button-active-background:var(--forge-button-active-background, var(--_button-background));--_button-color:var(--forge-button-color, var(--_button-text-color));--_button-icon-size:var(--forge-button-icon-size, calc(var(--forge-typography-font-size, 1rem) * 1.125));--_button-shadow:var(--forge-button-shadow, none);--_button-hover-shadow:var(--forge-button-hover-shadow, none);--_button-active-shadow:var(--forge-button-active-shadow, none);--_button-cursor:var(--forge-button-cursor, pointer);--_button-transition-duration:var(--forge-button-transition-duration, var(--forge-animation-duration-short3, 150ms));--_button-transition-timing:var(--forge-button-transition-timing, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1)));--_button-text-padding-inline:var(--forge-button-text-padding-inline, var(--forge-spacing-xsmall, 8px));--_button-outlined-background:var(--forge-button-outlined-background, transparent);--_button-outlined-color:var(--forge-button-outlined-color, var(--_button-primary-color));--_button-outlined-border-width:var(--forge-button-outlined-border-width, var(--forge-border-thin, 1px));--_button-outlined-border-style:var(--forge-button-outlined-border-style, solid);--_button-outlined-border-color:var(--forge-button-outlined-border-color, var(--_button-primary-color));--_button-tonal-background:var(--forge-button-tonal-background, var(--forge-theme-primary-container, #d1d5ed));--_button-tonal-disabled-background:var(--forge-button-tonal-disabled-background, var(--_button-disabled-color));--_button-tonal-color:var(--forge-button-tonal-color, var(--forge-theme-on-primary-container, #222c62));--_button-tonal-disabled-color:var(--forge-button-tonal-disabled-color, var(--_button-disabled-text-color));--_button-filled-background:var(--forge-button-filled-background, var(--_button-primary-color));--_button-filled-disabled-background:var(--forge-button-filled-disabled-background, var(--_button-disabled-color));--_button-filled-color:var(--forge-button-filled-color, var(--forge-theme-on-primary, #ffffff));--_button-filled-disabled-color:var(--forge-button-filled-disabled-color, var(--_button-disabled-text-color));--_button-raised-background:var(--forge-button-raised-background, var(--_button-primary-color));--_button-raised-disabled-background:var(--forge-button-raised-disabled-background, var(--_button-disabled-color));--_button-raised-color:var(--forge-button-raised-color, var(--forge-theme-on-primary, #ffffff));--_button-raised-disabled-color:var(--forge-button-raised-disabled-color, var(--_button-disabled-text-color));--_button-raised-shadow:var(--forge-button-raised-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12));--_button-raised-hover-shadow:var(--forge-button-raised-hover-shadow, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12));--_button-raised-active-shadow:var(--forge-button-raised-active-shadow, 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12));--_button-raised-disabled-shadow:var(--forge-button-raised-disabled-shadow, none);--_button-link-color:var(--forge-button-link-color, var(--_button-primary-color));--_button-link-text-decoration:var(--forge-button-link-text-decoration, underline);--_button-link-height:var(--forge-button-link-height, auto);--_button-link-padding:var(--forge-button-link-padding, 0);--_button-link-line-height:var(--forge-button-link-line-height, normal);--_button-link-width:var(--forge-button-link-width, auto);--_button-link-hover-text-decoration:var(--forge-button-link-hover-text-decoration, none);--_button-link-active-opacity:var(--forge-button-link-active-opacity, 0.65);--_button-link-transition-duration:var(--forge-button-link-transition-duration, var(--forge-animation-duration-short3, 150ms));--_button-link-transition-timing:var(--forge-button-link-transition-timing, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1)));--_button-disabled-cursor:var(--forge-button-disabled-cursor, not-allowed);--_button-disabled-text-color:var(--forge-button-disabled-text-color, var(--forge-theme-text-low, rgba(0, 0, 0, 0.38)));--_button-disabled-background:var(--forge-button-disabled-background, transparent);--_button-disabled-border-color:var(--forge-button-disabled-border-color, var(--_button-disabled-color));--_button-disabled-shadow:var(--forge-button-disabled-shadow, none);--_button-dense-height:var(--forge-button-dense-height, 24px);--_button-pill-shape:var(--forge-button-pill-shape, calc(var(--forge-shape-full, 9999px) * var(--forge-shape-factor, 1)));--_button-pill-padding-inline:var(--forge-button-pill-padding-inline, var(--forge-spacing-small, 12px));--_button-focus-indicator-offset:var(--forge-button-focus-indicator-offset, 4px);--_button-text-focus-indicator-offset:var(--forge-button-text-focus-indicator-offset, 0px);--_button-link-focus-indicator-offset:var(--forge-button-link-focus-indicator-offset, 2px);--_button-popover-icon-transition-duration:var(--forge-button-popover-icon-transition-duration, var(--forge-animation-duration-short3, 150ms));--_button-popover-icon-transition-timing:var(--forge-button-popover-icon-transition-timing, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1)));--_button-popover-icon-open-rotation:var(--forge-button-popover-icon-open-rotation, 180deg)}:host{display:var(--_button-display);position:relative;outline:0;vertical-align:middle;-webkit-tap-highlight-color:transparent;border-radius:var(--_button-shape)}:host([hidden]){display:none}::slotted(:is(button,a)){-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-button-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-button-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-button-font-size-scale, .875)));font-weight:var(--forge-typography-button-font-weight,500);line-height:var(--forge-typography-button-line-height, normal);letter-spacing:var(--forge-typography-button-letter-spacing, .0714285714em);text-transform:var(--forge-typography-button-text-transform,inherit);text-decoration:var(--forge-typography-button-text-decoration,inherit);position:relative;display:var(--_button-display);grid-auto-flow:column;align-items:center;justify-content:var(--_button-justify);gap:var(--_button-spacing);z-index:0;box-sizing:border-box;min-inline-size:var(--_button-min-width);height:var(--_button-height);inline-size:100%;border-width:var(--_button-border-width);border-style:var(--_button-border-style);border-color:var(--_button-border-color);border-start-start-radius:var(--_button-shape-start-start-radius);border-start-end-radius:var(--_button-shape-start-end-radius);border-end-start-radius:var(--_button-shape-end-start-radius);border-end-end-radius:var(--_button-shape-end-end-radius);padding-block:var(--_button-padding-block);padding-inline:var(--_button-padding-inline);box-shadow:var(--_button-shadow);outline:0;user-select:none;-webkit-appearance:none;vertical-align:middle;text-decoration:none;white-space:nowrap;background:var(--_button-background);color:var(--_button-color);cursor:var(--_button-cursor);transition-property:box-shadow,background;transition-duration:var(--_button-transition-duration);transition-timing-function:var(--_button-transition-timing);--forge-icon-font-size:1.25em}::slotted(:is(button,a))::-moz-focus-inner{padding:0;border:0}::slotted(:is(button,a)):hover{--_button-shadow:var(--_button-hover-shadow);background:var(--_button-hover-background)}::slotted(:is(button,a)):active{--_button-shadow:var(--_button-active-shadow);background:var(--_button-active-background)}::slotted(a){text-decoration:none;--forge-typography-link-text-decoration:none}forge-state-layer{--forge-state-layer-color:var(--_button-color)}forge-focus-indicator{--forge-focus-indicator-color:var(--_button-primary-color);--forge-focus-indicator-outward-offset:var(--_button-focus-indicator-offset)}:host(:is([type*=unelevated],[type*=raised])) ::slotted(:is(button,a)){--_button-background:var(--_button-filled-background);--_button-color:var(--_button-filled-color)}:host(:is([type*=unelevated],[type*=raised])) forge-state-layer{--forge-state-layer-color:var(--_button-filled-color)}:host([type*=raised]) ::slotted(:is(button,a)){--_button-background:var(--_button-raised-background);--_button-color:var(--_button-raised-color);--_button-shadow:var(--_button-raised-shadow)}:host([type*=raised]) ::slotted(:is(button,a)):hover{--_button-shadow:var(--_button-raised-hover-shadow)}:host([type*=raised]) ::slotted(:is(button,a)):active{--_button-shadow:var(--_button-raised-active-shadow)}:host([type*=outlined]) ::slotted(:is(button,a)){--_button-background:var(--_button-outlined-background);--_button-color:var(--_button-outlined-color);--_button-border-width:var(--_button-outlined-border-width);--_button-border-style:var(--_button-outlined-border-style);--_button-border-color:var(--_button-outlined-border-color)}:host([full-width]){width:100%}:host(:is([dense],[type*=dense])) ::slotted(:is(button,a)){--_button-height:var(--_button-dense-height)}:host([disabled]){cursor:var(--_button-disabled-cursor)}:host([disabled]) ::slotted(button[disabled]){--_button-background:var(--_button-disabled-background);--_button-color:var(--_button-disabled-text-color);--_button-shadow:var(--_button-disabled-shadow);pointer-events:none}:host([type*=outlined][disabled]) ::slotted(button[disabled]){--_button-border-color:var(--_button-disabled-border-color)}:host(:is([type*=unelevated],[type*=raised])[disabled]) ::slotted(button[disabled]){--_button-background:var(--_button-filled-disabled-background);--_button-color:var(--_button-filled-disabled-color)}:host([type*=raised][disabled]) ::slotted(button[disabled]){--_button-background:var(--_button-raised-disabled-background);--_button-color:var(--_button-raised-disabled-color);--_button-shadow:var(--_button-raised-disabled-shadow)}',Ga=class extends M{constructor(){super();this._buttonOrAnchorElement=null;this._disabled=!1;this._fullWidth=!1;this._buttonChangeListener=this._onButtonChange.bind(this);this._keydownListener=e=>this._onKeydown(e);z(this,Hy,Iy),this._slotElement=w(this,"slot:not([name])"),this._focusIndicator=w(this,w1.elementName),this._stateLayer=w(this,I1.elementName)}static get observedAttributes(){return Object.values(Ft.attributes)}connectedCallback(){this._slotElement.addEventListener("slotchange",this._buttonChangeListener),this.children.length?this._initialize():Ko(this).then(()=>this._initialize())}disconnectedCallback(){this._detachButton()}attributeChangedCallback(e,o,a){switch(e){case Ft.attributes.TYPE:this.type=a;return;case Ft.attributes.DISABLED:this.disabled=p(a);return;case Ft.attributes.FULL_WIDTH:this.fullWidth=p(a);return}}_onKeydown(e){(e.key==="Enter"||e.key===" ")&&this._stateLayer.playAnimation()}_onButtonChange(){this._detachButton(),this._initialize()}_initialize(){this._buttonOrAnchorElement=this.querySelector(Ft.selectors.BUTTON),this._buttonOrAnchorElement&&(this._stateLayer.targetElement=this._buttonOrAnchorElement,this._focusIndicator.targetElement=this._buttonOrAnchorElement,this._buttonOrAnchorElement.addEventListener("keydown",this._keydownListener),this._buttonOrAnchorElement instanceof HTMLButtonElement&&this._disabled&&!this._buttonOrAnchorElement.disabled?this._buttonOrAnchorElement.disabled=!0:this.disabled=this._buttonOrAnchorElement instanceof HTMLButtonElement&&this._buttonOrAnchorElement.disabled,this._buttonOrAnchorElement instanceof HTMLButtonElement&&(this._buttonAttrMutationObserver=new MutationObserver(e=>{e.some(o=>o.attributeName==="disabled")&&this._syncDisabledState()}),this._buttonAttrMutationObserver.observe(this._buttonOrAnchorElement,{attributes:!0,attributeFilter:["disabled"]})))}_syncDisabledState(){let e=this._buttonOrAnchorElement instanceof HTMLButtonElement&&this._buttonOrAnchorElement.disabled;G(this,e,Ft.attributes.DISABLED)}_detachButton(){var e;(e=this._buttonOrAnchorElement)==null||e.removeEventListener("keydown",this._keydownListener),this._buttonAttrMutationObserver&&(this._buttonAttrMutationObserver.disconnect(),this._buttonAttrMutationObserver=void 0)}get type(){return this._type}set type(e){this._type!==e&&(this._type=e,this.setAttribute(Ft.attributes.TYPE,this._type))}get disabled(){return this._disabled}set disabled(e){var o;this._disabled!==e&&(this._disabled=e,(o=this._buttonOrAnchorElement)==null||o.toggleAttribute(Ft.attributes.DISABLED,this._disabled),this.toggleAttribute(Ft.attributes.DISABLED,this._disabled))}get fullWidth(){return this._fullWidth}set fullWidth(e){this._fullWidth!==e&&(this._fullWidth=e,this.toggleAttribute(Ft.attributes.FULL_WIDTH,this._fullWidth))}focus(e){var o;(o=this._buttonOrAnchorElement)==null||o.focus(e)}};Ga=i([y({name:Ft.elementName,dependencies:[J,r1]})],Ga);var Im=class extends Z1{constructor(t){super(t)}destroy(){this._buttonElement=void 0}get buttonElement(){return this._buttonElement}_build(){var e,o;let t=document.createElement(Ft.elementName);return this._buttonElement=document.createElement("button"),this._buttonElement.type=((e=this._config.options)==null?void 0:e.type)||"button",this._buttonElement.textContent=((o=this._config.options)==null?void 0:o.text)||"",t.appendChild(this._buttonElement),t}onClick(t){var e;(e=this._buttonElement)==null||e.addEventListener("click",t)}onFocus(t){var e;(e=this._buttonElement)==null||e.addEventListener("focus",o=>t(o))}onBlur(t){var e;(e=this._buttonElement)==null||e.addEventListener("blur",o=>t(o))}};function Lm(){f(Ga)}var Ly=`${b}deprecated-icon-button`,Vm={DISABLED:"disabled",TOGGLE:"toggle",IS_ON:"is-on",DENSITY_LEVEL:"density-level"},Vy=S(d({},Vm),{ON_ICON:"forge-icon-button-on"}),Cy={BUTTON:"button,a",ICON_LIKE:"button > i,span,svg,img,forge-icon"},Ey={TOGGLE:"forge-icon-button-toggle"},j2={elementName:Ly,observedAttributes:Vm,attributes:Vy,selectors:Cy,events:Ey};var By='<template><slot></slot><forge-focus-indicator part="focus-indicator"></forge-focus-indicator><forge-state-layer exportparts="surface:state-layer"></forge-state-layer></template>',Ay=":host{--_icon-button-display:var(--forge-icon-button-display, inline-flex);--_icon-button-size:var(--forge-icon-button-size, 48px);--_icon-button-gap:var(--forge-icon-button-gap, 0);--_icon-button-icon-color:var(--forge-icon-button-icon-color, currentColor);--_icon-button-background-color:var(--forge-icon-button-background-color, none);--_icon-button-icon-size:var(--forge-icon-button-icon-size, calc(var(--forge-typography-font-size, 1rem) * 1.5));--_icon-button-cursor:var(--forge-icon-button-cursor, pointer);--_icon-button-padding:var(--forge-icon-button-padding, var(--forge-spacing-xxsmall, 4px));--_icon-button-border:var(--forge-icon-button-border, none);--_icon-button-shadow:var(--forge-icon-button-shadow, none);--_icon-button-transition-duration:var(--forge-icon-button-transition-duration, var(--forge-animation-duration-short3, 150ms));--_icon-button-transition-timing:var(--forge-icon-button-transition-timing, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1)));--_icon-button-shape:var(--forge-icon-button-shape, calc(var(--forge-shape-full, 9999px) * var(--forge-shape-factor, 1)));--_icon-button-shape-start-start:var(--forge-icon-button-shape-start-start, var(--_icon-button-shape));--_icon-button-shape-start-end:var(--forge-icon-button-shape-start-end, var(--_icon-button-shape));--_icon-button-shape-end-start:var(--forge-icon-button-shape-end-start, var(--_icon-button-shape));--_icon-button-shape-end-end:var(--forge-icon-button-shape-end-end, var(--_icon-button-shape));--_icon-button-shape-squared:var(--forge-icon-button-shape-squared, calc(var(--forge-shape-medium, 4px) * var(--forge-shape-factor, 1)));--_icon-button-outlined-border-width:var(--forge-icon-button-outlined-border-width, 1px);--_icon-button-outlined-border-style:var(--forge-icon-button-outlined-border-style, solid);--_icon-button-outlined-border-color:var(--forge-icon-button-outlined-border-color, var(--_icon-button-icon-color));--_icon-button-tonal-icon-color:var(--forge-icon-button-tonal-icon-color, var(--forge-theme-on-primary-container, #222c62));--_icon-button-tonal-background-color:var(--forge-icon-button-tonal-background-color, var(--forge-theme-primary-container, #d1d5ed));--_icon-button-filled-icon-color:var(--forge-icon-button-filled-icon-color, var(--forge-theme-on-primary, #ffffff));--_icon-button-filled-background-color:var(--forge-icon-button-filled-background-color, var(--forge-theme-primary, #3f51b5));--_icon-button-raised-shadow:var(--forge-icon-button-raised-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12));--_icon-button-raised-hover-shadow:var(--forge-icon-button-raised-hover-shadow, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12));--_icon-button-raised-active-shadow:var(--forge-icon-button-raised-active-shadow, 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12));--_icon-button-raised-disabled-shadow:var(--forge-icon-button-raised-disabled-shadow, none);--_icon-button-density-small-size:var(--forge-icon-button-density-small-size, 24px);--_icon-button-density-small-padding:var(--forge-icon-button-density-small-padding, var(--forge-spacing-xxxsmall, 2px));--_icon-button-density-small-icon-size:var(--forge-icon-button-density-small-icon-size, calc(var(--forge-typography-font-size, 1rem) * 1.125));--_icon-button-density-medium-size:var(--forge-icon-button-density-medium-size, 36px);--_icon-button-density-medium-padding:var(--forge-icon-button-density-medium-padding, var(--forge-spacing-xxsmall, 4px));--_icon-button-density-large-size:var(--forge-icon-button-density-large-size, var(--_icon-button-size));--_icon-button-toggle-on-background-color:var(--forge-icon-button-toggle-on-background-color, var(--forge-theme-primary-container, #d1d5ed));--_icon-button-toggle-on-icon-color:var(--forge-icon-button-toggle-on-icon-color, var(--forge-theme-primary, #3f51b5));--_icon-button-outlined-toggle-on-background-color:var(--forge-icon-button-outlined-toggle-on-background-color, var(--forge-theme-primary-container, #d1d5ed));--_icon-button-outlined-toggle-on-icon-color:var(--forge-icon-button-outlined-toggle-on-icon-color, var(--forge-theme-primary, #3f51b5));--_icon-button-tonal-toggle-background-color:var(--forge-icon-button-tonal-toggle-background-color, var(--forge-theme-surface-container-low, #ebebeb));--_icon-button-tonal-toggle-on-background-color:var(--forge-icon-button-tonal-toggle-on-background-color, var(--forge-theme-primary-container, #d1d5ed));--_icon-button-tonal-toggle-on-icon-color:var(--forge-icon-button-tonal-toggle-on-icon-color, var(--forge-theme-primary, #3f51b5));--_icon-button-filled-toggle-background-color:var(--forge-icon-button-filled-toggle-background-color, var(--forge-theme-surface-container-low, #ebebeb));--_icon-button-filled-toggle-icon-color:var(--forge-icon-button-filled-toggle-icon-color, var(--forge-theme-primary, #3f51b5));--_icon-button-filled-toggle-on-background-color:var(--forge-icon-button-filled-toggle-on-background-color, var(--forge-theme-primary, #3f51b5));--_icon-button-filled-toggle-on-icon-color:var(--forge-icon-button-filled-toggle-on-icon-color, var(--forge-theme-on-primary, #ffffff));--_icon-button-disabled-cursor:var(--forge-icon-button-disabled-cursor, not-allowed);--_icon-button-disabled-opacity:var(--forge-icon-button-disabled-opacity, 0.38);--_icon-button-popover-icon-padding:var(--forge-icon-button-popover-icon-padding, var(--forge-spacing-xsmall, 8px));--_icon-button-focus-indicator-color:var(--forge-icon-button-focus-indicator-color, var(--forge-theme-primary, #3f51b5))}:host{display:var(--_icon-button-display);position:relative;outline:0;-webkit-tap-highlight-color:transparent;border-start-start-radius:var(--_icon-button-shape-start-start);border-start-end-radius:var(--_icon-button-shape-start-end);border-end-start-radius:var(--_icon-button-shape-end-start);border-end-end-radius:var(--_icon-button-shape-end-end)}:host([hidden]){display:none}::slotted(:is(button,a)){position:relative;z-index:0;display:var(--_icon-button-display);align-items:center;justify-content:center;gap:var(--_icon-button-gap);box-sizing:border-box;height:var(--_icon-button-density-large-size);min-width:var(--_icon-button-density-large-size);border:var(--_icon-button-border);border-start-start-radius:var(--_icon-button-shape-start-start);border-start-end-radius:var(--_icon-button-shape-start-end);border-end-start-radius:var(--_icon-button-shape-end-start);border-end-end-radius:var(--_icon-button-shape-end-end);padding:var(--_icon-button-padding);box-shadow:var(--_icon-button-shadow);color:var(--_icon-button-icon-color);background:var(--_icon-button-background-color);font-size:var(--_icon-button-icon-size);cursor:var(--_icon-button-cursor);user-select:none;transition-property:box-shadow,background;transition-duration:var(--_icon-button-transition-duration);transition-timing-function:var(--_icon-button-transition-timing);font-size:var(--_icon-button-icon-size);height:var(--_icon-button-size);width:var(--_icon-button-size)}::slotted(a){text-decoration:none;color:var(--_icon-button-icon-color)!important}forge-state-layer{--forge-state-layer-color:var(--_icon-button-icon-color)}forge-focus-indicator{--forge-focus-indicator-outward-offset:0px;--forge-focus-indicator-color:var(--_icon-button-focus-indicator-color);--forge-focus-indicator-shape-start-start:var(--_icon-button-shape-start-start);--forge-focus-indicator-shape-start-end:var(--_icon-button-shape-start-end);--forge-focus-indicator-shape-end-start:var(--_icon-button-shape-end-start);--forge-focus-indicator-shape-end-end:var(--_icon-button-shape-end-end)}:host(:is([dense],[density=large]):not(:is([density=medium],[density-level]))){--_icon-button-size:var(--_icon-button-density-small-size);--_icon-button-icon-size:var(--_icon-button-density-small-icon-size);--_icon-button-padding:var(--_icon-button-density-small-padding);--forge-icon-font-size:var(--_icon-button-icon-size)}:host([dense]:not([density=large]):not([density=small]):is([density=medium],[density-level])){--_icon-button-size:var(--_icon-button-density-medium-size);--_icon-button-padding:var(--_icon-button-density-medium-padding)}:host([disabled]){cursor:var(--_icon-button-disabled-cursor)}:host([disabled]) ::slotted(button[disabled]){pointer-events:none;opacity:var(--_icon-button-disabled-opacity)}:host([toggle]:is([on],[is-on]):not([is-on=false])){--_icon-button-background-color:var(--_icon-button-toggle-on-background-color);--_icon-button-icon-color:var(--_icon-button-toggle-on-icon-color);--_icon-button-background-color:var(--forge-icon-button-background-color, var(--forge-theme-primary-container-low, #e8eaf6))}",qa=class extends M{constructor(){super();this._disabled=!1;this._toggle=!1;this._isOn=!1;this._densityLevel=0;this._buttonOrAnchorElement=null;this._slotChangeListener=this._onSlotChange.bind(this);this._keydownListener=this._onKeydown.bind(this);this._toggleClickListener=this._onToggle.bind(this);z(this,By,Ay),this._slotElement=w(this,"slot:not([name])"),this._focusIndicator=w(this,w1.elementName),this._stateLayer=w(this,I1.elementName)}static get observedAttributes(){return Object.values(j2.attributes)}connectedCallback(){this._slotElement.addEventListener("slotchange",this._slotChangeListener),this.children.length?this._initialize():Ko(this).then(()=>this._initialize())}disconnectedCallback(){this._detachButton()}attributeChangedCallback(e,o,a){switch(e){case j2.attributes.DISABLED:this.disabled=p(a);return;case j2.attributes.TOGGLE:this.toggle=p(a);return;case j2.attributes.IS_ON:this.isOn=p(a);return;case j2.attributes.DENSITY_LEVEL:this.densityLevel=K(a);return}}_onKeydown(e){(e.key==="Enter"||e.key===" ")&&this._stateLayer.playAnimation()}_onSlotChange(){this._detachButton(),this._initialize()}_onToggle(){this.isOn=!this._isOn,this.dispatchEvent(new CustomEvent("forge-icon-button-toggle",{bubbles:!0,composed:!0,detail:this._isOn}))}_initialize(){this._buttonOrAnchorElement=this.querySelector(j2.selectors.BUTTON),this._buttonOrAnchorElement&&(this._stateLayer.targetElement=this._buttonOrAnchorElement,this._focusIndicator.targetElement=this._buttonOrAnchorElement,this._buttonOrAnchorElement.addEventListener("keydown",this._keydownListener),this._buttonOrAnchorElement instanceof HTMLButtonElement&&this._disabled&&!this._buttonOrAnchorElement.disabled?this._buttonOrAnchorElement.disabled=!0:this.disabled=this._buttonOrAnchorElement instanceof HTMLButtonElement&&this._buttonOrAnchorElement.disabled,this._toggle&&this._initializeToggle(),this._buttonOrAnchorElement instanceof HTMLButtonElement&&(this._buttonAttrMutationObserver=new MutationObserver(e=>{e.some(o=>o.attributeName==="disabled")&&this._syncDisabledState()}),this._buttonAttrMutationObserver.observe(this._buttonOrAnchorElement,{attributes:!0,attributeFilter:["disabled"]})))}_syncDisabledState(){let e=this._buttonOrAnchorElement instanceof HTMLButtonElement&&this._buttonOrAnchorElement.disabled;this.toggleAttribute(j2.attributes.DISABLED,e)}_detachButton(){var e;(e=this._buttonOrAnchorElement)==null||e.removeEventListener("keydown",this._keydownListener),this._buttonAttrMutationObserver&&(this._buttonAttrMutationObserver.disconnect(),this._buttonAttrMutationObserver=void 0)}_initializeToggle(){this._buttonOrAnchorElement&&(this._buttonOrAnchorElement.addEventListener("click",this._toggleClickListener),this._syncToggleState())}_destroyToggle(){var e;(e=this._buttonOrAnchorElement)==null||e.removeEventListener("click",this._toggleClickListener)}_syncToggleState(){let e=Array.from(this.querySelectorAll(j2.selectors.ICON_LIKE)),o=e.find(s=>s.hasAttribute(j2.attributes.ON_ICON)),a=e.filter(s=>s!==o);o==null||o.toggleAttribute("hidden",!this._isOn),a.forEach(s=>s.toggleAttribute("hidden",this._isOn)),this.toggleAttribute(j2.attributes.IS_ON,this._isOn)}get disabled(){return this._disabled}set disabled(e){var o;e=!!e,this._disabled!==e&&(this._disabled=e,(o=this._buttonOrAnchorElement)==null||o.toggleAttribute(j2.attributes.DISABLED,this._disabled),this.toggleAttribute(j2.attributes.DISABLED,this._disabled))}get toggle(){return this._toggle}set toggle(e){e=!!e,this._toggle!==e&&(this._toggle=e,this.isConnected&&(this._toggle?this._initializeToggle():this._destroyToggle()),this.toggleAttribute(j2.attributes.TOGGLE,this._toggle))}get isOn(){return this._isOn}set isOn(e){e=!!e,this._isOn!==e&&(this._isOn=e,this.isConnected&&this._syncToggleState())}get densityLevel(){return this._densityLevel}set densityLevel(e){this._densityLevel!==e&&(this._densityLevel=e,this.setAttribute(j2.attributes.DENSITY_LEVEL,String(this._densityLevel)))}focus(e){var o;(o=this._buttonOrAnchorElement)==null||o.focus(e)}};qa=i([y({name:j2.elementName,dependencies:[j,J,r1]})],qa);var Cm=class extends Z1{constructor(t){super(t)}destroy(){this._buttonElement=void 0}get buttonElement(){return this._buttonElement}_build(){var e;let t=document.createElement(j2.elementName);if(this._buttonElement=document.createElement("button"),this._buttonElement.type="button",t.appendChild(this._buttonElement),(e=this._config.options)!=null&&e.tooltip){let o=document.createElement("forge-tooltip");o.textContent=this._config.options.tooltip,this._config.options.tooltipPosition&&(o.position=this._config.options.tooltipPosition),t.appendChild(o)}return t}onClick(t){var e;(e=this._buttonElement)==null||e.addEventListener("click",t)}onFocus(t){var e;(e=this._buttonElement)==null||e.addEventListener("focus",t)}onBlur(t){var e;(e=this._buttonElement)==null||e.addEventListener("blur",t)}get iconElement(){return this._iconElement}get disabled(){var t;return!!((t=this._buttonElement)!=null&&t.disabled)}set disabled(t){this._buttonElement&&(this._buttonElement.disabled=t)}_configure(){this._configureIcon()}_configureIcon(){var e,o,a,s;if(!((e=this._config.options)!=null&&e.iconName))return;switch(((o=this._config.options)==null?void 0:o.iconType)||"component"){case"font":{let r=Array.isArray(this._config.options.iconClass)?this._config.options.iconClass:[We];(a=this._buttonElement)==null||a.classList.add(...r),this._buttonElement&&(this._buttonElement.textContent=this._config.options.iconName);break}case"component":this._iconElement=document.createElement(p1.elementName),this._iconElement.name=this._config.options.iconName,this._config.options.iconExternal!==void 0&&(this._iconElement.external=!!this._config.options.iconExternal),this._config.options.iconExternalType&&(this._iconElement.externalType=this._config.options.iconExternalType),this._config.options.iconClass&&this._iconElement.classList.add(...this._config.options.iconClass),(s=this._buttonElement)==null||s.appendChild(this._iconElement);break}}};function Em(){f(qa)}var $4=class extends I{constructor(t){super(t)}startButtonObserver(){this._buttonChangeObserver=new MutationObserver(t=>{let e=t.reduce((o,{addedNodes:a})=>{let s=Array.from(a).filter(r=>r.nodeType===Node.ELEMENT_NODE).map(r=>r.nodeName.toLowerCase()===A2.elementName?r:r.querySelector(A2.elementName)).filter(r=>!!r);return o.concat(s)},[]);e.length&&(e.forEach(o=>{o.variant=this._component.variant,o.theme=this._component.theme,o.disabled=this._component.disabled,o.dense=this._component.dense}),this.setPill(this._component.pill))}),this._buttonChangeObserver.observe(this._component,{childList:!0,subtree:!0})}destroyButtonObserver(){var t;(t=this._buttonChangeObserver)==null||t.disconnect(),this._buttonChangeObserver=void 0}setVariant(t){this._getButtons().forEach(o=>o.variant=t)}setTheme(t){this._getButtons().forEach(o=>o.theme=t)}setDisabled(t){this._getButtons().forEach(o=>o.disabled=t)}setDense(t){this._getButtons().forEach(o=>o.dense=t)}setPill(t){let e=this._getButtons();e.length>2&&Array.from(e).slice(1,e.length-1).filter(({pill:s})=>s).forEach(s=>s.pill=!1);let o=e[0];o&&(o.pill=t);let a=e[e.length-1];a&&(a.pill=t)}_getButtons(){return this._component.querySelectorAll(A2.elementName)}};var Ty=`${b}split-button`,Sy={VARIANT:"variant",THEME:"theme",DISABLED:"disabled",DENSE:"dense",PILL:"pill"},ky={DEFAULT_VARIANT:"text",DEFAULT_THEME:"primary"},x2={elementName:Ty,attributes:Sy,defaults:ky};var X4=class{constructor(t){this._adapter=t;this._variant=x2.defaults.DEFAULT_VARIANT;this._theme=x2.defaults.DEFAULT_THEME;this._disabled=!1;this._dense=!1;this._pill=!1}initialize(){this._adapter.startButtonObserver(),this._adapter.setVariant(this._variant),this._adapter.setTheme(this._theme),this._adapter.setDisabled(this._disabled),this._adapter.setDense(this._dense),this._adapter.setPill(this._pill)}destroy(){this._adapter.destroyButtonObserver()}get variant(){return this._variant}set variant(t){this._variant!==t&&(this._variant=t!=null?t:x2.defaults.DEFAULT_VARIANT,this._adapter.setVariant(t),this._adapter.setHostAttribute(x2.attributes.VARIANT,this._variant))}get theme(){return this._theme}set theme(t){this._theme!==t&&(this._theme=t!=null?t:x2.defaults.DEFAULT_THEME,this._adapter.setTheme(this._theme),this._adapter.setHostAttribute(x2.attributes.THEME,this._theme))}get disabled(){return this._disabled}set disabled(t){this._disabled!==t&&(this._disabled=t,this._adapter.setDisabled(this._disabled),this._adapter.toggleHostAttribute(x2.attributes.DISABLED,this._disabled))}get dense(){return this._dense}set dense(t){this._dense!==t&&(this._dense=t,this._adapter.setDense(this._dense),this._adapter.toggleHostAttribute(x2.attributes.DENSE,this._dense))}get pill(){return this._pill}set pill(t){this._pill!==t&&(this._pill=t,this._adapter.setPill(this._pill),this._adapter.toggleHostAttribute(x2.attributes.PILL,this._pill))}};var Oy="<template><slot></slot></template>",Dy=":host{--_split-button-min-width:var(--forge-split-button-min-width, 0);--_split-button-gap:var(--forge-split-button-gap, var(--forge-border-thin, 1px));--_split-button-focus-indicator-offset:var(--forge-split-button-focus-indicator-offset, var(--forge-button-focus-indicator-offset, 4px));--_split-button-focus-indicator-divider-offset:var(--forge-split-button-focus-indicator-divider-offset, var(--_split-button-gap));--_split-button-focus-indicator-offset-adjusted:calc(var(--_split-button-focus-indicator-offset) + var(--_split-button-focus-indicator-divider-offset) * 2)}:host{display:inline-flex;justify-content:center;align-items:center}:host([hidden]){display:none}::slotted(*){--forge-button-min-width:var(--_split-button-min-width);--forge-button-focus-indicator-offset:var(--_split-button-focus-indicator-offset)}::slotted(:first-child){--forge-button-shape-start-end-radius:0;--forge-button-shape-end-end-radius:0;--forge-focus-indicator-shape-start-end:0;--forge-focus-indicator-shape-end-end:0;--forge-focus-indicator-offset-inline:0 var(--_split-button-focus-indicator-offset-adjusted)}::slotted(:not(:first-child):not(:last-child)){--forge-button-shape:0;--forge-focus-indicator-shape:0;--forge-focus-indicator-offset-inline:var(--_split-button-focus-indicator-offset-adjusted)}::slotted(:last-child){--forge-button-shape-start-start-radius:0;--forge-button-shape-end-start-radius:0;--forge-focus-indicator-shape-start-start:0;--forge-focus-indicator-shape-end-start:0;--forge-focus-indicator-offset-inline:var(--_split-button-focus-indicator-offset-adjusted) 0}:host([variant=outlined]){--_split-button-focus-indicator-divider-offset:var(--forge-split-button-focus-indicator-divider-offset, 0px)}:host([variant=outlined]) ::slotted(:not(:first-child)){margin-inline-start:calc(-1 * var(--_split-button-gap))}:host(:is([variant=tonal],[variant=filled],[variant=raised],:not([variant]))) ::slotted(:not(:last-child)){margin-inline-end:var(--_split-button-gap)}",ke=class extends M{static get observedAttributes(){return[x2.attributes.VARIANT,x2.attributes.THEME,x2.attributes.DISABLED,x2.attributes.DENSE,x2.attributes.PILL]}constructor(){super(),z(this,Oy,Dy),this._core=new X4(new $4(this))}connectedCallback(){this._core.initialize()}disconnectedCallback(){this._core.destroy()}attributeChangedCallback(t,e,o){switch(t){case x2.attributes.VARIANT:this.variant=o;break;case x2.attributes.THEME:this.theme=o;break;case x2.attributes.DISABLED:this.disabled=p(o);break;case x2.attributes.DENSE:this.dense=p(o);break;case x2.attributes.PILL:this.pill=p(o);break}}};i([c()],ke.prototype,"variant",2),i([c()],ke.prototype,"theme",2),i([c()],ke.prototype,"disabled",2),i([c()],ke.prototype,"dense",2),i([c()],ke.prototype,"pill",2),ke=i([y({name:x2.elementName,dependencies:[T2]})],ke);function hT1(){f(ke)}function wT1(){let n="0123456789ABCDEF".split(""),t="#";for(let e=0;e<6;e++)t+=n[Math.floor(Math.random()*16)];return t}function TS1(){cc(),Ic(),yv(),yh(),jh(),Tv(),Vc(),f6(),_a(),y6(),rr(),z6(),B6(),A6(),zv(),Pv(),Uv(),cp(),dp(),qv(),p6(),g6(),m6(),gp(),fp(),yp(),zp(),V6(),Sv(),Vp(),ic(),s6(),kp(),Np(),Hc(),Sc(),nc(),Rp(),Gp(),e7(),$p(),o6(),n7(),mv(),sv(),nv(),bv(),l7(),p7(),Ap(),Ep(),sc(),b7(),y7(),xh(),d7(),V7(),vv(),Av(),Kv(),Xv(),x7(),L7(),E7(),dv(),T7(),P7(),Q7(),em(),zc(),om(),nm(),Jv(),mm(),pm(),im(),l6(),fm(),ym(),Bv(),bh(),zm(),Hm()}function SS1(){Lm(),Em()}export{Ho as ACCORDION_CONSTANTS,_c as ANIMATION_FILL,P1 as APP_BAR_CONSTANTS,Ye as APP_BAR_HELP_BUTTON_CONSTANTS,ia as APP_BAR_MENU_BUTTON_CONSTANTS,g2 as APP_BAR_NOTIFICATION_BUTTON_CONSTANTS,f1 as APP_BAR_PROFILE_BUTTON_CONSTANTS,P2 as APP_BAR_SEARCH_CONSTANTS,c5 as ARIA_CONTROLS_PLACEHOLDER_ID,c1 as AUTOCOMPLETE_CONSTANTS,Dr as AVATAR_CONSTANTS,Iv as AVATAR_TAG_NAME,Es as AccordionAdapter,Io as AccordionComponent,Bs as AccordionCore,Os as AppBarAdapter,ne as AppBarComponent,Ds as AppBarCore,Vr as AppBarHelpButtonAdapter,to as AppBarHelpButtonComponent,Cr as AppBarHelpButtonCore,ma as AppBarMenuButtonComponent,ir as AppBarNotificationButtonAdapter,Ee as AppBarNotificationButtonComponent,lr as AppBarNotificationButtonCore,Pr as AppBarProfileButtonAdapter,K2 as AppBarProfileButtonComponent,Nr as AppBarProfileButtonCore,Ns as AppBarSearchAdapter,d0 as AppBarSearchComponent,Ps as AppBarSearchCore,mi as AutocompleteAdapter,p2 as AutocompleteComponent,x6 as AutocompleteComponentDelegate,di as AutocompleteCore,w6 as AutocompleteMode,ve as AvatarComponent,i2 as BACKDROP_CONSTANTS,_R as BADGE_CONSTANTS,Kh as BADGE_TAG_NAME,I2 as BANNER_CONSTANTS,J1 as BASE_DRAWER_CONSTANTS,Y as BASE_FIELD_CONSTANTS,Lt as BASE_SELECT_CONSTANTS,S1 as BOTTOM_SHEET_CONSTANTS,Dt as BUTTON_AREA_CONSTANTS,A2 as BUTTON_CONSTANTS,Ul as BUTTON_FORM_ATTRIBUTES,et as BUTTON_TOGGLE_CONSTANTS,q1 as BUTTON_TOGGLE_GROUP_CONSTANTS,Xe as BackdropComponent,le as BadgeComponent,Zh as BadgeComponentDelegate,gi as BannerAdapter,f0 as BannerComponent,wi as BannerCore,I as BaseAdapter,M as BaseComponent,Z1 as BaseComponentDelegate,lo as BaseDrawerAdapter,Qe as BaseDrawerComponent,co as BaseDrawerCore,z2 as BaseField,ba as BaseFieldAdapter,ya as BaseFieldCore,Na as BaseSelectAdapter,Vt as BaseSelectComponent,Ra as BaseSelectCore,yi as BottomSheetAdapter,Ze as BottomSheetComponent,Mi as BottomSheetCore,Ar as ButtonAdapter,zi as ButtonAreaAdapter,Ro as ButtonAreaComponent,Hi as ButtonAreaCore,T2 as ButtonComponent,Sr as ButtonComponentDelegate,Tr as ButtonCore,Ur as ButtonToggleAdapter,me as ButtonToggleComponent,Wr as ButtonToggleCore,Gr as ButtonToggleGroupAdapter,ot as ButtonToggleGroupComponent,qr as ButtonToggleGroupCore,g as CALENDAR_CONSTANTS,lp as CALENDAR_DROPDOWN_CONSTANTS,T as CALENDAR_MENU_CONSTANTS,Bc1 as CARD_CONSTANTS,hp as CARD_TAG_NAME,s5 as CDN_BASE_URL,T1 as CHECKBOX_CONSTANTS,g1 as CHIP_CONSTANTS,u2 as CHIP_FIELD_CONSTANTS,nt as CHIP_SET_CONSTANTS,S2 as CIRCULAR_PROGRESS_CONSTANTS,_1 as COLOR_PICKER_CONSTANTS,b as COMPONENT_NAME_PREFIX,Oi as CalendarAdapter,v1 as CalendarComponent,ip as CalendarComponentDelegate,Di as CalendarCore,Ha as CalendarDropdown,Vi as CalendarMenuAdapter,je as CalendarMenuComponent,Ci as CalendarMenuCore,O6 as CalendarMonthFocus,M0 as CardComponent,E4 as CellAlign,Yr as CheckboxAdapter,at as CheckboxComponent,Gv as CheckboxComponentDelegate,Kr as CheckboxCore,hi as ChipAdapter,H2 as ChipComponent,vi as ChipCore,ii as ChipFieldAdapter,No as ChipFieldComponent,d6 as ChipFieldComponentDelegate,li as ChipFieldCore,Ma as ChipSetComponent,Pi as CircularProgressAdapter,Pt as CircularProgressComponent,Ni as CircularProgressCore,Ri as ColorPickerAdapter,we as ColorPickerComponent,Gi as ColorPickerCore,v3 as ColorPickerValueType,Ht as DATE_PICKER_CONSTANTS,U2 as DATE_RANGE_PICKER_CONSTANTS,h3 as DEFAULT_COLOR,nn as DEFAULT_DATE_MASK,ja as DEFERRED_LABEL_TARGET,Ft as DEPRECATED_BUTTON_CONSTANTS,j2 as DEPRECATED_ICON_BUTTON_CONSTANTS,D as DIALOG_CONSTANTS,xa as DIVIDER_CONSTANTS,Lp as DRAWER_CONSTANTS,zo as DateInputMask,Yi as DatePickerAdapter,Ca as DatePickerComponent,bp as DatePickerComponentDelegate,Ki as DatePickerCore,$i as DatePickerRange,l2 as DateRange,Mp as DateRangeComponentDelegate,Xi as DateRangePickerAdapter,io as DateRangePickerComponent,Zi as DateRangePickerCore,Ln as DayOfWeek,ls as Deferred,Ga as DeprecatedButtonComponent,Im as DeprecatedButtonComponentDelegate,qa as DeprecatedIconButtonComponent,Cm as DeprecatedIconButtonComponentDelegate,xi as DialogAdapter,B1 as DialogComponent,bi as DialogCore,zt as DismissibleStack,eo as DividerComponent,Ea as DrawerComponent,xc as EASING,D1 as EXPANSION_PANEL_CONSTANTS,Vs as ExpansionPanelAdapter,tt as ExpansionPanelComponent,Cs as ExpansionPanelCore,L as FIELD_CONSTANTS,x1 as FILE_PICKER_CONSTANTS,c2 as FLOATING_ACTION_BUTTON_CONSTANTS,w1 as FOCUS_INDICATOR_CONSTANTS,ai as FieldAdapter,F1 as FieldComponent,ni as FieldCore,Ji as FilePickerAdapter,Qt as FilePickerComponent,Sp as FilePickerComponentDelegate,t4 as FilePickerCore,e4 as FloatingActionButtonAdapter,z0 as FloatingActionButtonComponent,Pp as FloatingActionButtonComponentDelegate,o4 as FloatingActionButtonCore,Ss as FocusIndicatorAdapter,J as FocusIndicatorComponent,ks as FocusIndicatorCore,o2 as FormFieldComponentDelegate,ns as GlobalConfiguration,ql as HAS_MERIDIEM_REGEX,t1 as ICON_BUTTON_CONSTANTS,We as ICON_CLASS_NAME,p1 as ICON_CONSTANTS,Ms as ICON_REGISTRY_KEY,mc as INITIAL_ORIGIN_SCALE,Sa as INLINE_MESSAGE_CONSTANTS,_H as INPUT_ARIA_ATTRIBUTES,xH as INPUT_PROPERTIES,ud as ISO_8601_REGEX,_d as ISO_TIMEZONE_REGEX,zs as IconAdapter,Fs as IconButtonAdapter,i1 as IconButtonComponent,Tc as IconButtonComponentDelegate,Rs as IconButtonCore,j as IconComponent,U0 as IconComponentDelegate,Is as IconCore,X as IconRegistry,ka as InlineMessageComponent,m2 as KEYBOARD_SHORTCUT_CONSTANTS,sl as KEYSTROKE_DEBOUNCE_THRESHOLD,qp as KEY_ITEM_TAG_NAME,Fp as KEY_TAG_NAME,ho as KeyComponent,Be as KeyItemComponent,a4 as KeyboardShortcutAdapter,It as KeyboardShortcutComponent,n4 as KeyboardShortcutCore,a2 as LABEL_CONSTANTS,ue as LABEL_VALUE_CONSTANTS,F2 as LINEAR_PROGRESS_CONSTANTS,C1 as LIST_CONSTANTS,h1 as LIST_ITEM_CONSTANTS,ei as LabelAdapter,de as LabelComponent,oi as LabelCore,Oa as LabelValueComponent,a7 as LabelValueComponentDelegate,ce as LinearProgressComponent,cr as ListAdapter,v2 as ListComponent,hr as ListCore,vr as ListItemAdapter,j1 as ListItemComponent,pr as ListItemCore,n1 as MENU_CONSTANTS,c7 as METER_GROUP_TAG_NAME,s7 as METER_TAG_NAME,M5 as MINIMUM_PRESS_MS,Bp as MINI_DRAWER_CONSTANTS,Ba as MODAL_DRAWER_CONSTANTS,Ir as MenuAdapter,M2 as MenuComponent,Lr as MenuCore,Y1 as MeterComponent,k2 as MeterGroupComponent,Ta as MiniDrawerComponent,ji as ModalDrawerAdapter,Aa as ModalDrawerComponent,Qi as ModalDrawerCore,f3 as NAVIGATION_KEYS,At as OPEN_ICON_CONSTANTS,R as OPTION_CONSTANTS,vo as OPTION_GROUP_CONSTANTS,B as OVERLAY_CONSTANTS,sa as OpenIconComponent,i4 as OptionAdapter,$1 as OptionComponent,l4 as OptionCore,t0 as OptionGroupComponent,u6 as OptionType,Zs as OverlayAdapter,d2 as OverlayComponent,Qs as OverlayCore,dc as PADDING,m7 as PAGE_STATE_CONSTANTS,Z as PAGINATOR_CONSTANTS,Id as PARSEABLE_TIME_FORMAT,Q as POPOVER_CONSTANTS,hv as POPOVER_HOVER_TIMEOUT,pc as PRESS_GROW_MS,uc as PRESS_PSEUDO,$ as PROFILE_CARD_CONSTANTS,Da as PageStateComponent,r4 as PaginatorAdapter,it as PaginatorComponent,s4 as PaginatorCore,fc as PointerState,dr as PopoverAdapter,R1 as PopoverComponent,wr as PopoverCore,Er as ProfileCardAdapter,Y2 as ProfileCardComponent,Br as ProfileCardCore,b1 as RADIO_CONSTANTS,fa as RADIO_GROUP_CONSTANTS,uH as REFLECTIVE_ARIA_ATTRIBUTES,Xr as RadioAdapter,_t as RadioComponent,Zr as RadioCore,jr as RadioGroupAdapter,oo as RadioGroupComponent,Qr as RadioGroupCore,Pa as SCAFFOLD_CONSTANTS,X2 as SELECT_CONSTANTS,e0 as SELECT_DROPDOWN_CONSTANTS,xr as SKELETON_CONSTANTS,bt as SKIP_LINK_CONSTANTS,V as SLIDER_CONSTANTS,wc as SOFT_EDGE_CONTAINER_RATIO,gc as SOFT_EDGE_MINIMUM_SIZE,x2 as SPLIT_BUTTON_CONSTANTS,t2 as SPLIT_VIEW_CONSTANTS,P as SPLIT_VIEW_PANEL_CONSTANTS,W2 as STACK_CONSTANTS,I1 as STATE_LAYER_CONSTANTS,F as STEPPER_CONSTANTS,k as STEP_CONSTANTS,pa as SUPPORTS_POPOVER,l1 as SWITCH_CONSTANTS,Je as ScaffoldComponent,c4 as SelectAdapter,Ae as SelectComponent,B7 as SelectComponentDelegate,h4 as SelectCore,p4 as SelectDropdownAdapter,H0 as SelectDropdownComponent,v4 as SelectDropdownCore,M7 as SelectOptionType,Q0 as SkeletonComponent,Fa as SkipLinkComponent,_2 as SliderComponent,D7 as SliderComponentDelegate,Fl as SlottedElementAdapter,B4 as SortDirection,$4 as SplitButtonAdapter,ke as SplitButtonComponent,X4 as SplitButtonCore,b4 as SplitViewAdapter,N7 as SplitViewAnimatingLayer,Te as SplitViewComponent,y4 as SplitViewCore,f4 as SplitViewPanelAdapter,L2 as SplitViewPanelComponent,x4 as SplitViewPanelCore,M4 as StackAdapter,_e as StackComponent,z4 as StackCore,As as StateLayerAdapter,r1 as StateLayerComponent,ra as StateLayerCoords,Ts as StateLayerCore,I4 as StepAdapter,Z2 as StepComponent,L4 as StepCore,V4 as StepperAdapter,Nt as StepperComponent,C4 as StepperCore,Jr as SwitchAdapter,$2 as SwitchComponent,Qv as SwitchComponentDelegate,ti as SwitchCore,_ as TABLE_CONSTANTS,N1 as TAB_BAR_CONSTANTS,K1 as TAB_CONSTANTS,E1 as TEXT_FIELD_CONSTANTS,W as TIME_PICKER_CONSTANTS,k1 as TOAST_CONSTANTS,yn as TOOLBAR_CONSTANTS,a1 as TOOLTIP_CONSTANTS,vc as TOUCH_DELAY_MS,Ed as TWELVE_HOUR_TIME_MASK,Bd as TWELVE_HOUR_TIME_MASK_WITH_SECONDS,ps as TWELVE_HOUR_TIME_REGEX,Ad as TWENTY_FOUR_HOUR_TIME_MASK,Td as TWENTY_FOUR_HOUR_TIME_MASK_WITH_SECONDS,Jo as TWENTY_FOUR_HOUR_TIME_REGEX,O4 as TabAdapter,P4 as TabBarAdapter,Ct as TabBarComponent,N4 as TabBarCore,Rt as TabComponent,D4 as TabCore,A4 as TableAdapter,X1 as TableComponent,k4 as TableCore,Db as TableFilterType,S4 as TableRow,si as TextFieldAdapter,x0 as TextFieldComponent,ao as TextFieldComponentDelegate,ri as TextFieldCore,ys as TimeInputMask,R4 as TimePickerAdapter,W1 as TimePickerComponent,xm as TimePickerComponentDelegate,W4 as TimePickerCore,G4 as ToastAdapter,Jt as ToastComponent,q4 as ToastCore,pe as ToolbarComponent,Js as TooltipAdapter,m1 as TooltipComponent,er as TooltipCore,Mm as VIEW_CONSTANTS,e2 as VIEW_SWITCHER_CONSTANTS,I3 as ViewAnimationDirection,mo as ViewComponent,Y4 as ViewSwitcherAdapter,wy as ViewSwitcherAnimationType,go as ViewSwitcherComponent,K4 as ViewSwitcherCore,ec as awaitIconDefinition,c0 as canUserHoverElements,Nl as checkVisibility,g4 as clampSize,U7 as clearState,d5 as cloneAttributes,zd as cloneProperties,Hd as cloneValidationMessage,l3 as coerceDateFromValue,yo as coerceStringToArray,vs as composedPathFrom,Z7 as createOverlay,Hs as createSanitizedSvg,Wl as createSvgFromString,kl as createUserInteractionListener,cc as defineAccordionComponent,Ic as defineAppBarComponent,yv as defineAppBarHelpButtonComponent,yh as defineAppBarMenuButtonComponent,jh as defineAppBarNotificationButtonComponent,Tv as defineAppBarProfileButtonComponent,Vc as defineAppBarSearchComponent,f6 as defineAutocompleteComponent,_a as defineAvatarComponent,y6 as defineBackdropComponent,rr as defineBadgeComponent,z6 as defineBannerComponent,B6 as defineBottomSheetComponent,A6 as defineButtonAreaComponent,zv as defineButtonComponent,Pv as defineButtonToggleComponent,Uv as defineButtonToggleGroupComponent,cp as defineCalendarComponent,S51 as defineCalendarMenuComponent,dp as defineCardComponent,qv as defineCheckboxComponent,p6 as defineChipComponent,g6 as defineChipFieldComponent,m6 as defineChipSetComponent,gp as defineCircularProgressComponent,fp as defineColorPickerComponent,TS1 as defineComponents,yp as defineDatePickerComponent,zp as defineDateRangePickerComponent,Lm as defineDeprecatedButtonComponent,SS1 as defineDeprecatedComponents,Em as defineDeprecatedIconButtonComponent,V6 as defineDialogComponent,Sv as defineDividerComponent,Vp as defineDrawerComponent,ic as defineExpansionPanelComponent,s6 as defineFieldComponent,kp as defineFilePickerComponent,Np as defineFloatingActionButtonComponent,Hc as defineFocusIndicatorComponent,Sc as defineIconButtonComponent,nc as defineIconComponent,Rp as defineInlineMessageComponent,Gp as defineKeyComponent,$p as defineKeyItemComponent,e7 as defineKeyboardShortcutComponent,o6 as defineLabelComponent,n7 as defineLabelValueComponent,mv as defineLinearProgressComponent,sv as defineListComponent,nv as defineListItemComponent,bv as defineMenuComponent,l7 as defineMeterComponent,p7 as defineMeterGroupComponent,Ap as defineMiniDrawerComponent,Ep as defineModalDrawerComponent,sc as defineOpenIconComponent,b7 as defineOptionComponent,y7 as defineOptionGroupComponent,xh as defineOverlayComponent,d7 as definePageStateComponent,V7 as definePaginatorComponent,vv as definePopoverComponent,Av as defineProfileCardComponent,Kv as defineRadioComponent,Xv as defineRadioGroupComponent,x7 as defineScaffoldComponent,L7 as defineSelectComponent,E7 as defineSelectDropdownComponent,dv as defineSkeletonComponent,T7 as defineSkipLinkComponent,P7 as defineSliderComponent,hT1 as defineSplitButtonComponent,Q7 as defineSplitViewComponent,Dy1 as defineSplitViewPanelComponent,em as defineStackComponent,zc as defineStateLayerComponent,om as defineStepComponent,nm as defineStepperComponent,Jv as defineSwitchComponent,mm as defineTabBarComponent,pm as defineTabComponent,im as defineTableComponent,l6 as defineTextFieldComponent,fm as defineTimePickerComponent,ym as defineToastComponent,Bv as defineToolbarComponent,bh as defineTooltipComponent,zm as defineViewComponent,Hm as defineViewSwitcherComponent,b0 as dialogStack,Qp as elementAcceptsTextInput,hc as elementName,Dl as elementsOverlapping,Ls as emulateUserToggle,m5 as eventIncludesArrowKey,Vn as eventIncludesDate,j6 as eventIncludesElement,ac as fetchIconContent,Xx as fixKey,Zo as forgeLabelRef,Al as formatDate,D0 as forwardAttributes,Mo as frame,n3 as getAccessibleHeader,sp as getAllYearOptions,tc as getCachedIcon,X6 as getClearButton,M3 as getCurrentTimeOfDayMillis,x3 as getCursor,o3 as getDateElement,rt as getDateId,Fo as getDateRangeFromDates,U6 as getDateRow,Ei as getDateSpacerElement,ep as getDatesFromDateRange,Si as getDatesInRange,F6 as getDayElement,I_ as getDayId,i3 as getEventDescriptions,G6 as getEventElement,W6 as getEventWrapperElement,e3 as getEventWrapperId,ki as getEventsOnDate,Cn as getFirstDateOfWeek,w31 as getFirstDayOfMonth,P6 as getFirstDayOfWeekForLocale,$6 as getFooter,te as getFormState,Bt as getFormValue,Ii as getGrid,T6 as getGridItems,X7 as getHandleIcon,a3 as getHeader,En as getIndexOfDate,l5 as getLastDateOfMonth,Q6 as getLastDateOfWeek,k6 as getList,Li as getListItems,D6 as getLocalizedDayOfMonth,t3 as getLocalizedDayOfWeek,ro as getLocalizedMonth,y0 as getLocalizedYear,Ti as getMinAndMaxDates,$x as getModiferKeysString,Y6 as getMonthButtonContent,r3 as getMonthDates,Tl as getMonthLength,ap as getMonthOptions,rp as getMultipleFromRange,fH as getPartPrefixedAttributes,Uo as getPixelDimension,S6 as getScrollSpy,_6 as getSelectedOption,Bi as getSortedDaysOfWeek,_4 as getSplitViewPanelSibling,Z6 as getTodayButton,q6 as getTooltip,ee as getValidationMessage,u4 as getValuenow,g31 as getWeekDates,N6 as getWeekendDaysForLocale,K6 as getYearButtonContent,np as getYearOptions,$7 as handleBoundariesAfterResize,w4 as handleBoundariesDuringResize,ui as hideBackdrop,Sl as highlightTextHTML,um as hoursToMillis,R7 as initState,oe as inputType,s1 as internals,ft as isDisabled,s2 as isFocusable,xt as isInMonth,L_ as isInRange,Pl as isInstanceOf,kv as isLabelAware,u3 as isOptionGroupObject,ff as isOptionObject,Mn as isOptionType,h5 as isPointerOverElement,R6 as isRtlLocale,Gl as isSafeSvg,b2 as isSameDate,w3 as isSelectOptionType,za as isSelected,$l as isSupportedTimeFormat,J6 as isToday,G7 as keyboardResize,tn as locateElementById,hs as locateTargetHeuristic,t7 as matchKeyCombination,Y7 as maxResize,cC1 as mergeDateWithTime,gm as millisToHours,U4 as millisToMinutes,wm as millisToMinutesClamped,oy as millisToSeconds,b3 as millisToSecondsClamped,lt as millisToTimeString,q7 as minResize,Wa as minutesToMillis,zn as optionEqualPredicate,K0 as overlayStack,V_ as parseDateOffset,Bl as parseDateString,Jp as parseKeyCombinations,eb as parseSize,op as parseYearRange,Ol as percentToPixels,iH as pixelsToPercent,W7 as pointerResize,nl as prefersReducedMotion,Rl as proxyShadowScrollEvent,wT1 as randomHexColor,Hn as removeAllExceptLastChild,oc as removeIconListener,Qo as replaceElement,K7 as resizeSibling,v5 as roundByDPR,lH as safeMax,k0 as safeMin,b5 as sanitizeExternalType,cs as scaleValue,y3 as secondsToMillis,Yt as setAriaControls,N as setDefaultAria,F7 as setState,s3 as setTabindexOnElement,Mt as setValidity,c3 as shouldHandleEvent,_i as showBackdrop,Ai as sortDates,tp as splitIntoWeeks,_m as stripSecondsFromMillis,ol as supportsElementInternalsAria,al as supportsHover,ss as supportsPopover,ae as task,jp as textInputTypes,F4 as timeStringToMillis,He as toggleState,Kl as tokenize12HourTimeString,Yl as tokenize24HourTimeString,$r as tryCheck,Xl as tryCoerceTimeString,Ge as tryCreateAriaControlsPlaceholder,O0 as tryDismiss,hH as unwrapElements,rs as updateTarget,cH as wrapElements};
69
+ `}_syncMeters(){this._meters.forEach(e=>{e.direction=this.direction,e.min=this.min,e.max=this.max})}_handleMeterChange(e){e.stopPropagation(),this._meters.reduce((o,a,s,r)=>(a.style.setProperty("--_meter-z-index",`${r.length-s}`),a.style.setProperty("--_meter-inset",`${o}%`),o+a.percentage),0)}_handleHeadingSlotChange(){let e=[...this._labelNodes,...this._valueNodes].filter(o=>{var a;return!!((a=o.textContent)!=null&&a.trim())});this._hasSlottedHeadingContent=!!e.length}};k2.styles=dt(of),k2.formAssociated=!0,k2[h7]=c7,i([u1({type:Number})],k2.prototype,"min",2),i([u1({type:Number})],k2.prototype,"max",2),i([u1({type:Boolean})],k2.prototype,"tickmarks",2),i([u1()],k2.prototype,"direction",2),i([u1()],k2.prototype,"density",2),i([u1()],k2.prototype,"shape",2),i([u1({attribute:"inner-shape"})],k2.prototype,"innerShape",2),i([ie()],k2.prototype,"_hasSlottedHeadingContent",2),i([j0({slot:"label"})],k2.prototype,"_labelNodes",2),i([j0({slot:"value"})],k2.prototype,"_valueNodes",2),i([qh({selector:"forge-meter"})],k2.prototype,"_meters",2),k2=i([kt(c7)],k2);function p7(){f(k2)}var af=`${b}page-state`,m7={elementName:af};var nf='<template><div class="forge-page-state" part="root"><div class="graphic" part="graphic-container"><slot name="graphic"></slot></div><div class="title" part="title-container"><slot name="title"></slot></div><div class="message" part="message-container"><slot name="message"></slot></div><div class="actions" part="actions-container"><slot name="action"></slot></div></div></template>',sf=':host{--_page-state-width:var(--forge-page-state-width, 576px);--_page-state-height:var(--forge-page-state-height, auto);--_page-state-spacing:var(--forge-page-state-spacing, var(--forge-spacing-xxxlarge, 56px));--_page-state-mobile-width:var(--forge-page-state-mobile-width, 70%);--_page-state-graphic-height:var(--forge-page-state-graphic-height, 296px);--_page-state-graphic-spacing:var(--forge-page-state-graphic-spacing, var(--forge-spacing-xxxlarge, 56px));--_page-state-mobile-graphic-height:var(--forge-page-state-mobile-graphic-height, auto);--_page-state-title-color:var(--forge-page-state-title-color, var(--forge-theme-text-medium, rgba(0, 0, 0, 0.6)));--_page-state-title-spacing:var(--forge-page-state-title-spacing, var(--forge-spacing-xxxlarge, 56px));--_page-state-title-spacing-mobile:var(--forge-page-state-title-spacing-mobile, var(--forge-spacing-large, 24px));--_page-state-message-color:var(--forge-page-state-message-color, var(--forge-theme-text-high, rgba(0, 0, 0, 0.87)));--_page-state-message-spacing:var(--forge-page-state-message-spacing, var(--forge-spacing-xxxlarge, 56px));--_page-state-message-spacing-mobile:var(--forge-page-state-message-spacing-mobile, var(--forge-spacing-large, 24px));--_page-state-actions-spacing:var(--forge-page-state-actions-spacing, 16px)}:host{display:flex;justify-content:center;align-items:center;width:100%;container-type:inline-size}:host([hidden]){display:none}.forge-page-state{width:var(--_page-state-width);margin-block:var(--_page-state-spacing);text-align:center}.forge-page-state .graphic{display:flex;justify-content:center;align-items:center;height:var(--_page-state-graphic-height);width:100%;margin-block-end:var(--_page-state-graphic-spacing)}.forge-page-state .graphic ::slotted([slot=graphic]){height:100%;width:100%}.forge-page-state .title{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-heading8-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-heading8-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-heading8-font-size-scale, 2.25)));font-weight:var(--forge-typography-heading8-font-weight,500);line-height:var(--forge-typography-heading8-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-heading8-line-height-scale, 2.625)));letter-spacing:var(--forge-typography-heading8-letter-spacing, -.0027777778em);text-transform:var(--forge-typography-heading8-text-transform,inherit);text-decoration:var(--forge-typography-heading8-text-decoration,inherit);--_page-state-title-spacing:var(--_page-state-title-spacing-mobile);color:var(--_page-state-title-color);margin-block:var(--_page-state-title-spacing)}.forge-page-state .message{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-body4-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-body4-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-font-size-scale, 1.25)));font-weight:var(--forge-typography-body4-font-weight,400);line-height:var(--forge-typography-body4-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-line-height-scale, 1.75)));letter-spacing:var(--forge-typography-body4-letter-spacing, .005em);text-transform:var(--forge-typography-body4-text-transform,inherit);text-decoration:var(--forge-typography-body4-text-decoration,inherit);--_page-state-message-spacing:var(--_page-state-message-spacing-mobile);color:var(--_page-state-message-color);margin-block-end:var(--_page-state-message-spacing)}.forge-page-state .actions{display:grid;justify-content:center;grid-auto-flow:column;gap:var(--_page-state-actions-spacing)}@container (max-width:599px){.forge-page-state{--_page-state-width:var(--_page-state-mobile-width)}.forge-page-state .graphic{--_page-state-graphic-height:var(--_page-state-mobile-graphic-height);--_page-state-graphic-spacing:var(--forge-page-state-graphic-spacing, 0)}.forge-page-state .title{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-heading5-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-heading5-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-heading5-font-size-scale, 1.5)));font-weight:var(--forge-typography-heading5-font-weight,500);line-height:var(--forge-typography-heading5-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-heading5-line-height-scale, 1.75)));letter-spacing:var(--forge-typography-heading5-letter-spacing, 0);text-transform:var(--forge-typography-heading5-text-transform,inherit);text-decoration:var(--forge-typography-heading5-text-decoration,inherit)}.forge-page-state .message{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-body2-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-body2-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-font-size-scale, 1)));font-weight:var(--forge-typography-body2-font-weight,400);line-height:var(--forge-typography-body2-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-line-height-scale, 1.375)));letter-spacing:var(--forge-typography-body2-letter-spacing, .015625em);text-transform:var(--forge-typography-body2-text-transform,inherit);text-decoration:var(--forge-typography-body2-text-decoration,inherit)}.forge-page-state .actions{grid-auto-flow:row}}',Da=class extends M{constructor(){super(),z(this,nf,sf)}};Da=i([y({name:m7.elementName})],Da);function d7(){f(Da)}var g7=`${b}paginator`,w7={PAGE_INDEX:"page-index",PAGE_SIZE:"page-size",OFFSET:"offset",TOTAL:"total",PAGE_SIZE_OPTIONS:"page-size-options",LABEL:"label",FIRST_LAST:"first-last",FIRST:"first",DISABLED:"disabled",ALTERNATIVE:"alternative"},rf=d({},w7),lf={LABEL:".label > slot[name=label]",PAGE_SIZE_SELECT:".page-size-options",RANGE_LABEL:".range-label > slot[name=range-label]",FIRST_PAGE_BUTTON:".first-page",FIRST_PAGE_CONTAINER:"#first-page-container",PREVIOUS_PAGE_BUTTON:".previous-page",PREVIOUS_PAGE_CONTAINER:"#previous-page-container",NEXT_PAGE_BUTTON:".next-page",NEXT_PAGE_CONTAINER:"#next-page-container",LAST_PAGE_BUTTON:".last-page",LAST_PAGE_CONTAINER:"#last-page-container",RANGE_LABEL_ALTERNATIVE:".alternative-range-label > slot[name=alternative-range-label]"},cf={CHANGE:`${g7}-change`},hf={DEFAULT_PAGE_INDEX:0,DEFAULT_TOTAL:0,DEFAULT_PAGE_SIZE:25,DEFAULT_PAGE_SIZE_OPTIONS:[5,15,25,50,100]},vf={DEFAULT_LABEL:"Rows per page:",RANGE_SEPARATOR_LABEL:"of"},Z={elementName:g7,observedAttributes:w7,attributes:rf,selectors:lf,events:cf,numbers:hf,strings:vf};var s4=class{constructor(t){this._adapter=t;this._pageIndex=Z.numbers.DEFAULT_PAGE_INDEX;this._pageSize=Z.numbers.DEFAULT_PAGE_SIZE;this._offset=0;this._total=Z.numbers.DEFAULT_TOTAL;this._pageSizeOptions=Z.numbers.DEFAULT_PAGE_SIZE_OPTIONS.map(t=>({label:`${t}`,value:`${t}`}));this._label=Z.strings.DEFAULT_LABEL;this._firstLast=!1;this._first=!1;this._disabled=!1;this._alternative=!1;this._firstPageListener=this._onFirstPage.bind(this);this._previousPageListener=this._onPreviousPage.bind(this);this._nextPageListener=this._onNextPage.bind(this);this._lastPageListener=this._onLastPage.bind(this);this._pageSizeListener=this._onPageSizeChanged.bind(this)}initialize(){this._updateRangeLabel(),this._adapter.setLabel(this._label),this._adapter.setPageSizeOptions(this._pageSizeOptions),this._adapter.setPageSize(this._pageSize),this._attachListeners(),this._toggleFirstLastButtons(),this._syncInteractionState()}focus(t){this._adapter.setFocus(t)}_attachListeners(){this._adapter.attachPageSizeChangeListener(this._pageSizeListener),this._adapter.attachFirstPageListener(this._firstPageListener),this._adapter.attachPreviousPageListener(this._previousPageListener),this._adapter.attachNextPageListener(this._nextPageListener),this._adapter.attachLastPageListener(this._lastPageListener)}_onFirstPage(t){if(t.stopPropagation(),!this._hasFirstPage())return;let e=0;this._dispatchChangeEvent("first-page",{pageIndex:e})&&this._applyPageIndex(e)}_onPreviousPage(t){if(t.stopPropagation(),!this._hasPreviousPage())return;let e=this._pageIndex-1;this._dispatchChangeEvent("previous-page",{pageIndex:e})&&this._applyPageIndex(e)}_onNextPage(t){if(t.stopPropagation(),!this._hasNextPage())return;let e=this._pageIndex+1;this._dispatchChangeEvent("next-page",{pageIndex:e})&&this._applyPageIndex(e)}_onLastPage(t){if(t.stopPropagation(),!this._hasLastPage())return;let e=this._getMaxPages();this._dispatchChangeEvent("last-page",{pageIndex:e})&&this._applyPageIndex(e)}_onPageSizeChanged(t){t.stopPropagation();let e=Number(t.detail);this._dispatchChangeEvent("page-size",{pageIndex:0,pageSize:e})?(this._applyPageIndex(0),this._applyPageSize(e)):t.preventDefault()}_dispatchChangeEvent(t,{pageSize:e=this._pageSize,pageIndex:o=this._pageIndex}={}){let a=o*e,s={type:t,pageSize:e,pageIndex:o,offset:a},r=new CustomEvent(Z.events.CHANGE,{detail:s,bubbles:!0,cancelable:!0});return this._adapter.dispatchHostEvent(r),!r.defaultPrevented}_getMaxPages(){return Math.ceil(this._total/this._pageSize)-1}_updateRangeLabel(){let t;if(typeof this._rangeLabelCallback=="function"){let e={pageSize:this._pageSize,pageIndex:this._pageIndex,offset:this._offset,pageStart:this._pageIndex*this._pageSize+1,pageEnd:Math.min((this._pageIndex+1)*this._pageSize,this._total),total:this._total};t=this._rangeLabelCallback.call(null,e)}else if(this.pageSize>1){let e=this._pageIndex*this._pageSize,a=(Math.floor(e/this._pageSize)||0)*this._pageSize+1,s=e<this._total?Math.min(e+this._pageSize,this._total):e+this._pageSize;t=`${a}-${s} ${Z.strings.RANGE_SEPARATOR_LABEL} ${this._total}`}else t=`${this._pageIndex+1} ${Z.strings.RANGE_SEPARATOR_LABEL} ${this._total}`;this._adapter.setRangeLabel(t)}_syncInteractionState(){if(this._disabled)return;this._adapter.setFirstPageButtonEnabled(!0),this._adapter.setPreviousPageButtonEnabled(!0),this._adapter.setNextPageButtonEnabled(!0),this._adapter.setLastPageButtonEnabled(!0);let t=[];this._hasFirstPage()||t.push("first"),this._hasPreviousPage()||t.push("previous"),this._hasNextPage()||t.push("next"),this._hasLastPage()||t.push("last"),this._adapter.tryDisableFields(t)}_toggleFirstLastButtons(){this._toggleFirstButton(),this._firstLast?this._adapter.hasLastPageButton()||this._adapter.showLastPageButton():this._adapter.hasLastPageButton()&&this._adapter.hideLastPageButton()}_toggleFirstButton(){this._first||this._firstLast?this._adapter.hasFirstPageButton()||this._adapter.showFirstPageButton():this._adapter.hasFirstPageButton()&&this._adapter.hideFirstPageButton()}_hasFirstPage(){return this._hasPreviousPage()}_hasPreviousPage(){return this._pageIndex>0&&this._pageSize>0}_hasNextPage(){let t=this._getMaxPages();return this._pageIndex<t&&this._pageSize>0}_hasLastPage(){return this._hasNextPage()}_computePageIndexFromOffset(t){t>=this._total&&(this._total>=this._pageSize?t=this._total-this._pageSize:t=0);let e=Math.min(Math.max(t,0),this._total),o=Math.floor(e/this._pageSize);this._applyPageIndex(o)}_computeOffset(){this._total>0&&(this._offset=this._pageIndex*this._pageSize)}_applyPageIndex(t){this._pageIndex=t,this._computeOffset(),this._updateRangeLabel(),this._syncInteractionState(),this._adapter.toggleHostAttribute(Z.attributes.PAGE_INDEX,this._pageIndex!=null,this._pageIndex.toString())}_applyPageSize(t){this._pageSize=t,this._adapter.setPageSize(this._pageSize),this._computeOffset(),this._updateRangeLabel(),this._syncInteractionState()}_applyTotal(t){this._total=t,this._updateRangeLabel(),this._offset>0&&this._total>0&&this._computePageIndexFromOffset(this._offset),this._syncInteractionState()}_applyDisabled(t){this._disabled=t,t?(this._adapter.setPageSizeSelectEnabled(!1),this._adapter.setFirstPageButtonEnabled(!1),this._adapter.setPreviousPageButtonEnabled(!1),this._adapter.setNextPageButtonEnabled(!1),this._adapter.setLastPageButtonEnabled(!1)):(this._adapter.setPageSizeSelectEnabled(!0),this._syncInteractionState())}get pageIndex(){return this._pageIndex}set pageIndex(t){this._pageIndex!==t&&(O(t)?this._applyPageIndex(t):this._adapter.removeHostAttribute(Z.attributes.PAGE_INDEX))}get pageSize(){return this._pageSize}set pageSize(t){this._pageSize!==t&&(this._applyPageSize(t),this._adapter.setHostAttribute(Z.attributes.PAGE_SIZE,`${this._pageSize}`))}get offset(){return this._offset}set offset(t){this._offset!==t&&(this._offset=t,this._computePageIndexFromOffset(t))}get total(){return this._total}set total(t){this._total!==t&&(this._applyTotal(t),this._adapter.setHostAttribute(Z.attributes.TOTAL,`${this._total}`))}get pageSizeOptions(){return this._pageSizeOptions.map(t=>Number(t.value))}set pageSizeOptions(t){if(ht(t)&&t.length){if(this._pageSizeOptions=t.map(e=>({label:e.toString(),value:e.toString()})).sort((e,o)=>K(e.value)-K(o.value)),this._adapter.setPageSizeOptions(this._pageSizeOptions),this._adapter.attachPageSizeChangeListener(this._pageSizeListener),this._adapter.setPageSizeVisibility(!0),O(this._pageSize)&&this._pageSizeOptions.length&&!this._pageSizeOptions.find(e=>K(e.value)===this._pageSize)){let e=K(this._pageSizeOptions[0].value);this._applyPageSize(e)}}else t!=null&&t.length||(this._adapter.detachPageSizeChangeListener(this._pageSizeListener),this._adapter.setPageSizeVisibility(!1))}get label(){return this._label}set label(t){this._label!==t&&(this._label=t,this._adapter.setLabel(this._label),O(this._label)&&this._label.length?this._adapter.setHostAttribute(Z.attributes.LABEL,String(this._label)):this._adapter.removeHostAttribute(Z.attributes.LABEL))}get firstLast(){return this._firstLast}set firstLast(t){t=!!t,this._firstLast!==t&&(this._firstLast=t,this._toggleFirstLastButtons(),this._adapter.toggleHostAttribute(Z.attributes.FIRST_LAST,this._firstLast))}get first(){return this._first}set first(t){t=!!t,this._first!==t&&(this._first=t,this._toggleFirstButton(),this._adapter.toggleHostAttribute(Z.attributes.FIRST,this._first))}get disabled(){return this._disabled}set disabled(t){t=!!t,this._disabled!==t&&(this._applyDisabled(t),this._adapter.toggleHostAttribute(Z.attributes.DISABLED,this._disabled))}get alternative(){return this._alternative}set alternative(t){t=!!t,t!==this._alternative&&(this._alternative=t,this._adapter.toggleHostAttribute(Z.attributes.ALTERNATIVE,this._alternative))}get rangeLabelCallback(){return this._rangeLabelCallback}set rangeLabelCallback(t){this._rangeLabelCallback=t,this._updateRangeLabel()}};var r4=class extends I{constructor(t){super(t),this._labelElement=w(t,Z.selectors.LABEL),this._pageSizeSelect=w(t,Z.selectors.PAGE_SIZE_SELECT),this._rangeLabel=w(t,Z.selectors.RANGE_LABEL),this._rangeLabelAlternative=w(t,Z.selectors.RANGE_LABEL_ALTERNATIVE),this._firstPageButton=w(t,Z.selectors.FIRST_PAGE_BUTTON),this._firstPageContainer=w(t,Z.selectors.FIRST_PAGE_CONTAINER),this._previousPageButton=w(t,Z.selectors.PREVIOUS_PAGE_BUTTON),this._previousPageContainer=w(t,Z.selectors.PREVIOUS_PAGE_CONTAINER),this._nextPageButton=w(t,Z.selectors.NEXT_PAGE_BUTTON),this._nextPageContainer=w(t,Z.selectors.NEXT_PAGE_CONTAINER),this._lastPageButton=w(t,Z.selectors.LAST_PAGE_BUTTON),this._lastPageContainer=w(t,Z.selectors.LAST_PAGE_CONTAINER)}setLabel(t){this._labelElement.textContent=t}setPageSizeOptions(t){n2(this._pageSizeSelect),this._pageSizeSelect.options=t}setPageSize(t){this._pageSizeSelect.value=t.toString()}setRangeLabel(t){this._rangeLabel.innerText=t,this._rangeLabelAlternative.innerText=t}hasFirstPageButton(){return!!w(this._component,Z.selectors.FIRST_PAGE_BUTTON)}showFirstPageButton(){this._firstPagePlaceholder=Za(this._component,!0,Z.elementName,Z.selectors.FIRST_PAGE_CONTAINER,this._firstPageContainer,this._firstPagePlaceholder)}hideFirstPageButton(){this._firstPagePlaceholder=Za(this._component,!1,Z.elementName,Z.selectors.FIRST_PAGE_CONTAINER,this._firstPageContainer,this._firstPagePlaceholder)}hasLastPageButton(){return!!w(this._component,Z.selectors.LAST_PAGE_BUTTON)}showLastPageButton(){this._lastPagePlaceholder=Za(this._component,!0,Z.elementName,Z.selectors.LAST_PAGE_CONTAINER,this._lastPageContainer,this._lastPagePlaceholder)}hideLastPageButton(){this._lastPagePlaceholder=Za(this._component,!1,Z.elementName,Z.selectors.LAST_PAGE_CONTAINER,this._lastPageContainer,this._lastPagePlaceholder)}attachPageSizeChangeListener(t){this._pageSizeSelect.addEventListener("change",t)}detachPageSizeChangeListener(t){this._pageSizeSelect.removeEventListener("change",t)}attachFirstPageListener(t){this._firstPageButton.addEventListener("click",t)}attachPreviousPageListener(t){this._previousPageButton.addEventListener("click",t)}attachNextPageListener(t){this._nextPageButton.addEventListener("click",t)}attachLastPageListener(t){this._lastPageButton.addEventListener("click",t)}setFirstPageButtonEnabled(t){this._firstPageButton.disabled=!t}setPreviousPageButtonEnabled(t){this._previousPageButton.disabled=!t}setNextPageButtonEnabled(t){this._nextPageButton.disabled=!t}setLastPageButtonEnabled(t){this._lastPageButton.disabled=!t}setPageSizeSelectEnabled(t){this._pageSizeSelect.disabled=!t}setPageSizeVisibility(t){this._pageSizeSelect.hidden=!t}setFocus(t){this._tryFocus([this._pageSizeSelect,this._firstPageButton,this._previousPageButton,this._nextPageButton,this._lastPageButton],t)}tryDisableFields(t){let e={first:()=>this.setFirstPageButtonEnabled(!1),last:()=>this.setLastPageButtonEnabled(!1),previous:()=>this.setPreviousPageButtonEnabled(!1),next:()=>this.setNextPageButtonEnabled(!1)};t.forEach(o=>{var a;return(a=e[o])==null?void 0:a.call(e)})}_tryFocus(t,e){let o=typeof(e==null?void 0:e.preventScroll)=="boolean"?e.preventScroll:!0;for(let a of t)if(a&&a.isConnected&&!a.disabled&&a.style.display!=="none"){a.focus(S(d({},e),{preventScroll:o}));return}}};function u7(n){class t extends n{constructor(...o){super(...o)}initializeFieldInstance(o){this._fieldElement=o,this._fieldElement.shadowRoot||window.customElements.upgrade(this._fieldElement)}attributeChangedCallback(o,a,s){var r;switch(o){case Y.observedAttributes.LABEL_POSITION:this.labelPosition=s;return;case Y.observedAttributes.LABEL_ALIGNMENT:this.labelAlignment=s;return;case Y.observedAttributes.INVALID:this.invalid=p(s);return;case Y.observedAttributes.REQUIRED:this.required=p(s);return;case Y.observedAttributes.OPTIONAL:this.optional=p(s);return;case Y.observedAttributes.DISABLED:this.disabled=p(s);return;case Y.observedAttributes.FLOAT_LABEL:this.floatLabel=p(s);return;case Y.observedAttributes.VARIANT:this.variant=s;return;case Y.observedAttributes.THEME:this.theme=s;return;case Y.observedAttributes.SHAPE:this.shape=s;return;case Y.observedAttributes.DENSITY:this.density=s;return;case Y.observedAttributes.DENSE:this.dense=p(s);return;case Y.observedAttributes.POPOVER_ICON:this.popoverIcon=p(s);return;case Y.observedAttributes.SUPPORT_TEXT_INSET:this.supportTextInset=s;return}(r=super.attributeChangedCallback)==null||r.call(this,o,a,s)}get labelPosition(){return this._fieldElement.labelPosition}set labelPosition(o){this._fieldElement.labelPosition!==o&&(this._fieldElement.labelPosition=o,this.setAttribute(L.attributes.LABEL_POSITION,o))}get labelAlignment(){return this._fieldElement.labelAlignment}set labelAlignment(o){this._fieldElement.labelAlignment!==o&&(this._fieldElement.labelAlignment=o,this.setAttribute(L.attributes.LABEL_ALIGNMENT,o))}get invalid(){return this._fieldElement.invalid}set invalid(o){this._fieldElement.invalid!==o&&(this._fieldElement.invalid=o,this.toggleAttribute(L.attributes.INVALID,o))}get required(){return this._fieldElement.required}set required(o){this._fieldElement.required!==o&&(this._fieldElement.required=o,this.toggleAttribute(L.attributes.REQUIRED,o))}get optional(){return this._fieldElement.optional}set optional(o){this._fieldElement.optional!==o&&(this._fieldElement.optional=o,this.toggleAttribute(L.attributes.OPTIONAL,o))}get disabled(){return this._fieldElement.disabled}set disabled(o){this._fieldElement.disabled!==o&&(this._fieldElement.disabled=o,this.toggleAttribute(L.attributes.DISABLED,o))}get floatLabel(){return this._fieldElement.floatLabel}set floatLabel(o){this._fieldElement.floatLabel!==o&&(this._fieldElement.floatLabel=o,this.toggleAttribute(L.attributes.FLOAT_LABEL,o))}get variant(){return this._fieldElement.variant}set variant(o){this._fieldElement.variant!==o&&(this._fieldElement.variant=o,this.setAttribute(L.attributes.VARIANT,o))}get theme(){return this._fieldElement.theme}set theme(o){this._fieldElement.theme!==o&&(this._fieldElement.theme=o,this.setAttribute(L.attributes.THEME,o))}get shape(){return this._fieldElement.shape}set shape(o){this._fieldElement.shape!==o&&(this._fieldElement.shape=o,this.setAttribute(L.attributes.SHAPE,o))}get density(){return this._fieldElement.density}set density(o){this._fieldElement.density!==o&&(this._fieldElement.density=o,this.setAttribute(L.attributes.DENSITY,o))}get dense(){return this._fieldElement.dense}set dense(o){this._fieldElement.dense!==o&&(this._fieldElement.dense=o,this.toggleAttribute(L.attributes.DENSE,o))}get popoverIcon(){return this._fieldElement.popoverIcon}set popoverIcon(o){this._fieldElement.popoverIcon!==o&&(this._fieldElement.popoverIcon=o,this.toggleAttribute(L.attributes.POPOVER_ICON,o))}get supportTextInset(){return this._fieldElement.supportTextInset}set supportTextInset(o){this._fieldElement.supportTextInset!==o&&(this._fieldElement.supportTextInset=o,this.setAttribute(L.attributes.SUPPORT_TEXT_INSET,o))}floatLabelWithoutAnimation(o){this._fieldElement.floatLabelWithoutAnimation(o)}}return t}var pf=`${b}scaffold`,_7={VIEWPORT:"viewport"},mf=d({},_7),Pa={elementName:pf,observedAttributes:_7,attributes:mf};var df='<template><div class="forge-scaffold" part="root"><slot name="left"></slot><div class="header" part="header"><slot name="header"></slot></div><div class="body" part="body"><slot name="body-left"></slot><slot name="body-header"></slot><slot name="body"></slot><slot name="body-footer"></slot><slot name="body-right"></slot></div><slot name="footer"></slot><slot name="right"></slot></div></template>',gf=':host{--_scaffold-height:var(--forge-scaffold-height, 100%);--_scaffold-width:var(--forge-scaffold-width, 100%)}:host{display:block;width:var(--_scaffold-width);height:var(--_scaffold-height)}:host([hidden]){display:none}.forge-scaffold{--_scaffold-overflow:var(--forge-scaffold-overflow, initial);--_scaffold-body-position:var(--forge-scaffold-body-position, relative)}.forge-scaffold{position:relative;display:grid;grid-template-areas:"left header right" "left body right" "left footer right";grid-template-rows:auto 1fr auto;grid-template-columns:auto 1fr auto;height:var(--_scaffold-height);width:var(--_scaffold-width);overflow:var(--_scaffold-overflow)}.header{grid-area:header;min-width:0;min-height:0}.body{position:var(--_scaffold-body-position);display:grid;grid-area:body;grid-template-areas:"body-left body-header body-right" "body-left body-inner body-right" "body-left body-footer body-right";grid-template-rows:auto 1fr auto;grid-template-columns:auto 1fr auto;width:var(--_scaffold-width);min-width:0;min-height:0;overflow:var(--_scaffold-overflow)}::slotted(*){min-width:0;min-height:0}::slotted([slot=left]){grid-area:left}::slotted([slot=right]){grid-area:right}::slotted([slot=body-left]){grid-area:body-left}::slotted([slot=body-right]){grid-area:body-right}::slotted([slot=body-header]){grid-area:body-header}::slotted([slot=body]){overflow:auto;grid-area:body-inner}::slotted([slot=body-footer]){grid-area:body-footer}::slotted([slot=footer]){grid-area:footer}::slotted([slot=body-left]),::slotted([slot=body-right]),::slotted([slot=body]),::slotted([slot=left]),::slotted([slot=right]){overflow:auto}:host([viewport]){--_scaffold-height:var(--forge-scaffold-height, 100dvh);--_scaffold-width:var(--forge-scaffold-width, 100dvw)}',Je=class extends M{static get observedAttributes(){return Object.values(Pa.observedAttributes)}constructor(){super(),z(this,df,gf)}attributeChangedCallback(t,e,o){switch(t){case Pa.observedAttributes.VIEWPORT:this.viewport=o!==null;break}}get viewport(){return this.hasAttribute(Pa.attributes.VIEWPORT)}set viewport(t){this.toggleAttribute(Pa.attributes.VIEWPORT,!!t)}};Je=i([y({name:Pa.elementName})],Je);function x7(){f(Je)}var i4=class extends I{constructor(t){super(t)}};var f7=`${b}option`,wf={DISABLED:"disabled",DIVIDER:"divider",LABEL:"label",SECONDARY_LABEL:"secondary-label",LEADING_ICON_CLASS:"leading-icon-class",LEADING_ICON_TYPE:"leading-icon-type",LEADING_ICON:"leading-icon",OPTION_CLASS:"option-class",TRAILING_ICON_CLASS:"trailing-icon-class",TRAILING_ICON_TYPE:"trailing-icon-type",TRAILING_ICON:"trailing-icon",TOOLTIP:"tooltip",VALUE:"value"},uf={VALUE_CHANGE:`${f7}-value-change`},R={elementName:f7,attributes:wf,events:uf};var l4=class{constructor(t){this._adapter=t;this._disabled=!1;this._divider=!1;this._optionClass=[]}get value(){return this._value}set value(t){this._value!==t&&(this._value=t,this._adapter.emitHostEvent(R.events.VALUE_CHANGE,this._value))}get label(){return this._label}set label(t){this._label!==t&&(this._label=t,this._adapter.toggleHostAttribute(R.attributes.LABEL,!!this._label,this._label))}get secondaryLabel(){return this._secondaryLabel}set secondaryLabel(t){this._secondaryLabel!==t&&(this._secondaryLabel=t,this._adapter.toggleHostAttribute(R.attributes.SECONDARY_LABEL,!!this._secondaryLabel,this._secondaryLabel))}get disabled(){return this._disabled}set disabled(t){this._disabled!==t&&(this._disabled=t,this._adapter.toggleHostAttribute(R.attributes.DISABLED,this._disabled))}get divider(){return this._divider}set divider(t){this._divider!==t&&(this._divider=t,this._adapter.toggleHostAttribute(R.attributes.DIVIDER,this._divider))}get optionClass(){return this._optionClass}set optionClass(t){t?typeof t=="string"&&(t=t.split(" ")):t=[],t=t.filter(e=>e&&!/\s+/.test(e)),this._optionClass.toString()!==t.toString()&&(this._optionClass=t,this._adapter.toggleHostAttribute(R.attributes.OPTION_CLASS,this._optionClass&&!!this._optionClass.length,this._optionClass.join(" ")))}get leadingIcon(){return this._leadingIcon}set leadingIcon(t){this._leadingIcon!==t&&(this._leadingIcon=t,this._adapter.toggleHostAttribute(R.attributes.LEADING_ICON,!!this._leadingIcon,this._leadingIcon))}get leadingIconClass(){return this._leadingIconClass}set leadingIconClass(t){this._leadingIconClass!==t&&(this._leadingIconClass=t,this._adapter.toggleHostAttribute(R.attributes.LEADING_ICON_CLASS,!!this._leadingIconClass,this._leadingIconClass))}get leadingIconType(){return this._leadingIconType}set leadingIconType(t){this._leadingIconType!==t&&(this._leadingIconType=t,this._adapter.toggleHostAttribute(R.attributes.LEADING_ICON_TYPE,!!this._leadingIconType,this._leadingIconType))}get leadingIconComponentProps(){return this._leadingIconComponentProps}set leadingIconComponentProps(t){this._leadingIconComponentProps!==t&&(this._leadingIconComponentProps=t)}get trailingIcon(){return this._trailingIcon}set trailingIcon(t){this._trailingIcon!==t&&(this._trailingIcon=t,this._adapter.toggleHostAttribute(R.attributes.TRAILING_ICON,!!this._trailingIcon,this._trailingIcon))}get trailingIconClass(){return this._trailingIconClass}set trailingIconClass(t){this._trailingIconClass!==t&&(this._trailingIconClass=t,this._adapter.toggleHostAttribute(R.attributes.TRAILING_ICON_CLASS,!!this._trailingIconClass,this._trailingIconClass))}get trailingIconType(){return this._trailingIconType}set trailingIconType(t){this._trailingIconType!==t&&(this._trailingIconType=t,this._adapter.toggleHostAttribute(R.attributes.TRAILING_ICON_TYPE,!!this._trailingIconType,this._trailingIconType))}get trailingIconComponentProps(){return this._trailingIconComponentProps}set trailingIconComponentProps(t){this._trailingIconComponentProps!==t&&(this._trailingIconComponentProps=t)}get leadingBuilder(){return this._leadingBuilder}set leadingBuilder(t){this._leadingBuilder!==t&&(this._leadingBuilder=t)}get trailingBuilder(){return this._trailingBuilder}set trailingBuilder(t){this._trailingBuilder!==t&&(this._trailingBuilder=t)}get tooltip(){return this._tooltip}set tooltip(t){this._tooltip!==t&&(this._tooltip=t)}};var $1=class extends M{static get observedAttributes(){return[R.attributes.VALUE,R.attributes.LABEL,R.attributes.SECONDARY_LABEL,R.attributes.DISABLED,R.attributes.DIVIDER,R.attributes.OPTION_CLASS,R.attributes.LEADING_ICON,R.attributes.LEADING_ICON_CLASS,R.attributes.LEADING_ICON_TYPE,R.attributes.TRAILING_ICON,R.attributes.TRAILING_ICON_CLASS,R.attributes.TRAILING_ICON_TYPE,R.attributes.TOOLTIP]}constructor(){super(),this._core=new l4(new i4(this))}attributeChangedCallback(t,e,o){switch(t){case R.attributes.VALUE:this.value=o;break;case R.attributes.LABEL:this.label=o;break;case R.attributes.SECONDARY_LABEL:this.secondaryLabel=o;break;case R.attributes.DISABLED:this.disabled=p(o);break;case R.attributes.DIVIDER:this.divider=this.hasAttribute(R.attributes.DIVIDER);break;case R.attributes.OPTION_CLASS:this.optionClass=o;break;case R.attributes.LEADING_ICON:this.leadingIcon=o;break;case R.attributes.LEADING_ICON_CLASS:this.leadingIconClass=o;break;case R.attributes.LEADING_ICON_TYPE:this.leadingIconType=o;break;case R.attributes.TRAILING_ICON:this.trailingIcon=o;break;case R.attributes.TRAILING_ICON_CLASS:this.trailingIconClass=o;break;case R.attributes.TRAILING_ICON_TYPE:this.trailingIconType=o;break;case R.attributes.TOOLTIP:this.tooltip=o?{text:o}:void 0;break}}};i([c()],$1.prototype,"value",2),i([c()],$1.prototype,"label",2),i([c()],$1.prototype,"secondaryLabel",2),i([c()],$1.prototype,"disabled",2),i([c()],$1.prototype,"divider",2),i([c()],$1.prototype,"optionClass",2),i([c()],$1.prototype,"leadingIcon",2),i([c()],$1.prototype,"leadingIconClass",2),i([c()],$1.prototype,"leadingIconType",2),i([c()],$1.prototype,"leadingIconComponentProps",2),i([c()],$1.prototype,"trailingIcon",2),i([c()],$1.prototype,"trailingIconClass",2),i([c()],$1.prototype,"trailingIconType",2),i([c()],$1.prototype,"trailingIconComponentProps",2),i([c()],$1.prototype,"leadingBuilder",2),i([c()],$1.prototype,"trailingBuilder",2),i([c()],$1.prototype,"tooltip",2),$1=i([y({name:R.elementName})],$1);function b7(){f($1)}var _f=`${b}option-group`,xf={LABEL:"label"},vo={elementName:_f,attributes:xf};var t0=class extends M{static get observedAttributes(){return[vo.attributes.LABEL]}constructor(){super()}attributeChangedCallback(t,e,o){switch(t){case vo.attributes.LABEL:this.label=o;break}}get label(){return this._label}set label(t){this._label!==t&&(this._label=t||"",this.setAttribute(vo.attributes.LABEL,this._label))}get text(){return this._label}set text(t){this.label=t}};t0=i([y({name:vo.elementName})],t0);function y7(){f(t0)}var M7=(e=>(e[e.Option=0]="Option",e[e.Group=1]="Group",e))(M7||{});function w3(n,t){let e=n.some(a=>u3(a)),o=n.some(a=>ff(a));return e&&t===1||o&&t===0}function u3(n){return O(n)&&vt(n)&&Object.prototype.hasOwnProperty.call(n,"options")}function ff(n){return O(n)&&vt(n)&&Object.prototype.hasOwnProperty.call(n,"label")&&Object.prototype.hasOwnProperty.call(n,"value")}var Na=class extends I{constructor(t){super(t)}get popupElement(){var t;return(t=this._listDropdown)==null?void 0:t.dropdownElement}getOptions(){let t=Array.from(this._component.querySelectorAll(vo.elementName));if(t.length)return t.map(e=>{let o=Array.from(e.querySelectorAll(R.elementName)),a=this._createOptionsFromElements(o);return{text:e.label,builder:e.builder,value:e.value,options:a}});{let e=Array.from(this._component.querySelectorAll(R.elementName));return this._createOptionsFromElements(e)}}_createOptionsFromElements(t){return t.map(e=>{let o=e.hasAttribute(R.attributes.OPTION_CLASS)?e.getAttribute(R.attributes.OPTION_CLASS):e.optionClass;return typeof o=="string"&&(o=o.split(" ")),{label:e.hasAttribute(R.attributes.LABEL)?e.getAttribute(R.attributes.LABEL):O(e.label)?e.label:e.innerText,secondaryLabel:e.hasAttribute(R.attributes.SECONDARY_LABEL)?e.getAttribute(R.attributes.SECONDARY_LABEL):O(e.secondaryLabel)?e.secondaryLabel:void 0,value:e.hasAttribute(R.attributes.VALUE)?e.getAttribute(R.attributes.VALUE):e.value,disabled:e.hasAttribute(R.attributes.DISABLED),divider:e.hasAttribute(R.attributes.DIVIDER),optionClass:o,leadingIcon:e.hasAttribute(R.attributes.LEADING_ICON)?e.getAttribute(R.attributes.LEADING_ICON):e.leadingIcon,leadingIconClass:e.hasAttribute(R.attributes.LEADING_ICON_CLASS)?e.getAttribute(R.attributes.LEADING_ICON_CLASS):e.leadingIconClass,leadingIconType:e.hasAttribute(R.attributes.LEADING_ICON_TYPE)?e.getAttribute(R.attributes.LEADING_ICON_TYPE):e.leadingIconType,leadingIconComponentProps:e.leadingIconComponentProps,trailingIcon:e.hasAttribute(R.attributes.TRAILING_ICON)?e.getAttribute(R.attributes.TRAILING_ICON):e.trailingIcon,trailingIconClass:e.hasAttribute(R.attributes.TRAILING_ICON_CLASS)?e.getAttribute(R.attributes.TRAILING_ICON_CLASS):e.trailingIconClass,trailingIconType:e.hasAttribute(R.attributes.TRAILING_ICON_TYPE)?e.getAttribute(R.attributes.TRAILING_ICON_TYPE):e.trailingIconType,trailingIconComponentProps:e.trailingIconComponentProps,leadingBuilder:e.leadingBuilder,trailingBuilder:e.trailingBuilder,tooltip:e.tooltip}})}open(t){var e;if(this._listDropdown=new qe(this._targetElement,t),this._listDropdown.open(),this._component.id){let o=(e=this._listDropdown.dropdownElement)==null?void 0:e.querySelector("forge-list");o==null||o.setAttribute("aria-labelledby",this._component.id)}}async close(){this._listDropdown&&(await this._listDropdown.close(),this.destroyListDropdown())}destroyListDropdown(){var t;(t=this._listDropdown)==null||t.destroy(),this._listDropdown=void 0}setDismissListener(t){!this._listDropdown||!this._listDropdown.dropdownElement||this._listDropdown.dropdownElement.addEventListener(Q.events.TOGGLE,t)}toggleOptionMultiple(t,e){var o;(o=this._listDropdown)==null||o.toggleOptionMultiple(t,e)}getActiveOptionIndex(){var t,e;return(e=(t=this._listDropdown)==null?void 0:t.getActiveOptionIndex())!=null?e:-1}activateSelectedOption(){var t;(t=this._listDropdown)==null||t.activateSelectedOption()}activateFirstOption(){var t;(t=this._listDropdown)==null||t.activateFirstOption()}highlightActiveOption(t){var e;(e=this._listDropdown)==null||e.activateOption(t)}patchSelectedValues(t){var e;(e=this._listDropdown)==null||e.setSelectedValues(t)}setOptionsListener(t){let e=a=>{a.stopPropagation(),t(this.getOptions())};this._component.addEventListener(R.events.VALUE_CHANGE,e);let o=new MutationObserver(()=>t(this.getOptions()));return o.observe(this._component,{childList:!0,subtree:!0}),()=>{this._component.removeEventListener(R.events.VALUE_CHANGE,e),o.disconnect()}}setOptions(t,e=!0){e&&this._clearOptions();for(let o of t)if(u3(o)){let a=this._createOptionGroupElement(o);for(let s of o.options){let r=this._createOptionElement(s);a.appendChild(r)}this._component.appendChild(a)}else{let a=this._createOptionElement(o);this._component.appendChild(a)}}appendDropdownOptions(t){var e;(e=this._listDropdown)==null||e.appendOptions(t)}setDropdownOptions(t){var e;(e=this._listDropdown)==null||e.setOptions(t)}scrollSelectedOptionIntoView(){var t;(t=this._listDropdown)==null||t.scrollSelectedOptionIntoView()}isFocusWithinPopup(t){return!this._listDropdown||!this._listDropdown.dropdownElement?!1:this._listDropdown.dropdownElement.contains(t)}queueDropdownPositionUpdate(){this.popupElement&&window.requestAnimationFrame(()=>{let t=this.popupElement;t==null||t.position()})}_clearOptions(){Array.from(this._component.querySelectorAll(vo.elementName)).forEach(o=>Fe(o)),Array.from(this._component.querySelectorAll(R.elementName)).forEach(o=>Fe(o))}_createOptionGroupElement(t){let e=document.createElement("forge-option-group");return Object.assign(e,t),e}_createOptionElement(t){let e=document.createElement("forge-option");return Object.assign(e,t),e.textContent=t.label,t.elementAttributes&&t.elementAttributes.forEach((o,a)=>{e.setAttribute(a,o)}),e}};var z7={VALUE:"value",MULTIPLE:"multiple",OBSERVE_SCROLL:"observe-scroll",OBSERVE_SCROLL_THRESHOLD:"observe-scroll-threshold",POPUP_CLASSES:"popup-classes",OPTION_LIMIT:"option-limit",SYNC_POPUP_WIDTH:"sync-popup-width",CONSTRAIN_POPUP_WIDTH:"constrain-popup-width",WRAP_OPTION_TEXT:"wrap-option-text"},bf=d({},z7),yf={CHANGE:"change"},Lt={observedAttributes:z7,attributes:bf,events:yf};var Ra=class extends J0{constructor(e){super();this._adapter=e;this._options=[];this._value=[];this._multiple=!1;this._open=!1;this._selectedValues=[];this._selectedLabels=[];this._selectedIndexes=[];this._filterString="";this._focusListener=o=>this._onFocus(o),this._blurListener=o=>this._onBlur(o),this._clickListener=o=>this._onClick(o),this._keydownListener=o=>this._onKeydown(o),this._optionsChangedListener=o=>this._onOptionsChanged(o),this._activeChangeListener=o=>this._onActiveOptionChanged(o),this._dropdownScrollEndListener=()=>this._onDropdownScrollEnd(),this._dismissListener=()=>this._onDismiss(),this._identifier=V2()}_onFocus(e){}initialize(){this._optionListenerDestructor&&this._optionListenerDestructor(),this._optionListenerDestructor=this._adapter.setOptionsListener(this._optionsChangedListener),this._initializeValue()}initializeTarget(){this._adapter.initializeAccessibility(),this._adapter.addClickListener(this._clickListener),this._adapter.addTargetListener("blur",this._blurListener),this._adapter.addTargetListener("focus",this._focusListener),this._adapter.addTargetListener("keydown",this._keydownListener)}destroy(){this._adapter.removeClickListener(this._clickListener),this._adapter.removeTargetListener("blur",this._blurListener),this._adapter.removeTargetListener("focus",this._focusListener),this._adapter.removeTargetListener("keydown",this._keydownListener),this._optionListenerDestructor&&this._optionListenerDestructor(),this._open=!1,this._adapter.destroyListDropdown()}appendOptions(e){this._adapter.setOptions(e,!1),this._open&&this._adapter.appendDropdownOptions(e)}selectAll(){this._multiple&&(this.value=this._flatOptions.map(e=>e.value))}deselectAll(){this._multiple&&(this.value=[])}get _flatOptions(){return w3(this._options,1)?this._options.flatMap(e=>e.options):this._options}get _nonDividerOptions(){return this._flatOptions.filter(e=>!e.divider)}_initializeValue(){let e=this._options.length&&this._options||this._adapter.getOptions();O(this._value)&&e.length&&this._applyValue(this._value)}_onClick(e){e.button===0&&(this._open?this._closeDropdown():this._openDropdown())}_onBlur(e){this._adapter.isFocusWithinPopup(e.relatedTarget)||this._open&&this._closeDropdown()}_openDropdown(){if(this._options=this._adapter.getOptions(),!this._flatOptions.length)return;this._open=!0;let e={options:this._options,referenceElement:this._adapter.hostElement,multiple:this._multiple,selectedValues:[...this._selectedValues],id:this._identifier,optionBuilder:this._optionBuilder,syncWidth:this._syncPopupWidth,constrainViewportWidth:this._constrainPopupWidth,wrapOptionText:this._wrapOptionText,observeScroll:this._observeScroll,observeScrollThreshold:this._observeScrollThreshold,scrollEndListener:this._dropdownScrollEndListener,activeChangeCallback:this._activeChangeListener,targetWidthCallback:this._targetWidthCallback,popupPlacement:this._popoverPlacement,popupOffset:this._popoverOffset,popupFlip:this._popoverFlip,popupShift:this._popoverShift,popupFallbackPlacements:this._popoverFallbackPlacements,popupClasses:this._popupClasses,optionLimit:this._optionLimit,headerBuilder:this._popupHeaderBuilder,footerBuilder:this._popupFooterBuilder,closeCallback:()=>this._closeDropdown(),selectCallback:o=>{let a=this._flatOptions,s=a.find(r=>r.value===o);if(s){let r=a.indexOf(s);this._onSelect(s,r,!0)}}};this._adapter.open(e),this._adapter.setDismissListener(this._dismissListener)}_closeDropdown(){this._open=!1,this._adapter.close()}async _onSelect(e,o,a=!0){if(this._valueChanging)return!1;let s=e?e.value:"",r=e?e.label:"",l=[...this._value],h=[...this._selectedValues],v=[...this._selectedLabels],m=[...this._selectedIndexes];if(this._multiple)if(this._selectedValues.includes(s)){let E=this._selectedValues.indexOf(s);this._selectedValues.splice(E,1),this._selectedLabels.splice(E,1),this._selectedIndexes.splice(E,1)}else this._selectedValues.push(s),this._selectedLabels.push(r),this._selectedIndexes.push(o);else O(s)?(this._selectedValues[0]=s,this._selectedLabels[0]=r,this._selectedIndexes[0]=o):(this._selectedValues=[],this._selectedLabels=[],this._selectedIndexes=[]);this._value=[...this._selectedValues];let u=()=>{this._selectedValues=[...h],this._selectedLabels=[...v],this._selectedIndexes=[...m],this._value=[...l]},H=()=>{if(this._multiple){let E=this._selectedIndexes.includes(o);this._adapter.toggleOptionMultiple(o,E)}this._applySelection()},x=this.multiple?[...this._selectedValues]:this._selectedValues[0];if(this._open&&a&&!this._multiple&&this._closeDropdown(),typeof this._beforeValueChange=="function"){this._valueChanging=Promise.resolve(this._beforeValueChange.call(null,x));let E=await this._valueChanging;if(this._valueChanging=void 0,!E)return u(),this._tryUpdateDropdownPosition(),!1}let C=!this._adapter.emitHostEvent(Lt.events.CHANGE,x,!0,!0);return C?u():H(),this._tryUpdateDropdownPosition(),!C}_selectActiveOption(){let e=this._adapter.getActiveOptionIndex();e>=0&&this._nonDividerOptions[e]&&this._onSelect(this._nonDividerOptions[e],e)}_tryUpdateDropdownPosition(){this._open&&this._adapter.queueDropdownPositionUpdate()}_reset(){this._selectedValues=[],this._selectedLabels=[],this._selectedIndexes=[]}_applyValue(e){this._selectedValues=[],this._selectedLabels=[],this._options=this._adapter.getOptions(),Array.isArray(e)||(e=[e]),this._value=[];for(let o of e){this._value.includes(o)||this._value.push(o);let a=this._flatOptions.find(s=>Wt(s.value,o));a&&(this._selectedValues.push(a.value),this._selectedLabels.push(a.label))}this._selectedIndexes=this._selectedValues.map(o=>this._flatOptions.findIndex(a=>a.value===o)),this._adapter.patchSelectedValues(this._selectedValues)}_onDismiss(){this._closeDropdown()}_getSelectedText(){if(typeof this._selectedTextBuilder=="function"){let e=this._flatOptions.filter(o=>this._selectedValues.includes(o.value));return this._selectedTextBuilder(e)}return this._multiple?this._selectedLabels.length?this._selectedLabels.length===1?this._selectedLabels[0]:`${this._selectedLabels.length} options selected`:"":this._selectedLabels.filter(e=>e&&e.length).join(" ").trim()}_onKeydown(e){let o=e.key==="Escape"||e.keyCode===27,a=e.key==="Enter"||e.keyCode===13,s=e.key==="Space"||e.keyCode===32,r=e.key==="ArrowDown"||e.keyCode===40,l=e.key==="ArrowUp"||e.keyCode===38,h=e.keyCode>=48&&e.keyCode<=90,v=e.key==="Home"||e.keyCode===36,m=e.key==="End"||e.keyCode===35;if(e.key==="Tab"&&this._open&&!this._multiple){this._selectActiveOption();return}if(!h&&this._filterTimeout&&(window.clearTimeout(this._filterTimeout),this._filterString="",this._filterTimeout=void 0),o&&(e.preventDefault(),e.stopPropagation(),this._open)){this._closeDropdown();return}if(s)e.preventDefault(),e.stopPropagation(),this._open?this._closeDropdown():this._openDropdown();else if(a)this._open&&(e.stopPropagation(),e.preventDefault(),this._options=this._adapter.getOptions(),this._selectActiveOption());else if(l||r){if(e.preventDefault(),!this._open){this._openDropdown(),this._adapter.activateFirstOption();return}if(this._flatOptions.length===0)return;let H=0;this._open?(H=this._adapter.getActiveOptionIndex(),H===-1&&(H=this._getFirstSelectedOptionIndex())):H=this._getFirstSelectedOptionIndex(),l?H=this._getPreviousHighlightableOptionIndex(H,this._nonDividerOptions):H=this._getNextHighlightableOptionIndex(H,this._nonDividerOptions),this._adapter.highlightActiveOption(H)}else if(v)this._open&&(e.preventDefault(),this._adapter.highlightActiveOption(this._nonDividerOptions.findIndex(H=>!H.disabled)));else if(m){if(this._open){e.preventDefault();let H=this._nonDividerOptions;for(let x=H.length-1;x>=0;x--)if(!H[x].disabled){this._adapter.highlightActiveOption(x);break}}}else h&&this._filter(e.key)}_getFirstSelectedOptionIndex(){return this._nonDividerOptions.findIndex(e=>this._selectedValues.includes(e.value))}_getPreviousHighlightableOptionIndex(e,o){let a=e;return a<=0?a=o.length-1:a--,o[a].disabled?this._getPreviousHighlightableOptionIndex(a,o):a}_getNextHighlightableOptionIndex(e,o){let a=e;return a===o.length-1?a=0:a++,o[a].disabled?this._getNextHighlightableOptionIndex(a,o):a}_filter(e){this._filterTimeout&&(window.clearTimeout(this._filterTimeout),this._filterTimeout=void 0),this._filterString+=e,this._filterTimeout=window.setTimeout(()=>{this._filterString="",this._filterTimeout=void 0},300),this._options=this._adapter.getOptions();let o=this._flatOptions.find(({disabled:a,label:s})=>!a&&s.trim().toLowerCase().startsWith(this._filterString.trim().toLowerCase()));if(o){let a=this._flatOptions.indexOf(o);this._open?this._adapter.highlightActiveOption(a):this._multiple||this._onSelect(o,a,!1)}}_onOptionsChanged(e){this._options=e,this._applyValue(this._value)}_onActiveOptionChanged(e){this._adapter.updateActiveDescendant(e)}get value(){return this._multiple?[...this._value]:this._value[0]}set value(e){let o;Array.isArray(e)?o=[...e]:o=e,this._applyValue(o)}get selectedIndex(){return this._multiple?[...this._selectedIndexes]:this._selectedIndexes[0]}set selectedIndex(e){this._options=this._adapter.getOptions();let o;if(Array.isArray(e)?o=[...e]:o=[e],o.sort(),this.multiple)this.value=o.map(a=>this._flatOptions[a]).filter(a=>a).map(a=>a.value);else{let a=this._flatOptions[o[o.length-1]];if(!a)return;this.value=a.value}}get options(){return this._adapter.getOptions()}set options(e){let o;w3(e,1)?o=e.map(a=>d({},a)):o=e.map(a=>d({},a)),this._options=o,this._adapter.setOptions(o),this._initializeValue(),this._open&&this._adapter.setDropdownOptions(o)}get multiple(){return this._multiple}set multiple(e){this._multiple!==e&&(this._multiple=e,this._reset(),this._open&&this._closeDropdown())}get open(){return this._open}set open(e){this._open!==e&&(e?this._openDropdown():this._closeDropdown())}get optionBuilder(){return this._optionBuilder}set optionBuilder(e){this._optionBuilder=e}get selectedTextBuilder(){return this._selectedTextBuilder}set selectedTextBuilder(e){this._selectedTextBuilder=e}get optionLimit(){return this._optionLimit}set optionLimit(e){this._optionLimit=e}get popupClasses(){return this._popupClasses}set popupClasses(e){this._popupClasses=e}get popupHeaderBuilder(){return this._popupHeaderBuilder}set popupHeaderBuilder(e){this._popupHeaderBuilder=e}get popupFooterBuilder(){return this._popupFooterBuilder}set popupFooterBuilder(e){this._popupFooterBuilder=e}get popupElement(){return this._adapter.popupElement}get beforeValueChange(){return this._beforeValueChange}set beforeValueChange(e){this._beforeValueChange=e}};var Vt=class extends Q1{constructor(){super()}attributeChangedCallback(t,e,o){switch(super.attributeChangedCallback(t,e,o),t){case Lt.attributes.MULTIPLE:this.multiple=p(o);break;case Lt.attributes.VALUE:this.value=o;break}}appendOptions(t){this._core.appendOptions(t)}selectAll(){this._core.selectAll()}deselectAll(){this._core.deselectAll()}connectedCallback(){this._core.initialize()}disconnectedCallback(){this._core.destroy()}};i([c()],Vt.prototype,"value",2),i([c()],Vt.prototype,"selectedIndex",2),i([c()],Vt.prototype,"options",2),i([c()],Vt.prototype,"multiple",2),i([c()],Vt.prototype,"open",2),i([c()],Vt.prototype,"optionBuilder",2),i([c()],Vt.prototype,"selectedTextBuilder",2),i([c()],Vt.prototype,"beforeValueChange",2),i([c({set:!1})],Vt.prototype,"popupElement",2);var H7=`${b}select`,Mf={FIELD:"#field",SELECTED_TEXT:"#selected-text",LABEL:"#select-label"},I7={OPEN:"open",TYPE:"type",VALUE:"value",LABEL:"label",MULTIPLE:"multiple",DISABLED:"disabled",PLACEHOLDER:"placeholder",OBSERVE_SCROLL:"observe-scroll",OBSERVE_SCROLL_THRESHOLD:"observe-scroll-threshold"},zf=d({},I7),Hf={SCROLLED_BOTTOM:`${H7}-scrolled-bottom`},X2={elementName:H7,observedAttributes:I7,attributes:zf,selectors:Mf,events:Hf};var c4=class extends Na{constructor(t){super(t),this._fieldElement=w(t,X2.selectors.FIELD),this._labelElement=w(t,X2.selectors.LABEL),this._selectedTextElement=w(t,X2.selectors.SELECTED_TEXT),this._fieldElement.setAttribute("exportparts",Object.values(L.parts).join(", ")),this._fieldElement.focusIndicatorTargetElement=this._component}get fieldElement(){return this._fieldElement}initializeAccessibility(){this._component.setAttribute("role","combobox"),this._component.setAttribute("aria-haspopup","true"),this._component.setAttribute("aria-expanded","false"),Ge(),Yt(this._component),this.fieldElement.required&&this.setHostAttribute("aria-required","true"),this.fieldElement.disabled&&this.setHostAttribute("aria-disabled","true"),this.fieldElement.invalid&&this.setHostAttribute("aria-invalid","true"),this._component[s2]=!this._component.disabled}setLabel(t){let o=!(this._fieldElement.labelPosition==="inset"&&(this._fieldElement.density==="extra-small"||this._fieldElement.dense))&&!!(t!=null&&t.trim());(!this._component.hasAttribute("aria-label")||this._component.getAttribute("aria-label")===this._labelElement.textContent)&&this._component.setAttribute("aria-label",t),o?(this._labelElement.isConnected||this._fieldElement.insertAdjacentElement("afterbegin",this._labelElement),this._labelElement.textContent=t):this._labelElement.remove()}setPlaceholderText(t){G(this._selectedTextElement,!!(t!=null&&t.trim()),"placeholder",t)}open(t){this._targetElement||(this._targetElement=w(this._fieldElement,L.selectors.POPOVER_TARGET)),super.open(t),this._component.setAttribute("aria-controls",`list-dropdown-popup-${t.id}`),this._component.setAttribute("aria-expanded","true"),this._fieldElement.popoverExpanded=!0}close(){return this._component.setAttribute("aria-expanded","false"),this._component.removeAttribute("aria-activedescendant"),Yt(this._component),this._fieldElement.popoverExpanded=!1,super.close()}floatLabel(t){this._fieldElement.floatLabel=t}updateActiveDescendant(t){G(this._component,!!t,"aria-activedescendant",t)}setSelectedText(t){this._selectedTextElement.textContent=t}setDisabled(t){this._component[s2]=!t,G(this._component,t,"aria-disabled","true")}setRequired(){this._component[Mt]()}addClickListener(t){this._component.addEventListener("click",t)}removeClickListener(t){this._component.removeEventListener("click",t)}addTargetListener(t,e){this._component.addEventListener(t,e)}removeTargetListener(t,e){this._component.removeEventListener(t,e)}syncValue(t){let o=(Array.isArray(t)?!t.length||!t.some(s=>s!=null):t==null)?null:new FormData,a=JSON.stringify(t);o&&t&&o.append(this._component.name,a),this._component.setFormValue(o,a),this._component[Mt]()}};var h4=class extends Ra{constructor(e){super(e);this._label="";this._required=!1;this._permanentlyFloatLabel=!1;this._mousedownListener=this._onMouseDown.bind(this)}initialize(){this._adapter.tryApplyGlobalConfiguration(["labelPosition","variant"]),super.initialize(),super.initializeTarget(),this._initializeLabel(),this._initializeAccessibility(),this._adapter.addTargetListener("mousedown",this._mousedownListener)}destroy(){super.destroy(),this._adapter.removeTargetListener("mousedown",this._mousedownListener)}syncFloatingLabelState({force:e}={}){e!==void 0&&(this._permanentlyFloatLabel=e),this._updateLabel(),this._tryFloatLabel()}setDisabled(e){this._adapter.setDisabled(e)}_initializeLabel(){this._updateLabel(),this._tryFloatLabel()}_initializeValue(){super._initializeValue(),this._tryFloatLabel()}_initializeAccessibility(){this._adapter.initializeAccessibility()}_onMouseDown(e){e.preventDefault()}_onClick(e){this._adapter.fieldElement.disabled||e.composedPath().find(a=>{var s;return(s=a.matches)==null?void 0:s.call(a,"slot[name=accessory]")})||(this._adapter.focusHost(),super._onClick(e))}_openDropdown(){super._openDropdown(),this._open&&this._adapter.toggleHostAttribute(X2.attributes.OPEN,!0)}_closeDropdown(){super._closeDropdown(),this._open||this._adapter.toggleHostAttribute(X2.attributes.OPEN,!1)}_onDismiss(){super._onDismiss()}_onDropdownScrollEnd(){this._adapter.emitHostEvent(X2.events.SCROLLED_BOTTOM)}async _onSelect(e,o,a=!0){let s=await super._onSelect(e,o,a);return s&&(this._adapter.setSelectedText(this._getSelectedText()),a&&!this._multiple&&this._adapter.focusHost()),this._tryFloatLabel(),this._adapter.syncValue(this._value),s}_reset(){super._reset(),this._adapter.setSelectedText(""),this._tryFloatLabel()}_tryFloatLabel(){if(this._permanentlyFloatLabel){this._adapter.floatLabel(!0);return}let e=!!this._getSelectedText()||!!this._selectedValues.length,o=!!this._placeholder;this._adapter.floatLabel(e||o)}_updateLabel(){this._adapter.setLabel(this._label)}_applyValue(e){super._applyValue(e),this._adapter.syncValue(this._value);let o=this._getSelectedText();this._adapter.setSelectedText(o),this._tryFloatLabel()}get label(){return this._label}set label(e){this._label!==e&&(this._label=e,this._updateLabel(),this._label&&this._initializeLabel(),this._adapter.toggleHostAttribute(X2.attributes.LABEL,!!this._label,this._label))}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder!==e&&(this._placeholder=e,this._adapter.setPlaceholderText(this._placeholder),this._initializeLabel())}get multiple(){return super.multiple}set multiple(e){this._multiple!==e&&(super.multiple=e,this._adapter.toggleHostAttribute(X2.attributes.MULTIPLE,e))}set required(e){this._required!==e&&this._adapter.setRequired()}};var If='<template><forge-field id="field" popover-icon focus-indicator-allow-focus focus-indicator-focus-mode="focus"><span id="select-label" slot="label"></span><slot slot="start" name="start"></slot><div data-forge-field-input class="selected-text-container" part="text-container" aria-live="assertive" aria-atomic="true"><slot name="value"><span id="selected-text" class="selected-text" part="text"></span></slot></div><slot slot="end" name="end"></slot><slot slot="accessory" name="accessory"></slot><slot slot="support-text" name="support-text"></slot><slot slot="support-text-end" name="support-text-end"></slot><slot slot="start" name="leading"></slot><slot slot="end" name="trailing"></slot><slot slot="accessory" name="addon-end"></slot><slot slot="support-text" name="helper-text"></slot></forge-field></template>',Lf=":host{display:block;outline:0}:host([hidden]){display:none}forge-field{--_select-placeholder-color:var(--forge-select-placeholder-color, var(--forge-field-placeholder-color, var(--forge-theme-text-medium, rgba(0, 0, 0, 0.6))))}.selected-text-container{display:grid;align-items:center;cursor:pointer}.selected-text,::slotted([slot=value]){white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.selected-text:empty::before{content:attr(placeholder);color:var(--_select-placeholder-color);font-size:inherit}:host([disabled]) .selected-text-container{cursor:not-allowed}forge-field{display:contents}",Ae=class extends $e(mt(Ke(V1(L1(u7(Vt)))))){static get observedAttributes(){return[...Q1.observedAttributes,...Object.values(Y.observedAttributes),...Object.values(X2.observedAttributes),...Object.values(Lt.observedAttributes)]}constructor(){var e;super(),X.define([S0,T0]),z(this,If,Lf);let t=(e=this.shadowRoot)==null?void 0:e.querySelector(L.elementName);this.initializeFieldInstance(t),this[oe]="select",this._core=new h4(new c4(this))}connectedCallback(){super.connectedCallback(),this[N]({role:"combobox",ariaDisabled:this.disabled?"true":"false",ariaRequired:this.required?"true":"false"})}attributeChangedCallback(t,e,o){switch(t){case X2.observedAttributes.OPEN:this.open=p(o);return;case X2.observedAttributes.LABEL:this.label=o;return;case X2.observedAttributes.PLACEHOLDER:this.placeholder=o;return}super.attributeChangedCallback(t,e,o)}[Bt](){return this.value}[Mt](){this[s1].setValidity({valueMissing:this.required&&!this.value},this[ee]({required:this.required,value:this.value}))}formResetCallback(){this.value=null}formStateRestoreCallback(t){this.value=JSON.parse(t)}labelClickedCallback(){this.click(),this.focus()}labelChangedCallback(t){this[N]({ariaLabel:t})}setFormValue(t,e){this[s1].setFormValue(t,e)}get floatLabel(){return super.floatLabel}set floatLabel(t){this._core.syncFloatingLabelState({force:t})}get density(){return super.density}set density(t){super.density=t,this._core.syncFloatingLabelState()}get dense(){return super.dense}set dense(t){super.dense=t,this._core.syncFloatingLabelState()}get disabled(){return super.disabled}set disabled(t){super.disabled=t,this._core.setDisabled(t)}get required(){return super.required}set required(t){super.required=t,this._core.required=t}get labelPosition(){return super.labelPosition}set labelPosition(t){super.labelPosition=t,this._core.syncFloatingLabelState()}};i([c()],Ae.prototype,"label",2),i([c()],Ae.prototype,"placeholder",2),i([c()],Ae.prototype,"readonly",2),Ae=i([y({name:X2.elementName,dependencies:[F1,$1,t0,R1,v2,j1,Pt,j,Je,pe,i1]})],Ae);function L7(){f(Ae)}var Vf='<template><div class="forge-paginator" part="root" forge-popover-host><div class="container" part="container"><div class="label" part="label" id="label"><slot name="label"></slot></div><forge-select class="page-size-options" aria-labelledby="label" label-position="none" density="extra-small" part="page-size-options"></forge-select><div class="range-label" part="range-label"><slot name="range-label"></slot></div></div><div class="actions" part="actions"><div id="first-page-container"><forge-icon-button class="first-page" part="first-page-button" part="first-page-button-element"><forge-icon name="first_page" part="first-page-icon"></forge-icon></forge-icon-button><forge-tooltip type="label" placement="top"><slot name="first-page-tooltip">Go to the first page</slot></forge-tooltip></div><div id="previous-page-container"><forge-icon-button class="previous-page" part="previous-page-button" part="previous-page-button-element"><forge-icon name="keyboard_arrow_left" part="previous-page-button-icon"></forge-icon></forge-icon-button><forge-tooltip type="label" placement="top"><slot name="previous-page-tooltip">Go to the previous page</slot></forge-tooltip></div><div class="alternative-range-label" part="alternative-range-label"><slot name="alternative-range-label"></slot></div><div id="next-page-container"><forge-icon-button class="next-page" part="next-page-button" part="next-page-button-element"><forge-icon name="keyboard_arrow_right" part="next-page-icon"></forge-icon></forge-icon-button><forge-tooltip type="label" placement="top"><slot name="next-page-tooltip">Go to the next page</slot></forge-tooltip></div><div id="last-page-container"><forge-icon-button class="last-page" part="last-page-button" part="last-page-button-element"><forge-icon name="last_page" part="last-page-icon"></forge-icon></forge-icon-button><forge-tooltip type="label" placement="top"><slot name="last-page-tooltip">Go to the last page</slot></forge-tooltip></div></div></div></template>',Cf=':host{display:block}:host([hidden]){display:none}.forge-paginator{display:flex;gap:var(--forge-spacing-xsmall,8px)}.container{display:flex;gap:var(--forge-spacing-medium,16px);align-items:center}.alternative-range-label,.label,.range-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-label1-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-label1-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-label-font-size-scale, .75)));font-weight:var(--forge-typography-label1-font-weight,400);line-height:var(--forge-typography-label1-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-label-line-height-scale, 1.25)));letter-spacing:var(--forge-typography-label1-letter-spacing, .0357142857em);text-transform:var(--forge-typography-label1-text-transform,inherit);text-decoration:var(--forge-typography-label1-text-decoration,inherit)}.actions{display:flex;align-items:center}.alternative-range-label{display:none}:host([alternative]) .alternative-range-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-body1-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-body1-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-font-size-scale, .875)));font-weight:var(--forge-typography-body1-font-weight,400);line-height:var(--forge-typography-body1-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-line-height-scale, 1.125)));letter-spacing:var(--forge-typography-body1-letter-spacing, .0357142857em);text-transform:var(--forge-typography-body1-text-transform,inherit);text-decoration:var(--forge-typography-body1-text-decoration,inherit);display:inline-block}:host([alternative]) .container{display:none}:host([alternative]) .actions{width:100%;justify-content:var(--forge-paginator-alternative-alignment,start)}',it=class extends M{static get observedAttributes(){return Object.values(Z.observedAttributes)}constructor(){super(),X.define([ul,v0,ze,fl]),z(this,Vf,Cf),this._core=new s4(new r4(this))}connectedCallback(){this._core.initialize()}attributeChangedCallback(t,e,o){var a,s,r,l;switch(t){case Z.observedAttributes.PAGE_INDEX:this.pageIndex=(a=K(o))!=null?a:Z.numbers.DEFAULT_PAGE_INDEX;break;case Z.observedAttributes.PAGE_SIZE:this.pageSize=(s=K(o))!=null?s:Z.numbers.DEFAULT_PAGE_SIZE;break;case Z.observedAttributes.OFFSET:this.offset=K(o);break;case Z.observedAttributes.TOTAL:this.total=(r=K(o))!=null?r:Z.numbers.DEFAULT_TOTAL;break;case Z.observedAttributes.PAGE_SIZE_OPTIONS:this.pageSizeOptions=(l=Wn(o))!=null?l:Z.numbers.DEFAULT_PAGE_SIZE_OPTIONS;break;case Z.observedAttributes.LABEL:this.label=o;break;case Z.observedAttributes.FIRST_LAST:this.firstLast=p(o);break;case Z.observedAttributes.FIRST:this.first=p(o);break;case Z.observedAttributes.DISABLED:this.disabled=p(o);break;case Z.observedAttributes.ALTERNATIVE:this.alternative=p(o);break}}focus(t){this._core.focus(t)}};i([c()],it.prototype,"pageIndex",2),i([c()],it.prototype,"pageSize",2),i([c()],it.prototype,"offset",2),i([c()],it.prototype,"total",2),i([c()],it.prototype,"pageSizeOptions",2),i([c()],it.prototype,"label",2),i([c()],it.prototype,"firstLast",2),i([c()],it.prototype,"first",2),i([c()],it.prototype,"disabled",2),i([c()],it.prototype,"alternative",2),i([c()],it.prototype,"rangeLabelCallback",2),it=i([y({name:Z.elementName,dependencies:[i1,Ae,m1]})],it);function V7(){f(it)}var C7=`${b}select-dropdown`,Ef={TARGET:"target",SELECTED_TEXT_TARGET:"selected-text-target",SYNC_SELECTED_TEXT:"sync-selected-text"},Bf=d({},Ef),Af={SCROLLED_BOTTOM:`${C7}-scrolled-bottom`},e0={elementName:C7,attributes:Bf,events:Af};var v4=class extends Ra{constructor(e){super(e);this._syncSelectedText=!1;this._originalTargetText="";this._targetDisconnectedListener=()=>this._onTargetDisconnected()}initialize(){this._tryAttach(),super.initialize()}destroy(){super.destroy(),this._adapter.isAttached()&&this._detach()}_onDropdownScrollEnd(){this._adapter.emitHostEvent(e0.events.SCROLLED_BOTTOM)}_applyValue(e){super._applyValue(e),this._applySelection()}_applySelection(){if(super._applySelection(),this._syncSelectedText||typeof this._selectedTextBuilder=="function"){let e=this._getSelectedText();e||(e=this._originalTargetText),this._adapter.setTargetText(e||"",this._selectedTextTarget)}}_tryAttach(){this._adapter.attach(this._target),this._adapter.isAttached()&&(this._targetDisconnectedDestructor=this._adapter.setTargetDisconnectedListener(this._targetDisconnectedListener),this._originalTargetText=this._adapter.getTargetText(this._selectedTextTarget),this.initializeTarget())}_detach(){this._adapter.detach(),this._targetDisconnectedDestructor&&(this._targetDisconnectedDestructor(),this._targetDisconnectedDestructor=void 0)}_onTargetDisconnected(){this._adapter.detach()}get target(){return this._target}set target(e){this._target!==e&&(this._target=e,this._adapter.isAttached()&&this._detach(),this._tryAttach())}get selectedTextTarget(){return this._selectedTextTarget}set selectedTextTarget(e){this._selectedTextTarget!==e&&(this._selectedTextTarget=e)}get syncSelectedText(){return this._syncSelectedText}set syncSelectedText(e){this._syncSelectedText!==e&&(this._syncSelectedText=e)}};var p4=class extends Na{constructor(t){super(t)}initializeAccessibility(){this._targetElement.setAttribute("role","combobox"),this._targetElement.setAttribute("aria-live","polite"),this._targetElement.setAttribute("aria-haspopup","true"),this._targetElement.setAttribute("aria-expanded","false"),this.setAriaControls()}addClickListener(t){this._targetElement.addEventListener("click",t)}removeClickListener(t){this._targetElement&&this._targetElement.removeEventListener("click",t)}addTargetListener(t,e){let o,a;t==="keydown"&&(o=!1,a=!0),this._targetElement.addEventListener(t,e,{passive:o,capture:a})}removeTargetListener(t,e){this._targetElement&&this._targetElement.removeEventListener(t,e)}updateActiveDescendant(t){t?this._targetElement.setAttribute("aria-activedescendant",t):this._targetElement.removeAttribute("aria-activedescendant")}open(t){super.open(t),this._targetElement.setAttribute("aria-controls",`list-dropdown-popup-${t.id}`),this._targetElement.setAttribute("aria-expanded","true")}close(){return this._targetElement.setAttribute("aria-expanded","false"),this._targetElement.removeAttribute("aria-activedescendant"),this.setAriaControls(),super.close()}attach(t){let a=(this._component.getRootNode()||HTMLDocument||this._component.ownerDocument||document).querySelector(t);a&&(this._targetElement=a)}detach(){this._targetElement=void 0}setTargetDisconnectedListener(t){if(!this._targetElement||!this._targetElement.parentElement)return()=>{};let e=new MutationObserver(o=>{o.some(s=>Array.from(s.removedNodes).some(r=>r===this._targetElement))&&(e.disconnect(),t())});return e.observe(this._targetElement.parentElement,{childList:!0}),()=>e.disconnect()}isAttached(){return!!this._targetElement}setTargetText(t,e){let o=this._targetElement;if(e){let a=this._getElementBySelector(e);a&&(o=a)}o&&(o.textContent=t)}getTargetText(t){let e=t?this._getElementBySelector(t):this._targetElement;return e?e.innerText:""}_getElementBySelector(t){return this._targetElement.querySelector(t)||this._getRootNode().querySelector(t)}_getRootNode(){var t,e;return(e=(t=this._component.getRootNode())!=null?t:this._component.ownerDocument)!=null?e:document}setAriaControls(){let t=this._component.querySelector("[data-forge-aria-controls-placeholder]");if(t){this._targetElement.setAttribute("aria-controls",t.id);return}t=document.createElement("div"),t.id=`forge-select-dropdown-temp-${V2(10)}`,t.setAttribute("data-forge-aria-controls-placeholder",""),this._targetElement.setAttribute("aria-controls",t.id),this._component.appendChild(t)}};var Tf="<template></template>",Sf=":host{display:none}",H0=class extends Vt{static get observedAttributes(){return[e0.attributes.TARGET,e0.attributes.SELECTED_TEXT_TARGET,e0.attributes.SYNC_SELECTED_TEXT,Lt.attributes.VALUE,Lt.attributes.MULTIPLE,Lt.attributes.OBSERVE_SCROLL,Lt.attributes.OBSERVE_SCROLL_THRESHOLD,Lt.attributes.POPUP_CLASSES,Lt.attributes.OPTION_LIMIT,Lt.attributes.SYNC_POPUP_WIDTH]}constructor(){super(),z(this,Tf,Sf),this._core=new v4(new p4(this))}attributeChangedCallback(t,e,o){switch(t){case e0.attributes.TARGET:this.target=o;return;case e0.attributes.SELECTED_TEXT_TARGET:this.selectedTextTarget=o;return;case e0.attributes.SYNC_SELECTED_TEXT:this.syncSelectedText=p(o);return}super.attributeChangedCallback(t,e,o)}};i([c()],H0.prototype,"target",2),i([c()],H0.prototype,"selectedTextTarget",2),i([c()],H0.prototype,"syncSelectedText",2),H0=i([y({name:e0.elementName,dependencies:[$1,t0,R1,v2,j1,Pt,Je,pe,i1]})],H0);function E7(){f(H0)}var B7=class extends o2{constructor(t){super(t)}_build(){return document.createElement(X2.elementName)}_configure(){var t;typeof((t=this._config.options)==null?void 0:t.helperText)=="string"&&this.setHelperText(this._config.options.helperText)}get value(){return this._element.value}set value(t){this._element.value=t}get disabled(){return this._element.disabled}set disabled(t){this._element.disabled=t}get invalid(){return this._element.invalid||!1}set invalid(t){this._element.invalid=t}onChange(t){this._element.addEventListener("change",e=>t(e.detail))}onFocus(t){this._element.addEventListener("focus",e=>t(e))}onBlur(t){this._element.addEventListener("blur",e=>t(e))}setHelperText(t){t?(this._helperTextElement||(this._helperTextElement=document.createElement("span"),this._helperTextElement.slot="helper-text",this._element.appendChild(this._helperTextElement)),this._helperTextElement.textContent=t):this._helperTextElement&&this._helperTextElement.isConnected&&(this._element.removeChild(this._helperTextElement),this._helperTextElement=void 0)}};var kf=`${b}skip-link`,A7={TARGET:"target",THEME:"theme",MUTED:"muted",PERSISTENT:"persistent",INLINE:"inline",SKIP_URL_CHANGE:"skip-url-change"},Of=d({},A7),Df={ANCHOR:"a"},bt={elementName:kf,observedAttributes:A7,attributes:Of,selectors:Df};var Pf='<template><a class="forge-skip-link" part="anchor"><slot>Skip to main content</slot><forge-focus-indicator part="focus-indicator"></forge-focus-indicator><forge-state-layer exportparts="surface:state-layer"></forge-state-layer></a></template>',Nf=':host{--_skip-link-inset:var(--forge-skip-link-inset, var(--forge-spacing-xsmall, 8px) var(--forge-spacing-medium, 16px));--_skip-link-z-index:var(--forge-skip-link-z-index, var(--forge-z-index-popup, 10));--_skip-link-transition-duration:var(--forge-skip-link-transition-duration, var(--forge-animation-duration-short4, 200ms));--_skip-link-transition-timing-function:var(--forge-skip-link-transition-timing-function, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1)))}:host{transition-property:opacity,transform;transition-duration:var(--_skip-link-transition-duration);transition-timing-function:var(--_skip-link-transition-timing-function);display:block;position:fixed;inset:var(--_skip-link-inset);z-index:var(--_skip-link-z-index);block-size:fit-content;inline-size:fit-content;opacity:0;transform:translateY(-100%)}:host([hidden]){display:none}:host(:where(:focus-within,[persistent])){transition-property:opacity,transform;transition-duration:var(--_skip-link-transition-duration);transition-timing-function:var(--_skip-link-transition-timing-function);transform:translateY(0);opacity:1}.forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-secondary, #ffc107));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-secondary, #000000));--_skip-link-shape:var(--forge-skip-link-shape, calc(var(--forge-shape-medium, 4px) * var(--forge-shape-factor, 1)));--_skip-link-elevation:var(--forge-skip-link-elevation, 0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12));--_skip-link-padding-block:var(--forge-skip-link-padding-block, var(--forge-spacing-xsmall, 8px));--_skip-link-padding-inline:var(--forge-skip-link-padding-inline, var(--forge-spacing-medium, 16px));--_skip-link-focus-indicator-color:var(--forge-skip-link-focus-indicator-color, var(--_skip-link-background))}.forge-skip-link{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-body2-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-body2-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-font-size-scale, 1)));font-weight:var(--forge-typography-body2-font-weight,400);line-height:var(--forge-typography-body2-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-line-height-scale, 1.375)));letter-spacing:var(--forge-typography-body2-letter-spacing, .015625em);text-transform:var(--forge-typography-body2-text-transform,inherit);text-decoration:var(--forge-typography-body2-text-decoration,inherit);display:block;outline:0;box-shadow:var(--_skip-link-elevation);border-radius:var(--_skip-link-shape);background:var(--_skip-link-background);padding-block:var(--_skip-link-padding-block);padding-inline:var(--_skip-link-padding-inline);cursor:pointer;color:var(--_skip-link-color);text-decoration:underline}:host([theme=primary]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-primary, #3f51b5));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-primary, #ffffff))}:host([theme=primary][muted]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-primary-container-high, #b6bde3));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-primary-container-high, #000000))}:host([theme=secondary]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-secondary, #ffc107));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-secondary, #000000))}:host([theme=secondary][muted]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-secondary-container-high, #ffe7a1));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-secondary-container-high, #000000))}:host([theme=tertiary]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-tertiary, #3d5afe));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-tertiary, #ffffff))}:host([theme=tertiary][muted]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-tertiary-container-high, #b5c0ff));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-tertiary-container-high, #000000))}:host([theme=success]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-success, #2e7d32));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-success, #ffffff))}:host([theme=success][muted]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-success-container-high, #b0ceb1));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-success-container-high, #000000))}:host([theme=error]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-error, #b00020));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-error, #ffffff))}:host([theme=error][muted]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-error-container-high, #e19eaa));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-error-container-high, #000000))}:host([theme=warning]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-warning, #d14900));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-warning, #ffffff))}:host([theme=warning][muted]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-warning-container-high, #eeba9e));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-warning-container-high, #000000))}:host([theme=info]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-info, #1565c0));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-info, #ffffff))}:host([theme=info][muted]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-info-container-high, #a6c4e7));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-info-container-high, #000000))}:host(:where(:not([theme]),[theme=default])[muted]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-secondary-container-high, #ffe7a1));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-secondary-container-high, #000000))}:host([inline]){position:absolute;transform:none}forge-focus-indicator{--forge-focus-indicator-color:var(--_skip-link-focus-indicator-color);--forge-focus-indicator-shape:var(--_skip-link-shape)}@media (prefers-reduced-motion:reduce){:host{--_skip-link-transition-duration:var(--forge-skip-link-transition-duration, 0s)}}',Fa=class extends M{constructor(){super();this._target="";this._theme="default";this._muted=!1;this._persistent=!1;this._inline=!1;this._skipUrlChange=!1;this._clickListener=e=>this._handleClick(e);z(this,Pf,Nf),this._anchorElement=w(this,bt.selectors.ANCHOR)}static get observedAttributes(){return Object.values(bt.observedAttributes)}attributeChangedCallback(e,o,a){switch(e){case bt.observedAttributes.TARGET:this.target=a;break;case bt.observedAttributes.THEME:this.theme=a;break;case bt.observedAttributes.MUTED:this.muted=p(a);break;case bt.observedAttributes.PERSISTENT:this.persistent=p(a);break;case bt.observedAttributes.INLINE:this.inline=p(a);break;case bt.observedAttributes.SKIP_URL_CHANGE:this.skipUrlChange=p(a);break}}get target(){return this._target}set target(e){this._target!==e&&(this._target=e,this.setAttribute(bt.attributes.TARGET,this._target),this._anchorElement.href=`#${this._target}`)}get theme(){return this._theme}set theme(e){this._theme!==e&&(this._theme=e,this.setAttribute(bt.attributes.THEME,this._theme))}get muted(){return this._muted}set muted(e){this._muted!==e&&(this._muted=e,this.toggleAttribute(bt.attributes.MUTED,this._muted))}get persistent(){return this._persistent}set persistent(e){this._persistent!==e&&(this._persistent=e,this.toggleAttribute(bt.attributes.PERSISTENT,this._persistent))}get inline(){return this._inline}set inline(e){this._inline!==e&&(this._inline=e,this.toggleAttribute(bt.attributes.INLINE,this._inline))}get skipUrlChange(){return this._skipUrlChange}set skipUrlChange(e){if(this._skipUrlChange!==e){if(this._skipUrlChange=e,this.toggleAttribute(bt.attributes.SKIP_URL_CHANGE,this._skipUrlChange),this._skipUrlChange){this._anchorElement.addEventListener("click",this._clickListener);return}this._anchorElement.removeEventListener("click",this._clickListener)}}_handleClick(e){e.preventDefault();let o=document.getElementById(this._target);o==null||o.focus(),o==null||o.scrollIntoView({behavior:"smooth"})}};Fa=i([y({name:bt.elementName,dependencies:[J,r1]})],Fa);function T7(){f(Fa)}var On=class extends M{};On.formAssociated=!0;var Rf=`${b}slider`,Ff={ARIA_LABEL:"data-aria-label",ARIA_LABEL_START:"data-aria-label-start",ARIA_LABEL_END:"data-aria-label-end",VALUE:"value",VALUE_START:"value-start",VALUE_END:"value-end",LABEL:"label",LABEL_START:"label-start",LABEL_END:"label-end",MIN:"min",MAX:"max",STEP:"step",TICKMARKS:"tickmarks",LABELED:"labeled",RANGE:"range",DISABLED:"disabled",READONLY:"readonly"},Uf={ROOT:".forge-slider",TRACK:".track",HANDLE_CONTAINER:".handle-container",START_INPUT:"input.start",END_INPUT:"input.end",START_HANDLE:".handle.start",START_HANDLE_THUMB:".handle.start .handle-thumb",END_HANDLE:".handle.end",END_HANDLE_THUMB:".handle.end .handle-thumb",START_LABEL:".handle.start .handle-label",START_LABEL_CONTENT:".handle.start .handle-label-content",END_LABEL:".handle.end .handle-label",END_LABEL_CONTENT:".handle.end .handle-label-content",LABEL:".handle-label",INPUT:"input[type=range]"},Wf={RANGE:"range",TICKMARKS:"tickmarks",ON_TOP:"on-top",OVERLAPPING:"overlapping",HOVER:"hover",HANDLE:"handle",HANDLE_THUMB:"handle-thumb",HANDLE_START:"start",HANDLE_LABEL:"handle-label",LABEL:"handle-label",LABEL_CONTENT:"handle-label-content"},Gf={INPUT:"forge-slider-input",CHANGE:"forge-slider-change",RANGE_INPUT:"forge-slider-range-input",RANGE_CHANGE:"forge-slider-range-change"},qf={START_FRACTION:"--_slider-start-fraction",END_FRACTION:"--_slider-end-fraction",TICK_COUNT:"--_slider-tick-count"},Yf={DEFAULT_STEP:1,DEFAULT_VALUE:50,DEFAULT_START_VALUE:33,DEFAULT_END_VALUE:67},V={elementName:Rf,attributes:Ff,selectors:Uf,classes:Wf,events:Gf,numbers:Yf,cssCustomProperties:qf};function S7(n){let t=document.createElement("input");return t.type="range",t.id="start",t.min=String(n.min),t.max=String(n.max),t.step=String(n.step),t.valueAsNumber=n.valueStart,t.disabled=n.disabled,t.classList.add("start"),n.hasAttribute(V.attributes.ARIA_LABEL_START)&&t.setAttribute("aria-label",n.getAttribute(V.attributes.ARIA_LABEL_START)),t.setAttribute("aria-valuetext",String(n.valueStart)),t}function k7(n){let t=document.createElement("div");t.classList.add(V.classes.HANDLE,V.classes.HANDLE_START),t.setAttribute("part","handle-start");let e=document.createElement("forge-state-layer");e.target="start",t.appendChild(e);let o=document.createElement("forge-focus-indicator");o.target="start",t.appendChild(o);let a=document.createElement("div");a.classList.add(V.classes.HANDLE_THUMB),a.setAttribute("part","handle-start-thumb"),t.appendChild(a);let s=document.createElement("div");s.classList.add(V.classes.HANDLE_LABEL),s.setAttribute("part","handle-start-label"),t.appendChild(s);let r=document.createElement("span");return r.textContent=n,r.classList.add(V.classes.LABEL_CONTENT),r.setAttribute("part","handle-start-label-content"),s.appendChild(r),t}function _3(n){let t=document.createElement("div");t.classList.add(V.classes.LABEL);let e=document.createElement("span");return e.textContent=n,e.classList.add(V.classes.LABEL_CONTENT),t.appendChild(e),t}var m4=class extends I{constructor(t){super(t),this._rootElement=w(t,V.selectors.ROOT),this._trackElement=w(t,V.selectors.TRACK),this._handleContainerElement=w(t,V.selectors.HANDLE_CONTAINER),this._endInputElement=w(t,V.selectors.END_INPUT),this._endHandleElement=w(t,V.selectors.END_HANDLE),this._endHandleThumbElement=w(t,V.selectors.END_HANDLE_THUMB),this._endLabelContentElement=w(t,V.selectors.END_LABEL_CONTENT)}addInputListener(t,e){this._getInputs().forEach(a=>a.addEventListener(t,e))}update({startFraction:t,endFraction:e,tickCount:o}){this._rootElement.style.setProperty(V.cssCustomProperties.START_FRACTION,String(t)),this._rootElement.style.setProperty(V.cssCustomProperties.END_FRACTION,String(e)),this._rootElement.style.setProperty(V.cssCustomProperties.TICK_COUNT,String(o))}updateLabels(t,e){var o;this._startLabelContentElement&&(this._startLabelContentElement.textContent=t),this._endLabelContentElement&&(this._endLabelContentElement.textContent=e),(o=this._startInputElement)==null||o.setAttribute("aria-valuetext",t),this._endInputElement.setAttribute("aria-valuetext",e)}updateHandleLayering(){let t=this._endInputElement.matches(":focus");this._startHandleElement&&f2(this._startHandleElement,!t,V.classes.ON_TOP),f2(this._endHandleElement,t,V.classes.ON_TOP)}tryHoverStartHandle(t){var e,o,a;this._startHandleThumbElement&&h5(t,this._startHandleThumbElement)?(this._handleContainerElement.classList.add(V.classes.HOVER),(e=this._startHandleElement)==null||e.classList.add(V.classes.HOVER)):(o=this._startInputElement)!=null&&o.matches(":focus")||(this._handleContainerElement.classList.remove(V.classes.HOVER),(a=this._startHandleElement)==null||a.classList.remove(V.classes.HOVER))}tryHoverEndHandle(t){h5(t,this._endHandleThumbElement)?(this._handleContainerElement.classList.add(V.classes.HOVER),this._endHandleElement.classList.add(V.classes.HOVER)):this._endInputElement.matches(":focus")||(this._handleContainerElement.classList.remove(V.classes.HOVER),this._endHandleElement.classList.remove(V.classes.HOVER))}tryDetectOverlap(){if(this._startHandleElement){let t=Dl(this._startHandleElement,this._endHandleElement);f2(this._endHandleElement,t,V.classes.OVERLAPPING),f2(this._startHandleElement,t,V.classes.OVERLAPPING)}}leaveHandleContainer(){this._handleContainerElement.classList.remove(V.classes.HOVER)}syncInputValues(t,e){if(this._startInputElement&&(this._startInputElement.valueAsNumber=t),this._endInputElement.valueAsNumber=e,this._startInputElement){let o=new FormData;o.append(this._component.nameStart,String(t)),o.append(this._component.nameEnd,String(e)),this._component[s1].setFormValue(o)}else this._component[s1].setFormValue(String(e))}setRange(t){var e,o;if(this._rootElement.classList.toggle(V.classes.RANGE,t),t){this._startInputElement=S7(this._component),this._rootElement.insertAdjacentElement("afterbegin",this._startInputElement),this._endInputElement.valueAsNumber=this._component.valueEnd;let a=this._startInputElement.value;this._startHandleElement=k7(a),this._handleContainerElement.insertAdjacentElement("afterbegin",this._startHandleElement),this._startHandleThumbElement=w(this._component,V.selectors.START_HANDLE_THUMB),this._startLabelContentElement=w(this._component,V.selectors.START_LABEL_CONTENT)}else(e=this._startInputElement)==null||e.remove(),(o=this._startHandleElement)==null||o.remove(),this._startInputElement=void 0,this._startHandleElement=void 0,this._startHandleThumbElement=void 0,this._startLabelContentElement=void 0}setTickmarks(t){this._trackElement.classList.toggle(V.classes.TICKMARKS,t)}setStep(t){this._getInputs().forEach(o=>o.step=String(t))}setMin(t){this._getInputs().forEach(o=>o.min=String(t))}setMax(t){this._getInputs().forEach(o=>o.max=String(t))}setDisabled(t){this._getInputs().forEach(a=>a.disabled=t),this._rootElement.querySelectorAll(I1.elementName).forEach(a=>a.disabled=t)}setReadonly(t){this._getInputs().forEach(o=>o.readOnly=t)}toggleLabels(t){var o;if(this._rootElement.querySelectorAll(V.selectors.LABEL).forEach(a=>a.remove()),this._endLabelContentElement=void 0,this._startLabelContentElement=void 0,t){let a=_3(this._endInputElement.value);if(this._endHandleElement.insertAdjacentElement("beforeend",a),this._endLabelContentElement=w(this._component,V.selectors.END_LABEL_CONTENT),this._startInputElement){let s=_3(this._startInputElement.value);(o=this._startHandleElement)==null||o.insertAdjacentElement("beforeend",s),this._startLabelContentElement=w(this._component,V.selectors.START_LABEL_CONTENT)}}}setStartAriaLabel(t){this._startInputElement&&G(this._startInputElement,!!t,"aria-label",t)}setEndAriaLabel(t){G(this._endInputElement,!!t,"aria-label",t)}_getInputs(){let t=[];return this._startInputElement&&t.push(this._startInputElement),[...t,this._endInputElement]}};var d4=class{constructor(t){this._adapter=t;this._value=V.numbers.DEFAULT_VALUE;this._valueStart=V.numbers.DEFAULT_START_VALUE;this._valueEnd=V.numbers.DEFAULT_END_VALUE;this._min=0;this._max=100;this._step=V.numbers.DEFAULT_STEP;this._tickmarks=!1;this._labeled=!0;this._range=!1;this._disabled=!1;this._readonly=!1;this._pointerEnterListener=e=>this._handlePointerEnter(e),this._pointerMoveListener=e=>this._handlePointerMove(e),this._pointerLeaveListener=e=>this._handlePointerLeave(e),this._changeUpdateListener=e=>this._handleInputUpdate(e),this._focusListener=e=>this._handleFocus(e)}initialize(){this._applyInputListeners(),this._update()}_update(){var H,x;let{value:t,valueStart:e,valueEnd:o}=this._clampMinMax(),a=this._step<=0?1:this._step,s=Math.max(this._max-this._min,a),r=this._range?((e!=null?e:this._min)-this._min)/s:0,l=this._range?o:t,h=((l!=null?l:this.min)-this.min)/s,v=s/a;this._adapter.update({startFraction:r,endFraction:h,tickCount:v}),this._adapter.syncInputValues(e,this._range?o:t),this._range&&this._adapter.tryDetectOverlap();let m=(H=this._labelStart)!=null?H:String(e),u=(x=this._labelEnd)!=null?x:String(this._range?o:t);typeof this._labelBuilder=="function"&&(this._range?(m=this._labelBuilder(e,"start"),u=this._labelBuilder(o,"end")):u=this._labelBuilder(t)),this._adapter.updateLabels(m,u)}_clampMinMax(){let t=this._value,e=this._valueStart,o=this._valueEnd;return this._range?(e>this._max?e=this._max:e<this._min&&(e=this._min),o>this._max?o=this._max:o<this._min&&(o=this._min)):t>this._max?t=this._max:this._value<this._min&&(t=this._min),{value:t,valueStart:e,valueEnd:o}}_applyInputListeners(){this._adapter.addInputListener("pointerenter",this._pointerEnterListener),this._adapter.addInputListener("pointermove",this._pointerMoveListener),this._adapter.addInputListener("pointerleave",this._pointerLeaveListener),this._adapter.addInputListener("input",this._changeUpdateListener),this._adapter.addInputListener("change",this._changeUpdateListener),this._adapter.addInputListener("focus",this._focusListener)}_handlePointerEnter(t){this._handlePointerMove(t)}_handlePointerMove({target:t,x:e,y:o}){t.id==="start"?this._adapter.tryHoverStartHandle({x:e,y:o}):this._adapter.tryHoverEndHandle({x:e,y:o})}_handlePointerLeave(t){this._adapter.leaveHandleContainer()}_handleInputUpdate(t){if(t.stopPropagation(),this._disabled||this._readonly){this._adapter.syncInputValues(this._valueStart,this._range?this._valueEnd:this._value);return}let e=t.target;if(this._range){let l=e.id==="start";if(l?this._valueStart=e.valueAsNumber:this._valueEnd=e.valueAsNumber,this._canClamp()){l?this._valueStart=this._valueEnd:this._valueEnd=this._valueStart,this._adapter.syncInputValues(this._valueStart,this._valueEnd),this._update();return}}else this._value=e.valueAsNumber;let o={default:{change:V.events.CHANGE,input:V.events.INPUT},range:{change:V.events.RANGE_CHANGE,input:V.events.RANGE_INPUT}},a=this._range?o.range[t.type]:o.default[t.type],s=this._range?{valueStart:this._valueStart,valueEnd:this._valueEnd}:{value:this._value},r=new CustomEvent(a,{detail:s,bubbles:!0});this._adapter.dispatchHostEvent(r),this._update()}_handleFocus(t){this._adapter.updateHandleLayering()}_canClamp(){return this._valueStart>this._valueEnd||this._valueEnd<this._valueStart}get value(){return this._value}set value(t){this._value!==t&&(this._value=t,this._update())}get valueStart(){return this._valueStart}set valueStart(t){this._valueStart!==t&&(this._valueStart=t,this._update())}get valueEnd(){return this._valueEnd}set valueEnd(t){this._valueEnd!==t&&(this._valueEnd=t,this._update())}get label(){return this.labelEnd}set label(t){this.labelEnd=t}get labelStart(){return this._labelStart}set labelStart(t){this._labelStart!==t&&(this._labelStart=t,this._adapter.updateLabels(this._labelStart,this._labelEnd))}get labelEnd(){return this._labelEnd}set labelEnd(t){this._labelEnd!==t&&(this._labelEnd=t,this._adapter.updateLabels(this._labelStart,this._labelEnd))}get labelBuilder(){return this._labelBuilder}set labelBuilder(t){this._labelBuilder=t,this._update()}get min(){return this._min}set min(t){this._min!==t&&(this._min=t,this._adapter.setMin(this._min),this._update(),this._adapter.setHostAttribute(V.attributes.MIN,String(this._min)))}get max(){return this._max}set max(t){this._max!==t&&(this._max=t,this._adapter.setMax(this._max),this._update(),this._adapter.setHostAttribute(V.attributes.MAX,String(this._max)))}get step(){return this._step}set step(t){this._step!==t&&(this._step=t,this._adapter.setStep(this._step),this._update(),this._adapter.setHostAttribute(V.attributes.STEP,String(this._step)))}get tickmarks(){return this._tickmarks}set tickmarks(t){this._tickmarks!==t&&(this._tickmarks=t,this._adapter.setTickmarks(this._tickmarks),this._adapter.toggleHostAttribute(V.attributes.TICKMARKS,this._tickmarks))}get labeled(){return this._labeled}set labeled(t){this._labeled!==t&&(this._labeled=t,this._adapter.toggleLabels(this._labeled),this._update(),this._adapter.toggleHostAttribute(V.attributes.LABELED,this._labeled))}get range(){return this._range}set range(t){this._range!==t&&(this._range=t,this._adapter.setRange(this._range),this._range&&this._applyInputListeners(),this._update(),this._adapter.toggleHostAttribute(V.attributes.RANGE,this._range))}get disabled(){return this._disabled}set disabled(t){this._disabled!==t&&(this._disabled=t,this._adapter.setDisabled(t),this._adapter.toggleHostAttribute(V.attributes.DISABLED,this._disabled))}get readonly(){return this._readonly}set readonly(t){this._readonly!==t&&(this._readonly=t,this._adapter.setReadonly(t),this._adapter.toggleHostAttribute(V.attributes.READONLY,this._readonly))}set ariaLabel(t){this.ariaLabelEnd=t}set ariaLabelStart(t){this._adapter.setStartAriaLabel(t)}set ariaLabelEnd(t){this._adapter.setEndAriaLabel(t)}};var Kf='<template><div part="root" class="forge-slider"><input type="range" class="end" id="end" min="0" max="100" step="1" aria-valuetext="0"><div class="track" part="track"></div><div class="handle-container-padded"><div class="handle-container-block"><div class="handle-container"><div class="handle end" part="handle-end"><forge-state-layer exportparts="surface:state-layer" target="end"></forge-state-layer><forge-focus-indicator part="focus-indicator" target="end"></forge-focus-indicator><div class="handle-thumb" part="handle-end-thumb"></div><div class="handle-label" part="handle-end-label"><span class="handle-label-content" part="handle-end-label-content"></span></div></div></div></div></div></div></template>',$f=':host{display:inline-flex;vertical-align:middle;min-inline-size:100%}:host([hidden]){display:none}.forge-slider{--_slider-start-fraction:0;--_slider-end-fraction:0;--_slider-tick-count:100;--_slider-track-height:var(--forge-slider-track-height, 4px);--_slider-active-track-color:var(--forge-slider-active-track-color, var(--forge-theme-primary, #3f51b5));--_slider-active-track-height:var(--forge-slider-active-track-height, var(--_slider-track-height));--_slider-active-track-shape:var(--forge-slider-active-track-shape, calc(var(--forge-shape-full, 9999px) * var(--forge-shape-factor, 1)));--_slider-disabled-active-track-color:var(--forge-slider-disabled-active-track-color, var(--forge-theme-surface-container-high, #9e9e9e));--_slider-disabled-active-track-opacity:var(--forge-slider-disabled-active-track-opacity, 0.38);--_slider-disabled-handle-color:var(--forge-slider-disabled-handle-color, var(--forge-theme-surface-container-high, #9e9e9e));--_slider-disabled-inactive-track-color:var(--forge-slider-disabled-inactive-track-color, var(--forge-theme-surface-container-high, #9e9e9e));--_slider-disabled-inactive-track-opacity:var(--forge-slider-disabled-inactive-track-opacity, 0.12);--_slider-focus-handle-color:var(--forge-slider-focus-handle-color, var(--forge-theme-primary, #3f51b5));--_slider-handle-color:var(--forge-slider-handle-color, var(--forge-theme-primary, #3f51b5));--_slider-handle-height:var(--forge-slider-handle-height, 20px);--_slider-handle-shape:var(--forge-slider-handle-shape, calc(var(--forge-shape-round, 50%) * var(--forge-shape-factor, 1)));--_slider-handle-width:var(--forge-slider-handle-width, 20px);--_slider-hover-handle-color:var(--forge-slider-hover-handle-color, var(--forge-theme-primary, #3f51b5));--_slider-inactive-track-color:var(--forge-slider-inactive-track-color, var(--forge-theme-primary-container, #d1d5ed));--_slider-inactive-track-height:var(--forge-slider-inactive-track-height, var(--_slider-track-height));--_slider-inactive-track-shape:var(--forge-slider-inactive-track-shape, calc(var(--forge-shape-full, 9999px) * var(--forge-shape-factor, 1)));--_slider-label-container-shape:var(--forge-slider-label-container-shape, calc(var(--forge-shape-full, 9999px) * var(--forge-shape-factor, 1)));--_slider-label-container-color:var(--forge-slider-label-container-color, var(--forge-theme-primary, #3f51b5));--_slider-label-container-height:var(--forge-slider-label-container-height, 28px);--_slider-label-text-color:var(--forge-slider-label-text-color, var(--forge-theme-on-primary, #ffffff));--_slider-pressed-handle-color:var(--forge-slider-pressed-handle-color, var(--forge-theme-primary, #3f51b5));--_slider-state-layer-size:var(--forge-slider-state-layer-size, 40px);--_slider-with-overlap-handle-outline-color:var(--forge-slider-with-overlap-handle-outline-color, var(--forge-theme-on-primary, #ffffff));--_slider-with-overlap-handle-outline-width:var(--forge-slider-with-overlap-handle-outline-width, 1px);--_slider-with-tick-marks-active-container-color:var(--forge-slider-with-tick-marks-active-container-color, var(--forge-theme-on-primary, #ffffff));--_slider-with-tick-marks-container-size:var(--forge-slider-with-tick-marks-container-size, 2px);--_slider-with-tick-marks-disabled-active-container-color:var(--forge-slider-with-tick-marks-disabled-active-container-color, var(--forge-theme-on-surface-container-high, #000000));--_slider-with-tick-marks-disabled-inactive-container-color:var(--forge-slider-with-tick-marks-disabled-inactive-container-color, var(--forge-theme-on-surface-container-high, #000000));--_slider-with-tick-marks-inactive-container-color:var(--forge-slider-with-tick-marks-inactive-container-color, var(--forge-theme-primary, #3f51b5))}.forge-slider{flex:1;display:flex;align-items:center;position:relative;block-size:var(--_slider-state-layer-size);pointer-events:none;touch-action:none}.forge-slider.range :host-context([dir=rtl]) input.start{clip-path:inset(0 0 0 calc(100% - (var(--_slider-state-layer-size)/ 2 + (100% - var(--_slider-state-layer-size)) * (var(--_slider-start-fraction) + (var(--_slider-end-fraction) - var(--_slider-start-fraction))/ 2))))}.forge-slider.range :host([dir=rtl]) input.start{clip-path:inset(0 0 0 calc(100% - (var(--_slider-state-layer-size)/ 2 + (100% - var(--_slider-state-layer-size)) * (var(--_slider-start-fraction) + (var(--_slider-end-fraction) - var(--_slider-start-fraction))/ 2))))}.forge-slider.range input.start:dir(rtl){clip-path:inset(0 0 0 calc(100% - (var(--_slider-state-layer-size)/ 2 + (100% - var(--_slider-state-layer-size)) * (var(--_slider-start-fraction) + (var(--_slider-end-fraction) - var(--_slider-start-fraction))/ 2))))}.forge-slider.range input.start{clip-path:inset(0 calc(100% - (var(--_slider-state-layer-size)/ 2 + (100% - var(--_slider-state-layer-size)) * (var(--_slider-start-fraction) + (var(--_slider-end-fraction) - var(--_slider-start-fraction))/ 2))) 0 0)}.forge-slider.range input.end{clip-path:inset(0 0 0 calc(var(--_slider-state-layer-size)/ 2 + (100% - var(--_slider-state-layer-size)) * (var(--_slider-start-fraction) + (var(--_slider-end-fraction) - var(--_slider-start-fraction))/ 2)))}.forge-slider.range :host-context([dir=rtl]) input.end{clip-path:inset(0 calc(var(--_slider-state-layer-size)/ 2 + (100% - var(--_slider-state-layer-size)) * (var(--_slider-start-fraction) + (var(--_slider-end-fraction) - var(--_slider-start-fraction))/ 2)) 0 0)}.forge-slider.range :host([dir=rtl]) input.end{clip-path:inset(0 calc(var(--_slider-state-layer-size)/ 2 + (100% - var(--_slider-state-layer-size)) * (var(--_slider-start-fraction) + (var(--_slider-end-fraction) - var(--_slider-start-fraction))/ 2)) 0 0)}.forge-slider.range input.end:dir(rtl){clip-path:inset(0 calc(var(--_slider-state-layer-size)/ 2 + (100% - var(--_slider-state-layer-size)) * (var(--_slider-start-fraction) + (var(--_slider-end-fraction) - var(--_slider-start-fraction))/ 2)) 0 0)}.track{position:absolute;inset:0;display:flex;align-items:center}.track::after,.track::before{content:"";position:absolute;inset-inline-start:calc(var(--_slider-state-layer-size)/ 2 - var(--_slider-with-tick-marks-container-size));inset-inline-end:calc(var(--_slider-state-layer-size)/ 2 - var(--_slider-with-tick-marks-container-size));background-size:calc((100% - var(--_slider-with-tick-marks-container-size) * 2)/ var(--_slider-tick-count)) 100%}.track::before{block-size:var(--_slider-inactive-track-height);border-radius:var(--_slider-inactive-track-shape);background-color:var(--_slider-inactive-track-color)}.track::after{block-size:var(--_slider-active-track-height);border-radius:var(--_slider-active-track-shape);clip-path:inset(0 calc(calc(var(--_slider-with-tick-marks-container-size) * min((1 - var(--_slider-end-fraction)) * 1000000000,1)) + calc(100% - var(--_slider-with-tick-marks-container-size) * 2) * (1 - var(--_slider-end-fraction))) 0 calc(calc(var(--_slider-with-tick-marks-container-size) * min(var(--_slider-start-fraction) * 1000000000,1)) + calc(100% - var(--_slider-with-tick-marks-container-size) * 2) * var(--_slider-start-fraction)));background-color:var(--_slider-active-track-color)}.track.tickmarks::before{background-image:radial-gradient(circle at var(--_slider-with-tick-marks-container-size) center,var(--_slider-with-tick-marks-inactive-container-color) 0,var(--_slider-with-tick-marks-inactive-container-color) calc(var(--_slider-with-tick-marks-container-size)/ 2),transparent calc(var(--_slider-with-tick-marks-container-size)/ 2))}.track.tickmarks::after{background-image:radial-gradient(circle at var(--_slider-with-tick-marks-container-size) center,var(--_slider-with-tick-marks-active-container-color) 0,var(--_slider-with-tick-marks-active-container-color) calc(var(--_slider-with-tick-marks-container-size)/ 2),transparent calc(var(--_slider-with-tick-marks-container-size)/ 2))}.handle-container-block,.handle-container-padded{position:relative;block-size:100%;inline-size:100%}.handle-container-padded{padding-inline:calc(var(--_slider-state-layer-size)/ 2)}.handle-container{position:absolute;inset-block-start:0;inset-block-end:0;inset-inline-start:calc(100% * var(--_slider-start-fraction));inline-size:calc(100% * (var(--_slider-end-fraction) - var(--_slider-start-fraction)))}.handle{position:absolute;block-size:var(--_slider-state-layer-size);inline-size:var(--_slider-state-layer-size);border-radius:var(--_slider-handle-shape);display:grid;place-items:center}.handle.start{inset-inline-start:calc(0px - var(--_slider-state-layer-size)/ 2)}.handle.end{inset-inline-end:calc(0px - var(--_slider-state-layer-size)/ 2)}.handle-thumb{box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12);position:absolute;height:var(--_slider-handle-height);width:var(--_slider-handle-width);border-radius:var(--_slider-handle-shape);background:var(--_slider-handle-color)}.handle-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-label1-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-label1-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-label-font-size-scale, .75)));line-height:var(--forge-typography-label1-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-label-line-height-scale, 1.25)));letter-spacing:var(--forge-typography-label1-letter-spacing, .0357142857em);text-transform:var(--forge-typography-label1-text-transform,inherit);text-decoration:var(--forge-typography-label1-text-decoration,inherit);position:absolute;box-sizing:border-box;display:grid;padding:4px;place-items:center;border-radius:var(--_slider-label-container-shape);color:var(--_slider-label-text-color);font-weight:500;white-space:nowrap;inset-block-end:100%;min-inline-size:var(--_slider-label-container-height);min-block-size:var(--_slider-label-container-height);background:var(--_slider-label-container-color);transition:transform var(--forge-animation-duration-short2, 100ms) var(--forge-animation-easing-standard, cubic-bezier(.2, 0, 0, 1));transform-origin:center bottom;transform:scale(0)}.handle-label::after,.handle-label::before{content:"";position:absolute;display:block;background:inherit}.handle-label::before{inline-size:calc(var(--_slider-label-container-height)/ 2);block-size:calc(var(--_slider-label-container-height)/ 2);bottom:calc(var(--_slider-label-container-height)/ -10);transform:rotate(45deg)}.handle-label::after{inset:0;border-radius:inherit}.handle-label-content{z-index:1}.handle-container.hover .handle-thumb{background:var(--_slider-hover-handle-color)}:host(:not([disabled])) input.end:active~.handle-container-padded .handle.end>.handle-thumb,:host(:not([disabled])) input.start:active~.handle-container-padded .handle.start>.handle-thumb{background:var(--_slider-pressed-handle-color)}:host([disabled]) .handle-thumb{box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12);background:var(--_slider-disabled-handle-color)}:host([disabled]) .handle-label{background:var(--_slider-disabled-handle-color)}:host([disabled]) .track::before{opacity:calc(1 / var(--_slider-disabled-active-track-opacity) * var(--_slider-disabled-inactive-track-opacity));background-color:var(--_slider-disabled-inactive-track-color)}:host([disabled]) .track::after{background-color:var(--_slider-disabled-active-track-color)}:host([disabled]) .track.tickmarks::before{background-image:radial-gradient(circle at var(--_slider-with-tick-marks-container-size) center,var(--_slider-with-tick-marks-disabled-inactive-container-color) 0,var(--_slider-with-tick-marks-disabled-inactive-container-color) calc(var(--_slider-with-tick-marks-container-size)/ 2),transparent calc(var(--_slider-with-tick-marks-container-size)/ 2))}:host([disabled]) .track.tickmarks::after{background-image:radial-gradient(circle at var(--_slider-with-tick-marks-container-size) center,var(--_slider-with-tick-marks-disabled-active-container-color) 0,var(--_slider-with-tick-marks-disabled-active-container-color) calc(var(--_slider-with-tick-marks-container-size)/ 2),transparent calc(var(--_slider-with-tick-marks-container-size)/ 2))}:host([disabled]) input[type=range]{cursor:not-allowed}:host-context([dir=rtl]) .track::after{clip-path:inset(0 calc(calc(var(--_slider-with-tick-marks-container-size) * min(var(--_slider-start-fraction) * 1000000000,1)) + calc(100% - var(--_slider-with-tick-marks-container-size) * 2) * var(--_slider-start-fraction)) 0 calc(calc(var(--_slider-with-tick-marks-container-size) * min((1 - var(--_slider-end-fraction)) * 1000000000,1)) + calc(100% - var(--_slider-with-tick-marks-container-size) * 2) * (1 - var(--_slider-end-fraction))))}:host([dir=rtl]) .track::after{clip-path:inset(0 calc(calc(var(--_slider-with-tick-marks-container-size) * min(var(--_slider-start-fraction) * 1000000000,1)) + calc(100% - var(--_slider-with-tick-marks-container-size) * 2) * var(--_slider-start-fraction)) 0 calc(calc(var(--_slider-with-tick-marks-container-size) * min((1 - var(--_slider-end-fraction)) * 1000000000,1)) + calc(100% - var(--_slider-with-tick-marks-container-size) * 2) * (1 - var(--_slider-end-fraction))))}.track:dir(rtl)::after{clip-path:inset(0 calc(calc(var(--_slider-with-tick-marks-container-size) * min(var(--_slider-start-fraction) * 1000000000,1)) + calc(100% - var(--_slider-with-tick-marks-container-size) * 2) * var(--_slider-start-fraction)) 0 calc(calc(var(--_slider-with-tick-marks-container-size) * min((1 - var(--_slider-end-fraction)) * 1000000000,1)) + calc(100% - var(--_slider-with-tick-marks-container-size) * 2) * (1 - var(--_slider-end-fraction))))}input.end:focus~.handle-container-padded .handle.end>.handle-thumb,input.start:focus~.handle-container-padded .handle.start>.handle-thumb{background:var(--_slider-focus-handle-color)}.on-top.overlapping .handle-label,.on-top.overlapping .handle-label::before,.on-top.overlapping .handle-thumb{border:var(--_slider-with-overlap-handle-outline-color) solid var(--_slider-with-overlap-handle-outline-width)}.handle-container.hover .handle-label,:host(:focus-within) .handle-label,:where(:has(input:active)) .handle-label{transform:scale(1)}input[type=range]{opacity:0;-webkit-tap-highlight-color:transparent;position:absolute;box-sizing:border-box;height:100%;width:100%;margin:0;background:0 0;cursor:pointer;pointer-events:auto;appearance:none}input[type=range]:focus{outline:0}input[type=range]::-webkit-slider-runnable-track{-webkit-appearance:none}input[type=range]::-moz-range-track{appearance:none}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;block-size:var(--_slider-state-layer-size);inline-size:var(--_slider-state-layer-size);transform:scaleX(0);opacity:0;z-index:2}input[type=range]::-moz-range-thumb{appearance:none;block-size:var(--_slider-state-layer-size);inline-size:var(--_slider-state-layer-size);transform:scaleX(0);opacity:0;z-index:2}.on-top{z-index:1}@media (prefers-reduced-motion){.handle-label{transition-duration:0}}forge-focus-indicator{--forge-focus-indicator-shape:50%;--forge-focus-indicator-outward-offset:0px}forge-state-layer{--forge-state-layer-color:var(--_slider-handle-color)}',O7,_2=class extends(O7=On,s1,O7){static get observedAttributes(){return[V.attributes.ARIA_LABEL,V.attributes.ARIA_LABEL_START,V.attributes.ARIA_LABEL_END,V.attributes.VALUE,V.attributes.VALUE_START,V.attributes.VALUE_END,V.attributes.LABEL,V.attributes.LABEL_START,V.attributes.LABEL_END,V.attributes.MAX,V.attributes.MIN,V.attributes.STEP,V.attributes.TICKMARKS,V.attributes.LABELED,V.attributes.RANGE,V.attributes.DISABLED,V.attributes.READONLY]}get form(){return this[s1].form}get labels(){return this[s1].labels}get name(){var t;return(t=this.getAttribute("name"))!=null?t:""}set name(t){G(this,!!t,"name",t!=null?t:"")}get nameStart(){var t;return(t=this.getAttribute("name-start"))!=null?t:this.name}set nameStart(t){G(this,!!t,"name-start",t!=null?t:"")}get nameEnd(){var t;return(t=this.getAttribute("name-end"))!=null?t:this.nameStart}set nameEnd(t){G(this,!!t,"name-end",t!=null?t:"")}constructor(){super(),z(this,Kf,$f),this[s1]=this.attachInternals(),this._core=new d4(new m4(this))}connectedCallback(){this._core.initialize()}attributeChangedCallback(t,e,o){switch(t){case V.attributes.ARIA_LABEL:this._core.ariaLabel=o;break;case V.attributes.ARIA_LABEL_START:this._core.ariaLabelStart=o;break;case V.attributes.ARIA_LABEL_END:this._core.ariaLabelEnd=o;break;case V.attributes.VALUE:this.value=K(o);break;case V.attributes.VALUE_START:this.valueStart=K(o);break;case V.attributes.VALUE_END:this.valueEnd=K(o);break;case V.attributes.LABEL:this.label=o;break;case V.attributes.LABEL_START:this.labelStart=o;break;case V.attributes.LABEL_END:this.labelEnd=o;break;case V.attributes.MIN:this.min=K(o);break;case V.attributes.MAX:this.max=K(o);break;case V.attributes.STEP:this.step=K(o);break;case V.attributes.TICKMARKS:this.tickmarks=p(o);break;case V.attributes.LABELED:this.labeled=p(o);break;case V.attributes.RANGE:this.range=p(o);break;case V.attributes.DISABLED:this.disabled=p(o);break;case V.attributes.READONLY:this.readonly=p(o);break}}formResetCallback(){if(this._core.range){let e=this.getAttribute("value-start");this.valueStart=e!==null?Number(e):V.numbers.DEFAULT_START_VALUE;let o=this.getAttribute("value-end");this.valueEnd=o!==null?Number(o):V.numbers.DEFAULT_END_VALUE;return}let t=this.getAttribute("value");this.value=t!==null?Number(t):V.numbers.DEFAULT_VALUE}formStateRestoreCallback(t){if(t&&t[0]instanceof FormData){let e=Array.from(t[0]),[[,o],[,a]]=e;this.valueStart=Number(o),this.valueEnd=Number(a),this.range=!0;return}this.value=Number(t),this.range=!1}formDisabledCallback(t){this.disabled=t}};_2.formAssociated=!0,i([c()],_2.prototype,"value",2),i([c()],_2.prototype,"valueStart",2),i([c()],_2.prototype,"valueEnd",2),i([c()],_2.prototype,"label",2),i([c()],_2.prototype,"labelStart",2),i([c()],_2.prototype,"labelEnd",2),i([c()],_2.prototype,"labelBuilder",2),i([c()],_2.prototype,"min",2),i([c()],_2.prototype,"max",2),i([c()],_2.prototype,"step",2),i([c()],_2.prototype,"tickmarks",2),i([c()],_2.prototype,"labeled",2),i([c()],_2.prototype,"range",2),i([c()],_2.prototype,"disabled",2),i([c()],_2.prototype,"readonly",2),_2=i([y({name:V.elementName,dependencies:[J,r1]})],_2);var D7=class extends o2{constructor(t){super(t)}get value(){return this._element.value}set value(t){this._element.value=t}get valueStart(){return this._element.valueStart}set valueStart(t){this._element.valueStart=t}get valueEnd(){return this._element.valueEnd}set valueEnd(t){this._element.valueEnd=t}get disabled(){return this._element.disabled}set disabled(t){this._element.disabled=t}get min(){return this._element.min}set min(t){this._element.min=t}get max(){return this._element.max}set max(t){this._element.max=t}get step(){return this._element.step}get range(){return this._element.range}set range(t){this._element.range=t}get tickmarks(){return this._element.tickmarks}set tickmarks(t){this._element.tickmarks=t}get labeled(){return this._element.labeled}set labeled(t){this._element.labeled=t}get labelBuilder(){return this._element.labelBuilder}set labelBuilder(t){this._element.labelBuilder=t}onInput(t){this._element.addEventListener("forge-slider-input",({detail:e})=>t(e))}onChange(t){this._element.addEventListener("forge-slider-change",({detail:e})=>t(e))}onRangeInput(t){this._element.addEventListener("forge-slider-range-input",({detail:e})=>t(e))}onRangeChange(t){this._element.addEventListener("forge-slider-range-change",({detail:e})=>t(e))}onFocus(t){this._element.addEventListener("focus",e=>t(e))}onBlur(t){this._element.addEventListener("blur",e=>t(e))}_build(){return document.createElement(V.elementName)}};function P7(){f(_2)}var I0=`${b}split-view-panel`,Xf={RESIZABLE:"resizable",SIZE:"size",MIN:"min",MAX:"max",OPEN:"open",ACCESSIBLE_LABEL:"accessible-label",DISABLED:"disabled",ALLOW_CLOSE:"allow-close",AUTO_CLOSE:"auto-close",AUTO_CLOSE_THRESHOLD:"auto-close-threshold",ORIENTATION:"orientation"},Zf={ROOT:"forge-split-view-panel",GRABBED:"forge-split-view-panel--grabbed",HANDLE:"forge-split-view-panel__handle",ICON:"forge-split-view-panel__icon",CONTENT:"forge-split-view-panel__content",CLOSED:"forge-split-view-panel--closed",CLOSING:"forge-split-view-panel--closing",OPENING:"forge-split-view-panel--opening",DISABLED:"forge-split-view-panel--disabled",OVERLAY:"forge-split-view-panel-overlay"},Ua={ROOT:"root",HANDLE:"handle",ICON:"icon",STATE_LAYER:"state-layer",CONTENT:"content"},jf={ROOT:`#${Ua.ROOT}`,HANDLE:`#${Ua.HANDLE}`,ICON:`#${Ua.ICON}`,STATE_LAYER:`#${Ua.STATE_LAYER}`,CONTENT:`#${Ua.CONTENT}`},Qf={WILL_RESIZE:`${I0}-will-resize`,RESIZE_START:`${I0}-resize-start`,RESIZE_END:`${I0}-resize-end`,RESIZE:`${I0}-resize`,DID_OPEN:`${I0}-did-open`,DID_CLOSE:`${I0}-did-close`,WILL_OPEN:`${I0}-will-open`,WILL_CLOSE:`${I0}-will-close`},Jf={STATE_LAYER_ACTIVATION_WAIT:200},tb={SIZE:"--forge-split-view-panel-size",CURSOR:"--forge-split-view-panel-cursor"},P={elementName:I0,attributes:Xf,classes:Zf,ids:Ua,selectors:jf,events:Qf,numbers:Jf,customCssProperties:tb},N7=(o=>(o[o.Under=1]="Under",o[o.Active=2]="Active",o[o.Above=3]="Above",o))(N7||{});function R7(){return{orientation:"horizontal",resizable:"off",arrowKeyHeld:!1,keyboardDelta:0,isAtMin:!1,isAtMax:!1,min:0}}function F7(n,t){let e=n.getContentSize(t.orientation);return S(d({},t),{currentSize:e,startSize:e,availableSpace:n.getAvailableSpace(t.orientation,t.resizable),siblingSize:n.getSiblingContentSize(),isAtMin:!1,isAtMax:!1})}function U7(n){return S(d({},n),{arrowKeyHeld:!1,keyboardDelta:0,isAtMin:!1,isAtMax:!1})}function W7(n,t,e){if(e.startPoint===void 0||e.startSize===void 0)return!1;let o=e.currentSize,a=e.orientation==="horizontal"?t.clientX:t.clientY,s=e.startPoint-a;e.resizable==="start"&&(s*=-1);let r=e.startSize-s;e.currentSize=g4(r,e),n.setContentSize(e.currentSize),w4(n,e,"pointer"),n.setValuenow(u4(e.currentSize,e));let l=r-e.currentSize+s;return K7(n,l,e),o!==e.currentSize}function G7(n,t,e){if(e.startSize===void 0)return!1;let o=e.currentSize;e.keyboardDelta+=t;let a=e.startSize+e.keyboardDelta;e.currentSize=g4(a,e),n.setContentSize(e.currentSize),w4(n,e,"keyboard"),n.setValuenow(u4(e.currentSize,e));let s=a-e.currentSize+e.keyboardDelta*-1;return K7(n,s,e),o!==e.currentSize}function q7(n,t){return n.setContentSize(t.min),t.min}function Y7(n,t){let e=n.getAvailableSpace(t.orientation,t.resizable),o=k0(t.max,e);return n.setContentSize(o),o}function K7(n,t,e){if(e.siblingSize!==void 0){let o=e.siblingSize+t;n.setSiblingContentSize(o)}}function g4(n,t){return n=Math.max(n,t.min),n=k0(n,t.max,t.availableSpace),n}function w4(n,t,e){if(t.currentSize===void 0)return!1;if(t.currentSize<=t.min)return t.isAtMin||(n.animateStateLayer(e==="pointer"),e==="pointer"&&n.setBodyCursor(t.orientation,{resizable:t.resizable,boundary:"min"}),t.isAtMin=!0),!0;t.isAtMin&&(t.isAtMin=!1);let o=k0(t.max,t.availableSpace);return t.currentSize>=o?(t.isAtMax||(n.animateStateLayer(e==="pointer"),e==="pointer"&&n.setBodyCursor(t.orientation,{resizable:t.resizable,boundary:"max"}),t.isAtMax=!0),!0):(t.isAtMax&&(t.isAtMax=!1),e==="pointer"&&n.setBodyCursor(t.orientation),!1)}function $7(n,t,e){if(t<=e.min)return n.setHandleCursor(e.orientation,{resizable:e.resizable,boundary:"min"}),!0;let o=k0(e.max,e.availableSpace);return t>=o?(n.setHandleCursor(e.orientation,{resizable:e.resizable,boundary:"max"}),!0):(n.setHandleCursor(e.orientation),!1)}function u4(n,t){if(!t.availableSpace&&!t.max)return 100;let e=k0(t.max,t.availableSpace);return cs(n,t.min,e)}function x3(n,t){if(n==="horizontal")switch(t==null?void 0:t.boundary){case"min":return t.resizable==="end"?"e-resize":"w-resize";case"max":return t.resizable==="end"?"w-resize":"e-resize";default:return"col-resize"}else switch(t==null?void 0:t.boundary){case"min":return t.resizable==="end"?"s-resize":"n-resize";case"max":return t.resizable==="end"?"n-resize":"s-resize";default:return"row-resize"}}function X7(n){return n==="horizontal"?"drag_vertical_variant":"drag_handle"}function _4(n){let t=n.resizable;if(t==="off")return;let e=n;do e=t==="end"?e.nextElementSibling:e.previousElementSibling;while(e instanceof L2&&!e.open);if(e instanceof L2)return e}function eb(n){var s,r;if(!isNaN(+n))return{amount:+n,unit:"px"};let t=/(^\d*\.?\d*)\s*(px|%$)?/i,e=n.match(t),o=e!=null&&e[1]?+e[1]:-1,a=(r=(s=e==null?void 0:e[2])==null?void 0:s.toLowerCase())!=null?r:"";return{amount:o,unit:a}}function Uo(n,t){let e=eb(n);return e.unit==="%"?Ol(e.amount,t):e.amount}function Z7(){let n=document.createElement("div");return n.classList.add(P.classes.OVERLAY),n.style.position="fixed",n.style.top="0",n.style.left="0",n.style.width="100vw",n.style.height="100vh",n.style.zIndex="9999",n}var x4=class{constructor(t){this._adapter=t;this._size=200;this._min=0;this._accessibleLabel="Split view panel";this._open=!0;this._state=R7();this._isInitialized=!1;this._parentProperties={};this._pointerdownListener=e=>this._onPointerdown(e),this._pointerupListener=e=>this._onPointerup(e),this._pointermoveListener=e=>this._onPointermove(e),this._keydownListener=e=>this._onKeydown(e),this._keyupListener=e=>this._onKeyup(e)}get _orientation(){return this._state.orientation}set _orientation(t){this._state.orientation=t}get _resizable(){return this._state.resizable}set _resizable(t){this._state.resizable=t}get _pixelMin(){return this._state.min}set _pixelMin(t){this._state.min=t}get _pixelMax(){return this._state.max}set _pixelMax(t){this._state.max=t}get _appliedDisabled(){var t,e;return(e=(t=this._disabled)!=null?t:this._parentProperties.disabled)!=null?e:!1}get _appliedAllowClose(){var t,e;return(e=(t=this._allowClose)!=null?t:this._parentProperties.allowClose)!=null?e:!1}get _appliedAutoClose(){var t,e;return(e=(t=this._autoClose)!=null?t:this._parentProperties.autoClose)!=null?e:!1}get _appliedAutoCloseThreshold(){var t,e;return(e=(t=this._autoCloseThreshold)!=null?t:this._parentProperties.autoCloseThreshold)!=null?e:0}initialize(){this._adapter.initialize(),this._adapter.setPointerdownListener(this._pointerdownListener),this._adapter.setKeydownListener(this._keydownListener),this._getParentProperties(),this._applyResizable(),this._applyMin(),this._applyMax(),this._applySize(),this._applyAccessibleLabel(),this._applyOpen(),this._applyDisabled(),this._applyAllowClose(),this._applyAutoClose(),this._applyAutoCloseThreshold(),this._isInitialized=!0}destroy(){this._adapter.tryRemoveOverlay(),this._adapter.removePointerupListener(this._pointerupListener),this._adapter.removePointermoveListener(this._pointermoveListener)}_onPointerdown(t){this._appliedDisabled||!this._allowResize("pointer")||(t.preventDefault(),this._adapter.setPointermoveListener(this._pointermoveListener),this._adapter.setPointerupListener(this._pointerupListener),this._handlePointerdown(t))}_onPointerup(t){t.preventDefault(),this._adapter.removePointermoveListener(this._pointermoveListener),this._adapter.removePointerupListener(this._pointerupListener),this._handlePointerup()}_onPointermove(t){if(!this._appliedDisabled){if(t.preventDefault(),t.buttons===0){this._adapter.removePointermoveListener(this._pointermoveListener),this._adapter.removePointerupListener(this._pointerupListener),this._handlePointerup();return}this._handlePointermove(t)}}_onKeydown(t){this._appliedDisabled||(t.key==="Enter"?this._handleEnterKey(t):t.key==="Home"&&this._allowResize("keyboard")?this._handleHomeKey(t):t.key==="End"&&this._allowResize("keyboard")?this._handleEndKey(t):m5(t)&&this._allowResize("keyboard")&&(this._adapter.setKeyupListener(this._keyupListener),this._handleArrowKey(t)))}_onKeyup(t){m5(t)&&(this._adapter.removeKeyupListener(this._keyupListener),this._handleArrowKeyUp())}_handleEnterKey(t){this._appliedAllowClose&&(t.preventDefault(),this._tryOpenOrClose(!this._open,!1,!0))}_handleHomeKey(t){t.preventDefault();let e=q7(this._adapter,this._state);this._adapter.emitHostEvent(P.events.RESIZE,e),this._tryAutoClose()}_handleEndKey(t){t.preventDefault();let e=Y7(this._adapter,this._state);this._adapter.emitHostEvent(P.events.RESIZE,e)}_handleArrowKey(t){let e=0;if(this._orientation==="horizontal")switch(t.key){case"ArrowLeft":e=-1;break;case"ArrowRight":e=1;break;default:return}else switch(t.key){case"ArrowUp":e=-1;break;case"ArrowDown":e=1;break;default:return}t.preventDefault(),this._resizable==="start"&&(e*=-1),t.shiftKey&&(e*=10),this._tryHandleArrowKeyDown(),this._handleArrowKeyHeld(e)}_tryHandleArrowKeyDown(){this._state.arrowKeyHeld||this._startResize(),this._state.arrowKeyHeld=!0}_handleArrowKeyUp(){this._endResize()}_handleArrowKeyHeld(t){G7(this._adapter,t,this._state)&&this._adapter.emitHostEvent(P.events.RESIZE,this._state.currentSize)}_handlePointerdown(t){this._adapter.setGrabbed(!0),this._adapter.focusHandle(),this._startResize(),this._state.startPoint=this._orientation==="horizontal"?t.clientX:t.clientY,w4(this._adapter,this._state,"pointer")}_handlePointerup(){this._adapter.setGrabbed(!1),this._endResize()}_handlePointermove(t){W7(this._adapter,t,this._state)&&this._adapter.emitHostEvent(P.events.RESIZE,this._state.currentSize)}_allowResize(t){return this._adapter.emitHostEvent(P.events.WILL_RESIZE,{inputDeviceType:t},!0,!0)}_startResize(){this._state=F7(this._adapter,this._state),this._adapter.emitHostEvent(P.events.RESIZE_START,this._state.startSize)}_endResize(){this._adapter.emitHostEvent(P.events.RESIZE_END,this._state.currentSize),this._adapter.updateParent({accessibility:this._state.startSize!==this._state.currentSize,cursor:!0}),this._state=U7(this._state),this._tryAutoClose()}_tryOpenOrClose(t=!0,e=!1,o=!1){let a=t?P.events.WILL_OPEN:P.events.WILL_CLOSE,s={auto:e,userInitiated:o};this._adapter.emitHostEvent(a,s,!0,!0)&&(this._open=t,this._applyOpen(s))}_tryAutoClose(){let t=this._adapter.getContentSize(this._orientation);this._appliedAutoClose&&t<=this._appliedAutoCloseThreshold&&this._tryOpenOrClose(!1,!0,!1)}_getParentProperties(){let t=this._adapter.getParentProperty("disabled");this._parentProperties.disabled=t,this._applyParentDisabled();let e=this._adapter.getParentProperty("allowClose");this._parentProperties.allowClose=e;let o=this._adapter.getParentProperty("autoClose");this._parentProperties.autoClose=o,this._applyParentAutoClose();let a=this._adapter.getParentProperty("autoCloseThreshold");this._parentProperties.autoCloseThreshold=a,this._applyParentAutoCloseThreshold()}_applyOrientation(){this._adapter.setOrientation(this._orientation)}get resizable(){return this._resizable}set resizable(t){this._resizable!==t&&(this._resizable=t,this._applyResizable())}_applyResizable(){this._adapter.setHostAttribute(P.attributes.RESIZABLE,this._resizable),this._adapter.setResizable(this._resizable)}get size(){return this._size}set size(t){this._size.toString()!==t.toString()&&(this._size=t,this._applySize())}_applySize(){let t=this._adapter.getParentSize(this._orientation),e=Uo(this._size,t);this._adapter.setHostAttribute(P.attributes.SIZE,this._size.toString()),this._adapter.setContentSize(e),window.requestAnimationFrame(()=>{let o=this._adapter.getAvailableSpace(this._orientation,this._resizable),a=k0(this._pixelMax,o),s=cs(e,this._pixelMin,a);this._adapter.setValuenow(s),this._adapter.updateParent({cursor:!0})})}get min(){return this._min}set min(t){this._min.toString()!==t.toString()&&(this._min=t,this._applyMin())}_applyMin(){this._adapter.setHostAttribute(P.attributes.MIN,this._min.toString());let t=this._adapter.getParentSize(this._orientation);if(this._pixelMin=Uo(this._min,t),this._resizable==="off")return;let e=this._adapter.getContentSize(this._orientation);e<this._pixelMin&&this.setContentSize(e)}get max(){return this._max}set max(t){var e;((e=this._max)==null?void 0:e.toString())!==(t==null?void 0:t.toString())&&(this._max=t,this._applyMax())}_applyMax(){var o;if(this._adapter.toggleHostAttribute(P.attributes.MAX,this._max!==void 0,(o=this._max)==null?void 0:o.toString()),this._max===void 0){this._pixelMax=void 0;return}let t=this._adapter.getParentSize(this._orientation);if(this._pixelMax=Uo(this._max,t),this._resizable==="off")return;let e=this._adapter.getContentSize(this._orientation);e>this._pixelMax&&this.setContentSize(e)}get accessibleLabel(){return this._accessibleLabel}set accessibleLabel(t){this._accessibleLabel!==t&&(this._accessibleLabel=t,this._applyAccessibleLabel())}_applyAccessibleLabel(){this._adapter.setHostAttribute(P.attributes.ACCESSIBLE_LABEL,this._accessibleLabel),this._adapter.setAccessibleLabel(this._accessibleLabel)}get open(){return this._open}set open(t){if(this._open!==t){if(this._isInitialized){this._tryOpenOrClose(t,!1,!1);return}this._open=t;let e=this._isInitialized?{auto:!1,userInitiated:!1}:void 0;this._applyOpen(e)}}_applyOpen(t){this._adapter.setHostAttribute(P.attributes.OPEN,this._open.toString()),this._adapter.setOpen(this._open,this._isInitialized,t)}get disabled(){return this._disabled}set disabled(t){this._disabled!==t&&(this._disabled=t,this._applyDisabled())}_applyDisabled(){var t;this._adapter.toggleHostAttribute(P.attributes.DISABLED,(t=this._disabled)!=null?t:!1),this._adapter.setDisabled(this._appliedDisabled)}_applyParentDisabled(){this._isInitialized&&!O(this._disabled)&&this._adapter.setDisabled(this._appliedDisabled)}get allowClose(){return this._allowClose}set allowClose(t){this._allowClose!==t&&(this._allowClose=t,this._applyAllowClose())}_applyAllowClose(){var t;this._adapter.toggleHostAttribute(P.attributes.ALLOW_CLOSE,(t=this._allowClose)!=null?t:!1)}get autoClose(){return this._autoClose}set autoClose(t){this._autoClose!==t&&(this._autoClose=t,this._applyAutoClose())}_applyAutoClose(){var t;this._adapter.toggleHostAttribute(P.attributes.AUTO_CLOSE,(t=this._autoClose)!=null?t:!1),this._isInitialized&&this._tryAutoClose()}_applyParentAutoClose(){this._isInitialized&&!O(this._autoClose)&&this._tryAutoClose()}get autoCloseThreshold(){return this._autoCloseThreshold}set autoCloseThreshold(t){this._autoCloseThreshold!==t&&(this._autoCloseThreshold=t,this._applyAutoCloseThreshold())}_applyAutoCloseThreshold(){var t;this._adapter.toggleHostAttribute(P.attributes.AUTO_CLOSE_THRESHOLD,O(this._autoCloseThreshold),(t=this.autoCloseThreshold)==null?void 0:t.toString()),this._isInitialized&&this._tryAutoClose()}_applyParentAutoCloseThreshold(){this._isInitialized&&!O(this._autoCloseThreshold)&&this._tryAutoClose()}getContentSize(){return this._adapter.getContentSize(this._orientation)}getCollapsibleSize(){let t=this._adapter.getParentSize(this._orientation),e=Uo(this._min,t);return this._adapter.getContentSize(this._orientation)-e}setContentSize(t){if(this._resizable==="off")return;let e=g4(t,this._state);this._adapter.setContentSize(e),this._isInitialized&&this._adapter.emitHostEvent(P.events.RESIZE,e)}update(t){if(t.orientation&&(this._orientation=t.orientation,this._applyOrientation()),t.properties&&(O(t.properties.disabled)&&this._parentProperties.disabled!==t.properties.disabled&&(this._parentProperties.disabled=t.properties.disabled,this._applyDisabled()),O(t.properties.allowClose)&&(this._parentProperties.allowClose=t.properties.allowClose),O(t.properties.autoClose)&&this._parentProperties.autoClose!==t.properties.autoClose&&(this._parentProperties.autoClose=t.properties.autoClose,O(this._autoClose)||this._applyAutoClose()),O(t.properties.autoCloseThreshold)&&this._parentProperties.autoCloseThreshold!==t.properties.autoCloseThreshold&&(this._parentProperties.autoCloseThreshold=t.properties.autoCloseThreshold,O(this._autoCloseThreshold)||this._applyAutoCloseThreshold())),t.size&&this.open){let a=this._adapter.getParentSize(this._orientation);this._pixelMin=Uo(this._min,a),this._pixelMax=O(this._max)?Uo(this._max,a):void 0,this.setContentSize(this._adapter.getContentSize(this._orientation))}if(this._resizable==="off")return;let e=this._adapter.getContentSize(this._orientation),o=this._adapter.getAvailableSpace(this._orientation,this._resizable);if(t.accessibility&&this.open){let a=u4(e,S(d({},this._state),{availableSpace:o}));this._adapter.setValuenow(a)}t.cursor&&$7(this._adapter,e,S(d({},this._state),{availableSpace:o}))}};var ob=`${b}split-view`,ab={ORIENTATION:"orientation",DISABLED:"disabled",ALLOW_CLOSE:"allow-close",AUTO_CLOSE:"auto-close",AUTO_CLOSE_THRESHOLD:"auto-close-threshold"},nb={ROOT:"forge-split-view"},j7={ROOT:"root"},sb={ROOT:`#${j7.ROOT}`,PANEL:P.elementName},rb={RESIZE_THROTTLE_THRESHOLD:200},ib={ANIMATING_LAYER:"--forge-split-view-animating-layer"},t2={elementName:ob,attributes:ab,classes:nb,ids:j7,selectors:sb,numbers:rb,customCssProperties:ib};var f4=class extends I{constructor(t){super(t),this._root=w(t,P.selectors.ROOT),this._handle=w(t,P.selectors.HANDLE),this._icon=w(t,P.selectors.ICON),this._stateLayer=w(t,P.selectors.STATE_LAYER),this._content=w(t,P.selectors.CONTENT)}initialize(){let t=this._component.parentElement;(t==null?void 0:t.tagName.toLowerCase())===t2.elementName&&(this._parent=t)}tryRemoveOverlay(){var t;(t=this._overlay)==null||t.remove(),this._overlay=void 0}setPointerdownListener(t){this._handle.addEventListener("pointerdown",t)}setPointerupListener(t){document.addEventListener("pointerup",t)}removePointerupListener(t){document.removeEventListener("pointerup",t)}setPointermoveListener(t){document.addEventListener("pointermove",t)}removePointermoveListener(t){document.removeEventListener("pointermove",t)}setKeydownListener(t){this._handle.addEventListener("keydown",t)}setKeyupListener(t){this._handle.addEventListener("keyup",t)}removeKeyupListener(t){this._handle.removeEventListener("keyup",t)}getParentProperty(t){var e;return(e=this._parent)==null?void 0:e[t]}setAccessibleLabel(t){this._handle.setAttribute("aria-label",t)}setDisabled(t){this._root.classList.toggle(P.classes.DISABLED,t),this._handle&&(this._handle.setAttribute("tabindex",t?"-1":"0"),G(this._handle,t,"aria-disabled","true"))}setResizable(t){this._root.setAttribute(P.attributes.RESIZABLE,t.toString()),G(this._handle,t!=="off","aria-valuemin","0"),G(this._handle,t!=="off","aria-valuemax","100"),t!=="off"&&(this._handle.remove(),t==="end"?this._root.append(this._handle):this._root.prepend(this._handle))}setOrientation(t){this._root.setAttribute(P.attributes.ORIENTATION,t),this._handle.setAttribute("aria-orientation",t==="horizontal"?"vertical":"horizontal"),this._icon.setAttribute("name",X7(t))}setOpen(t,e=!0,o){var s,r;let a=()=>{var l,h;t||this._root.classList.add(P.classes.CLOSED),o&&this.emitHostEvent(t?P.events.DID_OPEN:P.events.DID_CLOSE,o),(l=this._parent)==null||l.unlayerSlottedPanels(),(h=this._parent)==null||h.update({accessibility:!0,cursor:!0})};if(t&&this._root.classList.contains(P.classes.CLOSED)){if(this._root.classList.remove(P.classes.CLOSED),!e){a();return}(s=this._parent)==null||s.layerSlottedPanels(this._component),Gt(this._root,P.classes.OPENING,!0).then(()=>{a()})}else if(!t&&!this._root.classList.contains(P.classes.CLOSED)){if(!e){a();return}(r=this._parent)==null||r.layerSlottedPanels(this._component),Gt(this._root,P.classes.CLOSING,!0).then(()=>{a()})}}setGrabbed(t){var e;this._root.classList.toggle(P.classes.GRABBED,t),this._handle.setAttribute("aria-grabbed",t.toString()),t?(this._overlay||(this._overlay=Z7()),document.body.append(this._overlay)):(e=this._overlay)==null||e.remove()}setHandleCursor(t,e){t?this._root.style.setProperty(P.customCssProperties.CURSOR,x3(t,e)):this._root.style.removeProperty(P.customCssProperties.CURSOR)}setBodyCursor(t,e){var o;(o=this._overlay)==null||o.style.setProperty("cursor",x3(t,e))}getContentSize(t){return t==="horizontal"?this._content.clientWidth:this._content.clientHeight}setContentSize(t){this._component.style.setProperty(P.customCssProperties.SIZE,`${t}px`)}setValuenow(t){this._handle.setAttribute("aria-valuenow",t.toFixed(2))}focusHandle(){this._handle.focus()}getAvailableSpace(t,e){if(e==="off")return-1;let o=_4(this._component);return o?o.getCollapsibleSize()+this.getContentSize(t):this.getParentSize(t)}getSiblingContentSize(){var e;let t=_4(this._component);return(e=t==null?void 0:t.getContentSize())!=null?e:0}setSiblingContentSize(t){let e=_4(this._component);e==null||e.setContentSize(t)}animateStateLayer(t){t?window.setTimeout(()=>{this._stateLayer.playAnimation()},P.numbers.STATE_LAYER_ACTIVATION_WAIT):this._stateLayer.playAnimation()}getParentSize(t){var o,a;let e=t==="horizontal"?(o=this._parent)==null?void 0:o.clientWidth:(a=this._parent)==null?void 0:a.clientHeight;return e!=null?e:0}updateParent(t){var e;(e=this._parent)==null||e.update(t)}};var lb='<template><div class="forge-split-view-panel" id="root" part="root"><div class="forge-split-view-panel__handle" id="handle" part="handle" role="separator" aria-controls="content" aria-grabbed="false" tabindex="0"><forge-icon class="forge-split-view-panel__icon" id="icon" part="icon"></forge-icon><forge-state-layer target="handle" id="state-layer" exportparts="surface:state-layer"></forge-state-layer><forge-focus-indicator inward target="handle" part="focus-indicator"></forge-focus-indicator></div><div class="forge-split-view-panel__content" id="content" part="content" role="group"><slot></slot></div></div></template>',cb=".forge-split-view-panel{display:flex;width:100%;height:100%;overflow:hidden}.forge-split-view-panel__handle{color:var(--forge-theme-text-medium,rgba(0,0,0,.6));background-color:var(--forge-theme-outline,#e0e0e0);position:relative;display:flex;flex-shrink:0;justify-content:center;align-items:center;outline:0}.forge-split-view-panel__content{flex:1;overflow:hidden}.forge-split-view-panel--closed{display:none}.forge-split-view-panel--disabled #handle{pointer-events:none}.forge-split-view-panel--disabled .forge-split-view-panel__icon{display:none}.forge-split-view-panel[orientation=horizontal]{min-width:var(--forge-split-view-handle-width,8px);width:calc(var(--forge-split-view-panel-size,unset) + var(--forge-split-view-handle-width,8px));flex-direction:row}.forge-split-view-panel[orientation=horizontal] .forge-split-view-panel__handle{width:var(--forge-split-view-handle-width,8px);cursor:var(--forge-split-view-panel-cursor)}.forge-split-view-panel[orientation=horizontal].forge-split-view-panel--closing[resizable=end]{position:absolute;top:0;left:0;animation-name:uqqok2l;animation-duration:var(--forge-animation-duration-medium2, 300ms);animation-timing-function:var(--forge-animation-easing-standard,cubic-bezier(0.2,0,0,1))}@keyframes uqqok2l{from{transform:none}to{transform:translateX(-100%)}}.forge-split-view-panel[orientation=horizontal].forge-split-view-panel--closing[resizable=start]{position:absolute;top:0;right:0;animation-name:uqqok3h;animation-duration:var(--forge-animation-duration-medium2, 300ms);animation-timing-function:var(--forge-animation-easing-standard,cubic-bezier(0.2,0,0,1))}@keyframes uqqok3h{from{transform:none}to{transform:translateX(100%)}}.forge-split-view-panel[orientation=horizontal].forge-split-view-panel--opening[resizable=end]{position:absolute;top:0;left:0;animation-name:uqqok46;animation-duration:var(--forge-animation-duration-medium2, 300ms);animation-timing-function:var(--forge-animation-easing-standard,cubic-bezier(0.2,0,0,1));animation-direction:reverse}@keyframes uqqok46{from{transform:none}to{transform:translateX(-100%)}}.forge-split-view-panel[orientation=horizontal].forge-split-view-panel--opening[resizable=start]{position:absolute;top:0;right:0;animation-name:uqqok4t;animation-duration:var(--forge-animation-duration-medium2, 300ms);animation-timing-function:var(--forge-animation-easing-standard,cubic-bezier(0.2,0,0,1));animation-direction:reverse}@keyframes uqqok4t{from{transform:none}to{transform:translateX(100%)}}.forge-split-view-panel[orientation=vertical]{min-height:var(--forge-split-view-handle-width,8px);height:calc(var(--forge-split-view-panel-size,unset) + var(--forge-split-view-handle-width,8px));flex-direction:column}.forge-split-view-panel[orientation=vertical] .forge-split-view-panel__handle{height:var(--forge-split-view-handle-width,8px);cursor:var(--forge-split-view-panel-cursor)}.forge-split-view-panel[orientation=vertical].forge-split-view-panel--closing[resizable=end]{position:absolute;top:0;left:0;animation-name:uqqok5m;animation-duration:var(--forge-animation-duration-medium2, 300ms);animation-timing-function:var(--forge-animation-easing-standard,cubic-bezier(0.2,0,0,1))}@keyframes uqqok5m{from{transform:none}to{transform:translateY(-100%)}}.forge-split-view-panel[orientation=vertical].forge-split-view-panel--closing[resizable=start]{position:absolute;bottom:0;left:0;animation-name:uqqok6i;animation-duration:var(--forge-animation-duration-medium2, 300ms);animation-timing-function:var(--forge-animation-easing-standard,cubic-bezier(0.2,0,0,1))}@keyframes uqqok6i{from{transform:none}to{transform:translateY(100%)}}.forge-split-view-panel[orientation=vertical].forge-split-view-panel--opening[resizable=end]{position:absolute;top:0;left:0;animation-name:uqqok6t;animation-duration:var(--forge-animation-duration-medium2, 300ms);animation-timing-function:var(--forge-animation-easing-standard,cubic-bezier(0.2,0,0,1));animation-direction:reverse}@keyframes uqqok6t{from{transform:none}to{transform:translateY(-100%)}}.forge-split-view-panel[orientation=vertical].forge-split-view-panel--opening[resizable=start]{position:absolute;bottom:0;left:0;animation-name:uqqok7f;animation-duration:var(--forge-animation-duration-medium2, 300ms);animation-timing-function:var(--forge-animation-easing-standard,cubic-bezier(0.2,0,0,1));animation-direction:reverse}@keyframes uqqok7f{from{transform:none}to{transform:translateY(100%)}}:host{z-index:var(--forge-split-view-animating-layer)!important;display:block;position:relative;height:100%;width:100%;flex:0}:host([hidden]){display:none}:host(:not([resizable=start],[resizable=end])){flex:1}:host(:not([resizable=start],[resizable=end])) .forge-split-view-panel{width:100%;height:100%;min-width:0;min-height:0}:host(:not([resizable=start],[resizable=end])) .forge-split-view-panel__handle{display:none}forge-focus-indicator{--forge-focus-indicator-active-width:2px}",L2=class extends M{static get observedAttributes(){return[P.attributes.RESIZABLE,P.attributes.SIZE,P.attributes.MIN,P.attributes.MAX,P.attributes.ACCESSIBLE_LABEL,P.attributes.OPEN,P.attributes.DISABLED,P.attributes.ALLOW_CLOSE,P.attributes.AUTO_CLOSE,P.attributes.AUTO_CLOSE_THRESHOLD]}constructor(){super(),X.define([wl,gl]),z(this,lb,cb),this._core=new x4(new f4(this))}connectedCallback(){this._core.initialize()}disconnectedCallback(){this._core.destroy()}attributeChangedCallback(t,e,o){switch(t){case P.attributes.RESIZABLE:this.resizable=o;break;case P.attributes.SIZE:this.size=o;break;case P.attributes.MIN:this.min=o;break;case P.attributes.MAX:o?this.max=o:this.max=void 0;break;case P.attributes.ACCESSIBLE_LABEL:this.accessibleLabel=o;break;case P.attributes.OPEN:this.open=p(o);break;case P.attributes.DISABLED:this.hasAttribute(t)?this.disabled=p(o):this.disabled=void 0;break;case P.attributes.ALLOW_CLOSE:this.hasAttribute(t)?this.allowClose=p(o):this.allowClose=void 0;break;case P.attributes.AUTO_CLOSE:this.hasAttribute(t)?this.autoClose=p(o):this.autoClose=void 0;break;case P.attributes.AUTO_CLOSE_THRESHOLD:o?this.autoCloseThreshold=K(o):this.autoCloseThreshold=void 0;break}}getContentSize(){return this._core.getContentSize()}getCollapsibleSize(){return this._core.getCollapsibleSize()}setContentSize(t){this._core.setContentSize(t)}update(t){this._core.update(t)}};i([c()],L2.prototype,"resizable",2),i([c()],L2.prototype,"size",2),i([c()],L2.prototype,"min",2),i([c()],L2.prototype,"max",2),i([c()],L2.prototype,"accessibleLabel",2),i([c()],L2.prototype,"open",2),i([c()],L2.prototype,"disabled",2),i([c()],L2.prototype,"allowClose",2),i([c()],L2.prototype,"autoClose",2),i([c()],L2.prototype,"autoCloseThreshold",2),L2=i([y({name:P.elementName,dependencies:[j,r1,J]})],L2);function Dy1(){f(L2)}var b4=class extends I{constructor(t){super(t),this._root=w(t,t2.selectors.ROOT)}registerSlotListener(t){this._root.addEventListener("slotchange",t)}registerDidOpenListener(t){this._root.addEventListener(P.events.DID_OPEN,t)}registerDidCloseListener(t){this._root.addEventListener(P.events.DID_CLOSE,t)}observeResize(t){B0.observe(this._root,t)}unobserveResize(){B0.unobserve(this._root)}getSlottedPanels(){let t=this._component.querySelectorAll(t2.selectors.PANEL);return Array.from(t).filter(a=>a.parentElement===this._component)}refitSlottedPanels(t){let e=t==="horizontal"?this._root.clientWidth:this._root.clientHeight,o=this.getSlottedPanels(),a=o.map(r=>{var v;let l=(v=r.shadowRoot)==null?void 0:v.querySelector(P.selectors.ROOT),h=t==="horizontal"?l==null?void 0:l.clientWidth:l==null?void 0:l.clientHeight;return h!=null?h:0}).reduce((r,l)=>r+l,0);if(a<=e)return;let s=a-e;o.slice().reverse().filter(r=>r.open).forEach(r=>{if(s<=0)return;let l=r.getContentSize(),h=r.getCollapsibleSize(),v=Math.min(s,h),m=l-v;r.setContentSize(m),s-=v})}};var y4=class{constructor(t){this._adapter=t;this._orientation="horizontal";this._disabled=!1;this._allowClose=!1;this._autoClose=!1;this._autoCloseThreshold=0;this._isInitialized=!1;this._slotListener=e=>this._onSlotChange(e),this._didOpenListener=()=>this._onDidOpen(),this._didCloseListener=()=>this._onDidClose(),this._resizeObserverCallback=Gn(e=>this._onResize(e),t2.numbers.RESIZE_THROTTLE_THRESHOLD)}initialize(){this._adapter.registerSlotListener(this._slotListener),this._adapter.registerDidOpenListener(this._didOpenListener),this._adapter.registerDidCloseListener(this._didCloseListener),this._adapter.observeResize(this._resizeObserverCallback),this._applyOrientation(),this._isInitialized=!0}destroy(){this._adapter.unobserveResize()}_onSlotChange(t){this._layoutSlottedPanels(),this.update({accessibility:!0,cursor:!0,orientation:this._orientation})}_onDidOpen(){this._adapter.refitSlottedPanels(this._orientation),this.update({accessibility:!0,cursor:!0,size:!0})}_onDidClose(){this._adapter.refitSlottedPanels(this._orientation),this.update({accessibility:!0,cursor:!0,size:!0})}_onResize(t){this.update({accessibility:!0,cursor:!0,size:!0})}_layoutSlottedPanels(){let t=this._adapter.getSlottedPanels();t.length<2||t.some(e=>e.resizable!=="off")||t.slice(1).forEach(e=>e.resizable="start")}get orientation(){return this._orientation}set orientation(t){this._orientation!==t&&(this._orientation=t,this._applyOrientation())}_applyOrientation(){this._adapter.setHostAttribute(t2.attributes.ORIENTATION,this._orientation),this.update({orientation:this._orientation}),this._isInitialized&&this._adapter.refitSlottedPanels(this._orientation),this.update({accessibility:!0,cursor:!0})}get disabled(){return this._disabled}set disabled(t){this._disabled!==t&&(this._disabled=t,this._applyDisabled())}_applyDisabled(){this._adapter.toggleHostAttribute(t2.attributes.DISABLED,this._disabled),this.update({properties:{disabled:this._disabled}})}get allowClose(){return this._allowClose}set allowClose(t){this._allowClose!==t&&(this._allowClose=t,this._applyAllowClose())}_applyAllowClose(){this._adapter.toggleHostAttribute(t2.attributes.ALLOW_CLOSE,this._allowClose),this.update({properties:{allowClose:this._allowClose}})}get autoClose(){return this._autoClose}set autoClose(t){this._autoClose!==t&&(this._autoClose=t,this._applyAutoClose())}_applyAutoClose(){this._adapter.toggleHostAttribute(t2.attributes.AUTO_CLOSE,this._autoClose),this.update({properties:{autoClose:this._autoClose}})}get autoCloseThreshold(){return this._autoCloseThreshold}set autoCloseThreshold(t){this._autoCloseThreshold!==t&&(this._autoCloseThreshold=t,this._applyAutoCloseThreshold())}_applyAutoCloseThreshold(){this._adapter.setHostAttribute(t2.attributes.AUTO_CLOSE_THRESHOLD,this._autoCloseThreshold.toString()),this.update({properties:{autoCloseThreshold:this._autoCloseThreshold}})}layerSlottedPanels(t){let e=this._adapter.getSlottedPanels(),o=t.resizable==="start"?1:-1,a=t.resizable==="start"?1:3;e.forEach(s=>{(s===t||a===2)&&(a+=o),s.style.setProperty(t2.customCssProperties.ANIMATING_LAYER,a.toString())})}unlayerSlottedPanels(){this._adapter.getSlottedPanels().forEach(e=>{e.style.removeProperty(t2.customCssProperties.ANIMATING_LAYER)})}update(t){this._adapter.getSlottedPanels().forEach(o=>{o.update(t)})}refitSlottedPanels(){this._adapter.refitSlottedPanels(this._orientation)}};var hb='<template><div class="forge-split-view" id="root" part="root"><slot></slot></div></template>',vb=".forge-split-view{display:flex;width:100%;height:100%}:host{--forge-split-view-handle-width:8px;display:block;height:100%;width:100%;overflow:hidden}:host([hidden]){display:none}:host([orientation=horizontal]) .forge-split-view{flex-direction:row}:host([orientation=vertical]) .forge-split-view{flex-direction:column}",Te=class extends M{static get observedAttributes(){return[t2.attributes.ORIENTATION,t2.attributes.DISABLED,t2.attributes.ALLOW_CLOSE,t2.attributes.AUTO_CLOSE,t2.attributes.AUTO_CLOSE_THRESHOLD]}constructor(){super(),z(this,hb,vb),this._core=new y4(new b4(this))}connectedCallback(){this._core.initialize()}disconnectedCallback(){this._core.destroy()}attributeChangedCallback(t,e,o){switch(t){case t2.attributes.ORIENTATION:this.orientation=o;break;case t2.attributes.DISABLED:this.disabled=p(o);break;case t2.attributes.ALLOW_CLOSE:this.allowClose=p(o);break;case t2.attributes.AUTO_CLOSE:this.autoClose=p(o);break;case t2.attributes.AUTO_CLOSE_THRESHOLD:this.autoCloseThreshold=K(o);break}}layerSlottedPanels(t){this._core.layerSlottedPanels(t)}unlayerSlottedPanels(){this._core.unlayerSlottedPanels()}update(t){this._core.update(t)}refit(){this._core.refitSlottedPanels()}};i([c()],Te.prototype,"orientation",2),i([c()],Te.prototype,"disabled",2),i([c()],Te.prototype,"allowClose",2),i([c()],Te.prototype,"autoClose",2),i([c()],Te.prototype,"autoCloseThreshold",2),Te=i([y({name:t2.elementName,dependencies:[L2]})],Te);function Q7(){f(Te)}var pb=`${b}stack`,J7={DEFAULT:"forge-stack"},mb={ROOT:`.${J7.DEFAULT}`},tm={INLINE:"inline",WRAP:"wrap",STRETCH:"stretch",GAP:"gap",ALIGNMENT:"alignment",JUSTIFY:"justify"},db=d({},tm),gb={DEFAULT_GAP:"16"},W2={elementName:pb,classes:J7,observedAttributes:tm,attributes:db,selectors:mb,strings:gb};var M4=class extends I{constructor(t){super(t),this._rootElement=w(t,W2.selectors.ROOT)}setGap(t){let e=/^\d+$/.test(t)?`${t}px`:t;this._rootElement.style.gap=`var(--forge-stack-gap, ${e})`}};var z4=class{constructor(t){this._adapter=t;this._inline=!1;this._wrap=!1;this._stretch=!1;this._gap=W2.strings.DEFAULT_GAP;this._alignment="start";this._justify="start"}get inline(){return this._inline}set inline(t){t=!!t,this._inline!==t&&(this._inline=t,this._adapter.toggleHostAttribute(W2.attributes.INLINE,this._inline))}get wrap(){return this._wrap}set wrap(t){t=!!t,this._wrap!==t&&(this._wrap=t,this._adapter.toggleHostAttribute(W2.attributes.WRAP,this._wrap))}get stretch(){return this._stretch}set stretch(t){t=!!t,this._stretch!==t&&(this._stretch=t,this._adapter.toggleHostAttribute(W2.attributes.STRETCH,this._stretch))}get gap(){return this._gap}set gap(t){this._gap!==t&&(this._gap=t,this._adapter.setGap(this._gap),this._adapter.setHostAttribute(W2.attributes.GAP,this._gap))}get alignment(){return this._alignment}set alignment(t){this._alignment!==t&&(this._alignment=t,this._adapter.setHostAttribute(W2.attributes.ALIGNMENT,this._alignment))}get justify(){return this._justify}set justify(t){this._justify!==t&&(this._justify=t,this._adapter.setHostAttribute(W2.attributes.JUSTIFY,this._justify))}};var wb='<template><div class="forge-stack" part="root"><slot></slot></div></template>',ub=".forge-stack{display:flex;flex-direction:column;align-items:var(--_stack-alignment);justify-content:var(--_stack-justify);gap:var(--_stack-gap);height:var(--_stack-height);width:100%;--_stack-gap:var(--forge-stack-gap, var(--forge-spacing-medium, 16px));--_stack-height:var(--forge-stack-height);--_stack-stretch:var(--forge-stack-stretch, initial);--_stack-alignment:var(--forge-stack-alignment, normal);--_stack-justify:var(--forge-stack-justify, normal);--_stack-wrap:var(--forge-stack-wrap, wrap)}.forge-stack ::slotted(*){flex:var(--_stack-stretch)}:host([inline]) .forge-stack{flex-direction:row}:host([inline][wrap]) .forge-stack{flex-wrap:wrap}:host(:not([inline])) .forge-stack{--_stack-height:var(--forge-stack-height, 100%)}:host([stretch]) ::slotted(*){--_stack-stretch:var(--forge-stack-stretch, 1)}:host([alignment=start]) .forge-stack{--_stack-alignment:var(--forge-stack-alignment, start)}:host([alignment=center]) .forge-stack{--_stack-alignment:var(--forge-stack-alignment, center)}:host([alignment=end]) .forge-stack{--_stack-alignment:var(--forge-stack-alignment, end)}:host([justify=start]) .forge-stack{--_stack-justify:var(--forge-stack-justify, start)}:host([justify=center]) .forge-stack{--_stack-justify:var(--forge-stack-justify, center)}:host([justify=end]) .forge-stack{--_stack-justify:var(--forge-stack-justify, end)}",_e=class extends M{static get observedAttributes(){return Object.values(W2.observedAttributes)}constructor(){super(),z(this,wb,ub),this._core=new z4(new M4(this))}attributeChangedCallback(t,e,o){switch(t){case W2.observedAttributes.INLINE:this.inline=p(o);break;case W2.observedAttributes.WRAP:this.wrap=p(o);break;case W2.observedAttributes.STRETCH:this.stretch=p(o);break;case W2.observedAttributes.GAP:this.gap=o;break;case W2.observedAttributes.ALIGNMENT:this.alignment=o;break;case W2.observedAttributes.JUSTIFY:this.justify=o;break}}};i([c()],_e.prototype,"inline",2),i([c()],_e.prototype,"wrap",2),i([c()],_e.prototype,"stretch",2),i([c()],_e.prototype,"gap",2),i([c()],_e.prototype,"alignment",2),i([c()],_e.prototype,"justify",2),_e=i([y({name:W2.elementName})],_e);function em(){f(_e)}var H4=`${b}step`,po={STEP:"forge-step",STEP_CONTAINER:"container",ERROR:"error",SELECTED:"selected",COMPLETED:"completed",EDITABLE:"editable",ALTERNATIVE:"alternative",ICON_CONTENT:"icon-content",ICON:"icon",LABEL_CONTAINER:"label-container",LABEL:"label",OPTIONAL_LABEL:"optional-label",INDEX:"index",CLUSTERED:"clustered",DISABLED:"disabled",VERTICAL:"vertical",EXPANDED:"expanded",EXPANDABLE:"expandable",EXPANSION_PANEL:"expansion-panel",EXPANSION_ICON:"expanded-icon",EXPANSION_ICON_EXPANDED:"expanded-icon--expanded",EXPANSION_CONTENT:"expansion-content"},_b={SELECTED:"selected",INDEX:"index",EDITABLE:"editable",COMPLETED:"completed",ERROR:"error",ALTERNATIVE:"alternative",FIRST:"first",LAST:"last",ARIA_SELECTED:"aria-selected",CLUSTERED:"clustered",DISABLED:"disabled",VERTICAL:"vertical",EXPANDED:"expanded",EXPANDABLE:"expandable",IGNORE_USER_EXPANSION:"ignore-user-expansion"},xb={STEP:`.${po.STEP}`,STEP_CONTAINER:`.${po.STEP_CONTAINER}`,INDEX:`.${po.INDEX}`,ICON:`.${po.ICON}`,ICON_CONTENT:`.${po.ICON_CONTENT}`,EXPANSION_SLOT:'slot[name="expansion-content"]',EXPANSION_PANEL:`.${po.EXPANSION_PANEL}`,EXPANSION_ICON:`.${po.EXPANSION_ICON}`},fb={ARROW_LEFT_KEY:"ArrowLeft",ARROW_RIGHT_KEY:"ArrowRight",ARROW_UP_KEY:"ArrowUp",ARROW_DOWN_KEY:"ArrowDown",END_KEY:"End",ENTER_KEY:"Enter",HOME_KEY:"Home",SPACE_KEY:"Space",EXPANSION_CONTENT_SLOT_NAME:"expansion-content"},bb={SELECT:`${H4}-select`,EXPANDED_CONTENT_FOCUSIN:`${H4}-expanded-content-focusin`,EXPANDED_CONTENT_FOCUSOUT:`${H4}-expanded-content-focusout`},k={elementName:H4,classes:po,selectors:xb,attributes:_b,events:bb,strings:fb};var I4=class extends I{constructor(t){super(t),this._stepContainer=w(t,k.selectors.STEP),this._container=w(t,k.selectors.STEP_CONTAINER),this._stateLayerElement=w(this._component,I1.elementName)}get component(){return this._component}initialize(){this._component.hasAttribute("role")||this._component.setAttribute("role","tab")}setIndex(t){this._stepContainer.querySelector(k.selectors.INDEX).innerHTML=(t+1||"").toString()}toggleRootClass(t,e){f2(this._stepContainer,e,t)}toggleDisabled(t){f2(this._stepContainer,t,k.classes.DISABLED),G(this._component,t,"aria-disabled"),this._stateLayerElement.disabled=t}toggleIcon(t,e){let o=this._stepContainer.querySelector(k.selectors.INDEX),a=this._stepContainer.querySelector(k.selectors.ICON);if(!e){o.style.display="inherit",a.style.display="none";return}o.style.display="none",a.style.display="inherit",a.name=t}slotHasContent(){return this._expansionSlot.assignedElements({flatten:!0}).length>0}setClickListener(t){this._component.addEventListener("click",t)}removeClickListener(t){this._component.removeEventListener("click",t)}setSlotListener(t){this._expansionSlot.addEventListener("slotchange",t)}removeSlotListener(t){this._expansionSlot&&this._expansionSlot.removeEventListener("slotchange",t)}setExpanded(t){this._expansionPanel&&(this._expansionPanel.open=t,G(this._expansionPanel,!t,"tabindex","-1")),f2(this._stepContainer,t,k.classes.EXPANDED)}setExpansionPanelAnimations(t){this._expansionPanel.animationType=t?"default":"none"}addExpansionPanel(){this._container.querySelector(k.selectors.EXPANSION_PANEL)||(this._expansionPanel=this._container.appendChild(this._createExpansionPanel()),this._expansionSlot=this._expansionPanel.querySelector(k.selectors.EXPANSION_SLOT))}removeExpansionPanel(){let t=this._container.querySelector(k.selectors.EXPANSION_PANEL);t&&this._container.removeChild(t)}addExpansionIcon(){this._stepContainer.querySelector(k.selectors.EXPANSION_ICON)||this._stepContainer.appendChild(this._createExpansionIcon())}removeExpansionIcon(){let t=this._stepContainer.querySelector(k.selectors.EXPANSION_ICON);t&&this._stepContainer.removeChild(t)}addExpansionPanelListener(t,e){this._expansionPanel.addEventListener(t,e)}removeExpansionPanelListener(t,e){this._expansionPanel&&this._expansionPanel.removeEventListener(t,e)}isExpandedContentInFocus(t){return this._expansionSlot.assignedElements().some(e=>e.contains(t||document.activeElement))}_createExpansionPanel(){let t=document.createElement("forge-expansion-panel");t.animationType="none",t.setAttribute("part","expansion-panel"),H1(k.classes.EXPANSION_PANEL,t);let e=document.createElement("slot");return e.setAttribute("name","expansion-content"),H1(k.classes.EXPANSION_CONTENT,e),t.appendChild(e),t}_createExpansionIcon(){let t=document.createElement("forge-icon");return H1(k.classes.EXPANSION_ICON,t),t.name="keyboard_arrow_down",t.setAttribute("part","expanded-icon"),t}};var L4=class{constructor(t){this._adapter=t;this._clickListener=()=>this._onClickListener(),this._expansionContentSlotChangeListener=e=>this._onExpansionContentSlotChange(e),this._expansionContentFocusInListener=e=>this._onExpansionContentFocusIn(e),this._expansionContentFocusOutListener=e=>this._onExpansionContentFocusOut(e)}initialize(){this._adapter.initialize(),this._applySelected(),this._toggleIcon(),this._vertical&&(this._adapter.addExpansionPanel(),this._adapter.addExpansionIcon(),this._adapter.setClickListener(this._clickListener),this._adapter.setSlotListener(this._expansionContentSlotChangeListener),this._adapter.addExpansionPanelListener("focusin",this._expansionContentFocusInListener),this._adapter.addExpansionPanelListener("focusout",this._expansionContentFocusOutListener)),this._initialized=!0}destroy(){this._adapter.removeClickListener(this._clickListener),this._adapter.removeSlotListener(this._expansionContentSlotChangeListener),this._adapter.removeExpansionPanelListener("focusin",this._onExpansionContentFocusIn),this._adapter.removeExpansionPanelListener("focusout",this._onExpansionContentFocusOut)}get index(){return this._index}set index(t){this._index!==t&&(this._index=t,this._applyIndex(),this._adapter.setHostAttribute(k.attributes.INDEX,t.toString()))}get editable(){return this._editable}set editable(t){this._editable!==t&&(this._editable=t,this._adapter.toggleHostAttribute(k.attributes.EDITABLE,t),this._applyEditable())}get completed(){return this._completed}set completed(t){this._completed!==t&&(this._completed=t,this._adapter.toggleHostAttribute(k.attributes.COMPLETED,t),this._applyCompleted())}get error(){return this._error}set error(t){this._error!==t&&(this._error=t,this._adapter.toggleHostAttribute(k.attributes.ERROR,t),this._applyError())}get selected(){return this._selected}set selected(t){this._selected!==t&&(this._selected=t,this._adapter.toggleHostAttribute(k.attributes.SELECTED,t),this._applySelected())}get alternative(){return this._alternative}set alternative(t){this._alternative!==t&&(this._alternative=t,this._adapter.toggleHostAttribute(k.attributes.ALTERNATIVE,t),this._applyAlternative())}get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._applyDisabled()}get vertical(){return this._vertical}set vertical(t){t!==this._vertical&&(this._vertical=t,this._applyVertical(),this._initialized&&(this._vertical?(this._adapter.addExpansionPanel(),this._adapter.addExpansionIcon(),this._adapter.setClickListener(this._clickListener),this._adapter.setSlotListener(this._expansionContentSlotChangeListener)):(this._adapter.removeClickListener(this._clickListener),this._adapter.removeSlotListener(this._expansionContentSlotChangeListener),this._adapter.removeExpansionPanel(),this._adapter.removeExpansionIcon())))}get expanded(){return this._expanded}set expanded(t){t!==this._expanded&&(this._expanded=t,this._adapter.toggleHostAttribute(k.attributes.EXPANDED,this._expanded),this._initialized&&this._applyExpanded())}get ignoreUserExpansion(){return this._ignoreUserExpansion}set ignoreUserExpansion(t){t!==this._ignoreUserExpansion&&(this._ignoreUserExpansion=t)}_applyExpanded(){this._adapter.setExpanded(this._expanded)}_applyVertical(){this._adapter.toggleHostAttribute(k.attributes.VERTICAL,this._vertical),this._adapter.toggleRootClass(k.classes.VERTICAL,this._vertical)}_applyAlternative(){this._adapter.toggleRootClass(k.classes.ALTERNATIVE,this._alternative)}_applySelected(){this._adapter.toggleRootClass(k.classes.SELECTED,this._selected),this._adapter.setHostAttribute(k.attributes.ARIA_SELECTED,(this._selected||!1).toString()),this._adapter.hostElement.tabIndex=this._selected?0:-1,this._toggleIcon()}_applyIndex(){this._adapter.setIndex(this._index)}_applyEditable(){this._adapter.toggleRootClass(k.classes.EDITABLE,this._editable),this._toggleIcon()}_applyCompleted(){this._adapter.toggleRootClass(k.classes.COMPLETED,this._completed),this._toggleIcon()}_applyError(){this._adapter.toggleRootClass(k.classes.ERROR,this._error),this._toggleIcon()}_applyDisabled(){this._adapter.toggleDisabled(this._disabled),this._toggleIcon()}_getIconState(){return this._error?"warning":this._completed?this._editable?"mode_edit":"check":this._editable&&this._selected&&!this._disabled?"mode_edit":this._disabled?"block":""}_toggleIcon(){this._iconState=this._getIconState(),this._adapter.toggleIcon(this._iconState,this._iconState!=="")}_toggleExpanded(){this._adapter.slotHasContent()&&(this._expanded=!this._expanded,this._applyExpanded(),this._adapter.toggleHostAttribute(k.attributes.EXPANDED,this._expanded))}_onClickListener(){this._vertical&&!this._ignoreUserExpansion&&this._toggleExpanded()}_onExpansionContentSlotChange(t){let e=this._adapter.slotHasContent();e?(this._adapter.setHostAttribute(k.attributes.EXPANDABLE),this._applyExpanded(),this._adapter.setExpansionPanelAnimations(!0)):(this._adapter.removeHostAttribute(k.attributes.EXPANDABLE),this._adapter.setExpansionPanelAnimations(!1)),this._adapter.toggleRootClass(k.classes.EXPANDABLE,e)}_onExpansionContentFocusIn(t){!this._expandedContentFocused&&this._adapter.isExpandedContentInFocus(t.target)&&(this._adapter.emitHostEvent(k.events.EXPANDED_CONTENT_FOCUSIN,this._adapter.component),this._expandedContentFocused=!0)}_onExpansionContentFocusOut(t){t.relatedTarget&&!this._adapter.isExpandedContentInFocus(t.relatedTarget)&&(this._adapter.emitHostEvent(k.events.EXPANDED_CONTENT_FOCUSOUT,this._adapter.component),this._expandedContentFocused=!1)}};var yb='<template><div class="container" part="root"><div class="forge-step" part="step"><div class="before" part="before"></div><div class="icon-container" part="icon-container"><div class="icon-content" part="icon-content"><span class="index" part="index"></span><forge-icon class="icon" part="icon"></forge-icon></div></div><div class="text-container" part="text-container"><div class="title" part="title-container"><slot></slot></div><div class="subtitle" part="subtitle-container"><slot name="optional"></slot></div></div><div class="after" part="after"></div><forge-state-layer exportparts="surface:state-layer" target=":host"></forge-state-layer><forge-focus-indicator part="focus-indicator" target=":host" inward></forge-focus-indicator></div></div></template>',Mb=':host{--_step-primary-color:var(--forge-step-primary-color, var(--forge-theme-primary, #3f51b5));--_step-text-color:var(--forge-step-text-color, var(--forge-theme-on-primary, #ffffff));--_step-border-radius:var(--forge-step-border-radius, calc(var(--forge-shape-extra-large, 16px) * var(--forge-shape-factor, 1)));--_step-border-radius-vertical:var(--forge-step-border-radius-vertical, calc(var(--forge-shape-medium, 4px) * var(--forge-shape-factor, 1)));--_step-disabled-text-color:var(--forge-step-disabled-text-color, var(--forge-theme-text-low, rgba(0, 0, 0, 0.38)));--_step-disabled-color:var(--forge-step-disabled-color, var(--forge-theme-surface-container-minimum, #f5f5f5));--_step-icon-fill:var(--forge-step-icon-fill, unset);--_step-icon-fill-active:var(--forge-step-icon-fill-active, var(--_step-primary-color));--_step-icon-text-color:var(--forge-step-icon-text-color, var(--forge-theme-primary, #3f51b5));--_step-icon-text-color-active:var(--forge-step-icon-text-color-active, var(--forge-theme-on-primary, #ffffff));--_step-icon-content-size:var(--forge-step-icon-content-size, 24px);--_step-icon-size:var(--forge-step-icon-size, calc(var(--forge-typography-font-size, 1rem) * 0.875));--_step-icon-transition-duration:var(--forge-step-icon-transition-duration, var(--forge-animation-duration-medium4, 400ms));--_step-icon-transition-easing:var(--forge-step-icon-transition-easing, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1)));--_step-line-color:var(--forge-step-line-color, var(--forge-theme-outline, #e0e0e0));--_step-line-min-width:var(--forge-step-line-min-width, 10px);--_step-line-min-width-clustered:var(--forge-step-line-min-width-clustered, 25px);--_step-label-color:var(--forge-step-label-color, var(--forge-theme-text-high, rgba(0, 0, 0, 0.87)));--_step-sub-label-color:var(--forge-step-sub-label-color, var(--forge-theme-text-medium, rgba(0, 0, 0, 0.6)));--_step-error-color:var(--forge-step-error-color, var(--forge-theme-error, #b00020));--_step-error-text-color:var(--forge-step-error-text-color, var(--forge-theme-on-error, #ffffff));--_step-expansion-panel-border-left-width:var(--forge-step-expansion-panel-border-left-width, 1px);--_step-expansion-panel-margin-bottom:var(--forge-step-expansion-panel-margin-bottom, 4px);--_step-expansion-panel-margin-left:var(--forge-step-expansion-panel-margin-left, 60px);--_step-expansion-panel-margin-top:var(--forge-step-expansion-panel-margin-top, 4px);--_step-expansion-panel-icon-color:var(--forge-step-expansion-panel-icon-color, var(--forge-theme-text-medium, rgba(0, 0, 0, 0.6)))}:host(:focus){outline:0}:host([error]){--forge-state-layer-color:var(--_step-error-color)}:host(:first-child[alternative])::after{align-self:flex-start;top:22px;margin:0}:host(:last-child[alternative])::before{align-self:flex-start;top:22px;margin:0}:host(:not(:first-child):not(:last-child)[alternative])::after,:host(:not(:first-child):not(:last-child)[alternative])::before{align-self:flex-start;top:22px;min-width:7px;margin:0}:host(:not(:last-child)[alternative]) .after{align-self:flex-start;top:22px;position:absolute;width:calc(50% - 18px);left:calc(50% + 18px);height:0;right:0}:host(:not(:first-child)[alternative]) .before{align-self:flex-start;top:22px;position:absolute;left:0;width:calc(50% - 18px);height:0}:host(:not(:first-child):not(:last-child)):host(:not([vertical]))::after,:host(:not(:first-child):not(:last-child)):host(:not([vertical]))::before{border-color:var(--_step-line-color);min-width:var(--_step-line-min-width);content:"";position:relative;height:0;flex:1;flex-basis:0.000000001px;border-top-style:solid;border-top-width:1px;border-radius:1px 0 0 1px;margin:0 -10px}:host(:last-child):host(:not([vertical]))::before{border-color:var(--_step-line-color);min-width:var(--_step-line-min-width);content:"";position:relative;height:0;flex:1;flex-basis:0.000000001px;border-top-style:solid;border-top-width:1px;border-radius:1px 0 0 1px;margin:0 -10px 0 0}:host(:is(:first-child)):host(:not([vertical]))::after{border-color:var(--_step-line-color);min-width:var(--_step-line-min-width);content:"";position:relative;height:0;flex:1;flex-basis:0.000000001px;border-top-style:solid;border-top-width:1px;border-radius:1px 0 0 1px;margin:0 -10px}:host([vertical]){flex-direction:column}:host([vertical])::after{content:none}:host([vertical])::before{content:none}:host([vertical]) .forge-step{--_step-border-radius:var(--_step-border-radius-vertical);width:100%;min-height:52px}:host([vertical]) .forge-step .text-container{white-space:normal}:host([vertical]) .icon-container .icon-content{margin:0 16px 0 0}:host([vertical]) .expansion-panel{display:none}:host([vertical]) .expanded-icon{color:var(--_step-expansion-panel-icon-color);display:none;margin-left:auto}:host([vertical][expandable]) .expansion-panel{display:block}:host([ignore-user-expansion]) .forge-step .expanded-icon{display:none}forge-expansion-panel::part(root){border-color:var(--_step-line-color);margin-left:var(--_step-expansion-panel-margin-left);margin-top:var(--_step-expansion-panel-margin-top);margin-bottom:var(--_step-expansion-panel-margin-bottom);border-left-width:var(--_step-expansion-panel-border-left-width);border-left-style:solid}forge-focus-indicator{--forge-focus-indicator-color:var(--_step-primary-color);--forge-focus-indicator-shape:16px}.container{display:contents}.forge-step{-webkit-tap-highlight-color:transparent;padding:12px 16px;outline:0;background:0 0;border:none;border-radius:var(--_step-border-radius);position:relative;display:flex;overflow:hidden;align-items:center;box-sizing:border-box;cursor:pointer}.forge-step:focus{outline:0}.forge-step::-moz-focus-inner,.forge-step::-moz-focus-outer{padding:0;border:0}.forge-step.error forge-focus-indicator{--forge-focus-indicator-color:var(--_step-error-color)}.forge-step.vertical forge-focus-indicator{--forge-focus-indicator-shape:4px}.forge-step.selected:not(.disabled){--forge-state-layer-color:var(--_step-primary-color)}.forge-step.selected:not(.disabled)::before{background-color:var(--_step-primary-color);content:"";position:absolute;inset:0;opacity:.08;height:100%;width:100%}.forge-step.selected:not(.disabled).error{--_step-primary-color:var(--_step-error-color)}.forge-step .title{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-body1-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-body1-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-font-size-scale, .875)));font-weight:var(--forge-typography-body1-font-weight,400);line-height:var(--forge-typography-body1-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-line-height-scale, 1.125)));letter-spacing:var(--forge-typography-body1-letter-spacing, .0357142857em);text-transform:var(--forge-typography-body1-text-transform,inherit);text-decoration:var(--forge-typography-body1-text-decoration,inherit);color:var(--_step-label-color);text-align:left;overflow:hidden;text-overflow:ellipsis}.forge-step .subtitle{text-align:left;overflow:hidden;text-overflow:ellipsis}.forge-step .subtitle ::slotted(*){color:var(--_step-sub-label-color);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-label1-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-label1-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-label-font-size-scale, .75)));font-weight:var(--forge-typography-label1-font-weight,400);line-height:var(--forge-typography-label1-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-label-line-height-scale, 1.25)));letter-spacing:var(--forge-typography-label1-letter-spacing, .0357142857em);text-transform:var(--forge-typography-label1-text-transform,inherit);text-decoration:var(--forge-typography-label1-text-decoration,inherit)}.forge-step .icon-container .icon-content{color:var(--_step-icon-text-color);background-color:var(--_step-icon-fill);height:var(--_step-icon-content-size);width:var(--_step-icon-content-size);border-style:solid;border-width:2px;border-color:transparent;border-radius:50%;display:flex;align-items:center;justify-content:center;transition:background-color var(--_step-icon-transition-duration) var(--_step-icon-transition-easing);margin:0 8px 0 0;flex:none}.forge-step .icon-container .icon-content forge-icon{font-size:var(--_step-icon-size)}.forge-step.disabled{color:var(--_step-disabled-text-color);cursor:not-allowed}.forge-step.disabled.forge-step .icon-container .icon-content{--_step-icon-fill:var(--_step-disabled-color);--_step-icon-text-color:var(--_step-disabled-text-color)}.forge-step.disabled .text-container .title{color:var(--_step-disabled-text-color)}.forge-step.disabled .text-container .subtitle ::slotted(*){color:var(--_step-disabled-text-color)}.forge-step.alternative{flex-direction:column}.forge-step.alternative .icon-container .icon-content{margin:0}.forge-step.alternative .text-container{margin-top:8px;place-items:center}.forge-step:not(.selected):not(.disabled).editable:not(.completed):not(.error) .icon-content,.forge-step:not(.selected):not(.disabled):not(.editable):not(.completed):not(.error) .icon-content{border-color:var(--_step-primary-color)}.forge-step:not(.selected):not(.disabled).editable:not(.completed):not(.error) .icon-content .index,.forge-step:not(.selected):not(.disabled):not(.editable):not(.completed):not(.error) .icon-content .index{color:var(--_step-primary-color)}.forge-step.selected.disabled .icon-content{--_step-icon-fill:var(--_step-disabled-color);--_step-icon-text-color:var(--_step-disabled-text-color)}.forge-step.selected:not(.disabled) .icon-container .icon-content{--_step-icon-fill:var(--_step-icon-fill-active);--_step-icon-text-color:var(--_step-icon-text-color-active)}.forge-step.selected:not(.disabled) .title{color:var(--_step-primary-color);font-weight:500}.forge-step.selected:not(.disabled) .subtitle ::slotted(*){color:var(--_step-primary-color);font-weight:500}.forge-step.error:not(.disabled) .title{color:var(--_step-error-color)}.forge-step.error:not(.disabled) .subtitle ::slotted(*){color:var(--_step-error-color)}.forge-step.error:not(.disabled) .icon-container .icon-content{--_step-icon-fill:var(--_step-error-color);--_step-icon-text-color:var(--_step-error-text-color)}.forge-step.completed:not(.disabled):not(.error):not(.editable) .icon-content{--_step-icon-fill:var(--_step-icon-fill-active);--_step-icon-text-color:var(--_step-icon-text-color-active)}.forge-step.completed:not(.disabled):not(.error).editable .icon-content{--_step-icon-fill:var(--_step-icon-fill-active);--_step-icon-text-color:var(--_step-icon-text-color-active)}.forge-step.expandable .expanded-icon{display:inline-block;transition:transform .3s ease-in-out}.forge-step.expandable.expanded .expanded-icon{transform:rotate(180deg)}.forge-step.expandable .icon-container .icon-content{margin:0 16px 0 0}.forge-step .text-container{display:flex;flex-direction:column;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host(:not(:last-child)[clustered])::after{--_step-line-min-width:var(--_step-line-min-width-clustered)}:host(:last-child[clustered])::before{--_step-line-min-width:var(--_step-line-min-width-clustered)}:host(:not(:first-child):not(:last-child)[clustered])::after,:host(:not(:first-child):not(:last-child)[clustered])::before{--_step-line-min-width:var(--_step-line-min-width-clustered)}',Z2=class extends M{static get observedAttributes(){return[k.attributes.COMPLETED,k.attributes.EDITABLE,k.attributes.ERROR,k.attributes.INDEX,k.attributes.SELECTED,k.attributes.ALTERNATIVE,k.attributes.DISABLED,k.attributes.VERTICAL,k.attributes.EXPANDED,k.attributes.IGNORE_USER_EXPANSION]}constructor(){super(),X.define([yl,vl,Il,cl,h0]),z(this,yb,Mb),this._core=new L4(new I4(this))}connectedCallback(){this._core.initialize()}disconnectedCallback(){this._core.destroy()}attributeChangedCallback(t,e,o){switch(t){case k.attributes.INDEX:this.index=K(o);break;case k.attributes.COMPLETED:this.completed=p(o);break;case k.attributes.EDITABLE:this.editable=p(o);break;case k.attributes.ERROR:this.error=p(o);break;case k.attributes.SELECTED:this.selected=p(o);break;case k.attributes.ALTERNATIVE:this.alternative=p(o);break;case k.attributes.DISABLED:this.disabled=p(o);break;case k.attributes.VERTICAL:this.vertical=p(o);break;case k.attributes.EXPANDED:this.expanded=p(o);break;case k.attributes.IGNORE_USER_EXPANSION:this.ignoreUserExpansion=p(o);break}}};i([c()],Z2.prototype,"alternative",2),i([c()],Z2.prototype,"index",2),i([c()],Z2.prototype,"editable",2),i([c()],Z2.prototype,"completed",2),i([c()],Z2.prototype,"error",2),i([c()],Z2.prototype,"selected",2),i([c()],Z2.prototype,"disabled",2),i([c()],Z2.prototype,"vertical",2),i([c()],Z2.prototype,"expanded",2),i([c()],Z2.prototype,"ignoreUserExpansion",2),Z2=i([y({name:k.elementName,dependencies:[j,tt,r1,J]})],Z2);function om(){f(Z2)}var zb=`${b}stepper`,am={STEPPER:"forge-stepper",LINEAR:"linear",ALTERNATIVE:"alternative",CLUSTERED:"clustered",FIXED:"fixed",ALIGN_LEFT:"align-left",ALIGN_CENTER:"align-center",ALIGN_RIGHT:"align-right",VERTICAL:"vertical",FOCUSED:"focused"},Hb={STEPPER:`.${am.STEPPER}`},Ib={SELECTED_INDEX:"selected-index",LINEAR:"linear",ALTERNATIVE:"alternative",LAYOUT_MODE:"layout-mode",LAYOUT_ALIGN:"layout-align",DISABLED:"disabled",VERTICAL:"vertical"},yt={ARROW_LEFT_KEY:"ArrowLeft",ARROW_RIGHT_KEY:"ArrowRight",ARROW_UP_KEY:"ArrowUp",ARROW_DOWN_KEY:"ArrowDown",END_KEY:"End",ENTER_KEY:"Enter",HOME_KEY:"Home",SPACE_KEY:"Space",TAB_KEY:"Tab"},Wo={ARROW_LEFT_KEYCODE:37,ARROW_RIGHT_KEYCODE:39,END_KEYCODE:35,HOME_KEYCODE:36,ENTER_KEYCODE:13,SPACE_KEYCODE:32},Lb=[yt.ARROW_LEFT_KEY,yt.ARROW_RIGHT_KEY,yt.ARROW_DOWN_KEY,yt.ARROW_UP_KEY,yt.END_KEY,yt.HOME_KEY,yt.ENTER_KEY,yt.SPACE_KEY,yt.TAB_KEY],Vb={[Wo.ARROW_LEFT_KEYCODE]:yt.ARROW_LEFT_KEY,[Wo.ARROW_RIGHT_KEYCODE]:yt.ARROW_RIGHT_KEY,[Wo.END_KEYCODE]:yt.END_KEY,[Wo.HOME_KEYCODE]:yt.HOME_KEY,[Wo.ENTER_KEYCODE]:yt.ENTER_KEY,[Wo.SPACE_KEYCODE]:yt.SPACE_KEY},F={elementName:zb,classes:am,selectors:Hb,attributes:Ib,numbers:Wo,strings:yt,ACCEPTABLE_KEYS:Lb,KEYCODE_MAP:Vb};var L0=class n{static createStepElement(t,e,o){var s,r;let a=document.createElement(k.elementName);return a.index=e,a.completed=t.completed||!1,a.editable=t.editable||!1,a.selected=o.selectedIndex===e,a.alternative=o.alternative,a.error=t.error||!1,a.disabled=t.disabled||!1,a.vertical=(r=(s=t.vertical)!=null?s:o.vertical)!=null?r:!1,a.ignoreUserExpansion=t.ignoreUserExpansion||!1,a.expanded=t.expanded||!1,o.linear&&e>o.selectedIndex&&(a.tabIndex=-1),a.textContent=t.label,t.optionalLabel&&a.appendChild(this.createStepOptionalLabel(t.optionalLabel)),a}static createStepOptionalLabel(t){let e=document.createElement("span");return e.slot="optional",e.textContent=t||"",e}static setLinearState(t,e){let o=t.classList.contains(F.classes.LINEAR);o&&!e&&(t.classList.remove(F.classes.LINEAR),o=!1),!o&&e&&t.classList.add(F.classes.LINEAR)}static setAlternativeState(t,e){let o=t.classList.contains(F.classes.ALTERNATIVE);o&&!e&&(t.classList.remove(F.classes.ALTERNATIVE),o=!1),!o&&e&&t.classList.add(F.classes.ALTERNATIVE)}static setLayoutMode(t,e){switch(e){case"clustered":t.classList.contains(F.classes.FIXED)&&t.classList.remove(F.classes.FIXED),t.classList.add(F.classes.CLUSTERED);break;case"fixed":t.classList.contains(F.classes.CLUSTERED)&&t.classList.remove(F.classes.CLUSTERED),t.classList.add(F.classes.FIXED);break}}static setLayoutAlign(t,e){switch(t.classList.contains(F.classes.ALIGN_LEFT)&&t.classList.remove(F.classes.ALIGN_LEFT),t.classList.contains(F.classes.ALIGN_CENTER)&&t.classList.remove(F.classes.ALIGN_CENTER),t.classList.contains(F.classes.ALIGN_RIGHT)&&t.classList.remove(F.classes.ALIGN_RIGHT),e){case"left":t.classList.add(F.classes.ALIGN_LEFT);break;case"center":t.classList.add(F.classes.ALIGN_CENTER);break;case"right":t.classList.add(F.classes.ALIGN_RIGHT);break}}static createSteps(t){let e=[];return t.steps.forEach((o,a)=>{let s=n.createStepElement(o,a,t);e.push(s)}),e[0].setAttribute(k.attributes.FIRST,""),e[e.length-1].setAttribute(k.attributes.LAST,""),e}};var V4=class extends I{constructor(t){super(t),this._rootElement=w(t,F.selectors.STEPPER),this._slotElement=this._rootElement.querySelector("slot")}initializeAccessibility(){this._component.hasAttribute("role")||this._component.setAttribute("role","tablist")}patchSafari(){this._applyToSteps(t=>t.setAttribute("safari",""))}addSlotChangeListener(t){this._slotElement.addEventListener("slotchange",t)}removeSlotChangeListener(t){this._slotElement.addEventListener("slotchange",t)}getLastStep(){let t=this._getSteps();return t.item(t.length-1)}setSelected(t){this._getSteps().forEach(e=>{e===t?e.selected=!0:e.selected=!1})}assignIndices(){this._getSteps().forEach((e,o)=>{e.index=o})}assignFirstLastStep(){let t=this._getSteps();t&&t.length>1&&(t[0].setAttribute("first",""),t[t.length-1].setAttribute("last",""))}setLayoutAlign(t){L0.setLayoutAlign(this._rootElement,t)}setLayoutMode(t){L0.setLayoutMode(this._rootElement,t),this._applyToSteps(e=>e.setAttribute(k.attributes.CLUSTERED,""))}setAlternativeState(t){L0.setAlternativeState(this._rootElement,t),this._applyToSteps(e=>e.alternative=t)}setVertical(t){f2(this._rootElement,t,F.classes.VERTICAL),this._applyToSteps(e=>e.vertical=t)}setLinearState(t){L0.setLinearState(this._rootElement,t)}removeRootListener(t,e){this._rootElement.removeEventListener("click",e)}addRootListener(t,e){this._rootElement.addEventListener(t,e)}setSelectedByIndex(t){this._applyToSteps(e=>{e.selected&&e.index!==t&&(e.selected=!1),e.index===t&&(e.selected=!0)})}applyConfiguredSteps(t){this._component.querySelectorAll(k.elementName).forEach(e=>{this._component.removeChild(e)}),t.forEach(e=>this._component.appendChild(e))}tryGetFocusedStep(){let t;return this._applyToSteps(e=>{e.matches(":focus-within")&&(t=e)}),t}getFocusedOrSelectedStep(){let t=this.tryGetFocusedStep();return t||(t=this._getSteps()[0],t.focus()),t}getStep(t){let e=0,o=this._getSteps();return t<0?o.item(o.length-1):(o.length>t&&(e=t),o.item(e))}toggleDisabled(t){this._applyToSteps(e=>e.disabled=t)}toggleRootClass(t,e){f2(this._rootElement,e,t)}isStepperFocused(){return this._rootElement.classList.contains(F.classes.FOCUSED)}setStepsListener(t,e){this._applyToSteps(o=>o.addEventListener(t,e))}removeStepsListener(t,e){this._applyToSteps(o=>o.removeEventListener(t,e))}_applyToSteps(t){this._getSteps().forEach(t)}_getSteps(){return this._component.querySelectorAll(k.elementName)}};var C4=class{constructor(t){this._adapter=t;this._steps=[];this._selectedIndex=0;this._linear=!1;this._alternative=!1;this._layoutMode="fixed";this._layoutAlign="center";this._initialize=!1;this._clickListener=e=>this._handleClick(e),this._keyListener=e=>this._onKeydown(e),this._stepFocusListener=()=>this._onStepFocus(),this._stepBlurListener=()=>this._onStepBlur(),this._stepExpandedContentFocusInListener=e=>this._onStepExpandedContentFocusIn(e),this._stepExpandedContentFocusOutListener=e=>this._onStepExpandedContentFocusOut(e),this._slotChangeListener=e=>this._onSlotChange(e)}initialize(){this._adapter.initializeAccessibility(),this._adapter.assignIndices(),this._adapter.setLinearState(this._linear),this._adapter.setAlternativeState(this._alternative),this._adapter.setLayoutAlign(this._layoutAlign),this._adapter.setLayoutMode(this._layoutMode),this._adapter.addRootListener("click",this._clickListener),this._adapter.addHostListener("keydown",this._keyListener),this._adapter.assignFirstLastStep(),this._adapter.addRootListener(k.events.EXPANDED_CONTENT_FOCUSIN,this._stepExpandedContentFocusInListener),this._adapter.addRootListener(k.events.EXPANDED_CONTENT_FOCUSOUT,this._stepExpandedContentFocusOutListener),this._applySelectedIndex(),this._patchBrowser(),this._adapter.setStepsListener("blur",this._stepBlurListener),this._adapter.setStepsListener("focus",this._stepFocusListener),this._initialize||this._adapter.addSlotChangeListener(this._slotChangeListener),this._initialize=!0}destroy(){this._adapter.removeRootListener("click",this._clickListener),this._adapter.removeHostListener("keydown",this._keyListener),this._adapter.removeSlotChangeListener(this._slotChangeListener),this._adapter.removeStepsListener("blur",this._stepBlurListener),this._adapter.removeStepsListener("focus",this._stepFocusListener)}get steps(){return this._steps.map(t=>d({},t))}set steps(t){if(Array.isArray(t)&&t.length>0)this._steps=[...t.map(e=>d({},e))];else{this._steps=[];return}this._renderConfiguration()}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){if(!O(t))t=0;else if(!O2(t)){let e=Number(t);t=isNaN(e)?0:e}this._selectedIndex!==t&&(this._selectedIndex=t,this._adapter.setHostAttribute(F.attributes.SELECTED_INDEX,this._selectedIndex.toString()),this._applySelectedIndex())}get linear(){return this._linear}set linear(t){t=!!t,this._linear!==t&&(this._linear=t,this._adapter.setLinearState(this._linear),this._adapter.setHostAttribute(F.attributes.LINEAR,this._linear.toString()))}get alternative(){return this._alternative}set alternative(t){t=!!t,this._alternative!==t&&(this._alternative=t,this._adapter.setAlternativeState(this._alternative),this._adapter.setHostAttribute(F.attributes.ALTERNATIVE,this._alternative.toString()))}get layoutMode(){return this._layoutMode}set layoutMode(t){/^(fixed|clustered)$/.test(t)&&this._layoutMode!==t&&(this._layoutMode=t,this._adapter.setHostAttribute(F.attributes.LAYOUT_MODE,this._layoutMode),this._adapter.setLayoutMode(this._layoutMode))}get layoutAlign(){return this._layoutAlign}set layoutAlign(t){/^(left|center|right)$/.test(t)&&this._layoutAlign!==t&&(this._layoutAlign=t,this._adapter.setLayoutAlign(this._layoutAlign),this._adapter.setHostAttribute(F.attributes.LAYOUT_ALIGN,this._layoutAlign))}get disabled(){return this._disabled}set disabled(t){t!==this._disabled&&(this._disabled=t,this._applyDisabled())}get vertical(){return this._vertical}set vertical(t){t!==this._vertical&&(this._vertical=t,this._applyVertical(),this._adapter.toggleHostAttribute(F.attributes.VERTICAL,this._vertical))}_applyVertical(){this._adapter.setVertical(this._vertical)}_applyDisabled(){this._disabled?this._adapter.setHostAttribute(F.attributes.DISABLED,"disabled"):this._adapter.removeHostAttribute(F.attributes.DISABLED),this._adapter.toggleDisabled(this._disabled)}_applySelectedIndex(){this._adapter.setSelectedByIndex(this._selectedIndex)}_handleClick(t){if(t.preventDefault(),this._linear)return;let o=C2(t).filter(a=>a.nodeType===Node.ELEMENT_NODE).find(a=>a.matches(k.elementName));o&&!o.selected&&!o.disabled&&this._adapter.emitHostEvent(k.events.SELECT,o.index,!0,!0)&&(this._adapter.setSelected(o),this.selectedIndex=o.index)}_renderConfiguration(){let t=L0.createSteps({steps:this._steps,vertical:this._vertical,selectedIndex:this._selectedIndex,alternative:this._alternative,layoutAlign:this._layoutAlign,layoutMode:this._layoutMode,linear:this._linear});this.destroy(),this._adapter.applyConfiguredSteps(t),this.initialize()}_onKeydown(t){var a;if(this._linear)return;let e=this._getKeyFromEvent(t);if(!this._adapter.isStepperFocused()||!e)return;if([k.strings.HOME_KEY,k.strings.END_KEY,k.strings.ARROW_DOWN_KEY,F.strings.ARROW_UP_KEY,F.strings.ENTER_KEY,F.strings.SPACE_KEY].includes(e)&&t.preventDefault(),[F.strings.ENTER_KEY,F.strings.SPACE_KEY].includes(e)){(a=this._adapter.getFocusedOrSelectedStep())==null||a.click();return}let o=this._vertical?this._determineVerticalMoveTarget(e):this._determineMoveTarget(e);o&&this._moveFocusTo(o)}_moveFocusTo(t){t.focus()}_getKeyFromEvent(t){return F.ACCEPTABLE_KEYS.includes(t.key)?t.key:F.KEYCODE_MAP[t.keyCode]}_determineMoveTarget(t){let e=this._adapter.getFocusedOrSelectedStep();if(e)switch(t){case F.strings.ARROW_RIGHT_KEY:return this._adapter.getStep(e.index+1);case F.strings.ARROW_LEFT_KEY:return this._adapter.getStep(e.index-1);case F.strings.HOME_KEY:return this._adapter.getStep(0);case F.strings.END_KEY:return this._adapter.getLastStep()}return e}_determineVerticalMoveTarget(t){let e=this._adapter.getFocusedOrSelectedStep();if(e)switch(t){case F.strings.ARROW_DOWN_KEY:return this._adapter.getStep(e.index+1);case F.strings.ARROW_UP_KEY:return this._adapter.getStep(e.index-1);case F.strings.HOME_KEY:return this._adapter.getStep(0);case F.strings.END_KEY:return this._adapter.getLastStep()}return e}_onSlotChange(t){this.destroy(),this.initialize()}_onStepExpandedContentFocusIn(t){let e=this._adapter.getStep(t.detail.index+1);e&&(e.tabIndex=0),t.detail.tabIndex=0}_onStepExpandedContentFocusOut(t){let e=t.target,o=this._adapter.getStep(e.index+1);o&&(o.tabIndex=-1),e.tabIndex=-1}_onStepFocus(){this._adapter.toggleRootClass(F.classes.FOCUSED,!0)}_onStepBlur(){this._adapter.toggleRootClass(F.classes.FOCUSED,!1)}_patchBrowser(){new Q2().SAFARI()&&this._adapter.patchSafari()}};var Cb='<template><div class="forge-stepper" part="root"><slot></slot></div></template>',Eb=":host{display:block}:host([hidden]){display:none}:host([vertical]) .forge-stepper{display:unset;align-items:unset;white-space:unset;overflow:unset}.forge-stepper{display:flex;align-items:center;white-space:nowrap;overflow:hidden}.forge-stepper:not(.vertical) ::slotted(*){display:flex;align-items:center;position:relative;min-width:112px}.forge-stepper.fixed ::slotted(*){flex:1}.forge-stepper.alternative{align-items:flex-start}.forge-stepper.alternative ::slotted(*){min-width:160px}.forge-stepper.align-left{justify-content:flex-start}.forge-stepper.align-center{justify-content:center}.forge-stepper.align-right{justify-content:flex-end}",Nt=class extends M{static get observedAttributes(){return[F.attributes.SELECTED_INDEX,F.attributes.LINEAR,F.attributes.ALTERNATIVE,F.attributes.LAYOUT_MODE,F.attributes.LAYOUT_ALIGN,F.attributes.DISABLED,F.attributes.VERTICAL]}constructor(){super(),z(this,Cb,Eb),this._core=new C4(new V4(this))}async connectedCallback(){await Ko(this),this._core.initialize()}disconnectedCallback(){this._core.destroy()}attributeChangedCallback(t,e,o){switch(t){case F.attributes.SELECTED_INDEX:this.selectedIndex=Number(o)||0;break;case F.attributes.LINEAR:this.linear=p(o);break;case F.attributes.ALTERNATIVE:this.alternative=p(o);break;case F.attributes.LAYOUT_MODE:this.layoutMode=o;break;case F.attributes.LAYOUT_ALIGN:this.layoutAlign=o;break;case F.attributes.DISABLED:this.disabled=p(o);break;case F.attributes.VERTICAL:this.vertical=p(o);break}}};i([c()],Nt.prototype,"steps",2),i([c()],Nt.prototype,"selectedIndex",2),i([c()],Nt.prototype,"linear",2),i([c()],Nt.prototype,"alternative",2),i([c()],Nt.prototype,"layoutMode",2),i([c()],Nt.prototype,"layoutAlign",2),i([c()],Nt.prototype,"disabled",2),i([c()],Nt.prototype,"vertical",2),Nt=i([y({name:F.elementName,dependencies:[Z2]})],Nt);function nm(){f(Nt)}var Se=`${b}table`,sm={TABLE:"forge-table",TABLE_DENSE:"forge-table--dense",TABLE_ROOMY:"forge-table--roomy",TABLE_RESIZABLE:"forge-table--resizable",TABLE_RESIZING:"forge-table--resizing",TABLE_RESIZE_HANDLE:"forge-table__resize-handle",TABLE_NO_WRAP_CONTENT:"forge-table--no-wrap-content",TABLE_LAYOUT_FIXED:"forge-table--layout-fixed",TABLE_FILTER_VISIBLE:"forge-table--filter-visible",TABLE_FIXED:"forge-table--fixed",TABLE_HEAD:"forge-table-head",TABLE_HEAD_ROW:"forge-table-head__row",TABLE_HEAD_ROW_FILTER:"forge-table-head__row__filter",TABLE_HEAD_CELL:"forge-table-head__cell",TABLE_HEAD_CELL_CONTAINER:"forge-table-head__cell-container",TABLE_HEAD_CELL_SORTABLE:"forge-table-head__cell--sortable",TABLE_HEAD_CELL_SORT_ICON:"forge-table-head__cell-sort-icon",TABLE_HEAD_CELL_TEXT:"forge-table-head__cell-text",TABLE_HEAD_CELL_SORT_ICON_ACTIVE:"forge-table-head__cell-sort-icon--active",TABLE_HEAD_CELL_SORTED_ASCENDING:"forge-table-head__cell--sorted-ascending",TABLE_HEAD_CELL_SORTED_DESCENDING:"forge-table-head__cell--sorted-descending",TABLE_HEAD_CELL_SORT_ORDER:"forge-table-head__cell__sort-order",TABLE_HEAD_CELL_SORT_ORDER_HIDDEN:"forge-table-head__cell__sort-order--hidden",TABLE_BODY:"forge-table-body",TABLE_BODY_ROW:"forge-table-body__row",TABLE_BODY_ROW_SELECTED:"forge-table-body__row--selected",TABLE_BODY_ROW_CLICKABLE:"forge-table-body__row--clickable",TABLE_BODY_CELL:"forge-table-body__cell",TABLE_ROW:"forge-table-row",TABLE_ROW_EXPANDED:"forge-table-row--expanded",TABLE_ROW_EXPANDABLE_CONTENT:"forge-table-row__expandable-content",TABLE_ROW_EXPANDABLE_CONTENT_CELL:"forge-table-row__expandable-content-cell",TABLE_CELL:"forge-table-cell",TABLE_CELL_SELECT:"forge-table-cell__select",TABLE_CELL_SELECT_CHECKBOX:"forge-table-cell__select-checkbox",TABLE_CELL_SELECT_CHECKBOX_CONTAINER:"forge-table-cell__select-checkbox-container",TABLE_CELL_SELECT_CHECKBOX_CONTAINER_ALIGN_RIGHT:"forge-table-cell__select-checkbox-container--align-right",TABLE_CELL_SELECT_CHECKBOX_CONTAINER_ALIGN_LEFT:"forge-table-cell__select-checkbox-container--align-left",TABLE_CELL_SELECT_CHECKBOX_CONTAINER_ALIGN_CENTER:"forge-table-cell__select-checkbox-container--align-center",TABLE_CELL_CONTAINER:"forge-table-cell__container",TABLE_CELL_CONTAINER_TEXT:"forge-table-cell__container-text",TABLE_CELL_CENTER:"forge-table-cell--center",TABLE_CELL_RIGHT:"forge-table-cell--right",TABLE_CELL_RESIZABLE:"forge-table-cell--resizing"},Bb={TABLE:".forge-table",CHECKBOX_INPUT:":is(forge-checkbox,input[type=checkbox]):not([forge-ignore])",SELECT_ALL_TEMPLATE_CHECKBOX_INPUT:":is(forge-checkbox,input[type=checkbox]):not([forge-ignore])",ROW_SELECTED:`.${sm.TABLE_BODY_ROW_SELECTED}`},Ab={SELECT:"select",MULTISELECT:"multiselect",SELECT_KEY:"select-key",DENSE:"dense",ROOMY:"roomy",FILTER:"filter",FIXED_HEADERS:"fixed-headers",LAYOUT_TYPE:"layout-type",WRAP_CONTENT:"wrap-content",RESIZABLE:"resizable",MIN_RESIZE_WIDTH:"min-resize-width",ALLOW_ROW_CLICK:"allow-row-click",MULTI_COLUMN_SORT:"multi-column-sort",SELECT_CHECKBOX_ALIGNMENT:"select-checkbox-alignment",TOOLTIP_SELECT:"tooltip-select",TOOLTIP_SELECT_ALL:"tooltip-select-all",CHECKBOX_TYPE:"forge-checkbox-type",CUSTOM_CELL_TEMPLATE:"data-cell-template",CUSTOM_CELL_TEMPLATE_STOP_PROPAGATION:"data-cell-template-stop-propagation",SELECT_CHECKBOX:"forge-table-row-select-checkbox"},Tb={ROW_CLICK:`${Se}-row-click`,SELECT:`${Se}-select`,SELECT_DOUBLE:`${Se}-select-double`,SELECT_ALL:`${Se}-select-all`,SORT:`${Se}-sort`,FILTER:`${Se}-filter`,INITIALIZED:`${Se}-initialized`,COLUMN_RESIZE:`${Se}-column-resize`,BEFORE_BODY_RENDERED:`${Se}-before-body-rendered`,BODY_RENDERED:`${Se}-body-rendered`},Sb={SELECT_ALL:"select-all",SELECT_ROW:"select-row",DEFAULT_LAYOUT_TYPE:"auto"},kb={SORT_DOWN:"arrow_downward"},Ob={DEFAULT_FILTER_DEBOUNCE_TIME:750,MIN_RESIZE_WIDTH:100,RESIZE_HOVER_DURATION:150},_={elementName:Se,classes:sm,selectors:Bb,attributes:Ab,events:Tb,strings:Sb,icons:kb,numbers:Ob};var E4=(o=>(o.Left="left",o.Right="right",o.Center="center",o))(E4||{}),B4=(o=>(o.Ascending="ASC",o.Descending="DESC",o.Unset="UNSET",o))(B4||{}),Db=(r=>(r.InputText="text",r.InputNumber="number",r.Select="select",r.SelectMultiple="select-multiple",r.Date="date",r.DateRange="date-range",r))(Db||{});function rm(n){return n&&typeof n=="object"&&"content"in n}var A1=class n{static createTable(t){n._resetTable(t.tableElement);let e=n._createTableHead(t),o=n._createTableBody(t);t.clickListener&&(n._attachRowClickListeners(o,t.clickListener,t.doubleClickListener),n._addRowClickAttributes(o)),t.fixedHeaders&&n.setFixedHeaders(t),t.resizable&&n.setResizable(t),t.dense&&n.setDenseState(t.tableElement,t.dense),t.wrapContent&&n.setWrapContentState(t.tableElement,t.wrapContent),t.selectListener&&n._addSelectColumn(e,o,t.selectListener,t.selectAllListener,t.selectAllTemplate,t.selectCheckboxAlignment,t.data,t.tooltipSelect,t.tooltipSelectAll),(t.resizable||t.columnConfigurations.some(a=>!!a.sortable))&&(n._attachHeadRowMouseDownListener(e,t.headRowMouseDownListener),n._isMac()&&n._attachHeadRowContextMenuListener(e,t.headRowContextMenuListener)),n.setLayoutType(t),n._setTableHead(t.tableElement,e),t.filter&&n.setFilterRow(t),n._setTableBody(t.tableElement,o)}static _setTableHead(t,e){t.tHead?s0(e,t.tHead):t.appendChild(e)}static _setTableBody(t,e){t.tBodies.length?s0(e,t.tBodies[0]):t.appendChild(e)}static recreateTableBody(t){let e=n._createTableBody(t);t.clickListener&&(n._attachRowClickListeners(e,t.clickListener,t.doubleClickListener),n._addRowClickAttributes(e)),t.selectListener&&(n._createBodySelectColumn(e,t.selectCheckboxAlignment,t.data,t.tooltipSelect,t.tooltipSelectAll),n._attachRowSelectListeners(e,t.selectListener)),n._setTableBody(t.tableElement,e)}static _resetTable(t){n2(t)}static _createMultisortTooltip(){let t=document.createElement("forge-tooltip");return t.textContent="Ctrl + click to sort multiple columns",t.placement="bottom",t.delay=0,t}static _createTableHead(t){let e=document.createElement("thead"),o=e.insertRow();H1([_.classes.TABLE_ROW,_.classes.TABLE_HEAD_ROW],o);let a=!1;for(let s=0;s<t.columnConfigurations.length;s++){let r=t.columnConfigurations[s],l=document.createElement("th");l.scope="col",H1([_.classes.TABLE_CELL,_.classes.TABLE_HEAD_CELL],l);let h;if(r.sortable?(h=document.createElement("button"),h.type="button",h.addEventListener("keydown",t.sortableHeadCellKeydownListener)):h=document.createElement("div"),h.classList.add(_.classes.TABLE_HEAD_CELL_CONTAINER),t.multiColumnSort){let v=n._createMultisortTooltip();h.appendChild(v)}if(r.align&&n._setCellAlignmentClass(h,r.align),O(r.width)){let v=j4(r.width);v&&(l.style.width=v)}if(t.resizable&&r.resizable!==!1){let v=document.createElement("div");v.classList.add(_.classes.TABLE_RESIZE_HANDLE),l.appendChild(v)}if(O(r.headerCellStyle)&&vt(r.headerCellStyle)&&(Object.assign(l.style,r.headerCellStyle),Object.assign(h.style,r.headerCellStyle)),r.sortable){l.classList.add(_.classes.TABLE_HEAD_CELL_SORTABLE);let v=document.createElement("span");H1([_.classes.TABLE_HEAD_CELL_SORT_ORDER_HIDDEN,_.classes.TABLE_HEAD_CELL_SORT_ORDER],v);let m=document.createElement(p1.elementName);m.name=_.icons.SORT_DOWN,H1([_.classes.TABLE_HEAD_CELL_SORT_ICON],m),t.multiColumnSort?typeof r.initialSort=="object"&&r.initialSort.sortOrder&&(v.textContent=r.initialSort.sortOrder.toString(),t.columnConfigurations.filter(u=>typeof u.initialSort=="object").length>1&&ye(_.classes.TABLE_HEAD_CELL_SORT_ORDER_HIDDEN,v),l.classList.add(_.classes.TABLE_HEAD_CELL_SORTED_DESCENDING),m.classList.add(_.classes.TABLE_HEAD_CELL_SORT_ICON_ACTIVE),n._setColumnSortDirection(l,r.initialSort.direction)):t.sortedColumn===s&&!a&&!t.multiColumnSort&&(l.classList.add(_.classes.TABLE_HEAD_CELL_SORTED_DESCENDING),m.classList.add(_.classes.TABLE_HEAD_CELL_SORT_ICON_ACTIVE),n._setColumnSortDirection(l,t.sortDirection),a=!0),h.appendChild(m),h.appendChild(v)}if(typeof r.headerTemplate=="function")Promise.resolve(r.headerTemplate(s,h,r)).then(v=>{if(v){let m=document.createElement("div");H1(_.classes.TABLE_CELL_CONTAINER,m),typeof v=="string"?m.innerHTML=v:n._prepend(v,m),m.setAttribute(_.attributes.CUSTOM_CELL_TEMPLATE,""),n._prepend(m,h)}});else{let v=document.createElement("span");v.classList.add(_.classes.TABLE_HEAD_CELL_TEXT),v.textContent=r.header&&typeof r.header=="string"?r.header.trim():"",v.textContent.trim().length===0&&l.setAttribute("aria-hidden","true"),n._prepend(v,h)}l.appendChild(h),o.appendChild(l)}return e}static setSortDirection(t,e,o){let a=n._getHeaderCellByIndex(t,e);t.querySelectorAll("th[aria-sort]").forEach(s=>s.removeAttribute("aria-sort")),n._setColumnSortDirection(a,o)}static _setColumnSortDirection(t,e){t.classList.contains(_.classes.TABLE_HEAD_CELL_SORTED_ASCENDING)&&t.classList.remove(_.classes.TABLE_HEAD_CELL_SORTED_ASCENDING),t.classList.contains(_.classes.TABLE_HEAD_CELL_SORTED_DESCENDING)&&t.classList.remove(_.classes.TABLE_HEAD_CELL_SORTED_DESCENDING),!e||e==="DESC"?(t.setAttribute("aria-sort","descending"),t.classList.add(_.classes.TABLE_HEAD_CELL_SORTED_DESCENDING)):(t.setAttribute("aria-sort","ascending"),t.classList.add(_.classes.TABLE_HEAD_CELL_SORTED_ASCENDING))}static _createTableBody(t){let e=document.createElement("tbody");return n._getOrderedRowData(t.columnConfigurations,t.data).forEach((a,s)=>{let r=e.insertRow();H1([_.classes.TABLE_ROW,_.classes.TABLE_BODY_ROW],r),n._populateRowCells(t,r,a,s),typeof t.rowCreatedCallback=="function"&&t.rowCreatedCallback(r,s,d({},t.data[s].data))}),e}static _populateRowCells(t,e,o,a){for(let s=0;s<o.length;s++){let r=t.columnConfigurations[s],l=e.insertCell();if(H1([_.classes.TABLE_CELL,_.classes.TABLE_BODY_CELL],l),O(r.width)){let v=j4(r.width);v&&(l.style.width=v)}let h=document.createElement("div");if(h.classList.add(_.classes.TABLE_CELL_CONTAINER),O(r.cellStyle)&&vt(r.cellStyle)&&(Object.assign(l.style,r.cellStyle),Object.assign(h.style,r.cellStyle)),r.template&&typeof r.template=="function"){let v=t.data[a]?t.data[a].data:void 0;Promise.resolve(r.template(a,h,v,s)).then(m=>{let u=rm(m)?m:{content:m,stopClickPropagation:r.stopCellTemplateClickPropagation};u.content&&(typeof u.content=="string"?h.innerHTML=u.content:h.appendChild(u.content),h.setAttribute(_.attributes.CUSTOM_CELL_TEMPLATE,""),u.stopClickPropagation&&h.setAttribute(_.attributes.CUSTOM_CELL_TEMPLATE_STOP_PROPAGATION,""))})}else if(r.property){let v=document.createElement("span");v.classList.add(_.classes.TABLE_CELL_CONTAINER_TEXT),h.appendChild(v),r.transform&&typeof r.transform=="function"?Promise.resolve(r.transform(o[s])).then(m=>v.textContent=m):o[s]==null?v.textContent="":v.textContent=o[s].toString()}if(r.align&&n._setCellAlignmentClass(h,r.align),l.appendChild(h),O(r.columnSpan)){if(r.columnSpan==="all"){l.colSpan=o.length-s;break}else if(typeof r.columnSpan=="number"&&r.columnSpan>0){let v=r.columnSpan;r.columnSpan>o.length-s&&(v=o.length),l.colSpan=v,s=s+(v-1)}}typeof t.cellCreatedCallback=="function"&&t.cellCreatedCallback(l,a,s)}}static _setCellAlignmentClass(t,e){switch(e){case"center":t.classList.add(_.classes.TABLE_CELL_CENTER);break;case"right":t.classList.add(_.classes.TABLE_CELL_RIGHT);break}}static _getNonExpandedRows(t){return Array.from(t).filter(e=>!e.classList.contains(_.classes.TABLE_ROW_EXPANDABLE_CONTENT))}static _getExpandedRows(t){return Array.from(t).filter(e=>e.classList.contains(_.classes.TABLE_ROW_EXPANDABLE_CONTENT))}static _createColumnDataMap(t,e){return t.map(o=>({config:o,data:e.map(a=>{if(o.property){let s=P3(a.data,o.property);return O(s)?s:null}return null})}))}static _getOrderedRowData(t,e){let o=n._createColumnDataMap(t,e),a=[];for(let s of o)for(let r=0;r<s.data.length;r++)a[r]||(a[r]=[]),a[r].push(s.data[r]);return a}static _attachRowClickListeners(t,e,o){n._getNonExpandedRows(t.rows).forEach(s=>{s.addEventListener("click",e),o&&s.addEventListener("dblclick",o)})}static _addRowClickAttributes(t){n._getNonExpandedRows(t.rows).forEach(o=>{o.classList.add(_.classes.TABLE_BODY_ROW_CLICKABLE)})}static _removeRowClickAttributes(t){n._getNonExpandedRows(t.rows).forEach(o=>{o.classList.remove(_.classes.TABLE_BODY_ROW_CLICKABLE)})}static _attachRowSelectListeners(t,e){n._getNonExpandedRows(t.rows).forEach(a=>n._attachRowSelectListener(a,e))}static _attachRowSelectListener(t,e){let o=n._getCheckboxElement(t);o==null||o.addEventListener("change",e),o==null||o.addEventListener("keydown",e),o==null||o.addEventListener("pointerdown",e)}static _detachRowSelectListeners(t,e){Array.from(t.rows).forEach(o=>{let a=n._getCheckboxElement(o);a==null||a.removeEventListener("change",e),a==null||a.removeEventListener("keydown",e),a==null||a.removeEventListener("pointerdown",e)})}static _detachRowClickListeners(t,e,o){Array.from(t.rows).forEach(a=>{a.removeEventListener("click",e),a.removeEventListener("dblclick",o)})}static _attachSelectAllListener(t,e){let o=t.rows[t.rows.length-1],a=n._getCheckboxElement(o);if(!a)throw new Error("Checkbox element not found.");a.addEventListener("change",e)}static _tryAttachSelectAllTemplateListener(t,e){let o=t.rows[t.rows.length-1],a=n._tryGetSelectAllCheckboxElement(o);a&&a.addEventListener("change",e)}static _detachSelectAllListener(t,e){let o=t.rows[t.rows.length-1],a=n._tryGetSelectAllCheckboxElement(o);a&&a.removeEventListener("change",e)}static _attachHeadRowMouseDownListener(t,e){let o=t.rows[0];if(!o)throw new Error("Missing table header row. Unable to attach sort listener.");o.addEventListener("mousedown",e)}static _attachHeadRowContextMenuListener(t,e){let o=t.rows[0];if(!o)throw new Error("Missing table header row. Unable to attach sort listener.");o.addEventListener("contextmenu",e)}static _createSelectColumn(t,e,o,a,s,r,l,h,v){t&&n._createHeadSelectColumn(t,o,a,s,r,v),e&&n._createBodySelectColumn(e,r,l,h,v)}static _createHeadSelectColumn(t,e,o,a,s,r){var l;if(Array.from(t.rows).forEach(h=>{let v=document.createElement("th");H1([_.classes.TABLE_CELL,_.classes.TABLE_HEAD_CELL],v),h.insertBefore(v,h.cells.item(0))}),e){let h=(l=t.rows.item(t.rows.length-1))==null?void 0:l.cells.item(0);h.classList.add(_.classes.TABLE_CELL_SELECT),typeof o=="function"?n._renderSelectAllTemplate(o,t).then(()=>{typeof a=="function"&&a()}):h==null||h.appendChild(n._createCheckboxElement(!0,s,null,null,null,r))}}static _createBodySelectColumn(t,e,o,a,s){if(n._getNonExpandedRows(t.rows).forEach((l,h)=>n._addRowSelectColumn(l,e,h,o[h],a,s)),t.rows.length){let l=t.rows.item(0);l&&n._updateExpandedRowColspan(t.rows,l.cells.length)}}static _addRowSelectColumn(t,e,o,a,s,r){let l=t.insertCell(0);H1([_.classes.TABLE_CELL,_.classes.TABLE_BODY_CELL,_.classes.TABLE_CELL_SELECT],l),l.appendChild(n._createCheckboxElement(!1,e,o,a,s,r))}static _destroySelectColumn(t,e){let o=n._getNonExpandedRows(e.rows);if(Array.from(t.rows).forEach(a=>a.removeChild(a.cells.item(0))),Array.from(o).forEach(a=>a.removeChild(a.cells.item(0))),e.rows.length){let a=e.rows.item(0);a&&n._updateExpandedRowColspan(e.rows,a.cells.length)}}static _hasSelectColumn(t,e){return[...Array.from(t.rows),...Array.from(e.rows)].some(a=>a.cells.item(0).classList.contains(_.classes.TABLE_CELL_SELECT))}static _createCheckboxElement(t,e,o,a,s,r){let l=document.createElement("div");if(l.classList.add(_.classes.TABLE_CELL_SELECT_CHECKBOX_CONTAINER),e)switch(e){case"center":l.classList.add(_.classes.TABLE_CELL_SELECT_CHECKBOX_CONTAINER_ALIGN_CENTER);break;case"left":l.classList.add(_.classes.TABLE_CELL_SELECT_CHECKBOX_CONTAINER_ALIGN_LEFT);break;case"right":l.classList.add(_.classes.TABLE_CELL_SELECT_CHECKBOX_CONTAINER_ALIGN_RIGHT);break}let h=document.createElement(T1.elementName);h.setAttribute(_.attributes.SELECT_CHECKBOX,""),l.appendChild(h);let v=m=>{let u=document.createElement("forge-tooltip");return u.placement="left",u.type="label",u.textContent=m,u};if(t)if(typeof r=="string"&&r.length){let u=v(r);l.appendChild(u)}else h.setAttribute("aria-label","Select all rows");else{let m=s||"";if(a&&typeof s=="function"&&(m=s.call(null,o,a.data)),typeof m=="string"&&m.length){let u=v(m);l.appendChild(u)}else h.setAttribute("aria-label","Select row")}return l}static _getCheckboxElement(t){let e=t.querySelector(`.${_.classes.TABLE_CELL_SELECT}`);return e?e.querySelector(_.selectors.CHECKBOX_INPUT):null}static _tryGetSelectAllCheckboxElement(t){let e=t.querySelector(`.${_.classes.TABLE_CELL_SELECT}`);return e?e.querySelector(_.selectors.CHECKBOX_INPUT)||e.querySelector(_.selectors.SELECT_ALL_TEMPLATE_CHECKBOX_INPUT):null}static _setSelectedCheckboxState(t,e){t&&(t.checked=e)}static _setIndeterminateCheckboxState(t,e){t&&(t.indeterminate=e)}static _setRowSelectedState(t,e){e?t.classList.contains(_.classes.TABLE_BODY_ROW_SELECTED)||t.classList.add(_.classes.TABLE_BODY_ROW_SELECTED):t.classList.remove(_.classes.TABLE_BODY_ROW_SELECTED)}static _updateExpandedRowColspan(t,e){n._getExpandedRows(t).forEach(a=>{let s=a.cells.item(0);s&&(s.colSpan=e)})}static updateSelectedState(t,e){n._setRowSelectedState(t,e);let o=n._getCheckboxElement(t);o&&n._setSelectedCheckboxState(o,e)}static getRowByIndex(t,e){return n._getNonExpandedRows(t.tBodies[0].rows)[e]}static updateSelectAllState(t,e,o){if(!t.tHead)return;let a=t.tHead.rows[t.tHead.rows.length-1],s=n._tryGetSelectAllCheckboxElement(a);s&&(n._setSelectedCheckboxState(s,e),n._setIndeterminateCheckboxState(s,!!o))}static setSelectedRows(t,e,o,a,s=!1){if(!t.tBodies.length)return;s||n.clearSelectedRows(t);let r=t.tBodies[0].rows,l=0;a.length&&Array.from(r).forEach((h,v)=>{let m=o[v];if($n(a,xo(e,m))){n._setRowSelectedState(h,!0);let H=n._getCheckboxElement(h);H&&n._setSelectedCheckboxState(H,!0),l++}}),n.updateSelectAllState(t,l>0&&r.length===l)}static clearSelectedRows(t){if(!t.tBodies.length)return;n._getNonExpandedRows(t.tBodies[0].rows).forEach(o=>{n._setRowSelectedState(o,!1);let a=n._getCheckboxElement(o);a&&n._setSelectedCheckboxState(a,!1)})}static setSortedColumn(t,e,o){let a=n._getHeaderCellByIndex(t,e);n._getSortIconElementFromHeaderCell(a).classList.add(_.classes.TABLE_HEAD_CELL_SORT_ICON_ACTIVE),n._setColumnSortDirection(a,o)}static setMultiSortColumnSortNumber(t,e,o,a){let l=n._getHeaderCellByIndex(t,o).querySelector(`.${_.classes.TABLE_HEAD_CELL_CONTAINER}`).querySelector(`.${_.classes.TABLE_HEAD_CELL_SORT_ORDER}`);l&&(f2(l,typeof a!="number"||!e,_.classes.TABLE_HEAD_CELL_SORT_ORDER_HIDDEN),a&&(l.textContent=a.toString()))}static removeColumnSort(t,e){let o=n._getHeaderCellByIndex(t,e);o.removeAttribute("aria-sort"),o.classList.contains(_.classes.TABLE_HEAD_CELL_SORTED_ASCENDING)&&o.classList.remove(_.classes.TABLE_HEAD_CELL_SORTED_ASCENDING),o.classList.contains(_.classes.TABLE_HEAD_CELL_SORTED_DESCENDING)&&o.classList.remove(_.classes.TABLE_HEAD_CELL_SORTED_DESCENDING);let a=n._getSortIconElementFromHeaderCell(o);a&&a.classList.contains(_.classes.TABLE_HEAD_CELL_SORT_ICON_ACTIVE)&&a.classList.remove(_.classes.TABLE_HEAD_CELL_SORT_ICON_ACTIVE)}static _getHeaderCellByIndex(t,e){if(!t.tHead)throw new Error("Table head element cannot be null.");return t.tHead.rows.item(0).cells.item(e)}static _getSortIconElementFromHeaderCell(t){return t.querySelector(`.${_.classes.TABLE_HEAD_CELL_SORT_ICON}`)}static setSelectColumnVisibility(t,e,o,a,s,r,l,h,v){let m=t.tHead,u=t.tBodies[0];!m||!u||(e?n._addSelectColumn(m,u,o,a,s,r,l,h,v):n._hasSelectColumn(m,u)&&(o&&n._detachRowSelectListeners(u,o),a&&n._detachSelectAllListener(m,a),n._destroySelectColumn(m,u)))}static _addSelectColumn(t,e,o,a,s,r,l,h,v){n._createSelectColumn(t,e,!!a,s,()=>{a&&n._tryAttachSelectAllTemplateListener(t,a)},r,l,h,v),o&&n._attachRowSelectListeners(e,o),a&&!s&&n._tryAttachSelectAllTemplateListener(t,a)}static setDenseState(t,e){t.classList.contains(_.classes.TABLE_DENSE)&&t.classList.remove(_.classes.TABLE_DENSE),e&&t.classList.add(_.classes.TABLE_DENSE)}static setRoomyState(t,e){t.classList.contains(_.classes.TABLE_ROOMY)&&t.classList.remove(_.classes.TABLE_ROOMY),e&&t.classList.add(_.classes.TABLE_ROOMY)}static setResizable(t){let e=t.tableElement.tHead;t.resizable?(t.tableElement.classList.add(_.classes.TABLE_RESIZABLE),n._addResizeHandles(e,t)):(t.tableElement.classList.remove(_.classes.TABLE_RESIZABLE),n._removeResizeHandles(e,t))}static _addResizeHandles(t,e){if(!t)return;let o=t.rows.item(0);if(o){let a=Array.from(o.cells);e.selectListener&&(a=a.slice(1));for(let s of a){let r=a.indexOf(s);if(e.columnConfigurations[r].resizable!==!1){let h=document.createElement("div");h.classList.add(_.classes.TABLE_RESIZE_HANDLE),s.appendChild(h)}}}}static _removeResizeHandles(t,e){if(!t)return;let o=t.rows.item(0);if(o){let a=Array.from(o.cells);e.selectListener&&(a=a.slice(1));for(let s of a){let r=document.querySelector(`.${_.classes.TABLE_RESIZE_HANDLE}`);r&&s.removeChild(r)}}}static setWrapContentState(t,e){e?t.classList.remove(_.classes.TABLE_NO_WRAP_CONTENT):t.classList.add(_.classes.TABLE_NO_WRAP_CONTENT)}static setSelectAllVisibility(t,e,o,a,s,r){let l=t.tHead;if(!l)return;!e&&o&&n._detachSelectAllListener(l,o);let v=l.rows[l.rows.length-1].cells.item(0);e?v.childElementCount||(v.classList.add(_.classes.TABLE_CELL_SELECT),a?n._renderSelectAllTemplate(a,l).then(()=>{o&&n._tryAttachSelectAllTemplateListener(l,o)}):v.appendChild(n._createCheckboxElement(!0,s||null,null,null,null,r)),o&&!a&&n._attachSelectAllListener(l,o)):(o&&n._detachSelectAllListener(l,o),n2(v))}static setFilterRow(t){if(!t.tableElement.tHead)return;let e=n._getFilterRowElement(t.tableElement.tHead),o;if(t.filter?t.tableElement.classList.add(_.classes.TABLE_FILTER_VISIBLE):t.tableElement.classList.remove(_.classes.TABLE_FILTER_VISIBLE),t.filter&&!e){if(t.columnConfigurations.every(s=>!s.filter))return;t.selectListener&&t.selectAllListener&&(o=t.tableElement.tHead.rows[t.tableElement.tHead.rows.length-1].cells.item(0));let a=n._createFilterRowElement(t);a&&o&&Array.from(o.children).forEach(s=>{var r;(r=a.cells.item(0))==null||r.appendChild(s)})}else if(!t.filter&&e){if(t.selectListener&&t.selectAllListener){o=e.cells.item(0);let a=Array.from(t.tableElement.tHead.rows).indexOf(e)-1,s=t.tableElement.tHead.rows.item(a);s&&Array.from(o.children).forEach(r=>{var l;(l=s.cells.item(0))==null||l.appendChild(r)})}Fe(e)}}static _createFilterRowElement(t){if(!t.tableElement.tHead)throw new Error("Table head element cannot be null.");let e=t.tableElement.tHead.insertRow();if(H1([_.classes.TABLE_ROW,_.classes.TABLE_HEAD_ROW_FILTER],e),t.selectListener){let o=document.createElement("th");H1([_.classes.TABLE_CELL,_.classes.TABLE_HEAD_CELL],o),e.insertBefore(o,e.cells[0]),o.classList.add(_.classes.TABLE_CELL_SELECT)}return t.columnConfigurations.forEach((o,a)=>{let s=document.createElement("th");if(H1([_.classes.TABLE_CELL,_.classes.TABLE_HEAD_CELL],s),o.filter&&O(o.filterDelegate)){let r=document.createElement("div");r.classList.add(_.classes.TABLE_HEAD_CELL_CONTAINER),o.align&&n._setCellAlignmentClass(r,o.align);let l=n._createFilterElement(o,a,t.filterListener);r.appendChild(l),s.appendChild(r)}e.appendChild(s)}),e}static _createFilterElement(t,e,o){let a;if(n0(t.filterDelegate))a=t.filterDelegate();else if(t.filterDelegate instanceof o2||t.filterDelegate instanceof Z1)a=t.filterDelegate;else throw new Error("Invalid filter delegate.");if(o&&a instanceof o2&&n0(a.onChange))if(!O(t.filterDebounceTime)||O2(t.filterDebounceTime)){let s=O(t.filterDebounceTime)?t.filterDebounceTime:_.numbers.DEFAULT_FILTER_DEBOUNCE_TIME;a.onChange(Ne(r=>o(r,e),s))}else a.onChange(s=>o(s,e));return a.element}static _getFilterRowElement(t){if(t)return Array.from(t.rows).find(e=>e.classList.contains(_.classes.TABLE_HEAD_ROW_FILTER))}static async expandRow(t,e,o){let a=t.tableElement.tBodies[0],r=n._getNonExpandedRows(a.rows)[e];r.classList.add(_.classes.TABLE_ROW_EXPANDED);let l=Array.from(a.rows).indexOf(r),h=a.insertRow(l+1);H1([_.classes.TABLE_ROW,_.classes.TABLE_BODY_ROW,_.classes.TABLE_ROW_EXPANDABLE_CONTENT],h);let v=h.insertCell();v.setAttribute("colspan",r.cells.length.toString()),v.classList.add(_.classes.TABLE_ROW_EXPANDABLE_CONTENT_CELL);let m=document.createElement("div"),u=document.createElement(D1.elementName);u.appendChild(m),v.appendChild(u);let H=o;if(n0(o)){let x=t.data[e]?t.data[e].data:void 0,C=o(e,m,x);try{let E=await Promise.resolve(C);H=rm(E)?E.content:E}catch(E){console.error("Failed to load row template "+E.message),H=""}}H&&n._setRowTemplate(m,H),window.requestAnimationFrame(()=>u.open=!0)}static _setRowTemplate(t,e){Ut(e)?t.innerHTML=e:t.appendChild(e)}static collapseRow(t,e){if(!t.tableElement||!t.tableElement.tBodies.length||!t.tableElement.tBodies[0].rows.length)return Promise.resolve();let o=t.tableElement.tBodies[0],s=n._getNonExpandedRows(o.rows)[e],r=Array.from(o.rows).indexOf(s);if(s&&s.classList.contains(_.classes.TABLE_ROW_EXPANDED)){let l=o.rows[r+1],h=l.querySelector(D1.elementName);if(h&&h.open){let v=new Promise(m=>{h.addEventListener(D1.events.ANIMATION_COMPLETE,()=>{s.classList.remove(_.classes.TABLE_ROW_EXPANDED),Fe(l),m()},{once:!0})});return h.open=!1,v}}return Promise.resolve()}static isRowExpanded(t,e){let o=t.tableElement.tBodies[0],s=n._getNonExpandedRows(o.rows)[e];return s&&s.classList.contains(_.classes.TABLE_ROW_EXPANDED)}static setFixedHeaders(t){t.fixedHeaders?t.tableElement.classList.add(_.classes.TABLE_FIXED):t.tableElement.classList.remove(_.classes.TABLE_FIXED)}static setLayoutType(t){t.layoutType==="fixed"?t.tableElement.classList.add(_.classes.TABLE_LAYOUT_FIXED):t.tableElement.classList.remove(_.classes.TABLE_LAYOUT_FIXED)}static normalizeColumnWidths(t){let e=t.tableElement;if(e.tHead&&e.tHead.rows.length){let o=Array.from(e.tHead.rows[0].cells);for(let a of o){let s=getComputedStyle(a).width;a.style.width&&a.style.width!==s&&(a.style.width=s)}}}static setColumnResizeIndicatorVisibility(t,e,o){let a=t.tableElement;if(a.tHead&&a.tHead.rows.length){let s=Array.from(a.tHead.rows);for(let r of s){let l=r.cells[e];l&&(o?l.classList.add(_.classes.TABLE_CELL_RESIZABLE):l.classList.remove(_.classes.TABLE_CELL_RESIZABLE))}}if(a.tBodies.length){let s=Array.from(a.tBodies[0].rows);for(let r of s){let l=r.cells[e];l&&(o?l.classList.add(_.classes.TABLE_CELL_RESIZABLE):l.classList.remove(_.classes.TABLE_CELL_RESIZABLE))}}}static setRowClickListeners(t,e,o,a){let s=t.tBodies[0];s&&(e?n._attachRowClickListeners(s,o,a):n._detachRowClickListeners(s,o,a))}static setRowClickAttributes(t,e){let o=t.tBodies[0];o&&(e?n._addRowClickAttributes(o):n._removeRowClickAttributes(o))}static getOwnerDocument(t){return t.ownerDocument||document}static _prepend(t,e){let o=e.childNodes.item(0);o?e.insertBefore(t,o):e.appendChild(t)}static _isMac(){return!!(navigator&&navigator.platform&&navigator.platform.substr(0,3)==="Mac")}static _renderSelectAllTemplate(t,e){return Promise.resolve(t()).then(o=>{let a=e.rows.item(e.rows.length-1);if(!a)return;let s=a.cells.item(0);o&&s&&(typeof o=="string"?s.innerHTML=o:o instanceof HTMLElement&&s.appendChild(o),s.setAttribute(_.attributes.CUSTOM_CELL_TEMPLATE,""))})}};var A4=class extends I{constructor(t){super(t)}initialize(){this._tableElement||(this._tableElement=document.createElement("table"),this._tableElement.classList.add(_.classes.TABLE),this._component.children.length&&n2(this._component),this._component.appendChild(this._tableElement))}getTableElement(){return this._tableElement||this.initialize(),this._tableElement}createTable(t){return A1.createTable(t)}recreateTableBody(t){A1.recreateTableBody(t)}setSelectedRows(t,e,o,a,s=!1){A1.setSelectedRows(t,e,o,a,s)}clearSelectedRows(t){A1.clearSelectedRows(t)}updateSelectedState(t,e){A1.updateSelectedState(t,e)}updateSelectAllState(t,e,o){A1.updateSelectAllState(t,e,o)}setSortedColumn(t,e,o){A1.setSortedColumn(t,e,o)}removeColumnSort(t,e){A1.removeColumnSort(t,e)}setSortDirection(t,e,o){A1.setSortDirection(t,e,o)}setSelectColumnVisibility(t,e,o,a,s,r,l,h,v){A1.setSelectColumnVisibility(t,e,o,a||null,s||null,r||null,l||[],h||null,v||null)}setDense(t,e){A1.setDenseState(t,e)}setRoomy(t,e){A1.setRoomyState(t,e)}setResizable(t){A1.setResizable(t)}setSelectAllVisibility(t,e,o,a,s,r=null){A1.setSelectAllVisibility(t,e,o,a,s||null,r||null)}setFilterRow(t){A1.setFilterRow(t)}expandRow(t,e,o){return A1.expandRow(t,e,o)}collapseRow(t,e){return A1.collapseRow(t,e)}isRowExpanded(t,e){return A1.isRowExpanded(t,e)}setFixedHeaders(t){A1.setFixedHeaders(t)}setTableLayoutType(t){A1.setLayoutType(t)}setWrapContentState(t){A1.setWrapContentState(t.tableElement,t.wrapContent)}addDocumentListener(t,e){A1.getOwnerDocument(this._component).addEventListener(t,e)}removeDocumentListener(t,e){A1.getOwnerDocument(this._component).removeEventListener(t,e)}normalizeColumnWidths(t){A1.normalizeColumnWidths(t)}setResizeColumnVisibility(t,e,o){A1.setColumnResizeIndicatorVisibility(t,e,o)}addTableClass(t){H1(t,this._tableElement)}removeTableClass(t){ye(t,this._tableElement)}setRowClickListeners(t,e,o,a){A1.setRowClickListeners(t,e,o,a)}setRowClickAttributes(t,e){A1.setRowClickAttributes(t,e)}};var T4=class{constructor(){this._sortedColumns=[]}get sortedColumns(){return[...this._sortedColumns.map(t=>d({},t))]}addSortColumn(t){this._sortedColumns.push(d({},t)),this._updateSortNumbers()}updateSortColumn(t){let e=this._sortedColumns.find(o=>o.columnIndex===t.columnIndex);if(e)switch(e.direction){case"ASC":this.removeSortColumn(t);break;case"DESC":e.direction="ASC";break;case"UNSET":e.direction="DESC";break}}setSortColumns(t){this._sortedColumns=[...t.map(e=>d({},e))]}removeSortColumn(t){typeof t=="number"?this._sortedColumns.splice(t,1):this._sortedColumns.splice(this._sortedColumns.indexOf(t),1),this._updateSortNumbers()}isSortColumn(t){return typeof t=="number"?this._sortedColumns.some(e=>e.columnIndex===t):this._sortedColumns.includes(t)}clearMultiSort(){this._sortedColumns=[]}getSortColumn(t){return this._sortedColumns.find(e=>e.columnIndex===t)}_updateSortNumbers(){this._sortedColumns.every(t=>typeof t.sortOrder=="number")&&this._sortedColumns.sort((t,e)=>t.sortOrder-e.sortOrder),this._sortedColumns.forEach((t,e)=>t.sortOrder=e+1)}};var S4=class{constructor(t,e=!1){this.data=t;this.selected=e}};var k4=class{constructor(t){this._adapter=t;this._tableRows=[];this._data=[];this._columnConfigurations=[];this._select=!1;this._multiselect=!0;this._dense=!1;this._roomy=!1;this._filter=!1;this._fixedHeaders=!1;this._layoutType=_.strings.DEFAULT_LAYOUT_TYPE;this._wrapContent=!0;this._resizable=!1;this._minResizeWidth=_.numbers.MIN_RESIZE_WIDTH;this._multiColumnSort=!1;this._selectCheckboxAlignment="center";this._isAllSelected=!1;this._sortedColumnIndex=-1;this._rendered=!1;this._allowRowClick=!1;this._multiSortManager=new T4;this._rowClickListener=e=>this._onRowClick(e),this._rowDoubleClickListener=e=>this._onRowDoubleClick(e),this._selectRowListener=e=>this._onRowSelected(e),this._selectAllListener=e=>this._onSelectAll(e),this._sortableHeadCellKeydownListener=e=>this._onSortableHeadCellKeydown(e),this._headRowMouseDownListener=e=>this._onHeadRowMouseDown(e),this._headRowContextMenuListener=e=>this._onHeadRowContextMenu(e),this._documentMouseMoveListener=e=>this._onMouseMove(e),this._documentMouseUpListener=e=>this._onMouseUp(e),this._filterListener=(e,o)=>this._onFilter(e,o),this._selectionManager=new $a(this._selectKey),this._hiddenColumnManager=new $a}initialize(){this._adapter.initialize(),this._adapter.setHostAttribute(_.attributes.SELECT,this._select.toString()),this._adapter.setHostAttribute(_.attributes.MULTISELECT,this._multiselect.toString()),this._adapter.setHostAttribute(_.attributes.DENSE,this._dense.toString()),this._adapter.setHostAttribute(_.attributes.ROOMY,this._roomy.toString()),this._adapter.setHostAttribute(_.attributes.FILTER,this._filter.toString()),this._adapter.emitHostEvent(_.events.INITIALIZED,void 0,!1)}destroy(){this._resizeDescriptor=void 0,this._adapter.removeDocumentListener("mousemove",this._documentMouseMoveListener),this._adapter.removeDocumentListener("mouseup",this._documentMouseUpListener)}set data(t){Array.isArray(t)&&t.length>0?vt(t[0])?this._data=t.map(e=>d({},e)):this._data=[...t]:this._data=[],this._tableRows=this._data.map(e=>new S4(e,this._selectionManager.exists(e))),this._renderBody()}get data(){return this._data.map(t=>d({},t))}set columnConfigurations(t){this._columnConfigurations=t.map(e=>d({},e)),this._hiddenColumnManager.clear(),this._columnConfigurations.forEach(e=>{e.hidden&&this._hiddenColumnManager.add(e)}),this._refreshTableSort(),this.render()}get columnConfigurations(){return this._columnConfigurations.map(t=>d({},t))}get _visibleColumnConfigurations(){return this._columnConfigurations.filter(t=>!this._hiddenColumnManager.exists(t))}get _tableConfiguration(){return{tableElement:this._adapter.getTableElement(),columnConfigurations:this._visibleColumnConfigurations,data:this._tableRows,clickListener:this._allowRowClick?this._rowClickListener:null,doubleClickListener:this._allowRowClick?this._rowDoubleClickListener:null,selectListener:this._select?this._selectRowListener:null,selectAllListener:this._multiselect?this._selectAllListener:null,sortableHeadCellKeydownListener:this._sortableHeadCellKeydownListener,headRowMouseDownListener:this._headRowMouseDownListener,headRowContextMenuListener:this._headRowContextMenuListener,filterListener:this._filter?this._filterListener:null,sortDirection:this._sortDirection,sortedColumn:this._sortedColumnIndex,multiColumnSort:this._multiColumnSort,filter:this._filter,wrapContent:this._wrapContent,fixedHeaders:this._fixedHeaders,layoutType:this._layoutType,dense:this._dense,resizable:this._resizable,rowCreatedCallback:this._rowCreatedCallback,cellCreatedCallback:this._cellCreatedCallback,selectAllTemplate:this._selectAllTemplate,selectCheckboxAlignment:this._selectCheckboxAlignment,tooltipSelect:this._tooltipSelect,tooltipSelectAll:this._tooltipSelectAll}}set select(t){this._select!==t&&(this._select=t,this._adapter.setSelectColumnVisibility(this._adapter.getTableElement(),this._select,this._selectRowListener,this._multiselect?this._selectAllListener:void 0,this._multiselect?this._selectAllTemplate:null,this._selectCheckboxAlignment,this._tableRows,this._tooltipSelect,this._tooltipSelectAll),this._updateSelections(!0),this._select?this._adapter.setHostAttribute(_.attributes.SELECT,this._select.toString()):this._adapter.removeHostAttribute(_.attributes.SELECT))}get select(){return this._select}set multiselect(t){this._multiselect!==t&&(this._multiselect=t,this._select&&(this._adapter.setSelectAllVisibility(this._adapter.getTableElement(),this._multiselect,this._multiselect?this._selectAllListener:null,this._multiselect?this.selectAllTemplate:null,this._selectCheckboxAlignment,this._tooltipSelectAll),this._updateSelections(!0)),this._adapter.setHostAttribute(_.attributes.MULTISELECT,this._multiselect.toString()))}get multiselect(){return this._multiselect}get selectKey(){return Array.isArray(this._selectKey)?[...this._selectKey]:this._selectKey}set selectKey(t){this._originalSelectKey!==t&&(Array.isArray(t)?(this._originalSelectKey=[...t],this._selectKey=[...t]):(this._originalSelectKey=t,this._selectKey=[t]),this._selectionManager.setKey(this._selectKey),this._updateSelections(!1))}get dense(){return this._dense}set dense(t){this._dense!==t&&(this._dense=t,this._adapter.setDense(this._adapter.getTableElement(),this._dense),this._adapter.setHostAttribute(_.attributes.DENSE,this._dense.toString()))}get roomy(){return this._roomy}set roomy(t){t!==this._roomy&&(this._roomy=t,this._applyRoomy())}set filter(t){this._filter!==t&&(this._filter=t,this._adapter.setFilterRow(this._tableConfiguration),this._adapter.setHostAttribute(_.attributes.FILTER,this._filter.toString()))}get filter(){return this._filter}set fixedHeaders(t){this._fixedHeaders!==t&&(this._fixedHeaders=t,this._adapter.setFixedHeaders(this._tableConfiguration))}get fixedHeaders(){return this._fixedHeaders}get layoutType(){return this._layoutType}set layoutType(t){this._layoutType!==t&&(this._layoutType=t,this._adapter.setTableLayoutType(this._tableConfiguration))}get wrapContent(){return this._wrapContent}set wrapContent(t){this._wrapContent!==t&&(this._wrapContent=t,this._adapter.setWrapContentState(this._tableConfiguration))}get resizable(){return this._resizable}set resizable(t){this._resizable!==t&&(this._resizable=t,this._adapter.setResizable(this._tableConfiguration))}get minResizeWidth(){return this._minResizeWidth}set minResizeWidth(t){this._minResizeWidth!==t&&(this._minResizeWidth=t,O2(this._minResizeWidth)?this._minResizeWidth<0&&(this._minResizeWidth=0):this._minResizeWidth=_.numbers.MIN_RESIZE_WIDTH)}get allowRowClick(){return this._allowRowClick}set allowRowClick(t){this._allowRowClick!==t&&(this._allowRowClick=t,this._rendered&&(this._adapter.setRowClickListeners(this._adapter.getTableElement(),this._allowRowClick,this._rowClickListener,this._rowDoubleClickListener),this._adapter.setRowClickAttributes(this._adapter.getTableElement(),this._allowRowClick)))}get multiColumnSort(){return this._multiColumnSort}set multiColumnSort(t){t!==this._multiColumnSort&&(this._multiColumnSort=t,this._refreshTableSort(),this.render())}get selectCheckboxAlignment(){return this._selectCheckboxAlignment}set selectCheckboxAlignment(t){t!==this._selectCheckboxAlignment&&(this._selectCheckboxAlignment=t,this._adapter.setHostAttribute(_.attributes.SELECT_CHECKBOX_ALIGNMENT,t),this.render())}get tooltipSelect(){return this._tooltipSelect}set tooltipSelect(t){t!==this._tooltipSelect&&(this._tooltipSelect=t,typeof t=="string"&&this._adapter.setHostAttribute(_.attributes.TOOLTIP_SELECT,t),this.render())}get tooltipSelectAll(){return this._tooltipSelectAll}set tooltipSelectAll(t){t!==this._tooltipSelectAll&&(this._tooltipSelectAll=t,this._adapter.setHostAttribute(_.attributes.TOOLTIP_SELECT_ALL,t),this.render())}get selectAllTemplate(){return this._selectAllTemplate}set selectAllTemplate(t){t!==this._selectAllTemplate&&(this._selectAllTemplate=t,this.render())}get rowCreated(){return this._rowCreatedCallback}set rowCreated(t){this._rowCreatedCallback=t}get cellCreated(){return this._cellCreatedCallback}set cellCreated(t){this._cellCreatedCallback=t}isRowSelected(t){let e=xo(Array.isArray(this._selectKey)?this._selectKey:[this._selectKey],t);return this.selectKey?!!this._selectionManager.getItems().find(o=>Xn(o,e)):this._selectionManager.exists(t)}getSelectedRows(){return this._selectionManager.getItems()}selectRows(t,e){if(!this._selectKey)throw new Error("You must set a selectKey to select rows.");(!this._multiselect||e)&&this.clearSelections(),t&&t.length&&(this._selectionManager.add(t),this._updateSelections(!e))}deselectRows(t){t&&t.length&&(this._selectionManager.remove(t),this._updateSelections(!1))}clearSelections(){let t=this._adapter.getTableElement();this._selectionManager.clear(),this._tableRows.forEach(e=>e.selected=!1),this._isAllSelected=!1,this._adapter.clearSelectedRows(t),this._select&&this._multiselect&&this._adapter.updateSelectAllState(t,!1)}hideColumn(t){let e=this._columnConfigurations[t];this._sortedColumnIndex===t&&(this._sortedColumnIndex=-1),this._hiddenColumnManager.exists(e)||(this._hiddenColumnManager.add(e),this.render())}showColumn(t){let e=this._columnConfigurations[t];this._hiddenColumnManager.exists(e)&&(this._hiddenColumnManager.remove(e),this.render())}isColumnHidden(t){let e=this._columnConfigurations[t];return!!e&&this._hiddenColumnManager.exists(e)}render(){this._adapter.emitHostEvent(_.events.BEFORE_BODY_RENDERED,void 0,!1),this._adapter.createTable(this._tableConfiguration),this._renderSelections(),this._rendered=!0,this._adapter.emitHostEvent(_.events.BODY_RENDERED,void 0,!1)}_renderBody(){this._rendered&&(this._adapter.emitHostEvent(_.events.BEFORE_BODY_RENDERED,void 0,!1),this._adapter.recreateTableBody(this._tableConfiguration),this._renderSelections(),this._adapter.emitHostEvent(_.events.BODY_RENDERED,void 0,!1))}_renderSelections(){this.select&&(this._isAllSelected=this._getSelectAllState(),this._multiselect&&this._adapter.updateSelectAllState(this._adapter.getTableElement(),this._isAllSelected,this._isIndeterminate(this._isAllSelected)));let t=this._selectionManager.getItems();t.length&&this._adapter.setSelectedRows(this._adapter.getTableElement(),this._selectKey,this._data,t,!1)}expandRow(t,e){if(!this._rendered)throw new Error("Cannot expand a row before the table has rendered.");if(t<0||t>this._tableRows.length)throw new Error(`Invalid row index: ${t}.`);return this._adapter.expandRow(this._tableConfiguration,t,e)}collapseRow(t){return!this._rendered||t<0||t>this._tableRows.length?Promise.resolve():this._adapter.collapseRow(this._tableConfiguration,t)}isRowExpanded(t){return this._adapter.isRowExpanded(this._tableConfiguration,t)}selectRowsByIndex(t,e){let o=t.map(a=>this._data[a]).filter(a=>!!a);this.selectRows(o,!e)}deselectRowsByIndex(t){let e=t.map(o=>this._data[o]).filter(o=>!!o);this.deselectRows(e)}_getSelectAllState(){return this._tableRows.length>0&&this._tableRows.every(t=>t.selected)}_updateSelections(t){this._tableRows.forEach(o=>o.selected=this._selectionManager.exists(o.data));let e=this._getSelectAllState();this._adapter.setSelectedRows(this._adapter.getTableElement(),this._selectKey,this._data,this._selectionManager.getItems(),t),(e!==this._isAllSelected||this._isIndeterminate(e))&&(this._isAllSelected=e,this._multiselect&&this._adapter.updateSelectAllState(this._adapter.getTableElement(),this._isAllSelected,this._isIndeterminate(this._isAllSelected)))}_onRowClick(t){if(t.stopImmediatePropagation(),t.target.matches(`[${_.attributes.SELECT_CHECKBOX}]`))return;let a=C2(t).filter(v=>v.nodeType===1).find(v=>v.hasAttribute(_.attributes.CUSTOM_CELL_TEMPLATE));if(a&&a.hasAttribute(_.attributes.CUSTOM_CELL_TEMPLATE_STOP_PROPAGATION))return;let{index:r,data:l}=this._getSelectedRowFromEvent(t),h={index:r,data:l};this._adapter.emitHostEvent(_.events.ROW_CLICK,h,!0,!1)}_onRowDoubleClick(t){if(t.stopPropagation(),t.target.matches(`[${_.attributes.SELECT_CHECKBOX}]`))return;let e=this._getSelectedRowFromEvent(t),o={index:e.index,data:e.data};this._adapter.emitHostEvent(_.events.SELECT_DOUBLE,o,!0,!1)}_onRowSelected(t){var r;if(t.type==="change"){t.preventDefault();return}if(t.type==="keydown"&&t.key!==" ")return;let e=this._getSelectedRowFromEvent(t);this._multiselect||this._tableRows.filter(h=>h.selected).forEach(h=>{Xn(h.data,xo(this._selectKey,e.data))||this.deselectRows([h.data])});let o=!this._selectionManager.exists(e.data);this._adapter.updateSelectedState(e.rowElement,o),o?this._selectionManager.add(e.data):this._selectionManager.remove(e.data),this._tableRows[e.index].selected=o;let a=[e.index],s=!1;if(this._multiselect){if(t.shiftKey&&this._previouslyClickedRow&&((r=document.getSelection())==null||r.removeAllRanges(),a=this._shiftSelectRows(e),a.includes(this._previouslyClickedRow.index))){let h=a.indexOf(this._previouslyClickedRow.index);a.splice(h,1)}s=this._getSelectAllState(),this._adapter.updateSelectAllState(this._adapter.getTableElement(),s,this._isIndeterminate(s))}for(let l of a){let h=this._tableRows[l].data,m={selected:this._selectionManager.exists(h),index:l,data:h};this._adapter.emitHostEvent(_.events.SELECT,m,!0,!1)}if(this._isAllSelected!==s){this._isAllSelected=s;let l={status:this._isAllSelected,count:this._tableRows.filter(h=>h.selected).length,data:[...this._data],targetType:"row"};this._adapter.emitHostEvent(_.events.SELECT_ALL,l,!0,!1)}this._previouslyClickedRow=d({},e)}_getSelectedRowFromEvent(t){let o=C2(t).find(l=>l.tagName==="TR"),a=o.parentElement,s=this._getNonExpandedRows(a).findIndex(l=>l===o),r=this._tableRows[s].data;return{rowElement:o,index:s,data:r}}_getNonExpandedRows(t){return Array.from(t.rows).filter(e=>!e.classList.contains(_.classes.TABLE_ROW_EXPANDABLE_CONTENT))}_onSelectAll(t){t.stopPropagation(),this._isAllSelected=!this._isAllSelected;let e=this._adapter.getTableElement();this._adapter.updateSelectAllState(e,this._isAllSelected),this._tableRows.forEach((a,s)=>{a.selected=this._isAllSelected,this._isAllSelected?this._selectionManager.add(a.data):this._selectionManager.remove(a.data);let r=A1.getRowByIndex(e,s);r&&this._adapter.updateSelectedState(r,this._isAllSelected)});let o={status:this._isAllSelected,count:this._tableRows.filter(a=>a.selected).length,data:[...this._data],targetType:"select-all"};this._adapter.emitHostEvent(_.events.SELECT_ALL,o,!0,!1)}_onHeadRowContextMenu(t){t.ctrlKey&&t.preventDefault()}_onHeadRowMouseDown(t){if(t.button!==0)return;let e=C2(t),o=t.target,a=e.find(l=>l.tagName==="TR"),s=e.find(l=>l.tagName==="TH"),r=Array.from(a.cells).findIndex(l=>l===s);this._headCellMouseDownIndex=r,o!==s&&o.classList.contains(_.classes.TABLE_RESIZE_HANDLE)&&(this._resizeDescriptor={element:s,startWidth:s.offsetWidth,startX:t.pageX,width:s.offsetWidth,index:this._select?r-1:r},this._adapter.addDocumentListener("mousemove",this._documentMouseMoveListener),this._adapter.setResizeColumnVisibility(this._tableConfiguration,r,!0)),this._adapter.addDocumentListener("mouseup",this._documentMouseUpListener)}_onMouseMove(t){if(this._resizeDescriptor){let e=this._resizeDescriptor.startWidth+(t.pageX-this._resizeDescriptor.startX);e<this._minResizeWidth&&(e=this._minResizeWidth),this._resizeDescriptor.width=e,this._resizeDescriptor.element.style.width=`${e}px`,this._adapter.addTableClass(_.classes.TABLE_RESIZING)}}_onMouseUp(t){if(this._adapter.removeDocumentListener("mousemove",this._documentMouseMoveListener),this._adapter.removeDocumentListener("mouseup",this._documentMouseUpListener),this._adapter.removeTableClass(_.classes.TABLE_RESIZING),this._headCellMouseDownIndex!==void 0){if(this._resizeDescriptor){this._adapter.normalizeColumnWidths(this._tableConfiguration),this._adapter.setResizeColumnVisibility(this._tableConfiguration,this._headCellMouseDownIndex,!1);let e={index:this._resizeDescriptor.index,width:this._resizeDescriptor.width};this._adapter.emitHostEvent(_.events.COLUMN_RESIZE,e),this._resizeDescriptor=void 0}else this._tableConfiguration.tableElement.tHead.contains(t.target)&&(this._multiColumnSort?this._onMultiSort(this._headCellMouseDownIndex,t.ctrlKey):this._onSort(this._headCellMouseDownIndex));this._headCellMouseDownIndex=void 0}}_onSortableHeadCellKeydown(t){if(t.key===" "||t.key==="Enter"){let e=C2(t),o=e.find(r=>r.tagName==="TR"),a=e.find(r=>r.tagName==="TH"),s=Array.from(o.cells).findIndex(r=>r===a);this._onSort(s)}}_onSort(t){let e=this._select?t-1:t,o=e>=0?this._visibleColumnConfigurations[e]:null;if(!o||!o.sortable)return;let a="ASC",s=e===this._sortedColumnIndex,r=this._sortDirection==="ASC"||this._sortDirection===void 0,l=s&&this._sortDirection==="DESC";s&&r&&(a="DESC"),l&&!o.preventUnsort&&(a="UNSET");let h={direction:a,columnIndex:e};if(this._adapter.emitHostEvent(_.events.SORT,h,!0,!0)){if(s&&this._sortDirection==="DESC"&&!o.preventUnsort){this._adapter.removeColumnSort(this._adapter.getTableElement(),this._select?this._sortedColumnIndex+1:this._sortedColumnIndex),this._sortedColumnIndex=-1;return}this._sortDirection=a,e===this._sortedColumnIndex?this._adapter.setSortDirection(this._adapter.getTableElement(),t,this._sortDirection):(this._sortedColumnIndex>=0&&this._adapter.removeColumnSort(this._adapter.getTableElement(),this._select?this._sortedColumnIndex+1:this._sortedColumnIndex),this._sortedColumnIndex=e,this._adapter.setSortedColumn(this._adapter.getTableElement(),t,this._sortDirection))}}_onMultiSort(t,e){let o=this._select?t-1:t,a=o>=0?this._visibleColumnConfigurations[o]:null;if(!a||!a.sortable)return;let s=this._multiSortManager.sortedColumns,r=this._multiSortManager.getSortColumn(o);r?this._multiSortManager.updateSortColumn(r):e?this._multiSortManager.addSortColumn({direction:"DESC",columnIndex:o,propertyName:a.property}):(this._multiSortManager.clearMultiSort(),this._multiSortManager.addSortColumn({direction:"DESC",columnIndex:o,propertyName:a.property}));let l=this._multiSortManager.sortedColumns.map(m=>d({},m));if(!this._adapter.emitHostEvent(_.events.SORT,l,!0,!0)){this._multiSortManager.setSortColumns(s);return}let v=this._multiSortManager.sortedColumns.length>1;for(let m=0;m<this._visibleColumnConfigurations.length;m++){let u=this._select?m+1:m;if(!this._multiSortManager.isSortColumn(m))this._adapter.removeColumnSort(this._adapter.getTableElement(),u),A1.setMultiSortColumnSortNumber(this._adapter.getTableElement(),v,u,null);else{let H=this._multiSortManager.getSortColumn(m);H&&(this._adapter.setSortedColumn(this._adapter.getTableElement(),u,H.direction),A1.setMultiSortColumnSortNumber(this._adapter.getTableElement(),v,u,H.sortOrder||null))}}}_onFilter(t,e){let o={value:t,columnIndex:e};this._adapter.emitHostEvent(_.events.FILTER,o,!0,!1)}_shiftSelectRows(t){let e=[];if(this._previouslyClickedRow){let o=this._previouslyClickedRow.index,a=t.index,s=a>=o?o:a,r=a>=o?a:o;r+=r>s?1:0,s+=s>r?1:0;let l=m=>this.selectRows(m,!1),h=this._tableRows.find(m=>m.selected&&m.data===t.data),v=this._tableRows.find(m=>{var u;return m.data===((u=this._previouslyClickedRow)==null?void 0:u.data)&&!m.selected});(!h||v)&&(l=m=>this.deselectRows(m));for(let m=s;m<r;m++)e.push(m);l(this.data.filter((m,u)=>e.includes(u)))}return e}_isIndeterminate(t){return!t&&this.getSelectedRows().length>0&&this._data.length!==this.getSelectedRows().length}_applyRoomy(){this._adapter.setRoomy(this._adapter.getTableElement(),this._roomy),this._adapter.setHostAttribute(_.attributes.ROOMY,this._roomy.toString())}_refreshTableSort(){if(this._sortedColumnIndex=this._visibleColumnConfigurations.findIndex(t=>t.initialSort),this._sortedColumnIndex>=0&&this._sortDirection===void 0){let t=this._visibleColumnConfigurations[this._sortedColumnIndex];t.initialSort===!0&&t.sortDirection?this._sortDirection=t.sortDirection:typeof t.initialSort=="object"&&t.initialSort.direction&&(this._sortDirection=t.initialSort.direction)}if(this._multiColumnSort){let t=[];this._visibleColumnConfigurations.forEach((e,o)=>{typeof e.initialSort=="object"&&t.push({columnIndex:o,direction:e.initialSort.direction,sortOrder:e.initialSort.sortOrder,propertyName:e.property})}),this._multiSortManager.setSortColumns(t)}}};var X1=class extends M{static get observedAttributes(){return[_.attributes.SELECT,_.attributes.MULTISELECT,_.attributes.SELECT_KEY,_.attributes.DENSE,_.attributes.ROOMY,_.attributes.FILTER,_.attributes.FIXED_HEADERS,_.attributes.LAYOUT_TYPE,_.attributes.WRAP_CONTENT,_.attributes.RESIZABLE,_.attributes.MIN_RESIZE_WIDTH,_.attributes.ALLOW_ROW_CLICK,_.attributes.MULTI_COLUMN_SORT,_.attributes.SELECT_CHECKBOX_ALIGNMENT,_.attributes.TOOLTIP_SELECT,_.attributes.TOOLTIP_SELECT_ALL]}constructor(){super(),X.define(il),this._core=new k4(new A4(this))}initializedCallback(){this._core.initialize()}connectedCallback(){this._core.initialize()}disconnectedCallback(){this._core.destroy()}attributeChangedCallback(t,e,o){switch(t){case _.attributes.SELECT:this.select=p(o);break;case _.attributes.MULTISELECT:this.multiselect=p(o);break;case _.attributes.SELECT_KEY:this.selectKey=o;break;case _.attributes.DENSE:this.dense=p(o);break;case _.attributes.ROOMY:this.roomy=p(o);break;case _.attributes.FILTER:this.filter=p(o);break;case _.attributes.FIXED_HEADERS:this.fixedHeaders=p(o);break;case _.attributes.LAYOUT_TYPE:this.layoutType=o;break;case _.attributes.WRAP_CONTENT:this.wrapContent=p(o);break;case _.attributes.RESIZABLE:this.resizable=p(o);break;case _.attributes.MIN_RESIZE_WIDTH:this.minResizeWidth=K(o);break;case _.attributes.ALLOW_ROW_CLICK:this.allowRowClick=p(o);break;case _.attributes.MULTI_COLUMN_SORT:this.multiColumnSort=p(o);break;case _.attributes.SELECT_CHECKBOX_ALIGNMENT:this.selectCheckboxAlignment=this.getAttribute(_.attributes.SELECT_CHECKBOX_ALIGNMENT)||"center";break;case _.attributes.TOOLTIP_SELECT:this.tooltipSelect=o;break;case _.attributes.TOOLTIP_SELECT_ALL:this.tooltipSelectAll=o;break}}hideColumn(t){this._core.hideColumn(t)}showColumn(t){this._core.showColumn(t)}isColumnHidden(t){return this._core.isColumnHidden(t)}getSelectedRows(){return this._core.getSelectedRows()}selectRow(t){this._core.selectRows([t],!1)}selectRows(t,e=!1){this._core.selectRows(t,!e)}deselectRow(t){this._core.deselectRows([t])}deselectRows(t){this._core.deselectRows(t)}clearSelections(){this._core.clearSelections()}render(){this._core.render()}expandRow(t,e){return this._core.expandRow(t,e)}collapseRow(t){return this._core.collapseRow(t)}isRowExpanded(t){return this._core.isRowExpanded(t)}selectRowsByIndex(t,e){typeof t=="number"?this._core.selectRowsByIndex([t],e):Array.isArray(t)&&this._core.selectRowsByIndex(t,e)}deselectRowsByIndex(t){typeof t=="number"?this._core.deselectRowsByIndex([t]):Array.isArray(t)&&this._core.deselectRowsByIndex(t)}isRowSelected(t){return this._core.isRowSelected(t)}};i([c()],X1.prototype,"data",2),i([c()],X1.prototype,"columnConfigurations",2),i([c()],X1.prototype,"select",2),i([c()],X1.prototype,"multiselect",2),i([c()],X1.prototype,"selectKey",2),i([c()],X1.prototype,"tooltipSelect",2),i([c()],X1.prototype,"tooltipSelectAll",2),i([c()],X1.prototype,"dense",2),i([c()],X1.prototype,"roomy",2),i([c()],X1.prototype,"filter",2),i([c()],X1.prototype,"fixedHeaders",2),i([c()],X1.prototype,"layoutType",2),i([c()],X1.prototype,"wrapContent",2),i([c()],X1.prototype,"resizable",2),i([c()],X1.prototype,"minResizeWidth",2),i([c()],X1.prototype,"allowRowClick",2),i([c()],X1.prototype,"multiColumnSort",2),i([c()],X1.prototype,"rowCreated",2),i([c()],X1.prototype,"cellCreated",2),i([c()],X1.prototype,"selectAllTemplate",2),i([c()],X1.prototype,"selectCheckboxAlignment",2),X1=i([y({name:_.elementName,dependencies:[tt,j,at,m1]})],X1);function im(){f(X1)}var lm=`${b}tab-bar`,cm={DISABLED:"disabled",ACTIVE_TAB:"active-tab",VERTICAL:"vertical",STACKED:"stacked",CLUSTERED:"clustered",SECONDARY:"secondary",INVERTED:"inverted",AUTO_ACTIVATE:"auto-activate",SCROLL_BUTTONS:"scroll-buttons"},Pb=d({},cm),Nb={ROOT:".forge-tab-bar",SCROLL_CONTAINER:".scroll-container",DEFAULT_SLOT:"slot:not([name])"},Rb={SCROLL_BUTTON:"scroll-button"},Fb={CHANGE:`${lm}-change`},Ub={SCROLL_MARGIN:48},N1={elementName:lm,observedAttributes:cm,attributes:Pb,events:Fb,selectors:Nb,classes:Rb,numbers:Ub},f3=new Map([["default",new Set(["Home","End"])],["horizontal",new Set(["ArrowLeft","ArrowRight"])],["vertical",new Set(["ArrowUp","ArrowDown"])]]);var hm=`${b}tab`,vm={DISABLED:"disabled",SELECTED:"selected",VERTICAL:"vertical",STACKED:"stacked",SECONDARY:"secondary",INVERTED:"inverted"},Wb=d({},vm),Gb={INDICATOR:".indicator"},qb={},Yb={SELECT:`${hm}-select`},Kb={EASING:"cubic-bezier(0.4, 0, 0.2, 1)"},$b={ANIMATION_DURATION:250},K1={elementName:hm,observedAttributes:vm,attributes:Wb,selectors:Gb,classes:qb,events:Yb,strings:Kb,numbers:$b};var O4=class extends I{constructor(t){super(t),this._tabIndicatorElement=w(this._component,K1.selectors.INDICATOR),this._focusIndicatorElement=w(this._component,w1.elementName),this._stateLayerElement=w(this._component,I1.elementName)}initialize(){this._component.tabIndex=this._component.selected?0:-1,this._component.setAttribute("role","tab"),this._component.setAttribute("aria-selected",this._component.selected?"true":"false")}activateFocusIndicator(){this._focusIndicatorElement.active=!0}addInteractionListener(t,e){this._component.addEventListener(t,e)}setDisabled(t){this._stateLayerElement.disabled=t,this._component.tabIndex=t?-1:this._component.selected?0:-1,this._component.setAttribute("aria-disabled",String(t)),G(this._component,t,K1.attributes.DISABLED,String(t))}setSelected(t){this._component.tabIndex=t?0:-1,this._component.setAttribute("aria-selected",String(t))}animateSelected(){this._tabIndicatorElement.getAnimations().forEach(e=>e.cancel());let t=this._getKeyframes();t&&this._tabIndicatorElement.animate(t,{duration:K1.numbers.ANIMATION_DURATION,easing:K1.strings.EASING})}animateStateLayer(){this._stateLayerElement.playAnimation()}_getKeyframes(){var x;let t=window.matchMedia("(prefers-reduced-motion: reduce)").matches;if(!this._component.selected)return t?[{opacity:1},{transform:"none"}]:null;let e={},o=this._component.vertical,a=this._getSelectedTabIndicator(),s=(x=a==null?void 0:a.getBoundingClientRect())!=null?x:{},r=o?s.top:s.left,l=o?s.height:s.width,h=this._tabIndicatorElement.getBoundingClientRect(),v=o?h.top:h.left,m=o?h.height:h.width,u=o?"Y":"X",H=l/m;return!t&&r!==void 0&&v!==void 0&&!isNaN(H)?e.transform=`translate${u}(${(r-v).toFixed(4)}px) scale${u}(${H.toFixed(4)})`:e.opacity=0,[e,{transform:"none"}]}_getSelectedTabIndicator(){let t=N3(this._component,N1.elementName);if(t){let o=Array.from(t.querySelectorAll(K1.elementName)).find(a=>a.hasAttribute(K1.attributes.SELECTED));if(o)return w(o,K1.selectors.INDICATOR)}return null}};var D4=class{constructor(t){this._adapter=t;this._selected=!1;this._disabled=!1;this._vertical=!1;this._stacked=!1;this._secondary=!1;this._inverted=!1;this._clickListener=()=>this._onClick(),this._keydownListener=e=>this._onKeydown(e)}initialize(){this._adapter.initialize(),this._adapter.addInteractionListener("click",this._clickListener),this._adapter.addInteractionListener("keydown",this._keydownListener)}setFocus(t){t!=null&&t.focusVisible&&this._adapter.activateFocusIndicator()}_onClick(){this._disabled||this._selected||this._dispatchSelectEvent()}_onKeydown(t){if(this._disabled||this._selected)return;(t.key===" "||t.key==="Enter")&&(t.preventDefault(),this._adapter.animateStateLayer(),this._dispatchSelectEvent())}_dispatchSelectEvent(){this._adapter.dispatchHostEvent(new CustomEvent(K1.events.SELECT,{bubbles:!0,composed:!0}))}get disabled(){return this._disabled}set disabled(t){this._disabled!==t&&(this._disabled=t,this._adapter.setDisabled(this._disabled),this._adapter.toggleHostAttribute(K1.attributes.DISABLED,this._disabled))}get selected(){return this._selected}set selected(t){this._selected!==t&&(this._selected=t,this._adapter.setSelected(this._selected),this._adapter.animateSelected(),this._adapter.toggleHostAttribute(K1.attributes.SELECTED,this._selected))}get vertical(){return this._vertical}set vertical(t){this._vertical!==t&&(this._vertical=t,this._adapter.toggleHostAttribute(K1.attributes.VERTICAL,this._vertical))}get stacked(){return this._stacked}set stacked(t){this._stacked!==t&&(this._stacked=t,this._adapter.toggleHostAttribute(K1.attributes.STACKED,this._stacked))}get secondary(){return this._secondary}set secondary(t){this._secondary!==t&&(this._secondary=t,this._adapter.toggleHostAttribute(K1.attributes.SECONDARY,this._secondary))}get inverted(){return this._inverted}set inverted(t){this._inverted!==t&&(this._inverted=t,this._adapter.toggleHostAttribute(K1.attributes.INVERTED,this._inverted))}};var Xb='<template><div class="forge-tab" part="container"><span class="content" part="content"><slot name="start"><slot name="leading"></slot></slot><span class="label" part="label"><slot></slot></span><slot name="end"><slot name="trailing"></slot></slot><span class="indicator" part="indicator"></span></span><forge-state-layer exportparts="surface:state-layer" target=":host"></forge-state-layer><forge-focus-indicator part="focus-indicator" target=":host" inward></forge-focus-indicator></div></template>',Zb=':host{display:inline-flex;outline:0;-webkit-tap-highlight-color:transparent;vertical-align:middle}:host([hidden]){display:none}.forge-tab{--_tab-active-color:var(--forge-tab-active-color, var(--forge-theme-primary, #3f51b5));--_tab-inactive-color:var(--forge-tab-inactive-color, var(--forge-theme-text-medium, rgba(0, 0, 0, 0.6)));--_tab-height:var(--forge-tab-height, 48px);--_tab-stacked-height:var(--forge-tab-stacked-height, 64px);--_tab-padding-block:var(--forge-tab-padding-block, 0);--_tab-padding-inline:var(--forge-tab-padding-inline, 0);--_tab-disabled-opacity:var(--forge-tab-disabled-opacity, 0.38);--_tab-indicator-color:var(--forge-tab-indicator-color, var(--_tab-active-color));--_tab-indicator-height:var(--forge-tab-indicator-height, 3px);--_tab-indicator-shape:var(--forge-tab-indicator-shape, 3px 3px 0 0);--_tab-vertical-indicator-shape:var(--forge-tab-vertical-indicator-shape, 3px 0 0 3px);--_tab-secondary-indicator-height:var(--forge-tab-secondary-indicator-height, 2px);--_tab-secondary-indicator-shape:var(--forge-tab-secondary-indicator-shape, 0);--_tab-inverted-indicator-shape:var(--forge-tab-inverted-indicator-shape, 0 0 3px 3px);--_tab-vertical-inverted-indicator-shape:var(--forge-tab-vertical-inverted-indicator-shape, 0 3px 3px 0);--_tab-container-color:var(--forge-tab-container-color, transparent);--_tab-container-height:var(--forge-tab-container-height, var(--_tab-height));--_tab-container-shape:var(--forge-tab-container-shape, 0);--_tab-content-height:var(--forge-tab-content-height, var(--_tab-height));--_tab-content-spacing:var(--forge-tab-content-spacing, var(--forge-spacing-xsmall, 8px));--_tab-content-padding:var(--forge-tab-content-padding, var(--forge-spacing-xxsmall, 4px));--_tab-content-padding-block:var(--forge-tab-content-padding-block, var(--_tab-content-padding));--_tab-content-padding-inline:var(--forge-tab-content-padding-inline, var(--forge-spacing-medium, 16px));--_tab-content-padding-inline-secondary:var(--forge-tab-content-padding-inline-secondary, var(--forge-spacing-medium, 16px));--_tab-active-focus-icon-color:var(--forge-tab-active-focus-icon-color, var(--_tab-active-color));--_tab-active-hover-icon-color:var(--forge-tab-active-hover-icon-color, var(--_tab-active-color));--_tab-active-icon-color:var(--forge-tab-active-icon-color, var(--_tab-active-color));--_tab-active-pressed-icon-color:var(--forge-tab-active-pressed-icon-color, var(--_tab-active-color));--_tab-icon-size:var(--forge-tab-icon-size, 24px);--_tab-focus-icon-color:var(--forge-tab-focus-icon-color, var(--_tab-inactive-color));--_tab-hover-icon-color:var(--forge-tab-hover-icon-color, var(--_tab-inactive-color));--_tab-icon-color:var(--forge-tab-icon-color, var(--_tab-inactive-color));--_tab-pressed-icon-color:var(--forge-tab-pressed-icon-color, var(--_tab-inactive-color));--_tab-active-focus-label-text-color:var(--forge-tab-active-focus-label-text-color, var(--_tab-active-color));--_tab-active-hover-label-text-color:var(--forge-tab-active-hover-label-text-color, var(--_tab-active-color));--_tab-active-label-text-color:var(--forge-tab-active-label-text-color, var(--_tab-active-color));--_tab-active-pressed-label-text-color:var(--forge-tab-active-pressed-label-text-color, var(--_tab-active-color));--_tab-focus-label-text-color:var(--forge-tab-focus-label-text-color, var(--_tab-inactive-color));--_tab-hover-label-text-color:var(--forge-tab-hover-label-text-color, var(--_tab-inactive-color));--_tab-label-text-color:var(--forge-tab-label-text-color, var(--_tab-inactive-color));--_tab-pressed-label-text-color:var(--forge-tab-pressed-label-text-color, var(--_tab-inactive-color))}.forge-tab{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-button-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-button-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-button-font-size-scale, .875)));font-weight:var(--forge-typography-button-font-weight,500);line-height:var(--forge-typography-button-line-height, normal);letter-spacing:var(--forge-typography-button-letter-spacing, .0714285714em);text-transform:var(--forge-typography-button-text-transform,inherit);text-decoration:var(--forge-typography-button-text-decoration,inherit);display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;border:none;outline:0;user-select:none;-webkit-appearance:none;vertical-align:middle;background:0 0;text-decoration:none;width:100%;position:relative;padding-block:var(--_tab-padding-block);padding-inline:var(--_tab-padding-inline);margin:0;z-index:0;background-color:var(--_tab-container-color);color:var(--_tab-label-text-color);min-height:var(--_tab-container-height)}.forge-tab::-moz-focus-inner{padding:0;border:0}.forge-tab ::slotted([slot=leading]),.forge-tab ::slotted([slot=trailing]){display:inline-flex;position:relative;writing-mode:horizontal-tb;fill:currentColor;color:var(--_tab-icon-color);font-size:var(--_tab-icon-size);width:var(--_tab-icon-size);height:var(--_tab-icon-size)}.forge-tab:hover{color:var(--_tab-hover-label-text-color);cursor:pointer}.forge-tab:hover ::slotted([slot=leading]),.forge-tab:hover ::slotted([slot=trailing]){color:var(--_tab-hover-icon-color)}.forge-tab .content{position:relative;box-sizing:border-box;display:inline-flex;flex-direction:row;align-items:center;justify-content:center;white-space:nowrap;transition:150ms color linear;max-height:calc(var(--_tab-content-height) + 2 * var(--_tab-content-padding-block));min-height:var(--_tab-content-height);width:100%;padding-block:var(--_tab-content-padding-block);padding-inline:var(--_tab-content-padding-inline);gap:var(--_tab-content-spacing)}.forge-tab .content .label{display:inline-block;line-height:1}.forge-tab .indicator{position:absolute;box-sizing:border-box;z-index:-1;transform-origin:bottom left;background:var(--_tab-indicator-color);border-radius:var(--_tab-indicator-shape);height:var(--_tab-indicator-height);min-width:100%;inset:auto 0 0;opacity:0}::slotted(*),:host{white-space:nowrap}forge-focus-indicator{--forge-focus-indicator-color:var(--_tab-active-color);--forge-focus-indicator-shape:8px}forge-state-layer{--forge-state-layer-color:var(--_tab-inactive-color)}:host(:focus) .forge-tab{color:var(--_tab-focus-label-text-color)}:host(:focus) .forge-tab ::slotted([slot=leading]),:host(:focus) .forge-tab ::slotted([slot=trailing]){color:var(--_tab-focus-icon-color)}:host(:active) .forge-tab{color:var(--_tab-pressed-label-text-color);outline:0}:host(:active) .forge-tab ::slotted([slot=leading]),:host(:active) .forge-tab ::slotted([slot=trailing]){color:var(--_tab-pressed-icon-color)}:host([disabled]){cursor:not-allowed}:host([disabled]) .forge-tab{opacity:var(--_tab-disabled-opacity);pointer-events:none}:host([selected]) .forge-tab{color:var(--_tab-active-label-text-color)}:host([selected]) .forge-tab ::slotted([slot=end]),:host([selected]) .forge-tab ::slotted([slot=leading]),:host([selected]) .forge-tab ::slotted([slot=start]),:host([selected]) .forge-tab ::slotted([slot=trailing]){color:var(--_tab-active-icon-color)}:host([selected]) .forge-tab:hover{color:var(--_tab-active-hover-label-text-color)}:host([selected]) .forge-tab:hover ::slotted([slot=end]),:host([selected]) .forge-tab:hover ::slotted([slot=leading]),:host([selected]) .forge-tab:hover ::slotted([slot=start]),:host([selected]) .forge-tab:hover ::slotted([slot=trailing]){color:var(--_tab-active-hover-icon-color)}:host([selected]) .forge-tab .indicator{opacity:1}:host([selected]) forge-state-layer{--forge-state-layer-color:var(--_tab-active-color)}:host([selected]:not([vertical])) forge-focus-indicator{--forge-focus-indicator-offset-block:0 calc(var(--_tab-indicator-height) + 1px)}:host([selected]:focus) .forge-tab{color:var(--_tab-active-focus-label-text-color)}:host([selected]:focus) .forge-tab ::slotted([slot=leading]),:host([selected]:focus) .forge-tab ::slotted([slot=trailing]){color:var(--_tab-active-focus-icon-color)}:host([selected]:active) .forge-tab{color:var(--_tab-active-pressed-label-text-color)}:host([selected]:active) .forge-tab ::slotted([slot=leading]),:host([selected]:active) .forge-tab ::slotted([slot=trailing]){color:var(--_tab-active-pressed-icon-color)}:host([stacked]) .forge-tab{--_tab-height:var(--_tab-stacked-height)}:host([stacked]) .forge-tab .content{max-height:none;flex-direction:column;height:100%}:host([vertical]) .forge-tab{--_tab-padding-inline:var(--forge-tab-padding-inline, 0);width:100%;flex-direction:row;border-bottom:none}:host([vertical]) .forge-tab .content{width:100%;min-height:100%}:host([vertical]) .forge-tab .indicator{height:100%;min-width:var(--_tab-indicator-height);inset:0 0 0 auto}:host([vertical]) forge-focus-indicator{--forge-focus-indicator-offset-inline:0 calc(var(--_tab-indicator-height) + 1px)}:host([vertical]) .forge-tab{--_tab-indicator-shape:var(--_tab-vertical-indicator-shape)}:host([inverted]) .forge-tab{--_tab-indicator-shape:var(--_tab-inverted-indicator-shape)}:host([inverted]) .indicator{inset:0 0 auto;transform-origin:top left}:host([inverted][vertical]) .forge-tab{--_tab-indicator-shape:var(--_tab-vertical-inverted-indicator-shape)}:host([inverted][vertical]) .indicator{inset:0 auto 0 0}',Rt=class extends M{static get observedAttributes(){return Object.values(K1.observedAttributes)}constructor(){super(),z(this,Xb,Zb),this._core=new D4(new O4(this))}connectedCallback(){this._core.initialize()}attributeChangedCallback(t,e,o){switch(t){case K1.observedAttributes.DISABLED:this.disabled=p(o);break;case K1.observedAttributes.SELECTED:this.selected=p(o);break;case K1.observedAttributes.VERTICAL:this.vertical=p(o);break;case K1.observedAttributes.STACKED:this.stacked=p(o);break;case K1.observedAttributes.SECONDARY:this.secondary=p(o);break;case K1.observedAttributes.INVERTED:this.inverted=p(o);break}}focus(t){super.focus(t),this._core.setFocus(t)}};i([c()],Rt.prototype,"disabled",2),i([c()],Rt.prototype,"selected",2),i([c()],Rt.prototype,"vertical",2),i([c()],Rt.prototype,"stacked",2),i([c()],Rt.prototype,"secondary",2),i([c()],Rt.prototype,"inverted",2),Rt=i([y({name:K1.elementName,dependencies:[J,r1]})],Rt);function pm(){f(Rt)}var P4=class extends I{constructor(t){super(t),this._defaultSlotElement=w(this._component,N1.selectors.DEFAULT_SLOT),this._rootElement=w(this._component,N1.selectors.ROOT),this._scrollContainer=w(this._component,N1.selectors.SCROLL_CONTAINER)}initializeContainerSizeObserver(t){this._resizeObserver=new ResizeObserver(()=>t()),this._resizeObserver.observe(this._component)}initializeScrollObserver(t){this._scrollContainer.addEventListener("scroll",t,{passive:!0})}destroyContainerSizeObserver(){var t;(t=this._resizeObserver)==null||t.disconnect(),this._resizeObserver=void 0}destroyScrollObserver(t){this._scrollContainer.removeEventListener("scroll",t,{passive:!0})}setVertical(t){G(this._component,!!t,"aria-orientation","vertical")}setScrollBackwardButtonListener(t){var e;(e=this._backwardScrollButton)==null||e.addEventListener("click",t)}setScrollForwardButtonListener(t){var e;(e=this._forwardScrollButton)==null||e.addEventListener("click",t)}addSlotListener(t){this._defaultSlotElement.addEventListener("slotchange",t)}getTabs(){return Array.from(this._component.querySelectorAll(K1.elementName))}async tryScrollTabIntoView(t){if(await new Promise(requestAnimationFrame),!t.isConnected||!t.selected&&!t.matches(":focus"))return;let e=this._component.vertical,o=e?this._scrollContainer.offsetTop:this._scrollContainer.offsetLeft,a=e?t.offsetTop:t.offsetLeft,s=e?t.offsetHeight:t.offsetWidth,r=e?this._scrollContainer.scrollTop:this._scrollContainer.scrollLeft,l=e?this._scrollContainer.offsetHeight:this._scrollContainer.offsetWidth,h=a-(N1.numbers.SCROLL_MARGIN+o),v=a+s-l+(N1.numbers.SCROLL_MARGIN-o),m=Math.min(h,Math.max(v,r)),u=t.matches(":focus")?"smooth":"instant";this._scrollContainer.scrollTo({behavior:u,[e?"left":"top"]:0,[e?"top":"left"]:m})}getScrollState(){let{scrollHeight:t,scrollWidth:e,scrollLeft:o,scrollTop:a,clientHeight:s,clientWidth:r}=this._scrollContainer,l=this._component.vertical?s+a:r+o,h=this._component.vertical?t:e,v=l===h;return{isScrolledStart:(this._component.vertical?l-s:l-r)===0,isScrolledEnd:v}}isScrollable(){let{scrollHeight:t,scrollWidth:e,clientHeight:o,clientWidth:a}=this._scrollContainer;return this._component.vertical?t>o:e>a}setScrollButtons(t){var e,o;t?(this._backwardScrollButton=this._createScrollButton(this._component.vertical?Qa.name:v0.name),this._rootElement.insertAdjacentElement("afterbegin",this._backwardScrollButton),this._forwardScrollButton=this._createScrollButton(this._component.vertical?h0.name:ze.name),this._rootElement.insertAdjacentElement("beforeend",this._forwardScrollButton)):((e=this._backwardScrollButton)==null||e.remove(),this._backwardScrollButton=void 0,(o=this._forwardScrollButton)==null||o.remove(),this._forwardScrollButton=void 0)}syncScrollButtons({backwardEnabled:t,forwardEnabled:e}){var o,a;if(this._backwardScrollButton){let s=!t;s&&this._backwardScrollButton.matches(":focus")&&((o=this._forwardScrollButton)==null||o.focus()),this._backwardScrollButton.disabled=s,this._backwardScrollButton.tabIndex=-1}if(this._forwardScrollButton){let s=!e;s&&this._forwardScrollButton.matches(":focus")&&((a=this._backwardScrollButton)==null||a.focus()),this._forwardScrollButton.disabled=s,this._forwardScrollButton.tabIndex=-1}}scroll(t){let e=this._component.vertical?this._scrollContainer.offsetHeight:this._scrollContainer.offsetWidth;this._scrollContainer.scrollBy({behavior:"smooth",[this._component.vertical?"top":"left"]:e*(t==="forward"?1:-1)})}updateScrollButtonIcons(t){var a,s;let e=(a=this._backwardScrollButton)==null?void 0:a.querySelector("forge-icon");e&&(e.name=t?Qa.name:v0.name);let o=(s=this._forwardScrollButton)==null?void 0:s.querySelector("forge-icon");o&&(o.name=t?h0.name:ze.name)}_createScrollButton(t){let e=document.createElement("forge-icon-button");e.classList.add(N1.classes.SCROLL_BUTTON),e.shape="squared",e.type="button",e.tabIndex=-1,e.setAttribute("aria-hidden","true");let o=document.createElement("forge-icon");return o.name=t,e.appendChild(o),e}};var N4=class{constructor(t){this._adapter=t;this._isInitialized=!1;this._disabled=!1;this._vertical=!1;this._clustered=!1;this._stacked=!1;this._secondary=!1;this._inverted=!1;this._autoActivate=!1;this._scrollButtons=!1;this._scrollButtonsVisible=!1;this._tabsChangedListener=()=>this._onTabsChanged(),this._tabSelectedListener=e=>this._onTabSelected(e),this._keydownListener=e=>this._onKeydown(e),this._resizeListener=()=>this._onResize(),this._scrollListener=()=>this._onScroll(),this._scrollBackwardButtonListener=()=>this._onScrollBackward(),this._scrollForwardButtonListener=()=>this._onScrollForward()}initialize(){this._adapter.addSlotListener(this._tabsChangedListener),this._adapter.addHostListener(K1.events.SELECT,this._tabSelectedListener),this._adapter.addHostListener("keydown",this._keydownListener),this._adapter.setVertical(this._vertical),this._scrollButtons&&(this._adapter.initializeContainerSizeObserver(this._resizeListener),this._adapter.initializeScrollObserver(this._scrollListener),this._updateScrollState()),this._tryScrollActiveTabIntoView(),this._isInitialized=!0}destroy(){this._adapter.destroyContainerSizeObserver(),this._adapter.destroyScrollObserver(this._scrollListener),this._isInitialized=!1}_getTabs(){return this._adapter.getTabs()}async _onTabsChanged(){this._syncTabState(),this._scrollButtons&&this._detectScrollableStatus(),this._tryScrollActiveTabIntoView()}_onTabSelected(t){this._selectTab({tab:t.target,focusTab:!0})}async _onKeydown(t){var r,l;let e=this._vertical?"vertical":"horizontal";if(!(((r=f3.get("default"))==null?void 0:r.has(t.key))||((l=f3.get(e))==null?void 0:l.has(t.key))))return;t.preventDefault();let a=-1,s=this._getTabs();if(t.key==="Home")a=s.findIndex(h=>!h.disabled);else if(t.key==="End")a=s.reduceRight((h,v,m)=>!v.disabled&&h===-1?m:h,-1);else{let h=s.findIndex(u=>u.matches(":focus")),v=t.key==="ArrowLeft"||t.key==="ArrowUp",m=u=>{var x;a=u+(v?-1:1),a=a<0?s.length-1:a%s.length,!s.every(C=>C.disabled)&&((x=s[a])!=null&&x.disabled)&&m(a)};m(h)}a!==-1&&(this._autoActivate?this._selectTab({tab:s[a],focusTab:!0}):(s[a].focus({preventScroll:!0,focusVisible:!0}),await this._adapter.tryScrollTabIntoView(s[a])))}async _selectTab({tab:t,emitEvent:e=!0,focusTab:o=!1}){if(!t||t.disabled)return;let a=this._getTabs(),s=a.find(r=>r.selected);if(s!==t){if(e){let r=a.indexOf(t),l=new CustomEvent(N1.events.CHANGE,{detail:{index:r},bubbles:!0,cancelable:!0,composed:!0});if(this._adapter.dispatchHostEvent(l),l.defaultPrevented)return}t.selected=!0,o&&t.focus({preventScroll:!0}),await this._adapter.tryScrollTabIntoView(t),s&&(s.selected=!1),this._activeTab=a.indexOf(t)}}_syncTabState(){this._getTabs().forEach((t,e)=>{t.selected=e===this._activeTab,this._disabled&&(t.disabled=this._disabled),t.vertical=this._vertical,t.stacked=this._stacked,t.secondary=this._secondary,t.inverted=this._inverted})}_onResize(){this._detectScrollableStatus()}_onScroll(){this._updateScrollState()}_onScrollBackward(){this._adapter.scroll("backward")}_onScrollForward(){this._adapter.scroll("forward")}_detectScrollableStatus(){let t=this._adapter.isScrollable();this._scrollButtonsVisible!==t&&(this._adapter.setScrollButtons(t),t?(this._adapter.initializeScrollObserver(this._scrollListener),this._updateScrollState(),this._adapter.setScrollBackwardButtonListener(this._scrollBackwardButtonListener),this._adapter.setScrollForwardButtonListener(this._scrollForwardButtonListener)):this._adapter.destroyScrollObserver(this._scrollListener),this._scrollButtonsVisible=t)}_updateScrollState(){let{isScrolledEnd:t,isScrolledStart:e}=this._adapter.getScrollState(),o={backwardEnabled:!e,forwardEnabled:!t};this._adapter.syncScrollButtons(o)}_tryScrollActiveTabIntoView(){this._tabScrollAnimationFrame&&window.cancelAnimationFrame(this._tabScrollAnimationFrame),this._tabScrollAnimationFrame=window.requestAnimationFrame(()=>{if(this._tabScrollAnimationFrame=void 0,this._adapter.isScrollable()){let t=this._getTabs();typeof this._activeTab=="number"&&this._activeTab>=0&&t[this._activeTab]&&this._adapter.tryScrollTabIntoView(t[this._activeTab])}})}get disabled(){return this._disabled}set disabled(t){t=!!t,this._disabled!==t&&(this._disabled=t,this._getTabs().forEach(e=>e.disabled=this._disabled),this._adapter.toggleHostAttribute(N1.attributes.DISABLED,this._disabled))}get activeTab(){return this._activeTab}set activeTab(t){if(this._activeTab!==t){this._activeTab=t!=null?t:void 0;let e=this._getTabs();if(typeof this._activeTab=="number"){let o=e[this._activeTab];this._selectTab({tab:o,emitEvent:!1,focusTab:!1}),this._adapter.setHostAttribute(N1.attributes.ACTIVE_TAB,String(this._activeTab))}else e.forEach(o=>o.selected=!1),this._adapter.removeHostAttribute(N1.attributes.ACTIVE_TAB)}}get vertical(){return this._vertical}set vertical(t){t=!!t,this._vertical!==t&&(this._vertical=t,this._isInitialized&&this._adapter.setVertical(this._vertical),this._getTabs().forEach(e=>e.vertical=this._vertical),this._scrollButtonsVisible&&this._adapter.updateScrollButtonIcons(this._vertical),this._adapter.toggleHostAttribute(K1.attributes.VERTICAL,this._vertical))}get clustered(){return this._clustered}set clustered(t){t=!!t,this._clustered!==t&&(this._clustered=t,this._adapter.toggleHostAttribute(N1.attributes.CLUSTERED,this._clustered))}get stacked(){return this._stacked}set stacked(t){t=!!t,this._stacked!==t&&(this._stacked=t,this._getTabs().forEach(e=>e.stacked=this._stacked),this._adapter.toggleHostAttribute(N1.attributes.STACKED,this._stacked))}get secondary(){return this._secondary}set secondary(t){t=!!t,this._secondary!==t&&(this._secondary=t,this._getTabs().forEach(e=>e.secondary=this._secondary),this._adapter.toggleHostAttribute(N1.attributes.SECONDARY,this._secondary))}get inverted(){return this._inverted}set inverted(t){t=!!t,this._inverted!==t&&(this._inverted=t,this._getTabs().forEach(e=>e.inverted=this._inverted),this._adapter.toggleHostAttribute(N1.attributes.INVERTED,this._inverted))}get autoActivate(){return this._autoActivate}set autoActivate(t){t=!!t,this._autoActivate!==t&&(this._autoActivate=t,this._adapter.toggleHostAttribute(N1.attributes.AUTO_ACTIVATE,this._autoActivate))}get scrollButtons(){return this._scrollButtons}set scrollButtons(t){t=!!t,this._scrollButtons!==t&&(this._scrollButtons=!!t,this._isInitialized&&(this._scrollButtons?(this._adapter.initializeContainerSizeObserver(this._resizeListener),this._adapter.initializeScrollObserver(this._scrollListener),this._detectScrollableStatus(),this._updateScrollState(),this._tryScrollActiveTabIntoView()):(this._adapter.destroyContainerSizeObserver(),this._adapter.destroyScrollObserver(this._scrollListener),this._adapter.setScrollButtons(this._scrollButtons),this._scrollButtonsVisible=!1)),this._adapter.setHostAttribute(N1.attributes.SCROLL_BUTTONS,String(this._scrollButtons)))}};var jb='<template><div class="forge-tab-bar" part="container"><div class="scroll-container" part="scroll-container"><slot></slot></div></div></template>',Qb=":host{position:relative;display:block}:host([hidden]){display:none}.forge-tab-bar{--_tab-bar-justify:var(--forge-tab-bar-justify, space-between);--_tab-bar-stretch:var(--forge-tab-bar-stretch, 1);--_tab-bar-divider-color:var(--forge-tab-bar-divider-color, var(--forge-theme-outline, #e0e0e0));--_tab-bar-divider-thickness:var(--forge-tab-bar-divider-thickness, 1px)}.forge-tab-bar{position:relative;display:grid;grid-template-columns:auto 1fr auto;max-width:100%;max-height:100%;align-items:center;border-bottom:var(--_tab-bar-divider-thickness) solid var(--_tab-bar-divider-color)}.scroll-container{position:relative;display:flex;justify-content:var(--_tab-bar-justify);align-items:flex-end;box-sizing:border-box;overflow:auto;scroll-behavior:smooth;scrollbar-width:none;grid-column:2}.scroll-container::-webkit-scrollbar{display:none}::slotted(*){flex:var(--_tab-bar-stretch);align-self:stretch}::slotted([selected]){z-index:1}forge-icon-button{--forge-icon-button-shape-squared:0px}:host([vertical]) .forge-tab-bar{grid-template-columns:none;grid-template-rows:auto 1fr auto;align-items:initial;border-bottom:none;border-right:var(--_tab-bar-divider-thickness) solid var(--_tab-bar-divider-color);height:100%}:host([vertical]) .scroll-container{display:inline-flex;flex-direction:column;align-items:stretch;gap:0;grid-column:auto;grid-row:2}:host([vertical]) .scroll-button{justify-self:center}:host([inverted]:not([vertical])) .forge-tab-bar{border-bottom:none;border-top:variale(divider-thickness) solid var(--_tab-bar-divider-color)}:host([inverted][vertical]) .forge-tab-bar{border-bottom:none;border-top:var(--_tab-bar-divider-thickness) solid var(--_tab-bar-divider-color)}:host([clustered]) .forge-tab-bar{--_tab-bar-justify:var(--forge-tab-bar-justify, flex-start);--_tab-bar-stretch:var(--forge-tab-bar-stretch, 0)}:host([clustered=start]) .forge-tab-bar{--_tab-bar-justify:var(--forge-tab-bar-justify, flex-start)}:host([clustered=center]) .forge-tab-bar{--_tab-bar-justify:var(--forge-tab-bar-justify, center)}:host([clustered=end]) .forge-tab-bar{--_tab-bar-justify:var(--forge-tab-bar-justify, flex-end)}:host([theme=app-bar]){--forge-tab-active-color:var(--_app-bar-theme-foreground);--forge-tab-inactive-color:var(--_app-bar-theme-foreground-muted)}:host([theme=app-bar]) forge-icon-button{--forge-icon-button-icon-color:var(--_app-bar-theme-foreground)}",Ct=class extends V1(L1(M)){static get observedAttributes(){return Object.values(N1.observedAttributes)}constructor(){super(),X.define([v0,ze,Qa,h0]),z(this,jb,Qb),this._core=new N4(new P4(this))}connectedCallback(){this[N]({role:"tablist"},{setAttribute:!0}),this._core.initialize()}disconnectedCallback(){this._core.destroy()}attributeChangedCallback(t,e,o){switch(t){case N1.observedAttributes.DISABLED:this.disabled=p(o);break;case N1.observedAttributes.ACTIVE_TAB:this.activeTab=o?K(o):void 0;break;case N1.observedAttributes.VERTICAL:this.vertical=p(o);break;case N1.observedAttributes.CLUSTERED:this.clustered=p(o);break;case N1.observedAttributes.STACKED:this.stacked=p(o);break;case N1.observedAttributes.SECONDARY:this.secondary=p(o);break;case N1.observedAttributes.INVERTED:this.inverted=p(o);break;case N1.observedAttributes.AUTO_ACTIVATE:this.autoActivate=p(o);break;case N1.observedAttributes.SCROLL_BUTTONS:this.scrollButtons=p(o);break}}};i([c()],Ct.prototype,"disabled",2),i([c()],Ct.prototype,"activeTab",2),i([c()],Ct.prototype,"vertical",2),i([c()],Ct.prototype,"clustered",2),i([c()],Ct.prototype,"stacked",2),i([c()],Ct.prototype,"secondary",2),i([c()],Ct.prototype,"inverted",2),i([c()],Ct.prototype,"autoActivate",2),i([c()],Ct.prototype,"scrollButtons",2),Ct=i([y({name:N1.elementName,dependencies:[Rt,i1,j]})],Ct);function mm(){f(Ct)}var Dn=`${b}time-picker`,dm={TOGGLE:"forge-time-picker-toggle",VALUE:"value",OPEN:"open",ALLOW_SECONDS:"allow-seconds",MASKED:"masked",SHOW_MASK_FORMAT:"show-mask-format",USE_24_HOUR_TIME:"use-24-hour-time",ALLOW_INVALID_TIME:"allow-invalid-time",MIN:"min",MAX:"max",START_TIME:"start-time",STEP:"step",ALLOW_INPUT:"allow-input",SHOW_NOW:"show-now",SHOW_HOUR_OPTIONS:"show-hour-options",DISABLED:"disabled",POPUP_CLASSES:"popup-classes",ALLOW_DROPDOWN:"allow-dropdown"},Jb={INPUT:"input, input[forge-time-picker-input]",TOGGLE:`[${dm.TOGGLE}]`},ty={OPEN:`${Dn}-open`,CLOSE:`${Dn}-close`,INPUT:`${Dn}-input`,CHANGE:`${Dn}-change`},ey={DEFAULT_MINUTE_STEP:60,MAX_DAY_MILLIS:864e5,MAX_DAY_MINUTES:1440},W={elementName:Dn,attributes:dm,selectors:Jb,events:ty,numbers:ey};var R4=class extends I{constructor(t){super(t)}get inputElement(){return this._inputElement}initialize(){this._inputElement=this._component.querySelector(W.selectors.INPUT)}initializeMask(t){this.destroyMask(),this._inputElement&&(this._inputMask=new ys(this._inputElement,t))}destroy(){this._targetElement=void 0,this._toggleElement=void 0,this._inputElement=void 0}destroyMask(){var t;(t=this._inputMask)==null||t.destroy(),this._inputMask=void 0}initializeAccessibility(t){var e,o,a,s,r,l,h,v,m;(e=this._inputElement)==null||e.setAttribute("autocomplete","off"),(o=this._inputElement)==null||o.setAttribute("autocorrect","off"),(a=this._inputElement)==null||a.setAttribute("autocapitalize","off"),(s=this._inputElement)==null||s.setAttribute("spellcheck","false"),(r=this._inputElement)==null||r.setAttribute("role","combobox"),(l=this._inputElement)==null||l.setAttribute("aria-live","assertive"),(h=this._inputElement)==null||h.setAttribute("aria-atomic","true"),(v=this._inputElement)==null||v.setAttribute("aria-haspopup","true"),(m=this._inputElement)==null||m.setAttribute("aria-expanded","false"),Ge(),this._inputElement&&Yt(this._inputElement)}addInputListener(t,e,o){var a;(a=this._inputElement)==null||a.addEventListener(t,e,{capture:o})}removeInputListener(t,e,o){var a;(a=this._inputElement)==null||a.removeEventListener(t,e,{capture:o})}addToggleListener(t,e){this._toggleElement&&this._toggleElement.addEventListener(t,e)}removeToggleListener(t,e){this._toggleElement&&this._toggleElement.removeEventListener(t,e)}hasInputElement(){return!!this._inputElement}tryCreateToggle(){let t=this._component.querySelector(E1.elementName),e=this._component.querySelector(W.selectors.TOGGLE);if(t){let o=t.querySelector(`${t1.elementName}[slot=trailing]`);if(o||e){this._toggleElement=o||e;return}let a=document.createElement(t1.elementName);a.slot="trailing",a.density="medium",a.type="button",a.tabIndex=-1,a.setAttribute("aria-label","Toggle time dropdown");let s=document.createElement(p1.elementName);s.name="clock_outline",a.appendChild(s),t.appendChild(a),this._toggleElement=a}else e&&(this._toggleElement=e)}tryFocusInput(){var t;(t=this._inputElement)==null||t.select()}tryBlurInput(){var t;(t=this._inputElement)==null||t.blur()}selectInputText(){var t;(t=this._inputElement)==null||t.select()}isInputDisabled(){var t,e;return(e=(t=this._inputElement)==null?void 0:t.disabled)!=null?e:!1}isInputFocused(){return Ue(this._component.ownerDocument)===this._inputElement}setInputValue(t,e){var o;((o=this._inputElement)==null?void 0:o.value)!==t&&(this._inputElement&&(this._inputElement.value=t),this._inputMask&&this._inputMask.update(),e&&(this._emitInputEvent("change"),this._emitInputEvent("input")))}getInputValue(){var t,e;return this._inputMask?this._inputMask.maskedValue:(e=(t=this._inputElement)==null?void 0:t.value)!=null?e:""}setDisabled(t){this._inputElement&&(this._inputElement.disabled=t,this._inputElement.setAttribute("aria-disabled",t.toString())),this.setToggleDisabled(t)}attachDropdown(t){var e;this._targetElement||(this._targetElement=this._getTargetElement(this._component.popupTarget)),this._listDropdown=new qe(this._targetElement,t),this._listDropdown.open(),(e=this._inputElement)==null||e.setAttribute("aria-controls",`list-dropdown-popup-${t.id}`)}async detachDropdown({destroy:t=!1}={}){this._listDropdown&&(t?this._listDropdown.destroy():await this._listDropdown.close(),this._listDropdown=void 0),this._inputElement&&Yt(this._inputElement)}propagateKey(t){var e;(e=this._listDropdown)==null||e.handleKey(t)}setActiveDescendant(t){this._inputElement&&G(this._inputElement,!!t,"aria-activedescendant",t)}getTargetElementWidth(t){return this._getTargetElement(t).getBoundingClientRect().width}_emitInputEvent(t){var e;(e=this._inputElement)==null||e.dispatchEvent(new Event(t))}emitInputEvent(t,e){this._inputElement&&i0(this._inputElement,t,e)}setInputReadonly(t){this._inputElement&&(this._inputElement.readOnly=t)}setToggleDisabled(t){if(this._toggleElement)if(this._toggleElement.setAttribute("aria-disabled",t.toString()),"disabled"in this._toggleElement)this._toggleElement.disabled=t;else{let e=this._toggleElement.querySelector("button");e&&(e.disabled=t)}}hasActiveOption(){var t,e;return((e=(t=this._listDropdown)==null?void 0:t.getActiveOptionIndex())!=null?e:-1)>=0}activateOptionByIndex(t){var e;(e=this._listDropdown)==null||e.activateOption(t)}activateFirstOption(){var t;(t=this._listDropdown)==null||t.activateFirstOption()}getActiveOption(){var t;return(t=this._listDropdown)==null?void 0:t.getActiveOption()}_getTargetElement(t){return this._targetElement?this._targetElement:(this._targetElement=t?this._component.querySelector(t)||this._getDefaultTargetElement():this._getDefaultTargetElement(),this._targetElement)}_getDefaultTargetElement(){var e;let t=this._component.querySelector(E1.elementName);return(e=t==null?void 0:t.popoverTargetElement)!=null?e:this._component}};function F4(n,t,e){if(!n||/^\s*$/.test(n))return null;let o=0,a=0,s=0;if(Jo.test(n)){let r=Yl(n);o=+r.hours||0,a=+r.minutes||0,s=+r.seconds||0}else if(ps.test(n)){let r=Kl(n);o=+r.hours||0,a=+r.minutes||0,s=+r.seconds||0,o===12&&r.meridiem==="AM"&&(o=0),o<12&&r.meridiem==="PM"&&(o+=12)}else return null;return um(o)+Wa(a)+(e?y3(s):0)}function lt(n,t,e){if(typeof n!="number"||n<0)return null;let o=Math.min(gm(n),23),a=Math.min(wm(n),59),r=n/(1e3*60)<720?"AM":"PM";t||(o=o<=12?o:o-12,o===0&&(o=12));let l=`${String(o).padStart(2,"0")}:${String(a).padStart(2,"0")}`;if(e){let h=Math.min(b3(n),59);l+=`:${String(h).padStart(2,"0")}`}return t||(l+=` ${r}`),l}function gm(n){return Math.abs(Math.floor(n/(1e3*60*60)))}function wm(n){return Math.abs(Math.floor(U4(n)%60))}function U4(n){return n/(1e3*60)}function b3(n){return Math.abs(Math.floor(oy(n)%60))}function oy(n){return n/1e3}function um(n){return n*60*60*1e3}function Wa(n){return n*60*1e3}function y3(n){return n*1e3}function _m(n){return n-y3(b3(n))}function M3(n){let t=new Date,e=t.getHours(),o=t.getMinutes();return um(e)+Wa(o)+(n?y3(t.getSeconds()):0)}function cC1(n,t,e=!1){n||(n=new Date);let o=F4(t,!0,e);if(!o)return n.setHours(0,0,0),n;let a=gm(o),s=828e5;a>s?a=s:a<0&&(a=0);let r=wm(o),l=e?b3(o):0;return n.setHours(a,r,l),n}var W4=class{constructor(t){this._adapter=t;this._value=null;this._masked=!0;this._use24HourTime=!1;this._showMaskFormat=!1;this._min=null;this._max=null;this._restrictedTimes=[];this._startTime=null;this._step=W.numbers.DEFAULT_MINUTE_STEP;this._allowInput=!0;this._open=!1;this._allowSeconds=!1;this._allowInvalidTime=!1;this._showNow=!1;this._showHourOptions=!0;this._customOptions=[];this._disabled=!1;this._popupClasses=[];this._allowDropdown=!0;this._isInitialized=!1;this._identifier=V2(),this._inputListener=e=>this._onInput(e),this._inputKeydownListener=e=>this._onInputKeydown(e),this._toggleMousedownListener=e=>this._onToggleMousedown(e),this._inputFocusListener=e=>this._onInputFocus(e),this._inputBlurListener=e=>this._onInputBlur(e),this._inputMousedownListener=e=>this._onInputMousedown(e)}initialize(){if(this._adapter.initialize(),!this._adapter.hasInputElement())throw new Error("Unable to locate <input> element to attach to.");if(this._adapter.initializeAccessibility(this._identifier),!this._value){let t=this._adapter.getInputValue();this._setValue(this._convertTimeStringToMillis(t,this._use24HourTime,this._allowSeconds))}this._adapter.addInputListener("focus",this._inputFocusListener),this._adapter.addInputListener("blur",this._inputBlurListener),this._adapter.addInputListener("keydown",this._inputKeydownListener,!0),this._formatInputValue(!1),typeof this._value=="number"&&this._applyValue(this._value,!1),this._applyAllowInput(),this._applyAllowDropdown(),this._applyDisabled(),this._applyMask(),this._isInitialized=!0}destroy(){this._isInitialized=!1,this._adapter.removeInputListener("input",this._inputListener),this._adapter.removeInputListener("focus",this._inputFocusListener),this._adapter.removeInputListener("blur",this._inputBlurListener),this._adapter.removeToggleListener("mousedown",this._toggleMousedownListener),this._adapter.removeInputListener("keydown",this._inputKeydownListener,!0),this._masked&&this._adapter.destroyMask(),this._closeDropdown({destroy:!0}),this._adapter.destroy()}_onInput(t){this._handleInput(this._adapter.getInputValue())}_onInputKeydown(t){var e,o;if(t.shiftKey)switch(t.code){case"Backspace":case"Delete":{t.preventDefault(),this._trySetValue(null)&&this._formatInputValue();return}}switch(t.code){case"Tab":this._open&&this._selectActiveOption();break;case"Esc":case"Escape":this._open&&(t.preventDefault(),t.stopPropagation(),this._closeDropdown({emitCloseEvent:!0}));break;case"Down":case"ArrowDown":this._allowDropdown&&(t.preventDefault(),this._open?this._adapter.hasActiveOption()?this._adapter.propagateKey(t.code):this._trySetActiveOption():(this._openDropdown(),typeof((e=this._dropdownConfig)==null?void 0:e.visibleStartIndex)=="number"&&this._dropdownConfig.visibleStartIndex>=0?this._adapter.activateOptionByIndex((o=this._dropdownConfig)==null?void 0:o.visibleStartIndex):this._adapter.activateFirstOption()));break;case"ArrowUp":this._allowDropdown&&(t.preventDefault(),this._open&&(this._adapter.hasActiveOption()?this._adapter.propagateKey(t.code):this._trySetActiveOption()));break;case"Enter":case"NumpadEnter":case"Home":case"End":this._open&&((t.code==="Enter"||t.code==="NumpadEnter")&&t.stopPropagation(),t.preventDefault(),this._adapter.propagateKey(t.code));break;case"KeyN":{t.preventDefault();let a=M3(this._allowSeconds);if(this._value!==a){let s=lt(a,!0,this._allowSeconds);this._emitChangeEvent(s)&&(this._applyValue(a),this._selectInputText())}break}}}_trySetActiveOption(){var t,e;!this._adapter.hasActiveOption()&&typeof((t=this._dropdownConfig)==null?void 0:t.visibleStartIndex)=="number"&&this._dropdownConfig.visibleStartIndex>=0&&this._adapter.activateOptionByIndex((e=this._dropdownConfig)==null?void 0:e.visibleStartIndex)}_selectActiveOption(){let t=this._adapter.getActiveOption();t&&this._onSelect(t.value)}_onToggleMousedown(t){this._disabled||!this.allowDropdown||(t.stopPropagation(),!this._adapter.isInputDisabled()&&(t.preventDefault(),this._open?this._closeDropdown({emitCloseEvent:!0}):(Q2.isMobile?this._adapter.tryBlurInput():this._adapter.tryFocusInput(),this._openDropdown())))}_onInputFocus(t){this.masked&&this._showMaskFormat&&this._applyMask(),this._allowInput&&this._adapter.selectInputText()}_onInputBlur(t){this.masked&&this._showMaskFormat&&this._applyMask(),this._formatInputValue(),this._open&&!this._adapter.isInputFocused()&&this._closeDropdown({emitCloseEvent:!0})}_onInputMousedown(t){!this._allowInput&&!this._open&&(this._openDropdown(),this._adapter.tryFocusInput(),window.requestAnimationFrame(()=>this._adapter.selectInputText()))}_applyDisabled(){this._adapter.setDisabled(this._disabled)}_applyMask(){if(this._masked&&this._allowInput){this._adapter.destroyMask();let t={showMaskFormat:this._showMaskFormat&&this._adapter.isInputFocused(),use24HourTime:this._use24HourTime,showSeconds:this._allowSeconds,prepareCallback:this._prepareMaskCallback,onChange:Ne(e=>this._handleInput(e),0,!0)};this._adapter.initializeMask(t)}else this._adapter.destroyMask(),this._formatInputValue()}_applyAllowInput(){this._adapter.setInputReadonly(!this._allowInput),this._allowInput?(this._adapter.removeInputListener("mousedown",this._inputMousedownListener),this._masked||this._adapter.addInputListener("input",this._inputListener)):(this._adapter.addInputListener("mousedown",this._inputMousedownListener),this._adapter.removeInputListener("input",this._inputListener))}_applyAllowDropdown(){this._adapter.setToggleDisabled(!this._allowDropdown),this._allowDropdown?(this._adapter.removeToggleListener("mousedown",this._toggleMousedownListener),this._adapter.tryCreateToggle(),this._adapter.addToggleListener("mousedown",this._toggleMousedownListener)):this._open&&this._closeDropdown({emitCloseEvent:!0})}_applyAllowSeconds(){let t=this._value;if(this._allowSeconds){if(this._isInitialized&&t!==this._value){let e=lt(this._value,!0,!0);this._emitChangeEvent(e)}}else{if(typeof this._value!="number")return;if(this._setValue(_m(this._value)),this._isInitialized&&t!==this._value){let e=lt(this._value,!0,!1);this._emitChangeEvent(e)}}}_handleInput(t){let e=t;if(!this._allowInput)return;this._open&&this._closeDropdown({emitCloseEvent:!0}),t=Xl(t,this._use24HourTime,this._allowSeconds),typeof this._coercionCallback=="function"&&(t=this._coercionCallback.call(null,e,t,this._allowSeconds)),this._isValidTimeFormat(t)||(t="");let o;!this._masked&&typeof this._parseCallback=="function"?o=this._parseCallback.call(null,t):o=this._convertTimeStringToMillis(t,this._use24HourTime,this._allowSeconds),o=this._validateMillis(o),this._trySetValue(o)}_emitChangeEvent(t,e=!1){return this._adapter.emitHostEvent(W.events.CHANGE,t,!0,!e)}_trySetValue(t){if(t===this._value)return!1;let e=lt(t,!0,this._allowSeconds);return this._adapter.emitInputEvent(W.events.INPUT,e),this._value!==t&&this._emitChangeEvent(e)?(this._setValue(t),!0):!1}_setValue(t){this._value=this._normalizeTimeValue(t)}_validateMillis(t){return typeof t=="number"&&(typeof this._min=="number"||typeof this._max=="number")&&(this._isTimeInRange(t,this._min,this._max)||(t=null)),typeof t=="number"&&this._restrictedTimes.length&&this._restrictedTimes.includes(t)&&(t=null),t}_isTimeInRange(t,e,o){return typeof e!="number"&&typeof o!="number"?!0:typeof e=="number"&&typeof o!="number"?t>=e:typeof o=="number"&&typeof e!="number"?t<=o:typeof e=="number"&&typeof o=="number"?e<=o?t>=e&&t<=o:t>=e||t<=o:!0}_isValidTimeFormat(t){return!this._masked&&typeof this._validationCallback=="function"?this._validationCallback.call(this,t):$l(t)}_isValidInputValue(t){return Jo.test(t)}_onSelect(t){if(this._closeDropdown({emitCloseEvent:!0}),!t.isCustom&&t.metadata==="now"&&(t.time=M3(this._allowSeconds)),t.isCustom)if(typeof t.customCallback=="function"){let a=t.customCallback.call(null,t.metadata);if(typeof a!="number")throw new Error("Custom options must provide a time of day value in milliseconds.");t.time=a}else throw new Error("You must implement a `toMilliseconds` callback that returns the time value to use for this custom option.");if(this._value===t.time)return;let e=lt(t.time,!0,this._allowSeconds);this._emitChangeEvent(e)&&(this._applyValue(t.time),this._selectInputText())}_selectInputText(){window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>{this._adapter.isInputFocused()&&this._adapter.selectInputText()})})}_applyValue(t,e=!0){this._setValue(t);let o=this._formatValue(this._value);this._adapter.getInputValue()!==o&&this._adapter.setInputValue(o,e)}_normalizeTimeValue(t){return t==null?null:t<0?0:t>W.numbers.MAX_DAY_MILLIS?W.numbers.MAX_DAY_MILLIS:t}_openDropdown(){let t=this._generateTimeOptions();if(!this.allowDropdown||!t.length||!this._adapter.inputElement)return;this._formatInputValue(),this._open=!0,this._adapter.setHostAttribute(W.attributes.OPEN);let e=t.filter(s=>!s.divider&&!s.disabled),o=[],a=0;if(t.length)if(this._value!=null){let s=this._findClosestOptionIndex(this._value,e);s>=0&&(e[s].value.time===this._value?o=[e[s].value]:a=s)}else if(typeof this._startTime=="number"){let s=this._findClosestOptionIndex(this._startTime,e);s>=0&&s<e.length&&(a=s)}else this._startTime==null&&(a=this._getOptionIndexClosestCurrent(e));this._dropdownConfig={id:`forge-time-picker-${this._identifier}`,referenceElement:this._adapter.inputElement,selectedValues:o,syncWidth:!0,visibleStartIndex:a,popupClasses:this._popupClasses,popupStatic:!0,type:"standard",options:t,selectCallback:s=>this._onSelect(s),closeCallback:()=>this._closeDropdown({emitCloseEvent:!0}),activeChangeCallback:s=>this._adapter.setActiveDescendant(s),targetWidthCallback:()=>this._adapter.getTargetElementWidth(this._popupTarget)},this._adapter.attachDropdown(this._dropdownConfig),this._adapter.emitHostEvent(W.events.OPEN,void 0,!1)}_closeDropdown({destroy:t=!1,emitCloseEvent:e=!1}={}){this._open=!1,this._dropdownConfig=void 0,this._adapter.removeHostAttribute(W.attributes.OPEN),this._adapter.detachDropdown({destroy:t}),e&&this._adapter.emitHostEvent(W.events.CLOSE,!0,!1)}_getOptionIndexClosestCurrent(t){let e=new Date,o=`${String(e.getHours()).padStart(2,"0")}:${String(e.getMinutes()).padStart(2,"0")}`,a=F4(o,!0,!1);return this._findClosestOptionIndex(a,t)}_findClosestOptionIndex(t,e){let o=e.reduce((a,s)=>Math.abs((s.value.time||0)-t)<Math.abs((a.value.time||0)-t)?s:a);return e.indexOf(o)}_formatInputValue(t=!0){let e=this._adapter.getInputValue();if(this._allowInvalidTime&&!this._masked&&e&&!this._value)return;let o=this._formatValue(this._value);e!==o&&(this._adapter.setInputValue(o,t),this._adapter.emitInputEvent(W.events.INPUT,o))}_generateTimeOptions(){let t=this._min!=null?Math.max(U4(this._min),0):0,e=this._max!=null?Math.min(U4(this._max),W.numbers.MAX_DAY_MINUTES):W.numbers.MAX_DAY_MINUTES,o=this._step,a=[],s=[];if(this._showHourOptions){let r=this._min!=null&&this._max!=null&&this._min>this._max;if(r){for(let l=t;l<W.numbers.MAX_DAY_MINUTES;l+=o){let h=Wa(l),v=this._restrictedTimes.includes(h),m=lt(h,this._use24HourTime,!1)||"",u={time:h};a.push({label:m,value:u,disabled:v})}for(let l=0;l<=e;l+=o){let h=Wa(l),v=this._restrictedTimes.includes(h),m=lt(h,this._use24HourTime,!1)||"",u={time:h};a.push({label:m,value:u,disabled:v})}}else{let l=this._min!=null?t:0,h=this._max!=null?e:W.numbers.MAX_DAY_MINUTES;for(let v=l;v<=h&&v!==W.numbers.MAX_DAY_MINUTES;v+=o){let m=Wa(v),u=this._restrictedTimes.includes(m),H=lt(m,this._use24HourTime,!1)||"",x={time:m};a.push({label:H,value:x,disabled:u})}}if(!r){let l=a.findIndex(h=>h.value.time/1e3/60>=720);l>=0&&l<a.length-1&&a.splice(l,0,{label:"",value:null,divider:!0})}}if(this._showNow){let r={time:null,metadata:"now"};s.push({label:"Now",value:r})}if(Array.isArray(this._customOptions)&&this._customOptions.length){let r=this._customOptions.map(l=>{let h={time:null,metadata:l.value,isCustom:!0,customCallback:l.toMilliseconds};return{label:l.label,value:h}});s=[...s,...r]}return s.length&&(a.length&&a.splice(0,0,{label:"",value:null,divider:!0}),s.forEach((r,l)=>a.splice(l,0,r))),a}_convertTimeStringToMillis(t,e,o){return(!t||!this._isValidTimeFormat(t))&&(t=""),F4(t,e,o)}_formatValue(t){return!this._masked&&typeof this._formatCallback=="function"?this._formatCallback.call(null,t,this._use24HourTime,this._allowSeconds):lt(this._value,this._use24HourTime,this._allowSeconds)||""}_warnInvalidFormat(t){console.warn(`The specified value "${t}" does not conform to the required format. The format is "HH:mm", "HH:mm:ss" where HH is 00-23, mm is 00-59, and ss is 00-59.`)}get open(){return this._open}set open(t){this._open!==t&&this._isInitialized&&(this._open=t,this._open?this._openDropdown():this._closeDropdown())}get masked(){return this._masked}set masked(t){this._masked!==t&&(this._masked=t,this._isInitialized&&(this._masked?(this._adapter.removeInputListener("input",this._inputListener),this._applyMask()):(this._adapter.destroyMask(),this._formatInputValue(),this._adapter.addInputListener("input",this._inputListener))))}get showMaskFormat(){return this._showMaskFormat}set showMaskFormat(t){this._showMaskFormat!==t&&(this._showMaskFormat=t)}get allowSeconds(){return this._allowSeconds}set allowSeconds(t){this._allowSeconds!==t&&(this._allowSeconds=!!t,this._applyAllowSeconds(),this._isInitialized&&(this._applyMask(),this._formatInputValue()),this._adapter.setHostAttribute(W.attributes.ALLOW_SECONDS,`${!!t}`))}get use24HourTime(){return this._use24HourTime}set use24HourTime(t){this._use24HourTime!==t&&(this._use24HourTime=!!t,this._isInitialized&&(this._applyMask(),this._formatInputValue()),this._adapter.setHostAttribute(W.attributes.USE_24_HOUR_TIME,`${!!t}`))}get allowInvalidTime(){return this._allowInvalidTime}set allowInvalidTime(t){this._allowInvalidTime!==t&&(this._allowInvalidTime=!!t,this._adapter.setHostAttribute(W.attributes.ALLOW_INVALID_TIME,`${!!t}`))}get value(){return lt(this._value,!0,this._allowSeconds)}set value(t){if(t&&!this._isValidInputValue(t)){this._warnInvalidFormat(t);return}let e=this._validateMillis(this._convertTimeStringToMillis(t,!0,!0));this._setValue(e),this._isInitialized&&this._applyValue(this._value)}get min(){return lt(this._min,!0,this._allowSeconds)}set min(t){if(this._min!==t){if(t&&!this._isValidInputValue(t)){this._warnInvalidFormat(t);return}this._min=this._convertTimeStringToMillis(t,!0,this._allowSeconds);let e=this._value,o=this._validateMillis(this._value);if(this._setValue(o),this._isInitialized&&(this._applyValue(o),e!==o)){let a=lt(o,!0,this._allowSeconds);this._emitChangeEvent(a)}}}get max(){return lt(this._max,!0,this._allowSeconds)}set max(t){if(this._max!==t){if(t&&!this._isValidInputValue(t)){this._warnInvalidFormat(t);return}this._max=this._convertTimeStringToMillis(t,!0,this._allowSeconds);let e=this._value,o=this._validateMillis(this._value);if(this._setValue(o),this._isInitialized&&(this._applyValue(o),e!==o)){let a=lt(o,!0,this._allowSeconds);this._emitChangeEvent(a)}}}get restrictedTimes(){return this._restrictedTimes.map(t=>lt(t,!0,this._allowSeconds)).filter(t=>typeof t=="string")}set restrictedTimes(t){Array.isArray(t)||(t=[]),this._restrictedTimes=t.filter(e=>typeof e=="string").map(e=>this._convertTimeStringToMillis(e,!0,!0)).filter(e=>typeof e=="number")}get startTime(){return lt(this._startTime,!0,this._allowSeconds)}set startTime(t){if(this._startTime!==t){if(t&&!this._isValidInputValue(t)){this._warnInvalidFormat(t);return}this._startTime=this._convertTimeStringToMillis(t,!0,this._allowSeconds)}}get step(){return this._step}set step(t){this._step=t}get allowInput(){return this._allowInput}set allowInput(t){this._allowInput!==t&&(this._allowInput=t,this._isInitialized&&(this._applyAllowInput(),this._applyMask()))}get popupTarget(){return this._popupTarget}set popupTarget(t){this._popupTarget!==t&&(this._popupTarget=t)}get showNow(){return this._showNow}set showNow(t){this._showNow!==t&&(this._showNow=t)}get showHourOptions(){return this._showHourOptions}set showHourOptions(t){this._showHourOptions!==t&&(this._showHourOptions=t)}get customOptions(){return this._customOptions}set customOptions(t){this._customOptions=Array.isArray(t)?t:[]}set validationCallback(t){this._validationCallback=t,this._isInitialized&&this._applyMask()}set parseCallback(t){this._parseCallback=t}set formatCallback(t){this._formatCallback=t}set coercionCallback(t){this._coercionCallback=t}set prepareMaskCallback(t){this._prepareMaskCallback=t,this._isInitialized&&this._applyMask()}get disabled(){return this._disabled}set disabled(t){this._disabled!==t&&(this._disabled=!!t,this._isInitialized&&this._applyDisabled(),this._adapter.toggleHostAttribute(W.attributes.DISABLED,this._disabled))}get popupClasses(){return Array.isArray(this._popupClasses)?[...this._popupClasses]:this._popupClasses}set popupClasses(t){Array.isArray(t)?this._popupClasses=[...t]:this._popupClasses=[t]}get allowDropdown(){return this._allowDropdown}set allowDropdown(t){this._allowDropdown!==t&&(this._allowDropdown=t,this._isInitialized&&this._applyAllowDropdown())}};var ay="<template><slot></slot></template>",ny=":host{display:block}:host([hidden]){display:none}",W1=class extends M{static get observedAttributes(){return[W.attributes.VALUE,W.attributes.OPEN,W.attributes.ALLOW_SECONDS,W.attributes.MASKED,W.attributes.SHOW_MASK_FORMAT,W.attributes.USE_24_HOUR_TIME,W.attributes.ALLOW_INVALID_TIME,W.attributes.MIN,W.attributes.MAX,W.attributes.START_TIME,W.attributes.STEP,W.attributes.ALLOW_INPUT,W.attributes.SHOW_NOW,W.attributes.SHOW_HOUR_OPTIONS,W.attributes.DISABLED,W.attributes.POPUP_CLASSES,W.attributes.ALLOW_DROPDOWN]}constructor(){super(),X.define([ml,jo]),z(this,ay,ny),this._core=new W4(new R4(this))}connectedCallback(){this.querySelector(W.selectors.INPUT)?this._core.initialize():C0(this,W.selectors.INPUT).then(()=>this._core.initialize())}disconnectedCallback(){this._core.destroy()}attributeChangedCallback(t,e,o){switch(t){case W.attributes.VALUE:this.value=o;break;case W.attributes.OPEN:this.open=p(o);break;case W.attributes.ALLOW_SECONDS:this.allowSeconds=p(o);break;case W.attributes.MASKED:this.masked=p(o);break;case W.attributes.SHOW_MASK_FORMAT:this.showMaskFormat=p(o);break;case W.attributes.USE_24_HOUR_TIME:this.use24HourTime=p(o);break;case W.attributes.ALLOW_INVALID_TIME:this.allowInvalidTime=p(o);break;case W.attributes.SHOW_NOW:this.showNow=p(o);break;case W.attributes.SHOW_HOUR_OPTIONS:this.showHourOptions=p(o);break;case W.attributes.MIN:this.min=o;break;case W.attributes.MAX:this.max=o;break;case W.attributes.START_TIME:this.startTime=o;break;case W.attributes.STEP:this.step=K(o);break;case W.attributes.ALLOW_INPUT:this.allowInput=p(o);break;case W.attributes.DISABLED:this.disabled=p(o);break;case W.attributes.POPUP_CLASSES:this.popupClasses=o;break;case W.attributes.ALLOW_DROPDOWN:this.allowDropdown=p(o);break}}};i([c()],W1.prototype,"value",2),i([c()],W1.prototype,"open",2),i([c()],W1.prototype,"allowSeconds",2),i([c()],W1.prototype,"masked",2),i([c()],W1.prototype,"showMaskFormat",2),i([c()],W1.prototype,"use24HourTime",2),i([c()],W1.prototype,"allowInvalidTime",2),i([c()],W1.prototype,"min",2),i([c()],W1.prototype,"max",2),i([c()],W1.prototype,"restrictedTimes",2),i([c()],W1.prototype,"startTime",2),i([c()],W1.prototype,"step",2),i([c()],W1.prototype,"allowInput",2),i([c()],W1.prototype,"showNow",2),i([c()],W1.prototype,"showHourOptions",2),i([c()],W1.prototype,"customOptions",2),i([c()],W1.prototype,"validationCallback",2),i([c()],W1.prototype,"parseCallback",2),i([c()],W1.prototype,"formatCallback",2),i([c()],W1.prototype,"coercionCallback",2),i([c()],W1.prototype,"prepareMaskCallback",2),i([c()],W1.prototype,"disabled",2),i([c()],W1.prototype,"popupClasses",2),i([c()],W1.prototype,"allowDropdown",2),i([c()],W1.prototype,"popupTarget",2),W1=i([y({name:W.elementName,dependencies:[v2,j1,i1,j,R1,j,B1]})],W1);var xm=class extends o2{constructor(t){super(t)}_build(){let t=document.createElement(W.elementName);return this._attachTextField(t),t}get inputElement(){return this._textFieldDelegate.inputElement}get textFieldElement(){return this._textFieldDelegate.element}get value(){return this._element.value}set value(t){this._element.value=t}get disabled(){return this._element.disabled}set disabled(t){this._element.disabled=t}get invalid(){return this._textFieldDelegate.invalid||!1}set invalid(t){this._textFieldDelegate.invalid=t}onChange(t){this._element.addEventListener(W.events.CHANGE,e=>{var o;return t((o=e.detail)!=null?o:"")})}onInput(t){this._element.addEventListener(W.events.INPUT,e=>{var o;return t((o=e.detail)!=null?o:"")})}onFocus(t){this._textFieldDelegate.inputElement.addEventListener("focus",e=>t(e))}onBlur(t){this._textFieldDelegate.inputElement.addEventListener("blur",e=>t(e))}_attachTextField(t){var o,a,s,r;let e={props:d({},(a=(o=this._config.options)==null?void 0:o.textFieldDelegateConfig)==null?void 0:a.props),options:d({},(r=(s=this._config.options)==null?void 0:s.textFieldDelegateConfig)==null?void 0:r.options)};this._textFieldDelegate=new ao(e),t.appendChild(this._textFieldDelegate.element)}};function fm(){f(W1)}var z3=`${b}toast`,bm={OPEN:"open",DURATION:"duration",PLACEMENT:"placement",ACTION_TEXT:"action-text",DISMISSIBLE:"dismissible",DISMISS_LABEL:"dismiss-label",THEME:"theme"},sy=d({},bm),ry={ACTION:`${z3}-action`,CLOSE:`${z3}-close`},iy={EXITING:"exiting"},ly={SURFACE:".surface",ACTION_BUTTON:".action-button",CLOSE_BUTTON:".close-button"},cy={PLACEMENT:"bottom",DURATION:2750,THEME:"default"},k1={elementName:z3,observedAttributes:bm,attributes:sy,classes:iy,selectors:ly,defaults:cy,events:ry};var G4=class extends I{constructor(t){super(t),this._overlayElement=w(t,B.elementName),this._surfaceElement=w(t,k1.selectors.SURFACE),this._actionButtonElement=w(t,k1.selectors.ACTION_BUTTON),this._closeButtonElement=w(t,k1.selectors.CLOSE_BUTTON)}show(){this._overlayElement.open=!0}async hide(){await Gt(this._surfaceElement,k1.classes.EXITING),this._overlayElement.open=!1}addCloseListener(t){this._closeButtonElement.addEventListener("click",t)}removeCloseListener(t){this._closeButtonElement.removeEventListener("click",t)}addActionListener(t){this._actionButtonElement.addEventListener("click",t)}removeActionListener(t){this._actionButtonElement.removeEventListener("click",t)}setDismissLabel(t){this._closeButtonElement.setAttribute("aria-label",t)}setActionText(t){this._actionButtonElement.textContent=t,t?this._actionButtonElement.removeAttribute("hidden"):this._actionButtonElement.setAttribute("hidden","")}};var q4=class{constructor(t){this._adapter=t;this._open=!1;this._duration=k1.defaults.DURATION;this._placement=k1.defaults.PLACEMENT;this._dismissible=!1;this._theme=k1.defaults.THEME;this._actionListener=this._onAction.bind(this);this._closeListener=this._onClose.bind(this)}initialize(){this._adapter.tryApplyGlobalConfiguration(["duration","placement","dismissible"]),this._open&&this.show()}show(){this._adapter.show(),isFinite(this._duration)&&this._duration>0&&(this._hideTimeout&&window.clearTimeout(this._hideTimeout),this._hideTimeout=window.setTimeout(()=>this.hide(),this._duration)),this._open=!0,this._adapter.toggleHostAttribute(k1.attributes.OPEN,this._open)}async hide({dispatchEvent:t=!0}={}){this._hideTimeout&&(window.clearTimeout(this._hideTimeout),this._hideTimeout=void 0),await this._adapter.hide(),this._open=!1,this._adapter.toggleHostAttribute(k1.attributes.OPEN,this._open),t&&this._adapter.dispatchHostEvent(new CustomEvent(k1.events.CLOSE,{bubbles:!0}))}_onAction(t){t.stopPropagation(),this._adapter.dispatchHostEvent(new CustomEvent(k1.events.ACTION,{bubbles:!0}))}_onClose(t){this.hide()}get open(){return this._open}set open(t){t=!!t,this._open!==t&&(this._adapter.isConnected?t?this.show():this.hide({dispatchEvent:!1}):this._open=t,this._adapter.toggleHostAttribute(k1.attributes.OPEN,this._open))}get duration(){return this._duration}set duration(t){this._duration!==t&&(this._duration=t,this._hideTimeout&&(window.clearTimeout(this._hideTimeout),isFinite(this._duration)&&this._duration>0&&(this._hideTimeout=window.setTimeout(()=>this.hide(),this._duration))))}get placement(){return this._placement}set placement(t){this._placement!==t&&(this._placement=t,this._adapter.setHostAttribute(k1.attributes.PLACEMENT,this._placement))}get actionText(){return this._actionText}set actionText(t){var e;t=(e=t==null?void 0:t.trim())!=null?e:"",this._actionText!==t&&(this._actionText=t,this._adapter.setActionText(this._actionText),this._actionText?this._adapter.addActionListener(this._actionListener):this._adapter.removeActionListener(this._actionListener),this._adapter.toggleHostAttribute(k1.attributes.ACTION_TEXT,!!this._actionText,this._actionText))}get dismissible(){return this._dismissible}set dismissible(t){t=!!t,this._dismissible!==t&&(this._dismissible=t,this._dismissible?this._adapter.addCloseListener(this._closeListener):this._adapter.removeCloseListener(this._closeListener),this._adapter.toggleHostAttribute(k1.attributes.DISMISSIBLE,this._dismissible))}get dismissLabel(){return this._dismissLabel}set dismissLabel(t){this._dismissLabel!==t&&(this._dismissLabel=t,this._adapter.setDismissLabel(this._dismissLabel))}get theme(){return this._theme}set theme(t){t!=null||(t=k1.defaults.THEME),this._theme!==t&&(this._theme=t,this._adapter.setHostAttribute(k1.attributes.THEME,this._theme))}};var hy='<template><forge-overlay exportparts="root:overlay" no-anchor persistent><div class="surface" part="surface"><slot name="icon"></slot><div class="message" part="message"><slot></slot></div><forge-button hidden part="action-button" class="action-button"></forge-button><forge-icon-button part="close-button" class="close-button" aria-label="Dismiss" density="medium"><forge-icon name="close"></forge-icon></forge-icon-button></div></forge-overlay></template>',vy='@keyframes slidein{from{transform:translateY(var(--_toast-slide-origin))}to{transform:translateY(0)}}@keyframes slideout{from{transform:translateY(0)}to{transform:translateY(var(--_toast-slide-origin))}}@keyframes fadein{from{opacity:0}to{opacity:1}}@keyframes fadeout{from{opacity:1}to{opacity:0}}@layer base,open,theme,placement,media; @layer base{:host{display:contents}:host([hidden]){display:none}.surface{--_toast-background:var(--forge-toast-background, var(--forge-theme-surface-inverse, #333333));--_toast-color:var(--forge-toast-color, var(--forge-theme-on-surface-inverse, #ffffff));--_toast-offset:var(--forge-toast-offset, var(--forge-spacing-medium, 16px));--_toast-shape:var(--forge-toast-shape, calc(var(--forge-shape-medium, 4px) * var(--forge-shape-factor, 1)));--_toast-elevation:var(--forge-toast-elevation, 0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12));--_toast-action-color:var(--forge-toast-action-color, var(--forge-theme-secondary, #ffc107));--_toast-min-width:var(--forge-toast-min-width, 344px);--_toast-max-width:var(--forge-toast-max-width, 672px);--_toast-min-height:var(--forge-toast-min-height, 48px);--_toast-inline-padding:var(--forge-toast-inline-padding, var(--forge-spacing-medium, 16px));--_toast-spacing:var(--forge-toast-spacing, var(--forge-spacing-xsmall, 8px));--_toast-message-padding:var(--forge-toast-message-padding, var(--forge-spacing-xsmall, 8px));--_toast-enter-duration:var(--forge-toast-enter-duration, var(--forge-animation-duration-medium1, 250ms));--_toast-enter-timing:var(--forge-toast-enter-timing, var(--forge-animation-easing-decelerate, cubic-bezier(0, 0, 0, 1)));--_toast-exit-duration:var(--forge-toast-exit-duration, var(--forge-animation-duration-short4, 200ms));--_toast-exit-timing:var(--forge-toast-exit-timing, var(--forge-animation-easing-emphasized-accelerate, cubic-bezier(0.3, 0, 0.8, 0.15)));--_toast-slide-origin:var(--forge-toast-slide-origin, 100%)}.surface{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-body2-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-body2-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-font-size-scale, 1)));font-weight:var(--forge-typography-body2-font-weight,400);line-height:var(--forge-typography-body2-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-line-height-scale, 1.375)));letter-spacing:var(--forge-typography-body2-letter-spacing, .015625em);text-transform:var(--forge-typography-body2-text-transform,inherit);text-decoration:var(--forge-typography-body2-text-decoration,inherit);position:fixed;display:flex;align-items:center;column-gap:var(--_toast-spacing);border-radius:var(--_toast-shape);padding-inline:var(--_toast-inline-padding);margin:var(--_toast-offset);min-width:var(--_toast-min-width);max-width:var(--_toast-max-width);min-height:var(--_toast-min-height);box-sizing:border-box;background:var(--_toast-background);color:var(--_toast-color);box-shadow:var(--_toast-elevation)}.message{flex-grow:1;padding-block:var(--_toast-message-padding);text-overflow:ellipsis;overflow:hidden}forge-button.action-button{--forge-button-primary-color:var(--_toast-action-color)}forge-icon-button.close-button{--forge-icon-button-focus-indicator-color:var(--_toast-color)}:host(:not([dismissible])) .close-button{display:none}.action-button:not([hidden]){margin-inline-end:-8px}:host([dismissible]) .close-button{margin-inline-end:-8px}}@layer theme{:host([theme=primary]) .surface{--_toast-background:var(--forge-toast-background, var(--forge-theme-primary, #3f51b5));--_toast-color:var(--forge-toast-color, var(--forge-theme-on-primary, #ffffff));--_toast-action-color:var(--_toast-color)}:host([theme=secondary]) .surface{--_toast-background:var(--forge-toast-background, var(--forge-theme-secondary, #ffc107));--_toast-color:var(--forge-toast-color, var(--forge-theme-on-secondary, #000000));--_toast-action-color:var(--_toast-color)}:host([theme=tertiary]) .surface{--_toast-background:var(--forge-toast-background, var(--forge-theme-tertiary, #3d5afe));--_toast-color:var(--forge-toast-color, var(--forge-theme-on-tertiary, #ffffff));--_toast-action-color:var(--_toast-color)}:host([theme=success]) .surface{--_toast-background:var(--forge-toast-background, var(--forge-theme-success, #2e7d32));--_toast-color:var(--forge-toast-color, var(--forge-theme-on-success, #ffffff));--_toast-action-color:var(--_toast-color)}:host([theme=warning]) .surface{--_toast-background:var(--forge-toast-background, var(--forge-theme-warning, #d14900));--_toast-color:var(--forge-toast-color, var(--forge-theme-on-warning, #ffffff));--_toast-action-color:var(--_toast-color)}:host([theme=error]) .surface{--_toast-background:var(--forge-toast-background, var(--forge-theme-error, #b00020));--_toast-color:var(--forge-toast-color, var(--forge-theme-on-error, #ffffff));--_toast-action-color:var(--_toast-color)}:host([theme=info]) .surface{--_toast-background:var(--forge-toast-background, var(--forge-theme-info, #1565c0));--_toast-color:var(--forge-toast-color, var(--forge-theme-on-info, #ffffff));--_toast-action-color:var(--_toast-color)}}@layer open{forge-overlay[open] .surface{animation-name:slidein;animation-duration:var(--_toast-enter-duration);animation-timing-function:var(--_toast-enter-timing)}forge-overlay[open] .surface.exiting{animation-name:slideout;animation-duration:var(--_toast-exit-duration);animation-timing-function:var(--_toast-exit-timing)}}@layer placement{:host([placement=bottom-start]) .surface{bottom:0;left:0}:host(:is(:not([placement]),[placement=bottom])) .surface{bottom:0;left:50%;translate:-50%}:host([placement=bottom-end]) .surface{bottom:0;right:0}:host([placement=top-start]) .surface{--_toast-slide-origin:var(--forge-toast-slide-origin, -100%);top:0;left:0}:host([placement=top]) .surface{--_toast-slide-origin:var(--forge-toast-slide-origin, -100%);top:0;left:50%;translate:-50%}:host([placement=top-end]) .surface{--_toast-slide-origin:var(--forge-toast-slide-origin, -100%);top:0;right:0}}@layer media{@media (prefers-reduced-motion:reduce){forge-overlay[open] .surface{animation-name:fadein}forge-overlay[open] .surface.exiting{animation-name:fadeout}}@media (max-width:599px){:host([placement^=top]) .surface{bottom:auto;top:0}.surface{bottom:0;left:0;right:0;margin:0;translate:none;max-width:none;min-width:auto;border-radius:0}}}',Jt=class extends L1(V1(M)){static get observedAttributes(){return Object.values(k1.observedAttributes)}constructor(){super(),X.define(jo),z(this,hy,vy),this._core=new q4(new G4(this))}connectedCallback(){this.hasAttribute("role")||this.getAttribute("aria-hidden")==="true"||this[N]({role:"alert",ariaLive:"assertive",ariaAtomic:"true"}),this._core.initialize()}attributeChangedCallback(t,e,o){switch(t){case k1.attributes.OPEN:this.open=p(o);break;case k1.attributes.DURATION:{let a=Number(o);this.duration=a&&a>0?a:k1.defaults.DURATION;break}case k1.attributes.PLACEMENT:this.placement=o||k1.defaults.PLACEMENT;break;case k1.attributes.ACTION_TEXT:this.actionText=o;break;case k1.attributes.DISMISSIBLE:this.dismissible=p(o);break;case k1.attributes.DISMISS_LABEL:this.dismissLabel=o;break;case k1.attributes.THEME:this.theme=o;break}}show(){this._core.show()}hide(){return this._core.hide()}static present(l){var h=l,{message:t,element:e,icon:o,className:a,topLayer:s}=h,r=O1(h,["message","element","icon","className","topLayer"]);let v=document.createElement(k1.elementName);if(e?v.appendChild(e):t&&v.append(t),o){let u=document.createElement("forge-icon");Object.assign(u,o),u.slot="icon",v.appendChild(u)}if(a){let u=Array.isArray(a)?a:[a];v.classList.add(...u)}return r&&Object.assign(v,r),(s&&Array.from(B1[b0]).at(-1)||document.body).appendChild(v),v.open=!0,v.addEventListener(k1.events.CLOSE,()=>v.remove()),v}};i([c()],Jt.prototype,"open",2),i([c()],Jt.prototype,"duration",2),i([c()],Jt.prototype,"placement",2),i([c()],Jt.prototype,"actionText",2),i([c()],Jt.prototype,"dismissible",2),i([c()],Jt.prototype,"dismissLabel",2),i([c()],Jt.prototype,"theme",2),Jt=i([y({name:k1.elementName,dependencies:[d2,T2,i1,j]})],Jt);function ym(){f(Jt)}var py=`${b}view-switcher`,H3={ROOT:"forge-view-switcher",VIEW_HIDDEN:"forge-view-switcher__view--hidden",VIEW_SWITCHER_SLIDE:"slide",VIEW_SWITCHER_FADE:"fade"},my={ROOT:`.${H3.ROOT}`,DEFAULT_SLOT:"slot:not([name])",VIEW_HIDDEN:`.${H3.VIEW_HIDDEN}`},dy={INDEX:"index",ANIMATION_TYPE:"animation-type"},gy={DEFAULT_TRANSITION_DURATION:500},e2={elementName:py,attributes:dy,classes:H3,selectors:my,numbers:gy},I3=(e=>(e.Left="left",e.Right="right",e))(I3||{}),wy=(o=>(o.None="none",o.Slide="slide",o.Fade="fade",o))(wy||{});var Y4=class extends I{constructor(t){super(t),this._rootElement=w(t,e2.selectors.ROOT),this._slotElement=w(t,e2.selectors.DEFAULT_SLOT)}getViewCount(){return this._getViews().length}startViewObserver(t){this._viewObserver=new MutationObserver(t),this._viewObserver.observe(this._component,{childList:!0})}stopViewObserver(){var t;(t=this._viewObserver)==null||t.disconnect()}initializeSlideViews(t){let e=this._getViews();e.forEach((o,a)=>{if(o.style.removeProperty("opacity"),o.style.removeProperty("display"),a===t){e[t].classList.remove(e2.classes.VIEW_HIDDEN),o.style.removeProperty("visibility");return}o.style.transition="none",o.classList.add(e2.classes.VIEW_HIDDEN),o.style.visibility="hidden",a>t?o.style.transform="translate3d(100%, 0, 0)":o.style.transform="translate3d(-100%, 0, 0)"}),window.requestAnimationFrame(()=>{e=this._getViews(),e.forEach((o,a)=>{a!==t&&o.style.removeProperty("transition")})})}initializeFadeViews(t){let e=this._getViews();e.forEach((o,a)=>{if(o.style.removeProperty("transform"),o.style.removeProperty("display"),a===t){o.classList.remove(e2.classes.VIEW_HIDDEN),o.style.removeProperty("visibility");return}o.classList.add(e2.classes.VIEW_HIDDEN),o.style.visibility="hidden"}),e[t]&&(e[t].style.opacity="1")}setActiveView(t){let e=this._getViews();e.forEach((o,a)=>{a!==t&&(o.classList.add(e2.classes.VIEW_HIDDEN),o.style.display="none")}),e[t]&&(e[t].classList.remove(e2.classes.VIEW_HIDDEN),e[t].style.removeProperty("display"))}hideInactiveViews(t){this._getViews().forEach((o,a)=>{if(o.style.removeProperty("opacity"),o.style.removeProperty("transform"),o.style.removeProperty("visibility"),a===t){o.classList.remove(e2.classes.VIEW_HIDDEN);return}o.classList.add(e2.classes.VIEW_HIDDEN),o.style.display="none"})}async transitionToView(t,e,o,a){let s=this._getViews(),r=s[t],l=s[e];return new Promise(h=>{l.style.removeProperty("visibility"),window.requestAnimationFrame(()=>{let v;switch(o){case"slide":this._slideToView(r,l,a),v="transform";break;case"fade":this._fadeToView(r,l),v="opacity";break;default:return}this._animateHeight(r,l),r?r.addEventListener("transitionend",m):l.classList.remove(e2.classes.VIEW_HIDDEN);function m(u){u.propertyName===v&&(r.removeEventListener("transitionend",m),l.classList.remove(e2.classes.VIEW_HIDDEN),h())}})})}_slideToView(t,e,o){o==="left"?(t&&(t.style.transform="translate3d(-100%, 0, 0)"),e.style.transform="translate3d(0, 0, 0)"):(t&&(t.style.transform="translate3d(100%, 0, 0)"),e.style.transform="translate3d(0, 0, 0)")}_fadeToView(t,e){t&&(t.style.opacity="0"),e.style.opacity="1"}_animateHeight(t,e){let o=t?this._getViewHeight(t):0,a=this._getViewHeight(e);o!==a&&(this._rootElement.addEventListener("transitionend",this._onRootTransitionEnd.bind(this)),this._setHeight(o),window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>{this._setHeight(a)})}))}_onRootTransitionEnd(t){t.propertyName==="height"&&(this._rootElement.removeEventListener("transitionend",this._onRootTransitionEnd),this._rootElement.style.removeProperty("height"))}setAnimationType(t){switch(ye([e2.classes.VIEW_SWITCHER_SLIDE,e2.classes.VIEW_SWITCHER_FADE],this._component),t){case"slide":this._component.classList.add(e2.classes.VIEW_SWITCHER_SLIDE);break;case"fade":this._component.classList.add(e2.classes.VIEW_SWITCHER_FADE);break}}_getViews(){return this._slotElement.assignedNodes().filter(t=>t.nodeType===1)}_setHeight(t){this._rootElement.style.height=`${t}px`}_getViewHeight(t){let e=0,o=t.children.length?Array.from(t.children):[t];for(let a of o){let s=window.getComputedStyle(a),r=parseFloat(s.marginTop)+parseFloat(s.marginBottom);e+=Math.ceil(a.offsetHeight+r)}return e}};var K4=class{constructor(t){this._adapter=t;this._viewCount=0;this._viewIndex=0;this._animationType="none";this._viewsChangedListener=()=>this._onViewsChanged()}initialize(){this._viewCount=this._adapter.getViewCount(),this._adapter.startViewObserver(this._viewsChangedListener),this._adapter.setAnimationType(this._animationType),this._viewCount&&this._initializeAnimationType()}destroy(){this._adapter.stopViewObserver()}_initializeAnimationType(){switch(this._animationType){case"slide":this._adapter.initializeSlideViews(this._viewIndex);break;case"fade":this._adapter.initializeFadeViews(this._viewIndex);break;case"none":default:this._adapter.hideInactiveViews(this._viewIndex);break}}_onViewsChanged(){if(this._viewCount=this._adapter.getViewCount(),this._viewCount===0&&(this._viewIndex=0),this._viewCount&&this._initializeAnimationType(),this._viewCount>0&&this._viewIndex>=this._viewCount){let t=this._viewIndex;this._viewIndex=this._viewCount>0?this._viewCount-1:0,this._goToView(t,this._viewCount)}}async _goToView(t,e){if(this._viewCount=O(e)?e:this._adapter.getViewCount(),!(!(this._viewIndex>=0&&this._viewIndex<=this._viewCount-1)||t===this._clampedViewIndex(this._viewIndex,this._viewCount)))switch(this._animationType){case"slide":{let a=this._viewIndex>t?"left":"right";await this._adapter.transitionToView(t,this._viewIndex,"slide",a),this._adapter.initializeSlideViews(this._viewIndex);break}case"fade":await this._adapter.transitionToView(t,this._viewIndex,"fade"),this._adapter.initializeFadeViews(this._viewIndex);break;case"none":default:this._adapter.setActiveView(this._viewIndex);break}}_clampedViewIndex(t,e){return t<0?t=0:t>e-1&&(t=e>0?e-1:0),t}next(){this.index++}previous(){this.index--}goToStart(){this.index=0}goToEnd(){this.index=this._viewCount-1}get index(){return this._viewIndex}set index(t){if(this._viewIndex!==t){let e=this._viewIndex;this._viewIndex=t,this._goToView(e),this._adapter.setHostAttribute(e2.attributes.INDEX,this._viewIndex.toString())}}get animationType(){return this._animationType}set animationType(t){this._animationType!==t&&(this._animationType=t,this._initializeAnimationType(),this._adapter.setAnimationType(this._animationType),this._adapter.setHostAttribute(e2.attributes.ANIMATION_TYPE,this._animationType))}};var uy=`${b}view`,Mm={elementName:uy};var _y="<template><slot></slot></template>",xy=":host{display:block}:host([hidden]){display:none}",mo=class extends M{constructor(){super(),z(this,_y,xy)}};mo=i([y({name:Mm.elementName})],mo);var fy='<template><div class="forge-view-switcher" part="root"><slot></slot></div></template>',by=":host{height:var(--_view-switcher-height);width:var(--_view-switcher-width);display:block}:host{--_view-switcher-height:var(--forge-view-switcher-height, auto);--_view-switcher-width:var(--forge-view-switcher-width, auto)}:host([hidden]){display:none}.forge-view-switcher{--_view-switcher-animation-duration:var(--forge-view-switcher-animation-duration, var(--forge-animation-duration-medium2, 300ms));--_view-switcher-animation-easing:var(--forge-view-switcher-animation-easing, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1)))}.forge-view-switcher{height:var(--_view-switcher-height);width:var(--_view-switcher-width);position:relative;overflow:hidden;transition-property:height;transition-duration:var(--_view-switcher-animation-duration);transition-timing-function:var(--_view-switcher-animation-easing)}.forge-view-switcher ::slotted(.forge-view-switcher__view--hidden){position:absolute;top:0;right:0;bottom:0;left:0}:host(.slide) ::slotted(forge-view){transition-property:transform;transition-duration:var(--_view-switcher-animation-duration);transition-timing-function:var(--_view-switcher-animation-easing);will-change:transform}:host(.fade) ::slotted(forge-view){transition-property:opacity;transition-duration:var(--_view-switcher-animation-duration);transition-timing-function:var(--_view-switcher-animation-easing);will-change:opacity}:host(.fade) ::slotted(.forge-view-switcher__view--hidden){opacity:0}",go=class extends M{static get observedAttributes(){return[e2.attributes.INDEX,e2.attributes.ANIMATION_TYPE]}constructor(){super(),z(this,fy,by),this._core=new K4(new Y4(this))}connectedCallback(){this._core.initialize()}disconnectedCallback(){this._core.destroy()}attributeChangedCallback(t,e,o){switch(t){case e2.attributes.INDEX:this.index=K(o);break;case e2.attributes.ANIMATION_TYPE:this.animationType=o;break}}next(){this._core.next()}previous(){this._core.previous()}goToStart(){this._core.goToStart()}goToEnd(){this._core.goToEnd()}};i([c()],go.prototype,"index",2),i([c()],go.prototype,"animationType",2),go=i([y({name:e2.elementName,dependencies:[mo]})],go);function zm(){f(mo)}function Hm(){f(go)}var yy=`${b}deprecated-button`,My={TYPE:"type",DISABLED:"disabled",FULL_WIDTH:"full-width"},zy={BUTTON:"button,a"},Ft={elementName:yy,attributes:My,selectors:zy};var Hy='<template><slot></slot><forge-focus-indicator part="focus-indicator"></forge-focus-indicator><forge-state-layer exportparts="surface:state-layer"></forge-state-layer></template>',Iy=':host{--_button-primary-color:var(--forge-button-primary-color, var(--forge-theme-primary, #3f51b5));--_button-text-color:var(--forge-button-text-color, var(--_button-primary-color));--_button-disabled-color:var(--forge-button-disabled-color, var(--forge-theme-surface-container, #e0e0e0));--_button-padding:var(--forge-button-padding, var(--forge-spacing-medium, 16px));--_button-display:var(--forge-button-display, inline-grid);--_button-justify:var(--forge-button-justify, center);--_button-shape:var(--forge-button-shape, calc(var(--forge-shape-medium, 4px) * var(--forge-shape-factor, 1)));--_button-height:var(--forge-button-height, 36px);--_button-min-width:var(--forge-button-min-width, 64px);--_button-spacing:var(--forge-button-spacing, var(--forge-spacing-xsmall, 8px));--_button-border-width:var(--forge-button-border-width, medium);--_button-border-style:var(--forge-button-border-style, none);--_button-border-color:var(--forge-button-border-color, currentColor);--_button-shape-start-start-radius:var(--forge-button-shape-start-start-radius, var(--_button-shape));--_button-shape-start-end-radius:var(--forge-button-shape-start-end-radius, var(--_button-shape));--_button-shape-end-start-radius:var(--forge-button-shape-end-start-radius, var(--_button-shape));--_button-shape-end-end-radius:var(--forge-button-shape-end-end-radius, var(--_button-shape));--_button-padding-block:var(--forge-button-padding-block, var(--_button-0));--_button-padding-inline:var(--forge-button-padding-inline, var(--_button-padding));--_button-background:var(--forge-button-background, transparent);--_button-hover-background:var(--forge-button-hover-background, var(--_button-background));--_button-active-background:var(--forge-button-active-background, var(--_button-background));--_button-color:var(--forge-button-color, var(--_button-text-color));--_button-icon-size:var(--forge-button-icon-size, calc(var(--forge-typography-font-size, 1rem) * 1.125));--_button-shadow:var(--forge-button-shadow, none);--_button-hover-shadow:var(--forge-button-hover-shadow, none);--_button-active-shadow:var(--forge-button-active-shadow, none);--_button-cursor:var(--forge-button-cursor, pointer);--_button-transition-duration:var(--forge-button-transition-duration, var(--forge-animation-duration-short3, 150ms));--_button-transition-timing:var(--forge-button-transition-timing, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1)));--_button-text-padding-inline:var(--forge-button-text-padding-inline, var(--forge-spacing-xsmall, 8px));--_button-outlined-background:var(--forge-button-outlined-background, transparent);--_button-outlined-color:var(--forge-button-outlined-color, var(--_button-primary-color));--_button-outlined-border-width:var(--forge-button-outlined-border-width, var(--forge-border-thin, 1px));--_button-outlined-border-style:var(--forge-button-outlined-border-style, solid);--_button-outlined-border-color:var(--forge-button-outlined-border-color, var(--_button-primary-color));--_button-tonal-background:var(--forge-button-tonal-background, var(--forge-theme-primary-container, #d1d5ed));--_button-tonal-disabled-background:var(--forge-button-tonal-disabled-background, var(--_button-disabled-color));--_button-tonal-color:var(--forge-button-tonal-color, var(--forge-theme-on-primary-container, #222c62));--_button-tonal-disabled-color:var(--forge-button-tonal-disabled-color, var(--_button-disabled-text-color));--_button-filled-background:var(--forge-button-filled-background, var(--_button-primary-color));--_button-filled-disabled-background:var(--forge-button-filled-disabled-background, var(--_button-disabled-color));--_button-filled-color:var(--forge-button-filled-color, var(--forge-theme-on-primary, #ffffff));--_button-filled-disabled-color:var(--forge-button-filled-disabled-color, var(--_button-disabled-text-color));--_button-raised-background:var(--forge-button-raised-background, var(--_button-primary-color));--_button-raised-disabled-background:var(--forge-button-raised-disabled-background, var(--_button-disabled-color));--_button-raised-color:var(--forge-button-raised-color, var(--forge-theme-on-primary, #ffffff));--_button-raised-disabled-color:var(--forge-button-raised-disabled-color, var(--_button-disabled-text-color));--_button-raised-shadow:var(--forge-button-raised-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12));--_button-raised-hover-shadow:var(--forge-button-raised-hover-shadow, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12));--_button-raised-active-shadow:var(--forge-button-raised-active-shadow, 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12));--_button-raised-disabled-shadow:var(--forge-button-raised-disabled-shadow, none);--_button-link-color:var(--forge-button-link-color, var(--_button-primary-color));--_button-link-text-decoration:var(--forge-button-link-text-decoration, underline);--_button-link-height:var(--forge-button-link-height, auto);--_button-link-padding:var(--forge-button-link-padding, 0);--_button-link-line-height:var(--forge-button-link-line-height, normal);--_button-link-width:var(--forge-button-link-width, auto);--_button-link-hover-text-decoration:var(--forge-button-link-hover-text-decoration, none);--_button-link-active-opacity:var(--forge-button-link-active-opacity, 0.65);--_button-link-transition-duration:var(--forge-button-link-transition-duration, var(--forge-animation-duration-short3, 150ms));--_button-link-transition-timing:var(--forge-button-link-transition-timing, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1)));--_button-disabled-cursor:var(--forge-button-disabled-cursor, not-allowed);--_button-disabled-text-color:var(--forge-button-disabled-text-color, var(--forge-theme-text-low, rgba(0, 0, 0, 0.38)));--_button-disabled-background:var(--forge-button-disabled-background, transparent);--_button-disabled-border-color:var(--forge-button-disabled-border-color, var(--_button-disabled-color));--_button-disabled-shadow:var(--forge-button-disabled-shadow, none);--_button-dense-height:var(--forge-button-dense-height, 24px);--_button-pill-shape:var(--forge-button-pill-shape, calc(var(--forge-shape-full, 9999px) * var(--forge-shape-factor, 1)));--_button-pill-padding-inline:var(--forge-button-pill-padding-inline, var(--forge-spacing-small, 12px));--_button-focus-indicator-offset:var(--forge-button-focus-indicator-offset, 4px);--_button-text-focus-indicator-offset:var(--forge-button-text-focus-indicator-offset, 0px);--_button-link-focus-indicator-offset:var(--forge-button-link-focus-indicator-offset, 2px);--_button-popover-icon-transition-duration:var(--forge-button-popover-icon-transition-duration, var(--forge-animation-duration-short3, 150ms));--_button-popover-icon-transition-timing:var(--forge-button-popover-icon-transition-timing, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1)));--_button-popover-icon-open-rotation:var(--forge-button-popover-icon-open-rotation, 180deg)}:host{display:var(--_button-display);position:relative;outline:0;vertical-align:middle;-webkit-tap-highlight-color:transparent;border-radius:var(--_button-shape)}:host([hidden]){display:none}::slotted(:is(button,a)){-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-button-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-button-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-button-font-size-scale, .875)));font-weight:var(--forge-typography-button-font-weight,500);line-height:var(--forge-typography-button-line-height, normal);letter-spacing:var(--forge-typography-button-letter-spacing, .0714285714em);text-transform:var(--forge-typography-button-text-transform,inherit);text-decoration:var(--forge-typography-button-text-decoration,inherit);position:relative;display:var(--_button-display);grid-auto-flow:column;align-items:center;justify-content:var(--_button-justify);gap:var(--_button-spacing);z-index:0;box-sizing:border-box;min-inline-size:var(--_button-min-width);height:var(--_button-height);inline-size:100%;border-width:var(--_button-border-width);border-style:var(--_button-border-style);border-color:var(--_button-border-color);border-start-start-radius:var(--_button-shape-start-start-radius);border-start-end-radius:var(--_button-shape-start-end-radius);border-end-start-radius:var(--_button-shape-end-start-radius);border-end-end-radius:var(--_button-shape-end-end-radius);padding-block:var(--_button-padding-block);padding-inline:var(--_button-padding-inline);box-shadow:var(--_button-shadow);outline:0;user-select:none;-webkit-appearance:none;vertical-align:middle;text-decoration:none;white-space:nowrap;background:var(--_button-background);color:var(--_button-color);cursor:var(--_button-cursor);transition-property:box-shadow,background;transition-duration:var(--_button-transition-duration);transition-timing-function:var(--_button-transition-timing);--forge-icon-font-size:1.25em}::slotted(:is(button,a))::-moz-focus-inner{padding:0;border:0}::slotted(:is(button,a)):hover{--_button-shadow:var(--_button-hover-shadow);background:var(--_button-hover-background)}::slotted(:is(button,a)):active{--_button-shadow:var(--_button-active-shadow);background:var(--_button-active-background)}::slotted(a){text-decoration:none;--forge-typography-link-text-decoration:none}forge-state-layer{--forge-state-layer-color:var(--_button-color)}forge-focus-indicator{--forge-focus-indicator-color:var(--_button-primary-color);--forge-focus-indicator-outward-offset:var(--_button-focus-indicator-offset)}:host(:is([type*=unelevated],[type*=raised])) ::slotted(:is(button,a)){--_button-background:var(--_button-filled-background);--_button-color:var(--_button-filled-color)}:host(:is([type*=unelevated],[type*=raised])) forge-state-layer{--forge-state-layer-color:var(--_button-filled-color)}:host([type*=raised]) ::slotted(:is(button,a)){--_button-background:var(--_button-raised-background);--_button-color:var(--_button-raised-color);--_button-shadow:var(--_button-raised-shadow)}:host([type*=raised]) ::slotted(:is(button,a)):hover{--_button-shadow:var(--_button-raised-hover-shadow)}:host([type*=raised]) ::slotted(:is(button,a)):active{--_button-shadow:var(--_button-raised-active-shadow)}:host([type*=outlined]) ::slotted(:is(button,a)){--_button-background:var(--_button-outlined-background);--_button-color:var(--_button-outlined-color);--_button-border-width:var(--_button-outlined-border-width);--_button-border-style:var(--_button-outlined-border-style);--_button-border-color:var(--_button-outlined-border-color)}:host([full-width]){width:100%}:host(:is([dense],[type*=dense])) ::slotted(:is(button,a)){--_button-height:var(--_button-dense-height)}:host([disabled]){cursor:var(--_button-disabled-cursor)}:host([disabled]) ::slotted(button[disabled]){--_button-background:var(--_button-disabled-background);--_button-color:var(--_button-disabled-text-color);--_button-shadow:var(--_button-disabled-shadow);pointer-events:none}:host([type*=outlined][disabled]) ::slotted(button[disabled]){--_button-border-color:var(--_button-disabled-border-color)}:host(:is([type*=unelevated],[type*=raised])[disabled]) ::slotted(button[disabled]){--_button-background:var(--_button-filled-disabled-background);--_button-color:var(--_button-filled-disabled-color)}:host([type*=raised][disabled]) ::slotted(button[disabled]){--_button-background:var(--_button-raised-disabled-background);--_button-color:var(--_button-raised-disabled-color);--_button-shadow:var(--_button-raised-disabled-shadow)}',Ga=class extends M{constructor(){super();this._buttonOrAnchorElement=null;this._disabled=!1;this._fullWidth=!1;this._buttonChangeListener=this._onButtonChange.bind(this);this._keydownListener=e=>this._onKeydown(e);z(this,Hy,Iy),this._slotElement=w(this,"slot:not([name])"),this._focusIndicator=w(this,w1.elementName),this._stateLayer=w(this,I1.elementName)}static get observedAttributes(){return Object.values(Ft.attributes)}connectedCallback(){this._slotElement.addEventListener("slotchange",this._buttonChangeListener),this.children.length?this._initialize():Ko(this).then(()=>this._initialize())}disconnectedCallback(){this._detachButton()}attributeChangedCallback(e,o,a){switch(e){case Ft.attributes.TYPE:this.type=a;return;case Ft.attributes.DISABLED:this.disabled=p(a);return;case Ft.attributes.FULL_WIDTH:this.fullWidth=p(a);return}}_onKeydown(e){(e.key==="Enter"||e.key===" ")&&this._stateLayer.playAnimation()}_onButtonChange(){this._detachButton(),this._initialize()}_initialize(){this._buttonOrAnchorElement=this.querySelector(Ft.selectors.BUTTON),this._buttonOrAnchorElement&&(this._stateLayer.targetElement=this._buttonOrAnchorElement,this._focusIndicator.targetElement=this._buttonOrAnchorElement,this._buttonOrAnchorElement.addEventListener("keydown",this._keydownListener),this._buttonOrAnchorElement instanceof HTMLButtonElement&&this._disabled&&!this._buttonOrAnchorElement.disabled?this._buttonOrAnchorElement.disabled=!0:this.disabled=this._buttonOrAnchorElement instanceof HTMLButtonElement&&this._buttonOrAnchorElement.disabled,this._buttonOrAnchorElement instanceof HTMLButtonElement&&(this._buttonAttrMutationObserver=new MutationObserver(e=>{e.some(o=>o.attributeName==="disabled")&&this._syncDisabledState()}),this._buttonAttrMutationObserver.observe(this._buttonOrAnchorElement,{attributes:!0,attributeFilter:["disabled"]})))}_syncDisabledState(){let e=this._buttonOrAnchorElement instanceof HTMLButtonElement&&this._buttonOrAnchorElement.disabled;G(this,e,Ft.attributes.DISABLED)}_detachButton(){var e;(e=this._buttonOrAnchorElement)==null||e.removeEventListener("keydown",this._keydownListener),this._buttonAttrMutationObserver&&(this._buttonAttrMutationObserver.disconnect(),this._buttonAttrMutationObserver=void 0)}get type(){return this._type}set type(e){this._type!==e&&(this._type=e,this.setAttribute(Ft.attributes.TYPE,this._type))}get disabled(){return this._disabled}set disabled(e){var o;this._disabled!==e&&(this._disabled=e,(o=this._buttonOrAnchorElement)==null||o.toggleAttribute(Ft.attributes.DISABLED,this._disabled),this.toggleAttribute(Ft.attributes.DISABLED,this._disabled))}get fullWidth(){return this._fullWidth}set fullWidth(e){this._fullWidth!==e&&(this._fullWidth=e,this.toggleAttribute(Ft.attributes.FULL_WIDTH,this._fullWidth))}focus(e){var o;(o=this._buttonOrAnchorElement)==null||o.focus(e)}};Ga=i([y({name:Ft.elementName,dependencies:[J,r1]})],Ga);var Im=class extends Z1{constructor(t){super(t)}destroy(){this._buttonElement=void 0}get buttonElement(){return this._buttonElement}_build(){var e,o;let t=document.createElement(Ft.elementName);return this._buttonElement=document.createElement("button"),this._buttonElement.type=((e=this._config.options)==null?void 0:e.type)||"button",this._buttonElement.textContent=((o=this._config.options)==null?void 0:o.text)||"",t.appendChild(this._buttonElement),t}onClick(t){var e;(e=this._buttonElement)==null||e.addEventListener("click",t)}onFocus(t){var e;(e=this._buttonElement)==null||e.addEventListener("focus",o=>t(o))}onBlur(t){var e;(e=this._buttonElement)==null||e.addEventListener("blur",o=>t(o))}};function Lm(){f(Ga)}var Ly=`${b}deprecated-icon-button`,Vm={DISABLED:"disabled",TOGGLE:"toggle",IS_ON:"is-on",DENSITY_LEVEL:"density-level"},Vy=S(d({},Vm),{ON_ICON:"forge-icon-button-on"}),Cy={BUTTON:"button,a",ICON_LIKE:"button > i,span,svg,img,forge-icon"},Ey={TOGGLE:"forge-icon-button-toggle"},j2={elementName:Ly,observedAttributes:Vm,attributes:Vy,selectors:Cy,events:Ey};var By='<template><slot></slot><forge-focus-indicator part="focus-indicator"></forge-focus-indicator><forge-state-layer exportparts="surface:state-layer"></forge-state-layer></template>',Ay=":host{--_icon-button-display:var(--forge-icon-button-display, inline-flex);--_icon-button-size:var(--forge-icon-button-size, 48px);--_icon-button-gap:var(--forge-icon-button-gap, 0);--_icon-button-icon-color:var(--forge-icon-button-icon-color, currentColor);--_icon-button-background-color:var(--forge-icon-button-background-color, none);--_icon-button-icon-size:var(--forge-icon-button-icon-size, calc(var(--forge-typography-font-size, 1rem) * 1.5));--_icon-button-cursor:var(--forge-icon-button-cursor, pointer);--_icon-button-padding:var(--forge-icon-button-padding, var(--forge-spacing-xxsmall, 4px));--_icon-button-border:var(--forge-icon-button-border, none);--_icon-button-shadow:var(--forge-icon-button-shadow, none);--_icon-button-transition-duration:var(--forge-icon-button-transition-duration, var(--forge-animation-duration-short3, 150ms));--_icon-button-transition-timing:var(--forge-icon-button-transition-timing, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1)));--_icon-button-shape:var(--forge-icon-button-shape, calc(var(--forge-shape-full, 9999px) * var(--forge-shape-factor, 1)));--_icon-button-shape-start-start:var(--forge-icon-button-shape-start-start, var(--_icon-button-shape));--_icon-button-shape-start-end:var(--forge-icon-button-shape-start-end, var(--_icon-button-shape));--_icon-button-shape-end-start:var(--forge-icon-button-shape-end-start, var(--_icon-button-shape));--_icon-button-shape-end-end:var(--forge-icon-button-shape-end-end, var(--_icon-button-shape));--_icon-button-shape-squared:var(--forge-icon-button-shape-squared, calc(var(--forge-shape-medium, 4px) * var(--forge-shape-factor, 1)));--_icon-button-outlined-border-width:var(--forge-icon-button-outlined-border-width, 1px);--_icon-button-outlined-border-style:var(--forge-icon-button-outlined-border-style, solid);--_icon-button-outlined-border-color:var(--forge-icon-button-outlined-border-color, var(--_icon-button-icon-color));--_icon-button-tonal-icon-color:var(--forge-icon-button-tonal-icon-color, var(--forge-theme-on-primary-container, #222c62));--_icon-button-tonal-background-color:var(--forge-icon-button-tonal-background-color, var(--forge-theme-primary-container, #d1d5ed));--_icon-button-filled-icon-color:var(--forge-icon-button-filled-icon-color, var(--forge-theme-on-primary, #ffffff));--_icon-button-filled-background-color:var(--forge-icon-button-filled-background-color, var(--forge-theme-primary, #3f51b5));--_icon-button-raised-shadow:var(--forge-icon-button-raised-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12));--_icon-button-raised-hover-shadow:var(--forge-icon-button-raised-hover-shadow, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12));--_icon-button-raised-active-shadow:var(--forge-icon-button-raised-active-shadow, 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12));--_icon-button-raised-disabled-shadow:var(--forge-icon-button-raised-disabled-shadow, none);--_icon-button-density-small-size:var(--forge-icon-button-density-small-size, 24px);--_icon-button-density-small-padding:var(--forge-icon-button-density-small-padding, var(--forge-spacing-xxxsmall, 2px));--_icon-button-density-small-icon-size:var(--forge-icon-button-density-small-icon-size, calc(var(--forge-typography-font-size, 1rem) * 1.125));--_icon-button-density-medium-size:var(--forge-icon-button-density-medium-size, 36px);--_icon-button-density-medium-padding:var(--forge-icon-button-density-medium-padding, var(--forge-spacing-xxsmall, 4px));--_icon-button-density-large-size:var(--forge-icon-button-density-large-size, var(--_icon-button-size));--_icon-button-toggle-on-background-color:var(--forge-icon-button-toggle-on-background-color, var(--forge-theme-primary-container, #d1d5ed));--_icon-button-toggle-on-icon-color:var(--forge-icon-button-toggle-on-icon-color, var(--forge-theme-primary, #3f51b5));--_icon-button-outlined-toggle-on-background-color:var(--forge-icon-button-outlined-toggle-on-background-color, var(--forge-theme-primary-container, #d1d5ed));--_icon-button-outlined-toggle-on-icon-color:var(--forge-icon-button-outlined-toggle-on-icon-color, var(--forge-theme-primary, #3f51b5));--_icon-button-tonal-toggle-background-color:var(--forge-icon-button-tonal-toggle-background-color, var(--forge-theme-surface-container-low, #ebebeb));--_icon-button-tonal-toggle-on-background-color:var(--forge-icon-button-tonal-toggle-on-background-color, var(--forge-theme-primary-container, #d1d5ed));--_icon-button-tonal-toggle-on-icon-color:var(--forge-icon-button-tonal-toggle-on-icon-color, var(--forge-theme-primary, #3f51b5));--_icon-button-filled-toggle-background-color:var(--forge-icon-button-filled-toggle-background-color, var(--forge-theme-surface-container-low, #ebebeb));--_icon-button-filled-toggle-icon-color:var(--forge-icon-button-filled-toggle-icon-color, var(--forge-theme-primary, #3f51b5));--_icon-button-filled-toggle-on-background-color:var(--forge-icon-button-filled-toggle-on-background-color, var(--forge-theme-primary, #3f51b5));--_icon-button-filled-toggle-on-icon-color:var(--forge-icon-button-filled-toggle-on-icon-color, var(--forge-theme-on-primary, #ffffff));--_icon-button-disabled-cursor:var(--forge-icon-button-disabled-cursor, not-allowed);--_icon-button-disabled-opacity:var(--forge-icon-button-disabled-opacity, 0.38);--_icon-button-popover-icon-padding:var(--forge-icon-button-popover-icon-padding, var(--forge-spacing-xsmall, 8px));--_icon-button-focus-indicator-color:var(--forge-icon-button-focus-indicator-color, var(--forge-theme-primary, #3f51b5))}:host{display:var(--_icon-button-display);position:relative;outline:0;-webkit-tap-highlight-color:transparent;border-start-start-radius:var(--_icon-button-shape-start-start);border-start-end-radius:var(--_icon-button-shape-start-end);border-end-start-radius:var(--_icon-button-shape-end-start);border-end-end-radius:var(--_icon-button-shape-end-end)}:host([hidden]){display:none}::slotted(:is(button,a)){position:relative;z-index:0;display:var(--_icon-button-display);align-items:center;justify-content:center;gap:var(--_icon-button-gap);box-sizing:border-box;height:var(--_icon-button-density-large-size);min-width:var(--_icon-button-density-large-size);border:var(--_icon-button-border);border-start-start-radius:var(--_icon-button-shape-start-start);border-start-end-radius:var(--_icon-button-shape-start-end);border-end-start-radius:var(--_icon-button-shape-end-start);border-end-end-radius:var(--_icon-button-shape-end-end);padding:var(--_icon-button-padding);box-shadow:var(--_icon-button-shadow);color:var(--_icon-button-icon-color);background:var(--_icon-button-background-color);font-size:var(--_icon-button-icon-size);cursor:var(--_icon-button-cursor);user-select:none;transition-property:box-shadow,background;transition-duration:var(--_icon-button-transition-duration);transition-timing-function:var(--_icon-button-transition-timing);font-size:var(--_icon-button-icon-size);height:var(--_icon-button-size);width:var(--_icon-button-size)}::slotted(a){text-decoration:none;color:var(--_icon-button-icon-color)!important}forge-state-layer{--forge-state-layer-color:var(--_icon-button-icon-color)}forge-focus-indicator{--forge-focus-indicator-outward-offset:0px;--forge-focus-indicator-color:var(--_icon-button-focus-indicator-color);--forge-focus-indicator-shape-start-start:var(--_icon-button-shape-start-start);--forge-focus-indicator-shape-start-end:var(--_icon-button-shape-start-end);--forge-focus-indicator-shape-end-start:var(--_icon-button-shape-end-start);--forge-focus-indicator-shape-end-end:var(--_icon-button-shape-end-end)}:host(:is([dense],[density=large]):not(:is([density=medium],[density-level]))){--_icon-button-size:var(--_icon-button-density-small-size);--_icon-button-icon-size:var(--_icon-button-density-small-icon-size);--_icon-button-padding:var(--_icon-button-density-small-padding);--forge-icon-font-size:var(--_icon-button-icon-size)}:host([dense]:not([density=large]):not([density=small]):is([density=medium],[density-level])){--_icon-button-size:var(--_icon-button-density-medium-size);--_icon-button-padding:var(--_icon-button-density-medium-padding)}:host([disabled]){cursor:var(--_icon-button-disabled-cursor)}:host([disabled]) ::slotted(button[disabled]){pointer-events:none;opacity:var(--_icon-button-disabled-opacity)}:host([toggle]:is([on],[is-on]):not([is-on=false])){--_icon-button-background-color:var(--_icon-button-toggle-on-background-color);--_icon-button-icon-color:var(--_icon-button-toggle-on-icon-color);--_icon-button-background-color:var(--forge-icon-button-background-color, var(--forge-theme-primary-container-low, #e8eaf6))}",qa=class extends M{constructor(){super();this._disabled=!1;this._toggle=!1;this._isOn=!1;this._densityLevel=0;this._buttonOrAnchorElement=null;this._slotChangeListener=this._onSlotChange.bind(this);this._keydownListener=this._onKeydown.bind(this);this._toggleClickListener=this._onToggle.bind(this);z(this,By,Ay),this._slotElement=w(this,"slot:not([name])"),this._focusIndicator=w(this,w1.elementName),this._stateLayer=w(this,I1.elementName)}static get observedAttributes(){return Object.values(j2.attributes)}connectedCallback(){this._slotElement.addEventListener("slotchange",this._slotChangeListener),this.children.length?this._initialize():Ko(this).then(()=>this._initialize())}disconnectedCallback(){this._detachButton()}attributeChangedCallback(e,o,a){switch(e){case j2.attributes.DISABLED:this.disabled=p(a);return;case j2.attributes.TOGGLE:this.toggle=p(a);return;case j2.attributes.IS_ON:this.isOn=p(a);return;case j2.attributes.DENSITY_LEVEL:this.densityLevel=K(a);return}}_onKeydown(e){(e.key==="Enter"||e.key===" ")&&this._stateLayer.playAnimation()}_onSlotChange(){this._detachButton(),this._initialize()}_onToggle(){this.isOn=!this._isOn,this.dispatchEvent(new CustomEvent("forge-icon-button-toggle",{bubbles:!0,composed:!0,detail:this._isOn}))}_initialize(){this._buttonOrAnchorElement=this.querySelector(j2.selectors.BUTTON),this._buttonOrAnchorElement&&(this._stateLayer.targetElement=this._buttonOrAnchorElement,this._focusIndicator.targetElement=this._buttonOrAnchorElement,this._buttonOrAnchorElement.addEventListener("keydown",this._keydownListener),this._buttonOrAnchorElement instanceof HTMLButtonElement&&this._disabled&&!this._buttonOrAnchorElement.disabled?this._buttonOrAnchorElement.disabled=!0:this.disabled=this._buttonOrAnchorElement instanceof HTMLButtonElement&&this._buttonOrAnchorElement.disabled,this._toggle&&this._initializeToggle(),this._buttonOrAnchorElement instanceof HTMLButtonElement&&(this._buttonAttrMutationObserver=new MutationObserver(e=>{e.some(o=>o.attributeName==="disabled")&&this._syncDisabledState()}),this._buttonAttrMutationObserver.observe(this._buttonOrAnchorElement,{attributes:!0,attributeFilter:["disabled"]})))}_syncDisabledState(){let e=this._buttonOrAnchorElement instanceof HTMLButtonElement&&this._buttonOrAnchorElement.disabled;this.toggleAttribute(j2.attributes.DISABLED,e)}_detachButton(){var e;(e=this._buttonOrAnchorElement)==null||e.removeEventListener("keydown",this._keydownListener),this._buttonAttrMutationObserver&&(this._buttonAttrMutationObserver.disconnect(),this._buttonAttrMutationObserver=void 0)}_initializeToggle(){this._buttonOrAnchorElement&&(this._buttonOrAnchorElement.addEventListener("click",this._toggleClickListener),this._syncToggleState())}_destroyToggle(){var e;(e=this._buttonOrAnchorElement)==null||e.removeEventListener("click",this._toggleClickListener)}_syncToggleState(){let e=Array.from(this.querySelectorAll(j2.selectors.ICON_LIKE)),o=e.find(s=>s.hasAttribute(j2.attributes.ON_ICON)),a=e.filter(s=>s!==o);o==null||o.toggleAttribute("hidden",!this._isOn),a.forEach(s=>s.toggleAttribute("hidden",this._isOn)),this.toggleAttribute(j2.attributes.IS_ON,this._isOn)}get disabled(){return this._disabled}set disabled(e){var o;e=!!e,this._disabled!==e&&(this._disabled=e,(o=this._buttonOrAnchorElement)==null||o.toggleAttribute(j2.attributes.DISABLED,this._disabled),this.toggleAttribute(j2.attributes.DISABLED,this._disabled))}get toggle(){return this._toggle}set toggle(e){e=!!e,this._toggle!==e&&(this._toggle=e,this.isConnected&&(this._toggle?this._initializeToggle():this._destroyToggle()),this.toggleAttribute(j2.attributes.TOGGLE,this._toggle))}get isOn(){return this._isOn}set isOn(e){e=!!e,this._isOn!==e&&(this._isOn=e,this.isConnected&&this._syncToggleState())}get densityLevel(){return this._densityLevel}set densityLevel(e){this._densityLevel!==e&&(this._densityLevel=e,this.setAttribute(j2.attributes.DENSITY_LEVEL,String(this._densityLevel)))}focus(e){var o;(o=this._buttonOrAnchorElement)==null||o.focus(e)}};qa=i([y({name:j2.elementName,dependencies:[j,J,r1]})],qa);var Cm=class extends Z1{constructor(t){super(t)}destroy(){this._buttonElement=void 0}get buttonElement(){return this._buttonElement}_build(){var e;let t=document.createElement(j2.elementName);if(this._buttonElement=document.createElement("button"),this._buttonElement.type="button",t.appendChild(this._buttonElement),(e=this._config.options)!=null&&e.tooltip){let o=document.createElement("forge-tooltip");o.textContent=this._config.options.tooltip,this._config.options.tooltipPosition&&(o.position=this._config.options.tooltipPosition),t.appendChild(o)}return t}onClick(t){var e;(e=this._buttonElement)==null||e.addEventListener("click",t)}onFocus(t){var e;(e=this._buttonElement)==null||e.addEventListener("focus",t)}onBlur(t){var e;(e=this._buttonElement)==null||e.addEventListener("blur",t)}get iconElement(){return this._iconElement}get disabled(){var t;return!!((t=this._buttonElement)!=null&&t.disabled)}set disabled(t){this._buttonElement&&(this._buttonElement.disabled=t)}_configure(){this._configureIcon()}_configureIcon(){var e,o,a,s;if(!((e=this._config.options)!=null&&e.iconName))return;switch(((o=this._config.options)==null?void 0:o.iconType)||"component"){case"font":{let r=Array.isArray(this._config.options.iconClass)?this._config.options.iconClass:[We];(a=this._buttonElement)==null||a.classList.add(...r),this._buttonElement&&(this._buttonElement.textContent=this._config.options.iconName);break}case"component":this._iconElement=document.createElement(p1.elementName),this._iconElement.name=this._config.options.iconName,this._config.options.iconExternal!==void 0&&(this._iconElement.external=!!this._config.options.iconExternal),this._config.options.iconExternalType&&(this._iconElement.externalType=this._config.options.iconExternalType),this._config.options.iconClass&&this._iconElement.classList.add(...this._config.options.iconClass),(s=this._buttonElement)==null||s.appendChild(this._iconElement);break}}};function Em(){f(qa)}var $4=class extends I{constructor(t){super(t)}startButtonObserver(){this._buttonChangeObserver=new MutationObserver(t=>{let e=t.reduce((o,{addedNodes:a})=>{let s=Array.from(a).filter(r=>r.nodeType===Node.ELEMENT_NODE).map(r=>r.nodeName.toLowerCase()===A2.elementName?r:r.querySelector(A2.elementName)).filter(r=>!!r);return o.concat(s)},[]);e.length&&(e.forEach(o=>{o.variant=this._component.variant,o.theme=this._component.theme,o.disabled=this._component.disabled,o.dense=this._component.dense}),this.setPill(this._component.pill))}),this._buttonChangeObserver.observe(this._component,{childList:!0,subtree:!0})}destroyButtonObserver(){var t;(t=this._buttonChangeObserver)==null||t.disconnect(),this._buttonChangeObserver=void 0}setVariant(t){this._getButtons().forEach(o=>o.variant=t)}setTheme(t){this._getButtons().forEach(o=>o.theme=t)}setDisabled(t){this._getButtons().forEach(o=>o.disabled=t)}setDense(t){this._getButtons().forEach(o=>o.dense=t)}setPill(t){let e=this._getButtons();e.length>2&&Array.from(e).slice(1,e.length-1).filter(({pill:s})=>s).forEach(s=>s.pill=!1);let o=e[0];o&&(o.pill=t);let a=e[e.length-1];a&&(a.pill=t)}_getButtons(){return this._component.querySelectorAll(A2.elementName)}};var Ty=`${b}split-button`,Sy={VARIANT:"variant",THEME:"theme",DISABLED:"disabled",DENSE:"dense",PILL:"pill"},ky={DEFAULT_VARIANT:"text",DEFAULT_THEME:"primary"},x2={elementName:Ty,attributes:Sy,defaults:ky};var X4=class{constructor(t){this._adapter=t;this._variant=x2.defaults.DEFAULT_VARIANT;this._theme=x2.defaults.DEFAULT_THEME;this._disabled=!1;this._dense=!1;this._pill=!1}initialize(){this._adapter.startButtonObserver(),this._adapter.setVariant(this._variant),this._adapter.setTheme(this._theme),this._adapter.setDisabled(this._disabled),this._adapter.setDense(this._dense),this._adapter.setPill(this._pill)}destroy(){this._adapter.destroyButtonObserver()}get variant(){return this._variant}set variant(t){this._variant!==t&&(this._variant=t!=null?t:x2.defaults.DEFAULT_VARIANT,this._adapter.setVariant(t),this._adapter.setHostAttribute(x2.attributes.VARIANT,this._variant))}get theme(){return this._theme}set theme(t){this._theme!==t&&(this._theme=t!=null?t:x2.defaults.DEFAULT_THEME,this._adapter.setTheme(this._theme),this._adapter.setHostAttribute(x2.attributes.THEME,this._theme))}get disabled(){return this._disabled}set disabled(t){this._disabled!==t&&(this._disabled=t,this._adapter.setDisabled(this._disabled),this._adapter.toggleHostAttribute(x2.attributes.DISABLED,this._disabled))}get dense(){return this._dense}set dense(t){this._dense!==t&&(this._dense=t,this._adapter.setDense(this._dense),this._adapter.toggleHostAttribute(x2.attributes.DENSE,this._dense))}get pill(){return this._pill}set pill(t){this._pill!==t&&(this._pill=t,this._adapter.setPill(this._pill),this._adapter.toggleHostAttribute(x2.attributes.PILL,this._pill))}};var Oy="<template><slot></slot></template>",Dy=":host{--_split-button-min-width:var(--forge-split-button-min-width, 0);--_split-button-gap:var(--forge-split-button-gap, var(--forge-border-thin, 1px));--_split-button-focus-indicator-offset:var(--forge-split-button-focus-indicator-offset, var(--forge-button-focus-indicator-offset, 4px));--_split-button-focus-indicator-divider-offset:var(--forge-split-button-focus-indicator-divider-offset, var(--_split-button-gap));--_split-button-focus-indicator-offset-adjusted:calc(var(--_split-button-focus-indicator-offset) + var(--_split-button-focus-indicator-divider-offset) * 2)}:host{display:inline-flex;justify-content:center;align-items:center}:host([hidden]){display:none}::slotted(*){--forge-button-min-width:var(--_split-button-min-width);--forge-button-focus-indicator-offset:var(--_split-button-focus-indicator-offset)}::slotted(:first-child){--forge-button-shape-start-end-radius:0;--forge-button-shape-end-end-radius:0;--forge-focus-indicator-shape-start-end:0;--forge-focus-indicator-shape-end-end:0;--forge-focus-indicator-offset-inline:0 var(--_split-button-focus-indicator-offset-adjusted)}::slotted(:not(:first-child):not(:last-child)){--forge-button-shape:0;--forge-focus-indicator-shape:0;--forge-focus-indicator-offset-inline:var(--_split-button-focus-indicator-offset-adjusted)}::slotted(:last-child){--forge-button-shape-start-start-radius:0;--forge-button-shape-end-start-radius:0;--forge-focus-indicator-shape-start-start:0;--forge-focus-indicator-shape-end-start:0;--forge-focus-indicator-offset-inline:var(--_split-button-focus-indicator-offset-adjusted) 0}:host([variant=outlined]){--_split-button-focus-indicator-divider-offset:var(--forge-split-button-focus-indicator-divider-offset, 0px)}:host([variant=outlined]) ::slotted(:not(:first-child)){margin-inline-start:calc(-1 * var(--_split-button-gap))}:host(:is([variant=tonal],[variant=filled],[variant=raised],:not([variant]))) ::slotted(:not(:last-child)){margin-inline-end:var(--_split-button-gap)}",ke=class extends M{static get observedAttributes(){return[x2.attributes.VARIANT,x2.attributes.THEME,x2.attributes.DISABLED,x2.attributes.DENSE,x2.attributes.PILL]}constructor(){super(),z(this,Oy,Dy),this._core=new X4(new $4(this))}connectedCallback(){this._core.initialize()}disconnectedCallback(){this._core.destroy()}attributeChangedCallback(t,e,o){switch(t){case x2.attributes.VARIANT:this.variant=o;break;case x2.attributes.THEME:this.theme=o;break;case x2.attributes.DISABLED:this.disabled=p(o);break;case x2.attributes.DENSE:this.dense=p(o);break;case x2.attributes.PILL:this.pill=p(o);break}}};i([c()],ke.prototype,"variant",2),i([c()],ke.prototype,"theme",2),i([c()],ke.prototype,"disabled",2),i([c()],ke.prototype,"dense",2),i([c()],ke.prototype,"pill",2),ke=i([y({name:x2.elementName,dependencies:[T2]})],ke);function hT1(){f(ke)}function wT1(){let n="0123456789ABCDEF".split(""),t="#";for(let e=0;e<6;e++)t+=n[Math.floor(Math.random()*16)];return t}function TS1(){cc(),Ic(),yv(),yh(),jh(),Tv(),Vc(),f6(),_a(),y6(),rr(),z6(),B6(),A6(),zv(),Pv(),Uv(),cp(),dp(),qv(),p6(),g6(),m6(),gp(),fp(),yp(),zp(),V6(),Sv(),Vp(),ic(),s6(),kp(),Np(),Hc(),Sc(),nc(),Rp(),Gp(),e7(),$p(),o6(),n7(),mv(),sv(),nv(),bv(),l7(),p7(),Ap(),Ep(),sc(),b7(),y7(),xh(),d7(),V7(),vv(),Av(),Kv(),Xv(),x7(),L7(),E7(),dv(),T7(),P7(),Q7(),em(),zc(),om(),nm(),Jv(),mm(),pm(),im(),l6(),fm(),ym(),Bv(),bh(),zm(),Hm()}function SS1(){Lm(),Em()}export{Ho as ACCORDION_CONSTANTS,_c as ANIMATION_FILL,P1 as APP_BAR_CONSTANTS,Ye as APP_BAR_HELP_BUTTON_CONSTANTS,ia as APP_BAR_MENU_BUTTON_CONSTANTS,g2 as APP_BAR_NOTIFICATION_BUTTON_CONSTANTS,f1 as APP_BAR_PROFILE_BUTTON_CONSTANTS,P2 as APP_BAR_SEARCH_CONSTANTS,c5 as ARIA_CONTROLS_PLACEHOLDER_ID,c1 as AUTOCOMPLETE_CONSTANTS,Dr as AVATAR_CONSTANTS,Iv as AVATAR_TAG_NAME,Es as AccordionAdapter,Io as AccordionComponent,Bs as AccordionCore,Os as AppBarAdapter,ne as AppBarComponent,Ds as AppBarCore,Vr as AppBarHelpButtonAdapter,to as AppBarHelpButtonComponent,Cr as AppBarHelpButtonCore,ma as AppBarMenuButtonComponent,ir as AppBarNotificationButtonAdapter,Ee as AppBarNotificationButtonComponent,lr as AppBarNotificationButtonCore,Pr as AppBarProfileButtonAdapter,K2 as AppBarProfileButtonComponent,Nr as AppBarProfileButtonCore,Ns as AppBarSearchAdapter,d0 as AppBarSearchComponent,Ps as AppBarSearchCore,mi as AutocompleteAdapter,p2 as AutocompleteComponent,x6 as AutocompleteComponentDelegate,di as AutocompleteCore,w6 as AutocompleteMode,ve as AvatarComponent,i2 as BACKDROP_CONSTANTS,_R as BADGE_CONSTANTS,Kh as BADGE_TAG_NAME,I2 as BANNER_CONSTANTS,J1 as BASE_DRAWER_CONSTANTS,Y as BASE_FIELD_CONSTANTS,Lt as BASE_SELECT_CONSTANTS,S1 as BOTTOM_SHEET_CONSTANTS,Dt as BUTTON_AREA_CONSTANTS,A2 as BUTTON_CONSTANTS,Ul as BUTTON_FORM_ATTRIBUTES,et as BUTTON_TOGGLE_CONSTANTS,q1 as BUTTON_TOGGLE_GROUP_CONSTANTS,Xe as BackdropComponent,le as BadgeComponent,Zh as BadgeComponentDelegate,gi as BannerAdapter,f0 as BannerComponent,wi as BannerCore,I as BaseAdapter,M as BaseComponent,Z1 as BaseComponentDelegate,lo as BaseDrawerAdapter,Qe as BaseDrawerComponent,co as BaseDrawerCore,z2 as BaseField,ba as BaseFieldAdapter,ya as BaseFieldCore,Na as BaseSelectAdapter,Vt as BaseSelectComponent,Ra as BaseSelectCore,yi as BottomSheetAdapter,Ze as BottomSheetComponent,Mi as BottomSheetCore,Ar as ButtonAdapter,zi as ButtonAreaAdapter,Ro as ButtonAreaComponent,Hi as ButtonAreaCore,T2 as ButtonComponent,Sr as ButtonComponentDelegate,Tr as ButtonCore,Ur as ButtonToggleAdapter,me as ButtonToggleComponent,Wr as ButtonToggleCore,Gr as ButtonToggleGroupAdapter,ot as ButtonToggleGroupComponent,qr as ButtonToggleGroupCore,g as CALENDAR_CONSTANTS,lp as CALENDAR_DROPDOWN_CONSTANTS,T as CALENDAR_MENU_CONSTANTS,Bc1 as CARD_CONSTANTS,hp as CARD_TAG_NAME,s5 as CDN_BASE_URL,T1 as CHECKBOX_CONSTANTS,g1 as CHIP_CONSTANTS,u2 as CHIP_FIELD_CONSTANTS,nt as CHIP_SET_CONSTANTS,S2 as CIRCULAR_PROGRESS_CONSTANTS,_1 as COLOR_PICKER_CONSTANTS,b as COMPONENT_NAME_PREFIX,Oi as CalendarAdapter,v1 as CalendarComponent,ip as CalendarComponentDelegate,Di as CalendarCore,Ha as CalendarDropdown,Vi as CalendarMenuAdapter,je as CalendarMenuComponent,Ci as CalendarMenuCore,O6 as CalendarMonthFocus,M0 as CardComponent,E4 as CellAlign,Yr as CheckboxAdapter,at as CheckboxComponent,Gv as CheckboxComponentDelegate,Kr as CheckboxCore,hi as ChipAdapter,H2 as ChipComponent,vi as ChipCore,ii as ChipFieldAdapter,No as ChipFieldComponent,d6 as ChipFieldComponentDelegate,li as ChipFieldCore,Ma as ChipSetComponent,Pi as CircularProgressAdapter,Pt as CircularProgressComponent,Ni as CircularProgressCore,Ri as ColorPickerAdapter,we as ColorPickerComponent,Gi as ColorPickerCore,v3 as ColorPickerValueType,Ht as DATE_PICKER_CONSTANTS,U2 as DATE_RANGE_PICKER_CONSTANTS,h3 as DEFAULT_COLOR,nn as DEFAULT_DATE_MASK,ja as DEFERRED_LABEL_TARGET,Ft as DEPRECATED_BUTTON_CONSTANTS,j2 as DEPRECATED_ICON_BUTTON_CONSTANTS,D as DIALOG_CONSTANTS,xa as DIVIDER_CONSTANTS,Lp as DRAWER_CONSTANTS,zo as DateInputMask,Yi as DatePickerAdapter,Ca as DatePickerComponent,bp as DatePickerComponentDelegate,Ki as DatePickerCore,$i as DatePickerRange,l2 as DateRange,Mp as DateRangeComponentDelegate,Xi as DateRangePickerAdapter,io as DateRangePickerComponent,Zi as DateRangePickerCore,Ln as DayOfWeek,ls as Deferred,Ga as DeprecatedButtonComponent,Im as DeprecatedButtonComponentDelegate,qa as DeprecatedIconButtonComponent,Cm as DeprecatedIconButtonComponentDelegate,xi as DialogAdapter,B1 as DialogComponent,bi as DialogCore,zt as DismissibleStack,eo as DividerComponent,Ea as DrawerComponent,xc as EASING,D1 as EXPANSION_PANEL_CONSTANTS,Vs as ExpansionPanelAdapter,tt as ExpansionPanelComponent,Cs as ExpansionPanelCore,L as FIELD_CONSTANTS,x1 as FILE_PICKER_CONSTANTS,c2 as FLOATING_ACTION_BUTTON_CONSTANTS,w1 as FOCUS_INDICATOR_CONSTANTS,ai as FieldAdapter,F1 as FieldComponent,ni as FieldCore,Ji as FilePickerAdapter,Qt as FilePickerComponent,Sp as FilePickerComponentDelegate,t4 as FilePickerCore,e4 as FloatingActionButtonAdapter,z0 as FloatingActionButtonComponent,Pp as FloatingActionButtonComponentDelegate,o4 as FloatingActionButtonCore,Ss as FocusIndicatorAdapter,J as FocusIndicatorComponent,ks as FocusIndicatorCore,o2 as FormFieldComponentDelegate,ns as GlobalConfiguration,ql as HAS_MERIDIEM_REGEX,t1 as ICON_BUTTON_CONSTANTS,We as ICON_CLASS_NAME,p1 as ICON_CONSTANTS,Ms as ICON_REGISTRY_KEY,mc as INITIAL_ORIGIN_SCALE,Sa as INLINE_MESSAGE_CONSTANTS,_H as INPUT_ARIA_ATTRIBUTES,xH as INPUT_PROPERTIES,ud as ISO_8601_REGEX,_d as ISO_TIMEZONE_REGEX,zs as IconAdapter,Fs as IconButtonAdapter,i1 as IconButtonComponent,Tc as IconButtonComponentDelegate,Rs as IconButtonCore,j as IconComponent,U0 as IconComponentDelegate,Is as IconCore,X as IconRegistry,ka as InlineMessageComponent,m2 as KEYBOARD_SHORTCUT_CONSTANTS,sl as KEYSTROKE_DEBOUNCE_THRESHOLD,qp as KEY_ITEM_TAG_NAME,Fp as KEY_TAG_NAME,ho as KeyComponent,Be as KeyItemComponent,a4 as KeyboardShortcutAdapter,It as KeyboardShortcutComponent,n4 as KeyboardShortcutCore,a2 as LABEL_CONSTANTS,ue as LABEL_VALUE_CONSTANTS,F2 as LINEAR_PROGRESS_CONSTANTS,C1 as LIST_CONSTANTS,h1 as LIST_ITEM_CONSTANTS,ei as LabelAdapter,de as LabelComponent,oi as LabelCore,Oa as LabelValueComponent,a7 as LabelValueComponentDelegate,ce as LinearProgressComponent,cr as ListAdapter,v2 as ListComponent,hr as ListCore,vr as ListItemAdapter,j1 as ListItemComponent,pr as ListItemCore,n1 as MENU_CONSTANTS,c7 as METER_GROUP_TAG_NAME,s7 as METER_TAG_NAME,M5 as MINIMUM_PRESS_MS,Bp as MINI_DRAWER_CONSTANTS,Ba as MODAL_DRAWER_CONSTANTS,Ir as MenuAdapter,M2 as MenuComponent,Lr as MenuCore,Y1 as MeterComponent,k2 as MeterGroupComponent,Ta as MiniDrawerComponent,ji as ModalDrawerAdapter,Aa as ModalDrawerComponent,Qi as ModalDrawerCore,f3 as NAVIGATION_KEYS,At as OPEN_ICON_CONSTANTS,R as OPTION_CONSTANTS,vo as OPTION_GROUP_CONSTANTS,B as OVERLAY_CONSTANTS,sa as OpenIconComponent,i4 as OptionAdapter,$1 as OptionComponent,l4 as OptionCore,t0 as OptionGroupComponent,u6 as OptionType,Zs as OverlayAdapter,d2 as OverlayComponent,Qs as OverlayCore,dc as PADDING,m7 as PAGE_STATE_CONSTANTS,Z as PAGINATOR_CONSTANTS,Id as PARSEABLE_TIME_FORMAT,Q as POPOVER_CONSTANTS,hv as POPOVER_HOVER_TIMEOUT,pc as PRESS_GROW_MS,uc as PRESS_PSEUDO,$ as PROFILE_CARD_CONSTANTS,Da as PageStateComponent,r4 as PaginatorAdapter,it as PaginatorComponent,s4 as PaginatorCore,fc as PointerState,dr as PopoverAdapter,R1 as PopoverComponent,wr as PopoverCore,Er as ProfileCardAdapter,Y2 as ProfileCardComponent,Br as ProfileCardCore,b1 as RADIO_CONSTANTS,fa as RADIO_GROUP_CONSTANTS,uH as REFLECTIVE_ARIA_ATTRIBUTES,Xr as RadioAdapter,_t as RadioComponent,Zr as RadioCore,jr as RadioGroupAdapter,oo as RadioGroupComponent,Qr as RadioGroupCore,Pa as SCAFFOLD_CONSTANTS,X2 as SELECT_CONSTANTS,e0 as SELECT_DROPDOWN_CONSTANTS,xr as SKELETON_CONSTANTS,bt as SKIP_LINK_CONSTANTS,V as SLIDER_CONSTANTS,wc as SOFT_EDGE_CONTAINER_RATIO,gc as SOFT_EDGE_MINIMUM_SIZE,x2 as SPLIT_BUTTON_CONSTANTS,t2 as SPLIT_VIEW_CONSTANTS,P as SPLIT_VIEW_PANEL_CONSTANTS,W2 as STACK_CONSTANTS,I1 as STATE_LAYER_CONSTANTS,F as STEPPER_CONSTANTS,k as STEP_CONSTANTS,pa as SUPPORTS_POPOVER,l1 as SWITCH_CONSTANTS,Je as ScaffoldComponent,c4 as SelectAdapter,Ae as SelectComponent,B7 as SelectComponentDelegate,h4 as SelectCore,p4 as SelectDropdownAdapter,H0 as SelectDropdownComponent,v4 as SelectDropdownCore,M7 as SelectOptionType,Q0 as SkeletonComponent,Fa as SkipLinkComponent,_2 as SliderComponent,D7 as SliderComponentDelegate,Fl as SlottedElementAdapter,B4 as SortDirection,$4 as SplitButtonAdapter,ke as SplitButtonComponent,X4 as SplitButtonCore,b4 as SplitViewAdapter,N7 as SplitViewAnimatingLayer,Te as SplitViewComponent,y4 as SplitViewCore,f4 as SplitViewPanelAdapter,L2 as SplitViewPanelComponent,x4 as SplitViewPanelCore,M4 as StackAdapter,_e as StackComponent,z4 as StackCore,As as StateLayerAdapter,r1 as StateLayerComponent,ra as StateLayerCoords,Ts as StateLayerCore,I4 as StepAdapter,Z2 as StepComponent,L4 as StepCore,V4 as StepperAdapter,Nt as StepperComponent,C4 as StepperCore,Jr as SwitchAdapter,$2 as SwitchComponent,Qv as SwitchComponentDelegate,ti as SwitchCore,_ as TABLE_CONSTANTS,N1 as TAB_BAR_CONSTANTS,K1 as TAB_CONSTANTS,E1 as TEXT_FIELD_CONSTANTS,W as TIME_PICKER_CONSTANTS,k1 as TOAST_CONSTANTS,yn as TOOLBAR_CONSTANTS,a1 as TOOLTIP_CONSTANTS,vc as TOUCH_DELAY_MS,Ed as TWELVE_HOUR_TIME_MASK,Bd as TWELVE_HOUR_TIME_MASK_WITH_SECONDS,ps as TWELVE_HOUR_TIME_REGEX,Ad as TWENTY_FOUR_HOUR_TIME_MASK,Td as TWENTY_FOUR_HOUR_TIME_MASK_WITH_SECONDS,Jo as TWENTY_FOUR_HOUR_TIME_REGEX,O4 as TabAdapter,P4 as TabBarAdapter,Ct as TabBarComponent,N4 as TabBarCore,Rt as TabComponent,D4 as TabCore,A4 as TableAdapter,X1 as TableComponent,k4 as TableCore,Db as TableFilterType,S4 as TableRow,si as TextFieldAdapter,x0 as TextFieldComponent,ao as TextFieldComponentDelegate,ri as TextFieldCore,ys as TimeInputMask,R4 as TimePickerAdapter,W1 as TimePickerComponent,xm as TimePickerComponentDelegate,W4 as TimePickerCore,G4 as ToastAdapter,Jt as ToastComponent,q4 as ToastCore,pe as ToolbarComponent,Js as TooltipAdapter,m1 as TooltipComponent,er as TooltipCore,Mm as VIEW_CONSTANTS,e2 as VIEW_SWITCHER_CONSTANTS,I3 as ViewAnimationDirection,mo as ViewComponent,Y4 as ViewSwitcherAdapter,wy as ViewSwitcherAnimationType,go as ViewSwitcherComponent,K4 as ViewSwitcherCore,ec as awaitIconDefinition,c0 as canUserHoverElements,Nl as checkVisibility,g4 as clampSize,U7 as clearState,d5 as cloneAttributes,zd as cloneProperties,Hd as cloneValidationMessage,l3 as coerceDateFromValue,yo as coerceStringToArray,vs as composedPathFrom,Z7 as createOverlay,Hs as createSanitizedSvg,Wl as createSvgFromString,kl as createUserInteractionListener,cc as defineAccordionComponent,Ic as defineAppBarComponent,yv as defineAppBarHelpButtonComponent,yh as defineAppBarMenuButtonComponent,jh as defineAppBarNotificationButtonComponent,Tv as defineAppBarProfileButtonComponent,Vc as defineAppBarSearchComponent,f6 as defineAutocompleteComponent,_a as defineAvatarComponent,y6 as defineBackdropComponent,rr as defineBadgeComponent,z6 as defineBannerComponent,B6 as defineBottomSheetComponent,A6 as defineButtonAreaComponent,zv as defineButtonComponent,Pv as defineButtonToggleComponent,Uv as defineButtonToggleGroupComponent,cp as defineCalendarComponent,S51 as defineCalendarMenuComponent,dp as defineCardComponent,qv as defineCheckboxComponent,p6 as defineChipComponent,g6 as defineChipFieldComponent,m6 as defineChipSetComponent,gp as defineCircularProgressComponent,fp as defineColorPickerComponent,TS1 as defineComponents,yp as defineDatePickerComponent,zp as defineDateRangePickerComponent,Lm as defineDeprecatedButtonComponent,SS1 as defineDeprecatedComponents,Em as defineDeprecatedIconButtonComponent,V6 as defineDialogComponent,Sv as defineDividerComponent,Vp as defineDrawerComponent,ic as defineExpansionPanelComponent,s6 as defineFieldComponent,kp as defineFilePickerComponent,Np as defineFloatingActionButtonComponent,Hc as defineFocusIndicatorComponent,Sc as defineIconButtonComponent,nc as defineIconComponent,Rp as defineInlineMessageComponent,Gp as defineKeyComponent,$p as defineKeyItemComponent,e7 as defineKeyboardShortcutComponent,o6 as defineLabelComponent,n7 as defineLabelValueComponent,mv as defineLinearProgressComponent,sv as defineListComponent,nv as defineListItemComponent,bv as defineMenuComponent,l7 as defineMeterComponent,p7 as defineMeterGroupComponent,Ap as defineMiniDrawerComponent,Ep as defineModalDrawerComponent,sc as defineOpenIconComponent,b7 as defineOptionComponent,y7 as defineOptionGroupComponent,xh as defineOverlayComponent,d7 as definePageStateComponent,V7 as definePaginatorComponent,vv as definePopoverComponent,Av as defineProfileCardComponent,Kv as defineRadioComponent,Xv as defineRadioGroupComponent,x7 as defineScaffoldComponent,L7 as defineSelectComponent,E7 as defineSelectDropdownComponent,dv as defineSkeletonComponent,T7 as defineSkipLinkComponent,P7 as defineSliderComponent,hT1 as defineSplitButtonComponent,Q7 as defineSplitViewComponent,Dy1 as defineSplitViewPanelComponent,em as defineStackComponent,zc as defineStateLayerComponent,om as defineStepComponent,nm as defineStepperComponent,Jv as defineSwitchComponent,mm as defineTabBarComponent,pm as defineTabComponent,im as defineTableComponent,l6 as defineTextFieldComponent,fm as defineTimePickerComponent,ym as defineToastComponent,Bv as defineToolbarComponent,bh as defineTooltipComponent,zm as defineViewComponent,Hm as defineViewSwitcherComponent,b0 as dialogStack,Qp as elementAcceptsTextInput,hc as elementName,Dl as elementsOverlapping,Ls as emulateUserToggle,m5 as eventIncludesArrowKey,Vn as eventIncludesDate,j6 as eventIncludesElement,ac as fetchIconContent,Xx as fixKey,Zo as forgeLabelRef,Al as formatDate,D0 as forwardAttributes,Mo as frame,n3 as getAccessibleHeader,sp as getAllYearOptions,tc as getCachedIcon,X6 as getClearButton,M3 as getCurrentTimeOfDayMillis,x3 as getCursor,o3 as getDateElement,rt as getDateId,Fo as getDateRangeFromDates,U6 as getDateRow,Ei as getDateSpacerElement,ep as getDatesFromDateRange,Si as getDatesInRange,F6 as getDayElement,I_ as getDayId,i3 as getEventDescriptions,G6 as getEventElement,W6 as getEventWrapperElement,e3 as getEventWrapperId,ki as getEventsOnDate,Cn as getFirstDateOfWeek,w31 as getFirstDayOfMonth,P6 as getFirstDayOfWeekForLocale,$6 as getFooter,te as getFormState,Bt as getFormValue,Ii as getGrid,T6 as getGridItems,X7 as getHandleIcon,a3 as getHeader,En as getIndexOfDate,l5 as getLastDateOfMonth,Q6 as getLastDateOfWeek,k6 as getList,Li as getListItems,D6 as getLocalizedDayOfMonth,t3 as getLocalizedDayOfWeek,ro as getLocalizedMonth,y0 as getLocalizedYear,Ti as getMinAndMaxDates,$x as getModiferKeysString,Y6 as getMonthButtonContent,r3 as getMonthDates,Tl as getMonthLength,ap as getMonthOptions,rp as getMultipleFromRange,fH as getPartPrefixedAttributes,Uo as getPixelDimension,S6 as getScrollSpy,_6 as getSelectedOption,Bi as getSortedDaysOfWeek,_4 as getSplitViewPanelSibling,Z6 as getTodayButton,q6 as getTooltip,ee as getValidationMessage,u4 as getValuenow,g31 as getWeekDates,N6 as getWeekendDaysForLocale,K6 as getYearButtonContent,np as getYearOptions,$7 as handleBoundariesAfterResize,w4 as handleBoundariesDuringResize,ui as hideBackdrop,Sl as highlightTextHTML,um as hoursToMillis,R7 as initState,oe as inputType,s1 as internals,ft as isDisabled,s2 as isFocusable,xt as isInMonth,L_ as isInRange,Pl as isInstanceOf,kv as isLabelAware,u3 as isOptionGroupObject,ff as isOptionObject,Mn as isOptionType,h5 as isPointerOverElement,R6 as isRtlLocale,Gl as isSafeSvg,b2 as isSameDate,w3 as isSelectOptionType,za as isSelected,$l as isSupportedTimeFormat,J6 as isToday,G7 as keyboardResize,tn as locateElementById,hs as locateTargetHeuristic,t7 as matchKeyCombination,Y7 as maxResize,cC1 as mergeDateWithTime,gm as millisToHours,U4 as millisToMinutes,wm as millisToMinutesClamped,oy as millisToSeconds,b3 as millisToSecondsClamped,lt as millisToTimeString,q7 as minResize,Wa as minutesToMillis,zn as optionEqualPredicate,K0 as overlayStack,V_ as parseDateOffset,Bl as parseDateString,Jp as parseKeyCombinations,eb as parseSize,op as parseYearRange,Ol as percentToPixels,iH as pixelsToPercent,W7 as pointerResize,nl as prefersReducedMotion,Rl as proxyShadowScrollEvent,wT1 as randomHexColor,Hn as removeAllExceptLastChild,oc as removeIconListener,Qo as replaceElement,K7 as resizeSibling,v5 as roundByDPR,lH as safeMax,k0 as safeMin,b5 as sanitizeExternalType,cs as scaleValue,y3 as secondsToMillis,Yt as setAriaControls,N as setDefaultAria,F7 as setState,s3 as setTabindexOnElement,Mt as setValidity,c3 as shouldHandleEvent,_i as showBackdrop,Ai as sortDates,tp as splitIntoWeeks,_m as stripSecondsFromMillis,ol as supportsElementInternalsAria,al as supportsHover,ss as supportsPopover,ae as task,jp as textInputTypes,F4 as timeStringToMillis,He as toggleState,Kl as tokenize12HourTimeString,Yl as tokenize24HourTimeString,$r as tryCheck,Xl as tryCoerceTimeString,Ge as tryCreateAriaControlsPlaceholder,O0 as tryDismiss,hH as unwrapElements,rs as updateTarget,cH as wrapElements};
70
70
  /**
71
71
  * @license
72
72
  * Copyright 2023 Google LLC