@nvidia-elements/core 2.23.2 → 2.23.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/CHANGELOG.md +12 -0
- package/dist/accordion/accordion2.js +4 -4
- package/dist/alert/alert-group2.js +1 -1
- package/dist/alert/alert2.js +1 -1
- package/dist/avatar/avatar-group2.js +1 -1
- package/dist/avatar/avatar2.js +1 -1
- package/dist/badge/badge2.js +1 -1
- package/dist/breadcrumb/breadcrumb2.js +1 -1
- package/dist/bundles/index.js +1 -1
- package/dist/button/button2.js +1 -1
- package/dist/button-group/button-group2.js +1 -1
- package/dist/card/card2.js +4 -4
- package/dist/chat-message/chat-message2.js +1 -1
- package/dist/checkbox/checkbox-group2.js +1 -1
- package/dist/checkbox/checkbox2.js +1 -1
- package/dist/color/color2.js +1 -1
- package/dist/combobox/combobox2.js +1 -1
- package/dist/copy-button/copy-button2.js +1 -1
- package/dist/date/date2.js +1 -1
- package/dist/datetime/datetime2.js +1 -1
- package/dist/dialog/dialog-footer2.js +1 -1
- package/dist/dialog/dialog-header2.js +1 -1
- package/dist/dialog/dialog.js +1 -1
- package/dist/dialog/dialog.js.map +1 -1
- package/dist/dialog/dialog2.js +1 -1
- package/dist/divider/divider2.js +1 -1
- package/dist/dot/dot2.js +1 -1
- package/dist/drag-handle/drag-handle2.js +1 -1
- package/dist/drawer/drawer-content2.js +1 -1
- package/dist/drawer/drawer-footer2.js +1 -1
- package/dist/drawer/drawer-header2.js +1 -1
- package/dist/drawer/drawer.js +1 -1
- package/dist/drawer/drawer.js.map +1 -1
- package/dist/drawer/drawer2.js +1 -1
- package/dist/dropdown/dropdown-footer2.js +1 -1
- package/dist/dropdown/dropdown-header2.js +1 -1
- package/dist/dropdown/dropdown2.js +1 -1
- package/dist/dropdown-group/dropdown-group.js +1 -1
- package/dist/dropzone/dropzone2.js +1 -1
- package/dist/file/file2.js +1 -1
- package/dist/format-bytes/format-bytes2.js +1 -1
- package/dist/format-datetime/format-datetime2.js +1 -1
- package/dist/format-number/format-number2.js +1 -1
- package/dist/format-relative-time/format-relative-time2.js +1 -1
- package/dist/format-truncate/format-truncate2.js +1 -1
- package/dist/forms/control/control2.js +1 -1
- package/dist/forms/control-group/control-group2.js +1 -1
- package/dist/forms/control-message/control-message2.js +1 -1
- package/dist/gauge/gauge2.js +1 -1
- package/dist/ghost/ghost2.js +1 -1
- package/dist/grid/cell/cell2.js +1 -1
- package/dist/grid/column/column2.js +1 -1
- package/dist/grid/footer/footer2.js +1 -1
- package/dist/grid/grid2.js +1 -1
- package/dist/grid/header/header2.js +1 -1
- package/dist/grid/placeholder/placeholder2.js +1 -1
- package/dist/grid/row/row2.js +1 -1
- package/dist/icon/icon2.js +1 -1
- package/dist/icon-button/icon-button2.js +1 -1
- package/dist/iframe/iframe2.js +1 -1
- package/dist/index.js +1 -1
- package/dist/input/input-group2.js +1 -1
- package/dist/input/input2.js +1 -1
- package/dist/joystick/joystick2.js +1 -1
- package/dist/logo/logo2.js +1 -1
- package/dist/menu/menu-group2.js +1 -1
- package/dist/menu/menu-item2.js +1 -1
- package/dist/menu/menu2.js +1 -1
- package/dist/month/month2.js +1 -1
- package/dist/notification/notification-group2.js +1 -1
- package/dist/notification/notification2.js +1 -1
- package/dist/page/page-panel/page-panel-content2.js +1 -1
- package/dist/page/page-panel/page-panel-footer2.js +1 -1
- package/dist/page/page-panel/page-panel-header2.js +1 -1
- package/dist/page/page-panel/page-panel2.js +1 -1
- package/dist/page/page2.js +1 -1
- package/dist/page-header/page-header2.js +1 -1
- package/dist/page-loader/page-loader2.js +1 -1
- package/dist/pagination/pagination2.js +1 -1
- package/dist/panel/panel2.js +4 -4
- package/dist/password/password2.js +1 -1
- package/dist/preferences-input/preferences-input2.js +1 -1
- package/dist/progress-bar/progress-bar2.js +1 -1
- package/dist/progress-dot/progress-dot2.js +1 -1
- package/dist/progress-ring/progress-ring2.js +1 -1
- package/dist/progressive-filter-chip/progressive-filter-chip2.js +1 -1
- package/dist/pulse/pulse2.js +1 -1
- package/dist/radio/radio-group2.js +1 -1
- package/dist/radio/radio2.js +1 -1
- package/dist/range/range2.js +1 -1
- package/dist/resize-handle/resize-handle2.js +1 -1
- package/dist/search/search2.js +1 -1
- package/dist/select/select2.js +1 -1
- package/dist/skeleton/skeleton2.js +1 -1
- package/dist/sort-button/sort-button2.js +1 -1
- package/dist/sparkline/sparkline2.js +1 -1
- package/dist/star-rating/star-rating2.js +1 -1
- package/dist/steps/steps2.js +2 -2
- package/dist/switch/switch-group2.js +1 -1
- package/dist/switch/switch2.js +1 -1
- package/dist/tabs/tabs-group2.js +1 -1
- package/dist/tabs/tabs-item-group2.js +1 -1
- package/dist/tabs/tabs2.js +2 -2
- package/dist/tag/tag2.js +1 -1
- package/dist/textarea/textarea2.js +1 -1
- package/dist/time/time2.js +1 -1
- package/dist/toast/toast2.js +1 -1
- package/dist/toggletip/toggletip-footer2.js +1 -1
- package/dist/toggletip/toggletip-header2.js +1 -1
- package/dist/toggletip/toggletip2.js +1 -1
- package/dist/toolbar/toolbar2.js +1 -1
- package/dist/tooltip/tooltip2.js +1 -1
- package/dist/tree/tree-node2.js +1 -1
- package/dist/tree/tree2.js +1 -1
- package/dist/week/week2.js +1 -1
- package/dist/workspace/panel/panel2.js +1 -1
- package/dist/workspace/panel-content/panel-content2.js +1 -1
- package/dist/workspace/panel-footer/panel-footer2.js +1 -1
- package/dist/workspace/panel-header/panel-header2.js +1 -1
- package/dist/workspace/workspace2.js +1 -1
- package/package.json +2 -3
package/dist/bundles/index.js
CHANGED
|
@@ -9,7 +9,7 @@ clearTimeout(n),n=setTimeout(()=>{e(...r)},t)}}function Iv(e){return e.matches(`
|
|
|
9
9
|
var ub=`:host{--animation-duration: var(--nve-ref-animation-duration-200);margin:calc(var(--nve-sys-layer-popover-offset) + calc(var(--nve-sys-layer-popover-arrow-offset) * 2));border:0;padding:0;background:none;position:fixed;overflow:visible;contain:initial;width:max-content;z-index:99;inset:revert;interest-delay-start:.5s}:host([popover]){opacity:0;pointer-events:none}:host([popover]:not(:popover-open)){display:none!important}:host(:state(transition-start)){transition-duration:var(--animation-duration);transition-timing-function:ease-in-out;transition-property:opacity,display,overlay,translate,transform;transition-behavior:allow-discrete}@supports not (container-type: anchored){:host{--animation-duration: 0}}:host(:popover-open){opacity:1;pointer-events:initial;@starting-style{opacity:0}}:host(:not([nve-popover])),:host([defer-hydration]){opacity:0!important;pointer-events:none!important}[internal-host]{width:var(--width);min-width:var(--min-width);font-family:inherit;display:flex;flex-direction:column;overflow:visible;white-space:nowrap;z-index:9999;border:0;margin:0;user-select:text}@supports (position-area: bottom){[internal-host]{position:relative}.arrow{position-area:bottom;translate:0% 50%}:host([position="top"]) .arrow{position-area:bottom;translate:0% 50%}:host([position="top"][alignment="end"]:not(:dir(rtl))) .arrow,:host([position="top"][alignment="start"]:dir(rtl)) .arrow{position-area:bottom right;translate:-50% 50%}:host([position="top"][alignment="start"]:not(:dir(rtl))) .arrow,:host([position="top"][alignment="end"]:dir(rtl)) .arrow{position-area:bottom left;translate:50% 50%}:host([position="bottom"]) .arrow{position-area:top;translate:0% -50%}:host([position="bottom"][alignment="end"]:not(:dir(rtl))) .arrow,:host([position="bottom"][alignment="start"]:dir(rtl)) .arrow{position-area:top right;translate:-50% -50%}:host([position="bottom"][alignment="start"]:not(:dir(rtl))) .arrow,:host([position="bottom"][alignment="end"]:dir(rtl)) .arrow{position-area:top left;translate:50% -50%}:host([position="left"]) .arrow{position-area:right;translate:50% 0%}:host([position="left"][alignment="end"]) .arrow{position-area:bottom right;translate:50% -50%}:host([position="left"][alignment="start"]) .arrow{position-area:top right;translate:50% 50%}:host([position="right"]) .arrow{position-area:left;translate:-50% 0%}:host([position="right"][alignment="end"]) .arrow{position-area:bottom left;translate:-50% -50%}:host([position="right"][alignment="start"]) .arrow{position-area:top left;translate:-50% 50%}:host([position="center"]){position-area:center}:host{inset:auto!important;place-self:normal!important;position-anchor:auto!important}:host([position="top"]){position-area:top center}:host([position="top"][alignment="start"]:not(:dir(rtl))),:host([position="top"][alignment="end"]:dir(rtl)){position-area:top left}:host([position="top"][alignment="end"]:not(:dir(rtl))),:host([position="top"][alignment="start"]:dir(rtl)){position-area:top right}:host([position="top"][alignment="start"]:not(:dir(rtl))),:host([position="top"][alignment="end"]:dir(rtl)){position-area:top span-right}:host([position="top"][alignment="end"]:not(:dir(rtl))),:host([position="top"][alignment="start"]:dir(rtl)){position-area:top span-left}:host([position="bottom"]){position-area:bottom center}:host([position="bottom"][alignment="start"]:not(:dir(rtl))),:host([position="bottom"][alignment="end"]:dir(rtl)){position-area:bottom span-right}:host([position="bottom"][alignment="end"]:not(:dir(rtl))),:host([position="bottom"][alignment="start"]:dir(rtl)){position-area:bottom span-left}:host([position="left"]){position-area:left center}:host([position="left"][alignment="end"]){position-area:left span-top}:host([position="left"][alignment="start"]){position-area:left span-bottom}:host([position="right"]){position-area:right center}:host([position="right"][alignment="end"]){position-area:right span-top}:host([position="right"][alignment="start"]){position-area:right span-bottom}:host([position="top"]){position-try-fallbacks:top,bottom,left,right}:host([position="bottom"]){position-try-fallbacks:bottom,top,left,right}:host([position="left"]){position-try-fallbacks:left,right,top,bottom}:host([position="right"]){position-try-fallbacks:right,left,top,bottom}}:host([position="center"][alignment="center"]){position-area:unset!important;margin:auto!important;inset:0!important}:host([popover][modal]):before{content:" ";display:block;inset:0;z-index:99;position:fixed}
|
|
10
10
|
[internal-host] { anchor-name: --internal-host }
|
|
11
11
|
.arrow { position-anchor: --internal-host }
|
|
12
|
-
`,db=new class{get i18n(){return{..._.state.i18nRegistry}}registerDefaults(e){let t=_.state.i18nRegistry,n=Object.entries(e).reduce((e,[n,r])=>(r!==void 0&&t[n]===void 0&&(e[n]=r),e),{});Object.keys(n).length>0&&_.merge({i18nRegistry:n})}update(e){_.dispatch(`NVE_ELEMENTS_I18N_UPDATE`,{i18nRegistry:e})}};function fb(e){return t=>t.addInitializer(t=>new M(t,e))}var M=class{get i18n(){return{...this.defaults,...db.i18n,...this.host.i18n,__set:!1}}#e={};constructor(e,t={}){this.host=e,this.defaults=t,db.registerDefaults(t),this.host.addController(this)}hostConnected(){globalThis.document.addEventListener(`NVE_ELEMENTS_I18N_UPDATE`,this.#t)}hostDisconnected(){globalThis.document.removeEventListener(`NVE_ELEMENTS_I18N_UPDATE`,this.#t)}hostUpdate(){this.host.i18n.__set===void 0&&(this.#e=this.host.i18n,this.#t())}#t=()=>{this.host.i18n={...this.defaults,...db.i18n,...this.#e,__set:!0}}},pb=new class{get#e(){return globalThis.document.querySelector(`[type=speculationrules]`)}get#t(){return globalThis.document.documentElement.getAttribute(`nve-transition`)}#n;enable(){globalThis.document&&(this.#n?.disconnect(),this.#r(),this.#n=new MutationObserver(()=>this.#r()),this.#n.observe(globalThis.document.documentElement,{attributeFilter:[`nve-transition`]}))}disable(){this.#a(),this.#n?.disconnect()}#r(){globalThis.document&&this.#t===`auto`?this.#e||this.#i():this.#a()}#i(){let e=globalThis.document.createElement(`script`);e.id=`nve-speculationrules`,e.type=`speculationrules`,e.textContent=JSON.stringify({prerender:[{where:{href_matches:`/*`},eagerness:`moderate`}]}),globalThis.document.head.appendChild(e)}#a(){globalThis.document?.querySelector(`#nve-speculationrules`)?.remove()}},mb={"":`information-circle`,undefined:`information-circle`,default:`information-circle`,accent:`information-circle`,warning:`exclamation-triangle`,success:`checkmark-circle`,danger:`exclamation-circle`,scheduled:`clock`,failed:`x-circle`,finished:`checkmark-circle`,unknown:`question-mark-circle`,queued:`bar-pill-stack`,running:`running`,restarting:`refresh`,stopping:`stop-sign`,pending:`circle-dash`,starting:`circle-dot`,ignored:`circle-angled-line`};function hb(e){let[t,n,r]=e.split(`.`).map(e=>{let t=parseInt(e,10);return Number.isNaN(t)?-1:t});return{major:t??-1,minor:n??-1,patch:r??-1}}function gb(e){return new Intl.NumberFormat().format(e)}function _b(e,t){let n=e.signal?{signal:e.signal}:void 0;globalThis.document.addEventListener(`pointerup`,n=>{!e.element.hidden&&Zv(n,e.element)&&Zv(n,e.focusElement)&&t()},n),e.element.addEventListener(`keydown`,n=>{!e.element.hidden&&n.code===`Escape`&&(n.preventDefault(),Bv(e.focusElement),t())},n)}function vb(e,t){return e!==void 0&&Number.isFinite(e)&&e>=0?e:t}var yb=`:host{--color: var(--nve-sys-text-muted-color);--width: var(--nve-ref-size-400);--height: var(--nve-ref-size-400);display:inline-flex;contain:layout}[internal-host]{--_width: calc(var(--width) * var(--nve-ref-scale-size, 1));--_height: calc(var(--height) * var(--nve-ref-scale-size, 1));color:var(--color);width:var(--width);height:var(--height);display:flex;justify-content:center;align-items:center}svg{width:var(--_width);height:var(--_height)}:host([outline]){outline:1px dashed var(--color)}:host([size="xs"]){--width: var(--nve-ref-size-200);--height: var(--nve-ref-size-200)}:host([size="sm"]){--width: var(--nve-ref-size-300);--height: var(--nve-ref-size-300)}:host([size="lg"]){--width: var(--nve-ref-size-500);--height: var(--nve-ref-size-500)}:host([size="xl"]){--width: var(--nve-ref-size-600);--height: var(--nve-ref-size-600)}:host([name="arrow"]),:host([name="arrow-angle"]),:host([name="cancel"]),:host([name="caret"]),:host([name="chevron"]),:host([name="double-chevron"]){--nve-ref-scale-size: .8}:host([direction="up"]){transform:rotate(0)}:host([direction="down"]){transform:rotate(180deg)}:host([direction="left"]){transform:rotate(270deg)}:host([direction="right"]){transform:rotate(90deg)}:host([status="success"]){--color: var(--nve-sys-support-success-color)}:host([status="warning"]){--color: var(--nve-sys-support-warning-color)}:host([status="danger"]){--color: var(--nve-sys-support-danger-color)}:host([status="accent"]){--color: var(--nve-sys-support-accent-color)}`;function N(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}c();var P=class e extends x{static{this.styles=j([yb])}static{this.metadata={tag:`nve-icon`,version:`0.0.0`}}static{this._registry=Dg}static get _icons(){return kg().icons}static set _icons(e){kg().icons=e}get#e(){if(!this.name||this.name.endsWith(`.svg`)||this.appearance!==`solid`||this.name.endsWith(`-solid`))return this.name;let e=`${this.name}-solid`;return kg().icons[e]||s.includes(this.name)?e:this.name}get#t(){return this.#e,this.svg}#n=[];#r=0;#i=()=>{this.isConnected&&this.#s()};render(){return y`<div internal-host aria-hidden="true"><slot>${sv(this.#t)}</slot></div>`}connectedCallback(){super.connectedCallback(),D(this),this._internals.role=`img`,this.#a(),this.hasUpdated&&this.#s()}disconnectedCallback(){super.disconnectedCallback(),this.#o(),this.#r++}static async add(t){if(globalThis.customElements?.whenDefined){await globalThis.customElements.whenDefined(e.metadata.tag);for(let[e,n]of Object.entries(t))kg().add(e,n)}}static alias(t){globalThis.customElements?.whenDefined&&globalThis.customElements.whenDefined(e.metadata.tag).then(()=>{for(let[e,n]of Object.entries(t))kg().alias(e,n)})}async updated(e){super.updated(e),(e.has(`name`)||e.has(`appearance`))&&(this.#o(),this.#a()),await this.#s()}#a(){if(this.isConnected&&this.name&&!this.#n.length){this.#n=[this.name,`${this.name}-solid`].map(e=>`nve-icon-${e}`);for(let e of this.#n)globalThis.document.addEventListener(e,this.#i)}}#o(){for(let e of this.#n)globalThis.document.removeEventListener(e,this.#i);this.#n=[]}async#s(){let e=++this.#r,t=this.#e;try{let n=t?await(t.endsWith(`.svg`)?fetch(t).then(e=>e.text()):kg().resolve(t)):``;e===this.#r&&this.isConnected&&(this.svg=n)}catch{e===this.#r&&this.isConnected&&(this.svg=``)}}};N([S({type:String,reflect:!0})],P.prototype,`status`,void 0),N([S({type:String,reflect:!0})],P.prototype,`size`,void 0),N([S({type:String,reflect:!0})],P.prototype,`direction`,void 0),N([S({type:String})],P.prototype,`appearance`,void 0),N([S({type:String,reflect:!0})],P.prototype,`name`,void 0),N([C()],P.prototype,`svg`,void 0);function bb(e){if(typeof globalThis.customElements?.get==`function`){if(e._registry===Dg)return;let t=hb(e.metadata.version),n=hb(P.metadata.version);(n.major-t.major||n.minor-t.minor||n.patch-t.patch)>=0&&(e._registry?.merge(Dg),Dg.loadCatalog().then(t=>e.add(t)).catch(()=>{}))}}if(v(P),customElements.get(P.metadata.tag)){let e=customElements.get(P.metadata.tag);e.alias({"thumb-stroke":`thumb`,"bell-stroke":`bell`,"bookmark-stroke":`bookmark`,"dot-stroke":`dot`,"filter-stroke":`filter`,"flag-stroke":`flag`,"globe-alt-stroke":`globe-alt`,"information-circle-stroke":`information-circle`,"pointer-stroke":`pointer`,"question-mark-circle-stroke":`question-mark-circle`}),bb(e)}var xb=class extends Error{constructor(e,t){super(`(${e}): ${t}`),this.name=`FormControlError`}};function Sb(e,t,n){let r=Cb(t,n);if(r===void 0)throw new xb(e,`unsupported value type ${typeof t}`);return r}function Cb(e,t){switch(t.type){case`string`:return e;case`number`:return parseFloat(e);case`boolean`:return!!e||e===`true`;case`array`:case`object`:return JSON.parse(e);case`enum`:return t.enum.includes(e)?e:void 0;default:return}}function wb(e){if(!e||typeof e!=`object`||Array.isArray(e))return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function Tb(e){return e._internals===void 0&&(e._internals=e.attachInternals()),e._internals}function F(e,t,n){n?e.states.add(t):e.states.delete(t)}function Eb(e,t=10){return Array.from(Pb(e)).reduce((e,n)=>[...e,[n,[...Array.from(Pb(n)).map(e=>[e,Eb(e,t)])]]],[]).flat(t)}function Db(e){let t=e.anchor;return typeof t==`string`&&t.length?e.parentNode?Eb(e.parentNode).find(e=>e.id===t)??globalThis.document.body:globalThis.document.body:t instanceof HTMLElement&&t!==globalThis.document.body?t:globalThis.document.body}function Ob(e){return typeof e==`string`&&e.length?e:e===``?``:null}function kb(e,t,n){return n===null?!e.hasAttribute(t):e.getAttribute(t)===n}function Ab(e){return typeof HTMLFormElement<`u`&&e instanceof HTMLFormElement}function jb(e){e?.wholeText?.trim()===``&&e.parentNode?.removeChild(e)}function Mb(e,t,n){n===null?e.removeAttribute(t):e.setAttribute(t,n)}function Nb(e){e.preventDefault(),e.stopPropagation()}function Pb(e){if(Fb(e))return Array.from(e.documentElement.children);if(Ib(e))return Array.from(e.shadowRoot.children);if(Lb(e)){let t=e.assignedElements();return t.length?t:Array.from(e.children)}return Array.from(e.children??[])}function Fb(e){return typeof Document<`u`&&e instanceof Document&&!!e.documentElement}function Ib(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement&&!!e.shadowRoot}function Lb(e){return typeof HTMLSlotElement<`u`&&e instanceof HTMLSlotElement&&!!e.assignedElements}function Rb(e){return class extends e{static{this.formAssociated=!0}#e;#t;get defaultValue(){return this.getAttribute(`value`)??``}set defaultValue(e){this.setAttribute(`value`,e)}get readOnly(){return this.getAttribute(`readonly`)!==null}set readOnly(e){Tb(this),this.toggleAttribute(`readonly`,e),F(this._internals,`readonly`,!!e),this._requestUpdate()}get disabled(){return this.getAttribute(`disabled`)!==null}set disabled(e){Tb(this),this.toggleAttribute(`disabled`,e),this._internals.ariaDisabled=e?`true`:`false`,F(this._internals,`disabled`,!!e),this._requestUpdate()}get required(){return this.getAttribute(`required`)!==null}set required(e){this.toggleAttribute(`required`,e),F(this._internals,`required`,!!e),this.checkValidity(),this._requestUpdate()}get pattern(){return this.getAttribute(`pattern`)??``}set pattern(e){e?this.setAttribute(`pattern`,e):this.removeAttribute(`pattern`),F(this._internals,`pattern`,!!e),this.checkValidity(),this._requestUpdate()}get min(){return Hb(this,`min`)}set min(e){Wb(this,`min`,e),F(this._internals,`min`,e!==null),this._internals.ariaValueMin=e===null?null:`${e}`,this.checkValidity(),this._requestUpdate()}get max(){return Hb(this,`max`)}set max(e){Wb(this,`max`,e),F(this._internals,`max`,e!==null),this._internals.ariaValueMax=e===null?null:`${e}`,this.checkValidity(),this._requestUpdate()}get step(){return Hb(this,`step`)}set step(e){Wb(this,`step`,e),F(this._internals,`step`,e!==null),this.checkValidity(),this._requestUpdate()}get minLength(){return this.hasAttribute(`minlength`)?Number(this.getAttribute(`minlength`)):-1}set minLength(e){Kb(this,`minlength`,e),F(this._internals,`minlength`,this.minLength!==-1),this.checkValidity(),this._requestUpdate()}get maxLength(){return this.hasAttribute(`maxlength`)?Number(this.getAttribute(`maxlength`)):-1}set maxLength(e){Kb(this,`maxlength`,e),F(this._internals,`maxlength`,this.maxLength!==-1),this.checkValidity(),this._requestUpdate()}get name(){return this.getAttribute(`name`)??``}set name(e){e?this.setAttribute(`name`,e):this.removeAttribute(`name`),this._updateFormState(),this._requestUpdate()}get noValidate(){return this.getAttribute(`novalidate`)!==null||this._internals.form?.noValidate===!0}set noValidate(e){this.toggleAttribute(`novalidate`,e),this._requestUpdate()}set value(e){this.updateValue(e),this._requestUpdate()}get value(){return this._value}updateValue(e){let t=this._value;this._value=structuredClone(e),!this.checkValidity()&&this._metadata.strict&&(this._value=t,console.error(`FormControlError: (strict mode)`,this.validationMessage)),!this.#t&&!this.isConnected&&(this._initialValue=structuredClone(this._value),this.#t=!0),this._updateFormState()}get form(){return this._internals.form}get willValidate(){return this._internals.willValidate}get validity(){return this._internals.validity}get validationMessage(){return this._internals.validationMessage}get valueAsString(){return zb(this.value)}get valueAsNumber(){return Number(this.value)}set valueAsNumber(e){typeof this._value==`number`&&typeof e==`number`?this.value=e:console.warn(new xb(this.localName,`cannot set number value on non-number type`).message)}get type(){return this.localName}get labels(){return this._internals.labels}get composedLabel(){return Array.from(this.labels).map(e=>e.textContent).join(` `).trim()}get _metadata(){return this.constructor.metadata}get _validators(){return this._metadata.validators??[]}constructor(...e){super(...e),this.#e=``,this.#t=!1,this._internals=Tb(this),this._stopInternalPropagation=e=>{let t=e.composedPath()[0];t instanceof Node&&this.shadowRoot?.contains(t)&&e.stopPropagation()},this._initialValue=this.value}connectedCallback(){Tb(this),super.connectedCallback&&super.connectedCallback(),this.tabIndex=0,this.#o(),this._updateFormState(),this.checkValidity(),this.shadowRoot?.addEventListener(`input`,this._stopInternalPropagation),this.shadowRoot?.addEventListener(`change`,this._stopInternalPropagation)}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback(),this.shadowRoot?.removeEventListener(`input`,this._stopInternalPropagation),this.shadowRoot?.removeEventListener(`change`,this._stopInternalPropagation)}static get observedAttributes(){return(super.observedAttributes??[]).concat([`value`,`readonly`,`required`,`name`,`novalidate`,`disabled`,`pattern`,`min`,`max`,`step`,`minlength`,`maxlength`])}attributeChangedCallback(e,t,n){super.attributeChangedCallback&&super.attributeChangedCallback(e,t,n),n!==t&&this._handleAttributeChange(e,n)}_handleAttributeChange(e,t){e===`value`?this.#l(t):this.#u(e,t)||this.#d(e,t)||this.#f(e,t)}formResetCallback(){this.reset()}formDisabledCallback(e){this.disabled=e}formStateRestoreCallback(e,t){this.value=e,this.checkValidity()}reportValidity(){return this.#n(),this._internals.reportValidity()}checkValidity(){return this.#n(),this._internals.checkValidity()}setValidity(e,t){this._internals.setValidity(e,t),this.#s()}setCustomValidity(e){this.#e=e,this.#n()}reset(){this.value=this.hasAttribute(`value`)?Sb(this.localName,this.defaultValue,this._metadata.valueSchema):structuredClone(this._initialValue),this.#c(),this.checkValidity(),this.dispatchEvent(new Event(`reset`,{bubbles:!0,cancelable:!0,composed:!0}))}#n(){this.noValidate?this._internals.setValidity({}):this.#a(this.#r()),this.#s()}#r(){if(this.#e)return Qb({customError:!0},this.#e);let e=this.#i();if(!e.validity.valid)return e;for(let e of this._validators){let t=e(this.value,this);if(!t.validity.valid)return t}return{validity:{valid:!0},message:``}}#i(){return this.required&&qb(this.value)?Qb({valueMissing:!0},`This field is required`):typeof this.value==`string`?Jb({maxLength:this.maxLength,minLength:this.minLength,pattern:this.pattern,value:this.value}):typeof this.value==`number`?Yb({max:this.max,min:this.min,step:this.step,value:this.value}):{validity:{valid:!0},message:``}}#a(e){e.validity.valid?this._internals.setValidity({}):this._internals.setValidity(e.validity,e.message,this.shadowRoot?.activeElement??void 0)}#o(){F(this._internals,`disabled`,this.disabled),F(this._internals,`readonly`,this.readOnly),F(this._internals,`required`,this.required),F(this._internals,`pattern`,!!this.pattern),F(this._internals,`min`,this.min!==null),F(this._internals,`max`,this.max!==null),F(this._internals,`step`,this.step!==null),F(this._internals,`minlength`,this.minLength!==-1),F(this._internals,`maxlength`,this.maxLength!==-1)}#s(){F(this._internals,`valid`,this.validity.valid),F(this._internals,`invalid`,!this.validity.valid)}#c(){this._internals.states.delete(`valid`),this._internals.states.delete(`invalid`)}#l(e){this.value=e===null?void 0:Sb(this.localName,e,this._metadata.valueSchema),this._initialValue=structuredClone(this.value),this.#t=!0}#u(e,t){return e===`readonly`?(this.readOnly=t!==null,!0):e===`disabled`?(this.disabled=t!==null,!0):e===`required`?(this.required=t!==null,!0):e===`novalidate`&&(this.noValidate=t!==null,this.checkValidity(),!0)}#d(e,t){return e===`name`?(this.name=t??``,!0):e===`pattern`&&(this.pattern=t??``,!0)}#f(e,t){e===`min`?this.min=Ub(t):e===`max`?this.max=Ub(t):e===`step`?this.step=Ub(t):e===`minlength`?this.minLength=Gb(t):e===`maxlength`&&(this.maxLength=Gb(t))}dispatchInputEvent(){this.dispatchEvent(new InputEvent(`input`,{bubbles:!0,cancelable:!0,composed:!0,data:this.valueAsString}))}dispatchChangeEvent(){this.dispatchEvent(new Event(`change`,{bubbles:!0,cancelable:!0,composed:!0}))}dispatchUpdateEvent(e){e===`input`?this.dispatchInputEvent():e===`change`&&this.dispatchChangeEvent()}_updateFormState(){if(!this.name)this._internals.setFormValue(null);else if(typeof this.value==`number`||typeof this.value==`boolean`)this._internals.setFormValue(`${this.value}`);else if(wb(this.value)){let e=new FormData;Object.entries(this.value).filter(([e])=>e!==`value`).forEach(([t,n])=>{e.set(`${this.name}-${t}`,`${n}`)}),this._internals.setFormValue(e)}else if(Array.isArray(this.value)){let e=new FormData;this.value.forEach(t=>e.append(this.name,t)),this._internals.setFormValue(e)}else this._internals.setFormValue(this.value)}_requestUpdate(){this.requestUpdate&&this.requestUpdate()}}}function zb(e){return e==null?``:Bb(e)?`${e}`:Vb(e)?e.name:Array.isArray(e)||wb(e)?JSON.stringify(e):JSON.stringify(e)??``}function Bb(e){return typeof e==`string`||typeof e==`number`||typeof e==`boolean`}function Vb(e){return typeof File<`u`&&e instanceof File}function Hb(e,t){return Ub(e.getAttribute(t))}function Ub(e){if(e===null||e===``)return null;let t=Number(e);return Number.isFinite(t)?t:null}function Wb(e,t,n){n===null||!Number.isFinite(n)?e.removeAttribute(t):e.setAttribute(t,`${n}`)}function Gb(e){let t=Ub(e);return t===null||t<0?-1:t}function Kb(e,t,n){n<0||!Number.isFinite(n)?e.removeAttribute(t):e.setAttribute(t,`${n}`)}function qb(e){return e==null||e===``||Array.isArray(e)&&e.length===0}function Jb({value:e,pattern:t,minLength:n,maxLength:r}){return t&&!Xb(e,t)?Qb({patternMismatch:!0},`pattern mismatch`):n!==-1&&e.length<n?Qb({tooShort:!0},`value too short`):r!==-1&&e.length>r?Qb({tooLong:!0},`value too long`):{validity:{valid:!0},message:``}}function Yb({value:e,min:t,max:n,step:r}){return Number.isNaN(e)?Qb({badInput:!0},`bad input`):t!==null&&e<t?Qb({rangeUnderflow:!0},`value too low`):n!==null&&e>n?Qb({rangeOverflow:!0},`value too high`):r!==null&&r>0&&Zb(e,t??0,r)?Qb({stepMismatch:!0},`step mismatch`):{validity:{valid:!0},message:``}}function Xb(e,t){try{return RegExp(`^(?:${t})$`).test(e)}catch{return!0}}function Zb(e,t,n){let r=(e-t)/n;return Math.abs(Math.round(r)-r)>2**-52}function Qb(e,t){return{validity:{...e,valid:!1},message:t}}var $b=class{#e=null;#t=!1;constructor(e){this.host=e,this.host.addController(this)}get readOnly(){return this.#t}hostUpdated(){this.#s();let e=this.#n;this.#t=!!e,e?this.host._internals.states.add(`anchor`):this.host._internals.states.delete(`anchor`),this.#i&&(this.#i.style.textDecoration=`none`,this.host.style.cursor=`pointer`),this.#c(e)}hostDisconnected(){this.#l()}get#n(){return this.#r??this.#i}get#r(){return this.host.shadowRoot?.querySelector(`slot:not([name]), slot[name=anchor]`)?.assignedElements()?.find(e=>e?.tagName===`A`)}get#i(){return this.host.parentElement?.tagName===`A`?this.host.parentElement:null}get#a(){return this.host.shadowRoot?.querySelector(`slot:not([name])`)}get#o(){return this.host.shadowRoot?.querySelector(`slot[name=anchor]`)}#s(){this.#n&&this.#o&&(this.#n.slot=`anchor`,this.#a?.assignedNodes().forEach(e=>jb(e)))}#c(e){this.#l(),this.#e=e??null,this.#e?.addEventListener(`click`,this.#u)}#l(){this.#e?.removeEventListener(`click`,this.#u),this.#e=null}#u=e=>{this.host.disabled&&(e.preventDefault(),e.stopImmediatePropagation())}},ex=class{#e=null;#t=0;#n;constructor(e){this.host=e,this.host.addController(this)}hostConnected(){this.#n===void 0&&this.host.hasAttribute(`tabindex`)&&(this.#t=this.host.tabIndex)}hostUpdated(){this.#r(),this.host.readOnly?(this.host._internals.role&&this.host._internals.role!==`none`&&(this.#e=this.host._internals.role),this.host._internals.role=`none`):!this.host._internals.role||this.host._internals.role===`none`?this.host._internals.role=this.#e??`button`:this.#e=this.host._internals.role}#r(){let e=this.host.disabled||this.host.readOnly,t=this.#n===void 0||this.#n&&!e;e&&this.#n===!1&&(this.#t=this.host.tabIndex),this.#n=e,this.host.readOnly?(this.host.tabIndex=-1,this.host.removeAttribute(`tabindex`)):this.host.disabled?this.host.tabIndex=-1:t&&(this.host.tabIndex=this.#t)}},tx=class{#e;constructor(e,{events:t=[`click`]}={}){this.host=e,this.#e=[...new Set(t)],this.host.addController(this)}hostUpdated(){this.#t(),!this.host.readOnly&&!this.host.disabled&&this.#e.forEach(e=>this.host.addEventListener(e,this.#n))}hostDisconnected(){this.#t()}#t(){this.#e.forEach(e=>this.host.removeEventListener(e,this.#n))}#n=e=>{e.defaultPrevented||this.invoke()};invoke(){if(this.host.readOnly||this.host.disabled||!this.host.command)return!1;let e=this.target;return e?(e.dispatchEvent(new globalThis.CommandEvent(`command`,{command:this.host.command,source:this.host})),!0):(console.warn(`commandForElement`,this.host.commandForElement||this.host.getAttribute(`commandfor`),`not found`),!1)}get target(){if(this.host.commandForElement)return this.host.commandForElement;let e=this.host.getAttribute(`commandfor`);return e?Eb(this.host.getRootNode()).find(t=>t.id===e)??null:null}},nx=class{#e=null;constructor(e){this.host=e,this.host.addController(this)}hostConnected(){this.host.addEventListener(`mouseenter`,this.#t),this.host.addEventListener(`mouseleave`,this.#n),this.host.addEventListener(`focus`,this.#t),this.host.addEventListener(`blur`,this.#n)}hostDisconnected(){this.host.removeEventListener(`mouseenter`,this.#t),this.host.removeEventListener(`mouseleave`,this.#n),this.host.removeEventListener(`focus`,this.#t),this.host.removeEventListener(`blur`,this.#n)}#t=e=>{e.type===`focus`&&!this.host.matches(`:focus-visible`)||this.host.popoverTargetElement?.matches(`:popover-open`)||this.#r(`interest`)};#n=()=>this.#r(`loseinterest`);#r(e){let t=this.#i();if(!t)return;let n=new Event(e,{cancelable:!0});n.source=this.host,t.dispatchEvent(n)}#i(){let e=this.#a();if(e!==void 0)return e;let t=this.#o(),n=this.#e;return this.#e=t,t&&this.host.interestForElement!==t?this.host.interestForElement=t:!t&&n&&this.host.interestForElement===n&&(this.host.interestForElement=null),t}#a(){let e=this.host.getAttribute(`interestfor`);if(e)return this.#e=null,this.#s(e);let t=this.host.interestForElement;if(t&&t!==this.#e)return this.#e=null,t}#o(){let e=this.host.popoverTargetElement;if(e instanceof HTMLElement&&e.popover===`hint`)return e;let t=this.#s(this.host.getAttribute(`popovertarget`));return t instanceof HTMLElement&&t.popover===`hint`?t:null}#s(e){return e?Eb(this.host.getRootNode()).find(t=>t.id===e)??null:null}},rx=class{#e;#t;#n;constructor(e){this.host=e,this.host.addController(this)}get defaultType(){return this.#e}hostUpdated(){this.#r(),this.#i(),!this.host.readOnly&&!this.host.disabled&&(this.host.addEventListener(`click`,this.#o),this.host.addEventListener(`keyup`,this.#a))}hostDisconnected(){this.#i(),this.#u()}#r(){!this.host.type&&!this.host.hasAttribute(`type`)&&this.host.form instanceof HTMLFormElement&&(this.#e=`submit`)}#i(){this.host.removeEventListener(`click`,this.#o),this.host.removeEventListener(`keyup`,this.#a)}#a=e=>{(e.key===` `||e.key===`Enter`||e.code===`Space`||e.code===`Enter`)&&this.host.click()};#o=e=>{this.host.disabled?Nb(e):this.host.type===`submit`&&this.host.form instanceof HTMLFormElement?this.#s(this.host.form):this.host.type===`reset`&&this.host.form instanceof HTMLFormElement&&this.host.form.reset()};#s(e){this.#u(),this.#l(),this.#n=e,e.addEventListener(`submit`,this.#c,{once:!0}),this.#t?.remove(),e.appendChild(this.#t),e.requestSubmit(this.#t)}#c=()=>{let e=this.#t;this.#n=void 0,setTimeout(()=>{e?.remove(),this.#t===e&&(this.#t=void 0)},0)};#l(){this.#t||(this.#t=globalThis.document.createElement(`button`),this.#t.type=`submit`,this.#t.style.display=`none`),this.#t.name=this.host.name??``,this.#t.value=this.host.value??``}#u(){this.#n?.removeEventListener(`submit`,this.#c),this.#n=void 0,this.#t?.remove(),this.#t=void 0}},ix=class{constructor(e){this.host=e,this.host.addController(this)}hostConnected(){this.host.addEventListener(`click`,this.#n)}hostDisconnected(){this.host.removeEventListener(`click`,this.#n)}#e;#t(){let e=this.host.popoverTargetElement,t=e===this.#e;if(!this.host.getAttribute(`popovertarget`))return this.#e=void 0,t?(this.host.popoverTargetElement=null,null):e;if(e&&!t)return e;let n=Eb(this.host.getRootNode()).find(e=>e.id===this.host.getAttribute(`popovertarget`))??null;return n!==e&&(this.host.popoverTargetElement=n),this.#e=n,n}#n=e=>{if(e.defaultPrevented||this.host.disabled)return;let t=this.#t();t&&this.#i(t)&&this.#a()};#r(e){return e.anchor?Db(e):this.host}#i(e){if(this.host.popoverTargetAction===`hide`)return e.hidePopover(),!1;let t=this.#r(e);return this.host.popoverTargetAction===`show`?e.showPopover({source:t}):e.togglePopover({source:t}),e.matches(`:popover-open`)}#a(){if(this.host.interestForElement){let e=new Event(`loseinterest`,{cancelable:!0});e.source=this.host,this.host.interestForElement.dispatchEvent(e)}}},ax=class{constructor(e){this.host=e,this.host.addController(this)}hostConnected(){Tb(this.host),this.host.addEventListener(`keypress`,this.#e),this.host.addEventListener(`mousedown`,this.#e),this.host.addEventListener(`keyup`,this.#t),this.host.addEventListener(`blur`,this.#t),this.host.addEventListener(`mouseup`,this.#t)}hostDisconnected(){this.host.removeEventListener(`keypress`,this.#e),this.host.removeEventListener(`mousedown`,this.#e),this.host.removeEventListener(`keyup`,this.#t),this.host.removeEventListener(`blur`,this.#t),this.host.removeEventListener(`mouseup`,this.#t)}#e=e=>{!this.host.disabled&&this.#n(e)&&this.host._internals.states.add(`active`),e instanceof KeyboardEvent&&e.code===`Space`&&e.target===this.host&&e.preventDefault()};#t=()=>{this.host._internals.states.delete(`active`)};#n(e){return e instanceof KeyboardEvent?e.code===`Space`||e.code===`Enter`:!0}},ox=class{#e=null;constructor(e){this.host=e,this.host.addController(this)}hostConnected(){Tb(this.host)}hostUpdated(){this.host.readOnly?(this.host._internals.ariaCurrent=null,F(this.host._internals,`current`,!1),this.#t()):this.host._internals?.states.has(`anchor`)?(this.host._internals.ariaCurrent=null,F(this.host._internals,`current`,!!this.host.current),this.#t()):(this.host._internals.ariaCurrent=this.host.current===null||this.host.current===void 0?null:this.host.current,F(this.host._internals,`current`,!!this.host.current))}#t(){let e=this.host.querySelector(`a`),t=!this.host.readOnly&&this.host._internals.states.has(`anchor`)&&!!(this.host.selected||this.host.current);e&&t?(this.#e?.removeAttribute(`aria-current`),e.setAttribute(`aria-current`,this.host.current??`page`),this.#e=e):(this.#e?.removeAttribute(`aria-current`),this.#e=null)}},sx=class{constructor(e){this.host=e,this.host.addController(this)}hostConnected(){Tb(this.host)}hostUpdated(){this.host.disabled!==null&&this.host.disabled!==void 0?this.host._internals.ariaDisabled=`${this.host.disabled}`:this.host._internals.ariaDisabled=null,this.host.disabled?this.host._internals.states.add(`disabled`):this.host._internals.states.delete(`disabled`),this.host.readOnly&&(this.host._internals.ariaDisabled=null)}},cx=class{constructor(e){this.host=e,this.host.addController(this)}hostConnected(){Tb(this.host)}hostUpdated(){this.host._internals.ariaExpanded=this.host.expanded===null||this.host.expanded===void 0?null:`${this.host.expanded}`,F(this.host._internals,`expanded`,!!this.host.expanded)}},lx=class{constructor(e){this.host=e,this.host.addController(this)}hostConnected(){Tb(this.host)}hostUpdated(){this.host._internals.ariaPressed=this.host.pressed===null||this.host.pressed===void 0?null:`${this.host.pressed}`,F(this.host._internals,`pressed`,!!this.host.pressed)}},ux=class{constructor(e){this.host=e,this.host.addController(this)}hostConnected(){Tb(this.host)}hostUpdated(){this.host.readOnly&&(this.host._internals.ariaDisabled=null,this.host._internals.ariaExpanded=null,this.host._internals.ariaPressed=null,this.host._internals.ariaSelected=null,this.host._internals.ariaCurrent=null,this.host._internals.states.delete(`expanded`),this.host._internals.states.delete(`pressed`),this.host._internals.states.delete(`selected`),this.host._internals.states.delete(`current`))}},dx=class{#e=null;constructor(e){this.host=e,this.host.addController(this)}hostConnected(){Tb(this.host)}hostUpdated(){this.host.readOnly?(this.host._internals.ariaSelected=null,F(this.host._internals,`selected`,!1),this.#t()):this.host._internals?.states.has(`anchor`)?(this.host._internals.ariaSelected=null,F(this.host._internals,`selected`,!!this.host.selected),this.#t()):(this.host._internals.ariaSelected=this.host.selected===null||this.host.selected===void 0?null:`${this.host.selected}`,F(this.host._internals,`selected`,!!this.host.selected))}#t(){let e=this.host.querySelector(`a`),t=!this.host.readOnly&&this.host._internals.states.has(`anchor`)&&!!(this.host.selected||this.host.current);e&&t?(this.#e?.removeAttribute(`aria-current`),e.setAttribute(`aria-current`,this.host.current??`page`),this.#e=e):(this.#e?.removeAttribute(`aria-current`),this.#e=null)}},fx={commandfor:`commandForElement`,interestfor:`interestForElement`,popovertarget:`popoverTargetElement`};function px(e){return class t extends e{constructor(...e){super(...e),this.#n=!1,this.#r={commandForElement:null,interestForElement:null,popoverTargetElement:null},this.#a=null,this.#o=!1,this.#c=/* @__PURE__ */ new Map,this.#d=!1,this.#p=!1,this._internals=Tb(this),this._typeAnchorController=new $b(this),this._typeButtonController=new ex(this),this._typeSubmitController=new rx(this),this._typeCommandController=new tx(this),this._typeInterestInvokerController=new nx(this),this._typePopoverTriggerController=new ix(this),this._stateActiveController=new ax(this),this._stateDisabledController=new sx(this),this._stateExpandedController=new cx(this),this._statePressedController=new lx(this),this._stateSelectedController=new dx(this),this._stateCurrentController=new ox(this),this._stateReadOnlyController=new ux(this)}static{this.formAssociated=!0}#e;#t;#n;#r;#i;#a;#o;#s;#c;#l;#u;#d;#f;#p;#m;#h;static get observedAttributes(){return(super.observedAttributes??[]).concat([`pressed`,`expanded`,`readonly`,`form`,`name`,`value`,`type`,`disabled`,`selected`,`current`,`popovertarget`,`popovertargetaction`,`commandfor`,`command`,`interestfor`])}get pressed(){return this.#u}set pressed(e){this.#w({property:`pressed`,value:!!e,reflect:!0})}get expanded(){return this.#i}set expanded(e){this.#w({property:`expanded`,value:!!e,reflect:!0})}get readOnly(){return this.#d||(this._typeAnchorController?.readOnly??!1)}set readOnly(e){this.#w({property:`readOnly`,value:!!e,reflect:!0,attribute:`readonly`})}get readonly(){return this.readOnly}set readonly(e){this.readOnly=e}set form(e){let t=this.form;this.#a=e,typeof e==`string`?this.setAttribute(`form`,e):this.removeAttribute(`form`),this.#j(`form`,t),this.#g()}get form(){if(this.#a&&typeof this.#a!=`string`)return this.#a;if(typeof this.#a==`string`&&globalThis.document!==void 0){let e=this.getRootNode(),t=e.getElementById?e.getElementById(this.#a):null;return Ab(t)?t:null}return this._internals?.form??null}get name(){return this.#s}set name(e){this.#D({property:`name`,value:e})}get value(){return this.#h}set value(e){this.#D({property:`value`,value:e})}get type(){return this.#m??this._typeSubmitController?.defaultType}set type(e){this.#D({property:`type`,value:e})}get disabled(){return this.#n}set disabled(e){this.#w({property:`disabled`,value:!!e,reflect:!0})}get selected(){return this.#f}set selected(e){this.#w({property:`selected`,value:!!e,reflect:!0})}get current(){return this.#t}set current(e){this.#D({property:`current`,value:e})}get popoverTargetElement(){return this.#x(`popovertarget`)}set popoverTargetElement(e){this.#C(`popovertarget`,e)}get popoverTargetAction(){return this.#l===`show`||this.#l===`hide`?this.#l:`toggle`}set popoverTargetAction(e){this.#D({property:`popoverTargetAction`,value:e,attribute:`popovertargetaction`})}get commandForElement(){return this.#x(`commandfor`)}set commandForElement(e){this.#C(`commandfor`,e)}get command(){return this.#e}set command(e){this.#D({property:`command`,value:e})}get interestForElement(){return this.#x(`interestfor`)}set interestForElement(e){this.#C(`interestfor`,e)}addController(e){this._controllers??=/* @__PURE__ */ new Set,this._controllers.add(e)}connectedCallback(){super.connectedCallback?.(),this._controllers?.forEach(e=>e.hostConnected?.()),Tb(this),this.#o=!0,this.#N(),this.#_(),this.#g()}disconnectedCallback(){this._controllers?.forEach(e=>e.hostDisconnected?.()),super.disconnectedCallback?.()}updated(e){Object.getPrototypeOf(t.prototype).updated?.call(this,e),this.#p=!1,this.#_()}attributeChangedCallback(e,t,n){super.attributeChangedCallback?.(e,t,n),t!==n&&(this.#v(e,n),this.#b(e,t),this.#y(e,t,n))}#g(){!this.isConnected||this.#p||(this.#p=!0,this.#M().then(()=>{this.#p&&(this.#p=!1,this.isConnected&&this.#_())}))}#_(){this._controllers?.forEach(e=>e.hostUpdated?.())}#v(e,t){(e===`pressed`||e===`expanded`||e===`selected`||e===`disabled`)&&this.#w({property:e,value:t!==null,reflect:!1}),e===`readonly`&&this.#w({property:`readOnly`,value:t!==null,reflect:!1})}#y(e,t,n){e!==`commandfor`&&e!==`interestfor`&&e!==`popovertarget`&&(e===`form`&&(Ab(this.#a)&&n===null||(this.#a=n,this.#j(`form`,t))),e===`popovertargetaction`?this.#D({property:`popoverTargetAction`,value:n,reflect:!1}):this.#D({property:e,value:n,reflect:!1}))}#b(e,t){let n=fx[e];if(!n)return;let r=this.#r[n]??this.#S(t);this.#r[n]=null,this.#j(n,r),this.#g()}#x(e){return this.#r[fx[e]]??this.#S(this.getAttribute(e))}#S(e){return e?Eb(this.getRootNode()).find(t=>t.id===e)??null:null}#C(e,t){let n=fx[e],r=this[n];r===t&&kb(this,e,t?``:null)||(Mb(this,e,t?``:null),this.#r[n]=t,this.#j(n,r),this.#g())}#w({property:e,value:t,reflect:n,attribute:r=e}){let i=this.#T(e);(i!==t||n&&!kb(this,r,t?``:null))&&(this.#E(e,t),!(n&&this.#A(r,t?``:null))&&(this.#j(e,i),this.#g()))}#T(e){return{disabled:this.#n,expanded:this.#i,pressed:this.#u,readOnly:this.#d,selected:this.#f}[e]}#E(e,t){e===`disabled`?this.#n=t:e===`expanded`?this.#i=t:e===`pressed`?this.#u=t:e===`readOnly`?this.#d=t:e===`selected`&&(this.#f=t)}#D({property:e,value:t,attribute:n=e,reflect:r=!0}){let i=this.#O(e),a=Ob(t);(i!==a||r&&!kb(this,n,a))&&(this.#k(e,a),!(r&&this.#A(n,a))&&(this.#j(e,i),this.#g()))}#O(e){return{command:this.#e,current:this.#t,name:this.#s,popoverTargetAction:this.#l,type:this.#m,value:this.#h}[e]}#k(e,t){({command:()=>this.#e=t??void 0,current:()=>this.#t=t,name:()=>this.#s=t??void 0,popoverTargetAction:()=>this.#l=t,type:()=>this.#m=t,value:()=>this.#h=t??void 0})[e]?.()}#A(e,t){return!this.isConnected&&!this.#o?(this.hasAttribute(e)||this.#c.set(e,t),!0):(Mb(this,e,t),!1)}#j(e,t){this.requestUpdate?.(e,t)}#M(){return this.updateComplete??Promise.resolve()}#N(){this.#c.forEach((e,t)=>Mb(this,t,e)),this.#c.clear()}}}var mx=`:host{--nve-sys-interaction-state-base: var(--background, var(--nve-sys-layer-canvas-background));--background: var(--nve-sys-interaction-background);--color: var(--nve-sys-interaction-color);--padding: 0 var(--nve-ref-size-300);--border: 0;--border-radius: var(--nve-ref-border-radius-full);--font-weight: var(--nve-ref-font-weight-semibold);--font-size: var(--nve-ref-font-size-100);--text-decoration: none;--text-align: center;--cursor: pointer;--gap: var(--nve-ref-space-xs);--height: var(--nve-sys-interaction-field-height);--text-transform: capitalize;--line-height: 1.1em;--_icon-color: var(--color);--width: initial;--min-width: var(--width);display:inline-flex;position:relative;user-select:none;white-space:nowrap;width:var(--width);min-width:var(--min-width)}[internal-host]{color:var(--color);background:var(--background);padding:var(--padding);height:var(--height);width:100%;border:var(--border);border-radius:var(--border-radius);text-decoration:var(--text-decoration);text-align:var(--text-align);font-weight:var(--font-weight);font-size:var(--font-size);cursor:var(--cursor);gap:var(--gap);text-transform:var(--text-transform);display:inline-flex;place-items:center;justify-content:center;white-space:nowrap;line-height:var(--line-height);overflow:hidden}::slotted(nve-icon:not([status])){--color: var(--_icon-color);pointer-events:none}::slotted(a){text-decoration:var(--text-decoration)!important;color:var(--color)!important;gap:var(--gap)!important;display:flex!important;align-items:center!important;outline:0}::slotted(a):after{display:block;content:" ";inset:0;position:absolute}:host([nve-control]){--text-align: start;--border-radius: var(--nve-ref-border-radius-sm);--font-weight: var(--nve-ref-font-weight-regular);--padding: 0 var(--nve-ref-size-200)}:host([nve-control]) [internal-host]{justify-content:start}:host([nve-control]) ::slotted([name="chevron-down"]){--color: var(--nve-sys-text-muted-color);margin-inline:auto 0}:host([nve-control]:hover) [interaction-state]{--nve-sys-interaction-state-ratio: 0}:host([size="sm"]){--height: var(--nve-ref-size-700)}:host([size="lg"]){--height: var(--nve-ref-size-900);--padding: 0 var(--nve-ref-size-400);--font-size: var(--nve-ref-font-size-200);--line-height: 1em}:host([readonly]){--text-decoration: none;--cursor: cursor}:host([interaction="emphasis"]){--color: var(--nve-sys-interaction-emphasis-color);--background: var(--nve-sys-interaction-emphasis-background)}:host([interaction="destructive"]){--color: var(--nve-sys-interaction-destructive-color);--background: var(--nve-sys-interaction-destructive-background)}:host(:state(disabled)){--color: var(--nve-sys-interaction-disabled-color);--background: var(--nve-sys-interaction-disabled-background);--cursor: not-allowed}:host(:state(disabled)) ::slotted(a){cursor:not-allowed}:host(:state(pressed):not([interaction])){--color: var(--nve-sys-interaction-selected-color)}:host(:state(pressed):not([interaction],[container])){--background: var(--nve-sys-support-accent-color);--color: var(--nve-sys-text-white-color)}:host(:hover:not([interaction],[disabled],[readonly],[pressed])){--color: var(--nve-sys-interaction-hover-color)}:host([container="flat"][selected]) [interaction-state],:host([container="flat"]:state(selected)) [interaction-state],:host([container="flat"][pressed]) [interaction-state],:host([container="flat"]:state(pressed)) [interaction-state]{--nve-sys-interaction-state-ratio: var(--nve-sys-interaction-state-ratio-selected)}:host([container*="flat"]),:host([container*="inline"]){--background: transparent;--text-transform: initial;--border-radius: var(--nve-ref-border-radius-xs);--_icon-color: var(--color)}:host([container*="flat"][interaction]:hover){--background: color-mix( in oklab, var(--color) var(--nve-sys-contrast-mute-ratio), var(--nve-sys-contrast-mute-color) )}@container style(--nve-sys-color-scheme: dark){:host([container*="flat"]){--nve-sys-interaction-state-ratio-selected: 16% !important;--nve-sys-interaction-state-ratio-hover: 12% !important}}:host([container*="flat"][interaction="emphasis"]){--color: var(--nve-sys-interaction-emphasis-background)}:host([container*="flat"][interaction="destructive"]){--color: color-mix(in oklab, var(--nve-sys-interaction-destructive-background) 100%, currentColor 20%)}:host([container*="inline"]){--padding: 0;--height: fit-content;--line-height: .8;[internal-host]{overflow:initial}}:host([container*="inline"]:hover){--background: transparent;--text-decoration: underline}:host([container*="inline"]:hover) [interaction-state]{--nve-sys-interaction-state-ratio: 0}:host([container*="inline"]:state(active)){--background: transparent;--text-decoration: underline}:host([container*="flat"]:state(disabled)),:host([container*="inline"]:state(disabled)){--color: var(--nve-sys-interaction-disabled-color);--background: transparent;--text-decoration: none !important}:host([container*="flat"]:state(disabled)) [interaction-state],:host([container*="inline"]:state(disabled)) [interaction-state]{--nve-sys-interaction-state-ratio: 0}:host([container*="inline"]:state(selected)){--color: var(--nve-sys-interaction-selected-color);--background: transparent}:host([container*="flat"]:state(selected)){--color: var(--nve-sys-interaction-selected-color)}:host([container*="flat"][interaction="emphasis"]:state(selected)){--color: var(--nve-sys-interaction-emphasis-background);--background: color-mix( in oklab, var(--color) var(--nve-sys-contrast-mute-ratio), var(--nve-sys-contrast-mute-color) )}:host([container*="flat"][interaction="destructive"]:state(selected)){--color: var(--nve-sys-interaction-destructive-background);--background: color-mix( in oklab, var(--color) var(--nve-sys-contrast-mute-ratio), var(--nve-sys-contrast-mute-color) )}:host(:state(selected)){--color: var(--nve-sys-text-emphasis-color)}:host([container*="inline"]:state(selected)) [interaction-state]{--nve-sys-interaction-state-ratio: 0}:host([container*="inline"][readonly]:not(:state(anchor))){--text-decoration: none;--cursor: cursor}:host([container="inline"][interaction="destructive"]){--color: color-mix(in oklab, var(--nve-sys-interaction-destructive-background) 100%, currentColor 20%)}:host([container="inline"][interaction="emphasis"]){--color: var(--nve-sys-interaction-emphasis-background)}@keyframes inline-underline{0%{transform:translate(-50%) scaleX(0)}to{transform:translate(-50%) scaleX(1)}}:host([container*="inline"]) [internal-host]:after{content:"";position:absolute;left:50%;bottom:calc(var(--_border-bottom-offset, -2) * var(--nve-ref-border-width-md));width:var(--_border-bottom-width, 100%);height:var(--nve-ref-border-width-md);background-color:currentColor;transform:translate(-50%) scaleX(0);transform-origin:center;transition:transform .3s ease;will-change:transform;border-radius:var(--nve-ref-border-radius-full)}:host([container*="inline"]:hover) [internal-host]:after,:host([container*="inline"]:focus) [internal-host]:after{transform:translate(-50%) scaleX(1)}:host([container*="inline"]:state(disabled)) [internal-host]:after{display:none}:host([container*="inline"]){--text-decoration: none}:host([container*="inline"]:hover){--text-decoration: none}`,hx=class extends px(x){static{this.styles=j([mx])}static{this.metadata={tag:`nve-button`,version:`0.0.0`}}render(){return y`<div internal-host interaction-state focus-within><slot></slot></div>`}};N([S({type:String,reflect:!0})],hx.prototype,`container`,void 0),N([S({type:String,reflect:!0})],hx.prototype,`size`,void 0),N([S({type:String,reflect:!0})],hx.prototype,`interaction`,void 0);var gx=`:host{--color: var(--nve-sys-text-muted-color);--border-radius: var(--nve-ref-border-radius-full);--padding: 0;--line-height: 0;--gap: 0;--height: var(--nve-ref-size-800);--width: var(--nve-ref-size-800);--font-size: calc(var(--width) / 2.3)}:host([container*="inline"]){--height: var(--nve-ref-size-800);--line-height: 0}:host([size="sm"]){--padding: 0;--height: var(--nve-ref-size-700);--width: var(--nve-ref-size-700)}:host([size="lg"]){--width: var(--nve-ref-size-1000);--height: var(--nve-ref-size-1000);--padding: 0}[internal-host]{font-size:var(--font-size)}[internal-host]:after{display:none!important}nve-icon{--color: var(--_icon-color);pointer-events:none}::slotted(a){text-decoration:none!important;color:var(--color)!important;outline:0}::slotted(a):after{display:block;content:" ";inset:0;position:absolute}`,I=class extends hx{static{this.styles=j([...hx.styles,gx])}static{this.metadata={tag:`nve-icon-button`,version:`0.0.0`}}static{this.elementDefinitions={[P.metadata.tag]:P}}render(){return y`<div internal-host interaction-state focus-within aria-hidden="true"><slot @slotchange="${e=>cy(e.target)}"><nve-icon .name="${this.iconName}" .appearance="${this.appearance}" .direction="${this.direction}" .size="${this.size}" aria-hidden="true" part="icon"></nve-icon></slot></div><slot name="anchor"></slot>`}};N([S({type:String,attribute:`icon-name`})],I.prototype,`iconName`,void 0),N([S({type:String,reflect:!0})],I.prototype,`direction`,void 0),N([S({type:String,reflect:!0})],I.prototype,`size`,void 0),N([S({type:String})],I.prototype,`appearance`,void 0),I=N([A()],I),v(I);var _x=(e,t,n)=>(n.configurable=!0,n.enumerable=!0,Reflect.decorate&&typeof t!=`object`&&Object.defineProperty(e,t,n),n);function L(e){return(t,n)=>{let{slot:r,selector:i}=e??{},a=`slot`+(r?`[name=${r}]`:`:not([name])`);return _x(t,n,{get(){let t=(this.renderRoot?.querySelector(a))?.assignedElements(e)??[];return i===void 0?t:t.filter(e=>e.matches(i))}})}}var vx=`:host{--nve-sys-interaction-background: var(--nve-sys-interaction-background-200);--nve-sys-interaction-field-background: var(--nve-sys-interaction-background-200);--background: var(--nve-sys-layer-container-background);--color: var(--nve-sys-layer-canvas-color);--border-radius: 0;--header-padding: var(--nve-ref-size-300) var(--nve-ref-size-400);--cursor: pointer;--transition: height var(--nve-ref-animation-duration-200) ease-in-out;width:100%;width:stretch;contain:none}[internal-host]{border-radius:var(--border-radius);background:var(--background);color:var(--color);overflow:hidden;display:flex;flex-direction:column;align-items:stretch;justify-content:start;height:100%}#header{cursor:var(--cursor);display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:var(--header-padding)}#content{display:block;height:0;transition:var(--transition)}:host(:state(expanded)) #content{height:auto;height:calc-size(max-content,size)}:host([container="inset"]){--border-radius: var(--nve-ref-border-radius-md)}:host([container="flat"]){--background: inherit;--header-padding: var(--nve-ref-size-200) var(--nve-ref-size-400)}:host([container="flat"]) ::slotted(nve-accordion-content){--padding: var(--nve-ref-size-50) var(--nve-ref-size-400) var(--nve-ref-size-300) var(--nve-ref-size-400)}:host([disabled]){--cursor: not-allowed}:host([disabled]) ::slotted(nve-accordion-header){--cursor: not-allowed}:host(:not([disabled])) #header:hover nve-icon-button{--color: var(--nve-sys-text-emphasis-color)}nve-icon-button::part(icon){transition:transform var(--nve-ref-animation-duration-200) cubic-bezier(.4,0,.2,1)}`,yx=`:host{width:100%;--cursor: pointer}[internal-host]{cursor:var(--cursor);color:var(--color);display:flex;flex-direction:row;justify-content:space-between;align-items:center;gap:var(--nve-ref-space-xs)}slot:not([name]){display:block;flex:1}`,bx=`:host{--padding: var(--nve-ref-size-300) var(--nve-ref-size-400);padding:var(--padding);color:var(--color);font-weight:var(--nve-ref-font-weight-regular);font-size:var(--nve-ref-font-size-200);flex-grow:1;contain:none}`,xx=`:host{--padding: var(--nve-ref-size-400) var(--nve-ref-size-500) var(--nve-ref-size-500);width:100%;width:stretch}[internal-host]{display:flex;flex-direction:column}:host([container="flat"]) [internal-host]{gap:var(--nve-ref-space-xxxs)}:host([container="inset"]) [internal-host]{gap:var(--nve-ref-space-md)}:host(:not([container])) ::slotted(nve-accordion:not(:last-child)){border-bottom:var(--nve-ref-border-width-sm) solid var(--nve-ref-border-color-muted)}:host([container="full"]) ::slotted(nve-accordion:not(:last-child)){border-bottom:var(--nve-ref-border-width-sm) solid var(--nve-ref-border-color-muted)}`,Sx={close:`close`,expand:`expand`},Cx=class extends x{constructor(...e){super(...e),this.slot=`header`}static{this.styles=j([yx])}static{this.metadata={tag:`nve-accordion-header`,version:`0.0.0`}}render(){return y`<div internal-host><slot name="prefix"></slot><slot></slot><slot name="suffix"></slot></div>`}connectedCallback(){super.connectedCallback(),D(this),this._internals.role=`heading`,this._internals.ariaLevel=`2`}};N([k()],Cx.prototype,`slot`,void 0);var wx=class extends x{static{this.styles=j([bx])}static{this.metadata={tag:`nve-accordion-content`,version:`0.0.0`}}render(){return y`<slot></slot>`}},Tx=class extends x{constructor(...e){super(...e),this.#e=new M(this,Sx),this.#t=new Ky(this),this.i18n=this.#e.i18n,this.expanded=!1,this.disabled=!1,this.behaviorExpand=!1}static{this.styles=j([vx])}static{this.metadata={tag:`nve-accordion`,version:`0.0.0`,children:[Cx.metadata.tag,wx.metadata.tag,I.metadata.tag]}}static{this.elementDefinitions={[I.metadata.tag]:I}}#e;#t;get#n(){return this.shadowRoot?.querySelector(`slot[name=header]`)?.assignedElements()[0]}#r(e){this.disabled||Iv(e)&&e.id!==`internal-trigger`||this.#t.toggle()}render(){return y`<div internal-host><div id="header" @click="${e=>this.#r(e.target)}" .ariaLabel="${this.expanded?this.i18n.close:this.i18n.expand}" .ariaControls="${`content`}"><slot name="header"></slot><slot name="icon-button"><nve-icon-button part="icon-button" exportparts="icon:icon-button-icon" id="internal-trigger" container="inline" icon-name="caret" direction="${this.expanded?`up`:`down`}" ?disabled="${this.disabled}" ?pressed="${this.expanded}" .expanded="${this.expanded}" .ariaLabel="${this.expanded?this.i18n.close:this.i18n.expand}"></nve-icon-button></slot></div><div id="content" .ariaHidden="${!this.expanded}"><slot></slot></div></div>`}connectedCallback(){super.connectedCallback(),D(this),this._internals.role=`region`}async firstUpdated(e){super.firstUpdated(e),this.#n&&(this.#n.id||=Gv(),this.setAttribute(`aria-labelledby`,this.#n.id))}};N([S({type:Object})],Tx.prototype,`i18n`,void 0),N([S({type:String,reflect:!0})],Tx.prototype,`container`,void 0),N([S({type:Boolean,reflect:!0})],Tx.prototype,`expanded`,void 0),N([S({type:Boolean,reflect:!0})],Tx.prototype,`disabled`,void 0),N([S({type:Boolean,attribute:`behavior-expand`})],Tx.prototype,`behaviorExpand`,void 0),Tx=N([w(),A(),Fy()],Tx);var Ex=class extends x{constructor(...e){super(...e),this.behaviorExpand=!1,this.behaviorExpandSingle=!1,this.#e=e=>{this.behaviorExpandSingle&&this.accordions.find(t=>t===e.target)&&this.accordions.filter(t=>t!==e.target).forEach(e=>e.expanded=!1)}}static{this.styles=j([xx])}static{this.metadata={tag:`nve-accordion-group`,version:`0.0.0`,children:[Tx.metadata.tag]}}render(){return y`<div internal-host><slot @slotchange="${()=>this.#t()}"></slot></div>`}connectedCallback(){super.connectedCallback(),D(this),this._internals.role=`group`,this.addEventListener(`open`,this.#e)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(`open`,this.#e)}#e;updated(e){super.updated(e),this.#t()}#t(){this.accordions.forEach(e=>e.container=this.container),this.accordions.forEach(e=>e.behaviorExpand=this.behaviorExpand||this.behaviorExpandSingle)}};N([S({type:Boolean,attribute:`behavior-expand`})],Ex.prototype,`behaviorExpand`,void 0),N([S({type:Boolean,attribute:`behavior-expand-single`})],Ex.prototype,`behaviorExpandSingle`,void 0),N([S({type:String,reflect:!0})],Ex.prototype,`container`,void 0),N([L()],Ex.prototype,`accordions`,void 0),Ex=N([w()],Ex),v(Tx),v(Cx),v(wx),v(Ex),g(`information-circle`,()=>Ac),g(`exclamation-triangle`,()=>xo),g(`checkmark-circle`,()=>Mr),g(`exclamation-circle`,()=>fo),g(`clock`,()=>_i),g(`x-circle`,()=>pg),g(`question-mark-circle`,()=>Tf),g(`bar-pill-stack`,()=>Bt),g(`running`,()=>tp),g(`refresh`,()=>Ke),g(`stop-sign`,()=>ym),g(`circle-dash`,()=>Xr),g(`circle-dot`,()=>$r),g(`circle-angled-line`,()=>Wr),g(`cancel`,()=>ie);var Dx=`nve-alert:has([slot=content])::part(_content){display:block}nve-alert-group:not(:has(nve-alert)),nve-alert-group:not(:has(nve-alert:not([hidden]))){display:none}`,Ox=`:host{--gap: var(--nve-ref-space-xs);--font-size: var(--nve-ref-font-size-100);--color: var(--nve-sys-text-emphasis-color);--icon-color: var(--status-color);--icon-size: var(--nve-ref-size-400);--font-weight: var(--nve-ref-font-weight-medium);--justify-content: start;--align-items: center;--min-height: initial;--text-transform: initial;width:auto}[internal-host]{--_icon-cancel-color: var(--color);font-weight:var(--font-weight);font-size:var(--font-size);gap:var(--gap);color:var(--color);justify-content:var(--justify-content);align-items:var(--align-items);text-transform:var(--text-transform);display:flex;line-height:1em;height:100%}slot[part=_content]{display:contents;padding-inline-start:var(--nve-ref-size-600);padding-block-end:var(--nve-ref-size-200)}slot{display:flex;align-items:center;justify-content:var(--justify-content);gap:var(--nve-ref-space-xxs);min-height:var(--min-height)}slot:not([name=actions],[name=prefix],[name=icon]){flex-grow:1}slot[name=prefix],slot[name=actions]{font-weight:var(--nve-ref-font-weight-semibold)}::slotted(nve-button[container="flat"]){--color: inherit}slot[name=actions]{margin-inline-start:auto}slot[name=prefix]{margin-inline-end:var(--nve-ref-space-lg)}nve-icon{--color: var(--icon-color)}nve-icon:not([size=sm]){--width: var(--icon-size);--height: var(--icon-size)}nve-icon[size=sm]{padding:var(--nve-ref-size-50)}nve-icon-button{--color: var(--icon-color);margin-inline-start:auto}::slotted([nve-text]){color:inherit!important}:host([status="success"]),:host([status="danger"]){--color: var(--status-color)}:host([status="scheduled"]),:host([status="queued"]),:host([status="pending"]),:host([status="starting"]),:host([status="running"]),:host([status="restarting"]),:host([status="stopping"]),:host([status="finished"]),:host([status="failed"]),:host([status="unknown"]),:host([status="ignored"]){--color: var(--status-color)}::slotted([slot="actions"]){--color: var(--status-color) !important}`,kx={close:`close`,danger:`danger`,information:`information`,success:`success`,warning:`warning`},Ax=class extends x{constructor(...e){super(...e),this.closable=!1,this.#e=new Gy(this),this.#t=new M(this,kx),this.i18n=this.#t.i18n}static{this.styles=j([Ox,cb,lb])}static{this.metadata={tag:`nve-alert`,version:`0.0.0`}}static{this.elementDefinitions={[P.metadata.tag]:P,[I.metadata.tag]:I}}#e;#t;render(){return y`<div internal-host @slotchange="${()=>this.requestUpdate()}"><slot name="icon"><nve-icon part="icon" role="img" .name="${mb[this.status]??mb[``]}" aria-label="${(this.status?this.i18n[this.status]:void 0)??this.i18n.information??`information`}"></nve-icon></slot><slot name="prefix" ?hidden="${!this.prefixItems.length}"></slot><slot></slot><slot name="actions" ?hidden="${!this.actionItems.length}"></slot>${this.closable?y`<nve-icon-button part="icon-button" exportparts="icon:icon-button-icon" @click="${()=>this.#e.close()}" container="flat" icon-name="cancel" size="sm" .ariaLabel="${this.i18n.close}"></nve-icon-button>`:``}</div><slot name="content" part="_content"></slot>`}connectedCallback(){super.connectedCallback(),D(this),T(this,Dx),this._internals.role=`alert`}};N([S({type:String,reflect:!0})],Ax.prototype,`status`,void 0),N([S({type:Boolean})],Ax.prototype,`closable`,void 0),N([S({type:Object})],Ax.prototype,`i18n`,void 0),N([L({slot:`prefix`,flatten:!0})],Ax.prototype,`prefixItems`,void 0),N([L({slot:`actions`,flatten:!0})],Ax.prototype,`actionItems`,void 0),Ax=N([A()],Ax);var jx=`:host{--gap: var(--nve-ref-space-xs);--font-size: var(--nve-ref-font-size-200);--padding: var(--nve-ref-size-200) var(--nve-ref-size-300);--border: 0;--border-radius: var(--nve-ref-border-radius-md);--icon-size: var(--nve-ref-size-600);--icon-color: var(--color);--color: var(--nve-sys-text-emphasis-color);--background: var(--state-color-background);width:100%}[internal-host]{background:var(--background);font-size:var(--font-size);gap:var(--gap);color:var(--color);padding:var(--padding);border:var(--border);border-radius:var(--border-radius);display:flex;flex-direction:column;--_alert-color: var(--color);--_icon-color: var(--icon-color)}::slotted(nve-alert){--color: var(--_alert-color);--icon-color: var(--_icon-color);--icon-size: var(--nve-ref-size-400);--min-height: var(--nve-ref-size-800);width:100%;height:100%}:host([container="full"]){--border-radius: 0}:host([prominence="emphasis"]:not([color])){--background: var(--nve-sys-support-color);--color: var(--nve-sys-text-white-color);--icon-color: var(--color)}:host([prominence="emphasis"][status="accent"]:not([color])){--background: var(--nve-sys-support-accent-color)}:host([prominence="emphasis"][status="success"]:not([color])){--background: var(--nve-sys-support-success-color)}:host([prominence="emphasis"][status="warning"]:not([color])){--background: var(--nve-sys-support-warning-color);--color: var(--nve-sys-text-black-color)}:host([prominence="emphasis"][status="danger"]:not([color])){--background: var(--nve-sys-support-danger-color)}:host([prominence="emphasis"]) ::slotted(nve-alert){--font-weight: var(--nve-ref-font-weight-regular)}:host(:not([prominence="emphasis"])) ::slotted(nve-alert){--icon-color: var(--status-color) !important}:host([status]){--state-color-base: var(--status-color)}:host([color]) ::slotted(nve-alert){--status-color: var(--state-color-base) !important}`,Mx=class extends x{static{this.styles=j([jx,lb,sb])}static{this.metadata={tag:`nve-alert-group`,version:`0.0.0`,children:[Ax.metadata.tag]}}render(){return y`<div internal-host><slot @slotchange="${()=>this.#e()}"></slot></div>`}connectedCallback(){super.connectedCallback(),D(this),this._internals.role=`group`}updated(e){super.updated(e),this.#e()}#e(){this.alerts.forEach(e=>e.status=this.status)}};N([S({type:String,reflect:!0})],Mx.prototype,`status`,void 0),N([S({type:String,reflect:!0})],Mx.prototype,`prominence`,void 0),N([S({type:String,reflect:!0})],Mx.prototype,`color`,void 0),N([S({type:String,reflect:!0})],Mx.prototype,`container`,void 0),N([L()],Mx.prototype,`alerts`,void 0),Mx=N([w()],Mx),v(Ax),v(Mx);var Nx=`:host{--background: var(--state-color);--color: var(--nve-sys-contrast-mute-color);--border-radius: var(--nve-ref-border-radius-full);--height: var(--nve-ref-size-800);--width: var(--nve-ref-size-800);--font-size: calc(var(--width) / 2.5);--font-weight: var(--nve-ref-font-weight-medium);--state-color-base: var(--nve-ref-color-gray-slate-1100);--border: 0;display:block;overflow:hidden}[internal-host]{--_icon-color: var(--color);background:var(--background);color:var(--color);border-radius:var(--border-radius);width:var(--width);height:var(--height);font-size:var(--font-size);font-weight:var(--font-weight);border:var(--border);display:flex;align-items:center;justify-content:center;overflow:hidden}::slotted(nve-icon){--color: var(--_icon-color)}::slotted(img){object-fit:cover;width:100%;height:100%}:host([size="sm"]){--height: var(--nve-ref-size-700);--width: var(--nve-ref-size-700)}:host([size="lg"]){--width: var(--nve-ref-size-1000);--height: var(--nve-ref-size-1000)}`,Px=class extends x{static{this.styles=j([Nx,sb])}static{this.metadata={tag:`nve-avatar`,version:`0.0.0`}}render(){return y`<div internal-host><slot></slot></div>`}};N([S({type:String,reflect:!0})],Px.prototype,`size`,void 0),N([S({type:String,reflect:!0})],Px.prototype,`color`,void 0);var Fx=`:host{display:block}[internal-host]{display:flex;overflow:visible}::slotted(nve-avatar){margin-inline-start:calc(-1 * var(--nve-ref-size-150));--border: 1px solid var(--nve-sys-contrast-mute-color)}::slotted(:first-child){margin-inline-start:0}`,Ix=class extends x{static{this.styles=j([Fx])}static{this.metadata={tag:`nve-avatar-group`,version:`0.0.0`}}render(){return y`<div internal-host><slot></slot></div>`}connectedCallback(){super.connectedCallback(),D(this),this._internals.role=`group`}};v(Px),v(Ix);var Lx=`:host{--background: var(--state-color-background);--color: var(--state-color);--gap: var(--nve-ref-space-xs);--font-size: var(--nve-ref-font-size-100);--icon-color: var(--color);--padding: 0 var(--nve-ref-size-200);--border: 0;--border-radius: var(--nve-ref-border-radius-sm);--font-weight: var(--nve-ref-font-weight-semibold);--text-transform: initial;--width: initial;--height: var(--nve-ref-size-600);display:inline-flex}[internal-host]{font-weight:var(--font-weight);font-size:var(--font-size);gap:var(--gap);background:var(--background);color:var(--color);padding:var(--padding);border:var(--border);border-radius:var(--border-radius);width:var(--width);height:var(--height);text-transform:var(--text-transform);display:inline-flex;line-height:1em;place-items:center}slot:not([name]){text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;line-height:1.15}:host([aria-label]) slot:not([name]){display:contents}::slotted([nve-text]){color:inherit!important}::slotted(a){margin:0!important;color:inherit!important;text-decoration:none!important;line-height:0!important}nve-icon,::slotted(nve-icon){--color: var(--icon-color);--width: var(--nve-ref-size-300);--height: var(--nve-ref-size-300)}:host([status]){--state-color-base: var(--status-color)}:host([container="flat"]){--background: var(--nve-sys-background-color);--border-radius: var(--nve-ref-border-radius-sm);--gap: var(--nve-ref-space-xs);--padding: 0;--text-transform: capitalize;--width: initial;--height: initial}`,Rx=class extends x{static{this.styles=j([Lx,cb,lb,sb])}static{this.metadata={tag:`nve-badge`,version:`0.0.0`}}static{this.elementDefinitions={[P.metadata.tag]:P}}get#e(){return this.status&&mb[this.status]===`dot`?`sm`:`md`}render(){return y`<div internal-host><slot name="prefix-icon">${this.status?y`<nve-icon part="_icon" .name="${mb[this.status]??``}" .size="${this.#e}" aria-hidden="true"></nve-icon>`:b}</slot><slot @slotchange="${this.#t}"></slot><slot name="suffix-icon"></slot></div>`}connectedCallback(){super.connectedCallback(),D(this),this._internals.role=`status`}updated(e){super.updated(e),this.#n()}#t(){this.#n(),this.#r()}#n(){this._internals.ariaLabel=this.textContent}#r(){let e=this.shadowRoot.querySelector(`slot:not([name])`).assignedElements().find(e=>e.matches(`nve-icon`)&&!e.slot);e&&(e.slot=`prefix-icon`)}};N([S({type:String,reflect:!0})],Rx.prototype,`status`,void 0),N([S({type:String,reflect:!0})],Rx.prototype,`color`,void 0),N([S({type:String,reflect:!0})],Rx.prototype,`container`,void 0),N([S({type:String,reflect:!0})],Rx.prototype,`prominence`,void 0),Rx=N([O(),A()],Rx),v(Rx),g(`chevron`,()=>ue);var zx=`:host{--gap: var(--nve-ref-space-xxs);--height: var(--nve-ref-size-500);--font-size: var(--nve-ref-font-size-50);--color: var(--nve-sys-text-muted-color);--font-weight: var(--nve-ref-font-weight-medium)}[internal-host]{--_font-size: var(--font-size);--_font-weight: var(--font-weight);--_color: var(--color);--_height: var(--height)}ol,li{list-style-type:none;padding:0;display:flex;margin:0;min-height:0;align-items:flex-start;justify-content:stretch;gap:var(--gap)}li{display:flex;align-items:center;justify-content:center;text-wrap:nowrap;height:var(--_height)}::slotted(nve-button){--border-radius: calc(var(--nve-ref-border-radius-xs) / 2);--font-size: var(--_font-size);--color: var(--_color);--padding: 0 var(--nve-ref-size-100);--height: var(--_height);--font-weight: var(--_font-weight);--text-decoration: none !important;--_border-bottom-offset: -.5;--_border-bottom-width: 85%}::slotted(nve-icon-button){--border-radius: calc(var(--nve-ref-border-radius-xs) / 2);--icon-width: var(--nve-ref-size-300);--icon-height: var(--nve-ref-size-300);--height: var(--_height);--width: var(--_height);--font-size: var(--_font-size);--font-weight: var(--_font-weight);--color: var(--_color)}nve-icon[separator]{--height: var(--nve-ref-size-200);--width: var(--nve-ref-size-200);--color: var(--_color)}::slotted(span){font-size:var(--_font-size);color:var(--_color);display:block}::slotted(*:last-child){color:var(--nve-sys-text-emphasis-color);font-weight:var(--nve-ref-font-weight-semibold);--font-weight: var(--nve-ref-font-weight-semibold);--color: var(--nve-sys-text-emphasis-color)}[hidden-slot]{gap:var(--nve-ref-space-sm);display:flex;align-items:center}`,Bx=class extends x{constructor(...e){super(...e),this.breadcrumbItems=[]}get keynavListConfig(){return{items:Array.from(this.shadowRoot.querySelectorAll(`slot`)).flatMap(e=>e.assignedElements()).filter(e=>Iv(e))}}static{this.styles=j([zx])}static{this.metadata={tag:`nve-breadcrumb`,version:`0.0.0`}}static{this.elementDefinitions={[P.metadata.tag]:P}}render(){return y`<ol internal-host>${this.breadcrumbItems.map((e,t)=>y`<li><slot name="${e.slot}" @slotchange="${this.#e}"></slot>${t<this.breadcrumbItems.length-1?y`<nve-icon part="icon" separator aria-hidden="true" name="chevron" direction="right" size="sm"></nve-icon>`:b}</li>`)}</ol><slot ?hidden-slot="${!this.breadcrumbItems.length}" @slotchange="${this.#t}"></slot>`}connectedCallback(){super.connectedCallback(),D(this),this._internals.role=`navigation`}#e(e){e.target.assignedElements().length||this.#n()}#t(e){if(e.target&&e.target.assignedElements().length){this.#n();let e=this.shadowRoot.querySelector(`slot:not([name])`).assignedElements();e.filter(e=>e.matches(`nve-button, nve-icon-button, span, a`)).forEach(e=>e.slot=Gv()),e.filter(e=>e.matches(`nve-button, nve-icon-button`)).forEach(e=>e.container=`inline`),this.breadcrumbItems=e.length?e:this.breadcrumbItems}}#n(){Array.from(this.shadowRoot.querySelectorAll(`slot`)).flatMap(e=>e.assignedElements()).forEach(e=>e.slot=``)}};N([C()],Bx.prototype,`breadcrumbItems`,void 0),Bx=N([O(),A(),wy()],Bx),v(Bx),v(hx);var Vx=`:host{--nve-sys-interaction-state-base: var(--background, var(--nve-sys-layer-canvas-background));--background: var(--nve-sys-interaction-background);--border-radius: var(--nve-ref-border-radius-sm);--padding: var(--nve-ref-space-xxs);--gap: var(--nve-ref-space-xxxs);--width: fit-content;--height: fit-content;width:var(--width);height:var(--height)}[internal-host]{background:var(--background);border-radius:var(--border-radius);padding:var(--padding);gap:var(--gap);overflow:hidden;display:flex;height:100%;align-items:center}::slotted(nve-button),::slotted(nve-icon-button){--height: var(--nve-sys-interaction-field-height);--border-radius: var(--nve-ref-border-radius-sm)}::slotted(nve-icon-button){--width: var(--nve-sys-interaction-field-height)}::slotted(nve-divider){margin-block-start:calc(-1 * var(--padding));height:calc(100% + var(--padding));--color: color-mix(in oklab, var(--nve-sys-interaction-background) 100%, var(--nve-sys-interaction-color) 50%)}:host([container="flat"]){--background: transparent}:host([container="rounded"]){--border-radius: var(--nve-ref-border-radius-full)}:host([container="rounded"]:not(:state(split))) ::slotted(nve-button),:host([container="rounded"]:not(:state(split))) ::slotted(nve-icon-button){--border-radius: var(--nve-ref-border-radius-full)}:host([orientation="vertical"]){--gap: var(--nve-ref-space-xs)}:host([orientation="vertical"]) [internal-host]{flex-direction:column}:host([interaction="emphasis"]) ::slotted(nve-divider){--color: color-mix( in oklab, var(--nve-sys-interaction-emphasis-background) 100%, var(--nve-sys-interaction-emphasis-color) 50% )}:host([interaction="destructive"]) ::slotted(nve-divider){--color: color-mix( in oklab, var(--nve-sys-interaction-destructive-background) 100%, var(--nve-sys-interaction-destructive-color) 50% )}:host(:state(split)){--padding: 0;--gap: 0}:host(:state(split)) ::slotted(nve-button){--border-radius: var(--nve-ref-border-radius-none)}:host(:state(split)) ::slotted(nve-icon-button){--border-radius: var(--nve-ref-border-radius-none)}`,Hx=`@supports (position-anchor: --selected){nve-button-group{&:has(>:state(pressed)):not(:has(>:state(pressed)~:state(pressed)),:has(>[container]),:has(>[interaction])){--indicator-background: var(--nve-sys-support-accent-color);--indicator-border-radius: var(--nve-ref-border-radius-sm);&:after{background:var(--indicator-background);border-radius:var(--indicator-border-radius);position:fixed;display:block;content:"";width:anchor-size(width);height:anchor-size(height);transition:left var(--nve-ref-animation-duration-150) var(--nve-ref-animation-easing-100),top var(--nve-ref-animation-duration-150) var(--nve-ref-animation-easing-100);position-anchor:--selected;top:anchor(top);left:anchor(left);z-index:0}&[orientation=vertical]:after{transition:top var(--nve-ref-animation-duration-150) var(--nve-ref-animation-easing-100),left var(--nve-ref-animation-duration-150) var(--nve-ref-animation-easing-100)}&[container=rounded]:after{--indicator-border-radius: var(--nve-ref-border-radius-full)}>nve-button,>nve-icon-button{&:state(pressed){--background: transparent;anchor-name:--selected;z-index:1}}}}}`,Ux=class extends x{constructor(...e){super(...e),this.orientation=`horizontal`,this.#t=e=>this.#r(e.target)}get keynavListConfig(){return{items:this.#e,layout:this.orientation}}static{this.styles=j([Vx])}static{this.metadata={tag:`nve-button-group`,version:`0.0.0`,children:[`nve-button`,`nve-icon-button`,`nve-divider`,`nve-media-seek-button`,`nve-media-pause-button`]}}get#e(){return[...this.iconButtons,...this.buttons]}render(){return y`<div internal-host><slot @slotchange="${this.#n}"></slot></div>`}connectedCallback(){super.connectedCallback(),D(this),T(this,Hx),this._internals.role=`group`,this.addEventListener(`click`,this.#t)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(`click`,this.#t)}#t;updated(e){super.updated(e),this.#n()}#n(){this.container===`flat`&&this.#e.forEach(e=>e.container=`flat`),this.interaction&&this.#e.forEach(e=>e.interaction=this.interaction),this.dividers.length?this._internals.states.add(`split`):this._internals.states.delete(`split`)}#r(e){e.matches?.(`nve-button, nve-icon-button`)&&(this.behaviorSelect===`single`?(this.#e.forEach(e=>e.pressed=!1),e.pressed=!0):this.behaviorSelect===`multi`&&(e.pressed=!e.pressed))}};N([S({type:String,attribute:`behavior-select`})],Ux.prototype,`behaviorSelect`,void 0),N([S({type:String,reflect:!0})],Ux.prototype,`container`,void 0),N([S({type:String,reflect:!0})],Ux.prototype,`orientation`,void 0),N([S({type:String,reflect:!0})],Ux.prototype,`interaction`,void 0),N([S({type:String,reflect:!0})],Ux.prototype,`size`,void 0),N([L({selector:`nve-divider`})],Ux.prototype,`dividers`,void 0),N([L({selector:`nve-icon-button`})],Ux.prototype,`iconButtons`,void 0),N([L({selector:`nve-button`})],Ux.prototype,`buttons`,void 0),Ux=N([w(),wy()],Ux),v(Ux);var Wx=`:host{--nve-sys-interaction-background: var(--nve-sys-interaction-background-200);--nve-sys-interaction-field-background: var(--nve-sys-interaction-background-200);--background: var(--nve-sys-layer-container-background);--color: var(--nve-sys-layer-canvas-color);--border-radius: var(--nve-ref-border-radius-lg);--box-shadow: var(--nve-ref-shadow-100);--border-bottom: none;--border: 0;border-radius:var(--border-radius);box-shadow:var(--box-shadow);border-bottom:var(--border-bottom);background:var(--background);border:var(--border);color:var(--color);display:flex;flex-direction:column;align-items:stretch;justify-content:start;overflow:hidden;contain:none;width:stretch}[internal-host]{display:flex;flex-direction:column;align-items:stretch;justify-content:start;height:100%}:host([container="full"]){--border-bottom: var(--nve-ref-border-width-sm) solid var(--nve-ref-border-color-muted);--border-radius: 0}:host([container="flat"]){--nve-sys-interaction-background: unset;--nve-sys-interaction-field-background: unset;--background: transparent;--border-bottom: none;--border-radius: 0;--box-shadow: none}slot:not([name]){scrollbar-color:var(--nve-sys-scrollbar-thumb-color) var(--nve-sys-scrollbar-track-color);scrollbar-width:var(--nve-sys-scrollbar-width);display:block;width:100%;height:100%;overflow:auto}`,Gx=`:host{--padding: var(--nve-ref-size-400);--border-bottom: var(--nve-ref-border-width-sm) solid var(--nve-ref-border-color-muted);--line-height: 1em;--gap: var(--nve-ref-space-xs);contain:none}[internal-host]{padding:var(--padding);border-bottom:var(--border-bottom);color:var(--color);display:flex;flex-direction:row;justify-content:space-between;align-items:center}.content{display:flex;flex-direction:column;gap:var(--gap);width:100%}::slotted(nve-tabs){margin-block-end:calc(-1 * var(--padding))}`,Kx=`:host{--padding: var(--nve-ref-size-400);padding:var(--padding);color:var(--color);flex-grow:1;contain:initial}`,qx=`:host{--padding: var(--nve-ref-size-400);--border-top: var(--nve-ref-border-width-sm) solid var(--nve-ref-border-color-muted);contain:none}footer[internal-host]{padding:var(--padding);border-top:var(--border-top);color:var(--color);display:flex;justify-content:space-between;align-items:center}`,Jx=class extends x{static{this.styles=j([Wx])}static{this.metadata={tag:`nve-card`,version:`0.0.0`}}render(){return y`<div internal-host><slot name="header"></slot><slot></slot><slot name="footer"></slot></div>`}};N([S({type:String,reflect:!0})],Jx.prototype,`container`,void 0),Jx=N([w()],Jx);var Yx=class extends x{constructor(...e){super(...e),this.slot=`header`}static{this.styles=j([Gx])}static{this.metadata={tag:`nve-card-header`,version:`0.0.0`,parents:[`nve-card`]}}render(){return y`<header internal-host><div class="content"><slot></slot></div></header>`}};N([k()],Yx.prototype,`slot`,void 0);var Xx=class extends x{static{this.styles=j([Kx])}static{this.metadata={tag:`nve-card-content`,version:`0.0.0`,parents:[`nve-card`]}}render(){return y`<slot></slot>`}},Zx=class extends x{constructor(...e){super(...e),this.slot=`footer`}static{this.styles=j([qx])}static{this.metadata={tag:`nve-card-footer`,version:`0.0.0`,parents:[`nve-card`]}}render(){return y`<footer internal-host><slot></slot></footer>`}};N([k()],Zx.prototype,`slot`,void 0),v(Jx),v(Yx),v(Xx),v(Zx);var Qx=`:host{--background: var(--nve-sys-layer-container-background);--color: var(--nve-sys-text-color);--padding: var(--nve-ref-size-300);--gap: var(--nve-ref-space-xs);--border-radius: var(--nve-ref-border-radius-md);--font-size: var(--nve-ref-font-size-200);--line-height: var(--nve-ref-font-line-height-tight);--top-offset: 0;--display: flex;--overflow: hidden;contain:content}@media(width<=350px){[internal-host]{flex-direction:column}}[internal-host]{gap:var(--gap);font-size:var(--font-size);display:var(--display);overflow:var(--overflow)}slot:not([name]){padding:var(--padding);background:var(--background);color:var(--color);border-radius:var(--border-radius);font-size:var(--font-size);line-height:var(--line-height);gap:var(--gap);display:flex;flex-direction:column;overflow:hidden}::slotted(nve-avatar){flex-shrink:0}:host([container="flat"]){--background: transparent;--padding: 0 var(--nve-ref-size-200)}:host([color]){--background: var(--state-color);--color: var(--nve-sys-contrast-mute-color)}:host([arrow-position="top-start"]) slot:not([name]){border-top-left-radius:0}:host([arrow-position="top-end"]) slot:not([name]){border-top-right-radius:0}:host([arrow-position="bottom-start"]) slot:not([name]){border-bottom-left-radius:0}:host([arrow-position="bottom-end"]) slot:not([name]){border-bottom-right-radius:0}`,$x=`nve-chat-message:has([slot=prefix])::part(_message),nve-chat-message:has([slot=suffix])::part(_message){margin-block-start:var(--top-offset)}`,eS=class extends x{static{this.styles=j([Qx,sb])}static{this.metadata={tag:`nve-chat-message`,version:`0.0.0`}}render(){return y`<div internal-host><slot name="prefix"></slot><slot part="_message"></slot><slot name="suffix"></slot></div>`}connectedCallback(){super.connectedCallback(),T(this,$x)}};N([S({type:String,reflect:!0})],eS.prototype,`container`,void 0),N([S({type:String,reflect:!0})],eS.prototype,`color`,void 0),N([S({type:String,reflect:!0,attribute:`arrow-position`})],eS.prototype,`arrowPosition`,void 0),v(eS);var tS=`:host{--color: var(--nve-sys-text-muted-color);--font-weight: var(--nve-ref-font-weight-regular);--font-size: var(--nve-ref-font-size-100);--gap: var(--nve-ref-space-xs);--_icon-color: var(--color)}[internal-host]{--icon-color: var(--color);gap:var(--gap);color:var(--color);font-weight:var(--font-weight);font-size:var(--font-size);display:flex}nve-icon{--color: var(--_icon-color)}:host([status="success"]){--color: var(--nve-sys-support-success-emphasis-color)}:host([status="warning"]){--color: var(--nve-sys-support-warning-emphasis-color)}:host([status="error"]),:host([error]){--color: var(--nve-sys-support-danger-emphasis-color)}:host([status="muted"]){--color: var(--nve-sys-text-muted-color)}`,nS={undefined:`information-circle`,disabled:`information-circle`,warning:`exclamation-triangle`,success:`checkmark-circle`,error:`exclamation-circle`},rS=class extends x{constructor(...e){super(...e),this.error=null,this.slot=`messages`}static{this.styles=j([tS])}static{this.metadata={tag:`nve-control-message`,version:`0.0.0`}}static{this.elementDefinitions={[P.metadata.tag]:P}}render(){return y`<div internal-host><slot name="icon"><nve-icon part="icon" name="${this.error?nS.error:nS[this.status]}"></nve-icon></slot><slot></slot></div>`}};N([S({type:String,reflect:!0})],rS.prototype,`status`,void 0),N([S({type:String,reflect:!0})],rS.prototype,`error`,void 0),N([k()],rS.prototype,`slot`,void 0),rS=N([A()],rS);var iS=`input, select, selectmenu, textarea, [nve-control]`;function aS(e,t){let n=[];if(!e.input.form?.noValidate&&!e.input.formNoValidate&&!e.input.hasAttribute(`formnovalidate`)){pS(t);let r=()=>{e.input.validity?.valid&&(e._internals.states.delete(`invalid`),e._internals.states.add(`valid`),e.status=null),hS(e,t)},i=()=>{e.status=null,e._internals.states.delete(`valid`),e._internals.states.delete(`invalid`),pS(t)};n.push(dS(e.input,`blur`,()=>{e.input.checkValidity(),r()}),dS(e.input,`input`,()=>{r()}),dS(e.input,`invalid`,()=>{t.find(e=>e.error)&&(pS(t),mS(e,t)),e.status=`error`,e._internals.states.delete(`valid`),e._internals.states.add(`invalid`)}),dS(e,`reset`,i)),e.input.form&&n.push(dS(e.input.form,`reset`,i))}return n.push(dS(e.shadowRoot,`slotchange`,()=>{let t=Array.from(e.querySelectorAll(rS.metadata.tag));e._internals.states.delete(`valid`),e._internals.states.delete(`invalid`),t.find(e=>!e.hidden&&(e.status===`error`||e.error))?e._internals.states.add(`invalid`):e._internals.states.add(`valid`)})),n}function oS(e){let t=[],n=e._internals.states;return e.input.checked?n.add(`checked`):n.delete(`checked`),e.input.indeterminate?n.add(`indeterminate`):n.delete(`indeterminate`),t.push(...sS(e)),t.push(Xv(e.input,`readonly`,e=>e===``||e?n.add(`readonly`):n.delete(`readonly`)),Xv(e.input,`checked`,()=>e.input.checked?n.add(`checked`):n.delete(`checked`)),Xv(e.input,`disabled`,e=>e===``||e?n.add(`disabled`):n.delete(`disabled`)),Xv(e.input,`indeterminate`,()=>e.input.indeterminate?n.add(`indeterminate`):n.delete(`indeterminate`))),t}function sS(e){let t=[],n=e._internals.states;return t.push(dS(e.input,`focus`,()=>e._internals.states.add(`focus`)),dS(e.input,`input`,()=>e._internals.states.add(`dirty`)),dS(e.input,`blur`,()=>{e._internals.states.add(`touched`),e._internals.states.delete(`focus`)}),dS(e.input.getRootNode(),`change`,t=>{t.target.name===e.input?.name&&(e.input.checked?n.add(`checked`):n.delete(`checked`))})),e.input.form&&t.push(dS(e.input.form,`reset`,()=>{e._internals.states.delete(`touched`),e._internals.states.delete(`dirty`),e._internals.states.delete(`error`),e._internals.states.delete(`success`),e.requestUpdate()})),t}function cS(e){return lS(e),Kv(e,`disabled`,()=>lS(e))}function lS(e){Array.from(e.inputs).find(e=>e.disabled)?e._internals.states.add(`disabled`):e._internals.states.delete(`disabled`)}function uS(e,t){fS(e,t.find(e=>!e.hidden));let n=[];return n.push(qv(e,[`hidden`,`status`],t=>{let n=t.target;fy(n,rS)&&fS(e,n)})),n.push(dS(e.shadowRoot,`slotchange`,()=>{let t=Array.from(e.querySelectorAll(rS.metadata.tag)).find(e=>e.status&&!e.hidden);e._internals.states.delete(`error`),e._internals.states.delete(`success`),t&&e._internals.states.add(t.status)})),n}function dS(e,t,n){return e.addEventListener(t,n),{disconnect:()=>e.removeEventListener(t,n)}}function fS(e,t){e._internals.states.delete(`error`),e._internals.states.delete(`success`),t?.status?.length&&!t?.hidden&&e._internals.states.add(t.status)}function pS(e){e.filter(e=>e.hasAttribute(`error`)).forEach(e=>e.setAttribute(`hidden`,``))}function mS(e,t){t.find(t=>t.error&&e.input.validity[t.error])?.removeAttribute(`hidden`)}function hS(e,t){t.find(e=>e.error)&&e.input.validity.valid&&t.filter(t=>t.error&&!e.input.validity[t.error]).forEach(e=>e.setAttribute(`hidden`,``))}var gS={vertical:300,verticalInline:400,horizontal:500,horizontalInline:600};function _S(e){let t=e.layout,n=new ResizeObserver(n=>{e.fitContent||(e.layout=vS(n[0].contentRect.width,t))});return n.observe(e),n}function vS(e,t){let n=t;e<gS.vertical?n=`vertical`:e<gS.verticalInline?n=`vertical-inline`:e<gS.horizontal?n=`horizontal`:e<gS.horizontalInline&&(n=`horizontal-inline`);let r=[`vertical`,`vertical-inline`,`horizontal`,`horizontal-inline`];return r.indexOf(t)<r.indexOf(n)&&(n=t),n}var yS=`[nve-control]:not([nofocus]):has(*:focus-visible)::part(_input){outline:Highlight solid 2px!important;outline:5px auto -webkit-focus-ring-color!important}[nve-control] input::placeholder,[nve-control] textarea::placeholder{color:var(--nve-sys-text-placeholder-color)!important}[nve-control] input::-webkit-search-cancel-button,[nve-control] input::-webkit-calendar-picker-indicator{opacity:0!important;display:none!important}[nve-control]:has([nve-control]){--control-type: custom}[nve-control]:not(:has(label))::part(_label){display:none!important}[nve-control]:not(:has(nve-control-message:not([hidden])))::part(_messages){display:none!important}[nve-control=""]:has(label)::part(_internal-host){grid-template-areas:"label label label" "input input input"}[nve-control=""]:has(nve-control-message:not([hidden]))::part(_internal-host){grid-template-areas:"input input input" "messages messages messages"}[nve-control=""]:has(label):has(nve-control-message:not([hidden]))::part(_internal-host){grid-template-areas:"label label label" "input input input" "messages messages messages"}[nve-control=""][layout=horizontal]:has(nve-control-message:not([hidden]))::part(_internal-host),[nve-control=""][layout=horizontal-inline]:has(nve-control-message:not([hidden]))::part(_internal-host){grid-template-areas:"label input input" ". messages messages"}[nve-control=""][layout=horizontal]:not(:has(nve-control-message:not([hidden])))::part(_internal-host),[nve-control=""][layout=horizontal-inline]:not(:has(nve-control-message:not([hidden])))::part(_internal-host){grid-template-areas:"label input input"}[nve-control=inline]:has(label)::part(_internal-host){grid-template-areas:"input label label"}[nve-control=inline]:has(nve-control-message:not([hidden]))::part(_internal-host){grid-template-areas:"input input input" "messages messages messages"}[nve-control=inline]:has(label):has(nve-control-message:not([hidden]))::part(_internal-host){grid-template-areas:"input label label" "messages messages messages"}[nve-control=inline]:not(:has(nve-control-message:not([hidden])))::part(_internal-host){grid-template-areas:"input label label"}[nve-control=inline]:not(:has(label),:has(nve-control-message:not([hidden])))::part(_internal-host){grid-template-areas:"input input input"}nve-control:has(nve-monaco-input),nve-control:has(nve-monaco-diff-input){contain:none}[prominence=muted]>[nve-control]:state(checked),[prominence=muted][nve-control]:state(checked){--filter: grayscale(90%)}`,bS=`:host{--cursor: pointer;--accent-color: var(--nve-sys-accent-secondary-background);--color: var(--nve-sys-interaction-field-color);--label-color: var(--nve-sys-interaction-field-color);--label-text-transform: none;--label-font-weight: var(--nve-ref-font-weight-medium);--label-font-size: var(--nve-ref-font-size-100);--control-width: 100%;--control-height: var(--nve-sys-interaction-field-height);--_label-width: var(--label-width, 180px);--nve-sys-interaction-state-base: var(--background, var(--nve-sys-layer-canvas-background));--opacity: 1;--filter: none;contain:content}::slotted(*){color-scheme:var(--nve-sys-color-scheme);font-family:inherit}::slotted(label){font-weight:var(--label-font-weight)!important;font-size:var(--label-font-size)!important;color:var(--label-color)!important;cursor:var(--cursor)!important;text-transform:var(--label-text-transform)!important;display:inline-block!important;line-height:1em!important;align-self:center!important}:host(:state(disabled)),:host(:state(disabled)) ::slotted(nve-control-message:not([status])){--cursor: not-allowed}:host(:state(disabled)){--opacity: var(--nve-ref-opacity-500)}:host(:state(invalid)) ::slotted(nve-control-message:not([error],[status])){display:none}:host([fit-content]){--control-width: fit-content;--label-width: fit-content;--width: fit-content}:host([fit-text]){--max-width: fit-content;--width: fit-content;::slotted(input),::slotted(select){field-sizing:content}}:host([nve-control]) ::slotted(input:focus),:host([nve-control]) ::slotted(select:focus),:host([nve-control]) ::slotted(textarea:focus),:host([nve-control]:focus-within) [internal-host]:has(nve-icon-button:focus) [input],[internal-host]:has(nve-icon-button){outline:0!important}@container style(--control-type: custom){[input]{outline:0!important}}::slotted(nve-button[nve-control]){width:100%}[input]{cursor:var(--cursor);min-height:var(--control-height);opacity:var(--opacity);filter:var(--filter);grid-area:input;display:flex;line-height:1}:host([nve-control="inline"]){[internal-host]{min-height:var(--control-height)}[input]{min-height:min-content}}slot{line-height:1;width:100%}slot[name=label]{grid-area:label;display:inline-flex;align-self:center}slot[name=messages]{grid-area:messages;display:inline-flex}[name=messages]:not(:has-slotted),[name=label]:not(:has-slotted){display:none!important}[internal-host]{display:grid;width:100%;gap:var(--nve-ref-space-xs);grid-template-columns:1fr 1fr 1fr;grid-template-rows:auto;grid-template-areas:"input input input"}:host([nve-control="inline"]) [internal-host]{align-items:center;grid-template-columns:auto 1fr 1fr;slot[name=label],slot[name=messages]{align-items:center}::slotted(label){font-weight:var(--nve-ref-font-weight-regular)!important;color:var(--color)!important;width:100%}slot[name=label]{line-height:1;width:100%}}:host([layout="horizontal"]) [internal-host],:host([layout="horizontal-inline"]) [internal-host]{grid-template-columns:var(--_label-width) 1fr minmax(0,var(--_label-width))}[internal-host]{&:has([name=label]:has-slotted){grid-template-areas:"label label label" "input input input"}&:has([name=messages]:has-slotted){grid-template-areas:"input input input" "messages messages messages"}&:has([name=label]:has-slotted):has([name=messages]:has-slotted){grid-template-areas:"label label label" "input input input" "messages messages messages"}}:host([layout="horizontal"]),:host([layout="horizontal-inline"]){[internal-host]{&:has([name=messages]:has-slotted){grid-template-areas:"label input input" ". messages messages"}&:not(:has([name=messages]:has-slotted)){grid-template-areas:"label input input"}}}:host([nve-control="inline"]){--control-height: auto;width:fit-content;[internal-host]{grid-template-areas:"input input input";&:has([name=label]:has-slotted){grid-template-areas:"input label label"}&:has([name=messages]:has-slotted){grid-template-areas:"input input input" "messages messages messages"}&:has([name=label]:has-slotted):has([name=messages]:has-slotted){grid-template-areas:"input label label" "messages messages messages"}}}`,R=class extends x{constructor(...e){super(...e),this.fitText=!1,this.fitContent=!1,this.#e=new M(this,this.i18nDefaults),this.i18n=this.#e.i18n,this.nveControl=``,this.#i=[],this._associateDatalist=!0,this.#a=()=>{this.#f(),this.input&&this.#i.length===0&&this.#l()},this.#u=()=>{this.#f(),this.#p()}}get i18nDefaults(){return{}}#e;get#t(){return this.shadowRoot?.querySelector(`slot[name="label"]`)?.assignedElements({flatten:!0})?.[0]}get#n(){return this.shadowRoot?.querySelector(`slot[name="messages"]`)?.assignedElements({flatten:!0})??[]}#r;get input(){if(!this.#r){let e=this.querySelector(`slot`)?.assignedElements()?.find(e=>e.matches(`input, select, selectmenu, textarea, [nve-control]`))??Array.from(this.shadowRoot.querySelector(`slot`)?.assignedElements({flatten:!0})??[]).find(e=>e.matches(`input, select, selectmenu, textarea, [nve-control]`));this.#r=e||this.querySelector(iS)}return this.#r}get prefixContent(){return b}get suffixContent(){return b}#i;static{this.styles=j([bS])}static{this.metadata={tag:`nve-control`,version:`0.0.0`}}render(){return this.nveControl===`inline`?y`<div internal-host part="_internal-host"><div input part="_input"><slot interaction-state></slot></div><slot name="label" part="_label"></slot><slot name="messages" part="_messages"></slot></div>`:y`<div internal-host part="_internal-host"><slot name="label" part="_label"></slot><div input part="_input">${this.prefixContent}<slot></slot>${this.suffixContent}</div><slot name="messages" part="_messages"></slot></div>`}connectedCallback(){super.connectedCallback(),D(this),T(this,yS),this.shadowRoot.addEventListener(`slotchange`,this.#a)}disconnectedCallback(){super.disconnectedCallback(),this.shadowRoot.removeEventListener(`slotchange`,this.#a),this.shadowRoot.removeEventListener(`slotchange`,this.#u),this.#i.forEach(e=>e.disconnect()),this.#i.length=0}#a;reset(){this.#o(this.input),this.requestUpdate(),this.dispatchEvent(new CustomEvent(`reset`,{bubbles:!0,composed:!0}))}#o(e){e instanceof HTMLSelectElement?this.#s(e):this.#c(e)?(e.checked=e.defaultChecked,e.indeterminate=!1):e.value=e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement?e.defaultValue:e.getAttribute(`value`)??``}#s(e){let t=Array.from(e.options).some(e=>e.defaultSelected);Array.from(e.options).forEach(e=>e.selected=e.defaultSelected),!e.multiple&&!t&&(e.selectedIndex=0)}#c(e){return e instanceof HTMLInputElement&&(e.type===`checkbox`||e.type===`radio`)}#l(){this.#i.push(...aS(this,this.#n),...oS(this),...uS(this,this.#n),_S(this),qv(this,[`hidden`,`status`],()=>this.#f())),this.#d(),this.#p(),this.shadowRoot.addEventListener(`slotchange`,this.#u)}#u;#d(){this.input.showPicker||(this.input.showPicker=()=>this.input.focus())}#f(){this.input&&(this.toggleAttribute(`multiple`,this.input?.multiple),this.input?.hasAttribute(`size`)?this.setAttribute(`size`,``):this.removeAttribute(`size`))}#p(){this.#m(),Ay(this.#t,this.input),My(Array.from(this.#n),this.input),this._associateDatalist&&Ny(this.querySelector(`datalist`),this.input)}#m(){let e=this.querySelector(`label`)||this.shadowRoot.querySelector(`slot`).assignedNodes({flatten:!0}).find(e=>e.tagName===`LABEL`);e&&(e.slot=`label`)}showPicker(){try{this.input.showPicker()}catch{}}};N([S({type:String})],R.prototype,`status`,void 0),N([S({type:String,reflect:!0})],R.prototype,`layout`,void 0),N([S({type:Boolean,reflect:!0,attribute:`fit-text`})],R.prototype,`fitText`,void 0),N([S({type:Boolean,reflect:!0,attribute:`fit-content`})],R.prototype,`fitContent`,void 0),N([S({type:Object})],R.prototype,`i18n`,void 0),N([S({type:String,reflect:!0})],R.prototype,`prominence`,void 0),N([k({attribute:`nve-control`})],R.prototype,`nveControl`,void 0),R=N([O()],R);var xS=`:host{--color: var(--nve-sys-interaction-field-color);--opacity: 1;--label-color: var(--nve-sys-interaction-field-color);--label-text-transform: none;--label-font-weight: var(--nve-ref-font-weight-medium);--label-font-size: var(--nve-ref-font-size-100);--_label-width: var(--label-width, 180px)}[internal-host]{color:var(--color);opacity:var(--opacity)}::slotted(label){font-weight:var(--label-font-weight)!important;font-size:var(--label-font-size)!important;color:var(--label-color)!important;cursor:var(--cursor)!important;text-transform:var(--label-text-transform)!important}:host([layout*="horizontal-inline"]) ::slotted([nve-control]),:host([layout*="vertical-inline"]) ::slotted([nve-control]){--control-height: var(--nve-sys-interaction-field-height)}slot[name=label]{grid-area:label;display:block;align-self:center}slot[name=messages]{grid-area:messages;display:block}.input-slot{grid-area:input;display:flex;flex-flow:column wrap;gap:var(--nve-ref-space-sm) var(--nve-ref-space-md)}:host([layout*="-inline"]) .input-slot{flex-direction:row}[name=messages]:not(:has-slotted),[name=label]:not(:has-slotted){display:none!important}.no-messages{& slot[name=messages]{display:none!important}}.no-label{& slot[name=label]{display:none!important}}[internal-host]{display:grid;gap:var(--nve-ref-space-xs);align-items:start;grid-template-columns:1fr 1fr 1fr;grid-template-rows:auto;grid-template-areas:"label label label" "input input input" "messages messages messages";&.no-messages{grid-template-areas:"label label label" "input input input"}&.no-label{& slot[name=messages]{grid-template-areas:"input input input" "messages messages messages"}}&.no-label.no-messages{grid-template-areas:"input input input"}}:host([layout="vertical-inline"]) [internal-host]{grid-template-areas:"label label label" "input input input" "messages messages messages"}:host([layout="vertical-inline"]) [internal-host].no-messages{grid-template-areas:"label label label" "input input input"}:host([layout="horizontal"]) [internal-host]{grid-template-columns:var(--_label-width) minmax(auto,max-content) auto;grid-template-areas:"label input input" ". messages messages"}:host([layout="horizontal"]) [internal-host].no-messages{grid-template-areas:"label input input"}:host([layout="horizontal-inline"]) [internal-host]{grid-template-columns:var(--_label-width) minmax(auto,max-content) auto;grid-template-areas:"label input input" ". messages messages"}:host([layout="horizontal-inline"]) [internal-host].no-messages{grid-template-areas:"label input input"}:host([layout="horizontal"]) slot[name=label]{align-self:start}:host([layout="horizontal"]) ::slotted(label){align-self:start!important}`,SS=class extends x{get label(){return this.querySelector?.(`label`)}get inputs(){return this.querySelectorAll?Array.from(this.querySelectorAll(iS)):[]}get#e(){return this.querySelectorAll?Array.from(this.querySelectorAll(`nve-control-message`)):[]}#t=[];static{this.styles=j([xS])}static{this.metadata={tag:`nve-control-group`,version:`0.0.0`}}render(){return y`<div internal-host class="${this.#e.length?``:`no-messages`} ${this.label?``:`no-label`}"><slot name="label"></slot><slot class="input-slot"></slot><slot name="messages"></slot></div>`}connectedCallback(){super.connectedCallback(),D(this),this._internals.role=`group`}firstUpdated(e){super.firstUpdated(e),this.#t=[cS(this),_S(this),...uS(this,this.#e)],this.#n(),this.shadowRoot.addEventListener(`slotchange`,()=>this.#n())}disconnectedCallback(){super.disconnectedCallback(),this.#t.forEach(e=>e.disconnect())}#n(){this.#r(),jy(this.label,this),My(Array.from(this.querySelectorAll(`nve-control-message`)),this),Py(Array.from(this.inputs))}#r(){this.label&&(this.label.slot=`label`)}};N([S({type:String,reflect:!0})],SS.prototype,`layout`,void 0),N([S({type:String,reflect:!0})],SS.prototype,`prominence`,void 0),v(R),v(SS),v(rS);var CS=`:host{--cursor: pointer;--width: var(--nve-ref-size-400);--height: var(--nve-ref-size-400);--border-width: var(--nve-ref-border-width-md);--border-radius: var(--nve-ref-border-radius-xs);--border-color: var(--nve-ref-border-color);--background: transparent;--check-color: transparent;display:inline-block;contain:layout}::slotted(input){width:var(--width)!important;height:var(--height)!important;cursor:var(--cursor)!important;margin:0!important;position:absolute!important;opacity:0!important;inset:0!important}[input]{align-items:center;position:relative}@keyframes select-pop{0%{transform:scale(.8)}50%{transform:scale(1.1)}to{transform:scale(1)}}[input] slot{width:var(--width);height:var(--height);border:var(--border-width) solid var(--border-color);background:var(--background);border-radius:var(--border-radius);display:flex;align-items:center;justify-content:center;position:relative;overflow:visible;transition:transform var(--nve-ref-animation-duration-200) cubic-bezier(.12,.32,.54,2),border-color var(--nve-ref-animation-duration-150) ease}[input] slot:before{content:"";width:calc(var(--width) * .7);height:calc(var(--width) * .7 / 1.369);aspect-ratio:1.369;pointer-events:none;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) scale(1.05);clip-path:shape(from 98.17% 2.51%,arc by 0% 12.12% of 8% 8.57% small cw,line by -60.51% 82.87%,arc by -8.85% 0% of 8% 8.57% small cw,line to 1.68% 60.34%,arc by .15% -11.91% of 8% 8.58% small cw,arc by 8.7% -.21% of 8% 8.58% small cw,line to 33.23% 79.32%,line by 56.09% -76.81%,arc by 8.85% 0% of 8% 8.57% small cw,close)}:host(:state(checked)){--background: var(--accent-color);--check-color: var(--nve-sys-text-white-color)}:host(:state(checked)) [input] slot{border:0}:host(:state(checked):state(dirty)) [input] slot{animation:select-pop var(--nve-ref-animation-duration-200) ease-out}:host(:state(checked)) [input] slot:before{background:var(--check-color)}:host(:state(indeterminate)){--background: var(--border-color)}:host(:state(indeterminate)) [input] slot:before{display:none}:host(:state(indeterminate)) [input] slot:after{background:var(--nve-sys-interaction-color);content:"";display:inline-block;width:calc(var(--width) * .5);height:var(--border-width);position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);pointer-events:none}`,wS=class extends R{constructor(...e){super(...e),this.nveControl=`inline`}static{this.styles=j([...R.styles,CS])}static{this.metadata={tag:`nve-checkbox`,version:`0.0.0`,children:[`label`,`input`,`nve-control-message`]}}};N([k({attribute:`nve-control`})],wS.prototype,`nveControl`,void 0),wS=N([w()],wS);var TS=`:host{width:100%}`,ES=class extends SS{static{this.styles=j([...SS.styles,TS])}static{this.metadata={tag:`nve-checkbox-group`,version:`0.0.0`,children:[`label`,`nve-control-message`,`nve-checkbox`]}}};ES=N([w(),O()],ES),v(wS),v(ES),g(`dropper`,()=>Xa);var DS=`:host{--padding: 0 var(--nve-ref-size-200);--font-size: var(--nve-ref-font-size-100);--height: var(--nve-ref-size-800);--background: var(--nve-sys-interaction-field-background);--color: var(--nve-sys-interaction-field-color);--border-radius: var(--nve-ref-border-radius-sm);--border: var(--nve-ref-border-width-md) solid transparent;--border-bottom: var(--border);--cursor: text;--font-weight: normal;--_icon-height: var(--height);--_font-size: var(--font-size);--width: 100%;--max-width: 100%;--min-width: initial;width:var(--width);max-width:var(--max-width);min-width:var(--min-width)}[input]{height:var(--height);background:var(--background);border:var(--border);border-bottom:var(--border-bottom);border-radius:var(--border-radius);color:var(--color);cursor:var(--cursor);width:var(--control-width);display:flex;align-content:stretch}::slotted(input){accent-color:var(--accent-color)!important;cursor:var(--cursor)!important;padding:var(--padding)!important;font-size:var(--font-size)!important;color:var(--color)!important;line-height:var(--height)!important;border:0!important;background:none!important;display:block!important;width:100%!important;font-weight:var(--font-weight)!important}nve-icon-button,::slotted(nve-icon-button){--height: var(--_icon-height);align-self:center}::slotted(nve-button:not([slot])){--font-size: var(--_font-size);--padding: 0 var(--nve-ref-size-200);--color: var(--label-color);--height: 100%}:host([rounded]){--border-radius: var(--nve-ref-border-radius-full)}:host([status="error"]),:host(:state(invalid)),:host(:state(error)){--border: var(--nve-ref-border-width-md) solid var(--nve-sys-support-danger-emphasis-color)}:host([status="success"]),:host(:state(success)){--border: var(--nve-ref-border-width-md) solid var(--nve-sys-support-success-emphasis-color)}:host(:state(disabled)){--border: var(--nve-ref-border-width-md) solid transparent}:host([container="flat"]){--border-radius: 0;--box-shadow: none;--border-bottom: var(--nve-ref-border-width-md) solid var(--nve-ref-border-color-muted)}:host([container="flat"]) [input]{background:inherit}:host([container="flat"]:focus-within){--border-bottom: var(--nve-ref-border-width-md) solid var(--nve-ref-border-color-emphasis)}:host([container="flat"]:focus-within) [input]{outline:0!important}`,OS=DS,kS=class extends R{constructor(...e){super(...e),this.rounded=!1}static{this.styles=j([...R.styles,DS])}static{this.metadata={tag:`nve-input`,version:`0.0.0`}}};N([S({type:String,reflect:!0})],kS.prototype,`container`,void 0),N([S({type:Boolean,reflect:!0})],kS.prototype,`rounded`,void 0);var AS=`nve-input-group[type=filter]>nve-select::part(_caret){display:none!important}nve-input-group>[nve-control],nve-input-group>nve-button{--border-radius: 0}nve-input-group[type=filter] [nve-control]:nth-child(odd),nve-input-group[type=filter] nve-button:nth-child(odd){--font-weight: var(--nve-ref-font-weight-medium);--text-align: center}`,jS=`:host{--background: var(--nve-ref-border-color);--color: var(--nve-sys-interaction-field-color);--border-radius: var(--nve-ref-border-radius-sm);--gap: calc(var(--nve-ref-space-xxxs) / 2);--border: none;--width: max-content;width:var(--width);contain:none}[internal-host]{border-radius:var(--border-radius);overflow:hidden;width:var(--width);border:var(--border)}.input-slot{background:var(--background);border-radius:var(--border-radius);flex-flow:row nowrap;gap:var(--gap)}slot[name=label]{align-self:center}::slotted(nve-icon-button){--background: var(--nve-sys-interaction-field-background);--color: var(--nve-sys-support-emphasis-color);--border-radius: 0}::slotted(nve-select){--padding: 0 var(--nve-ref-size-200);width:fit-content}::slotted([nve-control]){--border-radius: 0 !important}::slotted([first-control]){--border-radius: var(--nve-ref-border-radius-sm) 0 0 var(--nve-ref-border-radius-sm) !important}::slotted([last-control]){--border-radius: 0 var(--nve-ref-border-radius-sm) var(--nve-ref-border-radius-sm) 0 !important}`,MS=class extends SS{static{this.styles=j([...SS.styles,jS])}static{this.metadata={tag:`nve-input-group`,version:`0.0.0`}}async connectedCallback(){T(this,AS),super.connectedCallback(),await this.updateComplete;let e=Array.from(this.shadowRoot.querySelector(`slot:not([name])`).assignedElements());e[0]?.setAttribute(`first-control`,``),e[e.length-1]?.setAttribute(`last-control`,``)}},NS=`nve-color input::-webkit-color-swatch{border:none!important}`,PS=`:host{--cursor: pointer}::slotted(input){padding:0!important;border:0!important;height:auto}`,FS={expand:`expand`},IS=class extends R{get i18nDefaults(){return FS}static{this.styles=j([...R.styles,OS,PS])}static{this.metadata={tag:`nve-color`,version:`0.0.0`}}static{this.elementDefinitions={[I.metadata.tag]:I}}get suffixContent(){return y`<nve-icon-button part="icon-button" .role="${`button`}" .ariaLabel="${this.i18n.expand}" icon-name="dropper" container="inline" @click="${()=>this.#e()}"></nve-icon-button>`}connectedCallback(){if(super.connectedCallback(),T(this,NS),this.input.value===`#000000`){let e=getComputedStyle(this).getPropertyValue(`--background`).trim();e.includes(`#`)&&(this.input.value=e)}}async#e(){this.input.value=await sy(),this.input.dispatchEvent(new Event(`input`,{bubbles:!0})),this.input.dispatchEvent(new Event(`change`,{bubbles:!0}))}};N([S({type:String,reflect:!0})],IS.prototype,`container`,void 0),IS=N([A()],IS),v(IS),g(`add`,()=>Se),g(`check`,()=>br);function LS(e,t){return(n,r,i)=>{let a=t=>t.renderRoot?.querySelector(e)??null;if(t){let{get:e,set:t}=typeof r==`object`?n:i??(()=>{let e=Symbol();return{get(){return this[e]},set(t){this[e]=t}}})();return _x(n,r,{get(){let n=e.call(this);return n===void 0&&(n=a(this),(n!==null||this.hasUpdated)&&t.call(this,n)),n}})}return _x(n,r,{get(){return a(this)}})}}var RS=`:host{--nve-sys-interaction-background: var(--nve-sys-interaction-background-300);--nve-sys-interaction-field-background: var(--nve-sys-interaction-background-300);--nve-sys-layer-popover-arrow-padding: 0px;--nve-sys-layer-popover-arrow-offset: 0px;--nve-sys-layer-popover-offset: 0px;--arrow-transform: translate(0, -2px) rotate(225deg);--border: var(--nve-ref-border-width-sm) solid var(--nve-ref-border-color-muted);--border-radius: var(--nve-ref-border-radius-md);--background: var(--nve-sys-layer-overlay-background);--color: var(--nve-sys-layer-overlay-color);--padding: var(--nve-ref-size-400);--box-shadow: var(--nve-ref-shadow-400);--width: fit-content;--min-width: fit-content;--gap: var(--nve-ref-space-sm);--_divider-padding: var(--padding)}[internal-host]{padding:var(--padding);border-radius:var(--border-radius);border:var(--border);background:var(--background);color:var(--color);box-shadow:var(--box-shadow);gap:var(--nve-ref-space-sm);width:var(--width);min-width:var(--min-width);outline:0}[internal-host]::backdrop{background:transparent}.header{display:flex;gap:var(--gap)}.header:has(nve-icon-button){min-height:var(--nve-ref-size-300)}nve-icon-button{position:absolute;top:var(--nve-ref-size-200);right:var(--nve-ref-size-200);z-index:99}.arrow{width:var(--nve-ref-size-400);height:var(--nve-ref-size-400);background:var(--background);transform:var(--arrow-transform);border-top-left-radius:var(--nve-ref-border-radius-xs);z-index:10000;clip-path:polygon(0 0,100% 0,0 100%);position:absolute;border-left:var(--border);border-top:var(--border)}:host([position*="top"]){--arrow-transform: translate(0, -2px) rotate(225deg)}:host([position*="right"]){--arrow-transform: translate(2px, 0) rotate(-45deg)}:host([position*="bottom"]){--arrow-transform: translate(0, 2px) rotate(45deg)}:host([position*="left"]){--arrow-transform: translate(-2px, 0) rotate(135deg)}::slotted(nve-menu){--width: 100%}::slotted(nve-divider){margin:0 calc(-1 * var(--_divider-padding))}`,zS={close:`close`},z=class extends x{constructor(...e){super(...e),this.position=`bottom`,this.alignment=`start`,this.closable=!1,this.arrow=!1,this.modal=!0,this.popoverType=`auto`,this.#e=new M(this,zS),this.typeNativePopoverController=new Zy(this),this.i18n=this.#e.i18n}static{this.styles=j([ub,RS])}static{this.metadata={tag:`nve-dropdown`,version:`0.0.0`}}static{this.elementDefinitions={[I.metadata.tag]:I}}#e;get popoverDismissible(){return this.modal}render(){return y`<div internal-host><slot name="header"></slot>${this.closable?y`<nve-icon-button part="icon-button" exportparts="icon:icon-button-icon" @click="${this.hidePopover}" icon-name="cancel" container="flat" size="sm" .ariaLabel="${this.i18n.close}"></nve-icon-button>`:``}<slot></slot><slot name="footer"></slot></div>${this.arrow?y`<div class="arrow"></div>`:``}`}};N([S({type:String})],z.prototype,`anchor`,void 0),N([S({type:String})],z.prototype,`trigger`,void 0),N([S({type:String,reflect:!0})],z.prototype,`position`,void 0),N([S({type:String,reflect:!0})],z.prototype,`alignment`,void 0),N([S({type:Boolean,reflect:!0,attribute:`behavior-trigger`})],z.prototype,`behaviorTrigger`,void 0),N([S({type:Boolean})],z.prototype,`closable`,void 0),N([S({type:Boolean})],z.prototype,`arrow`,void 0),N([S({type:Boolean,reflect:!0})],z.prototype,`modal`,void 0),N([S({type:String,attribute:`popover-type`})],z.prototype,`popoverType`,void 0),N([LS(`.arrow`)],z.prototype,`popoverArrow`,void 0),N([S({type:Object})],z.prototype,`i18n`,void 0),z=N([w({excessiveInstanceLimit:50}),A()],z);var BS=`:host{--border-top: var(--nve-ref-border-width-md) solid var(--nve-ref-border-color);--padding: var(--nve-ref-size-400);--gap: var(--nve-ref-space-sm);display:block;width:calc(100% + calc(var(--padding) * 2));margin:var(--padding) calc(var(--padding) * -1) 0 calc(var(--padding) * -1)}[internal-host]{border-top:var(--border-top);padding:var(--padding) var(--padding) 0 var(--padding);display:flex;justify-content:start;gap:var(--gap)}`,VS=class extends x{static{this.styles=j([BS])}static{this.metadata={tag:`nve-dropdown-footer`,version:`0.0.0`,parents:[`nve-dropdown`]}}render(){return y`<div internal-host><slot></slot></div>`}connectedCallback(){super.connectedCallback(),this.slot=`footer`}},HS=`:host{--border-bottom: var(--nve-ref-border-width-md) solid var(--nve-ref-border-color);--padding: var(--nve-ref-size-400);width:calc(100% + calc(var(--padding) * 2));margin:0 calc(var(--padding) * -1) var(--padding) calc(var(--padding) * -1)}[internal-host]{border-bottom:var(--border-bottom);padding:0 var(--padding) var(--padding) var(--padding)}`,US=class extends x{static{this.styles=j([HS])}static{this.metadata={tag:`nve-dropdown-header`,version:`0.0.0`,parents:[`nve-dropdown`]}}render(){return y`<div internal-host><slot></slot></div>`}connectedCallback(){super.connectedCallback(),this.slot=`header`}};v(z),v(VS),v(US);var WS=`:host{--padding: 0;--gap: var(--nve-ref-space-xxs);--width: min-content;--max-width: 100%;--min-width: 170px;--max-height: 100%;width:var(--width);min-width:var(--min-width);contain:layout;content-visibility:auto;contain-intrinsic-size:auto var(--max-height, initial)}[internal-host]{padding:var(--padding);gap:var(--gap);display:flex;flex-direction:column;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);max-height:var(--max-height);margin:0;overflow-y:auto;scrollbar-color:var(--nve-sys-scrollbar-thumb-color) var(--nve-sys-scrollbar-track-color);scrollbar-width:var(--nve-sys-scrollbar-width)}`,GS=`nve-menu:has(nve-menu-item:state(current)){--padding: 0 0 0 var(--nve-ref-size-200)}nve-menu:has(nve-tooltip),nve-menu:has(nve-tooltip) nve-menu-item{content-visibility:initial}nve-menu[density=compact]{--min-width: 0;nve-menu-item{--gap: 0;width:fit-content}nve-menu-item::part(_slot),nve-menu-item::part(_suffix){display:none!important}}`,KS=class extends x{static{this.styles=j([WS])}static{this.metadata={tag:`nve-menu`,version:`0.0.0`,children:[`nve-menu-item`,`nve-divider`]}}static{this.elementDefinitions={}}get keynavListConfig(){return{layout:`vertical`,items:this.items}}#e=new Ty(this);#t=[];#n=null;#r=!1;#i=()=>{this.#n===null&&(this.#n=requestAnimationFrame(()=>{this.#n=null;let e=this.shadowRoot?.querySelector(`[internal-host]`);if(!e)return;let{scrollTop:t,scrollHeight:n,clientHeight:r}=e;this.dispatchEvent(new CustomEvent(`scroll`,{bubbles:!0,composed:!0,detail:{scrollTop:t,scrollHeight:n,clientHeight:r}}))}))};render(){return y`<div internal-host><slot @slotchange="${this.#a}"></slot></div>`}async firstUpdated(){await this.updateComplete,this.shadowRoot?.querySelector(`[internal-host]`)?.addEventListener(`scroll`,this.#i,{passive:!0})}connectedCallback(){super.connectedCallback(),D(this),this._internals.role=`menu`,T(this,GS),this.hasUpdated&&(this.#t=this.items),this.parentElement?.localName===`nve-menu-group`&&!this.slot&&(this.slot=`menu`,this.#r=!0)}disconnectedCallback(){super.disconnectedCallback(),this.#t=[],this.#r&&this.slot===`menu`&&(this.slot=``),this.#r=!1}#a=()=>{this.#e.refreshItems(this.#t),this.#t=this.items}};N([S({type:String,reflect:!0})],KS.prototype,`density`,void 0),N([L({selector:`nve-menu-item`})],KS.prototype,`items`,void 0),KS=N([w()],KS);var qS=`:host{--background: transparent;--font-size: var(--nve-ref-font-size-100);--padding: var(--nve-ref-size-200);--gap: var(--nve-ref-space-sm);--border-radius: var(--nve-ref-border-radius-xs);--color: var(--nve-sys-interaction-color);--width: 100%;--min-height: var(--nve-ref-size-800);--nve-sys-interaction-state-base: var(--background, var(--nve-sys-layer-canvas-background));display:block;width:var(--width);contain:layout}[internal-host]{display:flex;flex-direction:column;width:100%;gap:var(--nve-ref-space-xxs)}button{appearance:none;padding:var(--padding);color:var(--color);background:var(--background);font-size:var(--font-size);border-radius:var(--border-radius);min-height:var(--min-height);gap:var(--gap);font-weight:var(--nve-ref-font-weight-medium);border:0;width:100%;margin:0;font-family:inherit;line-height:normal;text-align:start;cursor:pointer;outline-offset:calc(-1 * var(--nve-ref-size-50));position:relative;display:flex;align-items:center;background-image:linear-gradient(color-mix(in oklab,var(--nve-sys-interaction-state-base) 100%,var(--nve-sys-interaction-state-mix) var(--nve-sys-interaction-state-ratio)) 0 0)!important;&:hover{--nve-sys-interaction-state-ratio: var(--nve-sys-interaction-state-ratio-hover)}}button:not([disabled]):focus-visible{outline:Highlight solid 2px!important;outline:5px auto -webkit-focus-ring-color!important}slot:not([name]){display:inline-flex;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[part=caret]{flex:none;--color: currentColor}slot[name=menu]{width:100%;display:block}::slotted(nve-menu){--min-width: 0;--width: 100%;--padding: 0 0 0 var(--nve-ref-size-200)}::slotted(nve-icon){--color: currentColor}:host([disabled]){--color: var(--nve-sys-interaction-disabled-color)}:host([disabled]) button{--nve-sys-interaction-state-ratio: 0;cursor:not-allowed;opacity:var(--nve-ref-opacity-500)}:host(:not([disabled]):hover){--color: var(--nve-sys-interaction-selected-color)}`,JS=class extends x{constructor(...e){super(...e),this.expanded=!1,this.disabled=!1,this.behaviorExpand=!1,this.#e=new Ky(this),this.#t=()=>{this.disabled||this.#e.toggle()}}static{this.styles=j([qS])}static{this.metadata={tag:`nve-menu-group`,version:`0.0.0`,children:[`nve-menu`]}}static{this.elementDefinitions={[P.metadata.tag]:P}}#e;render(){return y`<div internal-host><button id="trigger" type="button" aria-expanded="${this.expanded}" ?disabled="${this.disabled}" aria-controls="content" @click="${this.#t}"><slot name="prefix"></slot><slot></slot><slot name="suffix"></slot><nve-icon part="caret" name="caret" direction="${this.expanded?`down`:`right`}" size="sm" aria-hidden="true"></nve-icon></button><slot id="content" name="menu" ?hidden="${!this.expanded}"></slot></div>`}connectedCallback(){super.connectedCallback(),D(this),this._internals.role=`group`}#t};N([S({type:Boolean,reflect:!0})],JS.prototype,`expanded`,void 0),N([S({type:Boolean,reflect:!0})],JS.prototype,`disabled`,void 0),N([S({type:Boolean,attribute:`behavior-expand`})],JS.prototype,`behaviorExpand`,void 0),JS=N([w(),A()],JS);var YS=`:host{--border-radius: var(--nve-ref-border-radius-xs);--border-background: var(--nve-sys-accent-secondary-background);--font-size: var(--nve-ref-font-size-100);--font-weight: var(--nve-ref-font-weight-medium);--color: var(--nve-sys-interaction-color);--padding: var(--nve-ref-size-200);--gap: var(--nve-ref-space-sm);--width: 100%;--min-height: var(--nve-ref-size-800);--line-height: 0;--cursor: pointer;--text-transform: capitalize;--opacity: 1;contain:layout;content-visibility:auto;contain-intrinsic-size:auto var(--min-height, initial)}[internal-host]{--_icon-color: var(--color);padding:var(--padding);color:var(--color);font-size:var(--font-size);font-weight:var(--font-weight);border-radius:var(--border-radius);gap:var(--gap);width:var(--width);min-width:var(--min-width);min-height:var(--min-height);cursor:var(--cursor);text-transform:var(--text-transform);outline-offset:calc(-1 * var(--nve-ref-size-50));opacity:var(--opacity);position:relative;display:flex;align-items:center;white-space:nowrap;border:0;text-align:left}::slotted(nve-icon){--color: var(--_icon-color)}:host(:hover),:host(:state(selected)){--color: var(--nve-sys-interaction-selected-color)}:host(:state(disabled)) [interaction-state]{--nve-sys-interaction-state-ratio: 0}:host(:state(disabled)){--opacity: var(--nve-ref-opacity-500);--cursor: not-allowed}:host(:state(current)){contain:none;content-visibility:initial;--color: var(--nve-sys-interaction-selected-color)}:host(:state(current)) [internal-host]{contain:none}:host([status="danger"]){--nve-sys-interaction-state-base: var(--nve-sys-support-danger-muted-color);--nve-sys-interaction-selected-color: var(--nve-sys-support-danger-emphasis-color);--border-background: var(--nve-sys-support-danger-emphasis-color);--color: var(--nve-sys-support-danger-emphasis-color)}:host([status="danger"]:hover) ::slotted(nve-icon){--color: var(--nve-sys-support-danger-emphasis-color) !important}:host(:state(current)) [internal-host]:after{width:var(--nve-ref-border-width-xl);border-radius:var(--border-radius);background:var(--border-background);content:"";display:block;position:absolute;top:var(--nve-ref-size-50);bottom:var(--nve-ref-size-50);left:calc(var(--nve-ref-size-200) * -1)}::slotted(nve-icon){--color: inherit !important}::slotted(a){text-decoration:var(--text-decoration)!important;color:var(--color)!important;gap:var(--gap)!important;display:flex!important;align-items:center!important;outline:0}::slotted(a):after{display:block;content:" ";inset:0;position:absolute}::slotted(*:not(a,nve-icon)){pointer-events:none}::slotted(nve-icon){cursor:var(--cursor)}::slotted(nve-divider){margin:0 calc(-1 * var(--padding))}::slotted([slot="suffix"]){margin-inline-start:auto}`,XS=class extends px(x){static{this.styles=j([YS])}static{this.metadata={tag:`nve-menu-item`,version:`0.0.0`,parents:[`nve-menu`]}}static{this.elementDefinitions={}}render(){return y`<div internal-host interaction-state focus-within part="_internal"><slot name="prefix" part="_prefix"></slot><slot part="_slot"></slot><slot name="suffix" part="_suffix"></slot></div>`}constructor(){super(),this.type=`button`}connectedCallback(){super.connectedCallback(),this._internals.role=`menuitem`}};N([S({type:String,reflect:!0})],XS.prototype,`status`,void 0),XS=N([w()],XS),v(KS),v(JS),v(XS);var ZS=e=>e??b,QS=`:host{--background: var(--state-color-background);--color: var(--state-color);--state-color-base: var(--nve-ref-color-blue-cobalt-1100);--nve-sys-interaction-state-base: var(--background, var(--nve-sys-layer-canvas-background));--gap: var(--nve-ref-space-xs);--font-size: var(--nve-ref-font-size-100);--padding: 0 var(--nve-ref-size-200);--border: 0;--border-radius: var(--nve-ref-border-radius-full);--font-weight: var(--nve-ref-font-weight-regular);--cursor: pointer;--height: var(--nve-ref-size-600);--width: initial;--max-width: initial;display:inline-flex;user-select:none}[internal-host]{--_color: var(--color);font-weight:var(--font-weight);font-size:var(--font-size);gap:var(--gap);background:var(--background);color:var(--color);padding:var(--padding);border:var(--border);border-radius:var(--border-radius);cursor:var(--cursor);height:var(--height);width:var(--width);max-width:var(--max-width);display:inline-flex;line-height:1.1em;place-items:center;place-content:center;white-space:nowrap}slot:not([name]){text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block}::slotted([nve-text]){color:inherit!important}::slotted(nve-icon){--color: var(--_color)}::slotted(nve-dot){--color: var(--state-color-background);--status-color: var(--_color)}nve-icon{--color: inherit;cursor:var(--cursor)}:host([readonly]){--text-decoration: none;--cursor: cursor}`,$S={close:`close`},eC=class extends px(x){static{this.styles=j([sb,QS])}static{this.metadata={tag:`nve-tag`,version:`0.0.0`}}static{this.elementDefinitions={[P.metadata.tag]:P}}#e;#t;render(){return y`<div internal-host interaction-state focus-within><slot name="prefix"></slot><slot></slot><slot name="suffix"></slot>${this.closable?y`<nve-icon part="icon" @click="${()=>this.#t.close()}" container="flat" name="cancel" size="sm" role="img" aria-label="${ZS(this.i18n.close)}"></nve-icon>`:``}</div>`}constructor(){super(),this.closable=!1,this.#e=new M(this,$S),this.i18n=this.#e.i18n,this.#t=new Gy(this),this.type=`button`}};N([S({type:Boolean})],eC.prototype,`closable`,void 0),N([S({type:String,reflect:!0})],eC.prototype,`color`,void 0),N([S({type:String,reflect:!0})],eC.prototype,`prominence`,void 0),N([S({type:Object})],eC.prototype,`i18n`,void 0),eC=N([A()],eC),v(eC);var tC=`:host{--scroll-height: 25vh;--_input-background: var(--background);contain:initial}[name=caret]{right:var(--nve-ref-size-300);align-self:center;pointer-events:none;position:absolute}[internal-host]:has(nve-menu:focus-within) [input]{outline:0!important}:host(:state(selected)){--font-weight: var(--nve-ref-font-weight-semibold)}:host(:state(multiple)){--padding: 0 var(--nve-ref-size-100)}:host(:state(multiple)) [input]{padding:var(--padding)}.tags{width:fit-content;display:flex;gap:var(--nve-ref-space-xxs);align-items:center}.tags-label{padding:0 var(--nve-ref-size-200);font-size:var(--font-size);cursor:var(--cursor);font-weight:var(--font-weight);text-wrap:nowrap;display:none;align-items:center;pointer-events:none}:host(:state(multiple-overflow):not([tag-layout="wrap"])) .tags{opacity:0;pointer-events:none;position:absolute}:host(:state(multiple-overflow):not([tag-layout="wrap"])) .tags-label{display:flex}nve-tag{--background: color-mix(in oklab, var(--color) 15%, var(--_input-background));--padding: var(--nve-ref-size-100) var(--nve-ref-size-200);--cursor: pointer !important}::slotted(select){display:none!important}:host([status="error"]),:host(:state(invalid)),:host(:state(error)){--border: var(--nve-ref-border-width-md) solid var(--nve-sys-support-danger-emphasis-color)}:host([status="success"]),:host(:state(success)){--border: var(--nve-ref-border-width-md) solid var(--nve-sys-support-success-emphasis-color)}:host(:state(disabled)){--border: var(--nve-ref-border-width-md) solid transparent}[name=prefix-icon]{display:contents}nve-dropdown{--padding: var(--nve-ref-size-200)}nve-menu{contain:content;--max-height: var(--scroll-height)}nve-menu-item{--text-transform: initial;contain:content;content-visibility:auto}[internal-host]:has([matches]) nve-menu-item{--color: var(--nve-sys-text-muted-color)}nve-menu-item nve-icon{--color: inherit}input[type=checkbox]{accent-color:var(--nve-sys-accent-secondary-background)}nve-checkbox:not(:state(disabled)){--border-color: var(--nve-ref-border-color-emphasis)}nve-menu-item:not(:state(selected)) nve-icon[name=check]{opacity:0}slot:not([name]),slot[name*=option-]{display:contents}[matches]{font-weight:var(--nve-ref-font-weight-medium);color:var(--nve-sys-text-emphasis-color)}[name=footer]{display:none;min-height:var(--nve-ref-size-900);margin:calc(var(--nve-ref-size-200) * -1);width:calc(100% + calc(var(--nve-ref-size-200) * 2));border-top:var(--nve-ref-border-width-sm) solid var(--nve-ref-border-color-muted);padding:0 var(--nve-ref-size-200);gap:var(--nve-ref-space-sm);justify-content:center;align-items:center}:host(:state(footer-content)) [name=footer]{display:flex}nve-menu-item[part=create-option]{--color: var(--nve-sys-text-muted-color);font-style:italic;span:first-letter{text-transform:uppercase}}:host([tag-layout="wrap"]:state(multiple-overflow)){[input]{min-height:var(--height);height:fit-content;flex-direction:column;width:100%}.tags{padding-block-start:var(--nve-ref-size-50);flex-wrap:wrap}}`,nC={select:`select`,selected:`selected`,noResults:`no results`,create:`create`},rC=class extends R{constructor(...e){super(...e),this.#p=[],this.#m=!1,this.#_=null,this._associateDatalist=!1,this.#D=/* @__PURE__ */ new Map}get i18nDefaults(){return nC}static{this.styles=j([...R.styles,OS,tC])}static{this.metadata={tag:`nve-combobox`,version:`0.0.0`}}static{this.elementDefinitions={[wS.metadata.tag]:wS,[P.metadata.tag]:P,[z.metadata.tag]:z,[KS.metadata.tag]:KS,[XS.metadata.tag]:XS,[eC.metadata.tag]:eC}}#e;get#t(){return this.#e||=this.shadowRoot?this.shadowRoot.querySelector(`slot`)?.assignedElements({flatten:!0})?.find(e=>e.tagName===`DATALIST`||e.tagName===`SELECT`)??this.querySelector(`datalist, select`):null,this.#e}#n;get#r(){return this.#n||=this.shadowRoot?this.shadowRoot.querySelector(`slot`)?.assignedElements({flatten:!0})?.find(e=>e.tagName===`SELECT`)??this.querySelector(`select`):null,this.#n}get#i(){return Array.from(this.#t?.options?this.#t.options:[])}get#a(){return Array.from(this.shadowRoot.querySelectorAll(XS.metadata.tag))}get#o(){return this.shadowRoot.querySelector(z.metadata.tag)}get#s(){return this.shadowRoot.querySelector(`[input]`)}get#c(){return this.shadowRoot.querySelector(`.tags`)}get#l(){return this.#i.find(e=>!e.disabled&&!e.hidden)}get#u(){return!!this.querySelector(`[slot="footer"]`)}get#d(){if(!this.behaviorCreate||this.input?.disabled)return!1;let e=this.input?.value.trim();return e?!this.#f(e):!1}#f(e){let t=e.toLowerCase();return this.#i.find(e=>(e.textContent.trim()||e.value).toLowerCase()===t||e.value.toLowerCase()===t)}#p;#m;#h;#g;#_;get prefixContent(){return this.#r?.multiple&&!this.#v?y`<div class="tags-label" aria-hidden="true">${this.#r.selectedOptions.length} ${this.i18n.selected}</div><div class="tags">${Array.from(this.#r.selectedOptions).map(e=>y`<nve-tag part="tag" readonly="readonly" color="gray-slate" closable .value="${e.value}" @click="${()=>this.#z(e)}">${dy(e)}</nve-tag>`)}</div>`:y`<slot name="prefix-icon"></slot>`}get#v(){return this.tagLayout===`hidden`}get#y(){return(this.#t?.options?.length??0)>50}get#b(){return!this._internals.states.has(`dirty`)}get suffixContent(){let e=this.#i,t=this.#y,n=this.#b,r=e.filter(e=>!e.hidden).filter(e=>!(e.value===``&&e.disabled)),i=r.filter(e=>!e.disabled).length===0,a=this.#d;return y`<nve-dropdown part="dropdown" .popoverType="${`manual`}" .modal="${!1}" @open="${this.#N}" @close="${this.#P}" hidden .anchor="${this.#s}" position="bottom"><nve-menu part="menu" role="listbox" style="--width:100%;--min-width:fit-content" aria-label="${ZS(this.i18n.select)}">${r.map(e=>y`<nve-menu-item part="menu-item" .option="${dy(e)}" role="option" @click="${()=>this.#z(e)}" ?selected="${e.selected}" aria-selected="${e.selected?`true`:`false`}" ?disabled="${e.disabled}" aria-label="${dy(e)}">${this.#x(e)} ${t||n?dy(e):y`<span role="presentation">${(e.label?e.label:e.value)?.split(``)?.map((e,t)=>y`<span ?matches="${this.#H(e,t)}">${e}</span>`)}</span>`}</nve-menu-item>`)} ${i&&!a?y`<nve-menu-item part="menu-item" .value="${``}" disabled="disabled">${this.i18n.noResults}</nve-menu-item>`:b} ${a?y`<nve-menu-item part="create-option" role="button" aria-label="${`${this.i18n.create} "${this.input?.value.trim()}"`}" @click="${this.#B}"><nve-icon part="icon" name="add" size="sm"></nve-icon>"${this.input?.value.trim()}"</nve-menu-item>`:b}</nve-menu><slot name="footer"></slot></nve-dropdown>`}#x(e){let t=this.#r;return t?.multiple&&this.#y?y`<input aria-hidden="true" type="checkbox" .checked="${e.selected}" .disabled="${e.disabled}" .name="${e.selected?`check`:void 0}">`:t?.multiple?y`<nve-checkbox part="checkbox"><input aria-hidden="true" type="checkbox" .checked="${e.selected}" .disabled="${e.disabled}" .name="${e.selected?`check`:void 0}"></nve-checkbox>`:t?y`<nve-icon part="icon" name="check" size="sm"></nve-icon>`:b}async firstUpdated(e){super.firstUpdated(e),this.shadowRoot.addEventListener(`slotchange`,()=>this.#j()),await this.updateComplete,this.#S(),this.#C(),this.#F(),this.#I(),this.#R(),this.#X(),await this.#L(),this.input.setAttribute(`list`,``),this.input.autocomplete=`off`}updated(e){super.updated(e),this.#J()}connectedCallback(){super.connectedCallback();let e=new MutationObserver(()=>this.#j());e.observe(this,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`selected`,`disabled`,`value`],characterData:!0}),this.#p.push(e),this.#O()}disconnectedCallback(){super.disconnectedCallback(),this.#p.forEach(e=>e.disconnect()),this.#p.length=0,this.#g?.disconnect(),this.#_=null,this._internals.states.delete(`multiple-overflow`),this.#k(),this.#h!==void 0&&cancelAnimationFrame(this.#h),this.#h=void 0}reset(){this.#o.hidePopover(),this.#r&&(this.#r.selectedIndex=-1),super.reset()}selectAll(){this.#i.forEach(e=>e.selected=!0),this.requestUpdate(),this.#r.dispatchEvent(new Event(`input`,{bubbles:!0})),this.#r.dispatchEvent(new Event(`change`,{bubbles:!0}))}#S(){this.#r&&!this.#r.multiple&&(this.#w(),this.#E())}#C(){this.#r?.multiple&&(this.#w(),this.#E(),this._internals.states.add(`multiple`))}#w(){let e=Array.from(this.#r.selectedOptions).find(e=>e.hasAttribute(`selected`));e&&!this.#r.multiple&&!this.input.defaultValue&&(this.input.value=dy(e))}#T(){!this.#r.multiple&&!this.input.defaultValue&&(this.input.value=dy(Array.from(this.#r.selectedOptions).find(e=>e.value===this.#r.value)))}#E(){this.#p.push(Xv(this.#r,`value`,()=>{this.#T(),this.requestUpdate()}))}#D;#O(){this.#e=null,this.#n=null,this.#A(),this.requestUpdate()}#k(){this.#D.forEach(e=>e?.()),this.#D.clear()}#A(){this.isConnected&&this.#i.forEach(e=>{this.#D.has(e)||this.#D.set(e,Yv(e,`selected`,()=>this.requestUpdate()))})}#j(){this.#m||(this.#m=!0,queueMicrotask(()=>{this.#m=!1,this.isConnected&&(this.#e=null,this.#n=null,this.#M(),this.#A(),this.requestUpdate())}))}#M(){let e=new Set(this.#i);for(let[t,n]of this.#D)e.has(t)||(n?.(),this.#D.delete(t))}#N(){this.#o.hidden=!1}#P(){this.#o.hidden=!0,this._internals.states.delete(`dirty`),this.#G()}#F(){this.addEventListener(`keydown`,e=>{let t=this.input.value.trim();if(e.code===`Tab`&&(this.#l&&this.#o.matches(`:popover-open`)&&t!==``&&(e.preventDefault(),this.#K(this.#a[0].option),this.#q(this.#i.find(e=>(e.label?e.label:e.value)===this.#a[0].option))),this.#o.hidePopover()),e.code===`Enter`&&this.behaviorCreate&&!this.input.disabled&&t){let n=this.#f(t);n?this.#z(n):(e.preventDefault(),e.stopImmediatePropagation(),this.#V())}})}#I(){this.input.addEventListener(`input`,()=>this.#U()),this.shadowRoot.addEventListener(`slotchange`,()=>this.#U())}async#L(){let e=this.#o;await e.updateComplete,_b({element:e.shadowRoot.querySelector(`[internal-host]`),focusElement:this.input},()=>{this.#o.matches(`:popover-open`)&&this.#o.hidePopover()})}#R(){this.#c?.addEventListener(`pointerup`,()=>{this.tagLayout===`wrap`&&(this.input.focus(),setTimeout(()=>this.#W(),0))}),this.input.addEventListener(`pointerdown`,()=>{this.#W()}),this.addEventListener(`keydown`,e=>{e.code!==`Tab`&&e.code!==`Escape`&&this.#W(),e?.code===`ArrowDown`&&this.getRootNode().activeElement===this.input&&(this.#o.tabIndex=0,this.#a[0]?.focus(),e.preventDefault())})}#z(e){this.#r?.multiple||(this.#K(dy(e)),this.#o.hidePopover(),Bv(this.input)),this.#r&&(e.selected=!e.selected,this.#q(e)),this.requestUpdate()}#B(){this.#V()}#V(){let e=this.input.value.trim();e&&(this.dispatchEvent(new CustomEvent(`create`,{detail:{value:e},bubbles:!0,composed:!0})),this.input.value=``,this.#o.hidePopover(),Bv(this.input),this.requestUpdate())}#H(e,t){return this.#l?this.input.value.toLowerCase()[t]?.toLowerCase()===e.toLowerCase():!1}#U(){this.#i.forEach(e=>{e.hidden=e.textContent.trim().length?!e.textContent.toLocaleLowerCase().includes(this.input?.value.toLowerCase()):!e.value.toLocaleLowerCase().includes(this.input?.value.toLowerCase())}),this.requestUpdate()}#W(){!this.input.disabled&&!this.#o.matches(`:popover-open`)&&(this.#r?(this.#i.forEach(e=>e.hidden=!1),this.requestUpdate()):this.#U(),this.#o.style.setProperty(`--min-width`,`${this.#s.getBoundingClientRect().width}px`),this.#o.showPopover({source:this.#s}),this.#o.tabIndex=-1)}#G(){this.#r&&!this.#r.multiple&&!this.#i.filter(e=>!(e.value===``&&e.disabled)).find(e=>dy(e)===this.input.value)&&(this.#i.forEach(e=>e.selected=!1),this.#K(``),this.#q({value:``,selected:!1}))}#K(e){this.input.value=e,this.input.dispatchEvent(new Event(`input`,{bubbles:!0})),this.input.dispatchEvent(new Event(`change`,{bubbles:!0}))}#q(e){let t=[...this.#i,{value:``,selected:null}].find(t=>t.value===e.value);t&&(t.selected=e.selected??null),this.#r&&!this.#r.multiple&&(this.#r.value=e.value),this.#r?.dispatchEvent(new Event(`input`,{bubbles:!0})),this.#r?.dispatchEvent(new Event(`change`,{bubbles:!0}))}#J(){if(!this.isConnected)return;let e=this.#r?.multiple&&!this.#v?this.#c:null;e!==this.#_&&(this.#g?.disconnect(),this.#_=e,this.#h!==void 0&&cancelAnimationFrame(this.#h),this.#h=void 0,e?(this.#g??=new ResizeObserver(()=>{this.#h===void 0&&(this.#h=requestAnimationFrame(()=>{this.#h=void 0;let e=this.#c;this.isConnected&&e&&this.#Y(e.getBoundingClientRect().width)}))}),this.#g.observe(e),this.#g.observe(this.#s)):this._internals.states.delete(`multiple-overflow`))}#Y(e){this.#r?.multiple&&e>this.#s.getBoundingClientRect().width-100?this._internals.states.add(`multiple-overflow`):this._internals.states.delete(`multiple-overflow`)}#X(){this.#Z(),this.shadowRoot.addEventListener(`slotchange`,()=>this.#Z())}#Z(){this.#u?this._internals.states.add(`footer-content`):this._internals.states.delete(`footer-content`)}};N([S({type:String,reflect:!0})],rC.prototype,`container`,void 0),N([S({type:String,reflect:!0,attribute:`tag-layout`})],rC.prototype,`tagLayout`,void 0),N([S({type:Boolean,reflect:!0,attribute:`behavior-create`})],rC.prototype,`behaviorCreate`,void 0),rC=N([A()],rC),v(rC),g(`copy`,()=>ge);var iC=`:host{--nve-sys-layer-popover-arrow-padding: 0px;--nve-sys-layer-popover-arrow-offset: 0px;--nve-sys-layer-popover-offset: var(--nve-ref-space-md);--nve-sys-interaction-color: var(--color);--padding: var(--nve-ref-size-200) var(--nve-ref-size-400);--justify-content: initial;--background: var(--nve-sys-layer-popover-background);--border-radius: var(--nve-ref-border-radius-md);--border: none;--color: var(--nve-sys-layer-popover-color);--font-size: var(--nve-ref-font-size-200);--font-weight: var(--nve-ref-font-weight-medium);--box-shadow: var(--nve-ref-shadow-100);--gap: var(--nve-ref-space-xs);--_gap: var(--gap);height:fit-content}[internal-host]{background:var(--background);font-size:var(--font-size);font-weight:var(--font-weight);gap:var(--gap);color:var(--color);padding:var(--padding);border-radius:var(--border-radius);border:var(--border);display:flex;flex-direction:row;align-items:center;justify-content:var(--justify-content)}[internal-host]:has(nve-icon-button){padding-inline-end:var(--nve-ref-size-800)}:host([status="accent"]){--background: var(--nve-sys-support-accent-color)}:host([status="success"]){--background: var(--nve-sys-support-success-color);--color: var(--nve-sys-text-white-color)}:host([status="warning"]){--background: var(--nve-sys-support-warning-color);--color: var(--nve-sys-text-black-color)}:host([status="danger"]){--background: var(--nve-sys-support-danger-color);--color: var(--nve-sys-text-white-color)}:host([prominence="muted"]:not([status])){--background: var(--nve-sys-support-muted-color);--color: var(--nve-sys-layer-popover-background)}nve-icon{--color: inherit}nve-icon-button{--color: inherit;position:absolute;inset-block-start:var(--nve-ref-size-50);inset-inline-end:var(--nve-ref-size-50)}::slotted(nve-button[container="flat"]),::slotted(nve-button[container="inline"]){--color: inherit;margin-inline:calc(var(--_gap) * 2) calc(var(--_gap) / -2)}::slotted([nve-text]){color:inherit!important}`,aC={close:`close`,danger:`danger`,information:`information`,success:`success`,warning:`warning`},B=class extends x{constructor(...e){super(...e),this.position=`top`,this.closable=!1,this.closeTimeout=0,this.#e=new M(this,aC),this.i18n=this.#e.i18n,this.popoverType=`manual`,this.typeNativePopoverController=new Zy(this)}static{this.styles=j([ub,iC])}static{this.metadata={tag:`nve-toast`,version:`0.0.0`}}static{this.elementDefinitions={[I.metadata.tag]:I,[P.metadata.tag]:P}}#e;render(){return y`<div internal-host><slot name="prefix"><nve-icon part="prefix-icon" .name="${mb[this.status]}" .ariaLabel="${this.i18n[this.status]??this.i18n.information}"></nve-icon></slot>${this.closable?y`<nve-icon-button part="icon-button" exportparts="icon:icon-button-icon" @click="${this.hidePopover}" icon-name="cancel" container="flat" .ariaLabel="${this.i18n.close}"></nve-icon-button>`:b}<slot></slot></div>`}connectedCallback(){super.connectedCallback(),D(this),this._internals.role=`alert`}};N([S({type:String})],B.prototype,`anchor`,void 0),N([S({type:String})],B.prototype,`trigger`,void 0),N([S({type:String,reflect:!0})],B.prototype,`position`,void 0),N([S({type:String,reflect:!0})],B.prototype,`alignment`,void 0),N([S({type:String,reflect:!0})],B.prototype,`prominence`,void 0),N([S({type:Boolean,reflect:!0,attribute:`behavior-trigger`})],B.prototype,`behaviorTrigger`,void 0),N([S({type:Boolean})],B.prototype,`closable`,void 0),N([S({type:Number,attribute:`close-timeout`})],B.prototype,`closeTimeout`,void 0),N([S({type:String,reflect:!0})],B.prototype,`status`,void 0),N([S({type:Object})],B.prototype,`i18n`,void 0),B=N([A(),w({excessiveInstanceLimit:50})],B),v(B);var oC=`:host{--nve-sys-layer-popover-arrow-padding: 6px;--nve-sys-layer-popover-arrow-offset: 2px;--nve-sys-layer-popover-offset: 2px;--nve-sys-interaction-color: var(--color);--border-radius: var(--nve-ref-border-radius-sm);--border: 0;--background: var(--nve-sys-layer-popover-background);--color: var(--nve-sys-layer-popover-color);--padding: var(--nve-ref-size-200) var(--nve-ref-size-300);--box-shadow: var(--nve-ref-shadow-500);--font-size: var(--nve-ref-font-size-100);--font-weight: var(--nve-ref-font-weight-regular);--arrow-transform: translate(0, -2px) rotate(-45deg);--width: max-content;--height: initial;box-shadow:var(--box-shadow)}:host([status="muted"]){--background: var(--nve-sys-layer-overlay-background);--color: var(--nve-sys-layer-overlay-color)}[internal-host]{padding:var(--padding);border-radius:var(--border-radius);background:var(--background);color:var(--color);font-size:var(--font-size);font-weight:var(--font-weight);width:var(--width);height:var(--height);border:var(--border);white-space:initial}[internal-host]:has(nve-icon-button){padding-inline-end:var(--nve-ref-size-800)}.arrow{width:var(--nve-ref-size-300);height:var(--nve-ref-size-300);background:var(--background);transform:var(--arrow-transform);border-radius:var(--nve-ref-size-50);position:absolute}nve-icon-button{--color: inherit;position:absolute;inset-block-start:var(--nve-ref-size-50);inset-inline-end:var(--nve-ref-size-50)}::slotted([nve-text]){color:inherit!important}:host([position*="top"]){--arrow-transform: translate(0, -2px) rotate(-45deg)}:host([position*="right"]){--arrow-transform: translate(2px, 0) rotate(45deg)}:host([position*="bottom"]){--arrow-transform: translate(0, 2px) rotate(45deg)}:host([position*="left"]){--arrow-transform: translate(-2px, 0) rotate(45deg)}`,V=class extends x{constructor(...e){super(...e),this.position=`top`,this.popoverType=`hint`,this.typeNativePopoverController=new Zy(this)}static{this.styles=j([ub,oC])}static{this.metadata={tag:`nve-tooltip`,version:`0.0.0`}}render(){return y`<div internal-host><slot></slot></div><div part="arrow" class="arrow"></div>`}connectedCallback(){super.connectedCallback(),D(this),this._internals.role=`tooltip`}};N([S({type:String})],V.prototype,`anchor`,void 0),N([S({type:String})],V.prototype,`trigger`,void 0),N([S({type:String,reflect:!0})],V.prototype,`position`,void 0),N([S({type:String,reflect:!0})],V.prototype,`alignment`,void 0),N([S({type:Boolean,reflect:!0,attribute:`behavior-trigger`})],V.prototype,`behaviorTrigger`,void 0),N([S({type:String,reflect:!0})],V.prototype,`status`,void 0),N([S({type:Number,attribute:`open-delay`})],V.prototype,`openDelay`,void 0),N([LS(`.arrow`)],V.prototype,`popoverArrow`,void 0),V=N([w({excessiveInstanceLimit:50})],V),v(V);var sC=`:host{--nve-sys-interaction-state-base: var(--background, var(--nve-sys-layer-canvas-background));--color: var(--nve-sys-text-muted-color);--border-radius: var(--nve-ref-border-radius-full);--line-height: 0;--padding: 0;--height: var(--nve-ref-size-800);--min-width: var(--nve-ref-size-800);--font-size: calc(var(--width) / 2.3);--_icon-color: var(--color)}[internal-host]:after{display:none!important}:host([size="sm"]){--height: var(--nve-ref-size-700);--min-width: var(--nve-ref-size-700)}:host([size="lg"]){--min-width: var(--nve-ref-size-1000);--height: var(--nve-ref-size-1000);--padding: 0}:host([container="flat"][selected]) [interaction-state],:host([container="flat"]:state(selected)) [interaction-state],:host([container="flat"][pressed]) [interaction-state],:host([container="flat"]:state(pressed)) [interaction-state]{--nve-sys-interaction-state-ratio: var(--nve-sys-interaction-state-ratio-selected)}:host([container*="flat"]){--background: transparent;--border-radius: var(--nve-ref-border-radius-xs)}:host([container*="flat"]:state(disabled)){--color: var(--nve-sys-interaction-disabled-color);--background: transparent}:host([container*="flat"]:state(disabled)) [interaction-state]{--nve-sys-interaction-state-ratio: 0}:host([container*="flat"]:state(selected)){--color: var(--nve-sys-interaction-selected-color)}nve-icon{--color: var(--_icon-color);pointer-events:none}`,cC={copy:`copy`,copied:`copied`},lC=class extends hx{constructor(...e){super(...e),this.copied=!1,this.showToast=!1,this.showTooltip=!1,this.#e=new M(this,cC),this.i18n=this.#e.i18n,this.#t=()=>{this.behaviorCopy&&navigator.clipboard.writeText(this.value).then(()=>{this.showToast=!0,this.copied=!0}).catch(e=>{this.showToast=!1,console.error(e)})},this.#r=()=>{this.showTooltip=!0},this.#i=()=>{this.showTooltip=!1}}#e;static{this.styles=j([...hx.styles,sC])}static{this.metadata={tag:`nve-copy-button`,version:`0.0.0`}}static{this.elementDefinitions={[P.metadata.tag]:P,[B.metadata.tag]:B,[V.metadata.tag]:V}}render(){return y`<div id="btn" internal-host interaction-state focus-within><slot></slot>${this.copied?y`<nve-icon part="icon" name="check" status="success" .size="${this.size}" aria-hidden="true"></nve-icon>`:y`<slot name="icon"><nve-icon part="icon" name="copy" .size="${this.size}" aria-hidden="true"></nve-icon></slot>`}</div>${this.showToast?y`<nve-toast part="toast" @close="${this.#n}" status="success" anchor="btn" position="top" close-timeout="1500">${this.i18n.copied}</nve-toast>`:b} ${this.showTooltip&&!this.showToast?y`<nve-tooltip part="tooltip" exportparts="arrow:tooltip-arrow" anchor="btn">${this.ariaLabel??this.i18n.copy}</nve-tooltip>`:b}`}connectedCallback(){super.connectedCallback(),this.addEventListener(`click`,this.#t),this.addEventListener(`mouseenter`,this.#r),this.addEventListener(`mouseleave`,this.#i)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(`click`,this.#t),this.removeEventListener(`mouseenter`,this.#r),this.removeEventListener(`mouseleave`,this.#i)}#t;#n(){this.showToast=!1,this.copied=!1,this.showTooltip=!1}#r;#i};N([C()],lC.prototype,`copied`,void 0),N([C()],lC.prototype,`showToast`,void 0),N([C()],lC.prototype,`showTooltip`,void 0),N([S({type:Object})],lC.prototype,`i18n`,void 0),N([S({type:Boolean,reflect:!0,attribute:`behavior-copy`})],lC.prototype,`behaviorCopy`,void 0),N([S({type:String})],lC.prototype,`value`,void 0),lC=N([A()],lC),v(lC),g(`calendar`,()=>qn);var uC=`:host{--width: 100%;width:var(--width)}`,dC={expand:`expand`},fC=class extends R{get i18nDefaults(){return dC}static{this.styles=j([...R.styles,OS,uC])}static{this.metadata={tag:`nve-date`,version:`0.0.0`}}static{this.elementDefinitions={[I.metadata.tag]:I}}get suffixContent(){return y`<nve-icon-button part="icon-button" .ariaLabel="${this.i18n.expand}" icon-name="calendar" container="inline" @click="${this.showPicker}"></nve-icon-button>`}};N([S({type:String,reflect:!0})],fC.prototype,`container`,void 0),fC=N([A()],fC),v(fC);var pC=`:host{width:100%}`,mC={expand:`expand`},hC=class extends R{get i18nDefaults(){return mC}static{this.styles=j([...R.styles,OS,pC])}static{this.metadata={tag:`nve-datetime`,version:`0.0.0`}}static{this.elementDefinitions={[I.metadata.tag]:I}}get suffixContent(){return y`<nve-icon-button part="icon-button" .ariaLabel="${this.i18n.expand}" icon-name="calendar" container="inline" @click="${this.showPicker}"></nve-icon-button>`}};N([S({type:String,reflect:!0})],hC.prototype,`container`,void 0),hC=N([A()],hC),v(hC);var gC=`nve-dialog:has(nve-dialog-header),nve-dialog:has(nve-dialog-footer){&::part(_host){padding:0}&::part(_content){padding:var(--padding)}}`,_C=`:host{--nve-sys-interaction-background: var(--nve-sys-interaction-background-300);--nve-sys-interaction-field-background: var(--nve-sys-interaction-background-300);--nve-sys-layer-popover-arrow-padding: 6px;--nve-sys-layer-popover-arrow-offset: 4px;--nve-sys-layer-popover-offset: var(--nve-ref-space-xxl);--border: var(--nve-ref-border-width-sm) solid var(--nve-ref-border-color-muted);--border-radius: var(--nve-ref-border-radius-lg);--background: var(--nve-sys-layer-overlay-background);--color: var(--nve-sys-layer-overlay-color);--padding: var(--nve-ref-size-300) var(--nve-ref-size-400);--box-shadow: var(--nve-ref-shadow-500);--gap: var(--nve-ref-space-sm);--max-width: 600px;--min-height: 250px;--max-height: 100vh;width:100vw;height:min-content;max-width:var(--max-width);max-height:var(--max-height);min-height:var(--min-height)}:host([size="sm"]){--max-width: 400px}:host([size="lg"]){--max-width: 840px}[internal-host]{border-radius:var(--border-radius);border:var(--border);background:var(--background);color:var(--color);box-shadow:var(--box-shadow);padding:var(--padding);max-height:var(--max-height);height:inherit;width:inherit;max-width:inherit;min-height:inherit;min-width:inherit}:host([modal])::backdrop{background:#00000080}.header{display:flex;gap:var(--gap)}.content{overflow:auto;min-height:inherit;scrollbar-color:var(--nve-sys-scrollbar-thumb-color) var(--nve-sys-scrollbar-track-color);scrollbar-width:var(--nve-sys-scrollbar-width);slot{gap:var(--gap);min-height:inherit;display:flex;flex-direction:column;align-items:flex-start}}nve-icon-button{position:absolute;top:var(--nve-ref-size-200);right:var(--nve-ref-size-200);z-index:99}`,vC={close:`close`},yC=class extends x{constructor(...e){super(...e),this.position=`center`,this.alignment=`center`,this.anchor=globalThis.document?.body,this.#e=new M(this,vC),this.i18n=this.#e.i18n,this.typeNativePopoverController=new Zy(this)}#e;get popoverType(){return this.modal?`auto`:`manual`}get popoverDismissible(){return this.closable??!1}static{this.styles=j([ub,_C])}static{this.metadata={tag:`nve-dialog`,version:`0.0.0`}}static{this.elementDefinitions={[I.metadata.tag]:I}}render(){return y`<div internal-host part="_host"><div class="header">${this.closable?y`<nve-icon-button part="close-button icon-button" exportparts="icon:icon-button-icon" size="sm" @click="${this.hidePopover}" icon-name="cancel" .ariaLabel="${this.i18n.close}"></nve-icon-button>`:``}<slot name="header"></slot></div><div class="content" part="_content"><slot></slot></div><slot name="footer"></slot></div>`}connectedCallback(){super.connectedCallback(),D(this),this._internals.role=`dialog`,T(this,gC)}};N([S({type:String,reflect:!0})],yC.prototype,`position`,void 0),N([S({type:String,reflect:!0})],yC.prototype,`alignment`,void 0),N([S({type:String,reflect:!0})],yC.prototype,`size`,void 0),N([S({type:Boolean})],yC.prototype,`closable`,void 0),N([S({type:Boolean,reflect:!0})],yC.prototype,`modal`,void 0),N([S({type:String})],yC.prototype,`anchor`,void 0),N([S({type:String})],yC.prototype,`trigger`,void 0),N([S({type:Boolean,reflect:!0,attribute:`behavior-trigger`})],yC.prototype,`behaviorTrigger`,void 0),N([S({type:Object})],yC.prototype,`i18n`,void 0),yC=N([w({excessiveInstanceLimit:50}),A()],yC);var bC=`:host{--border-bottom: var(--nve-ref-border-width-sm) solid var(--nve-ref-border-color);--padding: var(--nve-ref-size-400);display:block;width:100%}[internal-host]{border-bottom:var(--border-bottom);padding:var(--padding);color:var(--color)}`,xC=class extends x{static{this.styles=j([bC])}static{this.metadata={tag:`nve-dialog-header`,version:`0.0.0`,parents:[`nve-dialog`]}}render(){return y`<div internal-host><slot></slot></div>`}connectedCallback(){super.connectedCallback(),this.slot=`header`}},SC=`:host{--border-top: var(--nve-ref-border-width-sm) solid var(--nve-ref-border-color);--padding: var(--nve-ref-size-400);--gap: var(--nve-ref-space-sm);display:block;width:100%;margin-block-start:auto}[internal-host]{border-top:var(--border-top);padding:var(--padding);gap:var(--gap);display:flex;justify-content:end}`,CC=class extends x{static{this.styles=j([SC])}static{this.metadata={tag:`nve-dialog-footer`,version:`0.0.0`,parents:[`nve-dialog`]}}render(){return y`<div internal-host><slot></slot></div>`}connectedCallback(){super.connectedCallback(),this.slot=`footer`}};v(yC),v(xC),v(CC);var wC=`:host{--color: var(--nve-ref-border-color);--border-radius: 0;--padding: 0;--size: var(--nve-ref-border-width-sm);width:100%}[internal-host]{display:block;width:100%;height:var(--size);background-color:var(--color);border-radius:var(--border-radius);padding:var(--padding)}:host([orientation="vertical"]){align-self:stretch;height:inherit;width:var(--size)}:host([orientation="vertical"]) [internal-host]{height:100%;width:var(--size)}`,TC=class extends x{constructor(...e){super(...e),this.orientation=`horizontal`}static{this.styles=j([wC])}static{this.metadata={tag:`nve-divider`,version:`0.0.0`}}render(){return y`<div internal-host></div>`}connectedCallback(){super.connectedCallback(),D(this),this._internals.role=`separator`,this._internals.ariaOrientation=this.orientation}updated(e){super.updated(e),e.has(`orientation`)&&(this._internals.ariaOrientation=this.orientation)}};N([S({type:String,reflect:!0})],TC.prototype,`orientation`,void 0),v(TC);var EC=`:host{--gap: var(--nve-ref-space-xs);--font-size: var(--nve-ref-font-size-100);--font-weight: var(--nve-ref-font-weight-semibold);--background: var(--status-color);--color: var(--nve-sys-text-white-color);--border-radius: var(--nve-ref-border-radius-full);--height: var(--nve-ref-size-300);--width: var(--nve-ref-size-300);--padding: 0;--border: 0;width:auto;display:inline-flex}[internal-host]{font-weight:var(--font-weight);font-size:var(--font-size);gap:var(--gap);background:var(--background);color:var(--color);border-radius:var(--border-radius);height:var(--height);width:var(--width);padding:var(--padding);border:var(--border);display:flex;line-height:1em;place-items:center;place-content:center}:host([size="sm"]){--height: var(--nve-ref-size-200);--width: var(--nve-ref-size-200);--font-size: var(--nve-ref-font-size-50)}:host([size="lg"]){--height: var(--nve-ref-size-400);--width: var(--nve-ref-size-400);--font-size: var(--nve-ref-font-size-200)}:host(:state(has-text)){--width: fit-content;--height: fit-content;--padding: calc(var(--font-size) * .1) calc(var(--font-size) * .5)}::slotted([nve-text]){color:inherit!important}:host([status="warning"]){--color: var(--nve-sys-text-black-color)}`,DC=class extends x{static{this.styles=j([EC,cb,lb])}static{this.metadata={tag:`nve-dot`,version:`0.0.0`}}render(){return y`<div internal-host><slot @slotchange="${()=>this.#e()}"></slot></div>`}connectedCallback(){super.connectedCallback(),D(this),this._internals.role=`img`}#e(){this.textContent.length?this._internals.states.add(`has-text`):this._internals.states.delete(`has-text`)}};N([S({type:String,reflect:!0})],DC.prototype,`status`,void 0),N([S({type:String,reflect:!0})],DC.prototype,`size`,void 0),v(DC),g(`drag`,()=>qa);var OC=`:host{--nve-sys-interaction-state-base: transparent;--cursor: move;--color: var(--nve-sys-text-muted-color);--width: var(--nve-ref-size-800);--height: var(--nve-ref-size-800);--border-radius: var(--nve-ref-border-radius-xs);display:inline-flex;user-select:none}:host([draggable="true"]){-webkit-user-drag:element}:host(:state(disabled)),:host([readonly]){-webkit-user-drag:none}[internal-host]{display:flex;align-items:center;justify-content:center;width:var(--width);height:var(--height);border-radius:var(--border-radius);cursor:var(--cursor)}nve-icon{--color: inherit;pointer-events:none}:host(:state(pressed)){--color: var(--nve-sys-interaction-selected-color)}:host(:hover:not(:state(disabled),[readonly],:state(pressed))){--color: var(--nve-sys-interaction-hover-color)}:host(:state(pressed)) [interaction-state]{--nve-sys-interaction-state-ratio: var(--nve-sys-interaction-state-ratio-selected)}@container style(--nve-sys-color-scheme: dark){:host{--nve-sys-interaction-state-ratio-selected: 16% !important;--nve-sys-interaction-state-ratio-hover: 12% !important}}:host(:state(disabled)){--color: var(--nve-sys-interaction-disabled-color);--cursor: default}:host(:state(disabled)) [interaction-state]{--nve-sys-interaction-state-ratio: 0}`,kC=class extends px(x){static{this.styles=j([OC])}static{this.metadata={tag:`nve-drag-handle`,version:`0.0.0`}}static{this.elementDefinitions={[P.metadata.tag]:P}}constructor(){super(),this.type=`button`,this.pressed=!1}render(){return y`<div internal-host interaction-state focus-within><nve-icon name="drag" .appearance="${this.pressed||this.expanded?`solid`:`outline`}" aria-hidden="true" part="icon"></nve-icon></div>`}connectedCallback(){super.connectedCallback(),this.setAttribute(`nve-draggable`,`handle`),this.hasAttribute(`draggable`)||(this.draggable=!0),this.addEventListener(`click`,this.#e),this.addEventListener(`keydown`,this.#r),this.addEventListener(`dragstart`,this.#t),this.addEventListener(`dragend`,this.#n)}disconnectedCallback(){this.removeEventListener(`click`,this.#e),this.removeEventListener(`keydown`,this.#r),this.removeEventListener(`dragstart`,this.#t),this.removeEventListener(`dragend`,this.#n),super.disconnectedCallback()}#e=e=>{e.target!==this||e.defaultPrevented||this.disabled||this.readOnly||(this.pressed=!this.pressed)};#t=e=>{(this.disabled||this.readOnly)&&e.preventDefault()};#n=()=>{this._internals.states.delete(`active`)};#r=e=>{e.key!==` `||e.target!==this||e.defaultPrevented||this.disabled||this.readOnly||e.preventDefault()}};kC=N([A()],kC),v(kC);var AC=`:host{--nve-sys-interaction-background: var(--nve-sys-interaction-background-300);--nve-sys-interaction-field-background: var(--nve-sys-interaction-background-300);--nve-sys-layer-popover-arrow-padding: 0px;--nve-sys-layer-popover-arrow-offset: 0px;--nve-sys-layer-popover-offset: 0px;--border: var(--nve-ref-border-width-sm) solid var(--nve-ref-border-color-muted);--background: var(--nve-sys-layer-overlay-background);--color: var(--nve-sys-layer-overlay-color);--padding: 0;--box-shadow: var(--nve-ref-shadow-500);--gap: var(--nve-ref-space-sm);--top: 0px;--max-width: 400px;--width: 100vw;width:var(--width);max-width:var(--max-width);height:calc(100vh - var(--top));margin:initial!important;margin-block-start:var(--top)!important;position-area:unset!important}:host([size="sm"]){--max-width: 280px}:host([size="lg"]){--max-width: 540px}:host([position="left"]){transform:translate(calc(-1 * var(--width)))!important}:host([position="right"]){transform:translate(var(--width))!important}:host(:popover-open){transform:translate(0)!important}:host([inline]){--nve-sys-interaction-background: var(--nve-sys-interaction-background-200);--nve-sys-interaction-field-background: var(--nve-sys-interaction-background-200);--background: var(--nve-sys-layer-container-background);--box-shadow: none;--border: 0;transition:none!important}[internal-host]{border:var(--border);background:var(--background);color:var(--color);box-shadow:var(--box-shadow);bottom:0!important;display:grid;grid-template-rows:auto minmax(0,1fr) auto;height:100%;width:100%}::backdrop{background:transparent}:host([modal])::backdrop{background:#00000012}.header{display:flex;gap:var(--gap)}.content{padding:var(--padding);display:flex;flex-direction:column;align-items:start;overflow:auto;flex:1}nve-icon-button{position:absolute;top:var(--nve-ref-size-200);right:var(--nve-ref-size-200);z-index:99}:host([position="bottom"]),:host([position="top"]){min-width:100%;height:max-content}:host([position="bottom"]) [internal-host],:host([position="top"]) [internal-host]{height:min-content}:host([position="left"]){inset:auto auto auto 0!important}:host([position="right"]){inset:auto 0 auto auto!important}:host([position="top"]){inset:0 auto auto!important}:host([position="bottom"]){inset:auto auto 0!important}`,jC={close:`close`},MC=class extends x{constructor(...e){super(...e),this.position=`left`,this.anchor=globalThis.document?.body,this.#e=new M(this,jC),this.i18n=this.#e.i18n,this.typeNativePopoverController=new Zy(this),this.#n=e=>{this.inline&&(this.#t&&e.newState===`closed`?this.#t.remove():(this.#t=py(this),this.after(this.#t)))}}#e;get popoverType(){return this.modal?`auto`:`manual`}get popoverDismissible(){return this.closable??!1}static{this.styles=j([ub,AC])}static{this.metadata={tag:`nve-drawer`,version:`0.0.0`}}static{this.elementDefinitions={[I.metadata.tag]:I}}render(){return y`<div internal-host><div class="header"><nve-icon-button part="icon-button" exportparts="icon:icon-button-icon" .hidden="${!this.closable}" @click="${this.hidePopover}" icon-name="cancel" .ariaLabel="${this.i18n.close}" container="flat"></nve-icon-button><slot name="header"></slot></div><div class="content"><slot></slot></div><div><slot name="footer"></slot></div></div>`}#t;connectedCallback(){super.connectedCallback(),this.addEventListener(`toggle`,this.#n)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(`toggle`,this.#n),this.#t?.remove(),this.#t=void 0}#n};N([S({type:String,reflect:!0})],MC.prototype,`position`,void 0),N([S({type:String,reflect:!0})],MC.prototype,`size`,void 0),N([S({type:Boolean})],MC.prototype,`closable`,void 0),N([S({type:Boolean,reflect:!0})],MC.prototype,`modal`,void 0),N([S({type:String})],MC.prototype,`anchor`,void 0),N([S({type:String})],MC.prototype,`trigger`,void 0),N([S({type:Boolean,reflect:!0})],MC.prototype,`inline`,void 0),N([S({type:Boolean,reflect:!0,attribute:`behavior-trigger`})],MC.prototype,`behaviorTrigger`,void 0),N([S({type:Object})],MC.prototype,`i18n`,void 0),MC=N([O(),A()],MC);var NC=`:host{--padding: var(--nve-ref-size-300) var(--nve-ref-size-400);--gap: var(--nve-ref-space-sm);width:100%;height:100%;flex:1;justify-content:stretch;flex-direction:column;display:flex;overflow:auto;gap:var(--gap);contain:none}[internal-host]{background:var(--background);padding:var(--padding);height:100%;width:100%;flex:1}::slotted(nve-menu){--width: 100%}`,PC=class extends x{static{this.styles=j([NC])}static{this.metadata={tag:`nve-drawer-content`,version:`0.0.0`,parents:[`nve-drawer`]}}render(){return y`<div internal-host><slot></slot></div>`}},FC=`:host{--border-top: var(--nve-ref-border-width-sm) solid var(--nve-ref-border-color);--padding: var(--nve-ref-size-300) var(--nve-ref-size-400);--gap: var(--nve-ref-space-sm);--min-height: calc(var(--nve-ref-size-1000) + var(--nve-ref-size-200));display:block}[internal-host]{background:var(--background);border-top:var(--border-top);padding:var(--padding);gap:var(--gap);min-height:var(--min-height);display:flex;align-items:center}`,IC=class extends x{static{this.styles=j([FC])}static{this.metadata={tag:`nve-drawer-footer`,version:`0.0.0`,parents:[`nve-drawer`]}}render(){return y`<div internal-host><slot></slot></div>`}connectedCallback(){super.connectedCallback(),this.slot=`footer`}},LC=`:host{--border-bottom: var(--nve-ref-border-width-sm) solid var(--nve-ref-border-color);--min-height: calc(var(--nve-ref-size-1000) + var(--nve-ref-size-200));--padding: var(--nve-ref-size-300);display:block;width:100%}[internal-host]{background:var(--background);border-bottom:var(--border-bottom);padding:var(--padding);color:var(--color);min-height:var(--min-height);display:flex;align-items:center}`,RC=class extends x{static{this.styles=j([LC])}static{this.metadata={tag:`nve-drawer-header`,version:`0.0.0`,parents:[`nve-drawer`]}}render(){return y`<div internal-host><slot></slot></div>`}connectedCallback(){super.connectedCallback(),this.slot=`header`}};v(MC),v(IC),v(RC),v(PC);var zC=`nve-dropdown-group>nve-dropdown+nve-dropdown{--nve-sys-layer-popover-offset: calc(var(--nve-ref-size-400) + 2px);margin-block-start:calc(var(--nve-ref-size-400) * -1)}`,BC=class extends x{static{this.styles=j([])}static{this.metadata={tag:`nve-dropdown-group`,version:`0.0.0`,children:[`nve-dropdown`]}}render(){return y`<div internal-host><slot @slotchange="${this.#n}"></slot></div>`}#e=/* @__PURE__ */ new WeakMap;#t;connectedCallback(){super.connectedCallback(),T(this,zC),globalThis.document?.addEventListener(`pointerup`,this.#r),this.addEventListener(`keydown`,this.#i),this.addEventListener(`beforetoggle`,this.#u,!0),this.addEventListener(`open`,this.#l),this.addEventListener(`close`,this.#d)}disconnectedCallback(){super.disconnectedCallback(),globalThis.document?.removeEventListener(`pointerup`,this.#r),this.removeEventListener(`keydown`,this.#i),this.removeEventListener(`beforetoggle`,this.#u,!0),this.removeEventListener(`open`,this.#l),this.removeEventListener(`close`,this.#d)}#n(){this.dropdowns.forEach(e=>{e.popoverType=`manual`})}#r=e=>{let t=this.dropdowns.filter(e=>e.matches(`:popover-open`));t.length&&t.every(t=>Zv(e,t))&&this.close()};#i(e){let t=e.code===`Escape`||e.code===`ArrowLeft`||e.code===`ArrowRight`;if(e.defaultPrevented||!t)return;let n=e.composedPath(),r=this.#a(n),i=this.#c(r);(i||r===this)&&(e.code===`Escape`?(e.preventDefault(),e.stopPropagation(),this.close()):i&&this.#o(e,n,i))}#a(e){return e.find(e=>e instanceof HTMLElement&&(e.localName===`nve-dropdown`||e.localName===`nve-dropdown-group`))}#o(e,t,n){let r=Rv(this.ownerDocument);if(!(r instanceof HTMLElement)||!t.includes(r))return;let i=getComputedStyle(this).direction===`rtl`,a=i?`ArrowLeft`:`ArrowRight`,o=i?`ArrowRight`:`ArrowLeft`;e.code===a?this.#s(r,e):e.code===o&&r.localName===`nve-menu-item`&&(e.preventDefault(),e.stopPropagation(),n.hidePopover())}#s(e,t){if(e.matches(`[disabled]`)||!(`popoverTargetElement`in e))return;let n=e.popoverTargetElement,r=this.#c(n);r&&(t.preventDefault(),t.stopPropagation(),r.showPopover({source:e}))}#c(e){return this.dropdowns.find(t=>t===e)}#l(e){let t=this.#c(e.composedPath()[0]);t&&(this.#t?.matches(`:popover-open`)||(this.#t=t),this.#e.delete(t),e.detail?.trigger instanceof HTMLElement&&this.#e.set(t,e.detail.trigger),$v(t)[0]?.focus())}#u(e){let t=this.#c(e.composedPath()[0]);t&&e.newState===`closed`&&!t.matches(`:focus-within`)&&this.#e.delete(t)}#d(e){let t=this.#c(e.composedPath()[0]);if(t){let e=this.#e.get(t);t===this.#t&&(this.#t=void 0),this.#e.delete(t);let n=this.ownerDocument.activeElement;(!n||n===this.ownerDocument.body||t.matches(`:focus-within`))&&e?.isConnected&&e.focus()}}close(){let e=this.#t?this.#e.get(this.#t):void 0;this.#t=void 0,this.#e=/* @__PURE__ */ new WeakMap;let t=Array.from(this.querySelectorAll(`nve-dropdown`));t.forEach(e=>e.hidePopover());let n=this.ownerDocument.activeElement;(!n||n===this.ownerDocument.body||t.some(e=>e.matches(`:focus-within`)))&&e?.isConnected&&e.focus()}};N([L({selector:`nve-dropdown`})],BC.prototype,`dropdowns`,void 0),BC=N([w()],BC),v(BC),g(`upload`,()=>Bh);var VC=`:host{--background: inherit;--min-height: 50px;--border-radius: var(--nve-ref-border-radius-xs);--border-color: var(--nve-ref-border-color);--padding: var(--nve-ref-space-lg)}[internal-host]{display:flex;flex-direction:column;gap:var(--nve-ref-space-md)}.container{background:var(--background);border-radius:var(--border-radius);justify-content:center;gap:var(--nve-ref-space-xs);min-height:var(--min-height);padding:var(--padding);color:var(--nve-sys-text-color);position:relative;cursor:pointer;display:flex;flex-direction:column;align-items:center;user-select:none}.dropzone-border{border-radius:var(--border-radius);color:var(--border-color);position:absolute;inset:0}.icon{padding:var(--nve-ref-space-xs);border-radius:var(--nve-ref-border-radius-sm);background:var(--nve-sys-layer-canvas-accent-background)}slot[name=icon]::slotted(*){padding:var(--nve-ref-space-xs);border-radius:var(--nve-ref-border-radius-sm);background:var(--nve-sys-layer-canvas-accent-background)}.text-emphasized{color:var(--nve-sys-text-emphasis-color)}.dropzone-text-center{text-align:center;line-height:var(--nve-ref-font-line-height-relaxed);font-size:var(--nve-ref-font-size-200)}.dropzone-text-center:first-letter{text-transform:capitalize}.dropzone-text-bold{font-weight:var(--nve-ref-font-weight-semibold)}.text-muted{color:var(--nve-sys-text-muted-color);font-size:var(--nve-ref-font-size-100);font-weight:var(--nve-ref-font-weight-regular)}:host([highlighted]),:host(:hover){--background: color-mix(in oklab, transparent, var(--nve-sys-accent-secondary-background) 20%);--border-color: var(--nve-ref-border-color-emphasis);.icon{background:var(--nve-sys-accent-secondary-background);--color: var(--nve-sys-text-white-color)}slot[name=icon]::slotted(*){background:var(--nve-sys-accent-secondary-background);--color: var(--nve-sys-text-white-color)}.text-emphasized{color:var(--nve-sys-text-color)}}:host([highlighted]),:host(:active){--background: color-mix(in oklab, transparent, var(--nve-sys-accent-secondary-background) 30%)}`;function HC(e){return e.split(`,`).map(e=>{let t=e.trim();return t.startsWith(`.`)&&(t=t.slice(1)),t.endsWith(`/*`)&&(t=t.split(`/`)[0]),t.includes(`/`)&&(t=t.split(`/`)[1]),t.includes(`+`)&&(t=t.split(`+`)[0]),t})}function UC(e,t){let n=t,r=e;return!r||!Array.isArray(r)||r.length===0?{validity:{valid:!0}}:r.filter(e=>e.size>n.maxFileSize).length>0?{validity:{rangeOverflow:!0,valid:!1},message:`Some files exceed the maximum size of ${pv(n.maxFileSize)}`}:{validity:{valid:!0}}}function WC(e,t){let n=t,r=e;if(!r||!Array.isArray(r)||r.length===0)return{validity:{valid:!0}};let i=HC(n.accept);return r.filter(e=>!i.some(t=>e.type.includes(t))).length>0?{validity:{typeMismatch:!0,valid:!1},message:`Some files are not of accepted types`}:{validity:{valid:!0}}}var GC={or:`or`,files:`files`,dragAndDrop:`drag & drop`,browseFiles:`browse files`,maxFileSize:`max file size`},KC=class extends Rb(x){#e;static{this.styles=j([VC])}static{this.metadata={tag:`nve-dropzone`,version:`0.0.0`,validators:[WC,UC],valueSchema:{type:`array`,items:{type:`object`,properties:{name:{type:`string`},size:{type:`number`},type:{type:`string`}}}}}}static{this.elementDefinitions={[P.metadata.tag]:P}}formResetCallback(){this.value=[],this.requestUpdate()}constructor(){super(),this.accept=`image/gif, image/jpeg, image/png, image/svg+xml`,this.maxFileSize=2*1024**2,this.#e=new M(this,GC),this.i18n=this.#e.i18n,this.value=[]}connectedCallback(){super.connectedCallback(),this.setAttribute(`nve-control`,``),globalThis.document.addEventListener(`dragover`,this.#t),globalThis.document.addEventListener(`drop`,this.#t)}disconnectedCallback(){super.disconnectedCallback(),globalThis.document.removeEventListener(`dragover`,this.#t),globalThis.document.removeEventListener(`drop`,this.#t)}#t(e){e.preventDefault(),e.stopPropagation()}#n(){this.fileInput.click()}#r(e){this.#t(e),this.#u(!0)}#i(e){this.#t(e),this.#u(!0)}#a(e){this.#t(e),this.#u(!1)}#o(e){this.#t(e),this.#u(!1);let t=Array.from(e.dataTransfer.files);this.#c(t)}#s(e){this.#t(e);let t=Array.from(this.fileInput.files);this.#c(t),this.fileInput.value=``}#c(e){this.value=[...this.value??[],...e],this.dispatchChangeEvent()}#l(e){let t=HC(e);if(t.length===1)return t[0].toUpperCase();let n=t.pop();return`${t.join(`, `).toUpperCase()} or ${n.toUpperCase()}`}#u(e){this.toggleAttribute(`highlighted`,e)}#d(e){e.target.assignedNodes().forEach(e=>iy(e))}render(){return y`<div internal-host><div class="container" @click="${this.#n}" @dragenter="${this.#r}" @dragover="${this.#i}" @dragleave="${this.#a}" @drop="${this.#o}"><svg class="dropzone-border" width="100%" height="100%" xmlns="http://www.w3.org/2000/svg"><rect width="100%" height="100%" fill="none" rx="4" ry="4" stroke="currentColor" stroke-width="2" stroke-dasharray="6,6" stroke-dashoffset="0" stroke-linecap="square"/></svg><slot name="icon"><nve-icon part="icon" class="icon" name="upload"></nve-icon></slot><slot @slotchange="${this.#d}"><div class="dropzone-text-center"><div class="dropzone-text-bold">${this.i18n.dragAndDrop} ${this.i18n.files} ${this.i18n.or} <span class="text-emphasized">${this.i18n.browseFiles}</span></div><div class="text-muted">${this.#l(this.accept)} — ${this.i18n.maxFileSize} ${pv(this.maxFileSize)}</div></div></slot><input id="dropzone-input" type="file" accept="${this.accept}" @change="${this.#s}" multiple="multiple" hidden></div></div>`}};N([S()],KC.prototype,`accept`,void 0),N([S({attribute:`max-file-size`,type:Number})],KC.prototype,`maxFileSize`,void 0),N([S({type:Object})],KC.prototype,`i18n`,void 0),N([LS(`#dropzone-input`)],KC.prototype,`fileInput`,void 0),KC=N([A()],KC),v(KC);var qC=`:host{--background: var(--nve-sys-interaction-background);--padding: 0 var(--nve-ref-size-300);--border-radius: var(--nve-ref-border-radius-lg);--border: 0;--font-weight: var(--nve-ref-font-weight-semibold);--font-size: var(--nve-ref-font-size-200);--text-decoration: none;--cursor: pointer;--gap: var(--nve-ref-space-xxs);--height: var(--nve-ref-size-800);width:100%}`,JC=`nve-file>input{color:var(--color)}nve-file>input::file-selector-button{background:var(--background);padding:var(--padding);height:var(--height);width:var(--width);border-radius:var(--border-radius);border:var(--border);text-decoration:var(--text-decoration);font-weight:var(--font-weight);font-size:var(--font-size);cursor:var(--cursor);gap:var(--gap);margin-inline-end:var(--nve-ref-space-sm);display:inline-flex;place-items:center;appearance:none;line-height:1.2em}nve-file>input::file-selector-button:hover{--color: var(--nve-sys-interaction-hover-color);--background: var(--nve-sys-interaction-background)}nve-file>input::file-selector-button:active{--color: var(--nve-sys-interaction-active-color);--background: var(--nve-sys-interaction-background)}`,YC=class extends R{static{this.styles=j([...R.styles,qC])}static{this.metadata={tag:`nve-file`,version:`0.0.0`}}connectedCallback(){super.connectedCallback(),T(this,JC)}};v(YC);var XC=`:host{display:inline}[internal-host]{color:var(--nve-sys-text-color, inherit)}slot{display:none}`,ZC=[`b`,`kb`,`mb`,`gb`,`tb`,`pb`],QC=[`decimal`,`binary`],$C=[`short`,`long`],ew={b:{short:`B`,singular:`byte`,plural:`bytes`},kb:{short:`kB`,singular:`kilobyte`,plural:`kilobytes`},mb:{short:`MB`,singular:`megabyte`,plural:`megabytes`},gb:{short:`GB`,singular:`gigabyte`,plural:`gigabytes`},tb:{short:`TB`,singular:`terabyte`,plural:`terabytes`},pb:{short:`PB`,singular:`petabyte`,plural:`petabytes`}},tw={b:{short:`B`,singular:`byte`,plural:`bytes`},kb:{short:`KiB`,singular:`kibibyte`,plural:`kibibytes`},mb:{short:`MiB`,singular:`mebibyte`,plural:`mebibytes`},gb:{short:`GiB`,singular:`gibibyte`,plural:`gibibytes`},tb:{short:`TiB`,singular:`tebibyte`,plural:`tebibytes`},pb:{short:`PiB`,singular:`pebibyte`,plural:`pebibytes`}};function nw(e){return QC.some(t=>t===e)}function rw(e){return ZC.some(t=>t===e)}function iw(e){return $C.some(t=>t===e)}var aw=class extends x{constructor(...e){super(...e),this.display=`decimal`,this.unitDisplay=`short`}static{this.styles=j([XC])}static{this.metadata={tag:`nve-format-bytes`,version:`0.0.0`}}get#e(){let e=Number.isNaN(this.value)?this.getAttribute(`value`)??this.value:this.value;return String(e??this.textContent?.trim()??``)}get#t(){return this.locale??(globalThis.document?.documentElement?.lang||void 0)}get#n(){let e=this.#e;if(!e)return null;let t=Number(e);return Number.isFinite(t)?t:null}#r(e,t){let n=t===`binary`?1024:1e3,r=Math.abs(e);for(let e=ZC.length-1;e>0;e--){let t=ZC[e];if(t&&r>=n**e)return t}return`b`}#i(e,t){let n=this.display===`binary`?tw[e]:ew[e];return this.unitDisplay===`short`?n.short:Math.abs(t)===1?n.singular:n.plural}#a(){return nw(this.display)&&iw(this.unitDisplay)&&(this.unit===void 0||rw(this.unit))}get#o(){let e=this.maximumFractionDigits??Math.max(this.minimumFractionDigits??0,2);return{minimumFractionDigits:this.minimumFractionDigits,maximumFractionDigits:e}}#s(e){return Number(new Intl.NumberFormat(`en-US-u-nu-latn`,{...this.#o,useGrouping:!1}).format(e))}#c(e){return new Intl.NumberFormat(this.#t,this.#o).format(e)}get#l(){let e=this.#e;if(!e)return``;let t=this.#n;if(t===null||!this.#a())return e;let n=this.unit??this.#r(t,this.display),r=ZC.indexOf(n),i=t/(this.display===`binary`?1024:1e3)**r;try{let e=this.#s(i);return`${this.#c(e)} ${this.#i(n,e)}`}catch{return e}}render(){return y`<data internal-host value="${this.#e}">${this.#l}<slot @slotchange="${this.#u}" hidden></slot></data>`}#u(){this.requestUpdate()}};N([S({type:Number})],aw.prototype,`value`,void 0),N([S({type:String})],aw.prototype,`display`,void 0),N([S({type:String})],aw.prototype,`unit`,void 0),N([S({type:String,attribute:`unit-display`})],aw.prototype,`unitDisplay`,void 0),N([S({type:String})],aw.prototype,`locale`,void 0),N([S({type:Number,attribute:`minimum-fraction-digits`})],aw.prototype,`minimumFractionDigits`,void 0),N([S({type:Number,attribute:`maximum-fraction-digits`})],aw.prototype,`maximumFractionDigits`,void 0),aw=N([O()],aw),v(aw);var ow=`:host{display:inline}[internal-host]{color:var(--nve-sys-text-color, inherit)}slot{display:none}`,H=class extends x{static{this.styles=j([ow])}static{this.metadata={tag:`nve-format-datetime`,version:`0.0.0`}}get#e(){return this.date??this.textContent?.trim()??``}get#t(){return this.locale??(globalThis.document?.documentElement?.lang||void 0)}get#n(){let e=this.#e;if(!e)return``;let t=this.#s(e);if(!t)return e;try{return new Intl.DateTimeFormat(this.#t,this.#r).format(t)}catch{return e}}get#r(){return this.#i?this.#a:this.#o}get#i(){return this.dateStyle!==void 0||this.timeStyle!==void 0}get#a(){let e={};return this.dateStyle&&(e.dateStyle=this.dateStyle),this.timeStyle&&(e.timeStyle=this.timeStyle),this.timeZone&&(e.timeZone=this.timeZone),e}get#o(){let e={};return this.weekday&&(e.weekday=this.weekday),this.year&&(e.year=this.year),this.month&&(e.month=this.month),this.day&&(e.day=this.day),this.hour&&(e.hour=this.hour),this.minute&&(e.minute=this.minute),this.second&&(e.second=this.second),this.timeZoneName&&(e.timeZoneName=this.timeZoneName),this.timeZone&&(e.timeZone=this.timeZone),e}#s(e){let t=new Date(e);return isNaN(t.getTime())?null:t}render(){return y`<time internal-host datetime="${this.#e}">${this.#n}<slot @slotchange="${this.#c}" hidden></slot></time>`}#c(){this.requestUpdate()}};N([S({type:String})],H.prototype,`date`,void 0),N([S({type:String})],H.prototype,`locale`,void 0),N([S({type:String})],H.prototype,`weekday`,void 0),N([S({type:String})],H.prototype,`year`,void 0),N([S({type:String})],H.prototype,`month`,void 0),N([S({type:String})],H.prototype,`day`,void 0),N([S({type:String})],H.prototype,`hour`,void 0),N([S({type:String})],H.prototype,`minute`,void 0),N([S({type:String})],H.prototype,`second`,void 0),N([S({type:String,attribute:`date-style`})],H.prototype,`dateStyle`,void 0),N([S({type:String,attribute:`time-style`})],H.prototype,`timeStyle`,void 0),N([S({type:String,attribute:`time-zone-name`})],H.prototype,`timeZoneName`,void 0),N([S({type:String,attribute:`time-zone`})],H.prototype,`timeZone`,void 0),H=N([O()],H),v(H);var sw=`:host{display:inline}[internal-host]{color:var(--nve-sys-text-color, inherit)}slot{display:none}`,cw=[[`currency`,`currency`],[`currencyDisplay`,`currencyDisplay`],[`currencySign`,`currencySign`],[`notation`,`notation`],[`compactDisplay`,`compactDisplay`],[`unit`,`unit`],[`unitDisplay`,`unitDisplay`],[`signDisplay`,`signDisplay`]],lw=[[`minimumFractionDigits`,`minimumFractionDigits`],[`maximumFractionDigits`,`maximumFractionDigits`],[`minimumIntegerDigits`,`minimumIntegerDigits`]],U=class extends x{constructor(...e){super(...e),this.formatStyle=`decimal`}static{this.styles=j([sw])}static{this.metadata={tag:`nve-format-number`,version:`0.0.0`}}get#e(){return this.number??this.textContent?.trim()??``}get#t(){return this.locale??(globalThis.document?.documentElement?.lang||void 0)}get#n(){let e=this.#e;if(!e)return null;let t=Number(e);return Number.isFinite(t)?t:null}get#r(){let e={style:this.formatStyle};for(let[t,n]of cw){let r=this[t];r!==void 0&&(e[n]=r)}for(let[t,n]of lw){let r=this[t];r!==void 0&&(e[n]=r)}return this.useGrouping!==void 0&&(e.useGrouping=this.useGrouping===`false`?!1:this.useGrouping===`true`||this.useGrouping),e}get#i(){let e=this.#e;if(!e)return``;let t=this.#n;if(t===null)return e;try{return new Intl.NumberFormat(this.#t,this.#r).format(t)}catch{return e}}render(){return y`<data internal-host value="${this.#e}">${this.#i}<slot @slotchange="${this.#a}" hidden></slot></data>`}#a(){this.requestUpdate()}};N([S({type:String})],U.prototype,`number`,void 0),N([S({type:String})],U.prototype,`locale`,void 0),N([S({type:String,attribute:`format-style`})],U.prototype,`formatStyle`,void 0),N([S({type:String})],U.prototype,`currency`,void 0),N([S({type:String,attribute:`currency-sign`})],U.prototype,`currencySign`,void 0),N([S({type:String,attribute:`currency-display`})],U.prototype,`currencyDisplay`,void 0),N([S({type:String})],U.prototype,`unit`,void 0),N([S({type:String,attribute:`unit-display`})],U.prototype,`unitDisplay`,void 0),N([S({type:String})],U.prototype,`notation`,void 0),N([S({type:String,attribute:`compact-display`})],U.prototype,`compactDisplay`,void 0),N([S({type:String,attribute:`sign-display`})],U.prototype,`signDisplay`,void 0),N([S({type:String,attribute:`use-grouping`})],U.prototype,`useGrouping`,void 0),N([S({type:Number,attribute:`minimum-fraction-digits`})],U.prototype,`minimumFractionDigits`,void 0),N([S({type:Number,attribute:`maximum-fraction-digits`})],U.prototype,`maximumFractionDigits`,void 0),N([S({type:Number,attribute:`minimum-integer-digits`})],U.prototype,`minimumIntegerDigits`,void 0),U=N([O()],U),v(U);var uw=`:host{display:inline}[internal-host]{color:var(--nve-sys-text-color, inherit)}slot{display:none}`,dw={second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:2592e6,year:31536e6},fw=[{unit:`second`,max:60},{unit:`minute`,max:60},{unit:`hour`,max:24},{unit:`day`,max:7},{unit:`week`,max:4},{unit:`month`,max:12},{unit:`year`,max:1/0}],pw=class extends x{constructor(...e){super(...e),this.numeric=`always`,this.formatStyle=`long`,this.unit=`auto`,this.sync=!1}static{this.styles=j([uw])}static{this.metadata={tag:`nve-format-relative-time`,version:`0.0.0`}}#e;get#t(){return this.date??this.textContent?.trim()??``}get#n(){return this.locale??(globalThis.document?.documentElement?.lang||void 0)}#r(e){let t=Math.abs(e),n=e<0?-1:1;for(let{unit:e,max:r}of fw){let i=Math.round(t/dw[e]);if(i<r)return{value:n*i,unit:e}}return{value:n*Math.round(t/dw.year),unit:`year`}}#i(e,t){return Math.round(e/dw[t])}#a(e){return this.unit===`auto`?this.#r(e):{unit:this.unit,value:this.#i(e,this.unit)}}get#o(){let e=this.#t;if(!e)return``;let t=new Date(e);if(isNaN(t.getTime()))return e;let{value:n,unit:r}=this.#a(t.getTime()-Date.now());try{return new Intl.RelativeTimeFormat(this.#n,{numeric:this.numeric,style:this.formatStyle}).format(n,r)}catch{return e}}#s(){let e=this.#t;if(!e)return 6e4;let t=Math.abs(new Date(e).getTime()-Date.now());return t<6e4?1e4:t<36e5?3e4:t<864e5?3e5:36e5}#c(){this.#l(),this.sync&&(this.#e=setTimeout(()=>{this.requestUpdate(),this.#c()},this.#s()))}#l(){this.#e!==void 0&&(clearTimeout(this.#e),this.#e=void 0)}connectedCallback(){super.connectedCallback(),this.sync&&this.#c()}disconnectedCallback(){this.#l(),super.disconnectedCallback()}updated(e){e.has(`sync`)&&(this.sync?this.#c():this.#l())}render(){return y`<time internal-host datetime="${this.#t}">${this.#o}<slot @slotchange="${this.#u}" hidden></slot></time>`}#u(){this.requestUpdate()}};N([S({type:String})],pw.prototype,`date`,void 0),N([S({type:String})],pw.prototype,`locale`,void 0),N([S({type:String})],pw.prototype,`numeric`,void 0),N([S({type:String,attribute:`format-style`})],pw.prototype,`formatStyle`,void 0),N([S({type:String})],pw.prototype,`unit`,void 0),N([S({type:Boolean})],pw.prototype,`sync`,void 0),pw=N([O()],pw),v(pw);var mw=`…`;function hw(e){return gw(Array.from(e,e=>e.textContent??``).join(` `))}function gw(e){return e.replace(/\s+/gu,` `).trim()}function _w(e,{position:t,strategy:n,bias:r,preserve:i,availableWidth:a,measureText:o}){if(!e||!Number.isFinite(a))return e;if(a<=0)return``;if(o(e)<=a)return e;if(o(mw)>a)return mw;switch(t){case`start`:return yw(ww(e,`grapheme`),a,o);case`center`:return vw(e,{strategy:n,bias:r,preserve:i,availableWidth:a,measureText:o});default:return bw(ww(e,`grapheme`),a,o)}}function vw(e,{strategy:t,bias:n,preserve:r,availableWidth:i,measureText:a}){let o=Aw(e,t,n),s=Math.min(o.length,Cw(r));if(n===`start`){let e=o.slice(0,s),t=o.slice(s),n=n=>Sw(e.join(``),t.slice(-n||t.length).join(``));return a(n(0))>i?bw(e,i,a):n(xw(t.length,n,{availableWidth:i,measureText:a}))}let c=o.slice(0,o.length-s),l=o.slice(o.length-s),u=e=>Sw(c.slice(0,e).join(``),l.join(``));return a(u(0))>i?yw(l,i,a):u(xw(c.length,u,{availableWidth:i,measureText:a}))}function yw(e,t,n){let r=t=>`${mw}${e.slice(-t||e.length).join(``)}`;return r(xw(e.length-1,r,{availableWidth:t,measureText:n}))}function bw(e,t,n){let r=t=>`${e.slice(0,t).join(``)}${mw}`;return r(xw(e.length-1,r,{availableWidth:t,measureText:n}))}function xw(e,t,{availableWidth:n,measureText:r}){let i=0,a=e,o=0;for(;i<=a;){let e=Math.floor((i+a)/2);r(t(e))<=n?(o=e,i=e+1):a=e-1}return o}function Sw(e,t){return`${e.trimEnd()}${mw}${t.trimStart()}`}function Cw(e){return Number.isFinite(e)?Math.max(1,Math.floor(e)):1}function ww(e,t){let n=new Intl.Segmenter(void 0,{granularity:t}).segment(e);return Array.from(n,e=>e.segment)}function Tw(e,t){return t===`start`?Ew(e):Dw(e)}function Ew(e){let t=[];for(let n of e)n.trim()?t.push(n):Ow(t,n);return t}function Dw(e){let t=[],n=``;for(let r of e)r.trim()?(t.push(n+r),n=``):n+=r;return Ow(t,n),t}function Ow(e,t){let n=e.at(-1);n!==void 0&&(e[e.length-1]=n+t)}function kw(e,t){let n=Array.from(e.matchAll(/[^/\\]+/gu));return n.length===0?[e]:t===`start`?n.map((t,r)=>{let i=r===0?0:t.index,a=n[r+1]?.index??e.length;return e.slice(i,a)}):n.map((t,r)=>{let i=n[r-1],a=i?i.index+i[0].length:0,o=r===n.length-1?e.length:t.index+t[0].length;return e.slice(a,o)})}function Aw(e,t,n){switch(t){case`word`:{let t=Tw(ww(e,`word`),n);return t.length?t:[e]}case`path`:{let t=kw(e,n);return t.length?t:[e]}default:return ww(e,`grapheme`)}}var jw=`:host{position:relative;display:inline-block;max-inline-size:100%;min-inline-size:0}span{text-wrap:nowrap}[sizing-host]{display:block;opacity:0}[internal-host]{position:absolute;inset:0;overflow:hidden}slot{display:initial;position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}`,Mw=class extends x{constructor(...e){super(...e),this.position=`start`,this.strategy=`character`,this.bias=`end`,this.preserve=6,this.#r=1/0,this.#u=()=>{this.requestUpdate()}}static{this.styles=j([jw])}static{this.metadata={tag:`nve-format-truncate`,version:`0.0.0`}}#e;#t;#n;#r;connectedCallback(){super.connectedCallback(),D(this),this.#r=1/0,this.#l(),this.requestUpdate()}disconnectedCallback(){super.disconnectedCallback(),this.#t?.disconnect(),this.#n!==void 0&&this.ownerDocument.defaultView?.cancelAnimationFrame(this.#n),this.#n=void 0}connectedMoveCallback(){this.#r=1/0,this.#l(),this.requestUpdate()}render(){let e=this.#i,t=this.#a(e);return t===e?this.removeAttribute(`title`):this.title!==e&&(this.title=e),y`<span internal-host aria-hidden="true">${t}</span><span sizing-host aria-hidden="true">${e}</span><slot @slotchange="${this.#u}"></slot>`}get#i(){let e=this.shadowRoot?.querySelector(`slot:not([name])`);if(e)return hw(e.assignedNodes({flatten:!0}));let t=Array.from(this.childNodes??[]).filter(Pw);return t.length?hw(t):gw(this.textContent??``)}#a(e){let t=this.#o();return _w(e,{position:this.position,strategy:this.strategy,bias:this.bias,preserve:this.preserve,availableWidth:this.#r,measureText:t})}#o(){let e=this.ownerDocument?.defaultView,t=this.#c;if(!e||!t)return()=>0;let n=e.getComputedStyle(this);t.font=n.font;let r=Nw(n.letterSpacing),i=Nw(n.wordSpacing),a=new Intl.Segmenter(void 0,{granularity:`grapheme`});return e=>this.#s(e,{context:t,letterSpacing:r,wordSpacing:i,graphemeSegmenter:a})}#s(e,{context:t,letterSpacing:n,wordSpacing:r,graphemeSegmenter:i}){let a=i.segment(e),o=Array.from(e.matchAll(/\s/gu)).length;return t.measureText(e).width+Math.max(0,Array.from(a).length-1)*n+o*r}get#c(){return this.#e===void 0&&(this.#e=this.ownerDocument?.createElement(`canvas`).getContext(`2d`)??null),this.#e}#l(){typeof ResizeObserver<`u`&&(this.#t??=new ResizeObserver(e=>{let t=e[0];if(this.isConnected&&t){this.#r=t.contentRect.width;let e=this.ownerDocument.defaultView;e&&this.#n===void 0&&(this.#n=e.requestAnimationFrame(()=>{this.#n=void 0,this.isConnected&&this.requestUpdate()}))}}),this.#t.disconnect(),this.#t.observe(this))}#u};N([S({type:String,reflect:!0})],Mw.prototype,`position`,void 0),N([S({type:String,reflect:!0})],Mw.prototype,`strategy`,void 0),N([S({type:String,reflect:!0})],Mw.prototype,`bias`,void 0),N([S({type:Number,reflect:!0})],Mw.prototype,`preserve`,void 0),Mw=N([O()],Mw);function Nw(e){let t=Number.parseFloat(e);return Number.isFinite(t)?t:0}function Pw(e){return!Fw(e)||!e.getAttribute(`slot`)}function Fw(e){return e.nodeType===1}v(Mw);var Iw=`important`,Lw=` !`+Iw,Rw=rv(class extends iv{constructor(e){if(super(e),e.type!==nv.ATTRIBUTE||e.name!==`style`||e.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(e){return Object.keys(e).reduce((t,n)=>{let r=e[n];return r==null?t:t+`${n=n.includes(`-`)?n:n.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,`-$&`).toLowerCase()}:${r};`},``)}update(e,[t]){let{style:n}=e.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(let e of this.ft)t[e]??(this.ft.delete(e),e.includes(`-`)?n.removeProperty(e):n[e]=null);for(let e in t){let r=t[e];if(r!=null){this.ft.add(e);let t=typeof r==`string`&&r.endsWith(Lw);e.includes(`-`)||t?n.setProperty(e,t?r.slice(0,-11):r,t?Iw:``):n[e]=r}}return L_}}),zw=`:host{--color: var(--nve-sys-text-emphasis-color);--background: var(--nve-sys-interaction-background);--needle-background: var(--nve-sys-interaction-color);--accent-color: var(--nve-sys-interaction-color);--thumb-background: var(--accent-color);--track-background: var(--accent-color);--track-width: 8px;--font-size: var(--nve-ref-font-size-400);--font-weight: var(--nve-ref-font-weight-regular);--gap: var(--nve-ref-space-xs);--width: 128px;--height: calc(var(--width) * .8627);--_animation-duration: var(--nve-ref-animation-duration-250);--_needle-size: calc(var(--track-width) / 3);display:inline-block;position:relative;width:var(--width);height:var(--height);font-weight:var(--font-weight);container-type:inline-size;contain:layout;text-box:trim-both cap alphabetic}.fill-dot-end{r:calc(var(--track-width) / 3.2)}:host([size="sm"]){--font-size: var(--nve-ref-font-size-300);--width: 96px;--_needle-size: calc(var(--track-width) / 2.25);.fill-dot-end{r:calc(var(--track-width) / 2.4)}}:host([size="lg"]){--font-size: var(--nve-ref-font-size-500);--width: 160px;--_needle-size: calc(var(--track-width) / 3.75);.fill-dot-end{r:calc(var(--track-width) / 4)}}[internal-host]{display:grid;place-items:center;position:relative;height:100%}:host([shape="half"]){--height: calc(var(--width) * .5313)}:host([shape="half"]) [internal-host]{place-items:end center}svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}path{fill:none;stroke:#fff;stroke-width:var(--track-width);vector-effect:non-scaling-stroke}path.background{stroke-linecap:round}path.gauge{stroke-linecap:round}.background-surface,.fill-surface{inline-size:100%;block-size:100%}.background-surface{background:var(--background)}.fill-surface{background:var(--track-background)}.fill-dot-end{fill:var(--thumb-background);transform:rotate(var(--_dot-angle));transform-box:view-box;transform-origin:var(--_dot-origin)}:host([thumb="dot"]) .fill-dot-end{animation:gauge-dot-in var(--_animation-duration) var(--nve-ref-animation-easing-100);will-change:transform}.fill-layer[hidden],.fill-dot-end[hidden],.needle[hidden]{display:none}.needle{animation:gauge-needle-in var(--_animation-duration) var(--nve-ref-animation-easing-100);transform:rotate(var(--_needle-angle));transform-box:view-box;transform-origin:var(--_needle-origin);will-change:transform}.needle-line{stroke:var(--needle-background);stroke-linecap:round;stroke-width:var(--_needle-size)}.needle-hub{fill:var(--needle-background);r:var(--_needle-size)}slot{display:flex;flex-direction:column;place-items:center;justify-content:center;height:100%;gap:var(--gap);color:var(--color);font-size:var(--font-size);font-weight:var(--nve-ref-font-weight-medium);padding-block-start:calc(var(--track-width) * 2);text-box:trim-both cap alphabetic;line-height:1;width:50%;font-variant-numeric:tabular-nums}:host([shape="half"]) slot{transform:translateY(1cqh)}:host([thumb="needle"]) slot{transform:translateY(1cqh);justify-content:end}:host([shape="half"][thumb="needle"]) slot{transform:translateY(2cqh)}::slotted(*){color:var(--color);font-size:var(--font-size)}:host([status="success"]){--accent-color: var(--nve-sys-support-success-emphasis-color);--background: var(--nve-sys-support-success-muted-color)}:host([status="warning"]){--accent-color: var(--nve-sys-support-warning-emphasis-color);--background: var(--nve-sys-support-warning-muted-color)}:host([status="danger"]){--accent-color: var(--nve-sys-support-danger-emphasis-color);--background: var(--nve-sys-support-danger-muted-color)}:host([status="accent"]){--accent-color: var(--nve-sys-accent-secondary-background)}@media(prefers-reduced-motion:reduce){:host{--_animation-duration: 0s}}@keyframes gauge-dot-in{0%{transform:rotate(var(--_dot-start-angle))}to{transform:rotate(var(--_dot-angle))}}@keyframes gauge-needle-in{0%{transform:rotate(var(--_needle-start-angle))}to{transform:rotate(var(--_needle-angle))}}`,Bw={default:{center:64,path:`M 27.23 100.77 A 52 52 0 1 1 100.77 100.77`,radius:52,startAngle:135,sweepAngle:270,surfaceHeight:128,viewBox:`8.53 8.53 110.93 95.7`},half:{center:64,path:`M 12 64 A 52 52 0 0 1 116 64`,radius:52,startAngle:180,sweepAngle:180,surfaceHeight:64,viewBox:`8.53 8.53 110.93 58.93`}},Vw=(e,t,n)=>({[`--_${e}-angle`]:`${t}deg`,[`--_${e}-origin`]:`${n.center}px ${n.center}px`,[`--_${e}-start-angle`]:`${n.startAngle}deg`}),Hw={danger:`danger`,information:`information`,success:`success`,warning:`warning`},Uw=class extends x{constructor(...e){super(...e),this.value=0,this.max=100,this.status=`neutral`,this.thumb=`fill`,this.#e=new M(this,Hw),this.i18n=this.#e.i18n,this.#t=0,this.#r=0}static{this.styles=j([zw])}static{this.metadata={tag:`nve-gauge`,version:`0.0.0`}}#e;#t;#n;#r;#i(){let e=this.max,t=e!==void 0&&Number.isFinite(e)&&e>0?e:100;return{value:Number.isFinite(this.value)?Math.min(Math.max(this.value,0),t):0,max:t}}render(){let e=this.#f(),t=this.#t,n=this.#p(),r=this.#l(e,t),i=this.#u(e,t),a=n===`fill`,o=t>0&&(n===`fill`||n===`dot`);return y`<div internal-host><svg viewBox="${e.viewBox}" role="presentation" aria-hidden="true"><defs><mask id="background-mask" maskUnits="userSpaceOnUse" x="0" y="0" width="128" height="${e.surfaceHeight}"><path d="${e.path}" class="background"></path></mask><mask id="fill-mask" maskUnits="userSpaceOnUse" x="0" y="0" width="128" height="${e.surfaceHeight}"><path d="${i}" class="gauge" ?empty="${t<=0}"></path></mask></defs><foreignObject width="128" height="${e.surfaceHeight}" mask="url(#background-mask)"><div xmlns="http://www.w3.org/1999/xhtml" class="background-surface"></div></foreignObject><foreignObject class="fill-layer" width="128" height="${e.surfaceHeight}" mask="url(#fill-mask)" ?hidden="${!a||t<=0}"><div xmlns="http://www.w3.org/1999/xhtml" class="fill-surface"></div></foreignObject><circle class="fill-dot-end" cx="${e.center+e.radius}" cy="${e.center}" ?hidden="${!o}" style="${Rw(Vw(`dot`,r,e))}"></circle><g class="needle" ?hidden="${n!==`needle`}" style="${Rw(Vw(`needle`,r,e))}"><line class="needle-line" x1="${e.center}" y1="${e.center}" x2="${e.center+40}" y2="${e.center}"></line><circle class="needle-hub" cx="${e.center}" cy="${e.center}"></circle></g></svg><slot></slot></div>`}connectedCallback(){super.connectedCallback(),D(this),this._internals.role=`progressbar`}disconnectedCallback(){super.disconnectedCallback(),this.#n&&(this.#s(),this.#t=this.#a(),this.requestUpdate())}willUpdate(e){super.willUpdate(e),(e.has(`value`)||e.has(`max`))&&this.#o()}updated(e){super.updated(e);let{value:t,max:n}=this.#i();this._internals.ariaValueNow=`${t}`,this._internals.ariaValueMax=`${n}`;let{status:r}=this,i=r!==void 0&&r!==`neutral`&&r!==`accent`?this.i18n[r]:void 0;this._internals.ariaLabel=i??this.i18n.information??null}#a(){let{value:e,max:t}=this.#i();return e/t*100}#o(){let e=this.#a(),t=this.hasUpdated?this.#c():void 0;if(this.#s(),!t||e===this.#t){this.#t=e;return}let n=this.#t,r=this.animate(null,t),i=t=>{this.#t=n+(e-n)*t,this.requestUpdate()},a=()=>{i(r.effect?.getComputedTiming().progress??0),r.playState===`running`&&(this.#r=requestAnimationFrame(a))};r.finished.then(()=>{this.#n===r&&(this.#s(),i(1))},()=>void 0),this.#n=r,this.#r=requestAnimationFrame(a)}#s(){this.#n&&=(cancelAnimationFrame(this.#r),this.#n.cancel(),void 0)}#c(){let e=getComputedStyle(this),t=e.getPropertyValue(`--_animation-duration`).trim(),n=parseFloat(t)*(t.endsWith(`ms`)?1:1e3),r=e.getPropertyValue(`--nve-ref-animation-easing-100`).trim();return n>0?{duration:n,easing:r||`linear`}:void 0}#l(e,t){return e.startAngle+e.sweepAngle*(t/100)}#u(e,t){let n=this.#d(e,e.startAngle),r=e.sweepAngle*(t/100),i=this.#d(e,e.startAngle+r),a=+(r>180);return`M ${n.x} ${n.y} A ${e.radius} ${e.radius} 0 ${a} 1 ${i.x} ${i.y}`}#d(e,t){let n=t*Math.PI/180;return{x:e.center+e.radius*Math.cos(n),y:e.center+e.radius*Math.sin(n)}}#f(){return this.shape===`half`?Bw.half:Bw.default}#p(){return this.thumb===`dot`||this.thumb===`needle`?this.thumb:`fill`}};N([S({type:Number})],Uw.prototype,`value`,void 0),N([S({type:Number})],Uw.prototype,`max`,void 0),N([S({type:String,reflect:!0})],Uw.prototype,`status`,void 0),N([S({type:String,reflect:!0})],Uw.prototype,`shape`,void 0),N([S({type:String,reflect:!0})],Uw.prototype,`thumb`,void 0),N([S({type:String,reflect:!0})],Uw.prototype,`size`,void 0),N([S({type:Object})],Uw.prototype,`i18n`,void 0),v(Uw);var Ww=`:host{--background: color-mix(in oklab, var(--nve-sys-accent-secondary-background) 16%, transparent);--border: var(--nve-ref-border-width-md) dashed var(--nve-sys-accent-secondary-background);--border-radius: var(--nve-ref-border-radius-xs);--padding: var(--nve-ref-space-xs);--stack-offset-x: 4px;--stack-offset-y: 4px;--color: var(--nve-sys-text-emphasis-color);border-radius:var(--border-radius);display:block;pointer-events:none}[internal-host]{--_offset-x: max(0px, var(--stack-offset-x));--_offset-y: max(0px, var(--stack-offset-y));box-sizing:border-box;display:grid;grid-template:minmax(0,1fr) / minmax(0,1fr);width:100%;height:100%;padding:0 calc(var(--_back-layers) * var(--_offset-x)) calc(var(--_back-layers) * var(--_offset-y)) 0;border-radius:inherit}.surface{grid-area:1 / 1;min-width:0;min-height:0;box-sizing:border-box;padding:var(--padding);overflow:hidden;text-overflow:ellipsis;background:var(--background);border:var(--border);border-radius:inherit;color:var(--color)}.front{z-index:1}.rear{transform:translate(calc(var(--_layer) * var(--_offset-x)),calc(var(--_layer) * var(--_offset-y)))}`,Gw=class extends x{constructor(...e){super(...e),this.layers=1}static{this.styles=j([Ww])}static{this.metadata={tag:`nve-ghost`,version:`0.0.0`}}render(){let e=Number.isFinite(this.layers)?Math.min(3,Math.max(1,Math.trunc(this.layers))):1;return y`<div internal-host inert aria-hidden="true" style="${`--_back-layers:${e-1}`}">${Array.from({length:e-1},(t,n)=>y`<div class="surface rear" style="${`--_layer:${e-n-1}`}"></div>`)}<div class="surface front"><slot></slot></div></div>`}};N([S({type:Number})],Gw.prototype,`layers`,void 0),v(Gw);var Kw=`:host{--color: var(--nve-sys-layer-canvas-color);--padding: var(--nve-ref-size-200) var(--nve-ref-size-300);position:absolute;inset:var(--nve-ref-size-700) 0 0}[internal-host]{background:color-mix(in oklab,var(--background, var(--nve-sys-layer-canvas-background)) 100%,var(--nve-sys-interaction-state-mix) var(--interaction-state-ratio, .01%));color:var(--color);padding:var(--padding);font-size:var(--font-size);display:flex;place-items:center;place-content:center;height:100%}`,qw=class extends x{static{this.styles=j([Kw])}static{this.metadata={tag:`nve-grid-placeholder`,version:`0.0.0`}}render(){return y`<div internal-host focusable="active" role="gridcell"><slot></slot></div>`}connectedCallback(){super.connectedCallback(),D(this),this._internals.role=`row`}},Jw=`:host{--background: var(--nve-sys-layer-container-accent-background);--border-bottom: var(--nve-ref-border-width-sm) solid var(--nve-ref-border-color-muted);--padding: 0 1px 0 0;position:sticky;z-index:100;top:0;width:100%}[internal-host]{grid-auto-columns:var(--grid-auto-columns);grid-auto-flow:var(--grid-auto-flow);grid-template-columns:var(--grid-template-column);border-bottom:var(--border-bottom);background:var(--background);padding:var(--padding);display:grid;min-width:fit-content}:host([hidden]){display:block!important;opacity:0!important;height:0!important;z-index:0!important}`,Yw=`:host{--nve-sys-interaction-background: var(--nve-sys-interaction-background-200);--nve-sys-interaction-field-background: var(--nve-sys-interaction-background-200);--color: var(--nve-sys-text-muted-color);--padding: var(--nve-ref-size-200) var(--nve-ref-size-500);--font-weight: var(--nve-ref-font-weight-semibold);--font-size: var(--nve-ref-font-size-100);--height: var(--nve-ref-size-1000);--min-width: var(--nve-ref-size-1000);--justify-content: start;--border-left: 0;--border-right: 0;transition:box-shadow .3s ease-in-out}[internal-host]{background:var(--background);color:var(--color);padding:var(--padding);height:var(--height);font-size:var(--font-size);font-weight:var(--font-weight);min-width:var(--min-width);border-left:var(--border-left);border-right:var(--border-right);justify-content:var(--justify-content);display:flex;align-items:center;outline-offset:-5px;white-space:nowrap}:host([width="max-content"]){--padding: var(--nve-ref-size-300)}::slotted(nve-sort-button),::slotted(nve-icon-button){margin-inline-start:auto}@media(hover:hover){::slotted(nve-sort-button){opacity:0}::slotted(nve-sort-button[sort="ascending"]),::slotted(nve-sort-button[sort="descending"]),:host(:focus-within) ::slotted(nve-sort-button),:host(:hover) ::slotted(nve-sort-button){opacity:1}}`,Xw=class e extends x{static{this.styles=j([Yw])}static{this.metadata={tag:`nve-grid-column`,version:`0.0.0`}}get#e(){return this.parentElement.parentElement}render(){return y`<div internal-host focusable="active"><slot></slot><slot name="actions"></slot></div>`}connectedCallback(){super.connectedCallback(),D(this),this._internals.role=`columnheader`,this.addEventListener(`sort`,this.#t)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(`sort`,this.#t)}#t=e=>{this.ariaSort=e.detail.next};willUpdate(e){e.has(`width`)&&this.width&&Number.isFinite(Number(this.width))&&(this.width=`${this.width}px`)}async updated(e){super.updated(e),e.get(`columnAlign`)!==this.columnAlign&&this.#o(),e.get(`position`)!==this.position&&this.#r(),e.get(`ariaColIndex`)!==this.ariaColIndex&&(this.#r(),this.#o()),e.get(`width`)!==this.width&&this.dispatchEvent(new CustomEvent(`nve-grid-column-resize`,{bubbles:!0,composed:!0}))}#n;#r(){if(this.position!==`fixed`){this.removeAttribute(`left`),this.removeAttribute(`right`),this.#n?.replaceSync(``);return}let{side:e,positionStyle:t,borderStyle:n}=this.#i(),r=`${t}\n${n}`;this.#n?this.#n.replaceSync(r):this.#n=T(this.#e,r),this.setAttribute(e,``)}#i(){let t=Array.from(this.parentElement.querySelectorAll(e.metadata.tag)),n=t.slice(t.indexOf(this)+1,t.length),r=this.getBoundingClientRect(),i=this.#e.getBoundingClientRect(),a=this.offsetLeft<i.width/2?`left`:`right`,o=r.left-i.left,s=n.reduce((e,t)=>e+t.getBoundingClientRect().width,0),c=`[id='${this.#e.id}'] nve-grid-column:nth-of-type(${this.ariaColIndex}),
|
|
12
|
+
`,db=new class{get i18n(){return{..._.state.i18nRegistry}}registerDefaults(e){let t=_.state.i18nRegistry,n=Object.entries(e).reduce((e,[n,r])=>(r!==void 0&&t[n]===void 0&&(e[n]=r),e),{});Object.keys(n).length>0&&_.merge({i18nRegistry:n})}update(e){_.dispatch(`NVE_ELEMENTS_I18N_UPDATE`,{i18nRegistry:e})}};function fb(e){return t=>t.addInitializer(t=>new M(t,e))}var M=class{get i18n(){return{...this.defaults,...db.i18n,...this.host.i18n,__set:!1}}#e={};constructor(e,t={}){this.host=e,this.defaults=t,db.registerDefaults(t),this.host.addController(this)}hostConnected(){globalThis.document.addEventListener(`NVE_ELEMENTS_I18N_UPDATE`,this.#t)}hostDisconnected(){globalThis.document.removeEventListener(`NVE_ELEMENTS_I18N_UPDATE`,this.#t)}hostUpdate(){this.host.i18n.__set===void 0&&(this.#e=this.host.i18n,this.#t())}#t=()=>{this.host.i18n={...this.defaults,...db.i18n,...this.#e,__set:!0}}},pb=new class{get#e(){return globalThis.document.querySelector(`[type=speculationrules]`)}get#t(){return globalThis.document.documentElement.getAttribute(`nve-transition`)}#n;enable(){globalThis.document&&(this.#n?.disconnect(),this.#r(),this.#n=new MutationObserver(()=>this.#r()),this.#n.observe(globalThis.document.documentElement,{attributeFilter:[`nve-transition`]}))}disable(){this.#a(),this.#n?.disconnect()}#r(){globalThis.document&&this.#t===`auto`?this.#e||this.#i():this.#a()}#i(){let e=globalThis.document.createElement(`script`);e.id=`nve-speculationrules`,e.type=`speculationrules`,e.textContent=JSON.stringify({prerender:[{where:{href_matches:`/*`},eagerness:`moderate`}]}),globalThis.document.head.appendChild(e)}#a(){globalThis.document?.querySelector(`#nve-speculationrules`)?.remove()}},mb={"":`information-circle`,undefined:`information-circle`,default:`information-circle`,accent:`information-circle`,warning:`exclamation-triangle`,success:`checkmark-circle`,danger:`exclamation-circle`,scheduled:`clock`,failed:`x-circle`,finished:`checkmark-circle`,unknown:`question-mark-circle`,queued:`bar-pill-stack`,running:`running`,restarting:`refresh`,stopping:`stop-sign`,pending:`circle-dash`,starting:`circle-dot`,ignored:`circle-angled-line`};function hb(e){let[t,n,r]=e.split(`.`).map(e=>{let t=parseInt(e,10);return Number.isNaN(t)?-1:t});return{major:t??-1,minor:n??-1,patch:r??-1}}function gb(e){return new Intl.NumberFormat().format(e)}function _b(e,t){let n=e.signal?{signal:e.signal}:void 0;globalThis.document.addEventListener(`pointerup`,n=>{!e.element.hidden&&Zv(n,e.element)&&Zv(n,e.focusElement)&&t()},n),e.element.addEventListener(`keydown`,n=>{!e.element.hidden&&n.code===`Escape`&&(n.preventDefault(),Bv(e.focusElement),t())},n)}function vb(e,t){return e!==void 0&&Number.isFinite(e)&&e>=0?e:t}var yb=`:host{--color: var(--nve-sys-text-muted-color);--width: var(--nve-ref-size-400);--height: var(--nve-ref-size-400);display:inline-flex;contain:layout}[internal-host]{--_width: calc(var(--width) * var(--nve-ref-scale-size, 1));--_height: calc(var(--height) * var(--nve-ref-scale-size, 1));color:var(--color);width:var(--width);height:var(--height);display:flex;justify-content:center;align-items:center}svg{width:var(--_width);height:var(--_height)}:host([outline]){outline:1px dashed var(--color)}:host([size="xs"]){--width: var(--nve-ref-size-200);--height: var(--nve-ref-size-200)}:host([size="sm"]){--width: var(--nve-ref-size-300);--height: var(--nve-ref-size-300)}:host([size="lg"]){--width: var(--nve-ref-size-500);--height: var(--nve-ref-size-500)}:host([size="xl"]){--width: var(--nve-ref-size-600);--height: var(--nve-ref-size-600)}:host([name="arrow"]),:host([name="arrow-angle"]),:host([name="cancel"]),:host([name="caret"]),:host([name="chevron"]),:host([name="double-chevron"]){--nve-ref-scale-size: .8}:host([direction="up"]){transform:rotate(0)}:host([direction="down"]){transform:rotate(180deg)}:host([direction="left"]){transform:rotate(270deg)}:host([direction="right"]){transform:rotate(90deg)}:host([status="success"]){--color: var(--nve-sys-support-success-color)}:host([status="warning"]){--color: var(--nve-sys-support-warning-color)}:host([status="danger"]){--color: var(--nve-sys-support-danger-color)}:host([status="accent"]){--color: var(--nve-sys-support-accent-color)}`;function N(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}c();var P=class e extends x{static{this.styles=j([yb])}static{this.metadata={tag:`nve-icon`,version:`0.0.0`}}static{this._registry=Dg}static get _icons(){return kg().icons}static set _icons(e){kg().icons=e}get#e(){if(!this.name||this.name.endsWith(`.svg`)||this.appearance!==`solid`||this.name.endsWith(`-solid`))return this.name;let e=`${this.name}-solid`;return kg().icons[e]||s.includes(this.name)?e:this.name}get#t(){return this.#e,this.svg}#n=[];#r=0;#i=()=>{this.isConnected&&this.#s()};render(){return y`<div internal-host aria-hidden="true"><slot>${sv(this.#t)}</slot></div>`}connectedCallback(){super.connectedCallback(),D(this),this._internals.role=`img`,this.#a(),this.hasUpdated&&this.#s()}disconnectedCallback(){super.disconnectedCallback(),this.#o(),this.#r++}static async add(t){if(globalThis.customElements?.whenDefined){await globalThis.customElements.whenDefined(e.metadata.tag);for(let[e,n]of Object.entries(t))kg().add(e,n)}}static alias(t){globalThis.customElements?.whenDefined&&globalThis.customElements.whenDefined(e.metadata.tag).then(()=>{for(let[e,n]of Object.entries(t))kg().alias(e,n)})}async updated(e){super.updated(e),(e.has(`name`)||e.has(`appearance`))&&(this.#o(),this.#a()),await this.#s()}#a(){if(this.isConnected&&this.name&&!this.#n.length){this.#n=[this.name,`${this.name}-solid`].map(e=>`nve-icon-${e}`);for(let e of this.#n)globalThis.document.addEventListener(e,this.#i)}}#o(){for(let e of this.#n)globalThis.document.removeEventListener(e,this.#i);this.#n=[]}async#s(){let e=++this.#r,t=this.#e;try{let n=t?await(t.endsWith(`.svg`)?fetch(t).then(e=>e.text()):kg().resolve(t)):``;e===this.#r&&this.isConnected&&(this.svg=n)}catch{e===this.#r&&this.isConnected&&(this.svg=``)}}};N([S({type:String,reflect:!0})],P.prototype,`status`,void 0),N([S({type:String,reflect:!0})],P.prototype,`size`,void 0),N([S({type:String,reflect:!0})],P.prototype,`direction`,void 0),N([S({type:String})],P.prototype,`appearance`,void 0),N([S({type:String,reflect:!0})],P.prototype,`name`,void 0),N([C()],P.prototype,`svg`,void 0);function bb(e){if(typeof globalThis.customElements?.get==`function`){if(e._registry===Dg)return;let t=hb(e.metadata.version),n=hb(P.metadata.version);(n.major-t.major||n.minor-t.minor||n.patch-t.patch)>=0&&(e._registry?.merge(Dg),Dg.loadCatalog().then(t=>e.add(t)).catch(()=>{}))}}if(v(P),customElements.get(P.metadata.tag)){let e=customElements.get(P.metadata.tag);e.alias({"thumb-stroke":`thumb`,"bell-stroke":`bell`,"bookmark-stroke":`bookmark`,"dot-stroke":`dot`,"filter-stroke":`filter`,"flag-stroke":`flag`,"globe-alt-stroke":`globe-alt`,"information-circle-stroke":`information-circle`,"pointer-stroke":`pointer`,"question-mark-circle-stroke":`question-mark-circle`}),bb(e)}var xb=class extends Error{constructor(e,t){super(`(${e}): ${t}`),this.name=`FormControlError`}};function Sb(e,t,n){let r=Cb(t,n);if(r===void 0)throw new xb(e,`unsupported value type ${typeof t}`);return r}function Cb(e,t){switch(t.type){case`string`:return e;case`number`:return parseFloat(e);case`boolean`:return!!e||e===`true`;case`array`:case`object`:return JSON.parse(e);case`enum`:return t.enum.includes(e)?e:void 0;default:return}}function wb(e){if(!e||typeof e!=`object`||Array.isArray(e))return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function Tb(e){return e._internals===void 0&&(e._internals=e.attachInternals()),e._internals}function F(e,t,n){n?e.states.add(t):e.states.delete(t)}function Eb(e,t=10){return Array.from(Pb(e)).reduce((e,n)=>[...e,[n,[...Array.from(Pb(n)).map(e=>[e,Eb(e,t)])]]],[]).flat(t)}function Db(e){let t=e.anchor;return typeof t==`string`&&t.length?e.parentNode?Eb(e.parentNode).find(e=>e.id===t)??globalThis.document.body:globalThis.document.body:t instanceof HTMLElement&&t!==globalThis.document.body?t:globalThis.document.body}function Ob(e){return typeof e==`string`&&e.length?e:e===``?``:null}function kb(e,t,n){return n===null?!e.hasAttribute(t):e.getAttribute(t)===n}function Ab(e){return typeof HTMLFormElement<`u`&&e instanceof HTMLFormElement}function jb(e){e?.wholeText?.trim()===``&&e.parentNode?.removeChild(e)}function Mb(e,t,n){n===null?e.removeAttribute(t):e.setAttribute(t,n)}function Nb(e){e.preventDefault(),e.stopPropagation()}function Pb(e){if(Fb(e))return Array.from(e.documentElement.children);if(Ib(e))return Array.from(e.shadowRoot.children);if(Lb(e)){let t=e.assignedElements();return t.length?t:Array.from(e.children)}return Array.from(e.children??[])}function Fb(e){return typeof Document<`u`&&e instanceof Document&&!!e.documentElement}function Ib(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement&&!!e.shadowRoot}function Lb(e){return typeof HTMLSlotElement<`u`&&e instanceof HTMLSlotElement&&!!e.assignedElements}function Rb(e){return class extends e{static{this.formAssociated=!0}#e;#t;get defaultValue(){return this.getAttribute(`value`)??``}set defaultValue(e){this.setAttribute(`value`,e)}get readOnly(){return this.getAttribute(`readonly`)!==null}set readOnly(e){Tb(this),this.toggleAttribute(`readonly`,e),F(this._internals,`readonly`,!!e),this._requestUpdate()}get disabled(){return this.getAttribute(`disabled`)!==null}set disabled(e){Tb(this),this.toggleAttribute(`disabled`,e),this._internals.ariaDisabled=e?`true`:`false`,F(this._internals,`disabled`,!!e),this._requestUpdate()}get required(){return this.getAttribute(`required`)!==null}set required(e){this.toggleAttribute(`required`,e),F(this._internals,`required`,!!e),this.checkValidity(),this._requestUpdate()}get pattern(){return this.getAttribute(`pattern`)??``}set pattern(e){e?this.setAttribute(`pattern`,e):this.removeAttribute(`pattern`),F(this._internals,`pattern`,!!e),this.checkValidity(),this._requestUpdate()}get min(){return Hb(this,`min`)}set min(e){Wb(this,`min`,e),F(this._internals,`min`,e!==null),this._internals.ariaValueMin=e===null?null:`${e}`,this.checkValidity(),this._requestUpdate()}get max(){return Hb(this,`max`)}set max(e){Wb(this,`max`,e),F(this._internals,`max`,e!==null),this._internals.ariaValueMax=e===null?null:`${e}`,this.checkValidity(),this._requestUpdate()}get step(){return Hb(this,`step`)}set step(e){Wb(this,`step`,e),F(this._internals,`step`,e!==null),this.checkValidity(),this._requestUpdate()}get minLength(){return this.hasAttribute(`minlength`)?Number(this.getAttribute(`minlength`)):-1}set minLength(e){Kb(this,`minlength`,e),F(this._internals,`minlength`,this.minLength!==-1),this.checkValidity(),this._requestUpdate()}get maxLength(){return this.hasAttribute(`maxlength`)?Number(this.getAttribute(`maxlength`)):-1}set maxLength(e){Kb(this,`maxlength`,e),F(this._internals,`maxlength`,this.maxLength!==-1),this.checkValidity(),this._requestUpdate()}get name(){return this.getAttribute(`name`)??``}set name(e){e?this.setAttribute(`name`,e):this.removeAttribute(`name`),this._updateFormState(),this._requestUpdate()}get noValidate(){return this.getAttribute(`novalidate`)!==null||this._internals.form?.noValidate===!0}set noValidate(e){this.toggleAttribute(`novalidate`,e),this._requestUpdate()}set value(e){this.updateValue(e),this._requestUpdate()}get value(){return this._value}updateValue(e){let t=this._value;this._value=structuredClone(e),!this.checkValidity()&&this._metadata.strict&&(this._value=t,console.error(`FormControlError: (strict mode)`,this.validationMessage)),!this.#t&&!this.isConnected&&(this._initialValue=structuredClone(this._value),this.#t=!0),this._updateFormState()}get form(){return this._internals.form}get willValidate(){return this._internals.willValidate}get validity(){return this._internals.validity}get validationMessage(){return this._internals.validationMessage}get valueAsString(){return zb(this.value)}get valueAsNumber(){return Number(this.value)}set valueAsNumber(e){typeof this._value==`number`&&typeof e==`number`?this.value=e:console.warn(new xb(this.localName,`cannot set number value on non-number type`).message)}get type(){return this.localName}get labels(){return this._internals.labels}get composedLabel(){return Array.from(this.labels).map(e=>e.textContent).join(` `).trim()}get _metadata(){return this.constructor.metadata}get _validators(){return this._metadata.validators??[]}constructor(...e){super(...e),this.#e=``,this.#t=!1,this._internals=Tb(this),this._stopInternalPropagation=e=>{let t=e.composedPath()[0];t instanceof Node&&this.shadowRoot?.contains(t)&&e.stopPropagation()},this._initialValue=this.value}connectedCallback(){Tb(this),super.connectedCallback&&super.connectedCallback(),this.tabIndex=0,this.#o(),this._updateFormState(),this.checkValidity(),this.shadowRoot?.addEventListener(`input`,this._stopInternalPropagation),this.shadowRoot?.addEventListener(`change`,this._stopInternalPropagation)}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback(),this.shadowRoot?.removeEventListener(`input`,this._stopInternalPropagation),this.shadowRoot?.removeEventListener(`change`,this._stopInternalPropagation)}static get observedAttributes(){return(super.observedAttributes??[]).concat([`value`,`readonly`,`required`,`name`,`novalidate`,`disabled`,`pattern`,`min`,`max`,`step`,`minlength`,`maxlength`])}attributeChangedCallback(e,t,n){super.attributeChangedCallback&&super.attributeChangedCallback(e,t,n),n!==t&&this._handleAttributeChange(e,n)}_handleAttributeChange(e,t){e===`value`?this.#l(t):this.#u(e,t)||this.#d(e,t)||this.#f(e,t)}formResetCallback(){this.reset()}formDisabledCallback(e){this.disabled=e}formStateRestoreCallback(e,t){this.value=e,this.checkValidity()}reportValidity(){return this.#n(),this._internals.reportValidity()}checkValidity(){return this.#n(),this._internals.checkValidity()}setValidity(e,t){this._internals.setValidity(e,t),this.#s()}setCustomValidity(e){this.#e=e,this.#n()}reset(){this.value=this.hasAttribute(`value`)?Sb(this.localName,this.defaultValue,this._metadata.valueSchema):structuredClone(this._initialValue),this.#c(),this.checkValidity(),this.dispatchEvent(new Event(`reset`,{bubbles:!0,cancelable:!0,composed:!0}))}#n(){this.noValidate?this._internals.setValidity({}):this.#a(this.#r()),this.#s()}#r(){if(this.#e)return Qb({customError:!0},this.#e);let e=this.#i();if(!e.validity.valid)return e;for(let e of this._validators){let t=e(this.value,this);if(!t.validity.valid)return t}return{validity:{valid:!0},message:``}}#i(){return this.required&&qb(this.value)?Qb({valueMissing:!0},`This field is required`):typeof this.value==`string`?Jb({maxLength:this.maxLength,minLength:this.minLength,pattern:this.pattern,value:this.value}):typeof this.value==`number`?Yb({max:this.max,min:this.min,step:this.step,value:this.value}):{validity:{valid:!0},message:``}}#a(e){e.validity.valid?this._internals.setValidity({}):this._internals.setValidity(e.validity,e.message,this.shadowRoot?.activeElement??void 0)}#o(){F(this._internals,`disabled`,this.disabled),F(this._internals,`readonly`,this.readOnly),F(this._internals,`required`,this.required),F(this._internals,`pattern`,!!this.pattern),F(this._internals,`min`,this.min!==null),F(this._internals,`max`,this.max!==null),F(this._internals,`step`,this.step!==null),F(this._internals,`minlength`,this.minLength!==-1),F(this._internals,`maxlength`,this.maxLength!==-1)}#s(){F(this._internals,`valid`,this.validity.valid),F(this._internals,`invalid`,!this.validity.valid)}#c(){this._internals.states.delete(`valid`),this._internals.states.delete(`invalid`)}#l(e){this.value=e===null?void 0:Sb(this.localName,e,this._metadata.valueSchema),this._initialValue=structuredClone(this.value),this.#t=!0}#u(e,t){return e===`readonly`?(this.readOnly=t!==null,!0):e===`disabled`?(this.disabled=t!==null,!0):e===`required`?(this.required=t!==null,!0):e===`novalidate`&&(this.noValidate=t!==null,this.checkValidity(),!0)}#d(e,t){return e===`name`?(this.name=t??``,!0):e===`pattern`&&(this.pattern=t??``,!0)}#f(e,t){e===`min`?this.min=Ub(t):e===`max`?this.max=Ub(t):e===`step`?this.step=Ub(t):e===`minlength`?this.minLength=Gb(t):e===`maxlength`&&(this.maxLength=Gb(t))}dispatchInputEvent(){this.dispatchEvent(new InputEvent(`input`,{bubbles:!0,cancelable:!0,composed:!0,data:this.valueAsString}))}dispatchChangeEvent(){this.dispatchEvent(new Event(`change`,{bubbles:!0,cancelable:!0,composed:!0}))}dispatchUpdateEvent(e){e===`input`?this.dispatchInputEvent():e===`change`&&this.dispatchChangeEvent()}_updateFormState(){if(!this.name)this._internals.setFormValue(null);else if(typeof this.value==`number`||typeof this.value==`boolean`)this._internals.setFormValue(`${this.value}`);else if(wb(this.value)){let e=new FormData;Object.entries(this.value).filter(([e])=>e!==`value`).forEach(([t,n])=>{e.set(`${this.name}-${t}`,`${n}`)}),this._internals.setFormValue(e)}else if(Array.isArray(this.value)){let e=new FormData;this.value.forEach(t=>e.append(this.name,t)),this._internals.setFormValue(e)}else this._internals.setFormValue(this.value)}_requestUpdate(){this.requestUpdate&&this.requestUpdate()}}}function zb(e){return e==null?``:Bb(e)?`${e}`:Vb(e)?e.name:Array.isArray(e)||wb(e)?JSON.stringify(e):JSON.stringify(e)??``}function Bb(e){return typeof e==`string`||typeof e==`number`||typeof e==`boolean`}function Vb(e){return typeof File<`u`&&e instanceof File}function Hb(e,t){return Ub(e.getAttribute(t))}function Ub(e){if(e===null||e===``)return null;let t=Number(e);return Number.isFinite(t)?t:null}function Wb(e,t,n){n===null||!Number.isFinite(n)?e.removeAttribute(t):e.setAttribute(t,`${n}`)}function Gb(e){let t=Ub(e);return t===null||t<0?-1:t}function Kb(e,t,n){n<0||!Number.isFinite(n)?e.removeAttribute(t):e.setAttribute(t,`${n}`)}function qb(e){return e==null||e===``||Array.isArray(e)&&e.length===0}function Jb({value:e,pattern:t,minLength:n,maxLength:r}){return t&&!Xb(e,t)?Qb({patternMismatch:!0},`pattern mismatch`):n!==-1&&e.length<n?Qb({tooShort:!0},`value too short`):r!==-1&&e.length>r?Qb({tooLong:!0},`value too long`):{validity:{valid:!0},message:``}}function Yb({value:e,min:t,max:n,step:r}){return Number.isNaN(e)?Qb({badInput:!0},`bad input`):t!==null&&e<t?Qb({rangeUnderflow:!0},`value too low`):n!==null&&e>n?Qb({rangeOverflow:!0},`value too high`):r!==null&&r>0&&Zb(e,t??0,r)?Qb({stepMismatch:!0},`step mismatch`):{validity:{valid:!0},message:``}}function Xb(e,t){try{return RegExp(`^(?:${t})$`).test(e)}catch{return!0}}function Zb(e,t,n){let r=(e-t)/n;return Math.abs(Math.round(r)-r)>2**-52}function Qb(e,t){return{validity:{...e,valid:!1},message:t}}var $b=class{#e=null;#t=!1;constructor(e){this.host=e,this.host.addController(this)}get readOnly(){return this.#t}hostUpdated(){this.#s();let e=this.#n;this.#t=!!e,e?this.host._internals.states.add(`anchor`):this.host._internals.states.delete(`anchor`),this.#i&&(this.#i.style.textDecoration=`none`,this.host.style.cursor=`pointer`),this.#c(e)}hostDisconnected(){this.#l()}get#n(){return this.#r??this.#i}get#r(){return this.host.shadowRoot?.querySelector(`slot:not([name]), slot[name=anchor]`)?.assignedElements()?.find(e=>e?.tagName===`A`)}get#i(){return this.host.parentElement?.tagName===`A`?this.host.parentElement:null}get#a(){return this.host.shadowRoot?.querySelector(`slot:not([name])`)}get#o(){return this.host.shadowRoot?.querySelector(`slot[name=anchor]`)}#s(){this.#n&&this.#o&&(this.#n.slot=`anchor`,this.#a?.assignedNodes().forEach(e=>jb(e)))}#c(e){this.#l(),this.#e=e??null,this.#e?.addEventListener(`click`,this.#u)}#l(){this.#e?.removeEventListener(`click`,this.#u),this.#e=null}#u=e=>{this.host.disabled&&(e.preventDefault(),e.stopImmediatePropagation())}},ex=class{#e=null;#t=0;#n;constructor(e){this.host=e,this.host.addController(this)}hostConnected(){this.#n===void 0&&this.host.hasAttribute(`tabindex`)&&(this.#t=this.host.tabIndex)}hostUpdated(){this.#r(),this.host.readOnly?(this.host._internals.role&&this.host._internals.role!==`none`&&(this.#e=this.host._internals.role),this.host._internals.role=`none`):!this.host._internals.role||this.host._internals.role===`none`?this.host._internals.role=this.#e??`button`:this.#e=this.host._internals.role}#r(){let e=this.host.disabled||this.host.readOnly,t=this.#n===void 0||this.#n&&!e;e&&this.#n===!1&&(this.#t=this.host.tabIndex),this.#n=e,this.host.readOnly?(this.host.tabIndex=-1,this.host.removeAttribute(`tabindex`)):this.host.disabled?this.host.tabIndex=-1:t&&(this.host.tabIndex=this.#t)}},tx=class{#e;constructor(e,{events:t=[`click`]}={}){this.host=e,this.#e=[...new Set(t)],this.host.addController(this)}hostUpdated(){this.#t(),!this.host.readOnly&&!this.host.disabled&&this.#e.forEach(e=>this.host.addEventListener(e,this.#n))}hostDisconnected(){this.#t()}#t(){this.#e.forEach(e=>this.host.removeEventListener(e,this.#n))}#n=e=>{e.defaultPrevented||this.invoke()};invoke(){if(this.host.readOnly||this.host.disabled||!this.host.command)return!1;let e=this.target;return e?(e.dispatchEvent(new globalThis.CommandEvent(`command`,{command:this.host.command,source:this.host})),!0):(console.warn(`commandForElement`,this.host.commandForElement||this.host.getAttribute(`commandfor`),`not found`),!1)}get target(){if(this.host.commandForElement)return this.host.commandForElement;let e=this.host.getAttribute(`commandfor`);return e?Eb(this.host.getRootNode()).find(t=>t.id===e)??null:null}},nx=class{#e=null;constructor(e){this.host=e,this.host.addController(this)}hostConnected(){this.host.addEventListener(`mouseenter`,this.#t),this.host.addEventListener(`mouseleave`,this.#n),this.host.addEventListener(`focus`,this.#t),this.host.addEventListener(`blur`,this.#n)}hostDisconnected(){this.host.removeEventListener(`mouseenter`,this.#t),this.host.removeEventListener(`mouseleave`,this.#n),this.host.removeEventListener(`focus`,this.#t),this.host.removeEventListener(`blur`,this.#n)}#t=e=>{e.type===`focus`&&!this.host.matches(`:focus-visible`)||this.host.popoverTargetElement?.matches(`:popover-open`)||this.#r(`interest`)};#n=()=>this.#r(`loseinterest`);#r(e){let t=this.#i();if(!t)return;let n=new Event(e,{cancelable:!0});n.source=this.host,t.dispatchEvent(n)}#i(){let e=this.#a();if(e!==void 0)return e;let t=this.#o(),n=this.#e;return this.#e=t,t&&this.host.interestForElement!==t?this.host.interestForElement=t:!t&&n&&this.host.interestForElement===n&&(this.host.interestForElement=null),t}#a(){let e=this.host.getAttribute(`interestfor`);if(e)return this.#e=null,this.#s(e);let t=this.host.interestForElement;if(t&&t!==this.#e)return this.#e=null,t}#o(){let e=this.host.popoverTargetElement;if(e instanceof HTMLElement&&e.popover===`hint`)return e;let t=this.#s(this.host.getAttribute(`popovertarget`));return t instanceof HTMLElement&&t.popover===`hint`?t:null}#s(e){return e?Eb(this.host.getRootNode()).find(t=>t.id===e)??null:null}},rx=class{#e;#t;#n;constructor(e){this.host=e,this.host.addController(this)}get defaultType(){return this.#e}hostUpdated(){this.#r(),this.#i(),!this.host.readOnly&&!this.host.disabled&&(this.host.addEventListener(`click`,this.#o),this.host.addEventListener(`keyup`,this.#a))}hostDisconnected(){this.#i(),this.#u()}#r(){!this.host.type&&!this.host.hasAttribute(`type`)&&this.host.form instanceof HTMLFormElement&&(this.#e=`submit`)}#i(){this.host.removeEventListener(`click`,this.#o),this.host.removeEventListener(`keyup`,this.#a)}#a=e=>{(e.key===` `||e.key===`Enter`||e.code===`Space`||e.code===`Enter`)&&this.host.click()};#o=e=>{this.host.disabled?Nb(e):this.host.type===`submit`&&this.host.form instanceof HTMLFormElement?this.#s(this.host.form):this.host.type===`reset`&&this.host.form instanceof HTMLFormElement&&this.host.form.reset()};#s(e){this.#u(),this.#l(),this.#n=e,e.addEventListener(`submit`,this.#c,{once:!0}),this.#t?.remove(),e.appendChild(this.#t),e.requestSubmit(this.#t)}#c=()=>{let e=this.#t;this.#n=void 0,setTimeout(()=>{e?.remove(),this.#t===e&&(this.#t=void 0)},0)};#l(){this.#t||(this.#t=globalThis.document.createElement(`button`),this.#t.type=`submit`,this.#t.style.display=`none`),this.#t.name=this.host.name??``,this.#t.value=this.host.value??``}#u(){this.#n?.removeEventListener(`submit`,this.#c),this.#n=void 0,this.#t?.remove(),this.#t=void 0}},ix=class{constructor(e){this.host=e,this.host.addController(this)}hostConnected(){this.host.addEventListener(`click`,this.#n)}hostDisconnected(){this.host.removeEventListener(`click`,this.#n)}#e;#t(){let e=this.host.popoverTargetElement,t=e===this.#e;if(!this.host.getAttribute(`popovertarget`))return this.#e=void 0,t?(this.host.popoverTargetElement=null,null):e;if(e&&!t)return e;let n=Eb(this.host.getRootNode()).find(e=>e.id===this.host.getAttribute(`popovertarget`))??null;return n!==e&&(this.host.popoverTargetElement=n),this.#e=n,n}#n=e=>{if(e.defaultPrevented||this.host.disabled)return;let t=this.#t();t&&this.#i(t)&&this.#a()};#r(e){return e.anchor?Db(e):this.host}#i(e){if(this.host.popoverTargetAction===`hide`)return e.hidePopover(),!1;let t=this.#r(e);return this.host.popoverTargetAction===`show`?e.showPopover({source:t}):e.togglePopover({source:t}),e.matches(`:popover-open`)}#a(){if(this.host.interestForElement){let e=new Event(`loseinterest`,{cancelable:!0});e.source=this.host,this.host.interestForElement.dispatchEvent(e)}}},ax=class{constructor(e){this.host=e,this.host.addController(this)}hostConnected(){Tb(this.host),this.host.addEventListener(`keypress`,this.#e),this.host.addEventListener(`mousedown`,this.#e),this.host.addEventListener(`keyup`,this.#t),this.host.addEventListener(`blur`,this.#t),this.host.addEventListener(`mouseup`,this.#t)}hostDisconnected(){this.host.removeEventListener(`keypress`,this.#e),this.host.removeEventListener(`mousedown`,this.#e),this.host.removeEventListener(`keyup`,this.#t),this.host.removeEventListener(`blur`,this.#t),this.host.removeEventListener(`mouseup`,this.#t)}#e=e=>{!this.host.disabled&&this.#n(e)&&this.host._internals.states.add(`active`),e instanceof KeyboardEvent&&e.code===`Space`&&e.target===this.host&&e.preventDefault()};#t=()=>{this.host._internals.states.delete(`active`)};#n(e){return e instanceof KeyboardEvent?e.code===`Space`||e.code===`Enter`:!0}},ox=class{#e=null;constructor(e){this.host=e,this.host.addController(this)}hostConnected(){Tb(this.host)}hostUpdated(){this.host.readOnly?(this.host._internals.ariaCurrent=null,F(this.host._internals,`current`,!1),this.#t()):this.host._internals?.states.has(`anchor`)?(this.host._internals.ariaCurrent=null,F(this.host._internals,`current`,!!this.host.current),this.#t()):(this.host._internals.ariaCurrent=this.host.current===null||this.host.current===void 0?null:this.host.current,F(this.host._internals,`current`,!!this.host.current))}#t(){let e=this.host.querySelector(`a`),t=!this.host.readOnly&&this.host._internals.states.has(`anchor`)&&!!(this.host.selected||this.host.current);e&&t?(this.#e?.removeAttribute(`aria-current`),e.setAttribute(`aria-current`,this.host.current??`page`),this.#e=e):(this.#e?.removeAttribute(`aria-current`),this.#e=null)}},sx=class{constructor(e){this.host=e,this.host.addController(this)}hostConnected(){Tb(this.host)}hostUpdated(){this.host.disabled!==null&&this.host.disabled!==void 0?this.host._internals.ariaDisabled=`${this.host.disabled}`:this.host._internals.ariaDisabled=null,this.host.disabled?this.host._internals.states.add(`disabled`):this.host._internals.states.delete(`disabled`),this.host.readOnly&&(this.host._internals.ariaDisabled=null)}},cx=class{constructor(e){this.host=e,this.host.addController(this)}hostConnected(){Tb(this.host)}hostUpdated(){this.host._internals.ariaExpanded=this.host.expanded===null||this.host.expanded===void 0?null:`${this.host.expanded}`,F(this.host._internals,`expanded`,!!this.host.expanded)}},lx=class{constructor(e){this.host=e,this.host.addController(this)}hostConnected(){Tb(this.host)}hostUpdated(){this.host._internals.ariaPressed=this.host.pressed===null||this.host.pressed===void 0?null:`${this.host.pressed}`,F(this.host._internals,`pressed`,!!this.host.pressed)}},ux=class{constructor(e){this.host=e,this.host.addController(this)}hostConnected(){Tb(this.host)}hostUpdated(){this.host.readOnly&&(this.host._internals.ariaDisabled=null,this.host._internals.ariaExpanded=null,this.host._internals.ariaPressed=null,this.host._internals.ariaSelected=null,this.host._internals.ariaCurrent=null,this.host._internals.states.delete(`expanded`),this.host._internals.states.delete(`pressed`),this.host._internals.states.delete(`selected`),this.host._internals.states.delete(`current`))}},dx=class{#e=null;constructor(e){this.host=e,this.host.addController(this)}hostConnected(){Tb(this.host)}hostUpdated(){this.host.readOnly?(this.host._internals.ariaSelected=null,F(this.host._internals,`selected`,!1),this.#t()):this.host._internals?.states.has(`anchor`)?(this.host._internals.ariaSelected=null,F(this.host._internals,`selected`,!!this.host.selected),this.#t()):(this.host._internals.ariaSelected=this.host.selected===null||this.host.selected===void 0?null:`${this.host.selected}`,F(this.host._internals,`selected`,!!this.host.selected))}#t(){let e=this.host.querySelector(`a`),t=!this.host.readOnly&&this.host._internals.states.has(`anchor`)&&!!(this.host.selected||this.host.current);e&&t?(this.#e?.removeAttribute(`aria-current`),e.setAttribute(`aria-current`,this.host.current??`page`),this.#e=e):(this.#e?.removeAttribute(`aria-current`),this.#e=null)}},fx={commandfor:`commandForElement`,interestfor:`interestForElement`,popovertarget:`popoverTargetElement`};function px(e){return class t extends e{constructor(...e){super(...e),this.#n=!1,this.#r={commandForElement:null,interestForElement:null,popoverTargetElement:null},this.#a=null,this.#o=!1,this.#c=/* @__PURE__ */ new Map,this.#d=!1,this.#p=!1,this._internals=Tb(this),this._typeAnchorController=new $b(this),this._typeButtonController=new ex(this),this._typeSubmitController=new rx(this),this._typeCommandController=new tx(this),this._typeInterestInvokerController=new nx(this),this._typePopoverTriggerController=new ix(this),this._stateActiveController=new ax(this),this._stateDisabledController=new sx(this),this._stateExpandedController=new cx(this),this._statePressedController=new lx(this),this._stateSelectedController=new dx(this),this._stateCurrentController=new ox(this),this._stateReadOnlyController=new ux(this)}static{this.formAssociated=!0}#e;#t;#n;#r;#i;#a;#o;#s;#c;#l;#u;#d;#f;#p;#m;#h;static get observedAttributes(){return(super.observedAttributes??[]).concat([`pressed`,`expanded`,`readonly`,`form`,`name`,`value`,`type`,`disabled`,`selected`,`current`,`popovertarget`,`popovertargetaction`,`commandfor`,`command`,`interestfor`])}get pressed(){return this.#u}set pressed(e){this.#w({property:`pressed`,value:!!e,reflect:!0})}get expanded(){return this.#i}set expanded(e){this.#w({property:`expanded`,value:!!e,reflect:!0})}get readOnly(){return this.#d||(this._typeAnchorController?.readOnly??!1)}set readOnly(e){this.#w({property:`readOnly`,value:!!e,reflect:!0,attribute:`readonly`})}get readonly(){return this.readOnly}set readonly(e){this.readOnly=e}set form(e){let t=this.form;this.#a=e,typeof e==`string`?this.setAttribute(`form`,e):this.removeAttribute(`form`),this.#j(`form`,t),this.#g()}get form(){if(this.#a&&typeof this.#a!=`string`)return this.#a;if(typeof this.#a==`string`&&globalThis.document!==void 0){let e=this.getRootNode(),t=e.getElementById?e.getElementById(this.#a):null;return Ab(t)?t:null}return this._internals?.form??null}get name(){return this.#s}set name(e){this.#D({property:`name`,value:e})}get value(){return this.#h}set value(e){this.#D({property:`value`,value:e})}get type(){return this.#m??this._typeSubmitController?.defaultType}set type(e){this.#D({property:`type`,value:e})}get disabled(){return this.#n}set disabled(e){this.#w({property:`disabled`,value:!!e,reflect:!0})}get selected(){return this.#f}set selected(e){this.#w({property:`selected`,value:!!e,reflect:!0})}get current(){return this.#t}set current(e){this.#D({property:`current`,value:e})}get popoverTargetElement(){return this.#x(`popovertarget`)}set popoverTargetElement(e){this.#C(`popovertarget`,e)}get popoverTargetAction(){return this.#l===`show`||this.#l===`hide`?this.#l:`toggle`}set popoverTargetAction(e){this.#D({property:`popoverTargetAction`,value:e,attribute:`popovertargetaction`})}get commandForElement(){return this.#x(`commandfor`)}set commandForElement(e){this.#C(`commandfor`,e)}get command(){return this.#e}set command(e){this.#D({property:`command`,value:e})}get interestForElement(){return this.#x(`interestfor`)}set interestForElement(e){this.#C(`interestfor`,e)}addController(e){this._controllers??=/* @__PURE__ */ new Set,this._controllers.add(e)}connectedCallback(){super.connectedCallback?.(),this._controllers?.forEach(e=>e.hostConnected?.()),Tb(this),this.#o=!0,this.#N(),this.#_(),this.#g()}disconnectedCallback(){this._controllers?.forEach(e=>e.hostDisconnected?.()),super.disconnectedCallback?.()}updated(e){Object.getPrototypeOf(t.prototype).updated?.call(this,e),this.#p=!1,this.#_()}attributeChangedCallback(e,t,n){super.attributeChangedCallback?.(e,t,n),t!==n&&(this.#v(e,n),this.#b(e,t),this.#y(e,t,n))}#g(){!this.isConnected||this.#p||(this.#p=!0,this.#M().then(()=>{this.#p&&(this.#p=!1,this.isConnected&&this.#_())}))}#_(){this._controllers?.forEach(e=>e.hostUpdated?.())}#v(e,t){(e===`pressed`||e===`expanded`||e===`selected`||e===`disabled`)&&this.#w({property:e,value:t!==null,reflect:!1}),e===`readonly`&&this.#w({property:`readOnly`,value:t!==null,reflect:!1})}#y(e,t,n){e!==`commandfor`&&e!==`interestfor`&&e!==`popovertarget`&&(e===`form`&&(Ab(this.#a)&&n===null||(this.#a=n,this.#j(`form`,t))),e===`popovertargetaction`?this.#D({property:`popoverTargetAction`,value:n,reflect:!1}):this.#D({property:e,value:n,reflect:!1}))}#b(e,t){let n=fx[e];if(!n)return;let r=this.#r[n]??this.#S(t);this.#r[n]=null,this.#j(n,r),this.#g()}#x(e){return this.#r[fx[e]]??this.#S(this.getAttribute(e))}#S(e){return e?Eb(this.getRootNode()).find(t=>t.id===e)??null:null}#C(e,t){let n=fx[e],r=this[n];r===t&&kb(this,e,t?``:null)||(Mb(this,e,t?``:null),this.#r[n]=t,this.#j(n,r),this.#g())}#w({property:e,value:t,reflect:n,attribute:r=e}){let i=this.#T(e);(i!==t||n&&!kb(this,r,t?``:null))&&(this.#E(e,t),!(n&&this.#A(r,t?``:null))&&(this.#j(e,i),this.#g()))}#T(e){return{disabled:this.#n,expanded:this.#i,pressed:this.#u,readOnly:this.#d,selected:this.#f}[e]}#E(e,t){e===`disabled`?this.#n=t:e===`expanded`?this.#i=t:e===`pressed`?this.#u=t:e===`readOnly`?this.#d=t:e===`selected`&&(this.#f=t)}#D({property:e,value:t,attribute:n=e,reflect:r=!0}){let i=this.#O(e),a=Ob(t);(i!==a||r&&!kb(this,n,a))&&(this.#k(e,a),!(r&&this.#A(n,a))&&(this.#j(e,i),this.#g()))}#O(e){return{command:this.#e,current:this.#t,name:this.#s,popoverTargetAction:this.#l,type:this.#m,value:this.#h}[e]}#k(e,t){({command:()=>this.#e=t??void 0,current:()=>this.#t=t,name:()=>this.#s=t??void 0,popoverTargetAction:()=>this.#l=t,type:()=>this.#m=t,value:()=>this.#h=t??void 0})[e]?.()}#A(e,t){return!this.isConnected&&!this.#o?(this.hasAttribute(e)||this.#c.set(e,t),!0):(Mb(this,e,t),!1)}#j(e,t){this.requestUpdate?.(e,t)}#M(){return this.updateComplete??Promise.resolve()}#N(){this.#c.forEach((e,t)=>Mb(this,t,e)),this.#c.clear()}}}var mx=`:host{--nve-sys-interaction-state-base: var(--background, var(--nve-sys-layer-canvas-background));--background: var(--nve-sys-interaction-background);--color: var(--nve-sys-interaction-color);--padding: 0 var(--nve-ref-size-300);--border: 0;--border-radius: var(--nve-ref-border-radius-full);--font-weight: var(--nve-ref-font-weight-semibold);--font-size: var(--nve-ref-font-size-100);--text-decoration: none;--text-align: center;--cursor: pointer;--gap: var(--nve-ref-space-xs);--height: var(--nve-sys-interaction-field-height);--text-transform: capitalize;--line-height: 1.1em;--_icon-color: var(--color);--width: initial;--min-width: var(--width);display:inline-flex;position:relative;user-select:none;white-space:nowrap;width:var(--width);min-width:var(--min-width)}[internal-host]{color:var(--color);background:var(--background);padding:var(--padding);height:var(--height);width:100%;border:var(--border);border-radius:var(--border-radius);text-decoration:var(--text-decoration);text-align:var(--text-align);font-weight:var(--font-weight);font-size:var(--font-size);cursor:var(--cursor);gap:var(--gap);text-transform:var(--text-transform);display:inline-flex;place-items:center;justify-content:center;white-space:nowrap;line-height:var(--line-height);overflow:hidden}::slotted(nve-icon:not([status])){--color: var(--_icon-color);pointer-events:none}::slotted(a){text-decoration:var(--text-decoration)!important;color:var(--color)!important;gap:var(--gap)!important;display:flex!important;align-items:center!important;outline:0}::slotted(a):after{display:block;content:" ";inset:0;position:absolute}:host([nve-control]){--text-align: start;--border-radius: var(--nve-ref-border-radius-sm);--font-weight: var(--nve-ref-font-weight-regular);--padding: 0 var(--nve-ref-size-200)}:host([nve-control]) [internal-host]{justify-content:start}:host([nve-control]) ::slotted([name="chevron-down"]){--color: var(--nve-sys-text-muted-color);margin-inline:auto 0}:host([nve-control]:hover) [interaction-state]{--nve-sys-interaction-state-ratio: 0}:host([size="sm"]){--height: var(--nve-ref-size-700)}:host([size="lg"]){--height: var(--nve-ref-size-900);--padding: 0 var(--nve-ref-size-400);--font-size: var(--nve-ref-font-size-200);--line-height: 1em}:host([readonly]){--text-decoration: none;--cursor: cursor}:host([interaction="emphasis"]){--color: var(--nve-sys-interaction-emphasis-color);--background: var(--nve-sys-interaction-emphasis-background)}:host([interaction="destructive"]){--color: var(--nve-sys-interaction-destructive-color);--background: var(--nve-sys-interaction-destructive-background)}:host(:state(disabled)){--color: var(--nve-sys-interaction-disabled-color);--background: var(--nve-sys-interaction-disabled-background);--cursor: not-allowed}:host(:state(disabled)) ::slotted(a){cursor:not-allowed}:host(:state(pressed):not([interaction])){--color: var(--nve-sys-interaction-selected-color)}:host(:state(pressed):not([interaction],[container])){--background: var(--nve-sys-support-accent-color);--color: var(--nve-sys-text-white-color)}:host(:hover:not([interaction],[disabled],[readonly],[pressed])){--color: var(--nve-sys-interaction-hover-color)}:host([container="flat"][selected]) [interaction-state],:host([container="flat"]:state(selected)) [interaction-state],:host([container="flat"][pressed]) [interaction-state],:host([container="flat"]:state(pressed)) [interaction-state]{--nve-sys-interaction-state-ratio: var(--nve-sys-interaction-state-ratio-selected)}:host([container*="flat"]),:host([container*="inline"]){--background: transparent;--text-transform: initial;--border-radius: var(--nve-ref-border-radius-xs);--_icon-color: var(--color)}:host([container*="flat"][interaction]:hover){--background: color-mix( in oklab, var(--color) var(--nve-sys-contrast-mute-ratio), var(--nve-sys-contrast-mute-color) )}@container style(--nve-sys-color-scheme: dark){:host([container*="flat"]){--nve-sys-interaction-state-ratio-selected: 16% !important;--nve-sys-interaction-state-ratio-hover: 12% !important}}:host([container*="flat"][interaction="emphasis"]){--color: var(--nve-sys-interaction-emphasis-background)}:host([container*="flat"][interaction="destructive"]){--color: color-mix(in oklab, var(--nve-sys-interaction-destructive-background) 100%, currentColor 20%)}:host([container*="inline"]){--padding: 0;--height: fit-content;--line-height: .8;[internal-host]{overflow:initial}}:host([container*="inline"]:hover){--background: transparent;--text-decoration: underline}:host([container*="inline"]:hover) [interaction-state]{--nve-sys-interaction-state-ratio: 0}:host([container*="inline"]:state(active)){--background: transparent;--text-decoration: underline}:host([container*="flat"]:state(disabled)),:host([container*="inline"]:state(disabled)){--color: var(--nve-sys-interaction-disabled-color);--background: transparent;--text-decoration: none !important}:host([container*="flat"]:state(disabled)) [interaction-state],:host([container*="inline"]:state(disabled)) [interaction-state]{--nve-sys-interaction-state-ratio: 0}:host([container*="inline"]:state(selected)){--color: var(--nve-sys-interaction-selected-color);--background: transparent}:host([container*="flat"]:state(selected)){--color: var(--nve-sys-interaction-selected-color)}:host([container*="flat"][interaction="emphasis"]:state(selected)){--color: var(--nve-sys-interaction-emphasis-background);--background: color-mix( in oklab, var(--color) var(--nve-sys-contrast-mute-ratio), var(--nve-sys-contrast-mute-color) )}:host([container*="flat"][interaction="destructive"]:state(selected)){--color: var(--nve-sys-interaction-destructive-background);--background: color-mix( in oklab, var(--color) var(--nve-sys-contrast-mute-ratio), var(--nve-sys-contrast-mute-color) )}:host(:state(selected)){--color: var(--nve-sys-text-emphasis-color)}:host([container*="inline"]:state(selected)) [interaction-state]{--nve-sys-interaction-state-ratio: 0}:host([container*="inline"][readonly]:not(:state(anchor))){--text-decoration: none;--cursor: cursor}:host([container="inline"][interaction="destructive"]){--color: color-mix(in oklab, var(--nve-sys-interaction-destructive-background) 100%, currentColor 20%)}:host([container="inline"][interaction="emphasis"]){--color: var(--nve-sys-interaction-emphasis-background)}@keyframes inline-underline{0%{transform:translate(-50%) scaleX(0)}to{transform:translate(-50%) scaleX(1)}}:host([container*="inline"]) [internal-host]:after{content:"";position:absolute;left:50%;bottom:calc(var(--_border-bottom-offset, -2) * var(--nve-ref-border-width-md));width:var(--_border-bottom-width, 100%);height:var(--nve-ref-border-width-md);background-color:currentColor;transform:translate(-50%) scaleX(0);transform-origin:center;transition:transform .3s ease;will-change:transform;border-radius:var(--nve-ref-border-radius-full)}:host([container*="inline"]:hover) [internal-host]:after,:host([container*="inline"]:focus) [internal-host]:after{transform:translate(-50%) scaleX(1)}:host([container*="inline"]:state(disabled)) [internal-host]:after{display:none}:host([container*="inline"]){--text-decoration: none}:host([container*="inline"]:hover){--text-decoration: none}`,hx=class extends px(x){static{this.styles=j([mx])}static{this.metadata={tag:`nve-button`,version:`0.0.0`}}render(){return y`<div internal-host interaction-state focus-within><slot></slot></div>`}};N([S({type:String,reflect:!0})],hx.prototype,`container`,void 0),N([S({type:String,reflect:!0})],hx.prototype,`size`,void 0),N([S({type:String,reflect:!0})],hx.prototype,`interaction`,void 0);var gx=`:host{--color: var(--nve-sys-text-muted-color);--border-radius: var(--nve-ref-border-radius-full);--padding: 0;--line-height: 0;--gap: 0;--height: var(--nve-ref-size-800);--width: var(--nve-ref-size-800);--font-size: calc(var(--width) / 2.3)}:host([container*="inline"]){--height: var(--nve-ref-size-800);--line-height: 0}:host([size="sm"]){--padding: 0;--height: var(--nve-ref-size-700);--width: var(--nve-ref-size-700)}:host([size="lg"]){--width: var(--nve-ref-size-1000);--height: var(--nve-ref-size-1000);--padding: 0}[internal-host]{font-size:var(--font-size)}[internal-host]:after{display:none!important}nve-icon{--color: var(--_icon-color);pointer-events:none}::slotted(a){text-decoration:none!important;color:var(--color)!important;outline:0}::slotted(a):after{display:block;content:" ";inset:0;position:absolute}`,I=class extends hx{static{this.styles=j([...hx.styles,gx])}static{this.metadata={tag:`nve-icon-button`,version:`0.0.0`}}static{this.elementDefinitions={[P.metadata.tag]:P}}render(){return y`<div internal-host interaction-state focus-within aria-hidden="true"><slot @slotchange="${e=>cy(e.target)}"><nve-icon .name="${this.iconName}" .appearance="${this.appearance}" .direction="${this.direction}" .size="${this.size}" aria-hidden="true" part="icon"></nve-icon></slot></div><slot name="anchor"></slot>`}};N([S({type:String,attribute:`icon-name`})],I.prototype,`iconName`,void 0),N([S({type:String,reflect:!0})],I.prototype,`direction`,void 0),N([S({type:String,reflect:!0})],I.prototype,`size`,void 0),N([S({type:String})],I.prototype,`appearance`,void 0),I=N([A()],I),v(I);var _x=(e,t,n)=>(n.configurable=!0,n.enumerable=!0,Reflect.decorate&&typeof t!=`object`&&Object.defineProperty(e,t,n),n);function L(e){return(t,n)=>{let{slot:r,selector:i}=e??{},a=`slot`+(r?`[name=${r}]`:`:not([name])`);return _x(t,n,{get(){let t=(this.renderRoot?.querySelector(a))?.assignedElements(e)??[];return i===void 0?t:t.filter(e=>e.matches(i))}})}}var vx=`:host{--nve-sys-interaction-background: var(--nve-sys-interaction-background-200);--nve-sys-interaction-field-background: var(--nve-sys-interaction-background-200);--background: var(--nve-sys-layer-container-background);--color: var(--nve-sys-layer-canvas-color);--border-radius: 0;--header-padding: var(--nve-ref-size-300) var(--nve-ref-size-400);--cursor: pointer;--transition: height var(--nve-ref-animation-duration-200) ease-in-out;width:100%;width:stretch;contain:none}[internal-host]{border-radius:var(--border-radius);background:var(--background);color:var(--color);overflow:hidden;display:flex;flex-direction:column;align-items:stretch;justify-content:start;height:100%}#header{cursor:var(--cursor);display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:var(--header-padding)}#content{display:block;height:0;transition:var(--transition)}:host(:state(expanded)) #content{height:auto;height:calc-size(max-content,size)}:host([container="inset"]){--border-radius: var(--nve-ref-border-radius-md)}:host([container="flat"]){--background: inherit;--header-padding: var(--nve-ref-size-200) var(--nve-ref-size-400)}:host([container="flat"]) ::slotted(nve-accordion-content){--padding: var(--nve-ref-size-50) var(--nve-ref-size-400) var(--nve-ref-size-300) var(--nve-ref-size-400)}:host([disabled]){--cursor: not-allowed}:host([disabled]) ::slotted(nve-accordion-header){--cursor: not-allowed}:host(:not([disabled])) #header:hover nve-icon-button{--color: var(--nve-sys-text-emphasis-color)}nve-icon-button::part(icon){transition:transform var(--nve-ref-animation-duration-200) cubic-bezier(.4,0,.2,1)}`,yx=`:host{width:100%;--cursor: pointer}[internal-host]{cursor:var(--cursor);color:var(--color);display:flex;flex-direction:row;justify-content:space-between;align-items:center;gap:var(--nve-ref-space-xs)}slot:not([name]){display:block;flex:1}`,bx=`:host{--padding: var(--nve-ref-size-300) var(--nve-ref-size-400);padding:var(--padding);color:var(--color);font-weight:var(--nve-ref-font-weight-regular);font-size:var(--nve-ref-font-size-200);flex-grow:1;contain:none}`,xx=`:host{--padding: var(--nve-ref-size-400) var(--nve-ref-size-500) var(--nve-ref-size-500);width:100%;width:stretch}[internal-host]{display:flex;flex-direction:column}:host([container="flat"]) [internal-host]{gap:var(--nve-ref-space-xxxs)}:host([container="inset"]) [internal-host]{gap:var(--nve-ref-space-md)}:host(:not([container])) ::slotted(nve-accordion:not(:last-child)){border-bottom:var(--nve-ref-border-width-sm) solid var(--nve-ref-border-color-muted)}:host([container="full"]) ::slotted(nve-accordion:not(:last-child)){border-bottom:var(--nve-ref-border-width-sm) solid var(--nve-ref-border-color-muted)}`,Sx={close:`close`,expand:`expand`},Cx=class extends x{constructor(...e){super(...e),this.slot=`header`}static{this.styles=j([yx])}static{this.metadata={tag:`nve-accordion-header`,version:`0.0.0`}}render(){return y`<div internal-host><slot name="prefix"></slot><slot></slot><slot name="suffix"></slot></div>`}connectedCallback(){super.connectedCallback(),D(this),this._internals.role=`heading`,this._internals.ariaLevel=`2`}};N([k()],Cx.prototype,`slot`,void 0);var wx=class extends x{static{this.styles=j([bx])}static{this.metadata={tag:`nve-accordion-content`,version:`0.0.0`}}render(){return y`<slot></slot>`}},Tx=class extends x{constructor(...e){super(...e),this.#e=new M(this,Sx),this.#t=new Ky(this),this.i18n=this.#e.i18n,this.expanded=!1,this.disabled=!1,this.behaviorExpand=!1}static{this.styles=j([vx])}static{this.metadata={tag:`nve-accordion`,version:`0.0.0`,children:[Cx.metadata.tag,wx.metadata.tag,I.metadata.tag]}}static{this.elementDefinitions={[I.metadata.tag]:I}}#e;#t;get#n(){return this.shadowRoot?.querySelector(`slot[name=header]`)?.assignedElements()[0]}#r(e){this.disabled||Iv(e)&&e.id!==`internal-trigger`||this.#t.toggle()}render(){return y`<div internal-host><div id="header" @click="${e=>this.#r(e.target)}" .ariaLabel="${this.expanded?this.i18n.close:this.i18n.expand}" .ariaControls="${`content`}"><slot name="header"></slot><slot name="icon-button"><nve-icon-button part="icon-button" exportparts="icon:icon-button-icon" id="internal-trigger" container="inline" icon-name="caret" direction="${this.expanded?`up`:`down`}" ?disabled="${this.disabled}" ?pressed="${this.expanded}" .expanded="${this.expanded}" .ariaLabel="${this.expanded?this.i18n.close:this.i18n.expand}"></nve-icon-button></slot></div><div id="content" .ariaHidden="${!this.expanded}"><slot></slot></div></div>`}connectedCallback(){super.connectedCallback(),D(this),this._internals.role=`region`}async firstUpdated(e){super.firstUpdated(e),this.#n&&(this.#n.id||=Gv(),this.setAttribute(`aria-labelledby`,this.#n.id))}};N([S({type:Object})],Tx.prototype,`i18n`,void 0),N([S({type:String,reflect:!0})],Tx.prototype,`container`,void 0),N([S({type:Boolean,reflect:!0})],Tx.prototype,`expanded`,void 0),N([S({type:Boolean,reflect:!0})],Tx.prototype,`disabled`,void 0),N([S({type:Boolean,attribute:`behavior-expand`})],Tx.prototype,`behaviorExpand`,void 0),Tx=N([w(),A(),Fy()],Tx);var Ex=class extends x{constructor(...e){super(...e),this.behaviorExpand=!1,this.behaviorExpandSingle=!1,this.#e=e=>{this.behaviorExpandSingle&&this.accordions.find(t=>t===e.target)&&this.accordions.filter(t=>t!==e.target).forEach(e=>e.expanded=!1)}}static{this.styles=j([xx])}static{this.metadata={tag:`nve-accordion-group`,version:`0.0.0`,children:[Tx.metadata.tag]}}render(){return y`<div internal-host><slot @slotchange="${()=>this.#t()}"></slot></div>`}connectedCallback(){super.connectedCallback(),D(this),this._internals.role=`group`,this.addEventListener(`open`,this.#e)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(`open`,this.#e)}#e;updated(e){super.updated(e),this.#t()}#t(){this.accordions.forEach(e=>e.container=this.container),this.accordions.forEach(e=>e.behaviorExpand=this.behaviorExpand||this.behaviorExpandSingle)}};N([S({type:Boolean,attribute:`behavior-expand`})],Ex.prototype,`behaviorExpand`,void 0),N([S({type:Boolean,attribute:`behavior-expand-single`})],Ex.prototype,`behaviorExpandSingle`,void 0),N([S({type:String,reflect:!0})],Ex.prototype,`container`,void 0),N([L()],Ex.prototype,`accordions`,void 0),Ex=N([w()],Ex),v(Tx),v(Cx),v(wx),v(Ex),g(`information-circle`,()=>Ac),g(`exclamation-triangle`,()=>xo),g(`checkmark-circle`,()=>Mr),g(`exclamation-circle`,()=>fo),g(`clock`,()=>_i),g(`x-circle`,()=>pg),g(`question-mark-circle`,()=>Tf),g(`bar-pill-stack`,()=>Bt),g(`running`,()=>tp),g(`refresh`,()=>Ke),g(`stop-sign`,()=>ym),g(`circle-dash`,()=>Xr),g(`circle-dot`,()=>$r),g(`circle-angled-line`,()=>Wr),g(`cancel`,()=>ie);var Dx=`nve-alert:has([slot=content])::part(_content){display:block}nve-alert-group:not(:has(nve-alert)),nve-alert-group:not(:has(nve-alert:not([hidden]))){display:none}`,Ox=`:host{--gap: var(--nve-ref-space-xs);--font-size: var(--nve-ref-font-size-100);--color: var(--nve-sys-text-emphasis-color);--icon-color: var(--status-color);--icon-size: var(--nve-ref-size-400);--font-weight: var(--nve-ref-font-weight-medium);--justify-content: start;--align-items: center;--min-height: initial;--text-transform: initial;width:auto}[internal-host]{--_icon-cancel-color: var(--color);font-weight:var(--font-weight);font-size:var(--font-size);gap:var(--gap);color:var(--color);justify-content:var(--justify-content);align-items:var(--align-items);text-transform:var(--text-transform);display:flex;line-height:1em;height:100%}slot[part=_content]{display:contents;padding-inline-start:var(--nve-ref-size-600);padding-block-end:var(--nve-ref-size-200)}slot{display:flex;align-items:center;justify-content:var(--justify-content);gap:var(--nve-ref-space-xxs);min-height:var(--min-height)}slot:not([name=actions],[name=prefix],[name=icon]){flex-grow:1}slot[name=prefix],slot[name=actions]{font-weight:var(--nve-ref-font-weight-semibold)}::slotted(nve-button[container="flat"]){--color: inherit}slot[name=actions]{margin-inline-start:auto}slot[name=prefix]{margin-inline-end:var(--nve-ref-space-lg)}nve-icon{--color: var(--icon-color)}nve-icon:not([size=sm]){--width: var(--icon-size);--height: var(--icon-size)}nve-icon[size=sm]{padding:var(--nve-ref-size-50)}nve-icon-button{--color: var(--icon-color);margin-inline-start:auto}::slotted([nve-text]){color:inherit!important}:host([status="success"]),:host([status="danger"]){--color: var(--status-color)}:host([status="scheduled"]),:host([status="queued"]),:host([status="pending"]),:host([status="starting"]),:host([status="running"]),:host([status="restarting"]),:host([status="stopping"]),:host([status="finished"]),:host([status="failed"]),:host([status="unknown"]),:host([status="ignored"]){--color: var(--status-color)}::slotted([slot="actions"]){--color: var(--status-color) !important}`,kx={close:`close`,danger:`danger`,information:`information`,success:`success`,warning:`warning`},Ax=class extends x{constructor(...e){super(...e),this.closable=!1,this.#e=new Gy(this),this.#t=new M(this,kx),this.i18n=this.#t.i18n}static{this.styles=j([Ox,cb,lb])}static{this.metadata={tag:`nve-alert`,version:`0.0.0`}}static{this.elementDefinitions={[P.metadata.tag]:P,[I.metadata.tag]:I}}#e;#t;render(){return y`<div internal-host @slotchange="${()=>this.requestUpdate()}"><slot name="icon"><nve-icon part="icon" role="img" .name="${mb[this.status]??mb[``]}" aria-label="${(this.status?this.i18n[this.status]:void 0)??this.i18n.information??`information`}"></nve-icon></slot><slot name="prefix" ?hidden="${!this.prefixItems.length}"></slot><slot></slot><slot name="actions" ?hidden="${!this.actionItems.length}"></slot>${this.closable?y`<nve-icon-button part="icon-button" exportparts="icon:icon-button-icon" @click="${()=>this.#e.close()}" container="flat" icon-name="cancel" size="sm" .ariaLabel="${this.i18n.close}"></nve-icon-button>`:``}</div><slot name="content" part="_content"></slot>`}connectedCallback(){super.connectedCallback(),D(this),T(this,Dx),this._internals.role=`alert`}};N([S({type:String,reflect:!0})],Ax.prototype,`status`,void 0),N([S({type:Boolean})],Ax.prototype,`closable`,void 0),N([S({type:Object})],Ax.prototype,`i18n`,void 0),N([L({slot:`prefix`,flatten:!0})],Ax.prototype,`prefixItems`,void 0),N([L({slot:`actions`,flatten:!0})],Ax.prototype,`actionItems`,void 0),Ax=N([A()],Ax);var jx=`:host{--gap: var(--nve-ref-space-xs);--font-size: var(--nve-ref-font-size-200);--padding: var(--nve-ref-size-200) var(--nve-ref-size-300);--border: 0;--border-radius: var(--nve-ref-border-radius-md);--icon-size: var(--nve-ref-size-600);--icon-color: var(--color);--color: var(--nve-sys-text-emphasis-color);--background: var(--state-color-background);width:100%}[internal-host]{background:var(--background);font-size:var(--font-size);gap:var(--gap);color:var(--color);padding:var(--padding);border:var(--border);border-radius:var(--border-radius);display:flex;flex-direction:column;--_alert-color: var(--color);--_icon-color: var(--icon-color)}::slotted(nve-alert){--color: var(--_alert-color);--icon-color: var(--_icon-color);--icon-size: var(--nve-ref-size-400);--min-height: var(--nve-ref-size-800);width:100%;height:100%}:host([container="full"]){--border-radius: 0}:host([prominence="emphasis"]:not([color])){--background: var(--nve-sys-support-color);--color: var(--nve-sys-text-white-color);--icon-color: var(--color)}:host([prominence="emphasis"][status="accent"]:not([color])){--background: var(--nve-sys-support-accent-color)}:host([prominence="emphasis"][status="success"]:not([color])){--background: var(--nve-sys-support-success-color)}:host([prominence="emphasis"][status="warning"]:not([color])){--background: var(--nve-sys-support-warning-color);--color: var(--nve-sys-text-black-color)}:host([prominence="emphasis"][status="danger"]:not([color])){--background: var(--nve-sys-support-danger-color)}:host([prominence="emphasis"]) ::slotted(nve-alert){--font-weight: var(--nve-ref-font-weight-regular)}:host(:not([prominence="emphasis"])) ::slotted(nve-alert){--icon-color: var(--status-color) !important}:host([status]){--state-color-base: var(--status-color)}:host([color]) ::slotted(nve-alert){--status-color: var(--state-color-base) !important}`,Mx=class extends x{static{this.styles=j([jx,lb,sb])}static{this.metadata={tag:`nve-alert-group`,version:`0.0.0`,children:[Ax.metadata.tag]}}render(){return y`<div internal-host><slot @slotchange="${()=>this.#e()}"></slot></div>`}connectedCallback(){super.connectedCallback(),D(this),this._internals.role=`group`}updated(e){super.updated(e),this.#e()}#e(){this.alerts.forEach(e=>e.status=this.status)}};N([S({type:String,reflect:!0})],Mx.prototype,`status`,void 0),N([S({type:String,reflect:!0})],Mx.prototype,`prominence`,void 0),N([S({type:String,reflect:!0})],Mx.prototype,`color`,void 0),N([S({type:String,reflect:!0})],Mx.prototype,`container`,void 0),N([L()],Mx.prototype,`alerts`,void 0),Mx=N([w()],Mx),v(Ax),v(Mx);var Nx=`:host{--background: var(--state-color);--color: var(--nve-sys-contrast-mute-color);--border-radius: var(--nve-ref-border-radius-full);--height: var(--nve-ref-size-800);--width: var(--nve-ref-size-800);--font-size: calc(var(--width) / 2.5);--font-weight: var(--nve-ref-font-weight-medium);--state-color-base: var(--nve-ref-color-gray-slate-1100);--border: 0;display:block;overflow:hidden}[internal-host]{--_icon-color: var(--color);background:var(--background);color:var(--color);border-radius:var(--border-radius);width:var(--width);height:var(--height);font-size:var(--font-size);font-weight:var(--font-weight);border:var(--border);display:flex;align-items:center;justify-content:center;overflow:hidden}::slotted(nve-icon){--color: var(--_icon-color)}::slotted(img){object-fit:cover;width:100%;height:100%}:host([size="sm"]){--height: var(--nve-ref-size-700);--width: var(--nve-ref-size-700)}:host([size="lg"]){--width: var(--nve-ref-size-1000);--height: var(--nve-ref-size-1000)}`,Px=class extends x{static{this.styles=j([Nx,sb])}static{this.metadata={tag:`nve-avatar`,version:`0.0.0`}}render(){return y`<div internal-host><slot></slot></div>`}};N([S({type:String,reflect:!0})],Px.prototype,`size`,void 0),N([S({type:String,reflect:!0})],Px.prototype,`color`,void 0);var Fx=`:host{display:block}[internal-host]{display:flex;overflow:visible}::slotted(nve-avatar){margin-inline-start:calc(-1 * var(--nve-ref-size-150));--border: 1px solid var(--nve-sys-contrast-mute-color)}::slotted(:first-child){margin-inline-start:0}`,Ix=class extends x{static{this.styles=j([Fx])}static{this.metadata={tag:`nve-avatar-group`,version:`0.0.0`}}render(){return y`<div internal-host><slot></slot></div>`}connectedCallback(){super.connectedCallback(),D(this),this._internals.role=`group`}};v(Px),v(Ix);var Lx=`:host{--background: var(--state-color-background);--color: var(--state-color);--gap: var(--nve-ref-space-xs);--font-size: var(--nve-ref-font-size-100);--icon-color: var(--color);--padding: 0 var(--nve-ref-size-200);--border: 0;--border-radius: var(--nve-ref-border-radius-sm);--font-weight: var(--nve-ref-font-weight-semibold);--text-transform: initial;--width: initial;--height: var(--nve-ref-size-600);display:inline-flex}[internal-host]{font-weight:var(--font-weight);font-size:var(--font-size);gap:var(--gap);background:var(--background);color:var(--color);padding:var(--padding);border:var(--border);border-radius:var(--border-radius);width:var(--width);height:var(--height);text-transform:var(--text-transform);display:inline-flex;line-height:1em;place-items:center}slot:not([name]){text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;line-height:1.15}:host([aria-label]) slot:not([name]){display:contents}::slotted([nve-text]){color:inherit!important}::slotted(a){margin:0!important;color:inherit!important;text-decoration:none!important;line-height:0!important}nve-icon,::slotted(nve-icon){--color: var(--icon-color);--width: var(--nve-ref-size-300);--height: var(--nve-ref-size-300)}:host([status]){--state-color-base: var(--status-color)}:host([container="flat"]){--background: var(--nve-sys-background-color);--border-radius: var(--nve-ref-border-radius-sm);--gap: var(--nve-ref-space-xs);--padding: 0;--text-transform: capitalize;--width: initial;--height: initial}`,Rx=class extends x{static{this.styles=j([Lx,cb,lb,sb])}static{this.metadata={tag:`nve-badge`,version:`0.0.0`}}static{this.elementDefinitions={[P.metadata.tag]:P}}get#e(){return this.status&&mb[this.status]===`dot`?`sm`:`md`}render(){return y`<div internal-host><slot name="prefix-icon">${this.status?y`<nve-icon part="_icon" .name="${mb[this.status]??``}" .size="${this.#e}" aria-hidden="true"></nve-icon>`:b}</slot><slot @slotchange="${this.#t}"></slot><slot name="suffix-icon"></slot></div>`}connectedCallback(){super.connectedCallback(),D(this),this._internals.role=`status`}updated(e){super.updated(e),this.#n()}#t(){this.#n(),this.#r()}#n(){this._internals.ariaLabel=this.textContent}#r(){let e=this.shadowRoot.querySelector(`slot:not([name])`).assignedElements().find(e=>e.matches(`nve-icon`)&&!e.slot);e&&(e.slot=`prefix-icon`)}};N([S({type:String,reflect:!0})],Rx.prototype,`status`,void 0),N([S({type:String,reflect:!0})],Rx.prototype,`color`,void 0),N([S({type:String,reflect:!0})],Rx.prototype,`container`,void 0),N([S({type:String,reflect:!0})],Rx.prototype,`prominence`,void 0),Rx=N([O(),A()],Rx),v(Rx),g(`chevron`,()=>ue);var zx=`:host{--gap: var(--nve-ref-space-xxs);--height: var(--nve-ref-size-500);--font-size: var(--nve-ref-font-size-50);--color: var(--nve-sys-text-muted-color);--font-weight: var(--nve-ref-font-weight-medium)}[internal-host]{--_font-size: var(--font-size);--_font-weight: var(--font-weight);--_color: var(--color);--_height: var(--height)}ol,li{list-style-type:none;padding:0;display:flex;margin:0;min-height:0;align-items:flex-start;justify-content:stretch;gap:var(--gap)}li{display:flex;align-items:center;justify-content:center;text-wrap:nowrap;height:var(--_height)}::slotted(nve-button){--border-radius: calc(var(--nve-ref-border-radius-xs) / 2);--font-size: var(--_font-size);--color: var(--_color);--padding: 0 var(--nve-ref-size-100);--height: var(--_height);--font-weight: var(--_font-weight);--text-decoration: none !important;--_border-bottom-offset: -.5;--_border-bottom-width: 85%}::slotted(nve-icon-button){--border-radius: calc(var(--nve-ref-border-radius-xs) / 2);--icon-width: var(--nve-ref-size-300);--icon-height: var(--nve-ref-size-300);--height: var(--_height);--width: var(--_height);--font-size: var(--_font-size);--font-weight: var(--_font-weight);--color: var(--_color)}nve-icon[separator]{--height: var(--nve-ref-size-200);--width: var(--nve-ref-size-200);--color: var(--_color)}::slotted(span){font-size:var(--_font-size);color:var(--_color);display:block}::slotted(*:last-child){color:var(--nve-sys-text-emphasis-color);font-weight:var(--nve-ref-font-weight-semibold);--font-weight: var(--nve-ref-font-weight-semibold);--color: var(--nve-sys-text-emphasis-color)}[hidden-slot]{gap:var(--nve-ref-space-sm);display:flex;align-items:center}`,Bx=class extends x{constructor(...e){super(...e),this.breadcrumbItems=[]}get keynavListConfig(){return{items:Array.from(this.shadowRoot.querySelectorAll(`slot`)).flatMap(e=>e.assignedElements()).filter(e=>Iv(e))}}static{this.styles=j([zx])}static{this.metadata={tag:`nve-breadcrumb`,version:`0.0.0`}}static{this.elementDefinitions={[P.metadata.tag]:P}}render(){return y`<ol internal-host>${this.breadcrumbItems.map((e,t)=>y`<li><slot name="${e.slot}" @slotchange="${this.#e}"></slot>${t<this.breadcrumbItems.length-1?y`<nve-icon part="icon" separator aria-hidden="true" name="chevron" direction="right" size="sm"></nve-icon>`:b}</li>`)}</ol><slot ?hidden-slot="${!this.breadcrumbItems.length}" @slotchange="${this.#t}"></slot>`}connectedCallback(){super.connectedCallback(),D(this),this._internals.role=`navigation`}#e(e){e.target.assignedElements().length||this.#n()}#t(e){if(e.target&&e.target.assignedElements().length){this.#n();let e=this.shadowRoot.querySelector(`slot:not([name])`).assignedElements();e.filter(e=>e.matches(`nve-button, nve-icon-button, span, a`)).forEach(e=>e.slot=Gv()),e.filter(e=>e.matches(`nve-button, nve-icon-button`)).forEach(e=>e.container=`inline`),this.breadcrumbItems=e.length?e:this.breadcrumbItems}}#n(){Array.from(this.shadowRoot.querySelectorAll(`slot`)).flatMap(e=>e.assignedElements()).forEach(e=>e.slot=``)}};N([C()],Bx.prototype,`breadcrumbItems`,void 0),Bx=N([O(),A(),wy()],Bx),v(Bx),v(hx);var Vx=`:host{--nve-sys-interaction-state-base: var(--background, var(--nve-sys-layer-canvas-background));--background: var(--nve-sys-interaction-background);--border-radius: var(--nve-ref-border-radius-sm);--padding: var(--nve-ref-space-xxs);--gap: var(--nve-ref-space-xxxs);--width: fit-content;--height: fit-content;width:var(--width);height:var(--height)}[internal-host]{background:var(--background);border-radius:var(--border-radius);padding:var(--padding);gap:var(--gap);overflow:hidden;display:flex;height:100%;align-items:center}::slotted(nve-button),::slotted(nve-icon-button){--height: var(--nve-sys-interaction-field-height);--border-radius: var(--nve-ref-border-radius-sm)}::slotted(nve-icon-button){--width: var(--nve-sys-interaction-field-height)}::slotted(nve-divider){margin-block-start:calc(-1 * var(--padding));height:calc(100% + var(--padding));--color: color-mix(in oklab, var(--nve-sys-interaction-background) 100%, var(--nve-sys-interaction-color) 50%)}:host([container="flat"]){--background: transparent}:host([container="rounded"]){--border-radius: var(--nve-ref-border-radius-full)}:host([container="rounded"]:not(:state(split))) ::slotted(nve-button),:host([container="rounded"]:not(:state(split))) ::slotted(nve-icon-button){--border-radius: var(--nve-ref-border-radius-full)}:host([orientation="vertical"]){--gap: var(--nve-ref-space-xs)}:host([orientation="vertical"]) [internal-host]{flex-direction:column}:host([interaction="emphasis"]) ::slotted(nve-divider){--color: color-mix( in oklab, var(--nve-sys-interaction-emphasis-background) 100%, var(--nve-sys-interaction-emphasis-color) 50% )}:host([interaction="destructive"]) ::slotted(nve-divider){--color: color-mix( in oklab, var(--nve-sys-interaction-destructive-background) 100%, var(--nve-sys-interaction-destructive-color) 50% )}:host(:state(split)){--padding: 0;--gap: 0}:host(:state(split)) ::slotted(nve-button){--border-radius: var(--nve-ref-border-radius-none)}:host(:state(split)) ::slotted(nve-icon-button){--border-radius: var(--nve-ref-border-radius-none)}`,Hx=`@supports (position-anchor: --selected){nve-button-group{&:has(>:state(pressed)):not(:has(>:state(pressed)~:state(pressed)),:has(>[container]),:has(>[interaction])){--indicator-background: var(--nve-sys-support-accent-color);--indicator-border-radius: var(--nve-ref-border-radius-sm);&:after{background:var(--indicator-background);border-radius:var(--indicator-border-radius);position:fixed;display:block;content:"";width:anchor-size(width);height:anchor-size(height);transition:left var(--nve-ref-animation-duration-150) var(--nve-ref-animation-easing-100),top var(--nve-ref-animation-duration-150) var(--nve-ref-animation-easing-100);position-anchor:--selected;top:anchor(top);left:anchor(left);z-index:0}&[orientation=vertical]:after{transition:top var(--nve-ref-animation-duration-150) var(--nve-ref-animation-easing-100),left var(--nve-ref-animation-duration-150) var(--nve-ref-animation-easing-100)}&[container=rounded]:after{--indicator-border-radius: var(--nve-ref-border-radius-full)}>nve-button,>nve-icon-button{&:state(pressed){--background: transparent;anchor-name:--selected;z-index:1}}}}}`,Ux=class extends x{constructor(...e){super(...e),this.orientation=`horizontal`,this.#t=e=>this.#r(e.target)}get keynavListConfig(){return{items:this.#e,layout:this.orientation}}static{this.styles=j([Vx])}static{this.metadata={tag:`nve-button-group`,version:`0.0.0`,children:[`nve-button`,`nve-icon-button`,`nve-divider`,`nve-media-seek-button`,`nve-media-pause-button`]}}get#e(){return[...this.iconButtons,...this.buttons]}render(){return y`<div internal-host><slot @slotchange="${this.#n}"></slot></div>`}connectedCallback(){super.connectedCallback(),D(this),T(this,Hx),this._internals.role=`group`,this.addEventListener(`click`,this.#t)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(`click`,this.#t)}#t;updated(e){super.updated(e),this.#n()}#n(){this.container===`flat`&&this.#e.forEach(e=>e.container=`flat`),this.interaction&&this.#e.forEach(e=>e.interaction=this.interaction),this.dividers.length?this._internals.states.add(`split`):this._internals.states.delete(`split`)}#r(e){e.matches?.(`nve-button, nve-icon-button`)&&(this.behaviorSelect===`single`?(this.#e.forEach(e=>e.pressed=!1),e.pressed=!0):this.behaviorSelect===`multi`&&(e.pressed=!e.pressed))}};N([S({type:String,attribute:`behavior-select`})],Ux.prototype,`behaviorSelect`,void 0),N([S({type:String,reflect:!0})],Ux.prototype,`container`,void 0),N([S({type:String,reflect:!0})],Ux.prototype,`orientation`,void 0),N([S({type:String,reflect:!0})],Ux.prototype,`interaction`,void 0),N([S({type:String,reflect:!0})],Ux.prototype,`size`,void 0),N([L({selector:`nve-divider`})],Ux.prototype,`dividers`,void 0),N([L({selector:`nve-icon-button`})],Ux.prototype,`iconButtons`,void 0),N([L({selector:`nve-button`})],Ux.prototype,`buttons`,void 0),Ux=N([w(),wy()],Ux),v(Ux);var Wx=`:host{--nve-sys-interaction-background: var(--nve-sys-interaction-background-200);--nve-sys-interaction-field-background: var(--nve-sys-interaction-background-200);--background: var(--nve-sys-layer-container-background);--color: var(--nve-sys-layer-canvas-color);--border-radius: var(--nve-ref-border-radius-lg);--box-shadow: var(--nve-ref-shadow-100);--border-bottom: none;--border: 0;border-radius:var(--border-radius);box-shadow:var(--box-shadow);border-bottom:var(--border-bottom);background:var(--background);border:var(--border);color:var(--color);display:flex;flex-direction:column;align-items:stretch;justify-content:start;overflow:hidden;contain:none;width:stretch}[internal-host]{display:flex;flex-direction:column;align-items:stretch;justify-content:start;height:100%}:host([container="full"]){--border-bottom: var(--nve-ref-border-width-sm) solid var(--nve-ref-border-color-muted);--border-radius: 0}:host([container="flat"]){--nve-sys-interaction-background: unset;--nve-sys-interaction-field-background: unset;--background: transparent;--border-bottom: none;--border-radius: 0;--box-shadow: none}slot:not([name]){scrollbar-color:var(--nve-sys-scrollbar-thumb-color) var(--nve-sys-scrollbar-track-color);scrollbar-width:var(--nve-sys-scrollbar-width);display:block;width:100%;height:100%;overflow:auto}`,Gx=`:host{--padding: var(--nve-ref-size-400);--border-bottom: var(--nve-ref-border-width-sm) solid var(--nve-ref-border-color-muted);--line-height: 1em;--gap: var(--nve-ref-space-xs);contain:none}[internal-host]{padding:var(--padding);border-bottom:var(--border-bottom);color:var(--color);display:flex;flex-direction:row;justify-content:space-between;align-items:center}.content{display:flex;flex-direction:column;gap:var(--gap);width:100%}::slotted(nve-tabs){margin-block-end:calc(-1 * var(--padding))}`,Kx=`:host{--padding: var(--nve-ref-size-400);padding:var(--padding);color:var(--color);flex-grow:1;contain:initial}`,qx=`:host{--padding: var(--nve-ref-size-400);--border-top: var(--nve-ref-border-width-sm) solid var(--nve-ref-border-color-muted);contain:none}footer[internal-host]{padding:var(--padding);border-top:var(--border-top);color:var(--color);display:flex;justify-content:space-between;align-items:center}`,Jx=class extends x{static{this.styles=j([Wx])}static{this.metadata={tag:`nve-card`,version:`0.0.0`}}render(){return y`<div internal-host><slot name="header"></slot><slot></slot><slot name="footer"></slot></div>`}};N([S({type:String,reflect:!0})],Jx.prototype,`container`,void 0),Jx=N([w()],Jx);var Yx=class extends x{constructor(...e){super(...e),this.slot=`header`}static{this.styles=j([Gx])}static{this.metadata={tag:`nve-card-header`,version:`0.0.0`,parents:[`nve-card`]}}render(){return y`<header internal-host><div class="content"><slot></slot></div></header>`}};N([k()],Yx.prototype,`slot`,void 0);var Xx=class extends x{static{this.styles=j([Kx])}static{this.metadata={tag:`nve-card-content`,version:`0.0.0`,parents:[`nve-card`]}}render(){return y`<slot></slot>`}},Zx=class extends x{constructor(...e){super(...e),this.slot=`footer`}static{this.styles=j([qx])}static{this.metadata={tag:`nve-card-footer`,version:`0.0.0`,parents:[`nve-card`]}}render(){return y`<footer internal-host><slot></slot></footer>`}};N([k()],Zx.prototype,`slot`,void 0),v(Jx),v(Yx),v(Xx),v(Zx);var Qx=`:host{--background: var(--nve-sys-layer-container-background);--color: var(--nve-sys-text-color);--padding: var(--nve-ref-size-300);--gap: var(--nve-ref-space-xs);--border-radius: var(--nve-ref-border-radius-md);--font-size: var(--nve-ref-font-size-200);--line-height: var(--nve-ref-font-line-height-tight);--top-offset: 0;--display: flex;--overflow: hidden;contain:content}@media(width<=350px){[internal-host]{flex-direction:column}}[internal-host]{gap:var(--gap);font-size:var(--font-size);display:var(--display);overflow:var(--overflow)}slot:not([name]){padding:var(--padding);background:var(--background);color:var(--color);border-radius:var(--border-radius);font-size:var(--font-size);line-height:var(--line-height);gap:var(--gap);display:flex;flex-direction:column;overflow:hidden}::slotted(nve-avatar){flex-shrink:0}:host([container="flat"]){--background: transparent;--padding: 0 var(--nve-ref-size-200)}:host([color]){--background: var(--state-color);--color: var(--nve-sys-contrast-mute-color)}:host([arrow-position="top-start"]) slot:not([name]){border-top-left-radius:0}:host([arrow-position="top-end"]) slot:not([name]){border-top-right-radius:0}:host([arrow-position="bottom-start"]) slot:not([name]){border-bottom-left-radius:0}:host([arrow-position="bottom-end"]) slot:not([name]){border-bottom-right-radius:0}`,$x=`nve-chat-message:has([slot=prefix])::part(_message),nve-chat-message:has([slot=suffix])::part(_message){margin-block-start:var(--top-offset)}`,eS=class extends x{static{this.styles=j([Qx,sb])}static{this.metadata={tag:`nve-chat-message`,version:`0.0.0`}}render(){return y`<div internal-host><slot name="prefix"></slot><slot part="_message"></slot><slot name="suffix"></slot></div>`}connectedCallback(){super.connectedCallback(),T(this,$x)}};N([S({type:String,reflect:!0})],eS.prototype,`container`,void 0),N([S({type:String,reflect:!0})],eS.prototype,`color`,void 0),N([S({type:String,reflect:!0,attribute:`arrow-position`})],eS.prototype,`arrowPosition`,void 0),v(eS);var tS=`:host{--color: var(--nve-sys-text-muted-color);--font-weight: var(--nve-ref-font-weight-regular);--font-size: var(--nve-ref-font-size-100);--gap: var(--nve-ref-space-xs);--_icon-color: var(--color)}[internal-host]{--icon-color: var(--color);gap:var(--gap);color:var(--color);font-weight:var(--font-weight);font-size:var(--font-size);display:flex}nve-icon{--color: var(--_icon-color)}:host([status="success"]){--color: var(--nve-sys-support-success-emphasis-color)}:host([status="warning"]){--color: var(--nve-sys-support-warning-emphasis-color)}:host([status="error"]),:host([error]){--color: var(--nve-sys-support-danger-emphasis-color)}:host([status="muted"]){--color: var(--nve-sys-text-muted-color)}`,nS={undefined:`information-circle`,disabled:`information-circle`,warning:`exclamation-triangle`,success:`checkmark-circle`,error:`exclamation-circle`},rS=class extends x{constructor(...e){super(...e),this.error=null,this.slot=`messages`}static{this.styles=j([tS])}static{this.metadata={tag:`nve-control-message`,version:`0.0.0`}}static{this.elementDefinitions={[P.metadata.tag]:P}}render(){return y`<div internal-host><slot name="icon"><nve-icon part="icon" name="${this.error?nS.error:nS[this.status]}"></nve-icon></slot><slot></slot></div>`}};N([S({type:String,reflect:!0})],rS.prototype,`status`,void 0),N([S({type:String,reflect:!0})],rS.prototype,`error`,void 0),N([k()],rS.prototype,`slot`,void 0),rS=N([A()],rS);var iS=`input, select, selectmenu, textarea, [nve-control]`;function aS(e,t){let n=[];if(!e.input.form?.noValidate&&!e.input.formNoValidate&&!e.input.hasAttribute(`formnovalidate`)){pS(t);let r=()=>{e.input.validity?.valid&&(e._internals.states.delete(`invalid`),e._internals.states.add(`valid`),e.status=null),hS(e,t)},i=()=>{e.status=null,e._internals.states.delete(`valid`),e._internals.states.delete(`invalid`),pS(t)};n.push(dS(e.input,`blur`,()=>{e.input.checkValidity(),r()}),dS(e.input,`input`,()=>{r()}),dS(e.input,`invalid`,()=>{t.find(e=>e.error)&&(pS(t),mS(e,t)),e.status=`error`,e._internals.states.delete(`valid`),e._internals.states.add(`invalid`)}),dS(e,`reset`,i)),e.input.form&&n.push(dS(e.input.form,`reset`,i))}return n.push(dS(e.shadowRoot,`slotchange`,()=>{let t=Array.from(e.querySelectorAll(rS.metadata.tag));e._internals.states.delete(`valid`),e._internals.states.delete(`invalid`),t.find(e=>!e.hidden&&(e.status===`error`||e.error))?e._internals.states.add(`invalid`):e._internals.states.add(`valid`)})),n}function oS(e){let t=[],n=e._internals.states;return e.input.checked?n.add(`checked`):n.delete(`checked`),e.input.indeterminate?n.add(`indeterminate`):n.delete(`indeterminate`),t.push(...sS(e)),t.push(Xv(e.input,`readonly`,e=>e===``||e?n.add(`readonly`):n.delete(`readonly`)),Xv(e.input,`checked`,()=>e.input.checked?n.add(`checked`):n.delete(`checked`)),Xv(e.input,`disabled`,e=>e===``||e?n.add(`disabled`):n.delete(`disabled`)),Xv(e.input,`indeterminate`,()=>e.input.indeterminate?n.add(`indeterminate`):n.delete(`indeterminate`))),t}function sS(e){let t=[],n=e._internals.states;return t.push(dS(e.input,`focus`,()=>e._internals.states.add(`focus`)),dS(e.input,`input`,()=>e._internals.states.add(`dirty`)),dS(e.input,`blur`,()=>{e._internals.states.add(`touched`),e._internals.states.delete(`focus`)}),dS(e.input.getRootNode(),`change`,t=>{t.target.name===e.input?.name&&(e.input.checked?n.add(`checked`):n.delete(`checked`))})),e.input.form&&t.push(dS(e.input.form,`reset`,()=>{e._internals.states.delete(`touched`),e._internals.states.delete(`dirty`),e._internals.states.delete(`error`),e._internals.states.delete(`success`),e.requestUpdate()})),t}function cS(e){return lS(e),Kv(e,`disabled`,()=>lS(e))}function lS(e){Array.from(e.inputs).find(e=>e.disabled)?e._internals.states.add(`disabled`):e._internals.states.delete(`disabled`)}function uS(e,t){fS(e,t.find(e=>!e.hidden));let n=[];return n.push(qv(e,[`hidden`,`status`],t=>{let n=t.target;fy(n,rS)&&fS(e,n)})),n.push(dS(e.shadowRoot,`slotchange`,()=>{let t=Array.from(e.querySelectorAll(rS.metadata.tag)).find(e=>e.status&&!e.hidden);e._internals.states.delete(`error`),e._internals.states.delete(`success`),t&&e._internals.states.add(t.status)})),n}function dS(e,t,n){return e.addEventListener(t,n),{disconnect:()=>e.removeEventListener(t,n)}}function fS(e,t){e._internals.states.delete(`error`),e._internals.states.delete(`success`),t?.status?.length&&!t?.hidden&&e._internals.states.add(t.status)}function pS(e){e.filter(e=>e.hasAttribute(`error`)).forEach(e=>e.setAttribute(`hidden`,``))}function mS(e,t){t.find(t=>t.error&&e.input.validity[t.error])?.removeAttribute(`hidden`)}function hS(e,t){t.find(e=>e.error)&&e.input.validity.valid&&t.filter(t=>t.error&&!e.input.validity[t.error]).forEach(e=>e.setAttribute(`hidden`,``))}var gS={vertical:300,verticalInline:400,horizontal:500,horizontalInline:600};function _S(e){let t=e.layout,n=new ResizeObserver(n=>{e.fitContent||(e.layout=vS(n[0].contentRect.width,t))});return n.observe(e),n}function vS(e,t){let n=t;e<gS.vertical?n=`vertical`:e<gS.verticalInline?n=`vertical-inline`:e<gS.horizontal?n=`horizontal`:e<gS.horizontalInline&&(n=`horizontal-inline`);let r=[`vertical`,`vertical-inline`,`horizontal`,`horizontal-inline`];return r.indexOf(t)<r.indexOf(n)&&(n=t),n}var yS=`[nve-control]:not([nofocus]):has(*:focus-visible)::part(_input){outline:Highlight solid 2px!important;outline:5px auto -webkit-focus-ring-color!important}[nve-control] input::placeholder,[nve-control] textarea::placeholder{color:var(--nve-sys-text-placeholder-color)!important}[nve-control] input::-webkit-search-cancel-button,[nve-control] input::-webkit-calendar-picker-indicator{opacity:0!important;display:none!important}[nve-control]:has([nve-control]){--control-type: custom}[nve-control]:not(:has(label))::part(_label){display:none!important}[nve-control]:not(:has(nve-control-message:not([hidden])))::part(_messages){display:none!important}[nve-control=""]:has(label)::part(_internal-host){grid-template-areas:"label label label" "input input input"}[nve-control=""]:has(nve-control-message:not([hidden]))::part(_internal-host){grid-template-areas:"input input input" "messages messages messages"}[nve-control=""]:has(label):has(nve-control-message:not([hidden]))::part(_internal-host){grid-template-areas:"label label label" "input input input" "messages messages messages"}[nve-control=""][layout=horizontal]:has(nve-control-message:not([hidden]))::part(_internal-host),[nve-control=""][layout=horizontal-inline]:has(nve-control-message:not([hidden]))::part(_internal-host){grid-template-areas:"label input input" ". messages messages"}[nve-control=""][layout=horizontal]:not(:has(nve-control-message:not([hidden])))::part(_internal-host),[nve-control=""][layout=horizontal-inline]:not(:has(nve-control-message:not([hidden])))::part(_internal-host){grid-template-areas:"label input input"}[nve-control=inline]:has(label)::part(_internal-host){grid-template-areas:"input label label"}[nve-control=inline]:has(nve-control-message:not([hidden]))::part(_internal-host){grid-template-areas:"input input input" "messages messages messages"}[nve-control=inline]:has(label):has(nve-control-message:not([hidden]))::part(_internal-host){grid-template-areas:"input label label" "messages messages messages"}[nve-control=inline]:not(:has(nve-control-message:not([hidden])))::part(_internal-host){grid-template-areas:"input label label"}[nve-control=inline]:not(:has(label),:has(nve-control-message:not([hidden])))::part(_internal-host){grid-template-areas:"input input input"}nve-control:has(nve-monaco-input),nve-control:has(nve-monaco-diff-input){contain:none}[prominence=muted]>[nve-control]:state(checked),[prominence=muted][nve-control]:state(checked){--filter: grayscale(90%)}`,bS=`:host{--cursor: pointer;--accent-color: var(--nve-sys-accent-secondary-background);--color: var(--nve-sys-interaction-field-color);--label-color: var(--nve-sys-interaction-field-color);--label-text-transform: none;--label-font-weight: var(--nve-ref-font-weight-medium);--label-font-size: var(--nve-ref-font-size-100);--control-width: 100%;--control-height: var(--nve-sys-interaction-field-height);--_label-width: var(--label-width, 180px);--nve-sys-interaction-state-base: var(--background, var(--nve-sys-layer-canvas-background));--opacity: 1;--filter: none;contain:content}::slotted(*){color-scheme:var(--nve-sys-color-scheme);font-family:inherit}::slotted(label){font-weight:var(--label-font-weight)!important;font-size:var(--label-font-size)!important;color:var(--label-color)!important;cursor:var(--cursor)!important;text-transform:var(--label-text-transform)!important;display:inline-block!important;line-height:1em!important;align-self:center!important}:host(:state(disabled)),:host(:state(disabled)) ::slotted(nve-control-message:not([status])){--cursor: not-allowed}:host(:state(disabled)){--opacity: var(--nve-ref-opacity-500)}:host(:state(invalid)) ::slotted(nve-control-message:not([error],[status])){display:none}:host([fit-content]){--control-width: fit-content;--label-width: fit-content;--width: fit-content}:host([fit-text]){--max-width: fit-content;--width: fit-content;::slotted(input),::slotted(select){field-sizing:content}}:host([nve-control]) ::slotted(input:focus),:host([nve-control]) ::slotted(select:focus),:host([nve-control]) ::slotted(textarea:focus),:host([nve-control]:focus-within) [internal-host]:has(nve-icon-button:focus) [input],[internal-host]:has(nve-icon-button){outline:0!important}@container style(--control-type: custom){[input]{outline:0!important}}::slotted(nve-button[nve-control]){width:100%}[input]{cursor:var(--cursor);min-height:var(--control-height);opacity:var(--opacity);filter:var(--filter);grid-area:input;display:flex;line-height:1}:host([nve-control="inline"]){[internal-host]{min-height:var(--control-height)}[input]{min-height:min-content}}slot{line-height:1;width:100%}slot[name=label]{grid-area:label;display:inline-flex;align-self:center}slot[name=messages]{grid-area:messages;display:inline-flex}[name=messages]:not(:has-slotted),[name=label]:not(:has-slotted){display:none!important}[internal-host]{display:grid;width:100%;gap:var(--nve-ref-space-xs);grid-template-columns:1fr 1fr 1fr;grid-template-rows:auto;grid-template-areas:"input input input"}:host([nve-control="inline"]) [internal-host]{align-items:center;grid-template-columns:auto 1fr 1fr;slot[name=label],slot[name=messages]{align-items:center}::slotted(label){font-weight:var(--nve-ref-font-weight-regular)!important;color:var(--color)!important;width:100%}slot[name=label]{line-height:1;width:100%}}:host([layout="horizontal"]) [internal-host],:host([layout="horizontal-inline"]) [internal-host]{grid-template-columns:var(--_label-width) 1fr minmax(0,var(--_label-width))}[internal-host]{&:has([name=label]:has-slotted){grid-template-areas:"label label label" "input input input"}&:has([name=messages]:has-slotted){grid-template-areas:"input input input" "messages messages messages"}&:has([name=label]:has-slotted):has([name=messages]:has-slotted){grid-template-areas:"label label label" "input input input" "messages messages messages"}}:host([layout="horizontal"]),:host([layout="horizontal-inline"]){[internal-host]{&:has([name=messages]:has-slotted){grid-template-areas:"label input input" ". messages messages"}&:not(:has([name=messages]:has-slotted)){grid-template-areas:"label input input"}}}:host([nve-control="inline"]){--control-height: auto;width:fit-content;[internal-host]{grid-template-areas:"input input input";&:has([name=label]:has-slotted){grid-template-areas:"input label label"}&:has([name=messages]:has-slotted){grid-template-areas:"input input input" "messages messages messages"}&:has([name=label]:has-slotted):has([name=messages]:has-slotted){grid-template-areas:"input label label" "messages messages messages"}}}`,R=class extends x{constructor(...e){super(...e),this.fitText=!1,this.fitContent=!1,this.#e=new M(this,this.i18nDefaults),this.i18n=this.#e.i18n,this.nveControl=``,this.#i=[],this._associateDatalist=!0,this.#a=()=>{this.#f(),this.input&&this.#i.length===0&&this.#l()},this.#u=()=>{this.#f(),this.#p()}}get i18nDefaults(){return{}}#e;get#t(){return this.shadowRoot?.querySelector(`slot[name="label"]`)?.assignedElements({flatten:!0})?.[0]}get#n(){return this.shadowRoot?.querySelector(`slot[name="messages"]`)?.assignedElements({flatten:!0})??[]}#r;get input(){if(!this.#r){let e=this.querySelector(`slot`)?.assignedElements()?.find(e=>e.matches(`input, select, selectmenu, textarea, [nve-control]`))??Array.from(this.shadowRoot.querySelector(`slot`)?.assignedElements({flatten:!0})??[]).find(e=>e.matches(`input, select, selectmenu, textarea, [nve-control]`));this.#r=e||this.querySelector(iS)}return this.#r}get prefixContent(){return b}get suffixContent(){return b}#i;static{this.styles=j([bS])}static{this.metadata={tag:`nve-control`,version:`0.0.0`}}render(){return this.nveControl===`inline`?y`<div internal-host part="_internal-host"><div input part="_input"><slot interaction-state></slot></div><slot name="label" part="_label"></slot><slot name="messages" part="_messages"></slot></div>`:y`<div internal-host part="_internal-host"><slot name="label" part="_label"></slot><div input part="_input">${this.prefixContent}<slot></slot>${this.suffixContent}</div><slot name="messages" part="_messages"></slot></div>`}connectedCallback(){super.connectedCallback(),D(this),T(this,yS),this.shadowRoot.addEventListener(`slotchange`,this.#a)}disconnectedCallback(){super.disconnectedCallback(),this.shadowRoot.removeEventListener(`slotchange`,this.#a),this.shadowRoot.removeEventListener(`slotchange`,this.#u),this.#i.forEach(e=>e.disconnect()),this.#i.length=0}#a;reset(){this.#o(this.input),this.requestUpdate(),this.dispatchEvent(new CustomEvent(`reset`,{bubbles:!0,composed:!0}))}#o(e){e instanceof HTMLSelectElement?this.#s(e):this.#c(e)?(e.checked=e.defaultChecked,e.indeterminate=!1):e.value=e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement?e.defaultValue:e.getAttribute(`value`)??``}#s(e){let t=Array.from(e.options).some(e=>e.defaultSelected);Array.from(e.options).forEach(e=>e.selected=e.defaultSelected),!e.multiple&&!t&&(e.selectedIndex=0)}#c(e){return e instanceof HTMLInputElement&&(e.type===`checkbox`||e.type===`radio`)}#l(){this.#i.push(...aS(this,this.#n),...oS(this),...uS(this,this.#n),_S(this),qv(this,[`hidden`,`status`],()=>this.#f())),this.#d(),this.#p(),this.shadowRoot.addEventListener(`slotchange`,this.#u)}#u;#d(){this.input.showPicker||(this.input.showPicker=()=>this.input.focus())}#f(){this.input&&(this.toggleAttribute(`multiple`,this.input?.multiple),this.input?.hasAttribute(`size`)?this.setAttribute(`size`,``):this.removeAttribute(`size`))}#p(){this.#m(),Ay(this.#t,this.input),My(Array.from(this.#n),this.input),this._associateDatalist&&Ny(this.querySelector(`datalist`),this.input)}#m(){let e=this.querySelector(`label`)||this.shadowRoot.querySelector(`slot`).assignedNodes({flatten:!0}).find(e=>e.tagName===`LABEL`);e&&(e.slot=`label`)}showPicker(){try{this.input.showPicker()}catch{}}};N([S({type:String})],R.prototype,`status`,void 0),N([S({type:String,reflect:!0})],R.prototype,`layout`,void 0),N([S({type:Boolean,reflect:!0,attribute:`fit-text`})],R.prototype,`fitText`,void 0),N([S({type:Boolean,reflect:!0,attribute:`fit-content`})],R.prototype,`fitContent`,void 0),N([S({type:Object})],R.prototype,`i18n`,void 0),N([S({type:String,reflect:!0})],R.prototype,`prominence`,void 0),N([k({attribute:`nve-control`})],R.prototype,`nveControl`,void 0),R=N([O()],R);var xS=`:host{--color: var(--nve-sys-interaction-field-color);--opacity: 1;--label-color: var(--nve-sys-interaction-field-color);--label-text-transform: none;--label-font-weight: var(--nve-ref-font-weight-medium);--label-font-size: var(--nve-ref-font-size-100);--_label-width: var(--label-width, 180px)}[internal-host]{color:var(--color);opacity:var(--opacity)}::slotted(label){font-weight:var(--label-font-weight)!important;font-size:var(--label-font-size)!important;color:var(--label-color)!important;cursor:var(--cursor)!important;text-transform:var(--label-text-transform)!important}:host([layout*="horizontal-inline"]) ::slotted([nve-control]),:host([layout*="vertical-inline"]) ::slotted([nve-control]){--control-height: var(--nve-sys-interaction-field-height)}slot[name=label]{grid-area:label;display:block;align-self:center}slot[name=messages]{grid-area:messages;display:block}.input-slot{grid-area:input;display:flex;flex-flow:column wrap;gap:var(--nve-ref-space-sm) var(--nve-ref-space-md)}:host([layout*="-inline"]) .input-slot{flex-direction:row}[name=messages]:not(:has-slotted),[name=label]:not(:has-slotted){display:none!important}.no-messages{& slot[name=messages]{display:none!important}}.no-label{& slot[name=label]{display:none!important}}[internal-host]{display:grid;gap:var(--nve-ref-space-xs);align-items:start;grid-template-columns:1fr 1fr 1fr;grid-template-rows:auto;grid-template-areas:"label label label" "input input input" "messages messages messages";&.no-messages{grid-template-areas:"label label label" "input input input"}&.no-label{& slot[name=messages]{grid-template-areas:"input input input" "messages messages messages"}}&.no-label.no-messages{grid-template-areas:"input input input"}}:host([layout="vertical-inline"]) [internal-host]{grid-template-areas:"label label label" "input input input" "messages messages messages"}:host([layout="vertical-inline"]) [internal-host].no-messages{grid-template-areas:"label label label" "input input input"}:host([layout="horizontal"]) [internal-host]{grid-template-columns:var(--_label-width) minmax(auto,max-content) auto;grid-template-areas:"label input input" ". messages messages"}:host([layout="horizontal"]) [internal-host].no-messages{grid-template-areas:"label input input"}:host([layout="horizontal-inline"]) [internal-host]{grid-template-columns:var(--_label-width) minmax(auto,max-content) auto;grid-template-areas:"label input input" ". messages messages"}:host([layout="horizontal-inline"]) [internal-host].no-messages{grid-template-areas:"label input input"}:host([layout="horizontal"]) slot[name=label]{align-self:start}:host([layout="horizontal"]) ::slotted(label){align-self:start!important}`,SS=class extends x{get label(){return this.querySelector?.(`label`)}get inputs(){return this.querySelectorAll?Array.from(this.querySelectorAll(iS)):[]}get#e(){return this.querySelectorAll?Array.from(this.querySelectorAll(`nve-control-message`)):[]}#t=[];static{this.styles=j([xS])}static{this.metadata={tag:`nve-control-group`,version:`0.0.0`}}render(){return y`<div internal-host class="${this.#e.length?``:`no-messages`} ${this.label?``:`no-label`}"><slot name="label"></slot><slot class="input-slot"></slot><slot name="messages"></slot></div>`}connectedCallback(){super.connectedCallback(),D(this),this._internals.role=`group`}firstUpdated(e){super.firstUpdated(e),this.#t=[cS(this),_S(this),...uS(this,this.#e)],this.#n(),this.shadowRoot.addEventListener(`slotchange`,()=>this.#n())}disconnectedCallback(){super.disconnectedCallback(),this.#t.forEach(e=>e.disconnect())}#n(){this.#r(),jy(this.label,this),My(Array.from(this.querySelectorAll(`nve-control-message`)),this),Py(Array.from(this.inputs))}#r(){this.label&&(this.label.slot=`label`)}};N([S({type:String,reflect:!0})],SS.prototype,`layout`,void 0),N([S({type:String,reflect:!0})],SS.prototype,`prominence`,void 0),v(R),v(SS),v(rS);var CS=`:host{--cursor: pointer;--width: var(--nve-ref-size-400);--height: var(--nve-ref-size-400);--border-width: var(--nve-ref-border-width-md);--border-radius: var(--nve-ref-border-radius-xs);--border-color: var(--nve-ref-border-color);--background: transparent;--check-color: transparent;display:inline-block;contain:layout}::slotted(input){width:var(--width)!important;height:var(--height)!important;cursor:var(--cursor)!important;margin:0!important;position:absolute!important;opacity:0!important;inset:0!important}[input]{align-items:center;position:relative}@keyframes select-pop{0%{transform:scale(.8)}50%{transform:scale(1.1)}to{transform:scale(1)}}[input] slot{width:var(--width);height:var(--height);border:var(--border-width) solid var(--border-color);background:var(--background);border-radius:var(--border-radius);display:flex;align-items:center;justify-content:center;position:relative;overflow:visible;transition:transform var(--nve-ref-animation-duration-200) cubic-bezier(.12,.32,.54,2),border-color var(--nve-ref-animation-duration-150) ease}[input] slot:before{content:"";width:calc(var(--width) * .7);height:calc(var(--width) * .7 / 1.369);aspect-ratio:1.369;pointer-events:none;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) scale(1.05);clip-path:shape(from 98.17% 2.51%,arc by 0% 12.12% of 8% 8.57% small cw,line by -60.51% 82.87%,arc by -8.85% 0% of 8% 8.57% small cw,line to 1.68% 60.34%,arc by .15% -11.91% of 8% 8.58% small cw,arc by 8.7% -.21% of 8% 8.58% small cw,line to 33.23% 79.32%,line by 56.09% -76.81%,arc by 8.85% 0% of 8% 8.57% small cw,close)}:host(:state(checked)){--background: var(--accent-color);--check-color: var(--nve-sys-text-white-color)}:host(:state(checked)) [input] slot{border:0}:host(:state(checked):state(dirty)) [input] slot{animation:select-pop var(--nve-ref-animation-duration-200) ease-out}:host(:state(checked)) [input] slot:before{background:var(--check-color)}:host(:state(indeterminate)){--background: var(--border-color)}:host(:state(indeterminate)) [input] slot:before{display:none}:host(:state(indeterminate)) [input] slot:after{background:var(--nve-sys-interaction-color);content:"";display:inline-block;width:calc(var(--width) * .5);height:var(--border-width);position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);pointer-events:none}`,wS=class extends R{constructor(...e){super(...e),this.nveControl=`inline`}static{this.styles=j([...R.styles,CS])}static{this.metadata={tag:`nve-checkbox`,version:`0.0.0`,children:[`label`,`input`,`nve-control-message`]}}};N([k({attribute:`nve-control`})],wS.prototype,`nveControl`,void 0),wS=N([w()],wS);var TS=`:host{width:100%}`,ES=class extends SS{static{this.styles=j([...SS.styles,TS])}static{this.metadata={tag:`nve-checkbox-group`,version:`0.0.0`,children:[`label`,`nve-control-message`,`nve-checkbox`]}}};ES=N([w(),O()],ES),v(wS),v(ES),g(`dropper`,()=>Xa);var DS=`:host{--padding: 0 var(--nve-ref-size-200);--font-size: var(--nve-ref-font-size-100);--height: var(--nve-ref-size-800);--background: var(--nve-sys-interaction-field-background);--color: var(--nve-sys-interaction-field-color);--border-radius: var(--nve-ref-border-radius-sm);--border: var(--nve-ref-border-width-md) solid transparent;--border-bottom: var(--border);--cursor: text;--font-weight: normal;--_icon-height: var(--height);--_font-size: var(--font-size);--width: 100%;--max-width: 100%;--min-width: initial;width:var(--width);max-width:var(--max-width);min-width:var(--min-width)}[input]{height:var(--height);background:var(--background);border:var(--border);border-bottom:var(--border-bottom);border-radius:var(--border-radius);color:var(--color);cursor:var(--cursor);width:var(--control-width);display:flex;align-content:stretch}::slotted(input){accent-color:var(--accent-color)!important;cursor:var(--cursor)!important;padding:var(--padding)!important;font-size:var(--font-size)!important;color:var(--color)!important;line-height:var(--height)!important;border:0!important;background:none!important;display:block!important;width:100%!important;font-weight:var(--font-weight)!important}nve-icon-button,::slotted(nve-icon-button){--height: var(--_icon-height);align-self:center}::slotted(nve-button:not([slot])){--font-size: var(--_font-size);--padding: 0 var(--nve-ref-size-200);--color: var(--label-color);--height: 100%}:host([rounded]){--border-radius: var(--nve-ref-border-radius-full)}:host([status="error"]),:host(:state(invalid)),:host(:state(error)){--border: var(--nve-ref-border-width-md) solid var(--nve-sys-support-danger-emphasis-color)}:host([status="success"]),:host(:state(success)){--border: var(--nve-ref-border-width-md) solid var(--nve-sys-support-success-emphasis-color)}:host(:state(disabled)){--border: var(--nve-ref-border-width-md) solid transparent}:host([container="flat"]){--border-radius: 0;--box-shadow: none;--border-bottom: var(--nve-ref-border-width-md) solid var(--nve-ref-border-color-muted)}:host([container="flat"]) [input]{background:inherit}:host([container="flat"]:focus-within){--border-bottom: var(--nve-ref-border-width-md) solid var(--nve-ref-border-color-emphasis)}:host([container="flat"]:focus-within) [input]{outline:0!important}`,OS=DS,kS=class extends R{constructor(...e){super(...e),this.rounded=!1}static{this.styles=j([...R.styles,DS])}static{this.metadata={tag:`nve-input`,version:`0.0.0`}}};N([S({type:String,reflect:!0})],kS.prototype,`container`,void 0),N([S({type:Boolean,reflect:!0})],kS.prototype,`rounded`,void 0);var AS=`nve-input-group[type=filter]>nve-select::part(_caret){display:none!important}nve-input-group>[nve-control],nve-input-group>nve-button{--border-radius: 0}nve-input-group[type=filter] [nve-control]:nth-child(odd),nve-input-group[type=filter] nve-button:nth-child(odd){--font-weight: var(--nve-ref-font-weight-medium);--text-align: center}`,jS=`:host{--background: var(--nve-ref-border-color);--color: var(--nve-sys-interaction-field-color);--border-radius: var(--nve-ref-border-radius-sm);--gap: calc(var(--nve-ref-space-xxxs) / 2);--border: none;--width: max-content;width:var(--width);contain:none}[internal-host]{border-radius:var(--border-radius);overflow:hidden;width:var(--width);border:var(--border)}.input-slot{background:var(--background);border-radius:var(--border-radius);flex-flow:row nowrap;gap:var(--gap)}slot[name=label]{align-self:center}::slotted(nve-icon-button){--background: var(--nve-sys-interaction-field-background);--color: var(--nve-sys-support-emphasis-color);--border-radius: 0}::slotted(nve-select){--padding: 0 var(--nve-ref-size-200);width:fit-content}::slotted([nve-control]){--border-radius: 0 !important}::slotted([first-control]){--border-radius: var(--nve-ref-border-radius-sm) 0 0 var(--nve-ref-border-radius-sm) !important}::slotted([last-control]){--border-radius: 0 var(--nve-ref-border-radius-sm) var(--nve-ref-border-radius-sm) 0 !important}`,MS=class extends SS{static{this.styles=j([...SS.styles,jS])}static{this.metadata={tag:`nve-input-group`,version:`0.0.0`}}async connectedCallback(){T(this,AS),super.connectedCallback(),await this.updateComplete;let e=Array.from(this.shadowRoot.querySelector(`slot:not([name])`).assignedElements());e[0]?.setAttribute(`first-control`,``),e[e.length-1]?.setAttribute(`last-control`,``)}},NS=`nve-color input::-webkit-color-swatch{border:none!important}`,PS=`:host{--cursor: pointer}::slotted(input){padding:0!important;border:0!important;height:auto}`,FS={expand:`expand`},IS=class extends R{get i18nDefaults(){return FS}static{this.styles=j([...R.styles,OS,PS])}static{this.metadata={tag:`nve-color`,version:`0.0.0`}}static{this.elementDefinitions={[I.metadata.tag]:I}}get suffixContent(){return y`<nve-icon-button part="icon-button" .role="${`button`}" .ariaLabel="${this.i18n.expand}" icon-name="dropper" container="inline" @click="${()=>this.#e()}"></nve-icon-button>`}connectedCallback(){if(super.connectedCallback(),T(this,NS),this.input.value===`#000000`){let e=getComputedStyle(this).getPropertyValue(`--background`).trim();e.includes(`#`)&&(this.input.value=e)}}async#e(){this.input.value=await sy(),this.input.dispatchEvent(new Event(`input`,{bubbles:!0})),this.input.dispatchEvent(new Event(`change`,{bubbles:!0}))}};N([S({type:String,reflect:!0})],IS.prototype,`container`,void 0),IS=N([A()],IS),v(IS),g(`add`,()=>Se),g(`check`,()=>br);function LS(e,t){return(n,r,i)=>{let a=t=>t.renderRoot?.querySelector(e)??null;if(t){let{get:e,set:t}=typeof r==`object`?n:i??(()=>{let e=Symbol();return{get(){return this[e]},set(t){this[e]=t}}})();return _x(n,r,{get(){let n=e.call(this);return n===void 0&&(n=a(this),(n!==null||this.hasUpdated)&&t.call(this,n)),n}})}return _x(n,r,{get(){return a(this)}})}}var RS=`:host{--nve-sys-interaction-background: var(--nve-sys-interaction-background-300);--nve-sys-interaction-field-background: var(--nve-sys-interaction-background-300);--nve-sys-layer-popover-arrow-padding: 0px;--nve-sys-layer-popover-arrow-offset: 0px;--nve-sys-layer-popover-offset: 0px;--arrow-transform: translate(0, -2px) rotate(225deg);--border: var(--nve-ref-border-width-sm) solid var(--nve-ref-border-color-muted);--border-radius: var(--nve-ref-border-radius-md);--background: var(--nve-sys-layer-overlay-background);--color: var(--nve-sys-layer-overlay-color);--padding: var(--nve-ref-size-400);--box-shadow: var(--nve-ref-shadow-400);--width: fit-content;--min-width: fit-content;--gap: var(--nve-ref-space-sm);--_divider-padding: var(--padding)}[internal-host]{padding:var(--padding);border-radius:var(--border-radius);border:var(--border);background:var(--background);color:var(--color);box-shadow:var(--box-shadow);gap:var(--nve-ref-space-sm);width:var(--width);min-width:var(--min-width);outline:0}[internal-host]::backdrop{background:transparent}.header{display:flex;gap:var(--gap)}.header:has(nve-icon-button){min-height:var(--nve-ref-size-300)}nve-icon-button{position:absolute;top:var(--nve-ref-size-200);right:var(--nve-ref-size-200);z-index:99}.arrow{width:var(--nve-ref-size-400);height:var(--nve-ref-size-400);background:var(--background);transform:var(--arrow-transform);border-top-left-radius:var(--nve-ref-border-radius-xs);z-index:10000;clip-path:polygon(0 0,100% 0,0 100%);position:absolute;border-left:var(--border);border-top:var(--border)}:host([position*="top"]){--arrow-transform: translate(0, -2px) rotate(225deg)}:host([position*="right"]){--arrow-transform: translate(2px, 0) rotate(-45deg)}:host([position*="bottom"]){--arrow-transform: translate(0, 2px) rotate(45deg)}:host([position*="left"]){--arrow-transform: translate(-2px, 0) rotate(135deg)}::slotted(nve-menu){--width: 100%}::slotted(nve-divider){margin:0 calc(-1 * var(--_divider-padding))}`,zS={close:`close`},z=class extends x{constructor(...e){super(...e),this.position=`bottom`,this.alignment=`start`,this.closable=!1,this.arrow=!1,this.modal=!0,this.popoverType=`auto`,this.#e=new M(this,zS),this.typeNativePopoverController=new Zy(this),this.i18n=this.#e.i18n}static{this.styles=j([ub,RS])}static{this.metadata={tag:`nve-dropdown`,version:`0.0.0`}}static{this.elementDefinitions={[I.metadata.tag]:I}}#e;get popoverDismissible(){return this.modal}render(){return y`<div internal-host><slot name="header"></slot>${this.closable?y`<nve-icon-button part="icon-button" exportparts="icon:icon-button-icon" @click="${this.hidePopover}" icon-name="cancel" container="flat" size="sm" .ariaLabel="${this.i18n.close}"></nve-icon-button>`:``}<slot></slot><slot name="footer"></slot></div>${this.arrow?y`<div class="arrow"></div>`:``}`}};N([S({type:String})],z.prototype,`anchor`,void 0),N([S({type:String})],z.prototype,`trigger`,void 0),N([S({type:String,reflect:!0})],z.prototype,`position`,void 0),N([S({type:String,reflect:!0})],z.prototype,`alignment`,void 0),N([S({type:Boolean,reflect:!0,attribute:`behavior-trigger`})],z.prototype,`behaviorTrigger`,void 0),N([S({type:Boolean})],z.prototype,`closable`,void 0),N([S({type:Boolean})],z.prototype,`arrow`,void 0),N([S({type:Boolean,reflect:!0})],z.prototype,`modal`,void 0),N([S({type:String,attribute:`popover-type`})],z.prototype,`popoverType`,void 0),N([LS(`.arrow`)],z.prototype,`popoverArrow`,void 0),N([S({type:Object})],z.prototype,`i18n`,void 0),z=N([w({excessiveInstanceLimit:50}),A()],z);var BS=`:host{--border-top: var(--nve-ref-border-width-md) solid var(--nve-ref-border-color);--padding: var(--nve-ref-size-400);--gap: var(--nve-ref-space-sm);display:block;width:calc(100% + calc(var(--padding) * 2));margin:var(--padding) calc(var(--padding) * -1) 0 calc(var(--padding) * -1)}[internal-host]{border-top:var(--border-top);padding:var(--padding) var(--padding) 0 var(--padding);display:flex;justify-content:start;gap:var(--gap)}`,VS=class extends x{static{this.styles=j([BS])}static{this.metadata={tag:`nve-dropdown-footer`,version:`0.0.0`,parents:[`nve-dropdown`]}}render(){return y`<div internal-host><slot></slot></div>`}connectedCallback(){super.connectedCallback(),this.slot=`footer`}},HS=`:host{--border-bottom: var(--nve-ref-border-width-md) solid var(--nve-ref-border-color);--padding: var(--nve-ref-size-400);width:calc(100% + calc(var(--padding) * 2));margin:0 calc(var(--padding) * -1) var(--padding) calc(var(--padding) * -1)}[internal-host]{border-bottom:var(--border-bottom);padding:0 var(--padding) var(--padding) var(--padding)}`,US=class extends x{static{this.styles=j([HS])}static{this.metadata={tag:`nve-dropdown-header`,version:`0.0.0`,parents:[`nve-dropdown`]}}render(){return y`<div internal-host><slot></slot></div>`}connectedCallback(){super.connectedCallback(),this.slot=`header`}};v(z),v(VS),v(US);var WS=`:host{--padding: 0;--gap: var(--nve-ref-space-xxs);--width: min-content;--max-width: 100%;--min-width: 170px;--max-height: 100%;width:var(--width);min-width:var(--min-width);contain:layout;content-visibility:auto;contain-intrinsic-size:auto var(--max-height, initial)}[internal-host]{padding:var(--padding);gap:var(--gap);display:flex;flex-direction:column;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);max-height:var(--max-height);margin:0;overflow-y:auto;scrollbar-color:var(--nve-sys-scrollbar-thumb-color) var(--nve-sys-scrollbar-track-color);scrollbar-width:var(--nve-sys-scrollbar-width)}`,GS=`nve-menu:has(nve-menu-item:state(current)){--padding: 0 0 0 var(--nve-ref-size-200)}nve-menu:has(nve-tooltip),nve-menu:has(nve-tooltip) nve-menu-item{content-visibility:initial}nve-menu[density=compact]{--min-width: 0;nve-menu-item{--gap: 0;width:fit-content}nve-menu-item::part(_slot),nve-menu-item::part(_suffix){display:none!important}}`,KS=class extends x{static{this.styles=j([WS])}static{this.metadata={tag:`nve-menu`,version:`0.0.0`,children:[`nve-menu-item`,`nve-divider`]}}static{this.elementDefinitions={}}get keynavListConfig(){return{layout:`vertical`,items:this.items}}#e=new Ty(this);#t=[];#n=null;#r=!1;#i=()=>{this.#n===null&&(this.#n=requestAnimationFrame(()=>{this.#n=null;let e=this.shadowRoot?.querySelector(`[internal-host]`);if(!e)return;let{scrollTop:t,scrollHeight:n,clientHeight:r}=e;this.dispatchEvent(new CustomEvent(`scroll`,{bubbles:!0,composed:!0,detail:{scrollTop:t,scrollHeight:n,clientHeight:r}}))}))};render(){return y`<div internal-host><slot @slotchange="${this.#a}"></slot></div>`}async firstUpdated(){await this.updateComplete,this.shadowRoot?.querySelector(`[internal-host]`)?.addEventListener(`scroll`,this.#i,{passive:!0})}connectedCallback(){super.connectedCallback(),D(this),this._internals.role=`menu`,T(this,GS),this.hasUpdated&&(this.#t=this.items),this.parentElement?.localName===`nve-menu-group`&&!this.slot&&(this.slot=`menu`,this.#r=!0)}disconnectedCallback(){super.disconnectedCallback(),this.#t=[],this.#r&&this.slot===`menu`&&(this.slot=``),this.#r=!1}#a=()=>{this.#e.refreshItems(this.#t),this.#t=this.items}};N([S({type:String,reflect:!0})],KS.prototype,`density`,void 0),N([L({selector:`nve-menu-item`})],KS.prototype,`items`,void 0),KS=N([w()],KS);var qS=`:host{--background: transparent;--font-size: var(--nve-ref-font-size-100);--padding: var(--nve-ref-size-200);--gap: var(--nve-ref-space-sm);--border-radius: var(--nve-ref-border-radius-xs);--color: var(--nve-sys-interaction-color);--width: 100%;--min-height: var(--nve-ref-size-800);--nve-sys-interaction-state-base: var(--background, var(--nve-sys-layer-canvas-background));display:block;width:var(--width);contain:layout}[internal-host]{display:flex;flex-direction:column;width:100%;gap:var(--nve-ref-space-xxs)}button{appearance:none;padding:var(--padding);color:var(--color);background:var(--background);font-size:var(--font-size);border-radius:var(--border-radius);min-height:var(--min-height);gap:var(--gap);font-weight:var(--nve-ref-font-weight-medium);border:0;width:100%;margin:0;font-family:inherit;line-height:normal;text-align:start;cursor:pointer;outline-offset:calc(-1 * var(--nve-ref-size-50));position:relative;display:flex;align-items:center;background-image:linear-gradient(color-mix(in oklab,var(--nve-sys-interaction-state-base) 100%,var(--nve-sys-interaction-state-mix) var(--nve-sys-interaction-state-ratio)) 0 0)!important;&:hover{--nve-sys-interaction-state-ratio: var(--nve-sys-interaction-state-ratio-hover)}}button:not([disabled]):focus-visible{outline:Highlight solid 2px!important;outline:5px auto -webkit-focus-ring-color!important}slot:not([name]){display:inline-flex;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[part=caret]{flex:none;--color: currentColor}slot[name=menu]{width:100%;display:block}::slotted(nve-menu){--min-width: 0;--width: 100%;--padding: 0 0 0 var(--nve-ref-size-200)}::slotted(nve-icon){--color: currentColor}:host([disabled]){--color: var(--nve-sys-interaction-disabled-color)}:host([disabled]) button{--nve-sys-interaction-state-ratio: 0;cursor:not-allowed;opacity:var(--nve-ref-opacity-500)}:host(:not([disabled]):hover){--color: var(--nve-sys-interaction-selected-color)}`,JS=class extends x{constructor(...e){super(...e),this.expanded=!1,this.disabled=!1,this.behaviorExpand=!1,this.#e=new Ky(this),this.#t=()=>{this.disabled||this.#e.toggle()}}static{this.styles=j([qS])}static{this.metadata={tag:`nve-menu-group`,version:`0.0.0`,children:[`nve-menu`]}}static{this.elementDefinitions={[P.metadata.tag]:P}}#e;render(){return y`<div internal-host><button id="trigger" type="button" aria-expanded="${this.expanded}" ?disabled="${this.disabled}" aria-controls="content" @click="${this.#t}"><slot name="prefix"></slot><slot></slot><slot name="suffix"></slot><nve-icon part="caret" name="caret" direction="${this.expanded?`down`:`right`}" size="sm" aria-hidden="true"></nve-icon></button><slot id="content" name="menu" ?hidden="${!this.expanded}"></slot></div>`}connectedCallback(){super.connectedCallback(),D(this),this._internals.role=`group`}#t};N([S({type:Boolean,reflect:!0})],JS.prototype,`expanded`,void 0),N([S({type:Boolean,reflect:!0})],JS.prototype,`disabled`,void 0),N([S({type:Boolean,attribute:`behavior-expand`})],JS.prototype,`behaviorExpand`,void 0),JS=N([w(),A()],JS);var YS=`:host{--border-radius: var(--nve-ref-border-radius-xs);--border-background: var(--nve-sys-accent-secondary-background);--font-size: var(--nve-ref-font-size-100);--font-weight: var(--nve-ref-font-weight-medium);--color: var(--nve-sys-interaction-color);--padding: var(--nve-ref-size-200);--gap: var(--nve-ref-space-sm);--width: 100%;--min-height: var(--nve-ref-size-800);--line-height: 0;--cursor: pointer;--text-transform: capitalize;--opacity: 1;contain:layout;content-visibility:auto;contain-intrinsic-size:auto var(--min-height, initial)}[internal-host]{--_icon-color: var(--color);padding:var(--padding);color:var(--color);font-size:var(--font-size);font-weight:var(--font-weight);border-radius:var(--border-radius);gap:var(--gap);width:var(--width);min-width:var(--min-width);min-height:var(--min-height);cursor:var(--cursor);text-transform:var(--text-transform);outline-offset:calc(-1 * var(--nve-ref-size-50));opacity:var(--opacity);position:relative;display:flex;align-items:center;white-space:nowrap;border:0;text-align:left}::slotted(nve-icon){--color: var(--_icon-color)}:host(:hover),:host(:state(selected)){--color: var(--nve-sys-interaction-selected-color)}:host(:state(disabled)) [interaction-state]{--nve-sys-interaction-state-ratio: 0}:host(:state(disabled)){--opacity: var(--nve-ref-opacity-500);--cursor: not-allowed}:host(:state(current)){contain:none;content-visibility:initial;--color: var(--nve-sys-interaction-selected-color)}:host(:state(current)) [internal-host]{contain:none}:host([status="danger"]){--nve-sys-interaction-state-base: var(--nve-sys-support-danger-muted-color);--nve-sys-interaction-selected-color: var(--nve-sys-support-danger-emphasis-color);--border-background: var(--nve-sys-support-danger-emphasis-color);--color: var(--nve-sys-support-danger-emphasis-color)}:host([status="danger"]:hover) ::slotted(nve-icon){--color: var(--nve-sys-support-danger-emphasis-color) !important}:host(:state(current)) [internal-host]:after{width:var(--nve-ref-border-width-xl);border-radius:var(--border-radius);background:var(--border-background);content:"";display:block;position:absolute;top:var(--nve-ref-size-50);bottom:var(--nve-ref-size-50);left:calc(var(--nve-ref-size-200) * -1)}::slotted(nve-icon){--color: inherit !important}::slotted(a){text-decoration:var(--text-decoration)!important;color:var(--color)!important;gap:var(--gap)!important;display:flex!important;align-items:center!important;outline:0}::slotted(a):after{display:block;content:" ";inset:0;position:absolute}::slotted(*:not(a,nve-icon)){pointer-events:none}::slotted(nve-icon){cursor:var(--cursor)}::slotted(nve-divider){margin:0 calc(-1 * var(--padding))}::slotted([slot="suffix"]){margin-inline-start:auto}`,XS=class extends px(x){static{this.styles=j([YS])}static{this.metadata={tag:`nve-menu-item`,version:`0.0.0`,parents:[`nve-menu`]}}static{this.elementDefinitions={}}render(){return y`<div internal-host interaction-state focus-within part="_internal"><slot name="prefix" part="_prefix"></slot><slot part="_slot"></slot><slot name="suffix" part="_suffix"></slot></div>`}constructor(){super(),this.type=`button`}connectedCallback(){super.connectedCallback(),this._internals.role=`menuitem`}};N([S({type:String,reflect:!0})],XS.prototype,`status`,void 0),XS=N([w()],XS),v(KS),v(JS),v(XS);var ZS=e=>e??b,QS=`:host{--background: var(--state-color-background);--color: var(--state-color);--state-color-base: var(--nve-ref-color-blue-cobalt-1100);--nve-sys-interaction-state-base: var(--background, var(--nve-sys-layer-canvas-background));--gap: var(--nve-ref-space-xs);--font-size: var(--nve-ref-font-size-100);--padding: 0 var(--nve-ref-size-200);--border: 0;--border-radius: var(--nve-ref-border-radius-full);--font-weight: var(--nve-ref-font-weight-regular);--cursor: pointer;--height: var(--nve-ref-size-600);--width: initial;--max-width: initial;display:inline-flex;user-select:none}[internal-host]{--_color: var(--color);font-weight:var(--font-weight);font-size:var(--font-size);gap:var(--gap);background:var(--background);color:var(--color);padding:var(--padding);border:var(--border);border-radius:var(--border-radius);cursor:var(--cursor);height:var(--height);width:var(--width);max-width:var(--max-width);display:inline-flex;line-height:1.1em;place-items:center;place-content:center;white-space:nowrap}slot:not([name]){text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block}::slotted([nve-text]){color:inherit!important}::slotted(nve-icon){--color: var(--_color)}::slotted(nve-dot){--color: var(--state-color-background);--status-color: var(--_color)}nve-icon{--color: inherit;cursor:var(--cursor)}:host([readonly]){--text-decoration: none;--cursor: cursor}`,$S={close:`close`},eC=class extends px(x){static{this.styles=j([sb,QS])}static{this.metadata={tag:`nve-tag`,version:`0.0.0`}}static{this.elementDefinitions={[P.metadata.tag]:P}}#e;#t;render(){return y`<div internal-host interaction-state focus-within><slot name="prefix"></slot><slot></slot><slot name="suffix"></slot>${this.closable?y`<nve-icon part="icon" @click="${()=>this.#t.close()}" container="flat" name="cancel" size="sm" role="img" aria-label="${ZS(this.i18n.close)}"></nve-icon>`:``}</div>`}constructor(){super(),this.closable=!1,this.#e=new M(this,$S),this.i18n=this.#e.i18n,this.#t=new Gy(this),this.type=`button`}};N([S({type:Boolean})],eC.prototype,`closable`,void 0),N([S({type:String,reflect:!0})],eC.prototype,`color`,void 0),N([S({type:String,reflect:!0})],eC.prototype,`prominence`,void 0),N([S({type:Object})],eC.prototype,`i18n`,void 0),eC=N([A()],eC),v(eC);var tC=`:host{--scroll-height: 25vh;--_input-background: var(--background);contain:initial}[name=caret]{right:var(--nve-ref-size-300);align-self:center;pointer-events:none;position:absolute}[internal-host]:has(nve-menu:focus-within) [input]{outline:0!important}:host(:state(selected)){--font-weight: var(--nve-ref-font-weight-semibold)}:host(:state(multiple)){--padding: 0 var(--nve-ref-size-100)}:host(:state(multiple)) [input]{padding:var(--padding)}.tags{width:fit-content;display:flex;gap:var(--nve-ref-space-xxs);align-items:center}.tags-label{padding:0 var(--nve-ref-size-200);font-size:var(--font-size);cursor:var(--cursor);font-weight:var(--font-weight);text-wrap:nowrap;display:none;align-items:center;pointer-events:none}:host(:state(multiple-overflow):not([tag-layout="wrap"])) .tags{opacity:0;pointer-events:none;position:absolute}:host(:state(multiple-overflow):not([tag-layout="wrap"])) .tags-label{display:flex}nve-tag{--background: color-mix(in oklab, var(--color) 15%, var(--_input-background));--padding: var(--nve-ref-size-100) var(--nve-ref-size-200);--cursor: pointer !important}::slotted(select){display:none!important}:host([status="error"]),:host(:state(invalid)),:host(:state(error)){--border: var(--nve-ref-border-width-md) solid var(--nve-sys-support-danger-emphasis-color)}:host([status="success"]),:host(:state(success)){--border: var(--nve-ref-border-width-md) solid var(--nve-sys-support-success-emphasis-color)}:host(:state(disabled)){--border: var(--nve-ref-border-width-md) solid transparent}[name=prefix-icon]{display:contents}nve-dropdown{--padding: var(--nve-ref-size-200)}nve-menu{contain:content;--max-height: var(--scroll-height)}nve-menu-item{--text-transform: initial;contain:content;content-visibility:auto}[internal-host]:has([matches]) nve-menu-item{--color: var(--nve-sys-text-muted-color)}nve-menu-item nve-icon{--color: inherit}input[type=checkbox]{accent-color:var(--nve-sys-accent-secondary-background)}nve-checkbox:not(:state(disabled)){--border-color: var(--nve-ref-border-color-emphasis)}nve-menu-item:not(:state(selected)) nve-icon[name=check]{opacity:0}slot:not([name]),slot[name*=option-]{display:contents}[matches]{font-weight:var(--nve-ref-font-weight-medium);color:var(--nve-sys-text-emphasis-color)}[name=footer]{display:none;min-height:var(--nve-ref-size-900);margin:calc(var(--nve-ref-size-200) * -1);width:calc(100% + calc(var(--nve-ref-size-200) * 2));border-top:var(--nve-ref-border-width-sm) solid var(--nve-ref-border-color-muted);padding:0 var(--nve-ref-size-200);gap:var(--nve-ref-space-sm);justify-content:center;align-items:center}:host(:state(footer-content)) [name=footer]{display:flex}nve-menu-item[part=create-option]{--color: var(--nve-sys-text-muted-color);font-style:italic;span:first-letter{text-transform:uppercase}}:host([tag-layout="wrap"]:state(multiple-overflow)){[input]{min-height:var(--height);height:fit-content;flex-direction:column;width:100%}.tags{padding-block-start:var(--nve-ref-size-50);flex-wrap:wrap}}`,nC={select:`select`,selected:`selected`,noResults:`no results`,create:`create`},rC=class extends R{constructor(...e){super(...e),this.#p=[],this.#m=!1,this.#_=null,this._associateDatalist=!1,this.#D=/* @__PURE__ */ new Map}get i18nDefaults(){return nC}static{this.styles=j([...R.styles,OS,tC])}static{this.metadata={tag:`nve-combobox`,version:`0.0.0`}}static{this.elementDefinitions={[wS.metadata.tag]:wS,[P.metadata.tag]:P,[z.metadata.tag]:z,[KS.metadata.tag]:KS,[XS.metadata.tag]:XS,[eC.metadata.tag]:eC}}#e;get#t(){return this.#e||=this.shadowRoot?this.shadowRoot.querySelector(`slot`)?.assignedElements({flatten:!0})?.find(e=>e.tagName===`DATALIST`||e.tagName===`SELECT`)??this.querySelector(`datalist, select`):null,this.#e}#n;get#r(){return this.#n||=this.shadowRoot?this.shadowRoot.querySelector(`slot`)?.assignedElements({flatten:!0})?.find(e=>e.tagName===`SELECT`)??this.querySelector(`select`):null,this.#n}get#i(){return Array.from(this.#t?.options?this.#t.options:[])}get#a(){return Array.from(this.shadowRoot.querySelectorAll(XS.metadata.tag))}get#o(){return this.shadowRoot.querySelector(z.metadata.tag)}get#s(){return this.shadowRoot.querySelector(`[input]`)}get#c(){return this.shadowRoot.querySelector(`.tags`)}get#l(){return this.#i.find(e=>!e.disabled&&!e.hidden)}get#u(){return!!this.querySelector(`[slot="footer"]`)}get#d(){if(!this.behaviorCreate||this.input?.disabled)return!1;let e=this.input?.value.trim();return e?!this.#f(e):!1}#f(e){let t=e.toLowerCase();return this.#i.find(e=>(e.textContent.trim()||e.value).toLowerCase()===t||e.value.toLowerCase()===t)}#p;#m;#h;#g;#_;get prefixContent(){return this.#r?.multiple&&!this.#v?y`<div class="tags-label" aria-hidden="true">${this.#r.selectedOptions.length} ${this.i18n.selected}</div><div class="tags">${Array.from(this.#r.selectedOptions).map(e=>y`<nve-tag part="tag" readonly="readonly" color="gray-slate" closable .value="${e.value}" @click="${()=>this.#z(e)}">${dy(e)}</nve-tag>`)}</div>`:y`<slot name="prefix-icon"></slot>`}get#v(){return this.tagLayout===`hidden`}get#y(){return(this.#t?.options?.length??0)>50}get#b(){return!this._internals.states.has(`dirty`)}get suffixContent(){let e=this.#i,t=this.#y,n=this.#b,r=e.filter(e=>!e.hidden).filter(e=>!(e.value===``&&e.disabled)),i=r.filter(e=>!e.disabled).length===0,a=this.#d;return y`<nve-dropdown part="dropdown" .popoverType="${`manual`}" .modal="${!1}" @open="${this.#N}" @close="${this.#P}" hidden .anchor="${this.#s}" position="bottom"><nve-menu part="menu" role="listbox" style="--width:100%;--min-width:fit-content" aria-label="${ZS(this.i18n.select)}">${r.map(e=>y`<nve-menu-item part="menu-item" .option="${dy(e)}" role="option" @click="${()=>this.#z(e)}" ?selected="${e.selected}" aria-selected="${e.selected?`true`:`false`}" ?disabled="${e.disabled}" aria-label="${dy(e)}">${this.#x(e)} ${t||n?dy(e):y`<span role="presentation">${(e.label?e.label:e.value)?.split(``)?.map((e,t)=>y`<span ?matches="${this.#H(e,t)}">${e}</span>`)}</span>`}</nve-menu-item>`)} ${i&&!a?y`<nve-menu-item part="menu-item" .value="${``}" disabled="disabled">${this.i18n.noResults}</nve-menu-item>`:b} ${a?y`<nve-menu-item part="create-option" role="button" aria-label="${`${this.i18n.create} "${this.input?.value.trim()}"`}" @click="${this.#B}"><nve-icon part="icon" name="add" size="sm"></nve-icon>"${this.input?.value.trim()}"</nve-menu-item>`:b}</nve-menu><slot name="footer"></slot></nve-dropdown>`}#x(e){let t=this.#r;return t?.multiple&&this.#y?y`<input aria-hidden="true" type="checkbox" .checked="${e.selected}" .disabled="${e.disabled}" .name="${e.selected?`check`:void 0}">`:t?.multiple?y`<nve-checkbox part="checkbox"><input aria-hidden="true" type="checkbox" .checked="${e.selected}" .disabled="${e.disabled}" .name="${e.selected?`check`:void 0}"></nve-checkbox>`:t?y`<nve-icon part="icon" name="check" size="sm"></nve-icon>`:b}async firstUpdated(e){super.firstUpdated(e),this.shadowRoot.addEventListener(`slotchange`,()=>this.#j()),await this.updateComplete,this.#S(),this.#C(),this.#F(),this.#I(),this.#R(),this.#X(),await this.#L(),this.input.setAttribute(`list`,``),this.input.autocomplete=`off`}updated(e){super.updated(e),this.#J()}connectedCallback(){super.connectedCallback();let e=new MutationObserver(()=>this.#j());e.observe(this,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`selected`,`disabled`,`value`],characterData:!0}),this.#p.push(e),this.#O()}disconnectedCallback(){super.disconnectedCallback(),this.#p.forEach(e=>e.disconnect()),this.#p.length=0,this.#g?.disconnect(),this.#_=null,this._internals.states.delete(`multiple-overflow`),this.#k(),this.#h!==void 0&&cancelAnimationFrame(this.#h),this.#h=void 0}reset(){this.#o.hidePopover(),this.#r&&(this.#r.selectedIndex=-1),super.reset()}selectAll(){this.#i.forEach(e=>e.selected=!0),this.requestUpdate(),this.#r.dispatchEvent(new Event(`input`,{bubbles:!0})),this.#r.dispatchEvent(new Event(`change`,{bubbles:!0}))}#S(){this.#r&&!this.#r.multiple&&(this.#w(),this.#E())}#C(){this.#r?.multiple&&(this.#w(),this.#E(),this._internals.states.add(`multiple`))}#w(){let e=Array.from(this.#r.selectedOptions).find(e=>e.hasAttribute(`selected`));e&&!this.#r.multiple&&!this.input.defaultValue&&(this.input.value=dy(e))}#T(){!this.#r.multiple&&!this.input.defaultValue&&(this.input.value=dy(Array.from(this.#r.selectedOptions).find(e=>e.value===this.#r.value)))}#E(){this.#p.push(Xv(this.#r,`value`,()=>{this.#T(),this.requestUpdate()}))}#D;#O(){this.#e=null,this.#n=null,this.#A(),this.requestUpdate()}#k(){this.#D.forEach(e=>e?.()),this.#D.clear()}#A(){this.isConnected&&this.#i.forEach(e=>{this.#D.has(e)||this.#D.set(e,Yv(e,`selected`,()=>this.requestUpdate()))})}#j(){this.#m||(this.#m=!0,queueMicrotask(()=>{this.#m=!1,this.isConnected&&(this.#e=null,this.#n=null,this.#M(),this.#A(),this.requestUpdate())}))}#M(){let e=new Set(this.#i);for(let[t,n]of this.#D)e.has(t)||(n?.(),this.#D.delete(t))}#N(){this.#o.hidden=!1}#P(){this.#o.hidden=!0,this._internals.states.delete(`dirty`),this.#G()}#F(){this.addEventListener(`keydown`,e=>{let t=this.input.value.trim();if(e.code===`Tab`&&(this.#l&&this.#o.matches(`:popover-open`)&&t!==``&&(e.preventDefault(),this.#K(this.#a[0].option),this.#q(this.#i.find(e=>(e.label?e.label:e.value)===this.#a[0].option))),this.#o.hidePopover()),e.code===`Enter`&&this.behaviorCreate&&!this.input.disabled&&t){let n=this.#f(t);n?this.#z(n):(e.preventDefault(),e.stopImmediatePropagation(),this.#V())}})}#I(){this.input.addEventListener(`input`,()=>this.#U()),this.shadowRoot.addEventListener(`slotchange`,()=>this.#U())}async#L(){let e=this.#o;await e.updateComplete,_b({element:e.shadowRoot.querySelector(`[internal-host]`),focusElement:this.input},()=>{this.#o.matches(`:popover-open`)&&this.#o.hidePopover()})}#R(){this.#c?.addEventListener(`pointerup`,()=>{this.tagLayout===`wrap`&&(this.input.focus(),setTimeout(()=>this.#W(),0))}),this.input.addEventListener(`pointerdown`,()=>{this.#W()}),this.addEventListener(`keydown`,e=>{e.code!==`Tab`&&e.code!==`Escape`&&this.#W(),e?.code===`ArrowDown`&&this.getRootNode().activeElement===this.input&&(this.#o.tabIndex=0,this.#a[0]?.focus(),e.preventDefault())})}#z(e){this.#r?.multiple||(this.#K(dy(e)),this.#o.hidePopover(),Bv(this.input)),this.#r&&(e.selected=!e.selected,this.#q(e)),this.requestUpdate()}#B(){this.#V()}#V(){let e=this.input.value.trim();e&&(this.dispatchEvent(new CustomEvent(`create`,{detail:{value:e},bubbles:!0,composed:!0})),this.input.value=``,this.#o.hidePopover(),Bv(this.input),this.requestUpdate())}#H(e,t){return this.#l?this.input.value.toLowerCase()[t]?.toLowerCase()===e.toLowerCase():!1}#U(){this.#i.forEach(e=>{e.hidden=e.textContent.trim().length?!e.textContent.toLocaleLowerCase().includes(this.input?.value.toLowerCase()):!e.value.toLocaleLowerCase().includes(this.input?.value.toLowerCase())}),this.requestUpdate()}#W(){!this.input.disabled&&!this.#o.matches(`:popover-open`)&&(this.#r?(this.#i.forEach(e=>e.hidden=!1),this.requestUpdate()):this.#U(),this.#o.style.setProperty(`--min-width`,`${this.#s.getBoundingClientRect().width}px`),this.#o.showPopover({source:this.#s}),this.#o.tabIndex=-1)}#G(){this.#r&&!this.#r.multiple&&!this.#i.filter(e=>!(e.value===``&&e.disabled)).find(e=>dy(e)===this.input.value)&&(this.#i.forEach(e=>e.selected=!1),this.#K(``),this.#q({value:``,selected:!1}))}#K(e){this.input.value=e,this.input.dispatchEvent(new Event(`input`,{bubbles:!0})),this.input.dispatchEvent(new Event(`change`,{bubbles:!0}))}#q(e){let t=[...this.#i,{value:``,selected:null}].find(t=>t.value===e.value);t&&(t.selected=e.selected??null),this.#r&&!this.#r.multiple&&(this.#r.value=e.value),this.#r?.dispatchEvent(new Event(`input`,{bubbles:!0})),this.#r?.dispatchEvent(new Event(`change`,{bubbles:!0}))}#J(){if(!this.isConnected)return;let e=this.#r?.multiple&&!this.#v?this.#c:null;e!==this.#_&&(this.#g?.disconnect(),this.#_=e,this.#h!==void 0&&cancelAnimationFrame(this.#h),this.#h=void 0,e?(this.#g??=new ResizeObserver(()=>{this.#h===void 0&&(this.#h=requestAnimationFrame(()=>{this.#h=void 0;let e=this.#c;this.isConnected&&e&&this.#Y(e.getBoundingClientRect().width)}))}),this.#g.observe(e),this.#g.observe(this.#s)):this._internals.states.delete(`multiple-overflow`))}#Y(e){this.#r?.multiple&&e>this.#s.getBoundingClientRect().width-100?this._internals.states.add(`multiple-overflow`):this._internals.states.delete(`multiple-overflow`)}#X(){this.#Z(),this.shadowRoot.addEventListener(`slotchange`,()=>this.#Z())}#Z(){this.#u?this._internals.states.add(`footer-content`):this._internals.states.delete(`footer-content`)}};N([S({type:String,reflect:!0})],rC.prototype,`container`,void 0),N([S({type:String,reflect:!0,attribute:`tag-layout`})],rC.prototype,`tagLayout`,void 0),N([S({type:Boolean,reflect:!0,attribute:`behavior-create`})],rC.prototype,`behaviorCreate`,void 0),rC=N([A()],rC),v(rC),g(`copy`,()=>ge);var iC=`:host{--nve-sys-layer-popover-arrow-padding: 0px;--nve-sys-layer-popover-arrow-offset: 0px;--nve-sys-layer-popover-offset: var(--nve-ref-space-md);--nve-sys-interaction-color: var(--color);--padding: var(--nve-ref-size-200) var(--nve-ref-size-400);--justify-content: initial;--background: var(--nve-sys-layer-popover-background);--border-radius: var(--nve-ref-border-radius-md);--border: none;--color: var(--nve-sys-layer-popover-color);--font-size: var(--nve-ref-font-size-200);--font-weight: var(--nve-ref-font-weight-medium);--box-shadow: var(--nve-ref-shadow-100);--gap: var(--nve-ref-space-xs);--_gap: var(--gap);height:fit-content}[internal-host]{background:var(--background);font-size:var(--font-size);font-weight:var(--font-weight);gap:var(--gap);color:var(--color);padding:var(--padding);border-radius:var(--border-radius);border:var(--border);display:flex;flex-direction:row;align-items:center;justify-content:var(--justify-content)}[internal-host]:has(nve-icon-button){padding-inline-end:var(--nve-ref-size-800)}:host([status="accent"]){--background: var(--nve-sys-support-accent-color)}:host([status="success"]){--background: var(--nve-sys-support-success-color);--color: var(--nve-sys-text-white-color)}:host([status="warning"]){--background: var(--nve-sys-support-warning-color);--color: var(--nve-sys-text-black-color)}:host([status="danger"]){--background: var(--nve-sys-support-danger-color);--color: var(--nve-sys-text-white-color)}:host([prominence="muted"]:not([status])){--background: var(--nve-sys-support-muted-color);--color: var(--nve-sys-layer-popover-background)}nve-icon{--color: inherit}nve-icon-button{--color: inherit;position:absolute;inset-block-start:var(--nve-ref-size-50);inset-inline-end:var(--nve-ref-size-50)}::slotted(nve-button[container="flat"]),::slotted(nve-button[container="inline"]){--color: inherit;margin-inline:calc(var(--_gap) * 2) calc(var(--_gap) / -2)}::slotted([nve-text]){color:inherit!important}`,aC={close:`close`,danger:`danger`,information:`information`,success:`success`,warning:`warning`},B=class extends x{constructor(...e){super(...e),this.position=`top`,this.closable=!1,this.closeTimeout=0,this.#e=new M(this,aC),this.i18n=this.#e.i18n,this.popoverType=`manual`,this.typeNativePopoverController=new Zy(this)}static{this.styles=j([ub,iC])}static{this.metadata={tag:`nve-toast`,version:`0.0.0`}}static{this.elementDefinitions={[I.metadata.tag]:I,[P.metadata.tag]:P}}#e;render(){return y`<div internal-host><slot name="prefix"><nve-icon part="prefix-icon" .name="${mb[this.status]}" .ariaLabel="${this.i18n[this.status]??this.i18n.information}"></nve-icon></slot>${this.closable?y`<nve-icon-button part="icon-button" exportparts="icon:icon-button-icon" @click="${this.hidePopover}" icon-name="cancel" container="flat" .ariaLabel="${this.i18n.close}"></nve-icon-button>`:b}<slot></slot></div>`}connectedCallback(){super.connectedCallback(),D(this),this._internals.role=`alert`}};N([S({type:String})],B.prototype,`anchor`,void 0),N([S({type:String})],B.prototype,`trigger`,void 0),N([S({type:String,reflect:!0})],B.prototype,`position`,void 0),N([S({type:String,reflect:!0})],B.prototype,`alignment`,void 0),N([S({type:String,reflect:!0})],B.prototype,`prominence`,void 0),N([S({type:Boolean,reflect:!0,attribute:`behavior-trigger`})],B.prototype,`behaviorTrigger`,void 0),N([S({type:Boolean})],B.prototype,`closable`,void 0),N([S({type:Number,attribute:`close-timeout`})],B.prototype,`closeTimeout`,void 0),N([S({type:String,reflect:!0})],B.prototype,`status`,void 0),N([S({type:Object})],B.prototype,`i18n`,void 0),B=N([A(),w({excessiveInstanceLimit:50})],B),v(B);var oC=`:host{--nve-sys-layer-popover-arrow-padding: 6px;--nve-sys-layer-popover-arrow-offset: 2px;--nve-sys-layer-popover-offset: 2px;--nve-sys-interaction-color: var(--color);--border-radius: var(--nve-ref-border-radius-sm);--border: 0;--background: var(--nve-sys-layer-popover-background);--color: var(--nve-sys-layer-popover-color);--padding: var(--nve-ref-size-200) var(--nve-ref-size-300);--box-shadow: var(--nve-ref-shadow-500);--font-size: var(--nve-ref-font-size-100);--font-weight: var(--nve-ref-font-weight-regular);--arrow-transform: translate(0, -2px) rotate(-45deg);--width: max-content;--height: initial;box-shadow:var(--box-shadow)}:host([status="muted"]){--background: var(--nve-sys-layer-overlay-background);--color: var(--nve-sys-layer-overlay-color)}[internal-host]{padding:var(--padding);border-radius:var(--border-radius);background:var(--background);color:var(--color);font-size:var(--font-size);font-weight:var(--font-weight);width:var(--width);height:var(--height);border:var(--border);white-space:initial}[internal-host]:has(nve-icon-button){padding-inline-end:var(--nve-ref-size-800)}.arrow{width:var(--nve-ref-size-300);height:var(--nve-ref-size-300);background:var(--background);transform:var(--arrow-transform);border-radius:var(--nve-ref-size-50);position:absolute}nve-icon-button{--color: inherit;position:absolute;inset-block-start:var(--nve-ref-size-50);inset-inline-end:var(--nve-ref-size-50)}::slotted([nve-text]){color:inherit!important}:host([position*="top"]){--arrow-transform: translate(0, -2px) rotate(-45deg)}:host([position*="right"]){--arrow-transform: translate(2px, 0) rotate(45deg)}:host([position*="bottom"]){--arrow-transform: translate(0, 2px) rotate(45deg)}:host([position*="left"]){--arrow-transform: translate(-2px, 0) rotate(45deg)}`,V=class extends x{constructor(...e){super(...e),this.position=`top`,this.popoverType=`hint`,this.typeNativePopoverController=new Zy(this)}static{this.styles=j([ub,oC])}static{this.metadata={tag:`nve-tooltip`,version:`0.0.0`}}render(){return y`<div internal-host><slot></slot></div><div part="arrow" class="arrow"></div>`}connectedCallback(){super.connectedCallback(),D(this),this._internals.role=`tooltip`}};N([S({type:String})],V.prototype,`anchor`,void 0),N([S({type:String})],V.prototype,`trigger`,void 0),N([S({type:String,reflect:!0})],V.prototype,`position`,void 0),N([S({type:String,reflect:!0})],V.prototype,`alignment`,void 0),N([S({type:Boolean,reflect:!0,attribute:`behavior-trigger`})],V.prototype,`behaviorTrigger`,void 0),N([S({type:String,reflect:!0})],V.prototype,`status`,void 0),N([S({type:Number,attribute:`open-delay`})],V.prototype,`openDelay`,void 0),N([LS(`.arrow`)],V.prototype,`popoverArrow`,void 0),V=N([w({excessiveInstanceLimit:50})],V),v(V);var sC=`:host{--nve-sys-interaction-state-base: var(--background, var(--nve-sys-layer-canvas-background));--color: var(--nve-sys-text-muted-color);--border-radius: var(--nve-ref-border-radius-full);--line-height: 0;--padding: 0;--height: var(--nve-ref-size-800);--min-width: var(--nve-ref-size-800);--font-size: calc(var(--width) / 2.3);--_icon-color: var(--color)}[internal-host]:after{display:none!important}:host([size="sm"]){--height: var(--nve-ref-size-700);--min-width: var(--nve-ref-size-700)}:host([size="lg"]){--min-width: var(--nve-ref-size-1000);--height: var(--nve-ref-size-1000);--padding: 0}:host([container="flat"][selected]) [interaction-state],:host([container="flat"]:state(selected)) [interaction-state],:host([container="flat"][pressed]) [interaction-state],:host([container="flat"]:state(pressed)) [interaction-state]{--nve-sys-interaction-state-ratio: var(--nve-sys-interaction-state-ratio-selected)}:host([container*="flat"]){--background: transparent;--border-radius: var(--nve-ref-border-radius-xs)}:host([container*="flat"]:state(disabled)){--color: var(--nve-sys-interaction-disabled-color);--background: transparent}:host([container*="flat"]:state(disabled)) [interaction-state]{--nve-sys-interaction-state-ratio: 0}:host([container*="flat"]:state(selected)){--color: var(--nve-sys-interaction-selected-color)}nve-icon{--color: var(--_icon-color);pointer-events:none}`,cC={copy:`copy`,copied:`copied`},lC=class extends hx{constructor(...e){super(...e),this.copied=!1,this.showToast=!1,this.showTooltip=!1,this.#e=new M(this,cC),this.i18n=this.#e.i18n,this.#t=()=>{this.behaviorCopy&&navigator.clipboard.writeText(this.value).then(()=>{this.showToast=!0,this.copied=!0}).catch(e=>{this.showToast=!1,console.error(e)})},this.#r=()=>{this.showTooltip=!0},this.#i=()=>{this.showTooltip=!1}}#e;static{this.styles=j([...hx.styles,sC])}static{this.metadata={tag:`nve-copy-button`,version:`0.0.0`}}static{this.elementDefinitions={[P.metadata.tag]:P,[B.metadata.tag]:B,[V.metadata.tag]:V}}render(){return y`<div id="btn" internal-host interaction-state focus-within><slot></slot>${this.copied?y`<nve-icon part="icon" name="check" status="success" .size="${this.size}" aria-hidden="true"></nve-icon>`:y`<slot name="icon"><nve-icon part="icon" name="copy" .size="${this.size}" aria-hidden="true"></nve-icon></slot>`}</div>${this.showToast?y`<nve-toast part="toast" @close="${this.#n}" status="success" anchor="btn" position="top" close-timeout="1500">${this.i18n.copied}</nve-toast>`:b} ${this.showTooltip&&!this.showToast?y`<nve-tooltip part="tooltip" exportparts="arrow:tooltip-arrow" anchor="btn">${this.ariaLabel??this.i18n.copy}</nve-tooltip>`:b}`}connectedCallback(){super.connectedCallback(),this.addEventListener(`click`,this.#t),this.addEventListener(`mouseenter`,this.#r),this.addEventListener(`mouseleave`,this.#i)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(`click`,this.#t),this.removeEventListener(`mouseenter`,this.#r),this.removeEventListener(`mouseleave`,this.#i)}#t;#n(){this.showToast=!1,this.copied=!1,this.showTooltip=!1}#r;#i};N([C()],lC.prototype,`copied`,void 0),N([C()],lC.prototype,`showToast`,void 0),N([C()],lC.prototype,`showTooltip`,void 0),N([S({type:Object})],lC.prototype,`i18n`,void 0),N([S({type:Boolean,reflect:!0,attribute:`behavior-copy`})],lC.prototype,`behaviorCopy`,void 0),N([S({type:String})],lC.prototype,`value`,void 0),lC=N([A()],lC),v(lC),g(`calendar`,()=>qn);var uC=`:host{--width: 100%;width:var(--width)}`,dC={expand:`expand`},fC=class extends R{get i18nDefaults(){return dC}static{this.styles=j([...R.styles,OS,uC])}static{this.metadata={tag:`nve-date`,version:`0.0.0`}}static{this.elementDefinitions={[I.metadata.tag]:I}}get suffixContent(){return y`<nve-icon-button part="icon-button" .ariaLabel="${this.i18n.expand}" icon-name="calendar" container="inline" @click="${this.showPicker}"></nve-icon-button>`}};N([S({type:String,reflect:!0})],fC.prototype,`container`,void 0),fC=N([A()],fC),v(fC);var pC=`:host{width:100%}`,mC={expand:`expand`},hC=class extends R{get i18nDefaults(){return mC}static{this.styles=j([...R.styles,OS,pC])}static{this.metadata={tag:`nve-datetime`,version:`0.0.0`}}static{this.elementDefinitions={[I.metadata.tag]:I}}get suffixContent(){return y`<nve-icon-button part="icon-button" .ariaLabel="${this.i18n.expand}" icon-name="calendar" container="inline" @click="${this.showPicker}"></nve-icon-button>`}};N([S({type:String,reflect:!0})],hC.prototype,`container`,void 0),hC=N([A()],hC),v(hC);var gC=`nve-dialog:has(nve-dialog-header),nve-dialog:has(nve-dialog-footer){&::part(_host){padding:0}&::part(_content){padding:var(--padding)}}`,_C=`:host{--nve-sys-interaction-background: var(--nve-sys-interaction-background-300);--nve-sys-interaction-field-background: var(--nve-sys-interaction-background-300);--nve-sys-layer-popover-arrow-padding: 6px;--nve-sys-layer-popover-arrow-offset: 4px;--nve-sys-layer-popover-offset: var(--nve-ref-space-xxl);--border: var(--nve-ref-border-width-sm) solid var(--nve-ref-border-color-muted);--border-radius: var(--nve-ref-border-radius-lg);--background: var(--nve-sys-layer-overlay-background);--color: var(--nve-sys-layer-overlay-color);--padding: var(--nve-ref-size-300) var(--nve-ref-size-400);--box-shadow: var(--nve-ref-shadow-500);--gap: var(--nve-ref-space-sm);--max-width: 600px;--min-height: 250px;--max-height: 100dvh;width:100vw;height:min-content;max-width:var(--max-width);max-height:var(--max-height);min-height:var(--min-height)}:host([size="sm"]){--max-width: 400px}:host([size="lg"]){--max-width: 840px}[internal-host]{border-radius:var(--border-radius);border:var(--border);background:var(--background);color:var(--color);box-shadow:var(--box-shadow);padding:var(--padding);max-height:var(--max-height);height:inherit;width:inherit;max-width:inherit;min-height:inherit;min-width:inherit}:host([modal])::backdrop{background:#00000080}.header{display:flex;gap:var(--gap)}.content{overflow:auto;min-height:inherit;scrollbar-color:var(--nve-sys-scrollbar-thumb-color) var(--nve-sys-scrollbar-track-color);scrollbar-width:var(--nve-sys-scrollbar-width);slot{gap:var(--gap);min-height:inherit;display:flex;flex-direction:column;align-items:flex-start}}nve-icon-button{position:absolute;top:var(--nve-ref-size-200);right:var(--nve-ref-size-200);z-index:99}`,vC={close:`close`},yC=class extends x{constructor(...e){super(...e),this.position=`center`,this.alignment=`center`,this.anchor=globalThis.document?.body,this.#e=new M(this,vC),this.i18n=this.#e.i18n,this.typeNativePopoverController=new Zy(this)}#e;get popoverType(){return this.modal?`auto`:`manual`}get popoverDismissible(){return this.closable??!1}static{this.styles=j([ub,_C])}static{this.metadata={tag:`nve-dialog`,version:`0.0.0`}}static{this.elementDefinitions={[I.metadata.tag]:I}}render(){return y`<div internal-host part="_host"><div class="header">${this.closable?y`<nve-icon-button part="close-button icon-button" exportparts="icon:icon-button-icon" size="sm" @click="${this.hidePopover}" icon-name="cancel" .ariaLabel="${this.i18n.close}"></nve-icon-button>`:``}<slot name="header"></slot></div><div class="content" part="_content"><slot></slot></div><slot name="footer"></slot></div>`}connectedCallback(){super.connectedCallback(),D(this),this._internals.role=`dialog`,T(this,gC)}};N([S({type:String,reflect:!0})],yC.prototype,`position`,void 0),N([S({type:String,reflect:!0})],yC.prototype,`alignment`,void 0),N([S({type:String,reflect:!0})],yC.prototype,`size`,void 0),N([S({type:Boolean})],yC.prototype,`closable`,void 0),N([S({type:Boolean,reflect:!0})],yC.prototype,`modal`,void 0),N([S({type:String})],yC.prototype,`anchor`,void 0),N([S({type:String})],yC.prototype,`trigger`,void 0),N([S({type:Boolean,reflect:!0,attribute:`behavior-trigger`})],yC.prototype,`behaviorTrigger`,void 0),N([S({type:Object})],yC.prototype,`i18n`,void 0),yC=N([w({excessiveInstanceLimit:50}),A()],yC);var bC=`:host{--border-bottom: var(--nve-ref-border-width-sm) solid var(--nve-ref-border-color);--padding: var(--nve-ref-size-400);display:block;width:100%}[internal-host]{border-bottom:var(--border-bottom);padding:var(--padding);color:var(--color)}`,xC=class extends x{static{this.styles=j([bC])}static{this.metadata={tag:`nve-dialog-header`,version:`0.0.0`,parents:[`nve-dialog`]}}render(){return y`<div internal-host><slot></slot></div>`}connectedCallback(){super.connectedCallback(),this.slot=`header`}},SC=`:host{--border-top: var(--nve-ref-border-width-sm) solid var(--nve-ref-border-color);--padding: var(--nve-ref-size-400);--gap: var(--nve-ref-space-sm);display:block;width:100%;margin-block-start:auto}[internal-host]{border-top:var(--border-top);padding:var(--padding);gap:var(--gap);display:flex;justify-content:end}`,CC=class extends x{static{this.styles=j([SC])}static{this.metadata={tag:`nve-dialog-footer`,version:`0.0.0`,parents:[`nve-dialog`]}}render(){return y`<div internal-host><slot></slot></div>`}connectedCallback(){super.connectedCallback(),this.slot=`footer`}};v(yC),v(xC),v(CC);var wC=`:host{--color: var(--nve-ref-border-color);--border-radius: 0;--padding: 0;--size: var(--nve-ref-border-width-sm);width:100%}[internal-host]{display:block;width:100%;height:var(--size);background-color:var(--color);border-radius:var(--border-radius);padding:var(--padding)}:host([orientation="vertical"]){align-self:stretch;height:inherit;width:var(--size)}:host([orientation="vertical"]) [internal-host]{height:100%;width:var(--size)}`,TC=class extends x{constructor(...e){super(...e),this.orientation=`horizontal`}static{this.styles=j([wC])}static{this.metadata={tag:`nve-divider`,version:`0.0.0`}}render(){return y`<div internal-host></div>`}connectedCallback(){super.connectedCallback(),D(this),this._internals.role=`separator`,this._internals.ariaOrientation=this.orientation}updated(e){super.updated(e),e.has(`orientation`)&&(this._internals.ariaOrientation=this.orientation)}};N([S({type:String,reflect:!0})],TC.prototype,`orientation`,void 0),v(TC);var EC=`:host{--gap: var(--nve-ref-space-xs);--font-size: var(--nve-ref-font-size-100);--font-weight: var(--nve-ref-font-weight-semibold);--background: var(--status-color);--color: var(--nve-sys-text-white-color);--border-radius: var(--nve-ref-border-radius-full);--height: var(--nve-ref-size-300);--width: var(--nve-ref-size-300);--padding: 0;--border: 0;width:auto;display:inline-flex}[internal-host]{font-weight:var(--font-weight);font-size:var(--font-size);gap:var(--gap);background:var(--background);color:var(--color);border-radius:var(--border-radius);height:var(--height);width:var(--width);padding:var(--padding);border:var(--border);display:flex;line-height:1em;place-items:center;place-content:center}:host([size="sm"]){--height: var(--nve-ref-size-200);--width: var(--nve-ref-size-200);--font-size: var(--nve-ref-font-size-50)}:host([size="lg"]){--height: var(--nve-ref-size-400);--width: var(--nve-ref-size-400);--font-size: var(--nve-ref-font-size-200)}:host(:state(has-text)){--width: fit-content;--height: fit-content;--padding: calc(var(--font-size) * .1) calc(var(--font-size) * .5)}::slotted([nve-text]){color:inherit!important}:host([status="warning"]){--color: var(--nve-sys-text-black-color)}`,DC=class extends x{static{this.styles=j([EC,cb,lb])}static{this.metadata={tag:`nve-dot`,version:`0.0.0`}}render(){return y`<div internal-host><slot @slotchange="${()=>this.#e()}"></slot></div>`}connectedCallback(){super.connectedCallback(),D(this),this._internals.role=`img`}#e(){this.textContent.length?this._internals.states.add(`has-text`):this._internals.states.delete(`has-text`)}};N([S({type:String,reflect:!0})],DC.prototype,`status`,void 0),N([S({type:String,reflect:!0})],DC.prototype,`size`,void 0),v(DC),g(`drag`,()=>qa);var OC=`:host{--nve-sys-interaction-state-base: transparent;--cursor: move;--color: var(--nve-sys-text-muted-color);--width: var(--nve-ref-size-800);--height: var(--nve-ref-size-800);--border-radius: var(--nve-ref-border-radius-xs);display:inline-flex;user-select:none}:host([draggable="true"]){-webkit-user-drag:element}:host(:state(disabled)),:host([readonly]){-webkit-user-drag:none}[internal-host]{display:flex;align-items:center;justify-content:center;width:var(--width);height:var(--height);border-radius:var(--border-radius);cursor:var(--cursor)}nve-icon{--color: inherit;pointer-events:none}:host(:state(pressed)){--color: var(--nve-sys-interaction-selected-color)}:host(:hover:not(:state(disabled),[readonly],:state(pressed))){--color: var(--nve-sys-interaction-hover-color)}:host(:state(pressed)) [interaction-state]{--nve-sys-interaction-state-ratio: var(--nve-sys-interaction-state-ratio-selected)}@container style(--nve-sys-color-scheme: dark){:host{--nve-sys-interaction-state-ratio-selected: 16% !important;--nve-sys-interaction-state-ratio-hover: 12% !important}}:host(:state(disabled)){--color: var(--nve-sys-interaction-disabled-color);--cursor: default}:host(:state(disabled)) [interaction-state]{--nve-sys-interaction-state-ratio: 0}`,kC=class extends px(x){static{this.styles=j([OC])}static{this.metadata={tag:`nve-drag-handle`,version:`0.0.0`}}static{this.elementDefinitions={[P.metadata.tag]:P}}constructor(){super(),this.type=`button`,this.pressed=!1}render(){return y`<div internal-host interaction-state focus-within><nve-icon name="drag" .appearance="${this.pressed||this.expanded?`solid`:`outline`}" aria-hidden="true" part="icon"></nve-icon></div>`}connectedCallback(){super.connectedCallback(),this.setAttribute(`nve-draggable`,`handle`),this.hasAttribute(`draggable`)||(this.draggable=!0),this.addEventListener(`click`,this.#e),this.addEventListener(`keydown`,this.#r),this.addEventListener(`dragstart`,this.#t),this.addEventListener(`dragend`,this.#n)}disconnectedCallback(){this.removeEventListener(`click`,this.#e),this.removeEventListener(`keydown`,this.#r),this.removeEventListener(`dragstart`,this.#t),this.removeEventListener(`dragend`,this.#n),super.disconnectedCallback()}#e=e=>{e.target!==this||e.defaultPrevented||this.disabled||this.readOnly||(this.pressed=!this.pressed)};#t=e=>{(this.disabled||this.readOnly)&&e.preventDefault()};#n=()=>{this._internals.states.delete(`active`)};#r=e=>{e.key!==` `||e.target!==this||e.defaultPrevented||this.disabled||this.readOnly||e.preventDefault()}};kC=N([A()],kC),v(kC);var AC=`:host{--nve-sys-interaction-background: var(--nve-sys-interaction-background-300);--nve-sys-interaction-field-background: var(--nve-sys-interaction-background-300);--nve-sys-layer-popover-arrow-padding: 0px;--nve-sys-layer-popover-arrow-offset: 0px;--nve-sys-layer-popover-offset: 0px;--border: var(--nve-ref-border-width-sm) solid var(--nve-ref-border-color-muted);--background: var(--nve-sys-layer-overlay-background);--color: var(--nve-sys-layer-overlay-color);--padding: 0;--box-shadow: var(--nve-ref-shadow-500);--gap: var(--nve-ref-space-sm);--top: 0px;--max-width: 400px;--width: 100vw;width:var(--width);max-width:var(--max-width);height:calc(100dvh - var(--top));margin:initial!important;margin-block-start:var(--top)!important;position-area:unset!important}:host([size="sm"]){--max-width: 280px}:host([size="lg"]){--max-width: 540px}:host([position="left"]){transform:translate(calc(-1 * var(--width)))!important}:host([position="right"]){transform:translate(var(--width))!important}:host(:popover-open){transform:translate(0)!important}:host([inline]){--nve-sys-interaction-background: var(--nve-sys-interaction-background-200);--nve-sys-interaction-field-background: var(--nve-sys-interaction-background-200);--background: var(--nve-sys-layer-container-background);--box-shadow: none;--border: 0;transition:none!important}[internal-host]{border:var(--border);background:var(--background);color:var(--color);box-shadow:var(--box-shadow);bottom:0!important;display:grid;grid-template-rows:auto minmax(0,1fr) auto;height:100%;width:100%}::backdrop{background:transparent}:host([modal])::backdrop{background:#00000012}.header{display:flex;gap:var(--gap)}.content{padding:var(--padding);display:flex;flex-direction:column;align-items:start;overflow:auto;flex:1}nve-icon-button{position:absolute;top:var(--nve-ref-size-200);right:var(--nve-ref-size-200);z-index:99}:host([position="bottom"]),:host([position="top"]){min-width:100%;height:max-content}:host([position="bottom"]) [internal-host],:host([position="top"]) [internal-host]{height:min-content}:host([position="left"]){inset:auto auto auto 0!important}:host([position="right"]){inset:auto 0 auto auto!important}:host([position="top"]){inset:0 auto auto!important}:host([position="bottom"]){inset:auto auto 0!important}`,jC={close:`close`},MC=class extends x{constructor(...e){super(...e),this.position=`left`,this.anchor=globalThis.document?.body,this.#e=new M(this,jC),this.i18n=this.#e.i18n,this.typeNativePopoverController=new Zy(this),this.#n=e=>{this.inline&&(this.#t&&e.newState===`closed`?this.#t.remove():(this.#t=py(this),this.after(this.#t)))}}#e;get popoverType(){return this.modal?`auto`:`manual`}get popoverDismissible(){return this.closable??!1}static{this.styles=j([ub,AC])}static{this.metadata={tag:`nve-drawer`,version:`0.0.0`}}static{this.elementDefinitions={[I.metadata.tag]:I}}render(){return y`<div internal-host><div class="header"><nve-icon-button part="icon-button" exportparts="icon:icon-button-icon" .hidden="${!this.closable}" @click="${this.hidePopover}" icon-name="cancel" .ariaLabel="${this.i18n.close}" container="flat"></nve-icon-button><slot name="header"></slot></div><div class="content"><slot></slot></div><div><slot name="footer"></slot></div></div>`}#t;connectedCallback(){super.connectedCallback(),this.addEventListener(`toggle`,this.#n)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(`toggle`,this.#n),this.#t?.remove(),this.#t=void 0}#n};N([S({type:String,reflect:!0})],MC.prototype,`position`,void 0),N([S({type:String,reflect:!0})],MC.prototype,`size`,void 0),N([S({type:Boolean})],MC.prototype,`closable`,void 0),N([S({type:Boolean,reflect:!0})],MC.prototype,`modal`,void 0),N([S({type:String})],MC.prototype,`anchor`,void 0),N([S({type:String})],MC.prototype,`trigger`,void 0),N([S({type:Boolean,reflect:!0})],MC.prototype,`inline`,void 0),N([S({type:Boolean,reflect:!0,attribute:`behavior-trigger`})],MC.prototype,`behaviorTrigger`,void 0),N([S({type:Object})],MC.prototype,`i18n`,void 0),MC=N([O(),A()],MC);var NC=`:host{--padding: var(--nve-ref-size-300) var(--nve-ref-size-400);--gap: var(--nve-ref-space-sm);width:100%;height:100%;flex:1;justify-content:stretch;flex-direction:column;display:flex;overflow:auto;gap:var(--gap);contain:none}[internal-host]{background:var(--background);padding:var(--padding);height:100%;width:100%;flex:1}::slotted(nve-menu){--width: 100%}`,PC=class extends x{static{this.styles=j([NC])}static{this.metadata={tag:`nve-drawer-content`,version:`0.0.0`,parents:[`nve-drawer`]}}render(){return y`<div internal-host><slot></slot></div>`}},FC=`:host{--border-top: var(--nve-ref-border-width-sm) solid var(--nve-ref-border-color);--padding: var(--nve-ref-size-300) var(--nve-ref-size-400);--gap: var(--nve-ref-space-sm);--min-height: calc(var(--nve-ref-size-1000) + var(--nve-ref-size-200));display:block}[internal-host]{background:var(--background);border-top:var(--border-top);padding:var(--padding);gap:var(--gap);min-height:var(--min-height);display:flex;align-items:center}`,IC=class extends x{static{this.styles=j([FC])}static{this.metadata={tag:`nve-drawer-footer`,version:`0.0.0`,parents:[`nve-drawer`]}}render(){return y`<div internal-host><slot></slot></div>`}connectedCallback(){super.connectedCallback(),this.slot=`footer`}},LC=`:host{--border-bottom: var(--nve-ref-border-width-sm) solid var(--nve-ref-border-color);--min-height: calc(var(--nve-ref-size-1000) + var(--nve-ref-size-200));--padding: var(--nve-ref-size-300);display:block;width:100%}[internal-host]{background:var(--background);border-bottom:var(--border-bottom);padding:var(--padding);color:var(--color);min-height:var(--min-height);display:flex;align-items:center}`,RC=class extends x{static{this.styles=j([LC])}static{this.metadata={tag:`nve-drawer-header`,version:`0.0.0`,parents:[`nve-drawer`]}}render(){return y`<div internal-host><slot></slot></div>`}connectedCallback(){super.connectedCallback(),this.slot=`header`}};v(MC),v(IC),v(RC),v(PC);var zC=`nve-dropdown-group>nve-dropdown+nve-dropdown{--nve-sys-layer-popover-offset: calc(var(--nve-ref-size-400) + 2px);margin-block-start:calc(var(--nve-ref-size-400) * -1)}`,BC=class extends x{static{this.styles=j([])}static{this.metadata={tag:`nve-dropdown-group`,version:`0.0.0`,children:[`nve-dropdown`]}}render(){return y`<div internal-host><slot @slotchange="${this.#n}"></slot></div>`}#e=/* @__PURE__ */ new WeakMap;#t;connectedCallback(){super.connectedCallback(),T(this,zC),globalThis.document?.addEventListener(`pointerup`,this.#r),this.addEventListener(`keydown`,this.#i),this.addEventListener(`beforetoggle`,this.#u,!0),this.addEventListener(`open`,this.#l),this.addEventListener(`close`,this.#d)}disconnectedCallback(){super.disconnectedCallback(),globalThis.document?.removeEventListener(`pointerup`,this.#r),this.removeEventListener(`keydown`,this.#i),this.removeEventListener(`beforetoggle`,this.#u,!0),this.removeEventListener(`open`,this.#l),this.removeEventListener(`close`,this.#d)}#n(){this.dropdowns.forEach(e=>{e.popoverType=`manual`})}#r=e=>{let t=this.dropdowns.filter(e=>e.matches(`:popover-open`));t.length&&t.every(t=>Zv(e,t))&&this.close()};#i(e){let t=e.code===`Escape`||e.code===`ArrowLeft`||e.code===`ArrowRight`;if(e.defaultPrevented||!t)return;let n=e.composedPath(),r=this.#a(n),i=this.#c(r);(i||r===this)&&(e.code===`Escape`?(e.preventDefault(),e.stopPropagation(),this.close()):i&&this.#o(e,n,i))}#a(e){return e.find(e=>e instanceof HTMLElement&&(e.localName===`nve-dropdown`||e.localName===`nve-dropdown-group`))}#o(e,t,n){let r=Rv(this.ownerDocument);if(!(r instanceof HTMLElement)||!t.includes(r))return;let i=getComputedStyle(this).direction===`rtl`,a=i?`ArrowLeft`:`ArrowRight`,o=i?`ArrowRight`:`ArrowLeft`;e.code===a?this.#s(r,e):e.code===o&&r.localName===`nve-menu-item`&&(e.preventDefault(),e.stopPropagation(),n.hidePopover())}#s(e,t){if(e.matches(`[disabled]`)||!(`popoverTargetElement`in e))return;let n=e.popoverTargetElement,r=this.#c(n);r&&(t.preventDefault(),t.stopPropagation(),r.showPopover({source:e}))}#c(e){return this.dropdowns.find(t=>t===e)}#l(e){let t=this.#c(e.composedPath()[0]);t&&(this.#t?.matches(`:popover-open`)||(this.#t=t),this.#e.delete(t),e.detail?.trigger instanceof HTMLElement&&this.#e.set(t,e.detail.trigger),$v(t)[0]?.focus())}#u(e){let t=this.#c(e.composedPath()[0]);t&&e.newState===`closed`&&!t.matches(`:focus-within`)&&this.#e.delete(t)}#d(e){let t=this.#c(e.composedPath()[0]);if(t){let e=this.#e.get(t);t===this.#t&&(this.#t=void 0),this.#e.delete(t);let n=this.ownerDocument.activeElement;(!n||n===this.ownerDocument.body||t.matches(`:focus-within`))&&e?.isConnected&&e.focus()}}close(){let e=this.#t?this.#e.get(this.#t):void 0;this.#t=void 0,this.#e=/* @__PURE__ */ new WeakMap;let t=Array.from(this.querySelectorAll(`nve-dropdown`));t.forEach(e=>e.hidePopover());let n=this.ownerDocument.activeElement;(!n||n===this.ownerDocument.body||t.some(e=>e.matches(`:focus-within`)))&&e?.isConnected&&e.focus()}};N([L({selector:`nve-dropdown`})],BC.prototype,`dropdowns`,void 0),BC=N([w()],BC),v(BC),g(`upload`,()=>Bh);var VC=`:host{--background: inherit;--min-height: 50px;--border-radius: var(--nve-ref-border-radius-xs);--border-color: var(--nve-ref-border-color);--padding: var(--nve-ref-space-lg)}[internal-host]{display:flex;flex-direction:column;gap:var(--nve-ref-space-md)}.container{background:var(--background);border-radius:var(--border-radius);justify-content:center;gap:var(--nve-ref-space-xs);min-height:var(--min-height);padding:var(--padding);color:var(--nve-sys-text-color);position:relative;cursor:pointer;display:flex;flex-direction:column;align-items:center;user-select:none}.dropzone-border{border-radius:var(--border-radius);color:var(--border-color);position:absolute;inset:0}.icon{padding:var(--nve-ref-space-xs);border-radius:var(--nve-ref-border-radius-sm);background:var(--nve-sys-layer-canvas-accent-background)}slot[name=icon]::slotted(*){padding:var(--nve-ref-space-xs);border-radius:var(--nve-ref-border-radius-sm);background:var(--nve-sys-layer-canvas-accent-background)}.text-emphasized{color:var(--nve-sys-text-emphasis-color)}.dropzone-text-center{text-align:center;line-height:var(--nve-ref-font-line-height-relaxed);font-size:var(--nve-ref-font-size-200)}.dropzone-text-center:first-letter{text-transform:capitalize}.dropzone-text-bold{font-weight:var(--nve-ref-font-weight-semibold)}.text-muted{color:var(--nve-sys-text-muted-color);font-size:var(--nve-ref-font-size-100);font-weight:var(--nve-ref-font-weight-regular)}:host([highlighted]),:host(:hover){--background: color-mix(in oklab, transparent, var(--nve-sys-accent-secondary-background) 20%);--border-color: var(--nve-ref-border-color-emphasis);.icon{background:var(--nve-sys-accent-secondary-background);--color: var(--nve-sys-text-white-color)}slot[name=icon]::slotted(*){background:var(--nve-sys-accent-secondary-background);--color: var(--nve-sys-text-white-color)}.text-emphasized{color:var(--nve-sys-text-color)}}:host([highlighted]),:host(:active){--background: color-mix(in oklab, transparent, var(--nve-sys-accent-secondary-background) 30%)}`;function HC(e){return e.split(`,`).map(e=>{let t=e.trim();return t.startsWith(`.`)&&(t=t.slice(1)),t.endsWith(`/*`)&&(t=t.split(`/`)[0]),t.includes(`/`)&&(t=t.split(`/`)[1]),t.includes(`+`)&&(t=t.split(`+`)[0]),t})}function UC(e,t){let n=t,r=e;return!r||!Array.isArray(r)||r.length===0?{validity:{valid:!0}}:r.filter(e=>e.size>n.maxFileSize).length>0?{validity:{rangeOverflow:!0,valid:!1},message:`Some files exceed the maximum size of ${pv(n.maxFileSize)}`}:{validity:{valid:!0}}}function WC(e,t){let n=t,r=e;if(!r||!Array.isArray(r)||r.length===0)return{validity:{valid:!0}};let i=HC(n.accept);return r.filter(e=>!i.some(t=>e.type.includes(t))).length>0?{validity:{typeMismatch:!0,valid:!1},message:`Some files are not of accepted types`}:{validity:{valid:!0}}}var GC={or:`or`,files:`files`,dragAndDrop:`drag & drop`,browseFiles:`browse files`,maxFileSize:`max file size`},KC=class extends Rb(x){#e;static{this.styles=j([VC])}static{this.metadata={tag:`nve-dropzone`,version:`0.0.0`,validators:[WC,UC],valueSchema:{type:`array`,items:{type:`object`,properties:{name:{type:`string`},size:{type:`number`},type:{type:`string`}}}}}}static{this.elementDefinitions={[P.metadata.tag]:P}}formResetCallback(){this.value=[],this.requestUpdate()}constructor(){super(),this.accept=`image/gif, image/jpeg, image/png, image/svg+xml`,this.maxFileSize=2*1024**2,this.#e=new M(this,GC),this.i18n=this.#e.i18n,this.value=[]}connectedCallback(){super.connectedCallback(),this.setAttribute(`nve-control`,``),globalThis.document.addEventListener(`dragover`,this.#t),globalThis.document.addEventListener(`drop`,this.#t)}disconnectedCallback(){super.disconnectedCallback(),globalThis.document.removeEventListener(`dragover`,this.#t),globalThis.document.removeEventListener(`drop`,this.#t)}#t(e){e.preventDefault(),e.stopPropagation()}#n(){this.fileInput.click()}#r(e){this.#t(e),this.#u(!0)}#i(e){this.#t(e),this.#u(!0)}#a(e){this.#t(e),this.#u(!1)}#o(e){this.#t(e),this.#u(!1);let t=Array.from(e.dataTransfer.files);this.#c(t)}#s(e){this.#t(e);let t=Array.from(this.fileInput.files);this.#c(t),this.fileInput.value=``}#c(e){this.value=[...this.value??[],...e],this.dispatchChangeEvent()}#l(e){let t=HC(e);if(t.length===1)return t[0].toUpperCase();let n=t.pop();return`${t.join(`, `).toUpperCase()} or ${n.toUpperCase()}`}#u(e){this.toggleAttribute(`highlighted`,e)}#d(e){e.target.assignedNodes().forEach(e=>iy(e))}render(){return y`<div internal-host><div class="container" @click="${this.#n}" @dragenter="${this.#r}" @dragover="${this.#i}" @dragleave="${this.#a}" @drop="${this.#o}"><svg class="dropzone-border" width="100%" height="100%" xmlns="http://www.w3.org/2000/svg"><rect width="100%" height="100%" fill="none" rx="4" ry="4" stroke="currentColor" stroke-width="2" stroke-dasharray="6,6" stroke-dashoffset="0" stroke-linecap="square"/></svg><slot name="icon"><nve-icon part="icon" class="icon" name="upload"></nve-icon></slot><slot @slotchange="${this.#d}"><div class="dropzone-text-center"><div class="dropzone-text-bold">${this.i18n.dragAndDrop} ${this.i18n.files} ${this.i18n.or} <span class="text-emphasized">${this.i18n.browseFiles}</span></div><div class="text-muted">${this.#l(this.accept)} — ${this.i18n.maxFileSize} ${pv(this.maxFileSize)}</div></div></slot><input id="dropzone-input" type="file" accept="${this.accept}" @change="${this.#s}" multiple="multiple" hidden></div></div>`}};N([S()],KC.prototype,`accept`,void 0),N([S({attribute:`max-file-size`,type:Number})],KC.prototype,`maxFileSize`,void 0),N([S({type:Object})],KC.prototype,`i18n`,void 0),N([LS(`#dropzone-input`)],KC.prototype,`fileInput`,void 0),KC=N([A()],KC),v(KC);var qC=`:host{--background: var(--nve-sys-interaction-background);--padding: 0 var(--nve-ref-size-300);--border-radius: var(--nve-ref-border-radius-lg);--border: 0;--font-weight: var(--nve-ref-font-weight-semibold);--font-size: var(--nve-ref-font-size-200);--text-decoration: none;--cursor: pointer;--gap: var(--nve-ref-space-xxs);--height: var(--nve-ref-size-800);width:100%}`,JC=`nve-file>input{color:var(--color)}nve-file>input::file-selector-button{background:var(--background);padding:var(--padding);height:var(--height);width:var(--width);border-radius:var(--border-radius);border:var(--border);text-decoration:var(--text-decoration);font-weight:var(--font-weight);font-size:var(--font-size);cursor:var(--cursor);gap:var(--gap);margin-inline-end:var(--nve-ref-space-sm);display:inline-flex;place-items:center;appearance:none;line-height:1.2em}nve-file>input::file-selector-button:hover{--color: var(--nve-sys-interaction-hover-color);--background: var(--nve-sys-interaction-background)}nve-file>input::file-selector-button:active{--color: var(--nve-sys-interaction-active-color);--background: var(--nve-sys-interaction-background)}`,YC=class extends R{static{this.styles=j([...R.styles,qC])}static{this.metadata={tag:`nve-file`,version:`0.0.0`}}connectedCallback(){super.connectedCallback(),T(this,JC)}};v(YC);var XC=`:host{display:inline}[internal-host]{color:var(--nve-sys-text-color, inherit)}slot{display:none}`,ZC=[`b`,`kb`,`mb`,`gb`,`tb`,`pb`],QC=[`decimal`,`binary`],$C=[`short`,`long`],ew={b:{short:`B`,singular:`byte`,plural:`bytes`},kb:{short:`kB`,singular:`kilobyte`,plural:`kilobytes`},mb:{short:`MB`,singular:`megabyte`,plural:`megabytes`},gb:{short:`GB`,singular:`gigabyte`,plural:`gigabytes`},tb:{short:`TB`,singular:`terabyte`,plural:`terabytes`},pb:{short:`PB`,singular:`petabyte`,plural:`petabytes`}},tw={b:{short:`B`,singular:`byte`,plural:`bytes`},kb:{short:`KiB`,singular:`kibibyte`,plural:`kibibytes`},mb:{short:`MiB`,singular:`mebibyte`,plural:`mebibytes`},gb:{short:`GiB`,singular:`gibibyte`,plural:`gibibytes`},tb:{short:`TiB`,singular:`tebibyte`,plural:`tebibytes`},pb:{short:`PiB`,singular:`pebibyte`,plural:`pebibytes`}};function nw(e){return QC.some(t=>t===e)}function rw(e){return ZC.some(t=>t===e)}function iw(e){return $C.some(t=>t===e)}var aw=class extends x{constructor(...e){super(...e),this.display=`decimal`,this.unitDisplay=`short`}static{this.styles=j([XC])}static{this.metadata={tag:`nve-format-bytes`,version:`0.0.0`}}get#e(){let e=Number.isNaN(this.value)?this.getAttribute(`value`)??this.value:this.value;return String(e??this.textContent?.trim()??``)}get#t(){return this.locale??(globalThis.document?.documentElement?.lang||void 0)}get#n(){let e=this.#e;if(!e)return null;let t=Number(e);return Number.isFinite(t)?t:null}#r(e,t){let n=t===`binary`?1024:1e3,r=Math.abs(e);for(let e=ZC.length-1;e>0;e--){let t=ZC[e];if(t&&r>=n**e)return t}return`b`}#i(e,t){let n=this.display===`binary`?tw[e]:ew[e];return this.unitDisplay===`short`?n.short:Math.abs(t)===1?n.singular:n.plural}#a(){return nw(this.display)&&iw(this.unitDisplay)&&(this.unit===void 0||rw(this.unit))}get#o(){let e=this.maximumFractionDigits??Math.max(this.minimumFractionDigits??0,2);return{minimumFractionDigits:this.minimumFractionDigits,maximumFractionDigits:e}}#s(e){return Number(new Intl.NumberFormat(`en-US-u-nu-latn`,{...this.#o,useGrouping:!1}).format(e))}#c(e){return new Intl.NumberFormat(this.#t,this.#o).format(e)}get#l(){let e=this.#e;if(!e)return``;let t=this.#n;if(t===null||!this.#a())return e;let n=this.unit??this.#r(t,this.display),r=ZC.indexOf(n),i=t/(this.display===`binary`?1024:1e3)**r;try{let e=this.#s(i);return`${this.#c(e)} ${this.#i(n,e)}`}catch{return e}}render(){return y`<data internal-host value="${this.#e}">${this.#l}<slot @slotchange="${this.#u}" hidden></slot></data>`}#u(){this.requestUpdate()}};N([S({type:Number})],aw.prototype,`value`,void 0),N([S({type:String})],aw.prototype,`display`,void 0),N([S({type:String})],aw.prototype,`unit`,void 0),N([S({type:String,attribute:`unit-display`})],aw.prototype,`unitDisplay`,void 0),N([S({type:String})],aw.prototype,`locale`,void 0),N([S({type:Number,attribute:`minimum-fraction-digits`})],aw.prototype,`minimumFractionDigits`,void 0),N([S({type:Number,attribute:`maximum-fraction-digits`})],aw.prototype,`maximumFractionDigits`,void 0),aw=N([O()],aw),v(aw);var ow=`:host{display:inline}[internal-host]{color:var(--nve-sys-text-color, inherit)}slot{display:none}`,H=class extends x{static{this.styles=j([ow])}static{this.metadata={tag:`nve-format-datetime`,version:`0.0.0`}}get#e(){return this.date??this.textContent?.trim()??``}get#t(){return this.locale??(globalThis.document?.documentElement?.lang||void 0)}get#n(){let e=this.#e;if(!e)return``;let t=this.#s(e);if(!t)return e;try{return new Intl.DateTimeFormat(this.#t,this.#r).format(t)}catch{return e}}get#r(){return this.#i?this.#a:this.#o}get#i(){return this.dateStyle!==void 0||this.timeStyle!==void 0}get#a(){let e={};return this.dateStyle&&(e.dateStyle=this.dateStyle),this.timeStyle&&(e.timeStyle=this.timeStyle),this.timeZone&&(e.timeZone=this.timeZone),e}get#o(){let e={};return this.weekday&&(e.weekday=this.weekday),this.year&&(e.year=this.year),this.month&&(e.month=this.month),this.day&&(e.day=this.day),this.hour&&(e.hour=this.hour),this.minute&&(e.minute=this.minute),this.second&&(e.second=this.second),this.timeZoneName&&(e.timeZoneName=this.timeZoneName),this.timeZone&&(e.timeZone=this.timeZone),e}#s(e){let t=new Date(e);return isNaN(t.getTime())?null:t}render(){return y`<time internal-host datetime="${this.#e}">${this.#n}<slot @slotchange="${this.#c}" hidden></slot></time>`}#c(){this.requestUpdate()}};N([S({type:String})],H.prototype,`date`,void 0),N([S({type:String})],H.prototype,`locale`,void 0),N([S({type:String})],H.prototype,`weekday`,void 0),N([S({type:String})],H.prototype,`year`,void 0),N([S({type:String})],H.prototype,`month`,void 0),N([S({type:String})],H.prototype,`day`,void 0),N([S({type:String})],H.prototype,`hour`,void 0),N([S({type:String})],H.prototype,`minute`,void 0),N([S({type:String})],H.prototype,`second`,void 0),N([S({type:String,attribute:`date-style`})],H.prototype,`dateStyle`,void 0),N([S({type:String,attribute:`time-style`})],H.prototype,`timeStyle`,void 0),N([S({type:String,attribute:`time-zone-name`})],H.prototype,`timeZoneName`,void 0),N([S({type:String,attribute:`time-zone`})],H.prototype,`timeZone`,void 0),H=N([O()],H),v(H);var sw=`:host{display:inline}[internal-host]{color:var(--nve-sys-text-color, inherit)}slot{display:none}`,cw=[[`currency`,`currency`],[`currencyDisplay`,`currencyDisplay`],[`currencySign`,`currencySign`],[`notation`,`notation`],[`compactDisplay`,`compactDisplay`],[`unit`,`unit`],[`unitDisplay`,`unitDisplay`],[`signDisplay`,`signDisplay`]],lw=[[`minimumFractionDigits`,`minimumFractionDigits`],[`maximumFractionDigits`,`maximumFractionDigits`],[`minimumIntegerDigits`,`minimumIntegerDigits`]],U=class extends x{constructor(...e){super(...e),this.formatStyle=`decimal`}static{this.styles=j([sw])}static{this.metadata={tag:`nve-format-number`,version:`0.0.0`}}get#e(){return this.number??this.textContent?.trim()??``}get#t(){return this.locale??(globalThis.document?.documentElement?.lang||void 0)}get#n(){let e=this.#e;if(!e)return null;let t=Number(e);return Number.isFinite(t)?t:null}get#r(){let e={style:this.formatStyle};for(let[t,n]of cw){let r=this[t];r!==void 0&&(e[n]=r)}for(let[t,n]of lw){let r=this[t];r!==void 0&&(e[n]=r)}return this.useGrouping!==void 0&&(e.useGrouping=this.useGrouping===`false`?!1:this.useGrouping===`true`||this.useGrouping),e}get#i(){let e=this.#e;if(!e)return``;let t=this.#n;if(t===null)return e;try{return new Intl.NumberFormat(this.#t,this.#r).format(t)}catch{return e}}render(){return y`<data internal-host value="${this.#e}">${this.#i}<slot @slotchange="${this.#a}" hidden></slot></data>`}#a(){this.requestUpdate()}};N([S({type:String})],U.prototype,`number`,void 0),N([S({type:String})],U.prototype,`locale`,void 0),N([S({type:String,attribute:`format-style`})],U.prototype,`formatStyle`,void 0),N([S({type:String})],U.prototype,`currency`,void 0),N([S({type:String,attribute:`currency-sign`})],U.prototype,`currencySign`,void 0),N([S({type:String,attribute:`currency-display`})],U.prototype,`currencyDisplay`,void 0),N([S({type:String})],U.prototype,`unit`,void 0),N([S({type:String,attribute:`unit-display`})],U.prototype,`unitDisplay`,void 0),N([S({type:String})],U.prototype,`notation`,void 0),N([S({type:String,attribute:`compact-display`})],U.prototype,`compactDisplay`,void 0),N([S({type:String,attribute:`sign-display`})],U.prototype,`signDisplay`,void 0),N([S({type:String,attribute:`use-grouping`})],U.prototype,`useGrouping`,void 0),N([S({type:Number,attribute:`minimum-fraction-digits`})],U.prototype,`minimumFractionDigits`,void 0),N([S({type:Number,attribute:`maximum-fraction-digits`})],U.prototype,`maximumFractionDigits`,void 0),N([S({type:Number,attribute:`minimum-integer-digits`})],U.prototype,`minimumIntegerDigits`,void 0),U=N([O()],U),v(U);var uw=`:host{display:inline}[internal-host]{color:var(--nve-sys-text-color, inherit)}slot{display:none}`,dw={second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:2592e6,year:31536e6},fw=[{unit:`second`,max:60},{unit:`minute`,max:60},{unit:`hour`,max:24},{unit:`day`,max:7},{unit:`week`,max:4},{unit:`month`,max:12},{unit:`year`,max:1/0}],pw=class extends x{constructor(...e){super(...e),this.numeric=`always`,this.formatStyle=`long`,this.unit=`auto`,this.sync=!1}static{this.styles=j([uw])}static{this.metadata={tag:`nve-format-relative-time`,version:`0.0.0`}}#e;get#t(){return this.date??this.textContent?.trim()??``}get#n(){return this.locale??(globalThis.document?.documentElement?.lang||void 0)}#r(e){let t=Math.abs(e),n=e<0?-1:1;for(let{unit:e,max:r}of fw){let i=Math.round(t/dw[e]);if(i<r)return{value:n*i,unit:e}}return{value:n*Math.round(t/dw.year),unit:`year`}}#i(e,t){return Math.round(e/dw[t])}#a(e){return this.unit===`auto`?this.#r(e):{unit:this.unit,value:this.#i(e,this.unit)}}get#o(){let e=this.#t;if(!e)return``;let t=new Date(e);if(isNaN(t.getTime()))return e;let{value:n,unit:r}=this.#a(t.getTime()-Date.now());try{return new Intl.RelativeTimeFormat(this.#n,{numeric:this.numeric,style:this.formatStyle}).format(n,r)}catch{return e}}#s(){let e=this.#t;if(!e)return 6e4;let t=Math.abs(new Date(e).getTime()-Date.now());return t<6e4?1e4:t<36e5?3e4:t<864e5?3e5:36e5}#c(){this.#l(),this.sync&&(this.#e=setTimeout(()=>{this.requestUpdate(),this.#c()},this.#s()))}#l(){this.#e!==void 0&&(clearTimeout(this.#e),this.#e=void 0)}connectedCallback(){super.connectedCallback(),this.sync&&this.#c()}disconnectedCallback(){this.#l(),super.disconnectedCallback()}updated(e){e.has(`sync`)&&(this.sync?this.#c():this.#l())}render(){return y`<time internal-host datetime="${this.#t}">${this.#o}<slot @slotchange="${this.#u}" hidden></slot></time>`}#u(){this.requestUpdate()}};N([S({type:String})],pw.prototype,`date`,void 0),N([S({type:String})],pw.prototype,`locale`,void 0),N([S({type:String})],pw.prototype,`numeric`,void 0),N([S({type:String,attribute:`format-style`})],pw.prototype,`formatStyle`,void 0),N([S({type:String})],pw.prototype,`unit`,void 0),N([S({type:Boolean})],pw.prototype,`sync`,void 0),pw=N([O()],pw),v(pw);var mw=`…`;function hw(e){return gw(Array.from(e,e=>e.textContent??``).join(` `))}function gw(e){return e.replace(/\s+/gu,` `).trim()}function _w(e,{position:t,strategy:n,bias:r,preserve:i,availableWidth:a,measureText:o}){if(!e||!Number.isFinite(a))return e;if(a<=0)return``;if(o(e)<=a)return e;if(o(mw)>a)return mw;switch(t){case`start`:return yw(ww(e,`grapheme`),a,o);case`center`:return vw(e,{strategy:n,bias:r,preserve:i,availableWidth:a,measureText:o});default:return bw(ww(e,`grapheme`),a,o)}}function vw(e,{strategy:t,bias:n,preserve:r,availableWidth:i,measureText:a}){let o=Aw(e,t,n),s=Math.min(o.length,Cw(r));if(n===`start`){let e=o.slice(0,s),t=o.slice(s),n=n=>Sw(e.join(``),t.slice(-n||t.length).join(``));return a(n(0))>i?bw(e,i,a):n(xw(t.length,n,{availableWidth:i,measureText:a}))}let c=o.slice(0,o.length-s),l=o.slice(o.length-s),u=e=>Sw(c.slice(0,e).join(``),l.join(``));return a(u(0))>i?yw(l,i,a):u(xw(c.length,u,{availableWidth:i,measureText:a}))}function yw(e,t,n){let r=t=>`${mw}${e.slice(-t||e.length).join(``)}`;return r(xw(e.length-1,r,{availableWidth:t,measureText:n}))}function bw(e,t,n){let r=t=>`${e.slice(0,t).join(``)}${mw}`;return r(xw(e.length-1,r,{availableWidth:t,measureText:n}))}function xw(e,t,{availableWidth:n,measureText:r}){let i=0,a=e,o=0;for(;i<=a;){let e=Math.floor((i+a)/2);r(t(e))<=n?(o=e,i=e+1):a=e-1}return o}function Sw(e,t){return`${e.trimEnd()}${mw}${t.trimStart()}`}function Cw(e){return Number.isFinite(e)?Math.max(1,Math.floor(e)):1}function ww(e,t){let n=new Intl.Segmenter(void 0,{granularity:t}).segment(e);return Array.from(n,e=>e.segment)}function Tw(e,t){return t===`start`?Ew(e):Dw(e)}function Ew(e){let t=[];for(let n of e)n.trim()?t.push(n):Ow(t,n);return t}function Dw(e){let t=[],n=``;for(let r of e)r.trim()?(t.push(n+r),n=``):n+=r;return Ow(t,n),t}function Ow(e,t){let n=e.at(-1);n!==void 0&&(e[e.length-1]=n+t)}function kw(e,t){let n=Array.from(e.matchAll(/[^/\\]+/gu));return n.length===0?[e]:t===`start`?n.map((t,r)=>{let i=r===0?0:t.index,a=n[r+1]?.index??e.length;return e.slice(i,a)}):n.map((t,r)=>{let i=n[r-1],a=i?i.index+i[0].length:0,o=r===n.length-1?e.length:t.index+t[0].length;return e.slice(a,o)})}function Aw(e,t,n){switch(t){case`word`:{let t=Tw(ww(e,`word`),n);return t.length?t:[e]}case`path`:{let t=kw(e,n);return t.length?t:[e]}default:return ww(e,`grapheme`)}}var jw=`:host{position:relative;display:inline-block;max-inline-size:100%;min-inline-size:0}span{text-wrap:nowrap}[sizing-host]{display:block;opacity:0}[internal-host]{position:absolute;inset:0;overflow:hidden}slot{display:initial;position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}`,Mw=class extends x{constructor(...e){super(...e),this.position=`start`,this.strategy=`character`,this.bias=`end`,this.preserve=6,this.#r=1/0,this.#u=()=>{this.requestUpdate()}}static{this.styles=j([jw])}static{this.metadata={tag:`nve-format-truncate`,version:`0.0.0`}}#e;#t;#n;#r;connectedCallback(){super.connectedCallback(),D(this),this.#r=1/0,this.#l(),this.requestUpdate()}disconnectedCallback(){super.disconnectedCallback(),this.#t?.disconnect(),this.#n!==void 0&&this.ownerDocument.defaultView?.cancelAnimationFrame(this.#n),this.#n=void 0}connectedMoveCallback(){this.#r=1/0,this.#l(),this.requestUpdate()}render(){let e=this.#i,t=this.#a(e);return t===e?this.removeAttribute(`title`):this.title!==e&&(this.title=e),y`<span internal-host aria-hidden="true">${t}</span><span sizing-host aria-hidden="true">${e}</span><slot @slotchange="${this.#u}"></slot>`}get#i(){let e=this.shadowRoot?.querySelector(`slot:not([name])`);if(e)return hw(e.assignedNodes({flatten:!0}));let t=Array.from(this.childNodes??[]).filter(Pw);return t.length?hw(t):gw(this.textContent??``)}#a(e){let t=this.#o();return _w(e,{position:this.position,strategy:this.strategy,bias:this.bias,preserve:this.preserve,availableWidth:this.#r,measureText:t})}#o(){let e=this.ownerDocument?.defaultView,t=this.#c;if(!e||!t)return()=>0;let n=e.getComputedStyle(this);t.font=n.font;let r=Nw(n.letterSpacing),i=Nw(n.wordSpacing),a=new Intl.Segmenter(void 0,{granularity:`grapheme`});return e=>this.#s(e,{context:t,letterSpacing:r,wordSpacing:i,graphemeSegmenter:a})}#s(e,{context:t,letterSpacing:n,wordSpacing:r,graphemeSegmenter:i}){let a=i.segment(e),o=Array.from(e.matchAll(/\s/gu)).length;return t.measureText(e).width+Math.max(0,Array.from(a).length-1)*n+o*r}get#c(){return this.#e===void 0&&(this.#e=this.ownerDocument?.createElement(`canvas`).getContext(`2d`)??null),this.#e}#l(){typeof ResizeObserver<`u`&&(this.#t??=new ResizeObserver(e=>{let t=e[0];if(this.isConnected&&t){this.#r=t.contentRect.width;let e=this.ownerDocument.defaultView;e&&this.#n===void 0&&(this.#n=e.requestAnimationFrame(()=>{this.#n=void 0,this.isConnected&&this.requestUpdate()}))}}),this.#t.disconnect(),this.#t.observe(this))}#u};N([S({type:String,reflect:!0})],Mw.prototype,`position`,void 0),N([S({type:String,reflect:!0})],Mw.prototype,`strategy`,void 0),N([S({type:String,reflect:!0})],Mw.prototype,`bias`,void 0),N([S({type:Number,reflect:!0})],Mw.prototype,`preserve`,void 0),Mw=N([O()],Mw);function Nw(e){let t=Number.parseFloat(e);return Number.isFinite(t)?t:0}function Pw(e){return!Fw(e)||!e.getAttribute(`slot`)}function Fw(e){return e.nodeType===1}v(Mw);var Iw=`important`,Lw=` !`+Iw,Rw=rv(class extends iv{constructor(e){if(super(e),e.type!==nv.ATTRIBUTE||e.name!==`style`||e.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(e){return Object.keys(e).reduce((t,n)=>{let r=e[n];return r==null?t:t+`${n=n.includes(`-`)?n:n.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,`-$&`).toLowerCase()}:${r};`},``)}update(e,[t]){let{style:n}=e.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(let e of this.ft)t[e]??(this.ft.delete(e),e.includes(`-`)?n.removeProperty(e):n[e]=null);for(let e in t){let r=t[e];if(r!=null){this.ft.add(e);let t=typeof r==`string`&&r.endsWith(Lw);e.includes(`-`)||t?n.setProperty(e,t?r.slice(0,-11):r,t?Iw:``):n[e]=r}}return L_}}),zw=`:host{--color: var(--nve-sys-text-emphasis-color);--background: var(--nve-sys-interaction-background);--needle-background: var(--nve-sys-interaction-color);--accent-color: var(--nve-sys-interaction-color);--thumb-background: var(--accent-color);--track-background: var(--accent-color);--track-width: 8px;--font-size: var(--nve-ref-font-size-400);--font-weight: var(--nve-ref-font-weight-regular);--gap: var(--nve-ref-space-xs);--width: 128px;--height: calc(var(--width) * .8627);--_animation-duration: var(--nve-ref-animation-duration-250);--_needle-size: calc(var(--track-width) / 3);display:inline-block;position:relative;width:var(--width);height:var(--height);font-weight:var(--font-weight);container-type:inline-size;contain:layout;text-box:trim-both cap alphabetic}.fill-dot-end{r:calc(var(--track-width) / 3.2)}:host([size="sm"]){--font-size: var(--nve-ref-font-size-300);--width: 96px;--_needle-size: calc(var(--track-width) / 2.25);.fill-dot-end{r:calc(var(--track-width) / 2.4)}}:host([size="lg"]){--font-size: var(--nve-ref-font-size-500);--width: 160px;--_needle-size: calc(var(--track-width) / 3.75);.fill-dot-end{r:calc(var(--track-width) / 4)}}[internal-host]{display:grid;place-items:center;position:relative;height:100%}:host([shape="half"]){--height: calc(var(--width) * .5313)}:host([shape="half"]) [internal-host]{place-items:end center}svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}path{fill:none;stroke:#fff;stroke-width:var(--track-width);vector-effect:non-scaling-stroke}path.background{stroke-linecap:round}path.gauge{stroke-linecap:round}.background-surface,.fill-surface{inline-size:100%;block-size:100%}.background-surface{background:var(--background)}.fill-surface{background:var(--track-background)}.fill-dot-end{fill:var(--thumb-background);transform:rotate(var(--_dot-angle));transform-box:view-box;transform-origin:var(--_dot-origin)}:host([thumb="dot"]) .fill-dot-end{animation:gauge-dot-in var(--_animation-duration) var(--nve-ref-animation-easing-100);will-change:transform}.fill-layer[hidden],.fill-dot-end[hidden],.needle[hidden]{display:none}.needle{animation:gauge-needle-in var(--_animation-duration) var(--nve-ref-animation-easing-100);transform:rotate(var(--_needle-angle));transform-box:view-box;transform-origin:var(--_needle-origin);will-change:transform}.needle-line{stroke:var(--needle-background);stroke-linecap:round;stroke-width:var(--_needle-size)}.needle-hub{fill:var(--needle-background);r:var(--_needle-size)}slot{display:flex;flex-direction:column;place-items:center;justify-content:center;height:100%;gap:var(--gap);color:var(--color);font-size:var(--font-size);font-weight:var(--nve-ref-font-weight-medium);padding-block-start:calc(var(--track-width) * 2);text-box:trim-both cap alphabetic;line-height:1;width:50%;font-variant-numeric:tabular-nums}:host([shape="half"]) slot{transform:translateY(1cqh)}:host([thumb="needle"]) slot{transform:translateY(1cqh);justify-content:end}:host([shape="half"][thumb="needle"]) slot{transform:translateY(2cqh)}::slotted(*){color:var(--color);font-size:var(--font-size)}:host([status="success"]){--accent-color: var(--nve-sys-support-success-emphasis-color);--background: var(--nve-sys-support-success-muted-color)}:host([status="warning"]){--accent-color: var(--nve-sys-support-warning-emphasis-color);--background: var(--nve-sys-support-warning-muted-color)}:host([status="danger"]){--accent-color: var(--nve-sys-support-danger-emphasis-color);--background: var(--nve-sys-support-danger-muted-color)}:host([status="accent"]){--accent-color: var(--nve-sys-accent-secondary-background)}@media(prefers-reduced-motion:reduce){:host{--_animation-duration: 0s}}@keyframes gauge-dot-in{0%{transform:rotate(var(--_dot-start-angle))}to{transform:rotate(var(--_dot-angle))}}@keyframes gauge-needle-in{0%{transform:rotate(var(--_needle-start-angle))}to{transform:rotate(var(--_needle-angle))}}`,Bw={default:{center:64,path:`M 27.23 100.77 A 52 52 0 1 1 100.77 100.77`,radius:52,startAngle:135,sweepAngle:270,surfaceHeight:128,viewBox:`8.53 8.53 110.93 95.7`},half:{center:64,path:`M 12 64 A 52 52 0 0 1 116 64`,radius:52,startAngle:180,sweepAngle:180,surfaceHeight:64,viewBox:`8.53 8.53 110.93 58.93`}},Vw=(e,t,n)=>({[`--_${e}-angle`]:`${t}deg`,[`--_${e}-origin`]:`${n.center}px ${n.center}px`,[`--_${e}-start-angle`]:`${n.startAngle}deg`}),Hw={danger:`danger`,information:`information`,success:`success`,warning:`warning`},Uw=class extends x{constructor(...e){super(...e),this.value=0,this.max=100,this.status=`neutral`,this.thumb=`fill`,this.#e=new M(this,Hw),this.i18n=this.#e.i18n,this.#t=0,this.#r=0}static{this.styles=j([zw])}static{this.metadata={tag:`nve-gauge`,version:`0.0.0`}}#e;#t;#n;#r;#i(){let e=this.max,t=e!==void 0&&Number.isFinite(e)&&e>0?e:100;return{value:Number.isFinite(this.value)?Math.min(Math.max(this.value,0),t):0,max:t}}render(){let e=this.#f(),t=this.#t,n=this.#p(),r=this.#l(e,t),i=this.#u(e,t),a=n===`fill`,o=t>0&&(n===`fill`||n===`dot`);return y`<div internal-host><svg viewBox="${e.viewBox}" role="presentation" aria-hidden="true"><defs><mask id="background-mask" maskUnits="userSpaceOnUse" x="0" y="0" width="128" height="${e.surfaceHeight}"><path d="${e.path}" class="background"></path></mask><mask id="fill-mask" maskUnits="userSpaceOnUse" x="0" y="0" width="128" height="${e.surfaceHeight}"><path d="${i}" class="gauge" ?empty="${t<=0}"></path></mask></defs><foreignObject width="128" height="${e.surfaceHeight}" mask="url(#background-mask)"><div xmlns="http://www.w3.org/1999/xhtml" class="background-surface"></div></foreignObject><foreignObject class="fill-layer" width="128" height="${e.surfaceHeight}" mask="url(#fill-mask)" ?hidden="${!a||t<=0}"><div xmlns="http://www.w3.org/1999/xhtml" class="fill-surface"></div></foreignObject><circle class="fill-dot-end" cx="${e.center+e.radius}" cy="${e.center}" ?hidden="${!o}" style="${Rw(Vw(`dot`,r,e))}"></circle><g class="needle" ?hidden="${n!==`needle`}" style="${Rw(Vw(`needle`,r,e))}"><line class="needle-line" x1="${e.center}" y1="${e.center}" x2="${e.center+40}" y2="${e.center}"></line><circle class="needle-hub" cx="${e.center}" cy="${e.center}"></circle></g></svg><slot></slot></div>`}connectedCallback(){super.connectedCallback(),D(this),this._internals.role=`progressbar`}disconnectedCallback(){super.disconnectedCallback(),this.#n&&(this.#s(),this.#t=this.#a(),this.requestUpdate())}willUpdate(e){super.willUpdate(e),(e.has(`value`)||e.has(`max`))&&this.#o()}updated(e){super.updated(e);let{value:t,max:n}=this.#i();this._internals.ariaValueNow=`${t}`,this._internals.ariaValueMax=`${n}`;let{status:r}=this,i=r!==void 0&&r!==`neutral`&&r!==`accent`?this.i18n[r]:void 0;this._internals.ariaLabel=i??this.i18n.information??null}#a(){let{value:e,max:t}=this.#i();return e/t*100}#o(){let e=this.#a(),t=this.hasUpdated?this.#c():void 0;if(this.#s(),!t||e===this.#t){this.#t=e;return}let n=this.#t,r=this.animate(null,t),i=t=>{this.#t=n+(e-n)*t,this.requestUpdate()},a=()=>{i(r.effect?.getComputedTiming().progress??0),r.playState===`running`&&(this.#r=requestAnimationFrame(a))};r.finished.then(()=>{this.#n===r&&(this.#s(),i(1))},()=>void 0),this.#n=r,this.#r=requestAnimationFrame(a)}#s(){this.#n&&=(cancelAnimationFrame(this.#r),this.#n.cancel(),void 0)}#c(){let e=getComputedStyle(this),t=e.getPropertyValue(`--_animation-duration`).trim(),n=parseFloat(t)*(t.endsWith(`ms`)?1:1e3),r=e.getPropertyValue(`--nve-ref-animation-easing-100`).trim();return n>0?{duration:n,easing:r||`linear`}:void 0}#l(e,t){return e.startAngle+e.sweepAngle*(t/100)}#u(e,t){let n=this.#d(e,e.startAngle),r=e.sweepAngle*(t/100),i=this.#d(e,e.startAngle+r),a=+(r>180);return`M ${n.x} ${n.y} A ${e.radius} ${e.radius} 0 ${a} 1 ${i.x} ${i.y}`}#d(e,t){let n=t*Math.PI/180;return{x:e.center+e.radius*Math.cos(n),y:e.center+e.radius*Math.sin(n)}}#f(){return this.shape===`half`?Bw.half:Bw.default}#p(){return this.thumb===`dot`||this.thumb===`needle`?this.thumb:`fill`}};N([S({type:Number})],Uw.prototype,`value`,void 0),N([S({type:Number})],Uw.prototype,`max`,void 0),N([S({type:String,reflect:!0})],Uw.prototype,`status`,void 0),N([S({type:String,reflect:!0})],Uw.prototype,`shape`,void 0),N([S({type:String,reflect:!0})],Uw.prototype,`thumb`,void 0),N([S({type:String,reflect:!0})],Uw.prototype,`size`,void 0),N([S({type:Object})],Uw.prototype,`i18n`,void 0),v(Uw);var Ww=`:host{--background: color-mix(in oklab, var(--nve-sys-accent-secondary-background) 16%, transparent);--border: var(--nve-ref-border-width-md) dashed var(--nve-sys-accent-secondary-background);--border-radius: var(--nve-ref-border-radius-xs);--padding: var(--nve-ref-space-xs);--stack-offset-x: 4px;--stack-offset-y: 4px;--color: var(--nve-sys-text-emphasis-color);border-radius:var(--border-radius);display:block;pointer-events:none}[internal-host]{--_offset-x: max(0px, var(--stack-offset-x));--_offset-y: max(0px, var(--stack-offset-y));box-sizing:border-box;display:grid;grid-template:minmax(0,1fr) / minmax(0,1fr);width:100%;height:100%;padding:0 calc(var(--_back-layers) * var(--_offset-x)) calc(var(--_back-layers) * var(--_offset-y)) 0;border-radius:inherit}.surface{grid-area:1 / 1;min-width:0;min-height:0;box-sizing:border-box;padding:var(--padding);overflow:hidden;text-overflow:ellipsis;background:var(--background);border:var(--border);border-radius:inherit;color:var(--color)}.front{z-index:1}.rear{transform:translate(calc(var(--_layer) * var(--_offset-x)),calc(var(--_layer) * var(--_offset-y)))}`,Gw=class extends x{constructor(...e){super(...e),this.layers=1}static{this.styles=j([Ww])}static{this.metadata={tag:`nve-ghost`,version:`0.0.0`}}render(){let e=Number.isFinite(this.layers)?Math.min(3,Math.max(1,Math.trunc(this.layers))):1;return y`<div internal-host inert aria-hidden="true" style="${`--_back-layers:${e-1}`}">${Array.from({length:e-1},(t,n)=>y`<div class="surface rear" style="${`--_layer:${e-n-1}`}"></div>`)}<div class="surface front"><slot></slot></div></div>`}};N([S({type:Number})],Gw.prototype,`layers`,void 0),v(Gw);var Kw=`:host{--color: var(--nve-sys-layer-canvas-color);--padding: var(--nve-ref-size-200) var(--nve-ref-size-300);position:absolute;inset:var(--nve-ref-size-700) 0 0}[internal-host]{background:color-mix(in oklab,var(--background, var(--nve-sys-layer-canvas-background)) 100%,var(--nve-sys-interaction-state-mix) var(--interaction-state-ratio, .01%));color:var(--color);padding:var(--padding);font-size:var(--font-size);display:flex;place-items:center;place-content:center;height:100%}`,qw=class extends x{static{this.styles=j([Kw])}static{this.metadata={tag:`nve-grid-placeholder`,version:`0.0.0`}}render(){return y`<div internal-host focusable="active" role="gridcell"><slot></slot></div>`}connectedCallback(){super.connectedCallback(),D(this),this._internals.role=`row`}},Jw=`:host{--background: var(--nve-sys-layer-container-accent-background);--border-bottom: var(--nve-ref-border-width-sm) solid var(--nve-ref-border-color-muted);--padding: 0 1px 0 0;position:sticky;z-index:100;top:0;width:100%}[internal-host]{grid-auto-columns:var(--grid-auto-columns);grid-auto-flow:var(--grid-auto-flow);grid-template-columns:var(--grid-template-column);border-bottom:var(--border-bottom);background:var(--background);padding:var(--padding);display:grid;min-width:fit-content}:host([hidden]){display:block!important;opacity:0!important;height:0!important;z-index:0!important}`,Yw=`:host{--nve-sys-interaction-background: var(--nve-sys-interaction-background-200);--nve-sys-interaction-field-background: var(--nve-sys-interaction-background-200);--color: var(--nve-sys-text-muted-color);--padding: var(--nve-ref-size-200) var(--nve-ref-size-500);--font-weight: var(--nve-ref-font-weight-semibold);--font-size: var(--nve-ref-font-size-100);--height: var(--nve-ref-size-1000);--min-width: var(--nve-ref-size-1000);--justify-content: start;--border-left: 0;--border-right: 0;transition:box-shadow .3s ease-in-out}[internal-host]{background:var(--background);color:var(--color);padding:var(--padding);height:var(--height);font-size:var(--font-size);font-weight:var(--font-weight);min-width:var(--min-width);border-left:var(--border-left);border-right:var(--border-right);justify-content:var(--justify-content);display:flex;align-items:center;outline-offset:-5px;white-space:nowrap}:host([width="max-content"]){--padding: var(--nve-ref-size-300)}::slotted(nve-sort-button),::slotted(nve-icon-button){margin-inline-start:auto}@media(hover:hover){::slotted(nve-sort-button){opacity:0}::slotted(nve-sort-button[sort="ascending"]),::slotted(nve-sort-button[sort="descending"]),:host(:focus-within) ::slotted(nve-sort-button),:host(:hover) ::slotted(nve-sort-button){opacity:1}}`,Xw=class e extends x{static{this.styles=j([Yw])}static{this.metadata={tag:`nve-grid-column`,version:`0.0.0`}}get#e(){return this.parentElement.parentElement}render(){return y`<div internal-host focusable="active"><slot></slot><slot name="actions"></slot></div>`}connectedCallback(){super.connectedCallback(),D(this),this._internals.role=`columnheader`,this.addEventListener(`sort`,this.#t)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(`sort`,this.#t)}#t=e=>{this.ariaSort=e.detail.next};willUpdate(e){e.has(`width`)&&this.width&&Number.isFinite(Number(this.width))&&(this.width=`${this.width}px`)}async updated(e){super.updated(e),e.get(`columnAlign`)!==this.columnAlign&&this.#o(),e.get(`position`)!==this.position&&this.#r(),e.get(`ariaColIndex`)!==this.ariaColIndex&&(this.#r(),this.#o()),e.get(`width`)!==this.width&&this.dispatchEvent(new CustomEvent(`nve-grid-column-resize`,{bubbles:!0,composed:!0}))}#n;#r(){if(this.position!==`fixed`){this.removeAttribute(`left`),this.removeAttribute(`right`),this.#n?.replaceSync(``);return}let{side:e,positionStyle:t,borderStyle:n}=this.#i(),r=`${t}\n${n}`;this.#n?this.#n.replaceSync(r):this.#n=T(this.#e,r),this.setAttribute(e,``)}#i(){let t=Array.from(this.parentElement.querySelectorAll(e.metadata.tag)),n=t.slice(t.indexOf(this)+1,t.length),r=this.getBoundingClientRect(),i=this.#e.getBoundingClientRect(),a=this.offsetLeft<i.width/2?`left`:`right`,o=r.left-i.left,s=n.reduce((e,t)=>e+t.getBoundingClientRect().width,0),c=`[id='${this.#e.id}'] nve-grid-column:nth-of-type(${this.ariaColIndex}),
|
|
13
13
|
[id='${this.#e.id}'] nve-grid-cell:nth-of-type(${this.ariaColIndex})`;return{side:a,positionStyle:`
|
|
14
14
|
${c} {
|
|
15
15
|
position: sticky;
|