@tylertech/forge 3.6.3 → 3.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/expansion-panel/forge-expansion-panel.css +2 -0
- package/dist/lib.js +2 -2
- package/dist/lib.js.map +2 -2
- package/esm/expansion-panel/expansion-panel.js +1 -1
- package/esm/split-view/split-view-panel/split-view-panel.js +1 -1
- package/package.json +1 -1
- package/sass/expansion-panel/_core.scss +3 -0
package/dist/lib.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright Tyler Technologies, Inc.
|
|
4
4
|
* License: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
var m5=Object.defineProperty,K6=Object.defineProperties,q6=Object.getOwnPropertyDescriptor,$6=Object.getOwnPropertyDescriptors;var zr=Object.getOwnPropertySymbols;var g5=Object.prototype.hasOwnProperty,w5=Object.prototype.propertyIsEnumerable;var d5=(r,t,e)=>t in r?m5(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,w=(r,t)=>{for(var e in t||(t={}))g5.call(t,e)&&d5(r,e,t[e]);if(zr)for(var e of zr(t))w5.call(t,e)&&d5(r,e,t[e]);return r},t1=(r,t)=>K6(r,$6(t));var Pa=(r,t)=>{var e={};for(var a in r)g5.call(r,a)&&t.indexOf(a)<0&&(e[a]=r[a]);if(r!=null&&zr)for(var a of zr(r))t.indexOf(a)<0&&w5.call(r,a)&&(e[a]=r[a]);return e};var s=(r,t,e,a)=>{for(var o=a>1?void 0:a?q6(t,e):t,n=r.length-1,i;n>=0;n--)(i=r[n])&&(o=(a?i(t,e,o):i(o))||o);return a&&o&&m5(t,e,o),o};function Ar(r="data-forge-live-announcer"){let t=document.createElement("div");return t.style.position="absolute",t.style.top="0",t.style.height="1px",t.style.width="1px",t.style.padding="1px",t.style.overflow="hidden",t.style.clip="rect(0px, 0px, 0px, 0px)",t.style.whiteSpace="nowrap",t.style.border="0px",r&&t.setAttribute(r,""),t}function P2(r=5){return Math.random().toString(36).substring(2,2+r)}function k(r){return typeof r!="undefined"&&r!==null}function Pt(r){return typeof r=="string"}function z2(r){return typeof r=="number"}function Br(r){return typeof r!="string"?!1:!isNaN(r)&&!isNaN(parseFloat(r))}function Na(r){return r instanceof Date}function gt(r){return Na(r)?!isNaN(r.getTime()):!1}function t0(r){return typeof r=="function"}function rt(r){return r instanceof Array}function nt(r){return r instanceof Object}function p(r){return r!=null&&""+r!="false"}function W(r){return+r}function Tr(r){return r?typeof r=="string"?r.replace(/ |\[|]|\"/g,"").split(",").map(t=>Number(t)):typeof r=="number"?[r]:r.map(t=>Number(t)):[]}function Nt(r,t){return r===t||typeof r=="object"&&typeof t=="object"&&JSON.stringify(r)===JSON.stringify(t)}function Ae(r,t,e=!1){let a,o,n,i,l=0,h=()=>{let c=Date.now()-l;c<t&&c>=0?i=setTimeout(h,t-c):(i=null,e||(n=r.apply(a,o),i||(a=o=null)))};return function(){a=this,o=arguments,l=Date.now();let c=e&&!i;return i||(i=setTimeout(h,t)),c&&(n=r.apply(a,o),a=o=null),n}}function Sr(r,t,e){let a,o,n,i,l=0;e=e||{};let h=()=>{l=e.leading===!1?0:Date.now(),i=null,n=r.apply(a,o),i||(a=o=null)};return function(){let c=Date.now();!l&&e.leading===!1&&(l=c);let d=t-(c-l);return a=this,o=arguments,d<=0||d>t?(i&&(clearTimeout(i),i=null),l=c,n=r.apply(a,o),i||(a=o=null)):!i&&e.trailing!==!1&&(i=setTimeout(h,d)),n}}function kr(r){return r.ownerDocument||document}function Fl(r){return r&&r.nodeType===1}function Ra(r,t){if(!Fl(r))throw new Error("DOMUtils - elementParents: invalid element argument");let e=[];for(;r.parentElement&&(e.push(r.parentElement),!(r.parentElement===t||r.parentElement===kr(r).body));)r.parentElement&&r.parentElement.parentNode&&r.parentElement.parentNode.nodeType===11?r=r.parentElement.parentNode.host:r=r.parentElement;return e}function X6(r,t){if(!Fl(r))throw new Error("DOMUtils - offset: invalid element argument");let e=r.getBoundingClientRect(),a=kr(r).defaultView,o=t||a.document.documentElement,n={width:e.width,height:e.width,top:0,left:0,bottom:0,right:0};if(!t||o===a.document.documentElement||o===a.document.body)n.top=a.scrollY+e.top,n.bottom=o.clientHeight-a.scrollY-e.bottom,n.left=a.scrollX+e.left,n.right=o.clientWidth-a.scrollX-e.right;else{if(!Fl(t))throw new Error("DOMUtils - offset: invalid parentElement argument");let i=t.getBoundingClientRect();n.top=e.top-i.top,n.bottom=i.bottom-e.bottom,n.left=e.left-i.left,n.right=i.right-e.right}return{width:Math.round(e.width),height:Math.round(e.height),top:Math.round(n.top),bottom:Math.round(n.bottom),left:Math.round(n.left),right:Math.round(n.right)}}function _5(r,t,e){let a=n=>{let i=()=>{n.stopPropagation(),n.cancelable&&n.preventDefault();let l=n.type==="touchstart"?n.target:kr(r).activeElement;r.contains(l)||t(l)};e?window.requestAnimationFrame(()=>i()):i()},o=kr(r);return o.addEventListener("blur",a,!0),o.addEventListener("touchstart",a,!0),()=>{o.removeEventListener("blur",a,!0),o.removeEventListener("touchstart",a,!0)}}function r2(r){for(;r.lastChild;)r.removeChild(r.lastChild)}function e0(r,t){return t.parentNode.replaceChild(r,t)}function y1(r,t){rt(r)?r.forEach(e=>t.classList.add(e)):t.classList.add(r)}function we(r,t){rt(r)?r.forEach(e=>t.classList.remove(e)):t.classList.remove(r)}function j6(){let r=document.createElement("fakeelement"),t={animation:"animationend",OAnimation:"oAnimationEnd",MozAnimation:"animationend",WebkitAnimation:"webkitAnimationEnd"};for(let e in t)if(r.style[e]!==void 0)return t[e]}async function Rt(r,t,e=!0){return r.classList.add(t),new Promise(a=>{let o=j6(),n=()=>{e&&r.classList.remove(t),r.removeEventListener(o,n),a()};r.addEventListener(o,n)})}function Te(r){r.removeNode?r.removeNode(!0):r.remove?r.remove():r.parentNode.removeChild(r)}function Ul(r){if(typeof r=="string"){if(r[r.length-1]==="%")return r;if(r.slice(-2)==="px")return r;if(Number(r)>=0)return`${r}px`}else if(typeof r=="number"&&r>=0)return`${r}px`}function Fa(r){return r.children.length?Promise.resolve():new Promise(t=>{let e=new MutationObserver(a=>{r.children.length&&(e.disconnect(),t())});e.observe(r,{childList:!0})})}function I0(r,t){let e=Be(r,t);return e.length?Promise.resolve(e[0]):new Promise(a=>{let o=new MutationObserver(n=>{if(n.reduce((l,h)=>l+h.addedNodes.length,0)>0){let l=Be(r,t);l.length&&(o.disconnect(),a(l[0]))}});o.observe(r,{childList:!0,subtree:!0})})}function f5(r){return new Promise(t=>{let e=r.querySelector("input");e&&t(e);let a=new MutationObserver(o=>{if(o.reduce((i,l)=>i+l.addedNodes.length,0)>0){let i=r.querySelector("input");i&&(a.disconnect(),t(i))}});a.observe(r,{childList:!0,subtree:!0})})}function Wl(r,t){let e=r&&r.parentNode;for(;e;){if(t(e))return e;e=e.parentNode}return null}function Or(r,t){if(r.nodeType!==Node.ELEMENT_NODE)return!1;typeof t=="string"&&(t=t.replace(/\s+/,"").split(","));let e=Element.prototype.matches;return t.some(a=>e.call(r,a))}function Be(r,t,e=!1){let a=[];if(!r)return a;if(typeof t=="string"&&(t=t.replace(/\s+/,"").split(",")),e&&Or(r,t)&&a.indexOf(r)===-1&&a.push(r),r.tagName==="SLOT")r.assignedNodes().forEach(n=>a=a.concat(Be(n,t,!0)));else{let o=r.shadowRoot?r.shadowRoot.firstElementChild:r.firstElementChild;for(;o;)a=a.concat(Be(o,t,!0)),o=o.nextElementSibling}return a}function Se(r=document){let t=r.activeElement;return!t||t===r.body?t:x5(t)}function x5(r){return r.shadowRoot&&r.shadowRoot.activeElement&&(r=x5(r.shadowRoot.activeElement)),r}function _2(r,t,e){t?y1(e,r):we(e,r)}function K(r,t,e,a=""){t?r.setAttribute(e,a):r.removeAttribute(e)}function No(r,t,e,a){let o=r.getAttribute(t);(a===void 0||a===!0)&&(!o||!o.includes(e))?Ua(r,t,e):a||Z6(r,t,e)}function Ua(r,t,e){let a=r.getAttribute(t);!a||!a.length?r.setAttribute(t,e):r.setAttribute(t,`${a} ${e}`)}function Z6(r,t,e){if(!r.hasAttribute(t))return;let a=r.getAttribute(t);if(a){let o=a==null?void 0:a.replace(e,"");o=o.replace(/\s+/g," ").trim(),o.length?r.setAttribute(t,o):r.removeAttribute(t)}}function Dr(r,t,e="auto",a="nearest"){if(!r)return;if(r.scrollHeight>r.clientHeight||r.scrollWidth>r.clientWidth){let n=X6(t,r),i=n.top<=t.clientHeight,l=n.bottom<=t.clientHeight;if(i||l){let d=u5(a,i,t.offsetTop,t.clientHeight,r.offsetTop,r.offsetHeight);r.scrollTo({top:d,behavior:e});return}let h=n.left<=t.clientWidth,c=n.right<=t.clientWidth;if(h||c){let d=u5(a,h,t.offsetLeft,t.clientWidth,r.offsetLeft,r.offsetWidth);r.scrollTo({left:d,behavior:e})}}}function u5(r,t,e,a,o,n){return r==="nearest"?t?e-o-a:e-n+a*2:e-o-n/2+a/2}function b5(r){let t=document.createElement("template");return r=r.trim(),t.innerHTML=r,t.content.firstElementChild}function L2(r){return r.path||r.composedPath&&r.composedPath()||Q6(r.target)}function Q6(r){let t=[];for(;r;){if(r.shadowRoot&&(r.shadowRoot.activeElement&&t.push(r.shadowRoot.activeElement),t.push(r.shadowRoot)),t.push(r),r.tagName==="HTML"){t.push(document),t.push(window);break}r=r.parentElement}return t}function y5(r,t){let e=t.replace(/\[(\w+)\]/g,".$1");e=e.replace(/^\./,"");let a=e.split(".");for(let o=0;o<a.length;++o){let n=a[o];if(r&&typeof r=="object"&&n in r)r=r[n];else{r="";break}}return r}function Pr(r,t){return r.find(e=>Nr(e,t))}function ha(r,t){if(!r||!r.length)throw new Error("Invalid key");let e={};for(let a of r)if(Object.prototype.hasOwnProperty.call(t,a))e[a]=t[a];else throw new Error(`Invalid key. The property "${a}" does not exist in the data.`);return e}function Nr(r,t){return Object.keys(t).every(e=>r[e]===t[e])}function a0(r,t,e,a){let o=t;t.hasOwnProperty(e)||(o=Object.getPrototypeOf(t));let n=Object.getOwnPropertyDescriptor(o,e);if(!n)throw new Error(`Property ${e} does not exist.`);return Object.defineProperty(t,e,{configurable:!0,get(){return n.get?n.get.apply(this,arguments):void 0},set(){n.set&&n.set.apply(this,arguments),a.apply(r,arguments)}}),()=>Object.defineProperty(t,e,n)}var Ro=class{constructor(t){this._key=t,this._items=[]}getItems(){return[...this._items]}count(){return this._items.length}setKey(t){this._key=t}add(t){return t instanceof Array||(t=[t]),t.forEach(e=>{this.exists(e)||this._items.push(e)}),this}remove(t){t instanceof Array||(t=[t]);for(let e=t.length-1;e>=0;e--)this.exists(t[e])&&this._items.splice(this._items.indexOf(this._getItem(t[e])),1);return this}clear(){return this._items=[],this}exists(t){return this._getItem(t)!==null}_getItem(t){return this._key?Pr(this._items,ha(this._key,t))||null:this._items.find(e=>e===t)||null}};var J6=typeof Intl!="undefined"&&Intl.v8BreakIterator,$2=class r{static get isBrowser(){return typeof document=="object"&&!!document}static get isMobile(){return r.isBrowser&&/Mobi/.test(navigator.userAgent)}static get EDGE(){return r.isBrowser&&/(edge)/i.test(navigator.userAgent)}static get TRIDENT(){return r.isBrowser&&/(msie|trident)/i.test(navigator.userAgent)}static get BLINK(){return r.isBrowser&&!!(window.chrome||J6)&&!!CSS&&!r.EDGE&&!r.TRIDENT}static get WEBKIT(){return r.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!r.BLINK&&!r.EDGE&&!r.TRIDENT}static get IOS(){return r.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}static get FIREFOX(){return r.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent)}static get ANDROID(){return r.isBrowser&&/android/i.test(navigator.userAgent)&&!r.TRIDENT}SAFARI(){return r.isBrowser&&/safari/i.test(navigator.userAgent)&&r.WEBKIT}};var Rr=Symbol("Forge custom element tag name"),Fo=Symbol("Forge custom element dependencies"),Fr=Symbol("Forge custom element parsed template"),Ur=Symbol("Forge custom element CSS text"),Wa=Symbol("Forge custom element CSSStyleSheet instances"),Wr=window.__forgeFlags__useConstructableStyleSheets!==!1&&window.ShadowRoot&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;function x(r){ue(r[Rr],r),rt(r[Fo])&&tm(r[Fo])}function tm(r){r.forEach(x)}function ue(r,t,e){var a;(a=window==null?void 0:window.customElements)!=null&&a.get(r)||window.customElements.define(r,t,e)}function M5(r,t){let e=r;for(;e.parentNode&&(e=e.parentNode,!!e.tagName);)if(!e.tagName||e.tagName.toLowerCase()===t.toLowerCase())return e;return null}function H5(r){return new DOMParser().parseFromString(r,"text/html").querySelector("template")}function V0(r,t){r.appendChild(H5(t).content.cloneNode(!0))}function H(r,t,e,a=!1){r.attachShadow({mode:"open",delegatesFocus:a}),e&&am(r,e),em(r,t)}function em(r,t,{force:e}={force:!1}){let a=r.constructor;if(e||!a[Fr]){let n=t instanceof HTMLTemplateElement?t:H5(t);a[Fr]=n}let o=a[Fr];r.shadowRoot.appendChild(o.content.cloneNode(!0))}function am(r,t,{force:e}={force:!1}){var o;let a=r.constructor;if(!r.shadowRoot||!t){Wr&&(a[Wa]&&(a[Wa]=[]),r.shadowRoot&&(r.shadowRoot.adoptedStyleSheets=[]));return}if(t=t instanceof Array?t:[t],Wr){if(e||!a[Wa]){let n=(o=r.ownerDocument.defaultView)!=null?o:window,i=new n.CSSStyleSheet,l=t.join(" ");i.replaceSync(l),a[Ur]=l,a[Wa]=[i]}r.shadowRoot.adoptedStyleSheets=a[Wa]}else{let n=document.createElement("style"),i=window.forgeNonce;i&&n.setAttribute("nonce",i),n.textContent=t.join(" "),r.shadowRoot.appendChild(n)}}function L5(r){if(!Wr||!r.shadowRoot||!r.constructor[Ur]||!r.ownerDocument.defaultView)return;let t=new r.ownerDocument.defaultView.CSSStyleSheet;t.replaceSync(r.constructor[Ur]),r.shadowRoot.adoptedStyleSheets=[t]}function g(r,t){return r.shadowRoot.querySelector(t)}function Ft(r,t){return r.querySelector(t)}function o0(r,t,e,a=!0,o=!1){let n;return typeof CustomEvent=="function"?n=new CustomEvent(t,{detail:e,bubbles:a,cancelable:o}):(n=document.createEvent("CustomEvent"),n.initCustomEvent(t,a,o,e)),r.dispatchEvent(n)}function Uo(r,t,e,a,o,n){let i=!!g(r,a);return n||(n=document.createComment(`(${e}) ${a}`)),t&&!i?e0(o,n):!t&&i&&e0(n,o),n}function Gr(r,t){function e(a){return!a||a===document||a===window?null:(a.assignedSlot&&(a=a.assignedSlot),a.closest(r)||e(a.getRootNode().host))}return e(t)}function y({name:r,dependencies:t,define:e=!0}){return a=>{om(a),r&&(a[Rr]=r),t&&t.length&&(a[Fo]=t),window.__forgeFlags__autoDefine!==!1&&e&&x(a)}}function om(r){let t=r.prototype.connectedCallback;r.prototype.connectedCallback=function(){this.isConnected&&(this._isInitialized||(rm(this),typeof this.initializedCallback=="function"&&this.initializedCallback.apply(this),this._isInitialized=!0),typeof t=="function"&&t.apply(this))}}function rm(r){let t=Object.getOwnPropertyNames(r).filter(e=>!e.startsWith("_"));for(let e of t){let a=r[e];delete r[e],r[e]=a}}var Gl=class{constructor(t){this.get=!0,this.set=!0,t&&Object.assign(this,t)}},Yr="_core",nm=(r,t)=>`${r}'s core does not contain the property "${t}"`,im=r=>`${r} does not have a core`;function z5(r,t,e){if(r[Yr]){if(t in r[Yr])return e();throw new Error(nm(r.localName,t))}else throw new Error(im(r.localName))}function v(r){let t=new Gl(r);return(e,a,o)=>{let n,i,l=a,h=(r&&r.name||a).toString();if(o)n=o.get,i=o.set,o.configurable=!0,o.enumerable=!0,t.set&&(o.set=function(c){return E5(this,h,d=>{let u=Object.getOwnPropertyDescriptor(e,h);u.set=d.set,Reflect.defineProperty(e,l,u),d.set(c)},i)}),t.get&&(o.get=function(){return C5(this,h,c=>{let d=Object.getOwnPropertyDescriptor(e,h);return d.get=c.get,Reflect.defineProperty(e,l,d),c.get()},n)});else if(t.set||t.get){let c={configurable:!0,enumerable:!0},d={get(){let _=this;return C5(_,h,L=>{let C;return t.set&&(C=w({},u)),Reflect.defineProperty(_,h,w(w({configurable:!0,enumerable:!0},L),C)),L.get()})}},u={set(_){let L=this;return E5(L,h,C=>{let A;t.get&&(A=w({},d)),Reflect.defineProperty(L,h,w(w({configurable:!0,enumerable:!0},C),A)),C.set(_)})}};t.get&&Object.assign(c,w({},d)),t.set&&Object.assign(c,w({},u)),Reflect.defineProperty(e,l,c)}}}function I5(r,t,e){r[Yr][e]=t}function V5(r,t){return r[Yr][t]}function E5(r,t,e,a){let o;return a?o={set(n){a.call(r,n),I5(r,n,t)}}:o={set(n){I5(r,n,t)}},z5(r,t,()=>e(o))}function C5(r,t,e,a){let o;return a?o={get(){return a.call(r),V5(r,t)}}:o={get(){return V5(r,t)}},z5(r,t,()=>e(o))}var Kr=class{constructor(){this._listenerMap=new Map}_emit(t,e){let a=this._listenerMap.get(t);a&&a.length&&a.forEach(o=>o({type:t,data:e}))}hasListeners(t){return t?this._listenerMap.has(t):this._listenerMap.size>0}addListener(t,e){if(!this._listenerMap.has(t))this._listenerMap.set(t,[e]);else{let a=this._listenerMap.get(t);a&&a.push(e)}}removeListener(t,e){let a=this._listenerMap.get(t);a&&a.length&&a.includes(e)&&(a.splice(a.indexOf(e),1),a.length||this._listenerMap.delete(t))}};var qr=class{get value(){return this.source}constructor(t){this.subscribers=[],this.source=t}subscribe(t){let e=new Yl(this.subscribers,t);return this.subscribers.push(e),t==null||t(this.source),e}next(t){var e;this.source=t;for(let a of this.subscribers)(e=a.observer)==null||e.call(a,t)}complete(){this.subscribers=[]}},Yl=class{get closed(){return this._closed}constructor(t,e){this._closed=!1,this.observer=e,this._parent=t}unsubscribe(){if(this._closed)return;let t=this._parent.findIndex(e=>e===this);if(t>-1){this._parent.splice(t,1),this._closed=!0;return}console.error("Subscription is not present in parent array.",{subscription:this,parent:this._parent})}};var sm=["any-hover","any-pointer","color-gamut","display-mode","dynamic-range","forced-colors","grid","hover","inverted-colors","orientation","overflow-block","overflow-inline","pointer","prefers-contrast","prefers-color-scheme","prefers-reduced-motion","scripting","update","video-dynamic-range"],lm=["aspect-ratio","color","color-index","height","monochrome","resolution","width"],T5=[...sm,...lm];var vm=["srbg","p3","rec2020"],hm=["fullscreen","standalone","minimal-ui","browser","window-controls-overlay"],cm=["standard","high"],pm=["none","active"],dm=[0,1],A5=["none","hover"],mm=["none","inverted"],gm=["portrait","landscape"],wm=["none","scroll","optional-paged","paged"],um=["none","scroll"],B5=["none","coarse","fine"],_m=["no-preference","more","less","custom"],fm=["light","dark"],xm=["no-preference","reduce"],bm=["none","initial-only","enabled"],ym=["none","slow","fast"],Mm=["standard","high"],S5={"any-hover":Array.from(A5.values()),"any-pointer":Array.from(B5.values()),"color-gamut":Array.from(vm.values()),"display-mode":Array.from(hm.values()),"dynamic-range":Array.from(cm.values()),"forced-colors":Array.from(pm.values()),grid:Array.from(dm.values()),hover:Array.from(A5.values()),"inverted-colors":Array.from(mm.values()),orientation:Array.from(gm.values()),"overflow-block":Array.from(wm.values()),"overflow-inline":Array.from(um.values()),pointer:Array.from(B5.values()),"prefers-contrast":Array.from(_m.values()),"prefers-color-scheme":Array.from(fm.values()),"prefers-reduced-motion":Array.from(xm.values()),scripting:Array.from(bm.values()),update:Array.from(ym.values()),"video-dynamic-range":Array.from(Mm.values())};function k5(r){let t=[];for(let e of r)window.matchMedia(e.query).matches&&t.push(e.name);return t}function O5(r){for(let t of r)if(window.matchMedia(t.query).matches)return t.name;return console.warn(`No media query returned a match, falling back to ${r[0].name}.`),r[0].name}function D5(r){return window.matchMedia(r.query).matches}function P5(r,t){if(t.equals!==void 0)return`(${r}: ${t.equals})`;let e=[];return t.min!==void 0&&e.push(`(min-${r}: ${t.min})`),t.max!==void 0&&e.push(`(max-${r}: ${t.max})`),e.join(" and ")}function Hm(r){return T5.includes(r)}function r0(r){if(r){if(Hm(r)){console.error(`${r} is a disallowed media observer name.`);return}return r}}var ca=class r extends qr{static observeDiscrete(t,e){var n;let a=(n=r0(e==null?void 0:e.name))!=null?n:t,o=r._getObserver(a);return o&&(e==null?void 0:e.track)!==!1?o:Kl.create(t)}static observeRange(t,e,a){var i;let o=(i=r0(a==null?void 0:a.name))!=null?i:t,n=r._getObserver(o);return n&&(a==null?void 0:a.track)!==!1?n:ql.create(t,Array.isArray(e)?e:[e],a)}static observeBoolean(t,e){var n;let a=(n=r0(e==null?void 0:e.name))!=null?n:`${t}-bool`,o=r._getObserver(a);return o&&(e==null?void 0:e.track)!==!1?o:$l.create(t,e)}static observeCustom(t,e){var n;let a=(n=r0(e==null?void 0:e.name))!=null?n:t,o=r._getObserver(a);return o&&(e==null?void 0:e.track)!==!1?o:Xl.create(t,e)}static _getObserver(t){let e=r._observers[t];if(e)return e}get name(){return this._name}constructor(t,e,a,o=!0){super(a),this._queries=[],this._name=t,this._queries=this._attachMediaQueries(e),o&&(r._observers[t]=this)}destroy(){for(let t of this._queries)t.queryList.removeEventListener("change",t.handler);this._queries=[],delete r._observers[this.name]}_attachMediaQueries(t){return t.map(({name:e,query:a})=>{let o=window.matchMedia(a),n=i=>this.setValue(i,e);return n(o),o.addEventListener("change",n),{queryList:o,handler:n}})}};ca._observers={};var Kl=class r extends ca{static create(t,e){var i;let a=S5[t].map(l=>({name:l.toString(),query:`(${t}: ${l})`})),o=O5(a),n=(i=r0(e==null?void 0:e.name))!=null?i:t;return new r(n,a,o,(e==null?void 0:e.track)!==!1)}setValue(t,e){t.matches&&this.next(e)}},ql=class r extends ca{static create(t,e,a){var l;let o=e.map(h=>({query:P5(t,h),name:h.name})),n=k5(o),i=(l=r0(a==null?void 0:a.name))!=null?l:t;return new r(i,o,n,(a==null?void 0:a.track)!==!1)}constructor(t,e,a,o=!0){super(t,e,a,o),this._isAwaitingQueries=!1,this._valueQueue=[],this._isInitialized=!0}setValue(t,e){if(!this._isInitialized)return;this._isAwaitingQueries||(setTimeout(()=>{this.next([...this._valueQueue]),this._valueQueue=[],this._isAwaitingQueries=!1}),this._valueQueue=[...this.source],this._isAwaitingQueries=!0);let a=this._valueQueue.findIndex(o=>o===e);t.matches&&a===-1?this._valueQueue.push(e):!t.matches&&a>-1&&this._valueQueue.splice(a,1)}},$l=class r extends ca{static create(t,e){var i;let a=[{query:`(${t})`,name:""}],o=D5(a[0]),n=(i=r0(e==null?void 0:e.name))!=null?i:`${t}-bool`;return new r(n,a,o,(e==null?void 0:e.track)!==!1)}setValue(t,e){this.next(t.matches)}},Xl=class r extends ca{static create(t,e){var i;let a=[{query:t,name:""}],o=window.matchMedia(t),n=(i=r0(e==null?void 0:e.name))!=null?i:t;return new r(n,a,o,(e==null?void 0:e.track)!==!1)}setValue(t,e){this.next(t)}};var E0=class r{static observe(t,e,a){var o,n;r._targets.has(t)&&((o=r._observer)==null||o.unobserve(t)),r._targets.set(t,e),r._countTargets(),(n=r._observer)==null||n.observe(t,a)}static unobserve(t){var e;r._targets.delete(t),(e=r._observer)==null||e.unobserve(t),r._countTargets()}static _countTargets(){r._observer?r._targets.size<1&&(r._observer=void 0):r._targets.size&&(r._observer=new ResizeObserver(r._handleResize))}};E0._targets=new Map;E0._handleResize=r=>{r.forEach(t=>{var e;(e=E0._targets.get(t.target))==null||e(t)})};var pa;(function(r){r.Up="up",r.Down="down",r.Left="left",r.Right="right"})(pa||(pa={}));var _e;(function(r){r.Scroll="scroll",r.Scrolled="scrolled",r.ScrolledStart="scrolled-start",r.ScrolledEnd="scrolled-end"})(_e||(_e={}));var Lm=100,$r=class extends Kr{constructor(t,e={}){super(),this._element=t,this._config=e,this._axis="vertical",this._scrollThreshold=0,this._lastScrollPosition=0,this._lastScrollTop=0,this._lastScrollLeft=0,this._isListening=!1,this._initialize()}destroy(){this.stop()}start(){this._isListening||(this._element.addEventListener("scroll",this._scrollListener),this._isListening=!0)}stop(){this._element.removeEventListener("scroll",this._scrollListener),this._isListening=!1}_initialize(){if(this._config.throttle){let t=this._config.throttleTime||Lm;this._scrollListener=Sr(()=>this._onScroll(),t)}else this._scrollListener=()=>this._onScroll();(!k(this._config.paused)||!this._config.paused)&&this.start(),k(this._config.axis)&&(this._axis=this._config.axis),k(this._config.scrollThreshold)&&z2(this._config.scrollThreshold)&&(this._scrollThreshold=this._config.scrollThreshold)}_isScrollAxis(){let t=this._lastScrollTop!==this._element.scrollTop,e=this._lastScrollLeft!==this._element.scrollLeft;return this._axis==="vertical"&&t||this._axis==="horizontal"&&e}_onScroll(){if(!this._isScrollAxis())return;let t=this.scrollPosition,e=this._lastScrollPosition-t<0?this._axis==="vertical"?pa.Down:pa.Right:this._axis==="vertical"?pa.Up:pa.Left;this._emit(_e.Scroll,{direction:e,position:t}),this._lastScrollPosition<=this._scrollThreshold&&t>this._scrollThreshold?this._emit(_e.Scrolled,!0):this._lastScrollPosition>=this._scrollThreshold&&(this._scrollThreshold>0?t<this._scrollThreshold:t===0)&&this._emit(_e.Scrolled,!1);let a=Math.round(t-this._scrollThreshold),o=Math.round(this.scrollSize-t);this._lastScrollPosition>=this._scrollThreshold&&a<=0?this._emit(_e.ScrolledStart):this._lastScrollPosition<=this.scrollSize-this._scrollThreshold&&o<=this._scrollThreshold&&this._emit(_e.ScrolledEnd),this._lastScrollPosition=t||0,this._lastScrollTop=this._element.scrollTop||0,this._lastScrollLeft=this._element.scrollLeft||0}get scrollPosition(){return this._axis==="vertical"?this._element.scrollTop:this._element.scrollLeft}get isScrolled(){return this.scrollPosition>this._scrollThreshold}get isScrolledStart(){return this.scrollPosition===0}get isScrolledEnd(){return this.scrollPosition===this._element.scrollWidth}get isScrollable(){return this._axis==="vertical"?this._element.scrollHeight>this._element.clientHeight:this._element.scrollWidth>this._element.clientWidth}get scrollSize(){return(this._axis==="vertical"?this._element.scrollHeight:this._element.scrollWidth)-this.elementSize}get elementSize(){return this._axis==="vertical"?this._element.clientHeight:this._element.clientWidth}setScrollPosition(t){this._axis==="vertical"?this._element.scrollTop=t:this._element.scrollLeft=t}};var N5;(function(r){r.GET="GET",r.POST="POST",r.PUT="PUT",r.DELETE="DELETE",r.PATCH="PATCH",r.HEAD="HEAD",r.CONNECT="CONNECT",r.OPTIONS="OPTIONS",r.TRACE="TRACE"})(N5||(N5={}));var M=class extends HTMLElement{adoptedCallback(){this.shadowRoot&&L5(this)}};var Xr=class{constructor(){}static get(t){var a;let e=(a=window.TylerForgeGlobalConfiguration)==null?void 0:a[t];return e?{has(o){return o in e},valueOf(o){return e[o]}}:null}};var I=class{constructor(t){this._component=t}get hostElement(){return this._component}hasHostAttribute(t){return this._component.hasAttribute(t)}getHostAttribute(t){return this._component.getAttribute(t)}setHostAttribute(t,e=""){this._component.setAttribute(t,e)}removeHostAttribute(t){this._component.removeAttribute(t)}toggleHostAttribute(t,e,a){K(this._component,e,t,a)}redispatchEvent(t,e){var l,h,c,d,u;let a=!(((l=t.target)==null?void 0:l.getRootNode())instanceof ShadowRoot);t.bubbles&&(t.composed||a)&&t.stopPropagation();let o=t1(w({},t),{detail:(h=t.detail)!=null?h:null,bubbles:(c=e==null?void 0:e.bubbles)!=null?c:t.bubbles,cancelable:(d=e==null?void 0:e.cancelable)!=null?d:t.cancelable,composed:(u=e==null?void 0:e.composed)!=null?u:t.composed}),n=Reflect.construct(t.constructor,[t.type,o]),i=!this._component.dispatchEvent(n);return i&&t.preventDefault(),!i}emitHostEvent(t,e=null,a=!0,o){return o0(this._component,t,e,a,o)}dispatchHostEvent(t){return!this._component.dispatchEvent(t)}toggleHostListener(t,e,a,o){a?this.addHostListener(t,e,o):this.removeHostListener(t,e,o)}addHostListener(t,e,a){this._component.addEventListener(t,e,a)}removeHostListener(t,e,a){this._component.removeEventListener(t,e,a)}addWindowListener(t,e,a){window.addEventListener(t,e,a)}removeWindowListener(t,e,a){window.removeEventListener(t,e,a)}addDocumentListener(t,e,a){this._component.ownerDocument.addEventListener(t,e,a)}removeDocumentListener(t,e,a){this._component.ownerDocument.removeEventListener(t,e,a)}getScreenWidth(){return window.innerWidth}setBodyAttribute(t,e){this._component.ownerDocument.body.setAttribute(t,e)}removeBodyAttribute(t){this._component.ownerDocument.body.removeAttribute(t)}focusHost(t){HTMLElement.prototype.focus.call(this._component,t)}clickHost(){HTMLElement.prototype.click.call(this._component)}get isConnected(){return this._component.isConnected}tryApplyGlobalConfiguration(t){let e=this._component.tagName.toLowerCase(),a=Xr.get(e);if(a){for(let o of t)if(a.has(o)){let n=a.valueOf(o);n&&(this._component[o]=n)}}}};function jr(){return HTMLElement.prototype.hasOwnProperty("popover")}function R5(){return ElementInternals.prototype.hasOwnProperty("role")}function F5(){return!$2.isMobile}function U5(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}var b="forge-",W5=500,ke="tyler-icons",G5="https://cdn.forge.tylertech.com/",n0=F5(),Wo="data-forge-deferred-label-target",Lt=Symbol("getFormValue"),$t=Symbol("getFormState"),wt=Symbol("setValidity"),Xt=Symbol("getValidityMessage"),a1=Symbol("ElementInternals"),jt=Symbol("inputType"),$1=Symbol("isFocusable"),P=Symbol("setDefaultAria"),Zr=Symbol("updateTarget"),Ga=Symbol("forgeLabelRef");var Y5={name:"add",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"/></svg>'};var K5={name:"arrow_downward",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"/></svg>'};var C0={name:"arrow_drop_down",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M7 10l5 5 5-5z"/></svg>'};var q5={name:"arrow_right",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M10 17l5-5-5-5v10z"/><path d="M0 24V0h24v24H0z" fill="none"/></svg>'};var $5={name:"block",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9A7.902 7.902 0 014 12zm8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1A7.902 7.902 0 0120 12c0 4.42-3.58 8-8 8z"/></svg>'};var X5={name:"cancel",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"/></svg>'};var z0={name:"check_box_outline_blank",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"/></svg>'},A0={name:"check_box",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M19 3H5a2 2 0 00-2 2v14a2 2 0 002 2h14a2 2 0 002-2V5a2 2 0 00-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>'};var j5={name:"check",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>'};var Z5={name:"clear",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>'};var Ya={name:"close",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>'};var Q5={name:"date_range",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20a2 2 0 002 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"/></svg>'};var J5={name:"drag_handle",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0z"/><path d="M20 9H4v2h16V9zM4 15h16v-2H4v2z"/></svg>'};var t3={name:"first_page",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"/><path d="M24 24H0V0h24v24z" fill="none"/></svg>'};var e3={name:"help",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25z"/></svg>'};var a3={name:"insert_invitation",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19a2 2 0 002 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"/></svg>'};var i0={name:"keyboard_arrow_down",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"/></svg>'},s0={name:"keyboard_arrow_left",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"/></svg>'},fe={name:"keyboard_arrow_right",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"/></svg>'},Go={name:"keyboard_arrow_up",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"/></svg>'};var o3={name:"last_page",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"/></svg>'};var r3={name:"lens",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2z"/></svg>'};var Qr={name:"menu",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"/></svg>'};var n3={name:"mode_edit",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04a.996.996 0 000-1.41l-2.34-2.34a.996.996 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"/></svg>'};var i3={name:"notifications",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 22c1.1 0 2-.9 2-2h-4a2 2 0 002 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2z"/></svg>'};var s3={name:"search",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 109.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/></svg>'};var l3={name:"unfold_more",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M12 5.83L15.17 9l1.41-1.41L12 3 7.41 7.59 8.83 9 12 5.83zm0 12.34L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15 12 18.17z"/></svg>'};var v3={name:"warning",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"/></svg>'};var Im=`${b}open-icon`,h3={OPEN:"open",ORIENTATION:"orientation",ROTATION:"rotation"},Vm=w({},h3),Em={ORIENTATION:"vertical",ROTATION:"full"},It={elementName:Im,observedAttributes:h3,attributes:Vm,defaults:Em};var X1=class{constructor(t={}){this._config=t;this._initialize()}get element(){return this._element}destroy(){this.disconnect()}disconnect(){this._element.isConnected&&Te(this._element)}_initialize(){var t,e,a,o;if(this._element=this._build(),!this._element)throw new Error(`Invalid component instance: ${this._element}`);this._applyProps(),this._applyStyle(),this._applyAttrs(),(e=(t=this._config.options)==null?void 0:t.parent)==null||e.append(this._element),(a=this._config.options)!=null&&a.children&&this._applyChildren(),(o=this._configure)==null||o.call(this)}_applyProps(){this._config.props&&Object.assign(this._element,this._config.props)}_applyStyle(){var t,e;if((t=this._config.options)!=null&&t.style){let a=Object.keys(this._config.options.style);for(let o of a)(e=this._element)==null||e.style.setProperty(o,this._config.options.style[o])}}_applyAttrs(){var t,e;if((t=this._config.options)!=null&&t.attributes)if(this._config.options.attributes instanceof Map)for(let[a,o]of Array.from(this._config.options.attributes))this._element.setAttribute(a,o);else{let a=Object.keys(this._config.options.attributes);for(let o of a)(e=this._element)==null||e.setAttribute(o,this._config.options.attributes[o])}}_applyChildren(){var t;this._element.hasChildNodes()&&r2(this._element),(t=this._config.options)!=null&&t.children&&(typeof this._config.options.children=="string"?this._element.innerHTML=this._config.options.children:this._element.appendChild(this._config.options.children))}};var a2=class extends X1{constructor(t){super(t)}};var Cm=/^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T\s]((([01]\d|2[0-3])((:?)[0-5]\d)?|24\:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/,zm=/a-z/i,c3=10;function p3(r){if(r=r.replace(/_|\s/g,""),Cm.test(r)){let u=new Date(r);if(zm.test(r)||u.setMinutes(u.getMinutes()+u.getTimezoneOffset()),gt(u))return u}let t=[];r.indexOf("/")!==-1?t=r.split("/"):r.indexOf("-")!==-1?t=r.split("-"):(r.length===6||r.length===8)&&!isNaN(+r)&&(t=[r.substring(0,2),r.substring(2,4),r.substring(4)]);let e=t.length===3,[a,o,n]=t;if(a==="0"&&(a="1"),o==="0"&&(o="1"),typeof n=="string"&&n.length===3&&(n=n.padStart(4,"0")),e){let u=a.length===1||a.length===2,_=o.length===1||o.length===2,L=n.length===2||n.length===4;if(!u||!_||!L)return null}else return null;if(n.length===2){let u=new Date().getFullYear()-(100-c3),_=new Date().getFullYear()+c3,L=String(u).slice(0,2),C=String(_).slice(0,2),A=+String(_).slice(2);n=+n<=A?`${C}${n}`:`${L}${n}`}let i=+a,l=+o,h=+n;i>12&&(i=12);let c=new Date(h,i,0).getDate();l>c&&(l=c);let d=new Date(h,i-1,l,0,0,0,0);return gt(d)?d:null}function d3(r){let t=String(r.getMonth()+1).padStart(2,"0"),e=String(r.getDate()).padStart(2,"0"),a=String(r.getFullYear()).padStart(4,"0");return[t,e,a].join("/")}function f2(r,t){return!r&&!t?!0:!r||!t||!gt(r)||!gt(t)?!1:new Date(r).setHours(0,0,0,0)===new Date(t).setHours(0,0,0,0)}function jl(r,t){return new Date(t!=null?t:1970,r+1,0)}function m3(r,t){return jl(r,t).getDate()}var Jr=class{constructor(){this.promise=new Promise((t,e)=>{this._resolveFn=t,this._rejectFn=e})}resolve(t){this._resolveFn(t)}reject(t){this._rejectFn(t)}};var Zl="forge-aria-controls-placeholder";function g3(r,t){let a=r.toLowerCase().indexOf(t.toLowerCase());if(a!==-1){let o=a+t.length,n=document.createElement("span"),i=document.createElement("span");return i.style.fontWeight="bold",i.textContent=r.substring(a,o),n.appendChild(document.createTextNode(r.substring(0,a))),n.appendChild(i),n.appendChild(document.createTextNode(r.substring(o))),n}}function w3(r,{capture:t=!0,pointerenter:e=!0,focusin:a=!0}={}){let o,n=()=>{typeof o=="function"&&o()};return{userInteraction:new Promise(l=>{let h={once:!0,capture:t},c=u=>{a&&r.removeEventListener("focusin",d,h),l(u)},d=u=>{e&&r.removeEventListener("pointerenter",c,h),l(u)};o=()=>{e&&r.removeEventListener("pointerenter",c,h),a&&r.removeEventListener("focusin",d,h)},e&&r.addEventListener("pointerenter",c,h),a&&r.addEventListener("focusin",d,h)}),destroy:n}}function u3(r,t){return t===0?0:r/100*t}function _H(r,t){return t===0?0:r*100/t}function tn(r,t,e,a=0,o=100){let n=e-t,i=r-t;return!n||!i?a:i*o/n+a}function B0(...r){return Math.min(...r.map(t=>t!=null?t:Number.POSITIVE_INFINITY))}function fH(...r){return Math.max(...r.map(t=>t!=null?t:Number.NEGATIVE_INFINITY))}function _3(r,t){if(!(r&&t))return!1;let e=r.getBoundingClientRect(),a=t.getBoundingClientRect();return!(e.top>a.bottom||e.right<a.left||e.bottom<a.top||e.left>a.right)}function Ql({x:r,y:t},e){if(!e)return!1;let{top:a,left:o,bottom:n,right:i}=e.getBoundingClientRect();return r>=o&&r<=i&&t>=a&&t<=n}function en(r,t){let e=null;return t&&(e=Yo(r,t)),e||r.parentElement}function Yo(r,t){let e=r.getRootNode();return t===":host"&&e instanceof ShadowRoot?e.host:e.querySelector(`#${t}`)}function Ka(r,t,e=!0){return e&&t.append(...r.childNodes),r.insertAdjacentElement("beforebegin",t),r.remove(),t}function da(r,t=","){return r.split(t).map(e=>e.trim())}function xH(r,t,e){if(!r.length)return;let a=r[0].parentNode;a&&(a.insertBefore(t,r[0]),r.forEach(o=>{e!=null&&e.length&&e.some(n=>o.matches(n))||t.append(o)}))}function bH(r){let t=r.parentNode;if(t){for(;r.firstChild;)t.insertBefore(r.firstChild,r);r.remove()}}function qa(r){let t=window.devicePixelRatio||1;return Math.round(r*t)/t}function Oe(){if(document.getElementById(Zl))return;let t=document.createElement("div");t.id=Zl,document.body.appendChild(t)}function Zt(r){let t=document.getElementById(Zl);t&&r.setAttribute("aria-controls",t.id)}function Qt(r=0){return new Promise(t=>setTimeout(t,r))}function Ko(){return new Promise(r=>requestAnimationFrame(()=>r()))}function f3(r,t){return Object.prototype.toString.call(r)===`[object ${t}]`}var T0=Symbol("tryDismiss"),Jl=Symbol("forgeDismissibleStack"),Vt=class r{constructor(){this._dismissibleElements=new Set;this._elementsRequestingDismiss=new Map}get dismissing(){var t,e;return(e=(t=this._deferredDismiss)==null?void 0:t.promise)!=null?e:Promise.resolve()}static get instance(){return window[Jl]||(window[Jl]=new r),window[Jl]}async dismiss(t,e){let a=Array.from(this._dismissibleElements),o=a.slice(a.indexOf(t)).reverse();for(let n of o)if(!n[T0](e))break}async requestDismiss(t,e){var o;if(this._deferredDismiss||(this._deferredDismiss=new Jr),this._elementsRequestingDismiss.set(t,e),await Qt(),!this.isRequestingLightDismiss(t))return;let a=Array.from(this._elementsRequestingDismiss).reverse();this._elementsRequestingDismiss.clear();try{for(let[n,i]of a)if(!n[T0](i))break}finally{(o=this._deferredDismiss)==null||o.resolve(),this._deferredDismiss=void 0}}add(t){this._dismissibleElements.add(t)}remove(t){this._dismissibleElements.delete(t),this._elementsRequestingDismiss.delete(t)}has(t){return this._dismissibleElements.has(t)}isRequestingLightDismiss(t){return this._elementsRequestingDismiss.has(t)}isMostRecent(t){let e=Array.from(this._dismissibleElements);return e[e.length-1]===t}};function x3(r,t){let e=()=>t.dispatchEvent(new Event("scroll"));return r.addEventListener("scroll",e,!0),()=>r.removeEventListener("scroll",e,!0)}function t4(r){return r.key==="ArrowLeft"||r.key==="ArrowRight"||r.key==="ArrowUp"||r.key==="ArrowDown"}var EH=["aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-current","aria-description","aria-disabled","aria-expanded","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext"],CH=["aria-autocomplete","aria-description","aria-invalid","aria-keyshortcuts","aria-label"],zH=["checked","disabled","indeterminate","readOnly","required","value"],y3=["name","value","formaction","formenctype","formmethod","formnovalidate","formtarget"];function AH(r,t){return t.map(e=>`${r}:${e}`)}function S0(r,t,e,a=!0){a&&t.some(h=>h.toLowerCase().startsWith("aria-"))&&r.setAttribute("role","presentation");let o=h=>{let c=h.split(":"),d=c.length===2?c[0]:null,u=c.length===2?c[1]:c[0],_=r.getAttribute(h);e.call({},u,_,d)};t.forEach(h=>o(h));let n={attributeFilter:t},i=h=>{h.forEach(c=>o(c.attributeName))},l=new MutationObserver(i);return l.observe(r,n),l}function e4(r,t,e){e.forEach(a=>{let o=r.getAttribute(a);o!==null&&t.setAttribute(a,o)})}function Am(r,t,e){e.forEach(a=>{let o=r[a];k(o)&&(t[a]=o)})}function Bm(r,t){let e=r.validationMessage;e&&t.setCustomValidity(e)}var b3=class{get el(){return this._el}static cloneAttributes(t,e,a){e4(t,e,a)}static cloneProperties(t,e,a){Am(t,e,a)}static cloneValidationMessage(t,e){Object.hasOwnProperty.call(t,"validationMessage")&&Object.hasOwnProperty.call(e,"validationMessage")?Bm(t,e):console.warn("cloneValidationMessage() requires both elements to be input elements.")}initialize(t,e){this._attachCallback=e,this._el=t}attachElement(t){this._attachCallback(t,this._el),this._el=t}};function M3(r,t){let e=document.createElement("div");e.innerHTML=r;for(let o=e.childNodes.length-1;o>=0;o--)e.childNodes[o].nodeName.toLowerCase()!=="svg"&&e.removeChild(e.childNodes[o]);let a=e.firstElementChild;return(a==null?void 0:a.nodeName.toLowerCase())==="svg"&&H3(a)?(t&&a.setAttribute("viewBox",t),!a.hasAttribute("viewBox")&&t&&a.setAttribute("viewBox",t),a.removeAttribute("height"),a.removeAttribute("width"),a):null}function H3(r){if(r.nodeType!==1)return!0;if(r.nodeName.toLowerCase()==="script"||r.querySelector("script"))return!1;let t=Array.from(r.attributes);for(let a of t)if(typeof a.name=="string"&&a.name.toLowerCase().startsWith("on"))return!1;let e=Array.from(r.childNodes);for(let a of e)if(!H3(a))return!1;return!0}var $a=/^(0?[0-9]|1\d|2[0-3]):([0-5]\d)(:([0-5]\d))?$/,an=/^(0?[1-9]|1[0-2]):([0-5]\d)(:([0-5]\d))?\s*([AaPp][Mm])?$/,Tm=/^(\d?\d?):?(\d?\d?)(:?(\d?\d?))?\s*([AaPp][Mm]?)?$/,L3=/[AaPp][Mm]?/;function I3(r){let t=r.match($a)||[null,0,0,null,0],e=t[1],a=t[2],o=t[4];return{hours:e,minutes:a,seconds:o}}function V3(r){let t=r.match(an)||[null,0,0,null,0,"AM"],e=t[1],a=t[2],o=t[4],n=t[5];return{hours:e,minutes:a,seconds:o,meridiem:n}}function E3(r){return $a.test(r)||an.test(r)}function C3(r,t,e){if(r=r&&typeof r=="string"?r.replace(/_|\s/g,""):"",/^\s*$/.test(r)||/^:+$/.test(r))return"";let a=r.match(Tm);if(!a)return"";let o=a[1],n=a[2],i=a[4],l=a[5],h=r.match(L3);h&&(l=h[0],r=r.replace(l,""),l.length===1&&(l+="m")),r.length===3&&!r.includes(":")&&(o=r[0],n=r.substring(1)),t?l="":L3.test(l)?l=l.toUpperCase():/^[AaPp]/.test(l)?l.toLowerCase().startsWith("a")?l="AM":l.toLowerCase().startsWith("p")&&(l="PM"):l="";let c=+o||0,d=+n||0,u=!l||t?23:12;if(c>=u?o=String(u):c<0&&(o="00"),o=o.padStart(2,"0"),n!==void 0&&(d>59?n="59":d<0?n="00":n=n.padStart(2,"0")),i!==void 0){let L=+i||0;L>59?i="59":L<0?i="00":i=i.padStart(2,"0")}let _=o;return n!==void 0&&(_+=`:${n}`,i===void 0&&e&&(i="00")),i!==void 0&&(_+=`:${i}`),l&&(_+=` ${l}`),_}function xe(r,t){if(r==null)return{};var e={},a=Object.keys(r),o,n;for(n=0;n<a.length;n++)o=a[n],!(t.indexOf(o)>=0)&&(e[o]=r[o]);return e}function j(r){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return new j.InputMask(r,t)}var u1=class{constructor(t){Object.assign(this,{inserted:"",rawInserted:"",skip:!1,tailShift:0},t)}aggregate(t){return this.rawInserted+=t.rawInserted,this.skip=this.skip||t.skip,this.inserted+=t.inserted,this.tailShift+=t.tailShift,this}get offset(){return this.tailShift+this.inserted.length}};j.ChangeDetails=u1;function De(r){return typeof r=="string"||r instanceof String}var G={NONE:"NONE",LEFT:"LEFT",FORCE_LEFT:"FORCE_LEFT",RIGHT:"RIGHT",FORCE_RIGHT:"FORCE_RIGHT"};function z3(r){switch(r){case G.LEFT:return G.FORCE_LEFT;case G.RIGHT:return G.FORCE_RIGHT;default:return r}}function on(r){return r.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function l0(r){return Array.isArray(r)?r:[r,new u1]}function Xa(r,t){if(t===r)return!0;var e=Array.isArray(t),a=Array.isArray(r),o;if(e&&a){if(t.length!=r.length)return!1;for(o=0;o<t.length;o++)if(!Xa(t[o],r[o]))return!1;return!0}if(e!=a)return!1;if(t&&r&&typeof t=="object"&&typeof r=="object"){var n=t instanceof Date,i=r instanceof Date;if(n&&i)return t.getTime()==r.getTime();if(n!=i)return!1;var l=t instanceof RegExp,h=r instanceof RegExp;if(l&&h)return t.toString()==r.toString();if(l!=h)return!1;var c=Object.keys(t);for(o=0;o<c.length;o++)if(!Object.prototype.hasOwnProperty.call(r,c[o]))return!1;for(o=0;o<c.length;o++)if(!Xa(r[c[o]],t[c[o]]))return!1;return!0}else if(t&&r&&typeof t=="function"&&typeof r=="function")return t.toString()===r.toString();return!1}var rn=class{constructor(t,e,a,o){for(this.value=t,this.cursorPos=e,this.oldValue=a,this.oldSelection=o;this.value.slice(0,this.startChangePos)!==this.oldValue.slice(0,this.startChangePos);)--this.oldSelection.start}get startChangePos(){return Math.min(this.cursorPos,this.oldSelection.start)}get insertedCount(){return this.cursorPos-this.startChangePos}get inserted(){return this.value.substr(this.startChangePos,this.insertedCount)}get removedCount(){return Math.max(this.oldSelection.end-this.startChangePos||this.oldValue.length-this.value.length,0)}get removed(){return this.oldValue.substr(this.startChangePos,this.removedCount)}get head(){return this.value.substring(0,this.startChangePos)}get tail(){return this.value.substring(this.startChangePos+this.insertedCount)}get removeDirection(){return!this.removedCount||this.insertedCount?G.NONE:(this.oldSelection.end===this.cursorPos||this.oldSelection.start===this.cursorPos)&&this.oldSelection.end===this.oldSelection.start?G.RIGHT:G.LEFT}};var Et=class{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2?arguments[2]:void 0;this.value=t,this.from=e,this.stop=a}toString(){return this.value}extend(t){this.value+=String(t)}appendTo(t){return t.append(this.toString(),{tail:!0}).aggregate(t._appendPlaceholder())}get state(){return{value:this.value,from:this.from,stop:this.stop}}set state(t){Object.assign(this,t)}unshift(t){if(!this.value.length||t!=null&&this.from>=t)return"";let e=this.value[0];return this.value=this.value.slice(1),e}shift(){if(!this.value.length)return"";let t=this.value[this.value.length-1];return this.value=this.value.slice(0,-1),t}};var N2=class r{constructor(t){this._value="",this._update(Object.assign({},r.DEFAULTS,t)),this.isInitialized=!0}updateOptions(t){Object.keys(t).length&&this.withValueRefresh(this._update.bind(this,t))}_update(t){Object.assign(this,t)}get state(){return{_value:this.value}}set state(t){this._value=t._value}reset(){this._value=""}get value(){return this._value}set value(t){this.resolve(t)}resolve(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{input:!0};return this.reset(),this.append(t,e,""),this.doCommit(),this.value}get unmaskedValue(){return this.value}set unmaskedValue(t){this.reset(),this.append(t,{},""),this.doCommit()}get typedValue(){return this.doParse(this.value)}set typedValue(t){this.value=this.doFormat(t)}get rawInputValue(){return this.extractInput(0,this.value.length,{raw:!0})}set rawInputValue(t){this.reset(),this.append(t,{raw:!0},""),this.doCommit()}get displayValue(){return this.value}get isComplete(){return!0}get isFilled(){return this.isComplete}nearestInputPos(t,e){return t}totalInputPositions(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length;return Math.min(this.value.length,e-t)}extractInput(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length;return this.value.slice(t,e)}extractTail(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length;return new Et(this.extractInput(t,e),t)}appendTail(t){return De(t)&&(t=new Et(String(t))),t.appendTo(this)}_appendCharRaw(t){return t?(this._value+=t,new u1({inserted:t,rawInserted:t})):new u1}_appendChar(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2?arguments[2]:void 0,o=this.state,n;if([t,n]=l0(this.doPrepare(t,e)),n=n.aggregate(this._appendCharRaw(t,e)),n.inserted){let i,l=this.doValidate(e)!==!1;if(l&&a!=null){let h=this.state;this.overwrite===!0&&(i=a.state,a.unshift(this.value.length-n.tailShift));let c=this.appendTail(a);l=c.rawInserted===a.toString(),!(l&&c.inserted)&&this.overwrite==="shift"&&(this.state=h,i=a.state,a.shift(),c=this.appendTail(a),l=c.rawInserted===a.toString()),l&&c.inserted&&(this.state=h)}l||(n=new u1,this.state=o,a&&i&&(a.state=i))}return n}_appendPlaceholder(){return new u1}_appendEager(){return new u1}append(t,e,a){if(!De(t))throw new Error("value should be string");let o=new u1,n=De(a)?new Et(String(a)):a;e!=null&&e.tail&&(e._beforeTailState=this.state);for(let i=0;i<t.length;++i){let l=this._appendChar(t[i],e,n);if(!l.rawInserted&&!this.doSkipInvalid(t[i],e,n))break;o.aggregate(l)}return(this.eager===!0||this.eager==="append")&&e!==null&&e!==void 0&&e.input&&t&&o.aggregate(this._appendEager()),n!=null&&(o.tailShift+=this.appendTail(n).tailShift),o}remove(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length;return this._value=this.value.slice(0,t)+this.value.slice(e),new u1}withValueRefresh(t){if(this._refreshing||!this.isInitialized)return t();this._refreshing=!0;let e=this.rawInputValue,a=this.value,o=t();return this.rawInputValue=e,this.value&&this.value!==a&&a.indexOf(this.value)===0&&this.append(a.slice(this.value.length),{},""),delete this._refreshing,o}runIsolated(t){if(this._isolated||!this.isInitialized)return t(this);this._isolated=!0;let e=this.state,a=t(this);return this.state=e,delete this._isolated,a}doSkipInvalid(t){return this.skipInvalid}doPrepare(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.prepare?this.prepare(t,this,e):t}doValidate(t){return(!this.validate||this.validate(this.value,this,t))&&(!this.parent||this.parent.doValidate(t))}doCommit(){this.commit&&this.commit(this.value,this)}doFormat(t){return this.format?this.format(t,this):t}doParse(t){return this.parse?this.parse(t,this):t}splice(t,e,a,o){let n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{input:!0},i=t+e,l=this.extractTail(i),h=this.eager===!0||this.eager==="remove",c;h&&(o=z3(o),c=this.extractInput(0,i,{raw:!0}));let d=t,u=new u1;if(o!==G.NONE&&(d=this.nearestInputPos(t,e>1&&t!==0&&!h?G.NONE:o),u.tailShift=d-t),u.aggregate(this.remove(d)),h&&o!==G.NONE&&c===this.rawInputValue)if(o===G.FORCE_LEFT){let _;for(;c===this.rawInputValue&&(_=this.value.length);)u.aggregate(new u1({tailShift:-1})).aggregate(this.remove(_-1))}else o===G.FORCE_RIGHT&&l.unshift();return u.aggregate(this.append(a,n,l))}maskEquals(t){return this.mask===t}typedValueEquals(t){let e=this.typedValue;return t===e||r.EMPTY_VALUES.includes(t)&&r.EMPTY_VALUES.includes(e)||this.doFormat(t)===this.doFormat(this.typedValue)}};N2.DEFAULTS={format:String,parse:r=>r,skipInvalid:!0};N2.EMPTY_VALUES=[void 0,null,""];j.Masked=N2;function a4(r){if(r==null)throw new Error("mask property should be defined");return r instanceof RegExp?j.MaskedRegExp:De(r)?j.MaskedPattern:r instanceof Date||r===Date?j.MaskedDate:r instanceof Number||typeof r=="number"||r===Number?j.MaskedNumber:Array.isArray(r)||r===Array?j.MaskedDynamic:j.Masked&&r.prototype instanceof j.Masked?r:r instanceof j.Masked?r.constructor:r instanceof Function?j.MaskedFunction:(console.warn("Mask not found for mask",r),j.Masked)}function X2(r){if(j.Masked&&r instanceof j.Masked)return r;r=Object.assign({},r);let t=r.mask;if(j.Masked&&t instanceof j.Masked)return t;let e=a4(t);if(!e)throw new Error("Masked class is not found for provided mask, appropriate module needs to be import manually before creating mask.");return new e(r)}j.createMask=X2;var Sm=["parent","isOptional","placeholderChar","displayChar","lazy","eager"],A3={0:/\d/,a:/[\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,"*":/./},qo=class{constructor(t){let{parent:e,isOptional:a,placeholderChar:o,displayChar:n,lazy:i,eager:l}=t,h=xe(t,Sm);this.masked=X2(h),Object.assign(this,{parent:e,isOptional:a,placeholderChar:o,displayChar:n,lazy:i,eager:l})}reset(){this.isFilled=!1,this.masked.reset()}remove(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length;return t===0&&e>=1?(this.isFilled=!1,this.masked.remove(t,e)):new u1}get value(){return this.masked.value||(this.isFilled&&!this.isOptional?this.placeholderChar:"")}get unmaskedValue(){return this.masked.unmaskedValue}get displayValue(){return this.masked.value&&this.displayChar||this.value}get isComplete(){return!!this.masked.value||this.isOptional}_appendChar(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.isFilled)return new u1;let a=this.masked.state,o=this.masked._appendChar(t,e);return o.inserted&&this.doValidate(e)===!1&&(o.inserted=o.rawInserted="",this.masked.state=a),!o.inserted&&!this.isOptional&&!this.lazy&&!e.input&&(o.inserted=this.placeholderChar),o.skip=!o.inserted&&!this.isOptional,this.isFilled=!!o.inserted,o}append(){return this.masked.append(...arguments)}_appendPlaceholder(){let t=new u1;return this.isFilled||this.isOptional||(this.isFilled=!0,t.inserted=this.placeholderChar),t}_appendEager(){return new u1}extractTail(){return this.masked.extractTail(...arguments)}appendTail(){return this.masked.appendTail(...arguments)}extractInput(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length,a=arguments.length>2?arguments[2]:void 0;return this.masked.extractInput(t,e,a)}nearestInputPos(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:G.NONE,a=0,o=this.value.length,n=Math.min(Math.max(t,a),o);switch(e){case G.LEFT:case G.FORCE_LEFT:return this.isComplete?n:a;case G.RIGHT:case G.FORCE_RIGHT:return this.isComplete?n:o;case G.NONE:default:return n}}totalInputPositions(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length;return this.value.slice(t,e).length}doValidate(){return this.masked.doValidate(...arguments)&&(!this.parent||this.parent.doValidate(...arguments))}doCommit(){this.masked.doCommit()}get state(){return{masked:this.masked.state,isFilled:this.isFilled}}set state(t){this.masked.state=t.masked,this.isFilled=t.isFilled}};var $o=class{constructor(t){Object.assign(this,t),this._value="",this.isFixed=!0}get value(){return this._value}get unmaskedValue(){return this.isUnmasking?this.value:""}get displayValue(){return this.value}reset(){this._isRawInput=!1,this._value=""}remove(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this._value.length;return this._value=this._value.slice(0,t)+this._value.slice(e),this._value||(this._isRawInput=!1),new u1}nearestInputPos(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:G.NONE,a=0,o=this._value.length;switch(e){case G.LEFT:case G.FORCE_LEFT:return a;case G.NONE:case G.RIGHT:case G.FORCE_RIGHT:default:return o}}totalInputPositions(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this._value.length;return this._isRawInput?e-t:0}extractInput(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this._value.length;return(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).raw&&this._isRawInput&&this._value.slice(t,e)||""}get isComplete(){return!0}get isFilled(){return!!this._value}_appendChar(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=new u1;if(this.isFilled)return a;let o=this.eager===!0||this.eager==="append",i=this.char===t&&(this.isUnmasking||e.input||e.raw)&&(!e.raw||!o)&&!e.tail;return i&&(a.rawInserted=this.char),this._value=a.inserted=this.char,this._isRawInput=i&&(e.raw||e.input),a}_appendEager(){return this._appendChar(this.char,{tail:!0})}_appendPlaceholder(){let t=new u1;return this.isFilled||(this._value=t.inserted=this.char),t}extractTail(){return arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length,new Et("")}appendTail(t){return De(t)&&(t=new Et(String(t))),t.appendTo(this)}append(t,e,a){let o=this._appendChar(t[0],e);return a!=null&&(o.tailShift+=this.appendTail(a).tailShift),o}doCommit(){}get state(){return{_value:this._value,_isRawInput:this._isRawInput}}set state(t){Object.assign(this,t)}};var km=["chunks"],Xo=class r{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;this.chunks=t,this.from=e}toString(){return this.chunks.map(String).join("")}extend(t){if(!String(t))return;De(t)&&(t=new Et(String(t)));let e=this.chunks[this.chunks.length-1],a=e&&(e.stop===t.stop||t.stop==null)&&t.from===e.from+e.toString().length;if(t instanceof Et)a?e.extend(t.toString()):this.chunks.push(t);else if(t instanceof r){if(t.stop==null){let o;for(;t.chunks.length&&t.chunks[0].stop==null;)o=t.chunks.shift(),o.from+=t.from,this.extend(o)}t.toString()&&(t.stop=t.blockIndex,this.chunks.push(t))}}appendTo(t){if(!(t instanceof j.MaskedPattern))return new Et(this.toString()).appendTo(t);let e=new u1;for(let a=0;a<this.chunks.length&&!e.skip;++a){let o=this.chunks[a],n=t._mapPosToBlock(t.value.length),i=o.stop,l;if(i!=null&&(!n||n.index<=i)){if(o instanceof r||t._stops.indexOf(i)>=0){let h=t._appendPlaceholder(i);e.aggregate(h)}l=o instanceof r&&t._blocks[i]}if(l){let h=l.appendTail(o);h.skip=!1,e.aggregate(h),t._value+=h.inserted;let c=o.toString().slice(h.rawInserted.length);c&&e.aggregate(t.append(c,{tail:!0}))}else e.aggregate(t.append(o.toString(),{tail:!0}))}return e}get state(){return{chunks:this.chunks.map(t=>t.state),from:this.from,stop:this.stop,blockIndex:this.blockIndex}}set state(t){let{chunks:e}=t,a=xe(t,km);Object.assign(this,a),this.chunks=e.map(o=>{let n="chunks"in o?new r:new Et;return n.state=o,n})}unshift(t){if(!this.chunks.length||t!=null&&this.from>=t)return"";let e=t!=null?t-this.from:t,a=0;for(;a<this.chunks.length;){let o=this.chunks[a],n=o.unshift(e);if(o.toString()){if(!n)break;++a}else this.chunks.splice(a,1);if(n)return n}return""}shift(){if(!this.chunks.length)return"";let t=this.chunks.length-1;for(;0<=t;){let e=this.chunks[t],a=e.shift();if(e.toString()){if(!a)break;--t}else this.chunks.splice(t,1);if(a)return a}return""}};var nn=class{constructor(t,e){this.masked=t,this._log=[];let{offset:a,index:o}=t._mapPosToBlock(e)||(e<0?{index:0,offset:0}:{index:this.masked._blocks.length,offset:0});this.offset=a,this.index=o,this.ok=!1}get block(){return this.masked._blocks[this.index]}get pos(){return this.masked._blockStartPos(this.index)+this.offset}get state(){return{index:this.index,offset:this.offset,ok:this.ok}}set state(t){Object.assign(this,t)}pushState(){this._log.push(this.state)}popState(){let t=this._log.pop();return this.state=t,t}bindBlock(){this.block||(this.index<0&&(this.index=0,this.offset=0),this.index>=this.masked._blocks.length&&(this.index=this.masked._blocks.length-1,this.offset=this.block.value.length))}_pushLeft(t){for(this.pushState(),this.bindBlock();0<=this.index;--this.index,this.offset=((e=this.block)===null||e===void 0?void 0:e.value.length)||0){var e;if(t())return this.ok=!0}return this.ok=!1}_pushRight(t){for(this.pushState(),this.bindBlock();this.index<this.masked._blocks.length;++this.index,this.offset=0)if(t())return this.ok=!0;return this.ok=!1}pushLeftBeforeFilled(){return this._pushLeft(()=>{if(!(this.block.isFixed||!this.block.value)&&(this.offset=this.block.nearestInputPos(this.offset,G.FORCE_LEFT),this.offset!==0))return!0})}pushLeftBeforeInput(){return this._pushLeft(()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,G.LEFT),!0})}pushLeftBeforeRequired(){return this._pushLeft(()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,G.LEFT),!0})}pushRightBeforeFilled(){return this._pushRight(()=>{if(!(this.block.isFixed||!this.block.value)&&(this.offset=this.block.nearestInputPos(this.offset,G.FORCE_RIGHT),this.offset!==this.block.value.length))return!0})}pushRightBeforeInput(){return this._pushRight(()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,G.NONE),!0})}pushRightBeforeRequired(){return this._pushRight(()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,G.NONE),!0})}};var sn=class extends N2{_update(t){t.mask&&(t.validate=e=>e.search(t.mask)>=0),super._update(t)}};j.MaskedRegExp=sn;var Om=["_blocks"],ut=class r extends N2{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.definitions=Object.assign({},A3,t.definitions),super(Object.assign({},r.DEFAULTS,t))}_update(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.definitions=Object.assign({},this.definitions,t.definitions),super._update(t),this._rebuildMask()}_rebuildMask(){let t=this.definitions;this._blocks=[],this._stops=[],this._maskedBlocks={};let e=this.mask;if(!e||!t)return;let a=!1,o=!1;for(let l=0;l<e.length;++l){var n,i;if(this.blocks){let _=e.slice(l),L=Object.keys(this.blocks).filter(A=>_.indexOf(A)===0);L.sort((A,z)=>z.length-A.length);let C=L[0];if(C){let A=X2(Object.assign({parent:this,lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,overwrite:this.overwrite},this.blocks[C]));A&&(this._blocks.push(A),this._maskedBlocks[C]||(this._maskedBlocks[C]=[]),this._maskedBlocks[C].push(this._blocks.length-1)),l+=C.length-1;continue}}let h=e[l],c=h in t;if(h===r.STOP_CHAR){this._stops.push(this._blocks.length);continue}if(h==="{"||h==="}"){a=!a;continue}if(h==="["||h==="]"){o=!o;continue}if(h===r.ESCAPE_CHAR){if(++l,h=e[l],!h)break;c=!1}let d=(n=t[h])!==null&&n!==void 0&&n.mask&&!(((i=t[h])===null||i===void 0?void 0:i.mask.prototype)instanceof j.Masked)?t[h]:{mask:t[h]},u=c?new qo(Object.assign({parent:this,isOptional:o,lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar},d)):new $o({char:h,eager:this.eager,isUnmasking:a});this._blocks.push(u)}}get state(){return Object.assign({},super.state,{_blocks:this._blocks.map(t=>t.state)})}set state(t){let{_blocks:e}=t,a=xe(t,Om);this._blocks.forEach((o,n)=>o.state=e[n]),super.state=a}reset(){super.reset(),this._blocks.forEach(t=>t.reset())}get isComplete(){return this._blocks.every(t=>t.isComplete)}get isFilled(){return this._blocks.every(t=>t.isFilled)}get isFixed(){return this._blocks.every(t=>t.isFixed)}get isOptional(){return this._blocks.every(t=>t.isOptional)}doCommit(){this._blocks.forEach(t=>t.doCommit()),super.doCommit()}get unmaskedValue(){return this._blocks.reduce((t,e)=>t+=e.unmaskedValue,"")}set unmaskedValue(t){super.unmaskedValue=t}get value(){return this._blocks.reduce((t,e)=>t+=e.value,"")}set value(t){super.value=t}get displayValue(){return this._blocks.reduce((t,e)=>t+=e.displayValue,"")}appendTail(t){return super.appendTail(t).aggregate(this._appendPlaceholder())}_appendEager(){var t;let e=new u1,a=(t=this._mapPosToBlock(this.value.length))===null||t===void 0?void 0:t.index;if(a==null)return e;this._blocks[a].isFilled&&++a;for(let o=a;o<this._blocks.length;++o){let n=this._blocks[o]._appendEager();if(!n.inserted)break;e.aggregate(n)}return e}_appendCharRaw(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=this._mapPosToBlock(this.value.length),o=new u1;if(!a)return o;for(let l=a.index;;++l){var n,i;let h=this._blocks[l];if(!h)break;let c=h._appendChar(t,Object.assign({},e,{_beforeTailState:(n=e._beforeTailState)===null||n===void 0||(i=n._blocks)===null||i===void 0?void 0:i[l]})),d=c.skip;if(o.aggregate(c),d||c.rawInserted)break}return o}extractTail(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length,a=new Xo;return t===e||this._forEachBlocksInRange(t,e,(o,n,i,l)=>{let h=o.extractTail(i,l);h.stop=this._findStopBefore(n),h.from=this._blockStartPos(n),h instanceof Xo&&(h.blockIndex=n),a.extend(h)}),a}extractInput(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(t===e)return"";let o="";return this._forEachBlocksInRange(t,e,(n,i,l,h)=>{o+=n.extractInput(l,h,a)}),o}_findStopBefore(t){let e;for(let a=0;a<this._stops.length;++a){let o=this._stops[a];if(o<=t)e=o;else break}return e}_appendPlaceholder(t){let e=new u1;if(this.lazy&&t==null)return e;let a=this._mapPosToBlock(this.value.length);if(!a)return e;let o=a.index,n=t!=null?t:this._blocks.length;return this._blocks.slice(o,n).forEach(i=>{if(!i.lazy||t!=null){let l=i._blocks!=null?[i._blocks.length]:[],h=i._appendPlaceholder(...l);this._value+=h.inserted,e.aggregate(h)}}),e}_mapPosToBlock(t){let e="";for(let a=0;a<this._blocks.length;++a){let o=this._blocks[a],n=e.length;if(e+=o.value,t<=e.length)return{index:a,offset:t-n}}}_blockStartPos(t){return this._blocks.slice(0,t).reduce((e,a)=>e+=a.value.length,0)}_forEachBlocksInRange(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length,a=arguments.length>2?arguments[2]:void 0,o=this._mapPosToBlock(t);if(o){let n=this._mapPosToBlock(e),i=n&&o.index===n.index,l=o.offset,h=n&&i?n.offset:this._blocks[o.index].value.length;if(a(this._blocks[o.index],o.index,l,h),n&&!i){for(let c=o.index+1;c<n.index;++c)a(this._blocks[c],c,0,this._blocks[c].value.length);a(this._blocks[n.index],n.index,0,n.offset)}}}remove(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length,a=super.remove(t,e);return this._forEachBlocksInRange(t,e,(o,n,i,l)=>{a.aggregate(o.remove(i,l))}),a}nearestInputPos(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:G.NONE;if(!this._blocks.length)return 0;let a=new nn(this,t);if(e===G.NONE)return a.pushRightBeforeInput()||(a.popState(),a.pushLeftBeforeInput())?a.pos:this.value.length;if(e===G.LEFT||e===G.FORCE_LEFT){if(e===G.LEFT){if(a.pushRightBeforeFilled(),a.ok&&a.pos===t)return t;a.popState()}if(a.pushLeftBeforeInput(),a.pushLeftBeforeRequired(),a.pushLeftBeforeFilled(),e===G.LEFT){if(a.pushRightBeforeInput(),a.pushRightBeforeRequired(),a.ok&&a.pos<=t||(a.popState(),a.ok&&a.pos<=t))return a.pos;a.popState()}return a.ok?a.pos:e===G.FORCE_LEFT?0:(a.popState(),a.ok||(a.popState(),a.ok)?a.pos:0)}return e===G.RIGHT||e===G.FORCE_RIGHT?(a.pushRightBeforeInput(),a.pushRightBeforeRequired(),a.pushRightBeforeFilled()?a.pos:e===G.FORCE_RIGHT?this.value.length:(a.popState(),a.ok||(a.popState(),a.ok)?a.pos:this.nearestInputPos(t,G.LEFT))):t}totalInputPositions(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length,a=0;return this._forEachBlocksInRange(t,e,(o,n,i,l)=>{a+=o.totalInputPositions(i,l)}),a}maskedBlock(t){return this.maskedBlocks(t)[0]}maskedBlocks(t){let e=this._maskedBlocks[t];return e?e.map(a=>this._blocks[a]):[]}};ut.DEFAULTS={lazy:!0,placeholderChar:"_"};ut.STOP_CHAR="`";ut.ESCAPE_CHAR="\\";ut.InputDefinition=qo;ut.FixedDefinition=$o;j.MaskedPattern=ut;var Jt=class extends ut{get _matchFrom(){return this.maxLength-String(this.from).length}_update(t){t=Object.assign({to:this.to||0,from:this.from||0,maxLength:this.maxLength||0},t);let e=String(t.to).length;t.maxLength!=null&&(e=Math.max(e,t.maxLength)),t.maxLength=e;let a=String(t.from).padStart(e,"0"),o=String(t.to).padStart(e,"0"),n=0;for(;n<o.length&&o[n]===a[n];)++n;t.mask=o.slice(0,n).replace(/0/g,"\\0")+"0".repeat(e-n),super._update(t)}get isComplete(){return super.isComplete&&!!this.value}boundaries(t){let e="",a="",[,o,n]=t.match(/^(\D*)(\d*)(\D*)/)||[];return n&&(e="0".repeat(o.length)+n,a="9".repeat(o.length)+n),e=e.padEnd(this.maxLength,"0"),a=a.padEnd(this.maxLength,"9"),[e,a]}doPrepare(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a;if([t,a]=l0(super.doPrepare(t.replace(/\D/g,""),e)),!this.autofix||!t)return t;let o=String(this.from).padStart(this.maxLength,"0"),n=String(this.to).padStart(this.maxLength,"0"),i=this.value+t;if(i.length>this.maxLength)return"";let[l,h]=this.boundaries(i);return Number(h)<this.from?o[i.length-1]:Number(l)>this.to?this.autofix==="pad"&&i.length<this.maxLength?["",a.aggregate(this.append(o[i.length-1]+t,e))]:n[i.length-1]:t}doValidate(){let t=this.value;if(t.search(/[^0]/)===-1&&t.length<=this._matchFrom)return!0;let[a,o]=this.boundaries(t);return this.from<=Number(o)&&Number(a)<=this.to&&super.doValidate(...arguments)}};j.MaskedRange=Jt;var ja=class r extends ut{constructor(t){super(Object.assign({},r.DEFAULTS,t))}_update(t){t.mask===Date&&delete t.mask,t.pattern&&(t.mask=t.pattern);let e=t.blocks;t.blocks=Object.assign({},r.GET_DEFAULT_BLOCKS()),t.min&&(t.blocks.Y.from=t.min.getFullYear()),t.max&&(t.blocks.Y.to=t.max.getFullYear()),t.min&&t.max&&t.blocks.Y.from===t.blocks.Y.to&&(t.blocks.m.from=t.min.getMonth()+1,t.blocks.m.to=t.max.getMonth()+1,t.blocks.m.from===t.blocks.m.to&&(t.blocks.d.from=t.min.getDate(),t.blocks.d.to=t.max.getDate())),Object.assign(t.blocks,this.blocks,e),Object.keys(t.blocks).forEach(a=>{let o=t.blocks[a];!("autofix"in o)&&"autofix"in t&&(o.autofix=t.autofix)}),super._update(t)}doValidate(){let t=this.date;return super.doValidate(...arguments)&&(!this.isComplete||this.isDateExist(this.value)&&t!=null&&(this.min==null||this.min<=t)&&(this.max==null||t<=this.max))}isDateExist(t){return this.format(this.parse(t,this),this).indexOf(t)>=0}get date(){return this.typedValue}set date(t){this.typedValue=t}get typedValue(){return this.isComplete?super.typedValue:null}set typedValue(t){super.typedValue=t}maskEquals(t){return t===Date||super.maskEquals(t)}};ja.DEFAULTS={pattern:"d{.}`m{.}`Y",format:r=>{if(!r)return"";let t=String(r.getDate()).padStart(2,"0"),e=String(r.getMonth()+1).padStart(2,"0"),a=r.getFullYear();return[t,e,a].join(".")},parse:r=>{let[t,e,a]=r.split(".");return new Date(a,e-1,t)}};ja.GET_DEFAULT_BLOCKS=()=>({d:{mask:Jt,from:1,to:31,maxLength:2},m:{mask:Jt,from:1,to:12,maxLength:2},Y:{mask:Jt,from:1900,to:9999}});j.MaskedDate=ja;var k0=class{get selectionStart(){let t;try{t=this._unsafeSelectionStart}catch(e){}return t!=null?t:this.value.length}get selectionEnd(){let t;try{t=this._unsafeSelectionEnd}catch(e){}return t!=null?t:this.value.length}select(t,e){if(!(t==null||e==null||t===this.selectionStart&&e===this.selectionEnd))try{this._unsafeSelect(t,e)}catch(a){}}_unsafeSelect(t,e){}get isActive(){return!1}bindEvents(t){}unbindEvents(){}};j.MaskElement=k0;var v0=class r extends k0{constructor(t){super(),this.input=t,this._handlers={}}get rootElement(){var t,e,a;return(t=(e=(a=this.input).getRootNode)===null||e===void 0?void 0:e.call(a))!==null&&t!==void 0?t:document}get isActive(){return this.input===this.rootElement.activeElement}get _unsafeSelectionStart(){return this.input.selectionStart}get _unsafeSelectionEnd(){return this.input.selectionEnd}_unsafeSelect(t,e){this.input.setSelectionRange(t,e)}get value(){return this.input.value}set value(t){this.input.value=t}bindEvents(t){Object.keys(t).forEach(e=>this._toggleEventHandler(r.EVENTS_MAP[e],t[e]))}unbindEvents(){Object.keys(this._handlers).forEach(t=>this._toggleEventHandler(t))}_toggleEventHandler(t,e){this._handlers[t]&&(this.input.removeEventListener(t,this._handlers[t]),delete this._handlers[t]),e&&(this.input.addEventListener(t,e),this._handlers[t]=e)}};v0.EVENTS_MAP={selectionChange:"keydown",input:"input",drop:"drop",click:"click",focus:"focus",commit:"blur"};j.HTMLMaskElement=v0;var Za=class extends v0{get _unsafeSelectionStart(){let t=this.rootElement,e=t.getSelection&&t.getSelection(),a=e&&e.anchorOffset,o=e&&e.focusOffset;return o==null||a==null||a<o?a:o}get _unsafeSelectionEnd(){let t=this.rootElement,e=t.getSelection&&t.getSelection(),a=e&&e.anchorOffset,o=e&&e.focusOffset;return o==null||a==null||a>o?a:o}_unsafeSelect(t,e){if(!this.rootElement.createRange)return;let a=this.rootElement.createRange();a.setStart(this.input.firstChild||this.input,t),a.setEnd(this.input.lastChild||this.input,e);let o=this.rootElement,n=o.getSelection&&o.getSelection();n&&(n.removeAllRanges(),n.addRange(a))}get value(){return this.input.textContent}set value(t){this.input.textContent=t}};j.HTMLContenteditableMaskElement=Za;var Dm=["mask"],O0=class{constructor(t,e){this.el=t instanceof k0?t:t.isContentEditable&&t.tagName!=="INPUT"&&t.tagName!=="TEXTAREA"?new Za(t):new v0(t),this.masked=X2(e),this._listeners={},this._value="",this._unmaskedValue="",this._saveSelection=this._saveSelection.bind(this),this._onInput=this._onInput.bind(this),this._onChange=this._onChange.bind(this),this._onDrop=this._onDrop.bind(this),this._onFocus=this._onFocus.bind(this),this._onClick=this._onClick.bind(this),this.alignCursor=this.alignCursor.bind(this),this.alignCursorFriendly=this.alignCursorFriendly.bind(this),this._bindEvents(),this.updateValue(),this._onChange()}get mask(){return this.masked.mask}maskEquals(t){var e;return t==null||((e=this.masked)===null||e===void 0?void 0:e.maskEquals(t))}set mask(t){if(this.maskEquals(t))return;if(!(t instanceof j.Masked)&&this.masked.constructor===a4(t)){this.masked.updateOptions({mask:t});return}let e=X2({mask:t});e.unmaskedValue=this.masked.unmaskedValue,this.masked=e}get value(){return this._value}set value(t){this.value!==t&&(this.masked.value=t,this.updateControl(),this.alignCursor())}get unmaskedValue(){return this._unmaskedValue}set unmaskedValue(t){this.unmaskedValue!==t&&(this.masked.unmaskedValue=t,this.updateControl(),this.alignCursor())}get typedValue(){return this.masked.typedValue}set typedValue(t){this.masked.typedValueEquals(t)||(this.masked.typedValue=t,this.updateControl(),this.alignCursor())}get displayValue(){return this.masked.displayValue}_bindEvents(){this.el.bindEvents({selectionChange:this._saveSelection,input:this._onInput,drop:this._onDrop,click:this._onClick,focus:this._onFocus,commit:this._onChange})}_unbindEvents(){this.el&&this.el.unbindEvents()}_fireEvent(t){for(var e=arguments.length,a=new Array(e>1?e-1:0),o=1;o<e;o++)a[o-1]=arguments[o];let n=this._listeners[t];n&&n.forEach(i=>i(...a))}get selectionStart(){return this._cursorChanging?this._changingCursorPos:this.el.selectionStart}get cursorPos(){return this._cursorChanging?this._changingCursorPos:this.el.selectionEnd}set cursorPos(t){!this.el||!this.el.isActive||(this.el.select(t,t),this._saveSelection())}_saveSelection(){this.displayValue!==this.el.value&&console.warn("Element value was changed outside of mask. Syncronize mask using `mask.updateValue()` to work properly."),this._selection={start:this.selectionStart,end:this.cursorPos}}updateValue(){this.masked.value=this.el.value,this._value=this.masked.value}updateControl(){let t=this.masked.unmaskedValue,e=this.masked.value,a=this.displayValue,o=this.unmaskedValue!==t||this.value!==e;this._unmaskedValue=t,this._value=e,this.el.value!==a&&(this.el.value=a),o&&this._fireChangeEvents()}updateOptions(t){let{mask:e}=t,a=xe(t,Dm),o=!this.maskEquals(e),n=!Xa(this.masked,a);o&&(this.mask=e),n&&this.masked.updateOptions(a),(o||n)&&this.updateControl()}updateCursor(t){t!=null&&(this.cursorPos=t,this._delayUpdateCursor(t))}_delayUpdateCursor(t){this._abortUpdateCursor(),this._changingCursorPos=t,this._cursorChanging=setTimeout(()=>{this.el&&(this.cursorPos=this._changingCursorPos,this._abortUpdateCursor())},10)}_fireChangeEvents(){this._fireEvent("accept",this._inputEvent),this.masked.isComplete&&this._fireEvent("complete",this._inputEvent)}_abortUpdateCursor(){this._cursorChanging&&(clearTimeout(this._cursorChanging),delete this._cursorChanging)}alignCursor(){this.cursorPos=this.masked.nearestInputPos(this.masked.nearestInputPos(this.cursorPos,G.LEFT))}alignCursorFriendly(){this.selectionStart===this.cursorPos&&this.alignCursor()}on(t,e){return this._listeners[t]||(this._listeners[t]=[]),this._listeners[t].push(e),this}off(t,e){if(!this._listeners[t])return this;if(!e)return delete this._listeners[t],this;let a=this._listeners[t].indexOf(e);return a>=0&&this._listeners[t].splice(a,1),this}_onInput(t){if(this._inputEvent=t,this._abortUpdateCursor(),!this._selection)return this.updateValue();let e=new rn(this.el.value,this.cursorPos,this.displayValue,this._selection),a=this.masked.rawInputValue,o=this.masked.splice(e.startChangePos,e.removed.length,e.inserted,e.removeDirection,{input:!0,raw:!0}).offset,n=a===this.masked.rawInputValue?e.removeDirection:G.NONE,i=this.masked.nearestInputPos(e.startChangePos+o,n);n!==G.NONE&&(i=this.masked.nearestInputPos(i,G.NONE)),this.updateControl(),this.updateCursor(i),delete this._inputEvent}_onChange(){this.displayValue!==this.el.value&&this.updateValue(),this.masked.doCommit(),this.updateControl(),this._saveSelection()}_onDrop(t){t.preventDefault(),t.stopPropagation()}_onFocus(t){this.alignCursorFriendly()}_onClick(t){this.alignCursorFriendly()}destroy(){this._unbindEvents(),this._listeners.length=0,delete this.el}};j.InputMask=O0;var ma=class extends ut{_update(t){t.enum&&(t.mask="*".repeat(t.enum[0].length)),super._update(t)}doValidate(){return this.enum.some(t=>t.indexOf(this.unmaskedValue)>=0)&&super.doValidate(...arguments)}};j.MaskedEnum=ma;var D0=class r extends N2{constructor(t){super(Object.assign({},r.DEFAULTS,t))}_update(t){super._update(t),this._updateRegExps()}_updateRegExps(){let t="^"+(this.allowNegative?"[+|\\-]?":""),e="\\d*",a=(this.scale?"(".concat(on(this.radix),"\\d{0,").concat(this.scale,"})?"):"")+"$";this._numberRegExp=new RegExp(t+e+a),this._mapToRadixRegExp=new RegExp("[".concat(this.mapToRadix.map(on).join(""),"]"),"g"),this._thousandsSeparatorRegExp=new RegExp(on(this.thousandsSeparator),"g")}_removeThousandsSeparators(t){return t.replace(this._thousandsSeparatorRegExp,"")}_insertThousandsSeparators(t){let e=t.split(this.radix);return e[0]=e[0].replace(/\B(?=(\d{3})+(?!\d))/g,this.thousandsSeparator),e.join(this.radix)}doPrepare(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};t=this._removeThousandsSeparators(this.scale&&this.mapToRadix.length&&(e.input&&e.raw||!e.input&&!e.raw)?t.replace(this._mapToRadixRegExp,this.radix):t);let[a,o]=l0(super.doPrepare(t,e));return t&&!a&&(o.skip=!0),[a,o]}_separatorsCount(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a=0;for(let o=0;o<t;++o)this._value.indexOf(this.thousandsSeparator,o)===o&&(++a,e&&(t+=this.thousandsSeparator.length));return a}_separatorsCountFromSlice(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this._value;return this._separatorsCount(this._removeThousandsSeparators(t).length,!0)}extractInput(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length,a=arguments.length>2?arguments[2]:void 0;return[t,e]=this._adjustRangeWithSeparators(t,e),this._removeThousandsSeparators(super.extractInput(t,e,a))}_appendCharRaw(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.thousandsSeparator)return super._appendCharRaw(t,e);let a=e.tail&&e._beforeTailState?e._beforeTailState._value:this._value,o=this._separatorsCountFromSlice(a);this._value=this._removeThousandsSeparators(this.value);let n=super._appendCharRaw(t,e);this._value=this._insertThousandsSeparators(this._value);let i=e.tail&&e._beforeTailState?e._beforeTailState._value:this._value,l=this._separatorsCountFromSlice(i);return n.tailShift+=(l-o)*this.thousandsSeparator.length,n.skip=!n.rawInserted&&t===this.thousandsSeparator,n}_findSeparatorAround(t){if(this.thousandsSeparator){let e=t-this.thousandsSeparator.length+1,a=this.value.indexOf(this.thousandsSeparator,e);if(a<=t)return a}return-1}_adjustRangeWithSeparators(t,e){let a=this._findSeparatorAround(t);a>=0&&(t=a);let o=this._findSeparatorAround(e);return o>=0&&(e=o+this.thousandsSeparator.length),[t,e]}remove(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length;[t,e]=this._adjustRangeWithSeparators(t,e);let a=this.value.slice(0,t),o=this.value.slice(e),n=this._separatorsCount(a.length);this._value=this._insertThousandsSeparators(this._removeThousandsSeparators(a+o));let i=this._separatorsCountFromSlice(a);return new u1({tailShift:(i-n)*this.thousandsSeparator.length})}nearestInputPos(t,e){if(!this.thousandsSeparator)return t;switch(e){case G.NONE:case G.LEFT:case G.FORCE_LEFT:{let a=this._findSeparatorAround(t-1);if(a>=0){let o=a+this.thousandsSeparator.length;if(t<o||this.value.length<=o||e===G.FORCE_LEFT)return a}break}case G.RIGHT:case G.FORCE_RIGHT:{let a=this._findSeparatorAround(t);if(a>=0)return a+this.thousandsSeparator.length}}return t}doValidate(t){let e=!!this._removeThousandsSeparators(this.value).match(this._numberRegExp);if(e){let a=this.number;e=e&&!isNaN(a)&&(this.min==null||this.min>=0||this.min<=this.number)&&(this.max==null||this.max<=0||this.number<=this.max)}return e&&super.doValidate(t)}doCommit(){if(this.value){let t=this.number,e=t;this.min!=null&&(e=Math.max(e,this.min)),this.max!=null&&(e=Math.min(e,this.max)),e!==t&&(this.unmaskedValue=this.doFormat(e));let a=this.value;this.normalizeZeros&&(a=this._normalizeZeros(a)),this.padFractionalZeros&&this.scale>0&&(a=this._padFractionalZeros(a)),this._value=a}super.doCommit()}_normalizeZeros(t){let e=this._removeThousandsSeparators(t).split(this.radix);return e[0]=e[0].replace(/^(\D*)(0*)(\d*)/,(a,o,n,i)=>o+i),t.length&&!/\d$/.test(e[0])&&(e[0]=e[0]+"0"),e.length>1&&(e[1]=e[1].replace(/0*$/,""),e[1].length||(e.length=1)),this._insertThousandsSeparators(e.join(this.radix))}_padFractionalZeros(t){if(!t)return t;let e=t.split(this.radix);return e.length<2&&e.push(""),e[1]=e[1].padEnd(this.scale,"0"),e.join(this.radix)}doSkipInvalid(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2?arguments[2]:void 0,o=this.scale===0&&t!==this.thousandsSeparator&&(t===this.radix||t===r.UNMASKED_RADIX||this.mapToRadix.includes(t));return super.doSkipInvalid(t,e,a)&&!o}get unmaskedValue(){return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix,r.UNMASKED_RADIX)}set unmaskedValue(t){super.unmaskedValue=t}get typedValue(){return this.doParse(this.unmaskedValue)}set typedValue(t){this.rawInputValue=this.doFormat(t).replace(r.UNMASKED_RADIX,this.radix)}get number(){return this.typedValue}set number(t){this.typedValue=t}get allowNegative(){return this.signed||this.min!=null&&this.min<0||this.max!=null&&this.max<0}typedValueEquals(t){return(super.typedValueEquals(t)||r.EMPTY_VALUES.includes(t)&&r.EMPTY_VALUES.includes(this.typedValue))&&!(t===0&&this.value==="")}};D0.UNMASKED_RADIX=".";D0.DEFAULTS={radix:",",thousandsSeparator:"",mapToRadix:[D0.UNMASKED_RADIX],scale:2,signed:!1,normalizeZeros:!0,padFractionalZeros:!1,parse:Number,format:r=>r.toLocaleString("en-US",{useGrouping:!1,maximumFractionDigits:20})};D0.EMPTY_VALUES=[...N2.EMPTY_VALUES,0];j.MaskedNumber=D0;var ln=class extends N2{_update(t){t.mask&&(t.validate=t.mask),super._update(t)}};j.MaskedFunction=ln;var Pm=["compiledMasks","currentMaskRef","currentMask"],Nm=["mask"],jo=class r extends N2{constructor(t){super(Object.assign({},r.DEFAULTS,t)),this.currentMask=null}_update(t){super._update(t),"mask"in t&&(this.compiledMasks=Array.isArray(t.mask)?t.mask.map(e=>X2(e)):[])}_appendCharRaw(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=this._applyDispatch(t,e);return this.currentMask&&a.aggregate(this.currentMask._appendChar(t,this.currentMaskFlags(e))),a}_applyDispatch(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",o=e.tail&&e._beforeTailState!=null?e._beforeTailState._value:this.value,n=this.rawInputValue,i=e.tail&&e._beforeTailState!=null?e._beforeTailState._rawInputValue:n,l=n.slice(i.length),h=this.currentMask,c=new u1,d=h==null?void 0:h.state;if(this.currentMask=this.doDispatch(t,Object.assign({},e),a),this.currentMask)if(this.currentMask!==h){if(this.currentMask.reset(),i){let u=this.currentMask.append(i,{raw:!0});c.tailShift=u.inserted.length-o.length}l&&(c.tailShift+=this.currentMask.append(l,{raw:!0,tail:!0}).tailShift)}else this.currentMask.state=d;return c}_appendPlaceholder(){let t=this._applyDispatch(...arguments);return this.currentMask&&t.aggregate(this.currentMask._appendPlaceholder()),t}_appendEager(){let t=this._applyDispatch(...arguments);return this.currentMask&&t.aggregate(this.currentMask._appendEager()),t}appendTail(t){let e=new u1;return t&&e.aggregate(this._applyDispatch("",{},t)),e.aggregate(this.currentMask?this.currentMask.appendTail(t):super.appendTail(t))}currentMaskFlags(t){var e,a;return Object.assign({},t,{_beforeTailState:((e=t._beforeTailState)===null||e===void 0?void 0:e.currentMaskRef)===this.currentMask&&((a=t._beforeTailState)===null||a===void 0?void 0:a.currentMask)||t._beforeTailState})}doDispatch(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";return this.dispatch(t,this,e,a)}doValidate(t){return super.doValidate(t)&&(!this.currentMask||this.currentMask.doValidate(this.currentMaskFlags(t)))}doPrepare(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},[a,o]=l0(super.doPrepare(t,e));if(this.currentMask){let n;[a,n]=l0(super.doPrepare(a,this.currentMaskFlags(e))),o=o.aggregate(n)}return[a,o]}reset(){var t;(t=this.currentMask)===null||t===void 0||t.reset(),this.compiledMasks.forEach(e=>e.reset())}get value(){return this.currentMask?this.currentMask.value:""}set value(t){super.value=t}get unmaskedValue(){return this.currentMask?this.currentMask.unmaskedValue:""}set unmaskedValue(t){super.unmaskedValue=t}get typedValue(){return this.currentMask?this.currentMask.typedValue:""}set typedValue(t){let e=String(t);this.currentMask&&(this.currentMask.typedValue=t,e=this.currentMask.unmaskedValue),this.unmaskedValue=e}get displayValue(){return this.currentMask?this.currentMask.displayValue:""}get isComplete(){var t;return!!(!((t=this.currentMask)===null||t===void 0)&&t.isComplete)}get isFilled(){var t;return!!(!((t=this.currentMask)===null||t===void 0)&&t.isFilled)}remove(){let t=new u1;return this.currentMask&&t.aggregate(this.currentMask.remove(...arguments)).aggregate(this._applyDispatch()),t}get state(){var t;return Object.assign({},super.state,{_rawInputValue:this.rawInputValue,compiledMasks:this.compiledMasks.map(e=>e.state),currentMaskRef:this.currentMask,currentMask:(t=this.currentMask)===null||t===void 0?void 0:t.state})}set state(t){let{compiledMasks:e,currentMaskRef:a,currentMask:o}=t,n=xe(t,Pm);this.compiledMasks.forEach((i,l)=>i.state=e[l]),a!=null&&(this.currentMask=a,this.currentMask.state=o),super.state=n}extractInput(){return this.currentMask?this.currentMask.extractInput(...arguments):""}extractTail(){return this.currentMask?this.currentMask.extractTail(...arguments):super.extractTail(...arguments)}doCommit(){this.currentMask&&this.currentMask.doCommit(),super.doCommit()}nearestInputPos(){return this.currentMask?this.currentMask.nearestInputPos(...arguments):super.nearestInputPos(...arguments)}get overwrite(){return this.currentMask?this.currentMask.overwrite:super.overwrite}set overwrite(t){console.warn('"overwrite" option is not available in dynamic mask, use this option in siblings')}get eager(){return this.currentMask?this.currentMask.eager:super.eager}set eager(t){console.warn('"eager" option is not available in dynamic mask, use this option in siblings')}get skipInvalid(){return this.currentMask?this.currentMask.skipInvalid:super.skipInvalid}set skipInvalid(t){(this.isInitialized||t!==N2.DEFAULTS.skipInvalid)&&console.warn('"skipInvalid" option is not available in dynamic mask, use this option in siblings')}maskEquals(t){return Array.isArray(t)&&this.compiledMasks.every((e,a)=>{if(!t[a])return;let o=t[a],{mask:n}=o,i=xe(o,Nm);return Xa(e,i)&&e.maskEquals(n)})}typedValueEquals(t){var e;return!!(!((e=this.currentMask)===null||e===void 0)&&e.typedValueEquals(t))}};jo.DEFAULTS={dispatch:(r,t,e,a)=>{if(!t.compiledMasks.length)return;let o=t.rawInputValue,n=t.compiledMasks.map((i,l)=>{let h=t.currentMask===i,c=h?i.value.length:i.nearestInputPos(i.value.length,G.FORCE_LEFT);return i.rawInputValue!==o?(i.reset(),i.append(o,{raw:!0})):h||i.remove(c),i.append(r,t.currentMaskFlags(e)),i.appendTail(a),{index:l,weight:i.rawInputValue.length,totalInputPositions:i.totalInputPositions(0,Math.max(c,i.nearestInputPos(i.value.length,G.FORCE_LEFT)))}});return n.sort((i,l)=>l.weight-i.weight||l.totalInputPositions-i.totalInputPositions),t.compiledMasks[n[0].index]}};j.MaskedDynamic=jo;var vn={MASKED:"value",UNMASKED:"unmaskedValue",TYPED:"typedValue"};function o4(r){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:vn.MASKED,e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:vn.MASKED,a=X2(r);return o=>a.runIsolated(n=>(n[t]=o,n[e]))}function B3(r){for(var t=arguments.length,e=new Array(t>1?t-1:0),a=1;a<t;a++)e[a-1]=arguments[a];return o4(...e)(r)}j.PIPE_TYPE=vn;j.createPipe=o4;j.pipe=B3;try{globalThis.IMask=j}catch(r){}var hn="0`0{/}`0`0{/}`0`0`0`0",ga=class{constructor(t,e={}){this._element=t;this._options=e;this._maskOptions=this._createOptions(),this._mask=new O0(this._element,this._maskOptions),this._options.onChange&&(this._acceptListener=()=>this._onAccept(),this._mask.on("accept",this._acceptListener))}destroy(){this._acceptListener&&this._mask.off("accept",this._acceptListener),this._mask.destroy()}resolve(t){return X2(this._maskOptions).resolve(t)}_onAccept(){typeof this._options.onChange=="function"&&this._options.onChange(this._mask.value)}get _isDefaultMask(){return this._options.pattern===hn}_createOptions(){return{mask:this._options.pattern||hn,lazy:this._options.showMaskFormat===void 0?!1:!this._options.showMaskFormat,overwrite:!0,prepare:(e,a,o)=>this._prepare(e,a,o,this._mask),blocks:{MM:{mask:Jt,autofix:!0,from:1,to:12,maxLength:2},DD:{mask:Jt,autofix:!0,from:1,to:31,maxLength:2},YYYY:{mask:Jt,autofix:!0,from:0,to:9999,maxLength:4}}}}_prepare(t,e,a,o){return typeof this._options.prepareCallback=="function"?this._options.prepareCallback.call(null,t,e,a,this._mask):this._isDefaultMask?this._prepareDefault(t,e,a,o):t}_prepareDefault(t,e,a,o){if(!a.input||!t.length||!o)return t;let i=o._selection&&o._selection.end===10?"":o.value;if(!Br(t)){if(t==="/"){if(o.cursorPos===2&&i.length===1)return this._setMaskedValueAdjusted(i.padStart(2,"0"),3),"/";if(o.cursorPos===5&&i.length===4){let _=`${i.substring(0,3)}${i[3].padStart(2,"0").padStart(2,"0")}`;return this._setMaskedValueAdjusted(_,3),"/"}}return t}let l=+t;if(o.cursorPos===1&&l>1){let d=`${String(l).padStart(2,"0")}${i.slice(2)}`;return this._setMaskedValueAdjusted(d,3),"/"}if((o.cursorPos===3||o.cursorPos===4)&&l>3){let d=`${i.substring(0,3)}${String(l).padStart(2,"0")}${i.slice(5)}`;return this._setMaskedValueAdjusted(d,3),"/"}if(!this._options.showMaskFormat&&(o.cursorPos===2||o.cursorPos===5)){let d;return o.cursorPos===2?d=`${i.substring(0,1)}${l}/${i.slice(3)}`:d=`${i.substring(0,4)}${l}/${i.slice(6)}`,this._setMaskedValueAdjusted(d,2),""}return t}_setMaskedValueAdjusted(t,e){this._mask.unmaskedValue=t,window.requestAnimationFrame(()=>this._mask.updateCursor(this._mask.cursorPos+e))}updateMask(){this._mask.updateValue()}get maskedValue(){return this._mask.value}set maskedValue(t){this._mask.value=t}get unmaskedValue(){return this._mask.unmaskedValue}set unmaskedValue(t){this._mask.unmaskedValue=t}};var Zo={hours:0,minutes:1,seconds:2,meridiem:3},cn=class{constructor(t){this._segments=this._parseSegments(t)}get hours(){return this._segments[Zo.hours]}get minutes(){return this._segments[Zo.minutes]}get seconds(){return this._segments[Zo.seconds]}get meridiem(){return this._segments[Zo.meridiem]}applyValue(t){this._segments=this._parseSegments(t)}patchSegmentValue(t,e){let a=Zo[t];return this._segments[a]=e.padStart(2,"0"),this._segments[a]}toString(){let[t,e,a,o]=this._segments;return`${[t,e,a].filter(i=>!!i.length).join(":")}${o}`}_parseSegments(t){let[e,a=""]=t.trim().replace(/\s+|_/g,"").split(/([AaPp][Mm]?)/),[o="",n="",i=""]=e.split(":");return[o,n,i,a]}};var Rm={"hours-start":0,"hours-end":2,"minutes-start":3,"minutes-end":5,"seconds-start":6,"seconds-end":8,"meridiem-start":9,"meridiem-end":11},pn=class{constructor(t,e){this._char=t;this._mask=e;this._segmentParser=new cn(this._mask.value)}get value(){return this.isAllSelected?"":this._normalizeTimeString(this._mask.value)}get numChar(){return Number(this._char)}get asPaddedChar(){return String(this.numChar).padStart(2,"0")}_normalizeTimeString(t){let e=t.replace(/\s+|_/g,"");return/^:+$/.test(e)&&(e=""),e}get isAllSelected(){let{start:t,end:e}=this._mask._selection;return t===0&&e>0&&e===this._mask.value.length}get isFirstHoursChar(){return this._mask.cursorPos===1&&this.numChar>0}get isFirstMinutesChar(){return[3,4].includes(this._mask.cursorPos)&&this._segmentParser.minutes.length!==2}get isFirstSecondsChar(){return[6,7].includes(this._mask.cursorPos)&&this._segmentParser.seconds.length!==2}get isFinalHoursChar(){return this._mask.cursorPos===3&&this._segmentParser.hours.length===2}get isFinalMinutesChar(){return this._mask.cursorPos===6&&this._segmentParser.minutes.length===2}get isFinalSecondsChar(){return this._mask.cursorPos===9&&this._segmentParser.seconds.length===2}get isInitialHoursEntry(){return this._segmentParser.hours.length===0}get hasOnlyHoursSegment(){return!!this._segmentParser.hours&&!this._segmentParser.minutes&&!this._segmentParser.seconds}get hoursSegmentNum(){return Number(this._segmentParser.hours)}get minutesSegmentNum(){return Number(this._segmentParser.minutes)}get secondsSegmentNum(){return Number(this._segmentParser.seconds)}get canOverwriteHoursChar(){return this._mask.cursorPos===3&&!!this._segmentParser.hours.length&&this.hoursSegmentNum<3}get canOverwriteMinutesChar(){return[5,6].includes(this._mask.cursorPos)&&!!this._segmentParser.minutes.length&&this.minutesSegmentNum<60}get canOverwriteSecondsChar(){return[8,9].includes(this._mask.cursorPos)&&!!this._segmentParser.seconds.length&&this.secondsSegmentNum<60}reset(){this._segmentParser.applyValue("")}patchSegmentValue(t,e,{overwrite:a=!1}={}){return a&&this.reset(),this._segmentParser.patchSegmentValue(t,e),this._segmentParser.toString()}applyValue(t,e){this._mask.unmaskedValue=t,e!==void 0&&window.requestAnimationFrame(()=>this._mask.updateCursor(Rm[e]))}};var Fm="0`0{:}`0`0 `AM",Um="0`0{:}`0`0{:}`0`0 `AM",Wm="0`0{:}`0`0",Gm="0`0{:}`0`0{:}`0`0",dn=class{constructor(t,e={}){this._element=t;this._options=e;this._maskOptions=this._createOptions(),this._mask=new O0(this._element,this._maskOptions),this._options.onChange&&(this._acceptListener=()=>this._onAccept(),this._mask.on("accept",this._acceptListener))}destroy(){this._acceptListener&&this._mask.off("accept",this._acceptListener),this._mask.destroy()}resolve(t){return X2(this._maskOptions).resolve(t)}update(){this._mask.updateValue()}_onAccept(){typeof this._options.onChange=="function"&&this._options.onChange(this._mask.value)}_createOptions(){return{mask:this._getMaskFormat(),overwrite:!0,lazy:!this._options.showMaskFormat,prepare:(t,e,a)=>this._prepare(t,e,a,this._mask),blocks:{A:{mask:ma,enum:["a","A","p","P"]},M:{mask:ma,enum:["m","M"]}}}}_prepare(t,e,a,o){var n;return typeof this._options.prepareCallback=="function"?this._options.prepareCallback.call(null,t,e,a,this._mask):!a.input||!t.length||!o?t.toUpperCase():((n=o._inputEvent)==null?void 0:n.inputType)!=="insertText"?t:this._prepareDefault(t,o).toUpperCase()}_prepareDefault(t,e){let a=new pn(t,e);if(!Br(t)){if(t===":"){if(a.isFinalHoursChar){let o=a.patchSegmentValue("hours",a.value);return a.applyValue(o,"minutes-start"),t}if(a.isFinalMinutesChar){let o=a.patchSegmentValue("minutes",String(a.minutesSegmentNum));return a.applyValue(o,this._options.showSeconds?"seconds-start":"minutes-end"),t}if(this._options.showSeconds&&a.isFinalSecondsChar){let o=a.patchSegmentValue("seconds",String(a.secondsSegmentNum));return a.applyValue(o,"meridiem-start"),t}}return t}if(a.isAllSelected&&a.reset(),a.isInitialHoursEntry&&a.isFirstHoursChar){let o=a.patchSegmentValue("hours",a.asPaddedChar);return a.applyValue(o,"hours-end"),":"}if(a.hasOnlyHoursSegment&&a.canOverwriteHoursChar){let o=+`${a.hoursSegmentNum}${a.numChar}`;if(o<=12||this._options.use24HourTime&&o<=23){let n=a.patchSegmentValue("hours",String(o));return a.applyValue(n,"minutes-start"),":"}}if(a.value.length+1===2)return`${t}:`;if(a.isFirstMinutesChar){let o=a.patchSegmentValue("minutes",a.asPaddedChar);return a.applyValue(o,"minutes-end"),":"}if(a.canOverwriteMinutesChar){let o=+`${a.minutesSegmentNum}${a.numChar}`;if(o<60){let n=a.patchSegmentValue("minutes",String(o));return a.applyValue(n,"minutes-end"),":"}}if(this._options.showSeconds){if(a.isFirstSecondsChar){let o=a.patchSegmentValue("seconds",a.asPaddedChar);return a.applyValue(o,"seconds-end"),":"}if(a.canOverwriteSecondsChar){let o=+`${a.secondsSegmentNum}${a.numChar}`;if(o<60){let n=a.patchSegmentValue("seconds",String(o));return a.applyValue(n,"seconds-end"),":"}}}return t}_getMaskFormat(){return this._options.use24HourTime?this._options.showSeconds?Gm:Wm:this._options.showSeconds?Um:Fm}get maskedValue(){return this._mask.value}set maskedValue(t){this._mask.value=t}get unmaskedValue(){return this._mask.unmaskedValue}set unmaskedValue(t){this._mask.unmaskedValue=t}};var Ym=`${b}icon`,T3={NAME:"name",SRC:"src",LAZY:"lazy",EXTERNAL:"external",EXTERNAL_TYPE:"external-type",VIEWBOX:"viewbox",THEME:"theme"},Km=w({},T3),qm={LAZY_ROOT_MARGIN:50,DEFAULT_WIDTH:24,DEFAULT_HEIGHT:24},$m={DEFAULT_NETWORK_BASE_URL:`${G5}v1/icons/svg`},h1={elementName:Ym,observedAttributes:T3,attributes:Km,numbers:qm,strings:$m},mn="forgeIcons";var gn=class extends I{constructor(t){super(t)}canLazyLoad(){return!!window.IntersectionObserver}observeVisibility(t){this._observer=new IntersectionObserver(e=>{e.some(a=>a.isIntersecting)&&(this.destroyVisibilityObserver(),t())},{rootMargin:`${h1.numbers.LAZY_ROOT_MARGIN}px`}),this._observer.observe(this._component)}destroyVisibilityObserver(){this._observer&&(this._observer.disconnect(),this._observer=void 0)}setContent(t){let e=this._component.shadowRoot;e.querySelectorAll(":not(style)").forEach(a=>a.remove()),t&&(this._component.viewbox&&t.setAttribute("viewBox",this._component.viewbox),t.setAttribute("aria-hidden","true"),e.appendChild(t))}setViewBox(t){var a;let e=(a=this._component.shadowRoot)==null?void 0:a.querySelector("svg");e==null||e.setAttribute("viewBox",t)}};var n2=class n2{static get _icons(){return window[mn]||(window[mn]=new Map),window[mn]}static define(t,e){if(Array.isArray(t))return t.filter(n=>n2._isIconObject(n)).forEach(n=>n2._register(n.name,n.data));let{name:a,data:o}=n2._parseIcon(t,e);n2._register(a,o)}static remove(t){let e=n2._isIconObject(t)?t.name:t;n2._icons.delete(e)}static removeListener(t,e){let a=n2._listeners.get(t);Array.isArray(a)&&a.includes(e)&&a.splice(a.indexOf(e),1)}static clear(){n2._icons.clear(),n2._listeners.clear()}static get(t){return n2._icons.get(t)}static setNode(t,e){let a=n2.get(t);a&&(a.node=e)}static getIconNames(){return Array.from(n2._icons.keys())}static awaitIcon(t,e){var o;if(n2._icons.has(t)){e();return}let a=(o=n2._listeners.get(t))!=null?o:[];n2._listeners.set(t,[...a,e])}static get size(){return n2._icons.size}static _register(t,e){n2._icons.set(t,{raw:e,node:void 0}),n2._invalidateListeners(t)}static _invalidateListeners(t){let e=n2._listeners.get(t);Array.isArray(e)&&e.length&&(e.forEach(a=>a()),n2._listeners.delete(t))}static _parseIcon(t,e=""){return n2._isIconObject(t)?t:{name:t,data:e}}static _isIconObject(t){return typeof t=="object"&&t.hasOwnProperty("name")&&t.hasOwnProperty("data")}};n2._listeners=new Map;var q=n2;var r4=new Map;function wn(r,t,e=!0){if(!r||!r.includes("svg"))return null;!t&&!r.includes("viewBox")&&(t=`0 0 ${h1.numbers.DEFAULT_WIDTH} ${h1.numbers.DEFAULT_HEIGHT}`);let a=M3(r,t);return e&&a&&a.setAttribute("part","svg"),a}function S3(r){return q.get(r)}function k3(r,t){q.awaitIcon(r,t)}function O3(r,t){q.removeListener(r,t)}function D3(r,t){let e=r4.get(r);if(!e)if(typeof fetch!="undefined"&&typeof document!="undefined")e=fetch(r).then(async a=>{if(a.ok){let o=await a.text()||"";return q.define({name:t,data:o}),r4.delete(r),o}return q.define({name:t,data:""}),""}),r4.set(r,e);else return q.define({name:t,data:""}),Promise.resolve("");return e||Promise.resolve("")}function P3(r){return["standard","extended","custom"].includes(r)?r:""}var un=class{constructor(t){this._adapter=t;this._lazy=!1;this._external=!1;this._externalType="standard";this._lazyListener=this._loadIcon.bind(this)}initialize(){this._applyIcon()}destroy(){this._adapter.destroyVisibilityObserver(),this._clearIconQueue(),this._tryRemoveListener()}_safeApplyIcon(){this._adapter.isConnected&&(this._clearIconQueue(),this._queueIconUpdate())}_tryRemoveListener(){this._registrationListener&&this._name&&O3(this._name,this._registrationListener)}_applyIcon(){this._lazy&&this._adapter.canLazyLoad()?this._adapter.observeVisibility(this._lazyListener):this._loadIcon()}_clearIconQueue(){this._applyTimer&&(clearTimeout(this._applyTimer),this._applyTimer=void 0)}_queueIconUpdate(){this._applyTimer=window.setTimeout(()=>{this._applyTimer=void 0,this._applyIcon()})}async _loadIcon(){try{if(this._src){let t=wn(this._src,this._viewbox);this._setIconContent(t)}else if(this._name){let t=this._tryGetIcon(this._name);if(t!=null&&t.node){this._setIconContent(t.node);return}let e=null;if(t)t.raw&&(e=wn(t.raw,this._viewbox));else{if(!this._external){this._registrationListener=()=>this._applyIcon(),k3(this._name,this._registrationListener),this._adapter.setContent(null);return}this._externalType||(this._externalType="standard");let a=this._getExternalUrl(this._name,this._externalType);if(a){let o=await D3(a,this._name);o&&(e=wn(o,this._viewbox))}}e&&(t!=null&&t.node||q.setNode(this._name,e),this._setIconContent(e))}else this._adapter.setContent(null)}catch(t){throw this._adapter.setContent(null),t}}_setIconContent(t){let e=t?t.cloneNode(!0):null;e&&this._adapter.setContent(e)}_tryGetIcon(t){return S3(t)}_getExternalUrl(t,e){if(typeof this._externalUrlBuilder=="function")return this._externalUrlBuilder(t,e);let a=P3(this._externalType);return`${h1.strings.DEFAULT_NETWORK_BASE_URL}${a?`/${a}`:""}/${t}.svg`}get name(){return this._name}set name(t){this._name!==t&&(this._registrationListener&&this._tryRemoveListener(),this._name=(t||"").replace(/\s+/,""),this._safeApplyIcon(),this._adapter.toggleHostAttribute(h1.attributes.NAME,!!this._name,this._name))}get src(){return this._src}set src(t){this._src!==t&&(this._src=t,this._adapter.isConnected&&this._applyIcon(),this._adapter.toggleHostAttribute(h1.attributes.SRC,!!this._src,this._src))}get lazy(){return this._lazy}set lazy(t){this._lazy!==t&&(this._lazy=t,this._safeApplyIcon(),this._adapter.toggleHostAttribute(h1.attributes.LAZY,this._lazy))}get external(){return this._external}set external(t){this._external!==t&&(this._external=t,this._safeApplyIcon(),this._adapter.toggleHostAttribute(h1.attributes.EXTERNAL,this._external))}get externalType(){return this._externalType}set externalType(t){this._externalType!==t&&(this._externalType=t,this._safeApplyIcon(),this._adapter.setHostAttribute(h1.attributes.EXTERNAL_TYPE,`${this._externalType}`))}get externalUrlBuilder(){return this._externalUrlBuilder}set externalUrlBuilder(t){this._externalUrlBuilder!==t&&(this._externalUrlBuilder=t,this._safeApplyIcon())}get viewbox(){return this._viewbox}set viewbox(t){this._viewbox!==t&&(this._viewbox=t,this._adapter.setViewBox(this._viewbox),this._adapter.setHostAttribute(h1.attributes.VIEWBOX,`${this.viewbox}`))}get theme(){return this._theme}set theme(t){this._theme!==t&&(this._theme=t,this._adapter.setHostAttribute(h1.attributes.THEME,this._theme))}layout(){this._adapter.isConnected&&this._applyIcon()}};var Xm="<template></template>",jm=":host{--_icon-color:var(--forge-icon-color, currentColor);--_icon-size:var(--forge-icon-size, 1em);--_icon-width:var(--forge-icon-width, var(--_icon-size));--_icon-height:var(--forge-icon-height, var(--_icon-size));--_icon-font-size:var(--forge-icon-font-size, calc(var(--forge-typography-font-size, 1rem) * 1.5))}:host{display:inline-block;box-sizing:content-box;contain:content;font-size:var(--_icon-font-size)}:host([hidden]){display:none}svg{width:var(--_icon-width);height:var(--_icon-height);display:block;fill:var(--_icon-color);stroke:var(--_icon-color);stroke-width:0}:host([theme=primary]){--_icon-color:var(--forge-icon-color, var(--forge-theme-primary, #3f51b5))}:host([theme=secondary]){--_icon-color:var(--forge-icon-color, var(--forge-theme-secondary, #ffc107))}:host([theme=tertiary]){--_icon-color:var(--forge-icon-color, var(--forge-theme-tertiary, #3d5afe))}:host([theme=success]){--_icon-color:var(--forge-icon-color, var(--forge-theme-success, #2e7d32))}:host([theme=error]){--_icon-color:var(--forge-icon-color, var(--forge-theme-error, #b00020))}:host([theme=warning]){--_icon-color:var(--forge-icon-color, var(--forge-theme-warning, #d14900))}:host([theme=text-medium]){--_icon-color:var(--forge-icon-color, var(--forge-theme-text-medium, rgba(0, 0, 0, 0.6)))}:host([theme=text-low]){--_icon-color:var(--forge-icon-color, var(--forge-theme-text-low, rgba(0, 0, 0, 0.38)))}",X=class extends M{static get observedAttributes(){return Object.values(h1.observedAttributes)}constructor(){super(),H(this,Xm,jm),this._core=new un(new gn(this))}connectedCallback(){this._core.initialize()}disconnectedCallback(){this._core.destroy()}attributeChangedCallback(t,e,a){switch(t){case h1.observedAttributes.NAME:this.name=a;break;case h1.observedAttributes.SRC:this.src=a;break;case h1.observedAttributes.LAZY:this.lazy=p(a);break;case h1.observedAttributes.EXTERNAL:this.external=p(a);break;case h1.observedAttributes.EXTERNAL_TYPE:this.externalType=a;break;case h1.observedAttributes.VIEWBOX:this.viewbox=a;break;case h1.observedAttributes.THEME:this.theme=a;break}}layout(){this._core.layout()}};s([v()],X.prototype,"name",2),s([v()],X.prototype,"src",2),s([v()],X.prototype,"lazy",2),s([v()],X.prototype,"external",2),s([v()],X.prototype,"externalType",2),s([v()],X.prototype,"externalUrlBuilder",2),s([v()],X.prototype,"viewbox",2),s([v()],X.prototype,"theme",2),X=s([y({name:h1.elementName})],X);var P0=class extends X1{constructor(t){super(t)}_build(){return document.createElement(h1.elementName)}};function N3(){x(X)}var Zm='<template><span class="forge-open-icon" part="root"><slot><forge-icon class="icon" part="icon" name="keyboard_arrow_down"></forge-icon></slot></span></template>',Qm=":host{display:inline-flex}:host([hidden]){display:none}.forge-open-icon{--_open-icon-color:var(--forge-open-icon-color, var(--forge-theme-text-high, rgba(0, 0, 0, 0.87)));--_open-icon-size:var(--forge-open-icon-size, 24px);--_open-icon-height:var(--forge-open-icon-height, var(--_open-icon-size));--_open-icon-width:var(--forge-open-icon-width, var(--_open-icon-size));--_open-icon-initial-rotation:var(--forge-open-icon-initial-rotation, 0);--_open-icon-open-rotation:var(--forge-open-icon-open-rotation, 180deg);--_open-icon-animation-duration:var(--forge-open-icon-animation-duration, var(--forge-animation-duration-medium4, 400ms));--_open-icon-half-animation-duration:var(--forge-open-icon-half-animation-duration, var(--forge-animation-duration-short4, 200ms));--_open-icon-animation-timing:var(--forge-open-icon-animation-timing, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1)))}.forge-open-icon{height:var(--_open-icon-height);width:var(--_open-icon-width);color:var(--_open-icon-color);rotate:var(--_open-icon-initial-rotation);transition:rotate var(--_open-icon-animation-duration) var(--_open-icon-animation-timing)}::slotted(forge-icon),forge-icon{--forge-icon-size:var(--_open-icon-size)}:host([open]) .forge-open-icon{rotate:var(--_open-icon-open-rotation)}:host([orientation=horizontal]) .forge-open-icon{--_open-icon-initial-rotation:var(--forge-open-icon-initial-rotation, -90deg);--_open-icon-open-rotation:var(--forge-open-icon-open-rotation, 90deg)}:host([rotation=half]) .forge-open-icon{--_open-icon-open-rotation:var(--forge-open-icon-open-rotation, -90deg);--_open-icon-animation-duration:var(--_open-icon-half-animation-duration)}:host([orientation=horizontal][rotation=half]) .forge-open-icon{--_open-icon-initial-rotation:var(--forge-open-icon-initial-rotation, -90deg);--_open-icon-open-rotation:var(--forge-open-icon-open-rotation, 0);--_open-icon-animation-duration:var(--_open-icon-half-animation-duration)}@media prefers-reduced-motion{.forge-open-icon{transition:none}}",Qa=class extends M{constructor(){super();this._open=!1;this._orientation=It.defaults.ORIENTATION;this._rotation=It.defaults.ROTATION;q.define([fe,i0]),H(this,Zm,Qm)}static get observedAttributes(){return Object.values(It.observedAttributes)}attributeChangedCallback(e,a,o){switch(e){case It.attributes.OPEN:this.open=p(o);break;case It.attributes.ORIENTATION:this.orientation=o;break;case It.attributes.ROTATION:this.rotation=o;break}}get open(){return this._open}set open(e){e=!!e,this._open!==e&&(this._open=e,this.toggleAttribute(It.attributes.OPEN,e))}get orientation(){return this._orientation}set orientation(e){this._orientation!==e&&(this._orientation=e,this.setAttribute(It.attributes.ORIENTATION,e))}get rotation(){return this._rotation}set rotation(e){this._rotation!==e&&(this._rotation=e,this.setAttribute(It.attributes.ROTATION,e))}};Qa=s([y({name:It.elementName,dependencies:[X]})],Qa);function R3(){x(Qa)}var n4=`${b}expansion-panel`,F3={OPEN:"open",ORIENTATION:"orientation",ANIMATION_TYPE:"animation-type"},Jm=t1(w({},F3),{OPENING:"opening"}),t7={HIDDEN:"hidden"},e7={HEADER:".header",CONTENT:".content",INNER:".inner",IGNORE:":is([data-forge-ignore],[forge-ignore])",OPEN_ICON:`:is([slot=header] ${It.elementName}, ${It.elementName}[slot^=header])`},a7={TOGGLE:`${n4}-toggle`,ANIMATION_COMPLETE:`${n4}-animation-complete`},D1={elementName:n4,observedAttributes:F3,attributes:Jm,classes:t7,selectors:e7,events:a7},_n=Symbol("emulateUserToggle");var fn=class extends I{constructor(e){super(e);this._transitionStartListener=this._onTransitionStart.bind(this);this._transitionEndListener=this._onTransitionEnd.bind(this);this._headerElement=g(this._component,D1.selectors.HEADER),this._contentElement=g(this._component,D1.selectors.CONTENT),this._innerElement=g(this._component,D1.selectors.INNER)}setAnimationCompleteListener(e){this._transitionCompleteListener=e,this._contentElement.addEventListener("transitionstart",this._transitionStartListener),this._contentElement.addEventListener("transitionend",this._transitionEndListener)}addHeaderListener(e,a){this._headerElement.addEventListener(e,a)}tryToggleOpenIcon(e){let a=this._component.querySelector(D1.selectors.OPEN_ICON);a&&(a.open=e)}setContentVisibility(e){this._contentElement.classList.toggle(D1.classes.HIDDEN,!e)}_onTransitionStart(e){e.propertyName.startsWith("grid-template")&&this.toggleHostAttribute(D1.attributes.OPENING,!0)}_onTransitionEnd(e){e.propertyName.startsWith("grid-template")&&(this.toggleHostAttribute(D1.attributes.OPENING,!1),this._transitionCompleteListener())}animationStart(){this._innerElement.style.overflow="hidden"}animationEnd(){this._innerElement.style.removeProperty("overflow")}};var xn=class{constructor(t){this._adapter=t;this._open=!1;this._orientation="vertical";this._animationType="default";this._clickListener=this._onClick.bind(this);this._keydownListener=this._onKeydown.bind(this);this._animationCompleteListener=this._onAnimationComplete.bind(this)}initialize(){this._adapter.addHeaderListener("click",this._clickListener),this._adapter.addHeaderListener("keydown",this._keydownListener),this._adapter.setAnimationCompleteListener(this._animationCompleteListener)}_onClick(t){t.composedPath().find(a=>a.nodeType===Node.ELEMENT_NODE&&a.matches(D1.selectors.IGNORE))||(t.stopPropagation(),this._toggle(),this.dispatchToggleEvent())}_onKeydown(t){(t.key===" "||t.key==="Enter")&&(t.stopPropagation(),t.preventDefault(),this._toggle(),this.dispatchToggleEvent())}_onAnimationComplete(){this._open?this._animationType!=="none"&&this._adapter.animationEnd():this._adapter.setContentVisibility(!1),this._adapter.dispatchHostEvent(new CustomEvent(D1.events.ANIMATION_COMPLETE,{detail:this._open}))}_togglePanel(){this._adapter.toggleHostAttribute(D1.attributes.OPEN,this._open),this._adapter.tryToggleOpenIcon(this._open),this._open&&(this._animationType!=="none"&&this._adapter.animationStart(),this._adapter.setContentVisibility(!0))}dispatchToggleEvent(){let t=new CustomEvent(D1.events.TOGGLE,{detail:this._open,bubbles:!0,composed:!0});this._adapter.dispatchHostEvent(t)}_toggle(){this.open=!this.open}get open(){return this._open}set open(t){t=!!t,this._open!==t&&(this._open=t,this._togglePanel())}get orientation(){return this._orientation}set orientation(t){this._orientation!==t&&(this._orientation=t,this._adapter.setHostAttribute(D1.attributes.ORIENTATION,this._orientation))}get animationType(){return this._animationType}set animationType(t){this._animationType!==t&&(this._animationType=t,this._adapter.setHostAttribute(D1.attributes.ANIMATION_TYPE,this._animationType))}};var o7='<template><div class="forge-expansion-panel" part="root"><div class="header" part="header"><slot name="header"></slot></div><div class="content hidden" part="content"><div class="inner"><slot></slot></div></div></div></template>',r7=":host{display:block}:host([hidden]){display:none}.forge-expansion-panel{--_expansion-panel-animation-duration:var(--forge-expansion-panel-animation-duration, var(--forge-animation-duration-medium4, 400ms));--_expansion-panel-animation-easing:var(--forge-expansion-panel-animation-easing, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1)))}.header{outline:0;-webkit-tap-highlight-color:transparent;cursor:pointer}.content{display:grid;grid-template-rows:0fr;transition-property:visibility,opacity,grid-template-rows;transition-duration:var(--_expansion-panel-animation-duration);transition-timing-function:var(--_expansion-panel-animation-easing);min-height:0;opacity:0}.content .inner{display:grid;grid-template-rows:1fr}.hidden{visibility:hidden}@media (prefers-reduced-motion:reduce){.content{transition:none}}:host(:not([open])) .inner{overflow:hidden}:host([open]) .content{opacity:1}:host([open]:is(:not([orientation]),[orientation=vertical])) .content{grid-template-rows:1fr}:host([open][orientation=horizontal]) .content{grid-template-columns:1fr}:host([orientation=horizontal]) .forge-expansion-panel{display:grid;grid-template-columns:auto 1fr}:host([orientation=horizontal]) .content{transition-property:opacity,grid-template-columns;grid-template-rows:none;grid-template-columns:0fr}:host([animation-type=none]) .content{transition:none}",_t=class extends M{static get observedAttributes(){return Object.values(D1.observedAttributes)}constructor(){super(),H(this,o7,r7),this._core=new xn(new fn(this))}connectedCallback(){this._core.initialize()}attributeChangedCallback(t,e,a){switch(t){case D1.observedAttributes.OPEN:this.open=p(a);break;case D1.observedAttributes.ORIENTATION:this.orientation=a;break;case D1.observedAttributes.ANIMATION_TYPE:this.animationType=a;break}}toggle(){this.open=!this.open}[_n](t){this.open!==t&&(this.open=t,this._core.dispatchToggleEvent())}};s([v()],_t.prototype,"open",2),s([v()],_t.prototype,"orientation",2),s([v()],_t.prototype,"animationType",2),_t=s([y({name:D1.elementName})],_t);function U3(){x(_t)}var bn=class extends I{constructor(t){super(t)}isNestedPanel(t){return!t||!this._component.contains(t)?!1:Ra(t,this._component).some(a=>a.tagName.toLocaleLowerCase()===D1.elementName)}getChildPanels(t){return t?Array.from(this._component.querySelectorAll(t)):Array.from(this._component.children).filter(a=>a.tagName.toLocaleLowerCase()===D1.elementName)}};var W3=`${b}accordion`,n7={PANEL_SELECTOR:"panel-selector"},i7={TOGGLE:`${W3}-toggle`},wa={elementName:W3,attributes:n7,events:i7};var yn=class{constructor(t){this._adapter=t;this._hostInteractionCallback=this._hostInteraction.bind(this)}initialize(){this._attachListeners()}_attachListeners(){this._adapter.addHostListener(D1.events.TOGGLE,this._hostInteractionCallback)}_hostInteraction(t){if(!t.detail||this._panelSelector&&!t.target.matches(this._panelSelector)||(t.stopPropagation(),this._adapter.isNestedPanel(t.target)))return;this._adapter.getChildPanels(this._panelSelector).forEach(a=>{t.target!==a&&!this._adapter.isNestedPanel(a)&&a.open&&a[_n](!1)}),this._adapter.dispatchHostEvent(new CustomEvent(wa.events.TOGGLE,{detail:t.target,bubbles:!0,composed:!0}))}get panelSelector(){return this._panelSelector}set panelSelector(t){this._panelSelector!==t&&(this._panelSelector=t,this._adapter.setHostAttribute(wa.attributes.PANEL_SELECTOR,this._panelSelector))}};var ua=class extends M{static get observedAttributes(){return[wa.attributes.PANEL_SELECTOR]}constructor(){super(),this._core=new yn(new bn(this))}connectedCallback(){this._core.initialize()}attributeChangedCallback(t,e,a){switch(t){case wa.attributes.PANEL_SELECTOR:this.panelSelector=a;break}}};s([v()],ua.prototype,"panelSelector",2),ua=s([y({name:wa.elementName,dependencies:[_t]})],ua);function G3(){x(ua)}var Y3=`${b}app-bar`,s7={TITLE_TEXT:"title-text",ELEVATION:"elevation",THEME:"theme",HREF:"href",TARGET:"target"},l7=w({},s7),v7={NO_CENTER:"no-center",LOGO_TITLE_CONTAINER:"logo-title-container",TITLE:"title"},h7={ROOT:".forge-app-bar",LOGO_TITLE_CONTAINER:".logo-title-container",CENTER_SLOT:"slot[name=center]",CENTER_SECTION:"#center-section"},c7={NAVIGATE:`${Y3}-navigate`},W1={elementName:Y3,selectors:h7,attributes:l7,classes:v7,events:c7};var p7=`${b}state-layer`,d7={TARGET:"target",DISABLED:"disabled"},m7=w({},d7),g7={SURFACE:".forge-state-layer"},w7={HOVERED:"forge-state-layer--hovered",PRESSED:"forge-state-layer--pressed"},M1={elementName:p7,attributes:m7,selectors:g7,classes:w7},Ja=class r{constructor(t,e){this.x=t;this.y=e}static fromPointerEvent(t){return new r(t.pageX,t.pageY)}},K3=150,q3=450,i4=225,$3=.2,X3=10,j3=75,Z3=.35,Q3="::after",J3="forwards",tv="cubic-bezier(0.2, 0, 0, 1)",ev=(o=>(o[o.INACTIVE=0]="INACTIVE",o[o.TOUCH_DELAY=1]="TOUCH_DELAY",o[o.HOLDING=2]="HOLDING",o[o.WAITING_FOR_CLICK=3]="WAITING_FOR_CLICK",o))(ev||{});function av(r){let{height:t,width:e}=r.getBoundingClientRect(),a=Math.max(t,e),o=Math.max(Z3*a,j3),n=Math.floor(a*$3),h=`${(Math.sqrt(e**2+t**2)+X3+o)/n}`,c=`${n}px`;return{rippleScale:h,rippleSize:c,initialSize:n}}function ov(r,t,e){let{height:a,width:o}=r.getBoundingClientRect(),n={x:(o-t)/2,y:(a-t)/2},i;return _7(e)?i=u7(r,e):i={x:o/2,y:a/2},i={x:i.x-t/2,y:i.y-t/2},{startPoint:i,endPoint:n}}function u7(r,t){let{scrollX:e,scrollY:a}=window,{left:o,top:n}=r.getBoundingClientRect(),i=e+o,l=a+n,{x:h,y:c}=t;return{x:h-i,y:c-l}}function rv(r,t,e){let{height:a,width:o}=r.getBoundingClientRect();return t>=0&&t<=o&&e>=0&&e<=a}function _7(r){return r&&(r instanceof Ja||["x","y"].every(t=>t in r))}var Mn=class extends I{constructor(e){super(e);this._targetElement=null;this._surfaceElement=g(e,M1.selectors.SURFACE)}destroy(){typeof this._destroyDeferListener=="function"&&(this._destroyDeferListener(),this._destroyDeferListener=void 0),this._targetElement=null}async deferInitialization(e){if(!this._targetElement)return;let{userInteraction:a,destroy:o}=w3(this._targetElement);this._destroyDeferListener=o;let n=await a;e(n.type==="pointerenter"?n:void 0)}addTargetListener(e,a){var o;(o=this._targetElement)==null||o.addEventListener(e,a)}removeTargetListener(e,a){var o;(o=this._targetElement)==null||o.removeEventListener(e,a)}setHovered(e){this._surfaceElement.classList.toggle(M1.classes.HOVERED,e)}setPressed(e){this._surfaceElement.classList.toggle(M1.classes.PRESSED,e)}getTargetElement(){return this._targetElement}setTargetElement(e){this._targetElement=e}trySetTarget(e){this._targetElement=en(this._component,e)}startAnimation(e){var d;if(!this._surfaceElement)return;this.setPressed(!0),(d=this._rippleAnimation)==null||d.cancel();let{rippleSize:a,rippleScale:o,initialSize:n}=av(this._component);if(o==="Infinity")return;let{startPoint:i,endPoint:l}=ov(this._component,n,e),h=`${i.x}px, ${i.y}px`,c=`${l.x}px, ${l.y}px`;this._rippleAnimation=this._surfaceElement.animate({top:[0,0],left:[0,0],height:[a,a],width:[a,a],transform:[`translate(${h}) scale(1)`,`translate(${c}) scale(${o})`]},{pseudoElement:Q3,duration:q3,easing:tv,fill:J3})}async endAnimation(){var o;let e=this._rippleAnimation,a=(o=e==null?void 0:e.currentTime)!=null?o:1/0;if(a>=i4){this.setPressed(!1);return}await new Promise(n=>{setTimeout(n,i4-a)}),this._rippleAnimation===e&&this.setPressed(!1)}inBounds(e,a){return rv(this._component,e,a)}};var Hn=class{constructor(t){this._adapter=t;this._target=null;this._disabled=!1;this._attached=!1;this._deferred=!0;this._pointerState=0;this._checkBoundsAfterContextMenu=!1;this._pointerEnterListener=e=>this._onPointerEnter(e),this._pointerLeaveListener=e=>this._onPointerLeave(e),this._pointerDownListener=e=>this._onPointerDown(e),this._pointerUpListener=e=>this._onPointerUp(e),this._pointerCancelListener=e=>this._onPointerCancel(e),this._clickListener=()=>this._onClick(),this._contextmenuListener=()=>this._onContextmenu()}initialize(){this._adapter.trySetTarget(this._target),this._adapter.addTargetListener("click",this._clickListener),this._deferInitialization()}destroy(){this._pointerStartEvent=void 0,this._pointerState=0,this._adapter.setHovered(!1),this._adapter.setPressed(!1),this._removeListeners(),this._adapter.destroy()}playAnimation(t){this._adapter.startAnimation(t),this._endAnimation()}_deferInitialization(){this._adapter.deferInitialization(this._onDeferredInitialize.bind(this))}_applyListeners(){this._disabled||(this._adapter.addTargetListener("pointerenter",this._pointerEnterListener),this._adapter.addTargetListener("pointerleave",this._pointerLeaveListener),this._adapter.addTargetListener("pointerdown",this._pointerDownListener),this._adapter.addTargetListener("pointerup",this._pointerUpListener),this._adapter.addTargetListener("pointercancel",this._pointerCancelListener),this._adapter.addTargetListener("contextmenu",this._contextmenuListener),this._attached=!0)}_removeListeners(){this._adapter.removeTargetListener("pointerenter",this._pointerEnterListener),this._adapter.removeTargetListener("pointerleave",this._pointerLeaveListener),this._adapter.removeTargetListener("pointerdown",this._pointerDownListener),this._adapter.removeTargetListener("pointerup",this._pointerUpListener),this._adapter.removeTargetListener("pointercancel",this._pointerCancelListener),this._adapter.removeTargetListener("click",this._clickListener),this._adapter.removeTargetListener("contextmenu",this._contextmenuListener),this._attached=!1}_onDeferredInitialize(t){this._adapter.isConnected&&(this._applyListeners(),(t==null?void 0:t.type)==="pointerenter"&&this._pointerEnterListener(t),this._deferred=!1)}_onPointerEnter(t){this._canHandleEvent(t)&&this._adapter.setHovered(!0)}_onPointerLeave(t){this._canHandleEvent(t)&&(this._adapter.setHovered(!1),this._pointerState!==0&&this._adapter.endAnimation())}async _onPointerDown(t){if(this._pointerStartEvent=t,!!this._canHandleEvent(t)){if(!this._isTouch(t.pointerType)){this._pointerState=3,this._startAnimation(t);return}this._checkBoundsAfterContextMenu&&!this._adapter.inBounds(t.x,t.y)||(this._checkBoundsAfterContextMenu=!1,this._pointerState=1,await new Promise(e=>setTimeout(e,K3)),this._pointerState===1&&(this._pointerState=2,this._startAnimation(t)))}}_onPointerUp(t){if(this._canHandleEvent(t)){if(this._pointerState===2){this._pointerState=3;return}if(this._pointerState===1){this._pointerState=3,this._startAnimation(this._pointerStartEvent);return}}}_onClick(){if(!this._disabled){if(this._pointerState===3){this._endAnimation();return}this._pointerState===0&&(this._startAnimation(this._pointerStartEvent),this._endAnimation())}}_onPointerCancel(t){this._canHandleEvent(t)&&this._endAnimation()}_onContextmenu(){this._disabled||(this._checkBoundsAfterContextMenu=!0,this._adapter.endAnimation())}_startAnimation(t){let e=t?Ja.fromPointerEvent(t):void 0;this._adapter.startAnimation(e)}_endAnimation(){this._pointerState=0,this._adapter.endAnimation(),this._pointerStartEvent=void 0}_canHandleEvent({type:t,isPrimary:e,buttons:a,pointerType:o,pointerId:n}){if(this._disabled||!e||this._pointerStartEvent&&this._pointerStartEvent.pointerId!==n)return!1;if(t==="pointerenter"||t==="pointerleave")return!this._isTouch(o);let i=a===1;return this._isTouch(o)||i}_isTouch(t){return t==="touch"}get isAttached(){return this._attached}get targetElement(){return this._adapter.getTargetElement()}set targetElement(t){this._removeListeners(),this._attached||(this._adapter.destroy(),this._deferred=!1),this._adapter.setTargetElement(t),this._adapter.addTargetListener("click",this._clickListener),this._deferred||this._deferInitialization()}get target(){return this._adapter.getHostAttribute(M1.attributes.TARGET)}set target(t){this._target!==t&&(this._target=t,this._adapter.isConnected&&(this._removeListeners(),this._attached||(this._adapter.destroy(),this._deferred=!1),this._adapter.trySetTarget(t),this._adapter.addTargetListener("click",this._clickListener),this._deferred||this._deferInitialization()),this._adapter.toggleHostAttribute(M1.attributes.TARGET,!!this._target,this._target))}get disabled(){return this._disabled}set disabled(t){t=!!t,this._disabled!==t&&(this._disabled=t,this._adapter.isConnected&&(this._disabled?this._removeListeners():this._deferred||this._deferInitialization()),this._adapter.toggleHostAttribute(M1.attributes.DISABLED,this._disabled))}};var f7='<template><div class="forge-state-layer" part="surface"></div></template>',x7=':host{--_state-layer-display:var(--forge-state-layer-display, flex)}:host{border-radius:inherit;position:absolute;inset:0;overflow:hidden;display:var(--_state-layer-display);margin:auto;pointer-events:none;-webkit-tap-highlight-color:transparent}:host([hidden]){display:none}:host([disabled]){display:none}.forge-state-layer{--_state-layer-color:var(--forge-state-layer-color, var(--forge-theme-on-surface, #000000));--_state-layer-hover-color:var(--forge-state-layer-hover-color, var(--_state-layer-color));--_state-layer-hover-opacity:var(--forge-state-layer-hover-opacity, 0.08);--_state-layer-pressed-color:var(--forge-state-layer-pressed-color, var(--_state-layer-color));--_state-layer-pressed-opacity:var(--forge-state-layer-pressed-opacity, 0.12);--_state-layer-hover-duration:var(--forge-state-layer-hover-duration, 15ms);--_state-layer-pressed-duration:var(--forge-state-layer-pressed-duration, 105ms);--_state-layer-animation-duration:var(--forge-state-layer-animation-duration, 375ms)}.forge-state-layer::after,.forge-state-layer::before{content:"";opacity:0;position:absolute}.forge-state-layer::before{background-color:var(--_state-layer-hover-color);inset:0;transition:opacity var(--_state-layer-hover-duration) linear,background-color var(--_state-layer-hover-duration) linear}.forge-state-layer::after{background:radial-gradient(closest-side,var(--_state-layer-pressed-color) max(100% - 70px,65%),transparent 100%);transform-origin:center center;transition:opacity var(--_state-layer-animation-duration) linear}.forge-state-layer--hovered::before{background-color:var(--_state-layer-hover-color);opacity:var(--_state-layer-hover-opacity)}.forge-state-layer--pressed::after{opacity:var(--_state-layer-pressed-opacity);transition-duration:var(--_state-layer-pressed-duration)}@media screen and (forced-colors:active){:host{display:none}}',r1=class extends M{static get observedAttributes(){return[M1.attributes.TARGET,M1.attributes.DISABLED]}constructor(){super(),H(this,f7,x7),this._core=new Hn(new Mn(this))}connectedCallback(){this._core.initialize()}disconnectedCallback(){this._core.destroy()}attributeChangedCallback(t,e,a){switch(t){case M1.attributes.TARGET:this.target=a;break;case M1.attributes.DISABLED:this.disabled=p(a);break}}playAnimation(t){this._core.playAnimation(t)}};s([v()],r1.prototype,"targetElement",2),s([v()],r1.prototype,"target",2),s([v()],r1.prototype,"disabled",2),r1=s([y({name:M1.elementName})],r1);function nv(){x(r1)}var Ln=class extends I{constructor(e){super(e);this._targetElement=null}destroy(){this._targetElement=null}hasTargetElement(){return!!this._targetElement}addTargetListener(e,a){var o;(o=this._targetElement)==null||o.addEventListener(e,a)}removeTargetListener(e,a){var o;(o=this._targetElement)==null||o.removeEventListener(e,a)}getTargetElement(){return this._targetElement}setTargetElement(e){this._targetElement=e}trySetTarget(e){this._targetElement=en(this._component,e)}isActive(e,a){let o=a!=null?a:this._targetElement;return!!(o!=null&&o.matches(e))}};var b7=`${b}focus-indicator`,y7={TARGET:"target",ACTIVE:"active",INWARD:"inward",CIRCULAR:"circular",ALLOW_FOCUS:"allow-focus",FOCUS_MODE:"focus-mode"},M7=w({},y7),H7={FOCUS_MODE:"focusin"},m1={elementName:b7,attributes:M7,defaults:H7};var In=class{constructor(t){this._adapter=t;this._target=null;this._active=!1;this._inward=!1;this._circular=!1;this._allowFocus=!1;this._focusMode=m1.defaults.FOCUS_MODE;this._interactionListener=e=>this._onInteraction(e)}initialize(){this._adapter.hasTargetElement()||this._adapter.trySetTarget(this._target),this._addListeners()}destroy(){this._removeListeners(),this._adapter.destroy()}_addListeners(){this._adapter.addTargetListener(this._focusMode,this._interactionListener),this._adapter.addTargetListener("focusout",this._interactionListener),this._adapter.addTargetListener("pointerdown",this._interactionListener)}_removeListeners(){this._adapter.removeTargetListener(this._focusMode,this._interactionListener),this._adapter.removeTargetListener("focusout",this._interactionListener),this._adapter.removeTargetListener("pointerdown",this._interactionListener)}_onInteraction(t){let e=t.target;switch(t.type){case this._focusMode:this.active=this._adapter.isActive(this._allowFocus?":focus":":focus-visible",e);break;case"focusout":this.active=!1;break;case"pointerdown":this.active=this._allowFocus?this._adapter.isActive(":focus",e):this._adapter.isActive(":focus-visible",e);break}}get targetElement(){return this._adapter.getTargetElement()}set targetElement(t){this._removeListeners(),this._adapter.setTargetElement(t),this._addListeners()}get target(){return this._adapter.getHostAttribute(m1.attributes.TARGET)}set target(t){this._target!==t&&(this._target=t,this._adapter.isConnected&&this._adapter.trySetTarget(t),this._adapter.toggleHostAttribute(m1.attributes.TARGET,!!this._target,this._target))}get active(){return this._active}set active(t){t=!!t,this._active!==t&&(this._active=t,this._adapter.toggleHostAttribute(m1.attributes.ACTIVE,this._active))}get inward(){return this._inward}set inward(t){t=!!t,this._inward!==t&&(this._inward=t,this._adapter.toggleHostAttribute(m1.attributes.INWARD,this._inward))}get circular(){return this._circular}set circular(t){t=!!t,this._circular!==t&&(this._circular=t,this._adapter.toggleHostAttribute(m1.attributes.CIRCULAR,this._circular))}get allowFocus(){return this._allowFocus}set allowFocus(t){t=!!t,this._allowFocus!==t&&(this._allowFocus=t,this._adapter.toggleHostAttribute(m1.attributes.ALLOW_FOCUS,this._allowFocus))}get focusMode(){return this._focusMode}set focusMode(t){if(t!=null||(t=m1.defaults.FOCUS_MODE),this._focusMode!==t){this._adapter.isConnected&&this._removeListeners(),this._focusMode=t,this._adapter.isConnected&&this._addListeners();let e=this._focusMode!==m1.defaults.FOCUS_MODE;this._adapter.toggleHostAttribute(m1.attributes.FOCUS_MODE,e,this._focusMode)}}};var L7="<template></template>",I7=":host{--_focus-indicator-display:var(--forge-focus-indicator-display, flex);--_focus-indicator-width:var(--forge-focus-indicator-width, var(--forge-border-medium, 2px));--_focus-indicator-active-width:var(--forge-focus-indicator-active-width, 6px);--_focus-indicator-color:var(--forge-focus-indicator-color, var(--forge-theme-primary, #3f51b5));--_focus-indicator-shape:var(--forge-focus-indicator-shape, calc(var(--forge-shape-extra-small, 1px) * var(--forge-shape-factor, 1)));--_focus-indicator-duration:var(--forge-focus-indicator-duration, var(--forge-animation-duration-long4, 600ms));--_focus-indicator-easing:var(--forge-focus-indicator-easing, var(--forge-animation-easing-emphasized, cubic-bezier(0.2, 0, 0, 1)));--_focus-indicator-shape-start-start:var(--forge-focus-indicator-shape-start-start, var(--_focus-indicator-shape));--_focus-indicator-shape-start-end:var(--forge-focus-indicator-shape-start-end, var(--_focus-indicator-shape));--_focus-indicator-shape-end-end:var(--forge-focus-indicator-shape-end-end, var(--_focus-indicator-shape));--_focus-indicator-shape-end-start:var(--forge-focus-indicator-shape-end-start, var(--_focus-indicator-shape));--_focus-indicator-outward-offset:var(--forge-focus-indicator-outward-offset, var(--forge-spacing-xxsmall, 4px));--_focus-indicator-inward-offset:var(--forge-focus-indicator-inward-offset, 0px);--_focus-indicator-offset-block:var(--forge-focus-indicator-offset-block, 0);--_focus-indicator-offset-inline:var(--forge-focus-indicator-offset-inline, 0)}:host{animation-delay:0s,calc(var(--_focus-indicator-duration) * .25);animation-duration:calc(var(--_focus-indicator-duration) * .25),calc(var(--_focus-indicator-duration) * .75);animation-timing-function:var(--_focus-indicator-easing);box-sizing:border-box;color:var(--_focus-indicator-color);display:none;pointer-events:none;position:absolute;margin-block:var(--_focus-indicator-offset-block);margin-inline:var(--_focus-indicator-offset-inline)}:host([hidden]){display:none}:host([active]){display:var(--_focus-indicator-display)}:host(:not([inward])){animation-name:forge-focus-indicator-outward-grow,forge-focus-indicator-outward-shrink;border-end-end-radius:calc(var(--_focus-indicator-shape-end-end) + var(--_focus-indicator-outward-offset));border-end-start-radius:calc(var(--_focus-indicator-shape-end-start) + var(--_focus-indicator-outward-offset));border-start-end-radius:calc(var(--_focus-indicator-shape-start-end) + var(--_focus-indicator-outward-offset));border-start-start-radius:calc(var(--_focus-indicator-shape-start-start) + var(--_focus-indicator-outward-offset));inset:calc(-1 * var(--_focus-indicator-outward-offset));outline:var(--_focus-indicator-width) solid currentColor}:host([inward]){animation-name:forge-focus-indicator-inward-grow,forge-focus-indicator-inward-shrink;border-end-end-radius:calc(var(--_focus-indicator-shape-end-end) - var(--_focus-indicator-inward-offset));border-end-start-radius:calc(var(--_focus-indicator-shape-end-start) - var(--_focus-indicator-inward-offset));border-start-end-radius:calc(var(--_focus-indicator-shape-start-end) - var(--_focus-indicator-inward-offset));border-start-start-radius:calc(var(--_focus-indicator-shape-start-start) - var(--_focus-indicator-inward-offset));border:var(--_focus-indicator-width) solid currentColor;inset:var(--_focus-indicator-inward-offset)}:host([circular]){--_focus-indicator-shape:var(--forge-focus-indicator-shape, 50%)}@keyframes forge-focus-indicator-outward-grow{from{outline-width:0}to{outline-width:var(--_focus-indicator-active-width)}}@keyframes forge-focus-indicator-outward-shrink{from{outline-width:var(--_focus-indicator-active-width)}}@keyframes forge-focus-indicator-inward-grow{from{border-width:0}to{border-width:var(--_focus-indicator-active-width)}}@keyframes forge-focus-indicator-inward-shrink{from{border-width:var(--_focus-indicator-active-width)}}@media (prefers-reduced-motion){:host{animation:none}}",Q=class extends M{static get observedAttributes(){return Object.values(m1.attributes)}constructor(){super(),H(this,L7,I7),this._core=new In(new Ln(this))}connectedCallback(){this._core.initialize()}disconnectedCallback(){this._core.destroy()}attributeChangedCallback(t,e,a){switch(t){case m1.attributes.TARGET:this.target=a;break;case m1.attributes.ACTIVE:this.active=p(a);break;case m1.attributes.INWARD:this.inward=p(a);break;case m1.attributes.CIRCULAR:this.circular=p(a);break;case m1.attributes.ALLOW_FOCUS:this.allowFocus=p(a);break;case m1.attributes.FOCUS_MODE:this.focusMode=a;break}}};s([v()],Q.prototype,"targetElement",2),s([v()],Q.prototype,"target",2),s([v()],Q.prototype,"active",2),s([v()],Q.prototype,"inward",2),s([v()],Q.prototype,"circular",2),s([v()],Q.prototype,"allowFocus",2),s([v()],Q.prototype,"focusMode",2),Q=s([y({name:m1.elementName})],Q);function iv(){x(Q)}var Vn=class extends I{constructor(t){super(t),this._rootElement=g(t,W1.selectors.ROOT),this._logoTitleContainerElement=g(t,W1.selectors.LOGO_TITLE_CONTAINER),this._centerSectionElement=g(t,W1.selectors.CENTER_SECTION),this._centerSlotElement=g(t,W1.selectors.CENTER_SLOT)}initialize(){this._component.hasAttribute("role")||this._component.setAttribute("role","banner")}setTitleText(t){var e;if(t!=null&&t.trim().length){if(!this._titleElement){this._titleElement=this._createTitleElement();let a=this._logoTitleContainerElement.querySelector("slot[name=title]");a==null||a.append(this._titleElement)}this._titleElement.textContent=t}else(e=this._titleElement)==null||e.remove(),this._titleElement=void 0}setHref(t,e){var o,n;let a=this._logoTitleContainerElement.tagName==="A";t?(a||this._createAnchorElement(),this._logoTitleContainerElement.href=t,this._logoTitleContainerElement.addEventListener("click",e,{capture:!0})):a&&(this._logoTitleContainerElement.removeEventListener("click",e,{capture:!0}),this._logoTitleContainerElement=Ka(this._logoTitleContainerElement,document.createElement("div")),this._logoTitleContainerElement.classList.add(W1.classes.LOGO_TITLE_CONTAINER),(o=this._logoTitleContainerElement.querySelector(M1.elementName))==null||o.remove(),(n=this._logoTitleContainerElement.querySelector(m1.elementName))==null||n.remove())}setTarget(t){this._logoTitleContainerElement.tagName==="A"&&(this._logoTitleContainerElement.target=t)}addCenterSlotListener(t){this._centerSlotElement.addEventListener("slotchange",t)}setCenterSlotVisibility(){this._centerSlotElement.assignedNodes().length?(this._centerSectionElement.style.removeProperty("display"),this._rootElement.classList.remove(W1.classes.NO_CENTER)):(this._centerSectionElement.style.display="none",this._rootElement.classList.add(W1.classes.NO_CENTER))}_createAnchorElement(){this._logoTitleContainerElement=Ka(this._logoTitleContainerElement,document.createElement("a")),this._logoTitleContainerElement.classList.add(W1.classes.LOGO_TITLE_CONTAINER);let t=document.createElement("forge-state-layer"),e=document.createElement("forge-focus-indicator");e.inward=!0,this._logoTitleContainerElement.append(t,e)}_createTitleElement(){let t=document.createElement("h1");return t.classList.add(W1.classes.TITLE),t.setAttribute("part","title"),t}};var En=class{constructor(t){this._adapter=t;this._titleText="";this._elevation="raised";this._href="";this._target="";this._centerSlotListener=()=>this._adapter.setCenterSlotVisibility();this._anchorClickListener=this._onHrefClick.bind(this)}initialize(){this._adapter.initialize(),this._adapter.addCenterSlotListener(this._centerSlotListener),this._adapter.setCenterSlotVisibility()}_onHrefClick(t){let e=new CustomEvent(W1.events.NAVIGATE,{bubbles:!0,composed:!0,cancelable:!0});this._adapter.dispatchHostEvent(e),e.defaultPrevented&&t.preventDefault()}get titleText(){return this._titleText}set titleText(t){var e;if(this._titleText!==t){this._titleText=t!=null?t:"",this._adapter.setTitleText(this._titleText);let a=!!((e=this._titleText)!=null&&e.trim().length);this._adapter.toggleHostAttribute(W1.attributes.TITLE_TEXT,a,t)}}get elevation(){return this._elevation}set elevation(t){this._elevation!==t&&(this._elevation=t,this._adapter.setHostAttribute(W1.attributes.ELEVATION,t))}get theme(){return this._theme}set theme(t){this._theme!==t&&(this._theme=t!=null?t:"",this._adapter.toggleHostAttribute(W1.attributes.THEME,!!this._theme,this._theme))}get href(){var t;return(t=this._href)!=null?t:""}set href(t){this._href!==t&&(this._href=t!=null&&t.trim().length?t.trim():"",this._adapter.setHref(this._href,this._anchorClickListener),this._adapter.toggleHostAttribute(W1.attributes.HREF,!!this._href,this._href))}get target(){var t;return(t=this._target)!=null?t:""}set target(t){this._target!==t&&(this._target=t!=null&&t.trim().length?t.trim():"",this._adapter.setTarget(this._target),this._adapter.toggleHostAttribute(W1.attributes.TARGET,!!this._target,this._target))}};var V7='<template><div class="forge-app-bar" part="root"><div class="row"><div class="section"><slot name="start"></slot><div class="logo-title-container"><slot name="logo"></slot><slot name="title"></slot></div></div><div id="center-section" class="section"><slot name="center"></slot></div><div class="section"><slot name="end"></slot></div></div><div><slot name="bottom"></slot></div></div></template>',E7=':host{--_app-bar-background:var(--forge-app-bar-background, var(--forge-theme-brand, #283593));--_app-bar-foreground:var(--forge-app-bar-foreground, var(--forge-theme-on-brand, #ffffff))}:host{display:block}:host([hidden]){display:none}:host(:not([theme])){--forge-theme-primary:var(--_app-bar-foreground);--forge-theme-on-primary:rgba(0, 0, 0, 0.87);--forge-theme-text-high:rgba(255, 255, 255, 0.87);--forge-theme-text-medium:rgba(255, 255, 255, 0.54);--forge-theme-text-low:rgba(255, 255, 255, 0.38);--forge-theme-outline-high:rgba(255, 255, 255, 0.87);--forge-theme-outline-medium:rgba(255, 255, 255, 0.54);--forge-theme-outline-low:rgba(255, 255, 255, 0.38)}.forge-app-bar{--_app-bar-z-index:var(--forge-app-bar-z-index, var(--forge-z-index-header, 4));--_app-bar-elevation:var(--forge-app-bar-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12));--_app-bar-height:var(--forge-app-bar-height, 56px);--_app-bar-row-padding:var(--forge-app-bar-row-padding, var(--forge-spacing-xxsmall, 4px));--_app-bar-logo-gap:var(--forge-app-bar-logo-gap, var(--forge-spacing-medium, 16px));--_app-bar-logo-font-size:var(--forge-app-bar-logo-font-size, calc(var(--forge-typography-font-size, 1rem) * 2.5));--_app-bar-title-padding:var(--forge-app-bar-title-padding, var(--forge-spacing-xsmall, 8px));--_app-bar-columns:var(--forge-app-bar-columns, 1fr 1fr 1fr);--_app-bar-transition-duration:var(--forge-app-bar-transition-duration, var(--forge-animation-duration-short4, 200ms));--_app-bar-transition-timing:var(--forge-app-bar-transition-timing, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1)))}.forge-app-bar{background:var(--_app-bar-background);color:var(--_app-bar-foreground);position:relative;z-index:var(--_app-bar-z-index);display:grid;grid-template-rows:1fr auto;transition-property:box-shadow,background-color;transition-duration:var(--_app-bar-transition-duration);transition-timing-function:var(--_app-bar-transition-timing);box-sizing:border-box;width:100%}.forge-app-bar .row{display:grid;align-items:center;grid-template-columns:var(--_app-bar-columns);height:var(--_app-bar-height);padding-inline:var(--_app-bar-row-padding)}.forge-app-bar.no-center .row{grid-template-columns:1fr auto}.forge-app-bar .section{display:inline-flex;flex:1 1 auto;align-items:center;box-sizing:border-box;min-width:0;height:100%}.forge-app-bar .section:not(:last-child):not(:first-child){justify-content:center}.forge-app-bar .section:last-child{justify-self:end}.forge-app-bar h1{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-heading4-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-heading4-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-heading4-font-size-scale, 1.25)));font-weight:var(--forge-typography-heading4-font-weight,500);line-height:var(--forge-typography-heading4-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-heading4-line-height-scale, 1.5)));letter-spacing:var(--forge-typography-heading4-letter-spacing, .005em);text-transform:var(--forge-typography-heading4-text-transform,inherit);text-decoration:var(--forge-typography-heading4-text-decoration,inherit);margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.forge-app-bar a{outline:0;text-decoration:none;color:inherit;box-sizing:border-box;height:100%}.forge-app-bar a forge-state-layer{--forge-state-layer-color:var(--_app-bar-foreground)}.forge-app-bar a forge-focus-indicator{--forge-focus-indicator-color:var(--_app-bar-foreground);--forge-focus-indicator-shape:4px;--forge-focus-indicator-offset-block:4px}.forge-app-bar .logo-title-container{position:relative;display:flex;align-items:center;gap:var(--_app-bar-logo-gap);min-width:0;padding-inline:var(--_app-bar-title-padding)}:host(:is(:not([elevation]),[elevation=raised])) .forge-app-bar{box-shadow:var(--_app-bar-elevation)}::slotted(forge-tab-bar){--forge-tab-bar-divider-thickness:0}::slotted([slot=logo]){font-size:var(--_app-bar-logo-font-size);height:1em;width:1em}::slotted(forge-app-bar-search[slot=center]){width:100%}:host([theme=white]){--forge-theme-primary:black;--forge-theme-on-primary:rgba(255, 255, 255, 0.87);--forge-theme-text-medium:rgba(0, 0, 0, 0.54)}:host([theme=white]) .forge-app-bar{--_app-bar-background:var(--forge-app-bar-background, white);--_app-bar-foreground:var(--forge-app-bar-foreground, black)}',be=class extends M{static get observedAttributes(){return[W1.attributes.TITLE_TEXT,W1.attributes.ELEVATION,W1.attributes.THEME,W1.attributes.HREF,W1.attributes.TARGET]}constructor(){super(),H(this,V7,E7),this._core=new En(new Vn(this))}connectedCallback(){this._core.initialize()}attributeChangedCallback(t,e,a){switch(t){case W1.attributes.TITLE_TEXT:this.titleText=a;break;case W1.attributes.ELEVATION:this.elevation=a;break;case W1.attributes.THEME:this.theme=a;break;case W1.attributes.HREF:this.href=a;break;case W1.attributes.TARGET:this.target=a;break}}};s([v()],be.prototype,"titleText",2),s([v()],be.prototype,"elevation",2),s([v()],be.prototype,"theme",2),s([v()],be.prototype,"href",2),s([v()],be.prototype,"target",2),be=s([y({name:W1.elementName})],be);function sv(){x(be)}var lv=`${b}app-bar-search`,C7={ROOT:".forge-app-bar-search",INPUT:"input"},z7={DISABLED:"disabled",VALUE:"value",PLACEHOLDER:"placeholder"},A7={INPUT:`${lv}-input`},A2={elementName:lv,selectors:C7,attributes:z7,events:A7};var Cn=class{constructor(t){this._adapter=t;this._disabled=!1;this._keydownListener=t=>this._onKeydown(t)}initialize(){this._adapter.initialize(),this._tryForwardInputState(),this._adapter.addInputEventListener("keydown",this._keydownListener)}_tryForwardInputState(){this._disabled&&this._adapter.setInputProperty("disabled",this._disabled),this._adapter.hasHostAttribute(A2.attributes.VALUE)&&this._adapter.setInputProperty("value",this._adapter.getHostAttribute(A2.attributes.VALUE)),this._adapter.hasHostAttribute(A2.attributes.PLACEHOLDER)&&this._adapter.setInputProperty("placeholder",this._adapter.getHostAttribute(A2.attributes.PLACEHOLDER))}_onKeydown({key:t,target:e}){if(!this._disabled&&t==="Enter"){let a={value:e.value};this._adapter.emitHostEvent(A2.events.INPUT,a,!0)}}destroy(){this._adapter.removeInputEventListener("keydown",this._keydownListener)}get disabled(){return this._disabled}set disabled(t){t!==this._disabled&&(this._disabled=t,this._adapter.setInputProperty("disabled",this._disabled),this._adapter.toggleHostAttribute(A2.attributes.DISABLED,this._disabled))}get value(){return this._adapter.getInputProperty("value")}set value(t){this._adapter.setInputProperty("value",t)}get placeholder(){return this._adapter.getInputProperty("placeholder")}set placeholder(t){this._adapter.setInputProperty("placeholder",t)}};var zn=class extends I{constructor(t){super(t),this._rootElement=g(t,A2.selectors.ROOT)}initialize(){let t=this._component.querySelector(A2.selectors.INPUT);if(t){this._inputElement=t;let e=document.createElement("forge-focus-indicator");e.targetElement=this._inputElement,this._rootElement.appendChild(e)}}addInputEventListener(t,e){var a;(a=this._inputElement)==null||a.addEventListener(t,e)}removeInputEventListener(t,e){var a;(a=this._inputElement)==null||a.removeEventListener(t,e)}setInputProperty(t,e){this._inputElement&&(this._inputElement[t]=e)}getInputProperty(t){var e;return(e=this._inputElement)==null?void 0:e[t]}};var B7='<template><div class="forge-app-bar-search" part="root"><slot name="start"><forge-icon name="search" class="icon" part="icon"></forge-icon></slot><slot name="input"></slot><slot></slot><slot name="end"></slot></div></template>',T7=':host{display:block}:host([hidden]){display:none}.forge-app-bar-search{--_app-bar-search-color:var(--forge-app-bar-search-color, currentColor);--_app-bar-search-height:var(--forge-app-bar-search-height, 36px);--_app-bar-search-padding:var(--forge-app-bar-search-padding, 8px);--_app-bar-search-shape:var(--forge-app-bar-search-shape, calc(var(--forge-shape-small, 2px) * var(--forge-shape-factor, 1)));--_app-bar-search-gap:var(--forge-app-bar-search-gap, 4px);--_app-bar-search-input-placeholder-color:var(--forge-app-bar-search-input-placeholder-color, var(--_app-bar-search-color));--_app-bar-search-input-placeholder-opacity:var(--forge-app-bar-search-input-placeholder-opacity, 0.7);--_app-bar-search-background-color:var(--forge-app-bar-search-background-color, var(--_app-bar-search-color));--_app-bar-search-background-color-opacity:var(--forge-app-bar-search-background-color-opacity, 0.08);--_app-bar-search-border-color:var(--forge-app-bar-search-border-color, var(--_app-bar-search-color));--_app-bar-search-border-opacity:var(--forge-app-bar-search-border-opacity, 0.54);--_app-bar-search-border-hover-opacity:var(--forge-app-bar-search-border-hover-opacity, 0.87);--_app-bar-search-transition-duration:var(--forge-app-bar-search-transition-duration, var(--forge-animation-duration-short3, 150ms));--_app-bar-search-transition-timing-function:var(--forge-app-bar-search-transition-timing-function, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1)))}.forge-app-bar-search{position:relative;display:flex;align-items:center;flex:1 1 auto;gap:var(--_app-bar-search-gap);height:var(--_app-bar-search-height);width:100%;padding-inline:var(--_app-bar-search-padding);box-sizing:border-box;border-radius:var(--_app-bar-search-shape)}.forge-app-bar-search:hover::after{opacity:var(--_app-bar-search-border-hover-opacity)}.forge-app-bar-search::before{content:"";position:absolute;inset:0;pointer-events:none;background-color:var(--_app-bar-search-background-color);opacity:var(--_app-bar-search-background-color-opacity)}.forge-app-bar-search::after{content:"";position:absolute;inset:0;pointer-events:none;opacity:var(--_app-bar-search-border-opacity);border-radius:var(--_app-bar-search-shape);outline:1px solid var(--_app-bar-search-border-color);transition-property:opacity;transition-duration:var(--_app-bar-search-transition-duration);transition-timing-function:var(--_app-bar-search-transition-timing-function)}:host([disabled]){cursor:not-allowed}:host([disabled]) .forge-app-bar-search{pointer-events:none;opacity:38%}:host([disabled]) ::slotted(input){pointer-events:none}forge-focus-indicator{--forge-focus-indicator-color:currentColor;--forge-focus-indicator-outward-offset:0px}::slotted(input){-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-body2-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-body2-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-font-size-scale, 1)));font-weight:var(--forge-typography-body2-font-weight,400);line-height:var(--forge-typography-body2-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-line-height-scale, 1.375)));letter-spacing:var(--forge-typography-body2-letter-spacing, .015625em);text-transform:var(--forge-typography-body2-text-transform,inherit);text-decoration:var(--forge-typography-body2-text-decoration,inherit);display:block;overflow:hidden;background:0 0;color:currentColor;border:none;width:100%;margin:0;outline:0}::slotted(input)::placeholder{color:currentColor;opacity:var(--_app-bar-search-input-placeholder-opacity)}',h0=class extends M{static get observedAttributes(){return[A2.attributes.DISABLED,A2.attributes.VALUE,A2.attributes.PLACEHOLDER]}constructor(){super(),q.define(s3),H(this,B7,T7),this._core=new Cn(new zn(this))}connectedCallback(){this.querySelector(A2.selectors.INPUT)?this._core.initialize():f5(this).then(()=>this._core.initialize())}disconnectedCallback(){this._core.destroy()}attributeChangedCallback(t,e,a){switch(t){case A2.attributes.DISABLED:this.disabled=p(a);break;case A2.attributes.VALUE:this.value=a;break;case A2.attributes.PLACEHOLDER:this.placeholder=a;break}}};s([v()],h0.prototype,"value",2),s([v()],h0.prototype,"disabled",2),s([v()],h0.prototype,"placeholder",2),h0=s([y({name:A2.elementName,dependencies:[X,Q]})],h0);function vv(){x(h0)}var S7=`${b}app-bar-menu-button`,hv={ICON:"icon"},k7=w({},hv),O7=["aria-label","aria-labelledby"],to={elementName:S7,observedAttributes:hv,attributes:k7,forwardedAttributes:O7};var cv={TYPE:"type",DISABLED:"disabled",POPOVER_ICON:"popover-icon",DENSE:"dense",TABINDEX:"tabindex"},D7=w({},cv),P7={ROOT:"forge-button",POPOVER_ICON:"forge-button__popover-icon",WITH_ANCHOR:"with-anchor"},N7={ROOT:"[part=root]",DEFAULT_SLOT:"slot:not([name])",END_SLOT:"slot[name=end]"},v2={observedAttributes:cv,attributes:D7,selectors:N7,classes:P7};function it(r){class t extends r{connectedCallback(){var a;(a=super.connectedCallback)==null||a.call(this),this.hasAttribute(Wo)&&this[Ga]&&this[Ga][Zr](this),this.removeAttribute(Wo),delete this[Ga]}}return t}function H1(r){var e;class t extends(e=r,a1,e){constructor(...o){super(...o),this[a1]=this.attachInternals()}}return t}function R7(r){return r.replace("aria","aria-").replace(/Elements?/g,"").toLowerCase()}function Ut(r,t,e,{setAttribute:a}={setAttribute:!0}){Object.entries(e).forEach(([o,n])=>{R5()&&(t[o]=n);let i=R7(o);(a||!r.hasAttribute(i))&&K(r,n!=null,i,n)})}function Qo(r,t,e){if(e)try{r.states.add(t)}catch(a){r.states.add(`--${t}`)}else try{r.states.delete(t)}catch(a){r.states.delete(`--${t}`)}}function L1(r){class t extends r{[P](a,o){Ut(this,this[a1],a,o)}}return t}var Wt=class extends L1(H1(it(M))){constructor(){super();this.popoverTargetElement=null;this.popoverTargetAction="click";q.define(C0)}static get observedAttributes(){return Object.values(v2.observedAttributes)}connectedCallback(){super.connectedCallback(),this._core.initialize()}attributeChangedCallback(e,a,o){switch(e){case v2.observedAttributes.TYPE:this.type=o;return;case v2.observedAttributes.DISABLED:this.disabled=p(o);return;case v2.observedAttributes.POPOVER_ICON:this.popoverIcon=p(o);return;case v2.observedAttributes.DENSE:this.dense=p(o);return}}labelClickedCallback(){this._core.click({animateStateLayer:!0})}labelChangedCallback(e){this[P]({ariaLabel:e},{setAttribute:!this.hasAttribute("aria-label")})}get form(){return this[a1].form}get name(){var e;return(e=this.getAttribute("name"))!=null?e:""}set name(e){this.setAttribute("name",e)}get value(){var e;return(e=this.getAttribute("value"))!=null?e:""}set value(e){this.setAttribute("value",e)}click(){this._core.click({animateStateLayer:!0})}focus(e){this._core.focus(e)}};Wt.formAssociated=!0,s([v()],Wt.prototype,"type",2),s([v()],Wt.prototype,"disabled",2),s([v()],Wt.prototype,"popoverIcon",2),s([v()],Wt.prototype,"dense",2);var pv=`${b}icon-button`,dv={TOGGLE:"toggle",PRESSED:"pressed",ON:"on",VARIANT:"variant",THEME:"theme",SHAPE:"shape",DENSITY:"density"},F7=t1(w({},dv),{ARIA_PRESSED:"aria-pressed"}),U7={TOGGLE:`${pv}-toggle`},W7={DEFAULT_VARIANT:"icon",DEFAULT_THEME:"default",DEFAULT_SHAPE:"circular",DEFAULT_DENSITY:"large"},J={elementName:pv,observedAttributes:dv,attributes:F7,events:U7,defaults:W7};var N0=class{constructor(t){this._adapter=t;this._type="button";this._disabled=!1;this._popoverIcon=!1;this._dense=!1;this._clickListener=this._onClick.bind(this);this._keydownListener=this._onKeydown.bind(this);this._slotChangeListener=()=>this._detectSlottedAnchor()}initialize(){this._detectSlottedAnchor(),this._adapter.addDefaultSlotChangeListener(this._slotChangeListener)}click({animateStateLayer:t=!1}={}){this._disabled||(this._adapter.clickHost(),t&&this._adapter.animateStateLayer())}focus(t){this._adapter.focusHost(t),(t==null?void 0:t.focusVisible)!==!1&&this._adapter.forceFocusVisible()}async _onClick(t){let e=this._type==="submit"||this._type==="reset";!e&&this._adapter.hasPopoverTarget()&&this._adapter.managePopover()||(await new Promise(a=>setTimeout(a)),!(t.defaultPrevented||this._disabled)&&e&&this._adapter.clickFormButton(this._type))}async _onKeydown(t){if(t.key===" "){t.preventDefault(),this.click();return}await Qt(),!(t.defaultPrevented||this._disabled)&&t.key==="Enter"&&this.click()}_detectSlottedAnchor(){this._adapter.hasSlottedAnchor?(this.disabled=!1,this._adapter.removeHostListener("click",this._clickListener),this._adapter.removeHostListener("keydown",this._keydownListener)):(this._adapter.addHostListener("click",this._clickListener),this._adapter.addHostListener("keydown",this._keydownListener)),this._adapter.initialize()}get type(){return this._type}set type(t){this._type!==t&&(this._type=t,this._adapter.setHostAttribute(v2.attributes.TYPE,t))}get disabled(){return this._disabled}set disabled(t){t=!!t,this._disabled!==t&&(this._adapter.hasSlottedAnchor&&(t=!1),this._disabled=t,this._adapter.setDisabled(this._disabled),this._adapter.toggleHostAttribute(v2.attributes.DISABLED,t))}get popoverIcon(){return this._popoverIcon}set popoverIcon(t){t=!!t,this._popoverIcon!==t&&(this._popoverIcon=t,this._adapter.toggleDefaultPopoverIcon(this._popoverIcon),this._adapter.toggleHostAttribute(v2.attributes.POPOVER_ICON,t))}get dense(){return this._dense}set dense(t){t=!!t,this._dense!==t&&(this._dense=t,this._adapter.toggleHostAttribute(v2.attributes.DENSE,t))}};var An=class extends N0{constructor(e){super(e);this._toggle=!1;this._pressed=!1;this._variant=J.defaults.DEFAULT_VARIANT;this._theme=J.defaults.DEFAULT_THEME;this._shape=J.defaults.DEFAULT_SHAPE;this._density=J.defaults.DEFAULT_DENSITY}initialize(){super.initialize(),this._adapter.tryApplyGlobalConfiguration(["variant","shape","density"])}async _onClick(e){this._toggle&&this._onToggle(),super._onClick(e)}_onToggle(){let e=this._pressed;this._pressed=!this._pressed;let a=!this._adapter.emitHostEvent(J.events.TOGGLE,this.pressed,!0,!0);this._pressed=e,!a&&(this.pressed=!e)}get toggle(){return this._toggle}set toggle(e){e=!!e,this._toggle!==e&&(this._toggle=e,this._adapter.toggleHostAttribute(J.attributes.ARIA_PRESSED,this._toggle,`${this._pressed}`),this._adapter.toggleHostAttribute(J.attributes.TOGGLE,this._toggle))}get pressed(){return this._pressed}set pressed(e){e=!!e,this._pressed!==e&&(this._pressed=e,this._toggle?this._adapter.setHostAttribute(J.attributes.ARIA_PRESSED,`${this._pressed}`):this._adapter.removeHostAttribute(J.attributes.ARIA_PRESSED),this._adapter.toggleHostAttribute(J.attributes.PRESSED,this._pressed),this._adapter.toggleHostAttribute(J.attributes.ON,this._pressed))}get variant(){return this._variant}set variant(e){e=e!=null?e:J.defaults.DEFAULT_VARIANT,this._variant!==e&&(this._variant=e,this._variant!==J.defaults.DEFAULT_VARIANT?this._adapter.setHostAttribute(J.attributes.VARIANT,this._variant):this._adapter.removeHostAttribute(J.attributes.VARIANT))}get theme(){return this._theme}set theme(e){e=e!=null?e:J.defaults.DEFAULT_THEME,this._theme!==e&&(this._theme=e,this._theme!==J.defaults.DEFAULT_THEME?this._adapter.setHostAttribute(J.attributes.THEME,this._theme):this._adapter.removeHostAttribute(J.attributes.THEME))}get shape(){return this._shape}set shape(e){e=e!=null?e:J.defaults.DEFAULT_SHAPE,this._shape!==e&&(this._shape=e,this._shape!==J.defaults.DEFAULT_SHAPE?this._adapter.setHostAttribute(J.attributes.SHAPE,this._shape):this._adapter.removeHostAttribute(J.attributes.SHAPE))}get density(){return this._density}set density(e){e=e!=null?e:J.defaults.DEFAULT_DENSITY,this._density!==e&&(this._density=e,this._density!==J.defaults.DEFAULT_DENSITY?this._adapter.setHostAttribute(J.attributes.DENSITY,this._density):this._adapter.removeHostAttribute(J.attributes.DENSITY))}};var R0=class extends I{constructor(t){super(t),this._rootElement=g(this._component,v2.selectors.ROOT),this._focusIndicatorElement=g(this._component,m1.elementName),this._stateLayerElement=g(this._component,M1.elementName),this._defaultSlotElement=g(this._component,v2.selectors.DEFAULT_SLOT),this._endSlotElement=g(this._component,v2.selectors.END_SLOT)}get hasSlottedAnchor(){return!!this.getSlottedAnchor}get getSlottedAnchor(){return this._defaultSlotElement.assignedElements({flatten:!0}).find(t=>t.tagName==="A")}initialize(){let t=this.getSlottedAnchor;this._component[P]({role:t?null:"button"},{setAttribute:!this._component.hasAttribute("role")||!!t}),this._rootElement.classList.toggle(v2.classes.WITH_ANCHOR,!!t),t?this._component.removeAttribute("tabindex"):!this._component.disabled&&!this._component.hasAttribute("tabindex")&&this._component.setAttribute("tabindex","0"),this._focusIndicatorElement.targetElement=t||this._component,this._stateLayerElement.targetElement=t||this._component}setDisabled(t){t?(this._focusIndicatorElement.remove(),this._stateLayerElement.remove()):this._rootElement.append(this._focusIndicatorElement,this._stateLayerElement),this.hasSlottedAnchor?(this._component.removeAttribute("tabindex"),this._component[P]({ariaDisabled:null},{setAttribute:!0})):(t?this._component.removeAttribute("tabindex"):this._component.hasAttribute("tabindex")||this._component.setAttribute("tabindex","0"),this._component[P]({ariaDisabled:t?"true":null}))}clickHost(){HTMLElement.prototype.click.call(this._component)}forceFocusVisible(){this._focusIndicatorElement.active=!0}clickFormButton(t){var e;if(this._component.form)if(t==="submit"){this._component[a1].setFormValue(this._component.value);let a=document.createElement("button");a.type=t,e4(this._component,a,y3),this._component.form.addEventListener("submit",o=>{Object.defineProperty(o,"submitter",{configurable:!0,enumerable:!0,get:()=>this._component})},{capture:!0,once:!0}),this._component.insertAdjacentElement("afterend",a),a.click(),a.remove()}else t==="reset"&&((e=this._component.form)==null||e.reset())}hasPopoverTarget(){return this._component.hasAttribute("popovertarget")||!!this._component.popoverTargetElement}managePopover(){var o,n;if(this._component.form||!this.hasPopoverTarget()||!jr())return!1;let t=this._locatePopoverTargetElement();if(!t)return!1;let e=(n=(o=this._component.getAttribute("popovertargetaction"))!=null?o:this._component.popoverTargetAction)!=null?n:"toggle",a=t.matches(":popover-open");switch(e){case"show":return a||t.showPopover(),!0;case"hide":return a&&t.hidePopover(),!1;case"toggle":default:let i=t.togglePopover();if(i&&t.popover!=="manual"){let l=h=>{h.stopPropagation(),t.matches(":popover-open")&&t.hidePopover()};this._component.addEventListener("click",l,{capture:!0,once:!0}),t.addEventListener("beforetoggle",async()=>{await new Promise(h=>setTimeout(h)),this._component.removeEventListener("click",l,{capture:!0})},{once:!0})}return i}}toggleDefaultPopoverIcon(t){if(t){if(!this._endSlotElement.querySelector("forge-icon")){let a=document.createElement("forge-icon");a.classList.add(v2.classes.POPOVER_ICON),a.name=C0.name,this._endSlotElement.append(a)}}else{let e=this._endSlotElement.querySelector("forge-icon");e==null||e.remove()}}animateStateLayer(){var t;this._stateLayerElement.disabled||!this._stateLayerElement.isConnected||(t=this._stateLayerElement)==null||t.playAnimation()}addDefaultSlotChangeListener(t){this._defaultSlotElement.addEventListener("slotchange",t)}_locatePopoverTargetElement(){var e;let t=(e=this._component.popoverTargetElement)!=null?e:null;if(!t){let a=this._component.ownerDocument.getRootNode();if(!a)return null;let o=this._component.getAttribute("popovertarget");t=a.querySelector(`#${o}`)}return t}};var Bn=class extends R0{constructor(t){super(t)}};var G7='<template><div class="forge-icon-button" part="root"><slot name="start"></slot><slot></slot><slot name="on"></slot><slot name="end"></slot><slot name="badge"></slot><forge-focus-indicator target=":host" part="focus-indicator"></forge-focus-indicator><forge-state-layer target=":host" exportparts="surface:state-layer"></forge-state-layer></div></template>',Y7=":host{--_icon-button-display:var(--forge-icon-button-display, inline-flex);--_icon-button-disabled-cursor:var(--forge-icon-button-disabled-cursor, not-allowed)}:host{display:var(--_icon-button-display);position:relative;outline:0;-webkit-tap-highlight-color:transparent}:host([hidden]){display:none}.forge-icon-button{--_icon-button-size:var(--forge-icon-button-size, 48px);--_icon-button-gap:var(--forge-icon-button-gap, 0);--_icon-button-icon-color:var(--forge-icon-button-icon-color, currentColor);--_icon-button-background-color:var(--forge-icon-button-background-color, none);--_icon-button-icon-size:var(--forge-icon-button-icon-size, calc(var(--forge-typography-font-size, 1rem) * 1.5));--_icon-button-cursor:var(--forge-icon-button-cursor, pointer);--_icon-button-padding:var(--forge-icon-button-padding, var(--forge-spacing-xxsmall, 4px));--_icon-button-border:var(--forge-icon-button-border, none);--_icon-button-shadow:var(--forge-icon-button-shadow, none);--_icon-button-transition-duration:var(--forge-icon-button-transition-duration, var(--forge-animation-duration-short3, 150ms));--_icon-button-transition-timing:var(--forge-icon-button-transition-timing, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1)));--_icon-button-shape:var(--forge-icon-button-shape, calc(var(--forge-shape-full, 9999px) * var(--forge-shape-factor, 1)));--_icon-button-shape-start-start:var(--forge-icon-button-shape-start-start, var(--_icon-button-shape));--_icon-button-shape-start-end:var(--forge-icon-button-shape-start-end, var(--_icon-button-shape));--_icon-button-shape-end-start:var(--forge-icon-button-shape-end-start, var(--_icon-button-shape));--_icon-button-shape-end-end:var(--forge-icon-button-shape-end-end, var(--_icon-button-shape));--_icon-button-shape-squared:var(--forge-icon-button-shape-squared, calc(var(--forge-shape-medium, 4px) * var(--forge-shape-factor, 1)));--_icon-button-outlined-border-width:var(--forge-icon-button-outlined-border-width, 1px);--_icon-button-outlined-border-style:var(--forge-icon-button-outlined-border-style, solid);--_icon-button-outlined-border-color:var(--forge-icon-button-outlined-border-color, var(--_icon-button-icon-color));--_icon-button-tonal-icon-color:var(--forge-icon-button-tonal-icon-color, var(--forge-theme-on-primary-container, #222c62));--_icon-button-tonal-background-color:var(--forge-icon-button-tonal-background-color, var(--forge-theme-primary-container, #d1d5ed));--_icon-button-filled-icon-color:var(--forge-icon-button-filled-icon-color, var(--forge-theme-on-primary, #ffffff));--_icon-button-filled-background-color:var(--forge-icon-button-filled-background-color, var(--forge-theme-primary, #3f51b5));--_icon-button-raised-shadow:var(--forge-icon-button-raised-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12));--_icon-button-raised-hover-shadow:var(--forge-icon-button-raised-hover-shadow, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12));--_icon-button-raised-active-shadow:var(--forge-icon-button-raised-active-shadow, 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12));--_icon-button-raised-disabled-shadow:var(--forge-icon-button-raised-disabled-shadow, none);--_icon-button-density-small-size:var(--forge-icon-button-density-small-size, 24px);--_icon-button-density-small-padding:var(--forge-icon-button-density-small-padding, var(--forge-spacing-xxxsmall, 2px));--_icon-button-density-small-icon-size:var(--forge-icon-button-density-small-icon-size, calc(var(--forge-typography-font-size, 1rem) * 1.125));--_icon-button-density-medium-size:var(--forge-icon-button-density-medium-size, 36px);--_icon-button-density-medium-padding:var(--forge-icon-button-density-medium-padding, var(--forge-spacing-xxsmall, 4px));--_icon-button-density-large-size:var(--forge-icon-button-density-large-size, var(--_icon-button-size));--_icon-button-toggle-on-background-color:var(--forge-icon-button-toggle-on-background-color, var(--forge-theme-primary-container, #d1d5ed));--_icon-button-toggle-on-icon-color:var(--forge-icon-button-toggle-on-icon-color, var(--forge-theme-primary, #3f51b5));--_icon-button-outlined-toggle-on-background-color:var(--forge-icon-button-outlined-toggle-on-background-color, var(--forge-theme-primary-container, #d1d5ed));--_icon-button-outlined-toggle-on-icon-color:var(--forge-icon-button-outlined-toggle-on-icon-color, var(--forge-theme-primary, #3f51b5));--_icon-button-tonal-toggle-background-color:var(--forge-icon-button-tonal-toggle-background-color, var(--forge-theme-surface-container-low, #ebebeb));--_icon-button-tonal-toggle-on-background-color:var(--forge-icon-button-tonal-toggle-on-background-color, var(--forge-theme-primary-container, #d1d5ed));--_icon-button-tonal-toggle-on-icon-color:var(--forge-icon-button-tonal-toggle-on-icon-color, var(--forge-theme-primary, #3f51b5));--_icon-button-filled-toggle-background-color:var(--forge-icon-button-filled-toggle-background-color, var(--forge-theme-surface-container-low, #ebebeb));--_icon-button-filled-toggle-icon-color:var(--forge-icon-button-filled-toggle-icon-color, var(--forge-theme-primary, #3f51b5));--_icon-button-filled-toggle-on-background-color:var(--forge-icon-button-filled-toggle-on-background-color, var(--forge-theme-primary, #3f51b5));--_icon-button-filled-toggle-on-icon-color:var(--forge-icon-button-filled-toggle-on-icon-color, var(--forge-theme-on-primary, #ffffff));--_icon-button-disabled-opacity:var(--forge-icon-button-disabled-opacity, 0.38);--_icon-button-popover-icon-padding:var(--forge-icon-button-popover-icon-padding, var(--forge-spacing-xsmall, 8px));--_icon-button-focus-indicator-color:var(--forge-icon-button-focus-indicator-color, var(--forge-theme-primary, #3f51b5))}.forge-icon-button{position:relative;z-index:0;display:var(--_icon-button-display);align-items:center;justify-content:center;gap:var(--_icon-button-gap);box-sizing:border-box;height:var(--_icon-button-density-large-size);min-width:var(--_icon-button-density-large-size);border:var(--_icon-button-border);border-start-start-radius:var(--_icon-button-shape-start-start);border-start-end-radius:var(--_icon-button-shape-start-end);border-end-start-radius:var(--_icon-button-shape-end-start);border-end-end-radius:var(--_icon-button-shape-end-end);padding:var(--_icon-button-padding);box-shadow:var(--_icon-button-shadow);color:var(--_icon-button-icon-color);background:var(--_icon-button-background-color);font-size:var(--_icon-button-icon-size);cursor:var(--_icon-button-cursor);user-select:none;transition-property:box-shadow,background;transition-duration:var(--_icon-button-transition-duration);transition-timing-function:var(--_icon-button-transition-timing)}.forge-icon-button ::slotted(:is([slot=start],[slot=end])){font-size:var(--_icon-button-icon-size);height:var(--_icon-button-icon-size);width:var(--_icon-button-icon-size);font-weight:inherit}::slotted(a){height:100%;width:100%;outline:0;border-radius:var(--_icon-button-shape);padding-inline:var(--_icon-button-padding);display:flex;align-items:center;justify-content:center;gap:var(--_icon-button-gap);color:var(--_icon-button-icon-color);text-decoration:none}forge-focus-indicator{--forge-focus-indicator-color:var(--_icon-button-focus-indicator-color);--forge-focus-indicator-shape-start-start:var(--_icon-button-shape-start-start);--forge-focus-indicator-shape-start-end:var(--_icon-button-shape-start-end);--forge-focus-indicator-shape-end-start:var(--_icon-button-shape-end-start);--forge-focus-indicator-shape-end-end:var(--_icon-button-shape-end-end)}:host(:is([variant=icon],:not([variant]))){--forge-focus-indicator-outward-offset:0px}forge-state-layer{--forge-state-layer-color:var(--_icon-button-icon-color)}:host([popover-icon]) .forge-icon-button{--_icon-button-padding:var(--_icon-button-popover-icon-padding)}:host([variant=outlined]) .forge-icon-button{border-width:var(--_icon-button-outlined-border-width);border-style:var(--_icon-button-outlined-border-style);border-color:var(--_icon-button-outlined-border-color)}:host([variant=tonal]) .forge-icon-button{--_icon-button-icon-color:var(--_icon-button-tonal-icon-color);--_icon-button-background-color:var(--_icon-button-tonal-background-color)}:host(:is([variant=filled],[variant=raised])) .forge-icon-button{--_icon-button-icon-color:var(--_icon-button-filled-icon-color);--_icon-button-background-color:var(--_icon-button-filled-background-color)}:host([variant=raised]) .forge-icon-button{--_icon-button-shadow:var(--_icon-button-raised-shadow)}:host([variant=raised]) .forge-icon-button:hover{--_icon-button-raised-shadow:var(--_icon-button-raised-hover-shadow)}:host([variant=raised]) .forge-icon-button:active{--_icon-button-raised-shadow:var(--_icon-button-raised-active-shadow)}:host(:is(:not([toggle]),[toggle]:not([pressed]))) slot[name=on]{display:none}:host([toggle][pressed]) slot:not([name]){display:none}:host([toggle][pressed]:is(:not([variant]),[variant=icon])) .forge-icon-button{--_icon-button-background-color:var(--_icon-button-toggle-on-background-color);--_icon-button-icon-color:var(--_icon-button-toggle-on-icon-color)}:host([toggle][pressed][variant=outlined]) .forge-icon-button{--_icon-button-background-color:var(--_icon-button-outlined-toggle-on-background-color);--_icon-button-icon-color:var(--_icon-button-outlined-toggle-on-icon-color)}:host([toggle]:not([pressed])[variant=tonal]) .forge-icon-button{--_icon-button-background-color:var(--_icon-button-tonal-toggle-background-color)}:host([toggle][pressed][variant=tonal]) .forge-icon-button{--_icon-button-icon-color:var(--_icon-button-tonal-toggle-on-icon-color);--_icon-button-background-color:var(--_icon-button-tonal-toggle-on-background-color)}:host([toggle]:not([pressed]):is([variant=filled],[variant=raised])) .forge-icon-button{--_icon-button-icon-color:var(--_icon-button-filled-toggle-icon-color);--_icon-button-background-color:var(--_icon-button-filled-toggle-background-color)}:host([toggle][pressed]:is([variant=filled],[variant=raised])) .forge-icon-button{--_icon-button-icon-color:var(--_icon-button-filled-toggle-on-icon-color);--_icon-button-background-color:var(--_icon-button-filled-toggle-on-background-color)}::slotted([slot=badge]){position:absolute;top:0;left:60%;z-index:1;pointer-events:none}::slotted(forge-badge[slot=badge][dot]){top:8px}:host(:is([dense],[density=small],[density=medium])) ::slotted(forge-badge[slot=badge]:not([dot])){top:-25%}:host(:is([dense],[density=small],[density=medium])) ::slotted(forge-badge[slot=badge][dot]){top:0}:host(:is([dense],[density=small])) ::slotted(forge-badge[slot=badge]){--forge-typography-label1-line-height:normal;--forge-badge-height:auto}::slotted(forge-circular-progress){--forge-circular-progress-indicator-color:var(--_icon-button-icon-color);--forge-circular-progress-track-color:transparent;--forge-circular-progress-size:1em}:host(:is([dense],[density=small])) .forge-icon-button{--_icon-button-size:var(--_icon-button-density-small-size);--_icon-button-icon-size:var(--_icon-button-density-small-icon-size);--_icon-button-padding:var(--_icon-button-density-small-padding)}:host(:is([dense],[density=small])) ::slotted(*){font-size:var(--_icon-button-density-small-icon-size)}:host([density=medium]) .forge-icon-button{--_icon-button-size:var(--_icon-button-density-medium-size);--_icon-button-padding:var(--_icon-button-density-medium-padding)}:host([shape=squared]) .forge-icon-button{--_icon-button-shape:var(--_icon-button-shape-squared)}:host([disabled]){cursor:var(--_icon-button-disabled-cursor)}:host([disabled]) .forge-icon-button{pointer-events:none;opacity:var(--_icon-button-disabled-opacity)}:host([disabled][variant=raised]) .forge-icon-button{--_icon-button-raised-shadow:var(--_icon-button-raised-disabled-shadow)}:host(:not([toggle])[theme=primary]:is(:not([variant]),[variant=icon],[variant=outlined])) .forge-icon-button{--_icon-button-icon-color:var(--forge-icon-button-icon-color, var(--forge-theme-primary, #3f51b5))}:host([toggle][theme=primary]:is(:not([variant]),[variant=icon])) .forge-icon-button{--_icon-button-toggle-on-icon-color:var(--forge-icon-button-toggle-on-icon-color, var(--forge-theme-primary, #3f51b5))}:host([toggle][theme=primary][variant=outlined]) .forge-icon-button{--_icon-button-icon-color:var(--forge-icon-button-icon-color, var(--forge-theme-primary, #3f51b5));--_icon-button-outlined-toggle-on-background-color:var(--forge-icon-button-outlined-toggle-on-background-color, var(--forge-theme-primary-container, #d1d5ed));--_icon-button-outlined-toggle-on-icon-color:var(--forge-icon-button-outlined-toggle-on-icon-color, var(--forge-theme-primary, #3f51b5))}:host([theme=primary]) .forge-icon-button{--_icon-button-focus-indicator-color:var(--forge-icon-button-focus-indicator-color, var(--forge-theme-primary, #3f51b5))}:host(:not([toggle])[theme=secondary]:is(:not([variant]),[variant=icon],[variant=outlined])) .forge-icon-button{--_icon-button-icon-color:var(--forge-icon-button-icon-color, var(--forge-theme-secondary, #ffc107))}:host([toggle][theme=secondary]:is(:not([variant]),[variant=icon])) .forge-icon-button{--_icon-button-toggle-on-icon-color:var(--forge-icon-button-toggle-on-icon-color, var(--forge-theme-secondary, #ffc107))}:host([toggle][theme=secondary][variant=outlined]) .forge-icon-button{--_icon-button-icon-color:var(--forge-icon-button-icon-color, var(--forge-theme-secondary, #ffc107));--_icon-button-outlined-toggle-on-background-color:var(--forge-icon-button-outlined-toggle-on-background-color, var(--forge-theme-secondary-container, #fff0c3));--_icon-button-outlined-toggle-on-icon-color:var(--forge-icon-button-outlined-toggle-on-icon-color, var(--forge-theme-secondary, #ffc107))}:host(:not([toggle])[theme=secondary][variant=tonal]) .forge-icon-button{--_icon-button-icon-color:var(--forge-icon-button-icon-color, var(--forge-theme-on-secondary-container, #8a6804));--_icon-button-background-color:var(--forge-icon-button-background-color, var(--forge-theme-secondary-container, #fff0c3))}:host([toggle]:not([pressed])[theme=secondary][variant=tonal]) .forge-icon-button{--_icon-button-background-color:var(--forge-icon-button-background-color, var(--forge-theme-secondary-container, #fff0c3))}:host([toggle][theme=secondary][variant=tonal]) .forge-icon-button{--_icon-button-tonal-toggle-on-background-color:var(--forge-icon-button-tonal-toggle-on-background-color, var(--forge-theme-secondary-container, #fff0c3));--_icon-button-tonal-toggle-on-icon-color:var(--forge-icon-button-tonal-toggle-on-icon-color, var(--forge-theme-on-secondary-container, #8a6804))}:host(:not([toggle])[theme=secondary]:is([variant=filled],[variant=raised])) .forge-icon-button{--_icon-button-icon-color:var(--forge-icon-button-icon-color, var(--forge-theme-on-secondary, #000000));--_icon-button-background-color:var(--forge-icon-button-background-color, var(--forge-theme-secondary, #ffc107))}:host([toggle]:not([pressed])[theme=secondary]:is([variant=filled],[variant=raised])) .forge-icon-button{--_icon-button-icon-color:var(--forge-icon-button-icon-color, var(--forge-theme-secondary, #ffc107));--_icon-button-background-color:var(--forge-icon-button-background-color, var(--forge-theme-secondary-container, #fff0c3))}:host([toggle][theme=secondary]:is([variant=filled],[variant=raised])) .forge-icon-button{--_icon-button-filled-toggle-on-background-color:var(--forge-icon-button-filled-toggle-on-background-color, var(--forge-theme-secondary, #ffc107));--_icon-button-filled-toggle-on-icon-color:var(--forge-icon-button-filled-toggle-on-icon-color, var(--forge-theme-on-secondary, #000000))}:host([theme=secondary]) .forge-icon-button{--_icon-button-focus-indicator-color:var(--forge-icon-button-focus-indicator-color, var(--forge-theme-secondary, #ffc107))}:host(:not([toggle])[theme=tertiary]:is(:not([variant]),[variant=icon],[variant=outlined])) .forge-icon-button{--_icon-button-icon-color:var(--forge-icon-button-icon-color, var(--forge-theme-tertiary, #3d5afe))}:host([toggle][theme=tertiary]:is(:not([variant]),[variant=icon])) .forge-icon-button{--_icon-button-toggle-on-icon-color:var(--forge-icon-button-toggle-on-icon-color, var(--forge-theme-tertiary, #3d5afe))}:host([toggle][theme=tertiary][variant=outlined]) .forge-icon-button{--_icon-button-icon-color:var(--forge-icon-button-icon-color, var(--forge-theme-tertiary, #3d5afe));--_icon-button-outlined-toggle-on-background-color:var(--forge-icon-button-outlined-toggle-on-background-color, var(--forge-theme-tertiary-container, #d0d7ff));--_icon-button-outlined-toggle-on-icon-color:var(--forge-icon-button-outlined-toggle-on-icon-color, var(--forge-theme-tertiary, #3d5afe))}:host(:not([toggle])[theme=tertiary][variant=tonal]) .forge-icon-button{--_icon-button-icon-color:var(--forge-icon-button-icon-color, var(--forge-theme-on-tertiary-container, #213189));--_icon-button-background-color:var(--forge-icon-button-background-color, var(--forge-theme-tertiary-container, #d0d7ff))}:host([toggle]:not([pressed])[theme=tertiary][variant=tonal]) .forge-icon-button{--_icon-button-background-color:var(--forge-icon-button-background-color, var(--forge-theme-tertiary-container, #d0d7ff))}:host([toggle][theme=tertiary][variant=tonal]) .forge-icon-button{--_icon-button-tonal-toggle-on-background-color:var(--forge-icon-button-tonal-toggle-on-background-color, var(--forge-theme-tertiary-container, #d0d7ff));--_icon-button-tonal-toggle-on-icon-color:var(--forge-icon-button-tonal-toggle-on-icon-color, var(--forge-theme-on-tertiary-container, #213189))}:host(:not([toggle])[theme=tertiary]:is([variant=filled],[variant=raised])) .forge-icon-button{--_icon-button-icon-color:var(--forge-icon-button-icon-color, var(--forge-theme-on-tertiary, #ffffff));--_icon-button-background-color:var(--forge-icon-button-background-color, var(--forge-theme-tertiary, #3d5afe))}:host([toggle]:not([pressed])[theme=tertiary]:is([variant=filled],[variant=raised])) .forge-icon-button{--_icon-button-icon-color:var(--forge-icon-button-icon-color, var(--forge-theme-tertiary, #3d5afe));--_icon-button-background-color:var(--forge-icon-button-background-color, var(--forge-theme-tertiary-container, #d0d7ff))}:host([toggle][theme=tertiary]:is([variant=filled],[variant=raised])) .forge-icon-button{--_icon-button-filled-toggle-on-background-color:var(--forge-icon-button-filled-toggle-on-background-color, var(--forge-theme-tertiary, #3d5afe));--_icon-button-filled-toggle-on-icon-color:var(--forge-icon-button-filled-toggle-on-icon-color, var(--forge-theme-on-tertiary, #ffffff))}:host([theme=tertiary]) .forge-icon-button{--_icon-button-focus-indicator-color:var(--forge-icon-button-focus-indicator-color, var(--forge-theme-tertiary, #3d5afe))}:host(:not([toggle])[theme=success]:is(:not([variant]),[variant=icon],[variant=outlined])) .forge-icon-button{--_icon-button-icon-color:var(--forge-icon-button-icon-color, var(--forge-theme-success, #2e7d32))}:host([toggle][theme=success]:is(:not([variant]),[variant=icon])) .forge-icon-button{--_icon-button-toggle-on-icon-color:var(--forge-icon-button-toggle-on-icon-color, var(--forge-theme-success, #2e7d32))}:host([toggle][theme=success][variant=outlined]) .forge-icon-button{--_icon-button-icon-color:var(--forge-icon-button-icon-color, var(--forge-theme-success, #2e7d32));--_icon-button-outlined-toggle-on-background-color:var(--forge-icon-button-outlined-toggle-on-background-color, var(--forge-theme-success-container, #cde0ce));--_icon-button-outlined-toggle-on-icon-color:var(--forge-icon-button-outlined-toggle-on-icon-color, var(--forge-theme-success, #2e7d32))}:host(:not([toggle])[theme=success][variant=tonal]) .forge-icon-button{--_icon-button-icon-color:var(--forge-icon-button-icon-color, var(--forge-theme-on-success-container, #19441b));--_icon-button-background-color:var(--forge-icon-button-background-color, var(--forge-theme-success-container, #cde0ce))}:host([toggle]:not([pressed])[theme=success][variant=tonal]) .forge-icon-button{--_icon-button-background-color:var(--forge-icon-button-background-color, var(--forge-theme-success-container, #cde0ce))}:host([toggle][theme=success][variant=tonal]) .forge-icon-button{--_icon-button-tonal-toggle-on-background-color:var(--forge-icon-button-tonal-toggle-on-background-color, var(--forge-theme-success-container, #cde0ce));--_icon-button-tonal-toggle-on-icon-color:var(--forge-icon-button-tonal-toggle-on-icon-color, var(--forge-theme-on-success-container, #19441b))}:host(:not([toggle])[theme=success]:is([variant=filled],[variant=raised])) .forge-icon-button{--_icon-button-icon-color:var(--forge-icon-button-icon-color, var(--forge-theme-on-success, #ffffff));--_icon-button-background-color:var(--forge-icon-button-background-color, var(--forge-theme-success, #2e7d32))}:host([toggle]:not([pressed])[theme=success]:is([variant=filled],[variant=raised])) .forge-icon-button{--_icon-button-icon-color:var(--forge-icon-button-icon-color, var(--forge-theme-success, #2e7d32));--_icon-button-background-color:var(--forge-icon-button-background-color, var(--forge-theme-success-container, #cde0ce))}:host([toggle][theme=success]:is([variant=filled],[variant=raised])) .forge-icon-button{--_icon-button-filled-toggle-on-background-color:var(--forge-icon-button-filled-toggle-on-background-color, var(--forge-theme-success, #2e7d32));--_icon-button-filled-toggle-on-icon-color:var(--forge-icon-button-filled-toggle-on-icon-color, var(--forge-theme-on-success, #ffffff))}:host([theme=success]) .forge-icon-button{--_icon-button-focus-indicator-color:var(--forge-icon-button-focus-indicator-color, var(--forge-theme-success, #2e7d32))}:host(:not([toggle])[theme=error]:is(:not([variant]),[variant=icon],[variant=outlined])) .forge-icon-button{--_icon-button-icon-color:var(--forge-icon-button-icon-color, var(--forge-theme-error, #b00020))}:host([toggle][theme=error]:is(:not([variant]),[variant=icon])) .forge-icon-button{--_icon-button-toggle-on-icon-color:var(--forge-icon-button-toggle-on-icon-color, var(--forge-theme-error, #b00020))}:host([toggle][theme=error][variant=outlined]) .forge-icon-button{--_icon-button-icon-color:var(--forge-icon-button-icon-color, var(--forge-theme-error, #b00020));--_icon-button-outlined-toggle-on-background-color:var(--forge-icon-button-outlined-toggle-on-background-color, var(--forge-theme-error-container, #ecc2c9));--_icon-button-outlined-toggle-on-icon-color:var(--forge-icon-button-outlined-toggle-on-icon-color, var(--forge-theme-error, #b00020))}:host(:not([toggle])[theme=error][variant=tonal]) .forge-icon-button{--_icon-button-icon-color:var(--forge-icon-button-icon-color, var(--forge-theme-on-error-container, #5f0011));--_icon-button-background-color:var(--forge-icon-button-background-color, var(--forge-theme-error-container, #ecc2c9))}:host([toggle]:not([pressed])[theme=error][variant=tonal]) .forge-icon-button{--_icon-button-background-color:var(--forge-icon-button-background-color, var(--forge-theme-error-container, #ecc2c9))}:host([toggle][theme=error][variant=tonal]) .forge-icon-button{--_icon-button-tonal-toggle-on-background-color:var(--forge-icon-button-tonal-toggle-on-background-color, var(--forge-theme-error-container, #ecc2c9));--_icon-button-tonal-toggle-on-icon-color:var(--forge-icon-button-tonal-toggle-on-icon-color, var(--forge-theme-on-error-container, #5f0011))}:host(:not([toggle])[theme=error]:is([variant=filled],[variant=raised])) .forge-icon-button{--_icon-button-icon-color:var(--forge-icon-button-icon-color, var(--forge-theme-on-error, #ffffff));--_icon-button-background-color:var(--forge-icon-button-background-color, var(--forge-theme-error, #b00020))}:host([toggle]:not([pressed])[theme=error]:is([variant=filled],[variant=raised])) .forge-icon-button{--_icon-button-icon-color:var(--forge-icon-button-icon-color, var(--forge-theme-error, #b00020));--_icon-button-background-color:var(--forge-icon-button-background-color, var(--forge-theme-error-container, #ecc2c9))}:host([toggle][theme=error]:is([variant=filled],[variant=raised])) .forge-icon-button{--_icon-button-filled-toggle-on-background-color:var(--forge-icon-button-filled-toggle-on-background-color, var(--forge-theme-error, #b00020));--_icon-button-filled-toggle-on-icon-color:var(--forge-icon-button-filled-toggle-on-icon-color, var(--forge-theme-on-error, #ffffff))}:host([theme=error]) .forge-icon-button{--_icon-button-focus-indicator-color:var(--forge-icon-button-focus-indicator-color, var(--forge-theme-error, #b00020))}:host(:not([toggle])[theme=warning]:is(:not([variant]),[variant=icon],[variant=outlined])) .forge-icon-button{--_icon-button-icon-color:var(--forge-icon-button-icon-color, var(--forge-theme-warning, #d14900))}:host([toggle][theme=warning]:is(:not([variant]),[variant=icon])) .forge-icon-button{--_icon-button-toggle-on-icon-color:var(--forge-icon-button-toggle-on-icon-color, var(--forge-theme-warning, #d14900))}:host([toggle][theme=warning][variant=outlined]) .forge-icon-button{--_icon-button-icon-color:var(--forge-icon-button-icon-color, var(--forge-theme-warning, #d14900));--_icon-button-outlined-toggle-on-background-color:var(--forge-icon-button-outlined-toggle-on-background-color, var(--forge-theme-warning-container, #f4d3c2));--_icon-button-outlined-toggle-on-icon-color:var(--forge-icon-button-outlined-toggle-on-icon-color, var(--forge-theme-warning, #d14900))}:host(:not([toggle])[theme=warning][variant=tonal]) .forge-icon-button{--_icon-button-icon-color:var(--forge-icon-button-icon-color, var(--forge-theme-on-warning-container, #712700));--_icon-button-background-color:var(--forge-icon-button-background-color, var(--forge-theme-warning-container, #f4d3c2))}:host([toggle]:not([pressed])[theme=warning][variant=tonal]) .forge-icon-button{--_icon-button-background-color:var(--forge-icon-button-background-color, var(--forge-theme-warning-container, #f4d3c2))}:host([toggle][theme=warning][variant=tonal]) .forge-icon-button{--_icon-button-tonal-toggle-on-background-color:var(--forge-icon-button-tonal-toggle-on-background-color, var(--forge-theme-warning-container, #f4d3c2));--_icon-button-tonal-toggle-on-icon-color:var(--forge-icon-button-tonal-toggle-on-icon-color, var(--forge-theme-on-warning-container, #712700))}:host(:not([toggle])[theme=warning]:is([variant=filled],[variant=raised])) .forge-icon-button{--_icon-button-icon-color:var(--forge-icon-button-icon-color, var(--forge-theme-on-warning, #ffffff));--_icon-button-background-color:var(--forge-icon-button-background-color, var(--forge-theme-warning, #d14900))}:host([toggle]:not([pressed])[theme=warning]:is([variant=filled],[variant=raised])) .forge-icon-button{--_icon-button-icon-color:var(--forge-icon-button-icon-color, var(--forge-theme-warning, #d14900));--_icon-button-background-color:var(--forge-icon-button-background-color, var(--forge-theme-warning-container, #f4d3c2))}:host([toggle][theme=warning]:is([variant=filled],[variant=raised])) .forge-icon-button{--_icon-button-filled-toggle-on-background-color:var(--forge-icon-button-filled-toggle-on-background-color, var(--forge-theme-warning, #d14900));--_icon-button-filled-toggle-on-icon-color:var(--forge-icon-button-filled-toggle-on-icon-color, var(--forge-theme-on-warning, #ffffff))}:host([theme=warning]) .forge-icon-button{--_icon-button-focus-indicator-color:var(--forge-icon-button-focus-indicator-color, var(--forge-theme-warning, #d14900))}:host(:not([toggle])[theme=info]:is(:not([variant]),[variant=icon],[variant=outlined])) .forge-icon-button{--_icon-button-icon-color:var(--forge-icon-button-icon-color, var(--forge-theme-info, #1565c0))}:host([toggle][theme=info]:is(:not([variant]),[variant=icon])) .forge-icon-button{--_icon-button-toggle-on-icon-color:var(--forge-icon-button-toggle-on-icon-color, var(--forge-theme-info, #1565c0))}:host([toggle][theme=info][variant=outlined]) .forge-icon-button{--_icon-button-icon-color:var(--forge-icon-button-icon-color, var(--forge-theme-info, #1565c0));--_icon-button-outlined-toggle-on-background-color:var(--forge-icon-button-outlined-toggle-on-background-color, var(--forge-theme-info-container, #c7daf0));--_icon-button-outlined-toggle-on-icon-color:var(--forge-icon-button-outlined-toggle-on-icon-color, var(--forge-theme-info, #1565c0))}:host(:not([toggle])[theme=info][variant=tonal]) .forge-icon-button{--_icon-button-icon-color:var(--forge-icon-button-icon-color, var(--forge-theme-on-info-container, #0b3768));--_icon-button-background-color:var(--forge-icon-button-background-color, var(--forge-theme-info-container, #c7daf0))}:host([toggle]:not([pressed])[theme=info][variant=tonal]) .forge-icon-button{--_icon-button-background-color:var(--forge-icon-button-background-color, var(--forge-theme-info-container, #c7daf0))}:host([toggle][theme=info][variant=tonal]) .forge-icon-button{--_icon-button-tonal-toggle-on-background-color:var(--forge-icon-button-tonal-toggle-on-background-color, var(--forge-theme-info-container, #c7daf0));--_icon-button-tonal-toggle-on-icon-color:var(--forge-icon-button-tonal-toggle-on-icon-color, var(--forge-theme-on-info-container, #0b3768))}:host(:not([toggle])[theme=info]:is([variant=filled],[variant=raised])) .forge-icon-button{--_icon-button-icon-color:var(--forge-icon-button-icon-color, var(--forge-theme-on-info, #ffffff));--_icon-button-background-color:var(--forge-icon-button-background-color, var(--forge-theme-info, #1565c0))}:host([toggle]:not([pressed])[theme=info]:is([variant=filled],[variant=raised])) .forge-icon-button{--_icon-button-icon-color:var(--forge-icon-button-icon-color, var(--forge-theme-info, #1565c0));--_icon-button-background-color:var(--forge-icon-button-background-color, var(--forge-theme-info-container, #c7daf0))}:host([toggle][theme=info]:is([variant=filled],[variant=raised])) .forge-icon-button{--_icon-button-filled-toggle-on-background-color:var(--forge-icon-button-filled-toggle-on-background-color, var(--forge-theme-info, #1565c0));--_icon-button-filled-toggle-on-icon-color:var(--forge-icon-button-filled-toggle-on-icon-color, var(--forge-theme-on-info, #ffffff))}:host([theme=info]) .forge-icon-button{--_icon-button-focus-indicator-color:var(--forge-icon-button-focus-indicator-color, var(--forge-theme-info, #1565c0))}",n1=class extends Wt{static get observedAttributes(){return[...Object.values(v2.observedAttributes),...Object.values(J.observedAttributes)]}constructor(){super(),H(this,G7,Y7),this._core=new An(new Bn(this))}attributeChangedCallback(t,e,a){switch(t){case J.attributes.TOGGLE:this.toggle=p(a);break;case J.attributes.PRESSED:case J.attributes.ON:this.pressed=p(a);break;case J.attributes.VARIANT:this.variant=a;break;case J.attributes.THEME:this.theme=a;break;case J.attributes.SHAPE:this.shape=a;break;case J.attributes.DENSITY:this.density=a;break}super.attributeChangedCallback(t,e,a)}};s([v()],n1.prototype,"toggle",2),s([v()],n1.prototype,"pressed",2),s([v({name:"pressed"})],n1.prototype,"on",2),s([v()],n1.prototype,"theme",2),s([v()],n1.prototype,"variant",2),s([v()],n1.prototype,"shape",2),s([v()],n1.prototype,"density",2),n1=s([y({name:J.elementName,dependencies:[Q,r1,X]})],n1);var mv=class extends X1{constructor(t){super(t)}_build(){var e;let t=document.createElement(J.elementName);if((e=this._config.options)!=null&&e.tooltip){let a=document.createElement("forge-tooltip");a.textContent=this._config.options.tooltip,this._config.options.tooltipPosition&&(a.placement=this._config.options.tooltipPosition),t.appendChild(a)}return t}get iconElement(){return this._iconElement}get disabled(){return!!this._element.disabled}set disabled(t){this._element.disabled=t}_configure(){this._configureIcon()}_configureIcon(){var e,a;if(!((e=this._config.options)!=null&&e.iconName))return;switch(((a=this._config.options)==null?void 0:a.iconType)||"component"){case"font":let o=Array.isArray(this._config.options.iconClass)?this._config.options.iconClass:[ke];y1(o,this._element),this._element.textContent=this._config.options.iconName;break;case"component":this._iconElement=document.createElement(h1.elementName),this._iconElement.name=this._config.options.iconName,this._config.options.iconExternal!==void 0&&(this._iconElement.external=!!this._config.options.iconExternal),this._config.options.iconExternalType&&(this._iconElement.externalType=this._config.options.iconExternalType),this._config.options.iconClass&&y1(this._config.options.iconClass,this._iconElement),this._element.appendChild(this._iconElement);break}}onClick(t){this._element.addEventListener("click",t)}onFocus(t){this._element.addEventListener("focus",e=>t(e))}onBlur(t){this._element.addEventListener("blur",e=>t(e))}};function gv(){x(n1)}var wv=["top","right","bottom","left"];var F0=Math.min,c0=Math.max,tr=Math.round,er=Math.floor,ye=r=>({x:r,y:r}),K7={left:"right",right:"left",bottom:"top",top:"bottom"},q7={start:"end",end:"start"};function Sn(r,t,e){return c0(r,F0(t,e))}function _a(r,t){return typeof r=="function"?r(t):r}function U0(r){return r.split("-")[0]}function eo(r){return r.split("-")[1]}function s4(r){return r==="x"?"y":"x"}function kn(r){return r==="y"?"height":"width"}function fa(r){return["top","bottom"].includes(U0(r))?"y":"x"}function On(r){return s4(fa(r))}function uv(r,t,e){e===void 0&&(e=!1);let a=eo(r),o=On(r),n=kn(o),i=o==="x"?a===(e?"end":"start")?"right":"left":a==="start"?"bottom":"top";return t.reference[n]>t.floating[n]&&(i=Jo(i)),[i,Jo(i)]}function _v(r){let t=Jo(r);return[Tn(r),t,Tn(t)]}function Tn(r){return r.replace(/start|end/g,t=>q7[t])}function $7(r,t,e){let a=["left","right"],o=["right","left"],n=["top","bottom"],i=["bottom","top"];switch(r){case"top":case"bottom":return e?t?o:a:t?a:o;case"left":case"right":return t?n:i;default:return[]}}function fv(r,t,e,a){let o=eo(r),n=$7(U0(r),e==="start",a);return o&&(n=n.map(i=>i+"-"+o),t&&(n=n.concat(n.map(Tn)))),n}function Jo(r){return r.replace(/left|right|bottom|top/g,t=>K7[t])}function X7(r){return w({top:0,right:0,bottom:0,left:0},r)}function l4(r){return typeof r!="number"?X7(r):{top:r,right:r,bottom:r,left:r}}function xa(r){let{x:t,y:e,width:a,height:o}=r;return{width:a,height:o,top:e,left:t,right:t+a,bottom:e+o,x:t,y:e}}function xv(r,t,e){let{reference:a,floating:o}=r,n=fa(t),i=On(t),l=kn(i),h=U0(t),c=n==="y",d=a.x+a.width/2-o.width/2,u=a.y+a.height/2-o.height/2,_=a[l]/2-o[l]/2,L;switch(h){case"top":L={x:d,y:a.y-o.height};break;case"bottom":L={x:d,y:a.y+a.height};break;case"right":L={x:a.x+a.width,y:u};break;case"left":L={x:a.x-o.width,y:u};break;default:L={x:a.x,y:a.y}}switch(eo(t)){case"start":L[i]-=_*(e&&c?-1:1);break;case"end":L[i]+=_*(e&&c?-1:1);break}return L}var Mv=async(r,t,e)=>{let{placement:a="bottom",strategy:o="absolute",middleware:n=[],platform:i}=e,l=n.filter(Boolean),h=await(i.isRTL==null?void 0:i.isRTL(t)),c=await i.getElementRects({reference:r,floating:t,strategy:o}),{x:d,y:u}=xv(c,a,h),_=a,L={},C=0;for(let A=0;A<l.length;A++){let{name:z,fn:c1}=l[A],{x:b1,y:x1,data:K1,reset:U1}=await c1({x:d,y:u,initialPlacement:a,placement:_,strategy:o,middlewareData:L,rects:c,platform:i,elements:{reference:r,floating:t}});d=b1!=null?b1:d,u=x1!=null?x1:u,L=t1(w({},L),{[z]:w(w({},L[z]),K1)}),U1&&C<=50&&(C++,typeof U1=="object"&&(U1.placement&&(_=U1.placement),U1.rects&&(c=U1.rects===!0?await i.getElementRects({reference:r,floating:t,strategy:o}):U1.rects),{x:d,y:u}=xv(c,_,h)),A=-1)}return{x:d,y:u,placement:_,strategy:o,middlewareData:L}};async function ar(r,t){var e;t===void 0&&(t={});let{x:a,y:o,platform:n,rects:i,elements:l,strategy:h}=r,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:_=!1,padding:L=0}=_a(t,r),C=l4(L),z=l[_?u==="floating"?"reference":"floating":u],c1=xa(await n.getClippingRect({element:(e=await(n.isElement==null?void 0:n.isElement(z)))==null||e?z:z.contextElement||await(n.getDocumentElement==null?void 0:n.getDocumentElement(l.floating)),boundary:c,rootBoundary:d,strategy:h})),b1=u==="floating"?{x:a,y:o,width:i.floating.width,height:i.floating.height}:i.reference,x1=await(n.getOffsetParent==null?void 0:n.getOffsetParent(l.floating)),K1=await(n.isElement==null?void 0:n.isElement(x1))?await(n.getScale==null?void 0:n.getScale(x1))||{x:1,y:1}:{x:1,y:1},U1=xa(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:b1,offsetParent:x1,strategy:h}):b1);return{top:(c1.top-U1.top+C.top)/K1.y,bottom:(U1.bottom-c1.bottom+C.bottom)/K1.y,left:(c1.left-U1.left+C.left)/K1.x,right:(U1.right-c1.right+C.right)/K1.x}}var Hv=r=>({name:"arrow",options:r,async fn(t){let{x:e,y:a,placement:o,rects:n,platform:i,elements:l,middlewareData:h}=t,{element:c,padding:d=0}=_a(r,t)||{};if(c==null)return{};let u=l4(d),_={x:e,y:a},L=On(o),C=kn(L),A=await i.getDimensions(c),z=L==="y",c1=z?"top":"left",b1=z?"bottom":"right",x1=z?"clientHeight":"clientWidth",K1=n.reference[C]+n.reference[L]-_[L]-n.floating[C],U1=_[L]-n.reference[L],q2=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c)),Dt=q2?q2[x1]:0;(!Dt||!await(i.isElement==null?void 0:i.isElement(q2)))&&(Dt=l.floating[x1]||n.floating[C]);let M0=K1/2-U1/2,mt=Dt/2-A[C]/2-1,Ht=F0(u[c1],mt),Ze=F0(u[b1],mt),me=Ht,Qe=Dt-A[C]-Ze,qt=Dt/2-A[C]/2+M0,ge=Sn(me,qt,Qe),Oa=!h.arrow&&eo(o)!=null&&qt!==ge&&n.reference[C]/2-(qt<me?Ht:Ze)-A[C]/2<0,Je=Oa?qt<me?qt-me:qt-Qe:0;return{[L]:_[L]+Je,data:w({[L]:ge,centerOffset:qt-ge-Je},Oa&&{alignmentOffset:Je}),reset:Oa}}});var Lv=function(r){return r===void 0&&(r={}),{name:"flip",options:r,async fn(t){var e,a;let{placement:o,middlewareData:n,rects:i,initialPlacement:l,platform:h,elements:c}=t,qt=_a(r,t),{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:_,fallbackStrategy:L="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:A=!0}=qt,z=Pa(qt,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]);if((e=n.arrow)!=null&&e.alignmentOffset)return{};let c1=U0(o),b1=fa(l),x1=U0(l)===l,K1=await(h.isRTL==null?void 0:h.isRTL(c.floating)),U1=_||(x1||!A?[Jo(l)]:_v(l)),q2=C!=="none";!_&&q2&&U1.push(...fv(l,A,C,K1));let Dt=[l,...U1],M0=await ar(t,z),mt=[],Ht=((a=n.flip)==null?void 0:a.overflows)||[];if(d&&mt.push(M0[c1]),u){let ge=uv(o,i,K1);mt.push(M0[ge[0]],M0[ge[1]])}if(Ht=[...Ht,{placement:o,overflows:mt}],!mt.every(ge=>ge<=0)){var Ze,me;let ge=(((Ze=n.flip)==null?void 0:Ze.index)||0)+1,Oa=Dt[ge];if(Oa)return{data:{index:ge,overflows:Ht},reset:{placement:Oa}};let Je=(me=Ht.filter(Da=>Da.overflows[0]<=0).sort((Da,H0)=>Da.overflows[1]-H0.overflows[1])[0])==null?void 0:me.placement;if(!Je)switch(L){case"bestFit":{var Qe;let Da=(Qe=Ht.filter(H0=>{if(q2){let L0=fa(H0.placement);return L0===b1||L0==="y"}return!0}).map(H0=>[H0.placement,H0.overflows.filter(L0=>L0>0).reduce((L0,Y6)=>L0+Y6,0)]).sort((H0,L0)=>H0[1]-L0[1])[0])==null?void 0:Qe[0];Da&&(Je=Da);break}case"initialPlacement":Je=l;break}if(o!==Je)return{reset:{placement:Je}}}return{}}}};function bv(r,t){return{top:r.top-t.height,right:r.right-t.width,bottom:r.bottom-t.height,left:r.left-t.width}}function yv(r){return wv.some(t=>r[t]>=0)}var Iv=function(r){return r===void 0&&(r={}),{name:"hide",options:r,async fn(t){let{rects:e}=t,n=_a(r,t),{strategy:a="referenceHidden"}=n,o=Pa(n,["strategy"]);switch(a){case"referenceHidden":{let i=await ar(t,t1(w({},o),{elementContext:"reference"})),l=bv(i,e.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:yv(l)}}}case"escaped":{let i=await ar(t,t1(w({},o),{altBoundary:!0})),l=bv(i,e.floating);return{data:{escapedOffsets:l,escaped:yv(l)}}}default:return{}}}}};async function j7(r,t){let{placement:e,platform:a,elements:o}=r,n=await(a.isRTL==null?void 0:a.isRTL(o.floating)),i=U0(e),l=eo(e),h=fa(e)==="y",c=["left","top"].includes(i)?-1:1,d=n&&h?-1:1,u=_a(t,r),{mainAxis:_,crossAxis:L,alignmentAxis:C}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return l&&typeof C=="number"&&(L=l==="end"?C*-1:C),h?{x:L*d,y:_*c}:{x:_*c,y:L*d}}var Vv=function(r){return r===void 0&&(r=0),{name:"offset",options:r,async fn(t){var e,a;let{x:o,y:n,placement:i,middlewareData:l}=t,h=await j7(t,r);return i===((e=l.offset)==null?void 0:e.placement)&&(a=l.arrow)!=null&&a.alignmentOffset?{}:{x:o+h.x,y:n+h.y,data:t1(w({},h),{placement:i})}}}},Ev=function(r){return r===void 0&&(r={}),{name:"shift",options:r,async fn(t){let{x:e,y:a,placement:o}=t,z=_a(r,t),{mainAxis:n=!0,crossAxis:i=!1,limiter:l={fn:c1=>{let{x:b1,y:x1}=c1;return{x:b1,y:x1}}}}=z,h=Pa(z,["mainAxis","crossAxis","limiter"]),c={x:e,y:a},d=await ar(t,h),u=fa(U0(o)),_=s4(u),L=c[_],C=c[u];if(n){let c1=_==="y"?"top":"left",b1=_==="y"?"bottom":"right",x1=L+d[c1],K1=L-d[b1];L=Sn(x1,L,K1)}if(i){let c1=u==="y"?"top":"left",b1=u==="y"?"bottom":"right",x1=C+d[c1],K1=C-d[b1];C=Sn(x1,C,K1)}let A=l.fn(t1(w({},t),{[_]:L,[u]:C}));return t1(w({},A),{data:{x:A.x-e,y:A.y-a,enabled:{[_]:n,[u]:i}}})}}};function Dn(){return typeof window!="undefined"}function ba(r){return zv(r)?(r.nodeName||"").toLowerCase():"#document"}function Ct(r){var t;return(r==null||(t=r.ownerDocument)==null?void 0:t.defaultView)||window}function Me(r){var t;return(t=(zv(r)?r.ownerDocument:r.document)||window.document)==null?void 0:t.documentElement}function zv(r){return Dn()?r instanceof Node||r instanceof Ct(r).Node:!1}function te(r){return Dn()?r instanceof Element||r instanceof Ct(r).Element:!1}function He(r){return Dn()?r instanceof HTMLElement||r instanceof Ct(r).HTMLElement:!1}function Cv(r){return!Dn()||typeof ShadowRoot=="undefined"?!1:r instanceof ShadowRoot||r instanceof Ct(r).ShadowRoot}function oo(r){let{overflow:t,overflowX:e,overflowY:a,display:o}=ee(r);return/auto|scroll|overlay|hidden|clip/.test(t+a+e)&&!["inline","contents"].includes(o)}function Av(r){return["table","td","th"].includes(ba(r))}function or(r){return[":popover-open",":modal"].some(t=>{try{return r.matches(t)}catch(e){return!1}})}function Pn(r){let t=Nn(),e=te(r)?ee(r):r;return e.transform!=="none"||e.perspective!=="none"||(e.containerType?e.containerType!=="normal":!1)||!t&&(e.backdropFilter?e.backdropFilter!=="none":!1)||!t&&(e.filter?e.filter!=="none":!1)||["transform","perspective","filter"].some(a=>(e.willChange||"").includes(a))||["paint","layout","strict","content"].some(a=>(e.contain||"").includes(a))}function Bv(r){let t=p0(r);for(;He(t)&&!ya(t);){if(Pn(t))return t;if(or(t))return null;t=p0(t)}return null}function Nn(){return typeof CSS=="undefined"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ya(r){return["html","body","#document"].includes(ba(r))}function ee(r){return Ct(r).getComputedStyle(r)}function rr(r){return te(r)?{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}:{scrollLeft:r.scrollX,scrollTop:r.scrollY}}function p0(r){if(ba(r)==="html")return r;let t=r.assignedSlot||r.parentNode||Cv(r)&&r.host||Me(r);return Cv(t)?t.host:t}function Tv(r){let t=p0(r);return ya(t)?r.ownerDocument?r.ownerDocument.body:r.body:He(t)&&oo(t)?t:Tv(t)}function ao(r,t,e){var a;t===void 0&&(t=[]),e===void 0&&(e=!0);let o=Tv(r),n=o===((a=r.ownerDocument)==null?void 0:a.body),i=Ct(o);if(n){let l=Rn(i);return t.concat(i,i.visualViewport||[],oo(o)?o:[],l&&e?ao(l):[])}return t.concat(o,ao(o,[],e))}function Rn(r){return r.parent&&Object.getPrototypeOf(r.parent)?r.frameElement:null}function Ov(r){let t=ee(r),e=parseFloat(t.width)||0,a=parseFloat(t.height)||0,o=He(r),n=o?r.offsetWidth:e,i=o?r.offsetHeight:a,l=tr(e)!==n||tr(a)!==i;return l&&(e=n,a=i),{width:e,height:a,$:l}}function h4(r){return te(r)?r:r.contextElement}function ro(r){let t=h4(r);if(!He(t))return ye(1);let e=t.getBoundingClientRect(),{width:a,height:o,$:n}=Ov(t),i=(n?tr(e.width):e.width)/a,l=(n?tr(e.height):e.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!l||!Number.isFinite(l))&&(l=1),{x:i,y:l}}var Z7=ye(0);function Dv(r){let t=Ct(r);return!Nn()||!t.visualViewport?Z7:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Q7(r,t,e){return t===void 0&&(t=!1),!e||t&&e!==Ct(r)?!1:t}function Ma(r,t,e,a){t===void 0&&(t=!1),e===void 0&&(e=!1);let o=r.getBoundingClientRect(),n=h4(r),i=ye(1);t&&(a?te(a)&&(i=ro(a)):i=ro(r));let l=Q7(n,e,a)?Dv(n):ye(0),h=(o.left+l.x)/i.x,c=(o.top+l.y)/i.y,d=o.width/i.x,u=o.height/i.y;if(n){let _=Ct(n),L=a&&te(a)?Ct(a):a,C=_,A=Rn(C);for(;A&&a&&L!==C;){let z=ro(A),c1=A.getBoundingClientRect(),b1=ee(A),x1=c1.left+(A.clientLeft+parseFloat(b1.paddingLeft))*z.x,K1=c1.top+(A.clientTop+parseFloat(b1.paddingTop))*z.y;h*=z.x,c*=z.y,d*=z.x,u*=z.y,h+=x1,c+=K1,C=Ct(A),A=Rn(C)}}return xa({width:d,height:u,x:h,y:c})}function c4(r,t){let e=rr(r).scrollLeft;return t?t.left+e:Ma(Me(r)).left+e}function Pv(r,t,e){e===void 0&&(e=!1);let a=r.getBoundingClientRect(),o=a.left+t.scrollLeft-(e?0:c4(r,a)),n=a.top+t.scrollTop;return{x:o,y:n}}function J7(r){let{elements:t,rect:e,offsetParent:a,strategy:o}=r,n=o==="fixed",i=Me(a),l=t?or(t.floating):!1;if(a===i||l&&n)return e;let h={scrollLeft:0,scrollTop:0},c=ye(1),d=ye(0),u=He(a);if((u||!u&&!n)&&((ba(a)!=="body"||oo(i))&&(h=rr(a)),He(a))){let L=Ma(a);c=ro(a),d.x=L.x+a.clientLeft,d.y=L.y+a.clientTop}let _=i&&!u&&!n?Pv(i,h,!0):ye(0);return{width:e.width*c.x,height:e.height*c.y,x:e.x*c.x-h.scrollLeft*c.x+d.x+_.x,y:e.y*c.y-h.scrollTop*c.y+d.y+_.y}}function tg(r){return Array.from(r.getClientRects())}function eg(r){let t=Me(r),e=rr(r),a=r.ownerDocument.body,o=c0(t.scrollWidth,t.clientWidth,a.scrollWidth,a.clientWidth),n=c0(t.scrollHeight,t.clientHeight,a.scrollHeight,a.clientHeight),i=-e.scrollLeft+c4(r),l=-e.scrollTop;return ee(a).direction==="rtl"&&(i+=c0(t.clientWidth,a.clientWidth)-o),{width:o,height:n,x:i,y:l}}function ag(r,t){let e=Ct(r),a=Me(r),o=e.visualViewport,n=a.clientWidth,i=a.clientHeight,l=0,h=0;if(o){n=o.width,i=o.height;let c=Nn();(!c||c&&t==="fixed")&&(l=o.offsetLeft,h=o.offsetTop)}return{width:n,height:i,x:l,y:h}}function og(r,t){let e=Ma(r,!0,t==="fixed"),a=e.top+r.clientTop,o=e.left+r.clientLeft,n=He(r)?ro(r):ye(1),i=r.clientWidth*n.x,l=r.clientHeight*n.y,h=o*n.x,c=a*n.y;return{width:i,height:l,x:h,y:c}}function Sv(r,t,e){let a;if(t==="viewport")a=ag(r,e);else if(t==="document")a=eg(Me(r));else if(te(t))a=og(t,e);else{let o=Dv(r);a={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return xa(a)}function Nv(r,t){let e=p0(r);return e===t||!te(e)||ya(e)?!1:ee(e).position==="fixed"||Nv(e,t)}function rg(r,t){let e=t.get(r);if(e)return e;let a=ao(r,[],!1).filter(l=>te(l)&&ba(l)!=="body"),o=null,n=ee(r).position==="fixed",i=n?p0(r):r;for(;te(i)&&!ya(i);){let l=ee(i),h=Pn(i);!h&&l.position==="fixed"&&(o=null),(n?!h&&!o:!h&&l.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||oo(i)&&!h&&Nv(r,i))?a=a.filter(d=>d!==i):o=l,i=p0(i)}return t.set(r,a),a}function ng(r){let{element:t,boundary:e,rootBoundary:a,strategy:o}=r,i=[...e==="clippingAncestors"?or(t)?[]:rg(t,this._c):[].concat(e),a],l=i[0],h=i.reduce((c,d)=>{let u=Sv(t,d,o);return c.top=c0(u.top,c.top),c.right=F0(u.right,c.right),c.bottom=F0(u.bottom,c.bottom),c.left=c0(u.left,c.left),c},Sv(t,l,o));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}}function ig(r){let{width:t,height:e}=Ov(r);return{width:t,height:e}}function sg(r,t,e){let a=He(t),o=Me(t),n=e==="fixed",i=Ma(r,!0,n,t),l={scrollLeft:0,scrollTop:0},h=ye(0);if(a||!a&&!n)if((ba(t)!=="body"||oo(o))&&(l=rr(t)),a){let _=Ma(t,!0,n,t);h.x=_.x+t.clientLeft,h.y=_.y+t.clientTop}else o&&(h.x=c4(o));let c=o&&!a&&!n?Pv(o,l):ye(0),d=i.left+l.scrollLeft-h.x-c.x,u=i.top+l.scrollTop-h.y-c.y;return{x:d,y:u,width:i.width,height:i.height}}function v4(r){return ee(r).position==="static"}function kv(r,t){if(!He(r)||ee(r).position==="fixed")return null;if(t)return t(r);let e=r.offsetParent;return Me(r)===e&&(e=e.ownerDocument.body),e}function Rv(r,t){let e=Ct(r);if(or(r))return e;if(!He(r)){let o=p0(r);for(;o&&!ya(o);){if(te(o)&&!v4(o))return o;o=p0(o)}return e}let a=kv(r,t);for(;a&&Av(a)&&v4(a);)a=kv(a,t);return a&&ya(a)&&v4(a)&&!Pn(a)?e:a||Bv(r)||e}var lg=async function(r){let t=this.getOffsetParent||Rv,e=this.getDimensions,a=await e(r.floating);return{reference:sg(r.reference,await t(r.floating),r.strategy),floating:{x:0,y:0,width:a.width,height:a.height}}};function vg(r){return ee(r).direction==="rtl"}var hg={convertOffsetParentRelativeRectToViewportRelativeRect:J7,getDocumentElement:Me,getClippingRect:ng,getOffsetParent:Rv,getElementRects:lg,getClientRects:tg,getDimensions:ig,getScale:ro,isElement:te,isRTL:vg};function cg(r,t){let e=null,a,o=Me(r);function n(){var l;clearTimeout(a),(l=e)==null||l.disconnect(),e=null}function i(l,h){l===void 0&&(l=!1),h===void 0&&(h=1),n();let{left:c,top:d,width:u,height:_}=r.getBoundingClientRect();if(l||t(),!u||!_)return;let L=er(d),C=er(o.clientWidth-(c+u)),A=er(o.clientHeight-(d+_)),z=er(c),b1={rootMargin:-L+"px "+-C+"px "+-A+"px "+-z+"px",threshold:c0(0,F0(1,h))||1},x1=!0;function K1(U1){let q2=U1[0].intersectionRatio;if(q2!==h){if(!x1)return i();q2?i(!1,q2):a=setTimeout(()=>{i(!1,1e-7)},1e3)}x1=!1}try{e=new IntersectionObserver(K1,t1(w({},b1),{root:o.ownerDocument}))}catch(U1){e=new IntersectionObserver(K1,b1)}e.observe(r)}return i(!0),n}function Fv(r,t,e,a){a===void 0&&(a={});let{ancestorScroll:o=!0,ancestorResize:n=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:h=!1}=a,c=h4(r),d=o||n?[...c?ao(c):[],...ao(t)]:[];d.forEach(c1=>{o&&c1.addEventListener("scroll",e,{passive:!0}),n&&c1.addEventListener("resize",e)});let u=c&&l?cg(c,e):null,_=-1,L=null;i&&(L=new ResizeObserver(c1=>{let[b1]=c1;b1&&b1.target===c&&L&&(L.unobserve(t),cancelAnimationFrame(_),_=requestAnimationFrame(()=>{var x1;(x1=L)==null||x1.observe(t)})),e()}),c&&!h&&L.observe(c),L.observe(t));let C,A=h?Ma(r):null;h&&z();function z(){let c1=Ma(r);A&&(c1.x!==A.x||c1.y!==A.y||c1.width!==A.width||c1.height!==A.height)&&e(),A=c1,C=requestAnimationFrame(z)}return e(),()=>{var c1;d.forEach(b1=>{o&&b1.removeEventListener("scroll",e),n&&b1.removeEventListener("resize",e)}),u==null||u(),(c1=L)==null||c1.disconnect(),L=null,h&&cancelAnimationFrame(C)}}var Uv=Vv;var Wv=Ev,Gv=Lv;var Yv=Iv,Kv=Hv;var qv=(r,t,e)=>{let a=new Map,o=w({platform:hg},e),n=t1(w({},o.platform),{_c:a});return Mv(r,t,t1(w({},o),{platform:n}))};var p4=["top-start","top","top-end","left-start","left","left-end","right-start","right","right-end"],zt=class r{constructor(t,e,a=0,o=0){this.x=t;this.y=e;this.height=a;this.width=o}getBoundingClientRect(){return{x:this.x,y:this.y,top:this.y,left:this.x,bottom:this.y,right:this.x,width:this.height,height:this.width,toJSON(){}}}static fromElement(t){let e=t.getBoundingClientRect();return new r(e.left,e.top,e.height,e.width)}static fromEvent(t){if(t instanceof MouseEvent)return new r(t.clientX,t.clientY);if(t instanceof TouchEvent)return new r(t.touches[0].clientX,t.touches[0].clientY);throw new Error("Unsupported event type")}};async function $v({element:r,anchorElement:t,placement:e="bottom",offset:a=!1,offsetOptions:o,strategy:n="fixed",apply:i=!0,flip:l=!0,flipOptions:h={fallbackPlacements:p4,fallbackStrategy:"initialPlacement"},shift:c=!0,shiftOptions:d,hide:u=!1,hideOptions:_,arrowElement:L,arrowOptions:C={}}){var K1,U1,q2;let A=[];a&&A.push(Uv(o)),c&&A.push(Wv(d)),l&&A.push(Gv(h)),u&&A.push(Yv(_)),L&&A.push(Kv(t1(w({},C),{element:L})));let{x:z,y:c1,placement:b1,middlewareData:x1}=await qv(t,r,{strategy:n,placement:e,middleware:A});if(i){let Dt={left:"0",top:"0",translate:`${qa(z)}px ${qa(c1)}px`};Object.assign(r.style,Dt),(K1=x1.hide)!=null&&K1.referenceHidden?r.style.display="none":r.style.removeProperty("display")}return{x:z,y:c1,hidden:(q2=(U1=x1.hide)==null?void 0:U1.referenceHidden)!=null?q2:!1,placement:b1,arrow:x1.arrow}}var d4=`${b}overlay`,Xv={ANCHOR:"anchor",NO_ANCHOR:"no-anchor",OPEN:"open",INLINE:"inline",PLACEMENT:"placement",POSITION_STRATEGY:"position-strategy",HIDE:"hide",PERSISTENT:"persistent",SHIFT:"shift",FLIP:"flip",BOUNDARY:"boundary",FALLBACK_PLACEMENTS:"fallback-placements"},pg=t1(w({},Xv),{POSITION_PLACEMENT:"position-placement",CLIPPED_X:"clipped-x",CLIPPED_Y:"clipped-y"}),jv={OVERLAY:"forge-overlay"},dg={ROOT:`.${jv.OVERLAY}`},mg={LIGHT_DISMISS:`${d4}-light-dismiss`,DESCENDANT_TEST:`${d4}-descendant-test`},gg={HIDE:"anchor-hidden",FLIP:"auto"},B={elementName:d4,observedAttributes:Xv,attributes:pg,classes:jv,selectors:dg,events:mg,defaults:gg},no=jr(),W0=Symbol("overlayStack"),Zv={left:["right","bottom","top","top-start","top-end","left-start","left-end","right-start","right-end"],"left-start":["left-end","right-start","right-end","bottom","top"],"left-end":["left-start","right-end","right-start","bottom","top","bottom-start","bottom-end"],right:["left","bottom","top","top-start","top-end","left-start","left-end","right-start","right-end"],"right-start":["right-end","left-start","left-end","bottom","top"],"right-end":["right-start","left-end","left-start","bottom","top","bottom-start","bottom-end"],top:["bottom","left","right","bottom-start","left-start","left-end","right-start","right-end"],"top-start":["bottom-start","left","right","left-start","left-end","right-start","right-end"],"top-end":["bottom-end","left","right","right-start","right-end","left-start","left-end"],bottom:["top","left","right","top-start","left-start","left-end","right-start","right-end"],"bottom-start":["top-start","left","right","left-start","left-end","right-start","right-end"],"bottom-end":["top-end","left","right","right-start","right-end","left-start","left-end"]};var Fn=class extends I{constructor(e){super(e);this._lightDismissController=new AbortController;this._rootElement=g(e,B.selectors.ROOT)}async show(){!this._component.inline&&no?(this._rootElement.popover="manual",this._rootElement.showPopover()):this._rootElement.removeAttribute("popover"),d2[W0].add(this._component)}hide(){var e;this.tryCleanupAutoUpdate(),no&&this._rootElement.matches(":popover-open")&&(this._rootElement.hidePopover(),this._rootElement.removeAttribute("popover")),this._rootElement.style.removeProperty("top"),this._rootElement.style.removeProperty("left"),this._rootElement.style.removeProperty("translate"),this._rootElement.style.removeProperty("display"),(e=this._component.arrowElement)==null||e.removeAttribute("style"),this._component.removeAttribute(B.attributes.POSITION_PLACEMENT),this._component.removeAttribute(B.attributes.CLIPPED_X),this._component.removeAttribute(B.attributes.CLIPPED_Y),d2[W0].delete(this._component)}tryHideDescendantOverlays(){this._findDescendantOverlays().filter(a=>!a.persistent).forEach(a=>a.open=!1)}locateAnchorElement(e){return Yo(this._component,e)}positionElement({anchorElement:e,strategy:a,placement:o,hide:n,offset:i,shift:l,flip:h,boundary:c,boundaryElement:d,fallbackPlacements:u}){var C;this.tryCleanupAutoUpdate();let _=w({},i),L=(C=d||(c?this._component.closest(`#${c}`):null))!=null?C:"clippingAncestors";this._autoUpdateCleanup=Fv(e,this._rootElement,async()=>{var M0;let A=w({},_);if(this._component.arrowElement){let mt=this._component.arrowElementOffset||Math.sqrt(2*this._component.arrowElement.offsetWidth**2)/2;A.mainAxis==null&&(A.mainAxis=0),A.mainAxis+=mt}let z=await $v({element:this._rootElement,anchorElement:e,strategy:a,placement:o,hide:n!=="never",shift:l,shiftOptions:{boundary:L},flip:h!=="never",flipOptions:{fallbackStrategy:"bestFit",fallbackPlacements:(M0=u!=null?u:Zv[o])!=null?M0:p4,crossAxis:h==="cross"||h==="auto",mainAxis:h==="main"||h==="auto"},arrowElement:this._component.arrowElement,offset:!!A,offsetOptions:A}),c1=z.placement.split("-")[0],b1={top:"bottom",right:"left",bottom:"top",left:"right"}[c1];if(b1&&this._component.setAttribute(B.attributes.POSITION_PLACEMENT,z.placement),this._component.arrowElement&&z.arrow){let{x:mt,y:Ht}=z.arrow,Ze=this._component.arrowElement.offsetWidth,{borderWidth:me="0"}=getComputedStyle(this._component.arrowElement),Qe=parseFloat(me);Object.assign(this._component.arrowElement.style,{top:Ht!=null?`${Ht}px`:"",left:mt!=null?`${mt}px`:"",right:"",bottom:"",[b1]:`${-Ze/2-Qe}px`})}let x1=Math.max(document.documentElement.clientWidth,window.innerWidth),K1=Math.max(document.documentElement.clientHeight,window.innerHeight),U1=this._rootElement.getBoundingClientRect(),q2=U1.right>x1||U1.left<0,Dt=U1.bottom>K1||U1.top<0;if(this._component.toggleAttribute(B.attributes.CLIPPED_X,q2),this._component.toggleAttribute(B.attributes.CLIPPED_Y,Dt),q2||Dt){let{x:mt,y:Ht}=z,{height:Ze,width:me}=U1,Qe=q2?mt+me-x1:0,qt=Dt?Ht+Ze-K1:0;this._rootElement.style.translate=`${qa(mt-Qe)}px ${qa(Ht-qt)}px`}})}tryCleanupAutoUpdate(){var e;(e=this._autoUpdateCleanup)==null||e.call(this),this._autoUpdateCleanup=void 0}isMostRecentOpenOverlay(){return Array.from(d2[W0]).at(-1)===this._component}addLightDismissListener(e){this.removeLightDismissListener();let a=n=>{n.key==="Escape"&&this.isMostRecentOpenOverlay()&&(n.preventDefault(),n.stopPropagation(),e("escape"))};this._component.ownerDocument.addEventListener("keydown",a,{signal:this._lightDismissController.signal});let o=n=>{let i=n.composedPath(),l=Array.from(d2[W0]),h=l.indexOf(this._component),c=i.some(L=>L instanceof d2&&l.indexOf(L)>h),d=n.button===2;if(c||d)return;let u=this._component.anchorElement instanceof zt?!1:this._component.anchorElement&&i.includes(this._component.anchorElement),_=i.includes(this._rootElement);!u&&!_&&e("click")};this._component.ownerDocument.addEventListener("pointerup",o,{capture:!0,signal:this._lightDismissController.signal})}removeLightDismissListener(){this._lightDismissController.abort(),this._lightDismissController=new AbortController}_findDescendantOverlays(){let e=Array.from(d2[W0]),a=e.slice(e.indexOf(this._component)+1).reverse(),o=[];if(a.length){let n=i=>o.push(i.target);this._component.addEventListener(B.events.DESCENDANT_TEST,n),a.forEach(i=>i.dispatchEvent(new CustomEvent(B.events.DESCENDANT_TEST,{bubbles:!0,composed:!0}))),this._component.removeEventListener(B.events.DESCENDANT_TEST,n)}return o}};var Un=class{constructor(t){this._adapter=t}initialize(){}};var Wn=class extends Un{constructor(e){super(e);this._noAnchor=!1;this._open=!1;this._inline=!1;this._placement="bottom";this._positionStrategy="fixed";this._offset={};this._shift=!1;this._hide=B.defaults.HIDE;this._flip=B.defaults.FLIP;this._fallbackPlacements=null;this._persistent=!1;this._arrowElementOffset=0;this._lightDismissListener=this._onLightDismiss.bind(this)}initialize(){this._adapter.tryApplyGlobalConfiguration(["placement","positionStrategy","shift","hide","flip","boundaryElement","fallbackPlacements","persistent"]),!this._noAnchor&&!this._anchorElement&&this._anchor&&(this._anchorElement=this._adapter.locateAnchorElement(this._anchor)),no||(this.inline=!0),this._adapter.hasHostAttribute(B.attributes.OPEN)&&this._applyOpen(!0)}destroy(){this._open&&this._hideOverlay()}position(){var e;!this._open||this._noAnchor||!this._anchorElement||this._adapter.positionElement({anchorElement:this._anchorElement,strategy:this._positionStrategy,placement:this._placement,hide:this._hide,offset:this._offset,shift:this._shift,flip:this._flip,boundary:this._boundary,boundaryElement:this._boundaryElement,fallbackPlacements:(e=this._fallbackPlacements)!=null?e:void 0})}_onLightDismiss(e){let a={reason:e},o=new CustomEvent(B.events.LIGHT_DISMISS,{bubbles:!1,cancelable:!0,detail:a});this._adapter.dispatchHostEvent(o),!o.defaultPrevented&&this._applyOpen(!1)}_applyOpen(e){this._adapter.isConnected&&(this._open=e,this._open?this._showOverlay():this._hideOverlay(),this._adapter.toggleHostAttribute(B.attributes.OPEN,this._open))}_showOverlay(){this._adapter.show(),this._persistent||this._applyLightDismissListener(),!this._noAnchor&&this._anchorElement&&this.position()}_hideOverlay(){this._adapter.tryHideDescendantOverlays(),this._adapter.hide(),this._adapter.removeLightDismissListener()}_applyLightDismissListener(){this._adapter.addLightDismissListener(this._lightDismissListener)}get anchorElement(){return this._anchorElement}set anchorElement(e){this._anchorElement=e,this._open&&this.position()}get anchor(){return this._anchor}set anchor(e){this._anchor!==e&&(this._anchor=e,this._adapter.isConnected&&(this._anchorElement=this._anchor?this._adapter.locateAnchorElement(this._anchor):null),this._adapter.toggleHostAttribute(B.attributes.ANCHOR,!!this._anchor,this._anchor))}get noAnchor(){return this._noAnchor}set noAnchor(e){e=!!e,this._noAnchor!==e&&(this._noAnchor=e,this._adapter.toggleHostAttribute(B.attributes.NO_ANCHOR,this._noAnchor))}get open(){return this._open}set open(e){e=!!e,this._open!==e&&this._applyOpen(e)}get arrowElement(){return this._arrowElement}set arrowElement(e){this._arrowElement=e,this._open&&this.position()}get arrowElementOffset(){return this._arrowElementOffset}set arrowElementOffset(e){this._arrowElementOffset=e,this._open&&this.position()}get inline(){return this._inline}set inline(e){e=no?!!e:!0,this._inline!==e&&(this._inline=e,this._adapter.toggleHostAttribute(B.attributes.INLINE,this._inline))}get placement(){return this._placement}set placement(e){this._placement!==e&&(this._placement=e,this._open&&this.position(),this._adapter.setHostAttribute(B.attributes.PLACEMENT,this._placement))}get positionStrategy(){return this._positionStrategy}set positionStrategy(e){this._positionStrategy!==e&&(this._positionStrategy=e,this._open&&this.position(),this._adapter.setHostAttribute(B.attributes.POSITION_STRATEGY,this._positionStrategy))}get offset(){return this._offset}set offset(e){this._offset=e,this._open&&this.position()}get shift(){return this._shift}set shift(e){e=!!e,this._shift!==e&&(this._shift=e,this._open&&this.position(),this._adapter.toggleHostAttribute(B.attributes.SHIFT,this._shift))}get hide(){return this._hide}set hide(e){this._hide!==e&&(this._hide=e!=null?e:B.defaults.HIDE,this._open&&this.position(),this._adapter.toggleHostAttribute(B.attributes.HIDE,this._hide!==B.defaults.HIDE,String(this._hide)))}get persistent(){return this._persistent}set persistent(e){e=!!e,this._persistent!==e&&(this._persistent=e,this._persistent?this._adapter.removeLightDismissListener():this._open&&this._applyLightDismissListener(),this._adapter.toggleHostAttribute(B.attributes.PERSISTENT,this._persistent))}get flip(){return this._flip}set flip(e){this._flip!==e&&(this._flip=e!=null?e:B.defaults.FLIP,this._open&&this.position(),this._adapter.toggleHostAttribute(B.attributes.FLIP,this._flip!==B.defaults.FLIP,String(this._flip)))}get boundary(){return this._boundary}set boundary(e){this._boundary!==e&&(this._boundary=e,this._open&&this.position(),this._adapter.toggleHostAttribute(B.attributes.BOUNDARY,!!this._boundary,this._boundary))}get boundaryElement(){return this._boundaryElement}set boundaryElement(e){this._boundaryElement=e,this._open&&this.position()}get fallbackPlacements(){return this._fallbackPlacements}set fallbackPlacements(e){this._fallbackPlacements=e,this._open&&this.position()}};var B2=class extends M{constructor(){super()}position(){this._core.position()}attributeChangedCallback(t,e,a){switch(t){case B.observedAttributes.ANCHOR:this.anchor=a;break;case B.observedAttributes.NO_ANCHOR:this.noAnchor=p(a);break;case B.observedAttributes.OPEN:this.open=p(a);break;case B.observedAttributes.INLINE:this.inline=p(a);break;case B.observedAttributes.PLACEMENT:this.placement=a;break;case B.observedAttributes.POSITION_STRATEGY:this.positionStrategy=a;break;case B.observedAttributes.HIDE:this.hide=a;break;case B.observedAttributes.PERSISTENT:this.persistent=p(a);break;case B.observedAttributes.SHIFT:this.shift=p(a);break;case B.observedAttributes.FLIP:this.flip=a;break;case B.observedAttributes.BOUNDARY:this.boundary=a;break;case B.observedAttributes.FALLBACK_PLACEMENTS:this.fallbackPlacements=a!=null&&a.trim()?da(a):null;break}}};s([v()],B2.prototype,"anchorElement",2),s([v()],B2.prototype,"anchor",2),s([v()],B2.prototype,"noAnchor",2),s([v()],B2.prototype,"open",2),s([v()],B2.prototype,"inline",2),s([v()],B2.prototype,"placement",2),s([v()],B2.prototype,"positionStrategy",2),s([v()],B2.prototype,"offset",2),s([v()],B2.prototype,"shift",2),s([v()],B2.prototype,"hide",2),s([v()],B2.prototype,"persistent",2),s([v()],B2.prototype,"flip",2),s([v()],B2.prototype,"boundary",2),s([v()],B2.prototype,"boundaryElement",2),s([v()],B2.prototype,"fallbackPlacements",2);var wg='<template><div class="forge-overlay" part="root"><slot></slot></div></template>',ug=":host{display:contents}:host([hidden]){display:none}.forge-overlay{--_overlay-position:var(--forge-overlay-position, fixed);--_overlay-z-index:var(--forge-overlay-z-index, var(--forge-z-index-popup, 10));--_overlay-height:var(--forge-overlay-height, fit-content);--_overlay-width:var(--forge-overlay-width, fit-content);--_overlay-position-inline-start:var(--forge-overlay-position-inline-start, auto);--_overlay-position-inline-end:var(--forge-overlay-position-inline-end, auto);--_overlay-position-block-start:var(--forge-overlay-position-block-start, auto);--_overlay-position-block-end:var(--forge-overlay-position-block-end, auto)}.forge-overlay{display:none;box-sizing:border-box;height:var(--_overlay-height);width:var(--_overlay-width);border-radius:inherit;position:var(--_overlay-position);top:0;left:0;z-index:var(--_overlay-z-index);background:inherit;color:inherit}:host([position-strategy=absolute]) .forge-overlay{--_overlay-position:var(--forge-overlay-position, absolute)}:host([open][inline]) .forge-overlay{display:block;padding:0;margin:0;border:none;overflow:visible;inset:unset}:host([open]) .forge-overlay:popover-open{display:block;padding:0;margin:0;border:none;overflow:visible;inset:unset}:host([open][no-anchor]) .forge-overlay:popover-open{inset:0;margin:auto;margin-inline-start:var(--_overlay-position-inline-start);margin-inline-end:var(--_overlay-position-inline-end);margin-block-start:var(--_overlay-position-block-start);margin-block-end:var(--_overlay-position-block-end)}",Qv,Jv,d2=class extends(Jv=B2,Qv=W0,Jv){static get observedAttributes(){return Object.values(B.observedAttributes)}constructor(){super(),H(this,wg,ug),this._core=new Wn(new Fn(this))}connectedCallback(){this._core.initialize()}disconnectedCallback(){this._core.destroy()}};d2[Qv]=new Set,s([v()],d2.prototype,"arrowElement",2),s([v()],d2.prototype,"arrowElementOffset",2),d2=s([y({name:B.elementName})],d2);function th(){x(d2)}var _g=`${b}tooltip`,eh={ID:"id",OPEN:"open",TYPE:"type",ANCHOR:"anchor",TARGET:"target",PLACEMENT:"placement",POSITION:"position",DELAY:"delay",OFFSET:"offset",FLIP:"flip",BOUNDARY:"boundary",FALLBACK_PLACEMENTS:"fallback-placements",TRIGGER_TYPE:"trigger-type"},fg=w({},eh),xg={LONGPRESS_VISIBILITY_DURATION:3e3},bg={DELAY:500,OFFSET:4,FLIP:"auto",TYPE:"presentation",PLACEMENT:"right",TRIGGER_TYPES:["hover"]},yg={CONTENT:".forge-tooltip",ARROW:".arrow"},o1={elementName:_g,observedAttributes:eh,attributes:fg,numbers:xg,defaults:bg,selectors:yg};var Gn=class extends I{constructor(e){super(e);this._anchorElement=null;this._overlayElement=null;this._contentElement=g(this._component,o1.selectors.CONTENT),this._arrowElement=g(this._component,o1.selectors.ARROW)}get anchorElement(){return this._anchorElement}syncAria(){let e=this._component.type==="description"?"tooltip":null;if(this._component[P]({role:e}),this._component[P]({ariaHidden:"true"},{setAttribute:!this._component.hasAttribute("aria-hidden")}),this._anchorElement){if(this._component.type==="label"&&this._anchorElement.hasAttribute("aria-labelledby")||this._component.type==="description"&&this._anchorElement.hasAttribute("aria-describedby"))return;switch(!this._component.hasAttribute("id")&&this._component.type!=="presentation"&&(this._component.id=`forge-tooltip-${P2()}`),this._component.type){case"description":this._anchorElement.setAttribute("aria-describedby",this._component.id);break;case"label":this._anchorElement.setAttribute("aria-labelledby",this._component.id);break}}}detachAria(){var e,a,o,n;this._component.type==="description"&&((e=this._anchorElement)==null?void 0:e.getAttribute("aria-describedby"))===this._component.id&&((a=this._anchorElement)==null||a.removeAttribute("aria-describedby")),this._component.type==="label"&&((o=this._anchorElement)==null?void 0:o.getAttribute("aria-labelledby"))===this._component.id&&((n=this._anchorElement)==null||n.removeAttribute("aria-labelledby"))}setAnchorElement(e){this._anchorElement=e}tryLocateAnchorElement(e){this._anchorElement=this._tryFindAnchorElement(e)}addAnchorListener(e,a,o){var n;(n=this._anchorElement)==null||n.addEventListener(e,a,o)}removeAnchorListener(e,a){var o;(o=this._anchorElement)==null||o.removeEventListener(e,a)}addLightDismissListener(e){var a;(a=this._overlayElement)==null||a.addEventListener(B.events.LIGHT_DISMISS,e)}removeLightDismissListener(e){var a;(a=this._overlayElement)==null||a.removeEventListener(B.events.LIGHT_DISMISS,e)}show(){var e;if(this._overlayElement||(this._overlayElement=document.createElement(B.elementName),this._overlayElement.setAttribute("part","root:overlay")),this._overlayElement.placement=this._component.placement,this._overlayElement.anchorElement=this._anchorElement,this._overlayElement.arrowElement=this._arrowElement,this._overlayElement.offset={mainAxis:this._component.offset},this._overlayElement.flip=this._component.flip,this._component.fallbackPlacements&&(this._overlayElement.fallbackPlacements=this._component.fallbackPlacements),this._component.boundaryElement)this._overlayElement.boundaryElement=this._component.boundaryElement;else if(this._component.boundary){let a=Yo(this._component,this._component.boundary);this._overlayElement.boundaryElement=a}else this._overlayElement.boundaryElement=null;(e=this._component.shadowRoot)==null||e.appendChild(this._overlayElement),this._overlayElement.appendChild(this._contentElement),this._overlayElement.open=!0}hide(){var e,a;this._overlayElement&&(this._overlayElement.open=!1),(e=this._component.shadowRoot)==null||e.appendChild(this._contentElement),(a=this._overlayElement)==null||a.remove()}_tryFindAnchorElement(e){var a,o;if(e){let n=this._component.getRootNode(),i=(a=n.getElementById(e))!=null?a:n.querySelector(e);if(i)return i}return(o=this._component.previousElementSibling)!=null?o:this._component.parentElement}};var Mg=500;function Yn(r=class{}){class t extends r{constructor(){super(...arguments);this._longpressStartListener=this._onLongpressStart.bind(this);this._longpressEndListener=this._onLongpressEnd.bind(this);this._longpressContextMenuListener=this._onLongpressContextMenu.bind(this);this._longpressClickPrevent=this._onLongpressClickPrevent.bind(this);this._longpressDelay=Mg}_startLongpressListener(o){let n=n0?"pointerdown":"touchstart";o.addEventListener(n,this._longpressStartListener)}_stopLongpressListener(o){let n=n0?"pointerdown":"touchstart";o.removeEventListener(n,this._longpressStartListener),this._unlistenLongpressEnd(o)}_onLongpressStart(o){o.target.setPointerCapture(o.pointerId),this._listenLongpressEnd(o.target),this._longpressTimeout=window.setTimeout(()=>{this._onLongpress(),n0||navigator.vibrate(1),o.target.addEventListener("click",this._longpressClickPrevent,{capture:!0,once:!0})},this._longpressDelay)}_onLongpressClickPrevent(o){o.stopPropagation()}_onLongpressEnd(o){this._clearTimeout(),this._unlistenLongpressEnd(o.target)}_onLongpressContextMenu(o){this._clearTimeout(),o.target.removeEventListener("click",this._longpressClickPrevent,{capture:!0}),this._unlistenLongpressEnd(o.target)}_listenLongpressEnd(o){n0?(o.addEventListener("pointerup",this._longpressEndListener),o.addEventListener("pointercancel",this._longpressEndListener),o.addEventListener("contextmenu",this._longpressContextMenuListener)):o.addEventListener("touchend",this._longpressEndListener)}_unlistenLongpressEnd(o){n0?(o.removeEventListener("pointerup",this._longpressEndListener),o.removeEventListener("pointercancel",this._longpressEndListener),o.removeEventListener("contextmenu",this._longpressContextMenuListener)):o.removeEventListener("touchend",this._longpressEndListener)}_clearTimeout(){window.clearTimeout(this._longpressTimeout),this._longpressTimeout=void 0}}return t}var Kn=class extends Yn(Object){constructor(e){super();this._adapter=e;this._open=!1;this._type=o1.defaults.TYPE;this._delay=o1.defaults.DELAY;this._placement=o1.defaults.PLACEMENT;this._offset=o1.defaults.OFFSET;this._flip=o1.defaults.FLIP;this._boundary=null;this._boundaryElement=null;this._fallbackPlacements=null;this._triggerTypes=o1.defaults.TRIGGER_TYPES;this._hoverStartListener=this._onHoverStart.bind(this);this._hoverEndListener=this._onHoverEnd.bind(this);this._focusListener=this._onFocus.bind(this);this._blurListener=this._onBlur.bind(this);this._scrollListener=this._onTryHide.bind(this);this._mouseDownListener=this._onTryHide.bind(this);this._dragListener=this._onTryHide.bind(this);this._lightDismissListener=this._onTryHide.bind(this)}initialize(){this._adapter.tryApplyGlobalConfiguration(["type","delay","placement","offset","flip","boundaryElement","fallbackPlacements","triggerType"]),this._adapter.anchorElement||this._adapter.tryLocateAnchorElement(this._anchor),this._adapter.syncAria(),this._attachAnchorListeners(),this._open&&this._show()}destroy(){this._open&&this._hide(),this._adapter.detachAria(),this._detachAnchorListeners()}syncTooltipAria(){this._adapter.syncAria()}_attachAnchorListeners(){if(!this._adapter.anchorElement)return;let e=[...this._triggerTypes];n0||(e.splice(e.indexOf("hover"),1),e.push("longpress"));let a={hover:()=>this._adapter.addAnchorListener("mouseenter",this._hoverStartListener),longpress:()=>this._startLongpressListener(this._adapter.anchorElement),focus:()=>this._adapter.addAnchorListener("focusin",this._focusListener)};e.forEach(o=>a[o]())}_detachAnchorListeners(){if(!this._adapter.anchorElement)return;let e=[...this._triggerTypes];n0||e.push("longpress");let a={hover:()=>{this._adapter.removeAnchorListener("mouseenter",this._hoverStartListener),this._adapter.removeAnchorListener("mousedown",this._hoverEndListener),this._adapter.removeAnchorListener("mouseleave",this._hoverEndListener)},longpress:()=>this._stopLongpressListener(this._adapter.anchorElement),focus:()=>{this._adapter.removeAnchorListener("focusin",this._focusListener),this._adapter.removeAnchorListener("focusout",this._blurListener)}};e.forEach(o=>a[o]())}_show(){this._open=!0,this._adapter.show(),Vt.instance.add(this._adapter.hostElement),this._attachDismissListeners(),this._adapter.toggleHostAttribute(o1.attributes.OPEN,this._open)}_hide(){window.clearTimeout(this._hoverTimeout),window.clearTimeout(this._longpressVisibilityTimeout),this._open=!1,this._adapter.hide(),Vt.instance.remove(this._adapter.hostElement),this._detachDismissListeners(),this._adapter.toggleHostAttribute(o1.attributes.OPEN,this._open)}_attachDismissListeners(){this._adapter.addAnchorListener("mousedown",this._mouseDownListener),this._adapter.addAnchorListener("dragstart",this._dragListener),this._adapter.addDocumentListener("scroll",this._scrollListener),this._adapter.addDocumentListener("wheel",this._scrollListener),this._adapter.addLightDismissListener(this._lightDismissListener)}_detachDismissListeners(){this._adapter.removeAnchorListener("mousedown",this._mouseDownListener),this._adapter.removeAnchorListener("dragstart",this._dragListener),this._adapter.removeDocumentListener("scroll",this._scrollListener),this._adapter.removeDocumentListener("wheel",this._scrollListener),this._adapter.removeLightDismissListener(this._lightDismissListener)}_onHoverStart(e){this._open||(this._adapter.addAnchorListener("mousedown",this._hoverEndListener),this._adapter.addAnchorListener("mouseleave",this._hoverEndListener),this._delay?this._hoverTimeout=window.setTimeout(()=>{this._onTryShow()},this._delay):this._onTryShow())}_onHoverEnd(e){this._adapter.removeAnchorListener("mousedown",this._hoverEndListener),this._adapter.removeAnchorListener("mouseleave",this._hoverEndListener),window.clearTimeout(this._hoverTimeout),this._onTryHide()}_onFocus(e){this._open||(this._adapter.addAnchorListener("focusout",this._blurListener),this._onTryShow())}_onBlur(e){this._adapter.removeAnchorListener("focusout",this._blurListener),this._onTryHide()}_onLongpress(){this._onTryShow()}_onLongpressEnd(e){super._onLongpressEnd(e),this._longpressVisibilityTimeout=window.setTimeout(()=>{this._onTryHide()},o1.numbers.LONGPRESS_VISIBILITY_DURATION)}_onTryShow(){this._open||this._show()}_onTryHide(){this._open&&this._hide()}get open(){return this._open}set open(e){e=!!e,this._open!==e&&(this._adapter.isConnected?this._open?this._hide():this._show():this._open=e)}get type(){return this._type}set type(e){e!=null||(e=o1.defaults.TYPE),this._type!==e&&(this._type=e,this._adapter.isConnected&&this._adapter.syncAria(),this._adapter.toggleHostAttribute(o1.attributes.TYPE,this._type!==o1.defaults.TYPE,this._type))}get anchor(){return this._anchor}set anchor(e){this._anchor!==e&&(this._anchor=e,this._adapter.isConnected&&(this._detachAnchorListeners(),this._adapter.detachAria(),this._adapter.tryLocateAnchorElement(this._anchor),this._adapter.syncAria(),this._attachAnchorListeners()),this._adapter.toggleHostAttribute(o1.attributes.ANCHOR,!!this._anchor,this._anchor))}get anchorElement(){return this._adapter.anchorElement}set anchorElement(e){this._adapter.anchorElement!==e&&(this._adapter.isConnected&&(this._detachAnchorListeners(),this._adapter.detachAria()),this._adapter.setAnchorElement(e),this._adapter.isConnected&&(this._adapter.syncAria(),this._attachAnchorListeners()))}get delay(){return this._delay}set delay(e){this._delay!==e&&(this._delay=e,this._adapter.setHostAttribute(o1.attributes.DELAY,String(this._delay)))}get placement(){return this._placement}set placement(e){e!=null||(e=o1.defaults.PLACEMENT),this._placement!==e&&(this._placement=e,this._adapter.setHostAttribute(o1.attributes.PLACEMENT,String(this._placement)))}get offset(){return this._offset}set offset(e){e!=null||(e=o1.defaults.OFFSET),this._offset!==e&&(this._offset=e,this._adapter.toggleHostAttribute(o1.attributes.OFFSET,this._offset!==o1.defaults.OFFSET,String(this._offset)))}get flip(){return this._flip}set flip(e){e!=null||(e=o1.defaults.FLIP),this._flip!==e&&(this._flip=e,this._adapter.toggleHostAttribute(o1.attributes.FLIP,this._flip!==o1.defaults.FLIP,String(this._flip)))}get boundary(){return this._boundary}set boundary(e){this._boundary!==e&&(this._boundary=e,this._adapter.toggleHostAttribute(o1.attributes.BOUNDARY,!!this._boundary,this._boundary))}get boundaryElement(){return this._boundaryElement}set boundaryElement(e){var a;this._boundaryElement!==e&&(this._boundaryElement=e,this._adapter.toggleHostAttribute(o1.attributes.BOUNDARY,!!this._boundaryElement,(a=this._boundaryElement)==null?void 0:a.id))}get fallbackPlacements(){return this._fallbackPlacements}set fallbackPlacements(e){this._fallbackPlacements!==e&&(this._fallbackPlacements=e)}get triggerType(){return this._triggerTypes.length===1?this._triggerTypes[0]:this._triggerTypes}set triggerType(e){this._triggerTypes!==e&&(this._adapter.isConnected&&this._detachAnchorListeners(),this._triggerTypes=Array.isArray(e)?e:[e],this._triggerTypes=this._triggerTypes.filter(a=>!!a),this._triggerTypes.length||(this._triggerTypes=o1.defaults.TRIGGER_TYPES),this._adapter.isConnected&&this._attachAnchorListeners())}};var Hg='<template><div class="forge-tooltip" part="surface"><slot></slot><div class="arrow" part="arrow"></div></div></template>',Lg='@keyframes slidein{from{opacity:0;transform:translateX(var(--_tooltip-slidein-x)) translateY(var(--_tooltip-slidein-y))}to{opacity:1;transform:translateX(0) translateY(0)}}:host{display:contents;pointer-events:none}:host([hidden]){display:none}.forge-tooltip{--_tooltip-background:var(--forge-tooltip-background, var(--forge-theme-surface-inverse, #333333));--_tooltip-color:var(--forge-tooltip-color, var(--forge-theme-on-surface-inverse, #ffffff));--_tooltip-shape:var(--forge-tooltip-shape, calc(var(--forge-shape-medium, 4px) * var(--forge-shape-factor, 1)));--_tooltip-padding:var(--forge-tooltip-padding, var(--forge-spacing-xsmall, 8px));--_tooltip-padding-block:var(--forge-tooltip-padding-block, var(--_tooltip-padding));--_tooltip-padding-inline:var(--forge-tooltip-padding-inline, var(--_tooltip-padding));--_tooltip-width:var(--forge-tooltip-width, max-content);--_tooltip-max-width:var(--forge-tooltip-max-width, 320px);--_tooltip-elevation:var(--forge-tooltip-elevation, var(--forge-theme-surface-bright-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)));--_tooltip-content-align:var(--forge-tooltip-content-align, center);--_tooltip-border-width:var(--forge-tooltip-border-width, 0);--_tooltip-border-style:var(--forge-tooltip-border-style, solid);--_tooltip-border-color:var(--forge-tooltip-border-color, var(--forge-theme-outline, #e0e0e0));--_tooltip-animation-timing:var(--forge-tooltip-animation-timing, var(--forge-animation-easing-decelerate, cubic-bezier(0, 0, 0, 1)));--_tooltip-animation-duration:var(--forge-tooltip-animation-duration, var(--forge-animation-duration-short3, 150ms));--_tooltip-animation-offset:var(--forge-tooltip-animation-offset, 24px);--_tooltip-arrow-size:var(--forge-tooltip-arrow-size, 8px);--_tooltip-arrow-height:var(--forge-tooltip-arrow-height, var(--_tooltip-arrow-size));--_tooltip-arrow-width:var(--forge-tooltip-arrow-width, var(--_tooltip-arrow-size));--_tooltip-arrow-shape:var(--forge-tooltip-arrow-shape, calc(var(--forge-shape-small, 2px) * var(--forge-shape-factor, 1)));--_tooltip-arrow-rotation:var(--forge-tooltip-arrow-rotation, 0deg);--_tooltip-arrow-top-rotation:var(--forge-tooltip-arrow-top-rotation, 315deg);--_tooltip-arrow-right-rotation:var(--forge-tooltip-arrow-right-rotation, 45deg);--_tooltip-arrow-bottom-rotation:var(--forge-tooltip-arrow-bottom-rotation, 135deg);--_tooltip-arrow-left-rotation:var(--forge-tooltip-arrow-left-rotation, 225deg)}.forge-tooltip{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-body1-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-body1-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-font-size-scale, .875)));font-weight:var(--forge-typography-body1-font-weight,400);line-height:var(--forge-typography-body1-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-line-height-scale, 1.125)));letter-spacing:var(--forge-typography-body1-letter-spacing, .0357142857em);text-transform:var(--forge-typography-body1-text-transform,inherit);text-decoration:var(--forge-typography-body1-text-decoration,inherit);position:relative;background:var(--_tooltip-background);color:var(--_tooltip-color);border-radius:var(--_tooltip-shape);border-width:var(--_tooltip-border-width);border-style:var(--_tooltip-border-style);border-color:var(--_tooltip-border-color);padding-block:var(--_tooltip-padding-block);padding-inline:var(--_tooltip-padding-inline);box-shadow:var(--_tooltip-elevation);width:var(--_tooltip-width);max-width:var(--_tooltip-max-width);pointer-events:none;text-align:var(--_tooltip-content-align);line-height:normal;white-space:normal;animation-duration:var(--_tooltip-animation-duration);animation-timing-function:var(--_tooltip-animation-timing);animation-name:slidein;animation-fill-mode:forwards}:host(:not([open])) .forge-tooltip{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:fixed;width:1px;outline:0;-webkit-appearance:none;-moz-appearance:none}.arrow{position:absolute;contain:strict;background-color:inherit;height:var(--_tooltip-arrow-height);width:var(--_tooltip-arrow-width);box-shadow:inherit;border:inherit;border-end-start-radius:var(--_tooltip-arrow-shape);rotate:var(--_tooltip-arrow-rotation);clip-path:var(--_tooltip-arrow-clip-path);--_tooltip-arrow-translate-x:0;--_tooltip-arrow-translate-y:0;--_tooltip-arrow-clip-path:polygon(0 0, 0 100%, 100% 100%)}.forge-tooltip{--_tooltip-slidein-x:0;--_tooltip-slidein-y:0}forge-overlay[open][position-placement^=top] .forge-tooltip{--_tooltip-slidein-y:var(--forge-tooltip-slidein-y, var(--_tooltip-animation-offset))}forge-overlay[open][position-placement^=top] .arrow{--_tooltip-arrow-rotation:var(--_tooltip-arrow-top-rotation);margin-block-end:var(--_tooltip-border-width)}forge-overlay[open][position-placement^=right] .forge-tooltip{--_tooltip-slidein-x:var(--forge-tooltip-slidein-x, calc(var(--_tooltip-animation-offset) * -1))}forge-overlay[open][position-placement^=right] .arrow{--_tooltip-arrow-rotation:var(--_tooltip-arrow-right-rotation);margin-inline-start:var(--_tooltip-border-width)}forge-overlay[open][position-placement^=bottom] .forge-tooltip{--_tooltip-slidein-y:var(--forge-tooltip-slidein-y, calc(var(--_tooltip-animation-offset) * -1))}forge-overlay[open][position-placement^=bottom] .arrow{--_tooltip-arrow-rotation:var(--_tooltip-arrow-bottom-rotation);margin-block-start:var(--_tooltip-border-width)}forge-overlay[open][position-placement^=left] .forge-tooltip{--_tooltip-slidein-x:var(--forge-tooltip-slidein-x, var(--_tooltip-animation-offset))}forge-overlay[open][position-placement^=left] .arrow{--_tooltip-arrow-rotation:var(--_tooltip-arrow-left-rotation);margin-inline-end:var(--_tooltip-border-width)}',p1=class extends L1(H1(M)){static get observedAttributes(){return Object.values(o1.observedAttributes)}constructor(){super(),H(this,Hg,Lg),this._core=new Kn(new Gn(this))}[T0](t){return!0}connectedCallback(){this._core.initialize()}disconnectedCallback(){this._core.destroy()}attributeChangedCallback(t,e,a){switch(t){case o1.observedAttributes.ID:this._core.syncTooltipAria();break;case o1.observedAttributes.OPEN:this.open=p(a);break;case o1.observedAttributes.TYPE:this.type=a!=null&&a.trim()?a:o1.defaults.TYPE;break;case o1.observedAttributes.TARGET:case o1.observedAttributes.ANCHOR:this.anchor=a;break;case o1.observedAttributes.DELAY:this.delay=W(a);break;case o1.observedAttributes.POSITION:case o1.observedAttributes.PLACEMENT:this.placement=a;break;case o1.observedAttributes.OFFSET:this.offset=W(a);break;case o1.observedAttributes.FLIP:this.flip=a;break;case o1.observedAttributes.BOUNDARY:this.boundary=a;break;case o1.observedAttributes.FALLBACK_PLACEMENTS:this.fallbackPlacements=a!=null&&a.trim()?da(a):null;break;case o1.observedAttributes.TRIGGER_TYPE:this.triggerType=a!=null&&a.trim()?da(a):o1.defaults.TRIGGER_TYPES;break}}};s([v()],p1.prototype,"open",2),s([v()],p1.prototype,"type",2),s([v()],p1.prototype,"anchor",2),s([v()],p1.prototype,"anchorElement",2),s([v({name:"anchor"})],p1.prototype,"target",2),s([v()],p1.prototype,"placement",2),s([v({name:"placement"})],p1.prototype,"position",2),s([v()],p1.prototype,"delay",2),s([v()],p1.prototype,"offset",2),s([v()],p1.prototype,"flip",2),s([v()],p1.prototype,"boundary",2),s([v()],p1.prototype,"boundaryElement",2),s([v()],p1.prototype,"fallbackPlacements",2),s([v()],p1.prototype,"triggerType",2),p1=s([y({name:o1.elementName,dependencies:[d2]})],p1);function ah(){x(p1)}var Ig='<template><forge-icon-button><forge-icon name="menu"></forge-icon></forge-icon-button><forge-tooltip type="label" placement="bottom">Menu</forge-tooltip></template>',io=class extends M{constructor(){super();this._iconName=Qr.name;q.define(Qr)}static get observedAttributes(){return Object.values(to.observedAttributes)}initializedCallback(){V0(this,Ig)}connectedCallback(){this._iconButtonElement=Ft(this,J.elementName),this._iconElement=this._iconButtonElement.querySelector(h1.elementName),this._iconElement.name!==this._iconName&&(this._iconElement.name=this._iconName);let e=this._iconButtonElement.getAttribute("aria-labelledby");this._forwardObserver=S0(this,to.forwardedAttributes,(a,o)=>{a==="aria-labelledby"&&!o&&(o=e),K(this._iconButtonElement,!!o,a,o!=null?o:void 0)})}disconnectedCallback(){var e;(e=this._forwardObserver)==null||e.disconnect(),this._forwardObserver=void 0}attributeChangedCallback(e,a,o){switch(e){case to.attributes.ICON:this.icon=o;break}}get icon(){return this._iconName}set icon(e){this._iconName!==e&&(this._iconName=e!=null?e:Qr.name,this._iconElement&&(this._iconElement.name=this._iconName),this.setAttribute(to.attributes.ICON,this._iconName))}};io=s([y({name:to.elementName,dependencies:[n1,p1]})],io);function oh(){x(io)}var Vg=`${b}badge`,Eg={DOT:"dot",HIDE:"hide",THEME:"theme",STRONG:"strong"},Cg={OPEN:"open"},zg={ROOT:".forge-badge"},Ag={THEME:"default"},j2={elementName:Vg,attributes:Eg,selectors:zg,classes:Cg,defaults:Ag};var Bg='<template><div class="forge-badge" part="root"><slot name="start"></slot><div class="content" part="content"><slot></slot></div><slot name="end"></slot></div></template>',Tg=':host{display:flex;box-sizing:border-box}:host([hidden]){display:none}.forge-badge{--_badge-background:var(--forge-badge-background, var(--forge-theme-secondary, #ffc107));--_badge-color:var(--forge-badge-color, var(--forge-theme-on-secondary, #000000));--_badge-shape:var(--forge-badge-shape, calc(var(--forge-shape-full, 9999px) * var(--forge-shape-factor, 1)));--_badge-height:var(--forge-badge-height, 20px);--_badge-min-width:var(--forge-badge-min-width, 0);--_badge-max-width:var(--forge-badge-max-width, auto);--_badge-padding-inline:var(--forge-badge-padding-inline, var(--forge-spacing-xsmall, 8px));--_badge-padding-block:var(--forge-badge-padding-block, 0);--_badge-border-width:var(--forge-badge-border-width, var(--forge-border-thin, 1px));--_badge-border-style:var(--forge-badge-border-style, none);--_badge-border-color:var(--forge-badge-border-color, var(--_badge-color));--_badge-gap:var(--forge-badge-gap, var(--forge-spacing-xsmall, 8px));--_badge-font-weight:var(--forge-badge-font-weight, bold);--_badge-dot-size:var(--forge-badge-dot-size, 8px);--_badge-dot-height:var(--forge-badge-dot-height, var(--_badge-dot-size));--_badge-dot-width:var(--forge-badge-dot-width, var(--_badge-dot-size));--_badge-dot-padding:var(--forge-badge-dot-padding, 0);--_badge-transition-duration:var(--forge-badge-transition-duration, var(--forge-animation-duration-short4, 200ms));--_badge-transition-easing:var(--forge-badge-transition-easing, var(--forge-animation-easing-decelerate, cubic-bezier(0, 0, 0, 1)))}.forge-badge{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-label1-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-label1-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-label-font-size-scale, .75)));font-weight:var(--forge-typography-label1-font-weight,400);line-height:var(--forge-typography-label1-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-label-line-height-scale, 1.25)));letter-spacing:var(--forge-typography-label1-letter-spacing, .0357142857em);text-transform:var(--forge-typography-label1-text-transform,inherit);text-decoration:var(--forge-typography-label1-text-decoration,inherit);background:var(--_badge-background);color:var(--_badge-color);height:var(--_badge-height);min-width:var(--_badge-min-width);max-width:var(--_badge-max-width);border-width:var(--_badge-border-width);border-style:var(--_badge-border-style);border-color:var(--_badge-border-color);display:inline-flex;align-items:center;gap:var(--_badge-gap);border-radius:var(--_badge-shape);padding-inline:var(--_badge-padding-inline);padding-block:var(--_badge-padding-block);overflow:hidden;box-sizing:border-box;pointer-events:none;transition:transform var(--_badge-transition-duration) var(--_badge-transition-easing);font-weight:var(--_badge-font-weight);text-overflow:ellipsis;white-space:nowrap}.forge-badge .content{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}::slotted(:is([slot=start],[slot=end])){font-size:inherit}:host([hide]) .forge-badge{transform:scale(0)}:host([dot]) .forge-badge{--_badge-height:var(--_badge-dot-height);--_badge-min-width:var(--forge-badge-min-width, auto);padding:var(--_badge-dot-padding);width:var(--_badge-dot-width)}:host([dot]) .forge-badge>slot{display:none}:host([theme=primary]) .forge-badge{--_badge-background:var(--forge-badge-background, var(--forge-theme-primary-container, #d1d5ed));--_badge-color:var(--forge-badge-color, var(--forge-theme-on-primary-container, #222c62))}:host([strong][theme=primary]) .forge-badge{--_badge-background:var(--forge-badge-background, var(--forge-theme-primary, #3f51b5));--_badge-color:var(--forge-badge-color, var(--forge-theme-on-primary, #ffffff))}:host([theme=secondary]) .forge-badge{--_badge-background:var(--forge-badge-background, var(--forge-theme-secondary-container, #fff0c3));--_badge-color:var(--forge-badge-color, var(--forge-theme-on-secondary-container, #8a6804))}:host([strong][theme=secondary]) .forge-badge{--_badge-background:var(--forge-badge-background, var(--forge-theme-secondary, #ffc107));--_badge-color:var(--forge-badge-color, var(--forge-theme-on-secondary, #000000))}:host([theme=tertiary]) .forge-badge{--_badge-background:var(--forge-badge-background, var(--forge-theme-tertiary-container, #d0d7ff));--_badge-color:var(--forge-badge-color, var(--forge-theme-on-tertiary-container, #213189))}:host([strong][theme=tertiary]) .forge-badge{--_badge-background:var(--forge-badge-background, var(--forge-theme-tertiary, #3d5afe));--_badge-color:var(--forge-badge-color, var(--forge-theme-on-tertiary, #ffffff))}:host([theme=success]) .forge-badge{--_badge-background:var(--forge-badge-background, var(--forge-theme-success-container, #cde0ce));--_badge-color:var(--forge-badge-color, var(--forge-theme-on-success-container, #19441b))}:host([strong][theme=success]) .forge-badge{--_badge-background:var(--forge-badge-background, var(--forge-theme-success, #2e7d32));--_badge-color:var(--forge-badge-color, var(--forge-theme-on-success, #ffffff))}:host([theme=warning]) .forge-badge{--_badge-background:var(--forge-badge-background, var(--forge-theme-warning-container, #f4d3c2));--_badge-color:var(--forge-badge-color, var(--forge-theme-on-warning-container, #712700))}:host([strong][theme=warning]) .forge-badge{--_badge-background:var(--forge-badge-background, var(--forge-theme-warning, #d14900));--_badge-color:var(--forge-badge-color, var(--forge-theme-on-warning, #ffffff))}:host(:not([strong]):is([theme=error],[theme=danger])) .forge-badge{--_badge-background:var(--forge-badge-background, var(--forge-theme-error-container-low, #f6e0e4));--_badge-color:var(--forge-badge-color, var(--forge-theme-error, #b00020))}:host([strong]:is([theme=error],[theme=danger])) .forge-badge{--_badge-background:var(--forge-badge-background, var(--forge-theme-error, #b00020));--_badge-color:var(--forge-badge-color, var(--forge-theme-on-error, #ffffff))}:host(:not([strong]):is([theme=info],[theme=info-primary])) .forge-badge{--_badge-background:var(--forge-badge-background, var(--forge-theme-info-container, #c7daf0));--_badge-color:var(--forge-badge-color, var(--forge-theme-on-info-container, #0b3768))}:host([strong]:is([theme=info],[theme=info-primary])) .forge-badge{--_badge-background:var(--forge-badge-background, var(--forge-theme-info, #1565c0));--_badge-color:var(--forge-badge-color, var(--forge-theme-on-info, #ffffff))}:host(:not([strong])[theme=info-secondary]) .forge-badge{--_badge-background:var(--forge-badge-background, var(--forge-theme-surface-container-low, #ebebeb));--_badge-color:var(--forge-badge-color, var(--forge-theme-on-surface-container-low, #000000))}:host([strong][theme=info-secondary]) .forge-badge{--_badge-background:var(--forge-badge-background, var(--forge-theme-surface-inverse, #333333));--_badge-color:var(--forge-badge-color, var(--forge-theme-on-surface-inverse, #ffffff))}',G0=class extends M{constructor(){super(),H(this,Bg,Tg)}get dot(){return this.hasAttribute(j2.attributes.DOT)}set dot(t){this.toggleAttribute(j2.attributes.DOT,t)}get theme(){var t;return(t=this.getAttribute(j2.attributes.THEME))!=null?t:j2.defaults.THEME}set theme(t){this.setAttribute(j2.attributes.THEME,t)}get strong(){return this.hasAttribute(j2.attributes.STRONG)}set strong(t){this.toggleAttribute(j2.attributes.STRONG,t)}get hide(){return this.hasAttribute(j2.attributes.HIDE)}set hide(t){this.hasAttribute(j2.attributes.HIDE)!==t&&this.toggleAttribute(j2.attributes.HIDE,t)}};G0=s([y({name:j2.elementName})],G0);var rh=class extends X1{constructor(t){super(t)}_build(){return document.createElement(j2.elementName)}};function nh(){x(G0)}var Sg=`${b}app-bar-notification-button`,kg={COUNT:"count",DOT:"dot",THEME:"theme",SHOW_BADGE:"show-badge",ICON:"icon"},Og=["aria-label","aria-labelledby"],m2={elementName:Sg,attributes:kg,forwardedAttributes:Og};var qn=class extends I{constructor(t){super(t)}setIcon(t){this._iconElement.name=t}initialize(){this._iconButtonElement=Ft(this._component,J.elementName),this._badgeElement=Ft(this._component,j2.elementName),this._iconElement=Ft(this._component,h1.elementName);let t=this._iconButtonElement.getAttribute("aria-labelledby");this._forwardObserver=S0(this._component,m2.forwardedAttributes,(e,a)=>{e==="aria-labelledby"&&!a&&(a=t),K(this._iconButtonElement,!!a,e,a!=null?a:void 0)})}destroy(){var t;(t=this._forwardObserver)==null||t.disconnect(),this._forwardObserver=void 0}setCount(t){this._badgeElement.textContent=t!=null?String(t):""}setBadgeType(t){this._badgeElement.dot=t}setBadgeTheme(t){K(this._badgeElement,!!t,j2.attributes.THEME,t)}setBadgeVisible(t){this._badgeElement.hide=!t}};var $n=class{constructor(t){this._adapter=t;this._count=0;this._dot=!1;this._showBadge=!1;this._isInitialized=!1;this._icon="notifications"}initialize(){this._adapter.initialize(),this._adapter.setBadgeType(this._dot),this._adapter.setCount(this._dot?null:this._count),this._adapter.setBadgeTheme(this._theme),this._adapter.setBadgeVisible(this._showBadge),this._adapter.setIcon(this._icon),this._isInitialized=!0}destroy(){this._adapter.destroy(),this._isInitialized=!1}get icon(){return this._icon}set icon(t){this._icon!==t&&(this._icon=t,this._isInitialized&&this._adapter.setIcon(this._icon),this._adapter.setHostAttribute(m2.attributes.ICON,this._icon))}get count(){return this._count}set count(t){this._count!==t&&(this._count=t,this._isInitialized&&(this._dot?this._adapter.setCount(null):this._adapter.setCount(this._count),typeof this._count=="string"?this._adapter.setHostAttribute(m2.attributes.COUNT,this._count):t==null&&this._adapter.removeHostAttribute(m2.attributes.COUNT)),this._adapter.setHostAttribute(m2.attributes.COUNT,this._count))}get dot(){return this._dot}set dot(t){t=!!t,this._dot!==t&&(this._dot=t,this._isInitialized&&(this._adapter.setBadgeType(this._dot),this._dot?this._adapter.setCount(null):this._adapter.setCount(this._count)),this._adapter.toggleHostAttribute(m2.attributes.DOT,this._dot))}get theme(){return this._theme}set theme(t){this._theme!==t&&(this._theme=t,this._isInitialized&&(this._adapter.setBadgeTheme(this._theme),this._adapter.setHostAttribute(m2.attributes.THEME,this._theme)))}get showBadge(){return this._showBadge}set showBadge(t){t=!!t,this._showBadge!==t&&(this._showBadge=t,this._isInitialized&&this._adapter.setBadgeVisible(this._showBadge),this._adapter.toggleHostAttribute(m2.attributes.SHOW_BADGE,this._showBadge))}};var Dg='<template><forge-icon-button><forge-icon></forge-icon><forge-badge slot="badge"></forge-badge></forge-icon-button><forge-tooltip type="label" placement="bottom">Notifications</forge-tooltip></template>',Le=class extends M{static get observedAttributes(){return[m2.attributes.COUNT,m2.attributes.DOT,m2.attributes.THEME,m2.attributes.SHOW_BADGE,m2.attributes.ICON]}constructor(){super(),q.define(i3),this._core=new $n(new qn(this))}initializedCallback(){V0(this,Dg)}connectedCallback(){this._core.initialize()}disconnectedCallback(){this._core.destroy()}attributeChangedCallback(t,e,a){switch(t){case m2.attributes.COUNT:this.count=a;break;case m2.attributes.DOT:this.dot=p(a);break;case m2.attributes.THEME:this.theme=a;break;case m2.attributes.ICON:this.icon=a;break;case m2.attributes.SHOW_BADGE:this.showBadge=p(a);break}}};s([v()],Le.prototype,"count",2),s([v()],Le.prototype,"dot",2),s([v()],Le.prototype,"theme",2),s([v()],Le.prototype,"icon",2),s([v()],Le.prototype,"showBadge",2),Le=s([y({name:m2.elementName,dependencies:[n1,p1,G0,X]})],Le);function ih(){x(Le)}var sh=`${b}list-item`,lh={SELECTED:"selected",ACTIVE:"active",VALUE:"value",DENSE:"dense",INDENTED:"indented",TWO_LINE:"two-line",THREE_LINE:"three-line",WRAP:"wrap",NONINTERACTIVE:"noninteractive",FOCUS_PROPAGATION:"focus-propagation"},Pg=w({},lh),vh={ROOT:"forge-list-item",DISABLED:"disabled",INTERACTIVE:"interactive",INTERNAL_ANCHOR:"anchor"},hh={INTERNAL_ANCHOR:"forge-list-item-anchor"},Ng={ROOT:`.${vh.ROOT}`,FORM_CONTROL_LIKE:":is([forge-list-item-interactive],forge-radio,forge-checkbox,forge-switch,input[type=checkbox],input[type=radio]):is([slot=start],[slot=end],[slot=leading],[slot=trailing]):not([forge-ignore])",BUTTON_LIKE:":is(button,[role=button][tabindex]:not([tabindex=-1]),[forge-list-item-interactive]):not([forge-ignore])",IGNORE:"[forge-ignore],[data-forge-ignore]",INTERNAL_ANCHOR:`#${hh.INTERNAL_ANCHOR}`,SLOTTED_START_END:":is([slot=start],[slot=end],[slot=leading],[slot=trailing])"},Rg={SELECT:`${sh}-select`},Fg={FOCUS_PROPAGATION:"allow"},l1={elementName:sh,observedAttributes:lh,attributes:Pg,classes:vh,selectors:Ng,ids:hh,events:Rg,defaults:Fg};var ch=`${b}list`,ph={DENSE:"dense",SELECTED_VALUE:"selected-value",INDENTED:"indented",TWO_LINE:"two-line",THREE_LINE:"three-line",WRAP:"wrap",NONINTERACTIVE:"noninteractive"},Ug=w({},ph),Wg={SCOPE_TEST:`${ch}-item-scope-test`},I1={elementName:ch,observedAttributes:ph,attributes:Ug,events:Wg};var Xn=class extends I{constructor(t){super(t)}setSelectedListItems(t){let e=this._getOwnListItems();if(e.length){let a=Array.isArray(t)?t:[t];for(let o of e)o.selected=a.some(n=>Nt(n,o.value))}}setListItemsProperty(t,e){this._getOwnListItems().forEach(a=>a[t]=e)}_getOwnListItems(){let t=Be(this._component,l1.elementName),e=[],a=o=>{let n=o.composedPath();n.slice(0,n.indexOf(this._component)).some(l=>l.localName===I1.elementName.toLowerCase())||e.push(o.target)};return this._component.addEventListener(I1.events.SCOPE_TEST,a),t.forEach(o=>o.dispatchEvent(new CustomEvent(I1.events.SCOPE_TEST,{bubbles:!0,composed:!0}))),this._component.removeEventListener(I1.events.SCOPE_TEST,a),e}};var jn=class{constructor(t){this._adapter=t;this._dense=!1;this._indented=!1;this._twoLine=!1;this._threeLine=!1;this._wrap=!1;this._noninteractive=!1}initialize(){this._selectedValue!==void 0&&this._selectedValue!==null&&this._adapter.setSelectedListItems(this._selectedValue)}get dense(){return this._dense}set dense(t){this._dense!==t&&(this._dense=t,this._adapter.setListItemsProperty("dense",this._dense),this._adapter.toggleHostAttribute(I1.attributes.DENSE,this._dense))}get indented(){return this._indented}set indented(t){this._indented!==t&&(this._indented=t,this._adapter.setListItemsProperty("indented",this._indented),this._adapter.toggleHostAttribute(I1.attributes.INDENTED,this._indented))}get selectedValue(){return this._selectedValue}set selectedValue(t){this._selectedValue!==t&&(this._selectedValue=t,this._adapter.setSelectedListItems(this._selectedValue))}get twoLine(){return this._twoLine}set twoLine(t){this._twoLine!==t&&(this._twoLine=t,this._adapter.setListItemsProperty("twoLine",this._twoLine),this._adapter.toggleHostAttribute(I1.attributes.TWO_LINE,this._twoLine))}get threeLine(){return this._threeLine}set threeLine(t){this._threeLine!==t&&(this._threeLine=t,this._adapter.setListItemsProperty("threeLine",this._threeLine),this._adapter.toggleHostAttribute(I1.attributes.THREE_LINE,this._threeLine))}get wrap(){return this._wrap}set wrap(t){this._wrap!==t&&(this._wrap=t,this._adapter.setListItemsProperty("wrap",this._wrap),this._adapter.toggleHostAttribute(I1.attributes.WRAP,this._wrap))}get noninteractive(){return this._noninteractive}set noninteractive(t){this._noninteractive!==t&&(this._noninteractive=t,this._adapter.setListItemsProperty("noninteractive",this._noninteractive),this._adapter.toggleHostAttribute(I1.attributes.NONINTERACTIVE,this._noninteractive))}};var Zn=class extends I{constructor(e){super(e);this._slotListener=this._onSlotChange.bind(this);this._rootElement=g(e,l1.selectors.ROOT),this._defaultSlotElement=g(e,"slot:not([name])"),this._startSlotElement=g(e,"slot[name=start]"),this._endSlotElement=g(e,"slot[name=end]")}get interactiveElement(){return this._interactiveElement}initialize(){let e=this._getParentList();e&&this._inheritParentListProps(e),this._component[P]({role:"listitem"},{setAttribute:!this._component.hasAttribute("role")})}destroy(){this._rootElement.removeEventListener("slotchange",this._slotListener),this._tryCleanupObservers()}initializeInteractiveObserver(e){this._interactiveStateChangeListener=e,this._rootElement.addEventListener("slotchange",this._slotListener),this._initializeInteractiveElement()}destroyInteractiveObserver(){var e;this._rootElement.removeEventListener("slotchange",this._slotListener),this._tryCleanupObservers(),(e=this._interactiveStateChangeListener)==null||e.call(this,!1),this._interactiveStateChangeListener=void 0}addRootListener(e,a,o){this._rootElement.addEventListener(e,a,o)}removeRootListener(e,a,o){this._rootElement.removeEventListener(e,a,o)}setActive(e){this._focusIndicatorElement&&(this._focusIndicatorElement.active=e)}trySelect(e){let a=this._getParentList();return(a==null?void 0:a.selectedValue)===void 0?null:(Array.isArray(a.selectedValue)?a.selectedValue:[a.selectedValue]).some(i=>Nt(i,e))}animateStateLayer(){var e;(e=this._stateLayerElement)==null||e.playAnimation()}tempDeactivateFocusIndicator(){this._focusIndicatorElement&&(this._focusIndicatorElement.active=!1)}_onSlotChange(e){["","start","end","leading","trailing"].includes(e.target.name)&&this._initializeInteractiveElement()}_initializeInteractiveElement(){this._tryCleanupObservers();let e=this._startSlotElement.assignedElements({flatten:!0}),a=this._endSlotElement.assignedElements({flatten:!0}),n=[...e,...a].find(d=>d.matches(l1.selectors.FORM_CONTROL_LIKE));if(n){this._attachInteractiveFormControl(n);return}let i=this._defaultSlotElement.assignedElements({flatten:!0}),l=i.find(d=>d.tagName==="A"),h=i.find(d=>d.matches(l1.selectors.BUTTON_LIKE)),c=g(this._component,l1.selectors.INTERNAL_ANCHOR);c&&c.remove(),this._interactiveElement=l!=null?l:h,this._setInteractive(!!this._interactiveElement),l?this._attachInteractiveAnchor(l):h&&this._attachInteractiveButtonLike(h)}_attachInteractiveFormControl(e){this._interactiveElement=e,this._setInteractive(!!this._interactiveElement),this._focusIndicatorElement&&(this._focusIndicatorElement.targetElement=e),this._syncDisabled(e),this._disabledAttrObserver=new MutationObserver(()=>this._syncDisabled(e)),this._disabledAttrObserver.observe(e,{attributes:!0,attributeFilter:["disabled","aria-disabled"]})}_attachInteractiveAnchor(e){var o;let a=(o=g(this._component,l1.selectors.INTERNAL_ANCHOR))!=null?o:document.createElement("a");a.href=e.href,a.tabIndex=-1,a.id=l1.ids.INTERNAL_ANCHOR,a.classList.add(l1.classes.INTERNAL_ANCHOR),a.setAttribute("aria-hidden","true"),this._rootElement.appendChild(a),this._focusIndicatorElement&&(this._focusIndicatorElement.targetElement=e),this._anchorAttrObserver=new MutationObserver(()=>a.href=e.href),this._anchorAttrObserver.observe(e,{attributes:!0,attributeFilter:["href"]})}_attachInteractiveButtonLike(e){this._focusIndicatorElement&&(this._focusIndicatorElement.targetElement=e),this._syncDisabled(e),this._disabledAttrObserver=new MutationObserver(()=>this._syncDisabled(e)),this._disabledAttrObserver.observe(e,{attributes:!0,attributeFilter:["disabled","aria-disabled"]})}_setInteractive(e){var a,o,n;this._rootElement.classList.toggle(l1.classes.INTERACTIVE,e),(a=this._interactiveStateChangeListener)==null||a.call(this,e),e?(this._focusIndicatorElement||(this._focusIndicatorElement=document.createElement("forge-focus-indicator"),this._focusIndicatorElement.setAttribute("part","focus-indicator"),this._focusIndicatorElement.inward=!0,this._rootElement.appendChild(this._focusIndicatorElement)),this._stateLayerElement||(this._stateLayerElement=document.createElement("forge-state-layer"),this._stateLayerElement.targetElement=this._rootElement,this._stateLayerElement.setAttribute("exportparts","surface:state-layer"),this._rootElement.appendChild(this._stateLayerElement))):((o=this._focusIndicatorElement)==null||o.remove(),this._focusIndicatorElement=void 0,(n=this._stateLayerElement)==null||n.remove(),this._stateLayerElement=void 0)}_syncDisabled(e){let a=e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true";this._rootElement.classList.toggle(l1.classes.DISABLED,a),this._setInteractive(!a)}_getParentList(){return this._component.closest(I1.elementName)}_inheritParentListProps(e){e.hasAttribute(I1.attributes.NONINTERACTIVE)&&(this._component.noninteractive=!0),e.hasAttribute(I1.attributes.DENSE)&&(this._component.dense=!0),e.hasAttribute(I1.attributes.INDENTED)&&(this._component.indented=!0),e.hasAttribute(I1.attributes.TWO_LINE)&&(this._component.twoLine=!0),e.hasAttribute(I1.attributes.THREE_LINE)&&(this._component.threeLine=!0)}_tryCleanupObservers(){var e,a;(e=this._disabledAttrObserver)==null||e.disconnect(),this._disabledAttrObserver=void 0,(a=this._anchorAttrObserver)==null||a.disconnect(),this._anchorAttrObserver=void 0}};var Qn=class{constructor(t){this._adapter=t;this._selected=!1;this._active=!1;this._dense=!1;this._indented=!1;this._twoLine=!1;this._threeLine=!1;this._wrap=!1;this._noninteractive=!1;this._focusPropagation=l1.defaults.FOCUS_PROPAGATION;this._interactiveStateChangeListener=this._onInteractiveStateChange.bind(this);this._mousedownListener=this._onMousedown.bind(this);this._clickListener=this._onClick.bind(this);this._keydownListener=this._onKeydown.bind(this)}initialize(){this._adapter.initialize(),this._noninteractive?this._adapter.destroyInteractiveObserver():this._adapter.initializeInteractiveObserver(this._interactiveStateChangeListener)}destroy(){this._adapter.destroy()}_onMousedown(t){let a=t.composedPath().filter(o=>o.nodeType===Node.ELEMENT_NODE).some(o=>o===this._adapter.interactiveElement);(this._focusPropagation==="off"||!a)&&t.preventDefault()}_onKeydown(t){var o,n;let a=t.composedPath().filter(i=>i.nodeType===Node.ELEMENT_NODE).some(i=>i.matches(l1.selectors.SLOTTED_START_END));if((t.key==="Enter"||t.key===" ")&&t.stopPropagation(),a){(t.key==="Enter"||t.key===" ")&&this._adapter.animateStateLayer(),t.key==="Enter"&&((o=this._adapter.interactiveElement)==null||o.click());return}t.key===" "&&(t.preventDefault(),(n=this._adapter.interactiveElement)==null||n.click())}_onClick(t){var c,d,u;let e=t.composedPath().filter(_=>_.nodeType===Node.ELEMENT_NODE);if(e.some(_=>_.matches(l1.selectors.IGNORE)))return;let o=_=>_.matches("label[for]");if(e.filter(o).some(_=>{var L;return _.htmlFor===((L=this._adapter.interactiveElement)==null?void 0:L.id)})){t.stopPropagation();return}let i=_=>_.tagName==="A"&&_.id===l1.ids.INTERNAL_ANCHOR;if(e.some(i)){let _=t.ctrlKey||t.metaKey,L=(c=this._adapter.interactiveElement)==null?void 0:c.hasAttribute("target");t.preventDefault(),t.stopImmediatePropagation();let C=_&&!L;C&&((d=this._adapter.interactiveElement)==null||d.setAttribute("target","_blank")),this._clickInteractiveElement(),C&&((u=this._adapter.interactiveElement)==null||u.removeAttribute("target"));return}if(!e.some(_=>_===this._adapter.interactiveElement)){t.stopImmediatePropagation(),this._clickInteractiveElement();return}this._dispatchSelectEvent()}_clickInteractiveElement(){var t,e;this._focusPropagation==="allow"&&((t=this._adapter.interactiveElement)==null||t.focus()),this._adapter.tempDeactivateFocusIndicator(),(e=this._adapter.interactiveElement)==null||e.click()}_onInteractiveStateChange(t){t&&!this._noninteractive?(this._adapter.addRootListener("mousedown",this._mousedownListener,{capture:!0}),this._adapter.addHostListener("click",this._clickListener,{capture:!0}),this._adapter.addHostListener("keydown",this._keydownListener)):(this._adapter.removeRootListener("mousedown",this._mousedownListener,{capture:!0}),this._adapter.removeHostListener("click",this._clickListener,{capture:!0}),this._adapter.removeHostListener("keydown",this._keydownListener))}_dispatchSelectEvent(){let t={value:this._value},e=new CustomEvent(l1.events.SELECT,{bubbles:!0,detail:t});this._adapter.dispatchHostEvent(e)}get selected(){return this._selected}set selected(t){t=!!t,this._selected!==t&&(this._selected=t,this._adapter.toggleHostAttribute(l1.attributes.SELECTED,this._selected))}get active(){return this._active}set active(t){t=!!t,this._active!==t&&(this._active=t,this._adapter.setActive(this._active),this._adapter.toggleHostAttribute(l1.attributes.ACTIVE,this._active))}get value(){return this._value}set value(t){this._value=t;let e=this._adapter.trySelect(this._value);e!==null&&e!==this._selected&&(this.selected=e)}get dense(){return this._dense}set dense(t){t=!!t,this._dense!==t&&(this._dense=t,this._adapter.toggleHostAttribute(l1.attributes.DENSE,this._dense))}get indented(){return this._indented}set indented(t){t=!!t,this._indented!==t&&(this._indented=t,this._adapter.toggleHostAttribute(l1.attributes.INDENTED,this._indented))}get twoLine(){return this._twoLine}set twoLine(t){t=!!t,this._twoLine!==t&&(this._twoLine=t,this._adapter.toggleHostAttribute(l1.attributes.TWO_LINE,this._twoLine))}get threeLine(){return this._threeLine}set threeLine(t){t=!!t,this._threeLine!==t&&(this._threeLine=t,this._adapter.toggleHostAttribute(l1.attributes.THREE_LINE,this._threeLine))}get wrap(){return this._wrap}set wrap(t){t=!!t,this._wrap!==t&&(this._wrap=t,this._adapter.toggleHostAttribute(l1.attributes.WRAP,this._wrap))}get noninteractive(){return this._noninteractive}set noninteractive(t){t=!!t,this._noninteractive!==t&&(this._noninteractive=t,this._adapter.isConnected&&(this._noninteractive?this._adapter.destroyInteractiveObserver():this._adapter.initializeInteractiveObserver(this._interactiveStateChangeListener)),this._adapter.toggleHostAttribute(l1.attributes.NONINTERACTIVE,this._noninteractive))}get focusPropagation(){return this._focusPropagation}set focusPropagation(t){["allow","off"].includes(t)||(t=l1.defaults.FOCUS_PROPAGATION),this._focusPropagation!==t&&(this._focusPropagation=t,this._adapter.toggleHostAttribute(l1.attributes.FOCUS_PROPAGATION,this._focusPropagation!==l1.defaults.FOCUS_PROPAGATION,this._focusPropagation))}};var Gg='<template><div class="forge-list-item" part="root"><slot name="start"><slot name="leading"></slot></slot><div class="text-container" part="text-container"><slot></slot><slot name="secondary-text"></slot><slot name="tertiary-text"></slot></div><slot name="end"><slot name="trailing"></slot></slot></div></template>',Yg=':host{--_list-item-indent:var(--forge-list-item-indent, var(--forge-spacing-xxlarge, 48px));--_list-item-dense-indent:var(--forge-list-item-dense-indent, var(--forge-spacing-xxlarge, 48px));--_list-item-disabled-cursor:var(--forge-list-item-disabled-cursor, not-allowed)}:host{display:block;outline:0}:host([hidden]){display:none}.forge-list-item{--_list-item-background:var(--forge-list-item-background, transparent);--_list-item-shape:var(--forge-list-item-shape, 0);--_list-item-padding:var(--forge-list-item-padding, 0 var(--forge-spacing-medium, 16px));--_list-item-margin:var(--forge-list-item-margin, 0);--_list-item-height:var(--forge-list-item-height, 48px);--_list-item-dense-height:var(--forge-list-item-dense-height, 32px);--_list-item-cursor:var(--forge-list-item-cursor, pointer);--_list-item-gap:var(--forge-list-item-gap, var(--forge-spacing-large, 24px));--_list-item-text-color:var(--forge-list-item-text-color, var(--forge-theme-text-medium, rgba(0, 0, 0, 0.6)));--_list-item-text-font-size:var(--forge-list-item-text-font-size, var(--forge-typography-body2-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-font-size-scale, 1))));--_list-item-text-font-weight:var(--forge-list-item-text-font-weight, var(--forge-typography-body2-font-weight, 400));--_list-item-text-line-height:var(--forge-list-item-text-line-height, 1.5rem);--_list-item-selected-color:var(--forge-list-item-selected-color, var(--forge-theme-primary, #3f51b5));--_list-item-selected-background:var(--forge-list-item-selected-background, var(--_list-item-selected-color));--_list-item-selected-opacity:var(--forge-list-item-selected-opacity, 0.08);--_list-item-selected-start-color:var(--forge-list-item-selected-start-color, var(--_list-item-selected-color));--_list-item-selected-end-color:var(--forge-list-item-selected-end-color, var(--_list-item-selected-color));--_list-item-selected-text-color:var(--forge-list-item-selected-text-color, var(--forge-theme-text-medium, rgba(0, 0, 0, 0.6)));--_list-item-disabled-opacity:var(--forge-list-item-disabled-opacity, 0.38);--_list-item-one-line-height:var(--forge-list-item-one-line-height, var(--_list-item-height));--_list-item-two-line-height:var(--forge-list-item-two-line-height, var(--forge-list-item-height, 72px));--_list-item-three-line-height:var(--forge-list-item-three-line-height, var(--forge-list-item-height, 88px));--_list-item-dense-one-line-height:var(--forge-list-item-dense-one-line-height, var(--_list-item-dense-height));--_list-item-dense-two-line-height:var(--forge-list-item-dense-two-line-height, var(--forge-list-item-dense-height, 56px));--_list-item-dense-three-line-height:var(--forge-list-item-dense-three-line-height, var(--forge-list-item-dense-height, 72px));--_list-item-dense-font-size:var(--forge-list-item-dense-font-size, 0.875rem);--_list-item-dense-gap:var(--forge-list-item-dense-gap, var(--forge-spacing-xsmall, 8px));--_list-item-start-selected-color:var(--forge-list-item-start-selected-color, var(--_list-item-selected-color));--_list-item-end-selected-color:var(--forge-list-item-end-selected-color, var(--_list-item-selected-color));--_list-item-wrap-padding:var(--forge-list-item-wrap-padding, var(--forge-spacing-xsmall, 8px) var(--forge-spacing-medium, 16px))}.forge-list-item{position:relative;display:flex;gap:var(--_list-item-gap);align-items:center;box-sizing:border-box;outline:0;text-decoration:none;border-radius:var(--_list-item-shape);-webkit-tap-highlight-color:transparent;background-color:var(--_list-item-background);height:var(--_list-item-height);min-height:var(--_list-item-height);padding:var(--_list-item-padding);margin:var(--_list-item-margin)}.forge-list-item.interactive{cursor:var(--_list-item-cursor)}.forge-list-item.disabled{cursor:var(--_list-item-disabled-cursor);opacity:var(--_list-item-disabled-opacity)}.forge-list-item.disabled ::slotted(button){cursor:var(--_list-item-disabled-cursor)}.anchor{position:absolute;inset:0}:host([two-line]) .forge-list-item{height:var(--_list-item-two-line-height);min-height:var(--_list-item-two-line-height)}:host([three-line]) .forge-list-item{height:var(--_list-item-three-line-height);min-height:var(--_list-item-three-line-height)}:host([dense]) .forge-list-item{--_list-item-gap:var(--_list-item-dense-gap);height:var(--_list-item-dense-one-line-height);min-height:var(--_list-item-dense-one-line-height)}:host([dense]) .text-container{font-size:var(--_list-item-dense-font-size)}:host([dense][indented]){margin-inline-start:var(--_list-item-dense-indent)}:host([dense][two-line]) .forge-list-item{height:var(--_list-item-dense-two-line-height);min-height:var(--_list-item-dense-two-line-height)}:host([dense][three-line]) .forge-list-item{height:var(--_list-item-dense-three-line-height);min-height:var(--_list-item-dense-three-line-height)}:host([selected]) .forge-list-item{color:var(--_list-item-selected-color)}:host([selected]) .forge-list-item::before{content:"";position:absolute;inset:0;border-radius:inherit;opacity:var(--_list-item-selected-opacity);background-color:var(--_list-item-selected-background);pointer-events:none}:host([selected]) .forge-list-item ::slotted([slot=end]),:host([selected]) .forge-list-item ::slotted([slot=leading]),:host([selected]) .forge-list-item ::slotted([slot=start]),:host([selected]) .forge-list-item ::slotted([slot=trailing]){color:var(--_list-item-selected-color);isolation:isolate}:host([selected]) .forge-list-item ::slotted([slot=leading]),:host([selected]) .forge-list-item ::slotted([slot=start]){color:var(--_list-item-start-selected-color)}:host([selected]) .forge-list-item ::slotted([slot=end]),:host([selected]) .forge-list-item ::slotted([slot=trailing]){color:var(--_list-item-end-selected-color)}:host([selected]) .text-container{color:var(--_list-item-selected-color)}:host([selected]) forge-state-layer{--forge-state-layer-color:var(--_list-item-selected-color)}:host([indented]){margin-inline-start:var(--_list-item-indent)}.text-container{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-body2-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));letter-spacing:var(--forge-typography-body2-letter-spacing, .015625em);text-transform:var(--forge-typography-body2-text-transform,inherit);text-decoration:var(--forge-typography-body2-text-decoration,inherit);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-sizing:border-box;isolation:isolate;font-size:var(--_list-item-text-font-size);font-weight:var(--_list-item-text-font-weight);line-height:var(--_list-item-text-line-height);flex:1;contain:layout}slot[name=secondary-text]::slotted(*),slot[name=tertiary-text]::slotted(*){-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-body1-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-body1-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-font-size-scale, .875)));font-weight:var(--forge-typography-body1-font-weight,400);line-height:var(--forge-typography-body1-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-line-height-scale, 1.125)));letter-spacing:var(--forge-typography-body1-letter-spacing, .0357142857em);text-transform:var(--forge-typography-body1-text-transform,inherit);text-decoration:var(--forge-typography-body1-text-decoration,inherit);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--_list-item-text-color);display:block}:host([selected]) slot[name=secondary-text]::slotted(*),:host([selected]) slot[name=tertiary-text]::slotted(*){color:var(--_list-item-selected-text-color)}::slotted(:is(button,[role=button][tabindex],[forge-list-item-button])){appearance:none;cursor:var(--_list-item-cursor);border:none;padding-block:0;padding-inline:0;margin:0;box-sizing:border-box;background:0 0;color:inherit;outline:0;font:inherit;user-select:auto;text-align:inherit;letter-spacing:inherit;word-spacing:inherit;display:inline}::slotted(a){outline:0;color:inherit!important;text-decoration:none!important}::slotted([slot=end]),::slotted([slot=leading]),::slotted([slot=start]),::slotted([slot=trailing]){color:var(--_list-item-text-color);display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;fill:currentColor}:host(:not([noninteractive])) ::slotted(:is(forge-checkbox,forge-radio,forge-switch):is([slot=start],[slot=end],[slot=leading],[slot=trailing]):not([forge-ignore])){--forge-focus-indicator-display:none;--forge-state-layer-display:none}:host([selected]) ::slotted([slot=leading]),:host([selected]) ::slotted([slot=start]){color:var(--_list-item-start-selected-color)}:host([selected]) ::slotted([slot=end]),:host([selected]) ::slotted([slot=trailing]){color:var(--_list-item-end-selected-color)}:host([wrap]) .forge-list-item{--_list-item-padding:var(--_list-item-wrap-padding);height:auto}:host([wrap]) .text-container{white-space:normal;overflow:visible;text-overflow:clip;line-height:normal}:host([wrap]) slot[name=secondary-text]::slotted(*),:host([wrap]) slot[name=tertiary-text]::slotted(*){white-space:normal;overflow:visible;text-overflow:clip;line-height:normal}forge-focus-indicator{z-index:1;--forge-focus-indicator-shape:calc(var(--forge-shape-medium, 4px) * var(--forge-shape-factor, 1))}forge-state-layer{border-radius:inherit}',j1=class extends H1(L1(M)){static get observedAttributes(){return Object.values(l1.observedAttributes)}constructor(){super(),H(this,Gg,Yg),this._adapter=new Zn(this),this._core=new Qn(this._adapter)}connectedCallback(){this._core.initialize()}disconnectedCallback(){this._core.destroy()}attributeChangedCallback(t,e,a){switch(t){case l1.observedAttributes.SELECTED:this.selected=p(a);break;case l1.observedAttributes.ACTIVE:this.active=p(a);break;case l1.observedAttributes.VALUE:this.value=a;break;case l1.observedAttributes.DENSE:this.dense=p(a);break;case l1.observedAttributes.INDENTED:this.indented=p(a);break;case l1.observedAttributes.TWO_LINE:this.twoLine=p(a);break;case l1.observedAttributes.THREE_LINE:this.threeLine=p(a);break;case l1.observedAttributes.WRAP:this.wrap=p(a);break;case l1.observedAttributes.NONINTERACTIVE:this.noninteractive=p(a);break;case l1.observedAttributes.FOCUS_PROPAGATION:this.focusPropagation=a;break}}};s([v()],j1.prototype,"selected",2),s([v()],j1.prototype,"active",2),s([v()],j1.prototype,"value",2),s([v()],j1.prototype,"dense",2),s([v()],j1.prototype,"indented",2),s([v()],j1.prototype,"twoLine",2),s([v()],j1.prototype,"threeLine",2),s([v()],j1.prototype,"wrap",2),s([v()],j1.prototype,"noninteractive",2),s([v()],j1.prototype,"focusPropagation",2),j1=s([y({name:l1.elementName,dependencies:[r1,Q]})],j1);function dh(){x(j1)}var Kg='<template><div class="forge-list" part="root"><div class="inner"><slot></slot></div></div></template>',qg=":host{--_list-navlist-spacing:var(--forge-list-navlist-spacing, var(--forge-spacing-xxsmall, 4px));--_list-navlist-margin:var(--forge-list-navlist-margin, var(--forge-spacing-xxsmall, 4px) var(--forge-spacing-xsmall, 8px));--_list-navlist-height:var(--forge-list-navlist-height, 40px);--_list-navlist-padding:var(--forge-list-navlist-padding, 0 var(--forge-spacing-xsmall, 8px));--_list-navlist-shape:var(--forge-list-navlist-shape, calc(var(--forge-shape-medium, 4px) * var(--forge-shape-factor, 1)));--_list-navlist-font-size:var(--forge-list-navlist-font-size, calc(var(--forge-typography-font-size, 1rem) * 0.875));--_list-navlist-font-weight:var(--forge-list-navlist-font-weight, 500)}:host{display:block}:host([hidden]){display:none}:host([navlist]){margin-block:var(--_list-navlist-spacing);--forge-list-item-height:var(--_list-navlist-height);--forge-list-item-margin:var(--_list-navlist-margin);--forge-list-item-padding:var(--_list-navlist-padding);--forge-list-item-shape:var(--_list-navlist-shape);--forge-list-item-text-font-size:var(--_list-navlist-font-size);--forge-list-item-text-font-weight:var(--_list-navlist-font-weight)}.forge-list{--_list-spacing:var(--forge-list-spacing, 0);--_list-container-color:var(--forge-list-container-color, transparent)}.forge-list{outline:0;background-color:var(--_list-container-color);margin:0;border-radius:inherit;min-width:inherit}.inner{display:grid;gap:var(--_list-spacing);min-width:0}.inner ::slotted(*){min-width:0}",h2=class extends H1(L1(M)){static get observedAttributes(){return Object.values(I1.observedAttributes)}constructor(){super(),H(this,Kg,qg),this._core=new jn(new Xn(this))}connectedCallback(){this[P]({role:"list"},{setAttribute:!this.hasAttribute("role")}),this._core.initialize()}attributeChangedCallback(t,e,a){switch(t){case I1.attributes.DENSE:this.dense=p(a);break;case I1.attributes.INDENTED:this.indented=p(a);break;case I1.attributes.SELECTED_VALUE:this.selectedValue=a;break;case I1.attributes.TWO_LINE:this.twoLine=p(a);break;case I1.attributes.THREE_LINE:this.threeLine=p(a);break;case I1.attributes.WRAP:this.wrap=p(a);break;case I1.attributes.NONINTERACTIVE:this.noninteractive=p(a);break}}};s([v()],h2.prototype,"dense",2),s([v()],h2.prototype,"indented",2),s([v()],h2.prototype,"selectedValue",2),s([v()],h2.prototype,"twoLine",2),s([v()],h2.prototype,"threeLine",2),s([v()],h2.prototype,"wrap",2),s([v()],h2.prototype,"noninteractive",2),h2=s([y({name:I1.elementName,dependencies:[j1]})],h2);function mh(){x(h2)}var $g={POPUP_CLASSES:"popup-classes",OPTION_LIMIT:"option-limit",OBSERVE_SCROLL:"observe-scroll",OBSERVE_SCROLL_THRESHOLD:"observe-scroll-threshold",SYNC_POPUP_WIDTH:"sync-popup-width",CONSTRAIN_POPUP_WIDTH:"constrain-popup-width",WRAP_OPTION_TEXT:"wrap-option-text",CHECKBOX_ELEMENT:"data-list-dropdown-checkbox",DATA_ALLOW_FOCUS:"data-list-dropdown-allow-focus"},Xg={GROUP_WRAPPER:"forge-list-dropdown__group-wrapper"},i2={attributes:$g,classes:Xg},gh={options:[],syncWidth:!1,selectedValues:[],multiple:!1};var R2=class extends M{static get observedAttributes(){return[i2.attributes.POPUP_CLASSES,i2.attributes.OPTION_LIMIT,i2.attributes.OBSERVE_SCROLL,i2.attributes.OBSERVE_SCROLL_THRESHOLD,i2.attributes.SYNC_POPUP_WIDTH,i2.attributes.CONSTRAIN_POPUP_WIDTH,i2.attributes.WRAP_OPTION_TEXT]}constructor(){super()}attributeChangedCallback(t,e,a){switch(t){case i2.attributes.POPUP_CLASSES:this.popupClasses=a;break;case i2.attributes.OPTION_LIMIT:this.optionLimit=W(a);break;case i2.attributes.OBSERVE_SCROLL:this.observeScroll=p(a);break;case i2.attributes.OBSERVE_SCROLL_THRESHOLD:this.observeScrollThreshold=W(a);break;case i2.attributes.SYNC_POPUP_WIDTH:this.syncPopupWidth=p(a);break;case i2.attributes.CONSTRAIN_POPUP_WIDTH:this.constrainPopupWidth=p(a);break;case i2.attributes.WRAP_OPTION_TEXT:this.wrapOptionText=p(a);break}}};s([v()],R2.prototype,"popupClasses",2),s([v()],R2.prototype,"popupHeaderBuilder",2),s([v()],R2.prototype,"popupFooterBuilder",2),s([v()],R2.prototype,"syncPopupWidth",2),s([v()],R2.prototype,"optionLimit",2),s([v()],R2.prototype,"observeScroll",2),s([v()],R2.prototype,"observeScrollThreshold",2),s([v()],R2.prototype,"constrainPopupWidth",2),s([v()],R2.prototype,"wrapOptionText",2);var Jn=class extends I{constructor(t){super(t),this._initializeOverlayElement()}get overlayElement(){return this._overlayElement}};var m4=`${b}popover`,wh={ARROW:"arrow",ANIMATION_TYPE:"animation-type",TRIGGER_TYPE:"trigger-type",LONGPRESS_DELAY:"longpress-delay",PERSISTENT_HOVER:"persistent-hover",HOVER_DELAY:"hover-delay",HOVER_DISMISS_DELAY:"hover-dismiss-delay",PRESET:"preset"},uh=t1(w({},wh),{OPEN:"open",HOST:"forge-popover-host",CONSTRAIN_VIEWPORT_WIDTH:"constrain-viewport-width"}),jg={ARROW:"arrow",EXITING:"exiting"},Zg={SURFACE:".forge-popover",HOST:`:is(forge-dialog,forge-popover,[${uh.HOST}])`},Qg={ARROW:"arrow"},Jg={BEFORETOGGLE:`${m4}-beforetoggle`,TOGGLE:`${m4}-toggle`},t8={TRIGGER_TYPE:"click",HOVER_DELAY:0,PRESET:"popover"},Z={elementName:m4,observedAttributes:wh,attributes:uh,classes:jg,selectors:Zg,parts:Qg,events:Jg,defaults:t8},_h=500;var ti=class extends Jn{constructor(t){super(t),this._surfaceElement=g(this._component,Z.selectors.SURFACE)}destroy(){this._surfaceElement.classList.remove(Z.classes.EXITING),this.cleanupAnchorElement()}_initializeOverlayElement(){this._overlayElement=g(this._component,B.elementName)}tryLocateAnchorElement(t){this._overlayElement.anchorElement=this._tryFindAnchorElement(t),this._updateAnchorExpandedState(this._overlayElement.open)}initializeAnchorElement(){this._updateAnchorExpandedState(this._overlayElement.open)}cleanupAnchorElement(){this._updateAnchorExpandedState(null)}addAnchorListener(t,e){var a;this._overlayElement.anchorElement instanceof zt||(a=this._overlayElement.anchorElement)==null||a.addEventListener(t,e)}removeAnchorListener(t,e){var a;this._overlayElement.anchorElement instanceof zt||(a=this._overlayElement.anchorElement)==null||a.removeEventListener(t,e)}addSurfaceListener(t,e){this._surfaceElement.addEventListener(t,e)}removeSurfaceListener(t,e){this._surfaceElement.removeEventListener(t,e)}setOverlayOpen(t){this._surfaceElement.classList.remove(Z.classes.EXITING),this._overlayElement.open=t,this._updateAnchorExpandedState(t)}async hide(){return U5()?(this._surfaceElement.classList.remove(Z.classes.EXITING),this._overlayElement.open=!1,this._updateAnchorExpandedState(!1),Promise.resolve()):(await Ko(),this._surfaceElement.checkVisibility()?new Promise(t=>{this._surfaceElement.addEventListener("animationend",()=>{this._surfaceElement.classList.remove(Z.classes.EXITING),this._overlayElement.open=!1,this._updateAnchorExpandedState(!1),t()},{once:!0}),this._surfaceElement.classList.add(Z.classes.EXITING)}):(this._overlayElement.open=!1,this._updateAnchorExpandedState(!1),Promise.resolve()))}toggleArrow(t){var e;t?(this._arrowElement||(this._arrowElement=document.createElement("div"),this._arrowElement.classList.add(Z.classes.ARROW),this._arrowElement.setAttribute("part",Z.parts.ARROW)),this._surfaceElement.appendChild(this._arrowElement),this._overlayElement.arrowElement=this._arrowElement):((e=this._arrowElement)==null||e.remove(),this._arrowElement=void 0,this._overlayElement.arrowElement=void 0)}isChildElement(t){return this._component.contains(t)}tryAutofocus(){let t=()=>{if(this._component.open&&this._overlayElement.isConnected&&!this._component.matches(":focus-within")){let e=this._component.querySelector("[autofocus]");if(e)return e.focus(),!0}return!1};t()||window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>{t()})})}hasFocus(){return this._component.matches(":focus-within")}captureFocusedElement(){return this._component.ownerDocument.activeElement}_tryFindAnchorElement(t){if(t){let a=this._component.getRootNode().querySelector(`#${t}`);if(a)return a}return this._component.previousElementSibling?this._component.previousElementSibling:null}_updateAnchorExpandedState(t){var e;this._overlayElement.anchorElement&&!(this._overlayElement.anchorElement instanceof zt)&&!((e=this.overlayElement.anchorElement)!=null&&e.hasAttribute("aria-hidden"))&&this._overlayElement.anchorElement.setAttribute("aria-expanded",String(!!t))}};var ei=class{constructor(t){this._adapter=t;this._lightDismissListener=e=>this._onOverlayLightDismiss(e)}initialize(){this.persistent||this._adapter.overlayElement.addEventListener(B.events.LIGHT_DISMISS,this._lightDismissListener)}destroy(){this._adapter.overlayElement.removeEventListener(B.events.LIGHT_DISMISS,this._lightDismissListener)}get overlayElement(){return this._adapter.overlayElement}get anchorElement(){return this._adapter.overlayElement.anchorElement}set anchorElement(t){this._adapter.overlayElement.anchorElement=t}get anchor(){return this._adapter.overlayElement.anchor}set anchor(t){this._adapter.overlayElement.anchor=t}get noAnchor(){return this._adapter.overlayElement.noAnchor}set noAnchor(t){this._adapter.overlayElement.noAnchor!==t&&(this._adapter.overlayElement.noAnchor=t,this._adapter.toggleHostAttribute(B.attributes.NO_ANCHOR,this._adapter.overlayElement.noAnchor))}get open(){return this._adapter.overlayElement.open}set open(t){this._adapter.overlayElement.open===t&&(this._adapter.overlayElement.open=t,this._adapter.toggleHostAttribute(B.attributes.OPEN,this._adapter.overlayElement.open))}get inline(){return this._adapter.overlayElement.inline}set inline(t){this._adapter.overlayElement.inline!==t&&(this._adapter.overlayElement.inline=t,this._adapter.toggleHostAttribute(B.attributes.INLINE,this._adapter.overlayElement.inline))}get placement(){return this._adapter.overlayElement.placement}set placement(t){this._adapter.overlayElement.placement!==t&&(this._adapter.overlayElement.placement=t,this._adapter.setHostAttribute(B.attributes.PLACEMENT,this._adapter.overlayElement.placement))}get positionStrategy(){return this._adapter.overlayElement.positionStrategy}set positionStrategy(t){this._adapter.overlayElement.positionStrategy!==t&&(this._adapter.overlayElement.positionStrategy=t,this._adapter.setHostAttribute(B.attributes.POSITION_STRATEGY,this._adapter.overlayElement.positionStrategy))}get offset(){return this._adapter.overlayElement.offset}set offset(t){this._adapter.overlayElement.offset!==t&&(this._adapter.overlayElement.offset=t)}get hide(){return this._adapter.overlayElement.hide}set hide(t){this._adapter.overlayElement.hide!==t&&(this._adapter.overlayElement.hide=t,this._adapter.toggleHostAttribute(B.attributes.HIDE,this._adapter.overlayElement.hide!==B.defaults.HIDE,String(this._adapter.overlayElement.hide)))}get persistent(){return this._adapter.overlayElement.persistent}set persistent(t){this._adapter.overlayElement.persistent!==t&&(this._adapter.overlayElement.persistent=t,this.persistent?this._adapter.overlayElement.removeEventListener(B.events.LIGHT_DISMISS,this._lightDismissListener):this._adapter.overlayElement.addEventListener(B.events.LIGHT_DISMISS,this._lightDismissListener),this._adapter.toggleHostAttribute(B.attributes.PERSISTENT,this._adapter.overlayElement.persistent))}get shift(){return this._adapter.overlayElement.shift}set shift(t){this._adapter.overlayElement.shift!==t&&(this._adapter.overlayElement.shift=t,this._adapter.toggleHostAttribute(B.attributes.SHIFT,this._adapter.overlayElement.shift))}get flip(){return this._adapter.overlayElement.flip}set flip(t){this._adapter.overlayElement.flip!==t&&(this._adapter.overlayElement.flip=t,this._adapter.toggleHostAttribute(B.attributes.FLIP,this._adapter.overlayElement.flip!==B.defaults.FLIP,String(this._adapter.overlayElement.flip)))}get boundary(){return this._adapter.overlayElement.boundary}set boundary(t){this._adapter.overlayElement.boundary!==t&&(this._adapter.overlayElement.boundary=t,this._adapter.toggleHostAttribute(B.attributes.BOUNDARY,!!this._adapter.overlayElement.boundary,this._adapter.overlayElement.boundary))}get boundaryElement(){return this._adapter.overlayElement.boundaryElement}set boundaryElement(t){this._adapter.overlayElement.boundaryElement!==t&&(this._adapter.overlayElement.boundaryElement=t)}get fallbackPlacements(){return this._adapter.overlayElement.fallbackPlacements}set fallbackPlacements(t){this._adapter.overlayElement.fallbackPlacements!==t&&(this._adapter.overlayElement.fallbackPlacements=t)}position(){this._adapter.overlayElement.position()}};var ai=class extends Yn(ei){constructor(e){super(e);this._anchor=null;this._arrow=!1;this._animationType="zoom";this._triggerTypes=[Z.defaults.TRIGGER_TYPE];this._persistentHover=!1;this._hoverDismissDelay=_h;this._hoverDelay=Z.defaults.HOVER_DELAY;this._preset=Z.defaults.PRESET;this._previouslyFocusedElement=null;this._anchorClickListener=this._onAnchorClick.bind(this);this._anchorDoubleClickListener=this._onAnchorDoubleClick.bind(this);this._anchorMouseenterListener=this._onAnchorMouseenter.bind(this);this._anchorMouseleaveListener=this._onAnchorMouseleave.bind(this);this._popoverMouseenterListener=this._onPopoverMouseenter.bind(this);this._popoverMouseleaveListener=this._onPopoverMouseleave.bind(this);this._mousemoveListener=this._onMousemove.bind(this);this._anchorFocusListener=this._onAnchorFocus.bind(this);this._anchorBlurListener=this._onAnchorBlur.bind(this);this._popoverBlurListener=this._onPopoverBlur.bind(this);this._contextmenuListener=this._onContextmenu.bind(this)}initialize(){super.initialize(),this._adapter.tryApplyGlobalConfiguration(["placement","animationType","positionStrategy","shift","hide","flip","boundaryElement","fallbackPlacements","persistent","arrow"]),this.anchorElement||this._adapter.tryLocateAnchorElement(this._anchor),this._initializeTriggerListeners(),this._adapter.initializeAnchorElement()}destroy(){super.destroy(),this._adapter.destroy(),window.clearTimeout(this._hoverTimeout),window.clearTimeout(this._hoverAnchorLeaveTimeout),window.clearTimeout(this._popoverMouseleaveTimeout),this._previouslyFocusedElement=null,this.open&&this._closePopover(),this._removeTriggerListeners()}hideAsync(){return this._closePopover()}async _onOverlayLightDismiss(e){e.preventDefault(),this._requestDismiss(e.detail.reason)}dispatchBeforeToggleEvent({reason:e}){if(this._dispatchBeforetoggleEvent().defaultPrevented)return!1;let o=this._previouslyFocusedElement;return this._closePopover().then(()=>{this._dispatchToggleEvent(),e==="escape"&&o&&this._adapter.hasFocus()&&o.focus()}),!0}_openPopover({dispatchEvents:e=!0}={}){this.open||e&&this._dispatchBeforetoggleEvent().defaultPrevented||(this._previouslyFocusedElement=this._adapter.captureFocusedElement(),this._adapter.setOverlayOpen(!0),this.overlayElement.persistent||Vt.instance.add(this._adapter.hostElement),this._adapter.toggleHostAttribute(Z.attributes.OPEN,this.open),this._adapter.tryAutofocus(),e&&this._dispatchToggleEvent())}async _closePopover(){this.open&&(this._previouslyFocusedElement=null,Vt.instance.remove(this._adapter.hostElement),this._animationType==="none"?this._adapter.setOverlayOpen(!1):await this._adapter.hide(),this._adapter.toggleHostAttribute(Z.attributes.OPEN,this.open))}_dispatchBeforetoggleEvent(){let e=new CustomEvent(Z.events.BEFORETOGGLE,{detail:{oldState:this.open?"open":"closed",newState:this.open?"closed":"open"},bubbles:!1,cancelable:!0});return this._adapter.dispatchHostEvent(e),e}_dispatchToggleEvent(){this._adapter.dispatchHostEvent(new CustomEvent(Z.events.TOGGLE,{detail:{oldState:this.open?"closed":"open",newState:this.open?"open":"closed"},bubbles:!1}))}_initializeTriggerListeners(){if(this._triggerTypes.includes("manual"))return;let e=[...this._triggerTypes];e.includes("contextmenu")?e=["contextmenu"]:(e.includes("hover")&&e.includes("focus")&&e.splice(e.indexOf("focus"),1),e.includes("click")&&e.includes("doubleclick")&&e.splice(e.indexOf("doubleclick"),1));let a={click:()=>this._adapter.addAnchorListener("click",this._anchorClickListener),hover:()=>{this._adapter.addAnchorListener("mouseenter",this._anchorMouseenterListener),this._adapter.addAnchorListener("focusin",this._anchorFocusListener)},focus:()=>this._adapter.addAnchorListener("focusin",this._anchorFocusListener),longpress:()=>{this._adapter.overlayElement.anchorElement&&!(this._adapter.overlayElement.anchorElement instanceof zt)&&this._startLongpressListener(this._adapter.overlayElement.anchorElement)},doubleclick:()=>this._adapter.addAnchorListener("dblclick",this._anchorDoubleClickListener),contextmenu:()=>this._adapter.addDocumentListener("contextmenu",this._contextmenuListener)};e.forEach(o=>{var n;return(n=a[o])==null?void 0:n.call(a)})}_removeTriggerListeners(){let e={click:()=>this._adapter.removeAnchorListener("click",this._anchorClickListener),hover:()=>{this._adapter.removeAnchorListener("mouseenter",this._anchorMouseenterListener),this._adapter.removeAnchorListener("mouseleave",this._anchorMouseleaveListener),this._adapter.removeAnchorListener("focusin",this._anchorFocusListener),this._adapter.removeAnchorListener("focusout",this._anchorBlurListener),this._adapter.removeHostListener("focusout",this._popoverBlurListener),this._tryRemoveHoverListeners()},focus:()=>{this._adapter.removeAnchorListener("focusin",this._anchorFocusListener),this._adapter.removeAnchorListener("focusout",this._anchorBlurListener),this._adapter.removeHostListener("focusout",this._popoverBlurListener)},longpress:()=>{this._adapter.overlayElement.anchorElement&&!(this._adapter.overlayElement.anchorElement instanceof zt)&&this._stopLongpressListener(this._adapter.overlayElement.anchorElement)},doubleclick:()=>this._adapter.removeAnchorListener("dblclick",this._anchorDoubleClickListener),contextmenu:()=>this._adapter.removeDocumentListener("contextmenu",this._contextmenuListener)};this._triggerTypes.forEach(a=>{var o;return(o=e[a])==null?void 0:o.call(e)})}_startHoverListeners(){this._adapter.addDocumentListener("mousemove",this._mousemoveListener),this._adapter.addSurfaceListener("mouseenter",this._popoverMouseenterListener),this._adapter.addSurfaceListener("mouseleave",this._popoverMouseleaveListener)}_tryRemoveHoverListeners(){this._adapter.removeDocumentListener("mousemove",this._mousemoveListener),this._adapter.removeSurfaceListener("mouseenter",this._popoverMouseenterListener),this._adapter.removeSurfaceListener("mouseleave",this._popoverMouseleaveListener)}_requestDismiss(e){Vt.instance.requestDismiss(this._adapter.hostElement,{reason:e})}_requestClose(e){Vt.instance.dismiss(this._adapter.hostElement,{reason:e})}_onHoverClose(){var e;if(this.open){if(this._currentHoverCoords){let a=document.elementFromPoint(this._currentHoverCoords.x,this._currentHoverCoords.y);if(a&&(this._adapter.isChildElement(a)||!(this._adapter.overlayElement.anchorElement instanceof zt)&&((e=this._adapter.overlayElement.anchorElement)==null?void 0:e.contains(a))))return}window.clearTimeout(this._hoverTimeout),this._tryRemoveHoverListeners(),this._requestClose("hover")}}_onAnchorClick(e){this.open?this._requestClose("click"):this._openPopover()}_onAnchorDoubleClick(){this.open?this._requestClose("doubleclick"):this._openPopover()}_onAnchorMouseenter(){window.clearTimeout(this._hoverAnchorLeaveTimeout),this._adapter.overlayElement.open||(this._persistentHover||this._adapter.addAnchorListener("mouseleave",this._anchorMouseleaveListener),this._hoverDelay?this._hoverTimeout=window.setTimeout(()=>{this._openPopover()},this._hoverDelay):this._openPopover())}_onAnchorMouseleave(){this._startHoverListeners(),window.clearTimeout(this._hoverTimeout),this._hoverAnchorLeaveTimeout=window.setTimeout(()=>{this._hoverAnchorLeaveTimeout=void 0,this._onHoverClose()},this._hoverDismissDelay)}_onPopoverMouseenter(){window.clearTimeout(this._hoverAnchorLeaveTimeout),window.clearTimeout(this._popoverMouseleaveTimeout)}_onPopoverMouseleave(){this._popoverMouseleaveTimeout=window.setTimeout(()=>{this._popoverMouseleaveTimeout=void 0,this._onHoverClose()},this._hoverDismissDelay)}_onMousemove(e){this._currentHoverCoords={x:e.pageX,y:e.pageY}}_onAnchorFocus(e){this._adapter.overlayElement.open||(this._adapter.addAnchorListener("focusout",this._anchorBlurListener),this._openPopover())}_onAnchorBlur(e){this._adapter.isChildElement(e.relatedTarget)?this._adapter.addHostListener("focusout",this._popoverBlurListener):this._requestClose("focus")}_onPopoverBlur({relatedTarget:e}){var n,i;let a=this._adapter.hasFocus(),o=!(this._adapter.overlayElement.anchorElement instanceof zt)&&(((n=this._adapter.overlayElement.anchorElement)==null?void 0:n.matches(":focus-within"))||((i=this._adapter.overlayElement.anchorElement)==null?void 0:i.contains(e)));!a&&!o&&this._requestClose("focus")}_onLongpress(){this.open||this._openPopover()}_onContextmenu(e){e.preventDefault(),this.anchorElement=zt.fromEvent(e),this.open||this._openPopover()}get open(){return this._adapter.overlayElement.open}set open(e){this._adapter.overlayElement.open!==e&&(e?this._openPopover({dispatchEvents:!1}):this._closePopover())}get anchorElement(){return this._adapter.overlayElement.anchorElement}set anchorElement(e){this._adapter.overlayElement.anchorElement!==e&&(this._adapter.isConnected&&(this._removeTriggerListeners(),this._adapter.cleanupAnchorElement()),this._adapter.overlayElement.anchorElement=e,this._adapter.isConnected&&(this._initializeTriggerListeners(),this._adapter.initializeAnchorElement()))}get anchor(){return this._anchor}set anchor(e){this._anchor!==e&&(this._anchor=e,this._adapter.isConnected&&(this._removeTriggerListeners(),this._adapter.cleanupAnchorElement(),this._adapter.tryLocateAnchorElement(this._anchor),this._initializeTriggerListeners(),this._adapter.initializeAnchorElement()))}get arrow(){return this._arrow}set arrow(e){e=!!e,this._arrow!==e&&(this._arrow=e,this._adapter.toggleArrow(e),this._adapter.toggleHostAttribute(Z.attributes.ARROW,e))}get animationType(){return this._animationType}set animationType(e){this._animationType!==e&&(this._animationType=e,this._adapter.toggleHostAttribute(Z.attributes.ANIMATION_TYPE,!!this._animationType,this._animationType))}get triggerType(){return this._triggerTypes.length===1?this._triggerTypes[0]:this._triggerTypes}set triggerType(e){this._triggerTypes!==e&&(this._adapter.isConnected&&this._removeTriggerListeners(),this._triggerTypes=Array.isArray(e)?e:[e],this._triggerTypes=this._triggerTypes.filter(a=>!!a),this._triggerTypes.length||(this._triggerTypes=[Z.defaults.TRIGGER_TYPE]),this._adapter.isConnected&&this._initializeTriggerListeners())}get longpressDelay(){return this._longpressDelay}set longpressDelay(e){this._longpressDelay!==e&&(this._longpressDelay=e,this._adapter.setHostAttribute(Z.attributes.LONGPRESS_DELAY,String(this._longpressDelay)))}get persistentHover(){return this._persistentHover}set persistentHover(e){e=!!e,this._persistentHover!==e&&(this._persistentHover=e,this._persistentHover&&this._triggerTypes.includes("hover")&&this._adapter.isConnected&&(this._removeTriggerListeners(),this._initializeTriggerListeners()),this._adapter.toggleHostAttribute(Z.attributes.PERSISTENT_HOVER,e))}get hoverDelay(){return this._hoverDelay}set hoverDelay(e){(isNaN(e)||e<0)&&(e=Z.defaults.HOVER_DELAY),this._hoverDelay!==e&&(this._hoverDelay=e,this._adapter.setHostAttribute(Z.attributes.HOVER_DELAY,String(this._hoverDelay)))}get hoverDismissDelay(){return this._hoverDismissDelay}set hoverDismissDelay(e){this._hoverDismissDelay!==e&&(this._hoverDismissDelay=e,this._adapter.setHostAttribute(Z.attributes.HOVER_DISMISS_DELAY,String(this._hoverDismissDelay)))}get preset(){var e;return(e=this._preset)!=null?e:Z.defaults.PRESET}set preset(e){if(e=e!=null?e:Z.defaults.PRESET,this._preset!==e){this._preset=e;let a=e!==Z.defaults.PRESET;this._adapter.toggleHostAttribute(Z.attributes.PRESET,a,this._preset)}}};var T2=class extends M{constructor(){super()}position(){this._core.position()}attributeChangedCallback(t,e,a){switch(t){case B.observedAttributes.ANCHOR:this.anchor=a;break;case B.observedAttributes.NO_ANCHOR:this.noAnchor=p(a);break;case B.observedAttributes.OPEN:this.open=p(a);break;case B.observedAttributes.INLINE:this.inline=p(a);break;case B.observedAttributes.PLACEMENT:this.placement=a;break;case B.observedAttributes.POSITION_STRATEGY:this.positionStrategy=a;break;case B.observedAttributes.HIDE:this.hide=a;break;case B.observedAttributes.PERSISTENT:this.persistent=p(a);break;case B.observedAttributes.SHIFT:this.shift=p(a);break;case B.observedAttributes.FLIP:this.flip=a;break;case B.observedAttributes.BOUNDARY:this.boundary=a;break}}get overlay(){return this._core.overlayElement}};s([v()],T2.prototype,"anchorElement",2),s([v()],T2.prototype,"anchor",2),s([v()],T2.prototype,"noAnchor",2),s([v()],T2.prototype,"open",2),s([v()],T2.prototype,"inline",2),s([v()],T2.prototype,"placement",2),s([v()],T2.prototype,"positionStrategy",2),s([v()],T2.prototype,"offset",2),s([v()],T2.prototype,"shift",2),s([v()],T2.prototype,"hide",2),s([v()],T2.prototype,"persistent",2),s([v()],T2.prototype,"flip",2),s([v()],T2.prototype,"boundary",2),s([v()],T2.prototype,"boundaryElement",2),s([v()],T2.prototype,"fallbackPlacements",2);var e8='<template><forge-overlay exportparts="root:overlay"><div class="forge-popover" part="surface"><slot></slot></div></forge-overlay></template>',a8='@keyframes zoomin{from{transform:scale(.8)}to{transform:scale(1)}}@keyframes zoomout{from{transform:scale(1)}to{transform:scale(.8)}}@keyframes slidein{from{transform:translateX(var(--_popover-slidein-x)) translateY(var(--_popover-slidein-y))}to{transform:translateX(0) translateY(0)}}@keyframes slideout{from{transform:translateX(0) translateY(0)}to{transform:translateX(var(--_popover-slidein-x)) translateY(var(--_popover-slidein-y))}}@keyframes fadein{from{opacity:0}to{opacity:1}}@keyframes fadeout{from{opacity:1}to{opacity:0}}@layer base,animation,preset,reduced-motion; @layer base{:host{display:contents;--forge-theme-surface:var(--forge-theme-surface-bright, #ffffff)}:host([hidden]){display:none}forge-overlay{--_popover-width:var(--forge-popover-width, auto);--_popover-height:var(--forge-popover-height, auto);--_popover-min-width:var(--forge-popover-min-width, none);--_popover-max-width:var(--forge-popover-max-width, none);--_popover-min-height:var(--forge-popover-min-height, none);--_popover-max-height:var(--forge-popover-max-height, none);--_popover-background:var(--forge-popover-background, var(--forge-theme-surface-bright, #ffffff));--_popover-border-radius:var(--forge-popover-border-radius, calc(var(--forge-shape-medium, 4px) * var(--forge-shape-factor, 1)));--_popover-box-shadow:var(--forge-popover-box-shadow, var(--forge-theme-surface-bright-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)));--_popover-border-width:var(--forge-popover-border-width, 0);--_popover-border-style:var(--forge-popover-border-style, solid);--_popover-border-color:var(--forge-popover-border-color, var(--forge-theme-outline, #e0e0e0));--_popover-overflow:var(--forge-popover-overflow, initial);--_popover-arrow-size:var(--forge-popover-arrow-size, 12px);--_popover-arrow-height:var(--forge-popover-arrow-height, var(--_popover-arrow-size));--_popover-arrow-width:var(--forge-popover-arrow-width, var(--_popover-arrow-size));--_popover-arrow-background-color:var(--forge-popover-arrow-background-color, var(--_popover-background));--_popover-arrow-top-rotation:var(--forge-popover-arrow-top-rotation, 135deg);--_popover-arrow-right-rotation:var(--forge-popover-arrow-right-rotation, 225deg);--_popover-arrow-bottom-rotation:var(--forge-popover-arrow-bottom-rotation, 315deg);--_popover-arrow-left-rotation:var(--forge-popover-arrow-left-rotation, 45deg);--_popover-arrow-border-width:var(--forge-popover-arrow-border-width, var(--forge-border-thin, 1px));--_popover-animation-enter-duration:var(--forge-popover-animation-enter-duration, var(--forge-animation-duration-short3, 150ms));--_popover-animation-enter-timing:var(--forge-popover-animation-enter-timing, var(--forge-animation-easing-decelerate, cubic-bezier(0, 0, 0, 1)));--_popover-animation-exit-duration:var(--forge-popover-animation-exit-duration, var(--forge-animation-duration-short2, 100ms));--_popover-animation-exit-timing:var(--forge-popover-animation-exit-timing, var(--forge-animation-easing-accelerate, cubic-bezier(0.3, 0, 1, 1)));--_popover-zoom-enter-duration:var(--forge-popover-zoom-enter-duration, var(--_popover-animation-enter-duration));--_popover-zoom-enter-timing:var(--forge-popover-zoom-enter-timing, var(--_popover-animation-enter-timing));--_popover-zoom-exit-duration:var(--forge-popover-zoom-exit-duration, var(--_popover-animation-exit-duration));--_popover-zoom-exit-timing:var(--forge-popover-zoom-exit-timing, var(--_popover-animation-exit-timing));--_popover-slide-enter-duration:var(--forge-popover-slide-enter-duration, var(--_popover-animation-enter-duration));--_popover-slide-enter-timing:var(--forge-popover-slide-enter-timing, var(--_popover-animation-enter-timing));--_popover-slide-exit-duration:var(--forge-popover-slide-exit-duration, var(--_popover-animation-exit-duration));--_popover-slide-exit-timing:var(--forge-popover-slide-exit-timing, var(--_popover-animation-exit-timing));--_popover-slide-offset:var(--forge-popover-slide-offset, 24px);--_popover-fade-enter-duration:var(--forge-popover-fade-enter-duration, var(--forge-animation-duration-medium2, 300ms));--_popover-fade-enter-timing:var(--forge-popover-fade-enter-timing, var(--_popover-animation-enter-timing));--_popover-fade-exit-duration:var(--forge-popover-fade-exit-duration, var(--_popover-animation-exit-duration));--_popover-fade-exit-timing:var(--forge-popover-fade-exit-timing, var(--_popover-animation-exit-timing));--_popover-position-inline-start:var(--forge-popover-position-inline-start, auto);--_popover-position-inline-end:var(--forge-popover-position-inline-end, auto);--_popover-position-block-start:var(--forge-popover-position-block-start, auto);--_popover-position-block-end:var(--forge-popover-position-block-end, auto);--_popover-preset-dropdown-max-height:var(--forge-popover-preset-dropdown-max-height, 256px);--_popover-preset-dropdown-overflow:var(--forge-popover-preset-dropdown-overflow, auto visible);--_popover-preset-dropdown-padding-block:var(--forge-popover-preset-dropdown-padding-block, var(--forge-spacing-xsmall, 8px));--_popover-preset-list-padding-block:var(--forge-popover-preset-list-padding-block, var(--forge-spacing-xsmall, 8px))}.forge-popover{--_popover-arrow-translate-x:0;--_popover-arrow-translate-y:0;--_popover-arrow-rotation:0;--_popover-slidein-x:0;--_popover-slidein-y:0;--_popover-zoomin-origin:50% 50% 0;--_popover-arrow-clip-path:polygon(calc(var(--_popover-border-width) * -1) calc(var(--_popover-border-width) * -1), calc(100% + var(--_popover-border-width)) calc(var(--_popover-border-width) * -1), calc(100% + var(--_popover-border-width)) calc(100% + var(--_popover-border-width)))}.forge-popover{position:relative;overflow:var(--_popover-overflow);box-sizing:border-box;background:var(--_popover-background);border-radius:var(--_popover-border-radius);box-shadow:var(--_popover-box-shadow);border-width:var(--_popover-border-width);border-style:var(--_popover-border-style);border-color:var(--_popover-border-color);width:var(--_popover-width);height:var(--_popover-height);min-width:var(--_popover-min-width);max-width:var(--_popover-max-width);min-height:var(--_popover-min-height);max-height:var(--_popover-max-height)}.forge-popover::-webkit-scrollbar{height:var(--forge-scrollbar-height,16px);width:var(--forge-scrollbar-width,16px)}.forge-popover::-webkit-scrollbar-track{background-color:var(--forge-scrollbar-track-container,var(--forge-theme-surface-container-low,#ebebeb))}.forge-popover::-webkit-scrollbar-track:hover{background-color:var(--forge-scrollbar-track-container-hover,var(--forge-theme-surface-container-low,#ebebeb))}.forge-popover::-webkit-scrollbar-corner{background-color:var(--forge-scrollbar-track-container,var(--forge-theme-surface-container-low,#ebebeb))}.forge-popover::-webkit-scrollbar-thumb{height:var(--forge-scrollbar-thumb-min-height,32px);width:var(--forge-scrollbar-thumb-min-width,32px);border-radius:var(--forge-scrollbar-border-radius,calc(var(--forge-shape-full,9999px) * var(--forge-shape-factor,1)));border-width:var(--forge-scrollbar-border-width,3px);border-style:solid;border-color:transparent;background-color:var(--forge-scrollbar-thumb-container,var(--forge-theme-surface-container-medium,#c2c2c2));background-clip:content-box}.forge-popover::-webkit-scrollbar-thumb:hover{background-color:var(--forge-scrollbar-thumb-container-hover,var(--forge-theme-surface-container-high,#9e9e9e))}:host([open][no-anchor]) forge-overlay{--forge-overlay-position-inline-start:var(--_popover-position-inline-start);--forge-overlay-position-inline-end:var(--_popover-position-inline-end);--forge-overlay-position-block-start:var(--_popover-position-block-start);--forge-overlay-position-block-end:var(--_popover-position-block-end)}:host([arrow]) .forge-popover{--_popover-border-width:var(--_popover-arrow-border-width)}:host([arrow]) .arrow{position:absolute;background-color:var(--_popover-arrow-background-color);height:var(--_popover-arrow-height);width:var(--_popover-arrow-width);box-shadow:var(--_popover-box-shadow);border-width:var(--_popover-border-width);border-style:var(--_popover-border-style);border-color:var(--_popover-border-color);transform:translate(var(--_popover-arrow-translate-x),var(--_popover-arrow-translate-y)) rotate(var(--_popover-arrow-rotation));clip-path:var(--_popover-arrow-clip-path)}:host([arrow]) forge-overlay[position-placement^=top] .arrow{--_popover-arrow-translate-y:var(--forge-popover-arrow-translate-y, calc(var(--_popover-border-width) * -1));--_popover-arrow-rotation:var(--forge-popover-arrow-rotation, var(--_popover-arrow-top-rotation))}:host([arrow]) forge-overlay[position-placement^=right] .arrow{--_popover-arrow-translate-x:var(--forge-popover-arrow-translate-x, var(--_popover-border-width));--_popover-arrow-rotation:var(--forge-popover-arrow-rotation, var(--_popover-arrow-right-rotation))}:host([arrow]) forge-overlay[position-placement^=bottom] .arrow{--_popover-arrow-translate-y:var(--forge-popover-arrow-translate-y, var(--_popover-border-width));--_popover-arrow-rotation:var(--forge-popover-arrow-rotation, var(--_popover-arrow-bottom-rotation))}:host([arrow]) forge-overlay[position-placement^=left] .arrow{--_popover-arrow-translate-x:var(--forge-popover-arrow-translate-x, calc(var(--_popover-border-width) * -1));--_popover-arrow-rotation:var(--forge-popover-arrow-rotation, var(--_popover-arrow-left-rotation))}}@layer preset{:host([preset=dropdown]) .forge-popover{--_popover-max-height:var(--_popover-preset-dropdown-max-height);--_popover-overflow:var(--_popover-preset-dropdown-overflow);padding-block:var(--_popover-preset-dropdown-padding-block)}:host([preset=list]) .forge-popover{padding-block:var(--_popover-preset-list-padding-block)}:host([constrain-viewport-width]) .forge-popover{--_popover-max-width:var(--forge-popover-max-width, 100vw)}}@layer animation{:host(:not([animation-type])) .forge-popover,:host([animation-type=zoom]) .forge-popover{animation-duration:var(--_popover-zoom-enter-duration);animation-timing-function:var(--_popover-zoom-enter-timing);animation-name:fadein,zoomin;transform-origin:var(--_popover-zoomin-origin)}:host(:not([animation-type])) forge-overlay[open][position-placement^=top]:not([position-placement*="-"]) .forge-popover,:host([animation-type=zoom]) forge-overlay[open][position-placement^=top]:not([position-placement*="-"]) .forge-popover{--_popover-zoomin-origin:var(--forge-popover-zoomin-origin, bottom center)}:host(:not([animation-type])) forge-overlay[open][position-placement^=top][position-placement$=-start] .forge-popover,:host([animation-type=zoom]) forge-overlay[open][position-placement^=top][position-placement$=-start] .forge-popover{--_popover-zoomin-origin:var(--forge-popover-zoomin-origin, bottom left)}:host(:not([animation-type])) forge-overlay[open][position-placement^=top][position-placement$=-end] .forge-popover,:host([animation-type=zoom]) forge-overlay[open][position-placement^=top][position-placement$=-end] .forge-popover{--_popover-zoomin-origin:var(--forge-popover-zoomin-origin, bottom right)}:host(:not([animation-type])) forge-overlay[open][position-placement^=right]:not([position-placement*="-"]) .forge-popover,:host([animation-type=zoom]) forge-overlay[open][position-placement^=right]:not([position-placement*="-"]) .forge-popover{--_popover-zoomin-origin:var(--forge-popover-zoomin-origin, left center)}:host(:not([animation-type])) forge-overlay[open][position-placement^=right][position-placement$=-start] .forge-popover,:host([animation-type=zoom]) forge-overlay[open][position-placement^=right][position-placement$=-start] .forge-popover{--_popover-zoomin-origin:var(--forge-popover-zoomin-origin, left top)}:host(:not([animation-type])) forge-overlay[open][position-placement^=right][position-placement$=-end] .forge-popover,:host([animation-type=zoom]) forge-overlay[open][position-placement^=right][position-placement$=-end] .forge-popover{--_popover-zoomin-origin:var(--forge-popover-zoomin-origin, left bottom)}:host(:not([animation-type])) forge-overlay[open][position-placement^=bottom]:not([position-placement*="-"]) .forge-popover,:host([animation-type=zoom]) forge-overlay[open][position-placement^=bottom]:not([position-placement*="-"]) .forge-popover{--_popover-zoomin-origin:var(--forge-popover-zoomin-origin, top center)}:host(:not([animation-type])) forge-overlay[open][position-placement^=bottom][position-placement$=-start] .forge-popover,:host([animation-type=zoom]) forge-overlay[open][position-placement^=bottom][position-placement$=-start] .forge-popover{--_popover-zoomin-origin:var(--forge-popover-zoomin-origin, top left)}:host(:not([animation-type])) forge-overlay[open][position-placement^=bottom][position-placement$=-end] .forge-popover,:host([animation-type=zoom]) forge-overlay[open][position-placement^=bottom][position-placement$=-end] .forge-popover{--_popover-zoomin-origin:var(--forge-popover-zoomin-origin, top right)}:host(:not([animation-type])) forge-overlay[open][position-placement^=left]:not([position-placement*="-"]) .forge-popover,:host([animation-type=zoom]) forge-overlay[open][position-placement^=left]:not([position-placement*="-"]) .forge-popover{--_popover-zoomin-origin:var(--forge-popover-zoomin-origin, right center)}:host(:not([animation-type])) forge-overlay[open][position-placement^=left][position-placement$=-start] .forge-popover,:host([animation-type=zoom]) forge-overlay[open][position-placement^=left][position-placement$=-start] .forge-popover{--_popover-zoomin-origin:var(--forge-popover-zoomin-origin, right top)}:host(:not([animation-type])) forge-overlay[open][position-placement^=left][position-placement$=-end] .forge-popover,:host([animation-type=zoom]) forge-overlay[open][position-placement^=left][position-placement$=-end] .forge-popover{--_popover-zoomin-origin:var(--forge-popover-zoomin-origin, right bottom)}:host(:not([animation-type])) forge-overlay[open] .forge-popover.exiting,:host([animation-type=zoom]) forge-overlay[open] .forge-popover.exiting{animation-duration:var(--_popover-zoom-exit-duration);animation-timing-function:var(--_popover-zoom-exit-timing);animation-name:fadeout,zoomout}:host([animation-type=slide]) .forge-popover{animation-duration:var(--_popover-slide-enter-duration);animation-timing-function:var(--_popover-slide-enter-timing);animation-name:fadein,slidein}:host([animation-type=slide]) forge-overlay[open][position-placement^=top] .forge-popover{--_popover-slidein-y:var(--forge-popover-slidein-y, var(--_popover-slide-offset))}:host([animation-type=slide]) forge-overlay[open][position-placement^=right] .forge-popover{--_popover-slidein-x:var(--forge-popover-slidein-x, calc(var(--_popover-slide-offset) * -1))}:host([animation-type=slide]) forge-overlay[open][position-placement^=bottom] .forge-popover{--_popover-slidein-y:var(--forge-popover-slidein-y, calc(var(--_popover-slide-offset) * -1))}:host([animation-type=slide]) forge-overlay[open][position-placement^=left] .forge-popover{--_popover-slidein-x:var(--forge-popover-slidein-x, var(--_popover-slide-offset))}:host([animation-type=slide]) forge-overlay[open] .forge-popover.exiting{animation-duration:var(--_popover-slide-exit-duration);animation-timing-function:var(--_popover-slide-exit-timing);animation-name:fadeout,slideout}:host([animation-type=fade]) .forge-popover{animation-duration:var(--_popover-fade-enter-duration);animation-timing-function:var(--_popover-fade-enter-timing);animation-name:fadein}:host([animation-type=fade]) .forge-popover.exiting{animation-duration:var(--_popover-fade-exit-duration);animation-timing-function:var(--_popover-fade-exit-timing);animation-name:fadeout}}forge-overlay[clipped-x] .forge-popover{width:auto;min-width:0;max-width:100vw;overflow-x:auto}forge-overlay[clipped-y] .forge-popover{height:auto;min-height:0;max-height:100vh;overflow-y:auto}@layer reduced-motion{@media (prefers-reduced-motion:reduce){.forge-popover{animation:none}.forge-popover.exiting{animation:none}}}',P1=class extends T2{static get observedAttributes(){return[...Object.values(B.observedAttributes),...Object.values(Z.observedAttributes)]}[T0](t){return this._core.dispatchBeforeToggleEvent(t)}constructor(){super(),H(this,e8,a8),this._core=new ai(new ti(this))}connectedCallback(){this._core.initialize()}disconnectedCallback(){this._core.destroy()}attributeChangedCallback(t,e,a){switch(t){case Z.observedAttributes.ARROW:this.arrow=p(a);return;case Z.observedAttributes.ANIMATION_TYPE:this.animationType=a;return;case Z.observedAttributes.TRIGGER_TYPE:this.triggerType=a!=null&&a.trim()?da(a):Z.defaults.TRIGGER_TYPE;return;case Z.observedAttributes.LONGPRESS_DELAY:this.longpressDelay=W(a);return;case Z.observedAttributes.PERSISTENT_HOVER:this.persistentHover=p(a);return;case Z.observedAttributes.HOVER_DELAY:this.hoverDelay=W(a);return;case Z.observedAttributes.HOVER_DISMISS_DELAY:this.hoverDismissDelay=W(a);return;case Z.observedAttributes.PRESET:this.preset=a;return}super.attributeChangedCallback(t,e,a)}hideAsync(){return this._core.hideAsync()}};s([v()],P1.prototype,"arrow",2),s([v()],P1.prototype,"animationType",2),s([v()],P1.prototype,"triggerType",2),s([v()],P1.prototype,"longpressDelay",2),s([v()],P1.prototype,"persistentHover",2),s([v()],P1.prototype,"hoverDelay",2),s([v()],P1.prototype,"hoverDismissDelay",2),s([v()],P1.prototype,"preset",2),P1=s([y({name:Z.elementName,dependencies:[d2]})],P1);function fh(){x(P1)}var Ha=`${b}menu`,o8={POPUP:"forge-menu__popup",MENU:"mdc-menu"},r8={TOGGLE:`.${Ha}__toggle,[${Ha}-toggle],forge-button,forge-icon-button,forge-fab,button,[type=button],[role=button],a,forge-list-item,[tabindex]:not([tabindex^="-"])`,MENU_LIST:"forge-list"},n8={OPEN:"open",PLACEMENT:"placement",SELECTED_INDEX:"selected-index",SELECTED_VALUE:"selected-value",DENSE:"dense",ICON_CLASS:"icon-class",PERSIST_SELECTION:"persist-selection",MODE:"mode",SYNC_POPUP_WIDTH:"sync-popup-width",POPUP_CLASSES:"popup-classes",OPTION_LIMIT:"option-limit",OBSERVE_SCROLL:"observe-scroll",OBSERVE_SCROLL_THRESHOLD:"observe-scroll-threshold"},i8={SELECT:`${Ha}-select`,OPEN:`${Ha}-open`,CLOSE:`${Ha}-close`,ACTIVE_CHANGE:`${Ha}-active-change`},s8={CHILD_MOUSE_LEAVE_TIMEOUT:300,POPUP_MOUSE_LEAVE_TIMEOUT:500},e1={elementName:Ha,classes:o8,selectors:r8,attributes:n8,events:i8,numbers:s8};var l8=`${b}linear-progress`,v8={INDETERMINATE:"forge-linear-progress--indeterminate"},h8={ROOT:".forge-linear-progress",TRACK:".track",PROGRESS:".primary-bar"},xh={DETERMINATE:"determinate",PROGRESS:"progress",BUFFER:"buffer",THEME:"theme"},c8=w({},xh),S2={elementName:l8,classes:v8,selectors:h8,attributes:c8,observedAttributes:xh};var oi=class extends I{constructor(t){super(t),this._rootElement=g(t,S2.selectors.ROOT),this._trackElement=g(t,S2.selectors.TRACK),this._progressElement=g(t,S2.selectors.PROGRESS)}initialize(){this._component[P]({role:"progressbar",ariaValueMin:"0",ariaValueMax:"1",ariaValueNow:this._component.determinate?`${this._component.progress}`:null})}setDeterminate(t){this._component[P]({ariaValueNow:t?`${this._component.progress}`:null}),t?this.setProgress(this._component.progress):(this._trackElement.style.transform="scaleX(100%)",this._progressElement.style.transform=""),this._rootElement.classList.toggle(S2.classes.INDETERMINATE,!t)}setProgress(t){this._component[P]({ariaValueNow:`${t}`}),this._progressElement.style.transform=`scaleX(${t*100}%)`}setBuffer(t){this._trackElement.style.transform=`scaleX(${t*100}%)`}};var ri=class{constructor(t){this._adapter=t;this._determinate=!1;this._progress=0;this._buffer=1;this._theme="primary"}initialize(){this._adapter.initialize()}get determinate(){return this._determinate}set determinate(t){t=!!t,this._determinate!==t&&(this._determinate=t,this._adapter.setBuffer(this._determinate?this._buffer:1),this._adapter.setProgress(this._determinate?this._progress:0),this._adapter.setDeterminate(this._determinate),this._adapter.toggleHostAttribute(S2.attributes.DETERMINATE,this._determinate))}get progress(){return this._progress}set progress(t){(t==null||t<0||t>1||isNaN(t))&&(t=0),this._progress!==t&&(this._progress=t,this._determinate&&this._adapter.setProgress(this._progress),this._adapter.setHostAttribute(S2.attributes.PROGRESS,String(this._progress)))}get buffer(){return this._buffer}set buffer(t){(t==null||t<0||isNaN(t))&&(t=0),this._buffer!==t&&(this._buffer=t,this._determinate&&this._adapter.setBuffer(this._buffer),this._adapter.setHostAttribute(S2.attributes.BUFFER,this._buffer.toString()))}get theme(){return this._theme}set theme(t){this._theme!==t&&(this._theme=t,this._adapter.toggleHostAttribute(S2.attributes.THEME,!!this._theme,this._theme))}};var p8='<template><div class="forge-linear-progress forge-linear-progress--indeterminate" part="progressbar"><div class="dots"></div><div class="track"></div><div class="bar primary-bar"><div class="bar-inner"></div></div><div class="bar secondary-bar"><div class="bar-inner"></div></div></div></template>',d8=`:host{--_linear-progress-track-height:var(--forge-linear-progress-track-height, 4px)}:host{display:block;position:relative;min-inline-size:80px;block-size:var(--_linear-progress-track-height);contain:strict;content-visibility:auto}:host([hidden]){display:none}.forge-linear-progress{--_linear-progress-track-color:var(--forge-linear-progress-track-color, var(--forge-theme-tertiary-container, #d0d7ff));--_linear-progress-track-shape:var(--forge-linear-progress-track-shape, calc(var(--forge-shape-full, 9999px) * var(--forge-shape-factor, 1)));--_linear-progress-indicator-color:var(--forge-linear-progress-indicator-color, var(--forge-theme-tertiary, #3d5afe));--_linear-progress-indicator-height:var(--forge-linear-progress-indicator-height, var(--_linear-progress-track-height));--_linear-progress-determinate-duration:var(--forge-linear-progress-determinate-duration, var(--forge-animation-duration-medium1, 250ms));--_linear-progress-determinate-easing:var(--forge-linear-progress-determinate-easing, cubic-bezier(0.4, 0, 0.6, 1));--_linear-progress-indeterminate-duration:var(--forge-linear-progress-indeterminate-duration, 2s);--_linear-progress-buffer-duration:var(--forge-linear-progress-buffer-duration, var(--forge-animation-duration-short4, 200ms));--_linear-progress-theme-transition-duration:var(--forge-linear-progress-theme-transition-duration, var(--forge-animation-duration-short3, 150ms));--_linear-progress-theme-transition-timing:var(--forge-linear-progress-theme-transition-timing, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1)));--_linear-progress-track-dot-size:calc(var(--_linear-progress-track-height) / 2);--_linear-progress-track-background-width:calc(var(--_linear-progress-track-dot-size) * 5);--_linear-progress-track-background:0/var(--_linear-progress-track-background-width) 100% radial-gradient(circle at calc(var(--_linear-progress-track-dot-size) * 2), var(--_linear-progress-track-color) 0, var(--_linear-progress-track-color) var(--_linear-progress-track-dot-size), transparent var(--_linear-progress-track-dot-size))}.forge-linear-progress{inset:0;outline:transparent solid 1px;border-radius:var(--_linear-progress-track-shape);overflow:hidden;display:flex;align-items:center}.bar,.bar-inner,.dots,.forge-linear-progress,.track{position:absolute}.dots{inset:0;animation:linear infinite var(--_linear-progress-buffer-duration);animation-name:buffering;background-color:var(--_linear-progress-track-color);background-repeat:repeat-x;mask-image:url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E");z-index:-1}.bar{animation:none;inline-size:100%;block-size:var(--_linear-progress-indicator-height);transform-origin:left center;will-change:transform;transition:transform var(--_linear-progress-determinate-duration) var(--_linear-progress-determinate-easing)}.secondary-bar{display:none}.bar-inner{inset:0;animation:none;transition:background-color var(--_linear-progress-theme-transition-duration) var(--_linear-progress-theme-transition-timing);background:var(--_linear-progress-indicator-color)}.track{inset:0;will-change:transform;background:var(--_linear-progress-track-color);transition:transform var(--_linear-progress-determinate-duration) var(--_linear-progress-determinate-easing),background-color var(--_linear-progress-theme-transition-duration) var(--_linear-progress-theme-transition-timing);transform-origin:left center}.forge-linear-progress--indeterminate .bar{transition:none}.forge-linear-progress--indeterminate .primary-bar{inset-inline-start:-145.167%;will-change:transform;animation:linear infinite var(--_linear-progress-indeterminate-duration);animation-name:primary-indeterminate-translate}.forge-linear-progress--indeterminate .secondary-bar{inset-inline-start:-54.8889%;display:block;will-change:transform;animation:linear infinite var(--_linear-progress-indeterminate-duration);animation-name:secondary-indeterminate-translate}.forge-linear-progress--indeterminate .dots{display:none}.forge-linear-progress--indeterminate .primary-bar>.bar-inner{will-change:transform;animation:linear infinite var(--_linear-progress-indeterminate-duration) primary-indeterminate-scale}.forge-linear-progress--indeterminate .secondary-bar>.bar-inner{will-change:transform;animation:linear infinite var(--_linear-progress-indeterminate-duration) secondary-indeterminate-scale}:host-context([dir=rtl]) .forge-linear-progress .bar{transform-origin:right center}:host-context([dir=rtl]) .forge-linear-progress .track{transform-origin:right center}:host-context([dir=rtl]) .forge-linear-progress .dots{animation-name:buffering-rtl}:host-context([dir=rtl]) .forge-linear-progress.forge-linear-progress--indeterminate .primary-bar{animation-name:primary-indeterminate-translate-rtl}:host-context([dir=rtl]) .forge-linear-progress.forge-linear-progress--indeterminate .secondary-bar{animation-name:secondary-indeterminate-translate-rtl}:host([dir=rtl]) .forge-linear-progress .bar{transform-origin:right center}:host([dir=rtl]) .forge-linear-progress .track{transform-origin:right center}:host([dir=rtl]) .forge-linear-progress .dots{animation-name:buffering-rtl}:host([dir=rtl]) .forge-linear-progress.forge-linear-progress--indeterminate .primary-bar{animation-name:primary-indeterminate-translate-rtl}:host([dir=rtl]) .forge-linear-progress.forge-linear-progress--indeterminate .secondary-bar{animation-name:secondary-indeterminate-translate-rtl}.forge-linear-progress:dir(rtl) .bar{transform-origin:right center}.forge-linear-progress:dir(rtl) .track{transform-origin:right center}.forge-linear-progress:dir(rtl) .dots{animation-name:buffering-rtl}.forge-linear-progress:dir(rtl).forge-linear-progress--indeterminate .primary-bar{animation-name:primary-indeterminate-translate-rtl}.forge-linear-progress:dir(rtl).forge-linear-progress--indeterminate .secondary-bar{animation-name:secondary-indeterminate-translate-rtl}:host([theme=primary]) .forge-linear-progress{--_linear-progress-indicator-color:var(--forge-linear-progress-indicator-color, var(--forge-theme-primary, #3f51b5));--_linear-progress-track-color:var(--forge-linear-progress-track-color, var(--forge-theme-primary-container, #d1d5ed))}:host([theme=secondary]) .forge-linear-progress{--_linear-progress-indicator-color:var(--forge-linear-progress-indicator-color, var(--forge-theme-secondary, #ffc107));--_linear-progress-track-color:var(--forge-linear-progress-track-color, var(--forge-theme-secondary-container, #fff0c3))}:host([theme=success]) .forge-linear-progress{--_linear-progress-indicator-color:var(--forge-linear-progress-indicator-color, var(--forge-theme-success, #2e7d32));--_linear-progress-track-color:var(--forge-linear-progress-track-color, var(--forge-theme-success-container, #cde0ce))}:host([theme=error]) .forge-linear-progress{--_linear-progress-indicator-color:var(--forge-linear-progress-indicator-color, var(--forge-theme-error, #b00020));--_linear-progress-track-color:var(--forge-linear-progress-track-color, var(--forge-theme-error-container, #ecc2c9))}:host([theme=warning]) .forge-linear-progress{--_linear-progress-indicator-color:var(--forge-linear-progress-indicator-color, var(--forge-theme-warning, #d14900));--_linear-progress-track-color:var(--forge-linear-progress-track-color, var(--forge-theme-warning-container, #f4d3c2))}:host([theme=info]) .forge-linear-progress{--_linear-progress-indicator-color:var(--forge-linear-progress-indicator-color, var(--forge-theme-info, #1565c0));--_linear-progress-track-color:var(--forge-linear-progress-track-color, var(--forge-theme-info-container, #c7daf0))}@media screen and (forced-colors:active){.forge-linear-progress{--_linear-progress-indicator-color:var(--forge-linear-progress-indicator-color, CanvasText);--_linear-progress-track-color:var(--forge-linear-progress-track-color, GrayText);border:1px solid CanvasText}.forge-linear-progress.forge-linear-progress--indeterminate{--_linear-progress-track-color:var(--forge-linear-progress-track-color, Canvas)}}@keyframes buffering{0%{transform:translateX(calc(1 * var(--_linear-progress-track-background-width)))}}@keyframes primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5,0,0.701732,0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435,0.381352,0.55,0.956352);transform:translateX(calc(1 * 83.6714%))}100%{transform:translateX(calc(1 * 200.611%))}}@keyframes secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15,0,0.515058,0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033,0.284058,0.8,0.733712);transform:translateX(calc(1 * 37.6519%))}48.35%{animation-timing-function:cubic-bezier(0.4,0.627035,0.6,0.902026);transform:translateX(calc(1 * 84.3862%))}100%{transform:translateX(calc(1 * 160.278%))}}@keyframes buffering-rtl{0%{transform:translateX(calc(-1 * var(--_linear-progress-track-background-width)))}}@keyframes primary-indeterminate-translate-rtl{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5,0,0.701732,0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435,0.381352,0.55,0.956352);transform:translateX(calc(-1 * 83.6714%))}100%{transform:translateX(calc(-1 * 200.611%))}}@keyframes secondary-indeterminate-translate-rtl{0%{animation-timing-function:cubic-bezier(0.15,0,0.515058,0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033,0.284058,0.8,0.733712);transform:translateX(calc(-1 * 37.6519%))}48.35%{animation-timing-function:cubic-bezier(0.4,0.627035,0.6,0.902026);transform:translateX(calc(-1 * 84.3862%))}100%{transform:translateX(calc(-1 * 160.278%))}}@keyframes primary-indeterminate-scale{0%{transform:scaleX(.08)}36.65%{animation-timing-function:cubic-bezier(0.334731,0.12482,0.785844,1);transform:scaleX(.08)}69.15%{animation-timing-function:cubic-bezier(0.06,0.11,0.6,1);transform:scaleX(.661479)}100%{transform:scaleX(.08)}}@keyframes secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.205028,0.057051,0.57661,0.453971);transform:scaleX(.08)}19.15%{animation-timing-function:cubic-bezier(0.152313,0.196432,0.648374,1.00432);transform:scaleX(.457104)}44.15%{animation-timing-function:cubic-bezier(0.257759,-0.003163,0.211762,1.38179);transform:scaleX(.72796)}100%{transform:scaleX(.08)}}`,ae=class extends H1(L1(M)){static get observedAttributes(){return Object.values(S2.observedAttributes)}constructor(){super(),H(this,p8,d8),this._core=new ri(new oi(this))}connectedCallback(){this._core.initialize()}attributeChangedCallback(t,e,a){switch(t){case S2.observedAttributes.DETERMINATE:this.determinate=p(a);break;case S2.observedAttributes.PROGRESS:this.progress=W(a);break;case S2.observedAttributes.BUFFER:this.buffer=W(a);break;case S2.observedAttributes.THEME:this.theme=a;break}}};s([v()],ae.prototype,"determinate",2),s([v()],ae.prototype,"progress",2),s([v()],ae.prototype,"buffer",2),s([v()],ae.prototype,"theme",2),ae=s([y({name:S2.elementName})],ae);function bh(){x(ae)}var m8=`${b}skeleton`,ni={elementName:m8};var g8='<template><div class="forge-skeleton" part="root"></div></template>',w8='@keyframes forge-skeleton-loading{100%,25%{transform:translateX(100%)}}:host{--_skeleton-animation-duration:var(--forge-skeleton-animation-duration, 1500ms);--_skeleton-width:var(--forge-skeleton-width, auto);--_skeleton-height:var(--forge-skeleton-height, 48px);--_skeleton-background:var(--forge-skeleton-background, var(--forge-theme-surface-container, #e0e0e0));--_skeleton-shape:var(--forge-skeleton-shape, calc(var(--forge-shape-medium, 4px) * var(--forge-shape-factor, 1)));--_skeleton-margin:var(--forge-skeleton-margin, var(--forge-spacing-medium, 16px) 0);--_skeleton-button-height:var(--forge-skeleton-button-height, var(--forge-button-height, 36px));--_skeleton-button-width:var(--forge-skeleton-button-width, 72px);--_skeleton-form-field-height:var(--forge-skeleton-form-field-height, 40px);--_skeleton-form-field-width:var(--forge-skeleton-form-field-width, 256px);--_skeleton-chip-height:var(--forge-skeleton-chip-height, 32px);--_skeleton-chip-width:var(--forge-skeleton-chip-width, 72px);--_skeleton-chip-shape:var(--forge-skeleton-chip-shape, calc(var(--forge-shape-extra-large, 16px) * var(--forge-shape-factor, 1)));--_skeleton-list-item-height:var(--forge-skeleton-list-item-height, 32px);--_skeleton-list-item-margin:var(--forge-skeleton-list-item-margin, 12px 8px);--_skeleton-text-height:var(--forge-skeleton-text-height, 1rem);--_skeleton-gradient-color:var(--forge-skeleton-gradient-color, var(--forge-theme-surface-container-low, #ebebeb));--_skeleton-avatar-size:var(--forge-skeleton-avatar-size, var(--forge-avatar-size, 40px));--_skeleton-avatar-shape:var(--forge-skeleton-avatar-shape, var(--forge-avatar-shape, calc(var(--forge-shape-round, 50%) * var(--forge-shape-factor, 1))))}:host{height:var(--_skeleton-height);width:var(--_skeleton-width);margin:var(--_skeleton-margin);border-radius:var(--_skeleton-shape);background-color:var(--_skeleton-background);position:relative;display:block;overflow:hidden;box-sizing:border-box}:host([hidden]){display:none}.forge-skeleton{display:block}.forge-skeleton::after{position:absolute;display:block;width:100%;height:100%;transform:translateX(-100%);background-repeat:no-repeat;background-image:linear-gradient(90deg,transparent,var(--_skeleton-gradient-color),transparent);animation:forge-skeleton-loading var(--_skeleton-animation-duration) ease-in infinite;content:""}:host([avatar]){--_skeleton-height:var(--_skeleton-avatar-size);--_skeleton-width:var(--_skeleton-avatar-size);--_skeleton-shape:var(--_skeleton-avatar-shape)}:host([list-item]){--_skeleton-height:var(--_skeleton-list-item-height);--_skeleton-margin:var(--_skeleton-list-item-margin)}:host([text]){--_skeleton-height:var(--_skeleton-text-height)}:host([stretch]){height:100%;width:100%}:host([chip]){--_skeleton-height:var(--_skeleton-chip-height);--_skeleton-width:var(--_skeleton-chip-width);--_skeleton-shape:var(--_skeleton-chip-shape)}:host([button]){--_skeleton-height:var(--_skeleton-button-height);--_skeleton-width:var(--_skeleton-button-width)}:host([form-field]){--_skeleton-height:var(--_skeleton-form-field-height);--_skeleton-width:var(--_skeleton-form-field-width)}',Y0=class extends M{constructor(){super(),H(this,g8,w8)}};Y0=s([y({name:ni.elementName})],Y0);function yh(){x(Y0)}function Lh(r,t){let e=u8(r,t),a=`list-dropdown-popup-${r.id}`;return e.addEventListener("mousedown",o=>{let n=L2(o);if(n.find(h=>h.nodeType===1&&h.hasAttribute(i2.attributes.DATA_ALLOW_FOCUS)))return;n.find(h=>h.id===a||h.id===r.id)&&o.preventDefault()}),r.id&&(e.id=a),r.popupClasses&&y1(r.popupClasses,e),e}function u8(r,t){var a;let e=document.createElement("forge-popover");return e.anchorElement=t,e.placement=r.popupPlacement||"bottom-start",e.persistent=!!r.popupStatic,e.triggerType="manual",(a=r.popupFallbackPlacements)!=null&&a.length&&(e.fallbackPlacements=r.popupFallbackPlacements),r.constrainViewportWidth&&e.setAttribute(Z.attributes.CONSTRAIN_VIEWPORT_WIDTH,""),r.popupOffset&&(e.offset=r.popupOffset),r.type==="none"&&(e.animationType="none"),e}function Ih(r){var e;let t=document.createElement(I1.elementName);switch(t.id=`list-dropdown-list-${r.id}`,r.type){case"menu":t.setAttribute("role","menu"),t.setAttribute("aria-orientation","vertical");break;default:t.setAttribute("role","listbox")}return r.type!=="menu"&&r.multiple&&t.setAttribute("aria-multiselectable","true"),(e=r==null?void 0:r.referenceElement)!=null&&e.id&&t.setAttribute("aria-labelledby",r.referenceElement.id),t}function ii(r,t,e,a=0,o=!0){let n=b8(e||r.options),i=w4(n),l=!!r.optionLimit,h=r.optionLimit||0,c=a;for(let d of n){let u=t;if(d.builder&&typeof d.builder=="function"){let _=d.builder(d);if(_){let L=document.createElement("div");L.classList.add(i2.classes.GROUP_WRAPPER),u=L,typeof _=="string"?L.innerHTML=_:_ instanceof HTMLElement&&L.appendChild(_),t.appendChild(L)}}else if(d.text){let _=document.createElement("div");_.classList.add(i2.classes.GROUP_WRAPPER);let L=document.createElement("div");L.textContent=d.text,L.classList.add("forge-typography--overline"),L.style.fontFamily="Roboto,sans-serif",L.style.fontSize="0.75rem",L.style.lineHeight="2rem",L.style.letterSpacing="0.16667em",L.style.fontWeight="500",L.style.margin="4px 8px",u=_,_.appendChild(L),t.appendChild(_)}for(let _ of d.options){if(_.divider){let z=_8();t.appendChild(z);continue}if(l&&--h<0)break;let L=r.selectedValues?r.selectedValues.some(z=>Nt(z,_.value)):!1;if(!o&&L)continue;let C=document.createElement("forge-list-item");C.value=_.value,C.focusPropagation="off",C.setAttribute("role","presentation");let A=document.createElement("button");if(A.type="button",A.id=`list-dropdown-option-${r.id}-${c++}`,A.setAttribute("role",r.type==="menu"?"menuitem":"option"),C.appendChild(A),r.wrapOptionText&&(C.wrap=!0),_.optionClass&&(typeof _.optionClass=="string"||Array.isArray(_.optionClass)&&_.optionClass.length)&&y1(_.optionClass,C),r.dense&&(C.dense=!0),r.optionBuilder&&typeof r.optionBuilder=="function"){let z=r.optionBuilder(_,C);z&&(typeof z=="string"?A.innerHTML=z:A.appendChild(z))}else if(typeof r.transform!="function")A.textContent=_.label||"";else{let z=r.transform(_.label);typeof z=="string"?A.textContent=z:typeof z=="object"&&z.nodeType!==void 0&&A.appendChild(z)}if(_.secondaryLabel){let z=document.createElement("span");z.slot="secondary-text",z.textContent=_.secondaryLabel,z.id=`list-dropdown-option-${r.id}-${c++}-secondary`,C.twoLine=!0,C.appendChild(z),A.setAttribute("aria-describedby",z.id)}if(r.multiple){let z=si(L);C.appendChild(z),_.disabled||A.setAttribute("aria-selected",`${L}`),A.setAttribute("aria-checked",`${L}`)}if(_.elementAttributes&&_.elementAttributes.forEach((z,c1)=>{C.setAttribute(c1,z)}),_.leadingBuilder){let z=_.leadingBuilder();nt(z)&&(z.slot="leading",C.appendChild(z))}else if(_.leadingIcon){let z=Mh(_.leadingIconType,_.leadingIcon,_.leadingIconClass||r.iconClass,_.leadingIconComponentProps);z.slot="leading",C.appendChild(z)}if(_.trailingBuilder){let z=_.trailingBuilder();nt(z)&&(z.slot="trailing",C.appendChild(z))}else if(_.trailingIcon){let z=Mh(_.trailingIconType,_.trailingIcon,_.trailingIconClass||r.iconClass,_.trailingIconComponentProps);z.slot="trailing",C.appendChild(z)}if(_.disabled&&(A.disabled=_.disabled),L&&(C.selected=!0),r.type!=="menu"&&A.setAttribute("aria-selected",L?"true":"false"),!_.disabled&&typeof r.cascadingElementFactory=="function"&&Array.isArray(_.options)&&_.options.length){let z=document.createElement("forge-icon");z.name="arrow_right",z.slot="trailing",C.appendChild(z);let b1={index:i.filter(K1=>!K1.divider).indexOf(_),options:_.options,parentValue:_.value},x1=r.cascadingElementFactory.call(null,b1);x1.appendChild(C),C=x1}u.appendChild(C)}}}function si(r){let t=document.createElement("forge-icon");return t.setAttribute(i2.attributes.CHECKBOX_ELEMENT,""),t.name=r?A0.name:z0.name,t.slot="leading",t.style.marginRight="16px",t.style.verticalAlign="middle",t}function _8(){return document.createElement("forge-divider")}function Mh(r="font",t,e,a){if(r==="component"){let n=document.createElement("forge-icon");return e&&n.classList.add(e),n.setAttribute("aria-hidden","true"),n.name=t,a&&Object.assign(n,a),n}let o=document.createElement("i");return o.classList.add(e||ke),o.setAttribute("aria-hidden","true"),o.textContent=t,o}function Vh(r){switch(r){case"skeleton":return x8();default:return f8()}}function f8(){let r=document.createElement("div");r.style.display="flex",r.style.justifyContent="center",r.style.alignItems="center",r.style.padding="8px",r.style.boxSizing="border-box";let t=document.createElement("forge-circular-progress");return t.style.setProperty("--forge-circular-progress-size","24px"),r.appendChild(t),r}function x8(){let r=document.createElement("forge-list"),t=document.createElement("div");t.style.minWidth="192px";for(let e=0;e<3;e++){let a=document.createElement(ni.elementName);a.setAttribute("list-item",""),t.appendChild(a)}return r.appendChild(t),r}function Eh(){let r=document.createElement(S2.elementName);return r.determinate=!1,r.style.position="absolute",r.style.top="0",r.style.left="0",r.style.right="0",r.style.width="100%",r}function b8(r){return li(r,1)?r:[{text:"",options:r}]}function li(r,t){let e=r.some(o=>k(o)&&nt(o)&&o.hasOwnProperty("options")&&(o.hasOwnProperty("text")||o.hasOwnProperty("builder"))),a=r.some(o=>k(o)&&nt(o)&&o.hasOwnProperty("label")&&o.hasOwnProperty("value"));return e&&t===1||a&&t===0}function w4(r){return li(r,1)?r.reduce((e,a)=>e.concat(a.options),[]):[...r]}var vi=class{constructor(t,e){this._adapter=t;this._open=!1;this._config=Object.assign(w({},gh),w({},e)),this._selectListener=(a,o)=>this._onSelect(a,o),this._closeListener=()=>{typeof this._config.closeCallback=="function"&&this._config.closeCallback()},this._scrollEndListener=()=>{this._config.observeScroll&&typeof this._config.scrollEndListener=="function"&&this._config.scrollEndListener()}}destroy(){this._adapter.remove()}open(){this._open||(this._open=!0,this._adapter.open(this._config,this._selectListener,this._closeListener),window.requestAnimationFrame(()=>{this._open&&this.activateInitialOption()}),this._config.observeScroll&&this._config.scrollEndListener&&this._adapter.setScrollBottomListener(this._scrollEndListener,this._config.observeScrollThreshold||0))}async close(){this._open&&(this._open=!1,this._config.observeScroll&&this._config.scrollEndListener&&this._adapter.removeScrollBottomListener(this._scrollEndListener),await this._adapter.close())}_onSelect(t,e){if(typeof this._config.activeChangeCallback=="function"&&this._config.activeChangeCallback(e),typeof this._config.selectCallback=="function"&&this._config.selectCallback(t),this._open){let a=this._config.syncWidth===void 0;this._adapter.syncWidth(a)}}getActiveOptionIndex(){return this._adapter.getActiveOptionIndex()}getActiveOption(){let t=this.getActiveOptionIndex();return t>=0?this._nonDividerOptions[t]:void 0}toggleOptionMultiple(t,e){return this._adapter.toggleOptionMultiple(t,e)}activateSelectedOption(){this._adapter.activateSelectedOption(this._config)}activateFirstOption(){let t=this._nonDividerOptions.findIndex(e=>!e.disabled);return t!==-1&&this.activateOption(t),t}activateLastOption(){let t=this._nonDividerOptions,e=t.length-1-t.findIndex(a=>!a.disabled);return e!==-1&&this.activateOption(e),e}activateOption(t,e){return this._adapter.activateOption(t,this._config.activeChangeCallback,e)}activateInitialOption(){typeof this._config.activeStartIndex=="number"&&this._nonDividerOptions[this._config.activeStartIndex]?(this.activateOption(this._config.activeStartIndex,!1),this._adapter.scrollSelectedOptionIntoView(!1)):this._config.selectedValues&&this._config.selectedValues.length?this._adapter.scrollSelectedOptionIntoView(!1):typeof this._config.visibleStartIndex=="number"&&this._nonDividerOptions[this._config.visibleStartIndex]&&this._adapter.scrollOptionIntoView(this._config.visibleStartIndex)}setSelectedValues(t){Array.isArray(t)||(t=[t]),!this._config.multiple&&t.length>1&&(t=[t[0]]),this._config.selectedValues=t,this._adapter.setSelectedValues(t,this._config.multiple)}clearActiveOption(){this._adapter.clearActiveOption()}setOptions(t){this._config.options=t,this._open&&(this._adapter.setOptions(this._config),this.activateInitialOption())}appendOptions(t){this._config.options=[...this._config.options,...t],this._open&&this._adapter.appendOptions(t,this._config)}get dropdownElement(){return this._adapter.dropdownElement}scrollSelectedOptionIntoView(t=!0){this._adapter.scrollSelectedOptionIntoView(t)}setScrollBottomListener(t,e){this._config.scrollEndListener=t,this._config.observeScroll=!0,this._config.observeScrollThreshold=e,this._adapter.setScrollBottomListener(this._scrollEndListener,this._config.observeScrollThreshold||0)}removeScrollBottomListener(){this._config.scrollEndListener=void 0,this._adapter.removeScrollBottomListener(this._scrollEndListener)}setBusyVisibility(t){this._config.allowBusy&&this._adapter.setBusyVisibility(t)}handleKey(t){switch(t){case"Enter":case"NumpadEnter":let e=this.getActiveOptionIndex(),a=this._nonDividerOptions[e];if(this._canSelectOption(a)){let i=this._adapter.getActiveOptionIdByIndex(e);i&&this._onSelect(a.value,i)}break;case"Up":case"ArrowUp":case"Down":case"ArrowDown":let o=this._nonDividerOptions;if(o.length&&o.every(i=>!this._canSelectOption(i)))return;let n=this._getNextActiveOptionIndex(t);this.activateOption(n);break;case"Home":this.activateFirstOption();break;case"End":this.activateLastOption();break}}_canSelectOption(t){return t&&!t.disabled&&!t.divider}_getNextActiveOptionIndex(t){let e=this._adapter.getActiveOptionIndex();return e===-1&&(e=this._adapter.getSelectedOptionIndex()),t==="ArrowUp"||t==="Up"?this._getPreviousHighlightableOptionIndex(e,this._nonDividerOptions):this._getNextHighlightableOptionIndex(e,this._nonDividerOptions)}_getPreviousHighlightableOptionIndex(t,e){let a=t<=0?e.length-1:t-1;return e[a].disabled?this._getPreviousHighlightableOptionIndex(a,e):a}_getNextHighlightableOptionIndex(t,e){let a=t===e.length-1?0:t+1;return e[a].disabled?this._getNextHighlightableOptionIndex(a,e):a}get _flatOptions(){return w4(this._config.options)}get _nonDividerOptions(){return this._flatOptions.filter(t=>!t.divider)}};var hi=class{constructor(t){this._targetElement=t}get dropdownElement(){return this._dropdownElement}open(t,e,a){var i,l;this._dropdownElement=Lh(t,this._targetElement),t.type!=="none"&&t.type!=="menu"?this._dropdownElement.preset="dropdown":t.type==="menu"&&(this._dropdownElement.preset="list"),t.allowBusy&&(this._busyElement=Eh(),this._busyElement.style.display="none",this._dropdownElement.appendChild(this._busyElement)),t.headerBuilder&&(this._headerElement=t.headerBuilder(),this._headerElement&&this._headerElement.setAttribute(i2.attributes.DATA_ALLOW_FOCUS,"")),t.footerBuilder&&(this._footerElement=t.footerBuilder(),this._footerElement&&this._footerElement.setAttribute(i2.attributes.DATA_ALLOW_FOCUS,"")),this._listElement=Ih(t),this.syncWidth(!!t.syncWidth,t.targetWidthCallback),this._listElement.addEventListener("forge-list-item-select",h=>{let d=h.target.querySelector("button");d.setAttribute("aria-selected","true"),e(h.detail.value,d.id)}),t.options.length?(ii(t,this._listElement),this._dropdownElement.appendChild(this._listElement),this._headerElement&&this._dropdownElement.insertAdjacentElement("afterbegin",this._headerElement),this._footerElement&&this._dropdownElement.appendChild(this._footerElement)):t.allowBusy&&(this._asyncElement=Vh(t.asyncStyle),this._dropdownElement.appendChild(this._asyncElement)),this._announcerElement=Ar(),this._announcerElement.id=`${t.id}-activedescendant`,this._dropdownElement.appendChild(this._announcerElement);let o=(i=this._targetElement.ownerDocument)!=null?i:document;((l=Gr(Z.selectors.HOST,this._targetElement))!=null?l:o.body).appendChild(this._dropdownElement),this._dropdownElement.setAttribute(Z.attributes.HOST,""),this._dropdownElement.open=!0}async close(){this._dropdownElement&&(await this._dropdownElement.hideAsync(),this.remove())}remove(){var t;(t=this._dropdownElement)==null||t.remove(),this._dropdownElement=void 0,this._listElement=void 0,this._announcerElement=void 0}setScrollBottomListener(t,e){if(this._dropdownElement&&!this._scrollObserver){let a={scrollThreshold:e},o=g(this._dropdownElement,Z.selectors.SURFACE);this._scrollObserver=new $r(o,a),this._scrollObserver.addListener(_e.ScrolledEnd,t)}}removeScrollBottomListener(t){this._scrollObserver&&this._scrollObserver.removeListener(_e.ScrolledEnd,t)}getActiveOptionIndex(){if(!this._dropdownElement)return-1;let t=this._getListItemElements(),e=[...t].reverse().find(a=>a.active);return e?t.indexOf(e):-1}getSelectedOptionIndex(){return this._getListItemElements().findIndex(e=>e.selected)}getActiveOptionIdByIndex(t){if(!this._dropdownElement)return null;let a=this._getListItemElements()[t],o=a==null?void 0:a.querySelector("button");return o?o.id:null}toggleOptionMultiple(t,e){if(!this._dropdownElement)return;let a=this._getListItemElements();a.length&&a[t]&&this._toggleSelectedOption(a[t],e)}scrollOptionIntoView(t,e=!0){let a=this._getListItemElements()[t];a&&this._scrollListItemIntoView(a,e?"smooth":"auto","center")}scrollSelectedOptionIntoView(t=!0){let e=this._getSelectedListItem();this._scrollListItemIntoView(e,t?"smooth":"auto","center")}activateSelectedOption(t){let e=this._getListItemElements();e.length&&e.filter(n=>n.active).forEach(n=>n.active=!1);let a=this._getSelectedListItem();a&&this._activateListOption(a,t.activeChangeCallback)}activateOption(t,e,a=!0){if(!this._dropdownElement)return;let o=this._getListItemElements();o.length&&(o.filter(i=>i.active).forEach(i=>i.active=!1),this._activateListOption(o[t],e),this._scrollListItemIntoView(o[t],a?"smooth":"auto"))}setSelectedValues(t,e=!1){if(!this._dropdownElement)return;let a=this._getListItemElements();for(let o of a){let n=t.some(i=>Nt(i,o.value));if(o.selected=n,e){let i=o.querySelector(`[${i2.attributes.CHECKBOX_ELEMENT}]`);if(i){let l=si(n);e0(l,i)}}}}clearActiveOption(){this._getListItemElements().forEach(e=>e.active=!1)}async syncWidth(t,e){var n,i;let a=t?"--forge-popover-width":"--forge-popover-min-width",o=this._getTargetElementWidth(e);(n=this._dropdownElement)==null||n.style.setProperty(a,`${o}px`),(i=this._listElement)==null||i.style.setProperty("min-width",`calc(${o}px - var(--forge-scrollbar-width, 16px))`)}setOptions(t){!this._dropdownElement||!this._listElement||(this._asyncElement&&this._asyncElement.isConnected&&Te(this._asyncElement),this._busyElement&&(this._busyElement.style.display="none"),this._listElement.isConnected||this._dropdownElement.appendChild(this._listElement),r2(this._listElement),ii(t,this._listElement),this._headerElement&&!this._headerElement.isConnected&&this._dropdownElement.insertAdjacentElement("afterbegin",this._headerElement),this._footerElement&&!this._footerElement.isConnected&&this._dropdownElement.insertAdjacentElement("beforeend",this._footerElement),"position"in this._dropdownElement&&typeof this._dropdownElement.position=="function"&&this._dropdownElement.position())}appendOptions(t,e){!this._dropdownElement||!this._listElement||ii(e,this._listElement,t,this._listElement.childElementCount,!1)}setBusyVisibility(t){this._dropdownElement&&(t?this._busyElement.style.removeProperty("display"):this._busyElement.style.display="none")}getScreenWidth(){return window.innerWidth}_getListItemElements(){return this._dropdownElement?Array.from(this._dropdownElement.querySelectorAll(l1.elementName)):[]}_toggleSelectedOption(t,e){if(!this._dropdownElement)return;let a=this._getListItemElements();a.length&&a.filter(l=>l!==t&&l.active).forEach(l=>l.active=!1),t.selected=e;let o=t.querySelector("button");o.setAttribute("aria-selected",`${e}`),o.setAttribute("aria-checked",`${e}`);let n=t.querySelector(`${h1.elementName}[slot=leading]`);if(n){let i=si(e);e0(i,n)}}_getTargetElementWidth(t){return t&&t0(t)?t():this._targetElement.getBoundingClientRect().width}_activateListOption(t,e){let a=t==null?void 0:t.querySelector("button");t&&a&&!a.disabled&&(t.active=!0,e&&t0(e)&&e(a.id))}_scrollListItemIntoView(t,e="auto",a="nearest"){if(t&&this._dropdownElement&&this._dropdownElement.isConnected){let o=g(this._dropdownElement,Z.selectors.SURFACE);o&&Dr(o,t,e,a)}}_getSelectedListItem(){return this._getListItemElements().find(e=>e.selected)}};var Pe=class{constructor(t,e){this._targetElement=t;q.define([A0,z0]),this._core=new vi(new hi(this._targetElement),e)}destroy(){this._core.destroy()}open(){this._core.open()}close(){return this._core.close()}getActiveOptionIndex(){return this._core.getActiveOptionIndex()}getActiveOption(){return this._core.getActiveOption()}toggleOptionMultiple(t,e){return this._core.toggleOptionMultiple(t,e)}activateSelectedOption(){this._core.activateSelectedOption()}activateFirstOption(){return this._core.activateFirstOption()}activateOption(t){return this._core.activateOption(t)}activateInitialOption(){return this._core.activateInitialOption()}clearActiveOption(){this._core.clearActiveOption()}setSelectedValues(t){return this._core.setSelectedValues(t)}get dropdownElement(){return this._core.dropdownElement}setOptions(t){this._core.setOptions(t)}appendOptions(t){this._core.appendOptions(t)}scrollSelectedOptionIntoView(t){this._core.scrollSelectedOptionIntoView()}setScrollBottomListener(t,e){this._core.setScrollBottomListener(t,e)}removeScrollBottomListener(){this._core.removeScrollBottomListener()}setBusyVisibility(t){this._core.setBusyVisibility(t)}handleKey(t){this._core.handleKey(t)}};var K0=class{constructor(){this._popupClasses=[];this._syncPopupWidth=!1;this._optionLimit=0;this._observeScroll=!1;this._observeScrollThreshold=0;this._constrainPopupWidth=!0;this._wrapOptionText=!1}get syncPopupWidth(){return this._syncPopupWidth}set syncPopupWidth(t){this._syncPopupWidth=t}get popupClasses(){return this._popupClasses}set popupClasses(t){typeof t=="string"&&(t=[t]),Array.isArray(t)&&(this._popupClasses=t)}get observeScroll(){return this._observeScroll}set observeScroll(t){this._observeScroll=t}get observeScrollThreshold(){return this._observeScrollThreshold}set observeScrollThreshold(t){this._observeScrollThreshold=t}get optionLimit(){return this._optionLimit}set optionLimit(t){this._optionLimit=t}get popupHeaderBuilder(){return this._popupHeaderBuilder}set popupHeaderBuilder(t){this._popupHeaderBuilder=t}get popupFooterBuilder(){return this._popupFooterBuilder}set popupFooterBuilder(t){this._popupFooterBuilder=t}get constrainPopupWidth(){return this._constrainPopupWidth}set constrainPopupWidth(t){this._constrainPopupWidth=t}get wrapOptionText(){return this._wrapOptionText}set wrapOptionText(t){this._wrapOptionText=t}_applySelection(){}};var ci=class extends K0{constructor(e){super();this._config=e;this._open=!1;this._options=[];this._childOpen=!1;this._popupHasMouse=!1;this._targetMouseEnterListener=a=>this._onTargetMouseEnter(a),this._targetMouseLeaveListener=a=>this._onTargetMouseLeave(a),this._childPopupMouseEnterListener=()=>this._onChildPopupMouseEnter(),this._childPopupMouseLeaveListener=()=>this._onChildPopupMouseLeave(),this._documentMouseMoveListener=a=>this._mouseCoords={x:a.pageX,y:a.pageY}}_onChildPopupMouseEnter(){this._popupHasMouse=!0}_onChildPopupMouseLeave(){this._popupHasMouse=!1,setTimeout(()=>{let e=document.elementFromPoint(this._mouseCoords.x,this._mouseCoords.y);!this._popupHasMouse&&!this._childOpen&&(!e||!this._isOwnElement(e))&&(this._setCascadeTargetInactive(),this._closeDropdown())},this._config.popupTimeout)}_onTargetMouseEnter(e){this._options.length&&this._openDropdown({fromKeyboard:!1})}_onTargetMouseLeave(e){this._activeMouseLeaveTimeout=window.setTimeout(()=>{if(!(!this._open||this._childOpen)){if(this._mouseCoords){let a=document.elementFromPoint(this._mouseCoords.x,this._mouseCoords.y);if(a&&this._isOwnElement(a))return}this._setCascadeTargetInactive(),this._closeDropdown()}},this._config.targetTimeout)}_clearMouseLeaveTimeout(){this._activeMouseLeaveTimeout!==void 0&&window.clearTimeout(this._activeMouseLeaveTimeout)}};var pi=class extends I{constructor(e){super(e);this._childMenus=new Map}get targetElement(){return this._targetElement}getDropdownElement(){var e,a;return(a=(e=this._listDropdown)==null?void 0:e.dropdownElement)!=null?a:null}hasTargetElement(){return!!this._targetElement}initializeTarget(){this._targetElement=this._component.querySelector(e1.selectors.TOGGLE),this._targetElement||(this._targetElement=this._component.firstElementChild)}initializeAccessibility(e){this._targetElement&&(this._targetElement.setAttribute("aria-atomic","true"),this._targetElement.setAttribute("aria-live","assertive"),this._targetElement.setAttribute("aria-haspopup","true"),this._targetElement.setAttribute("aria-expanded","false"),this._targetElement.hasAttribute("aria-label")||this._targetElement.setAttribute("aria-label",this._targetElement.textContent||""))}addTargetListener(e,a,o=!1){this._targetElement&&this._targetElement.addEventListener(e,a,o)}removeTargetListener(e,a){this._targetElement&&this._targetElement.removeEventListener(e,a)}attachMenu(e){this._listDropdown||!this._targetElement||(this._listDropdown=new Pe(this._targetElement,e),this._listDropdown.open(),this._targetElement.setAttribute("aria-expanded","true"),this._targetElement.setAttribute("aria-controls",`list-dropdown-popup-${e.id}`))}setOptions(e){var a;(a=this._listDropdown)==null||a.setOptions(e)}destroyListDropdown(){var e;(e=this._listDropdown)==null||e.destroy(),this._listDropdown=void 0}async detachMenu(){var e,a,o,n,i;(e=this._targetElement)==null||e.removeAttribute("aria-activedescendant"),(a=this._targetElement)==null||a.removeAttribute("aria-expanded"),(o=this._targetElement)==null||o.removeAttribute("aria-controls"),await((n=this._listDropdown)==null?void 0:n.close()),(i=this._listDropdown)==null||i.destroy(),this._listDropdown=void 0}setActiveOption(e){var a;(a=this._listDropdown)==null||a.activateOption(e)}activateFirstOption(){var e;(e=this._listDropdown)==null||e.activateFirstOption()}setCascadeTargetInactive(){let e=this._targetElement;e!=null&&e.active&&(e.active=!1)}getActiveOptionIndex(){var e,a;return(a=(e=this._listDropdown)==null?void 0:e.getActiveOptionIndex())!=null?a:-1}focusTarget(){var e,a;(e=this._targetElement)!=null&&e.matches(":focus-within")||(a=this._targetElement)==null||a.focus()}isTargetFocused(){return document.activeElement===this._targetElement}updateActiveDescendant(e){this._targetElement&&(e?this._targetElement.setAttribute("aria-activedescendant",e):this._targetElement.removeAttribute("aria-activedescendant"))}addDropdownListener(e,a){!this._listDropdown||!this._listDropdown.dropdownElement||this._listDropdown.dropdownElement.addEventListener(e,a)}isOwnElement(e){return!this._targetElement||!this._listDropdown||!this._listDropdown.dropdownElement?!1:this._targetElement.contains(e)||!!this._listDropdown.dropdownElement.contains(e)}propagateKey(e){var a;(a=this._listDropdown)==null||a.handleKey(e)}proxyKeyboardEventToChild(e,a){if(!this.getDropdownElement())return;let o=this._getOpenChildMenu(a);o&&o.propagateKeyEvent(e)}toggleChildMenu(e,a){let i=this._getListItems()[e].parentElement;i&&i.tagName.toLowerCase()===e1.elementName&&(a===void 0?i.open=!i.open:i.open=a,i.activateFirstOption())}createChildMenu(e,a,o,n,i){let l=document.createElement("forge-menu");return l.style.display="block",l.addEventListener(e1.events.OPEN,()=>{this._childMenus.set(e,l),o(e)}),l.addEventListener(e1.events.CLOSE,()=>{this._childMenus.delete(e),n(e)}),l.addEventListener(e1.events.SELECT,h=>{h.stopPropagation(),i(t1(w({},h.detail),{parentValue:a}))}),l}closeOtherChildMenus(e){let a=[];this._childMenus.forEach((o,n)=>{n!==e&&(o.open=!1,a.push(n))}),a.forEach(o=>this._childMenus.delete(o))}setSelectedValues(e){var a;(a=this._listDropdown)==null||a.setSelectedValues(e)}_getOpenChildMenu(e){if(!this.getDropdownElement())return null;let a=this._getOwnList(e);return a?a.querySelector(`${e1.elementName}[${e1.attributes.OPEN}]`):null}_getOwnList(e){let a=this.getDropdownElement();return a?a.querySelector(`${I1.elementName}[id="list-dropdown-list-${e}"]`):null}_getListItems(){let e=this.getDropdownElement();if(!e)return[];let a=e.querySelector(I1.elementName);return a?Array.from(a.querySelectorAll(l1.elementName)):[]}};var di=class extends ci{constructor(e){super({popupTimeout:e1.numbers.POPUP_MOUSE_LEAVE_TIMEOUT,targetTimeout:e1.numbers.CHILD_MOUSE_LEAVE_TIMEOUT});this._adapter=e;this._placement="bottom-start";this._fallbackPlacements=[];this._dense=!1;this._iconClass=ke;this._persistSelection=!1;this._mode="click";this._identifier=P2(),this._clickListener=a=>this._onTargetClick(a),this._blurListener=a=>this._onTargetBlur(a),this._selectListener=a=>this._handleSelectEvent(a),this._keydownListener=a=>this.onKeydown(a),this._activeChangeListener=a=>this._onActiveOptionChanged(a)}initialize(){this._adapter.initializeTarget(),this._adapter.initializeAccessibility(this._identifier),this._initializeInteractionListeners()}destroy(){this._closeMenu({destroy:!0}),this._destroyInteractionListeners()}activateFirstOption(){this._adapter.activateFirstOption()}_applyMode(){this._adapter.hasTargetElement()&&(this._mode!=="cascade"?this._adapter.addTargetListener("click",this._clickListener):this._attachCascadingListeners())}_initializeInteractionListeners(){this._adapter.hasTargetElement()&&(this._applyMode(),this._adapter.addTargetListener("keydown",this._keydownListener,!0),this._adapter.addTargetListener("focusout",this._blurListener))}_destroyInteractionListeners(){this._adapter.hasTargetElement()&&(this._adapter.removeTargetListener("keydown",this._clickListener),this._adapter.removeTargetListener("focusout",this._blurListener),this._adapter.removeTargetListener("click",this._clickListener),this._detachCascadingListeners())}_attachCascadingListeners(){this._adapter.addTargetListener("mouseenter",this._targetMouseEnterListener),this._adapter.addTargetListener("mouseleave",this._targetMouseLeaveListener),this._adapter.addDocumentListener("mousemove",this._documentMouseMoveListener)}_detachCascadingListeners(){this._adapter.removeTargetListener("mouseenter",this._targetMouseEnterListener),this._adapter.removeTargetListener("mouseleave",this._targetMouseLeaveListener),this._adapter.removeDocumentListener("mousemove",this._documentMouseMoveListener)}get _nonDividerOptions(){return this._flatOptions.filter(e=>!e.divider)}get _flatOptions(){return this._flattenOptions(this._options)}_flattenOptions(e){return li(e,1)?e.reduce((a,o)=>o.options?a.concat(o.options):a,[]):e}_onTargetClick(e){if(this._open){this._closeDropdown();return}this.open=!this._open,this._open&&this._adapter.focusTarget()}_onTargetBlur(e){this._open&&this._closeDropdown()}_onActiveOptionChanged(e){let a={id:e},o=this._adapter.emitHostEvent(e1.events.ACTIVE_CHANGE,a,!0,!0);this._mode!=="cascade"&&o&&this._adapter.updateActiveDescendant(e)}onKeydown(e){if(this._childOpen){this._adapter.proxyKeyboardEventToChild(e,this._identifier);return}switch(e.code){case"Escape":this._open&&(e.preventDefault(),e.stopPropagation(),this._closeDropdown());break;case"Space":e.preventDefault(),this._open?this._closeDropdown():this._openDropdown({fromKeyboard:!0});break;case"Home":case"End":this._open&&(e.preventDefault(),this._adapter.propagateKey(e.code));break;case"Enter":if(e.preventDefault(),!this._open){e.preventDefault(),this._openDropdown({fromKeyboard:!0});return}e.stopImmediatePropagation(),this._adapter.propagateKey(e.code);let a=this._adapter.getActiveOptionIndex(),o=this._nonDividerOptions[a];o&&o.options&&o.options.length&&this._adapter.toggleChildMenu(a);break;case"ArrowUp":case"ArrowDown":if(this._open&&e.stopImmediatePropagation(),e.preventDefault(),!this._open&&e.code==="ArrowDown"){this._openDropdown({fromKeyboard:!0}),this._adapter.activateFirstOption();return}this._adapter.propagateKey(e.code);break;case"ArrowLeft":this._open&&e.stopImmediatePropagation(),this._mode==="cascade"&&this._open&&this._closeDropdown();break;case"ArrowRight":if(this._open&&e.stopImmediatePropagation(),!this._open)return;let n=this._adapter.getActiveOptionIndex(),i=this._nonDividerOptions[n];if(i&&i.options){this._adapter.toggleChildMenu(n,e.code==="ArrowRight");return}break}}async _openMenu({fromKeyboard:e}={}){this._open=!0;let a=[];if(typeof this._optionsFactory=="function")this._loadOptionsAsync(),this._options=[];else{if(!this._options||!this._options.length)return;a=this._options}this._persistSelection||a.forEach(i=>i.selected=!1),this._mapIconToLeadingIcon();let o=this._persistSelection?this._getSelectedValues():[],n={id:this._identifier,referenceElement:this._adapter.targetElement,type:"menu",options:this._options,selectedValues:o,iconClass:this._iconClass,dense:this._dense,multiple:!1,popupStatic:!0,allowBusy:!0,asyncStyle:"spinner",optionBuilder:this._optionBuilder,optionLimit:this._optionLimit,headerBuilder:this._popupHeaderBuilder,footerBuilder:this._popupFooterBuilder,observeScroll:this._observeScroll,observeScrollThreshold:this._observeScrollThreshold,popupPlacement:this._placement,popupFallbackPlacements:this._fallbackPlacements,activeStartIndex:e?0:void 0,popupClasses:[e1.classes.POPUP,e1.classes.MENU,...this._popupClasses],syncWidth:this._syncPopupWidth,activeChangeCallback:this._activeChangeListener,selectCallback:this._selectListener,popupOffset:this._popupOffset,cascadingElementFactory:i=>this._createCascadingElement(i)};this._adapter.setHostAttribute(e1.attributes.OPEN,""),this._adapter.attachMenu(n),this._mode==="cascade"&&(this._adapter.addDropdownListener("mouseenter",this._childPopupMouseEnterListener),this._adapter.addDropdownListener("mouseleave",this._childPopupMouseLeaveListener)),this._adapter.addDropdownListener(e1.events.ACTIVE_CHANGE,i=>{this._onActiveOptionChanged(i.detail.id)}),this._adapter.emitHostEvent(e1.events.OPEN)}_closeMenu({destroy:e=!1}={}){this._open=!1,this._childOpen=!1,e?this._adapter.destroyListDropdown():this._adapter.detachMenu(),this._activeMouseLeaveTimeout!==void 0&&window.clearTimeout(this._activeMouseLeaveTimeout),this._adapter.removeHostAttribute(e1.attributes.OPEN),this._adapter.emitHostEvent(e1.events.CLOSE)}_loadOptionsAsync(){return this._optionsFactory?Promise.resolve(this._optionsFactory()).then(e=>{if(this._persistSelection||this._flattenOptions(e).filter(o=>o.selected).forEach(o=>o.selected=!1),this._open)if(e&&rt(e)&&e.length){this._options=e,this._mapIconToLeadingIcon(),this._adapter.setOptions(e);let a=this._getSelectedValues();a.length&&this._adapter.setSelectedValues(a)}else this._open&&this._closeDropdown()}).catch(e=>{console.error("An unexpected error ocurred while opening the menu:",e),this._open&&this._closeDropdown()}):(this._open&&this._closeMenu(),Promise.resolve())}_handleSelectEvent(e){let a=this._nonDividerOptions.findIndex(o=>o.value===e);a<0||this._selectOptionByIndex(a)}_selectActiveOption(){let e=this._adapter.getActiveOptionIndex();e>=0&&this._nonDividerOptions[e]&&this._selectOptionByIndex(e)}_selectOptionByIndex(e){let{options:a,value:o}=this._nonDividerOptions[e];if(a){this._adapter.setActiveOption(e);return}this._closeDropdown();let n={index:e,value:o};!this._adapter.emitHostEvent(e1.events.SELECT,n,!0,!0)||(this._selectedValue=this._persistSelection?o:void 0)}_getSelectedValues(){let e=this._flatOptions.filter(a=>a.selected).map(a=>a.value);return this._selectedValue!==void 0&&e.push(this._selectedValue),e}_onCascadingOptionSelected(e){this._persistSelection&&(this._selectedValue=e.value),this._adapter.emitHostEvent(e1.events.SELECT,e),this._closeDropdown()}_onCascadingChildOpen(e){super._clearMouseLeaveTimeout(),this._adapter.closeOtherChildMenus(e),this._childOpen=!0,this._adapter.setActiveOption(e)}_onCascadingChildClose(e){this._childOpen=!1}_closeDropdown(){this._closeMenu()}_openDropdown({fromKeyboard:e}={}){this._openMenu({fromKeyboard:e})}_setCascadeTargetInactive(){this._adapter.setCascadeTargetInactive()}_isOwnElement(e){return this._adapter.isOwnElement(e)}_createCascadingElement({index:e,options:a,parentValue:o}){let n=this._adapter.createChildMenu(e,o,this._onCascadingChildOpen.bind(this),this._onCascadingChildClose.bind(this),this._onCascadingOptionSelected.bind(this));return n.mode="cascade",n.popupOffset={mainAxis:0,crossAxis:-8},n.dense=this._dense,n.placement="right-start",n.fallbackPlacements=["left-start","right-start"],n.persistSelection=this._persistSelection,this._persistSelection&&(n.selectedValue=this._selectedValue),n.options=a,n.optionBuilder=this._optionBuilder,n.iconClass=this._iconClass,n}_mapIconToLeadingIcon(){this._flatOptions.filter(e=>e.icon).forEach(e=>e.leadingIcon=e.icon)}get open(){return this._open}set open(e){e=!!e,this._open!==e&&(this._open=e,e?this._openDropdown():this._closeDropdown())}set options(e){if(typeof e=="function")this.optionsFactory=e;else if(this.optionsFactory=void 0,this._options=e.map(a=>w({},a)),this._open&&(this._mapIconToLeadingIcon(),this._adapter.setOptions(this._options),this._persistSelection)){let a=this._getSelectedValues();a.length&&this._adapter.setSelectedValues(a)}}get options(){return this._options?this._flatOptions.map(e=>w({},e)):[]}set optionsFactory(e){this._optionsFactory=e}set selectedIndex(e){let a=this._nonDividerOptions[e];a&&a.value!==this._selectedValue&&(this.selectedValue=a.value)}get selectedIndex(){return this._selectedValue!==void 0?this._nonDividerOptions.findIndex(e=>e.value===this._selectedValue):-1}set selectedValue(e){this._selectedValue!==e&&(this._selectedValue=e,this._adapter.setSelectedValues(this._selectedValue))}get selectedValue(){return this._selectedValue}get placement(){return this._placement}set placement(e){this._placement!==e&&(this._placement=e||"bottom-start",this._adapter.setHostAttribute(e1.attributes.PLACEMENT,this._placement))}get fallbackPlacements(){return this._fallbackPlacements}set fallbackPlacements(e){this._fallbackPlacements=Array.isArray(e)?e:[]}get dense(){return this._dense}set dense(e){this._dense=e}get iconClass(){return this._iconClass}set iconClass(e){this._iconClass=e}get persistSelection(){return this._persistSelection}set persistSelection(e){this._persistSelection!==e&&(this._persistSelection=e,this._adapter.toggleHostAttribute(e1.attributes.PERSIST_SELECTION,this._persistSelection),this._persistSelection||(this._flatOptions.forEach(a=>a.selected=!1),this._selectedValue=void 0))}get mode(){return this._mode}set mode(e){this._mode!==e&&(this._mode=e,this._destroyInteractionListeners(),this._applyMode(),this._adapter.setHostAttribute(e1.attributes.MODE,this._mode))}get popupOffset(){return this._popupOffset}set popupOffset(e){this._popupOffset=e}get optionBuilder(){return this._optionBuilder}set optionBuilder(e){this._optionBuilder=e}get popupElement(){return this._adapter.getDropdownElement()}};var y8="<template><slot></slot></template>",M8=":host{display:inline-flex}:host([hidden]){display:none}",x2=class extends R2{static get observedAttributes(){return[e1.attributes.OPEN,e1.attributes.PLACEMENT,e1.attributes.SELECTED_INDEX,e1.attributes.SELECTED_VALUE,e1.attributes.DENSE,e1.attributes.ICON_CLASS,e1.attributes.PERSIST_SELECTION,e1.attributes.MODE,e1.attributes.SYNC_POPUP_WIDTH,e1.attributes.POPUP_CLASSES,e1.attributes.OPTION_LIMIT,e1.attributes.OBSERVE_SCROLL,e1.attributes.OBSERVE_SCROLL_THRESHOLD]}constructor(){super(),q.define(q5),this._core=new di(new pi(this)),H(this,y8,M8)}connectedCallback(){this.querySelector(e1.selectors.TOGGLE)?this._core.initialize():I0(this,e1.selectors.TOGGLE).then(()=>this._core.initialize())}attributeChangedCallback(t,e,a){switch(super.attributeChangedCallback(t,e,a),t){case e1.attributes.OPEN:this._core.open=k(a);break;case e1.attributes.PLACEMENT:this._core.placement=a;break;case e1.attributes.SELECTED_INDEX:this._core.selectedIndex=Number(a);break;case e1.attributes.SELECTED_VALUE:this._core.selectedValue=a;break;case e1.attributes.DENSE:this._core.dense=p(a);break;case e1.attributes.ICON_CLASS:this._core.iconClass=a;break;case e1.attributes.PERSIST_SELECTION:this.persistSelection=p(a);break;case e1.attributes.MODE:this.mode=a;break}}disconnectedCallback(){this._core.destroy()}propagateKeyEvent(t){this._core.onKeydown(t)}activateFirstOption(){this._core.activateFirstOption()}};s([v()],x2.prototype,"open",2),s([v()],x2.prototype,"options",2),s([v()],x2.prototype,"selectedIndex",2),s([v()],x2.prototype,"selectedValue",2),s([v()],x2.prototype,"placement",2),s([v()],x2.prototype,"fallbackPlacements",2),s([v()],x2.prototype,"dense",2),s([v()],x2.prototype,"iconClass",2),s([v()],x2.prototype,"persistSelection",2),s([v()],x2.prototype,"mode",2),s([v()],x2.prototype,"popupOffset",2),s([v()],x2.prototype,"optionBuilder",2),s([v({set:!1})],x2.prototype,"popupElement",2),x2=s([y({name:e1.elementName,dependencies:[P1,h2]})],x2);function Ch(){x(x2)}var H8=`${b}app-bar-help-button`,L8={ICON:"icon"},I8={ICON:"help"},V8=["aria-label","aria-labelledby"],Ne={elementName:H8,attributes:L8,forwardedAttributes:V8,defaults:I8};var mi=class extends I{constructor(t){super(t)}initialize(){this._menuElement=Ft(this._component,e1.elementName),this._iconButtonElement=Ft(this._component,J.elementName),this._iconElement=Ft(this._component,h1.elementName);let t=this._iconButtonElement.getAttribute("aria-labelledby");this._forwardObserver=S0(this._component,Ne.forwardedAttributes,(e,a)=>{e==="aria-labelledby"&&!a&&(a=t),K(this._iconButtonElement,!!a,e,a!=null?a:void 0)})}destroy(){var t;(t=this._forwardObserver)==null||t.disconnect(),this._forwardObserver=void 0}setMenuOptions(t){this._menuElement.options=t}setIcon(t){this._iconElement.name=t}};var gi=class{constructor(t){this._adapter=t;this._options=[];this._icon=Ne.defaults.ICON;this._isInitialized=!1}initialize(){this._adapter.initialize(),this._adapter.setMenuOptions(this._options),this._adapter.setIcon(this._icon),this._isInitialized=!0}destroy(){this._adapter.destroy(),this._isInitialized=!1}get options(){return this._options}set options(t){this._options=t.map(e=>w({},e)),this._isInitialized&&this._adapter.setMenuOptions(t)}get icon(){return this._icon}set icon(t){this._icon!==t&&(this._icon=t||Ne.defaults.ICON,this._isInitialized&&this._adapter.setIcon(t),this._adapter.setHostAttribute(Ne.attributes.ICON,this._icon))}};var E8='<template><forge-menu placement="bottom-end"><forge-icon-button><forge-icon name="help"></forge-icon></forge-icon-button><forge-tooltip type="label" placement="bottom">Help</forge-tooltip></forge-menu></template>',q0=class extends M{static get observedAttributes(){return[Ne.attributes.ICON]}constructor(){super(),q.define(e3),this._core=new gi(new mi(this))}initializedCallback(){V0(this,E8)}connectedCallback(){this._core.initialize()}disconnectedCallback(){this._core.destroy()}attributeChangedCallback(t,e,a){switch(t){case Ne.attributes.ICON:this.icon=a;break}}};s([v()],q0.prototype,"options",2),s([v()],q0.prototype,"icon",2),q0=s([y({name:Ne.elementName,dependencies:[x2,n1,p1]})],q0);function zh(){x(q0)}var u4=`${b}profile-card`,C8={FULL_NAME:"full-name",EMAIL:"email",SIGN_OUT:"sign-out",PROFILE:"profile",SIGN_OUT_TEXT:"sign-out-text",PROFILE_TEXT:"profile-text",AVATAR_TEXT:"avatar-text",AVATAR_ICON:"avatar-icon",AVATAR_IMAGE_URL:"avatar-image-url",AVATAR_LETTER_COUNT:"avatar-letter-count"},z8={FULL_NAME:".full-name",EMAIL:".email",AVATAR:".avatar > forge-avatar",ACTION_TOOLBAR:"#action-toolbar",PROFILE_BUTTON:"#profile-button",SIGN_OUT_BUTTON:"#sign-out-button"},A8={SHOW_SIGN_OUT_BUTTON:!0,SHOW_PROFILE_BUTTON:!1,SIGN_OUT_BUTTON_TEXT:"Sign out",PROFILE_BUTTON_TEXT:"Profile"},B8={SIGN_OUT:`${u4}-sign-out`,PROFILE:`${u4}-profile`},Y={elementName:u4,attributes:C8,selectors:z8,defaults:A8,events:B8};var wi=class extends I{constructor(t){super(t),this._fullNameElement=g(t,Y.selectors.FULL_NAME),this._emailElement=g(t,Y.selectors.EMAIL),this._avatarElement=g(t,Y.selectors.AVATAR),this._actionToolbar=g(t,Y.selectors.ACTION_TOOLBAR),this._profileButton=g(t,Y.selectors.PROFILE_BUTTON),this._signOutButton=g(t,Y.selectors.SIGN_OUT_BUTTON)}setFullName(t){this._fullNameElement.textContent=t}setEmail(t){this._emailElement.textContent=t}setAvatarText(t){r2(this._avatarElement),this._avatarElement.text=t}setAvatarIcon(t){if(t){let e=new P0({props:{name:t}});this._avatarElement.replaceChildren(e.element)}else r2(this._avatarElement)}setAvatarImageUrl(t){this._avatarElement.imageUrl=t}setAvatarLetterCount(t){this._avatarElement.letterCount=t}setActionToolbarVisibility(t){t?this._actionToolbar.style.removeProperty("display"):this._actionToolbar.style.display="none"}setProfileButtonVisibility(t){t?this._profileButton.style.removeProperty("display"):this._profileButton.style.display="none"}setSignOutButtonVisibility(t){t?this._signOutButton.style.removeProperty("display"):this._signOutButton.style.display="none"}setSignOutButtonText(t){this._signOutButton.textContent=t}setProfileButtonText(t){this._profileButton.textContent=t}setProfileButtonListener(t){this._profileButton.addEventListener("click",t)}setSignOutButtonListener(t){this._signOutButton.addEventListener("click",t)}requestProfileButtonFocus(t){window.requestAnimationFrame(()=>this._profileButton.focus(t))}requestSignOutButtonFocus(t){window.requestAnimationFrame(()=>this._signOutButton.focus(t))}};var ui=class{constructor(t){this._adapter=t;this._showSignOutButton=Y.defaults.SHOW_SIGN_OUT_BUTTON;this._showProfileButton=Y.defaults.SHOW_PROFILE_BUTTON;this._signOutButtonText=Y.defaults.SIGN_OUT_BUTTON_TEXT;this._profileButtonText=Y.defaults.PROFILE_BUTTON_TEXT;this._profileListener=e=>this._onProfileButtonClick(e),this._signOutListener=e=>this._onSignOutButtonClick(e)}initialize(){this._adapter.setProfileButtonListener(this._profileListener),this._adapter.setSignOutButtonListener(this._signOutListener)}focus(t){this._showSignOutButton?this._adapter.requestSignOutButtonFocus(t1(w({},t),{focusVisible:!0})):this._showProfileButton&&this._adapter.requestProfileButtonFocus(t1(w({},t),{focusVisible:!0}))}_setActionVisibility(){let t=this._showSignOutButton||this._showProfileButton;this._adapter.setActionToolbarVisibility(t),this._adapter.setSignOutButtonVisibility(this._showSignOutButton),this._adapter.setProfileButtonVisibility(this._showProfileButton)}_onProfileButtonClick(t){t.stopPropagation(),this._adapter.emitHostEvent(Y.events.PROFILE)}_onSignOutButtonClick(t){t.stopPropagation(),this._adapter.emitHostEvent(Y.events.SIGN_OUT)}get fullName(){return this._fullName}set fullName(t){this._fullName!==t&&(this._fullName=t!=null?t:"",this._adapter.setFullName(this._fullName),this._avatarText||this._adapter.setAvatarText(this._fullName),this._adapter.toggleHostAttribute(Y.attributes.FULL_NAME,!!this._fullName,this._fullName))}get email(){return this._email}set email(t){this._email!==t&&(this._email=t!=null?t:"",this._adapter.setEmail(this._email),this._adapter.toggleHostAttribute(Y.attributes.EMAIL,!!this._email,this._email))}get avatarText(){return this._avatarText}set avatarText(t){this._avatarText!==t&&(this._avatarText=t!=null?t:"",this._adapter.setAvatarText(this._avatarText),this._adapter.toggleHostAttribute(Y.attributes.AVATAR_TEXT,!!this._avatarText,this._avatarText))}get avatarIcon(){return this._avatarIcon}set avatarIcon(t){this._avatarIcon!==t&&(this._avatarIcon=t!=null?t:"",this._adapter.setAvatarIcon(this._avatarIcon),this._adapter.toggleHostAttribute(Y.attributes.AVATAR_ICON,!!this._avatarIcon,this._avatarIcon))}get avatarImageUrl(){return this._avatarImageUrl}set avatarImageUrl(t){this._avatarImageUrl!==t&&(this._avatarImageUrl=t,this._adapter.setAvatarImageUrl(this._avatarImageUrl),this._adapter.toggleHostAttribute(Y.attributes.AVATAR_IMAGE_URL,!!this._avatarImageUrl,this._avatarImageUrl))}get avatarLetterCount(){return this._avatarLetterCount}set avatarLetterCount(t){this._avatarLetterCount!==t&&(this._avatarLetterCount=t,this._adapter.setAvatarLetterCount(this._avatarLetterCount),this._adapter.toggleHostAttribute(Y.attributes.AVATAR_LETTER_COUNT,!!this._avatarLetterCount,`${this._avatarLetterCount}`))}get signOut(){return this._showSignOutButton}set signOut(t){t=!!t,this._showSignOutButton!==t&&(this._showSignOutButton=t,this._setActionVisibility(),this._adapter.toggleHostAttribute(Y.attributes.SIGN_OUT,this._showSignOutButton))}get profile(){return this._showProfileButton}set profile(t){t=!!t,this._showProfileButton!==t&&(this._showProfileButton=t,this._setActionVisibility(),this._adapter.toggleHostAttribute(Y.attributes.PROFILE,this._showProfileButton))}get signOutText(){return this._signOutButtonText}set signOutText(t){if(this._signOutButtonText!==t){this._signOutButtonText=t||Y.defaults.SIGN_OUT_BUTTON_TEXT,this._adapter.setSignOutButtonText(this._signOutButtonText);let e=this._signOutButtonText!==Y.defaults.SIGN_OUT_BUTTON_TEXT;this._adapter.toggleHostAttribute(Y.attributes.SIGN_OUT_TEXT,e,this._signOutButtonText)}}get profileText(){return this._profileButtonText}set profileText(t){if(this._profileButtonText!==t){this._profileButtonText=t||Y.defaults.PROFILE_BUTTON_TEXT,this._adapter.setProfileButtonText(this._profileButtonText);let e=t!==Y.defaults.PROFILE_BUTTON_TEXT;this._adapter.toggleHostAttribute(Y.attributes.PROFILE_TEXT,e,this._profileButtonText)}}};var _i=class extends R0{constructor(t){super(t)}toggleStateLayer(t){this._stateLayerElement.disabled=!t}};var T8=`${b}button`,Ah={VARIANT:"variant",PILL:"pill",THEME:"theme",FULL_WIDTH:"full-width"},S8=w({},Ah),I2={elementName:T8,observedAttributes:Ah,attributes:S8};var fi=class extends N0{constructor(e){super(e);this._variant="text";this._pill=!1;this._theme="primary";this._fullWidth=!1}initialize(){super.initialize(),this._adapter.tryApplyGlobalConfiguration(["variant","dense"])}get variant(){return this._variant}set variant(e){if(this._variant!==e){let a=this._variant;this._variant=e,this._variant==="link"?this._adapter.toggleStateLayer(!1):a==="link"&&this._adapter.toggleStateLayer(!0),this._adapter.setHostAttribute(I2.attributes.VARIANT,this._variant)}}get pill(){return this._pill}set pill(e){this._pill!==e&&(this._pill=e,this._adapter.toggleHostAttribute(I2.attributes.PILL,this._pill))}get theme(){return this._theme}set theme(e){this._theme!==e&&(this._theme=e,this._adapter.setHostAttribute(I2.attributes.THEME,this._theme))}get fullWidth(){return this._fullWidth}set fullWidth(e){this._fullWidth!==e&&(this._fullWidth=e,this._adapter.toggleHostAttribute(I2.attributes.FULL_WIDTH,this._fullWidth))}};var k8='<template><div class="forge-button" part="root"><slot name="start"></slot><slot></slot><slot name="end"></slot><forge-focus-indicator target=":host" part="focus-indicator"></forge-focus-indicator><forge-state-layer target=":host" exportparts="surface:state-layer"></forge-state-layer></div></template>',O8=':host{--_button-display:var(--forge-button-display, inline-flex);--_button-disabled-cursor:var(--forge-button-disabled-cursor, not-allowed)}:host{display:var(--_button-display);position:relative;outline:0;vertical-align:middle;-webkit-tap-highlight-color:transparent}:host([hidden]){display:none}.forge-button{--_button-primary-color:var(--forge-button-primary-color, var(--forge-theme-primary, #3f51b5));--_button-text-color:var(--forge-button-text-color, var(--_button-primary-color));--_button-disabled-color:var(--forge-button-disabled-color, var(--forge-theme-surface-container, #e0e0e0));--_button-padding:var(--forge-button-padding, var(--forge-spacing-medium, 16px));--_button-justify:var(--forge-button-justify, center);--_button-shape:var(--forge-button-shape, calc(var(--forge-shape-medium, 4px) * var(--forge-shape-factor, 1)));--_button-height:var(--forge-button-height, 36px);--_button-min-width:var(--forge-button-min-width, 64px);--_button-spacing:var(--forge-button-spacing, var(--forge-spacing-xsmall, 8px));--_button-border-width:var(--forge-button-border-width, medium);--_button-border-style:var(--forge-button-border-style, none);--_button-border-color:var(--forge-button-border-color, currentColor);--_button-shape-start-start-radius:var(--forge-button-shape-start-start-radius, var(--_button-shape));--_button-shape-start-end-radius:var(--forge-button-shape-start-end-radius, var(--_button-shape));--_button-shape-end-start-radius:var(--forge-button-shape-end-start-radius, var(--_button-shape));--_button-shape-end-end-radius:var(--forge-button-shape-end-end-radius, var(--_button-shape));--_button-padding-block:var(--forge-button-padding-block, var(--_button-padding));--_button-padding-inline:var(--forge-button-padding-inline, var(--_button-padding));--_button-background:var(--forge-button-background, transparent);--_button-hover-background:var(--forge-button-hover-background, var(--_button-background));--_button-active-background:var(--forge-button-active-background, var(--_button-background));--_button-color:var(--forge-button-color, var(--_button-text-color));--_button-icon-size:var(--forge-button-icon-size, calc(var(--forge-typography-font-size, 1rem) * 1.125));--_button-shadow:var(--forge-button-shadow, none);--_button-hover-shadow:var(--forge-button-hover-shadow, none);--_button-active-shadow:var(--forge-button-active-shadow, none);--_button-cursor:var(--forge-button-cursor, pointer);--_button-transition-duration:var(--forge-button-transition-duration, var(--forge-animation-duration-short3, 150ms));--_button-transition-timing:var(--forge-button-transition-timing, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1)));--_button-text-padding-inline:var(--forge-button-text-padding-inline, var(--forge-spacing-xsmall, 8px));--_button-outlined-background:var(--forge-button-outlined-background, transparent);--_button-outlined-color:var(--forge-button-outlined-color, var(--_button-primary-color));--_button-outlined-border-width:var(--forge-button-outlined-border-width, var(--forge-border-thin, 1px));--_button-outlined-border-style:var(--forge-button-outlined-border-style, solid);--_button-outlined-border-color:var(--forge-button-outlined-border-color, var(--_button-primary-color));--_button-tonal-background:var(--forge-button-tonal-background, var(--forge-theme-primary-container, #d1d5ed));--_button-tonal-disabled-background:var(--forge-button-tonal-disabled-background, var(--_button-disabled-color));--_button-tonal-color:var(--forge-button-tonal-color, var(--forge-theme-on-primary-container, #222c62));--_button-tonal-disabled-color:var(--forge-button-tonal-disabled-color, var(--_button-disabled-text-color));--_button-filled-background:var(--forge-button-filled-background, var(--_button-primary-color));--_button-filled-disabled-background:var(--forge-button-filled-disabled-background, var(--_button-disabled-color));--_button-filled-color:var(--forge-button-filled-color, var(--forge-theme-on-primary, #ffffff));--_button-filled-disabled-color:var(--forge-button-filled-disabled-color, var(--_button-disabled-text-color));--_button-raised-background:var(--forge-button-raised-background, var(--_button-primary-color));--_button-raised-disabled-background:var(--forge-button-raised-disabled-background, var(--_button-disabled-color));--_button-raised-color:var(--forge-button-raised-color, var(--forge-theme-on-primary, #ffffff));--_button-raised-disabled-color:var(--forge-button-raised-disabled-color, var(--_button-disabled-text-color));--_button-raised-shadow:var(--forge-button-raised-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12));--_button-raised-hover-shadow:var(--forge-button-raised-hover-shadow, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12));--_button-raised-active-shadow:var(--forge-button-raised-active-shadow, 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12));--_button-raised-disabled-shadow:var(--forge-button-raised-disabled-shadow, none);--_button-link-color:var(--forge-button-link-color, var(--_button-primary-color));--_button-link-text-decoration:var(--forge-button-link-text-decoration, underline);--_button-link-height:var(--forge-button-link-height, auto);--_button-link-padding:var(--forge-button-link-padding, 0);--_button-link-line-height:var(--forge-button-link-line-height, normal);--_button-link-width:var(--forge-button-link-width, auto);--_button-link-hover-text-decoration:var(--forge-button-link-hover-text-decoration, none);--_button-link-active-opacity:var(--forge-button-link-active-opacity, 0.65);--_button-link-transition-duration:var(--forge-button-link-transition-duration, var(--forge-animation-duration-short3, 150ms));--_button-link-transition-timing:var(--forge-button-link-transition-timing, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1)));--_button-disabled-text-color:var(--forge-button-disabled-text-color, var(--forge-theme-text-low, rgba(0, 0, 0, 0.38)));--_button-disabled-background:var(--forge-button-disabled-background, transparent);--_button-disabled-border-color:var(--forge-button-disabled-border-color, var(--_button-disabled-color));--_button-disabled-shadow:var(--forge-button-disabled-shadow, none);--_button-dense-height:var(--forge-button-dense-height, 24px);--_button-pill-shape:var(--forge-button-pill-shape, calc(var(--forge-shape-full, 9999px) * var(--forge-shape-factor, 1)));--_button-pill-padding-inline:var(--forge-button-pill-padding-inline, var(--forge-spacing-small, 12px));--_button-focus-indicator-offset:var(--forge-button-focus-indicator-offset, 4px);--_button-text-focus-indicator-offset:var(--forge-button-text-focus-indicator-offset, 0px);--_button-link-focus-indicator-offset:var(--forge-button-link-focus-indicator-offset, 2px);--_button-popover-icon-transition-duration:var(--forge-button-popover-icon-transition-duration, var(--forge-animation-duration-short3, 150ms));--_button-popover-icon-transition-timing:var(--forge-button-popover-icon-transition-timing, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1)));--_button-popover-icon-open-rotation:var(--forge-button-popover-icon-open-rotation, 180deg)}.forge-button{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-button-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-button-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-button-font-size-scale, .875)));font-weight:var(--forge-typography-button-font-weight,500);line-height:var(--forge-typography-button-line-height, normal);letter-spacing:var(--forge-typography-button-letter-spacing, .0714285714em);text-transform:var(--forge-typography-button-text-transform,inherit);text-decoration:var(--forge-typography-button-text-decoration,inherit);position:relative;display:var(--_button-display);align-items:center;justify-content:var(--_button-justify);gap:var(--_button-spacing);z-index:0;box-sizing:border-box;min-inline-size:var(--_button-min-width);height:var(--_button-height);inline-size:100%;border-width:var(--_button-border-width);border-style:var(--_button-border-style);border-color:var(--_button-border-color);border-start-start-radius:var(--_button-shape-start-start-radius);border-start-end-radius:var(--_button-shape-start-end-radius);border-end-start-radius:var(--_button-shape-end-start-radius);border-end-end-radius:var(--_button-shape-end-end-radius);padding-block:var(--_button-padding-block);padding-inline:var(--_button-padding-inline);box-shadow:var(--_button-shadow);outline:0;user-select:none;-webkit-appearance:none;vertical-align:middle;text-decoration:none;white-space:nowrap;background:var(--_button-background);color:var(--_button-color);cursor:var(--_button-cursor);transition-property:box-shadow,background;transition-duration:var(--_button-transition-duration);transition-timing-function:var(--_button-transition-timing)}.forge-button::-moz-focus-inner{padding:0;border:0}.forge-button:hover{--_button-shadow:var(--_button-hover-shadow);background:var(--_button-hover-background)}.forge-button:active{--_button-shadow:var(--_button-active-shadow);background:var(--_button-active-background)}.forge-button ::slotted(:is([slot=start],[slot=end])){font-size:var(--_button-icon-size)}.with-anchor{display:flex;justify-content:stretch;align-items:stretch;padding:0}::slotted(a){display:flex;align-items:center;justify-content:center;gap:var(--_button-spacing);width:100%;padding:var(--_button-padding);color:var(--_button-color);outline:0;border-radius:var(--_button-shape);text-decoration:none;--forge-icon-font-size:var(--_button-icon-size)}:host([variant=link]) ::slotted(a){position:relative;inset:auto}forge-state-layer{--forge-state-layer-color:var(--_button-color)}forge-focus-indicator{--forge-focus-indicator-color:var(--_button-primary-color);--forge-focus-indicator-outward-offset:var(--_button-focus-indicator-offset)}:host([theme=secondary]) .forge-button{--_button-primary-color:var(--forge-button-primary-color, var(--forge-theme-secondary, #ffc107))}:host([theme=secondary][variant=filled]) .forge-button{--_button-filled-color:var(--forge-button-filled-color, var(--forge-theme-on-secondary, #000000))}:host([theme=secondary][variant=raised]) .forge-button{--_button-raised-color:var(--forge-button-raised-color, var(--forge-theme-on-secondary, #000000))}:host([theme=secondary][variant=tonal]) .forge-button{--_button-tonal-background:var(--forge-button-tonal-background, var(--forge-theme-secondary-container, #fff0c3));--_button-tonal-color:var(--forge-button-tonal-color, var(--forge-theme-on-secondary-container, #8a6804))}:host([theme=tertiary]) .forge-button{--_button-primary-color:var(--forge-button-primary-color, var(--forge-theme-tertiary, #3d5afe))}:host([theme=tertiary][variant=filled]) .forge-button{--_button-filled-color:var(--forge-button-filled-color, var(--forge-theme-on-tertiary, #ffffff))}:host([theme=tertiary][variant=raised]) .forge-button{--_button-raised-color:var(--forge-button-raised-color, var(--forge-theme-on-tertiary, #ffffff))}:host([theme=tertiary][variant=tonal]) .forge-button{--_button-tonal-background:var(--forge-button-tonal-background, var(--forge-theme-tertiary-container, #d0d7ff));--_button-tonal-color:var(--forge-button-tonal-color, var(--forge-theme-on-tertiary-container, #213189))}:host([theme=success]) .forge-button{--_button-primary-color:var(--forge-button-primary-color, var(--forge-theme-success, #2e7d32))}:host([theme=success][variant=filled]) .forge-button{--_button-filled-color:var(--forge-button-filled-color, var(--forge-theme-on-success, #ffffff))}:host([theme=success][variant=raised]) .forge-button{--_button-raised-color:var(--forge-button-raised-color, var(--forge-theme-on-success, #ffffff))}:host([theme=success][variant=tonal]) .forge-button{--_button-tonal-background:var(--forge-button-tonal-background, var(--forge-theme-success-container, #cde0ce));--_button-tonal-color:var(--forge-button-tonal-color, var(--forge-theme-on-success-container, #19441b))}:host([theme=error]) .forge-button{--_button-primary-color:var(--forge-button-primary-color, var(--forge-theme-error, #b00020))}:host([theme=error][variant=filled]) .forge-button{--_button-filled-color:var(--forge-button-filled-color, var(--forge-theme-on-error, #ffffff))}:host([theme=error][variant=raised]) .forge-button{--_button-raised-color:var(--forge-button-raised-color, var(--forge-theme-on-error, #ffffff))}:host([theme=error][variant=tonal]) .forge-button{--_button-tonal-background:var(--forge-button-tonal-background, var(--forge-theme-error-container, #ecc2c9));--_button-tonal-color:var(--forge-button-tonal-color, var(--forge-theme-on-error-container, #5f0011))}:host([theme=warning]) .forge-button{--_button-primary-color:var(--forge-button-primary-color, var(--forge-theme-warning, #d14900))}:host([theme=warning][variant=filled]) .forge-button{--_button-filled-color:var(--forge-button-filled-color, var(--forge-theme-on-warning, #ffffff))}:host([theme=warning][variant=raised]) .forge-button{--_button-raised-color:var(--forge-button-raised-color, var(--forge-theme-on-warning, #ffffff))}:host([theme=warning][variant=tonal]) .forge-button{--_button-tonal-background:var(--forge-button-tonal-background, var(--forge-theme-warning-container, #f4d3c2));--_button-tonal-color:var(--forge-button-tonal-color, var(--forge-theme-on-warning-container, #712700))}:host([theme=info]) .forge-button{--_button-primary-color:var(--forge-button-primary-color, var(--forge-theme-info, #1565c0))}:host([theme=info][variant=filled]) .forge-button{--_button-filled-color:var(--forge-button-filled-color, var(--forge-theme-on-info, #ffffff))}:host([theme=info][variant=raised]) .forge-button{--_button-raised-color:var(--forge-button-raised-color, var(--forge-theme-on-info, #ffffff))}:host([theme=info][variant=tonal]) .forge-button{--_button-tonal-background:var(--forge-button-tonal-background, var(--forge-theme-info-container, #c7daf0));--_button-tonal-color:var(--forge-button-tonal-color, var(--forge-theme-on-info-container, #0b3768))}:host(:where(:not([variant]),[variant=text])) .forge-button{--_button-padding-inline:var(--_button-text-padding-inline)}:host([variant=filled]) .forge-button{--_button-background:var(--_button-filled-background);--_button-color:var(--_button-filled-color)}:host([variant=filled]) forge-state-layer{--forge-state-layer-color:var(--_button-filled-color)}:host([variant=raised]) .forge-button{--_button-background:var(--_button-raised-background);--_button-color:var(--_button-raised-color);--_button-shadow:var(--_button-raised-shadow)}:host([variant=raised]) .forge-button:hover{--_button-shadow:var(--_button-raised-hover-shadow)}:host([variant=raised]) .forge-button:active{--_button-shadow:var(--_button-raised-active-shadow)}:host([variant=raised]) forge-state-layer{--forge-state-layer-color:var(--_button-raised-color)}:host([variant=tonal]) .forge-button{--_button-background:var(--_button-tonal-background);--_button-color:var(--_button-tonal-color)}:host([variant=tonal]) forge-state-layer{--forge-state-layer-color:var(--_button-tonal-color)}:host([variant=outlined]) .forge-button{--_button-background:var(--_button-outlined-background);--_button-color:var(--_button-outlined-color);--_button-border-width:var(--_button-outlined-border-width);--_button-border-style:var(--_button-outlined-border-style);--_button-border-color:var(--_button-outlined-border-color)}:host([variant=link]) .forge-button{--_button-color:var(--_button-link-color);--_button-height:var(--_button-link-height);--_button-padding:var(--_button-link-padding);--_button-focus-indicator-offset:var(--_button-link-focus-indicator-offset);text-decoration:var(--_button-link-text-decoration);line-height:var(--_button-link-line-height);transition:opacity var(--_button-link-transition-duration) var(--_button-link-transition-timing);inline-size:var(--_button-link-width)}:host([variant=link]) .forge-button:hover{text-decoration:var(--_button-link-hover-text-decoration)}:host([variant=link]) .forge-button:active{opacity:var(--_button-link-active-opacity)}:host([full-width]){width:100%}:host([dense]) .forge-button{--_button-height:var(--_button-dense-height)}:host([pill]) .forge-button{--_button-shape:var(--_button-pill-shape);--_button-padding-inline:var(--_button-pill-padding-inline)}:host([pill]) forge-focus-indicator{--forge-focus-indicator-shape:var(--_button-pill-shape)}:host(:not([anchor])[disabled]){cursor:var(--_button-disabled-cursor)}:host(:not([anchor])[disabled]) .forge-button{--_button-background:var(--_button-disabled-background);--_button-color:var(--_button-disabled-text-color);--_button-shadow:var(--_button-disabled-shadow);pointer-events:none}:host(:not([anchor])[variant=outlined][disabled]) .forge-button{--_button-border-color:var(--_button-disabled-border-color)}:host(:not([anchor])[variant=tonal][disabled]) .forge-button{--_button-background:var(--_button-tonal-disabled-background);--_button-color:var(--_button-tonal-disabled-color)}:host(:not([anchor])[variant=filled][disabled]) .forge-button{--_button-background:var(--_button-filled-disabled-background);--_button-color:var(--_button-filled-disabled-color)}:host(:not([anchor])[variant=raised][disabled]) .forge-button{--_button-background:var(--_button-raised-disabled-background);--_button-color:var(--_button-raised-disabled-color);--_button-shadow:var(--_button-raised-disabled-shadow)}:host([popover-icon]) .forge-button__popover-icon{transition:rotate var(--_button-popover-icon-transition-duration) var(--_button-popover-icon-transition-timing)}:host([popover-icon][aria-expanded=true]) .forge-button__popover-icon{rotate:var(--_button-popover-icon-open-rotation)}::slotted(forge-circular-progress){--forge-circular-progress-indicator-color:var(--_button-color);--forge-circular-progress-track-color:transparent;--forge-circular-progress-size:1em}',V2=class extends Wt{static get observedAttributes(){return[...Object.values(v2.observedAttributes),...Object.values(I2.observedAttributes)]}constructor(){super(),H(this,k8,O8),this._core=new fi(new _i(this))}attributeChangedCallback(t,e,a){switch(t){case I2.observedAttributes.VARIANT:this.variant=a;return;case I2.observedAttributes.PILL:this.pill=p(a);return;case I2.observedAttributes.THEME:this.theme=a;return;case I2.observedAttributes.FULL_WIDTH:this.fullWidth=p(a);return}super.attributeChangedCallback(t,e,a)}};s([v()],V2.prototype,"variant",2),s([v()],V2.prototype,"pill",2),s([v()],V2.prototype,"theme",2),s([v()],V2.prototype,"fullWidth",2),V2=s([y({name:I2.elementName,dependencies:[Q,r1,X]})],V2);var xi=class extends X1{constructor(t){super(t)}_build(){var e,a,o;let t=document.createElement(I2.elementName);return(e=this._config.options)!=null&&e.variant&&(t.variant=this._config.options.variant),(a=this._config.options)!=null&&a.type&&(t.type=this._config.options.type),(o=this._config.options)!=null&&o.text&&(t.textContent=this._config.options.text),t}onClick(t){this._element.addEventListener("click",t)}onFocus(t){this._element.addEventListener("focus",e=>t(e))}onBlur(t){this._element.addEventListener("blur",e=>t(e))}};function Bh(){x(V2)}var bi=globalThis,Mi=bi.ShadowRoot&&(bi.ShadyCSS===void 0||bi.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Sh=Symbol(),Th=new WeakMap,yi=class{constructor(t,e,a){if(this._$cssResult$=!0,a!==Sh)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(Mi&&t===void 0){let a=e!==void 0&&e.length===1;a&&(t=Th.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),a&&Th.set(e,t))}return t}toString(){return this.cssText}},oe=r=>new yi(typeof r=="string"?r:r+"",void 0,Sh);var _4=(r,t)=>{if(Mi)r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let a=document.createElement("style"),o=bi.litNonce;o!==void 0&&a.setAttribute("nonce",o),a.textContent=e.cssText,r.appendChild(a)}},Hi=Mi?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(let a of t.cssRules)e+=a.cssText;return oe(e)})(r):r;var{is:D8,defineProperty:P8,getOwnPropertyDescriptor:N8,getOwnPropertyNames:R8,getOwnPropertySymbols:F8,getPrototypeOf:U8}=Object,$0=globalThis,kh=$0.trustedTypes,W8=kh?kh.emptyScript:"",f4=$0.reactiveElementPolyfillSupport,nr=(r,t)=>r,ir={toAttribute(r,t){switch(t){case Boolean:r=r?W8:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,t){let e=r;switch(t){case Boolean:e=r!==null;break;case Number:e=r===null?null:Number(r);break;case Object:case Array:try{e=JSON.parse(r)}catch(a){e=null}}return e}},Li=(r,t)=>!D8(r,t),Oh={attribute:!0,type:String,converter:ir,reflect:!1,hasChanged:Li},Dh,Ph;(Dh=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(Ph=$0.litPropertyMetadata)!=null||($0.litPropertyMetadata=new WeakMap);var d0=class extends HTMLElement{static addInitializer(t){var e;this._$Ei(),((e=this.l)!=null?e:this.l=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Oh){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){let a=Symbol(),o=this.getPropertyDescriptor(t,a,e);o!==void 0&&P8(this.prototype,t,o)}}static getPropertyDescriptor(t,e,a){var i;let{get:o,set:n}=(i=N8(this.prototype,t))!=null?i:{get(){return this[e]},set(l){this[e]=l}};return{get(){return o==null?void 0:o.call(this)},set(l){let h=o==null?void 0:o.call(this);n.call(this,l),this.requestUpdate(t,h,a)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){var e;return(e=this.elementProperties.get(t))!=null?e:Oh}static _$Ei(){if(this.hasOwnProperty(nr("elementProperties")))return;let t=U8(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(nr("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(nr("properties"))){let e=this.properties,a=[...R8(e),...F8(e)];for(let o of a)this.createProperty(o,e[o])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[a,o]of e)this.elementProperties.set(a,o)}this._$Eh=new Map;for(let[e,a]of this.elementProperties){let o=this._$Eu(e,a);o!==void 0&&this._$Eh.set(o,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let a=new Set(t.flat(1/0).reverse());for(let o of a)e.unshift(Hi(o))}else t!==void 0&&e.push(Hi(t));return e}static _$Eu(t,e){let a=e.attribute;return a===!1?void 0:typeof a=="string"?a:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e,a;((e=this._$EO)!=null?e:this._$EO=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&((a=t.hostConnected)==null||a.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){let t=new Map,e=this.constructor.elementProperties;for(let a of e.keys())this.hasOwnProperty(a)&&(t.set(a,this[a]),delete this[a]);t.size>0&&(this._$Ep=t)}createRenderRoot(){var e;let t=(e=this.shadowRoot)!=null?e:this.attachShadow(this.constructor.shadowRootOptions);return _4(t,this.constructor.elementStyles),t}connectedCallback(){var t,e;(t=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(a=>{var o;return(o=a.hostConnected)==null?void 0:o.call(a)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var a;return(a=e.hostDisconnected)==null?void 0:a.call(e)})}attributeChangedCallback(t,e,a){this._$AK(t,a)}_$EC(t,e){var n;let a=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,a);if(o!==void 0&&a.reflect===!0){let i=(((n=a.converter)==null?void 0:n.toAttribute)!==void 0?a.converter:ir).toAttribute(e,a.type);this._$Em=t,i==null?this.removeAttribute(o):this.setAttribute(o,i),this._$Em=null}}_$AK(t,e){var n;let a=this.constructor,o=a._$Eh.get(t);if(o!==void 0&&this._$Em!==o){let i=a.getPropertyOptions(o),l=typeof i.converter=="function"?{fromAttribute:i.converter}:((n=i.converter)==null?void 0:n.fromAttribute)!==void 0?i.converter:ir;this._$Em=o,this[o]=l.fromAttribute(e,i.type),this._$Em=null}}requestUpdate(t,e,a){var o;if(t!==void 0){if(a!=null||(a=this.constructor.getPropertyOptions(t)),!((o=a.hasChanged)!=null?o:Li)(this[t],e))return;this.P(t,e,a)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,a){var o;this._$AL.has(t)||this._$AL.set(t,e),a.reflect===!0&&this._$Em!==t&&((o=this._$Ej)!=null?o:this._$Ej=new Set).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var a,o;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((a=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[i,l]of this._$Ep)this[i]=l;this._$Ep=void 0}let n=this.constructor.elementProperties;if(n.size>0)for(let[i,l]of n)l.wrapped!==!0||this._$AL.has(i)||this[i]===void 0||this.P(i,this[i],l)}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(o=this._$EO)==null||o.forEach(n=>{var i;return(i=n.hostUpdate)==null?void 0:i.call(n)}),this.update(e)):this._$EU()}catch(n){throw t=!1,this._$EU(),n}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(a=>{var o;return(o=a.hostUpdated)==null?void 0:o.call(a)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU()}updated(t){}firstUpdated(t){}},Nh;d0.elementStyles=[],d0.shadowRootOptions={mode:"open"},d0[nr("elementProperties")]=new Map,d0[nr("finalized")]=new Map,f4==null||f4({ReactiveElement:d0}),((Nh=$0.reactiveElementVersions)!=null?Nh:$0.reactiveElementVersions=[]).push("2.0.4");var lr=globalThis,Ii=lr.trustedTypes,Rh=Ii?Ii.createPolicy("lit-html",{createHTML:r=>r}):void 0,qh="$lit$",X0=`lit$${Math.random().toFixed(9).slice(2)}$`,$h="?"+X0,G8=`<${$h}>`,Va=document,vr=()=>Va.createComment(""),hr=r=>r===null||typeof r!="object"&&typeof r!="function",V4=Array.isArray,Y8=r=>V4(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",x4=`[
|
|
6
|
+
var m5=Object.defineProperty,K6=Object.defineProperties,q6=Object.getOwnPropertyDescriptor,$6=Object.getOwnPropertyDescriptors;var zr=Object.getOwnPropertySymbols;var g5=Object.prototype.hasOwnProperty,w5=Object.prototype.propertyIsEnumerable;var d5=(r,t,e)=>t in r?m5(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,w=(r,t)=>{for(var e in t||(t={}))g5.call(t,e)&&d5(r,e,t[e]);if(zr)for(var e of zr(t))w5.call(t,e)&&d5(r,e,t[e]);return r},t1=(r,t)=>K6(r,$6(t));var Pa=(r,t)=>{var e={};for(var a in r)g5.call(r,a)&&t.indexOf(a)<0&&(e[a]=r[a]);if(r!=null&&zr)for(var a of zr(r))t.indexOf(a)<0&&w5.call(r,a)&&(e[a]=r[a]);return e};var s=(r,t,e,a)=>{for(var o=a>1?void 0:a?q6(t,e):t,n=r.length-1,i;n>=0;n--)(i=r[n])&&(o=(a?i(t,e,o):i(o))||o);return a&&o&&m5(t,e,o),o};function Ar(r="data-forge-live-announcer"){let t=document.createElement("div");return t.style.position="absolute",t.style.top="0",t.style.height="1px",t.style.width="1px",t.style.padding="1px",t.style.overflow="hidden",t.style.clip="rect(0px, 0px, 0px, 0px)",t.style.whiteSpace="nowrap",t.style.border="0px",r&&t.setAttribute(r,""),t}function P2(r=5){return Math.random().toString(36).substring(2,2+r)}function k(r){return typeof r!="undefined"&&r!==null}function Pt(r){return typeof r=="string"}function z2(r){return typeof r=="number"}function Br(r){return typeof r!="string"?!1:!isNaN(r)&&!isNaN(parseFloat(r))}function Na(r){return r instanceof Date}function gt(r){return Na(r)?!isNaN(r.getTime()):!1}function t0(r){return typeof r=="function"}function rt(r){return r instanceof Array}function nt(r){return r instanceof Object}function p(r){return r!=null&&""+r!="false"}function W(r){return+r}function Tr(r){return r?typeof r=="string"?r.replace(/ |\[|]|\"/g,"").split(",").map(t=>Number(t)):typeof r=="number"?[r]:r.map(t=>Number(t)):[]}function Nt(r,t){return r===t||typeof r=="object"&&typeof t=="object"&&JSON.stringify(r)===JSON.stringify(t)}function Ae(r,t,e=!1){let a,o,n,i,l=0,h=()=>{let c=Date.now()-l;c<t&&c>=0?i=setTimeout(h,t-c):(i=null,e||(n=r.apply(a,o),i||(a=o=null)))};return function(){a=this,o=arguments,l=Date.now();let c=e&&!i;return i||(i=setTimeout(h,t)),c&&(n=r.apply(a,o),a=o=null),n}}function Sr(r,t,e){let a,o,n,i,l=0;e=e||{};let h=()=>{l=e.leading===!1?0:Date.now(),i=null,n=r.apply(a,o),i||(a=o=null)};return function(){let c=Date.now();!l&&e.leading===!1&&(l=c);let d=t-(c-l);return a=this,o=arguments,d<=0||d>t?(i&&(clearTimeout(i),i=null),l=c,n=r.apply(a,o),i||(a=o=null)):!i&&e.trailing!==!1&&(i=setTimeout(h,d)),n}}function kr(r){return r.ownerDocument||document}function Fl(r){return r&&r.nodeType===1}function Ra(r,t){if(!Fl(r))throw new Error("DOMUtils - elementParents: invalid element argument");let e=[];for(;r.parentElement&&(e.push(r.parentElement),!(r.parentElement===t||r.parentElement===kr(r).body));)r.parentElement&&r.parentElement.parentNode&&r.parentElement.parentNode.nodeType===11?r=r.parentElement.parentNode.host:r=r.parentElement;return e}function X6(r,t){if(!Fl(r))throw new Error("DOMUtils - offset: invalid element argument");let e=r.getBoundingClientRect(),a=kr(r).defaultView,o=t||a.document.documentElement,n={width:e.width,height:e.width,top:0,left:0,bottom:0,right:0};if(!t||o===a.document.documentElement||o===a.document.body)n.top=a.scrollY+e.top,n.bottom=o.clientHeight-a.scrollY-e.bottom,n.left=a.scrollX+e.left,n.right=o.clientWidth-a.scrollX-e.right;else{if(!Fl(t))throw new Error("DOMUtils - offset: invalid parentElement argument");let i=t.getBoundingClientRect();n.top=e.top-i.top,n.bottom=i.bottom-e.bottom,n.left=e.left-i.left,n.right=i.right-e.right}return{width:Math.round(e.width),height:Math.round(e.height),top:Math.round(n.top),bottom:Math.round(n.bottom),left:Math.round(n.left),right:Math.round(n.right)}}function _5(r,t,e){let a=n=>{let i=()=>{n.stopPropagation(),n.cancelable&&n.preventDefault();let l=n.type==="touchstart"?n.target:kr(r).activeElement;r.contains(l)||t(l)};e?window.requestAnimationFrame(()=>i()):i()},o=kr(r);return o.addEventListener("blur",a,!0),o.addEventListener("touchstart",a,!0),()=>{o.removeEventListener("blur",a,!0),o.removeEventListener("touchstart",a,!0)}}function r2(r){for(;r.lastChild;)r.removeChild(r.lastChild)}function e0(r,t){return t.parentNode.replaceChild(r,t)}function y1(r,t){rt(r)?r.forEach(e=>t.classList.add(e)):t.classList.add(r)}function we(r,t){rt(r)?r.forEach(e=>t.classList.remove(e)):t.classList.remove(r)}function j6(){let r=document.createElement("fakeelement"),t={animation:"animationend",OAnimation:"oAnimationEnd",MozAnimation:"animationend",WebkitAnimation:"webkitAnimationEnd"};for(let e in t)if(r.style[e]!==void 0)return t[e]}async function Rt(r,t,e=!0){return r.classList.add(t),new Promise(a=>{let o=j6(),n=()=>{e&&r.classList.remove(t),r.removeEventListener(o,n),a()};r.addEventListener(o,n)})}function Te(r){r.removeNode?r.removeNode(!0):r.remove?r.remove():r.parentNode.removeChild(r)}function Ul(r){if(typeof r=="string"){if(r[r.length-1]==="%")return r;if(r.slice(-2)==="px")return r;if(Number(r)>=0)return`${r}px`}else if(typeof r=="number"&&r>=0)return`${r}px`}function Fa(r){return r.children.length?Promise.resolve():new Promise(t=>{let e=new MutationObserver(a=>{r.children.length&&(e.disconnect(),t())});e.observe(r,{childList:!0})})}function I0(r,t){let e=Be(r,t);return e.length?Promise.resolve(e[0]):new Promise(a=>{let o=new MutationObserver(n=>{if(n.reduce((l,h)=>l+h.addedNodes.length,0)>0){let l=Be(r,t);l.length&&(o.disconnect(),a(l[0]))}});o.observe(r,{childList:!0,subtree:!0})})}function f5(r){return new Promise(t=>{let e=r.querySelector("input");e&&t(e);let a=new MutationObserver(o=>{if(o.reduce((i,l)=>i+l.addedNodes.length,0)>0){let i=r.querySelector("input");i&&(a.disconnect(),t(i))}});a.observe(r,{childList:!0,subtree:!0})})}function Wl(r,t){let e=r&&r.parentNode;for(;e;){if(t(e))return e;e=e.parentNode}return null}function Or(r,t){if(r.nodeType!==Node.ELEMENT_NODE)return!1;typeof t=="string"&&(t=t.replace(/\s+/,"").split(","));let e=Element.prototype.matches;return t.some(a=>e.call(r,a))}function Be(r,t,e=!1){let a=[];if(!r)return a;if(typeof t=="string"&&(t=t.replace(/\s+/,"").split(",")),e&&Or(r,t)&&a.indexOf(r)===-1&&a.push(r),r.tagName==="SLOT")r.assignedNodes().forEach(n=>a=a.concat(Be(n,t,!0)));else{let o=r.shadowRoot?r.shadowRoot.firstElementChild:r.firstElementChild;for(;o;)a=a.concat(Be(o,t,!0)),o=o.nextElementSibling}return a}function Se(r=document){let t=r.activeElement;return!t||t===r.body?t:x5(t)}function x5(r){return r.shadowRoot&&r.shadowRoot.activeElement&&(r=x5(r.shadowRoot.activeElement)),r}function _2(r,t,e){t?y1(e,r):we(e,r)}function K(r,t,e,a=""){t?r.setAttribute(e,a):r.removeAttribute(e)}function No(r,t,e,a){let o=r.getAttribute(t);(a===void 0||a===!0)&&(!o||!o.includes(e))?Ua(r,t,e):a||Z6(r,t,e)}function Ua(r,t,e){let a=r.getAttribute(t);!a||!a.length?r.setAttribute(t,e):r.setAttribute(t,`${a} ${e}`)}function Z6(r,t,e){if(!r.hasAttribute(t))return;let a=r.getAttribute(t);if(a){let o=a==null?void 0:a.replace(e,"");o=o.replace(/\s+/g," ").trim(),o.length?r.setAttribute(t,o):r.removeAttribute(t)}}function Dr(r,t,e="auto",a="nearest"){if(!r)return;if(r.scrollHeight>r.clientHeight||r.scrollWidth>r.clientWidth){let n=X6(t,r),i=n.top<=t.clientHeight,l=n.bottom<=t.clientHeight;if(i||l){let d=u5(a,i,t.offsetTop,t.clientHeight,r.offsetTop,r.offsetHeight);r.scrollTo({top:d,behavior:e});return}let h=n.left<=t.clientWidth,c=n.right<=t.clientWidth;if(h||c){let d=u5(a,h,t.offsetLeft,t.clientWidth,r.offsetLeft,r.offsetWidth);r.scrollTo({left:d,behavior:e})}}}function u5(r,t,e,a,o,n){return r==="nearest"?t?e-o-a:e-n+a*2:e-o-n/2+a/2}function b5(r){let t=document.createElement("template");return r=r.trim(),t.innerHTML=r,t.content.firstElementChild}function L2(r){return r.path||r.composedPath&&r.composedPath()||Q6(r.target)}function Q6(r){let t=[];for(;r;){if(r.shadowRoot&&(r.shadowRoot.activeElement&&t.push(r.shadowRoot.activeElement),t.push(r.shadowRoot)),t.push(r),r.tagName==="HTML"){t.push(document),t.push(window);break}r=r.parentElement}return t}function y5(r,t){let e=t.replace(/\[(\w+)\]/g,".$1");e=e.replace(/^\./,"");let a=e.split(".");for(let o=0;o<a.length;++o){let n=a[o];if(r&&typeof r=="object"&&n in r)r=r[n];else{r="";break}}return r}function Pr(r,t){return r.find(e=>Nr(e,t))}function ha(r,t){if(!r||!r.length)throw new Error("Invalid key");let e={};for(let a of r)if(Object.prototype.hasOwnProperty.call(t,a))e[a]=t[a];else throw new Error(`Invalid key. The property "${a}" does not exist in the data.`);return e}function Nr(r,t){return Object.keys(t).every(e=>r[e]===t[e])}function a0(r,t,e,a){let o=t;t.hasOwnProperty(e)||(o=Object.getPrototypeOf(t));let n=Object.getOwnPropertyDescriptor(o,e);if(!n)throw new Error(`Property ${e} does not exist.`);return Object.defineProperty(t,e,{configurable:!0,get(){return n.get?n.get.apply(this,arguments):void 0},set(){n.set&&n.set.apply(this,arguments),a.apply(r,arguments)}}),()=>Object.defineProperty(t,e,n)}var Ro=class{constructor(t){this._key=t,this._items=[]}getItems(){return[...this._items]}count(){return this._items.length}setKey(t){this._key=t}add(t){return t instanceof Array||(t=[t]),t.forEach(e=>{this.exists(e)||this._items.push(e)}),this}remove(t){t instanceof Array||(t=[t]);for(let e=t.length-1;e>=0;e--)this.exists(t[e])&&this._items.splice(this._items.indexOf(this._getItem(t[e])),1);return this}clear(){return this._items=[],this}exists(t){return this._getItem(t)!==null}_getItem(t){return this._key?Pr(this._items,ha(this._key,t))||null:this._items.find(e=>e===t)||null}};var J6=typeof Intl!="undefined"&&Intl.v8BreakIterator,$2=class r{static get isBrowser(){return typeof document=="object"&&!!document}static get isMobile(){return r.isBrowser&&/Mobi/.test(navigator.userAgent)}static get EDGE(){return r.isBrowser&&/(edge)/i.test(navigator.userAgent)}static get TRIDENT(){return r.isBrowser&&/(msie|trident)/i.test(navigator.userAgent)}static get BLINK(){return r.isBrowser&&!!(window.chrome||J6)&&!!CSS&&!r.EDGE&&!r.TRIDENT}static get WEBKIT(){return r.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!r.BLINK&&!r.EDGE&&!r.TRIDENT}static get IOS(){return r.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}static get FIREFOX(){return r.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent)}static get ANDROID(){return r.isBrowser&&/android/i.test(navigator.userAgent)&&!r.TRIDENT}SAFARI(){return r.isBrowser&&/safari/i.test(navigator.userAgent)&&r.WEBKIT}};var Rr=Symbol("Forge custom element tag name"),Fo=Symbol("Forge custom element dependencies"),Fr=Symbol("Forge custom element parsed template"),Ur=Symbol("Forge custom element CSS text"),Wa=Symbol("Forge custom element CSSStyleSheet instances"),Wr=window.__forgeFlags__useConstructableStyleSheets!==!1&&window.ShadowRoot&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;function x(r){ue(r[Rr],r),rt(r[Fo])&&tm(r[Fo])}function tm(r){r.forEach(x)}function ue(r,t,e){var a;(a=window==null?void 0:window.customElements)!=null&&a.get(r)||window.customElements.define(r,t,e)}function M5(r,t){let e=r;for(;e.parentNode&&(e=e.parentNode,!!e.tagName);)if(!e.tagName||e.tagName.toLowerCase()===t.toLowerCase())return e;return null}function H5(r){return new DOMParser().parseFromString(r,"text/html").querySelector("template")}function V0(r,t){r.appendChild(H5(t).content.cloneNode(!0))}function H(r,t,e,a=!1){r.attachShadow({mode:"open",delegatesFocus:a}),e&&am(r,e),em(r,t)}function em(r,t,{force:e}={force:!1}){let a=r.constructor;if(e||!a[Fr]){let n=t instanceof HTMLTemplateElement?t:H5(t);a[Fr]=n}let o=a[Fr];r.shadowRoot.appendChild(o.content.cloneNode(!0))}function am(r,t,{force:e}={force:!1}){var o;let a=r.constructor;if(!r.shadowRoot||!t){Wr&&(a[Wa]&&(a[Wa]=[]),r.shadowRoot&&(r.shadowRoot.adoptedStyleSheets=[]));return}if(t=t instanceof Array?t:[t],Wr){if(e||!a[Wa]){let n=(o=r.ownerDocument.defaultView)!=null?o:window,i=new n.CSSStyleSheet,l=t.join(" ");i.replaceSync(l),a[Ur]=l,a[Wa]=[i]}r.shadowRoot.adoptedStyleSheets=a[Wa]}else{let n=document.createElement("style"),i=window.forgeNonce;i&&n.setAttribute("nonce",i),n.textContent=t.join(" "),r.shadowRoot.appendChild(n)}}function L5(r){if(!Wr||!r.shadowRoot||!r.constructor[Ur]||!r.ownerDocument.defaultView)return;let t=new r.ownerDocument.defaultView.CSSStyleSheet;t.replaceSync(r.constructor[Ur]),r.shadowRoot.adoptedStyleSheets=[t]}function g(r,t){return r.shadowRoot.querySelector(t)}function Ft(r,t){return r.querySelector(t)}function o0(r,t,e,a=!0,o=!1){let n;return typeof CustomEvent=="function"?n=new CustomEvent(t,{detail:e,bubbles:a,cancelable:o}):(n=document.createEvent("CustomEvent"),n.initCustomEvent(t,a,o,e)),r.dispatchEvent(n)}function Uo(r,t,e,a,o,n){let i=!!g(r,a);return n||(n=document.createComment(`(${e}) ${a}`)),t&&!i?e0(o,n):!t&&i&&e0(n,o),n}function Gr(r,t){function e(a){return!a||a===document||a===window?null:(a.assignedSlot&&(a=a.assignedSlot),a.closest(r)||e(a.getRootNode().host))}return e(t)}function y({name:r,dependencies:t,define:e=!0}){return a=>{om(a),r&&(a[Rr]=r),t&&t.length&&(a[Fo]=t),window.__forgeFlags__autoDefine!==!1&&e&&x(a)}}function om(r){let t=r.prototype.connectedCallback;r.prototype.connectedCallback=function(){this.isConnected&&(this._isInitialized||(rm(this),typeof this.initializedCallback=="function"&&this.initializedCallback.apply(this),this._isInitialized=!0),typeof t=="function"&&t.apply(this))}}function rm(r){let t=Object.getOwnPropertyNames(r).filter(e=>!e.startsWith("_"));for(let e of t){let a=r[e];delete r[e],r[e]=a}}var Gl=class{constructor(t){this.get=!0,this.set=!0,t&&Object.assign(this,t)}},Yr="_core",nm=(r,t)=>`${r}'s core does not contain the property "${t}"`,im=r=>`${r} does not have a core`;function z5(r,t,e){if(r[Yr]){if(t in r[Yr])return e();throw new Error(nm(r.localName,t))}else throw new Error(im(r.localName))}function v(r){let t=new Gl(r);return(e,a,o)=>{let n,i,l=a,h=(r&&r.name||a).toString();if(o)n=o.get,i=o.set,o.configurable=!0,o.enumerable=!0,t.set&&(o.set=function(c){return E5(this,h,d=>{let u=Object.getOwnPropertyDescriptor(e,h);u.set=d.set,Reflect.defineProperty(e,l,u),d.set(c)},i)}),t.get&&(o.get=function(){return C5(this,h,c=>{let d=Object.getOwnPropertyDescriptor(e,h);return d.get=c.get,Reflect.defineProperty(e,l,d),c.get()},n)});else if(t.set||t.get){let c={configurable:!0,enumerable:!0},d={get(){let _=this;return C5(_,h,L=>{let C;return t.set&&(C=w({},u)),Reflect.defineProperty(_,h,w(w({configurable:!0,enumerable:!0},L),C)),L.get()})}},u={set(_){let L=this;return E5(L,h,C=>{let A;t.get&&(A=w({},d)),Reflect.defineProperty(L,h,w(w({configurable:!0,enumerable:!0},C),A)),C.set(_)})}};t.get&&Object.assign(c,w({},d)),t.set&&Object.assign(c,w({},u)),Reflect.defineProperty(e,l,c)}}}function I5(r,t,e){r[Yr][e]=t}function V5(r,t){return r[Yr][t]}function E5(r,t,e,a){let o;return a?o={set(n){a.call(r,n),I5(r,n,t)}}:o={set(n){I5(r,n,t)}},z5(r,t,()=>e(o))}function C5(r,t,e,a){let o;return a?o={get(){return a.call(r),V5(r,t)}}:o={get(){return V5(r,t)}},z5(r,t,()=>e(o))}var Kr=class{constructor(){this._listenerMap=new Map}_emit(t,e){let a=this._listenerMap.get(t);a&&a.length&&a.forEach(o=>o({type:t,data:e}))}hasListeners(t){return t?this._listenerMap.has(t):this._listenerMap.size>0}addListener(t,e){if(!this._listenerMap.has(t))this._listenerMap.set(t,[e]);else{let a=this._listenerMap.get(t);a&&a.push(e)}}removeListener(t,e){let a=this._listenerMap.get(t);a&&a.length&&a.includes(e)&&(a.splice(a.indexOf(e),1),a.length||this._listenerMap.delete(t))}};var qr=class{get value(){return this.source}constructor(t){this.subscribers=[],this.source=t}subscribe(t){let e=new Yl(this.subscribers,t);return this.subscribers.push(e),t==null||t(this.source),e}next(t){var e;this.source=t;for(let a of this.subscribers)(e=a.observer)==null||e.call(a,t)}complete(){this.subscribers=[]}},Yl=class{get closed(){return this._closed}constructor(t,e){this._closed=!1,this.observer=e,this._parent=t}unsubscribe(){if(this._closed)return;let t=this._parent.findIndex(e=>e===this);if(t>-1){this._parent.splice(t,1),this._closed=!0;return}console.error("Subscription is not present in parent array.",{subscription:this,parent:this._parent})}};var sm=["any-hover","any-pointer","color-gamut","display-mode","dynamic-range","forced-colors","grid","hover","inverted-colors","orientation","overflow-block","overflow-inline","pointer","prefers-contrast","prefers-color-scheme","prefers-reduced-motion","scripting","update","video-dynamic-range"],lm=["aspect-ratio","color","color-index","height","monochrome","resolution","width"],T5=[...sm,...lm];var vm=["srbg","p3","rec2020"],hm=["fullscreen","standalone","minimal-ui","browser","window-controls-overlay"],cm=["standard","high"],pm=["none","active"],dm=[0,1],A5=["none","hover"],mm=["none","inverted"],gm=["portrait","landscape"],wm=["none","scroll","optional-paged","paged"],um=["none","scroll"],B5=["none","coarse","fine"],_m=["no-preference","more","less","custom"],fm=["light","dark"],xm=["no-preference","reduce"],bm=["none","initial-only","enabled"],ym=["none","slow","fast"],Mm=["standard","high"],S5={"any-hover":Array.from(A5.values()),"any-pointer":Array.from(B5.values()),"color-gamut":Array.from(vm.values()),"display-mode":Array.from(hm.values()),"dynamic-range":Array.from(cm.values()),"forced-colors":Array.from(pm.values()),grid:Array.from(dm.values()),hover:Array.from(A5.values()),"inverted-colors":Array.from(mm.values()),orientation:Array.from(gm.values()),"overflow-block":Array.from(wm.values()),"overflow-inline":Array.from(um.values()),pointer:Array.from(B5.values()),"prefers-contrast":Array.from(_m.values()),"prefers-color-scheme":Array.from(fm.values()),"prefers-reduced-motion":Array.from(xm.values()),scripting:Array.from(bm.values()),update:Array.from(ym.values()),"video-dynamic-range":Array.from(Mm.values())};function k5(r){let t=[];for(let e of r)window.matchMedia(e.query).matches&&t.push(e.name);return t}function O5(r){for(let t of r)if(window.matchMedia(t.query).matches)return t.name;return console.warn(`No media query returned a match, falling back to ${r[0].name}.`),r[0].name}function D5(r){return window.matchMedia(r.query).matches}function P5(r,t){if(t.equals!==void 0)return`(${r}: ${t.equals})`;let e=[];return t.min!==void 0&&e.push(`(min-${r}: ${t.min})`),t.max!==void 0&&e.push(`(max-${r}: ${t.max})`),e.join(" and ")}function Hm(r){return T5.includes(r)}function r0(r){if(r){if(Hm(r)){console.error(`${r} is a disallowed media observer name.`);return}return r}}var ca=class r extends qr{static observeDiscrete(t,e){var n;let a=(n=r0(e==null?void 0:e.name))!=null?n:t,o=r._getObserver(a);return o&&(e==null?void 0:e.track)!==!1?o:Kl.create(t)}static observeRange(t,e,a){var i;let o=(i=r0(a==null?void 0:a.name))!=null?i:t,n=r._getObserver(o);return n&&(a==null?void 0:a.track)!==!1?n:ql.create(t,Array.isArray(e)?e:[e],a)}static observeBoolean(t,e){var n;let a=(n=r0(e==null?void 0:e.name))!=null?n:`${t}-bool`,o=r._getObserver(a);return o&&(e==null?void 0:e.track)!==!1?o:$l.create(t,e)}static observeCustom(t,e){var n;let a=(n=r0(e==null?void 0:e.name))!=null?n:t,o=r._getObserver(a);return o&&(e==null?void 0:e.track)!==!1?o:Xl.create(t,e)}static _getObserver(t){let e=r._observers[t];if(e)return e}get name(){return this._name}constructor(t,e,a,o=!0){super(a),this._queries=[],this._name=t,this._queries=this._attachMediaQueries(e),o&&(r._observers[t]=this)}destroy(){for(let t of this._queries)t.queryList.removeEventListener("change",t.handler);this._queries=[],delete r._observers[this.name]}_attachMediaQueries(t){return t.map(({name:e,query:a})=>{let o=window.matchMedia(a),n=i=>this.setValue(i,e);return n(o),o.addEventListener("change",n),{queryList:o,handler:n}})}};ca._observers={};var Kl=class r extends ca{static create(t,e){var i;let a=S5[t].map(l=>({name:l.toString(),query:`(${t}: ${l})`})),o=O5(a),n=(i=r0(e==null?void 0:e.name))!=null?i:t;return new r(n,a,o,(e==null?void 0:e.track)!==!1)}setValue(t,e){t.matches&&this.next(e)}},ql=class r extends ca{static create(t,e,a){var l;let o=e.map(h=>({query:P5(t,h),name:h.name})),n=k5(o),i=(l=r0(a==null?void 0:a.name))!=null?l:t;return new r(i,o,n,(a==null?void 0:a.track)!==!1)}constructor(t,e,a,o=!0){super(t,e,a,o),this._isAwaitingQueries=!1,this._valueQueue=[],this._isInitialized=!0}setValue(t,e){if(!this._isInitialized)return;this._isAwaitingQueries||(setTimeout(()=>{this.next([...this._valueQueue]),this._valueQueue=[],this._isAwaitingQueries=!1}),this._valueQueue=[...this.source],this._isAwaitingQueries=!0);let a=this._valueQueue.findIndex(o=>o===e);t.matches&&a===-1?this._valueQueue.push(e):!t.matches&&a>-1&&this._valueQueue.splice(a,1)}},$l=class r extends ca{static create(t,e){var i;let a=[{query:`(${t})`,name:""}],o=D5(a[0]),n=(i=r0(e==null?void 0:e.name))!=null?i:`${t}-bool`;return new r(n,a,o,(e==null?void 0:e.track)!==!1)}setValue(t,e){this.next(t.matches)}},Xl=class r extends ca{static create(t,e){var i;let a=[{query:t,name:""}],o=window.matchMedia(t),n=(i=r0(e==null?void 0:e.name))!=null?i:t;return new r(n,a,o,(e==null?void 0:e.track)!==!1)}setValue(t,e){this.next(t)}};var E0=class r{static observe(t,e,a){var o,n;r._targets.has(t)&&((o=r._observer)==null||o.unobserve(t)),r._targets.set(t,e),r._countTargets(),(n=r._observer)==null||n.observe(t,a)}static unobserve(t){var e;r._targets.delete(t),(e=r._observer)==null||e.unobserve(t),r._countTargets()}static _countTargets(){r._observer?r._targets.size<1&&(r._observer=void 0):r._targets.size&&(r._observer=new ResizeObserver(r._handleResize))}};E0._targets=new Map;E0._handleResize=r=>{r.forEach(t=>{var e;(e=E0._targets.get(t.target))==null||e(t)})};var pa;(function(r){r.Up="up",r.Down="down",r.Left="left",r.Right="right"})(pa||(pa={}));var _e;(function(r){r.Scroll="scroll",r.Scrolled="scrolled",r.ScrolledStart="scrolled-start",r.ScrolledEnd="scrolled-end"})(_e||(_e={}));var Lm=100,$r=class extends Kr{constructor(t,e={}){super(),this._element=t,this._config=e,this._axis="vertical",this._scrollThreshold=0,this._lastScrollPosition=0,this._lastScrollTop=0,this._lastScrollLeft=0,this._isListening=!1,this._initialize()}destroy(){this.stop()}start(){this._isListening||(this._element.addEventListener("scroll",this._scrollListener),this._isListening=!0)}stop(){this._element.removeEventListener("scroll",this._scrollListener),this._isListening=!1}_initialize(){if(this._config.throttle){let t=this._config.throttleTime||Lm;this._scrollListener=Sr(()=>this._onScroll(),t)}else this._scrollListener=()=>this._onScroll();(!k(this._config.paused)||!this._config.paused)&&this.start(),k(this._config.axis)&&(this._axis=this._config.axis),k(this._config.scrollThreshold)&&z2(this._config.scrollThreshold)&&(this._scrollThreshold=this._config.scrollThreshold)}_isScrollAxis(){let t=this._lastScrollTop!==this._element.scrollTop,e=this._lastScrollLeft!==this._element.scrollLeft;return this._axis==="vertical"&&t||this._axis==="horizontal"&&e}_onScroll(){if(!this._isScrollAxis())return;let t=this.scrollPosition,e=this._lastScrollPosition-t<0?this._axis==="vertical"?pa.Down:pa.Right:this._axis==="vertical"?pa.Up:pa.Left;this._emit(_e.Scroll,{direction:e,position:t}),this._lastScrollPosition<=this._scrollThreshold&&t>this._scrollThreshold?this._emit(_e.Scrolled,!0):this._lastScrollPosition>=this._scrollThreshold&&(this._scrollThreshold>0?t<this._scrollThreshold:t===0)&&this._emit(_e.Scrolled,!1);let a=Math.round(t-this._scrollThreshold),o=Math.round(this.scrollSize-t);this._lastScrollPosition>=this._scrollThreshold&&a<=0?this._emit(_e.ScrolledStart):this._lastScrollPosition<=this.scrollSize-this._scrollThreshold&&o<=this._scrollThreshold&&this._emit(_e.ScrolledEnd),this._lastScrollPosition=t||0,this._lastScrollTop=this._element.scrollTop||0,this._lastScrollLeft=this._element.scrollLeft||0}get scrollPosition(){return this._axis==="vertical"?this._element.scrollTop:this._element.scrollLeft}get isScrolled(){return this.scrollPosition>this._scrollThreshold}get isScrolledStart(){return this.scrollPosition===0}get isScrolledEnd(){return this.scrollPosition===this._element.scrollWidth}get isScrollable(){return this._axis==="vertical"?this._element.scrollHeight>this._element.clientHeight:this._element.scrollWidth>this._element.clientWidth}get scrollSize(){return(this._axis==="vertical"?this._element.scrollHeight:this._element.scrollWidth)-this.elementSize}get elementSize(){return this._axis==="vertical"?this._element.clientHeight:this._element.clientWidth}setScrollPosition(t){this._axis==="vertical"?this._element.scrollTop=t:this._element.scrollLeft=t}};var N5;(function(r){r.GET="GET",r.POST="POST",r.PUT="PUT",r.DELETE="DELETE",r.PATCH="PATCH",r.HEAD="HEAD",r.CONNECT="CONNECT",r.OPTIONS="OPTIONS",r.TRACE="TRACE"})(N5||(N5={}));var M=class extends HTMLElement{adoptedCallback(){this.shadowRoot&&L5(this)}};var Xr=class{constructor(){}static get(t){var a;let e=(a=window.TylerForgeGlobalConfiguration)==null?void 0:a[t];return e?{has(o){return o in e},valueOf(o){return e[o]}}:null}};var I=class{constructor(t){this._component=t}get hostElement(){return this._component}hasHostAttribute(t){return this._component.hasAttribute(t)}getHostAttribute(t){return this._component.getAttribute(t)}setHostAttribute(t,e=""){this._component.setAttribute(t,e)}removeHostAttribute(t){this._component.removeAttribute(t)}toggleHostAttribute(t,e,a){K(this._component,e,t,a)}redispatchEvent(t,e){var l,h,c,d,u;let a=!(((l=t.target)==null?void 0:l.getRootNode())instanceof ShadowRoot);t.bubbles&&(t.composed||a)&&t.stopPropagation();let o=t1(w({},t),{detail:(h=t.detail)!=null?h:null,bubbles:(c=e==null?void 0:e.bubbles)!=null?c:t.bubbles,cancelable:(d=e==null?void 0:e.cancelable)!=null?d:t.cancelable,composed:(u=e==null?void 0:e.composed)!=null?u:t.composed}),n=Reflect.construct(t.constructor,[t.type,o]),i=!this._component.dispatchEvent(n);return i&&t.preventDefault(),!i}emitHostEvent(t,e=null,a=!0,o){return o0(this._component,t,e,a,o)}dispatchHostEvent(t){return!this._component.dispatchEvent(t)}toggleHostListener(t,e,a,o){a?this.addHostListener(t,e,o):this.removeHostListener(t,e,o)}addHostListener(t,e,a){this._component.addEventListener(t,e,a)}removeHostListener(t,e,a){this._component.removeEventListener(t,e,a)}addWindowListener(t,e,a){window.addEventListener(t,e,a)}removeWindowListener(t,e,a){window.removeEventListener(t,e,a)}addDocumentListener(t,e,a){this._component.ownerDocument.addEventListener(t,e,a)}removeDocumentListener(t,e,a){this._component.ownerDocument.removeEventListener(t,e,a)}getScreenWidth(){return window.innerWidth}setBodyAttribute(t,e){this._component.ownerDocument.body.setAttribute(t,e)}removeBodyAttribute(t){this._component.ownerDocument.body.removeAttribute(t)}focusHost(t){HTMLElement.prototype.focus.call(this._component,t)}clickHost(){HTMLElement.prototype.click.call(this._component)}get isConnected(){return this._component.isConnected}tryApplyGlobalConfiguration(t){let e=this._component.tagName.toLowerCase(),a=Xr.get(e);if(a){for(let o of t)if(a.has(o)){let n=a.valueOf(o);n&&(this._component[o]=n)}}}};function jr(){return HTMLElement.prototype.hasOwnProperty("popover")}function R5(){return ElementInternals.prototype.hasOwnProperty("role")}function F5(){return!$2.isMobile}function U5(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}var b="forge-",W5=500,ke="tyler-icons",G5="https://cdn.forge.tylertech.com/",n0=F5(),Wo="data-forge-deferred-label-target",Lt=Symbol("getFormValue"),$t=Symbol("getFormState"),wt=Symbol("setValidity"),Xt=Symbol("getValidityMessage"),a1=Symbol("ElementInternals"),jt=Symbol("inputType"),$1=Symbol("isFocusable"),P=Symbol("setDefaultAria"),Zr=Symbol("updateTarget"),Ga=Symbol("forgeLabelRef");var Y5={name:"add",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"/></svg>'};var K5={name:"arrow_downward",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"/></svg>'};var C0={name:"arrow_drop_down",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M7 10l5 5 5-5z"/></svg>'};var q5={name:"arrow_right",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M10 17l5-5-5-5v10z"/><path d="M0 24V0h24v24H0z" fill="none"/></svg>'};var $5={name:"block",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9A7.902 7.902 0 014 12zm8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1A7.902 7.902 0 0120 12c0 4.42-3.58 8-8 8z"/></svg>'};var X5={name:"cancel",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"/></svg>'};var z0={name:"check_box_outline_blank",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"/></svg>'},A0={name:"check_box",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M19 3H5a2 2 0 00-2 2v14a2 2 0 002 2h14a2 2 0 002-2V5a2 2 0 00-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>'};var j5={name:"check",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>'};var Z5={name:"clear",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>'};var Ya={name:"close",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>'};var Q5={name:"date_range",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20a2 2 0 002 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"/></svg>'};var J5={name:"drag_handle",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0z"/><path d="M20 9H4v2h16V9zM4 15h16v-2H4v2z"/></svg>'};var t3={name:"first_page",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"/><path d="M24 24H0V0h24v24z" fill="none"/></svg>'};var e3={name:"help",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25z"/></svg>'};var a3={name:"insert_invitation",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19a2 2 0 002 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"/></svg>'};var i0={name:"keyboard_arrow_down",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"/></svg>'},s0={name:"keyboard_arrow_left",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"/></svg>'},fe={name:"keyboard_arrow_right",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"/></svg>'},Go={name:"keyboard_arrow_up",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"/></svg>'};var o3={name:"last_page",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"/></svg>'};var r3={name:"lens",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2z"/></svg>'};var Qr={name:"menu",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"/></svg>'};var n3={name:"mode_edit",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04a.996.996 0 000-1.41l-2.34-2.34a.996.996 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"/></svg>'};var i3={name:"notifications",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 22c1.1 0 2-.9 2-2h-4a2 2 0 002 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2z"/></svg>'};var s3={name:"search",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 109.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/></svg>'};var l3={name:"unfold_more",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M12 5.83L15.17 9l1.41-1.41L12 3 7.41 7.59 8.83 9 12 5.83zm0 12.34L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15 12 18.17z"/></svg>'};var v3={name:"warning",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"/></svg>'};var Im=`${b}open-icon`,h3={OPEN:"open",ORIENTATION:"orientation",ROTATION:"rotation"},Vm=w({},h3),Em={ORIENTATION:"vertical",ROTATION:"full"},It={elementName:Im,observedAttributes:h3,attributes:Vm,defaults:Em};var X1=class{constructor(t={}){this._config=t;this._initialize()}get element(){return this._element}destroy(){this.disconnect()}disconnect(){this._element.isConnected&&Te(this._element)}_initialize(){var t,e,a,o;if(this._element=this._build(),!this._element)throw new Error(`Invalid component instance: ${this._element}`);this._applyProps(),this._applyStyle(),this._applyAttrs(),(e=(t=this._config.options)==null?void 0:t.parent)==null||e.append(this._element),(a=this._config.options)!=null&&a.children&&this._applyChildren(),(o=this._configure)==null||o.call(this)}_applyProps(){this._config.props&&Object.assign(this._element,this._config.props)}_applyStyle(){var t,e;if((t=this._config.options)!=null&&t.style){let a=Object.keys(this._config.options.style);for(let o of a)(e=this._element)==null||e.style.setProperty(o,this._config.options.style[o])}}_applyAttrs(){var t,e;if((t=this._config.options)!=null&&t.attributes)if(this._config.options.attributes instanceof Map)for(let[a,o]of Array.from(this._config.options.attributes))this._element.setAttribute(a,o);else{let a=Object.keys(this._config.options.attributes);for(let o of a)(e=this._element)==null||e.setAttribute(o,this._config.options.attributes[o])}}_applyChildren(){var t;this._element.hasChildNodes()&&r2(this._element),(t=this._config.options)!=null&&t.children&&(typeof this._config.options.children=="string"?this._element.innerHTML=this._config.options.children:this._element.appendChild(this._config.options.children))}};var a2=class extends X1{constructor(t){super(t)}};var Cm=/^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T\s]((([01]\d|2[0-3])((:?)[0-5]\d)?|24\:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/,zm=/a-z/i,c3=10;function p3(r){if(r=r.replace(/_|\s/g,""),Cm.test(r)){let u=new Date(r);if(zm.test(r)||u.setMinutes(u.getMinutes()+u.getTimezoneOffset()),gt(u))return u}let t=[];r.indexOf("/")!==-1?t=r.split("/"):r.indexOf("-")!==-1?t=r.split("-"):(r.length===6||r.length===8)&&!isNaN(+r)&&(t=[r.substring(0,2),r.substring(2,4),r.substring(4)]);let e=t.length===3,[a,o,n]=t;if(a==="0"&&(a="1"),o==="0"&&(o="1"),typeof n=="string"&&n.length===3&&(n=n.padStart(4,"0")),e){let u=a.length===1||a.length===2,_=o.length===1||o.length===2,L=n.length===2||n.length===4;if(!u||!_||!L)return null}else return null;if(n.length===2){let u=new Date().getFullYear()-(100-c3),_=new Date().getFullYear()+c3,L=String(u).slice(0,2),C=String(_).slice(0,2),A=+String(_).slice(2);n=+n<=A?`${C}${n}`:`${L}${n}`}let i=+a,l=+o,h=+n;i>12&&(i=12);let c=new Date(h,i,0).getDate();l>c&&(l=c);let d=new Date(h,i-1,l,0,0,0,0);return gt(d)?d:null}function d3(r){let t=String(r.getMonth()+1).padStart(2,"0"),e=String(r.getDate()).padStart(2,"0"),a=String(r.getFullYear()).padStart(4,"0");return[t,e,a].join("/")}function f2(r,t){return!r&&!t?!0:!r||!t||!gt(r)||!gt(t)?!1:new Date(r).setHours(0,0,0,0)===new Date(t).setHours(0,0,0,0)}function jl(r,t){return new Date(t!=null?t:1970,r+1,0)}function m3(r,t){return jl(r,t).getDate()}var Jr=class{constructor(){this.promise=new Promise((t,e)=>{this._resolveFn=t,this._rejectFn=e})}resolve(t){this._resolveFn(t)}reject(t){this._rejectFn(t)}};var Zl="forge-aria-controls-placeholder";function g3(r,t){let a=r.toLowerCase().indexOf(t.toLowerCase());if(a!==-1){let o=a+t.length,n=document.createElement("span"),i=document.createElement("span");return i.style.fontWeight="bold",i.textContent=r.substring(a,o),n.appendChild(document.createTextNode(r.substring(0,a))),n.appendChild(i),n.appendChild(document.createTextNode(r.substring(o))),n}}function w3(r,{capture:t=!0,pointerenter:e=!0,focusin:a=!0}={}){let o,n=()=>{typeof o=="function"&&o()};return{userInteraction:new Promise(l=>{let h={once:!0,capture:t},c=u=>{a&&r.removeEventListener("focusin",d,h),l(u)},d=u=>{e&&r.removeEventListener("pointerenter",c,h),l(u)};o=()=>{e&&r.removeEventListener("pointerenter",c,h),a&&r.removeEventListener("focusin",d,h)},e&&r.addEventListener("pointerenter",c,h),a&&r.addEventListener("focusin",d,h)}),destroy:n}}function u3(r,t){return t===0?0:r/100*t}function _H(r,t){return t===0?0:r*100/t}function tn(r,t,e,a=0,o=100){let n=e-t,i=r-t;return!n||!i?a:i*o/n+a}function B0(...r){return Math.min(...r.map(t=>t!=null?t:Number.POSITIVE_INFINITY))}function fH(...r){return Math.max(...r.map(t=>t!=null?t:Number.NEGATIVE_INFINITY))}function _3(r,t){if(!(r&&t))return!1;let e=r.getBoundingClientRect(),a=t.getBoundingClientRect();return!(e.top>a.bottom||e.right<a.left||e.bottom<a.top||e.left>a.right)}function Ql({x:r,y:t},e){if(!e)return!1;let{top:a,left:o,bottom:n,right:i}=e.getBoundingClientRect();return r>=o&&r<=i&&t>=a&&t<=n}function en(r,t){let e=null;return t&&(e=Yo(r,t)),e||r.parentElement}function Yo(r,t){let e=r.getRootNode();return t===":host"&&e instanceof ShadowRoot?e.host:e.querySelector(`#${t}`)}function Ka(r,t,e=!0){return e&&t.append(...r.childNodes),r.insertAdjacentElement("beforebegin",t),r.remove(),t}function da(r,t=","){return r.split(t).map(e=>e.trim())}function xH(r,t,e){if(!r.length)return;let a=r[0].parentNode;a&&(a.insertBefore(t,r[0]),r.forEach(o=>{e!=null&&e.length&&e.some(n=>o.matches(n))||t.append(o)}))}function bH(r){let t=r.parentNode;if(t){for(;r.firstChild;)t.insertBefore(r.firstChild,r);r.remove()}}function qa(r){let t=window.devicePixelRatio||1;return Math.round(r*t)/t}function Oe(){if(document.getElementById(Zl))return;let t=document.createElement("div");t.id=Zl,document.body.appendChild(t)}function Zt(r){let t=document.getElementById(Zl);t&&r.setAttribute("aria-controls",t.id)}function Qt(r=0){return new Promise(t=>setTimeout(t,r))}function Ko(){return new Promise(r=>requestAnimationFrame(()=>r()))}function f3(r,t){return Object.prototype.toString.call(r)===`[object ${t}]`}var T0=Symbol("tryDismiss"),Jl=Symbol("forgeDismissibleStack"),Vt=class r{constructor(){this._dismissibleElements=new Set;this._elementsRequestingDismiss=new Map}get dismissing(){var t,e;return(e=(t=this._deferredDismiss)==null?void 0:t.promise)!=null?e:Promise.resolve()}static get instance(){return window[Jl]||(window[Jl]=new r),window[Jl]}async dismiss(t,e){let a=Array.from(this._dismissibleElements),o=a.slice(a.indexOf(t)).reverse();for(let n of o)if(!n[T0](e))break}async requestDismiss(t,e){var o;if(this._deferredDismiss||(this._deferredDismiss=new Jr),this._elementsRequestingDismiss.set(t,e),await Qt(),!this.isRequestingLightDismiss(t))return;let a=Array.from(this._elementsRequestingDismiss).reverse();this._elementsRequestingDismiss.clear();try{for(let[n,i]of a)if(!n[T0](i))break}finally{(o=this._deferredDismiss)==null||o.resolve(),this._deferredDismiss=void 0}}add(t){this._dismissibleElements.add(t)}remove(t){this._dismissibleElements.delete(t),this._elementsRequestingDismiss.delete(t)}has(t){return this._dismissibleElements.has(t)}isRequestingLightDismiss(t){return this._elementsRequestingDismiss.has(t)}isMostRecent(t){let e=Array.from(this._dismissibleElements);return e[e.length-1]===t}};function x3(r,t){let e=()=>t.dispatchEvent(new Event("scroll"));return r.addEventListener("scroll",e,!0),()=>r.removeEventListener("scroll",e,!0)}function t4(r){return r.key==="ArrowLeft"||r.key==="ArrowRight"||r.key==="ArrowUp"||r.key==="ArrowDown"}var EH=["aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-current","aria-description","aria-disabled","aria-expanded","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext"],CH=["aria-autocomplete","aria-description","aria-invalid","aria-keyshortcuts","aria-label"],zH=["checked","disabled","indeterminate","readOnly","required","value"],y3=["name","value","formaction","formenctype","formmethod","formnovalidate","formtarget"];function AH(r,t){return t.map(e=>`${r}:${e}`)}function S0(r,t,e,a=!0){a&&t.some(h=>h.toLowerCase().startsWith("aria-"))&&r.setAttribute("role","presentation");let o=h=>{let c=h.split(":"),d=c.length===2?c[0]:null,u=c.length===2?c[1]:c[0],_=r.getAttribute(h);e.call({},u,_,d)};t.forEach(h=>o(h));let n={attributeFilter:t},i=h=>{h.forEach(c=>o(c.attributeName))},l=new MutationObserver(i);return l.observe(r,n),l}function e4(r,t,e){e.forEach(a=>{let o=r.getAttribute(a);o!==null&&t.setAttribute(a,o)})}function Am(r,t,e){e.forEach(a=>{let o=r[a];k(o)&&(t[a]=o)})}function Bm(r,t){let e=r.validationMessage;e&&t.setCustomValidity(e)}var b3=class{get el(){return this._el}static cloneAttributes(t,e,a){e4(t,e,a)}static cloneProperties(t,e,a){Am(t,e,a)}static cloneValidationMessage(t,e){Object.hasOwnProperty.call(t,"validationMessage")&&Object.hasOwnProperty.call(e,"validationMessage")?Bm(t,e):console.warn("cloneValidationMessage() requires both elements to be input elements.")}initialize(t,e){this._attachCallback=e,this._el=t}attachElement(t){this._attachCallback(t,this._el),this._el=t}};function M3(r,t){let e=document.createElement("div");e.innerHTML=r;for(let o=e.childNodes.length-1;o>=0;o--)e.childNodes[o].nodeName.toLowerCase()!=="svg"&&e.removeChild(e.childNodes[o]);let a=e.firstElementChild;return(a==null?void 0:a.nodeName.toLowerCase())==="svg"&&H3(a)?(t&&a.setAttribute("viewBox",t),!a.hasAttribute("viewBox")&&t&&a.setAttribute("viewBox",t),a.removeAttribute("height"),a.removeAttribute("width"),a):null}function H3(r){if(r.nodeType!==1)return!0;if(r.nodeName.toLowerCase()==="script"||r.querySelector("script"))return!1;let t=Array.from(r.attributes);for(let a of t)if(typeof a.name=="string"&&a.name.toLowerCase().startsWith("on"))return!1;let e=Array.from(r.childNodes);for(let a of e)if(!H3(a))return!1;return!0}var $a=/^(0?[0-9]|1\d|2[0-3]):([0-5]\d)(:([0-5]\d))?$/,an=/^(0?[1-9]|1[0-2]):([0-5]\d)(:([0-5]\d))?\s*([AaPp][Mm])?$/,Tm=/^(\d?\d?):?(\d?\d?)(:?(\d?\d?))?\s*([AaPp][Mm]?)?$/,L3=/[AaPp][Mm]?/;function I3(r){let t=r.match($a)||[null,0,0,null,0],e=t[1],a=t[2],o=t[4];return{hours:e,minutes:a,seconds:o}}function V3(r){let t=r.match(an)||[null,0,0,null,0,"AM"],e=t[1],a=t[2],o=t[4],n=t[5];return{hours:e,minutes:a,seconds:o,meridiem:n}}function E3(r){return $a.test(r)||an.test(r)}function C3(r,t,e){if(r=r&&typeof r=="string"?r.replace(/_|\s/g,""):"",/^\s*$/.test(r)||/^:+$/.test(r))return"";let a=r.match(Tm);if(!a)return"";let o=a[1],n=a[2],i=a[4],l=a[5],h=r.match(L3);h&&(l=h[0],r=r.replace(l,""),l.length===1&&(l+="m")),r.length===3&&!r.includes(":")&&(o=r[0],n=r.substring(1)),t?l="":L3.test(l)?l=l.toUpperCase():/^[AaPp]/.test(l)?l.toLowerCase().startsWith("a")?l="AM":l.toLowerCase().startsWith("p")&&(l="PM"):l="";let c=+o||0,d=+n||0,u=!l||t?23:12;if(c>=u?o=String(u):c<0&&(o="00"),o=o.padStart(2,"0"),n!==void 0&&(d>59?n="59":d<0?n="00":n=n.padStart(2,"0")),i!==void 0){let L=+i||0;L>59?i="59":L<0?i="00":i=i.padStart(2,"0")}let _=o;return n!==void 0&&(_+=`:${n}`,i===void 0&&e&&(i="00")),i!==void 0&&(_+=`:${i}`),l&&(_+=` ${l}`),_}function xe(r,t){if(r==null)return{};var e={},a=Object.keys(r),o,n;for(n=0;n<a.length;n++)o=a[n],!(t.indexOf(o)>=0)&&(e[o]=r[o]);return e}function j(r){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return new j.InputMask(r,t)}var u1=class{constructor(t){Object.assign(this,{inserted:"",rawInserted:"",skip:!1,tailShift:0},t)}aggregate(t){return this.rawInserted+=t.rawInserted,this.skip=this.skip||t.skip,this.inserted+=t.inserted,this.tailShift+=t.tailShift,this}get offset(){return this.tailShift+this.inserted.length}};j.ChangeDetails=u1;function De(r){return typeof r=="string"||r instanceof String}var G={NONE:"NONE",LEFT:"LEFT",FORCE_LEFT:"FORCE_LEFT",RIGHT:"RIGHT",FORCE_RIGHT:"FORCE_RIGHT"};function z3(r){switch(r){case G.LEFT:return G.FORCE_LEFT;case G.RIGHT:return G.FORCE_RIGHT;default:return r}}function on(r){return r.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function l0(r){return Array.isArray(r)?r:[r,new u1]}function Xa(r,t){if(t===r)return!0;var e=Array.isArray(t),a=Array.isArray(r),o;if(e&&a){if(t.length!=r.length)return!1;for(o=0;o<t.length;o++)if(!Xa(t[o],r[o]))return!1;return!0}if(e!=a)return!1;if(t&&r&&typeof t=="object"&&typeof r=="object"){var n=t instanceof Date,i=r instanceof Date;if(n&&i)return t.getTime()==r.getTime();if(n!=i)return!1;var l=t instanceof RegExp,h=r instanceof RegExp;if(l&&h)return t.toString()==r.toString();if(l!=h)return!1;var c=Object.keys(t);for(o=0;o<c.length;o++)if(!Object.prototype.hasOwnProperty.call(r,c[o]))return!1;for(o=0;o<c.length;o++)if(!Xa(r[c[o]],t[c[o]]))return!1;return!0}else if(t&&r&&typeof t=="function"&&typeof r=="function")return t.toString()===r.toString();return!1}var rn=class{constructor(t,e,a,o){for(this.value=t,this.cursorPos=e,this.oldValue=a,this.oldSelection=o;this.value.slice(0,this.startChangePos)!==this.oldValue.slice(0,this.startChangePos);)--this.oldSelection.start}get startChangePos(){return Math.min(this.cursorPos,this.oldSelection.start)}get insertedCount(){return this.cursorPos-this.startChangePos}get inserted(){return this.value.substr(this.startChangePos,this.insertedCount)}get removedCount(){return Math.max(this.oldSelection.end-this.startChangePos||this.oldValue.length-this.value.length,0)}get removed(){return this.oldValue.substr(this.startChangePos,this.removedCount)}get head(){return this.value.substring(0,this.startChangePos)}get tail(){return this.value.substring(this.startChangePos+this.insertedCount)}get removeDirection(){return!this.removedCount||this.insertedCount?G.NONE:(this.oldSelection.end===this.cursorPos||this.oldSelection.start===this.cursorPos)&&this.oldSelection.end===this.oldSelection.start?G.RIGHT:G.LEFT}};var Et=class{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2?arguments[2]:void 0;this.value=t,this.from=e,this.stop=a}toString(){return this.value}extend(t){this.value+=String(t)}appendTo(t){return t.append(this.toString(),{tail:!0}).aggregate(t._appendPlaceholder())}get state(){return{value:this.value,from:this.from,stop:this.stop}}set state(t){Object.assign(this,t)}unshift(t){if(!this.value.length||t!=null&&this.from>=t)return"";let e=this.value[0];return this.value=this.value.slice(1),e}shift(){if(!this.value.length)return"";let t=this.value[this.value.length-1];return this.value=this.value.slice(0,-1),t}};var N2=class r{constructor(t){this._value="",this._update(Object.assign({},r.DEFAULTS,t)),this.isInitialized=!0}updateOptions(t){Object.keys(t).length&&this.withValueRefresh(this._update.bind(this,t))}_update(t){Object.assign(this,t)}get state(){return{_value:this.value}}set state(t){this._value=t._value}reset(){this._value=""}get value(){return this._value}set value(t){this.resolve(t)}resolve(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{input:!0};return this.reset(),this.append(t,e,""),this.doCommit(),this.value}get unmaskedValue(){return this.value}set unmaskedValue(t){this.reset(),this.append(t,{},""),this.doCommit()}get typedValue(){return this.doParse(this.value)}set typedValue(t){this.value=this.doFormat(t)}get rawInputValue(){return this.extractInput(0,this.value.length,{raw:!0})}set rawInputValue(t){this.reset(),this.append(t,{raw:!0},""),this.doCommit()}get displayValue(){return this.value}get isComplete(){return!0}get isFilled(){return this.isComplete}nearestInputPos(t,e){return t}totalInputPositions(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length;return Math.min(this.value.length,e-t)}extractInput(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length;return this.value.slice(t,e)}extractTail(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length;return new Et(this.extractInput(t,e),t)}appendTail(t){return De(t)&&(t=new Et(String(t))),t.appendTo(this)}_appendCharRaw(t){return t?(this._value+=t,new u1({inserted:t,rawInserted:t})):new u1}_appendChar(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2?arguments[2]:void 0,o=this.state,n;if([t,n]=l0(this.doPrepare(t,e)),n=n.aggregate(this._appendCharRaw(t,e)),n.inserted){let i,l=this.doValidate(e)!==!1;if(l&&a!=null){let h=this.state;this.overwrite===!0&&(i=a.state,a.unshift(this.value.length-n.tailShift));let c=this.appendTail(a);l=c.rawInserted===a.toString(),!(l&&c.inserted)&&this.overwrite==="shift"&&(this.state=h,i=a.state,a.shift(),c=this.appendTail(a),l=c.rawInserted===a.toString()),l&&c.inserted&&(this.state=h)}l||(n=new u1,this.state=o,a&&i&&(a.state=i))}return n}_appendPlaceholder(){return new u1}_appendEager(){return new u1}append(t,e,a){if(!De(t))throw new Error("value should be string");let o=new u1,n=De(a)?new Et(String(a)):a;e!=null&&e.tail&&(e._beforeTailState=this.state);for(let i=0;i<t.length;++i){let l=this._appendChar(t[i],e,n);if(!l.rawInserted&&!this.doSkipInvalid(t[i],e,n))break;o.aggregate(l)}return(this.eager===!0||this.eager==="append")&&e!==null&&e!==void 0&&e.input&&t&&o.aggregate(this._appendEager()),n!=null&&(o.tailShift+=this.appendTail(n).tailShift),o}remove(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length;return this._value=this.value.slice(0,t)+this.value.slice(e),new u1}withValueRefresh(t){if(this._refreshing||!this.isInitialized)return t();this._refreshing=!0;let e=this.rawInputValue,a=this.value,o=t();return this.rawInputValue=e,this.value&&this.value!==a&&a.indexOf(this.value)===0&&this.append(a.slice(this.value.length),{},""),delete this._refreshing,o}runIsolated(t){if(this._isolated||!this.isInitialized)return t(this);this._isolated=!0;let e=this.state,a=t(this);return this.state=e,delete this._isolated,a}doSkipInvalid(t){return this.skipInvalid}doPrepare(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.prepare?this.prepare(t,this,e):t}doValidate(t){return(!this.validate||this.validate(this.value,this,t))&&(!this.parent||this.parent.doValidate(t))}doCommit(){this.commit&&this.commit(this.value,this)}doFormat(t){return this.format?this.format(t,this):t}doParse(t){return this.parse?this.parse(t,this):t}splice(t,e,a,o){let n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{input:!0},i=t+e,l=this.extractTail(i),h=this.eager===!0||this.eager==="remove",c;h&&(o=z3(o),c=this.extractInput(0,i,{raw:!0}));let d=t,u=new u1;if(o!==G.NONE&&(d=this.nearestInputPos(t,e>1&&t!==0&&!h?G.NONE:o),u.tailShift=d-t),u.aggregate(this.remove(d)),h&&o!==G.NONE&&c===this.rawInputValue)if(o===G.FORCE_LEFT){let _;for(;c===this.rawInputValue&&(_=this.value.length);)u.aggregate(new u1({tailShift:-1})).aggregate(this.remove(_-1))}else o===G.FORCE_RIGHT&&l.unshift();return u.aggregate(this.append(a,n,l))}maskEquals(t){return this.mask===t}typedValueEquals(t){let e=this.typedValue;return t===e||r.EMPTY_VALUES.includes(t)&&r.EMPTY_VALUES.includes(e)||this.doFormat(t)===this.doFormat(this.typedValue)}};N2.DEFAULTS={format:String,parse:r=>r,skipInvalid:!0};N2.EMPTY_VALUES=[void 0,null,""];j.Masked=N2;function a4(r){if(r==null)throw new Error("mask property should be defined");return r instanceof RegExp?j.MaskedRegExp:De(r)?j.MaskedPattern:r instanceof Date||r===Date?j.MaskedDate:r instanceof Number||typeof r=="number"||r===Number?j.MaskedNumber:Array.isArray(r)||r===Array?j.MaskedDynamic:j.Masked&&r.prototype instanceof j.Masked?r:r instanceof j.Masked?r.constructor:r instanceof Function?j.MaskedFunction:(console.warn("Mask not found for mask",r),j.Masked)}function X2(r){if(j.Masked&&r instanceof j.Masked)return r;r=Object.assign({},r);let t=r.mask;if(j.Masked&&t instanceof j.Masked)return t;let e=a4(t);if(!e)throw new Error("Masked class is not found for provided mask, appropriate module needs to be import manually before creating mask.");return new e(r)}j.createMask=X2;var Sm=["parent","isOptional","placeholderChar","displayChar","lazy","eager"],A3={0:/\d/,a:/[\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,"*":/./},qo=class{constructor(t){let{parent:e,isOptional:a,placeholderChar:o,displayChar:n,lazy:i,eager:l}=t,h=xe(t,Sm);this.masked=X2(h),Object.assign(this,{parent:e,isOptional:a,placeholderChar:o,displayChar:n,lazy:i,eager:l})}reset(){this.isFilled=!1,this.masked.reset()}remove(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length;return t===0&&e>=1?(this.isFilled=!1,this.masked.remove(t,e)):new u1}get value(){return this.masked.value||(this.isFilled&&!this.isOptional?this.placeholderChar:"")}get unmaskedValue(){return this.masked.unmaskedValue}get displayValue(){return this.masked.value&&this.displayChar||this.value}get isComplete(){return!!this.masked.value||this.isOptional}_appendChar(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.isFilled)return new u1;let a=this.masked.state,o=this.masked._appendChar(t,e);return o.inserted&&this.doValidate(e)===!1&&(o.inserted=o.rawInserted="",this.masked.state=a),!o.inserted&&!this.isOptional&&!this.lazy&&!e.input&&(o.inserted=this.placeholderChar),o.skip=!o.inserted&&!this.isOptional,this.isFilled=!!o.inserted,o}append(){return this.masked.append(...arguments)}_appendPlaceholder(){let t=new u1;return this.isFilled||this.isOptional||(this.isFilled=!0,t.inserted=this.placeholderChar),t}_appendEager(){return new u1}extractTail(){return this.masked.extractTail(...arguments)}appendTail(){return this.masked.appendTail(...arguments)}extractInput(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length,a=arguments.length>2?arguments[2]:void 0;return this.masked.extractInput(t,e,a)}nearestInputPos(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:G.NONE,a=0,o=this.value.length,n=Math.min(Math.max(t,a),o);switch(e){case G.LEFT:case G.FORCE_LEFT:return this.isComplete?n:a;case G.RIGHT:case G.FORCE_RIGHT:return this.isComplete?n:o;case G.NONE:default:return n}}totalInputPositions(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length;return this.value.slice(t,e).length}doValidate(){return this.masked.doValidate(...arguments)&&(!this.parent||this.parent.doValidate(...arguments))}doCommit(){this.masked.doCommit()}get state(){return{masked:this.masked.state,isFilled:this.isFilled}}set state(t){this.masked.state=t.masked,this.isFilled=t.isFilled}};var $o=class{constructor(t){Object.assign(this,t),this._value="",this.isFixed=!0}get value(){return this._value}get unmaskedValue(){return this.isUnmasking?this.value:""}get displayValue(){return this.value}reset(){this._isRawInput=!1,this._value=""}remove(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this._value.length;return this._value=this._value.slice(0,t)+this._value.slice(e),this._value||(this._isRawInput=!1),new u1}nearestInputPos(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:G.NONE,a=0,o=this._value.length;switch(e){case G.LEFT:case G.FORCE_LEFT:return a;case G.NONE:case G.RIGHT:case G.FORCE_RIGHT:default:return o}}totalInputPositions(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this._value.length;return this._isRawInput?e-t:0}extractInput(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this._value.length;return(arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}).raw&&this._isRawInput&&this._value.slice(t,e)||""}get isComplete(){return!0}get isFilled(){return!!this._value}_appendChar(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=new u1;if(this.isFilled)return a;let o=this.eager===!0||this.eager==="append",i=this.char===t&&(this.isUnmasking||e.input||e.raw)&&(!e.raw||!o)&&!e.tail;return i&&(a.rawInserted=this.char),this._value=a.inserted=this.char,this._isRawInput=i&&(e.raw||e.input),a}_appendEager(){return this._appendChar(this.char,{tail:!0})}_appendPlaceholder(){let t=new u1;return this.isFilled||(this._value=t.inserted=this.char),t}extractTail(){return arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length,new Et("")}appendTail(t){return De(t)&&(t=new Et(String(t))),t.appendTo(this)}append(t,e,a){let o=this._appendChar(t[0],e);return a!=null&&(o.tailShift+=this.appendTail(a).tailShift),o}doCommit(){}get state(){return{_value:this._value,_isRawInput:this._isRawInput}}set state(t){Object.assign(this,t)}};var km=["chunks"],Xo=class r{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;this.chunks=t,this.from=e}toString(){return this.chunks.map(String).join("")}extend(t){if(!String(t))return;De(t)&&(t=new Et(String(t)));let e=this.chunks[this.chunks.length-1],a=e&&(e.stop===t.stop||t.stop==null)&&t.from===e.from+e.toString().length;if(t instanceof Et)a?e.extend(t.toString()):this.chunks.push(t);else if(t instanceof r){if(t.stop==null){let o;for(;t.chunks.length&&t.chunks[0].stop==null;)o=t.chunks.shift(),o.from+=t.from,this.extend(o)}t.toString()&&(t.stop=t.blockIndex,this.chunks.push(t))}}appendTo(t){if(!(t instanceof j.MaskedPattern))return new Et(this.toString()).appendTo(t);let e=new u1;for(let a=0;a<this.chunks.length&&!e.skip;++a){let o=this.chunks[a],n=t._mapPosToBlock(t.value.length),i=o.stop,l;if(i!=null&&(!n||n.index<=i)){if(o instanceof r||t._stops.indexOf(i)>=0){let h=t._appendPlaceholder(i);e.aggregate(h)}l=o instanceof r&&t._blocks[i]}if(l){let h=l.appendTail(o);h.skip=!1,e.aggregate(h),t._value+=h.inserted;let c=o.toString().slice(h.rawInserted.length);c&&e.aggregate(t.append(c,{tail:!0}))}else e.aggregate(t.append(o.toString(),{tail:!0}))}return e}get state(){return{chunks:this.chunks.map(t=>t.state),from:this.from,stop:this.stop,blockIndex:this.blockIndex}}set state(t){let{chunks:e}=t,a=xe(t,km);Object.assign(this,a),this.chunks=e.map(o=>{let n="chunks"in o?new r:new Et;return n.state=o,n})}unshift(t){if(!this.chunks.length||t!=null&&this.from>=t)return"";let e=t!=null?t-this.from:t,a=0;for(;a<this.chunks.length;){let o=this.chunks[a],n=o.unshift(e);if(o.toString()){if(!n)break;++a}else this.chunks.splice(a,1);if(n)return n}return""}shift(){if(!this.chunks.length)return"";let t=this.chunks.length-1;for(;0<=t;){let e=this.chunks[t],a=e.shift();if(e.toString()){if(!a)break;--t}else this.chunks.splice(t,1);if(a)return a}return""}};var nn=class{constructor(t,e){this.masked=t,this._log=[];let{offset:a,index:o}=t._mapPosToBlock(e)||(e<0?{index:0,offset:0}:{index:this.masked._blocks.length,offset:0});this.offset=a,this.index=o,this.ok=!1}get block(){return this.masked._blocks[this.index]}get pos(){return this.masked._blockStartPos(this.index)+this.offset}get state(){return{index:this.index,offset:this.offset,ok:this.ok}}set state(t){Object.assign(this,t)}pushState(){this._log.push(this.state)}popState(){let t=this._log.pop();return this.state=t,t}bindBlock(){this.block||(this.index<0&&(this.index=0,this.offset=0),this.index>=this.masked._blocks.length&&(this.index=this.masked._blocks.length-1,this.offset=this.block.value.length))}_pushLeft(t){for(this.pushState(),this.bindBlock();0<=this.index;--this.index,this.offset=((e=this.block)===null||e===void 0?void 0:e.value.length)||0){var e;if(t())return this.ok=!0}return this.ok=!1}_pushRight(t){for(this.pushState(),this.bindBlock();this.index<this.masked._blocks.length;++this.index,this.offset=0)if(t())return this.ok=!0;return this.ok=!1}pushLeftBeforeFilled(){return this._pushLeft(()=>{if(!(this.block.isFixed||!this.block.value)&&(this.offset=this.block.nearestInputPos(this.offset,G.FORCE_LEFT),this.offset!==0))return!0})}pushLeftBeforeInput(){return this._pushLeft(()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,G.LEFT),!0})}pushLeftBeforeRequired(){return this._pushLeft(()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,G.LEFT),!0})}pushRightBeforeFilled(){return this._pushRight(()=>{if(!(this.block.isFixed||!this.block.value)&&(this.offset=this.block.nearestInputPos(this.offset,G.FORCE_RIGHT),this.offset!==this.block.value.length))return!0})}pushRightBeforeInput(){return this._pushRight(()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,G.NONE),!0})}pushRightBeforeRequired(){return this._pushRight(()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,G.NONE),!0})}};var sn=class extends N2{_update(t){t.mask&&(t.validate=e=>e.search(t.mask)>=0),super._update(t)}};j.MaskedRegExp=sn;var Om=["_blocks"],ut=class r extends N2{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.definitions=Object.assign({},A3,t.definitions),super(Object.assign({},r.DEFAULTS,t))}_update(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.definitions=Object.assign({},this.definitions,t.definitions),super._update(t),this._rebuildMask()}_rebuildMask(){let t=this.definitions;this._blocks=[],this._stops=[],this._maskedBlocks={};let e=this.mask;if(!e||!t)return;let a=!1,o=!1;for(let l=0;l<e.length;++l){var n,i;if(this.blocks){let _=e.slice(l),L=Object.keys(this.blocks).filter(A=>_.indexOf(A)===0);L.sort((A,z)=>z.length-A.length);let C=L[0];if(C){let A=X2(Object.assign({parent:this,lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,overwrite:this.overwrite},this.blocks[C]));A&&(this._blocks.push(A),this._maskedBlocks[C]||(this._maskedBlocks[C]=[]),this._maskedBlocks[C].push(this._blocks.length-1)),l+=C.length-1;continue}}let h=e[l],c=h in t;if(h===r.STOP_CHAR){this._stops.push(this._blocks.length);continue}if(h==="{"||h==="}"){a=!a;continue}if(h==="["||h==="]"){o=!o;continue}if(h===r.ESCAPE_CHAR){if(++l,h=e[l],!h)break;c=!1}let d=(n=t[h])!==null&&n!==void 0&&n.mask&&!(((i=t[h])===null||i===void 0?void 0:i.mask.prototype)instanceof j.Masked)?t[h]:{mask:t[h]},u=c?new qo(Object.assign({parent:this,isOptional:o,lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar},d)):new $o({char:h,eager:this.eager,isUnmasking:a});this._blocks.push(u)}}get state(){return Object.assign({},super.state,{_blocks:this._blocks.map(t=>t.state)})}set state(t){let{_blocks:e}=t,a=xe(t,Om);this._blocks.forEach((o,n)=>o.state=e[n]),super.state=a}reset(){super.reset(),this._blocks.forEach(t=>t.reset())}get isComplete(){return this._blocks.every(t=>t.isComplete)}get isFilled(){return this._blocks.every(t=>t.isFilled)}get isFixed(){return this._blocks.every(t=>t.isFixed)}get isOptional(){return this._blocks.every(t=>t.isOptional)}doCommit(){this._blocks.forEach(t=>t.doCommit()),super.doCommit()}get unmaskedValue(){return this._blocks.reduce((t,e)=>t+=e.unmaskedValue,"")}set unmaskedValue(t){super.unmaskedValue=t}get value(){return this._blocks.reduce((t,e)=>t+=e.value,"")}set value(t){super.value=t}get displayValue(){return this._blocks.reduce((t,e)=>t+=e.displayValue,"")}appendTail(t){return super.appendTail(t).aggregate(this._appendPlaceholder())}_appendEager(){var t;let e=new u1,a=(t=this._mapPosToBlock(this.value.length))===null||t===void 0?void 0:t.index;if(a==null)return e;this._blocks[a].isFilled&&++a;for(let o=a;o<this._blocks.length;++o){let n=this._blocks[o]._appendEager();if(!n.inserted)break;e.aggregate(n)}return e}_appendCharRaw(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=this._mapPosToBlock(this.value.length),o=new u1;if(!a)return o;for(let l=a.index;;++l){var n,i;let h=this._blocks[l];if(!h)break;let c=h._appendChar(t,Object.assign({},e,{_beforeTailState:(n=e._beforeTailState)===null||n===void 0||(i=n._blocks)===null||i===void 0?void 0:i[l]})),d=c.skip;if(o.aggregate(c),d||c.rawInserted)break}return o}extractTail(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length,a=new Xo;return t===e||this._forEachBlocksInRange(t,e,(o,n,i,l)=>{let h=o.extractTail(i,l);h.stop=this._findStopBefore(n),h.from=this._blockStartPos(n),h instanceof Xo&&(h.blockIndex=n),a.extend(h)}),a}extractInput(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(t===e)return"";let o="";return this._forEachBlocksInRange(t,e,(n,i,l,h)=>{o+=n.extractInput(l,h,a)}),o}_findStopBefore(t){let e;for(let a=0;a<this._stops.length;++a){let o=this._stops[a];if(o<=t)e=o;else break}return e}_appendPlaceholder(t){let e=new u1;if(this.lazy&&t==null)return e;let a=this._mapPosToBlock(this.value.length);if(!a)return e;let o=a.index,n=t!=null?t:this._blocks.length;return this._blocks.slice(o,n).forEach(i=>{if(!i.lazy||t!=null){let l=i._blocks!=null?[i._blocks.length]:[],h=i._appendPlaceholder(...l);this._value+=h.inserted,e.aggregate(h)}}),e}_mapPosToBlock(t){let e="";for(let a=0;a<this._blocks.length;++a){let o=this._blocks[a],n=e.length;if(e+=o.value,t<=e.length)return{index:a,offset:t-n}}}_blockStartPos(t){return this._blocks.slice(0,t).reduce((e,a)=>e+=a.value.length,0)}_forEachBlocksInRange(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length,a=arguments.length>2?arguments[2]:void 0,o=this._mapPosToBlock(t);if(o){let n=this._mapPosToBlock(e),i=n&&o.index===n.index,l=o.offset,h=n&&i?n.offset:this._blocks[o.index].value.length;if(a(this._blocks[o.index],o.index,l,h),n&&!i){for(let c=o.index+1;c<n.index;++c)a(this._blocks[c],c,0,this._blocks[c].value.length);a(this._blocks[n.index],n.index,0,n.offset)}}}remove(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length,a=super.remove(t,e);return this._forEachBlocksInRange(t,e,(o,n,i,l)=>{a.aggregate(o.remove(i,l))}),a}nearestInputPos(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:G.NONE;if(!this._blocks.length)return 0;let a=new nn(this,t);if(e===G.NONE)return a.pushRightBeforeInput()||(a.popState(),a.pushLeftBeforeInput())?a.pos:this.value.length;if(e===G.LEFT||e===G.FORCE_LEFT){if(e===G.LEFT){if(a.pushRightBeforeFilled(),a.ok&&a.pos===t)return t;a.popState()}if(a.pushLeftBeforeInput(),a.pushLeftBeforeRequired(),a.pushLeftBeforeFilled(),e===G.LEFT){if(a.pushRightBeforeInput(),a.pushRightBeforeRequired(),a.ok&&a.pos<=t||(a.popState(),a.ok&&a.pos<=t))return a.pos;a.popState()}return a.ok?a.pos:e===G.FORCE_LEFT?0:(a.popState(),a.ok||(a.popState(),a.ok)?a.pos:0)}return e===G.RIGHT||e===G.FORCE_RIGHT?(a.pushRightBeforeInput(),a.pushRightBeforeRequired(),a.pushRightBeforeFilled()?a.pos:e===G.FORCE_RIGHT?this.value.length:(a.popState(),a.ok||(a.popState(),a.ok)?a.pos:this.nearestInputPos(t,G.LEFT))):t}totalInputPositions(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length,a=0;return this._forEachBlocksInRange(t,e,(o,n,i,l)=>{a+=o.totalInputPositions(i,l)}),a}maskedBlock(t){return this.maskedBlocks(t)[0]}maskedBlocks(t){let e=this._maskedBlocks[t];return e?e.map(a=>this._blocks[a]):[]}};ut.DEFAULTS={lazy:!0,placeholderChar:"_"};ut.STOP_CHAR="`";ut.ESCAPE_CHAR="\\";ut.InputDefinition=qo;ut.FixedDefinition=$o;j.MaskedPattern=ut;var Jt=class extends ut{get _matchFrom(){return this.maxLength-String(this.from).length}_update(t){t=Object.assign({to:this.to||0,from:this.from||0,maxLength:this.maxLength||0},t);let e=String(t.to).length;t.maxLength!=null&&(e=Math.max(e,t.maxLength)),t.maxLength=e;let a=String(t.from).padStart(e,"0"),o=String(t.to).padStart(e,"0"),n=0;for(;n<o.length&&o[n]===a[n];)++n;t.mask=o.slice(0,n).replace(/0/g,"\\0")+"0".repeat(e-n),super._update(t)}get isComplete(){return super.isComplete&&!!this.value}boundaries(t){let e="",a="",[,o,n]=t.match(/^(\D*)(\d*)(\D*)/)||[];return n&&(e="0".repeat(o.length)+n,a="9".repeat(o.length)+n),e=e.padEnd(this.maxLength,"0"),a=a.padEnd(this.maxLength,"9"),[e,a]}doPrepare(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a;if([t,a]=l0(super.doPrepare(t.replace(/\D/g,""),e)),!this.autofix||!t)return t;let o=String(this.from).padStart(this.maxLength,"0"),n=String(this.to).padStart(this.maxLength,"0"),i=this.value+t;if(i.length>this.maxLength)return"";let[l,h]=this.boundaries(i);return Number(h)<this.from?o[i.length-1]:Number(l)>this.to?this.autofix==="pad"&&i.length<this.maxLength?["",a.aggregate(this.append(o[i.length-1]+t,e))]:n[i.length-1]:t}doValidate(){let t=this.value;if(t.search(/[^0]/)===-1&&t.length<=this._matchFrom)return!0;let[a,o]=this.boundaries(t);return this.from<=Number(o)&&Number(a)<=this.to&&super.doValidate(...arguments)}};j.MaskedRange=Jt;var ja=class r extends ut{constructor(t){super(Object.assign({},r.DEFAULTS,t))}_update(t){t.mask===Date&&delete t.mask,t.pattern&&(t.mask=t.pattern);let e=t.blocks;t.blocks=Object.assign({},r.GET_DEFAULT_BLOCKS()),t.min&&(t.blocks.Y.from=t.min.getFullYear()),t.max&&(t.blocks.Y.to=t.max.getFullYear()),t.min&&t.max&&t.blocks.Y.from===t.blocks.Y.to&&(t.blocks.m.from=t.min.getMonth()+1,t.blocks.m.to=t.max.getMonth()+1,t.blocks.m.from===t.blocks.m.to&&(t.blocks.d.from=t.min.getDate(),t.blocks.d.to=t.max.getDate())),Object.assign(t.blocks,this.blocks,e),Object.keys(t.blocks).forEach(a=>{let o=t.blocks[a];!("autofix"in o)&&"autofix"in t&&(o.autofix=t.autofix)}),super._update(t)}doValidate(){let t=this.date;return super.doValidate(...arguments)&&(!this.isComplete||this.isDateExist(this.value)&&t!=null&&(this.min==null||this.min<=t)&&(this.max==null||t<=this.max))}isDateExist(t){return this.format(this.parse(t,this),this).indexOf(t)>=0}get date(){return this.typedValue}set date(t){this.typedValue=t}get typedValue(){return this.isComplete?super.typedValue:null}set typedValue(t){super.typedValue=t}maskEquals(t){return t===Date||super.maskEquals(t)}};ja.DEFAULTS={pattern:"d{.}`m{.}`Y",format:r=>{if(!r)return"";let t=String(r.getDate()).padStart(2,"0"),e=String(r.getMonth()+1).padStart(2,"0"),a=r.getFullYear();return[t,e,a].join(".")},parse:r=>{let[t,e,a]=r.split(".");return new Date(a,e-1,t)}};ja.GET_DEFAULT_BLOCKS=()=>({d:{mask:Jt,from:1,to:31,maxLength:2},m:{mask:Jt,from:1,to:12,maxLength:2},Y:{mask:Jt,from:1900,to:9999}});j.MaskedDate=ja;var k0=class{get selectionStart(){let t;try{t=this._unsafeSelectionStart}catch(e){}return t!=null?t:this.value.length}get selectionEnd(){let t;try{t=this._unsafeSelectionEnd}catch(e){}return t!=null?t:this.value.length}select(t,e){if(!(t==null||e==null||t===this.selectionStart&&e===this.selectionEnd))try{this._unsafeSelect(t,e)}catch(a){}}_unsafeSelect(t,e){}get isActive(){return!1}bindEvents(t){}unbindEvents(){}};j.MaskElement=k0;var v0=class r extends k0{constructor(t){super(),this.input=t,this._handlers={}}get rootElement(){var t,e,a;return(t=(e=(a=this.input).getRootNode)===null||e===void 0?void 0:e.call(a))!==null&&t!==void 0?t:document}get isActive(){return this.input===this.rootElement.activeElement}get _unsafeSelectionStart(){return this.input.selectionStart}get _unsafeSelectionEnd(){return this.input.selectionEnd}_unsafeSelect(t,e){this.input.setSelectionRange(t,e)}get value(){return this.input.value}set value(t){this.input.value=t}bindEvents(t){Object.keys(t).forEach(e=>this._toggleEventHandler(r.EVENTS_MAP[e],t[e]))}unbindEvents(){Object.keys(this._handlers).forEach(t=>this._toggleEventHandler(t))}_toggleEventHandler(t,e){this._handlers[t]&&(this.input.removeEventListener(t,this._handlers[t]),delete this._handlers[t]),e&&(this.input.addEventListener(t,e),this._handlers[t]=e)}};v0.EVENTS_MAP={selectionChange:"keydown",input:"input",drop:"drop",click:"click",focus:"focus",commit:"blur"};j.HTMLMaskElement=v0;var Za=class extends v0{get _unsafeSelectionStart(){let t=this.rootElement,e=t.getSelection&&t.getSelection(),a=e&&e.anchorOffset,o=e&&e.focusOffset;return o==null||a==null||a<o?a:o}get _unsafeSelectionEnd(){let t=this.rootElement,e=t.getSelection&&t.getSelection(),a=e&&e.anchorOffset,o=e&&e.focusOffset;return o==null||a==null||a>o?a:o}_unsafeSelect(t,e){if(!this.rootElement.createRange)return;let a=this.rootElement.createRange();a.setStart(this.input.firstChild||this.input,t),a.setEnd(this.input.lastChild||this.input,e);let o=this.rootElement,n=o.getSelection&&o.getSelection();n&&(n.removeAllRanges(),n.addRange(a))}get value(){return this.input.textContent}set value(t){this.input.textContent=t}};j.HTMLContenteditableMaskElement=Za;var Dm=["mask"],O0=class{constructor(t,e){this.el=t instanceof k0?t:t.isContentEditable&&t.tagName!=="INPUT"&&t.tagName!=="TEXTAREA"?new Za(t):new v0(t),this.masked=X2(e),this._listeners={},this._value="",this._unmaskedValue="",this._saveSelection=this._saveSelection.bind(this),this._onInput=this._onInput.bind(this),this._onChange=this._onChange.bind(this),this._onDrop=this._onDrop.bind(this),this._onFocus=this._onFocus.bind(this),this._onClick=this._onClick.bind(this),this.alignCursor=this.alignCursor.bind(this),this.alignCursorFriendly=this.alignCursorFriendly.bind(this),this._bindEvents(),this.updateValue(),this._onChange()}get mask(){return this.masked.mask}maskEquals(t){var e;return t==null||((e=this.masked)===null||e===void 0?void 0:e.maskEquals(t))}set mask(t){if(this.maskEquals(t))return;if(!(t instanceof j.Masked)&&this.masked.constructor===a4(t)){this.masked.updateOptions({mask:t});return}let e=X2({mask:t});e.unmaskedValue=this.masked.unmaskedValue,this.masked=e}get value(){return this._value}set value(t){this.value!==t&&(this.masked.value=t,this.updateControl(),this.alignCursor())}get unmaskedValue(){return this._unmaskedValue}set unmaskedValue(t){this.unmaskedValue!==t&&(this.masked.unmaskedValue=t,this.updateControl(),this.alignCursor())}get typedValue(){return this.masked.typedValue}set typedValue(t){this.masked.typedValueEquals(t)||(this.masked.typedValue=t,this.updateControl(),this.alignCursor())}get displayValue(){return this.masked.displayValue}_bindEvents(){this.el.bindEvents({selectionChange:this._saveSelection,input:this._onInput,drop:this._onDrop,click:this._onClick,focus:this._onFocus,commit:this._onChange})}_unbindEvents(){this.el&&this.el.unbindEvents()}_fireEvent(t){for(var e=arguments.length,a=new Array(e>1?e-1:0),o=1;o<e;o++)a[o-1]=arguments[o];let n=this._listeners[t];n&&n.forEach(i=>i(...a))}get selectionStart(){return this._cursorChanging?this._changingCursorPos:this.el.selectionStart}get cursorPos(){return this._cursorChanging?this._changingCursorPos:this.el.selectionEnd}set cursorPos(t){!this.el||!this.el.isActive||(this.el.select(t,t),this._saveSelection())}_saveSelection(){this.displayValue!==this.el.value&&console.warn("Element value was changed outside of mask. Syncronize mask using `mask.updateValue()` to work properly."),this._selection={start:this.selectionStart,end:this.cursorPos}}updateValue(){this.masked.value=this.el.value,this._value=this.masked.value}updateControl(){let t=this.masked.unmaskedValue,e=this.masked.value,a=this.displayValue,o=this.unmaskedValue!==t||this.value!==e;this._unmaskedValue=t,this._value=e,this.el.value!==a&&(this.el.value=a),o&&this._fireChangeEvents()}updateOptions(t){let{mask:e}=t,a=xe(t,Dm),o=!this.maskEquals(e),n=!Xa(this.masked,a);o&&(this.mask=e),n&&this.masked.updateOptions(a),(o||n)&&this.updateControl()}updateCursor(t){t!=null&&(this.cursorPos=t,this._delayUpdateCursor(t))}_delayUpdateCursor(t){this._abortUpdateCursor(),this._changingCursorPos=t,this._cursorChanging=setTimeout(()=>{this.el&&(this.cursorPos=this._changingCursorPos,this._abortUpdateCursor())},10)}_fireChangeEvents(){this._fireEvent("accept",this._inputEvent),this.masked.isComplete&&this._fireEvent("complete",this._inputEvent)}_abortUpdateCursor(){this._cursorChanging&&(clearTimeout(this._cursorChanging),delete this._cursorChanging)}alignCursor(){this.cursorPos=this.masked.nearestInputPos(this.masked.nearestInputPos(this.cursorPos,G.LEFT))}alignCursorFriendly(){this.selectionStart===this.cursorPos&&this.alignCursor()}on(t,e){return this._listeners[t]||(this._listeners[t]=[]),this._listeners[t].push(e),this}off(t,e){if(!this._listeners[t])return this;if(!e)return delete this._listeners[t],this;let a=this._listeners[t].indexOf(e);return a>=0&&this._listeners[t].splice(a,1),this}_onInput(t){if(this._inputEvent=t,this._abortUpdateCursor(),!this._selection)return this.updateValue();let e=new rn(this.el.value,this.cursorPos,this.displayValue,this._selection),a=this.masked.rawInputValue,o=this.masked.splice(e.startChangePos,e.removed.length,e.inserted,e.removeDirection,{input:!0,raw:!0}).offset,n=a===this.masked.rawInputValue?e.removeDirection:G.NONE,i=this.masked.nearestInputPos(e.startChangePos+o,n);n!==G.NONE&&(i=this.masked.nearestInputPos(i,G.NONE)),this.updateControl(),this.updateCursor(i),delete this._inputEvent}_onChange(){this.displayValue!==this.el.value&&this.updateValue(),this.masked.doCommit(),this.updateControl(),this._saveSelection()}_onDrop(t){t.preventDefault(),t.stopPropagation()}_onFocus(t){this.alignCursorFriendly()}_onClick(t){this.alignCursorFriendly()}destroy(){this._unbindEvents(),this._listeners.length=0,delete this.el}};j.InputMask=O0;var ma=class extends ut{_update(t){t.enum&&(t.mask="*".repeat(t.enum[0].length)),super._update(t)}doValidate(){return this.enum.some(t=>t.indexOf(this.unmaskedValue)>=0)&&super.doValidate(...arguments)}};j.MaskedEnum=ma;var D0=class r extends N2{constructor(t){super(Object.assign({},r.DEFAULTS,t))}_update(t){super._update(t),this._updateRegExps()}_updateRegExps(){let t="^"+(this.allowNegative?"[+|\\-]?":""),e="\\d*",a=(this.scale?"(".concat(on(this.radix),"\\d{0,").concat(this.scale,"})?"):"")+"$";this._numberRegExp=new RegExp(t+e+a),this._mapToRadixRegExp=new RegExp("[".concat(this.mapToRadix.map(on).join(""),"]"),"g"),this._thousandsSeparatorRegExp=new RegExp(on(this.thousandsSeparator),"g")}_removeThousandsSeparators(t){return t.replace(this._thousandsSeparatorRegExp,"")}_insertThousandsSeparators(t){let e=t.split(this.radix);return e[0]=e[0].replace(/\B(?=(\d{3})+(?!\d))/g,this.thousandsSeparator),e.join(this.radix)}doPrepare(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};t=this._removeThousandsSeparators(this.scale&&this.mapToRadix.length&&(e.input&&e.raw||!e.input&&!e.raw)?t.replace(this._mapToRadixRegExp,this.radix):t);let[a,o]=l0(super.doPrepare(t,e));return t&&!a&&(o.skip=!0),[a,o]}_separatorsCount(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a=0;for(let o=0;o<t;++o)this._value.indexOf(this.thousandsSeparator,o)===o&&(++a,e&&(t+=this.thousandsSeparator.length));return a}_separatorsCountFromSlice(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this._value;return this._separatorsCount(this._removeThousandsSeparators(t).length,!0)}extractInput(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length,a=arguments.length>2?arguments[2]:void 0;return[t,e]=this._adjustRangeWithSeparators(t,e),this._removeThousandsSeparators(super.extractInput(t,e,a))}_appendCharRaw(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.thousandsSeparator)return super._appendCharRaw(t,e);let a=e.tail&&e._beforeTailState?e._beforeTailState._value:this._value,o=this._separatorsCountFromSlice(a);this._value=this._removeThousandsSeparators(this.value);let n=super._appendCharRaw(t,e);this._value=this._insertThousandsSeparators(this._value);let i=e.tail&&e._beforeTailState?e._beforeTailState._value:this._value,l=this._separatorsCountFromSlice(i);return n.tailShift+=(l-o)*this.thousandsSeparator.length,n.skip=!n.rawInserted&&t===this.thousandsSeparator,n}_findSeparatorAround(t){if(this.thousandsSeparator){let e=t-this.thousandsSeparator.length+1,a=this.value.indexOf(this.thousandsSeparator,e);if(a<=t)return a}return-1}_adjustRangeWithSeparators(t,e){let a=this._findSeparatorAround(t);a>=0&&(t=a);let o=this._findSeparatorAround(e);return o>=0&&(e=o+this.thousandsSeparator.length),[t,e]}remove(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.value.length;[t,e]=this._adjustRangeWithSeparators(t,e);let a=this.value.slice(0,t),o=this.value.slice(e),n=this._separatorsCount(a.length);this._value=this._insertThousandsSeparators(this._removeThousandsSeparators(a+o));let i=this._separatorsCountFromSlice(a);return new u1({tailShift:(i-n)*this.thousandsSeparator.length})}nearestInputPos(t,e){if(!this.thousandsSeparator)return t;switch(e){case G.NONE:case G.LEFT:case G.FORCE_LEFT:{let a=this._findSeparatorAround(t-1);if(a>=0){let o=a+this.thousandsSeparator.length;if(t<o||this.value.length<=o||e===G.FORCE_LEFT)return a}break}case G.RIGHT:case G.FORCE_RIGHT:{let a=this._findSeparatorAround(t);if(a>=0)return a+this.thousandsSeparator.length}}return t}doValidate(t){let e=!!this._removeThousandsSeparators(this.value).match(this._numberRegExp);if(e){let a=this.number;e=e&&!isNaN(a)&&(this.min==null||this.min>=0||this.min<=this.number)&&(this.max==null||this.max<=0||this.number<=this.max)}return e&&super.doValidate(t)}doCommit(){if(this.value){let t=this.number,e=t;this.min!=null&&(e=Math.max(e,this.min)),this.max!=null&&(e=Math.min(e,this.max)),e!==t&&(this.unmaskedValue=this.doFormat(e));let a=this.value;this.normalizeZeros&&(a=this._normalizeZeros(a)),this.padFractionalZeros&&this.scale>0&&(a=this._padFractionalZeros(a)),this._value=a}super.doCommit()}_normalizeZeros(t){let e=this._removeThousandsSeparators(t).split(this.radix);return e[0]=e[0].replace(/^(\D*)(0*)(\d*)/,(a,o,n,i)=>o+i),t.length&&!/\d$/.test(e[0])&&(e[0]=e[0]+"0"),e.length>1&&(e[1]=e[1].replace(/0*$/,""),e[1].length||(e.length=1)),this._insertThousandsSeparators(e.join(this.radix))}_padFractionalZeros(t){if(!t)return t;let e=t.split(this.radix);return e.length<2&&e.push(""),e[1]=e[1].padEnd(this.scale,"0"),e.join(this.radix)}doSkipInvalid(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2?arguments[2]:void 0,o=this.scale===0&&t!==this.thousandsSeparator&&(t===this.radix||t===r.UNMASKED_RADIX||this.mapToRadix.includes(t));return super.doSkipInvalid(t,e,a)&&!o}get unmaskedValue(){return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix,r.UNMASKED_RADIX)}set unmaskedValue(t){super.unmaskedValue=t}get typedValue(){return this.doParse(this.unmaskedValue)}set typedValue(t){this.rawInputValue=this.doFormat(t).replace(r.UNMASKED_RADIX,this.radix)}get number(){return this.typedValue}set number(t){this.typedValue=t}get allowNegative(){return this.signed||this.min!=null&&this.min<0||this.max!=null&&this.max<0}typedValueEquals(t){return(super.typedValueEquals(t)||r.EMPTY_VALUES.includes(t)&&r.EMPTY_VALUES.includes(this.typedValue))&&!(t===0&&this.value==="")}};D0.UNMASKED_RADIX=".";D0.DEFAULTS={radix:",",thousandsSeparator:"",mapToRadix:[D0.UNMASKED_RADIX],scale:2,signed:!1,normalizeZeros:!0,padFractionalZeros:!1,parse:Number,format:r=>r.toLocaleString("en-US",{useGrouping:!1,maximumFractionDigits:20})};D0.EMPTY_VALUES=[...N2.EMPTY_VALUES,0];j.MaskedNumber=D0;var ln=class extends N2{_update(t){t.mask&&(t.validate=t.mask),super._update(t)}};j.MaskedFunction=ln;var Pm=["compiledMasks","currentMaskRef","currentMask"],Nm=["mask"],jo=class r extends N2{constructor(t){super(Object.assign({},r.DEFAULTS,t)),this.currentMask=null}_update(t){super._update(t),"mask"in t&&(this.compiledMasks=Array.isArray(t.mask)?t.mask.map(e=>X2(e)):[])}_appendCharRaw(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=this._applyDispatch(t,e);return this.currentMask&&a.aggregate(this.currentMask._appendChar(t,this.currentMaskFlags(e))),a}_applyDispatch(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",o=e.tail&&e._beforeTailState!=null?e._beforeTailState._value:this.value,n=this.rawInputValue,i=e.tail&&e._beforeTailState!=null?e._beforeTailState._rawInputValue:n,l=n.slice(i.length),h=this.currentMask,c=new u1,d=h==null?void 0:h.state;if(this.currentMask=this.doDispatch(t,Object.assign({},e),a),this.currentMask)if(this.currentMask!==h){if(this.currentMask.reset(),i){let u=this.currentMask.append(i,{raw:!0});c.tailShift=u.inserted.length-o.length}l&&(c.tailShift+=this.currentMask.append(l,{raw:!0,tail:!0}).tailShift)}else this.currentMask.state=d;return c}_appendPlaceholder(){let t=this._applyDispatch(...arguments);return this.currentMask&&t.aggregate(this.currentMask._appendPlaceholder()),t}_appendEager(){let t=this._applyDispatch(...arguments);return this.currentMask&&t.aggregate(this.currentMask._appendEager()),t}appendTail(t){let e=new u1;return t&&e.aggregate(this._applyDispatch("",{},t)),e.aggregate(this.currentMask?this.currentMask.appendTail(t):super.appendTail(t))}currentMaskFlags(t){var e,a;return Object.assign({},t,{_beforeTailState:((e=t._beforeTailState)===null||e===void 0?void 0:e.currentMaskRef)===this.currentMask&&((a=t._beforeTailState)===null||a===void 0?void 0:a.currentMask)||t._beforeTailState})}doDispatch(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";return this.dispatch(t,this,e,a)}doValidate(t){return super.doValidate(t)&&(!this.currentMask||this.currentMask.doValidate(this.currentMaskFlags(t)))}doPrepare(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},[a,o]=l0(super.doPrepare(t,e));if(this.currentMask){let n;[a,n]=l0(super.doPrepare(a,this.currentMaskFlags(e))),o=o.aggregate(n)}return[a,o]}reset(){var t;(t=this.currentMask)===null||t===void 0||t.reset(),this.compiledMasks.forEach(e=>e.reset())}get value(){return this.currentMask?this.currentMask.value:""}set value(t){super.value=t}get unmaskedValue(){return this.currentMask?this.currentMask.unmaskedValue:""}set unmaskedValue(t){super.unmaskedValue=t}get typedValue(){return this.currentMask?this.currentMask.typedValue:""}set typedValue(t){let e=String(t);this.currentMask&&(this.currentMask.typedValue=t,e=this.currentMask.unmaskedValue),this.unmaskedValue=e}get displayValue(){return this.currentMask?this.currentMask.displayValue:""}get isComplete(){var t;return!!(!((t=this.currentMask)===null||t===void 0)&&t.isComplete)}get isFilled(){var t;return!!(!((t=this.currentMask)===null||t===void 0)&&t.isFilled)}remove(){let t=new u1;return this.currentMask&&t.aggregate(this.currentMask.remove(...arguments)).aggregate(this._applyDispatch()),t}get state(){var t;return Object.assign({},super.state,{_rawInputValue:this.rawInputValue,compiledMasks:this.compiledMasks.map(e=>e.state),currentMaskRef:this.currentMask,currentMask:(t=this.currentMask)===null||t===void 0?void 0:t.state})}set state(t){let{compiledMasks:e,currentMaskRef:a,currentMask:o}=t,n=xe(t,Pm);this.compiledMasks.forEach((i,l)=>i.state=e[l]),a!=null&&(this.currentMask=a,this.currentMask.state=o),super.state=n}extractInput(){return this.currentMask?this.currentMask.extractInput(...arguments):""}extractTail(){return this.currentMask?this.currentMask.extractTail(...arguments):super.extractTail(...arguments)}doCommit(){this.currentMask&&this.currentMask.doCommit(),super.doCommit()}nearestInputPos(){return this.currentMask?this.currentMask.nearestInputPos(...arguments):super.nearestInputPos(...arguments)}get overwrite(){return this.currentMask?this.currentMask.overwrite:super.overwrite}set overwrite(t){console.warn('"overwrite" option is not available in dynamic mask, use this option in siblings')}get eager(){return this.currentMask?this.currentMask.eager:super.eager}set eager(t){console.warn('"eager" option is not available in dynamic mask, use this option in siblings')}get skipInvalid(){return this.currentMask?this.currentMask.skipInvalid:super.skipInvalid}set skipInvalid(t){(this.isInitialized||t!==N2.DEFAULTS.skipInvalid)&&console.warn('"skipInvalid" option is not available in dynamic mask, use this option in siblings')}maskEquals(t){return Array.isArray(t)&&this.compiledMasks.every((e,a)=>{if(!t[a])return;let o=t[a],{mask:n}=o,i=xe(o,Nm);return Xa(e,i)&&e.maskEquals(n)})}typedValueEquals(t){var e;return!!(!((e=this.currentMask)===null||e===void 0)&&e.typedValueEquals(t))}};jo.DEFAULTS={dispatch:(r,t,e,a)=>{if(!t.compiledMasks.length)return;let o=t.rawInputValue,n=t.compiledMasks.map((i,l)=>{let h=t.currentMask===i,c=h?i.value.length:i.nearestInputPos(i.value.length,G.FORCE_LEFT);return i.rawInputValue!==o?(i.reset(),i.append(o,{raw:!0})):h||i.remove(c),i.append(r,t.currentMaskFlags(e)),i.appendTail(a),{index:l,weight:i.rawInputValue.length,totalInputPositions:i.totalInputPositions(0,Math.max(c,i.nearestInputPos(i.value.length,G.FORCE_LEFT)))}});return n.sort((i,l)=>l.weight-i.weight||l.totalInputPositions-i.totalInputPositions),t.compiledMasks[n[0].index]}};j.MaskedDynamic=jo;var vn={MASKED:"value",UNMASKED:"unmaskedValue",TYPED:"typedValue"};function o4(r){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:vn.MASKED,e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:vn.MASKED,a=X2(r);return o=>a.runIsolated(n=>(n[t]=o,n[e]))}function B3(r){for(var t=arguments.length,e=new Array(t>1?t-1:0),a=1;a<t;a++)e[a-1]=arguments[a];return o4(...e)(r)}j.PIPE_TYPE=vn;j.createPipe=o4;j.pipe=B3;try{globalThis.IMask=j}catch(r){}var hn="0`0{/}`0`0{/}`0`0`0`0",ga=class{constructor(t,e={}){this._element=t;this._options=e;this._maskOptions=this._createOptions(),this._mask=new O0(this._element,this._maskOptions),this._options.onChange&&(this._acceptListener=()=>this._onAccept(),this._mask.on("accept",this._acceptListener))}destroy(){this._acceptListener&&this._mask.off("accept",this._acceptListener),this._mask.destroy()}resolve(t){return X2(this._maskOptions).resolve(t)}_onAccept(){typeof this._options.onChange=="function"&&this._options.onChange(this._mask.value)}get _isDefaultMask(){return this._options.pattern===hn}_createOptions(){return{mask:this._options.pattern||hn,lazy:this._options.showMaskFormat===void 0?!1:!this._options.showMaskFormat,overwrite:!0,prepare:(e,a,o)=>this._prepare(e,a,o,this._mask),blocks:{MM:{mask:Jt,autofix:!0,from:1,to:12,maxLength:2},DD:{mask:Jt,autofix:!0,from:1,to:31,maxLength:2},YYYY:{mask:Jt,autofix:!0,from:0,to:9999,maxLength:4}}}}_prepare(t,e,a,o){return typeof this._options.prepareCallback=="function"?this._options.prepareCallback.call(null,t,e,a,this._mask):this._isDefaultMask?this._prepareDefault(t,e,a,o):t}_prepareDefault(t,e,a,o){if(!a.input||!t.length||!o)return t;let i=o._selection&&o._selection.end===10?"":o.value;if(!Br(t)){if(t==="/"){if(o.cursorPos===2&&i.length===1)return this._setMaskedValueAdjusted(i.padStart(2,"0"),3),"/";if(o.cursorPos===5&&i.length===4){let _=`${i.substring(0,3)}${i[3].padStart(2,"0").padStart(2,"0")}`;return this._setMaskedValueAdjusted(_,3),"/"}}return t}let l=+t;if(o.cursorPos===1&&l>1){let d=`${String(l).padStart(2,"0")}${i.slice(2)}`;return this._setMaskedValueAdjusted(d,3),"/"}if((o.cursorPos===3||o.cursorPos===4)&&l>3){let d=`${i.substring(0,3)}${String(l).padStart(2,"0")}${i.slice(5)}`;return this._setMaskedValueAdjusted(d,3),"/"}if(!this._options.showMaskFormat&&(o.cursorPos===2||o.cursorPos===5)){let d;return o.cursorPos===2?d=`${i.substring(0,1)}${l}/${i.slice(3)}`:d=`${i.substring(0,4)}${l}/${i.slice(6)}`,this._setMaskedValueAdjusted(d,2),""}return t}_setMaskedValueAdjusted(t,e){this._mask.unmaskedValue=t,window.requestAnimationFrame(()=>this._mask.updateCursor(this._mask.cursorPos+e))}updateMask(){this._mask.updateValue()}get maskedValue(){return this._mask.value}set maskedValue(t){this._mask.value=t}get unmaskedValue(){return this._mask.unmaskedValue}set unmaskedValue(t){this._mask.unmaskedValue=t}};var Zo={hours:0,minutes:1,seconds:2,meridiem:3},cn=class{constructor(t){this._segments=this._parseSegments(t)}get hours(){return this._segments[Zo.hours]}get minutes(){return this._segments[Zo.minutes]}get seconds(){return this._segments[Zo.seconds]}get meridiem(){return this._segments[Zo.meridiem]}applyValue(t){this._segments=this._parseSegments(t)}patchSegmentValue(t,e){let a=Zo[t];return this._segments[a]=e.padStart(2,"0"),this._segments[a]}toString(){let[t,e,a,o]=this._segments;return`${[t,e,a].filter(i=>!!i.length).join(":")}${o}`}_parseSegments(t){let[e,a=""]=t.trim().replace(/\s+|_/g,"").split(/([AaPp][Mm]?)/),[o="",n="",i=""]=e.split(":");return[o,n,i,a]}};var Rm={"hours-start":0,"hours-end":2,"minutes-start":3,"minutes-end":5,"seconds-start":6,"seconds-end":8,"meridiem-start":9,"meridiem-end":11},pn=class{constructor(t,e){this._char=t;this._mask=e;this._segmentParser=new cn(this._mask.value)}get value(){return this.isAllSelected?"":this._normalizeTimeString(this._mask.value)}get numChar(){return Number(this._char)}get asPaddedChar(){return String(this.numChar).padStart(2,"0")}_normalizeTimeString(t){let e=t.replace(/\s+|_/g,"");return/^:+$/.test(e)&&(e=""),e}get isAllSelected(){let{start:t,end:e}=this._mask._selection;return t===0&&e>0&&e===this._mask.value.length}get isFirstHoursChar(){return this._mask.cursorPos===1&&this.numChar>0}get isFirstMinutesChar(){return[3,4].includes(this._mask.cursorPos)&&this._segmentParser.minutes.length!==2}get isFirstSecondsChar(){return[6,7].includes(this._mask.cursorPos)&&this._segmentParser.seconds.length!==2}get isFinalHoursChar(){return this._mask.cursorPos===3&&this._segmentParser.hours.length===2}get isFinalMinutesChar(){return this._mask.cursorPos===6&&this._segmentParser.minutes.length===2}get isFinalSecondsChar(){return this._mask.cursorPos===9&&this._segmentParser.seconds.length===2}get isInitialHoursEntry(){return this._segmentParser.hours.length===0}get hasOnlyHoursSegment(){return!!this._segmentParser.hours&&!this._segmentParser.minutes&&!this._segmentParser.seconds}get hoursSegmentNum(){return Number(this._segmentParser.hours)}get minutesSegmentNum(){return Number(this._segmentParser.minutes)}get secondsSegmentNum(){return Number(this._segmentParser.seconds)}get canOverwriteHoursChar(){return this._mask.cursorPos===3&&!!this._segmentParser.hours.length&&this.hoursSegmentNum<3}get canOverwriteMinutesChar(){return[5,6].includes(this._mask.cursorPos)&&!!this._segmentParser.minutes.length&&this.minutesSegmentNum<60}get canOverwriteSecondsChar(){return[8,9].includes(this._mask.cursorPos)&&!!this._segmentParser.seconds.length&&this.secondsSegmentNum<60}reset(){this._segmentParser.applyValue("")}patchSegmentValue(t,e,{overwrite:a=!1}={}){return a&&this.reset(),this._segmentParser.patchSegmentValue(t,e),this._segmentParser.toString()}applyValue(t,e){this._mask.unmaskedValue=t,e!==void 0&&window.requestAnimationFrame(()=>this._mask.updateCursor(Rm[e]))}};var Fm="0`0{:}`0`0 `AM",Um="0`0{:}`0`0{:}`0`0 `AM",Wm="0`0{:}`0`0",Gm="0`0{:}`0`0{:}`0`0",dn=class{constructor(t,e={}){this._element=t;this._options=e;this._maskOptions=this._createOptions(),this._mask=new O0(this._element,this._maskOptions),this._options.onChange&&(this._acceptListener=()=>this._onAccept(),this._mask.on("accept",this._acceptListener))}destroy(){this._acceptListener&&this._mask.off("accept",this._acceptListener),this._mask.destroy()}resolve(t){return X2(this._maskOptions).resolve(t)}update(){this._mask.updateValue()}_onAccept(){typeof this._options.onChange=="function"&&this._options.onChange(this._mask.value)}_createOptions(){return{mask:this._getMaskFormat(),overwrite:!0,lazy:!this._options.showMaskFormat,prepare:(t,e,a)=>this._prepare(t,e,a,this._mask),blocks:{A:{mask:ma,enum:["a","A","p","P"]},M:{mask:ma,enum:["m","M"]}}}}_prepare(t,e,a,o){var n;return typeof this._options.prepareCallback=="function"?this._options.prepareCallback.call(null,t,e,a,this._mask):!a.input||!t.length||!o?t.toUpperCase():((n=o._inputEvent)==null?void 0:n.inputType)!=="insertText"?t:this._prepareDefault(t,o).toUpperCase()}_prepareDefault(t,e){let a=new pn(t,e);if(!Br(t)){if(t===":"){if(a.isFinalHoursChar){let o=a.patchSegmentValue("hours",a.value);return a.applyValue(o,"minutes-start"),t}if(a.isFinalMinutesChar){let o=a.patchSegmentValue("minutes",String(a.minutesSegmentNum));return a.applyValue(o,this._options.showSeconds?"seconds-start":"minutes-end"),t}if(this._options.showSeconds&&a.isFinalSecondsChar){let o=a.patchSegmentValue("seconds",String(a.secondsSegmentNum));return a.applyValue(o,"meridiem-start"),t}}return t}if(a.isAllSelected&&a.reset(),a.isInitialHoursEntry&&a.isFirstHoursChar){let o=a.patchSegmentValue("hours",a.asPaddedChar);return a.applyValue(o,"hours-end"),":"}if(a.hasOnlyHoursSegment&&a.canOverwriteHoursChar){let o=+`${a.hoursSegmentNum}${a.numChar}`;if(o<=12||this._options.use24HourTime&&o<=23){let n=a.patchSegmentValue("hours",String(o));return a.applyValue(n,"minutes-start"),":"}}if(a.value.length+1===2)return`${t}:`;if(a.isFirstMinutesChar){let o=a.patchSegmentValue("minutes",a.asPaddedChar);return a.applyValue(o,"minutes-end"),":"}if(a.canOverwriteMinutesChar){let o=+`${a.minutesSegmentNum}${a.numChar}`;if(o<60){let n=a.patchSegmentValue("minutes",String(o));return a.applyValue(n,"minutes-end"),":"}}if(this._options.showSeconds){if(a.isFirstSecondsChar){let o=a.patchSegmentValue("seconds",a.asPaddedChar);return a.applyValue(o,"seconds-end"),":"}if(a.canOverwriteSecondsChar){let o=+`${a.secondsSegmentNum}${a.numChar}`;if(o<60){let n=a.patchSegmentValue("seconds",String(o));return a.applyValue(n,"seconds-end"),":"}}}return t}_getMaskFormat(){return this._options.use24HourTime?this._options.showSeconds?Gm:Wm:this._options.showSeconds?Um:Fm}get maskedValue(){return this._mask.value}set maskedValue(t){this._mask.value=t}get unmaskedValue(){return this._mask.unmaskedValue}set unmaskedValue(t){this._mask.unmaskedValue=t}};var Ym=`${b}icon`,T3={NAME:"name",SRC:"src",LAZY:"lazy",EXTERNAL:"external",EXTERNAL_TYPE:"external-type",VIEWBOX:"viewbox",THEME:"theme"},Km=w({},T3),qm={LAZY_ROOT_MARGIN:50,DEFAULT_WIDTH:24,DEFAULT_HEIGHT:24},$m={DEFAULT_NETWORK_BASE_URL:`${G5}v1/icons/svg`},h1={elementName:Ym,observedAttributes:T3,attributes:Km,numbers:qm,strings:$m},mn="forgeIcons";var gn=class extends I{constructor(t){super(t)}canLazyLoad(){return!!window.IntersectionObserver}observeVisibility(t){this._observer=new IntersectionObserver(e=>{e.some(a=>a.isIntersecting)&&(this.destroyVisibilityObserver(),t())},{rootMargin:`${h1.numbers.LAZY_ROOT_MARGIN}px`}),this._observer.observe(this._component)}destroyVisibilityObserver(){this._observer&&(this._observer.disconnect(),this._observer=void 0)}setContent(t){let e=this._component.shadowRoot;e.querySelectorAll(":not(style)").forEach(a=>a.remove()),t&&(this._component.viewbox&&t.setAttribute("viewBox",this._component.viewbox),t.setAttribute("aria-hidden","true"),e.appendChild(t))}setViewBox(t){var a;let e=(a=this._component.shadowRoot)==null?void 0:a.querySelector("svg");e==null||e.setAttribute("viewBox",t)}};var n2=class n2{static get _icons(){return window[mn]||(window[mn]=new Map),window[mn]}static define(t,e){if(Array.isArray(t))return t.filter(n=>n2._isIconObject(n)).forEach(n=>n2._register(n.name,n.data));let{name:a,data:o}=n2._parseIcon(t,e);n2._register(a,o)}static remove(t){let e=n2._isIconObject(t)?t.name:t;n2._icons.delete(e)}static removeListener(t,e){let a=n2._listeners.get(t);Array.isArray(a)&&a.includes(e)&&a.splice(a.indexOf(e),1)}static clear(){n2._icons.clear(),n2._listeners.clear()}static get(t){return n2._icons.get(t)}static setNode(t,e){let a=n2.get(t);a&&(a.node=e)}static getIconNames(){return Array.from(n2._icons.keys())}static awaitIcon(t,e){var o;if(n2._icons.has(t)){e();return}let a=(o=n2._listeners.get(t))!=null?o:[];n2._listeners.set(t,[...a,e])}static get size(){return n2._icons.size}static _register(t,e){n2._icons.set(t,{raw:e,node:void 0}),n2._invalidateListeners(t)}static _invalidateListeners(t){let e=n2._listeners.get(t);Array.isArray(e)&&e.length&&(e.forEach(a=>a()),n2._listeners.delete(t))}static _parseIcon(t,e=""){return n2._isIconObject(t)?t:{name:t,data:e}}static _isIconObject(t){return typeof t=="object"&&t.hasOwnProperty("name")&&t.hasOwnProperty("data")}};n2._listeners=new Map;var q=n2;var r4=new Map;function wn(r,t,e=!0){if(!r||!r.includes("svg"))return null;!t&&!r.includes("viewBox")&&(t=`0 0 ${h1.numbers.DEFAULT_WIDTH} ${h1.numbers.DEFAULT_HEIGHT}`);let a=M3(r,t);return e&&a&&a.setAttribute("part","svg"),a}function S3(r){return q.get(r)}function k3(r,t){q.awaitIcon(r,t)}function O3(r,t){q.removeListener(r,t)}function D3(r,t){let e=r4.get(r);if(!e)if(typeof fetch!="undefined"&&typeof document!="undefined")e=fetch(r).then(async a=>{if(a.ok){let o=await a.text()||"";return q.define({name:t,data:o}),r4.delete(r),o}return q.define({name:t,data:""}),""}),r4.set(r,e);else return q.define({name:t,data:""}),Promise.resolve("");return e||Promise.resolve("")}function P3(r){return["standard","extended","custom"].includes(r)?r:""}var un=class{constructor(t){this._adapter=t;this._lazy=!1;this._external=!1;this._externalType="standard";this._lazyListener=this._loadIcon.bind(this)}initialize(){this._applyIcon()}destroy(){this._adapter.destroyVisibilityObserver(),this._clearIconQueue(),this._tryRemoveListener()}_safeApplyIcon(){this._adapter.isConnected&&(this._clearIconQueue(),this._queueIconUpdate())}_tryRemoveListener(){this._registrationListener&&this._name&&O3(this._name,this._registrationListener)}_applyIcon(){this._lazy&&this._adapter.canLazyLoad()?this._adapter.observeVisibility(this._lazyListener):this._loadIcon()}_clearIconQueue(){this._applyTimer&&(clearTimeout(this._applyTimer),this._applyTimer=void 0)}_queueIconUpdate(){this._applyTimer=window.setTimeout(()=>{this._applyTimer=void 0,this._applyIcon()})}async _loadIcon(){try{if(this._src){let t=wn(this._src,this._viewbox);this._setIconContent(t)}else if(this._name){let t=this._tryGetIcon(this._name);if(t!=null&&t.node){this._setIconContent(t.node);return}let e=null;if(t)t.raw&&(e=wn(t.raw,this._viewbox));else{if(!this._external){this._registrationListener=()=>this._applyIcon(),k3(this._name,this._registrationListener),this._adapter.setContent(null);return}this._externalType||(this._externalType="standard");let a=this._getExternalUrl(this._name,this._externalType);if(a){let o=await D3(a,this._name);o&&(e=wn(o,this._viewbox))}}e&&(t!=null&&t.node||q.setNode(this._name,e),this._setIconContent(e))}else this._adapter.setContent(null)}catch(t){throw this._adapter.setContent(null),t}}_setIconContent(t){let e=t?t.cloneNode(!0):null;e&&this._adapter.setContent(e)}_tryGetIcon(t){return S3(t)}_getExternalUrl(t,e){if(typeof this._externalUrlBuilder=="function")return this._externalUrlBuilder(t,e);let a=P3(this._externalType);return`${h1.strings.DEFAULT_NETWORK_BASE_URL}${a?`/${a}`:""}/${t}.svg`}get name(){return this._name}set name(t){this._name!==t&&(this._registrationListener&&this._tryRemoveListener(),this._name=(t||"").replace(/\s+/,""),this._safeApplyIcon(),this._adapter.toggleHostAttribute(h1.attributes.NAME,!!this._name,this._name))}get src(){return this._src}set src(t){this._src!==t&&(this._src=t,this._adapter.isConnected&&this._applyIcon(),this._adapter.toggleHostAttribute(h1.attributes.SRC,!!this._src,this._src))}get lazy(){return this._lazy}set lazy(t){this._lazy!==t&&(this._lazy=t,this._safeApplyIcon(),this._adapter.toggleHostAttribute(h1.attributes.LAZY,this._lazy))}get external(){return this._external}set external(t){this._external!==t&&(this._external=t,this._safeApplyIcon(),this._adapter.toggleHostAttribute(h1.attributes.EXTERNAL,this._external))}get externalType(){return this._externalType}set externalType(t){this._externalType!==t&&(this._externalType=t,this._safeApplyIcon(),this._adapter.setHostAttribute(h1.attributes.EXTERNAL_TYPE,`${this._externalType}`))}get externalUrlBuilder(){return this._externalUrlBuilder}set externalUrlBuilder(t){this._externalUrlBuilder!==t&&(this._externalUrlBuilder=t,this._safeApplyIcon())}get viewbox(){return this._viewbox}set viewbox(t){this._viewbox!==t&&(this._viewbox=t,this._adapter.setViewBox(this._viewbox),this._adapter.setHostAttribute(h1.attributes.VIEWBOX,`${this.viewbox}`))}get theme(){return this._theme}set theme(t){this._theme!==t&&(this._theme=t,this._adapter.setHostAttribute(h1.attributes.THEME,this._theme))}layout(){this._adapter.isConnected&&this._applyIcon()}};var Xm="<template></template>",jm=":host{--_icon-color:var(--forge-icon-color, currentColor);--_icon-size:var(--forge-icon-size, 1em);--_icon-width:var(--forge-icon-width, var(--_icon-size));--_icon-height:var(--forge-icon-height, var(--_icon-size));--_icon-font-size:var(--forge-icon-font-size, calc(var(--forge-typography-font-size, 1rem) * 1.5))}:host{display:inline-block;box-sizing:content-box;contain:content;font-size:var(--_icon-font-size)}:host([hidden]){display:none}svg{width:var(--_icon-width);height:var(--_icon-height);display:block;fill:var(--_icon-color);stroke:var(--_icon-color);stroke-width:0}:host([theme=primary]){--_icon-color:var(--forge-icon-color, var(--forge-theme-primary, #3f51b5))}:host([theme=secondary]){--_icon-color:var(--forge-icon-color, var(--forge-theme-secondary, #ffc107))}:host([theme=tertiary]){--_icon-color:var(--forge-icon-color, var(--forge-theme-tertiary, #3d5afe))}:host([theme=success]){--_icon-color:var(--forge-icon-color, var(--forge-theme-success, #2e7d32))}:host([theme=error]){--_icon-color:var(--forge-icon-color, var(--forge-theme-error, #b00020))}:host([theme=warning]){--_icon-color:var(--forge-icon-color, var(--forge-theme-warning, #d14900))}:host([theme=text-medium]){--_icon-color:var(--forge-icon-color, var(--forge-theme-text-medium, rgba(0, 0, 0, 0.6)))}:host([theme=text-low]){--_icon-color:var(--forge-icon-color, var(--forge-theme-text-low, rgba(0, 0, 0, 0.38)))}",X=class extends M{static get observedAttributes(){return Object.values(h1.observedAttributes)}constructor(){super(),H(this,Xm,jm),this._core=new un(new gn(this))}connectedCallback(){this._core.initialize()}disconnectedCallback(){this._core.destroy()}attributeChangedCallback(t,e,a){switch(t){case h1.observedAttributes.NAME:this.name=a;break;case h1.observedAttributes.SRC:this.src=a;break;case h1.observedAttributes.LAZY:this.lazy=p(a);break;case h1.observedAttributes.EXTERNAL:this.external=p(a);break;case h1.observedAttributes.EXTERNAL_TYPE:this.externalType=a;break;case h1.observedAttributes.VIEWBOX:this.viewbox=a;break;case h1.observedAttributes.THEME:this.theme=a;break}}layout(){this._core.layout()}};s([v()],X.prototype,"name",2),s([v()],X.prototype,"src",2),s([v()],X.prototype,"lazy",2),s([v()],X.prototype,"external",2),s([v()],X.prototype,"externalType",2),s([v()],X.prototype,"externalUrlBuilder",2),s([v()],X.prototype,"viewbox",2),s([v()],X.prototype,"theme",2),X=s([y({name:h1.elementName})],X);var P0=class extends X1{constructor(t){super(t)}_build(){return document.createElement(h1.elementName)}};function N3(){x(X)}var Zm='<template><span class="forge-open-icon" part="root"><slot><forge-icon class="icon" part="icon" name="keyboard_arrow_down"></forge-icon></slot></span></template>',Qm=":host{display:inline-flex}:host([hidden]){display:none}.forge-open-icon{--_open-icon-color:var(--forge-open-icon-color, var(--forge-theme-text-high, rgba(0, 0, 0, 0.87)));--_open-icon-size:var(--forge-open-icon-size, 24px);--_open-icon-height:var(--forge-open-icon-height, var(--_open-icon-size));--_open-icon-width:var(--forge-open-icon-width, var(--_open-icon-size));--_open-icon-initial-rotation:var(--forge-open-icon-initial-rotation, 0);--_open-icon-open-rotation:var(--forge-open-icon-open-rotation, 180deg);--_open-icon-animation-duration:var(--forge-open-icon-animation-duration, var(--forge-animation-duration-medium4, 400ms));--_open-icon-half-animation-duration:var(--forge-open-icon-half-animation-duration, var(--forge-animation-duration-short4, 200ms));--_open-icon-animation-timing:var(--forge-open-icon-animation-timing, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1)))}.forge-open-icon{height:var(--_open-icon-height);width:var(--_open-icon-width);color:var(--_open-icon-color);rotate:var(--_open-icon-initial-rotation);transition:rotate var(--_open-icon-animation-duration) var(--_open-icon-animation-timing)}::slotted(forge-icon),forge-icon{--forge-icon-size:var(--_open-icon-size)}:host([open]) .forge-open-icon{rotate:var(--_open-icon-open-rotation)}:host([orientation=horizontal]) .forge-open-icon{--_open-icon-initial-rotation:var(--forge-open-icon-initial-rotation, -90deg);--_open-icon-open-rotation:var(--forge-open-icon-open-rotation, 90deg)}:host([rotation=half]) .forge-open-icon{--_open-icon-open-rotation:var(--forge-open-icon-open-rotation, -90deg);--_open-icon-animation-duration:var(--_open-icon-half-animation-duration)}:host([orientation=horizontal][rotation=half]) .forge-open-icon{--_open-icon-initial-rotation:var(--forge-open-icon-initial-rotation, -90deg);--_open-icon-open-rotation:var(--forge-open-icon-open-rotation, 0);--_open-icon-animation-duration:var(--_open-icon-half-animation-duration)}@media prefers-reduced-motion{.forge-open-icon{transition:none}}",Qa=class extends M{constructor(){super();this._open=!1;this._orientation=It.defaults.ORIENTATION;this._rotation=It.defaults.ROTATION;q.define([fe,i0]),H(this,Zm,Qm)}static get observedAttributes(){return Object.values(It.observedAttributes)}attributeChangedCallback(e,a,o){switch(e){case It.attributes.OPEN:this.open=p(o);break;case It.attributes.ORIENTATION:this.orientation=o;break;case It.attributes.ROTATION:this.rotation=o;break}}get open(){return this._open}set open(e){e=!!e,this._open!==e&&(this._open=e,this.toggleAttribute(It.attributes.OPEN,e))}get orientation(){return this._orientation}set orientation(e){this._orientation!==e&&(this._orientation=e,this.setAttribute(It.attributes.ORIENTATION,e))}get rotation(){return this._rotation}set rotation(e){this._rotation!==e&&(this._rotation=e,this.setAttribute(It.attributes.ROTATION,e))}};Qa=s([y({name:It.elementName,dependencies:[X]})],Qa);function R3(){x(Qa)}var n4=`${b}expansion-panel`,F3={OPEN:"open",ORIENTATION:"orientation",ANIMATION_TYPE:"animation-type"},Jm=t1(w({},F3),{OPENING:"opening"}),t7={HIDDEN:"hidden"},e7={HEADER:".header",CONTENT:".content",INNER:".inner",IGNORE:":is([data-forge-ignore],[forge-ignore])",OPEN_ICON:`:is([slot=header] ${It.elementName}, ${It.elementName}[slot^=header])`},a7={TOGGLE:`${n4}-toggle`,ANIMATION_COMPLETE:`${n4}-animation-complete`},D1={elementName:n4,observedAttributes:F3,attributes:Jm,classes:t7,selectors:e7,events:a7},_n=Symbol("emulateUserToggle");var fn=class extends I{constructor(e){super(e);this._transitionStartListener=this._onTransitionStart.bind(this);this._transitionEndListener=this._onTransitionEnd.bind(this);this._headerElement=g(this._component,D1.selectors.HEADER),this._contentElement=g(this._component,D1.selectors.CONTENT),this._innerElement=g(this._component,D1.selectors.INNER)}setAnimationCompleteListener(e){this._transitionCompleteListener=e,this._contentElement.addEventListener("transitionstart",this._transitionStartListener),this._contentElement.addEventListener("transitionend",this._transitionEndListener)}addHeaderListener(e,a){this._headerElement.addEventListener(e,a)}tryToggleOpenIcon(e){let a=this._component.querySelector(D1.selectors.OPEN_ICON);a&&(a.open=e)}setContentVisibility(e){this._contentElement.classList.toggle(D1.classes.HIDDEN,!e)}_onTransitionStart(e){e.propertyName.startsWith("grid-template")&&this.toggleHostAttribute(D1.attributes.OPENING,!0)}_onTransitionEnd(e){e.propertyName.startsWith("grid-template")&&(this.toggleHostAttribute(D1.attributes.OPENING,!1),this._transitionCompleteListener())}animationStart(){this._innerElement.style.overflow="hidden"}animationEnd(){this._innerElement.style.removeProperty("overflow")}};var xn=class{constructor(t){this._adapter=t;this._open=!1;this._orientation="vertical";this._animationType="default";this._clickListener=this._onClick.bind(this);this._keydownListener=this._onKeydown.bind(this);this._animationCompleteListener=this._onAnimationComplete.bind(this)}initialize(){this._adapter.addHeaderListener("click",this._clickListener),this._adapter.addHeaderListener("keydown",this._keydownListener),this._adapter.setAnimationCompleteListener(this._animationCompleteListener)}_onClick(t){t.composedPath().find(a=>a.nodeType===Node.ELEMENT_NODE&&a.matches(D1.selectors.IGNORE))||(t.stopPropagation(),this._toggle(),this.dispatchToggleEvent())}_onKeydown(t){(t.key===" "||t.key==="Enter")&&(t.stopPropagation(),t.preventDefault(),this._toggle(),this.dispatchToggleEvent())}_onAnimationComplete(){this._open?this._animationType!=="none"&&this._adapter.animationEnd():this._adapter.setContentVisibility(!1),this._adapter.dispatchHostEvent(new CustomEvent(D1.events.ANIMATION_COMPLETE,{detail:this._open}))}_togglePanel(){this._adapter.toggleHostAttribute(D1.attributes.OPEN,this._open),this._adapter.tryToggleOpenIcon(this._open),this._open&&(this._animationType!=="none"&&this._adapter.animationStart(),this._adapter.setContentVisibility(!0))}dispatchToggleEvent(){let t=new CustomEvent(D1.events.TOGGLE,{detail:this._open,bubbles:!0,composed:!0});this._adapter.dispatchHostEvent(t)}_toggle(){this.open=!this.open}get open(){return this._open}set open(t){t=!!t,this._open!==t&&(this._open=t,this._togglePanel())}get orientation(){return this._orientation}set orientation(t){this._orientation!==t&&(this._orientation=t,this._adapter.setHostAttribute(D1.attributes.ORIENTATION,this._orientation))}get animationType(){return this._animationType}set animationType(t){this._animationType!==t&&(this._animationType=t,this._adapter.setHostAttribute(D1.attributes.ANIMATION_TYPE,this._animationType))}};var o7='<template><div class="forge-expansion-panel" part="root"><div class="header" part="header"><slot name="header"></slot></div><div class="content hidden" part="content"><div class="inner"><slot></slot></div></div></div></template>',r7=":host{display:block}:host([hidden]){display:none}.forge-expansion-panel{--_expansion-panel-animation-duration:var(--forge-expansion-panel-animation-duration, var(--forge-animation-duration-medium4, 400ms));--_expansion-panel-animation-easing:var(--forge-expansion-panel-animation-easing, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1)))}.header{outline:0;-webkit-tap-highlight-color:transparent;cursor:pointer}.content{display:grid;grid-template-rows:0fr;transition-property:visibility,opacity,grid-template-rows;transition-duration:var(--_expansion-panel-animation-duration);transition-timing-function:var(--_expansion-panel-animation-easing);min-height:0;opacity:0;transform:translate3d(0,0,0);backface-visibility:hidden}.content .inner{display:grid;grid-template-rows:1fr}.hidden{visibility:hidden}@media (prefers-reduced-motion:reduce){.content{transition:none}}:host(:not([open])) .inner{overflow:hidden}:host([open]) .content{opacity:1}:host([open]:is(:not([orientation]),[orientation=vertical])) .content{grid-template-rows:1fr}:host([open][orientation=horizontal]) .content{grid-template-columns:1fr}:host([orientation=horizontal]) .forge-expansion-panel{display:grid;grid-template-columns:auto 1fr}:host([orientation=horizontal]) .content{transition-property:opacity,grid-template-columns;grid-template-rows:none;grid-template-columns:0fr}:host([animation-type=none]) .content{transition:none}",_t=class extends M{static get observedAttributes(){return Object.values(D1.observedAttributes)}constructor(){super(),H(this,o7,r7),this._core=new xn(new fn(this))}connectedCallback(){this._core.initialize()}attributeChangedCallback(t,e,a){switch(t){case D1.observedAttributes.OPEN:this.open=p(a);break;case D1.observedAttributes.ORIENTATION:this.orientation=a;break;case D1.observedAttributes.ANIMATION_TYPE:this.animationType=a;break}}toggle(){this.open=!this.open}[_n](t){this.open!==t&&(this.open=t,this._core.dispatchToggleEvent())}};s([v()],_t.prototype,"open",2),s([v()],_t.prototype,"orientation",2),s([v()],_t.prototype,"animationType",2),_t=s([y({name:D1.elementName})],_t);function U3(){x(_t)}var bn=class extends I{constructor(t){super(t)}isNestedPanel(t){return!t||!this._component.contains(t)?!1:Ra(t,this._component).some(a=>a.tagName.toLocaleLowerCase()===D1.elementName)}getChildPanels(t){return t?Array.from(this._component.querySelectorAll(t)):Array.from(this._component.children).filter(a=>a.tagName.toLocaleLowerCase()===D1.elementName)}};var W3=`${b}accordion`,n7={PANEL_SELECTOR:"panel-selector"},i7={TOGGLE:`${W3}-toggle`},wa={elementName:W3,attributes:n7,events:i7};var yn=class{constructor(t){this._adapter=t;this._hostInteractionCallback=this._hostInteraction.bind(this)}initialize(){this._attachListeners()}_attachListeners(){this._adapter.addHostListener(D1.events.TOGGLE,this._hostInteractionCallback)}_hostInteraction(t){if(!t.detail||this._panelSelector&&!t.target.matches(this._panelSelector)||(t.stopPropagation(),this._adapter.isNestedPanel(t.target)))return;this._adapter.getChildPanels(this._panelSelector).forEach(a=>{t.target!==a&&!this._adapter.isNestedPanel(a)&&a.open&&a[_n](!1)}),this._adapter.dispatchHostEvent(new CustomEvent(wa.events.TOGGLE,{detail:t.target,bubbles:!0,composed:!0}))}get panelSelector(){return this._panelSelector}set panelSelector(t){this._panelSelector!==t&&(this._panelSelector=t,this._adapter.setHostAttribute(wa.attributes.PANEL_SELECTOR,this._panelSelector))}};var ua=class extends M{static get observedAttributes(){return[wa.attributes.PANEL_SELECTOR]}constructor(){super(),this._core=new yn(new bn(this))}connectedCallback(){this._core.initialize()}attributeChangedCallback(t,e,a){switch(t){case wa.attributes.PANEL_SELECTOR:this.panelSelector=a;break}}};s([v()],ua.prototype,"panelSelector",2),ua=s([y({name:wa.elementName,dependencies:[_t]})],ua);function G3(){x(ua)}var Y3=`${b}app-bar`,s7={TITLE_TEXT:"title-text",ELEVATION:"elevation",THEME:"theme",HREF:"href",TARGET:"target"},l7=w({},s7),v7={NO_CENTER:"no-center",LOGO_TITLE_CONTAINER:"logo-title-container",TITLE:"title"},h7={ROOT:".forge-app-bar",LOGO_TITLE_CONTAINER:".logo-title-container",CENTER_SLOT:"slot[name=center]",CENTER_SECTION:"#center-section"},c7={NAVIGATE:`${Y3}-navigate`},W1={elementName:Y3,selectors:h7,attributes:l7,classes:v7,events:c7};var p7=`${b}state-layer`,d7={TARGET:"target",DISABLED:"disabled"},m7=w({},d7),g7={SURFACE:".forge-state-layer"},w7={HOVERED:"forge-state-layer--hovered",PRESSED:"forge-state-layer--pressed"},M1={elementName:p7,attributes:m7,selectors:g7,classes:w7},Ja=class r{constructor(t,e){this.x=t;this.y=e}static fromPointerEvent(t){return new r(t.pageX,t.pageY)}},K3=150,q3=450,i4=225,$3=.2,X3=10,j3=75,Z3=.35,Q3="::after",J3="forwards",tv="cubic-bezier(0.2, 0, 0, 1)",ev=(o=>(o[o.INACTIVE=0]="INACTIVE",o[o.TOUCH_DELAY=1]="TOUCH_DELAY",o[o.HOLDING=2]="HOLDING",o[o.WAITING_FOR_CLICK=3]="WAITING_FOR_CLICK",o))(ev||{});function av(r){let{height:t,width:e}=r.getBoundingClientRect(),a=Math.max(t,e),o=Math.max(Z3*a,j3),n=Math.floor(a*$3),h=`${(Math.sqrt(e**2+t**2)+X3+o)/n}`,c=`${n}px`;return{rippleScale:h,rippleSize:c,initialSize:n}}function ov(r,t,e){let{height:a,width:o}=r.getBoundingClientRect(),n={x:(o-t)/2,y:(a-t)/2},i;return _7(e)?i=u7(r,e):i={x:o/2,y:a/2},i={x:i.x-t/2,y:i.y-t/2},{startPoint:i,endPoint:n}}function u7(r,t){let{scrollX:e,scrollY:a}=window,{left:o,top:n}=r.getBoundingClientRect(),i=e+o,l=a+n,{x:h,y:c}=t;return{x:h-i,y:c-l}}function rv(r,t,e){let{height:a,width:o}=r.getBoundingClientRect();return t>=0&&t<=o&&e>=0&&e<=a}function _7(r){return r&&(r instanceof Ja||["x","y"].every(t=>t in r))}var Mn=class extends I{constructor(e){super(e);this._targetElement=null;this._surfaceElement=g(e,M1.selectors.SURFACE)}destroy(){typeof this._destroyDeferListener=="function"&&(this._destroyDeferListener(),this._destroyDeferListener=void 0),this._targetElement=null}async deferInitialization(e){if(!this._targetElement)return;let{userInteraction:a,destroy:o}=w3(this._targetElement);this._destroyDeferListener=o;let n=await a;e(n.type==="pointerenter"?n:void 0)}addTargetListener(e,a){var o;(o=this._targetElement)==null||o.addEventListener(e,a)}removeTargetListener(e,a){var o;(o=this._targetElement)==null||o.removeEventListener(e,a)}setHovered(e){this._surfaceElement.classList.toggle(M1.classes.HOVERED,e)}setPressed(e){this._surfaceElement.classList.toggle(M1.classes.PRESSED,e)}getTargetElement(){return this._targetElement}setTargetElement(e){this._targetElement=e}trySetTarget(e){this._targetElement=en(this._component,e)}startAnimation(e){var d;if(!this._surfaceElement)return;this.setPressed(!0),(d=this._rippleAnimation)==null||d.cancel();let{rippleSize:a,rippleScale:o,initialSize:n}=av(this._component);if(o==="Infinity")return;let{startPoint:i,endPoint:l}=ov(this._component,n,e),h=`${i.x}px, ${i.y}px`,c=`${l.x}px, ${l.y}px`;this._rippleAnimation=this._surfaceElement.animate({top:[0,0],left:[0,0],height:[a,a],width:[a,a],transform:[`translate(${h}) scale(1)`,`translate(${c}) scale(${o})`]},{pseudoElement:Q3,duration:q3,easing:tv,fill:J3})}async endAnimation(){var o;let e=this._rippleAnimation,a=(o=e==null?void 0:e.currentTime)!=null?o:1/0;if(a>=i4){this.setPressed(!1);return}await new Promise(n=>{setTimeout(n,i4-a)}),this._rippleAnimation===e&&this.setPressed(!1)}inBounds(e,a){return rv(this._component,e,a)}};var Hn=class{constructor(t){this._adapter=t;this._target=null;this._disabled=!1;this._attached=!1;this._deferred=!0;this._pointerState=0;this._checkBoundsAfterContextMenu=!1;this._pointerEnterListener=e=>this._onPointerEnter(e),this._pointerLeaveListener=e=>this._onPointerLeave(e),this._pointerDownListener=e=>this._onPointerDown(e),this._pointerUpListener=e=>this._onPointerUp(e),this._pointerCancelListener=e=>this._onPointerCancel(e),this._clickListener=()=>this._onClick(),this._contextmenuListener=()=>this._onContextmenu()}initialize(){this._adapter.trySetTarget(this._target),this._adapter.addTargetListener("click",this._clickListener),this._deferInitialization()}destroy(){this._pointerStartEvent=void 0,this._pointerState=0,this._adapter.setHovered(!1),this._adapter.setPressed(!1),this._removeListeners(),this._adapter.destroy()}playAnimation(t){this._adapter.startAnimation(t),this._endAnimation()}_deferInitialization(){this._adapter.deferInitialization(this._onDeferredInitialize.bind(this))}_applyListeners(){this._disabled||(this._adapter.addTargetListener("pointerenter",this._pointerEnterListener),this._adapter.addTargetListener("pointerleave",this._pointerLeaveListener),this._adapter.addTargetListener("pointerdown",this._pointerDownListener),this._adapter.addTargetListener("pointerup",this._pointerUpListener),this._adapter.addTargetListener("pointercancel",this._pointerCancelListener),this._adapter.addTargetListener("contextmenu",this._contextmenuListener),this._attached=!0)}_removeListeners(){this._adapter.removeTargetListener("pointerenter",this._pointerEnterListener),this._adapter.removeTargetListener("pointerleave",this._pointerLeaveListener),this._adapter.removeTargetListener("pointerdown",this._pointerDownListener),this._adapter.removeTargetListener("pointerup",this._pointerUpListener),this._adapter.removeTargetListener("pointercancel",this._pointerCancelListener),this._adapter.removeTargetListener("click",this._clickListener),this._adapter.removeTargetListener("contextmenu",this._contextmenuListener),this._attached=!1}_onDeferredInitialize(t){this._adapter.isConnected&&(this._applyListeners(),(t==null?void 0:t.type)==="pointerenter"&&this._pointerEnterListener(t),this._deferred=!1)}_onPointerEnter(t){this._canHandleEvent(t)&&this._adapter.setHovered(!0)}_onPointerLeave(t){this._canHandleEvent(t)&&(this._adapter.setHovered(!1),this._pointerState!==0&&this._adapter.endAnimation())}async _onPointerDown(t){if(this._pointerStartEvent=t,!!this._canHandleEvent(t)){if(!this._isTouch(t.pointerType)){this._pointerState=3,this._startAnimation(t);return}this._checkBoundsAfterContextMenu&&!this._adapter.inBounds(t.x,t.y)||(this._checkBoundsAfterContextMenu=!1,this._pointerState=1,await new Promise(e=>setTimeout(e,K3)),this._pointerState===1&&(this._pointerState=2,this._startAnimation(t)))}}_onPointerUp(t){if(this._canHandleEvent(t)){if(this._pointerState===2){this._pointerState=3;return}if(this._pointerState===1){this._pointerState=3,this._startAnimation(this._pointerStartEvent);return}}}_onClick(){if(!this._disabled){if(this._pointerState===3){this._endAnimation();return}this._pointerState===0&&(this._startAnimation(this._pointerStartEvent),this._endAnimation())}}_onPointerCancel(t){this._canHandleEvent(t)&&this._endAnimation()}_onContextmenu(){this._disabled||(this._checkBoundsAfterContextMenu=!0,this._adapter.endAnimation())}_startAnimation(t){let e=t?Ja.fromPointerEvent(t):void 0;this._adapter.startAnimation(e)}_endAnimation(){this._pointerState=0,this._adapter.endAnimation(),this._pointerStartEvent=void 0}_canHandleEvent({type:t,isPrimary:e,buttons:a,pointerType:o,pointerId:n}){if(this._disabled||!e||this._pointerStartEvent&&this._pointerStartEvent.pointerId!==n)return!1;if(t==="pointerenter"||t==="pointerleave")return!this._isTouch(o);let i=a===1;return this._isTouch(o)||i}_isTouch(t){return t==="touch"}get isAttached(){return this._attached}get targetElement(){return this._adapter.getTargetElement()}set targetElement(t){this._removeListeners(),this._attached||(this._adapter.destroy(),this._deferred=!1),this._adapter.setTargetElement(t),this._adapter.addTargetListener("click",this._clickListener),this._deferred||this._deferInitialization()}get target(){return this._adapter.getHostAttribute(M1.attributes.TARGET)}set target(t){this._target!==t&&(this._target=t,this._adapter.isConnected&&(this._removeListeners(),this._attached||(this._adapter.destroy(),this._deferred=!1),this._adapter.trySetTarget(t),this._adapter.addTargetListener("click",this._clickListener),this._deferred||this._deferInitialization()),this._adapter.toggleHostAttribute(M1.attributes.TARGET,!!this._target,this._target))}get disabled(){return this._disabled}set disabled(t){t=!!t,this._disabled!==t&&(this._disabled=t,this._adapter.isConnected&&(this._disabled?this._removeListeners():this._deferred||this._deferInitialization()),this._adapter.toggleHostAttribute(M1.attributes.DISABLED,this._disabled))}};var f7='<template><div class="forge-state-layer" part="surface"></div></template>',x7=':host{--_state-layer-display:var(--forge-state-layer-display, flex)}:host{border-radius:inherit;position:absolute;inset:0;overflow:hidden;display:var(--_state-layer-display);margin:auto;pointer-events:none;-webkit-tap-highlight-color:transparent}:host([hidden]){display:none}:host([disabled]){display:none}.forge-state-layer{--_state-layer-color:var(--forge-state-layer-color, var(--forge-theme-on-surface, #000000));--_state-layer-hover-color:var(--forge-state-layer-hover-color, var(--_state-layer-color));--_state-layer-hover-opacity:var(--forge-state-layer-hover-opacity, 0.08);--_state-layer-pressed-color:var(--forge-state-layer-pressed-color, var(--_state-layer-color));--_state-layer-pressed-opacity:var(--forge-state-layer-pressed-opacity, 0.12);--_state-layer-hover-duration:var(--forge-state-layer-hover-duration, 15ms);--_state-layer-pressed-duration:var(--forge-state-layer-pressed-duration, 105ms);--_state-layer-animation-duration:var(--forge-state-layer-animation-duration, 375ms)}.forge-state-layer::after,.forge-state-layer::before{content:"";opacity:0;position:absolute}.forge-state-layer::before{background-color:var(--_state-layer-hover-color);inset:0;transition:opacity var(--_state-layer-hover-duration) linear,background-color var(--_state-layer-hover-duration) linear}.forge-state-layer::after{background:radial-gradient(closest-side,var(--_state-layer-pressed-color) max(100% - 70px,65%),transparent 100%);transform-origin:center center;transition:opacity var(--_state-layer-animation-duration) linear}.forge-state-layer--hovered::before{background-color:var(--_state-layer-hover-color);opacity:var(--_state-layer-hover-opacity)}.forge-state-layer--pressed::after{opacity:var(--_state-layer-pressed-opacity);transition-duration:var(--_state-layer-pressed-duration)}@media screen and (forced-colors:active){:host{display:none}}',r1=class extends M{static get observedAttributes(){return[M1.attributes.TARGET,M1.attributes.DISABLED]}constructor(){super(),H(this,f7,x7),this._core=new Hn(new Mn(this))}connectedCallback(){this._core.initialize()}disconnectedCallback(){this._core.destroy()}attributeChangedCallback(t,e,a){switch(t){case M1.attributes.TARGET:this.target=a;break;case M1.attributes.DISABLED:this.disabled=p(a);break}}playAnimation(t){this._core.playAnimation(t)}};s([v()],r1.prototype,"targetElement",2),s([v()],r1.prototype,"target",2),s([v()],r1.prototype,"disabled",2),r1=s([y({name:M1.elementName})],r1);function nv(){x(r1)}var Ln=class extends I{constructor(e){super(e);this._targetElement=null}destroy(){this._targetElement=null}hasTargetElement(){return!!this._targetElement}addTargetListener(e,a){var o;(o=this._targetElement)==null||o.addEventListener(e,a)}removeTargetListener(e,a){var o;(o=this._targetElement)==null||o.removeEventListener(e,a)}getTargetElement(){return this._targetElement}setTargetElement(e){this._targetElement=e}trySetTarget(e){this._targetElement=en(this._component,e)}isActive(e,a){let o=a!=null?a:this._targetElement;return!!(o!=null&&o.matches(e))}};var b7=`${b}focus-indicator`,y7={TARGET:"target",ACTIVE:"active",INWARD:"inward",CIRCULAR:"circular",ALLOW_FOCUS:"allow-focus",FOCUS_MODE:"focus-mode"},M7=w({},y7),H7={FOCUS_MODE:"focusin"},m1={elementName:b7,attributes:M7,defaults:H7};var In=class{constructor(t){this._adapter=t;this._target=null;this._active=!1;this._inward=!1;this._circular=!1;this._allowFocus=!1;this._focusMode=m1.defaults.FOCUS_MODE;this._interactionListener=e=>this._onInteraction(e)}initialize(){this._adapter.hasTargetElement()||this._adapter.trySetTarget(this._target),this._addListeners()}destroy(){this._removeListeners(),this._adapter.destroy()}_addListeners(){this._adapter.addTargetListener(this._focusMode,this._interactionListener),this._adapter.addTargetListener("focusout",this._interactionListener),this._adapter.addTargetListener("pointerdown",this._interactionListener)}_removeListeners(){this._adapter.removeTargetListener(this._focusMode,this._interactionListener),this._adapter.removeTargetListener("focusout",this._interactionListener),this._adapter.removeTargetListener("pointerdown",this._interactionListener)}_onInteraction(t){let e=t.target;switch(t.type){case this._focusMode:this.active=this._adapter.isActive(this._allowFocus?":focus":":focus-visible",e);break;case"focusout":this.active=!1;break;case"pointerdown":this.active=this._allowFocus?this._adapter.isActive(":focus",e):this._adapter.isActive(":focus-visible",e);break}}get targetElement(){return this._adapter.getTargetElement()}set targetElement(t){this._removeListeners(),this._adapter.setTargetElement(t),this._addListeners()}get target(){return this._adapter.getHostAttribute(m1.attributes.TARGET)}set target(t){this._target!==t&&(this._target=t,this._adapter.isConnected&&this._adapter.trySetTarget(t),this._adapter.toggleHostAttribute(m1.attributes.TARGET,!!this._target,this._target))}get active(){return this._active}set active(t){t=!!t,this._active!==t&&(this._active=t,this._adapter.toggleHostAttribute(m1.attributes.ACTIVE,this._active))}get inward(){return this._inward}set inward(t){t=!!t,this._inward!==t&&(this._inward=t,this._adapter.toggleHostAttribute(m1.attributes.INWARD,this._inward))}get circular(){return this._circular}set circular(t){t=!!t,this._circular!==t&&(this._circular=t,this._adapter.toggleHostAttribute(m1.attributes.CIRCULAR,this._circular))}get allowFocus(){return this._allowFocus}set allowFocus(t){t=!!t,this._allowFocus!==t&&(this._allowFocus=t,this._adapter.toggleHostAttribute(m1.attributes.ALLOW_FOCUS,this._allowFocus))}get focusMode(){return this._focusMode}set focusMode(t){if(t!=null||(t=m1.defaults.FOCUS_MODE),this._focusMode!==t){this._adapter.isConnected&&this._removeListeners(),this._focusMode=t,this._adapter.isConnected&&this._addListeners();let e=this._focusMode!==m1.defaults.FOCUS_MODE;this._adapter.toggleHostAttribute(m1.attributes.FOCUS_MODE,e,this._focusMode)}}};var L7="<template></template>",I7=":host{--_focus-indicator-display:var(--forge-focus-indicator-display, flex);--_focus-indicator-width:var(--forge-focus-indicator-width, var(--forge-border-medium, 2px));--_focus-indicator-active-width:var(--forge-focus-indicator-active-width, 6px);--_focus-indicator-color:var(--forge-focus-indicator-color, var(--forge-theme-primary, #3f51b5));--_focus-indicator-shape:var(--forge-focus-indicator-shape, calc(var(--forge-shape-extra-small, 1px) * var(--forge-shape-factor, 1)));--_focus-indicator-duration:var(--forge-focus-indicator-duration, var(--forge-animation-duration-long4, 600ms));--_focus-indicator-easing:var(--forge-focus-indicator-easing, var(--forge-animation-easing-emphasized, cubic-bezier(0.2, 0, 0, 1)));--_focus-indicator-shape-start-start:var(--forge-focus-indicator-shape-start-start, var(--_focus-indicator-shape));--_focus-indicator-shape-start-end:var(--forge-focus-indicator-shape-start-end, var(--_focus-indicator-shape));--_focus-indicator-shape-end-end:var(--forge-focus-indicator-shape-end-end, var(--_focus-indicator-shape));--_focus-indicator-shape-end-start:var(--forge-focus-indicator-shape-end-start, var(--_focus-indicator-shape));--_focus-indicator-outward-offset:var(--forge-focus-indicator-outward-offset, var(--forge-spacing-xxsmall, 4px));--_focus-indicator-inward-offset:var(--forge-focus-indicator-inward-offset, 0px);--_focus-indicator-offset-block:var(--forge-focus-indicator-offset-block, 0);--_focus-indicator-offset-inline:var(--forge-focus-indicator-offset-inline, 0)}:host{animation-delay:0s,calc(var(--_focus-indicator-duration) * .25);animation-duration:calc(var(--_focus-indicator-duration) * .25),calc(var(--_focus-indicator-duration) * .75);animation-timing-function:var(--_focus-indicator-easing);box-sizing:border-box;color:var(--_focus-indicator-color);display:none;pointer-events:none;position:absolute;margin-block:var(--_focus-indicator-offset-block);margin-inline:var(--_focus-indicator-offset-inline)}:host([hidden]){display:none}:host([active]){display:var(--_focus-indicator-display)}:host(:not([inward])){animation-name:forge-focus-indicator-outward-grow,forge-focus-indicator-outward-shrink;border-end-end-radius:calc(var(--_focus-indicator-shape-end-end) + var(--_focus-indicator-outward-offset));border-end-start-radius:calc(var(--_focus-indicator-shape-end-start) + var(--_focus-indicator-outward-offset));border-start-end-radius:calc(var(--_focus-indicator-shape-start-end) + var(--_focus-indicator-outward-offset));border-start-start-radius:calc(var(--_focus-indicator-shape-start-start) + var(--_focus-indicator-outward-offset));inset:calc(-1 * var(--_focus-indicator-outward-offset));outline:var(--_focus-indicator-width) solid currentColor}:host([inward]){animation-name:forge-focus-indicator-inward-grow,forge-focus-indicator-inward-shrink;border-end-end-radius:calc(var(--_focus-indicator-shape-end-end) - var(--_focus-indicator-inward-offset));border-end-start-radius:calc(var(--_focus-indicator-shape-end-start) - var(--_focus-indicator-inward-offset));border-start-end-radius:calc(var(--_focus-indicator-shape-start-end) - var(--_focus-indicator-inward-offset));border-start-start-radius:calc(var(--_focus-indicator-shape-start-start) - var(--_focus-indicator-inward-offset));border:var(--_focus-indicator-width) solid currentColor;inset:var(--_focus-indicator-inward-offset)}:host([circular]){--_focus-indicator-shape:var(--forge-focus-indicator-shape, 50%)}@keyframes forge-focus-indicator-outward-grow{from{outline-width:0}to{outline-width:var(--_focus-indicator-active-width)}}@keyframes forge-focus-indicator-outward-shrink{from{outline-width:var(--_focus-indicator-active-width)}}@keyframes forge-focus-indicator-inward-grow{from{border-width:0}to{border-width:var(--_focus-indicator-active-width)}}@keyframes forge-focus-indicator-inward-shrink{from{border-width:var(--_focus-indicator-active-width)}}@media (prefers-reduced-motion){:host{animation:none}}",Q=class extends M{static get observedAttributes(){return Object.values(m1.attributes)}constructor(){super(),H(this,L7,I7),this._core=new In(new Ln(this))}connectedCallback(){this._core.initialize()}disconnectedCallback(){this._core.destroy()}attributeChangedCallback(t,e,a){switch(t){case m1.attributes.TARGET:this.target=a;break;case m1.attributes.ACTIVE:this.active=p(a);break;case m1.attributes.INWARD:this.inward=p(a);break;case m1.attributes.CIRCULAR:this.circular=p(a);break;case m1.attributes.ALLOW_FOCUS:this.allowFocus=p(a);break;case m1.attributes.FOCUS_MODE:this.focusMode=a;break}}};s([v()],Q.prototype,"targetElement",2),s([v()],Q.prototype,"target",2),s([v()],Q.prototype,"active",2),s([v()],Q.prototype,"inward",2),s([v()],Q.prototype,"circular",2),s([v()],Q.prototype,"allowFocus",2),s([v()],Q.prototype,"focusMode",2),Q=s([y({name:m1.elementName})],Q);function iv(){x(Q)}var Vn=class extends I{constructor(t){super(t),this._rootElement=g(t,W1.selectors.ROOT),this._logoTitleContainerElement=g(t,W1.selectors.LOGO_TITLE_CONTAINER),this._centerSectionElement=g(t,W1.selectors.CENTER_SECTION),this._centerSlotElement=g(t,W1.selectors.CENTER_SLOT)}initialize(){this._component.hasAttribute("role")||this._component.setAttribute("role","banner")}setTitleText(t){var e;if(t!=null&&t.trim().length){if(!this._titleElement){this._titleElement=this._createTitleElement();let a=this._logoTitleContainerElement.querySelector("slot[name=title]");a==null||a.append(this._titleElement)}this._titleElement.textContent=t}else(e=this._titleElement)==null||e.remove(),this._titleElement=void 0}setHref(t,e){var o,n;let a=this._logoTitleContainerElement.tagName==="A";t?(a||this._createAnchorElement(),this._logoTitleContainerElement.href=t,this._logoTitleContainerElement.addEventListener("click",e,{capture:!0})):a&&(this._logoTitleContainerElement.removeEventListener("click",e,{capture:!0}),this._logoTitleContainerElement=Ka(this._logoTitleContainerElement,document.createElement("div")),this._logoTitleContainerElement.classList.add(W1.classes.LOGO_TITLE_CONTAINER),(o=this._logoTitleContainerElement.querySelector(M1.elementName))==null||o.remove(),(n=this._logoTitleContainerElement.querySelector(m1.elementName))==null||n.remove())}setTarget(t){this._logoTitleContainerElement.tagName==="A"&&(this._logoTitleContainerElement.target=t)}addCenterSlotListener(t){this._centerSlotElement.addEventListener("slotchange",t)}setCenterSlotVisibility(){this._centerSlotElement.assignedNodes().length?(this._centerSectionElement.style.removeProperty("display"),this._rootElement.classList.remove(W1.classes.NO_CENTER)):(this._centerSectionElement.style.display="none",this._rootElement.classList.add(W1.classes.NO_CENTER))}_createAnchorElement(){this._logoTitleContainerElement=Ka(this._logoTitleContainerElement,document.createElement("a")),this._logoTitleContainerElement.classList.add(W1.classes.LOGO_TITLE_CONTAINER);let t=document.createElement("forge-state-layer"),e=document.createElement("forge-focus-indicator");e.inward=!0,this._logoTitleContainerElement.append(t,e)}_createTitleElement(){let t=document.createElement("h1");return t.classList.add(W1.classes.TITLE),t.setAttribute("part","title"),t}};var En=class{constructor(t){this._adapter=t;this._titleText="";this._elevation="raised";this._href="";this._target="";this._centerSlotListener=()=>this._adapter.setCenterSlotVisibility();this._anchorClickListener=this._onHrefClick.bind(this)}initialize(){this._adapter.initialize(),this._adapter.addCenterSlotListener(this._centerSlotListener),this._adapter.setCenterSlotVisibility()}_onHrefClick(t){let e=new CustomEvent(W1.events.NAVIGATE,{bubbles:!0,composed:!0,cancelable:!0});this._adapter.dispatchHostEvent(e),e.defaultPrevented&&t.preventDefault()}get titleText(){return this._titleText}set titleText(t){var e;if(this._titleText!==t){this._titleText=t!=null?t:"",this._adapter.setTitleText(this._titleText);let a=!!((e=this._titleText)!=null&&e.trim().length);this._adapter.toggleHostAttribute(W1.attributes.TITLE_TEXT,a,t)}}get elevation(){return this._elevation}set elevation(t){this._elevation!==t&&(this._elevation=t,this._adapter.setHostAttribute(W1.attributes.ELEVATION,t))}get theme(){return this._theme}set theme(t){this._theme!==t&&(this._theme=t!=null?t:"",this._adapter.toggleHostAttribute(W1.attributes.THEME,!!this._theme,this._theme))}get href(){var t;return(t=this._href)!=null?t:""}set href(t){this._href!==t&&(this._href=t!=null&&t.trim().length?t.trim():"",this._adapter.setHref(this._href,this._anchorClickListener),this._adapter.toggleHostAttribute(W1.attributes.HREF,!!this._href,this._href))}get target(){var t;return(t=this._target)!=null?t:""}set target(t){this._target!==t&&(this._target=t!=null&&t.trim().length?t.trim():"",this._adapter.setTarget(this._target),this._adapter.toggleHostAttribute(W1.attributes.TARGET,!!this._target,this._target))}};var V7='<template><div class="forge-app-bar" part="root"><div class="row"><div class="section"><slot name="start"></slot><div class="logo-title-container"><slot name="logo"></slot><slot name="title"></slot></div></div><div id="center-section" class="section"><slot name="center"></slot></div><div class="section"><slot name="end"></slot></div></div><div><slot name="bottom"></slot></div></div></template>',E7=':host{--_app-bar-background:var(--forge-app-bar-background, var(--forge-theme-brand, #283593));--_app-bar-foreground:var(--forge-app-bar-foreground, var(--forge-theme-on-brand, #ffffff))}:host{display:block}:host([hidden]){display:none}:host(:not([theme])){--forge-theme-primary:var(--_app-bar-foreground);--forge-theme-on-primary:rgba(0, 0, 0, 0.87);--forge-theme-text-high:rgba(255, 255, 255, 0.87);--forge-theme-text-medium:rgba(255, 255, 255, 0.54);--forge-theme-text-low:rgba(255, 255, 255, 0.38);--forge-theme-outline-high:rgba(255, 255, 255, 0.87);--forge-theme-outline-medium:rgba(255, 255, 255, 0.54);--forge-theme-outline-low:rgba(255, 255, 255, 0.38)}.forge-app-bar{--_app-bar-z-index:var(--forge-app-bar-z-index, var(--forge-z-index-header, 4));--_app-bar-elevation:var(--forge-app-bar-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12));--_app-bar-height:var(--forge-app-bar-height, 56px);--_app-bar-row-padding:var(--forge-app-bar-row-padding, var(--forge-spacing-xxsmall, 4px));--_app-bar-logo-gap:var(--forge-app-bar-logo-gap, var(--forge-spacing-medium, 16px));--_app-bar-logo-font-size:var(--forge-app-bar-logo-font-size, calc(var(--forge-typography-font-size, 1rem) * 2.5));--_app-bar-title-padding:var(--forge-app-bar-title-padding, var(--forge-spacing-xsmall, 8px));--_app-bar-columns:var(--forge-app-bar-columns, 1fr 1fr 1fr);--_app-bar-transition-duration:var(--forge-app-bar-transition-duration, var(--forge-animation-duration-short4, 200ms));--_app-bar-transition-timing:var(--forge-app-bar-transition-timing, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1)))}.forge-app-bar{background:var(--_app-bar-background);color:var(--_app-bar-foreground);position:relative;z-index:var(--_app-bar-z-index);display:grid;grid-template-rows:1fr auto;transition-property:box-shadow,background-color;transition-duration:var(--_app-bar-transition-duration);transition-timing-function:var(--_app-bar-transition-timing);box-sizing:border-box;width:100%}.forge-app-bar .row{display:grid;align-items:center;grid-template-columns:var(--_app-bar-columns);height:var(--_app-bar-height);padding-inline:var(--_app-bar-row-padding)}.forge-app-bar.no-center .row{grid-template-columns:1fr auto}.forge-app-bar .section{display:inline-flex;flex:1 1 auto;align-items:center;box-sizing:border-box;min-width:0;height:100%}.forge-app-bar .section:not(:last-child):not(:first-child){justify-content:center}.forge-app-bar .section:last-child{justify-self:end}.forge-app-bar h1{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-heading4-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-heading4-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-heading4-font-size-scale, 1.25)));font-weight:var(--forge-typography-heading4-font-weight,500);line-height:var(--forge-typography-heading4-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-heading4-line-height-scale, 1.5)));letter-spacing:var(--forge-typography-heading4-letter-spacing, .005em);text-transform:var(--forge-typography-heading4-text-transform,inherit);text-decoration:var(--forge-typography-heading4-text-decoration,inherit);margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.forge-app-bar a{outline:0;text-decoration:none;color:inherit;box-sizing:border-box;height:100%}.forge-app-bar a forge-state-layer{--forge-state-layer-color:var(--_app-bar-foreground)}.forge-app-bar a forge-focus-indicator{--forge-focus-indicator-color:var(--_app-bar-foreground);--forge-focus-indicator-shape:4px;--forge-focus-indicator-offset-block:4px}.forge-app-bar .logo-title-container{position:relative;display:flex;align-items:center;gap:var(--_app-bar-logo-gap);min-width:0;padding-inline:var(--_app-bar-title-padding)}:host(:is(:not([elevation]),[elevation=raised])) .forge-app-bar{box-shadow:var(--_app-bar-elevation)}::slotted(forge-tab-bar){--forge-tab-bar-divider-thickness:0}::slotted([slot=logo]){font-size:var(--_app-bar-logo-font-size);height:1em;width:1em}::slotted(forge-app-bar-search[slot=center]){width:100%}:host([theme=white]){--forge-theme-primary:black;--forge-theme-on-primary:rgba(255, 255, 255, 0.87);--forge-theme-text-medium:rgba(0, 0, 0, 0.54)}:host([theme=white]) .forge-app-bar{--_app-bar-background:var(--forge-app-bar-background, white);--_app-bar-foreground:var(--forge-app-bar-foreground, black)}',be=class extends M{static get observedAttributes(){return[W1.attributes.TITLE_TEXT,W1.attributes.ELEVATION,W1.attributes.THEME,W1.attributes.HREF,W1.attributes.TARGET]}constructor(){super(),H(this,V7,E7),this._core=new En(new Vn(this))}connectedCallback(){this._core.initialize()}attributeChangedCallback(t,e,a){switch(t){case W1.attributes.TITLE_TEXT:this.titleText=a;break;case W1.attributes.ELEVATION:this.elevation=a;break;case W1.attributes.THEME:this.theme=a;break;case W1.attributes.HREF:this.href=a;break;case W1.attributes.TARGET:this.target=a;break}}};s([v()],be.prototype,"titleText",2),s([v()],be.prototype,"elevation",2),s([v()],be.prototype,"theme",2),s([v()],be.prototype,"href",2),s([v()],be.prototype,"target",2),be=s([y({name:W1.elementName})],be);function sv(){x(be)}var lv=`${b}app-bar-search`,C7={ROOT:".forge-app-bar-search",INPUT:"input"},z7={DISABLED:"disabled",VALUE:"value",PLACEHOLDER:"placeholder"},A7={INPUT:`${lv}-input`},A2={elementName:lv,selectors:C7,attributes:z7,events:A7};var Cn=class{constructor(t){this._adapter=t;this._disabled=!1;this._keydownListener=t=>this._onKeydown(t)}initialize(){this._adapter.initialize(),this._tryForwardInputState(),this._adapter.addInputEventListener("keydown",this._keydownListener)}_tryForwardInputState(){this._disabled&&this._adapter.setInputProperty("disabled",this._disabled),this._adapter.hasHostAttribute(A2.attributes.VALUE)&&this._adapter.setInputProperty("value",this._adapter.getHostAttribute(A2.attributes.VALUE)),this._adapter.hasHostAttribute(A2.attributes.PLACEHOLDER)&&this._adapter.setInputProperty("placeholder",this._adapter.getHostAttribute(A2.attributes.PLACEHOLDER))}_onKeydown({key:t,target:e}){if(!this._disabled&&t==="Enter"){let a={value:e.value};this._adapter.emitHostEvent(A2.events.INPUT,a,!0)}}destroy(){this._adapter.removeInputEventListener("keydown",this._keydownListener)}get disabled(){return this._disabled}set disabled(t){t!==this._disabled&&(this._disabled=t,this._adapter.setInputProperty("disabled",this._disabled),this._adapter.toggleHostAttribute(A2.attributes.DISABLED,this._disabled))}get value(){return this._adapter.getInputProperty("value")}set value(t){this._adapter.setInputProperty("value",t)}get placeholder(){return this._adapter.getInputProperty("placeholder")}set placeholder(t){this._adapter.setInputProperty("placeholder",t)}};var zn=class extends I{constructor(t){super(t),this._rootElement=g(t,A2.selectors.ROOT)}initialize(){let t=this._component.querySelector(A2.selectors.INPUT);if(t){this._inputElement=t;let e=document.createElement("forge-focus-indicator");e.targetElement=this._inputElement,this._rootElement.appendChild(e)}}addInputEventListener(t,e){var a;(a=this._inputElement)==null||a.addEventListener(t,e)}removeInputEventListener(t,e){var a;(a=this._inputElement)==null||a.removeEventListener(t,e)}setInputProperty(t,e){this._inputElement&&(this._inputElement[t]=e)}getInputProperty(t){var e;return(e=this._inputElement)==null?void 0:e[t]}};var B7='<template><div class="forge-app-bar-search" part="root"><slot name="start"><forge-icon name="search" class="icon" part="icon"></forge-icon></slot><slot name="input"></slot><slot></slot><slot name="end"></slot></div></template>',T7=':host{display:block}:host([hidden]){display:none}.forge-app-bar-search{--_app-bar-search-color:var(--forge-app-bar-search-color, currentColor);--_app-bar-search-height:var(--forge-app-bar-search-height, 36px);--_app-bar-search-padding:var(--forge-app-bar-search-padding, 8px);--_app-bar-search-shape:var(--forge-app-bar-search-shape, calc(var(--forge-shape-small, 2px) * var(--forge-shape-factor, 1)));--_app-bar-search-gap:var(--forge-app-bar-search-gap, 4px);--_app-bar-search-input-placeholder-color:var(--forge-app-bar-search-input-placeholder-color, var(--_app-bar-search-color));--_app-bar-search-input-placeholder-opacity:var(--forge-app-bar-search-input-placeholder-opacity, 0.7);--_app-bar-search-background-color:var(--forge-app-bar-search-background-color, var(--_app-bar-search-color));--_app-bar-search-background-color-opacity:var(--forge-app-bar-search-background-color-opacity, 0.08);--_app-bar-search-border-color:var(--forge-app-bar-search-border-color, var(--_app-bar-search-color));--_app-bar-search-border-opacity:var(--forge-app-bar-search-border-opacity, 0.54);--_app-bar-search-border-hover-opacity:var(--forge-app-bar-search-border-hover-opacity, 0.87);--_app-bar-search-transition-duration:var(--forge-app-bar-search-transition-duration, var(--forge-animation-duration-short3, 150ms));--_app-bar-search-transition-timing-function:var(--forge-app-bar-search-transition-timing-function, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1)))}.forge-app-bar-search{position:relative;display:flex;align-items:center;flex:1 1 auto;gap:var(--_app-bar-search-gap);height:var(--_app-bar-search-height);width:100%;padding-inline:var(--_app-bar-search-padding);box-sizing:border-box;border-radius:var(--_app-bar-search-shape)}.forge-app-bar-search:hover::after{opacity:var(--_app-bar-search-border-hover-opacity)}.forge-app-bar-search::before{content:"";position:absolute;inset:0;pointer-events:none;background-color:var(--_app-bar-search-background-color);opacity:var(--_app-bar-search-background-color-opacity)}.forge-app-bar-search::after{content:"";position:absolute;inset:0;pointer-events:none;opacity:var(--_app-bar-search-border-opacity);border-radius:var(--_app-bar-search-shape);outline:1px solid var(--_app-bar-search-border-color);transition-property:opacity;transition-duration:var(--_app-bar-search-transition-duration);transition-timing-function:var(--_app-bar-search-transition-timing-function)}:host([disabled]){cursor:not-allowed}:host([disabled]) .forge-app-bar-search{pointer-events:none;opacity:38%}:host([disabled]) ::slotted(input){pointer-events:none}forge-focus-indicator{--forge-focus-indicator-color:currentColor;--forge-focus-indicator-outward-offset:0px}::slotted(input){-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-body2-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-body2-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-font-size-scale, 1)));font-weight:var(--forge-typography-body2-font-weight,400);line-height:var(--forge-typography-body2-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-line-height-scale, 1.375)));letter-spacing:var(--forge-typography-body2-letter-spacing, .015625em);text-transform:var(--forge-typography-body2-text-transform,inherit);text-decoration:var(--forge-typography-body2-text-decoration,inherit);display:block;overflow:hidden;background:0 0;color:currentColor;border:none;width:100%;margin:0;outline:0}::slotted(input)::placeholder{color:currentColor;opacity:var(--_app-bar-search-input-placeholder-opacity)}',h0=class extends M{static get observedAttributes(){return[A2.attributes.DISABLED,A2.attributes.VALUE,A2.attributes.PLACEHOLDER]}constructor(){super(),q.define(s3),H(this,B7,T7),this._core=new Cn(new zn(this))}connectedCallback(){this.querySelector(A2.selectors.INPUT)?this._core.initialize():f5(this).then(()=>this._core.initialize())}disconnectedCallback(){this._core.destroy()}attributeChangedCallback(t,e,a){switch(t){case A2.attributes.DISABLED:this.disabled=p(a);break;case A2.attributes.VALUE:this.value=a;break;case A2.attributes.PLACEHOLDER:this.placeholder=a;break}}};s([v()],h0.prototype,"value",2),s([v()],h0.prototype,"disabled",2),s([v()],h0.prototype,"placeholder",2),h0=s([y({name:A2.elementName,dependencies:[X,Q]})],h0);function vv(){x(h0)}var S7=`${b}app-bar-menu-button`,hv={ICON:"icon"},k7=w({},hv),O7=["aria-label","aria-labelledby"],to={elementName:S7,observedAttributes:hv,attributes:k7,forwardedAttributes:O7};var cv={TYPE:"type",DISABLED:"disabled",POPOVER_ICON:"popover-icon",DENSE:"dense",TABINDEX:"tabindex"},D7=w({},cv),P7={ROOT:"forge-button",POPOVER_ICON:"forge-button__popover-icon",WITH_ANCHOR:"with-anchor"},N7={ROOT:"[part=root]",DEFAULT_SLOT:"slot:not([name])",END_SLOT:"slot[name=end]"},v2={observedAttributes:cv,attributes:D7,selectors:N7,classes:P7};function it(r){class t extends r{connectedCallback(){var a;(a=super.connectedCallback)==null||a.call(this),this.hasAttribute(Wo)&&this[Ga]&&this[Ga][Zr](this),this.removeAttribute(Wo),delete this[Ga]}}return t}function H1(r){var e;class t extends(e=r,a1,e){constructor(...o){super(...o),this[a1]=this.attachInternals()}}return t}function R7(r){return r.replace("aria","aria-").replace(/Elements?/g,"").toLowerCase()}function Ut(r,t,e,{setAttribute:a}={setAttribute:!0}){Object.entries(e).forEach(([o,n])=>{R5()&&(t[o]=n);let i=R7(o);(a||!r.hasAttribute(i))&&K(r,n!=null,i,n)})}function Qo(r,t,e){if(e)try{r.states.add(t)}catch(a){r.states.add(`--${t}`)}else try{r.states.delete(t)}catch(a){r.states.delete(`--${t}`)}}function L1(r){class t extends r{[P](a,o){Ut(this,this[a1],a,o)}}return t}var Wt=class extends L1(H1(it(M))){constructor(){super();this.popoverTargetElement=null;this.popoverTargetAction="click";q.define(C0)}static get observedAttributes(){return Object.values(v2.observedAttributes)}connectedCallback(){super.connectedCallback(),this._core.initialize()}attributeChangedCallback(e,a,o){switch(e){case v2.observedAttributes.TYPE:this.type=o;return;case v2.observedAttributes.DISABLED:this.disabled=p(o);return;case v2.observedAttributes.POPOVER_ICON:this.popoverIcon=p(o);return;case v2.observedAttributes.DENSE:this.dense=p(o);return}}labelClickedCallback(){this._core.click({animateStateLayer:!0})}labelChangedCallback(e){this[P]({ariaLabel:e},{setAttribute:!this.hasAttribute("aria-label")})}get form(){return this[a1].form}get name(){var e;return(e=this.getAttribute("name"))!=null?e:""}set name(e){this.setAttribute("name",e)}get value(){var e;return(e=this.getAttribute("value"))!=null?e:""}set value(e){this.setAttribute("value",e)}click(){this._core.click({animateStateLayer:!0})}focus(e){this._core.focus(e)}};Wt.formAssociated=!0,s([v()],Wt.prototype,"type",2),s([v()],Wt.prototype,"disabled",2),s([v()],Wt.prototype,"popoverIcon",2),s([v()],Wt.prototype,"dense",2);var pv=`${b}icon-button`,dv={TOGGLE:"toggle",PRESSED:"pressed",ON:"on",VARIANT:"variant",THEME:"theme",SHAPE:"shape",DENSITY:"density"},F7=t1(w({},dv),{ARIA_PRESSED:"aria-pressed"}),U7={TOGGLE:`${pv}-toggle`},W7={DEFAULT_VARIANT:"icon",DEFAULT_THEME:"default",DEFAULT_SHAPE:"circular",DEFAULT_DENSITY:"large"},J={elementName:pv,observedAttributes:dv,attributes:F7,events:U7,defaults:W7};var N0=class{constructor(t){this._adapter=t;this._type="button";this._disabled=!1;this._popoverIcon=!1;this._dense=!1;this._clickListener=this._onClick.bind(this);this._keydownListener=this._onKeydown.bind(this);this._slotChangeListener=()=>this._detectSlottedAnchor()}initialize(){this._detectSlottedAnchor(),this._adapter.addDefaultSlotChangeListener(this._slotChangeListener)}click({animateStateLayer:t=!1}={}){this._disabled||(this._adapter.clickHost(),t&&this._adapter.animateStateLayer())}focus(t){this._adapter.focusHost(t),(t==null?void 0:t.focusVisible)!==!1&&this._adapter.forceFocusVisible()}async _onClick(t){let e=this._type==="submit"||this._type==="reset";!e&&this._adapter.hasPopoverTarget()&&this._adapter.managePopover()||(await new Promise(a=>setTimeout(a)),!(t.defaultPrevented||this._disabled)&&e&&this._adapter.clickFormButton(this._type))}async _onKeydown(t){if(t.key===" "){t.preventDefault(),this.click();return}await Qt(),!(t.defaultPrevented||this._disabled)&&t.key==="Enter"&&this.click()}_detectSlottedAnchor(){this._adapter.hasSlottedAnchor?(this.disabled=!1,this._adapter.removeHostListener("click",this._clickListener),this._adapter.removeHostListener("keydown",this._keydownListener)):(this._adapter.addHostListener("click",this._clickListener),this._adapter.addHostListener("keydown",this._keydownListener)),this._adapter.initialize()}get type(){return this._type}set type(t){this._type!==t&&(this._type=t,this._adapter.setHostAttribute(v2.attributes.TYPE,t))}get disabled(){return this._disabled}set disabled(t){t=!!t,this._disabled!==t&&(this._adapter.hasSlottedAnchor&&(t=!1),this._disabled=t,this._adapter.setDisabled(this._disabled),this._adapter.toggleHostAttribute(v2.attributes.DISABLED,t))}get popoverIcon(){return this._popoverIcon}set popoverIcon(t){t=!!t,this._popoverIcon!==t&&(this._popoverIcon=t,this._adapter.toggleDefaultPopoverIcon(this._popoverIcon),this._adapter.toggleHostAttribute(v2.attributes.POPOVER_ICON,t))}get dense(){return this._dense}set dense(t){t=!!t,this._dense!==t&&(this._dense=t,this._adapter.toggleHostAttribute(v2.attributes.DENSE,t))}};var An=class extends N0{constructor(e){super(e);this._toggle=!1;this._pressed=!1;this._variant=J.defaults.DEFAULT_VARIANT;this._theme=J.defaults.DEFAULT_THEME;this._shape=J.defaults.DEFAULT_SHAPE;this._density=J.defaults.DEFAULT_DENSITY}initialize(){super.initialize(),this._adapter.tryApplyGlobalConfiguration(["variant","shape","density"])}async _onClick(e){this._toggle&&this._onToggle(),super._onClick(e)}_onToggle(){let e=this._pressed;this._pressed=!this._pressed;let a=!this._adapter.emitHostEvent(J.events.TOGGLE,this.pressed,!0,!0);this._pressed=e,!a&&(this.pressed=!e)}get toggle(){return this._toggle}set toggle(e){e=!!e,this._toggle!==e&&(this._toggle=e,this._adapter.toggleHostAttribute(J.attributes.ARIA_PRESSED,this._toggle,`${this._pressed}`),this._adapter.toggleHostAttribute(J.attributes.TOGGLE,this._toggle))}get pressed(){return this._pressed}set pressed(e){e=!!e,this._pressed!==e&&(this._pressed=e,this._toggle?this._adapter.setHostAttribute(J.attributes.ARIA_PRESSED,`${this._pressed}`):this._adapter.removeHostAttribute(J.attributes.ARIA_PRESSED),this._adapter.toggleHostAttribute(J.attributes.PRESSED,this._pressed),this._adapter.toggleHostAttribute(J.attributes.ON,this._pressed))}get variant(){return this._variant}set variant(e){e=e!=null?e:J.defaults.DEFAULT_VARIANT,this._variant!==e&&(this._variant=e,this._variant!==J.defaults.DEFAULT_VARIANT?this._adapter.setHostAttribute(J.attributes.VARIANT,this._variant):this._adapter.removeHostAttribute(J.attributes.VARIANT))}get theme(){return this._theme}set theme(e){e=e!=null?e:J.defaults.DEFAULT_THEME,this._theme!==e&&(this._theme=e,this._theme!==J.defaults.DEFAULT_THEME?this._adapter.setHostAttribute(J.attributes.THEME,this._theme):this._adapter.removeHostAttribute(J.attributes.THEME))}get shape(){return this._shape}set shape(e){e=e!=null?e:J.defaults.DEFAULT_SHAPE,this._shape!==e&&(this._shape=e,this._shape!==J.defaults.DEFAULT_SHAPE?this._adapter.setHostAttribute(J.attributes.SHAPE,this._shape):this._adapter.removeHostAttribute(J.attributes.SHAPE))}get density(){return this._density}set density(e){e=e!=null?e:J.defaults.DEFAULT_DENSITY,this._density!==e&&(this._density=e,this._density!==J.defaults.DEFAULT_DENSITY?this._adapter.setHostAttribute(J.attributes.DENSITY,this._density):this._adapter.removeHostAttribute(J.attributes.DENSITY))}};var R0=class extends I{constructor(t){super(t),this._rootElement=g(this._component,v2.selectors.ROOT),this._focusIndicatorElement=g(this._component,m1.elementName),this._stateLayerElement=g(this._component,M1.elementName),this._defaultSlotElement=g(this._component,v2.selectors.DEFAULT_SLOT),this._endSlotElement=g(this._component,v2.selectors.END_SLOT)}get hasSlottedAnchor(){return!!this.getSlottedAnchor}get getSlottedAnchor(){return this._defaultSlotElement.assignedElements({flatten:!0}).find(t=>t.tagName==="A")}initialize(){let t=this.getSlottedAnchor;this._component[P]({role:t?null:"button"},{setAttribute:!this._component.hasAttribute("role")||!!t}),this._rootElement.classList.toggle(v2.classes.WITH_ANCHOR,!!t),t?this._component.removeAttribute("tabindex"):!this._component.disabled&&!this._component.hasAttribute("tabindex")&&this._component.setAttribute("tabindex","0"),this._focusIndicatorElement.targetElement=t||this._component,this._stateLayerElement.targetElement=t||this._component}setDisabled(t){t?(this._focusIndicatorElement.remove(),this._stateLayerElement.remove()):this._rootElement.append(this._focusIndicatorElement,this._stateLayerElement),this.hasSlottedAnchor?(this._component.removeAttribute("tabindex"),this._component[P]({ariaDisabled:null},{setAttribute:!0})):(t?this._component.removeAttribute("tabindex"):this._component.hasAttribute("tabindex")||this._component.setAttribute("tabindex","0"),this._component[P]({ariaDisabled:t?"true":null}))}clickHost(){HTMLElement.prototype.click.call(this._component)}forceFocusVisible(){this._focusIndicatorElement.active=!0}clickFormButton(t){var e;if(this._component.form)if(t==="submit"){this._component[a1].setFormValue(this._component.value);let a=document.createElement("button");a.type=t,e4(this._component,a,y3),this._component.form.addEventListener("submit",o=>{Object.defineProperty(o,"submitter",{configurable:!0,enumerable:!0,get:()=>this._component})},{capture:!0,once:!0}),this._component.insertAdjacentElement("afterend",a),a.click(),a.remove()}else t==="reset"&&((e=this._component.form)==null||e.reset())}hasPopoverTarget(){return this._component.hasAttribute("popovertarget")||!!this._component.popoverTargetElement}managePopover(){var o,n;if(this._component.form||!this.hasPopoverTarget()||!jr())return!1;let t=this._locatePopoverTargetElement();if(!t)return!1;let e=(n=(o=this._component.getAttribute("popovertargetaction"))!=null?o:this._component.popoverTargetAction)!=null?n:"toggle",a=t.matches(":popover-open");switch(e){case"show":return a||t.showPopover(),!0;case"hide":return a&&t.hidePopover(),!1;case"toggle":default:let i=t.togglePopover();if(i&&t.popover!=="manual"){let l=h=>{h.stopPropagation(),t.matches(":popover-open")&&t.hidePopover()};this._component.addEventListener("click",l,{capture:!0,once:!0}),t.addEventListener("beforetoggle",async()=>{await new Promise(h=>setTimeout(h)),this._component.removeEventListener("click",l,{capture:!0})},{once:!0})}return i}}toggleDefaultPopoverIcon(t){if(t){if(!this._endSlotElement.querySelector("forge-icon")){let a=document.createElement("forge-icon");a.classList.add(v2.classes.POPOVER_ICON),a.name=C0.name,this._endSlotElement.append(a)}}else{let e=this._endSlotElement.querySelector("forge-icon");e==null||e.remove()}}animateStateLayer(){var t;this._stateLayerElement.disabled||!this._stateLayerElement.isConnected||(t=this._stateLayerElement)==null||t.playAnimation()}addDefaultSlotChangeListener(t){this._defaultSlotElement.addEventListener("slotchange",t)}_locatePopoverTargetElement(){var e;let t=(e=this._component.popoverTargetElement)!=null?e:null;if(!t){let a=this._component.ownerDocument.getRootNode();if(!a)return null;let o=this._component.getAttribute("popovertarget");t=a.querySelector(`#${o}`)}return t}};var Bn=class extends R0{constructor(t){super(t)}};var G7='<template><div class="forge-icon-button" part="root"><slot name="start"></slot><slot></slot><slot name="on"></slot><slot name="end"></slot><slot name="badge"></slot><forge-focus-indicator target=":host" part="focus-indicator"></forge-focus-indicator><forge-state-layer target=":host" exportparts="surface:state-layer"></forge-state-layer></div></template>',Y7=":host{--_icon-button-display:var(--forge-icon-button-display, inline-flex);--_icon-button-disabled-cursor:var(--forge-icon-button-disabled-cursor, not-allowed)}:host{display:var(--_icon-button-display);position:relative;outline:0;-webkit-tap-highlight-color:transparent}:host([hidden]){display:none}.forge-icon-button{--_icon-button-size:var(--forge-icon-button-size, 48px);--_icon-button-gap:var(--forge-icon-button-gap, 0);--_icon-button-icon-color:var(--forge-icon-button-icon-color, currentColor);--_icon-button-background-color:var(--forge-icon-button-background-color, none);--_icon-button-icon-size:var(--forge-icon-button-icon-size, calc(var(--forge-typography-font-size, 1rem) * 1.5));--_icon-button-cursor:var(--forge-icon-button-cursor, pointer);--_icon-button-padding:var(--forge-icon-button-padding, var(--forge-spacing-xxsmall, 4px));--_icon-button-border:var(--forge-icon-button-border, none);--_icon-button-shadow:var(--forge-icon-button-shadow, none);--_icon-button-transition-duration:var(--forge-icon-button-transition-duration, var(--forge-animation-duration-short3, 150ms));--_icon-button-transition-timing:var(--forge-icon-button-transition-timing, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1)));--_icon-button-shape:var(--forge-icon-button-shape, calc(var(--forge-shape-full, 9999px) * var(--forge-shape-factor, 1)));--_icon-button-shape-start-start:var(--forge-icon-button-shape-start-start, var(--_icon-button-shape));--_icon-button-shape-start-end:var(--forge-icon-button-shape-start-end, var(--_icon-button-shape));--_icon-button-shape-end-start:var(--forge-icon-button-shape-end-start, var(--_icon-button-shape));--_icon-button-shape-end-end:var(--forge-icon-button-shape-end-end, var(--_icon-button-shape));--_icon-button-shape-squared:var(--forge-icon-button-shape-squared, calc(var(--forge-shape-medium, 4px) * var(--forge-shape-factor, 1)));--_icon-button-outlined-border-width:var(--forge-icon-button-outlined-border-width, 1px);--_icon-button-outlined-border-style:var(--forge-icon-button-outlined-border-style, solid);--_icon-button-outlined-border-color:var(--forge-icon-button-outlined-border-color, var(--_icon-button-icon-color));--_icon-button-tonal-icon-color:var(--forge-icon-button-tonal-icon-color, var(--forge-theme-on-primary-container, #222c62));--_icon-button-tonal-background-color:var(--forge-icon-button-tonal-background-color, var(--forge-theme-primary-container, #d1d5ed));--_icon-button-filled-icon-color:var(--forge-icon-button-filled-icon-color, var(--forge-theme-on-primary, #ffffff));--_icon-button-filled-background-color:var(--forge-icon-button-filled-background-color, var(--forge-theme-primary, #3f51b5));--_icon-button-raised-shadow:var(--forge-icon-button-raised-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12));--_icon-button-raised-hover-shadow:var(--forge-icon-button-raised-hover-shadow, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12));--_icon-button-raised-active-shadow:var(--forge-icon-button-raised-active-shadow, 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12));--_icon-button-raised-disabled-shadow:var(--forge-icon-button-raised-disabled-shadow, none);--_icon-button-density-small-size:var(--forge-icon-button-density-small-size, 24px);--_icon-button-density-small-padding:var(--forge-icon-button-density-small-padding, var(--forge-spacing-xxxsmall, 2px));--_icon-button-density-small-icon-size:var(--forge-icon-button-density-small-icon-size, calc(var(--forge-typography-font-size, 1rem) * 1.125));--_icon-button-density-medium-size:var(--forge-icon-button-density-medium-size, 36px);--_icon-button-density-medium-padding:var(--forge-icon-button-density-medium-padding, var(--forge-spacing-xxsmall, 4px));--_icon-button-density-large-size:var(--forge-icon-button-density-large-size, var(--_icon-button-size));--_icon-button-toggle-on-background-color:var(--forge-icon-button-toggle-on-background-color, var(--forge-theme-primary-container, #d1d5ed));--_icon-button-toggle-on-icon-color:var(--forge-icon-button-toggle-on-icon-color, var(--forge-theme-primary, #3f51b5));--_icon-button-outlined-toggle-on-background-color:var(--forge-icon-button-outlined-toggle-on-background-color, var(--forge-theme-primary-container, #d1d5ed));--_icon-button-outlined-toggle-on-icon-color:var(--forge-icon-button-outlined-toggle-on-icon-color, var(--forge-theme-primary, #3f51b5));--_icon-button-tonal-toggle-background-color:var(--forge-icon-button-tonal-toggle-background-color, var(--forge-theme-surface-container-low, #ebebeb));--_icon-button-tonal-toggle-on-background-color:var(--forge-icon-button-tonal-toggle-on-background-color, var(--forge-theme-primary-container, #d1d5ed));--_icon-button-tonal-toggle-on-icon-color:var(--forge-icon-button-tonal-toggle-on-icon-color, var(--forge-theme-primary, #3f51b5));--_icon-button-filled-toggle-background-color:var(--forge-icon-button-filled-toggle-background-color, var(--forge-theme-surface-container-low, #ebebeb));--_icon-button-filled-toggle-icon-color:var(--forge-icon-button-filled-toggle-icon-color, var(--forge-theme-primary, #3f51b5));--_icon-button-filled-toggle-on-background-color:var(--forge-icon-button-filled-toggle-on-background-color, var(--forge-theme-primary, #3f51b5));--_icon-button-filled-toggle-on-icon-color:var(--forge-icon-button-filled-toggle-on-icon-color, var(--forge-theme-on-primary, #ffffff));--_icon-button-disabled-opacity:var(--forge-icon-button-disabled-opacity, 0.38);--_icon-button-popover-icon-padding:var(--forge-icon-button-popover-icon-padding, var(--forge-spacing-xsmall, 8px));--_icon-button-focus-indicator-color:var(--forge-icon-button-focus-indicator-color, var(--forge-theme-primary, #3f51b5))}.forge-icon-button{position:relative;z-index:0;display:var(--_icon-button-display);align-items:center;justify-content:center;gap:var(--_icon-button-gap);box-sizing:border-box;height:var(--_icon-button-density-large-size);min-width:var(--_icon-button-density-large-size);border:var(--_icon-button-border);border-start-start-radius:var(--_icon-button-shape-start-start);border-start-end-radius:var(--_icon-button-shape-start-end);border-end-start-radius:var(--_icon-button-shape-end-start);border-end-end-radius:var(--_icon-button-shape-end-end);padding:var(--_icon-button-padding);box-shadow:var(--_icon-button-shadow);color:var(--_icon-button-icon-color);background:var(--_icon-button-background-color);font-size:var(--_icon-button-icon-size);cursor:var(--_icon-button-cursor);user-select:none;transition-property:box-shadow,background;transition-duration:var(--_icon-button-transition-duration);transition-timing-function:var(--_icon-button-transition-timing)}.forge-icon-button ::slotted(:is([slot=start],[slot=end])){font-size:var(--_icon-button-icon-size);height:var(--_icon-button-icon-size);width:var(--_icon-button-icon-size);font-weight:inherit}::slotted(a){height:100%;width:100%;outline:0;border-radius:var(--_icon-button-shape);padding-inline:var(--_icon-button-padding);display:flex;align-items:center;justify-content:center;gap:var(--_icon-button-gap);color:var(--_icon-button-icon-color);text-decoration:none}forge-focus-indicator{--forge-focus-indicator-color:var(--_icon-button-focus-indicator-color);--forge-focus-indicator-shape-start-start:var(--_icon-button-shape-start-start);--forge-focus-indicator-shape-start-end:var(--_icon-button-shape-start-end);--forge-focus-indicator-shape-end-start:var(--_icon-button-shape-end-start);--forge-focus-indicator-shape-end-end:var(--_icon-button-shape-end-end)}:host(:is([variant=icon],:not([variant]))){--forge-focus-indicator-outward-offset:0px}forge-state-layer{--forge-state-layer-color:var(--_icon-button-icon-color)}:host([popover-icon]) .forge-icon-button{--_icon-button-padding:var(--_icon-button-popover-icon-padding)}:host([variant=outlined]) .forge-icon-button{border-width:var(--_icon-button-outlined-border-width);border-style:var(--_icon-button-outlined-border-style);border-color:var(--_icon-button-outlined-border-color)}:host([variant=tonal]) .forge-icon-button{--_icon-button-icon-color:var(--_icon-button-tonal-icon-color);--_icon-button-background-color:var(--_icon-button-tonal-background-color)}:host(:is([variant=filled],[variant=raised])) .forge-icon-button{--_icon-button-icon-color:var(--_icon-button-filled-icon-color);--_icon-button-background-color:var(--_icon-button-filled-background-color)}:host([variant=raised]) .forge-icon-button{--_icon-button-shadow:var(--_icon-button-raised-shadow)}:host([variant=raised]) .forge-icon-button:hover{--_icon-button-raised-shadow:var(--_icon-button-raised-hover-shadow)}:host([variant=raised]) .forge-icon-button:active{--_icon-button-raised-shadow:var(--_icon-button-raised-active-shadow)}:host(:is(:not([toggle]),[toggle]:not([pressed]))) slot[name=on]{display:none}:host([toggle][pressed]) slot:not([name]){display:none}:host([toggle][pressed]:is(:not([variant]),[variant=icon])) .forge-icon-button{--_icon-button-background-color:var(--_icon-button-toggle-on-background-color);--_icon-button-icon-color:var(--_icon-button-toggle-on-icon-color)}:host([toggle][pressed][variant=outlined]) .forge-icon-button{--_icon-button-background-color:var(--_icon-button-outlined-toggle-on-background-color);--_icon-button-icon-color:var(--_icon-button-outlined-toggle-on-icon-color)}:host([toggle]:not([pressed])[variant=tonal]) .forge-icon-button{--_icon-button-background-color:var(--_icon-button-tonal-toggle-background-color)}:host([toggle][pressed][variant=tonal]) .forge-icon-button{--_icon-button-icon-color:var(--_icon-button-tonal-toggle-on-icon-color);--_icon-button-background-color:var(--_icon-button-tonal-toggle-on-background-color)}:host([toggle]:not([pressed]):is([variant=filled],[variant=raised])) .forge-icon-button{--_icon-button-icon-color:var(--_icon-button-filled-toggle-icon-color);--_icon-button-background-color:var(--_icon-button-filled-toggle-background-color)}:host([toggle][pressed]:is([variant=filled],[variant=raised])) .forge-icon-button{--_icon-button-icon-color:var(--_icon-button-filled-toggle-on-icon-color);--_icon-button-background-color:var(--_icon-button-filled-toggle-on-background-color)}::slotted([slot=badge]){position:absolute;top:0;left:60%;z-index:1;pointer-events:none}::slotted(forge-badge[slot=badge][dot]){top:8px}:host(:is([dense],[density=small],[density=medium])) ::slotted(forge-badge[slot=badge]:not([dot])){top:-25%}:host(:is([dense],[density=small],[density=medium])) ::slotted(forge-badge[slot=badge][dot]){top:0}:host(:is([dense],[density=small])) ::slotted(forge-badge[slot=badge]){--forge-typography-label1-line-height:normal;--forge-badge-height:auto}::slotted(forge-circular-progress){--forge-circular-progress-indicator-color:var(--_icon-button-icon-color);--forge-circular-progress-track-color:transparent;--forge-circular-progress-size:1em}:host(:is([dense],[density=small])) .forge-icon-button{--_icon-button-size:var(--_icon-button-density-small-size);--_icon-button-icon-size:var(--_icon-button-density-small-icon-size);--_icon-button-padding:var(--_icon-button-density-small-padding)}:host(:is([dense],[density=small])) ::slotted(*){font-size:var(--_icon-button-density-small-icon-size)}:host([density=medium]) .forge-icon-button{--_icon-button-size:var(--_icon-button-density-medium-size);--_icon-button-padding:var(--_icon-button-density-medium-padding)}:host([shape=squared]) .forge-icon-button{--_icon-button-shape:var(--_icon-button-shape-squared)}:host([disabled]){cursor:var(--_icon-button-disabled-cursor)}:host([disabled]) .forge-icon-button{pointer-events:none;opacity:var(--_icon-button-disabled-opacity)}:host([disabled][variant=raised]) .forge-icon-button{--_icon-button-raised-shadow:var(--_icon-button-raised-disabled-shadow)}:host(:not([toggle])[theme=primary]:is(:not([variant]),[variant=icon],[variant=outlined])) .forge-icon-button{--_icon-button-icon-color:var(--forge-icon-button-icon-color, var(--forge-theme-primary, #3f51b5))}:host([toggle][theme=primary]:is(:not([variant]),[variant=icon])) .forge-icon-button{--_icon-button-toggle-on-icon-color:var(--forge-icon-button-toggle-on-icon-color, var(--forge-theme-primary, #3f51b5))}:host([toggle][theme=primary][variant=outlined]) .forge-icon-button{--_icon-button-icon-color:var(--forge-icon-button-icon-color, var(--forge-theme-primary, #3f51b5));--_icon-button-outlined-toggle-on-background-color:var(--forge-icon-button-outlined-toggle-on-background-color, var(--forge-theme-primary-container, #d1d5ed));--_icon-button-outlined-toggle-on-icon-color:var(--forge-icon-button-outlined-toggle-on-icon-color, var(--forge-theme-primary, #3f51b5))}:host([theme=primary]) .forge-icon-button{--_icon-button-focus-indicator-color:var(--forge-icon-button-focus-indicator-color, var(--forge-theme-primary, #3f51b5))}:host(:not([toggle])[theme=secondary]:is(:not([variant]),[variant=icon],[variant=outlined])) .forge-icon-button{--_icon-button-icon-color:var(--forge-icon-button-icon-color, var(--forge-theme-secondary, #ffc107))}:host([toggle][theme=secondary]:is(:not([variant]),[variant=icon])) .forge-icon-button{--_icon-button-toggle-on-icon-color:var(--forge-icon-button-toggle-on-icon-color, var(--forge-theme-secondary, #ffc107))}:host([toggle][theme=secondary][variant=outlined]) .forge-icon-button{--_icon-button-icon-color:var(--forge-icon-button-icon-color, var(--forge-theme-secondary, #ffc107));--_icon-button-outlined-toggle-on-background-color:var(--forge-icon-button-outlined-toggle-on-background-color, var(--forge-theme-secondary-container, #fff0c3));--_icon-button-outlined-toggle-on-icon-color:var(--forge-icon-button-outlined-toggle-on-icon-color, var(--forge-theme-secondary, #ffc107))}:host(:not([toggle])[theme=secondary][variant=tonal]) .forge-icon-button{--_icon-button-icon-color:var(--forge-icon-button-icon-color, var(--forge-theme-on-secondary-container, #8a6804));--_icon-button-background-color:var(--forge-icon-button-background-color, var(--forge-theme-secondary-container, #fff0c3))}:host([toggle]:not([pressed])[theme=secondary][variant=tonal]) .forge-icon-button{--_icon-button-background-color:var(--forge-icon-button-background-color, var(--forge-theme-secondary-container, #fff0c3))}:host([toggle][theme=secondary][variant=tonal]) .forge-icon-button{--_icon-button-tonal-toggle-on-background-color:var(--forge-icon-button-tonal-toggle-on-background-color, var(--forge-theme-secondary-container, #fff0c3));--_icon-button-tonal-toggle-on-icon-color:var(--forge-icon-button-tonal-toggle-on-icon-color, var(--forge-theme-on-secondary-container, #8a6804))}:host(:not([toggle])[theme=secondary]:is([variant=filled],[variant=raised])) .forge-icon-button{--_icon-button-icon-color:var(--forge-icon-button-icon-color, var(--forge-theme-on-secondary, #000000));--_icon-button-background-color:var(--forge-icon-button-background-color, var(--forge-theme-secondary, #ffc107))}:host([toggle]:not([pressed])[theme=secondary]:is([variant=filled],[variant=raised])) .forge-icon-button{--_icon-button-icon-color:var(--forge-icon-button-icon-color, var(--forge-theme-secondary, #ffc107));--_icon-button-background-color:var(--forge-icon-button-background-color, var(--forge-theme-secondary-container, #fff0c3))}:host([toggle][theme=secondary]:is([variant=filled],[variant=raised])) .forge-icon-button{--_icon-button-filled-toggle-on-background-color:var(--forge-icon-button-filled-toggle-on-background-color, var(--forge-theme-secondary, #ffc107));--_icon-button-filled-toggle-on-icon-color:var(--forge-icon-button-filled-toggle-on-icon-color, var(--forge-theme-on-secondary, #000000))}:host([theme=secondary]) .forge-icon-button{--_icon-button-focus-indicator-color:var(--forge-icon-button-focus-indicator-color, var(--forge-theme-secondary, #ffc107))}:host(:not([toggle])[theme=tertiary]:is(:not([variant]),[variant=icon],[variant=outlined])) .forge-icon-button{--_icon-button-icon-color:var(--forge-icon-button-icon-color, var(--forge-theme-tertiary, #3d5afe))}:host([toggle][theme=tertiary]:is(:not([variant]),[variant=icon])) .forge-icon-button{--_icon-button-toggle-on-icon-color:var(--forge-icon-button-toggle-on-icon-color, var(--forge-theme-tertiary, #3d5afe))}:host([toggle][theme=tertiary][variant=outlined]) .forge-icon-button{--_icon-button-icon-color:var(--forge-icon-button-icon-color, var(--forge-theme-tertiary, #3d5afe));--_icon-button-outlined-toggle-on-background-color:var(--forge-icon-button-outlined-toggle-on-background-color, var(--forge-theme-tertiary-container, #d0d7ff));--_icon-button-outlined-toggle-on-icon-color:var(--forge-icon-button-outlined-toggle-on-icon-color, var(--forge-theme-tertiary, #3d5afe))}:host(:not([toggle])[theme=tertiary][variant=tonal]) .forge-icon-button{--_icon-button-icon-color:var(--forge-icon-button-icon-color, var(--forge-theme-on-tertiary-container, #213189));--_icon-button-background-color:var(--forge-icon-button-background-color, var(--forge-theme-tertiary-container, #d0d7ff))}:host([toggle]:not([pressed])[theme=tertiary][variant=tonal]) .forge-icon-button{--_icon-button-background-color:var(--forge-icon-button-background-color, var(--forge-theme-tertiary-container, #d0d7ff))}:host([toggle][theme=tertiary][variant=tonal]) .forge-icon-button{--_icon-button-tonal-toggle-on-background-color:var(--forge-icon-button-tonal-toggle-on-background-color, var(--forge-theme-tertiary-container, #d0d7ff));--_icon-button-tonal-toggle-on-icon-color:var(--forge-icon-button-tonal-toggle-on-icon-color, var(--forge-theme-on-tertiary-container, #213189))}:host(:not([toggle])[theme=tertiary]:is([variant=filled],[variant=raised])) .forge-icon-button{--_icon-button-icon-color:var(--forge-icon-button-icon-color, var(--forge-theme-on-tertiary, #ffffff));--_icon-button-background-color:var(--forge-icon-button-background-color, var(--forge-theme-tertiary, #3d5afe))}:host([toggle]:not([pressed])[theme=tertiary]:is([variant=filled],[variant=raised])) .forge-icon-button{--_icon-button-icon-color:var(--forge-icon-button-icon-color, var(--forge-theme-tertiary, #3d5afe));--_icon-button-background-color:var(--forge-icon-button-background-color, var(--forge-theme-tertiary-container, #d0d7ff))}:host([toggle][theme=tertiary]:is([variant=filled],[variant=raised])) .forge-icon-button{--_icon-button-filled-toggle-on-background-color:var(--forge-icon-button-filled-toggle-on-background-color, var(--forge-theme-tertiary, #3d5afe));--_icon-button-filled-toggle-on-icon-color:var(--forge-icon-button-filled-toggle-on-icon-color, var(--forge-theme-on-tertiary, #ffffff))}:host([theme=tertiary]) .forge-icon-button{--_icon-button-focus-indicator-color:var(--forge-icon-button-focus-indicator-color, var(--forge-theme-tertiary, #3d5afe))}:host(:not([toggle])[theme=success]:is(:not([variant]),[variant=icon],[variant=outlined])) .forge-icon-button{--_icon-button-icon-color:var(--forge-icon-button-icon-color, var(--forge-theme-success, #2e7d32))}:host([toggle][theme=success]:is(:not([variant]),[variant=icon])) .forge-icon-button{--_icon-button-toggle-on-icon-color:var(--forge-icon-button-toggle-on-icon-color, var(--forge-theme-success, #2e7d32))}:host([toggle][theme=success][variant=outlined]) .forge-icon-button{--_icon-button-icon-color:var(--forge-icon-button-icon-color, var(--forge-theme-success, #2e7d32));--_icon-button-outlined-toggle-on-background-color:var(--forge-icon-button-outlined-toggle-on-background-color, var(--forge-theme-success-container, #cde0ce));--_icon-button-outlined-toggle-on-icon-color:var(--forge-icon-button-outlined-toggle-on-icon-color, var(--forge-theme-success, #2e7d32))}:host(:not([toggle])[theme=success][variant=tonal]) .forge-icon-button{--_icon-button-icon-color:var(--forge-icon-button-icon-color, var(--forge-theme-on-success-container, #19441b));--_icon-button-background-color:var(--forge-icon-button-background-color, var(--forge-theme-success-container, #cde0ce))}:host([toggle]:not([pressed])[theme=success][variant=tonal]) .forge-icon-button{--_icon-button-background-color:var(--forge-icon-button-background-color, var(--forge-theme-success-container, #cde0ce))}:host([toggle][theme=success][variant=tonal]) .forge-icon-button{--_icon-button-tonal-toggle-on-background-color:var(--forge-icon-button-tonal-toggle-on-background-color, var(--forge-theme-success-container, #cde0ce));--_icon-button-tonal-toggle-on-icon-color:var(--forge-icon-button-tonal-toggle-on-icon-color, var(--forge-theme-on-success-container, #19441b))}:host(:not([toggle])[theme=success]:is([variant=filled],[variant=raised])) .forge-icon-button{--_icon-button-icon-color:var(--forge-icon-button-icon-color, var(--forge-theme-on-success, #ffffff));--_icon-button-background-color:var(--forge-icon-button-background-color, var(--forge-theme-success, #2e7d32))}:host([toggle]:not([pressed])[theme=success]:is([variant=filled],[variant=raised])) .forge-icon-button{--_icon-button-icon-color:var(--forge-icon-button-icon-color, var(--forge-theme-success, #2e7d32));--_icon-button-background-color:var(--forge-icon-button-background-color, var(--forge-theme-success-container, #cde0ce))}:host([toggle][theme=success]:is([variant=filled],[variant=raised])) .forge-icon-button{--_icon-button-filled-toggle-on-background-color:var(--forge-icon-button-filled-toggle-on-background-color, var(--forge-theme-success, #2e7d32));--_icon-button-filled-toggle-on-icon-color:var(--forge-icon-button-filled-toggle-on-icon-color, var(--forge-theme-on-success, #ffffff))}:host([theme=success]) .forge-icon-button{--_icon-button-focus-indicator-color:var(--forge-icon-button-focus-indicator-color, var(--forge-theme-success, #2e7d32))}:host(:not([toggle])[theme=error]:is(:not([variant]),[variant=icon],[variant=outlined])) .forge-icon-button{--_icon-button-icon-color:var(--forge-icon-button-icon-color, var(--forge-theme-error, #b00020))}:host([toggle][theme=error]:is(:not([variant]),[variant=icon])) .forge-icon-button{--_icon-button-toggle-on-icon-color:var(--forge-icon-button-toggle-on-icon-color, var(--forge-theme-error, #b00020))}:host([toggle][theme=error][variant=outlined]) .forge-icon-button{--_icon-button-icon-color:var(--forge-icon-button-icon-color, var(--forge-theme-error, #b00020));--_icon-button-outlined-toggle-on-background-color:var(--forge-icon-button-outlined-toggle-on-background-color, var(--forge-theme-error-container, #ecc2c9));--_icon-button-outlined-toggle-on-icon-color:var(--forge-icon-button-outlined-toggle-on-icon-color, var(--forge-theme-error, #b00020))}:host(:not([toggle])[theme=error][variant=tonal]) .forge-icon-button{--_icon-button-icon-color:var(--forge-icon-button-icon-color, var(--forge-theme-on-error-container, #5f0011));--_icon-button-background-color:var(--forge-icon-button-background-color, var(--forge-theme-error-container, #ecc2c9))}:host([toggle]:not([pressed])[theme=error][variant=tonal]) .forge-icon-button{--_icon-button-background-color:var(--forge-icon-button-background-color, var(--forge-theme-error-container, #ecc2c9))}:host([toggle][theme=error][variant=tonal]) .forge-icon-button{--_icon-button-tonal-toggle-on-background-color:var(--forge-icon-button-tonal-toggle-on-background-color, var(--forge-theme-error-container, #ecc2c9));--_icon-button-tonal-toggle-on-icon-color:var(--forge-icon-button-tonal-toggle-on-icon-color, var(--forge-theme-on-error-container, #5f0011))}:host(:not([toggle])[theme=error]:is([variant=filled],[variant=raised])) .forge-icon-button{--_icon-button-icon-color:var(--forge-icon-button-icon-color, var(--forge-theme-on-error, #ffffff));--_icon-button-background-color:var(--forge-icon-button-background-color, var(--forge-theme-error, #b00020))}:host([toggle]:not([pressed])[theme=error]:is([variant=filled],[variant=raised])) .forge-icon-button{--_icon-button-icon-color:var(--forge-icon-button-icon-color, var(--forge-theme-error, #b00020));--_icon-button-background-color:var(--forge-icon-button-background-color, var(--forge-theme-error-container, #ecc2c9))}:host([toggle][theme=error]:is([variant=filled],[variant=raised])) .forge-icon-button{--_icon-button-filled-toggle-on-background-color:var(--forge-icon-button-filled-toggle-on-background-color, var(--forge-theme-error, #b00020));--_icon-button-filled-toggle-on-icon-color:var(--forge-icon-button-filled-toggle-on-icon-color, var(--forge-theme-on-error, #ffffff))}:host([theme=error]) .forge-icon-button{--_icon-button-focus-indicator-color:var(--forge-icon-button-focus-indicator-color, var(--forge-theme-error, #b00020))}:host(:not([toggle])[theme=warning]:is(:not([variant]),[variant=icon],[variant=outlined])) .forge-icon-button{--_icon-button-icon-color:var(--forge-icon-button-icon-color, var(--forge-theme-warning, #d14900))}:host([toggle][theme=warning]:is(:not([variant]),[variant=icon])) .forge-icon-button{--_icon-button-toggle-on-icon-color:var(--forge-icon-button-toggle-on-icon-color, var(--forge-theme-warning, #d14900))}:host([toggle][theme=warning][variant=outlined]) .forge-icon-button{--_icon-button-icon-color:var(--forge-icon-button-icon-color, var(--forge-theme-warning, #d14900));--_icon-button-outlined-toggle-on-background-color:var(--forge-icon-button-outlined-toggle-on-background-color, var(--forge-theme-warning-container, #f4d3c2));--_icon-button-outlined-toggle-on-icon-color:var(--forge-icon-button-outlined-toggle-on-icon-color, var(--forge-theme-warning, #d14900))}:host(:not([toggle])[theme=warning][variant=tonal]) .forge-icon-button{--_icon-button-icon-color:var(--forge-icon-button-icon-color, var(--forge-theme-on-warning-container, #712700));--_icon-button-background-color:var(--forge-icon-button-background-color, var(--forge-theme-warning-container, #f4d3c2))}:host([toggle]:not([pressed])[theme=warning][variant=tonal]) .forge-icon-button{--_icon-button-background-color:var(--forge-icon-button-background-color, var(--forge-theme-warning-container, #f4d3c2))}:host([toggle][theme=warning][variant=tonal]) .forge-icon-button{--_icon-button-tonal-toggle-on-background-color:var(--forge-icon-button-tonal-toggle-on-background-color, var(--forge-theme-warning-container, #f4d3c2));--_icon-button-tonal-toggle-on-icon-color:var(--forge-icon-button-tonal-toggle-on-icon-color, var(--forge-theme-on-warning-container, #712700))}:host(:not([toggle])[theme=warning]:is([variant=filled],[variant=raised])) .forge-icon-button{--_icon-button-icon-color:var(--forge-icon-button-icon-color, var(--forge-theme-on-warning, #ffffff));--_icon-button-background-color:var(--forge-icon-button-background-color, var(--forge-theme-warning, #d14900))}:host([toggle]:not([pressed])[theme=warning]:is([variant=filled],[variant=raised])) .forge-icon-button{--_icon-button-icon-color:var(--forge-icon-button-icon-color, var(--forge-theme-warning, #d14900));--_icon-button-background-color:var(--forge-icon-button-background-color, var(--forge-theme-warning-container, #f4d3c2))}:host([toggle][theme=warning]:is([variant=filled],[variant=raised])) .forge-icon-button{--_icon-button-filled-toggle-on-background-color:var(--forge-icon-button-filled-toggle-on-background-color, var(--forge-theme-warning, #d14900));--_icon-button-filled-toggle-on-icon-color:var(--forge-icon-button-filled-toggle-on-icon-color, var(--forge-theme-on-warning, #ffffff))}:host([theme=warning]) .forge-icon-button{--_icon-button-focus-indicator-color:var(--forge-icon-button-focus-indicator-color, var(--forge-theme-warning, #d14900))}:host(:not([toggle])[theme=info]:is(:not([variant]),[variant=icon],[variant=outlined])) .forge-icon-button{--_icon-button-icon-color:var(--forge-icon-button-icon-color, var(--forge-theme-info, #1565c0))}:host([toggle][theme=info]:is(:not([variant]),[variant=icon])) .forge-icon-button{--_icon-button-toggle-on-icon-color:var(--forge-icon-button-toggle-on-icon-color, var(--forge-theme-info, #1565c0))}:host([toggle][theme=info][variant=outlined]) .forge-icon-button{--_icon-button-icon-color:var(--forge-icon-button-icon-color, var(--forge-theme-info, #1565c0));--_icon-button-outlined-toggle-on-background-color:var(--forge-icon-button-outlined-toggle-on-background-color, var(--forge-theme-info-container, #c7daf0));--_icon-button-outlined-toggle-on-icon-color:var(--forge-icon-button-outlined-toggle-on-icon-color, var(--forge-theme-info, #1565c0))}:host(:not([toggle])[theme=info][variant=tonal]) .forge-icon-button{--_icon-button-icon-color:var(--forge-icon-button-icon-color, var(--forge-theme-on-info-container, #0b3768));--_icon-button-background-color:var(--forge-icon-button-background-color, var(--forge-theme-info-container, #c7daf0))}:host([toggle]:not([pressed])[theme=info][variant=tonal]) .forge-icon-button{--_icon-button-background-color:var(--forge-icon-button-background-color, var(--forge-theme-info-container, #c7daf0))}:host([toggle][theme=info][variant=tonal]) .forge-icon-button{--_icon-button-tonal-toggle-on-background-color:var(--forge-icon-button-tonal-toggle-on-background-color, var(--forge-theme-info-container, #c7daf0));--_icon-button-tonal-toggle-on-icon-color:var(--forge-icon-button-tonal-toggle-on-icon-color, var(--forge-theme-on-info-container, #0b3768))}:host(:not([toggle])[theme=info]:is([variant=filled],[variant=raised])) .forge-icon-button{--_icon-button-icon-color:var(--forge-icon-button-icon-color, var(--forge-theme-on-info, #ffffff));--_icon-button-background-color:var(--forge-icon-button-background-color, var(--forge-theme-info, #1565c0))}:host([toggle]:not([pressed])[theme=info]:is([variant=filled],[variant=raised])) .forge-icon-button{--_icon-button-icon-color:var(--forge-icon-button-icon-color, var(--forge-theme-info, #1565c0));--_icon-button-background-color:var(--forge-icon-button-background-color, var(--forge-theme-info-container, #c7daf0))}:host([toggle][theme=info]:is([variant=filled],[variant=raised])) .forge-icon-button{--_icon-button-filled-toggle-on-background-color:var(--forge-icon-button-filled-toggle-on-background-color, var(--forge-theme-info, #1565c0));--_icon-button-filled-toggle-on-icon-color:var(--forge-icon-button-filled-toggle-on-icon-color, var(--forge-theme-on-info, #ffffff))}:host([theme=info]) .forge-icon-button{--_icon-button-focus-indicator-color:var(--forge-icon-button-focus-indicator-color, var(--forge-theme-info, #1565c0))}",n1=class extends Wt{static get observedAttributes(){return[...Object.values(v2.observedAttributes),...Object.values(J.observedAttributes)]}constructor(){super(),H(this,G7,Y7),this._core=new An(new Bn(this))}attributeChangedCallback(t,e,a){switch(t){case J.attributes.TOGGLE:this.toggle=p(a);break;case J.attributes.PRESSED:case J.attributes.ON:this.pressed=p(a);break;case J.attributes.VARIANT:this.variant=a;break;case J.attributes.THEME:this.theme=a;break;case J.attributes.SHAPE:this.shape=a;break;case J.attributes.DENSITY:this.density=a;break}super.attributeChangedCallback(t,e,a)}};s([v()],n1.prototype,"toggle",2),s([v()],n1.prototype,"pressed",2),s([v({name:"pressed"})],n1.prototype,"on",2),s([v()],n1.prototype,"theme",2),s([v()],n1.prototype,"variant",2),s([v()],n1.prototype,"shape",2),s([v()],n1.prototype,"density",2),n1=s([y({name:J.elementName,dependencies:[Q,r1,X]})],n1);var mv=class extends X1{constructor(t){super(t)}_build(){var e;let t=document.createElement(J.elementName);if((e=this._config.options)!=null&&e.tooltip){let a=document.createElement("forge-tooltip");a.textContent=this._config.options.tooltip,this._config.options.tooltipPosition&&(a.placement=this._config.options.tooltipPosition),t.appendChild(a)}return t}get iconElement(){return this._iconElement}get disabled(){return!!this._element.disabled}set disabled(t){this._element.disabled=t}_configure(){this._configureIcon()}_configureIcon(){var e,a;if(!((e=this._config.options)!=null&&e.iconName))return;switch(((a=this._config.options)==null?void 0:a.iconType)||"component"){case"font":let o=Array.isArray(this._config.options.iconClass)?this._config.options.iconClass:[ke];y1(o,this._element),this._element.textContent=this._config.options.iconName;break;case"component":this._iconElement=document.createElement(h1.elementName),this._iconElement.name=this._config.options.iconName,this._config.options.iconExternal!==void 0&&(this._iconElement.external=!!this._config.options.iconExternal),this._config.options.iconExternalType&&(this._iconElement.externalType=this._config.options.iconExternalType),this._config.options.iconClass&&y1(this._config.options.iconClass,this._iconElement),this._element.appendChild(this._iconElement);break}}onClick(t){this._element.addEventListener("click",t)}onFocus(t){this._element.addEventListener("focus",e=>t(e))}onBlur(t){this._element.addEventListener("blur",e=>t(e))}};function gv(){x(n1)}var wv=["top","right","bottom","left"];var F0=Math.min,c0=Math.max,tr=Math.round,er=Math.floor,ye=r=>({x:r,y:r}),K7={left:"right",right:"left",bottom:"top",top:"bottom"},q7={start:"end",end:"start"};function Sn(r,t,e){return c0(r,F0(t,e))}function _a(r,t){return typeof r=="function"?r(t):r}function U0(r){return r.split("-")[0]}function eo(r){return r.split("-")[1]}function s4(r){return r==="x"?"y":"x"}function kn(r){return r==="y"?"height":"width"}function fa(r){return["top","bottom"].includes(U0(r))?"y":"x"}function On(r){return s4(fa(r))}function uv(r,t,e){e===void 0&&(e=!1);let a=eo(r),o=On(r),n=kn(o),i=o==="x"?a===(e?"end":"start")?"right":"left":a==="start"?"bottom":"top";return t.reference[n]>t.floating[n]&&(i=Jo(i)),[i,Jo(i)]}function _v(r){let t=Jo(r);return[Tn(r),t,Tn(t)]}function Tn(r){return r.replace(/start|end/g,t=>q7[t])}function $7(r,t,e){let a=["left","right"],o=["right","left"],n=["top","bottom"],i=["bottom","top"];switch(r){case"top":case"bottom":return e?t?o:a:t?a:o;case"left":case"right":return t?n:i;default:return[]}}function fv(r,t,e,a){let o=eo(r),n=$7(U0(r),e==="start",a);return o&&(n=n.map(i=>i+"-"+o),t&&(n=n.concat(n.map(Tn)))),n}function Jo(r){return r.replace(/left|right|bottom|top/g,t=>K7[t])}function X7(r){return w({top:0,right:0,bottom:0,left:0},r)}function l4(r){return typeof r!="number"?X7(r):{top:r,right:r,bottom:r,left:r}}function xa(r){let{x:t,y:e,width:a,height:o}=r;return{width:a,height:o,top:e,left:t,right:t+a,bottom:e+o,x:t,y:e}}function xv(r,t,e){let{reference:a,floating:o}=r,n=fa(t),i=On(t),l=kn(i),h=U0(t),c=n==="y",d=a.x+a.width/2-o.width/2,u=a.y+a.height/2-o.height/2,_=a[l]/2-o[l]/2,L;switch(h){case"top":L={x:d,y:a.y-o.height};break;case"bottom":L={x:d,y:a.y+a.height};break;case"right":L={x:a.x+a.width,y:u};break;case"left":L={x:a.x-o.width,y:u};break;default:L={x:a.x,y:a.y}}switch(eo(t)){case"start":L[i]-=_*(e&&c?-1:1);break;case"end":L[i]+=_*(e&&c?-1:1);break}return L}var Mv=async(r,t,e)=>{let{placement:a="bottom",strategy:o="absolute",middleware:n=[],platform:i}=e,l=n.filter(Boolean),h=await(i.isRTL==null?void 0:i.isRTL(t)),c=await i.getElementRects({reference:r,floating:t,strategy:o}),{x:d,y:u}=xv(c,a,h),_=a,L={},C=0;for(let A=0;A<l.length;A++){let{name:z,fn:c1}=l[A],{x:b1,y:x1,data:K1,reset:U1}=await c1({x:d,y:u,initialPlacement:a,placement:_,strategy:o,middlewareData:L,rects:c,platform:i,elements:{reference:r,floating:t}});d=b1!=null?b1:d,u=x1!=null?x1:u,L=t1(w({},L),{[z]:w(w({},L[z]),K1)}),U1&&C<=50&&(C++,typeof U1=="object"&&(U1.placement&&(_=U1.placement),U1.rects&&(c=U1.rects===!0?await i.getElementRects({reference:r,floating:t,strategy:o}):U1.rects),{x:d,y:u}=xv(c,_,h)),A=-1)}return{x:d,y:u,placement:_,strategy:o,middlewareData:L}};async function ar(r,t){var e;t===void 0&&(t={});let{x:a,y:o,platform:n,rects:i,elements:l,strategy:h}=r,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:_=!1,padding:L=0}=_a(t,r),C=l4(L),z=l[_?u==="floating"?"reference":"floating":u],c1=xa(await n.getClippingRect({element:(e=await(n.isElement==null?void 0:n.isElement(z)))==null||e?z:z.contextElement||await(n.getDocumentElement==null?void 0:n.getDocumentElement(l.floating)),boundary:c,rootBoundary:d,strategy:h})),b1=u==="floating"?{x:a,y:o,width:i.floating.width,height:i.floating.height}:i.reference,x1=await(n.getOffsetParent==null?void 0:n.getOffsetParent(l.floating)),K1=await(n.isElement==null?void 0:n.isElement(x1))?await(n.getScale==null?void 0:n.getScale(x1))||{x:1,y:1}:{x:1,y:1},U1=xa(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:b1,offsetParent:x1,strategy:h}):b1);return{top:(c1.top-U1.top+C.top)/K1.y,bottom:(U1.bottom-c1.bottom+C.bottom)/K1.y,left:(c1.left-U1.left+C.left)/K1.x,right:(U1.right-c1.right+C.right)/K1.x}}var Hv=r=>({name:"arrow",options:r,async fn(t){let{x:e,y:a,placement:o,rects:n,platform:i,elements:l,middlewareData:h}=t,{element:c,padding:d=0}=_a(r,t)||{};if(c==null)return{};let u=l4(d),_={x:e,y:a},L=On(o),C=kn(L),A=await i.getDimensions(c),z=L==="y",c1=z?"top":"left",b1=z?"bottom":"right",x1=z?"clientHeight":"clientWidth",K1=n.reference[C]+n.reference[L]-_[L]-n.floating[C],U1=_[L]-n.reference[L],q2=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c)),Dt=q2?q2[x1]:0;(!Dt||!await(i.isElement==null?void 0:i.isElement(q2)))&&(Dt=l.floating[x1]||n.floating[C]);let M0=K1/2-U1/2,mt=Dt/2-A[C]/2-1,Ht=F0(u[c1],mt),Ze=F0(u[b1],mt),me=Ht,Qe=Dt-A[C]-Ze,qt=Dt/2-A[C]/2+M0,ge=Sn(me,qt,Qe),Oa=!h.arrow&&eo(o)!=null&&qt!==ge&&n.reference[C]/2-(qt<me?Ht:Ze)-A[C]/2<0,Je=Oa?qt<me?qt-me:qt-Qe:0;return{[L]:_[L]+Je,data:w({[L]:ge,centerOffset:qt-ge-Je},Oa&&{alignmentOffset:Je}),reset:Oa}}});var Lv=function(r){return r===void 0&&(r={}),{name:"flip",options:r,async fn(t){var e,a;let{placement:o,middlewareData:n,rects:i,initialPlacement:l,platform:h,elements:c}=t,qt=_a(r,t),{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:_,fallbackStrategy:L="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:A=!0}=qt,z=Pa(qt,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]);if((e=n.arrow)!=null&&e.alignmentOffset)return{};let c1=U0(o),b1=fa(l),x1=U0(l)===l,K1=await(h.isRTL==null?void 0:h.isRTL(c.floating)),U1=_||(x1||!A?[Jo(l)]:_v(l)),q2=C!=="none";!_&&q2&&U1.push(...fv(l,A,C,K1));let Dt=[l,...U1],M0=await ar(t,z),mt=[],Ht=((a=n.flip)==null?void 0:a.overflows)||[];if(d&&mt.push(M0[c1]),u){let ge=uv(o,i,K1);mt.push(M0[ge[0]],M0[ge[1]])}if(Ht=[...Ht,{placement:o,overflows:mt}],!mt.every(ge=>ge<=0)){var Ze,me;let ge=(((Ze=n.flip)==null?void 0:Ze.index)||0)+1,Oa=Dt[ge];if(Oa)return{data:{index:ge,overflows:Ht},reset:{placement:Oa}};let Je=(me=Ht.filter(Da=>Da.overflows[0]<=0).sort((Da,H0)=>Da.overflows[1]-H0.overflows[1])[0])==null?void 0:me.placement;if(!Je)switch(L){case"bestFit":{var Qe;let Da=(Qe=Ht.filter(H0=>{if(q2){let L0=fa(H0.placement);return L0===b1||L0==="y"}return!0}).map(H0=>[H0.placement,H0.overflows.filter(L0=>L0>0).reduce((L0,Y6)=>L0+Y6,0)]).sort((H0,L0)=>H0[1]-L0[1])[0])==null?void 0:Qe[0];Da&&(Je=Da);break}case"initialPlacement":Je=l;break}if(o!==Je)return{reset:{placement:Je}}}return{}}}};function bv(r,t){return{top:r.top-t.height,right:r.right-t.width,bottom:r.bottom-t.height,left:r.left-t.width}}function yv(r){return wv.some(t=>r[t]>=0)}var Iv=function(r){return r===void 0&&(r={}),{name:"hide",options:r,async fn(t){let{rects:e}=t,n=_a(r,t),{strategy:a="referenceHidden"}=n,o=Pa(n,["strategy"]);switch(a){case"referenceHidden":{let i=await ar(t,t1(w({},o),{elementContext:"reference"})),l=bv(i,e.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:yv(l)}}}case"escaped":{let i=await ar(t,t1(w({},o),{altBoundary:!0})),l=bv(i,e.floating);return{data:{escapedOffsets:l,escaped:yv(l)}}}default:return{}}}}};async function j7(r,t){let{placement:e,platform:a,elements:o}=r,n=await(a.isRTL==null?void 0:a.isRTL(o.floating)),i=U0(e),l=eo(e),h=fa(e)==="y",c=["left","top"].includes(i)?-1:1,d=n&&h?-1:1,u=_a(t,r),{mainAxis:_,crossAxis:L,alignmentAxis:C}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return l&&typeof C=="number"&&(L=l==="end"?C*-1:C),h?{x:L*d,y:_*c}:{x:_*c,y:L*d}}var Vv=function(r){return r===void 0&&(r=0),{name:"offset",options:r,async fn(t){var e,a;let{x:o,y:n,placement:i,middlewareData:l}=t,h=await j7(t,r);return i===((e=l.offset)==null?void 0:e.placement)&&(a=l.arrow)!=null&&a.alignmentOffset?{}:{x:o+h.x,y:n+h.y,data:t1(w({},h),{placement:i})}}}},Ev=function(r){return r===void 0&&(r={}),{name:"shift",options:r,async fn(t){let{x:e,y:a,placement:o}=t,z=_a(r,t),{mainAxis:n=!0,crossAxis:i=!1,limiter:l={fn:c1=>{let{x:b1,y:x1}=c1;return{x:b1,y:x1}}}}=z,h=Pa(z,["mainAxis","crossAxis","limiter"]),c={x:e,y:a},d=await ar(t,h),u=fa(U0(o)),_=s4(u),L=c[_],C=c[u];if(n){let c1=_==="y"?"top":"left",b1=_==="y"?"bottom":"right",x1=L+d[c1],K1=L-d[b1];L=Sn(x1,L,K1)}if(i){let c1=u==="y"?"top":"left",b1=u==="y"?"bottom":"right",x1=C+d[c1],K1=C-d[b1];C=Sn(x1,C,K1)}let A=l.fn(t1(w({},t),{[_]:L,[u]:C}));return t1(w({},A),{data:{x:A.x-e,y:A.y-a,enabled:{[_]:n,[u]:i}}})}}};function Dn(){return typeof window!="undefined"}function ba(r){return zv(r)?(r.nodeName||"").toLowerCase():"#document"}function Ct(r){var t;return(r==null||(t=r.ownerDocument)==null?void 0:t.defaultView)||window}function Me(r){var t;return(t=(zv(r)?r.ownerDocument:r.document)||window.document)==null?void 0:t.documentElement}function zv(r){return Dn()?r instanceof Node||r instanceof Ct(r).Node:!1}function te(r){return Dn()?r instanceof Element||r instanceof Ct(r).Element:!1}function He(r){return Dn()?r instanceof HTMLElement||r instanceof Ct(r).HTMLElement:!1}function Cv(r){return!Dn()||typeof ShadowRoot=="undefined"?!1:r instanceof ShadowRoot||r instanceof Ct(r).ShadowRoot}function oo(r){let{overflow:t,overflowX:e,overflowY:a,display:o}=ee(r);return/auto|scroll|overlay|hidden|clip/.test(t+a+e)&&!["inline","contents"].includes(o)}function Av(r){return["table","td","th"].includes(ba(r))}function or(r){return[":popover-open",":modal"].some(t=>{try{return r.matches(t)}catch(e){return!1}})}function Pn(r){let t=Nn(),e=te(r)?ee(r):r;return e.transform!=="none"||e.perspective!=="none"||(e.containerType?e.containerType!=="normal":!1)||!t&&(e.backdropFilter?e.backdropFilter!=="none":!1)||!t&&(e.filter?e.filter!=="none":!1)||["transform","perspective","filter"].some(a=>(e.willChange||"").includes(a))||["paint","layout","strict","content"].some(a=>(e.contain||"").includes(a))}function Bv(r){let t=p0(r);for(;He(t)&&!ya(t);){if(Pn(t))return t;if(or(t))return null;t=p0(t)}return null}function Nn(){return typeof CSS=="undefined"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ya(r){return["html","body","#document"].includes(ba(r))}function ee(r){return Ct(r).getComputedStyle(r)}function rr(r){return te(r)?{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}:{scrollLeft:r.scrollX,scrollTop:r.scrollY}}function p0(r){if(ba(r)==="html")return r;let t=r.assignedSlot||r.parentNode||Cv(r)&&r.host||Me(r);return Cv(t)?t.host:t}function Tv(r){let t=p0(r);return ya(t)?r.ownerDocument?r.ownerDocument.body:r.body:He(t)&&oo(t)?t:Tv(t)}function ao(r,t,e){var a;t===void 0&&(t=[]),e===void 0&&(e=!0);let o=Tv(r),n=o===((a=r.ownerDocument)==null?void 0:a.body),i=Ct(o);if(n){let l=Rn(i);return t.concat(i,i.visualViewport||[],oo(o)?o:[],l&&e?ao(l):[])}return t.concat(o,ao(o,[],e))}function Rn(r){return r.parent&&Object.getPrototypeOf(r.parent)?r.frameElement:null}function Ov(r){let t=ee(r),e=parseFloat(t.width)||0,a=parseFloat(t.height)||0,o=He(r),n=o?r.offsetWidth:e,i=o?r.offsetHeight:a,l=tr(e)!==n||tr(a)!==i;return l&&(e=n,a=i),{width:e,height:a,$:l}}function h4(r){return te(r)?r:r.contextElement}function ro(r){let t=h4(r);if(!He(t))return ye(1);let e=t.getBoundingClientRect(),{width:a,height:o,$:n}=Ov(t),i=(n?tr(e.width):e.width)/a,l=(n?tr(e.height):e.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!l||!Number.isFinite(l))&&(l=1),{x:i,y:l}}var Z7=ye(0);function Dv(r){let t=Ct(r);return!Nn()||!t.visualViewport?Z7:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Q7(r,t,e){return t===void 0&&(t=!1),!e||t&&e!==Ct(r)?!1:t}function Ma(r,t,e,a){t===void 0&&(t=!1),e===void 0&&(e=!1);let o=r.getBoundingClientRect(),n=h4(r),i=ye(1);t&&(a?te(a)&&(i=ro(a)):i=ro(r));let l=Q7(n,e,a)?Dv(n):ye(0),h=(o.left+l.x)/i.x,c=(o.top+l.y)/i.y,d=o.width/i.x,u=o.height/i.y;if(n){let _=Ct(n),L=a&&te(a)?Ct(a):a,C=_,A=Rn(C);for(;A&&a&&L!==C;){let z=ro(A),c1=A.getBoundingClientRect(),b1=ee(A),x1=c1.left+(A.clientLeft+parseFloat(b1.paddingLeft))*z.x,K1=c1.top+(A.clientTop+parseFloat(b1.paddingTop))*z.y;h*=z.x,c*=z.y,d*=z.x,u*=z.y,h+=x1,c+=K1,C=Ct(A),A=Rn(C)}}return xa({width:d,height:u,x:h,y:c})}function c4(r,t){let e=rr(r).scrollLeft;return t?t.left+e:Ma(Me(r)).left+e}function Pv(r,t,e){e===void 0&&(e=!1);let a=r.getBoundingClientRect(),o=a.left+t.scrollLeft-(e?0:c4(r,a)),n=a.top+t.scrollTop;return{x:o,y:n}}function J7(r){let{elements:t,rect:e,offsetParent:a,strategy:o}=r,n=o==="fixed",i=Me(a),l=t?or(t.floating):!1;if(a===i||l&&n)return e;let h={scrollLeft:0,scrollTop:0},c=ye(1),d=ye(0),u=He(a);if((u||!u&&!n)&&((ba(a)!=="body"||oo(i))&&(h=rr(a)),He(a))){let L=Ma(a);c=ro(a),d.x=L.x+a.clientLeft,d.y=L.y+a.clientTop}let _=i&&!u&&!n?Pv(i,h,!0):ye(0);return{width:e.width*c.x,height:e.height*c.y,x:e.x*c.x-h.scrollLeft*c.x+d.x+_.x,y:e.y*c.y-h.scrollTop*c.y+d.y+_.y}}function tg(r){return Array.from(r.getClientRects())}function eg(r){let t=Me(r),e=rr(r),a=r.ownerDocument.body,o=c0(t.scrollWidth,t.clientWidth,a.scrollWidth,a.clientWidth),n=c0(t.scrollHeight,t.clientHeight,a.scrollHeight,a.clientHeight),i=-e.scrollLeft+c4(r),l=-e.scrollTop;return ee(a).direction==="rtl"&&(i+=c0(t.clientWidth,a.clientWidth)-o),{width:o,height:n,x:i,y:l}}function ag(r,t){let e=Ct(r),a=Me(r),o=e.visualViewport,n=a.clientWidth,i=a.clientHeight,l=0,h=0;if(o){n=o.width,i=o.height;let c=Nn();(!c||c&&t==="fixed")&&(l=o.offsetLeft,h=o.offsetTop)}return{width:n,height:i,x:l,y:h}}function og(r,t){let e=Ma(r,!0,t==="fixed"),a=e.top+r.clientTop,o=e.left+r.clientLeft,n=He(r)?ro(r):ye(1),i=r.clientWidth*n.x,l=r.clientHeight*n.y,h=o*n.x,c=a*n.y;return{width:i,height:l,x:h,y:c}}function Sv(r,t,e){let a;if(t==="viewport")a=ag(r,e);else if(t==="document")a=eg(Me(r));else if(te(t))a=og(t,e);else{let o=Dv(r);a={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return xa(a)}function Nv(r,t){let e=p0(r);return e===t||!te(e)||ya(e)?!1:ee(e).position==="fixed"||Nv(e,t)}function rg(r,t){let e=t.get(r);if(e)return e;let a=ao(r,[],!1).filter(l=>te(l)&&ba(l)!=="body"),o=null,n=ee(r).position==="fixed",i=n?p0(r):r;for(;te(i)&&!ya(i);){let l=ee(i),h=Pn(i);!h&&l.position==="fixed"&&(o=null),(n?!h&&!o:!h&&l.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||oo(i)&&!h&&Nv(r,i))?a=a.filter(d=>d!==i):o=l,i=p0(i)}return t.set(r,a),a}function ng(r){let{element:t,boundary:e,rootBoundary:a,strategy:o}=r,i=[...e==="clippingAncestors"?or(t)?[]:rg(t,this._c):[].concat(e),a],l=i[0],h=i.reduce((c,d)=>{let u=Sv(t,d,o);return c.top=c0(u.top,c.top),c.right=F0(u.right,c.right),c.bottom=F0(u.bottom,c.bottom),c.left=c0(u.left,c.left),c},Sv(t,l,o));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}}function ig(r){let{width:t,height:e}=Ov(r);return{width:t,height:e}}function sg(r,t,e){let a=He(t),o=Me(t),n=e==="fixed",i=Ma(r,!0,n,t),l={scrollLeft:0,scrollTop:0},h=ye(0);if(a||!a&&!n)if((ba(t)!=="body"||oo(o))&&(l=rr(t)),a){let _=Ma(t,!0,n,t);h.x=_.x+t.clientLeft,h.y=_.y+t.clientTop}else o&&(h.x=c4(o));let c=o&&!a&&!n?Pv(o,l):ye(0),d=i.left+l.scrollLeft-h.x-c.x,u=i.top+l.scrollTop-h.y-c.y;return{x:d,y:u,width:i.width,height:i.height}}function v4(r){return ee(r).position==="static"}function kv(r,t){if(!He(r)||ee(r).position==="fixed")return null;if(t)return t(r);let e=r.offsetParent;return Me(r)===e&&(e=e.ownerDocument.body),e}function Rv(r,t){let e=Ct(r);if(or(r))return e;if(!He(r)){let o=p0(r);for(;o&&!ya(o);){if(te(o)&&!v4(o))return o;o=p0(o)}return e}let a=kv(r,t);for(;a&&Av(a)&&v4(a);)a=kv(a,t);return a&&ya(a)&&v4(a)&&!Pn(a)?e:a||Bv(r)||e}var lg=async function(r){let t=this.getOffsetParent||Rv,e=this.getDimensions,a=await e(r.floating);return{reference:sg(r.reference,await t(r.floating),r.strategy),floating:{x:0,y:0,width:a.width,height:a.height}}};function vg(r){return ee(r).direction==="rtl"}var hg={convertOffsetParentRelativeRectToViewportRelativeRect:J7,getDocumentElement:Me,getClippingRect:ng,getOffsetParent:Rv,getElementRects:lg,getClientRects:tg,getDimensions:ig,getScale:ro,isElement:te,isRTL:vg};function cg(r,t){let e=null,a,o=Me(r);function n(){var l;clearTimeout(a),(l=e)==null||l.disconnect(),e=null}function i(l,h){l===void 0&&(l=!1),h===void 0&&(h=1),n();let{left:c,top:d,width:u,height:_}=r.getBoundingClientRect();if(l||t(),!u||!_)return;let L=er(d),C=er(o.clientWidth-(c+u)),A=er(o.clientHeight-(d+_)),z=er(c),b1={rootMargin:-L+"px "+-C+"px "+-A+"px "+-z+"px",threshold:c0(0,F0(1,h))||1},x1=!0;function K1(U1){let q2=U1[0].intersectionRatio;if(q2!==h){if(!x1)return i();q2?i(!1,q2):a=setTimeout(()=>{i(!1,1e-7)},1e3)}x1=!1}try{e=new IntersectionObserver(K1,t1(w({},b1),{root:o.ownerDocument}))}catch(U1){e=new IntersectionObserver(K1,b1)}e.observe(r)}return i(!0),n}function Fv(r,t,e,a){a===void 0&&(a={});let{ancestorScroll:o=!0,ancestorResize:n=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:h=!1}=a,c=h4(r),d=o||n?[...c?ao(c):[],...ao(t)]:[];d.forEach(c1=>{o&&c1.addEventListener("scroll",e,{passive:!0}),n&&c1.addEventListener("resize",e)});let u=c&&l?cg(c,e):null,_=-1,L=null;i&&(L=new ResizeObserver(c1=>{let[b1]=c1;b1&&b1.target===c&&L&&(L.unobserve(t),cancelAnimationFrame(_),_=requestAnimationFrame(()=>{var x1;(x1=L)==null||x1.observe(t)})),e()}),c&&!h&&L.observe(c),L.observe(t));let C,A=h?Ma(r):null;h&&z();function z(){let c1=Ma(r);A&&(c1.x!==A.x||c1.y!==A.y||c1.width!==A.width||c1.height!==A.height)&&e(),A=c1,C=requestAnimationFrame(z)}return e(),()=>{var c1;d.forEach(b1=>{o&&b1.removeEventListener("scroll",e),n&&b1.removeEventListener("resize",e)}),u==null||u(),(c1=L)==null||c1.disconnect(),L=null,h&&cancelAnimationFrame(C)}}var Uv=Vv;var Wv=Ev,Gv=Lv;var Yv=Iv,Kv=Hv;var qv=(r,t,e)=>{let a=new Map,o=w({platform:hg},e),n=t1(w({},o.platform),{_c:a});return Mv(r,t,t1(w({},o),{platform:n}))};var p4=["top-start","top","top-end","left-start","left","left-end","right-start","right","right-end"],zt=class r{constructor(t,e,a=0,o=0){this.x=t;this.y=e;this.height=a;this.width=o}getBoundingClientRect(){return{x:this.x,y:this.y,top:this.y,left:this.x,bottom:this.y,right:this.x,width:this.height,height:this.width,toJSON(){}}}static fromElement(t){let e=t.getBoundingClientRect();return new r(e.left,e.top,e.height,e.width)}static fromEvent(t){if(t instanceof MouseEvent)return new r(t.clientX,t.clientY);if(t instanceof TouchEvent)return new r(t.touches[0].clientX,t.touches[0].clientY);throw new Error("Unsupported event type")}};async function $v({element:r,anchorElement:t,placement:e="bottom",offset:a=!1,offsetOptions:o,strategy:n="fixed",apply:i=!0,flip:l=!0,flipOptions:h={fallbackPlacements:p4,fallbackStrategy:"initialPlacement"},shift:c=!0,shiftOptions:d,hide:u=!1,hideOptions:_,arrowElement:L,arrowOptions:C={}}){var K1,U1,q2;let A=[];a&&A.push(Uv(o)),c&&A.push(Wv(d)),l&&A.push(Gv(h)),u&&A.push(Yv(_)),L&&A.push(Kv(t1(w({},C),{element:L})));let{x:z,y:c1,placement:b1,middlewareData:x1}=await qv(t,r,{strategy:n,placement:e,middleware:A});if(i){let Dt={left:"0",top:"0",translate:`${qa(z)}px ${qa(c1)}px`};Object.assign(r.style,Dt),(K1=x1.hide)!=null&&K1.referenceHidden?r.style.display="none":r.style.removeProperty("display")}return{x:z,y:c1,hidden:(q2=(U1=x1.hide)==null?void 0:U1.referenceHidden)!=null?q2:!1,placement:b1,arrow:x1.arrow}}var d4=`${b}overlay`,Xv={ANCHOR:"anchor",NO_ANCHOR:"no-anchor",OPEN:"open",INLINE:"inline",PLACEMENT:"placement",POSITION_STRATEGY:"position-strategy",HIDE:"hide",PERSISTENT:"persistent",SHIFT:"shift",FLIP:"flip",BOUNDARY:"boundary",FALLBACK_PLACEMENTS:"fallback-placements"},pg=t1(w({},Xv),{POSITION_PLACEMENT:"position-placement",CLIPPED_X:"clipped-x",CLIPPED_Y:"clipped-y"}),jv={OVERLAY:"forge-overlay"},dg={ROOT:`.${jv.OVERLAY}`},mg={LIGHT_DISMISS:`${d4}-light-dismiss`,DESCENDANT_TEST:`${d4}-descendant-test`},gg={HIDE:"anchor-hidden",FLIP:"auto"},B={elementName:d4,observedAttributes:Xv,attributes:pg,classes:jv,selectors:dg,events:mg,defaults:gg},no=jr(),W0=Symbol("overlayStack"),Zv={left:["right","bottom","top","top-start","top-end","left-start","left-end","right-start","right-end"],"left-start":["left-end","right-start","right-end","bottom","top"],"left-end":["left-start","right-end","right-start","bottom","top","bottom-start","bottom-end"],right:["left","bottom","top","top-start","top-end","left-start","left-end","right-start","right-end"],"right-start":["right-end","left-start","left-end","bottom","top"],"right-end":["right-start","left-end","left-start","bottom","top","bottom-start","bottom-end"],top:["bottom","left","right","bottom-start","left-start","left-end","right-start","right-end"],"top-start":["bottom-start","left","right","left-start","left-end","right-start","right-end"],"top-end":["bottom-end","left","right","right-start","right-end","left-start","left-end"],bottom:["top","left","right","top-start","left-start","left-end","right-start","right-end"],"bottom-start":["top-start","left","right","left-start","left-end","right-start","right-end"],"bottom-end":["top-end","left","right","right-start","right-end","left-start","left-end"]};var Fn=class extends I{constructor(e){super(e);this._lightDismissController=new AbortController;this._rootElement=g(e,B.selectors.ROOT)}async show(){!this._component.inline&&no?(this._rootElement.popover="manual",this._rootElement.showPopover()):this._rootElement.removeAttribute("popover"),d2[W0].add(this._component)}hide(){var e;this.tryCleanupAutoUpdate(),no&&this._rootElement.matches(":popover-open")&&(this._rootElement.hidePopover(),this._rootElement.removeAttribute("popover")),this._rootElement.style.removeProperty("top"),this._rootElement.style.removeProperty("left"),this._rootElement.style.removeProperty("translate"),this._rootElement.style.removeProperty("display"),(e=this._component.arrowElement)==null||e.removeAttribute("style"),this._component.removeAttribute(B.attributes.POSITION_PLACEMENT),this._component.removeAttribute(B.attributes.CLIPPED_X),this._component.removeAttribute(B.attributes.CLIPPED_Y),d2[W0].delete(this._component)}tryHideDescendantOverlays(){this._findDescendantOverlays().filter(a=>!a.persistent).forEach(a=>a.open=!1)}locateAnchorElement(e){return Yo(this._component,e)}positionElement({anchorElement:e,strategy:a,placement:o,hide:n,offset:i,shift:l,flip:h,boundary:c,boundaryElement:d,fallbackPlacements:u}){var C;this.tryCleanupAutoUpdate();let _=w({},i),L=(C=d||(c?this._component.closest(`#${c}`):null))!=null?C:"clippingAncestors";this._autoUpdateCleanup=Fv(e,this._rootElement,async()=>{var M0;let A=w({},_);if(this._component.arrowElement){let mt=this._component.arrowElementOffset||Math.sqrt(2*this._component.arrowElement.offsetWidth**2)/2;A.mainAxis==null&&(A.mainAxis=0),A.mainAxis+=mt}let z=await $v({element:this._rootElement,anchorElement:e,strategy:a,placement:o,hide:n!=="never",shift:l,shiftOptions:{boundary:L},flip:h!=="never",flipOptions:{fallbackStrategy:"bestFit",fallbackPlacements:(M0=u!=null?u:Zv[o])!=null?M0:p4,crossAxis:h==="cross"||h==="auto",mainAxis:h==="main"||h==="auto"},arrowElement:this._component.arrowElement,offset:!!A,offsetOptions:A}),c1=z.placement.split("-")[0],b1={top:"bottom",right:"left",bottom:"top",left:"right"}[c1];if(b1&&this._component.setAttribute(B.attributes.POSITION_PLACEMENT,z.placement),this._component.arrowElement&&z.arrow){let{x:mt,y:Ht}=z.arrow,Ze=this._component.arrowElement.offsetWidth,{borderWidth:me="0"}=getComputedStyle(this._component.arrowElement),Qe=parseFloat(me);Object.assign(this._component.arrowElement.style,{top:Ht!=null?`${Ht}px`:"",left:mt!=null?`${mt}px`:"",right:"",bottom:"",[b1]:`${-Ze/2-Qe}px`})}let x1=Math.max(document.documentElement.clientWidth,window.innerWidth),K1=Math.max(document.documentElement.clientHeight,window.innerHeight),U1=this._rootElement.getBoundingClientRect(),q2=U1.right>x1||U1.left<0,Dt=U1.bottom>K1||U1.top<0;if(this._component.toggleAttribute(B.attributes.CLIPPED_X,q2),this._component.toggleAttribute(B.attributes.CLIPPED_Y,Dt),q2||Dt){let{x:mt,y:Ht}=z,{height:Ze,width:me}=U1,Qe=q2?mt+me-x1:0,qt=Dt?Ht+Ze-K1:0;this._rootElement.style.translate=`${qa(mt-Qe)}px ${qa(Ht-qt)}px`}})}tryCleanupAutoUpdate(){var e;(e=this._autoUpdateCleanup)==null||e.call(this),this._autoUpdateCleanup=void 0}isMostRecentOpenOverlay(){return Array.from(d2[W0]).at(-1)===this._component}addLightDismissListener(e){this.removeLightDismissListener();let a=n=>{n.key==="Escape"&&this.isMostRecentOpenOverlay()&&(n.preventDefault(),n.stopPropagation(),e("escape"))};this._component.ownerDocument.addEventListener("keydown",a,{signal:this._lightDismissController.signal});let o=n=>{let i=n.composedPath(),l=Array.from(d2[W0]),h=l.indexOf(this._component),c=i.some(L=>L instanceof d2&&l.indexOf(L)>h),d=n.button===2;if(c||d)return;let u=this._component.anchorElement instanceof zt?!1:this._component.anchorElement&&i.includes(this._component.anchorElement),_=i.includes(this._rootElement);!u&&!_&&e("click")};this._component.ownerDocument.addEventListener("pointerup",o,{capture:!0,signal:this._lightDismissController.signal})}removeLightDismissListener(){this._lightDismissController.abort(),this._lightDismissController=new AbortController}_findDescendantOverlays(){let e=Array.from(d2[W0]),a=e.slice(e.indexOf(this._component)+1).reverse(),o=[];if(a.length){let n=i=>o.push(i.target);this._component.addEventListener(B.events.DESCENDANT_TEST,n),a.forEach(i=>i.dispatchEvent(new CustomEvent(B.events.DESCENDANT_TEST,{bubbles:!0,composed:!0}))),this._component.removeEventListener(B.events.DESCENDANT_TEST,n)}return o}};var Un=class{constructor(t){this._adapter=t}initialize(){}};var Wn=class extends Un{constructor(e){super(e);this._noAnchor=!1;this._open=!1;this._inline=!1;this._placement="bottom";this._positionStrategy="fixed";this._offset={};this._shift=!1;this._hide=B.defaults.HIDE;this._flip=B.defaults.FLIP;this._fallbackPlacements=null;this._persistent=!1;this._arrowElementOffset=0;this._lightDismissListener=this._onLightDismiss.bind(this)}initialize(){this._adapter.tryApplyGlobalConfiguration(["placement","positionStrategy","shift","hide","flip","boundaryElement","fallbackPlacements","persistent"]),!this._noAnchor&&!this._anchorElement&&this._anchor&&(this._anchorElement=this._adapter.locateAnchorElement(this._anchor)),no||(this.inline=!0),this._adapter.hasHostAttribute(B.attributes.OPEN)&&this._applyOpen(!0)}destroy(){this._open&&this._hideOverlay()}position(){var e;!this._open||this._noAnchor||!this._anchorElement||this._adapter.positionElement({anchorElement:this._anchorElement,strategy:this._positionStrategy,placement:this._placement,hide:this._hide,offset:this._offset,shift:this._shift,flip:this._flip,boundary:this._boundary,boundaryElement:this._boundaryElement,fallbackPlacements:(e=this._fallbackPlacements)!=null?e:void 0})}_onLightDismiss(e){let a={reason:e},o=new CustomEvent(B.events.LIGHT_DISMISS,{bubbles:!1,cancelable:!0,detail:a});this._adapter.dispatchHostEvent(o),!o.defaultPrevented&&this._applyOpen(!1)}_applyOpen(e){this._adapter.isConnected&&(this._open=e,this._open?this._showOverlay():this._hideOverlay(),this._adapter.toggleHostAttribute(B.attributes.OPEN,this._open))}_showOverlay(){this._adapter.show(),this._persistent||this._applyLightDismissListener(),!this._noAnchor&&this._anchorElement&&this.position()}_hideOverlay(){this._adapter.tryHideDescendantOverlays(),this._adapter.hide(),this._adapter.removeLightDismissListener()}_applyLightDismissListener(){this._adapter.addLightDismissListener(this._lightDismissListener)}get anchorElement(){return this._anchorElement}set anchorElement(e){this._anchorElement=e,this._open&&this.position()}get anchor(){return this._anchor}set anchor(e){this._anchor!==e&&(this._anchor=e,this._adapter.isConnected&&(this._anchorElement=this._anchor?this._adapter.locateAnchorElement(this._anchor):null),this._adapter.toggleHostAttribute(B.attributes.ANCHOR,!!this._anchor,this._anchor))}get noAnchor(){return this._noAnchor}set noAnchor(e){e=!!e,this._noAnchor!==e&&(this._noAnchor=e,this._adapter.toggleHostAttribute(B.attributes.NO_ANCHOR,this._noAnchor))}get open(){return this._open}set open(e){e=!!e,this._open!==e&&this._applyOpen(e)}get arrowElement(){return this._arrowElement}set arrowElement(e){this._arrowElement=e,this._open&&this.position()}get arrowElementOffset(){return this._arrowElementOffset}set arrowElementOffset(e){this._arrowElementOffset=e,this._open&&this.position()}get inline(){return this._inline}set inline(e){e=no?!!e:!0,this._inline!==e&&(this._inline=e,this._adapter.toggleHostAttribute(B.attributes.INLINE,this._inline))}get placement(){return this._placement}set placement(e){this._placement!==e&&(this._placement=e,this._open&&this.position(),this._adapter.setHostAttribute(B.attributes.PLACEMENT,this._placement))}get positionStrategy(){return this._positionStrategy}set positionStrategy(e){this._positionStrategy!==e&&(this._positionStrategy=e,this._open&&this.position(),this._adapter.setHostAttribute(B.attributes.POSITION_STRATEGY,this._positionStrategy))}get offset(){return this._offset}set offset(e){this._offset=e,this._open&&this.position()}get shift(){return this._shift}set shift(e){e=!!e,this._shift!==e&&(this._shift=e,this._open&&this.position(),this._adapter.toggleHostAttribute(B.attributes.SHIFT,this._shift))}get hide(){return this._hide}set hide(e){this._hide!==e&&(this._hide=e!=null?e:B.defaults.HIDE,this._open&&this.position(),this._adapter.toggleHostAttribute(B.attributes.HIDE,this._hide!==B.defaults.HIDE,String(this._hide)))}get persistent(){return this._persistent}set persistent(e){e=!!e,this._persistent!==e&&(this._persistent=e,this._persistent?this._adapter.removeLightDismissListener():this._open&&this._applyLightDismissListener(),this._adapter.toggleHostAttribute(B.attributes.PERSISTENT,this._persistent))}get flip(){return this._flip}set flip(e){this._flip!==e&&(this._flip=e!=null?e:B.defaults.FLIP,this._open&&this.position(),this._adapter.toggleHostAttribute(B.attributes.FLIP,this._flip!==B.defaults.FLIP,String(this._flip)))}get boundary(){return this._boundary}set boundary(e){this._boundary!==e&&(this._boundary=e,this._open&&this.position(),this._adapter.toggleHostAttribute(B.attributes.BOUNDARY,!!this._boundary,this._boundary))}get boundaryElement(){return this._boundaryElement}set boundaryElement(e){this._boundaryElement=e,this._open&&this.position()}get fallbackPlacements(){return this._fallbackPlacements}set fallbackPlacements(e){this._fallbackPlacements=e,this._open&&this.position()}};var B2=class extends M{constructor(){super()}position(){this._core.position()}attributeChangedCallback(t,e,a){switch(t){case B.observedAttributes.ANCHOR:this.anchor=a;break;case B.observedAttributes.NO_ANCHOR:this.noAnchor=p(a);break;case B.observedAttributes.OPEN:this.open=p(a);break;case B.observedAttributes.INLINE:this.inline=p(a);break;case B.observedAttributes.PLACEMENT:this.placement=a;break;case B.observedAttributes.POSITION_STRATEGY:this.positionStrategy=a;break;case B.observedAttributes.HIDE:this.hide=a;break;case B.observedAttributes.PERSISTENT:this.persistent=p(a);break;case B.observedAttributes.SHIFT:this.shift=p(a);break;case B.observedAttributes.FLIP:this.flip=a;break;case B.observedAttributes.BOUNDARY:this.boundary=a;break;case B.observedAttributes.FALLBACK_PLACEMENTS:this.fallbackPlacements=a!=null&&a.trim()?da(a):null;break}}};s([v()],B2.prototype,"anchorElement",2),s([v()],B2.prototype,"anchor",2),s([v()],B2.prototype,"noAnchor",2),s([v()],B2.prototype,"open",2),s([v()],B2.prototype,"inline",2),s([v()],B2.prototype,"placement",2),s([v()],B2.prototype,"positionStrategy",2),s([v()],B2.prototype,"offset",2),s([v()],B2.prototype,"shift",2),s([v()],B2.prototype,"hide",2),s([v()],B2.prototype,"persistent",2),s([v()],B2.prototype,"flip",2),s([v()],B2.prototype,"boundary",2),s([v()],B2.prototype,"boundaryElement",2),s([v()],B2.prototype,"fallbackPlacements",2);var wg='<template><div class="forge-overlay" part="root"><slot></slot></div></template>',ug=":host{display:contents}:host([hidden]){display:none}.forge-overlay{--_overlay-position:var(--forge-overlay-position, fixed);--_overlay-z-index:var(--forge-overlay-z-index, var(--forge-z-index-popup, 10));--_overlay-height:var(--forge-overlay-height, fit-content);--_overlay-width:var(--forge-overlay-width, fit-content);--_overlay-position-inline-start:var(--forge-overlay-position-inline-start, auto);--_overlay-position-inline-end:var(--forge-overlay-position-inline-end, auto);--_overlay-position-block-start:var(--forge-overlay-position-block-start, auto);--_overlay-position-block-end:var(--forge-overlay-position-block-end, auto)}.forge-overlay{display:none;box-sizing:border-box;height:var(--_overlay-height);width:var(--_overlay-width);border-radius:inherit;position:var(--_overlay-position);top:0;left:0;z-index:var(--_overlay-z-index);background:inherit;color:inherit}:host([position-strategy=absolute]) .forge-overlay{--_overlay-position:var(--forge-overlay-position, absolute)}:host([open][inline]) .forge-overlay{display:block;padding:0;margin:0;border:none;overflow:visible;inset:unset}:host([open]) .forge-overlay:popover-open{display:block;padding:0;margin:0;border:none;overflow:visible;inset:unset}:host([open][no-anchor]) .forge-overlay:popover-open{inset:0;margin:auto;margin-inline-start:var(--_overlay-position-inline-start);margin-inline-end:var(--_overlay-position-inline-end);margin-block-start:var(--_overlay-position-block-start);margin-block-end:var(--_overlay-position-block-end)}",Qv,Jv,d2=class extends(Jv=B2,Qv=W0,Jv){static get observedAttributes(){return Object.values(B.observedAttributes)}constructor(){super(),H(this,wg,ug),this._core=new Wn(new Fn(this))}connectedCallback(){this._core.initialize()}disconnectedCallback(){this._core.destroy()}};d2[Qv]=new Set,s([v()],d2.prototype,"arrowElement",2),s([v()],d2.prototype,"arrowElementOffset",2),d2=s([y({name:B.elementName})],d2);function th(){x(d2)}var _g=`${b}tooltip`,eh={ID:"id",OPEN:"open",TYPE:"type",ANCHOR:"anchor",TARGET:"target",PLACEMENT:"placement",POSITION:"position",DELAY:"delay",OFFSET:"offset",FLIP:"flip",BOUNDARY:"boundary",FALLBACK_PLACEMENTS:"fallback-placements",TRIGGER_TYPE:"trigger-type"},fg=w({},eh),xg={LONGPRESS_VISIBILITY_DURATION:3e3},bg={DELAY:500,OFFSET:4,FLIP:"auto",TYPE:"presentation",PLACEMENT:"right",TRIGGER_TYPES:["hover"]},yg={CONTENT:".forge-tooltip",ARROW:".arrow"},o1={elementName:_g,observedAttributes:eh,attributes:fg,numbers:xg,defaults:bg,selectors:yg};var Gn=class extends I{constructor(e){super(e);this._anchorElement=null;this._overlayElement=null;this._contentElement=g(this._component,o1.selectors.CONTENT),this._arrowElement=g(this._component,o1.selectors.ARROW)}get anchorElement(){return this._anchorElement}syncAria(){let e=this._component.type==="description"?"tooltip":null;if(this._component[P]({role:e}),this._component[P]({ariaHidden:"true"},{setAttribute:!this._component.hasAttribute("aria-hidden")}),this._anchorElement){if(this._component.type==="label"&&this._anchorElement.hasAttribute("aria-labelledby")||this._component.type==="description"&&this._anchorElement.hasAttribute("aria-describedby"))return;switch(!this._component.hasAttribute("id")&&this._component.type!=="presentation"&&(this._component.id=`forge-tooltip-${P2()}`),this._component.type){case"description":this._anchorElement.setAttribute("aria-describedby",this._component.id);break;case"label":this._anchorElement.setAttribute("aria-labelledby",this._component.id);break}}}detachAria(){var e,a,o,n;this._component.type==="description"&&((e=this._anchorElement)==null?void 0:e.getAttribute("aria-describedby"))===this._component.id&&((a=this._anchorElement)==null||a.removeAttribute("aria-describedby")),this._component.type==="label"&&((o=this._anchorElement)==null?void 0:o.getAttribute("aria-labelledby"))===this._component.id&&((n=this._anchorElement)==null||n.removeAttribute("aria-labelledby"))}setAnchorElement(e){this._anchorElement=e}tryLocateAnchorElement(e){this._anchorElement=this._tryFindAnchorElement(e)}addAnchorListener(e,a,o){var n;(n=this._anchorElement)==null||n.addEventListener(e,a,o)}removeAnchorListener(e,a){var o;(o=this._anchorElement)==null||o.removeEventListener(e,a)}addLightDismissListener(e){var a;(a=this._overlayElement)==null||a.addEventListener(B.events.LIGHT_DISMISS,e)}removeLightDismissListener(e){var a;(a=this._overlayElement)==null||a.removeEventListener(B.events.LIGHT_DISMISS,e)}show(){var e;if(this._overlayElement||(this._overlayElement=document.createElement(B.elementName),this._overlayElement.setAttribute("part","root:overlay")),this._overlayElement.placement=this._component.placement,this._overlayElement.anchorElement=this._anchorElement,this._overlayElement.arrowElement=this._arrowElement,this._overlayElement.offset={mainAxis:this._component.offset},this._overlayElement.flip=this._component.flip,this._component.fallbackPlacements&&(this._overlayElement.fallbackPlacements=this._component.fallbackPlacements),this._component.boundaryElement)this._overlayElement.boundaryElement=this._component.boundaryElement;else if(this._component.boundary){let a=Yo(this._component,this._component.boundary);this._overlayElement.boundaryElement=a}else this._overlayElement.boundaryElement=null;(e=this._component.shadowRoot)==null||e.appendChild(this._overlayElement),this._overlayElement.appendChild(this._contentElement),this._overlayElement.open=!0}hide(){var e,a;this._overlayElement&&(this._overlayElement.open=!1),(e=this._component.shadowRoot)==null||e.appendChild(this._contentElement),(a=this._overlayElement)==null||a.remove()}_tryFindAnchorElement(e){var a,o;if(e){let n=this._component.getRootNode(),i=(a=n.getElementById(e))!=null?a:n.querySelector(e);if(i)return i}return(o=this._component.previousElementSibling)!=null?o:this._component.parentElement}};var Mg=500;function Yn(r=class{}){class t extends r{constructor(){super(...arguments);this._longpressStartListener=this._onLongpressStart.bind(this);this._longpressEndListener=this._onLongpressEnd.bind(this);this._longpressContextMenuListener=this._onLongpressContextMenu.bind(this);this._longpressClickPrevent=this._onLongpressClickPrevent.bind(this);this._longpressDelay=Mg}_startLongpressListener(o){let n=n0?"pointerdown":"touchstart";o.addEventListener(n,this._longpressStartListener)}_stopLongpressListener(o){let n=n0?"pointerdown":"touchstart";o.removeEventListener(n,this._longpressStartListener),this._unlistenLongpressEnd(o)}_onLongpressStart(o){o.target.setPointerCapture(o.pointerId),this._listenLongpressEnd(o.target),this._longpressTimeout=window.setTimeout(()=>{this._onLongpress(),n0||navigator.vibrate(1),o.target.addEventListener("click",this._longpressClickPrevent,{capture:!0,once:!0})},this._longpressDelay)}_onLongpressClickPrevent(o){o.stopPropagation()}_onLongpressEnd(o){this._clearTimeout(),this._unlistenLongpressEnd(o.target)}_onLongpressContextMenu(o){this._clearTimeout(),o.target.removeEventListener("click",this._longpressClickPrevent,{capture:!0}),this._unlistenLongpressEnd(o.target)}_listenLongpressEnd(o){n0?(o.addEventListener("pointerup",this._longpressEndListener),o.addEventListener("pointercancel",this._longpressEndListener),o.addEventListener("contextmenu",this._longpressContextMenuListener)):o.addEventListener("touchend",this._longpressEndListener)}_unlistenLongpressEnd(o){n0?(o.removeEventListener("pointerup",this._longpressEndListener),o.removeEventListener("pointercancel",this._longpressEndListener),o.removeEventListener("contextmenu",this._longpressContextMenuListener)):o.removeEventListener("touchend",this._longpressEndListener)}_clearTimeout(){window.clearTimeout(this._longpressTimeout),this._longpressTimeout=void 0}}return t}var Kn=class extends Yn(Object){constructor(e){super();this._adapter=e;this._open=!1;this._type=o1.defaults.TYPE;this._delay=o1.defaults.DELAY;this._placement=o1.defaults.PLACEMENT;this._offset=o1.defaults.OFFSET;this._flip=o1.defaults.FLIP;this._boundary=null;this._boundaryElement=null;this._fallbackPlacements=null;this._triggerTypes=o1.defaults.TRIGGER_TYPES;this._hoverStartListener=this._onHoverStart.bind(this);this._hoverEndListener=this._onHoverEnd.bind(this);this._focusListener=this._onFocus.bind(this);this._blurListener=this._onBlur.bind(this);this._scrollListener=this._onTryHide.bind(this);this._mouseDownListener=this._onTryHide.bind(this);this._dragListener=this._onTryHide.bind(this);this._lightDismissListener=this._onTryHide.bind(this)}initialize(){this._adapter.tryApplyGlobalConfiguration(["type","delay","placement","offset","flip","boundaryElement","fallbackPlacements","triggerType"]),this._adapter.anchorElement||this._adapter.tryLocateAnchorElement(this._anchor),this._adapter.syncAria(),this._attachAnchorListeners(),this._open&&this._show()}destroy(){this._open&&this._hide(),this._adapter.detachAria(),this._detachAnchorListeners()}syncTooltipAria(){this._adapter.syncAria()}_attachAnchorListeners(){if(!this._adapter.anchorElement)return;let e=[...this._triggerTypes];n0||(e.splice(e.indexOf("hover"),1),e.push("longpress"));let a={hover:()=>this._adapter.addAnchorListener("mouseenter",this._hoverStartListener),longpress:()=>this._startLongpressListener(this._adapter.anchorElement),focus:()=>this._adapter.addAnchorListener("focusin",this._focusListener)};e.forEach(o=>a[o]())}_detachAnchorListeners(){if(!this._adapter.anchorElement)return;let e=[...this._triggerTypes];n0||e.push("longpress");let a={hover:()=>{this._adapter.removeAnchorListener("mouseenter",this._hoverStartListener),this._adapter.removeAnchorListener("mousedown",this._hoverEndListener),this._adapter.removeAnchorListener("mouseleave",this._hoverEndListener)},longpress:()=>this._stopLongpressListener(this._adapter.anchorElement),focus:()=>{this._adapter.removeAnchorListener("focusin",this._focusListener),this._adapter.removeAnchorListener("focusout",this._blurListener)}};e.forEach(o=>a[o]())}_show(){this._open=!0,this._adapter.show(),Vt.instance.add(this._adapter.hostElement),this._attachDismissListeners(),this._adapter.toggleHostAttribute(o1.attributes.OPEN,this._open)}_hide(){window.clearTimeout(this._hoverTimeout),window.clearTimeout(this._longpressVisibilityTimeout),this._open=!1,this._adapter.hide(),Vt.instance.remove(this._adapter.hostElement),this._detachDismissListeners(),this._adapter.toggleHostAttribute(o1.attributes.OPEN,this._open)}_attachDismissListeners(){this._adapter.addAnchorListener("mousedown",this._mouseDownListener),this._adapter.addAnchorListener("dragstart",this._dragListener),this._adapter.addDocumentListener("scroll",this._scrollListener),this._adapter.addDocumentListener("wheel",this._scrollListener),this._adapter.addLightDismissListener(this._lightDismissListener)}_detachDismissListeners(){this._adapter.removeAnchorListener("mousedown",this._mouseDownListener),this._adapter.removeAnchorListener("dragstart",this._dragListener),this._adapter.removeDocumentListener("scroll",this._scrollListener),this._adapter.removeDocumentListener("wheel",this._scrollListener),this._adapter.removeLightDismissListener(this._lightDismissListener)}_onHoverStart(e){this._open||(this._adapter.addAnchorListener("mousedown",this._hoverEndListener),this._adapter.addAnchorListener("mouseleave",this._hoverEndListener),this._delay?this._hoverTimeout=window.setTimeout(()=>{this._onTryShow()},this._delay):this._onTryShow())}_onHoverEnd(e){this._adapter.removeAnchorListener("mousedown",this._hoverEndListener),this._adapter.removeAnchorListener("mouseleave",this._hoverEndListener),window.clearTimeout(this._hoverTimeout),this._onTryHide()}_onFocus(e){this._open||(this._adapter.addAnchorListener("focusout",this._blurListener),this._onTryShow())}_onBlur(e){this._adapter.removeAnchorListener("focusout",this._blurListener),this._onTryHide()}_onLongpress(){this._onTryShow()}_onLongpressEnd(e){super._onLongpressEnd(e),this._longpressVisibilityTimeout=window.setTimeout(()=>{this._onTryHide()},o1.numbers.LONGPRESS_VISIBILITY_DURATION)}_onTryShow(){this._open||this._show()}_onTryHide(){this._open&&this._hide()}get open(){return this._open}set open(e){e=!!e,this._open!==e&&(this._adapter.isConnected?this._open?this._hide():this._show():this._open=e)}get type(){return this._type}set type(e){e!=null||(e=o1.defaults.TYPE),this._type!==e&&(this._type=e,this._adapter.isConnected&&this._adapter.syncAria(),this._adapter.toggleHostAttribute(o1.attributes.TYPE,this._type!==o1.defaults.TYPE,this._type))}get anchor(){return this._anchor}set anchor(e){this._anchor!==e&&(this._anchor=e,this._adapter.isConnected&&(this._detachAnchorListeners(),this._adapter.detachAria(),this._adapter.tryLocateAnchorElement(this._anchor),this._adapter.syncAria(),this._attachAnchorListeners()),this._adapter.toggleHostAttribute(o1.attributes.ANCHOR,!!this._anchor,this._anchor))}get anchorElement(){return this._adapter.anchorElement}set anchorElement(e){this._adapter.anchorElement!==e&&(this._adapter.isConnected&&(this._detachAnchorListeners(),this._adapter.detachAria()),this._adapter.setAnchorElement(e),this._adapter.isConnected&&(this._adapter.syncAria(),this._attachAnchorListeners()))}get delay(){return this._delay}set delay(e){this._delay!==e&&(this._delay=e,this._adapter.setHostAttribute(o1.attributes.DELAY,String(this._delay)))}get placement(){return this._placement}set placement(e){e!=null||(e=o1.defaults.PLACEMENT),this._placement!==e&&(this._placement=e,this._adapter.setHostAttribute(o1.attributes.PLACEMENT,String(this._placement)))}get offset(){return this._offset}set offset(e){e!=null||(e=o1.defaults.OFFSET),this._offset!==e&&(this._offset=e,this._adapter.toggleHostAttribute(o1.attributes.OFFSET,this._offset!==o1.defaults.OFFSET,String(this._offset)))}get flip(){return this._flip}set flip(e){e!=null||(e=o1.defaults.FLIP),this._flip!==e&&(this._flip=e,this._adapter.toggleHostAttribute(o1.attributes.FLIP,this._flip!==o1.defaults.FLIP,String(this._flip)))}get boundary(){return this._boundary}set boundary(e){this._boundary!==e&&(this._boundary=e,this._adapter.toggleHostAttribute(o1.attributes.BOUNDARY,!!this._boundary,this._boundary))}get boundaryElement(){return this._boundaryElement}set boundaryElement(e){var a;this._boundaryElement!==e&&(this._boundaryElement=e,this._adapter.toggleHostAttribute(o1.attributes.BOUNDARY,!!this._boundaryElement,(a=this._boundaryElement)==null?void 0:a.id))}get fallbackPlacements(){return this._fallbackPlacements}set fallbackPlacements(e){this._fallbackPlacements!==e&&(this._fallbackPlacements=e)}get triggerType(){return this._triggerTypes.length===1?this._triggerTypes[0]:this._triggerTypes}set triggerType(e){this._triggerTypes!==e&&(this._adapter.isConnected&&this._detachAnchorListeners(),this._triggerTypes=Array.isArray(e)?e:[e],this._triggerTypes=this._triggerTypes.filter(a=>!!a),this._triggerTypes.length||(this._triggerTypes=o1.defaults.TRIGGER_TYPES),this._adapter.isConnected&&this._attachAnchorListeners())}};var Hg='<template><div class="forge-tooltip" part="surface"><slot></slot><div class="arrow" part="arrow"></div></div></template>',Lg='@keyframes slidein{from{opacity:0;transform:translateX(var(--_tooltip-slidein-x)) translateY(var(--_tooltip-slidein-y))}to{opacity:1;transform:translateX(0) translateY(0)}}:host{display:contents;pointer-events:none}:host([hidden]){display:none}.forge-tooltip{--_tooltip-background:var(--forge-tooltip-background, var(--forge-theme-surface-inverse, #333333));--_tooltip-color:var(--forge-tooltip-color, var(--forge-theme-on-surface-inverse, #ffffff));--_tooltip-shape:var(--forge-tooltip-shape, calc(var(--forge-shape-medium, 4px) * var(--forge-shape-factor, 1)));--_tooltip-padding:var(--forge-tooltip-padding, var(--forge-spacing-xsmall, 8px));--_tooltip-padding-block:var(--forge-tooltip-padding-block, var(--_tooltip-padding));--_tooltip-padding-inline:var(--forge-tooltip-padding-inline, var(--_tooltip-padding));--_tooltip-width:var(--forge-tooltip-width, max-content);--_tooltip-max-width:var(--forge-tooltip-max-width, 320px);--_tooltip-elevation:var(--forge-tooltip-elevation, var(--forge-theme-surface-bright-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)));--_tooltip-content-align:var(--forge-tooltip-content-align, center);--_tooltip-border-width:var(--forge-tooltip-border-width, 0);--_tooltip-border-style:var(--forge-tooltip-border-style, solid);--_tooltip-border-color:var(--forge-tooltip-border-color, var(--forge-theme-outline, #e0e0e0));--_tooltip-animation-timing:var(--forge-tooltip-animation-timing, var(--forge-animation-easing-decelerate, cubic-bezier(0, 0, 0, 1)));--_tooltip-animation-duration:var(--forge-tooltip-animation-duration, var(--forge-animation-duration-short3, 150ms));--_tooltip-animation-offset:var(--forge-tooltip-animation-offset, 24px);--_tooltip-arrow-size:var(--forge-tooltip-arrow-size, 8px);--_tooltip-arrow-height:var(--forge-tooltip-arrow-height, var(--_tooltip-arrow-size));--_tooltip-arrow-width:var(--forge-tooltip-arrow-width, var(--_tooltip-arrow-size));--_tooltip-arrow-shape:var(--forge-tooltip-arrow-shape, calc(var(--forge-shape-small, 2px) * var(--forge-shape-factor, 1)));--_tooltip-arrow-rotation:var(--forge-tooltip-arrow-rotation, 0deg);--_tooltip-arrow-top-rotation:var(--forge-tooltip-arrow-top-rotation, 315deg);--_tooltip-arrow-right-rotation:var(--forge-tooltip-arrow-right-rotation, 45deg);--_tooltip-arrow-bottom-rotation:var(--forge-tooltip-arrow-bottom-rotation, 135deg);--_tooltip-arrow-left-rotation:var(--forge-tooltip-arrow-left-rotation, 225deg)}.forge-tooltip{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-body1-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-body1-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-font-size-scale, .875)));font-weight:var(--forge-typography-body1-font-weight,400);line-height:var(--forge-typography-body1-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-line-height-scale, 1.125)));letter-spacing:var(--forge-typography-body1-letter-spacing, .0357142857em);text-transform:var(--forge-typography-body1-text-transform,inherit);text-decoration:var(--forge-typography-body1-text-decoration,inherit);position:relative;background:var(--_tooltip-background);color:var(--_tooltip-color);border-radius:var(--_tooltip-shape);border-width:var(--_tooltip-border-width);border-style:var(--_tooltip-border-style);border-color:var(--_tooltip-border-color);padding-block:var(--_tooltip-padding-block);padding-inline:var(--_tooltip-padding-inline);box-shadow:var(--_tooltip-elevation);width:var(--_tooltip-width);max-width:var(--_tooltip-max-width);pointer-events:none;text-align:var(--_tooltip-content-align);line-height:normal;white-space:normal;animation-duration:var(--_tooltip-animation-duration);animation-timing-function:var(--_tooltip-animation-timing);animation-name:slidein;animation-fill-mode:forwards}:host(:not([open])) .forge-tooltip{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:fixed;width:1px;outline:0;-webkit-appearance:none;-moz-appearance:none}.arrow{position:absolute;contain:strict;background-color:inherit;height:var(--_tooltip-arrow-height);width:var(--_tooltip-arrow-width);box-shadow:inherit;border:inherit;border-end-start-radius:var(--_tooltip-arrow-shape);rotate:var(--_tooltip-arrow-rotation);clip-path:var(--_tooltip-arrow-clip-path);--_tooltip-arrow-translate-x:0;--_tooltip-arrow-translate-y:0;--_tooltip-arrow-clip-path:polygon(0 0, 0 100%, 100% 100%)}.forge-tooltip{--_tooltip-slidein-x:0;--_tooltip-slidein-y:0}forge-overlay[open][position-placement^=top] .forge-tooltip{--_tooltip-slidein-y:var(--forge-tooltip-slidein-y, var(--_tooltip-animation-offset))}forge-overlay[open][position-placement^=top] .arrow{--_tooltip-arrow-rotation:var(--_tooltip-arrow-top-rotation);margin-block-end:var(--_tooltip-border-width)}forge-overlay[open][position-placement^=right] .forge-tooltip{--_tooltip-slidein-x:var(--forge-tooltip-slidein-x, calc(var(--_tooltip-animation-offset) * -1))}forge-overlay[open][position-placement^=right] .arrow{--_tooltip-arrow-rotation:var(--_tooltip-arrow-right-rotation);margin-inline-start:var(--_tooltip-border-width)}forge-overlay[open][position-placement^=bottom] .forge-tooltip{--_tooltip-slidein-y:var(--forge-tooltip-slidein-y, calc(var(--_tooltip-animation-offset) * -1))}forge-overlay[open][position-placement^=bottom] .arrow{--_tooltip-arrow-rotation:var(--_tooltip-arrow-bottom-rotation);margin-block-start:var(--_tooltip-border-width)}forge-overlay[open][position-placement^=left] .forge-tooltip{--_tooltip-slidein-x:var(--forge-tooltip-slidein-x, var(--_tooltip-animation-offset))}forge-overlay[open][position-placement^=left] .arrow{--_tooltip-arrow-rotation:var(--_tooltip-arrow-left-rotation);margin-inline-end:var(--_tooltip-border-width)}',p1=class extends L1(H1(M)){static get observedAttributes(){return Object.values(o1.observedAttributes)}constructor(){super(),H(this,Hg,Lg),this._core=new Kn(new Gn(this))}[T0](t){return!0}connectedCallback(){this._core.initialize()}disconnectedCallback(){this._core.destroy()}attributeChangedCallback(t,e,a){switch(t){case o1.observedAttributes.ID:this._core.syncTooltipAria();break;case o1.observedAttributes.OPEN:this.open=p(a);break;case o1.observedAttributes.TYPE:this.type=a!=null&&a.trim()?a:o1.defaults.TYPE;break;case o1.observedAttributes.TARGET:case o1.observedAttributes.ANCHOR:this.anchor=a;break;case o1.observedAttributes.DELAY:this.delay=W(a);break;case o1.observedAttributes.POSITION:case o1.observedAttributes.PLACEMENT:this.placement=a;break;case o1.observedAttributes.OFFSET:this.offset=W(a);break;case o1.observedAttributes.FLIP:this.flip=a;break;case o1.observedAttributes.BOUNDARY:this.boundary=a;break;case o1.observedAttributes.FALLBACK_PLACEMENTS:this.fallbackPlacements=a!=null&&a.trim()?da(a):null;break;case o1.observedAttributes.TRIGGER_TYPE:this.triggerType=a!=null&&a.trim()?da(a):o1.defaults.TRIGGER_TYPES;break}}};s([v()],p1.prototype,"open",2),s([v()],p1.prototype,"type",2),s([v()],p1.prototype,"anchor",2),s([v()],p1.prototype,"anchorElement",2),s([v({name:"anchor"})],p1.prototype,"target",2),s([v()],p1.prototype,"placement",2),s([v({name:"placement"})],p1.prototype,"position",2),s([v()],p1.prototype,"delay",2),s([v()],p1.prototype,"offset",2),s([v()],p1.prototype,"flip",2),s([v()],p1.prototype,"boundary",2),s([v()],p1.prototype,"boundaryElement",2),s([v()],p1.prototype,"fallbackPlacements",2),s([v()],p1.prototype,"triggerType",2),p1=s([y({name:o1.elementName,dependencies:[d2]})],p1);function ah(){x(p1)}var Ig='<template><forge-icon-button><forge-icon name="menu"></forge-icon></forge-icon-button><forge-tooltip type="label" placement="bottom">Menu</forge-tooltip></template>',io=class extends M{constructor(){super();this._iconName=Qr.name;q.define(Qr)}static get observedAttributes(){return Object.values(to.observedAttributes)}initializedCallback(){V0(this,Ig)}connectedCallback(){this._iconButtonElement=Ft(this,J.elementName),this._iconElement=this._iconButtonElement.querySelector(h1.elementName),this._iconElement.name!==this._iconName&&(this._iconElement.name=this._iconName);let e=this._iconButtonElement.getAttribute("aria-labelledby");this._forwardObserver=S0(this,to.forwardedAttributes,(a,o)=>{a==="aria-labelledby"&&!o&&(o=e),K(this._iconButtonElement,!!o,a,o!=null?o:void 0)})}disconnectedCallback(){var e;(e=this._forwardObserver)==null||e.disconnect(),this._forwardObserver=void 0}attributeChangedCallback(e,a,o){switch(e){case to.attributes.ICON:this.icon=o;break}}get icon(){return this._iconName}set icon(e){this._iconName!==e&&(this._iconName=e!=null?e:Qr.name,this._iconElement&&(this._iconElement.name=this._iconName),this.setAttribute(to.attributes.ICON,this._iconName))}};io=s([y({name:to.elementName,dependencies:[n1,p1]})],io);function oh(){x(io)}var Vg=`${b}badge`,Eg={DOT:"dot",HIDE:"hide",THEME:"theme",STRONG:"strong"},Cg={OPEN:"open"},zg={ROOT:".forge-badge"},Ag={THEME:"default"},j2={elementName:Vg,attributes:Eg,selectors:zg,classes:Cg,defaults:Ag};var Bg='<template><div class="forge-badge" part="root"><slot name="start"></slot><div class="content" part="content"><slot></slot></div><slot name="end"></slot></div></template>',Tg=':host{display:flex;box-sizing:border-box}:host([hidden]){display:none}.forge-badge{--_badge-background:var(--forge-badge-background, var(--forge-theme-secondary, #ffc107));--_badge-color:var(--forge-badge-color, var(--forge-theme-on-secondary, #000000));--_badge-shape:var(--forge-badge-shape, calc(var(--forge-shape-full, 9999px) * var(--forge-shape-factor, 1)));--_badge-height:var(--forge-badge-height, 20px);--_badge-min-width:var(--forge-badge-min-width, 0);--_badge-max-width:var(--forge-badge-max-width, auto);--_badge-padding-inline:var(--forge-badge-padding-inline, var(--forge-spacing-xsmall, 8px));--_badge-padding-block:var(--forge-badge-padding-block, 0);--_badge-border-width:var(--forge-badge-border-width, var(--forge-border-thin, 1px));--_badge-border-style:var(--forge-badge-border-style, none);--_badge-border-color:var(--forge-badge-border-color, var(--_badge-color));--_badge-gap:var(--forge-badge-gap, var(--forge-spacing-xsmall, 8px));--_badge-font-weight:var(--forge-badge-font-weight, bold);--_badge-dot-size:var(--forge-badge-dot-size, 8px);--_badge-dot-height:var(--forge-badge-dot-height, var(--_badge-dot-size));--_badge-dot-width:var(--forge-badge-dot-width, var(--_badge-dot-size));--_badge-dot-padding:var(--forge-badge-dot-padding, 0);--_badge-transition-duration:var(--forge-badge-transition-duration, var(--forge-animation-duration-short4, 200ms));--_badge-transition-easing:var(--forge-badge-transition-easing, var(--forge-animation-easing-decelerate, cubic-bezier(0, 0, 0, 1)))}.forge-badge{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-label1-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-label1-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-label-font-size-scale, .75)));font-weight:var(--forge-typography-label1-font-weight,400);line-height:var(--forge-typography-label1-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-label-line-height-scale, 1.25)));letter-spacing:var(--forge-typography-label1-letter-spacing, .0357142857em);text-transform:var(--forge-typography-label1-text-transform,inherit);text-decoration:var(--forge-typography-label1-text-decoration,inherit);background:var(--_badge-background);color:var(--_badge-color);height:var(--_badge-height);min-width:var(--_badge-min-width);max-width:var(--_badge-max-width);border-width:var(--_badge-border-width);border-style:var(--_badge-border-style);border-color:var(--_badge-border-color);display:inline-flex;align-items:center;gap:var(--_badge-gap);border-radius:var(--_badge-shape);padding-inline:var(--_badge-padding-inline);padding-block:var(--_badge-padding-block);overflow:hidden;box-sizing:border-box;pointer-events:none;transition:transform var(--_badge-transition-duration) var(--_badge-transition-easing);font-weight:var(--_badge-font-weight);text-overflow:ellipsis;white-space:nowrap}.forge-badge .content{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}::slotted(:is([slot=start],[slot=end])){font-size:inherit}:host([hide]) .forge-badge{transform:scale(0)}:host([dot]) .forge-badge{--_badge-height:var(--_badge-dot-height);--_badge-min-width:var(--forge-badge-min-width, auto);padding:var(--_badge-dot-padding);width:var(--_badge-dot-width)}:host([dot]) .forge-badge>slot{display:none}:host([theme=primary]) .forge-badge{--_badge-background:var(--forge-badge-background, var(--forge-theme-primary-container, #d1d5ed));--_badge-color:var(--forge-badge-color, var(--forge-theme-on-primary-container, #222c62))}:host([strong][theme=primary]) .forge-badge{--_badge-background:var(--forge-badge-background, var(--forge-theme-primary, #3f51b5));--_badge-color:var(--forge-badge-color, var(--forge-theme-on-primary, #ffffff))}:host([theme=secondary]) .forge-badge{--_badge-background:var(--forge-badge-background, var(--forge-theme-secondary-container, #fff0c3));--_badge-color:var(--forge-badge-color, var(--forge-theme-on-secondary-container, #8a6804))}:host([strong][theme=secondary]) .forge-badge{--_badge-background:var(--forge-badge-background, var(--forge-theme-secondary, #ffc107));--_badge-color:var(--forge-badge-color, var(--forge-theme-on-secondary, #000000))}:host([theme=tertiary]) .forge-badge{--_badge-background:var(--forge-badge-background, var(--forge-theme-tertiary-container, #d0d7ff));--_badge-color:var(--forge-badge-color, var(--forge-theme-on-tertiary-container, #213189))}:host([strong][theme=tertiary]) .forge-badge{--_badge-background:var(--forge-badge-background, var(--forge-theme-tertiary, #3d5afe));--_badge-color:var(--forge-badge-color, var(--forge-theme-on-tertiary, #ffffff))}:host([theme=success]) .forge-badge{--_badge-background:var(--forge-badge-background, var(--forge-theme-success-container, #cde0ce));--_badge-color:var(--forge-badge-color, var(--forge-theme-on-success-container, #19441b))}:host([strong][theme=success]) .forge-badge{--_badge-background:var(--forge-badge-background, var(--forge-theme-success, #2e7d32));--_badge-color:var(--forge-badge-color, var(--forge-theme-on-success, #ffffff))}:host([theme=warning]) .forge-badge{--_badge-background:var(--forge-badge-background, var(--forge-theme-warning-container, #f4d3c2));--_badge-color:var(--forge-badge-color, var(--forge-theme-on-warning-container, #712700))}:host([strong][theme=warning]) .forge-badge{--_badge-background:var(--forge-badge-background, var(--forge-theme-warning, #d14900));--_badge-color:var(--forge-badge-color, var(--forge-theme-on-warning, #ffffff))}:host(:not([strong]):is([theme=error],[theme=danger])) .forge-badge{--_badge-background:var(--forge-badge-background, var(--forge-theme-error-container-low, #f6e0e4));--_badge-color:var(--forge-badge-color, var(--forge-theme-error, #b00020))}:host([strong]:is([theme=error],[theme=danger])) .forge-badge{--_badge-background:var(--forge-badge-background, var(--forge-theme-error, #b00020));--_badge-color:var(--forge-badge-color, var(--forge-theme-on-error, #ffffff))}:host(:not([strong]):is([theme=info],[theme=info-primary])) .forge-badge{--_badge-background:var(--forge-badge-background, var(--forge-theme-info-container, #c7daf0));--_badge-color:var(--forge-badge-color, var(--forge-theme-on-info-container, #0b3768))}:host([strong]:is([theme=info],[theme=info-primary])) .forge-badge{--_badge-background:var(--forge-badge-background, var(--forge-theme-info, #1565c0));--_badge-color:var(--forge-badge-color, var(--forge-theme-on-info, #ffffff))}:host(:not([strong])[theme=info-secondary]) .forge-badge{--_badge-background:var(--forge-badge-background, var(--forge-theme-surface-container-low, #ebebeb));--_badge-color:var(--forge-badge-color, var(--forge-theme-on-surface-container-low, #000000))}:host([strong][theme=info-secondary]) .forge-badge{--_badge-background:var(--forge-badge-background, var(--forge-theme-surface-inverse, #333333));--_badge-color:var(--forge-badge-color, var(--forge-theme-on-surface-inverse, #ffffff))}',G0=class extends M{constructor(){super(),H(this,Bg,Tg)}get dot(){return this.hasAttribute(j2.attributes.DOT)}set dot(t){this.toggleAttribute(j2.attributes.DOT,t)}get theme(){var t;return(t=this.getAttribute(j2.attributes.THEME))!=null?t:j2.defaults.THEME}set theme(t){this.setAttribute(j2.attributes.THEME,t)}get strong(){return this.hasAttribute(j2.attributes.STRONG)}set strong(t){this.toggleAttribute(j2.attributes.STRONG,t)}get hide(){return this.hasAttribute(j2.attributes.HIDE)}set hide(t){this.hasAttribute(j2.attributes.HIDE)!==t&&this.toggleAttribute(j2.attributes.HIDE,t)}};G0=s([y({name:j2.elementName})],G0);var rh=class extends X1{constructor(t){super(t)}_build(){return document.createElement(j2.elementName)}};function nh(){x(G0)}var Sg=`${b}app-bar-notification-button`,kg={COUNT:"count",DOT:"dot",THEME:"theme",SHOW_BADGE:"show-badge",ICON:"icon"},Og=["aria-label","aria-labelledby"],m2={elementName:Sg,attributes:kg,forwardedAttributes:Og};var qn=class extends I{constructor(t){super(t)}setIcon(t){this._iconElement.name=t}initialize(){this._iconButtonElement=Ft(this._component,J.elementName),this._badgeElement=Ft(this._component,j2.elementName),this._iconElement=Ft(this._component,h1.elementName);let t=this._iconButtonElement.getAttribute("aria-labelledby");this._forwardObserver=S0(this._component,m2.forwardedAttributes,(e,a)=>{e==="aria-labelledby"&&!a&&(a=t),K(this._iconButtonElement,!!a,e,a!=null?a:void 0)})}destroy(){var t;(t=this._forwardObserver)==null||t.disconnect(),this._forwardObserver=void 0}setCount(t){this._badgeElement.textContent=t!=null?String(t):""}setBadgeType(t){this._badgeElement.dot=t}setBadgeTheme(t){K(this._badgeElement,!!t,j2.attributes.THEME,t)}setBadgeVisible(t){this._badgeElement.hide=!t}};var $n=class{constructor(t){this._adapter=t;this._count=0;this._dot=!1;this._showBadge=!1;this._isInitialized=!1;this._icon="notifications"}initialize(){this._adapter.initialize(),this._adapter.setBadgeType(this._dot),this._adapter.setCount(this._dot?null:this._count),this._adapter.setBadgeTheme(this._theme),this._adapter.setBadgeVisible(this._showBadge),this._adapter.setIcon(this._icon),this._isInitialized=!0}destroy(){this._adapter.destroy(),this._isInitialized=!1}get icon(){return this._icon}set icon(t){this._icon!==t&&(this._icon=t,this._isInitialized&&this._adapter.setIcon(this._icon),this._adapter.setHostAttribute(m2.attributes.ICON,this._icon))}get count(){return this._count}set count(t){this._count!==t&&(this._count=t,this._isInitialized&&(this._dot?this._adapter.setCount(null):this._adapter.setCount(this._count),typeof this._count=="string"?this._adapter.setHostAttribute(m2.attributes.COUNT,this._count):t==null&&this._adapter.removeHostAttribute(m2.attributes.COUNT)),this._adapter.setHostAttribute(m2.attributes.COUNT,this._count))}get dot(){return this._dot}set dot(t){t=!!t,this._dot!==t&&(this._dot=t,this._isInitialized&&(this._adapter.setBadgeType(this._dot),this._dot?this._adapter.setCount(null):this._adapter.setCount(this._count)),this._adapter.toggleHostAttribute(m2.attributes.DOT,this._dot))}get theme(){return this._theme}set theme(t){this._theme!==t&&(this._theme=t,this._isInitialized&&(this._adapter.setBadgeTheme(this._theme),this._adapter.setHostAttribute(m2.attributes.THEME,this._theme)))}get showBadge(){return this._showBadge}set showBadge(t){t=!!t,this._showBadge!==t&&(this._showBadge=t,this._isInitialized&&this._adapter.setBadgeVisible(this._showBadge),this._adapter.toggleHostAttribute(m2.attributes.SHOW_BADGE,this._showBadge))}};var Dg='<template><forge-icon-button><forge-icon></forge-icon><forge-badge slot="badge"></forge-badge></forge-icon-button><forge-tooltip type="label" placement="bottom">Notifications</forge-tooltip></template>',Le=class extends M{static get observedAttributes(){return[m2.attributes.COUNT,m2.attributes.DOT,m2.attributes.THEME,m2.attributes.SHOW_BADGE,m2.attributes.ICON]}constructor(){super(),q.define(i3),this._core=new $n(new qn(this))}initializedCallback(){V0(this,Dg)}connectedCallback(){this._core.initialize()}disconnectedCallback(){this._core.destroy()}attributeChangedCallback(t,e,a){switch(t){case m2.attributes.COUNT:this.count=a;break;case m2.attributes.DOT:this.dot=p(a);break;case m2.attributes.THEME:this.theme=a;break;case m2.attributes.ICON:this.icon=a;break;case m2.attributes.SHOW_BADGE:this.showBadge=p(a);break}}};s([v()],Le.prototype,"count",2),s([v()],Le.prototype,"dot",2),s([v()],Le.prototype,"theme",2),s([v()],Le.prototype,"icon",2),s([v()],Le.prototype,"showBadge",2),Le=s([y({name:m2.elementName,dependencies:[n1,p1,G0,X]})],Le);function ih(){x(Le)}var sh=`${b}list-item`,lh={SELECTED:"selected",ACTIVE:"active",VALUE:"value",DENSE:"dense",INDENTED:"indented",TWO_LINE:"two-line",THREE_LINE:"three-line",WRAP:"wrap",NONINTERACTIVE:"noninteractive",FOCUS_PROPAGATION:"focus-propagation"},Pg=w({},lh),vh={ROOT:"forge-list-item",DISABLED:"disabled",INTERACTIVE:"interactive",INTERNAL_ANCHOR:"anchor"},hh={INTERNAL_ANCHOR:"forge-list-item-anchor"},Ng={ROOT:`.${vh.ROOT}`,FORM_CONTROL_LIKE:":is([forge-list-item-interactive],forge-radio,forge-checkbox,forge-switch,input[type=checkbox],input[type=radio]):is([slot=start],[slot=end],[slot=leading],[slot=trailing]):not([forge-ignore])",BUTTON_LIKE:":is(button,[role=button][tabindex]:not([tabindex=-1]),[forge-list-item-interactive]):not([forge-ignore])",IGNORE:"[forge-ignore],[data-forge-ignore]",INTERNAL_ANCHOR:`#${hh.INTERNAL_ANCHOR}`,SLOTTED_START_END:":is([slot=start],[slot=end],[slot=leading],[slot=trailing])"},Rg={SELECT:`${sh}-select`},Fg={FOCUS_PROPAGATION:"allow"},l1={elementName:sh,observedAttributes:lh,attributes:Pg,classes:vh,selectors:Ng,ids:hh,events:Rg,defaults:Fg};var ch=`${b}list`,ph={DENSE:"dense",SELECTED_VALUE:"selected-value",INDENTED:"indented",TWO_LINE:"two-line",THREE_LINE:"three-line",WRAP:"wrap",NONINTERACTIVE:"noninteractive"},Ug=w({},ph),Wg={SCOPE_TEST:`${ch}-item-scope-test`},I1={elementName:ch,observedAttributes:ph,attributes:Ug,events:Wg};var Xn=class extends I{constructor(t){super(t)}setSelectedListItems(t){let e=this._getOwnListItems();if(e.length){let a=Array.isArray(t)?t:[t];for(let o of e)o.selected=a.some(n=>Nt(n,o.value))}}setListItemsProperty(t,e){this._getOwnListItems().forEach(a=>a[t]=e)}_getOwnListItems(){let t=Be(this._component,l1.elementName),e=[],a=o=>{let n=o.composedPath();n.slice(0,n.indexOf(this._component)).some(l=>l.localName===I1.elementName.toLowerCase())||e.push(o.target)};return this._component.addEventListener(I1.events.SCOPE_TEST,a),t.forEach(o=>o.dispatchEvent(new CustomEvent(I1.events.SCOPE_TEST,{bubbles:!0,composed:!0}))),this._component.removeEventListener(I1.events.SCOPE_TEST,a),e}};var jn=class{constructor(t){this._adapter=t;this._dense=!1;this._indented=!1;this._twoLine=!1;this._threeLine=!1;this._wrap=!1;this._noninteractive=!1}initialize(){this._selectedValue!==void 0&&this._selectedValue!==null&&this._adapter.setSelectedListItems(this._selectedValue)}get dense(){return this._dense}set dense(t){this._dense!==t&&(this._dense=t,this._adapter.setListItemsProperty("dense",this._dense),this._adapter.toggleHostAttribute(I1.attributes.DENSE,this._dense))}get indented(){return this._indented}set indented(t){this._indented!==t&&(this._indented=t,this._adapter.setListItemsProperty("indented",this._indented),this._adapter.toggleHostAttribute(I1.attributes.INDENTED,this._indented))}get selectedValue(){return this._selectedValue}set selectedValue(t){this._selectedValue!==t&&(this._selectedValue=t,this._adapter.setSelectedListItems(this._selectedValue))}get twoLine(){return this._twoLine}set twoLine(t){this._twoLine!==t&&(this._twoLine=t,this._adapter.setListItemsProperty("twoLine",this._twoLine),this._adapter.toggleHostAttribute(I1.attributes.TWO_LINE,this._twoLine))}get threeLine(){return this._threeLine}set threeLine(t){this._threeLine!==t&&(this._threeLine=t,this._adapter.setListItemsProperty("threeLine",this._threeLine),this._adapter.toggleHostAttribute(I1.attributes.THREE_LINE,this._threeLine))}get wrap(){return this._wrap}set wrap(t){this._wrap!==t&&(this._wrap=t,this._adapter.setListItemsProperty("wrap",this._wrap),this._adapter.toggleHostAttribute(I1.attributes.WRAP,this._wrap))}get noninteractive(){return this._noninteractive}set noninteractive(t){this._noninteractive!==t&&(this._noninteractive=t,this._adapter.setListItemsProperty("noninteractive",this._noninteractive),this._adapter.toggleHostAttribute(I1.attributes.NONINTERACTIVE,this._noninteractive))}};var Zn=class extends I{constructor(e){super(e);this._slotListener=this._onSlotChange.bind(this);this._rootElement=g(e,l1.selectors.ROOT),this._defaultSlotElement=g(e,"slot:not([name])"),this._startSlotElement=g(e,"slot[name=start]"),this._endSlotElement=g(e,"slot[name=end]")}get interactiveElement(){return this._interactiveElement}initialize(){let e=this._getParentList();e&&this._inheritParentListProps(e),this._component[P]({role:"listitem"},{setAttribute:!this._component.hasAttribute("role")})}destroy(){this._rootElement.removeEventListener("slotchange",this._slotListener),this._tryCleanupObservers()}initializeInteractiveObserver(e){this._interactiveStateChangeListener=e,this._rootElement.addEventListener("slotchange",this._slotListener),this._initializeInteractiveElement()}destroyInteractiveObserver(){var e;this._rootElement.removeEventListener("slotchange",this._slotListener),this._tryCleanupObservers(),(e=this._interactiveStateChangeListener)==null||e.call(this,!1),this._interactiveStateChangeListener=void 0}addRootListener(e,a,o){this._rootElement.addEventListener(e,a,o)}removeRootListener(e,a,o){this._rootElement.removeEventListener(e,a,o)}setActive(e){this._focusIndicatorElement&&(this._focusIndicatorElement.active=e)}trySelect(e){let a=this._getParentList();return(a==null?void 0:a.selectedValue)===void 0?null:(Array.isArray(a.selectedValue)?a.selectedValue:[a.selectedValue]).some(i=>Nt(i,e))}animateStateLayer(){var e;(e=this._stateLayerElement)==null||e.playAnimation()}tempDeactivateFocusIndicator(){this._focusIndicatorElement&&(this._focusIndicatorElement.active=!1)}_onSlotChange(e){["","start","end","leading","trailing"].includes(e.target.name)&&this._initializeInteractiveElement()}_initializeInteractiveElement(){this._tryCleanupObservers();let e=this._startSlotElement.assignedElements({flatten:!0}),a=this._endSlotElement.assignedElements({flatten:!0}),n=[...e,...a].find(d=>d.matches(l1.selectors.FORM_CONTROL_LIKE));if(n){this._attachInteractiveFormControl(n);return}let i=this._defaultSlotElement.assignedElements({flatten:!0}),l=i.find(d=>d.tagName==="A"),h=i.find(d=>d.matches(l1.selectors.BUTTON_LIKE)),c=g(this._component,l1.selectors.INTERNAL_ANCHOR);c&&c.remove(),this._interactiveElement=l!=null?l:h,this._setInteractive(!!this._interactiveElement),l?this._attachInteractiveAnchor(l):h&&this._attachInteractiveButtonLike(h)}_attachInteractiveFormControl(e){this._interactiveElement=e,this._setInteractive(!!this._interactiveElement),this._focusIndicatorElement&&(this._focusIndicatorElement.targetElement=e),this._syncDisabled(e),this._disabledAttrObserver=new MutationObserver(()=>this._syncDisabled(e)),this._disabledAttrObserver.observe(e,{attributes:!0,attributeFilter:["disabled","aria-disabled"]})}_attachInteractiveAnchor(e){var o;let a=(o=g(this._component,l1.selectors.INTERNAL_ANCHOR))!=null?o:document.createElement("a");a.href=e.href,a.tabIndex=-1,a.id=l1.ids.INTERNAL_ANCHOR,a.classList.add(l1.classes.INTERNAL_ANCHOR),a.setAttribute("aria-hidden","true"),this._rootElement.appendChild(a),this._focusIndicatorElement&&(this._focusIndicatorElement.targetElement=e),this._anchorAttrObserver=new MutationObserver(()=>a.href=e.href),this._anchorAttrObserver.observe(e,{attributes:!0,attributeFilter:["href"]})}_attachInteractiveButtonLike(e){this._focusIndicatorElement&&(this._focusIndicatorElement.targetElement=e),this._syncDisabled(e),this._disabledAttrObserver=new MutationObserver(()=>this._syncDisabled(e)),this._disabledAttrObserver.observe(e,{attributes:!0,attributeFilter:["disabled","aria-disabled"]})}_setInteractive(e){var a,o,n;this._rootElement.classList.toggle(l1.classes.INTERACTIVE,e),(a=this._interactiveStateChangeListener)==null||a.call(this,e),e?(this._focusIndicatorElement||(this._focusIndicatorElement=document.createElement("forge-focus-indicator"),this._focusIndicatorElement.setAttribute("part","focus-indicator"),this._focusIndicatorElement.inward=!0,this._rootElement.appendChild(this._focusIndicatorElement)),this._stateLayerElement||(this._stateLayerElement=document.createElement("forge-state-layer"),this._stateLayerElement.targetElement=this._rootElement,this._stateLayerElement.setAttribute("exportparts","surface:state-layer"),this._rootElement.appendChild(this._stateLayerElement))):((o=this._focusIndicatorElement)==null||o.remove(),this._focusIndicatorElement=void 0,(n=this._stateLayerElement)==null||n.remove(),this._stateLayerElement=void 0)}_syncDisabled(e){let a=e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true";this._rootElement.classList.toggle(l1.classes.DISABLED,a),this._setInteractive(!a)}_getParentList(){return this._component.closest(I1.elementName)}_inheritParentListProps(e){e.hasAttribute(I1.attributes.NONINTERACTIVE)&&(this._component.noninteractive=!0),e.hasAttribute(I1.attributes.DENSE)&&(this._component.dense=!0),e.hasAttribute(I1.attributes.INDENTED)&&(this._component.indented=!0),e.hasAttribute(I1.attributes.TWO_LINE)&&(this._component.twoLine=!0),e.hasAttribute(I1.attributes.THREE_LINE)&&(this._component.threeLine=!0)}_tryCleanupObservers(){var e,a;(e=this._disabledAttrObserver)==null||e.disconnect(),this._disabledAttrObserver=void 0,(a=this._anchorAttrObserver)==null||a.disconnect(),this._anchorAttrObserver=void 0}};var Qn=class{constructor(t){this._adapter=t;this._selected=!1;this._active=!1;this._dense=!1;this._indented=!1;this._twoLine=!1;this._threeLine=!1;this._wrap=!1;this._noninteractive=!1;this._focusPropagation=l1.defaults.FOCUS_PROPAGATION;this._interactiveStateChangeListener=this._onInteractiveStateChange.bind(this);this._mousedownListener=this._onMousedown.bind(this);this._clickListener=this._onClick.bind(this);this._keydownListener=this._onKeydown.bind(this)}initialize(){this._adapter.initialize(),this._noninteractive?this._adapter.destroyInteractiveObserver():this._adapter.initializeInteractiveObserver(this._interactiveStateChangeListener)}destroy(){this._adapter.destroy()}_onMousedown(t){let a=t.composedPath().filter(o=>o.nodeType===Node.ELEMENT_NODE).some(o=>o===this._adapter.interactiveElement);(this._focusPropagation==="off"||!a)&&t.preventDefault()}_onKeydown(t){var o,n;let a=t.composedPath().filter(i=>i.nodeType===Node.ELEMENT_NODE).some(i=>i.matches(l1.selectors.SLOTTED_START_END));if((t.key==="Enter"||t.key===" ")&&t.stopPropagation(),a){(t.key==="Enter"||t.key===" ")&&this._adapter.animateStateLayer(),t.key==="Enter"&&((o=this._adapter.interactiveElement)==null||o.click());return}t.key===" "&&(t.preventDefault(),(n=this._adapter.interactiveElement)==null||n.click())}_onClick(t){var c,d,u;let e=t.composedPath().filter(_=>_.nodeType===Node.ELEMENT_NODE);if(e.some(_=>_.matches(l1.selectors.IGNORE)))return;let o=_=>_.matches("label[for]");if(e.filter(o).some(_=>{var L;return _.htmlFor===((L=this._adapter.interactiveElement)==null?void 0:L.id)})){t.stopPropagation();return}let i=_=>_.tagName==="A"&&_.id===l1.ids.INTERNAL_ANCHOR;if(e.some(i)){let _=t.ctrlKey||t.metaKey,L=(c=this._adapter.interactiveElement)==null?void 0:c.hasAttribute("target");t.preventDefault(),t.stopImmediatePropagation();let C=_&&!L;C&&((d=this._adapter.interactiveElement)==null||d.setAttribute("target","_blank")),this._clickInteractiveElement(),C&&((u=this._adapter.interactiveElement)==null||u.removeAttribute("target"));return}if(!e.some(_=>_===this._adapter.interactiveElement)){t.stopImmediatePropagation(),this._clickInteractiveElement();return}this._dispatchSelectEvent()}_clickInteractiveElement(){var t,e;this._focusPropagation==="allow"&&((t=this._adapter.interactiveElement)==null||t.focus()),this._adapter.tempDeactivateFocusIndicator(),(e=this._adapter.interactiveElement)==null||e.click()}_onInteractiveStateChange(t){t&&!this._noninteractive?(this._adapter.addRootListener("mousedown",this._mousedownListener,{capture:!0}),this._adapter.addHostListener("click",this._clickListener,{capture:!0}),this._adapter.addHostListener("keydown",this._keydownListener)):(this._adapter.removeRootListener("mousedown",this._mousedownListener,{capture:!0}),this._adapter.removeHostListener("click",this._clickListener,{capture:!0}),this._adapter.removeHostListener("keydown",this._keydownListener))}_dispatchSelectEvent(){let t={value:this._value},e=new CustomEvent(l1.events.SELECT,{bubbles:!0,detail:t});this._adapter.dispatchHostEvent(e)}get selected(){return this._selected}set selected(t){t=!!t,this._selected!==t&&(this._selected=t,this._adapter.toggleHostAttribute(l1.attributes.SELECTED,this._selected))}get active(){return this._active}set active(t){t=!!t,this._active!==t&&(this._active=t,this._adapter.setActive(this._active),this._adapter.toggleHostAttribute(l1.attributes.ACTIVE,this._active))}get value(){return this._value}set value(t){this._value=t;let e=this._adapter.trySelect(this._value);e!==null&&e!==this._selected&&(this.selected=e)}get dense(){return this._dense}set dense(t){t=!!t,this._dense!==t&&(this._dense=t,this._adapter.toggleHostAttribute(l1.attributes.DENSE,this._dense))}get indented(){return this._indented}set indented(t){t=!!t,this._indented!==t&&(this._indented=t,this._adapter.toggleHostAttribute(l1.attributes.INDENTED,this._indented))}get twoLine(){return this._twoLine}set twoLine(t){t=!!t,this._twoLine!==t&&(this._twoLine=t,this._adapter.toggleHostAttribute(l1.attributes.TWO_LINE,this._twoLine))}get threeLine(){return this._threeLine}set threeLine(t){t=!!t,this._threeLine!==t&&(this._threeLine=t,this._adapter.toggleHostAttribute(l1.attributes.THREE_LINE,this._threeLine))}get wrap(){return this._wrap}set wrap(t){t=!!t,this._wrap!==t&&(this._wrap=t,this._adapter.toggleHostAttribute(l1.attributes.WRAP,this._wrap))}get noninteractive(){return this._noninteractive}set noninteractive(t){t=!!t,this._noninteractive!==t&&(this._noninteractive=t,this._adapter.isConnected&&(this._noninteractive?this._adapter.destroyInteractiveObserver():this._adapter.initializeInteractiveObserver(this._interactiveStateChangeListener)),this._adapter.toggleHostAttribute(l1.attributes.NONINTERACTIVE,this._noninteractive))}get focusPropagation(){return this._focusPropagation}set focusPropagation(t){["allow","off"].includes(t)||(t=l1.defaults.FOCUS_PROPAGATION),this._focusPropagation!==t&&(this._focusPropagation=t,this._adapter.toggleHostAttribute(l1.attributes.FOCUS_PROPAGATION,this._focusPropagation!==l1.defaults.FOCUS_PROPAGATION,this._focusPropagation))}};var Gg='<template><div class="forge-list-item" part="root"><slot name="start"><slot name="leading"></slot></slot><div class="text-container" part="text-container"><slot></slot><slot name="secondary-text"></slot><slot name="tertiary-text"></slot></div><slot name="end"><slot name="trailing"></slot></slot></div></template>',Yg=':host{--_list-item-indent:var(--forge-list-item-indent, var(--forge-spacing-xxlarge, 48px));--_list-item-dense-indent:var(--forge-list-item-dense-indent, var(--forge-spacing-xxlarge, 48px));--_list-item-disabled-cursor:var(--forge-list-item-disabled-cursor, not-allowed)}:host{display:block;outline:0}:host([hidden]){display:none}.forge-list-item{--_list-item-background:var(--forge-list-item-background, transparent);--_list-item-shape:var(--forge-list-item-shape, 0);--_list-item-padding:var(--forge-list-item-padding, 0 var(--forge-spacing-medium, 16px));--_list-item-margin:var(--forge-list-item-margin, 0);--_list-item-height:var(--forge-list-item-height, 48px);--_list-item-dense-height:var(--forge-list-item-dense-height, 32px);--_list-item-cursor:var(--forge-list-item-cursor, pointer);--_list-item-gap:var(--forge-list-item-gap, var(--forge-spacing-large, 24px));--_list-item-text-color:var(--forge-list-item-text-color, var(--forge-theme-text-medium, rgba(0, 0, 0, 0.6)));--_list-item-text-font-size:var(--forge-list-item-text-font-size, var(--forge-typography-body2-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-font-size-scale, 1))));--_list-item-text-font-weight:var(--forge-list-item-text-font-weight, var(--forge-typography-body2-font-weight, 400));--_list-item-text-line-height:var(--forge-list-item-text-line-height, 1.5rem);--_list-item-selected-color:var(--forge-list-item-selected-color, var(--forge-theme-primary, #3f51b5));--_list-item-selected-background:var(--forge-list-item-selected-background, var(--_list-item-selected-color));--_list-item-selected-opacity:var(--forge-list-item-selected-opacity, 0.08);--_list-item-selected-start-color:var(--forge-list-item-selected-start-color, var(--_list-item-selected-color));--_list-item-selected-end-color:var(--forge-list-item-selected-end-color, var(--_list-item-selected-color));--_list-item-selected-text-color:var(--forge-list-item-selected-text-color, var(--forge-theme-text-medium, rgba(0, 0, 0, 0.6)));--_list-item-disabled-opacity:var(--forge-list-item-disabled-opacity, 0.38);--_list-item-one-line-height:var(--forge-list-item-one-line-height, var(--_list-item-height));--_list-item-two-line-height:var(--forge-list-item-two-line-height, var(--forge-list-item-height, 72px));--_list-item-three-line-height:var(--forge-list-item-three-line-height, var(--forge-list-item-height, 88px));--_list-item-dense-one-line-height:var(--forge-list-item-dense-one-line-height, var(--_list-item-dense-height));--_list-item-dense-two-line-height:var(--forge-list-item-dense-two-line-height, var(--forge-list-item-dense-height, 56px));--_list-item-dense-three-line-height:var(--forge-list-item-dense-three-line-height, var(--forge-list-item-dense-height, 72px));--_list-item-dense-font-size:var(--forge-list-item-dense-font-size, 0.875rem);--_list-item-dense-gap:var(--forge-list-item-dense-gap, var(--forge-spacing-xsmall, 8px));--_list-item-start-selected-color:var(--forge-list-item-start-selected-color, var(--_list-item-selected-color));--_list-item-end-selected-color:var(--forge-list-item-end-selected-color, var(--_list-item-selected-color));--_list-item-wrap-padding:var(--forge-list-item-wrap-padding, var(--forge-spacing-xsmall, 8px) var(--forge-spacing-medium, 16px))}.forge-list-item{position:relative;display:flex;gap:var(--_list-item-gap);align-items:center;box-sizing:border-box;outline:0;text-decoration:none;border-radius:var(--_list-item-shape);-webkit-tap-highlight-color:transparent;background-color:var(--_list-item-background);height:var(--_list-item-height);min-height:var(--_list-item-height);padding:var(--_list-item-padding);margin:var(--_list-item-margin)}.forge-list-item.interactive{cursor:var(--_list-item-cursor)}.forge-list-item.disabled{cursor:var(--_list-item-disabled-cursor);opacity:var(--_list-item-disabled-opacity)}.forge-list-item.disabled ::slotted(button){cursor:var(--_list-item-disabled-cursor)}.anchor{position:absolute;inset:0}:host([two-line]) .forge-list-item{height:var(--_list-item-two-line-height);min-height:var(--_list-item-two-line-height)}:host([three-line]) .forge-list-item{height:var(--_list-item-three-line-height);min-height:var(--_list-item-three-line-height)}:host([dense]) .forge-list-item{--_list-item-gap:var(--_list-item-dense-gap);height:var(--_list-item-dense-one-line-height);min-height:var(--_list-item-dense-one-line-height)}:host([dense]) .text-container{font-size:var(--_list-item-dense-font-size)}:host([dense][indented]){margin-inline-start:var(--_list-item-dense-indent)}:host([dense][two-line]) .forge-list-item{height:var(--_list-item-dense-two-line-height);min-height:var(--_list-item-dense-two-line-height)}:host([dense][three-line]) .forge-list-item{height:var(--_list-item-dense-three-line-height);min-height:var(--_list-item-dense-three-line-height)}:host([selected]) .forge-list-item{color:var(--_list-item-selected-color)}:host([selected]) .forge-list-item::before{content:"";position:absolute;inset:0;border-radius:inherit;opacity:var(--_list-item-selected-opacity);background-color:var(--_list-item-selected-background);pointer-events:none}:host([selected]) .forge-list-item ::slotted([slot=end]),:host([selected]) .forge-list-item ::slotted([slot=leading]),:host([selected]) .forge-list-item ::slotted([slot=start]),:host([selected]) .forge-list-item ::slotted([slot=trailing]){color:var(--_list-item-selected-color);isolation:isolate}:host([selected]) .forge-list-item ::slotted([slot=leading]),:host([selected]) .forge-list-item ::slotted([slot=start]){color:var(--_list-item-start-selected-color)}:host([selected]) .forge-list-item ::slotted([slot=end]),:host([selected]) .forge-list-item ::slotted([slot=trailing]){color:var(--_list-item-end-selected-color)}:host([selected]) .text-container{color:var(--_list-item-selected-color)}:host([selected]) forge-state-layer{--forge-state-layer-color:var(--_list-item-selected-color)}:host([indented]){margin-inline-start:var(--_list-item-indent)}.text-container{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-body2-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));letter-spacing:var(--forge-typography-body2-letter-spacing, .015625em);text-transform:var(--forge-typography-body2-text-transform,inherit);text-decoration:var(--forge-typography-body2-text-decoration,inherit);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-sizing:border-box;isolation:isolate;font-size:var(--_list-item-text-font-size);font-weight:var(--_list-item-text-font-weight);line-height:var(--_list-item-text-line-height);flex:1;contain:layout}slot[name=secondary-text]::slotted(*),slot[name=tertiary-text]::slotted(*){-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-body1-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-body1-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-font-size-scale, .875)));font-weight:var(--forge-typography-body1-font-weight,400);line-height:var(--forge-typography-body1-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-line-height-scale, 1.125)));letter-spacing:var(--forge-typography-body1-letter-spacing, .0357142857em);text-transform:var(--forge-typography-body1-text-transform,inherit);text-decoration:var(--forge-typography-body1-text-decoration,inherit);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--_list-item-text-color);display:block}:host([selected]) slot[name=secondary-text]::slotted(*),:host([selected]) slot[name=tertiary-text]::slotted(*){color:var(--_list-item-selected-text-color)}::slotted(:is(button,[role=button][tabindex],[forge-list-item-button])){appearance:none;cursor:var(--_list-item-cursor);border:none;padding-block:0;padding-inline:0;margin:0;box-sizing:border-box;background:0 0;color:inherit;outline:0;font:inherit;user-select:auto;text-align:inherit;letter-spacing:inherit;word-spacing:inherit;display:inline}::slotted(a){outline:0;color:inherit!important;text-decoration:none!important}::slotted([slot=end]),::slotted([slot=leading]),::slotted([slot=start]),::slotted([slot=trailing]){color:var(--_list-item-text-color);display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;fill:currentColor}:host(:not([noninteractive])) ::slotted(:is(forge-checkbox,forge-radio,forge-switch):is([slot=start],[slot=end],[slot=leading],[slot=trailing]):not([forge-ignore])){--forge-focus-indicator-display:none;--forge-state-layer-display:none}:host([selected]) ::slotted([slot=leading]),:host([selected]) ::slotted([slot=start]){color:var(--_list-item-start-selected-color)}:host([selected]) ::slotted([slot=end]),:host([selected]) ::slotted([slot=trailing]){color:var(--_list-item-end-selected-color)}:host([wrap]) .forge-list-item{--_list-item-padding:var(--_list-item-wrap-padding);height:auto}:host([wrap]) .text-container{white-space:normal;overflow:visible;text-overflow:clip;line-height:normal}:host([wrap]) slot[name=secondary-text]::slotted(*),:host([wrap]) slot[name=tertiary-text]::slotted(*){white-space:normal;overflow:visible;text-overflow:clip;line-height:normal}forge-focus-indicator{z-index:1;--forge-focus-indicator-shape:calc(var(--forge-shape-medium, 4px) * var(--forge-shape-factor, 1))}forge-state-layer{border-radius:inherit}',j1=class extends H1(L1(M)){static get observedAttributes(){return Object.values(l1.observedAttributes)}constructor(){super(),H(this,Gg,Yg),this._adapter=new Zn(this),this._core=new Qn(this._adapter)}connectedCallback(){this._core.initialize()}disconnectedCallback(){this._core.destroy()}attributeChangedCallback(t,e,a){switch(t){case l1.observedAttributes.SELECTED:this.selected=p(a);break;case l1.observedAttributes.ACTIVE:this.active=p(a);break;case l1.observedAttributes.VALUE:this.value=a;break;case l1.observedAttributes.DENSE:this.dense=p(a);break;case l1.observedAttributes.INDENTED:this.indented=p(a);break;case l1.observedAttributes.TWO_LINE:this.twoLine=p(a);break;case l1.observedAttributes.THREE_LINE:this.threeLine=p(a);break;case l1.observedAttributes.WRAP:this.wrap=p(a);break;case l1.observedAttributes.NONINTERACTIVE:this.noninteractive=p(a);break;case l1.observedAttributes.FOCUS_PROPAGATION:this.focusPropagation=a;break}}};s([v()],j1.prototype,"selected",2),s([v()],j1.prototype,"active",2),s([v()],j1.prototype,"value",2),s([v()],j1.prototype,"dense",2),s([v()],j1.prototype,"indented",2),s([v()],j1.prototype,"twoLine",2),s([v()],j1.prototype,"threeLine",2),s([v()],j1.prototype,"wrap",2),s([v()],j1.prototype,"noninteractive",2),s([v()],j1.prototype,"focusPropagation",2),j1=s([y({name:l1.elementName,dependencies:[r1,Q]})],j1);function dh(){x(j1)}var Kg='<template><div class="forge-list" part="root"><div class="inner"><slot></slot></div></div></template>',qg=":host{--_list-navlist-spacing:var(--forge-list-navlist-spacing, var(--forge-spacing-xxsmall, 4px));--_list-navlist-margin:var(--forge-list-navlist-margin, var(--forge-spacing-xxsmall, 4px) var(--forge-spacing-xsmall, 8px));--_list-navlist-height:var(--forge-list-navlist-height, 40px);--_list-navlist-padding:var(--forge-list-navlist-padding, 0 var(--forge-spacing-xsmall, 8px));--_list-navlist-shape:var(--forge-list-navlist-shape, calc(var(--forge-shape-medium, 4px) * var(--forge-shape-factor, 1)));--_list-navlist-font-size:var(--forge-list-navlist-font-size, calc(var(--forge-typography-font-size, 1rem) * 0.875));--_list-navlist-font-weight:var(--forge-list-navlist-font-weight, 500)}:host{display:block}:host([hidden]){display:none}:host([navlist]){margin-block:var(--_list-navlist-spacing);--forge-list-item-height:var(--_list-navlist-height);--forge-list-item-margin:var(--_list-navlist-margin);--forge-list-item-padding:var(--_list-navlist-padding);--forge-list-item-shape:var(--_list-navlist-shape);--forge-list-item-text-font-size:var(--_list-navlist-font-size);--forge-list-item-text-font-weight:var(--_list-navlist-font-weight)}.forge-list{--_list-spacing:var(--forge-list-spacing, 0);--_list-container-color:var(--forge-list-container-color, transparent)}.forge-list{outline:0;background-color:var(--_list-container-color);margin:0;border-radius:inherit;min-width:inherit}.inner{display:grid;gap:var(--_list-spacing);min-width:0}.inner ::slotted(*){min-width:0}",h2=class extends H1(L1(M)){static get observedAttributes(){return Object.values(I1.observedAttributes)}constructor(){super(),H(this,Kg,qg),this._core=new jn(new Xn(this))}connectedCallback(){this[P]({role:"list"},{setAttribute:!this.hasAttribute("role")}),this._core.initialize()}attributeChangedCallback(t,e,a){switch(t){case I1.attributes.DENSE:this.dense=p(a);break;case I1.attributes.INDENTED:this.indented=p(a);break;case I1.attributes.SELECTED_VALUE:this.selectedValue=a;break;case I1.attributes.TWO_LINE:this.twoLine=p(a);break;case I1.attributes.THREE_LINE:this.threeLine=p(a);break;case I1.attributes.WRAP:this.wrap=p(a);break;case I1.attributes.NONINTERACTIVE:this.noninteractive=p(a);break}}};s([v()],h2.prototype,"dense",2),s([v()],h2.prototype,"indented",2),s([v()],h2.prototype,"selectedValue",2),s([v()],h2.prototype,"twoLine",2),s([v()],h2.prototype,"threeLine",2),s([v()],h2.prototype,"wrap",2),s([v()],h2.prototype,"noninteractive",2),h2=s([y({name:I1.elementName,dependencies:[j1]})],h2);function mh(){x(h2)}var $g={POPUP_CLASSES:"popup-classes",OPTION_LIMIT:"option-limit",OBSERVE_SCROLL:"observe-scroll",OBSERVE_SCROLL_THRESHOLD:"observe-scroll-threshold",SYNC_POPUP_WIDTH:"sync-popup-width",CONSTRAIN_POPUP_WIDTH:"constrain-popup-width",WRAP_OPTION_TEXT:"wrap-option-text",CHECKBOX_ELEMENT:"data-list-dropdown-checkbox",DATA_ALLOW_FOCUS:"data-list-dropdown-allow-focus"},Xg={GROUP_WRAPPER:"forge-list-dropdown__group-wrapper"},i2={attributes:$g,classes:Xg},gh={options:[],syncWidth:!1,selectedValues:[],multiple:!1};var R2=class extends M{static get observedAttributes(){return[i2.attributes.POPUP_CLASSES,i2.attributes.OPTION_LIMIT,i2.attributes.OBSERVE_SCROLL,i2.attributes.OBSERVE_SCROLL_THRESHOLD,i2.attributes.SYNC_POPUP_WIDTH,i2.attributes.CONSTRAIN_POPUP_WIDTH,i2.attributes.WRAP_OPTION_TEXT]}constructor(){super()}attributeChangedCallback(t,e,a){switch(t){case i2.attributes.POPUP_CLASSES:this.popupClasses=a;break;case i2.attributes.OPTION_LIMIT:this.optionLimit=W(a);break;case i2.attributes.OBSERVE_SCROLL:this.observeScroll=p(a);break;case i2.attributes.OBSERVE_SCROLL_THRESHOLD:this.observeScrollThreshold=W(a);break;case i2.attributes.SYNC_POPUP_WIDTH:this.syncPopupWidth=p(a);break;case i2.attributes.CONSTRAIN_POPUP_WIDTH:this.constrainPopupWidth=p(a);break;case i2.attributes.WRAP_OPTION_TEXT:this.wrapOptionText=p(a);break}}};s([v()],R2.prototype,"popupClasses",2),s([v()],R2.prototype,"popupHeaderBuilder",2),s([v()],R2.prototype,"popupFooterBuilder",2),s([v()],R2.prototype,"syncPopupWidth",2),s([v()],R2.prototype,"optionLimit",2),s([v()],R2.prototype,"observeScroll",2),s([v()],R2.prototype,"observeScrollThreshold",2),s([v()],R2.prototype,"constrainPopupWidth",2),s([v()],R2.prototype,"wrapOptionText",2);var Jn=class extends I{constructor(t){super(t),this._initializeOverlayElement()}get overlayElement(){return this._overlayElement}};var m4=`${b}popover`,wh={ARROW:"arrow",ANIMATION_TYPE:"animation-type",TRIGGER_TYPE:"trigger-type",LONGPRESS_DELAY:"longpress-delay",PERSISTENT_HOVER:"persistent-hover",HOVER_DELAY:"hover-delay",HOVER_DISMISS_DELAY:"hover-dismiss-delay",PRESET:"preset"},uh=t1(w({},wh),{OPEN:"open",HOST:"forge-popover-host",CONSTRAIN_VIEWPORT_WIDTH:"constrain-viewport-width"}),jg={ARROW:"arrow",EXITING:"exiting"},Zg={SURFACE:".forge-popover",HOST:`:is(forge-dialog,forge-popover,[${uh.HOST}])`},Qg={ARROW:"arrow"},Jg={BEFORETOGGLE:`${m4}-beforetoggle`,TOGGLE:`${m4}-toggle`},t8={TRIGGER_TYPE:"click",HOVER_DELAY:0,PRESET:"popover"},Z={elementName:m4,observedAttributes:wh,attributes:uh,classes:jg,selectors:Zg,parts:Qg,events:Jg,defaults:t8},_h=500;var ti=class extends Jn{constructor(t){super(t),this._surfaceElement=g(this._component,Z.selectors.SURFACE)}destroy(){this._surfaceElement.classList.remove(Z.classes.EXITING),this.cleanupAnchorElement()}_initializeOverlayElement(){this._overlayElement=g(this._component,B.elementName)}tryLocateAnchorElement(t){this._overlayElement.anchorElement=this._tryFindAnchorElement(t),this._updateAnchorExpandedState(this._overlayElement.open)}initializeAnchorElement(){this._updateAnchorExpandedState(this._overlayElement.open)}cleanupAnchorElement(){this._updateAnchorExpandedState(null)}addAnchorListener(t,e){var a;this._overlayElement.anchorElement instanceof zt||(a=this._overlayElement.anchorElement)==null||a.addEventListener(t,e)}removeAnchorListener(t,e){var a;this._overlayElement.anchorElement instanceof zt||(a=this._overlayElement.anchorElement)==null||a.removeEventListener(t,e)}addSurfaceListener(t,e){this._surfaceElement.addEventListener(t,e)}removeSurfaceListener(t,e){this._surfaceElement.removeEventListener(t,e)}setOverlayOpen(t){this._surfaceElement.classList.remove(Z.classes.EXITING),this._overlayElement.open=t,this._updateAnchorExpandedState(t)}async hide(){return U5()?(this._surfaceElement.classList.remove(Z.classes.EXITING),this._overlayElement.open=!1,this._updateAnchorExpandedState(!1),Promise.resolve()):(await Ko(),this._surfaceElement.checkVisibility()?new Promise(t=>{this._surfaceElement.addEventListener("animationend",()=>{this._surfaceElement.classList.remove(Z.classes.EXITING),this._overlayElement.open=!1,this._updateAnchorExpandedState(!1),t()},{once:!0}),this._surfaceElement.classList.add(Z.classes.EXITING)}):(this._overlayElement.open=!1,this._updateAnchorExpandedState(!1),Promise.resolve()))}toggleArrow(t){var e;t?(this._arrowElement||(this._arrowElement=document.createElement("div"),this._arrowElement.classList.add(Z.classes.ARROW),this._arrowElement.setAttribute("part",Z.parts.ARROW)),this._surfaceElement.appendChild(this._arrowElement),this._overlayElement.arrowElement=this._arrowElement):((e=this._arrowElement)==null||e.remove(),this._arrowElement=void 0,this._overlayElement.arrowElement=void 0)}isChildElement(t){return this._component.contains(t)}tryAutofocus(){let t=()=>{if(this._component.open&&this._overlayElement.isConnected&&!this._component.matches(":focus-within")){let e=this._component.querySelector("[autofocus]");if(e)return e.focus(),!0}return!1};t()||window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>{t()})})}hasFocus(){return this._component.matches(":focus-within")}captureFocusedElement(){return this._component.ownerDocument.activeElement}_tryFindAnchorElement(t){if(t){let a=this._component.getRootNode().querySelector(`#${t}`);if(a)return a}return this._component.previousElementSibling?this._component.previousElementSibling:null}_updateAnchorExpandedState(t){var e;this._overlayElement.anchorElement&&!(this._overlayElement.anchorElement instanceof zt)&&!((e=this.overlayElement.anchorElement)!=null&&e.hasAttribute("aria-hidden"))&&this._overlayElement.anchorElement.setAttribute("aria-expanded",String(!!t))}};var ei=class{constructor(t){this._adapter=t;this._lightDismissListener=e=>this._onOverlayLightDismiss(e)}initialize(){this.persistent||this._adapter.overlayElement.addEventListener(B.events.LIGHT_DISMISS,this._lightDismissListener)}destroy(){this._adapter.overlayElement.removeEventListener(B.events.LIGHT_DISMISS,this._lightDismissListener)}get overlayElement(){return this._adapter.overlayElement}get anchorElement(){return this._adapter.overlayElement.anchorElement}set anchorElement(t){this._adapter.overlayElement.anchorElement=t}get anchor(){return this._adapter.overlayElement.anchor}set anchor(t){this._adapter.overlayElement.anchor=t}get noAnchor(){return this._adapter.overlayElement.noAnchor}set noAnchor(t){this._adapter.overlayElement.noAnchor!==t&&(this._adapter.overlayElement.noAnchor=t,this._adapter.toggleHostAttribute(B.attributes.NO_ANCHOR,this._adapter.overlayElement.noAnchor))}get open(){return this._adapter.overlayElement.open}set open(t){this._adapter.overlayElement.open===t&&(this._adapter.overlayElement.open=t,this._adapter.toggleHostAttribute(B.attributes.OPEN,this._adapter.overlayElement.open))}get inline(){return this._adapter.overlayElement.inline}set inline(t){this._adapter.overlayElement.inline!==t&&(this._adapter.overlayElement.inline=t,this._adapter.toggleHostAttribute(B.attributes.INLINE,this._adapter.overlayElement.inline))}get placement(){return this._adapter.overlayElement.placement}set placement(t){this._adapter.overlayElement.placement!==t&&(this._adapter.overlayElement.placement=t,this._adapter.setHostAttribute(B.attributes.PLACEMENT,this._adapter.overlayElement.placement))}get positionStrategy(){return this._adapter.overlayElement.positionStrategy}set positionStrategy(t){this._adapter.overlayElement.positionStrategy!==t&&(this._adapter.overlayElement.positionStrategy=t,this._adapter.setHostAttribute(B.attributes.POSITION_STRATEGY,this._adapter.overlayElement.positionStrategy))}get offset(){return this._adapter.overlayElement.offset}set offset(t){this._adapter.overlayElement.offset!==t&&(this._adapter.overlayElement.offset=t)}get hide(){return this._adapter.overlayElement.hide}set hide(t){this._adapter.overlayElement.hide!==t&&(this._adapter.overlayElement.hide=t,this._adapter.toggleHostAttribute(B.attributes.HIDE,this._adapter.overlayElement.hide!==B.defaults.HIDE,String(this._adapter.overlayElement.hide)))}get persistent(){return this._adapter.overlayElement.persistent}set persistent(t){this._adapter.overlayElement.persistent!==t&&(this._adapter.overlayElement.persistent=t,this.persistent?this._adapter.overlayElement.removeEventListener(B.events.LIGHT_DISMISS,this._lightDismissListener):this._adapter.overlayElement.addEventListener(B.events.LIGHT_DISMISS,this._lightDismissListener),this._adapter.toggleHostAttribute(B.attributes.PERSISTENT,this._adapter.overlayElement.persistent))}get shift(){return this._adapter.overlayElement.shift}set shift(t){this._adapter.overlayElement.shift!==t&&(this._adapter.overlayElement.shift=t,this._adapter.toggleHostAttribute(B.attributes.SHIFT,this._adapter.overlayElement.shift))}get flip(){return this._adapter.overlayElement.flip}set flip(t){this._adapter.overlayElement.flip!==t&&(this._adapter.overlayElement.flip=t,this._adapter.toggleHostAttribute(B.attributes.FLIP,this._adapter.overlayElement.flip!==B.defaults.FLIP,String(this._adapter.overlayElement.flip)))}get boundary(){return this._adapter.overlayElement.boundary}set boundary(t){this._adapter.overlayElement.boundary!==t&&(this._adapter.overlayElement.boundary=t,this._adapter.toggleHostAttribute(B.attributes.BOUNDARY,!!this._adapter.overlayElement.boundary,this._adapter.overlayElement.boundary))}get boundaryElement(){return this._adapter.overlayElement.boundaryElement}set boundaryElement(t){this._adapter.overlayElement.boundaryElement!==t&&(this._adapter.overlayElement.boundaryElement=t)}get fallbackPlacements(){return this._adapter.overlayElement.fallbackPlacements}set fallbackPlacements(t){this._adapter.overlayElement.fallbackPlacements!==t&&(this._adapter.overlayElement.fallbackPlacements=t)}position(){this._adapter.overlayElement.position()}};var ai=class extends Yn(ei){constructor(e){super(e);this._anchor=null;this._arrow=!1;this._animationType="zoom";this._triggerTypes=[Z.defaults.TRIGGER_TYPE];this._persistentHover=!1;this._hoverDismissDelay=_h;this._hoverDelay=Z.defaults.HOVER_DELAY;this._preset=Z.defaults.PRESET;this._previouslyFocusedElement=null;this._anchorClickListener=this._onAnchorClick.bind(this);this._anchorDoubleClickListener=this._onAnchorDoubleClick.bind(this);this._anchorMouseenterListener=this._onAnchorMouseenter.bind(this);this._anchorMouseleaveListener=this._onAnchorMouseleave.bind(this);this._popoverMouseenterListener=this._onPopoverMouseenter.bind(this);this._popoverMouseleaveListener=this._onPopoverMouseleave.bind(this);this._mousemoveListener=this._onMousemove.bind(this);this._anchorFocusListener=this._onAnchorFocus.bind(this);this._anchorBlurListener=this._onAnchorBlur.bind(this);this._popoverBlurListener=this._onPopoverBlur.bind(this);this._contextmenuListener=this._onContextmenu.bind(this)}initialize(){super.initialize(),this._adapter.tryApplyGlobalConfiguration(["placement","animationType","positionStrategy","shift","hide","flip","boundaryElement","fallbackPlacements","persistent","arrow"]),this.anchorElement||this._adapter.tryLocateAnchorElement(this._anchor),this._initializeTriggerListeners(),this._adapter.initializeAnchorElement()}destroy(){super.destroy(),this._adapter.destroy(),window.clearTimeout(this._hoverTimeout),window.clearTimeout(this._hoverAnchorLeaveTimeout),window.clearTimeout(this._popoverMouseleaveTimeout),this._previouslyFocusedElement=null,this.open&&this._closePopover(),this._removeTriggerListeners()}hideAsync(){return this._closePopover()}async _onOverlayLightDismiss(e){e.preventDefault(),this._requestDismiss(e.detail.reason)}dispatchBeforeToggleEvent({reason:e}){if(this._dispatchBeforetoggleEvent().defaultPrevented)return!1;let o=this._previouslyFocusedElement;return this._closePopover().then(()=>{this._dispatchToggleEvent(),e==="escape"&&o&&this._adapter.hasFocus()&&o.focus()}),!0}_openPopover({dispatchEvents:e=!0}={}){this.open||e&&this._dispatchBeforetoggleEvent().defaultPrevented||(this._previouslyFocusedElement=this._adapter.captureFocusedElement(),this._adapter.setOverlayOpen(!0),this.overlayElement.persistent||Vt.instance.add(this._adapter.hostElement),this._adapter.toggleHostAttribute(Z.attributes.OPEN,this.open),this._adapter.tryAutofocus(),e&&this._dispatchToggleEvent())}async _closePopover(){this.open&&(this._previouslyFocusedElement=null,Vt.instance.remove(this._adapter.hostElement),this._animationType==="none"?this._adapter.setOverlayOpen(!1):await this._adapter.hide(),this._adapter.toggleHostAttribute(Z.attributes.OPEN,this.open))}_dispatchBeforetoggleEvent(){let e=new CustomEvent(Z.events.BEFORETOGGLE,{detail:{oldState:this.open?"open":"closed",newState:this.open?"closed":"open"},bubbles:!1,cancelable:!0});return this._adapter.dispatchHostEvent(e),e}_dispatchToggleEvent(){this._adapter.dispatchHostEvent(new CustomEvent(Z.events.TOGGLE,{detail:{oldState:this.open?"closed":"open",newState:this.open?"open":"closed"},bubbles:!1}))}_initializeTriggerListeners(){if(this._triggerTypes.includes("manual"))return;let e=[...this._triggerTypes];e.includes("contextmenu")?e=["contextmenu"]:(e.includes("hover")&&e.includes("focus")&&e.splice(e.indexOf("focus"),1),e.includes("click")&&e.includes("doubleclick")&&e.splice(e.indexOf("doubleclick"),1));let a={click:()=>this._adapter.addAnchorListener("click",this._anchorClickListener),hover:()=>{this._adapter.addAnchorListener("mouseenter",this._anchorMouseenterListener),this._adapter.addAnchorListener("focusin",this._anchorFocusListener)},focus:()=>this._adapter.addAnchorListener("focusin",this._anchorFocusListener),longpress:()=>{this._adapter.overlayElement.anchorElement&&!(this._adapter.overlayElement.anchorElement instanceof zt)&&this._startLongpressListener(this._adapter.overlayElement.anchorElement)},doubleclick:()=>this._adapter.addAnchorListener("dblclick",this._anchorDoubleClickListener),contextmenu:()=>this._adapter.addDocumentListener("contextmenu",this._contextmenuListener)};e.forEach(o=>{var n;return(n=a[o])==null?void 0:n.call(a)})}_removeTriggerListeners(){let e={click:()=>this._adapter.removeAnchorListener("click",this._anchorClickListener),hover:()=>{this._adapter.removeAnchorListener("mouseenter",this._anchorMouseenterListener),this._adapter.removeAnchorListener("mouseleave",this._anchorMouseleaveListener),this._adapter.removeAnchorListener("focusin",this._anchorFocusListener),this._adapter.removeAnchorListener("focusout",this._anchorBlurListener),this._adapter.removeHostListener("focusout",this._popoverBlurListener),this._tryRemoveHoverListeners()},focus:()=>{this._adapter.removeAnchorListener("focusin",this._anchorFocusListener),this._adapter.removeAnchorListener("focusout",this._anchorBlurListener),this._adapter.removeHostListener("focusout",this._popoverBlurListener)},longpress:()=>{this._adapter.overlayElement.anchorElement&&!(this._adapter.overlayElement.anchorElement instanceof zt)&&this._stopLongpressListener(this._adapter.overlayElement.anchorElement)},doubleclick:()=>this._adapter.removeAnchorListener("dblclick",this._anchorDoubleClickListener),contextmenu:()=>this._adapter.removeDocumentListener("contextmenu",this._contextmenuListener)};this._triggerTypes.forEach(a=>{var o;return(o=e[a])==null?void 0:o.call(e)})}_startHoverListeners(){this._adapter.addDocumentListener("mousemove",this._mousemoveListener),this._adapter.addSurfaceListener("mouseenter",this._popoverMouseenterListener),this._adapter.addSurfaceListener("mouseleave",this._popoverMouseleaveListener)}_tryRemoveHoverListeners(){this._adapter.removeDocumentListener("mousemove",this._mousemoveListener),this._adapter.removeSurfaceListener("mouseenter",this._popoverMouseenterListener),this._adapter.removeSurfaceListener("mouseleave",this._popoverMouseleaveListener)}_requestDismiss(e){Vt.instance.requestDismiss(this._adapter.hostElement,{reason:e})}_requestClose(e){Vt.instance.dismiss(this._adapter.hostElement,{reason:e})}_onHoverClose(){var e;if(this.open){if(this._currentHoverCoords){let a=document.elementFromPoint(this._currentHoverCoords.x,this._currentHoverCoords.y);if(a&&(this._adapter.isChildElement(a)||!(this._adapter.overlayElement.anchorElement instanceof zt)&&((e=this._adapter.overlayElement.anchorElement)==null?void 0:e.contains(a))))return}window.clearTimeout(this._hoverTimeout),this._tryRemoveHoverListeners(),this._requestClose("hover")}}_onAnchorClick(e){this.open?this._requestClose("click"):this._openPopover()}_onAnchorDoubleClick(){this.open?this._requestClose("doubleclick"):this._openPopover()}_onAnchorMouseenter(){window.clearTimeout(this._hoverAnchorLeaveTimeout),this._adapter.overlayElement.open||(this._persistentHover||this._adapter.addAnchorListener("mouseleave",this._anchorMouseleaveListener),this._hoverDelay?this._hoverTimeout=window.setTimeout(()=>{this._openPopover()},this._hoverDelay):this._openPopover())}_onAnchorMouseleave(){this._startHoverListeners(),window.clearTimeout(this._hoverTimeout),this._hoverAnchorLeaveTimeout=window.setTimeout(()=>{this._hoverAnchorLeaveTimeout=void 0,this._onHoverClose()},this._hoverDismissDelay)}_onPopoverMouseenter(){window.clearTimeout(this._hoverAnchorLeaveTimeout),window.clearTimeout(this._popoverMouseleaveTimeout)}_onPopoverMouseleave(){this._popoverMouseleaveTimeout=window.setTimeout(()=>{this._popoverMouseleaveTimeout=void 0,this._onHoverClose()},this._hoverDismissDelay)}_onMousemove(e){this._currentHoverCoords={x:e.pageX,y:e.pageY}}_onAnchorFocus(e){this._adapter.overlayElement.open||(this._adapter.addAnchorListener("focusout",this._anchorBlurListener),this._openPopover())}_onAnchorBlur(e){this._adapter.isChildElement(e.relatedTarget)?this._adapter.addHostListener("focusout",this._popoverBlurListener):this._requestClose("focus")}_onPopoverBlur({relatedTarget:e}){var n,i;let a=this._adapter.hasFocus(),o=!(this._adapter.overlayElement.anchorElement instanceof zt)&&(((n=this._adapter.overlayElement.anchorElement)==null?void 0:n.matches(":focus-within"))||((i=this._adapter.overlayElement.anchorElement)==null?void 0:i.contains(e)));!a&&!o&&this._requestClose("focus")}_onLongpress(){this.open||this._openPopover()}_onContextmenu(e){e.preventDefault(),this.anchorElement=zt.fromEvent(e),this.open||this._openPopover()}get open(){return this._adapter.overlayElement.open}set open(e){this._adapter.overlayElement.open!==e&&(e?this._openPopover({dispatchEvents:!1}):this._closePopover())}get anchorElement(){return this._adapter.overlayElement.anchorElement}set anchorElement(e){this._adapter.overlayElement.anchorElement!==e&&(this._adapter.isConnected&&(this._removeTriggerListeners(),this._adapter.cleanupAnchorElement()),this._adapter.overlayElement.anchorElement=e,this._adapter.isConnected&&(this._initializeTriggerListeners(),this._adapter.initializeAnchorElement()))}get anchor(){return this._anchor}set anchor(e){this._anchor!==e&&(this._anchor=e,this._adapter.isConnected&&(this._removeTriggerListeners(),this._adapter.cleanupAnchorElement(),this._adapter.tryLocateAnchorElement(this._anchor),this._initializeTriggerListeners(),this._adapter.initializeAnchorElement()))}get arrow(){return this._arrow}set arrow(e){e=!!e,this._arrow!==e&&(this._arrow=e,this._adapter.toggleArrow(e),this._adapter.toggleHostAttribute(Z.attributes.ARROW,e))}get animationType(){return this._animationType}set animationType(e){this._animationType!==e&&(this._animationType=e,this._adapter.toggleHostAttribute(Z.attributes.ANIMATION_TYPE,!!this._animationType,this._animationType))}get triggerType(){return this._triggerTypes.length===1?this._triggerTypes[0]:this._triggerTypes}set triggerType(e){this._triggerTypes!==e&&(this._adapter.isConnected&&this._removeTriggerListeners(),this._triggerTypes=Array.isArray(e)?e:[e],this._triggerTypes=this._triggerTypes.filter(a=>!!a),this._triggerTypes.length||(this._triggerTypes=[Z.defaults.TRIGGER_TYPE]),this._adapter.isConnected&&this._initializeTriggerListeners())}get longpressDelay(){return this._longpressDelay}set longpressDelay(e){this._longpressDelay!==e&&(this._longpressDelay=e,this._adapter.setHostAttribute(Z.attributes.LONGPRESS_DELAY,String(this._longpressDelay)))}get persistentHover(){return this._persistentHover}set persistentHover(e){e=!!e,this._persistentHover!==e&&(this._persistentHover=e,this._persistentHover&&this._triggerTypes.includes("hover")&&this._adapter.isConnected&&(this._removeTriggerListeners(),this._initializeTriggerListeners()),this._adapter.toggleHostAttribute(Z.attributes.PERSISTENT_HOVER,e))}get hoverDelay(){return this._hoverDelay}set hoverDelay(e){(isNaN(e)||e<0)&&(e=Z.defaults.HOVER_DELAY),this._hoverDelay!==e&&(this._hoverDelay=e,this._adapter.setHostAttribute(Z.attributes.HOVER_DELAY,String(this._hoverDelay)))}get hoverDismissDelay(){return this._hoverDismissDelay}set hoverDismissDelay(e){this._hoverDismissDelay!==e&&(this._hoverDismissDelay=e,this._adapter.setHostAttribute(Z.attributes.HOVER_DISMISS_DELAY,String(this._hoverDismissDelay)))}get preset(){var e;return(e=this._preset)!=null?e:Z.defaults.PRESET}set preset(e){if(e=e!=null?e:Z.defaults.PRESET,this._preset!==e){this._preset=e;let a=e!==Z.defaults.PRESET;this._adapter.toggleHostAttribute(Z.attributes.PRESET,a,this._preset)}}};var T2=class extends M{constructor(){super()}position(){this._core.position()}attributeChangedCallback(t,e,a){switch(t){case B.observedAttributes.ANCHOR:this.anchor=a;break;case B.observedAttributes.NO_ANCHOR:this.noAnchor=p(a);break;case B.observedAttributes.OPEN:this.open=p(a);break;case B.observedAttributes.INLINE:this.inline=p(a);break;case B.observedAttributes.PLACEMENT:this.placement=a;break;case B.observedAttributes.POSITION_STRATEGY:this.positionStrategy=a;break;case B.observedAttributes.HIDE:this.hide=a;break;case B.observedAttributes.PERSISTENT:this.persistent=p(a);break;case B.observedAttributes.SHIFT:this.shift=p(a);break;case B.observedAttributes.FLIP:this.flip=a;break;case B.observedAttributes.BOUNDARY:this.boundary=a;break}}get overlay(){return this._core.overlayElement}};s([v()],T2.prototype,"anchorElement",2),s([v()],T2.prototype,"anchor",2),s([v()],T2.prototype,"noAnchor",2),s([v()],T2.prototype,"open",2),s([v()],T2.prototype,"inline",2),s([v()],T2.prototype,"placement",2),s([v()],T2.prototype,"positionStrategy",2),s([v()],T2.prototype,"offset",2),s([v()],T2.prototype,"shift",2),s([v()],T2.prototype,"hide",2),s([v()],T2.prototype,"persistent",2),s([v()],T2.prototype,"flip",2),s([v()],T2.prototype,"boundary",2),s([v()],T2.prototype,"boundaryElement",2),s([v()],T2.prototype,"fallbackPlacements",2);var e8='<template><forge-overlay exportparts="root:overlay"><div class="forge-popover" part="surface"><slot></slot></div></forge-overlay></template>',a8='@keyframes zoomin{from{transform:scale(.8)}to{transform:scale(1)}}@keyframes zoomout{from{transform:scale(1)}to{transform:scale(.8)}}@keyframes slidein{from{transform:translateX(var(--_popover-slidein-x)) translateY(var(--_popover-slidein-y))}to{transform:translateX(0) translateY(0)}}@keyframes slideout{from{transform:translateX(0) translateY(0)}to{transform:translateX(var(--_popover-slidein-x)) translateY(var(--_popover-slidein-y))}}@keyframes fadein{from{opacity:0}to{opacity:1}}@keyframes fadeout{from{opacity:1}to{opacity:0}}@layer base,animation,preset,reduced-motion; @layer base{:host{display:contents;--forge-theme-surface:var(--forge-theme-surface-bright, #ffffff)}:host([hidden]){display:none}forge-overlay{--_popover-width:var(--forge-popover-width, auto);--_popover-height:var(--forge-popover-height, auto);--_popover-min-width:var(--forge-popover-min-width, none);--_popover-max-width:var(--forge-popover-max-width, none);--_popover-min-height:var(--forge-popover-min-height, none);--_popover-max-height:var(--forge-popover-max-height, none);--_popover-background:var(--forge-popover-background, var(--forge-theme-surface-bright, #ffffff));--_popover-border-radius:var(--forge-popover-border-radius, calc(var(--forge-shape-medium, 4px) * var(--forge-shape-factor, 1)));--_popover-box-shadow:var(--forge-popover-box-shadow, var(--forge-theme-surface-bright-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)));--_popover-border-width:var(--forge-popover-border-width, 0);--_popover-border-style:var(--forge-popover-border-style, solid);--_popover-border-color:var(--forge-popover-border-color, var(--forge-theme-outline, #e0e0e0));--_popover-overflow:var(--forge-popover-overflow, initial);--_popover-arrow-size:var(--forge-popover-arrow-size, 12px);--_popover-arrow-height:var(--forge-popover-arrow-height, var(--_popover-arrow-size));--_popover-arrow-width:var(--forge-popover-arrow-width, var(--_popover-arrow-size));--_popover-arrow-background-color:var(--forge-popover-arrow-background-color, var(--_popover-background));--_popover-arrow-top-rotation:var(--forge-popover-arrow-top-rotation, 135deg);--_popover-arrow-right-rotation:var(--forge-popover-arrow-right-rotation, 225deg);--_popover-arrow-bottom-rotation:var(--forge-popover-arrow-bottom-rotation, 315deg);--_popover-arrow-left-rotation:var(--forge-popover-arrow-left-rotation, 45deg);--_popover-arrow-border-width:var(--forge-popover-arrow-border-width, var(--forge-border-thin, 1px));--_popover-animation-enter-duration:var(--forge-popover-animation-enter-duration, var(--forge-animation-duration-short3, 150ms));--_popover-animation-enter-timing:var(--forge-popover-animation-enter-timing, var(--forge-animation-easing-decelerate, cubic-bezier(0, 0, 0, 1)));--_popover-animation-exit-duration:var(--forge-popover-animation-exit-duration, var(--forge-animation-duration-short2, 100ms));--_popover-animation-exit-timing:var(--forge-popover-animation-exit-timing, var(--forge-animation-easing-accelerate, cubic-bezier(0.3, 0, 1, 1)));--_popover-zoom-enter-duration:var(--forge-popover-zoom-enter-duration, var(--_popover-animation-enter-duration));--_popover-zoom-enter-timing:var(--forge-popover-zoom-enter-timing, var(--_popover-animation-enter-timing));--_popover-zoom-exit-duration:var(--forge-popover-zoom-exit-duration, var(--_popover-animation-exit-duration));--_popover-zoom-exit-timing:var(--forge-popover-zoom-exit-timing, var(--_popover-animation-exit-timing));--_popover-slide-enter-duration:var(--forge-popover-slide-enter-duration, var(--_popover-animation-enter-duration));--_popover-slide-enter-timing:var(--forge-popover-slide-enter-timing, var(--_popover-animation-enter-timing));--_popover-slide-exit-duration:var(--forge-popover-slide-exit-duration, var(--_popover-animation-exit-duration));--_popover-slide-exit-timing:var(--forge-popover-slide-exit-timing, var(--_popover-animation-exit-timing));--_popover-slide-offset:var(--forge-popover-slide-offset, 24px);--_popover-fade-enter-duration:var(--forge-popover-fade-enter-duration, var(--forge-animation-duration-medium2, 300ms));--_popover-fade-enter-timing:var(--forge-popover-fade-enter-timing, var(--_popover-animation-enter-timing));--_popover-fade-exit-duration:var(--forge-popover-fade-exit-duration, var(--_popover-animation-exit-duration));--_popover-fade-exit-timing:var(--forge-popover-fade-exit-timing, var(--_popover-animation-exit-timing));--_popover-position-inline-start:var(--forge-popover-position-inline-start, auto);--_popover-position-inline-end:var(--forge-popover-position-inline-end, auto);--_popover-position-block-start:var(--forge-popover-position-block-start, auto);--_popover-position-block-end:var(--forge-popover-position-block-end, auto);--_popover-preset-dropdown-max-height:var(--forge-popover-preset-dropdown-max-height, 256px);--_popover-preset-dropdown-overflow:var(--forge-popover-preset-dropdown-overflow, auto visible);--_popover-preset-dropdown-padding-block:var(--forge-popover-preset-dropdown-padding-block, var(--forge-spacing-xsmall, 8px));--_popover-preset-list-padding-block:var(--forge-popover-preset-list-padding-block, var(--forge-spacing-xsmall, 8px))}.forge-popover{--_popover-arrow-translate-x:0;--_popover-arrow-translate-y:0;--_popover-arrow-rotation:0;--_popover-slidein-x:0;--_popover-slidein-y:0;--_popover-zoomin-origin:50% 50% 0;--_popover-arrow-clip-path:polygon(calc(var(--_popover-border-width) * -1) calc(var(--_popover-border-width) * -1), calc(100% + var(--_popover-border-width)) calc(var(--_popover-border-width) * -1), calc(100% + var(--_popover-border-width)) calc(100% + var(--_popover-border-width)))}.forge-popover{position:relative;overflow:var(--_popover-overflow);box-sizing:border-box;background:var(--_popover-background);border-radius:var(--_popover-border-radius);box-shadow:var(--_popover-box-shadow);border-width:var(--_popover-border-width);border-style:var(--_popover-border-style);border-color:var(--_popover-border-color);width:var(--_popover-width);height:var(--_popover-height);min-width:var(--_popover-min-width);max-width:var(--_popover-max-width);min-height:var(--_popover-min-height);max-height:var(--_popover-max-height)}.forge-popover::-webkit-scrollbar{height:var(--forge-scrollbar-height,16px);width:var(--forge-scrollbar-width,16px)}.forge-popover::-webkit-scrollbar-track{background-color:var(--forge-scrollbar-track-container,var(--forge-theme-surface-container-low,#ebebeb))}.forge-popover::-webkit-scrollbar-track:hover{background-color:var(--forge-scrollbar-track-container-hover,var(--forge-theme-surface-container-low,#ebebeb))}.forge-popover::-webkit-scrollbar-corner{background-color:var(--forge-scrollbar-track-container,var(--forge-theme-surface-container-low,#ebebeb))}.forge-popover::-webkit-scrollbar-thumb{height:var(--forge-scrollbar-thumb-min-height,32px);width:var(--forge-scrollbar-thumb-min-width,32px);border-radius:var(--forge-scrollbar-border-radius,calc(var(--forge-shape-full,9999px) * var(--forge-shape-factor,1)));border-width:var(--forge-scrollbar-border-width,3px);border-style:solid;border-color:transparent;background-color:var(--forge-scrollbar-thumb-container,var(--forge-theme-surface-container-medium,#c2c2c2));background-clip:content-box}.forge-popover::-webkit-scrollbar-thumb:hover{background-color:var(--forge-scrollbar-thumb-container-hover,var(--forge-theme-surface-container-high,#9e9e9e))}:host([open][no-anchor]) forge-overlay{--forge-overlay-position-inline-start:var(--_popover-position-inline-start);--forge-overlay-position-inline-end:var(--_popover-position-inline-end);--forge-overlay-position-block-start:var(--_popover-position-block-start);--forge-overlay-position-block-end:var(--_popover-position-block-end)}:host([arrow]) .forge-popover{--_popover-border-width:var(--_popover-arrow-border-width)}:host([arrow]) .arrow{position:absolute;background-color:var(--_popover-arrow-background-color);height:var(--_popover-arrow-height);width:var(--_popover-arrow-width);box-shadow:var(--_popover-box-shadow);border-width:var(--_popover-border-width);border-style:var(--_popover-border-style);border-color:var(--_popover-border-color);transform:translate(var(--_popover-arrow-translate-x),var(--_popover-arrow-translate-y)) rotate(var(--_popover-arrow-rotation));clip-path:var(--_popover-arrow-clip-path)}:host([arrow]) forge-overlay[position-placement^=top] .arrow{--_popover-arrow-translate-y:var(--forge-popover-arrow-translate-y, calc(var(--_popover-border-width) * -1));--_popover-arrow-rotation:var(--forge-popover-arrow-rotation, var(--_popover-arrow-top-rotation))}:host([arrow]) forge-overlay[position-placement^=right] .arrow{--_popover-arrow-translate-x:var(--forge-popover-arrow-translate-x, var(--_popover-border-width));--_popover-arrow-rotation:var(--forge-popover-arrow-rotation, var(--_popover-arrow-right-rotation))}:host([arrow]) forge-overlay[position-placement^=bottom] .arrow{--_popover-arrow-translate-y:var(--forge-popover-arrow-translate-y, var(--_popover-border-width));--_popover-arrow-rotation:var(--forge-popover-arrow-rotation, var(--_popover-arrow-bottom-rotation))}:host([arrow]) forge-overlay[position-placement^=left] .arrow{--_popover-arrow-translate-x:var(--forge-popover-arrow-translate-x, calc(var(--_popover-border-width) * -1));--_popover-arrow-rotation:var(--forge-popover-arrow-rotation, var(--_popover-arrow-left-rotation))}}@layer preset{:host([preset=dropdown]) .forge-popover{--_popover-max-height:var(--_popover-preset-dropdown-max-height);--_popover-overflow:var(--_popover-preset-dropdown-overflow);padding-block:var(--_popover-preset-dropdown-padding-block)}:host([preset=list]) .forge-popover{padding-block:var(--_popover-preset-list-padding-block)}:host([constrain-viewport-width]) .forge-popover{--_popover-max-width:var(--forge-popover-max-width, 100vw)}}@layer animation{:host(:not([animation-type])) .forge-popover,:host([animation-type=zoom]) .forge-popover{animation-duration:var(--_popover-zoom-enter-duration);animation-timing-function:var(--_popover-zoom-enter-timing);animation-name:fadein,zoomin;transform-origin:var(--_popover-zoomin-origin)}:host(:not([animation-type])) forge-overlay[open][position-placement^=top]:not([position-placement*="-"]) .forge-popover,:host([animation-type=zoom]) forge-overlay[open][position-placement^=top]:not([position-placement*="-"]) .forge-popover{--_popover-zoomin-origin:var(--forge-popover-zoomin-origin, bottom center)}:host(:not([animation-type])) forge-overlay[open][position-placement^=top][position-placement$=-start] .forge-popover,:host([animation-type=zoom]) forge-overlay[open][position-placement^=top][position-placement$=-start] .forge-popover{--_popover-zoomin-origin:var(--forge-popover-zoomin-origin, bottom left)}:host(:not([animation-type])) forge-overlay[open][position-placement^=top][position-placement$=-end] .forge-popover,:host([animation-type=zoom]) forge-overlay[open][position-placement^=top][position-placement$=-end] .forge-popover{--_popover-zoomin-origin:var(--forge-popover-zoomin-origin, bottom right)}:host(:not([animation-type])) forge-overlay[open][position-placement^=right]:not([position-placement*="-"]) .forge-popover,:host([animation-type=zoom]) forge-overlay[open][position-placement^=right]:not([position-placement*="-"]) .forge-popover{--_popover-zoomin-origin:var(--forge-popover-zoomin-origin, left center)}:host(:not([animation-type])) forge-overlay[open][position-placement^=right][position-placement$=-start] .forge-popover,:host([animation-type=zoom]) forge-overlay[open][position-placement^=right][position-placement$=-start] .forge-popover{--_popover-zoomin-origin:var(--forge-popover-zoomin-origin, left top)}:host(:not([animation-type])) forge-overlay[open][position-placement^=right][position-placement$=-end] .forge-popover,:host([animation-type=zoom]) forge-overlay[open][position-placement^=right][position-placement$=-end] .forge-popover{--_popover-zoomin-origin:var(--forge-popover-zoomin-origin, left bottom)}:host(:not([animation-type])) forge-overlay[open][position-placement^=bottom]:not([position-placement*="-"]) .forge-popover,:host([animation-type=zoom]) forge-overlay[open][position-placement^=bottom]:not([position-placement*="-"]) .forge-popover{--_popover-zoomin-origin:var(--forge-popover-zoomin-origin, top center)}:host(:not([animation-type])) forge-overlay[open][position-placement^=bottom][position-placement$=-start] .forge-popover,:host([animation-type=zoom]) forge-overlay[open][position-placement^=bottom][position-placement$=-start] .forge-popover{--_popover-zoomin-origin:var(--forge-popover-zoomin-origin, top left)}:host(:not([animation-type])) forge-overlay[open][position-placement^=bottom][position-placement$=-end] .forge-popover,:host([animation-type=zoom]) forge-overlay[open][position-placement^=bottom][position-placement$=-end] .forge-popover{--_popover-zoomin-origin:var(--forge-popover-zoomin-origin, top right)}:host(:not([animation-type])) forge-overlay[open][position-placement^=left]:not([position-placement*="-"]) .forge-popover,:host([animation-type=zoom]) forge-overlay[open][position-placement^=left]:not([position-placement*="-"]) .forge-popover{--_popover-zoomin-origin:var(--forge-popover-zoomin-origin, right center)}:host(:not([animation-type])) forge-overlay[open][position-placement^=left][position-placement$=-start] .forge-popover,:host([animation-type=zoom]) forge-overlay[open][position-placement^=left][position-placement$=-start] .forge-popover{--_popover-zoomin-origin:var(--forge-popover-zoomin-origin, right top)}:host(:not([animation-type])) forge-overlay[open][position-placement^=left][position-placement$=-end] .forge-popover,:host([animation-type=zoom]) forge-overlay[open][position-placement^=left][position-placement$=-end] .forge-popover{--_popover-zoomin-origin:var(--forge-popover-zoomin-origin, right bottom)}:host(:not([animation-type])) forge-overlay[open] .forge-popover.exiting,:host([animation-type=zoom]) forge-overlay[open] .forge-popover.exiting{animation-duration:var(--_popover-zoom-exit-duration);animation-timing-function:var(--_popover-zoom-exit-timing);animation-name:fadeout,zoomout}:host([animation-type=slide]) .forge-popover{animation-duration:var(--_popover-slide-enter-duration);animation-timing-function:var(--_popover-slide-enter-timing);animation-name:fadein,slidein}:host([animation-type=slide]) forge-overlay[open][position-placement^=top] .forge-popover{--_popover-slidein-y:var(--forge-popover-slidein-y, var(--_popover-slide-offset))}:host([animation-type=slide]) forge-overlay[open][position-placement^=right] .forge-popover{--_popover-slidein-x:var(--forge-popover-slidein-x, calc(var(--_popover-slide-offset) * -1))}:host([animation-type=slide]) forge-overlay[open][position-placement^=bottom] .forge-popover{--_popover-slidein-y:var(--forge-popover-slidein-y, calc(var(--_popover-slide-offset) * -1))}:host([animation-type=slide]) forge-overlay[open][position-placement^=left] .forge-popover{--_popover-slidein-x:var(--forge-popover-slidein-x, var(--_popover-slide-offset))}:host([animation-type=slide]) forge-overlay[open] .forge-popover.exiting{animation-duration:var(--_popover-slide-exit-duration);animation-timing-function:var(--_popover-slide-exit-timing);animation-name:fadeout,slideout}:host([animation-type=fade]) .forge-popover{animation-duration:var(--_popover-fade-enter-duration);animation-timing-function:var(--_popover-fade-enter-timing);animation-name:fadein}:host([animation-type=fade]) .forge-popover.exiting{animation-duration:var(--_popover-fade-exit-duration);animation-timing-function:var(--_popover-fade-exit-timing);animation-name:fadeout}}forge-overlay[clipped-x] .forge-popover{width:auto;min-width:0;max-width:100vw;overflow-x:auto}forge-overlay[clipped-y] .forge-popover{height:auto;min-height:0;max-height:100vh;overflow-y:auto}@layer reduced-motion{@media (prefers-reduced-motion:reduce){.forge-popover{animation:none}.forge-popover.exiting{animation:none}}}',P1=class extends T2{static get observedAttributes(){return[...Object.values(B.observedAttributes),...Object.values(Z.observedAttributes)]}[T0](t){return this._core.dispatchBeforeToggleEvent(t)}constructor(){super(),H(this,e8,a8),this._core=new ai(new ti(this))}connectedCallback(){this._core.initialize()}disconnectedCallback(){this._core.destroy()}attributeChangedCallback(t,e,a){switch(t){case Z.observedAttributes.ARROW:this.arrow=p(a);return;case Z.observedAttributes.ANIMATION_TYPE:this.animationType=a;return;case Z.observedAttributes.TRIGGER_TYPE:this.triggerType=a!=null&&a.trim()?da(a):Z.defaults.TRIGGER_TYPE;return;case Z.observedAttributes.LONGPRESS_DELAY:this.longpressDelay=W(a);return;case Z.observedAttributes.PERSISTENT_HOVER:this.persistentHover=p(a);return;case Z.observedAttributes.HOVER_DELAY:this.hoverDelay=W(a);return;case Z.observedAttributes.HOVER_DISMISS_DELAY:this.hoverDismissDelay=W(a);return;case Z.observedAttributes.PRESET:this.preset=a;return}super.attributeChangedCallback(t,e,a)}hideAsync(){return this._core.hideAsync()}};s([v()],P1.prototype,"arrow",2),s([v()],P1.prototype,"animationType",2),s([v()],P1.prototype,"triggerType",2),s([v()],P1.prototype,"longpressDelay",2),s([v()],P1.prototype,"persistentHover",2),s([v()],P1.prototype,"hoverDelay",2),s([v()],P1.prototype,"hoverDismissDelay",2),s([v()],P1.prototype,"preset",2),P1=s([y({name:Z.elementName,dependencies:[d2]})],P1);function fh(){x(P1)}var Ha=`${b}menu`,o8={POPUP:"forge-menu__popup",MENU:"mdc-menu"},r8={TOGGLE:`.${Ha}__toggle,[${Ha}-toggle],forge-button,forge-icon-button,forge-fab,button,[type=button],[role=button],a,forge-list-item,[tabindex]:not([tabindex^="-"])`,MENU_LIST:"forge-list"},n8={OPEN:"open",PLACEMENT:"placement",SELECTED_INDEX:"selected-index",SELECTED_VALUE:"selected-value",DENSE:"dense",ICON_CLASS:"icon-class",PERSIST_SELECTION:"persist-selection",MODE:"mode",SYNC_POPUP_WIDTH:"sync-popup-width",POPUP_CLASSES:"popup-classes",OPTION_LIMIT:"option-limit",OBSERVE_SCROLL:"observe-scroll",OBSERVE_SCROLL_THRESHOLD:"observe-scroll-threshold"},i8={SELECT:`${Ha}-select`,OPEN:`${Ha}-open`,CLOSE:`${Ha}-close`,ACTIVE_CHANGE:`${Ha}-active-change`},s8={CHILD_MOUSE_LEAVE_TIMEOUT:300,POPUP_MOUSE_LEAVE_TIMEOUT:500},e1={elementName:Ha,classes:o8,selectors:r8,attributes:n8,events:i8,numbers:s8};var l8=`${b}linear-progress`,v8={INDETERMINATE:"forge-linear-progress--indeterminate"},h8={ROOT:".forge-linear-progress",TRACK:".track",PROGRESS:".primary-bar"},xh={DETERMINATE:"determinate",PROGRESS:"progress",BUFFER:"buffer",THEME:"theme"},c8=w({},xh),S2={elementName:l8,classes:v8,selectors:h8,attributes:c8,observedAttributes:xh};var oi=class extends I{constructor(t){super(t),this._rootElement=g(t,S2.selectors.ROOT),this._trackElement=g(t,S2.selectors.TRACK),this._progressElement=g(t,S2.selectors.PROGRESS)}initialize(){this._component[P]({role:"progressbar",ariaValueMin:"0",ariaValueMax:"1",ariaValueNow:this._component.determinate?`${this._component.progress}`:null})}setDeterminate(t){this._component[P]({ariaValueNow:t?`${this._component.progress}`:null}),t?this.setProgress(this._component.progress):(this._trackElement.style.transform="scaleX(100%)",this._progressElement.style.transform=""),this._rootElement.classList.toggle(S2.classes.INDETERMINATE,!t)}setProgress(t){this._component[P]({ariaValueNow:`${t}`}),this._progressElement.style.transform=`scaleX(${t*100}%)`}setBuffer(t){this._trackElement.style.transform=`scaleX(${t*100}%)`}};var ri=class{constructor(t){this._adapter=t;this._determinate=!1;this._progress=0;this._buffer=1;this._theme="primary"}initialize(){this._adapter.initialize()}get determinate(){return this._determinate}set determinate(t){t=!!t,this._determinate!==t&&(this._determinate=t,this._adapter.setBuffer(this._determinate?this._buffer:1),this._adapter.setProgress(this._determinate?this._progress:0),this._adapter.setDeterminate(this._determinate),this._adapter.toggleHostAttribute(S2.attributes.DETERMINATE,this._determinate))}get progress(){return this._progress}set progress(t){(t==null||t<0||t>1||isNaN(t))&&(t=0),this._progress!==t&&(this._progress=t,this._determinate&&this._adapter.setProgress(this._progress),this._adapter.setHostAttribute(S2.attributes.PROGRESS,String(this._progress)))}get buffer(){return this._buffer}set buffer(t){(t==null||t<0||isNaN(t))&&(t=0),this._buffer!==t&&(this._buffer=t,this._determinate&&this._adapter.setBuffer(this._buffer),this._adapter.setHostAttribute(S2.attributes.BUFFER,this._buffer.toString()))}get theme(){return this._theme}set theme(t){this._theme!==t&&(this._theme=t,this._adapter.toggleHostAttribute(S2.attributes.THEME,!!this._theme,this._theme))}};var p8='<template><div class="forge-linear-progress forge-linear-progress--indeterminate" part="progressbar"><div class="dots"></div><div class="track"></div><div class="bar primary-bar"><div class="bar-inner"></div></div><div class="bar secondary-bar"><div class="bar-inner"></div></div></div></template>',d8=`:host{--_linear-progress-track-height:var(--forge-linear-progress-track-height, 4px)}:host{display:block;position:relative;min-inline-size:80px;block-size:var(--_linear-progress-track-height);contain:strict;content-visibility:auto}:host([hidden]){display:none}.forge-linear-progress{--_linear-progress-track-color:var(--forge-linear-progress-track-color, var(--forge-theme-tertiary-container, #d0d7ff));--_linear-progress-track-shape:var(--forge-linear-progress-track-shape, calc(var(--forge-shape-full, 9999px) * var(--forge-shape-factor, 1)));--_linear-progress-indicator-color:var(--forge-linear-progress-indicator-color, var(--forge-theme-tertiary, #3d5afe));--_linear-progress-indicator-height:var(--forge-linear-progress-indicator-height, var(--_linear-progress-track-height));--_linear-progress-determinate-duration:var(--forge-linear-progress-determinate-duration, var(--forge-animation-duration-medium1, 250ms));--_linear-progress-determinate-easing:var(--forge-linear-progress-determinate-easing, cubic-bezier(0.4, 0, 0.6, 1));--_linear-progress-indeterminate-duration:var(--forge-linear-progress-indeterminate-duration, 2s);--_linear-progress-buffer-duration:var(--forge-linear-progress-buffer-duration, var(--forge-animation-duration-short4, 200ms));--_linear-progress-theme-transition-duration:var(--forge-linear-progress-theme-transition-duration, var(--forge-animation-duration-short3, 150ms));--_linear-progress-theme-transition-timing:var(--forge-linear-progress-theme-transition-timing, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1)));--_linear-progress-track-dot-size:calc(var(--_linear-progress-track-height) / 2);--_linear-progress-track-background-width:calc(var(--_linear-progress-track-dot-size) * 5);--_linear-progress-track-background:0/var(--_linear-progress-track-background-width) 100% radial-gradient(circle at calc(var(--_linear-progress-track-dot-size) * 2), var(--_linear-progress-track-color) 0, var(--_linear-progress-track-color) var(--_linear-progress-track-dot-size), transparent var(--_linear-progress-track-dot-size))}.forge-linear-progress{inset:0;outline:transparent solid 1px;border-radius:var(--_linear-progress-track-shape);overflow:hidden;display:flex;align-items:center}.bar,.bar-inner,.dots,.forge-linear-progress,.track{position:absolute}.dots{inset:0;animation:linear infinite var(--_linear-progress-buffer-duration);animation-name:buffering;background-color:var(--_linear-progress-track-color);background-repeat:repeat-x;mask-image:url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E");z-index:-1}.bar{animation:none;inline-size:100%;block-size:var(--_linear-progress-indicator-height);transform-origin:left center;will-change:transform;transition:transform var(--_linear-progress-determinate-duration) var(--_linear-progress-determinate-easing)}.secondary-bar{display:none}.bar-inner{inset:0;animation:none;transition:background-color var(--_linear-progress-theme-transition-duration) var(--_linear-progress-theme-transition-timing);background:var(--_linear-progress-indicator-color)}.track{inset:0;will-change:transform;background:var(--_linear-progress-track-color);transition:transform var(--_linear-progress-determinate-duration) var(--_linear-progress-determinate-easing),background-color var(--_linear-progress-theme-transition-duration) var(--_linear-progress-theme-transition-timing);transform-origin:left center}.forge-linear-progress--indeterminate .bar{transition:none}.forge-linear-progress--indeterminate .primary-bar{inset-inline-start:-145.167%;will-change:transform;animation:linear infinite var(--_linear-progress-indeterminate-duration);animation-name:primary-indeterminate-translate}.forge-linear-progress--indeterminate .secondary-bar{inset-inline-start:-54.8889%;display:block;will-change:transform;animation:linear infinite var(--_linear-progress-indeterminate-duration);animation-name:secondary-indeterminate-translate}.forge-linear-progress--indeterminate .dots{display:none}.forge-linear-progress--indeterminate .primary-bar>.bar-inner{will-change:transform;animation:linear infinite var(--_linear-progress-indeterminate-duration) primary-indeterminate-scale}.forge-linear-progress--indeterminate .secondary-bar>.bar-inner{will-change:transform;animation:linear infinite var(--_linear-progress-indeterminate-duration) secondary-indeterminate-scale}:host-context([dir=rtl]) .forge-linear-progress .bar{transform-origin:right center}:host-context([dir=rtl]) .forge-linear-progress .track{transform-origin:right center}:host-context([dir=rtl]) .forge-linear-progress .dots{animation-name:buffering-rtl}:host-context([dir=rtl]) .forge-linear-progress.forge-linear-progress--indeterminate .primary-bar{animation-name:primary-indeterminate-translate-rtl}:host-context([dir=rtl]) .forge-linear-progress.forge-linear-progress--indeterminate .secondary-bar{animation-name:secondary-indeterminate-translate-rtl}:host([dir=rtl]) .forge-linear-progress .bar{transform-origin:right center}:host([dir=rtl]) .forge-linear-progress .track{transform-origin:right center}:host([dir=rtl]) .forge-linear-progress .dots{animation-name:buffering-rtl}:host([dir=rtl]) .forge-linear-progress.forge-linear-progress--indeterminate .primary-bar{animation-name:primary-indeterminate-translate-rtl}:host([dir=rtl]) .forge-linear-progress.forge-linear-progress--indeterminate .secondary-bar{animation-name:secondary-indeterminate-translate-rtl}.forge-linear-progress:dir(rtl) .bar{transform-origin:right center}.forge-linear-progress:dir(rtl) .track{transform-origin:right center}.forge-linear-progress:dir(rtl) .dots{animation-name:buffering-rtl}.forge-linear-progress:dir(rtl).forge-linear-progress--indeterminate .primary-bar{animation-name:primary-indeterminate-translate-rtl}.forge-linear-progress:dir(rtl).forge-linear-progress--indeterminate .secondary-bar{animation-name:secondary-indeterminate-translate-rtl}:host([theme=primary]) .forge-linear-progress{--_linear-progress-indicator-color:var(--forge-linear-progress-indicator-color, var(--forge-theme-primary, #3f51b5));--_linear-progress-track-color:var(--forge-linear-progress-track-color, var(--forge-theme-primary-container, #d1d5ed))}:host([theme=secondary]) .forge-linear-progress{--_linear-progress-indicator-color:var(--forge-linear-progress-indicator-color, var(--forge-theme-secondary, #ffc107));--_linear-progress-track-color:var(--forge-linear-progress-track-color, var(--forge-theme-secondary-container, #fff0c3))}:host([theme=success]) .forge-linear-progress{--_linear-progress-indicator-color:var(--forge-linear-progress-indicator-color, var(--forge-theme-success, #2e7d32));--_linear-progress-track-color:var(--forge-linear-progress-track-color, var(--forge-theme-success-container, #cde0ce))}:host([theme=error]) .forge-linear-progress{--_linear-progress-indicator-color:var(--forge-linear-progress-indicator-color, var(--forge-theme-error, #b00020));--_linear-progress-track-color:var(--forge-linear-progress-track-color, var(--forge-theme-error-container, #ecc2c9))}:host([theme=warning]) .forge-linear-progress{--_linear-progress-indicator-color:var(--forge-linear-progress-indicator-color, var(--forge-theme-warning, #d14900));--_linear-progress-track-color:var(--forge-linear-progress-track-color, var(--forge-theme-warning-container, #f4d3c2))}:host([theme=info]) .forge-linear-progress{--_linear-progress-indicator-color:var(--forge-linear-progress-indicator-color, var(--forge-theme-info, #1565c0));--_linear-progress-track-color:var(--forge-linear-progress-track-color, var(--forge-theme-info-container, #c7daf0))}@media screen and (forced-colors:active){.forge-linear-progress{--_linear-progress-indicator-color:var(--forge-linear-progress-indicator-color, CanvasText);--_linear-progress-track-color:var(--forge-linear-progress-track-color, GrayText);border:1px solid CanvasText}.forge-linear-progress.forge-linear-progress--indeterminate{--_linear-progress-track-color:var(--forge-linear-progress-track-color, Canvas)}}@keyframes buffering{0%{transform:translateX(calc(1 * var(--_linear-progress-track-background-width)))}}@keyframes primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5,0,0.701732,0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435,0.381352,0.55,0.956352);transform:translateX(calc(1 * 83.6714%))}100%{transform:translateX(calc(1 * 200.611%))}}@keyframes secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15,0,0.515058,0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033,0.284058,0.8,0.733712);transform:translateX(calc(1 * 37.6519%))}48.35%{animation-timing-function:cubic-bezier(0.4,0.627035,0.6,0.902026);transform:translateX(calc(1 * 84.3862%))}100%{transform:translateX(calc(1 * 160.278%))}}@keyframes buffering-rtl{0%{transform:translateX(calc(-1 * var(--_linear-progress-track-background-width)))}}@keyframes primary-indeterminate-translate-rtl{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5,0,0.701732,0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435,0.381352,0.55,0.956352);transform:translateX(calc(-1 * 83.6714%))}100%{transform:translateX(calc(-1 * 200.611%))}}@keyframes secondary-indeterminate-translate-rtl{0%{animation-timing-function:cubic-bezier(0.15,0,0.515058,0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033,0.284058,0.8,0.733712);transform:translateX(calc(-1 * 37.6519%))}48.35%{animation-timing-function:cubic-bezier(0.4,0.627035,0.6,0.902026);transform:translateX(calc(-1 * 84.3862%))}100%{transform:translateX(calc(-1 * 160.278%))}}@keyframes primary-indeterminate-scale{0%{transform:scaleX(.08)}36.65%{animation-timing-function:cubic-bezier(0.334731,0.12482,0.785844,1);transform:scaleX(.08)}69.15%{animation-timing-function:cubic-bezier(0.06,0.11,0.6,1);transform:scaleX(.661479)}100%{transform:scaleX(.08)}}@keyframes secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.205028,0.057051,0.57661,0.453971);transform:scaleX(.08)}19.15%{animation-timing-function:cubic-bezier(0.152313,0.196432,0.648374,1.00432);transform:scaleX(.457104)}44.15%{animation-timing-function:cubic-bezier(0.257759,-0.003163,0.211762,1.38179);transform:scaleX(.72796)}100%{transform:scaleX(.08)}}`,ae=class extends H1(L1(M)){static get observedAttributes(){return Object.values(S2.observedAttributes)}constructor(){super(),H(this,p8,d8),this._core=new ri(new oi(this))}connectedCallback(){this._core.initialize()}attributeChangedCallback(t,e,a){switch(t){case S2.observedAttributes.DETERMINATE:this.determinate=p(a);break;case S2.observedAttributes.PROGRESS:this.progress=W(a);break;case S2.observedAttributes.BUFFER:this.buffer=W(a);break;case S2.observedAttributes.THEME:this.theme=a;break}}};s([v()],ae.prototype,"determinate",2),s([v()],ae.prototype,"progress",2),s([v()],ae.prototype,"buffer",2),s([v()],ae.prototype,"theme",2),ae=s([y({name:S2.elementName})],ae);function bh(){x(ae)}var m8=`${b}skeleton`,ni={elementName:m8};var g8='<template><div class="forge-skeleton" part="root"></div></template>',w8='@keyframes forge-skeleton-loading{100%,25%{transform:translateX(100%)}}:host{--_skeleton-animation-duration:var(--forge-skeleton-animation-duration, 1500ms);--_skeleton-width:var(--forge-skeleton-width, auto);--_skeleton-height:var(--forge-skeleton-height, 48px);--_skeleton-background:var(--forge-skeleton-background, var(--forge-theme-surface-container, #e0e0e0));--_skeleton-shape:var(--forge-skeleton-shape, calc(var(--forge-shape-medium, 4px) * var(--forge-shape-factor, 1)));--_skeleton-margin:var(--forge-skeleton-margin, var(--forge-spacing-medium, 16px) 0);--_skeleton-button-height:var(--forge-skeleton-button-height, var(--forge-button-height, 36px));--_skeleton-button-width:var(--forge-skeleton-button-width, 72px);--_skeleton-form-field-height:var(--forge-skeleton-form-field-height, 40px);--_skeleton-form-field-width:var(--forge-skeleton-form-field-width, 256px);--_skeleton-chip-height:var(--forge-skeleton-chip-height, 32px);--_skeleton-chip-width:var(--forge-skeleton-chip-width, 72px);--_skeleton-chip-shape:var(--forge-skeleton-chip-shape, calc(var(--forge-shape-extra-large, 16px) * var(--forge-shape-factor, 1)));--_skeleton-list-item-height:var(--forge-skeleton-list-item-height, 32px);--_skeleton-list-item-margin:var(--forge-skeleton-list-item-margin, 12px 8px);--_skeleton-text-height:var(--forge-skeleton-text-height, 1rem);--_skeleton-gradient-color:var(--forge-skeleton-gradient-color, var(--forge-theme-surface-container-low, #ebebeb));--_skeleton-avatar-size:var(--forge-skeleton-avatar-size, var(--forge-avatar-size, 40px));--_skeleton-avatar-shape:var(--forge-skeleton-avatar-shape, var(--forge-avatar-shape, calc(var(--forge-shape-round, 50%) * var(--forge-shape-factor, 1))))}:host{height:var(--_skeleton-height);width:var(--_skeleton-width);margin:var(--_skeleton-margin);border-radius:var(--_skeleton-shape);background-color:var(--_skeleton-background);position:relative;display:block;overflow:hidden;box-sizing:border-box}:host([hidden]){display:none}.forge-skeleton{display:block}.forge-skeleton::after{position:absolute;display:block;width:100%;height:100%;transform:translateX(-100%);background-repeat:no-repeat;background-image:linear-gradient(90deg,transparent,var(--_skeleton-gradient-color),transparent);animation:forge-skeleton-loading var(--_skeleton-animation-duration) ease-in infinite;content:""}:host([avatar]){--_skeleton-height:var(--_skeleton-avatar-size);--_skeleton-width:var(--_skeleton-avatar-size);--_skeleton-shape:var(--_skeleton-avatar-shape)}:host([list-item]){--_skeleton-height:var(--_skeleton-list-item-height);--_skeleton-margin:var(--_skeleton-list-item-margin)}:host([text]){--_skeleton-height:var(--_skeleton-text-height)}:host([stretch]){height:100%;width:100%}:host([chip]){--_skeleton-height:var(--_skeleton-chip-height);--_skeleton-width:var(--_skeleton-chip-width);--_skeleton-shape:var(--_skeleton-chip-shape)}:host([button]){--_skeleton-height:var(--_skeleton-button-height);--_skeleton-width:var(--_skeleton-button-width)}:host([form-field]){--_skeleton-height:var(--_skeleton-form-field-height);--_skeleton-width:var(--_skeleton-form-field-width)}',Y0=class extends M{constructor(){super(),H(this,g8,w8)}};Y0=s([y({name:ni.elementName})],Y0);function yh(){x(Y0)}function Lh(r,t){let e=u8(r,t),a=`list-dropdown-popup-${r.id}`;return e.addEventListener("mousedown",o=>{let n=L2(o);if(n.find(h=>h.nodeType===1&&h.hasAttribute(i2.attributes.DATA_ALLOW_FOCUS)))return;n.find(h=>h.id===a||h.id===r.id)&&o.preventDefault()}),r.id&&(e.id=a),r.popupClasses&&y1(r.popupClasses,e),e}function u8(r,t){var a;let e=document.createElement("forge-popover");return e.anchorElement=t,e.placement=r.popupPlacement||"bottom-start",e.persistent=!!r.popupStatic,e.triggerType="manual",(a=r.popupFallbackPlacements)!=null&&a.length&&(e.fallbackPlacements=r.popupFallbackPlacements),r.constrainViewportWidth&&e.setAttribute(Z.attributes.CONSTRAIN_VIEWPORT_WIDTH,""),r.popupOffset&&(e.offset=r.popupOffset),r.type==="none"&&(e.animationType="none"),e}function Ih(r){var e;let t=document.createElement(I1.elementName);switch(t.id=`list-dropdown-list-${r.id}`,r.type){case"menu":t.setAttribute("role","menu"),t.setAttribute("aria-orientation","vertical");break;default:t.setAttribute("role","listbox")}return r.type!=="menu"&&r.multiple&&t.setAttribute("aria-multiselectable","true"),(e=r==null?void 0:r.referenceElement)!=null&&e.id&&t.setAttribute("aria-labelledby",r.referenceElement.id),t}function ii(r,t,e,a=0,o=!0){let n=b8(e||r.options),i=w4(n),l=!!r.optionLimit,h=r.optionLimit||0,c=a;for(let d of n){let u=t;if(d.builder&&typeof d.builder=="function"){let _=d.builder(d);if(_){let L=document.createElement("div");L.classList.add(i2.classes.GROUP_WRAPPER),u=L,typeof _=="string"?L.innerHTML=_:_ instanceof HTMLElement&&L.appendChild(_),t.appendChild(L)}}else if(d.text){let _=document.createElement("div");_.classList.add(i2.classes.GROUP_WRAPPER);let L=document.createElement("div");L.textContent=d.text,L.classList.add("forge-typography--overline"),L.style.fontFamily="Roboto,sans-serif",L.style.fontSize="0.75rem",L.style.lineHeight="2rem",L.style.letterSpacing="0.16667em",L.style.fontWeight="500",L.style.margin="4px 8px",u=_,_.appendChild(L),t.appendChild(_)}for(let _ of d.options){if(_.divider){let z=_8();t.appendChild(z);continue}if(l&&--h<0)break;let L=r.selectedValues?r.selectedValues.some(z=>Nt(z,_.value)):!1;if(!o&&L)continue;let C=document.createElement("forge-list-item");C.value=_.value,C.focusPropagation="off",C.setAttribute("role","presentation");let A=document.createElement("button");if(A.type="button",A.id=`list-dropdown-option-${r.id}-${c++}`,A.setAttribute("role",r.type==="menu"?"menuitem":"option"),C.appendChild(A),r.wrapOptionText&&(C.wrap=!0),_.optionClass&&(typeof _.optionClass=="string"||Array.isArray(_.optionClass)&&_.optionClass.length)&&y1(_.optionClass,C),r.dense&&(C.dense=!0),r.optionBuilder&&typeof r.optionBuilder=="function"){let z=r.optionBuilder(_,C);z&&(typeof z=="string"?A.innerHTML=z:A.appendChild(z))}else if(typeof r.transform!="function")A.textContent=_.label||"";else{let z=r.transform(_.label);typeof z=="string"?A.textContent=z:typeof z=="object"&&z.nodeType!==void 0&&A.appendChild(z)}if(_.secondaryLabel){let z=document.createElement("span");z.slot="secondary-text",z.textContent=_.secondaryLabel,z.id=`list-dropdown-option-${r.id}-${c++}-secondary`,C.twoLine=!0,C.appendChild(z),A.setAttribute("aria-describedby",z.id)}if(r.multiple){let z=si(L);C.appendChild(z),_.disabled||A.setAttribute("aria-selected",`${L}`),A.setAttribute("aria-checked",`${L}`)}if(_.elementAttributes&&_.elementAttributes.forEach((z,c1)=>{C.setAttribute(c1,z)}),_.leadingBuilder){let z=_.leadingBuilder();nt(z)&&(z.slot="leading",C.appendChild(z))}else if(_.leadingIcon){let z=Mh(_.leadingIconType,_.leadingIcon,_.leadingIconClass||r.iconClass,_.leadingIconComponentProps);z.slot="leading",C.appendChild(z)}if(_.trailingBuilder){let z=_.trailingBuilder();nt(z)&&(z.slot="trailing",C.appendChild(z))}else if(_.trailingIcon){let z=Mh(_.trailingIconType,_.trailingIcon,_.trailingIconClass||r.iconClass,_.trailingIconComponentProps);z.slot="trailing",C.appendChild(z)}if(_.disabled&&(A.disabled=_.disabled),L&&(C.selected=!0),r.type!=="menu"&&A.setAttribute("aria-selected",L?"true":"false"),!_.disabled&&typeof r.cascadingElementFactory=="function"&&Array.isArray(_.options)&&_.options.length){let z=document.createElement("forge-icon");z.name="arrow_right",z.slot="trailing",C.appendChild(z);let b1={index:i.filter(K1=>!K1.divider).indexOf(_),options:_.options,parentValue:_.value},x1=r.cascadingElementFactory.call(null,b1);x1.appendChild(C),C=x1}u.appendChild(C)}}}function si(r){let t=document.createElement("forge-icon");return t.setAttribute(i2.attributes.CHECKBOX_ELEMENT,""),t.name=r?A0.name:z0.name,t.slot="leading",t.style.marginRight="16px",t.style.verticalAlign="middle",t}function _8(){return document.createElement("forge-divider")}function Mh(r="font",t,e,a){if(r==="component"){let n=document.createElement("forge-icon");return e&&n.classList.add(e),n.setAttribute("aria-hidden","true"),n.name=t,a&&Object.assign(n,a),n}let o=document.createElement("i");return o.classList.add(e||ke),o.setAttribute("aria-hidden","true"),o.textContent=t,o}function Vh(r){switch(r){case"skeleton":return x8();default:return f8()}}function f8(){let r=document.createElement("div");r.style.display="flex",r.style.justifyContent="center",r.style.alignItems="center",r.style.padding="8px",r.style.boxSizing="border-box";let t=document.createElement("forge-circular-progress");return t.style.setProperty("--forge-circular-progress-size","24px"),r.appendChild(t),r}function x8(){let r=document.createElement("forge-list"),t=document.createElement("div");t.style.minWidth="192px";for(let e=0;e<3;e++){let a=document.createElement(ni.elementName);a.setAttribute("list-item",""),t.appendChild(a)}return r.appendChild(t),r}function Eh(){let r=document.createElement(S2.elementName);return r.determinate=!1,r.style.position="absolute",r.style.top="0",r.style.left="0",r.style.right="0",r.style.width="100%",r}function b8(r){return li(r,1)?r:[{text:"",options:r}]}function li(r,t){let e=r.some(o=>k(o)&&nt(o)&&o.hasOwnProperty("options")&&(o.hasOwnProperty("text")||o.hasOwnProperty("builder"))),a=r.some(o=>k(o)&&nt(o)&&o.hasOwnProperty("label")&&o.hasOwnProperty("value"));return e&&t===1||a&&t===0}function w4(r){return li(r,1)?r.reduce((e,a)=>e.concat(a.options),[]):[...r]}var vi=class{constructor(t,e){this._adapter=t;this._open=!1;this._config=Object.assign(w({},gh),w({},e)),this._selectListener=(a,o)=>this._onSelect(a,o),this._closeListener=()=>{typeof this._config.closeCallback=="function"&&this._config.closeCallback()},this._scrollEndListener=()=>{this._config.observeScroll&&typeof this._config.scrollEndListener=="function"&&this._config.scrollEndListener()}}destroy(){this._adapter.remove()}open(){this._open||(this._open=!0,this._adapter.open(this._config,this._selectListener,this._closeListener),window.requestAnimationFrame(()=>{this._open&&this.activateInitialOption()}),this._config.observeScroll&&this._config.scrollEndListener&&this._adapter.setScrollBottomListener(this._scrollEndListener,this._config.observeScrollThreshold||0))}async close(){this._open&&(this._open=!1,this._config.observeScroll&&this._config.scrollEndListener&&this._adapter.removeScrollBottomListener(this._scrollEndListener),await this._adapter.close())}_onSelect(t,e){if(typeof this._config.activeChangeCallback=="function"&&this._config.activeChangeCallback(e),typeof this._config.selectCallback=="function"&&this._config.selectCallback(t),this._open){let a=this._config.syncWidth===void 0;this._adapter.syncWidth(a)}}getActiveOptionIndex(){return this._adapter.getActiveOptionIndex()}getActiveOption(){let t=this.getActiveOptionIndex();return t>=0?this._nonDividerOptions[t]:void 0}toggleOptionMultiple(t,e){return this._adapter.toggleOptionMultiple(t,e)}activateSelectedOption(){this._adapter.activateSelectedOption(this._config)}activateFirstOption(){let t=this._nonDividerOptions.findIndex(e=>!e.disabled);return t!==-1&&this.activateOption(t),t}activateLastOption(){let t=this._nonDividerOptions,e=t.length-1-t.findIndex(a=>!a.disabled);return e!==-1&&this.activateOption(e),e}activateOption(t,e){return this._adapter.activateOption(t,this._config.activeChangeCallback,e)}activateInitialOption(){typeof this._config.activeStartIndex=="number"&&this._nonDividerOptions[this._config.activeStartIndex]?(this.activateOption(this._config.activeStartIndex,!1),this._adapter.scrollSelectedOptionIntoView(!1)):this._config.selectedValues&&this._config.selectedValues.length?this._adapter.scrollSelectedOptionIntoView(!1):typeof this._config.visibleStartIndex=="number"&&this._nonDividerOptions[this._config.visibleStartIndex]&&this._adapter.scrollOptionIntoView(this._config.visibleStartIndex)}setSelectedValues(t){Array.isArray(t)||(t=[t]),!this._config.multiple&&t.length>1&&(t=[t[0]]),this._config.selectedValues=t,this._adapter.setSelectedValues(t,this._config.multiple)}clearActiveOption(){this._adapter.clearActiveOption()}setOptions(t){this._config.options=t,this._open&&(this._adapter.setOptions(this._config),this.activateInitialOption())}appendOptions(t){this._config.options=[...this._config.options,...t],this._open&&this._adapter.appendOptions(t,this._config)}get dropdownElement(){return this._adapter.dropdownElement}scrollSelectedOptionIntoView(t=!0){this._adapter.scrollSelectedOptionIntoView(t)}setScrollBottomListener(t,e){this._config.scrollEndListener=t,this._config.observeScroll=!0,this._config.observeScrollThreshold=e,this._adapter.setScrollBottomListener(this._scrollEndListener,this._config.observeScrollThreshold||0)}removeScrollBottomListener(){this._config.scrollEndListener=void 0,this._adapter.removeScrollBottomListener(this._scrollEndListener)}setBusyVisibility(t){this._config.allowBusy&&this._adapter.setBusyVisibility(t)}handleKey(t){switch(t){case"Enter":case"NumpadEnter":let e=this.getActiveOptionIndex(),a=this._nonDividerOptions[e];if(this._canSelectOption(a)){let i=this._adapter.getActiveOptionIdByIndex(e);i&&this._onSelect(a.value,i)}break;case"Up":case"ArrowUp":case"Down":case"ArrowDown":let o=this._nonDividerOptions;if(o.length&&o.every(i=>!this._canSelectOption(i)))return;let n=this._getNextActiveOptionIndex(t);this.activateOption(n);break;case"Home":this.activateFirstOption();break;case"End":this.activateLastOption();break}}_canSelectOption(t){return t&&!t.disabled&&!t.divider}_getNextActiveOptionIndex(t){let e=this._adapter.getActiveOptionIndex();return e===-1&&(e=this._adapter.getSelectedOptionIndex()),t==="ArrowUp"||t==="Up"?this._getPreviousHighlightableOptionIndex(e,this._nonDividerOptions):this._getNextHighlightableOptionIndex(e,this._nonDividerOptions)}_getPreviousHighlightableOptionIndex(t,e){let a=t<=0?e.length-1:t-1;return e[a].disabled?this._getPreviousHighlightableOptionIndex(a,e):a}_getNextHighlightableOptionIndex(t,e){let a=t===e.length-1?0:t+1;return e[a].disabled?this._getNextHighlightableOptionIndex(a,e):a}get _flatOptions(){return w4(this._config.options)}get _nonDividerOptions(){return this._flatOptions.filter(t=>!t.divider)}};var hi=class{constructor(t){this._targetElement=t}get dropdownElement(){return this._dropdownElement}open(t,e,a){var i,l;this._dropdownElement=Lh(t,this._targetElement),t.type!=="none"&&t.type!=="menu"?this._dropdownElement.preset="dropdown":t.type==="menu"&&(this._dropdownElement.preset="list"),t.allowBusy&&(this._busyElement=Eh(),this._busyElement.style.display="none",this._dropdownElement.appendChild(this._busyElement)),t.headerBuilder&&(this._headerElement=t.headerBuilder(),this._headerElement&&this._headerElement.setAttribute(i2.attributes.DATA_ALLOW_FOCUS,"")),t.footerBuilder&&(this._footerElement=t.footerBuilder(),this._footerElement&&this._footerElement.setAttribute(i2.attributes.DATA_ALLOW_FOCUS,"")),this._listElement=Ih(t),this.syncWidth(!!t.syncWidth,t.targetWidthCallback),this._listElement.addEventListener("forge-list-item-select",h=>{let d=h.target.querySelector("button");d.setAttribute("aria-selected","true"),e(h.detail.value,d.id)}),t.options.length?(ii(t,this._listElement),this._dropdownElement.appendChild(this._listElement),this._headerElement&&this._dropdownElement.insertAdjacentElement("afterbegin",this._headerElement),this._footerElement&&this._dropdownElement.appendChild(this._footerElement)):t.allowBusy&&(this._asyncElement=Vh(t.asyncStyle),this._dropdownElement.appendChild(this._asyncElement)),this._announcerElement=Ar(),this._announcerElement.id=`${t.id}-activedescendant`,this._dropdownElement.appendChild(this._announcerElement);let o=(i=this._targetElement.ownerDocument)!=null?i:document;((l=Gr(Z.selectors.HOST,this._targetElement))!=null?l:o.body).appendChild(this._dropdownElement),this._dropdownElement.setAttribute(Z.attributes.HOST,""),this._dropdownElement.open=!0}async close(){this._dropdownElement&&(await this._dropdownElement.hideAsync(),this.remove())}remove(){var t;(t=this._dropdownElement)==null||t.remove(),this._dropdownElement=void 0,this._listElement=void 0,this._announcerElement=void 0}setScrollBottomListener(t,e){if(this._dropdownElement&&!this._scrollObserver){let a={scrollThreshold:e},o=g(this._dropdownElement,Z.selectors.SURFACE);this._scrollObserver=new $r(o,a),this._scrollObserver.addListener(_e.ScrolledEnd,t)}}removeScrollBottomListener(t){this._scrollObserver&&this._scrollObserver.removeListener(_e.ScrolledEnd,t)}getActiveOptionIndex(){if(!this._dropdownElement)return-1;let t=this._getListItemElements(),e=[...t].reverse().find(a=>a.active);return e?t.indexOf(e):-1}getSelectedOptionIndex(){return this._getListItemElements().findIndex(e=>e.selected)}getActiveOptionIdByIndex(t){if(!this._dropdownElement)return null;let a=this._getListItemElements()[t],o=a==null?void 0:a.querySelector("button");return o?o.id:null}toggleOptionMultiple(t,e){if(!this._dropdownElement)return;let a=this._getListItemElements();a.length&&a[t]&&this._toggleSelectedOption(a[t],e)}scrollOptionIntoView(t,e=!0){let a=this._getListItemElements()[t];a&&this._scrollListItemIntoView(a,e?"smooth":"auto","center")}scrollSelectedOptionIntoView(t=!0){let e=this._getSelectedListItem();this._scrollListItemIntoView(e,t?"smooth":"auto","center")}activateSelectedOption(t){let e=this._getListItemElements();e.length&&e.filter(n=>n.active).forEach(n=>n.active=!1);let a=this._getSelectedListItem();a&&this._activateListOption(a,t.activeChangeCallback)}activateOption(t,e,a=!0){if(!this._dropdownElement)return;let o=this._getListItemElements();o.length&&(o.filter(i=>i.active).forEach(i=>i.active=!1),this._activateListOption(o[t],e),this._scrollListItemIntoView(o[t],a?"smooth":"auto"))}setSelectedValues(t,e=!1){if(!this._dropdownElement)return;let a=this._getListItemElements();for(let o of a){let n=t.some(i=>Nt(i,o.value));if(o.selected=n,e){let i=o.querySelector(`[${i2.attributes.CHECKBOX_ELEMENT}]`);if(i){let l=si(n);e0(l,i)}}}}clearActiveOption(){this._getListItemElements().forEach(e=>e.active=!1)}async syncWidth(t,e){var n,i;let a=t?"--forge-popover-width":"--forge-popover-min-width",o=this._getTargetElementWidth(e);(n=this._dropdownElement)==null||n.style.setProperty(a,`${o}px`),(i=this._listElement)==null||i.style.setProperty("min-width",`calc(${o}px - var(--forge-scrollbar-width, 16px))`)}setOptions(t){!this._dropdownElement||!this._listElement||(this._asyncElement&&this._asyncElement.isConnected&&Te(this._asyncElement),this._busyElement&&(this._busyElement.style.display="none"),this._listElement.isConnected||this._dropdownElement.appendChild(this._listElement),r2(this._listElement),ii(t,this._listElement),this._headerElement&&!this._headerElement.isConnected&&this._dropdownElement.insertAdjacentElement("afterbegin",this._headerElement),this._footerElement&&!this._footerElement.isConnected&&this._dropdownElement.insertAdjacentElement("beforeend",this._footerElement),"position"in this._dropdownElement&&typeof this._dropdownElement.position=="function"&&this._dropdownElement.position())}appendOptions(t,e){!this._dropdownElement||!this._listElement||ii(e,this._listElement,t,this._listElement.childElementCount,!1)}setBusyVisibility(t){this._dropdownElement&&(t?this._busyElement.style.removeProperty("display"):this._busyElement.style.display="none")}getScreenWidth(){return window.innerWidth}_getListItemElements(){return this._dropdownElement?Array.from(this._dropdownElement.querySelectorAll(l1.elementName)):[]}_toggleSelectedOption(t,e){if(!this._dropdownElement)return;let a=this._getListItemElements();a.length&&a.filter(l=>l!==t&&l.active).forEach(l=>l.active=!1),t.selected=e;let o=t.querySelector("button");o.setAttribute("aria-selected",`${e}`),o.setAttribute("aria-checked",`${e}`);let n=t.querySelector(`${h1.elementName}[slot=leading]`);if(n){let i=si(e);e0(i,n)}}_getTargetElementWidth(t){return t&&t0(t)?t():this._targetElement.getBoundingClientRect().width}_activateListOption(t,e){let a=t==null?void 0:t.querySelector("button");t&&a&&!a.disabled&&(t.active=!0,e&&t0(e)&&e(a.id))}_scrollListItemIntoView(t,e="auto",a="nearest"){if(t&&this._dropdownElement&&this._dropdownElement.isConnected){let o=g(this._dropdownElement,Z.selectors.SURFACE);o&&Dr(o,t,e,a)}}_getSelectedListItem(){return this._getListItemElements().find(e=>e.selected)}};var Pe=class{constructor(t,e){this._targetElement=t;q.define([A0,z0]),this._core=new vi(new hi(this._targetElement),e)}destroy(){this._core.destroy()}open(){this._core.open()}close(){return this._core.close()}getActiveOptionIndex(){return this._core.getActiveOptionIndex()}getActiveOption(){return this._core.getActiveOption()}toggleOptionMultiple(t,e){return this._core.toggleOptionMultiple(t,e)}activateSelectedOption(){this._core.activateSelectedOption()}activateFirstOption(){return this._core.activateFirstOption()}activateOption(t){return this._core.activateOption(t)}activateInitialOption(){return this._core.activateInitialOption()}clearActiveOption(){this._core.clearActiveOption()}setSelectedValues(t){return this._core.setSelectedValues(t)}get dropdownElement(){return this._core.dropdownElement}setOptions(t){this._core.setOptions(t)}appendOptions(t){this._core.appendOptions(t)}scrollSelectedOptionIntoView(t){this._core.scrollSelectedOptionIntoView()}setScrollBottomListener(t,e){this._core.setScrollBottomListener(t,e)}removeScrollBottomListener(){this._core.removeScrollBottomListener()}setBusyVisibility(t){this._core.setBusyVisibility(t)}handleKey(t){this._core.handleKey(t)}};var K0=class{constructor(){this._popupClasses=[];this._syncPopupWidth=!1;this._optionLimit=0;this._observeScroll=!1;this._observeScrollThreshold=0;this._constrainPopupWidth=!0;this._wrapOptionText=!1}get syncPopupWidth(){return this._syncPopupWidth}set syncPopupWidth(t){this._syncPopupWidth=t}get popupClasses(){return this._popupClasses}set popupClasses(t){typeof t=="string"&&(t=[t]),Array.isArray(t)&&(this._popupClasses=t)}get observeScroll(){return this._observeScroll}set observeScroll(t){this._observeScroll=t}get observeScrollThreshold(){return this._observeScrollThreshold}set observeScrollThreshold(t){this._observeScrollThreshold=t}get optionLimit(){return this._optionLimit}set optionLimit(t){this._optionLimit=t}get popupHeaderBuilder(){return this._popupHeaderBuilder}set popupHeaderBuilder(t){this._popupHeaderBuilder=t}get popupFooterBuilder(){return this._popupFooterBuilder}set popupFooterBuilder(t){this._popupFooterBuilder=t}get constrainPopupWidth(){return this._constrainPopupWidth}set constrainPopupWidth(t){this._constrainPopupWidth=t}get wrapOptionText(){return this._wrapOptionText}set wrapOptionText(t){this._wrapOptionText=t}_applySelection(){}};var ci=class extends K0{constructor(e){super();this._config=e;this._open=!1;this._options=[];this._childOpen=!1;this._popupHasMouse=!1;this._targetMouseEnterListener=a=>this._onTargetMouseEnter(a),this._targetMouseLeaveListener=a=>this._onTargetMouseLeave(a),this._childPopupMouseEnterListener=()=>this._onChildPopupMouseEnter(),this._childPopupMouseLeaveListener=()=>this._onChildPopupMouseLeave(),this._documentMouseMoveListener=a=>this._mouseCoords={x:a.pageX,y:a.pageY}}_onChildPopupMouseEnter(){this._popupHasMouse=!0}_onChildPopupMouseLeave(){this._popupHasMouse=!1,setTimeout(()=>{let e=document.elementFromPoint(this._mouseCoords.x,this._mouseCoords.y);!this._popupHasMouse&&!this._childOpen&&(!e||!this._isOwnElement(e))&&(this._setCascadeTargetInactive(),this._closeDropdown())},this._config.popupTimeout)}_onTargetMouseEnter(e){this._options.length&&this._openDropdown({fromKeyboard:!1})}_onTargetMouseLeave(e){this._activeMouseLeaveTimeout=window.setTimeout(()=>{if(!(!this._open||this._childOpen)){if(this._mouseCoords){let a=document.elementFromPoint(this._mouseCoords.x,this._mouseCoords.y);if(a&&this._isOwnElement(a))return}this._setCascadeTargetInactive(),this._closeDropdown()}},this._config.targetTimeout)}_clearMouseLeaveTimeout(){this._activeMouseLeaveTimeout!==void 0&&window.clearTimeout(this._activeMouseLeaveTimeout)}};var pi=class extends I{constructor(e){super(e);this._childMenus=new Map}get targetElement(){return this._targetElement}getDropdownElement(){var e,a;return(a=(e=this._listDropdown)==null?void 0:e.dropdownElement)!=null?a:null}hasTargetElement(){return!!this._targetElement}initializeTarget(){this._targetElement=this._component.querySelector(e1.selectors.TOGGLE),this._targetElement||(this._targetElement=this._component.firstElementChild)}initializeAccessibility(e){this._targetElement&&(this._targetElement.setAttribute("aria-atomic","true"),this._targetElement.setAttribute("aria-live","assertive"),this._targetElement.setAttribute("aria-haspopup","true"),this._targetElement.setAttribute("aria-expanded","false"),this._targetElement.hasAttribute("aria-label")||this._targetElement.setAttribute("aria-label",this._targetElement.textContent||""))}addTargetListener(e,a,o=!1){this._targetElement&&this._targetElement.addEventListener(e,a,o)}removeTargetListener(e,a){this._targetElement&&this._targetElement.removeEventListener(e,a)}attachMenu(e){this._listDropdown||!this._targetElement||(this._listDropdown=new Pe(this._targetElement,e),this._listDropdown.open(),this._targetElement.setAttribute("aria-expanded","true"),this._targetElement.setAttribute("aria-controls",`list-dropdown-popup-${e.id}`))}setOptions(e){var a;(a=this._listDropdown)==null||a.setOptions(e)}destroyListDropdown(){var e;(e=this._listDropdown)==null||e.destroy(),this._listDropdown=void 0}async detachMenu(){var e,a,o,n,i;(e=this._targetElement)==null||e.removeAttribute("aria-activedescendant"),(a=this._targetElement)==null||a.removeAttribute("aria-expanded"),(o=this._targetElement)==null||o.removeAttribute("aria-controls"),await((n=this._listDropdown)==null?void 0:n.close()),(i=this._listDropdown)==null||i.destroy(),this._listDropdown=void 0}setActiveOption(e){var a;(a=this._listDropdown)==null||a.activateOption(e)}activateFirstOption(){var e;(e=this._listDropdown)==null||e.activateFirstOption()}setCascadeTargetInactive(){let e=this._targetElement;e!=null&&e.active&&(e.active=!1)}getActiveOptionIndex(){var e,a;return(a=(e=this._listDropdown)==null?void 0:e.getActiveOptionIndex())!=null?a:-1}focusTarget(){var e,a;(e=this._targetElement)!=null&&e.matches(":focus-within")||(a=this._targetElement)==null||a.focus()}isTargetFocused(){return document.activeElement===this._targetElement}updateActiveDescendant(e){this._targetElement&&(e?this._targetElement.setAttribute("aria-activedescendant",e):this._targetElement.removeAttribute("aria-activedescendant"))}addDropdownListener(e,a){!this._listDropdown||!this._listDropdown.dropdownElement||this._listDropdown.dropdownElement.addEventListener(e,a)}isOwnElement(e){return!this._targetElement||!this._listDropdown||!this._listDropdown.dropdownElement?!1:this._targetElement.contains(e)||!!this._listDropdown.dropdownElement.contains(e)}propagateKey(e){var a;(a=this._listDropdown)==null||a.handleKey(e)}proxyKeyboardEventToChild(e,a){if(!this.getDropdownElement())return;let o=this._getOpenChildMenu(a);o&&o.propagateKeyEvent(e)}toggleChildMenu(e,a){let i=this._getListItems()[e].parentElement;i&&i.tagName.toLowerCase()===e1.elementName&&(a===void 0?i.open=!i.open:i.open=a,i.activateFirstOption())}createChildMenu(e,a,o,n,i){let l=document.createElement("forge-menu");return l.style.display="block",l.addEventListener(e1.events.OPEN,()=>{this._childMenus.set(e,l),o(e)}),l.addEventListener(e1.events.CLOSE,()=>{this._childMenus.delete(e),n(e)}),l.addEventListener(e1.events.SELECT,h=>{h.stopPropagation(),i(t1(w({},h.detail),{parentValue:a}))}),l}closeOtherChildMenus(e){let a=[];this._childMenus.forEach((o,n)=>{n!==e&&(o.open=!1,a.push(n))}),a.forEach(o=>this._childMenus.delete(o))}setSelectedValues(e){var a;(a=this._listDropdown)==null||a.setSelectedValues(e)}_getOpenChildMenu(e){if(!this.getDropdownElement())return null;let a=this._getOwnList(e);return a?a.querySelector(`${e1.elementName}[${e1.attributes.OPEN}]`):null}_getOwnList(e){let a=this.getDropdownElement();return a?a.querySelector(`${I1.elementName}[id="list-dropdown-list-${e}"]`):null}_getListItems(){let e=this.getDropdownElement();if(!e)return[];let a=e.querySelector(I1.elementName);return a?Array.from(a.querySelectorAll(l1.elementName)):[]}};var di=class extends ci{constructor(e){super({popupTimeout:e1.numbers.POPUP_MOUSE_LEAVE_TIMEOUT,targetTimeout:e1.numbers.CHILD_MOUSE_LEAVE_TIMEOUT});this._adapter=e;this._placement="bottom-start";this._fallbackPlacements=[];this._dense=!1;this._iconClass=ke;this._persistSelection=!1;this._mode="click";this._identifier=P2(),this._clickListener=a=>this._onTargetClick(a),this._blurListener=a=>this._onTargetBlur(a),this._selectListener=a=>this._handleSelectEvent(a),this._keydownListener=a=>this.onKeydown(a),this._activeChangeListener=a=>this._onActiveOptionChanged(a)}initialize(){this._adapter.initializeTarget(),this._adapter.initializeAccessibility(this._identifier),this._initializeInteractionListeners()}destroy(){this._closeMenu({destroy:!0}),this._destroyInteractionListeners()}activateFirstOption(){this._adapter.activateFirstOption()}_applyMode(){this._adapter.hasTargetElement()&&(this._mode!=="cascade"?this._adapter.addTargetListener("click",this._clickListener):this._attachCascadingListeners())}_initializeInteractionListeners(){this._adapter.hasTargetElement()&&(this._applyMode(),this._adapter.addTargetListener("keydown",this._keydownListener,!0),this._adapter.addTargetListener("focusout",this._blurListener))}_destroyInteractionListeners(){this._adapter.hasTargetElement()&&(this._adapter.removeTargetListener("keydown",this._clickListener),this._adapter.removeTargetListener("focusout",this._blurListener),this._adapter.removeTargetListener("click",this._clickListener),this._detachCascadingListeners())}_attachCascadingListeners(){this._adapter.addTargetListener("mouseenter",this._targetMouseEnterListener),this._adapter.addTargetListener("mouseleave",this._targetMouseLeaveListener),this._adapter.addDocumentListener("mousemove",this._documentMouseMoveListener)}_detachCascadingListeners(){this._adapter.removeTargetListener("mouseenter",this._targetMouseEnterListener),this._adapter.removeTargetListener("mouseleave",this._targetMouseLeaveListener),this._adapter.removeDocumentListener("mousemove",this._documentMouseMoveListener)}get _nonDividerOptions(){return this._flatOptions.filter(e=>!e.divider)}get _flatOptions(){return this._flattenOptions(this._options)}_flattenOptions(e){return li(e,1)?e.reduce((a,o)=>o.options?a.concat(o.options):a,[]):e}_onTargetClick(e){if(this._open){this._closeDropdown();return}this.open=!this._open,this._open&&this._adapter.focusTarget()}_onTargetBlur(e){this._open&&this._closeDropdown()}_onActiveOptionChanged(e){let a={id:e},o=this._adapter.emitHostEvent(e1.events.ACTIVE_CHANGE,a,!0,!0);this._mode!=="cascade"&&o&&this._adapter.updateActiveDescendant(e)}onKeydown(e){if(this._childOpen){this._adapter.proxyKeyboardEventToChild(e,this._identifier);return}switch(e.code){case"Escape":this._open&&(e.preventDefault(),e.stopPropagation(),this._closeDropdown());break;case"Space":e.preventDefault(),this._open?this._closeDropdown():this._openDropdown({fromKeyboard:!0});break;case"Home":case"End":this._open&&(e.preventDefault(),this._adapter.propagateKey(e.code));break;case"Enter":if(e.preventDefault(),!this._open){e.preventDefault(),this._openDropdown({fromKeyboard:!0});return}e.stopImmediatePropagation(),this._adapter.propagateKey(e.code);let a=this._adapter.getActiveOptionIndex(),o=this._nonDividerOptions[a];o&&o.options&&o.options.length&&this._adapter.toggleChildMenu(a);break;case"ArrowUp":case"ArrowDown":if(this._open&&e.stopImmediatePropagation(),e.preventDefault(),!this._open&&e.code==="ArrowDown"){this._openDropdown({fromKeyboard:!0}),this._adapter.activateFirstOption();return}this._adapter.propagateKey(e.code);break;case"ArrowLeft":this._open&&e.stopImmediatePropagation(),this._mode==="cascade"&&this._open&&this._closeDropdown();break;case"ArrowRight":if(this._open&&e.stopImmediatePropagation(),!this._open)return;let n=this._adapter.getActiveOptionIndex(),i=this._nonDividerOptions[n];if(i&&i.options){this._adapter.toggleChildMenu(n,e.code==="ArrowRight");return}break}}async _openMenu({fromKeyboard:e}={}){this._open=!0;let a=[];if(typeof this._optionsFactory=="function")this._loadOptionsAsync(),this._options=[];else{if(!this._options||!this._options.length)return;a=this._options}this._persistSelection||a.forEach(i=>i.selected=!1),this._mapIconToLeadingIcon();let o=this._persistSelection?this._getSelectedValues():[],n={id:this._identifier,referenceElement:this._adapter.targetElement,type:"menu",options:this._options,selectedValues:o,iconClass:this._iconClass,dense:this._dense,multiple:!1,popupStatic:!0,allowBusy:!0,asyncStyle:"spinner",optionBuilder:this._optionBuilder,optionLimit:this._optionLimit,headerBuilder:this._popupHeaderBuilder,footerBuilder:this._popupFooterBuilder,observeScroll:this._observeScroll,observeScrollThreshold:this._observeScrollThreshold,popupPlacement:this._placement,popupFallbackPlacements:this._fallbackPlacements,activeStartIndex:e?0:void 0,popupClasses:[e1.classes.POPUP,e1.classes.MENU,...this._popupClasses],syncWidth:this._syncPopupWidth,activeChangeCallback:this._activeChangeListener,selectCallback:this._selectListener,popupOffset:this._popupOffset,cascadingElementFactory:i=>this._createCascadingElement(i)};this._adapter.setHostAttribute(e1.attributes.OPEN,""),this._adapter.attachMenu(n),this._mode==="cascade"&&(this._adapter.addDropdownListener("mouseenter",this._childPopupMouseEnterListener),this._adapter.addDropdownListener("mouseleave",this._childPopupMouseLeaveListener)),this._adapter.addDropdownListener(e1.events.ACTIVE_CHANGE,i=>{this._onActiveOptionChanged(i.detail.id)}),this._adapter.emitHostEvent(e1.events.OPEN)}_closeMenu({destroy:e=!1}={}){this._open=!1,this._childOpen=!1,e?this._adapter.destroyListDropdown():this._adapter.detachMenu(),this._activeMouseLeaveTimeout!==void 0&&window.clearTimeout(this._activeMouseLeaveTimeout),this._adapter.removeHostAttribute(e1.attributes.OPEN),this._adapter.emitHostEvent(e1.events.CLOSE)}_loadOptionsAsync(){return this._optionsFactory?Promise.resolve(this._optionsFactory()).then(e=>{if(this._persistSelection||this._flattenOptions(e).filter(o=>o.selected).forEach(o=>o.selected=!1),this._open)if(e&&rt(e)&&e.length){this._options=e,this._mapIconToLeadingIcon(),this._adapter.setOptions(e);let a=this._getSelectedValues();a.length&&this._adapter.setSelectedValues(a)}else this._open&&this._closeDropdown()}).catch(e=>{console.error("An unexpected error ocurred while opening the menu:",e),this._open&&this._closeDropdown()}):(this._open&&this._closeMenu(),Promise.resolve())}_handleSelectEvent(e){let a=this._nonDividerOptions.findIndex(o=>o.value===e);a<0||this._selectOptionByIndex(a)}_selectActiveOption(){let e=this._adapter.getActiveOptionIndex();e>=0&&this._nonDividerOptions[e]&&this._selectOptionByIndex(e)}_selectOptionByIndex(e){let{options:a,value:o}=this._nonDividerOptions[e];if(a){this._adapter.setActiveOption(e);return}this._closeDropdown();let n={index:e,value:o};!this._adapter.emitHostEvent(e1.events.SELECT,n,!0,!0)||(this._selectedValue=this._persistSelection?o:void 0)}_getSelectedValues(){let e=this._flatOptions.filter(a=>a.selected).map(a=>a.value);return this._selectedValue!==void 0&&e.push(this._selectedValue),e}_onCascadingOptionSelected(e){this._persistSelection&&(this._selectedValue=e.value),this._adapter.emitHostEvent(e1.events.SELECT,e),this._closeDropdown()}_onCascadingChildOpen(e){super._clearMouseLeaveTimeout(),this._adapter.closeOtherChildMenus(e),this._childOpen=!0,this._adapter.setActiveOption(e)}_onCascadingChildClose(e){this._childOpen=!1}_closeDropdown(){this._closeMenu()}_openDropdown({fromKeyboard:e}={}){this._openMenu({fromKeyboard:e})}_setCascadeTargetInactive(){this._adapter.setCascadeTargetInactive()}_isOwnElement(e){return this._adapter.isOwnElement(e)}_createCascadingElement({index:e,options:a,parentValue:o}){let n=this._adapter.createChildMenu(e,o,this._onCascadingChildOpen.bind(this),this._onCascadingChildClose.bind(this),this._onCascadingOptionSelected.bind(this));return n.mode="cascade",n.popupOffset={mainAxis:0,crossAxis:-8},n.dense=this._dense,n.placement="right-start",n.fallbackPlacements=["left-start","right-start"],n.persistSelection=this._persistSelection,this._persistSelection&&(n.selectedValue=this._selectedValue),n.options=a,n.optionBuilder=this._optionBuilder,n.iconClass=this._iconClass,n}_mapIconToLeadingIcon(){this._flatOptions.filter(e=>e.icon).forEach(e=>e.leadingIcon=e.icon)}get open(){return this._open}set open(e){e=!!e,this._open!==e&&(this._open=e,e?this._openDropdown():this._closeDropdown())}set options(e){if(typeof e=="function")this.optionsFactory=e;else if(this.optionsFactory=void 0,this._options=e.map(a=>w({},a)),this._open&&(this._mapIconToLeadingIcon(),this._adapter.setOptions(this._options),this._persistSelection)){let a=this._getSelectedValues();a.length&&this._adapter.setSelectedValues(a)}}get options(){return this._options?this._flatOptions.map(e=>w({},e)):[]}set optionsFactory(e){this._optionsFactory=e}set selectedIndex(e){let a=this._nonDividerOptions[e];a&&a.value!==this._selectedValue&&(this.selectedValue=a.value)}get selectedIndex(){return this._selectedValue!==void 0?this._nonDividerOptions.findIndex(e=>e.value===this._selectedValue):-1}set selectedValue(e){this._selectedValue!==e&&(this._selectedValue=e,this._adapter.setSelectedValues(this._selectedValue))}get selectedValue(){return this._selectedValue}get placement(){return this._placement}set placement(e){this._placement!==e&&(this._placement=e||"bottom-start",this._adapter.setHostAttribute(e1.attributes.PLACEMENT,this._placement))}get fallbackPlacements(){return this._fallbackPlacements}set fallbackPlacements(e){this._fallbackPlacements=Array.isArray(e)?e:[]}get dense(){return this._dense}set dense(e){this._dense=e}get iconClass(){return this._iconClass}set iconClass(e){this._iconClass=e}get persistSelection(){return this._persistSelection}set persistSelection(e){this._persistSelection!==e&&(this._persistSelection=e,this._adapter.toggleHostAttribute(e1.attributes.PERSIST_SELECTION,this._persistSelection),this._persistSelection||(this._flatOptions.forEach(a=>a.selected=!1),this._selectedValue=void 0))}get mode(){return this._mode}set mode(e){this._mode!==e&&(this._mode=e,this._destroyInteractionListeners(),this._applyMode(),this._adapter.setHostAttribute(e1.attributes.MODE,this._mode))}get popupOffset(){return this._popupOffset}set popupOffset(e){this._popupOffset=e}get optionBuilder(){return this._optionBuilder}set optionBuilder(e){this._optionBuilder=e}get popupElement(){return this._adapter.getDropdownElement()}};var y8="<template><slot></slot></template>",M8=":host{display:inline-flex}:host([hidden]){display:none}",x2=class extends R2{static get observedAttributes(){return[e1.attributes.OPEN,e1.attributes.PLACEMENT,e1.attributes.SELECTED_INDEX,e1.attributes.SELECTED_VALUE,e1.attributes.DENSE,e1.attributes.ICON_CLASS,e1.attributes.PERSIST_SELECTION,e1.attributes.MODE,e1.attributes.SYNC_POPUP_WIDTH,e1.attributes.POPUP_CLASSES,e1.attributes.OPTION_LIMIT,e1.attributes.OBSERVE_SCROLL,e1.attributes.OBSERVE_SCROLL_THRESHOLD]}constructor(){super(),q.define(q5),this._core=new di(new pi(this)),H(this,y8,M8)}connectedCallback(){this.querySelector(e1.selectors.TOGGLE)?this._core.initialize():I0(this,e1.selectors.TOGGLE).then(()=>this._core.initialize())}attributeChangedCallback(t,e,a){switch(super.attributeChangedCallback(t,e,a),t){case e1.attributes.OPEN:this._core.open=k(a);break;case e1.attributes.PLACEMENT:this._core.placement=a;break;case e1.attributes.SELECTED_INDEX:this._core.selectedIndex=Number(a);break;case e1.attributes.SELECTED_VALUE:this._core.selectedValue=a;break;case e1.attributes.DENSE:this._core.dense=p(a);break;case e1.attributes.ICON_CLASS:this._core.iconClass=a;break;case e1.attributes.PERSIST_SELECTION:this.persistSelection=p(a);break;case e1.attributes.MODE:this.mode=a;break}}disconnectedCallback(){this._core.destroy()}propagateKeyEvent(t){this._core.onKeydown(t)}activateFirstOption(){this._core.activateFirstOption()}};s([v()],x2.prototype,"open",2),s([v()],x2.prototype,"options",2),s([v()],x2.prototype,"selectedIndex",2),s([v()],x2.prototype,"selectedValue",2),s([v()],x2.prototype,"placement",2),s([v()],x2.prototype,"fallbackPlacements",2),s([v()],x2.prototype,"dense",2),s([v()],x2.prototype,"iconClass",2),s([v()],x2.prototype,"persistSelection",2),s([v()],x2.prototype,"mode",2),s([v()],x2.prototype,"popupOffset",2),s([v()],x2.prototype,"optionBuilder",2),s([v({set:!1})],x2.prototype,"popupElement",2),x2=s([y({name:e1.elementName,dependencies:[P1,h2]})],x2);function Ch(){x(x2)}var H8=`${b}app-bar-help-button`,L8={ICON:"icon"},I8={ICON:"help"},V8=["aria-label","aria-labelledby"],Ne={elementName:H8,attributes:L8,forwardedAttributes:V8,defaults:I8};var mi=class extends I{constructor(t){super(t)}initialize(){this._menuElement=Ft(this._component,e1.elementName),this._iconButtonElement=Ft(this._component,J.elementName),this._iconElement=Ft(this._component,h1.elementName);let t=this._iconButtonElement.getAttribute("aria-labelledby");this._forwardObserver=S0(this._component,Ne.forwardedAttributes,(e,a)=>{e==="aria-labelledby"&&!a&&(a=t),K(this._iconButtonElement,!!a,e,a!=null?a:void 0)})}destroy(){var t;(t=this._forwardObserver)==null||t.disconnect(),this._forwardObserver=void 0}setMenuOptions(t){this._menuElement.options=t}setIcon(t){this._iconElement.name=t}};var gi=class{constructor(t){this._adapter=t;this._options=[];this._icon=Ne.defaults.ICON;this._isInitialized=!1}initialize(){this._adapter.initialize(),this._adapter.setMenuOptions(this._options),this._adapter.setIcon(this._icon),this._isInitialized=!0}destroy(){this._adapter.destroy(),this._isInitialized=!1}get options(){return this._options}set options(t){this._options=t.map(e=>w({},e)),this._isInitialized&&this._adapter.setMenuOptions(t)}get icon(){return this._icon}set icon(t){this._icon!==t&&(this._icon=t||Ne.defaults.ICON,this._isInitialized&&this._adapter.setIcon(t),this._adapter.setHostAttribute(Ne.attributes.ICON,this._icon))}};var E8='<template><forge-menu placement="bottom-end"><forge-icon-button><forge-icon name="help"></forge-icon></forge-icon-button><forge-tooltip type="label" placement="bottom">Help</forge-tooltip></forge-menu></template>',q0=class extends M{static get observedAttributes(){return[Ne.attributes.ICON]}constructor(){super(),q.define(e3),this._core=new gi(new mi(this))}initializedCallback(){V0(this,E8)}connectedCallback(){this._core.initialize()}disconnectedCallback(){this._core.destroy()}attributeChangedCallback(t,e,a){switch(t){case Ne.attributes.ICON:this.icon=a;break}}};s([v()],q0.prototype,"options",2),s([v()],q0.prototype,"icon",2),q0=s([y({name:Ne.elementName,dependencies:[x2,n1,p1]})],q0);function zh(){x(q0)}var u4=`${b}profile-card`,C8={FULL_NAME:"full-name",EMAIL:"email",SIGN_OUT:"sign-out",PROFILE:"profile",SIGN_OUT_TEXT:"sign-out-text",PROFILE_TEXT:"profile-text",AVATAR_TEXT:"avatar-text",AVATAR_ICON:"avatar-icon",AVATAR_IMAGE_URL:"avatar-image-url",AVATAR_LETTER_COUNT:"avatar-letter-count"},z8={FULL_NAME:".full-name",EMAIL:".email",AVATAR:".avatar > forge-avatar",ACTION_TOOLBAR:"#action-toolbar",PROFILE_BUTTON:"#profile-button",SIGN_OUT_BUTTON:"#sign-out-button"},A8={SHOW_SIGN_OUT_BUTTON:!0,SHOW_PROFILE_BUTTON:!1,SIGN_OUT_BUTTON_TEXT:"Sign out",PROFILE_BUTTON_TEXT:"Profile"},B8={SIGN_OUT:`${u4}-sign-out`,PROFILE:`${u4}-profile`},Y={elementName:u4,attributes:C8,selectors:z8,defaults:A8,events:B8};var wi=class extends I{constructor(t){super(t),this._fullNameElement=g(t,Y.selectors.FULL_NAME),this._emailElement=g(t,Y.selectors.EMAIL),this._avatarElement=g(t,Y.selectors.AVATAR),this._actionToolbar=g(t,Y.selectors.ACTION_TOOLBAR),this._profileButton=g(t,Y.selectors.PROFILE_BUTTON),this._signOutButton=g(t,Y.selectors.SIGN_OUT_BUTTON)}setFullName(t){this._fullNameElement.textContent=t}setEmail(t){this._emailElement.textContent=t}setAvatarText(t){r2(this._avatarElement),this._avatarElement.text=t}setAvatarIcon(t){if(t){let e=new P0({props:{name:t}});this._avatarElement.replaceChildren(e.element)}else r2(this._avatarElement)}setAvatarImageUrl(t){this._avatarElement.imageUrl=t}setAvatarLetterCount(t){this._avatarElement.letterCount=t}setActionToolbarVisibility(t){t?this._actionToolbar.style.removeProperty("display"):this._actionToolbar.style.display="none"}setProfileButtonVisibility(t){t?this._profileButton.style.removeProperty("display"):this._profileButton.style.display="none"}setSignOutButtonVisibility(t){t?this._signOutButton.style.removeProperty("display"):this._signOutButton.style.display="none"}setSignOutButtonText(t){this._signOutButton.textContent=t}setProfileButtonText(t){this._profileButton.textContent=t}setProfileButtonListener(t){this._profileButton.addEventListener("click",t)}setSignOutButtonListener(t){this._signOutButton.addEventListener("click",t)}requestProfileButtonFocus(t){window.requestAnimationFrame(()=>this._profileButton.focus(t))}requestSignOutButtonFocus(t){window.requestAnimationFrame(()=>this._signOutButton.focus(t))}};var ui=class{constructor(t){this._adapter=t;this._showSignOutButton=Y.defaults.SHOW_SIGN_OUT_BUTTON;this._showProfileButton=Y.defaults.SHOW_PROFILE_BUTTON;this._signOutButtonText=Y.defaults.SIGN_OUT_BUTTON_TEXT;this._profileButtonText=Y.defaults.PROFILE_BUTTON_TEXT;this._profileListener=e=>this._onProfileButtonClick(e),this._signOutListener=e=>this._onSignOutButtonClick(e)}initialize(){this._adapter.setProfileButtonListener(this._profileListener),this._adapter.setSignOutButtonListener(this._signOutListener)}focus(t){this._showSignOutButton?this._adapter.requestSignOutButtonFocus(t1(w({},t),{focusVisible:!0})):this._showProfileButton&&this._adapter.requestProfileButtonFocus(t1(w({},t),{focusVisible:!0}))}_setActionVisibility(){let t=this._showSignOutButton||this._showProfileButton;this._adapter.setActionToolbarVisibility(t),this._adapter.setSignOutButtonVisibility(this._showSignOutButton),this._adapter.setProfileButtonVisibility(this._showProfileButton)}_onProfileButtonClick(t){t.stopPropagation(),this._adapter.emitHostEvent(Y.events.PROFILE)}_onSignOutButtonClick(t){t.stopPropagation(),this._adapter.emitHostEvent(Y.events.SIGN_OUT)}get fullName(){return this._fullName}set fullName(t){this._fullName!==t&&(this._fullName=t!=null?t:"",this._adapter.setFullName(this._fullName),this._avatarText||this._adapter.setAvatarText(this._fullName),this._adapter.toggleHostAttribute(Y.attributes.FULL_NAME,!!this._fullName,this._fullName))}get email(){return this._email}set email(t){this._email!==t&&(this._email=t!=null?t:"",this._adapter.setEmail(this._email),this._adapter.toggleHostAttribute(Y.attributes.EMAIL,!!this._email,this._email))}get avatarText(){return this._avatarText}set avatarText(t){this._avatarText!==t&&(this._avatarText=t!=null?t:"",this._adapter.setAvatarText(this._avatarText),this._adapter.toggleHostAttribute(Y.attributes.AVATAR_TEXT,!!this._avatarText,this._avatarText))}get avatarIcon(){return this._avatarIcon}set avatarIcon(t){this._avatarIcon!==t&&(this._avatarIcon=t!=null?t:"",this._adapter.setAvatarIcon(this._avatarIcon),this._adapter.toggleHostAttribute(Y.attributes.AVATAR_ICON,!!this._avatarIcon,this._avatarIcon))}get avatarImageUrl(){return this._avatarImageUrl}set avatarImageUrl(t){this._avatarImageUrl!==t&&(this._avatarImageUrl=t,this._adapter.setAvatarImageUrl(this._avatarImageUrl),this._adapter.toggleHostAttribute(Y.attributes.AVATAR_IMAGE_URL,!!this._avatarImageUrl,this._avatarImageUrl))}get avatarLetterCount(){return this._avatarLetterCount}set avatarLetterCount(t){this._avatarLetterCount!==t&&(this._avatarLetterCount=t,this._adapter.setAvatarLetterCount(this._avatarLetterCount),this._adapter.toggleHostAttribute(Y.attributes.AVATAR_LETTER_COUNT,!!this._avatarLetterCount,`${this._avatarLetterCount}`))}get signOut(){return this._showSignOutButton}set signOut(t){t=!!t,this._showSignOutButton!==t&&(this._showSignOutButton=t,this._setActionVisibility(),this._adapter.toggleHostAttribute(Y.attributes.SIGN_OUT,this._showSignOutButton))}get profile(){return this._showProfileButton}set profile(t){t=!!t,this._showProfileButton!==t&&(this._showProfileButton=t,this._setActionVisibility(),this._adapter.toggleHostAttribute(Y.attributes.PROFILE,this._showProfileButton))}get signOutText(){return this._signOutButtonText}set signOutText(t){if(this._signOutButtonText!==t){this._signOutButtonText=t||Y.defaults.SIGN_OUT_BUTTON_TEXT,this._adapter.setSignOutButtonText(this._signOutButtonText);let e=this._signOutButtonText!==Y.defaults.SIGN_OUT_BUTTON_TEXT;this._adapter.toggleHostAttribute(Y.attributes.SIGN_OUT_TEXT,e,this._signOutButtonText)}}get profileText(){return this._profileButtonText}set profileText(t){if(this._profileButtonText!==t){this._profileButtonText=t||Y.defaults.PROFILE_BUTTON_TEXT,this._adapter.setProfileButtonText(this._profileButtonText);let e=t!==Y.defaults.PROFILE_BUTTON_TEXT;this._adapter.toggleHostAttribute(Y.attributes.PROFILE_TEXT,e,this._profileButtonText)}}};var _i=class extends R0{constructor(t){super(t)}toggleStateLayer(t){this._stateLayerElement.disabled=!t}};var T8=`${b}button`,Ah={VARIANT:"variant",PILL:"pill",THEME:"theme",FULL_WIDTH:"full-width"},S8=w({},Ah),I2={elementName:T8,observedAttributes:Ah,attributes:S8};var fi=class extends N0{constructor(e){super(e);this._variant="text";this._pill=!1;this._theme="primary";this._fullWidth=!1}initialize(){super.initialize(),this._adapter.tryApplyGlobalConfiguration(["variant","dense"])}get variant(){return this._variant}set variant(e){if(this._variant!==e){let a=this._variant;this._variant=e,this._variant==="link"?this._adapter.toggleStateLayer(!1):a==="link"&&this._adapter.toggleStateLayer(!0),this._adapter.setHostAttribute(I2.attributes.VARIANT,this._variant)}}get pill(){return this._pill}set pill(e){this._pill!==e&&(this._pill=e,this._adapter.toggleHostAttribute(I2.attributes.PILL,this._pill))}get theme(){return this._theme}set theme(e){this._theme!==e&&(this._theme=e,this._adapter.setHostAttribute(I2.attributes.THEME,this._theme))}get fullWidth(){return this._fullWidth}set fullWidth(e){this._fullWidth!==e&&(this._fullWidth=e,this._adapter.toggleHostAttribute(I2.attributes.FULL_WIDTH,this._fullWidth))}};var k8='<template><div class="forge-button" part="root"><slot name="start"></slot><slot></slot><slot name="end"></slot><forge-focus-indicator target=":host" part="focus-indicator"></forge-focus-indicator><forge-state-layer target=":host" exportparts="surface:state-layer"></forge-state-layer></div></template>',O8=':host{--_button-display:var(--forge-button-display, inline-flex);--_button-disabled-cursor:var(--forge-button-disabled-cursor, not-allowed)}:host{display:var(--_button-display);position:relative;outline:0;vertical-align:middle;-webkit-tap-highlight-color:transparent}:host([hidden]){display:none}.forge-button{--_button-primary-color:var(--forge-button-primary-color, var(--forge-theme-primary, #3f51b5));--_button-text-color:var(--forge-button-text-color, var(--_button-primary-color));--_button-disabled-color:var(--forge-button-disabled-color, var(--forge-theme-surface-container, #e0e0e0));--_button-padding:var(--forge-button-padding, var(--forge-spacing-medium, 16px));--_button-justify:var(--forge-button-justify, center);--_button-shape:var(--forge-button-shape, calc(var(--forge-shape-medium, 4px) * var(--forge-shape-factor, 1)));--_button-height:var(--forge-button-height, 36px);--_button-min-width:var(--forge-button-min-width, 64px);--_button-spacing:var(--forge-button-spacing, var(--forge-spacing-xsmall, 8px));--_button-border-width:var(--forge-button-border-width, medium);--_button-border-style:var(--forge-button-border-style, none);--_button-border-color:var(--forge-button-border-color, currentColor);--_button-shape-start-start-radius:var(--forge-button-shape-start-start-radius, var(--_button-shape));--_button-shape-start-end-radius:var(--forge-button-shape-start-end-radius, var(--_button-shape));--_button-shape-end-start-radius:var(--forge-button-shape-end-start-radius, var(--_button-shape));--_button-shape-end-end-radius:var(--forge-button-shape-end-end-radius, var(--_button-shape));--_button-padding-block:var(--forge-button-padding-block, var(--_button-padding));--_button-padding-inline:var(--forge-button-padding-inline, var(--_button-padding));--_button-background:var(--forge-button-background, transparent);--_button-hover-background:var(--forge-button-hover-background, var(--_button-background));--_button-active-background:var(--forge-button-active-background, var(--_button-background));--_button-color:var(--forge-button-color, var(--_button-text-color));--_button-icon-size:var(--forge-button-icon-size, calc(var(--forge-typography-font-size, 1rem) * 1.125));--_button-shadow:var(--forge-button-shadow, none);--_button-hover-shadow:var(--forge-button-hover-shadow, none);--_button-active-shadow:var(--forge-button-active-shadow, none);--_button-cursor:var(--forge-button-cursor, pointer);--_button-transition-duration:var(--forge-button-transition-duration, var(--forge-animation-duration-short3, 150ms));--_button-transition-timing:var(--forge-button-transition-timing, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1)));--_button-text-padding-inline:var(--forge-button-text-padding-inline, var(--forge-spacing-xsmall, 8px));--_button-outlined-background:var(--forge-button-outlined-background, transparent);--_button-outlined-color:var(--forge-button-outlined-color, var(--_button-primary-color));--_button-outlined-border-width:var(--forge-button-outlined-border-width, var(--forge-border-thin, 1px));--_button-outlined-border-style:var(--forge-button-outlined-border-style, solid);--_button-outlined-border-color:var(--forge-button-outlined-border-color, var(--_button-primary-color));--_button-tonal-background:var(--forge-button-tonal-background, var(--forge-theme-primary-container, #d1d5ed));--_button-tonal-disabled-background:var(--forge-button-tonal-disabled-background, var(--_button-disabled-color));--_button-tonal-color:var(--forge-button-tonal-color, var(--forge-theme-on-primary-container, #222c62));--_button-tonal-disabled-color:var(--forge-button-tonal-disabled-color, var(--_button-disabled-text-color));--_button-filled-background:var(--forge-button-filled-background, var(--_button-primary-color));--_button-filled-disabled-background:var(--forge-button-filled-disabled-background, var(--_button-disabled-color));--_button-filled-color:var(--forge-button-filled-color, var(--forge-theme-on-primary, #ffffff));--_button-filled-disabled-color:var(--forge-button-filled-disabled-color, var(--_button-disabled-text-color));--_button-raised-background:var(--forge-button-raised-background, var(--_button-primary-color));--_button-raised-disabled-background:var(--forge-button-raised-disabled-background, var(--_button-disabled-color));--_button-raised-color:var(--forge-button-raised-color, var(--forge-theme-on-primary, #ffffff));--_button-raised-disabled-color:var(--forge-button-raised-disabled-color, var(--_button-disabled-text-color));--_button-raised-shadow:var(--forge-button-raised-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12));--_button-raised-hover-shadow:var(--forge-button-raised-hover-shadow, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12));--_button-raised-active-shadow:var(--forge-button-raised-active-shadow, 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12));--_button-raised-disabled-shadow:var(--forge-button-raised-disabled-shadow, none);--_button-link-color:var(--forge-button-link-color, var(--_button-primary-color));--_button-link-text-decoration:var(--forge-button-link-text-decoration, underline);--_button-link-height:var(--forge-button-link-height, auto);--_button-link-padding:var(--forge-button-link-padding, 0);--_button-link-line-height:var(--forge-button-link-line-height, normal);--_button-link-width:var(--forge-button-link-width, auto);--_button-link-hover-text-decoration:var(--forge-button-link-hover-text-decoration, none);--_button-link-active-opacity:var(--forge-button-link-active-opacity, 0.65);--_button-link-transition-duration:var(--forge-button-link-transition-duration, var(--forge-animation-duration-short3, 150ms));--_button-link-transition-timing:var(--forge-button-link-transition-timing, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1)));--_button-disabled-text-color:var(--forge-button-disabled-text-color, var(--forge-theme-text-low, rgba(0, 0, 0, 0.38)));--_button-disabled-background:var(--forge-button-disabled-background, transparent);--_button-disabled-border-color:var(--forge-button-disabled-border-color, var(--_button-disabled-color));--_button-disabled-shadow:var(--forge-button-disabled-shadow, none);--_button-dense-height:var(--forge-button-dense-height, 24px);--_button-pill-shape:var(--forge-button-pill-shape, calc(var(--forge-shape-full, 9999px) * var(--forge-shape-factor, 1)));--_button-pill-padding-inline:var(--forge-button-pill-padding-inline, var(--forge-spacing-small, 12px));--_button-focus-indicator-offset:var(--forge-button-focus-indicator-offset, 4px);--_button-text-focus-indicator-offset:var(--forge-button-text-focus-indicator-offset, 0px);--_button-link-focus-indicator-offset:var(--forge-button-link-focus-indicator-offset, 2px);--_button-popover-icon-transition-duration:var(--forge-button-popover-icon-transition-duration, var(--forge-animation-duration-short3, 150ms));--_button-popover-icon-transition-timing:var(--forge-button-popover-icon-transition-timing, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1)));--_button-popover-icon-open-rotation:var(--forge-button-popover-icon-open-rotation, 180deg)}.forge-button{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-button-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-button-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-button-font-size-scale, .875)));font-weight:var(--forge-typography-button-font-weight,500);line-height:var(--forge-typography-button-line-height, normal);letter-spacing:var(--forge-typography-button-letter-spacing, .0714285714em);text-transform:var(--forge-typography-button-text-transform,inherit);text-decoration:var(--forge-typography-button-text-decoration,inherit);position:relative;display:var(--_button-display);align-items:center;justify-content:var(--_button-justify);gap:var(--_button-spacing);z-index:0;box-sizing:border-box;min-inline-size:var(--_button-min-width);height:var(--_button-height);inline-size:100%;border-width:var(--_button-border-width);border-style:var(--_button-border-style);border-color:var(--_button-border-color);border-start-start-radius:var(--_button-shape-start-start-radius);border-start-end-radius:var(--_button-shape-start-end-radius);border-end-start-radius:var(--_button-shape-end-start-radius);border-end-end-radius:var(--_button-shape-end-end-radius);padding-block:var(--_button-padding-block);padding-inline:var(--_button-padding-inline);box-shadow:var(--_button-shadow);outline:0;user-select:none;-webkit-appearance:none;vertical-align:middle;text-decoration:none;white-space:nowrap;background:var(--_button-background);color:var(--_button-color);cursor:var(--_button-cursor);transition-property:box-shadow,background;transition-duration:var(--_button-transition-duration);transition-timing-function:var(--_button-transition-timing)}.forge-button::-moz-focus-inner{padding:0;border:0}.forge-button:hover{--_button-shadow:var(--_button-hover-shadow);background:var(--_button-hover-background)}.forge-button:active{--_button-shadow:var(--_button-active-shadow);background:var(--_button-active-background)}.forge-button ::slotted(:is([slot=start],[slot=end])){font-size:var(--_button-icon-size)}.with-anchor{display:flex;justify-content:stretch;align-items:stretch;padding:0}::slotted(a){display:flex;align-items:center;justify-content:center;gap:var(--_button-spacing);width:100%;padding:var(--_button-padding);color:var(--_button-color);outline:0;border-radius:var(--_button-shape);text-decoration:none;--forge-icon-font-size:var(--_button-icon-size)}:host([variant=link]) ::slotted(a){position:relative;inset:auto}forge-state-layer{--forge-state-layer-color:var(--_button-color)}forge-focus-indicator{--forge-focus-indicator-color:var(--_button-primary-color);--forge-focus-indicator-outward-offset:var(--_button-focus-indicator-offset)}:host([theme=secondary]) .forge-button{--_button-primary-color:var(--forge-button-primary-color, var(--forge-theme-secondary, #ffc107))}:host([theme=secondary][variant=filled]) .forge-button{--_button-filled-color:var(--forge-button-filled-color, var(--forge-theme-on-secondary, #000000))}:host([theme=secondary][variant=raised]) .forge-button{--_button-raised-color:var(--forge-button-raised-color, var(--forge-theme-on-secondary, #000000))}:host([theme=secondary][variant=tonal]) .forge-button{--_button-tonal-background:var(--forge-button-tonal-background, var(--forge-theme-secondary-container, #fff0c3));--_button-tonal-color:var(--forge-button-tonal-color, var(--forge-theme-on-secondary-container, #8a6804))}:host([theme=tertiary]) .forge-button{--_button-primary-color:var(--forge-button-primary-color, var(--forge-theme-tertiary, #3d5afe))}:host([theme=tertiary][variant=filled]) .forge-button{--_button-filled-color:var(--forge-button-filled-color, var(--forge-theme-on-tertiary, #ffffff))}:host([theme=tertiary][variant=raised]) .forge-button{--_button-raised-color:var(--forge-button-raised-color, var(--forge-theme-on-tertiary, #ffffff))}:host([theme=tertiary][variant=tonal]) .forge-button{--_button-tonal-background:var(--forge-button-tonal-background, var(--forge-theme-tertiary-container, #d0d7ff));--_button-tonal-color:var(--forge-button-tonal-color, var(--forge-theme-on-tertiary-container, #213189))}:host([theme=success]) .forge-button{--_button-primary-color:var(--forge-button-primary-color, var(--forge-theme-success, #2e7d32))}:host([theme=success][variant=filled]) .forge-button{--_button-filled-color:var(--forge-button-filled-color, var(--forge-theme-on-success, #ffffff))}:host([theme=success][variant=raised]) .forge-button{--_button-raised-color:var(--forge-button-raised-color, var(--forge-theme-on-success, #ffffff))}:host([theme=success][variant=tonal]) .forge-button{--_button-tonal-background:var(--forge-button-tonal-background, var(--forge-theme-success-container, #cde0ce));--_button-tonal-color:var(--forge-button-tonal-color, var(--forge-theme-on-success-container, #19441b))}:host([theme=error]) .forge-button{--_button-primary-color:var(--forge-button-primary-color, var(--forge-theme-error, #b00020))}:host([theme=error][variant=filled]) .forge-button{--_button-filled-color:var(--forge-button-filled-color, var(--forge-theme-on-error, #ffffff))}:host([theme=error][variant=raised]) .forge-button{--_button-raised-color:var(--forge-button-raised-color, var(--forge-theme-on-error, #ffffff))}:host([theme=error][variant=tonal]) .forge-button{--_button-tonal-background:var(--forge-button-tonal-background, var(--forge-theme-error-container, #ecc2c9));--_button-tonal-color:var(--forge-button-tonal-color, var(--forge-theme-on-error-container, #5f0011))}:host([theme=warning]) .forge-button{--_button-primary-color:var(--forge-button-primary-color, var(--forge-theme-warning, #d14900))}:host([theme=warning][variant=filled]) .forge-button{--_button-filled-color:var(--forge-button-filled-color, var(--forge-theme-on-warning, #ffffff))}:host([theme=warning][variant=raised]) .forge-button{--_button-raised-color:var(--forge-button-raised-color, var(--forge-theme-on-warning, #ffffff))}:host([theme=warning][variant=tonal]) .forge-button{--_button-tonal-background:var(--forge-button-tonal-background, var(--forge-theme-warning-container, #f4d3c2));--_button-tonal-color:var(--forge-button-tonal-color, var(--forge-theme-on-warning-container, #712700))}:host([theme=info]) .forge-button{--_button-primary-color:var(--forge-button-primary-color, var(--forge-theme-info, #1565c0))}:host([theme=info][variant=filled]) .forge-button{--_button-filled-color:var(--forge-button-filled-color, var(--forge-theme-on-info, #ffffff))}:host([theme=info][variant=raised]) .forge-button{--_button-raised-color:var(--forge-button-raised-color, var(--forge-theme-on-info, #ffffff))}:host([theme=info][variant=tonal]) .forge-button{--_button-tonal-background:var(--forge-button-tonal-background, var(--forge-theme-info-container, #c7daf0));--_button-tonal-color:var(--forge-button-tonal-color, var(--forge-theme-on-info-container, #0b3768))}:host(:where(:not([variant]),[variant=text])) .forge-button{--_button-padding-inline:var(--_button-text-padding-inline)}:host([variant=filled]) .forge-button{--_button-background:var(--_button-filled-background);--_button-color:var(--_button-filled-color)}:host([variant=filled]) forge-state-layer{--forge-state-layer-color:var(--_button-filled-color)}:host([variant=raised]) .forge-button{--_button-background:var(--_button-raised-background);--_button-color:var(--_button-raised-color);--_button-shadow:var(--_button-raised-shadow)}:host([variant=raised]) .forge-button:hover{--_button-shadow:var(--_button-raised-hover-shadow)}:host([variant=raised]) .forge-button:active{--_button-shadow:var(--_button-raised-active-shadow)}:host([variant=raised]) forge-state-layer{--forge-state-layer-color:var(--_button-raised-color)}:host([variant=tonal]) .forge-button{--_button-background:var(--_button-tonal-background);--_button-color:var(--_button-tonal-color)}:host([variant=tonal]) forge-state-layer{--forge-state-layer-color:var(--_button-tonal-color)}:host([variant=outlined]) .forge-button{--_button-background:var(--_button-outlined-background);--_button-color:var(--_button-outlined-color);--_button-border-width:var(--_button-outlined-border-width);--_button-border-style:var(--_button-outlined-border-style);--_button-border-color:var(--_button-outlined-border-color)}:host([variant=link]) .forge-button{--_button-color:var(--_button-link-color);--_button-height:var(--_button-link-height);--_button-padding:var(--_button-link-padding);--_button-focus-indicator-offset:var(--_button-link-focus-indicator-offset);text-decoration:var(--_button-link-text-decoration);line-height:var(--_button-link-line-height);transition:opacity var(--_button-link-transition-duration) var(--_button-link-transition-timing);inline-size:var(--_button-link-width)}:host([variant=link]) .forge-button:hover{text-decoration:var(--_button-link-hover-text-decoration)}:host([variant=link]) .forge-button:active{opacity:var(--_button-link-active-opacity)}:host([full-width]){width:100%}:host([dense]) .forge-button{--_button-height:var(--_button-dense-height)}:host([pill]) .forge-button{--_button-shape:var(--_button-pill-shape);--_button-padding-inline:var(--_button-pill-padding-inline)}:host([pill]) forge-focus-indicator{--forge-focus-indicator-shape:var(--_button-pill-shape)}:host(:not([anchor])[disabled]){cursor:var(--_button-disabled-cursor)}:host(:not([anchor])[disabled]) .forge-button{--_button-background:var(--_button-disabled-background);--_button-color:var(--_button-disabled-text-color);--_button-shadow:var(--_button-disabled-shadow);pointer-events:none}:host(:not([anchor])[variant=outlined][disabled]) .forge-button{--_button-border-color:var(--_button-disabled-border-color)}:host(:not([anchor])[variant=tonal][disabled]) .forge-button{--_button-background:var(--_button-tonal-disabled-background);--_button-color:var(--_button-tonal-disabled-color)}:host(:not([anchor])[variant=filled][disabled]) .forge-button{--_button-background:var(--_button-filled-disabled-background);--_button-color:var(--_button-filled-disabled-color)}:host(:not([anchor])[variant=raised][disabled]) .forge-button{--_button-background:var(--_button-raised-disabled-background);--_button-color:var(--_button-raised-disabled-color);--_button-shadow:var(--_button-raised-disabled-shadow)}:host([popover-icon]) .forge-button__popover-icon{transition:rotate var(--_button-popover-icon-transition-duration) var(--_button-popover-icon-transition-timing)}:host([popover-icon][aria-expanded=true]) .forge-button__popover-icon{rotate:var(--_button-popover-icon-open-rotation)}::slotted(forge-circular-progress){--forge-circular-progress-indicator-color:var(--_button-color);--forge-circular-progress-track-color:transparent;--forge-circular-progress-size:1em}',V2=class extends Wt{static get observedAttributes(){return[...Object.values(v2.observedAttributes),...Object.values(I2.observedAttributes)]}constructor(){super(),H(this,k8,O8),this._core=new fi(new _i(this))}attributeChangedCallback(t,e,a){switch(t){case I2.observedAttributes.VARIANT:this.variant=a;return;case I2.observedAttributes.PILL:this.pill=p(a);return;case I2.observedAttributes.THEME:this.theme=a;return;case I2.observedAttributes.FULL_WIDTH:this.fullWidth=p(a);return}super.attributeChangedCallback(t,e,a)}};s([v()],V2.prototype,"variant",2),s([v()],V2.prototype,"pill",2),s([v()],V2.prototype,"theme",2),s([v()],V2.prototype,"fullWidth",2),V2=s([y({name:I2.elementName,dependencies:[Q,r1,X]})],V2);var xi=class extends X1{constructor(t){super(t)}_build(){var e,a,o;let t=document.createElement(I2.elementName);return(e=this._config.options)!=null&&e.variant&&(t.variant=this._config.options.variant),(a=this._config.options)!=null&&a.type&&(t.type=this._config.options.type),(o=this._config.options)!=null&&o.text&&(t.textContent=this._config.options.text),t}onClick(t){this._element.addEventListener("click",t)}onFocus(t){this._element.addEventListener("focus",e=>t(e))}onBlur(t){this._element.addEventListener("blur",e=>t(e))}};function Bh(){x(V2)}var bi=globalThis,Mi=bi.ShadowRoot&&(bi.ShadyCSS===void 0||bi.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Sh=Symbol(),Th=new WeakMap,yi=class{constructor(t,e,a){if(this._$cssResult$=!0,a!==Sh)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(Mi&&t===void 0){let a=e!==void 0&&e.length===1;a&&(t=Th.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),a&&Th.set(e,t))}return t}toString(){return this.cssText}},oe=r=>new yi(typeof r=="string"?r:r+"",void 0,Sh);var _4=(r,t)=>{if(Mi)r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let a=document.createElement("style"),o=bi.litNonce;o!==void 0&&a.setAttribute("nonce",o),a.textContent=e.cssText,r.appendChild(a)}},Hi=Mi?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(let a of t.cssRules)e+=a.cssText;return oe(e)})(r):r;var{is:D8,defineProperty:P8,getOwnPropertyDescriptor:N8,getOwnPropertyNames:R8,getOwnPropertySymbols:F8,getPrototypeOf:U8}=Object,$0=globalThis,kh=$0.trustedTypes,W8=kh?kh.emptyScript:"",f4=$0.reactiveElementPolyfillSupport,nr=(r,t)=>r,ir={toAttribute(r,t){switch(t){case Boolean:r=r?W8:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,t){let e=r;switch(t){case Boolean:e=r!==null;break;case Number:e=r===null?null:Number(r);break;case Object:case Array:try{e=JSON.parse(r)}catch(a){e=null}}return e}},Li=(r,t)=>!D8(r,t),Oh={attribute:!0,type:String,converter:ir,reflect:!1,hasChanged:Li},Dh,Ph;(Dh=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(Ph=$0.litPropertyMetadata)!=null||($0.litPropertyMetadata=new WeakMap);var d0=class extends HTMLElement{static addInitializer(t){var e;this._$Ei(),((e=this.l)!=null?e:this.l=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Oh){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){let a=Symbol(),o=this.getPropertyDescriptor(t,a,e);o!==void 0&&P8(this.prototype,t,o)}}static getPropertyDescriptor(t,e,a){var i;let{get:o,set:n}=(i=N8(this.prototype,t))!=null?i:{get(){return this[e]},set(l){this[e]=l}};return{get(){return o==null?void 0:o.call(this)},set(l){let h=o==null?void 0:o.call(this);n.call(this,l),this.requestUpdate(t,h,a)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){var e;return(e=this.elementProperties.get(t))!=null?e:Oh}static _$Ei(){if(this.hasOwnProperty(nr("elementProperties")))return;let t=U8(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(nr("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(nr("properties"))){let e=this.properties,a=[...R8(e),...F8(e)];for(let o of a)this.createProperty(o,e[o])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[a,o]of e)this.elementProperties.set(a,o)}this._$Eh=new Map;for(let[e,a]of this.elementProperties){let o=this._$Eu(e,a);o!==void 0&&this._$Eh.set(o,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let a=new Set(t.flat(1/0).reverse());for(let o of a)e.unshift(Hi(o))}else t!==void 0&&e.push(Hi(t));return e}static _$Eu(t,e){let a=e.attribute;return a===!1?void 0:typeof a=="string"?a:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e,a;((e=this._$EO)!=null?e:this._$EO=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&((a=t.hostConnected)==null||a.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){let t=new Map,e=this.constructor.elementProperties;for(let a of e.keys())this.hasOwnProperty(a)&&(t.set(a,this[a]),delete this[a]);t.size>0&&(this._$Ep=t)}createRenderRoot(){var e;let t=(e=this.shadowRoot)!=null?e:this.attachShadow(this.constructor.shadowRootOptions);return _4(t,this.constructor.elementStyles),t}connectedCallback(){var t,e;(t=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(a=>{var o;return(o=a.hostConnected)==null?void 0:o.call(a)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var a;return(a=e.hostDisconnected)==null?void 0:a.call(e)})}attributeChangedCallback(t,e,a){this._$AK(t,a)}_$EC(t,e){var n;let a=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,a);if(o!==void 0&&a.reflect===!0){let i=(((n=a.converter)==null?void 0:n.toAttribute)!==void 0?a.converter:ir).toAttribute(e,a.type);this._$Em=t,i==null?this.removeAttribute(o):this.setAttribute(o,i),this._$Em=null}}_$AK(t,e){var n;let a=this.constructor,o=a._$Eh.get(t);if(o!==void 0&&this._$Em!==o){let i=a.getPropertyOptions(o),l=typeof i.converter=="function"?{fromAttribute:i.converter}:((n=i.converter)==null?void 0:n.fromAttribute)!==void 0?i.converter:ir;this._$Em=o,this[o]=l.fromAttribute(e,i.type),this._$Em=null}}requestUpdate(t,e,a){var o;if(t!==void 0){if(a!=null||(a=this.constructor.getPropertyOptions(t)),!((o=a.hasChanged)!=null?o:Li)(this[t],e))return;this.P(t,e,a)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,a){var o;this._$AL.has(t)||this._$AL.set(t,e),a.reflect===!0&&this._$Em!==t&&((o=this._$Ej)!=null?o:this._$Ej=new Set).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var a,o;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((a=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[i,l]of this._$Ep)this[i]=l;this._$Ep=void 0}let n=this.constructor.elementProperties;if(n.size>0)for(let[i,l]of n)l.wrapped!==!0||this._$AL.has(i)||this[i]===void 0||this.P(i,this[i],l)}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(o=this._$EO)==null||o.forEach(n=>{var i;return(i=n.hostUpdate)==null?void 0:i.call(n)}),this.update(e)):this._$EU()}catch(n){throw t=!1,this._$EU(),n}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(a=>{var o;return(o=a.hostUpdated)==null?void 0:o.call(a)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU()}updated(t){}firstUpdated(t){}},Nh;d0.elementStyles=[],d0.shadowRootOptions={mode:"open"},d0[nr("elementProperties")]=new Map,d0[nr("finalized")]=new Map,f4==null||f4({ReactiveElement:d0}),((Nh=$0.reactiveElementVersions)!=null?Nh:$0.reactiveElementVersions=[]).push("2.0.4");var lr=globalThis,Ii=lr.trustedTypes,Rh=Ii?Ii.createPolicy("lit-html",{createHTML:r=>r}):void 0,qh="$lit$",X0=`lit$${Math.random().toFixed(9).slice(2)}$`,$h="?"+X0,G8=`<${$h}>`,Va=document,vr=()=>Va.createComment(""),hr=r=>r===null||typeof r!="object"&&typeof r!="function",V4=Array.isArray,Y8=r=>V4(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",x4=`[
|
|
7
7
|
\f\r]`,sr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Fh=/-->/g,Uh=/>/g,La=RegExp(`>|${x4}(?:([^\\s"'>=/]+)(${x4}*=${x4}*(?:[^
|
|
8
8
|
\f\r"'\`<>=]|("|')|))|$)`,"g"),Wh=/'/g,Gh=/"/g,Xh=/^(?:script|style|textarea|title)$/i,E4=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),re=E4(1),TK=E4(2),SK=E4(3),Ie=Symbol.for("lit-noChange"),E2=Symbol.for("lit-nothing"),Yh=new WeakMap,Ia=Va.createTreeWalker(Va,129);function jh(r,t){if(!V4(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return Rh!==void 0?Rh.createHTML(t):t}var K8=(r,t)=>{let e=r.length-1,a=[],o,n=t===2?"<svg>":t===3?"<math>":"",i=sr;for(let l=0;l<e;l++){let h=r[l],c,d,u=-1,_=0;for(;_<h.length&&(i.lastIndex=_,d=i.exec(h),d!==null);)_=i.lastIndex,i===sr?d[1]==="!--"?i=Fh:d[1]!==void 0?i=Uh:d[2]!==void 0?(Xh.test(d[2])&&(o=RegExp("</"+d[2],"g")),i=La):d[3]!==void 0&&(i=La):i===La?d[0]===">"?(i=o!=null?o:sr,u=-1):d[1]===void 0?u=-2:(u=i.lastIndex-d[2].length,c=d[1],i=d[3]===void 0?La:d[3]==='"'?Gh:Wh):i===Gh||i===Wh?i=La:i===Fh||i===Uh?i=sr:(i=La,o=void 0);let L=i===La&&r[l+1].startsWith("/>")?" ":"";n+=i===sr?h+G8:u>=0?(a.push(c),h.slice(0,u)+qh+h.slice(u)+X0+L):h+X0+(u===-2?l:L)}return[jh(r,n+(r[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),a]},cr=class r{constructor({strings:t,_$litType$:e},a){let o;this.parts=[];let n=0,i=0,l=t.length-1,h=this.parts,[c,d]=K8(t,e);if(this.el=r.createElement(c,a),Ia.currentNode=this.el.content,e===2||e===3){let u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(o=Ia.nextNode())!==null&&h.length<l;){if(o.nodeType===1){if(o.hasAttributes())for(let u of o.getAttributeNames())if(u.endsWith(qh)){let _=d[i++],L=o.getAttribute(u).split(X0),C=/([.?@])?(.*)/.exec(_);h.push({type:1,index:n,name:C[2],strings:L,ctor:C[1]==="."?M4:C[1]==="?"?H4:C[1]==="@"?L4:lo}),o.removeAttribute(u)}else u.startsWith(X0)&&(h.push({type:6,index:n}),o.removeAttribute(u));if(Xh.test(o.tagName)){let u=o.textContent.split(X0),_=u.length-1;if(_>0){o.textContent=Ii?Ii.emptyScript:"";for(let L=0;L<_;L++)o.append(u[L],vr()),Ia.nextNode(),h.push({type:2,index:++n});o.append(u[_],vr())}}}else if(o.nodeType===8)if(o.data===$h)h.push({type:2,index:n});else{let u=-1;for(;(u=o.data.indexOf(X0,u+1))!==-1;)h.push({type:7,index:n}),u+=X0.length-1}n++}}static createElement(t,e){let a=Va.createElement("template");return a.innerHTML=t,a}};function so(r,t,e=r,a){var i,l,h;if(t===Ie)return t;let o=a!==void 0?(i=e._$Co)==null?void 0:i[a]:e._$Cl,n=hr(t)?void 0:t._$litDirective$;return(o==null?void 0:o.constructor)!==n&&((l=o==null?void 0:o._$AO)==null||l.call(o,!1),n===void 0?o=void 0:(o=new n(r),o._$AT(r,e,a)),a!==void 0?((h=e._$Co)!=null?h:e._$Co=[])[a]=o:e._$Cl=o),o!==void 0&&(t=so(r,o._$AS(r,t.values),o,a)),t}var y4=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var c;let{el:{content:e},parts:a}=this._$AD,o=((c=t==null?void 0:t.creationScope)!=null?c:Va).importNode(e,!0);Ia.currentNode=o;let n=Ia.nextNode(),i=0,l=0,h=a[0];for(;h!==void 0;){if(i===h.index){let d;h.type===2?d=new pr(n,n.nextSibling,this,t):h.type===1?d=new h.ctor(n,h.name,h.strings,this,t):h.type===6&&(d=new I4(n,this,t)),this._$AV.push(d),h=a[++l]}i!==(h==null?void 0:h.index)&&(n=Ia.nextNode(),i++)}return Ia.currentNode=Va,o}p(t){let e=0;for(let a of this._$AV)a!==void 0&&(a.strings!==void 0?(a._$AI(t,a,e),e+=a.strings.length-2):a._$AI(t[e])),e++}},pr=class r{get _$AU(){var t,e;return(e=(t=this._$AM)==null?void 0:t._$AU)!=null?e:this._$Cv}constructor(t,e,a,o){var n;this.type=2,this._$AH=E2,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=a,this.options=o,this._$Cv=(n=o==null?void 0:o.isConnected)!=null?n:!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=so(this,t,e),hr(t)?t===E2||t==null||t===""?(this._$AH!==E2&&this._$AR(),this._$AH=E2):t!==this._$AH&&t!==Ie&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Y8(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==E2&&hr(this._$AH)?this._$AA.nextSibling.data=t:this.T(Va.createTextNode(t)),this._$AH=t}$(t){var n;let{values:e,_$litType$:a}=t,o=typeof a=="number"?this._$AC(t):(a.el===void 0&&(a.el=cr.createElement(jh(a.h,a.h[0]),this.options)),a);if(((n=this._$AH)==null?void 0:n._$AD)===o)this._$AH.p(e);else{let i=new y4(o,this),l=i.u(this.options);i.p(e),this.T(l),this._$AH=i}}_$AC(t){let e=Yh.get(t.strings);return e===void 0&&Yh.set(t.strings,e=new cr(t)),e}k(t){V4(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,a,o=0;for(let n of t)o===e.length?e.push(a=new r(this.O(vr()),this.O(vr()),this,this.options)):a=e[o],a._$AI(n),o++;o<e.length&&(this._$AR(a&&a._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var a;for((a=this._$AP)==null?void 0:a.call(this,!1,!0,e);t&&t!==this._$AB;){let o=t.nextSibling;t.remove(),t=o}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}},lo=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,a,o,n){this.type=1,this._$AH=E2,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=n,a.length>2||a[0]!==""||a[1]!==""?(this._$AH=Array(a.length-1).fill(new String),this.strings=a):this._$AH=E2}_$AI(t,e=this,a,o){let n=this.strings,i=!1;if(n===void 0)t=so(this,t,e,0),i=!hr(t)||t!==this._$AH&&t!==Ie,i&&(this._$AH=t);else{let l=t,h,c;for(t=n[0],h=0;h<n.length-1;h++)c=so(this,l[a+h],e,h),c===Ie&&(c=this._$AH[h]),i||(i=!hr(c)||c!==this._$AH[h]),c===E2?t=E2:t!==E2&&(t+=(c!=null?c:"")+n[h+1]),this._$AH[h]=c}i&&!o&&this.j(t)}j(t){t===E2?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}},M4=class extends lo{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===E2?void 0:t}},H4=class extends lo{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==E2)}},L4=class extends lo{constructor(t,e,a,o,n){super(t,e,a,o,n),this.type=5}_$AI(t,e=this){var i;if((t=(i=so(this,t,e,0))!=null?i:E2)===Ie)return;let a=this._$AH,o=t===E2&&a!==E2||t.capture!==a.capture||t.once!==a.once||t.passive!==a.passive,n=t!==E2&&(a===E2||o);o&&this.element.removeEventListener(this.name,this,a),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,a;typeof this._$AH=="function"?this._$AH.call((a=(e=this.options)==null?void 0:e.host)!=null?a:this.element,t):this._$AH.handleEvent(t)}},I4=class{constructor(t,e,a){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=a}get _$AU(){return this._$AM._$AU}_$AI(t){so(this,t)}};var b4=lr.litHtmlPolyfillSupport,Kh;b4==null||b4(cr,pr),((Kh=lr.litHtmlVersions)!=null?Kh:lr.litHtmlVersions=[]).push("3.2.1");var Zh=(r,t,e)=>{var n,i;let a=(n=e==null?void 0:e.renderBefore)!=null?n:t,o=a._$litPart$;if(o===void 0){let l=(i=e==null?void 0:e.renderBefore)!=null?i:null;a._$litPart$=o=new pr(t.insertBefore(vr(),l),l,void 0,e!=null?e:{})}return o._$AI(r),o};var st=class extends d0{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,a;let t=super.createRenderRoot();return(a=(e=this.renderOptions).renderBefore)!=null||(e.renderBefore=t.firstChild),t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Zh(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return Ie}},Qh;st._$litElement$=!0,st.finalized=!0,(Qh=globalThis.litElementHydrateSupport)==null||Qh.call(globalThis,{LitElement:st});var C4=globalThis.litElementPolyfillSupport;C4==null||C4({LitElement:st});var Jh;((Jh=globalThis.litElementVersions)!=null?Jh:globalThis.litElementVersions=[]).push("4.1.1");var Re=r=>(t,e)=>{e!==void 0?e.addInitializer(()=>{customElements.define(r,t)}):customElements.define(r,t)};var q8={attribute:!0,type:String,converter:ir,reflect:!1,hasChanged:Li},$8=(r=q8,t,e)=>{let{kind:a,metadata:o}=e,n=globalThis.litPropertyMetadata.get(o);if(n===void 0&&globalThis.litPropertyMetadata.set(o,n=new Map),n.set(e.name,r),a==="accessor"){let{name:i}=e;return{set(l){let h=t.get.call(this);t.set.call(this,l),this.requestUpdate(i,h,r)},init(l){return l!==void 0&&this.P(i,void 0,r),l}}}if(a==="setter"){let{name:i}=e;return function(l){let h=this[i];t.call(this,l),this.requestUpdate(i,h,r)}}throw Error("Unsupported decorator location: "+a)};function S1(r){return(t,e)=>typeof e=="object"?$8(r,t,e):((a,o,n)=>{let i=o.hasOwnProperty(n);return o.constructor.createProperty(n,i?t1(w({},a),{wrapped:!0}):a),i?Object.getOwnPropertyDescriptor(o,n):void 0})(r,t,e)}function ne(r){return S1(t1(w({},r),{state:!0,attribute:!1}))}var Ea=(r,t,e)=>(e.configurable=!0,e.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(r,t,e),e);function tc(r){return(t,e)=>{let{slot:a,selector:o}=r!=null?r:{},n="slot"+(a?`[name=${a}]`:":not([name])");return Ea(t,e,{get(){var h,c;let i=(h=this.renderRoot)==null?void 0:h.querySelector(n),l=(c=i==null?void 0:i.assignedElements(r))!=null?c:[];return o===void 0?l:l.filter(d=>d.matches(o))}})}}function j0(r){return(t,e)=>{let{slot:a}=r!=null?r:{},o="slot"+(a?`[name=${a}]`:":not([name])");return Ea(t,e,{get(){var i,l;let n=(i=this.renderRoot)==null?void 0:i.querySelector(o);return(l=n==null?void 0:n.assignedNodes(r))!=null?l:[]}})}}var Vi={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Ei=r=>(...t)=>({_$litDirective$:r,values:t}),vo=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,a){this._$Ct=t,this._$AM=e,this._$Ci=a}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};var ec="important",X8=" !"+ec,dr=Ei(class extends vo{constructor(r){var t;if(super(r),r.type!==Vi.ATTRIBUTE||r.name!=="style"||((t=r.strings)==null?void 0:t.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(r){return Object.keys(r).reduce((t,e)=>{let a=r[e];return a==null?t:t+`${e=e.includes("-")?e:e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${a};`},"")}update(r,[t]){let{style:e}=r.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(let a of this.ft)t[a]==null&&(this.ft.delete(a),a.includes("-")?e.removeProperty(a):e[a]=null);for(let a in t){let o=t[a];if(o!=null){this.ft.add(a);let n=typeof o=="string"&&o.endsWith(X8);a.includes("-")||n?e.setProperty(a,n?o.slice(0,-11):o,n?ec:""):e[a]=o}}return Ie}});var ie=Ei(class extends vo{constructor(r){var t;if(super(r),r.type!==Vi.ATTRIBUTE||r.name!=="class"||((t=r.strings)==null?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(r){return" "+Object.keys(r).filter(t=>r[t]).join(" ")+" "}update(r,[t]){var a,o;if(this.st===void 0){this.st=new Set,r.strings!==void 0&&(this.nt=new Set(r.strings.join(" ").split(/\s/).filter(n=>n!=="")));for(let n in t)t[n]&&!((a=this.nt)!=null&&a.has(n))&&this.st.add(n);return this.render(t)}let e=r.element.classList;for(let n of this.st)n in t||(e.remove(n),this.st.delete(n));for(let n in t){let i=!!t[n];i===this.st.has(n)||(o=this.nt)!=null&&o.has(n)||(i?(e.add(n),this.st.add(n)):(e.remove(n),this.st.delete(n)))}return Ie}});var j8=`${b}avatar`,Z8={IMAGE_URL:"image-url",TEXT:"text",LETTER_COUNT:"letter-count"},Q8={DEFAULT_LETTER_COUNT:2},Ca={elementName:j8,attributes:Z8,numbers:Q8};var J8=':host{display:inline-block}:host([hidden]){display:none}.forge-avatar{--_avatar-size:var(--forge-avatar-size, 40px);--_avatar-background:var(--forge-avatar-background, var(--forge-theme-tertiary, #3d5afe));--_avatar-color:var(--forge-avatar-color, var(--forge-theme-on-tertiary, #ffffff));--_avatar-transition-duration:var(--forge-avatar-transition-duration, var(--forge-animation-duration-short4, 200ms));--_avatar-transition-timing:var(--forge-avatar-transition-timing, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1)));--_avatar-shape:var(--forge-avatar-shape, calc(var(--forge-shape-round, 50%) * var(--forge-shape-factor, 1)))}.forge-avatar{display:flex;align-items:center;justify-content:center;overflow:hidden;transition:height var(--_avatar-transition-duration) var(--_avatar-transition-timing),width var(--_avatar-transition-duration) var(--_avatar-transition-timing);border-radius:var(--_avatar-shape);box-sizing:border-box;width:var(--_avatar-size);height:var(--_avatar-size);background-color:var(--_avatar-background);background-position:center;background-repeat:no-repeat;background-size:cover;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-subheading2-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-subheading2-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-subheading2-font-size-scale, 1)));font-weight:var(--forge-typography-subheading2-font-weight,400);line-height:var(--forge-typography-subheading2-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-subheading2-line-height-scale, 1.25)));letter-spacing:var(--forge-typography-subheading2-letter-spacing, normal);text-transform:var(--forge-typography-subheading2-text-transform,inherit);text-decoration:var(--forge-typography-subheading2-text-decoration,inherit);color:var(--_avatar-color)}.forge-avatar--image{background-color:inherit}',t9=(r,t)=>{var e;return r!=null&&r.trim()?t===1?r[0].toUpperCase():((e=r.match(/\S+/g))!=null?e:[]).slice(0,t).reduce((o,n)=>o+=n[0].toUpperCase(),""):""},z4="forge-avatar",Ve=class extends st{constructor(){super(...arguments);this.text="";this.letterCount=Ca.numbers.DEFAULT_LETTER_COUNT;this.imageUrl=""}willUpdate(e){e.has("imageUrl")&&this._tryLoadImage()}render(){var e;return re`
|
|
9
9
|
<div
|
|
@@ -58,7 +58,7 @@ var m5=Object.defineProperty,K6=Object.defineProperties,q6=Object.getOwnProperty
|
|
|
58
58
|
<slot @slotchange=${this._debounceMeterChange}></slot>
|
|
59
59
|
</div>
|
|
60
60
|
</div>
|
|
61
|
-
`}_syncMeters(){this._meters.forEach(e=>{e.direction=this.direction,e.min=this.min,e.max=this.max})}_handleMeterChange(e){e.stopPropagation(),this._meters.reduce((a,o,n,i)=>(o.style.setProperty("--_meter-z-index",`${i.length-n}`),o.style.setProperty("--_meter-inset",`${a}%`),a+o.percentage),0)}_handleHeadingSlotChange(){let e=[...this._labelNodes,...this._valueNodes].filter(a=>{var o;return!!((o=a.textContent)!=null&&o.trim())});this._hasSlottedHeadingContent=!!e.length}};O2.styles=oe(mf),O2.formAssociated=!0,s([S1({type:Number})],O2.prototype,"min",2),s([S1({type:Number})],O2.prototype,"max",2),s([S1({type:Boolean})],O2.prototype,"tickmarks",2),s([S1()],O2.prototype,"direction",2),s([S1()],O2.prototype,"density",2),s([S1()],O2.prototype,"shape",2),s([S1({attribute:"inner-shape"})],O2.prototype,"innerShape",2),s([ne()],O2.prototype,"_hasSlottedHeadingContent",2),s([j0({slot:"label"})],O2.prototype,"_labelNodes",2),s([j0({slot:"value"})],O2.prototype,"_valueNodes",2),s([tc({selector:"forge-meter"})],O2.prototype,"_meters",2),O2=s([Re("forge-meter-group")],O2);function Hd(){ue("forge-meter-group",O2)}var gf=`${b}page-state`,Ld={elementName:gf};var wf='<template><div class="forge-page-state" part="root"><div class="graphic" part="graphic-container"><slot name="graphic"></slot></div><div class="title" part="title-container"><slot name="title"></slot></div><div class="message" part="message-container"><slot name="message"></slot></div><div class="actions" part="actions-container"><slot name="action"></slot></div></div></template>',uf=':host{--_page-state-width:var(--forge-page-state-width, 576px);--_page-state-height:var(--forge-page-state-height, auto);--_page-state-spacing:var(--forge-page-state-spacing, var(--forge-spacing-xxxlarge, 56px));--_page-state-mobile-width:var(--forge-page-state-mobile-width, 70%);--_page-state-graphic-height:var(--forge-page-state-graphic-height, 296px);--_page-state-graphic-spacing:var(--forge-page-state-graphic-spacing, var(--forge-spacing-xxxlarge, 56px));--_page-state-mobile-graphic-height:var(--forge-page-state-mobile-graphic-height, auto);--_page-state-title-color:var(--forge-page-state-title-color, var(--forge-theme-text-medium, rgba(0, 0, 0, 0.6)));--_page-state-title-spacing:var(--forge-page-state-title-spacing, var(--forge-spacing-xxxlarge, 56px));--_page-state-title-spacing-mobile:var(--forge-page-state-title-spacing-mobile, var(--forge-spacing-large, 24px));--_page-state-message-color:var(--forge-page-state-message-color, var(--forge-theme-text-high, rgba(0, 0, 0, 0.87)));--_page-state-message-spacing:var(--forge-page-state-message-spacing, var(--forge-spacing-xxxlarge, 56px));--_page-state-message-spacing-mobile:var(--forge-page-state-message-spacing-mobile, var(--forge-spacing-large, 24px));--_page-state-actions-spacing:var(--forge-page-state-actions-spacing, 16px)}:host{display:flex;justify-content:center;align-items:center;width:100%;container-type:inline-size}:host([hidden]){display:none}.forge-page-state{width:var(--_page-state-width);margin-block:var(--_page-state-spacing);text-align:center}.forge-page-state .graphic{display:flex;justify-content:center;align-items:center;height:var(--_page-state-graphic-height);width:100%;margin-block-end:var(--_page-state-graphic-spacing)}.forge-page-state .graphic ::slotted([slot=graphic]){height:100%;width:100%}.forge-page-state .title{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-heading8-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-heading8-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-heading8-font-size-scale, 2.25)));font-weight:var(--forge-typography-heading8-font-weight,500);line-height:var(--forge-typography-heading8-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-heading8-line-height-scale, 2.625)));letter-spacing:var(--forge-typography-heading8-letter-spacing, -.0027777778em);text-transform:var(--forge-typography-heading8-text-transform,inherit);text-decoration:var(--forge-typography-heading8-text-decoration,inherit);--_page-state-title-spacing:var(--_page-state-title-spacing-mobile);color:var(--_page-state-title-color);margin-block:var(--_page-state-title-spacing)}.forge-page-state .message{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-body4-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-body4-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-font-size-scale, 1.25)));font-weight:var(--forge-typography-body4-font-weight,400);line-height:var(--forge-typography-body4-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-line-height-scale, 1.75)));letter-spacing:var(--forge-typography-body4-letter-spacing, .005em);text-transform:var(--forge-typography-body4-text-transform,inherit);text-decoration:var(--forge-typography-body4-text-decoration,inherit);--_page-state-message-spacing:var(--_page-state-message-spacing-mobile);color:var(--_page-state-message-color);margin-block-end:var(--_page-state-message-spacing)}.forge-page-state .actions{display:grid;justify-content:center;grid-auto-flow:column;gap:var(--_page-state-actions-spacing)}@container (max-width:599px){.forge-page-state{--_page-state-width:var(--_page-state-mobile-width)}.forge-page-state .graphic{--_page-state-graphic-height:var(--_page-state-mobile-graphic-height);--_page-state-graphic-spacing:var(--forge-page-state-graphic-spacing, 0)}.forge-page-state .title{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-heading5-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-heading5-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-heading5-font-size-scale, 1.5)));font-weight:var(--forge-typography-heading5-font-weight,500);line-height:var(--forge-typography-heading5-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-heading5-line-height-scale, 1.75)));letter-spacing:var(--forge-typography-heading5-letter-spacing, 0);text-transform:var(--forge-typography-heading5-text-transform,inherit);text-decoration:var(--forge-typography-heading5-text-decoration,inherit)}.forge-page-state .message{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-body2-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-body2-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-font-size-scale, 1)));font-weight:var(--forge-typography-body2-font-weight,400);line-height:var(--forge-typography-body2-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-line-height-scale, 1.375)));letter-spacing:var(--forge-typography-body2-letter-spacing, .015625em);text-transform:var(--forge-typography-body2-text-transform,inherit);text-decoration:var(--forge-typography-body2-text-decoration,inherit)}.forge-page-state .actions{grid-auto-flow:row}}',Ao=class extends M{constructor(){super(),H(this,wf,uf)}};Ao=s([y({name:Ld.elementName})],Ao);function Id(){x(Ao)}var Vd=`${b}paginator`,Ed={PAGE_INDEX:"page-index",PAGE_SIZE:"page-size",OFFSET:"offset",TOTAL:"total",PAGE_SIZE_OPTIONS:"page-size-options",LABEL:"label",FIRST_LAST:"first-last",FIRST:"first",DISABLED:"disabled",ALTERNATIVE:"alternative"},_f=w({},Ed),ff={LABEL:".label > slot[name=label]",PAGE_SIZE_SELECT:".page-size-options",RANGE_LABEL:".range-label > slot[name=range-label]",FIRST_PAGE_BUTTON:".first-page",FIRST_PAGE_CONTAINER:"#first-page-container",PREVIOUS_PAGE_BUTTON:".previous-page",PREVIOUS_PAGE_CONTAINER:"#previous-page-container",NEXT_PAGE_BUTTON:".next-page",NEXT_PAGE_CONTAINER:"#next-page-container",LAST_PAGE_BUTTON:".last-page",LAST_PAGE_CONTAINER:"#last-page-container",RANGE_LABEL_ALTERNATIVE:".alternative-range-label > slot[name=alternative-range-label]"},xf={CHANGE:`${Vd}-change`},bf={DEFAULT_PAGE_INDEX:0,DEFAULT_TOTAL:0,DEFAULT_PAGE_SIZE:25,DEFAULT_PAGE_SIZE_OPTIONS:[5,15,25,50,100]},yf={DEFAULT_LABEL:"Rows per page:",RANGE_SEPARATOR_LABEL:"of"},$={elementName:Vd,observedAttributes:Ed,attributes:_f,selectors:ff,events:xf,numbers:bf,strings:yf};var Xs=class{constructor(t){this._adapter=t;this._pageIndex=$.numbers.DEFAULT_PAGE_INDEX;this._pageSize=$.numbers.DEFAULT_PAGE_SIZE;this._offset=0;this._total=$.numbers.DEFAULT_TOTAL;this._pageSizeOptions=$.numbers.DEFAULT_PAGE_SIZE_OPTIONS.map(t=>({label:`${t}`,value:`${t}`}));this._label=$.strings.DEFAULT_LABEL;this._firstLast=!1;this._first=!1;this._disabled=!1;this._alternative=!1;this._firstPageListener=this._onFirstPage.bind(this);this._previousPageListener=this._onPreviousPage.bind(this);this._nextPageListener=this._onNextPage.bind(this);this._lastPageListener=this._onLastPage.bind(this);this._pageSizeListener=this._onPageSizeChanged.bind(this)}initialize(){this._updateRangeLabel(),this._adapter.setLabel(this._label),this._adapter.setPageSizeOptions(this._pageSizeOptions),this._adapter.setPageSize(this._pageSize),this._attachListeners(),this._toggleFirstLastButtons(),this._syncInteractionState()}focus(t){this._adapter.setFocus(t)}_attachListeners(){this._adapter.attachPageSizeChangeListener(this._pageSizeListener),this._adapter.attachFirstPageListener(this._firstPageListener),this._adapter.attachPreviousPageListener(this._previousPageListener),this._adapter.attachNextPageListener(this._nextPageListener),this._adapter.attachLastPageListener(this._lastPageListener)}_onFirstPage(t){if(t.stopPropagation(),!this._hasFirstPage())return;let e=0;this._dispatchChangeEvent("first-page",{pageIndex:e})&&this._applyPageIndex(e)}_onPreviousPage(t){if(t.stopPropagation(),!this._hasPreviousPage())return;let e=this._pageIndex-1;this._dispatchChangeEvent("previous-page",{pageIndex:e})&&this._applyPageIndex(e)}_onNextPage(t){if(t.stopPropagation(),!this._hasNextPage())return;let e=this._pageIndex+1;this._dispatchChangeEvent("next-page",{pageIndex:e})&&this._applyPageIndex(e)}_onLastPage(t){if(t.stopPropagation(),!this._hasLastPage())return;let e=this._getMaxPages();this._dispatchChangeEvent("last-page",{pageIndex:e})&&this._applyPageIndex(e)}_onPageSizeChanged(t){t.stopPropagation();let e=Number(t.detail);this._dispatchChangeEvent("page-size",{pageIndex:0,pageSize:e})?(this._applyPageIndex(0),this._applyPageSize(e)):t.preventDefault()}_dispatchChangeEvent(t,{pageSize:e=this._pageSize,pageIndex:a=this._pageIndex}={}){let o=a*e,n={type:t,pageSize:e,pageIndex:a,offset:o},i=new CustomEvent($.events.CHANGE,{detail:n,bubbles:!0,cancelable:!0});return this._adapter.dispatchHostEvent(i),!i.defaultPrevented}_getMaxPages(){return Math.ceil(this._total/this._pageSize)-1}_updateRangeLabel(){let t;if(typeof this._rangeLabelCallback=="function"){let e={pageSize:this._pageSize,pageIndex:this._pageIndex,offset:this._offset,pageStart:this._pageIndex*this._pageSize+1,pageEnd:Math.min((this._pageIndex+1)*this._pageSize,this._total),total:this._total};t=this._rangeLabelCallback.call(null,e)}else if(this.pageSize>1){let e=this._pageIndex*this._pageSize,o=(Math.floor(e/this._pageSize)||0)*this._pageSize+1,n=e<this._total?Math.min(e+this._pageSize,this._total):e+this._pageSize;t=`${o}-${n} ${$.strings.RANGE_SEPARATOR_LABEL} ${this._total}`}else t=`${this._pageIndex+1} ${$.strings.RANGE_SEPARATOR_LABEL} ${this._total}`;this._adapter.setRangeLabel(t)}_syncInteractionState(){if(this._disabled)return;this._adapter.setFirstPageButtonEnabled(!0),this._adapter.setPreviousPageButtonEnabled(!0),this._adapter.setNextPageButtonEnabled(!0),this._adapter.setLastPageButtonEnabled(!0);let t=[];this._hasFirstPage()||t.push("first"),this._hasPreviousPage()||t.push("previous"),this._hasNextPage()||t.push("next"),this._hasLastPage()||t.push("last"),this._adapter.tryDisableFields(t)}_toggleFirstLastButtons(){this._toggleFirstButton(),this._firstLast?this._adapter.hasLastPageButton()||this._adapter.showLastPageButton():this._adapter.hasLastPageButton()&&this._adapter.hideLastPageButton()}_toggleFirstButton(){this._first||this._firstLast?this._adapter.hasFirstPageButton()||this._adapter.showFirstPageButton():this._adapter.hasFirstPageButton()&&this._adapter.hideFirstPageButton()}_hasFirstPage(){return this._hasPreviousPage()}_hasPreviousPage(){return this._pageIndex>0&&this._pageSize>0}_hasNextPage(){let t=this._getMaxPages();return this._pageIndex<t&&this._pageSize>0}_hasLastPage(){return this._hasNextPage()}_computePageIndexFromOffset(t){t>=this._total&&(this._total>=this._pageSize?t=this._total-this._pageSize:t=0);let e=Math.min(Math.max(t,0),this._total),a=Math.floor(e/this._pageSize);this._applyPageIndex(a)}_computeOffset(){this._total>0&&(this._offset=this._pageIndex*this._pageSize)}_applyPageIndex(t){this._pageIndex=t,this._computeOffset(),this._updateRangeLabel(),this._syncInteractionState(),this._adapter.toggleHostAttribute($.attributes.PAGE_INDEX,this._pageIndex!=null,this._pageIndex.toString())}_applyPageSize(t){this._pageSize=t,this._adapter.setPageSize(this._pageSize),this._computeOffset(),this._updateRangeLabel(),this._syncInteractionState()}_applyTotal(t){this._total=t,this._updateRangeLabel(),this._offset>0&&this._total>0&&this._computePageIndexFromOffset(this._offset),this._syncInteractionState()}_applyDisabled(t){this._disabled=t,t?(this._adapter.setPageSizeSelectEnabled(!1),this._adapter.setFirstPageButtonEnabled(!1),this._adapter.setPreviousPageButtonEnabled(!1),this._adapter.setNextPageButtonEnabled(!1),this._adapter.setLastPageButtonEnabled(!1)):(this._adapter.setPageSizeSelectEnabled(!0),this._syncInteractionState())}get pageIndex(){return this._pageIndex}set pageIndex(t){this._pageIndex!==t&&(k(t)?this._applyPageIndex(t):this._adapter.removeHostAttribute($.attributes.PAGE_INDEX))}get pageSize(){return this._pageSize}set pageSize(t){this._pageSize!==t&&(this._applyPageSize(t),this._adapter.setHostAttribute($.attributes.PAGE_SIZE,`${this._pageSize}`))}get offset(){return this._offset}set offset(t){this._offset!==t&&(this._offset=t,this._computePageIndexFromOffset(t))}get total(){return this._total}set total(t){this._total!==t&&(this._applyTotal(t),this._adapter.setHostAttribute($.attributes.TOTAL,`${this._total}`))}get pageSizeOptions(){return this._pageSizeOptions.map(t=>Number(t.value))}set pageSizeOptions(t){if(rt(t)&&t.length){if(this._pageSizeOptions=t.map(e=>({label:e.toString(),value:e.toString()})).sort((e,a)=>W(e.value)-W(a.value)),this._adapter.setPageSizeOptions(this._pageSizeOptions),this._adapter.attachPageSizeChangeListener(this._pageSizeListener),this._adapter.setPageSizeVisibility(!0),k(this._pageSize)&&this._pageSizeOptions.length&&!this._pageSizeOptions.find(e=>W(e.value)===this._pageSize)){let e=W(this._pageSizeOptions[0].value);this._applyPageSize(e)}}else t!=null&&t.length||(this._adapter.detachPageSizeChangeListener(this._pageSizeListener),this._adapter.setPageSizeVisibility(!1))}get label(){return this._label}set label(t){this._label!==t&&(this._label=t,this._adapter.setLabel(this._label),k(this._label)&&this._label.length?this._adapter.setHostAttribute($.attributes.LABEL,String(this._label)):this._adapter.removeHostAttribute($.attributes.LABEL))}get firstLast(){return this._firstLast}set firstLast(t){t=!!t,this._firstLast!==t&&(this._firstLast=t,this._toggleFirstLastButtons(),this._adapter.toggleHostAttribute($.attributes.FIRST_LAST,this._firstLast))}get first(){return this._first}set first(t){t=!!t,this._first!==t&&(this._first=t,this._toggleFirstButton(),this._adapter.toggleHostAttribute($.attributes.FIRST,this._first))}get disabled(){return this._disabled}set disabled(t){t=!!t,this._disabled!==t&&(this._applyDisabled(t),this._adapter.toggleHostAttribute($.attributes.DISABLED,this._disabled))}get alternative(){return this._alternative}set alternative(t){t=!!t,t!==this._alternative&&(this._alternative=t,this._adapter.toggleHostAttribute($.attributes.ALTERNATIVE,this._alternative))}get rangeLabelCallback(){return this._rangeLabelCallback}set rangeLabelCallback(t){this._rangeLabelCallback=t,this._updateRangeLabel()}};var js=class extends I{constructor(t){super(t),this._labelElement=g(t,$.selectors.LABEL),this._pageSizeSelect=g(t,$.selectors.PAGE_SIZE_SELECT),this._rangeLabel=g(t,$.selectors.RANGE_LABEL),this._rangeLabelAlternative=g(t,$.selectors.RANGE_LABEL_ALTERNATIVE),this._firstPageButton=g(t,$.selectors.FIRST_PAGE_BUTTON),this._firstPageContainer=g(t,$.selectors.FIRST_PAGE_CONTAINER),this._previousPageButton=g(t,$.selectors.PREVIOUS_PAGE_BUTTON),this._previousPageContainer=g(t,$.selectors.PREVIOUS_PAGE_CONTAINER),this._nextPageButton=g(t,$.selectors.NEXT_PAGE_BUTTON),this._nextPageContainer=g(t,$.selectors.NEXT_PAGE_CONTAINER),this._lastPageButton=g(t,$.selectors.LAST_PAGE_BUTTON),this._lastPageContainer=g(t,$.selectors.LAST_PAGE_CONTAINER)}setLabel(t){this._labelElement.textContent=t}setPageSizeOptions(t){r2(this._pageSizeSelect),this._pageSizeSelect.options=t}setPageSize(t){this._pageSizeSelect.value=t.toString()}setRangeLabel(t){this._rangeLabel.innerText=t,this._rangeLabelAlternative.innerText=t}hasFirstPageButton(){return!!g(this._component,$.selectors.FIRST_PAGE_BUTTON)}showFirstPageButton(){this._firstPagePlaceholder=Uo(this._component,!0,$.elementName,$.selectors.FIRST_PAGE_CONTAINER,this._firstPageContainer,this._firstPagePlaceholder)}hideFirstPageButton(){this._firstPagePlaceholder=Uo(this._component,!1,$.elementName,$.selectors.FIRST_PAGE_CONTAINER,this._firstPageContainer,this._firstPagePlaceholder)}hasLastPageButton(){return!!g(this._component,$.selectors.LAST_PAGE_BUTTON)}showLastPageButton(){this._lastPagePlaceholder=Uo(this._component,!0,$.elementName,$.selectors.LAST_PAGE_CONTAINER,this._lastPageContainer,this._lastPagePlaceholder)}hideLastPageButton(){this._lastPagePlaceholder=Uo(this._component,!1,$.elementName,$.selectors.LAST_PAGE_CONTAINER,this._lastPageContainer,this._lastPagePlaceholder)}attachPageSizeChangeListener(t){this._pageSizeSelect.addEventListener("change",t)}detachPageSizeChangeListener(t){this._pageSizeSelect.removeEventListener("change",t)}attachFirstPageListener(t){this._firstPageButton.addEventListener("click",t)}attachPreviousPageListener(t){this._previousPageButton.addEventListener("click",t)}attachNextPageListener(t){this._nextPageButton.addEventListener("click",t)}attachLastPageListener(t){this._lastPageButton.addEventListener("click",t)}setFirstPageButtonEnabled(t){this._firstPageButton.disabled=!t}setPreviousPageButtonEnabled(t){this._previousPageButton.disabled=!t}setNextPageButtonEnabled(t){this._nextPageButton.disabled=!t}setLastPageButtonEnabled(t){this._lastPageButton.disabled=!t}setPageSizeSelectEnabled(t){this._pageSizeSelect.disabled=!t}setPageSizeVisibility(t){this._pageSizeSelect.hidden=!t}setFocus(t){this._tryFocus([this._pageSizeSelect,this._firstPageButton,this._previousPageButton,this._nextPageButton,this._lastPageButton],t)}tryDisableFields(t){let e={first:()=>this.setFirstPageButtonEnabled(!1),last:()=>this.setLastPageButtonEnabled(!1),previous:()=>this.setPreviousPageButtonEnabled(!1),next:()=>this.setNextPageButtonEnabled(!1)};t.forEach(a=>{var o;return(o=e[a])==null?void 0:o.call(e)})}_tryFocus(t,e){let a=typeof(e==null?void 0:e.preventScroll)=="boolean"?e.preventScroll:!0;for(let o of t)if(o&&o.isConnected&&!o.disabled&&o.style.display!=="none"){o.focus(t1(w({},e),{preventScroll:a}));return}}};function Cd(r){class t extends r{constructor(...a){super(...a)}initializeFieldInstance(a){this._fieldElement=a,this._fieldElement.shadowRoot||window.customElements.upgrade(this._fieldElement)}attributeChangedCallback(a,o,n){var i;switch(a){case F.observedAttributes.LABEL_POSITION:this.labelPosition=n;return;case F.observedAttributes.LABEL_ALIGNMENT:this.labelAlignment=n;return;case F.observedAttributes.INVALID:this.invalid=p(n);return;case F.observedAttributes.REQUIRED:this.required=p(n);return;case F.observedAttributes.OPTIONAL:this.optional=p(n);return;case F.observedAttributes.DISABLED:this.disabled=p(n);return;case F.observedAttributes.FLOAT_LABEL:this.floatLabel=p(n);return;case F.observedAttributes.VARIANT:this.variant=n;return;case F.observedAttributes.THEME:this.theme=n;return;case F.observedAttributes.SHAPE:this.shape=n;return;case F.observedAttributes.DENSITY:this.density=n;return;case F.observedAttributes.DENSE:this.dense=p(n);return;case F.observedAttributes.POPOVER_ICON:this.popoverIcon=p(n);return;case F.observedAttributes.SUPPORT_TEXT_INSET:this.supportTextInset=n;return}(i=super.attributeChangedCallback)==null||i.call(this,a,o,n)}get labelPosition(){return this._fieldElement.labelPosition}set labelPosition(a){this._fieldElement.labelPosition!==a&&(this._fieldElement.labelPosition=a,this.setAttribute(V.attributes.LABEL_POSITION,a))}get labelAlignment(){return this._fieldElement.labelAlignment}set labelAlignment(a){this._fieldElement.labelAlignment!==a&&(this._fieldElement.labelAlignment=a,this.setAttribute(V.attributes.LABEL_ALIGNMENT,a))}get invalid(){return this._fieldElement.invalid}set invalid(a){this._fieldElement.invalid!==a&&(this._fieldElement.invalid=a,this.toggleAttribute(V.attributes.INVALID,a))}get required(){return this._fieldElement.required}set required(a){this._fieldElement.required!==a&&(this._fieldElement.required=a,this.toggleAttribute(V.attributes.REQUIRED,a))}get optional(){return this._fieldElement.optional}set optional(a){this._fieldElement.optional!==a&&(this._fieldElement.optional=a,this.toggleAttribute(V.attributes.OPTIONAL,a))}get disabled(){return this._fieldElement.disabled}set disabled(a){this._fieldElement.disabled!==a&&(this._fieldElement.disabled=a,this.toggleAttribute(V.attributes.DISABLED,a))}get floatLabel(){return this._fieldElement.floatLabel}set floatLabel(a){this._fieldElement.floatLabel!==a&&(this._fieldElement.floatLabel=a,this.toggleAttribute(V.attributes.FLOAT_LABEL,a))}get variant(){return this._fieldElement.variant}set variant(a){this._fieldElement.variant!==a&&(this._fieldElement.variant=a,this.setAttribute(V.attributes.VARIANT,a))}get theme(){return this._fieldElement.theme}set theme(a){this._fieldElement.theme!==a&&(this._fieldElement.theme=a,this.setAttribute(V.attributes.THEME,a))}get shape(){return this._fieldElement.shape}set shape(a){this._fieldElement.shape!==a&&(this._fieldElement.shape=a,this.setAttribute(V.attributes.SHAPE,a))}get density(){return this._fieldElement.density}set density(a){this._fieldElement.density!==a&&(this._fieldElement.density=a,this.setAttribute(V.attributes.DENSITY,a))}get dense(){return this._fieldElement.dense}set dense(a){this._fieldElement.dense!==a&&(this._fieldElement.dense=a,this.toggleAttribute(V.attributes.DENSE,a))}get popoverIcon(){return this._fieldElement.popoverIcon}set popoverIcon(a){this._fieldElement.popoverIcon!==a&&(this._fieldElement.popoverIcon=a,this.toggleAttribute(V.attributes.POPOVER_ICON,a))}get supportTextInset(){return this._fieldElement.supportTextInset}set supportTextInset(a){this._fieldElement.supportTextInset!==a&&(this._fieldElement.supportTextInset=a,this.setAttribute(V.attributes.SUPPORT_TEXT_INSET,a))}floatLabelWithoutAnimation(a){this._fieldElement.floatLabelWithoutAnimation(a)}}return t}var Mf=`${b}scaffold`,zd={VIEWPORT:"viewport"},Hf=w({},zd),Bo={elementName:Mf,observedAttributes:zd,attributes:Hf};var Lf='<template><div class="forge-scaffold" part="root"><slot name="left"></slot><div class="header" part="header"><slot name="header"></slot></div><div class="body" part="body"><slot name="body-left"></slot><slot name="body-header"></slot><slot name="body"></slot><slot name="body-footer"></slot><slot name="body-right"></slot></div><slot name="footer"></slot><slot name="right"></slot></div></template>',If=':host{--_scaffold-height:var(--forge-scaffold-height, 100%);--_scaffold-width:var(--forge-scaffold-width, 100%)}:host{display:block;width:var(--_scaffold-width);height:var(--_scaffold-height)}:host([hidden]){display:none}.forge-scaffold{--_scaffold-overflow:var(--forge-scaffold-overflow, initial);--_scaffold-body-position:var(--forge-scaffold-body-position, relative)}.forge-scaffold{position:relative;display:grid;grid-template-areas:"left header right" "left body right" "left footer right";grid-template-rows:auto 1fr auto;grid-template-columns:auto 1fr auto;height:var(--_scaffold-height);width:var(--_scaffold-width);overflow:var(--_scaffold-overflow)}.header{grid-area:header;min-width:0;min-height:0}.body{position:var(--_scaffold-body-position);display:grid;grid-area:body;grid-template-areas:"body-left body-header body-right" "body-left body-inner body-right" "body-left body-footer body-right";grid-template-rows:auto 1fr auto;grid-template-columns:auto 1fr auto;width:var(--_scaffold-width);min-width:0;min-height:0;overflow:var(--_scaffold-overflow)}::slotted(*){min-width:0;min-height:0}::slotted([slot=left]){grid-area:left}::slotted([slot=right]){grid-area:right}::slotted([slot=body-left]){grid-area:body-left}::slotted([slot=body-right]){grid-area:body-right}::slotted([slot=body-header]){grid-area:body-header}::slotted([slot=body]){overflow:auto;grid-area:body-inner}::slotted([slot=body-footer]){grid-area:body-footer}::slotted([slot=footer]){grid-area:footer}::slotted([slot=body-left]),::slotted([slot=body-right]),::slotted([slot=body]),::slotted([slot=left]),::slotted([slot=right]){overflow:auto}:host([viewport]){--_scaffold-height:var(--forge-scaffold-height, 100dvh);--_scaffold-width:var(--forge-scaffold-width, 100dvw)}',$e=class extends M{static get observedAttributes(){return Object.values(Bo.observedAttributes)}constructor(){super(),H(this,Lf,If)}attributeChangedCallback(t,e,a){switch(t){case Bo.observedAttributes.VIEWPORT:this.viewport=a!==null;break}}get viewport(){return this.hasAttribute(Bo.attributes.VIEWPORT)}set viewport(t){this.toggleAttribute(Bo.attributes.VIEWPORT,!!t)}};$e=s([y({name:Bo.elementName})],$e);function Ad(){x($e)}var Zs=class extends I{constructor(t){super(t)}};var Bd=`${b}option`,Vf={DISABLED:"disabled",DIVIDER:"divider",LABEL:"label",SECONDARY_LABEL:"secondary-label",LEADING_ICON_CLASS:"leading-icon-class",LEADING_ICON_TYPE:"leading-icon-type",LEADING_ICON:"leading-icon",OPTION_CLASS:"option-class",TRAILING_ICON_CLASS:"trailing-icon-class",TRAILING_ICON_TYPE:"trailing-icon-type",TRAILING_ICON:"trailing-icon",VALUE:"value"},Ef={VALUE_CHANGE:`${Bd}-value-change`},N={elementName:Bd,attributes:Vf,events:Ef};var Qs=class{constructor(t){this._adapter=t;this._disabled=!1;this._divider=!1;this._optionClass=[]}get value(){return this._value}set value(t){this._value!==t&&(this._value=t,this._adapter.emitHostEvent(N.events.VALUE_CHANGE,this._value))}get label(){return this._label}set label(t){this._label!==t&&(this._label=t,this._adapter.toggleHostAttribute(N.attributes.LABEL,!!this._label,this._label))}get secondaryLabel(){return this._secondaryLabel}set secondaryLabel(t){this._secondaryLabel!==t&&(this._secondaryLabel=t,this._adapter.toggleHostAttribute(N.attributes.SECONDARY_LABEL,!!this._secondaryLabel,this._secondaryLabel))}get disabled(){return this._disabled}set disabled(t){this._disabled!==t&&(this._disabled=t,this._adapter.toggleHostAttribute(N.attributes.DISABLED,this._disabled))}get divider(){return this._divider}set divider(t){this._divider!==t&&(this._divider=t,this._adapter.toggleHostAttribute(N.attributes.DIVIDER,this._divider))}get optionClass(){return this._optionClass}set optionClass(t){t?typeof t=="string"&&(t=t.split(" ")):t=[],t=t.filter(e=>e&&!/\s+/.test(e)),this._optionClass.toString()!==t.toString()&&(this._optionClass=t,this._adapter.toggleHostAttribute(N.attributes.OPTION_CLASS,this._optionClass&&!!this._optionClass.length,this._optionClass.join(" ")))}get leadingIcon(){return this._leadingIcon}set leadingIcon(t){this._leadingIcon!==t&&(this._leadingIcon=t,this._adapter.toggleHostAttribute(N.attributes.LEADING_ICON,!!this._leadingIcon,this._leadingIcon))}get leadingIconClass(){return this._leadingIconClass}set leadingIconClass(t){this._leadingIconClass!==t&&(this._leadingIconClass=t,this._adapter.toggleHostAttribute(N.attributes.LEADING_ICON_CLASS,!!this._leadingIconClass,this._leadingIconClass))}get leadingIconType(){return this._leadingIconType}set leadingIconType(t){this._leadingIconType!==t&&(this._leadingIconType=t,this._adapter.toggleHostAttribute(N.attributes.LEADING_ICON_TYPE,!!this._leadingIconType,this._leadingIconType))}get leadingIconComponentProps(){return this._leadingIconComponentProps}set leadingIconComponentProps(t){this._leadingIconComponentProps!==t&&(this._leadingIconComponentProps=t)}get trailingIcon(){return this._trailingIcon}set trailingIcon(t){this._trailingIcon!==t&&(this._trailingIcon=t,this._adapter.toggleHostAttribute(N.attributes.TRAILING_ICON,!!this._trailingIcon,this._trailingIcon))}get trailingIconClass(){return this._trailingIconClass}set trailingIconClass(t){this._trailingIconClass!==t&&(this._trailingIconClass=t,this._adapter.toggleHostAttribute(N.attributes.TRAILING_ICON_CLASS,!!this._trailingIconClass,this._trailingIconClass))}get trailingIconType(){return this._trailingIconType}set trailingIconType(t){this._trailingIconType!==t&&(this._trailingIconType=t,this._adapter.toggleHostAttribute(N.attributes.TRAILING_ICON_TYPE,!!this._trailingIconType,this._trailingIconType))}get trailingIconComponentProps(){return this._trailingIconComponentProps}set trailingIconComponentProps(t){this._trailingIconComponentProps!==t&&(this._trailingIconComponentProps=t)}get leadingBuilder(){return this._leadingBuilder}set leadingBuilder(t){this._leadingBuilder!==t&&(this._leadingBuilder=t)}get trailingBuilder(){return this._trailingBuilder}set trailingBuilder(t){this._trailingBuilder!==t&&(this._trailingBuilder=t)}};var J1=class extends M{static get observedAttributes(){return[N.attributes.VALUE,N.attributes.LABEL,N.attributes.SECONDARY_LABEL,N.attributes.DISABLED,N.attributes.DIVIDER,N.attributes.OPTION_CLASS,N.attributes.LEADING_ICON,N.attributes.LEADING_ICON_CLASS,N.attributes.LEADING_ICON_TYPE,N.attributes.TRAILING_ICON,N.attributes.TRAILING_ICON_CLASS,N.attributes.TRAILING_ICON_TYPE]}constructor(){super(),this._core=new Qs(new Zs(this))}attributeChangedCallback(t,e,a){switch(t){case N.attributes.VALUE:this.value=a;break;case N.attributes.LABEL:this.label=a;break;case N.attributes.SECONDARY_LABEL:this.secondaryLabel=a;break;case N.attributes.DISABLED:this.disabled=p(a);break;case N.attributes.DIVIDER:this.divider=this.hasAttribute(N.attributes.DIVIDER);break;case N.attributes.OPTION_CLASS:this.optionClass=a;break;case N.attributes.LEADING_ICON:this.leadingIcon=a;break;case N.attributes.LEADING_ICON_CLASS:this.leadingIconClass=a;break;case N.attributes.LEADING_ICON_TYPE:this.leadingIconType=a;break;case N.attributes.TRAILING_ICON:this.trailingIcon=a;break;case N.attributes.TRAILING_ICON_CLASS:this.trailingIconClass=a;break;case N.attributes.TRAILING_ICON_TYPE:this.trailingIconType=a;break}}};s([v()],J1.prototype,"value",2),s([v()],J1.prototype,"label",2),s([v()],J1.prototype,"secondaryLabel",2),s([v()],J1.prototype,"disabled",2),s([v()],J1.prototype,"divider",2),s([v()],J1.prototype,"optionClass",2),s([v()],J1.prototype,"leadingIcon",2),s([v()],J1.prototype,"leadingIconClass",2),s([v()],J1.prototype,"leadingIconType",2),s([v()],J1.prototype,"leadingIconComponentProps",2),s([v()],J1.prototype,"trailingIcon",2),s([v()],J1.prototype,"trailingIconClass",2),s([v()],J1.prototype,"trailingIconType",2),s([v()],J1.prototype,"trailingIconComponentProps",2),s([v()],J1.prototype,"leadingBuilder",2),s([v()],J1.prototype,"trailingBuilder",2),J1=s([y({name:N.elementName})],J1);function Td(){x(J1)}var Cf=`${b}option-group`,zf={LABEL:"label"},ia={elementName:Cf,attributes:zf};var Xe=class extends M{static get observedAttributes(){return[ia.attributes.LABEL]}constructor(){super()}attributeChangedCallback(t,e,a){switch(t){case ia.attributes.LABEL:this.label=a;break}}get label(){return this._label}set label(t){this._label!==t&&(this._label=t||"",this.setAttribute(ia.attributes.LABEL,this._label))}get text(){return this._label}set text(t){this.label=t}};Xe=s([y({name:ia.elementName})],Xe);function Sd(){x(Xe)}var kd=(e=>(e[e.Option=0]="Option",e[e.Group=1]="Group",e))(kd||{});function a5(r,t){let e=r.some(o=>o5(o)),a=r.some(o=>Af(o));return e&&t===1||a&&t===0}function o5(r){return k(r)&&nt(r)&&r.hasOwnProperty("options")}function Af(r){return k(r)&&nt(r)&&r.hasOwnProperty("label")&&r.hasOwnProperty("value")}var To=class extends I{constructor(t){super(t)}get popupElement(){var t;return(t=this._listDropdown)==null?void 0:t.dropdownElement}getOptions(){let t=Array.from(this._component.querySelectorAll(ia.elementName));if(t.length)return t.map(e=>{let a=Array.from(e.querySelectorAll(N.elementName)),o=this._createOptionsFromElements(a);return{text:e.label,builder:e.builder,value:e.value,options:o}});{let e=Array.from(this._component.querySelectorAll(N.elementName));return this._createOptionsFromElements(e)}}_createOptionsFromElements(t){return t.map(e=>{let a=e.hasAttribute(N.attributes.OPTION_CLASS)?e.getAttribute(N.attributes.OPTION_CLASS):e.optionClass;return typeof a=="string"&&(a=a.split(" ")),{label:e.hasAttribute(N.attributes.LABEL)?e.getAttribute(N.attributes.LABEL):k(e.label)?e.label:e.innerText,secondaryLabel:e.hasAttribute(N.attributes.SECONDARY_LABEL)?e.getAttribute(N.attributes.SECONDARY_LABEL):k(e.secondaryLabel)?e.secondaryLabel:void 0,value:e.hasAttribute(N.attributes.VALUE)?e.getAttribute(N.attributes.VALUE):e.value,disabled:e.hasAttribute(N.attributes.DISABLED),divider:e.hasAttribute(N.attributes.DIVIDER),optionClass:a,leadingIcon:e.hasAttribute(N.attributes.LEADING_ICON)?e.getAttribute(N.attributes.LEADING_ICON):e.leadingIcon,leadingIconClass:e.hasAttribute(N.attributes.LEADING_ICON_CLASS)?e.getAttribute(N.attributes.LEADING_ICON_CLASS):e.leadingIconClass,leadingIconType:e.hasAttribute(N.attributes.LEADING_ICON_TYPE)?e.getAttribute(N.attributes.LEADING_ICON_TYPE):e.leadingIconType,leadingIconComponentProps:e.leadingIconComponentProps,trailingIcon:e.hasAttribute(N.attributes.TRAILING_ICON)?e.getAttribute(N.attributes.TRAILING_ICON):e.trailingIcon,trailingIconClass:e.hasAttribute(N.attributes.TRAILING_ICON_CLASS)?e.getAttribute(N.attributes.TRAILING_ICON_CLASS):e.trailingIconClass,trailingIconType:e.hasAttribute(N.attributes.TRAILING_ICON_TYPE)?e.getAttribute(N.attributes.TRAILING_ICON_TYPE):e.trailingIconType,trailingIconComponentProps:e.trailingIconComponentProps,leadingBuilder:e.leadingBuilder,trailingBuilder:e.trailingBuilder}})}open(t){var e;if(this._listDropdown=new Pe(this._targetElement,t),this._listDropdown.open(),this._component.id){let a=(e=this._listDropdown.dropdownElement)==null?void 0:e.querySelector("forge-list");a==null||a.setAttribute("aria-labelledby",this._component.id)}}async close(){this._listDropdown&&(await this._listDropdown.close(),this.destroyListDropdown())}destroyListDropdown(){var t;(t=this._listDropdown)==null||t.destroy(),this._listDropdown=void 0}setDismissListener(t){!this._listDropdown||!this._listDropdown.dropdownElement||this._listDropdown.dropdownElement.addEventListener(Z.events.TOGGLE,t)}toggleOptionMultiple(t,e){var a;(a=this._listDropdown)==null||a.toggleOptionMultiple(t,e)}getActiveOptionIndex(){var t,e;return(e=(t=this._listDropdown)==null?void 0:t.getActiveOptionIndex())!=null?e:-1}activateSelectedOption(){var t;(t=this._listDropdown)==null||t.activateSelectedOption()}activateFirstOption(){var t;(t=this._listDropdown)==null||t.activateFirstOption()}highlightActiveOption(t){var e;(e=this._listDropdown)==null||e.activateOption(t)}patchSelectedValues(t){var e;(e=this._listDropdown)==null||e.setSelectedValues(t)}setOptionsListener(t){let e=o=>{o.stopPropagation(),t(this.getOptions())};this._component.addEventListener(N.events.VALUE_CHANGE,e);let a=new MutationObserver(()=>t(this.getOptions()));return a.observe(this._component,{childList:!0,subtree:!0}),()=>{this._component.removeEventListener(N.events.VALUE_CHANGE,e),a.disconnect()}}setOptions(t,e=!0){e&&this._clearOptions();for(let a of t)if(o5(a)){let o=this._createOptionGroupElement(a);for(let n of a.options){let i=this._createOptionElement(n);o.appendChild(i)}this._component.appendChild(o)}else{let o=this._createOptionElement(a);this._component.appendChild(o)}}appendDropdownOptions(t){var e;(e=this._listDropdown)==null||e.appendOptions(t)}setDropdownOptions(t){var e;(e=this._listDropdown)==null||e.setOptions(t)}scrollSelectedOptionIntoView(){var t;(t=this._listDropdown)==null||t.scrollSelectedOptionIntoView()}isFocusWithinPopup(t){return!this._listDropdown||!this._listDropdown.dropdownElement?!1:this._listDropdown.dropdownElement.contains(t)}queueDropdownPositionUpdate(){this.popupElement&&window.requestAnimationFrame(()=>{let t=this.popupElement;t==null||t.position()})}_clearOptions(){Array.from(this._component.querySelectorAll(ia.elementName)).forEach(a=>Te(a)),Array.from(this._component.querySelectorAll(N.elementName)).forEach(a=>Te(a))}_createOptionGroupElement(t){let e=document.createElement("forge-option-group");return Object.assign(e,t),e}_createOptionElement(t){let e=document.createElement("forge-option");return Object.assign(e,t),e.textContent=t.label,t.elementAttributes&&t.elementAttributes.forEach((a,o)=>{e.setAttribute(o,a)}),e}};var Od={VALUE:"value",MULTIPLE:"multiple",OBSERVE_SCROLL:"observe-scroll",OBSERVE_SCROLL_THRESHOLD:"observe-scroll-threshold",POPUP_CLASSES:"popup-classes",OPTION_LIMIT:"option-limit",SYNC_POPUP_WIDTH:"sync-popup-width",CONSTRAIN_POPUP_WIDTH:"constrain-popup-width",WRAP_OPTION_TEXT:"wrap-option-text"},Bf=w({},Od),Tf={CHANGE:"change"},bt={observedAttributes:Od,attributes:Bf,events:Tf};var So=class extends K0{constructor(e){super();this._adapter=e;this._options=[];this._value=[];this._multiple=!1;this._open=!1;this._selectedValues=[];this._selectedLabels=[];this._selectedIndexes=[];this._filterString="";this._focusListener=a=>this._onFocus(a),this._blurListener=a=>this._onBlur(a),this._clickListener=a=>this._onClick(a),this._keydownListener=a=>this._onKeydown(a),this._optionsChangedListener=a=>this._onOptionsChanged(a),this._activeChangeListener=a=>this._onActiveOptionChanged(a),this._dropdownScrollEndListener=()=>this._onDropdownScrollEnd(),this._dismissListener=()=>this._onDismiss(),this._identifier=P2()}_onFocus(e){}initialize(){this._optionListenerDestructor&&this._optionListenerDestructor(),this._optionListenerDestructor=this._adapter.setOptionsListener(this._optionsChangedListener),this._initializeValue()}initializeTarget(){this._adapter.initializeAccessibility(),this._adapter.addClickListener(this._clickListener),this._adapter.addTargetListener("blur",this._blurListener),this._adapter.addTargetListener("focus",this._focusListener),this._adapter.addTargetListener("keydown",this._keydownListener)}destroy(){this._adapter.removeClickListener(this._clickListener),this._adapter.removeTargetListener("blur",this._blurListener),this._adapter.removeTargetListener("focus",this._focusListener),this._adapter.removeTargetListener("keydown",this._keydownListener),this._optionListenerDestructor&&this._optionListenerDestructor(),this._open=!1,this._adapter.destroyListDropdown()}appendOptions(e){this._adapter.setOptions(e,!1),this._open&&this._adapter.appendDropdownOptions(e)}selectAll(){this._multiple&&(this.value=this._flatOptions.map(e=>e.value))}deselectAll(){this._multiple&&(this.value=[])}get _flatOptions(){return a5(this._options,1)?[].concat.apply([],this._options.map(e=>e.options)):this._options}get _nonDividerOptions(){return this._flatOptions.filter(e=>!e.divider)}_initializeValue(){let e=this._options.length&&this._options||this._adapter.getOptions();k(this._value)&&e.length&&this._applyValue(this._value)}_onClick(e){e.button===0&&(this._open?this._closeDropdown():this._openDropdown())}_onBlur(e){this._adapter.isFocusWithinPopup(e.relatedTarget)||this._open&&this._closeDropdown()}_openDropdown(){if(this._options=this._adapter.getOptions(),!this._flatOptions.length)return;this._open=!0;let e={options:this._options,referenceElement:this._adapter.hostElement,multiple:this._multiple,selectedValues:[...this._selectedValues],id:this._identifier,optionBuilder:this._optionBuilder,syncWidth:this._syncPopupWidth,constrainViewportWidth:this._constrainPopupWidth,wrapOptionText:this._wrapOptionText,observeScroll:this._observeScroll,observeScrollThreshold:this._observeScrollThreshold,scrollEndListener:this._dropdownScrollEndListener,activeChangeCallback:this._activeChangeListener,targetWidthCallback:this._targetWidthCallback,popupClasses:this._popupClasses,optionLimit:this._optionLimit,headerBuilder:this._popupHeaderBuilder,footerBuilder:this._popupFooterBuilder,closeCallback:()=>this._closeDropdown(),selectCallback:a=>{let o=this._flatOptions,n=o.find(i=>i.value===a);if(n){let i=o.indexOf(n);this._onSelect(n,i,!0)}}};this._adapter.open(e),this._adapter.setDismissListener(this._dismissListener)}_closeDropdown(){this._open=!1,this._adapter.close()}async _onSelect(e,a,o=!0){return new Promise(async n=>{if(this._valueChanging)return Promise.resolve(!1);let i=e?e.value:"",l=e?e.label:"",h=[...this._value],c=[...this._selectedValues],d=[...this._selectedLabels],u=[...this._selectedIndexes];if(this._multiple)if(this._selectedValues.includes(i)){let z=this._selectedValues.indexOf(i);this._selectedValues.splice(z,1),this._selectedLabels.splice(z,1),this._selectedIndexes.splice(z,1)}else this._selectedValues.push(i),this._selectedLabels.push(l),this._selectedIndexes.push(a);else k(i)?(this._selectedValues[0]=i,this._selectedLabels[0]=l,this._selectedIndexes[0]=a):(this._selectedValues=[],this._selectedLabels=[],this._selectedIndexes=[]);this._value=[...this._selectedValues];let _=()=>{this._selectedValues=[...c],this._selectedLabels=[...d],this._selectedIndexes=[...u],this._value=[...h]},L=()=>{if(this._multiple){let z=this._selectedIndexes.includes(a);this._adapter.toggleOptionMultiple(a,z)}this._applySelection()},C=this.multiple?[...this._selectedValues]:this._selectedValues[0];if(this._open&&o&&!this._multiple&&this._closeDropdown(),typeof this._beforeValueChange=="function"){this._valueChanging=Promise.resolve(this._beforeValueChange.call(null,C));let z=await this._valueChanging;if(this._valueChanging=void 0,!z)return _(),this._tryUpdateDropdownPosition(),n(!1)}let A=!this._adapter.emitHostEvent(bt.events.CHANGE,C,!0,!0);A?_():L(),this._tryUpdateDropdownPosition(),n(!A)})}_selectActiveOption(){let e=this._adapter.getActiveOptionIndex();e>=0&&this._nonDividerOptions[e]&&this._onSelect(this._nonDividerOptions[e],e)}_tryUpdateDropdownPosition(){this._open&&this._adapter.queueDropdownPositionUpdate()}_reset(){this._selectedValues=[],this._selectedLabels=[],this._selectedIndexes=[]}_applyValue(e){this._selectedValues=[],this._selectedLabels=[],this._options=this._adapter.getOptions(),Array.isArray(e)||(e=[e]),this._value=[];for(let a of e){this._value.includes(a)||this._value.push(a);let o=this._flatOptions.find(n=>Nt(n.value,a));o&&(this._selectedValues.push(o.value),this._selectedLabels.push(o.label))}this._selectedIndexes=this._selectedValues.map(a=>this._flatOptions.findIndex(o=>o.value===a)),this._adapter.patchSelectedValues(this._selectedValues)}_onDismiss(){this._closeDropdown()}_getSelectedText(){if(typeof this._selectedTextBuilder=="function"){let e=this._flatOptions.filter(a=>this._selectedValues.includes(a.value));return this._selectedTextBuilder(e)}return this._multiple?this._selectedLabels.length?this._selectedLabels.length===1?this._selectedLabels[0]:`${this._selectedLabels.length} options selected`:"":this._selectedLabels.filter(e=>e&&e.length).join(" ").trim()}_onKeydown(e){let a=e.key==="Escape"||e.keyCode===27,o=e.key==="Enter"||e.keyCode===13,n=e.key==="Space"||e.keyCode===32,i=e.key==="ArrowDown"||e.keyCode===40,l=e.key==="ArrowUp"||e.keyCode===38,h=e.keyCode>=48&&e.keyCode<=90,c=e.key==="Home"||e.keyCode===36,d=e.key==="End"||e.keyCode===35;if(e.key==="Tab"&&this._open&&!this._multiple){this._selectActiveOption();return}if(!h&&this._filterTimeout&&(window.clearTimeout(this._filterTimeout),this._filterString="",this._filterTimeout=void 0),a&&(e.preventDefault(),e.stopPropagation(),this._open)){this._closeDropdown();return}if(n)e.preventDefault(),e.stopPropagation(),this._open?this._closeDropdown():this._openDropdown();else if(o)this._open&&(e.stopPropagation(),e.preventDefault(),this._options=this._adapter.getOptions(),this._selectActiveOption());else if(l||i){if(e.preventDefault(),!this._open){this._openDropdown(),this._adapter.activateFirstOption();return}if(this._flatOptions.length===0)return;let _=0;this._open?(_=this._adapter.getActiveOptionIndex(),_===-1&&(_=this._getFirstSelectedOptionIndex())):_=this._getFirstSelectedOptionIndex(),l?_=this._getPreviousHighlightableOptionIndex(_,this._nonDividerOptions):_=this._getNextHighlightableOptionIndex(_,this._nonDividerOptions),this._adapter.highlightActiveOption(_)}else if(c)this._open&&(e.preventDefault(),this._adapter.highlightActiveOption(this._nonDividerOptions.findIndex(_=>!_.disabled)));else if(d){if(this._open){e.preventDefault();let _=this._nonDividerOptions;for(let L=_.length-1;L>=0;L--)if(!_[L].disabled){this._adapter.highlightActiveOption(L);break}}}else h&&this._filter(e.key)}_getFirstSelectedOptionIndex(){return this._nonDividerOptions.findIndex(e=>this._selectedValues.includes(e.value))}_getPreviousHighlightableOptionIndex(e,a){let o=e;return o<=0?o=a.length-1:o--,a[o].disabled?this._getPreviousHighlightableOptionIndex(o,a):o}_getNextHighlightableOptionIndex(e,a){let o=e;return o===a.length-1?o=0:o++,a[o].disabled?this._getNextHighlightableOptionIndex(o,a):o}_filter(e){this._filterTimeout&&(window.clearTimeout(this._filterTimeout),this._filterTimeout=void 0),this._filterString+=e,this._filterTimeout=window.setTimeout(()=>{this._filterString="",this._filterTimeout=void 0},300),this._options=this._adapter.getOptions();let a=this._flatOptions.find(({disabled:o,label:n})=>!o&&n.trim().toLowerCase().startsWith(this._filterString.trim().toLowerCase()));if(a){let o=this._flatOptions.indexOf(a);this._open?this._adapter.highlightActiveOption(o):this._multiple||this._onSelect(a,o,!1)}}_onOptionsChanged(e){this._options=e,this._applyValue(this._value)}_onActiveOptionChanged(e){this._adapter.updateActiveDescendant(e)}get value(){return this._multiple?[...this._value]:this._value[0]}set value(e){let a;Array.isArray(e)?a=[...e]:a=e,this._applyValue(a)}get selectedIndex(){return this._multiple?[...this._selectedIndexes]:this._selectedIndexes[0]}set selectedIndex(e){this._options=this._adapter.getOptions();let a;if(Array.isArray(e)?a=[...e]:a=[e],a.sort(),this.multiple)this.value=a.map(o=>this._flatOptions[o]).filter(o=>o).map(o=>o.value);else{let o=this._flatOptions[a[a.length-1]];if(!o)return;this.value=o.value}}get options(){return this._adapter.getOptions()}set options(e){let a;a5(e,1)?a=e.map(o=>w({},o)):a=e.map(o=>w({},o)),this._options=a,this._adapter.setOptions(a),this._initializeValue(),this._open&&this._adapter.setDropdownOptions(a)}get multiple(){return this._multiple}set multiple(e){this._multiple!==e&&(this._multiple=e,this._reset(),this._open&&this._closeDropdown())}get open(){return this._open}set open(e){this._open!==e&&(e?this._openDropdown():this._closeDropdown())}get optionBuilder(){return this._optionBuilder}set optionBuilder(e){this._optionBuilder=e}get selectedTextBuilder(){return this._selectedTextBuilder}set selectedTextBuilder(e){this._selectedTextBuilder=e}get optionLimit(){return this._optionLimit}set optionLimit(e){this._optionLimit=e}get popupClasses(){return this._popupClasses}set popupClasses(e){this._popupClasses=e}get popupHeaderBuilder(){return this._popupHeaderBuilder}set popupHeaderBuilder(e){this._popupHeaderBuilder=e}get popupFooterBuilder(){return this._popupFooterBuilder}set popupFooterBuilder(e){this._popupFooterBuilder=e}get popupElement(){return this._adapter.popupElement}get beforeValueChange(){return this._beforeValueChange}set beforeValueChange(e){this._beforeValueChange=e}};var yt=class extends R2{constructor(){super()}attributeChangedCallback(t,e,a){switch(super.attributeChangedCallback(t,e,a),t){case bt.attributes.MULTIPLE:this.multiple=p(a);break;case bt.attributes.VALUE:this.value=a;break}}appendOptions(t){this._core.appendOptions(t)}selectAll(){this._core.selectAll()}deselectAll(){this._core.deselectAll()}connectedCallback(){this._core.initialize()}disconnectedCallback(){this._core.destroy()}};s([v()],yt.prototype,"value",2),s([v()],yt.prototype,"selectedIndex",2),s([v()],yt.prototype,"options",2),s([v()],yt.prototype,"multiple",2),s([v()],yt.prototype,"open",2),s([v()],yt.prototype,"optionBuilder",2),s([v()],yt.prototype,"selectedTextBuilder",2),s([v()],yt.prototype,"beforeValueChange",2),s([v({set:!1})],yt.prototype,"popupElement",2);var Dd=`${b}select`,Sf={FIELD:"#field",SELECTED_TEXT:"#selected-text",LABEL:"#select-label"},Pd={OPEN:"open",TYPE:"type",VALUE:"value",LABEL:"label",MULTIPLE:"multiple",DISABLED:"disabled",PLACEHOLDER:"placeholder",OBSERVE_SCROLL:"observe-scroll",OBSERVE_SCROLL_THRESHOLD:"observe-scroll-threshold"},kf=w({},Pd),Of={SCROLLED_BOTTOM:`${Dd}-scrolled-bottom`},G2={elementName:Dd,observedAttributes:Pd,attributes:kf,selectors:Sf,events:Of};var Js=class extends To{constructor(t){super(t),this._fieldElement=g(t,G2.selectors.FIELD),this._labelElement=g(t,G2.selectors.LABEL),this._selectedTextElement=g(t,G2.selectors.SELECTED_TEXT),this._fieldElement.setAttribute("exportparts",Object.values(V.parts).join(", ")),this._fieldElement.focusIndicatorTargetElement=this._component}get fieldElement(){return this._fieldElement}initializeAccessibility(){this._component.setAttribute("role","combobox"),this._component.setAttribute("aria-haspopup","true"),this._component.setAttribute("aria-expanded","false"),Oe(),Zt(this._component),this.fieldElement.required&&this.setHostAttribute("aria-required","true"),this.fieldElement.disabled&&this.setHostAttribute("aria-disabled","true"),this.fieldElement.invalid&&this.setHostAttribute("aria-invalid","true"),this._component[$1]=!this._component.disabled}setLabel(t){let a=!(this._fieldElement.labelPosition==="inset"&&(this._fieldElement.density==="extra-small"||this._fieldElement.dense))&&!!(t!=null&&t.trim());(!this._component.hasAttribute("aria-label")||this._component.getAttribute("aria-label")===this._labelElement.textContent)&&this._component.setAttribute("aria-label",t),a?(this._labelElement.isConnected||this._fieldElement.insertAdjacentElement("afterbegin",this._labelElement),this._labelElement.textContent=t):this._labelElement.remove()}setPlaceholderText(t){K(this._selectedTextElement,!!(t!=null&&t.trim()),"placeholder",t)}open(t){this._targetElement||(this._targetElement=g(this._fieldElement,V.selectors.POPOVER_TARGET)),super.open(t),this._component.setAttribute("aria-controls",`list-dropdown-popup-${t.id}`),this._component.setAttribute("aria-expanded","true"),this._fieldElement.popoverExpanded=!0}close(){return this._component.setAttribute("aria-expanded","false"),this._component.removeAttribute("aria-activedescendant"),Zt(this._component),this._fieldElement.popoverExpanded=!1,super.close()}floatLabel(t){this._fieldElement.floatLabel=t}updateActiveDescendant(t){K(this._component,!!t,"aria-activedescendant",t)}setSelectedText(t){this._selectedTextElement.textContent=t}setDisabled(t){this._component[$1]=!t,K(this._component,t,"aria-disabled","true")}setRequired(){this._component[wt]()}addClickListener(t){this._component.addEventListener("click",t)}removeClickListener(t){this._component.removeEventListener("click",t)}addTargetListener(t,e){this._component.addEventListener(t,e)}removeTargetListener(t,e){this._component.removeEventListener(t,e)}syncValue(t){let a=(Array.isArray(t)?!t.length||!t.some(n=>n!=null):t==null)?null:new FormData,o=JSON.stringify(t);a&&t&&a.append(this._component.name,o),this._component.setFormValue(a,o),this._component[wt]()}};var tl=class extends So{constructor(e){super(e);this._label="";this._required=!1;this._permanentlyFloatLabel=!1;this._mousedownListener=this._onMouseDown.bind(this)}initialize(){this._adapter.tryApplyGlobalConfiguration(["labelPosition","variant"]),super.initialize(),super.initializeTarget(),this._initializeLabel(),this._initializeAccessibility(),this._adapter.addTargetListener("mousedown",this._mousedownListener)}destroy(){super.destroy(),this._adapter.removeTargetListener("mousedown",this._mousedownListener)}syncFloatingLabelState({force:e}={}){e!==void 0&&(this._permanentlyFloatLabel=e),this._updateLabel(),this._tryFloatLabel()}setDisabled(e){this._adapter.setDisabled(e)}_initializeLabel(){this._updateLabel(),this._tryFloatLabel()}_initializeValue(){super._initializeValue(),this._tryFloatLabel()}_initializeAccessibility(){this._adapter.initializeAccessibility()}_onMouseDown(e){e.preventDefault()}_onClick(e){this._adapter.fieldElement.disabled||e.composedPath().find(o=>{var n;return(n=o.matches)==null?void 0:n.call(o,"slot[name=accessory]")})||(this._adapter.focusHost(),super._onClick(e))}_openDropdown(){super._openDropdown(),this._open&&this._adapter.toggleHostAttribute(G2.attributes.OPEN,!0)}_closeDropdown(){super._closeDropdown(),this._open||this._adapter.toggleHostAttribute(G2.attributes.OPEN,!1)}_onDismiss(){super._onDismiss()}_onDropdownScrollEnd(){this._adapter.emitHostEvent(G2.events.SCROLLED_BOTTOM)}async _onSelect(e,a,o=!0){let n=await super._onSelect(e,a,o);return n&&(this._adapter.setSelectedText(this._getSelectedText()),o&&!this._multiple&&this._adapter.focusHost()),this._tryFloatLabel(),this._adapter.syncValue(this._value),n}_reset(){super._reset(),this._adapter.setSelectedText(""),this._tryFloatLabel()}_tryFloatLabel(){if(this._permanentlyFloatLabel){this._adapter.floatLabel(!0);return}let e=!!this._getSelectedText()||!!this._selectedValues.length,a=!!this._placeholder;this._adapter.floatLabel(e||a)}_updateLabel(){this._adapter.setLabel(this._label)}_applyValue(e){super._applyValue(e),this._adapter.syncValue(this._value);let a=this._getSelectedText();this._adapter.setSelectedText(a),this._open||this._tryFloatLabel()}get label(){return this._label}set label(e){this._label!==e&&(this._label=e,this._updateLabel(),this._label&&this._initializeLabel(),this._adapter.toggleHostAttribute(G2.attributes.LABEL,!!this._label,this._label))}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder!==e&&(this._placeholder=e,this._adapter.setPlaceholderText(this._placeholder),this._initializeLabel())}get multiple(){return super.multiple}set multiple(e){this._multiple!==e&&(super.multiple=e,this._adapter.toggleHostAttribute(G2.attributes.MULTIPLE,e))}set required(e){this._required!==e&&this._adapter.setRequired()}};var Df='<template><forge-field id="field" popover-icon focus-indicator-allow-focus focus-indicator-focus-mode="focus"><label id="select-label" aria-hidden="true" part="label" slot="label"></label><slot slot="start" name="start"></slot><div data-forge-field-input class="selected-text-container" part="text-container" aria-live="assertive" aria-atomic="true"><slot name="value"><span id="selected-text" class="selected-text" part="text"></span></slot></div><slot slot="end" name="end"></slot><slot slot="accessory" name="accessory"></slot><slot slot="support-text" name="support-text"></slot><slot slot="support-text-end" name="support-text-end"></slot><slot slot="start" name="leading"></slot><slot slot="end" name="trailing"></slot><slot slot="accessory" name="addon-end"></slot><slot slot="support-text" name="helper-text"></slot></forge-field></template>',Pf=":host{display:block;outline:0}:host([hidden]){display:none}forge-field{--_select-placeholder-color:var(--forge-select-placeholder-color, var(--forge-field-placeholder-color, var(--forge-theme-text-medium, rgba(0, 0, 0, 0.6))))}.selected-text-container{display:grid;align-items:center;cursor:pointer}.selected-text,::slotted([slot=value]){white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.selected-text:empty::before{content:attr(placeholder);color:var(--_select-placeholder-color);font-size:inherit}:host([disabled]) .selected-text-container{cursor:not-allowed}forge-field{display:contents}",Ee=class extends Ue(it(Fe(L1(H1(Cd(yt)))))){static get observedAttributes(){return[...Object.values(F.observedAttributes),...Object.values(G2.observedAttributes),...Object.values(bt.observedAttributes)]}constructor(){var e;super(),q.define([A0,z0]),H(this,Df,Pf);let t=(e=this.shadowRoot)==null?void 0:e.querySelector(V.elementName);this.initializeFieldInstance(t),this[jt]="select",this._core=new tl(new Js(this))}connectedCallback(){super.connectedCallback(),this[P]({role:"combobox",ariaDisabled:this.disabled?"true":"false",ariaRequired:this.required?"true":"false"})}attributeChangedCallback(t,e,a){switch(t){case G2.observedAttributes.OPEN:this.open=p(a);return;case G2.observedAttributes.LABEL:this.label=a;return;case G2.observedAttributes.PLACEHOLDER:this.placeholder=a;return}super.attributeChangedCallback(t,e,a)}[Lt](){return this.value}[wt](){this[a1].setValidity({valueMissing:this.required&&!this.value},this[Xt]({required:this.required,value:this.value}))}formResetCallback(){this.value=null}formStateRestoreCallback(t){this.value=JSON.parse(t)}labelClickedCallback(){this.click(),this.focus()}labelChangedCallback(t){this[P]({ariaLabel:t})}setFormValue(t,e){this[a1].setFormValue(t,e)}get floatLabel(){return super.floatLabel}set floatLabel(t){this._core.syncFloatingLabelState({force:t})}get density(){return super.density}set density(t){super.density=t,this._core.syncFloatingLabelState()}get dense(){return super.dense}set dense(t){super.dense=t,this._core.syncFloatingLabelState()}get disabled(){return super.disabled}set disabled(t){super.disabled=t,this._core.setDisabled(t)}get required(){return super.required}set required(t){super.required=t,this._core.required=t}get labelPosition(){return super.labelPosition}set labelPosition(t){super.labelPosition=t,this._core.syncFloatingLabelState()}};s([v()],Ee.prototype,"label",2),s([v()],Ee.prototype,"placeholder",2),s([v()],Ee.prototype,"readonly",2),Ee=s([y({name:G2.elementName,dependencies:[k1,J1,Xe,P1,h2,j1,Tt,X,$e,se,n1]})],Ee);function Nd(){x(Ee)}var Nf='<template><div class="forge-paginator" part="root" forge-popover-host><div class="container" part="container"><div class="label" part="label" id="label"><slot name="label"></slot></div><forge-select class="page-size-options" aria-labelledby="label" label-position="none" density="extra-small" part="page-size-options"></forge-select><div class="range-label" part="range-label"><slot name="range-label"></slot></div></div><div class="actions" part="actions"><div id="first-page-container"><forge-icon-button class="first-page" part="first-page-button" part="first-page-button-element"><forge-icon name="first_page" part="first-page-icon"></forge-icon></forge-icon-button><forge-tooltip type="label" placement="top"><slot name="first-page-tooltip">Go to the first page</slot></forge-tooltip></div><div id="previous-page-container"><forge-icon-button class="previous-page" part="previous-page-button" part="previous-page-button-element"><forge-icon name="keyboard_arrow_left" part="previous-page-button-icon"></forge-icon></forge-icon-button><forge-tooltip type="label" placement="top"><slot name="previous-page-tooltip">Go to the previous page</slot></forge-tooltip></div><div class="alternative-range-label" part="alternative-range-label"><slot name="alternative-range-label"></slot></div><div id="next-page-container"><forge-icon-button class="next-page" part="next-page-button" part="next-page-button-element"><forge-icon name="keyboard_arrow_right" part="next-page-icon"></forge-icon></forge-icon-button><forge-tooltip type="label" placement="top"><slot name="next-page-tooltip">Go to the next page</slot></forge-tooltip></div><div id="last-page-container"><forge-icon-button class="last-page" part="last-page-button" part="last-page-button-element"><forge-icon name="last_page" part="last-page-icon"></forge-icon></forge-icon-button><forge-tooltip type="label" placement="top"><slot name="last-page-tooltip">Go to the last page</slot></forge-tooltip></div></div></div></template>',Rf=':host{display:block}:host([hidden]){display:none}.forge-paginator{display:flex;gap:var(--forge-spacing-xsmall,8px)}.container{display:flex;gap:var(--forge-spacing-medium,16px);align-items:center}.alternative-range-label,.label,.range-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-label1-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-label1-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-label-font-size-scale, .75)));font-weight:var(--forge-typography-label1-font-weight,400);line-height:var(--forge-typography-label1-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-label-line-height-scale, 1.25)));letter-spacing:var(--forge-typography-label1-letter-spacing, .0357142857em);text-transform:var(--forge-typography-label1-text-transform,inherit);text-decoration:var(--forge-typography-label1-text-decoration,inherit)}.actions{display:flex;align-items:center}.alternative-range-label{display:none}:host([alternative]) .alternative-range-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-body1-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-body1-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-font-size-scale, .875)));font-weight:var(--forge-typography-body1-font-weight,400);line-height:var(--forge-typography-body1-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-line-height-scale, 1.125)));letter-spacing:var(--forge-typography-body1-letter-spacing, .0357142857em);text-transform:var(--forge-typography-body1-text-transform,inherit);text-decoration:var(--forge-typography-body1-text-decoration,inherit);display:inline-block}:host([alternative]) .container{display:none}:host([alternative]) .actions{width:100%;justify-content:var(--forge-paginator-alternative-alignment,start)}',ot=class extends M{static get observedAttributes(){return Object.values($.observedAttributes)}constructor(){super(),q.define([t3,s0,fe,o3]),H(this,Nf,Rf),this._core=new Xs(new js(this))}connectedCallback(){this._core.initialize()}attributeChangedCallback(t,e,a){var o,n,i,l;switch(t){case $.observedAttributes.PAGE_INDEX:this.pageIndex=(o=W(a))!=null?o:$.numbers.DEFAULT_PAGE_INDEX;break;case $.observedAttributes.PAGE_SIZE:this.pageSize=(n=W(a))!=null?n:$.numbers.DEFAULT_PAGE_SIZE;break;case $.observedAttributes.OFFSET:this.offset=W(a);break;case $.observedAttributes.TOTAL:this.total=(i=W(a))!=null?i:$.numbers.DEFAULT_TOTAL;break;case $.observedAttributes.PAGE_SIZE_OPTIONS:this.pageSizeOptions=(l=Tr(a))!=null?l:$.numbers.DEFAULT_PAGE_SIZE_OPTIONS;break;case $.observedAttributes.LABEL:this.label=a;break;case $.observedAttributes.FIRST_LAST:this.firstLast=p(a);break;case $.observedAttributes.FIRST:this.first=p(a);break;case $.observedAttributes.DISABLED:this.disabled=p(a);break;case $.observedAttributes.ALTERNATIVE:this.alternative=p(a);break}}focus(t){this._core.focus(t)}};s([v()],ot.prototype,"pageIndex",2),s([v()],ot.prototype,"pageSize",2),s([v()],ot.prototype,"offset",2),s([v()],ot.prototype,"total",2),s([v()],ot.prototype,"pageSizeOptions",2),s([v()],ot.prototype,"label",2),s([v()],ot.prototype,"firstLast",2),s([v()],ot.prototype,"first",2),s([v()],ot.prototype,"disabled",2),s([v()],ot.prototype,"alternative",2),s([v()],ot.prototype,"rangeLabelCallback",2),ot=s([y({name:$.elementName,dependencies:[n1,Ee,p1]})],ot);function Rd(){x(ot)}var Fd=`${b}select-dropdown`,Ff={TARGET:"target",SELECTED_TEXT_TARGET:"selected-text-target",SYNC_SELECTED_TEXT:"sync-selected-text"},Uf=w({},Ff),Wf={SCROLLED_BOTTOM:`${Fd}-scrolled-bottom`},je={elementName:Fd,attributes:Uf,events:Wf};var el=class extends So{constructor(e){super(e);this._syncSelectedText=!1;this._originalTargetText="";this._targetDisconnectedListener=()=>this._onTargetDisconnected()}initialize(){this._tryAttach(),super.initialize()}destroy(){super.destroy(),this._adapter.isAttached()&&this._detach()}_onDropdownScrollEnd(){this._adapter.emitHostEvent(je.events.SCROLLED_BOTTOM)}_applyValue(e){super._applyValue(e),this._applySelection()}_applySelection(){if(super._applySelection(),this._syncSelectedText||typeof this._selectedTextBuilder=="function"){let e=this._getSelectedText();e||(e=this._originalTargetText),this._adapter.setTargetText(e||"",this._selectedTextTarget)}}_tryAttach(){this._adapter.attach(this._target),this._adapter.isAttached()&&(this._targetDisconnectedDestructor=this._adapter.setTargetDisconnectedListener(this._targetDisconnectedListener),this._originalTargetText=this._adapter.getTargetText(this._selectedTextTarget),this.initializeTarget())}_detach(){this._adapter.detach(),this._targetDisconnectedDestructor&&(this._targetDisconnectedDestructor(),this._targetDisconnectedDestructor=void 0)}_onTargetDisconnected(){this._adapter.detach()}get target(){return this._target}set target(e){this._target!==e&&(this._target=e,this._adapter.isAttached()&&this._detach(),this._tryAttach())}get selectedTextTarget(){return this._selectedTextTarget}set selectedTextTarget(e){this._selectedTextTarget!==e&&(this._selectedTextTarget=e)}get syncSelectedText(){return this._syncSelectedText}set syncSelectedText(e){this._syncSelectedText!==e&&(this._syncSelectedText=e)}};var al=class extends To{constructor(t){super(t)}initializeAccessibility(){this._targetElement.setAttribute("role","combobox"),this._targetElement.setAttribute("aria-live","polite"),this._targetElement.setAttribute("aria-haspopup","true"),this._targetElement.setAttribute("aria-expanded","false"),this.setAriaControls()}addClickListener(t){this._targetElement.addEventListener("click",t)}removeClickListener(t){this._targetElement&&this._targetElement.removeEventListener("click",t)}addTargetListener(t,e){let a,o;t==="keydown"&&(a=!1,o=!0),this._targetElement.addEventListener(t,e,{passive:a,capture:o})}removeTargetListener(t,e){this._targetElement&&this._targetElement.removeEventListener(t,e)}updateActiveDescendant(t){t?this._targetElement.setAttribute("aria-activedescendant",t):this._targetElement.removeAttribute("aria-activedescendant")}open(t){super.open(t),this._targetElement.setAttribute("aria-controls",`list-dropdown-popup-${t.id}`),this._targetElement.setAttribute("aria-expanded","true")}close(){return this._targetElement.setAttribute("aria-expanded","false"),this._targetElement.removeAttribute("aria-activedescendant"),this.setAriaControls(),super.close()}attach(t){let o=(this._component.getRootNode()||HTMLDocument||this._component.ownerDocument||document).querySelector(t);o&&(this._targetElement=o)}detach(){this._targetElement=void 0}setTargetDisconnectedListener(t){if(!this._targetElement||!this._targetElement.parentElement)return()=>{};let e=new MutationObserver(a=>{a.some(n=>Array.from(n.removedNodes).some(i=>i===this._targetElement))&&(e.disconnect(),t())});return e.observe(this._targetElement.parentElement,{childList:!0}),()=>e.disconnect()}isAttached(){return!!this._targetElement}setTargetText(t,e){let a=this._targetElement;if(e){let o=this._getElementBySelector(e);o&&(a=o)}a&&(a.textContent=t)}getTargetText(t){let e=t?this._getElementBySelector(t):this._targetElement;return e?e.innerText:""}_getElementBySelector(t){return this._targetElement.querySelector(t)||this._getRootNode().querySelector(t)}_getRootNode(){var t,e;return(e=(t=this._component.getRootNode())!=null?t:this._component.ownerDocument)!=null?e:document}setAriaControls(){let t=this._component.querySelector("[data-forge-aria-controls-placeholder]");if(t){this._targetElement.setAttribute("aria-controls",t.id);return}t=document.createElement("div"),t.id=`forge-select-dropdown-temp-${P2(10)}`,t.setAttribute("data-forge-aria-controls-placeholder",""),this._targetElement.setAttribute("aria-controls",t.id),this._component.appendChild(t)}};var Gf="<template></template>",Yf=":host{display:none}",f0=class extends yt{static get observedAttributes(){return[je.attributes.TARGET,je.attributes.SELECTED_TEXT_TARGET,je.attributes.SYNC_SELECTED_TEXT,bt.attributes.VALUE,bt.attributes.MULTIPLE,bt.attributes.OBSERVE_SCROLL,bt.attributes.OBSERVE_SCROLL_THRESHOLD,bt.attributes.POPUP_CLASSES,bt.attributes.OPTION_LIMIT,bt.attributes.SYNC_POPUP_WIDTH]}constructor(){super(),H(this,Gf,Yf),this._core=new el(new al(this))}attributeChangedCallback(t,e,a){switch(t){case je.attributes.TARGET:this.target=a;return;case je.attributes.SELECTED_TEXT_TARGET:this.selectedTextTarget=a;return;case je.attributes.SYNC_SELECTED_TEXT:this.syncSelectedText=p(a);return}super.attributeChangedCallback(t,e,a)}};s([v()],f0.prototype,"target",2),s([v()],f0.prototype,"selectedTextTarget",2),s([v()],f0.prototype,"syncSelectedText",2),f0=s([y({name:je.elementName,dependencies:[J1,Xe,P1,h2,j1,Tt,$e,se,n1]})],f0);function Ud(){x(f0)}var Wd=class extends a2{constructor(t){super(t)}_build(){return document.createElement(G2.elementName)}_configure(){var t;typeof((t=this._config.options)==null?void 0:t.helperText)=="string"&&this.setHelperText(this._config.options.helperText)}get value(){return this._element.value}set value(t){this._element.value=t}get disabled(){return this._element.disabled}set disabled(t){this._element.disabled=t}get invalid(){return this._element.invalid||!1}set invalid(t){this._element.invalid=t}onChange(t){this._element.addEventListener("change",e=>t(e.detail))}onFocus(t){this._element.addEventListener("focus",e=>t(e))}onBlur(t){this._element.addEventListener("blur",e=>t(e))}setHelperText(t){t?(this._helperTextElement||(this._helperTextElement=document.createElement("span"),this._helperTextElement.slot="helper-text",this._element.appendChild(this._helperTextElement)),this._helperTextElement.textContent=t):this._helperTextElement&&this._helperTextElement.isConnected&&(this._element.removeChild(this._helperTextElement),this._helperTextElement=void 0)}};var Kf=`${b}skip-link`,Gd={TARGET:"target",THEME:"theme",MUTED:"muted",PERSISTENT:"persistent",INLINE:"inline",SKIP_URL_CHANGE:"skip-url-change"},qf=w({},Gd),$f={ANCHOR:"a"},pt={elementName:Kf,observedAttributes:Gd,attributes:qf,selectors:$f};var Xf='<template><a class="forge-skip-link" part="anchor"><slot>Skip to main content</slot><forge-focus-indicator part="focus-indicator"></forge-focus-indicator><forge-state-layer exportparts="surface:state-layer"></forge-state-layer></a></template>',jf=':host{--_skip-link-inset:var(--forge-skip-link-inset, var(--forge-spacing-xsmall, 8px) var(--forge-spacing-medium, 16px));--_skip-link-z-index:var(--forge-skip-link-z-index, var(--forge-z-index-popup, 10));--_skip-link-transition-duration:var(--forge-skip-link-transition-duration, var(--forge-animation-duration-short4, 200ms));--_skip-link-transition-timing-function:var(--forge-skip-link-transition-timing-function, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1)))}:host{transition-property:opacity,transform;transition-duration:var(--_skip-link-transition-duration);transition-timing-function:var(--_skip-link-transition-timing-function);display:block;position:fixed;inset:var(--_skip-link-inset);z-index:var(--_skip-link-z-index);block-size:fit-content;inline-size:fit-content;opacity:0;transform:translateY(-100%)}:host([hidden]){display:none}:host(:where(:focus-within,[persistent])){transition-property:opacity,transform;transition-duration:var(--_skip-link-transition-duration);transition-timing-function:var(--_skip-link-transition-timing-function);transform:translateY(0);opacity:1}.forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-secondary, #ffc107));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-secondary, #000000));--_skip-link-shape:var(--forge-skip-link-shape, calc(var(--forge-shape-medium, 4px) * var(--forge-shape-factor, 1)));--_skip-link-elevation:var(--forge-skip-link-elevation, 0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12));--_skip-link-padding-block:var(--forge-skip-link-padding-block, var(--forge-spacing-xsmall, 8px));--_skip-link-padding-inline:var(--forge-skip-link-padding-inline, var(--forge-spacing-medium, 16px));--_skip-link-focus-indicator-color:var(--forge-skip-link-focus-indicator-color, var(--_skip-link-background))}.forge-skip-link{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-body2-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-body2-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-font-size-scale, 1)));font-weight:var(--forge-typography-body2-font-weight,400);line-height:var(--forge-typography-body2-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-line-height-scale, 1.375)));letter-spacing:var(--forge-typography-body2-letter-spacing, .015625em);text-transform:var(--forge-typography-body2-text-transform,inherit);text-decoration:var(--forge-typography-body2-text-decoration,inherit);display:block;outline:0;box-shadow:var(--_skip-link-elevation);border-radius:var(--_skip-link-shape);background:var(--_skip-link-background);padding-block:var(--_skip-link-padding-block);padding-inline:var(--_skip-link-padding-inline);cursor:pointer;color:var(--_skip-link-color);text-decoration:underline}:host([theme=primary]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-primary, #3f51b5));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-primary, #ffffff))}:host([theme=primary][muted]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-primary-container-high, #b6bde3));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-primary-container-high, #000000))}:host([theme=secondary]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-secondary, #ffc107));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-secondary, #000000))}:host([theme=secondary][muted]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-secondary-container-high, #ffe7a1));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-secondary-container-high, #000000))}:host([theme=tertiary]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-tertiary, #3d5afe));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-tertiary, #ffffff))}:host([theme=tertiary][muted]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-tertiary-container-high, #b5c0ff));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-tertiary-container-high, #000000))}:host([theme=success]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-success, #2e7d32));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-success, #ffffff))}:host([theme=success][muted]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-success-container-high, #b0ceb1));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-success-container-high, #000000))}:host([theme=error]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-error, #b00020));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-error, #ffffff))}:host([theme=error][muted]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-error-container-high, #e19eaa));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-error-container-high, #000000))}:host([theme=warning]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-warning, #d14900));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-warning, #ffffff))}:host([theme=warning][muted]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-warning-container-high, #eeba9e));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-warning-container-high, #000000))}:host([theme=info]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-info, #1565c0));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-info, #ffffff))}:host([theme=info][muted]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-info-container-high, #a6c4e7));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-info-container-high, #000000))}:host(:where(:not([theme]),[theme=default])[muted]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-secondary-container-high, #ffe7a1));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-secondary-container-high, #000000))}:host([inline]){position:absolute;transform:none}forge-focus-indicator{--forge-focus-indicator-color:var(--_skip-link-focus-indicator-color);--forge-focus-indicator-shape:var(--_skip-link-shape)}@media (prefers-reduced-motion:reduce){:host{--_skip-link-transition-duration:var(--forge-skip-link-transition-duration, 0s)}}',ko=class extends M{constructor(){super();this._target="";this._theme="default";this._muted=!1;this._persistent=!1;this._inline=!1;this._skipUrlChange=!1;this._clickListener=e=>this._handleClick(e);H(this,Xf,jf),this._anchorElement=g(this,pt.selectors.ANCHOR)}static get observedAttributes(){return Object.values(pt.observedAttributes)}attributeChangedCallback(e,a,o){switch(e){case pt.observedAttributes.TARGET:this.target=o;break;case pt.observedAttributes.THEME:this.theme=o;break;case pt.observedAttributes.MUTED:this.muted=p(o);break;case pt.observedAttributes.PERSISTENT:this.persistent=p(o);break;case pt.observedAttributes.INLINE:this.inline=p(o);break;case pt.observedAttributes.SKIP_URL_CHANGE:this.skipUrlChange=p(o);break}}get target(){return this._target}set target(e){this._target!==e&&(this._target=e,this.setAttribute(pt.attributes.TARGET,this._target),this._anchorElement.href=`#${this._target}`)}get theme(){return this._theme}set theme(e){this._theme!==e&&(this._theme=e,this.setAttribute(pt.attributes.THEME,this._theme))}get muted(){return this._muted}set muted(e){this._muted!==e&&(this._muted=e,this.toggleAttribute(pt.attributes.MUTED,this._muted))}get persistent(){return this._persistent}set persistent(e){this._persistent!==e&&(this._persistent=e,this.toggleAttribute(pt.attributes.PERSISTENT,this._persistent))}get inline(){return this._inline}set inline(e){this._inline!==e&&(this._inline=e,this.toggleAttribute(pt.attributes.INLINE,this._inline))}get skipUrlChange(){return this._skipUrlChange}set skipUrlChange(e){if(this._skipUrlChange!==e){if(this._skipUrlChange=e,this.toggleAttribute(pt.attributes.SKIP_URL_CHANGE,this._skipUrlChange),this._skipUrlChange){this._anchorElement.addEventListener("click",this._clickListener);return}this._anchorElement.removeEventListener("click",this._clickListener)}}_handleClick(e){e.preventDefault();let a=document.getElementById(this._target);a==null||a.focus(),a==null||a.scrollIntoView({behavior:"smooth"})}};ko=s([y({name:pt.elementName,dependencies:[Q,r1]})],ko);function Yd(){x(ko)}var Er=class extends M{};Er.formAssociated=!0;var Zf=`${b}slider`,Qf={ARIA_LABEL:"data-aria-label",ARIA_LABEL_START:"data-aria-label-start",ARIA_LABEL_END:"data-aria-label-end",VALUE:"value",VALUE_START:"value-start",VALUE_END:"value-end",LABEL:"label",LABEL_START:"label-start",LABEL_END:"label-end",MIN:"min",MAX:"max",STEP:"step",TICKMARKS:"tickmarks",LABELED:"labeled",RANGE:"range",DISABLED:"disabled",READONLY:"readonly"},Jf={ROOT:".forge-slider",TRACK:".track",HANDLE_CONTAINER:".handle-container",START_INPUT:"input.start",END_INPUT:"input.end",START_HANDLE:".handle.start",START_HANDLE_THUMB:".handle.start .handle-thumb",END_HANDLE:".handle.end",END_HANDLE_THUMB:".handle.end .handle-thumb",START_LABEL:".handle.start .handle-label",START_LABEL_CONTENT:".handle.start .handle-label-content",END_LABEL:".handle.end .handle-label",END_LABEL_CONTENT:".handle.end .handle-label-content",LABEL:".handle-label",INPUT:"input[type=range]"},tx={RANGE:"range",TICKMARKS:"tickmarks",ON_TOP:"on-top",OVERLAPPING:"overlapping",HOVER:"hover",HANDLE:"handle",HANDLE_THUMB:"handle-thumb",HANDLE_START:"start",HANDLE_LABEL:"handle-label",LABEL:"handle-label",LABEL_CONTENT:"handle-label-content"},ex={INPUT:"forge-slider-input",CHANGE:"forge-slider-change",RANGE_INPUT:"forge-slider-range-input",RANGE_CHANGE:"forge-slider-range-change"},ax={START_FRACTION:"--_slider-start-fraction",END_FRACTION:"--_slider-end-fraction",TICK_COUNT:"--_slider-tick-count"},ox={DEFAULT_STEP:1,DEFAULT_VALUE:50,DEFAULT_START_VALUE:33,DEFAULT_END_VALUE:67},E={elementName:Zf,attributes:Qf,selectors:Jf,classes:tx,events:ex,numbers:ox,cssCustomProperties:ax};function Kd(r){let t=document.createElement("input");return t.type="range",t.id="start",t.min=String(r.min),t.max=String(r.max),t.step=String(r.step),t.valueAsNumber=r.valueStart,t.disabled=r.disabled,t.classList.add("start"),r.hasAttribute(E.attributes.ARIA_LABEL_START)&&t.setAttribute("aria-label",r.getAttribute(E.attributes.ARIA_LABEL_START)),t.setAttribute("aria-valuetext",String(r.valueStart)),t}function qd(r){let t=document.createElement("div");t.classList.add(E.classes.HANDLE,E.classes.HANDLE_START),t.setAttribute("part","handle-start");let e=document.createElement("forge-state-layer");e.target="start",t.appendChild(e);let a=document.createElement("forge-focus-indicator");a.target="start",t.appendChild(a);let o=document.createElement("div");o.classList.add(E.classes.HANDLE_THUMB),o.setAttribute("part","handle-start-thumb"),t.appendChild(o);let n=document.createElement("div");n.classList.add(E.classes.HANDLE_LABEL),n.setAttribute("part","handle-start-label"),t.appendChild(n);let i=document.createElement("span");return i.textContent=r,i.classList.add(E.classes.LABEL_CONTENT),i.setAttribute("part","handle-start-label-content"),n.appendChild(i),t}function r5(r){let t=document.createElement("div");t.classList.add(E.classes.LABEL);let e=document.createElement("span");return e.textContent=r,e.classList.add(E.classes.LABEL_CONTENT),t.appendChild(e),t}var ol=class extends I{constructor(t){super(t),this._rootElement=g(t,E.selectors.ROOT),this._trackElement=g(t,E.selectors.TRACK),this._handleContainerElement=g(t,E.selectors.HANDLE_CONTAINER),this._endInputElement=g(t,E.selectors.END_INPUT),this._endHandleElement=g(t,E.selectors.END_HANDLE),this._endHandleThumbElement=g(t,E.selectors.END_HANDLE_THUMB),this._endLabelContentElement=g(t,E.selectors.END_LABEL_CONTENT)}addInputListener(t,e){this._getInputs().forEach(o=>o.addEventListener(t,e))}update({startFraction:t,endFraction:e,tickCount:a}){this._rootElement.style.setProperty(E.cssCustomProperties.START_FRACTION,String(t)),this._rootElement.style.setProperty(E.cssCustomProperties.END_FRACTION,String(e)),this._rootElement.style.setProperty(E.cssCustomProperties.TICK_COUNT,String(a))}updateLabels(t,e){var a;this._startLabelContentElement&&(this._startLabelContentElement.textContent=t),this._endLabelContentElement&&(this._endLabelContentElement.textContent=e),(a=this._startInputElement)==null||a.setAttribute("aria-valuetext",t),this._endInputElement.setAttribute("aria-valuetext",e)}updateHandleLayering(){let t=this._endInputElement.matches(":focus");this._startHandleElement&&_2(this._startHandleElement,!t,E.classes.ON_TOP),_2(this._endHandleElement,t,E.classes.ON_TOP)}tryHoverStartHandle(t){var e,a,o;this._startHandleThumbElement&&Ql(t,this._startHandleThumbElement)?(this._handleContainerElement.classList.add(E.classes.HOVER),(e=this._startHandleElement)==null||e.classList.add(E.classes.HOVER)):(a=this._startInputElement)!=null&&a.matches(":focus")||(this._handleContainerElement.classList.remove(E.classes.HOVER),(o=this._startHandleElement)==null||o.classList.remove(E.classes.HOVER))}tryHoverEndHandle(t){Ql(t,this._endHandleThumbElement)?(this._handleContainerElement.classList.add(E.classes.HOVER),this._endHandleElement.classList.add(E.classes.HOVER)):this._endInputElement.matches(":focus")||(this._handleContainerElement.classList.remove(E.classes.HOVER),this._endHandleElement.classList.remove(E.classes.HOVER))}tryDetectOverlap(){if(this._startHandleElement){let t=_3(this._startHandleElement,this._endHandleElement);_2(this._endHandleElement,t,E.classes.OVERLAPPING),_2(this._startHandleElement,t,E.classes.OVERLAPPING)}}leaveHandleContainer(){this._handleContainerElement.classList.remove(E.classes.HOVER)}syncInputValues(t,e){if(this._startInputElement&&(this._startInputElement.valueAsNumber=t),this._endInputElement.valueAsNumber=e,this._startInputElement){let a=new FormData;a.append(this._component.nameStart,String(t)),a.append(this._component.nameEnd,String(e)),this._component[a1].setFormValue(a)}else this._component[a1].setFormValue(String(e))}setRange(t){var e,a;if(this._rootElement.classList.toggle(E.classes.RANGE,t),t){this._startInputElement=Kd(this._component),this._rootElement.insertAdjacentElement("afterbegin",this._startInputElement),this._endInputElement.valueAsNumber=this._component.valueEnd;let o=this._startInputElement.value;this._startHandleElement=qd(o),this._handleContainerElement.insertAdjacentElement("afterbegin",this._startHandleElement),this._startHandleThumbElement=g(this._component,E.selectors.START_HANDLE_THUMB),this._startLabelContentElement=g(this._component,E.selectors.START_LABEL_CONTENT)}else(e=this._startInputElement)==null||e.remove(),(a=this._startHandleElement)==null||a.remove(),this._startInputElement=void 0,this._startHandleElement=void 0,this._startHandleThumbElement=void 0,this._startLabelContentElement=void 0}setTickmarks(t){this._trackElement.classList.toggle(E.classes.TICKMARKS,t)}setStep(t){this._getInputs().forEach(a=>a.step=String(t))}setMin(t){this._getInputs().forEach(a=>a.min=String(t))}setMax(t){this._getInputs().forEach(a=>a.max=String(t))}setDisabled(t){this._getInputs().forEach(o=>o.disabled=t),this._rootElement.querySelectorAll(M1.elementName).forEach(o=>o.disabled=t)}setReadonly(t){this._getInputs().forEach(a=>a.readOnly=t)}toggleLabels(t){var a;if(this._rootElement.querySelectorAll(E.selectors.LABEL).forEach(o=>o.remove()),this._endLabelContentElement=void 0,this._startLabelContentElement=void 0,t){let o=r5(this._endInputElement.value);if(this._endHandleElement.insertAdjacentElement("beforeend",o),this._endLabelContentElement=g(this._component,E.selectors.END_LABEL_CONTENT),this._startInputElement){let n=r5(this._startInputElement.value);(a=this._startHandleElement)==null||a.insertAdjacentElement("beforeend",n),this._startLabelContentElement=g(this._component,E.selectors.START_LABEL_CONTENT)}}}setStartAriaLabel(t){this._startInputElement&&K(this._startInputElement,!!t,"aria-label",t)}setEndAriaLabel(t){K(this._endInputElement,!!t,"aria-label",t)}_getInputs(){let t=[];return this._startInputElement&&t.push(this._startInputElement),[...t,this._endInputElement]}};var rl=class{constructor(t){this._adapter=t;this._value=E.numbers.DEFAULT_VALUE;this._valueStart=E.numbers.DEFAULT_START_VALUE;this._valueEnd=E.numbers.DEFAULT_END_VALUE;this._min=0;this._max=100;this._step=E.numbers.DEFAULT_STEP;this._tickmarks=!1;this._labeled=!0;this._range=!1;this._disabled=!1;this._readonly=!1;this._pointerEnterListener=e=>this._handlePointerEnter(e),this._pointerMoveListener=e=>this._handlePointerMove(e),this._pointerLeaveListener=e=>this._handlePointerLeave(e),this._changeUpdateListener=e=>this._handleInputUpdate(e),this._focusListener=e=>this._handleFocus(e)}initialize(){this._applyInputListeners(),this._update()}_update(){var _,L;let{value:t,valueStart:e,valueEnd:a}=this._clampMinMax(),o=this._step<=0?1:this._step,n=Math.max(this._max-this._min,o),i=this._range?((e!=null?e:this._min)-this._min)/n:0,l=this._range?a:t,h=((l!=null?l:this.min)-this.min)/n,c=n/o;this._adapter.update({startFraction:i,endFraction:h,tickCount:c}),this._adapter.syncInputValues(e,this._range?a:t),this._range&&this._adapter.tryDetectOverlap();let d=(_=this._labelStart)!=null?_:String(e),u=(L=this._labelEnd)!=null?L:String(this._range?a:t);typeof this._labelBuilder=="function"&&(this._range?(d=this._labelBuilder(e,"start"),u=this._labelBuilder(a,"end")):u=this._labelBuilder(t)),this._adapter.updateLabels(d,u)}_clampMinMax(){let t=this._value,e=this._valueStart,a=this._valueEnd;return this._range?(e>this._max?e=this._max:e<this._min&&(e=this._min),a>this._max?a=this._max:a<this._min&&(a=this._min)):t>this._max?t=this._max:this._value<this._min&&(t=this._min),{value:t,valueStart:e,valueEnd:a}}_applyInputListeners(){this._adapter.addInputListener("pointerenter",this._pointerEnterListener),this._adapter.addInputListener("pointermove",this._pointerMoveListener),this._adapter.addInputListener("pointerleave",this._pointerLeaveListener),this._adapter.addInputListener("input",this._changeUpdateListener),this._adapter.addInputListener("change",this._changeUpdateListener),this._adapter.addInputListener("focus",this._focusListener)}_handlePointerEnter(t){this._handlePointerMove(t)}_handlePointerMove({target:t,x:e,y:a}){t.id==="start"?this._adapter.tryHoverStartHandle({x:e,y:a}):this._adapter.tryHoverEndHandle({x:e,y:a})}_handlePointerLeave(t){this._adapter.leaveHandleContainer()}_handleInputUpdate(t){if(t.stopPropagation(),this._disabled||this._readonly){this._adapter.syncInputValues(this._valueStart,this._range?this._valueEnd:this._value);return}let e=t.target;if(this._range){let l=e.id==="start";if(l?this._valueStart=e.valueAsNumber:this._valueEnd=e.valueAsNumber,this._canClamp()){l?this._valueStart=this._valueEnd:this._valueEnd=this._valueStart,this._adapter.syncInputValues(this._valueStart,this._valueEnd),this._update();return}}else this._value=e.valueAsNumber;let a={default:{change:E.events.CHANGE,input:E.events.INPUT},range:{change:E.events.RANGE_CHANGE,input:E.events.RANGE_INPUT}},o=this._range?a.range[t.type]:a.default[t.type],n=this._range?{valueStart:this._valueStart,valueEnd:this._valueEnd}:{value:this._value},i=new CustomEvent(o,{detail:n,bubbles:!0});this._adapter.dispatchHostEvent(i),this._update()}_handleFocus(t){this._adapter.updateHandleLayering()}_canClamp(){return this._valueStart>this._valueEnd||this._valueEnd<this._valueStart}get value(){return this._value}set value(t){this._value!==t&&(this._value=t,this._update())}get valueStart(){return this._valueStart}set valueStart(t){this._valueStart!==t&&(this._valueStart=t,this._update())}get valueEnd(){return this._valueEnd}set valueEnd(t){this._valueEnd!==t&&(this._valueEnd=t,this._update())}get label(){return this.labelEnd}set label(t){this.labelEnd=t}get labelStart(){return this._labelStart}set labelStart(t){this._labelStart!==t&&(this._labelStart=t,this._adapter.updateLabels(this._labelStart,this._labelEnd))}get labelEnd(){return this._labelEnd}set labelEnd(t){this._labelEnd!==t&&(this._labelEnd=t,this._adapter.updateLabels(this._labelStart,this._labelEnd))}get labelBuilder(){return this._labelBuilder}set labelBuilder(t){this._labelBuilder=t,this._update()}get min(){return this._min}set min(t){this._min!==t&&(this._min=t,this._adapter.setMin(this._min),this._update(),this._adapter.setHostAttribute(E.attributes.MIN,String(this._min)))}get max(){return this._max}set max(t){this._max!==t&&(this._max=t,this._adapter.setMax(this._max),this._update(),this._adapter.setHostAttribute(E.attributes.MAX,String(this._max)))}get step(){return this._step}set step(t){this._step!==t&&(this._step=t,this._adapter.setStep(this._step),this._update(),this._adapter.setHostAttribute(E.attributes.STEP,String(this._step)))}get tickmarks(){return this._tickmarks}set tickmarks(t){this._tickmarks!==t&&(this._tickmarks=t,this._adapter.setTickmarks(this._tickmarks),this._adapter.toggleHostAttribute(E.attributes.TICKMARKS,this._tickmarks))}get labeled(){return this._labeled}set labeled(t){this._labeled!==t&&(this._labeled=t,this._adapter.toggleLabels(this._labeled),this._update(),this._adapter.toggleHostAttribute(E.attributes.LABELED,this._labeled))}get range(){return this._range}set range(t){this._range!==t&&(this._range=t,this._adapter.setRange(this._range),this._range&&this._applyInputListeners(),this._update(),this._adapter.toggleHostAttribute(E.attributes.RANGE,this._range))}get disabled(){return this._disabled}set disabled(t){this._disabled!==t&&(this._disabled=t,this._adapter.setDisabled(t),this._adapter.toggleHostAttribute(E.attributes.DISABLED,this._disabled))}get readonly(){return this._readonly}set readonly(t){this._readonly!==t&&(this._readonly=t,this._adapter.setReadonly(t),this._adapter.toggleHostAttribute(E.attributes.READONLY,this._readonly))}set ariaLabel(t){this.ariaLabelEnd=t}set ariaLabelStart(t){this._adapter.setStartAriaLabel(t)}set ariaLabelEnd(t){this._adapter.setEndAriaLabel(t)}};var rx='<template><div part="root" class="forge-slider"><input type="range" class="end" id="end" min="0" max="100" step="1" aria-valuetext="0"><div class="track" part="track"></div><div class="handle-container-padded"><div class="handle-container-block"><div class="handle-container"><div class="handle end" part="handle-end"><forge-state-layer exportparts="surface:state-layer" target="end"></forge-state-layer><forge-focus-indicator part="focus-indicator" target="end"></forge-focus-indicator><div class="handle-thumb" part="handle-end-thumb"></div><div class="handle-label" part="handle-end-label"><span class="handle-label-content" part="handle-end-label-content"></span></div></div></div></div></div></div></template>',nx=':host{display:inline-flex;vertical-align:middle;min-inline-size:100%}:host([hidden]){display:none}.forge-slider{--_slider-start-fraction:0;--_slider-end-fraction:0;--_slider-tick-count:100;--_slider-track-height:var(--forge-slider-track-height, 4px);--_slider-active-track-color:var(--forge-slider-active-track-color, var(--forge-theme-primary, #3f51b5));--_slider-active-track-height:var(--forge-slider-active-track-height, var(--_slider-track-height));--_slider-active-track-shape:var(--forge-slider-active-track-shape, calc(var(--forge-shape-full, 9999px) * var(--forge-shape-factor, 1)));--_slider-disabled-active-track-color:var(--forge-slider-disabled-active-track-color, var(--forge-theme-surface-container-high, #9e9e9e));--_slider-disabled-active-track-opacity:var(--forge-slider-disabled-active-track-opacity, 0.38);--_slider-disabled-handle-color:var(--forge-slider-disabled-handle-color, var(--forge-theme-surface-container-high, #9e9e9e));--_slider-disabled-inactive-track-color:var(--forge-slider-disabled-inactive-track-color, var(--forge-theme-surface-container-high, #9e9e9e));--_slider-disabled-inactive-track-opacity:var(--forge-slider-disabled-inactive-track-opacity, 0.12);--_slider-focus-handle-color:var(--forge-slider-focus-handle-color, var(--forge-theme-primary, #3f51b5));--_slider-handle-color:var(--forge-slider-handle-color, var(--forge-theme-primary, #3f51b5));--_slider-handle-height:var(--forge-slider-handle-height, 20px);--_slider-handle-shape:var(--forge-slider-handle-shape, calc(var(--forge-shape-round, 50%) * var(--forge-shape-factor, 1)));--_slider-handle-width:var(--forge-slider-handle-width, 20px);--_slider-hover-handle-color:var(--forge-slider-hover-handle-color, var(--forge-theme-primary, #3f51b5));--_slider-inactive-track-color:var(--forge-slider-inactive-track-color, var(--forge-theme-primary-container, #d1d5ed));--_slider-inactive-track-height:var(--forge-slider-inactive-track-height, var(--_slider-track-height));--_slider-inactive-track-shape:var(--forge-slider-inactive-track-shape, calc(var(--forge-shape-full, 9999px) * var(--forge-shape-factor, 1)));--_slider-label-container-shape:var(--forge-slider-label-container-shape, calc(var(--forge-shape-full, 9999px) * var(--forge-shape-factor, 1)));--_slider-label-container-color:var(--forge-slider-label-container-color, var(--forge-theme-primary, #3f51b5));--_slider-label-container-height:var(--forge-slider-label-container-height, 28px);--_slider-label-text-color:var(--forge-slider-label-text-color, var(--forge-theme-on-primary, #ffffff));--_slider-pressed-handle-color:var(--forge-slider-pressed-handle-color, var(--forge-theme-primary, #3f51b5));--_slider-state-layer-size:var(--forge-slider-state-layer-size, 40px);--_slider-with-overlap-handle-outline-color:var(--forge-slider-with-overlap-handle-outline-color, var(--forge-theme-on-primary, #ffffff));--_slider-with-overlap-handle-outline-width:var(--forge-slider-with-overlap-handle-outline-width, 1px);--_slider-with-tick-marks-active-container-color:var(--forge-slider-with-tick-marks-active-container-color, var(--forge-theme-on-primary, #ffffff));--_slider-with-tick-marks-container-size:var(--forge-slider-with-tick-marks-container-size, 2px);--_slider-with-tick-marks-disabled-active-container-color:var(--forge-slider-with-tick-marks-disabled-active-container-color, var(--forge-theme-on-surface-container-high, #000000));--_slider-with-tick-marks-disabled-inactive-container-color:var(--forge-slider-with-tick-marks-disabled-inactive-container-color, var(--forge-theme-on-surface-container-high, #000000));--_slider-with-tick-marks-inactive-container-color:var(--forge-slider-with-tick-marks-inactive-container-color, var(--forge-theme-primary, #3f51b5))}.forge-slider{flex:1;display:flex;align-items:center;position:relative;block-size:var(--_slider-state-layer-size);pointer-events:none;touch-action:none}.forge-slider.range :host-context([dir=rtl]) input.start{clip-path:inset(0 0 0 calc(100% - (var(--_slider-state-layer-size)/ 2 + (100% - var(--_slider-state-layer-size)) * (var(--_slider-start-fraction) + (var(--_slider-end-fraction) - var(--_slider-start-fraction))/ 2))))}.forge-slider.range :host([dir=rtl]) input.start{clip-path:inset(0 0 0 calc(100% - (var(--_slider-state-layer-size)/ 2 + (100% - var(--_slider-state-layer-size)) * (var(--_slider-start-fraction) + (var(--_slider-end-fraction) - var(--_slider-start-fraction))/ 2))))}.forge-slider.range input.start:dir(rtl){clip-path:inset(0 0 0 calc(100% - (var(--_slider-state-layer-size)/ 2 + (100% - var(--_slider-state-layer-size)) * (var(--_slider-start-fraction) + (var(--_slider-end-fraction) - var(--_slider-start-fraction))/ 2))))}.forge-slider.range input.start{clip-path:inset(0 calc(100% - (var(--_slider-state-layer-size)/ 2 + (100% - var(--_slider-state-layer-size)) * (var(--_slider-start-fraction) + (var(--_slider-end-fraction) - var(--_slider-start-fraction))/ 2))) 0 0)}.forge-slider.range input.end{clip-path:inset(0 0 0 calc(var(--_slider-state-layer-size)/ 2 + (100% - var(--_slider-state-layer-size)) * (var(--_slider-start-fraction) + (var(--_slider-end-fraction) - var(--_slider-start-fraction))/ 2)))}.forge-slider.range :host-context([dir=rtl]) input.end{clip-path:inset(0 calc(var(--_slider-state-layer-size)/ 2 + (100% - var(--_slider-state-layer-size)) * (var(--_slider-start-fraction) + (var(--_slider-end-fraction) - var(--_slider-start-fraction))/ 2)) 0 0)}.forge-slider.range :host([dir=rtl]) input.end{clip-path:inset(0 calc(var(--_slider-state-layer-size)/ 2 + (100% - var(--_slider-state-layer-size)) * (var(--_slider-start-fraction) + (var(--_slider-end-fraction) - var(--_slider-start-fraction))/ 2)) 0 0)}.forge-slider.range input.end:dir(rtl){clip-path:inset(0 calc(var(--_slider-state-layer-size)/ 2 + (100% - var(--_slider-state-layer-size)) * (var(--_slider-start-fraction) + (var(--_slider-end-fraction) - var(--_slider-start-fraction))/ 2)) 0 0)}.track{position:absolute;inset:0;display:flex;align-items:center}.track::after,.track::before{content:"";position:absolute;inset-inline-start:calc(var(--_slider-state-layer-size)/ 2 - var(--_slider-with-tick-marks-container-size));inset-inline-end:calc(var(--_slider-state-layer-size)/ 2 - var(--_slider-with-tick-marks-container-size));background-size:calc((100% - var(--_slider-with-tick-marks-container-size) * 2)/ var(--_slider-tick-count)) 100%}.track::before{block-size:var(--_slider-inactive-track-height);border-radius:var(--_slider-inactive-track-shape);background-color:var(--_slider-inactive-track-color)}.track::after{block-size:var(--_slider-active-track-height);border-radius:var(--_slider-active-track-shape);clip-path:inset(0 calc(calc(var(--_slider-with-tick-marks-container-size) * min((1 - var(--_slider-end-fraction)) * 1000000000,1)) + calc(100% - var(--_slider-with-tick-marks-container-size) * 2) * (1 - var(--_slider-end-fraction))) 0 calc(calc(var(--_slider-with-tick-marks-container-size) * min(var(--_slider-start-fraction) * 1000000000,1)) + calc(100% - var(--_slider-with-tick-marks-container-size) * 2) * var(--_slider-start-fraction)));background-color:var(--_slider-active-track-color)}.track.tickmarks::before{background-image:radial-gradient(circle at var(--_slider-with-tick-marks-container-size) center,var(--_slider-with-tick-marks-inactive-container-color) 0,var(--_slider-with-tick-marks-inactive-container-color) calc(var(--_slider-with-tick-marks-container-size)/ 2),transparent calc(var(--_slider-with-tick-marks-container-size)/ 2))}.track.tickmarks::after{background-image:radial-gradient(circle at var(--_slider-with-tick-marks-container-size) center,var(--_slider-with-tick-marks-active-container-color) 0,var(--_slider-with-tick-marks-active-container-color) calc(var(--_slider-with-tick-marks-container-size)/ 2),transparent calc(var(--_slider-with-tick-marks-container-size)/ 2))}.handle-container-block,.handle-container-padded{position:relative;block-size:100%;inline-size:100%}.handle-container-padded{padding-inline:calc(var(--_slider-state-layer-size)/ 2)}.handle-container{position:absolute;inset-block-start:0;inset-block-end:0;inset-inline-start:calc(100% * var(--_slider-start-fraction));inline-size:calc(100% * (var(--_slider-end-fraction) - var(--_slider-start-fraction)))}.handle{position:absolute;block-size:var(--_slider-state-layer-size);inline-size:var(--_slider-state-layer-size);border-radius:var(--_slider-handle-shape);display:grid;place-items:center}.handle.start{inset-inline-start:calc(0px - var(--_slider-state-layer-size)/ 2)}.handle.end{inset-inline-end:calc(0px - var(--_slider-state-layer-size)/ 2)}.handle-thumb{box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12);position:absolute;height:var(--_slider-handle-height);width:var(--_slider-handle-width);border-radius:var(--_slider-handle-shape);background:var(--_slider-handle-color)}.handle-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-label1-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-label1-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-label-font-size-scale, .75)));line-height:var(--forge-typography-label1-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-label-line-height-scale, 1.25)));letter-spacing:var(--forge-typography-label1-letter-spacing, .0357142857em);text-transform:var(--forge-typography-label1-text-transform,inherit);text-decoration:var(--forge-typography-label1-text-decoration,inherit);position:absolute;box-sizing:border-box;display:grid;padding:4px;place-items:center;border-radius:var(--_slider-label-container-shape);color:var(--_slider-label-text-color);font-weight:500;white-space:nowrap;inset-block-end:100%;min-inline-size:var(--_slider-label-container-height);min-block-size:var(--_slider-label-container-height);background:var(--_slider-label-container-color);transition:transform var(--forge-animation-duration-short2, 100ms) var(--forge-animation-easing-standard, cubic-bezier(.2, 0, 0, 1));transform-origin:center bottom;transform:scale(0)}.handle-label::after,.handle-label::before{content:"";position:absolute;display:block;background:inherit}.handle-label::before{inline-size:calc(var(--_slider-label-container-height)/ 2);block-size:calc(var(--_slider-label-container-height)/ 2);bottom:calc(var(--_slider-label-container-height)/ -10);transform:rotate(45deg)}.handle-label::after{inset:0;border-radius:inherit}.handle-label-content{z-index:1}.handle-container.hover .handle-thumb{background:var(--_slider-hover-handle-color)}:host(:not([disabled])) input.end:active~.handle-container-padded .handle.end>.handle-thumb,:host(:not([disabled])) input.start:active~.handle-container-padded .handle.start>.handle-thumb{background:var(--_slider-pressed-handle-color)}:host([disabled]) .handle-thumb{box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12);background:var(--_slider-disabled-handle-color)}:host([disabled]) .handle-label{background:var(--_slider-disabled-handle-color)}:host([disabled]) .track::before{opacity:calc(1 / var(--_slider-disabled-active-track-opacity) * var(--_slider-disabled-inactive-track-opacity));background-color:var(--_slider-disabled-inactive-track-color)}:host([disabled]) .track::after{background-color:var(--_slider-disabled-active-track-color)}:host([disabled]) .track.tickmarks::before{background-image:radial-gradient(circle at var(--_slider-with-tick-marks-container-size) center,var(--_slider-with-tick-marks-disabled-inactive-container-color) 0,var(--_slider-with-tick-marks-disabled-inactive-container-color) calc(var(--_slider-with-tick-marks-container-size)/ 2),transparent calc(var(--_slider-with-tick-marks-container-size)/ 2))}:host([disabled]) .track.tickmarks::after{background-image:radial-gradient(circle at var(--_slider-with-tick-marks-container-size) center,var(--_slider-with-tick-marks-disabled-active-container-color) 0,var(--_slider-with-tick-marks-disabled-active-container-color) calc(var(--_slider-with-tick-marks-container-size)/ 2),transparent calc(var(--_slider-with-tick-marks-container-size)/ 2))}:host([disabled]) input[type=range]{cursor:not-allowed}:host-context([dir=rtl]) .track::after{clip-path:inset(0 calc(calc(var(--_slider-with-tick-marks-container-size) * min(var(--_slider-start-fraction) * 1000000000,1)) + calc(100% - var(--_slider-with-tick-marks-container-size) * 2) * var(--_slider-start-fraction)) 0 calc(calc(var(--_slider-with-tick-marks-container-size) * min((1 - var(--_slider-end-fraction)) * 1000000000,1)) + calc(100% - var(--_slider-with-tick-marks-container-size) * 2) * (1 - var(--_slider-end-fraction))))}:host([dir=rtl]) .track::after{clip-path:inset(0 calc(calc(var(--_slider-with-tick-marks-container-size) * min(var(--_slider-start-fraction) * 1000000000,1)) + calc(100% - var(--_slider-with-tick-marks-container-size) * 2) * var(--_slider-start-fraction)) 0 calc(calc(var(--_slider-with-tick-marks-container-size) * min((1 - var(--_slider-end-fraction)) * 1000000000,1)) + calc(100% - var(--_slider-with-tick-marks-container-size) * 2) * (1 - var(--_slider-end-fraction))))}.track:dir(rtl)::after{clip-path:inset(0 calc(calc(var(--_slider-with-tick-marks-container-size) * min(var(--_slider-start-fraction) * 1000000000,1)) + calc(100% - var(--_slider-with-tick-marks-container-size) * 2) * var(--_slider-start-fraction)) 0 calc(calc(var(--_slider-with-tick-marks-container-size) * min((1 - var(--_slider-end-fraction)) * 1000000000,1)) + calc(100% - var(--_slider-with-tick-marks-container-size) * 2) * (1 - var(--_slider-end-fraction))))}input.end:focus~.handle-container-padded .handle.end>.handle-thumb,input.start:focus~.handle-container-padded .handle.start>.handle-thumb{background:var(--_slider-focus-handle-color)}.on-top.overlapping .handle-label,.on-top.overlapping .handle-label::before,.on-top.overlapping .handle-thumb{border:var(--_slider-with-overlap-handle-outline-color) solid var(--_slider-with-overlap-handle-outline-width)}.handle-container.hover .handle-label,:host(:focus-within) .handle-label,:where(:has(input:active)) .handle-label{transform:scale(1)}input[type=range]{opacity:0;-webkit-tap-highlight-color:transparent;position:absolute;box-sizing:border-box;height:100%;width:100%;margin:0;background:0 0;cursor:pointer;pointer-events:auto;appearance:none}input[type=range]:focus{outline:0}input[type=range]::-webkit-slider-runnable-track{-webkit-appearance:none}input[type=range]::-moz-range-track{appearance:none}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;block-size:var(--_slider-state-layer-size);inline-size:var(--_slider-state-layer-size);transform:scaleX(0);opacity:0;z-index:2}input[type=range]::-moz-range-thumb{appearance:none;block-size:var(--_slider-state-layer-size);inline-size:var(--_slider-state-layer-size);transform:scaleX(0);opacity:0;z-index:2}.on-top{z-index:1}@media (prefers-reduced-motion){.handle-label{transition-duration:0}}forge-focus-indicator{--forge-focus-indicator-shape:50%;--forge-focus-indicator-outward-offset:0px}forge-state-layer{--forge-state-layer-color:var(--_slider-handle-color)}',$d,w2=class extends($d=Er,a1,$d){static get observedAttributes(){return[E.attributes.ARIA_LABEL,E.attributes.ARIA_LABEL_START,E.attributes.ARIA_LABEL_END,E.attributes.VALUE,E.attributes.VALUE_START,E.attributes.VALUE_END,E.attributes.LABEL,E.attributes.LABEL_START,E.attributes.LABEL_END,E.attributes.MAX,E.attributes.MIN,E.attributes.STEP,E.attributes.TICKMARKS,E.attributes.LABELED,E.attributes.RANGE,E.attributes.DISABLED,E.attributes.READONLY]}get form(){return this[a1].form}get labels(){return this[a1].labels}get name(){var t;return(t=this.getAttribute("name"))!=null?t:""}set name(t){K(this,!!t,"name",t!=null?t:"")}get nameStart(){var t;return(t=this.getAttribute("name-start"))!=null?t:this.name}set nameStart(t){K(this,!!t,"name-start",t!=null?t:"")}get nameEnd(){var t;return(t=this.getAttribute("name-end"))!=null?t:this.nameStart}set nameEnd(t){K(this,!!t,"name-end",t!=null?t:"")}constructor(){super(),H(this,rx,nx),this[a1]=this.attachInternals(),this._core=new rl(new ol(this))}connectedCallback(){this._core.initialize()}attributeChangedCallback(t,e,a){switch(t){case E.attributes.ARIA_LABEL:this._core.ariaLabel=a;break;case E.attributes.ARIA_LABEL_START:this._core.ariaLabelStart=a;break;case E.attributes.ARIA_LABEL_END:this._core.ariaLabelEnd=a;break;case E.attributes.VALUE:this.value=W(a);break;case E.attributes.VALUE_START:this.valueStart=W(a);break;case E.attributes.VALUE_END:this.valueEnd=W(a);break;case E.attributes.LABEL:this.label=a;break;case E.attributes.LABEL_START:this.labelStart=a;break;case E.attributes.LABEL_END:this.labelEnd=a;break;case E.attributes.MIN:this.min=W(a);break;case E.attributes.MAX:this.max=W(a);break;case E.attributes.STEP:this.step=W(a);break;case E.attributes.TICKMARKS:this.tickmarks=p(a);break;case E.attributes.LABELED:this.labeled=p(a);break;case E.attributes.RANGE:this.range=p(a);break;case E.attributes.DISABLED:this.disabled=p(a);break;case E.attributes.READONLY:this.readonly=p(a);break}}formResetCallback(){if(this._core.range){let e=this.getAttribute("value-start");this.valueStart=e!==null?Number(e):E.numbers.DEFAULT_START_VALUE;let a=this.getAttribute("value-end");this.valueEnd=a!==null?Number(a):E.numbers.DEFAULT_END_VALUE;return}let t=this.getAttribute("value");this.value=t!==null?Number(t):E.numbers.DEFAULT_VALUE}formStateRestoreCallback(t){if(t&&t[0]instanceof FormData){let e=Array.from(t[0]),[[,a],[,o]]=e;this.valueStart=Number(a),this.valueEnd=Number(o),this.range=!0;return}this.value=Number(t),this.range=!1}formDisabledCallback(t){this.disabled=t}};w2.formAssociated=!0,s([v()],w2.prototype,"value",2),s([v()],w2.prototype,"valueStart",2),s([v()],w2.prototype,"valueEnd",2),s([v()],w2.prototype,"label",2),s([v()],w2.prototype,"labelStart",2),s([v()],w2.prototype,"labelEnd",2),s([v()],w2.prototype,"labelBuilder",2),s([v()],w2.prototype,"min",2),s([v()],w2.prototype,"max",2),s([v()],w2.prototype,"step",2),s([v()],w2.prototype,"tickmarks",2),s([v()],w2.prototype,"labeled",2),s([v()],w2.prototype,"range",2),s([v()],w2.prototype,"disabled",2),s([v()],w2.prototype,"readonly",2),w2=s([y({name:E.elementName,dependencies:[Q,r1]})],w2);var Xd=class extends a2{constructor(t){super(t)}get value(){return this._element.value}set value(t){this._element.value=t}get valueStart(){return this._element.valueStart}set valueStart(t){this._element.valueStart=t}get valueEnd(){return this._element.valueEnd}set valueEnd(t){this._element.valueEnd=t}get disabled(){return this._element.disabled}set disabled(t){this._element.disabled=t}get min(){return this._element.min}set min(t){this._element.min=t}get max(){return this._element.max}set max(t){this._element.max=t}get step(){return this._element.step}get range(){return this._element.range}set range(t){this._element.range=t}get tickmarks(){return this._element.tickmarks}set tickmarks(t){this._element.tickmarks=t}get labeled(){return this._element.labeled}set labeled(t){this._element.labeled=t}get labelBuilder(){return this._element.labelBuilder}set labelBuilder(t){this._element.labelBuilder=t}onInput(t){this._element.addEventListener("forge-slider-input",({detail:e})=>t(e))}onChange(t){this._element.addEventListener("forge-slider-change",({detail:e})=>t(e))}onRangeInput(t){this._element.addEventListener("forge-slider-range-input",({detail:e})=>t(e))}onRangeChange(t){this._element.addEventListener("forge-slider-range-change",({detail:e})=>t(e))}onFocus(t){this._element.addEventListener("focus",e=>t(e))}onBlur(t){this._element.addEventListener("blur",e=>t(e))}_build(){return document.createElement(E.elementName)}};function jd(){x(w2)}var Zd={name:"clock_outline",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 20a8 8 0 008-8 8 8 0 00-8-8 8 8 0 00-8 8 8 8 0 008 8m0-18a10 10 0 0110 10 10 10 0 01-10 10C6.47 22 2 17.5 2 12A10 10 0 0112 2m.5 5v5.25l4.5 2.67-.75 1.23L11 13V7h1.5z"/></svg>'};var Qd={name:"drag_vertical_variant",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M11 21H9V3h2v18m4-18h-2v18h2V3z"/></svg>'};var x0=`${b}split-view-panel`,ix={RESIZABLE:"resizable",SIZE:"size",MIN:"min",MAX:"max",OPEN:"open",ACCESSIBLE_LABEL:"accessible-label",DISABLED:"disabled",ALLOW_CLOSE:"allow-close",AUTO_CLOSE:"auto-close",AUTO_CLOSE_THRESHOLD:"auto-close-threshold",ORIENTATION:"orientation"},sx={ROOT:"forge-split-view-panel",GRABBED:"forge-split-view-panel--grabbed",HANDLE:"forge-split-view-panel__handle",ICON:"forge-split-view-panel__icon",CONTENT:"forge-split-view-panel__content",CLOSED:"forge-split-view-panel--closed",CLOSING:"forge-split-view-panel--closing",OPENING:"forge-split-view-panel--opening",DISABLED:"forge-split-view-panel--disabled",OVERLAY:"forge-split-view-panel-overlay"},Oo={ROOT:"root",HANDLE:"handle",ICON:"icon",STATE_LAYER:"state-layer",CONTENT:"content"},lx={ROOT:`#${Oo.ROOT}`,HANDLE:`#${Oo.HANDLE}`,ICON:`#${Oo.ICON}`,STATE_LAYER:`#${Oo.STATE_LAYER}`,CONTENT:`#${Oo.CONTENT}`},vx={WILL_RESIZE:`${x0}-will-resize`,RESIZE_START:`${x0}-resize-start`,RESIZE_END:`${x0}-resize-end`,RESIZE:`${x0}-resize`,DID_OPEN:`${x0}-did-open`,DID_CLOSE:`${x0}-did-close`,WILL_OPEN:`${x0}-will-open`,WILL_CLOSE:`${x0}-will-close`},hx={STATE_LAYER_ACTIVATION_WAIT:200},cx={SIZE:"--forge-split-view-panel-size",CURSOR:"--forge-split-view-panel-cursor"},D={elementName:x0,attributes:ix,classes:sx,ids:Oo,selectors:lx,events:vx,numbers:hx,customCssProperties:cx},Jd=(a=>(a[a.Under=1]="Under",a[a.Active=2]="Active",a[a.Above=3]="Above",a))(Jd||{});function t6(){return{orientation:"horizontal",resizable:"off",arrowKeyHeld:!1,keyboardDelta:0,isAtMin:!1,isAtMax:!1,min:0}}function e6(r,t){let e=r.getContentSize(t.orientation);return t1(w({},t),{currentSize:e,startSize:e,availableSpace:r.getAvailableSpace(t.orientation,t.resizable),siblingSize:r.getSiblingContentSize(),isAtMin:!1,isAtMax:!1})}function a6(r){return t1(w({},r),{arrowKeyHeld:!1,keyboardDelta:0,isAtMin:!1,isAtMax:!1})}function o6(r,t,e){if(e.startPoint===void 0||e.startSize===void 0)return!1;let a=e.currentSize,o=e.orientation==="horizontal"?t.clientX:t.clientY,n=e.startPoint-o;e.resizable==="start"&&(n*=-1);let i=e.startSize-n;e.currentSize=nl(i,e),r.setContentSize(e.currentSize),il(r,e,"pointer"),r.setValuenow(sl(e.currentSize,e));let l=i-e.currentSize+n;return s6(r,l,e),a!==e.currentSize}function r6(r,t,e){if(e.startSize===void 0)return!1;let a=e.currentSize;e.keyboardDelta+=t;let o=e.startSize+e.keyboardDelta;e.currentSize=nl(o,e),r.setContentSize(e.currentSize),il(r,e,"keyboard"),r.setValuenow(sl(e.currentSize,e));let n=o-e.currentSize+e.keyboardDelta*-1;return s6(r,n,e),a!==e.currentSize}function n6(r,t){return r.setContentSize(t.min),t.min}function i6(r,t){let e=r.getAvailableSpace(t.orientation,t.resizable),a=B0(t.max,e);return r.setContentSize(a),a}function s6(r,t,e){if(e.siblingSize!==void 0){let a=e.siblingSize+t;r.setSiblingContentSize(a)}}function nl(r,t){return r=Math.max(r,t.min),r=B0(r,t.max,t.availableSpace),r}function il(r,t,e){if(t.currentSize===void 0)return!1;if(t.currentSize<=t.min)return t.isAtMin||(r.animateStateLayer(e==="pointer"),e==="pointer"&&r.setBodyCursor(t.orientation,{resizable:t.resizable,boundary:"min"}),t.isAtMin=!0),!0;t.isAtMin&&(t.isAtMin=!1);let a=B0(t.max,t.availableSpace);return t.currentSize>=a?(t.isAtMax||(r.animateStateLayer(e==="pointer"),e==="pointer"&&r.setBodyCursor(t.orientation,{resizable:t.resizable,boundary:"max"}),t.isAtMax=!0),!0):(t.isAtMax&&(t.isAtMax=!1),e==="pointer"&&r.setBodyCursor(t.orientation),!1)}function l6(r,t,e){if(t<=e.min)return r.setHandleCursor(e.orientation,{resizable:e.resizable,boundary:"min"}),!0;let a=B0(e.max,e.availableSpace);return t>=a?(r.setHandleCursor(e.orientation,{resizable:e.resizable,boundary:"max"}),!0):(r.setHandleCursor(e.orientation),!1)}function sl(r,t){if(!t.availableSpace&&!t.max)return 100;let e=B0(t.max,t.availableSpace);return tn(r,t.min,e)}function n5(r,t){if(r==="horizontal")switch(t==null?void 0:t.boundary){case"min":return t.resizable==="end"?"e-resize":"w-resize";case"max":return t.resizable==="end"?"w-resize":"e-resize";default:return"col-resize"}else switch(t==null?void 0:t.boundary){case"min":return t.resizable==="end"?"s-resize":"n-resize";case"max":return t.resizable==="end"?"n-resize":"s-resize";default:return"row-resize"}}function v6(r){return r==="horizontal"?"drag_vertical_variant":"drag_handle"}function ll(r){let t=r.resizable;if(t==="off")return;let e=r;do e=t==="end"?e.nextElementSibling:e.previousElementSibling;while(e instanceof H2&&!e.open);if(e instanceof H2)return e}function px(r){var n,i;if(!isNaN(+r))return{amount:+r,unit:"px"};let t=/(^\d*\.?\d*)\s*(px|%$)?/i,e=r.match(t),a=e!=null&&e[1]?+e[1]:-1,o=(i=(n=e==null?void 0:e[2])==null?void 0:n.toLowerCase())!=null?i:"";return{amount:a,unit:o}}function Sa(r,t){let e=px(r);return e.unit==="%"?u3(e.amount,t):e.amount}function h6(){let r=document.createElement("div");return r.classList.add(D.classes.OVERLAY),r.style.position="fixed",r.style.top="0",r.style.left="0",r.style.width="100vw",r.style.height="100vh",r.style.zIndex="9999",r}var vl=class{constructor(t){this._adapter=t;this._size=200;this._min=0;this._accessibleLabel="Split view panel";this._open=!0;this._state=t6();this._isInitialized=!1;this._parentProperties={};this._pointerdownListener=e=>this._onPointerdown(e),this._pointerupListener=e=>this._onPointerup(e),this._pointermoveListener=e=>this._onPointermove(e),this._keydownListener=e=>this._onKeydown(e),this._keyupListener=e=>this._onKeyup(e)}get _orientation(){return this._state.orientation}set _orientation(t){this._state.orientation=t}get _resizable(){return this._state.resizable}set _resizable(t){this._state.resizable=t}get _pixelMin(){return this._state.min}set _pixelMin(t){this._state.min=t}get _pixelMax(){return this._state.max}set _pixelMax(t){this._state.max=t}get _appliedDisabled(){var t,e;return(e=(t=this._disabled)!=null?t:this._parentProperties.disabled)!=null?e:!1}get _appliedAllowClose(){var t,e;return(e=(t=this._allowClose)!=null?t:this._parentProperties.allowClose)!=null?e:!1}get _appliedAutoClose(){var t,e;return(e=(t=this._autoClose)!=null?t:this._parentProperties.autoClose)!=null?e:!1}get _appliedAutoCloseThreshold(){var t,e;return(e=(t=this._autoCloseThreshold)!=null?t:this._parentProperties.autoCloseThreshold)!=null?e:0}initialize(){this._adapter.initialize(),this._adapter.setPointerdownListener(this._pointerdownListener),this._adapter.setKeydownListener(this._keydownListener),this._getParentProperties(),this._applyResizable(),this._applyMin(),this._applyMax(),this._applySize(),this._applyAccessibleLabel(),this._applyOpen(),this._applyDisabled(),this._applyAllowClose(),this._applyAutoClose(),this._applyAutoCloseThreshold(),this._isInitialized=!0}destroy(){this._adapter.tryRemoveOverlay(),this._adapter.removePointerupListener(this._pointerupListener),this._adapter.removePointermoveListener(this._pointermoveListener)}_onPointerdown(t){this._appliedDisabled||!this._allowResize("pointer")||(t.preventDefault(),this._adapter.setPointermoveListener(this._pointermoveListener),this._adapter.setPointerupListener(this._pointerupListener),this._handlePointerdown(t))}_onPointerup(t){t.preventDefault(),this._adapter.removePointermoveListener(this._pointermoveListener),this._adapter.removePointerupListener(this._pointerupListener),this._handlePointerup()}_onPointermove(t){if(!this._appliedDisabled){if(t.preventDefault(),t.buttons===0){this._adapter.removePointermoveListener(this._pointermoveListener),this._adapter.removePointerupListener(this._pointerupListener),this._handlePointerup();return}this._handlePointermove(t)}}_onKeydown(t){this._appliedDisabled||(t.key==="Enter"?this._handleEnterKey(t):t.key==="Home"&&this._allowResize("keyboard")?this._handleHomeKey(t):t.key==="End"&&this._allowResize("keyboard")?this._handleEndKey(t):t4(t)&&this._allowResize("keyboard")&&(this._adapter.setKeyupListener(this._keyupListener),this._handleArrowKey(t)))}_onKeyup(t){t4(t)&&(this._adapter.removeKeyupListener(this._keyupListener),this._handleArrowKeyUp())}_handleEnterKey(t){this._appliedAllowClose&&(t.preventDefault(),this._tryOpenOrClose(!this._open,!1,!0))}_handleHomeKey(t){t.preventDefault();let e=n6(this._adapter,this._state);this._adapter.emitHostEvent(D.events.RESIZE,e),this._tryAutoClose()}_handleEndKey(t){t.preventDefault();let e=i6(this._adapter,this._state);this._adapter.emitHostEvent(D.events.RESIZE,e)}_handleArrowKey(t){let e=0;if(this._orientation==="horizontal")switch(t.key){case"ArrowLeft":e=-1;break;case"ArrowRight":e=1;break;default:return}else switch(t.key){case"ArrowUp":e=-1;break;case"ArrowDown":e=1;break;default:return}t.preventDefault(),this._resizable==="start"&&(e*=-1),t.shiftKey&&(e*=10),this._tryHandleArrowKeyDown(),this._handleArrowKeyHeld(e)}_tryHandleArrowKeyDown(){this._state.arrowKeyHeld||this._startResize(),this._state.arrowKeyHeld=!0}_handleArrowKeyUp(){this._endResize()}_handleArrowKeyHeld(t){r6(this._adapter,t,this._state)&&this._adapter.emitHostEvent(D.events.RESIZE,this._state.currentSize)}_handlePointerdown(t){this._adapter.setGrabbed(!0),this._adapter.focusHandle(),this._startResize(),this._state.startPoint=this._orientation==="horizontal"?t.clientX:t.clientY,il(this._adapter,this._state,"pointer")}_handlePointerup(){this._adapter.setGrabbed(!1),this._endResize()}_handlePointermove(t){o6(this._adapter,t,this._state)&&this._adapter.emitHostEvent(D.events.RESIZE,this._state.currentSize)}_allowResize(t){return this._adapter.emitHostEvent(D.events.WILL_RESIZE,{inputDeviceType:t},!0,!0)}_startResize(){this._state=e6(this._adapter,this._state),this._adapter.emitHostEvent(D.events.RESIZE_START,this._state.startSize)}_endResize(){this._adapter.emitHostEvent(D.events.RESIZE_END,this._state.currentSize),this._adapter.updateParent({accessibility:this._state.startSize!==this._state.currentSize,cursor:!0}),this._state=a6(this._state),this._tryAutoClose()}_tryOpenOrClose(t=!0,e=!1,a=!1){let o=t?D.events.WILL_OPEN:D.events.WILL_CLOSE,n={auto:e,userInitiated:a};this._adapter.emitHostEvent(o,n,!0,!0)&&(this._open=t,this._applyOpen(n))}_tryAutoClose(){let t=this._adapter.getContentSize(this._orientation);this._appliedAutoClose&&t<=this._appliedAutoCloseThreshold&&this._tryOpenOrClose(!1,!0,!1)}_getParentProperties(){let t=this._adapter.getParentProperty("disabled");this._parentProperties.disabled=t,this._applyParentDisabled();let e=this._adapter.getParentProperty("allowClose");this._parentProperties.allowClose=e;let a=this._adapter.getParentProperty("autoClose");this._parentProperties.autoClose=a,this._applyParentAutoClose();let o=this._adapter.getParentProperty("autoCloseThreshold");this._parentProperties.autoCloseThreshold=o,this._applyParentAutoCloseThreshold()}_applyOrientation(){this._adapter.setOrientation(this._orientation)}get resizable(){return this._resizable}set resizable(t){this._resizable!==t&&(this._resizable=t,this._applyResizable())}_applyResizable(){this._adapter.setHostAttribute(D.attributes.RESIZABLE,this._resizable),this._adapter.setResizable(this._resizable)}get size(){return this._size}set size(t){this._size.toString()!==t.toString()&&(this._size=t,this._applySize())}_applySize(){let t=this._adapter.getParentSize(this._orientation),e=Sa(this._size,t);this._adapter.setHostAttribute(D.attributes.SIZE,this._size.toString()),this._adapter.setContentSize(e),window.requestAnimationFrame(()=>{let a=this._adapter.getAvailableSpace(this._orientation,this._resizable),o=B0(this._pixelMax,a),n=tn(e,this._pixelMin,o);this._adapter.setValuenow(n),this._adapter.updateParent({cursor:!0})})}get min(){return this._min}set min(t){this._min.toString()!==t.toString()&&(this._min=t,this._applyMin())}_applyMin(){this._adapter.setHostAttribute(D.attributes.MIN,this._min.toString());let t=this._adapter.getParentSize(this._orientation);if(this._pixelMin=Sa(this._min,t),this._resizable==="off")return;let e=this._adapter.getContentSize(this._orientation);e<this._pixelMin&&this.setContentSize(e)}get max(){return this._max}set max(t){var e;((e=this._max)==null?void 0:e.toString())!==(t==null?void 0:t.toString())&&(this._max=t,this._applyMax())}_applyMax(){var a;if(this._adapter.toggleHostAttribute(D.attributes.MAX,this._max!==void 0,(a=this._max)==null?void 0:a.toString()),this._max===void 0){this._pixelMax=void 0;return}let t=this._adapter.getParentSize(this._orientation);if(this._pixelMax=Sa(this._max,t),this._resizable==="off")return;let e=this._adapter.getContentSize(this._orientation);e>this._pixelMax&&this.setContentSize(e)}get accessibleLabel(){return this._accessibleLabel}set accessibleLabel(t){this._accessibleLabel!==t&&(this._accessibleLabel=t,this._applyAccessibleLabel())}_applyAccessibleLabel(){this._adapter.setHostAttribute(D.attributes.ACCESSIBLE_LABEL,this._accessibleLabel),this._adapter.setAccessibleLabel(this._accessibleLabel)}get open(){return this._open}set open(t){if(this._open!==t){if(this._isInitialized){this._tryOpenOrClose(t,!1,!1);return}this._open=t;let e=this._isInitialized?{auto:!1,userInitiated:!1}:void 0;this._applyOpen(e)}}_applyOpen(t){this._adapter.setHostAttribute(D.attributes.OPEN,this._open.toString()),this._adapter.setOpen(this._open,this._isInitialized,t)}get disabled(){return this._disabled}set disabled(t){this._disabled!==t&&(this._disabled=t,this._applyDisabled())}_applyDisabled(){var t;this._adapter.toggleHostAttribute(D.attributes.DISABLED,(t=this._disabled)!=null?t:!1),this._adapter.setDisabled(this._appliedDisabled)}_applyParentDisabled(){this._isInitialized&&!k(this._disabled)&&this._adapter.setDisabled(this._appliedDisabled)}get allowClose(){return this._allowClose}set allowClose(t){this._allowClose!==t&&(this._allowClose=t,this._applyAllowClose())}_applyAllowClose(){var t;this._adapter.toggleHostAttribute(D.attributes.ALLOW_CLOSE,(t=this._allowClose)!=null?t:!1)}get autoClose(){return this._autoClose}set autoClose(t){this._autoClose!==t&&(this._autoClose=t,this._applyAutoClose())}_applyAutoClose(){var t;this._adapter.toggleHostAttribute(D.attributes.AUTO_CLOSE,(t=this._autoClose)!=null?t:!1),this._isInitialized&&this._tryAutoClose()}_applyParentAutoClose(){this._isInitialized&&!k(this._autoClose)&&this._tryAutoClose()}get autoCloseThreshold(){return this._autoCloseThreshold}set autoCloseThreshold(t){this._autoCloseThreshold!==t&&(this._autoCloseThreshold=t,this._applyAutoCloseThreshold())}_applyAutoCloseThreshold(){var t;this._adapter.toggleHostAttribute(D.attributes.AUTO_CLOSE_THRESHOLD,k(this._autoCloseThreshold),(t=this.autoCloseThreshold)==null?void 0:t.toString()),this._isInitialized&&this._tryAutoClose()}_applyParentAutoCloseThreshold(){this._isInitialized&&!k(this._autoCloseThreshold)&&this._tryAutoClose()}getContentSize(){return this._adapter.getContentSize(this._orientation)}getCollapsibleSize(){let t=this._adapter.getParentSize(this._orientation),e=Sa(this._min,t);return this._adapter.getContentSize(this._orientation)-e}setContentSize(t){if(this._resizable==="off")return;let e=nl(t,this._state);this._adapter.setContentSize(e),this._isInitialized&&this._adapter.emitHostEvent(D.events.RESIZE,e)}update(t){if(t.orientation&&(this._orientation=t.orientation,this._applyOrientation()),t.properties&&(k(t.properties.disabled)&&this._parentProperties.disabled!==t.properties.disabled&&(this._parentProperties.disabled=t.properties.disabled,this._applyDisabled()),k(t.properties.allowClose)&&(this._parentProperties.allowClose=t.properties.allowClose),k(t.properties.autoClose)&&this._parentProperties.autoClose!==t.properties.autoClose&&(this._parentProperties.autoClose=t.properties.autoClose,k(this._autoClose)||this._applyAutoClose()),k(t.properties.autoCloseThreshold)&&this._parentProperties.autoCloseThreshold!==t.properties.autoCloseThreshold&&(this._parentProperties.autoCloseThreshold=t.properties.autoCloseThreshold,k(this._autoCloseThreshold)||this._applyAutoCloseThreshold())),t.size&&this.open){let o=this._adapter.getParentSize(this._orientation);this._pixelMin=Sa(this._min,o),this._pixelMax=k(this._max)?Sa(this._max,o):void 0,this.setContentSize(this._adapter.getContentSize(this._orientation))}if(this._resizable==="off")return;let e=this._adapter.getContentSize(this._orientation),a=this._adapter.getAvailableSpace(this._orientation,this._resizable);if(t.accessibility&&this.open){let o=sl(e,t1(w({},this._state),{availableSpace:a}));this._adapter.setValuenow(o)}t.cursor&&l6(this._adapter,e,t1(w({},this._state),{availableSpace:a}))}};var dx=`${b}split-view`,mx={ORIENTATION:"orientation",DISABLED:"disabled",ALLOW_CLOSE:"allow-close",AUTO_CLOSE:"auto-close",AUTO_CLOSE_THRESHOLD:"auto-close-threshold"},gx={ROOT:"forge-split-view"},c6={ROOT:"root"},wx={ROOT:`#${c6.ROOT}`,PANEL:D.elementName},ux={RESIZE_THROTTLE_THRESHOLD:200},_x={ANIMATING_LAYER:"--forge-split-view-animating-layer"},t2={elementName:dx,attributes:mx,classes:gx,ids:c6,selectors:wx,numbers:ux,customCssProperties:_x};var hl=class extends I{constructor(t){super(t),this._root=g(t,D.selectors.ROOT),this._handle=g(t,D.selectors.HANDLE),this._icon=g(t,D.selectors.ICON),this._stateLayer=g(t,D.selectors.STATE_LAYER),this._content=g(t,D.selectors.CONTENT)}initialize(){let t=this._component.parentElement;(t==null?void 0:t.tagName.toLowerCase())===t2.elementName&&(this._parent=t)}tryRemoveOverlay(){var t;(t=this._overlay)==null||t.remove(),this._overlay=void 0}setPointerdownListener(t){this._handle.addEventListener("pointerdown",t)}setPointerupListener(t){document.addEventListener("pointerup",t)}removePointerupListener(t){document.removeEventListener("pointerup",t)}setPointermoveListener(t){document.addEventListener("pointermove",t)}removePointermoveListener(t){document.removeEventListener("pointermove",t)}setKeydownListener(t){this._handle.addEventListener("keydown",t)}setKeyupListener(t){this._handle.addEventListener("keyup",t)}removeKeyupListener(t){this._handle.removeEventListener("keyup",t)}getParentProperty(t){var e;return(e=this._parent)==null?void 0:e[t]}setAccessibleLabel(t){this._handle.setAttribute("aria-label",t)}setDisabled(t){this._root.classList.toggle(D.classes.DISABLED,t),this._handle&&(this._handle.setAttribute("tabindex",t?"-1":"0"),K(this._handle,t,"aria-disabled","true"))}setResizable(t){this._root.setAttribute(D.attributes.RESIZABLE,t.toString()),K(this._handle,t!=="off","aria-valuemin","0"),K(this._handle,t!=="off","aria-valuemax","100"),t!=="off"&&(this._handle.remove(),t==="end"?this._root.append(this._handle):this._root.prepend(this._handle))}setOrientation(t){this._root.setAttribute(D.attributes.ORIENTATION,t),this._handle.setAttribute("aria-orientation",t==="horizontal"?"vertical":"horizontal"),this._icon.setAttribute("name",v6(t))}setOpen(t,e=!0,a){var n,i;let o=()=>{var l,h;t||this._root.classList.add(D.classes.CLOSED),a&&this.emitHostEvent(t?D.events.DID_OPEN:D.events.DID_CLOSE,a),(l=this._parent)==null||l.unlayerSlottedPanels(),(h=this._parent)==null||h.update({accessibility:!0,cursor:!0})};if(t&&this._root.classList.contains(D.classes.CLOSED)){if(this._root.classList.remove(D.classes.CLOSED),!e){o();return}(n=this._parent)==null||n.layerSlottedPanels(this._component),Rt(this._root,D.classes.OPENING,!0).then(()=>{o()})}else if(!t&&!this._root.classList.contains(D.classes.CLOSED)){if(!e){o();return}(i=this._parent)==null||i.layerSlottedPanels(this._component),Rt(this._root,D.classes.CLOSING,!0).then(()=>{o()})}}setGrabbed(t){var e;this._root.classList.toggle(D.classes.GRABBED,t),this._handle.setAttribute("aria-grabbed",t.toString()),t?(this._overlay||(this._overlay=h6()),document.body.append(this._overlay)):(e=this._overlay)==null||e.remove()}setHandleCursor(t,e){t?this._root.style.setProperty(D.customCssProperties.CURSOR,n5(t,e)):this._root.style.removeProperty(D.customCssProperties.CURSOR)}setBodyCursor(t,e){var a;(a=this._overlay)==null||a.style.setProperty("cursor",n5(t,e))}getContentSize(t){return t==="horizontal"?this._content.clientWidth:this._content.clientHeight}setContentSize(t){this._component.style.setProperty(D.customCssProperties.SIZE,`${t}px`)}setValuenow(t){this._handle.setAttribute("aria-valuenow",t.toFixed(2))}focusHandle(){this._handle.focus()}getAvailableSpace(t,e){if(e==="off")return-1;let a=ll(this._component);return a?a.getCollapsibleSize()+this.getContentSize(t):this.getParentSize(t)}getSiblingContentSize(){var e;let t=ll(this._component);return(e=t==null?void 0:t.getContentSize())!=null?e:0}setSiblingContentSize(t){let e=ll(this._component);e==null||e.setContentSize(t)}animateStateLayer(t){t?window.setTimeout(()=>{this._stateLayer.playAnimation()},D.numbers.STATE_LAYER_ACTIVATION_WAIT):this._stateLayer.playAnimation()}getParentSize(t){var a,o;let e=t==="horizontal"?(a=this._parent)==null?void 0:a.clientWidth:(o=this._parent)==null?void 0:o.clientHeight;return e!=null?e:0}updateParent(t){var e;(e=this._parent)==null||e.update(t)}};var fx='<template><div class="forge-split-view-panel" id="root" part="root"><div class="forge-split-view-panel__handle" id="handle" part="handle" role="separator" aria-controls="content" aria-grabbed="false" tabindex="0"><forge-icon class="forge-split-view-panel__icon" id="icon" part="icon"></forge-icon><forge-state-layer target="handle" id="state-layer" exportparts="surface:state-layer"></forge-state-layer><forge-focus-indicator inward target="handle" part="focus-indicator"></forge-focus-indicator></div><div class="forge-split-view-panel__content" id="content" part="content" role="group"><slot></slot></div></div></template>',xx=".forge-split-view-panel{display:flex;width:100%;height:100%;overflow:hidden}.forge-split-view-panel__handle{color:var(--forge-theme-text-medium,rgba(0,0,0,.6));background-color:var(--forge-theme-outline,#e0e0e0);position:relative;display:flex;flex-shrink:0;justify-content:center;align-items:center;outline:0}.forge-split-view-panel__content{flex:1;overflow:hidden}.forge-split-view-panel--closed{display:none}.forge-split-view-panel--disabled #handle{pointer-events:none}.forge-split-view-panel--disabled .forge-split-view-panel__icon{display:none}.forge-split-view-panel[orientation=horizontal]{min-width:var(--forge-split-view-handle-width,8px);width:calc(var(--forge-split-view-panel-size,unset) + var(--forge-split-view-handle-width,8px));flex-direction:row}.forge-split-view-panel[orientation=horizontal] .forge-split-view-panel__handle{width:var(--forge-split-view-handle-width,8px);cursor:var(--forge-split-view-panel-cursor)}.forge-split-view-panel[orientation=horizontal].forge-split-view-panel--closing[resizable=end]{position:absolute;top:0;left:0;animation-name:uxbrlv3;animation-duration:var(--forge-animation-duration-medium2, 300ms);animation-timing-function:var(--forge-animation-easing-standard,cubic-bezier(0.2,0,0,1))}@keyframes uxbrlv3{from{transform:none}to{transform:translateX(-100%)}}.forge-split-view-panel[orientation=horizontal].forge-split-view-panel--closing[resizable=start]{position:absolute;top:0;right:0;animation-name:uxbrlvc;animation-duration:var(--forge-animation-duration-medium2, 300ms);animation-timing-function:var(--forge-animation-easing-standard,cubic-bezier(0.2,0,0,1))}@keyframes uxbrlvc{from{transform:none}to{transform:translateX(100%)}}.forge-split-view-panel[orientation=horizontal].forge-split-view-panel--opening[resizable=end]{position:absolute;top:0;left:0;animation-name:uxbrlw6;animation-duration:var(--forge-animation-duration-medium2, 300ms);animation-timing-function:var(--forge-animation-easing-standard,cubic-bezier(0.2,0,0,1));animation-direction:reverse}@keyframes uxbrlw6{from{transform:none}to{transform:translateX(-100%)}}.forge-split-view-panel[orientation=horizontal].forge-split-view-panel--opening[resizable=start]{position:absolute;top:0;right:0;animation-name:uxbrlwb;animation-duration:var(--forge-animation-duration-medium2, 300ms);animation-timing-function:var(--forge-animation-easing-standard,cubic-bezier(0.2,0,0,1));animation-direction:reverse}@keyframes uxbrlwb{from{transform:none}to{transform:translateX(100%)}}.forge-split-view-panel[orientation=vertical]{min-height:var(--forge-split-view-handle-width,8px);height:calc(var(--forge-split-view-panel-size,unset) + var(--forge-split-view-handle-width,8px));flex-direction:column}.forge-split-view-panel[orientation=vertical] .forge-split-view-panel__handle{height:var(--forge-split-view-handle-width,8px);cursor:var(--forge-split-view-panel-cursor)}.forge-split-view-panel[orientation=vertical].forge-split-view-panel--closing[resizable=end]{position:absolute;top:0;left:0;animation-name:uxbrlwu;animation-duration:var(--forge-animation-duration-medium2, 300ms);animation-timing-function:var(--forge-animation-easing-standard,cubic-bezier(0.2,0,0,1))}@keyframes uxbrlwu{from{transform:none}to{transform:translateY(-100%)}}.forge-split-view-panel[orientation=vertical].forge-split-view-panel--closing[resizable=start]{position:absolute;bottom:0;left:0;animation-name:uxbrlxq;animation-duration:var(--forge-animation-duration-medium2, 300ms);animation-timing-function:var(--forge-animation-easing-standard,cubic-bezier(0.2,0,0,1))}@keyframes uxbrlxq{from{transform:none}to{transform:translateY(100%)}}.forge-split-view-panel[orientation=vertical].forge-split-view-panel--opening[resizable=end]{position:absolute;top:0;left:0;animation-name:uxbrlyb;animation-duration:var(--forge-animation-duration-medium2, 300ms);animation-timing-function:var(--forge-animation-easing-standard,cubic-bezier(0.2,0,0,1));animation-direction:reverse}@keyframes uxbrlyb{from{transform:none}to{transform:translateY(-100%)}}.forge-split-view-panel[orientation=vertical].forge-split-view-panel--opening[resizable=start]{position:absolute;bottom:0;left:0;animation-name:uxbrlyn;animation-duration:var(--forge-animation-duration-medium2, 300ms);animation-timing-function:var(--forge-animation-easing-standard,cubic-bezier(0.2,0,0,1));animation-direction:reverse}@keyframes uxbrlyn{from{transform:none}to{transform:translateY(100%)}}:host{z-index:var(--forge-split-view-animating-layer)!important;display:block;position:relative;height:100%;width:100%;flex:0}:host([hidden]){display:none}:host(:not([resizable=start],[resizable=end])){flex:1}:host(:not([resizable=start],[resizable=end])) .forge-split-view-panel{width:100%;height:100%;min-width:0;min-height:0}:host(:not([resizable=start],[resizable=end])) .forge-split-view-panel__handle{display:none}forge-focus-indicator{--forge-focus-indicator-active-width:2px}",H2=class extends M{static get observedAttributes(){return[D.attributes.RESIZABLE,D.attributes.SIZE,D.attributes.MIN,D.attributes.MAX,D.attributes.ACCESSIBLE_LABEL,D.attributes.OPEN,D.attributes.DISABLED,D.attributes.ALLOW_CLOSE,D.attributes.AUTO_CLOSE,D.attributes.AUTO_CLOSE_THRESHOLD]}constructor(){super(),q.define([Qd,J5]),H(this,fx,xx),this._core=new vl(new hl(this))}connectedCallback(){this._core.initialize()}disconnectedCallback(){this._core.destroy()}attributeChangedCallback(t,e,a){switch(t){case D.attributes.RESIZABLE:this.resizable=a;break;case D.attributes.SIZE:this.size=a;break;case D.attributes.MIN:this.min=a;break;case D.attributes.MAX:a?this.max=a:this.max=void 0;break;case D.attributes.ACCESSIBLE_LABEL:this.accessibleLabel=a;break;case D.attributes.OPEN:this.open=p(a);break;case D.attributes.DISABLED:this.hasAttribute(t)?this.disabled=p(a):this.disabled=void 0;break;case D.attributes.ALLOW_CLOSE:this.hasAttribute(t)?this.allowClose=p(a):this.allowClose=void 0;break;case D.attributes.AUTO_CLOSE:this.hasAttribute(t)?this.autoClose=p(a):this.autoClose=void 0;break;case D.attributes.AUTO_CLOSE_THRESHOLD:a?this.autoCloseThreshold=W(a):this.autoCloseThreshold=void 0;break}}getContentSize(){return this._core.getContentSize()}getCollapsibleSize(){return this._core.getCollapsibleSize()}setContentSize(t){this._core.setContentSize(t)}update(t){this._core.update(t)}};s([v()],H2.prototype,"resizable",2),s([v()],H2.prototype,"size",2),s([v()],H2.prototype,"min",2),s([v()],H2.prototype,"max",2),s([v()],H2.prototype,"accessibleLabel",2),s([v()],H2.prototype,"open",2),s([v()],H2.prototype,"disabled",2),s([v()],H2.prototype,"allowClose",2),s([v()],H2.prototype,"autoClose",2),s([v()],H2.prototype,"autoCloseThreshold",2),H2=s([y({name:D.elementName,dependencies:[X,r1,Q]})],H2);function ub1(){x(H2)}var cl=class extends I{constructor(t){super(t),this._root=g(t,t2.selectors.ROOT)}registerSlotListener(t){this._root.addEventListener("slotchange",t)}registerDidOpenListener(t){this._root.addEventListener(D.events.DID_OPEN,t)}registerDidCloseListener(t){this._root.addEventListener(D.events.DID_CLOSE,t)}observeResize(t){E0.observe(this._root,t)}unobserveResize(){E0.unobserve(this._root)}getSlottedPanels(){let t=this._component.querySelectorAll(t2.selectors.PANEL);return Array.from(t).filter(o=>o.parentElement===this._component)}refitSlottedPanels(t){let e=t==="horizontal"?this._root.clientWidth:this._root.clientHeight,a=this.getSlottedPanels(),o=a.map(i=>{var c;let l=(c=i.shadowRoot)==null?void 0:c.querySelector(D.selectors.ROOT),h=t==="horizontal"?l==null?void 0:l.clientWidth:l==null?void 0:l.clientHeight;return h!=null?h:0}).reduce((i,l)=>i+l,0);if(o<=e)return;let n=o-e;a.slice().reverse().filter(i=>i.open).forEach(i=>{if(n<=0)return;let l=i.getContentSize(),h=i.getCollapsibleSize(),c=Math.min(n,h),d=l-c;i.setContentSize(d),n-=c})}};var pl=class{constructor(t){this._adapter=t;this._orientation="horizontal";this._disabled=!1;this._allowClose=!1;this._autoClose=!1;this._autoCloseThreshold=0;this._isInitialized=!1;this._slotListener=e=>this._onSlotChange(e),this._didOpenListener=()=>this._onDidOpen(),this._didCloseListener=()=>this._onDidClose(),this._resizeObserverCallback=Sr(e=>this._onResize(e),t2.numbers.RESIZE_THROTTLE_THRESHOLD)}initialize(){this._adapter.registerSlotListener(this._slotListener),this._adapter.registerDidOpenListener(this._didOpenListener),this._adapter.registerDidCloseListener(this._didCloseListener),this._adapter.observeResize(this._resizeObserverCallback),this._applyOrientation(),this._isInitialized=!0}destroy(){this._adapter.unobserveResize()}_onSlotChange(t){this._layoutSlottedPanels(),this.update({accessibility:!0,cursor:!0,orientation:this._orientation})}_onDidOpen(){this._adapter.refitSlottedPanels(this._orientation),this.update({accessibility:!0,cursor:!0,size:!0})}_onDidClose(){this._adapter.refitSlottedPanels(this._orientation),this.update({accessibility:!0,cursor:!0,size:!0})}_onResize(t){this.update({accessibility:!0,cursor:!0,size:!0})}_layoutSlottedPanels(){let t=this._adapter.getSlottedPanels();t.length<2||t.some(e=>e.resizable!=="off")||t.slice(1).forEach(e=>e.resizable="start")}get orientation(){return this._orientation}set orientation(t){this._orientation!==t&&(this._orientation=t,this._applyOrientation())}_applyOrientation(){this._adapter.setHostAttribute(t2.attributes.ORIENTATION,this._orientation),this.update({orientation:this._orientation}),this._isInitialized&&this._adapter.refitSlottedPanels(this._orientation),this.update({accessibility:!0,cursor:!0})}get disabled(){return this._disabled}set disabled(t){this._disabled!==t&&(this._disabled=t,this._applyDisabled())}_applyDisabled(){this._adapter.toggleHostAttribute(t2.attributes.DISABLED,this._disabled),this.update({properties:{disabled:this._disabled}})}get allowClose(){return this._allowClose}set allowClose(t){this._allowClose!==t&&(this._allowClose=t,this._applyAllowClose())}_applyAllowClose(){this._adapter.toggleHostAttribute(t2.attributes.ALLOW_CLOSE,this._allowClose),this.update({properties:{allowClose:this._allowClose}})}get autoClose(){return this._autoClose}set autoClose(t){this._autoClose!==t&&(this._autoClose=t,this._applyAutoClose())}_applyAutoClose(){this._adapter.toggleHostAttribute(t2.attributes.AUTO_CLOSE,this._autoClose),this.update({properties:{autoClose:this._autoClose}})}get autoCloseThreshold(){return this._autoCloseThreshold}set autoCloseThreshold(t){this._autoCloseThreshold!==t&&(this._autoCloseThreshold=t,this._applyAutoCloseThreshold())}_applyAutoCloseThreshold(){this._adapter.setHostAttribute(t2.attributes.AUTO_CLOSE_THRESHOLD,this._autoCloseThreshold.toString()),this.update({properties:{autoCloseThreshold:this._autoCloseThreshold}})}layerSlottedPanels(t){let e=this._adapter.getSlottedPanels(),a=t.resizable==="start"?1:-1,o=t.resizable==="start"?1:3;e.forEach(n=>{(n===t||o===2)&&(o+=a),n.style.setProperty(t2.customCssProperties.ANIMATING_LAYER,o.toString())})}unlayerSlottedPanels(){this._adapter.getSlottedPanels().forEach(e=>{e.style.removeProperty(t2.customCssProperties.ANIMATING_LAYER)})}update(t){this._adapter.getSlottedPanels().forEach(a=>{a.update(t)})}refitSlottedPanels(){this._adapter.refitSlottedPanels(this._orientation)}};var bx='<template><div class="forge-split-view" id="root" part="root"><slot></slot></div></template>',yx=".forge-split-view{display:flex;width:100%;height:100%}:host{--forge-split-view-handle-width:8px;display:block;height:100%;width:100%;overflow:hidden}:host([hidden]){display:none}:host([orientation=horizontal]) .forge-split-view{flex-direction:row}:host([orientation=vertical]) .forge-split-view{flex-direction:column}",Ce=class extends M{static get observedAttributes(){return[t2.attributes.ORIENTATION,t2.attributes.DISABLED,t2.attributes.ALLOW_CLOSE,t2.attributes.AUTO_CLOSE,t2.attributes.AUTO_CLOSE_THRESHOLD]}constructor(){super(),H(this,bx,yx),this._core=new pl(new cl(this))}connectedCallback(){this._core.initialize()}disconnectedCallback(){this._core.destroy()}attributeChangedCallback(t,e,a){switch(t){case t2.attributes.ORIENTATION:this.orientation=a;break;case t2.attributes.DISABLED:this.disabled=p(a);break;case t2.attributes.ALLOW_CLOSE:this.allowClose=p(a);break;case t2.attributes.AUTO_CLOSE:this.autoClose=p(a);break;case t2.attributes.AUTO_CLOSE_THRESHOLD:this.autoCloseThreshold=W(a);break}}layerSlottedPanels(t){this._core.layerSlottedPanels(t)}unlayerSlottedPanels(){this._core.unlayerSlottedPanels()}update(t){this._core.update(t)}refit(){this._core.refitSlottedPanels()}};s([v()],Ce.prototype,"orientation",2),s([v()],Ce.prototype,"disabled",2),s([v()],Ce.prototype,"allowClose",2),s([v()],Ce.prototype,"autoClose",2),s([v()],Ce.prototype,"autoCloseThreshold",2),Ce=s([y({name:t2.elementName,dependencies:[H2]})],Ce);function p6(){x(Ce)}var Mx=`${b}stack`,d6={DEFAULT:"forge-stack"},Hx={ROOT:`.${d6.DEFAULT}`},m6={INLINE:"inline",WRAP:"wrap",STRETCH:"stretch",GAP:"gap",ALIGNMENT:"alignment",JUSTIFY:"justify"},Lx=w({},m6),Ix={DEFAULT_GAP:"16"},D2={elementName:Mx,classes:d6,observedAttributes:m6,attributes:Lx,selectors:Hx,strings:Ix};var dl=class extends I{constructor(t){super(t),this._rootElement=g(t,D2.selectors.ROOT)}setGap(t){let e=/^\d+$/.test(t)?`${t}px`:t;this._rootElement.style.gap=`var(--forge-stack-gap, ${e})`}};var ml=class{constructor(t){this._adapter=t;this._inline=!1;this._wrap=!1;this._stretch=!1;this._gap=D2.strings.DEFAULT_GAP;this._alignment="start";this._justify="start"}get inline(){return this._inline}set inline(t){t=!!t,this._inline!==t&&(this._inline=t,this._adapter.toggleHostAttribute(D2.attributes.INLINE,this._inline))}get wrap(){return this._wrap}set wrap(t){t=!!t,this._wrap!==t&&(this._wrap=t,this._adapter.toggleHostAttribute(D2.attributes.WRAP,this._wrap))}get stretch(){return this._stretch}set stretch(t){t=!!t,this._stretch!==t&&(this._stretch=t,this._adapter.toggleHostAttribute(D2.attributes.STRETCH,this._stretch))}get gap(){return this._gap}set gap(t){this._gap!==t&&(this._gap=t,this._adapter.setGap(this._gap),this._adapter.setHostAttribute(D2.attributes.GAP,this._gap))}get alignment(){return this._alignment}set alignment(t){this._alignment!==t&&(this._alignment=t,this._adapter.setHostAttribute(D2.attributes.ALIGNMENT,this._alignment))}get justify(){return this._justify}set justify(t){this._justify!==t&&(this._justify=t,this._adapter.setHostAttribute(D2.attributes.JUSTIFY,this._justify))}};var Vx='<template><div class="forge-stack" part="root"><slot></slot></div></template>',Ex=".forge-stack{display:flex;flex-direction:column;align-items:var(--_stack-alignment);justify-content:var(--_stack-justify);gap:var(--_stack-gap);height:var(--_stack-height);width:100%;--_stack-gap:var(--forge-stack-gap, var(--forge-spacing-medium, 16px));--_stack-height:var(--forge-stack-height);--_stack-stretch:var(--forge-stack-stretch, initial);--_stack-alignment:var(--forge-stack-alignment, normal);--_stack-justify:var(--forge-stack-justify, normal);--_stack-wrap:var(--forge-stack-wrap, wrap)}.forge-stack ::slotted(*){flex:var(--_stack-stretch)}:host([inline]) .forge-stack{flex-direction:row}:host([inline][wrap]) .forge-stack{flex-wrap:wrap}:host(:not([inline])) .forge-stack{--_stack-height:var(--forge-stack-height, 100%)}:host([stretch]) ::slotted(*){--_stack-stretch:var(--forge-stack-stretch, 1)}:host([alignment=start]) .forge-stack{--_stack-alignment:var(--forge-stack-alignment, start)}:host([alignment=center]) .forge-stack{--_stack-alignment:var(--forge-stack-alignment, center)}:host([alignment=end]) .forge-stack{--_stack-alignment:var(--forge-stack-alignment, end)}:host([justify=start]) .forge-stack{--_stack-justify:var(--forge-stack-justify, start)}:host([justify=center]) .forge-stack{--_stack-justify:var(--forge-stack-justify, center)}:host([justify=end]) .forge-stack{--_stack-justify:var(--forge-stack-justify, end)}",de=class extends M{static get observedAttributes(){return Object.values(D2.observedAttributes)}constructor(){super(),H(this,Vx,Ex),this._core=new ml(new dl(this))}attributeChangedCallback(t,e,a){switch(t){case D2.observedAttributes.INLINE:this.inline=p(a);break;case D2.observedAttributes.WRAP:this.wrap=p(a);break;case D2.observedAttributes.STRETCH:this.stretch=p(a);break;case D2.observedAttributes.GAP:this.gap=a;break;case D2.observedAttributes.ALIGNMENT:this.alignment=a;break;case D2.observedAttributes.JUSTIFY:this.justify=a;break}}};s([v()],de.prototype,"inline",2),s([v()],de.prototype,"wrap",2),s([v()],de.prototype,"stretch",2),s([v()],de.prototype,"gap",2),s([v()],de.prototype,"alignment",2),s([v()],de.prototype,"justify",2),de=s([y({name:D2.elementName})],de);function g6(){x(de)}var gl=`${b}step`,sa={STEP:"forge-step",STEP_CONTAINER:"container",ERROR:"error",SELECTED:"selected",COMPLETED:"completed",EDITABLE:"editable",ALTERNATIVE:"alternative",ICON_CONTENT:"icon-content",ICON:"icon",LABEL_CONTAINER:"label-container",LABEL:"label",OPTIONAL_LABEL:"optional-label",INDEX:"index",CLUSTERED:"clustered",DISABLED:"disabled",VERTICAL:"vertical",EXPANDED:"expanded",EXPANDABLE:"expandable",EXPANSION_PANEL:"expansion-panel",EXPANSION_ICON:"expanded-icon",EXPANSION_ICON_EXPANDED:"expanded-icon--expanded",EXPANSION_CONTENT:"expansion-content"},Cx={SELECTED:"selected",INDEX:"index",EDITABLE:"editable",COMPLETED:"completed",ERROR:"error",ALTERNATIVE:"alternative",FIRST:"first",LAST:"last",ARIA_SELECTED:"aria-selected",CLUSTERED:"clustered",DISABLED:"disabled",VERTICAL:"vertical",EXPANDED:"expanded",EXPANDABLE:"expandable",IGNORE_USER_EXPANSION:"ignore-user-expansion"},zx={STEP:`.${sa.STEP}`,STEP_CONTAINER:`.${sa.STEP_CONTAINER}`,INDEX:`.${sa.INDEX}`,ICON:`.${sa.ICON}`,ICON_CONTENT:`.${sa.ICON_CONTENT}`,EXPANSION_SLOT:'slot[name="expansion-content"]',EXPANSION_PANEL:`.${sa.EXPANSION_PANEL}`,EXPANSION_ICON:`.${sa.EXPANSION_ICON}`},Ax={ARROW_LEFT_KEY:"ArrowLeft",ARROW_RIGHT_KEY:"ArrowRight",ARROW_UP_KEY:"ArrowUp",ARROW_DOWN_KEY:"ArrowDown",END_KEY:"End",ENTER_KEY:"Enter",HOME_KEY:"Home",SPACE_KEY:"Space",EXPANSION_CONTENT_SLOT_NAME:"expansion-content"},Bx={SELECT:`${gl}-select`,EXPANDED_CONTENT_FOCUSIN:`${gl}-expanded-content-focusin`,EXPANDED_CONTENT_FOCUSOUT:`${gl}-expanded-content-focusout`},S={elementName:gl,classes:sa,selectors:zx,attributes:Cx,events:Bx,strings:Ax};var wl=class extends I{constructor(t){super(t),this._stepContainer=g(t,S.selectors.STEP),this._container=g(t,S.selectors.STEP_CONTAINER),this._stateLayerElement=g(this._component,M1.elementName)}get component(){return this._component}initialize(){this._component.hasAttribute("role")||this._component.setAttribute("role","tab")}setIndex(t){this._stepContainer.querySelector(S.selectors.INDEX).innerHTML=(t+1||"").toString()}toggleRootClass(t,e){_2(this._stepContainer,e,t)}toggleDisabled(t){_2(this._stepContainer,t,S.classes.DISABLED),K(this._component,t,"aria-disabled"),this._stateLayerElement.disabled=t}toggleIcon(t,e){let a=this._stepContainer.querySelector(S.selectors.INDEX),o=this._stepContainer.querySelector(S.selectors.ICON);if(!e){a.style.display="inherit",o.style.display="none";return}a.style.display="none",o.style.display="inherit",o.name=t}slotHasContent(){return this._expansionSlot.assignedElements({flatten:!0}).length>0}setClickListener(t){this._component.addEventListener("click",t)}removeClickListener(t){this._component.removeEventListener("click",t)}setSlotListener(t){this._expansionSlot.addEventListener("slotchange",t)}removeSlotListener(t){this._expansionSlot&&this._expansionSlot.removeEventListener("slotchange",t)}setExpanded(t){this._expansionPanel&&(this._expansionPanel.open=t,K(this._expansionPanel,!t,"tabindex","-1")),_2(this._stepContainer,t,S.classes.EXPANDED)}setExpansionPanelAnimations(t){this._expansionPanel.animationType=t?"default":"none"}addExpansionPanel(){this._container.querySelector(S.selectors.EXPANSION_PANEL)||(this._expansionPanel=this._container.appendChild(this._createExpansionPanel()),this._expansionSlot=this._expansionPanel.querySelector(S.selectors.EXPANSION_SLOT))}removeExpansionPanel(){let t=this._container.querySelector(S.selectors.EXPANSION_PANEL);t&&this._container.removeChild(t)}addExpansionIcon(){this._stepContainer.querySelector(S.selectors.EXPANSION_ICON)||this._stepContainer.appendChild(this._createExpansionIcon())}removeExpansionIcon(){let t=this._stepContainer.querySelector(S.selectors.EXPANSION_ICON);t&&this._stepContainer.removeChild(t)}addExpansionPanelListener(t,e){this._expansionPanel.addEventListener(t,e)}removeExpansionPanelListener(t,e){this._expansionPanel&&this._expansionPanel.removeEventListener(t,e)}isExpandedContentInFocus(t){return this._expansionSlot.assignedElements().some(e=>e.contains(t||document.activeElement))}_createExpansionPanel(){let t=document.createElement("forge-expansion-panel");t.animationType="none",t.setAttribute("part","expansion-panel"),y1(S.classes.EXPANSION_PANEL,t);let e=document.createElement("slot");return e.setAttribute("name","expansion-content"),y1(S.classes.EXPANSION_CONTENT,e),t.appendChild(e),t}_createExpansionIcon(){let t=document.createElement("forge-icon");return y1(S.classes.EXPANSION_ICON,t),t.name="keyboard_arrow_down",t.setAttribute("part","expanded-icon"),t}};var ul=class{constructor(t){this._adapter=t;this._clickListener=()=>this._onClickListener(),this._expansionContentSlotChangeListener=e=>this._onExpansionContentSlotChange(e),this._expansionContentFocusInListener=e=>this._onExpansionContentFocusIn(e),this._expansionContentFocusOutListener=e=>this._onExpansionContentFocusOut(e)}initialize(){this._adapter.initialize(),this._applySelected(),this._toggleIcon(),this._vertical&&(this._adapter.addExpansionPanel(),this._adapter.addExpansionIcon(),this._adapter.setClickListener(this._clickListener),this._adapter.setSlotListener(this._expansionContentSlotChangeListener),this._adapter.addExpansionPanelListener("focusin",this._expansionContentFocusInListener),this._adapter.addExpansionPanelListener("focusout",this._expansionContentFocusOutListener)),this._initialized=!0}destroy(){this._adapter.removeClickListener(this._clickListener),this._adapter.removeSlotListener(this._expansionContentSlotChangeListener),this._adapter.removeExpansionPanelListener("focusin",this._onExpansionContentFocusIn),this._adapter.removeExpansionPanelListener("focusout",this._onExpansionContentFocusOut)}get index(){return this._index}set index(t){this._index!==t&&(this._index=t,this._applyIndex(),this._adapter.setHostAttribute(S.attributes.INDEX,t.toString()))}get editable(){return this._editable}set editable(t){this._editable!==t&&(this._editable=t,this._adapter.toggleHostAttribute(S.attributes.EDITABLE,t),this._applyEditable())}get completed(){return this._completed}set completed(t){this._completed!==t&&(this._completed=t,this._adapter.toggleHostAttribute(S.attributes.COMPLETED,t),this._applyCompleted())}get error(){return this._error}set error(t){this._error!==t&&(this._error=t,this._adapter.toggleHostAttribute(S.attributes.ERROR,t),this._applyError())}get selected(){return this._selected}set selected(t){this._selected!==t&&(this._selected=t,this._adapter.toggleHostAttribute(S.attributes.SELECTED,t),this._applySelected())}get alternative(){return this._alternative}set alternative(t){this._alternative!==t&&(this._alternative=t,this._adapter.toggleHostAttribute(S.attributes.ALTERNATIVE,t),this._applyAlternative())}get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._applyDisabled()}get vertical(){return this._vertical}set vertical(t){t!==this._vertical&&(this._vertical=t,this._applyVertical(),this._initialized&&(this._vertical?(this._adapter.addExpansionPanel(),this._adapter.addExpansionIcon(),this._adapter.setClickListener(this._clickListener),this._adapter.setSlotListener(this._expansionContentSlotChangeListener)):(this._adapter.removeClickListener(this._clickListener),this._adapter.removeSlotListener(this._expansionContentSlotChangeListener),this._adapter.removeExpansionPanel(),this._adapter.removeExpansionIcon())))}get expanded(){return this._expanded}set expanded(t){t!==this._expanded&&(this._expanded=t,this._adapter.toggleHostAttribute(S.attributes.EXPANDED,this._expanded),this._initialized&&this._applyExpanded())}get ignoreUserExpansion(){return this._ignoreUserExpansion}set ignoreUserExpansion(t){t!==this._ignoreUserExpansion&&(this._ignoreUserExpansion=t)}_applyExpanded(){this._adapter.setExpanded(this._expanded)}_applyVertical(){this._adapter.toggleHostAttribute(S.attributes.VERTICAL,this._vertical),this._adapter.toggleRootClass(S.classes.VERTICAL,this._vertical)}_applyAlternative(){this._adapter.toggleRootClass(S.classes.ALTERNATIVE,this._alternative)}_applySelected(){this._adapter.toggleRootClass(S.classes.SELECTED,this._selected),this._adapter.setHostAttribute(S.attributes.ARIA_SELECTED,(this._selected||!1).toString()),this._adapter.hostElement.tabIndex=this._selected?0:-1,this._toggleIcon()}_applyIndex(){this._adapter.setIndex(this._index)}_applyEditable(){this._adapter.toggleRootClass(S.classes.EDITABLE,this._editable),this._toggleIcon()}_applyCompleted(){this._adapter.toggleRootClass(S.classes.COMPLETED,this._completed),this._toggleIcon()}_applyError(){this._adapter.toggleRootClass(S.classes.ERROR,this._error),this._toggleIcon()}_applyDisabled(){this._adapter.toggleDisabled(this._disabled),this._toggleIcon()}_getIconState(){return this._error?"warning":this._completed?this._editable?"mode_edit":"check":this._editable&&this._selected&&!this._disabled?"mode_edit":this._disabled?"block":""}_toggleIcon(){this._iconState=this._getIconState(),this._adapter.toggleIcon(this._iconState,this._iconState!=="")}_toggleExpanded(){this._adapter.slotHasContent()&&(this._expanded=!this._expanded,this._applyExpanded(),this._adapter.toggleHostAttribute(S.attributes.EXPANDED,this._expanded))}_onClickListener(){this._vertical&&!this._ignoreUserExpansion&&this._toggleExpanded()}_onExpansionContentSlotChange(t){let e=this._adapter.slotHasContent();e?(this._adapter.setHostAttribute(S.attributes.EXPANDABLE),this._applyExpanded(),this._adapter.setExpansionPanelAnimations(!0)):(this._adapter.removeHostAttribute(S.attributes.EXPANDABLE),this._adapter.setExpansionPanelAnimations(!1)),this._adapter.toggleRootClass(S.classes.EXPANDABLE,e)}_onExpansionContentFocusIn(t){!this._expandedContentFocused&&this._adapter.isExpandedContentInFocus(t.target)&&(this._adapter.emitHostEvent(S.events.EXPANDED_CONTENT_FOCUSIN,this._adapter.component),this._expandedContentFocused=!0)}_onExpansionContentFocusOut(t){t.relatedTarget&&!this._adapter.isExpandedContentInFocus(t.relatedTarget)&&(this._adapter.emitHostEvent(S.events.EXPANDED_CONTENT_FOCUSOUT,this._adapter.component),this._expandedContentFocused=!1)}};var Tx='<template><div class="container" part="root"><div class="forge-step" part="step"><div class="before" part="before"></div><div class="icon-container" part="icon-container"><div class="icon-content" part="icon-content"><span class="index" part="index"></span><forge-icon class="icon" part="icon"></forge-icon></div></div><div class="text-container" part="text-container"><div class="title" part="title-container"><slot></slot></div><div class="subtitle" part="subtitle-container"><slot name="optional"></slot></div></div><div class="after" part="after"></div><forge-state-layer exportparts="surface:state-layer" target=":host"></forge-state-layer><forge-focus-indicator part="focus-indicator" target=":host" inward></forge-focus-indicator></div></div></template>',Sx=':host{--_step-primary-color:var(--forge-step-primary-color, var(--forge-theme-primary, #3f51b5));--_step-text-color:var(--forge-step-text-color, var(--forge-theme-on-primary, #ffffff));--_step-border-radius:var(--forge-step-border-radius, calc(var(--forge-shape-extra-large, 16px) * var(--forge-shape-factor, 1)));--_step-border-radius-vertical:var(--forge-step-border-radius-vertical, calc(var(--forge-shape-medium, 4px) * var(--forge-shape-factor, 1)));--_step-disabled-text-color:var(--forge-step-disabled-text-color, var(--forge-theme-text-low, rgba(0, 0, 0, 0.38)));--_step-disabled-color:var(--forge-step-disabled-color, var(--forge-theme-surface-container-minimum, #f5f5f5));--_step-icon-fill:var(--forge-step-icon-fill, unset);--_step-icon-fill-active:var(--forge-step-icon-fill-active, var(--_step-primary-color));--_step-icon-text-color:var(--forge-step-icon-text-color, var(--forge-theme-primary, #3f51b5));--_step-icon-text-color-active:var(--forge-step-icon-text-color-active, var(--forge-theme-on-primary, #ffffff));--_step-icon-content-size:var(--forge-step-icon-content-size, 24px);--_step-icon-size:var(--forge-step-icon-size, calc(var(--forge-typography-font-size, 1rem) * 0.875));--_step-icon-transition-duration:var(--forge-step-icon-transition-duration, var(--forge-animation-duration-medium4, 400ms));--_step-icon-transition-easing:var(--forge-step-icon-transition-easing, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1)));--_step-line-color:var(--forge-step-line-color, var(--forge-theme-outline, #e0e0e0));--_step-line-min-width:var(--forge-step-line-min-width, 10px);--_step-line-min-width-clustered:var(--forge-step-line-min-width-clustered, 25px);--_step-label-color:var(--forge-step-label-color, var(--forge-theme-text-high, rgba(0, 0, 0, 0.87)));--_step-sub-label-color:var(--forge-step-sub-label-color, var(--forge-theme-text-medium, rgba(0, 0, 0, 0.6)));--_step-error-color:var(--forge-step-error-color, var(--forge-theme-error, #b00020));--_step-error-text-color:var(--forge-step-error-text-color, var(--forge-theme-on-error, #ffffff));--_step-expansion-panel-border-left-width:var(--forge-step-expansion-panel-border-left-width, 1px);--_step-expansion-panel-margin-bottom:var(--forge-step-expansion-panel-margin-bottom, 4px);--_step-expansion-panel-margin-left:var(--forge-step-expansion-panel-margin-left, 60px);--_step-expansion-panel-margin-top:var(--forge-step-expansion-panel-margin-top, 4px);--_step-expansion-panel-icon-color:var(--forge-step-expansion-panel-icon-color, var(--forge-theme-text-medium, rgba(0, 0, 0, 0.6)))}:host(:focus){outline:0}:host([error]){--forge-state-layer-color:var(--_step-error-color)}:host(:first-child[alternative])::after{align-self:flex-start;top:22px;margin:0}:host(:last-child[alternative])::before{align-self:flex-start;top:22px;margin:0}:host(:not(:first-child):not(:last-child)[alternative])::after,:host(:not(:first-child):not(:last-child)[alternative])::before{align-self:flex-start;top:22px;min-width:7px;margin:0}:host(:not(:last-child)[alternative]) .after{align-self:flex-start;top:22px;position:absolute;width:calc(50% - 18px);left:calc(50% + 18px);height:0;right:0}:host(:not(:first-child)[alternative]) .before{align-self:flex-start;top:22px;position:absolute;left:0;width:calc(50% - 18px);height:0}:host(:not(:first-child):not(:last-child)):host(:not([vertical]))::after,:host(:not(:first-child):not(:last-child)):host(:not([vertical]))::before{border-color:var(--_step-line-color);min-width:var(--_step-line-min-width);content:"";position:relative;height:0;flex:1;flex-basis:0.000000001px;border-top-style:solid;border-top-width:1px;border-radius:1px 0 0 1px;margin:0 -10px}:host(:last-child):host(:not([vertical]))::before{border-color:var(--_step-line-color);min-width:var(--_step-line-min-width);content:"";position:relative;height:0;flex:1;flex-basis:0.000000001px;border-top-style:solid;border-top-width:1px;border-radius:1px 0 0 1px;margin:0 -10px 0 0}:host(:is(:first-child)):host(:not([vertical]))::after{border-color:var(--_step-line-color);min-width:var(--_step-line-min-width);content:"";position:relative;height:0;flex:1;flex-basis:0.000000001px;border-top-style:solid;border-top-width:1px;border-radius:1px 0 0 1px;margin:0 -10px}:host([vertical]){flex-direction:column}:host([vertical])::after{content:none}:host([vertical])::before{content:none}:host([vertical]) .forge-step{--_step-border-radius:var(--_step-border-radius-vertical);width:100%;min-height:52px}:host([vertical]) .forge-step .text-container{white-space:normal}:host([vertical]) .icon-container .icon-content{margin:0 16px 0 0}:host([vertical]) .expansion-panel{display:none}:host([vertical]) .expanded-icon{color:var(--_step-expansion-panel-icon-color);display:none;margin-left:auto}:host([vertical][expandable]) .expansion-panel{display:block}:host([ignore-user-expansion]) .forge-step .expanded-icon{display:none}forge-expansion-panel::part(root){border-color:var(--_step-line-color);margin-left:var(--_step-expansion-panel-margin-left);margin-top:var(--_step-expansion-panel-margin-top);margin-bottom:var(--_step-expansion-panel-margin-bottom);border-left-width:var(--_step-expansion-panel-border-left-width);border-left-style:solid}forge-focus-indicator{--forge-focus-indicator-color:var(--_step-primary-color);--forge-focus-indicator-shape:16px}.container{display:contents}.forge-step{-webkit-tap-highlight-color:transparent;padding:12px 16px;outline:0;background:0 0;border:none;border-radius:var(--_step-border-radius);position:relative;display:flex;overflow:hidden;align-items:center;box-sizing:border-box;cursor:pointer}.forge-step:focus{outline:0}.forge-step::-moz-focus-inner,.forge-step::-moz-focus-outer{padding:0;border:0}.forge-step.error forge-focus-indicator{--forge-focus-indicator-color:var(--_step-error-color)}.forge-step.vertical forge-focus-indicator{--forge-focus-indicator-shape:4px}.forge-step.selected:not(.disabled){--forge-state-layer-color:var(--_step-primary-color)}.forge-step.selected:not(.disabled)::before{background-color:var(--_step-primary-color);content:"";position:absolute;inset:0;opacity:.08;height:100%;width:100%}.forge-step.selected:not(.disabled).error{--_step-primary-color:var(--_step-error-color)}.forge-step .title{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-body1-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-body1-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-font-size-scale, .875)));font-weight:var(--forge-typography-body1-font-weight,400);line-height:var(--forge-typography-body1-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-line-height-scale, 1.125)));letter-spacing:var(--forge-typography-body1-letter-spacing, .0357142857em);text-transform:var(--forge-typography-body1-text-transform,inherit);text-decoration:var(--forge-typography-body1-text-decoration,inherit);color:var(--_step-label-color);text-align:left;overflow:hidden;text-overflow:ellipsis}.forge-step .subtitle{text-align:left;overflow:hidden;text-overflow:ellipsis}.forge-step .subtitle ::slotted(*){color:var(--_step-sub-label-color);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-label1-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-label1-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-label-font-size-scale, .75)));font-weight:var(--forge-typography-label1-font-weight,400);line-height:var(--forge-typography-label1-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-label-line-height-scale, 1.25)));letter-spacing:var(--forge-typography-label1-letter-spacing, .0357142857em);text-transform:var(--forge-typography-label1-text-transform,inherit);text-decoration:var(--forge-typography-label1-text-decoration,inherit)}.forge-step .icon-container .icon-content{color:var(--_step-icon-text-color);background-color:var(--_step-icon-fill);height:var(--_step-icon-content-size);width:var(--_step-icon-content-size);border-style:solid;border-width:2px;border-color:transparent;border-radius:50%;display:flex;align-items:center;justify-content:center;transition:background-color var(--_step-icon-transition-duration) var(--_step-icon-transition-easing);margin:0 8px 0 0;flex:none}.forge-step .icon-container .icon-content forge-icon{font-size:var(--_step-icon-size)}.forge-step.disabled{color:var(--_step-disabled-text-color);cursor:not-allowed}.forge-step.disabled.forge-step .icon-container .icon-content{--_step-icon-fill:var(--_step-disabled-color);--_step-icon-text-color:var(--_step-disabled-text-color)}.forge-step.disabled .text-container .title{color:var(--_step-disabled-text-color)}.forge-step.disabled .text-container .subtitle ::slotted(*){color:var(--_step-disabled-text-color)}.forge-step.alternative{flex-direction:column}.forge-step.alternative .icon-container .icon-content{margin:0}.forge-step.alternative .text-container{margin-top:8px;place-items:center}.forge-step:not(.selected):not(.disabled).editable:not(.completed):not(.error) .icon-content,.forge-step:not(.selected):not(.disabled):not(.editable):not(.completed):not(.error) .icon-content{border-color:var(--_step-primary-color)}.forge-step:not(.selected):not(.disabled).editable:not(.completed):not(.error) .icon-content .index,.forge-step:not(.selected):not(.disabled):not(.editable):not(.completed):not(.error) .icon-content .index{color:var(--_step-primary-color)}.forge-step.selected.disabled .icon-content{--_step-icon-fill:var(--_step-disabled-color);--_step-icon-text-color:var(--_step-disabled-text-color)}.forge-step.selected:not(.disabled) .icon-container .icon-content{--_step-icon-fill:var(--_step-icon-fill-active);--_step-icon-text-color:var(--_step-icon-text-color-active)}.forge-step.selected:not(.disabled) .title{color:var(--_step-primary-color);font-weight:500}.forge-step.selected:not(.disabled) .subtitle ::slotted(*){color:var(--_step-primary-color);font-weight:500}.forge-step.error:not(.disabled) .title{color:var(--_step-error-color)}.forge-step.error:not(.disabled) .subtitle ::slotted(*){color:var(--_step-error-color)}.forge-step.error:not(.disabled) .icon-container .icon-content{--_step-icon-fill:var(--_step-error-color);--_step-icon-text-color:var(--_step-error-text-color)}.forge-step.completed:not(.disabled):not(.error):not(.editable) .icon-content{--_step-icon-fill:var(--_step-icon-fill-active);--_step-icon-text-color:var(--_step-icon-text-color-active)}.forge-step.completed:not(.disabled):not(.error).editable .icon-content{--_step-icon-fill:var(--_step-icon-fill-active);--_step-icon-text-color:var(--_step-icon-text-color-active)}.forge-step.expandable .expanded-icon{display:inline-block;transition:transform .3s ease-in-out}.forge-step.expandable.expanded .expanded-icon{transform:rotate(180deg)}.forge-step.expandable .icon-container .icon-content{margin:0 16px 0 0}.forge-step .text-container{display:flex;flex-direction:column;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host(:not(:last-child)[clustered])::after{--_step-line-min-width:var(--_step-line-min-width-clustered)}:host(:last-child[clustered])::before{--_step-line-min-width:var(--_step-line-min-width-clustered)}:host(:not(:first-child):not(:last-child)[clustered])::after,:host(:not(:first-child):not(:last-child)[clustered])::before{--_step-line-min-width:var(--_step-line-min-width-clustered)}',Y2=class extends M{static get observedAttributes(){return[S.attributes.COMPLETED,S.attributes.EDITABLE,S.attributes.ERROR,S.attributes.INDEX,S.attributes.SELECTED,S.attributes.ALTERNATIVE,S.attributes.DISABLED,S.attributes.VERTICAL,S.attributes.EXPANDED,S.attributes.IGNORE_USER_EXPANSION]}constructor(){super(),q.define([n3,j5,v3,$5,i0]),H(this,Tx,Sx),this._core=new ul(new wl(this))}connectedCallback(){this._core.initialize()}disconnectedCallback(){this._core.destroy()}attributeChangedCallback(t,e,a){switch(t){case S.attributes.INDEX:this.index=W(a);break;case S.attributes.COMPLETED:this.completed=p(a);break;case S.attributes.EDITABLE:this.editable=p(a);break;case S.attributes.ERROR:this.error=p(a);break;case S.attributes.SELECTED:this.selected=p(a);break;case S.attributes.ALTERNATIVE:this.alternative=p(a);break;case S.attributes.DISABLED:this.disabled=p(a);break;case S.attributes.VERTICAL:this.vertical=p(a);break;case S.attributes.EXPANDED:this.expanded=p(a);break;case S.attributes.IGNORE_USER_EXPANSION:this.ignoreUserExpansion=p(a);break}}};s([v()],Y2.prototype,"alternative",2),s([v()],Y2.prototype,"index",2),s([v()],Y2.prototype,"editable",2),s([v()],Y2.prototype,"completed",2),s([v()],Y2.prototype,"error",2),s([v()],Y2.prototype,"selected",2),s([v()],Y2.prototype,"disabled",2),s([v()],Y2.prototype,"vertical",2),s([v()],Y2.prototype,"expanded",2),s([v()],Y2.prototype,"ignoreUserExpansion",2),Y2=s([y({name:S.elementName,dependencies:[X,_t,r1,Q]})],Y2);function w6(){x(Y2)}var kx=`${b}stepper`,u6={STEPPER:"forge-stepper",LINEAR:"linear",ALTERNATIVE:"alternative",CLUSTERED:"clustered",FIXED:"fixed",ALIGN_LEFT:"align-left",ALIGN_CENTER:"align-center",ALIGN_RIGHT:"align-right",VERTICAL:"vertical",FOCUSED:"focused"},Ox={STEPPER:`.${u6.STEPPER}`},Dx={SELECTED_INDEX:"selected-index",LINEAR:"linear",ALTERNATIVE:"alternative",LAYOUT_MODE:"layout-mode",LAYOUT_ALIGN:"layout-align",DISABLED:"disabled",VERTICAL:"vertical"},dt={ARROW_LEFT_KEY:"ArrowLeft",ARROW_RIGHT_KEY:"ArrowRight",ARROW_UP_KEY:"ArrowUp",ARROW_DOWN_KEY:"ArrowDown",END_KEY:"End",ENTER_KEY:"Enter",HOME_KEY:"Home",SPACE_KEY:"Space",TAB_KEY:"Tab"},ka={ARROW_LEFT_KEYCODE:37,ARROW_RIGHT_KEYCODE:39,END_KEYCODE:35,HOME_KEYCODE:36,ENTER_KEYCODE:13,SPACE_KEYCODE:32},Px=[dt.ARROW_LEFT_KEY,dt.ARROW_RIGHT_KEY,dt.ARROW_DOWN_KEY,dt.ARROW_UP_KEY,dt.END_KEY,dt.HOME_KEY,dt.ENTER_KEY,dt.SPACE_KEY,dt.TAB_KEY],Nx={[ka.ARROW_LEFT_KEYCODE]:dt.ARROW_LEFT_KEY,[ka.ARROW_RIGHT_KEYCODE]:dt.ARROW_RIGHT_KEY,[ka.END_KEYCODE]:dt.END_KEY,[ka.HOME_KEYCODE]:dt.HOME_KEY,[ka.ENTER_KEYCODE]:dt.ENTER_KEY,[ka.SPACE_KEYCODE]:dt.SPACE_KEY},R={elementName:kx,classes:u6,selectors:Ox,attributes:Dx,numbers:ka,strings:dt,ACCEPTABLE_KEYS:Px,KEYCODE_MAP:Nx};var b0=class r{static createStepElement(t,e,a){var n,i;let o=document.createElement(S.elementName);return o.index=e,o.completed=t.completed||!1,o.editable=t.editable||!1,o.selected=a.selectedIndex===e,o.alternative=a.alternative,o.error=t.error||!1,o.disabled=t.disabled||!1,o.vertical=(i=(n=t.vertical)!=null?n:a.vertical)!=null?i:!1,o.ignoreUserExpansion=t.ignoreUserExpansion||!1,o.expanded=t.expanded||!1,a.linear&&e>a.selectedIndex&&(o.tabIndex=-1),o.textContent=t.label,t.optionalLabel&&o.appendChild(this.createStepOptionalLabel(t.optionalLabel)),o}static createStepOptionalLabel(t){let e=document.createElement("span");return e.slot="optional",e.textContent=t||"",e}static setLinearState(t,e){let a=t.classList.contains(R.classes.LINEAR);a&&!e&&(t.classList.remove(R.classes.LINEAR),a=!1),!a&&e&&t.classList.add(R.classes.LINEAR)}static setAlternativeState(t,e){let a=t.classList.contains(R.classes.ALTERNATIVE);a&&!e&&(t.classList.remove(R.classes.ALTERNATIVE),a=!1),!a&&e&&t.classList.add(R.classes.ALTERNATIVE)}static setLayoutMode(t,e){switch(e){case"clustered":t.classList.contains(R.classes.FIXED)&&t.classList.remove(R.classes.FIXED),t.classList.add(R.classes.CLUSTERED);break;case"fixed":t.classList.contains(R.classes.CLUSTERED)&&t.classList.remove(R.classes.CLUSTERED),t.classList.add(R.classes.FIXED);break}}static setLayoutAlign(t,e){switch(t.classList.contains(R.classes.ALIGN_LEFT)&&t.classList.remove(R.classes.ALIGN_LEFT),t.classList.contains(R.classes.ALIGN_CENTER)&&t.classList.remove(R.classes.ALIGN_CENTER),t.classList.contains(R.classes.ALIGN_RIGHT)&&t.classList.remove(R.classes.ALIGN_RIGHT),e){case"left":t.classList.add(R.classes.ALIGN_LEFT);break;case"center":t.classList.add(R.classes.ALIGN_CENTER);break;case"right":t.classList.add(R.classes.ALIGN_RIGHT);break}}static createSteps(t){let e=[];return t.steps.forEach((a,o)=>{let n=r.createStepElement(a,o,t);e.push(n)}),e[0].setAttribute(S.attributes.FIRST,""),e[e.length-1].setAttribute(S.attributes.LAST,""),e}};var _l=class extends I{constructor(t){super(t),this._rootElement=g(t,R.selectors.STEPPER),this._slotElement=this._rootElement.querySelector("slot")}initializeAccessibility(){this._component.hasAttribute("role")||this._component.setAttribute("role","tablist")}patchSafari(){this._applyToSteps(t=>t.setAttribute("safari",""))}addSlotChangeListener(t){this._slotElement.addEventListener("slotchange",t)}removeSlotChangeListener(t){this._slotElement.addEventListener("slotchange",t)}getLastStep(){let t=this._getSteps();return t.item(t.length-1)}setSelected(t){this._getSteps().forEach(e=>{e===t?e.selected=!0:e.selected=!1})}assignIndices(){this._getSteps().forEach((e,a)=>{e.index=a})}assignFirstLastStep(){let t=this._getSteps();t&&t.length>1&&(t[0].setAttribute("first",""),t[t.length-1].setAttribute("last",""))}setLayoutAlign(t){b0.setLayoutAlign(this._rootElement,t)}setLayoutMode(t){b0.setLayoutMode(this._rootElement,t),this._applyToSteps(e=>e.setAttribute(S.attributes.CLUSTERED,""))}setAlternativeState(t){b0.setAlternativeState(this._rootElement,t),this._applyToSteps(e=>e.alternative=t)}setVertical(t){_2(this._rootElement,t,R.classes.VERTICAL),this._applyToSteps(e=>e.vertical=t)}setLinearState(t){b0.setLinearState(this._rootElement,t)}removeRootListener(t,e){this._rootElement.removeEventListener("click",e)}addRootListener(t,e){this._rootElement.addEventListener(t,e)}setSelectedByIndex(t){this._applyToSteps(e=>{e.selected&&e.index!==t&&(e.selected=!1),e.index===t&&(e.selected=!0)})}applyConfiguredSteps(t){this._component.querySelectorAll(S.elementName).forEach(e=>{this._component.removeChild(e)}),t.forEach(e=>this._component.appendChild(e))}tryGetFocusedStep(){let t;return this._applyToSteps(e=>{e.matches(":focus-within")&&(t=e)}),t}getFocusedOrSelectedStep(){let t=this.tryGetFocusedStep();return t||(t=this._getSteps()[0],t.focus()),t}getStep(t){let e=0,a=this._getSteps();return t<0?a.item(a.length-1):(a.length>t&&(e=t),a.item(e))}toggleDisabled(t){this._applyToSteps(e=>e.disabled=t)}toggleRootClass(t,e){_2(this._rootElement,e,t)}isStepperFocused(){return this._rootElement.classList.contains(R.classes.FOCUSED)}setStepsListener(t,e){this._applyToSteps(a=>a.addEventListener(t,e))}removeStepsListener(t,e){this._applyToSteps(a=>a.removeEventListener(t,e))}_applyToSteps(t){this._getSteps().forEach(t)}_getSteps(){return this._component.querySelectorAll(S.elementName)}};var fl=class{constructor(t){this._adapter=t;this._steps=[];this._selectedIndex=0;this._linear=!1;this._alternative=!1;this._layoutMode="fixed";this._layoutAlign="center";this._initialize=!1;this._clickListener=e=>this._handleClick(e),this._keyListener=e=>this._onKeydown(e),this._stepFocusListener=()=>this._onStepFocus(),this._stepBlurListener=()=>this._onStepBlur(),this._stepExpandedContentFocusInListener=e=>this._onStepExpandedContentFocusIn(e),this._stepExpandedContentFocusOutListener=e=>this._onStepExpandedContentFocusOut(e),this._slotChangeListener=e=>this._onSlotChange(e)}initialize(){this._adapter.initializeAccessibility(),this._adapter.assignIndices(),this._adapter.setLinearState(this._linear),this._adapter.setAlternativeState(this._alternative),this._adapter.setLayoutAlign(this._layoutAlign),this._adapter.setLayoutMode(this._layoutMode),this._adapter.addRootListener("click",this._clickListener),this._adapter.addHostListener("keydown",this._keyListener),this._adapter.assignFirstLastStep(),this._adapter.addRootListener(S.events.EXPANDED_CONTENT_FOCUSIN,this._stepExpandedContentFocusInListener),this._adapter.addRootListener(S.events.EXPANDED_CONTENT_FOCUSOUT,this._stepExpandedContentFocusOutListener),this._applySelectedIndex(),this._patchBrowser(),this._adapter.setStepsListener("blur",this._stepBlurListener),this._adapter.setStepsListener("focus",this._stepFocusListener),this._initialize||this._adapter.addSlotChangeListener(this._slotChangeListener),this._initialize=!0}destroy(){this._adapter.removeRootListener("click",this._clickListener),this._adapter.removeHostListener("keydown",this._keyListener),this._adapter.removeSlotChangeListener(this._slotChangeListener),this._adapter.removeStepsListener("blur",this._stepBlurListener),this._adapter.removeStepsListener("focus",this._stepFocusListener)}get steps(){return this._steps.map(t=>w({},t))}set steps(t){if(Array.isArray(t)&&t.length>0)this._steps=[...t.map(e=>w({},e))];else{this._steps=[];return}this._renderConfiguration()}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){if(!k(t))t=0;else if(!z2(t)){let e=Number(t);t=isNaN(e)?0:e}this._selectedIndex!==t&&(this._selectedIndex=t,this._adapter.setHostAttribute(R.attributes.SELECTED_INDEX,this._selectedIndex.toString()),this._applySelectedIndex())}get linear(){return this._linear}set linear(t){t=!!t,this._linear!==t&&(this._linear=t,this._adapter.setLinearState(this._linear),this._adapter.setHostAttribute(R.attributes.LINEAR,this._linear.toString()))}get alternative(){return this._alternative}set alternative(t){t=!!t,this._alternative!==t&&(this._alternative=t,this._adapter.setAlternativeState(this._alternative),this._adapter.setHostAttribute(R.attributes.ALTERNATIVE,this._alternative.toString()))}get layoutMode(){return this._layoutMode}set layoutMode(t){/^(fixed|clustered)$/.test(t)&&this._layoutMode!==t&&(this._layoutMode=t,this._adapter.setHostAttribute(R.attributes.LAYOUT_MODE,this._layoutMode),this._adapter.setLayoutMode(this._layoutMode))}get layoutAlign(){return this._layoutAlign}set layoutAlign(t){/^(left|center|right)$/.test(t)&&this._layoutAlign!==t&&(this._layoutAlign=t,this._adapter.setLayoutAlign(this._layoutAlign),this._adapter.setHostAttribute(R.attributes.LAYOUT_ALIGN,this._layoutAlign))}get disabled(){return this._disabled}set disabled(t){t!==this._disabled&&(this._disabled=t,this._applyDisabled())}get vertical(){return this._vertical}set vertical(t){t!==this._vertical&&(this._vertical=t,this._applyVertical(),this._adapter.toggleHostAttribute(R.attributes.VERTICAL,this._vertical))}_applyVertical(){this._adapter.setVertical(this._vertical)}_applyDisabled(){this._disabled?this._adapter.setHostAttribute(R.attributes.DISABLED,"disabled"):this._adapter.removeHostAttribute(R.attributes.DISABLED),this._adapter.toggleDisabled(this._disabled)}_applySelectedIndex(){this._adapter.setSelectedByIndex(this._selectedIndex)}_handleClick(t){if(t.preventDefault(),this._linear)return;let a=L2(t).filter(o=>o.nodeType===Node.ELEMENT_NODE).find(o=>o.matches(S.elementName));a&&!a.selected&&!a.disabled&&this._adapter.emitHostEvent(S.events.SELECT,a.index,!0,!0)&&(this._adapter.setSelected(a),this.selectedIndex=a.index)}_renderConfiguration(){let t=b0.createSteps({steps:this._steps,vertical:this._vertical,selectedIndex:this._selectedIndex,alternative:this._alternative,layoutAlign:this._layoutAlign,layoutMode:this._layoutMode,linear:this._linear});this.destroy(),this._adapter.applyConfiguredSteps(t),this.initialize()}_onKeydown(t){var o;if(this._linear)return;let e=this._getKeyFromEvent(t);if(!this._adapter.isStepperFocused()||!e)return;if([S.strings.HOME_KEY,S.strings.END_KEY,S.strings.ARROW_DOWN_KEY,R.strings.ARROW_UP_KEY,R.strings.ENTER_KEY,R.strings.SPACE_KEY].includes(e)&&t.preventDefault(),[R.strings.ENTER_KEY,R.strings.SPACE_KEY].includes(e)){(o=this._adapter.getFocusedOrSelectedStep())==null||o.click();return}let a=this._vertical?this._determineVerticalMoveTarget(e):this._determineMoveTarget(e);a&&this._moveFocusTo(a)}_moveFocusTo(t){t.focus()}_getKeyFromEvent(t){return R.ACCEPTABLE_KEYS.includes(t.key)?t.key:R.KEYCODE_MAP[t.keyCode]}_determineMoveTarget(t){let e=this._adapter.getFocusedOrSelectedStep();if(e)switch(t){case R.strings.ARROW_RIGHT_KEY:return this._adapter.getStep(e.index+1);case R.strings.ARROW_LEFT_KEY:return this._adapter.getStep(e.index-1);case R.strings.HOME_KEY:return this._adapter.getStep(0);case R.strings.END_KEY:return this._adapter.getLastStep()}return e}_determineVerticalMoveTarget(t){let e=this._adapter.getFocusedOrSelectedStep();if(e)switch(t){case R.strings.ARROW_DOWN_KEY:return this._adapter.getStep(e.index+1);case R.strings.ARROW_UP_KEY:return this._adapter.getStep(e.index-1);case R.strings.HOME_KEY:return this._adapter.getStep(0);case R.strings.END_KEY:return this._adapter.getLastStep()}return e}_onSlotChange(t){this.destroy(),this.initialize()}_onStepExpandedContentFocusIn(t){let e=this._adapter.getStep(t.detail.index+1);e&&(e.tabIndex=0),t.detail.tabIndex=0}_onStepExpandedContentFocusOut(t){let e=t.target,a=this._adapter.getStep(e.index+1);a&&(a.tabIndex=-1),e.tabIndex=-1}_onStepFocus(){this._adapter.toggleRootClass(R.classes.FOCUSED,!0)}_onStepBlur(){this._adapter.toggleRootClass(R.classes.FOCUSED,!1)}_patchBrowser(){new $2().SAFARI()&&this._adapter.patchSafari()}};var Rx='<template><div class="forge-stepper" part="root"><slot></slot></div></template>',Fx=":host{display:block}:host([hidden]){display:none}:host([vertical]) .forge-stepper{display:unset;align-items:unset;white-space:unset;overflow:unset}.forge-stepper{display:flex;align-items:center;white-space:nowrap;overflow:hidden}.forge-stepper:not(.vertical) ::slotted(*){display:flex;align-items:center;position:relative;min-width:112px}.forge-stepper.fixed ::slotted(*){flex:1}.forge-stepper.alternative{align-items:flex-start}.forge-stepper.alternative ::slotted(*){min-width:160px}.forge-stepper.align-left{justify-content:flex-start}.forge-stepper.align-center{justify-content:center}.forge-stepper.align-right{justify-content:flex-end}",St=class extends M{static get observedAttributes(){return[R.attributes.SELECTED_INDEX,R.attributes.LINEAR,R.attributes.ALTERNATIVE,R.attributes.LAYOUT_MODE,R.attributes.LAYOUT_ALIGN,R.attributes.DISABLED,R.attributes.VERTICAL]}constructor(){super(),H(this,Rx,Fx),this._core=new fl(new _l(this))}async connectedCallback(){await Fa(this),this._core.initialize()}disconnectedCallback(){this._core.destroy()}attributeChangedCallback(t,e,a){switch(t){case R.attributes.SELECTED_INDEX:this.selectedIndex=Number(a)||0;break;case R.attributes.LINEAR:this.linear=p(a);break;case R.attributes.ALTERNATIVE:this.alternative=p(a);break;case R.attributes.LAYOUT_MODE:this.layoutMode=a;break;case R.attributes.LAYOUT_ALIGN:this.layoutAlign=a;break;case R.attributes.DISABLED:this.disabled=p(a);break;case R.attributes.VERTICAL:this.vertical=p(a);break}}};s([v()],St.prototype,"steps",2),s([v()],St.prototype,"selectedIndex",2),s([v()],St.prototype,"linear",2),s([v()],St.prototype,"alternative",2),s([v()],St.prototype,"layoutMode",2),s([v()],St.prototype,"layoutAlign",2),s([v()],St.prototype,"disabled",2),s([v()],St.prototype,"vertical",2),St=s([y({name:R.elementName,dependencies:[Y2]})],St);function _6(){x(St)}var y0=`${b}table`,f6={TABLE:"forge-table",TABLE_DENSE:"forge-table--dense",TABLE_ROOMY:"forge-table--roomy",TABLE_RESIZABLE:"forge-table--resizable",TABLE_RESIZING:"forge-table--resizing",TABLE_RESIZE_HANDLE:"forge-table__resize-handle",TABLE_NO_WRAP_CONTENT:"forge-table--no-wrap-content",TABLE_LAYOUT_FIXED:"forge-table--layout-fixed",TABLE_FILTER_VISIBLE:"forge-table--filter-visible",TABLE_FIXED:"forge-table--fixed",TABLE_HEAD:"forge-table-head",TABLE_HEAD_ROW:"forge-table-head__row",TABLE_HEAD_ROW_FILTER:"forge-table-head__row__filter",TABLE_HEAD_CELL:"forge-table-head__cell",TABLE_HEAD_CELL_CONTAINER:"forge-table-head__cell-container",TABLE_HEAD_CELL_SORTABLE:"forge-table-head__cell--sortable",TABLE_HEAD_CELL_SORT_ICON:"forge-table-head__cell-sort-icon",TABLE_HEAD_CELL_TEXT:"forge-table-head__cell-text",TABLE_HEAD_CELL_SORT_ICON_ACTIVE:"forge-table-head__cell-sort-icon--active",TABLE_HEAD_CELL_SORTED_ASCENDING:"forge-table-head__cell--sorted-ascending",TABLE_HEAD_CELL_SORTED_DESCENDING:"forge-table-head__cell--sorted-descending",TABLE_HEAD_CELL_SORT_ORDER:"forge-table-head__cell__sort-order",TABLE_HEAD_CELL_SORT_ORDER_HIDDEN:"forge-table-head__cell__sort-order--hidden",TABLE_BODY:"forge-table-body",TABLE_BODY_ROW:"forge-table-body__row",TABLE_BODY_ROW_SELECTED:"forge-table-body__row--selected",TABLE_BODY_ROW_CLICKABLE:"forge-table-body__row--clickable",TABLE_BODY_CELL:"forge-table-body__cell",TABLE_ROW:"forge-table-row",TABLE_ROW_EXPANDED:"forge-table-row--expanded",TABLE_ROW_EXPANDABLE_CONTENT:"forge-table-row__expandable-content",TABLE_ROW_EXPANDABLE_CONTENT_CELL:"forge-table-row__expandable-content-cell",TABLE_CELL:"forge-table-cell",TABLE_CELL_SELECT:"forge-table-cell__select",TABLE_CELL_SELECT_CHECKBOX:"forge-table-cell__select-checkbox",TABLE_CELL_SELECT_CHECKBOX_CONTAINER:"forge-table-cell__select-checkbox-container",TABLE_CELL_SELECT_CHECKBOX_CONTAINER_ALIGN_RIGHT:"forge-table-cell__select-checkbox-container--align-right",TABLE_CELL_SELECT_CHECKBOX_CONTAINER_ALIGN_LEFT:"forge-table-cell__select-checkbox-container--align-left",TABLE_CELL_SELECT_CHECKBOX_CONTAINER_ALIGN_CENTER:"forge-table-cell__select-checkbox-container--align-center",TABLE_CELL_CONTAINER:"forge-table-cell__container",TABLE_CELL_CONTAINER_TEXT:"forge-table-cell__container-text",TABLE_CELL_CENTER:"forge-table-cell--center",TABLE_CELL_RIGHT:"forge-table-cell--right",TABLE_CELL_RESIZABLE:"forge-table-cell--resizing"},Ux={TABLE:".forge-table",CHECKBOX_INPUT:":is(forge-checkbox,input[type=checkbox]):not([forge-ignore])",SELECT_ALL_TEMPLATE_CHECKBOX_INPUT:":is(forge-checkbox,input[type=checkbox]):not([forge-ignore])",ROW_SELECTED:`.${f6.TABLE_BODY_ROW_SELECTED}`},Wx={SELECT:"select",MULTISELECT:"multiselect",SELECT_KEY:"select-key",DENSE:"dense",ROOMY:"roomy",FILTER:"filter",FIXED_HEADERS:"fixed-headers",LAYOUT_TYPE:"layout-type",WRAP_CONTENT:"wrap-content",RESIZABLE:"resizable",MIN_RESIZE_WIDTH:"min-resize-width",ALLOW_ROW_CLICK:"allow-row-click",MULTI_COLUMN_SORT:"multi-column-sort",SELECT_CHECKBOX_ALIGNMENT:"select-checkbox-alignment",TOOLTIP_SELECT:"tooltip-select",TOOLTIP_SELECT_ALL:"tooltip-select-all",CHECKBOX_TYPE:"forge-checkbox-type",CUSTOM_CELL_TEMPLATE:"data-cell-template",CUSTOM_CELL_TEMPLATE_STOP_PROPAGATION:"data-cell-template-stop-propagation",SELECT_CHECKBOX:"forge-table-row-select-checkbox"},Gx={ROW_CLICK:`${y0}-row-click`,SELECT:`${y0}-select`,SELECT_DOUBLE:`${y0}-select-double`,SELECT_ALL:`${y0}-select-all`,SORT:`${y0}-sort`,FILTER:`${y0}-filter`,INITIALIZED:`${y0}-initialized`,COLUMN_RESIZE:`${y0}-column-resize`},Yx={SELECT_ALL:"select-all",SELECT_ROW:"select-row",DEFAULT_LAYOUT_TYPE:"auto"},Kx={SORT_DOWN:"arrow_downward"},qx={DEFAULT_FILTER_DEBOUNCE_TIME:750,MIN_RESIZE_WIDTH:100,RESIZE_HOVER_DURATION:150},f={elementName:y0,classes:f6,selectors:Ux,attributes:Wx,events:Gx,strings:Yx,icons:Kx,numbers:qx};var xl=(a=>(a.Left="left",a.Right="right",a.Center="center",a))(xl||{}),bl=(a=>(a.Ascending="ASC",a.Descending="DESC",a.Unset="UNSET",a))(bl||{}),$x=(i=>(i.InputText="text",i.InputNumber="number",i.Select="select",i.SelectMultiple="select-multiple",i.Date="date",i.DateRange="date-range",i))($x||{});function x6(r){return r&&typeof r=="object"&&"content"in r}var C1=class r{static createTable(t){r._resetTable(t.tableElement);let e=r._createTableHead(t),a=r._createTableBody(t);t.clickListener&&(r._attachRowClickListeners(a,t.clickListener,t.doubleClickListener),r._addRowClickAttributes(a)),t.fixedHeaders&&r.setFixedHeaders(t),t.resizable&&r.setResizable(t),t.dense&&r.setDenseState(t.tableElement,t.dense),t.wrapContent&&r.setWrapContentState(t.tableElement,t.wrapContent),t.selectListener&&r._addSelectColumn(e,a,t.selectListener,t.selectAllListener,t.selectAllTemplate,t.selectCheckboxAlignment,t.data,t.tooltipSelect,t.tooltipSelectAll),(t.resizable||t.columnConfigurations.some(o=>!!o.sortable))&&(r._attachHeadRowMouseDownListener(e,t.headRowMouseDownListener),r._isMac()&&r._attachHeadRowContextMenuListener(e,t.headRowContextMenuListener)),r.setLayoutType(t),r._setTableHead(t.tableElement,e),t.filter&&r.setFilterRow(t),r._setTableBody(t.tableElement,a)}static _setTableHead(t,e){t.tHead?e0(e,t.tHead):t.appendChild(e)}static _setTableBody(t,e){t.tBodies.length?e0(e,t.tBodies[0]):t.appendChild(e)}static recreateTableBody(t){let e=r._createTableBody(t);t.clickListener&&(r._attachRowClickListeners(e,t.clickListener,t.doubleClickListener),r._addRowClickAttributes(e)),t.selectListener&&(r._createBodySelectColumn(e,t.selectCheckboxAlignment,t.data,t.tooltipSelect,t.tooltipSelectAll),r._attachRowSelectListeners(e,t.selectListener)),r._setTableBody(t.tableElement,e)}static _resetTable(t){r2(t)}static _createMultisortTooltip(){let t=document.createElement("forge-tooltip");return t.textContent="Ctrl + click to sort multiple columns",t.placement="bottom",t.delay=0,t}static _createTableHead(t){let e=document.createElement("thead"),a=e.insertRow();y1([f.classes.TABLE_ROW,f.classes.TABLE_HEAD_ROW],a);let o=!1;for(let n=0;n<t.columnConfigurations.length;n++){let i=t.columnConfigurations[n],l=document.createElement("th");l.scope="col",y1([f.classes.TABLE_CELL,f.classes.TABLE_HEAD_CELL],l);let h;if(i.sortable?(h=document.createElement("button"),h.type="button",h.addEventListener("keydown",t.sortableHeadCellKeydownListener)):h=document.createElement("div"),h.classList.add(f.classes.TABLE_HEAD_CELL_CONTAINER),t.multiColumnSort){let c=r._createMultisortTooltip();h.appendChild(c)}if(i.align&&r._setCellAlignmentClass(h,i.align),k(i.width)){let c=Ul(i.width);c&&(l.style.width=c)}if(t.resizable&&i.resizable!==!1){let c=document.createElement("div");c.classList.add(f.classes.TABLE_RESIZE_HANDLE),l.appendChild(c)}if(k(i.headerCellStyle)&&nt(i.headerCellStyle)&&(Object.assign(l.style,i.headerCellStyle),Object.assign(h.style,i.headerCellStyle)),i.sortable){l.classList.add(f.classes.TABLE_HEAD_CELL_SORTABLE);let c=document.createElement("span");y1([f.classes.TABLE_HEAD_CELL_SORT_ORDER_HIDDEN,f.classes.TABLE_HEAD_CELL_SORT_ORDER],c);let d=document.createElement(h1.elementName);d.name=f.icons.SORT_DOWN,y1([f.classes.TABLE_HEAD_CELL_SORT_ICON],d),t.multiColumnSort?typeof i.initialSort=="object"&&i.initialSort.sortOrder&&(c.textContent=i.initialSort.sortOrder.toString(),t.columnConfigurations.filter(u=>typeof u.initialSort=="object").length>1&&we(f.classes.TABLE_HEAD_CELL_SORT_ORDER_HIDDEN,c),l.classList.add(f.classes.TABLE_HEAD_CELL_SORTED_DESCENDING),d.classList.add(f.classes.TABLE_HEAD_CELL_SORT_ICON_ACTIVE),r._setColumnSortDirection(l,i.initialSort.direction)):t.sortedColumn===n&&!o&&!t.multiColumnSort&&(l.classList.add(f.classes.TABLE_HEAD_CELL_SORTED_DESCENDING),d.classList.add(f.classes.TABLE_HEAD_CELL_SORT_ICON_ACTIVE),r._setColumnSortDirection(l,t.sortDirection),o=!0),h.appendChild(d),h.appendChild(c)}if(typeof i.headerTemplate=="function")Promise.resolve(i.headerTemplate(n,h,i)).then(c=>{if(c){let d=document.createElement("div");y1(f.classes.TABLE_CELL_CONTAINER,d),typeof c=="string"?d.innerHTML=c:r._prepend(c,d),d.setAttribute(f.attributes.CUSTOM_CELL_TEMPLATE,""),r._prepend(d,h)}});else{let c=document.createElement("span");c.classList.add(f.classes.TABLE_HEAD_CELL_TEXT),c.textContent=i.header&&typeof i.header=="string"?i.header.trim():"",c.textContent.trim().length===0&&l.setAttribute("aria-hidden","true"),r._prepend(c,h)}l.appendChild(h),a.appendChild(l)}return e}static setSortDirection(t,e,a){let o=r._getHeaderCellByIndex(t,e);t.querySelectorAll("th[aria-sort]").forEach(n=>n.removeAttribute("aria-sort")),r._setColumnSortDirection(o,a)}static _setColumnSortDirection(t,e){t.classList.contains(f.classes.TABLE_HEAD_CELL_SORTED_ASCENDING)&&t.classList.remove(f.classes.TABLE_HEAD_CELL_SORTED_ASCENDING),t.classList.contains(f.classes.TABLE_HEAD_CELL_SORTED_DESCENDING)&&t.classList.remove(f.classes.TABLE_HEAD_CELL_SORTED_DESCENDING),!e||e==="DESC"?(t.setAttribute("aria-sort","descending"),t.classList.add(f.classes.TABLE_HEAD_CELL_SORTED_DESCENDING)):(t.setAttribute("aria-sort","ascending"),t.classList.add(f.classes.TABLE_HEAD_CELL_SORTED_ASCENDING))}static _createTableBody(t){let e=document.createElement("tbody");return r._getOrderedRowData(t.columnConfigurations,t.data).forEach((o,n)=>{let i=e.insertRow();y1([f.classes.TABLE_ROW,f.classes.TABLE_BODY_ROW],i),r._populateRowCells(t,i,o,n),typeof t.rowCreatedCallback=="function"&&t.rowCreatedCallback(i,n,w({},t.data[n].data))}),e}static _populateRowCells(t,e,a,o){for(let n=0;n<a.length;n++){let i=t.columnConfigurations[n],l=e.insertCell();if(y1([f.classes.TABLE_CELL,f.classes.TABLE_BODY_CELL],l),k(i.width)){let c=Ul(i.width);c&&(l.style.width=c)}let h=document.createElement("div");if(h.classList.add(f.classes.TABLE_CELL_CONTAINER),k(i.cellStyle)&&nt(i.cellStyle)&&(Object.assign(l.style,i.cellStyle),Object.assign(h.style,i.cellStyle)),i.template&&typeof i.template=="function"){let c=t.data[o]?t.data[o].data:void 0;Promise.resolve(i.template(o,h,c,n)).then(d=>{let u=x6(d)?d:{content:d,stopClickPropagation:i.stopCellTemplateClickPropagation};u.content&&(typeof u.content=="string"?h.innerHTML=u.content:h.appendChild(u.content),h.setAttribute(f.attributes.CUSTOM_CELL_TEMPLATE,""),u.stopClickPropagation&&h.setAttribute(f.attributes.CUSTOM_CELL_TEMPLATE_STOP_PROPAGATION,""))})}else if(i.property){let c=document.createElement("span");c.classList.add(f.classes.TABLE_CELL_CONTAINER_TEXT),h.appendChild(c),i.transform&&typeof i.transform=="function"?Promise.resolve(i.transform(a[n])).then(d=>c.textContent=d):a[n]==null?c.textContent="":c.textContent=a[n].toString()}if(i.align&&r._setCellAlignmentClass(h,i.align),l.appendChild(h),k(i.columnSpan)){if(i.columnSpan==="all"){l.colSpan=a.length-n;break}else if(typeof i.columnSpan=="number"&&i.columnSpan>0){let c=i.columnSpan;i.columnSpan>a.length-n&&(c=a.length),l.colSpan=c,n=n+(c-1)}}typeof t.cellCreatedCallback=="function"&&t.cellCreatedCallback(l,o,n)}}static _setCellAlignmentClass(t,e){switch(e){case"center":t.classList.add(f.classes.TABLE_CELL_CENTER);break;case"right":t.classList.add(f.classes.TABLE_CELL_RIGHT);break}}static _getNonExpandedRows(t){return Array.from(t).filter(e=>!e.classList.contains(f.classes.TABLE_ROW_EXPANDABLE_CONTENT))}static _getExpandedRows(t){return Array.from(t).filter(e=>e.classList.contains(f.classes.TABLE_ROW_EXPANDABLE_CONTENT))}static _createColumnDataMap(t,e){return t.map(a=>({config:a,data:e.map(o=>{if(a.property){let n=y5(o.data,a.property);return k(n)?n:null}return null})}))}static _getOrderedRowData(t,e){let a=r._createColumnDataMap(t,e),o=[];for(let n of a)for(let i=0;i<n.data.length;i++)o[i]||(o[i]=[]),o[i].push(n.data[i]);return o}static _attachRowClickListeners(t,e,a){r._getNonExpandedRows(t.rows).forEach(n=>{n.addEventListener("click",e),a&&n.addEventListener("dblclick",a)})}static _addRowClickAttributes(t){r._getNonExpandedRows(t.rows).forEach(a=>{a.classList.add(f.classes.TABLE_BODY_ROW_CLICKABLE)})}static _removeRowClickAttributes(t){r._getNonExpandedRows(t.rows).forEach(a=>{a.classList.remove(f.classes.TABLE_BODY_ROW_CLICKABLE)})}static _attachRowSelectListeners(t,e){r._getNonExpandedRows(t.rows).forEach(o=>r._attachRowSelectListener(o,e))}static _attachRowSelectListener(t,e){let a=r._getCheckboxElement(t);a==null||a.addEventListener("click",e)}static _detachRowSelectListeners(t,e){Array.from(t.rows).forEach(a=>{let o=r._getCheckboxElement(a);o==null||o.removeEventListener("click",e)})}static _detachRowClickListeners(t,e,a){Array.from(t.rows).forEach(o=>{o.removeEventListener("click",e),o.removeEventListener("dblclick",a)})}static _attachSelectAllListener(t,e){let a=t.rows[t.rows.length-1],o=r._getCheckboxElement(a);if(!o)throw new Error("Checkbox element not found.");o.addEventListener("change",e)}static _tryAttachSelectAllTemplateListener(t,e){let a=t.rows[t.rows.length-1],o=r._tryGetSelectAllCheckboxElement(a);o&&o.addEventListener("change",e)}static _detachSelectAllListener(t,e){let a=t.rows[t.rows.length-1],o=r._tryGetSelectAllCheckboxElement(a);o&&o.removeEventListener("change",e)}static _attachHeadRowMouseDownListener(t,e){let a=t.rows[0];if(!a)throw new Error("Missing table header row. Unable to attach sort listener.");a.addEventListener("mousedown",e)}static _attachHeadRowContextMenuListener(t,e){let a=t.rows[0];if(!a)throw new Error("Missing table header row. Unable to attach sort listener.");a.addEventListener("contextmenu",e)}static _createSelectColumn(t,e,a,o,n,i,l,h,c){t&&r._createHeadSelectColumn(t,a,o,n,i,c),e&&r._createBodySelectColumn(e,i,l,h,c)}static _createHeadSelectColumn(t,e,a,o,n,i){var l;if(Array.from(t.rows).forEach(h=>{let c=document.createElement("th");y1([f.classes.TABLE_CELL,f.classes.TABLE_HEAD_CELL],c),h.insertBefore(c,h.cells.item(0))}),e){let h=(l=t.rows.item(t.rows.length-1))==null?void 0:l.cells.item(0);h.classList.add(f.classes.TABLE_CELL_SELECT),typeof a=="function"?r._renderSelectAllTemplate(a,t).then(()=>{typeof o=="function"&&o()}):h==null||h.appendChild(r._createCheckboxElement(!0,n,null,null,null,i))}}static _createBodySelectColumn(t,e,a,o,n){if(r._getNonExpandedRows(t.rows).forEach((l,h)=>r._addRowSelectColumn(l,e,h,a[h],o,n)),t.rows.length){let l=t.rows.item(0);l&&r._updateExpandedRowColspan(t.rows,l.cells.length)}}static _addRowSelectColumn(t,e,a,o,n,i){let l=t.insertCell(0);y1([f.classes.TABLE_CELL,f.classes.TABLE_BODY_CELL,f.classes.TABLE_CELL_SELECT],l),l.appendChild(r._createCheckboxElement(!1,e,a,o,n,i))}static _destroySelectColumn(t,e){let a=r._getNonExpandedRows(e.rows);if(Array.from(t.rows).forEach(o=>o.removeChild(o.cells.item(0))),Array.from(a).forEach(o=>o.removeChild(o.cells.item(0))),e.rows.length){let o=e.rows.item(0);o&&r._updateExpandedRowColspan(e.rows,o.cells.length)}}static _hasSelectColumn(t,e){return[...Array.from(t.rows),...Array.from(e.rows)].some(o=>o.cells.item(0).classList.contains(f.classes.TABLE_CELL_SELECT))}static _createCheckboxElement(t,e,a,o,n,i){let l=document.createElement("div");if(l.classList.add(f.classes.TABLE_CELL_SELECT_CHECKBOX_CONTAINER),e)switch(e){case"center":l.classList.add(f.classes.TABLE_CELL_SELECT_CHECKBOX_CONTAINER_ALIGN_CENTER);break;case"left":l.classList.add(f.classes.TABLE_CELL_SELECT_CHECKBOX_CONTAINER_ALIGN_LEFT);break;case"right":l.classList.add(f.classes.TABLE_CELL_SELECT_CHECKBOX_CONTAINER_ALIGN_RIGHT);break}let h=document.createElement(z1.elementName);h.setAttribute(f.attributes.SELECT_CHECKBOX,""),l.appendChild(h);let c=d=>{let u=document.createElement("forge-tooltip");return u.placement="left",u.type="label",u.textContent=d,u};if(t)if(typeof i=="string"&&i.length){let u=c(i);l.appendChild(u)}else h.setAttribute("aria-label","Select all rows");else{let d=n||"";if(o&&typeof n=="function"&&(d=n.call(null,a,o.data)),typeof d=="string"&&d.length){let u=c(d);l.appendChild(u)}else h.setAttribute("aria-label","Select row")}return l}static _getCheckboxElement(t){let e=t.querySelector(`.${f.classes.TABLE_CELL_SELECT}`);return e?e.querySelector(f.selectors.CHECKBOX_INPUT):null}static _tryGetSelectAllCheckboxElement(t){let e=t.querySelector(`.${f.classes.TABLE_CELL_SELECT}`);return e?e.querySelector(f.selectors.CHECKBOX_INPUT)||e.querySelector(f.selectors.SELECT_ALL_TEMPLATE_CHECKBOX_INPUT):null}static _setSelectedCheckboxState(t,e){t&&(t.checked=e)}static _setIndeterminateCheckboxState(t,e){t&&(t.indeterminate=e)}static _setRowSelectedState(t,e){e?t.classList.contains(f.classes.TABLE_BODY_ROW_SELECTED)||t.classList.add(f.classes.TABLE_BODY_ROW_SELECTED):t.classList.remove(f.classes.TABLE_BODY_ROW_SELECTED)}static _updateExpandedRowColspan(t,e){r._getExpandedRows(t).forEach(o=>{let n=o.cells.item(0);n&&(n.colSpan=e)})}static updateSelectedState(t,e){r._setRowSelectedState(t,e);let a=r._getCheckboxElement(t);a&&r._setSelectedCheckboxState(a,e)}static getRowByIndex(t,e){return r._getNonExpandedRows(t.tBodies[0].rows)[e]}static updateSelectAllState(t,e,a){if(!t.tHead)return;let o=t.tHead.rows[t.tHead.rows.length-1],n=r._tryGetSelectAllCheckboxElement(o);n&&(r._setSelectedCheckboxState(n,e),r._setIndeterminateCheckboxState(n,!!a))}static setSelectedRows(t,e,a,o,n=!1){if(!t.tBodies.length)return;n||r.clearSelectedRows(t);let i=t.tBodies[0].rows,l=0;o.length&&Array.from(i).forEach((h,c)=>{let d=a[c];if(Pr(o,ha(e,d))){r._setRowSelectedState(h,!0);let _=r._getCheckboxElement(h);_&&r._setSelectedCheckboxState(_,!0),l++}}),r.updateSelectAllState(t,l>0&&i.length===l)}static clearSelectedRows(t){if(!t.tBodies.length)return;r._getNonExpandedRows(t.tBodies[0].rows).forEach(a=>{r._setRowSelectedState(a,!1);let o=r._getCheckboxElement(a);o&&r._setSelectedCheckboxState(o,!1)})}static setSortedColumn(t,e,a){let o=r._getHeaderCellByIndex(t,e);r._getSortIconElementFromHeaderCell(o).classList.add(f.classes.TABLE_HEAD_CELL_SORT_ICON_ACTIVE),r._setColumnSortDirection(o,a)}static setMultiSortColumnSortNumber(t,e,a,o){let l=r._getHeaderCellByIndex(t,a).querySelector(`.${f.classes.TABLE_HEAD_CELL_CONTAINER}`).querySelector(`.${f.classes.TABLE_HEAD_CELL_SORT_ORDER}`);l&&(_2(l,typeof o!="number"||!e,f.classes.TABLE_HEAD_CELL_SORT_ORDER_HIDDEN),o&&(l.textContent=o.toString()))}static removeColumnSort(t,e){let a=r._getHeaderCellByIndex(t,e);a.removeAttribute("aria-sort"),a.classList.contains(f.classes.TABLE_HEAD_CELL_SORTED_ASCENDING)&&a.classList.remove(f.classes.TABLE_HEAD_CELL_SORTED_ASCENDING),a.classList.contains(f.classes.TABLE_HEAD_CELL_SORTED_DESCENDING)&&a.classList.remove(f.classes.TABLE_HEAD_CELL_SORTED_DESCENDING);let o=r._getSortIconElementFromHeaderCell(a);o&&o.classList.contains(f.classes.TABLE_HEAD_CELL_SORT_ICON_ACTIVE)&&o.classList.remove(f.classes.TABLE_HEAD_CELL_SORT_ICON_ACTIVE)}static _getHeaderCellByIndex(t,e){if(!t.tHead)throw new Error("Table head element cannot be null.");return t.tHead.rows.item(0).cells.item(e)}static _getSortIconElementFromHeaderCell(t){return t.querySelector(`.${f.classes.TABLE_HEAD_CELL_SORT_ICON}`)}static setSelectColumnVisibility(t,e,a,o,n,i,l,h,c){let d=t.tHead,u=t.tBodies[0];!d||!u||(e?r._addSelectColumn(d,u,a,o,n,i,l,h,c):r._hasSelectColumn(d,u)&&(a&&r._detachRowSelectListeners(u,a),o&&r._detachSelectAllListener(d,o),r._destroySelectColumn(d,u)))}static _addSelectColumn(t,e,a,o,n,i,l,h,c){r._createSelectColumn(t,e,!!o,n,()=>{o&&r._tryAttachSelectAllTemplateListener(t,o)},i,l,h,c),a&&r._attachRowSelectListeners(e,a),o&&!n&&r._tryAttachSelectAllTemplateListener(t,o)}static setDenseState(t,e){t.classList.contains(f.classes.TABLE_DENSE)&&t.classList.remove(f.classes.TABLE_DENSE),e&&t.classList.add(f.classes.TABLE_DENSE)}static setRoomyState(t,e){t.classList.contains(f.classes.TABLE_ROOMY)&&t.classList.remove(f.classes.TABLE_ROOMY),e&&t.classList.add(f.classes.TABLE_ROOMY)}static setResizable(t){let e=t.tableElement.tHead;t.resizable?(t.tableElement.classList.add(f.classes.TABLE_RESIZABLE),r._addResizeHandles(e,t)):(t.tableElement.classList.remove(f.classes.TABLE_RESIZABLE),r._removeResizeHandles(e,t))}static _addResizeHandles(t,e){if(!t)return;let a=t.rows.item(0);if(a){let o=Array.from(a.cells);e.selectListener&&(o=o.slice(1));for(let n of o){let i=o.indexOf(n);if(e.columnConfigurations[i].resizable!==!1){let h=document.createElement("div");h.classList.add(f.classes.TABLE_RESIZE_HANDLE),n.appendChild(h)}}}}static _removeResizeHandles(t,e){if(!t)return;let a=t.rows.item(0);if(a){let o=Array.from(a.cells);e.selectListener&&(o=o.slice(1));for(let n of o){let i=document.querySelector(`.${f.classes.TABLE_RESIZE_HANDLE}`);i&&n.removeChild(i)}}}static setWrapContentState(t,e){e?t.classList.remove(f.classes.TABLE_NO_WRAP_CONTENT):t.classList.add(f.classes.TABLE_NO_WRAP_CONTENT)}static setSelectAllVisibility(t,e,a,o,n,i){let l=t.tHead;if(!l)return;!e&&a&&r._detachSelectAllListener(l,a);let c=l.rows[l.rows.length-1].cells.item(0);e?c.childElementCount||(c.classList.add(f.classes.TABLE_CELL_SELECT),o?r._renderSelectAllTemplate(o,l).then(()=>{a&&r._tryAttachSelectAllTemplateListener(l,a)}):c.appendChild(r._createCheckboxElement(!0,n||null,null,null,null,i)),a&&!o&&r._attachSelectAllListener(l,a)):(a&&r._detachSelectAllListener(l,a),r2(c))}static setFilterRow(t){if(!t.tableElement.tHead)return;let e=r._getFilterRowElement(t.tableElement.tHead),a;if(t.filter?t.tableElement.classList.add(f.classes.TABLE_FILTER_VISIBLE):t.tableElement.classList.remove(f.classes.TABLE_FILTER_VISIBLE),t.filter&&!e){if(t.columnConfigurations.every(n=>!n.filter))return;t.selectListener&&t.selectAllListener&&(a=t.tableElement.tHead.rows[t.tableElement.tHead.rows.length-1].cells.item(0));let o=r._createFilterRowElement(t);o&&a&&Array.from(a.children).forEach(n=>{var i;(i=o.cells.item(0))==null||i.appendChild(n)})}else if(!t.filter&&e){if(t.selectListener&&t.selectAllListener){a=e.cells.item(0);let o=Array.from(t.tableElement.tHead.rows).indexOf(e)-1,n=t.tableElement.tHead.rows.item(o);n&&Array.from(a.children).forEach(i=>{var l;(l=n.cells.item(0))==null||l.appendChild(i)})}Te(e)}}static _createFilterRowElement(t){if(!t.tableElement.tHead)throw new Error("Table head element cannot be null.");let e=t.tableElement.tHead.insertRow();if(y1([f.classes.TABLE_ROW,f.classes.TABLE_HEAD_ROW_FILTER],e),t.selectListener){let a=document.createElement("th");y1([f.classes.TABLE_CELL,f.classes.TABLE_HEAD_CELL],a),e.insertBefore(a,e.cells[0]),a.classList.add(f.classes.TABLE_CELL_SELECT)}return t.columnConfigurations.forEach((a,o)=>{let n=document.createElement("th");if(y1([f.classes.TABLE_CELL,f.classes.TABLE_HEAD_CELL],n),a.filter&&k(a.filterDelegate)){let i=document.createElement("div");i.classList.add(f.classes.TABLE_HEAD_CELL_CONTAINER),a.align&&r._setCellAlignmentClass(i,a.align);let l=r._createFilterElement(a,o,t.filterListener);i.appendChild(l),n.appendChild(i)}e.appendChild(n)}),e}static _createFilterElement(t,e,a){let o;if(t0(t.filterDelegate))o=t.filterDelegate();else if(t.filterDelegate instanceof a2||t.filterDelegate instanceof X1)o=t.filterDelegate;else throw new Error("Invalid filter delegate.");if(a&&o instanceof a2&&t0(o.onChange))if(!k(t.filterDebounceTime)||z2(t.filterDebounceTime)){let n=k(t.filterDebounceTime)?t.filterDebounceTime:f.numbers.DEFAULT_FILTER_DEBOUNCE_TIME;o.onChange(Ae(i=>a(i,e),n))}else o.onChange(n=>a(n,e));return o.element}static _getFilterRowElement(t){if(t)return Array.from(t.rows).find(e=>e.classList.contains(f.classes.TABLE_HEAD_ROW_FILTER))}static async expandRow(t,e,a){let o=t.tableElement.tBodies[0],i=r._getNonExpandedRows(o.rows)[e];i.classList.add(f.classes.TABLE_ROW_EXPANDED);let l=Array.from(o.rows).indexOf(i),h=o.insertRow(l+1);y1([f.classes.TABLE_ROW,f.classes.TABLE_BODY_ROW,f.classes.TABLE_ROW_EXPANDABLE_CONTENT],h);let c=h.insertCell();c.setAttribute("colspan",i.cells.length.toString()),c.classList.add(f.classes.TABLE_ROW_EXPANDABLE_CONTENT_CELL);let d=document.createElement("div"),u=document.createElement(D1.elementName);u.appendChild(d),c.appendChild(u);let _=a;if(t0(a)){let L=t.data[e]?t.data[e].data:void 0,C=a(e,d,L);try{let A=await Promise.resolve(C);_=x6(A)?A.content:A}catch(A){console.error("Failed to load row template "+A.message),_=""}}_&&r._setRowTemplate(d,_),window.requestAnimationFrame(()=>u.open=!0)}static _setRowTemplate(t,e){Pt(e)?t.innerHTML=e:t.appendChild(e)}static collapseRow(t,e){if(!t.tableElement||!t.tableElement.tBodies.length||!t.tableElement.tBodies[0].rows.length)return Promise.resolve();let a=t.tableElement.tBodies[0],n=r._getNonExpandedRows(a.rows)[e],i=Array.from(a.rows).indexOf(n);if(n&&n.classList.contains(f.classes.TABLE_ROW_EXPANDED)){let l=a.rows[i+1],h=l.querySelector(D1.elementName);if(h&&h.open){let c=new Promise(d=>{h.addEventListener(D1.events.ANIMATION_COMPLETE,()=>{n.classList.remove(f.classes.TABLE_ROW_EXPANDED),Te(l),d()},{once:!0})});return h.open=!1,c}}return Promise.resolve()}static isRowExpanded(t,e){let a=t.tableElement.tBodies[0],n=r._getNonExpandedRows(a.rows)[e];return n&&n.classList.contains(f.classes.TABLE_ROW_EXPANDED)}static setFixedHeaders(t){t.fixedHeaders?t.tableElement.classList.add(f.classes.TABLE_FIXED):t.tableElement.classList.remove(f.classes.TABLE_FIXED)}static setLayoutType(t){t.layoutType==="fixed"?t.tableElement.classList.add(f.classes.TABLE_LAYOUT_FIXED):t.tableElement.classList.remove(f.classes.TABLE_LAYOUT_FIXED)}static normalizeColumnWidths(t){let e=t.tableElement;if(e.tHead&&e.tHead.rows.length){let a=Array.from(e.tHead.rows[0].cells);for(let o of a){let n=getComputedStyle(o).width;o.style.width&&o.style.width!==n&&(o.style.width=n)}}}static setColumnResizeIndicatorVisibility(t,e,a){let o=t.tableElement;if(o.tHead&&o.tHead.rows.length){let n=Array.from(o.tHead.rows);for(let i of n){let l=i.cells[e];l&&(a?l.classList.add(f.classes.TABLE_CELL_RESIZABLE):l.classList.remove(f.classes.TABLE_CELL_RESIZABLE))}}if(o.tBodies.length){let n=Array.from(o.tBodies[0].rows);for(let i of n){let l=i.cells[e];l&&(a?l.classList.add(f.classes.TABLE_CELL_RESIZABLE):l.classList.remove(f.classes.TABLE_CELL_RESIZABLE))}}}static setRowClickListeners(t,e,a,o){let n=t.tBodies[0];n&&(e?r._attachRowClickListeners(n,a,o):r._detachRowClickListeners(n,a,o))}static setRowClickAttributes(t,e){let a=t.tBodies[0];a&&(e?r._addRowClickAttributes(a):r._removeRowClickAttributes(a))}static getOwnerDocument(t){return t.ownerDocument||document}static _prepend(t,e){let a=e.childNodes.item(0);a?e.insertBefore(t,a):e.appendChild(t)}static _isMac(){return!!(navigator&&navigator.platform&&navigator.platform.substr(0,3)==="Mac")}static _renderSelectAllTemplate(t,e){return Promise.resolve(t()).then(a=>{let o=e.rows.item(e.rows.length-1);if(!o)return;let n=o.cells.item(0);a&&n&&(typeof a=="string"?n.innerHTML=a:a instanceof HTMLElement&&n.appendChild(a),n.setAttribute(f.attributes.CUSTOM_CELL_TEMPLATE,""))})}};var yl=class extends I{constructor(t){super(t)}initialize(){this._tableElement||(this._tableElement=document.createElement("table"),this._tableElement.classList.add(f.classes.TABLE),this._component.children.length&&r2(this._component),this._component.appendChild(this._tableElement))}getTableElement(){return this._tableElement||this.initialize(),this._tableElement}createTable(t){return C1.createTable(t)}recreateTableBody(t){C1.recreateTableBody(t)}setSelectedRows(t,e,a,o,n=!1){C1.setSelectedRows(t,e,a,o,n)}clearSelectedRows(t){C1.clearSelectedRows(t)}updateSelectedState(t,e){C1.updateSelectedState(t,e)}updateSelectAllState(t,e,a){C1.updateSelectAllState(t,e,a)}setSortedColumn(t,e,a){C1.setSortedColumn(t,e,a)}removeColumnSort(t,e){C1.removeColumnSort(t,e)}setSortDirection(t,e,a){C1.setSortDirection(t,e,a)}setSelectColumnVisibility(t,e,a,o,n,i,l,h,c){C1.setSelectColumnVisibility(t,e,a,o||null,n||null,i||null,l||[],h||null,c||null)}setDense(t,e){C1.setDenseState(t,e)}setRoomy(t,e){C1.setRoomyState(t,e)}setResizable(t){C1.setResizable(t)}setSelectAllVisibility(t,e,a,o,n,i=null){C1.setSelectAllVisibility(t,e,a,o,n||null,i||null)}setFilterRow(t){C1.setFilterRow(t)}expandRow(t,e,a){return C1.expandRow(t,e,a)}collapseRow(t,e){return C1.collapseRow(t,e)}isRowExpanded(t,e){return C1.isRowExpanded(t,e)}setFixedHeaders(t){C1.setFixedHeaders(t)}setTableLayoutType(t){C1.setLayoutType(t)}setWrapContentState(t){C1.setWrapContentState(t.tableElement,t.wrapContent)}addDocumentListener(t,e){C1.getOwnerDocument(this._component).addEventListener(t,e)}removeDocumentListener(t,e){C1.getOwnerDocument(this._component).removeEventListener(t,e)}normalizeColumnWidths(t){C1.normalizeColumnWidths(t)}setResizeColumnVisibility(t,e,a){C1.setColumnResizeIndicatorVisibility(t,e,a)}addTableClass(t){y1(t,this._tableElement)}removeTableClass(t){we(t,this._tableElement)}setRowClickListeners(t,e,a,o){C1.setRowClickListeners(t,e,a,o)}setRowClickAttributes(t,e){C1.setRowClickAttributes(t,e)}};var Ml=class{constructor(){this._sortedColumns=[]}get sortedColumns(){return[...this._sortedColumns.map(t=>w({},t))]}addSortColumn(t){this._sortedColumns.push(w({},t)),this._updateSortNumbers()}updateSortColumn(t){let e=this._sortedColumns.find(a=>a.columnIndex===t.columnIndex);if(e)switch(e.direction){case"ASC":this.removeSortColumn(t);break;case"DESC":e.direction="ASC";break;case"UNSET":e.direction="DESC";break}}setSortColumns(t){this._sortedColumns=[...t.map(e=>w({},e))]}removeSortColumn(t){typeof t=="number"?this._sortedColumns.splice(t,1):this._sortedColumns.splice(this._sortedColumns.indexOf(t),1),this._updateSortNumbers()}isSortColumn(t){return typeof t=="number"?this._sortedColumns.some(e=>e.columnIndex===t):this._sortedColumns.includes(t)}clearMultiSort(){this._sortedColumns=[]}getSortColumn(t){return this._sortedColumns.find(e=>e.columnIndex===t)}_updateSortNumbers(){this._sortedColumns.every(t=>typeof t.sortOrder=="number")&&this._sortedColumns.sort((t,e)=>t.sortOrder-e.sortOrder),this._sortedColumns.forEach((t,e)=>t.sortOrder=e+1)}};var Hl=class{constructor(t,e=!1){this.data=t;this.selected=e}};var Ll=class{constructor(t){this._adapter=t;this._tableRows=[];this._data=[];this._columnConfigurations=[];this._select=!1;this._multiselect=!0;this._dense=!1;this._roomy=!1;this._filter=!1;this._fixedHeaders=!1;this._layoutType=f.strings.DEFAULT_LAYOUT_TYPE;this._wrapContent=!0;this._resizable=!1;this._minResizeWidth=f.numbers.MIN_RESIZE_WIDTH;this._multiColumnSort=!1;this._selectCheckboxAlignment="center";this._isAllSelected=!1;this._sortedColumnIndex=-1;this._rendered=!1;this._allowRowClick=!1;this._multiSortManager=new Ml;this._rowClickListener=e=>this._onRowClick(e),this._rowDoubleClickListener=e=>this._onRowDoubleClick(e),this._selectRowListener=e=>this._onRowSelected(e),this._selectAllListener=e=>this._onSelectAll(e),this._sortableHeadCellKeydownListener=e=>this._onSortableHeadCellKeydown(e),this._headRowMouseDownListener=e=>this._onHeadRowMouseDown(e),this._headRowContextMenuListener=e=>this._onHeadRowContextMenu(e),this._documentMouseMoveListener=e=>this._onMouseMove(e),this._documentMouseUpListener=e=>this._onMouseUp(e),this._filterListener=(e,a)=>this._onFilter(e,a),this._selectionManager=new Ro(this._selectKey),this._hiddenColumnManager=new Ro}initialize(){this._adapter.initialize(),this._adapter.setHostAttribute(f.attributes.SELECT,this._select.toString()),this._adapter.setHostAttribute(f.attributes.MULTISELECT,this._multiselect.toString()),this._adapter.setHostAttribute(f.attributes.DENSE,this._dense.toString()),this._adapter.setHostAttribute(f.attributes.ROOMY,this._roomy.toString()),this._adapter.setHostAttribute(f.attributes.FILTER,this._filter.toString()),this._adapter.emitHostEvent(f.events.INITIALIZED,void 0,!1)}destroy(){this._resizeDescriptor=void 0,this._adapter.removeDocumentListener("mousemove",this._documentMouseMoveListener),this._adapter.removeDocumentListener("mouseup",this._documentMouseUpListener)}set data(t){Array.isArray(t)&&t.length>0?nt(t[0])?this._data=t.map(e=>w({},e)):this._data=[...t]:this._data=[],this._tableRows=this._data.map(e=>new Hl(e,this._selectionManager.exists(e))),this._renderBody()}get data(){return this._data.map(t=>w({},t))}set columnConfigurations(t){this._columnConfigurations=t.map(e=>w({},e)),this._hiddenColumnManager.clear(),this._columnConfigurations.forEach(e=>{e.hidden&&this._hiddenColumnManager.add(e)}),this._refreshTableSort(),this.render()}get columnConfigurations(){return this._columnConfigurations.map(t=>w({},t))}get _visibleColumnConfigurations(){return this._columnConfigurations.filter(t=>!this._hiddenColumnManager.exists(t))}get _tableConfiguration(){return{tableElement:this._adapter.getTableElement(),columnConfigurations:this._visibleColumnConfigurations,data:this._tableRows,clickListener:this._allowRowClick?this._rowClickListener:null,doubleClickListener:this._allowRowClick?this._rowDoubleClickListener:null,selectListener:this._select?this._selectRowListener:null,selectAllListener:this._multiselect?this._selectAllListener:null,sortableHeadCellKeydownListener:this._sortableHeadCellKeydownListener,headRowMouseDownListener:this._headRowMouseDownListener,headRowContextMenuListener:this._headRowContextMenuListener,filterListener:this._filter?this._filterListener:null,sortDirection:this._sortDirection,sortedColumn:this._sortedColumnIndex,multiColumnSort:this._multiColumnSort,filter:this._filter,wrapContent:this._wrapContent,fixedHeaders:this._fixedHeaders,layoutType:this._layoutType,dense:this._dense,resizable:this._resizable,rowCreatedCallback:this._rowCreatedCallback,cellCreatedCallback:this._cellCreatedCallback,selectAllTemplate:this._selectAllTemplate,selectCheckboxAlignment:this._selectCheckboxAlignment,tooltipSelect:this._tooltipSelect,tooltipSelectAll:this._tooltipSelectAll}}set select(t){this._select!==t&&(this._select=t,this._adapter.setSelectColumnVisibility(this._adapter.getTableElement(),this._select,this._selectRowListener,this._multiselect?this._selectAllListener:void 0,this._multiselect?this._selectAllTemplate:null,this._selectCheckboxAlignment,this._tableRows,this._tooltipSelect,this._tooltipSelectAll),this._updateSelections(!0),this._select?this._adapter.setHostAttribute(f.attributes.SELECT,this._select.toString()):this._adapter.removeHostAttribute(f.attributes.SELECT))}get select(){return this._select}set multiselect(t){this._multiselect!==t&&(this._multiselect=t,this._select&&(this._adapter.setSelectAllVisibility(this._adapter.getTableElement(),this._multiselect,this._multiselect?this._selectAllListener:null,this._multiselect?this.selectAllTemplate:null,this._selectCheckboxAlignment,this._tooltipSelectAll),this._updateSelections(!0)),this._adapter.setHostAttribute(f.attributes.MULTISELECT,this._multiselect.toString()))}get multiselect(){return this._multiselect}get selectKey(){return Array.isArray(this._selectKey)?[...this._selectKey]:this._selectKey}set selectKey(t){this._originalSelectKey!==t&&(Array.isArray(t)?(this._originalSelectKey=[...t],this._selectKey=[...t]):(this._originalSelectKey=t,this._selectKey=[t]),this._selectionManager.setKey(this._selectKey),this._updateSelections(!1))}get dense(){return this._dense}set dense(t){this._dense!==t&&(this._dense=t,this._adapter.setDense(this._adapter.getTableElement(),this._dense),this._adapter.setHostAttribute(f.attributes.DENSE,this._dense.toString()))}get roomy(){return this._roomy}set roomy(t){t!==this._roomy&&(this._roomy=t,this._applyRoomy())}set filter(t){this._filter!==t&&(this._filter=t,this._adapter.setFilterRow(this._tableConfiguration),this._adapter.setHostAttribute(f.attributes.FILTER,this._filter.toString()))}get filter(){return this._filter}set fixedHeaders(t){this._fixedHeaders!==t&&(this._fixedHeaders=t,this._adapter.setFixedHeaders(this._tableConfiguration))}get fixedHeaders(){return this._fixedHeaders}get layoutType(){return this._layoutType}set layoutType(t){this._layoutType!==t&&(this._layoutType=t,this._adapter.setTableLayoutType(this._tableConfiguration))}get wrapContent(){return this._wrapContent}set wrapContent(t){this._wrapContent!==t&&(this._wrapContent=t,this._adapter.setWrapContentState(this._tableConfiguration))}get resizable(){return this._resizable}set resizable(t){this._resizable!==t&&(this._resizable=t,this._adapter.setResizable(this._tableConfiguration))}get minResizeWidth(){return this._minResizeWidth}set minResizeWidth(t){this._minResizeWidth!==t&&(this._minResizeWidth=t,z2(this._minResizeWidth)?this._minResizeWidth<0&&(this._minResizeWidth=0):this._minResizeWidth=f.numbers.MIN_RESIZE_WIDTH)}get allowRowClick(){return this._allowRowClick}set allowRowClick(t){this._allowRowClick!==t&&(this._allowRowClick=t,this._rendered&&(this._adapter.setRowClickListeners(this._adapter.getTableElement(),this._allowRowClick,this._rowClickListener,this._rowDoubleClickListener),this._adapter.setRowClickAttributes(this._adapter.getTableElement(),this._allowRowClick)))}get multiColumnSort(){return this._multiColumnSort}set multiColumnSort(t){t!==this._multiColumnSort&&(this._multiColumnSort=t,this._refreshTableSort(),this.render())}get selectCheckboxAlignment(){return this._selectCheckboxAlignment}set selectCheckboxAlignment(t){t!==this._selectCheckboxAlignment&&(this._selectCheckboxAlignment=t,this._adapter.setHostAttribute(f.attributes.SELECT_CHECKBOX_ALIGNMENT,t),this.render())}get tooltipSelect(){return this._tooltipSelect}set tooltipSelect(t){t!==this._tooltipSelect&&(this._tooltipSelect=t,typeof t=="string"&&this._adapter.setHostAttribute(f.attributes.TOOLTIP_SELECT,t),this.render())}get tooltipSelectAll(){return this._tooltipSelectAll}set tooltipSelectAll(t){t!==this._tooltipSelectAll&&(this._tooltipSelectAll=t,this._adapter.setHostAttribute(f.attributes.TOOLTIP_SELECT_ALL,t),this.render())}get selectAllTemplate(){return this._selectAllTemplate}set selectAllTemplate(t){t!==this._selectAllTemplate&&(this._selectAllTemplate=t,this.render())}get rowCreated(){return this._rowCreatedCallback}set rowCreated(t){this._rowCreatedCallback=t}get cellCreated(){return this._cellCreatedCallback}set cellCreated(t){this._cellCreatedCallback=t}isRowSelected(t){let e=ha(Array.isArray(this._selectKey)?this._selectKey:[this._selectKey],t);return this.selectKey?!!this._selectionManager.getItems().find(a=>Nr(a,e)):this._selectionManager.exists(t)}getSelectedRows(){return this._selectionManager.getItems()}selectRows(t,e){if(!this._selectKey)throw new Error("You must set a selectKey to select rows.");(!this._multiselect||e)&&this.clearSelections(),t&&t.length&&(this._selectionManager.add(t),this._updateSelections(!e))}deselectRows(t){t&&t.length&&(this._selectionManager.remove(t),this._updateSelections(!1))}clearSelections(){let t=this._adapter.getTableElement();this._selectionManager.clear(),this._tableRows.forEach(e=>e.selected=!1),this._isAllSelected=!1,this._adapter.clearSelectedRows(t),this._select&&this._multiselect&&this._adapter.updateSelectAllState(t,!1)}hideColumn(t){let e=this._columnConfigurations[t];this._sortedColumnIndex===t&&(this._sortedColumnIndex=-1),this._hiddenColumnManager.exists(e)||(this._hiddenColumnManager.add(e),this.render())}showColumn(t){let e=this._columnConfigurations[t];this._hiddenColumnManager.exists(e)&&(this._hiddenColumnManager.remove(e),this.render())}isColumnHidden(t){let e=this._columnConfigurations[t];return!!e&&this._hiddenColumnManager.exists(e)}render(){this._adapter.createTable(this._tableConfiguration),this._renderSelections(),this._rendered=!0}_renderBody(){this._rendered&&(this._adapter.recreateTableBody(this._tableConfiguration),this._renderSelections())}_renderSelections(){this.select&&(this._isAllSelected=this._getSelectAllState(),this._multiselect&&this._adapter.updateSelectAllState(this._adapter.getTableElement(),this._isAllSelected,this._isIndeterminate(this._isAllSelected)));let t=this._selectionManager.getItems();t.length&&this._adapter.setSelectedRows(this._adapter.getTableElement(),this._selectKey,this._data,t,!1)}expandRow(t,e){if(!this._rendered)throw new Error("Cannot expand a row before the table has rendered.");if(t<0||t>this._tableRows.length)throw new Error(`Invalid row index: ${t}.`);return this._adapter.expandRow(this._tableConfiguration,t,e)}collapseRow(t){return!this._rendered||t<0||t>this._tableRows.length?Promise.resolve():this._adapter.collapseRow(this._tableConfiguration,t)}isRowExpanded(t){return this._adapter.isRowExpanded(this._tableConfiguration,t)}selectRowsByIndex(t,e){let a=t.map(o=>this._data[o]).filter(o=>!!o);this.selectRows(a,!e)}deselectRowsByIndex(t){let e=t.map(a=>this._data[a]).filter(a=>!!a);this.deselectRows(e)}_getSelectAllState(){return this._tableRows.length>0&&this._tableRows.every(t=>t.selected)}_updateSelections(t){this._tableRows.forEach(a=>a.selected=this._selectionManager.exists(a.data));let e=this._getSelectAllState();this._adapter.setSelectedRows(this._adapter.getTableElement(),this._selectKey,this._data,this._selectionManager.getItems(),t),(e!==this._isAllSelected||this._isIndeterminate(e))&&(this._isAllSelected=e,this._multiselect&&this._adapter.updateSelectAllState(this._adapter.getTableElement(),this._isAllSelected,this._isIndeterminate(this._isAllSelected)))}_onRowClick(t){if(t.stopImmediatePropagation(),t.target.matches(`[${f.attributes.SELECT_CHECKBOX}]`))return;let o=L2(t).filter(c=>c.nodeType===1).find(c=>c.hasAttribute(f.attributes.CUSTOM_CELL_TEMPLATE));if(o&&o.hasAttribute(f.attributes.CUSTOM_CELL_TEMPLATE_STOP_PROPAGATION))return;let{index:i,data:l}=this._getSelectedRowFromEvent(t),h={index:i,data:l};this._adapter.emitHostEvent(f.events.ROW_CLICK,h,!0,!1)}_onRowDoubleClick(t){if(t.stopPropagation(),t.target.matches(`[${f.attributes.SELECT_CHECKBOX}]`))return;let e=this._getSelectedRowFromEvent(t),a={index:e.index,data:e.data};this._adapter.emitHostEvent(f.events.SELECT_DOUBLE,a,!0,!1)}_onRowSelected(t){let e=this._getSelectedRowFromEvent(t);this._multiselect||this._tableRows.filter(l=>l.selected).forEach(l=>{Nr(l.data,ha(this._selectKey,e.data))||this.deselectRows([l.data])});let a=!this._selectionManager.exists(e.data);this._adapter.updateSelectedState(e.rowElement,a),a?this._selectionManager.add(e.data):this._selectionManager.remove(e.data),this._tableRows[e.index].selected=a;let o=[e.index],n=!1;if(this._multiselect){if(t.shiftKey&&this._previouslyClickedRow&&(o=this._shiftSelectRows(e),o.includes(this._previouslyClickedRow.index))){let l=o.indexOf(this._previouslyClickedRow.index);o.splice(l,1)}n=this._getSelectAllState(),this._adapter.updateSelectAllState(this._adapter.getTableElement(),n,this._isIndeterminate(n))}for(let i of o){let l=this._tableRows[i].data,c={selected:this._selectionManager.exists(l),index:i,data:l};this._adapter.emitHostEvent(f.events.SELECT,c,!0,!1)}if(this._isAllSelected!==n){this._isAllSelected=n;let i={status:this._isAllSelected,count:this._tableRows.filter(l=>l.selected).length,data:[...this._data],targetType:"row"};this._adapter.emitHostEvent(f.events.SELECT_ALL,i,!0,!1)}this._previouslyClickedRow=w({},e)}_getSelectedRowFromEvent(t){let a=L2(t).find(l=>l.tagName==="TR"),o=a.parentElement,n=this._getNonExpandedRows(o).findIndex(l=>l===a),i=this._tableRows[n].data;return{rowElement:a,index:n,data:i}}_getNonExpandedRows(t){return Array.from(t.rows).filter(e=>!e.classList.contains(f.classes.TABLE_ROW_EXPANDABLE_CONTENT))}_onSelectAll(t){t.stopPropagation(),this._isAllSelected=!this._isAllSelected;let e=this._adapter.getTableElement();this._adapter.updateSelectAllState(e,this._isAllSelected),this._tableRows.forEach((o,n)=>{o.selected=this._isAllSelected,this._isAllSelected?this._selectionManager.add(o.data):this._selectionManager.remove(o.data);let i=C1.getRowByIndex(e,n);i&&this._adapter.updateSelectedState(i,this._isAllSelected)});let a={status:this._isAllSelected,count:this._tableRows.filter(o=>o.selected).length,data:[...this._data],targetType:"select-all"};this._adapter.emitHostEvent(f.events.SELECT_ALL,a,!0,!1)}_onHeadRowContextMenu(t){t.ctrlKey&&t.preventDefault()}_onHeadRowMouseDown(t){if(t.button!==0)return;let e=L2(t),a=t.target,o=e.find(l=>l.tagName==="TR"),n=e.find(l=>l.tagName==="TH"),i=Array.from(o.cells).findIndex(l=>l===n);this._headCellMouseDownIndex=i,a!==n&&a.classList.contains(f.classes.TABLE_RESIZE_HANDLE)&&(this._resizeDescriptor={element:n,startWidth:n.offsetWidth,startX:t.pageX,width:n.offsetWidth,index:this._select?i-1:i},this._adapter.addDocumentListener("mousemove",this._documentMouseMoveListener),this._adapter.setResizeColumnVisibility(this._tableConfiguration,i,!0)),this._adapter.addDocumentListener("mouseup",this._documentMouseUpListener)}_onMouseMove(t){if(this._resizeDescriptor){let e=this._resizeDescriptor.startWidth+(t.pageX-this._resizeDescriptor.startX);e<this._minResizeWidth&&(e=this._minResizeWidth),this._resizeDescriptor.width=e,this._resizeDescriptor.element.style.width=`${e}px`,this._adapter.addTableClass(f.classes.TABLE_RESIZING)}}_onMouseUp(t){if(this._adapter.removeDocumentListener("mousemove",this._documentMouseMoveListener),this._adapter.removeDocumentListener("mouseup",this._documentMouseUpListener),this._adapter.removeTableClass(f.classes.TABLE_RESIZING),this._headCellMouseDownIndex!==void 0){if(this._resizeDescriptor){this._adapter.normalizeColumnWidths(this._tableConfiguration),this._adapter.setResizeColumnVisibility(this._tableConfiguration,this._headCellMouseDownIndex,!1);let e={index:this._resizeDescriptor.index,width:this._resizeDescriptor.width};this._adapter.emitHostEvent(f.events.COLUMN_RESIZE,e),this._resizeDescriptor=void 0}else this._tableConfiguration.tableElement.tHead.contains(t.target)&&(this._multiColumnSort?this._onMultiSort(this._headCellMouseDownIndex,t.ctrlKey):this._onSort(this._headCellMouseDownIndex));this._headCellMouseDownIndex=void 0}}_onSortableHeadCellKeydown(t){if(t.key===" "||t.key==="Enter"){let e=L2(t),a=e.find(i=>i.tagName==="TR"),o=e.find(i=>i.tagName==="TH"),n=Array.from(a.cells).findIndex(i=>i===o);this._onSort(n)}}_onSort(t){let e=this._select?t-1:t,a=e>=0?this._visibleColumnConfigurations[e]:null;if(!a||!a.sortable)return;let o="ASC",n=e===this._sortedColumnIndex,i=this._sortDirection==="ASC"||this._sortDirection===void 0,l=n&&this._sortDirection==="DESC";n&&i&&(o="DESC"),l&&!a.preventUnsort&&(o="UNSET");let h={direction:o,columnIndex:e};if(this._adapter.emitHostEvent(f.events.SORT,h,!0,!0)){if(n&&this._sortDirection==="DESC"&&!a.preventUnsort){this._adapter.removeColumnSort(this._adapter.getTableElement(),this._select?this._sortedColumnIndex+1:this._sortedColumnIndex),this._sortedColumnIndex=-1;return}this._sortDirection=o,e===this._sortedColumnIndex?this._adapter.setSortDirection(this._adapter.getTableElement(),t,this._sortDirection):(this._sortedColumnIndex>=0&&this._adapter.removeColumnSort(this._adapter.getTableElement(),this._select?this._sortedColumnIndex+1:this._sortedColumnIndex),this._sortedColumnIndex=e,this._adapter.setSortedColumn(this._adapter.getTableElement(),t,this._sortDirection))}}_onMultiSort(t,e){let a=this._select?t-1:t,o=a>=0?this._visibleColumnConfigurations[a]:null;if(!o||!o.sortable)return;let n=this._multiSortManager.sortedColumns,i=this._multiSortManager.getSortColumn(a);i?this._multiSortManager.updateSortColumn(i):e?this._multiSortManager.addSortColumn({direction:"DESC",columnIndex:a,propertyName:o.property}):(this._multiSortManager.clearMultiSort(),this._multiSortManager.addSortColumn({direction:"DESC",columnIndex:a,propertyName:o.property}));let l=this._multiSortManager.sortedColumns.map(d=>w({},d));if(!this._adapter.emitHostEvent(f.events.SORT,l,!0,!0)){this._multiSortManager.setSortColumns(n);return}let c=this._multiSortManager.sortedColumns.length>1;for(let d=0;d<this._visibleColumnConfigurations.length;d++){let u=this._select?d+1:d;if(!this._multiSortManager.isSortColumn(d))this._adapter.removeColumnSort(this._adapter.getTableElement(),u),C1.setMultiSortColumnSortNumber(this._adapter.getTableElement(),c,u,null);else{let _=this._multiSortManager.getSortColumn(d);_&&(this._adapter.setSortedColumn(this._adapter.getTableElement(),u,_.direction),C1.setMultiSortColumnSortNumber(this._adapter.getTableElement(),c,u,_.sortOrder||null))}}}_onFilter(t,e){let a={value:t,columnIndex:e};this._adapter.emitHostEvent(f.events.FILTER,a,!0,!1)}_shiftSelectRows(t){let e=[];if(this._previouslyClickedRow){let a=this._previouslyClickedRow.index,o=t.index,n=o>=a?a:o,i=o>=a?o:a;i+=i>n?1:0,n+=n>i?1:0;let l=d=>this.selectRows(d,!1),h=this._tableRows.find(d=>d.selected&&d.data===t.data),c=this._tableRows.find(d=>{var u;return d.data===((u=this._previouslyClickedRow)==null?void 0:u.data)&&!d.selected});(!h||c)&&(l=d=>this.deselectRows(d));for(let d=n;d<i;d++)e.push(d);l(this.data.filter((d,u)=>e.includes(u)))}return e}_isIndeterminate(t){return!t&&this.getSelectedRows().length>0&&this._data.length!==this.getSelectedRows().length}_applyRoomy(){this._adapter.setRoomy(this._adapter.getTableElement(),this._roomy),this._adapter.setHostAttribute(f.attributes.ROOMY,this._roomy.toString())}_refreshTableSort(){if(this._sortedColumnIndex=this._visibleColumnConfigurations.findIndex(t=>t.initialSort),this._sortedColumnIndex>=0&&this._sortDirection===void 0){let t=this._visibleColumnConfigurations[this._sortedColumnIndex];t.initialSort===!0&&t.sortDirection?this._sortDirection=t.sortDirection:typeof t.initialSort=="object"&&t.initialSort.direction&&(this._sortDirection=t.initialSort.direction)}if(this._multiColumnSort){let t=[];this._visibleColumnConfigurations.forEach((e,a)=>{typeof e.initialSort=="object"&&t.push({columnIndex:a,direction:e.initialSort.direction,sortOrder:e.initialSort.sortOrder,propertyName:e.property})}),this._multiSortManager.setSortColumns(t)}}};var q1=class extends M{static get observedAttributes(){return[f.attributes.SELECT,f.attributes.MULTISELECT,f.attributes.SELECT_KEY,f.attributes.DENSE,f.attributes.ROOMY,f.attributes.FILTER,f.attributes.FIXED_HEADERS,f.attributes.LAYOUT_TYPE,f.attributes.WRAP_CONTENT,f.attributes.RESIZABLE,f.attributes.MIN_RESIZE_WIDTH,f.attributes.ALLOW_ROW_CLICK,f.attributes.MULTI_COLUMN_SORT,f.attributes.SELECT_CHECKBOX_ALIGNMENT,f.attributes.TOOLTIP_SELECT,f.attributes.TOOLTIP_SELECT_ALL]}constructor(){super(),q.define(K5),this._core=new Ll(new yl(this))}initializedCallback(){this._core.initialize()}connectedCallback(){this._core.initialize()}disconnectedCallback(){this._core.destroy()}attributeChangedCallback(t,e,a){switch(t){case f.attributes.SELECT:this.select=p(a);break;case f.attributes.MULTISELECT:this.multiselect=p(a);break;case f.attributes.SELECT_KEY:this.selectKey=a;break;case f.attributes.DENSE:this.dense=p(a);break;case f.attributes.ROOMY:this.roomy=p(a);break;case f.attributes.FILTER:this.filter=p(a);break;case f.attributes.FIXED_HEADERS:this.fixedHeaders=p(a);break;case f.attributes.LAYOUT_TYPE:this.layoutType=a;break;case f.attributes.WRAP_CONTENT:this.wrapContent=p(a);break;case f.attributes.RESIZABLE:this.resizable=p(a);break;case f.attributes.MIN_RESIZE_WIDTH:this.minResizeWidth=W(a);break;case f.attributes.ALLOW_ROW_CLICK:this.allowRowClick=p(a);break;case f.attributes.MULTI_COLUMN_SORT:this.multiColumnSort=p(a);break;case f.attributes.SELECT_CHECKBOX_ALIGNMENT:this.selectCheckboxAlignment=this.getAttribute(f.attributes.SELECT_CHECKBOX_ALIGNMENT)||"center";break;case f.attributes.TOOLTIP_SELECT:this.tooltipSelect=a;break;case f.attributes.TOOLTIP_SELECT_ALL:this.tooltipSelectAll=a;break}}hideColumn(t){this._core.hideColumn(t)}showColumn(t){this._core.showColumn(t)}isColumnHidden(t){return this._core.isColumnHidden(t)}getSelectedRows(){return this._core.getSelectedRows()}selectRow(t){this._core.selectRows([t],!1)}selectRows(t,e=!1){this._core.selectRows(t,!e)}deselectRow(t){this._core.deselectRows([t])}deselectRows(t){this._core.deselectRows(t)}clearSelections(){this._core.clearSelections()}render(){this._core.render()}expandRow(t,e){return this._core.expandRow(t,e)}collapseRow(t){return this._core.collapseRow(t)}isRowExpanded(t){return this._core.isRowExpanded(t)}selectRowsByIndex(t,e){typeof t=="number"?this._core.selectRowsByIndex([t],e):Array.isArray(t)&&this._core.selectRowsByIndex(t,e)}deselectRowsByIndex(t){typeof t=="number"?this._core.deselectRowsByIndex([t]):Array.isArray(t)&&this._core.deselectRowsByIndex(t)}isRowSelected(t){return this._core.isRowSelected(t)}};s([v()],q1.prototype,"data",2),s([v()],q1.prototype,"columnConfigurations",2),s([v()],q1.prototype,"select",2),s([v()],q1.prototype,"multiselect",2),s([v()],q1.prototype,"selectKey",2),s([v()],q1.prototype,"tooltipSelect",2),s([v()],q1.prototype,"tooltipSelectAll",2),s([v()],q1.prototype,"dense",2),s([v()],q1.prototype,"roomy",2),s([v()],q1.prototype,"filter",2),s([v()],q1.prototype,"fixedHeaders",2),s([v()],q1.prototype,"layoutType",2),s([v()],q1.prototype,"wrapContent",2),s([v()],q1.prototype,"resizable",2),s([v()],q1.prototype,"minResizeWidth",2),s([v()],q1.prototype,"allowRowClick",2),s([v()],q1.prototype,"multiColumnSort",2),s([v()],q1.prototype,"rowCreated",2),s([v()],q1.prototype,"cellCreated",2),s([v()],q1.prototype,"selectAllTemplate",2),s([v()],q1.prototype,"selectCheckboxAlignment",2),q1=s([y({name:f.elementName,dependencies:[_t,X,J2,p1]})],q1);function b6(){x(q1)}var y6=`${b}tab-bar`,M6={DISABLED:"disabled",ACTIVE_TAB:"active-tab",VERTICAL:"vertical",STACKED:"stacked",CLUSTERED:"clustered",SECONDARY:"secondary",INVERTED:"inverted",AUTO_ACTIVATE:"auto-activate",SCROLL_BUTTONS:"scroll-buttons"},Xx=w({},M6),jx={ROOT:".forge-tab-bar",SCROLL_CONTAINER:".scroll-container",DEFAULT_SLOT:"slot:not([name])"},Zx={SCROLL_BUTTON:"scroll-button"},Qx={CHANGE:`${y6}-change`},Jx={SCROLL_MARGIN:48},T1={elementName:y6,observedAttributes:M6,attributes:Xx,events:Qx,selectors:jx,classes:Zx,numbers:Jx},i5=new Map([["default",new Set(["Home","End"])],["horizontal",new Set(["ArrowLeft","ArrowRight"])],["vertical",new Set(["ArrowUp","ArrowDown"])]]);var H6=`${b}tab`,L6={DISABLED:"disabled",SELECTED:"selected",VERTICAL:"vertical",STACKED:"stacked",SECONDARY:"secondary",INVERTED:"inverted"},tb=w({},L6),eb={INDICATOR:".indicator"},ab={},ob={SELECT:`${H6}-select`},rb={EASING:"cubic-bezier(0.4, 0, 0.2, 1)"},nb={ANIMATION_DURATION:250},F1={elementName:H6,observedAttributes:L6,attributes:tb,selectors:eb,classes:ab,events:ob,strings:rb,numbers:nb};var Il=class extends I{constructor(t){super(t),this._tabIndicatorElement=g(this._component,F1.selectors.INDICATOR),this._focusIndicatorElement=g(this._component,m1.elementName),this._stateLayerElement=g(this._component,M1.elementName)}initialize(){this._component.tabIndex=this._component.selected?0:-1,this._component.setAttribute("role","tab"),this._component.setAttribute("aria-selected",this._component.selected?"true":"false")}activateFocusIndicator(){this._focusIndicatorElement.active=!0}addInteractionListener(t,e){this._component.addEventListener(t,e)}setDisabled(t){this._stateLayerElement.disabled=t,this._component.tabIndex=t?-1:this._component.selected?0:-1,this._component.setAttribute("aria-disabled",String(t)),K(this._component,t,F1.attributes.DISABLED,String(t))}setSelected(t){this._component.tabIndex=t?0:-1,this._component.setAttribute("aria-selected",String(t))}animateSelected(){this._tabIndicatorElement.getAnimations().forEach(e=>e.cancel());let t=this._getKeyframes();t&&this._tabIndicatorElement.animate(t,{duration:F1.numbers.ANIMATION_DURATION,easing:F1.strings.EASING})}animateStateLayer(){this._stateLayerElement.playAnimation()}_getKeyframes(){var L;let t=window.matchMedia("(prefers-reduced-motion: reduce)").matches;if(!this._component.selected)return t?[{opacity:1},{transform:"none"}]:null;let e={},a=this._component.vertical,o=this._getSelectedTabIndicator(),n=(L=o==null?void 0:o.getBoundingClientRect())!=null?L:{},i=a?n.top:n.left,l=a?n.height:n.width,h=this._tabIndicatorElement.getBoundingClientRect(),c=a?h.top:h.left,d=a?h.height:h.width,u=a?"Y":"X",_=l/d;return!t&&i!==void 0&&c!==void 0&&!isNaN(_)?e.transform=`translate${u}(${(i-c).toFixed(4)}px) scale${u}(${_.toFixed(4)})`:e.opacity=0,[e,{transform:"none"}]}_getSelectedTabIndicator(){let t=M5(this._component,T1.elementName);if(t){let a=Array.from(t.querySelectorAll(F1.elementName)).find(o=>o.hasAttribute(F1.attributes.SELECTED));if(a)return g(a,F1.selectors.INDICATOR)}return null}};var Vl=class{constructor(t){this._adapter=t;this._selected=!1;this._disabled=!1;this._vertical=!1;this._stacked=!1;this._secondary=!1;this._inverted=!1;this._clickListener=()=>this._onClick(),this._keydownListener=e=>this._onKeydown(e)}initialize(){this._adapter.initialize(),this._adapter.addInteractionListener("click",this._clickListener),this._adapter.addInteractionListener("keydown",this._keydownListener)}setFocus(t){t!=null&&t.focusVisible&&this._adapter.activateFocusIndicator()}_onClick(){this._disabled||this._selected||this._dispatchSelectEvent()}_onKeydown(t){if(this._disabled||this._selected)return;(t.key===" "||t.key==="Enter")&&(t.preventDefault(),this._adapter.animateStateLayer(),this._dispatchSelectEvent())}_dispatchSelectEvent(){this._adapter.dispatchHostEvent(new CustomEvent(F1.events.SELECT,{bubbles:!0,composed:!0}))}get disabled(){return this._disabled}set disabled(t){this._disabled!==t&&(this._disabled=t,this._adapter.setDisabled(this._disabled),this._adapter.toggleHostAttribute(F1.attributes.DISABLED,this._disabled))}get selected(){return this._selected}set selected(t){this._selected!==t&&(this._selected=t,this._adapter.setSelected(this._selected),this._adapter.animateSelected(),this._adapter.toggleHostAttribute(F1.attributes.SELECTED,this._selected))}get vertical(){return this._vertical}set vertical(t){this._vertical!==t&&(this._vertical=t,this._adapter.toggleHostAttribute(F1.attributes.VERTICAL,this._vertical))}get stacked(){return this._stacked}set stacked(t){this._stacked!==t&&(this._stacked=t,this._adapter.toggleHostAttribute(F1.attributes.STACKED,this._stacked))}get secondary(){return this._secondary}set secondary(t){this._secondary!==t&&(this._secondary=t,this._adapter.toggleHostAttribute(F1.attributes.SECONDARY,this._secondary))}get inverted(){return this._inverted}set inverted(t){this._inverted!==t&&(this._inverted=t,this._adapter.toggleHostAttribute(F1.attributes.INVERTED,this._inverted))}};var ib='<template><div class="forge-tab" part="container"><span class="content" part="content"><slot name="start"><slot name="leading"></slot></slot><span class="label" part="label"><slot></slot></span><slot name="end"><slot name="trailing"></slot></slot><span class="indicator" part="indicator"></span></span><forge-state-layer exportparts="surface:state-layer" target=":host"></forge-state-layer><forge-focus-indicator part="focus-indicator" target=":host" inward></forge-focus-indicator></div></template>',sb=':host{display:inline-flex;outline:0;-webkit-tap-highlight-color:transparent;vertical-align:middle}:host([hidden]){display:none}.forge-tab{--_tab-active-color:var(--forge-tab-active-color, var(--forge-theme-primary, #3f51b5));--_tab-inactive-color:var(--forge-tab-inactive-color, var(--forge-theme-text-medium, rgba(0, 0, 0, 0.6)));--_tab-height:var(--forge-tab-height, 48px);--_tab-stacked-height:var(--forge-tab-stacked-height, 64px);--_tab-padding-block:var(--forge-tab-padding-block, 0);--_tab-padding-inline:var(--forge-tab-padding-inline, 0);--_tab-disabled-opacity:var(--forge-tab-disabled-opacity, 0.38);--_tab-indicator-color:var(--forge-tab-indicator-color, var(--_tab-active-color));--_tab-indicator-height:var(--forge-tab-indicator-height, 3px);--_tab-indicator-shape:var(--forge-tab-indicator-shape, 3px 3px 0 0);--_tab-vertical-indicator-shape:var(--forge-tab-vertical-indicator-shape, 3px 0 0 3px);--_tab-secondary-indicator-height:var(--forge-tab-secondary-indicator-height, 2px);--_tab-secondary-indicator-shape:var(--forge-tab-secondary-indicator-shape, 0);--_tab-inverted-indicator-shape:var(--forge-tab-inverted-indicator-shape, 0 0 3px 3px);--_tab-vertical-inverted-indicator-shape:var(--forge-tab-vertical-inverted-indicator-shape, 0 3px 3px 0);--_tab-container-color:var(--forge-tab-container-color, transparent);--_tab-container-height:var(--forge-tab-container-height, var(--_tab-height));--_tab-container-shape:var(--forge-tab-container-shape, 0);--_tab-content-height:var(--forge-tab-content-height, var(--_tab-height));--_tab-content-spacing:var(--forge-tab-content-spacing, var(--forge-spacing-xsmall, 8px));--_tab-content-padding:var(--forge-tab-content-padding, var(--forge-spacing-xxsmall, 4px));--_tab-content-padding-block:var(--forge-tab-content-padding-block, var(--_tab-content-padding));--_tab-content-padding-inline:var(--forge-tab-content-padding-inline, var(--forge-spacing-medium, 16px));--_tab-content-padding-inline-secondary:var(--forge-tab-content-padding-inline-secondary, var(--forge-spacing-medium, 16px));--_tab-active-focus-icon-color:var(--forge-tab-active-focus-icon-color, var(--_tab-active-color));--_tab-active-hover-icon-color:var(--forge-tab-active-hover-icon-color, var(--_tab-active-color));--_tab-active-icon-color:var(--forge-tab-active-icon-color, var(--_tab-active-color));--_tab-active-pressed-icon-color:var(--forge-tab-active-pressed-icon-color, var(--_tab-active-color));--_tab-icon-size:var(--forge-tab-icon-size, 24px);--_tab-focus-icon-color:var(--forge-tab-focus-icon-color, var(--_tab-inactive-color));--_tab-hover-icon-color:var(--forge-tab-hover-icon-color, var(--_tab-inactive-color));--_tab-icon-color:var(--forge-tab-icon-color, var(--_tab-inactive-color));--_tab-pressed-icon-color:var(--forge-tab-pressed-icon-color, var(--_tab-inactive-color));--_tab-active-focus-label-text-color:var(--forge-tab-active-focus-label-text-color, var(--_tab-active-color));--_tab-active-hover-label-text-color:var(--forge-tab-active-hover-label-text-color, var(--_tab-active-color));--_tab-active-label-text-color:var(--forge-tab-active-label-text-color, var(--_tab-active-color));--_tab-active-pressed-label-text-color:var(--forge-tab-active-pressed-label-text-color, var(--_tab-active-color));--_tab-focus-label-text-color:var(--forge-tab-focus-label-text-color, var(--_tab-inactive-color));--_tab-hover-label-text-color:var(--forge-tab-hover-label-text-color, var(--_tab-inactive-color));--_tab-label-text-color:var(--forge-tab-label-text-color, var(--_tab-inactive-color));--_tab-pressed-label-text-color:var(--forge-tab-pressed-label-text-color, var(--_tab-inactive-color))}.forge-tab{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-button-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-button-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-button-font-size-scale, .875)));font-weight:var(--forge-typography-button-font-weight,500);line-height:var(--forge-typography-button-line-height, normal);letter-spacing:var(--forge-typography-button-letter-spacing, .0714285714em);text-transform:var(--forge-typography-button-text-transform,inherit);text-decoration:var(--forge-typography-button-text-decoration,inherit);display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;border:none;outline:0;user-select:none;-webkit-appearance:none;vertical-align:middle;background:0 0;text-decoration:none;width:100%;position:relative;padding-block:var(--_tab-padding-block);padding-inline:var(--_tab-padding-inline);margin:0;z-index:0;background-color:var(--_tab-container-color);color:var(--_tab-label-text-color);min-height:var(--_tab-container-height)}.forge-tab::-moz-focus-inner{padding:0;border:0}.forge-tab ::slotted([slot=leading]),.forge-tab ::slotted([slot=trailing]){display:inline-flex;position:relative;writing-mode:horizontal-tb;fill:currentColor;color:var(--_tab-icon-color);font-size:var(--_tab-icon-size);width:var(--_tab-icon-size);height:var(--_tab-icon-size)}.forge-tab:hover{color:var(--_tab-hover-label-text-color);cursor:pointer}.forge-tab:hover ::slotted([slot=leading]),.forge-tab:hover ::slotted([slot=trailing]){color:var(--_tab-hover-icon-color)}.forge-tab .content{position:relative;box-sizing:border-box;display:inline-flex;flex-direction:row;align-items:center;justify-content:center;white-space:nowrap;transition:150ms color linear;max-height:calc(var(--_tab-content-height) + 2 * var(--_tab-content-padding-block));min-height:var(--_tab-content-height);width:100%;padding-block:var(--_tab-content-padding-block);padding-inline:var(--_tab-content-padding-inline);gap:var(--_tab-content-spacing)}.forge-tab .content .label{display:inline-block;line-height:1}.forge-tab .indicator{position:absolute;box-sizing:border-box;z-index:-1;transform-origin:bottom left;background:var(--_tab-indicator-color);border-radius:var(--_tab-indicator-shape);height:var(--_tab-indicator-height);min-width:100%;inset:auto 0 0;opacity:0}::slotted(*),:host{white-space:nowrap}forge-focus-indicator{--forge-focus-indicator-color:var(--_tab-active-color);--forge-focus-indicator-shape:8px}forge-state-layer{--forge-state-layer-color:var(--_tab-inactive-color)}:host(:focus) .forge-tab{color:var(--_tab-focus-label-text-color)}:host(:focus) .forge-tab ::slotted([slot=leading]),:host(:focus) .forge-tab ::slotted([slot=trailing]){color:var(--_tab-focus-icon-color)}:host(:active) .forge-tab{color:var(--_tab-pressed-label-text-color);outline:0}:host(:active) .forge-tab ::slotted([slot=leading]),:host(:active) .forge-tab ::slotted([slot=trailing]){color:var(--_tab-pressed-icon-color)}:host([disabled]){cursor:not-allowed}:host([disabled]) .forge-tab{opacity:var(--_tab-disabled-opacity);pointer-events:none}:host([selected]) .forge-tab{color:var(--_tab-active-label-text-color)}:host([selected]) .forge-tab ::slotted([slot=end]),:host([selected]) .forge-tab ::slotted([slot=leading]),:host([selected]) .forge-tab ::slotted([slot=start]),:host([selected]) .forge-tab ::slotted([slot=trailing]){color:var(--_tab-active-icon-color)}:host([selected]) .forge-tab:hover{color:var(--_tab-active-hover-label-text-color)}:host([selected]) .forge-tab:hover ::slotted([slot=end]),:host([selected]) .forge-tab:hover ::slotted([slot=leading]),:host([selected]) .forge-tab:hover ::slotted([slot=start]),:host([selected]) .forge-tab:hover ::slotted([slot=trailing]){color:var(--_tab-active-hover-icon-color)}:host([selected]) .forge-tab .indicator{opacity:1}:host([selected]) forge-state-layer{--forge-state-layer-color:var(--_tab-active-color)}:host([selected]:not([vertical])) forge-focus-indicator{--forge-focus-indicator-offset-block:0 calc(var(--_tab-indicator-height) + 1px)}:host([selected]:focus) .forge-tab{color:var(--_tab-active-focus-label-text-color)}:host([selected]:focus) .forge-tab ::slotted([slot=leading]),:host([selected]:focus) .forge-tab ::slotted([slot=trailing]){color:var(--_tab-active-focus-icon-color)}:host([selected]:active) .forge-tab{color:var(--_tab-active-pressed-label-text-color)}:host([selected]:active) .forge-tab ::slotted([slot=leading]),:host([selected]:active) .forge-tab ::slotted([slot=trailing]){color:var(--_tab-active-pressed-icon-color)}:host([stacked]) .forge-tab{--_tab-height:var(--_tab-stacked-height)}:host([stacked]) .forge-tab .content{max-height:none;flex-direction:column;height:100%}:host([vertical]) .forge-tab{--_tab-padding-inline:var(--forge-tab-padding-inline, 0);width:100%;flex-direction:row;border-bottom:none}:host([vertical]) .forge-tab .content{width:100%;min-height:100%}:host([vertical]) .forge-tab .indicator{height:100%;min-width:var(--_tab-indicator-height);inset:0 0 0 auto}:host([vertical]) forge-focus-indicator{--forge-focus-indicator-offset-inline:0 calc(var(--_tab-indicator-height) + 1px)}:host([vertical]) .forge-tab{--_tab-indicator-shape:var(--_tab-vertical-indicator-shape)}:host([inverted]) .forge-tab{--_tab-indicator-shape:var(--_tab-inverted-indicator-shape)}:host([inverted]) .indicator{inset:0 0 auto;transform-origin:top left}:host([inverted][vertical]) .forge-tab{--_tab-indicator-shape:var(--_tab-vertical-inverted-indicator-shape)}:host([inverted][vertical]) .indicator{inset:0 auto 0 0}',kt=class extends M{static get observedAttributes(){return Object.values(F1.observedAttributes)}constructor(){super(),H(this,ib,sb),this._core=new Vl(new Il(this))}connectedCallback(){this._core.initialize()}attributeChangedCallback(t,e,a){switch(t){case F1.observedAttributes.DISABLED:this.disabled=p(a);break;case F1.observedAttributes.SELECTED:this.selected=p(a);break;case F1.observedAttributes.VERTICAL:this.vertical=p(a);break;case F1.observedAttributes.STACKED:this.stacked=p(a);break;case F1.observedAttributes.SECONDARY:this.secondary=p(a);break;case F1.observedAttributes.INVERTED:this.inverted=p(a);break}}focus(t){super.focus(t),this._core.setFocus(t)}};s([v()],kt.prototype,"disabled",2),s([v()],kt.prototype,"selected",2),s([v()],kt.prototype,"vertical",2),s([v()],kt.prototype,"stacked",2),s([v()],kt.prototype,"secondary",2),s([v()],kt.prototype,"inverted",2),kt=s([y({name:F1.elementName,dependencies:[Q,r1]})],kt);function I6(){x(kt)}var El=class extends I{constructor(t){super(t),this._defaultSlotElement=g(this._component,T1.selectors.DEFAULT_SLOT),this._rootElement=g(this._component,T1.selectors.ROOT),this._scrollContainer=g(this._component,T1.selectors.SCROLL_CONTAINER)}initializeContainerSizeObserver(t){this._resizeObserver=new ResizeObserver(()=>t()),this._resizeObserver.observe(this._component)}initializeScrollObserver(t){this._scrollContainer.addEventListener("scroll",t,{passive:!0})}destroyContainerSizeObserver(){var t;(t=this._resizeObserver)==null||t.disconnect(),this._resizeObserver=void 0}destroyScrollObserver(t){this._scrollContainer.removeEventListener("scroll",t,{passive:!0})}setVertical(t){K(this._component,!!t,"aria-orientation","vertical")}setScrollBackwardButtonListener(t){var e;(e=this._backwardScrollButton)==null||e.addEventListener("click",t)}setScrollForwardButtonListener(t){var e;(e=this._forwardScrollButton)==null||e.addEventListener("click",t)}addSlotListener(t){this._defaultSlotElement.addEventListener("slotchange",t)}getTabs(){return Array.from(this._component.querySelectorAll(F1.elementName))}async tryScrollTabIntoView(t){if(await new Promise(requestAnimationFrame),!t.isConnected||!t.selected&&!t.matches(":focus"))return;let e=this._component.vertical,a=e?this._scrollContainer.offsetTop:this._scrollContainer.offsetLeft,o=e?t.offsetTop:t.offsetLeft,n=e?t.offsetHeight:t.offsetWidth,i=e?this._scrollContainer.scrollTop:this._scrollContainer.scrollLeft,l=e?this._scrollContainer.offsetHeight:this._scrollContainer.offsetWidth,h=o-(T1.numbers.SCROLL_MARGIN+a),c=o+n-l+(T1.numbers.SCROLL_MARGIN-a),d=Math.min(h,Math.max(c,i)),u=t.matches(":focus")?"smooth":"instant";this._scrollContainer.scrollTo({behavior:u,[e?"left":"top"]:0,[e?"top":"left"]:d})}getScrollState(){let{scrollHeight:t,scrollWidth:e,scrollLeft:a,scrollTop:o,clientHeight:n,clientWidth:i}=this._scrollContainer,l=this._component.vertical?n+o:i+a,h=this._component.vertical?t:e,c=l===h;return{isScrolledStart:(this._component.vertical?l-n:l-i)===0,isScrolledEnd:c}}isScrollable(){let{scrollHeight:t,scrollWidth:e,clientHeight:a,clientWidth:o}=this._scrollContainer;return this._component.vertical?t>a:e>o}setScrollButtons(t){var e,a;t?(this._backwardScrollButton=this._createScrollButton(this._component.vertical?Go.name:s0.name),this._rootElement.insertAdjacentElement("afterbegin",this._backwardScrollButton),this._forwardScrollButton=this._createScrollButton(this._component.vertical?i0.name:fe.name),this._rootElement.insertAdjacentElement("beforeend",this._forwardScrollButton)):((e=this._backwardScrollButton)==null||e.remove(),this._backwardScrollButton=void 0,(a=this._forwardScrollButton)==null||a.remove(),this._forwardScrollButton=void 0)}syncScrollButtons({backwardEnabled:t,forwardEnabled:e}){var a,o;if(this._backwardScrollButton){let n=!t;n&&this._backwardScrollButton.matches(":focus")&&((a=this._forwardScrollButton)==null||a.focus()),this._backwardScrollButton.disabled=n,this._backwardScrollButton.tabIndex=-1}if(this._forwardScrollButton){let n=!e;n&&this._forwardScrollButton.matches(":focus")&&((o=this._backwardScrollButton)==null||o.focus()),this._forwardScrollButton.disabled=n,this._forwardScrollButton.tabIndex=-1}}scroll(t){let e=this._component.vertical?this._scrollContainer.offsetHeight:this._scrollContainer.offsetWidth;this._scrollContainer.scrollBy({behavior:"smooth",[this._component.vertical?"top":"left"]:e*(t==="forward"?1:-1)})}updateScrollButtonIcons(t){var o,n;let e=(o=this._backwardScrollButton)==null?void 0:o.querySelector("forge-icon");e&&(e.name=t?Go.name:s0.name);let a=(n=this._forwardScrollButton)==null?void 0:n.querySelector("forge-icon");a&&(a.name=t?i0.name:fe.name)}_createScrollButton(t){let e=document.createElement("forge-icon-button");e.classList.add(T1.classes.SCROLL_BUTTON),e.shape="squared",e.type="button",e.tabIndex=-1,e.setAttribute("aria-hidden","true");let a=document.createElement("forge-icon");return a.name=t,e.appendChild(a),e}};var Cl=class{constructor(t){this._adapter=t;this._isInitialized=!1;this._disabled=!1;this._vertical=!1;this._clustered=!1;this._stacked=!1;this._secondary=!1;this._inverted=!1;this._autoActivate=!1;this._scrollButtons=!1;this._tabs=[];this._scrollButtonsVisible=!1;this._tabsChangedListener=()=>this._onTabsChanged(),this._tabSelectedListener=e=>this._onTabSelected(e),this._keydownListener=e=>this._onKeydown(e),this._resizeListener=()=>this._onResize(),this._scrollListener=()=>this._onScroll(),this._scrollBackwardButtonListener=()=>this._onScrollBackward(),this._scrollForwardButtonListener=()=>this._onScrollForward()}initialize(){this._adapter.addSlotListener(this._tabsChangedListener),this._adapter.addHostListener(F1.events.SELECT,this._tabSelectedListener),this._adapter.addHostListener("keydown",this._keydownListener),this._adapter.setVertical(this._vertical),this._scrollButtons&&(this._adapter.initializeContainerSizeObserver(this._resizeListener),this._adapter.initializeScrollObserver(this._scrollListener),this._updateScrollState()),this._tryScrollActiveTabIntoView(),this._isInitialized=!0}destroy(){this._adapter.destroyContainerSizeObserver(),this._adapter.destroyScrollObserver(this._scrollListener),this._isInitialized=!1}async _onTabsChanged(){this._tabs=this._adapter.getTabs(),this._syncTabState(),this._tryScrollActiveTabIntoView()}_onTabSelected(t){this._selectTab({tab:t.target,focusTab:!0})}async _onKeydown(t){var n,i;let e=this._vertical?"vertical":"horizontal";if(!(((n=i5.get("default"))==null?void 0:n.has(t.key))||((i=i5.get(e))==null?void 0:i.has(t.key))))return;t.preventDefault();let o=-1;if(t.key==="Home")o=this._tabs.findIndex(l=>!l.disabled);else if(t.key==="End")o=this._tabs.reduceRight((l,h,c)=>!h.disabled&&l===-1?c:l,-1);else{let l=this._tabs.findIndex(d=>d.matches(":focus")),h=t.key==="ArrowLeft"||t.key==="ArrowUp",c=d=>{var _;o=d+(h?-1:1),o=o<0?this._tabs.length-1:o%this._tabs.length,!this._tabs.every(L=>L.disabled)&&((_=this._tabs[o])!=null&&_.disabled)&&c(o)};c(l)}o!==-1&&(this._autoActivate?this._selectTab({tab:this._tabs[o],focusTab:!0}):(this._tabs[o].focus({preventScroll:!0,focusVisible:!0}),await this._adapter.tryScrollTabIntoView(this._tabs[o])))}async _selectTab({tab:t,emitEvent:e=!0,focusTab:a=!1}){if(!t||t.disabled)return;let o=this._tabs.find(n=>n.selected);if(o!==t){if(e){let n=this._tabs.indexOf(t),i=new CustomEvent(T1.events.CHANGE,{detail:{index:n},bubbles:!0,cancelable:!0,composed:!0});if(this._adapter.dispatchHostEvent(i),i.defaultPrevented)return}t.selected=!0,a&&t.focus({preventScroll:!0}),await this._adapter.tryScrollTabIntoView(t),o&&(o.selected=!1),this._activeTab=this._tabs.indexOf(t)}}_syncTabState(){this._tabs.forEach((t,e)=>{t.selected=e===this._activeTab,this._disabled&&(t.disabled=this._disabled),t.vertical=this._vertical,t.stacked=this._stacked,t.secondary=this._secondary,t.inverted=this._inverted})}_onResize(){this._detectScrollableStatus()}_onScroll(){this._updateScrollState()}_onScrollBackward(){this._adapter.scroll("backward")}_onScrollForward(){this._adapter.scroll("forward")}_detectScrollableStatus(){let t=this._adapter.isScrollable();this._scrollButtonsVisible!==t&&(this._adapter.setScrollButtons(t),t?(this._adapter.initializeScrollObserver(this._scrollListener),this._updateScrollState(),this._adapter.setScrollBackwardButtonListener(this._scrollBackwardButtonListener),this._adapter.setScrollForwardButtonListener(this._scrollForwardButtonListener)):this._adapter.destroyScrollObserver(this._scrollListener),this._scrollButtonsVisible=t)}_updateScrollState(){let{isScrolledEnd:t,isScrolledStart:e}=this._adapter.getScrollState(),a={backwardEnabled:!e,forwardEnabled:!t};this._adapter.syncScrollButtons(a)}_tryScrollActiveTabIntoView(){this._tabScrollAnimationFrame&&window.cancelAnimationFrame(this._tabScrollAnimationFrame),this._tabScrollAnimationFrame=window.requestAnimationFrame(()=>{this._tabScrollAnimationFrame=void 0,this._adapter.isScrollable()&&typeof this._activeTab=="number"&&this._activeTab>=0&&this._tabs[this._activeTab]&&this._adapter.tryScrollTabIntoView(this._tabs[this._activeTab])})}get disabled(){return this._disabled}set disabled(t){t=!!t,this._disabled!==t&&(this._disabled=t,this._tabs.forEach(e=>e.disabled=this._disabled),this._adapter.toggleHostAttribute(T1.attributes.DISABLED,this._disabled))}get activeTab(){return this._activeTab}set activeTab(t){if(this._activeTab!==t)if(this._activeTab=t!=null?t:void 0,typeof this._activeTab=="number"){let e=this._tabs[this._activeTab];this._selectTab({tab:e,emitEvent:!1,focusTab:!1}),this._adapter.setHostAttribute(T1.attributes.ACTIVE_TAB,String(this._activeTab))}else this._tabs.forEach(e=>e.selected=!1),this._adapter.removeHostAttribute(T1.attributes.ACTIVE_TAB)}get vertical(){return this._vertical}set vertical(t){t=!!t,this._vertical!==t&&(this._vertical=t,this._isInitialized&&this._adapter.setVertical(this._vertical),this._tabs.forEach(e=>e.vertical=this._vertical),this._scrollButtonsVisible&&this._adapter.updateScrollButtonIcons(this._vertical),this._adapter.toggleHostAttribute(F1.attributes.VERTICAL,this._vertical))}get clustered(){return this._clustered}set clustered(t){t=!!t,this._clustered!==t&&(this._clustered=t,this._adapter.toggleHostAttribute(T1.attributes.CLUSTERED,this._clustered))}get stacked(){return this._stacked}set stacked(t){t=!!t,this._stacked!==t&&(this._stacked=t,this._tabs.forEach(e=>e.stacked=this._stacked),this._adapter.toggleHostAttribute(T1.attributes.STACKED,this._stacked))}get secondary(){return this._secondary}set secondary(t){t=!!t,this._secondary!==t&&(this._secondary=t,this._tabs.forEach(e=>e.secondary=this._secondary),this._adapter.toggleHostAttribute(T1.attributes.SECONDARY,this._secondary))}get inverted(){return this._inverted}set inverted(t){t=!!t,this._inverted!==t&&(this._inverted=t,this._tabs.forEach(e=>e.inverted=this._inverted),this._adapter.toggleHostAttribute(T1.attributes.INVERTED,this._inverted))}get autoActivate(){return this._autoActivate}set autoActivate(t){t=!!t,this._autoActivate!==t&&(this._autoActivate=t,this._adapter.toggleHostAttribute(T1.attributes.AUTO_ACTIVATE,this._autoActivate))}get scrollButtons(){return this._scrollButtons}set scrollButtons(t){t=!!t,this._scrollButtons!==t&&(this._scrollButtons=!!t,this._isInitialized&&(this._scrollButtons?(this._adapter.initializeContainerSizeObserver(this._resizeListener),this._adapter.initializeScrollObserver(this._scrollListener),this._detectScrollableStatus(),this._updateScrollState(),this._tryScrollActiveTabIntoView()):(this._adapter.destroyContainerSizeObserver(),this._adapter.destroyScrollObserver(this._scrollListener),this._adapter.setScrollButtons(this._scrollButtons),this._scrollButtonsVisible=!1)),this._adapter.setHostAttribute(T1.attributes.SCROLL_BUTTONS,String(this._scrollButtons)))}};var lb='<template><div class="forge-tab-bar" part="container"><div class="scroll-container" part="scroll-container"><slot></slot></div></div></template>',vb=":host{position:relative;display:block}:host([hidden]){display:none}.forge-tab-bar{--_tab-bar-justify:var(--forge-tab-bar-justify, space-between);--_tab-bar-stretch:var(--forge-tab-bar-stretch, 1);--_tab-bar-divider-color:var(--forge-tab-bar-divider-color, var(--forge-theme-outline, #e0e0e0));--_tab-bar-divider-thickness:var(--forge-tab-bar-divider-thickness, 1px)}.forge-tab-bar{position:relative;display:grid;grid-template-columns:auto 1fr auto;max-width:100%;max-height:100%;align-items:center;border-bottom:var(--_tab-bar-divider-thickness) solid var(--_tab-bar-divider-color)}.scroll-container{position:relative;display:flex;justify-content:var(--_tab-bar-justify);align-items:flex-end;box-sizing:border-box;overflow:auto;scroll-behavior:smooth;scrollbar-width:none;grid-column:2}.scroll-container::-webkit-scrollbar{display:none}::slotted(*){flex:var(--_tab-bar-stretch);align-self:stretch}::slotted([selected]){z-index:1}forge-icon-button{--forge-icon-button-shape-squared:0px}:host([vertical]) .forge-tab-bar{grid-template-columns:none;grid-template-rows:auto 1fr auto;align-items:initial;border-bottom:none;border-right:var(--_tab-bar-divider-thickness) solid var(--_tab-bar-divider-color);height:100%}:host([vertical]) .scroll-container{display:inline-flex;flex-direction:column;align-items:stretch;gap:0;grid-column:auto;grid-row:2}:host([vertical]) .scroll-button{justify-self:center}:host([inverted]:not([vertical])) .forge-tab-bar{border-bottom:none;border-top:variale(divider-thickness) solid var(--_tab-bar-divider-color)}:host([inverted][vertical]) .forge-tab-bar{border-bottom:none;border-top:var(--_tab-bar-divider-thickness) solid var(--_tab-bar-divider-color)}:host([clustered]) .forge-tab-bar{--_tab-bar-justify:var(--forge-tab-bar-justify, flex-start);--_tab-bar-stretch:var(--forge-tab-bar-stretch, 0)}:host([clustered=start]) .forge-tab-bar{--_tab-bar-justify:var(--forge-tab-bar-justify, flex-start)}:host([clustered=center]) .forge-tab-bar{--_tab-bar-justify:var(--forge-tab-bar-justify, center)}:host([clustered=end]) .forge-tab-bar{--_tab-bar-justify:var(--forge-tab-bar-justify, flex-end)}",Mt=class extends L1(H1(M)){static get observedAttributes(){return Object.values(T1.observedAttributes)}constructor(){super(),q.define([s0,fe,Go,i0]),H(this,lb,vb),this._core=new Cl(new El(this))}connectedCallback(){this[P]({role:"tablist"},{setAttribute:!0}),this._core.initialize()}disconnectedCallback(){this._core.destroy()}attributeChangedCallback(t,e,a){switch(t){case T1.observedAttributes.DISABLED:this.disabled=p(a);break;case T1.observedAttributes.ACTIVE_TAB:this.activeTab=a?W(a):void 0;break;case T1.observedAttributes.VERTICAL:this.vertical=p(a);break;case T1.observedAttributes.CLUSTERED:this.clustered=p(a);break;case T1.observedAttributes.STACKED:this.stacked=p(a);break;case T1.observedAttributes.SECONDARY:this.secondary=p(a);break;case T1.observedAttributes.INVERTED:this.inverted=p(a);break;case T1.observedAttributes.AUTO_ACTIVATE:this.autoActivate=p(a);break;case T1.observedAttributes.SCROLL_BUTTONS:this.scrollButtons=p(a);break}}};s([v()],Mt.prototype,"disabled",2),s([v()],Mt.prototype,"activeTab",2),s([v()],Mt.prototype,"vertical",2),s([v()],Mt.prototype,"clustered",2),s([v()],Mt.prototype,"stacked",2),s([v()],Mt.prototype,"secondary",2),s([v()],Mt.prototype,"inverted",2),s([v()],Mt.prototype,"autoActivate",2),s([v()],Mt.prototype,"scrollButtons",2),Mt=s([y({name:T1.elementName,dependencies:[kt,n1,X]})],Mt);function V6(){x(Mt)}var Cr=`${b}time-picker`,E6={TOGGLE:"forge-time-picker-toggle",VALUE:"value",OPEN:"open",ALLOW_SECONDS:"allow-seconds",MASKED:"masked",SHOW_MASK_FORMAT:"show-mask-format",USE_24_HOUR_TIME:"use-24-hour-time",ALLOW_INVALID_TIME:"allow-invalid-time",MIN:"min",MAX:"max",START_TIME:"start-time",STEP:"step",ALLOW_INPUT:"allow-input",SHOW_NOW:"show-now",SHOW_HOUR_OPTIONS:"show-hour-options",DISABLED:"disabled",POPUP_CLASSES:"popup-classes",ALLOW_DROPDOWN:"allow-dropdown"},hb={INPUT:"input, input[forge-time-picker-input]",TOGGLE:`[${E6.TOGGLE}]`},cb={OPEN:`${Cr}-open`,CLOSE:`${Cr}-close`,INPUT:`${Cr}-input`,CHANGE:`${Cr}-change`},pb={DEFAULT_MINUTE_STEP:60,MAX_DAY_MILLIS:864e5,MAX_DAY_MINUTES:1440},U={elementName:Cr,attributes:E6,selectors:hb,events:cb,numbers:pb};var zl=class extends I{constructor(t){super(t)}get inputElement(){return this._inputElement}initialize(){this._inputElement=this._component.querySelector(U.selectors.INPUT)}initializeMask(t){this.destroyMask(),this._inputElement&&(this._inputMask=new dn(this._inputElement,t))}destroy(){this._targetElement=void 0,this._toggleElement=void 0,this._inputElement=void 0}destroyMask(){var t;(t=this._inputMask)==null||t.destroy(),this._inputMask=void 0}initializeAccessibility(t){var e,a,o,n,i,l,h,c,d;(e=this._inputElement)==null||e.setAttribute("autocomplete","off"),(a=this._inputElement)==null||a.setAttribute("autocorrect","off"),(o=this._inputElement)==null||o.setAttribute("autocapitalize","off"),(n=this._inputElement)==null||n.setAttribute("spellcheck","false"),(i=this._inputElement)==null||i.setAttribute("role","combobox"),(l=this._inputElement)==null||l.setAttribute("aria-live","assertive"),(h=this._inputElement)==null||h.setAttribute("aria-atomic","true"),(c=this._inputElement)==null||c.setAttribute("aria-haspopup","true"),(d=this._inputElement)==null||d.setAttribute("aria-expanded","false"),Oe(),this._inputElement&&Zt(this._inputElement)}addInputListener(t,e,a){var o;(o=this._inputElement)==null||o.addEventListener(t,e,{capture:a})}removeInputListener(t,e,a){var o;(o=this._inputElement)==null||o.removeEventListener(t,e,{capture:a})}addToggleListener(t,e){this._toggleElement&&this._toggleElement.addEventListener(t,e)}removeToggleListener(t,e){this._toggleElement&&this._toggleElement.removeEventListener(t,e)}hasInputElement(){return!!this._inputElement}tryCreateToggle(){let t=this._component.querySelector(V1.elementName),e=this._component.querySelector(U.selectors.TOGGLE);if(t){let a=t.querySelector(`${J.elementName}[slot=trailing]`);if(a||e){this._toggleElement=a||e;return}let o=document.createElement(J.elementName);o.slot="trailing",o.density="medium",o.type="button",o.tabIndex=-1,o.style.marginRight="4px",o.setAttribute("aria-label","Toggle time dropdown");let n=document.createElement(h1.elementName);n.name="clock_outline",o.appendChild(n),t.appendChild(o),this._toggleElement=o}else e&&(this._toggleElement=e)}tryFocusInput(){var t;(t=this._inputElement)==null||t.select()}tryBlurInput(){var t;(t=this._inputElement)==null||t.blur()}selectInputText(){var t;(t=this._inputElement)==null||t.select()}isInputDisabled(){var t,e;return(e=(t=this._inputElement)==null?void 0:t.disabled)!=null?e:!1}isInputFocused(){return Se(this._component.ownerDocument)===this._inputElement}setInputValue(t,e){var a;((a=this._inputElement)==null?void 0:a.value)!==t&&(this._inputElement&&(this._inputElement.value=t),this._inputMask&&this._inputMask.update(),e&&(this._emitInputEvent("change"),this._emitInputEvent("input")))}getInputValue(){var t,e;return this._inputMask?this._inputMask.maskedValue:(e=(t=this._inputElement)==null?void 0:t.value)!=null?e:""}setDisabled(t){this._inputElement&&(this._inputElement.disabled=t,this._inputElement.setAttribute("aria-disabled",t.toString())),this.setToggleDisabled(t)}attachDropdown(t){var e;this._targetElement||(this._targetElement=this._getTargetElement(this._component.popupTarget)),this._listDropdown=new Pe(this._targetElement,t),this._listDropdown.open(),(e=this._inputElement)==null||e.setAttribute("aria-controls",`list-dropdown-popup-${t.id}`)}async detachDropdown({destroy:t=!1}={}){this._listDropdown&&(t?this._listDropdown.destroy():await this._listDropdown.close(),this._listDropdown=void 0),this._inputElement&&Zt(this._inputElement)}propagateKey(t){var e;(e=this._listDropdown)==null||e.handleKey(t)}setActiveDescendant(t){this._inputElement&&K(this._inputElement,!!t,"aria-activedescendant",t)}getTargetElementWidth(t){return this._getTargetElement(t).getBoundingClientRect().width}_emitInputEvent(t){var e;(e=this._inputElement)==null||e.dispatchEvent(new Event(t))}emitInputEvent(t,e){this._inputElement&&o0(this._inputElement,t,e)}setInputReadonly(t){this._inputElement&&(this._inputElement.readOnly=t)}setToggleDisabled(t){if(this._toggleElement)if(this._toggleElement.setAttribute("aria-disabled",t.toString()),"disabled"in this._toggleElement)this._toggleElement.disabled=t;else{let e=this._toggleElement.querySelector("button");e&&(e.disabled=t)}}hasActiveOption(){var t,e;return((e=(t=this._listDropdown)==null?void 0:t.getActiveOptionIndex())!=null?e:-1)>=0}activateOptionByIndex(t){var e;(e=this._listDropdown)==null||e.activateOption(t)}activateFirstOption(){var t;(t=this._listDropdown)==null||t.activateFirstOption()}getActiveOption(){var t;return(t=this._listDropdown)==null?void 0:t.getActiveOption()}_getTargetElement(t){return this._targetElement?this._targetElement:(this._targetElement=t?this._component.querySelector(t)||this._getDefaultTargetElement():this._getDefaultTargetElement(),this._targetElement)}_getDefaultTargetElement(){var e;let t=this._component.querySelector(V1.elementName);return(e=t==null?void 0:t.popoverTargetElement)!=null?e:this._component}};function Al(r,t,e){if(!r||/^\s*$/.test(r))return null;let a=0,o=0,n=0;if($a.test(r)){let i=I3(r);a=+i.hours||0,o=+i.minutes||0,n=+i.seconds||0}else if(an.test(r)){let i=V3(r);a=+i.hours||0,o=+i.minutes||0,n=+i.seconds||0,a===12&&i.meridiem==="AM"&&(a=0),a<12&&i.meridiem==="PM"&&(a+=12)}else return null;return A6(a)+Tl(o)+(e?l5(n):0)}function Yt(r,t,e){if(typeof r!="number"||r<0)return null;let a=Math.min(C6(r),23),o=Math.min(z6(r),59),i=r/(1e3*60)<720?"AM":"PM";t||(a=a<=12?a:a-12,a===0&&(a=12));let l=`${String(a).padStart(2,"0")}:${String(o).padStart(2,"0")}`;if(e){let h=Math.min(s5(r),59);l+=`:${String(h).padStart(2,"0")}`}return t||(l+=` ${i}`),l}function C6(r){return Math.abs(Math.floor(r/(1e3*60*60)))}function z6(r){return Math.abs(Math.floor(Bl(r)%60))}function Bl(r){return r/(1e3*60)}function s5(r){return Math.abs(Math.floor(db(r)%60))}function db(r){return r/1e3}function A6(r){return r*60*60*1e3}function Tl(r){return r*60*1e3}function l5(r){return r*1e3}function B6(r){return r-l5(s5(r))}function v5(r){let t=new Date,e=t.getHours(),a=t.getMinutes();return A6(e)+Tl(a)+(r?l5(t.getSeconds()):0)}function KV1(r,t,e=!1){r||(r=new Date);let a=Al(t,!0,e);if(!a)return r.setHours(0,0,0),r;let o=C6(a),n=828e5;o>n?o=n:o<0&&(o=0);let i=z6(a),l=e?s5(a):0;return r.setHours(o,i,l),r}var Sl=class{constructor(t){this._adapter=t;this._value=null;this._masked=!0;this._use24HourTime=!1;this._showMaskFormat=!1;this._min=null;this._max=null;this._restrictedTimes=[];this._startTime=null;this._step=U.numbers.DEFAULT_MINUTE_STEP;this._allowInput=!0;this._open=!1;this._allowSeconds=!1;this._allowInvalidTime=!1;this._showNow=!1;this._showHourOptions=!0;this._customOptions=[];this._disabled=!1;this._popupClasses=[];this._allowDropdown=!0;this._isInitialized=!1;this._identifier=P2(),this._inputListener=e=>this._onInput(e),this._inputKeydownListener=e=>this._onInputKeydown(e),this._toggleMousedownListener=e=>this._onToggleMousedown(e),this._inputFocusListener=e=>this._onInputFocus(e),this._inputBlurListener=e=>this._onInputBlur(e),this._inputMousedownListener=e=>this._onInputMousedown(e)}initialize(){if(this._adapter.initialize(),!this._adapter.hasInputElement())throw new Error("Unable to locate <input> element to attach to.");if(this._adapter.initializeAccessibility(this._identifier),!this._value){let t=this._adapter.getInputValue();this._setValue(this._convertTimeStringToMillis(t,this._use24HourTime,this._allowSeconds))}this._adapter.addInputListener("focus",this._inputFocusListener),this._adapter.addInputListener("blur",this._inputBlurListener),this._adapter.addInputListener("keydown",this._inputKeydownListener,!0),this._formatInputValue(!1),typeof this._value=="number"&&this._applyValue(this._value,!1),this._applyAllowInput(),this._applyAllowDropdown(),this._applyDisabled(),this._applyMask(),this._isInitialized=!0}destroy(){this._isInitialized=!1,this._adapter.removeInputListener("input",this._inputListener),this._adapter.removeInputListener("focus",this._inputFocusListener),this._adapter.removeInputListener("blur",this._inputBlurListener),this._adapter.removeToggleListener("mousedown",this._toggleMousedownListener),this._adapter.removeInputListener("keydown",this._inputKeydownListener,!0),this._masked&&this._adapter.destroyMask(),this._closeDropdown({destroy:!0}),this._adapter.destroy()}_onInput(t){this._handleInput(this._adapter.getInputValue())}_onInputKeydown(t){var e,a;if(t.shiftKey)switch(t.code){case"Backspace":case"Delete":t.preventDefault(),this._trySetValue(null)&&this._formatInputValue();return}switch(t.code){case"Tab":this._open&&this._selectActiveOption();break;case"Esc":case"Escape":this._open&&(t.preventDefault(),t.stopPropagation(),this._closeDropdown({emitCloseEvent:!0}));break;case"Down":case"ArrowDown":this._allowDropdown&&(t.preventDefault(),this._open?this._adapter.hasActiveOption()?this._adapter.propagateKey(t.code):this._trySetActiveOption():(this._openDropdown(),typeof((e=this._dropdownConfig)==null?void 0:e.visibleStartIndex)=="number"&&this._dropdownConfig.visibleStartIndex>=0?this._adapter.activateOptionByIndex((a=this._dropdownConfig)==null?void 0:a.visibleStartIndex):this._adapter.activateFirstOption()));break;case"ArrowUp":this._allowDropdown&&(t.preventDefault(),this._open&&(this._adapter.hasActiveOption()?this._adapter.propagateKey(t.code):this._trySetActiveOption()));break;case"Enter":case"NumpadEnter":case"Home":case"End":this._open&&((t.code==="Enter"||t.code==="NumpadEnter")&&t.stopPropagation(),t.preventDefault(),this._adapter.propagateKey(t.code));break;case"KeyN":t.preventDefault();let o=v5(this._allowSeconds);if(this._value!==o){let n=Yt(o,!0,this._allowSeconds);this._emitChangeEvent(n)&&(this._applyValue(o),this._selectInputText())}break}}_trySetActiveOption(){var t,e;!this._adapter.hasActiveOption()&&typeof((t=this._dropdownConfig)==null?void 0:t.visibleStartIndex)=="number"&&this._dropdownConfig.visibleStartIndex>=0&&this._adapter.activateOptionByIndex((e=this._dropdownConfig)==null?void 0:e.visibleStartIndex)}_selectActiveOption(){let t=this._adapter.getActiveOption();t&&this._onSelect(t.value)}_onToggleMousedown(t){this._disabled||!this.allowDropdown||(t.stopPropagation(),!this._adapter.isInputDisabled()&&(t.preventDefault(),this._open?this._closeDropdown({emitCloseEvent:!0}):($2.isMobile?this._adapter.tryBlurInput():this._adapter.tryFocusInput(),this._openDropdown())))}_onInputFocus(t){this.masked&&this._showMaskFormat&&this._applyMask(),this._allowInput&&this._adapter.selectInputText()}_onInputBlur(t){this.masked&&this._showMaskFormat&&this._applyMask(),this._formatInputValue(),this._open&&!this._adapter.isInputFocused()&&this._closeDropdown({emitCloseEvent:!0})}_onInputMousedown(t){!this._allowInput&&!this._open&&(this._openDropdown(),this._adapter.tryFocusInput(),window.requestAnimationFrame(()=>this._adapter.selectInputText()))}_applyDisabled(){this._adapter.setDisabled(this._disabled)}_applyMask(){if(this._masked&&this._allowInput){this._adapter.destroyMask();let t={showMaskFormat:this._showMaskFormat&&this._adapter.isInputFocused(),use24HourTime:this._use24HourTime,showSeconds:this._allowSeconds,prepareCallback:this._prepareMaskCallback,onChange:Ae(e=>this._handleInput(e),0,!0)};this._adapter.initializeMask(t)}else this._adapter.destroyMask(),this._formatInputValue()}_applyAllowInput(){this._adapter.setInputReadonly(!this._allowInput),this._allowInput?(this._adapter.removeInputListener("mousedown",this._inputMousedownListener),this._masked||this._adapter.addInputListener("input",this._inputListener)):(this._adapter.addInputListener("mousedown",this._inputMousedownListener),this._adapter.removeInputListener("input",this._inputListener))}_applyAllowDropdown(){this._adapter.setToggleDisabled(!this._allowDropdown),this._allowDropdown?(this._adapter.removeToggleListener("mousedown",this._toggleMousedownListener),this._adapter.tryCreateToggle(),this._adapter.addToggleListener("mousedown",this._toggleMousedownListener)):this._open&&this._closeDropdown({emitCloseEvent:!0})}_applyAllowSeconds(){let t=this._value;if(this._allowSeconds){if(this._isInitialized&&t!==this._value){let e=Yt(this._value,!0,!0);this._emitChangeEvent(e)}}else{if(typeof this._value!="number")return;if(this._setValue(B6(this._value)),this._isInitialized&&t!==this._value){let e=Yt(this._value,!0,!1);this._emitChangeEvent(e)}}}_handleInput(t){let e=t;if(!this._allowInput)return;this._open&&this._closeDropdown({emitCloseEvent:!0}),t=C3(t,this._use24HourTime,this._allowSeconds),typeof this._coercionCallback=="function"&&(t=this._coercionCallback.call(null,e,t,this._allowSeconds)),this._isValidTimeFormat(t)||(t="");let a;!this._masked&&typeof this._parseCallback=="function"?a=this._parseCallback.call(null,t):a=this._convertTimeStringToMillis(t,this._use24HourTime,this._allowSeconds),a=this._validateMillis(a),this._trySetValue(a)}_emitChangeEvent(t,e=!1){return this._adapter.emitHostEvent(U.events.CHANGE,t,!0,!e)}_trySetValue(t){if(t===this._value)return!1;let e=Yt(t,!0,this._allowSeconds);return this._adapter.emitInputEvent(U.events.INPUT,e),this._value!==t&&this._emitChangeEvent(e)?(this._setValue(t),!0):!1}_setValue(t){this._value=this._normalizeTimeValue(t)}_validateMillis(t){if(typeof t=="number"){let e=typeof this._min=="number"&&t<this._min,a=typeof this._max=="number"&&t>this._max;(e||a)&&(t=null)}return typeof t=="number"&&this._restrictedTimes.length&&this._restrictedTimes.includes(t)&&(t=null),t}_isValidTimeFormat(t){return!this._masked&&typeof this._validationCallback=="function"?this._validationCallback.call(this,t):E3(t)}_isValidInputValue(t){return $a.test(t)}_onSelect(t){if(this._closeDropdown({emitCloseEvent:!0}),!t.isCustom&&t.metadata==="now"&&(t.time=v5(this._allowSeconds)),t.isCustom)if(typeof t.customCallback=="function"){let o=t.customCallback.call(null,t.metadata);if(typeof o!="number")throw new Error("Custom options must provide a time of day value in milliseconds.");t.time=o}else throw new Error("You must implement a `toMilliseconds` callback that returns the time value to use for this custom option.");if(this._value===t.time)return;let e=Yt(t.time,!0,this._allowSeconds);this._emitChangeEvent(e)&&(this._applyValue(t.time),this._selectInputText())}_selectInputText(){window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>{this._adapter.isInputFocused()&&this._adapter.selectInputText()})})}_applyValue(t,e=!0){this._setValue(t);let a=this._formatValue(this._value);this._adapter.getInputValue()!==a&&this._adapter.setInputValue(a,e)}_normalizeTimeValue(t){return t==null?null:t<0?0:t>U.numbers.MAX_DAY_MILLIS?U.numbers.MAX_DAY_MILLIS:t}_openDropdown(){let t=this._generateTimeOptions();if(!this.allowDropdown||!t.length||!this._adapter.inputElement)return;this._formatInputValue(),this._open=!0,this._adapter.setHostAttribute(U.attributes.OPEN);let e=t.filter(n=>!n.divider&&!n.disabled),a=[],o=0;if(t.length)if(this._value!=null){let n=this._findClosestOptionIndex(this._value,e);n>=0&&(e[n].value.time===this._value?a=[e[n].value]:o=n)}else if(typeof this._startTime=="number"){let n=this._findClosestOptionIndex(this._startTime,e);n>=0&&n<e.length&&(o=n)}else this._startTime==null&&(o=this._getOptionIndexClosestCurrent(e));this._dropdownConfig={id:`forge-time-picker-${this._identifier}`,referenceElement:this._adapter.inputElement,selectedValues:a,syncWidth:!0,visibleStartIndex:o,popupClasses:this._popupClasses,popupStatic:!0,type:"standard",options:t,selectCallback:n=>this._onSelect(n),closeCallback:()=>this._closeDropdown({emitCloseEvent:!0}),activeChangeCallback:n=>this._adapter.setActiveDescendant(n),targetWidthCallback:()=>this._adapter.getTargetElementWidth(this._popupTarget)},this._adapter.attachDropdown(this._dropdownConfig),this._adapter.emitHostEvent(U.events.OPEN,void 0,!1)}_closeDropdown({destroy:t=!1,emitCloseEvent:e=!1}={}){this._open=!1,this._dropdownConfig=void 0,this._adapter.removeHostAttribute(U.attributes.OPEN),this._adapter.detachDropdown({destroy:t}),e&&this._adapter.emitHostEvent(U.events.CLOSE,!0,!1)}_getOptionIndexClosestCurrent(t){let e=new Date,a=`${String(e.getHours()).padStart(2,"0")}:${String(e.getMinutes()).padStart(2,"0")}`,o=Al(a,!0,!1);return this._findClosestOptionIndex(o,t)}_findClosestOptionIndex(t,e){let a=e.reduce((o,n)=>Math.abs((n.value.time||0)-t)<Math.abs((o.value.time||0)-t)?n:o);return e.indexOf(a)}_formatInputValue(t=!0){let e=this._adapter.getInputValue();if(this._allowInvalidTime&&!this._masked&&e&&!this._value)return;let a=this._formatValue(this._value);e!==a&&(this._adapter.setInputValue(a,t),this._adapter.emitInputEvent(U.events.INPUT,a))}_generateTimeOptions(){let t=this._min!=null?Math.max(Bl(this._min),0):0,e=this._max!=null?Math.min(Bl(this._max),U.numbers.MAX_DAY_MINUTES):U.numbers.MAX_DAY_MINUTES,a=this._step,o=[],n=[];if(this._showHourOptions){for(let l=t;l<=e&&l!==U.numbers.MAX_DAY_MINUTES;l+=a){let h=Tl(l),c=this._restrictedTimes.includes(h),d=Yt(h,this._use24HourTime,!1)||"",u={time:h};o.push({label:d,value:u,disabled:c})}let i=o.findIndex(l=>l.value.time/1e3/60>=720);i>=0&&i<o.length-1&&o.splice(i,0,{label:"",value:null,divider:!0})}if(this._showNow){let i={time:null,metadata:"now"};n.push({label:"Now",value:i})}if(Array.isArray(this._customOptions)&&this._customOptions.length){let i=this._customOptions.map(l=>{let h={time:null,metadata:l.value,isCustom:!0,customCallback:l.toMilliseconds};return{label:l.label,value:h}});n=[...n,...i]}return n.length&&(o.length&&o.splice(0,0,{label:"",value:null,divider:!0}),n.forEach((i,l)=>o.splice(l,0,i))),o}_convertTimeStringToMillis(t,e,a){return(!t||!this._isValidTimeFormat(t))&&(t=""),Al(t,e,a)}_formatValue(t){return!this._masked&&typeof this._formatCallback=="function"?this._formatCallback.call(null,t,this._use24HourTime,this._allowSeconds):Yt(this._value,this._use24HourTime,this._allowSeconds)||""}_warnInvalidFormat(t){console.warn(`The specified value "${t}" does not conform to the required format. The format is "HH:mm", "HH:mm:ss" where HH is 00-23, mm is 00-59, and ss is 00-59.`)}get open(){return this._open}set open(t){this._open!==t&&this._isInitialized&&(this._open=t,this._open?this._openDropdown():this._closeDropdown())}get masked(){return this._masked}set masked(t){this._masked!==t&&(this._masked=t,this._isInitialized&&(this._masked?(this._adapter.removeInputListener("input",this._inputListener),this._applyMask()):(this._adapter.destroyMask(),this._formatInputValue(),this._adapter.addInputListener("input",this._inputListener))))}get showMaskFormat(){return this._showMaskFormat}set showMaskFormat(t){this._showMaskFormat!==t&&(this._showMaskFormat=t)}get allowSeconds(){return this._allowSeconds}set allowSeconds(t){this._allowSeconds!==t&&(this._allowSeconds=!!t,this._applyAllowSeconds(),this._isInitialized&&(this._applyMask(),this._formatInputValue()),this._adapter.setHostAttribute(U.attributes.ALLOW_SECONDS,`${!!t}`))}get use24HourTime(){return this._use24HourTime}set use24HourTime(t){this._use24HourTime!==t&&(this._use24HourTime=!!t,this._isInitialized&&(this._applyMask(),this._formatInputValue()),this._adapter.setHostAttribute(U.attributes.USE_24_HOUR_TIME,`${!!t}`))}get allowInvalidTime(){return this._allowInvalidTime}set allowInvalidTime(t){this._allowInvalidTime!==t&&(this._allowInvalidTime=!!t,this._adapter.setHostAttribute(U.attributes.ALLOW_INVALID_TIME,`${!!t}`))}get value(){return Yt(this._value,!0,this._allowSeconds)}set value(t){if(t&&!this._isValidInputValue(t)){this._warnInvalidFormat(t);return}let e=this._validateMillis(this._convertTimeStringToMillis(t,!0,!0));this._setValue(e),this._isInitialized&&this._applyValue(this._value)}get min(){return Yt(this._min,!0,this._allowSeconds)}set min(t){if(this._min!==t){if(t&&!this._isValidInputValue(t)){this._warnInvalidFormat(t);return}this._min=this._convertTimeStringToMillis(t,!0,this._allowSeconds);let e=this._validateMillis(this._value);this._setValue(e),this._isInitialized&&this._applyValue(e)}}get max(){return Yt(this._max,!0,this._allowSeconds)}set max(t){if(this._max!==t){if(t&&!this._isValidInputValue(t)){this._warnInvalidFormat(t);return}this._max=this._convertTimeStringToMillis(t,!0,this._allowSeconds);let e=this._validateMillis(this._value);this._setValue(e),this._isInitialized&&this._applyValue(e)}}get restrictedTimes(){return this._restrictedTimes.map(t=>Yt(t,!0,this._allowSeconds)).filter(t=>typeof t=="string")}set restrictedTimes(t){Array.isArray(t)||(t=[]),this._restrictedTimes=t.filter(e=>typeof e=="string").map(e=>this._convertTimeStringToMillis(e,!0,!0)).filter(e=>typeof e=="number")}get startTime(){return Yt(this._startTime,!0,this._allowSeconds)}set startTime(t){if(this._startTime!==t){if(t&&!this._isValidInputValue(t)){this._warnInvalidFormat(t);return}this._startTime=this._convertTimeStringToMillis(t,!0,this._allowSeconds)}}get step(){return this._step}set step(t){this._step=t}get allowInput(){return this._allowInput}set allowInput(t){this._allowInput!==t&&(this._allowInput=t,this._isInitialized&&(this._applyAllowInput(),this._applyMask()))}get popupTarget(){return this._popupTarget}set popupTarget(t){this._popupTarget!==t&&(this._popupTarget=t)}get showNow(){return this._showNow}set showNow(t){this._showNow!==t&&(this._showNow=t)}get showHourOptions(){return this._showHourOptions}set showHourOptions(t){this._showHourOptions!==t&&(this._showHourOptions=t)}get customOptions(){return this._customOptions}set customOptions(t){this._customOptions=Array.isArray(t)?t:[]}set validationCallback(t){this._validationCallback=t,this._isInitialized&&this._applyMask()}set parseCallback(t){this._parseCallback=t}set formatCallback(t){this._formatCallback=t}set coercionCallback(t){this._coercionCallback=t}set prepareMaskCallback(t){this._prepareMaskCallback=t,this._isInitialized&&this._applyMask()}get disabled(){return this._disabled}set disabled(t){this._disabled!==t&&(this._disabled=!!t,this._isInitialized&&this._applyDisabled(),this._adapter.toggleHostAttribute(U.attributes.DISABLED,this._disabled))}get popupClasses(){return Array.isArray(this._popupClasses)?[...this._popupClasses]:this._popupClasses}set popupClasses(t){Array.isArray(t)?this._popupClasses=[...t]:this._popupClasses=[t]}get allowDropdown(){return this._allowDropdown}set allowDropdown(t){this._allowDropdown!==t&&(this._allowDropdown=t,this._isInitialized&&this._applyAllowDropdown())}};var mb="<template><slot></slot></template>",gb=":host{display:block}:host([hidden]){display:none}",O1=class extends M{static get observedAttributes(){return[U.attributes.VALUE,U.attributes.OPEN,U.attributes.ALLOW_SECONDS,U.attributes.MASKED,U.attributes.SHOW_MASK_FORMAT,U.attributes.USE_24_HOUR_TIME,U.attributes.ALLOW_INVALID_TIME,U.attributes.MIN,U.attributes.MAX,U.attributes.START_TIME,U.attributes.STEP,U.attributes.ALLOW_INPUT,U.attributes.SHOW_NOW,U.attributes.SHOW_HOUR_OPTIONS,U.attributes.DISABLED,U.attributes.POPUP_CLASSES,U.attributes.ALLOW_DROPDOWN]}constructor(){super(),q.define([Zd,Ya]),H(this,mb,gb),this._core=new Sl(new zl(this))}connectedCallback(){this.querySelector(U.selectors.INPUT)?this._core.initialize():I0(this,U.selectors.INPUT).then(()=>this._core.initialize())}disconnectedCallback(){this._core.destroy()}attributeChangedCallback(t,e,a){switch(t){case U.attributes.VALUE:this.value=a;break;case U.attributes.OPEN:this.open=p(a);break;case U.attributes.ALLOW_SECONDS:this.allowSeconds=p(a);break;case U.attributes.MASKED:this.masked=p(a);break;case U.attributes.SHOW_MASK_FORMAT:this.showMaskFormat=p(a);break;case U.attributes.USE_24_HOUR_TIME:this.use24HourTime=p(a);break;case U.attributes.ALLOW_INVALID_TIME:this.allowInvalidTime=p(a);break;case U.attributes.SHOW_NOW:this.showNow=p(a);break;case U.attributes.SHOW_HOUR_OPTIONS:this.showHourOptions=p(a);break;case U.attributes.MIN:this.min=a;break;case U.attributes.MAX:this.max=a;break;case U.attributes.START_TIME:this.startTime=a;break;case U.attributes.STEP:this.step=W(a);break;case U.attributes.ALLOW_INPUT:this.allowInput=p(a);break;case U.attributes.DISABLED:this.disabled=p(a);break;case U.attributes.POPUP_CLASSES:this.popupClasses=a;break;case U.attributes.ALLOW_DROPDOWN:this.allowDropdown=p(a);break}}};s([v()],O1.prototype,"value",2),s([v()],O1.prototype,"open",2),s([v()],O1.prototype,"allowSeconds",2),s([v()],O1.prototype,"masked",2),s([v()],O1.prototype,"showMaskFormat",2),s([v()],O1.prototype,"use24HourTime",2),s([v()],O1.prototype,"allowInvalidTime",2),s([v()],O1.prototype,"min",2),s([v()],O1.prototype,"max",2),s([v()],O1.prototype,"restrictedTimes",2),s([v()],O1.prototype,"startTime",2),s([v()],O1.prototype,"step",2),s([v()],O1.prototype,"allowInput",2),s([v()],O1.prototype,"showNow",2),s([v()],O1.prototype,"showHourOptions",2),s([v()],O1.prototype,"customOptions",2),s([v()],O1.prototype,"validationCallback",2),s([v()],O1.prototype,"parseCallback",2),s([v()],O1.prototype,"formatCallback",2),s([v()],O1.prototype,"coercionCallback",2),s([v()],O1.prototype,"prepareMaskCallback",2),s([v()],O1.prototype,"disabled",2),s([v()],O1.prototype,"popupClasses",2),s([v()],O1.prototype,"allowDropdown",2),s([v()],O1.prototype,"popupTarget",2),O1=s([y({name:U.elementName,dependencies:[h2,j1,n1,X,P1,X,E1]})],O1);var T6=class extends a2{constructor(t){super(t)}_build(){let t=document.createElement(U.elementName);return this._attachTextField(t),t}get inputElement(){return this._textFieldDelegate.inputElement}get textFieldElement(){return this._textFieldDelegate.element}get value(){return this._element.value}set value(t){this._element.value=t}get disabled(){return this._element.disabled}set disabled(t){this._element.disabled=t}get invalid(){return this._textFieldDelegate.invalid||!1}set invalid(t){this._textFieldDelegate.invalid=t}onChange(t){this._element.addEventListener(U.events.CHANGE,e=>{var a;return t((a=e.detail)!=null?a:"")})}onInput(t){this._element.addEventListener(U.events.INPUT,e=>{var a;return t((a=e.detail)!=null?a:"")})}onFocus(t){this._textFieldDelegate.inputElement.addEventListener("focus",e=>t(e))}onBlur(t){this._textFieldDelegate.inputElement.addEventListener("blur",e=>t(e))}_attachTextField(t){var a,o,n,i;let e={props:w({},(o=(a=this._config.options)==null?void 0:a.textFieldDelegateConfig)==null?void 0:o.props),options:w({},(i=(n=this._config.options)==null?void 0:n.textFieldDelegateConfig)==null?void 0:i.options)};this._textFieldDelegate=new J0(e),t.appendChild(this._textFieldDelegate.element)}};function S6(){x(O1)}var h5=`${b}toast`,k6={OPEN:"open",DURATION:"duration",PLACEMENT:"placement",ACTION_TEXT:"action-text",DISMISSIBLE:"dismissible",DISMISS_LABEL:"dismiss-label",THEME:"theme"},wb=w({},k6),ub={ACTION:`${h5}-action`,CLOSE:`${h5}-close`},_b={EXITING:"exiting"},fb={SURFACE:".surface",ACTION_BUTTON:".action-button",CLOSE_BUTTON:".close-button"},xb={PLACEMENT:"bottom",DURATION:2750,THEME:"default"},B1={elementName:h5,observedAttributes:k6,attributes:wb,classes:_b,selectors:fb,defaults:xb,events:ub};var kl=class extends I{constructor(t){super(t),this._overlayElement=g(t,B.elementName),this._surfaceElement=g(t,B1.selectors.SURFACE),this._actionButtonElement=g(t,B1.selectors.ACTION_BUTTON),this._closeButtonElement=g(t,B1.selectors.CLOSE_BUTTON)}show(){this._overlayElement.open=!0}async hide(){await Rt(this._surfaceElement,B1.classes.EXITING),this._overlayElement.open=!1}addCloseListener(t){this._closeButtonElement.addEventListener("click",t)}removeCloseListener(t){this._closeButtonElement.removeEventListener("click",t)}addActionListener(t){this._actionButtonElement.addEventListener("click",t)}removeActionListener(t){this._actionButtonElement.removeEventListener("click",t)}setDismissLabel(t){this._closeButtonElement.setAttribute("aria-label",t)}setActionText(t){this._actionButtonElement.textContent=t,t?this._actionButtonElement.removeAttribute("hidden"):this._actionButtonElement.setAttribute("hidden","")}};var Ol=class{constructor(t){this._adapter=t;this._open=!1;this._duration=B1.defaults.DURATION;this._placement=B1.defaults.PLACEMENT;this._dismissible=!1;this._theme=B1.defaults.THEME;this._actionListener=this._onAction.bind(this);this._closeListener=this._onClose.bind(this)}initialize(){this._adapter.tryApplyGlobalConfiguration(["duration","placement","dismissible"]),this._open&&this.show()}show(){this._adapter.show(),isFinite(this._duration)&&this._duration>0&&(this._hideTimeout&&window.clearTimeout(this._hideTimeout),this._hideTimeout=window.setTimeout(()=>this.hide(),this._duration)),this._open=!0,this._adapter.toggleHostAttribute(B1.attributes.OPEN,this._open)}async hide({dispatchEvent:t=!0}={}){this._hideTimeout&&(window.clearTimeout(this._hideTimeout),this._hideTimeout=void 0),await this._adapter.hide(),this._open=!1,this._adapter.toggleHostAttribute(B1.attributes.OPEN,this._open),t&&this._adapter.dispatchHostEvent(new CustomEvent(B1.events.CLOSE,{bubbles:!0}))}_onAction(t){t.stopPropagation(),this._adapter.dispatchHostEvent(new CustomEvent(B1.events.ACTION,{bubbles:!0}))}_onClose(t){this.hide()}get open(){return this._open}set open(t){t=!!t,this._open!==t&&(this._adapter.isConnected?t?this.show():this.hide({dispatchEvent:!1}):this._open=t,this._adapter.toggleHostAttribute(B1.attributes.OPEN,this._open))}get duration(){return this._duration}set duration(t){this._duration!==t&&(this._duration=t,this._hideTimeout&&(window.clearTimeout(this._hideTimeout),isFinite(this._duration)&&this._duration>0&&(this._hideTimeout=window.setTimeout(()=>this.hide(),this._duration))))}get placement(){return this._placement}set placement(t){this._placement!==t&&(this._placement=t,this._adapter.setHostAttribute(B1.attributes.PLACEMENT,this._placement))}get actionText(){return this._actionText}set actionText(t){var e;t=(e=t==null?void 0:t.trim())!=null?e:"",this._actionText!==t&&(this._actionText=t,this._adapter.setActionText(this._actionText),this._actionText?this._adapter.addActionListener(this._actionListener):this._adapter.removeActionListener(this._actionListener),this._adapter.toggleHostAttribute(B1.attributes.ACTION_TEXT,!!this._actionText,this._actionText))}get dismissible(){return this._dismissible}set dismissible(t){t=!!t,this._dismissible!==t&&(this._dismissible=t,this._dismissible?this._adapter.addCloseListener(this._closeListener):this._adapter.removeCloseListener(this._closeListener),this._adapter.toggleHostAttribute(B1.attributes.DISMISSIBLE,this._dismissible))}get dismissLabel(){return this._dismissLabel}set dismissLabel(t){this._dismissLabel!==t&&(this._dismissLabel=t,this._adapter.setDismissLabel(this._dismissLabel))}get theme(){return this._theme}set theme(t){t!=null||(t=B1.defaults.THEME),this._theme!==t&&(this._theme=t,this._adapter.setHostAttribute(B1.attributes.THEME,this._theme))}};var bb='<template><forge-overlay exportparts="root:overlay" no-anchor persistent><div class="surface" part="surface"><slot name="icon"></slot><div class="message" part="message"><slot></slot></div><forge-button hidden part="action-button" class="action-button"></forge-button><forge-icon-button part="close-button" class="close-button" aria-label="Dismiss" density="medium"><forge-icon name="close"></forge-icon></forge-icon-button></div></forge-overlay></template>',yb='@keyframes slidein{from{transform:translateY(var(--_toast-slide-origin))}to{transform:translateY(0)}}@keyframes slideout{from{transform:translateY(0)}to{transform:translateY(var(--_toast-slide-origin))}}@keyframes fadein{from{opacity:0}to{opacity:1}}@keyframes fadeout{from{opacity:1}to{opacity:0}}@layer base,open,theme,placement,media; @layer base{:host{display:contents}:host([hidden]){display:none}.surface{--_toast-background:var(--forge-toast-background, var(--forge-theme-surface-inverse, #333333));--_toast-color:var(--forge-toast-color, var(--forge-theme-on-surface-inverse, #ffffff));--_toast-offset:var(--forge-toast-offset, var(--forge-spacing-medium, 16px));--_toast-shape:var(--forge-toast-shape, calc(var(--forge-shape-medium, 4px) * var(--forge-shape-factor, 1)));--_toast-elevation:var(--forge-toast-elevation, 0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12));--_toast-action-color:var(--forge-toast-action-color, var(--forge-theme-secondary, #ffc107));--_toast-min-width:var(--forge-toast-min-width, 344px);--_toast-max-width:var(--forge-toast-max-width, 672px);--_toast-min-height:var(--forge-toast-min-height, 48px);--_toast-inline-padding:var(--forge-toast-inline-padding, var(--forge-spacing-medium, 16px));--_toast-spacing:var(--forge-toast-spacing, var(--forge-spacing-xsmall, 8px));--_toast-message-padding:var(--forge-toast-message-padding, var(--forge-spacing-xsmall, 8px));--_toast-enter-duration:var(--forge-toast-enter-duration, var(--forge-animation-duration-medium1, 250ms));--_toast-enter-timing:var(--forge-toast-enter-timing, var(--forge-animation-easing-decelerate, cubic-bezier(0, 0, 0, 1)));--_toast-exit-duration:var(--forge-toast-exit-duration, var(--forge-animation-duration-short4, 200ms));--_toast-exit-timing:var(--forge-toast-exit-timing, var(--forge-animation-easing-emphasized-accelerate, cubic-bezier(0.3, 0, 0.8, 0.15)));--_toast-slide-origin:var(--forge-toast-slide-origin, 100%)}.surface{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-body2-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-body2-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-font-size-scale, 1)));font-weight:var(--forge-typography-body2-font-weight,400);line-height:var(--forge-typography-body2-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-line-height-scale, 1.375)));letter-spacing:var(--forge-typography-body2-letter-spacing, .015625em);text-transform:var(--forge-typography-body2-text-transform,inherit);text-decoration:var(--forge-typography-body2-text-decoration,inherit);position:fixed;display:flex;align-items:center;column-gap:var(--_toast-spacing);border-radius:var(--_toast-shape);padding-inline:var(--_toast-inline-padding);margin:var(--_toast-offset);min-width:var(--_toast-min-width);max-width:var(--_toast-max-width);min-height:var(--_toast-min-height);box-sizing:border-box;background:var(--_toast-background);color:var(--_toast-color);box-shadow:var(--_toast-elevation)}.message{flex-grow:1;padding-block:var(--_toast-message-padding);text-overflow:ellipsis;overflow:hidden}forge-button.action-button{--forge-button-primary-color:var(--_toast-action-color)}forge-icon-button.close-button{--forge-icon-button-focus-indicator-color:var(--_toast-color)}:host(:not([dismissible])) .close-button{display:none}.action-button:not([hidden]){margin-inline-end:-8px}:host([dismissible]) .close-button{margin-inline-end:-8px}}@layer theme{:host([theme=primary]) .surface{--_toast-background:var(--forge-toast-background, var(--forge-theme-primary, #3f51b5));--_toast-color:var(--forge-toast-color, var(--forge-theme-on-primary, #ffffff));--_toast-action-color:var(--_toast-color)}:host([theme=secondary]) .surface{--_toast-background:var(--forge-toast-background, var(--forge-theme-secondary, #ffc107));--_toast-color:var(--forge-toast-color, var(--forge-theme-on-secondary, #000000));--_toast-action-color:var(--_toast-color)}:host([theme=tertiary]) .surface{--_toast-background:var(--forge-toast-background, var(--forge-theme-tertiary, #3d5afe));--_toast-color:var(--forge-toast-color, var(--forge-theme-on-tertiary, #ffffff));--_toast-action-color:var(--_toast-color)}:host([theme=success]) .surface{--_toast-background:var(--forge-toast-background, var(--forge-theme-success, #2e7d32));--_toast-color:var(--forge-toast-color, var(--forge-theme-on-success, #ffffff));--_toast-action-color:var(--_toast-color)}:host([theme=warning]) .surface{--_toast-background:var(--forge-toast-background, var(--forge-theme-warning, #d14900));--_toast-color:var(--forge-toast-color, var(--forge-theme-on-warning, #ffffff));--_toast-action-color:var(--_toast-color)}:host([theme=error]) .surface{--_toast-background:var(--forge-toast-background, var(--forge-theme-error, #b00020));--_toast-color:var(--forge-toast-color, var(--forge-theme-on-error, #ffffff));--_toast-action-color:var(--_toast-color)}:host([theme=info]) .surface{--_toast-background:var(--forge-toast-background, var(--forge-theme-info, #1565c0));--_toast-color:var(--forge-toast-color, var(--forge-theme-on-info, #ffffff));--_toast-action-color:var(--_toast-color)}}@layer open{forge-overlay[open] .surface{animation-name:slidein;animation-duration:var(--_toast-enter-duration);animation-timing-function:var(--_toast-enter-timing)}forge-overlay[open] .surface.exiting{animation-name:slideout;animation-duration:var(--_toast-exit-duration);animation-timing-function:var(--_toast-exit-timing)}}@layer placement{:host([placement=bottom-start]) .surface{bottom:0;left:0}:host(:is(:not([placement]),[placement=bottom])) .surface{bottom:0;left:50%;translate:-50%}:host([placement=bottom-end]) .surface{bottom:0;right:0}:host([placement=top-start]) .surface{--_toast-slide-origin:var(--forge-toast-slide-origin, -100%);top:0;left:0}:host([placement=top]) .surface{--_toast-slide-origin:var(--forge-toast-slide-origin, -100%);top:0;left:50%;translate:-50%}:host([placement=top-end]) .surface{--_toast-slide-origin:var(--forge-toast-slide-origin, -100%);top:0;right:0}}@layer media{@media (prefers-reduced-motion:reduce){forge-overlay[open] .surface{animation-name:fadein}forge-overlay[open] .surface.exiting{animation-name:fadeout}}@media (max-width:599px){:host([placement^=top]) .surface{bottom:auto;top:0}.surface{bottom:0;left:0;right:0;margin:0;translate:none;max-width:none;min-width:auto;border-radius:0}}}',Kt=class extends H1(L1(M)){static get observedAttributes(){return Object.values(B1.observedAttributes)}constructor(){super(),q.define(Ya),H(this,bb,yb),this._core=new Ol(new kl(this))}connectedCallback(){this.hasAttribute("role")||this.getAttribute("aria-hidden")==="true"||this[P]({role:"alert",ariaLive:"assertive",ariaAtomic:"true"}),this._core.initialize()}attributeChangedCallback(t,e,a){switch(t){case B1.attributes.OPEN:this.open=p(a);break;case B1.attributes.DURATION:let o=Number(a);this.duration=o&&o>0?o:B1.defaults.DURATION;break;case B1.attributes.PLACEMENT:this.placement=a||B1.defaults.PLACEMENT;break;case B1.attributes.ACTION_TEXT:this.actionText=a;break;case B1.attributes.DISMISSIBLE:this.dismissible=p(a);break;case B1.attributes.DISMISS_LABEL:this.dismissLabel=a;break;case B1.attributes.THEME:this.theme=a;break}}show(){this._core.show()}hide(){return this._core.hide()}static present(l){var h=l,{message:t,element:e,icon:a,className:o,topLayer:n}=h,i=Pa(h,["message","element","icon","className","topLayer"]);let c=document.createElement(B1.elementName);if(e?c.appendChild(e):t&&c.append(t),a){let u=document.createElement("forge-icon");Object.assign(u,a),u.slot="icon",c.appendChild(u)}if(o){let u=Array.isArray(o)?o:[o];c.classList.add(...u)}return i&&Object.assign(c,i),(n&&Array.from(E1[w0]).at(-1)||document.body).appendChild(c),c.open=!0,c.addEventListener(B1.events.CLOSE,()=>c.remove()),c}};s([v()],Kt.prototype,"open",2),s([v()],Kt.prototype,"duration",2),s([v()],Kt.prototype,"placement",2),s([v()],Kt.prototype,"actionText",2),s([v()],Kt.prototype,"dismissible",2),s([v()],Kt.prototype,"dismissLabel",2),s([v()],Kt.prototype,"theme",2),Kt=s([y({name:B1.elementName,dependencies:[d2,V2,n1,X]})],Kt);function O6(){x(Kt)}var Mb=`${b}view-switcher`,c5={ROOT:"forge-view-switcher",VIEW_HIDDEN:"forge-view-switcher__view--hidden",VIEW_SWITCHER_SLIDE:"slide",VIEW_SWITCHER_FADE:"fade"},Hb={ROOT:`.${c5.ROOT}`,DEFAULT_SLOT:"slot:not([name])",VIEW_HIDDEN:`.${c5.VIEW_HIDDEN}`},Lb={INDEX:"index",ANIMATION_TYPE:"animation-type"},Ib={DEFAULT_TRANSITION_DURATION:500},e2={elementName:Mb,attributes:Lb,classes:c5,selectors:Hb,numbers:Ib},p5=(e=>(e.Left="left",e.Right="right",e))(p5||{}),Vb=(a=>(a.None="none",a.Slide="slide",a.Fade="fade",a))(Vb||{});var Dl=class extends I{constructor(t){super(t),this._rootElement=g(t,e2.selectors.ROOT),this._slotElement=g(t,e2.selectors.DEFAULT_SLOT)}getViewCount(){return this._getViews().length}startViewObserver(t){this._viewObserver=new MutationObserver(t),this._viewObserver.observe(this._component,{childList:!0})}stopViewObserver(){var t;(t=this._viewObserver)==null||t.disconnect()}initializeSlideViews(t){let e=this._getViews();e.forEach((a,o)=>{if(a.style.removeProperty("opacity"),a.style.removeProperty("display"),o===t){e[t].classList.remove(e2.classes.VIEW_HIDDEN),a.style.removeProperty("visibility");return}a.style.transition="none",a.classList.add(e2.classes.VIEW_HIDDEN),a.style.visibility="hidden",o>t?a.style.transform="translate3d(100%, 0, 0)":a.style.transform="translate3d(-100%, 0, 0)"}),window.requestAnimationFrame(()=>{e=this._getViews(),e.forEach((a,o)=>{o!==t&&a.style.removeProperty("transition")})})}initializeFadeViews(t){let e=this._getViews();e.forEach((a,o)=>{if(a.style.removeProperty("transform"),a.style.removeProperty("display"),o===t){a.classList.remove(e2.classes.VIEW_HIDDEN),a.style.removeProperty("visibility");return}a.classList.add(e2.classes.VIEW_HIDDEN),a.style.visibility="hidden"}),e[t]&&(e[t].style.opacity="1")}setActiveView(t){let e=this._getViews();e.forEach((a,o)=>{o!==t&&(a.classList.add(e2.classes.VIEW_HIDDEN),a.style.display="none")}),e[t]&&(e[t].classList.remove(e2.classes.VIEW_HIDDEN),e[t].style.removeProperty("display"))}hideInactiveViews(t){this._getViews().forEach((a,o)=>{if(a.style.removeProperty("opacity"),a.style.removeProperty("transform"),a.style.removeProperty("visibility"),o===t){a.classList.remove(e2.classes.VIEW_HIDDEN);return}a.classList.add(e2.classes.VIEW_HIDDEN),a.style.display="none"})}async transitionToView(t,e,a,o){let n=this._getViews(),i=n[t],l=n[e];return new Promise(h=>{l.style.removeProperty("visibility"),window.requestAnimationFrame(()=>{let c;switch(a){case"slide":this._slideToView(i,l,o),c="transform";break;case"fade":this._fadeToView(i,l),c="opacity";break;default:return}this._animateHeight(i,l),i?i.addEventListener("transitionend",d):l.classList.remove(e2.classes.VIEW_HIDDEN);function d(u){u.propertyName===c&&(i.removeEventListener("transitionend",d),l.classList.remove(e2.classes.VIEW_HIDDEN),h())}})})}_slideToView(t,e,a){a==="left"?(t&&(t.style.transform="translate3d(-100%, 0, 0)"),e.style.transform="translate3d(0, 0, 0)"):(t&&(t.style.transform="translate3d(100%, 0, 0)"),e.style.transform="translate3d(0, 0, 0)")}_fadeToView(t,e){t&&(t.style.opacity="0"),e.style.opacity="1"}_animateHeight(t,e){let a=t?this._getViewHeight(t):0,o=this._getViewHeight(e);a!==o&&(this._rootElement.addEventListener("transitionend",this._onRootTransitionEnd.bind(this)),this._setHeight(a),window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>{this._setHeight(o)})}))}_onRootTransitionEnd(t){t.propertyName==="height"&&(this._rootElement.removeEventListener("transitionend",this._onRootTransitionEnd),this._rootElement.style.removeProperty("height"))}setAnimationType(t){switch(we([e2.classes.VIEW_SWITCHER_SLIDE,e2.classes.VIEW_SWITCHER_FADE],this._component),t){case"slide":this._component.classList.add(e2.classes.VIEW_SWITCHER_SLIDE);break;case"fade":this._component.classList.add(e2.classes.VIEW_SWITCHER_FADE);break}}_getViews(){return this._slotElement.assignedNodes().filter(t=>t.nodeType===1)}_setHeight(t){this._rootElement.style.height=`${t}px`}_getViewHeight(t){let e=0,a=t.children.length?Array.from(t.children):[t];for(let o of a){let n=window.getComputedStyle(o),i=parseFloat(n.marginTop)+parseFloat(n.marginBottom);e+=Math.ceil(o.offsetHeight+i)}return e}};var Pl=class{constructor(t){this._adapter=t;this._viewCount=0;this._viewIndex=0;this._animationType="none";this._viewsChangedListener=()=>this._onViewsChanged()}initialize(){this._viewCount=this._adapter.getViewCount(),this._adapter.startViewObserver(this._viewsChangedListener),this._adapter.setAnimationType(this._animationType),this._viewCount&&this._initializeAnimationType()}destroy(){this._adapter.stopViewObserver()}_initializeAnimationType(){switch(this._animationType){case"slide":this._adapter.initializeSlideViews(this._viewIndex);break;case"fade":this._adapter.initializeFadeViews(this._viewIndex);break;case"none":default:this._adapter.hideInactiveViews(this._viewIndex);break}}_onViewsChanged(){if(this._viewCount=this._adapter.getViewCount(),this._viewCount===0&&(this._viewIndex=0),this._viewCount&&this._initializeAnimationType(),this._viewCount>0&&this._viewIndex>=this._viewCount){let t=this._viewIndex;this._viewIndex=this._viewCount>0?this._viewCount-1:0,this._goToView(t,this._viewCount)}}async _goToView(t,e){if(this._viewCount=k(e)?e:this._adapter.getViewCount(),!(!(this._viewIndex>=0&&this._viewIndex<=this._viewCount-1)||t===this._clampedViewIndex(this._viewIndex,this._viewCount)))switch(this._animationType){case"slide":let o=this._viewIndex>t?"left":"right";await this._adapter.transitionToView(t,this._viewIndex,"slide",o),this._adapter.initializeSlideViews(this._viewIndex);break;case"fade":await this._adapter.transitionToView(t,this._viewIndex,"fade"),this._adapter.initializeFadeViews(this._viewIndex);break;case"none":default:this._adapter.setActiveView(this._viewIndex);break}}_clampedViewIndex(t,e){return t<0?t=0:t>e-1&&(t=e>0?e-1:0),t}next(){this.index++}previous(){this.index--}goToStart(){this.index=0}goToEnd(){this.index=this._viewCount-1}get index(){return this._viewIndex}set index(t){if(this._viewIndex!==t){let e=this._viewIndex;this._viewIndex=t,this._goToView(e),this._adapter.setHostAttribute(e2.attributes.INDEX,this._viewIndex.toString())}}get animationType(){return this._animationType}set animationType(t){this._animationType!==t&&(this._animationType=t,this._initializeAnimationType(),this._adapter.setAnimationType(this._animationType),this._adapter.setHostAttribute(e2.attributes.ANIMATION_TYPE,this._animationType))}};var Eb=`${b}view`,D6={elementName:Eb};var Cb="<template><slot></slot></template>",zb=":host{display:block}:host([hidden]){display:none}",la=class extends M{constructor(){super(),H(this,Cb,zb)}};la=s([y({name:D6.elementName})],la);var Ab='<template><div class="forge-view-switcher" part="root"><slot></slot></div></template>',Bb=":host{height:var(--_view-switcher-height);width:var(--_view-switcher-width);display:block}:host([hidden]){display:none}.forge-view-switcher{--_view-switcher-height:var(--forge-view-switcher-height, auto);--_view-switcher-width:var(--forge-view-switcher-width, auto);--_view-switcher-animation-duration:var(--forge-view-switcher-animation-duration, var(--forge-animation-duration-medium2, 300ms));--_view-switcher-animation-easing:var(--forge-view-switcher-animation-easing, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1)))}.forge-view-switcher{height:var(--_view-switcher-height);width:var(--_view-switcher-width);position:relative;overflow:hidden;transition-property:height;transition-duration:var(--_view-switcher-animation-duration);transition-timing-function:var(--_view-switcher-animation-easing)}.forge-view-switcher ::slotted(.forge-view-switcher__view--hidden){position:absolute;top:0;right:0;bottom:0;left:0}:host(.slide) ::slotted(forge-view){transition-property:transform;transition-duration:var(--_view-switcher-animation-duration);transition-timing-function:var(--_view-switcher-animation-easing);will-change:transform}:host(.fade) ::slotted(forge-view){transition-property:opacity;transition-duration:var(--_view-switcher-animation-duration);transition-timing-function:var(--_view-switcher-animation-easing);will-change:opacity}:host(.fade) ::slotted(.forge-view-switcher__view--hidden){opacity:0}",va=class extends M{static get observedAttributes(){return[e2.attributes.INDEX,e2.attributes.ANIMATION_TYPE]}constructor(){super(),H(this,Ab,Bb),this._core=new Pl(new Dl(this))}connectedCallback(){this._core.initialize()}disconnectedCallback(){this._core.destroy()}attributeChangedCallback(t,e,a){switch(t){case e2.attributes.INDEX:this.index=W(a);break;case e2.attributes.ANIMATION_TYPE:this.animationType=a;break}}next(){this._core.next()}previous(){this._core.previous()}goToStart(){this._core.goToStart()}goToEnd(){this._core.goToEnd()}};s([v()],va.prototype,"index",2),s([v()],va.prototype,"animationType",2),va=s([y({name:e2.elementName,dependencies:[la]})],va);function P6(){x(la)}function N6(){x(va)}var Tb=`${b}deprecated-button`,Sb={TYPE:"type",DISABLED:"disabled",FULL_WIDTH:"full-width"},kb={BUTTON:"button,a"},Ot={elementName:Tb,attributes:Sb,selectors:kb};var Ob='<template><slot></slot><forge-focus-indicator part="focus-indicator"></forge-focus-indicator><forge-state-layer exportparts="surface:state-layer"></forge-state-layer></template>',Db=':host{--_button-primary-color:var(--forge-button-primary-color, var(--forge-theme-primary, #3f51b5));--_button-text-color:var(--forge-button-text-color, var(--_button-primary-color));--_button-disabled-color:var(--forge-button-disabled-color, var(--forge-theme-surface-container, #e0e0e0));--_button-padding:var(--forge-button-padding, var(--forge-spacing-medium, 16px));--_button-display:var(--forge-button-display, inline-flex);--_button-justify:var(--forge-button-justify, center);--_button-shape:var(--forge-button-shape, calc(var(--forge-shape-medium, 4px) * var(--forge-shape-factor, 1)));--_button-height:var(--forge-button-height, 36px);--_button-min-width:var(--forge-button-min-width, 64px);--_button-spacing:var(--forge-button-spacing, var(--forge-spacing-xsmall, 8px));--_button-border-width:var(--forge-button-border-width, medium);--_button-border-style:var(--forge-button-border-style, none);--_button-border-color:var(--forge-button-border-color, currentColor);--_button-shape-start-start-radius:var(--forge-button-shape-start-start-radius, var(--_button-shape));--_button-shape-start-end-radius:var(--forge-button-shape-start-end-radius, var(--_button-shape));--_button-shape-end-start-radius:var(--forge-button-shape-end-start-radius, var(--_button-shape));--_button-shape-end-end-radius:var(--forge-button-shape-end-end-radius, var(--_button-shape));--_button-padding-block:var(--forge-button-padding-block, var(--_button-padding));--_button-padding-inline:var(--forge-button-padding-inline, var(--_button-padding));--_button-background:var(--forge-button-background, transparent);--_button-hover-background:var(--forge-button-hover-background, var(--_button-background));--_button-active-background:var(--forge-button-active-background, var(--_button-background));--_button-color:var(--forge-button-color, var(--_button-text-color));--_button-icon-size:var(--forge-button-icon-size, calc(var(--forge-typography-font-size, 1rem) * 1.125));--_button-shadow:var(--forge-button-shadow, none);--_button-hover-shadow:var(--forge-button-hover-shadow, none);--_button-active-shadow:var(--forge-button-active-shadow, none);--_button-cursor:var(--forge-button-cursor, pointer);--_button-transition-duration:var(--forge-button-transition-duration, var(--forge-animation-duration-short3, 150ms));--_button-transition-timing:var(--forge-button-transition-timing, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1)));--_button-text-padding-inline:var(--forge-button-text-padding-inline, var(--forge-spacing-xsmall, 8px));--_button-outlined-background:var(--forge-button-outlined-background, transparent);--_button-outlined-color:var(--forge-button-outlined-color, var(--_button-primary-color));--_button-outlined-border-width:var(--forge-button-outlined-border-width, var(--forge-border-thin, 1px));--_button-outlined-border-style:var(--forge-button-outlined-border-style, solid);--_button-outlined-border-color:var(--forge-button-outlined-border-color, var(--_button-primary-color));--_button-tonal-background:var(--forge-button-tonal-background, var(--forge-theme-primary-container, #d1d5ed));--_button-tonal-disabled-background:var(--forge-button-tonal-disabled-background, var(--_button-disabled-color));--_button-tonal-color:var(--forge-button-tonal-color, var(--forge-theme-on-primary-container, #222c62));--_button-tonal-disabled-color:var(--forge-button-tonal-disabled-color, var(--_button-disabled-text-color));--_button-filled-background:var(--forge-button-filled-background, var(--_button-primary-color));--_button-filled-disabled-background:var(--forge-button-filled-disabled-background, var(--_button-disabled-color));--_button-filled-color:var(--forge-button-filled-color, var(--forge-theme-on-primary, #ffffff));--_button-filled-disabled-color:var(--forge-button-filled-disabled-color, var(--_button-disabled-text-color));--_button-raised-background:var(--forge-button-raised-background, var(--_button-primary-color));--_button-raised-disabled-background:var(--forge-button-raised-disabled-background, var(--_button-disabled-color));--_button-raised-color:var(--forge-button-raised-color, var(--forge-theme-on-primary, #ffffff));--_button-raised-disabled-color:var(--forge-button-raised-disabled-color, var(--_button-disabled-text-color));--_button-raised-shadow:var(--forge-button-raised-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12));--_button-raised-hover-shadow:var(--forge-button-raised-hover-shadow, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12));--_button-raised-active-shadow:var(--forge-button-raised-active-shadow, 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12));--_button-raised-disabled-shadow:var(--forge-button-raised-disabled-shadow, none);--_button-link-color:var(--forge-button-link-color, var(--_button-primary-color));--_button-link-text-decoration:var(--forge-button-link-text-decoration, underline);--_button-link-height:var(--forge-button-link-height, auto);--_button-link-padding:var(--forge-button-link-padding, 0);--_button-link-line-height:var(--forge-button-link-line-height, normal);--_button-link-width:var(--forge-button-link-width, auto);--_button-link-hover-text-decoration:var(--forge-button-link-hover-text-decoration, none);--_button-link-active-opacity:var(--forge-button-link-active-opacity, 0.65);--_button-link-transition-duration:var(--forge-button-link-transition-duration, var(--forge-animation-duration-short3, 150ms));--_button-link-transition-timing:var(--forge-button-link-transition-timing, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1)));--_button-disabled-cursor:var(--forge-button-disabled-cursor, not-allowed);--_button-disabled-text-color:var(--forge-button-disabled-text-color, var(--forge-theme-text-low, rgba(0, 0, 0, 0.38)));--_button-disabled-background:var(--forge-button-disabled-background, transparent);--_button-disabled-border-color:var(--forge-button-disabled-border-color, var(--_button-disabled-color));--_button-disabled-shadow:var(--forge-button-disabled-shadow, none);--_button-dense-height:var(--forge-button-dense-height, 24px);--_button-pill-shape:var(--forge-button-pill-shape, calc(var(--forge-shape-full, 9999px) * var(--forge-shape-factor, 1)));--_button-pill-padding-inline:var(--forge-button-pill-padding-inline, var(--forge-spacing-small, 12px));--_button-focus-indicator-offset:var(--forge-button-focus-indicator-offset, 4px);--_button-text-focus-indicator-offset:var(--forge-button-text-focus-indicator-offset, 0px);--_button-link-focus-indicator-offset:var(--forge-button-link-focus-indicator-offset, 2px);--_button-popover-icon-transition-duration:var(--forge-button-popover-icon-transition-duration, var(--forge-animation-duration-short3, 150ms));--_button-popover-icon-transition-timing:var(--forge-button-popover-icon-transition-timing, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1)));--_button-popover-icon-open-rotation:var(--forge-button-popover-icon-open-rotation, 180deg)}:host{display:var(--_button-display);position:relative;outline:0;vertical-align:middle;-webkit-tap-highlight-color:transparent;border-radius:var(--_button-shape)}:host([hidden]){display:none}::slotted(:is(button,a)){-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-button-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-button-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-button-font-size-scale, .875)));font-weight:var(--forge-typography-button-font-weight,500);line-height:var(--forge-typography-button-line-height, normal);letter-spacing:var(--forge-typography-button-letter-spacing, .0714285714em);text-transform:var(--forge-typography-button-text-transform,inherit);text-decoration:var(--forge-typography-button-text-decoration,inherit);position:relative;display:var(--_button-display);align-items:center;justify-content:var(--_button-justify);gap:var(--_button-spacing);z-index:0;box-sizing:border-box;min-inline-size:var(--_button-min-width);height:var(--_button-height);inline-size:100%;border-width:var(--_button-border-width);border-style:var(--_button-border-style);border-color:var(--_button-border-color);border-start-start-radius:var(--_button-shape-start-start-radius);border-start-end-radius:var(--_button-shape-start-end-radius);border-end-start-radius:var(--_button-shape-end-start-radius);border-end-end-radius:var(--_button-shape-end-end-radius);padding-block:var(--_button-padding-block);padding-inline:var(--_button-padding-inline);box-shadow:var(--_button-shadow);outline:0;user-select:none;-webkit-appearance:none;vertical-align:middle;text-decoration:none;white-space:nowrap;background:var(--_button-background);color:var(--_button-color);cursor:var(--_button-cursor);transition-property:box-shadow,background;transition-duration:var(--_button-transition-duration);transition-timing-function:var(--_button-transition-timing);--forge-icon-font-size:1.25em}::slotted(:is(button,a))::-moz-focus-inner{padding:0;border:0}::slotted(:is(button,a)):hover{--_button-shadow:var(--_button-hover-shadow);background:var(--_button-hover-background)}::slotted(:is(button,a)):active{--_button-shadow:var(--_button-active-shadow);background:var(--_button-active-background)}::slotted(a){text-decoration:none;--forge-typography-link-text-decoration:none}forge-state-layer{--forge-state-layer-color:var(--_button-color)}forge-focus-indicator{--forge-focus-indicator-color:var(--_button-primary-color);--forge-focus-indicator-outward-offset:var(--_button-focus-indicator-offset)}:host(:is([type*=unelevated],[type*=raised])) ::slotted(:is(button,a)){--_button-background:var(--_button-filled-background);--_button-color:var(--_button-filled-color)}:host(:is([type*=unelevated],[type*=raised])) forge-state-layer{--forge-state-layer-color:var(--_button-filled-color)}:host([type*=raised]) ::slotted(:is(button,a)){--_button-background:var(--_button-raised-background);--_button-color:var(--_button-raised-color);--_button-shadow:var(--_button-raised-shadow)}:host([type*=raised]) ::slotted(:is(button,a)):hover{--_button-shadow:var(--_button-raised-hover-shadow)}:host([type*=raised]) ::slotted(:is(button,a)):active{--_button-shadow:var(--_button-raised-active-shadow)}:host([type*=outlined]) ::slotted(:is(button,a)){--_button-background:var(--_button-outlined-background);--_button-color:var(--_button-outlined-color);--_button-border-width:var(--_button-outlined-border-width);--_button-border-style:var(--_button-outlined-border-style);--_button-border-color:var(--_button-outlined-border-color)}:host([full-width]){width:100%}:host(:is([dense],[type*=dense])) ::slotted(:is(button,a)){--_button-height:var(--_button-dense-height)}:host([disabled]){cursor:var(--_button-disabled-cursor)}:host([disabled]) ::slotted(button[disabled]){--_button-background:var(--_button-disabled-background);--_button-color:var(--_button-disabled-text-color);--_button-shadow:var(--_button-disabled-shadow);pointer-events:none}:host([type*=outlined][disabled]) ::slotted(button[disabled]){--_button-border-color:var(--_button-disabled-border-color)}:host(:is([type*=unelevated],[type*=raised])[disabled]) ::slotted(button[disabled]){--_button-background:var(--_button-filled-disabled-background);--_button-color:var(--_button-filled-disabled-color)}:host([type*=raised][disabled]) ::slotted(button[disabled]){--_button-background:var(--_button-raised-disabled-background);--_button-color:var(--_button-raised-disabled-color);--_button-shadow:var(--_button-raised-disabled-shadow)}',Do=class extends M{constructor(){super();this._buttonOrAnchorElement=null;this._disabled=!1;this._fullWidth=!1;this._buttonChangeListener=this._onButtonChange.bind(this);this._keydownListener=e=>this._onKeydown(e);H(this,Ob,Db),this._slotElement=g(this,"slot:not([name])"),this._focusIndicator=g(this,m1.elementName),this._stateLayer=g(this,M1.elementName)}static get observedAttributes(){return Object.values(Ot.attributes)}connectedCallback(){this._slotElement.addEventListener("slotchange",this._buttonChangeListener),this.children.length?this._initialize():Fa(this).then(()=>this._initialize())}disconnectedCallback(){this._detachButton()}attributeChangedCallback(e,a,o){switch(e){case Ot.attributes.TYPE:this.type=o;return;case Ot.attributes.DISABLED:this.disabled=p(o);return;case Ot.attributes.FULL_WIDTH:this.fullWidth=p(o);return}}_onKeydown(e){(e.key==="Enter"||e.key===" ")&&this._stateLayer.playAnimation()}_onButtonChange(){this._detachButton(),this._initialize()}_initialize(){this._buttonOrAnchorElement=this.querySelector(Ot.selectors.BUTTON),this._buttonOrAnchorElement&&(this._stateLayer.targetElement=this._buttonOrAnchorElement,this._focusIndicator.targetElement=this._buttonOrAnchorElement,this._buttonOrAnchorElement.addEventListener("keydown",this._keydownListener),this._buttonOrAnchorElement instanceof HTMLButtonElement&&this._disabled&&!this._buttonOrAnchorElement.disabled?this._buttonOrAnchorElement.disabled=!0:this.disabled=this._buttonOrAnchorElement instanceof HTMLButtonElement&&this._buttonOrAnchorElement.disabled,this._buttonOrAnchorElement instanceof HTMLButtonElement&&(this._buttonAttrMutationObserver=new MutationObserver(e=>{e.some(a=>a.attributeName==="disabled")&&this._syncDisabledState()}),this._buttonAttrMutationObserver.observe(this._buttonOrAnchorElement,{attributes:!0,attributeFilter:["disabled"]})))}_syncDisabledState(){let e=this._buttonOrAnchorElement instanceof HTMLButtonElement&&this._buttonOrAnchorElement.disabled;K(this,e,Ot.attributes.DISABLED)}_detachButton(){var e;(e=this._buttonOrAnchorElement)==null||e.removeEventListener("keydown",this._keydownListener),this._buttonAttrMutationObserver&&(this._buttonAttrMutationObserver.disconnect(),this._buttonAttrMutationObserver=void 0)}get type(){return this._type}set type(e){this._type!==e&&(this._type=e,this.setAttribute(Ot.attributes.TYPE,this._type))}get disabled(){return this._disabled}set disabled(e){var a;this._disabled!==e&&(this._disabled=e,(a=this._buttonOrAnchorElement)==null||a.toggleAttribute(Ot.attributes.DISABLED,this._disabled),this.toggleAttribute(Ot.attributes.DISABLED,this._disabled))}get fullWidth(){return this._fullWidth}set fullWidth(e){this._fullWidth!==e&&(this._fullWidth=e,this.toggleAttribute(Ot.attributes.FULL_WIDTH,this._fullWidth))}focus(e){var a;(a=this._buttonOrAnchorElement)==null||a.focus(e)}};Do=s([y({name:Ot.elementName,dependencies:[Q,r1]})],Do);var R6=class extends X1{constructor(t){super(t)}destroy(){this._buttonElement=void 0}get buttonElement(){return this._buttonElement}_build(){var e,a;let t=document.createElement(Ot.elementName);return this._buttonElement=document.createElement("button"),this._buttonElement.type=((e=this._config.options)==null?void 0:e.type)||"button",this._buttonElement.textContent=((a=this._config.options)==null?void 0:a.text)||"",t.appendChild(this._buttonElement),t}onClick(t){var e;(e=this._buttonElement)==null||e.addEventListener("click",t)}onFocus(t){var e;(e=this._buttonElement)==null||e.addEventListener("focus",a=>t(a))}onBlur(t){var e;(e=this._buttonElement)==null||e.addEventListener("blur",a=>t(a))}};function F6(){x(Do)}var Pb=`${b}deprecated-icon-button`,U6={DISABLED:"disabled",TOGGLE:"toggle",IS_ON:"is-on",DENSITY_LEVEL:"density-level"},Nb=t1(w({},U6),{ON_ICON:"forge-icon-button-on"}),Rb={BUTTON:"button,a",ICON_LIKE:"button > i,span,svg,img,forge-icon"},Fb={TOGGLE:"forge-icon-button-toggle"},K2={elementName:Pb,observedAttributes:U6,attributes:Nb,selectors:Rb,events:Fb};var Ub='<template><slot></slot><forge-focus-indicator part="focus-indicator"></forge-focus-indicator><forge-state-layer exportparts="surface:state-layer"></forge-state-layer></template>',Wb=":host{--_icon-button-display:var(--forge-icon-button-display, inline-flex);--_icon-button-size:var(--forge-icon-button-size, 48px);--_icon-button-gap:var(--forge-icon-button-gap, 0);--_icon-button-icon-color:var(--forge-icon-button-icon-color, currentColor);--_icon-button-background-color:var(--forge-icon-button-background-color, none);--_icon-button-icon-size:var(--forge-icon-button-icon-size, calc(var(--forge-typography-font-size, 1rem) * 1.5));--_icon-button-cursor:var(--forge-icon-button-cursor, pointer);--_icon-button-padding:var(--forge-icon-button-padding, var(--forge-spacing-xxsmall, 4px));--_icon-button-border:var(--forge-icon-button-border, none);--_icon-button-shadow:var(--forge-icon-button-shadow, none);--_icon-button-transition-duration:var(--forge-icon-button-transition-duration, var(--forge-animation-duration-short3, 150ms));--_icon-button-transition-timing:var(--forge-icon-button-transition-timing, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1)));--_icon-button-shape:var(--forge-icon-button-shape, calc(var(--forge-shape-full, 9999px) * var(--forge-shape-factor, 1)));--_icon-button-shape-start-start:var(--forge-icon-button-shape-start-start, var(--_icon-button-shape));--_icon-button-shape-start-end:var(--forge-icon-button-shape-start-end, var(--_icon-button-shape));--_icon-button-shape-end-start:var(--forge-icon-button-shape-end-start, var(--_icon-button-shape));--_icon-button-shape-end-end:var(--forge-icon-button-shape-end-end, var(--_icon-button-shape));--_icon-button-shape-squared:var(--forge-icon-button-shape-squared, calc(var(--forge-shape-medium, 4px) * var(--forge-shape-factor, 1)));--_icon-button-outlined-border-width:var(--forge-icon-button-outlined-border-width, 1px);--_icon-button-outlined-border-style:var(--forge-icon-button-outlined-border-style, solid);--_icon-button-outlined-border-color:var(--forge-icon-button-outlined-border-color, var(--_icon-button-icon-color));--_icon-button-tonal-icon-color:var(--forge-icon-button-tonal-icon-color, var(--forge-theme-on-primary-container, #222c62));--_icon-button-tonal-background-color:var(--forge-icon-button-tonal-background-color, var(--forge-theme-primary-container, #d1d5ed));--_icon-button-filled-icon-color:var(--forge-icon-button-filled-icon-color, var(--forge-theme-on-primary, #ffffff));--_icon-button-filled-background-color:var(--forge-icon-button-filled-background-color, var(--forge-theme-primary, #3f51b5));--_icon-button-raised-shadow:var(--forge-icon-button-raised-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12));--_icon-button-raised-hover-shadow:var(--forge-icon-button-raised-hover-shadow, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12));--_icon-button-raised-active-shadow:var(--forge-icon-button-raised-active-shadow, 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12));--_icon-button-raised-disabled-shadow:var(--forge-icon-button-raised-disabled-shadow, none);--_icon-button-density-small-size:var(--forge-icon-button-density-small-size, 24px);--_icon-button-density-small-padding:var(--forge-icon-button-density-small-padding, var(--forge-spacing-xxxsmall, 2px));--_icon-button-density-small-icon-size:var(--forge-icon-button-density-small-icon-size, calc(var(--forge-typography-font-size, 1rem) * 1.125));--_icon-button-density-medium-size:var(--forge-icon-button-density-medium-size, 36px);--_icon-button-density-medium-padding:var(--forge-icon-button-density-medium-padding, var(--forge-spacing-xxsmall, 4px));--_icon-button-density-large-size:var(--forge-icon-button-density-large-size, var(--_icon-button-size));--_icon-button-toggle-on-background-color:var(--forge-icon-button-toggle-on-background-color, var(--forge-theme-primary-container, #d1d5ed));--_icon-button-toggle-on-icon-color:var(--forge-icon-button-toggle-on-icon-color, var(--forge-theme-primary, #3f51b5));--_icon-button-outlined-toggle-on-background-color:var(--forge-icon-button-outlined-toggle-on-background-color, var(--forge-theme-primary-container, #d1d5ed));--_icon-button-outlined-toggle-on-icon-color:var(--forge-icon-button-outlined-toggle-on-icon-color, var(--forge-theme-primary, #3f51b5));--_icon-button-tonal-toggle-background-color:var(--forge-icon-button-tonal-toggle-background-color, var(--forge-theme-surface-container-low, #ebebeb));--_icon-button-tonal-toggle-on-background-color:var(--forge-icon-button-tonal-toggle-on-background-color, var(--forge-theme-primary-container, #d1d5ed));--_icon-button-tonal-toggle-on-icon-color:var(--forge-icon-button-tonal-toggle-on-icon-color, var(--forge-theme-primary, #3f51b5));--_icon-button-filled-toggle-background-color:var(--forge-icon-button-filled-toggle-background-color, var(--forge-theme-surface-container-low, #ebebeb));--_icon-button-filled-toggle-icon-color:var(--forge-icon-button-filled-toggle-icon-color, var(--forge-theme-primary, #3f51b5));--_icon-button-filled-toggle-on-background-color:var(--forge-icon-button-filled-toggle-on-background-color, var(--forge-theme-primary, #3f51b5));--_icon-button-filled-toggle-on-icon-color:var(--forge-icon-button-filled-toggle-on-icon-color, var(--forge-theme-on-primary, #ffffff));--_icon-button-disabled-cursor:var(--forge-icon-button-disabled-cursor, not-allowed);--_icon-button-disabled-opacity:var(--forge-icon-button-disabled-opacity, 0.38);--_icon-button-popover-icon-padding:var(--forge-icon-button-popover-icon-padding, var(--forge-spacing-xsmall, 8px));--_icon-button-focus-indicator-color:var(--forge-icon-button-focus-indicator-color, var(--forge-theme-primary, #3f51b5))}:host{display:var(--_icon-button-display);position:relative;outline:0;-webkit-tap-highlight-color:transparent;border-start-start-radius:var(--_icon-button-shape-start-start);border-start-end-radius:var(--_icon-button-shape-start-end);border-end-start-radius:var(--_icon-button-shape-end-start);border-end-end-radius:var(--_icon-button-shape-end-end)}:host([hidden]){display:none}::slotted(:is(button,a)){position:relative;z-index:0;display:var(--_icon-button-display);align-items:center;justify-content:center;gap:var(--_icon-button-gap);box-sizing:border-box;height:var(--_icon-button-density-large-size);min-width:var(--_icon-button-density-large-size);border:var(--_icon-button-border);border-start-start-radius:var(--_icon-button-shape-start-start);border-start-end-radius:var(--_icon-button-shape-start-end);border-end-start-radius:var(--_icon-button-shape-end-start);border-end-end-radius:var(--_icon-button-shape-end-end);padding:var(--_icon-button-padding);box-shadow:var(--_icon-button-shadow);color:var(--_icon-button-icon-color);background:var(--_icon-button-background-color);font-size:var(--_icon-button-icon-size);cursor:var(--_icon-button-cursor);user-select:none;transition-property:box-shadow,background;transition-duration:var(--_icon-button-transition-duration);transition-timing-function:var(--_icon-button-transition-timing);font-size:var(--_icon-button-icon-size);height:var(--_icon-button-size);width:var(--_icon-button-size)}::slotted(a){text-decoration:none;color:var(--_icon-button-icon-color)!important}forge-state-layer{--forge-state-layer-color:var(--_icon-button-icon-color)}forge-focus-indicator{--forge-focus-indicator-outward-offset:0px;--forge-focus-indicator-color:var(--_icon-button-focus-indicator-color);--forge-focus-indicator-shape-start-start:var(--_icon-button-shape-start-start);--forge-focus-indicator-shape-start-end:var(--_icon-button-shape-start-end);--forge-focus-indicator-shape-end-start:var(--_icon-button-shape-end-start);--forge-focus-indicator-shape-end-end:var(--_icon-button-shape-end-end)}:host(:is([dense],[density=large]):not(:is([density=medium],[density-level]))){--_icon-button-size:var(--_icon-button-density-small-size);--_icon-button-icon-size:var(--_icon-button-density-small-icon-size);--_icon-button-padding:var(--_icon-button-density-small-padding);--forge-icon-font-size:var(--_icon-button-icon-size)}:host([dense]:not([density=large]):not([density=small]):is([density=medium],[density-level])){--_icon-button-size:var(--_icon-button-density-medium-size);--_icon-button-padding:var(--_icon-button-density-medium-padding)}:host([disabled]){cursor:var(--_icon-button-disabled-cursor)}:host([disabled]) ::slotted(button[disabled]){pointer-events:none;opacity:var(--_icon-button-disabled-opacity)}:host([toggle]:is([on],[is-on]):not([is-on=false])){--_icon-button-background-color:var(--_icon-button-toggle-on-background-color);--_icon-button-icon-color:var(--_icon-button-toggle-on-icon-color);--_icon-button-background-color:var(--forge-icon-button-background-color, var(--forge-theme-primary-container-low, #e8eaf6))}",Po=class extends M{constructor(){super();this._disabled=!1;this._toggle=!1;this._isOn=!1;this._densityLevel=0;this._buttonOrAnchorElement=null;this._slotChangeListener=this._onSlotChange.bind(this);this._keydownListener=this._onKeydown.bind(this);this._toggleClickListener=this._onToggle.bind(this);H(this,Ub,Wb),this._slotElement=g(this,"slot:not([name])"),this._focusIndicator=g(this,m1.elementName),this._stateLayer=g(this,M1.elementName)}static get observedAttributes(){return Object.values(K2.attributes)}connectedCallback(){this._slotElement.addEventListener("slotchange",this._slotChangeListener),this.children.length?this._initialize():Fa(this).then(()=>this._initialize())}disconnectedCallback(){this._detachButton()}attributeChangedCallback(e,a,o){switch(e){case K2.attributes.DISABLED:this.disabled=p(o);return;case K2.attributes.TOGGLE:this.toggle=p(o);return;case K2.attributes.IS_ON:this.isOn=p(o);return;case K2.attributes.DENSITY_LEVEL:this.densityLevel=W(o);return}}_onKeydown(e){(e.key==="Enter"||e.key===" ")&&this._stateLayer.playAnimation()}_onSlotChange(){this._detachButton(),this._initialize()}_onToggle(){this.isOn=!this._isOn,this.dispatchEvent(new CustomEvent("forge-icon-button-toggle",{bubbles:!0,composed:!0,detail:this._isOn}))}_initialize(){this._buttonOrAnchorElement=this.querySelector(K2.selectors.BUTTON),this._buttonOrAnchorElement&&(this._stateLayer.targetElement=this._buttonOrAnchorElement,this._focusIndicator.targetElement=this._buttonOrAnchorElement,this._buttonOrAnchorElement.addEventListener("keydown",this._keydownListener),this._buttonOrAnchorElement instanceof HTMLButtonElement&&this._disabled&&!this._buttonOrAnchorElement.disabled?this._buttonOrAnchorElement.disabled=!0:this.disabled=this._buttonOrAnchorElement instanceof HTMLButtonElement&&this._buttonOrAnchorElement.disabled,this._toggle&&this._initializeToggle(),this._buttonOrAnchorElement instanceof HTMLButtonElement&&(this._buttonAttrMutationObserver=new MutationObserver(e=>{e.some(a=>a.attributeName==="disabled")&&this._syncDisabledState()}),this._buttonAttrMutationObserver.observe(this._buttonOrAnchorElement,{attributes:!0,attributeFilter:["disabled"]})))}_syncDisabledState(){let e=this._buttonOrAnchorElement instanceof HTMLButtonElement&&this._buttonOrAnchorElement.disabled;this.toggleAttribute(K2.attributes.DISABLED,e)}_detachButton(){var e;(e=this._buttonOrAnchorElement)==null||e.removeEventListener("keydown",this._keydownListener),this._buttonAttrMutationObserver&&(this._buttonAttrMutationObserver.disconnect(),this._buttonAttrMutationObserver=void 0)}_initializeToggle(){this._buttonOrAnchorElement&&(this._buttonOrAnchorElement.addEventListener("click",this._toggleClickListener),this._syncToggleState())}_destroyToggle(){var e;(e=this._buttonOrAnchorElement)==null||e.removeEventListener("click",this._toggleClickListener)}_syncToggleState(){let e=Array.from(this.querySelectorAll(K2.selectors.ICON_LIKE)),a=e.find(n=>n.hasAttribute(K2.attributes.ON_ICON)),o=e.filter(n=>n!==a);a==null||a.toggleAttribute("hidden",!this._isOn),o.forEach(n=>n.toggleAttribute("hidden",this._isOn)),this.toggleAttribute(K2.attributes.IS_ON,this._isOn)}get disabled(){return this._disabled}set disabled(e){var a;e=!!e,this._disabled!==e&&(this._disabled=e,(a=this._buttonOrAnchorElement)==null||a.toggleAttribute(K2.attributes.DISABLED,this._disabled),this.toggleAttribute(K2.attributes.DISABLED,this._disabled))}get toggle(){return this._toggle}set toggle(e){e=!!e,this._toggle!==e&&(this._toggle=e,this.isConnected&&(this._toggle?this._initializeToggle():this._destroyToggle()),this.toggleAttribute(K2.attributes.TOGGLE,this._toggle))}get isOn(){return this._isOn}set isOn(e){e=!!e,this._isOn!==e&&(this._isOn=e,this.isConnected&&this._syncToggleState())}get densityLevel(){return this._densityLevel}set densityLevel(e){this._densityLevel!==e&&(this._densityLevel=e,this.setAttribute(K2.attributes.DENSITY_LEVEL,String(this._densityLevel)))}focus(e){var a;(a=this._buttonOrAnchorElement)==null||a.focus(e)}};Po=s([y({name:K2.elementName,dependencies:[X,Q,r1]})],Po);var W6=class extends X1{constructor(t){super(t)}destroy(){this._buttonElement=void 0}get buttonElement(){return this._buttonElement}_build(){var e;let t=document.createElement(K2.elementName);if(this._buttonElement=document.createElement("button"),this._buttonElement.type="button",t.appendChild(this._buttonElement),(e=this._config.options)!=null&&e.tooltip){let a=document.createElement("forge-tooltip");a.textContent=this._config.options.tooltip,this._config.options.tooltipPosition&&(a.position=this._config.options.tooltipPosition),t.appendChild(a)}return t}onClick(t){var e;(e=this._buttonElement)==null||e.addEventListener("click",t)}onFocus(t){var e;(e=this._buttonElement)==null||e.addEventListener("focus",t)}onBlur(t){var e;(e=this._buttonElement)==null||e.addEventListener("blur",t)}get iconElement(){return this._iconElement}get disabled(){var t;return!!((t=this._buttonElement)!=null&&t.disabled)}set disabled(t){this._buttonElement&&(this._buttonElement.disabled=t)}_configure(){this._configureIcon()}_configureIcon(){var e,a,o,n;if(!((e=this._config.options)!=null&&e.iconName))return;switch(((a=this._config.options)==null?void 0:a.iconType)||"component"){case"font":let i=Array.isArray(this._config.options.iconClass)?this._config.options.iconClass:[ke];(o=this._buttonElement)==null||o.classList.add(...i),this._buttonElement&&(this._buttonElement.textContent=this._config.options.iconName);break;case"component":this._iconElement=document.createElement(h1.elementName),this._iconElement.name=this._config.options.iconName,this._config.options.iconExternal!==void 0&&(this._iconElement.external=!!this._config.options.iconExternal),this._config.options.iconExternalType&&(this._iconElement.externalType=this._config.options.iconExternalType),this._config.options.iconClass&&this._iconElement.classList.add(...this._config.options.iconClass),(n=this._buttonElement)==null||n.appendChild(this._iconElement);break}}};function G6(){x(Po)}var Nl=class extends I{constructor(t){super(t)}startButtonObserver(){this._buttonChangeObserver=new MutationObserver(t=>{let e=t.reduce((a,{addedNodes:o})=>{let n=Array.from(o).filter(i=>i.nodeType===Node.ELEMENT_NODE).map(i=>i.nodeName.toLowerCase()===I2.elementName?i:i.querySelector(I2.elementName)).filter(i=>!!i);return a.concat(n)},[]);e.length&&(e.forEach(a=>{a.variant=this._component.variant,a.theme=this._component.theme,a.disabled=this._component.disabled,a.dense=this._component.dense}),this.setPill(this._component.pill))}),this._buttonChangeObserver.observe(this._component,{childList:!0,subtree:!0})}destroyButtonObserver(){var t;(t=this._buttonChangeObserver)==null||t.disconnect(),this._buttonChangeObserver=void 0}setVariant(t){this._getButtons().forEach(a=>a.variant=t)}setTheme(t){this._getButtons().forEach(a=>a.theme=t)}setDisabled(t){this._getButtons().forEach(a=>a.disabled=t)}setDense(t){this._getButtons().forEach(a=>a.dense=t)}setPill(t){let e=this._getButtons();e.length>2&&Array.from(e).slice(1,e.length-1).filter(({pill:n})=>n).forEach(n=>n.pill=!1);let a=e[0];a&&(a.pill=t);let o=e[e.length-1];o&&(o.pill=t)}_getButtons(){return this._component.querySelectorAll(I2.elementName)}};var Gb=`${b}split-button`,Yb={VARIANT:"variant",THEME:"theme",DISABLED:"disabled",DENSE:"dense",PILL:"pill"},Kb={DEFAULT_VARIANT:"text",DEFAULT_THEME:"primary"},u2={elementName:Gb,attributes:Yb,defaults:Kb};var Rl=class{constructor(t){this._adapter=t;this._variant=u2.defaults.DEFAULT_VARIANT;this._theme=u2.defaults.DEFAULT_THEME;this._disabled=!1;this._dense=!1;this._pill=!1}initialize(){this._adapter.startButtonObserver(),this._adapter.setVariant(this._variant),this._adapter.setTheme(this._theme),this._adapter.setDisabled(this._disabled),this._adapter.setDense(this._dense),this._adapter.setPill(this._pill)}destroy(){this._adapter.destroyButtonObserver()}get variant(){return this._variant}set variant(t){this._variant!==t&&(this._variant=t!=null?t:u2.defaults.DEFAULT_VARIANT,this._adapter.setVariant(t),this._adapter.setHostAttribute(u2.attributes.VARIANT,this._variant))}get theme(){return this._theme}set theme(t){this._theme!==t&&(this._theme=t!=null?t:u2.defaults.DEFAULT_THEME,this._adapter.setTheme(this._theme),this._adapter.setHostAttribute(u2.attributes.THEME,this._theme))}get disabled(){return this._disabled}set disabled(t){this._disabled!==t&&(this._disabled=t,this._adapter.setDisabled(this._disabled),this._adapter.toggleHostAttribute(u2.attributes.DISABLED,this._disabled))}get dense(){return this._dense}set dense(t){this._dense!==t&&(this._dense=t,this._adapter.setDense(this._dense),this._adapter.toggleHostAttribute(u2.attributes.DENSE,this._dense))}get pill(){return this._pill}set pill(t){this._pill!==t&&(this._pill=t,this._adapter.setPill(this._pill),this._adapter.toggleHostAttribute(u2.attributes.PILL,this._pill))}};var qb="<template><slot></slot></template>",$b=":host{--_split-button-min-width:var(--forge-split-button-min-width, 0);--_split-button-gap:var(--forge-split-button-gap, var(--forge-border-thin, 1px));--_split-button-focus-indicator-offset:var(--forge-split-button-focus-indicator-offset, var(--forge-button-focus-indicator-offset, 4px));--_split-button-focus-indicator-divider-offset:var(--forge-split-button-focus-indicator-divider-offset, var(--_split-button-gap));--_split-button-focus-indicator-offset-adjusted:calc(var(--_split-button-focus-indicator-offset) + var(--_split-button-focus-indicator-divider-offset) * 2)}:host{display:inline-flex;justify-content:center;align-items:center}:host([hidden]){display:none}::slotted(*){--forge-button-min-width:var(--_split-button-min-width);--forge-button-focus-indicator-offset:var(--_split-button-focus-indicator-offset)}::slotted(:first-child){--forge-button-shape-start-end-radius:0;--forge-button-shape-end-end-radius:0;--forge-focus-indicator-shape-start-end:0;--forge-focus-indicator-shape-end-end:0;--forge-focus-indicator-offset-inline:0 var(--_split-button-focus-indicator-offset-adjusted)}::slotted(:not(:first-child):not(:last-child)){--forge-button-shape:0;--forge-focus-indicator-shape:0;--forge-focus-indicator-offset-inline:var(--_split-button-focus-indicator-offset-adjusted)}::slotted(:last-child){--forge-button-shape-start-start-radius:0;--forge-button-shape-end-start-radius:0;--forge-focus-indicator-shape-start-start:0;--forge-focus-indicator-shape-end-start:0;--forge-focus-indicator-offset-inline:var(--_split-button-focus-indicator-offset-adjusted) 0}:host([variant=outlined]){--_split-button-focus-indicator-divider-offset:var(--forge-split-button-focus-indicator-divider-offset, 0px)}:host([variant=outlined]) ::slotted(:not(:first-child)){margin-inline-start:calc(-1 * var(--_split-button-gap))}:host(:is([variant=tonal],[variant=filled],[variant=raised],:not([variant]))) ::slotted(:not(:last-child)){margin-inline-end:var(--_split-button-gap)}",ze=class extends M{static get observedAttributes(){return[u2.attributes.VARIANT,u2.attributes.THEME,u2.attributes.DISABLED,u2.attributes.DENSE,u2.attributes.PILL]}constructor(){super(),H(this,qb,$b),this._core=new Rl(new Nl(this))}connectedCallback(){this._core.initialize()}disconnectedCallback(){this._core.destroy()}attributeChangedCallback(t,e,a){switch(t){case u2.attributes.VARIANT:this.variant=a;break;case u2.attributes.THEME:this.theme=a;break;case u2.attributes.DISABLED:this.disabled=p(a);break;case u2.attributes.DENSE:this.dense=p(a);break;case u2.attributes.PILL:this.pill=p(a);break}}};s([v()],ze.prototype,"variant",2),s([v()],ze.prototype,"theme",2),s([v()],ze.prototype,"disabled",2),s([v()],ze.prototype,"dense",2),s([v()],ze.prototype,"pill",2),ze=s([y({name:u2.elementName,dependencies:[V2]})],ze);function $A1(){x(ze)}function tB1(){let r="0123456789ABCDEF".split(""),t="#";for(let e=0;e<6;e++)t+=r[Math.floor(Math.random()*16)];return t}function uT1(){G3(),sv(),zh(),oh(),ih(),ic(),vv(),qc(),ho(),Xc(),nh(),Zc(),rp(),np(),Bh(),cc(),gc(),Op(),Pp(),_c(),Nc(),Uc(),Rc(),Np(),Gp(),Kp(),$p(),ep(),sc(),Qp(),U3(),Bc(),nd(),vd(),iv(),gv(),N3(),hd(),cd(),fd(),pd(),Cc(),yd(),bh(),mh(),dh(),Ch(),Md(),Hd(),ad(),td(),R3(),Td(),Sd(),th(),Id(),Rd(),fh(),nc(),xc(),yc(),Ad(),Nd(),Ud(),yh(),Yd(),jd(),p6(),g6(),nv(),w6(),_6(),Ic(),V6(),I6(),b6(),kc(),S6(),O6(),rc(),ah(),P6(),N6()}function _T1(){F6(),G6()}export{wa as ACCORDION_CONSTANTS,J3 as ANIMATION_FILL,W1 as APP_BAR_CONSTANTS,Ne as APP_BAR_HELP_BUTTON_CONSTANTS,to as APP_BAR_MENU_BUTTON_CONSTANTS,m2 as APP_BAR_NOTIFICATION_BUTTON_CONSTANTS,_1 as APP_BAR_PROFILE_BUTTON_CONSTANTS,A2 as APP_BAR_SEARCH_CONSTANTS,Zl as ARIA_CONTROLS_PLACEHOLDER_ID,s1 as AUTOCOMPLETE_CONSTANTS,Ca as AVATAR_CONSTANTS,z4 as AVATAR_TAG_NAME,bn as AccordionAdapter,ua as AccordionComponent,yn as AccordionCore,Vn as AppBarAdapter,be as AppBarComponent,En as AppBarCore,mi as AppBarHelpButtonAdapter,q0 as AppBarHelpButtonComponent,gi as AppBarHelpButtonCore,io as AppBarMenuButtonComponent,qn as AppBarNotificationButtonAdapter,Le as AppBarNotificationButtonComponent,$n as AppBarNotificationButtonCore,Ci as AppBarProfileButtonAdapter,U2 as AppBarProfileButtonComponent,zi as AppBarProfileButtonCore,zn as AppBarSearchAdapter,h0 as AppBarSearchComponent,Cn as AppBarSearchCore,rs as AutocompleteAdapter,c2 as AutocompleteComponent,Kc as AutocompleteComponentDelegate,ns as AutocompleteCore,Wc as AutocompleteMode,Ve as AvatarComponent,s2 as BACKDROP_CONSTANTS,j2 as BADGE_CONSTANTS,M2 as BANNER_CONSTANTS,Z1 as BASE_DRAWER_CONSTANTS,F as BASE_FIELD_CONSTANTS,bt as BASE_SELECT_CONSTANTS,A1 as BOTTOM_SHEET_CONSTANTS,Bt as BUTTON_AREA_CONSTANTS,I2 as BUTTON_CONSTANTS,y3 as BUTTON_FORM_ATTRIBUTES,Z2 as BUTTON_TOGGLE_CONSTANTS,N1 as BUTTON_TOGGLE_GROUP_CONSTANTS,We as BackdropComponent,G0 as BadgeComponent,rh as BadgeComponentDelegate,is as BannerAdapter,g0 as BannerComponent,ss as BannerCore,I as BaseAdapter,M as BaseComponent,X1 as BaseComponentDelegate,ra as BaseDrawerAdapter,Ke as BaseDrawerComponent,na as BaseDrawerCore,b2 as BaseField,mo as BaseFieldAdapter,go as BaseFieldCore,To as BaseSelectAdapter,yt as BaseSelectComponent,So as BaseSelectCore,ds as BottomSheetAdapter,Ge as BottomSheetComponent,ms as BottomSheetCore,_i as ButtonAdapter,gs as ButtonAreaAdapter,Aa as ButtonAreaComponent,ws as ButtonAreaCore,V2 as ButtonComponent,xi as ButtonComponentDelegate,fi as ButtonCore,Ti as ButtonToggleAdapter,le as ButtonToggleComponent,Si as ButtonToggleCore,ki as ButtonToggleGroupAdapter,Q2 as ButtonToggleGroupComponent,Oi as ButtonToggleGroupCore,m as CALENDAR_CONSTANTS,kp as CALENDAR_DROPDOWN_CONSTANTS,T as CALENDAR_MENU_CONSTANTS,Mr as CARD_CONSTANTS,G5 as CDN_BASE_URL,z1 as CHECKBOX_CONSTANTS,d1 as CHIP_CONSTANTS,g2 as CHIP_FIELD_CONSTANTS,tt as CHIP_SET_CONSTANTS,C2 as CIRCULAR_PROGRESS_CONSTANTS,g1 as COLOR_PICKER_CONSTANTS,b as COMPONENT_NAME_PREFIX,Vs as CalendarAdapter,v1 as CalendarComponent,Sp as CalendarComponentDelegate,Es as CalendarCore,_o as CalendarDropdown,fs as CalendarMenuAdapter,Ye as CalendarMenuComponent,xs as CalendarMenuCore,vp as CalendarMonthFocus,fo as CardComponent,xl as CellAlign,Di as CheckboxAdapter,J2 as CheckboxComponent,uc as CheckboxComponentDelegate,Pi as CheckboxCore,es as ChipAdapter,y2 as ChipComponent,as as ChipCore,Qi as ChipFieldAdapter,za as ChipFieldComponent,Fc as ChipFieldComponentDelegate,Ji as ChipFieldCore,wo as ChipSetComponent,Cs as CircularProgressAdapter,Tt as CircularProgressComponent,zs as CircularProgressCore,As as ColorPickerAdapter,ce as ColorPickerComponent,Ss as ColorPickerCore,j4 as ColorPickerValueType,ft as DATE_PICKER_CONSTANTS,k2 as DATE_RANGE_PICKER_CONSTANTS,X4 as DEFAULT_COLOR,hn as DEFAULT_DATE_MASK,Wo as DEFERRED_LABEL_TARGET,Ot as DEPRECATED_BUTTON_CONSTANTS,K2 as DEPRECATED_ICON_BUTTON_CONSTANTS,O as DIALOG_CONSTANTS,co as DIVIDER_CONSTANTS,Zp as DRAWER_CONSTANTS,ga as DateInputMask,Os as DatePickerAdapter,Mo as DatePickerComponent,Yp as DatePickerComponentDelegate,Ds as DatePickerCore,Ps as DatePickerRange,l2 as DateRange,qp as DateRangeComponentDelegate,Ns as DateRangePickerAdapter,oa as DateRangePickerComponent,Rs as DateRangePickerCore,fr as DayOfWeek,Jr as Deferred,Do as DeprecatedButtonComponent,R6 as DeprecatedButtonComponentDelegate,Po as DeprecatedIconButtonComponent,W6 as DeprecatedIconButtonComponentDelegate,hs as DialogAdapter,E1 as DialogComponent,ps as DialogCore,Vt as DismissibleStack,Z0 as DividerComponent,Ho as DrawerComponent,tv as EASING,D1 as EXPANSION_PANEL_CONSTANTS,fn as ExpansionPanelAdapter,_t as ExpansionPanelComponent,xn as ExpansionPanelCore,V as FIELD_CONSTANTS,w1 as FILE_PICKER_CONSTANTS,Q1 as FLOATING_ACTION_BUTTON_CONSTANTS,m1 as FOCUS_INDICATOR_CONSTANTS,$i as FieldAdapter,k1 as FieldComponent,Xi as FieldCore,Ws as FilePickerAdapter,Gt as FilePickerComponent,rd as FilePickerComponentDelegate,Gs as FilePickerCore,Ys as FloatingActionButtonAdapter,_0 as FloatingActionButtonComponent,ld as FloatingActionButtonComponentDelegate,Ks as FloatingActionButtonCore,Ln as FocusIndicatorAdapter,Q as FocusIndicatorComponent,In as FocusIndicatorCore,a2 as FormFieldComponentDelegate,Xr as GlobalConfiguration,L3 as HAS_MERIDIEM_REGEX,J as ICON_BUTTON_CONSTANTS,ke as ICON_CLASS_NAME,h1 as ICON_CONSTANTS,mn as ICON_REGISTRY_KEY,$3 as INITIAL_ORIGIN_SCALE,Eo as INLINE_MESSAGE_CONSTANTS,CH as INPUT_ARIA_ATTRIBUTES,zH as INPUT_PROPERTIES,Cm as ISO_8601_REGEX,zm as ISO_TIMEZONE_REGEX,gn as IconAdapter,Bn as IconButtonAdapter,n1 as IconButtonComponent,mv as IconButtonComponentDelegate,An as IconButtonCore,X as IconComponent,P0 as IconComponentDelegate,un as IconCore,q as IconRegistry,Co as InlineMessageComponent,p2 as KEYBOARD_SHORTCUT_CONSTANTS,W5 as KEYSTROKE_DEBOUNCE_THRESHOLD,Ta as KeyComponent,qe as KeyItemComponent,qs as KeyboardShortcutAdapter,xt as KeyboardShortcutComponent,$s as KeyboardShortcutCore,o2 as LABEL_CONSTANTS,pe as LABEL_VALUE_CONSTANTS,S2 as LINEAR_PROGRESS_CONSTANTS,I1 as LIST_CONSTANTS,l1 as LIST_ITEM_CONSTANTS,Ki as LabelAdapter,ve as LabelComponent,qi as LabelCore,zo as LabelValueComponent,bd as LabelValueComponentDelegate,ae as LinearProgressComponent,Xn as ListAdapter,h2 as ListComponent,jn as ListCore,Zn as ListItemAdapter,j1 as ListItemComponent,Qn as ListItemCore,e1 as MENU_CONSTANTS,i4 as MINIMUM_PRESS_MS,ed as MINI_DRAWER_CONSTANTS,Lo as MODAL_DRAWER_CONSTANTS,pi as MenuAdapter,x2 as MenuComponent,di as MenuCore,Y1 as MeterComponent,O2 as MeterGroupComponent,Vo as MiniDrawerComponent,Fs as ModalDrawerAdapter,Io as ModalDrawerComponent,Us as ModalDrawerCore,i5 as NAVIGATION_KEYS,It as OPEN_ICON_CONSTANTS,N as OPTION_CONSTANTS,ia as OPTION_GROUP_CONSTANTS,B as OVERLAY_CONSTANTS,Zv as OVERLAY_FALLBACK_PLACEMENT_MAP,Qa as OpenIconComponent,Zs as OptionAdapter,J1 as OptionComponent,Qs as OptionCore,Xe as OptionGroupComponent,Gc as OptionType,Fn as OverlayAdapter,d2 as OverlayComponent,Wn as OverlayCore,X3 as PADDING,Ld as PAGE_STATE_CONSTANTS,$ as PAGINATOR_CONSTANTS,Tm as PARSEABLE_TIME_FORMAT,Z as POPOVER_CONSTANTS,_h as POPOVER_HOVER_TIMEOUT,q3 as PRESS_GROW_MS,Q3 as PRESS_PSEUDO,Y as PROFILE_CARD_CONSTANTS,Ao as PageStateComponent,js as PaginatorAdapter,ot as PaginatorComponent,Xs as PaginatorCore,ev as PointerState,ti as PopoverAdapter,P1 as PopoverComponent,ai as PopoverCore,wi as ProfileCardAdapter,F2 as ProfileCardComponent,ui as ProfileCardCore,f1 as RADIO_CONSTANTS,po as RADIO_GROUP_CONSTANTS,EH as REFLECTIVE_ARIA_ATTRIBUTES,Ri as RadioAdapter,vt as RadioComponent,Fi as RadioCore,Ui as RadioGroupAdapter,Q0 as RadioGroupComponent,Wi as RadioGroupCore,Bo as SCAFFOLD_CONSTANTS,G2 as SELECT_CONSTANTS,je as SELECT_DROPDOWN_CONSTANTS,ni as SKELETON_CONSTANTS,pt as SKIP_LINK_CONSTANTS,E as SLIDER_CONSTANTS,Z3 as SOFT_EDGE_CONTAINER_RATIO,j3 as SOFT_EDGE_MINIMUM_SIZE,u2 as SPLIT_BUTTON_CONSTANTS,t2 as SPLIT_VIEW_CONSTANTS,D as SPLIT_VIEW_PANEL_CONSTANTS,D2 as STACK_CONSTANTS,M1 as STATE_LAYER_CONSTANTS,R as STEPPER_CONSTANTS,S as STEP_CONSTANTS,no as SUPPORTS_POPOVER,i1 as SWITCH_CONSTANTS,$e as ScaffoldComponent,Js as SelectAdapter,Ee as SelectComponent,Wd as SelectComponentDelegate,tl as SelectCore,al as SelectDropdownAdapter,f0 as SelectDropdownComponent,el as SelectDropdownCore,kd as SelectOptionType,Y0 as SkeletonComponent,ko as SkipLinkComponent,w2 as SliderComponent,Xd as SliderComponentDelegate,b3 as SlottedElementAdapter,bl as SortDirection,Nl as SplitButtonAdapter,ze as SplitButtonComponent,Rl as SplitButtonCore,cl as SplitViewAdapter,Jd as SplitViewAnimatingLayer,Ce as SplitViewComponent,pl as SplitViewCore,hl as SplitViewPanelAdapter,H2 as SplitViewPanelComponent,vl as SplitViewPanelCore,dl as StackAdapter,de as StackComponent,ml as StackCore,Mn as StateLayerAdapter,r1 as StateLayerComponent,Ja as StateLayerCoords,Hn as StateLayerCore,wl as StepAdapter,Y2 as StepComponent,ul as StepCore,_l as StepperAdapter,St as StepperComponent,fl as StepperCore,Gi as SwitchAdapter,W2 as SwitchComponent,Lc as SwitchComponentDelegate,Yi as SwitchCore,f as TABLE_CONSTANTS,T1 as TAB_BAR_CONSTANTS,F1 as TAB_CONSTANTS,V1 as TEXT_FIELD_CONSTANTS,U as TIME_PICKER_CONSTANTS,B1 as TOAST_CONSTANTS,mr as TOOLBAR_CONSTANTS,o1 as TOOLTIP_CONSTANTS,K3 as TOUCH_DELAY_MS,Fm as TWELVE_HOUR_TIME_MASK,Um as TWELVE_HOUR_TIME_MASK_WITH_SECONDS,an as TWELVE_HOUR_TIME_REGEX,Wm as TWENTY_FOUR_HOUR_TIME_MASK,Gm as TWENTY_FOUR_HOUR_TIME_MASK_WITH_SECONDS,$a as TWENTY_FOUR_HOUR_TIME_REGEX,Il as TabAdapter,El as TabBarAdapter,Mt as TabBarComponent,Cl as TabBarCore,kt as TabComponent,Vl as TabCore,yl as TableAdapter,q1 as TableComponent,Ll as TableCore,$x as TableFilterType,Hl as TableRow,ji as TextFieldAdapter,m0 as TextFieldComponent,J0 as TextFieldComponentDelegate,Zi as TextFieldCore,dn as TimeInputMask,zl as TimePickerAdapter,O1 as TimePickerComponent,T6 as TimePickerComponentDelegate,Sl as TimePickerCore,kl as ToastAdapter,Kt as ToastComponent,Ol as ToastCore,se as ToolbarComponent,Gn as TooltipAdapter,p1 as TooltipComponent,Kn as TooltipCore,D6 as VIEW_CONSTANTS,e2 as VIEW_SWITCHER_CONSTANTS,p5 as ViewAnimationDirection,la as ViewComponent,Dl as ViewSwitcherAdapter,Vb as ViewSwitcherAnimationType,va as ViewSwitcherComponent,Pl as ViewSwitcherCore,k3 as awaitIconDefinition,n0 as canUserHoverElements,nl as clampSize,a6 as clearState,e4 as cloneAttributes,Am as cloneProperties,Bm as cloneValidationMessage,q4 as coerceDateFromValue,da as coerceStringToArray,h6 as createOverlay,wn as createSanitizedSvg,M3 as createSvgFromString,w3 as createUserInteractionListener,G3 as defineAccordionComponent,sv as defineAppBarComponent,zh as defineAppBarHelpButtonComponent,oh as defineAppBarMenuButtonComponent,ih as defineAppBarNotificationButtonComponent,ic as defineAppBarProfileButtonComponent,vv as defineAppBarSearchComponent,qc as defineAutocompleteComponent,ho as defineAvatarComponent,Xc as defineBackdropComponent,nh as defineBadgeComponent,Zc as defineBannerComponent,rp as defineBottomSheetComponent,np as defineButtonAreaComponent,Bh as defineButtonComponent,cc as defineButtonToggleComponent,gc as defineButtonToggleGroupComponent,Op as defineCalendarComponent,zl1 as defineCalendarMenuComponent,Pp as defineCardComponent,_c as defineCheckboxComponent,Nc as defineChipComponent,Uc as defineChipFieldComponent,Rc as defineChipSetComponent,Np as defineCircularProgressComponent,Gp as defineColorPickerComponent,uT1 as defineComponents,Kp as defineDatePickerComponent,$p as defineDateRangePickerComponent,F6 as defineDeprecatedButtonComponent,_T1 as defineDeprecatedComponents,G6 as defineDeprecatedIconButtonComponent,ep as defineDialogComponent,sc as defineDividerComponent,Qp as defineDrawerComponent,U3 as defineExpansionPanelComponent,Bc as defineFieldComponent,nd as defineFilePickerComponent,vd as defineFloatingActionButtonComponent,iv as defineFocusIndicatorComponent,gv as defineIconButtonComponent,N3 as defineIconComponent,hd as defineInlineMessageComponent,cd as defineKeyComponent,pd as defineKeyItemComponent,fd as defineKeyboardShortcutComponent,Cc as defineLabelComponent,yd as defineLabelValueComponent,bh as defineLinearProgressComponent,mh as defineListComponent,dh as defineListItemComponent,Ch as defineMenuComponent,Md as defineMeterComponent,Hd as defineMeterGroupComponent,ad as defineMiniDrawerComponent,td as defineModalDrawerComponent,R3 as defineOpenIconComponent,Td as defineOptionComponent,Sd as defineOptionGroupComponent,th as defineOverlayComponent,Id as definePageStateComponent,Rd as definePaginatorComponent,fh as definePopoverComponent,nc as defineProfileCardComponent,xc as defineRadioComponent,yc as defineRadioGroupComponent,Ad as defineScaffoldComponent,Nd as defineSelectComponent,Ud as defineSelectDropdownComponent,yh as defineSkeletonComponent,Yd as defineSkipLinkComponent,jd as defineSliderComponent,$A1 as defineSplitButtonComponent,p6 as defineSplitViewComponent,ub1 as defineSplitViewPanelComponent,g6 as defineStackComponent,nv as defineStateLayerComponent,w6 as defineStepComponent,_6 as defineStepperComponent,Ic as defineSwitchComponent,V6 as defineTabBarComponent,I6 as defineTabComponent,b6 as defineTableComponent,kc as defineTextFieldComponent,S6 as defineTimePickerComponent,O6 as defineToastComponent,rc as defineToolbarComponent,ah as defineTooltipComponent,P6 as defineViewComponent,N6 as defineViewSwitcherComponent,w0 as dialogStack,wd as elementAcceptsTextInput,Y3 as elementName,_3 as elementsOverlapping,_n as emulateUserToggle,t4 as eventIncludesArrowKey,xr as eventIncludesDate,Hp as eventIncludesElement,D3 as fetchIconContent,sf as fixKey,Ga as forgeLabelRef,d3 as formatDate,S0 as forwardAttributes,Ko as frame,W4 as getAccessibleHeader,Bp as getAllYearOptions,S3 as getCachedIcon,yp as getClearButton,v5 as getCurrentTimeOfDayMillis,n5 as getCursor,F4 as getDateElement,at as getDateId,Ba as getDateRangeFromDates,gp as getDateRow,bs as getDateSpacerElement,Ep as getDatesFromDateRange,Ls as getDatesInRange,mp as getDayElement,Pu as getDayId,K4 as getEventDescriptions,up as getEventElement,wp as getEventWrapperElement,R4 as getEventWrapperId,Is as getEventsOnDate,br as getFirstDateOfWeek,p41 as getFirstDayOfMonth,cp as getFirstDayOfWeekForLocale,bp as getFooter,$t as getFormState,Lt as getFormValue,us as getGrid,ip as getGridItems,v6 as getHandleIcon,U4 as getHeader,yr as getIndexOfDate,jl as getLastDateOfMonth,Lp as getLastDateOfWeek,lp as getList,_s as getListItems,hp as getLocalizedDayOfMonth,N4 as getLocalizedDayOfWeek,aa as getLocalizedMonth,u0 as getLocalizedYear,Hs as getMinAndMaxDates,nf as getModiferKeysString,fp as getMonthButtonContent,Y4 as getMonthDates,m3 as getMonthLength,zp as getMonthOptions,Tp as getMultipleFromRange,AH as getPartPrefixedAttributes,Sa as getPixelDimension,sp as getScrollSpy,Yc as getSelectedOption,ys as getSortedDaysOfWeek,ll as getSplitViewPanelSibling,Mp as getTodayButton,_p as getTooltip,Xt as getValidationMessage,sl as getValuenow,c41 as getWeekDates,pp as getWeekendDaysForLocale,xp as getYearButtonContent,Ap as getYearOptions,l6 as handleBoundariesAfterResize,il as handleBoundariesDuringResize,ls as hideBackdrop,g3 as highlightTextHTML,A6 as hoursToMillis,t6 as initState,jt as inputType,a1 as internals,ct as isDisabled,$1 as isFocusable,ht as isInMonth,Nu as isInRange,f3 as isInstanceOf,lc as isLabelAware,o5 as isOptionGroupObject,Af as isOptionObject,gr as isOptionType,Ql as isPointerOverElement,dp as isRtlLocale,H3 as isSafeSvg,f2 as isSameDate,a5 as isSelectOptionType,uo as isSelected,E3 as isSupportedTimeFormat,Ip as isToday,r6 as keyboardResize,Yo as locateElementById,en as locateTargetHeuristic,_d as matchKeyCombination,i6 as maxResize,KV1 as mergeDateWithTime,C6 as millisToHours,Bl as millisToMinutes,z6 as millisToMinutesClamped,db as millisToSeconds,s5 as millisToSecondsClamped,Yt as millisToTimeString,n6 as minResize,Tl as minutesToMillis,wr as optionEqualPredicate,W0 as overlayStack,Ru as parseDateOffset,p3 as parseDateString,ud as parseKeyCombinations,px as parseSize,Cp as parseYearRange,u3 as percentToPixels,_H as pixelsToPercent,o6 as pointerResize,U5 as prefersReducedMotion,x3 as proxyShadowScrollEvent,tB1 as randomHexColor,ur as removeAllExceptLastChild,O3 as removeIconListener,Ka as replaceElement,s6 as resizeSibling,qa as roundByDPR,fH as safeMax,B0 as safeMin,P3 as sanitizeExternalType,tn as scaleValue,l5 as secondsToMillis,Zt as setAriaControls,P as setDefaultAria,e6 as setState,G4 as setTabindexOnElement,wt as setValidity,$4 as shouldHandleEvent,vs as showBackdrop,Ms as sortDates,Vp as splitIntoWeeks,B6 as stripSecondsFromMillis,R5 as supportsElementInternalsAria,F5 as supportsHover,jr as supportsPopover,Qt as task,gd as textInputTypes,Al as timeStringToMillis,V3 as tokenize12HourTimeString,I3 as tokenize24HourTimeString,Ni as tryCheck,C3 as tryCoerceTimeString,Oe as tryCreateAriaControlsPlaceholder,T0 as tryDismiss,bH as unwrapElements,Zr as updateTarget,xH as wrapElements};
|
|
61
|
+
`}_syncMeters(){this._meters.forEach(e=>{e.direction=this.direction,e.min=this.min,e.max=this.max})}_handleMeterChange(e){e.stopPropagation(),this._meters.reduce((a,o,n,i)=>(o.style.setProperty("--_meter-z-index",`${i.length-n}`),o.style.setProperty("--_meter-inset",`${a}%`),a+o.percentage),0)}_handleHeadingSlotChange(){let e=[...this._labelNodes,...this._valueNodes].filter(a=>{var o;return!!((o=a.textContent)!=null&&o.trim())});this._hasSlottedHeadingContent=!!e.length}};O2.styles=oe(mf),O2.formAssociated=!0,s([S1({type:Number})],O2.prototype,"min",2),s([S1({type:Number})],O2.prototype,"max",2),s([S1({type:Boolean})],O2.prototype,"tickmarks",2),s([S1()],O2.prototype,"direction",2),s([S1()],O2.prototype,"density",2),s([S1()],O2.prototype,"shape",2),s([S1({attribute:"inner-shape"})],O2.prototype,"innerShape",2),s([ne()],O2.prototype,"_hasSlottedHeadingContent",2),s([j0({slot:"label"})],O2.prototype,"_labelNodes",2),s([j0({slot:"value"})],O2.prototype,"_valueNodes",2),s([tc({selector:"forge-meter"})],O2.prototype,"_meters",2),O2=s([Re("forge-meter-group")],O2);function Hd(){ue("forge-meter-group",O2)}var gf=`${b}page-state`,Ld={elementName:gf};var wf='<template><div class="forge-page-state" part="root"><div class="graphic" part="graphic-container"><slot name="graphic"></slot></div><div class="title" part="title-container"><slot name="title"></slot></div><div class="message" part="message-container"><slot name="message"></slot></div><div class="actions" part="actions-container"><slot name="action"></slot></div></div></template>',uf=':host{--_page-state-width:var(--forge-page-state-width, 576px);--_page-state-height:var(--forge-page-state-height, auto);--_page-state-spacing:var(--forge-page-state-spacing, var(--forge-spacing-xxxlarge, 56px));--_page-state-mobile-width:var(--forge-page-state-mobile-width, 70%);--_page-state-graphic-height:var(--forge-page-state-graphic-height, 296px);--_page-state-graphic-spacing:var(--forge-page-state-graphic-spacing, var(--forge-spacing-xxxlarge, 56px));--_page-state-mobile-graphic-height:var(--forge-page-state-mobile-graphic-height, auto);--_page-state-title-color:var(--forge-page-state-title-color, var(--forge-theme-text-medium, rgba(0, 0, 0, 0.6)));--_page-state-title-spacing:var(--forge-page-state-title-spacing, var(--forge-spacing-xxxlarge, 56px));--_page-state-title-spacing-mobile:var(--forge-page-state-title-spacing-mobile, var(--forge-spacing-large, 24px));--_page-state-message-color:var(--forge-page-state-message-color, var(--forge-theme-text-high, rgba(0, 0, 0, 0.87)));--_page-state-message-spacing:var(--forge-page-state-message-spacing, var(--forge-spacing-xxxlarge, 56px));--_page-state-message-spacing-mobile:var(--forge-page-state-message-spacing-mobile, var(--forge-spacing-large, 24px));--_page-state-actions-spacing:var(--forge-page-state-actions-spacing, 16px)}:host{display:flex;justify-content:center;align-items:center;width:100%;container-type:inline-size}:host([hidden]){display:none}.forge-page-state{width:var(--_page-state-width);margin-block:var(--_page-state-spacing);text-align:center}.forge-page-state .graphic{display:flex;justify-content:center;align-items:center;height:var(--_page-state-graphic-height);width:100%;margin-block-end:var(--_page-state-graphic-spacing)}.forge-page-state .graphic ::slotted([slot=graphic]){height:100%;width:100%}.forge-page-state .title{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-heading8-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-heading8-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-heading8-font-size-scale, 2.25)));font-weight:var(--forge-typography-heading8-font-weight,500);line-height:var(--forge-typography-heading8-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-heading8-line-height-scale, 2.625)));letter-spacing:var(--forge-typography-heading8-letter-spacing, -.0027777778em);text-transform:var(--forge-typography-heading8-text-transform,inherit);text-decoration:var(--forge-typography-heading8-text-decoration,inherit);--_page-state-title-spacing:var(--_page-state-title-spacing-mobile);color:var(--_page-state-title-color);margin-block:var(--_page-state-title-spacing)}.forge-page-state .message{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-body4-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-body4-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-font-size-scale, 1.25)));font-weight:var(--forge-typography-body4-font-weight,400);line-height:var(--forge-typography-body4-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-line-height-scale, 1.75)));letter-spacing:var(--forge-typography-body4-letter-spacing, .005em);text-transform:var(--forge-typography-body4-text-transform,inherit);text-decoration:var(--forge-typography-body4-text-decoration,inherit);--_page-state-message-spacing:var(--_page-state-message-spacing-mobile);color:var(--_page-state-message-color);margin-block-end:var(--_page-state-message-spacing)}.forge-page-state .actions{display:grid;justify-content:center;grid-auto-flow:column;gap:var(--_page-state-actions-spacing)}@container (max-width:599px){.forge-page-state{--_page-state-width:var(--_page-state-mobile-width)}.forge-page-state .graphic{--_page-state-graphic-height:var(--_page-state-mobile-graphic-height);--_page-state-graphic-spacing:var(--forge-page-state-graphic-spacing, 0)}.forge-page-state .title{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-heading5-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-heading5-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-heading5-font-size-scale, 1.5)));font-weight:var(--forge-typography-heading5-font-weight,500);line-height:var(--forge-typography-heading5-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-heading5-line-height-scale, 1.75)));letter-spacing:var(--forge-typography-heading5-letter-spacing, 0);text-transform:var(--forge-typography-heading5-text-transform,inherit);text-decoration:var(--forge-typography-heading5-text-decoration,inherit)}.forge-page-state .message{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-body2-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-body2-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-font-size-scale, 1)));font-weight:var(--forge-typography-body2-font-weight,400);line-height:var(--forge-typography-body2-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-line-height-scale, 1.375)));letter-spacing:var(--forge-typography-body2-letter-spacing, .015625em);text-transform:var(--forge-typography-body2-text-transform,inherit);text-decoration:var(--forge-typography-body2-text-decoration,inherit)}.forge-page-state .actions{grid-auto-flow:row}}',Ao=class extends M{constructor(){super(),H(this,wf,uf)}};Ao=s([y({name:Ld.elementName})],Ao);function Id(){x(Ao)}var Vd=`${b}paginator`,Ed={PAGE_INDEX:"page-index",PAGE_SIZE:"page-size",OFFSET:"offset",TOTAL:"total",PAGE_SIZE_OPTIONS:"page-size-options",LABEL:"label",FIRST_LAST:"first-last",FIRST:"first",DISABLED:"disabled",ALTERNATIVE:"alternative"},_f=w({},Ed),ff={LABEL:".label > slot[name=label]",PAGE_SIZE_SELECT:".page-size-options",RANGE_LABEL:".range-label > slot[name=range-label]",FIRST_PAGE_BUTTON:".first-page",FIRST_PAGE_CONTAINER:"#first-page-container",PREVIOUS_PAGE_BUTTON:".previous-page",PREVIOUS_PAGE_CONTAINER:"#previous-page-container",NEXT_PAGE_BUTTON:".next-page",NEXT_PAGE_CONTAINER:"#next-page-container",LAST_PAGE_BUTTON:".last-page",LAST_PAGE_CONTAINER:"#last-page-container",RANGE_LABEL_ALTERNATIVE:".alternative-range-label > slot[name=alternative-range-label]"},xf={CHANGE:`${Vd}-change`},bf={DEFAULT_PAGE_INDEX:0,DEFAULT_TOTAL:0,DEFAULT_PAGE_SIZE:25,DEFAULT_PAGE_SIZE_OPTIONS:[5,15,25,50,100]},yf={DEFAULT_LABEL:"Rows per page:",RANGE_SEPARATOR_LABEL:"of"},$={elementName:Vd,observedAttributes:Ed,attributes:_f,selectors:ff,events:xf,numbers:bf,strings:yf};var Xs=class{constructor(t){this._adapter=t;this._pageIndex=$.numbers.DEFAULT_PAGE_INDEX;this._pageSize=$.numbers.DEFAULT_PAGE_SIZE;this._offset=0;this._total=$.numbers.DEFAULT_TOTAL;this._pageSizeOptions=$.numbers.DEFAULT_PAGE_SIZE_OPTIONS.map(t=>({label:`${t}`,value:`${t}`}));this._label=$.strings.DEFAULT_LABEL;this._firstLast=!1;this._first=!1;this._disabled=!1;this._alternative=!1;this._firstPageListener=this._onFirstPage.bind(this);this._previousPageListener=this._onPreviousPage.bind(this);this._nextPageListener=this._onNextPage.bind(this);this._lastPageListener=this._onLastPage.bind(this);this._pageSizeListener=this._onPageSizeChanged.bind(this)}initialize(){this._updateRangeLabel(),this._adapter.setLabel(this._label),this._adapter.setPageSizeOptions(this._pageSizeOptions),this._adapter.setPageSize(this._pageSize),this._attachListeners(),this._toggleFirstLastButtons(),this._syncInteractionState()}focus(t){this._adapter.setFocus(t)}_attachListeners(){this._adapter.attachPageSizeChangeListener(this._pageSizeListener),this._adapter.attachFirstPageListener(this._firstPageListener),this._adapter.attachPreviousPageListener(this._previousPageListener),this._adapter.attachNextPageListener(this._nextPageListener),this._adapter.attachLastPageListener(this._lastPageListener)}_onFirstPage(t){if(t.stopPropagation(),!this._hasFirstPage())return;let e=0;this._dispatchChangeEvent("first-page",{pageIndex:e})&&this._applyPageIndex(e)}_onPreviousPage(t){if(t.stopPropagation(),!this._hasPreviousPage())return;let e=this._pageIndex-1;this._dispatchChangeEvent("previous-page",{pageIndex:e})&&this._applyPageIndex(e)}_onNextPage(t){if(t.stopPropagation(),!this._hasNextPage())return;let e=this._pageIndex+1;this._dispatchChangeEvent("next-page",{pageIndex:e})&&this._applyPageIndex(e)}_onLastPage(t){if(t.stopPropagation(),!this._hasLastPage())return;let e=this._getMaxPages();this._dispatchChangeEvent("last-page",{pageIndex:e})&&this._applyPageIndex(e)}_onPageSizeChanged(t){t.stopPropagation();let e=Number(t.detail);this._dispatchChangeEvent("page-size",{pageIndex:0,pageSize:e})?(this._applyPageIndex(0),this._applyPageSize(e)):t.preventDefault()}_dispatchChangeEvent(t,{pageSize:e=this._pageSize,pageIndex:a=this._pageIndex}={}){let o=a*e,n={type:t,pageSize:e,pageIndex:a,offset:o},i=new CustomEvent($.events.CHANGE,{detail:n,bubbles:!0,cancelable:!0});return this._adapter.dispatchHostEvent(i),!i.defaultPrevented}_getMaxPages(){return Math.ceil(this._total/this._pageSize)-1}_updateRangeLabel(){let t;if(typeof this._rangeLabelCallback=="function"){let e={pageSize:this._pageSize,pageIndex:this._pageIndex,offset:this._offset,pageStart:this._pageIndex*this._pageSize+1,pageEnd:Math.min((this._pageIndex+1)*this._pageSize,this._total),total:this._total};t=this._rangeLabelCallback.call(null,e)}else if(this.pageSize>1){let e=this._pageIndex*this._pageSize,o=(Math.floor(e/this._pageSize)||0)*this._pageSize+1,n=e<this._total?Math.min(e+this._pageSize,this._total):e+this._pageSize;t=`${o}-${n} ${$.strings.RANGE_SEPARATOR_LABEL} ${this._total}`}else t=`${this._pageIndex+1} ${$.strings.RANGE_SEPARATOR_LABEL} ${this._total}`;this._adapter.setRangeLabel(t)}_syncInteractionState(){if(this._disabled)return;this._adapter.setFirstPageButtonEnabled(!0),this._adapter.setPreviousPageButtonEnabled(!0),this._adapter.setNextPageButtonEnabled(!0),this._adapter.setLastPageButtonEnabled(!0);let t=[];this._hasFirstPage()||t.push("first"),this._hasPreviousPage()||t.push("previous"),this._hasNextPage()||t.push("next"),this._hasLastPage()||t.push("last"),this._adapter.tryDisableFields(t)}_toggleFirstLastButtons(){this._toggleFirstButton(),this._firstLast?this._adapter.hasLastPageButton()||this._adapter.showLastPageButton():this._adapter.hasLastPageButton()&&this._adapter.hideLastPageButton()}_toggleFirstButton(){this._first||this._firstLast?this._adapter.hasFirstPageButton()||this._adapter.showFirstPageButton():this._adapter.hasFirstPageButton()&&this._adapter.hideFirstPageButton()}_hasFirstPage(){return this._hasPreviousPage()}_hasPreviousPage(){return this._pageIndex>0&&this._pageSize>0}_hasNextPage(){let t=this._getMaxPages();return this._pageIndex<t&&this._pageSize>0}_hasLastPage(){return this._hasNextPage()}_computePageIndexFromOffset(t){t>=this._total&&(this._total>=this._pageSize?t=this._total-this._pageSize:t=0);let e=Math.min(Math.max(t,0),this._total),a=Math.floor(e/this._pageSize);this._applyPageIndex(a)}_computeOffset(){this._total>0&&(this._offset=this._pageIndex*this._pageSize)}_applyPageIndex(t){this._pageIndex=t,this._computeOffset(),this._updateRangeLabel(),this._syncInteractionState(),this._adapter.toggleHostAttribute($.attributes.PAGE_INDEX,this._pageIndex!=null,this._pageIndex.toString())}_applyPageSize(t){this._pageSize=t,this._adapter.setPageSize(this._pageSize),this._computeOffset(),this._updateRangeLabel(),this._syncInteractionState()}_applyTotal(t){this._total=t,this._updateRangeLabel(),this._offset>0&&this._total>0&&this._computePageIndexFromOffset(this._offset),this._syncInteractionState()}_applyDisabled(t){this._disabled=t,t?(this._adapter.setPageSizeSelectEnabled(!1),this._adapter.setFirstPageButtonEnabled(!1),this._adapter.setPreviousPageButtonEnabled(!1),this._adapter.setNextPageButtonEnabled(!1),this._adapter.setLastPageButtonEnabled(!1)):(this._adapter.setPageSizeSelectEnabled(!0),this._syncInteractionState())}get pageIndex(){return this._pageIndex}set pageIndex(t){this._pageIndex!==t&&(k(t)?this._applyPageIndex(t):this._adapter.removeHostAttribute($.attributes.PAGE_INDEX))}get pageSize(){return this._pageSize}set pageSize(t){this._pageSize!==t&&(this._applyPageSize(t),this._adapter.setHostAttribute($.attributes.PAGE_SIZE,`${this._pageSize}`))}get offset(){return this._offset}set offset(t){this._offset!==t&&(this._offset=t,this._computePageIndexFromOffset(t))}get total(){return this._total}set total(t){this._total!==t&&(this._applyTotal(t),this._adapter.setHostAttribute($.attributes.TOTAL,`${this._total}`))}get pageSizeOptions(){return this._pageSizeOptions.map(t=>Number(t.value))}set pageSizeOptions(t){if(rt(t)&&t.length){if(this._pageSizeOptions=t.map(e=>({label:e.toString(),value:e.toString()})).sort((e,a)=>W(e.value)-W(a.value)),this._adapter.setPageSizeOptions(this._pageSizeOptions),this._adapter.attachPageSizeChangeListener(this._pageSizeListener),this._adapter.setPageSizeVisibility(!0),k(this._pageSize)&&this._pageSizeOptions.length&&!this._pageSizeOptions.find(e=>W(e.value)===this._pageSize)){let e=W(this._pageSizeOptions[0].value);this._applyPageSize(e)}}else t!=null&&t.length||(this._adapter.detachPageSizeChangeListener(this._pageSizeListener),this._adapter.setPageSizeVisibility(!1))}get label(){return this._label}set label(t){this._label!==t&&(this._label=t,this._adapter.setLabel(this._label),k(this._label)&&this._label.length?this._adapter.setHostAttribute($.attributes.LABEL,String(this._label)):this._adapter.removeHostAttribute($.attributes.LABEL))}get firstLast(){return this._firstLast}set firstLast(t){t=!!t,this._firstLast!==t&&(this._firstLast=t,this._toggleFirstLastButtons(),this._adapter.toggleHostAttribute($.attributes.FIRST_LAST,this._firstLast))}get first(){return this._first}set first(t){t=!!t,this._first!==t&&(this._first=t,this._toggleFirstButton(),this._adapter.toggleHostAttribute($.attributes.FIRST,this._first))}get disabled(){return this._disabled}set disabled(t){t=!!t,this._disabled!==t&&(this._applyDisabled(t),this._adapter.toggleHostAttribute($.attributes.DISABLED,this._disabled))}get alternative(){return this._alternative}set alternative(t){t=!!t,t!==this._alternative&&(this._alternative=t,this._adapter.toggleHostAttribute($.attributes.ALTERNATIVE,this._alternative))}get rangeLabelCallback(){return this._rangeLabelCallback}set rangeLabelCallback(t){this._rangeLabelCallback=t,this._updateRangeLabel()}};var js=class extends I{constructor(t){super(t),this._labelElement=g(t,$.selectors.LABEL),this._pageSizeSelect=g(t,$.selectors.PAGE_SIZE_SELECT),this._rangeLabel=g(t,$.selectors.RANGE_LABEL),this._rangeLabelAlternative=g(t,$.selectors.RANGE_LABEL_ALTERNATIVE),this._firstPageButton=g(t,$.selectors.FIRST_PAGE_BUTTON),this._firstPageContainer=g(t,$.selectors.FIRST_PAGE_CONTAINER),this._previousPageButton=g(t,$.selectors.PREVIOUS_PAGE_BUTTON),this._previousPageContainer=g(t,$.selectors.PREVIOUS_PAGE_CONTAINER),this._nextPageButton=g(t,$.selectors.NEXT_PAGE_BUTTON),this._nextPageContainer=g(t,$.selectors.NEXT_PAGE_CONTAINER),this._lastPageButton=g(t,$.selectors.LAST_PAGE_BUTTON),this._lastPageContainer=g(t,$.selectors.LAST_PAGE_CONTAINER)}setLabel(t){this._labelElement.textContent=t}setPageSizeOptions(t){r2(this._pageSizeSelect),this._pageSizeSelect.options=t}setPageSize(t){this._pageSizeSelect.value=t.toString()}setRangeLabel(t){this._rangeLabel.innerText=t,this._rangeLabelAlternative.innerText=t}hasFirstPageButton(){return!!g(this._component,$.selectors.FIRST_PAGE_BUTTON)}showFirstPageButton(){this._firstPagePlaceholder=Uo(this._component,!0,$.elementName,$.selectors.FIRST_PAGE_CONTAINER,this._firstPageContainer,this._firstPagePlaceholder)}hideFirstPageButton(){this._firstPagePlaceholder=Uo(this._component,!1,$.elementName,$.selectors.FIRST_PAGE_CONTAINER,this._firstPageContainer,this._firstPagePlaceholder)}hasLastPageButton(){return!!g(this._component,$.selectors.LAST_PAGE_BUTTON)}showLastPageButton(){this._lastPagePlaceholder=Uo(this._component,!0,$.elementName,$.selectors.LAST_PAGE_CONTAINER,this._lastPageContainer,this._lastPagePlaceholder)}hideLastPageButton(){this._lastPagePlaceholder=Uo(this._component,!1,$.elementName,$.selectors.LAST_PAGE_CONTAINER,this._lastPageContainer,this._lastPagePlaceholder)}attachPageSizeChangeListener(t){this._pageSizeSelect.addEventListener("change",t)}detachPageSizeChangeListener(t){this._pageSizeSelect.removeEventListener("change",t)}attachFirstPageListener(t){this._firstPageButton.addEventListener("click",t)}attachPreviousPageListener(t){this._previousPageButton.addEventListener("click",t)}attachNextPageListener(t){this._nextPageButton.addEventListener("click",t)}attachLastPageListener(t){this._lastPageButton.addEventListener("click",t)}setFirstPageButtonEnabled(t){this._firstPageButton.disabled=!t}setPreviousPageButtonEnabled(t){this._previousPageButton.disabled=!t}setNextPageButtonEnabled(t){this._nextPageButton.disabled=!t}setLastPageButtonEnabled(t){this._lastPageButton.disabled=!t}setPageSizeSelectEnabled(t){this._pageSizeSelect.disabled=!t}setPageSizeVisibility(t){this._pageSizeSelect.hidden=!t}setFocus(t){this._tryFocus([this._pageSizeSelect,this._firstPageButton,this._previousPageButton,this._nextPageButton,this._lastPageButton],t)}tryDisableFields(t){let e={first:()=>this.setFirstPageButtonEnabled(!1),last:()=>this.setLastPageButtonEnabled(!1),previous:()=>this.setPreviousPageButtonEnabled(!1),next:()=>this.setNextPageButtonEnabled(!1)};t.forEach(a=>{var o;return(o=e[a])==null?void 0:o.call(e)})}_tryFocus(t,e){let a=typeof(e==null?void 0:e.preventScroll)=="boolean"?e.preventScroll:!0;for(let o of t)if(o&&o.isConnected&&!o.disabled&&o.style.display!=="none"){o.focus(t1(w({},e),{preventScroll:a}));return}}};function Cd(r){class t extends r{constructor(...a){super(...a)}initializeFieldInstance(a){this._fieldElement=a,this._fieldElement.shadowRoot||window.customElements.upgrade(this._fieldElement)}attributeChangedCallback(a,o,n){var i;switch(a){case F.observedAttributes.LABEL_POSITION:this.labelPosition=n;return;case F.observedAttributes.LABEL_ALIGNMENT:this.labelAlignment=n;return;case F.observedAttributes.INVALID:this.invalid=p(n);return;case F.observedAttributes.REQUIRED:this.required=p(n);return;case F.observedAttributes.OPTIONAL:this.optional=p(n);return;case F.observedAttributes.DISABLED:this.disabled=p(n);return;case F.observedAttributes.FLOAT_LABEL:this.floatLabel=p(n);return;case F.observedAttributes.VARIANT:this.variant=n;return;case F.observedAttributes.THEME:this.theme=n;return;case F.observedAttributes.SHAPE:this.shape=n;return;case F.observedAttributes.DENSITY:this.density=n;return;case F.observedAttributes.DENSE:this.dense=p(n);return;case F.observedAttributes.POPOVER_ICON:this.popoverIcon=p(n);return;case F.observedAttributes.SUPPORT_TEXT_INSET:this.supportTextInset=n;return}(i=super.attributeChangedCallback)==null||i.call(this,a,o,n)}get labelPosition(){return this._fieldElement.labelPosition}set labelPosition(a){this._fieldElement.labelPosition!==a&&(this._fieldElement.labelPosition=a,this.setAttribute(V.attributes.LABEL_POSITION,a))}get labelAlignment(){return this._fieldElement.labelAlignment}set labelAlignment(a){this._fieldElement.labelAlignment!==a&&(this._fieldElement.labelAlignment=a,this.setAttribute(V.attributes.LABEL_ALIGNMENT,a))}get invalid(){return this._fieldElement.invalid}set invalid(a){this._fieldElement.invalid!==a&&(this._fieldElement.invalid=a,this.toggleAttribute(V.attributes.INVALID,a))}get required(){return this._fieldElement.required}set required(a){this._fieldElement.required!==a&&(this._fieldElement.required=a,this.toggleAttribute(V.attributes.REQUIRED,a))}get optional(){return this._fieldElement.optional}set optional(a){this._fieldElement.optional!==a&&(this._fieldElement.optional=a,this.toggleAttribute(V.attributes.OPTIONAL,a))}get disabled(){return this._fieldElement.disabled}set disabled(a){this._fieldElement.disabled!==a&&(this._fieldElement.disabled=a,this.toggleAttribute(V.attributes.DISABLED,a))}get floatLabel(){return this._fieldElement.floatLabel}set floatLabel(a){this._fieldElement.floatLabel!==a&&(this._fieldElement.floatLabel=a,this.toggleAttribute(V.attributes.FLOAT_LABEL,a))}get variant(){return this._fieldElement.variant}set variant(a){this._fieldElement.variant!==a&&(this._fieldElement.variant=a,this.setAttribute(V.attributes.VARIANT,a))}get theme(){return this._fieldElement.theme}set theme(a){this._fieldElement.theme!==a&&(this._fieldElement.theme=a,this.setAttribute(V.attributes.THEME,a))}get shape(){return this._fieldElement.shape}set shape(a){this._fieldElement.shape!==a&&(this._fieldElement.shape=a,this.setAttribute(V.attributes.SHAPE,a))}get density(){return this._fieldElement.density}set density(a){this._fieldElement.density!==a&&(this._fieldElement.density=a,this.setAttribute(V.attributes.DENSITY,a))}get dense(){return this._fieldElement.dense}set dense(a){this._fieldElement.dense!==a&&(this._fieldElement.dense=a,this.toggleAttribute(V.attributes.DENSE,a))}get popoverIcon(){return this._fieldElement.popoverIcon}set popoverIcon(a){this._fieldElement.popoverIcon!==a&&(this._fieldElement.popoverIcon=a,this.toggleAttribute(V.attributes.POPOVER_ICON,a))}get supportTextInset(){return this._fieldElement.supportTextInset}set supportTextInset(a){this._fieldElement.supportTextInset!==a&&(this._fieldElement.supportTextInset=a,this.setAttribute(V.attributes.SUPPORT_TEXT_INSET,a))}floatLabelWithoutAnimation(a){this._fieldElement.floatLabelWithoutAnimation(a)}}return t}var Mf=`${b}scaffold`,zd={VIEWPORT:"viewport"},Hf=w({},zd),Bo={elementName:Mf,observedAttributes:zd,attributes:Hf};var Lf='<template><div class="forge-scaffold" part="root"><slot name="left"></slot><div class="header" part="header"><slot name="header"></slot></div><div class="body" part="body"><slot name="body-left"></slot><slot name="body-header"></slot><slot name="body"></slot><slot name="body-footer"></slot><slot name="body-right"></slot></div><slot name="footer"></slot><slot name="right"></slot></div></template>',If=':host{--_scaffold-height:var(--forge-scaffold-height, 100%);--_scaffold-width:var(--forge-scaffold-width, 100%)}:host{display:block;width:var(--_scaffold-width);height:var(--_scaffold-height)}:host([hidden]){display:none}.forge-scaffold{--_scaffold-overflow:var(--forge-scaffold-overflow, initial);--_scaffold-body-position:var(--forge-scaffold-body-position, relative)}.forge-scaffold{position:relative;display:grid;grid-template-areas:"left header right" "left body right" "left footer right";grid-template-rows:auto 1fr auto;grid-template-columns:auto 1fr auto;height:var(--_scaffold-height);width:var(--_scaffold-width);overflow:var(--_scaffold-overflow)}.header{grid-area:header;min-width:0;min-height:0}.body{position:var(--_scaffold-body-position);display:grid;grid-area:body;grid-template-areas:"body-left body-header body-right" "body-left body-inner body-right" "body-left body-footer body-right";grid-template-rows:auto 1fr auto;grid-template-columns:auto 1fr auto;width:var(--_scaffold-width);min-width:0;min-height:0;overflow:var(--_scaffold-overflow)}::slotted(*){min-width:0;min-height:0}::slotted([slot=left]){grid-area:left}::slotted([slot=right]){grid-area:right}::slotted([slot=body-left]){grid-area:body-left}::slotted([slot=body-right]){grid-area:body-right}::slotted([slot=body-header]){grid-area:body-header}::slotted([slot=body]){overflow:auto;grid-area:body-inner}::slotted([slot=body-footer]){grid-area:body-footer}::slotted([slot=footer]){grid-area:footer}::slotted([slot=body-left]),::slotted([slot=body-right]),::slotted([slot=body]),::slotted([slot=left]),::slotted([slot=right]){overflow:auto}:host([viewport]){--_scaffold-height:var(--forge-scaffold-height, 100dvh);--_scaffold-width:var(--forge-scaffold-width, 100dvw)}',$e=class extends M{static get observedAttributes(){return Object.values(Bo.observedAttributes)}constructor(){super(),H(this,Lf,If)}attributeChangedCallback(t,e,a){switch(t){case Bo.observedAttributes.VIEWPORT:this.viewport=a!==null;break}}get viewport(){return this.hasAttribute(Bo.attributes.VIEWPORT)}set viewport(t){this.toggleAttribute(Bo.attributes.VIEWPORT,!!t)}};$e=s([y({name:Bo.elementName})],$e);function Ad(){x($e)}var Zs=class extends I{constructor(t){super(t)}};var Bd=`${b}option`,Vf={DISABLED:"disabled",DIVIDER:"divider",LABEL:"label",SECONDARY_LABEL:"secondary-label",LEADING_ICON_CLASS:"leading-icon-class",LEADING_ICON_TYPE:"leading-icon-type",LEADING_ICON:"leading-icon",OPTION_CLASS:"option-class",TRAILING_ICON_CLASS:"trailing-icon-class",TRAILING_ICON_TYPE:"trailing-icon-type",TRAILING_ICON:"trailing-icon",VALUE:"value"},Ef={VALUE_CHANGE:`${Bd}-value-change`},N={elementName:Bd,attributes:Vf,events:Ef};var Qs=class{constructor(t){this._adapter=t;this._disabled=!1;this._divider=!1;this._optionClass=[]}get value(){return this._value}set value(t){this._value!==t&&(this._value=t,this._adapter.emitHostEvent(N.events.VALUE_CHANGE,this._value))}get label(){return this._label}set label(t){this._label!==t&&(this._label=t,this._adapter.toggleHostAttribute(N.attributes.LABEL,!!this._label,this._label))}get secondaryLabel(){return this._secondaryLabel}set secondaryLabel(t){this._secondaryLabel!==t&&(this._secondaryLabel=t,this._adapter.toggleHostAttribute(N.attributes.SECONDARY_LABEL,!!this._secondaryLabel,this._secondaryLabel))}get disabled(){return this._disabled}set disabled(t){this._disabled!==t&&(this._disabled=t,this._adapter.toggleHostAttribute(N.attributes.DISABLED,this._disabled))}get divider(){return this._divider}set divider(t){this._divider!==t&&(this._divider=t,this._adapter.toggleHostAttribute(N.attributes.DIVIDER,this._divider))}get optionClass(){return this._optionClass}set optionClass(t){t?typeof t=="string"&&(t=t.split(" ")):t=[],t=t.filter(e=>e&&!/\s+/.test(e)),this._optionClass.toString()!==t.toString()&&(this._optionClass=t,this._adapter.toggleHostAttribute(N.attributes.OPTION_CLASS,this._optionClass&&!!this._optionClass.length,this._optionClass.join(" ")))}get leadingIcon(){return this._leadingIcon}set leadingIcon(t){this._leadingIcon!==t&&(this._leadingIcon=t,this._adapter.toggleHostAttribute(N.attributes.LEADING_ICON,!!this._leadingIcon,this._leadingIcon))}get leadingIconClass(){return this._leadingIconClass}set leadingIconClass(t){this._leadingIconClass!==t&&(this._leadingIconClass=t,this._adapter.toggleHostAttribute(N.attributes.LEADING_ICON_CLASS,!!this._leadingIconClass,this._leadingIconClass))}get leadingIconType(){return this._leadingIconType}set leadingIconType(t){this._leadingIconType!==t&&(this._leadingIconType=t,this._adapter.toggleHostAttribute(N.attributes.LEADING_ICON_TYPE,!!this._leadingIconType,this._leadingIconType))}get leadingIconComponentProps(){return this._leadingIconComponentProps}set leadingIconComponentProps(t){this._leadingIconComponentProps!==t&&(this._leadingIconComponentProps=t)}get trailingIcon(){return this._trailingIcon}set trailingIcon(t){this._trailingIcon!==t&&(this._trailingIcon=t,this._adapter.toggleHostAttribute(N.attributes.TRAILING_ICON,!!this._trailingIcon,this._trailingIcon))}get trailingIconClass(){return this._trailingIconClass}set trailingIconClass(t){this._trailingIconClass!==t&&(this._trailingIconClass=t,this._adapter.toggleHostAttribute(N.attributes.TRAILING_ICON_CLASS,!!this._trailingIconClass,this._trailingIconClass))}get trailingIconType(){return this._trailingIconType}set trailingIconType(t){this._trailingIconType!==t&&(this._trailingIconType=t,this._adapter.toggleHostAttribute(N.attributes.TRAILING_ICON_TYPE,!!this._trailingIconType,this._trailingIconType))}get trailingIconComponentProps(){return this._trailingIconComponentProps}set trailingIconComponentProps(t){this._trailingIconComponentProps!==t&&(this._trailingIconComponentProps=t)}get leadingBuilder(){return this._leadingBuilder}set leadingBuilder(t){this._leadingBuilder!==t&&(this._leadingBuilder=t)}get trailingBuilder(){return this._trailingBuilder}set trailingBuilder(t){this._trailingBuilder!==t&&(this._trailingBuilder=t)}};var J1=class extends M{static get observedAttributes(){return[N.attributes.VALUE,N.attributes.LABEL,N.attributes.SECONDARY_LABEL,N.attributes.DISABLED,N.attributes.DIVIDER,N.attributes.OPTION_CLASS,N.attributes.LEADING_ICON,N.attributes.LEADING_ICON_CLASS,N.attributes.LEADING_ICON_TYPE,N.attributes.TRAILING_ICON,N.attributes.TRAILING_ICON_CLASS,N.attributes.TRAILING_ICON_TYPE]}constructor(){super(),this._core=new Qs(new Zs(this))}attributeChangedCallback(t,e,a){switch(t){case N.attributes.VALUE:this.value=a;break;case N.attributes.LABEL:this.label=a;break;case N.attributes.SECONDARY_LABEL:this.secondaryLabel=a;break;case N.attributes.DISABLED:this.disabled=p(a);break;case N.attributes.DIVIDER:this.divider=this.hasAttribute(N.attributes.DIVIDER);break;case N.attributes.OPTION_CLASS:this.optionClass=a;break;case N.attributes.LEADING_ICON:this.leadingIcon=a;break;case N.attributes.LEADING_ICON_CLASS:this.leadingIconClass=a;break;case N.attributes.LEADING_ICON_TYPE:this.leadingIconType=a;break;case N.attributes.TRAILING_ICON:this.trailingIcon=a;break;case N.attributes.TRAILING_ICON_CLASS:this.trailingIconClass=a;break;case N.attributes.TRAILING_ICON_TYPE:this.trailingIconType=a;break}}};s([v()],J1.prototype,"value",2),s([v()],J1.prototype,"label",2),s([v()],J1.prototype,"secondaryLabel",2),s([v()],J1.prototype,"disabled",2),s([v()],J1.prototype,"divider",2),s([v()],J1.prototype,"optionClass",2),s([v()],J1.prototype,"leadingIcon",2),s([v()],J1.prototype,"leadingIconClass",2),s([v()],J1.prototype,"leadingIconType",2),s([v()],J1.prototype,"leadingIconComponentProps",2),s([v()],J1.prototype,"trailingIcon",2),s([v()],J1.prototype,"trailingIconClass",2),s([v()],J1.prototype,"trailingIconType",2),s([v()],J1.prototype,"trailingIconComponentProps",2),s([v()],J1.prototype,"leadingBuilder",2),s([v()],J1.prototype,"trailingBuilder",2),J1=s([y({name:N.elementName})],J1);function Td(){x(J1)}var Cf=`${b}option-group`,zf={LABEL:"label"},ia={elementName:Cf,attributes:zf};var Xe=class extends M{static get observedAttributes(){return[ia.attributes.LABEL]}constructor(){super()}attributeChangedCallback(t,e,a){switch(t){case ia.attributes.LABEL:this.label=a;break}}get label(){return this._label}set label(t){this._label!==t&&(this._label=t||"",this.setAttribute(ia.attributes.LABEL,this._label))}get text(){return this._label}set text(t){this.label=t}};Xe=s([y({name:ia.elementName})],Xe);function Sd(){x(Xe)}var kd=(e=>(e[e.Option=0]="Option",e[e.Group=1]="Group",e))(kd||{});function a5(r,t){let e=r.some(o=>o5(o)),a=r.some(o=>Af(o));return e&&t===1||a&&t===0}function o5(r){return k(r)&&nt(r)&&r.hasOwnProperty("options")}function Af(r){return k(r)&&nt(r)&&r.hasOwnProperty("label")&&r.hasOwnProperty("value")}var To=class extends I{constructor(t){super(t)}get popupElement(){var t;return(t=this._listDropdown)==null?void 0:t.dropdownElement}getOptions(){let t=Array.from(this._component.querySelectorAll(ia.elementName));if(t.length)return t.map(e=>{let a=Array.from(e.querySelectorAll(N.elementName)),o=this._createOptionsFromElements(a);return{text:e.label,builder:e.builder,value:e.value,options:o}});{let e=Array.from(this._component.querySelectorAll(N.elementName));return this._createOptionsFromElements(e)}}_createOptionsFromElements(t){return t.map(e=>{let a=e.hasAttribute(N.attributes.OPTION_CLASS)?e.getAttribute(N.attributes.OPTION_CLASS):e.optionClass;return typeof a=="string"&&(a=a.split(" ")),{label:e.hasAttribute(N.attributes.LABEL)?e.getAttribute(N.attributes.LABEL):k(e.label)?e.label:e.innerText,secondaryLabel:e.hasAttribute(N.attributes.SECONDARY_LABEL)?e.getAttribute(N.attributes.SECONDARY_LABEL):k(e.secondaryLabel)?e.secondaryLabel:void 0,value:e.hasAttribute(N.attributes.VALUE)?e.getAttribute(N.attributes.VALUE):e.value,disabled:e.hasAttribute(N.attributes.DISABLED),divider:e.hasAttribute(N.attributes.DIVIDER),optionClass:a,leadingIcon:e.hasAttribute(N.attributes.LEADING_ICON)?e.getAttribute(N.attributes.LEADING_ICON):e.leadingIcon,leadingIconClass:e.hasAttribute(N.attributes.LEADING_ICON_CLASS)?e.getAttribute(N.attributes.LEADING_ICON_CLASS):e.leadingIconClass,leadingIconType:e.hasAttribute(N.attributes.LEADING_ICON_TYPE)?e.getAttribute(N.attributes.LEADING_ICON_TYPE):e.leadingIconType,leadingIconComponentProps:e.leadingIconComponentProps,trailingIcon:e.hasAttribute(N.attributes.TRAILING_ICON)?e.getAttribute(N.attributes.TRAILING_ICON):e.trailingIcon,trailingIconClass:e.hasAttribute(N.attributes.TRAILING_ICON_CLASS)?e.getAttribute(N.attributes.TRAILING_ICON_CLASS):e.trailingIconClass,trailingIconType:e.hasAttribute(N.attributes.TRAILING_ICON_TYPE)?e.getAttribute(N.attributes.TRAILING_ICON_TYPE):e.trailingIconType,trailingIconComponentProps:e.trailingIconComponentProps,leadingBuilder:e.leadingBuilder,trailingBuilder:e.trailingBuilder}})}open(t){var e;if(this._listDropdown=new Pe(this._targetElement,t),this._listDropdown.open(),this._component.id){let a=(e=this._listDropdown.dropdownElement)==null?void 0:e.querySelector("forge-list");a==null||a.setAttribute("aria-labelledby",this._component.id)}}async close(){this._listDropdown&&(await this._listDropdown.close(),this.destroyListDropdown())}destroyListDropdown(){var t;(t=this._listDropdown)==null||t.destroy(),this._listDropdown=void 0}setDismissListener(t){!this._listDropdown||!this._listDropdown.dropdownElement||this._listDropdown.dropdownElement.addEventListener(Z.events.TOGGLE,t)}toggleOptionMultiple(t,e){var a;(a=this._listDropdown)==null||a.toggleOptionMultiple(t,e)}getActiveOptionIndex(){var t,e;return(e=(t=this._listDropdown)==null?void 0:t.getActiveOptionIndex())!=null?e:-1}activateSelectedOption(){var t;(t=this._listDropdown)==null||t.activateSelectedOption()}activateFirstOption(){var t;(t=this._listDropdown)==null||t.activateFirstOption()}highlightActiveOption(t){var e;(e=this._listDropdown)==null||e.activateOption(t)}patchSelectedValues(t){var e;(e=this._listDropdown)==null||e.setSelectedValues(t)}setOptionsListener(t){let e=o=>{o.stopPropagation(),t(this.getOptions())};this._component.addEventListener(N.events.VALUE_CHANGE,e);let a=new MutationObserver(()=>t(this.getOptions()));return a.observe(this._component,{childList:!0,subtree:!0}),()=>{this._component.removeEventListener(N.events.VALUE_CHANGE,e),a.disconnect()}}setOptions(t,e=!0){e&&this._clearOptions();for(let a of t)if(o5(a)){let o=this._createOptionGroupElement(a);for(let n of a.options){let i=this._createOptionElement(n);o.appendChild(i)}this._component.appendChild(o)}else{let o=this._createOptionElement(a);this._component.appendChild(o)}}appendDropdownOptions(t){var e;(e=this._listDropdown)==null||e.appendOptions(t)}setDropdownOptions(t){var e;(e=this._listDropdown)==null||e.setOptions(t)}scrollSelectedOptionIntoView(){var t;(t=this._listDropdown)==null||t.scrollSelectedOptionIntoView()}isFocusWithinPopup(t){return!this._listDropdown||!this._listDropdown.dropdownElement?!1:this._listDropdown.dropdownElement.contains(t)}queueDropdownPositionUpdate(){this.popupElement&&window.requestAnimationFrame(()=>{let t=this.popupElement;t==null||t.position()})}_clearOptions(){Array.from(this._component.querySelectorAll(ia.elementName)).forEach(a=>Te(a)),Array.from(this._component.querySelectorAll(N.elementName)).forEach(a=>Te(a))}_createOptionGroupElement(t){let e=document.createElement("forge-option-group");return Object.assign(e,t),e}_createOptionElement(t){let e=document.createElement("forge-option");return Object.assign(e,t),e.textContent=t.label,t.elementAttributes&&t.elementAttributes.forEach((a,o)=>{e.setAttribute(o,a)}),e}};var Od={VALUE:"value",MULTIPLE:"multiple",OBSERVE_SCROLL:"observe-scroll",OBSERVE_SCROLL_THRESHOLD:"observe-scroll-threshold",POPUP_CLASSES:"popup-classes",OPTION_LIMIT:"option-limit",SYNC_POPUP_WIDTH:"sync-popup-width",CONSTRAIN_POPUP_WIDTH:"constrain-popup-width",WRAP_OPTION_TEXT:"wrap-option-text"},Bf=w({},Od),Tf={CHANGE:"change"},bt={observedAttributes:Od,attributes:Bf,events:Tf};var So=class extends K0{constructor(e){super();this._adapter=e;this._options=[];this._value=[];this._multiple=!1;this._open=!1;this._selectedValues=[];this._selectedLabels=[];this._selectedIndexes=[];this._filterString="";this._focusListener=a=>this._onFocus(a),this._blurListener=a=>this._onBlur(a),this._clickListener=a=>this._onClick(a),this._keydownListener=a=>this._onKeydown(a),this._optionsChangedListener=a=>this._onOptionsChanged(a),this._activeChangeListener=a=>this._onActiveOptionChanged(a),this._dropdownScrollEndListener=()=>this._onDropdownScrollEnd(),this._dismissListener=()=>this._onDismiss(),this._identifier=P2()}_onFocus(e){}initialize(){this._optionListenerDestructor&&this._optionListenerDestructor(),this._optionListenerDestructor=this._adapter.setOptionsListener(this._optionsChangedListener),this._initializeValue()}initializeTarget(){this._adapter.initializeAccessibility(),this._adapter.addClickListener(this._clickListener),this._adapter.addTargetListener("blur",this._blurListener),this._adapter.addTargetListener("focus",this._focusListener),this._adapter.addTargetListener("keydown",this._keydownListener)}destroy(){this._adapter.removeClickListener(this._clickListener),this._adapter.removeTargetListener("blur",this._blurListener),this._adapter.removeTargetListener("focus",this._focusListener),this._adapter.removeTargetListener("keydown",this._keydownListener),this._optionListenerDestructor&&this._optionListenerDestructor(),this._open=!1,this._adapter.destroyListDropdown()}appendOptions(e){this._adapter.setOptions(e,!1),this._open&&this._adapter.appendDropdownOptions(e)}selectAll(){this._multiple&&(this.value=this._flatOptions.map(e=>e.value))}deselectAll(){this._multiple&&(this.value=[])}get _flatOptions(){return a5(this._options,1)?[].concat.apply([],this._options.map(e=>e.options)):this._options}get _nonDividerOptions(){return this._flatOptions.filter(e=>!e.divider)}_initializeValue(){let e=this._options.length&&this._options||this._adapter.getOptions();k(this._value)&&e.length&&this._applyValue(this._value)}_onClick(e){e.button===0&&(this._open?this._closeDropdown():this._openDropdown())}_onBlur(e){this._adapter.isFocusWithinPopup(e.relatedTarget)||this._open&&this._closeDropdown()}_openDropdown(){if(this._options=this._adapter.getOptions(),!this._flatOptions.length)return;this._open=!0;let e={options:this._options,referenceElement:this._adapter.hostElement,multiple:this._multiple,selectedValues:[...this._selectedValues],id:this._identifier,optionBuilder:this._optionBuilder,syncWidth:this._syncPopupWidth,constrainViewportWidth:this._constrainPopupWidth,wrapOptionText:this._wrapOptionText,observeScroll:this._observeScroll,observeScrollThreshold:this._observeScrollThreshold,scrollEndListener:this._dropdownScrollEndListener,activeChangeCallback:this._activeChangeListener,targetWidthCallback:this._targetWidthCallback,popupClasses:this._popupClasses,optionLimit:this._optionLimit,headerBuilder:this._popupHeaderBuilder,footerBuilder:this._popupFooterBuilder,closeCallback:()=>this._closeDropdown(),selectCallback:a=>{let o=this._flatOptions,n=o.find(i=>i.value===a);if(n){let i=o.indexOf(n);this._onSelect(n,i,!0)}}};this._adapter.open(e),this._adapter.setDismissListener(this._dismissListener)}_closeDropdown(){this._open=!1,this._adapter.close()}async _onSelect(e,a,o=!0){return new Promise(async n=>{if(this._valueChanging)return Promise.resolve(!1);let i=e?e.value:"",l=e?e.label:"",h=[...this._value],c=[...this._selectedValues],d=[...this._selectedLabels],u=[...this._selectedIndexes];if(this._multiple)if(this._selectedValues.includes(i)){let z=this._selectedValues.indexOf(i);this._selectedValues.splice(z,1),this._selectedLabels.splice(z,1),this._selectedIndexes.splice(z,1)}else this._selectedValues.push(i),this._selectedLabels.push(l),this._selectedIndexes.push(a);else k(i)?(this._selectedValues[0]=i,this._selectedLabels[0]=l,this._selectedIndexes[0]=a):(this._selectedValues=[],this._selectedLabels=[],this._selectedIndexes=[]);this._value=[...this._selectedValues];let _=()=>{this._selectedValues=[...c],this._selectedLabels=[...d],this._selectedIndexes=[...u],this._value=[...h]},L=()=>{if(this._multiple){let z=this._selectedIndexes.includes(a);this._adapter.toggleOptionMultiple(a,z)}this._applySelection()},C=this.multiple?[...this._selectedValues]:this._selectedValues[0];if(this._open&&o&&!this._multiple&&this._closeDropdown(),typeof this._beforeValueChange=="function"){this._valueChanging=Promise.resolve(this._beforeValueChange.call(null,C));let z=await this._valueChanging;if(this._valueChanging=void 0,!z)return _(),this._tryUpdateDropdownPosition(),n(!1)}let A=!this._adapter.emitHostEvent(bt.events.CHANGE,C,!0,!0);A?_():L(),this._tryUpdateDropdownPosition(),n(!A)})}_selectActiveOption(){let e=this._adapter.getActiveOptionIndex();e>=0&&this._nonDividerOptions[e]&&this._onSelect(this._nonDividerOptions[e],e)}_tryUpdateDropdownPosition(){this._open&&this._adapter.queueDropdownPositionUpdate()}_reset(){this._selectedValues=[],this._selectedLabels=[],this._selectedIndexes=[]}_applyValue(e){this._selectedValues=[],this._selectedLabels=[],this._options=this._adapter.getOptions(),Array.isArray(e)||(e=[e]),this._value=[];for(let a of e){this._value.includes(a)||this._value.push(a);let o=this._flatOptions.find(n=>Nt(n.value,a));o&&(this._selectedValues.push(o.value),this._selectedLabels.push(o.label))}this._selectedIndexes=this._selectedValues.map(a=>this._flatOptions.findIndex(o=>o.value===a)),this._adapter.patchSelectedValues(this._selectedValues)}_onDismiss(){this._closeDropdown()}_getSelectedText(){if(typeof this._selectedTextBuilder=="function"){let e=this._flatOptions.filter(a=>this._selectedValues.includes(a.value));return this._selectedTextBuilder(e)}return this._multiple?this._selectedLabels.length?this._selectedLabels.length===1?this._selectedLabels[0]:`${this._selectedLabels.length} options selected`:"":this._selectedLabels.filter(e=>e&&e.length).join(" ").trim()}_onKeydown(e){let a=e.key==="Escape"||e.keyCode===27,o=e.key==="Enter"||e.keyCode===13,n=e.key==="Space"||e.keyCode===32,i=e.key==="ArrowDown"||e.keyCode===40,l=e.key==="ArrowUp"||e.keyCode===38,h=e.keyCode>=48&&e.keyCode<=90,c=e.key==="Home"||e.keyCode===36,d=e.key==="End"||e.keyCode===35;if(e.key==="Tab"&&this._open&&!this._multiple){this._selectActiveOption();return}if(!h&&this._filterTimeout&&(window.clearTimeout(this._filterTimeout),this._filterString="",this._filterTimeout=void 0),a&&(e.preventDefault(),e.stopPropagation(),this._open)){this._closeDropdown();return}if(n)e.preventDefault(),e.stopPropagation(),this._open?this._closeDropdown():this._openDropdown();else if(o)this._open&&(e.stopPropagation(),e.preventDefault(),this._options=this._adapter.getOptions(),this._selectActiveOption());else if(l||i){if(e.preventDefault(),!this._open){this._openDropdown(),this._adapter.activateFirstOption();return}if(this._flatOptions.length===0)return;let _=0;this._open?(_=this._adapter.getActiveOptionIndex(),_===-1&&(_=this._getFirstSelectedOptionIndex())):_=this._getFirstSelectedOptionIndex(),l?_=this._getPreviousHighlightableOptionIndex(_,this._nonDividerOptions):_=this._getNextHighlightableOptionIndex(_,this._nonDividerOptions),this._adapter.highlightActiveOption(_)}else if(c)this._open&&(e.preventDefault(),this._adapter.highlightActiveOption(this._nonDividerOptions.findIndex(_=>!_.disabled)));else if(d){if(this._open){e.preventDefault();let _=this._nonDividerOptions;for(let L=_.length-1;L>=0;L--)if(!_[L].disabled){this._adapter.highlightActiveOption(L);break}}}else h&&this._filter(e.key)}_getFirstSelectedOptionIndex(){return this._nonDividerOptions.findIndex(e=>this._selectedValues.includes(e.value))}_getPreviousHighlightableOptionIndex(e,a){let o=e;return o<=0?o=a.length-1:o--,a[o].disabled?this._getPreviousHighlightableOptionIndex(o,a):o}_getNextHighlightableOptionIndex(e,a){let o=e;return o===a.length-1?o=0:o++,a[o].disabled?this._getNextHighlightableOptionIndex(o,a):o}_filter(e){this._filterTimeout&&(window.clearTimeout(this._filterTimeout),this._filterTimeout=void 0),this._filterString+=e,this._filterTimeout=window.setTimeout(()=>{this._filterString="",this._filterTimeout=void 0},300),this._options=this._adapter.getOptions();let a=this._flatOptions.find(({disabled:o,label:n})=>!o&&n.trim().toLowerCase().startsWith(this._filterString.trim().toLowerCase()));if(a){let o=this._flatOptions.indexOf(a);this._open?this._adapter.highlightActiveOption(o):this._multiple||this._onSelect(a,o,!1)}}_onOptionsChanged(e){this._options=e,this._applyValue(this._value)}_onActiveOptionChanged(e){this._adapter.updateActiveDescendant(e)}get value(){return this._multiple?[...this._value]:this._value[0]}set value(e){let a;Array.isArray(e)?a=[...e]:a=e,this._applyValue(a)}get selectedIndex(){return this._multiple?[...this._selectedIndexes]:this._selectedIndexes[0]}set selectedIndex(e){this._options=this._adapter.getOptions();let a;if(Array.isArray(e)?a=[...e]:a=[e],a.sort(),this.multiple)this.value=a.map(o=>this._flatOptions[o]).filter(o=>o).map(o=>o.value);else{let o=this._flatOptions[a[a.length-1]];if(!o)return;this.value=o.value}}get options(){return this._adapter.getOptions()}set options(e){let a;a5(e,1)?a=e.map(o=>w({},o)):a=e.map(o=>w({},o)),this._options=a,this._adapter.setOptions(a),this._initializeValue(),this._open&&this._adapter.setDropdownOptions(a)}get multiple(){return this._multiple}set multiple(e){this._multiple!==e&&(this._multiple=e,this._reset(),this._open&&this._closeDropdown())}get open(){return this._open}set open(e){this._open!==e&&(e?this._openDropdown():this._closeDropdown())}get optionBuilder(){return this._optionBuilder}set optionBuilder(e){this._optionBuilder=e}get selectedTextBuilder(){return this._selectedTextBuilder}set selectedTextBuilder(e){this._selectedTextBuilder=e}get optionLimit(){return this._optionLimit}set optionLimit(e){this._optionLimit=e}get popupClasses(){return this._popupClasses}set popupClasses(e){this._popupClasses=e}get popupHeaderBuilder(){return this._popupHeaderBuilder}set popupHeaderBuilder(e){this._popupHeaderBuilder=e}get popupFooterBuilder(){return this._popupFooterBuilder}set popupFooterBuilder(e){this._popupFooterBuilder=e}get popupElement(){return this._adapter.popupElement}get beforeValueChange(){return this._beforeValueChange}set beforeValueChange(e){this._beforeValueChange=e}};var yt=class extends R2{constructor(){super()}attributeChangedCallback(t,e,a){switch(super.attributeChangedCallback(t,e,a),t){case bt.attributes.MULTIPLE:this.multiple=p(a);break;case bt.attributes.VALUE:this.value=a;break}}appendOptions(t){this._core.appendOptions(t)}selectAll(){this._core.selectAll()}deselectAll(){this._core.deselectAll()}connectedCallback(){this._core.initialize()}disconnectedCallback(){this._core.destroy()}};s([v()],yt.prototype,"value",2),s([v()],yt.prototype,"selectedIndex",2),s([v()],yt.prototype,"options",2),s([v()],yt.prototype,"multiple",2),s([v()],yt.prototype,"open",2),s([v()],yt.prototype,"optionBuilder",2),s([v()],yt.prototype,"selectedTextBuilder",2),s([v()],yt.prototype,"beforeValueChange",2),s([v({set:!1})],yt.prototype,"popupElement",2);var Dd=`${b}select`,Sf={FIELD:"#field",SELECTED_TEXT:"#selected-text",LABEL:"#select-label"},Pd={OPEN:"open",TYPE:"type",VALUE:"value",LABEL:"label",MULTIPLE:"multiple",DISABLED:"disabled",PLACEHOLDER:"placeholder",OBSERVE_SCROLL:"observe-scroll",OBSERVE_SCROLL_THRESHOLD:"observe-scroll-threshold"},kf=w({},Pd),Of={SCROLLED_BOTTOM:`${Dd}-scrolled-bottom`},G2={elementName:Dd,observedAttributes:Pd,attributes:kf,selectors:Sf,events:Of};var Js=class extends To{constructor(t){super(t),this._fieldElement=g(t,G2.selectors.FIELD),this._labelElement=g(t,G2.selectors.LABEL),this._selectedTextElement=g(t,G2.selectors.SELECTED_TEXT),this._fieldElement.setAttribute("exportparts",Object.values(V.parts).join(", ")),this._fieldElement.focusIndicatorTargetElement=this._component}get fieldElement(){return this._fieldElement}initializeAccessibility(){this._component.setAttribute("role","combobox"),this._component.setAttribute("aria-haspopup","true"),this._component.setAttribute("aria-expanded","false"),Oe(),Zt(this._component),this.fieldElement.required&&this.setHostAttribute("aria-required","true"),this.fieldElement.disabled&&this.setHostAttribute("aria-disabled","true"),this.fieldElement.invalid&&this.setHostAttribute("aria-invalid","true"),this._component[$1]=!this._component.disabled}setLabel(t){let a=!(this._fieldElement.labelPosition==="inset"&&(this._fieldElement.density==="extra-small"||this._fieldElement.dense))&&!!(t!=null&&t.trim());(!this._component.hasAttribute("aria-label")||this._component.getAttribute("aria-label")===this._labelElement.textContent)&&this._component.setAttribute("aria-label",t),a?(this._labelElement.isConnected||this._fieldElement.insertAdjacentElement("afterbegin",this._labelElement),this._labelElement.textContent=t):this._labelElement.remove()}setPlaceholderText(t){K(this._selectedTextElement,!!(t!=null&&t.trim()),"placeholder",t)}open(t){this._targetElement||(this._targetElement=g(this._fieldElement,V.selectors.POPOVER_TARGET)),super.open(t),this._component.setAttribute("aria-controls",`list-dropdown-popup-${t.id}`),this._component.setAttribute("aria-expanded","true"),this._fieldElement.popoverExpanded=!0}close(){return this._component.setAttribute("aria-expanded","false"),this._component.removeAttribute("aria-activedescendant"),Zt(this._component),this._fieldElement.popoverExpanded=!1,super.close()}floatLabel(t){this._fieldElement.floatLabel=t}updateActiveDescendant(t){K(this._component,!!t,"aria-activedescendant",t)}setSelectedText(t){this._selectedTextElement.textContent=t}setDisabled(t){this._component[$1]=!t,K(this._component,t,"aria-disabled","true")}setRequired(){this._component[wt]()}addClickListener(t){this._component.addEventListener("click",t)}removeClickListener(t){this._component.removeEventListener("click",t)}addTargetListener(t,e){this._component.addEventListener(t,e)}removeTargetListener(t,e){this._component.removeEventListener(t,e)}syncValue(t){let a=(Array.isArray(t)?!t.length||!t.some(n=>n!=null):t==null)?null:new FormData,o=JSON.stringify(t);a&&t&&a.append(this._component.name,o),this._component.setFormValue(a,o),this._component[wt]()}};var tl=class extends So{constructor(e){super(e);this._label="";this._required=!1;this._permanentlyFloatLabel=!1;this._mousedownListener=this._onMouseDown.bind(this)}initialize(){this._adapter.tryApplyGlobalConfiguration(["labelPosition","variant"]),super.initialize(),super.initializeTarget(),this._initializeLabel(),this._initializeAccessibility(),this._adapter.addTargetListener("mousedown",this._mousedownListener)}destroy(){super.destroy(),this._adapter.removeTargetListener("mousedown",this._mousedownListener)}syncFloatingLabelState({force:e}={}){e!==void 0&&(this._permanentlyFloatLabel=e),this._updateLabel(),this._tryFloatLabel()}setDisabled(e){this._adapter.setDisabled(e)}_initializeLabel(){this._updateLabel(),this._tryFloatLabel()}_initializeValue(){super._initializeValue(),this._tryFloatLabel()}_initializeAccessibility(){this._adapter.initializeAccessibility()}_onMouseDown(e){e.preventDefault()}_onClick(e){this._adapter.fieldElement.disabled||e.composedPath().find(o=>{var n;return(n=o.matches)==null?void 0:n.call(o,"slot[name=accessory]")})||(this._adapter.focusHost(),super._onClick(e))}_openDropdown(){super._openDropdown(),this._open&&this._adapter.toggleHostAttribute(G2.attributes.OPEN,!0)}_closeDropdown(){super._closeDropdown(),this._open||this._adapter.toggleHostAttribute(G2.attributes.OPEN,!1)}_onDismiss(){super._onDismiss()}_onDropdownScrollEnd(){this._adapter.emitHostEvent(G2.events.SCROLLED_BOTTOM)}async _onSelect(e,a,o=!0){let n=await super._onSelect(e,a,o);return n&&(this._adapter.setSelectedText(this._getSelectedText()),o&&!this._multiple&&this._adapter.focusHost()),this._tryFloatLabel(),this._adapter.syncValue(this._value),n}_reset(){super._reset(),this._adapter.setSelectedText(""),this._tryFloatLabel()}_tryFloatLabel(){if(this._permanentlyFloatLabel){this._adapter.floatLabel(!0);return}let e=!!this._getSelectedText()||!!this._selectedValues.length,a=!!this._placeholder;this._adapter.floatLabel(e||a)}_updateLabel(){this._adapter.setLabel(this._label)}_applyValue(e){super._applyValue(e),this._adapter.syncValue(this._value);let a=this._getSelectedText();this._adapter.setSelectedText(a),this._open||this._tryFloatLabel()}get label(){return this._label}set label(e){this._label!==e&&(this._label=e,this._updateLabel(),this._label&&this._initializeLabel(),this._adapter.toggleHostAttribute(G2.attributes.LABEL,!!this._label,this._label))}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder!==e&&(this._placeholder=e,this._adapter.setPlaceholderText(this._placeholder),this._initializeLabel())}get multiple(){return super.multiple}set multiple(e){this._multiple!==e&&(super.multiple=e,this._adapter.toggleHostAttribute(G2.attributes.MULTIPLE,e))}set required(e){this._required!==e&&this._adapter.setRequired()}};var Df='<template><forge-field id="field" popover-icon focus-indicator-allow-focus focus-indicator-focus-mode="focus"><label id="select-label" aria-hidden="true" part="label" slot="label"></label><slot slot="start" name="start"></slot><div data-forge-field-input class="selected-text-container" part="text-container" aria-live="assertive" aria-atomic="true"><slot name="value"><span id="selected-text" class="selected-text" part="text"></span></slot></div><slot slot="end" name="end"></slot><slot slot="accessory" name="accessory"></slot><slot slot="support-text" name="support-text"></slot><slot slot="support-text-end" name="support-text-end"></slot><slot slot="start" name="leading"></slot><slot slot="end" name="trailing"></slot><slot slot="accessory" name="addon-end"></slot><slot slot="support-text" name="helper-text"></slot></forge-field></template>',Pf=":host{display:block;outline:0}:host([hidden]){display:none}forge-field{--_select-placeholder-color:var(--forge-select-placeholder-color, var(--forge-field-placeholder-color, var(--forge-theme-text-medium, rgba(0, 0, 0, 0.6))))}.selected-text-container{display:grid;align-items:center;cursor:pointer}.selected-text,::slotted([slot=value]){white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.selected-text:empty::before{content:attr(placeholder);color:var(--_select-placeholder-color);font-size:inherit}:host([disabled]) .selected-text-container{cursor:not-allowed}forge-field{display:contents}",Ee=class extends Ue(it(Fe(L1(H1(Cd(yt)))))){static get observedAttributes(){return[...Object.values(F.observedAttributes),...Object.values(G2.observedAttributes),...Object.values(bt.observedAttributes)]}constructor(){var e;super(),q.define([A0,z0]),H(this,Df,Pf);let t=(e=this.shadowRoot)==null?void 0:e.querySelector(V.elementName);this.initializeFieldInstance(t),this[jt]="select",this._core=new tl(new Js(this))}connectedCallback(){super.connectedCallback(),this[P]({role:"combobox",ariaDisabled:this.disabled?"true":"false",ariaRequired:this.required?"true":"false"})}attributeChangedCallback(t,e,a){switch(t){case G2.observedAttributes.OPEN:this.open=p(a);return;case G2.observedAttributes.LABEL:this.label=a;return;case G2.observedAttributes.PLACEHOLDER:this.placeholder=a;return}super.attributeChangedCallback(t,e,a)}[Lt](){return this.value}[wt](){this[a1].setValidity({valueMissing:this.required&&!this.value},this[Xt]({required:this.required,value:this.value}))}formResetCallback(){this.value=null}formStateRestoreCallback(t){this.value=JSON.parse(t)}labelClickedCallback(){this.click(),this.focus()}labelChangedCallback(t){this[P]({ariaLabel:t})}setFormValue(t,e){this[a1].setFormValue(t,e)}get floatLabel(){return super.floatLabel}set floatLabel(t){this._core.syncFloatingLabelState({force:t})}get density(){return super.density}set density(t){super.density=t,this._core.syncFloatingLabelState()}get dense(){return super.dense}set dense(t){super.dense=t,this._core.syncFloatingLabelState()}get disabled(){return super.disabled}set disabled(t){super.disabled=t,this._core.setDisabled(t)}get required(){return super.required}set required(t){super.required=t,this._core.required=t}get labelPosition(){return super.labelPosition}set labelPosition(t){super.labelPosition=t,this._core.syncFloatingLabelState()}};s([v()],Ee.prototype,"label",2),s([v()],Ee.prototype,"placeholder",2),s([v()],Ee.prototype,"readonly",2),Ee=s([y({name:G2.elementName,dependencies:[k1,J1,Xe,P1,h2,j1,Tt,X,$e,se,n1]})],Ee);function Nd(){x(Ee)}var Nf='<template><div class="forge-paginator" part="root" forge-popover-host><div class="container" part="container"><div class="label" part="label" id="label"><slot name="label"></slot></div><forge-select class="page-size-options" aria-labelledby="label" label-position="none" density="extra-small" part="page-size-options"></forge-select><div class="range-label" part="range-label"><slot name="range-label"></slot></div></div><div class="actions" part="actions"><div id="first-page-container"><forge-icon-button class="first-page" part="first-page-button" part="first-page-button-element"><forge-icon name="first_page" part="first-page-icon"></forge-icon></forge-icon-button><forge-tooltip type="label" placement="top"><slot name="first-page-tooltip">Go to the first page</slot></forge-tooltip></div><div id="previous-page-container"><forge-icon-button class="previous-page" part="previous-page-button" part="previous-page-button-element"><forge-icon name="keyboard_arrow_left" part="previous-page-button-icon"></forge-icon></forge-icon-button><forge-tooltip type="label" placement="top"><slot name="previous-page-tooltip">Go to the previous page</slot></forge-tooltip></div><div class="alternative-range-label" part="alternative-range-label"><slot name="alternative-range-label"></slot></div><div id="next-page-container"><forge-icon-button class="next-page" part="next-page-button" part="next-page-button-element"><forge-icon name="keyboard_arrow_right" part="next-page-icon"></forge-icon></forge-icon-button><forge-tooltip type="label" placement="top"><slot name="next-page-tooltip">Go to the next page</slot></forge-tooltip></div><div id="last-page-container"><forge-icon-button class="last-page" part="last-page-button" part="last-page-button-element"><forge-icon name="last_page" part="last-page-icon"></forge-icon></forge-icon-button><forge-tooltip type="label" placement="top"><slot name="last-page-tooltip">Go to the last page</slot></forge-tooltip></div></div></div></template>',Rf=':host{display:block}:host([hidden]){display:none}.forge-paginator{display:flex;gap:var(--forge-spacing-xsmall,8px)}.container{display:flex;gap:var(--forge-spacing-medium,16px);align-items:center}.alternative-range-label,.label,.range-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-label1-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-label1-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-label-font-size-scale, .75)));font-weight:var(--forge-typography-label1-font-weight,400);line-height:var(--forge-typography-label1-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-label-line-height-scale, 1.25)));letter-spacing:var(--forge-typography-label1-letter-spacing, .0357142857em);text-transform:var(--forge-typography-label1-text-transform,inherit);text-decoration:var(--forge-typography-label1-text-decoration,inherit)}.actions{display:flex;align-items:center}.alternative-range-label{display:none}:host([alternative]) .alternative-range-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-body1-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-body1-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-font-size-scale, .875)));font-weight:var(--forge-typography-body1-font-weight,400);line-height:var(--forge-typography-body1-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-line-height-scale, 1.125)));letter-spacing:var(--forge-typography-body1-letter-spacing, .0357142857em);text-transform:var(--forge-typography-body1-text-transform,inherit);text-decoration:var(--forge-typography-body1-text-decoration,inherit);display:inline-block}:host([alternative]) .container{display:none}:host([alternative]) .actions{width:100%;justify-content:var(--forge-paginator-alternative-alignment,start)}',ot=class extends M{static get observedAttributes(){return Object.values($.observedAttributes)}constructor(){super(),q.define([t3,s0,fe,o3]),H(this,Nf,Rf),this._core=new Xs(new js(this))}connectedCallback(){this._core.initialize()}attributeChangedCallback(t,e,a){var o,n,i,l;switch(t){case $.observedAttributes.PAGE_INDEX:this.pageIndex=(o=W(a))!=null?o:$.numbers.DEFAULT_PAGE_INDEX;break;case $.observedAttributes.PAGE_SIZE:this.pageSize=(n=W(a))!=null?n:$.numbers.DEFAULT_PAGE_SIZE;break;case $.observedAttributes.OFFSET:this.offset=W(a);break;case $.observedAttributes.TOTAL:this.total=(i=W(a))!=null?i:$.numbers.DEFAULT_TOTAL;break;case $.observedAttributes.PAGE_SIZE_OPTIONS:this.pageSizeOptions=(l=Tr(a))!=null?l:$.numbers.DEFAULT_PAGE_SIZE_OPTIONS;break;case $.observedAttributes.LABEL:this.label=a;break;case $.observedAttributes.FIRST_LAST:this.firstLast=p(a);break;case $.observedAttributes.FIRST:this.first=p(a);break;case $.observedAttributes.DISABLED:this.disabled=p(a);break;case $.observedAttributes.ALTERNATIVE:this.alternative=p(a);break}}focus(t){this._core.focus(t)}};s([v()],ot.prototype,"pageIndex",2),s([v()],ot.prototype,"pageSize",2),s([v()],ot.prototype,"offset",2),s([v()],ot.prototype,"total",2),s([v()],ot.prototype,"pageSizeOptions",2),s([v()],ot.prototype,"label",2),s([v()],ot.prototype,"firstLast",2),s([v()],ot.prototype,"first",2),s([v()],ot.prototype,"disabled",2),s([v()],ot.prototype,"alternative",2),s([v()],ot.prototype,"rangeLabelCallback",2),ot=s([y({name:$.elementName,dependencies:[n1,Ee,p1]})],ot);function Rd(){x(ot)}var Fd=`${b}select-dropdown`,Ff={TARGET:"target",SELECTED_TEXT_TARGET:"selected-text-target",SYNC_SELECTED_TEXT:"sync-selected-text"},Uf=w({},Ff),Wf={SCROLLED_BOTTOM:`${Fd}-scrolled-bottom`},je={elementName:Fd,attributes:Uf,events:Wf};var el=class extends So{constructor(e){super(e);this._syncSelectedText=!1;this._originalTargetText="";this._targetDisconnectedListener=()=>this._onTargetDisconnected()}initialize(){this._tryAttach(),super.initialize()}destroy(){super.destroy(),this._adapter.isAttached()&&this._detach()}_onDropdownScrollEnd(){this._adapter.emitHostEvent(je.events.SCROLLED_BOTTOM)}_applyValue(e){super._applyValue(e),this._applySelection()}_applySelection(){if(super._applySelection(),this._syncSelectedText||typeof this._selectedTextBuilder=="function"){let e=this._getSelectedText();e||(e=this._originalTargetText),this._adapter.setTargetText(e||"",this._selectedTextTarget)}}_tryAttach(){this._adapter.attach(this._target),this._adapter.isAttached()&&(this._targetDisconnectedDestructor=this._adapter.setTargetDisconnectedListener(this._targetDisconnectedListener),this._originalTargetText=this._adapter.getTargetText(this._selectedTextTarget),this.initializeTarget())}_detach(){this._adapter.detach(),this._targetDisconnectedDestructor&&(this._targetDisconnectedDestructor(),this._targetDisconnectedDestructor=void 0)}_onTargetDisconnected(){this._adapter.detach()}get target(){return this._target}set target(e){this._target!==e&&(this._target=e,this._adapter.isAttached()&&this._detach(),this._tryAttach())}get selectedTextTarget(){return this._selectedTextTarget}set selectedTextTarget(e){this._selectedTextTarget!==e&&(this._selectedTextTarget=e)}get syncSelectedText(){return this._syncSelectedText}set syncSelectedText(e){this._syncSelectedText!==e&&(this._syncSelectedText=e)}};var al=class extends To{constructor(t){super(t)}initializeAccessibility(){this._targetElement.setAttribute("role","combobox"),this._targetElement.setAttribute("aria-live","polite"),this._targetElement.setAttribute("aria-haspopup","true"),this._targetElement.setAttribute("aria-expanded","false"),this.setAriaControls()}addClickListener(t){this._targetElement.addEventListener("click",t)}removeClickListener(t){this._targetElement&&this._targetElement.removeEventListener("click",t)}addTargetListener(t,e){let a,o;t==="keydown"&&(a=!1,o=!0),this._targetElement.addEventListener(t,e,{passive:a,capture:o})}removeTargetListener(t,e){this._targetElement&&this._targetElement.removeEventListener(t,e)}updateActiveDescendant(t){t?this._targetElement.setAttribute("aria-activedescendant",t):this._targetElement.removeAttribute("aria-activedescendant")}open(t){super.open(t),this._targetElement.setAttribute("aria-controls",`list-dropdown-popup-${t.id}`),this._targetElement.setAttribute("aria-expanded","true")}close(){return this._targetElement.setAttribute("aria-expanded","false"),this._targetElement.removeAttribute("aria-activedescendant"),this.setAriaControls(),super.close()}attach(t){let o=(this._component.getRootNode()||HTMLDocument||this._component.ownerDocument||document).querySelector(t);o&&(this._targetElement=o)}detach(){this._targetElement=void 0}setTargetDisconnectedListener(t){if(!this._targetElement||!this._targetElement.parentElement)return()=>{};let e=new MutationObserver(a=>{a.some(n=>Array.from(n.removedNodes).some(i=>i===this._targetElement))&&(e.disconnect(),t())});return e.observe(this._targetElement.parentElement,{childList:!0}),()=>e.disconnect()}isAttached(){return!!this._targetElement}setTargetText(t,e){let a=this._targetElement;if(e){let o=this._getElementBySelector(e);o&&(a=o)}a&&(a.textContent=t)}getTargetText(t){let e=t?this._getElementBySelector(t):this._targetElement;return e?e.innerText:""}_getElementBySelector(t){return this._targetElement.querySelector(t)||this._getRootNode().querySelector(t)}_getRootNode(){var t,e;return(e=(t=this._component.getRootNode())!=null?t:this._component.ownerDocument)!=null?e:document}setAriaControls(){let t=this._component.querySelector("[data-forge-aria-controls-placeholder]");if(t){this._targetElement.setAttribute("aria-controls",t.id);return}t=document.createElement("div"),t.id=`forge-select-dropdown-temp-${P2(10)}`,t.setAttribute("data-forge-aria-controls-placeholder",""),this._targetElement.setAttribute("aria-controls",t.id),this._component.appendChild(t)}};var Gf="<template></template>",Yf=":host{display:none}",f0=class extends yt{static get observedAttributes(){return[je.attributes.TARGET,je.attributes.SELECTED_TEXT_TARGET,je.attributes.SYNC_SELECTED_TEXT,bt.attributes.VALUE,bt.attributes.MULTIPLE,bt.attributes.OBSERVE_SCROLL,bt.attributes.OBSERVE_SCROLL_THRESHOLD,bt.attributes.POPUP_CLASSES,bt.attributes.OPTION_LIMIT,bt.attributes.SYNC_POPUP_WIDTH]}constructor(){super(),H(this,Gf,Yf),this._core=new el(new al(this))}attributeChangedCallback(t,e,a){switch(t){case je.attributes.TARGET:this.target=a;return;case je.attributes.SELECTED_TEXT_TARGET:this.selectedTextTarget=a;return;case je.attributes.SYNC_SELECTED_TEXT:this.syncSelectedText=p(a);return}super.attributeChangedCallback(t,e,a)}};s([v()],f0.prototype,"target",2),s([v()],f0.prototype,"selectedTextTarget",2),s([v()],f0.prototype,"syncSelectedText",2),f0=s([y({name:je.elementName,dependencies:[J1,Xe,P1,h2,j1,Tt,$e,se,n1]})],f0);function Ud(){x(f0)}var Wd=class extends a2{constructor(t){super(t)}_build(){return document.createElement(G2.elementName)}_configure(){var t;typeof((t=this._config.options)==null?void 0:t.helperText)=="string"&&this.setHelperText(this._config.options.helperText)}get value(){return this._element.value}set value(t){this._element.value=t}get disabled(){return this._element.disabled}set disabled(t){this._element.disabled=t}get invalid(){return this._element.invalid||!1}set invalid(t){this._element.invalid=t}onChange(t){this._element.addEventListener("change",e=>t(e.detail))}onFocus(t){this._element.addEventListener("focus",e=>t(e))}onBlur(t){this._element.addEventListener("blur",e=>t(e))}setHelperText(t){t?(this._helperTextElement||(this._helperTextElement=document.createElement("span"),this._helperTextElement.slot="helper-text",this._element.appendChild(this._helperTextElement)),this._helperTextElement.textContent=t):this._helperTextElement&&this._helperTextElement.isConnected&&(this._element.removeChild(this._helperTextElement),this._helperTextElement=void 0)}};var Kf=`${b}skip-link`,Gd={TARGET:"target",THEME:"theme",MUTED:"muted",PERSISTENT:"persistent",INLINE:"inline",SKIP_URL_CHANGE:"skip-url-change"},qf=w({},Gd),$f={ANCHOR:"a"},pt={elementName:Kf,observedAttributes:Gd,attributes:qf,selectors:$f};var Xf='<template><a class="forge-skip-link" part="anchor"><slot>Skip to main content</slot><forge-focus-indicator part="focus-indicator"></forge-focus-indicator><forge-state-layer exportparts="surface:state-layer"></forge-state-layer></a></template>',jf=':host{--_skip-link-inset:var(--forge-skip-link-inset, var(--forge-spacing-xsmall, 8px) var(--forge-spacing-medium, 16px));--_skip-link-z-index:var(--forge-skip-link-z-index, var(--forge-z-index-popup, 10));--_skip-link-transition-duration:var(--forge-skip-link-transition-duration, var(--forge-animation-duration-short4, 200ms));--_skip-link-transition-timing-function:var(--forge-skip-link-transition-timing-function, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1)))}:host{transition-property:opacity,transform;transition-duration:var(--_skip-link-transition-duration);transition-timing-function:var(--_skip-link-transition-timing-function);display:block;position:fixed;inset:var(--_skip-link-inset);z-index:var(--_skip-link-z-index);block-size:fit-content;inline-size:fit-content;opacity:0;transform:translateY(-100%)}:host([hidden]){display:none}:host(:where(:focus-within,[persistent])){transition-property:opacity,transform;transition-duration:var(--_skip-link-transition-duration);transition-timing-function:var(--_skip-link-transition-timing-function);transform:translateY(0);opacity:1}.forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-secondary, #ffc107));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-secondary, #000000));--_skip-link-shape:var(--forge-skip-link-shape, calc(var(--forge-shape-medium, 4px) * var(--forge-shape-factor, 1)));--_skip-link-elevation:var(--forge-skip-link-elevation, 0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12));--_skip-link-padding-block:var(--forge-skip-link-padding-block, var(--forge-spacing-xsmall, 8px));--_skip-link-padding-inline:var(--forge-skip-link-padding-inline, var(--forge-spacing-medium, 16px));--_skip-link-focus-indicator-color:var(--forge-skip-link-focus-indicator-color, var(--_skip-link-background))}.forge-skip-link{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-body2-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-body2-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-font-size-scale, 1)));font-weight:var(--forge-typography-body2-font-weight,400);line-height:var(--forge-typography-body2-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-line-height-scale, 1.375)));letter-spacing:var(--forge-typography-body2-letter-spacing, .015625em);text-transform:var(--forge-typography-body2-text-transform,inherit);text-decoration:var(--forge-typography-body2-text-decoration,inherit);display:block;outline:0;box-shadow:var(--_skip-link-elevation);border-radius:var(--_skip-link-shape);background:var(--_skip-link-background);padding-block:var(--_skip-link-padding-block);padding-inline:var(--_skip-link-padding-inline);cursor:pointer;color:var(--_skip-link-color);text-decoration:underline}:host([theme=primary]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-primary, #3f51b5));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-primary, #ffffff))}:host([theme=primary][muted]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-primary-container-high, #b6bde3));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-primary-container-high, #000000))}:host([theme=secondary]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-secondary, #ffc107));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-secondary, #000000))}:host([theme=secondary][muted]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-secondary-container-high, #ffe7a1));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-secondary-container-high, #000000))}:host([theme=tertiary]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-tertiary, #3d5afe));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-tertiary, #ffffff))}:host([theme=tertiary][muted]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-tertiary-container-high, #b5c0ff));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-tertiary-container-high, #000000))}:host([theme=success]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-success, #2e7d32));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-success, #ffffff))}:host([theme=success][muted]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-success-container-high, #b0ceb1));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-success-container-high, #000000))}:host([theme=error]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-error, #b00020));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-error, #ffffff))}:host([theme=error][muted]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-error-container-high, #e19eaa));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-error-container-high, #000000))}:host([theme=warning]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-warning, #d14900));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-warning, #ffffff))}:host([theme=warning][muted]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-warning-container-high, #eeba9e));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-warning-container-high, #000000))}:host([theme=info]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-info, #1565c0));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-info, #ffffff))}:host([theme=info][muted]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-info-container-high, #a6c4e7));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-info-container-high, #000000))}:host(:where(:not([theme]),[theme=default])[muted]) .forge-skip-link{--_skip-link-background:var(--forge-skip-link-background, var(--forge-theme-secondary-container-high, #ffe7a1));--_skip-link-color:var(--forge-skip-link-color, var(--forge-theme-on-secondary-container-high, #000000))}:host([inline]){position:absolute;transform:none}forge-focus-indicator{--forge-focus-indicator-color:var(--_skip-link-focus-indicator-color);--forge-focus-indicator-shape:var(--_skip-link-shape)}@media (prefers-reduced-motion:reduce){:host{--_skip-link-transition-duration:var(--forge-skip-link-transition-duration, 0s)}}',ko=class extends M{constructor(){super();this._target="";this._theme="default";this._muted=!1;this._persistent=!1;this._inline=!1;this._skipUrlChange=!1;this._clickListener=e=>this._handleClick(e);H(this,Xf,jf),this._anchorElement=g(this,pt.selectors.ANCHOR)}static get observedAttributes(){return Object.values(pt.observedAttributes)}attributeChangedCallback(e,a,o){switch(e){case pt.observedAttributes.TARGET:this.target=o;break;case pt.observedAttributes.THEME:this.theme=o;break;case pt.observedAttributes.MUTED:this.muted=p(o);break;case pt.observedAttributes.PERSISTENT:this.persistent=p(o);break;case pt.observedAttributes.INLINE:this.inline=p(o);break;case pt.observedAttributes.SKIP_URL_CHANGE:this.skipUrlChange=p(o);break}}get target(){return this._target}set target(e){this._target!==e&&(this._target=e,this.setAttribute(pt.attributes.TARGET,this._target),this._anchorElement.href=`#${this._target}`)}get theme(){return this._theme}set theme(e){this._theme!==e&&(this._theme=e,this.setAttribute(pt.attributes.THEME,this._theme))}get muted(){return this._muted}set muted(e){this._muted!==e&&(this._muted=e,this.toggleAttribute(pt.attributes.MUTED,this._muted))}get persistent(){return this._persistent}set persistent(e){this._persistent!==e&&(this._persistent=e,this.toggleAttribute(pt.attributes.PERSISTENT,this._persistent))}get inline(){return this._inline}set inline(e){this._inline!==e&&(this._inline=e,this.toggleAttribute(pt.attributes.INLINE,this._inline))}get skipUrlChange(){return this._skipUrlChange}set skipUrlChange(e){if(this._skipUrlChange!==e){if(this._skipUrlChange=e,this.toggleAttribute(pt.attributes.SKIP_URL_CHANGE,this._skipUrlChange),this._skipUrlChange){this._anchorElement.addEventListener("click",this._clickListener);return}this._anchorElement.removeEventListener("click",this._clickListener)}}_handleClick(e){e.preventDefault();let a=document.getElementById(this._target);a==null||a.focus(),a==null||a.scrollIntoView({behavior:"smooth"})}};ko=s([y({name:pt.elementName,dependencies:[Q,r1]})],ko);function Yd(){x(ko)}var Er=class extends M{};Er.formAssociated=!0;var Zf=`${b}slider`,Qf={ARIA_LABEL:"data-aria-label",ARIA_LABEL_START:"data-aria-label-start",ARIA_LABEL_END:"data-aria-label-end",VALUE:"value",VALUE_START:"value-start",VALUE_END:"value-end",LABEL:"label",LABEL_START:"label-start",LABEL_END:"label-end",MIN:"min",MAX:"max",STEP:"step",TICKMARKS:"tickmarks",LABELED:"labeled",RANGE:"range",DISABLED:"disabled",READONLY:"readonly"},Jf={ROOT:".forge-slider",TRACK:".track",HANDLE_CONTAINER:".handle-container",START_INPUT:"input.start",END_INPUT:"input.end",START_HANDLE:".handle.start",START_HANDLE_THUMB:".handle.start .handle-thumb",END_HANDLE:".handle.end",END_HANDLE_THUMB:".handle.end .handle-thumb",START_LABEL:".handle.start .handle-label",START_LABEL_CONTENT:".handle.start .handle-label-content",END_LABEL:".handle.end .handle-label",END_LABEL_CONTENT:".handle.end .handle-label-content",LABEL:".handle-label",INPUT:"input[type=range]"},tx={RANGE:"range",TICKMARKS:"tickmarks",ON_TOP:"on-top",OVERLAPPING:"overlapping",HOVER:"hover",HANDLE:"handle",HANDLE_THUMB:"handle-thumb",HANDLE_START:"start",HANDLE_LABEL:"handle-label",LABEL:"handle-label",LABEL_CONTENT:"handle-label-content"},ex={INPUT:"forge-slider-input",CHANGE:"forge-slider-change",RANGE_INPUT:"forge-slider-range-input",RANGE_CHANGE:"forge-slider-range-change"},ax={START_FRACTION:"--_slider-start-fraction",END_FRACTION:"--_slider-end-fraction",TICK_COUNT:"--_slider-tick-count"},ox={DEFAULT_STEP:1,DEFAULT_VALUE:50,DEFAULT_START_VALUE:33,DEFAULT_END_VALUE:67},E={elementName:Zf,attributes:Qf,selectors:Jf,classes:tx,events:ex,numbers:ox,cssCustomProperties:ax};function Kd(r){let t=document.createElement("input");return t.type="range",t.id="start",t.min=String(r.min),t.max=String(r.max),t.step=String(r.step),t.valueAsNumber=r.valueStart,t.disabled=r.disabled,t.classList.add("start"),r.hasAttribute(E.attributes.ARIA_LABEL_START)&&t.setAttribute("aria-label",r.getAttribute(E.attributes.ARIA_LABEL_START)),t.setAttribute("aria-valuetext",String(r.valueStart)),t}function qd(r){let t=document.createElement("div");t.classList.add(E.classes.HANDLE,E.classes.HANDLE_START),t.setAttribute("part","handle-start");let e=document.createElement("forge-state-layer");e.target="start",t.appendChild(e);let a=document.createElement("forge-focus-indicator");a.target="start",t.appendChild(a);let o=document.createElement("div");o.classList.add(E.classes.HANDLE_THUMB),o.setAttribute("part","handle-start-thumb"),t.appendChild(o);let n=document.createElement("div");n.classList.add(E.classes.HANDLE_LABEL),n.setAttribute("part","handle-start-label"),t.appendChild(n);let i=document.createElement("span");return i.textContent=r,i.classList.add(E.classes.LABEL_CONTENT),i.setAttribute("part","handle-start-label-content"),n.appendChild(i),t}function r5(r){let t=document.createElement("div");t.classList.add(E.classes.LABEL);let e=document.createElement("span");return e.textContent=r,e.classList.add(E.classes.LABEL_CONTENT),t.appendChild(e),t}var ol=class extends I{constructor(t){super(t),this._rootElement=g(t,E.selectors.ROOT),this._trackElement=g(t,E.selectors.TRACK),this._handleContainerElement=g(t,E.selectors.HANDLE_CONTAINER),this._endInputElement=g(t,E.selectors.END_INPUT),this._endHandleElement=g(t,E.selectors.END_HANDLE),this._endHandleThumbElement=g(t,E.selectors.END_HANDLE_THUMB),this._endLabelContentElement=g(t,E.selectors.END_LABEL_CONTENT)}addInputListener(t,e){this._getInputs().forEach(o=>o.addEventListener(t,e))}update({startFraction:t,endFraction:e,tickCount:a}){this._rootElement.style.setProperty(E.cssCustomProperties.START_FRACTION,String(t)),this._rootElement.style.setProperty(E.cssCustomProperties.END_FRACTION,String(e)),this._rootElement.style.setProperty(E.cssCustomProperties.TICK_COUNT,String(a))}updateLabels(t,e){var a;this._startLabelContentElement&&(this._startLabelContentElement.textContent=t),this._endLabelContentElement&&(this._endLabelContentElement.textContent=e),(a=this._startInputElement)==null||a.setAttribute("aria-valuetext",t),this._endInputElement.setAttribute("aria-valuetext",e)}updateHandleLayering(){let t=this._endInputElement.matches(":focus");this._startHandleElement&&_2(this._startHandleElement,!t,E.classes.ON_TOP),_2(this._endHandleElement,t,E.classes.ON_TOP)}tryHoverStartHandle(t){var e,a,o;this._startHandleThumbElement&&Ql(t,this._startHandleThumbElement)?(this._handleContainerElement.classList.add(E.classes.HOVER),(e=this._startHandleElement)==null||e.classList.add(E.classes.HOVER)):(a=this._startInputElement)!=null&&a.matches(":focus")||(this._handleContainerElement.classList.remove(E.classes.HOVER),(o=this._startHandleElement)==null||o.classList.remove(E.classes.HOVER))}tryHoverEndHandle(t){Ql(t,this._endHandleThumbElement)?(this._handleContainerElement.classList.add(E.classes.HOVER),this._endHandleElement.classList.add(E.classes.HOVER)):this._endInputElement.matches(":focus")||(this._handleContainerElement.classList.remove(E.classes.HOVER),this._endHandleElement.classList.remove(E.classes.HOVER))}tryDetectOverlap(){if(this._startHandleElement){let t=_3(this._startHandleElement,this._endHandleElement);_2(this._endHandleElement,t,E.classes.OVERLAPPING),_2(this._startHandleElement,t,E.classes.OVERLAPPING)}}leaveHandleContainer(){this._handleContainerElement.classList.remove(E.classes.HOVER)}syncInputValues(t,e){if(this._startInputElement&&(this._startInputElement.valueAsNumber=t),this._endInputElement.valueAsNumber=e,this._startInputElement){let a=new FormData;a.append(this._component.nameStart,String(t)),a.append(this._component.nameEnd,String(e)),this._component[a1].setFormValue(a)}else this._component[a1].setFormValue(String(e))}setRange(t){var e,a;if(this._rootElement.classList.toggle(E.classes.RANGE,t),t){this._startInputElement=Kd(this._component),this._rootElement.insertAdjacentElement("afterbegin",this._startInputElement),this._endInputElement.valueAsNumber=this._component.valueEnd;let o=this._startInputElement.value;this._startHandleElement=qd(o),this._handleContainerElement.insertAdjacentElement("afterbegin",this._startHandleElement),this._startHandleThumbElement=g(this._component,E.selectors.START_HANDLE_THUMB),this._startLabelContentElement=g(this._component,E.selectors.START_LABEL_CONTENT)}else(e=this._startInputElement)==null||e.remove(),(a=this._startHandleElement)==null||a.remove(),this._startInputElement=void 0,this._startHandleElement=void 0,this._startHandleThumbElement=void 0,this._startLabelContentElement=void 0}setTickmarks(t){this._trackElement.classList.toggle(E.classes.TICKMARKS,t)}setStep(t){this._getInputs().forEach(a=>a.step=String(t))}setMin(t){this._getInputs().forEach(a=>a.min=String(t))}setMax(t){this._getInputs().forEach(a=>a.max=String(t))}setDisabled(t){this._getInputs().forEach(o=>o.disabled=t),this._rootElement.querySelectorAll(M1.elementName).forEach(o=>o.disabled=t)}setReadonly(t){this._getInputs().forEach(a=>a.readOnly=t)}toggleLabels(t){var a;if(this._rootElement.querySelectorAll(E.selectors.LABEL).forEach(o=>o.remove()),this._endLabelContentElement=void 0,this._startLabelContentElement=void 0,t){let o=r5(this._endInputElement.value);if(this._endHandleElement.insertAdjacentElement("beforeend",o),this._endLabelContentElement=g(this._component,E.selectors.END_LABEL_CONTENT),this._startInputElement){let n=r5(this._startInputElement.value);(a=this._startHandleElement)==null||a.insertAdjacentElement("beforeend",n),this._startLabelContentElement=g(this._component,E.selectors.START_LABEL_CONTENT)}}}setStartAriaLabel(t){this._startInputElement&&K(this._startInputElement,!!t,"aria-label",t)}setEndAriaLabel(t){K(this._endInputElement,!!t,"aria-label",t)}_getInputs(){let t=[];return this._startInputElement&&t.push(this._startInputElement),[...t,this._endInputElement]}};var rl=class{constructor(t){this._adapter=t;this._value=E.numbers.DEFAULT_VALUE;this._valueStart=E.numbers.DEFAULT_START_VALUE;this._valueEnd=E.numbers.DEFAULT_END_VALUE;this._min=0;this._max=100;this._step=E.numbers.DEFAULT_STEP;this._tickmarks=!1;this._labeled=!0;this._range=!1;this._disabled=!1;this._readonly=!1;this._pointerEnterListener=e=>this._handlePointerEnter(e),this._pointerMoveListener=e=>this._handlePointerMove(e),this._pointerLeaveListener=e=>this._handlePointerLeave(e),this._changeUpdateListener=e=>this._handleInputUpdate(e),this._focusListener=e=>this._handleFocus(e)}initialize(){this._applyInputListeners(),this._update()}_update(){var _,L;let{value:t,valueStart:e,valueEnd:a}=this._clampMinMax(),o=this._step<=0?1:this._step,n=Math.max(this._max-this._min,o),i=this._range?((e!=null?e:this._min)-this._min)/n:0,l=this._range?a:t,h=((l!=null?l:this.min)-this.min)/n,c=n/o;this._adapter.update({startFraction:i,endFraction:h,tickCount:c}),this._adapter.syncInputValues(e,this._range?a:t),this._range&&this._adapter.tryDetectOverlap();let d=(_=this._labelStart)!=null?_:String(e),u=(L=this._labelEnd)!=null?L:String(this._range?a:t);typeof this._labelBuilder=="function"&&(this._range?(d=this._labelBuilder(e,"start"),u=this._labelBuilder(a,"end")):u=this._labelBuilder(t)),this._adapter.updateLabels(d,u)}_clampMinMax(){let t=this._value,e=this._valueStart,a=this._valueEnd;return this._range?(e>this._max?e=this._max:e<this._min&&(e=this._min),a>this._max?a=this._max:a<this._min&&(a=this._min)):t>this._max?t=this._max:this._value<this._min&&(t=this._min),{value:t,valueStart:e,valueEnd:a}}_applyInputListeners(){this._adapter.addInputListener("pointerenter",this._pointerEnterListener),this._adapter.addInputListener("pointermove",this._pointerMoveListener),this._adapter.addInputListener("pointerleave",this._pointerLeaveListener),this._adapter.addInputListener("input",this._changeUpdateListener),this._adapter.addInputListener("change",this._changeUpdateListener),this._adapter.addInputListener("focus",this._focusListener)}_handlePointerEnter(t){this._handlePointerMove(t)}_handlePointerMove({target:t,x:e,y:a}){t.id==="start"?this._adapter.tryHoverStartHandle({x:e,y:a}):this._adapter.tryHoverEndHandle({x:e,y:a})}_handlePointerLeave(t){this._adapter.leaveHandleContainer()}_handleInputUpdate(t){if(t.stopPropagation(),this._disabled||this._readonly){this._adapter.syncInputValues(this._valueStart,this._range?this._valueEnd:this._value);return}let e=t.target;if(this._range){let l=e.id==="start";if(l?this._valueStart=e.valueAsNumber:this._valueEnd=e.valueAsNumber,this._canClamp()){l?this._valueStart=this._valueEnd:this._valueEnd=this._valueStart,this._adapter.syncInputValues(this._valueStart,this._valueEnd),this._update();return}}else this._value=e.valueAsNumber;let a={default:{change:E.events.CHANGE,input:E.events.INPUT},range:{change:E.events.RANGE_CHANGE,input:E.events.RANGE_INPUT}},o=this._range?a.range[t.type]:a.default[t.type],n=this._range?{valueStart:this._valueStart,valueEnd:this._valueEnd}:{value:this._value},i=new CustomEvent(o,{detail:n,bubbles:!0});this._adapter.dispatchHostEvent(i),this._update()}_handleFocus(t){this._adapter.updateHandleLayering()}_canClamp(){return this._valueStart>this._valueEnd||this._valueEnd<this._valueStart}get value(){return this._value}set value(t){this._value!==t&&(this._value=t,this._update())}get valueStart(){return this._valueStart}set valueStart(t){this._valueStart!==t&&(this._valueStart=t,this._update())}get valueEnd(){return this._valueEnd}set valueEnd(t){this._valueEnd!==t&&(this._valueEnd=t,this._update())}get label(){return this.labelEnd}set label(t){this.labelEnd=t}get labelStart(){return this._labelStart}set labelStart(t){this._labelStart!==t&&(this._labelStart=t,this._adapter.updateLabels(this._labelStart,this._labelEnd))}get labelEnd(){return this._labelEnd}set labelEnd(t){this._labelEnd!==t&&(this._labelEnd=t,this._adapter.updateLabels(this._labelStart,this._labelEnd))}get labelBuilder(){return this._labelBuilder}set labelBuilder(t){this._labelBuilder=t,this._update()}get min(){return this._min}set min(t){this._min!==t&&(this._min=t,this._adapter.setMin(this._min),this._update(),this._adapter.setHostAttribute(E.attributes.MIN,String(this._min)))}get max(){return this._max}set max(t){this._max!==t&&(this._max=t,this._adapter.setMax(this._max),this._update(),this._adapter.setHostAttribute(E.attributes.MAX,String(this._max)))}get step(){return this._step}set step(t){this._step!==t&&(this._step=t,this._adapter.setStep(this._step),this._update(),this._adapter.setHostAttribute(E.attributes.STEP,String(this._step)))}get tickmarks(){return this._tickmarks}set tickmarks(t){this._tickmarks!==t&&(this._tickmarks=t,this._adapter.setTickmarks(this._tickmarks),this._adapter.toggleHostAttribute(E.attributes.TICKMARKS,this._tickmarks))}get labeled(){return this._labeled}set labeled(t){this._labeled!==t&&(this._labeled=t,this._adapter.toggleLabels(this._labeled),this._update(),this._adapter.toggleHostAttribute(E.attributes.LABELED,this._labeled))}get range(){return this._range}set range(t){this._range!==t&&(this._range=t,this._adapter.setRange(this._range),this._range&&this._applyInputListeners(),this._update(),this._adapter.toggleHostAttribute(E.attributes.RANGE,this._range))}get disabled(){return this._disabled}set disabled(t){this._disabled!==t&&(this._disabled=t,this._adapter.setDisabled(t),this._adapter.toggleHostAttribute(E.attributes.DISABLED,this._disabled))}get readonly(){return this._readonly}set readonly(t){this._readonly!==t&&(this._readonly=t,this._adapter.setReadonly(t),this._adapter.toggleHostAttribute(E.attributes.READONLY,this._readonly))}set ariaLabel(t){this.ariaLabelEnd=t}set ariaLabelStart(t){this._adapter.setStartAriaLabel(t)}set ariaLabelEnd(t){this._adapter.setEndAriaLabel(t)}};var rx='<template><div part="root" class="forge-slider"><input type="range" class="end" id="end" min="0" max="100" step="1" aria-valuetext="0"><div class="track" part="track"></div><div class="handle-container-padded"><div class="handle-container-block"><div class="handle-container"><div class="handle end" part="handle-end"><forge-state-layer exportparts="surface:state-layer" target="end"></forge-state-layer><forge-focus-indicator part="focus-indicator" target="end"></forge-focus-indicator><div class="handle-thumb" part="handle-end-thumb"></div><div class="handle-label" part="handle-end-label"><span class="handle-label-content" part="handle-end-label-content"></span></div></div></div></div></div></div></template>',nx=':host{display:inline-flex;vertical-align:middle;min-inline-size:100%}:host([hidden]){display:none}.forge-slider{--_slider-start-fraction:0;--_slider-end-fraction:0;--_slider-tick-count:100;--_slider-track-height:var(--forge-slider-track-height, 4px);--_slider-active-track-color:var(--forge-slider-active-track-color, var(--forge-theme-primary, #3f51b5));--_slider-active-track-height:var(--forge-slider-active-track-height, var(--_slider-track-height));--_slider-active-track-shape:var(--forge-slider-active-track-shape, calc(var(--forge-shape-full, 9999px) * var(--forge-shape-factor, 1)));--_slider-disabled-active-track-color:var(--forge-slider-disabled-active-track-color, var(--forge-theme-surface-container-high, #9e9e9e));--_slider-disabled-active-track-opacity:var(--forge-slider-disabled-active-track-opacity, 0.38);--_slider-disabled-handle-color:var(--forge-slider-disabled-handle-color, var(--forge-theme-surface-container-high, #9e9e9e));--_slider-disabled-inactive-track-color:var(--forge-slider-disabled-inactive-track-color, var(--forge-theme-surface-container-high, #9e9e9e));--_slider-disabled-inactive-track-opacity:var(--forge-slider-disabled-inactive-track-opacity, 0.12);--_slider-focus-handle-color:var(--forge-slider-focus-handle-color, var(--forge-theme-primary, #3f51b5));--_slider-handle-color:var(--forge-slider-handle-color, var(--forge-theme-primary, #3f51b5));--_slider-handle-height:var(--forge-slider-handle-height, 20px);--_slider-handle-shape:var(--forge-slider-handle-shape, calc(var(--forge-shape-round, 50%) * var(--forge-shape-factor, 1)));--_slider-handle-width:var(--forge-slider-handle-width, 20px);--_slider-hover-handle-color:var(--forge-slider-hover-handle-color, var(--forge-theme-primary, #3f51b5));--_slider-inactive-track-color:var(--forge-slider-inactive-track-color, var(--forge-theme-primary-container, #d1d5ed));--_slider-inactive-track-height:var(--forge-slider-inactive-track-height, var(--_slider-track-height));--_slider-inactive-track-shape:var(--forge-slider-inactive-track-shape, calc(var(--forge-shape-full, 9999px) * var(--forge-shape-factor, 1)));--_slider-label-container-shape:var(--forge-slider-label-container-shape, calc(var(--forge-shape-full, 9999px) * var(--forge-shape-factor, 1)));--_slider-label-container-color:var(--forge-slider-label-container-color, var(--forge-theme-primary, #3f51b5));--_slider-label-container-height:var(--forge-slider-label-container-height, 28px);--_slider-label-text-color:var(--forge-slider-label-text-color, var(--forge-theme-on-primary, #ffffff));--_slider-pressed-handle-color:var(--forge-slider-pressed-handle-color, var(--forge-theme-primary, #3f51b5));--_slider-state-layer-size:var(--forge-slider-state-layer-size, 40px);--_slider-with-overlap-handle-outline-color:var(--forge-slider-with-overlap-handle-outline-color, var(--forge-theme-on-primary, #ffffff));--_slider-with-overlap-handle-outline-width:var(--forge-slider-with-overlap-handle-outline-width, 1px);--_slider-with-tick-marks-active-container-color:var(--forge-slider-with-tick-marks-active-container-color, var(--forge-theme-on-primary, #ffffff));--_slider-with-tick-marks-container-size:var(--forge-slider-with-tick-marks-container-size, 2px);--_slider-with-tick-marks-disabled-active-container-color:var(--forge-slider-with-tick-marks-disabled-active-container-color, var(--forge-theme-on-surface-container-high, #000000));--_slider-with-tick-marks-disabled-inactive-container-color:var(--forge-slider-with-tick-marks-disabled-inactive-container-color, var(--forge-theme-on-surface-container-high, #000000));--_slider-with-tick-marks-inactive-container-color:var(--forge-slider-with-tick-marks-inactive-container-color, var(--forge-theme-primary, #3f51b5))}.forge-slider{flex:1;display:flex;align-items:center;position:relative;block-size:var(--_slider-state-layer-size);pointer-events:none;touch-action:none}.forge-slider.range :host-context([dir=rtl]) input.start{clip-path:inset(0 0 0 calc(100% - (var(--_slider-state-layer-size)/ 2 + (100% - var(--_slider-state-layer-size)) * (var(--_slider-start-fraction) + (var(--_slider-end-fraction) - var(--_slider-start-fraction))/ 2))))}.forge-slider.range :host([dir=rtl]) input.start{clip-path:inset(0 0 0 calc(100% - (var(--_slider-state-layer-size)/ 2 + (100% - var(--_slider-state-layer-size)) * (var(--_slider-start-fraction) + (var(--_slider-end-fraction) - var(--_slider-start-fraction))/ 2))))}.forge-slider.range input.start:dir(rtl){clip-path:inset(0 0 0 calc(100% - (var(--_slider-state-layer-size)/ 2 + (100% - var(--_slider-state-layer-size)) * (var(--_slider-start-fraction) + (var(--_slider-end-fraction) - var(--_slider-start-fraction))/ 2))))}.forge-slider.range input.start{clip-path:inset(0 calc(100% - (var(--_slider-state-layer-size)/ 2 + (100% - var(--_slider-state-layer-size)) * (var(--_slider-start-fraction) + (var(--_slider-end-fraction) - var(--_slider-start-fraction))/ 2))) 0 0)}.forge-slider.range input.end{clip-path:inset(0 0 0 calc(var(--_slider-state-layer-size)/ 2 + (100% - var(--_slider-state-layer-size)) * (var(--_slider-start-fraction) + (var(--_slider-end-fraction) - var(--_slider-start-fraction))/ 2)))}.forge-slider.range :host-context([dir=rtl]) input.end{clip-path:inset(0 calc(var(--_slider-state-layer-size)/ 2 + (100% - var(--_slider-state-layer-size)) * (var(--_slider-start-fraction) + (var(--_slider-end-fraction) - var(--_slider-start-fraction))/ 2)) 0 0)}.forge-slider.range :host([dir=rtl]) input.end{clip-path:inset(0 calc(var(--_slider-state-layer-size)/ 2 + (100% - var(--_slider-state-layer-size)) * (var(--_slider-start-fraction) + (var(--_slider-end-fraction) - var(--_slider-start-fraction))/ 2)) 0 0)}.forge-slider.range input.end:dir(rtl){clip-path:inset(0 calc(var(--_slider-state-layer-size)/ 2 + (100% - var(--_slider-state-layer-size)) * (var(--_slider-start-fraction) + (var(--_slider-end-fraction) - var(--_slider-start-fraction))/ 2)) 0 0)}.track{position:absolute;inset:0;display:flex;align-items:center}.track::after,.track::before{content:"";position:absolute;inset-inline-start:calc(var(--_slider-state-layer-size)/ 2 - var(--_slider-with-tick-marks-container-size));inset-inline-end:calc(var(--_slider-state-layer-size)/ 2 - var(--_slider-with-tick-marks-container-size));background-size:calc((100% - var(--_slider-with-tick-marks-container-size) * 2)/ var(--_slider-tick-count)) 100%}.track::before{block-size:var(--_slider-inactive-track-height);border-radius:var(--_slider-inactive-track-shape);background-color:var(--_slider-inactive-track-color)}.track::after{block-size:var(--_slider-active-track-height);border-radius:var(--_slider-active-track-shape);clip-path:inset(0 calc(calc(var(--_slider-with-tick-marks-container-size) * min((1 - var(--_slider-end-fraction)) * 1000000000,1)) + calc(100% - var(--_slider-with-tick-marks-container-size) * 2) * (1 - var(--_slider-end-fraction))) 0 calc(calc(var(--_slider-with-tick-marks-container-size) * min(var(--_slider-start-fraction) * 1000000000,1)) + calc(100% - var(--_slider-with-tick-marks-container-size) * 2) * var(--_slider-start-fraction)));background-color:var(--_slider-active-track-color)}.track.tickmarks::before{background-image:radial-gradient(circle at var(--_slider-with-tick-marks-container-size) center,var(--_slider-with-tick-marks-inactive-container-color) 0,var(--_slider-with-tick-marks-inactive-container-color) calc(var(--_slider-with-tick-marks-container-size)/ 2),transparent calc(var(--_slider-with-tick-marks-container-size)/ 2))}.track.tickmarks::after{background-image:radial-gradient(circle at var(--_slider-with-tick-marks-container-size) center,var(--_slider-with-tick-marks-active-container-color) 0,var(--_slider-with-tick-marks-active-container-color) calc(var(--_slider-with-tick-marks-container-size)/ 2),transparent calc(var(--_slider-with-tick-marks-container-size)/ 2))}.handle-container-block,.handle-container-padded{position:relative;block-size:100%;inline-size:100%}.handle-container-padded{padding-inline:calc(var(--_slider-state-layer-size)/ 2)}.handle-container{position:absolute;inset-block-start:0;inset-block-end:0;inset-inline-start:calc(100% * var(--_slider-start-fraction));inline-size:calc(100% * (var(--_slider-end-fraction) - var(--_slider-start-fraction)))}.handle{position:absolute;block-size:var(--_slider-state-layer-size);inline-size:var(--_slider-state-layer-size);border-radius:var(--_slider-handle-shape);display:grid;place-items:center}.handle.start{inset-inline-start:calc(0px - var(--_slider-state-layer-size)/ 2)}.handle.end{inset-inline-end:calc(0px - var(--_slider-state-layer-size)/ 2)}.handle-thumb{box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12);position:absolute;height:var(--_slider-handle-height);width:var(--_slider-handle-width);border-radius:var(--_slider-handle-shape);background:var(--_slider-handle-color)}.handle-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-label1-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-label1-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-label-font-size-scale, .75)));line-height:var(--forge-typography-label1-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-label-line-height-scale, 1.25)));letter-spacing:var(--forge-typography-label1-letter-spacing, .0357142857em);text-transform:var(--forge-typography-label1-text-transform,inherit);text-decoration:var(--forge-typography-label1-text-decoration,inherit);position:absolute;box-sizing:border-box;display:grid;padding:4px;place-items:center;border-radius:var(--_slider-label-container-shape);color:var(--_slider-label-text-color);font-weight:500;white-space:nowrap;inset-block-end:100%;min-inline-size:var(--_slider-label-container-height);min-block-size:var(--_slider-label-container-height);background:var(--_slider-label-container-color);transition:transform var(--forge-animation-duration-short2, 100ms) var(--forge-animation-easing-standard, cubic-bezier(.2, 0, 0, 1));transform-origin:center bottom;transform:scale(0)}.handle-label::after,.handle-label::before{content:"";position:absolute;display:block;background:inherit}.handle-label::before{inline-size:calc(var(--_slider-label-container-height)/ 2);block-size:calc(var(--_slider-label-container-height)/ 2);bottom:calc(var(--_slider-label-container-height)/ -10);transform:rotate(45deg)}.handle-label::after{inset:0;border-radius:inherit}.handle-label-content{z-index:1}.handle-container.hover .handle-thumb{background:var(--_slider-hover-handle-color)}:host(:not([disabled])) input.end:active~.handle-container-padded .handle.end>.handle-thumb,:host(:not([disabled])) input.start:active~.handle-container-padded .handle.start>.handle-thumb{background:var(--_slider-pressed-handle-color)}:host([disabled]) .handle-thumb{box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12);background:var(--_slider-disabled-handle-color)}:host([disabled]) .handle-label{background:var(--_slider-disabled-handle-color)}:host([disabled]) .track::before{opacity:calc(1 / var(--_slider-disabled-active-track-opacity) * var(--_slider-disabled-inactive-track-opacity));background-color:var(--_slider-disabled-inactive-track-color)}:host([disabled]) .track::after{background-color:var(--_slider-disabled-active-track-color)}:host([disabled]) .track.tickmarks::before{background-image:radial-gradient(circle at var(--_slider-with-tick-marks-container-size) center,var(--_slider-with-tick-marks-disabled-inactive-container-color) 0,var(--_slider-with-tick-marks-disabled-inactive-container-color) calc(var(--_slider-with-tick-marks-container-size)/ 2),transparent calc(var(--_slider-with-tick-marks-container-size)/ 2))}:host([disabled]) .track.tickmarks::after{background-image:radial-gradient(circle at var(--_slider-with-tick-marks-container-size) center,var(--_slider-with-tick-marks-disabled-active-container-color) 0,var(--_slider-with-tick-marks-disabled-active-container-color) calc(var(--_slider-with-tick-marks-container-size)/ 2),transparent calc(var(--_slider-with-tick-marks-container-size)/ 2))}:host([disabled]) input[type=range]{cursor:not-allowed}:host-context([dir=rtl]) .track::after{clip-path:inset(0 calc(calc(var(--_slider-with-tick-marks-container-size) * min(var(--_slider-start-fraction) * 1000000000,1)) + calc(100% - var(--_slider-with-tick-marks-container-size) * 2) * var(--_slider-start-fraction)) 0 calc(calc(var(--_slider-with-tick-marks-container-size) * min((1 - var(--_slider-end-fraction)) * 1000000000,1)) + calc(100% - var(--_slider-with-tick-marks-container-size) * 2) * (1 - var(--_slider-end-fraction))))}:host([dir=rtl]) .track::after{clip-path:inset(0 calc(calc(var(--_slider-with-tick-marks-container-size) * min(var(--_slider-start-fraction) * 1000000000,1)) + calc(100% - var(--_slider-with-tick-marks-container-size) * 2) * var(--_slider-start-fraction)) 0 calc(calc(var(--_slider-with-tick-marks-container-size) * min((1 - var(--_slider-end-fraction)) * 1000000000,1)) + calc(100% - var(--_slider-with-tick-marks-container-size) * 2) * (1 - var(--_slider-end-fraction))))}.track:dir(rtl)::after{clip-path:inset(0 calc(calc(var(--_slider-with-tick-marks-container-size) * min(var(--_slider-start-fraction) * 1000000000,1)) + calc(100% - var(--_slider-with-tick-marks-container-size) * 2) * var(--_slider-start-fraction)) 0 calc(calc(var(--_slider-with-tick-marks-container-size) * min((1 - var(--_slider-end-fraction)) * 1000000000,1)) + calc(100% - var(--_slider-with-tick-marks-container-size) * 2) * (1 - var(--_slider-end-fraction))))}input.end:focus~.handle-container-padded .handle.end>.handle-thumb,input.start:focus~.handle-container-padded .handle.start>.handle-thumb{background:var(--_slider-focus-handle-color)}.on-top.overlapping .handle-label,.on-top.overlapping .handle-label::before,.on-top.overlapping .handle-thumb{border:var(--_slider-with-overlap-handle-outline-color) solid var(--_slider-with-overlap-handle-outline-width)}.handle-container.hover .handle-label,:host(:focus-within) .handle-label,:where(:has(input:active)) .handle-label{transform:scale(1)}input[type=range]{opacity:0;-webkit-tap-highlight-color:transparent;position:absolute;box-sizing:border-box;height:100%;width:100%;margin:0;background:0 0;cursor:pointer;pointer-events:auto;appearance:none}input[type=range]:focus{outline:0}input[type=range]::-webkit-slider-runnable-track{-webkit-appearance:none}input[type=range]::-moz-range-track{appearance:none}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;block-size:var(--_slider-state-layer-size);inline-size:var(--_slider-state-layer-size);transform:scaleX(0);opacity:0;z-index:2}input[type=range]::-moz-range-thumb{appearance:none;block-size:var(--_slider-state-layer-size);inline-size:var(--_slider-state-layer-size);transform:scaleX(0);opacity:0;z-index:2}.on-top{z-index:1}@media (prefers-reduced-motion){.handle-label{transition-duration:0}}forge-focus-indicator{--forge-focus-indicator-shape:50%;--forge-focus-indicator-outward-offset:0px}forge-state-layer{--forge-state-layer-color:var(--_slider-handle-color)}',$d,w2=class extends($d=Er,a1,$d){static get observedAttributes(){return[E.attributes.ARIA_LABEL,E.attributes.ARIA_LABEL_START,E.attributes.ARIA_LABEL_END,E.attributes.VALUE,E.attributes.VALUE_START,E.attributes.VALUE_END,E.attributes.LABEL,E.attributes.LABEL_START,E.attributes.LABEL_END,E.attributes.MAX,E.attributes.MIN,E.attributes.STEP,E.attributes.TICKMARKS,E.attributes.LABELED,E.attributes.RANGE,E.attributes.DISABLED,E.attributes.READONLY]}get form(){return this[a1].form}get labels(){return this[a1].labels}get name(){var t;return(t=this.getAttribute("name"))!=null?t:""}set name(t){K(this,!!t,"name",t!=null?t:"")}get nameStart(){var t;return(t=this.getAttribute("name-start"))!=null?t:this.name}set nameStart(t){K(this,!!t,"name-start",t!=null?t:"")}get nameEnd(){var t;return(t=this.getAttribute("name-end"))!=null?t:this.nameStart}set nameEnd(t){K(this,!!t,"name-end",t!=null?t:"")}constructor(){super(),H(this,rx,nx),this[a1]=this.attachInternals(),this._core=new rl(new ol(this))}connectedCallback(){this._core.initialize()}attributeChangedCallback(t,e,a){switch(t){case E.attributes.ARIA_LABEL:this._core.ariaLabel=a;break;case E.attributes.ARIA_LABEL_START:this._core.ariaLabelStart=a;break;case E.attributes.ARIA_LABEL_END:this._core.ariaLabelEnd=a;break;case E.attributes.VALUE:this.value=W(a);break;case E.attributes.VALUE_START:this.valueStart=W(a);break;case E.attributes.VALUE_END:this.valueEnd=W(a);break;case E.attributes.LABEL:this.label=a;break;case E.attributes.LABEL_START:this.labelStart=a;break;case E.attributes.LABEL_END:this.labelEnd=a;break;case E.attributes.MIN:this.min=W(a);break;case E.attributes.MAX:this.max=W(a);break;case E.attributes.STEP:this.step=W(a);break;case E.attributes.TICKMARKS:this.tickmarks=p(a);break;case E.attributes.LABELED:this.labeled=p(a);break;case E.attributes.RANGE:this.range=p(a);break;case E.attributes.DISABLED:this.disabled=p(a);break;case E.attributes.READONLY:this.readonly=p(a);break}}formResetCallback(){if(this._core.range){let e=this.getAttribute("value-start");this.valueStart=e!==null?Number(e):E.numbers.DEFAULT_START_VALUE;let a=this.getAttribute("value-end");this.valueEnd=a!==null?Number(a):E.numbers.DEFAULT_END_VALUE;return}let t=this.getAttribute("value");this.value=t!==null?Number(t):E.numbers.DEFAULT_VALUE}formStateRestoreCallback(t){if(t&&t[0]instanceof FormData){let e=Array.from(t[0]),[[,a],[,o]]=e;this.valueStart=Number(a),this.valueEnd=Number(o),this.range=!0;return}this.value=Number(t),this.range=!1}formDisabledCallback(t){this.disabled=t}};w2.formAssociated=!0,s([v()],w2.prototype,"value",2),s([v()],w2.prototype,"valueStart",2),s([v()],w2.prototype,"valueEnd",2),s([v()],w2.prototype,"label",2),s([v()],w2.prototype,"labelStart",2),s([v()],w2.prototype,"labelEnd",2),s([v()],w2.prototype,"labelBuilder",2),s([v()],w2.prototype,"min",2),s([v()],w2.prototype,"max",2),s([v()],w2.prototype,"step",2),s([v()],w2.prototype,"tickmarks",2),s([v()],w2.prototype,"labeled",2),s([v()],w2.prototype,"range",2),s([v()],w2.prototype,"disabled",2),s([v()],w2.prototype,"readonly",2),w2=s([y({name:E.elementName,dependencies:[Q,r1]})],w2);var Xd=class extends a2{constructor(t){super(t)}get value(){return this._element.value}set value(t){this._element.value=t}get valueStart(){return this._element.valueStart}set valueStart(t){this._element.valueStart=t}get valueEnd(){return this._element.valueEnd}set valueEnd(t){this._element.valueEnd=t}get disabled(){return this._element.disabled}set disabled(t){this._element.disabled=t}get min(){return this._element.min}set min(t){this._element.min=t}get max(){return this._element.max}set max(t){this._element.max=t}get step(){return this._element.step}get range(){return this._element.range}set range(t){this._element.range=t}get tickmarks(){return this._element.tickmarks}set tickmarks(t){this._element.tickmarks=t}get labeled(){return this._element.labeled}set labeled(t){this._element.labeled=t}get labelBuilder(){return this._element.labelBuilder}set labelBuilder(t){this._element.labelBuilder=t}onInput(t){this._element.addEventListener("forge-slider-input",({detail:e})=>t(e))}onChange(t){this._element.addEventListener("forge-slider-change",({detail:e})=>t(e))}onRangeInput(t){this._element.addEventListener("forge-slider-range-input",({detail:e})=>t(e))}onRangeChange(t){this._element.addEventListener("forge-slider-range-change",({detail:e})=>t(e))}onFocus(t){this._element.addEventListener("focus",e=>t(e))}onBlur(t){this._element.addEventListener("blur",e=>t(e))}_build(){return document.createElement(E.elementName)}};function jd(){x(w2)}var Zd={name:"clock_outline",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 20a8 8 0 008-8 8 8 0 00-8-8 8 8 0 00-8 8 8 8 0 008 8m0-18a10 10 0 0110 10 10 10 0 01-10 10C6.47 22 2 17.5 2 12A10 10 0 0112 2m.5 5v5.25l4.5 2.67-.75 1.23L11 13V7h1.5z"/></svg>'};var Qd={name:"drag_vertical_variant",data:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M11 21H9V3h2v18m4-18h-2v18h2V3z"/></svg>'};var x0=`${b}split-view-panel`,ix={RESIZABLE:"resizable",SIZE:"size",MIN:"min",MAX:"max",OPEN:"open",ACCESSIBLE_LABEL:"accessible-label",DISABLED:"disabled",ALLOW_CLOSE:"allow-close",AUTO_CLOSE:"auto-close",AUTO_CLOSE_THRESHOLD:"auto-close-threshold",ORIENTATION:"orientation"},sx={ROOT:"forge-split-view-panel",GRABBED:"forge-split-view-panel--grabbed",HANDLE:"forge-split-view-panel__handle",ICON:"forge-split-view-panel__icon",CONTENT:"forge-split-view-panel__content",CLOSED:"forge-split-view-panel--closed",CLOSING:"forge-split-view-panel--closing",OPENING:"forge-split-view-panel--opening",DISABLED:"forge-split-view-panel--disabled",OVERLAY:"forge-split-view-panel-overlay"},Oo={ROOT:"root",HANDLE:"handle",ICON:"icon",STATE_LAYER:"state-layer",CONTENT:"content"},lx={ROOT:`#${Oo.ROOT}`,HANDLE:`#${Oo.HANDLE}`,ICON:`#${Oo.ICON}`,STATE_LAYER:`#${Oo.STATE_LAYER}`,CONTENT:`#${Oo.CONTENT}`},vx={WILL_RESIZE:`${x0}-will-resize`,RESIZE_START:`${x0}-resize-start`,RESIZE_END:`${x0}-resize-end`,RESIZE:`${x0}-resize`,DID_OPEN:`${x0}-did-open`,DID_CLOSE:`${x0}-did-close`,WILL_OPEN:`${x0}-will-open`,WILL_CLOSE:`${x0}-will-close`},hx={STATE_LAYER_ACTIVATION_WAIT:200},cx={SIZE:"--forge-split-view-panel-size",CURSOR:"--forge-split-view-panel-cursor"},D={elementName:x0,attributes:ix,classes:sx,ids:Oo,selectors:lx,events:vx,numbers:hx,customCssProperties:cx},Jd=(a=>(a[a.Under=1]="Under",a[a.Active=2]="Active",a[a.Above=3]="Above",a))(Jd||{});function t6(){return{orientation:"horizontal",resizable:"off",arrowKeyHeld:!1,keyboardDelta:0,isAtMin:!1,isAtMax:!1,min:0}}function e6(r,t){let e=r.getContentSize(t.orientation);return t1(w({},t),{currentSize:e,startSize:e,availableSpace:r.getAvailableSpace(t.orientation,t.resizable),siblingSize:r.getSiblingContentSize(),isAtMin:!1,isAtMax:!1})}function a6(r){return t1(w({},r),{arrowKeyHeld:!1,keyboardDelta:0,isAtMin:!1,isAtMax:!1})}function o6(r,t,e){if(e.startPoint===void 0||e.startSize===void 0)return!1;let a=e.currentSize,o=e.orientation==="horizontal"?t.clientX:t.clientY,n=e.startPoint-o;e.resizable==="start"&&(n*=-1);let i=e.startSize-n;e.currentSize=nl(i,e),r.setContentSize(e.currentSize),il(r,e,"pointer"),r.setValuenow(sl(e.currentSize,e));let l=i-e.currentSize+n;return s6(r,l,e),a!==e.currentSize}function r6(r,t,e){if(e.startSize===void 0)return!1;let a=e.currentSize;e.keyboardDelta+=t;let o=e.startSize+e.keyboardDelta;e.currentSize=nl(o,e),r.setContentSize(e.currentSize),il(r,e,"keyboard"),r.setValuenow(sl(e.currentSize,e));let n=o-e.currentSize+e.keyboardDelta*-1;return s6(r,n,e),a!==e.currentSize}function n6(r,t){return r.setContentSize(t.min),t.min}function i6(r,t){let e=r.getAvailableSpace(t.orientation,t.resizable),a=B0(t.max,e);return r.setContentSize(a),a}function s6(r,t,e){if(e.siblingSize!==void 0){let a=e.siblingSize+t;r.setSiblingContentSize(a)}}function nl(r,t){return r=Math.max(r,t.min),r=B0(r,t.max,t.availableSpace),r}function il(r,t,e){if(t.currentSize===void 0)return!1;if(t.currentSize<=t.min)return t.isAtMin||(r.animateStateLayer(e==="pointer"),e==="pointer"&&r.setBodyCursor(t.orientation,{resizable:t.resizable,boundary:"min"}),t.isAtMin=!0),!0;t.isAtMin&&(t.isAtMin=!1);let a=B0(t.max,t.availableSpace);return t.currentSize>=a?(t.isAtMax||(r.animateStateLayer(e==="pointer"),e==="pointer"&&r.setBodyCursor(t.orientation,{resizable:t.resizable,boundary:"max"}),t.isAtMax=!0),!0):(t.isAtMax&&(t.isAtMax=!1),e==="pointer"&&r.setBodyCursor(t.orientation),!1)}function l6(r,t,e){if(t<=e.min)return r.setHandleCursor(e.orientation,{resizable:e.resizable,boundary:"min"}),!0;let a=B0(e.max,e.availableSpace);return t>=a?(r.setHandleCursor(e.orientation,{resizable:e.resizable,boundary:"max"}),!0):(r.setHandleCursor(e.orientation),!1)}function sl(r,t){if(!t.availableSpace&&!t.max)return 100;let e=B0(t.max,t.availableSpace);return tn(r,t.min,e)}function n5(r,t){if(r==="horizontal")switch(t==null?void 0:t.boundary){case"min":return t.resizable==="end"?"e-resize":"w-resize";case"max":return t.resizable==="end"?"w-resize":"e-resize";default:return"col-resize"}else switch(t==null?void 0:t.boundary){case"min":return t.resizable==="end"?"s-resize":"n-resize";case"max":return t.resizable==="end"?"n-resize":"s-resize";default:return"row-resize"}}function v6(r){return r==="horizontal"?"drag_vertical_variant":"drag_handle"}function ll(r){let t=r.resizable;if(t==="off")return;let e=r;do e=t==="end"?e.nextElementSibling:e.previousElementSibling;while(e instanceof H2&&!e.open);if(e instanceof H2)return e}function px(r){var n,i;if(!isNaN(+r))return{amount:+r,unit:"px"};let t=/(^\d*\.?\d*)\s*(px|%$)?/i,e=r.match(t),a=e!=null&&e[1]?+e[1]:-1,o=(i=(n=e==null?void 0:e[2])==null?void 0:n.toLowerCase())!=null?i:"";return{amount:a,unit:o}}function Sa(r,t){let e=px(r);return e.unit==="%"?u3(e.amount,t):e.amount}function h6(){let r=document.createElement("div");return r.classList.add(D.classes.OVERLAY),r.style.position="fixed",r.style.top="0",r.style.left="0",r.style.width="100vw",r.style.height="100vh",r.style.zIndex="9999",r}var vl=class{constructor(t){this._adapter=t;this._size=200;this._min=0;this._accessibleLabel="Split view panel";this._open=!0;this._state=t6();this._isInitialized=!1;this._parentProperties={};this._pointerdownListener=e=>this._onPointerdown(e),this._pointerupListener=e=>this._onPointerup(e),this._pointermoveListener=e=>this._onPointermove(e),this._keydownListener=e=>this._onKeydown(e),this._keyupListener=e=>this._onKeyup(e)}get _orientation(){return this._state.orientation}set _orientation(t){this._state.orientation=t}get _resizable(){return this._state.resizable}set _resizable(t){this._state.resizable=t}get _pixelMin(){return this._state.min}set _pixelMin(t){this._state.min=t}get _pixelMax(){return this._state.max}set _pixelMax(t){this._state.max=t}get _appliedDisabled(){var t,e;return(e=(t=this._disabled)!=null?t:this._parentProperties.disabled)!=null?e:!1}get _appliedAllowClose(){var t,e;return(e=(t=this._allowClose)!=null?t:this._parentProperties.allowClose)!=null?e:!1}get _appliedAutoClose(){var t,e;return(e=(t=this._autoClose)!=null?t:this._parentProperties.autoClose)!=null?e:!1}get _appliedAutoCloseThreshold(){var t,e;return(e=(t=this._autoCloseThreshold)!=null?t:this._parentProperties.autoCloseThreshold)!=null?e:0}initialize(){this._adapter.initialize(),this._adapter.setPointerdownListener(this._pointerdownListener),this._adapter.setKeydownListener(this._keydownListener),this._getParentProperties(),this._applyResizable(),this._applyMin(),this._applyMax(),this._applySize(),this._applyAccessibleLabel(),this._applyOpen(),this._applyDisabled(),this._applyAllowClose(),this._applyAutoClose(),this._applyAutoCloseThreshold(),this._isInitialized=!0}destroy(){this._adapter.tryRemoveOverlay(),this._adapter.removePointerupListener(this._pointerupListener),this._adapter.removePointermoveListener(this._pointermoveListener)}_onPointerdown(t){this._appliedDisabled||!this._allowResize("pointer")||(t.preventDefault(),this._adapter.setPointermoveListener(this._pointermoveListener),this._adapter.setPointerupListener(this._pointerupListener),this._handlePointerdown(t))}_onPointerup(t){t.preventDefault(),this._adapter.removePointermoveListener(this._pointermoveListener),this._adapter.removePointerupListener(this._pointerupListener),this._handlePointerup()}_onPointermove(t){if(!this._appliedDisabled){if(t.preventDefault(),t.buttons===0){this._adapter.removePointermoveListener(this._pointermoveListener),this._adapter.removePointerupListener(this._pointerupListener),this._handlePointerup();return}this._handlePointermove(t)}}_onKeydown(t){this._appliedDisabled||(t.key==="Enter"?this._handleEnterKey(t):t.key==="Home"&&this._allowResize("keyboard")?this._handleHomeKey(t):t.key==="End"&&this._allowResize("keyboard")?this._handleEndKey(t):t4(t)&&this._allowResize("keyboard")&&(this._adapter.setKeyupListener(this._keyupListener),this._handleArrowKey(t)))}_onKeyup(t){t4(t)&&(this._adapter.removeKeyupListener(this._keyupListener),this._handleArrowKeyUp())}_handleEnterKey(t){this._appliedAllowClose&&(t.preventDefault(),this._tryOpenOrClose(!this._open,!1,!0))}_handleHomeKey(t){t.preventDefault();let e=n6(this._adapter,this._state);this._adapter.emitHostEvent(D.events.RESIZE,e),this._tryAutoClose()}_handleEndKey(t){t.preventDefault();let e=i6(this._adapter,this._state);this._adapter.emitHostEvent(D.events.RESIZE,e)}_handleArrowKey(t){let e=0;if(this._orientation==="horizontal")switch(t.key){case"ArrowLeft":e=-1;break;case"ArrowRight":e=1;break;default:return}else switch(t.key){case"ArrowUp":e=-1;break;case"ArrowDown":e=1;break;default:return}t.preventDefault(),this._resizable==="start"&&(e*=-1),t.shiftKey&&(e*=10),this._tryHandleArrowKeyDown(),this._handleArrowKeyHeld(e)}_tryHandleArrowKeyDown(){this._state.arrowKeyHeld||this._startResize(),this._state.arrowKeyHeld=!0}_handleArrowKeyUp(){this._endResize()}_handleArrowKeyHeld(t){r6(this._adapter,t,this._state)&&this._adapter.emitHostEvent(D.events.RESIZE,this._state.currentSize)}_handlePointerdown(t){this._adapter.setGrabbed(!0),this._adapter.focusHandle(),this._startResize(),this._state.startPoint=this._orientation==="horizontal"?t.clientX:t.clientY,il(this._adapter,this._state,"pointer")}_handlePointerup(){this._adapter.setGrabbed(!1),this._endResize()}_handlePointermove(t){o6(this._adapter,t,this._state)&&this._adapter.emitHostEvent(D.events.RESIZE,this._state.currentSize)}_allowResize(t){return this._adapter.emitHostEvent(D.events.WILL_RESIZE,{inputDeviceType:t},!0,!0)}_startResize(){this._state=e6(this._adapter,this._state),this._adapter.emitHostEvent(D.events.RESIZE_START,this._state.startSize)}_endResize(){this._adapter.emitHostEvent(D.events.RESIZE_END,this._state.currentSize),this._adapter.updateParent({accessibility:this._state.startSize!==this._state.currentSize,cursor:!0}),this._state=a6(this._state),this._tryAutoClose()}_tryOpenOrClose(t=!0,e=!1,a=!1){let o=t?D.events.WILL_OPEN:D.events.WILL_CLOSE,n={auto:e,userInitiated:a};this._adapter.emitHostEvent(o,n,!0,!0)&&(this._open=t,this._applyOpen(n))}_tryAutoClose(){let t=this._adapter.getContentSize(this._orientation);this._appliedAutoClose&&t<=this._appliedAutoCloseThreshold&&this._tryOpenOrClose(!1,!0,!1)}_getParentProperties(){let t=this._adapter.getParentProperty("disabled");this._parentProperties.disabled=t,this._applyParentDisabled();let e=this._adapter.getParentProperty("allowClose");this._parentProperties.allowClose=e;let a=this._adapter.getParentProperty("autoClose");this._parentProperties.autoClose=a,this._applyParentAutoClose();let o=this._adapter.getParentProperty("autoCloseThreshold");this._parentProperties.autoCloseThreshold=o,this._applyParentAutoCloseThreshold()}_applyOrientation(){this._adapter.setOrientation(this._orientation)}get resizable(){return this._resizable}set resizable(t){this._resizable!==t&&(this._resizable=t,this._applyResizable())}_applyResizable(){this._adapter.setHostAttribute(D.attributes.RESIZABLE,this._resizable),this._adapter.setResizable(this._resizable)}get size(){return this._size}set size(t){this._size.toString()!==t.toString()&&(this._size=t,this._applySize())}_applySize(){let t=this._adapter.getParentSize(this._orientation),e=Sa(this._size,t);this._adapter.setHostAttribute(D.attributes.SIZE,this._size.toString()),this._adapter.setContentSize(e),window.requestAnimationFrame(()=>{let a=this._adapter.getAvailableSpace(this._orientation,this._resizable),o=B0(this._pixelMax,a),n=tn(e,this._pixelMin,o);this._adapter.setValuenow(n),this._adapter.updateParent({cursor:!0})})}get min(){return this._min}set min(t){this._min.toString()!==t.toString()&&(this._min=t,this._applyMin())}_applyMin(){this._adapter.setHostAttribute(D.attributes.MIN,this._min.toString());let t=this._adapter.getParentSize(this._orientation);if(this._pixelMin=Sa(this._min,t),this._resizable==="off")return;let e=this._adapter.getContentSize(this._orientation);e<this._pixelMin&&this.setContentSize(e)}get max(){return this._max}set max(t){var e;((e=this._max)==null?void 0:e.toString())!==(t==null?void 0:t.toString())&&(this._max=t,this._applyMax())}_applyMax(){var a;if(this._adapter.toggleHostAttribute(D.attributes.MAX,this._max!==void 0,(a=this._max)==null?void 0:a.toString()),this._max===void 0){this._pixelMax=void 0;return}let t=this._adapter.getParentSize(this._orientation);if(this._pixelMax=Sa(this._max,t),this._resizable==="off")return;let e=this._adapter.getContentSize(this._orientation);e>this._pixelMax&&this.setContentSize(e)}get accessibleLabel(){return this._accessibleLabel}set accessibleLabel(t){this._accessibleLabel!==t&&(this._accessibleLabel=t,this._applyAccessibleLabel())}_applyAccessibleLabel(){this._adapter.setHostAttribute(D.attributes.ACCESSIBLE_LABEL,this._accessibleLabel),this._adapter.setAccessibleLabel(this._accessibleLabel)}get open(){return this._open}set open(t){if(this._open!==t){if(this._isInitialized){this._tryOpenOrClose(t,!1,!1);return}this._open=t;let e=this._isInitialized?{auto:!1,userInitiated:!1}:void 0;this._applyOpen(e)}}_applyOpen(t){this._adapter.setHostAttribute(D.attributes.OPEN,this._open.toString()),this._adapter.setOpen(this._open,this._isInitialized,t)}get disabled(){return this._disabled}set disabled(t){this._disabled!==t&&(this._disabled=t,this._applyDisabled())}_applyDisabled(){var t;this._adapter.toggleHostAttribute(D.attributes.DISABLED,(t=this._disabled)!=null?t:!1),this._adapter.setDisabled(this._appliedDisabled)}_applyParentDisabled(){this._isInitialized&&!k(this._disabled)&&this._adapter.setDisabled(this._appliedDisabled)}get allowClose(){return this._allowClose}set allowClose(t){this._allowClose!==t&&(this._allowClose=t,this._applyAllowClose())}_applyAllowClose(){var t;this._adapter.toggleHostAttribute(D.attributes.ALLOW_CLOSE,(t=this._allowClose)!=null?t:!1)}get autoClose(){return this._autoClose}set autoClose(t){this._autoClose!==t&&(this._autoClose=t,this._applyAutoClose())}_applyAutoClose(){var t;this._adapter.toggleHostAttribute(D.attributes.AUTO_CLOSE,(t=this._autoClose)!=null?t:!1),this._isInitialized&&this._tryAutoClose()}_applyParentAutoClose(){this._isInitialized&&!k(this._autoClose)&&this._tryAutoClose()}get autoCloseThreshold(){return this._autoCloseThreshold}set autoCloseThreshold(t){this._autoCloseThreshold!==t&&(this._autoCloseThreshold=t,this._applyAutoCloseThreshold())}_applyAutoCloseThreshold(){var t;this._adapter.toggleHostAttribute(D.attributes.AUTO_CLOSE_THRESHOLD,k(this._autoCloseThreshold),(t=this.autoCloseThreshold)==null?void 0:t.toString()),this._isInitialized&&this._tryAutoClose()}_applyParentAutoCloseThreshold(){this._isInitialized&&!k(this._autoCloseThreshold)&&this._tryAutoClose()}getContentSize(){return this._adapter.getContentSize(this._orientation)}getCollapsibleSize(){let t=this._adapter.getParentSize(this._orientation),e=Sa(this._min,t);return this._adapter.getContentSize(this._orientation)-e}setContentSize(t){if(this._resizable==="off")return;let e=nl(t,this._state);this._adapter.setContentSize(e),this._isInitialized&&this._adapter.emitHostEvent(D.events.RESIZE,e)}update(t){if(t.orientation&&(this._orientation=t.orientation,this._applyOrientation()),t.properties&&(k(t.properties.disabled)&&this._parentProperties.disabled!==t.properties.disabled&&(this._parentProperties.disabled=t.properties.disabled,this._applyDisabled()),k(t.properties.allowClose)&&(this._parentProperties.allowClose=t.properties.allowClose),k(t.properties.autoClose)&&this._parentProperties.autoClose!==t.properties.autoClose&&(this._parentProperties.autoClose=t.properties.autoClose,k(this._autoClose)||this._applyAutoClose()),k(t.properties.autoCloseThreshold)&&this._parentProperties.autoCloseThreshold!==t.properties.autoCloseThreshold&&(this._parentProperties.autoCloseThreshold=t.properties.autoCloseThreshold,k(this._autoCloseThreshold)||this._applyAutoCloseThreshold())),t.size&&this.open){let o=this._adapter.getParentSize(this._orientation);this._pixelMin=Sa(this._min,o),this._pixelMax=k(this._max)?Sa(this._max,o):void 0,this.setContentSize(this._adapter.getContentSize(this._orientation))}if(this._resizable==="off")return;let e=this._adapter.getContentSize(this._orientation),a=this._adapter.getAvailableSpace(this._orientation,this._resizable);if(t.accessibility&&this.open){let o=sl(e,t1(w({},this._state),{availableSpace:a}));this._adapter.setValuenow(o)}t.cursor&&l6(this._adapter,e,t1(w({},this._state),{availableSpace:a}))}};var dx=`${b}split-view`,mx={ORIENTATION:"orientation",DISABLED:"disabled",ALLOW_CLOSE:"allow-close",AUTO_CLOSE:"auto-close",AUTO_CLOSE_THRESHOLD:"auto-close-threshold"},gx={ROOT:"forge-split-view"},c6={ROOT:"root"},wx={ROOT:`#${c6.ROOT}`,PANEL:D.elementName},ux={RESIZE_THROTTLE_THRESHOLD:200},_x={ANIMATING_LAYER:"--forge-split-view-animating-layer"},t2={elementName:dx,attributes:mx,classes:gx,ids:c6,selectors:wx,numbers:ux,customCssProperties:_x};var hl=class extends I{constructor(t){super(t),this._root=g(t,D.selectors.ROOT),this._handle=g(t,D.selectors.HANDLE),this._icon=g(t,D.selectors.ICON),this._stateLayer=g(t,D.selectors.STATE_LAYER),this._content=g(t,D.selectors.CONTENT)}initialize(){let t=this._component.parentElement;(t==null?void 0:t.tagName.toLowerCase())===t2.elementName&&(this._parent=t)}tryRemoveOverlay(){var t;(t=this._overlay)==null||t.remove(),this._overlay=void 0}setPointerdownListener(t){this._handle.addEventListener("pointerdown",t)}setPointerupListener(t){document.addEventListener("pointerup",t)}removePointerupListener(t){document.removeEventListener("pointerup",t)}setPointermoveListener(t){document.addEventListener("pointermove",t)}removePointermoveListener(t){document.removeEventListener("pointermove",t)}setKeydownListener(t){this._handle.addEventListener("keydown",t)}setKeyupListener(t){this._handle.addEventListener("keyup",t)}removeKeyupListener(t){this._handle.removeEventListener("keyup",t)}getParentProperty(t){var e;return(e=this._parent)==null?void 0:e[t]}setAccessibleLabel(t){this._handle.setAttribute("aria-label",t)}setDisabled(t){this._root.classList.toggle(D.classes.DISABLED,t),this._handle&&(this._handle.setAttribute("tabindex",t?"-1":"0"),K(this._handle,t,"aria-disabled","true"))}setResizable(t){this._root.setAttribute(D.attributes.RESIZABLE,t.toString()),K(this._handle,t!=="off","aria-valuemin","0"),K(this._handle,t!=="off","aria-valuemax","100"),t!=="off"&&(this._handle.remove(),t==="end"?this._root.append(this._handle):this._root.prepend(this._handle))}setOrientation(t){this._root.setAttribute(D.attributes.ORIENTATION,t),this._handle.setAttribute("aria-orientation",t==="horizontal"?"vertical":"horizontal"),this._icon.setAttribute("name",v6(t))}setOpen(t,e=!0,a){var n,i;let o=()=>{var l,h;t||this._root.classList.add(D.classes.CLOSED),a&&this.emitHostEvent(t?D.events.DID_OPEN:D.events.DID_CLOSE,a),(l=this._parent)==null||l.unlayerSlottedPanels(),(h=this._parent)==null||h.update({accessibility:!0,cursor:!0})};if(t&&this._root.classList.contains(D.classes.CLOSED)){if(this._root.classList.remove(D.classes.CLOSED),!e){o();return}(n=this._parent)==null||n.layerSlottedPanels(this._component),Rt(this._root,D.classes.OPENING,!0).then(()=>{o()})}else if(!t&&!this._root.classList.contains(D.classes.CLOSED)){if(!e){o();return}(i=this._parent)==null||i.layerSlottedPanels(this._component),Rt(this._root,D.classes.CLOSING,!0).then(()=>{o()})}}setGrabbed(t){var e;this._root.classList.toggle(D.classes.GRABBED,t),this._handle.setAttribute("aria-grabbed",t.toString()),t?(this._overlay||(this._overlay=h6()),document.body.append(this._overlay)):(e=this._overlay)==null||e.remove()}setHandleCursor(t,e){t?this._root.style.setProperty(D.customCssProperties.CURSOR,n5(t,e)):this._root.style.removeProperty(D.customCssProperties.CURSOR)}setBodyCursor(t,e){var a;(a=this._overlay)==null||a.style.setProperty("cursor",n5(t,e))}getContentSize(t){return t==="horizontal"?this._content.clientWidth:this._content.clientHeight}setContentSize(t){this._component.style.setProperty(D.customCssProperties.SIZE,`${t}px`)}setValuenow(t){this._handle.setAttribute("aria-valuenow",t.toFixed(2))}focusHandle(){this._handle.focus()}getAvailableSpace(t,e){if(e==="off")return-1;let a=ll(this._component);return a?a.getCollapsibleSize()+this.getContentSize(t):this.getParentSize(t)}getSiblingContentSize(){var e;let t=ll(this._component);return(e=t==null?void 0:t.getContentSize())!=null?e:0}setSiblingContentSize(t){let e=ll(this._component);e==null||e.setContentSize(t)}animateStateLayer(t){t?window.setTimeout(()=>{this._stateLayer.playAnimation()},D.numbers.STATE_LAYER_ACTIVATION_WAIT):this._stateLayer.playAnimation()}getParentSize(t){var a,o;let e=t==="horizontal"?(a=this._parent)==null?void 0:a.clientWidth:(o=this._parent)==null?void 0:o.clientHeight;return e!=null?e:0}updateParent(t){var e;(e=this._parent)==null||e.update(t)}};var fx='<template><div class="forge-split-view-panel" id="root" part="root"><div class="forge-split-view-panel__handle" id="handle" part="handle" role="separator" aria-controls="content" aria-grabbed="false" tabindex="0"><forge-icon class="forge-split-view-panel__icon" id="icon" part="icon"></forge-icon><forge-state-layer target="handle" id="state-layer" exportparts="surface:state-layer"></forge-state-layer><forge-focus-indicator inward target="handle" part="focus-indicator"></forge-focus-indicator></div><div class="forge-split-view-panel__content" id="content" part="content" role="group"><slot></slot></div></div></template>',xx=".forge-split-view-panel{display:flex;width:100%;height:100%;overflow:hidden}.forge-split-view-panel__handle{color:var(--forge-theme-text-medium,rgba(0,0,0,.6));background-color:var(--forge-theme-outline,#e0e0e0);position:relative;display:flex;flex-shrink:0;justify-content:center;align-items:center;outline:0}.forge-split-view-panel__content{flex:1;overflow:hidden}.forge-split-view-panel--closed{display:none}.forge-split-view-panel--disabled #handle{pointer-events:none}.forge-split-view-panel--disabled .forge-split-view-panel__icon{display:none}.forge-split-view-panel[orientation=horizontal]{min-width:var(--forge-split-view-handle-width,8px);width:calc(var(--forge-split-view-panel-size,unset) + var(--forge-split-view-handle-width,8px));flex-direction:row}.forge-split-view-panel[orientation=horizontal] .forge-split-view-panel__handle{width:var(--forge-split-view-handle-width,8px);cursor:var(--forge-split-view-panel-cursor)}.forge-split-view-panel[orientation=horizontal].forge-split-view-panel--closing[resizable=end]{position:absolute;top:0;left:0;animation-name:udvzwcb;animation-duration:var(--forge-animation-duration-medium2, 300ms);animation-timing-function:var(--forge-animation-easing-standard,cubic-bezier(0.2,0,0,1))}@keyframes udvzwcb{from{transform:none}to{transform:translateX(-100%)}}.forge-split-view-panel[orientation=horizontal].forge-split-view-panel--closing[resizable=start]{position:absolute;top:0;right:0;animation-name:udvzwcy;animation-duration:var(--forge-animation-duration-medium2, 300ms);animation-timing-function:var(--forge-animation-easing-standard,cubic-bezier(0.2,0,0,1))}@keyframes udvzwcy{from{transform:none}to{transform:translateX(100%)}}.forge-split-view-panel[orientation=horizontal].forge-split-view-panel--opening[resizable=end]{position:absolute;top:0;left:0;animation-name:udvzwdl;animation-duration:var(--forge-animation-duration-medium2, 300ms);animation-timing-function:var(--forge-animation-easing-standard,cubic-bezier(0.2,0,0,1));animation-direction:reverse}@keyframes udvzwdl{from{transform:none}to{transform:translateX(-100%)}}.forge-split-view-panel[orientation=horizontal].forge-split-view-panel--opening[resizable=start]{position:absolute;top:0;right:0;animation-name:udvzwdu;animation-duration:var(--forge-animation-duration-medium2, 300ms);animation-timing-function:var(--forge-animation-easing-standard,cubic-bezier(0.2,0,0,1));animation-direction:reverse}@keyframes udvzwdu{from{transform:none}to{transform:translateX(100%)}}.forge-split-view-panel[orientation=vertical]{min-height:var(--forge-split-view-handle-width,8px);height:calc(var(--forge-split-view-panel-size,unset) + var(--forge-split-view-handle-width,8px));flex-direction:column}.forge-split-view-panel[orientation=vertical] .forge-split-view-panel__handle{height:var(--forge-split-view-handle-width,8px);cursor:var(--forge-split-view-panel-cursor)}.forge-split-view-panel[orientation=vertical].forge-split-view-panel--closing[resizable=end]{position:absolute;top:0;left:0;animation-name:udvzwej;animation-duration:var(--forge-animation-duration-medium2, 300ms);animation-timing-function:var(--forge-animation-easing-standard,cubic-bezier(0.2,0,0,1))}@keyframes udvzwej{from{transform:none}to{transform:translateY(-100%)}}.forge-split-view-panel[orientation=vertical].forge-split-view-panel--closing[resizable=start]{position:absolute;bottom:0;left:0;animation-name:udvzwfg;animation-duration:var(--forge-animation-duration-medium2, 300ms);animation-timing-function:var(--forge-animation-easing-standard,cubic-bezier(0.2,0,0,1))}@keyframes udvzwfg{from{transform:none}to{transform:translateY(100%)}}.forge-split-view-panel[orientation=vertical].forge-split-view-panel--opening[resizable=end]{position:absolute;top:0;left:0;animation-name:udvzwfh;animation-duration:var(--forge-animation-duration-medium2, 300ms);animation-timing-function:var(--forge-animation-easing-standard,cubic-bezier(0.2,0,0,1));animation-direction:reverse}@keyframes udvzwfh{from{transform:none}to{transform:translateY(-100%)}}.forge-split-view-panel[orientation=vertical].forge-split-view-panel--opening[resizable=start]{position:absolute;bottom:0;left:0;animation-name:udvzwfx;animation-duration:var(--forge-animation-duration-medium2, 300ms);animation-timing-function:var(--forge-animation-easing-standard,cubic-bezier(0.2,0,0,1));animation-direction:reverse}@keyframes udvzwfx{from{transform:none}to{transform:translateY(100%)}}:host{z-index:var(--forge-split-view-animating-layer)!important;display:block;position:relative;height:100%;width:100%;flex:0}:host([hidden]){display:none}:host(:not([resizable=start],[resizable=end])){flex:1}:host(:not([resizable=start],[resizable=end])) .forge-split-view-panel{width:100%;height:100%;min-width:0;min-height:0}:host(:not([resizable=start],[resizable=end])) .forge-split-view-panel__handle{display:none}forge-focus-indicator{--forge-focus-indicator-active-width:2px}",H2=class extends M{static get observedAttributes(){return[D.attributes.RESIZABLE,D.attributes.SIZE,D.attributes.MIN,D.attributes.MAX,D.attributes.ACCESSIBLE_LABEL,D.attributes.OPEN,D.attributes.DISABLED,D.attributes.ALLOW_CLOSE,D.attributes.AUTO_CLOSE,D.attributes.AUTO_CLOSE_THRESHOLD]}constructor(){super(),q.define([Qd,J5]),H(this,fx,xx),this._core=new vl(new hl(this))}connectedCallback(){this._core.initialize()}disconnectedCallback(){this._core.destroy()}attributeChangedCallback(t,e,a){switch(t){case D.attributes.RESIZABLE:this.resizable=a;break;case D.attributes.SIZE:this.size=a;break;case D.attributes.MIN:this.min=a;break;case D.attributes.MAX:a?this.max=a:this.max=void 0;break;case D.attributes.ACCESSIBLE_LABEL:this.accessibleLabel=a;break;case D.attributes.OPEN:this.open=p(a);break;case D.attributes.DISABLED:this.hasAttribute(t)?this.disabled=p(a):this.disabled=void 0;break;case D.attributes.ALLOW_CLOSE:this.hasAttribute(t)?this.allowClose=p(a):this.allowClose=void 0;break;case D.attributes.AUTO_CLOSE:this.hasAttribute(t)?this.autoClose=p(a):this.autoClose=void 0;break;case D.attributes.AUTO_CLOSE_THRESHOLD:a?this.autoCloseThreshold=W(a):this.autoCloseThreshold=void 0;break}}getContentSize(){return this._core.getContentSize()}getCollapsibleSize(){return this._core.getCollapsibleSize()}setContentSize(t){this._core.setContentSize(t)}update(t){this._core.update(t)}};s([v()],H2.prototype,"resizable",2),s([v()],H2.prototype,"size",2),s([v()],H2.prototype,"min",2),s([v()],H2.prototype,"max",2),s([v()],H2.prototype,"accessibleLabel",2),s([v()],H2.prototype,"open",2),s([v()],H2.prototype,"disabled",2),s([v()],H2.prototype,"allowClose",2),s([v()],H2.prototype,"autoClose",2),s([v()],H2.prototype,"autoCloseThreshold",2),H2=s([y({name:D.elementName,dependencies:[X,r1,Q]})],H2);function ub1(){x(H2)}var cl=class extends I{constructor(t){super(t),this._root=g(t,t2.selectors.ROOT)}registerSlotListener(t){this._root.addEventListener("slotchange",t)}registerDidOpenListener(t){this._root.addEventListener(D.events.DID_OPEN,t)}registerDidCloseListener(t){this._root.addEventListener(D.events.DID_CLOSE,t)}observeResize(t){E0.observe(this._root,t)}unobserveResize(){E0.unobserve(this._root)}getSlottedPanels(){let t=this._component.querySelectorAll(t2.selectors.PANEL);return Array.from(t).filter(o=>o.parentElement===this._component)}refitSlottedPanels(t){let e=t==="horizontal"?this._root.clientWidth:this._root.clientHeight,a=this.getSlottedPanels(),o=a.map(i=>{var c;let l=(c=i.shadowRoot)==null?void 0:c.querySelector(D.selectors.ROOT),h=t==="horizontal"?l==null?void 0:l.clientWidth:l==null?void 0:l.clientHeight;return h!=null?h:0}).reduce((i,l)=>i+l,0);if(o<=e)return;let n=o-e;a.slice().reverse().filter(i=>i.open).forEach(i=>{if(n<=0)return;let l=i.getContentSize(),h=i.getCollapsibleSize(),c=Math.min(n,h),d=l-c;i.setContentSize(d),n-=c})}};var pl=class{constructor(t){this._adapter=t;this._orientation="horizontal";this._disabled=!1;this._allowClose=!1;this._autoClose=!1;this._autoCloseThreshold=0;this._isInitialized=!1;this._slotListener=e=>this._onSlotChange(e),this._didOpenListener=()=>this._onDidOpen(),this._didCloseListener=()=>this._onDidClose(),this._resizeObserverCallback=Sr(e=>this._onResize(e),t2.numbers.RESIZE_THROTTLE_THRESHOLD)}initialize(){this._adapter.registerSlotListener(this._slotListener),this._adapter.registerDidOpenListener(this._didOpenListener),this._adapter.registerDidCloseListener(this._didCloseListener),this._adapter.observeResize(this._resizeObserverCallback),this._applyOrientation(),this._isInitialized=!0}destroy(){this._adapter.unobserveResize()}_onSlotChange(t){this._layoutSlottedPanels(),this.update({accessibility:!0,cursor:!0,orientation:this._orientation})}_onDidOpen(){this._adapter.refitSlottedPanels(this._orientation),this.update({accessibility:!0,cursor:!0,size:!0})}_onDidClose(){this._adapter.refitSlottedPanels(this._orientation),this.update({accessibility:!0,cursor:!0,size:!0})}_onResize(t){this.update({accessibility:!0,cursor:!0,size:!0})}_layoutSlottedPanels(){let t=this._adapter.getSlottedPanels();t.length<2||t.some(e=>e.resizable!=="off")||t.slice(1).forEach(e=>e.resizable="start")}get orientation(){return this._orientation}set orientation(t){this._orientation!==t&&(this._orientation=t,this._applyOrientation())}_applyOrientation(){this._adapter.setHostAttribute(t2.attributes.ORIENTATION,this._orientation),this.update({orientation:this._orientation}),this._isInitialized&&this._adapter.refitSlottedPanels(this._orientation),this.update({accessibility:!0,cursor:!0})}get disabled(){return this._disabled}set disabled(t){this._disabled!==t&&(this._disabled=t,this._applyDisabled())}_applyDisabled(){this._adapter.toggleHostAttribute(t2.attributes.DISABLED,this._disabled),this.update({properties:{disabled:this._disabled}})}get allowClose(){return this._allowClose}set allowClose(t){this._allowClose!==t&&(this._allowClose=t,this._applyAllowClose())}_applyAllowClose(){this._adapter.toggleHostAttribute(t2.attributes.ALLOW_CLOSE,this._allowClose),this.update({properties:{allowClose:this._allowClose}})}get autoClose(){return this._autoClose}set autoClose(t){this._autoClose!==t&&(this._autoClose=t,this._applyAutoClose())}_applyAutoClose(){this._adapter.toggleHostAttribute(t2.attributes.AUTO_CLOSE,this._autoClose),this.update({properties:{autoClose:this._autoClose}})}get autoCloseThreshold(){return this._autoCloseThreshold}set autoCloseThreshold(t){this._autoCloseThreshold!==t&&(this._autoCloseThreshold=t,this._applyAutoCloseThreshold())}_applyAutoCloseThreshold(){this._adapter.setHostAttribute(t2.attributes.AUTO_CLOSE_THRESHOLD,this._autoCloseThreshold.toString()),this.update({properties:{autoCloseThreshold:this._autoCloseThreshold}})}layerSlottedPanels(t){let e=this._adapter.getSlottedPanels(),a=t.resizable==="start"?1:-1,o=t.resizable==="start"?1:3;e.forEach(n=>{(n===t||o===2)&&(o+=a),n.style.setProperty(t2.customCssProperties.ANIMATING_LAYER,o.toString())})}unlayerSlottedPanels(){this._adapter.getSlottedPanels().forEach(e=>{e.style.removeProperty(t2.customCssProperties.ANIMATING_LAYER)})}update(t){this._adapter.getSlottedPanels().forEach(a=>{a.update(t)})}refitSlottedPanels(){this._adapter.refitSlottedPanels(this._orientation)}};var bx='<template><div class="forge-split-view" id="root" part="root"><slot></slot></div></template>',yx=".forge-split-view{display:flex;width:100%;height:100%}:host{--forge-split-view-handle-width:8px;display:block;height:100%;width:100%;overflow:hidden}:host([hidden]){display:none}:host([orientation=horizontal]) .forge-split-view{flex-direction:row}:host([orientation=vertical]) .forge-split-view{flex-direction:column}",Ce=class extends M{static get observedAttributes(){return[t2.attributes.ORIENTATION,t2.attributes.DISABLED,t2.attributes.ALLOW_CLOSE,t2.attributes.AUTO_CLOSE,t2.attributes.AUTO_CLOSE_THRESHOLD]}constructor(){super(),H(this,bx,yx),this._core=new pl(new cl(this))}connectedCallback(){this._core.initialize()}disconnectedCallback(){this._core.destroy()}attributeChangedCallback(t,e,a){switch(t){case t2.attributes.ORIENTATION:this.orientation=a;break;case t2.attributes.DISABLED:this.disabled=p(a);break;case t2.attributes.ALLOW_CLOSE:this.allowClose=p(a);break;case t2.attributes.AUTO_CLOSE:this.autoClose=p(a);break;case t2.attributes.AUTO_CLOSE_THRESHOLD:this.autoCloseThreshold=W(a);break}}layerSlottedPanels(t){this._core.layerSlottedPanels(t)}unlayerSlottedPanels(){this._core.unlayerSlottedPanels()}update(t){this._core.update(t)}refit(){this._core.refitSlottedPanels()}};s([v()],Ce.prototype,"orientation",2),s([v()],Ce.prototype,"disabled",2),s([v()],Ce.prototype,"allowClose",2),s([v()],Ce.prototype,"autoClose",2),s([v()],Ce.prototype,"autoCloseThreshold",2),Ce=s([y({name:t2.elementName,dependencies:[H2]})],Ce);function p6(){x(Ce)}var Mx=`${b}stack`,d6={DEFAULT:"forge-stack"},Hx={ROOT:`.${d6.DEFAULT}`},m6={INLINE:"inline",WRAP:"wrap",STRETCH:"stretch",GAP:"gap",ALIGNMENT:"alignment",JUSTIFY:"justify"},Lx=w({},m6),Ix={DEFAULT_GAP:"16"},D2={elementName:Mx,classes:d6,observedAttributes:m6,attributes:Lx,selectors:Hx,strings:Ix};var dl=class extends I{constructor(t){super(t),this._rootElement=g(t,D2.selectors.ROOT)}setGap(t){let e=/^\d+$/.test(t)?`${t}px`:t;this._rootElement.style.gap=`var(--forge-stack-gap, ${e})`}};var ml=class{constructor(t){this._adapter=t;this._inline=!1;this._wrap=!1;this._stretch=!1;this._gap=D2.strings.DEFAULT_GAP;this._alignment="start";this._justify="start"}get inline(){return this._inline}set inline(t){t=!!t,this._inline!==t&&(this._inline=t,this._adapter.toggleHostAttribute(D2.attributes.INLINE,this._inline))}get wrap(){return this._wrap}set wrap(t){t=!!t,this._wrap!==t&&(this._wrap=t,this._adapter.toggleHostAttribute(D2.attributes.WRAP,this._wrap))}get stretch(){return this._stretch}set stretch(t){t=!!t,this._stretch!==t&&(this._stretch=t,this._adapter.toggleHostAttribute(D2.attributes.STRETCH,this._stretch))}get gap(){return this._gap}set gap(t){this._gap!==t&&(this._gap=t,this._adapter.setGap(this._gap),this._adapter.setHostAttribute(D2.attributes.GAP,this._gap))}get alignment(){return this._alignment}set alignment(t){this._alignment!==t&&(this._alignment=t,this._adapter.setHostAttribute(D2.attributes.ALIGNMENT,this._alignment))}get justify(){return this._justify}set justify(t){this._justify!==t&&(this._justify=t,this._adapter.setHostAttribute(D2.attributes.JUSTIFY,this._justify))}};var Vx='<template><div class="forge-stack" part="root"><slot></slot></div></template>',Ex=".forge-stack{display:flex;flex-direction:column;align-items:var(--_stack-alignment);justify-content:var(--_stack-justify);gap:var(--_stack-gap);height:var(--_stack-height);width:100%;--_stack-gap:var(--forge-stack-gap, var(--forge-spacing-medium, 16px));--_stack-height:var(--forge-stack-height);--_stack-stretch:var(--forge-stack-stretch, initial);--_stack-alignment:var(--forge-stack-alignment, normal);--_stack-justify:var(--forge-stack-justify, normal);--_stack-wrap:var(--forge-stack-wrap, wrap)}.forge-stack ::slotted(*){flex:var(--_stack-stretch)}:host([inline]) .forge-stack{flex-direction:row}:host([inline][wrap]) .forge-stack{flex-wrap:wrap}:host(:not([inline])) .forge-stack{--_stack-height:var(--forge-stack-height, 100%)}:host([stretch]) ::slotted(*){--_stack-stretch:var(--forge-stack-stretch, 1)}:host([alignment=start]) .forge-stack{--_stack-alignment:var(--forge-stack-alignment, start)}:host([alignment=center]) .forge-stack{--_stack-alignment:var(--forge-stack-alignment, center)}:host([alignment=end]) .forge-stack{--_stack-alignment:var(--forge-stack-alignment, end)}:host([justify=start]) .forge-stack{--_stack-justify:var(--forge-stack-justify, start)}:host([justify=center]) .forge-stack{--_stack-justify:var(--forge-stack-justify, center)}:host([justify=end]) .forge-stack{--_stack-justify:var(--forge-stack-justify, end)}",de=class extends M{static get observedAttributes(){return Object.values(D2.observedAttributes)}constructor(){super(),H(this,Vx,Ex),this._core=new ml(new dl(this))}attributeChangedCallback(t,e,a){switch(t){case D2.observedAttributes.INLINE:this.inline=p(a);break;case D2.observedAttributes.WRAP:this.wrap=p(a);break;case D2.observedAttributes.STRETCH:this.stretch=p(a);break;case D2.observedAttributes.GAP:this.gap=a;break;case D2.observedAttributes.ALIGNMENT:this.alignment=a;break;case D2.observedAttributes.JUSTIFY:this.justify=a;break}}};s([v()],de.prototype,"inline",2),s([v()],de.prototype,"wrap",2),s([v()],de.prototype,"stretch",2),s([v()],de.prototype,"gap",2),s([v()],de.prototype,"alignment",2),s([v()],de.prototype,"justify",2),de=s([y({name:D2.elementName})],de);function g6(){x(de)}var gl=`${b}step`,sa={STEP:"forge-step",STEP_CONTAINER:"container",ERROR:"error",SELECTED:"selected",COMPLETED:"completed",EDITABLE:"editable",ALTERNATIVE:"alternative",ICON_CONTENT:"icon-content",ICON:"icon",LABEL_CONTAINER:"label-container",LABEL:"label",OPTIONAL_LABEL:"optional-label",INDEX:"index",CLUSTERED:"clustered",DISABLED:"disabled",VERTICAL:"vertical",EXPANDED:"expanded",EXPANDABLE:"expandable",EXPANSION_PANEL:"expansion-panel",EXPANSION_ICON:"expanded-icon",EXPANSION_ICON_EXPANDED:"expanded-icon--expanded",EXPANSION_CONTENT:"expansion-content"},Cx={SELECTED:"selected",INDEX:"index",EDITABLE:"editable",COMPLETED:"completed",ERROR:"error",ALTERNATIVE:"alternative",FIRST:"first",LAST:"last",ARIA_SELECTED:"aria-selected",CLUSTERED:"clustered",DISABLED:"disabled",VERTICAL:"vertical",EXPANDED:"expanded",EXPANDABLE:"expandable",IGNORE_USER_EXPANSION:"ignore-user-expansion"},zx={STEP:`.${sa.STEP}`,STEP_CONTAINER:`.${sa.STEP_CONTAINER}`,INDEX:`.${sa.INDEX}`,ICON:`.${sa.ICON}`,ICON_CONTENT:`.${sa.ICON_CONTENT}`,EXPANSION_SLOT:'slot[name="expansion-content"]',EXPANSION_PANEL:`.${sa.EXPANSION_PANEL}`,EXPANSION_ICON:`.${sa.EXPANSION_ICON}`},Ax={ARROW_LEFT_KEY:"ArrowLeft",ARROW_RIGHT_KEY:"ArrowRight",ARROW_UP_KEY:"ArrowUp",ARROW_DOWN_KEY:"ArrowDown",END_KEY:"End",ENTER_KEY:"Enter",HOME_KEY:"Home",SPACE_KEY:"Space",EXPANSION_CONTENT_SLOT_NAME:"expansion-content"},Bx={SELECT:`${gl}-select`,EXPANDED_CONTENT_FOCUSIN:`${gl}-expanded-content-focusin`,EXPANDED_CONTENT_FOCUSOUT:`${gl}-expanded-content-focusout`},S={elementName:gl,classes:sa,selectors:zx,attributes:Cx,events:Bx,strings:Ax};var wl=class extends I{constructor(t){super(t),this._stepContainer=g(t,S.selectors.STEP),this._container=g(t,S.selectors.STEP_CONTAINER),this._stateLayerElement=g(this._component,M1.elementName)}get component(){return this._component}initialize(){this._component.hasAttribute("role")||this._component.setAttribute("role","tab")}setIndex(t){this._stepContainer.querySelector(S.selectors.INDEX).innerHTML=(t+1||"").toString()}toggleRootClass(t,e){_2(this._stepContainer,e,t)}toggleDisabled(t){_2(this._stepContainer,t,S.classes.DISABLED),K(this._component,t,"aria-disabled"),this._stateLayerElement.disabled=t}toggleIcon(t,e){let a=this._stepContainer.querySelector(S.selectors.INDEX),o=this._stepContainer.querySelector(S.selectors.ICON);if(!e){a.style.display="inherit",o.style.display="none";return}a.style.display="none",o.style.display="inherit",o.name=t}slotHasContent(){return this._expansionSlot.assignedElements({flatten:!0}).length>0}setClickListener(t){this._component.addEventListener("click",t)}removeClickListener(t){this._component.removeEventListener("click",t)}setSlotListener(t){this._expansionSlot.addEventListener("slotchange",t)}removeSlotListener(t){this._expansionSlot&&this._expansionSlot.removeEventListener("slotchange",t)}setExpanded(t){this._expansionPanel&&(this._expansionPanel.open=t,K(this._expansionPanel,!t,"tabindex","-1")),_2(this._stepContainer,t,S.classes.EXPANDED)}setExpansionPanelAnimations(t){this._expansionPanel.animationType=t?"default":"none"}addExpansionPanel(){this._container.querySelector(S.selectors.EXPANSION_PANEL)||(this._expansionPanel=this._container.appendChild(this._createExpansionPanel()),this._expansionSlot=this._expansionPanel.querySelector(S.selectors.EXPANSION_SLOT))}removeExpansionPanel(){let t=this._container.querySelector(S.selectors.EXPANSION_PANEL);t&&this._container.removeChild(t)}addExpansionIcon(){this._stepContainer.querySelector(S.selectors.EXPANSION_ICON)||this._stepContainer.appendChild(this._createExpansionIcon())}removeExpansionIcon(){let t=this._stepContainer.querySelector(S.selectors.EXPANSION_ICON);t&&this._stepContainer.removeChild(t)}addExpansionPanelListener(t,e){this._expansionPanel.addEventListener(t,e)}removeExpansionPanelListener(t,e){this._expansionPanel&&this._expansionPanel.removeEventListener(t,e)}isExpandedContentInFocus(t){return this._expansionSlot.assignedElements().some(e=>e.contains(t||document.activeElement))}_createExpansionPanel(){let t=document.createElement("forge-expansion-panel");t.animationType="none",t.setAttribute("part","expansion-panel"),y1(S.classes.EXPANSION_PANEL,t);let e=document.createElement("slot");return e.setAttribute("name","expansion-content"),y1(S.classes.EXPANSION_CONTENT,e),t.appendChild(e),t}_createExpansionIcon(){let t=document.createElement("forge-icon");return y1(S.classes.EXPANSION_ICON,t),t.name="keyboard_arrow_down",t.setAttribute("part","expanded-icon"),t}};var ul=class{constructor(t){this._adapter=t;this._clickListener=()=>this._onClickListener(),this._expansionContentSlotChangeListener=e=>this._onExpansionContentSlotChange(e),this._expansionContentFocusInListener=e=>this._onExpansionContentFocusIn(e),this._expansionContentFocusOutListener=e=>this._onExpansionContentFocusOut(e)}initialize(){this._adapter.initialize(),this._applySelected(),this._toggleIcon(),this._vertical&&(this._adapter.addExpansionPanel(),this._adapter.addExpansionIcon(),this._adapter.setClickListener(this._clickListener),this._adapter.setSlotListener(this._expansionContentSlotChangeListener),this._adapter.addExpansionPanelListener("focusin",this._expansionContentFocusInListener),this._adapter.addExpansionPanelListener("focusout",this._expansionContentFocusOutListener)),this._initialized=!0}destroy(){this._adapter.removeClickListener(this._clickListener),this._adapter.removeSlotListener(this._expansionContentSlotChangeListener),this._adapter.removeExpansionPanelListener("focusin",this._onExpansionContentFocusIn),this._adapter.removeExpansionPanelListener("focusout",this._onExpansionContentFocusOut)}get index(){return this._index}set index(t){this._index!==t&&(this._index=t,this._applyIndex(),this._adapter.setHostAttribute(S.attributes.INDEX,t.toString()))}get editable(){return this._editable}set editable(t){this._editable!==t&&(this._editable=t,this._adapter.toggleHostAttribute(S.attributes.EDITABLE,t),this._applyEditable())}get completed(){return this._completed}set completed(t){this._completed!==t&&(this._completed=t,this._adapter.toggleHostAttribute(S.attributes.COMPLETED,t),this._applyCompleted())}get error(){return this._error}set error(t){this._error!==t&&(this._error=t,this._adapter.toggleHostAttribute(S.attributes.ERROR,t),this._applyError())}get selected(){return this._selected}set selected(t){this._selected!==t&&(this._selected=t,this._adapter.toggleHostAttribute(S.attributes.SELECTED,t),this._applySelected())}get alternative(){return this._alternative}set alternative(t){this._alternative!==t&&(this._alternative=t,this._adapter.toggleHostAttribute(S.attributes.ALTERNATIVE,t),this._applyAlternative())}get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._applyDisabled()}get vertical(){return this._vertical}set vertical(t){t!==this._vertical&&(this._vertical=t,this._applyVertical(),this._initialized&&(this._vertical?(this._adapter.addExpansionPanel(),this._adapter.addExpansionIcon(),this._adapter.setClickListener(this._clickListener),this._adapter.setSlotListener(this._expansionContentSlotChangeListener)):(this._adapter.removeClickListener(this._clickListener),this._adapter.removeSlotListener(this._expansionContentSlotChangeListener),this._adapter.removeExpansionPanel(),this._adapter.removeExpansionIcon())))}get expanded(){return this._expanded}set expanded(t){t!==this._expanded&&(this._expanded=t,this._adapter.toggleHostAttribute(S.attributes.EXPANDED,this._expanded),this._initialized&&this._applyExpanded())}get ignoreUserExpansion(){return this._ignoreUserExpansion}set ignoreUserExpansion(t){t!==this._ignoreUserExpansion&&(this._ignoreUserExpansion=t)}_applyExpanded(){this._adapter.setExpanded(this._expanded)}_applyVertical(){this._adapter.toggleHostAttribute(S.attributes.VERTICAL,this._vertical),this._adapter.toggleRootClass(S.classes.VERTICAL,this._vertical)}_applyAlternative(){this._adapter.toggleRootClass(S.classes.ALTERNATIVE,this._alternative)}_applySelected(){this._adapter.toggleRootClass(S.classes.SELECTED,this._selected),this._adapter.setHostAttribute(S.attributes.ARIA_SELECTED,(this._selected||!1).toString()),this._adapter.hostElement.tabIndex=this._selected?0:-1,this._toggleIcon()}_applyIndex(){this._adapter.setIndex(this._index)}_applyEditable(){this._adapter.toggleRootClass(S.classes.EDITABLE,this._editable),this._toggleIcon()}_applyCompleted(){this._adapter.toggleRootClass(S.classes.COMPLETED,this._completed),this._toggleIcon()}_applyError(){this._adapter.toggleRootClass(S.classes.ERROR,this._error),this._toggleIcon()}_applyDisabled(){this._adapter.toggleDisabled(this._disabled),this._toggleIcon()}_getIconState(){return this._error?"warning":this._completed?this._editable?"mode_edit":"check":this._editable&&this._selected&&!this._disabled?"mode_edit":this._disabled?"block":""}_toggleIcon(){this._iconState=this._getIconState(),this._adapter.toggleIcon(this._iconState,this._iconState!=="")}_toggleExpanded(){this._adapter.slotHasContent()&&(this._expanded=!this._expanded,this._applyExpanded(),this._adapter.toggleHostAttribute(S.attributes.EXPANDED,this._expanded))}_onClickListener(){this._vertical&&!this._ignoreUserExpansion&&this._toggleExpanded()}_onExpansionContentSlotChange(t){let e=this._adapter.slotHasContent();e?(this._adapter.setHostAttribute(S.attributes.EXPANDABLE),this._applyExpanded(),this._adapter.setExpansionPanelAnimations(!0)):(this._adapter.removeHostAttribute(S.attributes.EXPANDABLE),this._adapter.setExpansionPanelAnimations(!1)),this._adapter.toggleRootClass(S.classes.EXPANDABLE,e)}_onExpansionContentFocusIn(t){!this._expandedContentFocused&&this._adapter.isExpandedContentInFocus(t.target)&&(this._adapter.emitHostEvent(S.events.EXPANDED_CONTENT_FOCUSIN,this._adapter.component),this._expandedContentFocused=!0)}_onExpansionContentFocusOut(t){t.relatedTarget&&!this._adapter.isExpandedContentInFocus(t.relatedTarget)&&(this._adapter.emitHostEvent(S.events.EXPANDED_CONTENT_FOCUSOUT,this._adapter.component),this._expandedContentFocused=!1)}};var Tx='<template><div class="container" part="root"><div class="forge-step" part="step"><div class="before" part="before"></div><div class="icon-container" part="icon-container"><div class="icon-content" part="icon-content"><span class="index" part="index"></span><forge-icon class="icon" part="icon"></forge-icon></div></div><div class="text-container" part="text-container"><div class="title" part="title-container"><slot></slot></div><div class="subtitle" part="subtitle-container"><slot name="optional"></slot></div></div><div class="after" part="after"></div><forge-state-layer exportparts="surface:state-layer" target=":host"></forge-state-layer><forge-focus-indicator part="focus-indicator" target=":host" inward></forge-focus-indicator></div></div></template>',Sx=':host{--_step-primary-color:var(--forge-step-primary-color, var(--forge-theme-primary, #3f51b5));--_step-text-color:var(--forge-step-text-color, var(--forge-theme-on-primary, #ffffff));--_step-border-radius:var(--forge-step-border-radius, calc(var(--forge-shape-extra-large, 16px) * var(--forge-shape-factor, 1)));--_step-border-radius-vertical:var(--forge-step-border-radius-vertical, calc(var(--forge-shape-medium, 4px) * var(--forge-shape-factor, 1)));--_step-disabled-text-color:var(--forge-step-disabled-text-color, var(--forge-theme-text-low, rgba(0, 0, 0, 0.38)));--_step-disabled-color:var(--forge-step-disabled-color, var(--forge-theme-surface-container-minimum, #f5f5f5));--_step-icon-fill:var(--forge-step-icon-fill, unset);--_step-icon-fill-active:var(--forge-step-icon-fill-active, var(--_step-primary-color));--_step-icon-text-color:var(--forge-step-icon-text-color, var(--forge-theme-primary, #3f51b5));--_step-icon-text-color-active:var(--forge-step-icon-text-color-active, var(--forge-theme-on-primary, #ffffff));--_step-icon-content-size:var(--forge-step-icon-content-size, 24px);--_step-icon-size:var(--forge-step-icon-size, calc(var(--forge-typography-font-size, 1rem) * 0.875));--_step-icon-transition-duration:var(--forge-step-icon-transition-duration, var(--forge-animation-duration-medium4, 400ms));--_step-icon-transition-easing:var(--forge-step-icon-transition-easing, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1)));--_step-line-color:var(--forge-step-line-color, var(--forge-theme-outline, #e0e0e0));--_step-line-min-width:var(--forge-step-line-min-width, 10px);--_step-line-min-width-clustered:var(--forge-step-line-min-width-clustered, 25px);--_step-label-color:var(--forge-step-label-color, var(--forge-theme-text-high, rgba(0, 0, 0, 0.87)));--_step-sub-label-color:var(--forge-step-sub-label-color, var(--forge-theme-text-medium, rgba(0, 0, 0, 0.6)));--_step-error-color:var(--forge-step-error-color, var(--forge-theme-error, #b00020));--_step-error-text-color:var(--forge-step-error-text-color, var(--forge-theme-on-error, #ffffff));--_step-expansion-panel-border-left-width:var(--forge-step-expansion-panel-border-left-width, 1px);--_step-expansion-panel-margin-bottom:var(--forge-step-expansion-panel-margin-bottom, 4px);--_step-expansion-panel-margin-left:var(--forge-step-expansion-panel-margin-left, 60px);--_step-expansion-panel-margin-top:var(--forge-step-expansion-panel-margin-top, 4px);--_step-expansion-panel-icon-color:var(--forge-step-expansion-panel-icon-color, var(--forge-theme-text-medium, rgba(0, 0, 0, 0.6)))}:host(:focus){outline:0}:host([error]){--forge-state-layer-color:var(--_step-error-color)}:host(:first-child[alternative])::after{align-self:flex-start;top:22px;margin:0}:host(:last-child[alternative])::before{align-self:flex-start;top:22px;margin:0}:host(:not(:first-child):not(:last-child)[alternative])::after,:host(:not(:first-child):not(:last-child)[alternative])::before{align-self:flex-start;top:22px;min-width:7px;margin:0}:host(:not(:last-child)[alternative]) .after{align-self:flex-start;top:22px;position:absolute;width:calc(50% - 18px);left:calc(50% + 18px);height:0;right:0}:host(:not(:first-child)[alternative]) .before{align-self:flex-start;top:22px;position:absolute;left:0;width:calc(50% - 18px);height:0}:host(:not(:first-child):not(:last-child)):host(:not([vertical]))::after,:host(:not(:first-child):not(:last-child)):host(:not([vertical]))::before{border-color:var(--_step-line-color);min-width:var(--_step-line-min-width);content:"";position:relative;height:0;flex:1;flex-basis:0.000000001px;border-top-style:solid;border-top-width:1px;border-radius:1px 0 0 1px;margin:0 -10px}:host(:last-child):host(:not([vertical]))::before{border-color:var(--_step-line-color);min-width:var(--_step-line-min-width);content:"";position:relative;height:0;flex:1;flex-basis:0.000000001px;border-top-style:solid;border-top-width:1px;border-radius:1px 0 0 1px;margin:0 -10px 0 0}:host(:is(:first-child)):host(:not([vertical]))::after{border-color:var(--_step-line-color);min-width:var(--_step-line-min-width);content:"";position:relative;height:0;flex:1;flex-basis:0.000000001px;border-top-style:solid;border-top-width:1px;border-radius:1px 0 0 1px;margin:0 -10px}:host([vertical]){flex-direction:column}:host([vertical])::after{content:none}:host([vertical])::before{content:none}:host([vertical]) .forge-step{--_step-border-radius:var(--_step-border-radius-vertical);width:100%;min-height:52px}:host([vertical]) .forge-step .text-container{white-space:normal}:host([vertical]) .icon-container .icon-content{margin:0 16px 0 0}:host([vertical]) .expansion-panel{display:none}:host([vertical]) .expanded-icon{color:var(--_step-expansion-panel-icon-color);display:none;margin-left:auto}:host([vertical][expandable]) .expansion-panel{display:block}:host([ignore-user-expansion]) .forge-step .expanded-icon{display:none}forge-expansion-panel::part(root){border-color:var(--_step-line-color);margin-left:var(--_step-expansion-panel-margin-left);margin-top:var(--_step-expansion-panel-margin-top);margin-bottom:var(--_step-expansion-panel-margin-bottom);border-left-width:var(--_step-expansion-panel-border-left-width);border-left-style:solid}forge-focus-indicator{--forge-focus-indicator-color:var(--_step-primary-color);--forge-focus-indicator-shape:16px}.container{display:contents}.forge-step{-webkit-tap-highlight-color:transparent;padding:12px 16px;outline:0;background:0 0;border:none;border-radius:var(--_step-border-radius);position:relative;display:flex;overflow:hidden;align-items:center;box-sizing:border-box;cursor:pointer}.forge-step:focus{outline:0}.forge-step::-moz-focus-inner,.forge-step::-moz-focus-outer{padding:0;border:0}.forge-step.error forge-focus-indicator{--forge-focus-indicator-color:var(--_step-error-color)}.forge-step.vertical forge-focus-indicator{--forge-focus-indicator-shape:4px}.forge-step.selected:not(.disabled){--forge-state-layer-color:var(--_step-primary-color)}.forge-step.selected:not(.disabled)::before{background-color:var(--_step-primary-color);content:"";position:absolute;inset:0;opacity:.08;height:100%;width:100%}.forge-step.selected:not(.disabled).error{--_step-primary-color:var(--_step-error-color)}.forge-step .title{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-body1-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-body1-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-font-size-scale, .875)));font-weight:var(--forge-typography-body1-font-weight,400);line-height:var(--forge-typography-body1-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-line-height-scale, 1.125)));letter-spacing:var(--forge-typography-body1-letter-spacing, .0357142857em);text-transform:var(--forge-typography-body1-text-transform,inherit);text-decoration:var(--forge-typography-body1-text-decoration,inherit);color:var(--_step-label-color);text-align:left;overflow:hidden;text-overflow:ellipsis}.forge-step .subtitle{text-align:left;overflow:hidden;text-overflow:ellipsis}.forge-step .subtitle ::slotted(*){color:var(--_step-sub-label-color);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-label1-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-label1-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-label-font-size-scale, .75)));font-weight:var(--forge-typography-label1-font-weight,400);line-height:var(--forge-typography-label1-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-label-line-height-scale, 1.25)));letter-spacing:var(--forge-typography-label1-letter-spacing, .0357142857em);text-transform:var(--forge-typography-label1-text-transform,inherit);text-decoration:var(--forge-typography-label1-text-decoration,inherit)}.forge-step .icon-container .icon-content{color:var(--_step-icon-text-color);background-color:var(--_step-icon-fill);height:var(--_step-icon-content-size);width:var(--_step-icon-content-size);border-style:solid;border-width:2px;border-color:transparent;border-radius:50%;display:flex;align-items:center;justify-content:center;transition:background-color var(--_step-icon-transition-duration) var(--_step-icon-transition-easing);margin:0 8px 0 0;flex:none}.forge-step .icon-container .icon-content forge-icon{font-size:var(--_step-icon-size)}.forge-step.disabled{color:var(--_step-disabled-text-color);cursor:not-allowed}.forge-step.disabled.forge-step .icon-container .icon-content{--_step-icon-fill:var(--_step-disabled-color);--_step-icon-text-color:var(--_step-disabled-text-color)}.forge-step.disabled .text-container .title{color:var(--_step-disabled-text-color)}.forge-step.disabled .text-container .subtitle ::slotted(*){color:var(--_step-disabled-text-color)}.forge-step.alternative{flex-direction:column}.forge-step.alternative .icon-container .icon-content{margin:0}.forge-step.alternative .text-container{margin-top:8px;place-items:center}.forge-step:not(.selected):not(.disabled).editable:not(.completed):not(.error) .icon-content,.forge-step:not(.selected):not(.disabled):not(.editable):not(.completed):not(.error) .icon-content{border-color:var(--_step-primary-color)}.forge-step:not(.selected):not(.disabled).editable:not(.completed):not(.error) .icon-content .index,.forge-step:not(.selected):not(.disabled):not(.editable):not(.completed):not(.error) .icon-content .index{color:var(--_step-primary-color)}.forge-step.selected.disabled .icon-content{--_step-icon-fill:var(--_step-disabled-color);--_step-icon-text-color:var(--_step-disabled-text-color)}.forge-step.selected:not(.disabled) .icon-container .icon-content{--_step-icon-fill:var(--_step-icon-fill-active);--_step-icon-text-color:var(--_step-icon-text-color-active)}.forge-step.selected:not(.disabled) .title{color:var(--_step-primary-color);font-weight:500}.forge-step.selected:not(.disabled) .subtitle ::slotted(*){color:var(--_step-primary-color);font-weight:500}.forge-step.error:not(.disabled) .title{color:var(--_step-error-color)}.forge-step.error:not(.disabled) .subtitle ::slotted(*){color:var(--_step-error-color)}.forge-step.error:not(.disabled) .icon-container .icon-content{--_step-icon-fill:var(--_step-error-color);--_step-icon-text-color:var(--_step-error-text-color)}.forge-step.completed:not(.disabled):not(.error):not(.editable) .icon-content{--_step-icon-fill:var(--_step-icon-fill-active);--_step-icon-text-color:var(--_step-icon-text-color-active)}.forge-step.completed:not(.disabled):not(.error).editable .icon-content{--_step-icon-fill:var(--_step-icon-fill-active);--_step-icon-text-color:var(--_step-icon-text-color-active)}.forge-step.expandable .expanded-icon{display:inline-block;transition:transform .3s ease-in-out}.forge-step.expandable.expanded .expanded-icon{transform:rotate(180deg)}.forge-step.expandable .icon-container .icon-content{margin:0 16px 0 0}.forge-step .text-container{display:flex;flex-direction:column;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host(:not(:last-child)[clustered])::after{--_step-line-min-width:var(--_step-line-min-width-clustered)}:host(:last-child[clustered])::before{--_step-line-min-width:var(--_step-line-min-width-clustered)}:host(:not(:first-child):not(:last-child)[clustered])::after,:host(:not(:first-child):not(:last-child)[clustered])::before{--_step-line-min-width:var(--_step-line-min-width-clustered)}',Y2=class extends M{static get observedAttributes(){return[S.attributes.COMPLETED,S.attributes.EDITABLE,S.attributes.ERROR,S.attributes.INDEX,S.attributes.SELECTED,S.attributes.ALTERNATIVE,S.attributes.DISABLED,S.attributes.VERTICAL,S.attributes.EXPANDED,S.attributes.IGNORE_USER_EXPANSION]}constructor(){super(),q.define([n3,j5,v3,$5,i0]),H(this,Tx,Sx),this._core=new ul(new wl(this))}connectedCallback(){this._core.initialize()}disconnectedCallback(){this._core.destroy()}attributeChangedCallback(t,e,a){switch(t){case S.attributes.INDEX:this.index=W(a);break;case S.attributes.COMPLETED:this.completed=p(a);break;case S.attributes.EDITABLE:this.editable=p(a);break;case S.attributes.ERROR:this.error=p(a);break;case S.attributes.SELECTED:this.selected=p(a);break;case S.attributes.ALTERNATIVE:this.alternative=p(a);break;case S.attributes.DISABLED:this.disabled=p(a);break;case S.attributes.VERTICAL:this.vertical=p(a);break;case S.attributes.EXPANDED:this.expanded=p(a);break;case S.attributes.IGNORE_USER_EXPANSION:this.ignoreUserExpansion=p(a);break}}};s([v()],Y2.prototype,"alternative",2),s([v()],Y2.prototype,"index",2),s([v()],Y2.prototype,"editable",2),s([v()],Y2.prototype,"completed",2),s([v()],Y2.prototype,"error",2),s([v()],Y2.prototype,"selected",2),s([v()],Y2.prototype,"disabled",2),s([v()],Y2.prototype,"vertical",2),s([v()],Y2.prototype,"expanded",2),s([v()],Y2.prototype,"ignoreUserExpansion",2),Y2=s([y({name:S.elementName,dependencies:[X,_t,r1,Q]})],Y2);function w6(){x(Y2)}var kx=`${b}stepper`,u6={STEPPER:"forge-stepper",LINEAR:"linear",ALTERNATIVE:"alternative",CLUSTERED:"clustered",FIXED:"fixed",ALIGN_LEFT:"align-left",ALIGN_CENTER:"align-center",ALIGN_RIGHT:"align-right",VERTICAL:"vertical",FOCUSED:"focused"},Ox={STEPPER:`.${u6.STEPPER}`},Dx={SELECTED_INDEX:"selected-index",LINEAR:"linear",ALTERNATIVE:"alternative",LAYOUT_MODE:"layout-mode",LAYOUT_ALIGN:"layout-align",DISABLED:"disabled",VERTICAL:"vertical"},dt={ARROW_LEFT_KEY:"ArrowLeft",ARROW_RIGHT_KEY:"ArrowRight",ARROW_UP_KEY:"ArrowUp",ARROW_DOWN_KEY:"ArrowDown",END_KEY:"End",ENTER_KEY:"Enter",HOME_KEY:"Home",SPACE_KEY:"Space",TAB_KEY:"Tab"},ka={ARROW_LEFT_KEYCODE:37,ARROW_RIGHT_KEYCODE:39,END_KEYCODE:35,HOME_KEYCODE:36,ENTER_KEYCODE:13,SPACE_KEYCODE:32},Px=[dt.ARROW_LEFT_KEY,dt.ARROW_RIGHT_KEY,dt.ARROW_DOWN_KEY,dt.ARROW_UP_KEY,dt.END_KEY,dt.HOME_KEY,dt.ENTER_KEY,dt.SPACE_KEY,dt.TAB_KEY],Nx={[ka.ARROW_LEFT_KEYCODE]:dt.ARROW_LEFT_KEY,[ka.ARROW_RIGHT_KEYCODE]:dt.ARROW_RIGHT_KEY,[ka.END_KEYCODE]:dt.END_KEY,[ka.HOME_KEYCODE]:dt.HOME_KEY,[ka.ENTER_KEYCODE]:dt.ENTER_KEY,[ka.SPACE_KEYCODE]:dt.SPACE_KEY},R={elementName:kx,classes:u6,selectors:Ox,attributes:Dx,numbers:ka,strings:dt,ACCEPTABLE_KEYS:Px,KEYCODE_MAP:Nx};var b0=class r{static createStepElement(t,e,a){var n,i;let o=document.createElement(S.elementName);return o.index=e,o.completed=t.completed||!1,o.editable=t.editable||!1,o.selected=a.selectedIndex===e,o.alternative=a.alternative,o.error=t.error||!1,o.disabled=t.disabled||!1,o.vertical=(i=(n=t.vertical)!=null?n:a.vertical)!=null?i:!1,o.ignoreUserExpansion=t.ignoreUserExpansion||!1,o.expanded=t.expanded||!1,a.linear&&e>a.selectedIndex&&(o.tabIndex=-1),o.textContent=t.label,t.optionalLabel&&o.appendChild(this.createStepOptionalLabel(t.optionalLabel)),o}static createStepOptionalLabel(t){let e=document.createElement("span");return e.slot="optional",e.textContent=t||"",e}static setLinearState(t,e){let a=t.classList.contains(R.classes.LINEAR);a&&!e&&(t.classList.remove(R.classes.LINEAR),a=!1),!a&&e&&t.classList.add(R.classes.LINEAR)}static setAlternativeState(t,e){let a=t.classList.contains(R.classes.ALTERNATIVE);a&&!e&&(t.classList.remove(R.classes.ALTERNATIVE),a=!1),!a&&e&&t.classList.add(R.classes.ALTERNATIVE)}static setLayoutMode(t,e){switch(e){case"clustered":t.classList.contains(R.classes.FIXED)&&t.classList.remove(R.classes.FIXED),t.classList.add(R.classes.CLUSTERED);break;case"fixed":t.classList.contains(R.classes.CLUSTERED)&&t.classList.remove(R.classes.CLUSTERED),t.classList.add(R.classes.FIXED);break}}static setLayoutAlign(t,e){switch(t.classList.contains(R.classes.ALIGN_LEFT)&&t.classList.remove(R.classes.ALIGN_LEFT),t.classList.contains(R.classes.ALIGN_CENTER)&&t.classList.remove(R.classes.ALIGN_CENTER),t.classList.contains(R.classes.ALIGN_RIGHT)&&t.classList.remove(R.classes.ALIGN_RIGHT),e){case"left":t.classList.add(R.classes.ALIGN_LEFT);break;case"center":t.classList.add(R.classes.ALIGN_CENTER);break;case"right":t.classList.add(R.classes.ALIGN_RIGHT);break}}static createSteps(t){let e=[];return t.steps.forEach((a,o)=>{let n=r.createStepElement(a,o,t);e.push(n)}),e[0].setAttribute(S.attributes.FIRST,""),e[e.length-1].setAttribute(S.attributes.LAST,""),e}};var _l=class extends I{constructor(t){super(t),this._rootElement=g(t,R.selectors.STEPPER),this._slotElement=this._rootElement.querySelector("slot")}initializeAccessibility(){this._component.hasAttribute("role")||this._component.setAttribute("role","tablist")}patchSafari(){this._applyToSteps(t=>t.setAttribute("safari",""))}addSlotChangeListener(t){this._slotElement.addEventListener("slotchange",t)}removeSlotChangeListener(t){this._slotElement.addEventListener("slotchange",t)}getLastStep(){let t=this._getSteps();return t.item(t.length-1)}setSelected(t){this._getSteps().forEach(e=>{e===t?e.selected=!0:e.selected=!1})}assignIndices(){this._getSteps().forEach((e,a)=>{e.index=a})}assignFirstLastStep(){let t=this._getSteps();t&&t.length>1&&(t[0].setAttribute("first",""),t[t.length-1].setAttribute("last",""))}setLayoutAlign(t){b0.setLayoutAlign(this._rootElement,t)}setLayoutMode(t){b0.setLayoutMode(this._rootElement,t),this._applyToSteps(e=>e.setAttribute(S.attributes.CLUSTERED,""))}setAlternativeState(t){b0.setAlternativeState(this._rootElement,t),this._applyToSteps(e=>e.alternative=t)}setVertical(t){_2(this._rootElement,t,R.classes.VERTICAL),this._applyToSteps(e=>e.vertical=t)}setLinearState(t){b0.setLinearState(this._rootElement,t)}removeRootListener(t,e){this._rootElement.removeEventListener("click",e)}addRootListener(t,e){this._rootElement.addEventListener(t,e)}setSelectedByIndex(t){this._applyToSteps(e=>{e.selected&&e.index!==t&&(e.selected=!1),e.index===t&&(e.selected=!0)})}applyConfiguredSteps(t){this._component.querySelectorAll(S.elementName).forEach(e=>{this._component.removeChild(e)}),t.forEach(e=>this._component.appendChild(e))}tryGetFocusedStep(){let t;return this._applyToSteps(e=>{e.matches(":focus-within")&&(t=e)}),t}getFocusedOrSelectedStep(){let t=this.tryGetFocusedStep();return t||(t=this._getSteps()[0],t.focus()),t}getStep(t){let e=0,a=this._getSteps();return t<0?a.item(a.length-1):(a.length>t&&(e=t),a.item(e))}toggleDisabled(t){this._applyToSteps(e=>e.disabled=t)}toggleRootClass(t,e){_2(this._rootElement,e,t)}isStepperFocused(){return this._rootElement.classList.contains(R.classes.FOCUSED)}setStepsListener(t,e){this._applyToSteps(a=>a.addEventListener(t,e))}removeStepsListener(t,e){this._applyToSteps(a=>a.removeEventListener(t,e))}_applyToSteps(t){this._getSteps().forEach(t)}_getSteps(){return this._component.querySelectorAll(S.elementName)}};var fl=class{constructor(t){this._adapter=t;this._steps=[];this._selectedIndex=0;this._linear=!1;this._alternative=!1;this._layoutMode="fixed";this._layoutAlign="center";this._initialize=!1;this._clickListener=e=>this._handleClick(e),this._keyListener=e=>this._onKeydown(e),this._stepFocusListener=()=>this._onStepFocus(),this._stepBlurListener=()=>this._onStepBlur(),this._stepExpandedContentFocusInListener=e=>this._onStepExpandedContentFocusIn(e),this._stepExpandedContentFocusOutListener=e=>this._onStepExpandedContentFocusOut(e),this._slotChangeListener=e=>this._onSlotChange(e)}initialize(){this._adapter.initializeAccessibility(),this._adapter.assignIndices(),this._adapter.setLinearState(this._linear),this._adapter.setAlternativeState(this._alternative),this._adapter.setLayoutAlign(this._layoutAlign),this._adapter.setLayoutMode(this._layoutMode),this._adapter.addRootListener("click",this._clickListener),this._adapter.addHostListener("keydown",this._keyListener),this._adapter.assignFirstLastStep(),this._adapter.addRootListener(S.events.EXPANDED_CONTENT_FOCUSIN,this._stepExpandedContentFocusInListener),this._adapter.addRootListener(S.events.EXPANDED_CONTENT_FOCUSOUT,this._stepExpandedContentFocusOutListener),this._applySelectedIndex(),this._patchBrowser(),this._adapter.setStepsListener("blur",this._stepBlurListener),this._adapter.setStepsListener("focus",this._stepFocusListener),this._initialize||this._adapter.addSlotChangeListener(this._slotChangeListener),this._initialize=!0}destroy(){this._adapter.removeRootListener("click",this._clickListener),this._adapter.removeHostListener("keydown",this._keyListener),this._adapter.removeSlotChangeListener(this._slotChangeListener),this._adapter.removeStepsListener("blur",this._stepBlurListener),this._adapter.removeStepsListener("focus",this._stepFocusListener)}get steps(){return this._steps.map(t=>w({},t))}set steps(t){if(Array.isArray(t)&&t.length>0)this._steps=[...t.map(e=>w({},e))];else{this._steps=[];return}this._renderConfiguration()}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){if(!k(t))t=0;else if(!z2(t)){let e=Number(t);t=isNaN(e)?0:e}this._selectedIndex!==t&&(this._selectedIndex=t,this._adapter.setHostAttribute(R.attributes.SELECTED_INDEX,this._selectedIndex.toString()),this._applySelectedIndex())}get linear(){return this._linear}set linear(t){t=!!t,this._linear!==t&&(this._linear=t,this._adapter.setLinearState(this._linear),this._adapter.setHostAttribute(R.attributes.LINEAR,this._linear.toString()))}get alternative(){return this._alternative}set alternative(t){t=!!t,this._alternative!==t&&(this._alternative=t,this._adapter.setAlternativeState(this._alternative),this._adapter.setHostAttribute(R.attributes.ALTERNATIVE,this._alternative.toString()))}get layoutMode(){return this._layoutMode}set layoutMode(t){/^(fixed|clustered)$/.test(t)&&this._layoutMode!==t&&(this._layoutMode=t,this._adapter.setHostAttribute(R.attributes.LAYOUT_MODE,this._layoutMode),this._adapter.setLayoutMode(this._layoutMode))}get layoutAlign(){return this._layoutAlign}set layoutAlign(t){/^(left|center|right)$/.test(t)&&this._layoutAlign!==t&&(this._layoutAlign=t,this._adapter.setLayoutAlign(this._layoutAlign),this._adapter.setHostAttribute(R.attributes.LAYOUT_ALIGN,this._layoutAlign))}get disabled(){return this._disabled}set disabled(t){t!==this._disabled&&(this._disabled=t,this._applyDisabled())}get vertical(){return this._vertical}set vertical(t){t!==this._vertical&&(this._vertical=t,this._applyVertical(),this._adapter.toggleHostAttribute(R.attributes.VERTICAL,this._vertical))}_applyVertical(){this._adapter.setVertical(this._vertical)}_applyDisabled(){this._disabled?this._adapter.setHostAttribute(R.attributes.DISABLED,"disabled"):this._adapter.removeHostAttribute(R.attributes.DISABLED),this._adapter.toggleDisabled(this._disabled)}_applySelectedIndex(){this._adapter.setSelectedByIndex(this._selectedIndex)}_handleClick(t){if(t.preventDefault(),this._linear)return;let a=L2(t).filter(o=>o.nodeType===Node.ELEMENT_NODE).find(o=>o.matches(S.elementName));a&&!a.selected&&!a.disabled&&this._adapter.emitHostEvent(S.events.SELECT,a.index,!0,!0)&&(this._adapter.setSelected(a),this.selectedIndex=a.index)}_renderConfiguration(){let t=b0.createSteps({steps:this._steps,vertical:this._vertical,selectedIndex:this._selectedIndex,alternative:this._alternative,layoutAlign:this._layoutAlign,layoutMode:this._layoutMode,linear:this._linear});this.destroy(),this._adapter.applyConfiguredSteps(t),this.initialize()}_onKeydown(t){var o;if(this._linear)return;let e=this._getKeyFromEvent(t);if(!this._adapter.isStepperFocused()||!e)return;if([S.strings.HOME_KEY,S.strings.END_KEY,S.strings.ARROW_DOWN_KEY,R.strings.ARROW_UP_KEY,R.strings.ENTER_KEY,R.strings.SPACE_KEY].includes(e)&&t.preventDefault(),[R.strings.ENTER_KEY,R.strings.SPACE_KEY].includes(e)){(o=this._adapter.getFocusedOrSelectedStep())==null||o.click();return}let a=this._vertical?this._determineVerticalMoveTarget(e):this._determineMoveTarget(e);a&&this._moveFocusTo(a)}_moveFocusTo(t){t.focus()}_getKeyFromEvent(t){return R.ACCEPTABLE_KEYS.includes(t.key)?t.key:R.KEYCODE_MAP[t.keyCode]}_determineMoveTarget(t){let e=this._adapter.getFocusedOrSelectedStep();if(e)switch(t){case R.strings.ARROW_RIGHT_KEY:return this._adapter.getStep(e.index+1);case R.strings.ARROW_LEFT_KEY:return this._adapter.getStep(e.index-1);case R.strings.HOME_KEY:return this._adapter.getStep(0);case R.strings.END_KEY:return this._adapter.getLastStep()}return e}_determineVerticalMoveTarget(t){let e=this._adapter.getFocusedOrSelectedStep();if(e)switch(t){case R.strings.ARROW_DOWN_KEY:return this._adapter.getStep(e.index+1);case R.strings.ARROW_UP_KEY:return this._adapter.getStep(e.index-1);case R.strings.HOME_KEY:return this._adapter.getStep(0);case R.strings.END_KEY:return this._adapter.getLastStep()}return e}_onSlotChange(t){this.destroy(),this.initialize()}_onStepExpandedContentFocusIn(t){let e=this._adapter.getStep(t.detail.index+1);e&&(e.tabIndex=0),t.detail.tabIndex=0}_onStepExpandedContentFocusOut(t){let e=t.target,a=this._adapter.getStep(e.index+1);a&&(a.tabIndex=-1),e.tabIndex=-1}_onStepFocus(){this._adapter.toggleRootClass(R.classes.FOCUSED,!0)}_onStepBlur(){this._adapter.toggleRootClass(R.classes.FOCUSED,!1)}_patchBrowser(){new $2().SAFARI()&&this._adapter.patchSafari()}};var Rx='<template><div class="forge-stepper" part="root"><slot></slot></div></template>',Fx=":host{display:block}:host([hidden]){display:none}:host([vertical]) .forge-stepper{display:unset;align-items:unset;white-space:unset;overflow:unset}.forge-stepper{display:flex;align-items:center;white-space:nowrap;overflow:hidden}.forge-stepper:not(.vertical) ::slotted(*){display:flex;align-items:center;position:relative;min-width:112px}.forge-stepper.fixed ::slotted(*){flex:1}.forge-stepper.alternative{align-items:flex-start}.forge-stepper.alternative ::slotted(*){min-width:160px}.forge-stepper.align-left{justify-content:flex-start}.forge-stepper.align-center{justify-content:center}.forge-stepper.align-right{justify-content:flex-end}",St=class extends M{static get observedAttributes(){return[R.attributes.SELECTED_INDEX,R.attributes.LINEAR,R.attributes.ALTERNATIVE,R.attributes.LAYOUT_MODE,R.attributes.LAYOUT_ALIGN,R.attributes.DISABLED,R.attributes.VERTICAL]}constructor(){super(),H(this,Rx,Fx),this._core=new fl(new _l(this))}async connectedCallback(){await Fa(this),this._core.initialize()}disconnectedCallback(){this._core.destroy()}attributeChangedCallback(t,e,a){switch(t){case R.attributes.SELECTED_INDEX:this.selectedIndex=Number(a)||0;break;case R.attributes.LINEAR:this.linear=p(a);break;case R.attributes.ALTERNATIVE:this.alternative=p(a);break;case R.attributes.LAYOUT_MODE:this.layoutMode=a;break;case R.attributes.LAYOUT_ALIGN:this.layoutAlign=a;break;case R.attributes.DISABLED:this.disabled=p(a);break;case R.attributes.VERTICAL:this.vertical=p(a);break}}};s([v()],St.prototype,"steps",2),s([v()],St.prototype,"selectedIndex",2),s([v()],St.prototype,"linear",2),s([v()],St.prototype,"alternative",2),s([v()],St.prototype,"layoutMode",2),s([v()],St.prototype,"layoutAlign",2),s([v()],St.prototype,"disabled",2),s([v()],St.prototype,"vertical",2),St=s([y({name:R.elementName,dependencies:[Y2]})],St);function _6(){x(St)}var y0=`${b}table`,f6={TABLE:"forge-table",TABLE_DENSE:"forge-table--dense",TABLE_ROOMY:"forge-table--roomy",TABLE_RESIZABLE:"forge-table--resizable",TABLE_RESIZING:"forge-table--resizing",TABLE_RESIZE_HANDLE:"forge-table__resize-handle",TABLE_NO_WRAP_CONTENT:"forge-table--no-wrap-content",TABLE_LAYOUT_FIXED:"forge-table--layout-fixed",TABLE_FILTER_VISIBLE:"forge-table--filter-visible",TABLE_FIXED:"forge-table--fixed",TABLE_HEAD:"forge-table-head",TABLE_HEAD_ROW:"forge-table-head__row",TABLE_HEAD_ROW_FILTER:"forge-table-head__row__filter",TABLE_HEAD_CELL:"forge-table-head__cell",TABLE_HEAD_CELL_CONTAINER:"forge-table-head__cell-container",TABLE_HEAD_CELL_SORTABLE:"forge-table-head__cell--sortable",TABLE_HEAD_CELL_SORT_ICON:"forge-table-head__cell-sort-icon",TABLE_HEAD_CELL_TEXT:"forge-table-head__cell-text",TABLE_HEAD_CELL_SORT_ICON_ACTIVE:"forge-table-head__cell-sort-icon--active",TABLE_HEAD_CELL_SORTED_ASCENDING:"forge-table-head__cell--sorted-ascending",TABLE_HEAD_CELL_SORTED_DESCENDING:"forge-table-head__cell--sorted-descending",TABLE_HEAD_CELL_SORT_ORDER:"forge-table-head__cell__sort-order",TABLE_HEAD_CELL_SORT_ORDER_HIDDEN:"forge-table-head__cell__sort-order--hidden",TABLE_BODY:"forge-table-body",TABLE_BODY_ROW:"forge-table-body__row",TABLE_BODY_ROW_SELECTED:"forge-table-body__row--selected",TABLE_BODY_ROW_CLICKABLE:"forge-table-body__row--clickable",TABLE_BODY_CELL:"forge-table-body__cell",TABLE_ROW:"forge-table-row",TABLE_ROW_EXPANDED:"forge-table-row--expanded",TABLE_ROW_EXPANDABLE_CONTENT:"forge-table-row__expandable-content",TABLE_ROW_EXPANDABLE_CONTENT_CELL:"forge-table-row__expandable-content-cell",TABLE_CELL:"forge-table-cell",TABLE_CELL_SELECT:"forge-table-cell__select",TABLE_CELL_SELECT_CHECKBOX:"forge-table-cell__select-checkbox",TABLE_CELL_SELECT_CHECKBOX_CONTAINER:"forge-table-cell__select-checkbox-container",TABLE_CELL_SELECT_CHECKBOX_CONTAINER_ALIGN_RIGHT:"forge-table-cell__select-checkbox-container--align-right",TABLE_CELL_SELECT_CHECKBOX_CONTAINER_ALIGN_LEFT:"forge-table-cell__select-checkbox-container--align-left",TABLE_CELL_SELECT_CHECKBOX_CONTAINER_ALIGN_CENTER:"forge-table-cell__select-checkbox-container--align-center",TABLE_CELL_CONTAINER:"forge-table-cell__container",TABLE_CELL_CONTAINER_TEXT:"forge-table-cell__container-text",TABLE_CELL_CENTER:"forge-table-cell--center",TABLE_CELL_RIGHT:"forge-table-cell--right",TABLE_CELL_RESIZABLE:"forge-table-cell--resizing"},Ux={TABLE:".forge-table",CHECKBOX_INPUT:":is(forge-checkbox,input[type=checkbox]):not([forge-ignore])",SELECT_ALL_TEMPLATE_CHECKBOX_INPUT:":is(forge-checkbox,input[type=checkbox]):not([forge-ignore])",ROW_SELECTED:`.${f6.TABLE_BODY_ROW_SELECTED}`},Wx={SELECT:"select",MULTISELECT:"multiselect",SELECT_KEY:"select-key",DENSE:"dense",ROOMY:"roomy",FILTER:"filter",FIXED_HEADERS:"fixed-headers",LAYOUT_TYPE:"layout-type",WRAP_CONTENT:"wrap-content",RESIZABLE:"resizable",MIN_RESIZE_WIDTH:"min-resize-width",ALLOW_ROW_CLICK:"allow-row-click",MULTI_COLUMN_SORT:"multi-column-sort",SELECT_CHECKBOX_ALIGNMENT:"select-checkbox-alignment",TOOLTIP_SELECT:"tooltip-select",TOOLTIP_SELECT_ALL:"tooltip-select-all",CHECKBOX_TYPE:"forge-checkbox-type",CUSTOM_CELL_TEMPLATE:"data-cell-template",CUSTOM_CELL_TEMPLATE_STOP_PROPAGATION:"data-cell-template-stop-propagation",SELECT_CHECKBOX:"forge-table-row-select-checkbox"},Gx={ROW_CLICK:`${y0}-row-click`,SELECT:`${y0}-select`,SELECT_DOUBLE:`${y0}-select-double`,SELECT_ALL:`${y0}-select-all`,SORT:`${y0}-sort`,FILTER:`${y0}-filter`,INITIALIZED:`${y0}-initialized`,COLUMN_RESIZE:`${y0}-column-resize`},Yx={SELECT_ALL:"select-all",SELECT_ROW:"select-row",DEFAULT_LAYOUT_TYPE:"auto"},Kx={SORT_DOWN:"arrow_downward"},qx={DEFAULT_FILTER_DEBOUNCE_TIME:750,MIN_RESIZE_WIDTH:100,RESIZE_HOVER_DURATION:150},f={elementName:y0,classes:f6,selectors:Ux,attributes:Wx,events:Gx,strings:Yx,icons:Kx,numbers:qx};var xl=(a=>(a.Left="left",a.Right="right",a.Center="center",a))(xl||{}),bl=(a=>(a.Ascending="ASC",a.Descending="DESC",a.Unset="UNSET",a))(bl||{}),$x=(i=>(i.InputText="text",i.InputNumber="number",i.Select="select",i.SelectMultiple="select-multiple",i.Date="date",i.DateRange="date-range",i))($x||{});function x6(r){return r&&typeof r=="object"&&"content"in r}var C1=class r{static createTable(t){r._resetTable(t.tableElement);let e=r._createTableHead(t),a=r._createTableBody(t);t.clickListener&&(r._attachRowClickListeners(a,t.clickListener,t.doubleClickListener),r._addRowClickAttributes(a)),t.fixedHeaders&&r.setFixedHeaders(t),t.resizable&&r.setResizable(t),t.dense&&r.setDenseState(t.tableElement,t.dense),t.wrapContent&&r.setWrapContentState(t.tableElement,t.wrapContent),t.selectListener&&r._addSelectColumn(e,a,t.selectListener,t.selectAllListener,t.selectAllTemplate,t.selectCheckboxAlignment,t.data,t.tooltipSelect,t.tooltipSelectAll),(t.resizable||t.columnConfigurations.some(o=>!!o.sortable))&&(r._attachHeadRowMouseDownListener(e,t.headRowMouseDownListener),r._isMac()&&r._attachHeadRowContextMenuListener(e,t.headRowContextMenuListener)),r.setLayoutType(t),r._setTableHead(t.tableElement,e),t.filter&&r.setFilterRow(t),r._setTableBody(t.tableElement,a)}static _setTableHead(t,e){t.tHead?e0(e,t.tHead):t.appendChild(e)}static _setTableBody(t,e){t.tBodies.length?e0(e,t.tBodies[0]):t.appendChild(e)}static recreateTableBody(t){let e=r._createTableBody(t);t.clickListener&&(r._attachRowClickListeners(e,t.clickListener,t.doubleClickListener),r._addRowClickAttributes(e)),t.selectListener&&(r._createBodySelectColumn(e,t.selectCheckboxAlignment,t.data,t.tooltipSelect,t.tooltipSelectAll),r._attachRowSelectListeners(e,t.selectListener)),r._setTableBody(t.tableElement,e)}static _resetTable(t){r2(t)}static _createMultisortTooltip(){let t=document.createElement("forge-tooltip");return t.textContent="Ctrl + click to sort multiple columns",t.placement="bottom",t.delay=0,t}static _createTableHead(t){let e=document.createElement("thead"),a=e.insertRow();y1([f.classes.TABLE_ROW,f.classes.TABLE_HEAD_ROW],a);let o=!1;for(let n=0;n<t.columnConfigurations.length;n++){let i=t.columnConfigurations[n],l=document.createElement("th");l.scope="col",y1([f.classes.TABLE_CELL,f.classes.TABLE_HEAD_CELL],l);let h;if(i.sortable?(h=document.createElement("button"),h.type="button",h.addEventListener("keydown",t.sortableHeadCellKeydownListener)):h=document.createElement("div"),h.classList.add(f.classes.TABLE_HEAD_CELL_CONTAINER),t.multiColumnSort){let c=r._createMultisortTooltip();h.appendChild(c)}if(i.align&&r._setCellAlignmentClass(h,i.align),k(i.width)){let c=Ul(i.width);c&&(l.style.width=c)}if(t.resizable&&i.resizable!==!1){let c=document.createElement("div");c.classList.add(f.classes.TABLE_RESIZE_HANDLE),l.appendChild(c)}if(k(i.headerCellStyle)&&nt(i.headerCellStyle)&&(Object.assign(l.style,i.headerCellStyle),Object.assign(h.style,i.headerCellStyle)),i.sortable){l.classList.add(f.classes.TABLE_HEAD_CELL_SORTABLE);let c=document.createElement("span");y1([f.classes.TABLE_HEAD_CELL_SORT_ORDER_HIDDEN,f.classes.TABLE_HEAD_CELL_SORT_ORDER],c);let d=document.createElement(h1.elementName);d.name=f.icons.SORT_DOWN,y1([f.classes.TABLE_HEAD_CELL_SORT_ICON],d),t.multiColumnSort?typeof i.initialSort=="object"&&i.initialSort.sortOrder&&(c.textContent=i.initialSort.sortOrder.toString(),t.columnConfigurations.filter(u=>typeof u.initialSort=="object").length>1&&we(f.classes.TABLE_HEAD_CELL_SORT_ORDER_HIDDEN,c),l.classList.add(f.classes.TABLE_HEAD_CELL_SORTED_DESCENDING),d.classList.add(f.classes.TABLE_HEAD_CELL_SORT_ICON_ACTIVE),r._setColumnSortDirection(l,i.initialSort.direction)):t.sortedColumn===n&&!o&&!t.multiColumnSort&&(l.classList.add(f.classes.TABLE_HEAD_CELL_SORTED_DESCENDING),d.classList.add(f.classes.TABLE_HEAD_CELL_SORT_ICON_ACTIVE),r._setColumnSortDirection(l,t.sortDirection),o=!0),h.appendChild(d),h.appendChild(c)}if(typeof i.headerTemplate=="function")Promise.resolve(i.headerTemplate(n,h,i)).then(c=>{if(c){let d=document.createElement("div");y1(f.classes.TABLE_CELL_CONTAINER,d),typeof c=="string"?d.innerHTML=c:r._prepend(c,d),d.setAttribute(f.attributes.CUSTOM_CELL_TEMPLATE,""),r._prepend(d,h)}});else{let c=document.createElement("span");c.classList.add(f.classes.TABLE_HEAD_CELL_TEXT),c.textContent=i.header&&typeof i.header=="string"?i.header.trim():"",c.textContent.trim().length===0&&l.setAttribute("aria-hidden","true"),r._prepend(c,h)}l.appendChild(h),a.appendChild(l)}return e}static setSortDirection(t,e,a){let o=r._getHeaderCellByIndex(t,e);t.querySelectorAll("th[aria-sort]").forEach(n=>n.removeAttribute("aria-sort")),r._setColumnSortDirection(o,a)}static _setColumnSortDirection(t,e){t.classList.contains(f.classes.TABLE_HEAD_CELL_SORTED_ASCENDING)&&t.classList.remove(f.classes.TABLE_HEAD_CELL_SORTED_ASCENDING),t.classList.contains(f.classes.TABLE_HEAD_CELL_SORTED_DESCENDING)&&t.classList.remove(f.classes.TABLE_HEAD_CELL_SORTED_DESCENDING),!e||e==="DESC"?(t.setAttribute("aria-sort","descending"),t.classList.add(f.classes.TABLE_HEAD_CELL_SORTED_DESCENDING)):(t.setAttribute("aria-sort","ascending"),t.classList.add(f.classes.TABLE_HEAD_CELL_SORTED_ASCENDING))}static _createTableBody(t){let e=document.createElement("tbody");return r._getOrderedRowData(t.columnConfigurations,t.data).forEach((o,n)=>{let i=e.insertRow();y1([f.classes.TABLE_ROW,f.classes.TABLE_BODY_ROW],i),r._populateRowCells(t,i,o,n),typeof t.rowCreatedCallback=="function"&&t.rowCreatedCallback(i,n,w({},t.data[n].data))}),e}static _populateRowCells(t,e,a,o){for(let n=0;n<a.length;n++){let i=t.columnConfigurations[n],l=e.insertCell();if(y1([f.classes.TABLE_CELL,f.classes.TABLE_BODY_CELL],l),k(i.width)){let c=Ul(i.width);c&&(l.style.width=c)}let h=document.createElement("div");if(h.classList.add(f.classes.TABLE_CELL_CONTAINER),k(i.cellStyle)&&nt(i.cellStyle)&&(Object.assign(l.style,i.cellStyle),Object.assign(h.style,i.cellStyle)),i.template&&typeof i.template=="function"){let c=t.data[o]?t.data[o].data:void 0;Promise.resolve(i.template(o,h,c,n)).then(d=>{let u=x6(d)?d:{content:d,stopClickPropagation:i.stopCellTemplateClickPropagation};u.content&&(typeof u.content=="string"?h.innerHTML=u.content:h.appendChild(u.content),h.setAttribute(f.attributes.CUSTOM_CELL_TEMPLATE,""),u.stopClickPropagation&&h.setAttribute(f.attributes.CUSTOM_CELL_TEMPLATE_STOP_PROPAGATION,""))})}else if(i.property){let c=document.createElement("span");c.classList.add(f.classes.TABLE_CELL_CONTAINER_TEXT),h.appendChild(c),i.transform&&typeof i.transform=="function"?Promise.resolve(i.transform(a[n])).then(d=>c.textContent=d):a[n]==null?c.textContent="":c.textContent=a[n].toString()}if(i.align&&r._setCellAlignmentClass(h,i.align),l.appendChild(h),k(i.columnSpan)){if(i.columnSpan==="all"){l.colSpan=a.length-n;break}else if(typeof i.columnSpan=="number"&&i.columnSpan>0){let c=i.columnSpan;i.columnSpan>a.length-n&&(c=a.length),l.colSpan=c,n=n+(c-1)}}typeof t.cellCreatedCallback=="function"&&t.cellCreatedCallback(l,o,n)}}static _setCellAlignmentClass(t,e){switch(e){case"center":t.classList.add(f.classes.TABLE_CELL_CENTER);break;case"right":t.classList.add(f.classes.TABLE_CELL_RIGHT);break}}static _getNonExpandedRows(t){return Array.from(t).filter(e=>!e.classList.contains(f.classes.TABLE_ROW_EXPANDABLE_CONTENT))}static _getExpandedRows(t){return Array.from(t).filter(e=>e.classList.contains(f.classes.TABLE_ROW_EXPANDABLE_CONTENT))}static _createColumnDataMap(t,e){return t.map(a=>({config:a,data:e.map(o=>{if(a.property){let n=y5(o.data,a.property);return k(n)?n:null}return null})}))}static _getOrderedRowData(t,e){let a=r._createColumnDataMap(t,e),o=[];for(let n of a)for(let i=0;i<n.data.length;i++)o[i]||(o[i]=[]),o[i].push(n.data[i]);return o}static _attachRowClickListeners(t,e,a){r._getNonExpandedRows(t.rows).forEach(n=>{n.addEventListener("click",e),a&&n.addEventListener("dblclick",a)})}static _addRowClickAttributes(t){r._getNonExpandedRows(t.rows).forEach(a=>{a.classList.add(f.classes.TABLE_BODY_ROW_CLICKABLE)})}static _removeRowClickAttributes(t){r._getNonExpandedRows(t.rows).forEach(a=>{a.classList.remove(f.classes.TABLE_BODY_ROW_CLICKABLE)})}static _attachRowSelectListeners(t,e){r._getNonExpandedRows(t.rows).forEach(o=>r._attachRowSelectListener(o,e))}static _attachRowSelectListener(t,e){let a=r._getCheckboxElement(t);a==null||a.addEventListener("click",e)}static _detachRowSelectListeners(t,e){Array.from(t.rows).forEach(a=>{let o=r._getCheckboxElement(a);o==null||o.removeEventListener("click",e)})}static _detachRowClickListeners(t,e,a){Array.from(t.rows).forEach(o=>{o.removeEventListener("click",e),o.removeEventListener("dblclick",a)})}static _attachSelectAllListener(t,e){let a=t.rows[t.rows.length-1],o=r._getCheckboxElement(a);if(!o)throw new Error("Checkbox element not found.");o.addEventListener("change",e)}static _tryAttachSelectAllTemplateListener(t,e){let a=t.rows[t.rows.length-1],o=r._tryGetSelectAllCheckboxElement(a);o&&o.addEventListener("change",e)}static _detachSelectAllListener(t,e){let a=t.rows[t.rows.length-1],o=r._tryGetSelectAllCheckboxElement(a);o&&o.removeEventListener("change",e)}static _attachHeadRowMouseDownListener(t,e){let a=t.rows[0];if(!a)throw new Error("Missing table header row. Unable to attach sort listener.");a.addEventListener("mousedown",e)}static _attachHeadRowContextMenuListener(t,e){let a=t.rows[0];if(!a)throw new Error("Missing table header row. Unable to attach sort listener.");a.addEventListener("contextmenu",e)}static _createSelectColumn(t,e,a,o,n,i,l,h,c){t&&r._createHeadSelectColumn(t,a,o,n,i,c),e&&r._createBodySelectColumn(e,i,l,h,c)}static _createHeadSelectColumn(t,e,a,o,n,i){var l;if(Array.from(t.rows).forEach(h=>{let c=document.createElement("th");y1([f.classes.TABLE_CELL,f.classes.TABLE_HEAD_CELL],c),h.insertBefore(c,h.cells.item(0))}),e){let h=(l=t.rows.item(t.rows.length-1))==null?void 0:l.cells.item(0);h.classList.add(f.classes.TABLE_CELL_SELECT),typeof a=="function"?r._renderSelectAllTemplate(a,t).then(()=>{typeof o=="function"&&o()}):h==null||h.appendChild(r._createCheckboxElement(!0,n,null,null,null,i))}}static _createBodySelectColumn(t,e,a,o,n){if(r._getNonExpandedRows(t.rows).forEach((l,h)=>r._addRowSelectColumn(l,e,h,a[h],o,n)),t.rows.length){let l=t.rows.item(0);l&&r._updateExpandedRowColspan(t.rows,l.cells.length)}}static _addRowSelectColumn(t,e,a,o,n,i){let l=t.insertCell(0);y1([f.classes.TABLE_CELL,f.classes.TABLE_BODY_CELL,f.classes.TABLE_CELL_SELECT],l),l.appendChild(r._createCheckboxElement(!1,e,a,o,n,i))}static _destroySelectColumn(t,e){let a=r._getNonExpandedRows(e.rows);if(Array.from(t.rows).forEach(o=>o.removeChild(o.cells.item(0))),Array.from(a).forEach(o=>o.removeChild(o.cells.item(0))),e.rows.length){let o=e.rows.item(0);o&&r._updateExpandedRowColspan(e.rows,o.cells.length)}}static _hasSelectColumn(t,e){return[...Array.from(t.rows),...Array.from(e.rows)].some(o=>o.cells.item(0).classList.contains(f.classes.TABLE_CELL_SELECT))}static _createCheckboxElement(t,e,a,o,n,i){let l=document.createElement("div");if(l.classList.add(f.classes.TABLE_CELL_SELECT_CHECKBOX_CONTAINER),e)switch(e){case"center":l.classList.add(f.classes.TABLE_CELL_SELECT_CHECKBOX_CONTAINER_ALIGN_CENTER);break;case"left":l.classList.add(f.classes.TABLE_CELL_SELECT_CHECKBOX_CONTAINER_ALIGN_LEFT);break;case"right":l.classList.add(f.classes.TABLE_CELL_SELECT_CHECKBOX_CONTAINER_ALIGN_RIGHT);break}let h=document.createElement(z1.elementName);h.setAttribute(f.attributes.SELECT_CHECKBOX,""),l.appendChild(h);let c=d=>{let u=document.createElement("forge-tooltip");return u.placement="left",u.type="label",u.textContent=d,u};if(t)if(typeof i=="string"&&i.length){let u=c(i);l.appendChild(u)}else h.setAttribute("aria-label","Select all rows");else{let d=n||"";if(o&&typeof n=="function"&&(d=n.call(null,a,o.data)),typeof d=="string"&&d.length){let u=c(d);l.appendChild(u)}else h.setAttribute("aria-label","Select row")}return l}static _getCheckboxElement(t){let e=t.querySelector(`.${f.classes.TABLE_CELL_SELECT}`);return e?e.querySelector(f.selectors.CHECKBOX_INPUT):null}static _tryGetSelectAllCheckboxElement(t){let e=t.querySelector(`.${f.classes.TABLE_CELL_SELECT}`);return e?e.querySelector(f.selectors.CHECKBOX_INPUT)||e.querySelector(f.selectors.SELECT_ALL_TEMPLATE_CHECKBOX_INPUT):null}static _setSelectedCheckboxState(t,e){t&&(t.checked=e)}static _setIndeterminateCheckboxState(t,e){t&&(t.indeterminate=e)}static _setRowSelectedState(t,e){e?t.classList.contains(f.classes.TABLE_BODY_ROW_SELECTED)||t.classList.add(f.classes.TABLE_BODY_ROW_SELECTED):t.classList.remove(f.classes.TABLE_BODY_ROW_SELECTED)}static _updateExpandedRowColspan(t,e){r._getExpandedRows(t).forEach(o=>{let n=o.cells.item(0);n&&(n.colSpan=e)})}static updateSelectedState(t,e){r._setRowSelectedState(t,e);let a=r._getCheckboxElement(t);a&&r._setSelectedCheckboxState(a,e)}static getRowByIndex(t,e){return r._getNonExpandedRows(t.tBodies[0].rows)[e]}static updateSelectAllState(t,e,a){if(!t.tHead)return;let o=t.tHead.rows[t.tHead.rows.length-1],n=r._tryGetSelectAllCheckboxElement(o);n&&(r._setSelectedCheckboxState(n,e),r._setIndeterminateCheckboxState(n,!!a))}static setSelectedRows(t,e,a,o,n=!1){if(!t.tBodies.length)return;n||r.clearSelectedRows(t);let i=t.tBodies[0].rows,l=0;o.length&&Array.from(i).forEach((h,c)=>{let d=a[c];if(Pr(o,ha(e,d))){r._setRowSelectedState(h,!0);let _=r._getCheckboxElement(h);_&&r._setSelectedCheckboxState(_,!0),l++}}),r.updateSelectAllState(t,l>0&&i.length===l)}static clearSelectedRows(t){if(!t.tBodies.length)return;r._getNonExpandedRows(t.tBodies[0].rows).forEach(a=>{r._setRowSelectedState(a,!1);let o=r._getCheckboxElement(a);o&&r._setSelectedCheckboxState(o,!1)})}static setSortedColumn(t,e,a){let o=r._getHeaderCellByIndex(t,e);r._getSortIconElementFromHeaderCell(o).classList.add(f.classes.TABLE_HEAD_CELL_SORT_ICON_ACTIVE),r._setColumnSortDirection(o,a)}static setMultiSortColumnSortNumber(t,e,a,o){let l=r._getHeaderCellByIndex(t,a).querySelector(`.${f.classes.TABLE_HEAD_CELL_CONTAINER}`).querySelector(`.${f.classes.TABLE_HEAD_CELL_SORT_ORDER}`);l&&(_2(l,typeof o!="number"||!e,f.classes.TABLE_HEAD_CELL_SORT_ORDER_HIDDEN),o&&(l.textContent=o.toString()))}static removeColumnSort(t,e){let a=r._getHeaderCellByIndex(t,e);a.removeAttribute("aria-sort"),a.classList.contains(f.classes.TABLE_HEAD_CELL_SORTED_ASCENDING)&&a.classList.remove(f.classes.TABLE_HEAD_CELL_SORTED_ASCENDING),a.classList.contains(f.classes.TABLE_HEAD_CELL_SORTED_DESCENDING)&&a.classList.remove(f.classes.TABLE_HEAD_CELL_SORTED_DESCENDING);let o=r._getSortIconElementFromHeaderCell(a);o&&o.classList.contains(f.classes.TABLE_HEAD_CELL_SORT_ICON_ACTIVE)&&o.classList.remove(f.classes.TABLE_HEAD_CELL_SORT_ICON_ACTIVE)}static _getHeaderCellByIndex(t,e){if(!t.tHead)throw new Error("Table head element cannot be null.");return t.tHead.rows.item(0).cells.item(e)}static _getSortIconElementFromHeaderCell(t){return t.querySelector(`.${f.classes.TABLE_HEAD_CELL_SORT_ICON}`)}static setSelectColumnVisibility(t,e,a,o,n,i,l,h,c){let d=t.tHead,u=t.tBodies[0];!d||!u||(e?r._addSelectColumn(d,u,a,o,n,i,l,h,c):r._hasSelectColumn(d,u)&&(a&&r._detachRowSelectListeners(u,a),o&&r._detachSelectAllListener(d,o),r._destroySelectColumn(d,u)))}static _addSelectColumn(t,e,a,o,n,i,l,h,c){r._createSelectColumn(t,e,!!o,n,()=>{o&&r._tryAttachSelectAllTemplateListener(t,o)},i,l,h,c),a&&r._attachRowSelectListeners(e,a),o&&!n&&r._tryAttachSelectAllTemplateListener(t,o)}static setDenseState(t,e){t.classList.contains(f.classes.TABLE_DENSE)&&t.classList.remove(f.classes.TABLE_DENSE),e&&t.classList.add(f.classes.TABLE_DENSE)}static setRoomyState(t,e){t.classList.contains(f.classes.TABLE_ROOMY)&&t.classList.remove(f.classes.TABLE_ROOMY),e&&t.classList.add(f.classes.TABLE_ROOMY)}static setResizable(t){let e=t.tableElement.tHead;t.resizable?(t.tableElement.classList.add(f.classes.TABLE_RESIZABLE),r._addResizeHandles(e,t)):(t.tableElement.classList.remove(f.classes.TABLE_RESIZABLE),r._removeResizeHandles(e,t))}static _addResizeHandles(t,e){if(!t)return;let a=t.rows.item(0);if(a){let o=Array.from(a.cells);e.selectListener&&(o=o.slice(1));for(let n of o){let i=o.indexOf(n);if(e.columnConfigurations[i].resizable!==!1){let h=document.createElement("div");h.classList.add(f.classes.TABLE_RESIZE_HANDLE),n.appendChild(h)}}}}static _removeResizeHandles(t,e){if(!t)return;let a=t.rows.item(0);if(a){let o=Array.from(a.cells);e.selectListener&&(o=o.slice(1));for(let n of o){let i=document.querySelector(`.${f.classes.TABLE_RESIZE_HANDLE}`);i&&n.removeChild(i)}}}static setWrapContentState(t,e){e?t.classList.remove(f.classes.TABLE_NO_WRAP_CONTENT):t.classList.add(f.classes.TABLE_NO_WRAP_CONTENT)}static setSelectAllVisibility(t,e,a,o,n,i){let l=t.tHead;if(!l)return;!e&&a&&r._detachSelectAllListener(l,a);let c=l.rows[l.rows.length-1].cells.item(0);e?c.childElementCount||(c.classList.add(f.classes.TABLE_CELL_SELECT),o?r._renderSelectAllTemplate(o,l).then(()=>{a&&r._tryAttachSelectAllTemplateListener(l,a)}):c.appendChild(r._createCheckboxElement(!0,n||null,null,null,null,i)),a&&!o&&r._attachSelectAllListener(l,a)):(a&&r._detachSelectAllListener(l,a),r2(c))}static setFilterRow(t){if(!t.tableElement.tHead)return;let e=r._getFilterRowElement(t.tableElement.tHead),a;if(t.filter?t.tableElement.classList.add(f.classes.TABLE_FILTER_VISIBLE):t.tableElement.classList.remove(f.classes.TABLE_FILTER_VISIBLE),t.filter&&!e){if(t.columnConfigurations.every(n=>!n.filter))return;t.selectListener&&t.selectAllListener&&(a=t.tableElement.tHead.rows[t.tableElement.tHead.rows.length-1].cells.item(0));let o=r._createFilterRowElement(t);o&&a&&Array.from(a.children).forEach(n=>{var i;(i=o.cells.item(0))==null||i.appendChild(n)})}else if(!t.filter&&e){if(t.selectListener&&t.selectAllListener){a=e.cells.item(0);let o=Array.from(t.tableElement.tHead.rows).indexOf(e)-1,n=t.tableElement.tHead.rows.item(o);n&&Array.from(a.children).forEach(i=>{var l;(l=n.cells.item(0))==null||l.appendChild(i)})}Te(e)}}static _createFilterRowElement(t){if(!t.tableElement.tHead)throw new Error("Table head element cannot be null.");let e=t.tableElement.tHead.insertRow();if(y1([f.classes.TABLE_ROW,f.classes.TABLE_HEAD_ROW_FILTER],e),t.selectListener){let a=document.createElement("th");y1([f.classes.TABLE_CELL,f.classes.TABLE_HEAD_CELL],a),e.insertBefore(a,e.cells[0]),a.classList.add(f.classes.TABLE_CELL_SELECT)}return t.columnConfigurations.forEach((a,o)=>{let n=document.createElement("th");if(y1([f.classes.TABLE_CELL,f.classes.TABLE_HEAD_CELL],n),a.filter&&k(a.filterDelegate)){let i=document.createElement("div");i.classList.add(f.classes.TABLE_HEAD_CELL_CONTAINER),a.align&&r._setCellAlignmentClass(i,a.align);let l=r._createFilterElement(a,o,t.filterListener);i.appendChild(l),n.appendChild(i)}e.appendChild(n)}),e}static _createFilterElement(t,e,a){let o;if(t0(t.filterDelegate))o=t.filterDelegate();else if(t.filterDelegate instanceof a2||t.filterDelegate instanceof X1)o=t.filterDelegate;else throw new Error("Invalid filter delegate.");if(a&&o instanceof a2&&t0(o.onChange))if(!k(t.filterDebounceTime)||z2(t.filterDebounceTime)){let n=k(t.filterDebounceTime)?t.filterDebounceTime:f.numbers.DEFAULT_FILTER_DEBOUNCE_TIME;o.onChange(Ae(i=>a(i,e),n))}else o.onChange(n=>a(n,e));return o.element}static _getFilterRowElement(t){if(t)return Array.from(t.rows).find(e=>e.classList.contains(f.classes.TABLE_HEAD_ROW_FILTER))}static async expandRow(t,e,a){let o=t.tableElement.tBodies[0],i=r._getNonExpandedRows(o.rows)[e];i.classList.add(f.classes.TABLE_ROW_EXPANDED);let l=Array.from(o.rows).indexOf(i),h=o.insertRow(l+1);y1([f.classes.TABLE_ROW,f.classes.TABLE_BODY_ROW,f.classes.TABLE_ROW_EXPANDABLE_CONTENT],h);let c=h.insertCell();c.setAttribute("colspan",i.cells.length.toString()),c.classList.add(f.classes.TABLE_ROW_EXPANDABLE_CONTENT_CELL);let d=document.createElement("div"),u=document.createElement(D1.elementName);u.appendChild(d),c.appendChild(u);let _=a;if(t0(a)){let L=t.data[e]?t.data[e].data:void 0,C=a(e,d,L);try{let A=await Promise.resolve(C);_=x6(A)?A.content:A}catch(A){console.error("Failed to load row template "+A.message),_=""}}_&&r._setRowTemplate(d,_),window.requestAnimationFrame(()=>u.open=!0)}static _setRowTemplate(t,e){Pt(e)?t.innerHTML=e:t.appendChild(e)}static collapseRow(t,e){if(!t.tableElement||!t.tableElement.tBodies.length||!t.tableElement.tBodies[0].rows.length)return Promise.resolve();let a=t.tableElement.tBodies[0],n=r._getNonExpandedRows(a.rows)[e],i=Array.from(a.rows).indexOf(n);if(n&&n.classList.contains(f.classes.TABLE_ROW_EXPANDED)){let l=a.rows[i+1],h=l.querySelector(D1.elementName);if(h&&h.open){let c=new Promise(d=>{h.addEventListener(D1.events.ANIMATION_COMPLETE,()=>{n.classList.remove(f.classes.TABLE_ROW_EXPANDED),Te(l),d()},{once:!0})});return h.open=!1,c}}return Promise.resolve()}static isRowExpanded(t,e){let a=t.tableElement.tBodies[0],n=r._getNonExpandedRows(a.rows)[e];return n&&n.classList.contains(f.classes.TABLE_ROW_EXPANDED)}static setFixedHeaders(t){t.fixedHeaders?t.tableElement.classList.add(f.classes.TABLE_FIXED):t.tableElement.classList.remove(f.classes.TABLE_FIXED)}static setLayoutType(t){t.layoutType==="fixed"?t.tableElement.classList.add(f.classes.TABLE_LAYOUT_FIXED):t.tableElement.classList.remove(f.classes.TABLE_LAYOUT_FIXED)}static normalizeColumnWidths(t){let e=t.tableElement;if(e.tHead&&e.tHead.rows.length){let a=Array.from(e.tHead.rows[0].cells);for(let o of a){let n=getComputedStyle(o).width;o.style.width&&o.style.width!==n&&(o.style.width=n)}}}static setColumnResizeIndicatorVisibility(t,e,a){let o=t.tableElement;if(o.tHead&&o.tHead.rows.length){let n=Array.from(o.tHead.rows);for(let i of n){let l=i.cells[e];l&&(a?l.classList.add(f.classes.TABLE_CELL_RESIZABLE):l.classList.remove(f.classes.TABLE_CELL_RESIZABLE))}}if(o.tBodies.length){let n=Array.from(o.tBodies[0].rows);for(let i of n){let l=i.cells[e];l&&(a?l.classList.add(f.classes.TABLE_CELL_RESIZABLE):l.classList.remove(f.classes.TABLE_CELL_RESIZABLE))}}}static setRowClickListeners(t,e,a,o){let n=t.tBodies[0];n&&(e?r._attachRowClickListeners(n,a,o):r._detachRowClickListeners(n,a,o))}static setRowClickAttributes(t,e){let a=t.tBodies[0];a&&(e?r._addRowClickAttributes(a):r._removeRowClickAttributes(a))}static getOwnerDocument(t){return t.ownerDocument||document}static _prepend(t,e){let a=e.childNodes.item(0);a?e.insertBefore(t,a):e.appendChild(t)}static _isMac(){return!!(navigator&&navigator.platform&&navigator.platform.substr(0,3)==="Mac")}static _renderSelectAllTemplate(t,e){return Promise.resolve(t()).then(a=>{let o=e.rows.item(e.rows.length-1);if(!o)return;let n=o.cells.item(0);a&&n&&(typeof a=="string"?n.innerHTML=a:a instanceof HTMLElement&&n.appendChild(a),n.setAttribute(f.attributes.CUSTOM_CELL_TEMPLATE,""))})}};var yl=class extends I{constructor(t){super(t)}initialize(){this._tableElement||(this._tableElement=document.createElement("table"),this._tableElement.classList.add(f.classes.TABLE),this._component.children.length&&r2(this._component),this._component.appendChild(this._tableElement))}getTableElement(){return this._tableElement||this.initialize(),this._tableElement}createTable(t){return C1.createTable(t)}recreateTableBody(t){C1.recreateTableBody(t)}setSelectedRows(t,e,a,o,n=!1){C1.setSelectedRows(t,e,a,o,n)}clearSelectedRows(t){C1.clearSelectedRows(t)}updateSelectedState(t,e){C1.updateSelectedState(t,e)}updateSelectAllState(t,e,a){C1.updateSelectAllState(t,e,a)}setSortedColumn(t,e,a){C1.setSortedColumn(t,e,a)}removeColumnSort(t,e){C1.removeColumnSort(t,e)}setSortDirection(t,e,a){C1.setSortDirection(t,e,a)}setSelectColumnVisibility(t,e,a,o,n,i,l,h,c){C1.setSelectColumnVisibility(t,e,a,o||null,n||null,i||null,l||[],h||null,c||null)}setDense(t,e){C1.setDenseState(t,e)}setRoomy(t,e){C1.setRoomyState(t,e)}setResizable(t){C1.setResizable(t)}setSelectAllVisibility(t,e,a,o,n,i=null){C1.setSelectAllVisibility(t,e,a,o,n||null,i||null)}setFilterRow(t){C1.setFilterRow(t)}expandRow(t,e,a){return C1.expandRow(t,e,a)}collapseRow(t,e){return C1.collapseRow(t,e)}isRowExpanded(t,e){return C1.isRowExpanded(t,e)}setFixedHeaders(t){C1.setFixedHeaders(t)}setTableLayoutType(t){C1.setLayoutType(t)}setWrapContentState(t){C1.setWrapContentState(t.tableElement,t.wrapContent)}addDocumentListener(t,e){C1.getOwnerDocument(this._component).addEventListener(t,e)}removeDocumentListener(t,e){C1.getOwnerDocument(this._component).removeEventListener(t,e)}normalizeColumnWidths(t){C1.normalizeColumnWidths(t)}setResizeColumnVisibility(t,e,a){C1.setColumnResizeIndicatorVisibility(t,e,a)}addTableClass(t){y1(t,this._tableElement)}removeTableClass(t){we(t,this._tableElement)}setRowClickListeners(t,e,a,o){C1.setRowClickListeners(t,e,a,o)}setRowClickAttributes(t,e){C1.setRowClickAttributes(t,e)}};var Ml=class{constructor(){this._sortedColumns=[]}get sortedColumns(){return[...this._sortedColumns.map(t=>w({},t))]}addSortColumn(t){this._sortedColumns.push(w({},t)),this._updateSortNumbers()}updateSortColumn(t){let e=this._sortedColumns.find(a=>a.columnIndex===t.columnIndex);if(e)switch(e.direction){case"ASC":this.removeSortColumn(t);break;case"DESC":e.direction="ASC";break;case"UNSET":e.direction="DESC";break}}setSortColumns(t){this._sortedColumns=[...t.map(e=>w({},e))]}removeSortColumn(t){typeof t=="number"?this._sortedColumns.splice(t,1):this._sortedColumns.splice(this._sortedColumns.indexOf(t),1),this._updateSortNumbers()}isSortColumn(t){return typeof t=="number"?this._sortedColumns.some(e=>e.columnIndex===t):this._sortedColumns.includes(t)}clearMultiSort(){this._sortedColumns=[]}getSortColumn(t){return this._sortedColumns.find(e=>e.columnIndex===t)}_updateSortNumbers(){this._sortedColumns.every(t=>typeof t.sortOrder=="number")&&this._sortedColumns.sort((t,e)=>t.sortOrder-e.sortOrder),this._sortedColumns.forEach((t,e)=>t.sortOrder=e+1)}};var Hl=class{constructor(t,e=!1){this.data=t;this.selected=e}};var Ll=class{constructor(t){this._adapter=t;this._tableRows=[];this._data=[];this._columnConfigurations=[];this._select=!1;this._multiselect=!0;this._dense=!1;this._roomy=!1;this._filter=!1;this._fixedHeaders=!1;this._layoutType=f.strings.DEFAULT_LAYOUT_TYPE;this._wrapContent=!0;this._resizable=!1;this._minResizeWidth=f.numbers.MIN_RESIZE_WIDTH;this._multiColumnSort=!1;this._selectCheckboxAlignment="center";this._isAllSelected=!1;this._sortedColumnIndex=-1;this._rendered=!1;this._allowRowClick=!1;this._multiSortManager=new Ml;this._rowClickListener=e=>this._onRowClick(e),this._rowDoubleClickListener=e=>this._onRowDoubleClick(e),this._selectRowListener=e=>this._onRowSelected(e),this._selectAllListener=e=>this._onSelectAll(e),this._sortableHeadCellKeydownListener=e=>this._onSortableHeadCellKeydown(e),this._headRowMouseDownListener=e=>this._onHeadRowMouseDown(e),this._headRowContextMenuListener=e=>this._onHeadRowContextMenu(e),this._documentMouseMoveListener=e=>this._onMouseMove(e),this._documentMouseUpListener=e=>this._onMouseUp(e),this._filterListener=(e,a)=>this._onFilter(e,a),this._selectionManager=new Ro(this._selectKey),this._hiddenColumnManager=new Ro}initialize(){this._adapter.initialize(),this._adapter.setHostAttribute(f.attributes.SELECT,this._select.toString()),this._adapter.setHostAttribute(f.attributes.MULTISELECT,this._multiselect.toString()),this._adapter.setHostAttribute(f.attributes.DENSE,this._dense.toString()),this._adapter.setHostAttribute(f.attributes.ROOMY,this._roomy.toString()),this._adapter.setHostAttribute(f.attributes.FILTER,this._filter.toString()),this._adapter.emitHostEvent(f.events.INITIALIZED,void 0,!1)}destroy(){this._resizeDescriptor=void 0,this._adapter.removeDocumentListener("mousemove",this._documentMouseMoveListener),this._adapter.removeDocumentListener("mouseup",this._documentMouseUpListener)}set data(t){Array.isArray(t)&&t.length>0?nt(t[0])?this._data=t.map(e=>w({},e)):this._data=[...t]:this._data=[],this._tableRows=this._data.map(e=>new Hl(e,this._selectionManager.exists(e))),this._renderBody()}get data(){return this._data.map(t=>w({},t))}set columnConfigurations(t){this._columnConfigurations=t.map(e=>w({},e)),this._hiddenColumnManager.clear(),this._columnConfigurations.forEach(e=>{e.hidden&&this._hiddenColumnManager.add(e)}),this._refreshTableSort(),this.render()}get columnConfigurations(){return this._columnConfigurations.map(t=>w({},t))}get _visibleColumnConfigurations(){return this._columnConfigurations.filter(t=>!this._hiddenColumnManager.exists(t))}get _tableConfiguration(){return{tableElement:this._adapter.getTableElement(),columnConfigurations:this._visibleColumnConfigurations,data:this._tableRows,clickListener:this._allowRowClick?this._rowClickListener:null,doubleClickListener:this._allowRowClick?this._rowDoubleClickListener:null,selectListener:this._select?this._selectRowListener:null,selectAllListener:this._multiselect?this._selectAllListener:null,sortableHeadCellKeydownListener:this._sortableHeadCellKeydownListener,headRowMouseDownListener:this._headRowMouseDownListener,headRowContextMenuListener:this._headRowContextMenuListener,filterListener:this._filter?this._filterListener:null,sortDirection:this._sortDirection,sortedColumn:this._sortedColumnIndex,multiColumnSort:this._multiColumnSort,filter:this._filter,wrapContent:this._wrapContent,fixedHeaders:this._fixedHeaders,layoutType:this._layoutType,dense:this._dense,resizable:this._resizable,rowCreatedCallback:this._rowCreatedCallback,cellCreatedCallback:this._cellCreatedCallback,selectAllTemplate:this._selectAllTemplate,selectCheckboxAlignment:this._selectCheckboxAlignment,tooltipSelect:this._tooltipSelect,tooltipSelectAll:this._tooltipSelectAll}}set select(t){this._select!==t&&(this._select=t,this._adapter.setSelectColumnVisibility(this._adapter.getTableElement(),this._select,this._selectRowListener,this._multiselect?this._selectAllListener:void 0,this._multiselect?this._selectAllTemplate:null,this._selectCheckboxAlignment,this._tableRows,this._tooltipSelect,this._tooltipSelectAll),this._updateSelections(!0),this._select?this._adapter.setHostAttribute(f.attributes.SELECT,this._select.toString()):this._adapter.removeHostAttribute(f.attributes.SELECT))}get select(){return this._select}set multiselect(t){this._multiselect!==t&&(this._multiselect=t,this._select&&(this._adapter.setSelectAllVisibility(this._adapter.getTableElement(),this._multiselect,this._multiselect?this._selectAllListener:null,this._multiselect?this.selectAllTemplate:null,this._selectCheckboxAlignment,this._tooltipSelectAll),this._updateSelections(!0)),this._adapter.setHostAttribute(f.attributes.MULTISELECT,this._multiselect.toString()))}get multiselect(){return this._multiselect}get selectKey(){return Array.isArray(this._selectKey)?[...this._selectKey]:this._selectKey}set selectKey(t){this._originalSelectKey!==t&&(Array.isArray(t)?(this._originalSelectKey=[...t],this._selectKey=[...t]):(this._originalSelectKey=t,this._selectKey=[t]),this._selectionManager.setKey(this._selectKey),this._updateSelections(!1))}get dense(){return this._dense}set dense(t){this._dense!==t&&(this._dense=t,this._adapter.setDense(this._adapter.getTableElement(),this._dense),this._adapter.setHostAttribute(f.attributes.DENSE,this._dense.toString()))}get roomy(){return this._roomy}set roomy(t){t!==this._roomy&&(this._roomy=t,this._applyRoomy())}set filter(t){this._filter!==t&&(this._filter=t,this._adapter.setFilterRow(this._tableConfiguration),this._adapter.setHostAttribute(f.attributes.FILTER,this._filter.toString()))}get filter(){return this._filter}set fixedHeaders(t){this._fixedHeaders!==t&&(this._fixedHeaders=t,this._adapter.setFixedHeaders(this._tableConfiguration))}get fixedHeaders(){return this._fixedHeaders}get layoutType(){return this._layoutType}set layoutType(t){this._layoutType!==t&&(this._layoutType=t,this._adapter.setTableLayoutType(this._tableConfiguration))}get wrapContent(){return this._wrapContent}set wrapContent(t){this._wrapContent!==t&&(this._wrapContent=t,this._adapter.setWrapContentState(this._tableConfiguration))}get resizable(){return this._resizable}set resizable(t){this._resizable!==t&&(this._resizable=t,this._adapter.setResizable(this._tableConfiguration))}get minResizeWidth(){return this._minResizeWidth}set minResizeWidth(t){this._minResizeWidth!==t&&(this._minResizeWidth=t,z2(this._minResizeWidth)?this._minResizeWidth<0&&(this._minResizeWidth=0):this._minResizeWidth=f.numbers.MIN_RESIZE_WIDTH)}get allowRowClick(){return this._allowRowClick}set allowRowClick(t){this._allowRowClick!==t&&(this._allowRowClick=t,this._rendered&&(this._adapter.setRowClickListeners(this._adapter.getTableElement(),this._allowRowClick,this._rowClickListener,this._rowDoubleClickListener),this._adapter.setRowClickAttributes(this._adapter.getTableElement(),this._allowRowClick)))}get multiColumnSort(){return this._multiColumnSort}set multiColumnSort(t){t!==this._multiColumnSort&&(this._multiColumnSort=t,this._refreshTableSort(),this.render())}get selectCheckboxAlignment(){return this._selectCheckboxAlignment}set selectCheckboxAlignment(t){t!==this._selectCheckboxAlignment&&(this._selectCheckboxAlignment=t,this._adapter.setHostAttribute(f.attributes.SELECT_CHECKBOX_ALIGNMENT,t),this.render())}get tooltipSelect(){return this._tooltipSelect}set tooltipSelect(t){t!==this._tooltipSelect&&(this._tooltipSelect=t,typeof t=="string"&&this._adapter.setHostAttribute(f.attributes.TOOLTIP_SELECT,t),this.render())}get tooltipSelectAll(){return this._tooltipSelectAll}set tooltipSelectAll(t){t!==this._tooltipSelectAll&&(this._tooltipSelectAll=t,this._adapter.setHostAttribute(f.attributes.TOOLTIP_SELECT_ALL,t),this.render())}get selectAllTemplate(){return this._selectAllTemplate}set selectAllTemplate(t){t!==this._selectAllTemplate&&(this._selectAllTemplate=t,this.render())}get rowCreated(){return this._rowCreatedCallback}set rowCreated(t){this._rowCreatedCallback=t}get cellCreated(){return this._cellCreatedCallback}set cellCreated(t){this._cellCreatedCallback=t}isRowSelected(t){let e=ha(Array.isArray(this._selectKey)?this._selectKey:[this._selectKey],t);return this.selectKey?!!this._selectionManager.getItems().find(a=>Nr(a,e)):this._selectionManager.exists(t)}getSelectedRows(){return this._selectionManager.getItems()}selectRows(t,e){if(!this._selectKey)throw new Error("You must set a selectKey to select rows.");(!this._multiselect||e)&&this.clearSelections(),t&&t.length&&(this._selectionManager.add(t),this._updateSelections(!e))}deselectRows(t){t&&t.length&&(this._selectionManager.remove(t),this._updateSelections(!1))}clearSelections(){let t=this._adapter.getTableElement();this._selectionManager.clear(),this._tableRows.forEach(e=>e.selected=!1),this._isAllSelected=!1,this._adapter.clearSelectedRows(t),this._select&&this._multiselect&&this._adapter.updateSelectAllState(t,!1)}hideColumn(t){let e=this._columnConfigurations[t];this._sortedColumnIndex===t&&(this._sortedColumnIndex=-1),this._hiddenColumnManager.exists(e)||(this._hiddenColumnManager.add(e),this.render())}showColumn(t){let e=this._columnConfigurations[t];this._hiddenColumnManager.exists(e)&&(this._hiddenColumnManager.remove(e),this.render())}isColumnHidden(t){let e=this._columnConfigurations[t];return!!e&&this._hiddenColumnManager.exists(e)}render(){this._adapter.createTable(this._tableConfiguration),this._renderSelections(),this._rendered=!0}_renderBody(){this._rendered&&(this._adapter.recreateTableBody(this._tableConfiguration),this._renderSelections())}_renderSelections(){this.select&&(this._isAllSelected=this._getSelectAllState(),this._multiselect&&this._adapter.updateSelectAllState(this._adapter.getTableElement(),this._isAllSelected,this._isIndeterminate(this._isAllSelected)));let t=this._selectionManager.getItems();t.length&&this._adapter.setSelectedRows(this._adapter.getTableElement(),this._selectKey,this._data,t,!1)}expandRow(t,e){if(!this._rendered)throw new Error("Cannot expand a row before the table has rendered.");if(t<0||t>this._tableRows.length)throw new Error(`Invalid row index: ${t}.`);return this._adapter.expandRow(this._tableConfiguration,t,e)}collapseRow(t){return!this._rendered||t<0||t>this._tableRows.length?Promise.resolve():this._adapter.collapseRow(this._tableConfiguration,t)}isRowExpanded(t){return this._adapter.isRowExpanded(this._tableConfiguration,t)}selectRowsByIndex(t,e){let a=t.map(o=>this._data[o]).filter(o=>!!o);this.selectRows(a,!e)}deselectRowsByIndex(t){let e=t.map(a=>this._data[a]).filter(a=>!!a);this.deselectRows(e)}_getSelectAllState(){return this._tableRows.length>0&&this._tableRows.every(t=>t.selected)}_updateSelections(t){this._tableRows.forEach(a=>a.selected=this._selectionManager.exists(a.data));let e=this._getSelectAllState();this._adapter.setSelectedRows(this._adapter.getTableElement(),this._selectKey,this._data,this._selectionManager.getItems(),t),(e!==this._isAllSelected||this._isIndeterminate(e))&&(this._isAllSelected=e,this._multiselect&&this._adapter.updateSelectAllState(this._adapter.getTableElement(),this._isAllSelected,this._isIndeterminate(this._isAllSelected)))}_onRowClick(t){if(t.stopImmediatePropagation(),t.target.matches(`[${f.attributes.SELECT_CHECKBOX}]`))return;let o=L2(t).filter(c=>c.nodeType===1).find(c=>c.hasAttribute(f.attributes.CUSTOM_CELL_TEMPLATE));if(o&&o.hasAttribute(f.attributes.CUSTOM_CELL_TEMPLATE_STOP_PROPAGATION))return;let{index:i,data:l}=this._getSelectedRowFromEvent(t),h={index:i,data:l};this._adapter.emitHostEvent(f.events.ROW_CLICK,h,!0,!1)}_onRowDoubleClick(t){if(t.stopPropagation(),t.target.matches(`[${f.attributes.SELECT_CHECKBOX}]`))return;let e=this._getSelectedRowFromEvent(t),a={index:e.index,data:e.data};this._adapter.emitHostEvent(f.events.SELECT_DOUBLE,a,!0,!1)}_onRowSelected(t){let e=this._getSelectedRowFromEvent(t);this._multiselect||this._tableRows.filter(l=>l.selected).forEach(l=>{Nr(l.data,ha(this._selectKey,e.data))||this.deselectRows([l.data])});let a=!this._selectionManager.exists(e.data);this._adapter.updateSelectedState(e.rowElement,a),a?this._selectionManager.add(e.data):this._selectionManager.remove(e.data),this._tableRows[e.index].selected=a;let o=[e.index],n=!1;if(this._multiselect){if(t.shiftKey&&this._previouslyClickedRow&&(o=this._shiftSelectRows(e),o.includes(this._previouslyClickedRow.index))){let l=o.indexOf(this._previouslyClickedRow.index);o.splice(l,1)}n=this._getSelectAllState(),this._adapter.updateSelectAllState(this._adapter.getTableElement(),n,this._isIndeterminate(n))}for(let i of o){let l=this._tableRows[i].data,c={selected:this._selectionManager.exists(l),index:i,data:l};this._adapter.emitHostEvent(f.events.SELECT,c,!0,!1)}if(this._isAllSelected!==n){this._isAllSelected=n;let i={status:this._isAllSelected,count:this._tableRows.filter(l=>l.selected).length,data:[...this._data],targetType:"row"};this._adapter.emitHostEvent(f.events.SELECT_ALL,i,!0,!1)}this._previouslyClickedRow=w({},e)}_getSelectedRowFromEvent(t){let a=L2(t).find(l=>l.tagName==="TR"),o=a.parentElement,n=this._getNonExpandedRows(o).findIndex(l=>l===a),i=this._tableRows[n].data;return{rowElement:a,index:n,data:i}}_getNonExpandedRows(t){return Array.from(t.rows).filter(e=>!e.classList.contains(f.classes.TABLE_ROW_EXPANDABLE_CONTENT))}_onSelectAll(t){t.stopPropagation(),this._isAllSelected=!this._isAllSelected;let e=this._adapter.getTableElement();this._adapter.updateSelectAllState(e,this._isAllSelected),this._tableRows.forEach((o,n)=>{o.selected=this._isAllSelected,this._isAllSelected?this._selectionManager.add(o.data):this._selectionManager.remove(o.data);let i=C1.getRowByIndex(e,n);i&&this._adapter.updateSelectedState(i,this._isAllSelected)});let a={status:this._isAllSelected,count:this._tableRows.filter(o=>o.selected).length,data:[...this._data],targetType:"select-all"};this._adapter.emitHostEvent(f.events.SELECT_ALL,a,!0,!1)}_onHeadRowContextMenu(t){t.ctrlKey&&t.preventDefault()}_onHeadRowMouseDown(t){if(t.button!==0)return;let e=L2(t),a=t.target,o=e.find(l=>l.tagName==="TR"),n=e.find(l=>l.tagName==="TH"),i=Array.from(o.cells).findIndex(l=>l===n);this._headCellMouseDownIndex=i,a!==n&&a.classList.contains(f.classes.TABLE_RESIZE_HANDLE)&&(this._resizeDescriptor={element:n,startWidth:n.offsetWidth,startX:t.pageX,width:n.offsetWidth,index:this._select?i-1:i},this._adapter.addDocumentListener("mousemove",this._documentMouseMoveListener),this._adapter.setResizeColumnVisibility(this._tableConfiguration,i,!0)),this._adapter.addDocumentListener("mouseup",this._documentMouseUpListener)}_onMouseMove(t){if(this._resizeDescriptor){let e=this._resizeDescriptor.startWidth+(t.pageX-this._resizeDescriptor.startX);e<this._minResizeWidth&&(e=this._minResizeWidth),this._resizeDescriptor.width=e,this._resizeDescriptor.element.style.width=`${e}px`,this._adapter.addTableClass(f.classes.TABLE_RESIZING)}}_onMouseUp(t){if(this._adapter.removeDocumentListener("mousemove",this._documentMouseMoveListener),this._adapter.removeDocumentListener("mouseup",this._documentMouseUpListener),this._adapter.removeTableClass(f.classes.TABLE_RESIZING),this._headCellMouseDownIndex!==void 0){if(this._resizeDescriptor){this._adapter.normalizeColumnWidths(this._tableConfiguration),this._adapter.setResizeColumnVisibility(this._tableConfiguration,this._headCellMouseDownIndex,!1);let e={index:this._resizeDescriptor.index,width:this._resizeDescriptor.width};this._adapter.emitHostEvent(f.events.COLUMN_RESIZE,e),this._resizeDescriptor=void 0}else this._tableConfiguration.tableElement.tHead.contains(t.target)&&(this._multiColumnSort?this._onMultiSort(this._headCellMouseDownIndex,t.ctrlKey):this._onSort(this._headCellMouseDownIndex));this._headCellMouseDownIndex=void 0}}_onSortableHeadCellKeydown(t){if(t.key===" "||t.key==="Enter"){let e=L2(t),a=e.find(i=>i.tagName==="TR"),o=e.find(i=>i.tagName==="TH"),n=Array.from(a.cells).findIndex(i=>i===o);this._onSort(n)}}_onSort(t){let e=this._select?t-1:t,a=e>=0?this._visibleColumnConfigurations[e]:null;if(!a||!a.sortable)return;let o="ASC",n=e===this._sortedColumnIndex,i=this._sortDirection==="ASC"||this._sortDirection===void 0,l=n&&this._sortDirection==="DESC";n&&i&&(o="DESC"),l&&!a.preventUnsort&&(o="UNSET");let h={direction:o,columnIndex:e};if(this._adapter.emitHostEvent(f.events.SORT,h,!0,!0)){if(n&&this._sortDirection==="DESC"&&!a.preventUnsort){this._adapter.removeColumnSort(this._adapter.getTableElement(),this._select?this._sortedColumnIndex+1:this._sortedColumnIndex),this._sortedColumnIndex=-1;return}this._sortDirection=o,e===this._sortedColumnIndex?this._adapter.setSortDirection(this._adapter.getTableElement(),t,this._sortDirection):(this._sortedColumnIndex>=0&&this._adapter.removeColumnSort(this._adapter.getTableElement(),this._select?this._sortedColumnIndex+1:this._sortedColumnIndex),this._sortedColumnIndex=e,this._adapter.setSortedColumn(this._adapter.getTableElement(),t,this._sortDirection))}}_onMultiSort(t,e){let a=this._select?t-1:t,o=a>=0?this._visibleColumnConfigurations[a]:null;if(!o||!o.sortable)return;let n=this._multiSortManager.sortedColumns,i=this._multiSortManager.getSortColumn(a);i?this._multiSortManager.updateSortColumn(i):e?this._multiSortManager.addSortColumn({direction:"DESC",columnIndex:a,propertyName:o.property}):(this._multiSortManager.clearMultiSort(),this._multiSortManager.addSortColumn({direction:"DESC",columnIndex:a,propertyName:o.property}));let l=this._multiSortManager.sortedColumns.map(d=>w({},d));if(!this._adapter.emitHostEvent(f.events.SORT,l,!0,!0)){this._multiSortManager.setSortColumns(n);return}let c=this._multiSortManager.sortedColumns.length>1;for(let d=0;d<this._visibleColumnConfigurations.length;d++){let u=this._select?d+1:d;if(!this._multiSortManager.isSortColumn(d))this._adapter.removeColumnSort(this._adapter.getTableElement(),u),C1.setMultiSortColumnSortNumber(this._adapter.getTableElement(),c,u,null);else{let _=this._multiSortManager.getSortColumn(d);_&&(this._adapter.setSortedColumn(this._adapter.getTableElement(),u,_.direction),C1.setMultiSortColumnSortNumber(this._adapter.getTableElement(),c,u,_.sortOrder||null))}}}_onFilter(t,e){let a={value:t,columnIndex:e};this._adapter.emitHostEvent(f.events.FILTER,a,!0,!1)}_shiftSelectRows(t){let e=[];if(this._previouslyClickedRow){let a=this._previouslyClickedRow.index,o=t.index,n=o>=a?a:o,i=o>=a?o:a;i+=i>n?1:0,n+=n>i?1:0;let l=d=>this.selectRows(d,!1),h=this._tableRows.find(d=>d.selected&&d.data===t.data),c=this._tableRows.find(d=>{var u;return d.data===((u=this._previouslyClickedRow)==null?void 0:u.data)&&!d.selected});(!h||c)&&(l=d=>this.deselectRows(d));for(let d=n;d<i;d++)e.push(d);l(this.data.filter((d,u)=>e.includes(u)))}return e}_isIndeterminate(t){return!t&&this.getSelectedRows().length>0&&this._data.length!==this.getSelectedRows().length}_applyRoomy(){this._adapter.setRoomy(this._adapter.getTableElement(),this._roomy),this._adapter.setHostAttribute(f.attributes.ROOMY,this._roomy.toString())}_refreshTableSort(){if(this._sortedColumnIndex=this._visibleColumnConfigurations.findIndex(t=>t.initialSort),this._sortedColumnIndex>=0&&this._sortDirection===void 0){let t=this._visibleColumnConfigurations[this._sortedColumnIndex];t.initialSort===!0&&t.sortDirection?this._sortDirection=t.sortDirection:typeof t.initialSort=="object"&&t.initialSort.direction&&(this._sortDirection=t.initialSort.direction)}if(this._multiColumnSort){let t=[];this._visibleColumnConfigurations.forEach((e,a)=>{typeof e.initialSort=="object"&&t.push({columnIndex:a,direction:e.initialSort.direction,sortOrder:e.initialSort.sortOrder,propertyName:e.property})}),this._multiSortManager.setSortColumns(t)}}};var q1=class extends M{static get observedAttributes(){return[f.attributes.SELECT,f.attributes.MULTISELECT,f.attributes.SELECT_KEY,f.attributes.DENSE,f.attributes.ROOMY,f.attributes.FILTER,f.attributes.FIXED_HEADERS,f.attributes.LAYOUT_TYPE,f.attributes.WRAP_CONTENT,f.attributes.RESIZABLE,f.attributes.MIN_RESIZE_WIDTH,f.attributes.ALLOW_ROW_CLICK,f.attributes.MULTI_COLUMN_SORT,f.attributes.SELECT_CHECKBOX_ALIGNMENT,f.attributes.TOOLTIP_SELECT,f.attributes.TOOLTIP_SELECT_ALL]}constructor(){super(),q.define(K5),this._core=new Ll(new yl(this))}initializedCallback(){this._core.initialize()}connectedCallback(){this._core.initialize()}disconnectedCallback(){this._core.destroy()}attributeChangedCallback(t,e,a){switch(t){case f.attributes.SELECT:this.select=p(a);break;case f.attributes.MULTISELECT:this.multiselect=p(a);break;case f.attributes.SELECT_KEY:this.selectKey=a;break;case f.attributes.DENSE:this.dense=p(a);break;case f.attributes.ROOMY:this.roomy=p(a);break;case f.attributes.FILTER:this.filter=p(a);break;case f.attributes.FIXED_HEADERS:this.fixedHeaders=p(a);break;case f.attributes.LAYOUT_TYPE:this.layoutType=a;break;case f.attributes.WRAP_CONTENT:this.wrapContent=p(a);break;case f.attributes.RESIZABLE:this.resizable=p(a);break;case f.attributes.MIN_RESIZE_WIDTH:this.minResizeWidth=W(a);break;case f.attributes.ALLOW_ROW_CLICK:this.allowRowClick=p(a);break;case f.attributes.MULTI_COLUMN_SORT:this.multiColumnSort=p(a);break;case f.attributes.SELECT_CHECKBOX_ALIGNMENT:this.selectCheckboxAlignment=this.getAttribute(f.attributes.SELECT_CHECKBOX_ALIGNMENT)||"center";break;case f.attributes.TOOLTIP_SELECT:this.tooltipSelect=a;break;case f.attributes.TOOLTIP_SELECT_ALL:this.tooltipSelectAll=a;break}}hideColumn(t){this._core.hideColumn(t)}showColumn(t){this._core.showColumn(t)}isColumnHidden(t){return this._core.isColumnHidden(t)}getSelectedRows(){return this._core.getSelectedRows()}selectRow(t){this._core.selectRows([t],!1)}selectRows(t,e=!1){this._core.selectRows(t,!e)}deselectRow(t){this._core.deselectRows([t])}deselectRows(t){this._core.deselectRows(t)}clearSelections(){this._core.clearSelections()}render(){this._core.render()}expandRow(t,e){return this._core.expandRow(t,e)}collapseRow(t){return this._core.collapseRow(t)}isRowExpanded(t){return this._core.isRowExpanded(t)}selectRowsByIndex(t,e){typeof t=="number"?this._core.selectRowsByIndex([t],e):Array.isArray(t)&&this._core.selectRowsByIndex(t,e)}deselectRowsByIndex(t){typeof t=="number"?this._core.deselectRowsByIndex([t]):Array.isArray(t)&&this._core.deselectRowsByIndex(t)}isRowSelected(t){return this._core.isRowSelected(t)}};s([v()],q1.prototype,"data",2),s([v()],q1.prototype,"columnConfigurations",2),s([v()],q1.prototype,"select",2),s([v()],q1.prototype,"multiselect",2),s([v()],q1.prototype,"selectKey",2),s([v()],q1.prototype,"tooltipSelect",2),s([v()],q1.prototype,"tooltipSelectAll",2),s([v()],q1.prototype,"dense",2),s([v()],q1.prototype,"roomy",2),s([v()],q1.prototype,"filter",2),s([v()],q1.prototype,"fixedHeaders",2),s([v()],q1.prototype,"layoutType",2),s([v()],q1.prototype,"wrapContent",2),s([v()],q1.prototype,"resizable",2),s([v()],q1.prototype,"minResizeWidth",2),s([v()],q1.prototype,"allowRowClick",2),s([v()],q1.prototype,"multiColumnSort",2),s([v()],q1.prototype,"rowCreated",2),s([v()],q1.prototype,"cellCreated",2),s([v()],q1.prototype,"selectAllTemplate",2),s([v()],q1.prototype,"selectCheckboxAlignment",2),q1=s([y({name:f.elementName,dependencies:[_t,X,J2,p1]})],q1);function b6(){x(q1)}var y6=`${b}tab-bar`,M6={DISABLED:"disabled",ACTIVE_TAB:"active-tab",VERTICAL:"vertical",STACKED:"stacked",CLUSTERED:"clustered",SECONDARY:"secondary",INVERTED:"inverted",AUTO_ACTIVATE:"auto-activate",SCROLL_BUTTONS:"scroll-buttons"},Xx=w({},M6),jx={ROOT:".forge-tab-bar",SCROLL_CONTAINER:".scroll-container",DEFAULT_SLOT:"slot:not([name])"},Zx={SCROLL_BUTTON:"scroll-button"},Qx={CHANGE:`${y6}-change`},Jx={SCROLL_MARGIN:48},T1={elementName:y6,observedAttributes:M6,attributes:Xx,events:Qx,selectors:jx,classes:Zx,numbers:Jx},i5=new Map([["default",new Set(["Home","End"])],["horizontal",new Set(["ArrowLeft","ArrowRight"])],["vertical",new Set(["ArrowUp","ArrowDown"])]]);var H6=`${b}tab`,L6={DISABLED:"disabled",SELECTED:"selected",VERTICAL:"vertical",STACKED:"stacked",SECONDARY:"secondary",INVERTED:"inverted"},tb=w({},L6),eb={INDICATOR:".indicator"},ab={},ob={SELECT:`${H6}-select`},rb={EASING:"cubic-bezier(0.4, 0, 0.2, 1)"},nb={ANIMATION_DURATION:250},F1={elementName:H6,observedAttributes:L6,attributes:tb,selectors:eb,classes:ab,events:ob,strings:rb,numbers:nb};var Il=class extends I{constructor(t){super(t),this._tabIndicatorElement=g(this._component,F1.selectors.INDICATOR),this._focusIndicatorElement=g(this._component,m1.elementName),this._stateLayerElement=g(this._component,M1.elementName)}initialize(){this._component.tabIndex=this._component.selected?0:-1,this._component.setAttribute("role","tab"),this._component.setAttribute("aria-selected",this._component.selected?"true":"false")}activateFocusIndicator(){this._focusIndicatorElement.active=!0}addInteractionListener(t,e){this._component.addEventListener(t,e)}setDisabled(t){this._stateLayerElement.disabled=t,this._component.tabIndex=t?-1:this._component.selected?0:-1,this._component.setAttribute("aria-disabled",String(t)),K(this._component,t,F1.attributes.DISABLED,String(t))}setSelected(t){this._component.tabIndex=t?0:-1,this._component.setAttribute("aria-selected",String(t))}animateSelected(){this._tabIndicatorElement.getAnimations().forEach(e=>e.cancel());let t=this._getKeyframes();t&&this._tabIndicatorElement.animate(t,{duration:F1.numbers.ANIMATION_DURATION,easing:F1.strings.EASING})}animateStateLayer(){this._stateLayerElement.playAnimation()}_getKeyframes(){var L;let t=window.matchMedia("(prefers-reduced-motion: reduce)").matches;if(!this._component.selected)return t?[{opacity:1},{transform:"none"}]:null;let e={},a=this._component.vertical,o=this._getSelectedTabIndicator(),n=(L=o==null?void 0:o.getBoundingClientRect())!=null?L:{},i=a?n.top:n.left,l=a?n.height:n.width,h=this._tabIndicatorElement.getBoundingClientRect(),c=a?h.top:h.left,d=a?h.height:h.width,u=a?"Y":"X",_=l/d;return!t&&i!==void 0&&c!==void 0&&!isNaN(_)?e.transform=`translate${u}(${(i-c).toFixed(4)}px) scale${u}(${_.toFixed(4)})`:e.opacity=0,[e,{transform:"none"}]}_getSelectedTabIndicator(){let t=M5(this._component,T1.elementName);if(t){let a=Array.from(t.querySelectorAll(F1.elementName)).find(o=>o.hasAttribute(F1.attributes.SELECTED));if(a)return g(a,F1.selectors.INDICATOR)}return null}};var Vl=class{constructor(t){this._adapter=t;this._selected=!1;this._disabled=!1;this._vertical=!1;this._stacked=!1;this._secondary=!1;this._inverted=!1;this._clickListener=()=>this._onClick(),this._keydownListener=e=>this._onKeydown(e)}initialize(){this._adapter.initialize(),this._adapter.addInteractionListener("click",this._clickListener),this._adapter.addInteractionListener("keydown",this._keydownListener)}setFocus(t){t!=null&&t.focusVisible&&this._adapter.activateFocusIndicator()}_onClick(){this._disabled||this._selected||this._dispatchSelectEvent()}_onKeydown(t){if(this._disabled||this._selected)return;(t.key===" "||t.key==="Enter")&&(t.preventDefault(),this._adapter.animateStateLayer(),this._dispatchSelectEvent())}_dispatchSelectEvent(){this._adapter.dispatchHostEvent(new CustomEvent(F1.events.SELECT,{bubbles:!0,composed:!0}))}get disabled(){return this._disabled}set disabled(t){this._disabled!==t&&(this._disabled=t,this._adapter.setDisabled(this._disabled),this._adapter.toggleHostAttribute(F1.attributes.DISABLED,this._disabled))}get selected(){return this._selected}set selected(t){this._selected!==t&&(this._selected=t,this._adapter.setSelected(this._selected),this._adapter.animateSelected(),this._adapter.toggleHostAttribute(F1.attributes.SELECTED,this._selected))}get vertical(){return this._vertical}set vertical(t){this._vertical!==t&&(this._vertical=t,this._adapter.toggleHostAttribute(F1.attributes.VERTICAL,this._vertical))}get stacked(){return this._stacked}set stacked(t){this._stacked!==t&&(this._stacked=t,this._adapter.toggleHostAttribute(F1.attributes.STACKED,this._stacked))}get secondary(){return this._secondary}set secondary(t){this._secondary!==t&&(this._secondary=t,this._adapter.toggleHostAttribute(F1.attributes.SECONDARY,this._secondary))}get inverted(){return this._inverted}set inverted(t){this._inverted!==t&&(this._inverted=t,this._adapter.toggleHostAttribute(F1.attributes.INVERTED,this._inverted))}};var ib='<template><div class="forge-tab" part="container"><span class="content" part="content"><slot name="start"><slot name="leading"></slot></slot><span class="label" part="label"><slot></slot></span><slot name="end"><slot name="trailing"></slot></slot><span class="indicator" part="indicator"></span></span><forge-state-layer exportparts="surface:state-layer" target=":host"></forge-state-layer><forge-focus-indicator part="focus-indicator" target=":host" inward></forge-focus-indicator></div></template>',sb=':host{display:inline-flex;outline:0;-webkit-tap-highlight-color:transparent;vertical-align:middle}:host([hidden]){display:none}.forge-tab{--_tab-active-color:var(--forge-tab-active-color, var(--forge-theme-primary, #3f51b5));--_tab-inactive-color:var(--forge-tab-inactive-color, var(--forge-theme-text-medium, rgba(0, 0, 0, 0.6)));--_tab-height:var(--forge-tab-height, 48px);--_tab-stacked-height:var(--forge-tab-stacked-height, 64px);--_tab-padding-block:var(--forge-tab-padding-block, 0);--_tab-padding-inline:var(--forge-tab-padding-inline, 0);--_tab-disabled-opacity:var(--forge-tab-disabled-opacity, 0.38);--_tab-indicator-color:var(--forge-tab-indicator-color, var(--_tab-active-color));--_tab-indicator-height:var(--forge-tab-indicator-height, 3px);--_tab-indicator-shape:var(--forge-tab-indicator-shape, 3px 3px 0 0);--_tab-vertical-indicator-shape:var(--forge-tab-vertical-indicator-shape, 3px 0 0 3px);--_tab-secondary-indicator-height:var(--forge-tab-secondary-indicator-height, 2px);--_tab-secondary-indicator-shape:var(--forge-tab-secondary-indicator-shape, 0);--_tab-inverted-indicator-shape:var(--forge-tab-inverted-indicator-shape, 0 0 3px 3px);--_tab-vertical-inverted-indicator-shape:var(--forge-tab-vertical-inverted-indicator-shape, 0 3px 3px 0);--_tab-container-color:var(--forge-tab-container-color, transparent);--_tab-container-height:var(--forge-tab-container-height, var(--_tab-height));--_tab-container-shape:var(--forge-tab-container-shape, 0);--_tab-content-height:var(--forge-tab-content-height, var(--_tab-height));--_tab-content-spacing:var(--forge-tab-content-spacing, var(--forge-spacing-xsmall, 8px));--_tab-content-padding:var(--forge-tab-content-padding, var(--forge-spacing-xxsmall, 4px));--_tab-content-padding-block:var(--forge-tab-content-padding-block, var(--_tab-content-padding));--_tab-content-padding-inline:var(--forge-tab-content-padding-inline, var(--forge-spacing-medium, 16px));--_tab-content-padding-inline-secondary:var(--forge-tab-content-padding-inline-secondary, var(--forge-spacing-medium, 16px));--_tab-active-focus-icon-color:var(--forge-tab-active-focus-icon-color, var(--_tab-active-color));--_tab-active-hover-icon-color:var(--forge-tab-active-hover-icon-color, var(--_tab-active-color));--_tab-active-icon-color:var(--forge-tab-active-icon-color, var(--_tab-active-color));--_tab-active-pressed-icon-color:var(--forge-tab-active-pressed-icon-color, var(--_tab-active-color));--_tab-icon-size:var(--forge-tab-icon-size, 24px);--_tab-focus-icon-color:var(--forge-tab-focus-icon-color, var(--_tab-inactive-color));--_tab-hover-icon-color:var(--forge-tab-hover-icon-color, var(--_tab-inactive-color));--_tab-icon-color:var(--forge-tab-icon-color, var(--_tab-inactive-color));--_tab-pressed-icon-color:var(--forge-tab-pressed-icon-color, var(--_tab-inactive-color));--_tab-active-focus-label-text-color:var(--forge-tab-active-focus-label-text-color, var(--_tab-active-color));--_tab-active-hover-label-text-color:var(--forge-tab-active-hover-label-text-color, var(--_tab-active-color));--_tab-active-label-text-color:var(--forge-tab-active-label-text-color, var(--_tab-active-color));--_tab-active-pressed-label-text-color:var(--forge-tab-active-pressed-label-text-color, var(--_tab-active-color));--_tab-focus-label-text-color:var(--forge-tab-focus-label-text-color, var(--_tab-inactive-color));--_tab-hover-label-text-color:var(--forge-tab-hover-label-text-color, var(--_tab-inactive-color));--_tab-label-text-color:var(--forge-tab-label-text-color, var(--_tab-inactive-color));--_tab-pressed-label-text-color:var(--forge-tab-pressed-label-text-color, var(--_tab-inactive-color))}.forge-tab{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-button-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-button-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-button-font-size-scale, .875)));font-weight:var(--forge-typography-button-font-weight,500);line-height:var(--forge-typography-button-line-height, normal);letter-spacing:var(--forge-typography-button-letter-spacing, .0714285714em);text-transform:var(--forge-typography-button-text-transform,inherit);text-decoration:var(--forge-typography-button-text-decoration,inherit);display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;border:none;outline:0;user-select:none;-webkit-appearance:none;vertical-align:middle;background:0 0;text-decoration:none;width:100%;position:relative;padding-block:var(--_tab-padding-block);padding-inline:var(--_tab-padding-inline);margin:0;z-index:0;background-color:var(--_tab-container-color);color:var(--_tab-label-text-color);min-height:var(--_tab-container-height)}.forge-tab::-moz-focus-inner{padding:0;border:0}.forge-tab ::slotted([slot=leading]),.forge-tab ::slotted([slot=trailing]){display:inline-flex;position:relative;writing-mode:horizontal-tb;fill:currentColor;color:var(--_tab-icon-color);font-size:var(--_tab-icon-size);width:var(--_tab-icon-size);height:var(--_tab-icon-size)}.forge-tab:hover{color:var(--_tab-hover-label-text-color);cursor:pointer}.forge-tab:hover ::slotted([slot=leading]),.forge-tab:hover ::slotted([slot=trailing]){color:var(--_tab-hover-icon-color)}.forge-tab .content{position:relative;box-sizing:border-box;display:inline-flex;flex-direction:row;align-items:center;justify-content:center;white-space:nowrap;transition:150ms color linear;max-height:calc(var(--_tab-content-height) + 2 * var(--_tab-content-padding-block));min-height:var(--_tab-content-height);width:100%;padding-block:var(--_tab-content-padding-block);padding-inline:var(--_tab-content-padding-inline);gap:var(--_tab-content-spacing)}.forge-tab .content .label{display:inline-block;line-height:1}.forge-tab .indicator{position:absolute;box-sizing:border-box;z-index:-1;transform-origin:bottom left;background:var(--_tab-indicator-color);border-radius:var(--_tab-indicator-shape);height:var(--_tab-indicator-height);min-width:100%;inset:auto 0 0;opacity:0}::slotted(*),:host{white-space:nowrap}forge-focus-indicator{--forge-focus-indicator-color:var(--_tab-active-color);--forge-focus-indicator-shape:8px}forge-state-layer{--forge-state-layer-color:var(--_tab-inactive-color)}:host(:focus) .forge-tab{color:var(--_tab-focus-label-text-color)}:host(:focus) .forge-tab ::slotted([slot=leading]),:host(:focus) .forge-tab ::slotted([slot=trailing]){color:var(--_tab-focus-icon-color)}:host(:active) .forge-tab{color:var(--_tab-pressed-label-text-color);outline:0}:host(:active) .forge-tab ::slotted([slot=leading]),:host(:active) .forge-tab ::slotted([slot=trailing]){color:var(--_tab-pressed-icon-color)}:host([disabled]){cursor:not-allowed}:host([disabled]) .forge-tab{opacity:var(--_tab-disabled-opacity);pointer-events:none}:host([selected]) .forge-tab{color:var(--_tab-active-label-text-color)}:host([selected]) .forge-tab ::slotted([slot=end]),:host([selected]) .forge-tab ::slotted([slot=leading]),:host([selected]) .forge-tab ::slotted([slot=start]),:host([selected]) .forge-tab ::slotted([slot=trailing]){color:var(--_tab-active-icon-color)}:host([selected]) .forge-tab:hover{color:var(--_tab-active-hover-label-text-color)}:host([selected]) .forge-tab:hover ::slotted([slot=end]),:host([selected]) .forge-tab:hover ::slotted([slot=leading]),:host([selected]) .forge-tab:hover ::slotted([slot=start]),:host([selected]) .forge-tab:hover ::slotted([slot=trailing]){color:var(--_tab-active-hover-icon-color)}:host([selected]) .forge-tab .indicator{opacity:1}:host([selected]) forge-state-layer{--forge-state-layer-color:var(--_tab-active-color)}:host([selected]:not([vertical])) forge-focus-indicator{--forge-focus-indicator-offset-block:0 calc(var(--_tab-indicator-height) + 1px)}:host([selected]:focus) .forge-tab{color:var(--_tab-active-focus-label-text-color)}:host([selected]:focus) .forge-tab ::slotted([slot=leading]),:host([selected]:focus) .forge-tab ::slotted([slot=trailing]){color:var(--_tab-active-focus-icon-color)}:host([selected]:active) .forge-tab{color:var(--_tab-active-pressed-label-text-color)}:host([selected]:active) .forge-tab ::slotted([slot=leading]),:host([selected]:active) .forge-tab ::slotted([slot=trailing]){color:var(--_tab-active-pressed-icon-color)}:host([stacked]) .forge-tab{--_tab-height:var(--_tab-stacked-height)}:host([stacked]) .forge-tab .content{max-height:none;flex-direction:column;height:100%}:host([vertical]) .forge-tab{--_tab-padding-inline:var(--forge-tab-padding-inline, 0);width:100%;flex-direction:row;border-bottom:none}:host([vertical]) .forge-tab .content{width:100%;min-height:100%}:host([vertical]) .forge-tab .indicator{height:100%;min-width:var(--_tab-indicator-height);inset:0 0 0 auto}:host([vertical]) forge-focus-indicator{--forge-focus-indicator-offset-inline:0 calc(var(--_tab-indicator-height) + 1px)}:host([vertical]) .forge-tab{--_tab-indicator-shape:var(--_tab-vertical-indicator-shape)}:host([inverted]) .forge-tab{--_tab-indicator-shape:var(--_tab-inverted-indicator-shape)}:host([inverted]) .indicator{inset:0 0 auto;transform-origin:top left}:host([inverted][vertical]) .forge-tab{--_tab-indicator-shape:var(--_tab-vertical-inverted-indicator-shape)}:host([inverted][vertical]) .indicator{inset:0 auto 0 0}',kt=class extends M{static get observedAttributes(){return Object.values(F1.observedAttributes)}constructor(){super(),H(this,ib,sb),this._core=new Vl(new Il(this))}connectedCallback(){this._core.initialize()}attributeChangedCallback(t,e,a){switch(t){case F1.observedAttributes.DISABLED:this.disabled=p(a);break;case F1.observedAttributes.SELECTED:this.selected=p(a);break;case F1.observedAttributes.VERTICAL:this.vertical=p(a);break;case F1.observedAttributes.STACKED:this.stacked=p(a);break;case F1.observedAttributes.SECONDARY:this.secondary=p(a);break;case F1.observedAttributes.INVERTED:this.inverted=p(a);break}}focus(t){super.focus(t),this._core.setFocus(t)}};s([v()],kt.prototype,"disabled",2),s([v()],kt.prototype,"selected",2),s([v()],kt.prototype,"vertical",2),s([v()],kt.prototype,"stacked",2),s([v()],kt.prototype,"secondary",2),s([v()],kt.prototype,"inverted",2),kt=s([y({name:F1.elementName,dependencies:[Q,r1]})],kt);function I6(){x(kt)}var El=class extends I{constructor(t){super(t),this._defaultSlotElement=g(this._component,T1.selectors.DEFAULT_SLOT),this._rootElement=g(this._component,T1.selectors.ROOT),this._scrollContainer=g(this._component,T1.selectors.SCROLL_CONTAINER)}initializeContainerSizeObserver(t){this._resizeObserver=new ResizeObserver(()=>t()),this._resizeObserver.observe(this._component)}initializeScrollObserver(t){this._scrollContainer.addEventListener("scroll",t,{passive:!0})}destroyContainerSizeObserver(){var t;(t=this._resizeObserver)==null||t.disconnect(),this._resizeObserver=void 0}destroyScrollObserver(t){this._scrollContainer.removeEventListener("scroll",t,{passive:!0})}setVertical(t){K(this._component,!!t,"aria-orientation","vertical")}setScrollBackwardButtonListener(t){var e;(e=this._backwardScrollButton)==null||e.addEventListener("click",t)}setScrollForwardButtonListener(t){var e;(e=this._forwardScrollButton)==null||e.addEventListener("click",t)}addSlotListener(t){this._defaultSlotElement.addEventListener("slotchange",t)}getTabs(){return Array.from(this._component.querySelectorAll(F1.elementName))}async tryScrollTabIntoView(t){if(await new Promise(requestAnimationFrame),!t.isConnected||!t.selected&&!t.matches(":focus"))return;let e=this._component.vertical,a=e?this._scrollContainer.offsetTop:this._scrollContainer.offsetLeft,o=e?t.offsetTop:t.offsetLeft,n=e?t.offsetHeight:t.offsetWidth,i=e?this._scrollContainer.scrollTop:this._scrollContainer.scrollLeft,l=e?this._scrollContainer.offsetHeight:this._scrollContainer.offsetWidth,h=o-(T1.numbers.SCROLL_MARGIN+a),c=o+n-l+(T1.numbers.SCROLL_MARGIN-a),d=Math.min(h,Math.max(c,i)),u=t.matches(":focus")?"smooth":"instant";this._scrollContainer.scrollTo({behavior:u,[e?"left":"top"]:0,[e?"top":"left"]:d})}getScrollState(){let{scrollHeight:t,scrollWidth:e,scrollLeft:a,scrollTop:o,clientHeight:n,clientWidth:i}=this._scrollContainer,l=this._component.vertical?n+o:i+a,h=this._component.vertical?t:e,c=l===h;return{isScrolledStart:(this._component.vertical?l-n:l-i)===0,isScrolledEnd:c}}isScrollable(){let{scrollHeight:t,scrollWidth:e,clientHeight:a,clientWidth:o}=this._scrollContainer;return this._component.vertical?t>a:e>o}setScrollButtons(t){var e,a;t?(this._backwardScrollButton=this._createScrollButton(this._component.vertical?Go.name:s0.name),this._rootElement.insertAdjacentElement("afterbegin",this._backwardScrollButton),this._forwardScrollButton=this._createScrollButton(this._component.vertical?i0.name:fe.name),this._rootElement.insertAdjacentElement("beforeend",this._forwardScrollButton)):((e=this._backwardScrollButton)==null||e.remove(),this._backwardScrollButton=void 0,(a=this._forwardScrollButton)==null||a.remove(),this._forwardScrollButton=void 0)}syncScrollButtons({backwardEnabled:t,forwardEnabled:e}){var a,o;if(this._backwardScrollButton){let n=!t;n&&this._backwardScrollButton.matches(":focus")&&((a=this._forwardScrollButton)==null||a.focus()),this._backwardScrollButton.disabled=n,this._backwardScrollButton.tabIndex=-1}if(this._forwardScrollButton){let n=!e;n&&this._forwardScrollButton.matches(":focus")&&((o=this._backwardScrollButton)==null||o.focus()),this._forwardScrollButton.disabled=n,this._forwardScrollButton.tabIndex=-1}}scroll(t){let e=this._component.vertical?this._scrollContainer.offsetHeight:this._scrollContainer.offsetWidth;this._scrollContainer.scrollBy({behavior:"smooth",[this._component.vertical?"top":"left"]:e*(t==="forward"?1:-1)})}updateScrollButtonIcons(t){var o,n;let e=(o=this._backwardScrollButton)==null?void 0:o.querySelector("forge-icon");e&&(e.name=t?Go.name:s0.name);let a=(n=this._forwardScrollButton)==null?void 0:n.querySelector("forge-icon");a&&(a.name=t?i0.name:fe.name)}_createScrollButton(t){let e=document.createElement("forge-icon-button");e.classList.add(T1.classes.SCROLL_BUTTON),e.shape="squared",e.type="button",e.tabIndex=-1,e.setAttribute("aria-hidden","true");let a=document.createElement("forge-icon");return a.name=t,e.appendChild(a),e}};var Cl=class{constructor(t){this._adapter=t;this._isInitialized=!1;this._disabled=!1;this._vertical=!1;this._clustered=!1;this._stacked=!1;this._secondary=!1;this._inverted=!1;this._autoActivate=!1;this._scrollButtons=!1;this._tabs=[];this._scrollButtonsVisible=!1;this._tabsChangedListener=()=>this._onTabsChanged(),this._tabSelectedListener=e=>this._onTabSelected(e),this._keydownListener=e=>this._onKeydown(e),this._resizeListener=()=>this._onResize(),this._scrollListener=()=>this._onScroll(),this._scrollBackwardButtonListener=()=>this._onScrollBackward(),this._scrollForwardButtonListener=()=>this._onScrollForward()}initialize(){this._adapter.addSlotListener(this._tabsChangedListener),this._adapter.addHostListener(F1.events.SELECT,this._tabSelectedListener),this._adapter.addHostListener("keydown",this._keydownListener),this._adapter.setVertical(this._vertical),this._scrollButtons&&(this._adapter.initializeContainerSizeObserver(this._resizeListener),this._adapter.initializeScrollObserver(this._scrollListener),this._updateScrollState()),this._tryScrollActiveTabIntoView(),this._isInitialized=!0}destroy(){this._adapter.destroyContainerSizeObserver(),this._adapter.destroyScrollObserver(this._scrollListener),this._isInitialized=!1}async _onTabsChanged(){this._tabs=this._adapter.getTabs(),this._syncTabState(),this._tryScrollActiveTabIntoView()}_onTabSelected(t){this._selectTab({tab:t.target,focusTab:!0})}async _onKeydown(t){var n,i;let e=this._vertical?"vertical":"horizontal";if(!(((n=i5.get("default"))==null?void 0:n.has(t.key))||((i=i5.get(e))==null?void 0:i.has(t.key))))return;t.preventDefault();let o=-1;if(t.key==="Home")o=this._tabs.findIndex(l=>!l.disabled);else if(t.key==="End")o=this._tabs.reduceRight((l,h,c)=>!h.disabled&&l===-1?c:l,-1);else{let l=this._tabs.findIndex(d=>d.matches(":focus")),h=t.key==="ArrowLeft"||t.key==="ArrowUp",c=d=>{var _;o=d+(h?-1:1),o=o<0?this._tabs.length-1:o%this._tabs.length,!this._tabs.every(L=>L.disabled)&&((_=this._tabs[o])!=null&&_.disabled)&&c(o)};c(l)}o!==-1&&(this._autoActivate?this._selectTab({tab:this._tabs[o],focusTab:!0}):(this._tabs[o].focus({preventScroll:!0,focusVisible:!0}),await this._adapter.tryScrollTabIntoView(this._tabs[o])))}async _selectTab({tab:t,emitEvent:e=!0,focusTab:a=!1}){if(!t||t.disabled)return;let o=this._tabs.find(n=>n.selected);if(o!==t){if(e){let n=this._tabs.indexOf(t),i=new CustomEvent(T1.events.CHANGE,{detail:{index:n},bubbles:!0,cancelable:!0,composed:!0});if(this._adapter.dispatchHostEvent(i),i.defaultPrevented)return}t.selected=!0,a&&t.focus({preventScroll:!0}),await this._adapter.tryScrollTabIntoView(t),o&&(o.selected=!1),this._activeTab=this._tabs.indexOf(t)}}_syncTabState(){this._tabs.forEach((t,e)=>{t.selected=e===this._activeTab,this._disabled&&(t.disabled=this._disabled),t.vertical=this._vertical,t.stacked=this._stacked,t.secondary=this._secondary,t.inverted=this._inverted})}_onResize(){this._detectScrollableStatus()}_onScroll(){this._updateScrollState()}_onScrollBackward(){this._adapter.scroll("backward")}_onScrollForward(){this._adapter.scroll("forward")}_detectScrollableStatus(){let t=this._adapter.isScrollable();this._scrollButtonsVisible!==t&&(this._adapter.setScrollButtons(t),t?(this._adapter.initializeScrollObserver(this._scrollListener),this._updateScrollState(),this._adapter.setScrollBackwardButtonListener(this._scrollBackwardButtonListener),this._adapter.setScrollForwardButtonListener(this._scrollForwardButtonListener)):this._adapter.destroyScrollObserver(this._scrollListener),this._scrollButtonsVisible=t)}_updateScrollState(){let{isScrolledEnd:t,isScrolledStart:e}=this._adapter.getScrollState(),a={backwardEnabled:!e,forwardEnabled:!t};this._adapter.syncScrollButtons(a)}_tryScrollActiveTabIntoView(){this._tabScrollAnimationFrame&&window.cancelAnimationFrame(this._tabScrollAnimationFrame),this._tabScrollAnimationFrame=window.requestAnimationFrame(()=>{this._tabScrollAnimationFrame=void 0,this._adapter.isScrollable()&&typeof this._activeTab=="number"&&this._activeTab>=0&&this._tabs[this._activeTab]&&this._adapter.tryScrollTabIntoView(this._tabs[this._activeTab])})}get disabled(){return this._disabled}set disabled(t){t=!!t,this._disabled!==t&&(this._disabled=t,this._tabs.forEach(e=>e.disabled=this._disabled),this._adapter.toggleHostAttribute(T1.attributes.DISABLED,this._disabled))}get activeTab(){return this._activeTab}set activeTab(t){if(this._activeTab!==t)if(this._activeTab=t!=null?t:void 0,typeof this._activeTab=="number"){let e=this._tabs[this._activeTab];this._selectTab({tab:e,emitEvent:!1,focusTab:!1}),this._adapter.setHostAttribute(T1.attributes.ACTIVE_TAB,String(this._activeTab))}else this._tabs.forEach(e=>e.selected=!1),this._adapter.removeHostAttribute(T1.attributes.ACTIVE_TAB)}get vertical(){return this._vertical}set vertical(t){t=!!t,this._vertical!==t&&(this._vertical=t,this._isInitialized&&this._adapter.setVertical(this._vertical),this._tabs.forEach(e=>e.vertical=this._vertical),this._scrollButtonsVisible&&this._adapter.updateScrollButtonIcons(this._vertical),this._adapter.toggleHostAttribute(F1.attributes.VERTICAL,this._vertical))}get clustered(){return this._clustered}set clustered(t){t=!!t,this._clustered!==t&&(this._clustered=t,this._adapter.toggleHostAttribute(T1.attributes.CLUSTERED,this._clustered))}get stacked(){return this._stacked}set stacked(t){t=!!t,this._stacked!==t&&(this._stacked=t,this._tabs.forEach(e=>e.stacked=this._stacked),this._adapter.toggleHostAttribute(T1.attributes.STACKED,this._stacked))}get secondary(){return this._secondary}set secondary(t){t=!!t,this._secondary!==t&&(this._secondary=t,this._tabs.forEach(e=>e.secondary=this._secondary),this._adapter.toggleHostAttribute(T1.attributes.SECONDARY,this._secondary))}get inverted(){return this._inverted}set inverted(t){t=!!t,this._inverted!==t&&(this._inverted=t,this._tabs.forEach(e=>e.inverted=this._inverted),this._adapter.toggleHostAttribute(T1.attributes.INVERTED,this._inverted))}get autoActivate(){return this._autoActivate}set autoActivate(t){t=!!t,this._autoActivate!==t&&(this._autoActivate=t,this._adapter.toggleHostAttribute(T1.attributes.AUTO_ACTIVATE,this._autoActivate))}get scrollButtons(){return this._scrollButtons}set scrollButtons(t){t=!!t,this._scrollButtons!==t&&(this._scrollButtons=!!t,this._isInitialized&&(this._scrollButtons?(this._adapter.initializeContainerSizeObserver(this._resizeListener),this._adapter.initializeScrollObserver(this._scrollListener),this._detectScrollableStatus(),this._updateScrollState(),this._tryScrollActiveTabIntoView()):(this._adapter.destroyContainerSizeObserver(),this._adapter.destroyScrollObserver(this._scrollListener),this._adapter.setScrollButtons(this._scrollButtons),this._scrollButtonsVisible=!1)),this._adapter.setHostAttribute(T1.attributes.SCROLL_BUTTONS,String(this._scrollButtons)))}};var lb='<template><div class="forge-tab-bar" part="container"><div class="scroll-container" part="scroll-container"><slot></slot></div></div></template>',vb=":host{position:relative;display:block}:host([hidden]){display:none}.forge-tab-bar{--_tab-bar-justify:var(--forge-tab-bar-justify, space-between);--_tab-bar-stretch:var(--forge-tab-bar-stretch, 1);--_tab-bar-divider-color:var(--forge-tab-bar-divider-color, var(--forge-theme-outline, #e0e0e0));--_tab-bar-divider-thickness:var(--forge-tab-bar-divider-thickness, 1px)}.forge-tab-bar{position:relative;display:grid;grid-template-columns:auto 1fr auto;max-width:100%;max-height:100%;align-items:center;border-bottom:var(--_tab-bar-divider-thickness) solid var(--_tab-bar-divider-color)}.scroll-container{position:relative;display:flex;justify-content:var(--_tab-bar-justify);align-items:flex-end;box-sizing:border-box;overflow:auto;scroll-behavior:smooth;scrollbar-width:none;grid-column:2}.scroll-container::-webkit-scrollbar{display:none}::slotted(*){flex:var(--_tab-bar-stretch);align-self:stretch}::slotted([selected]){z-index:1}forge-icon-button{--forge-icon-button-shape-squared:0px}:host([vertical]) .forge-tab-bar{grid-template-columns:none;grid-template-rows:auto 1fr auto;align-items:initial;border-bottom:none;border-right:var(--_tab-bar-divider-thickness) solid var(--_tab-bar-divider-color);height:100%}:host([vertical]) .scroll-container{display:inline-flex;flex-direction:column;align-items:stretch;gap:0;grid-column:auto;grid-row:2}:host([vertical]) .scroll-button{justify-self:center}:host([inverted]:not([vertical])) .forge-tab-bar{border-bottom:none;border-top:variale(divider-thickness) solid var(--_tab-bar-divider-color)}:host([inverted][vertical]) .forge-tab-bar{border-bottom:none;border-top:var(--_tab-bar-divider-thickness) solid var(--_tab-bar-divider-color)}:host([clustered]) .forge-tab-bar{--_tab-bar-justify:var(--forge-tab-bar-justify, flex-start);--_tab-bar-stretch:var(--forge-tab-bar-stretch, 0)}:host([clustered=start]) .forge-tab-bar{--_tab-bar-justify:var(--forge-tab-bar-justify, flex-start)}:host([clustered=center]) .forge-tab-bar{--_tab-bar-justify:var(--forge-tab-bar-justify, center)}:host([clustered=end]) .forge-tab-bar{--_tab-bar-justify:var(--forge-tab-bar-justify, flex-end)}",Mt=class extends L1(H1(M)){static get observedAttributes(){return Object.values(T1.observedAttributes)}constructor(){super(),q.define([s0,fe,Go,i0]),H(this,lb,vb),this._core=new Cl(new El(this))}connectedCallback(){this[P]({role:"tablist"},{setAttribute:!0}),this._core.initialize()}disconnectedCallback(){this._core.destroy()}attributeChangedCallback(t,e,a){switch(t){case T1.observedAttributes.DISABLED:this.disabled=p(a);break;case T1.observedAttributes.ACTIVE_TAB:this.activeTab=a?W(a):void 0;break;case T1.observedAttributes.VERTICAL:this.vertical=p(a);break;case T1.observedAttributes.CLUSTERED:this.clustered=p(a);break;case T1.observedAttributes.STACKED:this.stacked=p(a);break;case T1.observedAttributes.SECONDARY:this.secondary=p(a);break;case T1.observedAttributes.INVERTED:this.inverted=p(a);break;case T1.observedAttributes.AUTO_ACTIVATE:this.autoActivate=p(a);break;case T1.observedAttributes.SCROLL_BUTTONS:this.scrollButtons=p(a);break}}};s([v()],Mt.prototype,"disabled",2),s([v()],Mt.prototype,"activeTab",2),s([v()],Mt.prototype,"vertical",2),s([v()],Mt.prototype,"clustered",2),s([v()],Mt.prototype,"stacked",2),s([v()],Mt.prototype,"secondary",2),s([v()],Mt.prototype,"inverted",2),s([v()],Mt.prototype,"autoActivate",2),s([v()],Mt.prototype,"scrollButtons",2),Mt=s([y({name:T1.elementName,dependencies:[kt,n1,X]})],Mt);function V6(){x(Mt)}var Cr=`${b}time-picker`,E6={TOGGLE:"forge-time-picker-toggle",VALUE:"value",OPEN:"open",ALLOW_SECONDS:"allow-seconds",MASKED:"masked",SHOW_MASK_FORMAT:"show-mask-format",USE_24_HOUR_TIME:"use-24-hour-time",ALLOW_INVALID_TIME:"allow-invalid-time",MIN:"min",MAX:"max",START_TIME:"start-time",STEP:"step",ALLOW_INPUT:"allow-input",SHOW_NOW:"show-now",SHOW_HOUR_OPTIONS:"show-hour-options",DISABLED:"disabled",POPUP_CLASSES:"popup-classes",ALLOW_DROPDOWN:"allow-dropdown"},hb={INPUT:"input, input[forge-time-picker-input]",TOGGLE:`[${E6.TOGGLE}]`},cb={OPEN:`${Cr}-open`,CLOSE:`${Cr}-close`,INPUT:`${Cr}-input`,CHANGE:`${Cr}-change`},pb={DEFAULT_MINUTE_STEP:60,MAX_DAY_MILLIS:864e5,MAX_DAY_MINUTES:1440},U={elementName:Cr,attributes:E6,selectors:hb,events:cb,numbers:pb};var zl=class extends I{constructor(t){super(t)}get inputElement(){return this._inputElement}initialize(){this._inputElement=this._component.querySelector(U.selectors.INPUT)}initializeMask(t){this.destroyMask(),this._inputElement&&(this._inputMask=new dn(this._inputElement,t))}destroy(){this._targetElement=void 0,this._toggleElement=void 0,this._inputElement=void 0}destroyMask(){var t;(t=this._inputMask)==null||t.destroy(),this._inputMask=void 0}initializeAccessibility(t){var e,a,o,n,i,l,h,c,d;(e=this._inputElement)==null||e.setAttribute("autocomplete","off"),(a=this._inputElement)==null||a.setAttribute("autocorrect","off"),(o=this._inputElement)==null||o.setAttribute("autocapitalize","off"),(n=this._inputElement)==null||n.setAttribute("spellcheck","false"),(i=this._inputElement)==null||i.setAttribute("role","combobox"),(l=this._inputElement)==null||l.setAttribute("aria-live","assertive"),(h=this._inputElement)==null||h.setAttribute("aria-atomic","true"),(c=this._inputElement)==null||c.setAttribute("aria-haspopup","true"),(d=this._inputElement)==null||d.setAttribute("aria-expanded","false"),Oe(),this._inputElement&&Zt(this._inputElement)}addInputListener(t,e,a){var o;(o=this._inputElement)==null||o.addEventListener(t,e,{capture:a})}removeInputListener(t,e,a){var o;(o=this._inputElement)==null||o.removeEventListener(t,e,{capture:a})}addToggleListener(t,e){this._toggleElement&&this._toggleElement.addEventListener(t,e)}removeToggleListener(t,e){this._toggleElement&&this._toggleElement.removeEventListener(t,e)}hasInputElement(){return!!this._inputElement}tryCreateToggle(){let t=this._component.querySelector(V1.elementName),e=this._component.querySelector(U.selectors.TOGGLE);if(t){let a=t.querySelector(`${J.elementName}[slot=trailing]`);if(a||e){this._toggleElement=a||e;return}let o=document.createElement(J.elementName);o.slot="trailing",o.density="medium",o.type="button",o.tabIndex=-1,o.style.marginRight="4px",o.setAttribute("aria-label","Toggle time dropdown");let n=document.createElement(h1.elementName);n.name="clock_outline",o.appendChild(n),t.appendChild(o),this._toggleElement=o}else e&&(this._toggleElement=e)}tryFocusInput(){var t;(t=this._inputElement)==null||t.select()}tryBlurInput(){var t;(t=this._inputElement)==null||t.blur()}selectInputText(){var t;(t=this._inputElement)==null||t.select()}isInputDisabled(){var t,e;return(e=(t=this._inputElement)==null?void 0:t.disabled)!=null?e:!1}isInputFocused(){return Se(this._component.ownerDocument)===this._inputElement}setInputValue(t,e){var a;((a=this._inputElement)==null?void 0:a.value)!==t&&(this._inputElement&&(this._inputElement.value=t),this._inputMask&&this._inputMask.update(),e&&(this._emitInputEvent("change"),this._emitInputEvent("input")))}getInputValue(){var t,e;return this._inputMask?this._inputMask.maskedValue:(e=(t=this._inputElement)==null?void 0:t.value)!=null?e:""}setDisabled(t){this._inputElement&&(this._inputElement.disabled=t,this._inputElement.setAttribute("aria-disabled",t.toString())),this.setToggleDisabled(t)}attachDropdown(t){var e;this._targetElement||(this._targetElement=this._getTargetElement(this._component.popupTarget)),this._listDropdown=new Pe(this._targetElement,t),this._listDropdown.open(),(e=this._inputElement)==null||e.setAttribute("aria-controls",`list-dropdown-popup-${t.id}`)}async detachDropdown({destroy:t=!1}={}){this._listDropdown&&(t?this._listDropdown.destroy():await this._listDropdown.close(),this._listDropdown=void 0),this._inputElement&&Zt(this._inputElement)}propagateKey(t){var e;(e=this._listDropdown)==null||e.handleKey(t)}setActiveDescendant(t){this._inputElement&&K(this._inputElement,!!t,"aria-activedescendant",t)}getTargetElementWidth(t){return this._getTargetElement(t).getBoundingClientRect().width}_emitInputEvent(t){var e;(e=this._inputElement)==null||e.dispatchEvent(new Event(t))}emitInputEvent(t,e){this._inputElement&&o0(this._inputElement,t,e)}setInputReadonly(t){this._inputElement&&(this._inputElement.readOnly=t)}setToggleDisabled(t){if(this._toggleElement)if(this._toggleElement.setAttribute("aria-disabled",t.toString()),"disabled"in this._toggleElement)this._toggleElement.disabled=t;else{let e=this._toggleElement.querySelector("button");e&&(e.disabled=t)}}hasActiveOption(){var t,e;return((e=(t=this._listDropdown)==null?void 0:t.getActiveOptionIndex())!=null?e:-1)>=0}activateOptionByIndex(t){var e;(e=this._listDropdown)==null||e.activateOption(t)}activateFirstOption(){var t;(t=this._listDropdown)==null||t.activateFirstOption()}getActiveOption(){var t;return(t=this._listDropdown)==null?void 0:t.getActiveOption()}_getTargetElement(t){return this._targetElement?this._targetElement:(this._targetElement=t?this._component.querySelector(t)||this._getDefaultTargetElement():this._getDefaultTargetElement(),this._targetElement)}_getDefaultTargetElement(){var e;let t=this._component.querySelector(V1.elementName);return(e=t==null?void 0:t.popoverTargetElement)!=null?e:this._component}};function Al(r,t,e){if(!r||/^\s*$/.test(r))return null;let a=0,o=0,n=0;if($a.test(r)){let i=I3(r);a=+i.hours||0,o=+i.minutes||0,n=+i.seconds||0}else if(an.test(r)){let i=V3(r);a=+i.hours||0,o=+i.minutes||0,n=+i.seconds||0,a===12&&i.meridiem==="AM"&&(a=0),a<12&&i.meridiem==="PM"&&(a+=12)}else return null;return A6(a)+Tl(o)+(e?l5(n):0)}function Yt(r,t,e){if(typeof r!="number"||r<0)return null;let a=Math.min(C6(r),23),o=Math.min(z6(r),59),i=r/(1e3*60)<720?"AM":"PM";t||(a=a<=12?a:a-12,a===0&&(a=12));let l=`${String(a).padStart(2,"0")}:${String(o).padStart(2,"0")}`;if(e){let h=Math.min(s5(r),59);l+=`:${String(h).padStart(2,"0")}`}return t||(l+=` ${i}`),l}function C6(r){return Math.abs(Math.floor(r/(1e3*60*60)))}function z6(r){return Math.abs(Math.floor(Bl(r)%60))}function Bl(r){return r/(1e3*60)}function s5(r){return Math.abs(Math.floor(db(r)%60))}function db(r){return r/1e3}function A6(r){return r*60*60*1e3}function Tl(r){return r*60*1e3}function l5(r){return r*1e3}function B6(r){return r-l5(s5(r))}function v5(r){let t=new Date,e=t.getHours(),a=t.getMinutes();return A6(e)+Tl(a)+(r?l5(t.getSeconds()):0)}function KV1(r,t,e=!1){r||(r=new Date);let a=Al(t,!0,e);if(!a)return r.setHours(0,0,0),r;let o=C6(a),n=828e5;o>n?o=n:o<0&&(o=0);let i=z6(a),l=e?s5(a):0;return r.setHours(o,i,l),r}var Sl=class{constructor(t){this._adapter=t;this._value=null;this._masked=!0;this._use24HourTime=!1;this._showMaskFormat=!1;this._min=null;this._max=null;this._restrictedTimes=[];this._startTime=null;this._step=U.numbers.DEFAULT_MINUTE_STEP;this._allowInput=!0;this._open=!1;this._allowSeconds=!1;this._allowInvalidTime=!1;this._showNow=!1;this._showHourOptions=!0;this._customOptions=[];this._disabled=!1;this._popupClasses=[];this._allowDropdown=!0;this._isInitialized=!1;this._identifier=P2(),this._inputListener=e=>this._onInput(e),this._inputKeydownListener=e=>this._onInputKeydown(e),this._toggleMousedownListener=e=>this._onToggleMousedown(e),this._inputFocusListener=e=>this._onInputFocus(e),this._inputBlurListener=e=>this._onInputBlur(e),this._inputMousedownListener=e=>this._onInputMousedown(e)}initialize(){if(this._adapter.initialize(),!this._adapter.hasInputElement())throw new Error("Unable to locate <input> element to attach to.");if(this._adapter.initializeAccessibility(this._identifier),!this._value){let t=this._adapter.getInputValue();this._setValue(this._convertTimeStringToMillis(t,this._use24HourTime,this._allowSeconds))}this._adapter.addInputListener("focus",this._inputFocusListener),this._adapter.addInputListener("blur",this._inputBlurListener),this._adapter.addInputListener("keydown",this._inputKeydownListener,!0),this._formatInputValue(!1),typeof this._value=="number"&&this._applyValue(this._value,!1),this._applyAllowInput(),this._applyAllowDropdown(),this._applyDisabled(),this._applyMask(),this._isInitialized=!0}destroy(){this._isInitialized=!1,this._adapter.removeInputListener("input",this._inputListener),this._adapter.removeInputListener("focus",this._inputFocusListener),this._adapter.removeInputListener("blur",this._inputBlurListener),this._adapter.removeToggleListener("mousedown",this._toggleMousedownListener),this._adapter.removeInputListener("keydown",this._inputKeydownListener,!0),this._masked&&this._adapter.destroyMask(),this._closeDropdown({destroy:!0}),this._adapter.destroy()}_onInput(t){this._handleInput(this._adapter.getInputValue())}_onInputKeydown(t){var e,a;if(t.shiftKey)switch(t.code){case"Backspace":case"Delete":t.preventDefault(),this._trySetValue(null)&&this._formatInputValue();return}switch(t.code){case"Tab":this._open&&this._selectActiveOption();break;case"Esc":case"Escape":this._open&&(t.preventDefault(),t.stopPropagation(),this._closeDropdown({emitCloseEvent:!0}));break;case"Down":case"ArrowDown":this._allowDropdown&&(t.preventDefault(),this._open?this._adapter.hasActiveOption()?this._adapter.propagateKey(t.code):this._trySetActiveOption():(this._openDropdown(),typeof((e=this._dropdownConfig)==null?void 0:e.visibleStartIndex)=="number"&&this._dropdownConfig.visibleStartIndex>=0?this._adapter.activateOptionByIndex((a=this._dropdownConfig)==null?void 0:a.visibleStartIndex):this._adapter.activateFirstOption()));break;case"ArrowUp":this._allowDropdown&&(t.preventDefault(),this._open&&(this._adapter.hasActiveOption()?this._adapter.propagateKey(t.code):this._trySetActiveOption()));break;case"Enter":case"NumpadEnter":case"Home":case"End":this._open&&((t.code==="Enter"||t.code==="NumpadEnter")&&t.stopPropagation(),t.preventDefault(),this._adapter.propagateKey(t.code));break;case"KeyN":t.preventDefault();let o=v5(this._allowSeconds);if(this._value!==o){let n=Yt(o,!0,this._allowSeconds);this._emitChangeEvent(n)&&(this._applyValue(o),this._selectInputText())}break}}_trySetActiveOption(){var t,e;!this._adapter.hasActiveOption()&&typeof((t=this._dropdownConfig)==null?void 0:t.visibleStartIndex)=="number"&&this._dropdownConfig.visibleStartIndex>=0&&this._adapter.activateOptionByIndex((e=this._dropdownConfig)==null?void 0:e.visibleStartIndex)}_selectActiveOption(){let t=this._adapter.getActiveOption();t&&this._onSelect(t.value)}_onToggleMousedown(t){this._disabled||!this.allowDropdown||(t.stopPropagation(),!this._adapter.isInputDisabled()&&(t.preventDefault(),this._open?this._closeDropdown({emitCloseEvent:!0}):($2.isMobile?this._adapter.tryBlurInput():this._adapter.tryFocusInput(),this._openDropdown())))}_onInputFocus(t){this.masked&&this._showMaskFormat&&this._applyMask(),this._allowInput&&this._adapter.selectInputText()}_onInputBlur(t){this.masked&&this._showMaskFormat&&this._applyMask(),this._formatInputValue(),this._open&&!this._adapter.isInputFocused()&&this._closeDropdown({emitCloseEvent:!0})}_onInputMousedown(t){!this._allowInput&&!this._open&&(this._openDropdown(),this._adapter.tryFocusInput(),window.requestAnimationFrame(()=>this._adapter.selectInputText()))}_applyDisabled(){this._adapter.setDisabled(this._disabled)}_applyMask(){if(this._masked&&this._allowInput){this._adapter.destroyMask();let t={showMaskFormat:this._showMaskFormat&&this._adapter.isInputFocused(),use24HourTime:this._use24HourTime,showSeconds:this._allowSeconds,prepareCallback:this._prepareMaskCallback,onChange:Ae(e=>this._handleInput(e),0,!0)};this._adapter.initializeMask(t)}else this._adapter.destroyMask(),this._formatInputValue()}_applyAllowInput(){this._adapter.setInputReadonly(!this._allowInput),this._allowInput?(this._adapter.removeInputListener("mousedown",this._inputMousedownListener),this._masked||this._adapter.addInputListener("input",this._inputListener)):(this._adapter.addInputListener("mousedown",this._inputMousedownListener),this._adapter.removeInputListener("input",this._inputListener))}_applyAllowDropdown(){this._adapter.setToggleDisabled(!this._allowDropdown),this._allowDropdown?(this._adapter.removeToggleListener("mousedown",this._toggleMousedownListener),this._adapter.tryCreateToggle(),this._adapter.addToggleListener("mousedown",this._toggleMousedownListener)):this._open&&this._closeDropdown({emitCloseEvent:!0})}_applyAllowSeconds(){let t=this._value;if(this._allowSeconds){if(this._isInitialized&&t!==this._value){let e=Yt(this._value,!0,!0);this._emitChangeEvent(e)}}else{if(typeof this._value!="number")return;if(this._setValue(B6(this._value)),this._isInitialized&&t!==this._value){let e=Yt(this._value,!0,!1);this._emitChangeEvent(e)}}}_handleInput(t){let e=t;if(!this._allowInput)return;this._open&&this._closeDropdown({emitCloseEvent:!0}),t=C3(t,this._use24HourTime,this._allowSeconds),typeof this._coercionCallback=="function"&&(t=this._coercionCallback.call(null,e,t,this._allowSeconds)),this._isValidTimeFormat(t)||(t="");let a;!this._masked&&typeof this._parseCallback=="function"?a=this._parseCallback.call(null,t):a=this._convertTimeStringToMillis(t,this._use24HourTime,this._allowSeconds),a=this._validateMillis(a),this._trySetValue(a)}_emitChangeEvent(t,e=!1){return this._adapter.emitHostEvent(U.events.CHANGE,t,!0,!e)}_trySetValue(t){if(t===this._value)return!1;let e=Yt(t,!0,this._allowSeconds);return this._adapter.emitInputEvent(U.events.INPUT,e),this._value!==t&&this._emitChangeEvent(e)?(this._setValue(t),!0):!1}_setValue(t){this._value=this._normalizeTimeValue(t)}_validateMillis(t){if(typeof t=="number"){let e=typeof this._min=="number"&&t<this._min,a=typeof this._max=="number"&&t>this._max;(e||a)&&(t=null)}return typeof t=="number"&&this._restrictedTimes.length&&this._restrictedTimes.includes(t)&&(t=null),t}_isValidTimeFormat(t){return!this._masked&&typeof this._validationCallback=="function"?this._validationCallback.call(this,t):E3(t)}_isValidInputValue(t){return $a.test(t)}_onSelect(t){if(this._closeDropdown({emitCloseEvent:!0}),!t.isCustom&&t.metadata==="now"&&(t.time=v5(this._allowSeconds)),t.isCustom)if(typeof t.customCallback=="function"){let o=t.customCallback.call(null,t.metadata);if(typeof o!="number")throw new Error("Custom options must provide a time of day value in milliseconds.");t.time=o}else throw new Error("You must implement a `toMilliseconds` callback that returns the time value to use for this custom option.");if(this._value===t.time)return;let e=Yt(t.time,!0,this._allowSeconds);this._emitChangeEvent(e)&&(this._applyValue(t.time),this._selectInputText())}_selectInputText(){window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>{this._adapter.isInputFocused()&&this._adapter.selectInputText()})})}_applyValue(t,e=!0){this._setValue(t);let a=this._formatValue(this._value);this._adapter.getInputValue()!==a&&this._adapter.setInputValue(a,e)}_normalizeTimeValue(t){return t==null?null:t<0?0:t>U.numbers.MAX_DAY_MILLIS?U.numbers.MAX_DAY_MILLIS:t}_openDropdown(){let t=this._generateTimeOptions();if(!this.allowDropdown||!t.length||!this._adapter.inputElement)return;this._formatInputValue(),this._open=!0,this._adapter.setHostAttribute(U.attributes.OPEN);let e=t.filter(n=>!n.divider&&!n.disabled),a=[],o=0;if(t.length)if(this._value!=null){let n=this._findClosestOptionIndex(this._value,e);n>=0&&(e[n].value.time===this._value?a=[e[n].value]:o=n)}else if(typeof this._startTime=="number"){let n=this._findClosestOptionIndex(this._startTime,e);n>=0&&n<e.length&&(o=n)}else this._startTime==null&&(o=this._getOptionIndexClosestCurrent(e));this._dropdownConfig={id:`forge-time-picker-${this._identifier}`,referenceElement:this._adapter.inputElement,selectedValues:a,syncWidth:!0,visibleStartIndex:o,popupClasses:this._popupClasses,popupStatic:!0,type:"standard",options:t,selectCallback:n=>this._onSelect(n),closeCallback:()=>this._closeDropdown({emitCloseEvent:!0}),activeChangeCallback:n=>this._adapter.setActiveDescendant(n),targetWidthCallback:()=>this._adapter.getTargetElementWidth(this._popupTarget)},this._adapter.attachDropdown(this._dropdownConfig),this._adapter.emitHostEvent(U.events.OPEN,void 0,!1)}_closeDropdown({destroy:t=!1,emitCloseEvent:e=!1}={}){this._open=!1,this._dropdownConfig=void 0,this._adapter.removeHostAttribute(U.attributes.OPEN),this._adapter.detachDropdown({destroy:t}),e&&this._adapter.emitHostEvent(U.events.CLOSE,!0,!1)}_getOptionIndexClosestCurrent(t){let e=new Date,a=`${String(e.getHours()).padStart(2,"0")}:${String(e.getMinutes()).padStart(2,"0")}`,o=Al(a,!0,!1);return this._findClosestOptionIndex(o,t)}_findClosestOptionIndex(t,e){let a=e.reduce((o,n)=>Math.abs((n.value.time||0)-t)<Math.abs((o.value.time||0)-t)?n:o);return e.indexOf(a)}_formatInputValue(t=!0){let e=this._adapter.getInputValue();if(this._allowInvalidTime&&!this._masked&&e&&!this._value)return;let a=this._formatValue(this._value);e!==a&&(this._adapter.setInputValue(a,t),this._adapter.emitInputEvent(U.events.INPUT,a))}_generateTimeOptions(){let t=this._min!=null?Math.max(Bl(this._min),0):0,e=this._max!=null?Math.min(Bl(this._max),U.numbers.MAX_DAY_MINUTES):U.numbers.MAX_DAY_MINUTES,a=this._step,o=[],n=[];if(this._showHourOptions){for(let l=t;l<=e&&l!==U.numbers.MAX_DAY_MINUTES;l+=a){let h=Tl(l),c=this._restrictedTimes.includes(h),d=Yt(h,this._use24HourTime,!1)||"",u={time:h};o.push({label:d,value:u,disabled:c})}let i=o.findIndex(l=>l.value.time/1e3/60>=720);i>=0&&i<o.length-1&&o.splice(i,0,{label:"",value:null,divider:!0})}if(this._showNow){let i={time:null,metadata:"now"};n.push({label:"Now",value:i})}if(Array.isArray(this._customOptions)&&this._customOptions.length){let i=this._customOptions.map(l=>{let h={time:null,metadata:l.value,isCustom:!0,customCallback:l.toMilliseconds};return{label:l.label,value:h}});n=[...n,...i]}return n.length&&(o.length&&o.splice(0,0,{label:"",value:null,divider:!0}),n.forEach((i,l)=>o.splice(l,0,i))),o}_convertTimeStringToMillis(t,e,a){return(!t||!this._isValidTimeFormat(t))&&(t=""),Al(t,e,a)}_formatValue(t){return!this._masked&&typeof this._formatCallback=="function"?this._formatCallback.call(null,t,this._use24HourTime,this._allowSeconds):Yt(this._value,this._use24HourTime,this._allowSeconds)||""}_warnInvalidFormat(t){console.warn(`The specified value "${t}" does not conform to the required format. The format is "HH:mm", "HH:mm:ss" where HH is 00-23, mm is 00-59, and ss is 00-59.`)}get open(){return this._open}set open(t){this._open!==t&&this._isInitialized&&(this._open=t,this._open?this._openDropdown():this._closeDropdown())}get masked(){return this._masked}set masked(t){this._masked!==t&&(this._masked=t,this._isInitialized&&(this._masked?(this._adapter.removeInputListener("input",this._inputListener),this._applyMask()):(this._adapter.destroyMask(),this._formatInputValue(),this._adapter.addInputListener("input",this._inputListener))))}get showMaskFormat(){return this._showMaskFormat}set showMaskFormat(t){this._showMaskFormat!==t&&(this._showMaskFormat=t)}get allowSeconds(){return this._allowSeconds}set allowSeconds(t){this._allowSeconds!==t&&(this._allowSeconds=!!t,this._applyAllowSeconds(),this._isInitialized&&(this._applyMask(),this._formatInputValue()),this._adapter.setHostAttribute(U.attributes.ALLOW_SECONDS,`${!!t}`))}get use24HourTime(){return this._use24HourTime}set use24HourTime(t){this._use24HourTime!==t&&(this._use24HourTime=!!t,this._isInitialized&&(this._applyMask(),this._formatInputValue()),this._adapter.setHostAttribute(U.attributes.USE_24_HOUR_TIME,`${!!t}`))}get allowInvalidTime(){return this._allowInvalidTime}set allowInvalidTime(t){this._allowInvalidTime!==t&&(this._allowInvalidTime=!!t,this._adapter.setHostAttribute(U.attributes.ALLOW_INVALID_TIME,`${!!t}`))}get value(){return Yt(this._value,!0,this._allowSeconds)}set value(t){if(t&&!this._isValidInputValue(t)){this._warnInvalidFormat(t);return}let e=this._validateMillis(this._convertTimeStringToMillis(t,!0,!0));this._setValue(e),this._isInitialized&&this._applyValue(this._value)}get min(){return Yt(this._min,!0,this._allowSeconds)}set min(t){if(this._min!==t){if(t&&!this._isValidInputValue(t)){this._warnInvalidFormat(t);return}this._min=this._convertTimeStringToMillis(t,!0,this._allowSeconds);let e=this._validateMillis(this._value);this._setValue(e),this._isInitialized&&this._applyValue(e)}}get max(){return Yt(this._max,!0,this._allowSeconds)}set max(t){if(this._max!==t){if(t&&!this._isValidInputValue(t)){this._warnInvalidFormat(t);return}this._max=this._convertTimeStringToMillis(t,!0,this._allowSeconds);let e=this._validateMillis(this._value);this._setValue(e),this._isInitialized&&this._applyValue(e)}}get restrictedTimes(){return this._restrictedTimes.map(t=>Yt(t,!0,this._allowSeconds)).filter(t=>typeof t=="string")}set restrictedTimes(t){Array.isArray(t)||(t=[]),this._restrictedTimes=t.filter(e=>typeof e=="string").map(e=>this._convertTimeStringToMillis(e,!0,!0)).filter(e=>typeof e=="number")}get startTime(){return Yt(this._startTime,!0,this._allowSeconds)}set startTime(t){if(this._startTime!==t){if(t&&!this._isValidInputValue(t)){this._warnInvalidFormat(t);return}this._startTime=this._convertTimeStringToMillis(t,!0,this._allowSeconds)}}get step(){return this._step}set step(t){this._step=t}get allowInput(){return this._allowInput}set allowInput(t){this._allowInput!==t&&(this._allowInput=t,this._isInitialized&&(this._applyAllowInput(),this._applyMask()))}get popupTarget(){return this._popupTarget}set popupTarget(t){this._popupTarget!==t&&(this._popupTarget=t)}get showNow(){return this._showNow}set showNow(t){this._showNow!==t&&(this._showNow=t)}get showHourOptions(){return this._showHourOptions}set showHourOptions(t){this._showHourOptions!==t&&(this._showHourOptions=t)}get customOptions(){return this._customOptions}set customOptions(t){this._customOptions=Array.isArray(t)?t:[]}set validationCallback(t){this._validationCallback=t,this._isInitialized&&this._applyMask()}set parseCallback(t){this._parseCallback=t}set formatCallback(t){this._formatCallback=t}set coercionCallback(t){this._coercionCallback=t}set prepareMaskCallback(t){this._prepareMaskCallback=t,this._isInitialized&&this._applyMask()}get disabled(){return this._disabled}set disabled(t){this._disabled!==t&&(this._disabled=!!t,this._isInitialized&&this._applyDisabled(),this._adapter.toggleHostAttribute(U.attributes.DISABLED,this._disabled))}get popupClasses(){return Array.isArray(this._popupClasses)?[...this._popupClasses]:this._popupClasses}set popupClasses(t){Array.isArray(t)?this._popupClasses=[...t]:this._popupClasses=[t]}get allowDropdown(){return this._allowDropdown}set allowDropdown(t){this._allowDropdown!==t&&(this._allowDropdown=t,this._isInitialized&&this._applyAllowDropdown())}};var mb="<template><slot></slot></template>",gb=":host{display:block}:host([hidden]){display:none}",O1=class extends M{static get observedAttributes(){return[U.attributes.VALUE,U.attributes.OPEN,U.attributes.ALLOW_SECONDS,U.attributes.MASKED,U.attributes.SHOW_MASK_FORMAT,U.attributes.USE_24_HOUR_TIME,U.attributes.ALLOW_INVALID_TIME,U.attributes.MIN,U.attributes.MAX,U.attributes.START_TIME,U.attributes.STEP,U.attributes.ALLOW_INPUT,U.attributes.SHOW_NOW,U.attributes.SHOW_HOUR_OPTIONS,U.attributes.DISABLED,U.attributes.POPUP_CLASSES,U.attributes.ALLOW_DROPDOWN]}constructor(){super(),q.define([Zd,Ya]),H(this,mb,gb),this._core=new Sl(new zl(this))}connectedCallback(){this.querySelector(U.selectors.INPUT)?this._core.initialize():I0(this,U.selectors.INPUT).then(()=>this._core.initialize())}disconnectedCallback(){this._core.destroy()}attributeChangedCallback(t,e,a){switch(t){case U.attributes.VALUE:this.value=a;break;case U.attributes.OPEN:this.open=p(a);break;case U.attributes.ALLOW_SECONDS:this.allowSeconds=p(a);break;case U.attributes.MASKED:this.masked=p(a);break;case U.attributes.SHOW_MASK_FORMAT:this.showMaskFormat=p(a);break;case U.attributes.USE_24_HOUR_TIME:this.use24HourTime=p(a);break;case U.attributes.ALLOW_INVALID_TIME:this.allowInvalidTime=p(a);break;case U.attributes.SHOW_NOW:this.showNow=p(a);break;case U.attributes.SHOW_HOUR_OPTIONS:this.showHourOptions=p(a);break;case U.attributes.MIN:this.min=a;break;case U.attributes.MAX:this.max=a;break;case U.attributes.START_TIME:this.startTime=a;break;case U.attributes.STEP:this.step=W(a);break;case U.attributes.ALLOW_INPUT:this.allowInput=p(a);break;case U.attributes.DISABLED:this.disabled=p(a);break;case U.attributes.POPUP_CLASSES:this.popupClasses=a;break;case U.attributes.ALLOW_DROPDOWN:this.allowDropdown=p(a);break}}};s([v()],O1.prototype,"value",2),s([v()],O1.prototype,"open",2),s([v()],O1.prototype,"allowSeconds",2),s([v()],O1.prototype,"masked",2),s([v()],O1.prototype,"showMaskFormat",2),s([v()],O1.prototype,"use24HourTime",2),s([v()],O1.prototype,"allowInvalidTime",2),s([v()],O1.prototype,"min",2),s([v()],O1.prototype,"max",2),s([v()],O1.prototype,"restrictedTimes",2),s([v()],O1.prototype,"startTime",2),s([v()],O1.prototype,"step",2),s([v()],O1.prototype,"allowInput",2),s([v()],O1.prototype,"showNow",2),s([v()],O1.prototype,"showHourOptions",2),s([v()],O1.prototype,"customOptions",2),s([v()],O1.prototype,"validationCallback",2),s([v()],O1.prototype,"parseCallback",2),s([v()],O1.prototype,"formatCallback",2),s([v()],O1.prototype,"coercionCallback",2),s([v()],O1.prototype,"prepareMaskCallback",2),s([v()],O1.prototype,"disabled",2),s([v()],O1.prototype,"popupClasses",2),s([v()],O1.prototype,"allowDropdown",2),s([v()],O1.prototype,"popupTarget",2),O1=s([y({name:U.elementName,dependencies:[h2,j1,n1,X,P1,X,E1]})],O1);var T6=class extends a2{constructor(t){super(t)}_build(){let t=document.createElement(U.elementName);return this._attachTextField(t),t}get inputElement(){return this._textFieldDelegate.inputElement}get textFieldElement(){return this._textFieldDelegate.element}get value(){return this._element.value}set value(t){this._element.value=t}get disabled(){return this._element.disabled}set disabled(t){this._element.disabled=t}get invalid(){return this._textFieldDelegate.invalid||!1}set invalid(t){this._textFieldDelegate.invalid=t}onChange(t){this._element.addEventListener(U.events.CHANGE,e=>{var a;return t((a=e.detail)!=null?a:"")})}onInput(t){this._element.addEventListener(U.events.INPUT,e=>{var a;return t((a=e.detail)!=null?a:"")})}onFocus(t){this._textFieldDelegate.inputElement.addEventListener("focus",e=>t(e))}onBlur(t){this._textFieldDelegate.inputElement.addEventListener("blur",e=>t(e))}_attachTextField(t){var a,o,n,i;let e={props:w({},(o=(a=this._config.options)==null?void 0:a.textFieldDelegateConfig)==null?void 0:o.props),options:w({},(i=(n=this._config.options)==null?void 0:n.textFieldDelegateConfig)==null?void 0:i.options)};this._textFieldDelegate=new J0(e),t.appendChild(this._textFieldDelegate.element)}};function S6(){x(O1)}var h5=`${b}toast`,k6={OPEN:"open",DURATION:"duration",PLACEMENT:"placement",ACTION_TEXT:"action-text",DISMISSIBLE:"dismissible",DISMISS_LABEL:"dismiss-label",THEME:"theme"},wb=w({},k6),ub={ACTION:`${h5}-action`,CLOSE:`${h5}-close`},_b={EXITING:"exiting"},fb={SURFACE:".surface",ACTION_BUTTON:".action-button",CLOSE_BUTTON:".close-button"},xb={PLACEMENT:"bottom",DURATION:2750,THEME:"default"},B1={elementName:h5,observedAttributes:k6,attributes:wb,classes:_b,selectors:fb,defaults:xb,events:ub};var kl=class extends I{constructor(t){super(t),this._overlayElement=g(t,B.elementName),this._surfaceElement=g(t,B1.selectors.SURFACE),this._actionButtonElement=g(t,B1.selectors.ACTION_BUTTON),this._closeButtonElement=g(t,B1.selectors.CLOSE_BUTTON)}show(){this._overlayElement.open=!0}async hide(){await Rt(this._surfaceElement,B1.classes.EXITING),this._overlayElement.open=!1}addCloseListener(t){this._closeButtonElement.addEventListener("click",t)}removeCloseListener(t){this._closeButtonElement.removeEventListener("click",t)}addActionListener(t){this._actionButtonElement.addEventListener("click",t)}removeActionListener(t){this._actionButtonElement.removeEventListener("click",t)}setDismissLabel(t){this._closeButtonElement.setAttribute("aria-label",t)}setActionText(t){this._actionButtonElement.textContent=t,t?this._actionButtonElement.removeAttribute("hidden"):this._actionButtonElement.setAttribute("hidden","")}};var Ol=class{constructor(t){this._adapter=t;this._open=!1;this._duration=B1.defaults.DURATION;this._placement=B1.defaults.PLACEMENT;this._dismissible=!1;this._theme=B1.defaults.THEME;this._actionListener=this._onAction.bind(this);this._closeListener=this._onClose.bind(this)}initialize(){this._adapter.tryApplyGlobalConfiguration(["duration","placement","dismissible"]),this._open&&this.show()}show(){this._adapter.show(),isFinite(this._duration)&&this._duration>0&&(this._hideTimeout&&window.clearTimeout(this._hideTimeout),this._hideTimeout=window.setTimeout(()=>this.hide(),this._duration)),this._open=!0,this._adapter.toggleHostAttribute(B1.attributes.OPEN,this._open)}async hide({dispatchEvent:t=!0}={}){this._hideTimeout&&(window.clearTimeout(this._hideTimeout),this._hideTimeout=void 0),await this._adapter.hide(),this._open=!1,this._adapter.toggleHostAttribute(B1.attributes.OPEN,this._open),t&&this._adapter.dispatchHostEvent(new CustomEvent(B1.events.CLOSE,{bubbles:!0}))}_onAction(t){t.stopPropagation(),this._adapter.dispatchHostEvent(new CustomEvent(B1.events.ACTION,{bubbles:!0}))}_onClose(t){this.hide()}get open(){return this._open}set open(t){t=!!t,this._open!==t&&(this._adapter.isConnected?t?this.show():this.hide({dispatchEvent:!1}):this._open=t,this._adapter.toggleHostAttribute(B1.attributes.OPEN,this._open))}get duration(){return this._duration}set duration(t){this._duration!==t&&(this._duration=t,this._hideTimeout&&(window.clearTimeout(this._hideTimeout),isFinite(this._duration)&&this._duration>0&&(this._hideTimeout=window.setTimeout(()=>this.hide(),this._duration))))}get placement(){return this._placement}set placement(t){this._placement!==t&&(this._placement=t,this._adapter.setHostAttribute(B1.attributes.PLACEMENT,this._placement))}get actionText(){return this._actionText}set actionText(t){var e;t=(e=t==null?void 0:t.trim())!=null?e:"",this._actionText!==t&&(this._actionText=t,this._adapter.setActionText(this._actionText),this._actionText?this._adapter.addActionListener(this._actionListener):this._adapter.removeActionListener(this._actionListener),this._adapter.toggleHostAttribute(B1.attributes.ACTION_TEXT,!!this._actionText,this._actionText))}get dismissible(){return this._dismissible}set dismissible(t){t=!!t,this._dismissible!==t&&(this._dismissible=t,this._dismissible?this._adapter.addCloseListener(this._closeListener):this._adapter.removeCloseListener(this._closeListener),this._adapter.toggleHostAttribute(B1.attributes.DISMISSIBLE,this._dismissible))}get dismissLabel(){return this._dismissLabel}set dismissLabel(t){this._dismissLabel!==t&&(this._dismissLabel=t,this._adapter.setDismissLabel(this._dismissLabel))}get theme(){return this._theme}set theme(t){t!=null||(t=B1.defaults.THEME),this._theme!==t&&(this._theme=t,this._adapter.setHostAttribute(B1.attributes.THEME,this._theme))}};var bb='<template><forge-overlay exportparts="root:overlay" no-anchor persistent><div class="surface" part="surface"><slot name="icon"></slot><div class="message" part="message"><slot></slot></div><forge-button hidden part="action-button" class="action-button"></forge-button><forge-icon-button part="close-button" class="close-button" aria-label="Dismiss" density="medium"><forge-icon name="close"></forge-icon></forge-icon-button></div></forge-overlay></template>',yb='@keyframes slidein{from{transform:translateY(var(--_toast-slide-origin))}to{transform:translateY(0)}}@keyframes slideout{from{transform:translateY(0)}to{transform:translateY(var(--_toast-slide-origin))}}@keyframes fadein{from{opacity:0}to{opacity:1}}@keyframes fadeout{from{opacity:1}to{opacity:0}}@layer base,open,theme,placement,media; @layer base{:host{display:contents}:host([hidden]){display:none}.surface{--_toast-background:var(--forge-toast-background, var(--forge-theme-surface-inverse, #333333));--_toast-color:var(--forge-toast-color, var(--forge-theme-on-surface-inverse, #ffffff));--_toast-offset:var(--forge-toast-offset, var(--forge-spacing-medium, 16px));--_toast-shape:var(--forge-toast-shape, calc(var(--forge-shape-medium, 4px) * var(--forge-shape-factor, 1)));--_toast-elevation:var(--forge-toast-elevation, 0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12));--_toast-action-color:var(--forge-toast-action-color, var(--forge-theme-secondary, #ffc107));--_toast-min-width:var(--forge-toast-min-width, 344px);--_toast-max-width:var(--forge-toast-max-width, 672px);--_toast-min-height:var(--forge-toast-min-height, 48px);--_toast-inline-padding:var(--forge-toast-inline-padding, var(--forge-spacing-medium, 16px));--_toast-spacing:var(--forge-toast-spacing, var(--forge-spacing-xsmall, 8px));--_toast-message-padding:var(--forge-toast-message-padding, var(--forge-spacing-xsmall, 8px));--_toast-enter-duration:var(--forge-toast-enter-duration, var(--forge-animation-duration-medium1, 250ms));--_toast-enter-timing:var(--forge-toast-enter-timing, var(--forge-animation-easing-decelerate, cubic-bezier(0, 0, 0, 1)));--_toast-exit-duration:var(--forge-toast-exit-duration, var(--forge-animation-duration-short4, 200ms));--_toast-exit-timing:var(--forge-toast-exit-timing, var(--forge-animation-easing-emphasized-accelerate, cubic-bezier(0.3, 0, 0.8, 0.15)));--_toast-slide-origin:var(--forge-toast-slide-origin, 100%)}.surface{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-body2-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-body2-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-font-size-scale, 1)));font-weight:var(--forge-typography-body2-font-weight,400);line-height:var(--forge-typography-body2-line-height, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-body-line-height-scale, 1.375)));letter-spacing:var(--forge-typography-body2-letter-spacing, .015625em);text-transform:var(--forge-typography-body2-text-transform,inherit);text-decoration:var(--forge-typography-body2-text-decoration,inherit);position:fixed;display:flex;align-items:center;column-gap:var(--_toast-spacing);border-radius:var(--_toast-shape);padding-inline:var(--_toast-inline-padding);margin:var(--_toast-offset);min-width:var(--_toast-min-width);max-width:var(--_toast-max-width);min-height:var(--_toast-min-height);box-sizing:border-box;background:var(--_toast-background);color:var(--_toast-color);box-shadow:var(--_toast-elevation)}.message{flex-grow:1;padding-block:var(--_toast-message-padding);text-overflow:ellipsis;overflow:hidden}forge-button.action-button{--forge-button-primary-color:var(--_toast-action-color)}forge-icon-button.close-button{--forge-icon-button-focus-indicator-color:var(--_toast-color)}:host(:not([dismissible])) .close-button{display:none}.action-button:not([hidden]){margin-inline-end:-8px}:host([dismissible]) .close-button{margin-inline-end:-8px}}@layer theme{:host([theme=primary]) .surface{--_toast-background:var(--forge-toast-background, var(--forge-theme-primary, #3f51b5));--_toast-color:var(--forge-toast-color, var(--forge-theme-on-primary, #ffffff));--_toast-action-color:var(--_toast-color)}:host([theme=secondary]) .surface{--_toast-background:var(--forge-toast-background, var(--forge-theme-secondary, #ffc107));--_toast-color:var(--forge-toast-color, var(--forge-theme-on-secondary, #000000));--_toast-action-color:var(--_toast-color)}:host([theme=tertiary]) .surface{--_toast-background:var(--forge-toast-background, var(--forge-theme-tertiary, #3d5afe));--_toast-color:var(--forge-toast-color, var(--forge-theme-on-tertiary, #ffffff));--_toast-action-color:var(--_toast-color)}:host([theme=success]) .surface{--_toast-background:var(--forge-toast-background, var(--forge-theme-success, #2e7d32));--_toast-color:var(--forge-toast-color, var(--forge-theme-on-success, #ffffff));--_toast-action-color:var(--_toast-color)}:host([theme=warning]) .surface{--_toast-background:var(--forge-toast-background, var(--forge-theme-warning, #d14900));--_toast-color:var(--forge-toast-color, var(--forge-theme-on-warning, #ffffff));--_toast-action-color:var(--_toast-color)}:host([theme=error]) .surface{--_toast-background:var(--forge-toast-background, var(--forge-theme-error, #b00020));--_toast-color:var(--forge-toast-color, var(--forge-theme-on-error, #ffffff));--_toast-action-color:var(--_toast-color)}:host([theme=info]) .surface{--_toast-background:var(--forge-toast-background, var(--forge-theme-info, #1565c0));--_toast-color:var(--forge-toast-color, var(--forge-theme-on-info, #ffffff));--_toast-action-color:var(--_toast-color)}}@layer open{forge-overlay[open] .surface{animation-name:slidein;animation-duration:var(--_toast-enter-duration);animation-timing-function:var(--_toast-enter-timing)}forge-overlay[open] .surface.exiting{animation-name:slideout;animation-duration:var(--_toast-exit-duration);animation-timing-function:var(--_toast-exit-timing)}}@layer placement{:host([placement=bottom-start]) .surface{bottom:0;left:0}:host(:is(:not([placement]),[placement=bottom])) .surface{bottom:0;left:50%;translate:-50%}:host([placement=bottom-end]) .surface{bottom:0;right:0}:host([placement=top-start]) .surface{--_toast-slide-origin:var(--forge-toast-slide-origin, -100%);top:0;left:0}:host([placement=top]) .surface{--_toast-slide-origin:var(--forge-toast-slide-origin, -100%);top:0;left:50%;translate:-50%}:host([placement=top-end]) .surface{--_toast-slide-origin:var(--forge-toast-slide-origin, -100%);top:0;right:0}}@layer media{@media (prefers-reduced-motion:reduce){forge-overlay[open] .surface{animation-name:fadein}forge-overlay[open] .surface.exiting{animation-name:fadeout}}@media (max-width:599px){:host([placement^=top]) .surface{bottom:auto;top:0}.surface{bottom:0;left:0;right:0;margin:0;translate:none;max-width:none;min-width:auto;border-radius:0}}}',Kt=class extends H1(L1(M)){static get observedAttributes(){return Object.values(B1.observedAttributes)}constructor(){super(),q.define(Ya),H(this,bb,yb),this._core=new Ol(new kl(this))}connectedCallback(){this.hasAttribute("role")||this.getAttribute("aria-hidden")==="true"||this[P]({role:"alert",ariaLive:"assertive",ariaAtomic:"true"}),this._core.initialize()}attributeChangedCallback(t,e,a){switch(t){case B1.attributes.OPEN:this.open=p(a);break;case B1.attributes.DURATION:let o=Number(a);this.duration=o&&o>0?o:B1.defaults.DURATION;break;case B1.attributes.PLACEMENT:this.placement=a||B1.defaults.PLACEMENT;break;case B1.attributes.ACTION_TEXT:this.actionText=a;break;case B1.attributes.DISMISSIBLE:this.dismissible=p(a);break;case B1.attributes.DISMISS_LABEL:this.dismissLabel=a;break;case B1.attributes.THEME:this.theme=a;break}}show(){this._core.show()}hide(){return this._core.hide()}static present(l){var h=l,{message:t,element:e,icon:a,className:o,topLayer:n}=h,i=Pa(h,["message","element","icon","className","topLayer"]);let c=document.createElement(B1.elementName);if(e?c.appendChild(e):t&&c.append(t),a){let u=document.createElement("forge-icon");Object.assign(u,a),u.slot="icon",c.appendChild(u)}if(o){let u=Array.isArray(o)?o:[o];c.classList.add(...u)}return i&&Object.assign(c,i),(n&&Array.from(E1[w0]).at(-1)||document.body).appendChild(c),c.open=!0,c.addEventListener(B1.events.CLOSE,()=>c.remove()),c}};s([v()],Kt.prototype,"open",2),s([v()],Kt.prototype,"duration",2),s([v()],Kt.prototype,"placement",2),s([v()],Kt.prototype,"actionText",2),s([v()],Kt.prototype,"dismissible",2),s([v()],Kt.prototype,"dismissLabel",2),s([v()],Kt.prototype,"theme",2),Kt=s([y({name:B1.elementName,dependencies:[d2,V2,n1,X]})],Kt);function O6(){x(Kt)}var Mb=`${b}view-switcher`,c5={ROOT:"forge-view-switcher",VIEW_HIDDEN:"forge-view-switcher__view--hidden",VIEW_SWITCHER_SLIDE:"slide",VIEW_SWITCHER_FADE:"fade"},Hb={ROOT:`.${c5.ROOT}`,DEFAULT_SLOT:"slot:not([name])",VIEW_HIDDEN:`.${c5.VIEW_HIDDEN}`},Lb={INDEX:"index",ANIMATION_TYPE:"animation-type"},Ib={DEFAULT_TRANSITION_DURATION:500},e2={elementName:Mb,attributes:Lb,classes:c5,selectors:Hb,numbers:Ib},p5=(e=>(e.Left="left",e.Right="right",e))(p5||{}),Vb=(a=>(a.None="none",a.Slide="slide",a.Fade="fade",a))(Vb||{});var Dl=class extends I{constructor(t){super(t),this._rootElement=g(t,e2.selectors.ROOT),this._slotElement=g(t,e2.selectors.DEFAULT_SLOT)}getViewCount(){return this._getViews().length}startViewObserver(t){this._viewObserver=new MutationObserver(t),this._viewObserver.observe(this._component,{childList:!0})}stopViewObserver(){var t;(t=this._viewObserver)==null||t.disconnect()}initializeSlideViews(t){let e=this._getViews();e.forEach((a,o)=>{if(a.style.removeProperty("opacity"),a.style.removeProperty("display"),o===t){e[t].classList.remove(e2.classes.VIEW_HIDDEN),a.style.removeProperty("visibility");return}a.style.transition="none",a.classList.add(e2.classes.VIEW_HIDDEN),a.style.visibility="hidden",o>t?a.style.transform="translate3d(100%, 0, 0)":a.style.transform="translate3d(-100%, 0, 0)"}),window.requestAnimationFrame(()=>{e=this._getViews(),e.forEach((a,o)=>{o!==t&&a.style.removeProperty("transition")})})}initializeFadeViews(t){let e=this._getViews();e.forEach((a,o)=>{if(a.style.removeProperty("transform"),a.style.removeProperty("display"),o===t){a.classList.remove(e2.classes.VIEW_HIDDEN),a.style.removeProperty("visibility");return}a.classList.add(e2.classes.VIEW_HIDDEN),a.style.visibility="hidden"}),e[t]&&(e[t].style.opacity="1")}setActiveView(t){let e=this._getViews();e.forEach((a,o)=>{o!==t&&(a.classList.add(e2.classes.VIEW_HIDDEN),a.style.display="none")}),e[t]&&(e[t].classList.remove(e2.classes.VIEW_HIDDEN),e[t].style.removeProperty("display"))}hideInactiveViews(t){this._getViews().forEach((a,o)=>{if(a.style.removeProperty("opacity"),a.style.removeProperty("transform"),a.style.removeProperty("visibility"),o===t){a.classList.remove(e2.classes.VIEW_HIDDEN);return}a.classList.add(e2.classes.VIEW_HIDDEN),a.style.display="none"})}async transitionToView(t,e,a,o){let n=this._getViews(),i=n[t],l=n[e];return new Promise(h=>{l.style.removeProperty("visibility"),window.requestAnimationFrame(()=>{let c;switch(a){case"slide":this._slideToView(i,l,o),c="transform";break;case"fade":this._fadeToView(i,l),c="opacity";break;default:return}this._animateHeight(i,l),i?i.addEventListener("transitionend",d):l.classList.remove(e2.classes.VIEW_HIDDEN);function d(u){u.propertyName===c&&(i.removeEventListener("transitionend",d),l.classList.remove(e2.classes.VIEW_HIDDEN),h())}})})}_slideToView(t,e,a){a==="left"?(t&&(t.style.transform="translate3d(-100%, 0, 0)"),e.style.transform="translate3d(0, 0, 0)"):(t&&(t.style.transform="translate3d(100%, 0, 0)"),e.style.transform="translate3d(0, 0, 0)")}_fadeToView(t,e){t&&(t.style.opacity="0"),e.style.opacity="1"}_animateHeight(t,e){let a=t?this._getViewHeight(t):0,o=this._getViewHeight(e);a!==o&&(this._rootElement.addEventListener("transitionend",this._onRootTransitionEnd.bind(this)),this._setHeight(a),window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>{this._setHeight(o)})}))}_onRootTransitionEnd(t){t.propertyName==="height"&&(this._rootElement.removeEventListener("transitionend",this._onRootTransitionEnd),this._rootElement.style.removeProperty("height"))}setAnimationType(t){switch(we([e2.classes.VIEW_SWITCHER_SLIDE,e2.classes.VIEW_SWITCHER_FADE],this._component),t){case"slide":this._component.classList.add(e2.classes.VIEW_SWITCHER_SLIDE);break;case"fade":this._component.classList.add(e2.classes.VIEW_SWITCHER_FADE);break}}_getViews(){return this._slotElement.assignedNodes().filter(t=>t.nodeType===1)}_setHeight(t){this._rootElement.style.height=`${t}px`}_getViewHeight(t){let e=0,a=t.children.length?Array.from(t.children):[t];for(let o of a){let n=window.getComputedStyle(o),i=parseFloat(n.marginTop)+parseFloat(n.marginBottom);e+=Math.ceil(o.offsetHeight+i)}return e}};var Pl=class{constructor(t){this._adapter=t;this._viewCount=0;this._viewIndex=0;this._animationType="none";this._viewsChangedListener=()=>this._onViewsChanged()}initialize(){this._viewCount=this._adapter.getViewCount(),this._adapter.startViewObserver(this._viewsChangedListener),this._adapter.setAnimationType(this._animationType),this._viewCount&&this._initializeAnimationType()}destroy(){this._adapter.stopViewObserver()}_initializeAnimationType(){switch(this._animationType){case"slide":this._adapter.initializeSlideViews(this._viewIndex);break;case"fade":this._adapter.initializeFadeViews(this._viewIndex);break;case"none":default:this._adapter.hideInactiveViews(this._viewIndex);break}}_onViewsChanged(){if(this._viewCount=this._adapter.getViewCount(),this._viewCount===0&&(this._viewIndex=0),this._viewCount&&this._initializeAnimationType(),this._viewCount>0&&this._viewIndex>=this._viewCount){let t=this._viewIndex;this._viewIndex=this._viewCount>0?this._viewCount-1:0,this._goToView(t,this._viewCount)}}async _goToView(t,e){if(this._viewCount=k(e)?e:this._adapter.getViewCount(),!(!(this._viewIndex>=0&&this._viewIndex<=this._viewCount-1)||t===this._clampedViewIndex(this._viewIndex,this._viewCount)))switch(this._animationType){case"slide":let o=this._viewIndex>t?"left":"right";await this._adapter.transitionToView(t,this._viewIndex,"slide",o),this._adapter.initializeSlideViews(this._viewIndex);break;case"fade":await this._adapter.transitionToView(t,this._viewIndex,"fade"),this._adapter.initializeFadeViews(this._viewIndex);break;case"none":default:this._adapter.setActiveView(this._viewIndex);break}}_clampedViewIndex(t,e){return t<0?t=0:t>e-1&&(t=e>0?e-1:0),t}next(){this.index++}previous(){this.index--}goToStart(){this.index=0}goToEnd(){this.index=this._viewCount-1}get index(){return this._viewIndex}set index(t){if(this._viewIndex!==t){let e=this._viewIndex;this._viewIndex=t,this._goToView(e),this._adapter.setHostAttribute(e2.attributes.INDEX,this._viewIndex.toString())}}get animationType(){return this._animationType}set animationType(t){this._animationType!==t&&(this._animationType=t,this._initializeAnimationType(),this._adapter.setAnimationType(this._animationType),this._adapter.setHostAttribute(e2.attributes.ANIMATION_TYPE,this._animationType))}};var Eb=`${b}view`,D6={elementName:Eb};var Cb="<template><slot></slot></template>",zb=":host{display:block}:host([hidden]){display:none}",la=class extends M{constructor(){super(),H(this,Cb,zb)}};la=s([y({name:D6.elementName})],la);var Ab='<template><div class="forge-view-switcher" part="root"><slot></slot></div></template>',Bb=":host{height:var(--_view-switcher-height);width:var(--_view-switcher-width);display:block}:host([hidden]){display:none}.forge-view-switcher{--_view-switcher-height:var(--forge-view-switcher-height, auto);--_view-switcher-width:var(--forge-view-switcher-width, auto);--_view-switcher-animation-duration:var(--forge-view-switcher-animation-duration, var(--forge-animation-duration-medium2, 300ms));--_view-switcher-animation-easing:var(--forge-view-switcher-animation-easing, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1)))}.forge-view-switcher{height:var(--_view-switcher-height);width:var(--_view-switcher-width);position:relative;overflow:hidden;transition-property:height;transition-duration:var(--_view-switcher-animation-duration);transition-timing-function:var(--_view-switcher-animation-easing)}.forge-view-switcher ::slotted(.forge-view-switcher__view--hidden){position:absolute;top:0;right:0;bottom:0;left:0}:host(.slide) ::slotted(forge-view){transition-property:transform;transition-duration:var(--_view-switcher-animation-duration);transition-timing-function:var(--_view-switcher-animation-easing);will-change:transform}:host(.fade) ::slotted(forge-view){transition-property:opacity;transition-duration:var(--_view-switcher-animation-duration);transition-timing-function:var(--_view-switcher-animation-easing);will-change:opacity}:host(.fade) ::slotted(.forge-view-switcher__view--hidden){opacity:0}",va=class extends M{static get observedAttributes(){return[e2.attributes.INDEX,e2.attributes.ANIMATION_TYPE]}constructor(){super(),H(this,Ab,Bb),this._core=new Pl(new Dl(this))}connectedCallback(){this._core.initialize()}disconnectedCallback(){this._core.destroy()}attributeChangedCallback(t,e,a){switch(t){case e2.attributes.INDEX:this.index=W(a);break;case e2.attributes.ANIMATION_TYPE:this.animationType=a;break}}next(){this._core.next()}previous(){this._core.previous()}goToStart(){this._core.goToStart()}goToEnd(){this._core.goToEnd()}};s([v()],va.prototype,"index",2),s([v()],va.prototype,"animationType",2),va=s([y({name:e2.elementName,dependencies:[la]})],va);function P6(){x(la)}function N6(){x(va)}var Tb=`${b}deprecated-button`,Sb={TYPE:"type",DISABLED:"disabled",FULL_WIDTH:"full-width"},kb={BUTTON:"button,a"},Ot={elementName:Tb,attributes:Sb,selectors:kb};var Ob='<template><slot></slot><forge-focus-indicator part="focus-indicator"></forge-focus-indicator><forge-state-layer exportparts="surface:state-layer"></forge-state-layer></template>',Db=':host{--_button-primary-color:var(--forge-button-primary-color, var(--forge-theme-primary, #3f51b5));--_button-text-color:var(--forge-button-text-color, var(--_button-primary-color));--_button-disabled-color:var(--forge-button-disabled-color, var(--forge-theme-surface-container, #e0e0e0));--_button-padding:var(--forge-button-padding, var(--forge-spacing-medium, 16px));--_button-display:var(--forge-button-display, inline-flex);--_button-justify:var(--forge-button-justify, center);--_button-shape:var(--forge-button-shape, calc(var(--forge-shape-medium, 4px) * var(--forge-shape-factor, 1)));--_button-height:var(--forge-button-height, 36px);--_button-min-width:var(--forge-button-min-width, 64px);--_button-spacing:var(--forge-button-spacing, var(--forge-spacing-xsmall, 8px));--_button-border-width:var(--forge-button-border-width, medium);--_button-border-style:var(--forge-button-border-style, none);--_button-border-color:var(--forge-button-border-color, currentColor);--_button-shape-start-start-radius:var(--forge-button-shape-start-start-radius, var(--_button-shape));--_button-shape-start-end-radius:var(--forge-button-shape-start-end-radius, var(--_button-shape));--_button-shape-end-start-radius:var(--forge-button-shape-end-start-radius, var(--_button-shape));--_button-shape-end-end-radius:var(--forge-button-shape-end-end-radius, var(--_button-shape));--_button-padding-block:var(--forge-button-padding-block, var(--_button-padding));--_button-padding-inline:var(--forge-button-padding-inline, var(--_button-padding));--_button-background:var(--forge-button-background, transparent);--_button-hover-background:var(--forge-button-hover-background, var(--_button-background));--_button-active-background:var(--forge-button-active-background, var(--_button-background));--_button-color:var(--forge-button-color, var(--_button-text-color));--_button-icon-size:var(--forge-button-icon-size, calc(var(--forge-typography-font-size, 1rem) * 1.125));--_button-shadow:var(--forge-button-shadow, none);--_button-hover-shadow:var(--forge-button-hover-shadow, none);--_button-active-shadow:var(--forge-button-active-shadow, none);--_button-cursor:var(--forge-button-cursor, pointer);--_button-transition-duration:var(--forge-button-transition-duration, var(--forge-animation-duration-short3, 150ms));--_button-transition-timing:var(--forge-button-transition-timing, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1)));--_button-text-padding-inline:var(--forge-button-text-padding-inline, var(--forge-spacing-xsmall, 8px));--_button-outlined-background:var(--forge-button-outlined-background, transparent);--_button-outlined-color:var(--forge-button-outlined-color, var(--_button-primary-color));--_button-outlined-border-width:var(--forge-button-outlined-border-width, var(--forge-border-thin, 1px));--_button-outlined-border-style:var(--forge-button-outlined-border-style, solid);--_button-outlined-border-color:var(--forge-button-outlined-border-color, var(--_button-primary-color));--_button-tonal-background:var(--forge-button-tonal-background, var(--forge-theme-primary-container, #d1d5ed));--_button-tonal-disabled-background:var(--forge-button-tonal-disabled-background, var(--_button-disabled-color));--_button-tonal-color:var(--forge-button-tonal-color, var(--forge-theme-on-primary-container, #222c62));--_button-tonal-disabled-color:var(--forge-button-tonal-disabled-color, var(--_button-disabled-text-color));--_button-filled-background:var(--forge-button-filled-background, var(--_button-primary-color));--_button-filled-disabled-background:var(--forge-button-filled-disabled-background, var(--_button-disabled-color));--_button-filled-color:var(--forge-button-filled-color, var(--forge-theme-on-primary, #ffffff));--_button-filled-disabled-color:var(--forge-button-filled-disabled-color, var(--_button-disabled-text-color));--_button-raised-background:var(--forge-button-raised-background, var(--_button-primary-color));--_button-raised-disabled-background:var(--forge-button-raised-disabled-background, var(--_button-disabled-color));--_button-raised-color:var(--forge-button-raised-color, var(--forge-theme-on-primary, #ffffff));--_button-raised-disabled-color:var(--forge-button-raised-disabled-color, var(--_button-disabled-text-color));--_button-raised-shadow:var(--forge-button-raised-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12));--_button-raised-hover-shadow:var(--forge-button-raised-hover-shadow, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12));--_button-raised-active-shadow:var(--forge-button-raised-active-shadow, 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12));--_button-raised-disabled-shadow:var(--forge-button-raised-disabled-shadow, none);--_button-link-color:var(--forge-button-link-color, var(--_button-primary-color));--_button-link-text-decoration:var(--forge-button-link-text-decoration, underline);--_button-link-height:var(--forge-button-link-height, auto);--_button-link-padding:var(--forge-button-link-padding, 0);--_button-link-line-height:var(--forge-button-link-line-height, normal);--_button-link-width:var(--forge-button-link-width, auto);--_button-link-hover-text-decoration:var(--forge-button-link-hover-text-decoration, none);--_button-link-active-opacity:var(--forge-button-link-active-opacity, 0.65);--_button-link-transition-duration:var(--forge-button-link-transition-duration, var(--forge-animation-duration-short3, 150ms));--_button-link-transition-timing:var(--forge-button-link-transition-timing, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1)));--_button-disabled-cursor:var(--forge-button-disabled-cursor, not-allowed);--_button-disabled-text-color:var(--forge-button-disabled-text-color, var(--forge-theme-text-low, rgba(0, 0, 0, 0.38)));--_button-disabled-background:var(--forge-button-disabled-background, transparent);--_button-disabled-border-color:var(--forge-button-disabled-border-color, var(--_button-disabled-color));--_button-disabled-shadow:var(--forge-button-disabled-shadow, none);--_button-dense-height:var(--forge-button-dense-height, 24px);--_button-pill-shape:var(--forge-button-pill-shape, calc(var(--forge-shape-full, 9999px) * var(--forge-shape-factor, 1)));--_button-pill-padding-inline:var(--forge-button-pill-padding-inline, var(--forge-spacing-small, 12px));--_button-focus-indicator-offset:var(--forge-button-focus-indicator-offset, 4px);--_button-text-focus-indicator-offset:var(--forge-button-text-focus-indicator-offset, 0px);--_button-link-focus-indicator-offset:var(--forge-button-link-focus-indicator-offset, 2px);--_button-popover-icon-transition-duration:var(--forge-button-popover-icon-transition-duration, var(--forge-animation-duration-short3, 150ms));--_button-popover-icon-transition-timing:var(--forge-button-popover-icon-transition-timing, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1)));--_button-popover-icon-open-rotation:var(--forge-button-popover-icon-open-rotation, 180deg)}:host{display:var(--_button-display);position:relative;outline:0;vertical-align:middle;-webkit-tap-highlight-color:transparent;border-radius:var(--_button-shape)}:host([hidden]){display:none}::slotted(:is(button,a)){-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--forge-typography-button-font-family, var(--forge-typography-font-family, "Roboto", sans-serif));font-size:var(--forge-typography-button-font-size, calc(var(--forge-typography-font-size, 1rem) * var(--forge-typography-button-font-size-scale, .875)));font-weight:var(--forge-typography-button-font-weight,500);line-height:var(--forge-typography-button-line-height, normal);letter-spacing:var(--forge-typography-button-letter-spacing, .0714285714em);text-transform:var(--forge-typography-button-text-transform,inherit);text-decoration:var(--forge-typography-button-text-decoration,inherit);position:relative;display:var(--_button-display);align-items:center;justify-content:var(--_button-justify);gap:var(--_button-spacing);z-index:0;box-sizing:border-box;min-inline-size:var(--_button-min-width);height:var(--_button-height);inline-size:100%;border-width:var(--_button-border-width);border-style:var(--_button-border-style);border-color:var(--_button-border-color);border-start-start-radius:var(--_button-shape-start-start-radius);border-start-end-radius:var(--_button-shape-start-end-radius);border-end-start-radius:var(--_button-shape-end-start-radius);border-end-end-radius:var(--_button-shape-end-end-radius);padding-block:var(--_button-padding-block);padding-inline:var(--_button-padding-inline);box-shadow:var(--_button-shadow);outline:0;user-select:none;-webkit-appearance:none;vertical-align:middle;text-decoration:none;white-space:nowrap;background:var(--_button-background);color:var(--_button-color);cursor:var(--_button-cursor);transition-property:box-shadow,background;transition-duration:var(--_button-transition-duration);transition-timing-function:var(--_button-transition-timing);--forge-icon-font-size:1.25em}::slotted(:is(button,a))::-moz-focus-inner{padding:0;border:0}::slotted(:is(button,a)):hover{--_button-shadow:var(--_button-hover-shadow);background:var(--_button-hover-background)}::slotted(:is(button,a)):active{--_button-shadow:var(--_button-active-shadow);background:var(--_button-active-background)}::slotted(a){text-decoration:none;--forge-typography-link-text-decoration:none}forge-state-layer{--forge-state-layer-color:var(--_button-color)}forge-focus-indicator{--forge-focus-indicator-color:var(--_button-primary-color);--forge-focus-indicator-outward-offset:var(--_button-focus-indicator-offset)}:host(:is([type*=unelevated],[type*=raised])) ::slotted(:is(button,a)){--_button-background:var(--_button-filled-background);--_button-color:var(--_button-filled-color)}:host(:is([type*=unelevated],[type*=raised])) forge-state-layer{--forge-state-layer-color:var(--_button-filled-color)}:host([type*=raised]) ::slotted(:is(button,a)){--_button-background:var(--_button-raised-background);--_button-color:var(--_button-raised-color);--_button-shadow:var(--_button-raised-shadow)}:host([type*=raised]) ::slotted(:is(button,a)):hover{--_button-shadow:var(--_button-raised-hover-shadow)}:host([type*=raised]) ::slotted(:is(button,a)):active{--_button-shadow:var(--_button-raised-active-shadow)}:host([type*=outlined]) ::slotted(:is(button,a)){--_button-background:var(--_button-outlined-background);--_button-color:var(--_button-outlined-color);--_button-border-width:var(--_button-outlined-border-width);--_button-border-style:var(--_button-outlined-border-style);--_button-border-color:var(--_button-outlined-border-color)}:host([full-width]){width:100%}:host(:is([dense],[type*=dense])) ::slotted(:is(button,a)){--_button-height:var(--_button-dense-height)}:host([disabled]){cursor:var(--_button-disabled-cursor)}:host([disabled]) ::slotted(button[disabled]){--_button-background:var(--_button-disabled-background);--_button-color:var(--_button-disabled-text-color);--_button-shadow:var(--_button-disabled-shadow);pointer-events:none}:host([type*=outlined][disabled]) ::slotted(button[disabled]){--_button-border-color:var(--_button-disabled-border-color)}:host(:is([type*=unelevated],[type*=raised])[disabled]) ::slotted(button[disabled]){--_button-background:var(--_button-filled-disabled-background);--_button-color:var(--_button-filled-disabled-color)}:host([type*=raised][disabled]) ::slotted(button[disabled]){--_button-background:var(--_button-raised-disabled-background);--_button-color:var(--_button-raised-disabled-color);--_button-shadow:var(--_button-raised-disabled-shadow)}',Do=class extends M{constructor(){super();this._buttonOrAnchorElement=null;this._disabled=!1;this._fullWidth=!1;this._buttonChangeListener=this._onButtonChange.bind(this);this._keydownListener=e=>this._onKeydown(e);H(this,Ob,Db),this._slotElement=g(this,"slot:not([name])"),this._focusIndicator=g(this,m1.elementName),this._stateLayer=g(this,M1.elementName)}static get observedAttributes(){return Object.values(Ot.attributes)}connectedCallback(){this._slotElement.addEventListener("slotchange",this._buttonChangeListener),this.children.length?this._initialize():Fa(this).then(()=>this._initialize())}disconnectedCallback(){this._detachButton()}attributeChangedCallback(e,a,o){switch(e){case Ot.attributes.TYPE:this.type=o;return;case Ot.attributes.DISABLED:this.disabled=p(o);return;case Ot.attributes.FULL_WIDTH:this.fullWidth=p(o);return}}_onKeydown(e){(e.key==="Enter"||e.key===" ")&&this._stateLayer.playAnimation()}_onButtonChange(){this._detachButton(),this._initialize()}_initialize(){this._buttonOrAnchorElement=this.querySelector(Ot.selectors.BUTTON),this._buttonOrAnchorElement&&(this._stateLayer.targetElement=this._buttonOrAnchorElement,this._focusIndicator.targetElement=this._buttonOrAnchorElement,this._buttonOrAnchorElement.addEventListener("keydown",this._keydownListener),this._buttonOrAnchorElement instanceof HTMLButtonElement&&this._disabled&&!this._buttonOrAnchorElement.disabled?this._buttonOrAnchorElement.disabled=!0:this.disabled=this._buttonOrAnchorElement instanceof HTMLButtonElement&&this._buttonOrAnchorElement.disabled,this._buttonOrAnchorElement instanceof HTMLButtonElement&&(this._buttonAttrMutationObserver=new MutationObserver(e=>{e.some(a=>a.attributeName==="disabled")&&this._syncDisabledState()}),this._buttonAttrMutationObserver.observe(this._buttonOrAnchorElement,{attributes:!0,attributeFilter:["disabled"]})))}_syncDisabledState(){let e=this._buttonOrAnchorElement instanceof HTMLButtonElement&&this._buttonOrAnchorElement.disabled;K(this,e,Ot.attributes.DISABLED)}_detachButton(){var e;(e=this._buttonOrAnchorElement)==null||e.removeEventListener("keydown",this._keydownListener),this._buttonAttrMutationObserver&&(this._buttonAttrMutationObserver.disconnect(),this._buttonAttrMutationObserver=void 0)}get type(){return this._type}set type(e){this._type!==e&&(this._type=e,this.setAttribute(Ot.attributes.TYPE,this._type))}get disabled(){return this._disabled}set disabled(e){var a;this._disabled!==e&&(this._disabled=e,(a=this._buttonOrAnchorElement)==null||a.toggleAttribute(Ot.attributes.DISABLED,this._disabled),this.toggleAttribute(Ot.attributes.DISABLED,this._disabled))}get fullWidth(){return this._fullWidth}set fullWidth(e){this._fullWidth!==e&&(this._fullWidth=e,this.toggleAttribute(Ot.attributes.FULL_WIDTH,this._fullWidth))}focus(e){var a;(a=this._buttonOrAnchorElement)==null||a.focus(e)}};Do=s([y({name:Ot.elementName,dependencies:[Q,r1]})],Do);var R6=class extends X1{constructor(t){super(t)}destroy(){this._buttonElement=void 0}get buttonElement(){return this._buttonElement}_build(){var e,a;let t=document.createElement(Ot.elementName);return this._buttonElement=document.createElement("button"),this._buttonElement.type=((e=this._config.options)==null?void 0:e.type)||"button",this._buttonElement.textContent=((a=this._config.options)==null?void 0:a.text)||"",t.appendChild(this._buttonElement),t}onClick(t){var e;(e=this._buttonElement)==null||e.addEventListener("click",t)}onFocus(t){var e;(e=this._buttonElement)==null||e.addEventListener("focus",a=>t(a))}onBlur(t){var e;(e=this._buttonElement)==null||e.addEventListener("blur",a=>t(a))}};function F6(){x(Do)}var Pb=`${b}deprecated-icon-button`,U6={DISABLED:"disabled",TOGGLE:"toggle",IS_ON:"is-on",DENSITY_LEVEL:"density-level"},Nb=t1(w({},U6),{ON_ICON:"forge-icon-button-on"}),Rb={BUTTON:"button,a",ICON_LIKE:"button > i,span,svg,img,forge-icon"},Fb={TOGGLE:"forge-icon-button-toggle"},K2={elementName:Pb,observedAttributes:U6,attributes:Nb,selectors:Rb,events:Fb};var Ub='<template><slot></slot><forge-focus-indicator part="focus-indicator"></forge-focus-indicator><forge-state-layer exportparts="surface:state-layer"></forge-state-layer></template>',Wb=":host{--_icon-button-display:var(--forge-icon-button-display, inline-flex);--_icon-button-size:var(--forge-icon-button-size, 48px);--_icon-button-gap:var(--forge-icon-button-gap, 0);--_icon-button-icon-color:var(--forge-icon-button-icon-color, currentColor);--_icon-button-background-color:var(--forge-icon-button-background-color, none);--_icon-button-icon-size:var(--forge-icon-button-icon-size, calc(var(--forge-typography-font-size, 1rem) * 1.5));--_icon-button-cursor:var(--forge-icon-button-cursor, pointer);--_icon-button-padding:var(--forge-icon-button-padding, var(--forge-spacing-xxsmall, 4px));--_icon-button-border:var(--forge-icon-button-border, none);--_icon-button-shadow:var(--forge-icon-button-shadow, none);--_icon-button-transition-duration:var(--forge-icon-button-transition-duration, var(--forge-animation-duration-short3, 150ms));--_icon-button-transition-timing:var(--forge-icon-button-transition-timing, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1)));--_icon-button-shape:var(--forge-icon-button-shape, calc(var(--forge-shape-full, 9999px) * var(--forge-shape-factor, 1)));--_icon-button-shape-start-start:var(--forge-icon-button-shape-start-start, var(--_icon-button-shape));--_icon-button-shape-start-end:var(--forge-icon-button-shape-start-end, var(--_icon-button-shape));--_icon-button-shape-end-start:var(--forge-icon-button-shape-end-start, var(--_icon-button-shape));--_icon-button-shape-end-end:var(--forge-icon-button-shape-end-end, var(--_icon-button-shape));--_icon-button-shape-squared:var(--forge-icon-button-shape-squared, calc(var(--forge-shape-medium, 4px) * var(--forge-shape-factor, 1)));--_icon-button-outlined-border-width:var(--forge-icon-button-outlined-border-width, 1px);--_icon-button-outlined-border-style:var(--forge-icon-button-outlined-border-style, solid);--_icon-button-outlined-border-color:var(--forge-icon-button-outlined-border-color, var(--_icon-button-icon-color));--_icon-button-tonal-icon-color:var(--forge-icon-button-tonal-icon-color, var(--forge-theme-on-primary-container, #222c62));--_icon-button-tonal-background-color:var(--forge-icon-button-tonal-background-color, var(--forge-theme-primary-container, #d1d5ed));--_icon-button-filled-icon-color:var(--forge-icon-button-filled-icon-color, var(--forge-theme-on-primary, #ffffff));--_icon-button-filled-background-color:var(--forge-icon-button-filled-background-color, var(--forge-theme-primary, #3f51b5));--_icon-button-raised-shadow:var(--forge-icon-button-raised-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12));--_icon-button-raised-hover-shadow:var(--forge-icon-button-raised-hover-shadow, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12));--_icon-button-raised-active-shadow:var(--forge-icon-button-raised-active-shadow, 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12));--_icon-button-raised-disabled-shadow:var(--forge-icon-button-raised-disabled-shadow, none);--_icon-button-density-small-size:var(--forge-icon-button-density-small-size, 24px);--_icon-button-density-small-padding:var(--forge-icon-button-density-small-padding, var(--forge-spacing-xxxsmall, 2px));--_icon-button-density-small-icon-size:var(--forge-icon-button-density-small-icon-size, calc(var(--forge-typography-font-size, 1rem) * 1.125));--_icon-button-density-medium-size:var(--forge-icon-button-density-medium-size, 36px);--_icon-button-density-medium-padding:var(--forge-icon-button-density-medium-padding, var(--forge-spacing-xxsmall, 4px));--_icon-button-density-large-size:var(--forge-icon-button-density-large-size, var(--_icon-button-size));--_icon-button-toggle-on-background-color:var(--forge-icon-button-toggle-on-background-color, var(--forge-theme-primary-container, #d1d5ed));--_icon-button-toggle-on-icon-color:var(--forge-icon-button-toggle-on-icon-color, var(--forge-theme-primary, #3f51b5));--_icon-button-outlined-toggle-on-background-color:var(--forge-icon-button-outlined-toggle-on-background-color, var(--forge-theme-primary-container, #d1d5ed));--_icon-button-outlined-toggle-on-icon-color:var(--forge-icon-button-outlined-toggle-on-icon-color, var(--forge-theme-primary, #3f51b5));--_icon-button-tonal-toggle-background-color:var(--forge-icon-button-tonal-toggle-background-color, var(--forge-theme-surface-container-low, #ebebeb));--_icon-button-tonal-toggle-on-background-color:var(--forge-icon-button-tonal-toggle-on-background-color, var(--forge-theme-primary-container, #d1d5ed));--_icon-button-tonal-toggle-on-icon-color:var(--forge-icon-button-tonal-toggle-on-icon-color, var(--forge-theme-primary, #3f51b5));--_icon-button-filled-toggle-background-color:var(--forge-icon-button-filled-toggle-background-color, var(--forge-theme-surface-container-low, #ebebeb));--_icon-button-filled-toggle-icon-color:var(--forge-icon-button-filled-toggle-icon-color, var(--forge-theme-primary, #3f51b5));--_icon-button-filled-toggle-on-background-color:var(--forge-icon-button-filled-toggle-on-background-color, var(--forge-theme-primary, #3f51b5));--_icon-button-filled-toggle-on-icon-color:var(--forge-icon-button-filled-toggle-on-icon-color, var(--forge-theme-on-primary, #ffffff));--_icon-button-disabled-cursor:var(--forge-icon-button-disabled-cursor, not-allowed);--_icon-button-disabled-opacity:var(--forge-icon-button-disabled-opacity, 0.38);--_icon-button-popover-icon-padding:var(--forge-icon-button-popover-icon-padding, var(--forge-spacing-xsmall, 8px));--_icon-button-focus-indicator-color:var(--forge-icon-button-focus-indicator-color, var(--forge-theme-primary, #3f51b5))}:host{display:var(--_icon-button-display);position:relative;outline:0;-webkit-tap-highlight-color:transparent;border-start-start-radius:var(--_icon-button-shape-start-start);border-start-end-radius:var(--_icon-button-shape-start-end);border-end-start-radius:var(--_icon-button-shape-end-start);border-end-end-radius:var(--_icon-button-shape-end-end)}:host([hidden]){display:none}::slotted(:is(button,a)){position:relative;z-index:0;display:var(--_icon-button-display);align-items:center;justify-content:center;gap:var(--_icon-button-gap);box-sizing:border-box;height:var(--_icon-button-density-large-size);min-width:var(--_icon-button-density-large-size);border:var(--_icon-button-border);border-start-start-radius:var(--_icon-button-shape-start-start);border-start-end-radius:var(--_icon-button-shape-start-end);border-end-start-radius:var(--_icon-button-shape-end-start);border-end-end-radius:var(--_icon-button-shape-end-end);padding:var(--_icon-button-padding);box-shadow:var(--_icon-button-shadow);color:var(--_icon-button-icon-color);background:var(--_icon-button-background-color);font-size:var(--_icon-button-icon-size);cursor:var(--_icon-button-cursor);user-select:none;transition-property:box-shadow,background;transition-duration:var(--_icon-button-transition-duration);transition-timing-function:var(--_icon-button-transition-timing);font-size:var(--_icon-button-icon-size);height:var(--_icon-button-size);width:var(--_icon-button-size)}::slotted(a){text-decoration:none;color:var(--_icon-button-icon-color)!important}forge-state-layer{--forge-state-layer-color:var(--_icon-button-icon-color)}forge-focus-indicator{--forge-focus-indicator-outward-offset:0px;--forge-focus-indicator-color:var(--_icon-button-focus-indicator-color);--forge-focus-indicator-shape-start-start:var(--_icon-button-shape-start-start);--forge-focus-indicator-shape-start-end:var(--_icon-button-shape-start-end);--forge-focus-indicator-shape-end-start:var(--_icon-button-shape-end-start);--forge-focus-indicator-shape-end-end:var(--_icon-button-shape-end-end)}:host(:is([dense],[density=large]):not(:is([density=medium],[density-level]))){--_icon-button-size:var(--_icon-button-density-small-size);--_icon-button-icon-size:var(--_icon-button-density-small-icon-size);--_icon-button-padding:var(--_icon-button-density-small-padding);--forge-icon-font-size:var(--_icon-button-icon-size)}:host([dense]:not([density=large]):not([density=small]):is([density=medium],[density-level])){--_icon-button-size:var(--_icon-button-density-medium-size);--_icon-button-padding:var(--_icon-button-density-medium-padding)}:host([disabled]){cursor:var(--_icon-button-disabled-cursor)}:host([disabled]) ::slotted(button[disabled]){pointer-events:none;opacity:var(--_icon-button-disabled-opacity)}:host([toggle]:is([on],[is-on]):not([is-on=false])){--_icon-button-background-color:var(--_icon-button-toggle-on-background-color);--_icon-button-icon-color:var(--_icon-button-toggle-on-icon-color);--_icon-button-background-color:var(--forge-icon-button-background-color, var(--forge-theme-primary-container-low, #e8eaf6))}",Po=class extends M{constructor(){super();this._disabled=!1;this._toggle=!1;this._isOn=!1;this._densityLevel=0;this._buttonOrAnchorElement=null;this._slotChangeListener=this._onSlotChange.bind(this);this._keydownListener=this._onKeydown.bind(this);this._toggleClickListener=this._onToggle.bind(this);H(this,Ub,Wb),this._slotElement=g(this,"slot:not([name])"),this._focusIndicator=g(this,m1.elementName),this._stateLayer=g(this,M1.elementName)}static get observedAttributes(){return Object.values(K2.attributes)}connectedCallback(){this._slotElement.addEventListener("slotchange",this._slotChangeListener),this.children.length?this._initialize():Fa(this).then(()=>this._initialize())}disconnectedCallback(){this._detachButton()}attributeChangedCallback(e,a,o){switch(e){case K2.attributes.DISABLED:this.disabled=p(o);return;case K2.attributes.TOGGLE:this.toggle=p(o);return;case K2.attributes.IS_ON:this.isOn=p(o);return;case K2.attributes.DENSITY_LEVEL:this.densityLevel=W(o);return}}_onKeydown(e){(e.key==="Enter"||e.key===" ")&&this._stateLayer.playAnimation()}_onSlotChange(){this._detachButton(),this._initialize()}_onToggle(){this.isOn=!this._isOn,this.dispatchEvent(new CustomEvent("forge-icon-button-toggle",{bubbles:!0,composed:!0,detail:this._isOn}))}_initialize(){this._buttonOrAnchorElement=this.querySelector(K2.selectors.BUTTON),this._buttonOrAnchorElement&&(this._stateLayer.targetElement=this._buttonOrAnchorElement,this._focusIndicator.targetElement=this._buttonOrAnchorElement,this._buttonOrAnchorElement.addEventListener("keydown",this._keydownListener),this._buttonOrAnchorElement instanceof HTMLButtonElement&&this._disabled&&!this._buttonOrAnchorElement.disabled?this._buttonOrAnchorElement.disabled=!0:this.disabled=this._buttonOrAnchorElement instanceof HTMLButtonElement&&this._buttonOrAnchorElement.disabled,this._toggle&&this._initializeToggle(),this._buttonOrAnchorElement instanceof HTMLButtonElement&&(this._buttonAttrMutationObserver=new MutationObserver(e=>{e.some(a=>a.attributeName==="disabled")&&this._syncDisabledState()}),this._buttonAttrMutationObserver.observe(this._buttonOrAnchorElement,{attributes:!0,attributeFilter:["disabled"]})))}_syncDisabledState(){let e=this._buttonOrAnchorElement instanceof HTMLButtonElement&&this._buttonOrAnchorElement.disabled;this.toggleAttribute(K2.attributes.DISABLED,e)}_detachButton(){var e;(e=this._buttonOrAnchorElement)==null||e.removeEventListener("keydown",this._keydownListener),this._buttonAttrMutationObserver&&(this._buttonAttrMutationObserver.disconnect(),this._buttonAttrMutationObserver=void 0)}_initializeToggle(){this._buttonOrAnchorElement&&(this._buttonOrAnchorElement.addEventListener("click",this._toggleClickListener),this._syncToggleState())}_destroyToggle(){var e;(e=this._buttonOrAnchorElement)==null||e.removeEventListener("click",this._toggleClickListener)}_syncToggleState(){let e=Array.from(this.querySelectorAll(K2.selectors.ICON_LIKE)),a=e.find(n=>n.hasAttribute(K2.attributes.ON_ICON)),o=e.filter(n=>n!==a);a==null||a.toggleAttribute("hidden",!this._isOn),o.forEach(n=>n.toggleAttribute("hidden",this._isOn)),this.toggleAttribute(K2.attributes.IS_ON,this._isOn)}get disabled(){return this._disabled}set disabled(e){var a;e=!!e,this._disabled!==e&&(this._disabled=e,(a=this._buttonOrAnchorElement)==null||a.toggleAttribute(K2.attributes.DISABLED,this._disabled),this.toggleAttribute(K2.attributes.DISABLED,this._disabled))}get toggle(){return this._toggle}set toggle(e){e=!!e,this._toggle!==e&&(this._toggle=e,this.isConnected&&(this._toggle?this._initializeToggle():this._destroyToggle()),this.toggleAttribute(K2.attributes.TOGGLE,this._toggle))}get isOn(){return this._isOn}set isOn(e){e=!!e,this._isOn!==e&&(this._isOn=e,this.isConnected&&this._syncToggleState())}get densityLevel(){return this._densityLevel}set densityLevel(e){this._densityLevel!==e&&(this._densityLevel=e,this.setAttribute(K2.attributes.DENSITY_LEVEL,String(this._densityLevel)))}focus(e){var a;(a=this._buttonOrAnchorElement)==null||a.focus(e)}};Po=s([y({name:K2.elementName,dependencies:[X,Q,r1]})],Po);var W6=class extends X1{constructor(t){super(t)}destroy(){this._buttonElement=void 0}get buttonElement(){return this._buttonElement}_build(){var e;let t=document.createElement(K2.elementName);if(this._buttonElement=document.createElement("button"),this._buttonElement.type="button",t.appendChild(this._buttonElement),(e=this._config.options)!=null&&e.tooltip){let a=document.createElement("forge-tooltip");a.textContent=this._config.options.tooltip,this._config.options.tooltipPosition&&(a.position=this._config.options.tooltipPosition),t.appendChild(a)}return t}onClick(t){var e;(e=this._buttonElement)==null||e.addEventListener("click",t)}onFocus(t){var e;(e=this._buttonElement)==null||e.addEventListener("focus",t)}onBlur(t){var e;(e=this._buttonElement)==null||e.addEventListener("blur",t)}get iconElement(){return this._iconElement}get disabled(){var t;return!!((t=this._buttonElement)!=null&&t.disabled)}set disabled(t){this._buttonElement&&(this._buttonElement.disabled=t)}_configure(){this._configureIcon()}_configureIcon(){var e,a,o,n;if(!((e=this._config.options)!=null&&e.iconName))return;switch(((a=this._config.options)==null?void 0:a.iconType)||"component"){case"font":let i=Array.isArray(this._config.options.iconClass)?this._config.options.iconClass:[ke];(o=this._buttonElement)==null||o.classList.add(...i),this._buttonElement&&(this._buttonElement.textContent=this._config.options.iconName);break;case"component":this._iconElement=document.createElement(h1.elementName),this._iconElement.name=this._config.options.iconName,this._config.options.iconExternal!==void 0&&(this._iconElement.external=!!this._config.options.iconExternal),this._config.options.iconExternalType&&(this._iconElement.externalType=this._config.options.iconExternalType),this._config.options.iconClass&&this._iconElement.classList.add(...this._config.options.iconClass),(n=this._buttonElement)==null||n.appendChild(this._iconElement);break}}};function G6(){x(Po)}var Nl=class extends I{constructor(t){super(t)}startButtonObserver(){this._buttonChangeObserver=new MutationObserver(t=>{let e=t.reduce((a,{addedNodes:o})=>{let n=Array.from(o).filter(i=>i.nodeType===Node.ELEMENT_NODE).map(i=>i.nodeName.toLowerCase()===I2.elementName?i:i.querySelector(I2.elementName)).filter(i=>!!i);return a.concat(n)},[]);e.length&&(e.forEach(a=>{a.variant=this._component.variant,a.theme=this._component.theme,a.disabled=this._component.disabled,a.dense=this._component.dense}),this.setPill(this._component.pill))}),this._buttonChangeObserver.observe(this._component,{childList:!0,subtree:!0})}destroyButtonObserver(){var t;(t=this._buttonChangeObserver)==null||t.disconnect(),this._buttonChangeObserver=void 0}setVariant(t){this._getButtons().forEach(a=>a.variant=t)}setTheme(t){this._getButtons().forEach(a=>a.theme=t)}setDisabled(t){this._getButtons().forEach(a=>a.disabled=t)}setDense(t){this._getButtons().forEach(a=>a.dense=t)}setPill(t){let e=this._getButtons();e.length>2&&Array.from(e).slice(1,e.length-1).filter(({pill:n})=>n).forEach(n=>n.pill=!1);let a=e[0];a&&(a.pill=t);let o=e[e.length-1];o&&(o.pill=t)}_getButtons(){return this._component.querySelectorAll(I2.elementName)}};var Gb=`${b}split-button`,Yb={VARIANT:"variant",THEME:"theme",DISABLED:"disabled",DENSE:"dense",PILL:"pill"},Kb={DEFAULT_VARIANT:"text",DEFAULT_THEME:"primary"},u2={elementName:Gb,attributes:Yb,defaults:Kb};var Rl=class{constructor(t){this._adapter=t;this._variant=u2.defaults.DEFAULT_VARIANT;this._theme=u2.defaults.DEFAULT_THEME;this._disabled=!1;this._dense=!1;this._pill=!1}initialize(){this._adapter.startButtonObserver(),this._adapter.setVariant(this._variant),this._adapter.setTheme(this._theme),this._adapter.setDisabled(this._disabled),this._adapter.setDense(this._dense),this._adapter.setPill(this._pill)}destroy(){this._adapter.destroyButtonObserver()}get variant(){return this._variant}set variant(t){this._variant!==t&&(this._variant=t!=null?t:u2.defaults.DEFAULT_VARIANT,this._adapter.setVariant(t),this._adapter.setHostAttribute(u2.attributes.VARIANT,this._variant))}get theme(){return this._theme}set theme(t){this._theme!==t&&(this._theme=t!=null?t:u2.defaults.DEFAULT_THEME,this._adapter.setTheme(this._theme),this._adapter.setHostAttribute(u2.attributes.THEME,this._theme))}get disabled(){return this._disabled}set disabled(t){this._disabled!==t&&(this._disabled=t,this._adapter.setDisabled(this._disabled),this._adapter.toggleHostAttribute(u2.attributes.DISABLED,this._disabled))}get dense(){return this._dense}set dense(t){this._dense!==t&&(this._dense=t,this._adapter.setDense(this._dense),this._adapter.toggleHostAttribute(u2.attributes.DENSE,this._dense))}get pill(){return this._pill}set pill(t){this._pill!==t&&(this._pill=t,this._adapter.setPill(this._pill),this._adapter.toggleHostAttribute(u2.attributes.PILL,this._pill))}};var qb="<template><slot></slot></template>",$b=":host{--_split-button-min-width:var(--forge-split-button-min-width, 0);--_split-button-gap:var(--forge-split-button-gap, var(--forge-border-thin, 1px));--_split-button-focus-indicator-offset:var(--forge-split-button-focus-indicator-offset, var(--forge-button-focus-indicator-offset, 4px));--_split-button-focus-indicator-divider-offset:var(--forge-split-button-focus-indicator-divider-offset, var(--_split-button-gap));--_split-button-focus-indicator-offset-adjusted:calc(var(--_split-button-focus-indicator-offset) + var(--_split-button-focus-indicator-divider-offset) * 2)}:host{display:inline-flex;justify-content:center;align-items:center}:host([hidden]){display:none}::slotted(*){--forge-button-min-width:var(--_split-button-min-width);--forge-button-focus-indicator-offset:var(--_split-button-focus-indicator-offset)}::slotted(:first-child){--forge-button-shape-start-end-radius:0;--forge-button-shape-end-end-radius:0;--forge-focus-indicator-shape-start-end:0;--forge-focus-indicator-shape-end-end:0;--forge-focus-indicator-offset-inline:0 var(--_split-button-focus-indicator-offset-adjusted)}::slotted(:not(:first-child):not(:last-child)){--forge-button-shape:0;--forge-focus-indicator-shape:0;--forge-focus-indicator-offset-inline:var(--_split-button-focus-indicator-offset-adjusted)}::slotted(:last-child){--forge-button-shape-start-start-radius:0;--forge-button-shape-end-start-radius:0;--forge-focus-indicator-shape-start-start:0;--forge-focus-indicator-shape-end-start:0;--forge-focus-indicator-offset-inline:var(--_split-button-focus-indicator-offset-adjusted) 0}:host([variant=outlined]){--_split-button-focus-indicator-divider-offset:var(--forge-split-button-focus-indicator-divider-offset, 0px)}:host([variant=outlined]) ::slotted(:not(:first-child)){margin-inline-start:calc(-1 * var(--_split-button-gap))}:host(:is([variant=tonal],[variant=filled],[variant=raised],:not([variant]))) ::slotted(:not(:last-child)){margin-inline-end:var(--_split-button-gap)}",ze=class extends M{static get observedAttributes(){return[u2.attributes.VARIANT,u2.attributes.THEME,u2.attributes.DISABLED,u2.attributes.DENSE,u2.attributes.PILL]}constructor(){super(),H(this,qb,$b),this._core=new Rl(new Nl(this))}connectedCallback(){this._core.initialize()}disconnectedCallback(){this._core.destroy()}attributeChangedCallback(t,e,a){switch(t){case u2.attributes.VARIANT:this.variant=a;break;case u2.attributes.THEME:this.theme=a;break;case u2.attributes.DISABLED:this.disabled=p(a);break;case u2.attributes.DENSE:this.dense=p(a);break;case u2.attributes.PILL:this.pill=p(a);break}}};s([v()],ze.prototype,"variant",2),s([v()],ze.prototype,"theme",2),s([v()],ze.prototype,"disabled",2),s([v()],ze.prototype,"dense",2),s([v()],ze.prototype,"pill",2),ze=s([y({name:u2.elementName,dependencies:[V2]})],ze);function $A1(){x(ze)}function tB1(){let r="0123456789ABCDEF".split(""),t="#";for(let e=0;e<6;e++)t+=r[Math.floor(Math.random()*16)];return t}function uT1(){G3(),sv(),zh(),oh(),ih(),ic(),vv(),qc(),ho(),Xc(),nh(),Zc(),rp(),np(),Bh(),cc(),gc(),Op(),Pp(),_c(),Nc(),Uc(),Rc(),Np(),Gp(),Kp(),$p(),ep(),sc(),Qp(),U3(),Bc(),nd(),vd(),iv(),gv(),N3(),hd(),cd(),fd(),pd(),Cc(),yd(),bh(),mh(),dh(),Ch(),Md(),Hd(),ad(),td(),R3(),Td(),Sd(),th(),Id(),Rd(),fh(),nc(),xc(),yc(),Ad(),Nd(),Ud(),yh(),Yd(),jd(),p6(),g6(),nv(),w6(),_6(),Ic(),V6(),I6(),b6(),kc(),S6(),O6(),rc(),ah(),P6(),N6()}function _T1(){F6(),G6()}export{wa as ACCORDION_CONSTANTS,J3 as ANIMATION_FILL,W1 as APP_BAR_CONSTANTS,Ne as APP_BAR_HELP_BUTTON_CONSTANTS,to as APP_BAR_MENU_BUTTON_CONSTANTS,m2 as APP_BAR_NOTIFICATION_BUTTON_CONSTANTS,_1 as APP_BAR_PROFILE_BUTTON_CONSTANTS,A2 as APP_BAR_SEARCH_CONSTANTS,Zl as ARIA_CONTROLS_PLACEHOLDER_ID,s1 as AUTOCOMPLETE_CONSTANTS,Ca as AVATAR_CONSTANTS,z4 as AVATAR_TAG_NAME,bn as AccordionAdapter,ua as AccordionComponent,yn as AccordionCore,Vn as AppBarAdapter,be as AppBarComponent,En as AppBarCore,mi as AppBarHelpButtonAdapter,q0 as AppBarHelpButtonComponent,gi as AppBarHelpButtonCore,io as AppBarMenuButtonComponent,qn as AppBarNotificationButtonAdapter,Le as AppBarNotificationButtonComponent,$n as AppBarNotificationButtonCore,Ci as AppBarProfileButtonAdapter,U2 as AppBarProfileButtonComponent,zi as AppBarProfileButtonCore,zn as AppBarSearchAdapter,h0 as AppBarSearchComponent,Cn as AppBarSearchCore,rs as AutocompleteAdapter,c2 as AutocompleteComponent,Kc as AutocompleteComponentDelegate,ns as AutocompleteCore,Wc as AutocompleteMode,Ve as AvatarComponent,s2 as BACKDROP_CONSTANTS,j2 as BADGE_CONSTANTS,M2 as BANNER_CONSTANTS,Z1 as BASE_DRAWER_CONSTANTS,F as BASE_FIELD_CONSTANTS,bt as BASE_SELECT_CONSTANTS,A1 as BOTTOM_SHEET_CONSTANTS,Bt as BUTTON_AREA_CONSTANTS,I2 as BUTTON_CONSTANTS,y3 as BUTTON_FORM_ATTRIBUTES,Z2 as BUTTON_TOGGLE_CONSTANTS,N1 as BUTTON_TOGGLE_GROUP_CONSTANTS,We as BackdropComponent,G0 as BadgeComponent,rh as BadgeComponentDelegate,is as BannerAdapter,g0 as BannerComponent,ss as BannerCore,I as BaseAdapter,M as BaseComponent,X1 as BaseComponentDelegate,ra as BaseDrawerAdapter,Ke as BaseDrawerComponent,na as BaseDrawerCore,b2 as BaseField,mo as BaseFieldAdapter,go as BaseFieldCore,To as BaseSelectAdapter,yt as BaseSelectComponent,So as BaseSelectCore,ds as BottomSheetAdapter,Ge as BottomSheetComponent,ms as BottomSheetCore,_i as ButtonAdapter,gs as ButtonAreaAdapter,Aa as ButtonAreaComponent,ws as ButtonAreaCore,V2 as ButtonComponent,xi as ButtonComponentDelegate,fi as ButtonCore,Ti as ButtonToggleAdapter,le as ButtonToggleComponent,Si as ButtonToggleCore,ki as ButtonToggleGroupAdapter,Q2 as ButtonToggleGroupComponent,Oi as ButtonToggleGroupCore,m as CALENDAR_CONSTANTS,kp as CALENDAR_DROPDOWN_CONSTANTS,T as CALENDAR_MENU_CONSTANTS,Mr as CARD_CONSTANTS,G5 as CDN_BASE_URL,z1 as CHECKBOX_CONSTANTS,d1 as CHIP_CONSTANTS,g2 as CHIP_FIELD_CONSTANTS,tt as CHIP_SET_CONSTANTS,C2 as CIRCULAR_PROGRESS_CONSTANTS,g1 as COLOR_PICKER_CONSTANTS,b as COMPONENT_NAME_PREFIX,Vs as CalendarAdapter,v1 as CalendarComponent,Sp as CalendarComponentDelegate,Es as CalendarCore,_o as CalendarDropdown,fs as CalendarMenuAdapter,Ye as CalendarMenuComponent,xs as CalendarMenuCore,vp as CalendarMonthFocus,fo as CardComponent,xl as CellAlign,Di as CheckboxAdapter,J2 as CheckboxComponent,uc as CheckboxComponentDelegate,Pi as CheckboxCore,es as ChipAdapter,y2 as ChipComponent,as as ChipCore,Qi as ChipFieldAdapter,za as ChipFieldComponent,Fc as ChipFieldComponentDelegate,Ji as ChipFieldCore,wo as ChipSetComponent,Cs as CircularProgressAdapter,Tt as CircularProgressComponent,zs as CircularProgressCore,As as ColorPickerAdapter,ce as ColorPickerComponent,Ss as ColorPickerCore,j4 as ColorPickerValueType,ft as DATE_PICKER_CONSTANTS,k2 as DATE_RANGE_PICKER_CONSTANTS,X4 as DEFAULT_COLOR,hn as DEFAULT_DATE_MASK,Wo as DEFERRED_LABEL_TARGET,Ot as DEPRECATED_BUTTON_CONSTANTS,K2 as DEPRECATED_ICON_BUTTON_CONSTANTS,O as DIALOG_CONSTANTS,co as DIVIDER_CONSTANTS,Zp as DRAWER_CONSTANTS,ga as DateInputMask,Os as DatePickerAdapter,Mo as DatePickerComponent,Yp as DatePickerComponentDelegate,Ds as DatePickerCore,Ps as DatePickerRange,l2 as DateRange,qp as DateRangeComponentDelegate,Ns as DateRangePickerAdapter,oa as DateRangePickerComponent,Rs as DateRangePickerCore,fr as DayOfWeek,Jr as Deferred,Do as DeprecatedButtonComponent,R6 as DeprecatedButtonComponentDelegate,Po as DeprecatedIconButtonComponent,W6 as DeprecatedIconButtonComponentDelegate,hs as DialogAdapter,E1 as DialogComponent,ps as DialogCore,Vt as DismissibleStack,Z0 as DividerComponent,Ho as DrawerComponent,tv as EASING,D1 as EXPANSION_PANEL_CONSTANTS,fn as ExpansionPanelAdapter,_t as ExpansionPanelComponent,xn as ExpansionPanelCore,V as FIELD_CONSTANTS,w1 as FILE_PICKER_CONSTANTS,Q1 as FLOATING_ACTION_BUTTON_CONSTANTS,m1 as FOCUS_INDICATOR_CONSTANTS,$i as FieldAdapter,k1 as FieldComponent,Xi as FieldCore,Ws as FilePickerAdapter,Gt as FilePickerComponent,rd as FilePickerComponentDelegate,Gs as FilePickerCore,Ys as FloatingActionButtonAdapter,_0 as FloatingActionButtonComponent,ld as FloatingActionButtonComponentDelegate,Ks as FloatingActionButtonCore,Ln as FocusIndicatorAdapter,Q as FocusIndicatorComponent,In as FocusIndicatorCore,a2 as FormFieldComponentDelegate,Xr as GlobalConfiguration,L3 as HAS_MERIDIEM_REGEX,J as ICON_BUTTON_CONSTANTS,ke as ICON_CLASS_NAME,h1 as ICON_CONSTANTS,mn as ICON_REGISTRY_KEY,$3 as INITIAL_ORIGIN_SCALE,Eo as INLINE_MESSAGE_CONSTANTS,CH as INPUT_ARIA_ATTRIBUTES,zH as INPUT_PROPERTIES,Cm as ISO_8601_REGEX,zm as ISO_TIMEZONE_REGEX,gn as IconAdapter,Bn as IconButtonAdapter,n1 as IconButtonComponent,mv as IconButtonComponentDelegate,An as IconButtonCore,X as IconComponent,P0 as IconComponentDelegate,un as IconCore,q as IconRegistry,Co as InlineMessageComponent,p2 as KEYBOARD_SHORTCUT_CONSTANTS,W5 as KEYSTROKE_DEBOUNCE_THRESHOLD,Ta as KeyComponent,qe as KeyItemComponent,qs as KeyboardShortcutAdapter,xt as KeyboardShortcutComponent,$s as KeyboardShortcutCore,o2 as LABEL_CONSTANTS,pe as LABEL_VALUE_CONSTANTS,S2 as LINEAR_PROGRESS_CONSTANTS,I1 as LIST_CONSTANTS,l1 as LIST_ITEM_CONSTANTS,Ki as LabelAdapter,ve as LabelComponent,qi as LabelCore,zo as LabelValueComponent,bd as LabelValueComponentDelegate,ae as LinearProgressComponent,Xn as ListAdapter,h2 as ListComponent,jn as ListCore,Zn as ListItemAdapter,j1 as ListItemComponent,Qn as ListItemCore,e1 as MENU_CONSTANTS,i4 as MINIMUM_PRESS_MS,ed as MINI_DRAWER_CONSTANTS,Lo as MODAL_DRAWER_CONSTANTS,pi as MenuAdapter,x2 as MenuComponent,di as MenuCore,Y1 as MeterComponent,O2 as MeterGroupComponent,Vo as MiniDrawerComponent,Fs as ModalDrawerAdapter,Io as ModalDrawerComponent,Us as ModalDrawerCore,i5 as NAVIGATION_KEYS,It as OPEN_ICON_CONSTANTS,N as OPTION_CONSTANTS,ia as OPTION_GROUP_CONSTANTS,B as OVERLAY_CONSTANTS,Zv as OVERLAY_FALLBACK_PLACEMENT_MAP,Qa as OpenIconComponent,Zs as OptionAdapter,J1 as OptionComponent,Qs as OptionCore,Xe as OptionGroupComponent,Gc as OptionType,Fn as OverlayAdapter,d2 as OverlayComponent,Wn as OverlayCore,X3 as PADDING,Ld as PAGE_STATE_CONSTANTS,$ as PAGINATOR_CONSTANTS,Tm as PARSEABLE_TIME_FORMAT,Z as POPOVER_CONSTANTS,_h as POPOVER_HOVER_TIMEOUT,q3 as PRESS_GROW_MS,Q3 as PRESS_PSEUDO,Y as PROFILE_CARD_CONSTANTS,Ao as PageStateComponent,js as PaginatorAdapter,ot as PaginatorComponent,Xs as PaginatorCore,ev as PointerState,ti as PopoverAdapter,P1 as PopoverComponent,ai as PopoverCore,wi as ProfileCardAdapter,F2 as ProfileCardComponent,ui as ProfileCardCore,f1 as RADIO_CONSTANTS,po as RADIO_GROUP_CONSTANTS,EH as REFLECTIVE_ARIA_ATTRIBUTES,Ri as RadioAdapter,vt as RadioComponent,Fi as RadioCore,Ui as RadioGroupAdapter,Q0 as RadioGroupComponent,Wi as RadioGroupCore,Bo as SCAFFOLD_CONSTANTS,G2 as SELECT_CONSTANTS,je as SELECT_DROPDOWN_CONSTANTS,ni as SKELETON_CONSTANTS,pt as SKIP_LINK_CONSTANTS,E as SLIDER_CONSTANTS,Z3 as SOFT_EDGE_CONTAINER_RATIO,j3 as SOFT_EDGE_MINIMUM_SIZE,u2 as SPLIT_BUTTON_CONSTANTS,t2 as SPLIT_VIEW_CONSTANTS,D as SPLIT_VIEW_PANEL_CONSTANTS,D2 as STACK_CONSTANTS,M1 as STATE_LAYER_CONSTANTS,R as STEPPER_CONSTANTS,S as STEP_CONSTANTS,no as SUPPORTS_POPOVER,i1 as SWITCH_CONSTANTS,$e as ScaffoldComponent,Js as SelectAdapter,Ee as SelectComponent,Wd as SelectComponentDelegate,tl as SelectCore,al as SelectDropdownAdapter,f0 as SelectDropdownComponent,el as SelectDropdownCore,kd as SelectOptionType,Y0 as SkeletonComponent,ko as SkipLinkComponent,w2 as SliderComponent,Xd as SliderComponentDelegate,b3 as SlottedElementAdapter,bl as SortDirection,Nl as SplitButtonAdapter,ze as SplitButtonComponent,Rl as SplitButtonCore,cl as SplitViewAdapter,Jd as SplitViewAnimatingLayer,Ce as SplitViewComponent,pl as SplitViewCore,hl as SplitViewPanelAdapter,H2 as SplitViewPanelComponent,vl as SplitViewPanelCore,dl as StackAdapter,de as StackComponent,ml as StackCore,Mn as StateLayerAdapter,r1 as StateLayerComponent,Ja as StateLayerCoords,Hn as StateLayerCore,wl as StepAdapter,Y2 as StepComponent,ul as StepCore,_l as StepperAdapter,St as StepperComponent,fl as StepperCore,Gi as SwitchAdapter,W2 as SwitchComponent,Lc as SwitchComponentDelegate,Yi as SwitchCore,f as TABLE_CONSTANTS,T1 as TAB_BAR_CONSTANTS,F1 as TAB_CONSTANTS,V1 as TEXT_FIELD_CONSTANTS,U as TIME_PICKER_CONSTANTS,B1 as TOAST_CONSTANTS,mr as TOOLBAR_CONSTANTS,o1 as TOOLTIP_CONSTANTS,K3 as TOUCH_DELAY_MS,Fm as TWELVE_HOUR_TIME_MASK,Um as TWELVE_HOUR_TIME_MASK_WITH_SECONDS,an as TWELVE_HOUR_TIME_REGEX,Wm as TWENTY_FOUR_HOUR_TIME_MASK,Gm as TWENTY_FOUR_HOUR_TIME_MASK_WITH_SECONDS,$a as TWENTY_FOUR_HOUR_TIME_REGEX,Il as TabAdapter,El as TabBarAdapter,Mt as TabBarComponent,Cl as TabBarCore,kt as TabComponent,Vl as TabCore,yl as TableAdapter,q1 as TableComponent,Ll as TableCore,$x as TableFilterType,Hl as TableRow,ji as TextFieldAdapter,m0 as TextFieldComponent,J0 as TextFieldComponentDelegate,Zi as TextFieldCore,dn as TimeInputMask,zl as TimePickerAdapter,O1 as TimePickerComponent,T6 as TimePickerComponentDelegate,Sl as TimePickerCore,kl as ToastAdapter,Kt as ToastComponent,Ol as ToastCore,se as ToolbarComponent,Gn as TooltipAdapter,p1 as TooltipComponent,Kn as TooltipCore,D6 as VIEW_CONSTANTS,e2 as VIEW_SWITCHER_CONSTANTS,p5 as ViewAnimationDirection,la as ViewComponent,Dl as ViewSwitcherAdapter,Vb as ViewSwitcherAnimationType,va as ViewSwitcherComponent,Pl as ViewSwitcherCore,k3 as awaitIconDefinition,n0 as canUserHoverElements,nl as clampSize,a6 as clearState,e4 as cloneAttributes,Am as cloneProperties,Bm as cloneValidationMessage,q4 as coerceDateFromValue,da as coerceStringToArray,h6 as createOverlay,wn as createSanitizedSvg,M3 as createSvgFromString,w3 as createUserInteractionListener,G3 as defineAccordionComponent,sv as defineAppBarComponent,zh as defineAppBarHelpButtonComponent,oh as defineAppBarMenuButtonComponent,ih as defineAppBarNotificationButtonComponent,ic as defineAppBarProfileButtonComponent,vv as defineAppBarSearchComponent,qc as defineAutocompleteComponent,ho as defineAvatarComponent,Xc as defineBackdropComponent,nh as defineBadgeComponent,Zc as defineBannerComponent,rp as defineBottomSheetComponent,np as defineButtonAreaComponent,Bh as defineButtonComponent,cc as defineButtonToggleComponent,gc as defineButtonToggleGroupComponent,Op as defineCalendarComponent,zl1 as defineCalendarMenuComponent,Pp as defineCardComponent,_c as defineCheckboxComponent,Nc as defineChipComponent,Uc as defineChipFieldComponent,Rc as defineChipSetComponent,Np as defineCircularProgressComponent,Gp as defineColorPickerComponent,uT1 as defineComponents,Kp as defineDatePickerComponent,$p as defineDateRangePickerComponent,F6 as defineDeprecatedButtonComponent,_T1 as defineDeprecatedComponents,G6 as defineDeprecatedIconButtonComponent,ep as defineDialogComponent,sc as defineDividerComponent,Qp as defineDrawerComponent,U3 as defineExpansionPanelComponent,Bc as defineFieldComponent,nd as defineFilePickerComponent,vd as defineFloatingActionButtonComponent,iv as defineFocusIndicatorComponent,gv as defineIconButtonComponent,N3 as defineIconComponent,hd as defineInlineMessageComponent,cd as defineKeyComponent,pd as defineKeyItemComponent,fd as defineKeyboardShortcutComponent,Cc as defineLabelComponent,yd as defineLabelValueComponent,bh as defineLinearProgressComponent,mh as defineListComponent,dh as defineListItemComponent,Ch as defineMenuComponent,Md as defineMeterComponent,Hd as defineMeterGroupComponent,ad as defineMiniDrawerComponent,td as defineModalDrawerComponent,R3 as defineOpenIconComponent,Td as defineOptionComponent,Sd as defineOptionGroupComponent,th as defineOverlayComponent,Id as definePageStateComponent,Rd as definePaginatorComponent,fh as definePopoverComponent,nc as defineProfileCardComponent,xc as defineRadioComponent,yc as defineRadioGroupComponent,Ad as defineScaffoldComponent,Nd as defineSelectComponent,Ud as defineSelectDropdownComponent,yh as defineSkeletonComponent,Yd as defineSkipLinkComponent,jd as defineSliderComponent,$A1 as defineSplitButtonComponent,p6 as defineSplitViewComponent,ub1 as defineSplitViewPanelComponent,g6 as defineStackComponent,nv as defineStateLayerComponent,w6 as defineStepComponent,_6 as defineStepperComponent,Ic as defineSwitchComponent,V6 as defineTabBarComponent,I6 as defineTabComponent,b6 as defineTableComponent,kc as defineTextFieldComponent,S6 as defineTimePickerComponent,O6 as defineToastComponent,rc as defineToolbarComponent,ah as defineTooltipComponent,P6 as defineViewComponent,N6 as defineViewSwitcherComponent,w0 as dialogStack,wd as elementAcceptsTextInput,Y3 as elementName,_3 as elementsOverlapping,_n as emulateUserToggle,t4 as eventIncludesArrowKey,xr as eventIncludesDate,Hp as eventIncludesElement,D3 as fetchIconContent,sf as fixKey,Ga as forgeLabelRef,d3 as formatDate,S0 as forwardAttributes,Ko as frame,W4 as getAccessibleHeader,Bp as getAllYearOptions,S3 as getCachedIcon,yp as getClearButton,v5 as getCurrentTimeOfDayMillis,n5 as getCursor,F4 as getDateElement,at as getDateId,Ba as getDateRangeFromDates,gp as getDateRow,bs as getDateSpacerElement,Ep as getDatesFromDateRange,Ls as getDatesInRange,mp as getDayElement,Pu as getDayId,K4 as getEventDescriptions,up as getEventElement,wp as getEventWrapperElement,R4 as getEventWrapperId,Is as getEventsOnDate,br as getFirstDateOfWeek,p41 as getFirstDayOfMonth,cp as getFirstDayOfWeekForLocale,bp as getFooter,$t as getFormState,Lt as getFormValue,us as getGrid,ip as getGridItems,v6 as getHandleIcon,U4 as getHeader,yr as getIndexOfDate,jl as getLastDateOfMonth,Lp as getLastDateOfWeek,lp as getList,_s as getListItems,hp as getLocalizedDayOfMonth,N4 as getLocalizedDayOfWeek,aa as getLocalizedMonth,u0 as getLocalizedYear,Hs as getMinAndMaxDates,nf as getModiferKeysString,fp as getMonthButtonContent,Y4 as getMonthDates,m3 as getMonthLength,zp as getMonthOptions,Tp as getMultipleFromRange,AH as getPartPrefixedAttributes,Sa as getPixelDimension,sp as getScrollSpy,Yc as getSelectedOption,ys as getSortedDaysOfWeek,ll as getSplitViewPanelSibling,Mp as getTodayButton,_p as getTooltip,Xt as getValidationMessage,sl as getValuenow,c41 as getWeekDates,pp as getWeekendDaysForLocale,xp as getYearButtonContent,Ap as getYearOptions,l6 as handleBoundariesAfterResize,il as handleBoundariesDuringResize,ls as hideBackdrop,g3 as highlightTextHTML,A6 as hoursToMillis,t6 as initState,jt as inputType,a1 as internals,ct as isDisabled,$1 as isFocusable,ht as isInMonth,Nu as isInRange,f3 as isInstanceOf,lc as isLabelAware,o5 as isOptionGroupObject,Af as isOptionObject,gr as isOptionType,Ql as isPointerOverElement,dp as isRtlLocale,H3 as isSafeSvg,f2 as isSameDate,a5 as isSelectOptionType,uo as isSelected,E3 as isSupportedTimeFormat,Ip as isToday,r6 as keyboardResize,Yo as locateElementById,en as locateTargetHeuristic,_d as matchKeyCombination,i6 as maxResize,KV1 as mergeDateWithTime,C6 as millisToHours,Bl as millisToMinutes,z6 as millisToMinutesClamped,db as millisToSeconds,s5 as millisToSecondsClamped,Yt as millisToTimeString,n6 as minResize,Tl as minutesToMillis,wr as optionEqualPredicate,W0 as overlayStack,Ru as parseDateOffset,p3 as parseDateString,ud as parseKeyCombinations,px as parseSize,Cp as parseYearRange,u3 as percentToPixels,_H as pixelsToPercent,o6 as pointerResize,U5 as prefersReducedMotion,x3 as proxyShadowScrollEvent,tB1 as randomHexColor,ur as removeAllExceptLastChild,O3 as removeIconListener,Ka as replaceElement,s6 as resizeSibling,qa as roundByDPR,fH as safeMax,B0 as safeMin,P3 as sanitizeExternalType,tn as scaleValue,l5 as secondsToMillis,Zt as setAriaControls,P as setDefaultAria,e6 as setState,G4 as setTabindexOnElement,wt as setValidity,$4 as shouldHandleEvent,vs as showBackdrop,Ms as sortDates,Vp as splitIntoWeeks,B6 as stripSecondsFromMillis,R5 as supportsElementInternalsAria,F5 as supportsHover,jr as supportsPopover,Qt as task,gd as textInputTypes,Al as timeStringToMillis,V3 as tokenize12HourTimeString,I3 as tokenize24HourTimeString,Ni as tryCheck,C3 as tryCoerceTimeString,Oe as tryCreateAriaControlsPlaceholder,T0 as tryDismiss,bH as unwrapElements,Zr as updateTarget,xH as wrapElements};
|
|
62
62
|
/**
|
|
63
63
|
* @license
|
|
64
64
|
* Copyright 2023 Google LLC
|