const e=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof global)return global;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;try{return new Function("return this")()}catch(e){return{}}}();void 0===e.trustedTypes&&(e.trustedTypes={createPolicy:(e,t)=>t});const t=Object.freeze([]),i=[],s=e.trustedTypes.createPolicy("fast-html",{createHTML:e=>e});let o=s;const n=[];function r(){if(n.length)throw n.shift()}function a(e){try{e.call()}catch(e){n.push(e),setTimeout(r,0)}}const l=`fast-${Math.random().toString(36).substring(2,8)}`,d=`${l}{`,c=`}${l}`,h=Object.freeze({supportsAdoptedStyleSheets:Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype,setHTMLPolicy(e){if(o!==s)throw new Error("The HTML policy can only be set once.");o=e},createHTML:e=>o.createHTML(e),isMarker:e=>e&&8===e.nodeType&&e.data.startsWith(l),extractDirectiveIndexFromMarker:e=>parseInt(e.data.replace(`${l}:`,"")),createInterpolationPlaceholder:e=>`${d}${e}${c}`,createCustomAttributePlaceholder(e,t){return`${e}="${this.createInterpolationPlaceholder(t)}"`},createBlockPlaceholder:e=>`\x3c!--${l}:${e}--\x3e`,queueUpdate(e){i.length<1&&window.requestAnimationFrame(h.processUpdates),i.push(e)},processUpdates(){let e=0;for(;e1024){for(let t=0,s=i.length-e;tnew Promise((e=>{h.queueUpdate(e)})),setAttribute(e,t,i){null==i?e.removeAttribute(t):e.setAttribute(t,i)},setBooleanAttribute(e,t,i){i?e.setAttribute(t,""):e.removeAttribute(t)},removeChildNodes(e){for(let t=e.firstChild;null!==t;t=e.firstChild)e.removeChild(t)},createTemplateWalker:e=>document.createTreeWalker(e,133,null,!1)});function u(e){const t=this.spillover;-1===t.indexOf(e)&&t.push(e)}function p(e){const t=this.spillover,i=t.indexOf(e);-1!==i&&t.splice(i,1)}function f(e){const t=this.spillover,i=this.source;for(let s=0,o=t.length;s{throw new Error("Must call enableArrayObservation before observing arrays.")};class ${constructor(e){this.name=e,this.field=`_${e}`,this.callback=`${e}Changed`}getValue(e){return void 0!==C&&C.watch(e,this.name),e[this.field]}setValue(e,t){const i=this.field,s=e[i];if(s!==t){e[i]=t;const o=e[this.callback];"function"==typeof o&&o.call(e,s,t),T(e).notify(this.name)}}}const k=Object.freeze({setArrayObserverFactory(e){w=e},getNotifier(e){let t=e.$fastController||y.get(e);return void 0===t&&(Array.isArray(e)?t=w(e):y.set(e,t=new m(e))),t},track(e,t){void 0!==C&&C.watch(e,t)},trackVolatile(){void 0!==C&&(C.needsRefresh=!0)},notify(e,t){T(e).notify(t)},defineProperty(e,t){"string"==typeof t&&(t=new $(t)),this.getAccessors(e).push(t),Reflect.defineProperty(e,t.name,{enumerable:!0,get:function(){return t.getValue(this)},set:function(e){t.setValue(this,e)}})},getAccessors(e){let t=x.get(e);if(void 0===t){let i=Reflect.getPrototypeOf(e);for(;void 0===t&&null!==i;)t=x.get(i),i=Reflect.getPrototypeOf(i);t=void 0===t?[]:t.slice(0),x.set(e,t)}return t},binding(e,t,i=this.isVolatileBinding(e)){return new E(e,t,i)},isVolatileBinding:e=>v.test(e.toString())}),T=k.getNotifier;k.trackVolatile;const I=h.queueUpdate;function O(e,t){k.defineProperty(e,t)}let R=null;function A(e){R=e}class D{constructor(){this.index=0,this.length=0,this.parent=null,this.parentContext=null}get event(){return R}get isEven(){return this.index%2==0}get isOdd(){return this.index%2!=0}get isFirst(){return 0===this.index}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}}k.defineProperty(D.prototype,"index"),k.defineProperty(D.prototype,"length");const S=Object.seal(new D);class E extends g{constructor(e,t,i=!1){super(e,t),this.binding=e,this.isVolatileBinding=i,this.needsRefresh=!0,this.needsQueue=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}observe(e,t){this.needsRefresh&&null!==this.last&&this.disconnect();const i=C;C=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;const s=this.binding(e,t);return C=i,s}disconnect(){if(null!==this.last){let e=this.first;for(;void 0!==e;)e.notifier.unsubscribe(this,e.propertyName),e=e.next;this.last=null,this.needsRefresh=this.needsQueue=!0}}watch(e,t){const i=this.last,s=T(e),o=null===i?this.first:{};if(o.propertySource=e,o.propertyName=t,o.notifier=s,s.subscribe(this,t),null!==i){if(!this.needsRefresh){let t;C=void 0,t=i.propertySource[i.propertyName],C=this,e===t&&(this.needsRefresh=!0)}i.next=o}this.last=o}handleChange(){this.needsQueue&&(this.needsQueue=!1,I(this))}call(){null!==this.last&&(this.needsQueue=!0,this.notify(this))}records(){let e=this.first;return{next:()=>{const t=e;return void 0===t?{value:void 0,done:!0}:(e=e.next,{value:t,done:!1})},[Symbol.iterator]:function(){return this}}}}class P{constructor(){this.targetIndex=0}}class F extends P{constructor(){super(...arguments),this.createPlaceholder=h.createInterpolationPlaceholder}}class B extends P{constructor(e,t,i){super(),this.name=e,this.behavior=t,this.options=i}createPlaceholder(e){return h.createCustomAttributePlaceholder(this.name,e)}createBehavior(e){return new this.behavior(e,this.options)}}function V(e,t){this.source=e,this.context=t,null===this.bindingObserver&&(this.bindingObserver=k.binding(this.binding,this,this.isBindingVolatile)),this.updateTarget(this.bindingObserver.observe(e,t))}function L(e,t){this.source=e,this.context=t,this.target.addEventListener(this.targetName,this)}function H(){this.bindingObserver.disconnect(),this.source=null,this.context=null}function M(){this.bindingObserver.disconnect(),this.source=null,this.context=null;const e=this.target.$fastView;void 0!==e&&e.isComposed&&(e.unbind(),e.needsBindOnly=!0)}function N(){this.target.removeEventListener(this.targetName,this),this.source=null,this.context=null}function z(e){h.setAttribute(this.target,this.targetName,e)}function _(e){h.setBooleanAttribute(this.target,this.targetName,e)}function j(e){if(null==e&&(e=""),e.create){this.target.textContent="";let t=this.target.$fastView;void 0===t?t=e.create():this.target.$fastTemplate!==e&&(t.isComposed&&(t.remove(),t.unbind()),t=e.create()),t.isComposed?t.needsBindOnly&&(t.needsBindOnly=!1,t.bind(this.source,this.context)):(t.isComposed=!0,t.bind(this.source,this.context),t.insertBefore(this.target),this.target.$fastView=t,this.target.$fastTemplate=e)}else{const t=this.target.$fastView;void 0!==t&&t.isComposed&&(t.isComposed=!1,t.remove(),t.needsBindOnly?t.needsBindOnly=!1:t.unbind()),this.target.textContent=e}}function q(e){this.target[this.targetName]=e}function U(e){const t=this.classVersions||Object.create(null),i=this.target;let s=this.version||0;if(null!=e&&e.length){const o=e.split(/\s+/);for(let e=0,n=o.length;eh.createHTML(e(t,i))}break;case"?":this.cleanedTargetName=e.substr(1),this.updateTarget=_;break;case"@":this.cleanedTargetName=e.substr(1),this.bind=L,this.unbind=N;break;default:this.cleanedTargetName=e,"class"===e&&(this.updateTarget=U)}}targetAtContent(){this.updateTarget=j,this.unbind=M}createBehavior(e){return new W(e,this.binding,this.isBindingVolatile,this.bind,this.unbind,this.updateTarget,this.cleanedTargetName)}}class W{constructor(e,t,i,s,o,n,r){this.source=null,this.context=null,this.bindingObserver=null,this.target=e,this.binding=t,this.isBindingVolatile=i,this.bind=s,this.unbind=o,this.updateTarget=n,this.targetName=r}handleChange(){this.updateTarget(this.bindingObserver.observe(this.source,this.context))}handleEvent(e){A(e);const t=this.binding(this.source,this.context);A(null),!0!==t&&e.preventDefault()}}let G=null;class Q{addFactory(e){e.targetIndex=this.targetIndex,this.behaviorFactories.push(e)}captureContentBinding(e){e.targetAtContent(),this.addFactory(e)}reset(){this.behaviorFactories=[],this.targetIndex=-1}release(){G=this}static borrow(e){const t=G||new Q;return t.directives=e,t.reset(),G=null,t}}function Y(e){if(1===e.length)return e[0];let t;const i=e.length,s=e.map((e=>"string"==typeof e?()=>e:(t=e.targetName||t,e.binding))),o=new K(((e,t)=>{let o="";for(let n=0;na)),d.targetName=r.name):d=Y(l),null!==d&&(t.removeAttributeNode(r),o--,n--,e.addFactory(d))}}function ee(e,t,i){const s=J(e,t.textContent);if(null!==s){let o=t;for(let n=0,r=s.length;n0}const t=this.fragment.cloneNode(!0),i=this.viewBehaviorFactories,s=new Array(this.behaviorCount),o=h.createTemplateWalker(t);let n=0,r=this.targetOffset,a=o.nextNode();for(let e=i.length;n=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;function ne(e,...t){const i=[];let s="";for(let o=0,n=e.length-1;oe}if("function"==typeof r&&(r=new K(r)),r instanceof F){const e=oe.exec(n);null!==e&&(r.targetName=e[2])}r instanceof P?(s+=r.createPlaceholder(i.length),i.push(r)):s+=r}return s+=e[e.length-1],new se(s,i)}class re{constructor(){this.targets=new WeakSet,this.behaviors=null}addStylesTo(e){this.targets.add(e)}removeStylesFrom(e){this.targets.delete(e)}isAttachedTo(e){return this.targets.has(e)}withBehaviors(...e){return this.behaviors=null===this.behaviors?e:this.behaviors.concat(e),this}}function ae(e){return e.map((e=>e instanceof re?ae(e.styles):[e])).reduce(((e,t)=>e.concat(t)),[])}function le(e){return e.map((e=>e instanceof re?e.behaviors:null)).reduce(((e,t)=>null===t?e:(null===e&&(e=[]),e.concat(t))),null)}re.create=(()=>{if(h.supportsAdoptedStyleSheets){const e=new Map;return t=>new de(t,e)}return e=>new he(e)})();class de extends re{constructor(e,t){super(),this.styles=e,this.styleSheetCache=t,this._styleSheets=void 0,this.behaviors=le(e)}get styleSheets(){if(void 0===this._styleSheets){const e=this.styles,t=this.styleSheetCache;this._styleSheets=ae(e).map((e=>{if(e instanceof CSSStyleSheet)return e;let i=t.get(e);return void 0===i&&(i=new CSSStyleSheet,i.replaceSync(e),t.set(e,i)),i}))}return this._styleSheets}addStylesTo(e){e.adoptedStyleSheets=[...e.adoptedStyleSheets,...this.styleSheets],super.addStylesTo(e)}removeStylesFrom(e){const t=this.styleSheets;e.adoptedStyleSheets=e.adoptedStyleSheets.filter((e=>-1===t.indexOf(e))),super.removeStylesFrom(e)}}let ce=0;class he extends re{constructor(e){super(),this.styles=e,this.behaviors=null,this.behaviors=le(e),this.styleSheets=ae(e),this.styleClass="fast-style-class-"+ ++ce}addStylesTo(e){const t=this.styleSheets,i=this.styleClass;e=this.normalizeTarget(e);for(let s=0;se?"true":"false",fromView:e=>null!=e&&"false"!==e&&!1!==e&&0!==e},pe={toView(e){if(null==e)return null;const t=1*e;return isNaN(t)?null:t.toString()},fromView(e){if(null==e)return null;const t=1*e;return isNaN(t)?null:t}};class fe{constructor(e,t,i=t.toLowerCase(),s="reflect",o){this.guards=new Set,this.Owner=e,this.name=t,this.attribute=i,this.mode=s,this.converter=o,this.fieldName=`_${t}`,this.callbackName=`${t}Changed`,this.hasCallback=this.callbackName in e.prototype,"boolean"===s&&void 0===o&&(this.converter=ue)}setValue(e,t){const i=e[this.fieldName],s=this.converter;void 0!==s&&(t=s.fromView(t)),i!==t&&(e[this.fieldName]=t,this.tryReflectToAttribute(e),this.hasCallback&&e[this.callbackName](i,t),e.$fastController.notify(this.name))}getValue(e){return k.track(e,this.name),e[this.fieldName]}onAttributeChangedCallback(e,t){this.guards.has(e)||(this.guards.add(e),this.setValue(e,t),this.guards.delete(e))}tryReflectToAttribute(e){const t=this.mode,i=this.guards;i.has(e)||"fromView"===t||h.queueUpdate((()=>{i.add(e);const s=e[this.fieldName];switch(t){case"reflect":const t=this.converter;h.setAttribute(e,this.attribute,void 0!==t?t.toView(s):s);break;case"boolean":h.setBooleanAttribute(e,this.attribute,s)}i.delete(e)}))}static collect(e,...t){const i=[];t.push(e.attributes);for(let s=0,o=t.length;s1&&(i.property=t);const s=e.constructor.attributes||(e.constructor.attributes=[]);s.push(i)}return arguments.length>1?(i={},void s(e,t)):(i=void 0===e?{}:e,s)}const ge={mode:"open"},me={},ve=new Map;class ye{constructor(e,t=e.definition){"string"==typeof t&&(t={name:t}),this.type=e,this.name=t.name,this.template=t.template;const i=fe.collect(e,t.attributes),s=new Array(i.length),o={},n={};for(let e=0,t=i.length;e0){const t=this.boundObservables=Object.create(null);for(let i=0,o=s.length;ike(e),define:(e,t)=>new ye(e,t).define().type});class Ie{createCSS(){return""}createBehavior(){}}function Oe(e,...t){const{styles:i,behaviors:s}=function(e,t){const i=[];let s="";const o=[];for(let n=0,r=e.length-1;n0||i>0;){if(0===t){o.push(2),i--;continue}if(0===i){o.push(3),t--;continue}const n=e[t-1][i-1],r=e[t-1][i],a=e[t][i-1];let l;l=r=0){e.splice(t,1),t--,r-=i.addedCount-i.removed.length,o.addedCount+=i.addedCount-s;const a=o.removed.length+i.removed.length-s;if(o.addedCount||a){let e=i.removed;if(o.indexi.index+i.addedCount){const t=o.removed.slice(i.index+i.addedCount-o.index);De.apply(e,t)}o.removed=e,i.indexs?i=s-e.addedCount:i<0&&(i=s+e.removed.length+i-e.addedCount),i<0&&(i=0),e.index=i,e}class Be extends g{constructor(e){super(e),this.oldCollection=void 0,this.splices=void 0,this.needsQueue=!0,this.call=this.flush,e.$fastController=this}addSplice(e){void 0===this.splices?this.splices=[e]:this.splices.push(e),this.needsQueue&&(this.needsQueue=!1,h.queueUpdate(this))}reset(e){this.oldCollection=e,this.needsQueue&&(this.needsQueue=!1,h.queueUpdate(this))}flush(){const e=this.splices,t=this.oldCollection;if(void 0===e&&void 0===t)return;this.needsQueue=!0,this.splices=void 0,this.oldCollection=void 0;const i=void 0===t?Ee(this.source,e):Ae(this.source,0,this.source.length,t,0,t.length);this.notify(i)}}class Ve{constructor(e,t){this.target=e,this.propertyName=t}bind(e){e[this.propertyName]=this.target}unbind(){}}function Le(e){return new B("fast-ref",Ve,e)}function He(e,t){const i="function"==typeof t?t:()=>t;return(t,s)=>e(t,s)?i(t,s):null}function Me(e,t,i,s){e.bind(t[i],s)}function Ne(e,t,i,s){const o=Object.create(s);o.index=i,o.length=t.length,e.bind(t[i],o)}Object.freeze({positioning:!1});class ze{constructor(e,t,i,s,o,n){this.location=e,this.itemsBinding=t,this.templateBinding=s,this.options=n,this.source=null,this.views=[],this.items=null,this.itemsObserver=null,this.originalContext=void 0,this.childContext=void 0,this.bindView=Me,this.itemsBindingObserver=k.binding(t,this,i),this.templateBindingObserver=k.binding(s,this,o),n.positioning&&(this.bindView=Ne)}bind(e,t){this.source=e,this.originalContext=t,this.childContext=Object.create(t),this.childContext.parent=e,this.childContext.parentContext=this.originalContext,this.items=this.itemsBindingObserver.observe(e,this.originalContext),this.template=this.templateBindingObserver.observe(e,this.originalContext),this.observeItems(!0),this.refreshAllViews()}unbind(){this.source=null,this.items=null,null!==this.itemsObserver&&this.itemsObserver.unsubscribe(this),this.unbindAllViews(),this.itemsBindingObserver.disconnect(),this.templateBindingObserver.disconnect()}handleChange(e,t){e===this.itemsBinding?(this.items=this.itemsBindingObserver.observe(this.source,this.originalContext),this.observeItems(),this.refreshAllViews()):e===this.templateBinding?(this.template=this.templateBindingObserver.observe(this.source,this.originalContext),this.refreshAllViews(!0)):this.updateViews(t)}observeItems(e=!1){if(!this.items)return void(this.items=t);const i=this.itemsObserver,s=this.itemsObserver=k.getNotifier(this.items),o=i!==s;o&&null!==i&&i.unsubscribe(this),(o||e)&&s.subscribe(this)}updateViews(e){const t=this.childContext,i=this.views,s=[],o=this.bindView;let n=0;for(let t=0,o=e.length;t0?s.shift():a.create();i.splice(d,0,l),o(l,r,d,t),l.insertBefore(n)}}for(let e=0,t=s.length;enew Be(e)));const e=Array.prototype,t=e.pop,i=e.push,s=e.reverse,o=e.shift,n=e.sort,r=e.splice,a=e.unshift;e.pop=function(){const e=this.length>0,i=t.apply(this,arguments),s=this.$fastController;return void 0!==s&&e&&s.addSplice(Re(this.length,[i],0)),i},e.push=function(){const e=i.apply(this,arguments),t=this.$fastController;return void 0!==t&&t.addSplice(Fe(Re(this.length-arguments.length,[],arguments.length),this)),e},e.reverse=function(){let e;const t=this.$fastController;void 0!==t&&(t.flush(),e=this.slice());const i=s.apply(this,arguments);return void 0!==t&&t.reset(e),i},e.shift=function(){const e=this.length>0,t=o.apply(this,arguments),i=this.$fastController;return void 0!==i&&e&&i.addSplice(Re(0,[t],0)),t},e.sort=function(){let e;const t=this.$fastController;void 0!==t&&(t.flush(),e=this.slice());const i=n.apply(this,arguments);return void 0!==t&&t.reset(e),i},e.splice=function(){const e=r.apply(this,arguments),t=this.$fastController;return void 0!==t&&t.addSplice(Fe(Re(+arguments[0],e,arguments.length>2?arguments.length-2:0),this)),e},e.unshift=function(){const e=a.apply(this,arguments),t=this.$fastController;return void 0!==t&&t.addSplice(Fe(Re(0,[],arguments.length),this)),e}}(),this.isItemsBindingVolatile=k.isVolatileBinding(e),this.isTemplateBindingVolatile=k.isVolatileBinding(t)}createBehavior(e){return new ze(e,this.itemsBinding,this.isItemsBindingVolatile,this.templateBinding,this.isTemplateBindingVolatile,this.options)}}function je(e){return e?function(t,i,s){return 1===t.nodeType&&t.matches(e)}:function(e,t,i){return 1===e.nodeType}}class qe{constructor(e,t){this.target=e,this.options=t,this.source=null}bind(e){const t=this.options.property;this.shouldUpdate=k.getAccessors(e).some((e=>e.name===t)),this.source=e,this.updateTarget(this.computeNodes()),this.shouldUpdate&&this.observe()}unbind(){this.updateTarget(t),this.source=null,this.shouldUpdate&&this.disconnect()}handleEvent(){this.updateTarget(this.computeNodes())}computeNodes(){let e=this.getNodes();return void 0!==this.options.filter&&(e=e.filter(this.options.filter)),e}updateTarget(e){this.source[this.options.property]=e}}class Ue extends qe{constructor(e,t){super(e,t)}observe(){this.target.addEventListener("slotchange",this)}disconnect(){this.target.removeEventListener("slotchange",this)}getNodes(){return this.target.assignedNodes(this.options)}}function Ke(e){return"string"==typeof e&&(e={property:e}),new B("fast-slotted",Ue,e)}class We extends qe{constructor(e,t){super(e,t),this.observer=null,t.childList=!0}observe(){null===this.observer&&(this.observer=new MutationObserver(this.handleEvent.bind(this))),this.observer.observe(this.target,this.options)}disconnect(){this.observer.disconnect()}getNodes(){return"subtree"in this.options?Array.from(this.target.querySelectorAll(this.options.selector)):Array.from(this.target.childNodes)}}function Ge(e){return"string"==typeof e&&(e={property:e}),new B("fast-children",We,e)}class Qe{handleStartContentChange(){this.startContainer.classList.toggle("start",this.start.assignedNodes().length>0)}handleEndContentChange(){this.endContainer.classList.toggle("end",this.end.assignedNodes().length>0)}}const Ye=(e,t)=>ne`t.end?"end":void 0}>${t.end||""}`,Xe=(e,t)=>ne`${t.start||""}`; /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ function Je(e,t,i,s){var o,n=arguments.length,r=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n<3?o(r):n>3?o(t,i,r):o(t,i))||r);return n>3&&r&&Object.defineProperty(t,i,r),r}ne``,ne``;const Ze=new Map;"metadata"in Reflect||(Reflect.metadata=function(e,t){return function(i){Reflect.defineMetadata(e,t,i)}},Reflect.defineMetadata=function(e,t,i){let s=Ze.get(i);void 0===s&&Ze.set(i,s=new Map),s.set(e,t)},Reflect.getOwnMetadata=function(e,t){const i=Ze.get(t);if(void 0!==i)return i.get(e)});class et{constructor(e,t){this.container=e,this.key=t}instance(e){return this.registerResolver(0,e)}singleton(e){return this.registerResolver(1,e)}transient(e){return this.registerResolver(2,e)}callback(e){return this.registerResolver(3,e)}cachedCallback(e){return this.registerResolver(3,wt(e))}aliasTo(e){return this.registerResolver(5,e)}registerResolver(e,t){const{container:i,key:s}=this;return this.container=this.key=void 0,i.registerResolver(s,new ct(s,e,t))}}function tt(e){const t=e.slice(),i=Object.keys(e),s=i.length;let o;for(let n=0;nnew ct(e,1,e),transient:e=>new ct(e,2,e)}),st=Object.freeze({default:Object.freeze({parentLocator:()=>null,responsibleForOwnerRequests:!1,defaultResolver:it.singleton})}),ot=new Map;function nt(e){return t=>Reflect.getOwnMetadata(e,t)}let rt=null;const at=Object.freeze({createContainer:e=>new xt(null,Object.assign({},st.default,e)),findResponsibleContainer(e){const t=e.$$container$$;return t&&t.responsibleForOwnerRequests?t:at.findParentContainer(e)},findParentContainer(e){const t=new CustomEvent(vt,{bubbles:!0,composed:!0,cancelable:!0,detail:{container:void 0}});return e.dispatchEvent(t),t.detail.container||at.getOrCreateDOMContainer()},getOrCreateDOMContainer:(e,t)=>e?e.$$container$$||new xt(e,Object.assign({},st.default,t,{parentLocator:at.findParentContainer})):rt||(rt=new xt(null,Object.assign({},st.default,t,{parentLocator:()=>null}))),getDesignParamtypes:nt("design:paramtypes"),getAnnotationParamtypes:nt("di:paramtypes"),getOrCreateAnnotationParamTypes(e){let t=this.getAnnotationParamtypes(e);return void 0===t&&Reflect.defineMetadata("di:paramtypes",t=[],e),t},getDependencies(e){let t=ot.get(e);if(void 0===t){const i=e.inject;if(void 0===i){const i=at.getDesignParamtypes(e),s=at.getAnnotationParamtypes(e);if(void 0===i)if(void 0===s){const i=Object.getPrototypeOf(e);t="function"==typeof i&&i!==Function.prototype?tt(at.getDependencies(i)):[]}else t=tt(s);else if(void 0===s)t=tt(i);else{t=tt(i);let e,o=s.length;for(let i=0;i{at.findResponsibleContainer(this).get(i)!==this[o]&&(this[o]=e,s.notify(t))};s.subscribe({handleChange:n},"isConnected")}}return e}})},createInterface(e,t){const i="function"==typeof e?e:t,s="string"==typeof e?e:e&&"friendlyName"in e&&e.friendlyName||It,o="string"!=typeof e&&(e&&"respectConnection"in e&&e.respectConnection||!1),n=function(e,t,i){if(null==e||void 0!==new.target)throw new Error(`No registration for interface: '${n.friendlyName}'`);if(t)at.defineProperty(e,t,n,o);else{at.getOrCreateAnnotationParamTypes(e)[i]=n}};return n.$isInterface=!0,n.friendlyName=null==s?"(anonymous)":s,null!=i&&(n.register=function(e,t){return i(new et(e,null!=t?t:n))}),n.toString=function(){return`InterfaceSymbol<${n.friendlyName}>`},n},inject:(...e)=>function(t,i,s){if("number"==typeof s){const i=at.getOrCreateAnnotationParamTypes(t),o=e[0];void 0!==o&&(i[s]=o)}else if(i)at.defineProperty(t,i,e[0]);else{const i=s?at.getOrCreateAnnotationParamTypes(s.value):at.getOrCreateAnnotationParamTypes(t);let o;for(let t=0;t(e.register=function(t){return $t.transient(e,e).register(t)},e.registerInRequestor=!1,e),singleton:(e,t=dt)=>(e.register=function(t){return $t.singleton(e,e).register(t)},e.registerInRequestor=t.scoped,e)}),lt=at.createInterface("Container");at.inject;const dt={scoped:!1};class ct{constructor(e,t,i){this.key=e,this.strategy=t,this.state=i,this.resolving=!1}get $isResolver(){return!0}register(e){return e.registerResolver(this.key,this)}resolve(e,t){switch(this.strategy){case 0:return this.state;case 1:if(this.resolving)throw new Error(`Cyclic dependency found: ${this.state.name}`);return this.resolving=!0,this.state=e.getFactory(this.state).construct(t),this.strategy=0,this.resolving=!1,this.state;case 2:{const i=e.getFactory(this.state);if(null===i)throw new Error(`Resolver for ${String(this.key)} returned a null factory`);return i.construct(t)}case 3:return this.state(e,t,this);case 4:return this.state[0].resolve(e,t);case 5:return t.get(this.state);default:throw new Error(`Invalid resolver strategy specified: ${this.strategy}.`)}}getFactory(e){var t,i,s;switch(this.strategy){case 1:case 2:return e.getFactory(this.state);case 5:return null!==(s=null===(i=null===(t=e.getResolver(this.state))||void 0===t?void 0:t.getFactory)||void 0===i?void 0:i.call(t,e))&&void 0!==s?s:null;default:return null}}}function ht(e){return this.get(e)}function ut(e,t){return t(e)}class pt{constructor(e,t){this.Type=e,this.dependencies=t,this.transformers=null}construct(e,t){let i;return i=void 0===t?new this.Type(...this.dependencies.map(ht,e)):new this.Type(...this.dependencies.map(ht,e),...t),null==this.transformers?i:this.transformers.reduce(ut,i)}registerTransformer(e){(this.transformers||(this.transformers=[])).push(e)}}const ft={$isResolver:!0,resolve:(e,t)=>t};function bt(e){return"function"==typeof e.register}function gt(e){return function(e){return bt(e)&&"boolean"==typeof e.registerInRequestor}(e)&&e.registerInRequestor}const mt=new Set(["Array","ArrayBuffer","Boolean","DataView","Date","Error","EvalError","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Number","Object","Promise","RangeError","ReferenceError","RegExp","Set","SharedArrayBuffer","String","SyntaxError","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","URIError","WeakMap","WeakSet"]),vt="__DI_LOCATE_PARENT__",yt=new Map;class xt{constructor(e,t){this.owner=e,this.config=t,this._parent=void 0,this.registerDepth=0,this.context=null,null!==e&&(e.$$container$$=this),this.resolvers=new Map,this.resolvers.set(lt,ft),e instanceof Node&&e.addEventListener(vt,(e=>{e.composedPath()[0]!==this.owner&&(e.detail.container=this,e.stopImmediatePropagation())}))}get parent(){return void 0===this._parent&&(this._parent=this.config.parentLocator(this.owner)),this._parent}get depth(){return null===this.parent?0:this.parent.depth+1}get responsibleForOwnerRequests(){return this.config.responsibleForOwnerRequests}registerWithContext(e,...t){return this.context=e,this.register(...t),this.context=null,this}register(...e){if(100==++this.registerDepth)throw new Error("Unable to autoregister dependency");let t,i,s,o,n;const r=this.context;for(let a=0,l=e.length;athis}))}jitRegister(e,t){if("function"!=typeof e)throw new Error(`Attempted to jitRegister something that is not a constructor: '${e}'. Did you forget to register this dependency?`);if(mt.has(e.name))throw new Error(`Attempted to jitRegister an intrinsic type: ${e.name}. Did you forget to add @inject(Key)`);if(bt(e)){const i=e.register(t);if(!(i instanceof Object)||null==i.resolve){const i=t.resolvers.get(e);if(null!=i)return i;throw new Error("A valid resolver was not returned from the static register method")}return i}if(e.$isInterface)throw new Error(`Attempted to jitRegister an interface: ${e.friendlyName}`);{const i=this.config.defaultResolver(e,t);return t.resolvers.set(e,i),i}}}const Ct=new WeakMap;function wt(e){return function(t,i,s){if(Ct.has(s))return Ct.get(s);const o=e(t,i,s);return Ct.set(s,o),o}}const $t=Object.freeze({instance:(e,t)=>new ct(e,0,t),singleton:(e,t)=>new ct(e,1,t),transient:(e,t)=>new ct(e,2,t),callback:(e,t)=>new ct(e,3,t),cachedCallback:(e,t)=>new ct(e,3,wt(t)),aliasTo:(e,t)=>new ct(t,5,e)});function kt(e){if(null==e)throw new Error("key/value cannot be null or undefined. Are you trying to inject/register something that doesn't exist with DI?")}function Tt(e,t,i){if(e instanceof ct&&4===e.strategy){const s=e.state;let o=s.length;const n=new Array(o);for(;o--;)n[o]=s[o].resolve(t,i);return n}return[e.resolve(t,i)]}const It="(anonymous)";function Ot(e){return"object"==typeof e&&null!==e||"function"==typeof e}const Rt=function(){const e=new WeakMap;let t=!1,i="",s=0;return function(o){return t=e.get(o),void 0===t&&(i=o.toString(),s=i.length,t=s>=29&&s<=100&&125===i.charCodeAt(s-1)&&i.charCodeAt(s-2)<=32&&93===i.charCodeAt(s-3)&&101===i.charCodeAt(s-4)&&100===i.charCodeAt(s-5)&&111===i.charCodeAt(s-6)&&99===i.charCodeAt(s-7)&&32===i.charCodeAt(s-8)&&101===i.charCodeAt(s-9)&&118===i.charCodeAt(s-10)&&105===i.charCodeAt(s-11)&&116===i.charCodeAt(s-12)&&97===i.charCodeAt(s-13)&&110===i.charCodeAt(s-14)&&88===i.charCodeAt(s-15),e.set(o,t)),t}}(),At={};function Dt(e){switch(typeof e){case"number":return e>=0&&(0|e)===e;case"string":{const t=At[e];if(void 0!==t)return t;const i=e.length;if(0===i)return At[e]=!1;let s=0;for(let t=0;t1||s<48||s>57)return At[e]=!1;return At[e]=!0}default:return!1}}function St(e){return`${e.toLowerCase()}:presentation`}const Et=new Map,Pt=Object.freeze({define(e,t,i){const s=St(e);void 0===Et.get(s)?Et.set(s,t):Et.set(s,!1),i.register($t.instance(s,t))},forTag(e,t){const i=St(e),s=Et.get(i);if(!1===s){return at.findResponsibleContainer(t).get(i)}return s||null}});class Ft{constructor(e,t){this.template=e||null,this.styles=void 0===t?null:Array.isArray(t)?re.create(t):t instanceof re?t:re.create([t])}applyTo(e){const t=e.$fastController;null===t.template&&(t.template=this.template),null===t.styles&&(t.styles=this.styles)}}class Bt extends Te{constructor(){super(...arguments),this._presentation=void 0}get $presentation(){return void 0===this._presentation&&(this._presentation=Pt.forTag(this.tagName,this)),this._presentation}templateChanged(){void 0!==this.template&&(this.$fastController.template=this.template)}stylesChanged(){void 0!==this.styles&&(this.$fastController.styles=this.styles)}connectedCallback(){null!==this.$presentation&&this.$presentation.applyTo(this),super.connectedCallback()}static compose(e){return(t={})=>new Lt(this===Bt?class extends Bt{}:this,e,t)}}function Vt(e,t,i){return"function"==typeof e?e(t,i):e}Je([O],Bt.prototype,"template",void 0),Je([O],Bt.prototype,"styles",void 0);class Lt{constructor(e,t,i){this.type=e,this.elementDefinition=t,this.overrideDefinition=i,this.definition=Object.assign(Object.assign({},this.elementDefinition),this.overrideDefinition)}register(e,t){const i=this.definition,s=this.overrideDefinition,o=`${i.prefix||t.elementPrefix}-${i.baseName}`;t.tryDefineElement({name:o,type:this.type,baseClass:this.elementDefinition.baseClass,callback:e=>{const t=new Ft(Vt(i.template,e,i),Vt(i.styles,e,i));e.definePresentation(t);let o=Vt(i.shadowOptions,e,i);e.shadowRootMode&&(o?s.shadowOptions||(o.mode=e.shadowRootMode):null!==o&&(o={mode:e.shadowRootMode})),e.defineElement({elementOptions:Vt(i.elementOptions,e,i),shadowOptions:o,attributes:Vt(i.attributes,e,i)})}})}}function Ht(e,...t){t.forEach((t=>{if(Object.getOwnPropertyNames(t.prototype).forEach((i=>{"constructor"!==i&&Object.defineProperty(e.prototype,i,Object.getOwnPropertyDescriptor(t.prototype,i))})),t.attributes){const i=e.attributes||[];e.attributes=i.concat(t.attributes)}}))}var Mt;let Nt;!function(e){e.horizontal="horizontal",e.vertical="vertical"}(Mt||(Mt={}));var zt;!function(e){e[e.alt=18]="alt",e[e.arrowDown=40]="arrowDown",e[e.arrowLeft=37]="arrowLeft",e[e.arrowRight=39]="arrowRight",e[e.arrowUp=38]="arrowUp",e[e.back=8]="back",e[e.backSlash=220]="backSlash",e[e.break=19]="break",e[e.capsLock=20]="capsLock",e[e.closeBracket=221]="closeBracket",e[e.colon=186]="colon",e[e.colon2=59]="colon2",e[e.comma=188]="comma",e[e.ctrl=17]="ctrl",e[e.delete=46]="delete",e[e.end=35]="end",e[e.enter=13]="enter",e[e.equals=187]="equals",e[e.equals2=61]="equals2",e[e.equals3=107]="equals3",e[e.escape=27]="escape",e[e.forwardSlash=191]="forwardSlash",e[e.function1=112]="function1",e[e.function10=121]="function10",e[e.function11=122]="function11",e[e.function12=123]="function12",e[e.function2=113]="function2",e[e.function3=114]="function3",e[e.function4=115]="function4",e[e.function5=116]="function5",e[e.function6=117]="function6",e[e.function7=118]="function7",e[e.function8=119]="function8",e[e.function9=120]="function9",e[e.home=36]="home",e[e.insert=45]="insert",e[e.menu=93]="menu",e[e.minus=189]="minus",e[e.minus2=109]="minus2",e[e.numLock=144]="numLock",e[e.numPad0=96]="numPad0",e[e.numPad1=97]="numPad1",e[e.numPad2=98]="numPad2",e[e.numPad3=99]="numPad3",e[e.numPad4=100]="numPad4",e[e.numPad5=101]="numPad5",e[e.numPad6=102]="numPad6",e[e.numPad7=103]="numPad7",e[e.numPad8=104]="numPad8",e[e.numPad9=105]="numPad9",e[e.numPadDivide=111]="numPadDivide",e[e.numPadDot=110]="numPadDot",e[e.numPadMinus=109]="numPadMinus",e[e.numPadMultiply=106]="numPadMultiply",e[e.numPadPlus=107]="numPadPlus",e[e.openBracket=219]="openBracket",e[e.pageDown=34]="pageDown",e[e.pageUp=33]="pageUp",e[e.period=190]="period",e[e.print=44]="print",e[e.quote=222]="quote",e[e.scrollLock=145]="scrollLock",e[e.shift=16]="shift",e[e.space=32]="space",e[e.tab=9]="tab",e[e.tilde=192]="tilde",e[e.windowsLeft=91]="windowsLeft",e[e.windowsOpera=219]="windowsOpera",e[e.windowsRight=92]="windowsRight"}(zt||(zt={}));const _t={ArrowDown:"ArrowDown",ArrowLeft:"ArrowLeft",ArrowRight:"ArrowRight",ArrowUp:"ArrowUp"};var jt;!function(e){e.ltr="ltr",e.rtl="rtl"}(jt||(jt={}));let qt=0;class Ut{}Je([be({attribute:"aria-atomic",mode:"fromView"})],Ut.prototype,"ariaAtomic",void 0),Je([be({attribute:"aria-busy",mode:"fromView"})],Ut.prototype,"ariaBusy",void 0),Je([be({attribute:"aria-controls",mode:"fromView"})],Ut.prototype,"ariaControls",void 0),Je([be({attribute:"aria-current",mode:"fromView"})],Ut.prototype,"ariaCurrent",void 0),Je([be({attribute:"aria-describedby",mode:"fromView"})],Ut.prototype,"ariaDescribedby",void 0),Je([be({attribute:"aria-details",mode:"fromView"})],Ut.prototype,"ariaDetails",void 0),Je([be({attribute:"aria-disabled",mode:"fromView"})],Ut.prototype,"ariaDisabled",void 0),Je([be({attribute:"aria-errormessage",mode:"fromView"})],Ut.prototype,"ariaErrormessage",void 0),Je([be({attribute:"aria-flowto",mode:"fromView"})],Ut.prototype,"ariaFlowto",void 0),Je([be({attribute:"aria-haspopup",mode:"fromView"})],Ut.prototype,"ariaHaspopup",void 0),Je([be({attribute:"aria-hidden",mode:"fromView"})],Ut.prototype,"ariaHidden",void 0),Je([be({attribute:"aria-invalid",mode:"fromView"})],Ut.prototype,"ariaInvalid",void 0),Je([be({attribute:"aria-keyshortcuts",mode:"fromView"})],Ut.prototype,"ariaKeyshortcuts",void 0),Je([be({attribute:"aria-label",mode:"fromView"})],Ut.prototype,"ariaLabel",void 0),Je([be({attribute:"aria-labelledby",mode:"fromView"})],Ut.prototype,"ariaLabelledby",void 0),Je([be({attribute:"aria-live",mode:"fromView"})],Ut.prototype,"ariaLive",void 0),Je([be({attribute:"aria-owns",mode:"fromView"})],Ut.prototype,"ariaOwns",void 0),Je([be({attribute:"aria-relevant",mode:"fromView"})],Ut.prototype,"ariaRelevant",void 0),Je([be({attribute:"aria-roledescription",mode:"fromView"})],Ut.prototype,"ariaRoledescription",void 0);class Kt extends Bt{constructor(){super(...arguments),this.handleUnsupportedDelegatesFocus=()=>{var e;window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&(null===(e=this.$fastController.definition.shadowOptions)||void 0===e?void 0:e.delegatesFocus)&&(this.focus=()=>{this.control.focus()})}}connectedCallback(){super.connectedCallback(),this.handleUnsupportedDelegatesFocus()}}Je([be],Kt.prototype,"download",void 0),Je([be],Kt.prototype,"href",void 0),Je([be],Kt.prototype,"hreflang",void 0),Je([be],Kt.prototype,"ping",void 0),Je([be],Kt.prototype,"referrerpolicy",void 0),Je([be],Kt.prototype,"rel",void 0),Je([be],Kt.prototype,"target",void 0),Je([be],Kt.prototype,"type",void 0),Je([O],Kt.prototype,"defaultSlottedContent",void 0);class Wt{}Je([be({attribute:"aria-expanded",mode:"fromView"})],Wt.prototype,"ariaExpanded",void 0),Ht(Wt,Ut),Ht(Kt,Qe,Wt);const Gt=(e,t)=>ne``;class Qt extends Bt{constructor(){super(...arguments),this.generateBadgeStyle=()=>{if(!this.fill&&!this.color)return;const e=`background-color: var(--badge-fill-${this.fill});`,t=`color: var(--badge-color-${this.color});`;return this.fill&&!this.color?e:this.color&&!this.fill?t:`${t} ${e}`}}}Je([be({attribute:"fill"})],Qt.prototype,"fill",void 0),Je([be({attribute:"color"})],Qt.prototype,"color",void 0),Je([be({mode:"boolean"})],Qt.prototype,"circular",void 0);const Yt="ElementInternals"in window&&"setFormValue"in window.ElementInternals.prototype,Xt=new Map;function Jt(e){const i=class extends e{constructor(...e){super(...e),this.dirtyValue=!1,this.disabled=!1,this.proxyEventsToBlock=["change","click"],this.formDisabledCallback=e=>{this.disabled=e},this.formResetCallback=()=>{this.value=this.initialValue,this.dirtyValue=!1},this.proxyInitialized=!1,this.required=!1,this.initialValue=this.initialValue||""}static get formAssociated(){return Yt}get validity(){return this.elementInternals?this.elementInternals.validity:this.proxy.validity}get form(){return this.elementInternals?this.elementInternals.form:this.proxy.form}get validationMessage(){return this.elementInternals?this.elementInternals.validationMessage:this.proxy.validationMessage}get willValidate(){return this.elementInternals?this.elementInternals.willValidate:this.proxy.willValidate}get labels(){if(this.elementInternals)return Object.freeze(Array.from(this.elementInternals.labels));if(this.proxy instanceof HTMLElement&&this.proxy.ownerDocument&&this.id){const e=this.proxy.labels,t=Array.from(this.proxy.getRootNode().querySelectorAll(`[for='${this.id}']`)),i=e?t.concat(Array.from(e)):t;return Object.freeze(i)}return t}valueChanged(e,t){this.dirtyValue=!0,this.proxy instanceof HTMLElement&&(this.proxy.value=this.value),this.setFormValue(this.value),this.validate()}initialValueChanged(e,t){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}disabledChanged(e,t){this.proxy instanceof HTMLElement&&(this.proxy.disabled=this.disabled),h.queueUpdate((()=>this.classList.toggle("disabled",this.disabled)))}nameChanged(e,t){this.proxy instanceof HTMLElement&&(this.proxy.name=this.name)}requiredChanged(e,t){this.proxy instanceof HTMLElement&&(this.proxy.required=this.required),h.queueUpdate((()=>this.classList.toggle("required",this.required))),this.validate()}get elementInternals(){if(!Yt)return null;let e=Xt.get(this);return e||(e=this.attachInternals(),Xt.set(this,e)),e}connectedCallback(){super.connectedCallback(),this.addEventListener("keypress",this._keypressHandler),this.value||(this.value=this.initialValue,this.dirtyValue=!1),this.elementInternals||this.attachProxy(),this.form&&this.form.addEventListener("reset",this.formResetCallback)}disconnectedCallback(){this.proxyEventsToBlock.forEach((e=>this.proxy.removeEventListener(e,this.stopPropagation))),this.form&&this.form.removeEventListener("reset",this.formResetCallback)}checkValidity(){return this.elementInternals?this.elementInternals.checkValidity():this.proxy.checkValidity()}reportValidity(){return this.elementInternals?this.elementInternals.reportValidity():this.proxy.reportValidity()}setValidity(e,t,i){this.elementInternals?this.elementInternals.setValidity(e,t,i):"string"==typeof t&&this.proxy.setCustomValidity(t)}attachProxy(){var e;this.proxyInitialized||(this.proxyInitialized=!0,this.proxy.style.display="none",this.proxyEventsToBlock.forEach((e=>this.proxy.addEventListener(e,this.stopPropagation))),this.proxy.disabled=this.disabled,this.proxy.required=this.required,"string"==typeof this.name&&(this.proxy.name=this.name),"string"==typeof this.value&&(this.proxy.value=this.value),this.proxy.setAttribute("slot","form-associated-proxy"),this.proxySlot=document.createElement("slot"),this.proxySlot.setAttribute("name","form-associated-proxy")),null===(e=this.shadowRoot)||void 0===e||e.appendChild(this.proxySlot),this.appendChild(this.proxy)}detachProxy(){var e;this.removeChild(this.proxy),null===(e=this.shadowRoot)||void 0===e||e.removeChild(this.proxySlot)}validate(){this.proxy instanceof HTMLElement&&this.setValidity(this.proxy.validity,this.proxy.validationMessage)}setFormValue(e,t){this.elementInternals&&this.elementInternals.setFormValue(e,t||e)}_keypressHandler(e){if("Enter"===e.key)if(this.form instanceof HTMLFormElement){const e=this.form.querySelector("[type=submit]");null==e||e.click()}}stopPropagation(e){e.stopPropagation()}};return be({mode:"boolean"})(i.prototype,"disabled"),be({mode:"fromView",attribute:"value"})(i.prototype,"initialValue"),be(i.prototype,"name"),be({mode:"boolean"})(i.prototype,"required"),O(i.prototype,"value"),i}class Zt extends Bt{}class ei extends(Jt(Zt)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class ti extends ei{constructor(){super(...arguments),this.handleSubmission=()=>{if(!this.form)return;const e=this.proxy.isConnected;e||this.attachProxy(),"function"==typeof this.form.requestSubmit?this.form.requestSubmit(this.proxy):this.proxy.click(),e||this.detachProxy()},this.handleFormReset=()=>{var e;null===(e=this.form)||void 0===e||e.reset()},this.handleUnsupportedDelegatesFocus=()=>{var e;window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&(null===(e=this.$fastController.definition.shadowOptions)||void 0===e?void 0:e.delegatesFocus)&&(this.focus=()=>{this.control.focus()})}}formactionChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formAction=this.formaction)}formenctypeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formEnctype=this.formenctype)}formmethodChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formMethod=this.formmethod)}formnovalidateChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formNoValidate=this.formnovalidate)}formtargetChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formTarget=this.formtarget)}typeChanged(e,t){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.type),"submit"===t&&this.addEventListener("click",this.handleSubmission),"submit"===e&&this.removeEventListener("click",this.handleSubmission),"reset"===t&&this.addEventListener("click",this.handleFormReset),"reset"===e&&this.removeEventListener("click",this.handleFormReset)}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute("type",this.type),this.handleUnsupportedDelegatesFocus()}}Je([be({mode:"boolean"})],ti.prototype,"autofocus",void 0),Je([be({attribute:"form"})],ti.prototype,"formId",void 0),Je([be],ti.prototype,"formaction",void 0),Je([be],ti.prototype,"formenctype",void 0),Je([be],ti.prototype,"formmethod",void 0),Je([be({mode:"boolean"})],ti.prototype,"formnovalidate",void 0),Je([be],ti.prototype,"formtarget",void 0),Je([be],ti.prototype,"type",void 0),Je([O],ti.prototype,"defaultSlottedContent",void 0);class ii{}var si,oi,ni;Je([be({attribute:"aria-expanded",mode:"fromView"})],ii.prototype,"ariaExpanded",void 0),Je([be({attribute:"aria-pressed",mode:"fromView"})],ii.prototype,"ariaPressed",void 0),Ht(ii,Ut),Ht(ti,Qe,ii),function(e){e.none="none",e.default="default",e.sticky="sticky"}(si||(si={})),function(e){e.default="default",e.columnHeader="columnheader",e.rowHeader="rowheader"}(oi||(oi={})),function(e){e.default="default",e.header="header",e.stickyHeader="sticky-header"}(ni||(ni={}));class ri extends Bt{constructor(){super(...arguments),this.rowType=ni.default,this.rowData=null,this.columnDefinitions=null,this.isActiveRow=!1,this.cellsRepeatBehavior=null,this.cellsPlaceholder=null,this.focusColumnIndex=0,this.refocusOnLoad=!1,this.updateRowStyle=()=>{this.style.gridTemplateColumns=this.gridTemplateColumns}}gridTemplateColumnsChanged(){this.$fastController.isConnected&&this.updateRowStyle()}rowTypeChanged(){this.$fastController.isConnected&&this.updateItemTemplate()}rowDataChanged(){null!==this.rowData&&this.isActiveRow&&(this.refocusOnLoad=!0)}cellItemTemplateChanged(){this.updateItemTemplate()}headerCellItemTemplateChanged(){this.updateItemTemplate()}connectedCallback(){super.connectedCallback(),null===this.cellsRepeatBehavior&&(this.cellsPlaceholder=document.createComment(""),this.appendChild(this.cellsPlaceholder),this.updateItemTemplate(),this.cellsRepeatBehavior=new _e((e=>e.columnDefinitions),(e=>e.activeCellItemTemplate),{positioning:!0}).createBehavior(this.cellsPlaceholder),this.$fastController.addBehaviors([this.cellsRepeatBehavior])),this.addEventListener("cell-focused",this.handleCellFocus),this.addEventListener("focusout",this.handleFocusout),this.addEventListener("keydown",this.handleKeydown),this.updateRowStyle(),this.refocusOnLoad&&(this.refocusOnLoad=!1,this.cellElements.length>this.focusColumnIndex&&this.cellElements[this.focusColumnIndex].focus())}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("cell-focused",this.handleCellFocus),this.removeEventListener("focusout",this.handleFocusout),this.removeEventListener("keydown",this.handleKeydown)}handleFocusout(e){this.contains(e.target)||(this.isActiveRow=!1,this.focusColumnIndex=0)}handleCellFocus(e){this.isActiveRow=!0,this.focusColumnIndex=this.cellElements.indexOf(e.target),this.$emit("row-focused",this)}handleKeydown(e){if(e.defaultPrevented)return;let t=0;switch(e.key){case"ArrowLeft":t=Math.max(0,this.focusColumnIndex-1),this.cellElements[t].focus(),e.preventDefault();break;case"ArrowRight":t=Math.min(this.cellElements.length-1,this.focusColumnIndex+1),this.cellElements[t].focus(),e.preventDefault();break;case"Home":e.ctrlKey||(this.cellElements[0].focus(),e.preventDefault());break;case"End":e.ctrlKey||(this.cellElements[this.cellElements.length-1].focus(),e.preventDefault())}}updateItemTemplate(){this.activeCellItemTemplate=this.rowType===ni.default&&void 0!==this.cellItemTemplate?this.cellItemTemplate:this.rowType===ni.default&&void 0===this.cellItemTemplate?this.defaultCellItemTemplate:void 0!==this.headerCellItemTemplate?this.headerCellItemTemplate:this.defaultHeaderCellItemTemplate}}Je([be({attribute:"grid-template-columns"})],ri.prototype,"gridTemplateColumns",void 0),Je([be({attribute:"row-type"})],ri.prototype,"rowType",void 0),Je([O],ri.prototype,"rowData",void 0),Je([O],ri.prototype,"columnDefinitions",void 0),Je([O],ri.prototype,"cellItemTemplate",void 0),Je([O],ri.prototype,"headerCellItemTemplate",void 0),Je([O],ri.prototype,"rowIndex",void 0),Je([O],ri.prototype,"isActiveRow",void 0),Je([O],ri.prototype,"activeCellItemTemplate",void 0),Je([O],ri.prototype,"defaultCellItemTemplate",void 0),Je([O],ri.prototype,"defaultHeaderCellItemTemplate",void 0),Je([O],ri.prototype,"cellElements",void 0);class ai extends Bt{constructor(){super(),this.generateHeader=si.default,this.rowsData=[],this.columnDefinitions=null,this.focusRowIndex=0,this.focusColumnIndex=0,this.rowsPlaceholder=null,this.generatedHeader=null,this.isUpdatingFocus=!1,this.pendingFocusUpdate=!1,this.rowindexUpdateQueued=!1,this.columnDefinitionsStale=!0,this.generatedGridTemplateColumns="",this.focusOnCell=(e,t,i)=>{if(0===this.rowElements.length)return this.focusRowIndex=0,void(this.focusColumnIndex=0);const s=Math.max(0,Math.min(this.rowElements.length-1,e)),o=this.rowElements[s].querySelectorAll('[role="cell"], [role="gridcell"], [role="columnheader"], [role="rowheader"]'),n=o[Math.max(0,Math.min(o.length-1,t))];i&&this.scrollHeight!==this.clientHeight&&(s0||s>this.focusRowIndex&&this.scrollTop{e.length&&(e.forEach((e=>{e.addedNodes.forEach((e=>{1===e.nodeType&&"row"===e.getAttribute("role")&&(e.columnDefinitions=this.columnDefinitions)}))})),this.queueRowIndexUpdate())},this.queueRowIndexUpdate=()=>{this.rowindexUpdateQueued||(this.rowindexUpdateQueued=!0,h.queueUpdate(this.updateRowIndexes))},this.updateRowIndexes=()=>{const e=void 0===this.gridTemplateColumns?this.generatedGridTemplateColumns:this.gridTemplateColumns;this.rowElements.forEach(((t,i)=>{const s=t;s.rowIndex=i,s.gridTemplateColumns=e,this.columnDefinitionsStale&&(s.columnDefinitions=this.columnDefinitions)})),this.rowindexUpdateQueued=!1,this.columnDefinitionsStale=!1}}static generateTemplateColumns(e){let t="";return e.forEach((e=>{t=`${t}${""===t?"":" "}1fr`})),t}generateHeaderChanged(){this.$fastController.isConnected&&this.toggleGeneratedHeader()}gridTemplateColumnsChanged(){this.$fastController.isConnected&&this.updateRowIndexes()}rowsDataChanged(){null===this.columnDefinitions&&this.rowsData.length>0&&(this.columnDefinitions=ai.generateColumns(this.rowsData[0]))}columnDefinitionsChanged(){null!==this.columnDefinitions?(this.generatedGridTemplateColumns=ai.generateTemplateColumns(this.columnDefinitions),this.$fastController.isConnected&&(this.columnDefinitionsStale=!0,this.queueRowIndexUpdate())):this.generatedGridTemplateColumns=""}headerCellItemTemplateChanged(){this.$fastController.isConnected&&null!==this.generatedHeader&&(this.generatedHeader.headerCellItemTemplate=this.headerCellItemTemplate)}focusRowIndexChanged(){this.$fastController.isConnected&&this.queueFocusUpdate()}focusColumnIndexChanged(){this.$fastController.isConnected&&this.queueFocusUpdate()}connectedCallback(){super.connectedCallback(),void 0===this.rowItemTemplate&&(this.rowItemTemplate=this.defaultRowItemTemplate),this.rowsPlaceholder=document.createComment(""),this.appendChild(this.rowsPlaceholder),this.toggleGeneratedHeader(),this.rowsRepeatBehavior=new _e((e=>e.rowsData),(e=>e.rowItemTemplate),{positioning:!0}).createBehavior(this.rowsPlaceholder),this.$fastController.addBehaviors([this.rowsRepeatBehavior]),this.addEventListener("row-focused",this.handleRowFocus),this.addEventListener("focus",this.handleFocus),this.addEventListener("keydown",this.handleKeydown),this.addEventListener("focusout",this.handleFocusOut),this.observer=new MutationObserver(this.onChildListChange),this.observer.observe(this,{childList:!0}),h.queueUpdate(this.queueRowIndexUpdate)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("row-focused",this.handleRowFocus),this.removeEventListener("focus",this.handleFocus),this.removeEventListener("keydown",this.handleKeydown),this.removeEventListener("focusout",this.handleFocusOut),this.observer.disconnect(),this.rowsPlaceholder=null,this.generatedHeader=null}handleRowFocus(e){this.isUpdatingFocus=!0;const t=e.target;this.focusRowIndex=this.rowElements.indexOf(t),this.focusColumnIndex=t.focusColumnIndex,this.setAttribute("tabIndex","-1"),this.isUpdatingFocus=!1}handleFocus(e){this.focusOnCell(this.focusRowIndex,this.focusColumnIndex,!0)}handleFocusOut(e){null!==e.relatedTarget&&this.contains(e.relatedTarget)||this.setAttribute("tabIndex","0")}handleKeydown(e){if(e.defaultPrevented)return;let t;const i=this.rowElements.length-1,s=this.offsetHeight+this.scrollTop,o=this.rowElements[i];switch(e.key){case"ArrowUp":e.preventDefault(),this.focusOnCell(this.focusRowIndex-1,this.focusColumnIndex,!0);break;case"ArrowDown":e.preventDefault(),this.focusOnCell(this.focusRowIndex+1,this.focusColumnIndex,!0);break;case"PageUp":if(e.preventDefault(),0===this.rowElements.length){this.focusOnCell(0,0,!1);break}if(0===this.focusRowIndex)return void this.focusOnCell(0,this.focusColumnIndex,!1);for(t=this.focusRowIndex-1;t>=0;t--){const e=this.rowElements[t];if(e.offsetTop=i||o.offsetTop+o.offsetHeight<=s)return void this.focusOnCell(i,this.focusColumnIndex,!1);for(t=this.focusRowIndex+1;t<=i;t++){const e=this.rowElements[t];if(e.offsetTop+e.offsetHeight>s){let t=0;this.generateHeader===si.sticky&&null!==this.generatedHeader&&(t=this.generatedHeader.clientHeight),this.scrollTop=e.offsetTop-t;break}}this.focusOnCell(t,this.focusColumnIndex,!1);break;case"Home":e.ctrlKey&&(e.preventDefault(),this.focusOnCell(0,0,!0));break;case"End":e.ctrlKey&&null!==this.columnDefinitions&&(e.preventDefault(),this.focusOnCell(this.rowElements.length-1,this.columnDefinitions.length-1,!0))}}queueFocusUpdate(){this.isUpdatingFocus&&(this.contains(document.activeElement)||this===document.activeElement)||!1===this.pendingFocusUpdate&&(this.pendingFocusUpdate=!0,h.queueUpdate((()=>this.updateFocus())))}updateFocus(){this.pendingFocusUpdate=!1,this.focusOnCell(this.focusRowIndex,this.focusColumnIndex,!0)}toggleGeneratedHeader(){if(null!==this.generatedHeader&&(this.removeChild(this.generatedHeader),this.generatedHeader=null),this.generateHeader!==si.none){const e=document.createElement(this.rowElementTag);return this.generatedHeader=e,this.generatedHeader.columnDefinitions=this.columnDefinitions,this.generatedHeader.gridTemplateColumns=this.gridTemplateColumns,this.generatedHeader.rowType=this.generateHeader===si.sticky?ni.stickyHeader:ni.header,void(null===this.firstChild&&null===this.rowsPlaceholder||this.insertBefore(e,null!==this.firstChild?this.firstChild:this.rowsPlaceholder))}}}ai.generateColumns=e=>Object.getOwnPropertyNames(e).map(((e,t)=>({columnDataKey:e,gridColumn:`${t}`}))),Je([be({attribute:"generate-header"})],ai.prototype,"generateHeader",void 0),Je([be({attribute:"grid-template-columns"})],ai.prototype,"gridTemplateColumns",void 0),Je([O],ai.prototype,"rowsData",void 0),Je([O],ai.prototype,"columnDefinitions",void 0),Je([O],ai.prototype,"rowItemTemplate",void 0),Je([O],ai.prototype,"cellItemTemplate",void 0),Je([O],ai.prototype,"headerCellItemTemplate",void 0),Je([O],ai.prototype,"focusRowIndex",void 0),Je([O],ai.prototype,"focusColumnIndex",void 0),Je([O],ai.prototype,"defaultRowItemTemplate",void 0),Je([O],ai.prototype,"rowElementTag",void 0),Je([O],ai.prototype,"rowElements",void 0);const li=ne``,di=ne``;class ci extends Bt{constructor(){super(...arguments),this.rowData=null,this.columnDefinition=null,this.isActiveCell=!1,this.customCellView=null,this.isInternalFocused=!1,this.updateCellStyle=()=>{this.style.gridColumn=this.gridColumn}}cellTypeChanged(){this.$fastController.isConnected&&this.updateCellView()}gridColumnChanged(){this.$fastController.isConnected&&this.updateCellStyle()}columnDefinitionChanged(e,t){this.$fastController.isConnected&&this.updateCellView()}connectedCallback(){var e;super.connectedCallback(),this.addEventListener("focusin",this.handleFocusin),this.addEventListener("focusout",this.handleFocusout),this.addEventListener("keydown",this.handleKeydown),this.style.gridColumn=`${void 0===(null===(e=this.columnDefinition)||void 0===e?void 0:e.gridColumn)?0:this.columnDefinition.gridColumn}`,this.updateCellView(),this.updateCellStyle()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusin",this.handleFocusin),this.removeEventListener("focusout",this.handleFocusout),this.removeEventListener("keydown",this.handleKeydown),this.disconnectCellView()}handleFocusin(e){if(!this.isActiveCell){if(this.isActiveCell=!0,this.cellType===oi.columnHeader){if(null!==this.columnDefinition&&!0!==this.columnDefinition.headerCellInternalFocusQueue&&"function"==typeof this.columnDefinition.headerCellFocusTargetCallback){const e=this.columnDefinition.headerCellFocusTargetCallback(this);null!==e&&e.focus()}}else if(null!==this.columnDefinition&&!0!==this.columnDefinition.cellInternalFocusQueue&&"function"==typeof this.columnDefinition.cellFocusTargetCallback){const e=this.columnDefinition.cellFocusTargetCallback(this);null!==e&&e.focus()}this.$emit("cell-focused",this)}}handleFocusout(e){this===document.activeElement||this.contains(document.activeElement)||(this.isActiveCell=!1,this.isInternalFocused=!1)}handleKeydown(e){if(!(e.defaultPrevented||null===this.columnDefinition||this.cellType===oi.default&&!0!==this.columnDefinition.cellInternalFocusQueue||this.cellType===oi.columnHeader&&!0!==this.columnDefinition.headerCellInternalFocusQueue))switch(e.key){case"Enter":case"F2":if(this.isInternalFocused||void 0===this.columnDefinition)return;switch(this.cellType){case oi.default:if(void 0!==this.columnDefinition.cellFocusTargetCallback){const t=this.columnDefinition.cellFocusTargetCallback(this);null!==t&&(this.isInternalFocused=!0,t.focus()),e.preventDefault()}break;case oi.columnHeader:if(void 0!==this.columnDefinition.headerCellFocusTargetCallback){const t=this.columnDefinition.headerCellFocusTargetCallback(this);null!==t&&(this.isInternalFocused=!0,t.focus()),e.preventDefault()}}break;case"Escape":this.isInternalFocused&&(this.focus(),this.isInternalFocused=!1,e.preventDefault())}}updateCellView(){if(this.disconnectCellView(),null!==this.columnDefinition)switch(this.cellType){case oi.columnHeader:void 0!==this.columnDefinition.headerCellTemplate?this.customCellView=this.columnDefinition.headerCellTemplate.render(this,this):this.customCellView=di.render(this,this);break;case void 0:case oi.rowHeader:case oi.default:void 0!==this.columnDefinition.cellTemplate?this.customCellView=this.columnDefinition.cellTemplate.render(this,this):this.customCellView=li.render(this,this)}}disconnectCellView(){null!==this.customCellView&&(this.customCellView.dispose(),this.customCellView=null)}}Je([be({attribute:"cell-type"})],ci.prototype,"cellType",void 0),Je([be({attribute:"grid-column"})],ci.prototype,"gridColumn",void 0),Je([O],ci.prototype,"rowData",void 0),Je([O],ci.prototype,"columnDefinition",void 0);class hi extends Bt{}class ui extends(Jt(hi)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class pi extends ui{constructor(){super(),this.initialValue="on",this.indeterminate=!1,this.dirtyChecked=!1,this.constructed=!1,this.formResetCallback=()=>{this.checked=this.checkedAttribute,this.dirtyChecked=!1},this.keypressHandler=e=>{if(" "===e.key)this.checked=!this.checked},this.clickHandler=e=>{this.disabled||this.readOnly||(this.checked=!this.checked)},this.defaultChecked=!!this.checkedAttribute,this.checked=this.defaultChecked,this.constructed=!0}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}checkedAttributeChanged(){this.defaultChecked=this.checkedAttribute}defaultCheckedChanged(){this.dirtyChecked||(this.checked=this.defaultChecked,this.dirtyChecked=!1)}checkedChanged(){this.dirtyChecked||(this.dirtyChecked=!0),this.updateForm(),this.proxy instanceof HTMLInputElement&&(this.proxy.checked=this.checked),this.constructed&&this.$emit("change"),this.validate()}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute("type","checkbox"),this.updateForm()}updateForm(){const e=this.checked?this.value:null;this.setFormValue(e,e)}}var fi,bi,gi;function mi(e){return function(...e){return e.every((e=>e instanceof HTMLElement))}(e)&&("option"===e.getAttribute("role")||e instanceof HTMLOptionElement)}Je([be({attribute:"readonly",mode:"boolean"})],pi.prototype,"readOnly",void 0),Je([be({attribute:"checked",mode:"boolean"})],pi.prototype,"checkedAttribute",void 0),Je([O],pi.prototype,"defaultSlottedNodes",void 0),Je([O],pi.prototype,"defaultChecked",void 0),Je([O],pi.prototype,"checked",void 0),Je([O],pi.prototype,"indeterminate",void 0),function(e){e.above="above",e.below="below"}(fi||(fi={})),function(e){e.combobox="combobox"}(bi||(bi={}));class vi extends Bt{constructor(e,t,i,s){super(),this.defaultSelected=!1,this.dirtySelected=!1,this.selected=this.defaultSelected,this.dirtyValue=!1,this.initialValue=this.initialValue||"",e&&(this.textContent=e),t&&(this.initialValue=t),i&&(this.defaultSelected=i),s&&(this.selected=s),this.proxy=new Option(`${this.textContent}`,this.initialValue,this.defaultSelected,this.selected),this.proxy.disabled=this.disabled}defaultSelectedChanged(){this.dirtySelected||(this.selected=this.defaultSelected,this.proxy instanceof HTMLOptionElement&&(this.proxy.selected=this.defaultSelected))}disabledChanged(e,t){this.proxy instanceof HTMLOptionElement&&(this.proxy.disabled=this.disabled)}selectedAttributeChanged(){this.defaultSelected=this.selectedAttribute,this.proxy instanceof HTMLOptionElement&&(this.proxy.defaultSelected=this.defaultSelected)}selectedChanged(){this.$fastController.isConnected&&(this.dirtySelected||(this.dirtySelected=!0),this.proxy instanceof HTMLOptionElement&&(this.proxy.selected=this.selected))}initialValueChanged(e,t){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}get label(){return this.value?this.value:this.textContent?this.textContent:""}get text(){return this.textContent}set value(e){this._value=e,this.dirtyValue=!0,this.proxy instanceof HTMLElement&&(this.proxy.value=e),k.notify(this,"value")}get value(){return k.track(this,"value"),this._value?this._value:this.text}get form(){return this.proxy?this.proxy.form:null}}Je([O],vi.prototype,"defaultSelected",void 0),Je([be({mode:"boolean"})],vi.prototype,"disabled",void 0),Je([be({attribute:"selected",mode:"boolean"})],vi.prototype,"selectedAttribute",void 0),Je([O],vi.prototype,"selected",void 0),Je([be({attribute:"value",mode:"fromView"})],vi.prototype,"initialValue",void 0),Ht(vi,Qe),function(e){e.listbox="listbox"}(gi||(gi={}));class yi extends Bt{constructor(){super(...arguments),this.selectedIndex=-1,this.typeaheadBuffer="",this.typeaheadTimeout=-1,this.typeAheadExpired=!0,this.role=gi.listbox,this._options=[],this.selectedOptions=[],this.shouldSkipFocus=!1,this.handleTypeAhead=e=>{this.typeaheadTimeout&&window.clearTimeout(this.typeaheadTimeout),this.typeaheadTimeout=window.setTimeout((()=>this.typeAheadExpired=!0),yi.TYPE_AHEAD_TIMEOUT_MS),e.length>1||(this.typeaheadBuffer=`${this.typeAheadExpired?"":this.typeaheadBuffer}${e}`)}}selectedIndexChanged(e,t){this.setSelectedOptions()}typeaheadBufferChanged(e,t){if(this.$fastController.isConnected){const e=this.typeaheadBuffer.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&"),t=new RegExp(`^${e}`,"gi"),i=this.options.filter((e=>e.text.trim().match(t)));if(i.length){const e=this.options.indexOf(i[0]);e>-1&&(this.selectedIndex=e)}this.typeAheadExpired=!1}}slottedOptionsChanged(e,t){this.$fastController.isConnected&&(this.options=t.reduce(((e,t)=>(mi(t)&&e.push(t),e)),[]),this.options.forEach((e=>{e.id=e.id||function(e=""){return`${e}${qt++}`}("option-")})),this.setSelectedOptions(),this.setDefaultSelectedOption())}get options(){return k.track(this,"options"),this._options}set options(e){this._options=e,k.notify(this,"options")}selectedOptionsChanged(e,t){this.$fastController.isConnected&&this.options.forEach((e=>{e.selected=t.includes(e)}))}get firstSelectedOption(){return this.selectedOptions[0]}focusAndScrollOptionIntoView(){this.contains(document.activeElement)&&this.firstSelectedOption&&(this.firstSelectedOption.focus(),requestAnimationFrame((()=>{this.firstSelectedOption.scrollIntoView({block:"nearest"})})))}focusinHandler(e){this.shouldSkipFocus||e.target!==e.currentTarget||(this.setSelectedOptions(),this.focusAndScrollOptionIntoView()),this.shouldSkipFocus=!1}mousedownHandler(e){return this.shouldSkipFocus=!this.contains(document.activeElement),!0}setDefaultSelectedOption(){if(this.options&&this.$fastController.isConnected){const e=this.options.findIndex((e=>null!==e.getAttribute("selected")));if(-1!==e)return void(this.selectedIndex=e);this.selectedIndex=0}}setSelectedOptions(){if(this.$fastController.isConnected&&this.options){const e=this.options[this.selectedIndex]||null;this.selectedOptions=this.options.filter((t=>t.isSameNode(e))),this.ariaActiveDescendant=this.firstSelectedOption?this.firstSelectedOption.id:"",this.focusAndScrollOptionIntoView()}}selectFirstOption(){this.disabled||(this.selectedIndex=0)}selectLastOption(){this.disabled||(this.selectedIndex=this.options.length-1)}selectNextOption(){!this.disabled&&this.options&&this.selectedIndex0&&(this.selectedIndex=this.selectedIndex-1)}clickHandler(e){const t=e.target.closest("option,[role=option]");if(t&&!t.disabled)return this.selectedIndex=this.options.indexOf(t),!0}keydownHandler(e){if(this.disabled)return!0;this.shouldSkipFocus=!1;const t=e.key;switch(t){case"Home":e.shiftKey||(e.preventDefault(),this.selectFirstOption());break;case"ArrowDown":e.shiftKey||(e.preventDefault(),this.selectNextOption());break;case"ArrowUp":e.shiftKey||(e.preventDefault(),this.selectPreviousOption());break;case"End":e.preventDefault(),this.selectLastOption();break;case"Tab":return this.focusAndScrollOptionIntoView(),!0;case"Enter":case"Escape":return!0;case" ":if(this.typeAheadExpired)return!0;default:return 1===t.length&&this.handleTypeAhead(`${t}`),!0}}}yi.TYPE_AHEAD_TIMEOUT_MS=1e3,yi.slottedOptionFilter=e=>mi(e)&&!e.disabled&&!e.hidden,Je([O],yi.prototype,"selectedIndex",void 0),Je([O],yi.prototype,"typeaheadBuffer",void 0),Je([be],yi.prototype,"role",void 0),Je([be({mode:"boolean"})],yi.prototype,"disabled",void 0),Je([O],yi.prototype,"slottedOptions",void 0),Je([O],yi.prototype,"selectedOptions",void 0);class xi{constructor(){this.ariaActiveDescendant=""}}function Ci(e){const t=e.parentElement;if(t)return t;{const t=e.getRootNode();if(t.host instanceof HTMLElement)return t.host}return null}Je([O],xi.prototype,"ariaActiveDescendant",void 0),Je([O],xi.prototype,"ariaDisabled",void 0),Je([O],xi.prototype,"ariaExpanded",void 0),Ht(xi,Ut),Ht(yi,xi);function wi(e){return`:host([hidden]){display:none}:host{display:${e}}`}const $i=function(){if("boolean"==typeof Nt)return Nt;if("undefined"==typeof window||!window.document||!window.document.createElement)return Nt=!1,Nt;const e=document.createElement("style"),t=function(){const e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}();null!==t&&e.setAttribute("nonce",t),document.head.appendChild(e);try{e.sheet.insertRule("foo:focus-visible {color:inherit}",0),Nt=!0}catch(e){Nt=!1}finally{document.head.removeChild(e)}return Nt}()?"focus-visible":"focus";function ki(e,t,i){return e.nodeType!==Node.TEXT_NODE||"string"==typeof e.nodeValue&&!!e.nodeValue.trim().length}const Ti=document.createElement("div");class Ii{setProperty(e,t){h.queueUpdate((()=>this.target.setProperty(e,t)))}removeProperty(e){h.queueUpdate((()=>this.target.removeProperty(e)))}}class Oi extends Ii{constructor(){super();const e=new CSSStyleSheet;this.target=e.cssRules[e.insertRule(":root{}")].style,document.adoptedStyleSheets=[...document.adoptedStyleSheets,e]}}class Ri extends Ii{constructor(){super(),this.style=document.createElement("style"),document.head.appendChild(this.style);const{sheet:e}=this.style;if(e){const t=e.insertRule(":root{}",e.cssRules.length);this.target=e.cssRules[t].style}}}class Ai{constructor(e){this.store=new Map,this.target=null;const t=e.$fastController;this.style=document.createElement("style"),t.addStyles(this.style),k.getNotifier(t).subscribe(this,"isConnected"),this.handleChange(t,"isConnected")}targetChanged(){if(null!==this.target)for(const[e,t]of this.store.entries())this.target.setProperty(e,t)}setProperty(e,t){this.store.set(e,t),h.queueUpdate((()=>{null!==this.target&&this.target.setProperty(e,t)}))}removeProperty(e){this.store.delete(e),h.queueUpdate((()=>{null!==this.target&&this.target.removeProperty(e)}))}handleChange(e,t){const{sheet:i}=this.style;if(i){const e=i.insertRule(":root{}",i.cssRules.length);this.target=i.cssRules[e].style}else this.target=null}}Je([O],Ai.prototype,"target",void 0);class Di{constructor(e){this.target=e.style}setProperty(e,t){h.queueUpdate((()=>this.target.setProperty(e,t)))}removeProperty(e){h.queueUpdate((()=>this.target.removeProperty(e)))}}class Si{setProperty(e,t){Si.properties[e]=t;for(const i of Si.roots.values())Fi.getOrCreate(Si.normalizeRoot(i)).setProperty(e,t)}removeProperty(e){delete Si.properties[e];for(const t of Si.roots.values())Fi.getOrCreate(Si.normalizeRoot(t)).removeProperty(e)}static registerRoot(e){const{roots:t}=Si;if(!t.has(e)){t.add(e);const i=Fi.getOrCreate(this.normalizeRoot(e));for(const e in Si.properties)i.setProperty(e,Si.properties[e])}}static unregisterRoot(e){const{roots:t}=Si;if(t.has(e)){t.delete(e);const i=Fi.getOrCreate(Si.normalizeRoot(e));for(const e in Si.properties)i.removeProperty(e)}}static normalizeRoot(e){return e===Ti?document:e}}Si.roots=new Set,Si.properties={};const Ei=new WeakMap,Pi=h.supportsAdoptedStyleSheets?class extends Ii{constructor(e){super();const t=new CSSStyleSheet;this.target=t.cssRules[t.insertRule(":host{}")].style,e.$fastController.addStyles(re.create([t]))}}:Ai,Fi=Object.freeze({getOrCreate(e){if(Ei.has(e))return Ei.get(e);let t;return e===Ti?t=new Si:e instanceof Document?t=h.supportsAdoptedStyleSheets?new Oi:new Ri:t=e instanceof Te?new Pi(e):new Di(e),Ei.set(e,t),t}});class Bi extends Ie{constructor(e){super(),this.subscribers=new WeakMap,this._appliedTo=new Set,this.name=e.name,null!==e.cssCustomPropertyName&&(this.cssCustomProperty=`--${e.cssCustomPropertyName}`,this.cssVar=`var(${this.cssCustomProperty})`),this.id=Bi.uniqueId(),Bi.tokensById.set(this.id,this)}get appliedTo(){return[...this._appliedTo]}static from(e){return new Bi({name:"string"==typeof e?e:e.name,cssCustomPropertyName:"string"==typeof e?e:void 0===e.cssCustomPropertyName?e.name:e.cssCustomPropertyName})}static isCSSDesignToken(e){return"string"==typeof e.cssCustomProperty}static isDerivedDesignTokenValue(e){return"function"==typeof e}static getTokenById(e){return Bi.tokensById.get(e)}getOrCreateSubscriberSet(e=this){return this.subscribers.get(e)||this.subscribers.set(e,new Set)&&this.subscribers.get(e)}createCSS(){return this.cssVar||""}getValueFor(e){const t=Ni.getOrCreate(e).get(this);if(void 0!==t)return t;throw new Error(`Value could not be retrieved for token named "${this.name}". Ensure the value is set for ${e} or an ancestor of ${e}.`)}setValueFor(e,t){return this._appliedTo.add(e),t instanceof Bi&&(t=this.alias(t)),Ni.getOrCreate(e).set(this,t),this}deleteValueFor(e){return this._appliedTo.delete(e),Ni.existsFor(e)&&Ni.getOrCreate(e).delete(this),this}withDefault(e){return this.setValueFor(Ti,e),this}subscribe(e,t){const i=this.getOrCreateSubscriberSet(t);t&&!Ni.existsFor(t)&&Ni.getOrCreate(t),i.has(e)||i.add(e)}unsubscribe(e,t){const i=this.subscribers.get(t||this);i&&i.has(e)&&i.delete(e)}notify(e){const t=Object.freeze({token:this,target:e});this.subscribers.has(this)&&this.subscribers.get(this).forEach((e=>e.handleChange(t))),this.subscribers.has(e)&&this.subscribers.get(e).forEach((e=>e.handleChange(t)))}alias(e){return t=>e.getValueFor(t)}}Bi.uniqueId=(()=>{let e=0;return()=>(e++,e.toString(16))})(),Bi.tokensById=new Map;class Vi{constructor(e,t,i){this.source=e,this.token=t,this.node=i,this.dependencies=new Set,this.observer=k.binding(e,this,!1),this.observer.handleChange=this.observer.call,this.handleChange()}disconnect(){this.observer.disconnect()}handleChange(){this.node.store.set(this.token,this.observer.observe(this.node.target,S))}}class Li{constructor(){this.values=new Map}set(e,t){this.values.get(e)!==t&&(this.values.set(e,t),k.getNotifier(this).notify(e.id))}get(e){return k.track(this,e.id),this.values.get(e)}delete(e){this.values.delete(e)}all(){return this.values.entries()}}const Hi=new WeakMap,Mi=new WeakMap;class Ni{constructor(e){this.target=e,this.store=new Li,this.children=[],this.assignedValues=new Map,this.reflecting=new Set,this.bindingObservers=new Map,this.tokenValueChangeHandler={handleChange:(e,t)=>{const i=Bi.getTokenById(t);if(i&&(i.notify(this.target),Bi.isCSSDesignToken(i))){const t=this.parent,s=this.isReflecting(i);if(t){const o=t.get(i),n=e.get(i);o===n||s?o===n&&s&&this.stopReflectToCSS(i):this.reflectToCSS(i)}else s||this.reflectToCSS(i)}}},Hi.set(e,this),k.getNotifier(this.store).subscribe(this.tokenValueChangeHandler),e instanceof Te?e.$fastController.addBehaviors([this]):e.isConnected&&this.bind()}static getOrCreate(e){return Hi.get(e)||new Ni(e)}static existsFor(e){return Hi.has(e)}static findParent(e){if(Ti!==e.target){let t=Ci(e.target);for(;null!==t;){if(Hi.has(t))return Hi.get(t);t=Ci(t)}return Ni.getOrCreate(Ti)}return null}static findClosestAssignedNode(e,t){let i=t;do{if(i.has(e))return i;i=i.parent?i.parent:i.target!==Ti?Ni.getOrCreate(Ti):null}while(null!==i);return null}get parent(){return Mi.get(this)||null}has(e){return this.assignedValues.has(e)}get(e){const t=this.store.get(e);if(void 0!==t)return t;const i=this.getRaw(e);return void 0!==i?(this.hydrate(e,i),this.get(e)):void 0}getRaw(e){var t;return this.assignedValues.has(e)?this.assignedValues.get(e):null===(t=Ni.findClosestAssignedNode(e,this))||void 0===t?void 0:t.getRaw(e)}set(e,t){Bi.isDerivedDesignTokenValue(this.assignedValues.get(e))&&this.tearDownBindingObserver(e),this.assignedValues.set(e,t),Bi.isDerivedDesignTokenValue(t)?this.setupBindingObserver(e,t):this.store.set(e,t)}delete(e){this.assignedValues.delete(e),this.tearDownBindingObserver(e);const t=this.getRaw(e);t?this.hydrate(e,t):this.store.delete(e)}bind(){const e=Ni.findParent(this);e&&e.appendChild(this);for(const e of this.assignedValues.keys())e.notify(this.target)}unbind(){if(this.parent){Mi.get(this).removeChild(this)}}appendChild(e){e.parent&&Mi.get(e).removeChild(e);const t=this.children.filter((t=>e.contains(t)));Mi.set(e,this),this.children.push(e),t.forEach((t=>e.appendChild(t))),k.getNotifier(this.store).subscribe(e);for(const[t,i]of this.store.all())e.hydrate(t,this.bindingObservers.has(t)?this.getRaw(t):i)}removeChild(e){const t=this.children.indexOf(e);return-1!==t&&this.children.splice(t,1),k.getNotifier(this.store).unsubscribe(e),e.parent===this&&Mi.delete(e)}contains(e){return function(e,t){let i=t;for(;null!==i;){if(i===e)return!0;i=Ci(i)}return!1}(this.target,e.target)}reflectToCSS(e){this.isReflecting(e)||(this.reflecting.add(e),Ni.cssCustomPropertyReflector.startReflection(e,this.target))}stopReflectToCSS(e){this.isReflecting(e)&&(this.reflecting.delete(e),Ni.cssCustomPropertyReflector.stopReflection(e,this.target))}isReflecting(e){return this.reflecting.has(e)}handleChange(e,t){const i=Bi.getTokenById(t);i&&this.hydrate(i,this.getRaw(i))}hydrate(e,t){if(!this.has(e)){const i=this.bindingObservers.get(e);Bi.isDerivedDesignTokenValue(t)?i?i.source!==t&&(this.tearDownBindingObserver(e),this.setupBindingObserver(e,t)):this.setupBindingObserver(e,t):(i&&this.tearDownBindingObserver(e),this.store.set(e,t))}}setupBindingObserver(e,t){const i=new Vi(t,e,this);return this.bindingObservers.set(e,i),i}tearDownBindingObserver(e){return!!this.bindingObservers.has(e)&&(this.bindingObservers.get(e).disconnect(),this.bindingObservers.delete(e),!0)}}Ni.cssCustomPropertyReflector=new class{startReflection(e,t){e.subscribe(this,t),this.handleChange({token:e,target:t})}stopReflection(e,t){e.unsubscribe(this,t),this.remove(e,t)}handleChange(e){const{token:t,target:i}=e;this.add(t,i)}add(e,t){Fi.getOrCreate(t).setProperty(e.cssCustomProperty,this.resolveCSSValue(Ni.getOrCreate(t).get(e)))}remove(e,t){Fi.getOrCreate(t).removeProperty(e.cssCustomProperty)}resolveCSSValue(e){return e&&"function"==typeof e.createCSS?e.createCSS():e}},Je([O],Ni.prototype,"children",void 0);const zi=Object.freeze({create:function(e){return Bi.from(e)},notifyConnection:e=>!(!e.isConnected||!Ni.existsFor(e))&&(Ni.getOrCreate(e).bind(),!0),notifyDisconnection:e=>!(e.isConnected||!Ni.existsFor(e))&&(Ni.getOrCreate(e).unbind(),!0),registerRoot(e=Ti){Si.registerRoot(e)},unregisterRoot(e=Ti){Si.unregisterRoot(e)}}),_i=Object.freeze({definitionCallbackOnly:null,ignoreDuplicate:Symbol()}),ji=new Map,qi=new Map;let Ui=null;const Ki=at.createInterface((e=>e.cachedCallback((e=>(null===Ui&&(Ui=new Gi(null,e)),Ui))))),Wi=Object.freeze({tagFor:e=>qi.get(e),responsibleFor(e){const t=e.$$designSystem$$;if(t)return t;return at.findResponsibleContainer(e).get(Ki)},getOrCreate(e){if(!e)return null===Ui&&(Ui=at.getOrCreateDOMContainer().get(Ki)),Ui;const t=e.$$designSystem$$;if(t)return t;const i=at.getOrCreateDOMContainer(e);if(i.has(Ki,!1))return i.get(Ki);{const t=new Gi(e,i);return i.register($t.instance(Ki,t)),t}}});class Gi{constructor(e,t){this.owner=e,this.container=t,this.designTokensInitialized=!1,this.prefix="fast",this.shadowRootMode=void 0,this.disambiguate=()=>_i.definitionCallbackOnly,null!==e&&(e.$$designSystem$$=this)}withPrefix(e){return this.prefix=e,this}withShadowRootMode(e){return this.shadowRootMode=e,this}withElementDisambiguation(e){return this.disambiguate=e,this}withDesignTokenRoot(e){return this.designTokenRoot=e,this}register(...e){const t=this.container,i=[],s=this.disambiguate,o=this.shadowRootMode,n={elementPrefix:this.prefix,tryDefineElement(e,n,r){const a=function(e,t,i){return"string"==typeof e?{name:e,type:t,callback:i}:e}(e,n,r),{name:l,callback:d,baseClass:c}=a;let{type:h}=a,u=l,p=ji.get(u),f=!0;for(;p;){const e=s(u,h,p);switch(e){case _i.ignoreDuplicate:return;case _i.definitionCallbackOnly:f=!1,p=void 0;break;default:u=e,p=ji.get(u)}}f&&((qi.has(h)||h===Bt)&&(h=class extends h{}),ji.set(u,h),qi.set(h,u),c&&qi.set(c,u)),i.push(new Qi(t,u,h,o,d,f))}};this.designTokensInitialized||(this.designTokensInitialized=!0,null!==this.designTokenRoot&&zi.registerRoot(this.designTokenRoot)),t.registerWithContext(n,...e);for(const e of i)e.callback(e),e.willDefine&&null!==e.definition&&e.definition.define();return this}}class Qi{constructor(e,t,i,s,o,n){this.container=e,this.name=t,this.type=i,this.shadowRootMode=s,this.callback=o,this.willDefine=n,this.definition=null}definePresentation(e){Pt.define(this.name,e,this.container)}defineElement(e){this.definition=new ye(this.type,Object.assign(Object.assign({},e),{name:this.name}))}tagFor(e){return Wi.tagFor(e)}}var Yi;!function(e){e.separator="separator",e.presentation="presentation"}(Yi||(Yi={}));class Xi extends Bt{constructor(){super(...arguments),this.role=Yi.separator}}Je([be],Xi.prototype,"role",void 0);class Ji extends Bt{}class Zi extends(Jt(Ji)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}var es;!function(e){e.email="email",e.password="password",e.tel="tel",e.text="text",e.url="url"}(es||(es={}));class ts extends Zi{constructor(){super(...arguments),this.type=es.text}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly,this.validate())}autofocusChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autofocus=this.autofocus,this.validate())}placeholderChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.placeholder=this.placeholder)}typeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.type,this.validate())}listChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.setAttribute("list",this.list),this.validate())}maxlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.maxLength=this.maxlength,this.validate())}minlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.minLength=this.minlength,this.validate())}patternChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.pattern=this.pattern,this.validate())}sizeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.size=this.size)}spellcheckChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.spellcheck=this.spellcheck)}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute("type",this.type),this.validate(),this.autofocus&&h.queueUpdate((()=>{this.focus()}))}handleTextInput(){this.value=this.control.value}handleChange(){this.$emit("change")}}Je([be({attribute:"readonly",mode:"boolean"})],ts.prototype,"readOnly",void 0),Je([be({mode:"boolean"})],ts.prototype,"autofocus",void 0),Je([be],ts.prototype,"placeholder",void 0),Je([be],ts.prototype,"type",void 0),Je([be],ts.prototype,"list",void 0),Je([be({converter:pe})],ts.prototype,"maxlength",void 0),Je([be({converter:pe})],ts.prototype,"minlength",void 0),Je([be],ts.prototype,"pattern",void 0),Je([be({converter:pe})],ts.prototype,"size",void 0),Je([be({mode:"boolean"})],ts.prototype,"spellcheck",void 0),Je([O],ts.prototype,"defaultSlottedNodes",void 0);class is{}Ht(is,Ut),Ht(ts,Qe,is);class ss extends Bt{constructor(){super(...arguments),this.percentComplete=0}valueChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}minChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}maxChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}connectedCallback(){super.connectedCallback(),this.updatePercentComplete()}updatePercentComplete(){const e="number"==typeof this.min?this.min:0,t="number"==typeof this.max?this.max:100,i="number"==typeof this.value?this.value:0,s=t-e;this.percentComplete=0===s?0:Math.fround((i-e)/s*100)}}Je([be({converter:pe})],ss.prototype,"value",void 0),Je([be({converter:pe})],ss.prototype,"min",void 0),Je([be({converter:pe})],ss.prototype,"max",void 0),Je([be({mode:"boolean"})],ss.prototype,"paused",void 0),Je([O],ss.prototype,"percentComplete",void 0);class os extends Bt{constructor(){super(...arguments),this.orientation=Mt.horizontal,this.radioChangeHandler=e=>{const t=e.target;t.checked&&(this.slottedRadioButtons.forEach((e=>{e!==t&&(e.checked=!1,this.isInsideFoundationToolbar||e.setAttribute("tabindex","-1"))})),this.selectedRadio=t,this.value=t.value,t.setAttribute("tabindex","0"),this.focusedRadio=t),e.stopPropagation()},this.moveToRadioByIndex=(e,t)=>{const i=e[t];this.isInsideToolbar||(i.setAttribute("tabindex","0"),i.readOnly?this.slottedRadioButtons.forEach((e=>{e!==i&&e.setAttribute("tabindex","-1")})):(i.checked=!0,this.selectedRadio=i)),this.focusedRadio=i,i.focus()},this.moveRightOffGroup=()=>{var e;null===(e=this.nextElementSibling)||void 0===e||e.focus()},this.moveLeftOffGroup=()=>{var e;null===(e=this.previousElementSibling)||void 0===e||e.focus()},this.focusOutHandler=e=>{const t=this.slottedRadioButtons,i=e.target,s=null!==i?t.indexOf(i):0,o=this.focusedRadio?t.indexOf(this.focusedRadio):-1;return(0===o&&s===o||o===t.length-1&&o===s)&&(this.selectedRadio?(this.focusedRadio=this.selectedRadio,this.isInsideFoundationToolbar||(this.selectedRadio.setAttribute("tabindex","0"),t.forEach((e=>{e!==this.selectedRadio&&e.setAttribute("tabindex","-1")})))):(this.focusedRadio=t[0],this.focusedRadio.setAttribute("tabindex","0"),t.forEach((e=>{e!==this.focusedRadio&&e.setAttribute("tabindex","-1")})))),!0},this.clickHandler=e=>{const t=e.target;if(t){const e=this.slottedRadioButtons;t.checked||0===e.indexOf(t)?(t.setAttribute("tabindex","0"),this.selectedRadio=t):(t.setAttribute("tabindex","-1"),this.selectedRadio=null),this.focusedRadio=t}e.preventDefault()},this.shouldMoveOffGroupToTheRight=(e,t,i)=>e===t.length&&this.isInsideToolbar&&"ArrowRight"===i,this.shouldMoveOffGroupToTheLeft=(e,t)=>(this.focusedRadio?e.indexOf(this.focusedRadio)-1:0)<0&&this.isInsideToolbar&&"ArrowLeft"===t,this.checkFocusedRadio=()=>{null===this.focusedRadio||this.focusedRadio.readOnly||this.focusedRadio.checked||(this.focusedRadio.checked=!0,this.focusedRadio.setAttribute("tabindex","0"),this.focusedRadio.focus(),this.selectedRadio=this.focusedRadio)},this.moveRight=e=>{const t=this.slottedRadioButtons;let i=0;if(i=this.focusedRadio?t.indexOf(this.focusedRadio)+1:1,this.shouldMoveOffGroupToTheRight(i,t,e.key))this.moveRightOffGroup();else for(i===t.length&&(i=0);i1;){if(!t[i].disabled){this.moveToRadioByIndex(t,i);break}if(this.focusedRadio&&i===t.indexOf(this.focusedRadio))break;if(i+1>=t.length){if(this.isInsideToolbar)break;i=0}else i+=1}},this.moveLeft=e=>{const t=this.slottedRadioButtons;let i=0;if(i=this.focusedRadio?t.indexOf(this.focusedRadio)-1:0,i=i<0?t.length-1:i,this.shouldMoveOffGroupToTheLeft(t,e.key))this.moveLeftOffGroup();else for(;i>=0&&t.length>1;){if(!t[i].disabled){this.moveToRadioByIndex(t,i);break}if(this.focusedRadio&&i===t.indexOf(this.focusedRadio))break;i-1<0?i=t.length-1:i-=1}},this.keydownHandler=e=>{const t=e.key;if(t in _t&&this.isInsideFoundationToolbar)return!0;switch(t){case"Enter":this.checkFocusedRadio();break;case"ArrowRight":case"ArrowDown":this.direction===jt.ltr?this.moveRight(e):this.moveLeft(e);break;case"ArrowLeft":case"ArrowUp":this.direction===jt.ltr?this.moveLeft(e):this.moveRight(e);break;default:return!0}}}readOnlyChanged(){void 0!==this.slottedRadioButtons&&this.slottedRadioButtons.forEach((e=>{this.readOnly?e.readOnly=!0:e.readOnly=!1}))}disabledChanged(){void 0!==this.slottedRadioButtons&&this.slottedRadioButtons.forEach((e=>{this.disabled?e.disabled=!0:e.disabled=!1}))}nameChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach((e=>{e.setAttribute("name",this.name)}))}valueChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach((e=>{e.getAttribute("value")===this.value&&(e.checked=!0,this.selectedRadio=e)})),this.$emit("change")}slottedRadioButtonsChanged(e,t){this.slottedRadioButtons&&this.slottedRadioButtons.length>0&&this.setupRadioButtons()}get parentToolbar(){return this.closest('[role="toolbar"]')}get isInsideToolbar(){var e;return null!==(e=this.parentToolbar)&&void 0!==e&&e}get isInsideFoundationToolbar(){var e;return!!(null===(e=this.parentToolbar)||void 0===e?void 0:e.$fastController)}connectedCallback(){super.connectedCallback(),this.direction=(e=>{const t=e.closest("[dir]");return null!==t&&"rtl"===t.dir?jt.rtl:jt.ltr})(this),this.setupRadioButtons()}disconnectedCallback(){this.slottedRadioButtons.forEach((e=>{e.removeEventListener("change",this.radioChangeHandler)}))}setupRadioButtons(){const e=this.slottedRadioButtons.filter((e=>e.hasAttribute("checked"))),t=e?e.length:0;if(t>1){e[t-1].checked=!0}let i=!1;if(this.slottedRadioButtons.forEach((e=>{void 0!==this.name&&e.setAttribute("name",this.name),this.disabled&&(e.disabled=!0),this.readOnly&&(e.readOnly=!0),this.value&&this.value===e.value?(this.selectedRadio=e,this.focusedRadio=e,e.checked=!0,e.setAttribute("tabindex","0"),i=!0):(this.isInsideFoundationToolbar||e.setAttribute("tabindex","-1"),e.checked=!1),e.addEventListener("change",this.radioChangeHandler)})),void 0===this.value&&this.slottedRadioButtons.length>0){const e=this.slottedRadioButtons.filter((e=>e.hasAttribute("checked"))),t=null!==e?e.length:0;if(t>0&&!i){const i=e[t-1];i.checked=!0,this.focusedRadio=i,i.setAttribute("tabindex","0")}else this.slottedRadioButtons[0].setAttribute("tabindex","0"),this.focusedRadio=this.slottedRadioButtons[0]}}}Je([be({attribute:"readonly",mode:"boolean"})],os.prototype,"readOnly",void 0),Je([be({attribute:"disabled",mode:"boolean"})],os.prototype,"disabled",void 0),Je([be],os.prototype,"name",void 0),Je([be],os.prototype,"value",void 0),Je([be],os.prototype,"orientation",void 0),Je([O],os.prototype,"childItems",void 0),Je([O],os.prototype,"slottedRadioButtons",void 0);class ns extends Bt{}class rs extends(Jt(ns)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class as extends rs{constructor(){var e;super(),this.initialValue="on",this.checkedAttribute=!1,this.dirtyChecked=!1,this.formResetCallback=()=>{this.checked=!!this.defaultChecked,this.dirtyChecked=!1},this.keypressHandler=e=>{if(" "!==e.key)return!0;this.checked||this.readOnly||(this.checked=!0)},this.checked=null!==(e=this.defaultChecked)&&void 0!==e&&e}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}checkedAttributeChanged(){this.defaultChecked=this.checkedAttribute}defaultCheckedChanged(){var e;this.$fastController.isConnected&&!this.dirtyChecked&&(this.isInsideRadioGroup()||(this.checked=null!==(e=this.defaultChecked)&&void 0!==e&&e,this.dirtyChecked=!1))}checkedChanged(){this.$fastController.isConnected&&(this.dirtyChecked||(this.dirtyChecked=!0),this.updateForm(),this.proxy instanceof HTMLInputElement&&(this.proxy.checked=this.checked),this.$emit("change"),this.validate())}connectedCallback(){var e,t;super.connectedCallback(),this.proxy.setAttribute("type","radio"),this.validate(),"radiogroup"!==(null===(e=this.parentElement)||void 0===e?void 0:e.getAttribute("role"))&&null===this.getAttribute("tabindex")&&(this.disabled||this.setAttribute("tabindex","0")),this.updateForm(),this.checkedAttribute&&(this.dirtyChecked||this.isInsideRadioGroup()||(this.checked=null!==(t=this.defaultChecked)&&void 0!==t&&t,this.dirtyChecked=!1))}isInsideRadioGroup(){return null!==this.closest("[role=radiogroup]")}updateForm(){const e=this.checked?this.value:null;this.setFormValue(e,e)}clickHandler(e){this.disabled||this.readOnly||this.checked||(this.checked=!0)}}Je([be({attribute:"readonly",mode:"boolean"})],as.prototype,"readOnly",void 0),Je([O],as.prototype,"name",void 0),Je([be({attribute:"checked",mode:"boolean"})],as.prototype,"checkedAttribute",void 0),Je([O],as.prototype,"defaultSlottedNodes",void 0),Je([O],as.prototype,"defaultChecked",void 0),Je([O],as.prototype,"checked",void 0);class ls extends yi{}class ds extends(Jt(ls)){constructor(){super(...arguments),this.proxy=document.createElement("select")}}class cs extends ds{constructor(){super(...arguments),this.open=!1,this.forcedPosition=!1,this.role=bi.combobox,this.position=fi.below,this.maxHeight=0,this.displayValue="",this.formResetCallback=()=>{this.setProxyOptions(),this.setDefaultSelectedOption(),this.value=this.firstSelectedOption.value}}openChanged(){this.ariaExpanded=this.open?"true":"false",this.open&&(this.setPositioning(),this.focusAndScrollOptionIntoView(),this.indexWhenOpened=this.selectedIndex)}get value(){return k.track(this,"value"),this._value}set value(e){const t=`${this._value}`;if(this.$fastController.isConnected&&this.options){const t=this.options.findIndex((t=>t.value===e)),i=this.options[this.selectedIndex],s=this.options[t],o=i?i.value:null,n=s?s.value:null;-1!==t&&o===n||(e="",this.selectedIndex=t),this.firstSelectedOption&&(e=this.firstSelectedOption.value)}t!==e&&(this._value=e,super.valueChanged(t,e),k.notify(this,"value"))}updateValue(e){this.$fastController.isConnected&&(this.value=this.firstSelectedOption?this.firstSelectedOption.value:"",this.displayValue=this.firstSelectedOption?this.firstSelectedOption.textContent||this.firstSelectedOption.value:this.value),e&&(this.$emit("input"),this.$emit("change",this,{bubbles:!0,composed:void 0}))}selectedIndexChanged(e,t){super.selectedIndexChanged(e,t),this.updateValue()}setPositioning(){const e=this.getBoundingClientRect(),t=window.innerHeight-e.bottom;this.position=this.forcedPosition?this.positionAttribute:e.top>t?fi.above:fi.below,this.positionAttribute=this.forcedPosition?this.positionAttribute:this.position,this.maxHeight=this.position===fi.above?~~e.top:~~t}maxHeightChanged(){this.listbox&&this.listbox.style.setProperty("--max-height",`${this.maxHeight}px`)}disabledChanged(e,t){super.disabledChanged&&super.disabledChanged(e,t),this.ariaDisabled=this.disabled?"true":"false"}clickHandler(e){if(!this.disabled){if(this.open){const t=e.target.closest("option,[role=option]");if(t&&t.disabled)return}return super.clickHandler(e),this.open=!this.open,this.open||this.indexWhenOpened===this.selectedIndex||this.updateValue(!0),!0}}focusoutHandler(e){var t;if(!this.open)return!0;const i=e.relatedTarget;this.isSameNode(i)?this.focus():(null===(t=this.options)||void 0===t?void 0:t.includes(i))||(this.open=!1,this.indexWhenOpened!==this.selectedIndex&&this.updateValue(!0))}slottedOptionsChanged(e,t){super.slottedOptionsChanged(e,t),this.setProxyOptions(),this.updateValue()}setProxyOptions(){this.proxy instanceof HTMLSelectElement&&this.options&&(this.proxy.options.length=0,this.options.forEach((e=>{const t=e.proxy||(e instanceof HTMLOptionElement?e.cloneNode():null);t&&this.proxy.appendChild(t)})))}keydownHandler(e){super.keydownHandler(e);switch(e.key||e.key.charCodeAt(0)){case" ":this.typeAheadExpired&&(e.preventDefault(),this.open=!this.open);break;case"Enter":e.preventDefault(),this.open=!this.open;break;case"Escape":this.open&&(e.preventDefault(),this.open=!1);break;case"Tab":if(!this.open)return!0;e.preventDefault(),this.open=!1}return this.open||this.indexWhenOpened===this.selectedIndex||(this.updateValue(!0),this.indexWhenOpened=this.selectedIndex),!0}connectedCallback(){super.connectedCallback(),this.forcedPosition=!!this.positionAttribute}}Je([be({attribute:"open",mode:"boolean"})],cs.prototype,"open",void 0),Je([be({attribute:"position"})],cs.prototype,"positionAttribute",void 0),Je([O],cs.prototype,"position",void 0),Je([O],cs.prototype,"maxHeight",void 0),Je([O],cs.prototype,"displayValue",void 0);class hs{}Je([O],hs.prototype,"ariaExpanded",void 0),Je([be({attribute:"aria-pressed",mode:"fromView"})],hs.prototype,"ariaPressed",void 0),Ht(hs,Ut),Ht(cs,Qe,hs);class us extends Bt{}class ps extends Bt{}Je([be({mode:"boolean"})],ps.prototype,"disabled",void 0);var fs,bs;!function(e){e.vertical="vertical",e.horizontal="horizontal"}(fs||(fs={}));class gs extends Bt{constructor(){super(...arguments),this.orientation=fs.horizontal,this.activeindicator=!0,this.showActiveIndicator=!0,this.prevActiveTabIndex=0,this.activeTabIndex=0,this.ticking=!1,this.change=()=>{this.$emit("change",this.activetab)},this.isDisabledElement=e=>"true"===e.getAttribute("aria-disabled"),this.isFocusableElement=e=>!this.isDisabledElement(e),this.setTabs=()=>{const e="gridColumn",t="gridRow",i=this.isHorizontal()?e:t;this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex(),this.showActiveIndicator=!1,this.tabs.forEach(((e,t)=>{if("tab"===e.slot&&this.isFocusableElement(e)){this.activeindicator&&(this.showActiveIndicator=!0);const i=this.tabIds[t],s=this.tabpanelIds[t];e.setAttribute("id","string"!=typeof i?`tab-${t+1}`:i),e.setAttribute("aria-selected",this.activeTabIndex===t?"true":"false"),e.setAttribute("aria-controls","string"!=typeof s?`panel-${t+1}`:s),e.addEventListener("click",this.handleTabClick),e.addEventListener("keydown",this.handleTabKeyDown),e.setAttribute("tabindex",this.activeTabIndex===t?"0":"-1"),this.activeTabIndex===t&&(this.activetab=e)}e.style.gridColumn="",e.style.gridRow="",e.style[i]=`${t+1}`,this.isHorizontal()?e.classList.remove("vertical"):e.classList.add("vertical")}))},this.setTabPanels=()=>{this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.tabpanels.forEach(((e,t)=>{const i=this.tabIds[t],s=this.tabpanelIds[t];e.setAttribute("id","string"!=typeof s?`panel-${t+1}`:s),e.setAttribute("aria-labelledby","string"!=typeof i?`tab-${t+1}`:i),this.activeTabIndex!==t?e.setAttribute("hidden",""):e.removeAttribute("hidden")}))},this.handleTabClick=e=>{const t=e.currentTarget;1===t.nodeType&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(t),this.setComponent())},this.handleTabKeyDown=e=>{if(this.isHorizontal())switch(e.key){case"ArrowLeft":e.preventDefault(),this.adjustBackward(e);break;case"ArrowRight":e.preventDefault(),this.adjustForward(e)}else switch(e.key){case"ArrowUp":e.preventDefault(),this.adjustBackward(e);break;case"ArrowDown":e.preventDefault(),this.adjustForward(e)}switch(e.key){case"Home":e.preventDefault(),this.adjust(-this.activeTabIndex);break;case"End":e.preventDefault(),this.adjust(this.tabs.length-this.activeTabIndex-1)}},this.adjustForward=e=>{const t=this.tabs;let i=0;for(i=this.activetab?t.indexOf(this.activetab)+1:1,i===t.length&&(i=0);i1;){if(this.isFocusableElement(t[i])){this.moveToTabByIndex(t,i);break}if(this.activetab&&i===t.indexOf(this.activetab))break;i+1>=t.length?i=0:i+=1}},this.adjustBackward=e=>{const t=this.tabs;let i=0;for(i=this.activetab?t.indexOf(this.activetab)-1:0,i=i<0?t.length-1:i;i>=0&&t.length>1;){if(this.isFocusableElement(t[i])){this.moveToTabByIndex(t,i);break}i-1<0?i=t.length-1:i-=1}},this.moveToTabByIndex=(e,t)=>{const i=e[t];this.activetab=i,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=t,i.focus(),this.setComponent()}}orientationChanged(){this.$fastController.isConnected&&(this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}activeidChanged(e,t){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.prevActiveTabIndex=this.tabs.findIndex((t=>t.id===e)),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}tabsChanged(){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}tabpanelsChanged(){this.$fastController.isConnected&&this.tabpanels.length<=this.tabs.length&&(this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}getActiveIndex(){return void 0!==this.activeid?-1===this.tabIds.indexOf(this.activeid)?0:this.tabIds.indexOf(this.activeid):0}getTabIds(){return this.tabs.map((e=>e.getAttribute("id")))}getTabPanelIds(){return this.tabpanels.map((e=>e.getAttribute("id")))}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}isHorizontal(){return this.orientation===fs.horizontal}handleActiveIndicatorPosition(){this.showActiveIndicator&&this.activeindicator&&this.activeTabIndex!==this.prevActiveTabIndex&&(this.ticking?this.ticking=!1:(this.ticking=!0,this.animateActiveIndicator()))}animateActiveIndicator(){this.ticking=!0;const e=this.isHorizontal()?"gridColumn":"gridRow",t=this.isHorizontal()?"translateX":"translateY",i=this.isHorizontal()?"offsetLeft":"offsetTop",s=this.activeIndicatorRef[i];this.activeIndicatorRef.style[e]=`${this.activeTabIndex+1}`;const o=this.activeIndicatorRef[i];this.activeIndicatorRef.style[e]=`${this.prevActiveTabIndex+1}`;const n=o-s;this.activeIndicatorRef.style.transform=`${t}(${n}px)`,this.activeIndicatorRef.classList.add("activeIndicatorTransition"),this.activeIndicatorRef.addEventListener("transitionend",(()=>{this.ticking=!1,this.activeIndicatorRef.style[e]=`${this.activeTabIndex+1}`,this.activeIndicatorRef.style.transform=`${t}(0px)`,this.activeIndicatorRef.classList.remove("activeIndicatorTransition")}))}adjust(e){var t,i,s;this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=(t=0,i=this.tabs.length-1,(s=this.activeTabIndex+e)i?t:s),this.setComponent()}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}}Je([be],gs.prototype,"orientation",void 0),Je([be],gs.prototype,"activeid",void 0),Je([O],gs.prototype,"tabs",void 0),Je([O],gs.prototype,"tabpanels",void 0),Je([be({mode:"boolean"})],gs.prototype,"activeindicator",void 0),Je([O],gs.prototype,"activeIndicatorRef",void 0),Je([O],gs.prototype,"showActiveIndicator",void 0),Ht(gs,Qe);class ms extends Bt{}class vs extends(Jt(ms)){constructor(){super(...arguments),this.proxy=document.createElement("textarea")}}!function(e){e.none="none",e.both="both",e.horizontal="horizontal",e.vertical="vertical"}(bs||(bs={}));class ys extends vs{constructor(){super(...arguments),this.resize=bs.none,this.cols=20,this.handleTextInput=()=>{this.value=this.control.value}}readOnlyChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.readOnly=this.readOnly)}autofocusChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.autofocus=this.autofocus)}listChanged(){this.proxy instanceof HTMLTextAreaElement&&this.proxy.setAttribute("list",this.list)}maxlengthChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.maxLength=this.maxlength)}minlengthChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.minLength=this.minlength)}spellcheckChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.spellcheck=this.spellcheck)}handleChange(){this.$emit("change")}}Je([be({mode:"boolean"})],ys.prototype,"readOnly",void 0),Je([be],ys.prototype,"resize",void 0),Je([be({mode:"boolean"})],ys.prototype,"autofocus",void 0),Je([be({attribute:"form"})],ys.prototype,"formId",void 0),Je([be],ys.prototype,"list",void 0),Je([be({converter:pe})],ys.prototype,"maxlength",void 0),Je([be({converter:pe})],ys.prototype,"minlength",void 0),Je([be],ys.prototype,"name",void 0),Je([be],ys.prototype,"placeholder",void 0),Je([be({converter:pe,mode:"fromView"})],ys.prototype,"cols",void 0),Je([be({converter:pe,mode:"fromView"})],ys.prototype,"rows",void 0),Je([be({mode:"boolean"})],ys.prototype,"spellcheck",void 0),Je([O],ys.prototype,"defaultSlottedNodes",void 0),Ht(ys,is);function xs(e){const t=getComputedStyle(document.body);for(const i in e){const s=e[i],o=document.querySelector("body"),n=t.getPropertyValue(i).toString();o&&s.setValueFor(o,n)}}const Cs={};let ws=!1;function $s(e,t){const i=zi.create(e);return t&&(Cs[t]=i),ws||(!function(e){window.addEventListener("load",(()=>{new MutationObserver((()=>{xs(e)})).observe(document.body,{attributes:!0,attributeFilter:["class"]}),xs(e)}))}(Cs),ws=!0),i}const ks=$s("border-width").withDefault(1);$s("contrast-active-border","--vscode-contrastActiveBorder").withDefault("#f38518"),$s("contrast-border","--vscode-contrastBorder").withDefault("#6fc3df");const Ts=$s("corner-radius").withDefault(0),Is=$s("design-unit").withDefault(4),Os=$s("disabled-opacity").withDefault(.4),Rs=$s("focus-border","--vscode-focusBorder").withDefault("#007fd4"),As=$s("font-family","--vscode-font-family").withDefault("-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol");$s("font-weight","--vscode-font-weight").withDefault("400");const Ds=$s("foreground","--vscode-foreground").withDefault("#cccccc"),Ss=$s("input-height").withDefault("26"),Es=$s("input-min-width").withDefault("100px"),Ps=$s("type-ramp-base-font-size","--vscode-font-size").withDefault("13px"),Fs=$s("type-ramp-base-line-height").withDefault("normal"),Bs=$s("type-ramp-minus1-font-size").withDefault("11px"),Vs=$s("type-ramp-minus1-line-height").withDefault("16px");$s("type-ramp-minus2-font-size").withDefault("9px"),$s("type-ramp-minus2-line-height").withDefault("16px"),$s("type-ramp-plus1-font-size").withDefault("16px"),$s("type-ramp-plus1-line-height").withDefault("24px");const Ls=$s("badge-background","--vscode-badge-background").withDefault("#4d4d4d"),Hs=$s("badge-foreground","--vscode-badge-foreground").withDefault("#ffffff"),Ms=$s("button-border","--vscode-button-border").withDefault("transparent"),Ns=$s("button-icon-background").withDefault("transparent"),zs=$s("button-icon-corner-radius").withDefault("5px"),_s=$s("button-icon-outline-offset").withDefault(0),js=$s("button-icon-hover-background").withDefault("rgba(90, 93, 94, 0.31)"),qs=$s("button-icon-padding").withDefault("3px"),Us=$s("button-primary-background","--vscode-button-background").withDefault("#0e639c"),Ks=$s("button-primary-foreground","--vscode-button-foreground").withDefault("#ffffff"),Ws=$s("button-primary-hover-background","--vscode-button-hoverBackground").withDefault("#1177bb"),Gs=$s("button-secondary-background","--vscode-button-secondaryBackground").withDefault("#3a3d41"),Qs=$s("button-secondary-foreground","--vscode-button-secondaryForeground").withDefault("#ffffff"),Ys=$s("button-secondary-hover-background","--vscode-button-secondaryHoverBackground").withDefault("#45494e"),Xs=$s("button-padding-horizontal").withDefault("11px"),Js=$s("button-padding-vertical").withDefault("6px"),Zs=$s("checkbox-background","--vscode-checkbox-background").withDefault("#3c3c3c"),eo=$s("checkbox-border","--vscode-checkbox-border").withDefault("#3c3c3c"),to=$s("checkbox-corner-radius").withDefault(3),io=$s("checkbox-foreground","--vscode-checkbox-foreground").withDefault("#f0f0f0"),so=$s("list-active-selection-background","--vscode-list-activeSelectionBackground").withDefault("#094771"),oo=$s("list-active-selection-foreground","--vscode-list-activeSelectionForeground").withDefault("#ffffff"),no=$s("list-hover-background","--vscode-list-hoverBackground").withDefault("#2a2d2e"),ro=$s("quick-input-background","--vscode-quickInput-background").withDefault("#252526"),ao=$s("divider-background","--vscode-settings-dropdownListBorder").withDefault("#454545"),lo=$s("dropdown-background","--vscode-dropdown-background").withDefault("#3c3c3c"),co=$s("dropdown-border","--vscode-dropdown-border").withDefault("#3c3c3c"),ho=$s("dropdown-foreground","--vscode-dropdown-foreground").withDefault("#f0f0f0"),uo=$s("dropdown-list-max-height").withDefault("200px"),po=$s("input-background","--vscode-input-background").withDefault("#3c3c3c"),fo=$s("input-foreground","--vscode-input-foreground").withDefault("#cccccc"),bo=$s("input-placeholder-foreground","--vscode-input-placeholderForeground").withDefault("#cccccc"),go=$s("link-foreground","--vscode-textLink-activeForeground").withDefault("#3794ff"),mo=$s("link-active-foreground","--vscode-textLink-foreground").withDefault("#3794ff"),vo=$s("progress-background","--vscode-progressBar-background").withDefault("#0e70c0"),yo=$s("panel-tab-active-border","--vscode-panelTitle-activeBorder").withDefault("#e7e7e7"),xo=$s("panel-tab-active-foreground","--vscode-panelTitle-activeForeground").withDefault("#e7e7e7"),Co=$s("panel-tab-foreground","--vscode-panelTitle-inactiveForeground").withDefault("#e7e7e799");$s("panel-view-background","--vscode-panel-background").withDefault("#1e1e1e"),$s("panel-view-border","--vscode-panel-border").withDefault("#80808059");const wo=$s("tag-corner-radius").withDefault("2px");class $o extends Qt{connectedCallback(){super.connectedCallback(),this.circular||(this.circular=!0)}}const ko=$o.compose({baseName:"badge",template:Gt,styles:(e,t)=>Oe` ${wi("inline-block")} :host{box-sizing: border-box;font-family: ${As};font-size: ${Bs};line-height: ${Vs}}.control{align-items: center;background-color: ${Ls};border: calc(${ks} * 1px) solid ${Ms};border-radius: 100px;box-sizing: border-box;color: ${Hs};display: flex;height: calc(${Is} * 4px);justify-content: center;min-width: calc(${Is} * 4px);padding: 0 calc(${Is} * 1px)}`}); /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */const To=Oe` ${wi("inline-flex")} :host{outline: none;font-family: ${As};font-size: ${Ps};line-height: ${Fs};color: ${Ks};background: ${Us};border-radius: calc(${Ts} * 1px);fill: currentColor;cursor: pointer}.control{background: transparent;height: inherit;flex-grow: 1;box-sizing: border-box;display: inline-flex;justify-content: center;align-items: center;padding: ${Js} ${Xs};white-space: wrap;outline: none;text-decoration: none;border: calc(${ks} * 1px) solid ${Ms};color: inherit;border-radius: inherit;fill: inherit;cursor: inherit;font-family: inherit;max-width: 300px}:host(:hover){background: ${Ws}}:host(:active){background: ${Us}}.control: ${$i}{outline: calc(${ks} * 1px) solid ${Rs};outline-offset: calc(${ks} * 2px)}.control::-moz-focus-inner{border: 0}:host([disabled]){opacity: ${Os};background: ${Us};cursor: ${"not-allowed"}}.content{display: flex}.start{display: flex}::slotted(svg), ::slotted(span){width: calc(${Is} * 4px);height: calc(${Is} * 4px)}.start{margin-inline-end: 8px}`,Io=Oe` :host([appearance='primary']){background: ${Us};color: ${Ks}}:host([appearance='primary']:hover){background: ${Ws}}:host([appearance='primary']:active) .control:active{background: ${Us}}:host([appearance='primary']) .control:${$i}{outline: calc(${ks} * 1px) solid ${Rs};outline-offset: calc(${ks} * 2px)}:host([appearance='primary'][disabled]){background: ${Us}}`,Oo=Oe` :host([appearance='secondary']){background: ${Gs};color: ${Qs}}:host([appearance='secondary']:hover){background: ${Ys}}:host([appearance='secondary']:active) .control:active{background: ${Gs}}:host([appearance='secondary']) .control:${$i}{outline: calc(${ks} * 1px) solid ${Rs};outline-offset: calc(${ks} * 2px)}:host([appearance='secondary'][disabled]){background: ${Gs}}`,Ro=Oe` :host([appearance='icon']){background: ${Ns};border-radius: ${zs};color: ${Ds}}:host([appearance='icon']:hover){background: ${js}}:host([appearance='icon']) .control{padding: ${qs}}:host([appearance='icon']:active) .control:active{background: ${js}}:host([appearance='icon']) .control:${$i}{outline: calc(${ks} * 1px) solid ${Rs};outline-offset: ${_s}}:host([appearance='icon'][disabled]){background: ${Ns}}`;class Ao extends ti{connectedCallback(){if(super.connectedCallback(),!this.appearance){const e=this.getAttribute("appearance");this.appearance=e}}attributeChangedCallback(e,t,i){if("appearance"===e&&"icon"===i){this.getAttribute("aria-label")||(this.ariaLabel="Icon Button")}"aria-label"===e&&(this.ariaLabel=i),"disabled"===e&&(this.disabled=!0)}}!function(e,t,i,s){var o,n=arguments.length,r=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n<3?o(r):n>3?o(t,i,r):o(t,i))||r);n>3&&r&&Object.defineProperty(t,i,r)}([be],Ao.prototype,"appearance",void 0);const Do=Ao.compose({baseName:"button",template:(e,t)=>ne``,styles:(e,t)=>Oe` ${To} ${Io} ${Oo} ${Ro}`,shadowOptions:{delegatesFocus:!0}});class So extends pi{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Checkbox")}}const Eo=So.compose({baseName:"checkbox",template:(e,t)=>ne``,styles:(e,t)=>Oe` ${wi("inline-flex")} :host{align-items: center;outline: none;margin: calc(${Is} * 1px) 0;user-select: none;font-size: ${Ps};line-height: ${Fs}}.control{position: relative;width: calc(${Is} * 4px);height: calc(${Is} * 4px);box-sizing: border-box;border-radius: calc(${to} * 1px);border: calc(${ks} * 1px) solid ${eo};background: ${Zs};outline: none;cursor: pointer}.label{font-family: ${As};color: ${Ds};padding-inline-start: calc(${Is} * 2px + 2px);margin-inline-end: calc(${Is} * 2px + 2px);cursor: pointer}.label__hidden{display: none;visibility: hidden}.checked-indicator{width: 100%;height: 100%;display: block;fill: ${Ds};opacity: 0;pointer-events: none}.indeterminate-indicator{border-radius: 2px;background: ${Ds};position: absolute;top: 50%;left: 50%;width: 50%;height: 50%;transform: translate(-50%, -50%);opacity: 0}:host(:enabled) .control:hover{background: ${Zs};border-color: ${eo}}:host(:enabled) .control:active{background: ${Zs};border-color: ${Rs}}:host(:${$i}) .control{border: calc(${ks} * 1px) solid ${Rs};border-radius: ${Ts}}:host(.disabled) .label, :host(.readonly) .label, :host(.readonly) .control, :host(.disabled) .control{cursor: ${"not-allowed"}}:host(.checked:not(.indeterminate)) .checked-indicator, :host(.indeterminate) .indeterminate-indicator{opacity: 1}:host(.disabled){opacity: ${Os}}`,checkedIndicator:'\n\t\t\n\t\t\t\n\t\t\n\t',indeterminateIndicator:'\n\t\t
\n\t'});class Po extends ai{connectedCallback(){super.connectedCallback();this.getAttribute("aria-label")||this.setAttribute("aria-label","Data Grid")}}const Fo=Po.compose({baseName:"data-grid",baseClass:ai,template:(e,t)=>{const i=function(e){const t=e.tagFor(ri);return ne`<${t} :rowData="${e=>e}" :cellItemTemplate="${(e,t)=>t.parent.cellItemTemplate}" :headerCellItemTemplate="${(e,t)=>t.parent.headerCellItemTemplate}">`}(e),s=e.tagFor(ri);return ne``},styles:(e,t)=>Oe` :host{display: flex;position: relative;flex-direction: column;width: 100%}`});class Bo extends ri{}const Vo=Bo.compose({baseName:"data-grid-row",baseClass:ri,template:(e,t)=>{const i=function(e){const t=e.tagFor(ci);return ne`<${t} cell-type="${e=>e.isRowHeader?"rowheader":void 0}" grid-column="${(e,t)=>t.index+1}" :rowData="${(e,t)=>t.parent.rowData}" :columnDefinition="${e=>e}">`}(e),s=function(e){const t=e.tagFor(ci);return ne`<${t} cell-type="columnheader" grid-column="${(e,t)=>t.index+1}" :columnDefinition="${e=>e}">`}(e);return ne``},styles:(e,t)=>Oe` :host{display: grid;padding: calc((${Is} / 4) * 1px) 0;box-sizing: border-box;width: 100%;background: transparent}:host(.header){}:host(.sticky-header){background: ${ro};position: sticky;top: 0}:host(:hover){background: ${no}}`});class Lo extends ci{}const Ho=Lo.compose({baseName:"data-grid-cell",baseClass:ci,template:(e,t)=>ne``,styles:(e,t)=>Oe` :host{padding: calc(${Is} * 1px) calc(${Is} * 3px);color: ${Ds};opacity: 1;box-sizing: border-box;font-family: ${As};font-size: ${Ps};line-height: ${Fs};font-weight: 400;border: solid calc(${ks} * 1px) transparent;border-radius: calc(${Ts} * 1px);min-width: 96px;white-space: wrap;overflow-wrap: break-word}:host(.column-header){font-weight: 600}:host(:${$i}), :host(:focus), :host(:active){background: ${so};border: solid calc(${ks} * 1px) ${Rs};color: ${oo};outline: none}`});class Mo extends Xi{}const No=Mo.compose({baseName:"divider",template:(e,t)=>ne``,styles:(e,t)=>Oe` ${wi("block")} :host{border: none;border-top: calc(${ks} * 1px) solid ${ao};box-sizing: content-box;height: 0;margin: calc(${Is} * 1px) 0;width: 100%}`});class zo extends cs{}const _o=zo.compose({baseName:"dropdown",template:(e,t)=>ne``,styles:(e,t)=>Oe` ${wi("inline-flex")} :host{background: ${lo};box-sizing: border-box;color: ${ho};contain: contents;font-family: ${As};height: calc(${Ss} * 1px);position: relative;user-select: none;min-width: ${Es};outline: none;vertical-align: top}.control{align-items: center;box-sizing: border-box;border: calc(${ks} * 1px) solid ${co};border-radius: calc(${Ts} * 1px);cursor: pointer;display: flex;font-family: inherit;font-size: ${Ps};line-height: ${Fs};min-height: 100%;padding: 0 calc(${Is} * 2px);width: 100%}.listbox{background: ${lo};border: calc(${ks} * 1px) solid ${Rs};border-radius: calc(${Ts} * 1px);box-sizing: border-box;display: inline-flex;flex-direction: column;left: 0;max-height: ${uo};padding: 0 0 calc(${Is} * 1px) 0;overflow-y: auto;position: absolute;width: 100%;z-index: 1}.listbox[hidden]{display: none}:host(:${$i}) .control{border-color: ${Rs}}:host(:not([disabled]):hover){background: ${lo};border-color: ${co}}:host(:${$i}) ::slotted([aria-selected="true"][role="option"]:not([disabled])){background: ${so};border: calc(${ks} * 1px) solid ${Rs};color: ${oo}}:host([disabled]){cursor: ${"not-allowed"};opacity: ${Os}}:host([disabled]) .control{cursor: ${"not-allowed"};user-select: none}:host([disabled]:hover){background: ${lo};color: ${ho};fill: currentcolor}:host(:not([disabled])) .control:active{border-color: ${Rs}}:host(:empty) .listbox{display: none}:host([open]) .control{border-color: ${Rs}}:host([open][position='above']) .listbox, :host([open][position='below']) .control{border-bottom-left-radius: 0;border-bottom-right-radius: 0}:host([open][position='above']) .control, :host([open][position='below']) .listbox{border-top-left-radius: 0;border-top-right-radius: 0}:host([open][position='above']) .listbox{bottom: calc(${Ss} * 1px)}:host([open][position='below']) .listbox{top: calc(${Ss} * 1px)}.selected-value{flex: 1 1 auto;font-family: inherit;overflow: hidden;text-align: start;text-overflow: ellipsis;white-space: nowrap}.indicator{flex: 0 0 auto;margin-inline-start: 1em}slot[name='listbox']{display: none;width: 100%}:host([open]) slot[name='listbox']{display: flex;position: absolute}.end{margin-inline-start: auto}.start, .end, .indicator, .select-indicator, ::slotted(svg), ::slotted(span){fill: currentcolor;height: 1em;min-height: calc(${Is} * 4px);min-width: calc(${Is} * 4px);width: 1em}::slotted([role='option']), ::slotted(option){flex: 0 0 auto}`,indicator:'\n\t\t\n\t\t\t\n\t\t\n\t'});class jo extends Kt{}const qo=jo.compose({baseName:"link",template:(e,t)=>ne`${Xe(0,t)}${Ye(0,t)}`,styles:(e,t)=>Oe` ${wi("inline-flex")} :host{background: transparent;box-sizing: border-box;color: ${mo};cursor: pointer;fill: currentcolor;font-family: ${As};font-size: ${Ps};line-height: ${Fs};outline: none}.control{align-items: center;background: transparent;border: calc(${ks} * 1px) solid transparent;border-radius: calc(${Ts} * 1px);box-sizing: border-box;color: inherit;cursor: inherit;display: inline-flex;fill: inherit;font-family: inherit;flex-grow: 1;height: inherit;justify-content: center;padding: 0;outline: none;text-decoration: none;white-space: nowrap}.control::-moz-focus-inner{border: 0}:host(:hover){color: ${go}}:host(:hover) .content{text-decoration: underline}:host(:active){background: transparent;color: ${go}}:host(:${$i}) .control{border: calc(${ks} * 1px) solid ${Rs}}`,shadowOptions:{delegatesFocus:!0}});class Uo extends vi{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Option")}}const Ko=Uo.compose({baseName:"option",template:(e,t)=>ne``,styles:(e,t)=>Oe` ${wi("inline-flex")} :host{font-family: var(--body-font);border-radius: ${Ts};border: calc(${ks} * 1px) solid transparent;box-sizing: border-box;color: ${Ds};cursor: pointer;fill: currentcolor;font-size: ${Ps};line-height: ${Fs};margin: 0;outline: none;overflow: hidden;padding: 0 calc((${Is} / 2) * 1px) calc((${Is} / 4) * 1px);user-select: none;white-space: nowrap}:host(:${$i}){border-color: ${Rs};background: ${so};color: ${Ds}}:host([aria-selected='true']){background: ${so};border: calc(${ks} * 1px) solid ${Rs};color: ${oo}}:host(:active){background: ${so};color: ${oo}}:host(:not([aria-selected='true']):hover){background: ${so};border: calc(${ks} * 1px) solid ${Rs};color: ${oo}}:host(:not([aria-selected='true']):active){background: ${so};color: ${Ds}}:host([disabled]){cursor: ${"not-allowed"};opacity: ${Os}}:host([disabled]:hover){background-color: inherit}.content{grid-column-start: 2;justify-self: start;overflow: hidden;text-overflow: ellipsis}`});class Wo extends gs{connectedCallback(){super.connectedCallback(),this.orientation&&(this.orientation=fs.horizontal);this.getAttribute("aria-label")||this.setAttribute("aria-label","Panels")}}const Go=Wo.compose({baseName:"panels",template:(e,t)=>ne``,styles:(e,t)=>Oe` ${wi("grid")} :host{box-sizing: border-box;font-family: ${As};font-size: ${Ps};line-height: ${Fs};color: ${Ds};grid-template-columns: auto 1fr auto;grid-template-rows: auto 1fr;overflow-x: auto}.tablist{display: grid;grid-template-rows: auto auto;grid-template-columns: auto;column-gap: calc(${Is} * 8px);position: relative;width: max-content;align-self: end;padding: calc(${Is} * 1px) calc(${Is} * 1px) 0;box-sizing: border-box}.start, .end{align-self: center}.activeIndicator{grid-row: 2;grid-column: 1;width: 100%;height: calc((${Is} / 4) * 1px);justify-self: center;background: ${xo};margin: 0;border-radius: calc(${Ts} * 1px)}.activeIndicatorTransition{transition: transform 0.01s linear}.tabpanel{grid-row: 2;grid-column-start: 1;grid-column-end: 4;position: relative}`});class Qo extends ps{connectedCallback(){super.connectedCallback(),this.disabled&&(this.disabled=!1),this.textContent&&this.setAttribute("aria-label",this.textContent)}}const Yo=Qo.compose({baseName:"panel-tab",template:(e,t)=>ne``,styles:(e,t)=>Oe` ${wi("inline-flex")} :host{box-sizing: border-box;font-family: ${As};font-size: ${Ps};line-height: ${Fs};height: calc(${Is} * 7px);padding: calc(${Is} * 1px) 0;color: ${Co};fill: currentcolor;border-radius: calc(${Ts} * 1px);border: solid calc(${ks} * 1px) transparent;align-items: center;justify-content: center;grid-row: 1;cursor: pointer}:host(:hover){color: ${xo};fill: currentcolor}:host(:active){color: ${xo};fill: currentcolor}:host([aria-selected='true']){background: transparent;color: ${xo};fill: currentcolor}:host([aria-selected='true']:hover){background: transparent;color: ${xo};fill: currentcolor}:host([aria-selected='true']:active){background: transparent;color: ${xo};fill: currentcolor}:host(:${$i}){outline: none;border: solid calc(${ks} * 1px) ${yo}}:host(:focus){outline: none}::slotted(vscode-badge){margin-inline-start: calc(${Is} * 2px)}`});class Xo extends us{}const Jo=Xo.compose({baseName:"panel-view",template:(e,t)=>ne``,styles:(e,t)=>Oe` ${wi("flex")} :host{color: inherit;background-color: transparent;border: solid calc(${ks} * 1px) transparent;box-sizing: border-box;font-size: ${Ps};line-height: ${Fs};padding: 10px calc((${Is} + 2) * 1px)}`});class Zo extends ss{connectedCallback(){super.connectedCallback(),this.paused&&(this.paused=!1),this.setAttribute("aria-label","Loading"),this.setAttribute("aria-live","assertive"),this.setAttribute("role","alert")}attributeChangedCallback(e,t,i){"value"===e&&this.removeAttribute("value")}}const en=Zo.compose({baseName:"progress-ring",template:(e,t)=>ne``,styles:(e,t)=>Oe` ${wi("flex")} :host{align-items: center;outline: none;height: calc(${Is} * 7px);width: calc(${Is} * 7px);margin: 0}.progress{height: 100%;width: 100%}.background{fill: none;stroke: transparent;stroke-width: calc(${Is} / 2 * 1px)}.indeterminate-indicator-1{fill: none;stroke: ${vo};stroke-width: calc(${Is} / 2 * 1px);stroke-linecap: square;transform-origin: 50% 50%;transform: rotate(-90deg);transition: all 0.2s ease-in-out;animation: spin-infinite 2s linear infinite}@keyframes spin-infinite{0%{stroke-dasharray: 0.01px 43.97px;transform: rotate(0deg)}50%{stroke-dasharray: 21.99px 21.99px;transform: rotate(450deg)}100%{stroke-dasharray: 0.01px 43.97px;transform: rotate(1080deg)}}`,indeterminateIndicator:'\n\t\t\n\t\t\t\n\t\t\t\n\t\t\n\t'});class tn extends os{connectedCallback(){super.connectedCallback();const e=this.querySelector("label");if(e){const t="radio-group-"+Math.random().toString(16).slice(2);e.setAttribute("id",t),this.setAttribute("aria-labelledby",t)}}}const sn=tn.compose({baseName:"radio-group",template:(e,t)=>ne``,styles:(e,t)=>Oe` ${wi("flex")} :host{align-items: flex-start;margin: calc(${Is} * 1px) 0;flex-direction: column}.positioning-region{display: flex;flex-wrap: wrap}:host([orientation='vertical']) .positioning-region{flex-direction: column}:host([orientation='horizontal']) .positioning-region{flex-direction: row}::slotted([slot='label']){color: ${io};font-size: ${Ps};margin: calc(${Is} * 1px) 0}`});class on extends as{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Radio")}}const nn=on.compose({baseName:"radio",template:(e,t)=>ne``,styles:(e,t)=>Oe` ${wi("inline-flex")} :host{align-items: center;flex-direction: row;font-size: ${Ps};line-height: ${Fs};margin: calc(${Is} * 1px) 0;outline: none;position: relative;transition: all 0.2s ease-in-out;user-select: none}.control{background: ${Zs};border-radius: 999px;border: calc(${ks} * 1px) solid ${eo};box-sizing: border-box;cursor: pointer;height: calc(${Is} * 4px);position: relative;outline: none;width: calc(${Is} * 4px)}.label{color: ${Ds};cursor: pointer;font-family: ${As};margin-inline-end: calc(${Is} * 2px + 2px);padding-inline-start: calc(${Is} * 2px + 2px)}.label__hidden{display: none;visibility: hidden}.control, .checked-indicator{flex-shrink: 0}.checked-indicator{background: ${Ds};border-radius: 999px;display: inline-block;inset: calc(${Is} * 1px);opacity: 0;pointer-events: none;position: absolute}:host(:not([disabled])) .control:hover{background: ${Zs};border-color: ${eo}}:host(:not([disabled])) .control:active{background: ${Zs};border-color: ${Rs}}:host(:${$i}) .control{border: calc(${ks} * 1px) solid ${Rs}}:host([aria-checked='true']) .control{background: ${Zs};border: calc(${ks} * 1px) solid ${eo}}:host([aria-checked='true']:not([disabled])) .control:hover{background: ${Zs};border: calc(${ks} * 1px) solid ${eo}}:host([aria-checked='true']:not([disabled])) .control:active{background: ${Zs};border: calc(${ks} * 1px) solid ${Rs}}:host([aria-checked="true"]:${$i}:not([disabled])) .control{border: calc(${ks} * 1px) solid ${Rs}}:host([disabled]) .label, :host([readonly]) .label, :host([readonly]) .control, :host([disabled]) .control{cursor: ${"not-allowed"}}:host([aria-checked='true']) .checked-indicator{opacity: 1}:host([disabled]){opacity: ${Os}}`,checkedIndicator:'\n\t\t
\n\t'});class rn extends Qt{connectedCallback(){super.connectedCallback(),this.circular&&(this.circular=!1)}}const an=rn.compose({baseName:"tag",template:Gt,styles:(e,t)=>Oe` ${wi("inline-block")} :host{box-sizing: border-box;font-family: ${As};font-size: ${Bs};line-height: ${Vs}}.control{background-color: ${Ls};border: calc(${ks} * 1px) solid ${Ms};border-radius: ${wo};color: ${Hs};padding: calc(${Is} * 0.5px) calc(${Is} * 1px);text-transform: uppercase}`});class ln extends ys{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Text area")}}const dn=ln.compose({baseName:"text-area",template:(e,t)=>ne``,styles:(e,t)=>Oe` ${wi("inline-block")} :host{font-family: ${As};outline: none;user-select: none}.control{box-sizing: border-box;position: relative;color: ${fo};background: ${po};border-radius: calc(${Ts} * 1px);border: calc(${ks} * 1px) solid ${co};font: inherit;font-size: ${Ps};line-height: ${Fs};padding: calc(${Is} * 2px + 1px);width: 100%;min-width: ${Es};resize: none}.control:hover:enabled{background: ${po};border-color: ${co}}.control:active:enabled{background: ${po};border-color: ${Rs}}.control:hover, .control:${$i}, .control:disabled, .control:active{outline: none}:host(:focus-within:not([disabled])) .control{border-color: ${Rs}}:host([resize='both']) .control{resize: both}:host([resize='horizontal']) .control{resize: horizontal}:host([resize='vertical']) .control{resize: vertical}.label{display: block;color: ${bo};cursor: pointer;font-size: ${Ps};line-height: ${Fs};margin-bottom: calc(${Is} * 1px)}.label__hidden{display: none;visibility: hidden}:host([disabled]) .label, :host([readonly]) .label, :host([readonly]) .control, :host([disabled]) .control{cursor: ${"not-allowed"}}:host([disabled]){opacity: ${Os}}:host([disabled]) .control{border-color: ${co}}`,shadowOptions:{delegatesFocus:!0}});class cn extends ts{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Text field")}}const hn=cn.compose({baseName:"text-field",template:(e,t)=>ne``,styles:(e,t)=>Oe` ${wi("inline-block")} :host{font-family: ${As};outline: none;user-select: none}.root{box-sizing: border-box;position: relative;display: flex;flex-direction: row;color: ${fo};background: ${po};border-radius: calc(${Ts} * 1px);border: calc(${ks} * 1px) solid ${co};height: calc(${Ss} * 1px);min-width: ${Es}}.control{-webkit-appearance: none;font: inherit;background: transparent;border: 0;color: inherit;height: calc(100% - (${Is} * 1px));width: 100%;margin-top: auto;margin-bottom: auto;border: none;padding: 0 calc(${Is} * 2px + 1px);font-size: ${Ps};line-height: ${Fs}}.control:hover, .control:${$i}, .control:disabled, .control:active{outline: none}.label{display: block;color: ${bo};cursor: pointer;font-size: ${Ps};line-height: ${Fs};margin-bottom: calc(${Is} * 1px)}.label__hidden{display: none;visibility: hidden}.start, .end{display: flex;margin: auto;fill: currentcolor}::slotted(svg), ::slotted(span){width: calc(${Is} * 4px);height: calc(${Is} * 4px)}.start{margin-inline-start: 11px}.end{margin-inline-end: 11px}:host(:hover:not([disabled])) .root{background: ${po};border-color: ${co}}:host(:active:not([disabled])) .root{background: ${po};border-color: ${Rs}}:host(:focus-within:not([disabled])) .root{border-color: ${Rs}}:host([disabled]) .label, :host([readonly]) .label, :host([readonly]) .control, :host([disabled]) .control{cursor: ${"not-allowed"}}:host([disabled]){opacity: ${Os}}:host([disabled]) .control{border-color: ${co}}`,shadowOptions:{delegatesFocus:!0}}),un={vsCodeBadge:ko,vsCodeButton:Do,vsCodeCheckbox:Eo,vsCodeDataGrid:Fo,vsCodeDataGridCell:Ho,vsCodeDataGridRow:Vo,vsCodeDivider:No,vsCodeDropdown:_o,vsCodeLink:qo,vsCodeOption:Ko,vsCodePanels:Go,vsCodePanelTab:Yo,vsCodePanelView:Jo,vsCodeProgressRing:en,vsCodeRadioGroup:sn,vsCodeRadio:nn,vsCodeTag:an,vsCodeTextArea:dn,vsCodeTextField:hn,register(e,...t){if(e)for(const i in this)"register"!==i&&this[i]().register(e,...t)}};function pn(e){return Wi.getOrCreate(e).withPrefix("vscode")}const fn=pn().register(un);export{$o as Badge,Ao as Button,So as Checkbox,Po as DataGrid,Lo as DataGridCell,Bo as DataGridRow,Mo as Divider,zo as Dropdown,jo as Link,Uo as Option,Qo as PanelTab,Xo as PanelView,Wo as Panels,Zo as ProgressRing,on as Radio,tn as RadioGroup,rn as Tag,ln as TextArea,cn as TextField,fn as VSCodeDesignSystem,un as allComponents,pn as provideVSCodeDesignSystem,ko as vsCodeBadge,Do as vsCodeButton,Eo as vsCodeCheckbox,Fo as vsCodeDataGrid,Ho as vsCodeDataGridCell,Vo as vsCodeDataGridRow,No as vsCodeDivider,_o as vsCodeDropdown,qo as vsCodeLink,Ko as vsCodeOption,Yo as vsCodePanelTab,Jo as vsCodePanelView,Go as vsCodePanels,en as vsCodeProgressRing,nn as vsCodeRadio,sn as vsCodeRadioGroup,an as vsCodeTag,dn as vsCodeTextArea,hn as vsCodeTextField};