@fluentui/web-components 2.2.3 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.json +16 -1
- package/CHANGELOG.md +11 -2
- package/dist/dts/custom-elements.d.ts +34 -2
- package/dist/dts/text-area/index.d.ts +17 -1
- package/dist/dts/text-area/text-area.stories.d.ts +17 -1
- package/dist/dts/text-field/index.d.ts +17 -1
- package/dist/dts/text-field/text-field.stories.d.ts +17 -1
- package/dist/esm/combobox/index.js +3 -0
- package/dist/fluent-web-components.api.json +383 -23
- package/dist/web-components.d.ts +70 -4
- package/dist/web-components.js +1074 -250
- package/dist/web-components.min.js +157 -157
- package/docs/api-report.md +73 -7
- package/package.json +5 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const t=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(t){return{}}}();void 0===t.trustedTypes&&(t.trustedTypes={createPolicy:(t,e)=>e});const e=Object.freeze([]),i=[],o=t.trustedTypes.createPolicy("fast-html",{createHTML:t=>t});let s=o;const n=[];function r(){if(n.length)throw n.shift()}function a(t){try{t.call()}catch(t){n.push(t),setTimeout(r,0)}}const l="fast-"+Math.random().toString(36).substring(2,8),c=l+"{",h="}"+l,d=Object.freeze({supportsAdoptedStyleSheets:Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype,setHTMLPolicy(t){if(s!==o)throw new Error("The HTML policy can only be set once.");s=t},createHTML:t=>s.createHTML(t),isMarker:t=>t&&8===t.nodeType&&t.data.startsWith(l),extractDirectiveIndexFromMarker:t=>parseInt(t.data.replace(l+":","")),createInterpolationPlaceholder:t=>`${c}${t}${h}`,createCustomAttributePlaceholder(t,e){return`${t}="${this.createInterpolationPlaceholder(e)}"`},createBlockPlaceholder:t=>`\x3c!--${l}:${t}--\x3e`,queueUpdate(t){i.length<1&&window.requestAnimationFrame(d.processUpdates),i.push(t)},processUpdates(){let t=0;for(;t<i.length;)if(a(i[t]),t++,t>1024){for(let e=0,o=i.length-t;e<o;e++)i[e]=i[e+t];i.length-=t,t=0}i.length=0},nextUpdate:()=>new Promise(t=>{d.queueUpdate(t)}),setAttribute(t,e,i){null==i?t.removeAttribute(e):t.setAttribute(e,i)},setBooleanAttribute(t,e,i){i?t.setAttribute(e,""):t.removeAttribute(e)},removeChildNodes(t){for(let e=t.firstChild;null!==e;e=t.firstChild)t.removeChild(e)},createTemplateWalker:t=>document.createTreeWalker(t,133,null,!1)});function u(t){const e=this.spillover;-1===e.indexOf(t)&&e.push(t)}function p(t){const e=this.spillover,i=e.indexOf(t);-1!==i&&e.splice(i,1)}function g(t){const e=this.spillover,i=this.source;for(let o=0,s=e.length;o<s;++o)e[o].handleChange(i,t)}function f(t){return-1!==this.spillover.indexOf(t)}class m{constructor(t,e){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.source=t,this.sub1=e}has(t){return this.sub1===t||this.sub2===t}subscribe(t){this.has(t)||(void 0!==this.sub1?void 0!==this.sub2?(this.spillover=[this.sub1,this.sub2,t],this.subscribe=u,this.unsubscribe=p,this.notify=g,this.has=f,this.sub1=void 0,this.sub2=void 0):this.sub2=t:this.sub1=t)}unsubscribe(t){this.sub1===t?this.sub1=void 0:this.sub2===t&&(this.sub2=void 0)}notify(t){const e=this.sub1,i=this.sub2,o=this.source;void 0!==e&&e.handleChange(o,t),void 0!==i&&i.handleChange(o,t)}}class b{constructor(t){this.subscribers={},this.sourceSubscribers=null,this.source=t}notify(t){var e;const i=this.subscribers[t];void 0!==i&&i.notify(t),null===(e=this.sourceSubscribers)||void 0===e||e.notify(t)}subscribe(t,e){var i;if(e){let i=this.subscribers[e];void 0===i&&(this.subscribers[e]=i=new m(this.source)),i.subscribe(t)}else this.sourceSubscribers=null!==(i=this.sourceSubscribers)&&void 0!==i?i:new m(this.source),this.sourceSubscribers.subscribe(t)}unsubscribe(t,e){var i;if(e){const i=this.subscribers[e];void 0!==i&&i.unsubscribe(t)}else null===(i=this.sourceSubscribers)||void 0===i||i.unsubscribe(t)}}const v=/(:|&&|\|\||if)/,y=new WeakMap,x=new WeakMap;let $=void 0,w=t=>{throw new Error("Must call enableArrayObservation before observing arrays.")};class k{constructor(t){this.name=t,this.field="_"+t,this.callback=t+"Changed"}getValue(t){return void 0!==$&&$.watch(t,this.name),t[this.field]}setValue(t,e){const i=this.field,o=t[i];if(o!==e){t[i]=e;const s=t[this.callback];"function"==typeof s&&s.call(t,o,e),F(t).notify(this.name)}}}const C=Object.freeze({setArrayObserverFactory(t){w=t},getNotifier(t){let e=t.$fastController||y.get(t);return void 0===e&&(Array.isArray(t)?e=w(t):y.set(t,e=new b(t))),e},track(t,e){void 0!==$&&$.watch(t,e)},trackVolatile(){void 0!==$&&($.needsRefresh=!0)},notify(t,e){F(t).notify(e)},defineProperty(t,e){"string"==typeof e&&(e=new k(e)),this.getAccessors(t).push(e),Reflect.defineProperty(t,e.name,{enumerable:!0,get:function(){return e.getValue(this)},set:function(t){e.setValue(this,t)}})},getAccessors(t){let e=x.get(t);if(void 0===e){let i=Reflect.getPrototypeOf(t);for(;void 0===e&&null!==i;)e=x.get(i),i=Reflect.getPrototypeOf(i);e=void 0===e?[]:e.slice(0),x.set(t,e)}return e},binding(t,e,i=this.isVolatileBinding(t)){return new E(t,e,i)},isVolatileBinding:t=>v.test(t.toString())}),F=C.getNotifier;C.trackVolatile;const I=d.queueUpdate;function T(t,e){C.defineProperty(t,e)}let D=null;function V(t){D=t}class S{constructor(){this.index=0,this.length=0,this.parent=null,this.parentContext=null}get event(){return D}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}}C.defineProperty(S.prototype,"index"),C.defineProperty(S.prototype,"length");const R=Object.seal(new S);class E extends m{constructor(t,e,i=!1){super(t,e),this.binding=t,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(t,e){this.needsRefresh&&null!==this.last&&this.disconnect();const i=$;$=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;const o=this.binding(t,e);return $=i,o}disconnect(){if(null!==this.last){let t=this.first;for(;void 0!==t;)t.notifier.unsubscribe(this,t.propertyName),t=t.next;this.last=null,this.needsRefresh=this.needsQueue=!0}}watch(t,e){const i=this.last,o=F(t),s=null===i?this.first:{};if(s.propertySource=t,s.propertyName=e,s.notifier=o,o.subscribe(this,e),null!==i){if(!this.needsRefresh){let e;$=void 0,e=i.propertySource[i.propertyName],$=this,t===e&&(this.needsRefresh=!0)}i.next=s}this.last=s}handleChange(){this.needsQueue&&(this.needsQueue=!1,I(this))}call(){null!==this.last&&(this.needsQueue=!0,this.notify(this))}records(){let t=this.first;return{next:()=>{const e=t;return void 0===e?{value:void 0,done:!0}:(t=t.next,{value:e,done:!1})},[Symbol.iterator]:function(){return this}}}}class O{constructor(){this.targetIndex=0}}class L extends O{constructor(){super(...arguments),this.createPlaceholder=d.createInterpolationPlaceholder}}class A extends O{constructor(t,e,i){super(),this.name=t,this.behavior=e,this.options=i}createPlaceholder(t){return d.createCustomAttributePlaceholder(this.name,t)}createBehavior(t){return new this.behavior(t,this.options)}}function z(t,e){this.source=t,this.context=e,null===this.bindingObserver&&(this.bindingObserver=C.binding(this.binding,this,this.isBindingVolatile)),this.updateTarget(this.bindingObserver.observe(t,e))}function H(t,e){this.source=t,this.context=e,this.target.addEventListener(this.targetName,this)}function P(){this.bindingObserver.disconnect(),this.source=null,this.context=null}function M(){this.bindingObserver.disconnect(),this.source=null,this.context=null;const t=this.target.$fastView;void 0!==t&&t.isComposed&&(t.unbind(),t.needsBindOnly=!0)}function B(){this.target.removeEventListener(this.targetName,this),this.source=null,this.context=null}function N(t){d.setAttribute(this.target,this.targetName,t)}function j(t){d.setBooleanAttribute(this.target,this.targetName,t)}function U(t){if(null==t&&(t=""),t.create){this.target.textContent="";let e=this.target.$fastView;void 0===e?e=t.create():this.target.$fastTemplate!==t&&(e.isComposed&&(e.remove(),e.unbind()),e=t.create()),e.isComposed?e.needsBindOnly&&(e.needsBindOnly=!1,e.bind(this.source,this.context)):(e.isComposed=!0,e.bind(this.source,this.context),e.insertBefore(this.target),this.target.$fastView=e,this.target.$fastTemplate=t)}else{const e=this.target.$fastView;void 0!==e&&e.isComposed&&(e.isComposed=!1,e.remove(),e.needsBindOnly?e.needsBindOnly=!1:e.unbind()),this.target.textContent=t}}function q(t){this.target[this.targetName]=t}function _(t){const e=this.classVersions||Object.create(null),i=this.target;let o=this.version||0;if(null!=t&&t.length){const s=t.split(/\s+/);for(let t=0,n=s.length;t<n;++t){const n=s[t];""!==n&&(e[n]=o,i.classList.add(n))}}if(this.classVersions=e,this.version=o+1,0!==o){o-=1;for(const t in e)e[t]===o&&i.classList.remove(t)}}class G extends L{constructor(t){super(),this.binding=t,this.bind=z,this.unbind=P,this.updateTarget=N,this.isBindingVolatile=C.isVolatileBinding(this.binding)}get targetName(){return this.originalTargetName}set targetName(t){if(this.originalTargetName=t,void 0!==t)switch(t[0]){case":":if(this.cleanedTargetName=t.substr(1),this.updateTarget=q,"innerHTML"===this.cleanedTargetName){const t=this.binding;this.binding=(e,i)=>d.createHTML(t(e,i))}break;case"?":this.cleanedTargetName=t.substr(1),this.updateTarget=j;break;case"@":this.cleanedTargetName=t.substr(1),this.bind=H,this.unbind=B;break;default:this.cleanedTargetName=t,"class"===t&&(this.updateTarget=_)}}targetAtContent(){this.updateTarget=U,this.unbind=M}createBehavior(t){return new W(t,this.binding,this.isBindingVolatile,this.bind,this.unbind,this.updateTarget,this.cleanedTargetName)}}class W{constructor(t,e,i,o,s,n,r){this.source=null,this.context=null,this.bindingObserver=null,this.target=t,this.binding=e,this.isBindingVolatile=i,this.bind=o,this.unbind=s,this.updateTarget=n,this.targetName=r}handleChange(){this.updateTarget(this.bindingObserver.observe(this.source,this.context))}handleEvent(t){V(t);const e=this.binding(this.source,this.context);V(null),!0!==e&&t.preventDefault()}}let K=null;class X{addFactory(t){t.targetIndex=this.targetIndex,this.behaviorFactories.push(t)}captureContentBinding(t){t.targetAtContent(),this.addFactory(t)}reset(){this.behaviorFactories=[],this.targetIndex=-1}release(){K=this}static borrow(t){const e=K||new X;return e.directives=t,e.reset(),K=null,e}}function Y(t){if(1===t.length)return t[0];let e;const i=t.length,o=t.map(t=>"string"==typeof t?()=>t:(e=t.targetName||e,t.binding)),s=new G((t,e)=>{let s="";for(let n=0;n<i;++n)s+=o[n](t,e);return s});return s.targetName=e,s}const Q=h.length;function Z(t,e){const i=e.split(c);if(1===i.length)return null;const o=[];for(let e=0,s=i.length;e<s;++e){const s=i[e],n=s.indexOf(h);let r;if(-1===n)r=s;else{const e=parseInt(s.substring(0,n));o.push(t.directives[e]),r=s.substring(n+Q)}""!==r&&o.push(r)}return o}function J(t,e,i=!1){const o=e.attributes;for(let s=0,n=o.length;s<n;++s){const r=o[s],a=r.value,l=Z(t,a);let c=null;null===l?i&&(c=new G(()=>a),c.targetName=r.name):c=Y(l),null!==c&&(e.removeAttributeNode(r),s--,n--,t.addFactory(c))}}function tt(t,e,i){const o=Z(t,e.textContent);if(null!==o){let s=e;for(let n=0,r=o.length;n<r;++n){const r=o[n],a=0===n?e:s.parentNode.insertBefore(document.createTextNode(""),s.nextSibling);"string"==typeof r?a.textContent=r:(a.textContent=" ",t.captureContentBinding(r)),s=a,t.targetIndex++,a!==e&&i.nextNode()}t.targetIndex--}}const et=document.createRange();class it{constructor(t,e){this.fragment=t,this.behaviors=e,this.source=null,this.context=null,this.firstChild=t.firstChild,this.lastChild=t.lastChild}appendTo(t){t.appendChild(this.fragment)}insertBefore(t){if(this.fragment.hasChildNodes())t.parentNode.insertBefore(this.fragment,t);else{const e=t.parentNode,i=this.lastChild;let o,s=this.firstChild;for(;s!==i;)o=s.nextSibling,e.insertBefore(s,t),s=o;e.insertBefore(i,t)}}remove(){const t=this.fragment,e=this.lastChild;let i,o=this.firstChild;for(;o!==e;)i=o.nextSibling,t.appendChild(o),o=i;t.appendChild(e)}dispose(){const t=this.firstChild.parentNode,e=this.lastChild;let i,o=this.firstChild;for(;o!==e;)i=o.nextSibling,t.removeChild(o),o=i;t.removeChild(e);const s=this.behaviors,n=this.source;for(let t=0,e=s.length;t<e;++t)s[t].unbind(n)}bind(t,e){const i=this.behaviors;if(this.source!==t)if(null!==this.source){const o=this.source;this.source=t,this.context=e;for(let s=0,n=i.length;s<n;++s){const n=i[s];n.unbind(o),n.bind(t,e)}}else{this.source=t,this.context=e;for(let o=0,s=i.length;o<s;++o)i[o].bind(t,e)}}unbind(){if(null===this.source)return;const t=this.behaviors,e=this.source;for(let i=0,o=t.length;i<o;++i)t[i].unbind(e);this.source=null}static disposeContiguousBatch(t){if(0!==t.length){et.setStartBefore(t[0].firstChild),et.setEndAfter(t[t.length-1].lastChild),et.deleteContents();for(let e=0,i=t.length;e<i;++e){const i=t[e],o=i.behaviors,s=i.source;for(let t=0,e=o.length;t<e;++t)o[t].unbind(s)}}}}class ot{constructor(t,e){this.behaviorCount=0,this.hasHostBehaviors=!1,this.fragment=null,this.targetOffset=0,this.viewBehaviorFactories=null,this.hostBehaviorFactories=null,this.html=t,this.directives=e}create(t){if(null===this.fragment){let t;const e=this.html;if("string"==typeof e){t=document.createElement("template"),t.innerHTML=d.createHTML(e);const i=t.content.firstElementChild;null!==i&&"TEMPLATE"===i.tagName&&(t=i)}else t=e;const i=function(t,e){const i=t.content;document.adoptNode(i);const o=X.borrow(e);J(o,t,!0);const s=o.behaviorFactories;o.reset();const n=d.createTemplateWalker(i);let r;for(;r=n.nextNode();)switch(o.targetIndex++,r.nodeType){case 1:J(o,r);break;case 3:tt(o,r,n);break;case 8:d.isMarker(r)&&o.addFactory(e[d.extractDirectiveIndexFromMarker(r)])}let a=0;(d.isMarker(i.firstChild)||1===i.childNodes.length&&e.length)&&(i.insertBefore(document.createComment(""),i.firstChild),a=-1);const l=o.behaviorFactories;return o.release(),{fragment:i,viewBehaviorFactories:l,hostBehaviorFactories:s,targetOffset:a}}(t,this.directives);this.fragment=i.fragment,this.viewBehaviorFactories=i.viewBehaviorFactories,this.hostBehaviorFactories=i.hostBehaviorFactories,this.targetOffset=i.targetOffset,this.behaviorCount=this.viewBehaviorFactories.length+this.hostBehaviorFactories.length,this.hasHostBehaviors=this.hostBehaviorFactories.length>0}const e=this.fragment.cloneNode(!0),i=this.viewBehaviorFactories,o=new Array(this.behaviorCount),s=d.createTemplateWalker(e);let n=0,r=this.targetOffset,a=s.nextNode();for(let t=i.length;n<t;++n){const t=i[n],e=t.targetIndex;for(;null!==a;){if(r===e){o[n]=t.createBehavior(a);break}a=s.nextNode(),r++}}if(this.hasHostBehaviors){const e=this.hostBehaviorFactories;for(let i=0,s=e.length;i<s;++i,++n)o[n]=e[i].createBehavior(t)}return new it(e,o)}render(t,e,i){"string"==typeof e&&(e=document.getElementById(e)),void 0===i&&(i=e);const o=this.create(i);return o.bind(t,R),o.appendTo(e),o}}const st=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;function nt(t,...e){const i=[];let o="";for(let s=0,n=t.length-1;s<n;++s){const n=t[s];let r=e[s];if(o+=n,r instanceof ot){const t=r;r=()=>t}if("function"==typeof r&&(r=new G(r)),r instanceof L){const t=st.exec(n);null!==t&&(r.targetName=t[2])}r instanceof O?(o+=r.createPlaceholder(i.length),i.push(r)):o+=r}return o+=t[t.length-1],new ot(o,i)}class rt{constructor(){this.targets=new WeakSet,this.behaviors=null}addStylesTo(t){this.targets.add(t)}removeStylesFrom(t){this.targets.delete(t)}isAttachedTo(t){return this.targets.has(t)}withBehaviors(...t){return this.behaviors=null===this.behaviors?t:this.behaviors.concat(t),this}}function at(t){return t.map(t=>t instanceof rt?at(t.styles):[t]).reduce((t,e)=>t.concat(e),[])}function lt(t){return t.map(t=>t instanceof rt?t.behaviors:null).reduce((t,e)=>null===e?t:(null===t&&(t=[]),t.concat(e)),null)}rt.create=(()=>{if(d.supportsAdoptedStyleSheets){const t=new Map;return e=>new ct(e,t)}return t=>new dt(t)})();class ct extends rt{constructor(t,e){super(),this.styles=t,this.styleSheetCache=e,this._styleSheets=void 0,this.behaviors=lt(t)}get styleSheets(){if(void 0===this._styleSheets){const t=this.styles,e=this.styleSheetCache;this._styleSheets=at(t).map(t=>{if(t instanceof CSSStyleSheet)return t;let i=e.get(t);return void 0===i&&(i=new CSSStyleSheet,i.replaceSync(t),e.set(t,i)),i})}return this._styleSheets}addStylesTo(t){t.adoptedStyleSheets=[...t.adoptedStyleSheets,...this.styleSheets],super.addStylesTo(t)}removeStylesFrom(t){const e=this.styleSheets;t.adoptedStyleSheets=t.adoptedStyleSheets.filter(t=>-1===e.indexOf(t)),super.removeStylesFrom(t)}}let ht=0;class dt extends rt{constructor(t){super(),this.styles=t,this.behaviors=null,this.behaviors=lt(t),this.styleSheets=at(t),this.styleClass="fast-style-class-"+ ++ht}addStylesTo(t){const e=this.styleSheets,i=this.styleClass;t=this.normalizeTarget(t);for(let o=0;o<e.length;o++){const s=document.createElement("style");s.innerHTML=e[o],s.className=i,t.append(s)}super.addStylesTo(t)}removeStylesFrom(t){const e=(t=this.normalizeTarget(t)).querySelectorAll("."+this.styleClass);for(let i=0,o=e.length;i<o;++i)t.removeChild(e[i]);super.removeStylesFrom(t)}isAttachedTo(t){return super.isAttachedTo(this.normalizeTarget(t))}normalizeTarget(t){return t===document?document.body:t}}const ut={toView:t=>t?"true":"false",fromView:t=>null!=t&&"false"!==t&&!1!==t&&0!==t},pt={toView(t){if(null==t)return null;const e=1*t;return isNaN(e)?null:e.toString()},fromView(t){if(null==t)return null;const e=1*t;return isNaN(e)?null:e}};class gt{constructor(t,e,i=e.toLowerCase(),o="reflect",s){this.guards=new Set,this.Owner=t,this.name=e,this.attribute=i,this.mode=o,this.converter=s,this.fieldName="_"+e,this.callbackName=e+"Changed",this.hasCallback=this.callbackName in t.prototype,"boolean"===o&&void 0===s&&(this.converter=ut)}setValue(t,e){const i=t[this.fieldName],o=this.converter;void 0!==o&&(e=o.fromView(e)),i!==e&&(t[this.fieldName]=e,this.tryReflectToAttribute(t),this.hasCallback&&t[this.callbackName](i,e),t.$fastController.notify(this.name))}getValue(t){return C.track(t,this.name),t[this.fieldName]}onAttributeChangedCallback(t,e){this.guards.has(t)||(this.guards.add(t),this.setValue(t,e),this.guards.delete(t))}tryReflectToAttribute(t){const e=this.mode,i=this.guards;i.has(t)||"fromView"===e||d.queueUpdate(()=>{i.add(t);const o=t[this.fieldName];switch(e){case"reflect":const e=this.converter;d.setAttribute(t,this.attribute,void 0!==e?e.toView(o):o);break;case"boolean":d.setBooleanAttribute(t,this.attribute,o)}i.delete(t)})}static collect(t,...e){const i=[];e.push(t.attributes);for(let o=0,s=e.length;o<s;++o){const s=e[o];if(void 0!==s)for(let e=0,o=s.length;e<o;++e){const o=s[e];"string"==typeof o?i.push(new gt(t,o)):i.push(new gt(t,o.property,o.attribute,o.mode,o.converter))}}return i}}function ft(t,e){let i;function o(t,e){arguments.length>1&&(i.property=e);const o=t.constructor.attributes||(t.constructor.attributes=[]);o.push(i)}return arguments.length>1?(i={},void o(t,e)):(i=void 0===t?{}:t,o)}const mt={mode:"open"},bt={},vt=new Map;class yt{constructor(t,e=t.definition){"string"==typeof e&&(e={name:e}),this.type=t,this.name=e.name,this.template=e.template;const i=gt.collect(t,e.attributes),o=new Array(i.length),s={},n={};for(let t=0,e=i.length;t<e;++t){const e=i[t];o[t]=e.attribute,s[e.name]=e,n[e.attribute]=e}this.attributes=i,this.observedAttributes=o,this.propertyLookup=s,this.attributeLookup=n,this.shadowOptions=void 0===e.shadowOptions?mt:null===e.shadowOptions?void 0:Object.assign(Object.assign({},mt),e.shadowOptions),this.elementOptions=void 0===e.elementOptions?bt:Object.assign(Object.assign({},bt),e.elementOptions),this.styles=void 0===e.styles?void 0:Array.isArray(e.styles)?rt.create(e.styles):e.styles instanceof rt?e.styles:rt.create([e.styles])}define(t=customElements){const e=this.type;if(!this.isDefined){const t=this.attributes,i=e.prototype;for(let e=0,o=t.length;e<o;++e)C.defineProperty(i,t[e]);Reflect.defineProperty(e,"observedAttributes",{value:this.observedAttributes,enumerable:!0}),vt.set(e,this),this.isDefined=!0}return t.get(this.name)||t.define(this.name,e,this.elementOptions),this}static forType(t){return vt.get(t)}}const xt=new WeakMap,$t={bubbles:!0,composed:!0,cancelable:!0};function wt(t){return t.shadowRoot||xt.get(t)||null}class kt extends b{constructor(t,e){super(t),this.boundObservables=null,this.behaviors=null,this.needsInitialization=!0,this._template=null,this._styles=null,this._isConnected=!1,this.$fastController=this,this.view=null,this.element=t,this.definition=e;const i=e.shadowOptions;if(void 0!==i){const e=t.attachShadow(i);"closed"===i.mode&&xt.set(t,e)}const o=C.getAccessors(t);if(o.length>0){const e=this.boundObservables=Object.create(null);for(let i=0,s=o.length;i<s;++i){const s=o[i].name,n=t[s];void 0!==n&&(delete t[s],e[s]=n)}}}get isConnected(){return C.track(this,"isConnected"),this._isConnected}setIsConnected(t){this._isConnected=t,C.notify(this,"isConnected")}get template(){return this._template}set template(t){this._template!==t&&(this._template=t,this.needsInitialization||this.renderTemplate(t))}get styles(){return this._styles}set styles(t){this._styles!==t&&(null!==this._styles&&this.removeStyles(this._styles),this._styles=t,this.needsInitialization||null===t||this.addStyles(t))}addStyles(t){const e=wt(this.element)||this.element.getRootNode();if(t instanceof HTMLStyleElement)e.append(t);else if(!t.isAttachedTo(e)){const i=t.behaviors;t.addStylesTo(e),null!==i&&this.addBehaviors(i)}}removeStyles(t){const e=wt(this.element)||this.element.getRootNode();if(t instanceof HTMLStyleElement)e.removeChild(t);else if(t.isAttachedTo(e)){const i=t.behaviors;t.removeStylesFrom(e),null!==i&&this.removeBehaviors(i)}}addBehaviors(t){const e=this.behaviors||(this.behaviors=new Map),i=t.length,o=[];for(let s=0;s<i;++s){const i=t[s];e.has(i)?e.set(i,e.get(i)+1):(e.set(i,1),o.push(i))}if(this._isConnected){const t=this.element;for(let e=0;e<o.length;++e)o[e].bind(t,R)}}removeBehaviors(t,e=!1){const i=this.behaviors;if(null===i)return;const o=t.length,s=[];for(let n=0;n<o;++n){const o=t[n];if(i.has(o)){const t=i.get(o)-1;0===t||e?i.delete(o)&&s.push(o):i.set(o,t)}}if(this._isConnected){const t=this.element;for(let e=0;e<s.length;++e)s[e].unbind(t)}}onConnectedCallback(){if(this._isConnected)return;const t=this.element;this.needsInitialization?this.finishInitialization():null!==this.view&&this.view.bind(t,R);const e=this.behaviors;if(null!==e)for(const[i]of e)i.bind(t,R);this.setIsConnected(!0)}onDisconnectedCallback(){if(!this._isConnected)return;this.setIsConnected(!1);const t=this.view;null!==t&&t.unbind();const e=this.behaviors;if(null!==e){const t=this.element;for(const[i]of e)i.unbind(t)}}onAttributeChangedCallback(t,e,i){const o=this.definition.attributeLookup[t];void 0!==o&&o.onAttributeChangedCallback(this.element,i)}emit(t,e,i){return!!this._isConnected&&this.element.dispatchEvent(new CustomEvent(t,Object.assign(Object.assign({detail:e},$t),i)))}finishInitialization(){const t=this.element,e=this.boundObservables;if(null!==e){const i=Object.keys(e);for(let o=0,s=i.length;o<s;++o){const s=i[o];t[s]=e[s]}this.boundObservables=null}const i=this.definition;null===this._template&&(this.element.resolveTemplate?this._template=this.element.resolveTemplate():i.template&&(this._template=i.template||null)),null!==this._template&&this.renderTemplate(this._template),null===this._styles&&(this.element.resolveStyles?this._styles=this.element.resolveStyles():i.styles&&(this._styles=i.styles||null)),null!==this._styles&&this.addStyles(this._styles),this.needsInitialization=!1}renderTemplate(t){const e=this.element,i=wt(e)||e;null!==this.view?(this.view.dispose(),this.view=null):this.needsInitialization||d.removeChildNodes(i),t&&(this.view=t.render(e,i,e))}static forCustomElement(t){const e=t.$fastController;if(void 0!==e)return e;const i=yt.forType(t.constructor);if(void 0===i)throw new Error("Missing FASTElement definition.");return t.$fastController=new kt(t,i)}}function Ct(t){return class extends t{constructor(){super(),kt.forCustomElement(this)}$emit(t,e,i){return this.$fastController.emit(t,e,i)}connectedCallback(){this.$fastController.onConnectedCallback()}disconnectedCallback(){this.$fastController.onDisconnectedCallback()}attributeChangedCallback(t,e,i){this.$fastController.onAttributeChangedCallback(t,e,i)}}}const Ft=Object.assign(Ct(HTMLElement),{from:t=>Ct(t),define:(t,e)=>new yt(t,e).define().type});class It{createCSS(){return""}createBehavior(){}}function Tt(t,e){const i=[];let o="";const s=[];for(let n=0,r=t.length-1;n<r;++n){o+=t[n];let r=e[n];if(r instanceof It){const t=r.createBehavior();r=r.createCSS(),t&&s.push(t)}r instanceof rt||r instanceof CSSStyleSheet?(""!==o.trim()&&(i.push(o),o=""),i.push(r)):o+=r}return o+=t[t.length-1],""!==o.trim()&&i.push(o),{styles:i,behaviors:s}}function Dt(t,...e){const{styles:i,behaviors:o}=Tt(t,e),s=rt.create(i);return o.length&&s.withBehaviors(...o),s}class Vt extends It{constructor(t,e){super(),this.behaviors=e,this.css="";const i=t.reduce((t,e)=>("string"==typeof e?this.css+=e:t.push(e),t),[]);i.length&&(this.styles=rt.create(i))}createBehavior(){return this}createCSS(){return this.css}bind(t){this.styles&&t.$fastController.addStyles(this.styles),this.behaviors.length&&t.$fastController.addBehaviors(this.behaviors)}unbind(t){this.styles&&t.$fastController.removeStyles(this.styles),this.behaviors.length&&t.$fastController.removeBehaviors(this.behaviors)}}function St(t,...e){const{styles:i,behaviors:o}=Tt(t,e);return new Vt(i,o)}function Rt(t,e,i){return{index:t,removed:e,addedCount:i}}function Et(t,i,o,s,n,r){let a=0,l=0;const c=Math.min(o-i,r-n);if(0===i&&0===n&&(a=function(t,e,i){for(let o=0;o<i;++o)if(t[o]!==e[o])return o;return i}(t,s,c)),o===t.length&&r===s.length&&(l=function(t,e,i){let o=t.length,s=e.length,n=0;for(;n<i&&t[--o]===e[--s];)n++;return n}(t,s,c-a)),n+=a,r-=l,(o-=l)-(i+=a)==0&&r-n==0)return e;if(i===o){const t=Rt(i,[],0);for(;n<r;)t.removed.push(s[n++]);return[t]}if(n===r)return[Rt(i,[],o-i)];const h=function(t){let e=t.length-1,i=t[0].length-1,o=t[e][i];const s=[];for(;e>0||i>0;){if(0===e){s.push(2),i--;continue}if(0===i){s.push(3),e--;continue}const n=t[e-1][i-1],r=t[e-1][i],a=t[e][i-1];let l;l=r<a?r<n?r:n:a<n?a:n,l===n?(n===o?s.push(0):(s.push(1),o=n),e--,i--):l===r?(s.push(3),e--,o=r):(s.push(2),i--,o=a)}return s.reverse(),s}(function(t,e,i,o,s,n){const r=n-s+1,a=i-e+1,l=new Array(r);let c,h;for(let t=0;t<r;++t)l[t]=new Array(a),l[t][0]=t;for(let t=0;t<a;++t)l[0][t]=t;for(let i=1;i<r;++i)for(let n=1;n<a;++n)t[e+n-1]===o[s+i-1]?l[i][n]=l[i-1][n-1]:(c=l[i-1][n]+1,h=l[i][n-1]+1,l[i][n]=c<h?c:h);return l}(t,i,o,s,n,r)),d=[];let u=void 0,p=i,g=n;for(let t=0;t<h.length;++t)switch(h[t]){case 0:void 0!==u&&(d.push(u),u=void 0),p++,g++;break;case 1:void 0===u&&(u=Rt(p,[],0)),u.addedCount++,p++,u.removed.push(s[g]),g++;break;case 2:void 0===u&&(u=Rt(p,[],0)),u.addedCount++,p++;break;case 3:void 0===u&&(u=Rt(p,[],0)),u.removed.push(s[g]),g++}return void 0!==u&&d.push(u),d}const Ot=Array.prototype.push;function Lt(t,e,i,o){const s=Rt(e,i,o);let n=!1,r=0;for(let e=0;e<t.length;e++){const i=t[e];if(i.index+=r,n)continue;const o=(a=s.index,l=s.index+s.removed.length,c=i.index,h=i.index+i.addedCount,l<c||h<a?-1:l===c||h===a?0:a<c?l<h?l-c:h-c:h<l?h-a:l-a);if(o>=0){t.splice(e,1),e--,r-=i.addedCount-i.removed.length,s.addedCount+=i.addedCount-o;const a=s.removed.length+i.removed.length-o;if(s.addedCount||a){let t=i.removed;if(s.index<i.index){const e=s.removed.slice(0,i.index-s.index);Ot.apply(e,t),t=e}if(s.index+s.removed.length>i.index+i.addedCount){const e=s.removed.slice(i.index+i.addedCount-s.index);Ot.apply(t,e)}s.removed=t,i.index<s.index&&(s.index=i.index)}else n=!0}else if(s.index<i.index){n=!0,t.splice(e,0,s),e++;const o=s.addedCount-s.removed.length;i.index+=o,r+=o}}var a,l,c,h;n||t.push(s)}function At(t,e){let i=[];const o=function(t){const e=[];for(let i=0,o=t.length;i<o;i++){const o=t[i];Lt(e,o.index,o.removed,o.addedCount)}return e}(e);for(let e=0,s=o.length;e<s;++e){const s=o[e];1!==s.addedCount||1!==s.removed.length?i=i.concat(Et(t,s.index,s.index+s.addedCount,s.removed,0,s.removed.length)):s.removed[0]!==t[s.index]&&i.push(s)}return i}let zt=!1;function Ht(t,e){let i=t.index;const o=e.length;return i>o?i=o-t.addedCount:i<0&&(i=o+t.removed.length+i-t.addedCount),i<0&&(i=0),t.index=i,t}class Pt extends m{constructor(t){super(t),this.oldCollection=void 0,this.splices=void 0,this.needsQueue=!0,this.call=this.flush,t.$fastController=this}addSplice(t){void 0===this.splices?this.splices=[t]:this.splices.push(t),this.needsQueue&&(this.needsQueue=!1,d.queueUpdate(this))}reset(t){this.oldCollection=t,this.needsQueue&&(this.needsQueue=!1,d.queueUpdate(this))}flush(){const t=this.splices,e=this.oldCollection;if(void 0===t&&void 0===e)return;this.needsQueue=!0,this.splices=void 0,this.oldCollection=void 0;const i=void 0===e?At(this.source,t):Et(this.source,0,this.source.length,e,0,e.length);this.notify(i)}}class Mt{constructor(t,e){this.target=t,this.propertyName=e}bind(t){t[this.propertyName]=this.target}unbind(){}}function Bt(t){return new A("fast-ref",Mt,t)}function Nt(t,e){const i="function"==typeof e?e:()=>e;return(e,o)=>t(e,o)?i(e,o):null}const jt=Object.freeze({positioning:!1,recycle:!0});function Ut(t,e,i,o){t.bind(e[i],o)}function qt(t,e,i,o){const s=Object.create(o);s.index=i,s.length=e.length,t.bind(e[i],s)}class _t{constructor(t,e,i,o,s,n){this.location=t,this.itemsBinding=e,this.templateBinding=o,this.options=n,this.source=null,this.views=[],this.items=null,this.itemsObserver=null,this.originalContext=void 0,this.childContext=void 0,this.bindView=Ut,this.itemsBindingObserver=C.binding(e,this,i),this.templateBindingObserver=C.binding(o,this,s),n.positioning&&(this.bindView=qt)}bind(t,e){this.source=t,this.originalContext=e,this.childContext=Object.create(e),this.childContext.parent=t,this.childContext.parentContext=this.originalContext,this.items=this.itemsBindingObserver.observe(t,this.originalContext),this.template=this.templateBindingObserver.observe(t,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(t,e){t===this.itemsBinding?(this.items=this.itemsBindingObserver.observe(this.source,this.originalContext),this.observeItems(),this.refreshAllViews()):t===this.templateBinding?(this.template=this.templateBindingObserver.observe(this.source,this.originalContext),this.refreshAllViews(!0)):this.updateViews(e)}observeItems(t=!1){if(!this.items)return void(this.items=e);const i=this.itemsObserver,o=this.itemsObserver=C.getNotifier(this.items),s=i!==o;s&&null!==i&&i.unsubscribe(this),(s||t)&&o.subscribe(this)}updateViews(t){const e=this.childContext,i=this.views,o=[],s=this.bindView;let n=0;for(let e=0,s=t.length;e<s;++e){const s=t[e],r=s.removed;o.push(...i.splice(s.index+n,r.length)),n-=s.addedCount}const r=this.items,a=this.template;for(let n=0,l=t.length;n<l;++n){const l=t[n];let c=l.index;const h=c+l.addedCount;for(;c<h;++c){const t=i[c],n=t?t.firstChild:this.location,l=this.options.recycle&&o.length>0?o.shift():a.create();i.splice(c,0,l),s(l,r,c,e),l.insertBefore(n)}}for(let t=0,e=o.length;t<e;++t)o[t].dispose();if(this.options.positioning)for(let t=0,e=i.length;t<e;++t){const o=i[t].context;o.length=e,o.index=t}}refreshAllViews(t=!1){const e=this.items,i=this.childContext,o=this.template,s=this.location,n=this.bindView;let r=e.length,a=this.views,l=a.length;if((0===r||t)&&(it.disposeContiguousBatch(a),l=0),0===l){this.views=a=new Array(r);for(let t=0;t<r;++t){const r=o.create();n(r,e,t,i),a[t]=r,r.insertBefore(s)}}else{let t=0;for(;t<r;++t)if(t<l){n(a[t],e,t,i)}else{const r=o.create();n(r,e,t,i),a.push(r),r.insertBefore(s)}const c=a.splice(t,l-t);for(t=0,r=c.length;t<r;++t)c[t].dispose()}}unbindAllViews(){const t=this.views;for(let e=0,i=t.length;e<i;++e)t[e].unbind()}}class Gt extends O{constructor(t,e,i){super(),this.itemsBinding=t,this.templateBinding=e,this.options=i,this.createPlaceholder=d.createBlockPlaceholder,function(){if(zt)return;zt=!0,C.setArrayObserverFactory(t=>new Pt(t));const t=Array.prototype,e=t.pop,i=t.push,o=t.reverse,s=t.shift,n=t.sort,r=t.splice,a=t.unshift;t.pop=function(){const t=this.length>0,i=e.apply(this,arguments),o=this.$fastController;return void 0!==o&&t&&o.addSplice(Rt(this.length,[i],0)),i},t.push=function(){const t=i.apply(this,arguments),e=this.$fastController;return void 0!==e&&e.addSplice(Ht(Rt(this.length-arguments.length,[],arguments.length),this)),t},t.reverse=function(){let t;const e=this.$fastController;void 0!==e&&(e.flush(),t=this.slice());const i=o.apply(this,arguments);return void 0!==e&&e.reset(t),i},t.shift=function(){const t=this.length>0,e=s.apply(this,arguments),i=this.$fastController;return void 0!==i&&t&&i.addSplice(Rt(0,[e],0)),e},t.sort=function(){let t;const e=this.$fastController;void 0!==e&&(e.flush(),t=this.slice());const i=n.apply(this,arguments);return void 0!==e&&e.reset(t),i},t.splice=function(){const t=r.apply(this,arguments),e=this.$fastController;return void 0!==e&&e.addSplice(Ht(Rt(+arguments[0],t,arguments.length>2?arguments.length-2:0),this)),t},t.unshift=function(){const t=a.apply(this,arguments),e=this.$fastController;return void 0!==e&&e.addSplice(Ht(Rt(0,[],arguments.length),this)),t}}(),this.isItemsBindingVolatile=C.isVolatileBinding(t),this.isTemplateBindingVolatile=C.isVolatileBinding(e)}createBehavior(t){return new _t(t,this.itemsBinding,this.isItemsBindingVolatile,this.templateBinding,this.isTemplateBindingVolatile,this.options)}}function Wt(t,e,i=jt){return new Gt(t,"function"==typeof e?e:()=>e,i)}function Kt(t){return t?function(e,i,o){return 1===e.nodeType&&e.matches(t)}:function(t,e,i){return 1===t.nodeType}}class Xt{constructor(t,e){this.target=t,this.options=e,this.source=null}bind(t){const e=this.options.property;this.shouldUpdate=C.getAccessors(t).some(t=>t.name===e),this.source=t,this.updateTarget(this.computeNodes()),this.shouldUpdate&&this.observe()}unbind(){this.updateTarget(e),this.source=null,this.shouldUpdate&&this.disconnect()}handleEvent(){this.updateTarget(this.computeNodes())}computeNodes(){let t=this.getNodes();return void 0!==this.options.filter&&(t=t.filter(this.options.filter)),t}updateTarget(t){this.source[this.options.property]=t}}class Yt extends Xt{constructor(t,e){super(t,e)}observe(){this.target.addEventListener("slotchange",this)}disconnect(){this.target.removeEventListener("slotchange",this)}getNodes(){return this.target.assignedNodes(this.options)}}function Qt(t){return"string"==typeof t&&(t={property:t}),new A("fast-slotted",Yt,t)}class Zt extends Xt{constructor(t,e){super(t,e),this.observer=null,e.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 Jt(t){return"string"==typeof t&&(t={property:t}),new A("fast-children",Zt,t)}class te{handleStartContentChange(){this.startContainer.classList.toggle("start",this.start.assignedNodes().length>0)}handleEndContentChange(){this.endContainer.classList.toggle("end",this.end.assignedNodes().length>0)}}const ee=(t,e)=>nt`<span part="end" ${Bt("endContainer")} class=${t=>e.end?"end":void 0}><slot name="end" ${Bt("end")} @slotchange="${t=>t.handleEndContentChange()}">${e.end||""}</slot></span>`,ie=(t,e)=>nt`<span part="start" ${Bt("startContainer")} class="${t=>e.start?"start":void 0}"><slot name="start" ${Bt("start")} @slotchange="${t=>t.handleStartContentChange()}">${e.start||""}</slot></span>`,oe=nt`<span part="end" ${Bt("endContainer")}><slot name="end" ${Bt("end")} @slotchange="${t=>t.handleEndContentChange()}"></slot></span>`,se=nt`<span part="start" ${Bt("startContainer")}><slot name="start" ${Bt("start")} @slotchange="${t=>t.handleStartContentChange()}"></slot></span>`;
|
|
1
|
+
const t=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(t){return{}}}();void 0===t.trustedTypes&&(t.trustedTypes={createPolicy:(t,e)=>e});const e=Object.freeze([]),i=[],o=t.trustedTypes.createPolicy("fast-html",{createHTML:t=>t});let s=o;const n=[];function r(){if(n.length)throw n.shift()}function a(t){try{t.call()}catch(t){n.push(t),setTimeout(r,0)}}const l="fast-"+Math.random().toString(36).substring(2,8),c=l+"{",h="}"+l,d=Object.freeze({supportsAdoptedStyleSheets:Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype,setHTMLPolicy(t){if(s!==o)throw new Error("The HTML policy can only be set once.");s=t},createHTML:t=>s.createHTML(t),isMarker:t=>t&&8===t.nodeType&&t.data.startsWith(l),extractDirectiveIndexFromMarker:t=>parseInt(t.data.replace(l+":","")),createInterpolationPlaceholder:t=>`${c}${t}${h}`,createCustomAttributePlaceholder(t,e){return`${t}="${this.createInterpolationPlaceholder(e)}"`},createBlockPlaceholder:t=>`\x3c!--${l}:${t}--\x3e`,queueUpdate(t){i.length<1&&window.requestAnimationFrame(d.processUpdates),i.push(t)},processUpdates(){let t=0;for(;t<i.length;)if(a(i[t]),t++,t>1024){for(let e=0,o=i.length-t;e<o;e++)i[e]=i[e+t];i.length-=t,t=0}i.length=0},nextUpdate:()=>new Promise(t=>{d.queueUpdate(t)}),setAttribute(t,e,i){null==i?t.removeAttribute(e):t.setAttribute(e,i)},setBooleanAttribute(t,e,i){i?t.setAttribute(e,""):t.removeAttribute(e)},removeChildNodes(t){for(let e=t.firstChild;null!==e;e=t.firstChild)t.removeChild(e)},createTemplateWalker:t=>document.createTreeWalker(t,133,null,!1)});function u(t){const e=this.spillover;-1===e.indexOf(t)&&e.push(t)}function p(t){const e=this.spillover,i=e.indexOf(t);-1!==i&&e.splice(i,1)}function g(t){const e=this.spillover,i=this.source;for(let o=0,s=e.length;o<s;++o)e[o].handleChange(i,t)}function f(t){return-1!==this.spillover.indexOf(t)}class m{constructor(t,e){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.source=t,this.sub1=e}has(t){return this.sub1===t||this.sub2===t}subscribe(t){this.has(t)||(void 0!==this.sub1?void 0!==this.sub2?(this.spillover=[this.sub1,this.sub2,t],this.subscribe=u,this.unsubscribe=p,this.notify=g,this.has=f,this.sub1=void 0,this.sub2=void 0):this.sub2=t:this.sub1=t)}unsubscribe(t){this.sub1===t?this.sub1=void 0:this.sub2===t&&(this.sub2=void 0)}notify(t){const e=this.sub1,i=this.sub2,o=this.source;void 0!==e&&e.handleChange(o,t),void 0!==i&&i.handleChange(o,t)}}class b{constructor(t){this.subscribers={},this.sourceSubscribers=null,this.source=t}notify(t){var e;const i=this.subscribers[t];void 0!==i&&i.notify(t),null===(e=this.sourceSubscribers)||void 0===e||e.notify(t)}subscribe(t,e){var i;if(e){let i=this.subscribers[e];void 0===i&&(this.subscribers[e]=i=new m(this.source)),i.subscribe(t)}else this.sourceSubscribers=null!==(i=this.sourceSubscribers)&&void 0!==i?i:new m(this.source),this.sourceSubscribers.subscribe(t)}unsubscribe(t,e){var i;if(e){const i=this.subscribers[e];void 0!==i&&i.unsubscribe(t)}else null===(i=this.sourceSubscribers)||void 0===i||i.unsubscribe(t)}}const v=/(:|&&|\|\||if)/,y=new WeakMap,x=new WeakMap;let $=void 0,w=t=>{throw new Error("Must call enableArrayObservation before observing arrays.")};class k{constructor(t){this.name=t,this.field="_"+t,this.callback=t+"Changed"}getValue(t){return void 0!==$&&$.watch(t,this.name),t[this.field]}setValue(t,e){const i=this.field,o=t[i];if(o!==e){t[i]=e;const s=t[this.callback];"function"==typeof s&&s.call(t,o,e),I(t).notify(this.name)}}}const C=Object.freeze({setArrayObserverFactory(t){w=t},getNotifier(t){let e=t.$fastController||y.get(t);return void 0===e&&(Array.isArray(t)?e=w(t):y.set(t,e=new b(t))),e},track(t,e){void 0!==$&&$.watch(t,e)},trackVolatile(){void 0!==$&&($.needsRefresh=!0)},notify(t,e){I(t).notify(e)},defineProperty(t,e){"string"==typeof e&&(e=new k(e)),this.getAccessors(t).push(e),Reflect.defineProperty(t,e.name,{enumerable:!0,get:function(){return e.getValue(this)},set:function(t){e.setValue(this,t)}})},getAccessors(t){let e=x.get(t);if(void 0===e){let i=Reflect.getPrototypeOf(t);for(;void 0===e&&null!==i;)e=x.get(i),i=Reflect.getPrototypeOf(i);e=void 0===e?[]:e.slice(0),x.set(t,e)}return e},binding(t,e,i=this.isVolatileBinding(t)){return new E(t,e,i)},isVolatileBinding:t=>v.test(t.toString())}),I=C.getNotifier;C.trackVolatile;const F=d.queueUpdate;function T(t,e){C.defineProperty(t,e)}let D=null;function S(t){D=t}class V{constructor(){this.index=0,this.length=0,this.parent=null,this.parentContext=null}get event(){return D}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}}C.defineProperty(V.prototype,"index"),C.defineProperty(V.prototype,"length");const O=Object.seal(new V);class E extends m{constructor(t,e,i=!1){super(t,e),this.binding=t,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(t,e){this.needsRefresh&&null!==this.last&&this.disconnect();const i=$;$=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;const o=this.binding(t,e);return $=i,o}disconnect(){if(null!==this.last){let t=this.first;for(;void 0!==t;)t.notifier.unsubscribe(this,t.propertyName),t=t.next;this.last=null,this.needsRefresh=this.needsQueue=!0}}watch(t,e){const i=this.last,o=I(t),s=null===i?this.first:{};if(s.propertySource=t,s.propertyName=e,s.notifier=o,o.subscribe(this,e),null!==i){if(!this.needsRefresh){let e;$=void 0,e=i.propertySource[i.propertyName],$=this,t===e&&(this.needsRefresh=!0)}i.next=s}this.last=s}handleChange(){this.needsQueue&&(this.needsQueue=!1,F(this))}call(){null!==this.last&&(this.needsQueue=!0,this.notify(this))}records(){let t=this.first;return{next:()=>{const e=t;return void 0===e?{value:void 0,done:!0}:(t=t.next,{value:e,done:!1})},[Symbol.iterator]:function(){return this}}}}class R{constructor(){this.targetIndex=0}}class A extends R{constructor(){super(...arguments),this.createPlaceholder=d.createInterpolationPlaceholder}}class L extends R{constructor(t,e,i){super(),this.name=t,this.behavior=e,this.options=i}createPlaceholder(t){return d.createCustomAttributePlaceholder(this.name,t)}createBehavior(t){return new this.behavior(t,this.options)}}function z(t,e){this.source=t,this.context=e,null===this.bindingObserver&&(this.bindingObserver=C.binding(this.binding,this,this.isBindingVolatile)),this.updateTarget(this.bindingObserver.observe(t,e))}function H(t,e){this.source=t,this.context=e,this.target.addEventListener(this.targetName,this)}function P(){this.bindingObserver.disconnect(),this.source=null,this.context=null}function M(){this.bindingObserver.disconnect(),this.source=null,this.context=null;const t=this.target.$fastView;void 0!==t&&t.isComposed&&(t.unbind(),t.needsBindOnly=!0)}function B(){this.target.removeEventListener(this.targetName,this),this.source=null,this.context=null}function N(t){d.setAttribute(this.target,this.targetName,t)}function j(t){d.setBooleanAttribute(this.target,this.targetName,t)}function U(t){if(null==t&&(t=""),t.create){this.target.textContent="";let e=this.target.$fastView;void 0===e?e=t.create():this.target.$fastTemplate!==t&&(e.isComposed&&(e.remove(),e.unbind()),e=t.create()),e.isComposed?e.needsBindOnly&&(e.needsBindOnly=!1,e.bind(this.source,this.context)):(e.isComposed=!0,e.bind(this.source,this.context),e.insertBefore(this.target),this.target.$fastView=e,this.target.$fastTemplate=t)}else{const e=this.target.$fastView;void 0!==e&&e.isComposed&&(e.isComposed=!1,e.remove(),e.needsBindOnly?e.needsBindOnly=!1:e.unbind()),this.target.textContent=t}}function q(t){this.target[this.targetName]=t}function _(t){const e=this.classVersions||Object.create(null),i=this.target;let o=this.version||0;if(null!=t&&t.length){const s=t.split(/\s+/);for(let t=0,n=s.length;t<n;++t){const n=s[t];""!==n&&(e[n]=o,i.classList.add(n))}}if(this.classVersions=e,this.version=o+1,0!==o){o-=1;for(const t in e)e[t]===o&&i.classList.remove(t)}}class G extends A{constructor(t){super(),this.binding=t,this.bind=z,this.unbind=P,this.updateTarget=N,this.isBindingVolatile=C.isVolatileBinding(this.binding)}get targetName(){return this.originalTargetName}set targetName(t){if(this.originalTargetName=t,void 0!==t)switch(t[0]){case":":if(this.cleanedTargetName=t.substr(1),this.updateTarget=q,"innerHTML"===this.cleanedTargetName){const t=this.binding;this.binding=(e,i)=>d.createHTML(t(e,i))}break;case"?":this.cleanedTargetName=t.substr(1),this.updateTarget=j;break;case"@":this.cleanedTargetName=t.substr(1),this.bind=H,this.unbind=B;break;default:this.cleanedTargetName=t,"class"===t&&(this.updateTarget=_)}}targetAtContent(){this.updateTarget=U,this.unbind=M}createBehavior(t){return new W(t,this.binding,this.isBindingVolatile,this.bind,this.unbind,this.updateTarget,this.cleanedTargetName)}}class W{constructor(t,e,i,o,s,n,r){this.source=null,this.context=null,this.bindingObserver=null,this.target=t,this.binding=e,this.isBindingVolatile=i,this.bind=o,this.unbind=s,this.updateTarget=n,this.targetName=r}handleChange(){this.updateTarget(this.bindingObserver.observe(this.source,this.context))}handleEvent(t){S(t);const e=this.binding(this.source,this.context);S(null),!0!==e&&t.preventDefault()}}let K=null;class X{addFactory(t){t.targetIndex=this.targetIndex,this.behaviorFactories.push(t)}captureContentBinding(t){t.targetAtContent(),this.addFactory(t)}reset(){this.behaviorFactories=[],this.targetIndex=-1}release(){K=this}static borrow(t){const e=K||new X;return e.directives=t,e.reset(),K=null,e}}function Y(t){if(1===t.length)return t[0];let e;const i=t.length,o=t.map(t=>"string"==typeof t?()=>t:(e=t.targetName||e,t.binding)),s=new G((t,e)=>{let s="";for(let n=0;n<i;++n)s+=o[n](t,e);return s});return s.targetName=e,s}const Q=h.length;function Z(t,e){const i=e.split(c);if(1===i.length)return null;const o=[];for(let e=0,s=i.length;e<s;++e){const s=i[e],n=s.indexOf(h);let r;if(-1===n)r=s;else{const e=parseInt(s.substring(0,n));o.push(t.directives[e]),r=s.substring(n+Q)}""!==r&&o.push(r)}return o}function J(t,e,i=!1){const o=e.attributes;for(let s=0,n=o.length;s<n;++s){const r=o[s],a=r.value,l=Z(t,a);let c=null;null===l?i&&(c=new G(()=>a),c.targetName=r.name):c=Y(l),null!==c&&(e.removeAttributeNode(r),s--,n--,t.addFactory(c))}}function tt(t,e,i){const o=Z(t,e.textContent);if(null!==o){let s=e;for(let n=0,r=o.length;n<r;++n){const r=o[n],a=0===n?e:s.parentNode.insertBefore(document.createTextNode(""),s.nextSibling);"string"==typeof r?a.textContent=r:(a.textContent=" ",t.captureContentBinding(r)),s=a,t.targetIndex++,a!==e&&i.nextNode()}t.targetIndex--}}const et=document.createRange();class it{constructor(t,e){this.fragment=t,this.behaviors=e,this.source=null,this.context=null,this.firstChild=t.firstChild,this.lastChild=t.lastChild}appendTo(t){t.appendChild(this.fragment)}insertBefore(t){if(this.fragment.hasChildNodes())t.parentNode.insertBefore(this.fragment,t);else{const e=t.parentNode,i=this.lastChild;let o,s=this.firstChild;for(;s!==i;)o=s.nextSibling,e.insertBefore(s,t),s=o;e.insertBefore(i,t)}}remove(){const t=this.fragment,e=this.lastChild;let i,o=this.firstChild;for(;o!==e;)i=o.nextSibling,t.appendChild(o),o=i;t.appendChild(e)}dispose(){const t=this.firstChild.parentNode,e=this.lastChild;let i,o=this.firstChild;for(;o!==e;)i=o.nextSibling,t.removeChild(o),o=i;t.removeChild(e);const s=this.behaviors,n=this.source;for(let t=0,e=s.length;t<e;++t)s[t].unbind(n)}bind(t,e){const i=this.behaviors;if(this.source!==t)if(null!==this.source){const o=this.source;this.source=t,this.context=e;for(let s=0,n=i.length;s<n;++s){const n=i[s];n.unbind(o),n.bind(t,e)}}else{this.source=t,this.context=e;for(let o=0,s=i.length;o<s;++o)i[o].bind(t,e)}}unbind(){if(null===this.source)return;const t=this.behaviors,e=this.source;for(let i=0,o=t.length;i<o;++i)t[i].unbind(e);this.source=null}static disposeContiguousBatch(t){if(0!==t.length){et.setStartBefore(t[0].firstChild),et.setEndAfter(t[t.length-1].lastChild),et.deleteContents();for(let e=0,i=t.length;e<i;++e){const i=t[e],o=i.behaviors,s=i.source;for(let t=0,e=o.length;t<e;++t)o[t].unbind(s)}}}}class ot{constructor(t,e){this.behaviorCount=0,this.hasHostBehaviors=!1,this.fragment=null,this.targetOffset=0,this.viewBehaviorFactories=null,this.hostBehaviorFactories=null,this.html=t,this.directives=e}create(t){if(null===this.fragment){let t;const e=this.html;if("string"==typeof e){t=document.createElement("template"),t.innerHTML=d.createHTML(e);const i=t.content.firstElementChild;null!==i&&"TEMPLATE"===i.tagName&&(t=i)}else t=e;const i=function(t,e){const i=t.content;document.adoptNode(i);const o=X.borrow(e);J(o,t,!0);const s=o.behaviorFactories;o.reset();const n=d.createTemplateWalker(i);let r;for(;r=n.nextNode();)switch(o.targetIndex++,r.nodeType){case 1:J(o,r);break;case 3:tt(o,r,n);break;case 8:d.isMarker(r)&&o.addFactory(e[d.extractDirectiveIndexFromMarker(r)])}let a=0;(d.isMarker(i.firstChild)||1===i.childNodes.length&&e.length)&&(i.insertBefore(document.createComment(""),i.firstChild),a=-1);const l=o.behaviorFactories;return o.release(),{fragment:i,viewBehaviorFactories:l,hostBehaviorFactories:s,targetOffset:a}}(t,this.directives);this.fragment=i.fragment,this.viewBehaviorFactories=i.viewBehaviorFactories,this.hostBehaviorFactories=i.hostBehaviorFactories,this.targetOffset=i.targetOffset,this.behaviorCount=this.viewBehaviorFactories.length+this.hostBehaviorFactories.length,this.hasHostBehaviors=this.hostBehaviorFactories.length>0}const e=this.fragment.cloneNode(!0),i=this.viewBehaviorFactories,o=new Array(this.behaviorCount),s=d.createTemplateWalker(e);let n=0,r=this.targetOffset,a=s.nextNode();for(let t=i.length;n<t;++n){const t=i[n],e=t.targetIndex;for(;null!==a;){if(r===e){o[n]=t.createBehavior(a);break}a=s.nextNode(),r++}}if(this.hasHostBehaviors){const e=this.hostBehaviorFactories;for(let i=0,s=e.length;i<s;++i,++n)o[n]=e[i].createBehavior(t)}return new it(e,o)}render(t,e,i){"string"==typeof e&&(e=document.getElementById(e)),void 0===i&&(i=e);const o=this.create(i);return o.bind(t,O),o.appendTo(e),o}}const st=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;function nt(t,...e){const i=[];let o="";for(let s=0,n=t.length-1;s<n;++s){const n=t[s];let r=e[s];if(o+=n,r instanceof ot){const t=r;r=()=>t}if("function"==typeof r&&(r=new G(r)),r instanceof A){const t=st.exec(n);null!==t&&(r.targetName=t[2])}r instanceof R?(o+=r.createPlaceholder(i.length),i.push(r)):o+=r}return o+=t[t.length-1],new ot(o,i)}class rt{constructor(){this.targets=new WeakSet,this.behaviors=null}addStylesTo(t){this.targets.add(t)}removeStylesFrom(t){this.targets.delete(t)}isAttachedTo(t){return this.targets.has(t)}withBehaviors(...t){return this.behaviors=null===this.behaviors?t:this.behaviors.concat(t),this}}function at(t){return t.map(t=>t instanceof rt?at(t.styles):[t]).reduce((t,e)=>t.concat(e),[])}function lt(t){return t.map(t=>t instanceof rt?t.behaviors:null).reduce((t,e)=>null===e?t:(null===t&&(t=[]),t.concat(e)),null)}rt.create=(()=>{if(d.supportsAdoptedStyleSheets){const t=new Map;return e=>new ct(e,t)}return t=>new dt(t)})();class ct extends rt{constructor(t,e){super(),this.styles=t,this.styleSheetCache=e,this._styleSheets=void 0,this.behaviors=lt(t)}get styleSheets(){if(void 0===this._styleSheets){const t=this.styles,e=this.styleSheetCache;this._styleSheets=at(t).map(t=>{if(t instanceof CSSStyleSheet)return t;let i=e.get(t);return void 0===i&&(i=new CSSStyleSheet,i.replaceSync(t),e.set(t,i)),i})}return this._styleSheets}addStylesTo(t){t.adoptedStyleSheets=[...t.adoptedStyleSheets,...this.styleSheets],super.addStylesTo(t)}removeStylesFrom(t){const e=this.styleSheets;t.adoptedStyleSheets=t.adoptedStyleSheets.filter(t=>-1===e.indexOf(t)),super.removeStylesFrom(t)}}let ht=0;class dt extends rt{constructor(t){super(),this.styles=t,this.behaviors=null,this.behaviors=lt(t),this.styleSheets=at(t),this.styleClass="fast-style-class-"+ ++ht}addStylesTo(t){const e=this.styleSheets,i=this.styleClass;t=this.normalizeTarget(t);for(let o=0;o<e.length;o++){const s=document.createElement("style");s.innerHTML=e[o],s.className=i,t.append(s)}super.addStylesTo(t)}removeStylesFrom(t){const e=(t=this.normalizeTarget(t)).querySelectorAll("."+this.styleClass);for(let i=0,o=e.length;i<o;++i)t.removeChild(e[i]);super.removeStylesFrom(t)}isAttachedTo(t){return super.isAttachedTo(this.normalizeTarget(t))}normalizeTarget(t){return t===document?document.body:t}}const ut={toView:t=>t?"true":"false",fromView:t=>null!=t&&"false"!==t&&!1!==t&&0!==t},pt={toView(t){if(null==t)return null;const e=1*t;return isNaN(e)?null:e.toString()},fromView(t){if(null==t)return null;const e=1*t;return isNaN(e)?null:e}};class gt{constructor(t,e,i=e.toLowerCase(),o="reflect",s){this.guards=new Set,this.Owner=t,this.name=e,this.attribute=i,this.mode=o,this.converter=s,this.fieldName="_"+e,this.callbackName=e+"Changed",this.hasCallback=this.callbackName in t.prototype,"boolean"===o&&void 0===s&&(this.converter=ut)}setValue(t,e){const i=t[this.fieldName],o=this.converter;void 0!==o&&(e=o.fromView(e)),i!==e&&(t[this.fieldName]=e,this.tryReflectToAttribute(t),this.hasCallback&&t[this.callbackName](i,e),t.$fastController.notify(this.name))}getValue(t){return C.track(t,this.name),t[this.fieldName]}onAttributeChangedCallback(t,e){this.guards.has(t)||(this.guards.add(t),this.setValue(t,e),this.guards.delete(t))}tryReflectToAttribute(t){const e=this.mode,i=this.guards;i.has(t)||"fromView"===e||d.queueUpdate(()=>{i.add(t);const o=t[this.fieldName];switch(e){case"reflect":const e=this.converter;d.setAttribute(t,this.attribute,void 0!==e?e.toView(o):o);break;case"boolean":d.setBooleanAttribute(t,this.attribute,o)}i.delete(t)})}static collect(t,...e){const i=[];e.push(t.attributes);for(let o=0,s=e.length;o<s;++o){const s=e[o];if(void 0!==s)for(let e=0,o=s.length;e<o;++e){const o=s[e];"string"==typeof o?i.push(new gt(t,o)):i.push(new gt(t,o.property,o.attribute,o.mode,o.converter))}}return i}}function ft(t,e){let i;function o(t,e){arguments.length>1&&(i.property=e);const o=t.constructor.attributes||(t.constructor.attributes=[]);o.push(i)}return arguments.length>1?(i={},void o(t,e)):(i=void 0===t?{}:t,o)}const mt={mode:"open"},bt={},vt=new Map;class yt{constructor(t,e=t.definition){"string"==typeof e&&(e={name:e}),this.type=t,this.name=e.name,this.template=e.template;const i=gt.collect(t,e.attributes),o=new Array(i.length),s={},n={};for(let t=0,e=i.length;t<e;++t){const e=i[t];o[t]=e.attribute,s[e.name]=e,n[e.attribute]=e}this.attributes=i,this.observedAttributes=o,this.propertyLookup=s,this.attributeLookup=n,this.shadowOptions=void 0===e.shadowOptions?mt:null===e.shadowOptions?void 0:Object.assign(Object.assign({},mt),e.shadowOptions),this.elementOptions=void 0===e.elementOptions?bt:Object.assign(Object.assign({},bt),e.elementOptions),this.styles=void 0===e.styles?void 0:Array.isArray(e.styles)?rt.create(e.styles):e.styles instanceof rt?e.styles:rt.create([e.styles])}define(t=customElements){const e=this.type;if(!this.isDefined){const t=this.attributes,i=e.prototype;for(let e=0,o=t.length;e<o;++e)C.defineProperty(i,t[e]);Reflect.defineProperty(e,"observedAttributes",{value:this.observedAttributes,enumerable:!0}),vt.set(e,this),this.isDefined=!0}return t.get(this.name)||t.define(this.name,e,this.elementOptions),this}static forType(t){return vt.get(t)}}const xt=new WeakMap,$t={bubbles:!0,composed:!0,cancelable:!0};function wt(t){return t.shadowRoot||xt.get(t)||null}class kt extends b{constructor(t,e){super(t),this.boundObservables=null,this.behaviors=null,this.needsInitialization=!0,this._template=null,this._styles=null,this._isConnected=!1,this.$fastController=this,this.view=null,this.element=t,this.definition=e;const i=e.shadowOptions;if(void 0!==i){const e=t.attachShadow(i);"closed"===i.mode&&xt.set(t,e)}const o=C.getAccessors(t);if(o.length>0){const e=this.boundObservables=Object.create(null);for(let i=0,s=o.length;i<s;++i){const s=o[i].name,n=t[s];void 0!==n&&(delete t[s],e[s]=n)}}}get isConnected(){return C.track(this,"isConnected"),this._isConnected}setIsConnected(t){this._isConnected=t,C.notify(this,"isConnected")}get template(){return this._template}set template(t){this._template!==t&&(this._template=t,this.needsInitialization||this.renderTemplate(t))}get styles(){return this._styles}set styles(t){this._styles!==t&&(null!==this._styles&&this.removeStyles(this._styles),this._styles=t,this.needsInitialization||null===t||this.addStyles(t))}addStyles(t){const e=wt(this.element)||this.element.getRootNode();if(t instanceof HTMLStyleElement)e.append(t);else if(!t.isAttachedTo(e)){const i=t.behaviors;t.addStylesTo(e),null!==i&&this.addBehaviors(i)}}removeStyles(t){const e=wt(this.element)||this.element.getRootNode();if(t instanceof HTMLStyleElement)e.removeChild(t);else if(t.isAttachedTo(e)){const i=t.behaviors;t.removeStylesFrom(e),null!==i&&this.removeBehaviors(i)}}addBehaviors(t){const e=this.behaviors||(this.behaviors=new Map),i=t.length,o=[];for(let s=0;s<i;++s){const i=t[s];e.has(i)?e.set(i,e.get(i)+1):(e.set(i,1),o.push(i))}if(this._isConnected){const t=this.element;for(let e=0;e<o.length;++e)o[e].bind(t,O)}}removeBehaviors(t,e=!1){const i=this.behaviors;if(null===i)return;const o=t.length,s=[];for(let n=0;n<o;++n){const o=t[n];if(i.has(o)){const t=i.get(o)-1;0===t||e?i.delete(o)&&s.push(o):i.set(o,t)}}if(this._isConnected){const t=this.element;for(let e=0;e<s.length;++e)s[e].unbind(t)}}onConnectedCallback(){if(this._isConnected)return;const t=this.element;this.needsInitialization?this.finishInitialization():null!==this.view&&this.view.bind(t,O);const e=this.behaviors;if(null!==e)for(const[i]of e)i.bind(t,O);this.setIsConnected(!0)}onDisconnectedCallback(){if(!this._isConnected)return;this.setIsConnected(!1);const t=this.view;null!==t&&t.unbind();const e=this.behaviors;if(null!==e){const t=this.element;for(const[i]of e)i.unbind(t)}}onAttributeChangedCallback(t,e,i){const o=this.definition.attributeLookup[t];void 0!==o&&o.onAttributeChangedCallback(this.element,i)}emit(t,e,i){return!!this._isConnected&&this.element.dispatchEvent(new CustomEvent(t,Object.assign(Object.assign({detail:e},$t),i)))}finishInitialization(){const t=this.element,e=this.boundObservables;if(null!==e){const i=Object.keys(e);for(let o=0,s=i.length;o<s;++o){const s=i[o];t[s]=e[s]}this.boundObservables=null}const i=this.definition;null===this._template&&(this.element.resolveTemplate?this._template=this.element.resolveTemplate():i.template&&(this._template=i.template||null)),null!==this._template&&this.renderTemplate(this._template),null===this._styles&&(this.element.resolveStyles?this._styles=this.element.resolveStyles():i.styles&&(this._styles=i.styles||null)),null!==this._styles&&this.addStyles(this._styles),this.needsInitialization=!1}renderTemplate(t){const e=this.element,i=wt(e)||e;null!==this.view?(this.view.dispose(),this.view=null):this.needsInitialization||d.removeChildNodes(i),t&&(this.view=t.render(e,i,e))}static forCustomElement(t){const e=t.$fastController;if(void 0!==e)return e;const i=yt.forType(t.constructor);if(void 0===i)throw new Error("Missing FASTElement definition.");return t.$fastController=new kt(t,i)}}function Ct(t){return class extends t{constructor(){super(),kt.forCustomElement(this)}$emit(t,e,i){return this.$fastController.emit(t,e,i)}connectedCallback(){this.$fastController.onConnectedCallback()}disconnectedCallback(){this.$fastController.onDisconnectedCallback()}attributeChangedCallback(t,e,i){this.$fastController.onAttributeChangedCallback(t,e,i)}}}const It=Object.assign(Ct(HTMLElement),{from:t=>Ct(t),define:(t,e)=>new yt(t,e).define().type});class Ft{createCSS(){return""}createBehavior(){}}function Tt(t,e){const i=[];let o="";const s=[];for(let n=0,r=t.length-1;n<r;++n){o+=t[n];let r=e[n];if(r instanceof Ft){const t=r.createBehavior();r=r.createCSS(),t&&s.push(t)}r instanceof rt||r instanceof CSSStyleSheet?(""!==o.trim()&&(i.push(o),o=""),i.push(r)):o+=r}return o+=t[t.length-1],""!==o.trim()&&i.push(o),{styles:i,behaviors:s}}function Dt(t,...e){const{styles:i,behaviors:o}=Tt(t,e),s=rt.create(i);return o.length&&s.withBehaviors(...o),s}class St extends Ft{constructor(t,e){super(),this.behaviors=e,this.css="";const i=t.reduce((t,e)=>("string"==typeof e?this.css+=e:t.push(e),t),[]);i.length&&(this.styles=rt.create(i))}createBehavior(){return this}createCSS(){return this.css}bind(t){this.styles&&t.$fastController.addStyles(this.styles),this.behaviors.length&&t.$fastController.addBehaviors(this.behaviors)}unbind(t){this.styles&&t.$fastController.removeStyles(this.styles),this.behaviors.length&&t.$fastController.removeBehaviors(this.behaviors)}}function Vt(t,...e){const{styles:i,behaviors:o}=Tt(t,e);return new St(i,o)}function Ot(t,e,i){return{index:t,removed:e,addedCount:i}}function Et(t,i,o,s,n,r){let a=0,l=0;const c=Math.min(o-i,r-n);if(0===i&&0===n&&(a=function(t,e,i){for(let o=0;o<i;++o)if(t[o]!==e[o])return o;return i}(t,s,c)),o===t.length&&r===s.length&&(l=function(t,e,i){let o=t.length,s=e.length,n=0;for(;n<i&&t[--o]===e[--s];)n++;return n}(t,s,c-a)),n+=a,r-=l,(o-=l)-(i+=a)==0&&r-n==0)return e;if(i===o){const t=Ot(i,[],0);for(;n<r;)t.removed.push(s[n++]);return[t]}if(n===r)return[Ot(i,[],o-i)];const h=function(t){let e=t.length-1,i=t[0].length-1,o=t[e][i];const s=[];for(;e>0||i>0;){if(0===e){s.push(2),i--;continue}if(0===i){s.push(3),e--;continue}const n=t[e-1][i-1],r=t[e-1][i],a=t[e][i-1];let l;l=r<a?r<n?r:n:a<n?a:n,l===n?(n===o?s.push(0):(s.push(1),o=n),e--,i--):l===r?(s.push(3),e--,o=r):(s.push(2),i--,o=a)}return s.reverse(),s}(function(t,e,i,o,s,n){const r=n-s+1,a=i-e+1,l=new Array(r);let c,h;for(let t=0;t<r;++t)l[t]=new Array(a),l[t][0]=t;for(let t=0;t<a;++t)l[0][t]=t;for(let i=1;i<r;++i)for(let n=1;n<a;++n)t[e+n-1]===o[s+i-1]?l[i][n]=l[i-1][n-1]:(c=l[i-1][n]+1,h=l[i][n-1]+1,l[i][n]=c<h?c:h);return l}(t,i,o,s,n,r)),d=[];let u=void 0,p=i,g=n;for(let t=0;t<h.length;++t)switch(h[t]){case 0:void 0!==u&&(d.push(u),u=void 0),p++,g++;break;case 1:void 0===u&&(u=Ot(p,[],0)),u.addedCount++,p++,u.removed.push(s[g]),g++;break;case 2:void 0===u&&(u=Ot(p,[],0)),u.addedCount++,p++;break;case 3:void 0===u&&(u=Ot(p,[],0)),u.removed.push(s[g]),g++}return void 0!==u&&d.push(u),d}const Rt=Array.prototype.push;function At(t,e,i,o){const s=Ot(e,i,o);let n=!1,r=0;for(let e=0;e<t.length;e++){const i=t[e];if(i.index+=r,n)continue;const o=(a=s.index,l=s.index+s.removed.length,c=i.index,h=i.index+i.addedCount,l<c||h<a?-1:l===c||h===a?0:a<c?l<h?l-c:h-c:h<l?h-a:l-a);if(o>=0){t.splice(e,1),e--,r-=i.addedCount-i.removed.length,s.addedCount+=i.addedCount-o;const a=s.removed.length+i.removed.length-o;if(s.addedCount||a){let t=i.removed;if(s.index<i.index){const e=s.removed.slice(0,i.index-s.index);Rt.apply(e,t),t=e}if(s.index+s.removed.length>i.index+i.addedCount){const e=s.removed.slice(i.index+i.addedCount-s.index);Rt.apply(t,e)}s.removed=t,i.index<s.index&&(s.index=i.index)}else n=!0}else if(s.index<i.index){n=!0,t.splice(e,0,s),e++;const o=s.addedCount-s.removed.length;i.index+=o,r+=o}}var a,l,c,h;n||t.push(s)}function Lt(t,e){let i=[];const o=function(t){const e=[];for(let i=0,o=t.length;i<o;i++){const o=t[i];At(e,o.index,o.removed,o.addedCount)}return e}(e);for(let e=0,s=o.length;e<s;++e){const s=o[e];1!==s.addedCount||1!==s.removed.length?i=i.concat(Et(t,s.index,s.index+s.addedCount,s.removed,0,s.removed.length)):s.removed[0]!==t[s.index]&&i.push(s)}return i}let zt=!1;function Ht(t,e){let i=t.index;const o=e.length;return i>o?i=o-t.addedCount:i<0&&(i=o+t.removed.length+i-t.addedCount),i<0&&(i=0),t.index=i,t}class Pt extends m{constructor(t){super(t),this.oldCollection=void 0,this.splices=void 0,this.needsQueue=!0,this.call=this.flush,Reflect.defineProperty(t,"$fastController",{value:this,enumerable:!1})}addSplice(t){void 0===this.splices?this.splices=[t]:this.splices.push(t),this.needsQueue&&(this.needsQueue=!1,d.queueUpdate(this))}reset(t){this.oldCollection=t,this.needsQueue&&(this.needsQueue=!1,d.queueUpdate(this))}flush(){const t=this.splices,e=this.oldCollection;if(void 0===t&&void 0===e)return;this.needsQueue=!0,this.splices=void 0,this.oldCollection=void 0;const i=void 0===e?Lt(this.source,t):Et(this.source,0,this.source.length,e,0,e.length);this.notify(i)}}class Mt{constructor(t,e){this.target=t,this.propertyName=e}bind(t){t[this.propertyName]=this.target}unbind(){}}function Bt(t){return new L("fast-ref",Mt,t)}function Nt(t,e){const i="function"==typeof e?e:()=>e;return(e,o)=>t(e,o)?i(e,o):null}const jt=Object.freeze({positioning:!1,recycle:!0});function Ut(t,e,i,o){t.bind(e[i],o)}function qt(t,e,i,o){const s=Object.create(o);s.index=i,s.length=e.length,t.bind(e[i],s)}class _t{constructor(t,e,i,o,s,n){this.location=t,this.itemsBinding=e,this.templateBinding=o,this.options=n,this.source=null,this.views=[],this.items=null,this.itemsObserver=null,this.originalContext=void 0,this.childContext=void 0,this.bindView=Ut,this.itemsBindingObserver=C.binding(e,this,i),this.templateBindingObserver=C.binding(o,this,s),n.positioning&&(this.bindView=qt)}bind(t,e){this.source=t,this.originalContext=e,this.childContext=Object.create(e),this.childContext.parent=t,this.childContext.parentContext=this.originalContext,this.items=this.itemsBindingObserver.observe(t,this.originalContext),this.template=this.templateBindingObserver.observe(t,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(t,e){t===this.itemsBinding?(this.items=this.itemsBindingObserver.observe(this.source,this.originalContext),this.observeItems(),this.refreshAllViews()):t===this.templateBinding?(this.template=this.templateBindingObserver.observe(this.source,this.originalContext),this.refreshAllViews(!0)):this.updateViews(e)}observeItems(t=!1){if(!this.items)return void(this.items=e);const i=this.itemsObserver,o=this.itemsObserver=C.getNotifier(this.items),s=i!==o;s&&null!==i&&i.unsubscribe(this),(s||t)&&o.subscribe(this)}updateViews(t){const e=this.childContext,i=this.views,o=[],s=this.bindView;let n=0;for(let e=0,s=t.length;e<s;++e){const s=t[e],r=s.removed;o.push(...i.splice(s.index+n,r.length)),n-=s.addedCount}const r=this.items,a=this.template;for(let n=0,l=t.length;n<l;++n){const l=t[n];let c=l.index;const h=c+l.addedCount;for(;c<h;++c){const t=i[c],n=t?t.firstChild:this.location,l=this.options.recycle&&o.length>0?o.shift():a.create();i.splice(c,0,l),s(l,r,c,e),l.insertBefore(n)}}for(let t=0,e=o.length;t<e;++t)o[t].dispose();if(this.options.positioning)for(let t=0,e=i.length;t<e;++t){const o=i[t].context;o.length=e,o.index=t}}refreshAllViews(t=!1){const e=this.items,i=this.childContext,o=this.template,s=this.location,n=this.bindView;let r=e.length,a=this.views,l=a.length;if((0===r||t)&&(it.disposeContiguousBatch(a),l=0),0===l){this.views=a=new Array(r);for(let t=0;t<r;++t){const r=o.create();n(r,e,t,i),a[t]=r,r.insertBefore(s)}}else{let t=0;for(;t<r;++t)if(t<l){n(a[t],e,t,i)}else{const r=o.create();n(r,e,t,i),a.push(r),r.insertBefore(s)}const c=a.splice(t,l-t);for(t=0,r=c.length;t<r;++t)c[t].dispose()}}unbindAllViews(){const t=this.views;for(let e=0,i=t.length;e<i;++e)t[e].unbind()}}class Gt extends R{constructor(t,e,i){super(),this.itemsBinding=t,this.templateBinding=e,this.options=i,this.createPlaceholder=d.createBlockPlaceholder,function(){if(zt)return;zt=!0,C.setArrayObserverFactory(t=>new Pt(t));const t=Array.prototype;if(t.$fastPatch)return;Reflect.defineProperty(t,"$fastPatch",{value:1,enumerable:!1});const e=t.pop,i=t.push,o=t.reverse,s=t.shift,n=t.sort,r=t.splice,a=t.unshift;t.pop=function(){const t=this.length>0,i=e.apply(this,arguments),o=this.$fastController;return void 0!==o&&t&&o.addSplice(Ot(this.length,[i],0)),i},t.push=function(){const t=i.apply(this,arguments),e=this.$fastController;return void 0!==e&&e.addSplice(Ht(Ot(this.length-arguments.length,[],arguments.length),this)),t},t.reverse=function(){let t;const e=this.$fastController;void 0!==e&&(e.flush(),t=this.slice());const i=o.apply(this,arguments);return void 0!==e&&e.reset(t),i},t.shift=function(){const t=this.length>0,e=s.apply(this,arguments),i=this.$fastController;return void 0!==i&&t&&i.addSplice(Ot(0,[e],0)),e},t.sort=function(){let t;const e=this.$fastController;void 0!==e&&(e.flush(),t=this.slice());const i=n.apply(this,arguments);return void 0!==e&&e.reset(t),i},t.splice=function(){const t=r.apply(this,arguments),e=this.$fastController;return void 0!==e&&e.addSplice(Ht(Ot(+arguments[0],t,arguments.length>2?arguments.length-2:0),this)),t},t.unshift=function(){const t=a.apply(this,arguments),e=this.$fastController;return void 0!==e&&e.addSplice(Ht(Ot(0,[],arguments.length),this)),t}}(),this.isItemsBindingVolatile=C.isVolatileBinding(t),this.isTemplateBindingVolatile=C.isVolatileBinding(e)}createBehavior(t){return new _t(t,this.itemsBinding,this.isItemsBindingVolatile,this.templateBinding,this.isTemplateBindingVolatile,this.options)}}function Wt(t,e,i=jt){return new Gt(t,"function"==typeof e?e:()=>e,i)}function Kt(t){return t?function(e,i,o){return 1===e.nodeType&&e.matches(t)}:function(t,e,i){return 1===t.nodeType}}class Xt{constructor(t,e){this.target=t,this.options=e,this.source=null}bind(t){const e=this.options.property;this.shouldUpdate=C.getAccessors(t).some(t=>t.name===e),this.source=t,this.updateTarget(this.computeNodes()),this.shouldUpdate&&this.observe()}unbind(){this.updateTarget(e),this.source=null,this.shouldUpdate&&this.disconnect()}handleEvent(){this.updateTarget(this.computeNodes())}computeNodes(){let t=this.getNodes();return void 0!==this.options.filter&&(t=t.filter(this.options.filter)),t}updateTarget(t){this.source[this.options.property]=t}}class Yt extends Xt{constructor(t,e){super(t,e)}observe(){this.target.addEventListener("slotchange",this)}disconnect(){this.target.removeEventListener("slotchange",this)}getNodes(){return this.target.assignedNodes(this.options)}}function Qt(t){return"string"==typeof t&&(t={property:t}),new L("fast-slotted",Yt,t)}class Zt extends Xt{constructor(t,e){super(t,e),this.observer=null,e.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 Jt(t){return"string"==typeof t&&(t={property:t}),new L("fast-children",Zt,t)}class te{handleStartContentChange(){this.startContainer.classList.toggle("start",this.start.assignedNodes().length>0)}handleEndContentChange(){this.endContainer.classList.toggle("end",this.end.assignedNodes().length>0)}}const ee=(t,e)=>nt`<span part="end" ${Bt("endContainer")} class=${t=>e.end?"end":void 0}><slot name="end" ${Bt("end")} @slotchange="${t=>t.handleEndContentChange()}">${e.end||""}</slot></span>`,ie=(t,e)=>nt`<span part="start" ${Bt("startContainer")} class="${t=>e.start?"start":void 0}"><slot name="start" ${Bt("start")} @slotchange="${t=>t.handleStartContentChange()}">${e.start||""}</slot></span>`,oe=nt`<span part="end" ${Bt("endContainer")}><slot name="end" ${Bt("end")} @slotchange="${t=>t.handleEndContentChange()}"></slot></span>`,se=nt`<span part="start" ${Bt("startContainer")}><slot name="start" ${Bt("start")} @slotchange="${t=>t.handleStartContentChange()}"></slot></span>`;
|
|
2
2
|
/*! *****************************************************************************
|
|
3
3
|
Copyright (c) Microsoft Corporation.
|
|
4
4
|
|
|
@@ -13,15 +13,15 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
13
13
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
14
14
|
PERFORMANCE OF THIS SOFTWARE.
|
|
15
15
|
***************************************************************************** */
|
|
16
|
-
function ne(t,e,i,o){var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r}const re=new Map;"metadata"in Reflect||(Reflect.metadata=function(t,e){return function(i){Reflect.defineMetadata(t,e,i)}},Reflect.defineMetadata=function(t,e,i){let o=re.get(i);void 0===o&&re.set(i,o=new Map),o.set(t,e)},Reflect.getOwnMetadata=function(t,e){const i=re.get(e);if(void 0!==i)return i.get(t)});class ae{constructor(t,e){this.container=t,this.key=e}instance(t){return this.registerResolver(0,t)}singleton(t){return this.registerResolver(1,t)}transient(t){return this.registerResolver(2,t)}callback(t){return this.registerResolver(3,t)}cachedCallback(t){return this.registerResolver(3,Ve(t))}aliasTo(t){return this.registerResolver(5,t)}registerResolver(t,e){const{container:i,key:o}=this;return this.container=this.key=void 0,i.registerResolver(o,new be(o,t,e))}}function le(t){const e=t.slice(),i=Object.keys(t),o=i.length;let s;for(let n=0;n<o;++n)s=i[n],He(s)||(e[s]=t[s]);return e}const ce=Object.freeze({none(t){throw Error(t.toString()+" not registered, did you forget to add @singleton()?")},singleton:t=>new be(t,1,t),transient:t=>new be(t,2,t)}),he=Object.freeze({default:Object.freeze({parentLocator:()=>null,responsibleForOwnerRequests:!1,defaultResolver:ce.singleton})}),de=new Map;function ue(t){return e=>Reflect.getOwnMetadata(t,e)}let pe=null;const ge=Object.freeze({createContainer:t=>new Te(null,Object.assign({},he.default,t)),findResponsibleContainer(t){const e=t.$$container$$;return e&&e.responsibleForOwnerRequests?e:ge.findParentContainer(t)},findParentContainer(t){const e=new CustomEvent(Fe,{bubbles:!0,composed:!0,cancelable:!0,detail:{container:void 0}});return t.dispatchEvent(e),e.detail.container||ge.getOrCreateDOMContainer()},getOrCreateDOMContainer:(t,e)=>t?t.$$container$$||new Te(t,Object.assign({},he.default,e,{parentLocator:ge.findParentContainer})):pe||(pe=new Te(null,Object.assign({},he.default,e,{parentLocator:()=>null}))),getDesignParamtypes:ue("design:paramtypes"),getAnnotationParamtypes:ue("di:paramtypes"),getOrCreateAnnotationParamTypes(t){let e=this.getAnnotationParamtypes(t);return void 0===e&&Reflect.defineMetadata("di:paramtypes",e=[],t),e},getDependencies(t){let e=de.get(t);if(void 0===e){const i=t.inject;if(void 0===i){const i=ge.getDesignParamtypes(t),o=ge.getAnnotationParamtypes(t);if(void 0===i)if(void 0===o){const i=Object.getPrototypeOf(t);e="function"==typeof i&&i!==Function.prototype?le(ge.getDependencies(i)):[]}else e=le(o);else if(void 0===o)e=le(i);else{e=le(i);let t,s=o.length;for(let i=0;i<s;++i)t=o[i],void 0!==t&&(e[i]=t);const n=Object.keys(o);let r;s=n.length;for(let t=0;t<s;++t)r=n[t],He(r)||(e[r]=o[r])}}else e=le(i);de.set(t,e)}return e},defineProperty(t,e,i,o=!1){const s="$di_"+e;Reflect.defineProperty(t,e,{get:function(){let t=this[s];if(void 0===t){const n=this instanceof HTMLElement?ge.findResponsibleContainer(this):ge.getOrCreateDOMContainer();if(t=n.get(i),this[s]=t,o&&this instanceof Ft){const o=this.$fastController,n=()=>{ge.findResponsibleContainer(this).get(i)!==this[s]&&(this[s]=t,o.notify(e))};o.subscribe({handleChange:n},"isConnected")}}return t}})},createInterface(t,e){const i="function"==typeof t?t:e,o="string"==typeof t?t:t&&"friendlyName"in t&&t.friendlyName||Oe,s="string"!=typeof t&&(t&&"respectConnection"in t&&t.respectConnection||!1),n=function(t,e,i){if(null==t||void 0!==new.target)throw new Error(`No registration for interface: '${n.friendlyName}'`);if(e)ge.defineProperty(t,e,n,s);else{ge.getOrCreateAnnotationParamTypes(t)[i]=n}};return n.$isInterface=!0,n.friendlyName=null==o?"(anonymous)":o,null!=i&&(n.register=function(t,e){return i(new ae(t,null!=e?e:n))}),n.toString=function(){return`InterfaceSymbol<${n.friendlyName}>`},n},inject:(...t)=>function(e,i,o){if("number"==typeof o){const i=ge.getOrCreateAnnotationParamTypes(e),s=t[0];void 0!==s&&(i[o]=s)}else if(i)ge.defineProperty(e,i,t[0]);else{const i=o?ge.getOrCreateAnnotationParamTypes(o.value):ge.getOrCreateAnnotationParamTypes(e);let s;for(let e=0;e<t.length;++e)s=t[e],void 0!==s&&(i[e]=s)}},transient:t=>(t.register=function(e){return Se.transient(t,t).register(e)},t.registerInRequestor=!1,t),singleton:(t,e=me)=>(t.register=function(e){return Se.singleton(t,t).register(e)},t.registerInRequestor=e.scoped,t)}),fe=ge.createInterface("Container");ge.inject;const me={scoped:!1};class be{constructor(t,e,i){this.key=t,this.strategy=e,this.state=i,this.resolving=!1}get $isResolver(){return!0}register(t){return t.registerResolver(this.key,this)}resolve(t,e){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=t.getFactory(this.state).construct(e),this.strategy=0,this.resolving=!1,this.state;case 2:{const i=t.getFactory(this.state);if(null===i)throw new Error(`Resolver for ${String(this.key)} returned a null factory`);return i.construct(e)}case 3:return this.state(t,e,this);case 4:return this.state[0].resolve(t,e);case 5:return e.get(this.state);default:throw new Error(`Invalid resolver strategy specified: ${this.strategy}.`)}}getFactory(t){var e,i,o;switch(this.strategy){case 1:case 2:return t.getFactory(this.state);case 5:return null!==(o=null===(i=null===(e=t.getResolver(this.state))||void 0===e?void 0:e.getFactory)||void 0===i?void 0:i.call(e,t))&&void 0!==o?o:null;default:return null}}}function ve(t){return this.get(t)}function ye(t,e){return e(t)}class xe{constructor(t,e){this.Type=t,this.dependencies=e,this.transformers=null}construct(t,e){let i;return i=void 0===e?new this.Type(...this.dependencies.map(ve,t)):new this.Type(...this.dependencies.map(ve,t),...e),null==this.transformers?i:this.transformers.reduce(ye,i)}registerTransformer(t){(this.transformers||(this.transformers=[])).push(t)}}const $e={$isResolver:!0,resolve:(t,e)=>e};function we(t){return"function"==typeof t.register}function ke(t){return function(t){return we(t)&&"boolean"==typeof t.registerInRequestor}(t)&&t.registerInRequestor}const Ce=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"]),Fe="__DI_LOCATE_PARENT__",Ie=new Map;class Te{constructor(t,e){this.owner=t,this.config=e,this._parent=void 0,this.registerDepth=0,this.context=null,null!==t&&(t.$$container$$=this),this.resolvers=new Map,this.resolvers.set(fe,$e),t instanceof Node&&t.addEventListener(Fe,t=>{t.composedPath()[0]!==this.owner&&(t.detail.container=this,t.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(t,...e){return this.context=t,this.register(...e),this.context=null,this}register(...t){if(100==++this.registerDepth)throw new Error("Unable to autoregister dependency");let e,i,o,s,n;const r=this.context;for(let a=0,l=t.length;a<l;++a)if(e=t[a],Le(e))if(we(e))e.register(this,r);else if(void 0!==e.prototype)Se.singleton(e,e).register(this);else for(i=Object.keys(e),s=0,n=i.length;s<n;++s)o=e[i[s]],Le(o)&&(we(o)?o.register(this,r):this.register(o));return--this.registerDepth,this}registerResolver(t,e){Re(t);const i=this.resolvers,o=i.get(t);return null==o?i.set(t,e):o instanceof be&&4===o.strategy?o.state.push(e):i.set(t,new be(t,4,[o,e])),e}registerTransformer(t,e){const i=this.getResolver(t);if(null==i)return!1;if(i.getFactory){const t=i.getFactory(this);return null!=t&&(t.registerTransformer(e),!0)}return!1}getResolver(t,e=!0){if(Re(t),void 0!==t.resolve)return t;let i,o=this;for(;null!=o;){if(i=o.resolvers.get(t),null!=i)return i;if(null==o.parent){const i=ke(t)?this:o;return e?this.jitRegister(t,i):null}o=o.parent}return null}has(t,e=!1){return!!this.resolvers.has(t)||!(!e||null==this.parent)&&this.parent.has(t,!0)}get(t){if(Re(t),t.$isResolver)return t.resolve(this,this);let e,i=this;for(;null!=i;){if(e=i.resolvers.get(t),null!=e)return e.resolve(i,this);if(null==i.parent){const o=ke(t)?this:i;return e=this.jitRegister(t,o),e.resolve(i,this)}i=i.parent}throw new Error("Unable to resolve key: "+t)}getAll(t,i=!1){Re(t);const o=this;let s,n=o;if(i){let i=e;for(;null!=n;)s=n.resolvers.get(t),null!=s&&(i=i.concat(Ee(s,n,o))),n=n.parent;return i}for(;null!=n;){if(s=n.resolvers.get(t),null!=s)return Ee(s,n,o);if(n=n.parent,null==n)return e}return e}getFactory(t){let e=Ie.get(t);if(void 0===e){if(Ae(t))throw new Error(t.name+" is a native function and therefore cannot be safely constructed by DI. If this is intentional, please use a callback or cachedCallback resolver.");Ie.set(t,e=new xe(t,ge.getDependencies(t)))}return e}registerFactory(t,e){Ie.set(t,e)}createChild(t){return new Te(null,Object.assign({},this.config,t,{parentLocator:()=>this}))}jitRegister(t,e){if("function"!=typeof t)throw new Error(`Attempted to jitRegister something that is not a constructor: '${t}'. Did you forget to register this dependency?`);if(Ce.has(t.name))throw new Error(`Attempted to jitRegister an intrinsic type: ${t.name}. Did you forget to add @inject(Key)`);if(we(t)){const i=t.register(e);if(!(i instanceof Object)||null==i.resolve){const i=e.resolvers.get(t);if(null!=i)return i;throw new Error("A valid resolver was not returned from the static register method")}return i}if(t.$isInterface)throw new Error("Attempted to jitRegister an interface: "+t.friendlyName);{const i=this.config.defaultResolver(t,e);return e.resolvers.set(t,i),i}}}const De=new WeakMap;function Ve(t){return function(e,i,o){if(De.has(o))return De.get(o);const s=t(e,i,o);return De.set(o,s),s}}const Se=Object.freeze({instance:(t,e)=>new be(t,0,e),singleton:(t,e)=>new be(t,1,e),transient:(t,e)=>new be(t,2,e),callback:(t,e)=>new be(t,3,e),cachedCallback:(t,e)=>new be(t,3,Ve(e)),aliasTo:(t,e)=>new be(e,5,t)});function Re(t){if(null==t)throw new Error("key/value cannot be null or undefined. Are you trying to inject/register something that doesn't exist with DI?")}function Ee(t,e,i){if(t instanceof be&&4===t.strategy){const o=t.state;let s=o.length;const n=new Array(s);for(;s--;)n[s]=o[s].resolve(e,i);return n}return[t.resolve(e,i)]}const Oe="(anonymous)";function Le(t){return"object"==typeof t&&null!==t||"function"==typeof t}const Ae=function(){const t=new WeakMap;let e=!1,i="",o=0;return function(s){return e=t.get(s),void 0===e&&(i=s.toString(),o=i.length,e=o>=29&&o<=100&&125===i.charCodeAt(o-1)&&i.charCodeAt(o-2)<=32&&93===i.charCodeAt(o-3)&&101===i.charCodeAt(o-4)&&100===i.charCodeAt(o-5)&&111===i.charCodeAt(o-6)&&99===i.charCodeAt(o-7)&&32===i.charCodeAt(o-8)&&101===i.charCodeAt(o-9)&&118===i.charCodeAt(o-10)&&105===i.charCodeAt(o-11)&&116===i.charCodeAt(o-12)&&97===i.charCodeAt(o-13)&&110===i.charCodeAt(o-14)&&88===i.charCodeAt(o-15),t.set(s,e)),e}}(),ze={};function He(t){switch(typeof t){case"number":return t>=0&&(0|t)===t;case"string":{const e=ze[t];if(void 0!==e)return e;const i=t.length;if(0===i)return ze[t]=!1;let o=0;for(let e=0;e<i;++e)if(o=t.charCodeAt(e),0===e&&48===o&&i>1||o<48||o>57)return ze[t]=!1;return ze[t]=!0}default:return!1}}function Pe(t){return t.toLowerCase()+":presentation"}const Me=new Map,Be=Object.freeze({define(t,e,i){const o=Pe(t);void 0===Me.get(o)?Me.set(o,e):Me.set(o,!1),i.register(Se.instance(o,e))},forTag(t,e){const i=Pe(t),o=Me.get(i);if(!1===o){return ge.findResponsibleContainer(e).get(i)}return o||null}});class Ne{constructor(t,e){this.template=t||null,this.styles=void 0===e?null:Array.isArray(e)?rt.create(e):e instanceof rt?e:rt.create([e])}applyTo(t){const e=t.$fastController;null===e.template&&(e.template=this.template),null===e.styles&&(e.styles=this.styles)}}class je extends Ft{constructor(){super(...arguments),this._presentation=void 0}get $presentation(){return void 0===this._presentation&&(this._presentation=Be.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(t){return(e={})=>new qe(this===je?class extends je{}:this,t,e)}}function Ue(t,e,i){return"function"==typeof t?t(e,i):t}ne([T],je.prototype,"template",void 0),ne([T],je.prototype,"styles",void 0);class qe{constructor(t,e,i){this.type=t,this.elementDefinition=e,this.overrideDefinition=i,this.definition=Object.assign(Object.assign({},this.elementDefinition),this.overrideDefinition)}register(t,e){const i=this.definition,o=this.overrideDefinition,s=`${i.prefix||e.elementPrefix}-${i.baseName}`;e.tryDefineElement({name:s,type:this.type,baseClass:this.elementDefinition.baseClass,callback:t=>{const e=new Ne(Ue(i.template,t,i),Ue(i.styles,t,i));t.definePresentation(e);let s=Ue(i.shadowOptions,t,i);t.shadowRootMode&&(s?o.shadowOptions||(s.mode=t.shadowRootMode):null!==s&&(s={mode:t.shadowRootMode})),t.defineElement({elementOptions:Ue(i.elementOptions,t,i),shadowOptions:s,attributes:Ue(i.attributes,t,i)})}})}}function _e(t,...e){e.forEach(e=>{if(Object.getOwnPropertyNames(e.prototype).forEach(i=>{"constructor"!==i&&Object.defineProperty(t.prototype,i,Object.getOwnPropertyDescriptor(e.prototype,i))}),e.attributes){const i=t.attributes||[];t.attributes=i.concat(e.attributes)}})}class Ge extends je{constructor(){super(...arguments),this.headinglevel=2,this.expanded=!1,this.clickHandler=t=>{this.expanded=!this.expanded,this.change()},this.change=()=>{this.$emit("change")}}}ne([ft({attribute:"heading-level",mode:"fromView",converter:pt})],Ge.prototype,"headinglevel",void 0),ne([ft({mode:"boolean"})],Ge.prototype,"expanded",void 0),ne([ft],Ge.prototype,"id",void 0),_e(Ge,te);var We;function Ke(...t){return t.every(t=>t instanceof HTMLElement)}let Xe;!function(t){t.horizontal="horizontal",t.vertical="vertical"}(We||(We={}));var Ye;!function(t){t[t.alt=18]="alt",t[t.arrowDown=40]="arrowDown",t[t.arrowLeft=37]="arrowLeft",t[t.arrowRight=39]="arrowRight",t[t.arrowUp=38]="arrowUp",t[t.back=8]="back",t[t.backSlash=220]="backSlash",t[t.break=19]="break",t[t.capsLock=20]="capsLock",t[t.closeBracket=221]="closeBracket",t[t.colon=186]="colon",t[t.colon2=59]="colon2",t[t.comma=188]="comma",t[t.ctrl=17]="ctrl",t[t.delete=46]="delete",t[t.end=35]="end",t[t.enter=13]="enter",t[t.equals=187]="equals",t[t.equals2=61]="equals2",t[t.equals3=107]="equals3",t[t.escape=27]="escape",t[t.forwardSlash=191]="forwardSlash",t[t.function1=112]="function1",t[t.function10=121]="function10",t[t.function11=122]="function11",t[t.function12=123]="function12",t[t.function2=113]="function2",t[t.function3=114]="function3",t[t.function4=115]="function4",t[t.function5=116]="function5",t[t.function6=117]="function6",t[t.function7=118]="function7",t[t.function8=119]="function8",t[t.function9=120]="function9",t[t.home=36]="home",t[t.insert=45]="insert",t[t.menu=93]="menu",t[t.minus=189]="minus",t[t.minus2=109]="minus2",t[t.numLock=144]="numLock",t[t.numPad0=96]="numPad0",t[t.numPad1=97]="numPad1",t[t.numPad2=98]="numPad2",t[t.numPad3=99]="numPad3",t[t.numPad4=100]="numPad4",t[t.numPad5=101]="numPad5",t[t.numPad6=102]="numPad6",t[t.numPad7=103]="numPad7",t[t.numPad8=104]="numPad8",t[t.numPad9=105]="numPad9",t[t.numPadDivide=111]="numPadDivide",t[t.numPadDot=110]="numPadDot",t[t.numPadMinus=109]="numPadMinus",t[t.numPadMultiply=106]="numPadMultiply",t[t.numPadPlus=107]="numPadPlus",t[t.openBracket=219]="openBracket",t[t.pageDown=34]="pageDown",t[t.pageUp=33]="pageUp",t[t.period=190]="period",t[t.print=44]="print",t[t.quote=222]="quote",t[t.scrollLock=145]="scrollLock",t[t.shift=16]="shift",t[t.space=32]="space",t[t.tab=9]="tab",t[t.tilde=192]="tilde",t[t.windowsLeft=91]="windowsLeft",t[t.windowsOpera=219]="windowsOpera",t[t.windowsRight=92]="windowsRight"}(Ye||(Ye={}));const Qe={ArrowDown:"ArrowDown",ArrowLeft:"ArrowLeft",ArrowRight:"ArrowRight",ArrowUp:"ArrowUp"};var Ze;function Je(t,e,i){return i<t?e:i>e?t:i}function ti(t,e,i){return Math.min(Math.max(i,t),e)}!function(t){t.ltr="ltr",t.rtl="rtl"}(Ze||(Ze={}));let ei=0;function ii(t=""){return`${t}${ei++}`}var oi,si;!function(t){t.Canvas="Canvas",t.CanvasText="CanvasText",t.LinkText="LinkText",t.VisitedText="VisitedText",t.ActiveText="ActiveText",t.ButtonFace="ButtonFace",t.ButtonText="ButtonText",t.Field="Field",t.FieldText="FieldText",t.Highlight="Highlight",t.HighlightText="HighlightText",t.GrayText="GrayText"}(oi||(oi={})),function(t){t.single="single",t.multi="multi"}(si||(si={}));class ni extends je{constructor(){super(...arguments),this.expandmode=si.multi,this.activeItemIndex=0,this.change=()=>{this.$emit("change")},this.setItems=()=>{var t;if(0!==this.accordionItems.length&&(this.accordionIds=this.getItemIds(),this.accordionItems.forEach((t,e)=>{t instanceof Ge&&(t.addEventListener("change",this.activeItemChange),this.isSingleExpandMode()&&(this.activeItemIndex!==e?t.expanded=!1:t.expanded=!0));const i=this.accordionIds[e];t.setAttribute("id","string"!=typeof i?"accordion-"+(e+1):i),this.activeid=this.accordionIds[this.activeItemIndex],t.addEventListener("keydown",this.handleItemKeyDown),t.addEventListener("focus",this.handleItemFocus)}),this.isSingleExpandMode())){(null!==(t=this.findExpandedItem())&&void 0!==t?t:this.accordionItems[0]).setAttribute("aria-disabled","true")}},this.removeItemListeners=t=>{t.forEach((t,e)=>{t.removeEventListener("change",this.activeItemChange),t.removeEventListener("keydown",this.handleItemKeyDown),t.removeEventListener("focus",this.handleItemFocus)})},this.activeItemChange=t=>{const e=t.target;this.activeid=t.target.getAttribute("id"),this.isSingleExpandMode()&&(this.resetItems(),e.expanded=!0,e.setAttribute("aria-disabled","true"),this.accordionItems.forEach(t=>{t.hasAttribute("disabled")||t.id===this.activeid||t.removeAttribute("aria-disabled")})),this.activeItemIndex=Array.from(this.accordionItems).indexOf(e),this.change()},this.handleItemKeyDown=t=>{if(t.target===t.currentTarget)switch(this.accordionIds=this.getItemIds(),t.key){case"ArrowUp":t.preventDefault(),this.adjust(-1);break;case"ArrowDown":t.preventDefault(),this.adjust(1);break;case"Home":this.activeItemIndex=0,this.focusItem();break;case"End":this.activeItemIndex=this.accordionItems.length-1,this.focusItem()}},this.handleItemFocus=t=>{if(t.target===t.currentTarget){const e=t.target,i=this.activeItemIndex=Array.from(this.accordionItems).indexOf(e);this.activeItemIndex!==i&&-1!==i&&(this.activeItemIndex=i,this.activeid=this.accordionIds[this.activeItemIndex])}}}accordionItemsChanged(t,e){this.$fastController.isConnected&&(this.removeItemListeners(t),this.setItems())}findExpandedItem(){for(let t=0;t<this.accordionItems.length;t++)if("true"===this.accordionItems[t].getAttribute("expanded"))return this.accordionItems[t];return null}resetItems(){this.accordionItems.forEach((t,e)=>{t.expanded=!1})}getItemIds(){return this.accordionItems.map(t=>t.getAttribute("id"))}isSingleExpandMode(){return this.expandmode===si.single}adjust(t){this.activeItemIndex=Je(0,this.accordionItems.length-1,this.activeItemIndex+t),this.focusItem()}focusItem(){const t=this.accordionItems[this.activeItemIndex];t instanceof Ge&&t.expandbutton.focus()}}ne([ft({attribute:"expand-mode"})],ni.prototype,"expandmode",void 0),ne([T],ni.prototype,"accordionItems",void 0);const ri=(t,e)=>nt`<a class="control" part="control" download="${t=>t.download}" href="${t=>t.href}" hreflang="${t=>t.hreflang}" ping="${t=>t.ping}" referrerpolicy="${t=>t.referrerpolicy}" rel="${t=>t.rel}" target="${t=>t.target}" type="${t=>t.type}" aria-atomic="${t=>t.ariaAtomic}" aria-busy="${t=>t.ariaBusy}" aria-controls="${t=>t.ariaControls}" aria-current="${t=>t.ariaCurrent}" aria-describedby="${t=>t.ariaDescribedby}" aria-details="${t=>t.ariaDetails}" aria-disabled="${t=>t.ariaDisabled}" aria-errormessage="${t=>t.ariaErrormessage}" aria-expanded="${t=>t.ariaExpanded}" aria-flowto="${t=>t.ariaFlowto}" aria-haspopup="${t=>t.ariaHaspopup}" aria-hidden="${t=>t.ariaHidden}" aria-invalid="${t=>t.ariaInvalid}" aria-keyshortcuts="${t=>t.ariaKeyshortcuts}" aria-label="${t=>t.ariaLabel}" aria-labelledby="${t=>t.ariaLabelledby}" aria-live="${t=>t.ariaLive}" aria-owns="${t=>t.ariaOwns}" aria-relevant="${t=>t.ariaRelevant}" aria-roledescription="${t=>t.ariaRoledescription}" ${Bt("control")}>${ie(0,e)}<span class="content" part="content"><slot ${Qt("defaultSlottedContent")}></slot></span>${ee(0,e)}</a>`;class ai{}ne([ft({attribute:"aria-atomic",mode:"fromView"})],ai.prototype,"ariaAtomic",void 0),ne([ft({attribute:"aria-busy",mode:"fromView"})],ai.prototype,"ariaBusy",void 0),ne([ft({attribute:"aria-controls",mode:"fromView"})],ai.prototype,"ariaControls",void 0),ne([ft({attribute:"aria-current",mode:"fromView"})],ai.prototype,"ariaCurrent",void 0),ne([ft({attribute:"aria-describedby",mode:"fromView"})],ai.prototype,"ariaDescribedby",void 0),ne([ft({attribute:"aria-details",mode:"fromView"})],ai.prototype,"ariaDetails",void 0),ne([ft({attribute:"aria-disabled",mode:"fromView"})],ai.prototype,"ariaDisabled",void 0),ne([ft({attribute:"aria-errormessage",mode:"fromView"})],ai.prototype,"ariaErrormessage",void 0),ne([ft({attribute:"aria-flowto",mode:"fromView"})],ai.prototype,"ariaFlowto",void 0),ne([ft({attribute:"aria-haspopup",mode:"fromView"})],ai.prototype,"ariaHaspopup",void 0),ne([ft({attribute:"aria-hidden",mode:"fromView"})],ai.prototype,"ariaHidden",void 0),ne([ft({attribute:"aria-invalid",mode:"fromView"})],ai.prototype,"ariaInvalid",void 0),ne([ft({attribute:"aria-keyshortcuts",mode:"fromView"})],ai.prototype,"ariaKeyshortcuts",void 0),ne([ft({attribute:"aria-label",mode:"fromView"})],ai.prototype,"ariaLabel",void 0),ne([ft({attribute:"aria-labelledby",mode:"fromView"})],ai.prototype,"ariaLabelledby",void 0),ne([ft({attribute:"aria-live",mode:"fromView"})],ai.prototype,"ariaLive",void 0),ne([ft({attribute:"aria-owns",mode:"fromView"})],ai.prototype,"ariaOwns",void 0),ne([ft({attribute:"aria-relevant",mode:"fromView"})],ai.prototype,"ariaRelevant",void 0),ne([ft({attribute:"aria-roledescription",mode:"fromView"})],ai.prototype,"ariaRoledescription",void 0);class li extends je{constructor(){super(...arguments),this.handleUnsupportedDelegatesFocus=()=>{var t;window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&(null===(t=this.$fastController.definition.shadowOptions)||void 0===t?void 0:t.delegatesFocus)&&(this.focus=()=>{this.control.focus()})}}connectedCallback(){super.connectedCallback(),this.handleUnsupportedDelegatesFocus()}}ne([ft],li.prototype,"download",void 0),ne([ft],li.prototype,"href",void 0),ne([ft],li.prototype,"hreflang",void 0),ne([ft],li.prototype,"ping",void 0),ne([ft],li.prototype,"referrerpolicy",void 0),ne([ft],li.prototype,"rel",void 0),ne([ft],li.prototype,"target",void 0),ne([ft],li.prototype,"type",void 0),ne([T],li.prototype,"defaultSlottedContent",void 0);class ci{}ne([ft({attribute:"aria-expanded",mode:"fromView"})],ci.prototype,"ariaExpanded",void 0),_e(ci,ai),_e(li,te,ci);const hi=t=>{const e=t.closest("[dir]");return null!==e&&"rtl"===e.dir?Ze.rtl:Ze.ltr};class di extends je{constructor(){super(...arguments),this.anchor="",this.viewport="",this.horizontalPositioningMode="uncontrolled",this.horizontalDefaultPosition="unset",this.horizontalViewportLock=!1,this.horizontalInset=!1,this.horizontalScaling="content",this.verticalPositioningMode="uncontrolled",this.verticalDefaultPosition="unset",this.verticalViewportLock=!1,this.verticalInset=!1,this.verticalScaling="content",this.fixedPlacement=!1,this.autoUpdateMode="anchor",this.anchorElement=null,this.viewportElement=null,this.initialLayoutComplete=!1,this.resizeDetector=null,this.baseHorizontalOffset=0,this.baseVerticalOffset=0,this.pendingPositioningUpdate=!1,this.pendingReset=!1,this.currentDirection=Ze.ltr,this.regionVisible=!1,this.forceUpdate=!1,this.updateThreshold=.5,this.update=()=>{this.pendingPositioningUpdate||this.requestPositionUpdates()},this.startObservers=()=>{this.stopObservers(),null!==this.anchorElement&&(this.requestPositionUpdates(),null!==this.resizeDetector&&(this.resizeDetector.observe(this.anchorElement),this.resizeDetector.observe(this)))},this.requestPositionUpdates=()=>{null===this.anchorElement||this.pendingPositioningUpdate||(di.intersectionService.requestPosition(this,this.handleIntersection),di.intersectionService.requestPosition(this.anchorElement,this.handleIntersection),null!==this.viewportElement&&di.intersectionService.requestPosition(this.viewportElement,this.handleIntersection),this.pendingPositioningUpdate=!0)},this.stopObservers=()=>{this.pendingPositioningUpdate&&(this.pendingPositioningUpdate=!1,di.intersectionService.cancelRequestPosition(this,this.handleIntersection),null!==this.anchorElement&&di.intersectionService.cancelRequestPosition(this.anchorElement,this.handleIntersection),null!==this.viewportElement&&di.intersectionService.cancelRequestPosition(this.viewportElement,this.handleIntersection)),null!==this.resizeDetector&&this.resizeDetector.disconnect()},this.getViewport=()=>"string"!=typeof this.viewport||""===this.viewport?document.documentElement:document.getElementById(this.viewport),this.getAnchor=()=>document.getElementById(this.anchor),this.handleIntersection=t=>{this.pendingPositioningUpdate&&(this.pendingPositioningUpdate=!1,this.applyIntersectionEntries(t)&&this.updateLayout())},this.applyIntersectionEntries=t=>{const e=t.find(t=>t.target===this),i=t.find(t=>t.target===this.anchorElement),o=t.find(t=>t.target===this.viewportElement);return void 0!==e&&void 0!==o&&void 0!==i&&(!!(!this.regionVisible||this.forceUpdate||void 0===this.regionRect||void 0===this.anchorRect||void 0===this.viewportRect||this.isRectDifferent(this.anchorRect,i.boundingClientRect)||this.isRectDifferent(this.viewportRect,o.boundingClientRect)||this.isRectDifferent(this.regionRect,e.boundingClientRect))&&(this.regionRect=e.boundingClientRect,this.anchorRect=i.boundingClientRect,this.viewportElement===document.documentElement?this.viewportRect=new DOMRectReadOnly(o.boundingClientRect.x+document.documentElement.scrollLeft,o.boundingClientRect.y+document.documentElement.scrollTop,o.boundingClientRect.width,o.boundingClientRect.height):this.viewportRect=o.boundingClientRect,this.updateRegionOffset(),this.forceUpdate=!1,!0))},this.updateRegionOffset=()=>{this.anchorRect&&this.regionRect&&(this.baseHorizontalOffset=this.baseHorizontalOffset+(this.anchorRect.left-this.regionRect.left)+(this.translateX-this.baseHorizontalOffset),this.baseVerticalOffset=this.baseVerticalOffset+(this.anchorRect.top-this.regionRect.top)+(this.translateY-this.baseVerticalOffset))},this.isRectDifferent=(t,e)=>Math.abs(t.top-e.top)>this.updateThreshold||Math.abs(t.right-e.right)>this.updateThreshold||Math.abs(t.bottom-e.bottom)>this.updateThreshold||Math.abs(t.left-e.left)>this.updateThreshold,this.handleResize=t=>{this.update()},this.reset=()=>{this.pendingReset&&(this.pendingReset=!1,null===this.anchorElement&&(this.anchorElement=this.getAnchor()),null===this.viewportElement&&(this.viewportElement=this.getViewport()),this.currentDirection=hi(this),this.startObservers())},this.updateLayout=()=>{let t=void 0,e=void 0;if("uncontrolled"!==this.horizontalPositioningMode){const t=this.getPositioningOptions(this.horizontalInset);if("center"===this.horizontalDefaultPosition)e="center";else if("unset"!==this.horizontalDefaultPosition){let t=this.horizontalDefaultPosition;if("start"===t||"end"===t){const e=hi(this);if(e!==this.currentDirection)return this.currentDirection=e,void this.initialize();t=this.currentDirection===Ze.ltr?"start"===t?"left":"right":"start"===t?"right":"left"}switch(t){case"left":e=this.horizontalInset?"insetStart":"start";break;case"right":e=this.horizontalInset?"insetEnd":"end"}}const i=void 0!==this.horizontalThreshold?this.horizontalThreshold:void 0!==this.regionRect?this.regionRect.width:0,o=void 0!==this.anchorRect?this.anchorRect.left:0,s=void 0!==this.anchorRect?this.anchorRect.right:0,n=void 0!==this.anchorRect?this.anchorRect.width:0,r=void 0!==this.viewportRect?this.viewportRect.left:0,a=void 0!==this.viewportRect?this.viewportRect.right:0;(void 0===e||"locktodefault"!==this.horizontalPositioningMode&&this.getAvailableSpace(e,o,s,n,r,a)<i)&&(e=this.getAvailableSpace(t[0],o,s,n,r,a)>this.getAvailableSpace(t[1],o,s,n,r,a)?t[0]:t[1])}if("uncontrolled"!==this.verticalPositioningMode){const e=this.getPositioningOptions(this.verticalInset);if("center"===this.verticalDefaultPosition)t="center";else if("unset"!==this.verticalDefaultPosition)switch(this.verticalDefaultPosition){case"top":t=this.verticalInset?"insetStart":"start";break;case"bottom":t=this.verticalInset?"insetEnd":"end"}const i=void 0!==this.verticalThreshold?this.verticalThreshold:void 0!==this.regionRect?this.regionRect.height:0,o=void 0!==this.anchorRect?this.anchorRect.top:0,s=void 0!==this.anchorRect?this.anchorRect.bottom:0,n=void 0!==this.anchorRect?this.anchorRect.height:0,r=void 0!==this.viewportRect?this.viewportRect.top:0,a=void 0!==this.viewportRect?this.viewportRect.bottom:0;(void 0===t||"locktodefault"!==this.verticalPositioningMode&&this.getAvailableSpace(t,o,s,n,r,a)<i)&&(t=this.getAvailableSpace(e[0],o,s,n,r,a)>this.getAvailableSpace(e[1],o,s,n,r,a)?e[0]:e[1])}const i=this.getNextRegionDimension(e,t),o=this.horizontalPosition!==e||this.verticalPosition!==t;if(this.setHorizontalPosition(e,i),this.setVerticalPosition(t,i),this.updateRegionStyle(),!this.initialLayoutComplete)return this.initialLayoutComplete=!0,void this.requestPositionUpdates();this.regionVisible||(this.regionVisible=!0,this.style.removeProperty("pointer-events"),this.style.removeProperty("opacity"),this.classList.toggle("loaded",!0),this.$emit("loaded",this,{bubbles:!1})),this.updatePositionClasses(),o&&this.$emit("positionchange",this,{bubbles:!1})},this.updateRegionStyle=()=>{this.style.width=this.regionWidth,this.style.height=this.regionHeight,this.style.transform=`translate(${this.translateX}px, ${this.translateY}px)`},this.updatePositionClasses=()=>{this.classList.toggle("top","start"===this.verticalPosition),this.classList.toggle("bottom","end"===this.verticalPosition),this.classList.toggle("inset-top","insetStart"===this.verticalPosition),this.classList.toggle("inset-bottom","insetEnd"===this.verticalPosition),this.classList.toggle("vertical-center","center"===this.verticalPosition),this.classList.toggle("left","start"===this.horizontalPosition),this.classList.toggle("right","end"===this.horizontalPosition),this.classList.toggle("inset-left","insetStart"===this.horizontalPosition),this.classList.toggle("inset-right","insetEnd"===this.horizontalPosition),this.classList.toggle("horizontal-center","center"===this.horizontalPosition)},this.setHorizontalPosition=(t,e)=>{if(void 0===t||void 0===this.regionRect||void 0===this.anchorRect||void 0===this.viewportRect)return;let i=0;switch(this.horizontalScaling){case"anchor":case"fill":i=e.width,this.regionWidth=i+"px";break;case"content":i=this.regionRect.width,this.regionWidth="unset"}let o=0;switch(t){case"start":this.translateX=this.baseHorizontalOffset-i,this.horizontalViewportLock&&this.anchorRect.left>this.viewportRect.right&&(this.translateX=this.translateX-(this.anchorRect.left-this.viewportRect.right));break;case"insetStart":this.translateX=this.baseHorizontalOffset-i+this.anchorRect.width,this.horizontalViewportLock&&this.anchorRect.right>this.viewportRect.right&&(this.translateX=this.translateX-(this.anchorRect.right-this.viewportRect.right));break;case"insetEnd":this.translateX=this.baseHorizontalOffset,this.horizontalViewportLock&&this.anchorRect.left<this.viewportRect.left&&(this.translateX=this.translateX-(this.anchorRect.left-this.viewportRect.left));break;case"end":this.translateX=this.baseHorizontalOffset+this.anchorRect.width,this.horizontalViewportLock&&this.anchorRect.right<this.viewportRect.left&&(this.translateX=this.translateX-(this.anchorRect.right-this.viewportRect.left));break;case"center":if(o=(this.anchorRect.width-i)/2,this.translateX=this.baseHorizontalOffset+o,this.horizontalViewportLock){const t=this.anchorRect.left+o,e=this.anchorRect.right-o;t<this.viewportRect.left&&!(e>this.viewportRect.right)?this.translateX=this.translateX-(t-this.viewportRect.left):e>this.viewportRect.right&&!(t<this.viewportRect.left)&&(this.translateX=this.translateX-(e-this.viewportRect.right))}}this.horizontalPosition=t},this.setVerticalPosition=(t,e)=>{if(void 0===t||void 0===this.regionRect||void 0===this.anchorRect||void 0===this.viewportRect)return;let i=0;switch(this.verticalScaling){case"anchor":case"fill":i=e.height,this.regionHeight=i+"px";break;case"content":i=this.regionRect.height,this.regionHeight="unset"}let o=0;switch(t){case"start":this.translateY=this.baseVerticalOffset-i,this.verticalViewportLock&&this.anchorRect.top>this.viewportRect.bottom&&(this.translateY=this.translateY-(this.anchorRect.top-this.viewportRect.bottom));break;case"insetStart":this.translateY=this.baseVerticalOffset-i+this.anchorRect.height,this.verticalViewportLock&&this.anchorRect.bottom>this.viewportRect.bottom&&(this.translateY=this.translateY-(this.anchorRect.bottom-this.viewportRect.bottom));break;case"insetEnd":this.translateY=this.baseVerticalOffset,this.verticalViewportLock&&this.anchorRect.top<this.viewportRect.top&&(this.translateY=this.translateY-(this.anchorRect.top-this.viewportRect.top));break;case"end":this.translateY=this.baseVerticalOffset+this.anchorRect.height,this.verticalViewportLock&&this.anchorRect.bottom<this.viewportRect.top&&(this.translateY=this.translateY-(this.anchorRect.bottom-this.viewportRect.top));break;case"center":if(o=(this.anchorRect.height-i)/2,this.translateY=this.baseVerticalOffset+o,this.verticalViewportLock){const t=this.anchorRect.top+o,e=this.anchorRect.bottom-o;t<this.viewportRect.top&&!(e>this.viewportRect.bottom)?this.translateY=this.translateY-(t-this.viewportRect.top):e>this.viewportRect.bottom&&!(t<this.viewportRect.top)&&(this.translateY=this.translateY-(e-this.viewportRect.bottom))}}this.verticalPosition=t},this.getPositioningOptions=t=>t?["insetStart","insetEnd"]:["start","end"],this.getAvailableSpace=(t,e,i,o,s,n)=>{const r=e-s,a=n-(e+o);switch(t){case"start":return r;case"insetStart":return r+o;case"insetEnd":return a+o;case"end":return a;case"center":return 2*Math.min(r,a)+o}},this.getNextRegionDimension=(t,e)=>{const i={height:void 0!==this.regionRect?this.regionRect.height:0,width:void 0!==this.regionRect?this.regionRect.width:0};return void 0!==t&&"fill"===this.horizontalScaling?i.width=this.getAvailableSpace(t,void 0!==this.anchorRect?this.anchorRect.left:0,void 0!==this.anchorRect?this.anchorRect.right:0,void 0!==this.anchorRect?this.anchorRect.width:0,void 0!==this.viewportRect?this.viewportRect.left:0,void 0!==this.viewportRect?this.viewportRect.right:0):"anchor"===this.horizontalScaling&&(i.width=void 0!==this.anchorRect?this.anchorRect.width:0),void 0!==e&&"fill"===this.verticalScaling?i.height=this.getAvailableSpace(e,void 0!==this.anchorRect?this.anchorRect.top:0,void 0!==this.anchorRect?this.anchorRect.bottom:0,void 0!==this.anchorRect?this.anchorRect.height:0,void 0!==this.viewportRect?this.viewportRect.top:0,void 0!==this.viewportRect?this.viewportRect.bottom:0):"anchor"===this.verticalScaling&&(i.height=void 0!==this.anchorRect?this.anchorRect.height:0),i},this.startAutoUpdateEventListeners=()=>{window.addEventListener("resize",this.update,{passive:!0}),window.addEventListener("scroll",this.update,{passive:!0,capture:!0}),null!==this.resizeDetector&&null!==this.viewportElement&&this.resizeDetector.observe(this.viewportElement)},this.stopAutoUpdateEventListeners=()=>{window.removeEventListener("resize",this.update),window.removeEventListener("scroll",this.update),null!==this.resizeDetector&&null!==this.viewportElement&&this.resizeDetector.unobserve(this.viewportElement)}}anchorChanged(){this.initialLayoutComplete&&(this.anchorElement=this.getAnchor())}viewportChanged(){this.initialLayoutComplete&&(this.viewportElement=this.getViewport())}horizontalPositioningModeChanged(){this.requestReset()}horizontalDefaultPositionChanged(){this.updateForAttributeChange()}horizontalViewportLockChanged(){this.updateForAttributeChange()}horizontalInsetChanged(){this.updateForAttributeChange()}horizontalThresholdChanged(){this.updateForAttributeChange()}horizontalScalingChanged(){this.updateForAttributeChange()}verticalPositioningModeChanged(){this.requestReset()}verticalDefaultPositionChanged(){this.updateForAttributeChange()}verticalViewportLockChanged(){this.updateForAttributeChange()}verticalInsetChanged(){this.updateForAttributeChange()}verticalThresholdChanged(){this.updateForAttributeChange()}verticalScalingChanged(){this.updateForAttributeChange()}fixedPlacementChanged(){this.$fastController.isConnected&&this.initialLayoutComplete&&this.initialize()}autoUpdateModeChanged(t,e){this.$fastController.isConnected&&this.initialLayoutComplete&&("auto"===t&&this.stopAutoUpdateEventListeners(),"auto"===e&&this.startAutoUpdateEventListeners())}anchorElementChanged(){this.requestReset()}viewportElementChanged(){this.$fastController.isConnected&&this.initialLayoutComplete&&this.initialize()}connectedCallback(){super.connectedCallback(),"auto"===this.autoUpdateMode&&this.startAutoUpdateEventListeners(),this.initialize()}disconnectedCallback(){super.disconnectedCallback(),"auto"===this.autoUpdateMode&&this.stopAutoUpdateEventListeners(),this.stopObservers(),this.disconnectResizeDetector()}adoptedCallback(){this.initialize()}disconnectResizeDetector(){null!==this.resizeDetector&&(this.resizeDetector.disconnect(),this.resizeDetector=null)}initializeResizeDetector(){this.disconnectResizeDetector(),this.resizeDetector=new window.ResizeObserver(this.handleResize)}updateForAttributeChange(){this.$fastController.isConnected&&this.initialLayoutComplete&&(this.forceUpdate=!0,this.update())}initialize(){this.initializeResizeDetector(),null===this.anchorElement&&(this.anchorElement=this.getAnchor()),this.requestReset()}requestReset(){this.$fastController.isConnected&&!1===this.pendingReset&&(this.setInitialState(),d.queueUpdate(()=>this.reset()),this.pendingReset=!0)}setInitialState(){this.initialLayoutComplete=!1,this.regionVisible=!1,this.translateX=0,this.translateY=0,this.baseHorizontalOffset=0,this.baseVerticalOffset=0,this.viewportRect=void 0,this.regionRect=void 0,this.anchorRect=void 0,this.verticalPosition=void 0,this.horizontalPosition=void 0,this.style.opacity="0",this.style.pointerEvents="none",this.forceUpdate=!1,this.style.position=this.fixedPlacement?"fixed":"absolute",this.updatePositionClasses(),this.updateRegionStyle()}}di.intersectionService=new class{constructor(){this.intersectionDetector=null,this.observedElements=new Map,this.requestPosition=(t,e)=>{var i;null!==this.intersectionDetector&&(this.observedElements.has(t)?null===(i=this.observedElements.get(t))||void 0===i||i.push(e):(this.observedElements.set(t,[e]),this.intersectionDetector.observe(t)))},this.cancelRequestPosition=(t,e)=>{const i=this.observedElements.get(t);if(void 0!==i){const t=i.indexOf(e);-1!==t&&i.splice(t,1)}},this.initializeIntersectionDetector=()=>{t.IntersectionObserver&&(this.intersectionDetector=new IntersectionObserver(this.handleIntersection,{root:null,rootMargin:"0px",threshold:[0,1]}))},this.handleIntersection=t=>{if(null===this.intersectionDetector)return;const e=[],i=[];t.forEach(t=>{var o;null===(o=this.intersectionDetector)||void 0===o||o.unobserve(t.target);const s=this.observedElements.get(t.target);void 0!==s&&(s.forEach(o=>{let s=e.indexOf(o);-1===s&&(s=e.length,e.push(o),i.push([])),i[s].push(t)}),this.observedElements.delete(t.target))}),e.forEach((t,e)=>{t(i[e])})},this.initializeIntersectionDetector()}},ne([ft],di.prototype,"anchor",void 0),ne([ft],di.prototype,"viewport",void 0),ne([ft({attribute:"horizontal-positioning-mode"})],di.prototype,"horizontalPositioningMode",void 0),ne([ft({attribute:"horizontal-default-position"})],di.prototype,"horizontalDefaultPosition",void 0),ne([ft({attribute:"horizontal-viewport-lock",mode:"boolean"})],di.prototype,"horizontalViewportLock",void 0),ne([ft({attribute:"horizontal-inset",mode:"boolean"})],di.prototype,"horizontalInset",void 0),ne([ft({attribute:"horizontal-threshold"})],di.prototype,"horizontalThreshold",void 0),ne([ft({attribute:"horizontal-scaling"})],di.prototype,"horizontalScaling",void 0),ne([ft({attribute:"vertical-positioning-mode"})],di.prototype,"verticalPositioningMode",void 0),ne([ft({attribute:"vertical-default-position"})],di.prototype,"verticalDefaultPosition",void 0),ne([ft({attribute:"vertical-viewport-lock",mode:"boolean"})],di.prototype,"verticalViewportLock",void 0),ne([ft({attribute:"vertical-inset",mode:"boolean"})],di.prototype,"verticalInset",void 0),ne([ft({attribute:"vertical-threshold"})],di.prototype,"verticalThreshold",void 0),ne([ft({attribute:"vertical-scaling"})],di.prototype,"verticalScaling",void 0),ne([ft({attribute:"fixed-placement",mode:"boolean"})],di.prototype,"fixedPlacement",void 0),ne([ft({attribute:"auto-update-mode"})],di.prototype,"autoUpdateMode",void 0),ne([T],di.prototype,"anchorElement",void 0),ne([T],di.prototype,"viewportElement",void 0),ne([T],di.prototype,"initialLayoutComplete",void 0);class ui extends je{constructor(){super(...arguments),this.generateBadgeStyle=()=>{if(!this.fill&&!this.color)return;const t=`background-color: var(--badge-fill-${this.fill});`,e=`color: var(--badge-color-${this.color});`;return this.fill&&!this.color?t:this.color&&!this.fill?e:`${e} ${t}`}}}ne([ft({attribute:"fill"})],ui.prototype,"fill",void 0),ne([ft({attribute:"color"})],ui.prototype,"color",void 0),ne([ft({mode:"boolean"})],ui.prototype,"circular",void 0);class pi extends li{constructor(){super(...arguments),this.separator=!0}}ne([T],pi.prototype,"separator",void 0),_e(pi,te,ci);class gi extends je{slottedBreadcrumbItemsChanged(){if(this.$fastController.isConnected){if(void 0===this.slottedBreadcrumbItems||0===this.slottedBreadcrumbItems.length)return;const t=this.slottedBreadcrumbItems[this.slottedBreadcrumbItems.length-1];this.setItemSeparator(t),this.setLastItemAriaCurrent(t)}}setItemSeparator(t){this.slottedBreadcrumbItems.forEach(t=>{t instanceof pi&&(t.separator=!0)}),t instanceof pi&&(t.separator=!1)}findChildWithHref(t){var e,i;return t.childElementCount>0?t.querySelector("a[href]"):(null===(e=t.shadowRoot)||void 0===e?void 0:e.childElementCount)?null===(i=t.shadowRoot)||void 0===i?void 0:i.querySelector("a[href]"):null}setLastItemAriaCurrent(t){const e=this.findChildWithHref(t);null===e&&t.hasAttribute("href")&&t instanceof pi?t.ariaCurrent="page":null!==e&&e.setAttribute("aria-current","page")}}ne([T],gi.prototype,"slottedBreadcrumbItems",void 0);const fi="ElementInternals"in window&&"setFormValue"in window.ElementInternals.prototype,mi=new Map;function bi(t){const i=class extends t{constructor(...t){super(...t),this.dirtyValue=!1,this.disabled=!1,this.proxyEventsToBlock=["change","click"],this.proxyInitialized=!1,this.required=!1,this.initialValue=this.initialValue||"",this.elementInternals||(this.formResetCallback=this.formResetCallback.bind(this))}static get formAssociated(){return fi}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 t=this.proxy.labels,e=Array.from(this.proxy.getRootNode().querySelectorAll(`[for='${this.id}']`)),i=t?e.concat(Array.from(t)):e;return Object.freeze(i)}return e}valueChanged(t,e){this.dirtyValue=!0,this.proxy instanceof HTMLElement&&(this.proxy.value=this.value),this.currentValue=this.value,this.setFormValue(this.value),this.validate()}currentValueChanged(){this.value=this.currentValue}initialValueChanged(t,e){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}disabledChanged(t,e){this.proxy instanceof HTMLElement&&(this.proxy.disabled=this.disabled),d.queueUpdate(()=>this.classList.toggle("disabled",this.disabled))}nameChanged(t,e){this.proxy instanceof HTMLElement&&(this.proxy.name=this.name)}requiredChanged(t,e){this.proxy instanceof HTMLElement&&(this.proxy.required=this.required),d.queueUpdate(()=>this.classList.toggle("required",this.required)),this.validate()}get elementInternals(){if(!fi)return null;let t=mi.get(this);return t||(t=this.attachInternals(),mi.set(this,t)),t}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(t=>this.proxy.removeEventListener(t,this.stopPropagation)),!this.elementInternals&&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(t,e,i){this.elementInternals?this.elementInternals.setValidity(t,e,i):"string"==typeof e&&this.proxy.setCustomValidity(e)}formDisabledCallback(t){this.disabled=t}formResetCallback(){this.value=this.initialValue,this.dirtyValue=!1}attachProxy(){var t;this.proxyInitialized||(this.proxyInitialized=!0,this.proxy.style.display="none",this.proxyEventsToBlock.forEach(t=>this.proxy.addEventListener(t,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===(t=this.shadowRoot)||void 0===t||t.appendChild(this.proxySlot),this.appendChild(this.proxy)}detachProxy(){var t;this.removeChild(this.proxy),null===(t=this.shadowRoot)||void 0===t||t.removeChild(this.proxySlot)}validate(){this.proxy instanceof HTMLElement&&this.setValidity(this.proxy.validity,this.proxy.validationMessage)}setFormValue(t,e){this.elementInternals&&this.elementInternals.setFormValue(t,e||t)}_keypressHandler(t){switch(t.key){case"Enter":if(this.form instanceof HTMLFormElement){const t=this.form.querySelector("[type=submit]");null==t||t.click()}}}stopPropagation(t){t.stopPropagation()}};return ft({mode:"boolean"})(i.prototype,"disabled"),ft({mode:"fromView",attribute:"value"})(i.prototype,"initialValue"),ft({attribute:"current-value"})(i.prototype,"currentValue"),ft(i.prototype,"name"),ft({mode:"boolean"})(i.prototype,"required"),T(i.prototype,"value"),i}function vi(t){class e extends(bi(t)){}class i extends e{constructor(...t){super(t),this.dirtyChecked=!1,this.checkedAttribute=!1,this.checked=!1,this.dirtyChecked=!1}checkedAttributeChanged(){this.defaultChecked=this.checkedAttribute}defaultCheckedChanged(){this.dirtyChecked||(this.checked=this.defaultChecked,this.dirtyChecked=!1)}checkedChanged(t,e){this.dirtyChecked||(this.dirtyChecked=!0),this.currentChecked=this.checked,this.updateForm(),this.proxy instanceof HTMLInputElement&&(this.proxy.checked=this.checked),void 0!==t&&this.$emit("change"),this.validate()}currentCheckedChanged(t,e){this.checked=this.currentChecked}updateForm(){const t=this.checked?this.value:null;this.setFormValue(t,t)}connectedCallback(){super.connectedCallback(),this.updateForm()}formResetCallback(){super.formResetCallback(),this.checked=!!this.checkedAttribute,this.dirtyChecked=!1}}return ft({attribute:"checked",mode:"boolean"})(i.prototype,"checkedAttribute"),ft({attribute:"current-checked",converter:ut})(i.prototype,"currentChecked"),T(i.prototype,"defaultChecked"),T(i.prototype,"checked"),i}class yi extends je{}class xi extends(bi(yi)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class $i extends xi{constructor(){super(...arguments),this.handleClick=t=>{var e;this.disabled&&(null===(e=this.defaultSlottedContent)||void 0===e?void 0:e.length)<=1&&t.stopPropagation()},this.handleSubmission=()=>{if(!this.form)return;const t=this.proxy.isConnected;t||this.attachProxy(),"function"==typeof this.form.requestSubmit?this.form.requestSubmit(this.proxy):this.proxy.click(),t||this.detachProxy()},this.handleFormReset=()=>{var t;null===(t=this.form)||void 0===t||t.reset()},this.handleUnsupportedDelegatesFocus=()=>{var t;window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&(null===(t=this.$fastController.definition.shadowOptions)||void 0===t?void 0:t.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(t,e){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.type),"submit"===e&&this.addEventListener("click",this.handleSubmission),"submit"===t&&this.removeEventListener("click",this.handleSubmission),"reset"===e&&this.addEventListener("click",this.handleFormReset),"reset"===t&&this.removeEventListener("click",this.handleFormReset)}connectedCallback(){var t;super.connectedCallback(),this.proxy.setAttribute("type",this.type),this.handleUnsupportedDelegatesFocus();const e=Array.from(null===(t=this.control)||void 0===t?void 0:t.children);e&&e.forEach(t=>{t.addEventListener("click",this.handleClick)})}disconnectedCallback(){var t;super.disconnectedCallback();const e=Array.from(null===(t=this.control)||void 0===t?void 0:t.children);e&&e.forEach(t=>{t.removeEventListener("click",this.handleClick)})}}ne([ft({mode:"boolean"})],$i.prototype,"autofocus",void 0),ne([ft({attribute:"form"})],$i.prototype,"formId",void 0),ne([ft],$i.prototype,"formaction",void 0),ne([ft],$i.prototype,"formenctype",void 0),ne([ft],$i.prototype,"formmethod",void 0),ne([ft({mode:"boolean"})],$i.prototype,"formnovalidate",void 0),ne([ft],$i.prototype,"formtarget",void 0),ne([ft],$i.prototype,"type",void 0),ne([T],$i.prototype,"defaultSlottedContent",void 0);class wi{}ne([ft({attribute:"aria-expanded",mode:"fromView"})],wi.prototype,"ariaExpanded",void 0),ne([ft({attribute:"aria-pressed",mode:"fromView"})],wi.prototype,"ariaPressed",void 0),_e(wi,ai),_e($i,te,wi);class ki{constructor(t){if(this.dayFormat="numeric",this.weekdayFormat="long",this.monthFormat="long",this.yearFormat="numeric",this.date=new Date,t)for(const e in t){const i=t[e];"date"===e?this.date=this.getDateObject(i):this[e]=i}}getDateObject(t){if("string"==typeof t){const e=t.split(/[/-]/);return e.length<3?new Date:new Date(parseInt(e[2],10),parseInt(e[0],10)-1,parseInt(e[1],10))}if("day"in t&&"month"in t&&"year"in t){const{day:e,month:i,year:o}=t;return new Date(o,i-1,e)}return t}getDate(t=this.date,e={weekday:this.weekdayFormat,month:this.monthFormat,day:this.dayFormat,year:this.yearFormat},i=this.locale){const o=this.getDateObject(t),s=Object.assign({timeZone:"utc"},e);return new Intl.DateTimeFormat(i,s).format(o)}getDay(t=this.date.getDate(),e=this.dayFormat,i=this.locale){return this.getDate({month:1,day:t,year:2020},{day:e},i)}getMonth(t=this.date.getMonth()+1,e=this.monthFormat,i=this.locale){return this.getDate({month:t,day:2,year:2020},{month:e},i)}getYear(t=this.date.getFullYear(),e=this.yearFormat,i=this.locale){return this.getDate({month:2,day:2,year:t},{year:e},i)}getWeekday(t=0,e=this.weekdayFormat,i=this.locale){const o=`1-${t+1}-2017`;return this.getDate(o,{weekday:e},i)}getWeekdays(t=this.weekdayFormat,e=this.locale){return Array(7).fill(null).map((i,o)=>this.getWeekday(o,t,e))}}class Ci extends je{constructor(){super(...arguments),this.dateFormatter=new ki,this.readonly=!1,this.locale="en-US",this.month=(new Date).getMonth()+1,this.year=(new Date).getFullYear(),this.dayFormat="numeric",this.weekdayFormat="short",this.monthFormat="long",this.yearFormat="numeric",this.minWeeks=0,this.disabledDates="",this.selectedDates="",this.oneDayInMs=864e5}localeChanged(){this.dateFormatter.locale=this.locale}dayFormatChanged(){this.dateFormatter.dayFormat=this.dayFormat}weekdayFormatChanged(){this.dateFormatter.weekdayFormat=this.weekdayFormat}monthFormatChanged(){this.dateFormatter.monthFormat=this.monthFormat}yearFormatChanged(){this.dateFormatter.yearFormat=this.yearFormat}getMonthInfo(t=this.month,e=this.year){const i=t=>new Date(t.getFullYear(),t.getMonth(),1).getDay(),o=t=>{const e=new Date(t.getFullYear(),t.getMonth()+1,1);return new Date(e.getTime()-this.oneDayInMs).getDate()},s=new Date(e,t-1),n=new Date(e,t),r=new Date(e,t-2);return{length:o(s),month:t,start:i(s),year:e,previous:{length:o(r),month:r.getMonth()+1,start:i(r),year:r.getFullYear()},next:{length:o(n),month:n.getMonth()+1,start:i(n),year:n.getFullYear()}}}getDays(t=this.getMonthInfo(),e=this.minWeeks){e=e>10?10:e;const{start:i,length:o,previous:s,next:n}=t,r=[];let a=1-i;for(;a<o+1||r.length<e||r[r.length-1].length%7!=0;){const{month:e,year:i}=a<1?s:a>o?n:t,l=a<1?s.length+a:a>o?a-o:a,c=`${e}-${l}-${i}`,h={day:l,month:e,year:i,disabled:this.dateInString(c,this.disabledDates),selected:this.dateInString(c,this.selectedDates)},d=r[r.length-1];0===r.length||d.length%7==0?r.push([h]):d.push(h),a++}return r}dateInString(t,e){const i=e.split(",").map(t=>t.trim());return t="string"==typeof t?t:`${t.getMonth()+1}-${t.getDate()}-${t.getFullYear()}`,i.some(e=>e===t)}getDayClassNames(t,e){const{day:i,month:o,year:s,disabled:n,selected:r}=t;return["day",e===`${o}-${i}-${s}`&&"today",this.month!==o&&"inactive",n&&"disabled",r&&"selected"].filter(Boolean).join(" ")}getWeekdayText(){const t=this.dateFormatter.getWeekdays().map(t=>({text:t}));if("long"!==this.weekdayFormat){const e=this.dateFormatter.getWeekdays("long");t.forEach((t,i)=>{t.abbr=e[i]})}return t}handleDateSelect(t,e){t.preventDefault,this.$emit("dateselected",e)}handleKeydown(t,e){return"Enter"===t.key&&this.handleDateSelect(t,e),!0}}var Fi,Ii,Ti;ne([ft({mode:"boolean"})],Ci.prototype,"readonly",void 0),ne([ft],Ci.prototype,"locale",void 0),ne([ft({converter:pt})],Ci.prototype,"month",void 0),ne([ft({converter:pt})],Ci.prototype,"year",void 0),ne([ft({attribute:"day-format",mode:"fromView"})],Ci.prototype,"dayFormat",void 0),ne([ft({attribute:"weekday-format",mode:"fromView"})],Ci.prototype,"weekdayFormat",void 0),ne([ft({attribute:"month-format",mode:"fromView"})],Ci.prototype,"monthFormat",void 0),ne([ft({attribute:"year-format",mode:"fromView"})],Ci.prototype,"yearFormat",void 0),ne([ft({attribute:"min-weeks",converter:pt})],Ci.prototype,"minWeeks",void 0),ne([ft({attribute:"disabled-dates"})],Ci.prototype,"disabledDates",void 0),ne([ft({attribute:"selected-dates"})],Ci.prototype,"selectedDates",void 0),function(t){t.none="none",t.default="default",t.sticky="sticky"}(Fi||(Fi={})),function(t){t.default="default",t.columnHeader="columnheader",t.rowHeader="rowheader"}(Ii||(Ii={})),function(t){t.default="default",t.header="header",t.stickyHeader="sticky-header"}(Ti||(Ti={}));class Di extends je{constructor(){super(...arguments),this.rowType=Ti.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 Gt(t=>t.columnDefinitions,t=>t.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(t){this.contains(t.target)||(this.isActiveRow=!1,this.focusColumnIndex=0)}handleCellFocus(t){this.isActiveRow=!0,this.focusColumnIndex=this.cellElements.indexOf(t.target),this.$emit("row-focused",this)}handleKeydown(t){if(t.defaultPrevented)return;let e=0;switch(t.key){case"ArrowLeft":e=Math.max(0,this.focusColumnIndex-1),this.cellElements[e].focus(),t.preventDefault();break;case"ArrowRight":e=Math.min(this.cellElements.length-1,this.focusColumnIndex+1),this.cellElements[e].focus(),t.preventDefault();break;case"Home":t.ctrlKey||(this.cellElements[0].focus(),t.preventDefault());break;case"End":t.ctrlKey||(this.cellElements[this.cellElements.length-1].focus(),t.preventDefault())}}updateItemTemplate(){this.activeCellItemTemplate=this.rowType===Ti.default&&void 0!==this.cellItemTemplate?this.cellItemTemplate:this.rowType===Ti.default&&void 0===this.cellItemTemplate?this.defaultCellItemTemplate:void 0!==this.headerCellItemTemplate?this.headerCellItemTemplate:this.defaultHeaderCellItemTemplate}}ne([ft({attribute:"grid-template-columns"})],Di.prototype,"gridTemplateColumns",void 0),ne([ft({attribute:"row-type"})],Di.prototype,"rowType",void 0),ne([T],Di.prototype,"rowData",void 0),ne([T],Di.prototype,"columnDefinitions",void 0),ne([T],Di.prototype,"cellItemTemplate",void 0),ne([T],Di.prototype,"headerCellItemTemplate",void 0),ne([T],Di.prototype,"rowIndex",void 0),ne([T],Di.prototype,"isActiveRow",void 0),ne([T],Di.prototype,"activeCellItemTemplate",void 0),ne([T],Di.prototype,"defaultCellItemTemplate",void 0),ne([T],Di.prototype,"defaultHeaderCellItemTemplate",void 0),ne([T],Di.prototype,"cellElements",void 0);class Vi extends je{constructor(){super(),this.generateHeader=Fi.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=(t,e,i)=>{if(0===this.rowElements.length)return this.focusRowIndex=0,void(this.focusColumnIndex=0);const o=Math.max(0,Math.min(this.rowElements.length-1,t)),s=this.rowElements[o].querySelectorAll('[role="cell"], [role="gridcell"], [role="columnheader"], [role="rowheader"]'),n=s[Math.max(0,Math.min(s.length-1,e))];i&&this.scrollHeight!==this.clientHeight&&(o<this.focusRowIndex&&this.scrollTop>0||o>this.focusRowIndex&&this.scrollTop<this.scrollHeight-this.clientHeight)&&n.scrollIntoView({block:"center",inline:"center"}),n.focus()},this.onChildListChange=(t,e)=>{t&&t.length&&(t.forEach(t=>{t.addedNodes.forEach(t=>{1===t.nodeType&&"row"===t.getAttribute("role")&&(t.columnDefinitions=this.columnDefinitions)})}),this.queueRowIndexUpdate())},this.queueRowIndexUpdate=()=>{this.rowindexUpdateQueued||(this.rowindexUpdateQueued=!0,d.queueUpdate(this.updateRowIndexes))},this.updateRowIndexes=()=>{const t=void 0===this.gridTemplateColumns?this.generatedGridTemplateColumns:this.gridTemplateColumns;this.rowElements.forEach((e,i)=>{const o=e;o.rowIndex=i,o.gridTemplateColumns=t,this.columnDefinitionsStale&&(o.columnDefinitions=this.columnDefinitions)}),this.rowindexUpdateQueued=!1,this.columnDefinitionsStale=!1}}static generateTemplateColumns(t){let e="";return t.forEach(t=>{e=`${e}${""===e?"":" "}1fr`}),e}generateHeaderChanged(){this.$fastController.isConnected&&this.toggleGeneratedHeader()}gridTemplateColumnsChanged(){this.$fastController.isConnected&&this.updateRowIndexes()}rowsDataChanged(){null===this.columnDefinitions&&this.rowsData.length>0&&(this.columnDefinitions=Vi.generateColumns(this.rowsData[0]))}columnDefinitionsChanged(){null!==this.columnDefinitions?(this.generatedGridTemplateColumns=Vi.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 Gt(t=>t.rowsData,t=>t.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}),d.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(t){this.isUpdatingFocus=!0;const e=t.target;this.focusRowIndex=this.rowElements.indexOf(e),this.focusColumnIndex=e.focusColumnIndex,this.setAttribute("tabIndex","-1"),this.isUpdatingFocus=!1}handleFocus(t){this.focusOnCell(this.focusRowIndex,this.focusColumnIndex,!0)}handleFocusOut(t){null!==t.relatedTarget&&this.contains(t.relatedTarget)||this.setAttribute("tabIndex","0")}handleKeydown(t){if(t.defaultPrevented)return;let e;const i=this.rowElements.length-1,o=this.offsetHeight+this.scrollTop,s=this.rowElements[i];switch(t.key){case"ArrowUp":t.preventDefault(),this.focusOnCell(this.focusRowIndex-1,this.focusColumnIndex,!0);break;case"ArrowDown":t.preventDefault(),this.focusOnCell(this.focusRowIndex+1,this.focusColumnIndex,!0);break;case"PageUp":if(t.preventDefault(),0===this.rowElements.length){this.focusOnCell(0,0,!1);break}if(0===this.focusRowIndex)return void this.focusOnCell(0,this.focusColumnIndex,!1);for(e=this.focusRowIndex-1;e>=0;e--){const t=this.rowElements[e];if(t.offsetTop<this.scrollTop){this.scrollTop=t.offsetTop+t.clientHeight-this.clientHeight;break}}this.focusOnCell(e,this.focusColumnIndex,!1);break;case"PageDown":if(t.preventDefault(),0===this.rowElements.length){this.focusOnCell(0,0,!1);break}if(this.focusRowIndex>=i||s.offsetTop+s.offsetHeight<=o)return void this.focusOnCell(i,this.focusColumnIndex,!1);for(e=this.focusRowIndex+1;e<=i;e++){const t=this.rowElements[e];if(t.offsetTop+t.offsetHeight>o){let e=0;this.generateHeader===Fi.sticky&&null!==this.generatedHeader&&(e=this.generatedHeader.clientHeight),this.scrollTop=t.offsetTop-e;break}}this.focusOnCell(e,this.focusColumnIndex,!1);break;case"Home":t.ctrlKey&&(t.preventDefault(),this.focusOnCell(0,0,!0));break;case"End":t.ctrlKey&&null!==this.columnDefinitions&&(t.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,d.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!==Fi.none){const t=document.createElement(this.rowElementTag);return this.generatedHeader=t,this.generatedHeader.columnDefinitions=this.columnDefinitions,this.generatedHeader.gridTemplateColumns=this.gridTemplateColumns,this.generatedHeader.rowType=this.generateHeader===Fi.sticky?Ti.stickyHeader:Ti.header,void(null===this.firstChild&&null===this.rowsPlaceholder||this.insertBefore(t,null!==this.firstChild?this.firstChild:this.rowsPlaceholder))}}}Vi.generateColumns=t=>Object.getOwnPropertyNames(t).map((t,e)=>({columnDataKey:t,gridColumn:""+e})),ne([ft({attribute:"generate-header"})],Vi.prototype,"generateHeader",void 0),ne([ft({attribute:"grid-template-columns"})],Vi.prototype,"gridTemplateColumns",void 0),ne([T],Vi.prototype,"rowsData",void 0),ne([T],Vi.prototype,"columnDefinitions",void 0),ne([T],Vi.prototype,"rowItemTemplate",void 0),ne([T],Vi.prototype,"cellItemTemplate",void 0),ne([T],Vi.prototype,"headerCellItemTemplate",void 0),ne([T],Vi.prototype,"focusRowIndex",void 0),ne([T],Vi.prototype,"focusColumnIndex",void 0),ne([T],Vi.prototype,"defaultRowItemTemplate",void 0),ne([T],Vi.prototype,"rowElementTag",void 0),ne([T],Vi.prototype,"rowElements",void 0);const Si=nt`<template>${t=>null===t.rowData||null===t.columnDefinition||null===t.columnDefinition.columnDataKey?null:t.rowData[t.columnDefinition.columnDataKey]}</template>`,Ri=nt`<template>${t=>null===t.columnDefinition?null:void 0===t.columnDefinition.title?t.columnDefinition.columnDataKey:t.columnDefinition.title}</template>`;class Ei extends je{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(t,e){this.$fastController.isConnected&&this.updateCellView()}connectedCallback(){var t;super.connectedCallback(),this.addEventListener("focusin",this.handleFocusin),this.addEventListener("focusout",this.handleFocusout),this.addEventListener("keydown",this.handleKeydown),this.style.gridColumn=""+(void 0===(null===(t=this.columnDefinition)||void 0===t?void 0:t.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(t){if(!this.isActiveCell){switch(this.isActiveCell=!0,this.cellType){case Ii.columnHeader:if(null!==this.columnDefinition&&!0!==this.columnDefinition.headerCellInternalFocusQueue&&"function"==typeof this.columnDefinition.headerCellFocusTargetCallback){const t=this.columnDefinition.headerCellFocusTargetCallback(this);null!==t&&t.focus()}break;default:if(null!==this.columnDefinition&&!0!==this.columnDefinition.cellInternalFocusQueue&&"function"==typeof this.columnDefinition.cellFocusTargetCallback){const t=this.columnDefinition.cellFocusTargetCallback(this);null!==t&&t.focus()}}this.$emit("cell-focused",this)}}handleFocusout(t){this===document.activeElement||this.contains(document.activeElement)||(this.isActiveCell=!1,this.isInternalFocused=!1)}handleKeydown(t){if(!(t.defaultPrevented||null===this.columnDefinition||this.cellType===Ii.default&&!0!==this.columnDefinition.cellInternalFocusQueue||this.cellType===Ii.columnHeader&&!0!==this.columnDefinition.headerCellInternalFocusQueue))switch(t.key){case"Enter":case"F2":if(this.isInternalFocused||void 0===this.columnDefinition)return;switch(this.cellType){case Ii.default:if(void 0!==this.columnDefinition.cellFocusTargetCallback){const e=this.columnDefinition.cellFocusTargetCallback(this);null!==e&&(this.isInternalFocused=!0,e.focus()),t.preventDefault()}break;case Ii.columnHeader:if(void 0!==this.columnDefinition.headerCellFocusTargetCallback){const e=this.columnDefinition.headerCellFocusTargetCallback(this);null!==e&&(this.isInternalFocused=!0,e.focus()),t.preventDefault()}}break;case"Escape":this.isInternalFocused&&(this.focus(),this.isInternalFocused=!1,t.preventDefault())}}updateCellView(){if(this.disconnectCellView(),null!==this.columnDefinition)switch(this.cellType){case Ii.columnHeader:void 0!==this.columnDefinition.headerCellTemplate?this.customCellView=this.columnDefinition.headerCellTemplate.render(this,this):this.customCellView=Ri.render(this,this);break;case void 0:case Ii.rowHeader:case Ii.default:void 0!==this.columnDefinition.cellTemplate?this.customCellView=this.columnDefinition.cellTemplate.render(this,this):this.customCellView=Si.render(this,this)}}disconnectCellView(){null!==this.customCellView&&(this.customCellView.dispose(),this.customCellView=null)}}ne([ft({attribute:"cell-type"})],Ei.prototype,"cellType",void 0),ne([ft({attribute:"grid-column"})],Ei.prototype,"gridColumn",void 0),ne([T],Ei.prototype,"rowData",void 0),ne([T],Ei.prototype,"columnDefinition",void 0);const Oi=nt`<div class="title" part="title" aria-label="${t=>t.dateFormatter.getDate(`${t.month}-2-${t.year}`,{month:"long",year:"numeric"})}"><span part="month">${t=>t.dateFormatter.getMonth(t.month)}</span><span part="year">${t=>t.dateFormatter.getYear(t.year)}</span></div>`,Li=(t,e)=>{const i=t.tagFor(Di);return nt`<${i} class="week" part="week" role="row" role-type="default" grid-template-columns="1fr 1fr 1fr 1fr 1fr 1fr 1fr">${Wt(t=>t,((t,e)=>{const i=t.tagFor(Ei);return nt`<${i} class="${(t,i)=>i.parentContext.parent.getDayClassNames(t,e)}" part="day" tabindex="-1" role="gridcell" grid-column="${(t,e)=>e.index+1}" @click="${(t,e)=>e.parentContext.parent.handleDateSelect(e.event,t)}" @keydown="${(t,e)=>e.parentContext.parent.handleKeydown(e.event,t)}" aria-label="${(t,e)=>e.parentContext.parent.dateFormatter.getDate(`${t.month}-${t.day}-${t.year}`,{month:"long",day:"numeric"})}"><div class="date" part="${t=>e===`${t.month}-${t.day}-${t.year}`?"today":"date"}">${(t,e)=>e.parentContext.parent.dateFormatter.getDay(t.day)}</div><slot name="${t=>t.month}-${t=>t.day}-${t=>t.year}"></slot></${i}>`})(t,e),{positioning:!0})}</${i}>`},Ai=(t,e)=>{const i=t.tagFor(Vi),o=t.tagFor(Di);return nt`<${i} class="days interact" part="days" generate-header="none"><${o} class="week-days" part="week-days" role="row" row-type="header" grid-template-columns="1fr 1fr 1fr 1fr 1fr 1fr 1fr">${Wt(t=>t.getWeekdayText(),(t=>{const e=t.tagFor(Ei);return nt`<${e} class="week-day" part="week-day" tabindex="-1" grid-column="${(t,e)=>e.index+1}" abbr="${t=>t.abbr}">${t=>t.text}</${e}>`})(t),{positioning:!0})}</${o}>${Wt(t=>t.getDays(),Li(t,e))}</${i}>`};class zi extends je{}class Hi extends je{}class Pi extends(vi(Hi)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class Mi extends Pi{constructor(){super(),this.initialValue="on",this.indeterminate=!1,this.keypressHandler=t=>{switch(t.key){case" ":this.checked=!this.checked}},this.clickHandler=t=>{this.disabled||this.readOnly||(this.checked=!this.checked)},this.proxy.setAttribute("type","checkbox")}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}}function Bi(t){return Ke(t)&&("option"===t.getAttribute("role")||t instanceof HTMLOptionElement)}ne([ft({attribute:"readonly",mode:"boolean"})],Mi.prototype,"readOnly",void 0),ne([T],Mi.prototype,"defaultSlottedNodes",void 0),ne([T],Mi.prototype,"indeterminate",void 0);class Ni extends je{constructor(t,e,i,o){super(),this.defaultSelected=!1,this.dirtySelected=!1,this.selected=this.defaultSelected,this.dirtyValue=!1,this.initialValue=this.initialValue||"",t&&(this.textContent=t),e&&(this.initialValue=e),i&&(this.defaultSelected=i),o&&(this.selected=o),this.proxy=new Option(""+this.textContent,this.initialValue,this.defaultSelected,this.selected),this.proxy.disabled=this.disabled}checkedChanged(t,e){this.ariaChecked="boolean"!=typeof e?void 0:e?"true":"false"}defaultSelectedChanged(){this.dirtySelected||(this.selected=this.defaultSelected,this.proxy instanceof HTMLOptionElement&&(this.proxy.selected=this.defaultSelected))}disabledChanged(t,e){this.ariaDisabled=this.disabled?"true":"false",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.ariaSelected=this.selected?"true":"false",this.dirtySelected||(this.dirtySelected=!0),this.proxy instanceof HTMLOptionElement&&(this.proxy.selected=this.selected)}initialValueChanged(t,e){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(t){this._value=t,this.dirtyValue=!0,this.proxy instanceof HTMLElement&&(this.proxy.value=t),C.notify(this,"value")}get value(){return C.track(this,"value"),this._value?this._value:this.text}get form(){return this.proxy?this.proxy.form:null}}ne([T],Ni.prototype,"checked",void 0),ne([T],Ni.prototype,"defaultSelected",void 0),ne([ft({mode:"boolean"})],Ni.prototype,"disabled",void 0),ne([ft({attribute:"selected",mode:"boolean"})],Ni.prototype,"selectedAttribute",void 0),ne([T],Ni.prototype,"selected",void 0),ne([ft({attribute:"value",mode:"fromView"})],Ni.prototype,"initialValue",void 0);class ji{}ne([T],ji.prototype,"ariaChecked",void 0),ne([T],ji.prototype,"ariaPosInSet",void 0),ne([T],ji.prototype,"ariaSelected",void 0),ne([T],ji.prototype,"ariaSetSize",void 0),_e(ji,ai),_e(Ni,te,ji);class Ui extends je{constructor(){super(...arguments),this._options=[],this.selectedIndex=-1,this.selectedOptions=[],this.shouldSkipFocus=!1,this.typeaheadBuffer="",this.typeaheadExpired=!0,this.typeaheadTimeout=-1}get firstSelectedOption(){var t;return null!==(t=this.selectedOptions[0])&&void 0!==t?t:null}get length(){return this.options?this.options.length:0}get options(){return C.track(this,"options"),this._options}set options(t){this._options=t,C.notify(this,"options")}get typeAheadExpired(){return this.typeaheadExpired}set typeAheadExpired(t){this.typeaheadExpired=t}clickHandler(t){const e=t.target.closest("option,[role=option]");if(e&&!e.disabled)return this.selectedIndex=this.options.indexOf(e),!0}focusAndScrollOptionIntoView(){this.contains(document.activeElement)&&this.firstSelectedOption&&(this.firstSelectedOption.focus(),requestAnimationFrame(()=>{this.firstSelectedOption.scrollIntoView({block:"nearest"})}))}focusinHandler(t){this.shouldSkipFocus||t.target!==t.currentTarget||(this.setSelectedOptions(),this.focusAndScrollOptionIntoView()),this.shouldSkipFocus=!1}handleTypeAhead(t){this.typeaheadTimeout&&window.clearTimeout(this.typeaheadTimeout),this.typeaheadTimeout=window.setTimeout(()=>this.typeaheadExpired=!0,Ui.TYPE_AHEAD_TIMEOUT_MS),t.length>1||(this.typeaheadBuffer=`${this.typeaheadExpired?"":this.typeaheadBuffer}${t}`)}keydownHandler(t){if(this.disabled)return!0;this.shouldSkipFocus=!1;const e=t.key;switch(e){case"Home":t.shiftKey||(t.preventDefault(),this.selectFirstOption());break;case"ArrowDown":t.shiftKey||(t.preventDefault(),this.selectNextOption());break;case"ArrowUp":t.shiftKey||(t.preventDefault(),this.selectPreviousOption());break;case"End":t.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===e.length&&this.handleTypeAhead(""+e),!0}}mousedownHandler(t){return this.shouldSkipFocus=!this.contains(document.activeElement),!0}selectedIndexChanged(t,e){this.setSelectedOptions()}selectedOptionsChanged(t,e){this.$fastController.isConnected&&this.options.forEach(t=>{t.selected=e.includes(t)})}selectFirstOption(){this.disabled||(this.selectedIndex=0)}selectLastOption(){this.disabled||(this.selectedIndex=this.options.length-1)}selectNextOption(){!this.disabled&&this.options&&this.selectedIndex<this.options.length-1&&(this.selectedIndex+=1)}selectPreviousOption(){!this.disabled&&this.selectedIndex>0&&(this.selectedIndex=this.selectedIndex-1)}setDefaultSelectedOption(){if(this.options&&this.$fastController.isConnected){const t=this.options.findIndex(t=>null!==t.getAttribute("selected"));if(-1!==t)return void(this.selectedIndex=t);this.selectedIndex=0}}setSelectedOptions(){var t,e,i;if(this.$fastController.isConnected&&this.options){const o=null!==(t=this.options[this.selectedIndex])&&void 0!==t?t:null;this.selectedOptions=this.options.filter(t=>t.isSameNode(o)),this.ariaActiveDescendant=null!==(i=null===(e=this.firstSelectedOption)||void 0===e?void 0:e.id)&&void 0!==i?i:"",this.focusAndScrollOptionIntoView()}}slottedOptionsChanged(t,e){this.options=e.reduce((t,e)=>(Bi(e)&&t.push(e),t),[]);const i=""+this.options.length;this.options.forEach((t,e)=>{t.id||(t.id=ii("option-")),t.ariaPosInSet=""+(e+1),t.ariaSetSize=i}),this.$fastController.isConnected&&(this.setSelectedOptions(),this.setDefaultSelectedOption())}typeaheadBufferChanged(t,e){if(this.$fastController.isConnected){const t=this.typeaheadBuffer.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&"),e=new RegExp("^"+t,"gi"),i=this.options.filter(t=>t.text.trim().match(e));if(i.length){const t=this.options.indexOf(i[0]);t>-1&&(this.selectedIndex=t)}this.typeaheadExpired=!1}}}Ui.slottedOptionFilter=t=>Bi(t)&&!t.disabled&&!t.hidden,Ui.TYPE_AHEAD_TIMEOUT_MS=1e3,ne([ft({mode:"boolean"})],Ui.prototype,"disabled",void 0),ne([T],Ui.prototype,"selectedIndex",void 0),ne([T],Ui.prototype,"selectedOptions",void 0),ne([T],Ui.prototype,"slottedOptions",void 0),ne([T],Ui.prototype,"typeaheadBuffer",void 0);class qi{}ne([T],qi.prototype,"ariaActiveDescendant",void 0),ne([T],qi.prototype,"ariaDisabled",void 0),ne([T],qi.prototype,"ariaExpanded",void 0),_e(qi,ai),_e(Ui,qi);class _i extends Ui{mousedownHandler(t){if(t.offsetX>=0&&t.offsetX<=this.scrollWidth)return super.mousedownHandler(t)}sizeChanged(t,e){const i=Math.max(0,parseInt(e.toFixed(),10));i!==e&&d.queueUpdate(()=>{this.size=i})}}ne([ft({converter:pt})],_i.prototype,"size",void 0);var Gi,Wi;!function(t){t.above="above",t.below="below"}(Gi||(Gi={}));class Ki extends Ui{}class Xi extends(bi(Ki)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}!function(t){t.inline="inline",t.list="list",t.both="both",t.none="none"}(Wi||(Wi={}));class Yi extends Xi{constructor(){super(...arguments),this._value="",this.filteredOptions=[],this.filter="",this.forcedPosition=!1,this.listboxId=ii("listbox-"),this.maxHeight=0,this.open=!1,this.position=Gi.below}formResetCallback(){super.formResetCallback(),this.setDefaultSelectedOption(),this.updateValue()}get isAutocompleteInline(){return this.autocomplete===Wi.inline||this.isAutocompleteBoth}get isAutocompleteList(){return this.autocomplete===Wi.list||this.isAutocompleteBoth}get isAutocompleteBoth(){return this.autocomplete===Wi.both}maxHeightChanged(){this.listbox&&this.listbox.style.setProperty("--max-height",this.maxHeight+"px")}openChanged(){if(this.open)return this.ariaControls=this.listbox.id,this.ariaExpanded="true",this.setPositioning(),void this.focusAndScrollOptionIntoView();this.ariaControls="",this.ariaExpanded="false"}get options(){return C.track(this,"options"),this.filteredOptions.length?this.filteredOptions:this._options}set options(t){this._options=t,C.notify(this,"options")}placeholderChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.placeholder=this.placeholder)}get value(){return C.track(this,"value"),this._value}set value(t){var e,i,o;const s=""+this._value;if(this.$fastController.isConnected&&this.options){const s=this.options.findIndex(e=>e.text.toLowerCase()===t.toLowerCase()),n=null===(e=this.options[this.selectedIndex])||void 0===e?void 0:e.text,r=null===(i=this.options[s])||void 0===i?void 0:i.text;this.selectedIndex=n!==r?s:this.selectedIndex,t=(null===(o=this.firstSelectedOption)||void 0===o?void 0:o.text)||t}s!==t&&(this._value=t,super.valueChanged(s,t),C.notify(this,"value"))}clickHandler(t){if(!this.disabled){if(this.open){const e=t.target.closest("option,[role=option]");if(!e||e.disabled)return;this.selectedOptions=[e],this.control.value=e.text,this.updateValue(!0)}return this.open=!this.open,this.open&&this.control.focus(),!0}}connectedCallback(){super.connectedCallback(),this.forcedPosition=!!this.positionAttribute,this.value&&(this.initialValue=this.value),this.listbox.id||(this.listbox.id=ii("listbox-"))}disabledChanged(t,e){super.disabledChanged&&super.disabledChanged(t,e),this.ariaDisabled=this.disabled?"true":"false"}filterOptions(){this.autocomplete&&this.autocomplete!==Wi.none||(this.filter="");const t=this.filter.toLowerCase();this.filteredOptions=this._options.filter(t=>t.text.toLowerCase().startsWith(this.filter.toLowerCase())),this.isAutocompleteList&&(this.filteredOptions.length||t||(this.filteredOptions=this._options),this._options.forEach(t=>{t.hidden=!this.filteredOptions.includes(t)}))}focusAndScrollOptionIntoView(){this.contains(document.activeElement)&&(this.control.focus(),this.firstSelectedOption&&requestAnimationFrame(()=>{this.firstSelectedOption.scrollIntoView({block:"nearest"})}))}focusoutHandler(t){if(this.updateValue(),!this.open)return!0;const e=t.relatedTarget;this.isSameNode(e)?this.focus():this.options&&this.options.includes(e)||(this.open=!1)}inputHandler(t){if(this.filter=this.control.value,this.filterOptions(),"deleteContentBackward"===t.inputType||!this.filter.length)return!0;this.isAutocompleteList&&!this.open&&(this.open=!0),this.isAutocompleteInline&&this.filteredOptions.length&&(this.selectedOptions=[this.filteredOptions[0]],this.selectedIndex=this.options.indexOf(this.firstSelectedOption),this.setInlineSelection())}keydownHandler(t){const e=t.key;if(t.ctrlKey||t.shiftKey)return!0;switch(e){case"Enter":{this.updateValue(!0),this.isAutocompleteInline&&(this.filter=this.value),this.open=!1;const t=this.control.value.length;this.control.setSelectionRange(t,t);break}case"Escape":if(this.isAutocompleteInline||(this.selectedIndex=-1),this.open){this.open=!1;break}this.value="",this.control.value="",this.filter="",this.filterOptions();break;case"Tab":if(this.updateValue(),!this.open)return!0;t.preventDefault(),this.open=!1;break;case"ArrowUp":case"ArrowDown":if(this.filterOptions(),!this.open){this.open=!0;break}this.filteredOptions.length>0&&super.keydownHandler(t),this.isAutocompleteInline&&(this.updateValue(),this.setInlineSelection());break;default:return!0}}keyupHandler(t){switch(t.key){case"ArrowLeft":case"ArrowRight":case"Backspace":case"Delete":case"Home":case"End":this.filter=this.control.value,this.selectedIndex=-1,this.filterOptions()}}selectedIndexChanged(t,e){if(this.$fastController.isConnected){if((e=ti(-1,this.options.length-1,e))!==this.selectedIndex)return void(this.selectedIndex=e);super.selectedIndexChanged(t,e)}}selectPreviousOption(){!this.disabled&&this.selectedIndex>=0&&(this.selectedIndex=this.selectedIndex-1)}setDefaultSelectedOption(){if(this.$fastController.isConnected&&this.options){const t=this.options.findIndex(t=>null!==t.getAttribute("selected")||t.selected);this.selectedIndex=t,!this.dirtyValue&&this.firstSelectedOption&&(this.value=this.firstSelectedOption.text),this.setSelectedOptions()}}setInlineSelection(){this.firstSelectedOption&&(this.control.value=this.firstSelectedOption.text,this.control.focus(),this.control.setSelectionRange(this.filter.length,this.control.value.length,"backward"))}setPositioning(){const t=this.getBoundingClientRect(),e=window.innerHeight-t.bottom;this.position=this.forcedPosition?this.positionAttribute:t.top>e?Gi.above:Gi.below,this.positionAttribute=this.forcedPosition?this.positionAttribute:this.position,this.maxHeight=this.position===Gi.above?~~t.top:~~e}selectedOptionsChanged(t,e){this.$fastController.isConnected&&this._options.forEach(t=>{t.selected=e.includes(t)})}slottedOptionsChanged(t,e){super.slottedOptionsChanged(t,e),this.updateValue()}updateValue(t){var e;this.$fastController.isConnected&&(this.value=(null===(e=this.firstSelectedOption)||void 0===e?void 0:e.text)||this.control.value),t&&this.$emit("change")}}ne([ft({attribute:"autocomplete",mode:"fromView"})],Yi.prototype,"autocomplete",void 0),ne([T],Yi.prototype,"maxHeight",void 0),ne([ft({attribute:"open",mode:"boolean"})],Yi.prototype,"open",void 0),ne([ft],Yi.prototype,"placeholder",void 0),ne([ft({attribute:"position"})],Yi.prototype,"positionAttribute",void 0),ne([T],Yi.prototype,"position",void 0);class Qi{}ne([T],Qi.prototype,"ariaAutoComplete",void 0),ne([T],Qi.prototype,"ariaControls",void 0),_e(Qi,qi),_e(Yi,te,Qi);function Zi(t){const e=t.parentElement;if(e)return e;{const e=t.getRootNode();if(e.host instanceof HTMLElement)return e.host}return null}class Ji extends class{constructor(t){this.listenerCache=new WeakMap,this.query=t}bind(t){const{query:e}=this,i=this.constructListener(t);i.bind(e)(),e.addListener(i),this.listenerCache.set(t,i)}unbind(t){const e=this.listenerCache.get(t);e&&(this.query.removeListener(e),this.listenerCache.delete(t))}}{constructor(t,e){super(t),this.styles=e}static with(t){return e=>new Ji(t,e)}constructListener(t){let e=!1;const i=this.styles;return function(){const{matches:o}=this;o&&!e?(t.$fastController.addStyles(i),e=o):!o&&e&&(t.$fastController.removeStyles(i),e=o)}}unbind(t){super.unbind(t),t.$fastController.removeStyles(this.styles)}}const to=Ji.with(window.matchMedia("(forced-colors)"));Ji.with(window.matchMedia("(prefers-color-scheme: dark)")),Ji.with(window.matchMedia("(prefers-color-scheme: light)"));class eo{constructor(t,e,i){this.propertyName=t,this.value=e,this.styles=i}bind(t){C.getNotifier(t).subscribe(this,this.propertyName),this.handleChange(t,this.propertyName)}unbind(t){C.getNotifier(t).unsubscribe(this,this.propertyName),t.$fastController.removeStyles(this.styles)}handleChange(t,e){t[e]===this.value?t.$fastController.addStyles(this.styles):t.$fastController.removeStyles(this.styles)}}function io(t){return`:host([hidden]){display:none}:host{display:${t}}`}const oo=function(){if("boolean"==typeof Xe)return Xe;if("undefined"==typeof window||!window.document||!window.document.createElement)return Xe=!1,Xe;const t=document.createElement("style"),e=function(){const t=document.querySelector('meta[property="csp-nonce"]');return t?t.getAttribute("content"):null}();null!==e&&t.setAttribute("nonce",e),document.head.appendChild(t);try{t.sheet.insertRule("foo:focus-visible {color:inherit}",0),Xe=!0}catch(t){Xe=!1}finally{document.head.removeChild(t)}return Xe}()?"focus-visible":"focus";function so(t,e,i){return t.nodeType!==Node.TEXT_NODE||"string"==typeof t.nodeValue&&!!t.nodeValue.trim().length}const no=document.createElement("div");class ro{setProperty(t,e){d.queueUpdate(()=>this.target.setProperty(t,e))}removeProperty(t){d.queueUpdate(()=>this.target.removeProperty(t))}}class ao extends ro{constructor(){super();const t=new CSSStyleSheet;this.target=t.cssRules[t.insertRule(":root{}")].style,document.adoptedStyleSheets=[...document.adoptedStyleSheets,t]}}class lo extends ro{constructor(){super(),this.style=document.createElement("style"),document.head.appendChild(this.style);const{sheet:t}=this.style;if(t){const e=t.insertRule(":root{}",t.cssRules.length);this.target=t.cssRules[e].style}}}class co{constructor(t){this.store=new Map,this.target=null;const e=t.$fastController;this.style=document.createElement("style"),e.addStyles(this.style),C.getNotifier(e).subscribe(this,"isConnected"),this.handleChange(e,"isConnected")}targetChanged(){if(null!==this.target)for(const[t,e]of this.store.entries())this.target.setProperty(t,e)}setProperty(t,e){this.store.set(t,e),d.queueUpdate(()=>{null!==this.target&&this.target.setProperty(t,e)})}removeProperty(t){this.store.delete(t),d.queueUpdate(()=>{null!==this.target&&this.target.removeProperty(t)})}handleChange(t,e){const{sheet:i}=this.style;if(i){const t=i.insertRule(":host{}",i.cssRules.length);this.target=i.cssRules[t].style}else this.target=null}}ne([T],co.prototype,"target",void 0);class ho{constructor(t){this.target=t.style}setProperty(t,e){d.queueUpdate(()=>this.target.setProperty(t,e))}removeProperty(t){d.queueUpdate(()=>this.target.removeProperty(t))}}class uo{setProperty(t,e){uo.properties[t]=e;for(const i of uo.roots.values())fo.getOrCreate(uo.normalizeRoot(i)).setProperty(t,e)}removeProperty(t){delete uo.properties[t];for(const e of uo.roots.values())fo.getOrCreate(uo.normalizeRoot(e)).removeProperty(t)}static registerRoot(t){const{roots:e}=uo;if(!e.has(t)){e.add(t);const i=fo.getOrCreate(this.normalizeRoot(t));for(const t in uo.properties)i.setProperty(t,uo.properties[t])}}static unregisterRoot(t){const{roots:e}=uo;if(e.has(t)){e.delete(t);const i=fo.getOrCreate(uo.normalizeRoot(t));for(const t in uo.properties)i.removeProperty(t)}}static normalizeRoot(t){return t===no?document:t}}uo.roots=new Set,uo.properties={};const po=new WeakMap,go=d.supportsAdoptedStyleSheets?class extends ro{constructor(t){super();const e=new CSSStyleSheet;this.target=e.cssRules[e.insertRule(":host{}")].style,t.$fastController.addStyles(rt.create([e]))}}:co,fo=Object.freeze({getOrCreate(t){if(po.has(t))return po.get(t);let e;return t===no?e=new uo:t instanceof Document?e=d.supportsAdoptedStyleSheets?new ao:new lo:e=t instanceof Ft?new go(t):new ho(t),po.set(t,e),e}});class mo extends It{constructor(t){super(),this.subscribers=new WeakMap,this._appliedTo=new Set,this.name=t.name,null!==t.cssCustomPropertyName&&(this.cssCustomProperty="--"+t.cssCustomPropertyName,this.cssVar=`var(${this.cssCustomProperty})`),this.id=mo.uniqueId(),mo.tokensById.set(this.id,this)}get appliedTo(){return[...this._appliedTo]}static from(t){return new mo({name:"string"==typeof t?t:t.name,cssCustomPropertyName:"string"==typeof t?t:void 0===t.cssCustomPropertyName?t.name:t.cssCustomPropertyName})}static isCSSDesignToken(t){return"string"==typeof t.cssCustomProperty}static isDerivedDesignTokenValue(t){return"function"==typeof t}static getTokenById(t){return mo.tokensById.get(t)}getOrCreateSubscriberSet(t=this){return this.subscribers.get(t)||this.subscribers.set(t,new Set)&&this.subscribers.get(t)}createCSS(){return this.cssVar||""}getValueFor(t){const e=$o.getOrCreate(t).get(this);if(void 0!==e)return e;throw new Error(`Value could not be retrieved for token named "${this.name}". Ensure the value is set for ${t} or an ancestor of ${t}.`)}setValueFor(t,e){return this._appliedTo.add(t),e instanceof mo&&(e=this.alias(e)),$o.getOrCreate(t).set(this,e),this}deleteValueFor(t){return this._appliedTo.delete(t),$o.existsFor(t)&&$o.getOrCreate(t).delete(this),this}withDefault(t){return this.setValueFor(no,t),this}subscribe(t,e){const i=this.getOrCreateSubscriberSet(e);e&&!$o.existsFor(e)&&$o.getOrCreate(e),i.has(t)||i.add(t)}unsubscribe(t,e){const i=this.subscribers.get(e||this);i&&i.has(t)&&i.delete(t)}notify(t){const e=Object.freeze({token:this,target:t});this.subscribers.has(this)&&this.subscribers.get(this).forEach(t=>t.handleChange(e)),this.subscribers.has(t)&&this.subscribers.get(t).forEach(t=>t.handleChange(e))}alias(t){return e=>t.getValueFor(e)}}mo.uniqueId=(()=>{let t=0;return()=>(t++,t.toString(16))})(),mo.tokensById=new Map;class bo{constructor(t,e,i){this.source=t,this.token=e,this.node=i,this.dependencies=new Set,this.observer=C.binding(t,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,R))}}class vo{constructor(){this.values=new Map}set(t,e){this.values.get(t)!==e&&(this.values.set(t,e),C.getNotifier(this).notify(t.id))}get(t){return C.track(this,t.id),this.values.get(t)}delete(t){this.values.delete(t)}all(){return this.values.entries()}}const yo=new WeakMap,xo=new WeakMap;class $o{constructor(t){this.target=t,this.store=new vo,this.children=[],this.assignedValues=new Map,this.reflecting=new Set,this.bindingObservers=new Map,this.tokenValueChangeHandler={handleChange:(t,e)=>{const i=mo.getTokenById(e);if(i&&(i.notify(this.target),mo.isCSSDesignToken(i))){const e=this.parent,o=this.isReflecting(i);if(e){const s=e.get(i),n=t.get(i);s===n||o?s===n&&o&&this.stopReflectToCSS(i):this.reflectToCSS(i)}else o||this.reflectToCSS(i)}}},yo.set(t,this),C.getNotifier(this.store).subscribe(this.tokenValueChangeHandler),t instanceof Ft?t.$fastController.addBehaviors([this]):t.isConnected&&this.bind()}static getOrCreate(t){return yo.get(t)||new $o(t)}static existsFor(t){return yo.has(t)}static findParent(t){if(no!==t.target){let e=Zi(t.target);for(;null!==e;){if(yo.has(e))return yo.get(e);e=Zi(e)}return $o.getOrCreate(no)}return null}static findClosestAssignedNode(t,e){let i=e;do{if(i.has(t))return i;i=i.parent?i.parent:i.target!==no?$o.getOrCreate(no):null}while(null!==i);return null}get parent(){return xo.get(this)||null}has(t){return this.assignedValues.has(t)}get(t){const e=this.store.get(t);if(void 0!==e)return e;const i=this.getRaw(t);return void 0!==i?(this.hydrate(t,i),this.get(t)):void 0}getRaw(t){var e;return this.assignedValues.has(t)?this.assignedValues.get(t):null===(e=$o.findClosestAssignedNode(t,this))||void 0===e?void 0:e.getRaw(t)}set(t,e){mo.isDerivedDesignTokenValue(this.assignedValues.get(t))&&this.tearDownBindingObserver(t),this.assignedValues.set(t,e),mo.isDerivedDesignTokenValue(e)?this.setupBindingObserver(t,e):this.store.set(t,e)}delete(t){this.assignedValues.delete(t),this.tearDownBindingObserver(t);const e=this.getRaw(t);e?this.hydrate(t,e):this.store.delete(t)}bind(){const t=$o.findParent(this);t&&t.appendChild(this);for(const t of this.assignedValues.keys())t.notify(this.target)}unbind(){if(this.parent){xo.get(this).removeChild(this)}}appendChild(t){t.parent&&xo.get(t).removeChild(t);const e=this.children.filter(e=>t.contains(e));xo.set(t,this),this.children.push(t),e.forEach(e=>t.appendChild(e)),C.getNotifier(this.store).subscribe(t);for(const[e,i]of this.store.all())t.hydrate(e,this.bindingObservers.has(e)?this.getRaw(e):i)}removeChild(t){const e=this.children.indexOf(t);return-1!==e&&this.children.splice(e,1),C.getNotifier(this.store).unsubscribe(t),t.parent===this&&xo.delete(t)}contains(t){return function(t,e){let i=e;for(;null!==i;){if(i===t)return!0;i=Zi(i)}return!1}(this.target,t.target)}reflectToCSS(t){this.isReflecting(t)||(this.reflecting.add(t),$o.cssCustomPropertyReflector.startReflection(t,this.target))}stopReflectToCSS(t){this.isReflecting(t)&&(this.reflecting.delete(t),$o.cssCustomPropertyReflector.stopReflection(t,this.target))}isReflecting(t){return this.reflecting.has(t)}handleChange(t,e){const i=mo.getTokenById(e);i&&this.hydrate(i,this.getRaw(i))}hydrate(t,e){if(!this.has(t)){const i=this.bindingObservers.get(t);mo.isDerivedDesignTokenValue(e)?i?i.source!==e&&(this.tearDownBindingObserver(t),this.setupBindingObserver(t,e)):this.setupBindingObserver(t,e):(i&&this.tearDownBindingObserver(t),this.store.set(t,e))}}setupBindingObserver(t,e){const i=new bo(e,t,this);return this.bindingObservers.set(t,i),i}tearDownBindingObserver(t){return!!this.bindingObservers.has(t)&&(this.bindingObservers.get(t).disconnect(),this.bindingObservers.delete(t),!0)}}$o.cssCustomPropertyReflector=new class{startReflection(t,e){t.subscribe(this,e),this.handleChange({token:t,target:e})}stopReflection(t,e){t.unsubscribe(this,e),this.remove(t,e)}handleChange(t){const{token:e,target:i}=t;this.add(e,i)}add(t,e){fo.getOrCreate(e).setProperty(t.cssCustomProperty,this.resolveCSSValue($o.getOrCreate(e).get(t)))}remove(t,e){fo.getOrCreate(e).removeProperty(t.cssCustomProperty)}resolveCSSValue(t){return t&&"function"==typeof t.createCSS?t.createCSS():t}},ne([T],$o.prototype,"children",void 0);const wo=Object.freeze({create:function(t){return mo.from(t)},notifyConnection:t=>!(!t.isConnected||!$o.existsFor(t))&&($o.getOrCreate(t).bind(),!0),notifyDisconnection:t=>!(t.isConnected||!$o.existsFor(t))&&($o.getOrCreate(t).unbind(),!0),registerRoot(t=no){uo.registerRoot(t)},unregisterRoot(t=no){uo.unregisterRoot(t)}}),ko=Object.freeze({definitionCallbackOnly:null,ignoreDuplicate:Symbol()}),Co=new Map,Fo=new Map;let Io=null;const To=ge.createInterface(t=>t.cachedCallback(t=>(null===Io&&(Io=new Vo(null,t)),Io))),Do=Object.freeze({tagFor:t=>Fo.get(t),responsibleFor(t){const e=t.$$designSystem$$;if(e)return e;return ge.findResponsibleContainer(t).get(To)},getOrCreate(t){if(!t)return null===Io&&(Io=ge.getOrCreateDOMContainer().get(To)),Io;const e=t.$$designSystem$$;if(e)return e;const i=ge.getOrCreateDOMContainer(t);if(i.has(To,!1))return i.get(To);{const e=new Vo(t,i);return i.register(Se.instance(To,e)),e}}});class Vo{constructor(t,e){this.owner=t,this.container=e,this.designTokensInitialized=!1,this.prefix="fast",this.shadowRootMode=void 0,this.disambiguate=()=>ko.definitionCallbackOnly,null!==t&&(t.$$designSystem$$=this)}withPrefix(t){return this.prefix=t,this}withShadowRootMode(t){return this.shadowRootMode=t,this}withElementDisambiguation(t){return this.disambiguate=t,this}withDesignTokenRoot(t){return this.designTokenRoot=t,this}register(...t){const e=this.container,i=[],o=this.disambiguate,s=this.shadowRootMode,n={elementPrefix:this.prefix,tryDefineElement(t,n,r){const a=function(t,e,i){return"string"==typeof t?{name:t,type:e,callback:i}:t}(t,n,r),{name:l,callback:c,baseClass:h}=a;let{type:d}=a,u=l,p=Co.get(u),g=!0;for(;p;){const t=o(u,d,p);switch(t){case ko.ignoreDuplicate:return;case ko.definitionCallbackOnly:g=!1,p=void 0;break;default:u=t,p=Co.get(u)}}g&&((Fo.has(d)||d===je)&&(d=class extends d{}),Co.set(u,d),Fo.set(d,u),h&&Fo.set(h,u)),i.push(new So(e,u,d,s,c,g))}};this.designTokensInitialized||(this.designTokensInitialized=!0,null!==this.designTokenRoot&&wo.registerRoot(this.designTokenRoot)),e.registerWithContext(n,...t);for(const t of i)t.callback(t),t.willDefine&&null!==t.definition&&t.definition.define();return this}}class So{constructor(t,e,i,o,s,n){this.container=t,this.name=e,this.type=i,this.shadowRootMode=o,this.callback=s,this.willDefine=n,this.definition=null}definePresentation(t){Be.define(this.name,t,this.container)}defineElement(t){this.definition=new yt(this.type,Object.assign(Object.assign({},t),{name:this.name}))}tagFor(t){return Do.tagFor(t)}}
|
|
16
|
+
function ne(t,e,i,o){var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r}const re=new Map;"metadata"in Reflect||(Reflect.metadata=function(t,e){return function(i){Reflect.defineMetadata(t,e,i)}},Reflect.defineMetadata=function(t,e,i){let o=re.get(i);void 0===o&&re.set(i,o=new Map),o.set(t,e)},Reflect.getOwnMetadata=function(t,e){const i=re.get(e);if(void 0!==i)return i.get(t)});class ae{constructor(t,e){this.container=t,this.key=e}instance(t){return this.registerResolver(0,t)}singleton(t){return this.registerResolver(1,t)}transient(t){return this.registerResolver(2,t)}callback(t){return this.registerResolver(3,t)}cachedCallback(t){return this.registerResolver(3,Se(t))}aliasTo(t){return this.registerResolver(5,t)}registerResolver(t,e){const{container:i,key:o}=this;return this.container=this.key=void 0,i.registerResolver(o,new be(o,t,e))}}function le(t){const e=t.slice(),i=Object.keys(t),o=i.length;let s;for(let n=0;n<o;++n)s=i[n],He(s)||(e[s]=t[s]);return e}const ce=Object.freeze({none(t){throw Error(t.toString()+" not registered, did you forget to add @singleton()?")},singleton:t=>new be(t,1,t),transient:t=>new be(t,2,t)}),he=Object.freeze({default:Object.freeze({parentLocator:()=>null,responsibleForOwnerRequests:!1,defaultResolver:ce.singleton})}),de=new Map;function ue(t){return e=>Reflect.getOwnMetadata(t,e)}let pe=null;const ge=Object.freeze({createContainer:t=>new Te(null,Object.assign({},he.default,t)),findResponsibleContainer(t){const e=t.$$container$$;return e&&e.responsibleForOwnerRequests?e:ge.findParentContainer(t)},findParentContainer(t){const e=new CustomEvent(Ie,{bubbles:!0,composed:!0,cancelable:!0,detail:{container:void 0}});return t.dispatchEvent(e),e.detail.container||ge.getOrCreateDOMContainer()},getOrCreateDOMContainer:(t,e)=>t?t.$$container$$||new Te(t,Object.assign({},he.default,e,{parentLocator:ge.findParentContainer})):pe||(pe=new Te(null,Object.assign({},he.default,e,{parentLocator:()=>null}))),getDesignParamtypes:ue("design:paramtypes"),getAnnotationParamtypes:ue("di:paramtypes"),getOrCreateAnnotationParamTypes(t){let e=this.getAnnotationParamtypes(t);return void 0===e&&Reflect.defineMetadata("di:paramtypes",e=[],t),e},getDependencies(t){let e=de.get(t);if(void 0===e){const i=t.inject;if(void 0===i){const i=ge.getDesignParamtypes(t),o=ge.getAnnotationParamtypes(t);if(void 0===i)if(void 0===o){const i=Object.getPrototypeOf(t);e="function"==typeof i&&i!==Function.prototype?le(ge.getDependencies(i)):[]}else e=le(o);else if(void 0===o)e=le(i);else{e=le(i);let t,s=o.length;for(let i=0;i<s;++i)t=o[i],void 0!==t&&(e[i]=t);const n=Object.keys(o);let r;s=n.length;for(let t=0;t<s;++t)r=n[t],He(r)||(e[r]=o[r])}}else e=le(i);de.set(t,e)}return e},defineProperty(t,e,i,o=!1){const s="$di_"+e;Reflect.defineProperty(t,e,{get:function(){let t=this[s];if(void 0===t){const n=this instanceof HTMLElement?ge.findResponsibleContainer(this):ge.getOrCreateDOMContainer();if(t=n.get(i),this[s]=t,o&&this instanceof It){const o=this.$fastController,n=()=>{ge.findResponsibleContainer(this).get(i)!==this[s]&&(this[s]=t,o.notify(e))};o.subscribe({handleChange:n},"isConnected")}}return t}})},createInterface(t,e){const i="function"==typeof t?t:e,o="string"==typeof t?t:t&&"friendlyName"in t&&t.friendlyName||Re,s="string"!=typeof t&&(t&&"respectConnection"in t&&t.respectConnection||!1),n=function(t,e,i){if(null==t||void 0!==new.target)throw new Error(`No registration for interface: '${n.friendlyName}'`);if(e)ge.defineProperty(t,e,n,s);else{ge.getOrCreateAnnotationParamTypes(t)[i]=n}};return n.$isInterface=!0,n.friendlyName=null==o?"(anonymous)":o,null!=i&&(n.register=function(t,e){return i(new ae(t,null!=e?e:n))}),n.toString=function(){return`InterfaceSymbol<${n.friendlyName}>`},n},inject:(...t)=>function(e,i,o){if("number"==typeof o){const i=ge.getOrCreateAnnotationParamTypes(e),s=t[0];void 0!==s&&(i[o]=s)}else if(i)ge.defineProperty(e,i,t[0]);else{const i=o?ge.getOrCreateAnnotationParamTypes(o.value):ge.getOrCreateAnnotationParamTypes(e);let s;for(let e=0;e<t.length;++e)s=t[e],void 0!==s&&(i[e]=s)}},transient:t=>(t.register=function(e){return Ve.transient(t,t).register(e)},t.registerInRequestor=!1,t),singleton:(t,e=me)=>(t.register=function(e){return Ve.singleton(t,t).register(e)},t.registerInRequestor=e.scoped,t)}),fe=ge.createInterface("Container");ge.inject;const me={scoped:!1};class be{constructor(t,e,i){this.key=t,this.strategy=e,this.state=i,this.resolving=!1}get $isResolver(){return!0}register(t){return t.registerResolver(this.key,this)}resolve(t,e){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=t.getFactory(this.state).construct(e),this.strategy=0,this.resolving=!1,this.state;case 2:{const i=t.getFactory(this.state);if(null===i)throw new Error(`Resolver for ${String(this.key)} returned a null factory`);return i.construct(e)}case 3:return this.state(t,e,this);case 4:return this.state[0].resolve(t,e);case 5:return e.get(this.state);default:throw new Error(`Invalid resolver strategy specified: ${this.strategy}.`)}}getFactory(t){var e,i,o;switch(this.strategy){case 1:case 2:return t.getFactory(this.state);case 5:return null!==(o=null===(i=null===(e=t.getResolver(this.state))||void 0===e?void 0:e.getFactory)||void 0===i?void 0:i.call(e,t))&&void 0!==o?o:null;default:return null}}}function ve(t){return this.get(t)}function ye(t,e){return e(t)}class xe{constructor(t,e){this.Type=t,this.dependencies=e,this.transformers=null}construct(t,e){let i;return i=void 0===e?new this.Type(...this.dependencies.map(ve,t)):new this.Type(...this.dependencies.map(ve,t),...e),null==this.transformers?i:this.transformers.reduce(ye,i)}registerTransformer(t){(this.transformers||(this.transformers=[])).push(t)}}const $e={$isResolver:!0,resolve:(t,e)=>e};function we(t){return"function"==typeof t.register}function ke(t){return function(t){return we(t)&&"boolean"==typeof t.registerInRequestor}(t)&&t.registerInRequestor}const Ce=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"]),Ie="__DI_LOCATE_PARENT__",Fe=new Map;class Te{constructor(t,e){this.owner=t,this.config=e,this._parent=void 0,this.registerDepth=0,this.context=null,null!==t&&(t.$$container$$=this),this.resolvers=new Map,this.resolvers.set(fe,$e),t instanceof Node&&t.addEventListener(Ie,t=>{t.composedPath()[0]!==this.owner&&(t.detail.container=this,t.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(t,...e){return this.context=t,this.register(...e),this.context=null,this}register(...t){if(100==++this.registerDepth)throw new Error("Unable to autoregister dependency");let e,i,o,s,n;const r=this.context;for(let a=0,l=t.length;a<l;++a)if(e=t[a],Ae(e))if(we(e))e.register(this,r);else if(void 0!==e.prototype)Ve.singleton(e,e).register(this);else for(i=Object.keys(e),s=0,n=i.length;s<n;++s)o=e[i[s]],Ae(o)&&(we(o)?o.register(this,r):this.register(o));return--this.registerDepth,this}registerResolver(t,e){Oe(t);const i=this.resolvers,o=i.get(t);return null==o?i.set(t,e):o instanceof be&&4===o.strategy?o.state.push(e):i.set(t,new be(t,4,[o,e])),e}registerTransformer(t,e){const i=this.getResolver(t);if(null==i)return!1;if(i.getFactory){const t=i.getFactory(this);return null!=t&&(t.registerTransformer(e),!0)}return!1}getResolver(t,e=!0){if(Oe(t),void 0!==t.resolve)return t;let i,o=this;for(;null!=o;){if(i=o.resolvers.get(t),null!=i)return i;if(null==o.parent){const i=ke(t)?this:o;return e?this.jitRegister(t,i):null}o=o.parent}return null}has(t,e=!1){return!!this.resolvers.has(t)||!(!e||null==this.parent)&&this.parent.has(t,!0)}get(t){if(Oe(t),t.$isResolver)return t.resolve(this,this);let e,i=this;for(;null!=i;){if(e=i.resolvers.get(t),null!=e)return e.resolve(i,this);if(null==i.parent){const o=ke(t)?this:i;return e=this.jitRegister(t,o),e.resolve(i,this)}i=i.parent}throw new Error("Unable to resolve key: "+t)}getAll(t,i=!1){Oe(t);const o=this;let s,n=o;if(i){let i=e;for(;null!=n;)s=n.resolvers.get(t),null!=s&&(i=i.concat(Ee(s,n,o))),n=n.parent;return i}for(;null!=n;){if(s=n.resolvers.get(t),null!=s)return Ee(s,n,o);if(n=n.parent,null==n)return e}return e}getFactory(t){let e=Fe.get(t);if(void 0===e){if(Le(t))throw new Error(t.name+" is a native function and therefore cannot be safely constructed by DI. If this is intentional, please use a callback or cachedCallback resolver.");Fe.set(t,e=new xe(t,ge.getDependencies(t)))}return e}registerFactory(t,e){Fe.set(t,e)}createChild(t){return new Te(null,Object.assign({},this.config,t,{parentLocator:()=>this}))}jitRegister(t,e){if("function"!=typeof t)throw new Error(`Attempted to jitRegister something that is not a constructor: '${t}'. Did you forget to register this dependency?`);if(Ce.has(t.name))throw new Error(`Attempted to jitRegister an intrinsic type: ${t.name}. Did you forget to add @inject(Key)`);if(we(t)){const i=t.register(e);if(!(i instanceof Object)||null==i.resolve){const i=e.resolvers.get(t);if(null!=i)return i;throw new Error("A valid resolver was not returned from the static register method")}return i}if(t.$isInterface)throw new Error("Attempted to jitRegister an interface: "+t.friendlyName);{const i=this.config.defaultResolver(t,e);return e.resolvers.set(t,i),i}}}const De=new WeakMap;function Se(t){return function(e,i,o){if(De.has(o))return De.get(o);const s=t(e,i,o);return De.set(o,s),s}}const Ve=Object.freeze({instance:(t,e)=>new be(t,0,e),singleton:(t,e)=>new be(t,1,e),transient:(t,e)=>new be(t,2,e),callback:(t,e)=>new be(t,3,e),cachedCallback:(t,e)=>new be(t,3,Se(e)),aliasTo:(t,e)=>new be(e,5,t)});function Oe(t){if(null==t)throw new Error("key/value cannot be null or undefined. Are you trying to inject/register something that doesn't exist with DI?")}function Ee(t,e,i){if(t instanceof be&&4===t.strategy){const o=t.state;let s=o.length;const n=new Array(s);for(;s--;)n[s]=o[s].resolve(e,i);return n}return[t.resolve(e,i)]}const Re="(anonymous)";function Ae(t){return"object"==typeof t&&null!==t||"function"==typeof t}const Le=function(){const t=new WeakMap;let e=!1,i="",o=0;return function(s){return e=t.get(s),void 0===e&&(i=s.toString(),o=i.length,e=o>=29&&o<=100&&125===i.charCodeAt(o-1)&&i.charCodeAt(o-2)<=32&&93===i.charCodeAt(o-3)&&101===i.charCodeAt(o-4)&&100===i.charCodeAt(o-5)&&111===i.charCodeAt(o-6)&&99===i.charCodeAt(o-7)&&32===i.charCodeAt(o-8)&&101===i.charCodeAt(o-9)&&118===i.charCodeAt(o-10)&&105===i.charCodeAt(o-11)&&116===i.charCodeAt(o-12)&&97===i.charCodeAt(o-13)&&110===i.charCodeAt(o-14)&&88===i.charCodeAt(o-15),t.set(s,e)),e}}(),ze={};function He(t){switch(typeof t){case"number":return t>=0&&(0|t)===t;case"string":{const e=ze[t];if(void 0!==e)return e;const i=t.length;if(0===i)return ze[t]=!1;let o=0;for(let e=0;e<i;++e)if(o=t.charCodeAt(e),0===e&&48===o&&i>1||o<48||o>57)return ze[t]=!1;return ze[t]=!0}default:return!1}}function Pe(t){return t.toLowerCase()+":presentation"}const Me=new Map,Be=Object.freeze({define(t,e,i){const o=Pe(t);void 0===Me.get(o)?Me.set(o,e):Me.set(o,!1),i.register(Ve.instance(o,e))},forTag(t,e){const i=Pe(t),o=Me.get(i);if(!1===o){return ge.findResponsibleContainer(e).get(i)}return o||null}});class Ne{constructor(t,e){this.template=t||null,this.styles=void 0===e?null:Array.isArray(e)?rt.create(e):e instanceof rt?e:rt.create([e])}applyTo(t){const e=t.$fastController;null===e.template&&(e.template=this.template),null===e.styles&&(e.styles=this.styles)}}class je extends It{constructor(){super(...arguments),this._presentation=void 0}get $presentation(){return void 0===this._presentation&&(this._presentation=Be.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(t){return(e={})=>new qe(this===je?class extends je{}:this,t,e)}}function Ue(t,e,i){return"function"==typeof t?t(e,i):t}ne([T],je.prototype,"template",void 0),ne([T],je.prototype,"styles",void 0);class qe{constructor(t,e,i){this.type=t,this.elementDefinition=e,this.overrideDefinition=i,this.definition=Object.assign(Object.assign({},this.elementDefinition),this.overrideDefinition)}register(t,e){const i=this.definition,o=this.overrideDefinition,s=`${i.prefix||e.elementPrefix}-${i.baseName}`;e.tryDefineElement({name:s,type:this.type,baseClass:this.elementDefinition.baseClass,callback:t=>{const e=new Ne(Ue(i.template,t,i),Ue(i.styles,t,i));t.definePresentation(e);let s=Ue(i.shadowOptions,t,i);t.shadowRootMode&&(s?o.shadowOptions||(s.mode=t.shadowRootMode):null!==s&&(s={mode:t.shadowRootMode})),t.defineElement({elementOptions:Ue(i.elementOptions,t,i),shadowOptions:s,attributes:Ue(i.attributes,t,i)})}})}}function _e(t,...e){e.forEach(e=>{if(Object.getOwnPropertyNames(e.prototype).forEach(i=>{"constructor"!==i&&Object.defineProperty(t.prototype,i,Object.getOwnPropertyDescriptor(e.prototype,i))}),e.attributes){const i=t.attributes||[];t.attributes=i.concat(e.attributes)}})}class Ge extends je{constructor(){super(...arguments),this.headinglevel=2,this.expanded=!1,this.clickHandler=t=>{this.expanded=!this.expanded,this.change()},this.change=()=>{this.$emit("change")}}}ne([ft({attribute:"heading-level",mode:"fromView",converter:pt})],Ge.prototype,"headinglevel",void 0),ne([ft({mode:"boolean"})],Ge.prototype,"expanded",void 0),ne([ft],Ge.prototype,"id",void 0),_e(Ge,te);var We;function Ke(...t){return t.every(t=>t instanceof HTMLElement)}let Xe;!function(t){t.horizontal="horizontal",t.vertical="vertical"}(We||(We={}));var Ye;!function(t){t[t.alt=18]="alt",t[t.arrowDown=40]="arrowDown",t[t.arrowLeft=37]="arrowLeft",t[t.arrowRight=39]="arrowRight",t[t.arrowUp=38]="arrowUp",t[t.back=8]="back",t[t.backSlash=220]="backSlash",t[t.break=19]="break",t[t.capsLock=20]="capsLock",t[t.closeBracket=221]="closeBracket",t[t.colon=186]="colon",t[t.colon2=59]="colon2",t[t.comma=188]="comma",t[t.ctrl=17]="ctrl",t[t.delete=46]="delete",t[t.end=35]="end",t[t.enter=13]="enter",t[t.equals=187]="equals",t[t.equals2=61]="equals2",t[t.equals3=107]="equals3",t[t.escape=27]="escape",t[t.forwardSlash=191]="forwardSlash",t[t.function1=112]="function1",t[t.function10=121]="function10",t[t.function11=122]="function11",t[t.function12=123]="function12",t[t.function2=113]="function2",t[t.function3=114]="function3",t[t.function4=115]="function4",t[t.function5=116]="function5",t[t.function6=117]="function6",t[t.function7=118]="function7",t[t.function8=119]="function8",t[t.function9=120]="function9",t[t.home=36]="home",t[t.insert=45]="insert",t[t.menu=93]="menu",t[t.minus=189]="minus",t[t.minus2=109]="minus2",t[t.numLock=144]="numLock",t[t.numPad0=96]="numPad0",t[t.numPad1=97]="numPad1",t[t.numPad2=98]="numPad2",t[t.numPad3=99]="numPad3",t[t.numPad4=100]="numPad4",t[t.numPad5=101]="numPad5",t[t.numPad6=102]="numPad6",t[t.numPad7=103]="numPad7",t[t.numPad8=104]="numPad8",t[t.numPad9=105]="numPad9",t[t.numPadDivide=111]="numPadDivide",t[t.numPadDot=110]="numPadDot",t[t.numPadMinus=109]="numPadMinus",t[t.numPadMultiply=106]="numPadMultiply",t[t.numPadPlus=107]="numPadPlus",t[t.openBracket=219]="openBracket",t[t.pageDown=34]="pageDown",t[t.pageUp=33]="pageUp",t[t.period=190]="period",t[t.print=44]="print",t[t.quote=222]="quote",t[t.scrollLock=145]="scrollLock",t[t.shift=16]="shift",t[t.space=32]="space",t[t.tab=9]="tab",t[t.tilde=192]="tilde",t[t.windowsLeft=91]="windowsLeft",t[t.windowsOpera=219]="windowsOpera",t[t.windowsRight=92]="windowsRight"}(Ye||(Ye={}));const Qe={ArrowDown:"ArrowDown",ArrowLeft:"ArrowLeft",ArrowRight:"ArrowRight",ArrowUp:"ArrowUp"};var Ze;function Je(t,e,i){return i<t?e:i>e?t:i}function ti(t,e,i){return Math.min(Math.max(i,t),e)}function ei(t,e,i=0){return[e,i]=[e,i].sort((t,e)=>t-e),e<=t&&t<i}!function(t){t.ltr="ltr",t.rtl="rtl"}(Ze||(Ze={}));let ii=0;function oi(t=""){return`${t}${ii++}`}var si,ni;!function(t){t.Canvas="Canvas",t.CanvasText="CanvasText",t.LinkText="LinkText",t.VisitedText="VisitedText",t.ActiveText="ActiveText",t.ButtonFace="ButtonFace",t.ButtonText="ButtonText",t.Field="Field",t.FieldText="FieldText",t.Highlight="Highlight",t.HighlightText="HighlightText",t.GrayText="GrayText"}(si||(si={})),function(t){t.single="single",t.multi="multi"}(ni||(ni={}));class ri extends je{constructor(){super(...arguments),this.expandmode=ni.multi,this.activeItemIndex=0,this.change=()=>{this.$emit("change")},this.setItems=()=>{var t;if(0!==this.accordionItems.length&&(this.accordionIds=this.getItemIds(),this.accordionItems.forEach((t,e)=>{t instanceof Ge&&(t.addEventListener("change",this.activeItemChange),this.isSingleExpandMode()&&(this.activeItemIndex!==e?t.expanded=!1:t.expanded=!0));const i=this.accordionIds[e];t.setAttribute("id","string"!=typeof i?"accordion-"+(e+1):i),this.activeid=this.accordionIds[this.activeItemIndex],t.addEventListener("keydown",this.handleItemKeyDown),t.addEventListener("focus",this.handleItemFocus)}),this.isSingleExpandMode())){(null!==(t=this.findExpandedItem())&&void 0!==t?t:this.accordionItems[0]).setAttribute("aria-disabled","true")}},this.removeItemListeners=t=>{t.forEach((t,e)=>{t.removeEventListener("change",this.activeItemChange),t.removeEventListener("keydown",this.handleItemKeyDown),t.removeEventListener("focus",this.handleItemFocus)})},this.activeItemChange=t=>{const e=t.target;this.activeid=e.getAttribute("id"),this.isSingleExpandMode()&&(this.resetItems(),e.expanded=!0,e.setAttribute("aria-disabled","true"),this.accordionItems.forEach(t=>{t.hasAttribute("disabled")||t.id===this.activeid||t.removeAttribute("aria-disabled")})),this.activeItemIndex=Array.from(this.accordionItems).indexOf(e),this.change()},this.handleItemKeyDown=t=>{if(t.target===t.currentTarget)switch(this.accordionIds=this.getItemIds(),t.key){case"ArrowUp":t.preventDefault(),this.adjust(-1);break;case"ArrowDown":t.preventDefault(),this.adjust(1);break;case"Home":this.activeItemIndex=0,this.focusItem();break;case"End":this.activeItemIndex=this.accordionItems.length-1,this.focusItem()}},this.handleItemFocus=t=>{if(t.target===t.currentTarget){const e=t.target,i=this.activeItemIndex=Array.from(this.accordionItems).indexOf(e);this.activeItemIndex!==i&&-1!==i&&(this.activeItemIndex=i,this.activeid=this.accordionIds[this.activeItemIndex])}}}accordionItemsChanged(t,e){this.$fastController.isConnected&&(this.removeItemListeners(t),this.setItems())}findExpandedItem(){for(let t=0;t<this.accordionItems.length;t++)if("true"===this.accordionItems[t].getAttribute("expanded"))return this.accordionItems[t];return null}resetItems(){this.accordionItems.forEach((t,e)=>{t.expanded=!1})}getItemIds(){return this.accordionItems.map(t=>t.getAttribute("id"))}isSingleExpandMode(){return this.expandmode===ni.single}adjust(t){this.activeItemIndex=Je(0,this.accordionItems.length-1,this.activeItemIndex+t),this.focusItem()}focusItem(){const t=this.accordionItems[this.activeItemIndex];t instanceof Ge&&t.expandbutton.focus()}}ne([ft({attribute:"expand-mode"})],ri.prototype,"expandmode",void 0),ne([T],ri.prototype,"accordionItems",void 0);const ai=(t,e)=>nt`<a class="control" part="control" download="${t=>t.download}" href="${t=>t.href}" hreflang="${t=>t.hreflang}" ping="${t=>t.ping}" referrerpolicy="${t=>t.referrerpolicy}" rel="${t=>t.rel}" target="${t=>t.target}" type="${t=>t.type}" aria-atomic="${t=>t.ariaAtomic}" aria-busy="${t=>t.ariaBusy}" aria-controls="${t=>t.ariaControls}" aria-current="${t=>t.ariaCurrent}" aria-describedby="${t=>t.ariaDescribedby}" aria-details="${t=>t.ariaDetails}" aria-disabled="${t=>t.ariaDisabled}" aria-errormessage="${t=>t.ariaErrormessage}" aria-expanded="${t=>t.ariaExpanded}" aria-flowto="${t=>t.ariaFlowto}" aria-haspopup="${t=>t.ariaHaspopup}" aria-hidden="${t=>t.ariaHidden}" aria-invalid="${t=>t.ariaInvalid}" aria-keyshortcuts="${t=>t.ariaKeyshortcuts}" aria-label="${t=>t.ariaLabel}" aria-labelledby="${t=>t.ariaLabelledby}" aria-live="${t=>t.ariaLive}" aria-owns="${t=>t.ariaOwns}" aria-relevant="${t=>t.ariaRelevant}" aria-roledescription="${t=>t.ariaRoledescription}" ${Bt("control")}>${ie(0,e)}<span class="content" part="content"><slot ${Qt("defaultSlottedContent")}></slot></span>${ee(0,e)}</a>`;class li{}ne([ft({attribute:"aria-atomic",mode:"fromView"})],li.prototype,"ariaAtomic",void 0),ne([ft({attribute:"aria-busy",mode:"fromView"})],li.prototype,"ariaBusy",void 0),ne([ft({attribute:"aria-controls",mode:"fromView"})],li.prototype,"ariaControls",void 0),ne([ft({attribute:"aria-current",mode:"fromView"})],li.prototype,"ariaCurrent",void 0),ne([ft({attribute:"aria-describedby",mode:"fromView"})],li.prototype,"ariaDescribedby",void 0),ne([ft({attribute:"aria-details",mode:"fromView"})],li.prototype,"ariaDetails",void 0),ne([ft({attribute:"aria-disabled",mode:"fromView"})],li.prototype,"ariaDisabled",void 0),ne([ft({attribute:"aria-errormessage",mode:"fromView"})],li.prototype,"ariaErrormessage",void 0),ne([ft({attribute:"aria-flowto",mode:"fromView"})],li.prototype,"ariaFlowto",void 0),ne([ft({attribute:"aria-haspopup",mode:"fromView"})],li.prototype,"ariaHaspopup",void 0),ne([ft({attribute:"aria-hidden",mode:"fromView"})],li.prototype,"ariaHidden",void 0),ne([ft({attribute:"aria-invalid",mode:"fromView"})],li.prototype,"ariaInvalid",void 0),ne([ft({attribute:"aria-keyshortcuts",mode:"fromView"})],li.prototype,"ariaKeyshortcuts",void 0),ne([ft({attribute:"aria-label",mode:"fromView"})],li.prototype,"ariaLabel",void 0),ne([ft({attribute:"aria-labelledby",mode:"fromView"})],li.prototype,"ariaLabelledby",void 0),ne([ft({attribute:"aria-live",mode:"fromView"})],li.prototype,"ariaLive",void 0),ne([ft({attribute:"aria-owns",mode:"fromView"})],li.prototype,"ariaOwns",void 0),ne([ft({attribute:"aria-relevant",mode:"fromView"})],li.prototype,"ariaRelevant",void 0),ne([ft({attribute:"aria-roledescription",mode:"fromView"})],li.prototype,"ariaRoledescription",void 0);class ci extends je{constructor(){super(...arguments),this.handleUnsupportedDelegatesFocus=()=>{var t;window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&(null===(t=this.$fastController.definition.shadowOptions)||void 0===t?void 0:t.delegatesFocus)&&(this.focus=()=>{this.control.focus()})}}connectedCallback(){super.connectedCallback(),this.handleUnsupportedDelegatesFocus()}}ne([ft],ci.prototype,"download",void 0),ne([ft],ci.prototype,"href",void 0),ne([ft],ci.prototype,"hreflang",void 0),ne([ft],ci.prototype,"ping",void 0),ne([ft],ci.prototype,"referrerpolicy",void 0),ne([ft],ci.prototype,"rel",void 0),ne([ft],ci.prototype,"target",void 0),ne([ft],ci.prototype,"type",void 0),ne([T],ci.prototype,"defaultSlottedContent",void 0);class hi{}ne([ft({attribute:"aria-expanded",mode:"fromView"})],hi.prototype,"ariaExpanded",void 0),_e(hi,li),_e(ci,te,hi);const di=t=>{const e=t.closest("[dir]");return null!==e&&"rtl"===e.dir?Ze.rtl:Ze.ltr};class ui extends je{constructor(){super(...arguments),this.anchor="",this.viewport="",this.horizontalPositioningMode="uncontrolled",this.horizontalDefaultPosition="unset",this.horizontalViewportLock=!1,this.horizontalInset=!1,this.horizontalScaling="content",this.verticalPositioningMode="uncontrolled",this.verticalDefaultPosition="unset",this.verticalViewportLock=!1,this.verticalInset=!1,this.verticalScaling="content",this.fixedPlacement=!1,this.autoUpdateMode="anchor",this.anchorElement=null,this.viewportElement=null,this.initialLayoutComplete=!1,this.resizeDetector=null,this.baseHorizontalOffset=0,this.baseVerticalOffset=0,this.pendingPositioningUpdate=!1,this.pendingReset=!1,this.currentDirection=Ze.ltr,this.regionVisible=!1,this.forceUpdate=!1,this.updateThreshold=.5,this.update=()=>{this.pendingPositioningUpdate||this.requestPositionUpdates()},this.startObservers=()=>{this.stopObservers(),null!==this.anchorElement&&(this.requestPositionUpdates(),null!==this.resizeDetector&&(this.resizeDetector.observe(this.anchorElement),this.resizeDetector.observe(this)))},this.requestPositionUpdates=()=>{null===this.anchorElement||this.pendingPositioningUpdate||(ui.intersectionService.requestPosition(this,this.handleIntersection),ui.intersectionService.requestPosition(this.anchorElement,this.handleIntersection),null!==this.viewportElement&&ui.intersectionService.requestPosition(this.viewportElement,this.handleIntersection),this.pendingPositioningUpdate=!0)},this.stopObservers=()=>{this.pendingPositioningUpdate&&(this.pendingPositioningUpdate=!1,ui.intersectionService.cancelRequestPosition(this,this.handleIntersection),null!==this.anchorElement&&ui.intersectionService.cancelRequestPosition(this.anchorElement,this.handleIntersection),null!==this.viewportElement&&ui.intersectionService.cancelRequestPosition(this.viewportElement,this.handleIntersection)),null!==this.resizeDetector&&this.resizeDetector.disconnect()},this.getViewport=()=>"string"!=typeof this.viewport||""===this.viewport?document.documentElement:document.getElementById(this.viewport),this.getAnchor=()=>document.getElementById(this.anchor),this.handleIntersection=t=>{this.pendingPositioningUpdate&&(this.pendingPositioningUpdate=!1,this.applyIntersectionEntries(t)&&this.updateLayout())},this.applyIntersectionEntries=t=>{const e=t.find(t=>t.target===this),i=t.find(t=>t.target===this.anchorElement),o=t.find(t=>t.target===this.viewportElement);return void 0!==e&&void 0!==o&&void 0!==i&&(!!(!this.regionVisible||this.forceUpdate||void 0===this.regionRect||void 0===this.anchorRect||void 0===this.viewportRect||this.isRectDifferent(this.anchorRect,i.boundingClientRect)||this.isRectDifferent(this.viewportRect,o.boundingClientRect)||this.isRectDifferent(this.regionRect,e.boundingClientRect))&&(this.regionRect=e.boundingClientRect,this.anchorRect=i.boundingClientRect,this.viewportElement===document.documentElement?this.viewportRect=new DOMRectReadOnly(o.boundingClientRect.x+document.documentElement.scrollLeft,o.boundingClientRect.y+document.documentElement.scrollTop,o.boundingClientRect.width,o.boundingClientRect.height):this.viewportRect=o.boundingClientRect,this.updateRegionOffset(),this.forceUpdate=!1,!0))},this.updateRegionOffset=()=>{this.anchorRect&&this.regionRect&&(this.baseHorizontalOffset=this.baseHorizontalOffset+(this.anchorRect.left-this.regionRect.left)+(this.translateX-this.baseHorizontalOffset),this.baseVerticalOffset=this.baseVerticalOffset+(this.anchorRect.top-this.regionRect.top)+(this.translateY-this.baseVerticalOffset))},this.isRectDifferent=(t,e)=>Math.abs(t.top-e.top)>this.updateThreshold||Math.abs(t.right-e.right)>this.updateThreshold||Math.abs(t.bottom-e.bottom)>this.updateThreshold||Math.abs(t.left-e.left)>this.updateThreshold,this.handleResize=t=>{this.update()},this.reset=()=>{this.pendingReset&&(this.pendingReset=!1,null===this.anchorElement&&(this.anchorElement=this.getAnchor()),null===this.viewportElement&&(this.viewportElement=this.getViewport()),this.currentDirection=di(this),this.startObservers())},this.updateLayout=()=>{let t=void 0,e=void 0;if("uncontrolled"!==this.horizontalPositioningMode){const t=this.getPositioningOptions(this.horizontalInset);if("center"===this.horizontalDefaultPosition)e="center";else if("unset"!==this.horizontalDefaultPosition){let t=this.horizontalDefaultPosition;if("start"===t||"end"===t){const e=di(this);if(e!==this.currentDirection)return this.currentDirection=e,void this.initialize();t=this.currentDirection===Ze.ltr?"start"===t?"left":"right":"start"===t?"right":"left"}switch(t){case"left":e=this.horizontalInset?"insetStart":"start";break;case"right":e=this.horizontalInset?"insetEnd":"end"}}const i=void 0!==this.horizontalThreshold?this.horizontalThreshold:void 0!==this.regionRect?this.regionRect.width:0,o=void 0!==this.anchorRect?this.anchorRect.left:0,s=void 0!==this.anchorRect?this.anchorRect.right:0,n=void 0!==this.anchorRect?this.anchorRect.width:0,r=void 0!==this.viewportRect?this.viewportRect.left:0,a=void 0!==this.viewportRect?this.viewportRect.right:0;(void 0===e||"locktodefault"!==this.horizontalPositioningMode&&this.getAvailableSpace(e,o,s,n,r,a)<i)&&(e=this.getAvailableSpace(t[0],o,s,n,r,a)>this.getAvailableSpace(t[1],o,s,n,r,a)?t[0]:t[1])}if("uncontrolled"!==this.verticalPositioningMode){const e=this.getPositioningOptions(this.verticalInset);if("center"===this.verticalDefaultPosition)t="center";else if("unset"!==this.verticalDefaultPosition)switch(this.verticalDefaultPosition){case"top":t=this.verticalInset?"insetStart":"start";break;case"bottom":t=this.verticalInset?"insetEnd":"end"}const i=void 0!==this.verticalThreshold?this.verticalThreshold:void 0!==this.regionRect?this.regionRect.height:0,o=void 0!==this.anchorRect?this.anchorRect.top:0,s=void 0!==this.anchorRect?this.anchorRect.bottom:0,n=void 0!==this.anchorRect?this.anchorRect.height:0,r=void 0!==this.viewportRect?this.viewportRect.top:0,a=void 0!==this.viewportRect?this.viewportRect.bottom:0;(void 0===t||"locktodefault"!==this.verticalPositioningMode&&this.getAvailableSpace(t,o,s,n,r,a)<i)&&(t=this.getAvailableSpace(e[0],o,s,n,r,a)>this.getAvailableSpace(e[1],o,s,n,r,a)?e[0]:e[1])}const i=this.getNextRegionDimension(e,t),o=this.horizontalPosition!==e||this.verticalPosition!==t;if(this.setHorizontalPosition(e,i),this.setVerticalPosition(t,i),this.updateRegionStyle(),!this.initialLayoutComplete)return this.initialLayoutComplete=!0,void this.requestPositionUpdates();this.regionVisible||(this.regionVisible=!0,this.style.removeProperty("pointer-events"),this.style.removeProperty("opacity"),this.classList.toggle("loaded",!0),this.$emit("loaded",this,{bubbles:!1})),this.updatePositionClasses(),o&&this.$emit("positionchange",this,{bubbles:!1})},this.updateRegionStyle=()=>{this.style.width=this.regionWidth,this.style.height=this.regionHeight,this.style.transform=`translate(${this.translateX}px, ${this.translateY}px)`},this.updatePositionClasses=()=>{this.classList.toggle("top","start"===this.verticalPosition),this.classList.toggle("bottom","end"===this.verticalPosition),this.classList.toggle("inset-top","insetStart"===this.verticalPosition),this.classList.toggle("inset-bottom","insetEnd"===this.verticalPosition),this.classList.toggle("vertical-center","center"===this.verticalPosition),this.classList.toggle("left","start"===this.horizontalPosition),this.classList.toggle("right","end"===this.horizontalPosition),this.classList.toggle("inset-left","insetStart"===this.horizontalPosition),this.classList.toggle("inset-right","insetEnd"===this.horizontalPosition),this.classList.toggle("horizontal-center","center"===this.horizontalPosition)},this.setHorizontalPosition=(t,e)=>{if(void 0===t||void 0===this.regionRect||void 0===this.anchorRect||void 0===this.viewportRect)return;let i=0;switch(this.horizontalScaling){case"anchor":case"fill":i=e.width,this.regionWidth=i+"px";break;case"content":i=this.regionRect.width,this.regionWidth="unset"}let o=0;switch(t){case"start":this.translateX=this.baseHorizontalOffset-i,this.horizontalViewportLock&&this.anchorRect.left>this.viewportRect.right&&(this.translateX=this.translateX-(this.anchorRect.left-this.viewportRect.right));break;case"insetStart":this.translateX=this.baseHorizontalOffset-i+this.anchorRect.width,this.horizontalViewportLock&&this.anchorRect.right>this.viewportRect.right&&(this.translateX=this.translateX-(this.anchorRect.right-this.viewportRect.right));break;case"insetEnd":this.translateX=this.baseHorizontalOffset,this.horizontalViewportLock&&this.anchorRect.left<this.viewportRect.left&&(this.translateX=this.translateX-(this.anchorRect.left-this.viewportRect.left));break;case"end":this.translateX=this.baseHorizontalOffset+this.anchorRect.width,this.horizontalViewportLock&&this.anchorRect.right<this.viewportRect.left&&(this.translateX=this.translateX-(this.anchorRect.right-this.viewportRect.left));break;case"center":if(o=(this.anchorRect.width-i)/2,this.translateX=this.baseHorizontalOffset+o,this.horizontalViewportLock){const t=this.anchorRect.left+o,e=this.anchorRect.right-o;t<this.viewportRect.left&&!(e>this.viewportRect.right)?this.translateX=this.translateX-(t-this.viewportRect.left):e>this.viewportRect.right&&!(t<this.viewportRect.left)&&(this.translateX=this.translateX-(e-this.viewportRect.right))}}this.horizontalPosition=t},this.setVerticalPosition=(t,e)=>{if(void 0===t||void 0===this.regionRect||void 0===this.anchorRect||void 0===this.viewportRect)return;let i=0;switch(this.verticalScaling){case"anchor":case"fill":i=e.height,this.regionHeight=i+"px";break;case"content":i=this.regionRect.height,this.regionHeight="unset"}let o=0;switch(t){case"start":this.translateY=this.baseVerticalOffset-i,this.verticalViewportLock&&this.anchorRect.top>this.viewportRect.bottom&&(this.translateY=this.translateY-(this.anchorRect.top-this.viewportRect.bottom));break;case"insetStart":this.translateY=this.baseVerticalOffset-i+this.anchorRect.height,this.verticalViewportLock&&this.anchorRect.bottom>this.viewportRect.bottom&&(this.translateY=this.translateY-(this.anchorRect.bottom-this.viewportRect.bottom));break;case"insetEnd":this.translateY=this.baseVerticalOffset,this.verticalViewportLock&&this.anchorRect.top<this.viewportRect.top&&(this.translateY=this.translateY-(this.anchorRect.top-this.viewportRect.top));break;case"end":this.translateY=this.baseVerticalOffset+this.anchorRect.height,this.verticalViewportLock&&this.anchorRect.bottom<this.viewportRect.top&&(this.translateY=this.translateY-(this.anchorRect.bottom-this.viewportRect.top));break;case"center":if(o=(this.anchorRect.height-i)/2,this.translateY=this.baseVerticalOffset+o,this.verticalViewportLock){const t=this.anchorRect.top+o,e=this.anchorRect.bottom-o;t<this.viewportRect.top&&!(e>this.viewportRect.bottom)?this.translateY=this.translateY-(t-this.viewportRect.top):e>this.viewportRect.bottom&&!(t<this.viewportRect.top)&&(this.translateY=this.translateY-(e-this.viewportRect.bottom))}}this.verticalPosition=t},this.getPositioningOptions=t=>t?["insetStart","insetEnd"]:["start","end"],this.getAvailableSpace=(t,e,i,o,s,n)=>{const r=e-s,a=n-(e+o);switch(t){case"start":return r;case"insetStart":return r+o;case"insetEnd":return a+o;case"end":return a;case"center":return 2*Math.min(r,a)+o}},this.getNextRegionDimension=(t,e)=>{const i={height:void 0!==this.regionRect?this.regionRect.height:0,width:void 0!==this.regionRect?this.regionRect.width:0};return void 0!==t&&"fill"===this.horizontalScaling?i.width=this.getAvailableSpace(t,void 0!==this.anchorRect?this.anchorRect.left:0,void 0!==this.anchorRect?this.anchorRect.right:0,void 0!==this.anchorRect?this.anchorRect.width:0,void 0!==this.viewportRect?this.viewportRect.left:0,void 0!==this.viewportRect?this.viewportRect.right:0):"anchor"===this.horizontalScaling&&(i.width=void 0!==this.anchorRect?this.anchorRect.width:0),void 0!==e&&"fill"===this.verticalScaling?i.height=this.getAvailableSpace(e,void 0!==this.anchorRect?this.anchorRect.top:0,void 0!==this.anchorRect?this.anchorRect.bottom:0,void 0!==this.anchorRect?this.anchorRect.height:0,void 0!==this.viewportRect?this.viewportRect.top:0,void 0!==this.viewportRect?this.viewportRect.bottom:0):"anchor"===this.verticalScaling&&(i.height=void 0!==this.anchorRect?this.anchorRect.height:0),i},this.startAutoUpdateEventListeners=()=>{window.addEventListener("resize",this.update,{passive:!0}),window.addEventListener("scroll",this.update,{passive:!0,capture:!0}),null!==this.resizeDetector&&null!==this.viewportElement&&this.resizeDetector.observe(this.viewportElement)},this.stopAutoUpdateEventListeners=()=>{window.removeEventListener("resize",this.update),window.removeEventListener("scroll",this.update),null!==this.resizeDetector&&null!==this.viewportElement&&this.resizeDetector.unobserve(this.viewportElement)}}anchorChanged(){this.initialLayoutComplete&&(this.anchorElement=this.getAnchor())}viewportChanged(){this.initialLayoutComplete&&(this.viewportElement=this.getViewport())}horizontalPositioningModeChanged(){this.requestReset()}horizontalDefaultPositionChanged(){this.updateForAttributeChange()}horizontalViewportLockChanged(){this.updateForAttributeChange()}horizontalInsetChanged(){this.updateForAttributeChange()}horizontalThresholdChanged(){this.updateForAttributeChange()}horizontalScalingChanged(){this.updateForAttributeChange()}verticalPositioningModeChanged(){this.requestReset()}verticalDefaultPositionChanged(){this.updateForAttributeChange()}verticalViewportLockChanged(){this.updateForAttributeChange()}verticalInsetChanged(){this.updateForAttributeChange()}verticalThresholdChanged(){this.updateForAttributeChange()}verticalScalingChanged(){this.updateForAttributeChange()}fixedPlacementChanged(){this.$fastController.isConnected&&this.initialLayoutComplete&&this.initialize()}autoUpdateModeChanged(t,e){this.$fastController.isConnected&&this.initialLayoutComplete&&("auto"===t&&this.stopAutoUpdateEventListeners(),"auto"===e&&this.startAutoUpdateEventListeners())}anchorElementChanged(){this.requestReset()}viewportElementChanged(){this.$fastController.isConnected&&this.initialLayoutComplete&&this.initialize()}connectedCallback(){super.connectedCallback(),"auto"===this.autoUpdateMode&&this.startAutoUpdateEventListeners(),this.initialize()}disconnectedCallback(){super.disconnectedCallback(),"auto"===this.autoUpdateMode&&this.stopAutoUpdateEventListeners(),this.stopObservers(),this.disconnectResizeDetector()}adoptedCallback(){this.initialize()}disconnectResizeDetector(){null!==this.resizeDetector&&(this.resizeDetector.disconnect(),this.resizeDetector=null)}initializeResizeDetector(){this.disconnectResizeDetector(),this.resizeDetector=new window.ResizeObserver(this.handleResize)}updateForAttributeChange(){this.$fastController.isConnected&&this.initialLayoutComplete&&(this.forceUpdate=!0,this.update())}initialize(){this.initializeResizeDetector(),null===this.anchorElement&&(this.anchorElement=this.getAnchor()),this.requestReset()}requestReset(){this.$fastController.isConnected&&!1===this.pendingReset&&(this.setInitialState(),d.queueUpdate(()=>this.reset()),this.pendingReset=!0)}setInitialState(){this.initialLayoutComplete=!1,this.regionVisible=!1,this.translateX=0,this.translateY=0,this.baseHorizontalOffset=0,this.baseVerticalOffset=0,this.viewportRect=void 0,this.regionRect=void 0,this.anchorRect=void 0,this.verticalPosition=void 0,this.horizontalPosition=void 0,this.style.opacity="0",this.style.pointerEvents="none",this.forceUpdate=!1,this.style.position=this.fixedPlacement?"fixed":"absolute",this.updatePositionClasses(),this.updateRegionStyle()}}ui.intersectionService=new class{constructor(){this.intersectionDetector=null,this.observedElements=new Map,this.requestPosition=(t,e)=>{var i;null!==this.intersectionDetector&&(this.observedElements.has(t)?null===(i=this.observedElements.get(t))||void 0===i||i.push(e):(this.observedElements.set(t,[e]),this.intersectionDetector.observe(t)))},this.cancelRequestPosition=(t,e)=>{const i=this.observedElements.get(t);if(void 0!==i){const t=i.indexOf(e);-1!==t&&i.splice(t,1)}},this.initializeIntersectionDetector=()=>{t.IntersectionObserver&&(this.intersectionDetector=new IntersectionObserver(this.handleIntersection,{root:null,rootMargin:"0px",threshold:[0,1]}))},this.handleIntersection=t=>{if(null===this.intersectionDetector)return;const e=[],i=[];t.forEach(t=>{var o;null===(o=this.intersectionDetector)||void 0===o||o.unobserve(t.target);const s=this.observedElements.get(t.target);void 0!==s&&(s.forEach(o=>{let s=e.indexOf(o);-1===s&&(s=e.length,e.push(o),i.push([])),i[s].push(t)}),this.observedElements.delete(t.target))}),e.forEach((t,e)=>{t(i[e])})},this.initializeIntersectionDetector()}},ne([ft],ui.prototype,"anchor",void 0),ne([ft],ui.prototype,"viewport",void 0),ne([ft({attribute:"horizontal-positioning-mode"})],ui.prototype,"horizontalPositioningMode",void 0),ne([ft({attribute:"horizontal-default-position"})],ui.prototype,"horizontalDefaultPosition",void 0),ne([ft({attribute:"horizontal-viewport-lock",mode:"boolean"})],ui.prototype,"horizontalViewportLock",void 0),ne([ft({attribute:"horizontal-inset",mode:"boolean"})],ui.prototype,"horizontalInset",void 0),ne([ft({attribute:"horizontal-threshold"})],ui.prototype,"horizontalThreshold",void 0),ne([ft({attribute:"horizontal-scaling"})],ui.prototype,"horizontalScaling",void 0),ne([ft({attribute:"vertical-positioning-mode"})],ui.prototype,"verticalPositioningMode",void 0),ne([ft({attribute:"vertical-default-position"})],ui.prototype,"verticalDefaultPosition",void 0),ne([ft({attribute:"vertical-viewport-lock",mode:"boolean"})],ui.prototype,"verticalViewportLock",void 0),ne([ft({attribute:"vertical-inset",mode:"boolean"})],ui.prototype,"verticalInset",void 0),ne([ft({attribute:"vertical-threshold"})],ui.prototype,"verticalThreshold",void 0),ne([ft({attribute:"vertical-scaling"})],ui.prototype,"verticalScaling",void 0),ne([ft({attribute:"fixed-placement",mode:"boolean"})],ui.prototype,"fixedPlacement",void 0),ne([ft({attribute:"auto-update-mode"})],ui.prototype,"autoUpdateMode",void 0),ne([T],ui.prototype,"anchorElement",void 0),ne([T],ui.prototype,"viewportElement",void 0),ne([T],ui.prototype,"initialLayoutComplete",void 0);class pi extends je{constructor(){super(...arguments),this.generateBadgeStyle=()=>{if(!this.fill&&!this.color)return;const t=`background-color: var(--badge-fill-${this.fill});`,e=`color: var(--badge-color-${this.color});`;return this.fill&&!this.color?t:this.color&&!this.fill?e:`${e} ${t}`}}}ne([ft({attribute:"fill"})],pi.prototype,"fill",void 0),ne([ft({attribute:"color"})],pi.prototype,"color",void 0),ne([ft({mode:"boolean"})],pi.prototype,"circular",void 0);class gi extends ci{constructor(){super(...arguments),this.separator=!0}}ne([T],gi.prototype,"separator",void 0),_e(gi,te,hi);class fi extends je{slottedBreadcrumbItemsChanged(){if(this.$fastController.isConnected){if(void 0===this.slottedBreadcrumbItems||0===this.slottedBreadcrumbItems.length)return;const t=this.slottedBreadcrumbItems[this.slottedBreadcrumbItems.length-1];this.setItemSeparator(t),this.setLastItemAriaCurrent(t)}}setItemSeparator(t){this.slottedBreadcrumbItems.forEach(t=>{t instanceof gi&&(t.separator=!0)}),t instanceof gi&&(t.separator=!1)}findChildWithHref(t){var e,i;return t.childElementCount>0?t.querySelector("a[href]"):(null===(e=t.shadowRoot)||void 0===e?void 0:e.childElementCount)?null===(i=t.shadowRoot)||void 0===i?void 0:i.querySelector("a[href]"):null}setLastItemAriaCurrent(t){const e=this.findChildWithHref(t);null===e&&t.hasAttribute("href")&&t instanceof gi?t.ariaCurrent="page":null!==e&&e.setAttribute("aria-current","page")}}ne([T],fi.prototype,"slottedBreadcrumbItems",void 0);const mi="ElementInternals"in window&&"setFormValue"in window.ElementInternals.prototype,bi=new Map;function vi(t){const i=class extends t{constructor(...t){super(...t),this.dirtyValue=!1,this.disabled=!1,this.proxyEventsToBlock=["change","click"],this.proxyInitialized=!1,this.required=!1,this.initialValue=this.initialValue||"",this.elementInternals||(this.formResetCallback=this.formResetCallback.bind(this))}static get formAssociated(){return mi}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 t=this.proxy.labels,e=Array.from(this.proxy.getRootNode().querySelectorAll(`[for='${this.id}']`)),i=t?e.concat(Array.from(t)):e;return Object.freeze(i)}return e}valueChanged(t,e){this.dirtyValue=!0,this.proxy instanceof HTMLElement&&(this.proxy.value=this.value),this.currentValue=this.value,this.setFormValue(this.value),this.validate()}currentValueChanged(){this.value=this.currentValue}initialValueChanged(t,e){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}disabledChanged(t,e){this.proxy instanceof HTMLElement&&(this.proxy.disabled=this.disabled),d.queueUpdate(()=>this.classList.toggle("disabled",this.disabled))}nameChanged(t,e){this.proxy instanceof HTMLElement&&(this.proxy.name=this.name)}requiredChanged(t,e){this.proxy instanceof HTMLElement&&(this.proxy.required=this.required),d.queueUpdate(()=>this.classList.toggle("required",this.required)),this.validate()}get elementInternals(){if(!mi)return null;let t=bi.get(this);return t||(t=this.attachInternals(),bi.set(this,t)),t}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(t=>this.proxy.removeEventListener(t,this.stopPropagation)),!this.elementInternals&&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(t,e,i){this.elementInternals?this.elementInternals.setValidity(t,e,i):"string"==typeof e&&this.proxy.setCustomValidity(e)}formDisabledCallback(t){this.disabled=t}formResetCallback(){this.value=this.initialValue,this.dirtyValue=!1}attachProxy(){var t;this.proxyInitialized||(this.proxyInitialized=!0,this.proxy.style.display="none",this.proxyEventsToBlock.forEach(t=>this.proxy.addEventListener(t,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===(t=this.shadowRoot)||void 0===t||t.appendChild(this.proxySlot),this.appendChild(this.proxy)}detachProxy(){var t;this.removeChild(this.proxy),null===(t=this.shadowRoot)||void 0===t||t.removeChild(this.proxySlot)}validate(){this.proxy instanceof HTMLElement&&this.setValidity(this.proxy.validity,this.proxy.validationMessage)}setFormValue(t,e){this.elementInternals&&this.elementInternals.setFormValue(t,e||t)}_keypressHandler(t){switch(t.key){case"Enter":if(this.form instanceof HTMLFormElement){const t=this.form.querySelector("[type=submit]");null==t||t.click()}}}stopPropagation(t){t.stopPropagation()}};return ft({mode:"boolean"})(i.prototype,"disabled"),ft({mode:"fromView",attribute:"value"})(i.prototype,"initialValue"),ft({attribute:"current-value"})(i.prototype,"currentValue"),ft(i.prototype,"name"),ft({mode:"boolean"})(i.prototype,"required"),T(i.prototype,"value"),i}function yi(t){class e extends(vi(t)){}class i extends e{constructor(...t){super(t),this.dirtyChecked=!1,this.checkedAttribute=!1,this.checked=!1,this.dirtyChecked=!1}checkedAttributeChanged(){this.defaultChecked=this.checkedAttribute}defaultCheckedChanged(){this.dirtyChecked||(this.checked=this.defaultChecked,this.dirtyChecked=!1)}checkedChanged(t,e){this.dirtyChecked||(this.dirtyChecked=!0),this.currentChecked=this.checked,this.updateForm(),this.proxy instanceof HTMLInputElement&&(this.proxy.checked=this.checked),void 0!==t&&this.$emit("change"),this.validate()}currentCheckedChanged(t,e){this.checked=this.currentChecked}updateForm(){const t=this.checked?this.value:null;this.setFormValue(t,t)}connectedCallback(){super.connectedCallback(),this.updateForm()}formResetCallback(){super.formResetCallback(),this.checked=!!this.checkedAttribute,this.dirtyChecked=!1}}return ft({attribute:"checked",mode:"boolean"})(i.prototype,"checkedAttribute"),ft({attribute:"current-checked",converter:ut})(i.prototype,"currentChecked"),T(i.prototype,"defaultChecked"),T(i.prototype,"checked"),i}class xi extends je{}class $i extends(vi(xi)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class wi extends $i{constructor(){super(...arguments),this.handleClick=t=>{var e;this.disabled&&(null===(e=this.defaultSlottedContent)||void 0===e?void 0:e.length)<=1&&t.stopPropagation()},this.handleSubmission=()=>{if(!this.form)return;const t=this.proxy.isConnected;t||this.attachProxy(),"function"==typeof this.form.requestSubmit?this.form.requestSubmit(this.proxy):this.proxy.click(),t||this.detachProxy()},this.handleFormReset=()=>{var t;null===(t=this.form)||void 0===t||t.reset()},this.handleUnsupportedDelegatesFocus=()=>{var t;window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&(null===(t=this.$fastController.definition.shadowOptions)||void 0===t?void 0:t.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(t,e){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.type),"submit"===e&&this.addEventListener("click",this.handleSubmission),"submit"===t&&this.removeEventListener("click",this.handleSubmission),"reset"===e&&this.addEventListener("click",this.handleFormReset),"reset"===t&&this.removeEventListener("click",this.handleFormReset)}connectedCallback(){var t;super.connectedCallback(),this.proxy.setAttribute("type",this.type),this.handleUnsupportedDelegatesFocus();const e=Array.from(null===(t=this.control)||void 0===t?void 0:t.children);e&&e.forEach(t=>{t.addEventListener("click",this.handleClick)})}disconnectedCallback(){var t;super.disconnectedCallback();const e=Array.from(null===(t=this.control)||void 0===t?void 0:t.children);e&&e.forEach(t=>{t.removeEventListener("click",this.handleClick)})}}ne([ft({mode:"boolean"})],wi.prototype,"autofocus",void 0),ne([ft({attribute:"form"})],wi.prototype,"formId",void 0),ne([ft],wi.prototype,"formaction",void 0),ne([ft],wi.prototype,"formenctype",void 0),ne([ft],wi.prototype,"formmethod",void 0),ne([ft({mode:"boolean"})],wi.prototype,"formnovalidate",void 0),ne([ft],wi.prototype,"formtarget",void 0),ne([ft],wi.prototype,"type",void 0),ne([T],wi.prototype,"defaultSlottedContent",void 0);class ki{}ne([ft({attribute:"aria-expanded",mode:"fromView"})],ki.prototype,"ariaExpanded",void 0),ne([ft({attribute:"aria-pressed",mode:"fromView"})],ki.prototype,"ariaPressed",void 0),_e(ki,li),_e(wi,te,ki);class Ci{constructor(t){if(this.dayFormat="numeric",this.weekdayFormat="long",this.monthFormat="long",this.yearFormat="numeric",this.date=new Date,t)for(const e in t){const i=t[e];"date"===e?this.date=this.getDateObject(i):this[e]=i}}getDateObject(t){if("string"==typeof t){const e=t.split(/[/-]/);return e.length<3?new Date:new Date(parseInt(e[2],10),parseInt(e[0],10)-1,parseInt(e[1],10))}if("day"in t&&"month"in t&&"year"in t){const{day:e,month:i,year:o}=t;return new Date(o,i-1,e)}return t}getDate(t=this.date,e={weekday:this.weekdayFormat,month:this.monthFormat,day:this.dayFormat,year:this.yearFormat},i=this.locale){const o=this.getDateObject(t),s=Object.assign({timeZone:"utc"},e);return new Intl.DateTimeFormat(i,s).format(o)}getDay(t=this.date.getDate(),e=this.dayFormat,i=this.locale){return this.getDate({month:1,day:t,year:2020},{day:e},i)}getMonth(t=this.date.getMonth()+1,e=this.monthFormat,i=this.locale){return this.getDate({month:t,day:2,year:2020},{month:e},i)}getYear(t=this.date.getFullYear(),e=this.yearFormat,i=this.locale){return this.getDate({month:2,day:2,year:t},{year:e},i)}getWeekday(t=0,e=this.weekdayFormat,i=this.locale){const o=`1-${t+1}-2017`;return this.getDate(o,{weekday:e},i)}getWeekdays(t=this.weekdayFormat,e=this.locale){return Array(7).fill(null).map((i,o)=>this.getWeekday(o,t,e))}}class Ii extends je{constructor(){super(...arguments),this.dateFormatter=new Ci,this.readonly=!1,this.locale="en-US",this.month=(new Date).getMonth()+1,this.year=(new Date).getFullYear(),this.dayFormat="numeric",this.weekdayFormat="short",this.monthFormat="long",this.yearFormat="numeric",this.minWeeks=0,this.disabledDates="",this.selectedDates="",this.oneDayInMs=864e5}localeChanged(){this.dateFormatter.locale=this.locale}dayFormatChanged(){this.dateFormatter.dayFormat=this.dayFormat}weekdayFormatChanged(){this.dateFormatter.weekdayFormat=this.weekdayFormat}monthFormatChanged(){this.dateFormatter.monthFormat=this.monthFormat}yearFormatChanged(){this.dateFormatter.yearFormat=this.yearFormat}getMonthInfo(t=this.month,e=this.year){const i=t=>new Date(t.getFullYear(),t.getMonth(),1).getDay(),o=t=>{const e=new Date(t.getFullYear(),t.getMonth()+1,1);return new Date(e.getTime()-this.oneDayInMs).getDate()},s=new Date(e,t-1),n=new Date(e,t),r=new Date(e,t-2);return{length:o(s),month:t,start:i(s),year:e,previous:{length:o(r),month:r.getMonth()+1,start:i(r),year:r.getFullYear()},next:{length:o(n),month:n.getMonth()+1,start:i(n),year:n.getFullYear()}}}getDays(t=this.getMonthInfo(),e=this.minWeeks){e=e>10?10:e;const{start:i,length:o,previous:s,next:n}=t,r=[];let a=1-i;for(;a<o+1||r.length<e||r[r.length-1].length%7!=0;){const{month:e,year:i}=a<1?s:a>o?n:t,l=a<1?s.length+a:a>o?a-o:a,c=`${e}-${l}-${i}`,h={day:l,month:e,year:i,disabled:this.dateInString(c,this.disabledDates),selected:this.dateInString(c,this.selectedDates)},d=r[r.length-1];0===r.length||d.length%7==0?r.push([h]):d.push(h),a++}return r}dateInString(t,e){const i=e.split(",").map(t=>t.trim());return t="string"==typeof t?t:`${t.getMonth()+1}-${t.getDate()}-${t.getFullYear()}`,i.some(e=>e===t)}getDayClassNames(t,e){const{day:i,month:o,year:s,disabled:n,selected:r}=t;return["day",e===`${o}-${i}-${s}`&&"today",this.month!==o&&"inactive",n&&"disabled",r&&"selected"].filter(Boolean).join(" ")}getWeekdayText(){const t=this.dateFormatter.getWeekdays().map(t=>({text:t}));if("long"!==this.weekdayFormat){const e=this.dateFormatter.getWeekdays("long");t.forEach((t,i)=>{t.abbr=e[i]})}return t}handleDateSelect(t,e){t.preventDefault,this.$emit("dateselected",e)}handleKeydown(t,e){return"Enter"===t.key&&this.handleDateSelect(t,e),!0}}var Fi,Ti,Di;ne([ft({mode:"boolean"})],Ii.prototype,"readonly",void 0),ne([ft],Ii.prototype,"locale",void 0),ne([ft({converter:pt})],Ii.prototype,"month",void 0),ne([ft({converter:pt})],Ii.prototype,"year",void 0),ne([ft({attribute:"day-format",mode:"fromView"})],Ii.prototype,"dayFormat",void 0),ne([ft({attribute:"weekday-format",mode:"fromView"})],Ii.prototype,"weekdayFormat",void 0),ne([ft({attribute:"month-format",mode:"fromView"})],Ii.prototype,"monthFormat",void 0),ne([ft({attribute:"year-format",mode:"fromView"})],Ii.prototype,"yearFormat",void 0),ne([ft({attribute:"min-weeks",converter:pt})],Ii.prototype,"minWeeks",void 0),ne([ft({attribute:"disabled-dates"})],Ii.prototype,"disabledDates",void 0),ne([ft({attribute:"selected-dates"})],Ii.prototype,"selectedDates",void 0),function(t){t.none="none",t.default="default",t.sticky="sticky"}(Fi||(Fi={})),function(t){t.default="default",t.columnHeader="columnheader",t.rowHeader="rowheader"}(Ti||(Ti={})),function(t){t.default="default",t.header="header",t.stickyHeader="sticky-header"}(Di||(Di={}));class Si extends je{constructor(){super(...arguments),this.rowType=Di.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 Gt(t=>t.columnDefinitions,t=>t.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(t){this.contains(t.target)||(this.isActiveRow=!1,this.focusColumnIndex=0)}handleCellFocus(t){this.isActiveRow=!0,this.focusColumnIndex=this.cellElements.indexOf(t.target),this.$emit("row-focused",this)}handleKeydown(t){if(t.defaultPrevented)return;let e=0;switch(t.key){case"ArrowLeft":e=Math.max(0,this.focusColumnIndex-1),this.cellElements[e].focus(),t.preventDefault();break;case"ArrowRight":e=Math.min(this.cellElements.length-1,this.focusColumnIndex+1),this.cellElements[e].focus(),t.preventDefault();break;case"Home":t.ctrlKey||(this.cellElements[0].focus(),t.preventDefault());break;case"End":t.ctrlKey||(this.cellElements[this.cellElements.length-1].focus(),t.preventDefault())}}updateItemTemplate(){this.activeCellItemTemplate=this.rowType===Di.default&&void 0!==this.cellItemTemplate?this.cellItemTemplate:this.rowType===Di.default&&void 0===this.cellItemTemplate?this.defaultCellItemTemplate:void 0!==this.headerCellItemTemplate?this.headerCellItemTemplate:this.defaultHeaderCellItemTemplate}}ne([ft({attribute:"grid-template-columns"})],Si.prototype,"gridTemplateColumns",void 0),ne([ft({attribute:"row-type"})],Si.prototype,"rowType",void 0),ne([T],Si.prototype,"rowData",void 0),ne([T],Si.prototype,"columnDefinitions",void 0),ne([T],Si.prototype,"cellItemTemplate",void 0),ne([T],Si.prototype,"headerCellItemTemplate",void 0),ne([T],Si.prototype,"rowIndex",void 0),ne([T],Si.prototype,"isActiveRow",void 0),ne([T],Si.prototype,"activeCellItemTemplate",void 0),ne([T],Si.prototype,"defaultCellItemTemplate",void 0),ne([T],Si.prototype,"defaultHeaderCellItemTemplate",void 0),ne([T],Si.prototype,"cellElements",void 0);class Vi extends je{constructor(){super(),this.generateHeader=Fi.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=(t,e,i)=>{if(0===this.rowElements.length)return this.focusRowIndex=0,void(this.focusColumnIndex=0);const o=Math.max(0,Math.min(this.rowElements.length-1,t)),s=this.rowElements[o].querySelectorAll('[role="cell"], [role="gridcell"], [role="columnheader"], [role="rowheader"]'),n=s[Math.max(0,Math.min(s.length-1,e))];i&&this.scrollHeight!==this.clientHeight&&(o<this.focusRowIndex&&this.scrollTop>0||o>this.focusRowIndex&&this.scrollTop<this.scrollHeight-this.clientHeight)&&n.scrollIntoView({block:"center",inline:"center"}),n.focus()},this.onChildListChange=(t,e)=>{t&&t.length&&(t.forEach(t=>{t.addedNodes.forEach(t=>{1===t.nodeType&&"row"===t.getAttribute("role")&&(t.columnDefinitions=this.columnDefinitions)})}),this.queueRowIndexUpdate())},this.queueRowIndexUpdate=()=>{this.rowindexUpdateQueued||(this.rowindexUpdateQueued=!0,d.queueUpdate(this.updateRowIndexes))},this.updateRowIndexes=()=>{const t=void 0===this.gridTemplateColumns?this.generatedGridTemplateColumns:this.gridTemplateColumns;this.rowElements.forEach((e,i)=>{const o=e;o.rowIndex=i,o.gridTemplateColumns=t,this.columnDefinitionsStale&&(o.columnDefinitions=this.columnDefinitions)}),this.rowindexUpdateQueued=!1,this.columnDefinitionsStale=!1}}static generateTemplateColumns(t){let e="";return t.forEach(t=>{e=`${e}${""===e?"":" "}1fr`}),e}generateHeaderChanged(){this.$fastController.isConnected&&this.toggleGeneratedHeader()}gridTemplateColumnsChanged(){this.$fastController.isConnected&&this.updateRowIndexes()}rowsDataChanged(){null===this.columnDefinitions&&this.rowsData.length>0&&(this.columnDefinitions=Vi.generateColumns(this.rowsData[0]))}columnDefinitionsChanged(){null!==this.columnDefinitions?(this.generatedGridTemplateColumns=Vi.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 Gt(t=>t.rowsData,t=>t.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}),d.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(t){this.isUpdatingFocus=!0;const e=t.target;this.focusRowIndex=this.rowElements.indexOf(e),this.focusColumnIndex=e.focusColumnIndex,this.setAttribute("tabIndex","-1"),this.isUpdatingFocus=!1}handleFocus(t){this.focusOnCell(this.focusRowIndex,this.focusColumnIndex,!0)}handleFocusOut(t){null!==t.relatedTarget&&this.contains(t.relatedTarget)||this.setAttribute("tabIndex","0")}handleKeydown(t){if(t.defaultPrevented)return;let e;const i=this.rowElements.length-1,o=this.offsetHeight+this.scrollTop,s=this.rowElements[i];switch(t.key){case"ArrowUp":t.preventDefault(),this.focusOnCell(this.focusRowIndex-1,this.focusColumnIndex,!0);break;case"ArrowDown":t.preventDefault(),this.focusOnCell(this.focusRowIndex+1,this.focusColumnIndex,!0);break;case"PageUp":if(t.preventDefault(),0===this.rowElements.length){this.focusOnCell(0,0,!1);break}if(0===this.focusRowIndex)return void this.focusOnCell(0,this.focusColumnIndex,!1);for(e=this.focusRowIndex-1;e>=0;e--){const t=this.rowElements[e];if(t.offsetTop<this.scrollTop){this.scrollTop=t.offsetTop+t.clientHeight-this.clientHeight;break}}this.focusOnCell(e,this.focusColumnIndex,!1);break;case"PageDown":if(t.preventDefault(),0===this.rowElements.length){this.focusOnCell(0,0,!1);break}if(this.focusRowIndex>=i||s.offsetTop+s.offsetHeight<=o)return void this.focusOnCell(i,this.focusColumnIndex,!1);for(e=this.focusRowIndex+1;e<=i;e++){const t=this.rowElements[e];if(t.offsetTop+t.offsetHeight>o){let e=0;this.generateHeader===Fi.sticky&&null!==this.generatedHeader&&(e=this.generatedHeader.clientHeight),this.scrollTop=t.offsetTop-e;break}}this.focusOnCell(e,this.focusColumnIndex,!1);break;case"Home":t.ctrlKey&&(t.preventDefault(),this.focusOnCell(0,0,!0));break;case"End":t.ctrlKey&&null!==this.columnDefinitions&&(t.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,d.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!==Fi.none){const t=document.createElement(this.rowElementTag);return this.generatedHeader=t,this.generatedHeader.columnDefinitions=this.columnDefinitions,this.generatedHeader.gridTemplateColumns=this.gridTemplateColumns,this.generatedHeader.rowType=this.generateHeader===Fi.sticky?Di.stickyHeader:Di.header,void(null===this.firstChild&&null===this.rowsPlaceholder||this.insertBefore(t,null!==this.firstChild?this.firstChild:this.rowsPlaceholder))}}}Vi.generateColumns=t=>Object.getOwnPropertyNames(t).map((t,e)=>({columnDataKey:t,gridColumn:""+e})),ne([ft({attribute:"generate-header"})],Vi.prototype,"generateHeader",void 0),ne([ft({attribute:"grid-template-columns"})],Vi.prototype,"gridTemplateColumns",void 0),ne([T],Vi.prototype,"rowsData",void 0),ne([T],Vi.prototype,"columnDefinitions",void 0),ne([T],Vi.prototype,"rowItemTemplate",void 0),ne([T],Vi.prototype,"cellItemTemplate",void 0),ne([T],Vi.prototype,"headerCellItemTemplate",void 0),ne([T],Vi.prototype,"focusRowIndex",void 0),ne([T],Vi.prototype,"focusColumnIndex",void 0),ne([T],Vi.prototype,"defaultRowItemTemplate",void 0),ne([T],Vi.prototype,"rowElementTag",void 0),ne([T],Vi.prototype,"rowElements",void 0);const Oi=nt`<template>${t=>null===t.rowData||null===t.columnDefinition||null===t.columnDefinition.columnDataKey?null:t.rowData[t.columnDefinition.columnDataKey]}</template>`,Ei=nt`<template>${t=>null===t.columnDefinition?null:void 0===t.columnDefinition.title?t.columnDefinition.columnDataKey:t.columnDefinition.title}</template>`;class Ri extends je{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(t,e){this.$fastController.isConnected&&this.updateCellView()}connectedCallback(){var t;super.connectedCallback(),this.addEventListener("focusin",this.handleFocusin),this.addEventListener("focusout",this.handleFocusout),this.addEventListener("keydown",this.handleKeydown),this.style.gridColumn=""+(void 0===(null===(t=this.columnDefinition)||void 0===t?void 0:t.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(t){if(!this.isActiveCell){switch(this.isActiveCell=!0,this.cellType){case Ti.columnHeader:if(null!==this.columnDefinition&&!0!==this.columnDefinition.headerCellInternalFocusQueue&&"function"==typeof this.columnDefinition.headerCellFocusTargetCallback){const t=this.columnDefinition.headerCellFocusTargetCallback(this);null!==t&&t.focus()}break;default:if(null!==this.columnDefinition&&!0!==this.columnDefinition.cellInternalFocusQueue&&"function"==typeof this.columnDefinition.cellFocusTargetCallback){const t=this.columnDefinition.cellFocusTargetCallback(this);null!==t&&t.focus()}}this.$emit("cell-focused",this)}}handleFocusout(t){this===document.activeElement||this.contains(document.activeElement)||(this.isActiveCell=!1,this.isInternalFocused=!1)}handleKeydown(t){if(!(t.defaultPrevented||null===this.columnDefinition||this.cellType===Ti.default&&!0!==this.columnDefinition.cellInternalFocusQueue||this.cellType===Ti.columnHeader&&!0!==this.columnDefinition.headerCellInternalFocusQueue))switch(t.key){case"Enter":case"F2":if(this.isInternalFocused||void 0===this.columnDefinition)return;switch(this.cellType){case Ti.default:if(void 0!==this.columnDefinition.cellFocusTargetCallback){const e=this.columnDefinition.cellFocusTargetCallback(this);null!==e&&(this.isInternalFocused=!0,e.focus()),t.preventDefault()}break;case Ti.columnHeader:if(void 0!==this.columnDefinition.headerCellFocusTargetCallback){const e=this.columnDefinition.headerCellFocusTargetCallback(this);null!==e&&(this.isInternalFocused=!0,e.focus()),t.preventDefault()}}break;case"Escape":this.isInternalFocused&&(this.focus(),this.isInternalFocused=!1,t.preventDefault())}}updateCellView(){if(this.disconnectCellView(),null!==this.columnDefinition)switch(this.cellType){case Ti.columnHeader:void 0!==this.columnDefinition.headerCellTemplate?this.customCellView=this.columnDefinition.headerCellTemplate.render(this,this):this.customCellView=Ei.render(this,this);break;case void 0:case Ti.rowHeader:case Ti.default:void 0!==this.columnDefinition.cellTemplate?this.customCellView=this.columnDefinition.cellTemplate.render(this,this):this.customCellView=Oi.render(this,this)}}disconnectCellView(){null!==this.customCellView&&(this.customCellView.dispose(),this.customCellView=null)}}ne([ft({attribute:"cell-type"})],Ri.prototype,"cellType",void 0),ne([ft({attribute:"grid-column"})],Ri.prototype,"gridColumn",void 0),ne([T],Ri.prototype,"rowData",void 0),ne([T],Ri.prototype,"columnDefinition",void 0);const Ai=nt`<div class="title" part="title" aria-label="${t=>t.dateFormatter.getDate(`${t.month}-2-${t.year}`,{month:"long",year:"numeric"})}"><span part="month">${t=>t.dateFormatter.getMonth(t.month)}</span><span part="year">${t=>t.dateFormatter.getYear(t.year)}</span></div>`,Li=(t,e)=>{const i=t.tagFor(Si);return nt`<${i} class="week" part="week" role="row" role-type="default" grid-template-columns="1fr 1fr 1fr 1fr 1fr 1fr 1fr">${Wt(t=>t,((t,e)=>{const i=t.tagFor(Ri);return nt`<${i} class="${(t,i)=>i.parentContext.parent.getDayClassNames(t,e)}" part="day" tabindex="-1" role="gridcell" grid-column="${(t,e)=>e.index+1}" @click="${(t,e)=>e.parentContext.parent.handleDateSelect(e.event,t)}" @keydown="${(t,e)=>e.parentContext.parent.handleKeydown(e.event,t)}" aria-label="${(t,e)=>e.parentContext.parent.dateFormatter.getDate(`${t.month}-${t.day}-${t.year}`,{month:"long",day:"numeric"})}"><div class="date" part="${t=>e===`${t.month}-${t.day}-${t.year}`?"today":"date"}">${(t,e)=>e.parentContext.parent.dateFormatter.getDay(t.day)}</div><slot name="${t=>t.month}-${t=>t.day}-${t=>t.year}"></slot></${i}>`})(t,e),{positioning:!0})}</${i}>`},zi=(t,e)=>{const i=t.tagFor(Vi),o=t.tagFor(Si);return nt`<${i} class="days interact" part="days" generate-header="none"><${o} class="week-days" part="week-days" role="row" row-type="header" grid-template-columns="1fr 1fr 1fr 1fr 1fr 1fr 1fr">${Wt(t=>t.getWeekdayText(),(t=>{const e=t.tagFor(Ri);return nt`<${e} class="week-day" part="week-day" tabindex="-1" grid-column="${(t,e)=>e.index+1}" abbr="${t=>t.abbr}">${t=>t.text}</${e}>`})(t),{positioning:!0})}</${o}>${Wt(t=>t.getDays(),Li(t,e))}</${i}>`};class Hi extends je{}class Pi extends je{}class Mi extends(yi(Pi)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class Bi extends Mi{constructor(){super(),this.initialValue="on",this.indeterminate=!1,this.keypressHandler=t=>{switch(t.key){case" ":this.checked=!this.checked}},this.clickHandler=t=>{this.disabled||this.readOnly||(this.checked=!this.checked)},this.proxy.setAttribute("type","checkbox")}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}}function Ni(t){return Ke(t)&&("option"===t.getAttribute("role")||t instanceof HTMLOptionElement)}ne([ft({attribute:"readonly",mode:"boolean"})],Bi.prototype,"readOnly",void 0),ne([T],Bi.prototype,"defaultSlottedNodes",void 0),ne([T],Bi.prototype,"indeterminate",void 0);class ji extends je{constructor(t,e,i,o){super(),this.defaultSelected=!1,this.dirtySelected=!1,this.selected=this.defaultSelected,this.dirtyValue=!1,t&&(this.textContent=t),e&&(this.initialValue=e),i&&(this.defaultSelected=i),o&&(this.selected=o),this.proxy=new Option(""+this.textContent,this.initialValue,this.defaultSelected,this.selected),this.proxy.disabled=this.disabled}checkedChanged(t,e){this.ariaChecked="boolean"!=typeof e?void 0:e?"true":"false"}defaultSelectedChanged(){this.dirtySelected||(this.selected=this.defaultSelected,this.proxy instanceof HTMLOptionElement&&(this.proxy.selected=this.defaultSelected))}disabledChanged(t,e){this.ariaDisabled=this.disabled?"true":"false",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.ariaSelected=this.selected?"true":"false",this.dirtySelected||(this.dirtySelected=!0),this.proxy instanceof HTMLOptionElement&&(this.proxy.selected=this.selected)}initialValueChanged(t,e){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}get label(){var t,e;return null!==(e=null!==(t=this.value)&&void 0!==t?t:this.textContent)&&void 0!==e?e:""}get text(){return this.textContent}set value(t){this._value=t,this.dirtyValue=!0,this.proxy instanceof HTMLElement&&(this.proxy.value=t),C.notify(this,"value")}get value(){var t,e;return C.track(this,"value"),null!==(e=null!==(t=this._value)&&void 0!==t?t:this.textContent)&&void 0!==e?e:""}get form(){return this.proxy?this.proxy.form:null}}ne([T],ji.prototype,"checked",void 0),ne([T],ji.prototype,"defaultSelected",void 0),ne([ft({mode:"boolean"})],ji.prototype,"disabled",void 0),ne([ft({attribute:"selected",mode:"boolean"})],ji.prototype,"selectedAttribute",void 0),ne([T],ji.prototype,"selected",void 0),ne([ft({attribute:"value",mode:"fromView"})],ji.prototype,"initialValue",void 0);class Ui{}ne([T],Ui.prototype,"ariaChecked",void 0),ne([T],Ui.prototype,"ariaPosInSet",void 0),ne([T],Ui.prototype,"ariaSelected",void 0),ne([T],Ui.prototype,"ariaSetSize",void 0),_e(Ui,li),_e(ji,te,Ui);class qi extends je{constructor(){super(...arguments),this._options=[],this.selectedIndex=-1,this.selectedOptions=[],this.shouldSkipFocus=!1,this.typeaheadBuffer="",this.typeaheadExpired=!0,this.typeaheadTimeout=-1}get firstSelectedOption(){var t;return null!==(t=this.selectedOptions[0])&&void 0!==t?t:null}get hasSelectableOptions(){return this.options.length>0&&!this.options.every(t=>t.disabled)}get length(){var t,e;return null!==(e=null===(t=this.options)||void 0===t?void 0:t.length)&&void 0!==e?e:0}get options(){return C.track(this,"options"),this._options}set options(t){this._options=t,C.notify(this,"options")}get typeAheadExpired(){return this.typeaheadExpired}set typeAheadExpired(t){this.typeaheadExpired=t}clickHandler(t){const e=t.target.closest("option,[role=option]");if(e&&!e.disabled)return this.selectedIndex=this.options.indexOf(e),!0}focusAndScrollOptionIntoView(t=this.firstSelectedOption){this.contains(document.activeElement)&&null!==t&&(t.focus(),requestAnimationFrame(()=>{t.scrollIntoView({block:"nearest"})}))}focusinHandler(t){this.shouldSkipFocus||t.target!==t.currentTarget||(this.setSelectedOptions(),this.focusAndScrollOptionIntoView()),this.shouldSkipFocus=!1}getTypeaheadMatches(){const t=this.typeaheadBuffer.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&"),e=new RegExp("^"+t,"gi");return this.options.filter(t=>t.text.trim().match(e))}getSelectableIndex(t=this.selectedIndex,e){const i=t>e?-1:t<e?1:0,o=t+i;let s=null;switch(i){case-1:s=this.options.reduceRight((t,e,i)=>!t&&!e.disabled&&i<o?e:t,s);break;case 1:s=this.options.reduce((t,e,i)=>!t&&!e.disabled&&i>o?e:t,s)}return this.options.indexOf(s)}handleChange(t,e){switch(e){case"selected":qi.slottedOptionFilter(t)&&(this.selectedIndex=this.options.indexOf(t)),this.setSelectedOptions()}}handleTypeAhead(t){this.typeaheadTimeout&&window.clearTimeout(this.typeaheadTimeout),this.typeaheadTimeout=window.setTimeout(()=>this.typeaheadExpired=!0,qi.TYPE_AHEAD_TIMEOUT_MS),t.length>1||(this.typeaheadBuffer=`${this.typeaheadExpired?"":this.typeaheadBuffer}${t}`)}keydownHandler(t){if(this.disabled)return!0;this.shouldSkipFocus=!1;const e=t.key;switch(e){case"Home":t.shiftKey||(t.preventDefault(),this.selectFirstOption());break;case"ArrowDown":t.shiftKey||(t.preventDefault(),this.selectNextOption());break;case"ArrowUp":t.shiftKey||(t.preventDefault(),this.selectPreviousOption());break;case"End":t.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===e.length&&this.handleTypeAhead(""+e),!0}}mousedownHandler(t){return this.shouldSkipFocus=!this.contains(document.activeElement),!0}multipleChanged(t,e){this.ariaMultiSelectable=e?"true":void 0}selectedIndexChanged(t,e){var i;if(this.hasSelectableOptions){if((null===(i=this.options[this.selectedIndex])||void 0===i?void 0:i.disabled)&&"number"==typeof t){const i=this.getSelectableIndex(t,e),o=i>-1?i:t;return this.selectedIndex=o,void(e===o&&this.selectedIndexChanged(e,o))}this.setSelectedOptions()}else this.selectedIndex=-1}selectedOptionsChanged(t,e){var i;const o=e.filter(qi.slottedOptionFilter);null===(i=this.options)||void 0===i||i.forEach(t=>{const e=C.getNotifier(t);e.unsubscribe(this,"selected"),t.selected=o.includes(t),e.subscribe(this,"selected")})}selectFirstOption(){var t,e;this.disabled||(this.selectedIndex=null!==(e=null===(t=this.options)||void 0===t?void 0:t.findIndex(t=>!t.disabled))&&void 0!==e?e:-1)}selectLastOption(){this.disabled||(this.selectedIndex=function(t,e){let i=t.length;for(;i--;)if(e(t[i],i,t))return i;return-1}(this.options,t=>!t.disabled))}selectNextOption(){!this.disabled&&this.selectedIndex<this.options.length-1&&(this.selectedIndex+=1)}selectPreviousOption(){!this.disabled&&this.selectedIndex>0&&(this.selectedIndex=this.selectedIndex-1)}setDefaultSelectedOption(){var t;if(this.$fastController.isConnected){const e=null===(t=this.options)||void 0===t?void 0:t.findIndex(t=>null!==t.getAttribute("selected"));if(-1!==e)return void(this.selectedIndex=e);this.selectedIndex=0}}setSelectedOptions(){var t,e,i;(null===(t=this.options)||void 0===t?void 0:t.length)&&!this.disabled&&(this.selectedOptions=[this.options[this.selectedIndex]],this.ariaActiveDescendant=null!==(i=null===(e=this.firstSelectedOption)||void 0===e?void 0:e.id)&&void 0!==i?i:"",this.focusAndScrollOptionIntoView())}slottedOptionsChanged(t,e){this.options=e.reduce((t,e)=>(Ni(e)&&t.push(e),t),[]);const i=""+this.options.length;this.options.forEach((t,e)=>{t.id||(t.id=oi("option-")),t.ariaPosInSet=""+(e+1),t.ariaSetSize=i}),this.$fastController.isConnected&&(this.setSelectedOptions(),this.setDefaultSelectedOption())}typeaheadBufferChanged(t,e){if(this.$fastController.isConnected){const t=this.getTypeaheadMatches();if(t.length){const e=this.options.indexOf(t[0]);e>-1&&(this.selectedIndex=e)}this.typeaheadExpired=!1}}}qi.slottedOptionFilter=t=>Ni(t)&&!t.disabled&&!t.hidden,qi.TYPE_AHEAD_TIMEOUT_MS=1e3,ne([ft({mode:"boolean"})],qi.prototype,"disabled",void 0),ne([ft({mode:"boolean"})],qi.prototype,"multiple",void 0),ne([T],qi.prototype,"selectedIndex",void 0),ne([T],qi.prototype,"selectedOptions",void 0),ne([T],qi.prototype,"slottedOptions",void 0),ne([T],qi.prototype,"typeaheadBuffer",void 0);class _i{}ne([T],_i.prototype,"ariaActiveDescendant",void 0),ne([T],_i.prototype,"ariaDisabled",void 0),ne([T],_i.prototype,"ariaExpanded",void 0),ne([T],_i.prototype,"ariaMultiSelectable",void 0),_e(_i,li),_e(qi,_i);class Gi extends qi{constructor(){super(...arguments),this.activeIndex=-1,this.rangeStartIndex=-1}get activeOption(){return this.options[this.activeIndex]}get checkedOptions(){var t;return null===(t=this.options)||void 0===t?void 0:t.filter(t=>t.checked)}get firstSelectedOptionIndex(){return this.options.indexOf(this.firstSelectedOption)}activeIndexChanged(t,e){var i,o;this.ariaActiveDescendant=null!==(o=null===(i=this.options[e])||void 0===i?void 0:i.id)&&void 0!==o?o:"",this.focusAndScrollOptionIntoView()}checkActiveIndex(){if(!this.multiple)return;const t=this.activeOption;t&&(t.checked=!0)}checkFirstOption(t=!1){t?(-1===this.rangeStartIndex&&(this.rangeStartIndex=this.activeIndex+1),this.options.forEach((t,e)=>{t.checked=ei(e,this.rangeStartIndex)})):this.uncheckAllOptions(),this.activeIndex=0,this.checkActiveIndex()}checkLastOption(t=!1){t?(-1===this.rangeStartIndex&&(this.rangeStartIndex=this.activeIndex),this.options.forEach((t,e)=>{t.checked=ei(e,this.rangeStartIndex,this.options.length)})):this.uncheckAllOptions(),this.activeIndex=this.options.length-1,this.checkActiveIndex()}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",this.focusoutHandler)}disconnectedCallback(){this.removeEventListener("focusout",this.focusoutHandler),super.disconnectedCallback()}checkNextOption(t=!1){t?(-1===this.rangeStartIndex&&(this.rangeStartIndex=this.activeIndex),this.options.forEach((t,e)=>{t.checked=ei(e,this.rangeStartIndex,this.activeIndex+1)})):this.uncheckAllOptions(),this.activeIndex+=this.activeIndex<this.options.length-1?1:0,this.checkActiveIndex()}checkPreviousOption(t=!1){t?(-1===this.rangeStartIndex&&(this.rangeStartIndex=this.activeIndex),1===this.checkedOptions.length&&(this.rangeStartIndex+=1),this.options.forEach((t,e)=>{t.checked=ei(e,this.activeIndex,this.rangeStartIndex)})):this.uncheckAllOptions(),this.activeIndex-=this.activeIndex>0?1:0,this.checkActiveIndex()}clickHandler(t){var e;if(!this.multiple)return super.clickHandler(t);const i=null===(e=t.target)||void 0===e?void 0:e.closest("[role=option]");return i&&!i.disabled?(this.uncheckAllOptions(),this.activeIndex=this.options.indexOf(i),this.checkActiveIndex(),this.toggleSelectedForAllCheckedOptions(),!0):void 0}focusAndScrollOptionIntoView(){super.focusAndScrollOptionIntoView(this.activeOption)}focusinHandler(t){if(!this.multiple)return super.focusinHandler(t);this.shouldSkipFocus||t.target!==t.currentTarget||(this.uncheckAllOptions(),-1===this.activeIndex&&(this.activeIndex=-1!==this.firstSelectedOptionIndex?this.firstSelectedOptionIndex:0),this.checkActiveIndex(),this.setSelectedOptions(),this.focusAndScrollOptionIntoView()),this.shouldSkipFocus=!1}focusoutHandler(t){this.multiple&&this.uncheckAllOptions()}keydownHandler(t){if(!this.multiple)return super.keydownHandler(t);if(this.disabled)return!0;const{key:e,shiftKey:i}=t;switch(this.shouldSkipFocus=!1,e){case"Home":return void this.checkFirstOption(i);case"ArrowDown":return void this.checkNextOption(i);case"ArrowUp":return void this.checkPreviousOption(i);case"End":return void this.checkLastOption(i);case"Tab":return this.focusAndScrollOptionIntoView(),!0;case"Escape":return this.multiple&&(this.uncheckAllOptions(),this.checkActiveIndex()),!0;case" ":return t.preventDefault(),void(this.typeAheadExpired&&this.toggleSelectedForAllCheckedOptions());default:return 1===e.length&&this.handleTypeAhead(""+e),!0}}mousedownHandler(t){if(t.offsetX>=0&&t.offsetX<=this.scrollWidth)return super.mousedownHandler(t)}multipleChanged(t,e){var i;super.multipleChanged(t,e),null===(i=this.options)||void 0===i||i.forEach(t=>{t.checked=!e&&void 0}),this.setSelectedOptions(),e&&!this.size&&(this.size=0)}setSelectedOptions(){this.multiple?this.$fastController.isConnected&&this.options&&(this.selectedOptions=this.options.filter(t=>t.selected),this.focusAndScrollOptionIntoView()):super.setSelectedOptions()}sizeChanged(t,e){const i=Math.max(0,parseInt(e.toFixed(),10));i!==e&&d.queueUpdate(()=>{this.size=i})}toggleSelectedForAllCheckedOptions(){const t=this.checkedOptions.filter(t=>!t.disabled),e=!t.every(t=>t.selected);t.forEach(t=>t.selected=e),this.selectedIndex=this.options.indexOf(t[t.length-1]),this.setSelectedOptions()}typeaheadBufferChanged(t,e){if(this.multiple){if(this.$fastController.isConnected){if(this.getTypeaheadMatches()){const t=this.options.indexOf(this.getTypeaheadMatches[0]);t>-1&&(this.activeIndex=t,this.uncheckAllOptions(),this.checkActiveIndex())}this.typeAheadExpired=!1}}else super.typeaheadBufferChanged(t,e)}uncheckAllOptions(t=!1){this.options.forEach(t=>t.checked=!this.multiple&&void 0),t||(this.rangeStartIndex=-1)}}ne([T],Gi.prototype,"activeIndex",void 0),ne([ft({converter:pt})],Gi.prototype,"size",void 0);var Wi,Ki;!function(t){t.above="above",t.below="below"}(Wi||(Wi={}));class Xi extends qi{}class Yi extends(vi(Xi)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}!function(t){t.inline="inline",t.list="list",t.both="both",t.none="none"}(Ki||(Ki={}));class Qi extends Yi{constructor(){super(...arguments),this._value="",this.filteredOptions=[],this.filter="",this.forcedPosition=!1,this.listboxId=oi("listbox-"),this.maxHeight=0,this.open=!1,this.position=Wi.below}formResetCallback(){super.formResetCallback(),this.setDefaultSelectedOption(),this.updateValue()}get isAutocompleteInline(){return this.autocomplete===Ki.inline||this.isAutocompleteBoth}get isAutocompleteList(){return this.autocomplete===Ki.list||this.isAutocompleteBoth}get isAutocompleteBoth(){return this.autocomplete===Ki.both}maxHeightChanged(){this.listbox&&this.listbox.style.setProperty("--max-height",this.maxHeight+"px")}openChanged(){if(this.open)return this.ariaControls=this.listboxId,this.ariaExpanded="true",this.setPositioning(),this.focusAndScrollOptionIntoView(),void d.queueUpdate(()=>this.focus());this.ariaControls="",this.ariaExpanded="false"}get options(){return C.track(this,"options"),this.filteredOptions.length?this.filteredOptions:this._options}set options(t){this._options=t,C.notify(this,"options")}placeholderChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.placeholder=this.placeholder)}positionChanged(){this.positionAttribute=this.position,this.setPositioning()}get value(){return C.track(this,"value"),this._value}set value(t){var e,i,o;const s=""+this._value;if(this.$fastController.isConnected&&this.options){const s=this.options.findIndex(e=>e.text.toLowerCase()===t.toLowerCase()),n=null===(e=this.options[this.selectedIndex])||void 0===e?void 0:e.text,r=null===(i=this.options[s])||void 0===i?void 0:i.text;this.selectedIndex=n!==r?s:this.selectedIndex,t=(null===(o=this.firstSelectedOption)||void 0===o?void 0:o.text)||t}s!==t&&(this._value=t,super.valueChanged(s,t),C.notify(this,"value"))}clickHandler(t){if(!this.disabled){if(this.open){const e=t.target.closest("option,[role=option]");if(!e||e.disabled)return;this.selectedOptions=[e],this.control.value=e.text,this.updateValue(!0)}return this.open=!this.open,this.open&&this.control.focus(),!0}}connectedCallback(){super.connectedCallback(),this.forcedPosition=!!this.positionAttribute,this.value&&(this.initialValue=this.value)}disabledChanged(t,e){super.disabledChanged&&super.disabledChanged(t,e),this.ariaDisabled=this.disabled?"true":"false"}filterOptions(){this.autocomplete&&this.autocomplete!==Ki.none||(this.filter="");const t=this.filter.toLowerCase();this.filteredOptions=this._options.filter(t=>t.text.toLowerCase().startsWith(this.filter.toLowerCase())),this.isAutocompleteList&&(this.filteredOptions.length||t||(this.filteredOptions=this._options),this._options.forEach(t=>{t.hidden=!this.filteredOptions.includes(t)}))}focusAndScrollOptionIntoView(){this.contains(document.activeElement)&&(this.control.focus(),this.firstSelectedOption&&requestAnimationFrame(()=>{var t;null===(t=this.firstSelectedOption)||void 0===t||t.scrollIntoView({block:"nearest"})}))}focusoutHandler(t){if(this.updateValue(),!this.open)return!0;const e=t.relatedTarget;this.isSameNode(e)?this.focus():this.options&&this.options.includes(e)||(this.open=!1)}inputHandler(t){if(this.filter=this.control.value,this.filterOptions(),"deleteContentBackward"===t.inputType||!this.filter.length)return!0;this.isAutocompleteList&&!this.open&&(this.open=!0),this.isAutocompleteInline&&this.filteredOptions.length&&(this.selectedOptions=[this.filteredOptions[0]],this.selectedIndex=this.options.indexOf(this.firstSelectedOption),this.setInlineSelection())}keydownHandler(t){const e=t.key;if(t.ctrlKey||t.shiftKey)return!0;switch(e){case"Enter":{this.updateValue(!0),this.isAutocompleteInline&&(this.filter=this.value),this.open=!1;const t=this.control.value.length;this.control.setSelectionRange(t,t);break}case"Escape":if(this.isAutocompleteInline||(this.selectedIndex=-1),this.open){this.open=!1;break}this.value="",this.control.value="",this.filter="",this.filterOptions();break;case"Tab":if(this.updateValue(),!this.open)return!0;t.preventDefault(),this.open=!1;break;case"ArrowUp":case"ArrowDown":if(this.filterOptions(),!this.open){this.open=!0;break}this.filteredOptions.length>0&&super.keydownHandler(t),this.isAutocompleteInline&&(this.updateValue(),this.setInlineSelection());break;default:return!0}}keyupHandler(t){switch(t.key){case"ArrowLeft":case"ArrowRight":case"Backspace":case"Delete":case"Home":case"End":this.filter=this.control.value,this.selectedIndex=-1,this.filterOptions()}}selectedIndexChanged(t,e){if(this.$fastController.isConnected){if((e=ti(-1,this.options.length-1,e))!==this.selectedIndex)return void(this.selectedIndex=e);super.selectedIndexChanged(t,e)}}selectPreviousOption(){!this.disabled&&this.selectedIndex>=0&&(this.selectedIndex=this.selectedIndex-1)}setDefaultSelectedOption(){if(this.$fastController.isConnected&&this.options){const t=this.options.findIndex(t=>null!==t.getAttribute("selected")||t.selected);this.selectedIndex=t,!this.dirtyValue&&this.firstSelectedOption&&(this.value=this.firstSelectedOption.text),this.setSelectedOptions()}}setInlineSelection(){this.firstSelectedOption&&(this.control.value=this.firstSelectedOption.text,this.control.focus(),this.control.setSelectionRange(this.filter.length,this.control.value.length,"backward"))}setPositioning(){const t=this.getBoundingClientRect(),e=window.innerHeight-t.bottom;this.position=this.forcedPosition?this.positionAttribute:t.top>e?Wi.above:Wi.below,this.positionAttribute=this.forcedPosition?this.positionAttribute:this.position,this.maxHeight=this.position===Wi.above?~~t.top:~~e}selectedOptionsChanged(t,e){this.$fastController.isConnected&&this._options.forEach(t=>{t.selected=e.includes(t)})}slottedOptionsChanged(t,e){super.slottedOptionsChanged(t,e),this.updateValue()}updateValue(t){var e;this.$fastController.isConnected&&(this.value=(null===(e=this.firstSelectedOption)||void 0===e?void 0:e.text)||this.control.value),t&&this.$emit("change")}}ne([ft({attribute:"autocomplete",mode:"fromView"})],Qi.prototype,"autocomplete",void 0),ne([T],Qi.prototype,"maxHeight",void 0),ne([ft({attribute:"open",mode:"boolean"})],Qi.prototype,"open",void 0),ne([ft],Qi.prototype,"placeholder",void 0),ne([ft({attribute:"position"})],Qi.prototype,"positionAttribute",void 0),ne([T],Qi.prototype,"position",void 0);class Zi{}ne([T],Zi.prototype,"ariaAutoComplete",void 0),ne([T],Zi.prototype,"ariaControls",void 0),_e(Zi,_i),_e(Qi,te,Zi);function Ji(t){const e=t.parentElement;if(e)return e;{const e=t.getRootNode();if(e.host instanceof HTMLElement)return e.host}return null}class to extends class{constructor(t){this.listenerCache=new WeakMap,this.query=t}bind(t){const{query:e}=this,i=this.constructListener(t);i.bind(e)(),e.addListener(i),this.listenerCache.set(t,i)}unbind(t){const e=this.listenerCache.get(t);e&&(this.query.removeListener(e),this.listenerCache.delete(t))}}{constructor(t,e){super(t),this.styles=e}static with(t){return e=>new to(t,e)}constructListener(t){let e=!1;const i=this.styles;return function(){const{matches:o}=this;o&&!e?(t.$fastController.addStyles(i),e=o):!o&&e&&(t.$fastController.removeStyles(i),e=o)}}unbind(t){super.unbind(t),t.$fastController.removeStyles(this.styles)}}const eo=to.with(window.matchMedia("(forced-colors)"));to.with(window.matchMedia("(prefers-color-scheme: dark)")),to.with(window.matchMedia("(prefers-color-scheme: light)"));class io{constructor(t,e,i){this.propertyName=t,this.value=e,this.styles=i}bind(t){C.getNotifier(t).subscribe(this,this.propertyName),this.handleChange(t,this.propertyName)}unbind(t){C.getNotifier(t).unsubscribe(this,this.propertyName),t.$fastController.removeStyles(this.styles)}handleChange(t,e){t[e]===this.value?t.$fastController.addStyles(this.styles):t.$fastController.removeStyles(this.styles)}}function oo(t){return`:host([hidden]){display:none}:host{display:${t}}`}const so=function(){if("boolean"==typeof Xe)return Xe;if("undefined"==typeof window||!window.document||!window.document.createElement)return Xe=!1,Xe;const t=document.createElement("style"),e=function(){const t=document.querySelector('meta[property="csp-nonce"]');return t?t.getAttribute("content"):null}();null!==e&&t.setAttribute("nonce",e),document.head.appendChild(t);try{t.sheet.insertRule("foo:focus-visible {color:inherit}",0),Xe=!0}catch(t){Xe=!1}finally{document.head.removeChild(t)}return Xe}()?"focus-visible":"focus";function no(t,e,i){return t.nodeType!==Node.TEXT_NODE||"string"==typeof t.nodeValue&&!!t.nodeValue.trim().length}const ro=document.createElement("div");class ao{setProperty(t,e){d.queueUpdate(()=>this.target.setProperty(t,e))}removeProperty(t){d.queueUpdate(()=>this.target.removeProperty(t))}}class lo extends ao{constructor(){super();const t=new CSSStyleSheet;this.target=t.cssRules[t.insertRule(":root{}")].style,document.adoptedStyleSheets=[...document.adoptedStyleSheets,t]}}class co extends ao{constructor(){super(),this.style=document.createElement("style"),document.head.appendChild(this.style);const{sheet:t}=this.style;if(t){const e=t.insertRule(":root{}",t.cssRules.length);this.target=t.cssRules[e].style}}}class ho{constructor(t){this.store=new Map,this.target=null;const e=t.$fastController;this.style=document.createElement("style"),e.addStyles(this.style),C.getNotifier(e).subscribe(this,"isConnected"),this.handleChange(e,"isConnected")}targetChanged(){if(null!==this.target)for(const[t,e]of this.store.entries())this.target.setProperty(t,e)}setProperty(t,e){this.store.set(t,e),d.queueUpdate(()=>{null!==this.target&&this.target.setProperty(t,e)})}removeProperty(t){this.store.delete(t),d.queueUpdate(()=>{null!==this.target&&this.target.removeProperty(t)})}handleChange(t,e){const{sheet:i}=this.style;if(i){const t=i.insertRule(":host{}",i.cssRules.length);this.target=i.cssRules[t].style}else this.target=null}}ne([T],ho.prototype,"target",void 0);class uo{constructor(t){this.target=t.style}setProperty(t,e){d.queueUpdate(()=>this.target.setProperty(t,e))}removeProperty(t){d.queueUpdate(()=>this.target.removeProperty(t))}}class po{setProperty(t,e){po.properties[t]=e;for(const i of po.roots.values())mo.getOrCreate(po.normalizeRoot(i)).setProperty(t,e)}removeProperty(t){delete po.properties[t];for(const e of po.roots.values())mo.getOrCreate(po.normalizeRoot(e)).removeProperty(t)}static registerRoot(t){const{roots:e}=po;if(!e.has(t)){e.add(t);const i=mo.getOrCreate(this.normalizeRoot(t));for(const t in po.properties)i.setProperty(t,po.properties[t])}}static unregisterRoot(t){const{roots:e}=po;if(e.has(t)){e.delete(t);const i=mo.getOrCreate(po.normalizeRoot(t));for(const t in po.properties)i.removeProperty(t)}}static normalizeRoot(t){return t===ro?document:t}}po.roots=new Set,po.properties={};const go=new WeakMap,fo=d.supportsAdoptedStyleSheets?class extends ao{constructor(t){super();const e=new CSSStyleSheet;this.target=e.cssRules[e.insertRule(":host{}")].style,t.$fastController.addStyles(rt.create([e]))}}:ho,mo=Object.freeze({getOrCreate(t){if(go.has(t))return go.get(t);let e;return t===ro?e=new po:t instanceof Document?e=d.supportsAdoptedStyleSheets?new lo:new co:e=t instanceof It?new fo(t):new uo(t),go.set(t,e),e}});class bo extends Ft{constructor(t){super(),this.subscribers=new WeakMap,this._appliedTo=new Set,this.name=t.name,null!==t.cssCustomPropertyName&&(this.cssCustomProperty="--"+t.cssCustomPropertyName,this.cssVar=`var(${this.cssCustomProperty})`),this.id=bo.uniqueId(),bo.tokensById.set(this.id,this)}get appliedTo(){return[...this._appliedTo]}static from(t){return new bo({name:"string"==typeof t?t:t.name,cssCustomPropertyName:"string"==typeof t?t:void 0===t.cssCustomPropertyName?t.name:t.cssCustomPropertyName})}static isCSSDesignToken(t){return"string"==typeof t.cssCustomProperty}static isDerivedDesignTokenValue(t){return"function"==typeof t}static getTokenById(t){return bo.tokensById.get(t)}getOrCreateSubscriberSet(t=this){return this.subscribers.get(t)||this.subscribers.set(t,new Set)&&this.subscribers.get(t)}createCSS(){return this.cssVar||""}getValueFor(t){const e=wo.getOrCreate(t).get(this);if(void 0!==e)return e;throw new Error(`Value could not be retrieved for token named "${this.name}". Ensure the value is set for ${t} or an ancestor of ${t}.`)}setValueFor(t,e){return this._appliedTo.add(t),e instanceof bo&&(e=this.alias(e)),wo.getOrCreate(t).set(this,e),this}deleteValueFor(t){return this._appliedTo.delete(t),wo.existsFor(t)&&wo.getOrCreate(t).delete(this),this}withDefault(t){return this.setValueFor(ro,t),this}subscribe(t,e){const i=this.getOrCreateSubscriberSet(e);e&&!wo.existsFor(e)&&wo.getOrCreate(e),i.has(t)||i.add(t)}unsubscribe(t,e){const i=this.subscribers.get(e||this);i&&i.has(t)&&i.delete(t)}notify(t){const e=Object.freeze({token:this,target:t});this.subscribers.has(this)&&this.subscribers.get(this).forEach(t=>t.handleChange(e)),this.subscribers.has(t)&&this.subscribers.get(t).forEach(t=>t.handleChange(e))}alias(t){return e=>t.getValueFor(e)}}bo.uniqueId=(()=>{let t=0;return()=>(t++,t.toString(16))})(),bo.tokensById=new Map;class vo{constructor(t,e,i){this.source=t,this.token=e,this.node=i,this.dependencies=new Set,this.observer=C.binding(t,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,O))}}class yo{constructor(){this.values=new Map}set(t,e){this.values.get(t)!==e&&(this.values.set(t,e),C.getNotifier(this).notify(t.id))}get(t){return C.track(this,t.id),this.values.get(t)}delete(t){this.values.delete(t)}all(){return this.values.entries()}}const xo=new WeakMap,$o=new WeakMap;class wo{constructor(t){this.target=t,this.store=new yo,this.children=[],this.assignedValues=new Map,this.reflecting=new Set,this.bindingObservers=new Map,this.tokenValueChangeHandler={handleChange:(t,e)=>{const i=bo.getTokenById(e);if(i&&(i.notify(this.target),bo.isCSSDesignToken(i))){const e=this.parent,o=this.isReflecting(i);if(e){const s=e.get(i),n=t.get(i);s===n||o?s===n&&o&&this.stopReflectToCSS(i):this.reflectToCSS(i)}else o||this.reflectToCSS(i)}}},xo.set(t,this),C.getNotifier(this.store).subscribe(this.tokenValueChangeHandler),t instanceof It?t.$fastController.addBehaviors([this]):t.isConnected&&this.bind()}static getOrCreate(t){return xo.get(t)||new wo(t)}static existsFor(t){return xo.has(t)}static findParent(t){if(ro!==t.target){let e=Ji(t.target);for(;null!==e;){if(xo.has(e))return xo.get(e);e=Ji(e)}return wo.getOrCreate(ro)}return null}static findClosestAssignedNode(t,e){let i=e;do{if(i.has(t))return i;i=i.parent?i.parent:i.target!==ro?wo.getOrCreate(ro):null}while(null!==i);return null}get parent(){return $o.get(this)||null}has(t){return this.assignedValues.has(t)}get(t){const e=this.store.get(t);if(void 0!==e)return e;const i=this.getRaw(t);return void 0!==i?(this.hydrate(t,i),this.get(t)):void 0}getRaw(t){var e;return this.assignedValues.has(t)?this.assignedValues.get(t):null===(e=wo.findClosestAssignedNode(t,this))||void 0===e?void 0:e.getRaw(t)}set(t,e){bo.isDerivedDesignTokenValue(this.assignedValues.get(t))&&this.tearDownBindingObserver(t),this.assignedValues.set(t,e),bo.isDerivedDesignTokenValue(e)?this.setupBindingObserver(t,e):this.store.set(t,e)}delete(t){this.assignedValues.delete(t),this.tearDownBindingObserver(t);const e=this.getRaw(t);e?this.hydrate(t,e):this.store.delete(t)}bind(){const t=wo.findParent(this);t&&t.appendChild(this);for(const t of this.assignedValues.keys())t.notify(this.target)}unbind(){if(this.parent){$o.get(this).removeChild(this)}}appendChild(t){t.parent&&$o.get(t).removeChild(t);const e=this.children.filter(e=>t.contains(e));$o.set(t,this),this.children.push(t),e.forEach(e=>t.appendChild(e)),C.getNotifier(this.store).subscribe(t);for(const[e,i]of this.store.all())t.hydrate(e,this.bindingObservers.has(e)?this.getRaw(e):i)}removeChild(t){const e=this.children.indexOf(t);return-1!==e&&this.children.splice(e,1),C.getNotifier(this.store).unsubscribe(t),t.parent===this&&$o.delete(t)}contains(t){return function(t,e){let i=e;for(;null!==i;){if(i===t)return!0;i=Ji(i)}return!1}(this.target,t.target)}reflectToCSS(t){this.isReflecting(t)||(this.reflecting.add(t),wo.cssCustomPropertyReflector.startReflection(t,this.target))}stopReflectToCSS(t){this.isReflecting(t)&&(this.reflecting.delete(t),wo.cssCustomPropertyReflector.stopReflection(t,this.target))}isReflecting(t){return this.reflecting.has(t)}handleChange(t,e){const i=bo.getTokenById(e);i&&this.hydrate(i,this.getRaw(i))}hydrate(t,e){if(!this.has(t)){const i=this.bindingObservers.get(t);bo.isDerivedDesignTokenValue(e)?i?i.source!==e&&(this.tearDownBindingObserver(t),this.setupBindingObserver(t,e)):this.setupBindingObserver(t,e):(i&&this.tearDownBindingObserver(t),this.store.set(t,e))}}setupBindingObserver(t,e){const i=new vo(e,t,this);return this.bindingObservers.set(t,i),i}tearDownBindingObserver(t){return!!this.bindingObservers.has(t)&&(this.bindingObservers.get(t).disconnect(),this.bindingObservers.delete(t),!0)}}wo.cssCustomPropertyReflector=new class{startReflection(t,e){t.subscribe(this,e),this.handleChange({token:t,target:e})}stopReflection(t,e){t.unsubscribe(this,e),this.remove(t,e)}handleChange(t){const{token:e,target:i}=t;this.add(e,i)}add(t,e){mo.getOrCreate(e).setProperty(t.cssCustomProperty,this.resolveCSSValue(wo.getOrCreate(e).get(t)))}remove(t,e){mo.getOrCreate(e).removeProperty(t.cssCustomProperty)}resolveCSSValue(t){return t&&"function"==typeof t.createCSS?t.createCSS():t}},ne([T],wo.prototype,"children",void 0);const ko=Object.freeze({create:function(t){return bo.from(t)},notifyConnection:t=>!(!t.isConnected||!wo.existsFor(t))&&(wo.getOrCreate(t).bind(),!0),notifyDisconnection:t=>!(t.isConnected||!wo.existsFor(t))&&(wo.getOrCreate(t).unbind(),!0),registerRoot(t=ro){po.registerRoot(t)},unregisterRoot(t=ro){po.unregisterRoot(t)}}),Co=Object.freeze({definitionCallbackOnly:null,ignoreDuplicate:Symbol()}),Io=new Map,Fo=new Map;let To=null;const Do=ge.createInterface(t=>t.cachedCallback(t=>(null===To&&(To=new Vo(null,t)),To))),So=Object.freeze({tagFor:t=>Fo.get(t),responsibleFor(t){const e=t.$$designSystem$$;if(e)return e;return ge.findResponsibleContainer(t).get(Do)},getOrCreate(t){if(!t)return null===To&&(To=ge.getOrCreateDOMContainer().get(Do)),To;const e=t.$$designSystem$$;if(e)return e;const i=ge.getOrCreateDOMContainer(t);if(i.has(Do,!1))return i.get(Do);{const e=new Vo(t,i);return i.register(Ve.instance(Do,e)),e}}});class Vo{constructor(t,e){this.owner=t,this.container=e,this.designTokensInitialized=!1,this.prefix="fast",this.shadowRootMode=void 0,this.disambiguate=()=>Co.definitionCallbackOnly,null!==t&&(t.$$designSystem$$=this)}withPrefix(t){return this.prefix=t,this}withShadowRootMode(t){return this.shadowRootMode=t,this}withElementDisambiguation(t){return this.disambiguate=t,this}withDesignTokenRoot(t){return this.designTokenRoot=t,this}register(...t){const e=this.container,i=[],o=this.disambiguate,s=this.shadowRootMode,n={elementPrefix:this.prefix,tryDefineElement(t,n,r){const a=function(t,e,i){return"string"==typeof t?{name:t,type:e,callback:i}:t}(t,n,r),{name:l,callback:c,baseClass:h}=a;let{type:d}=a,u=l,p=Io.get(u),g=!0;for(;p;){const t=o(u,d,p);switch(t){case Co.ignoreDuplicate:return;case Co.definitionCallbackOnly:g=!1,p=void 0;break;default:u=t,p=Io.get(u)}}g&&((Fo.has(d)||d===je)&&(d=class extends d{}),Io.set(u,d),Fo.set(d,u),h&&Fo.set(h,u)),i.push(new Oo(e,u,d,s,c,g))}};this.designTokensInitialized||(this.designTokensInitialized=!0,null!==this.designTokenRoot&&ko.registerRoot(this.designTokenRoot)),e.registerWithContext(n,...t);for(const t of i)t.callback(t),t.willDefine&&null!==t.definition&&t.definition.define();return this}}class Oo{constructor(t,e,i,o,s,n){this.container=t,this.name=e,this.type=i,this.shadowRootMode=o,this.callback=s,this.willDefine=n,this.definition=null}definePresentation(t){Be.define(this.name,t,this.container)}defineElement(t){this.definition=new yt(this.type,Object.assign(Object.assign({},t),{name:this.name}))}tagFor(t){return So.tagFor(t)}}
|
|
17
17
|
/*!
|
|
18
18
|
* tabbable 5.2.0
|
|
19
19
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
20
20
|
*/
|
|
21
|
-
var Ro=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],Eo=Ro.join(","),Oo="undefined"==typeof Element?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Lo=function(t){return"INPUT"===t.tagName},Ao=function(t){return function(t){return Lo(t)&&"radio"===t.type}(t)&&!function(t){if(!t.name)return!0;var e,i=t.form||t.ownerDocument,o=function(t){return i.querySelectorAll('input[type="radio"][name="'+t+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)e=o(window.CSS.escape(t.name));else try{e=o(t.name)}catch(t){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",t.message),!1}var s=function(t,e){for(var i=0;i<t.length;i++)if(t[i].checked&&t[i].form===e)return t[i]}(e,t.form);return!s||s===t}(t)},zo=function(t,e){return!(e.disabled||function(t){return Lo(t)&&"hidden"===t.type}(e)||function(t,e){if("hidden"===getComputedStyle(t).visibility)return!0;var i=Oo.call(t,"details>summary:first-of-type")?t.parentElement:t;if(Oo.call(i,"details:not([open]) *"))return!0;if(e&&"full"!==e){if("non-zero-area"===e){var o=t.getBoundingClientRect(),s=o.width,n=o.height;return 0===s&&0===n}}else for(;t;){if("none"===getComputedStyle(t).display)return!0;t=t.parentElement}return!1}(e,t.displayCheck)||function(t){return"DETAILS"===t.tagName&&Array.prototype.slice.apply(t.children).some((function(t){return"SUMMARY"===t.tagName}))}(e))},Ho=function(t,e){return!(!zo(t,e)||Ao(e)||function(t){var e=parseInt(t.getAttribute("tabindex"),10);return isNaN(e)?function(t){return"true"===t.contentEditable}(t)?0:"AUDIO"!==t.nodeName&&"VIDEO"!==t.nodeName&&"DETAILS"!==t.nodeName||null!==t.getAttribute("tabindex")?t.tabIndex:0:e}(e)<0)},Po=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return!1!==Oo.call(t,Eo)&&Ho(e,t)},Mo=Ro.concat("iframe").join(","),Bo=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return!1!==Oo.call(t,Mo)&&zo(e,t)};class No extends je{constructor(){super(...arguments),this.modal=!0,this.hidden=!1,this.trapFocus=!0,this.trapFocusChanged=()=>{this.$fastController.isConnected&&this.updateTrapFocus()},this.isTrappingFocus=!1,this.handleDocumentKeydown=t=>{if(!t.defaultPrevented&&!this.hidden)switch(t.key){case"Escape":this.dismiss(),t.preventDefault();break;case"Tab":this.handleTabKeyDown(t)}},this.handleDocumentFocus=t=>{!t.defaultPrevented&&this.shouldForceFocus(t.target)&&(this.focusFirstElement(),t.preventDefault())},this.handleTabKeyDown=t=>{if(!this.trapFocus||this.hidden)return;const e=this.getTabQueueBounds();return 0!==e.length?1===e.length?(e[0].focus(),void t.preventDefault()):void(t.shiftKey&&t.target===e[0]?(e[e.length-1].focus(),t.preventDefault()):t.shiftKey||t.target!==e[e.length-1]||(e[0].focus(),t.preventDefault())):void 0},this.getTabQueueBounds=()=>No.reduceTabbableItems([],this),this.focusFirstElement=()=>{const t=this.getTabQueueBounds();t.length>0?t[0].focus():this.dialog instanceof HTMLElement&&this.dialog.focus()},this.shouldForceFocus=t=>this.isTrappingFocus&&!this.contains(t),this.shouldTrapFocus=()=>this.trapFocus&&!this.hidden,this.updateTrapFocus=t=>{const e=void 0===t?this.shouldTrapFocus():t;e&&!this.isTrappingFocus?(this.isTrappingFocus=!0,document.addEventListener("focusin",this.handleDocumentFocus),d.queueUpdate(()=>{this.shouldForceFocus(document.activeElement)&&this.focusFirstElement()})):!e&&this.isTrappingFocus&&(this.isTrappingFocus=!1,document.removeEventListener("focusin",this.handleDocumentFocus))}}dismiss(){this.$emit("dismiss")}show(){this.hidden=!1}hide(){this.hidden=!0}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.handleDocumentKeydown),this.notifier=C.getNotifier(this),this.notifier.subscribe(this,"hidden"),this.updateTrapFocus()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.handleDocumentKeydown),this.updateTrapFocus(!1),this.notifier.unsubscribe(this,"hidden")}handleChange(t,e){switch(e){case"hidden":this.updateTrapFocus()}}static reduceTabbableItems(t,e){return"-1"===e.getAttribute("tabindex")?t:Po(e)||No.isFocusableFastElement(e)&&No.hasTabbableShadow(e)?(t.push(e),t):e.childElementCount?t.concat(Array.from(e.children).reduce(No.reduceTabbableItems,[])):t}static isFocusableFastElement(t){var e,i;return!!(null===(i=null===(e=t.$fastController)||void 0===e?void 0:e.definition.shadowOptions)||void 0===i?void 0:i.delegatesFocus)}static hasTabbableShadow(t){var e,i;return Array.from(null!==(i=null===(e=t.shadowRoot)||void 0===e?void 0:e.querySelectorAll("*"))&&void 0!==i?i:[]).some(t=>Po(t))}}ne([ft({mode:"boolean"})],No.prototype,"modal",void 0),ne([ft({mode:"boolean"})],No.prototype,"hidden",void 0),ne([ft({attribute:"trap-focus",mode:"boolean"})],No.prototype,"trapFocus",void 0),ne([ft({attribute:"aria-describedby"})],No.prototype,"ariaDescribedby",void 0),ne([ft({attribute:"aria-labelledby"})],No.prototype,"ariaLabelledby",void 0),ne([ft({attribute:"aria-label"})],No.prototype,"ariaLabel",void 0);var jo,Uo;!function(t){t.separator="separator",t.presentation="presentation"}(jo||(jo={}));class qo extends je{constructor(){super(...arguments),this.role=jo.separator,this.orientation=We.horizontal}}ne([ft],qo.prototype,"role",void 0),ne([ft],qo.prototype,"orientation",void 0),function(t){t.next="next",t.previous="previous"}(Uo||(Uo={}));class _o extends je{constructor(){super(...arguments),this.hiddenFromAT=!0,this.direction=Uo.next}keyupHandler(t){if(!this.hiddenFromAT){const e=t.key;"Enter"===e&&this.$emit("click",t),"Escape"===e&&this.blur()}}}ne([ft({mode:"boolean"})],_o.prototype,"disabled",void 0),ne([ft({attribute:"aria-hidden",converter:ut})],_o.prototype,"hiddenFromAT",void 0),ne([ft],_o.prototype,"direction",void 0);var Go;!function(t){t.menuitem="menuitem",t.menuitemcheckbox="menuitemcheckbox",t.menuitemradio="menuitemradio"}(Go||(Go={}));const Wo={[Go.menuitem]:"menuitem",[Go.menuitemcheckbox]:"menuitemcheckbox",[Go.menuitemradio]:"menuitemradio"};class Ko extends je{constructor(){super(...arguments),this.role=Go.menuitem,this.hasSubmenu=!1,this.currentDirection=Ze.ltr,this.focusSubmenuOnLoad=!1,this.handleMenuItemKeyDown=t=>{if(t.defaultPrevented)return!1;switch(t.key){case"Enter":case" ":return this.invoke(),!1;case"ArrowRight":return this.expandAndFocus(),!1;case"ArrowLeft":if(this.expanded)return this.expanded=!1,this.focus(),!1}return!0},this.handleMenuItemClick=t=>(t.defaultPrevented||this.disabled||this.invoke(),!1),this.submenuLoaded=()=>{this.focusSubmenuOnLoad&&(this.focusSubmenuOnLoad=!1,this.hasSubmenu&&(this.submenu.focus(),this.setAttribute("tabindex","-1")))},this.handleMouseOver=t=>(this.disabled||!this.hasSubmenu||this.expanded||(this.expanded=!0),!1),this.handleMouseOut=t=>(!this.expanded||this.contains(document.activeElement)||(this.expanded=!1),!1),this.expandAndFocus=()=>{this.hasSubmenu&&(this.focusSubmenuOnLoad=!0,this.expanded=!0)},this.invoke=()=>{if(!this.disabled)switch(this.role){case Go.menuitemcheckbox:this.checked=!this.checked;break;case Go.menuitem:this.updateSubmenu(),this.hasSubmenu?this.expandAndFocus():this.$emit("change");break;case Go.menuitemradio:this.checked||(this.checked=!0)}},this.updateSubmenu=()=>{this.submenu=this.domChildren().find(t=>"menu"===t.getAttribute("role")),this.hasSubmenu=void 0!==this.submenu}}expandedChanged(t){if(this.$fastController.isConnected){if(void 0===this.submenu)return;!1===this.expanded?this.submenu.collapseExpandedItem():this.currentDirection=hi(this),this.$emit("expanded-change",this,{bubbles:!1})}}checkedChanged(t,e){this.$fastController.isConnected&&this.$emit("change")}connectedCallback(){super.connectedCallback(),d.queueUpdate(()=>{this.updateSubmenu()}),this.startColumnCount||(this.startColumnCount=1),this.observer=new MutationObserver(this.updateSubmenu)}disconnectedCallback(){super.disconnectedCallback(),this.submenu=void 0,void 0!==this.observer&&(this.observer.disconnect(),this.observer=void 0)}domChildren(){return Array.from(this.children)}}ne([ft({mode:"boolean"})],Ko.prototype,"disabled",void 0),ne([ft({mode:"boolean"})],Ko.prototype,"expanded",void 0),ne([T],Ko.prototype,"startColumnCount",void 0),ne([ft],Ko.prototype,"role",void 0),ne([ft({mode:"boolean"})],Ko.prototype,"checked",void 0),ne([T],Ko.prototype,"submenuRegion",void 0),ne([T],Ko.prototype,"hasSubmenu",void 0),ne([T],Ko.prototype,"currentDirection",void 0),ne([T],Ko.prototype,"submenu",void 0),_e(Ko,te);class Xo extends je{constructor(){super(...arguments),this.expandedItem=null,this.focusIndex=-1,this.isNestedMenu=()=>null!==this.parentElement&&Ke(this.parentElement)&&"menuitem"===this.parentElement.getAttribute("role"),this.handleFocusOut=t=>{if(!this.contains(t.relatedTarget)){this.collapseExpandedItem();const t=this.menuItems.findIndex(this.isFocusableElement);this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.menuItems[t].setAttribute("tabindex","0"),this.focusIndex=t}},this.handleItemFocus=t=>{const e=t.target;e!==this.menuItems[this.focusIndex]&&(this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=this.menuItems.indexOf(e),e.setAttribute("tabindex","0"))},this.handleExpandedChanged=t=>{if(t.defaultPrevented||null===t.target||this.menuItems.indexOf(t.target)<0)return;t.preventDefault();const e=t.target;null===this.expandedItem||e!==this.expandedItem||!1!==e.expanded?e.expanded&&(null!==this.expandedItem&&this.expandedItem!==e&&(this.expandedItem.expanded=!1),this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.expandedItem=e,this.focusIndex=this.menuItems.indexOf(e),e.setAttribute("tabindex","0")):this.expandedItem=null},this.setItems=()=>{const t=this.menuItems.filter(this.isMenuItemElement);t.length&&(this.focusIndex=0);const e=t.reduce((t,e)=>{const i=(o=e)instanceof Ko?o.role!==Go.menuitem&&null===o.querySelector("[slot=start]")||o.role===Go.menuitem&&null!==o.querySelector("[slot=start]")?1:o.role!==Go.menuitem&&null!==o.querySelector("[slot=start]")?2:0:1;var o;return t>i?t:i},0);t.forEach((t,i)=>{t.setAttribute("tabindex",0===i?"0":"-1"),t.addEventListener("expanded-change",this.handleExpandedChanged),t.addEventListener("focus",this.handleItemFocus),t instanceof Ko&&(t.startColumnCount=e)})},this.resetItems=t=>{t.forEach(t=>{t.removeEventListener("expanded-change",this.handleExpandedChanged),t.removeEventListener("focus",this.handleItemFocus)})},this.changeHandler=t=>{const e=t.target,i=this.menuItems.indexOf(e);if(-1!==i&&"menuitemradio"===e.role&&!0===e.checked){for(let t=i-1;t>=0;--t){const e=this.menuItems[t],i=e.getAttribute("role");if(i===Go.menuitemradio&&(e.checked=!1),"separator"===i)break}const t=this.menuItems.length-1;for(let e=i+1;e<=t;++e){const t=this.menuItems[e],i=t.getAttribute("role");if(i===Go.menuitemradio&&(t.checked=!1),"separator"===i)break}}},this.isMenuItemElement=t=>Ke(t)&&Xo.focusableElementRoles.hasOwnProperty(t.getAttribute("role")),this.isFocusableElement=t=>this.isMenuItemElement(t)}itemsChanged(t,e){this.$fastController.isConnected&&(this.menuItems=this.domChildren(),this.resetItems(t),this.setItems())}connectedCallback(){super.connectedCallback(),this.menuItems=this.domChildren(),this.addEventListener("change",this.changeHandler)}disconnectedCallback(){super.disconnectedCallback(),this.menuItems=[],this.removeEventListener("change",this.changeHandler)}focus(){this.setFocus(0,1)}collapseExpandedItem(){null!==this.expandedItem&&(this.expandedItem.expanded=!1,this.expandedItem=null)}handleMenuKeyDown(t){if(!t.defaultPrevented)switch(t.key){case"ArrowDown":return void this.setFocus(this.focusIndex+1,1);case"ArrowUp":return void this.setFocus(this.focusIndex-1,-1);case"End":return void this.setFocus(this.menuItems.length-1,-1);case"Home":return void this.setFocus(0,1);default:return!0}}domChildren(){return Array.from(this.children)}setFocus(t,e){if(void 0!==this.menuItems)for(;t>=0&&t<this.menuItems.length;){const i=this.menuItems[t];if(this.isFocusableElement(i)){this.focusIndex>-1&&this.menuItems.length>=this.focusIndex-1&&this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=t,i.setAttribute("tabindex","0"),i.focus();break}t+=e}}}Xo.focusableElementRoles=Wo,ne([T],Xo.prototype,"items",void 0);class Yo extends je{}class Qo extends(bi(Yo)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}var Zo;!function(t){t.email="email",t.password="password",t.tel="tel",t.text="text",t.url="url"}(Zo||(Zo={}));class Jo extends Qo{constructor(){super(...arguments),this.type=Zo.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&&d.queueUpdate(()=>{this.focus()})}handleTextInput(){this.value=this.control.value}handleChange(){this.$emit("change")}}ne([ft({attribute:"readonly",mode:"boolean"})],Jo.prototype,"readOnly",void 0),ne([ft({mode:"boolean"})],Jo.prototype,"autofocus",void 0),ne([ft],Jo.prototype,"placeholder",void 0),ne([ft],Jo.prototype,"type",void 0),ne([ft],Jo.prototype,"list",void 0),ne([ft({converter:pt})],Jo.prototype,"maxlength",void 0),ne([ft({converter:pt})],Jo.prototype,"minlength",void 0),ne([ft],Jo.prototype,"pattern",void 0),ne([ft({converter:pt})],Jo.prototype,"size",void 0),ne([ft({mode:"boolean"})],Jo.prototype,"spellcheck",void 0),ne([T],Jo.prototype,"defaultSlottedNodes",void 0);class ts{}_e(ts,ai),_e(Jo,te,ts);class es extends je{}class is extends(bi(es)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class os extends is{constructor(){super(...arguments),this.hideStep=!1,this.step=1,this.isUserInput=!1}maxChanged(t,e){var i;this.max=Math.max(e,null!==(i=this.min)&&void 0!==i?i:e);const o=Math.min(this.min,this.max);void 0!==this.min&&this.min!==o&&(this.min=o),this.value=this.getValidValue(this.value)}minChanged(t,e){var i;this.min=Math.min(e,null!==(i=this.max)&&void 0!==i?i:e);const o=Math.max(this.min,this.max);void 0!==this.max&&this.max!==o&&(this.max=o),this.value=this.getValidValue(this.value)}get valueAsNumber(){return parseFloat(super.value)}set valueAsNumber(t){this.value=t.toString()}valueChanged(t,e){this.value=this.getValidValue(e),e===this.value&&(this.control&&!this.isUserInput&&(this.control.value=this.value),super.valueChanged(t,this.value),void 0===t||this.isUserInput||(this.$emit("input"),this.$emit("change")),this.isUserInput=!1)}getValidValue(t){var e,i;let o=parseFloat(parseFloat(t).toPrecision(12));return isNaN(o)?o="":(o=Math.min(o,null!==(e=this.max)&&void 0!==e?e:o),o=Math.max(o,null!==(i=this.min)&&void 0!==i?i:o).toString()),o}stepUp(){const t=parseFloat(this.value),e=isNaN(t)?this.min>0?this.min:this.max<0?this.max:this.min?0:this.step:t+this.step;this.value=e.toString()}stepDown(){const t=parseFloat(this.value),e=isNaN(t)?this.min>0?this.min:this.max<0?this.max:this.min?0:0-this.step:t-this.step;this.value=e.toString()}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute("type","number"),this.validate(),this.control.value=this.value,this.autofocus&&d.queueUpdate(()=>{this.focus()})}handleTextInput(){this.control.value=this.control.value.replace(/[^0-9\-+e.]/g,""),this.isUserInput=!0,this.value=this.control.value}handleChange(){this.$emit("change")}handleKeyDown(t){switch(t.key){case"ArrowUp":return this.stepUp(),!1;case"ArrowDown":return this.stepDown(),!1}return!0}handleBlur(){this.control.value=this.value}}ne([ft({attribute:"readonly",mode:"boolean"})],os.prototype,"readOnly",void 0),ne([ft({mode:"boolean"})],os.prototype,"autofocus",void 0),ne([ft({attribute:"hide-step",mode:"boolean"})],os.prototype,"hideStep",void 0),ne([ft],os.prototype,"placeholder",void 0),ne([ft],os.prototype,"list",void 0),ne([ft({converter:pt})],os.prototype,"maxlength",void 0),ne([ft({converter:pt})],os.prototype,"minlength",void 0),ne([ft({converter:pt})],os.prototype,"size",void 0),ne([ft({converter:pt})],os.prototype,"step",void 0),ne([ft({converter:pt})],os.prototype,"max",void 0),ne([ft({converter:pt})],os.prototype,"min",void 0),ne([T],os.prototype,"defaultSlottedNodes",void 0),_e(os,te,ts);class ss extends je{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 t="number"==typeof this.min?this.min:0,e="number"==typeof this.max?this.max:100,i="number"==typeof this.value?this.value:0,o=e-t;this.percentComplete=0===o?0:Math.fround((i-t)/o*100)}}ne([ft({converter:pt})],ss.prototype,"value",void 0),ne([ft({converter:pt})],ss.prototype,"min",void 0),ne([ft({converter:pt})],ss.prototype,"max",void 0),ne([ft({mode:"boolean"})],ss.prototype,"paused",void 0),ne([T],ss.prototype,"percentComplete",void 0);class ns extends je{constructor(){super(...arguments),this.orientation=We.horizontal,this.radioChangeHandler=t=>{const e=t.target;e.checked&&(this.slottedRadioButtons.forEach(t=>{t!==e&&(t.checked=!1,this.isInsideFoundationToolbar||t.setAttribute("tabindex","-1"))}),this.selectedRadio=e,this.value=e.value,e.setAttribute("tabindex","0"),this.focusedRadio=e),t.stopPropagation()},this.moveToRadioByIndex=(t,e)=>{const i=t[e];this.isInsideToolbar||(i.setAttribute("tabindex","0"),i.readOnly?this.slottedRadioButtons.forEach(t=>{t!==i&&t.setAttribute("tabindex","-1")}):(i.checked=!0,this.selectedRadio=i)),this.focusedRadio=i,i.focus()},this.moveRightOffGroup=()=>{var t;null===(t=this.nextElementSibling)||void 0===t||t.focus()},this.moveLeftOffGroup=()=>{var t;null===(t=this.previousElementSibling)||void 0===t||t.focus()},this.focusOutHandler=t=>{const e=this.slottedRadioButtons,i=t.target,o=null!==i?e.indexOf(i):0,s=this.focusedRadio?e.indexOf(this.focusedRadio):-1;return(0===s&&o===s||s===e.length-1&&s===o)&&(this.selectedRadio?(this.focusedRadio=this.selectedRadio,this.isInsideFoundationToolbar||(this.selectedRadio.setAttribute("tabindex","0"),e.forEach(t=>{t!==this.selectedRadio&&t.setAttribute("tabindex","-1")}))):(this.focusedRadio=e[0],this.focusedRadio.setAttribute("tabindex","0"),e.forEach(t=>{t!==this.focusedRadio&&t.setAttribute("tabindex","-1")}))),!0},this.clickHandler=t=>{const e=t.target;if(e){const t=this.slottedRadioButtons;e.checked||0===t.indexOf(e)?(e.setAttribute("tabindex","0"),this.selectedRadio=e):(e.setAttribute("tabindex","-1"),this.selectedRadio=null),this.focusedRadio=e}t.preventDefault()},this.shouldMoveOffGroupToTheRight=(t,e,i)=>t===e.length&&this.isInsideToolbar&&"ArrowRight"===i,this.shouldMoveOffGroupToTheLeft=(t,e)=>(this.focusedRadio?t.indexOf(this.focusedRadio)-1:0)<0&&this.isInsideToolbar&&"ArrowLeft"===e,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=t=>{const e=this.slottedRadioButtons;let i=0;if(i=this.focusedRadio?e.indexOf(this.focusedRadio)+1:1,this.shouldMoveOffGroupToTheRight(i,e,t.key))this.moveRightOffGroup();else for(i===e.length&&(i=0);i<e.length&&e.length>1;){if(!e[i].disabled){this.moveToRadioByIndex(e,i);break}if(this.focusedRadio&&i===e.indexOf(this.focusedRadio))break;if(i+1>=e.length){if(this.isInsideToolbar)break;i=0}else i+=1}},this.moveLeft=t=>{const e=this.slottedRadioButtons;let i=0;if(i=this.focusedRadio?e.indexOf(this.focusedRadio)-1:0,i=i<0?e.length-1:i,this.shouldMoveOffGroupToTheLeft(e,t.key))this.moveLeftOffGroup();else for(;i>=0&&e.length>1;){if(!e[i].disabled){this.moveToRadioByIndex(e,i);break}if(this.focusedRadio&&i===e.indexOf(this.focusedRadio))break;i-1<0?i=e.length-1:i-=1}},this.keydownHandler=t=>{const e=t.key;if(e in Qe&&this.isInsideFoundationToolbar)return!0;switch(e){case"Enter":this.checkFocusedRadio();break;case"ArrowRight":case"ArrowDown":this.direction===Ze.ltr?this.moveRight(t):this.moveLeft(t);break;case"ArrowLeft":case"ArrowUp":this.direction===Ze.ltr?this.moveLeft(t):this.moveRight(t);break;default:return!0}}}readOnlyChanged(){void 0!==this.slottedRadioButtons&&this.slottedRadioButtons.forEach(t=>{this.readOnly?t.readOnly=!0:t.readOnly=!1})}disabledChanged(){void 0!==this.slottedRadioButtons&&this.slottedRadioButtons.forEach(t=>{this.disabled?t.disabled=!0:t.disabled=!1})}nameChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach(t=>{t.setAttribute("name",this.name)})}valueChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach(t=>{t.getAttribute("value")===this.value&&(t.checked=!0,this.selectedRadio=t)}),this.$emit("change")}slottedRadioButtonsChanged(t,e){this.slottedRadioButtons&&this.slottedRadioButtons.length>0&&this.setupRadioButtons()}get parentToolbar(){return this.closest('[role="toolbar"]')}get isInsideToolbar(){var t;return null!==(t=this.parentToolbar)&&void 0!==t&&t}get isInsideFoundationToolbar(){var t;return!!(null===(t=this.parentToolbar)||void 0===t?void 0:t.$fastController)}connectedCallback(){super.connectedCallback(),this.direction=hi(this),this.setupRadioButtons()}disconnectedCallback(){this.slottedRadioButtons.forEach(t=>{t.removeEventListener("change",this.radioChangeHandler)})}setupRadioButtons(){const t=this.slottedRadioButtons.filter(t=>t.hasAttribute("checked")),e=t?t.length:0;if(e>1){t[e-1].checked=!0}let i=!1;if(this.slottedRadioButtons.forEach(t=>{void 0!==this.name&&t.setAttribute("name",this.name),this.disabled&&(t.disabled=!0),this.readOnly&&(t.readOnly=!0),this.value&&this.value===t.value?(this.selectedRadio=t,this.focusedRadio=t,t.checked=!0,t.setAttribute("tabindex","0"),i=!0):(this.isInsideFoundationToolbar||t.setAttribute("tabindex","-1"),t.checked=!1),t.addEventListener("change",this.radioChangeHandler)}),void 0===this.value&&this.slottedRadioButtons.length>0){const t=this.slottedRadioButtons.filter(t=>t.hasAttribute("checked")),e=null!==t?t.length:0;if(e>0&&!i){const i=t[e-1];i.checked=!0,this.focusedRadio=i,i.setAttribute("tabindex","0")}else this.slottedRadioButtons[0].setAttribute("tabindex","0"),this.focusedRadio=this.slottedRadioButtons[0]}}}ne([ft({attribute:"readonly",mode:"boolean"})],ns.prototype,"readOnly",void 0),ne([ft({attribute:"disabled",mode:"boolean"})],ns.prototype,"disabled",void 0),ne([ft],ns.prototype,"name",void 0),ne([ft],ns.prototype,"value",void 0),ne([ft],ns.prototype,"orientation",void 0),ne([T],ns.prototype,"childItems",void 0),ne([T],ns.prototype,"slottedRadioButtons",void 0);class rs extends je{}class as extends(vi(rs)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class ls extends as{constructor(){super(),this.initialValue="on",this.keypressHandler=t=>{switch(t.key){case" ":return void(this.checked||this.readOnly||(this.checked=!0))}return!0},this.proxy.setAttribute("type","radio")}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}defaultCheckedChanged(){var t;this.$fastController.isConnected&&!this.dirtyChecked&&(this.isInsideRadioGroup()||(this.checked=null!==(t=this.defaultChecked)&&void 0!==t&&t,this.dirtyChecked=!1))}connectedCallback(){var t,e;super.connectedCallback(),this.validate(),"radiogroup"!==(null===(t=this.parentElement)||void 0===t?void 0:t.getAttribute("role"))&&null===this.getAttribute("tabindex")&&(this.disabled||this.setAttribute("tabindex","0")),this.checkedAttribute&&(this.dirtyChecked||this.isInsideRadioGroup()||(this.checked=null!==(e=this.defaultChecked)&&void 0!==e&&e,this.dirtyChecked=!1))}isInsideRadioGroup(){return null!==this.closest("[role=radiogroup]")}clickHandler(t){this.disabled||this.readOnly||this.checked||(this.checked=!0)}}ne([ft({attribute:"readonly",mode:"boolean"})],ls.prototype,"readOnly",void 0),ne([T],ls.prototype,"name",void 0),ne([T],ls.prototype,"defaultSlottedNodes",void 0);class cs extends je{constructor(){super(...arguments),this.framesPerSecond=60,this.updatingItems=!1,this.speed=600,this.easing="ease-in-out",this.flippersHiddenFromAT=!1,this.scrolling=!1,this.resizeDetector=null}get frameTime(){return 1e3/this.framesPerSecond}scrollingChanged(t,e){if(this.scrollContainer){const t=1==this.scrolling?"scrollstart":"scrollend";this.$emit(t,this.scrollContainer.scrollLeft)}}get isRtl(){return this.scrollItems.length>1&&this.scrollItems[0].offsetLeft>this.scrollItems[1].offsetLeft}connectedCallback(){super.connectedCallback(),this.initializeResizeDetector()}disconnectedCallback(){this.disconnectResizeDetector(),super.disconnectedCallback()}scrollItemsChanged(t,e){e&&!this.updatingItems&&d.queueUpdate(()=>this.setStops())}disconnectResizeDetector(){this.resizeDetector&&(this.resizeDetector.disconnect(),this.resizeDetector=null)}initializeResizeDetector(){this.disconnectResizeDetector(),this.resizeDetector=new window.ResizeObserver(this.resized.bind(this)),this.resizeDetector.observe(this)}updateScrollStops(){this.updatingItems=!0;const t=this.scrollItems.reduce((t,e)=>e instanceof HTMLSlotElement?t.concat(e.assignedElements()):(t.push(e),t),[]);this.scrollItems=t,this.updatingItems=!1}setStops(){this.updateScrollStops(),this.width=this.offsetWidth;let t=0,e=this.scrollItems.map(({offsetLeft:e,offsetWidth:i},o)=>{const s=e+i;return this.isRtl?-s:(t=s,0===o?0:e)}).concat(t);e=this.fixScrollMisalign(e),e.sort((t,e)=>Math.abs(t)-Math.abs(e)),this.scrollStops=e,this.setFlippers()}fixScrollMisalign(t){if(this.isRtl&&t.some(t=>t>0)){t.sort((t,e)=>e-t);const e=t[0];t=t.map(t=>t-e)}return t}setFlippers(){var t,e;const i=this.scrollContainer.scrollLeft;if(null===(t=this.previousFlipperContainer)||void 0===t||t.classList.toggle("disabled",0===i),this.scrollStops){const t=Math.abs(this.scrollStops[this.scrollStops.length-1]);null===(e=this.nextFlipperContainer)||void 0===e||e.classList.toggle("disabled",Math.abs(i)+this.width>=t)}}keyupHandler(t){switch(t.key){case"ArrowLeft":this.scrollToPrevious();break;case"ArrowRight":this.scrollToNext()}}scrollToPrevious(){const t=this.scrollContainer.scrollLeft,e=this.scrollStops.findIndex((e,i)=>e<=t&&(this.isRtl||i===this.scrollStops.length-1||this.scrollStops[i+1]>t)),i=Math.abs(this.scrollStops[e+1]);let o=this.scrollStops.findIndex(t=>Math.abs(t)+this.width>i);(o>e||-1===o)&&(o=e>0?e-1:0),this.scrollToPosition(this.scrollStops[o],t)}scrollToNext(){const t=this.scrollContainer.scrollLeft,e=this.scrollStops.findIndex(e=>Math.abs(e)>=Math.abs(t)),i=this.scrollStops.findIndex(e=>Math.abs(t)+this.width<=Math.abs(e));let o=e;i>e+2?o=i-2:e<this.scrollStops.length-2&&(o=e+1),this.scrollToPosition(this.scrollStops[o],t)}scrollToPosition(t,e=this.scrollContainer.scrollLeft){var i;if(this.scrolling)return;this.scrolling=!0;const o=null!==(i=this.duration)&&void 0!==i?i:Math.abs(t-e)/this.speed+"s";this.content.style.setProperty("transition-duration",o);const s=parseFloat(getComputedStyle(this.content).getPropertyValue("transition-duration")),n=e=>{e&&e.target!==e.currentTarget||(this.content.style.setProperty("transition-duration","0s"),this.content.style.removeProperty("transform"),this.scrollContainer.style.setProperty("scroll-behavior","auto"),this.scrollContainer.scrollLeft=t,this.setFlippers(),this.content.removeEventListener("transitionend",n),this.scrolling=!1)};if(0===s)return void n();this.content.addEventListener("transitionend",n);const r=this.scrollContainer.scrollWidth-this.scrollContainer.clientWidth;let a=this.scrollContainer.scrollLeft-Math.min(t,r);this.isRtl&&(a=this.scrollContainer.scrollLeft+Math.min(Math.abs(t),r)),this.content.style.setProperty("transition-property","transform"),this.content.style.setProperty("transition-timing-function",this.easing),this.content.style.setProperty("transform",`translateX(${a}px)`)}resized(){this.resizeTimeout&&(this.resizeTimeout=clearTimeout(this.resizeTimeout)),this.resizeTimeout=setTimeout(()=>{this.width=this.offsetWidth,this.setFlippers()},this.frameTime)}scrolled(){this.scrollTimeout&&(this.scrollTimeout=clearTimeout(this.scrollTimeout)),this.scrollTimeout=setTimeout(()=>{this.setFlippers()},this.frameTime)}}ne([ft({converter:pt})],cs.prototype,"speed",void 0),ne([ft],cs.prototype,"duration",void 0),ne([ft],cs.prototype,"easing",void 0),ne([ft({attribute:"aria-hidden",converter:ut})],cs.prototype,"flippersHiddenFromAT",void 0),ne([T],cs.prototype,"scrolling",void 0),ne([T],cs.prototype,"scrollItems",void 0),ne([ft({attribute:"view"})],cs.prototype,"view",void 0);class hs extends je{}class ds extends(bi(hs)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class us extends ds{readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly,this.validate())}autofocusChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autofocus=this.autofocus,this.validate())}placeholderChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.placeholder=this.placeholder)}listChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.setAttribute("list",this.list),this.validate())}maxlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.maxLength=this.maxlength,this.validate())}minlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.minLength=this.minlength,this.validate())}patternChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.pattern=this.pattern,this.validate())}sizeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.size=this.size)}spellcheckChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.spellcheck=this.spellcheck)}connectedCallback(){super.connectedCallback(),this.validate(),this.autofocus&&d.queueUpdate(()=>{this.focus()})}handleTextInput(){this.value=this.control.value}handleClearInput(){this.value="",this.control.focus()}handleChange(){this.$emit("change")}}ne([ft({attribute:"readonly",mode:"boolean"})],us.prototype,"readOnly",void 0),ne([ft({mode:"boolean"})],us.prototype,"autofocus",void 0),ne([ft],us.prototype,"placeholder",void 0),ne([ft],us.prototype,"list",void 0),ne([ft({converter:pt})],us.prototype,"maxlength",void 0),ne([ft({converter:pt})],us.prototype,"minlength",void 0),ne([ft],us.prototype,"pattern",void 0),ne([ft({converter:pt})],us.prototype,"size",void 0),ne([ft({mode:"boolean"})],us.prototype,"spellcheck",void 0),ne([T],us.prototype,"defaultSlottedNodes",void 0);class ps{}_e(ps,ai),_e(us,te,ps);class gs extends Ui{}class fs extends(bi(gs)){constructor(){super(...arguments),this.proxy=document.createElement("select")}}class ms extends fs{constructor(){super(...arguments),this.open=!1,this.forcedPosition=!1,this.position=Gi.below,this.maxHeight=0,this.displayValue=""}openChanged(){if(this.open)return this.ariaControls=this.listbox.id,this.ariaExpanded="true",this.setPositioning(),this.focusAndScrollOptionIntoView(),void(this.indexWhenOpened=this.selectedIndex);this.ariaControls="",this.ariaExpanded="false"}get value(){return C.track(this,"value"),this._value}set value(t){const e=""+this._value;if(this.$fastController.isConnected&&this.options){const e=this.options.findIndex(e=>e.value===t),i=this.options[this.selectedIndex],o=this.options[e],s=i?i.value:null,n=o?o.value:null;-1!==e&&s===n||(t="",this.selectedIndex=e),this.firstSelectedOption&&(t=this.firstSelectedOption.value)}e!==t&&(this._value=t,super.valueChanged(e,t),C.notify(this,"value"))}updateValue(t){this.$fastController.isConnected&&(this.value=this.firstSelectedOption?this.firstSelectedOption.value:"",this.displayValue=this.firstSelectedOption?this.firstSelectedOption.textContent||this.firstSelectedOption.value:this.value),t&&(this.$emit("input"),this.$emit("change",this,{bubbles:!0,composed:void 0}))}selectedIndexChanged(t,e){super.selectedIndexChanged(t,e),this.updateValue()}setPositioning(){const t=this.getBoundingClientRect(),e=window.innerHeight-t.bottom;this.position=this.forcedPosition?this.positionAttribute:t.top>e?Gi.above:Gi.below,this.positionAttribute=this.forcedPosition?this.positionAttribute:this.position,this.maxHeight=this.position===Gi.above?~~t.top:~~e}maxHeightChanged(){this.listbox&&this.listbox.style.setProperty("--max-height",this.maxHeight+"px")}disabledChanged(t,e){super.disabledChanged&&super.disabledChanged(t,e),this.ariaDisabled=this.disabled?"true":"false"}formResetCallback(){this.setProxyOptions(),this.setDefaultSelectedOption(),this.value=this.firstSelectedOption.value}clickHandler(t){if(!this.disabled){if(this.open){const e=t.target.closest("option,[role=option]");if(e&&e.disabled)return}return super.clickHandler(t),this.open=!this.open,this.open||this.indexWhenOpened===this.selectedIndex||this.updateValue(!0),!0}}focusoutHandler(t){var e;if(!this.open)return!0;const i=t.relatedTarget;this.isSameNode(i)?this.focus():(null===(e=this.options)||void 0===e?void 0:e.includes(i))||(this.open=!1,this.indexWhenOpened!==this.selectedIndex&&this.updateValue(!0))}slottedOptionsChanged(t,e){super.slottedOptionsChanged(t,e),this.setProxyOptions(),this.updateValue()}setProxyOptions(){this.proxy instanceof HTMLSelectElement&&this.options&&(this.proxy.options.length=0,this.options.forEach(t=>{const e=t.proxy||(t instanceof HTMLOptionElement?t.cloneNode():null);e&&this.proxy.appendChild(e)}))}keydownHandler(t){super.keydownHandler(t);switch(t.key||t.key.charCodeAt(0)){case" ":this.typeaheadExpired&&(t.preventDefault(),this.open=!this.open);break;case"Enter":t.preventDefault(),this.open=!this.open;break;case"Escape":this.open&&(t.preventDefault(),this.open=!1);break;case"Tab":if(!this.open)return!0;t.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,this.listbox.id||(this.listbox.id=ii("listbox-"))}}ne([ft({attribute:"open",mode:"boolean"})],ms.prototype,"open",void 0),ne([ft({attribute:"position"})],ms.prototype,"positionAttribute",void 0),ne([T],ms.prototype,"position",void 0),ne([T],ms.prototype,"maxHeight",void 0),ne([T],ms.prototype,"displayValue",void 0);class bs{}ne([T],bs.prototype,"ariaControls",void 0),_e(bs,qi),_e(ms,te,bs);class vs extends je{constructor(){super(...arguments),this.shape="rect"}}ne([ft],vs.prototype,"fill",void 0),ne([ft],vs.prototype,"shape",void 0),ne([ft],vs.prototype,"pattern",void 0),ne([ft({mode:"boolean"})],vs.prototype,"shimmer",void 0);function ys(t,e,i,o){let s=ti(0,1,(t-e)/(i-e));return o===Ze.rtl&&(s=1-s),s}const xs={min:0,max:0,direction:Ze.ltr,orientation:We.horizontal,disabled:!1};class $s extends je{constructor(){super(...arguments),this.hideMark=!1,this.sliderDirection=Ze.ltr,this.getSliderConfiguration=()=>{if(this.isSliderConfig(this.parentNode)){const t=this.parentNode,{min:e,max:i,direction:o,orientation:s,disabled:n}=t;void 0!==n&&(this.disabled=n),this.sliderDirection=o||Ze.ltr,this.sliderOrientation=s||We.horizontal,this.sliderMaxPosition=i,this.sliderMinPosition=e}else this.sliderDirection=xs.direction||Ze.ltr,this.sliderOrientation=xs.orientation||We.horizontal,this.sliderMaxPosition=xs.max,this.sliderMinPosition=xs.min},this.positionAsStyle=()=>{const t=this.sliderDirection?this.sliderDirection:Ze.ltr,e=ys(Number(this.position),Number(this.sliderMinPosition),Number(this.sliderMaxPosition));let i=Math.round(100*(1-e)),o=Math.round(100*e);return Number.isNaN(o)&&Number.isNaN(i)&&(i=50,o=50),this.sliderOrientation===We.horizontal?t===Ze.rtl?`right: ${o}%; left: ${i}%;`:`left: ${o}%; right: ${i}%;`:`top: ${o}%; bottom: ${i}%;`}}positionChanged(){this.positionStyle=this.positionAsStyle()}sliderOrientationChanged(){}connectedCallback(){super.connectedCallback(),this.getSliderConfiguration(),this.positionStyle=this.positionAsStyle(),this.notifier=C.getNotifier(this.parentNode),this.notifier.subscribe(this,"orientation"),this.notifier.subscribe(this,"direction"),this.notifier.subscribe(this,"max"),this.notifier.subscribe(this,"min")}disconnectedCallback(){super.disconnectedCallback(),this.notifier.unsubscribe(this,"orientation"),this.notifier.unsubscribe(this,"direction"),this.notifier.unsubscribe(this,"max"),this.notifier.unsubscribe(this,"min")}handleChange(t,e){switch(e){case"direction":this.sliderDirection=t.direction;break;case"orientation":this.sliderOrientation=t.orientation;break;case"max":this.sliderMinPosition=t.max;break;case"min":this.sliderMinPosition=t.min}this.positionStyle=this.positionAsStyle()}isSliderConfig(t){return void 0!==t.max&&void 0!==t.min}}ne([T],$s.prototype,"positionStyle",void 0),ne([ft],$s.prototype,"position",void 0),ne([ft({attribute:"hide-mark",mode:"boolean"})],$s.prototype,"hideMark",void 0),ne([ft({attribute:"disabled",mode:"boolean"})],$s.prototype,"disabled",void 0),ne([T],$s.prototype,"sliderOrientation",void 0),ne([T],$s.prototype,"sliderMinPosition",void 0),ne([T],$s.prototype,"sliderMaxPosition",void 0),ne([T],$s.prototype,"sliderDirection",void 0);class ws extends je{}class ks extends(bi(ws)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}var Cs;!function(t){t.singleValue="single-value"}(Cs||(Cs={}));class Fs extends ks{constructor(){super(...arguments),this.direction=Ze.ltr,this.isDragging=!1,this.trackWidth=0,this.trackMinWidth=0,this.trackHeight=0,this.trackLeft=0,this.trackMinHeight=0,this.valueTextFormatter=()=>null,this.min=0,this.max=10,this.step=1,this.orientation=We.horizontal,this.mode=Cs.singleValue,this.keypressHandler=t=>{if("Home"===t.key)t.preventDefault(),this.value=""+this.min;else if("End"===t.key)t.preventDefault(),this.value=""+this.max;else if(!t.shiftKey)switch(t.key){case"ArrowRight":case"ArrowUp":t.preventDefault(),this.increment();break;case"ArrowLeft":case"ArrowDown":t.preventDefault(),this.decrement()}},this.setupTrackConstraints=()=>{const t=this.track.getBoundingClientRect();this.trackWidth=this.track.clientWidth,this.trackMinWidth=this.track.clientLeft,this.trackHeight=t.bottom,this.trackMinHeight=t.top,this.trackLeft=this.getBoundingClientRect().left,0===this.trackWidth&&(this.trackWidth=1)},this.setupListeners=(t=!1)=>{const e=(t?"remove":"add")+"EventListener";this[e]("keydown",this.keypressHandler),this[e]("mousedown",this.handleMouseDown),this.thumb[e]("mousedown",this.handleThumbMouseDown),this.thumb[e]("touchstart",this.handleThumbMouseDown),t&&(this.handleMouseDown(null),this.handleThumbMouseDown(null))},this.initialValue="",this.handleThumbMouseDown=t=>{if(t){if(this.readOnly||this.disabled||t.defaultPrevented)return;t.preventDefault(),t.target.focus()}const e=(null!==t?"add":"remove")+"EventListener";window[e]("mouseup",this.handleWindowMouseUp),window[e]("mousemove",this.handleMouseMove),window[e]("touchmove",this.handleMouseMove),window[e]("touchend",this.handleWindowMouseUp),this.isDragging=null!==t},this.handleMouseMove=t=>{if(this.readOnly||this.disabled||t.defaultPrevented)return;const e=window.TouchEvent&&t instanceof TouchEvent?t.touches[0]:t,i=this.orientation===We.horizontal?e.pageX-document.documentElement.scrollLeft-this.trackLeft:e.pageY-document.documentElement.scrollTop;this.value=""+this.calculateNewValue(i)},this.calculateNewValue=t=>{const e=ys(t,this.orientation===We.horizontal?this.trackMinWidth:this.trackMinHeight,this.orientation===We.horizontal?this.trackWidth:this.trackHeight,this.direction),i=(this.max-this.min)*e+this.min;return this.convertToConstrainedValue(i)},this.handleWindowMouseUp=t=>{this.stopDragging()},this.stopDragging=()=>{this.isDragging=!1,this.handleMouseDown(null),this.handleThumbMouseDown(null)},this.handleMouseDown=t=>{const e=(null!==t?"add":"remove")+"EventListener";if((null===t||!this.disabled&&!this.readOnly)&&(window[e]("mouseup",this.handleWindowMouseUp),window.document[e]("mouseleave",this.handleWindowMouseUp),window[e]("mousemove",this.handleMouseMove),t)){t.preventDefault(),this.setupTrackConstraints(),t.target.focus();const e=this.orientation===We.horizontal?t.pageX-document.documentElement.scrollLeft-this.trackLeft:t.pageY-document.documentElement.scrollTop;this.value=""+this.calculateNewValue(e)}},this.convertToConstrainedValue=t=>{isNaN(t)&&(t=this.min);let e=t-this.min;const i=e-Math.round(e/this.step)*(this.stepMultiplier*this.step)/this.stepMultiplier;return e=i>=Number(this.step)/2?e-i+Number(this.step):e-i,e+this.min}}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}get valueAsNumber(){return parseFloat(super.value)}set valueAsNumber(t){this.value=t.toString()}valueChanged(t,e){super.valueChanged(t,e),this.$fastController.isConnected&&this.setThumbPositionForOrientation(this.direction),this.$emit("change")}minChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.min=""+this.min),this.validate()}maxChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.max=""+this.max),this.validate()}stepChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.step=""+this.step),this.updateStepMultiplier(),this.validate()}orientationChanged(){this.$fastController.isConnected&&this.setThumbPositionForOrientation(this.direction)}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute("type","range"),this.direction=hi(this),this.updateStepMultiplier(),this.setupTrackConstraints(),this.setupListeners(),this.setupDefaultValue(),this.setThumbPositionForOrientation(this.direction)}disconnectedCallback(){this.setupListeners(!0)}increment(){const t=this.direction!==Ze.rtl&&this.orientation!==We.vertical?Number(this.value)+Number(this.step):Number(this.value)-Number(this.step),e=this.convertToConstrainedValue(t),i=e<Number(this.max)?""+e:""+this.max;this.value=i}decrement(){const t=this.direction!==Ze.rtl&&this.orientation!==We.vertical?Number(this.value)-Number(this.step):Number(this.value)+Number(this.step),e=this.convertToConstrainedValue(t),i=e>Number(this.min)?""+e:""+this.min;this.value=i}setThumbPositionForOrientation(t){const e=ys(Number(this.value),Number(this.min),Number(this.max),t),i=Math.round(100*(1-e));this.orientation===We.horizontal?this.position=this.isDragging?`right: ${i}%; transition: none;`:`right: ${i}%; transition: all 0.2s ease;`:this.position=this.isDragging?`bottom: ${i}%; transition: none;`:`bottom: ${i}%; transition: all 0.2s ease;`}updateStepMultiplier(){const t=this.step+"",e=this.step%1?t.length-t.indexOf(".")-1:0;this.stepMultiplier=Math.pow(10,e)}get midpoint(){return""+this.convertToConstrainedValue((this.max+this.min)/2)}setupDefaultValue(){if("string"==typeof this.value)if(0===this.value.length)this.initialValue=this.midpoint;else{const t=parseFloat(this.value);!Number.isNaN(t)&&(t<this.min||t>this.max)&&(this.value=this.midpoint)}}}ne([ft({attribute:"readonly",mode:"boolean"})],Fs.prototype,"readOnly",void 0),ne([T],Fs.prototype,"direction",void 0),ne([T],Fs.prototype,"isDragging",void 0),ne([T],Fs.prototype,"position",void 0),ne([T],Fs.prototype,"trackWidth",void 0),ne([T],Fs.prototype,"trackMinWidth",void 0),ne([T],Fs.prototype,"trackHeight",void 0),ne([T],Fs.prototype,"trackLeft",void 0),ne([T],Fs.prototype,"trackMinHeight",void 0),ne([T],Fs.prototype,"valueTextFormatter",void 0),ne([ft({converter:pt})],Fs.prototype,"min",void 0),ne([ft({converter:pt})],Fs.prototype,"max",void 0),ne([ft({converter:pt})],Fs.prototype,"step",void 0),ne([ft],Fs.prototype,"orientation",void 0),ne([ft],Fs.prototype,"mode",void 0);class Is extends je{}class Ts extends(vi(Is)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class Ds extends Ts{constructor(){super(),this.initialValue="on",this.keypressHandler=t=>{switch(t.key){case"Enter":case" ":this.checked=!this.checked}},this.clickHandler=t=>{this.disabled||this.readOnly||(this.checked=!this.checked)},this.proxy.setAttribute("type","checkbox")}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly),this.readOnly?this.classList.add("readonly"):this.classList.remove("readonly")}checkedChanged(t,e){super.checkedChanged(t,e),this.checked?this.classList.add("checked"):this.classList.remove("checked")}}ne([ft({attribute:"readonly",mode:"boolean"})],Ds.prototype,"readOnly",void 0),ne([T],Ds.prototype,"defaultSlottedNodes",void 0);class Vs extends je{}class Ss extends je{}ne([ft({mode:"boolean"})],Ss.prototype,"disabled",void 0);var Rs,Es;!function(t){t.vertical="vertical",t.horizontal="horizontal"}(Rs||(Rs={}));class Os extends je{constructor(){super(...arguments),this.orientation=Rs.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=t=>"true"===t.getAttribute("aria-disabled"),this.isFocusableElement=t=>!this.isDisabledElement(t),this.setTabs=()=>{const t=this.isHorizontal()?"gridColumn":"gridRow";this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex(),this.showActiveIndicator=!1,this.tabs.forEach((e,i)=>{if("tab"===e.slot&&this.isFocusableElement(e)){this.activeindicator&&(this.showActiveIndicator=!0);const t=this.tabIds[i],o=this.tabpanelIds[i];e.setAttribute("id","string"!=typeof t?"tab-"+(i+1):t),e.setAttribute("aria-selected",this.activeTabIndex===i?"true":"false"),e.setAttribute("aria-controls","string"!=typeof o?"panel-"+(i+1):o),e.addEventListener("click",this.handleTabClick),e.addEventListener("keydown",this.handleTabKeyDown),e.setAttribute("tabindex",this.activeTabIndex===i?"0":"-1"),this.activeTabIndex===i&&(this.activetab=e)}e.style.gridColumn="",e.style.gridRow="",e.style[t]=""+(i+1),this.isHorizontal()?e.classList.remove("vertical"):e.classList.add("vertical")})},this.setTabPanels=()=>{this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.tabpanels.forEach((t,e)=>{const i=this.tabIds[e],o=this.tabpanelIds[e];t.setAttribute("id","string"!=typeof o?"panel-"+(e+1):o),t.setAttribute("aria-labelledby","string"!=typeof i?"tab-"+(e+1):i),this.activeTabIndex!==e?t.setAttribute("hidden",""):t.removeAttribute("hidden")})},this.handleTabClick=t=>{const e=t.currentTarget;1===e.nodeType&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(e),this.setComponent())},this.handleTabKeyDown=t=>{if(this.isHorizontal())switch(t.key){case"ArrowLeft":t.preventDefault(),this.adjustBackward(t);break;case"ArrowRight":t.preventDefault(),this.adjustForward(t)}else switch(t.key){case"ArrowUp":t.preventDefault(),this.adjustBackward(t);break;case"ArrowDown":t.preventDefault(),this.adjustForward(t)}switch(t.key){case"Home":t.preventDefault(),this.adjust(-this.activeTabIndex);break;case"End":t.preventDefault(),this.adjust(this.tabs.length-this.activeTabIndex-1)}},this.adjustForward=t=>{const e=this.tabs;let i=0;for(i=this.activetab?e.indexOf(this.activetab)+1:1,i===e.length&&(i=0);i<e.length&&e.length>1;){if(this.isFocusableElement(e[i])){this.moveToTabByIndex(e,i);break}if(this.activetab&&i===e.indexOf(this.activetab))break;i+1>=e.length?i=0:i+=1}},this.adjustBackward=t=>{const e=this.tabs;let i=0;for(i=this.activetab?e.indexOf(this.activetab)-1:0,i=i<0?e.length-1:i;i>=0&&e.length>1;){if(this.isFocusableElement(e[i])){this.moveToTabByIndex(e,i);break}i-1<0?i=e.length-1:i-=1}},this.moveToTabByIndex=(t,e)=>{const i=t[e];this.activetab=i,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=e,i.focus(),this.setComponent()}}orientationChanged(){this.$fastController.isConnected&&(this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}activeidChanged(t,e){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.prevActiveTabIndex=this.tabs.findIndex(e=>e.id===t),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(t=>t.getAttribute("id"))}getTabPanelIds(){return this.tabpanels.map(t=>t.getAttribute("id"))}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}isHorizontal(){return this.orientation===Rs.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 t=this.isHorizontal()?"gridColumn":"gridRow",e=this.isHorizontal()?"translateX":"translateY",i=this.isHorizontal()?"offsetLeft":"offsetTop",o=this.activeIndicatorRef[i];this.activeIndicatorRef.style[t]=""+(this.activeTabIndex+1);const s=this.activeIndicatorRef[i];this.activeIndicatorRef.style[t]=""+(this.prevActiveTabIndex+1);const n=s-o;this.activeIndicatorRef.style.transform=`${e}(${n}px)`,this.activeIndicatorRef.classList.add("activeIndicatorTransition"),this.activeIndicatorRef.addEventListener("transitionend",()=>{this.ticking=!1,this.activeIndicatorRef.style[t]=""+(this.activeTabIndex+1),this.activeIndicatorRef.style.transform=e+"(0px)",this.activeIndicatorRef.classList.remove("activeIndicatorTransition")})}adjust(t){this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=Je(0,this.tabs.length-1,this.activeTabIndex+t),this.setComponent()}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}}ne([ft],Os.prototype,"orientation",void 0),ne([ft],Os.prototype,"activeid",void 0),ne([T],Os.prototype,"tabs",void 0),ne([T],Os.prototype,"tabpanels",void 0),ne([ft({mode:"boolean"})],Os.prototype,"activeindicator",void 0),ne([T],Os.prototype,"activeIndicatorRef",void 0),ne([T],Os.prototype,"showActiveIndicator",void 0),_e(Os,te);class Ls extends je{}class As extends(bi(Ls)){constructor(){super(...arguments),this.proxy=document.createElement("textarea")}}!function(t){t.none="none",t.both="both",t.horizontal="horizontal",t.vertical="vertical"}(Es||(Es={}));class zs extends As{constructor(){super(...arguments),this.resize=Es.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")}}ne([ft({mode:"boolean"})],zs.prototype,"readOnly",void 0),ne([ft],zs.prototype,"resize",void 0),ne([ft({mode:"boolean"})],zs.prototype,"autofocus",void 0),ne([ft({attribute:"form"})],zs.prototype,"formId",void 0),ne([ft],zs.prototype,"list",void 0),ne([ft({converter:pt})],zs.prototype,"maxlength",void 0),ne([ft({converter:pt})],zs.prototype,"minlength",void 0),ne([ft],zs.prototype,"name",void 0),ne([ft],zs.prototype,"placeholder",void 0),ne([ft({converter:pt,mode:"fromView"})],zs.prototype,"cols",void 0),ne([ft({converter:pt,mode:"fromView"})],zs.prototype,"rows",void 0),ne([ft({mode:"boolean"})],zs.prototype,"spellcheck",void 0),ne([T],zs.prototype,"defaultSlottedNodes",void 0),_e(zs,ts);const Hs=Object.freeze({[Qe.ArrowUp]:{[We.vertical]:-1},[Qe.ArrowDown]:{[We.vertical]:1},[Qe.ArrowLeft]:{[We.horizontal]:{[Ze.ltr]:-1,[Ze.rtl]:1}},[Qe.ArrowRight]:{[We.horizontal]:{[Ze.ltr]:1,[Ze.rtl]:-1}}});class Ps extends je{constructor(){super(...arguments),this._activeIndex=0,this.direction=Ze.ltr,this.orientation=We.horizontal}get activeIndex(){return C.track(this,"activeIndex"),this._activeIndex}set activeIndex(t){this.$fastController.isConnected&&(this._activeIndex=ti(0,this.focusableElements.length-1,t),C.notify(this,"activeIndex"))}slottedItemsChanged(){this.$fastController.isConnected&&this.reduceFocusableElements()}clickHandler(t){var e;const i=null===(e=this.focusableElements)||void 0===e?void 0:e.indexOf(t.target);return i>-1&&this.activeIndex!==i&&this.setFocusedElement(i),!0}connectedCallback(){super.connectedCallback(),this.direction=hi(this)}focusinHandler(t){const e=t.relatedTarget;e&&!this.contains(e)&&this.setFocusedElement()}getDirectionalIncrementer(t){var e,i,o,s,n;return null!==(n=null!==(o=null===(i=null===(e=Hs[t])||void 0===e?void 0:e[this.orientation])||void 0===i?void 0:i[this.direction])&&void 0!==o?o:null===(s=Hs[t])||void 0===s?void 0:s[this.orientation])&&void 0!==n?n:0}keydownHandler(t){const e=t.key;if(!(e in Qe)||t.defaultPrevented||t.shiftKey)return!0;const i=this.getDirectionalIncrementer(e);if(!i)return!t.target.closest("[role=radiogroup]");const o=this.activeIndex+i;return this.focusableElements[o]&&t.preventDefault(),this.setFocusedElement(o),!0}get allSlottedItems(){return[...this.start.assignedElements(),...this.slottedItems,...this.end.assignedElements()]}reduceFocusableElements(){this.focusableElements=this.allSlottedItems.reduce(Ps.reduceFocusableItems,[]),this.setFocusableElements()}setFocusedElement(t=this.activeIndex){var e;this.activeIndex=t,this.setFocusableElements(),null===(e=this.focusableElements[this.activeIndex])||void 0===e||e.focus()}static reduceFocusableItems(t,e){var i,o,s,n;const r="radio"===e.getAttribute("role"),a=null===(o=null===(i=e.$fastController)||void 0===i?void 0:i.definition.shadowOptions)||void 0===o?void 0:o.delegatesFocus,l=Array.from(null!==(n=null===(s=e.shadowRoot)||void 0===s?void 0:s.querySelectorAll("*"))&&void 0!==n?n:[]).some(t=>Bo(t));return Bo(e)||r||a||l?(t.push(e),t):e.childElementCount?t.concat(Array.from(e.children).reduce(Ps.reduceFocusableItems,[])):t}setFocusableElements(){this.$fastController.isConnected&&this.focusableElements.length>0&&this.focusableElements.forEach((t,e)=>{t.tabIndex=this.activeIndex===e?0:-1})}}ne([T],Ps.prototype,"direction",void 0),ne([ft],Ps.prototype,"orientation",void 0),ne([T],Ps.prototype,"slottedItems",void 0),ne([T],Ps.prototype,"slottedLabel",void 0);class Ms{}ne([ft({attribute:"aria-labelledby"})],Ms.prototype,"ariaLabelledby",void 0),ne([ft({attribute:"aria-label"})],Ms.prototype,"ariaLabel",void 0),_e(Ms,ai),_e(Ps,te,Ms);var Bs;!function(t){t.top="top",t.right="right",t.bottom="bottom",t.left="left",t.start="start",t.end="end"}(Bs||(Bs={}));class Ns extends je{constructor(){super(...arguments),this.anchor="",this.delay=300,this.autoUpdateMode="anchor",this.anchorElement=null,this.viewportElement=null,this.verticalPositioningMode="dynamic",this.horizontalPositioningMode="dynamic",this.horizontalInset="false",this.verticalInset="false",this.horizontalScaling="content",this.verticalScaling="content",this.verticalDefaultPosition=void 0,this.horizontalDefaultPosition=void 0,this.tooltipVisible=!1,this.currentDirection=Ze.ltr,this.delayTimer=null,this.isAnchorHoveredFocused=!1,this.handlePositionChange=t=>{this.classList.toggle("top","start"===this.region.verticalPosition),this.classList.toggle("bottom","end"===this.region.verticalPosition),this.classList.toggle("inset-top","insetStart"===this.region.verticalPosition),this.classList.toggle("inset-bottom","insetEnd"===this.region.verticalPosition),this.classList.toggle("center-vertical","center"===this.region.verticalPosition),this.classList.toggle("left","start"===this.region.horizontalPosition),this.classList.toggle("right","end"===this.region.horizontalPosition),this.classList.toggle("inset-left","insetStart"===this.region.horizontalPosition),this.classList.toggle("inset-right","insetEnd"===this.region.horizontalPosition),this.classList.toggle("center-horizontal","center"===this.region.horizontalPosition)},this.handleAnchorMouseOver=t=>{this.startHoverTimer()},this.handleAnchorMouseOut=t=>{this.isAnchorHoveredFocused=!1,this.updateTooltipVisibility(),this.clearDelayTimer()},this.handleAnchorFocusIn=t=>{this.startHoverTimer()},this.handleAnchorFocusOut=t=>{this.isAnchorHoveredFocused=!1,this.updateTooltipVisibility(),this.clearDelayTimer()},this.startHoverTimer=()=>{this.isAnchorHoveredFocused||(this.delay>1?null===this.delayTimer&&(this.delayTimer=window.setTimeout(()=>{this.startHover()},this.delay)):this.startHover())},this.startHover=()=>{this.isAnchorHoveredFocused=!0,this.updateTooltipVisibility()},this.clearDelayTimer=()=>{null!==this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)},this.getAnchor=()=>{const t=this.getRootNode();return t instanceof ShadowRoot?t.getElementById(this.anchor):document.getElementById(this.anchor)},this.handleDocumentKeydown=t=>{if(!t.defaultPrevented&&this.tooltipVisible)switch(t.key){case"Escape":this.isAnchorHoveredFocused=!1,this.updateTooltipVisibility(),this.$emit("dismiss")}},this.updateTooltipVisibility=()=>{if(!1===this.visible)this.hideTooltip();else{if(!0===this.visible)return void this.showTooltip();if(this.isAnchorHoveredFocused)return void this.showTooltip();this.hideTooltip()}},this.showTooltip=()=>{this.tooltipVisible||(this.currentDirection=hi(this),this.tooltipVisible=!0,document.addEventListener("keydown",this.handleDocumentKeydown),d.queueUpdate(this.setRegionProps))},this.hideTooltip=()=>{this.tooltipVisible&&(null!==this.region&&void 0!==this.region&&(this.region.removeEventListener("positionchange",this.handlePositionChange),this.region.viewportElement=null,this.region.anchorElement=null),document.removeEventListener("keydown",this.handleDocumentKeydown),this.tooltipVisible=!1)},this.setRegionProps=()=>{this.tooltipVisible&&(this.region.viewportElement=this.viewportElement,this.region.anchorElement=this.anchorElement,this.region.addEventListener("positionchange",this.handlePositionChange))}}visibleChanged(){this.$fastController.isConnected&&(this.updateTooltipVisibility(),this.updateLayout())}anchorChanged(){this.$fastController.isConnected&&this.updateLayout()}positionChanged(){this.$fastController.isConnected&&this.updateLayout()}anchorElementChanged(t){if(this.$fastController.isConnected){if(null!=t&&(t.removeEventListener("mouseover",this.handleAnchorMouseOver),t.removeEventListener("mouseout",this.handleAnchorMouseOut),t.removeEventListener("focusin",this.handleAnchorFocusIn),t.removeEventListener("focusout",this.handleAnchorFocusOut)),null!==this.anchorElement&&void 0!==this.anchorElement){this.anchorElement.addEventListener("mouseover",this.handleAnchorMouseOver,{passive:!0}),this.anchorElement.addEventListener("mouseout",this.handleAnchorMouseOut,{passive:!0}),this.anchorElement.addEventListener("focusin",this.handleAnchorFocusIn,{passive:!0}),this.anchorElement.addEventListener("focusout",this.handleAnchorFocusOut,{passive:!0});const t=this.anchorElement.id;null!==this.anchorElement.parentElement&&this.anchorElement.parentElement.querySelectorAll(":hover").forEach(e=>{e.id===t&&this.startHoverTimer()})}null!==this.region&&void 0!==this.region&&this.tooltipVisible&&(this.region.anchorElement=this.anchorElement),this.updateLayout()}}viewportElementChanged(){null!==this.region&&void 0!==this.region&&(this.region.viewportElement=this.viewportElement),this.updateLayout()}connectedCallback(){super.connectedCallback(),this.anchorElement=this.getAnchor(),this.updateLayout(),this.updateTooltipVisibility()}disconnectedCallback(){this.hideTooltip(),this.clearDelayTimer(),super.disconnectedCallback()}updateLayout(){switch(this.position){case Bs.top:case Bs.bottom:this.verticalPositioningMode="locktodefault",this.horizontalPositioningMode="locktodefault",this.verticalDefaultPosition=this.position,this.horizontalDefaultPosition="center";break;case Bs.right:case Bs.left:case Bs.start:case Bs.end:this.verticalPositioningMode="locktodefault",this.horizontalPositioningMode="locktodefault",this.verticalDefaultPosition="center",this.horizontalDefaultPosition=this.position;break;default:this.verticalPositioningMode="dynamic",this.horizontalPositioningMode="dynamic",this.verticalDefaultPosition=void 0,this.horizontalDefaultPosition="center"}}}ne([ft({mode:"boolean"})],Ns.prototype,"visible",void 0),ne([ft],Ns.prototype,"anchor",void 0),ne([ft],Ns.prototype,"delay",void 0),ne([ft],Ns.prototype,"position",void 0),ne([ft({attribute:"auto-update-mode"})],Ns.prototype,"autoUpdateMode",void 0),ne([ft({attribute:"horizontal-viewport-lock"})],Ns.prototype,"horizontalViewportLock",void 0),ne([ft({attribute:"vertical-viewport-lock"})],Ns.prototype,"verticalViewportLock",void 0),ne([T],Ns.prototype,"anchorElement",void 0),ne([T],Ns.prototype,"viewportElement",void 0),ne([T],Ns.prototype,"verticalPositioningMode",void 0),ne([T],Ns.prototype,"horizontalPositioningMode",void 0),ne([T],Ns.prototype,"horizontalInset",void 0),ne([T],Ns.prototype,"verticalInset",void 0),ne([T],Ns.prototype,"horizontalScaling",void 0),ne([T],Ns.prototype,"verticalScaling",void 0),ne([T],Ns.prototype,"verticalDefaultPosition",void 0),ne([T],Ns.prototype,"horizontalDefaultPosition",void 0),ne([T],Ns.prototype,"tooltipVisible",void 0),ne([T],Ns.prototype,"currentDirection",void 0);function js(t){return Ke(t)&&"treeitem"===t.getAttribute("role")}class Us extends je{constructor(){super(...arguments),this.expanded=!1,this.focusable=!1,this.handleExpandCollapseButtonClick=t=>{this.disabled||(t.preventDefault(),this.setExpanded(!this.expanded))},this.handleClick=t=>{if(!t.defaultPrevented){return t.composedPath().find(t=>t instanceof HTMLElement&&js(t))===this&&this.handleSelected(),!0}},this.isNestedItem=()=>js(this.parentElement)}itemsChanged(t,e){this.$fastController.isConnected&&this.items.forEach(t=>{js(t)&&(t.nested=!0)})}static focusItem(t){t.focusable=!0,t.focus()}childItemLength(){const t=this.childItems.filter(t=>js(t));return t?t.length:0}handleSelected(t){(null==t?void 0:t.defaultPrevented)||(null==t||t.preventDefault(),this.disabled||this.$emit("selected-change",t))}setExpanded(t){this.expanded=t,this.$emit("expanded-change",this)}}ne([ft({mode:"boolean"})],Us.prototype,"expanded",void 0),ne([ft({mode:"boolean"})],Us.prototype,"selected",void 0),ne([ft({mode:"boolean"})],Us.prototype,"disabled",void 0),ne([T],Us.prototype,"focusable",void 0),ne([T],Us.prototype,"childItems",void 0),ne([T],Us.prototype,"items",void 0),ne([T],Us.prototype,"nested",void 0),ne([T],Us.prototype,"renderCollapsedChildren",void 0),_e(Us,te);class qs extends je{constructor(){super(...arguments),this.handleBlur=t=>{const{relatedTarget:e,target:i}=t;i instanceof HTMLElement&&(null===e||!this.contains(e))&&this.setAttribute("tabindex","0")},this.handleFocus=t=>{const{relatedTarget:e,target:i}=t;if(i instanceof HTMLElement&&(null===e||!this.contains(e))){const t=this;i===this&&this.currentFocused instanceof Us&&(Us.focusItem(this.currentFocused),this.currentFocused.setAttribute("tabindex","0")),t.setAttribute("tabindex","-1")}},this.handleKeyDown=t=>{if(!this.treeItems)return!0;switch(t.key){case"Home":this.treeItems&&this.treeItems.length&&(Us.focusItem(this.treeItems[0]),this.treeItems[0].setAttribute("tabindex","0"));break;case"End":this.treeItems&&this.treeItems.length&&(Us.focusItem(this.treeItems[this.treeItems.length-1]),this.treeItems[this.treeItems.length-1].setAttribute("tabindex","0"));break;case"ArrowLeft":if(t.target&&this.isFocusableElement(t.target)){const e=t.target;e instanceof Us&&e.childItemLength()>0&&(e.expanded=!1)}break;case"ArrowRight":if(t.target&&this.isFocusableElement(t.target)){const e=t.target;e instanceof Us&&e.childItemLength()>0&&(e.expanded=!0)}break;case"ArrowDown":t.target&&this.isFocusableElement(t.target)&&this.focusNextNode(1,t.target);break;case"ArrowUp":t.target&&this.isFocusableElement(t.target)&&this.focusNextNode(-1,t.target);break;case"Enter":this.handleSelected(t.target);break;default:return!0}},this.setItems=()=>{let t=this.treeItems.findIndex(this.isSelectedElement);-1===t&&(t=this.treeItems.findIndex(this.isFocusableElement));for(let e=0;e<this.treeItems.length;e++)e===t&&(this.treeItems[e].setAttribute("tabindex","0"),this.currentFocused=this.treeItems[e]),this.treeItems[e].addEventListener("selected-change",this.handleItemSelected)},this.resetItems=()=>{for(let t=0;t<this.treeItems.length;t++)this.treeItems[t].removeEventListener("selected-change",this.handleItemSelected)},this.handleItemSelected=t=>{const e=t.target;e!==this.currentSelected&&this.handleSelected(e)},this.isFocusableElement=t=>js(t),this.isSelectedElement=t=>t.selected}slottedTreeItemsChanged(t,e){this.$fastController.isConnected&&(this.resetItems(),this.treeItems=this.getVisibleNodes(),this.setItems(),this.checkForNestedItems()&&this.slottedTreeItems.forEach(t=>{js(t)&&(t.nested=!0)}))}checkForNestedItems(){return this.slottedTreeItems.some(t=>js(t)&&t.querySelector("[role='treeitem']"))}connectedCallback(){super.connectedCallback(),this.treeItems=this.getVisibleNodes(),d.queueUpdate(()=>{const t=this.treeView.querySelector("[aria-selected='true']");t&&(this.currentSelected=t)})}focusNextNode(t,e){const i=this.getVisibleNodes();if(!i)return;const o=i.indexOf(e),s=i[o];(t<0&&o>0||t>0&&o<i.length-1)&&s.setAttribute("tabindex","-1");const n=i[i.indexOf(e)+t];Ke(n)&&(Us.focusItem(n),n.setAttribute("tabindex","0"),this.currentFocused=n)}handleSelected(t){this.currentSelected!==t&&(t.setAttribute("tabindex","0"),this.currentSelected instanceof Us&&this.currentFocused&&(t.disabled||(this.currentSelected.selected=!1),this.currentFocused.setAttribute("tabindex","-1")),this.currentSelected||this.slottedTreeItems.forEach(t=>{t instanceof Us&&t.setAttribute("tabindex","-1")}),t.disabled||(t.selected=!0,this.currentSelected=t),this.currentFocused=t)}getVisibleNodes(){return function(t,e){if(!t||!e||!Ke(t))return;return Array.from(t.querySelectorAll(e)).filter(t=>null!==t.offsetParent)}(this,"[role='treeitem']")||[]}}function _s(t,e,i){return isNaN(t)||t<=e?e:t>=i?i:t}function Gs(t,e,i){return isNaN(t)||t<=e?0:t>=i?1:t/(i-e)}function Ws(t,e,i){return isNaN(t)?e:e+t*(i-e)}function Ks(t,e,i){return isNaN(t)||t<=0?e:t>=1?i:e+t*(i-e)}function Xs(t,e){const i=Math.pow(10,e);return Math.round(t*i)/i}ne([ft({attribute:"render-collapsed-nodes"})],qs.prototype,"renderCollapsedNodes",void 0),ne([T],qs.prototype,"currentSelected",void 0),ne([T],qs.prototype,"nested",void 0),ne([T],qs.prototype,"slottedTreeItems",void 0);class Ys{constructor(t,e,i){this.h=t,this.s=e,this.l=i}static fromObject(t){return!t||isNaN(t.h)||isNaN(t.s)||isNaN(t.l)?null:new Ys(t.h,t.s,t.l)}equalValue(t){return this.h===t.h&&this.s===t.s&&this.l===t.l}roundToPrecision(t){return new Ys(Xs(this.h,t),Xs(this.s,t),Xs(this.l,t))}toObject(){return{h:this.h,s:this.s,l:this.l}}}class Qs{constructor(t,e,i){this.l=t,this.a=e,this.b=i}static fromObject(t){return!t||isNaN(t.l)||isNaN(t.a)||isNaN(t.b)?null:new Qs(t.l,t.a,t.b)}equalValue(t){return this.l===t.l&&this.a===t.a&&this.b===t.b}roundToPrecision(t){return new Qs(Xs(this.l,t),Xs(this.a,t),Xs(this.b,t))}toObject(){return{l:this.l,a:this.a,b:this.b}}}Qs.epsilon=216/24389,Qs.kappa=24389/27;class Zs{constructor(t,e,i,o){this.r=t,this.g=e,this.b=i,this.a="number"!=typeof o||isNaN(o)?1:o}static fromObject(t){return!t||isNaN(t.r)||isNaN(t.g)||isNaN(t.b)?null:new Zs(t.r,t.g,t.b,t.a)}equalValue(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}toStringHexRGB(){return"#"+[this.r,this.g,this.b].map(this.formatHexValue).join("")}toStringHexRGBA(){return this.toStringHexRGB()+this.formatHexValue(this.a)}toStringHexARGB(){return"#"+[this.a,this.r,this.g,this.b].map(this.formatHexValue).join("")}toStringWebRGB(){return`rgb(${Math.round(Ws(this.r,0,255))},${Math.round(Ws(this.g,0,255))},${Math.round(Ws(this.b,0,255))})`}toStringWebRGBA(){return`rgba(${Math.round(Ws(this.r,0,255))},${Math.round(Ws(this.g,0,255))},${Math.round(Ws(this.b,0,255))},${_s(this.a,0,1)})`}roundToPrecision(t){return new Zs(Xs(this.r,t),Xs(this.g,t),Xs(this.b,t),Xs(this.a,t))}clamp(){return new Zs(_s(this.r,0,1),_s(this.g,0,1),_s(this.b,0,1),_s(this.a,0,1))}toObject(){return{r:this.r,g:this.g,b:this.b,a:this.a}}formatHexValue(t){return function(t){const e=Math.round(_s(t,0,255)).toString(16);return 1===e.length?"0"+e:e}(Ws(t,0,255))}}class Js{constructor(t,e,i){this.x=t,this.y=e,this.z=i}static fromObject(t){return!t||isNaN(t.x)||isNaN(t.y)||isNaN(t.z)?null:new Js(t.x,t.y,t.z)}equalValue(t){return this.x===t.x&&this.y===t.y&&this.z===t.z}roundToPrecision(t){return new Js(Xs(this.x,t),Xs(this.y,t),Xs(this.z,t))}toObject(){return{x:this.x,y:this.y,z:this.z}}}function tn(t){function e(t){return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return function(t){return.2126*t.r+.7152*t.g+.0722*t.b}(new Zs(e(t.r),e(t.g),e(t.b),1))}function en(t){const e=Math.max(t.r,t.g,t.b),i=Math.min(t.r,t.g,t.b),o=e-i;let s=0;0!==o&&(s=e===t.r?(t.g-t.b)/o%6*60:e===t.g?60*((t.b-t.r)/o+2):60*((t.r-t.g)/o+4)),s<0&&(s+=360);const n=(e+i)/2;let r=0;return 0!==o&&(r=o/(1-Math.abs(2*n-1))),new Ys(s,r,n)}function on(t){return function(t){function e(t){return t>Qs.epsilon?Math.pow(t,1/3):(Qs.kappa*t+16)/116}const i=e(t.x/Js.whitePoint.x),o=e(t.y/Js.whitePoint.y),s=e(t.z/Js.whitePoint.z);return new Qs(116*o-16,500*(i-o),200*(o-s))}(function(t){function e(t){return t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}const i=e(t.r),o=e(t.g),s=e(t.b);return new Js(.4124564*i+.3575761*o+.1804375*s,.2126729*i+.7151522*o+.072175*s,.0193339*i+.119192*o+.9503041*s)}(t))}function sn(t,e=1){return function(t,e=1){function i(t){return t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055}const o=i(3.2404542*t.x-1.5371385*t.y-.4985314*t.z),s=i(-.969266*t.x+1.8760108*t.y+.041556*t.z),n=i(.0556434*t.x-.2040259*t.y+1.0572252*t.z);return new Zs(o,s,n,e)}(function(t){const e=(t.l+16)/116,i=e+t.a/500,o=e-t.b/200,s=Math.pow(i,3),n=Math.pow(e,3),r=Math.pow(o,3);let a=0;a=s>Qs.epsilon?s:(116*i-16)/Qs.kappa;let l=0;l=t.l>Qs.epsilon*Qs.kappa?n:t.l/Qs.kappa;let c=0;return c=r>Qs.epsilon?r:(116*o-16)/Qs.kappa,a=Js.whitePoint.x*a,l=Js.whitePoint.y*l,c=Js.whitePoint.z*c,new Js(a,l,c)}(t),e)}var nn,rn;function an(t,e,i){return isNaN(t)||t<=0?e:t>=1?i:new Zs(Ks(t,e.r,i.r),Ks(t,e.g,i.g),Ks(t,e.b,i.b),Ks(t,e.a,i.a))}Js.whitePoint=new Js(.95047,1,1.08883),function(t){t[t.Burn=0]="Burn",t[t.Color=1]="Color",t[t.Darken=2]="Darken",t[t.Dodge=3]="Dodge",t[t.Lighten=4]="Lighten",t[t.Multiply=5]="Multiply",t[t.Overlay=6]="Overlay",t[t.Screen=7]="Screen"}(nn||(nn={})),function(t){t[t.RGB=0]="RGB",t[t.HSL=1]="HSL",t[t.HSV=2]="HSV",t[t.XYZ=3]="XYZ",t[t.LAB=4]="LAB",t[t.LCH=5]="LCH"}(rn||(rn={}));const ln=/^#((?:[0-9a-f]{6}|[0-9a-f]{3}))$/i;function cn(t){const e=ln.exec(t);if(null===e)return null;let i=e[1];if(3===i.length){const t=i.charAt(0),e=i.charAt(1),o=i.charAt(2);i=t.concat(t,e,e,o,o)}const o=parseInt(i,16);return isNaN(o)?null:new Zs(Gs((16711680&o)>>>16,0,255),Gs((65280&o)>>>8,0,255),Gs(255&o,0,255),1)}function hn(t,e){const i=t.relativeLuminance>e.relativeLuminance?t:e,o=t.relativeLuminance>e.relativeLuminance?e:t;return(i.relativeLuminance+.05)/(o.relativeLuminance+.05)}const dn=Object.freeze({create:(t,e,i)=>new un(t,e,i),from:t=>new un(t.r,t.g,t.b)});class un extends Zs{constructor(t,e,i){super(t,e,i,1),this.toColorString=this.toStringHexRGB,this.contrast=hn.bind(null,this),this.createCSS=this.toColorString,this.relativeLuminance=tn(this)}static fromObject(t){return new un(t.r,t.g,t.b)}}const pn=(-.1+Math.sqrt(.21))/2;function gn(t){return t.relativeLuminance<=pn}function fn(t){return gn(t)?-1:1}const mn={stepContrast:1.03,stepContrastRamp:.03,preserveSource:!1};const bn=Object.freeze({create:function(t,e,i){return"number"==typeof t?bn.from(dn.create(t,e,i)):bn.from(t)},from:function(t,e){return function(t){const e={r:0,g:0,b:0,toColorString:()=>"",contrast:()=>0,relativeLuminance:0};for(const i in e)if(typeof e[i]!=typeof t[i])return!1;return!0}(t)?vn.from(t,e):vn.from(dn.create(t.r,t.g,t.b),e)}});class vn{constructor(t,e){this.closestIndexCache=new Map,this.source=t,this.swatches=e,this.reversedSwatches=Object.freeze([...this.swatches].reverse()),this.lastIndex=this.swatches.length-1}colorContrast(t,e,i,o){void 0===i&&(i=this.closestIndexOf(t));let s=this.swatches;const n=this.lastIndex;let r=i;void 0===o&&(o=fn(t));return-1===o&&(s=this.reversedSwatches,r=n-r),function t(e,i,o=0,s=e.length-1){if(s===o)return e[o];const n=Math.floor((s-o)/2)+o;return i(e[n])?t(e,i,o,n):t(e,i,n+1,s)}(s,i=>hn(t,i)>=e,r,n)}get(t){return this.swatches[t]||this.swatches[_s(t,0,this.lastIndex)]}closestIndexOf(t){if(this.closestIndexCache.has(t.relativeLuminance))return this.closestIndexCache.get(t.relativeLuminance);let e=this.swatches.indexOf(t);if(-1!==e)return this.closestIndexCache.set(t.relativeLuminance,e),e;const i=this.swatches.reduce((e,i)=>Math.abs(i.relativeLuminance-t.relativeLuminance)<Math.abs(e.relativeLuminance-t.relativeLuminance)?i:e);return e=this.swatches.indexOf(i),this.closestIndexCache.set(t.relativeLuminance,e),e}static saturationBump(t,e){const i=en(t).s,o=en(e);if(o.s<i){return function(t,e=1){const i=(1-Math.abs(2*t.l-1))*t.s,o=i*(1-Math.abs(t.h/60%2-1)),s=t.l-i/2;let n=0,r=0,a=0;return t.h<60?(n=i,r=o,a=0):t.h<120?(n=o,r=i,a=0):t.h<180?(n=0,r=i,a=o):t.h<240?(n=0,r=o,a=i):t.h<300?(n=o,r=0,a=i):t.h<360&&(n=i,r=0,a=o),new Zs(n+s,r+s,a+s,e)}(new Ys(o.h,i,o.l))}return e}static ramp(t){const e=t/100;return e>.5?(e-.5)/.5:2*e}static createHighResolutionPalette(t){const e=[],i=on(Zs.fromObject(t).roundToPrecision(4)),o=sn(new Qs(0,i.a,i.b)).clamp().roundToPrecision(4),s=sn(new Qs(50,i.a,i.b)).clamp().roundToPrecision(4),n=sn(new Qs(100,i.a,i.b)).clamp().roundToPrecision(4),r=new Zs(0,0,0),a=new Zs(1,1,1),l=n.equalValue(a)?0:14,c=o.equalValue(r)?0:14;for(let t=100+l;t>=0-c;t-=.5){let i;if(t<0){i=an(t/c+1,r,o)}else if(t<=50)i=an(vn.ramp(t),o,s);else if(t<=100)i=an(vn.ramp(t),s,n);else{i=an((t-100)/l,n,a)}i=vn.saturationBump(s,i).roundToPrecision(4),e.push(dn.from(i))}return new vn(t,e)}static adjustEnd(t,e,i,o){const s=-1===o?e.swatches:e.reversedSwatches,n=t=>{const i=e.closestIndexOf(t);return 1===o?e.lastIndex-i:i};1===o&&i.reverse();const r=t(i[i.length-2]);if(Xs(hn(i[i.length-1],i[i.length-2]),2)<r){i.pop();const t=n(e.colorContrast(s[e.lastIndex],r,void 0,o))-n(i[i.length-2]);let a=1;for(let o=i.length-t-1;o<i.length;o++){const t=n(i[o]),r=o===i.length-1?e.lastIndex:t+a;i[o]=s[r],a++}}1===o&&i.reverse()}static createColorPaletteByContrast(t,e){const i=vn.createHighResolutionPalette(t),o=t=>Xs(e.stepContrast+e.stepContrast*(1-t.relativeLuminance)*e.stepContrastRamp,2),s=[];let n=e.preserveSource?t:i.swatches[0];s.push(n);do{const t=o(n);n=i.colorContrast(n,t,void 0,1),s.push(n)}while(n.relativeLuminance>0);if(e.preserveSource){n=t;do{const t=o(n);n=i.colorContrast(n,t,void 0,-1),s.unshift(n)}while(n.relativeLuminance<1)}return this.adjustEnd(o,i,s,-1),e.preserveSource&&this.adjustEnd(o,i,s,1),s}static from(t,e){const i=void 0===e?mn:Object.assign(Object.assign({},mn),e);return new vn(t,Object.freeze(vn.createColorPaletteByContrast(t,i)))}}const yn=dn.create(1,1,1),xn=dn.create(0,0,0),$n=dn.create(.5,.5,.5),wn=cn("#0078D4"),kn=dn.create(wn.r,wn.g,wn.b);function Cn(t,e,i,o,s){const n=t=>t.contrast(yn)>=s?yn:xn,r=n(t),a=n(e);return{rest:r,hover:a,active:r.relativeLuminance===a.relativeLuminance?r:n(i),focus:n(o)}}class Fn{constructor(t,e,i,o){this.toColorString=()=>this.cssGradient,this.contrast=hn.bind(null,this),this.createCSS=this.toColorString,this.color=new Zs(t,e,i),this.cssGradient=o,this.relativeLuminance=tn(this.color),this.r=t,this.g=e,this.b=i}static fromObject(t,e){return new Fn(t.r,t.g,t.b,e)}}const In=new Zs(0,0,0),Tn=new Zs(1,1,1);function Dn(t,e,i,o,s,n,r,a,l=10,c=!1){const h=t.closestIndexOf(e);function d(i){if(c){const o=t.closestIndexOf(e),s=t.get(o),n=i.relativeLuminance<e.relativeLuminance?In:Tn,r=function(t,e,i){const o=((t.r-e.r)/(i.r-e.r)+(t.g-e.g)/(i.g-e.g)+(t.b-e.b)/(i.b-e.b))/3;return new Zs(i.r,i.g,i.b,o)}(cn(i.toColorString()),cn(s.toColorString()),n).roundToPrecision(2),a=function(t,e){if(e.a>=1)return e;if(e.a<=0)return new Zs(t.r,t.g,t.b,1);const i=e.a*e.r+(1-e.a)*t.r,o=e.a*e.g+(1-e.a)*t.g,s=e.a*e.b+(1-e.a)*t.b;return new Zs(i,o,s,1)}(cn(e.toColorString()),r);return dn.from(a)}return i}void 0===a&&(a=fn(e));const u=h+a*i,p=u+a*(o-i),g=u+a*(s-i),f=u+a*(n-i),m=-1===a?0:100-l,b=-1===a?l:100;function v(e,i){const o=t.get(e);if(i){const i=t.get(e+a*r),s=-1===a?i:o,n=-1===a?o:i,l=`linear-gradient(${d(s).toColorString()} ${m}%, ${d(n).toColorString()} ${b}%)`;return Fn.fromObject(s,l)}return d(o)}return{rest:v(u,!0),hover:v(p,!0),active:v(g,!1),focus:v(f,!0)}}function Vn(t,e,i,o,s,n,r,a){null==a&&(a=fn(e));const l=t.closestIndexOf(t.colorContrast(e,i));return{rest:t.get(l+a*o),hover:t.get(l+a*s),active:t.get(l+a*n),focus:t.get(l+a*r)}}function Sn(t,e,i,o,s,n,r){const a=t.closestIndexOf(e);return null==r&&(r=fn(e)),{rest:t.get(a+r*i),hover:t.get(a+r*o),active:t.get(a+r*s),focus:t.get(a+r*n)}}function Rn(t,e,i,o,s,n,r,a,l,c,h,d){return gn(e)?Sn(t,e,a,l,c,h,d):Sn(t,e,i,o,s,n,r)}var En;function On(t,e){return t.closestIndexOf((i=e,dn.create(i,i,i)));var i}function Ln(t,e,i){return t.get(On(t,e)+-1*i)}!function(t){t[t.LightMode=.98]="LightMode",t[t.DarkMode=.15]="DarkMode"}(En||(En={}));const{create:An}=wo;function zn(t){return wo.create({name:t,cssCustomPropertyName:null})}const Hn=An("direction").withDefault(Ze.ltr),Pn=An("disabled-opacity").withDefault(.3),Mn=An("base-height-multiplier").withDefault(8),Bn=An("base-horizontal-spacing-multiplier").withDefault(3),Nn=An("density").withDefault(0),jn=An("design-unit").withDefault(4),Un=An("control-corner-radius").withDefault(4),qn=An("layer-corner-radius").withDefault(8),_n=An("stroke-width").withDefault(1),Gn=An("focus-stroke-width").withDefault(2),Wn=An("body-font").withDefault("Segoe UI, sans-serif"),Kn=An("type-ramp-base-font-size").withDefault("14px"),Xn=An("type-ramp-base-line-height").withDefault("20px"),Yn=An("type-ramp-minus-1-font-size").withDefault("12px"),Qn=An("type-ramp-minus-1-line-height").withDefault("16px"),Zn=An("type-ramp-minus-2-font-size").withDefault("10px"),Jn=An("type-ramp-minus-2-line-height").withDefault("14px"),tr=An("type-ramp-plus-1-font-size").withDefault("16px"),er=An("type-ramp-plus-1-line-height").withDefault("22px"),ir=An("type-ramp-plus-2-font-size").withDefault("20px"),or=An("type-ramp-plus-2-line-height").withDefault("26px"),sr=An("type-ramp-plus-3-font-size").withDefault("24px"),nr=An("type-ramp-plus-3-line-height").withDefault("32px"),rr=An("type-ramp-plus-4-font-size").withDefault("28px"),ar=An("type-ramp-plus-4-line-height").withDefault("36px"),lr=An("type-ramp-plus-5-font-size").withDefault("32px"),cr=An("type-ramp-plus-5-line-height").withDefault("40px"),hr=An("type-ramp-plus-6-font-size").withDefault("40px"),dr=An("type-ramp-plus-6-line-height").withDefault("52px"),ur=An("base-layer-luminance").withDefault(En.LightMode),pr=zn("accent-fill-rest-delta").withDefault(0),gr=zn("accent-fill-hover-delta").withDefault(-2),fr=zn("accent-fill-active-delta").withDefault(-5),mr=zn("accent-fill-focus-delta").withDefault(0),br=zn("accent-foreground-rest-delta").withDefault(0),vr=zn("accent-foreground-hover-delta").withDefault(3),yr=zn("accent-foreground-active-delta").withDefault(-8),xr=zn("accent-foreground-focus-delta").withDefault(0),$r=zn("neutral-fill-rest-delta").withDefault(-1),wr=zn("neutral-fill-hover-delta").withDefault(1),kr=zn("neutral-fill-active-delta").withDefault(0),Cr=zn("neutral-fill-focus-delta").withDefault(0),Fr=zn("neutral-fill-input-rest-delta").withDefault(-1),Ir=zn("neutral-fill-input-hover-delta").withDefault(1),Tr=zn("neutral-fill-input-active-delta").withDefault(0),Dr=zn("neutral-fill-input-focus-delta").withDefault(-2),Vr=zn("neutral-fill-input-alt-rest-delta").withDefault(2),Sr=zn("neutral-fill-input-alt-hover-delta").withDefault(4),Rr=zn("neutral-fill-input-alt-active-delta").withDefault(6),Er=zn("neutral-fill-input-alt-focus-delta").withDefault(2),Or=zn("neutral-fill-layer-rest-delta").withDefault(-2),Lr=zn("neutral-fill-layer-hover-delta").withDefault(-3),Ar=zn("neutral-fill-layer-active-delta").withDefault(-3),zr=zn("neutral-fill-layer-alt-rest-delta").withDefault(-1),Hr=zn("neutral-fill-secondary-rest-delta").withDefault(3),Pr=zn("neutral-fill-secondary-hover-delta").withDefault(2),Mr=zn("neutral-fill-secondary-active-delta").withDefault(1),Br=zn("neutral-fill-secondary-focus-delta").withDefault(3),Nr=zn("neutral-fill-stealth-rest-delta").withDefault(0),jr=zn("neutral-fill-stealth-hover-delta").withDefault(3),Ur=zn("neutral-fill-stealth-active-delta").withDefault(2),qr=zn("neutral-fill-stealth-focus-delta").withDefault(0),_r=zn("neutral-fill-strong-rest-delta").withDefault(0),Gr=zn("neutral-fill-strong-hover-delta").withDefault(8),Wr=zn("neutral-fill-strong-active-delta").withDefault(-5),Kr=zn("neutral-fill-strong-focus-delta").withDefault(0),Xr=zn("neutral-stroke-rest-delta").withDefault(8),Yr=zn("neutral-stroke-hover-delta").withDefault(12),Qr=zn("neutral-stroke-active-delta").withDefault(6),Zr=zn("neutral-stroke-focus-delta").withDefault(8),Jr=zn("neutral-stroke-control-rest-delta").withDefault(3),ta=zn("neutral-stroke-control-hover-delta").withDefault(5),ea=zn("neutral-stroke-control-active-delta").withDefault(5),ia=zn("neutral-stroke-control-focus-delta").withDefault(5),oa=zn("neutral-stroke-divider-rest-delta").withDefault(4),sa=zn("neutral-stroke-layer-rest-delta").withDefault(3),na=zn("neutral-stroke-layer-hover-delta").withDefault(3),ra=zn("neutral-stroke-layer-active-delta").withDefault(3),aa=zn("neutral-stroke-strong-hover-delta").withDefault(0),la=zn("neutral-stroke-strong-active-delta").withDefault(0),ca=zn("neutral-stroke-strong-focus-delta").withDefault(0),ha=An("neutral-base-color").withDefault($n),da=zn("neutral-palette").withDefault(t=>bn.from(ha.getValueFor(t))),ua=An("accent-base-color").withDefault(kn),pa=zn("accent-palette").withDefault(t=>bn.from(ua.getValueFor(t))),ga=zn("neutral-layer-card-container-recipe").withDefault({evaluate:t=>Ln(da.getValueFor(t),ur.getValueFor(t),Or.getValueFor(t))}),fa=An("neutral-layer-card-container").withDefault(t=>ga.getValueFor(t).evaluate(t)),ma=zn("neutral-layer-floating-recipe").withDefault({evaluate:t=>function(t,e,i){return t.get(On(t,e)+i)}(da.getValueFor(t),ur.getValueFor(t),Or.getValueFor(t))}),ba=An("neutral-layer-floating").withDefault(t=>ma.getValueFor(t).evaluate(t)),va=zn("neutral-layer-1-recipe").withDefault({evaluate:t=>function(t,e){return t.get(On(t,e))}(da.getValueFor(t),ur.getValueFor(t))}),ya=An("neutral-layer-1").withDefault(t=>va.getValueFor(t).evaluate(t)),xa=zn("neutral-layer-2-recipe").withDefault({evaluate:t=>Ln(da.getValueFor(t),ur.getValueFor(t),Or.getValueFor(t))}),$a=An("neutral-layer-2").withDefault(t=>xa.getValueFor(t).evaluate(t)),wa=zn("neutral-layer-3-recipe").withDefault({evaluate:t=>function(t,e,i){return t.get(On(t,e)+-1*i*2)}(da.getValueFor(t),ur.getValueFor(t),Or.getValueFor(t))}),ka=An("neutral-layer-3").withDefault(t=>wa.getValueFor(t).evaluate(t)),Ca=zn("neutral-layer-4-recipe").withDefault({evaluate:t=>function(t,e,i){return t.get(On(t,e)+-1*i*3)}(da.getValueFor(t),ur.getValueFor(t),Or.getValueFor(t))}),Fa=An("neutral-layer-4").withDefault(t=>Ca.getValueFor(t).evaluate(t)),Ia=An("fill-color").withDefault(t=>ya.getValueFor(t));var Ta;!function(t){t[t.normal=4.5]="normal",t[t.large=3]="large"}(Ta||(Ta={}));const Da=zn("accent-fill-recipe").withDefault({evaluate:(t,e)=>function(t,e,i,o,s,n,r,a,l,c,h,d,u,p){return gn(e)?Vn(t,e,l,c,h,d,u,p):Vn(t,e,i,o,s,n,r,a)}(pa.getValueFor(t),e||Ia.getValueFor(t),5,pr.getValueFor(t),gr.getValueFor(t),fr.getValueFor(t),mr.getValueFor(t),void 0,8,pr.getValueFor(t),gr.getValueFor(t),fr.getValueFor(t),mr.getValueFor(t),void 0)}),Va=An("accent-fill-rest").withDefault(t=>Da.getValueFor(t).evaluate(t).rest),Sa=An("accent-fill-hover").withDefault(t=>Da.getValueFor(t).evaluate(t).hover),Ra=An("accent-fill-active").withDefault(t=>Da.getValueFor(t).evaluate(t).active),Ea=An("accent-fill-focus").withDefault(t=>Da.getValueFor(t).evaluate(t).focus),Oa=zn("foreground-on-accent-recipe").withDefault({evaluate:t=>Cn(Va.getValueFor(t),Sa.getValueFor(t),Ra.getValueFor(t),Ea.getValueFor(t),Ta.normal)}),La=An("foreground-on-accent-rest").withDefault(t=>Oa.getValueFor(t).evaluate(t).rest),Aa=An("foreground-on-accent-hover").withDefault(t=>Oa.getValueFor(t).evaluate(t).hover),za=An("foreground-on-accent-active").withDefault(t=>Oa.getValueFor(t).evaluate(t).active),Ha=An("foreground-on-accent-focus").withDefault(t=>Oa.getValueFor(t).evaluate(t).focus),Pa=zn("accent-foreground-recipe").withDefault({evaluate:(t,e)=>Vn(pa.getValueFor(t),e||Ia.getValueFor(t),9.5,br.getValueFor(t),vr.getValueFor(t),yr.getValueFor(t),xr.getValueFor(t))}),Ma=An("accent-foreground-rest").withDefault(t=>Pa.getValueFor(t).evaluate(t).rest),Ba=An("accent-foreground-hover").withDefault(t=>Pa.getValueFor(t).evaluate(t).hover),Na=An("accent-foreground-active").withDefault(t=>Pa.getValueFor(t).evaluate(t).active),ja=An("accent-foreground-focus").withDefault(t=>Pa.getValueFor(t).evaluate(t).focus),Ua=zn("accent-stroke-control-recipe").withDefault({evaluate:(t,e)=>Dn(da.getValueFor(t),e||Ia.getValueFor(t),-3,-3,-3,-3,10,1,void 0,!0)}),qa=An("accent-stroke-control-rest").withDefault(t=>Ua.getValueFor(t).evaluate(t,Va.getValueFor(t)).rest),_a=An("accent-stroke-control-hover").withDefault(t=>Ua.getValueFor(t).evaluate(t,Sa.getValueFor(t)).hover),Ga=An("accent-stroke-control-active").withDefault(t=>Ua.getValueFor(t).evaluate(t,Ra.getValueFor(t)).active),Wa=An("accent-stroke-control-focus").withDefault(t=>Ua.getValueFor(t).evaluate(t,Ea.getValueFor(t)).focus),Ka=zn("neutral-fill-recipe").withDefault({evaluate:(t,e)=>Rn(da.getValueFor(t),e||Ia.getValueFor(t),$r.getValueFor(t),wr.getValueFor(t),kr.getValueFor(t),Cr.getValueFor(t),void 0,2,3,1,2,void 0)}),Xa=An("neutral-fill-rest").withDefault(t=>Ka.getValueFor(t).evaluate(t).rest),Ya=An("neutral-fill-hover").withDefault(t=>Ka.getValueFor(t).evaluate(t).hover),Qa=An("neutral-fill-active").withDefault(t=>Ka.getValueFor(t).evaluate(t).active),Za=An("neutral-fill-focus").withDefault(t=>Ka.getValueFor(t).evaluate(t).focus),Ja=zn("neutral-fill-input-recipe").withDefault({evaluate:(t,e)=>Rn(da.getValueFor(t),e||Ia.getValueFor(t),Fr.getValueFor(t),Ir.getValueFor(t),Tr.getValueFor(t),Dr.getValueFor(t),void 0,2,3,1,0,void 0)}),tl=An("neutral-fill-input-rest").withDefault(t=>Ja.getValueFor(t).evaluate(t).rest),el=An("neutral-fill-input-hover").withDefault(t=>Ja.getValueFor(t).evaluate(t).hover),il=An("neutral-fill-input-active").withDefault(t=>Ja.getValueFor(t).evaluate(t).active),ol=An("neutral-fill-input-focus").withDefault(t=>Ja.getValueFor(t).evaluate(t).focus),sl=zn("neutral-fill-input-alt-recipe").withDefault({evaluate:(t,e)=>Rn(da.getValueFor(t),e||Ia.getValueFor(t),Vr.getValueFor(t),Sr.getValueFor(t),Rr.getValueFor(t),Er.getValueFor(t),1,Vr.getValueFor(t),Vr.getValueFor(t)-Sr.getValueFor(t),Vr.getValueFor(t)-Rr.getValueFor(t),Er.getValueFor(t),1)}),nl=An("neutral-fill-input-alt-rest").withDefault(t=>sl.getValueFor(t).evaluate(t).rest),rl=An("neutral-fill-input-alt-hover").withDefault(t=>sl.getValueFor(t).evaluate(t).hover),al=An("neutral-fill-input-alt-active").withDefault(t=>sl.getValueFor(t).evaluate(t).active),ll=An("neutral-fill-input-alt-focus").withDefault(t=>sl.getValueFor(t).evaluate(t).focus),cl=zn("neutral-fill-layer-recipe").withDefault({evaluate:(t,e)=>Sn(da.getValueFor(t),e||Ia.getValueFor(t),Or.getValueFor(t),Lr.getValueFor(t),Ar.getValueFor(t),Or.getValueFor(t),1)}),hl=An("neutral-fill-layer-rest").withDefault(t=>cl.getValueFor(t).evaluate(t).rest),dl=An("neutral-fill-layer-hover").withDefault(t=>cl.getValueFor(t).evaluate(t).hover),ul=An("neutral-fill-layer-active").withDefault(t=>cl.getValueFor(t).evaluate(t).active),pl=zn("neutral-fill-layer-alt-recipe").withDefault({evaluate:(t,e)=>Sn(da.getValueFor(t),e||Ia.getValueFor(t),zr.getValueFor(t),zr.getValueFor(t),zr.getValueFor(t),zr.getValueFor(t))}),gl=An("neutral-fill-layer-alt-rest").withDefault(t=>pl.getValueFor(t).evaluate(t).rest),fl=zn("neutral-fill-secondary-recipe").withDefault({evaluate:(t,e)=>Sn(da.getValueFor(t),e||Ia.getValueFor(t),Hr.getValueFor(t),Pr.getValueFor(t),Mr.getValueFor(t),Br.getValueFor(t))}),ml=An("neutral-fill-secondary-rest").withDefault(t=>fl.getValueFor(t).evaluate(t).rest),bl=An("neutral-fill-secondary-hover").withDefault(t=>fl.getValueFor(t).evaluate(t).hover),vl=An("neutral-fill-secondary-active").withDefault(t=>fl.getValueFor(t).evaluate(t).active),yl=An("neutral-fill-secondary-focus").withDefault(t=>fl.getValueFor(t).evaluate(t).focus),xl=zn("neutral-fill-stealth-recipe").withDefault({evaluate:(t,e)=>Sn(da.getValueFor(t),e||Ia.getValueFor(t),Nr.getValueFor(t),jr.getValueFor(t),Ur.getValueFor(t),qr.getValueFor(t))}),$l=An("neutral-fill-stealth-rest").withDefault(t=>xl.getValueFor(t).evaluate(t).rest),wl=An("neutral-fill-stealth-hover").withDefault(t=>xl.getValueFor(t).evaluate(t).hover),kl=An("neutral-fill-stealth-active").withDefault(t=>xl.getValueFor(t).evaluate(t).active),Cl=An("neutral-fill-stealth-focus").withDefault(t=>xl.getValueFor(t).evaluate(t).focus),Fl=zn("neutral-fill-strong-recipe").withDefault({evaluate:(t,e)=>Vn(da.getValueFor(t),e||Ia.getValueFor(t),4.5,_r.getValueFor(t),Gr.getValueFor(t),Wr.getValueFor(t),Kr.getValueFor(t))}),Il=An("neutral-fill-strong-rest").withDefault(t=>Fl.getValueFor(t).evaluate(t).rest),Tl=An("neutral-fill-strong-hover").withDefault(t=>Fl.getValueFor(t).evaluate(t).hover),Dl=An("neutral-fill-strong-active").withDefault(t=>Fl.getValueFor(t).evaluate(t).active),Vl=An("neutral-fill-strong-focus").withDefault(t=>Fl.getValueFor(t).evaluate(t).focus),Sl=zn("neutral-foreground-recipe").withDefault({evaluate:(t,e)=>Vn(da.getValueFor(t),e||Ia.getValueFor(t),16,0,-19,-30,0)}),Rl=An("neutral-foreground-rest").withDefault(t=>Sl.getValueFor(t).evaluate(t).rest),El=An("neutral-foreground-hover").withDefault(t=>Sl.getValueFor(t).evaluate(t).hover),Ol=An("neutral-foreground-active").withDefault(t=>Sl.getValueFor(t).evaluate(t).active),Ll=An("neutral-foreground-focus").withDefault(t=>Sl.getValueFor(t).evaluate(t).focus),Al=zn("neutral-foreground-hint-recipe").withDefault({evaluate:(t,e)=>function(t,e,i){return t.colorContrast(e,i)}(da.getValueFor(t),e||Ia.getValueFor(t),4.5)}),zl=An("neutral-foreground-hint").withDefault(t=>Al.getValueFor(t).evaluate(t)),Hl=zn("neutral-stroke-recipe").withDefault({evaluate:(t,e)=>Sn(da.getValueFor(t),e||Ia.getValueFor(t),Xr.getValueFor(t),Yr.getValueFor(t),Qr.getValueFor(t),Zr.getValueFor(t))}),Pl=An("neutral-stroke-rest").withDefault(t=>Hl.getValueFor(t).evaluate(t).rest),Ml=An("neutral-stroke-hover").withDefault(t=>Hl.getValueFor(t).evaluate(t).hover),Bl=An("neutral-stroke-active").withDefault(t=>Hl.getValueFor(t).evaluate(t).active),Nl=An("neutral-stroke-focus").withDefault(t=>Hl.getValueFor(t).evaluate(t).focus),jl=zn("neutral-stroke-control-recipe").withDefault({evaluate:(t,e)=>Dn(da.getValueFor(t),e||Ia.getValueFor(t),Jr.getValueFor(t),ta.getValueFor(t),ea.getValueFor(t),ia.getValueFor(t),5)}),Ul=An("neutral-stroke-control-rest").withDefault(t=>jl.getValueFor(t).evaluate(t).rest),ql=An("neutral-stroke-control-hover").withDefault(t=>jl.getValueFor(t).evaluate(t).hover),_l=An("neutral-stroke-control-active").withDefault(t=>jl.getValueFor(t).evaluate(t).active),Gl=An("neutral-stroke-control-focus").withDefault(t=>jl.getValueFor(t).evaluate(t).focus),Wl=zn("neutral-stroke-divider-recipe").withDefault({evaluate:(t,e)=>function(t,e,i){return t.get(t.closestIndexOf(e)+fn(e)*i)}(da.getValueFor(t),e||Ia.getValueFor(t),oa.getValueFor(t))}),Kl=An("neutral-stroke-divider-rest").withDefault(t=>Wl.getValueFor(t).evaluate(t)),Xl=zn("neutral-stroke-input-recipe").withDefault({evaluate:(t,e)=>function(t,e,i,o,s,n,r,a){const l=t.closestIndexOf(e),c=fn(e),h=l+c*i,d=h+c*(o-i),u=h+c*(s-i),p=h+c*(n-i),g=`calc(100% - ${a})`;function f(e,i){const o=t.get(e);if(i){const i=t.get(e+c*r),s=`linear-gradient(${o.toColorString()} ${g}, ${i.toColorString()} ${g}, ${i.toColorString()})`;return Fn.fromObject(o,s)}return o}return{rest:f(h,!0),hover:f(d,!0),active:f(u,!1),focus:f(p,!0)}}(da.getValueFor(t),e||Ia.getValueFor(t),Jr.getValueFor(t),ta.getValueFor(t),ea.getValueFor(t),ia.getValueFor(t),20,_n.getValueFor(t)+"px")}),Yl=An("neutral-stroke-input-rest").withDefault(t=>Xl.getValueFor(t).evaluate(t).rest),Ql=An("neutral-stroke-input-hover").withDefault(t=>Xl.getValueFor(t).evaluate(t).hover),Zl=An("neutral-stroke-input-active").withDefault(t=>Xl.getValueFor(t).evaluate(t).active),Jl=An("neutral-stroke-input-focus").withDefault(t=>Xl.getValueFor(t).evaluate(t).focus),tc=zn("neutral-stroke-layer-recipe").withDefault({evaluate:(t,e)=>Sn(da.getValueFor(t),e||Ia.getValueFor(t),sa.getValueFor(t),na.getValueFor(t),ra.getValueFor(t),sa.getValueFor(t))}),ec=An("neutral-stroke-layer-rest").withDefault(t=>tc.getValueFor(t).evaluate(t).rest),ic=An("neutral-stroke-layer-hover").withDefault(t=>tc.getValueFor(t).evaluate(t).hover),oc=An("neutral-stroke-layer-active").withDefault(t=>tc.getValueFor(t).evaluate(t).active),sc=zn("neutral-stroke-strong-recipe").withDefault({evaluate:(t,e)=>Vn(da.getValueFor(t),e||Ia.getValueFor(t),5.5,0,aa.getValueFor(t),la.getValueFor(t),ca.getValueFor(t))}),nc=An("neutral-stroke-strong-rest").withDefault(t=>sc.getValueFor(t).evaluate(t).rest),rc=An("neutral-stroke-strong-hover").withDefault(t=>sc.getValueFor(t).evaluate(t).hover),ac=An("neutral-stroke-strong-active").withDefault(t=>sc.getValueFor(t).evaluate(t).active),lc=An("neutral-stroke-strong-focus").withDefault(t=>sc.getValueFor(t).evaluate(t).focus),cc=zn("focus-stroke-outer-recipe").withDefault({evaluate:t=>(da.getValueFor(t),gn(Ia.getValueFor(t))?yn:xn)}),hc=An("focus-stroke-outer").withDefault(t=>cc.getValueFor(t).evaluate(t)),dc=zn("focus-stroke-inner-recipe").withDefault({evaluate:t=>{return pa.getValueFor(t),e=Ia.getValueFor(t),hc.getValueFor(t),gn(e)?xn:yn;var e}}),uc=An("focus-stroke-inner").withDefault(t=>dc.getValueFor(t).evaluate(t)),pc=zn("foreground-on-accent-large-recipe").withDefault({evaluate:t=>Cn(Va.getValueFor(t),Sa.getValueFor(t),Ra.getValueFor(t),Ea.getValueFor(t),Ta.large)}),gc=An("foreground-on-accent-rest-large").withDefault(t=>pc.getValueFor(t).evaluate(t).rest),fc=An("foreground-on-accent-hover-large").withDefault(t=>pc.getValueFor(t).evaluate(t,Sa.getValueFor(t)).hover),mc=An("foreground-on-accent-active-large").withDefault(t=>pc.getValueFor(t).evaluate(t,Ra.getValueFor(t)).active),bc=An("foreground-on-accent-focus-large").withDefault(t=>pc.getValueFor(t).evaluate(t,Ea.getValueFor(t)).focus),vc=An("neutral-fill-inverse-rest-delta").withDefault(0),yc=An("neutral-fill-inverse-hover-delta").withDefault(-3),xc=An("neutral-fill-inverse-active-delta").withDefault(7),$c=An("neutral-fill-inverse-focus-delta").withDefault(0);const wc=zn("neutral-fill-inverse-recipe").withDefault({evaluate:(t,e)=>function(t,e,i,o,s,n){const r=fn(e),a=t.closestIndexOf(t.colorContrast(e,14)),l=a+r*Math.abs(i-o);let c,h;return(1===r?i<o:r*i>r*o)?(c=a,h=l):(c=l,h=a),{rest:t.get(c),hover:t.get(h),active:t.get(c+r*s),focus:t.get(c+r*n)}}(da.getValueFor(t),e||Ia.getValueFor(t),vc.getValueFor(t),yc.getValueFor(t),xc.getValueFor(t),$c.getValueFor(t))}),kc=An("neutral-fill-inverse-rest").withDefault(t=>wc.getValueFor(t).evaluate(t).rest),Cc=An("neutral-fill-inverse-hover").withDefault(t=>wc.getValueFor(t).evaluate(t).hover),Fc=An("neutral-fill-inverse-active").withDefault(t=>wc.getValueFor(t).evaluate(t).active),Ic=An("neutral-fill-inverse-focus").withDefault(t=>wc.getValueFor(t).evaluate(t).focus),Tc=Un,Dc=qn,Vc=_n,Sc=Gn,Rc=vc,Ec=yc,Oc=xc,Lc=$c,Ac=Or,zc=_r,Hc=Gr,Pc=Wr,Mc=Kr,Bc=oa,Nc=ya,jc=$a,Uc=ka,qc=Fa,_c=La,Gc=gc,Wc=Kl,Kc=hl,Xc=kc,Yc=Cc,Qc=Fc,Zc=Ic,Jc=Il,th=Tl,eh=Dl,ih=Vl,oh=hc,sh=uc,nh=Pl,rh=Ml,ah=Bl,lh=Nl,ch=(t,e)=>Dt`
|
|
22
|
-
${
|
|
23
|
-
${
|
|
24
|
-
.button:${
|
|
21
|
+
var Eo=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],Ro=Eo.join(","),Ao="undefined"==typeof Element?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Lo=function(t){return"INPUT"===t.tagName},zo=function(t){return function(t){return Lo(t)&&"radio"===t.type}(t)&&!function(t){if(!t.name)return!0;var e,i=t.form||t.ownerDocument,o=function(t){return i.querySelectorAll('input[type="radio"][name="'+t+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)e=o(window.CSS.escape(t.name));else try{e=o(t.name)}catch(t){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",t.message),!1}var s=function(t,e){for(var i=0;i<t.length;i++)if(t[i].checked&&t[i].form===e)return t[i]}(e,t.form);return!s||s===t}(t)},Ho=function(t,e){return!(e.disabled||function(t){return Lo(t)&&"hidden"===t.type}(e)||function(t,e){if("hidden"===getComputedStyle(t).visibility)return!0;var i=Ao.call(t,"details>summary:first-of-type")?t.parentElement:t;if(Ao.call(i,"details:not([open]) *"))return!0;if(e&&"full"!==e){if("non-zero-area"===e){var o=t.getBoundingClientRect(),s=o.width,n=o.height;return 0===s&&0===n}}else for(;t;){if("none"===getComputedStyle(t).display)return!0;t=t.parentElement}return!1}(e,t.displayCheck)||function(t){return"DETAILS"===t.tagName&&Array.prototype.slice.apply(t.children).some((function(t){return"SUMMARY"===t.tagName}))}(e))},Po=function(t,e){return!(!Ho(t,e)||zo(e)||function(t){var e=parseInt(t.getAttribute("tabindex"),10);return isNaN(e)?function(t){return"true"===t.contentEditable}(t)?0:"AUDIO"!==t.nodeName&&"VIDEO"!==t.nodeName&&"DETAILS"!==t.nodeName||null!==t.getAttribute("tabindex")?t.tabIndex:0:e}(e)<0)},Mo=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return!1!==Ao.call(t,Ro)&&Po(e,t)},Bo=Eo.concat("iframe").join(","),No=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return!1!==Ao.call(t,Bo)&&Ho(e,t)};class jo extends je{constructor(){super(...arguments),this.modal=!0,this.hidden=!1,this.trapFocus=!0,this.trapFocusChanged=()=>{this.$fastController.isConnected&&this.updateTrapFocus()},this.isTrappingFocus=!1,this.handleDocumentKeydown=t=>{if(!t.defaultPrevented&&!this.hidden)switch(t.key){case"Escape":this.dismiss(),t.preventDefault();break;case"Tab":this.handleTabKeyDown(t)}},this.handleDocumentFocus=t=>{!t.defaultPrevented&&this.shouldForceFocus(t.target)&&(this.focusFirstElement(),t.preventDefault())},this.handleTabKeyDown=t=>{if(!this.trapFocus||this.hidden)return;const e=this.getTabQueueBounds();return 0!==e.length?1===e.length?(e[0].focus(),void t.preventDefault()):void(t.shiftKey&&t.target===e[0]?(e[e.length-1].focus(),t.preventDefault()):t.shiftKey||t.target!==e[e.length-1]||(e[0].focus(),t.preventDefault())):void 0},this.getTabQueueBounds=()=>jo.reduceTabbableItems([],this),this.focusFirstElement=()=>{const t=this.getTabQueueBounds();t.length>0?t[0].focus():this.dialog instanceof HTMLElement&&this.dialog.focus()},this.shouldForceFocus=t=>this.isTrappingFocus&&!this.contains(t),this.shouldTrapFocus=()=>this.trapFocus&&!this.hidden,this.updateTrapFocus=t=>{const e=void 0===t?this.shouldTrapFocus():t;e&&!this.isTrappingFocus?(this.isTrappingFocus=!0,document.addEventListener("focusin",this.handleDocumentFocus),d.queueUpdate(()=>{this.shouldForceFocus(document.activeElement)&&this.focusFirstElement()})):!e&&this.isTrappingFocus&&(this.isTrappingFocus=!1,document.removeEventListener("focusin",this.handleDocumentFocus))}}dismiss(){this.$emit("dismiss")}show(){this.hidden=!1}hide(){this.hidden=!0}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.handleDocumentKeydown),this.notifier=C.getNotifier(this),this.notifier.subscribe(this,"hidden"),this.updateTrapFocus()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.handleDocumentKeydown),this.updateTrapFocus(!1),this.notifier.unsubscribe(this,"hidden")}handleChange(t,e){switch(e){case"hidden":this.updateTrapFocus()}}static reduceTabbableItems(t,e){return"-1"===e.getAttribute("tabindex")?t:Mo(e)||jo.isFocusableFastElement(e)&&jo.hasTabbableShadow(e)?(t.push(e),t):e.childElementCount?t.concat(Array.from(e.children).reduce(jo.reduceTabbableItems,[])):t}static isFocusableFastElement(t){var e,i;return!!(null===(i=null===(e=t.$fastController)||void 0===e?void 0:e.definition.shadowOptions)||void 0===i?void 0:i.delegatesFocus)}static hasTabbableShadow(t){var e,i;return Array.from(null!==(i=null===(e=t.shadowRoot)||void 0===e?void 0:e.querySelectorAll("*"))&&void 0!==i?i:[]).some(t=>Mo(t))}}ne([ft({mode:"boolean"})],jo.prototype,"modal",void 0),ne([ft({mode:"boolean"})],jo.prototype,"hidden",void 0),ne([ft({attribute:"trap-focus",mode:"boolean"})],jo.prototype,"trapFocus",void 0),ne([ft({attribute:"aria-describedby"})],jo.prototype,"ariaDescribedby",void 0),ne([ft({attribute:"aria-labelledby"})],jo.prototype,"ariaLabelledby",void 0),ne([ft({attribute:"aria-label"})],jo.prototype,"ariaLabel",void 0);var Uo,qo;!function(t){t.separator="separator",t.presentation="presentation"}(Uo||(Uo={}));class _o extends je{constructor(){super(...arguments),this.role=Uo.separator,this.orientation=We.horizontal}}ne([ft],_o.prototype,"role",void 0),ne([ft],_o.prototype,"orientation",void 0),function(t){t.next="next",t.previous="previous"}(qo||(qo={}));class Go extends je{constructor(){super(...arguments),this.hiddenFromAT=!0,this.direction=qo.next}keyupHandler(t){if(!this.hiddenFromAT){const e=t.key;"Enter"===e&&this.$emit("click",t),"Escape"===e&&this.blur()}}}ne([ft({mode:"boolean"})],Go.prototype,"disabled",void 0),ne([ft({attribute:"aria-hidden",converter:ut})],Go.prototype,"hiddenFromAT",void 0),ne([ft],Go.prototype,"direction",void 0);var Wo;!function(t){t.menuitem="menuitem",t.menuitemcheckbox="menuitemcheckbox",t.menuitemradio="menuitemradio"}(Wo||(Wo={}));const Ko={[Wo.menuitem]:"menuitem",[Wo.menuitemcheckbox]:"menuitemcheckbox",[Wo.menuitemradio]:"menuitemradio"};class Xo extends je{constructor(){super(...arguments),this.role=Wo.menuitem,this.hasSubmenu=!1,this.currentDirection=Ze.ltr,this.focusSubmenuOnLoad=!1,this.handleMenuItemKeyDown=t=>{if(t.defaultPrevented)return!1;switch(t.key){case"Enter":case" ":return this.invoke(),!1;case"ArrowRight":return this.expandAndFocus(),!1;case"ArrowLeft":if(this.expanded)return this.expanded=!1,this.focus(),!1}return!0},this.handleMenuItemClick=t=>(t.defaultPrevented||this.disabled||this.invoke(),!1),this.submenuLoaded=()=>{this.focusSubmenuOnLoad&&(this.focusSubmenuOnLoad=!1,this.hasSubmenu&&(this.submenu.focus(),this.setAttribute("tabindex","-1")))},this.handleMouseOver=t=>(this.disabled||!this.hasSubmenu||this.expanded||(this.expanded=!0),!1),this.handleMouseOut=t=>(!this.expanded||this.contains(document.activeElement)||(this.expanded=!1),!1),this.expandAndFocus=()=>{this.hasSubmenu&&(this.focusSubmenuOnLoad=!0,this.expanded=!0)},this.invoke=()=>{if(!this.disabled)switch(this.role){case Wo.menuitemcheckbox:this.checked=!this.checked;break;case Wo.menuitem:this.updateSubmenu(),this.hasSubmenu?this.expandAndFocus():this.$emit("change");break;case Wo.menuitemradio:this.checked||(this.checked=!0)}},this.updateSubmenu=()=>{this.submenu=this.domChildren().find(t=>"menu"===t.getAttribute("role")),this.hasSubmenu=void 0!==this.submenu}}expandedChanged(t){if(this.$fastController.isConnected){if(void 0===this.submenu)return;!1===this.expanded?this.submenu.collapseExpandedItem():this.currentDirection=di(this),this.$emit("expanded-change",this,{bubbles:!1})}}checkedChanged(t,e){this.$fastController.isConnected&&this.$emit("change")}connectedCallback(){super.connectedCallback(),d.queueUpdate(()=>{this.updateSubmenu()}),this.startColumnCount||(this.startColumnCount=1),this.observer=new MutationObserver(this.updateSubmenu)}disconnectedCallback(){super.disconnectedCallback(),this.submenu=void 0,void 0!==this.observer&&(this.observer.disconnect(),this.observer=void 0)}domChildren(){return Array.from(this.children)}}ne([ft({mode:"boolean"})],Xo.prototype,"disabled",void 0),ne([ft({mode:"boolean"})],Xo.prototype,"expanded",void 0),ne([T],Xo.prototype,"startColumnCount",void 0),ne([ft],Xo.prototype,"role",void 0),ne([ft({mode:"boolean"})],Xo.prototype,"checked",void 0),ne([T],Xo.prototype,"submenuRegion",void 0),ne([T],Xo.prototype,"hasSubmenu",void 0),ne([T],Xo.prototype,"currentDirection",void 0),ne([T],Xo.prototype,"submenu",void 0),_e(Xo,te);class Yo extends je{constructor(){super(...arguments),this.expandedItem=null,this.focusIndex=-1,this.isNestedMenu=()=>null!==this.parentElement&&Ke(this.parentElement)&&"menuitem"===this.parentElement.getAttribute("role"),this.handleFocusOut=t=>{if(!this.contains(t.relatedTarget)&&void 0!==this.menuItems){this.collapseExpandedItem();const t=this.menuItems.findIndex(this.isFocusableElement);this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.menuItems[t].setAttribute("tabindex","0"),this.focusIndex=t}},this.handleItemFocus=t=>{const e=t.target;void 0!==this.menuItems&&e!==this.menuItems[this.focusIndex]&&(this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=this.menuItems.indexOf(e),e.setAttribute("tabindex","0"))},this.handleExpandedChanged=t=>{if(t.defaultPrevented||null===t.target||void 0===this.menuItems||this.menuItems.indexOf(t.target)<0)return;t.preventDefault();const e=t.target;null===this.expandedItem||e!==this.expandedItem||!1!==e.expanded?e.expanded&&(null!==this.expandedItem&&this.expandedItem!==e&&(this.expandedItem.expanded=!1),this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.expandedItem=e,this.focusIndex=this.menuItems.indexOf(e),e.setAttribute("tabindex","0")):this.expandedItem=null},this.removeItemListeners=()=>{void 0!==this.menuItems&&this.menuItems.forEach(t=>{t.removeEventListener("expanded-change",this.handleExpandedChanged),t.removeEventListener("focus",this.handleItemFocus)})},this.setItems=()=>{const t=this.domChildren();this.removeItemListeners(),this.menuItems=t;const e=this.menuItems.filter(this.isMenuItemElement);e.length&&(this.focusIndex=0);const i=e.reduce((t,e)=>{const i=(o=e)instanceof Xo?o.role!==Wo.menuitem&&null===o.querySelector("[slot=start]")||o.role===Wo.menuitem&&null!==o.querySelector("[slot=start]")?1:o.role!==Wo.menuitem&&null!==o.querySelector("[slot=start]")?2:0:1;var o;return t>i?t:i},0);e.forEach((t,e)=>{t.setAttribute("tabindex",0===e?"0":"-1"),t.addEventListener("expanded-change",this.handleExpandedChanged),t.addEventListener("focus",this.handleItemFocus),t instanceof Xo&&(t.startColumnCount=i)})},this.changeHandler=t=>{if(void 0===this.menuItems)return;const e=t.target,i=this.menuItems.indexOf(e);if(-1!==i&&"menuitemradio"===e.role&&!0===e.checked){for(let t=i-1;t>=0;--t){const e=this.menuItems[t],i=e.getAttribute("role");if(i===Wo.menuitemradio&&(e.checked=!1),"separator"===i)break}const t=this.menuItems.length-1;for(let e=i+1;e<=t;++e){const t=this.menuItems[e],i=t.getAttribute("role");if(i===Wo.menuitemradio&&(t.checked=!1),"separator"===i)break}}},this.isMenuItemElement=t=>Ke(t)&&Yo.focusableElementRoles.hasOwnProperty(t.getAttribute("role")),this.isFocusableElement=t=>this.isMenuItemElement(t)}itemsChanged(t,e){this.$fastController.isConnected&&void 0!==this.menuItems&&this.setItems()}connectedCallback(){super.connectedCallback(),d.queueUpdate(()=>{this.setItems()}),this.addEventListener("change",this.changeHandler)}disconnectedCallback(){super.disconnectedCallback(),this.removeItemListeners(),this.menuItems=void 0,this.removeEventListener("change",this.changeHandler)}focus(){this.setFocus(0,1)}collapseExpandedItem(){null!==this.expandedItem&&(this.expandedItem.expanded=!1,this.expandedItem=null)}handleMenuKeyDown(t){if(!t.defaultPrevented&&void 0!==this.menuItems)switch(t.key){case"ArrowDown":return void this.setFocus(this.focusIndex+1,1);case"ArrowUp":return void this.setFocus(this.focusIndex-1,-1);case"End":return void this.setFocus(this.menuItems.length-1,-1);case"Home":return void this.setFocus(0,1);default:return!0}}domChildren(){return Array.from(this.children)}setFocus(t,e){if(void 0!==this.menuItems)for(;t>=0&&t<this.menuItems.length;){const i=this.menuItems[t];if(this.isFocusableElement(i)){this.focusIndex>-1&&this.menuItems.length>=this.focusIndex-1&&this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=t,i.setAttribute("tabindex","0"),i.focus();break}t+=e}}}Yo.focusableElementRoles=Ko,ne([T],Yo.prototype,"items",void 0);class Qo extends je{}class Zo extends(vi(Qo)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}var Jo;!function(t){t.email="email",t.password="password",t.tel="tel",t.text="text",t.url="url"}(Jo||(Jo={}));class ts extends Zo{constructor(){super(...arguments),this.type=Jo.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&&d.queueUpdate(()=>{this.focus()})}handleTextInput(){this.value=this.control.value}handleChange(){this.$emit("change")}}ne([ft({attribute:"readonly",mode:"boolean"})],ts.prototype,"readOnly",void 0),ne([ft({mode:"boolean"})],ts.prototype,"autofocus",void 0),ne([ft],ts.prototype,"placeholder",void 0),ne([ft],ts.prototype,"type",void 0),ne([ft],ts.prototype,"list",void 0),ne([ft({converter:pt})],ts.prototype,"maxlength",void 0),ne([ft({converter:pt})],ts.prototype,"minlength",void 0),ne([ft],ts.prototype,"pattern",void 0),ne([ft({converter:pt})],ts.prototype,"size",void 0),ne([ft({mode:"boolean"})],ts.prototype,"spellcheck",void 0),ne([T],ts.prototype,"defaultSlottedNodes",void 0);class es{}_e(es,li),_e(ts,te,es);class is extends je{}class os extends(vi(is)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class ss extends os{constructor(){super(...arguments),this.hideStep=!1,this.step=1,this.isUserInput=!1}maxChanged(t,e){var i;this.max=Math.max(e,null!==(i=this.min)&&void 0!==i?i:e);const o=Math.min(this.min,this.max);void 0!==this.min&&this.min!==o&&(this.min=o),this.value=this.getValidValue(this.value)}minChanged(t,e){var i;this.min=Math.min(e,null!==(i=this.max)&&void 0!==i?i:e);const o=Math.max(this.min,this.max);void 0!==this.max&&this.max!==o&&(this.max=o),this.value=this.getValidValue(this.value)}get valueAsNumber(){return parseFloat(super.value)}set valueAsNumber(t){this.value=t.toString()}valueChanged(t,e){this.value=this.getValidValue(e),e===this.value&&(this.control&&!this.isUserInput&&(this.control.value=this.value),super.valueChanged(t,this.value),void 0===t||this.isUserInput||(this.$emit("input"),this.$emit("change")),this.isUserInput=!1)}getValidValue(t){var e,i;let o=parseFloat(parseFloat(t).toPrecision(12));return isNaN(o)?o="":(o=Math.min(o,null!==(e=this.max)&&void 0!==e?e:o),o=Math.max(o,null!==(i=this.min)&&void 0!==i?i:o).toString()),o}stepUp(){const t=parseFloat(this.value),e=isNaN(t)?this.min>0?this.min:this.max<0?this.max:this.min?0:this.step:t+this.step;this.value=e.toString()}stepDown(){const t=parseFloat(this.value),e=isNaN(t)?this.min>0?this.min:this.max<0?this.max:this.min?0:0-this.step:t-this.step;this.value=e.toString()}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute("type","number"),this.validate(),this.control.value=this.value,this.autofocus&&d.queueUpdate(()=>{this.focus()})}handleTextInput(){this.control.value=this.control.value.replace(/[^0-9\-+e.]/g,""),this.isUserInput=!0,this.value=this.control.value}handleChange(){this.$emit("change")}handleKeyDown(t){switch(t.key){case"ArrowUp":return this.stepUp(),!1;case"ArrowDown":return this.stepDown(),!1}return!0}handleBlur(){this.control.value=this.value}}ne([ft({attribute:"readonly",mode:"boolean"})],ss.prototype,"readOnly",void 0),ne([ft({mode:"boolean"})],ss.prototype,"autofocus",void 0),ne([ft({attribute:"hide-step",mode:"boolean"})],ss.prototype,"hideStep",void 0),ne([ft],ss.prototype,"placeholder",void 0),ne([ft],ss.prototype,"list",void 0),ne([ft({converter:pt})],ss.prototype,"maxlength",void 0),ne([ft({converter:pt})],ss.prototype,"minlength",void 0),ne([ft({converter:pt})],ss.prototype,"size",void 0),ne([ft({converter:pt})],ss.prototype,"step",void 0),ne([ft({converter:pt})],ss.prototype,"max",void 0),ne([ft({converter:pt})],ss.prototype,"min",void 0),ne([T],ss.prototype,"defaultSlottedNodes",void 0),_e(ss,te,es);class ns extends je{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 t="number"==typeof this.min?this.min:0,e="number"==typeof this.max?this.max:100,i="number"==typeof this.value?this.value:0,o=e-t;this.percentComplete=0===o?0:Math.fround((i-t)/o*100)}}ne([ft({converter:pt})],ns.prototype,"value",void 0),ne([ft({converter:pt})],ns.prototype,"min",void 0),ne([ft({converter:pt})],ns.prototype,"max",void 0),ne([ft({mode:"boolean"})],ns.prototype,"paused",void 0),ne([T],ns.prototype,"percentComplete",void 0);class rs extends je{constructor(){super(...arguments),this.orientation=We.horizontal,this.radioChangeHandler=t=>{const e=t.target;e.checked&&(this.slottedRadioButtons.forEach(t=>{t!==e&&(t.checked=!1,this.isInsideFoundationToolbar||t.setAttribute("tabindex","-1"))}),this.selectedRadio=e,this.value=e.value,e.setAttribute("tabindex","0"),this.focusedRadio=e),t.stopPropagation()},this.moveToRadioByIndex=(t,e)=>{const i=t[e];this.isInsideToolbar||(i.setAttribute("tabindex","0"),i.readOnly?this.slottedRadioButtons.forEach(t=>{t!==i&&t.setAttribute("tabindex","-1")}):(i.checked=!0,this.selectedRadio=i)),this.focusedRadio=i,i.focus()},this.moveRightOffGroup=()=>{var t;null===(t=this.nextElementSibling)||void 0===t||t.focus()},this.moveLeftOffGroup=()=>{var t;null===(t=this.previousElementSibling)||void 0===t||t.focus()},this.focusOutHandler=t=>{const e=this.slottedRadioButtons,i=t.target,o=null!==i?e.indexOf(i):0,s=this.focusedRadio?e.indexOf(this.focusedRadio):-1;return(0===s&&o===s||s===e.length-1&&s===o)&&(this.selectedRadio?(this.focusedRadio=this.selectedRadio,this.isInsideFoundationToolbar||(this.selectedRadio.setAttribute("tabindex","0"),e.forEach(t=>{t!==this.selectedRadio&&t.setAttribute("tabindex","-1")}))):(this.focusedRadio=e[0],this.focusedRadio.setAttribute("tabindex","0"),e.forEach(t=>{t!==this.focusedRadio&&t.setAttribute("tabindex","-1")}))),!0},this.clickHandler=t=>{const e=t.target;if(e){const t=this.slottedRadioButtons;e.checked||0===t.indexOf(e)?(e.setAttribute("tabindex","0"),this.selectedRadio=e):(e.setAttribute("tabindex","-1"),this.selectedRadio=null),this.focusedRadio=e}t.preventDefault()},this.shouldMoveOffGroupToTheRight=(t,e,i)=>t===e.length&&this.isInsideToolbar&&"ArrowRight"===i,this.shouldMoveOffGroupToTheLeft=(t,e)=>(this.focusedRadio?t.indexOf(this.focusedRadio)-1:0)<0&&this.isInsideToolbar&&"ArrowLeft"===e,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=t=>{const e=this.slottedRadioButtons;let i=0;if(i=this.focusedRadio?e.indexOf(this.focusedRadio)+1:1,this.shouldMoveOffGroupToTheRight(i,e,t.key))this.moveRightOffGroup();else for(i===e.length&&(i=0);i<e.length&&e.length>1;){if(!e[i].disabled){this.moveToRadioByIndex(e,i);break}if(this.focusedRadio&&i===e.indexOf(this.focusedRadio))break;if(i+1>=e.length){if(this.isInsideToolbar)break;i=0}else i+=1}},this.moveLeft=t=>{const e=this.slottedRadioButtons;let i=0;if(i=this.focusedRadio?e.indexOf(this.focusedRadio)-1:0,i=i<0?e.length-1:i,this.shouldMoveOffGroupToTheLeft(e,t.key))this.moveLeftOffGroup();else for(;i>=0&&e.length>1;){if(!e[i].disabled){this.moveToRadioByIndex(e,i);break}if(this.focusedRadio&&i===e.indexOf(this.focusedRadio))break;i-1<0?i=e.length-1:i-=1}},this.keydownHandler=t=>{const e=t.key;if(e in Qe&&this.isInsideFoundationToolbar)return!0;switch(e){case"Enter":this.checkFocusedRadio();break;case"ArrowRight":case"ArrowDown":this.direction===Ze.ltr?this.moveRight(t):this.moveLeft(t);break;case"ArrowLeft":case"ArrowUp":this.direction===Ze.ltr?this.moveLeft(t):this.moveRight(t);break;default:return!0}}}readOnlyChanged(){void 0!==this.slottedRadioButtons&&this.slottedRadioButtons.forEach(t=>{this.readOnly?t.readOnly=!0:t.readOnly=!1})}disabledChanged(){void 0!==this.slottedRadioButtons&&this.slottedRadioButtons.forEach(t=>{this.disabled?t.disabled=!0:t.disabled=!1})}nameChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach(t=>{t.setAttribute("name",this.name)})}valueChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach(t=>{t.getAttribute("value")===this.value&&(t.checked=!0,this.selectedRadio=t)}),this.$emit("change")}slottedRadioButtonsChanged(t,e){this.slottedRadioButtons&&this.slottedRadioButtons.length>0&&this.setupRadioButtons()}get parentToolbar(){return this.closest('[role="toolbar"]')}get isInsideToolbar(){var t;return null!==(t=this.parentToolbar)&&void 0!==t&&t}get isInsideFoundationToolbar(){var t;return!!(null===(t=this.parentToolbar)||void 0===t?void 0:t.$fastController)}connectedCallback(){super.connectedCallback(),this.direction=di(this),this.setupRadioButtons()}disconnectedCallback(){this.slottedRadioButtons.forEach(t=>{t.removeEventListener("change",this.radioChangeHandler)})}setupRadioButtons(){const t=this.slottedRadioButtons.filter(t=>t.hasAttribute("checked")),e=t?t.length:0;if(e>1){t[e-1].checked=!0}let i=!1;if(this.slottedRadioButtons.forEach(t=>{void 0!==this.name&&t.setAttribute("name",this.name),this.disabled&&(t.disabled=!0),this.readOnly&&(t.readOnly=!0),this.value&&this.value===t.value?(this.selectedRadio=t,this.focusedRadio=t,t.checked=!0,t.setAttribute("tabindex","0"),i=!0):(this.isInsideFoundationToolbar||t.setAttribute("tabindex","-1"),t.checked=!1),t.addEventListener("change",this.radioChangeHandler)}),void 0===this.value&&this.slottedRadioButtons.length>0){const t=this.slottedRadioButtons.filter(t=>t.hasAttribute("checked")),e=null!==t?t.length:0;if(e>0&&!i){const i=t[e-1];i.checked=!0,this.focusedRadio=i,i.setAttribute("tabindex","0")}else this.slottedRadioButtons[0].setAttribute("tabindex","0"),this.focusedRadio=this.slottedRadioButtons[0]}}}ne([ft({attribute:"readonly",mode:"boolean"})],rs.prototype,"readOnly",void 0),ne([ft({attribute:"disabled",mode:"boolean"})],rs.prototype,"disabled",void 0),ne([ft],rs.prototype,"name",void 0),ne([ft],rs.prototype,"value",void 0),ne([ft],rs.prototype,"orientation",void 0),ne([T],rs.prototype,"childItems",void 0),ne([T],rs.prototype,"slottedRadioButtons",void 0);class as extends je{}class ls extends(yi(as)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class cs extends ls{constructor(){super(),this.initialValue="on",this.keypressHandler=t=>{switch(t.key){case" ":return void(this.checked||this.readOnly||(this.checked=!0))}return!0},this.proxy.setAttribute("type","radio")}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}defaultCheckedChanged(){var t;this.$fastController.isConnected&&!this.dirtyChecked&&(this.isInsideRadioGroup()||(this.checked=null!==(t=this.defaultChecked)&&void 0!==t&&t,this.dirtyChecked=!1))}connectedCallback(){var t,e;super.connectedCallback(),this.validate(),"radiogroup"!==(null===(t=this.parentElement)||void 0===t?void 0:t.getAttribute("role"))&&null===this.getAttribute("tabindex")&&(this.disabled||this.setAttribute("tabindex","0")),this.checkedAttribute&&(this.dirtyChecked||this.isInsideRadioGroup()||(this.checked=null!==(e=this.defaultChecked)&&void 0!==e&&e,this.dirtyChecked=!1))}isInsideRadioGroup(){return null!==this.closest("[role=radiogroup]")}clickHandler(t){this.disabled||this.readOnly||this.checked||(this.checked=!0)}}ne([ft({attribute:"readonly",mode:"boolean"})],cs.prototype,"readOnly",void 0),ne([T],cs.prototype,"name",void 0),ne([T],cs.prototype,"defaultSlottedNodes",void 0);class hs extends je{constructor(){super(...arguments),this.framesPerSecond=60,this.updatingItems=!1,this.speed=600,this.easing="ease-in-out",this.flippersHiddenFromAT=!1,this.scrolling=!1,this.resizeDetector=null}get frameTime(){return 1e3/this.framesPerSecond}scrollingChanged(t,e){if(this.scrollContainer){const t=1==this.scrolling?"scrollstart":"scrollend";this.$emit(t,this.scrollContainer.scrollLeft)}}get isRtl(){return this.scrollItems.length>1&&this.scrollItems[0].offsetLeft>this.scrollItems[1].offsetLeft}connectedCallback(){super.connectedCallback(),this.initializeResizeDetector()}disconnectedCallback(){this.disconnectResizeDetector(),super.disconnectedCallback()}scrollItemsChanged(t,e){e&&!this.updatingItems&&d.queueUpdate(()=>this.setStops())}disconnectResizeDetector(){this.resizeDetector&&(this.resizeDetector.disconnect(),this.resizeDetector=null)}initializeResizeDetector(){this.disconnectResizeDetector(),this.resizeDetector=new window.ResizeObserver(this.resized.bind(this)),this.resizeDetector.observe(this)}updateScrollStops(){this.updatingItems=!0;const t=this.scrollItems.reduce((t,e)=>e instanceof HTMLSlotElement?t.concat(e.assignedElements()):(t.push(e),t),[]);this.scrollItems=t,this.updatingItems=!1}setStops(){this.updateScrollStops(),this.width=this.offsetWidth;let t=0,e=this.scrollItems.map(({offsetLeft:e,offsetWidth:i},o)=>{const s=e+i;return this.isRtl?-s:(t=s,0===o?0:e)}).concat(t);e=this.fixScrollMisalign(e),e.sort((t,e)=>Math.abs(t)-Math.abs(e)),this.scrollStops=e,this.setFlippers()}fixScrollMisalign(t){if(this.isRtl&&t.some(t=>t>0)){t.sort((t,e)=>e-t);const e=t[0];t=t.map(t=>t-e)}return t}setFlippers(){var t,e;const i=this.scrollContainer.scrollLeft;if(null===(t=this.previousFlipperContainer)||void 0===t||t.classList.toggle("disabled",0===i),this.scrollStops){const t=Math.abs(this.scrollStops[this.scrollStops.length-1]);null===(e=this.nextFlipperContainer)||void 0===e||e.classList.toggle("disabled",Math.abs(i)+this.width>=t)}}keyupHandler(t){switch(t.key){case"ArrowLeft":this.scrollToPrevious();break;case"ArrowRight":this.scrollToNext()}}scrollToPrevious(){const t=this.scrollContainer.scrollLeft,e=this.scrollStops.findIndex((e,i)=>e<=t&&(this.isRtl||i===this.scrollStops.length-1||this.scrollStops[i+1]>t)),i=Math.abs(this.scrollStops[e+1]);let o=this.scrollStops.findIndex(t=>Math.abs(t)+this.width>i);(o>e||-1===o)&&(o=e>0?e-1:0),this.scrollToPosition(this.scrollStops[o],t)}scrollToNext(){const t=this.scrollContainer.scrollLeft,e=this.scrollStops.findIndex(e=>Math.abs(e)>=Math.abs(t)),i=this.scrollStops.findIndex(e=>Math.abs(t)+this.width<=Math.abs(e));let o=e;i>e+2?o=i-2:e<this.scrollStops.length-2&&(o=e+1),this.scrollToPosition(this.scrollStops[o],t)}scrollToPosition(t,e=this.scrollContainer.scrollLeft){var i;if(this.scrolling)return;this.scrolling=!0;const o=null!==(i=this.duration)&&void 0!==i?i:Math.abs(t-e)/this.speed+"s";this.content.style.setProperty("transition-duration",o);const s=parseFloat(getComputedStyle(this.content).getPropertyValue("transition-duration")),n=e=>{e&&e.target!==e.currentTarget||(this.content.style.setProperty("transition-duration","0s"),this.content.style.removeProperty("transform"),this.scrollContainer.style.setProperty("scroll-behavior","auto"),this.scrollContainer.scrollLeft=t,this.setFlippers(),this.content.removeEventListener("transitionend",n),this.scrolling=!1)};if(0===s)return void n();this.content.addEventListener("transitionend",n);const r=this.scrollContainer.scrollWidth-this.scrollContainer.clientWidth;let a=this.scrollContainer.scrollLeft-Math.min(t,r);this.isRtl&&(a=this.scrollContainer.scrollLeft+Math.min(Math.abs(t),r)),this.content.style.setProperty("transition-property","transform"),this.content.style.setProperty("transition-timing-function",this.easing),this.content.style.setProperty("transform",`translateX(${a}px)`)}resized(){this.resizeTimeout&&(this.resizeTimeout=clearTimeout(this.resizeTimeout)),this.resizeTimeout=setTimeout(()=>{this.width=this.offsetWidth,this.setFlippers()},this.frameTime)}scrolled(){this.scrollTimeout&&(this.scrollTimeout=clearTimeout(this.scrollTimeout)),this.scrollTimeout=setTimeout(()=>{this.setFlippers()},this.frameTime)}}ne([ft({converter:pt})],hs.prototype,"speed",void 0),ne([ft],hs.prototype,"duration",void 0),ne([ft],hs.prototype,"easing",void 0),ne([ft({attribute:"flippers-hidden-from-at",converter:ut})],hs.prototype,"flippersHiddenFromAT",void 0),ne([T],hs.prototype,"scrolling",void 0),ne([T],hs.prototype,"scrollItems",void 0),ne([ft({attribute:"view"})],hs.prototype,"view",void 0);class ds extends je{}class us extends(vi(ds)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class ps extends us{readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly,this.validate())}autofocusChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autofocus=this.autofocus,this.validate())}placeholderChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.placeholder=this.placeholder)}listChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.setAttribute("list",this.list),this.validate())}maxlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.maxLength=this.maxlength,this.validate())}minlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.minLength=this.minlength,this.validate())}patternChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.pattern=this.pattern,this.validate())}sizeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.size=this.size)}spellcheckChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.spellcheck=this.spellcheck)}connectedCallback(){super.connectedCallback(),this.validate(),this.autofocus&&d.queueUpdate(()=>{this.focus()})}handleTextInput(){this.value=this.control.value}handleClearInput(){this.value="",this.control.focus()}handleChange(){this.$emit("change")}}ne([ft({attribute:"readonly",mode:"boolean"})],ps.prototype,"readOnly",void 0),ne([ft({mode:"boolean"})],ps.prototype,"autofocus",void 0),ne([ft],ps.prototype,"placeholder",void 0),ne([ft],ps.prototype,"list",void 0),ne([ft({converter:pt})],ps.prototype,"maxlength",void 0),ne([ft({converter:pt})],ps.prototype,"minlength",void 0),ne([ft],ps.prototype,"pattern",void 0),ne([ft({converter:pt})],ps.prototype,"size",void 0),ne([ft({mode:"boolean"})],ps.prototype,"spellcheck",void 0),ne([T],ps.prototype,"defaultSlottedNodes",void 0);class gs{}_e(gs,li),_e(ps,te,gs);class fs extends qi{}class ms extends(vi(fs)){constructor(){super(...arguments),this.proxy=document.createElement("select")}}class bs extends ms{constructor(){super(...arguments),this.open=!1,this.forcedPosition=!1,this.position=Wi.below,this.listboxId=oi("listbox-"),this.maxHeight=0,this.displayValue=""}openChanged(){if(this.open)return this.ariaControls=this.listboxId,this.ariaExpanded="true",this.setPositioning(),this.focusAndScrollOptionIntoView(),this.indexWhenOpened=this.selectedIndex,void d.queueUpdate(()=>this.focus());this.ariaControls="",this.ariaExpanded="false"}get value(){return C.track(this,"value"),this._value}set value(t){var e;const i=""+this._value;if(null===(e=this.options)||void 0===e?void 0:e.length){const e=this.options.findIndex(e=>e.value===t),i=this.options[this.selectedIndex],o=this.options[e],s=i?i.value:null,n=o?o.value:null;-1!==e&&s===n||(t="",this.selectedIndex=e),this.firstSelectedOption&&(t=this.firstSelectedOption.value)}i!==t&&(this._value=t,super.valueChanged(i,t),C.notify(this,"value"))}updateValue(t){this.$fastController.isConnected&&(this.value=this.firstSelectedOption?this.firstSelectedOption.value:"",this.displayValue=this.firstSelectedOption?this.firstSelectedOption.textContent||this.firstSelectedOption.value:this.value),t&&(this.$emit("input"),this.$emit("change",this,{bubbles:!0,composed:void 0}))}selectedIndexChanged(t,e){super.selectedIndexChanged(t,e),this.updateValue()}positionChanged(){this.positionAttribute=this.position,this.setPositioning()}setPositioning(){const t=this.getBoundingClientRect(),e=window.innerHeight-t.bottom;this.position=this.forcedPosition?this.positionAttribute:t.top>e?Wi.above:Wi.below,this.positionAttribute=this.forcedPosition?this.positionAttribute:this.position,this.maxHeight=this.position===Wi.above?~~t.top:~~e}maxHeightChanged(){this.listbox&&this.listbox.style.setProperty("--max-height",this.maxHeight+"px")}disabledChanged(t,e){super.disabledChanged&&super.disabledChanged(t,e),this.ariaDisabled=this.disabled?"true":"false"}formResetCallback(){this.setProxyOptions(),super.setDefaultSelectedOption(),this.value=this.firstSelectedOption.value}clickHandler(t){if(!this.disabled){if(this.open){const e=t.target.closest("option,[role=option]");if(e&&e.disabled)return}return super.clickHandler(t),this.open=!this.open,this.open||this.indexWhenOpened===this.selectedIndex||this.updateValue(!0),!0}}focusoutHandler(t){var e;if(!this.open)return!0;const i=t.relatedTarget;this.isSameNode(i)?this.focus():(null===(e=this.options)||void 0===e?void 0:e.includes(i))||(this.open=!1,this.indexWhenOpened!==this.selectedIndex&&this.updateValue(!0))}slottedOptionsChanged(t,e){super.slottedOptionsChanged(t,e),this.setProxyOptions(),this.updateValue()}setDefaultSelectedOption(){var t;const e=null!==(t=this.options)&&void 0!==t?t:Array.from(this.children).filter(qi.slottedOptionFilter),i=null==e?void 0:e.findIndex(t=>t.hasAttribute("selected")||t.selected||t.value===this.value);this.selectedIndex=-1===i?0:i}setProxyOptions(){this.proxy instanceof HTMLSelectElement&&this.options&&(this.proxy.options.length=0,this.options.forEach(t=>{const e=t.proxy||(t instanceof HTMLOptionElement?t.cloneNode():null);e&&this.proxy.appendChild(e)}))}keydownHandler(t){super.keydownHandler(t);switch(t.key||t.key.charCodeAt(0)){case" ":this.typeaheadExpired&&(t.preventDefault(),this.open=!this.open);break;case"Enter":t.preventDefault(),this.open=!this.open;break;case"Escape":this.open&&(t.preventDefault(),this.open=!1);break;case"Tab":if(!this.open)return!0;t.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}}ne([ft({attribute:"open",mode:"boolean"})],bs.prototype,"open",void 0),ne([ft({attribute:"position"})],bs.prototype,"positionAttribute",void 0),ne([T],bs.prototype,"position",void 0),ne([T],bs.prototype,"maxHeight",void 0),ne([T],bs.prototype,"displayValue",void 0);class vs{}ne([T],vs.prototype,"ariaControls",void 0),_e(vs,_i),_e(bs,te,vs);class ys extends je{constructor(){super(...arguments),this.shape="rect"}}ne([ft],ys.prototype,"fill",void 0),ne([ft],ys.prototype,"shape",void 0),ne([ft],ys.prototype,"pattern",void 0),ne([ft({mode:"boolean"})],ys.prototype,"shimmer",void 0);function xs(t,e,i,o){let s=ti(0,1,(t-e)/(i-e));return o===Ze.rtl&&(s=1-s),s}const $s={min:0,max:0,direction:Ze.ltr,orientation:We.horizontal,disabled:!1};class ws extends je{constructor(){super(...arguments),this.hideMark=!1,this.sliderDirection=Ze.ltr,this.getSliderConfiguration=()=>{if(this.isSliderConfig(this.parentNode)){const t=this.parentNode,{min:e,max:i,direction:o,orientation:s,disabled:n}=t;void 0!==n&&(this.disabled=n),this.sliderDirection=o||Ze.ltr,this.sliderOrientation=s||We.horizontal,this.sliderMaxPosition=i,this.sliderMinPosition=e}else this.sliderDirection=$s.direction||Ze.ltr,this.sliderOrientation=$s.orientation||We.horizontal,this.sliderMaxPosition=$s.max,this.sliderMinPosition=$s.min},this.positionAsStyle=()=>{const t=this.sliderDirection?this.sliderDirection:Ze.ltr,e=xs(Number(this.position),Number(this.sliderMinPosition),Number(this.sliderMaxPosition));let i=Math.round(100*(1-e)),o=Math.round(100*e);return Number.isNaN(o)&&Number.isNaN(i)&&(i=50,o=50),this.sliderOrientation===We.horizontal?t===Ze.rtl?`right: ${o}%; left: ${i}%;`:`left: ${o}%; right: ${i}%;`:`top: ${o}%; bottom: ${i}%;`}}positionChanged(){this.positionStyle=this.positionAsStyle()}sliderOrientationChanged(){}connectedCallback(){super.connectedCallback(),this.getSliderConfiguration(),this.positionStyle=this.positionAsStyle(),this.notifier=C.getNotifier(this.parentNode),this.notifier.subscribe(this,"orientation"),this.notifier.subscribe(this,"direction"),this.notifier.subscribe(this,"max"),this.notifier.subscribe(this,"min")}disconnectedCallback(){super.disconnectedCallback(),this.notifier.unsubscribe(this,"orientation"),this.notifier.unsubscribe(this,"direction"),this.notifier.unsubscribe(this,"max"),this.notifier.unsubscribe(this,"min")}handleChange(t,e){switch(e){case"direction":this.sliderDirection=t.direction;break;case"orientation":this.sliderOrientation=t.orientation;break;case"max":this.sliderMinPosition=t.max;break;case"min":this.sliderMinPosition=t.min}this.positionStyle=this.positionAsStyle()}isSliderConfig(t){return void 0!==t.max&&void 0!==t.min}}ne([T],ws.prototype,"positionStyle",void 0),ne([ft],ws.prototype,"position",void 0),ne([ft({attribute:"hide-mark",mode:"boolean"})],ws.prototype,"hideMark",void 0),ne([ft({attribute:"disabled",mode:"boolean"})],ws.prototype,"disabled",void 0),ne([T],ws.prototype,"sliderOrientation",void 0),ne([T],ws.prototype,"sliderMinPosition",void 0),ne([T],ws.prototype,"sliderMaxPosition",void 0),ne([T],ws.prototype,"sliderDirection",void 0);class ks extends je{}class Cs extends(vi(ks)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}var Is;!function(t){t.singleValue="single-value"}(Is||(Is={}));class Fs extends Cs{constructor(){super(...arguments),this.direction=Ze.ltr,this.isDragging=!1,this.trackWidth=0,this.trackMinWidth=0,this.trackHeight=0,this.trackLeft=0,this.trackMinHeight=0,this.valueTextFormatter=()=>null,this.min=0,this.max=10,this.step=1,this.orientation=We.horizontal,this.mode=Is.singleValue,this.keypressHandler=t=>{if("Home"===t.key)t.preventDefault(),this.value=""+this.min;else if("End"===t.key)t.preventDefault(),this.value=""+this.max;else if(!t.shiftKey)switch(t.key){case"ArrowRight":case"ArrowUp":t.preventDefault(),this.increment();break;case"ArrowLeft":case"ArrowDown":t.preventDefault(),this.decrement()}},this.setupTrackConstraints=()=>{const t=this.track.getBoundingClientRect();this.trackWidth=this.track.clientWidth,this.trackMinWidth=this.track.clientLeft,this.trackHeight=t.bottom,this.trackMinHeight=t.top,this.trackLeft=this.getBoundingClientRect().left,0===this.trackWidth&&(this.trackWidth=1)},this.setupListeners=(t=!1)=>{const e=(t?"remove":"add")+"EventListener";this[e]("keydown",this.keypressHandler),this[e]("mousedown",this.handleMouseDown),this.thumb[e]("mousedown",this.handleThumbMouseDown),this.thumb[e]("touchstart",this.handleThumbMouseDown),t&&(this.handleMouseDown(null),this.handleThumbMouseDown(null))},this.initialValue="",this.handleThumbMouseDown=t=>{if(t){if(this.readOnly||this.disabled||t.defaultPrevented)return;t.preventDefault(),t.target.focus()}const e=(null!==t?"add":"remove")+"EventListener";window[e]("mouseup",this.handleWindowMouseUp),window[e]("mousemove",this.handleMouseMove),window[e]("touchmove",this.handleMouseMove),window[e]("touchend",this.handleWindowMouseUp),this.isDragging=null!==t},this.handleMouseMove=t=>{if(this.readOnly||this.disabled||t.defaultPrevented)return;const e=window.TouchEvent&&t instanceof TouchEvent?t.touches[0]:t,i=this.orientation===We.horizontal?e.pageX-document.documentElement.scrollLeft-this.trackLeft:e.pageY-document.documentElement.scrollTop;this.value=""+this.calculateNewValue(i)},this.calculateNewValue=t=>{const e=xs(t,this.orientation===We.horizontal?this.trackMinWidth:this.trackMinHeight,this.orientation===We.horizontal?this.trackWidth:this.trackHeight,this.direction),i=(this.max-this.min)*e+this.min;return this.convertToConstrainedValue(i)},this.handleWindowMouseUp=t=>{this.stopDragging()},this.stopDragging=()=>{this.isDragging=!1,this.handleMouseDown(null),this.handleThumbMouseDown(null)},this.handleMouseDown=t=>{const e=(null!==t?"add":"remove")+"EventListener";if((null===t||!this.disabled&&!this.readOnly)&&(window[e]("mouseup",this.handleWindowMouseUp),window.document[e]("mouseleave",this.handleWindowMouseUp),window[e]("mousemove",this.handleMouseMove),t)){t.preventDefault(),this.setupTrackConstraints(),t.target.focus();const e=this.orientation===We.horizontal?t.pageX-document.documentElement.scrollLeft-this.trackLeft:t.pageY-document.documentElement.scrollTop;this.value=""+this.calculateNewValue(e)}},this.convertToConstrainedValue=t=>{isNaN(t)&&(t=this.min);let e=t-this.min;const i=e-Math.round(e/this.step)*(this.stepMultiplier*this.step)/this.stepMultiplier;return e=i>=Number(this.step)/2?e-i+Number(this.step):e-i,e+this.min}}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}get valueAsNumber(){return parseFloat(super.value)}set valueAsNumber(t){this.value=t.toString()}valueChanged(t,e){super.valueChanged(t,e),this.$fastController.isConnected&&this.setThumbPositionForOrientation(this.direction),this.$emit("change")}minChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.min=""+this.min),this.validate()}maxChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.max=""+this.max),this.validate()}stepChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.step=""+this.step),this.updateStepMultiplier(),this.validate()}orientationChanged(){this.$fastController.isConnected&&this.setThumbPositionForOrientation(this.direction)}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute("type","range"),this.direction=di(this),this.updateStepMultiplier(),this.setupTrackConstraints(),this.setupListeners(),this.setupDefaultValue(),this.setThumbPositionForOrientation(this.direction)}disconnectedCallback(){this.setupListeners(!0)}increment(){const t=this.direction!==Ze.rtl&&this.orientation!==We.vertical?Number(this.value)+Number(this.step):Number(this.value)-Number(this.step),e=this.convertToConstrainedValue(t),i=e<Number(this.max)?""+e:""+this.max;this.value=i}decrement(){const t=this.direction!==Ze.rtl&&this.orientation!==We.vertical?Number(this.value)-Number(this.step):Number(this.value)+Number(this.step),e=this.convertToConstrainedValue(t),i=e>Number(this.min)?""+e:""+this.min;this.value=i}setThumbPositionForOrientation(t){const e=100*(1-xs(Number(this.value),Number(this.min),Number(this.max),t));this.orientation===We.horizontal?this.position=this.isDragging?`right: ${e}%; transition: none;`:`right: ${e}%; transition: all 0.2s ease;`:this.position=this.isDragging?`bottom: ${e}%; transition: none;`:`bottom: ${e}%; transition: all 0.2s ease;`}updateStepMultiplier(){const t=this.step+"",e=this.step%1?t.length-t.indexOf(".")-1:0;this.stepMultiplier=Math.pow(10,e)}get midpoint(){return""+this.convertToConstrainedValue((this.max+this.min)/2)}setupDefaultValue(){if("string"==typeof this.value)if(0===this.value.length)this.initialValue=this.midpoint;else{const t=parseFloat(this.value);!Number.isNaN(t)&&(t<this.min||t>this.max)&&(this.value=this.midpoint)}}}ne([ft({attribute:"readonly",mode:"boolean"})],Fs.prototype,"readOnly",void 0),ne([T],Fs.prototype,"direction",void 0),ne([T],Fs.prototype,"isDragging",void 0),ne([T],Fs.prototype,"position",void 0),ne([T],Fs.prototype,"trackWidth",void 0),ne([T],Fs.prototype,"trackMinWidth",void 0),ne([T],Fs.prototype,"trackHeight",void 0),ne([T],Fs.prototype,"trackLeft",void 0),ne([T],Fs.prototype,"trackMinHeight",void 0),ne([T],Fs.prototype,"valueTextFormatter",void 0),ne([ft({converter:pt})],Fs.prototype,"min",void 0),ne([ft({converter:pt})],Fs.prototype,"max",void 0),ne([ft({converter:pt})],Fs.prototype,"step",void 0),ne([ft],Fs.prototype,"orientation",void 0),ne([ft],Fs.prototype,"mode",void 0);class Ts extends je{}class Ds extends(yi(Ts)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class Ss extends Ds{constructor(){super(),this.initialValue="on",this.keypressHandler=t=>{switch(t.key){case"Enter":case" ":this.checked=!this.checked}},this.clickHandler=t=>{this.disabled||this.readOnly||(this.checked=!this.checked)},this.proxy.setAttribute("type","checkbox")}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly),this.readOnly?this.classList.add("readonly"):this.classList.remove("readonly")}checkedChanged(t,e){super.checkedChanged(t,e),this.checked?this.classList.add("checked"):this.classList.remove("checked")}}ne([ft({attribute:"readonly",mode:"boolean"})],Ss.prototype,"readOnly",void 0),ne([T],Ss.prototype,"defaultSlottedNodes",void 0);class Vs extends je{}class Os extends je{}ne([ft({mode:"boolean"})],Os.prototype,"disabled",void 0);var Es,Rs;!function(t){t.vertical="vertical",t.horizontal="horizontal"}(Es||(Es={}));class As extends je{constructor(){super(...arguments),this.orientation=Es.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=t=>"true"===t.getAttribute("aria-disabled"),this.isFocusableElement=t=>!this.isDisabledElement(t),this.setTabs=()=>{const t=this.isHorizontal()?"gridColumn":"gridRow";this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex(),this.showActiveIndicator=!1,this.tabs.forEach((e,i)=>{if("tab"===e.slot&&this.isFocusableElement(e)){this.activeindicator&&(this.showActiveIndicator=!0);const t=this.tabIds[i],o=this.tabpanelIds[i];e.setAttribute("id","string"!=typeof t?"tab-"+(i+1):t),e.setAttribute("aria-selected",this.activeTabIndex===i?"true":"false"),e.setAttribute("aria-controls","string"!=typeof o?"panel-"+(i+1):o),e.addEventListener("click",this.handleTabClick),e.addEventListener("keydown",this.handleTabKeyDown),e.setAttribute("tabindex",this.activeTabIndex===i?"0":"-1"),this.activeTabIndex===i&&(this.activetab=e)}e.style.gridColumn="",e.style.gridRow="",e.style[t]=""+(i+1),this.isHorizontal()?e.classList.remove("vertical"):e.classList.add("vertical")})},this.setTabPanels=()=>{this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.tabpanels.forEach((t,e)=>{const i=this.tabIds[e],o=this.tabpanelIds[e];t.setAttribute("id","string"!=typeof o?"panel-"+(e+1):o),t.setAttribute("aria-labelledby","string"!=typeof i?"tab-"+(e+1):i),this.activeTabIndex!==e?t.setAttribute("hidden",""):t.removeAttribute("hidden")})},this.handleTabClick=t=>{const e=t.currentTarget;1===e.nodeType&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(e),this.setComponent())},this.handleTabKeyDown=t=>{if(this.isHorizontal())switch(t.key){case"ArrowLeft":t.preventDefault(),this.adjustBackward(t);break;case"ArrowRight":t.preventDefault(),this.adjustForward(t)}else switch(t.key){case"ArrowUp":t.preventDefault(),this.adjustBackward(t);break;case"ArrowDown":t.preventDefault(),this.adjustForward(t)}switch(t.key){case"Home":t.preventDefault(),this.adjust(-this.activeTabIndex);break;case"End":t.preventDefault(),this.adjust(this.tabs.length-this.activeTabIndex-1)}},this.adjustForward=t=>{const e=this.tabs;let i=0;for(i=this.activetab?e.indexOf(this.activetab)+1:1,i===e.length&&(i=0);i<e.length&&e.length>1;){if(this.isFocusableElement(e[i])){this.moveToTabByIndex(e,i);break}if(this.activetab&&i===e.indexOf(this.activetab))break;i+1>=e.length?i=0:i+=1}},this.adjustBackward=t=>{const e=this.tabs;let i=0;for(i=this.activetab?e.indexOf(this.activetab)-1:0,i=i<0?e.length-1:i;i>=0&&e.length>1;){if(this.isFocusableElement(e[i])){this.moveToTabByIndex(e,i);break}i-1<0?i=e.length-1:i-=1}},this.moveToTabByIndex=(t,e)=>{const i=t[e];this.activetab=i,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=e,i.focus(),this.setComponent()}}orientationChanged(){this.$fastController.isConnected&&(this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}activeidChanged(t,e){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.prevActiveTabIndex=this.tabs.findIndex(e=>e.id===t),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(t=>t.getAttribute("id"))}getTabPanelIds(){return this.tabpanels.map(t=>t.getAttribute("id"))}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}isHorizontal(){return this.orientation===Es.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 t=this.isHorizontal()?"gridColumn":"gridRow",e=this.isHorizontal()?"translateX":"translateY",i=this.isHorizontal()?"offsetLeft":"offsetTop",o=this.activeIndicatorRef[i];this.activeIndicatorRef.style[t]=""+(this.activeTabIndex+1);const s=this.activeIndicatorRef[i];this.activeIndicatorRef.style[t]=""+(this.prevActiveTabIndex+1);const n=s-o;this.activeIndicatorRef.style.transform=`${e}(${n}px)`,this.activeIndicatorRef.classList.add("activeIndicatorTransition"),this.activeIndicatorRef.addEventListener("transitionend",()=>{this.ticking=!1,this.activeIndicatorRef.style[t]=""+(this.activeTabIndex+1),this.activeIndicatorRef.style.transform=e+"(0px)",this.activeIndicatorRef.classList.remove("activeIndicatorTransition")})}adjust(t){this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=Je(0,this.tabs.length-1,this.activeTabIndex+t),this.setComponent()}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}}ne([ft],As.prototype,"orientation",void 0),ne([ft],As.prototype,"activeid",void 0),ne([T],As.prototype,"tabs",void 0),ne([T],As.prototype,"tabpanels",void 0),ne([ft({mode:"boolean"})],As.prototype,"activeindicator",void 0),ne([T],As.prototype,"activeIndicatorRef",void 0),ne([T],As.prototype,"showActiveIndicator",void 0),_e(As,te);class Ls extends je{}class zs extends(vi(Ls)){constructor(){super(...arguments),this.proxy=document.createElement("textarea")}}!function(t){t.none="none",t.both="both",t.horizontal="horizontal",t.vertical="vertical"}(Rs||(Rs={}));class Hs extends zs{constructor(){super(...arguments),this.resize=Rs.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")}}ne([ft({mode:"boolean"})],Hs.prototype,"readOnly",void 0),ne([ft],Hs.prototype,"resize",void 0),ne([ft({mode:"boolean"})],Hs.prototype,"autofocus",void 0),ne([ft({attribute:"form"})],Hs.prototype,"formId",void 0),ne([ft],Hs.prototype,"list",void 0),ne([ft({converter:pt})],Hs.prototype,"maxlength",void 0),ne([ft({converter:pt})],Hs.prototype,"minlength",void 0),ne([ft],Hs.prototype,"name",void 0),ne([ft],Hs.prototype,"placeholder",void 0),ne([ft({converter:pt,mode:"fromView"})],Hs.prototype,"cols",void 0),ne([ft({converter:pt,mode:"fromView"})],Hs.prototype,"rows",void 0),ne([ft({mode:"boolean"})],Hs.prototype,"spellcheck",void 0),ne([T],Hs.prototype,"defaultSlottedNodes",void 0),_e(Hs,es);const Ps=Object.freeze({[Qe.ArrowUp]:{[We.vertical]:-1},[Qe.ArrowDown]:{[We.vertical]:1},[Qe.ArrowLeft]:{[We.horizontal]:{[Ze.ltr]:-1,[Ze.rtl]:1}},[Qe.ArrowRight]:{[We.horizontal]:{[Ze.ltr]:1,[Ze.rtl]:-1}}});class Ms extends je{constructor(){super(...arguments),this._activeIndex=0,this.direction=Ze.ltr,this.orientation=We.horizontal}get activeIndex(){return C.track(this,"activeIndex"),this._activeIndex}set activeIndex(t){this.$fastController.isConnected&&(this._activeIndex=ti(0,this.focusableElements.length-1,t),C.notify(this,"activeIndex"))}slottedItemsChanged(){this.$fastController.isConnected&&this.reduceFocusableElements()}clickHandler(t){var e;const i=null===(e=this.focusableElements)||void 0===e?void 0:e.indexOf(t.target);return i>-1&&this.activeIndex!==i&&this.setFocusedElement(i),!0}connectedCallback(){super.connectedCallback(),this.direction=di(this)}focusinHandler(t){const e=t.relatedTarget;e&&!this.contains(e)&&this.setFocusedElement()}getDirectionalIncrementer(t){var e,i,o,s,n;return null!==(n=null!==(o=null===(i=null===(e=Ps[t])||void 0===e?void 0:e[this.orientation])||void 0===i?void 0:i[this.direction])&&void 0!==o?o:null===(s=Ps[t])||void 0===s?void 0:s[this.orientation])&&void 0!==n?n:0}keydownHandler(t){const e=t.key;if(!(e in Qe)||t.defaultPrevented||t.shiftKey)return!0;const i=this.getDirectionalIncrementer(e);if(!i)return!t.target.closest("[role=radiogroup]");const o=this.activeIndex+i;return this.focusableElements[o]&&t.preventDefault(),this.setFocusedElement(o),!0}get allSlottedItems(){return[...this.start.assignedElements(),...this.slottedItems,...this.end.assignedElements()]}reduceFocusableElements(){this.focusableElements=this.allSlottedItems.reduce(Ms.reduceFocusableItems,[]),this.setFocusableElements()}setFocusedElement(t=this.activeIndex){var e;this.activeIndex=t,this.setFocusableElements(),null===(e=this.focusableElements[this.activeIndex])||void 0===e||e.focus()}static reduceFocusableItems(t,e){var i,o,s,n;const r="radio"===e.getAttribute("role"),a=null===(o=null===(i=e.$fastController)||void 0===i?void 0:i.definition.shadowOptions)||void 0===o?void 0:o.delegatesFocus,l=Array.from(null!==(n=null===(s=e.shadowRoot)||void 0===s?void 0:s.querySelectorAll("*"))&&void 0!==n?n:[]).some(t=>No(t));return No(e)||r||a||l?(t.push(e),t):e.childElementCount?t.concat(Array.from(e.children).reduce(Ms.reduceFocusableItems,[])):t}setFocusableElements(){this.$fastController.isConnected&&this.focusableElements.length>0&&this.focusableElements.forEach((t,e)=>{t.tabIndex=this.activeIndex===e?0:-1})}}ne([T],Ms.prototype,"direction",void 0),ne([ft],Ms.prototype,"orientation",void 0),ne([T],Ms.prototype,"slottedItems",void 0),ne([T],Ms.prototype,"slottedLabel",void 0);class Bs{}ne([ft({attribute:"aria-labelledby"})],Bs.prototype,"ariaLabelledby",void 0),ne([ft({attribute:"aria-label"})],Bs.prototype,"ariaLabel",void 0),_e(Bs,li),_e(Ms,te,Bs);var Ns;!function(t){t.top="top",t.right="right",t.bottom="bottom",t.left="left",t.start="start",t.end="end"}(Ns||(Ns={}));class js extends je{constructor(){super(...arguments),this.anchor="",this.delay=300,this.autoUpdateMode="anchor",this.anchorElement=null,this.viewportElement=null,this.verticalPositioningMode="dynamic",this.horizontalPositioningMode="dynamic",this.horizontalInset="false",this.verticalInset="false",this.horizontalScaling="content",this.verticalScaling="content",this.verticalDefaultPosition=void 0,this.horizontalDefaultPosition=void 0,this.tooltipVisible=!1,this.currentDirection=Ze.ltr,this.delayTimer=null,this.isAnchorHoveredFocused=!1,this.handlePositionChange=t=>{this.classList.toggle("top","start"===this.region.verticalPosition),this.classList.toggle("bottom","end"===this.region.verticalPosition),this.classList.toggle("inset-top","insetStart"===this.region.verticalPosition),this.classList.toggle("inset-bottom","insetEnd"===this.region.verticalPosition),this.classList.toggle("center-vertical","center"===this.region.verticalPosition),this.classList.toggle("left","start"===this.region.horizontalPosition),this.classList.toggle("right","end"===this.region.horizontalPosition),this.classList.toggle("inset-left","insetStart"===this.region.horizontalPosition),this.classList.toggle("inset-right","insetEnd"===this.region.horizontalPosition),this.classList.toggle("center-horizontal","center"===this.region.horizontalPosition)},this.handleAnchorMouseOver=t=>{this.startHoverTimer()},this.handleAnchorMouseOut=t=>{this.isAnchorHoveredFocused=!1,this.updateTooltipVisibility(),this.clearDelayTimer()},this.handleAnchorFocusIn=t=>{this.startHoverTimer()},this.handleAnchorFocusOut=t=>{this.isAnchorHoveredFocused=!1,this.updateTooltipVisibility(),this.clearDelayTimer()},this.startHoverTimer=()=>{this.isAnchorHoveredFocused||(this.delay>1?null===this.delayTimer&&(this.delayTimer=window.setTimeout(()=>{this.startHover()},this.delay)):this.startHover())},this.startHover=()=>{this.isAnchorHoveredFocused=!0,this.updateTooltipVisibility()},this.clearDelayTimer=()=>{null!==this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)},this.getAnchor=()=>{const t=this.getRootNode();return t instanceof ShadowRoot?t.getElementById(this.anchor):document.getElementById(this.anchor)},this.handleDocumentKeydown=t=>{if(!t.defaultPrevented&&this.tooltipVisible)switch(t.key){case"Escape":this.isAnchorHoveredFocused=!1,this.updateTooltipVisibility(),this.$emit("dismiss")}},this.updateTooltipVisibility=()=>{if(!1===this.visible)this.hideTooltip();else{if(!0===this.visible)return void this.showTooltip();if(this.isAnchorHoveredFocused)return void this.showTooltip();this.hideTooltip()}},this.showTooltip=()=>{this.tooltipVisible||(this.currentDirection=di(this),this.tooltipVisible=!0,document.addEventListener("keydown",this.handleDocumentKeydown),d.queueUpdate(this.setRegionProps))},this.hideTooltip=()=>{this.tooltipVisible&&(null!==this.region&&void 0!==this.region&&(this.region.removeEventListener("positionchange",this.handlePositionChange),this.region.viewportElement=null,this.region.anchorElement=null),document.removeEventListener("keydown",this.handleDocumentKeydown),this.tooltipVisible=!1)},this.setRegionProps=()=>{this.tooltipVisible&&(this.region.viewportElement=this.viewportElement,this.region.anchorElement=this.anchorElement,this.region.addEventListener("positionchange",this.handlePositionChange))}}visibleChanged(){this.$fastController.isConnected&&(this.updateTooltipVisibility(),this.updateLayout())}anchorChanged(){this.$fastController.isConnected&&(this.anchorElement=this.getAnchor())}positionChanged(){this.$fastController.isConnected&&this.updateLayout()}anchorElementChanged(t){if(this.$fastController.isConnected){if(null!=t&&(t.removeEventListener("mouseover",this.handleAnchorMouseOver),t.removeEventListener("mouseout",this.handleAnchorMouseOut),t.removeEventListener("focusin",this.handleAnchorFocusIn),t.removeEventListener("focusout",this.handleAnchorFocusOut)),null!==this.anchorElement&&void 0!==this.anchorElement){this.anchorElement.addEventListener("mouseover",this.handleAnchorMouseOver,{passive:!0}),this.anchorElement.addEventListener("mouseout",this.handleAnchorMouseOut,{passive:!0}),this.anchorElement.addEventListener("focusin",this.handleAnchorFocusIn,{passive:!0}),this.anchorElement.addEventListener("focusout",this.handleAnchorFocusOut,{passive:!0});const t=this.anchorElement.id;null!==this.anchorElement.parentElement&&this.anchorElement.parentElement.querySelectorAll(":hover").forEach(e=>{e.id===t&&this.startHoverTimer()})}null!==this.region&&void 0!==this.region&&this.tooltipVisible&&(this.region.anchorElement=this.anchorElement),this.updateLayout()}}viewportElementChanged(){null!==this.region&&void 0!==this.region&&(this.region.viewportElement=this.viewportElement),this.updateLayout()}connectedCallback(){super.connectedCallback(),this.anchorElement=this.getAnchor(),this.updateTooltipVisibility()}disconnectedCallback(){this.hideTooltip(),this.clearDelayTimer(),super.disconnectedCallback()}updateLayout(){switch(this.position){case Ns.top:case Ns.bottom:this.verticalPositioningMode="locktodefault",this.horizontalPositioningMode="locktodefault",this.verticalDefaultPosition=this.position,this.horizontalDefaultPosition="center";break;case Ns.right:case Ns.left:case Ns.start:case Ns.end:this.verticalPositioningMode="locktodefault",this.horizontalPositioningMode="locktodefault",this.verticalDefaultPosition="center",this.horizontalDefaultPosition=this.position;break;default:this.verticalPositioningMode="dynamic",this.horizontalPositioningMode="dynamic",this.verticalDefaultPosition=void 0,this.horizontalDefaultPosition="center"}}}ne([ft({mode:"boolean"})],js.prototype,"visible",void 0),ne([ft],js.prototype,"anchor",void 0),ne([ft],js.prototype,"delay",void 0),ne([ft],js.prototype,"position",void 0),ne([ft({attribute:"auto-update-mode"})],js.prototype,"autoUpdateMode",void 0),ne([ft({attribute:"horizontal-viewport-lock"})],js.prototype,"horizontalViewportLock",void 0),ne([ft({attribute:"vertical-viewport-lock"})],js.prototype,"verticalViewportLock",void 0),ne([T],js.prototype,"anchorElement",void 0),ne([T],js.prototype,"viewportElement",void 0),ne([T],js.prototype,"verticalPositioningMode",void 0),ne([T],js.prototype,"horizontalPositioningMode",void 0),ne([T],js.prototype,"horizontalInset",void 0),ne([T],js.prototype,"verticalInset",void 0),ne([T],js.prototype,"horizontalScaling",void 0),ne([T],js.prototype,"verticalScaling",void 0),ne([T],js.prototype,"verticalDefaultPosition",void 0),ne([T],js.prototype,"horizontalDefaultPosition",void 0),ne([T],js.prototype,"tooltipVisible",void 0),ne([T],js.prototype,"currentDirection",void 0);function Us(t){return Ke(t)&&"treeitem"===t.getAttribute("role")}class qs extends je{constructor(){super(...arguments),this.expanded=!1,this.focusable=!1,this.isNestedItem=()=>Us(this.parentElement),this.handleExpandCollapseButtonClick=t=>{this.disabled||t.defaultPrevented||(this.expanded=!this.expanded)},this.handleFocus=t=>{this.setAttribute("tabindex","0")},this.handleBlur=t=>{this.setAttribute("tabindex","-1")}}expandedChanged(){this.$fastController.isConnected&&this.$emit("expanded-change",this)}selectedChanged(){this.$fastController.isConnected&&this.$emit("selected-change",this)}itemsChanged(t,e){this.$fastController.isConnected&&this.items.forEach(t=>{Us(t)&&(t.nested=!0)})}static focusItem(t){t.focusable=!0,t.focus()}childItemLength(){const t=this.childItems.filter(t=>Us(t));return t?t.length:0}}ne([ft({mode:"boolean"})],qs.prototype,"expanded",void 0),ne([ft({mode:"boolean"})],qs.prototype,"selected",void 0),ne([ft({mode:"boolean"})],qs.prototype,"disabled",void 0),ne([T],qs.prototype,"focusable",void 0),ne([T],qs.prototype,"childItems",void 0),ne([T],qs.prototype,"items",void 0),ne([T],qs.prototype,"nested",void 0),ne([T],qs.prototype,"renderCollapsedChildren",void 0),_e(qs,te);class _s extends je{constructor(){super(...arguments),this.currentFocused=null,this.handleFocus=t=>{if(!(this.slottedTreeItems.length<1))return t.target===this?(null===this.currentFocused&&(this.currentFocused=this.getValidFocusableItem()),void(null!==this.currentFocused&&qs.focusItem(this.currentFocused))):void(this.contains(t.target)&&(this.setAttribute("tabindex","-1"),this.currentFocused=t.target))},this.handleBlur=t=>{t.target instanceof HTMLElement&&(null===t.relatedTarget||!this.contains(t.relatedTarget))&&this.setAttribute("tabindex","0")},this.handleKeyDown=t=>{if(t.defaultPrevented)return;if(this.slottedTreeItems.length<1)return!0;const e=this.getVisibleNodes();switch(t.key){case"Home":return void(e.length&&qs.focusItem(e[0]));case"End":return void(e.length&&qs.focusItem(e[e.length-1]));case"ArrowLeft":if(t.target&&this.isFocusableElement(t.target)){const e=t.target;e instanceof qs&&e.childItemLength()>0&&(e.expanded=!1)}return!1;case"ArrowRight":if(t.target&&this.isFocusableElement(t.target)){const e=t.target;e instanceof qs&&e.childItemLength()>0&&(e.expanded=!0)}return;case"ArrowDown":return void(t.target&&this.isFocusableElement(t.target)&&this.focusNextNode(1,t.target));case"ArrowUp":return void(t.target&&this.isFocusableElement(t.target)&&this.focusNextNode(-1,t.target));case"Enter":return void this.handleClick(t)}return!0},this.handleSelectedChange=t=>{if(t.defaultPrevented)return;if(!(t.target instanceof Element&&Us(t.target)))return!0;const e=t.target;e.selected&&this.currentSelected!==e?this.currentSelected=e:e.selected||this.currentSelected!==e||(this.currentSelected=null)},this.setItems=()=>{const t=this.treeView.querySelector("[aria-selected='true']");this.currentSelected=t,null!==this.currentFocused&&this.contains(this.currentFocused)||(this.currentFocused=this.getValidFocusableItem()),this.nested=this.checkForNestedItems();this.getVisibleNodes().forEach(t=>{Us(t)&&(t.nested=this.nested)})},this.isFocusableElement=t=>Us(t),this.isSelectedElement=t=>t.selected}slottedTreeItemsChanged(){this.$fastController.isConnected&&this.setItems()}connectedCallback(){super.connectedCallback(),this.setAttribute("tabindex","0"),d.queueUpdate(()=>{this.setItems()})}handleClick(t){if(t.defaultPrevented)return;if(!(t.target instanceof Element&&Us(t.target)))return!0;const e=t.target;e.disabled||(e.selected=!e.selected)}focusNextNode(t,e){const i=this.getVisibleNodes();if(!i)return;const o=i[i.indexOf(e)+t];Ke(o)&&qs.focusItem(o)}getValidFocusableItem(){const t=this.getVisibleNodes();let e=t.findIndex(this.isSelectedElement);return-1===e&&(e=t.findIndex(this.isFocusableElement)),-1!==e?t[e]:null}checkForNestedItems(){return this.slottedTreeItems.some(t=>Us(t)&&t.querySelector("[role='treeitem']"))}getVisibleNodes(){return function(t,e){if(!t||!e||!Ke(t))return;return Array.from(t.querySelectorAll(e)).filter(t=>null!==t.offsetParent)}(this,"[role='treeitem']")||[]}}function Gs(t,e,i){return isNaN(t)||t<=e?e:t>=i?i:t}function Ws(t,e,i){return isNaN(t)||t<=e?0:t>=i?1:t/(i-e)}function Ks(t,e,i){return isNaN(t)?e:e+t*(i-e)}function Xs(t,e,i){return isNaN(t)||t<=0?e:t>=1?i:e+t*(i-e)}function Ys(t,e){const i=Math.pow(10,e);return Math.round(t*i)/i}ne([ft({attribute:"render-collapsed-nodes"})],_s.prototype,"renderCollapsedNodes",void 0),ne([T],_s.prototype,"currentSelected",void 0),ne([T],_s.prototype,"slottedTreeItems",void 0);class Qs{constructor(t,e,i){this.h=t,this.s=e,this.l=i}static fromObject(t){return!t||isNaN(t.h)||isNaN(t.s)||isNaN(t.l)?null:new Qs(t.h,t.s,t.l)}equalValue(t){return this.h===t.h&&this.s===t.s&&this.l===t.l}roundToPrecision(t){return new Qs(Ys(this.h,t),Ys(this.s,t),Ys(this.l,t))}toObject(){return{h:this.h,s:this.s,l:this.l}}}class Zs{constructor(t,e,i){this.l=t,this.a=e,this.b=i}static fromObject(t){return!t||isNaN(t.l)||isNaN(t.a)||isNaN(t.b)?null:new Zs(t.l,t.a,t.b)}equalValue(t){return this.l===t.l&&this.a===t.a&&this.b===t.b}roundToPrecision(t){return new Zs(Ys(this.l,t),Ys(this.a,t),Ys(this.b,t))}toObject(){return{l:this.l,a:this.a,b:this.b}}}Zs.epsilon=216/24389,Zs.kappa=24389/27;class Js{constructor(t,e,i,o){this.r=t,this.g=e,this.b=i,this.a="number"!=typeof o||isNaN(o)?1:o}static fromObject(t){return!t||isNaN(t.r)||isNaN(t.g)||isNaN(t.b)?null:new Js(t.r,t.g,t.b,t.a)}equalValue(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}toStringHexRGB(){return"#"+[this.r,this.g,this.b].map(this.formatHexValue).join("")}toStringHexRGBA(){return this.toStringHexRGB()+this.formatHexValue(this.a)}toStringHexARGB(){return"#"+[this.a,this.r,this.g,this.b].map(this.formatHexValue).join("")}toStringWebRGB(){return`rgb(${Math.round(Ks(this.r,0,255))},${Math.round(Ks(this.g,0,255))},${Math.round(Ks(this.b,0,255))})`}toStringWebRGBA(){return`rgba(${Math.round(Ks(this.r,0,255))},${Math.round(Ks(this.g,0,255))},${Math.round(Ks(this.b,0,255))},${Gs(this.a,0,1)})`}roundToPrecision(t){return new Js(Ys(this.r,t),Ys(this.g,t),Ys(this.b,t),Ys(this.a,t))}clamp(){return new Js(Gs(this.r,0,1),Gs(this.g,0,1),Gs(this.b,0,1),Gs(this.a,0,1))}toObject(){return{r:this.r,g:this.g,b:this.b,a:this.a}}formatHexValue(t){return function(t){const e=Math.round(Gs(t,0,255)).toString(16);return 1===e.length?"0"+e:e}(Ks(t,0,255))}}class tn{constructor(t,e,i){this.x=t,this.y=e,this.z=i}static fromObject(t){return!t||isNaN(t.x)||isNaN(t.y)||isNaN(t.z)?null:new tn(t.x,t.y,t.z)}equalValue(t){return this.x===t.x&&this.y===t.y&&this.z===t.z}roundToPrecision(t){return new tn(Ys(this.x,t),Ys(this.y,t),Ys(this.z,t))}toObject(){return{x:this.x,y:this.y,z:this.z}}}function en(t){function e(t){return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return function(t){return.2126*t.r+.7152*t.g+.0722*t.b}(new Js(e(t.r),e(t.g),e(t.b),1))}function on(t,e,i){return i-e==0?0:(t-e)/(i-e)}function sn(t,e,i){return(on(t.r,e.r,i.r)+on(t.g,e.g,i.g)+on(t.b,e.b,i.b))/3}function nn(t){const e=Math.max(t.r,t.g,t.b),i=Math.min(t.r,t.g,t.b),o=e-i;let s=0;0!==o&&(s=e===t.r?(t.g-t.b)/o%6*60:e===t.g?60*((t.b-t.r)/o+2):60*((t.r-t.g)/o+4)),s<0&&(s+=360);const n=(e+i)/2;let r=0;return 0!==o&&(r=o/(1-Math.abs(2*n-1))),new Qs(s,r,n)}function rn(t){return function(t){function e(t){return t>Zs.epsilon?Math.pow(t,1/3):(Zs.kappa*t+16)/116}const i=e(t.x/tn.whitePoint.x),o=e(t.y/tn.whitePoint.y),s=e(t.z/tn.whitePoint.z);return new Zs(116*o-16,500*(i-o),200*(o-s))}(function(t){function e(t){return t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}const i=e(t.r),o=e(t.g),s=e(t.b);return new tn(.4124564*i+.3575761*o+.1804375*s,.2126729*i+.7151522*o+.072175*s,.0193339*i+.119192*o+.9503041*s)}(t))}function an(t,e=1){return function(t,e=1){function i(t){return t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055}const o=i(3.2404542*t.x-1.5371385*t.y-.4985314*t.z),s=i(-.969266*t.x+1.8760108*t.y+.041556*t.z),n=i(.0556434*t.x-.2040259*t.y+1.0572252*t.z);return new Js(o,s,n,e)}(function(t){const e=(t.l+16)/116,i=e+t.a/500,o=e-t.b/200,s=Math.pow(i,3),n=Math.pow(e,3),r=Math.pow(o,3);let a=0;a=s>Zs.epsilon?s:(116*i-16)/Zs.kappa;let l=0;l=t.l>Zs.epsilon*Zs.kappa?n:t.l/Zs.kappa;let c=0;return c=r>Zs.epsilon?r:(116*o-16)/Zs.kappa,a=tn.whitePoint.x*a,l=tn.whitePoint.y*l,c=tn.whitePoint.z*c,new tn(a,l,c)}(t),e)}var ln,cn;function hn(t,e,i){return isNaN(t)||t<=0?e:t>=1?i:new Js(Xs(t,e.r,i.r),Xs(t,e.g,i.g),Xs(t,e.b,i.b),Xs(t,e.a,i.a))}tn.whitePoint=new tn(.95047,1,1.08883),function(t){t[t.Burn=0]="Burn",t[t.Color=1]="Color",t[t.Darken=2]="Darken",t[t.Dodge=3]="Dodge",t[t.Lighten=4]="Lighten",t[t.Multiply=5]="Multiply",t[t.Overlay=6]="Overlay",t[t.Screen=7]="Screen"}(ln||(ln={})),function(t){t[t.RGB=0]="RGB",t[t.HSL=1]="HSL",t[t.HSV=2]="HSV",t[t.XYZ=3]="XYZ",t[t.LAB=4]="LAB",t[t.LCH=5]="LCH"}(cn||(cn={}));const dn=/^#((?:[0-9a-f]{6}|[0-9a-f]{3}))$/i;function un(t){const e=dn.exec(t);if(null===e)return null;let i=e[1];if(3===i.length){const t=i.charAt(0),e=i.charAt(1),o=i.charAt(2);i=t.concat(t,e,e,o,o)}const o=parseInt(i,16);return isNaN(o)?null:new Js(Ws((16711680&o)>>>16,0,255),Ws((65280&o)>>>8,0,255),Ws(255&o,0,255),1)}function pn(t,e){const i=t.relativeLuminance>e.relativeLuminance?t:e,o=t.relativeLuminance>e.relativeLuminance?e:t;return(i.relativeLuminance+.05)/(o.relativeLuminance+.05)}const gn=Object.freeze({create:(t,e,i)=>new fn(t,e,i),from:t=>new fn(t.r,t.g,t.b)});class fn extends Js{constructor(t,e,i){super(t,e,i,1),this.toColorString=this.toStringHexRGB,this.contrast=pn.bind(null,this),this.createCSS=this.toColorString,this.relativeLuminance=en(this)}static fromObject(t){return new fn(t.r,t.g,t.b)}}const mn=(-.1+Math.sqrt(.21))/2;function bn(t){return t.relativeLuminance<=mn}function vn(t){return bn(t)?-1:1}const yn={stepContrast:1.03,stepContrastRamp:.03,preserveSource:!1};const xn=Object.freeze({create:function(t,e,i){return"number"==typeof t?xn.from(gn.create(t,e,i)):xn.from(t)},from:function(t,e){return function(t){const e={r:0,g:0,b:0,toColorString:()=>"",contrast:()=>0,relativeLuminance:0};for(const i in e)if(typeof e[i]!=typeof t[i])return!1;return!0}(t)?$n.from(t,e):$n.from(gn.create(t.r,t.g,t.b),e)}});class $n{constructor(t,e){this.closestIndexCache=new Map,this.source=t,this.swatches=e,this.reversedSwatches=Object.freeze([...this.swatches].reverse()),this.lastIndex=this.swatches.length-1}colorContrast(t,e,i,o){void 0===i&&(i=this.closestIndexOf(t));let s=this.swatches;const n=this.lastIndex;let r=i;void 0===o&&(o=vn(t));return-1===o&&(s=this.reversedSwatches,r=n-r),function t(e,i,o=0,s=e.length-1){if(s===o)return e[o];const n=Math.floor((s-o)/2)+o;return i(e[n])?t(e,i,o,n):t(e,i,n+1,s)}(s,i=>pn(t,i)>=e,r,n)}get(t){return this.swatches[t]||this.swatches[Gs(t,0,this.lastIndex)]}closestIndexOf(t){if(this.closestIndexCache.has(t.relativeLuminance))return this.closestIndexCache.get(t.relativeLuminance);let e=this.swatches.indexOf(t);if(-1!==e)return this.closestIndexCache.set(t.relativeLuminance,e),e;const i=this.swatches.reduce((e,i)=>Math.abs(i.relativeLuminance-t.relativeLuminance)<Math.abs(e.relativeLuminance-t.relativeLuminance)?i:e);return e=this.swatches.indexOf(i),this.closestIndexCache.set(t.relativeLuminance,e),e}static saturationBump(t,e){const i=nn(t).s,o=nn(e);if(o.s<i){return function(t,e=1){const i=(1-Math.abs(2*t.l-1))*t.s,o=i*(1-Math.abs(t.h/60%2-1)),s=t.l-i/2;let n=0,r=0,a=0;return t.h<60?(n=i,r=o,a=0):t.h<120?(n=o,r=i,a=0):t.h<180?(n=0,r=i,a=o):t.h<240?(n=0,r=o,a=i):t.h<300?(n=o,r=0,a=i):t.h<360&&(n=i,r=0,a=o),new Js(n+s,r+s,a+s,e)}(new Qs(o.h,i,o.l))}return e}static ramp(t){const e=t/100;return e>.5?(e-.5)/.5:2*e}static createHighResolutionPalette(t){const e=[],i=rn(Js.fromObject(t).roundToPrecision(4)),o=an(new Zs(0,i.a,i.b)).clamp().roundToPrecision(4),s=an(new Zs(50,i.a,i.b)).clamp().roundToPrecision(4),n=an(new Zs(100,i.a,i.b)).clamp().roundToPrecision(4),r=new Js(0,0,0),a=new Js(1,1,1),l=n.equalValue(a)?0:14,c=o.equalValue(r)?0:14;for(let t=100+l;t>=0-c;t-=.5){let i;if(t<0){i=hn(t/c+1,r,o)}else if(t<=50)i=hn($n.ramp(t),o,s);else if(t<=100)i=hn($n.ramp(t),s,n);else{i=hn((t-100)/l,n,a)}i=$n.saturationBump(s,i).roundToPrecision(4),e.push(gn.from(i))}return new $n(t,e)}static adjustEnd(t,e,i,o){const s=-1===o?e.swatches:e.reversedSwatches,n=t=>{const i=e.closestIndexOf(t);return 1===o?e.lastIndex-i:i};1===o&&i.reverse();const r=t(i[i.length-2]);if(Ys(pn(i[i.length-1],i[i.length-2]),2)<r){i.pop();const t=n(e.colorContrast(s[e.lastIndex],r,void 0,o))-n(i[i.length-2]);let a=1;for(let o=i.length-t-1;o<i.length;o++){const t=n(i[o]),r=o===i.length-1?e.lastIndex:t+a;i[o]=s[r],a++}}1===o&&i.reverse()}static createColorPaletteByContrast(t,e){const i=$n.createHighResolutionPalette(t),o=t=>Ys(e.stepContrast+e.stepContrast*(1-t.relativeLuminance)*e.stepContrastRamp,2),s=[];let n=e.preserveSource?t:i.swatches[0];s.push(n);do{const t=o(n);n=i.colorContrast(n,t,void 0,1),s.push(n)}while(n.relativeLuminance>0);if(e.preserveSource){n=t;do{const t=o(n);n=i.colorContrast(n,t,void 0,-1),s.unshift(n)}while(n.relativeLuminance<1)}return this.adjustEnd(o,i,s,-1),e.preserveSource&&this.adjustEnd(o,i,s,1),s}static from(t,e){const i=void 0===e?yn:Object.assign(Object.assign({},yn),e);return new $n(t,Object.freeze($n.createColorPaletteByContrast(t,i)))}}const wn=gn.create(1,1,1),kn=gn.create(0,0,0),Cn=gn.create(.5,.5,.5),In=un("#0078D4"),Fn=gn.create(In.r,In.g,In.b);function Tn(t,e,i,o,s){const n=t=>t.contrast(wn)>=s?wn:kn,r=n(t),a=n(e);return{rest:r,hover:a,active:r.relativeLuminance===a.relativeLuminance?r:n(i),focus:n(o)}}class Dn{constructor(t,e,i,o){this.toColorString=()=>this.cssGradient,this.contrast=pn.bind(null,this),this.createCSS=this.toColorString,this.color=new Js(t,e,i),this.cssGradient=o,this.relativeLuminance=en(this.color),this.r=t,this.g=e,this.b=i}static fromObject(t,e){return new Dn(t.r,t.g,t.b,e)}}const Sn=new Js(0,0,0),Vn=new Js(1,1,1);function On(t,e,i,o,s,n,r,a,l=10,c=!1){const h=t.closestIndexOf(e);function d(i){if(c){const o=t.closestIndexOf(e),s=t.get(o),n=i.relativeLuminance<e.relativeLuminance?Sn:Vn,r=function(t,e,i=null){let o=0,s=i;return null!==s?o=sn(t,e,s):(s=new Js(0,0,0,1),o=sn(t,e,s),o<=0&&(s=new Js(1,1,1,1),o=sn(t,e,s))),o=Math.round(1e3*o)/1e3,new Js(s.r,s.g,s.b,o)}(un(i.toColorString()),un(s.toColorString()),n).roundToPrecision(2),a=function(t,e){if(e.a>=1)return e;if(e.a<=0)return new Js(t.r,t.g,t.b,1);const i=e.a*e.r+(1-e.a)*t.r,o=e.a*e.g+(1-e.a)*t.g,s=e.a*e.b+(1-e.a)*t.b;return new Js(i,o,s,1)}(un(e.toColorString()),r);return gn.from(a)}return i}void 0===a&&(a=vn(e));const u=h+a*i,p=u+a*(o-i),g=u+a*(s-i),f=u+a*(n-i),m=-1===a?0:100-l,b=-1===a?l:100;function v(e,i){const o=t.get(e);if(i){const i=t.get(e+a*r),s=-1===a?i:o,n=-1===a?o:i,l=`linear-gradient(${d(s).toColorString()} ${m}%, ${d(n).toColorString()} ${b}%)`;return Dn.fromObject(s,l)}return d(o)}return{rest:v(u,!0),hover:v(p,!0),active:v(g,!1),focus:v(f,!0)}}function En(t,e,i,o,s,n,r,a){null==a&&(a=vn(e));const l=t.closestIndexOf(t.colorContrast(e,i));return{rest:t.get(l+a*o),hover:t.get(l+a*s),active:t.get(l+a*n),focus:t.get(l+a*r)}}function Rn(t,e,i,o,s,n,r){const a=t.closestIndexOf(e);return null==r&&(r=vn(e)),{rest:t.get(a+r*i),hover:t.get(a+r*o),active:t.get(a+r*s),focus:t.get(a+r*n)}}function An(t,e,i,o,s,n,r,a,l,c,h,d){return bn(e)?Rn(t,e,a,l,c,h,d):Rn(t,e,i,o,s,n,r)}var Ln;function zn(t,e){return t.closestIndexOf((i=e,gn.create(i,i,i)));var i}function Hn(t,e,i){return t.get(zn(t,e)+-1*i)}!function(t){t[t.LightMode=.98]="LightMode",t[t.DarkMode=.15]="DarkMode"}(Ln||(Ln={}));const{create:Pn}=ko;function Mn(t){return ko.create({name:t,cssCustomPropertyName:null})}const Bn=Pn("direction").withDefault(Ze.ltr),Nn=Pn("disabled-opacity").withDefault(.3),jn=Pn("base-height-multiplier").withDefault(8),Un=Pn("base-horizontal-spacing-multiplier").withDefault(3),qn=Pn("density").withDefault(0),_n=Pn("design-unit").withDefault(4),Gn=Pn("control-corner-radius").withDefault(4),Wn=Pn("layer-corner-radius").withDefault(8),Kn=Pn("stroke-width").withDefault(1),Xn=Pn("focus-stroke-width").withDefault(2),Yn=Pn("body-font").withDefault("Segoe UI, sans-serif"),Qn=Pn("type-ramp-base-font-size").withDefault("14px"),Zn=Pn("type-ramp-base-line-height").withDefault("20px"),Jn=Pn("type-ramp-minus-1-font-size").withDefault("12px"),tr=Pn("type-ramp-minus-1-line-height").withDefault("16px"),er=Pn("type-ramp-minus-2-font-size").withDefault("10px"),ir=Pn("type-ramp-minus-2-line-height").withDefault("14px"),or=Pn("type-ramp-plus-1-font-size").withDefault("16px"),sr=Pn("type-ramp-plus-1-line-height").withDefault("22px"),nr=Pn("type-ramp-plus-2-font-size").withDefault("20px"),rr=Pn("type-ramp-plus-2-line-height").withDefault("26px"),ar=Pn("type-ramp-plus-3-font-size").withDefault("24px"),lr=Pn("type-ramp-plus-3-line-height").withDefault("32px"),cr=Pn("type-ramp-plus-4-font-size").withDefault("28px"),hr=Pn("type-ramp-plus-4-line-height").withDefault("36px"),dr=Pn("type-ramp-plus-5-font-size").withDefault("32px"),ur=Pn("type-ramp-plus-5-line-height").withDefault("40px"),pr=Pn("type-ramp-plus-6-font-size").withDefault("40px"),gr=Pn("type-ramp-plus-6-line-height").withDefault("52px"),fr=Pn("base-layer-luminance").withDefault(Ln.LightMode),mr=Mn("accent-fill-rest-delta").withDefault(0),br=Mn("accent-fill-hover-delta").withDefault(-2),vr=Mn("accent-fill-active-delta").withDefault(-5),yr=Mn("accent-fill-focus-delta").withDefault(0),xr=Mn("accent-foreground-rest-delta").withDefault(0),$r=Mn("accent-foreground-hover-delta").withDefault(3),wr=Mn("accent-foreground-active-delta").withDefault(-8),kr=Mn("accent-foreground-focus-delta").withDefault(0),Cr=Mn("neutral-fill-rest-delta").withDefault(-1),Ir=Mn("neutral-fill-hover-delta").withDefault(1),Fr=Mn("neutral-fill-active-delta").withDefault(0),Tr=Mn("neutral-fill-focus-delta").withDefault(0),Dr=Mn("neutral-fill-input-rest-delta").withDefault(-1),Sr=Mn("neutral-fill-input-hover-delta").withDefault(1),Vr=Mn("neutral-fill-input-active-delta").withDefault(0),Or=Mn("neutral-fill-input-focus-delta").withDefault(-2),Er=Mn("neutral-fill-input-alt-rest-delta").withDefault(2),Rr=Mn("neutral-fill-input-alt-hover-delta").withDefault(4),Ar=Mn("neutral-fill-input-alt-active-delta").withDefault(6),Lr=Mn("neutral-fill-input-alt-focus-delta").withDefault(2),zr=Mn("neutral-fill-layer-rest-delta").withDefault(-2),Hr=Mn("neutral-fill-layer-hover-delta").withDefault(-3),Pr=Mn("neutral-fill-layer-active-delta").withDefault(-3),Mr=Mn("neutral-fill-layer-alt-rest-delta").withDefault(-1),Br=Mn("neutral-fill-secondary-rest-delta").withDefault(3),Nr=Mn("neutral-fill-secondary-hover-delta").withDefault(2),jr=Mn("neutral-fill-secondary-active-delta").withDefault(1),Ur=Mn("neutral-fill-secondary-focus-delta").withDefault(3),qr=Mn("neutral-fill-stealth-rest-delta").withDefault(0),_r=Mn("neutral-fill-stealth-hover-delta").withDefault(3),Gr=Mn("neutral-fill-stealth-active-delta").withDefault(2),Wr=Mn("neutral-fill-stealth-focus-delta").withDefault(0),Kr=Mn("neutral-fill-strong-rest-delta").withDefault(0),Xr=Mn("neutral-fill-strong-hover-delta").withDefault(8),Yr=Mn("neutral-fill-strong-active-delta").withDefault(-5),Qr=Mn("neutral-fill-strong-focus-delta").withDefault(0),Zr=Mn("neutral-stroke-rest-delta").withDefault(8),Jr=Mn("neutral-stroke-hover-delta").withDefault(12),ta=Mn("neutral-stroke-active-delta").withDefault(6),ea=Mn("neutral-stroke-focus-delta").withDefault(8),ia=Mn("neutral-stroke-control-rest-delta").withDefault(3),oa=Mn("neutral-stroke-control-hover-delta").withDefault(5),sa=Mn("neutral-stroke-control-active-delta").withDefault(5),na=Mn("neutral-stroke-control-focus-delta").withDefault(5),ra=Mn("neutral-stroke-divider-rest-delta").withDefault(4),aa=Mn("neutral-stroke-layer-rest-delta").withDefault(3),la=Mn("neutral-stroke-layer-hover-delta").withDefault(3),ca=Mn("neutral-stroke-layer-active-delta").withDefault(3),ha=Mn("neutral-stroke-strong-hover-delta").withDefault(0),da=Mn("neutral-stroke-strong-active-delta").withDefault(0),ua=Mn("neutral-stroke-strong-focus-delta").withDefault(0),pa=Pn("neutral-base-color").withDefault(Cn),ga=Mn("neutral-palette").withDefault(t=>xn.from(pa.getValueFor(t))),fa=Pn("accent-base-color").withDefault(Fn),ma=Mn("accent-palette").withDefault(t=>xn.from(fa.getValueFor(t))),ba=Mn("neutral-layer-card-container-recipe").withDefault({evaluate:t=>Hn(ga.getValueFor(t),fr.getValueFor(t),zr.getValueFor(t))}),va=Pn("neutral-layer-card-container").withDefault(t=>ba.getValueFor(t).evaluate(t)),ya=Mn("neutral-layer-floating-recipe").withDefault({evaluate:t=>function(t,e,i){return t.get(zn(t,e)+i)}(ga.getValueFor(t),fr.getValueFor(t),zr.getValueFor(t))}),xa=Pn("neutral-layer-floating").withDefault(t=>ya.getValueFor(t).evaluate(t)),$a=Mn("neutral-layer-1-recipe").withDefault({evaluate:t=>function(t,e){return t.get(zn(t,e))}(ga.getValueFor(t),fr.getValueFor(t))}),wa=Pn("neutral-layer-1").withDefault(t=>$a.getValueFor(t).evaluate(t)),ka=Mn("neutral-layer-2-recipe").withDefault({evaluate:t=>Hn(ga.getValueFor(t),fr.getValueFor(t),zr.getValueFor(t))}),Ca=Pn("neutral-layer-2").withDefault(t=>ka.getValueFor(t).evaluate(t)),Ia=Mn("neutral-layer-3-recipe").withDefault({evaluate:t=>function(t,e,i){return t.get(zn(t,e)+-1*i*2)}(ga.getValueFor(t),fr.getValueFor(t),zr.getValueFor(t))}),Fa=Pn("neutral-layer-3").withDefault(t=>Ia.getValueFor(t).evaluate(t)),Ta=Mn("neutral-layer-4-recipe").withDefault({evaluate:t=>function(t,e,i){return t.get(zn(t,e)+-1*i*3)}(ga.getValueFor(t),fr.getValueFor(t),zr.getValueFor(t))}),Da=Pn("neutral-layer-4").withDefault(t=>Ta.getValueFor(t).evaluate(t)),Sa=Pn("fill-color").withDefault(t=>wa.getValueFor(t));var Va;!function(t){t[t.normal=4.5]="normal",t[t.large=3]="large"}(Va||(Va={}));const Oa=Mn("accent-fill-recipe").withDefault({evaluate:(t,e)=>function(t,e,i,o,s,n,r,a,l,c,h,d,u,p){return bn(e)?En(t,e,l,c,h,d,u,p):En(t,e,i,o,s,n,r,a)}(ma.getValueFor(t),e||Sa.getValueFor(t),5,mr.getValueFor(t),br.getValueFor(t),vr.getValueFor(t),yr.getValueFor(t),void 0,8,mr.getValueFor(t),br.getValueFor(t),vr.getValueFor(t),yr.getValueFor(t),void 0)}),Ea=Pn("accent-fill-rest").withDefault(t=>Oa.getValueFor(t).evaluate(t).rest),Ra=Pn("accent-fill-hover").withDefault(t=>Oa.getValueFor(t).evaluate(t).hover),Aa=Pn("accent-fill-active").withDefault(t=>Oa.getValueFor(t).evaluate(t).active),La=Pn("accent-fill-focus").withDefault(t=>Oa.getValueFor(t).evaluate(t).focus),za=Mn("foreground-on-accent-recipe").withDefault({evaluate:t=>Tn(Ea.getValueFor(t),Ra.getValueFor(t),Aa.getValueFor(t),La.getValueFor(t),Va.normal)}),Ha=Pn("foreground-on-accent-rest").withDefault(t=>za.getValueFor(t).evaluate(t).rest),Pa=Pn("foreground-on-accent-hover").withDefault(t=>za.getValueFor(t).evaluate(t).hover),Ma=Pn("foreground-on-accent-active").withDefault(t=>za.getValueFor(t).evaluate(t).active),Ba=Pn("foreground-on-accent-focus").withDefault(t=>za.getValueFor(t).evaluate(t).focus),Na=Mn("accent-foreground-recipe").withDefault({evaluate:(t,e)=>En(ma.getValueFor(t),e||Sa.getValueFor(t),9.5,xr.getValueFor(t),$r.getValueFor(t),wr.getValueFor(t),kr.getValueFor(t))}),ja=Pn("accent-foreground-rest").withDefault(t=>Na.getValueFor(t).evaluate(t).rest),Ua=Pn("accent-foreground-hover").withDefault(t=>Na.getValueFor(t).evaluate(t).hover),qa=Pn("accent-foreground-active").withDefault(t=>Na.getValueFor(t).evaluate(t).active),_a=Pn("accent-foreground-focus").withDefault(t=>Na.getValueFor(t).evaluate(t).focus),Ga=Mn("accent-stroke-control-recipe").withDefault({evaluate:(t,e)=>On(ga.getValueFor(t),e||Sa.getValueFor(t),-3,-3,-3,-3,10,1,void 0,!0)}),Wa=Pn("accent-stroke-control-rest").withDefault(t=>Ga.getValueFor(t).evaluate(t,Ea.getValueFor(t)).rest),Ka=Pn("accent-stroke-control-hover").withDefault(t=>Ga.getValueFor(t).evaluate(t,Ra.getValueFor(t)).hover),Xa=Pn("accent-stroke-control-active").withDefault(t=>Ga.getValueFor(t).evaluate(t,Aa.getValueFor(t)).active),Ya=Pn("accent-stroke-control-focus").withDefault(t=>Ga.getValueFor(t).evaluate(t,La.getValueFor(t)).focus),Qa=Mn("neutral-fill-recipe").withDefault({evaluate:(t,e)=>An(ga.getValueFor(t),e||Sa.getValueFor(t),Cr.getValueFor(t),Ir.getValueFor(t),Fr.getValueFor(t),Tr.getValueFor(t),void 0,2,3,1,2,void 0)}),Za=Pn("neutral-fill-rest").withDefault(t=>Qa.getValueFor(t).evaluate(t).rest),Ja=Pn("neutral-fill-hover").withDefault(t=>Qa.getValueFor(t).evaluate(t).hover),tl=Pn("neutral-fill-active").withDefault(t=>Qa.getValueFor(t).evaluate(t).active),el=Pn("neutral-fill-focus").withDefault(t=>Qa.getValueFor(t).evaluate(t).focus),il=Mn("neutral-fill-input-recipe").withDefault({evaluate:(t,e)=>An(ga.getValueFor(t),e||Sa.getValueFor(t),Dr.getValueFor(t),Sr.getValueFor(t),Vr.getValueFor(t),Or.getValueFor(t),void 0,2,3,1,0,void 0)}),ol=Pn("neutral-fill-input-rest").withDefault(t=>il.getValueFor(t).evaluate(t).rest),sl=Pn("neutral-fill-input-hover").withDefault(t=>il.getValueFor(t).evaluate(t).hover),nl=Pn("neutral-fill-input-active").withDefault(t=>il.getValueFor(t).evaluate(t).active),rl=Pn("neutral-fill-input-focus").withDefault(t=>il.getValueFor(t).evaluate(t).focus),al=Mn("neutral-fill-input-alt-recipe").withDefault({evaluate:(t,e)=>An(ga.getValueFor(t),e||Sa.getValueFor(t),Er.getValueFor(t),Rr.getValueFor(t),Ar.getValueFor(t),Lr.getValueFor(t),1,Er.getValueFor(t),Er.getValueFor(t)-Rr.getValueFor(t),Er.getValueFor(t)-Ar.getValueFor(t),Lr.getValueFor(t),1)}),ll=Pn("neutral-fill-input-alt-rest").withDefault(t=>al.getValueFor(t).evaluate(t).rest),cl=Pn("neutral-fill-input-alt-hover").withDefault(t=>al.getValueFor(t).evaluate(t).hover),hl=Pn("neutral-fill-input-alt-active").withDefault(t=>al.getValueFor(t).evaluate(t).active),dl=Pn("neutral-fill-input-alt-focus").withDefault(t=>al.getValueFor(t).evaluate(t).focus),ul=Mn("neutral-fill-layer-recipe").withDefault({evaluate:(t,e)=>Rn(ga.getValueFor(t),e||Sa.getValueFor(t),zr.getValueFor(t),Hr.getValueFor(t),Pr.getValueFor(t),zr.getValueFor(t),1)}),pl=Pn("neutral-fill-layer-rest").withDefault(t=>ul.getValueFor(t).evaluate(t).rest),gl=Pn("neutral-fill-layer-hover").withDefault(t=>ul.getValueFor(t).evaluate(t).hover),fl=Pn("neutral-fill-layer-active").withDefault(t=>ul.getValueFor(t).evaluate(t).active),ml=Mn("neutral-fill-layer-alt-recipe").withDefault({evaluate:(t,e)=>Rn(ga.getValueFor(t),e||Sa.getValueFor(t),Mr.getValueFor(t),Mr.getValueFor(t),Mr.getValueFor(t),Mr.getValueFor(t))}),bl=Pn("neutral-fill-layer-alt-rest").withDefault(t=>ml.getValueFor(t).evaluate(t).rest),vl=Mn("neutral-fill-secondary-recipe").withDefault({evaluate:(t,e)=>Rn(ga.getValueFor(t),e||Sa.getValueFor(t),Br.getValueFor(t),Nr.getValueFor(t),jr.getValueFor(t),Ur.getValueFor(t))}),yl=Pn("neutral-fill-secondary-rest").withDefault(t=>vl.getValueFor(t).evaluate(t).rest),xl=Pn("neutral-fill-secondary-hover").withDefault(t=>vl.getValueFor(t).evaluate(t).hover),$l=Pn("neutral-fill-secondary-active").withDefault(t=>vl.getValueFor(t).evaluate(t).active),wl=Pn("neutral-fill-secondary-focus").withDefault(t=>vl.getValueFor(t).evaluate(t).focus),kl=Mn("neutral-fill-stealth-recipe").withDefault({evaluate:(t,e)=>Rn(ga.getValueFor(t),e||Sa.getValueFor(t),qr.getValueFor(t),_r.getValueFor(t),Gr.getValueFor(t),Wr.getValueFor(t))}),Cl=Pn("neutral-fill-stealth-rest").withDefault(t=>kl.getValueFor(t).evaluate(t).rest),Il=Pn("neutral-fill-stealth-hover").withDefault(t=>kl.getValueFor(t).evaluate(t).hover),Fl=Pn("neutral-fill-stealth-active").withDefault(t=>kl.getValueFor(t).evaluate(t).active),Tl=Pn("neutral-fill-stealth-focus").withDefault(t=>kl.getValueFor(t).evaluate(t).focus),Dl=Mn("neutral-fill-strong-recipe").withDefault({evaluate:(t,e)=>En(ga.getValueFor(t),e||Sa.getValueFor(t),4.5,Kr.getValueFor(t),Xr.getValueFor(t),Yr.getValueFor(t),Qr.getValueFor(t))}),Sl=Pn("neutral-fill-strong-rest").withDefault(t=>Dl.getValueFor(t).evaluate(t).rest),Vl=Pn("neutral-fill-strong-hover").withDefault(t=>Dl.getValueFor(t).evaluate(t).hover),Ol=Pn("neutral-fill-strong-active").withDefault(t=>Dl.getValueFor(t).evaluate(t).active),El=Pn("neutral-fill-strong-focus").withDefault(t=>Dl.getValueFor(t).evaluate(t).focus),Rl=Mn("neutral-foreground-recipe").withDefault({evaluate:(t,e)=>En(ga.getValueFor(t),e||Sa.getValueFor(t),16,0,-19,-30,0)}),Al=Pn("neutral-foreground-rest").withDefault(t=>Rl.getValueFor(t).evaluate(t).rest),Ll=Pn("neutral-foreground-hover").withDefault(t=>Rl.getValueFor(t).evaluate(t).hover),zl=Pn("neutral-foreground-active").withDefault(t=>Rl.getValueFor(t).evaluate(t).active),Hl=Pn("neutral-foreground-focus").withDefault(t=>Rl.getValueFor(t).evaluate(t).focus),Pl=Mn("neutral-foreground-hint-recipe").withDefault({evaluate:(t,e)=>function(t,e,i){return t.colorContrast(e,i)}(ga.getValueFor(t),e||Sa.getValueFor(t),4.5)}),Ml=Pn("neutral-foreground-hint").withDefault(t=>Pl.getValueFor(t).evaluate(t)),Bl=Mn("neutral-stroke-recipe").withDefault({evaluate:(t,e)=>Rn(ga.getValueFor(t),e||Sa.getValueFor(t),Zr.getValueFor(t),Jr.getValueFor(t),ta.getValueFor(t),ea.getValueFor(t))}),Nl=Pn("neutral-stroke-rest").withDefault(t=>Bl.getValueFor(t).evaluate(t).rest),jl=Pn("neutral-stroke-hover").withDefault(t=>Bl.getValueFor(t).evaluate(t).hover),Ul=Pn("neutral-stroke-active").withDefault(t=>Bl.getValueFor(t).evaluate(t).active),ql=Pn("neutral-stroke-focus").withDefault(t=>Bl.getValueFor(t).evaluate(t).focus),_l=Mn("neutral-stroke-control-recipe").withDefault({evaluate:(t,e)=>On(ga.getValueFor(t),e||Sa.getValueFor(t),ia.getValueFor(t),oa.getValueFor(t),sa.getValueFor(t),na.getValueFor(t),5)}),Gl=Pn("neutral-stroke-control-rest").withDefault(t=>_l.getValueFor(t).evaluate(t).rest),Wl=Pn("neutral-stroke-control-hover").withDefault(t=>_l.getValueFor(t).evaluate(t).hover),Kl=Pn("neutral-stroke-control-active").withDefault(t=>_l.getValueFor(t).evaluate(t).active),Xl=Pn("neutral-stroke-control-focus").withDefault(t=>_l.getValueFor(t).evaluate(t).focus),Yl=Mn("neutral-stroke-divider-recipe").withDefault({evaluate:(t,e)=>function(t,e,i){return t.get(t.closestIndexOf(e)+vn(e)*i)}(ga.getValueFor(t),e||Sa.getValueFor(t),ra.getValueFor(t))}),Ql=Pn("neutral-stroke-divider-rest").withDefault(t=>Yl.getValueFor(t).evaluate(t)),Zl=Mn("neutral-stroke-input-recipe").withDefault({evaluate:(t,e)=>function(t,e,i,o,s,n,r,a){const l=t.closestIndexOf(e),c=vn(e),h=l+c*i,d=h+c*(o-i),u=h+c*(s-i),p=h+c*(n-i),g=`calc(100% - ${a})`;function f(e,i){const o=t.get(e);if(i){const i=t.get(e+c*r),s=`linear-gradient(${o.toColorString()} ${g}, ${i.toColorString()} ${g}, ${i.toColorString()})`;return Dn.fromObject(o,s)}return o}return{rest:f(h,!0),hover:f(d,!0),active:f(u,!1),focus:f(p,!0)}}(ga.getValueFor(t),e||Sa.getValueFor(t),ia.getValueFor(t),oa.getValueFor(t),sa.getValueFor(t),na.getValueFor(t),20,Kn.getValueFor(t)+"px")}),Jl=Pn("neutral-stroke-input-rest").withDefault(t=>Zl.getValueFor(t).evaluate(t).rest),tc=Pn("neutral-stroke-input-hover").withDefault(t=>Zl.getValueFor(t).evaluate(t).hover),ec=Pn("neutral-stroke-input-active").withDefault(t=>Zl.getValueFor(t).evaluate(t).active),ic=Pn("neutral-stroke-input-focus").withDefault(t=>Zl.getValueFor(t).evaluate(t).focus),oc=Mn("neutral-stroke-layer-recipe").withDefault({evaluate:(t,e)=>Rn(ga.getValueFor(t),e||Sa.getValueFor(t),aa.getValueFor(t),la.getValueFor(t),ca.getValueFor(t),aa.getValueFor(t))}),sc=Pn("neutral-stroke-layer-rest").withDefault(t=>oc.getValueFor(t).evaluate(t).rest),nc=Pn("neutral-stroke-layer-hover").withDefault(t=>oc.getValueFor(t).evaluate(t).hover),rc=Pn("neutral-stroke-layer-active").withDefault(t=>oc.getValueFor(t).evaluate(t).active),ac=Mn("neutral-stroke-strong-recipe").withDefault({evaluate:(t,e)=>En(ga.getValueFor(t),e||Sa.getValueFor(t),5.5,0,ha.getValueFor(t),da.getValueFor(t),ua.getValueFor(t))}),lc=Pn("neutral-stroke-strong-rest").withDefault(t=>ac.getValueFor(t).evaluate(t).rest),cc=Pn("neutral-stroke-strong-hover").withDefault(t=>ac.getValueFor(t).evaluate(t).hover),hc=Pn("neutral-stroke-strong-active").withDefault(t=>ac.getValueFor(t).evaluate(t).active),dc=Pn("neutral-stroke-strong-focus").withDefault(t=>ac.getValueFor(t).evaluate(t).focus),uc=Mn("focus-stroke-outer-recipe").withDefault({evaluate:t=>(ga.getValueFor(t),bn(Sa.getValueFor(t))?wn:kn)}),pc=Pn("focus-stroke-outer").withDefault(t=>uc.getValueFor(t).evaluate(t)),gc=Mn("focus-stroke-inner-recipe").withDefault({evaluate:t=>{return ma.getValueFor(t),e=Sa.getValueFor(t),pc.getValueFor(t),bn(e)?kn:wn;var e}}),fc=Pn("focus-stroke-inner").withDefault(t=>gc.getValueFor(t).evaluate(t)),mc=Mn("foreground-on-accent-large-recipe").withDefault({evaluate:t=>Tn(Ea.getValueFor(t),Ra.getValueFor(t),Aa.getValueFor(t),La.getValueFor(t),Va.large)}),bc=Pn("foreground-on-accent-rest-large").withDefault(t=>mc.getValueFor(t).evaluate(t).rest),vc=Pn("foreground-on-accent-hover-large").withDefault(t=>mc.getValueFor(t).evaluate(t,Ra.getValueFor(t)).hover),yc=Pn("foreground-on-accent-active-large").withDefault(t=>mc.getValueFor(t).evaluate(t,Aa.getValueFor(t)).active),xc=Pn("foreground-on-accent-focus-large").withDefault(t=>mc.getValueFor(t).evaluate(t,La.getValueFor(t)).focus),$c=Pn("neutral-fill-inverse-rest-delta").withDefault(0),wc=Pn("neutral-fill-inverse-hover-delta").withDefault(-3),kc=Pn("neutral-fill-inverse-active-delta").withDefault(7),Cc=Pn("neutral-fill-inverse-focus-delta").withDefault(0);const Ic=Mn("neutral-fill-inverse-recipe").withDefault({evaluate:(t,e)=>function(t,e,i,o,s,n){const r=vn(e),a=t.closestIndexOf(t.colorContrast(e,14)),l=a+r*Math.abs(i-o);let c,h;return(1===r?i<o:r*i>r*o)?(c=a,h=l):(c=l,h=a),{rest:t.get(c),hover:t.get(h),active:t.get(c+r*s),focus:t.get(c+r*n)}}(ga.getValueFor(t),e||Sa.getValueFor(t),$c.getValueFor(t),wc.getValueFor(t),kc.getValueFor(t),Cc.getValueFor(t))}),Fc=Pn("neutral-fill-inverse-rest").withDefault(t=>Ic.getValueFor(t).evaluate(t).rest),Tc=Pn("neutral-fill-inverse-hover").withDefault(t=>Ic.getValueFor(t).evaluate(t).hover),Dc=Pn("neutral-fill-inverse-active").withDefault(t=>Ic.getValueFor(t).evaluate(t).active),Sc=Pn("neutral-fill-inverse-focus").withDefault(t=>Ic.getValueFor(t).evaluate(t).focus),Vc=Gn,Oc=Wn,Ec=Kn,Rc=Xn,Ac=$c,Lc=wc,zc=kc,Hc=Cc,Pc=zr,Mc=Kr,Bc=Xr,Nc=Yr,jc=Qr,Uc=ra,qc=wa,_c=Ca,Gc=Fa,Wc=Da,Kc=Ha,Xc=bc,Yc=Ql,Qc=pl,Zc=Fc,Jc=Tc,th=Dc,eh=Sc,ih=Sl,oh=Vl,sh=Ol,nh=El,rh=pc,ah=fc,lh=Nl,ch=jl,hh=Ul,dh=ql,uh=(t,e)=>Dt`
|
|
22
|
+
${oo("flex")} :host{box-sizing:border-box;flex-direction:column;font-family:${Yn};font-size:${Qn};line-height:${Zn};color:${Al};gap:calc(${_n} * 1px)}`,ph=Vt`(${jn} + ${qn}) * ${_n}`,gh=ko.create("neutral-fill-stealth-rest-on-neutral-fill-layer-rest").withDefault(t=>{const e=ul.getValueFor(t);return kl.getValueFor(t).evaluate(t,e.evaluate(t).rest).rest}),fh=ko.create("neutral-fill-stealth-hover-on-neutral-fill-layer-rest").withDefault(t=>{const e=ul.getValueFor(t);return kl.getValueFor(t).evaluate(t,e.evaluate(t).rest).hover}),mh=ko.create("neutral-fill-stealth-active-on-neutral-fill-layer-rest").withDefault(t=>{const e=ul.getValueFor(t);return kl.getValueFor(t).evaluate(t,e.evaluate(t).rest).active}),bh=(t,e)=>Dt`
|
|
23
|
+
${oo("flex")} :host{box-sizing:border-box;font-family:${Yn};flex-direction:column;font-size:${Qn};line-height:${Zn};background:${pl};color:${Al};border:calc(${Kn} * 1px) solid ${sc};border-radius:calc(${Wn} * 1px)}.region{display:none;padding:calc(${_n} * 2 * 1px);background:${bl}}.heading{display:grid;position:relative;grid-template-columns:auto 1fr auto auto;align-items:center}.button{appearance:none;border:none;background:none;grid-column:2;grid-row:1;outline:none;margin:calc(${_n} * 3 * 1px) 0;padding:0 calc(${_n} * 2 * 1px);text-align:left;color:inherit;cursor:pointer;font-family:inherit}.button::before{content:'';position:absolute;top:0;left:0;right:0;bottom:0;cursor:pointer}.button:${so}::before{outline:none;border:calc(${Kn} * 1px) solid ${pc};border-radius:calc(${Wn} * 1px);box-shadow:0 0 0 calc((${Xn} - ${Kn}) * 1px) ${pc}}:host(.expanded) .button:${so}::before{border-bottom-left-radius:0;border-bottom-right-radius:0}:host(.expanded) .region{display:block;border-top:calc(${Kn} * 1px) solid ${sc};border-bottom-left-radius:calc((${Wn} - ${Kn}) * 1px);border-bottom-right-radius:calc((${Wn} - ${Kn}) * 1px)}.icon{display:flex;align-items:center;justify-content:center;grid-column:4;pointer-events:none;background:${gh};border-radius:calc(${Gn} * 1px);fill:currentcolor;width:calc(${ph} * 1px);height:calc(${ph} * 1px);margin:calc(${_n} * 2 * 1px)}.heading:hover .icon{background:${fh}}.heading:active .icon{background:${mh}}slot[name='collapsed-icon']{display:flex}:host(.expanded) slot[name='collapsed-icon']{display:none}slot[name='expanded-icon']{display:none}:host(.expanded) slot[name='expanded-icon']{display:flex}.start{display:flex;align-items:center;padding-inline-start:calc(${_n} * 2 * 1px);justify-content:center;grid-column:1}.end{display:flex;align-items:center;justify-content:center;grid-column:3}.icon,.start,.end{position:relative}`.withBehaviors(eo(Dt`
|
|
24
|
+
.button:${so}::before{border-color:${si.Highlight};box-shadow:0 0 0 calc((${Xn} - ${Kn}) * 1px) ${si.Highlight}}.icon{fill:${si.ButtonText}}`)),vh=Ge.compose({baseName:"accordion-item",template:(t,e)=>nt`<template class="${t=>t.expanded?"expanded":""}"><div class="heading" part="heading" role="heading" aria-level="${t=>t.headinglevel}"><button class="button" part="button" ${Bt("expandbutton")} aria-expanded="${t=>t.expanded}" aria-controls="${t=>t.id}-panel" id="${t=>t.id}" @click="${(t,e)=>t.clickHandler(e.event)}"><span class="heading"><slot name="heading" part="heading"></slot></span></button>${ie(0,e)} ${ee(0,e)}<span class="icon" part="icon" aria-hidden="true"><slot name="expanded-icon" part="expanded-icon">${e.expandedIcon||""}</slot><slot name="collapsed-icon" part="collapsed-icon">${e.collapsedIcon||""}</slot><span></div><div class="region" part="region" id="${t=>t.id}-panel" role="region" aria-labelledby="${t=>t.id}"><slot></slot></div></template>`,styles:bh,collapsedIcon:'\n <svg width="12" height="12" xmlns="http://www.w3.org/2000/svg">\n <path d="M2.15 4.65c.2-.2.5-.2.7 0L6 7.79l3.15-3.14a.5.5 0 11.7.7l-3.5 3.5a.5.5 0 01-.7 0l-3.5-3.5a.5.5 0 010-.7z"/>\n </svg>\n ',expandedIcon:'\n <svg width="12" height="12" xmlns="http://www.w3.org/2000/svg">\n <path d="M2.15 7.35c.2.2.5.2.7 0L6 4.21l3.15 3.14a.5.5 0 10.7-.7l-3.5-3.5a.5.5 0 00-.7 0l-3.5 3.5a.5.5 0 000 .7z"/>\n </svg>\n '}),yh=bh,xh=ri.compose({baseName:"accordion",template:(t,e)=>nt`<template><slot ${Qt({property:"accordionItems",filter:Kt()})}></slot><slot name="item" part="item" ${Qt("accordionItems")}></slot></template>`,styles:uh}),$h=uh;
|
|
25
25
|
/*! *****************************************************************************
|
|
26
26
|
Copyright (c) Microsoft Corporation.
|
|
27
27
|
|
|
@@ -36,166 +36,166 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
36
36
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
37
37
|
PERFORMANCE OF THIS SOFTWARE.
|
|
38
38
|
***************************************************************************** */
|
|
39
|
-
function
|
|
40
|
-
${
|
|
41
|
-
:host .control{background:${
|
|
42
|
-
:host .control{background:padding-box linear-gradient(${
|
|
43
|
-
:host .control{forced-color-adjust:none;background:${
|
|
44
|
-
:host{height:auto;font-family:inherit;font-size:inherit;line-height:inherit;min-width:0}:host .control{display:inline;padding:0;background:transparent;border:none;box-shadow:none;line-height:1;text-decoration:underline 1px}:host .control:not([href]){background:transparent}:host .control${i}{background:transparent;color:${
|
|
45
|
-
:host .control${i}:hover{color:${
|
|
46
|
-
:host{color:${
|
|
47
|
-
:host .control{border-color:${
|
|
48
|
-
:host .control{background:transparent !important;border-color:${
|
|
49
|
-
:host .control${o}{border-color:${
|
|
50
|
-
:host .control{background:${
|
|
51
|
-
:host .control{background:${
|
|
52
|
-
:host{font-family:${
|
|
53
|
-
:host(:not([disabled]):active)::after{left:50%;width:40%;transform:translateX(-50%);border-bottom-left-radius:0;border-bottom-right-radius:0}:host(:not([disabled]):focus-within)::after{left:0;width:100%;transform:none}:host(:not([disabled]):active)::after,:host(:not([disabled]):focus-within:not(:active))::after{content:'';position:absolute;height:calc(${
|
|
54
|
-
:host ${i}{background:${
|
|
55
|
-
:host ${i}{background:${
|
|
56
|
-
:host ${i},:host(:hover:not([disabled])) ${i},:host(:active:not([disabled])) ${i},:host(:focus-within:not([disabled])) ${i}{background:${
|
|
57
|
-
:host .control:not([href]){cursor:default}${
|
|
58
|
-
`.withBehaviors(
|
|
59
|
-
:host{contain:layout;display:block}`,
|
|
60
|
-
${
|
|
61
|
-
${
|
|
62
|
-
${
|
|
63
|
-
:host(:not([href])),.start,.end,.separator{background:${
|
|
64
|
-
:host([disabled]){opacity:${
|
|
65
|
-
`.withBehaviors(
|
|
66
|
-
:host([disabled]){opacity:1}:host([disabled]) .control{border-color:${
|
|
67
|
-
${
|
|
68
|
-
:host([disabled]) .control{background:${
|
|
69
|
-
${
|
|
70
|
-
:host([disabled]) .control{border-color:${
|
|
71
|
-
${
|
|
72
|
-
`.withBehaviors(
|
|
73
|
-
:host([disabled]) .control{border-color:${
|
|
74
|
-
${
|
|
75
|
-
`.withBehaviors(
|
|
76
|
-
:host([disabled]) .control{border-color:${
|
|
77
|
-
.day.disabled::before{transform:translate(-50%,0) rotate(45deg)}`,
|
|
78
|
-
.day.disabled::before{transform:translate(50%,0) rotate(-45deg)}`;class
|
|
79
|
-
${
|
|
80
|
-
.day.selected{color:${
|
|
81
|
-
${
|
|
82
|
-
:host{background:${
|
|
83
|
-
${
|
|
84
|
-
.control{border-color:${
|
|
85
|
-
:host{background:${
|
|
86
|
-
:host(:not([disabled]):not([open]):hover){background:transparent}:host(:not([disabled]):not([open]):hover),:host(:not([disabled]):not([open]):active){border-color:${
|
|
87
|
-
${
|
|
88
|
-
:host{background:${
|
|
89
|
-
:host{background:${
|
|
90
|
-
${
|
|
39
|
+
function wh(t,e,i,o){var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r}class kh{constructor(t,e){this.cache=new WeakMap,this.ltr=t,this.rtl=e}bind(t){this.attach(t)}unbind(t){const e=this.cache.get(t);e&&Bn.unsubscribe(e)}attach(t){const e=this.cache.get(t)||new Ch(this.ltr,this.rtl,t),i=Bn.getValueFor(t);Bn.subscribe(e),e.attach(i),this.cache.set(t,e)}}class Ch{constructor(t,e,i){this.ltr=t,this.rtl=e,this.source=i,this.attached=null}handleChange({target:t,token:e}){this.attach(e.getValueFor(this.source))}attach(t){this.attached!==this[t]&&(null!==this.attached&&this.source.$fastController.removeStyles(this.attached),this.attached=this[t],null!==this.attached&&this.source.$fastController.addStyles(this.attached))}}const Ih="0 0 2px rgba(0, 0, 0, 0.14)",Fh="0 calc(var(--elevation) * 0.5px) calc((var(--elevation) * 1px)) rgba(0, 0, 0, 0.2)",Th=`box-shadow: 0 0 2px rgba(0, 0, 0, 0.14), ${Fh};`,Dh=ko.create({name:"elevation-shadow",cssCustomPropertyName:null}).withDefault({evaluate:(t,e,i)=>{let o=.12,s=.14;e>16&&(o=.2,s=.24);return`${`0 0 2px rgba(0, 0, 0, ${o})`}, ${`0 calc(${e} * 0.5px) calc((${e} * 1px)) rgba(0, 0, 0, ${s})`}`}}),Sh=ko.create("elevation-shadow-card-rest-size").withDefault(4),Vh=ko.create("elevation-shadow-card-hover-size").withDefault(8),Oh=ko.create("elevation-shadow-card-active-size").withDefault(0),Eh=ko.create("elevation-shadow-card-focus-size").withDefault(8),Rh=ko.create("elevation-shadow-card-rest").withDefault(t=>Dh.getValueFor(t).evaluate(t,Sh.getValueFor(t))),Ah=ko.create("elevation-shadow-card-hover").withDefault(t=>Dh.getValueFor(t).evaluate(t,Vh.getValueFor(t))),Lh=ko.create("elevation-shadow-card-active").withDefault(t=>Dh.getValueFor(t).evaluate(t,Oh.getValueFor(t))),zh=ko.create("elevation-shadow-card-focus").withDefault(t=>Dh.getValueFor(t).evaluate(t,Eh.getValueFor(t))),Hh=ko.create("elevation-shadow-tooltip-size").withDefault(16),Ph=ko.create("elevation-shadow-tooltip").withDefault(t=>Dh.getValueFor(t).evaluate(t,Hh.getValueFor(t))),Mh=ko.create("elevation-shadow-flyout-size").withDefault(32),Bh=ko.create("elevation-shadow-flyout").withDefault(t=>Dh.getValueFor(t).evaluate(t,Mh.getValueFor(t))),Nh=ko.create("elevation-shadow-dialog-size").withDefault(128),jh=ko.create("elevation-shadow-dialog").withDefault(t=>Dh.getValueFor(t).evaluate(t,Nh.getValueFor(t))),Uh=(t,e,i="",o="")=>Dt`
|
|
40
|
+
${oo("inline-flex")} :host{position:relative;box-sizing:border-box;font-family:${Yn};outline:none;font-size:${Qn};line-height:${Zn};height:calc(${ph} * 1px);min-width:calc(${ph} * 1px);color:${Al};border-radius:calc(${Gn} * 1px);fill:currentcolor;cursor:pointer}:host .control{background:padding-box linear-gradient(${Za},${Za}),border-box ${Gl};border:calc(${Kn} * 1px) solid transparent;flex-grow:1;box-sizing:border-box;display:inline-flex;justify-content:center;align-items:center;padding:0 calc((10 + (${_n} * 2 * ${qn})) * 1px);white-space:nowrap;outline:none;text-decoration:none;color:inherit;border-radius:inherit;fill:inherit;cursor:inherit;font-family:inherit}.control,.end,.start{font:inherit}.control.icon-only{padding:0;line-height:0}:host .control${i}:hover{background:padding-box linear-gradient(${Ja},${Ja}),border-box ${Wl}}:host .control${i}:active{background:padding-box linear-gradient(${tl},${tl}),border-box ${Kl}}:host .control:${so}{border-color:${pc} !important;box-shadow:0 0 0 calc((${Xn} - ${Kn}) * 1px) ${pc} inset !important}:host .control${o}{background:padding-box linear-gradient(${Za},${Za}),border-box ${Nl}}.control::-moz-focus-inner{border:0}.content{pointer-events:none}.start,.end{display:flex;pointer-events:none}.start{margin-inline-end:11px}.end{margin-inline-start:11px}`.withBehaviors(eo(Dt`
|
|
41
|
+
:host .control{background:${si.ButtonFace};border-color:${si.ButtonText};color:${si.ButtonText};fill:currentcolor}:host(:not([disabled])) .control:hover,:host .control${i}:hover,.control${i}:hover{forced-color-adjust:none;background:${si.Highlight};color:${si.HighlightText}}.control:${so},:host .control:${so},:host(:${so}) .control{forced-color-adjust:none;background:${si.ButtonFace};border-color:${si.Highlight} !important;box-shadow:0 0 0 calc((${Xn} - ${Kn}) * 1px) ${si.Highlight} !important}:host([href]) .control{background:${si.ButtonFace};border-color:${si.LinkText};color:${si.LinkText};fill:currentcolor}:host([href]) .control:hover,:host(.neutral[href]) .control:hover{background:${si.LinkText};border-color:${si.LinkText} !important;color:${si.HighlightText};fill:currentcolor}:host([href]) .control:${so}{forced-color-adjust:none;border-color:${si.LinkText} !important;box-shadow:0 0 0 calc((${Xn} - ${Kn}) * 1px) ${si.LinkText} !important}`)),qh=(t,e,i="",o="")=>Dt`
|
|
42
|
+
:host .control{background:padding-box linear-gradient(${Ea},${Ea}),border-box ${Wa};color:${Ha}}:host .control${i}:hover{background:padding-box linear-gradient(${Ra},${Ra}),border-box ${Ka};color:${Pa}}:host .control${i}:active{background:padding-box linear-gradient(${Aa},${Aa}),border-box ${Xa};color:${Ma}}:host .control:${so}{box-shadow:0 0 0 calc((${Xn} - ${Kn}) * 1px) ${pc} inset,0 0 0 calc(((${Xn} + ${Kn}) - ${Kn}) * 1px) ${fc} inset !important}:host .control${o}{background:${Ea}}`.withBehaviors(eo(Dt`
|
|
43
|
+
:host .control{forced-color-adjust:none;background:${si.Highlight};color:${si.HighlightText}}:host .control${i}:hover,:host .control${i}:active{background:${si.HighlightText};border-color:${si.Highlight};color:${si.Highlight}}:host .control:${so}{background:${si.Highlight};box-shadow:0 0 0 calc((${Xn} - ${Kn}) * 1px) ${si.Highlight} inset,0 0 0 calc(((${Xn} + ${Kn}) - ${Kn}) * 1px) ${si.HighlightText} inset !important}:host([href]) .control{background:${si.LinkText};color:${si.HighlightText}}:host([href]) .control:hover{background:${si.ButtonFace};border-color:${si.LinkText};box-shadow:none;color:${si.LinkText};fill:currentcolor}:host([href]) .control:${so}{background:${si.LinkText};box-shadow:0 0 0 calc((${Xn} - ${Kn}) * 1px) ${si.LinkText} inset,0 0 0 calc(((${Xn} + ${Kn}) - ${Kn}) * 1px) ${si.HighlightText} inset !important;color:${si.HighlightText};fill:currentcolor}`)),_h=(t,e,i="",o="")=>Dt`
|
|
44
|
+
:host{height:auto;font-family:inherit;font-size:inherit;line-height:inherit;min-width:0}:host .control{display:inline;padding:0;background:transparent;border:none;box-shadow:none;line-height:1;text-decoration:underline 1px}:host .control:not([href]){background:transparent}:host .control${i}{background:transparent;color:${ja}}:host .control${i}:hover{background:transparent;color:${Ua};text-decoration:none}:host .control${i}:active{background:transparent;color:${qa};text-decoration:none}:host .control:${so}{box-shadow:0 0 0 calc(${Xn} * 1px) ${pc} !important}:host .control${o}{background:transparent}`.withBehaviors(eo(Dt`
|
|
45
|
+
:host .control${i}:hover{color:${si.Highlight};fill:currentcolor}:host .control:${so}{color:${si.LinkText}}`)),Gh=(t,e,i="",o="")=>Dt`
|
|
46
|
+
:host{color:${ja}}:host .control{background:${Cl}}:host .control${i}:hover{background:${Il};color:${Ua}}:host .control${i}:active{background:${Fl};color:${qa}}:host .control${o}{background:${Cl}}`.withBehaviors(eo(Dt`
|
|
47
|
+
:host .control{border-color:${si.ButtonFace};color:${si.ButtonText}}:host .control${i}:hover,:host .control${i}:active,:host .control:${so}{border-color:${si.Highlight};background:${si.Highlight};box-shadow:none;color:${si.HighlightText}}:host([href]) .control{border-color:${si.ButtonFace};color:${si.LinkText}}:host([href]) .control:hover,:host([href]) .control:${so}{background:${si.ButtonFace};box-shadow:none;color:${si.LinkText}}`)),Wh=(t,e,i="",o="")=>Dt`
|
|
48
|
+
:host .control{background:transparent !important;border-color:${Nl}}:host .control${i}:hover{border-color:${jl}}:host .control${i}:active{border-color:${Ul}}:host .control${o}{background:transparent !important;border-color:${Nl}}`.withBehaviors(eo(Dt`
|
|
49
|
+
:host .control${o}{border-color:${si.ButtonText}}:host .control${i}:hover{border-color:${si.Highlight};color:${si.ButtonText}}:host([href]){border-color:${si.LinkText}}:host([href]) .control:hover{box-shadow:0 0 0 calc((${Xn} - ${Kn}) * 1px) ${si.LinkText};color:${si.LinkText}}`)),Kh=(t,e,i="",o="")=>Dt`
|
|
50
|
+
:host .control{background:${Cl}}:host .control${i}:hover{background:${Il}}:host .control${i}:active{background:${Fl}}:host .control${o}{background:${Cl}}`.withBehaviors(eo(Dt`
|
|
51
|
+
:host .control{background:${si.ButtonFace};border-color:${si.ButtonFace};color:${si.ButtonText};fill:currentcolor}:host .control${i}:hover,:host .control${i}:active,:host .control:${so}{background:${si.Highlight};border-color:${si.Highlight};box-shadow:none !important;color:${si.HighlightText};fill:currentcolor}:host([href]) .control{border-color:${si.ButtonFace};color:${si.LinkText}}:host([href]) .control:hover,:host([href]) .control:${so}{background:${si.LinkText};border-color:${si.LinkText};box-shadow:none !important;color:${si.HighlightText};fill:currentcolor}`)),Xh=ko.create("input-placeholder-rest").withDefault(t=>{const e=il.getValueFor(t);return Pl.getValueFor(t).evaluate(t,e.evaluate(t).rest)}),Yh=ko.create("input-placeholder-hover").withDefault(t=>{const e=il.getValueFor(t);return Pl.getValueFor(t).evaluate(t,e.evaluate(t).hover)}),Qh=ko.create("input-filled-placeholder-rest").withDefault(t=>{const e=vl.getValueFor(t);return Pl.getValueFor(t).evaluate(t,e.evaluate(t).rest)}),Zh=ko.create("input-filled-placeholder-hover").withDefault(t=>{const e=vl.getValueFor(t);return Pl.getValueFor(t).evaluate(t,e.evaluate(t).hover)}),Jh=(t,e,i)=>Dt`
|
|
52
|
+
:host{font-family:${Yn};font-size:${Qn};line-height:${Zn};color:${Al};fill:currentcolor;outline:none;user-select:none;position:relative}${i}{box-sizing:border-box;position:relative;color:inherit;background:padding-box linear-gradient(${ol},${ol}),border-box ${Jl};border:calc(${Kn} * 1px) solid transparent;border-radius:calc(${Gn} * 1px);height:calc(${ph} * 1px);font-family:inherit;font-size:inherit;line-height:inherit}.control{width:100%}.control:hover,.control:${so},.control:disabled,.control:active{outline:none}.label{display:block;color:${Al};cursor:pointer;font-size:${Qn};line-height:${Zn};margin-bottom:4px}.label__hidden{display:none;visibility:hidden}:host(:hover:not([disabled]):not(:focus-within)) ${i}{background:padding-box linear-gradient(${sl},${sl}),border-box ${tc}}:host(:not([disabled]):focus-within) ${i}{background:padding-box linear-gradient(${rl},${rl}),border-box ${Jl}}.control::placeholder{color:${Xh}}:host(:hover:not([disabled]):not(:focus-within)) .control::placeholder{color:${Yh}}:host([disabled]) ${i},:host([readonly]) ${i},:host([disabled]) .label,:host([readonly]) .label,:host([disabled]) .control,:host([readonly]) .control{cursor:${"not-allowed"}}:host([disabled]){opacity:${Nn}}:host([disabled]) ${i}{background:padding-box linear-gradient(${ol},${ol}),border-box ${Nl}}`,td=(t,e,i)=>Dt`
|
|
53
|
+
:host(:not([disabled]):active)::after{left:50%;width:40%;transform:translateX(-50%);border-bottom-left-radius:0;border-bottom-right-radius:0}:host(:not([disabled]):focus-within)::after{left:0;width:100%;transform:none}:host(:not([disabled]):active)::after,:host(:not([disabled]):focus-within:not(:active))::after{content:'';position:absolute;height:calc(${Xn} * 1px);bottom:0;border-bottom:calc(${Xn} * 1px) solid ${Ea};border-bottom-left-radius:calc(${Gn} * 1px);border-bottom-right-radius:calc(${Gn} * 1px);z-index:2;transition:all 300ms cubic-bezier(0.1,0.9,0.2,1)}`,ed=(t,e,i)=>Dt`
|
|
54
|
+
:host ${i}{background:${yl};border-color:transparent}:host(:hover:not([disabled]):not(:focus-within)) ${i}{background:${xl};border-color:transparent}.control::placeholder{color:${Qh}}:host(:hover:not([disabled]):not(:focus-within)) .control::placeholder{color:${Zh}}:host(:focus-within:not([disabled])) ${i}{border-color:transparent;box-shadow:none}`,id=(t,e,i)=>Dt`
|
|
55
|
+
:host ${i}{background:${si.Field};border-color:${si.FieldText}}:host(:hover:not([disabled]):not(:focus-within)) ${i}{border-color:${si.Highlight}}:host(:not([disabled]):active)::after,:host(:not([disabled]):focus-within:not(:active))::after{border-bottom-color:${si.Highlight}}:host([disabled]){opacity:1}:host([disabled]) ${i}{border-color:${si.GrayText}}:host([disabled]) ::placeholder,:host([disabled]) ::-webkit-input-placeholder,:host([disabled]) .label{color:${si.GrayText};fill:currentcolor}`,od=(t,e,i)=>Dt`
|
|
56
|
+
:host ${i},:host(:hover:not([disabled])) ${i},:host(:active:not([disabled])) ${i},:host(:focus-within:not([disabled])) ${i}{background:${si.Field};border-color:${si.FieldText}}:host(:not([disabled]):active)::after,:host(:not([disabled]):focus-within:not(:active))::after{border-bottom-color:${si.Highlight}}:host([disabled]) ${i}{border-color:${si.GrayText}}`;function sd(t,e){return new io("appearance",t,e)}const nd=(t,e)=>Dt`
|
|
57
|
+
:host .control:not([href]){cursor:default}${Uh(0,0,"[href]",":not([href])")}
|
|
58
|
+
`.withBehaviors(sd("accent",qh(0,0,"[href]",":not([href])")),sd("hypertext",_h(0,0,"[href]",":not([href])")),sd("lightweight",Gh(0,0,"[href]",":not([href])")),sd("outline",Wh(0,0,"[href]",":not([href])")),sd("stealth",Kh(0,0,"[href]",":not([href])")));class rd extends ci{appearanceChanged(t,e){t!==e&&(this.classList.add(e),this.classList.remove(t))}connectedCallback(){super.connectedCallback(),this.appearance||(this.appearance="neutral")}defaultSlottedContentChanged(){const t=this.defaultSlottedContent.filter(t=>t.nodeType===Node.ELEMENT_NODE);1===t.length&&t[0]instanceof SVGElement?this.control.classList.add("icon-only"):this.control.classList.remove("icon-only")}}wh([ft],rd.prototype,"appearance",void 0);const ad=nd,ld=rd.compose({baseName:"anchor",baseClass:ci,template:ai,styles:nd,shadowOptions:{delegatesFocus:!0}}),cd=(t,e)=>Dt`
|
|
59
|
+
:host{contain:layout;display:block}`,hd=ui.compose({baseName:"anchored-region",template:(t,e)=>nt`<template class="${t=>t.initialLayoutComplete?"loaded":""}">${Nt(t=>t.initialLayoutComplete,nt`<slot></slot>`)}</template>`,styles:cd}),dd=cd,ud=(t,e)=>Dt`
|
|
60
|
+
${oo("inline-block")} :host{box-sizing:border-box;font-family:${Yn};font-size:${Jn};line-height:${tr}}.control{border-radius:calc(${Gn} * 1px);padding:calc(((${_n} * 0.5) - ${Kn}) * 1px) calc((${_n} - ${Kn}) * 1px);border:calc(${Kn} * 1px) solid transparent}:host(.lightweight) .control{background:transparent;color:${Al};font-weight:600}:host(.accent) .control{background:${Ea};color:${Ha}}:host(.neutral) .control{background:${yl};color:${Al}}:host([circular]) .control{border-radius:100px;min-width:calc(${tr} - calc(${_n} * 1px));display:flex;align-items:center;justify-content:center}`;class pd extends pi{constructor(){super(...arguments),this.appearance="lightweight"}appearanceChanged(t,e){t!==e&&d.queueUpdate(()=>{this.classList.add(e),this.classList.remove(t)})}}wh([ft({mode:"fromView"})],pd.prototype,"appearance",void 0);const gd=pd.compose({baseName:"badge",baseClass:pi,template:(t,e)=>nt`<template class="${t=>t.circular?"circular":""}"><div class="control" part="control" style="${t=>t.generateBadgeStyle()}"><slot></slot></div></template>`,styles:ud}),fd=ud,md=(t,e)=>Dt`
|
|
61
|
+
${oo("inline-block")} :host{box-sizing:border-box;font-family:${Yn};font-size:${Qn};line-height:${Zn}}.list{display:flex}`,bd=fi.compose({baseName:"breadcrumb",template:(t,e)=>nt`<template role="navigation"><div role="list" class="list" part="list"><slot ${Qt({property:"slottedBreadcrumbItems",filter:Kt()})}></slot></div></template>`,styles:md}),vd=md,yd=(t,e)=>Dt`
|
|
62
|
+
${oo("inline-flex")} :host{background:transparent;color:${Al};fill:currentcolor;box-sizing:border-box;font-family:${Yn};font-size:${Qn};line-height:${Zn};min-width:calc(${ph} * 1px);border-radius:calc(${Gn} * 1px);outline:none}.listitem{display:flex;align-items:center;border-radius:inherit}.control{position:relative;align-items:center;box-sizing:border-box;color:inherit;fill:inherit;cursor:pointer;display:flex;outline:none;text-decoration:none;white-space:nowrap;border-radius:inherit}.control:hover{color:${Ll}}.control:active{color:${zl}}.control:${so}::after{content:'';position:absolute;inset:calc(${Kn} * -1px);box-shadow:0 0 0 calc(${Xn} * 1px) ${pc} inset;border-radius:inherit}:host(:not([href])),:host([aria-current]) .control{color:${Al};fill:currentcolor;cursor:default}.start{display:flex;margin-inline-end:6px}.end{display:flex;margin-inline-start:6px}.separator{display:flex}`.withBehaviors(eo(Dt`
|
|
63
|
+
:host(:not([href])),.start,.end,.separator{background:${si.ButtonFace};color:${si.ButtonText};fill:currentcolor}.separator{fill:${si.ButtonText}}:host([href]){forced-color-adjust:none;background:${si.ButtonFace};color:${si.LinkText}}:host([href]) .control:hover{background:${si.LinkText};color:${si.HighlightText};fill:currentcolor}:host([href]) .control:${so}::after{box-shadow:0 0 0 calc(${Xn} * 1px) ${si.LinkText} inset}`)),xd=gi.compose({baseName:"breadcrumb-item",template:(t,e)=>nt`<div role="listitem" class="listitem" part="listitem">${Nt(t=>t.href&&t.href.length>0,nt` ${ai(0,e)} `)} ${Nt(t=>!t.href,nt` ${ie(0,e)}<slot></slot>${ee(0,e)} `)} ${Nt(t=>t.separator,nt`<span class="separator" part="separator" aria-hidden="true"><slot name="separator">${e.separator||""}</slot></span>`)}</div>`,styles:yd,shadowOptions:{delegatesFocus:!0},separator:'\n <svg width="12" height="12" xmlns="http://www.w3.org/2000/svg">\n <path d="M4.65 2.15a.5.5 0 000 .7L7.79 6 4.65 9.15a.5.5 0 10.7.7l3.5-3.5a.5.5 0 000-.7l-3.5-3.5a.5.5 0 00-.7 0z"/>\n </svg>\n '}),$d=yd,wd=(t,e)=>Dt`
|
|
64
|
+
:host([disabled]){opacity:${Nn};cursor:${"not-allowed"}}${Uh(0,0,":not([disabled])","[disabled]")}
|
|
65
|
+
`.withBehaviors(eo(Dt`
|
|
66
|
+
:host([disabled]){opacity:1}:host([disabled]) .control{border-color:${si.GrayText};color:${si.GrayText};fill:currentcolor}`),sd("accent",Dt`
|
|
67
|
+
${qh(0,0,":not([disabled])","[disabled]")},`.withBehaviors(eo(Dt`
|
|
68
|
+
:host([disabled]) .control{background:${si.ButtonFace}}`))),sd("lightweight",Dt`
|
|
69
|
+
${Gh(0,0,":not([disabled])","[disabled]")},`.withBehaviors(eo(Dt`
|
|
70
|
+
:host([disabled]) .control{border-color:${si.ButtonFace}}`))),sd("outline",Dt`
|
|
71
|
+
${Wh(0,0,":not([disabled])","[disabled]")}
|
|
72
|
+
`.withBehaviors(eo(Dt`
|
|
73
|
+
:host([disabled]) .control{border-color:${si.GrayText}}`))),sd("stealth",Dt`
|
|
74
|
+
${Kh(0,0,":not([disabled])","[disabled]")}
|
|
75
|
+
`.withBehaviors(eo(Dt`
|
|
76
|
+
:host([disabled]) .control{border-color:${si.ButtonFace}}`))));class kd extends wi{appearanceChanged(t,e){t!==e&&(this.classList.add(e),this.classList.remove(t))}connectedCallback(){super.connectedCallback(),this.appearance||(this.appearance="neutral")}defaultSlottedContentChanged(){const t=this.defaultSlottedContent.filter(t=>t.nodeType===Node.ELEMENT_NODE);1===t.length&&t[0]instanceof SVGElement?this.control.classList.add("icon-only"):this.control.classList.remove("icon-only")}}wh([ft],kd.prototype,"appearance",void 0);const Cd=kd.compose({baseName:"button",baseClass:wi,template:(t,e)=>nt`<button class="control" part="control" ?autofocus="${t=>t.autofocus}" ?disabled="${t=>t.disabled}" form="${t=>t.formId}" formaction="${t=>t.formaction}" formenctype="${t=>t.formenctype}" formmethod="${t=>t.formmethod}" formnovalidate="${t=>t.formnovalidate}" formtarget="${t=>t.formtarget}" name="${t=>t.name}" type="${t=>t.type}" value="${t=>t.value}" aria-atomic="${t=>t.ariaAtomic}" aria-busy="${t=>t.ariaBusy}" aria-controls="${t=>t.ariaControls}" aria-current="${t=>t.ariaCurrent}" aria-describedby="${t=>t.ariaDescribedby}" aria-details="${t=>t.ariaDetails}" aria-disabled="${t=>t.ariaDisabled}" aria-errormessage="${t=>t.ariaErrormessage}" aria-expanded="${t=>t.ariaExpanded}" aria-flowto="${t=>t.ariaFlowto}" aria-haspopup="${t=>t.ariaHaspopup}" aria-hidden="${t=>t.ariaHidden}" aria-invalid="${t=>t.ariaInvalid}" aria-keyshortcuts="${t=>t.ariaKeyshortcuts}" aria-label="${t=>t.ariaLabel}" aria-labelledby="${t=>t.ariaLabelledby}" aria-live="${t=>t.ariaLive}" aria-owns="${t=>t.ariaOwns}" aria-pressed="${t=>t.ariaPressed}" aria-relevant="${t=>t.ariaRelevant}" aria-roledescription="${t=>t.ariaRoledescription}" ${Bt("control")}>${ie(0,e)}<span class="content" part="content"><slot ${Qt("defaultSlottedContent")}></slot></span>${ee(0,e)}</button>`,styles:wd,shadowOptions:{delegatesFocus:!0}}),Id=wd,Fd=Dt`
|
|
77
|
+
.day.disabled::before{transform:translate(-50%,0) rotate(45deg)}`,Td=Dt`
|
|
78
|
+
.day.disabled::before{transform:translate(50%,0) rotate(-45deg)}`;class Dd extends Ii{constructor(){super(...arguments),this.readonly=!0}}wh([ft({converter:ut})],Dd.prototype,"readonly",void 0);const Sd=Dd.compose({baseName:"calendar",template:(t,e)=>{var i;const o=new Date,s=`${o.getMonth()+1}-${o.getDate()}-${o.getFullYear()}`;return nt`<template>${se} ${e.title instanceof Function?e.title(t,e):null!==(i=e.title)&&void 0!==i?i:""}<slot></slot>${Nt(t=>!1===t.readonly,zi(t,s))} ${Nt(t=>!0===t.readonly,(t=>nt`<div class="days" part="days"><div class="week-days" part="week-days">${Wt(t=>t.getWeekdayText(),nt`<div class="week-day" part="week-day" abbr="${t=>t.abbr}">${t=>t.text}</div>`)}</div>${Wt(t=>t.getDays(),nt`<div class="week">${Wt(t=>t,nt`<div class="${(e,i)=>i.parentContext.parent.getDayClassNames(e,t)}" part="day" aria-label="${(t,e)=>e.parentContext.parent.dateFormatter.getDate(`${t.month}-${t.day}-${t.year}`,{month:"long",day:"numeric"})}"><div class="date" part="${e=>t===`${e.month}-${e.day}-${e.year}`?"today":"date"}">${(t,e)=>e.parentContext.parent.dateFormatter.getDay(t.day)}</div><slot name="${t=>t.month}-${t=>t.day}-${t=>t.year}"></slot></div>`)}</div>`)}</div>`)(s))} ${oe}</template>`},styles:(t,e)=>Dt`
|
|
79
|
+
${oo("inline-block")} :host{--calendar-cell-size:calc((${jn} + 2 + ${qn}) * ${_n} * 1px);--calendar-gap:2px;font-family:${Yn};font-size:${Qn};line-height:${Zn};color:${Al}}.title{padding:calc(${_n} * 2px);font-weight:600}.days{text-align:center}.week-days,.week{display:grid;grid-template-columns:repeat(7,1fr);grid-gap:var(--calendar-gap);border:0;padding:0}.day,.week-day{border:0;width:var(--calendar-cell-size);height:var(--calendar-cell-size);line-height:var(--calendar-cell-size);padding:0;box-sizing:initial}.week-day{font-weight:600}.day{border:calc(${Kn} * 1px) solid transparent;border-radius:calc(${Gn} * 1px)}.interact .day{cursor:pointer}.date{height:100%}.inactive .date,.inactive.disabled::before{color:${Ml}}.disabled::before{content:'';display:inline-block;width:calc(var(--calendar-cell-size) * .8);height:calc(${Kn} * 1px);background:currentColor;position:absolute;margin-top:calc(var(--calendar-cell-size) / 2);transform-origin:center;z-index:1}.selected{color:${Ea};border:1px solid ${Ea};background:${Sa}}.selected + .selected{border-start-start-radius:0;border-end-start-radius:0;border-inline-start-width:0;padding-inline-start:calc(var(--calendar-gap) + (${Kn} + ${Gn}) * 1px);margin-inline-start:calc((${Gn} * -1px) - var(--calendar-gap))}.today.disabled::before{color:${Ha}}.today .date{color:${Ha};background:${Ea};border-radius:50%;position:relative}`.withBehaviors(eo(Dt`
|
|
80
|
+
.day.selected{color:${si.Highlight}}.today .date{background:${si.Highlight};color:${si.HighlightText}}`),new kh(Fd,Td)),title:Ai}),Vd=(t,e)=>Dt`
|
|
81
|
+
${oo("block")} :host{display:block;contain:content;height:var(--card-height,100%);width:var(--card-width,100%);box-sizing:border-box;background:${Sa};color:${Al};border:calc(${Kn} * 1px) solid ${sc};border-radius:calc(${Wn} * 1px);box-shadow:${Rh}}:host{content-visibility:auto}`.withBehaviors(eo(Dt`
|
|
82
|
+
:host{background:${si.Canvas};color:${si.CanvasText}}`));class Od extends Hi{cardFillColorChanged(t,e){if(e){const t=un(e);null!==t&&(this.neutralPaletteSource=e,Sa.setValueFor(this,gn.create(t.r,t.g,t.b)))}}neutralPaletteSourceChanged(t,e){if(e){const t=un(e),i=gn.create(t.r,t.g,t.b);ga.setValueFor(this,xn.create(i))}}handleChange(t,e){this.cardFillColor||Sa.setValueFor(this,e=>ul.getValueFor(e).evaluate(e,Sa.getValueFor(t)).rest)}connectedCallback(){super.connectedCallback();const t=Ji(this);if(t){const e=C.getNotifier(t);e.subscribe(this,"fillColor"),e.subscribe(this,"neutralPalette"),this.handleChange(t,"fillColor")}}}wh([ft({attribute:"card-fill-color",mode:"fromView"})],Od.prototype,"cardFillColor",void 0),wh([ft({attribute:"neutral-palette-source",mode:"fromView"})],Od.prototype,"neutralPaletteSource",void 0);const Ed=Od.compose({baseName:"card",baseClass:Hi,template:(t,e)=>nt`<slot></slot>`,styles:Vd}),Rd=Vd,Ad=(t,e)=>Dt`
|
|
83
|
+
${oo("inline-flex")} :host{align-items:center;outline:none;${""} user-select:none}.control{position:relative;width:calc((${ph} / 2 + ${_n}) * 1px);height:calc((${ph} / 2 + ${_n}) * 1px);box-sizing:border-box;border-radius:calc(${Gn} * 1px);border:calc(${Kn} * 1px) solid ${lc};background:${ll};outline:none;cursor:pointer}.label__hidden{display:none;visibility:hidden}.label{font-family:${Yn};color:${Al};${""} padding-inline-start:calc(${_n} * 2px + 2px);margin-inline-end:calc(${_n} * 2px + 2px);cursor:pointer;font-size:${Qn};line-height:${Zn}}slot[name='checked-indicator'],slot[name='indeterminate-indicator']{display:flex;align-items:center;justify-content:center;width:100%;height:100%;fill:${Al};opacity:0;pointer-events:none}slot[name='indeterminate-indicator']{position:absolute;top:0}:host(.checked) slot[name='checked-indicator'],:host(.checked) slot[name='indeterminate-indicator']{fill:${Ha}}:host(:not(.disabled):hover) .control{background:${cl};border-color:${cc}}:host(:not(.disabled):active) .control{background:${hl};border-color:${hc}}:host(:${so}) .control{box-shadow:0 0 0 1px ${Sa},0 0 0 3px ${pc};background:${dl};border-color:${pc}}:host(.checked) .control{background:${Ea};border-color:transparent}:host(.checked:not(.disabled):hover) .control{background:${Ra};border-color:transparent}:host(.checked:not(.disabled):active) .control{background:${Aa};border-color:transparent}:host(.disabled) .label,:host(.readonly) .label,:host(.readonly) .control,:host(.disabled) .control{cursor:${"not-allowed"}}:host(.checked:not(.indeterminate)) slot[name='checked-indicator'],:host(.indeterminate) slot[name='indeterminate-indicator']{opacity:1}:host(.disabled){opacity:${Nn}}`.withBehaviors(eo(Dt`
|
|
84
|
+
.control{border-color:${si.FieldText};background:${si.Field}}:host(:not(.disabled):hover) .control,:host(:not(.disabled):active) .control{border-color:${si.Highlight};background:${si.Field}}slot[name='checked-indicator'],slot[name='indeterminate-indicator']{fill:${si.FieldText}}:host(:${so}) .control{forced-color-adjust:none;box-shadow:0 0 0 1px ${si.Field},0 0 0 3px ${si.FieldText};background:${si.Field};border-color:${si.Highlight}}:host(.checked) .control{background:${si.Highlight};border-color:${si.Highlight}}:host(.checked:not(.disabled):hover) .control,:host(.checked:not(.disabled):active) .control{background:${si.HighlightText};border-color:${si.Highlight}}:host(.checked:${so}) .control{box-shadow:0 0 0 1px ${si.Field},0 0 0 3px ${si.FieldText}}:host(.checked) slot[name='checked-indicator'],:host(.checked) slot[name='indeterminate-indicator']{fill:${si.HighlightText}}:host(.checked:hover ) .control slot[name='checked-indicator'],:host(.checked:hover ) .control slot[name='indeterminate-indicator']{fill:${si.Highlight}}:host(.disabled){opacity:1}:host(.disabled) .control{border-color:${si.GrayText};background:${si.Field}}:host(.disabled) slot[name='checked-indicator'],:host(.checked.disabled:hover) .control slot[name='checked-indicator'],:host(.disabled) slot[name='indeterminate-indicator'],:host(.checked.disabled:hover) .control slot[name='indeterminate-indicator']{fill:${si.GrayText}}`)),Ld=Bi.compose({baseName:"checkbox",template:(t,e)=>nt`<template role="checkbox" aria-checked="${t=>t.checked}" aria-required="${t=>t.required}" aria-disabled="${t=>t.disabled}" aria-readonly="${t=>t.readOnly}" tabindex="${t=>t.disabled?null:0}" @keypress="${(t,e)=>t.keypressHandler(e.event)}" @click="${(t,e)=>t.clickHandler(e.event)}" class="${t=>t.readOnly?"readonly":""} ${t=>t.checked?"checked":""} ${t=>t.indeterminate?"indeterminate":""}"><div part="control" class="control"><slot name="checked-indicator">${e.checkedIndicator||""}</slot><slot name="indeterminate-indicator">${e.indeterminateIndicator||""}</slot></div><label part="label" class="${t=>t.defaultSlottedNodes&&t.defaultSlottedNodes.length?"label":"label label__hidden"}"><slot ${Qt("defaultSlottedNodes")}></slot></label></template>`,styles:Ad,checkedIndicator:'\n <svg width="16" height="16" xmlns="http://www.w3.org/2000/svg">\n <path d="M13.86 3.66a.5.5 0 01-.02.7l-7.93 7.48a.6.6 0 01-.84-.02L2.4 9.1a.5.5 0 01.72-.7l2.4 2.44 7.65-7.2a.5.5 0 01.7.02z"/>\n </svg>\n ',indeterminateIndicator:'\n <svg width="16" height="16" xmlns="http://www.w3.org/2000/svg">\n <path d="M3 8c0-.28.22-.5.5-.5h9a.5.5 0 010 1h-9A.5.5 0 013 8z"/>\n </svg>\n '}),zd=Ad,Hd=(t,e)=>Dt`
|
|
85
|
+
:host{background:${yl};border-color:transparent}:host(:not([disabled]):not([open]):hover){background:${xl};border-color:transparent}:host(:not([disabled]):not([open]):active){background:${$l};border-color:transparent}`.withBehaviors(eo(Dt`
|
|
86
|
+
:host(:not([disabled]):not([open]):hover){background:transparent}:host(:not([disabled]):not([open]):hover),:host(:not([disabled]):not([open]):active){border-color:${si.Highlight}}:host(:${so}){forced-color-adjust:none;background:transparent;border-color:${si.Highlight};box-shadow:0 0 0 1px inset ${si.Highlight}}`)),Pd=(t,e)=>Dt`
|
|
87
|
+
${oo("inline-flex")} :host{background:padding-box linear-gradient(${Za},${Za}),border-box ${Gl};border:calc(${Kn} * 1px) solid transparent;border-radius:calc(${Gn} * 1px);box-sizing:border-box;color:${Al};fill:currentcolor;font-family:${Yn};height:calc(${ph} * 1px);position:relative;user-select:none;min-width:250px;vertical-align:top}:host .listbox{box-shadow:${Bh};background:${Sa};border-radius:calc(${Wn} * 1px);box-sizing:border-box;display:inline-flex;flex-direction:column;left:0;max-height:calc(var(--max-height) - (${ph} * 1px));padding:calc((${_n} - ${Kn} ) * 1px) 0;overflow-y:auto;position:absolute;width:100%;z-index:1;margin:1px 0;border:calc(${Kn} * 1px) solid transparent}:host .listbox[hidden]{display:none}:host .control{align-items:center;box-sizing:border-box;cursor:pointer;display:flex;font-size:${Qn};font-family:inherit;min-height:100%;line-height:${Zn};padding:0 calc(${_n} * 2.25px);width:100%}:host(:not([disabled]):not([open]):hover){background:padding-box linear-gradient(${Ja},${Ja}),border-box ${Wl}}:host(:not([disabled]):not([open]):active){background:padding-box linear-gradient(${tl},${tl}),border-box ${Kl}}:host(:${so}){border-color:${pc};outline:none;box-shadow:0 0 0 1px inset ${pc}}:host([disabled]){cursor:${"not-allowed"};opacity:${Nn}}:host([disabled]) .control{cursor:${"not-allowed"};user-select:none}:host([open][position='above']) .listbox{bottom:calc((${ph} + ${_n} * 2) * 1px)}:host([open][position='below']) .listbox{top:calc((${ph} + ${_n} * 2) * 1px)}.selected-value{font-family:inherit;flex:1 1 auto;text-align:start}.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}.start{margin-inline-end:11px}.end{margin-inline-start:11px}.start,.end,.indicator,::slotted(svg){display:flex}::slotted([role='option']){flex:0 0 auto}`.withBehaviors(sd("filled",Hd()),sd("stealth",Dt`
|
|
88
|
+
:host{background:${Cl};border-color:transparent}:host(:not([disabled]):not([open]):hover){background:${Il};border-color:transparent}:host(:not([disabled]):not([open]):active){background:${Fl};border-color:transparent}`),eo(Dt`
|
|
89
|
+
:host{background:${si.ButtonFace};color:${si.ButtonText}}:host(:not([disabled]):not([open]):hover){background:transparent}:host(:not([disabled]):hover){border-color:${si.Highlight}}:host(:${so}){forced-color-adjust:none;border-color:${si.Highlight};box-shadow:0 0 0 1px inset ${si.Highlight}}:host([open]) .listbox{background:${si.ButtonFace};border-color:${si.CanvasText}}.start,.end,.indicator,::slotted(svg){fill:${si.FieldText}}:host([disabled]){border-color:${si.GrayText};color:${si.GrayText};opacity:1}:host([disabled]) .start,:host([disabled]) .end,:host([disabled]) .indicator,:host([disabled]) ::slotted(svg){fill:${si.GrayText}}`)),Md=(t,e)=>Dt`
|
|
90
|
+
${Pd()}
|
|
91
91
|
|
|
92
|
-
:host(:empty) .listbox{display:none}:host([disabled]) *,:host([disabled]){cursor:${"not-allowed"};user-select:none}:host(:active) .selected-value{user-select:none}.selected-value{-webkit-appearance:none;background:transparent;border:none;color:inherit;font-size:${
|
|
93
|
-
:host{display:flex;position:relative;flex-direction:column}`,
|
|
94
|
-
:host{display:grid;padding:1px 0;box-sizing:border-box;width:100%;border-bottom:calc(${
|
|
95
|
-
:host{}`)),
|
|
96
|
-
:host{padding:calc(${
|
|
97
|
-
:host{forced-color-adjust:none;border-color:transparent;background:${
|
|
98
|
-
:host{background-color:${
|
|
99
|
-
:host{background-color:${
|
|
100
|
-
${
|
|
101
|
-
`}),
|
|
102
|
-
:host([hidden]){display:none}:host{--dialog-height:480px;--dialog-width:640px;display:block}.overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,0.3);touch-action:none}.positioning-region{display:flex;justify-content:center;position:fixed;top:0;bottom:0;left:0;right:0;overflow:auto}.control{box-shadow:${
|
|
103
|
-
${
|
|
104
|
-
${
|
|
105
|
-
:host{background:${
|
|
106
|
-
.scroll-prev{right:auto;left:0}.scroll.scroll-next::before,.scroll-next .scroll-action{left:auto;right:0}.scroll.scroll-next::before{background:linear-gradient(to right,transparent,var(--scroll-fade-next))}.scroll-next .scroll-action{transform:translate(50%,-50%)}`,
|
|
107
|
-
.scroll.scroll-next{right:auto;left:0}.scroll.scroll-next::before{background:linear-gradient(to right,var(--scroll-fade-next),transparent);left:auto;right:0}.scroll.scroll-prev::before{background:linear-gradient(to right,transparent,var(--scroll-fade-previous))}.scroll-prev .scroll-action{left:auto;right:0;transform:translate(50%,-50%)}`,
|
|
108
|
-
.scroll-area{position:relative}div.scroll-view{overflow-x:hidden}.scroll{bottom:0;pointer-events:none;position:absolute;right:0;top:0;user-select:none;width:100px}.scroll.disabled{display:none}.scroll::before,.scroll-action{left:0;position:absolute}.scroll::before{background:linear-gradient(to right,var(--scroll-fade-previous),transparent);content:'';display:block;height:100%;width:100%}.scroll-action{pointer-events:auto;right:auto;top:50%;transform:translate(-50%,-50%)}::slotted(fluent-flipper){opacity:0;transition:opacity 0.2s ease-in-out}.scroll-area:hover ::slotted(fluent-flipper){opacity:1}`.withBehaviors(new
|
|
109
|
-
${
|
|
110
|
-
${
|
|
111
|
-
${
|
|
112
|
-
:host{background:${
|
|
113
|
-
${
|
|
114
|
-
:host([slot='submenu']){background:${
|
|
115
|
-
${
|
|
116
|
-
:host,::slotted([slot='end']:not(svg)){forced-color-adjust:none;color:${
|
|
92
|
+
:host(:empty) .listbox{display:none}:host([disabled]) *,:host([disabled]){cursor:${"not-allowed"};user-select:none}:host(:active) .selected-value{user-select:none}.selected-value{-webkit-appearance:none;background:transparent;border:none;color:inherit;font-size:${Qn};line-height:${Zn};height:calc(100% - ${Kn} * 1px));margin:auto 0;width:100%}.selected-value:hover,.selected-value:${so},.selected-value:disabled,.selected-value:active{outline:none}`.withBehaviors(sd("filled",Hd()));class Bd extends Qi{appearanceChanged(t,e){t!==e&&(this.classList.add(e),this.classList.remove(t))}connectedCallback(){super.connectedCallback(),this.appearance||(this.appearance="outline"),this.listbox&&Sa.setValueFor(this.listbox,xa)}}wh([ft({mode:"fromView"})],Bd.prototype,"appearance",void 0);const Nd=Bd.compose({baseName:"combobox",baseClass:Qi,shadowOptions:{delegatesFocus:!0},template:(t,e)=>nt`<template aria-disabled="${t=>t.ariaDisabled}" autocomplete="${t=>t.autocomplete}" class="${t=>t.open?"open":""} ${t=>t.disabled?"disabled":""} ${t=>t.position}" ?open="${t=>t.open}" tabindex="${t=>t.disabled?null:"0"}" @click="${(t,e)=>t.clickHandler(e.event)}" @focusout="${(t,e)=>t.focusoutHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}"><div class="control" part="control">${ie(0,e)}<slot name="control"><input aria-activedescendant="${t=>t.open?t.ariaActiveDescendant:null}" aria-autocomplete="${t=>t.ariaAutoComplete}" aria-controls="${t=>t.ariaControls}" aria-disabled="${t=>t.ariaDisabled}" aria-expanded="${t=>t.ariaExpanded}" aria-haspopup="listbox" class="selected-value" part="selected-value" placeholder="${t=>t.placeholder}" role="combobox" type="text" ?disabled="${t=>t.disabled}" :value="${t=>t.value}" @input="${(t,e)=>t.inputHandler(e.event)}" @keyup="${(t,e)=>t.keyupHandler(e.event)}" ${Bt("control")} /><div class="indicator" part="indicator" aria-hidden="true"><slot name="indicator">${e.indicator||""}</slot></div></slot>${ee(0,e)}</div><div class="listbox" id="${t=>t.listboxId}" part="listbox" role="listbox" ?disabled="${t=>t.disabled}" ?hidden="${t=>!t.open}" ${Bt("listbox")}><slot ${Qt({filter:qi.slottedOptionFilter,flatten:!0,property:"slottedOptions"})}></slot></div></template>`,styles:Md,indicator:'\n <svg width="12" height="12" xmlns="http://www.w3.org/2000/svg">\n <path d="M2.15 4.65c.2-.2.5-.2.7 0L6 7.79l3.15-3.14a.5.5 0 11.7.7l-3.5 3.5a.5.5 0 01-.7 0l-3.5-3.5a.5.5 0 010-.7z"/>\n </svg>\n '}),jd=Md,Ud=(t,e)=>Dt`
|
|
93
|
+
:host{display:flex;position:relative;flex-direction:column}`,qd=(t,e)=>Dt`
|
|
94
|
+
:host{display:grid;padding:1px 0;box-sizing:border-box;width:100%;border-bottom:calc(${Kn} * 1px) solid ${Ql}}:host(.header){}:host(.sticky-header){background:${Sa};position:sticky;top:0}`.withBehaviors(eo(Dt`
|
|
95
|
+
:host{}`)),_d=(t,e)=>Dt`
|
|
96
|
+
:host{padding:calc(${_n} * 1px) calc(${_n} * 3px);color:${Al};box-sizing:border-box;font-family:${Yn};font-size:${Qn};line-height:${Zn};font-weight:400;border:transparent calc(${Xn} * 1px) solid;overflow:hidden;outline:none;white-space:nowrap;border-radius:calc(${Gn} * 1px)}:host(.column-header){font-weight:600}:host(:${so}){border-color:${pc}}`.withBehaviors(eo(Dt`
|
|
97
|
+
:host{forced-color-adjust:none;border-color:transparent;background:${si.Field};color:${si.FieldText}}:host(:${so}){border-color:${si.FieldText};box-shadow:0 0 0 2px inset ${si.Field};color:${si.FieldText}}`)),Gd=Ri.compose({baseName:"data-grid-cell",template:(t,e)=>nt`<template tabindex="-1" role="${t=>{var e;return null!==(e=t.cellType)&&void 0!==e?e:"gridcell"}}" class=" ${t=>"columnheader"===t.cellType?"column-header":"rowheader"===t.cellType?"row-header":""} "><slot></slot></template>`,styles:_d}),Wd=_d,Kd=Si.compose({baseName:"data-grid-row",template:(t,e)=>nt`<template role="row" class="${t=>"default"!==t.rowType?t.rowType:""}" :defaultCellItemTemplate="${function(t){const e=t.tagFor(Ri);return nt`<${e} cell-type="${t=>t.isRowHeader?"rowheader":void 0}" grid-column="${(t,e)=>e.index+1}" :rowData="${(t,e)=>e.parent.rowData}" :columnDefinition="${t=>t}"></${e}>`}(t)}" :defaultHeaderCellItemTemplate="${function(t){const e=t.tagFor(Ri);return nt`<${e} cell-type="columnheader" grid-column="${(t,e)=>e.index+1}" :columnDefinition="${t=>t}"></${e}>`}(t)}" ${Jt({property:"cellElements",filter:Kt('[role="cell"],[role="gridcell"],[role="columnheader"],[role="rowheader"]')})}><slot ${Qt("slottedCellElements")}></slot></template>`,styles:qd}),Xd=qd,Yd=Vi.compose({baseName:"data-grid",template:(t,e)=>{const i=function(t){const e=t.tagFor(Si);return nt`<${e} :rowData="${t=>t}" :cellItemTemplate="${(t,e)=>e.parent.cellItemTemplate}" :headerCellItemTemplate="${(t,e)=>e.parent.headerCellItemTemplate}"></${e}>`}(t),o=t.tagFor(Si);return nt`<template role="grid" tabindex="0" :rowElementTag="${()=>o}" :defaultRowItemTemplate="${i}" ${Jt({property:"rowElements",filter:Kt("[role=row]")})}><slot></slot></template>`},styles:Ud}),Qd=Ud,Zd={toView(t){var e;return null==t?null:null===(e=t)||void 0===e?void 0:e.toColorString()},fromView(t){if(null==t)return null;const e=un(t);return e?gn.create(e.r,e.g,e.b):null}},Jd=Dt`
|
|
98
|
+
:host{background-color:${Sa};color:${Al}}`.withBehaviors(eo(Dt`
|
|
99
|
+
:host{background-color:${si.Canvas};box-shadow:0 0 0 1px ${si.CanvasText};color:${si.CanvasText}}`));function tu(t){return(e,i)=>{e[i+"Changed"]=function(e,i){null!=i?t.setValueFor(this,i):t.deleteValueFor(this)}}}class eu extends je{constructor(){super(),this.noPaint=!1;const t={handleChange:this.noPaintChanged.bind(this)};C.getNotifier(this).subscribe(t,"fillColor"),C.getNotifier(this).subscribe(t,"baseLayerLuminance")}connectedCallback(){super.connectedCallback(),this.noPaintChanged()}noPaintChanged(){this.noPaint||void 0===this.fillColor&&!this.baseLayerLuminance?this.$fastController.removeStyles(Jd):this.$fastController.addStyles(Jd)}}wh([ft({attribute:"no-paint",mode:"boolean"})],eu.prototype,"noPaint",void 0),wh([ft({attribute:"fill-color",converter:Zd,mode:"fromView"}),tu(Sa)],eu.prototype,"fillColor",void 0),wh([ft({attribute:"accent-base-color",converter:Zd,mode:"fromView"}),tu(fa)],eu.prototype,"accentBaseColor",void 0),wh([ft({attribute:"neutral-base-color",converter:Zd,mode:"fromView"}),tu(pa)],eu.prototype,"neutralBaseColor",void 0),wh([ft({converter:pt}),tu(qn)],eu.prototype,"density",void 0),wh([ft({attribute:"design-unit",converter:pt}),tu(_n)],eu.prototype,"designUnit",void 0),wh([ft({attribute:"direction"}),tu(Bn)],eu.prototype,"direction",void 0),wh([ft({attribute:"base-height-multiplier",converter:pt}),tu(jn)],eu.prototype,"baseHeightMultiplier",void 0),wh([ft({attribute:"base-horizontal-spacing-multiplier",converter:pt}),tu(Un)],eu.prototype,"baseHorizontalSpacingMultiplier",void 0),wh([ft({attribute:"control-corner-radius",converter:pt}),tu(Gn)],eu.prototype,"controlCornerRadius",void 0),wh([ft({attribute:"layer-corner-radius",converter:pt}),tu(Wn)],eu.prototype,"layerCornerRadius",void 0),wh([ft({attribute:"stroke-width",converter:pt}),tu(Kn)],eu.prototype,"strokeWidth",void 0),wh([ft({attribute:"focus-stroke-width",converter:pt}),tu(Xn)],eu.prototype,"focusStrokeWidth",void 0),wh([ft({attribute:"disabled-opacity",converter:pt}),tu(Nn)],eu.prototype,"disabledOpacity",void 0),wh([ft({attribute:"type-ramp-minus-2-font-size"}),tu(er)],eu.prototype,"typeRampMinus2FontSize",void 0),wh([ft({attribute:"type-ramp-minus-2-line-height"}),tu(ir)],eu.prototype,"typeRampMinus2LineHeight",void 0),wh([ft({attribute:"type-ramp-minus-1-font-size"}),tu(Jn)],eu.prototype,"typeRampMinus1FontSize",void 0),wh([ft({attribute:"type-ramp-minus-1-line-height"}),tu(tr)],eu.prototype,"typeRampMinus1LineHeight",void 0),wh([ft({attribute:"type-ramp-base-font-size"}),tu(Qn)],eu.prototype,"typeRampBaseFontSize",void 0),wh([ft({attribute:"type-ramp-base-line-height"}),tu(Zn)],eu.prototype,"typeRampBaseLineHeight",void 0),wh([ft({attribute:"type-ramp-plus-1-font-size"}),tu(or)],eu.prototype,"typeRampPlus1FontSize",void 0),wh([ft({attribute:"type-ramp-plus-1-line-height"}),tu(sr)],eu.prototype,"typeRampPlus1LineHeight",void 0),wh([ft({attribute:"type-ramp-plus-2-font-size"}),tu(nr)],eu.prototype,"typeRampPlus2FontSize",void 0),wh([ft({attribute:"type-ramp-plus-2-line-height"}),tu(rr)],eu.prototype,"typeRampPlus2LineHeight",void 0),wh([ft({attribute:"type-ramp-plus-3-font-size"}),tu(ar)],eu.prototype,"typeRampPlus3FontSize",void 0),wh([ft({attribute:"type-ramp-plus-3-line-height"}),tu(lr)],eu.prototype,"typeRampPlus3LineHeight",void 0),wh([ft({attribute:"type-ramp-plus-4-font-size"}),tu(cr)],eu.prototype,"typeRampPlus4FontSize",void 0),wh([ft({attribute:"type-ramp-plus-4-line-height"}),tu(hr)],eu.prototype,"typeRampPlus4LineHeight",void 0),wh([ft({attribute:"type-ramp-plus-5-font-size"}),tu(dr)],eu.prototype,"typeRampPlus5FontSize",void 0),wh([ft({attribute:"type-ramp-plus-5-line-height"}),tu(ur)],eu.prototype,"typeRampPlus5LineHeight",void 0),wh([ft({attribute:"type-ramp-plus-6-font-size"}),tu(pr)],eu.prototype,"typeRampPlus6FontSize",void 0),wh([ft({attribute:"type-ramp-plus-6-line-height"}),tu(gr)],eu.prototype,"typeRampPlus6LineHeight",void 0),wh([ft({attribute:"accent-fill-rest-delta",converter:pt}),tu(mr)],eu.prototype,"accentFillRestDelta",void 0),wh([ft({attribute:"accent-fill-hover-delta",converter:pt}),tu(br)],eu.prototype,"accentFillHoverDelta",void 0),wh([ft({attribute:"accent-fill-active-delta",converter:pt}),tu(vr)],eu.prototype,"accentFillActiveDelta",void 0),wh([ft({attribute:"accent-fill-focus-delta",converter:pt}),tu(yr)],eu.prototype,"accentFillFocusDelta",void 0),wh([ft({attribute:"accent-foreground-rest-delta",converter:pt}),tu(xr)],eu.prototype,"accentForegroundRestDelta",void 0),wh([ft({attribute:"accent-foreground-hover-delta",converter:pt}),tu($r)],eu.prototype,"accentForegroundHoverDelta",void 0),wh([ft({attribute:"accent-foreground-active-delta",converter:pt}),tu(wr)],eu.prototype,"accentForegroundActiveDelta",void 0),wh([ft({attribute:"accent-foreground-focus-delta",converter:pt}),tu(kr)],eu.prototype,"accentForegroundFocusDelta",void 0),wh([ft({attribute:"neutral-fill-rest-delta",converter:pt}),tu(Cr)],eu.prototype,"neutralFillRestDelta",void 0),wh([ft({attribute:"neutral-fill-hover-delta",converter:pt}),tu(Ir)],eu.prototype,"neutralFillHoverDelta",void 0),wh([ft({attribute:"neutral-fill-active-delta",converter:pt}),tu(Fr)],eu.prototype,"neutralFillActiveDelta",void 0),wh([ft({attribute:"neutral-fill-focus-delta",converter:pt}),tu(Tr)],eu.prototype,"neutralFillFocusDelta",void 0),wh([ft({attribute:"neutral-fill-input-rest-delta",converter:pt}),tu(Dr)],eu.prototype,"neutralFillInputRestDelta",void 0),wh([ft({attribute:"neutral-fill-input-hover-delta",converter:pt}),tu(Sr)],eu.prototype,"neutralFillInputHoverDelta",void 0),wh([ft({attribute:"neutral-fill-input-active-delta",converter:pt}),tu(Vr)],eu.prototype,"neutralFillInputActiveDelta",void 0),wh([ft({attribute:"neutral-fill-input-focus-delta",converter:pt}),tu(Or)],eu.prototype,"neutralFillInputFocusDelta",void 0),wh([ft({attribute:"neutral-fill-layer-rest-delta",converter:pt}),tu(zr)],eu.prototype,"neutralFillLayerRestDelta",void 0),wh([ft({attribute:"neutral-fill-stealth-rest-delta",converter:pt}),tu(qr)],eu.prototype,"neutralFillStealthRestDelta",void 0),wh([ft({attribute:"neutral-fill-stealth-hover-delta",converter:pt}),tu(_r)],eu.prototype,"neutralFillStealthHoverDelta",void 0),wh([ft({attribute:"neutral-fill-stealth-active-delta",converter:pt}),tu(Gr)],eu.prototype,"neutralFillStealthActiveDelta",void 0),wh([ft({attribute:"neutral-fill-stealth-focus-delta",converter:pt}),tu(Wr)],eu.prototype,"neutralFillStealthFocusDelta",void 0),wh([ft({attribute:"neutral-fill-strong-hover-delta",converter:pt}),tu(Xr)],eu.prototype,"neutralFillStrongHoverDelta",void 0),wh([ft({attribute:"neutral-fill-strong-active-delta",converter:pt}),tu(Yr)],eu.prototype,"neutralFillStrongActiveDelta",void 0),wh([ft({attribute:"neutral-fill-strong-focus-delta",converter:pt}),tu(Qr)],eu.prototype,"neutralFillStrongFocusDelta",void 0),wh([ft({attribute:"base-layer-luminance",converter:pt}),tu(fr)],eu.prototype,"baseLayerLuminance",void 0),wh([ft({attribute:"neutral-stroke-divider-rest-delta",converter:pt}),tu(ra)],eu.prototype,"neutralStrokeDividerRestDelta",void 0),wh([ft({attribute:"neutral-stroke-rest-delta",converter:pt}),tu(Zr)],eu.prototype,"neutralStrokeRestDelta",void 0),wh([ft({attribute:"neutral-stroke-hover-delta",converter:pt}),tu(Jr)],eu.prototype,"neutralStrokeHoverDelta",void 0),wh([ft({attribute:"neutral-stroke-active-delta",converter:pt}),tu(ta)],eu.prototype,"neutralStrokeActiveDelta",void 0),wh([ft({attribute:"neutral-stroke-focus-delta",converter:pt}),tu(ea)],eu.prototype,"neutralStrokeFocusDelta",void 0);const iu=eu.compose({baseName:"design-system-provider",template:nt`<slot></slot>`,styles:Dt`
|
|
100
|
+
${oo("block")}
|
|
101
|
+
`}),ou=(t,e)=>Dt`
|
|
102
|
+
:host([hidden]){display:none}:host{--dialog-height:480px;--dialog-width:640px;display:block}.overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,0.3);touch-action:none}.positioning-region{display:flex;justify-content:center;position:fixed;top:0;bottom:0;left:0;right:0;overflow:auto}.control{box-shadow:${jh};margin-top:auto;margin-bottom:auto;border-radius:calc(${Wn} * 1px);width:var(--dialog-width);height:var(--dialog-height);background:${Sa};z-index:1;border:calc(${Kn} * 1px) solid transparent}`,su=jo.compose({baseName:"dialog",template:(t,e)=>nt`<div class="positioning-region" part="positioning-region">${Nt(t=>t.modal,nt`<div class="overlay" part="overlay" role="presentation" @click="${t=>t.dismiss()}"></div>`)}<div role="dialog" tabindex="-1" class="control" part="control" aria-modal="${t=>t.modal}" aria-describedby="${t=>t.ariaDescribedby}" aria-labelledby="${t=>t.ariaLabelledby}" aria-label="${t=>t.ariaLabel}" ${Bt("dialog")}><slot></slot></div></div>`,styles:ou}),nu=ou,ru=(t,e)=>Dt`
|
|
103
|
+
${oo("block")} :host{box-sizing:content-box;height:0;border:none;border-top:calc(${Kn} * 1px) solid ${Ql}}`,au=_o.compose({baseName:"divider",template:(t,e)=>nt`<template role="${t=>t.role}" aria-orientation="${t=>t.orientation}"></template>`,styles:ru}),lu=ru,cu=(t,e)=>Dt`
|
|
104
|
+
${oo("inline-flex")} :host{height:calc((${ph} + ${_n}) * 1px);justify-content:center;align-items:center;fill:currentcolor;color:${Sl};background:padding-box linear-gradient(${Za},${Za}),border-box ${Gl};box-sizing:border-box;border:calc(${Xn} * 1px) solid transparent;border-radius:calc(${Gn} * 1px);outline:none;padding:0}:host(.disabled){opacity:${Nn};cursor:${"not-allowed"};pointer-events:none}.next,.previous{display:flex}:host(:not(.disabled):hover){cursor:pointer}:host(:not(.disabled):hover){color:${Vl}}:host(:not(.disabled):active){color:${Ol}}:host(:${so}){border-color:${pc}}:host::-moz-focus-inner{border:0}`.withBehaviors(eo(Dt`
|
|
105
|
+
:host{background:${si.ButtonFace};border-color:${si.ButtonText}}:host .next,:host .previous{color:${si.ButtonText};fill:currentcolor}:host(:not(.disabled):hover){background:${si.Highlight}}:host(:not(.disabled):hover) .next,:host(:not(.disabled):hover) .previous{color:${si.HighlightText};fill:currentcolor}:host(.disabled){opacity:1}:host(.disabled),:host(.disabled) .next,:host(.disabled) .previous{border-color:${si.GrayText};color:${si.GrayText};fill:currentcolor}:host(:${so}){forced-color-adjust:none;border-color:${si.Highlight};box-shadow:0 0 0 2px ${si.ButtonFace},0 0 0 4px ${si.ButtonText}}`)),hu=Go.compose({baseName:"flipper",template:(t,e)=>nt`<template role="button" aria-disabled="${t=>!!t.disabled||void 0}" tabindex="${t=>t.hiddenFromAT?-1:0}" class="${t=>t.direction} ${t=>t.disabled?"disabled":""}" @keyup="${(t,e)=>t.keyupHandler(e.event)}">${Nt(t=>t.direction===qo.next,nt`<span part="next" class="next"><slot name="next">${e.next||""}</slot></span>`)} ${Nt(t=>t.direction===qo.previous,nt`<span part="previous" class="previous"><slot name="previous">${e.previous||""}</slot></span>`)}</template>`,styles:cu,next:'\n <svg width="16" height="16" xmlns="http://www.w3.org/2000/svg">\n <path d="M7.57 11.84A1 1 0 016 11.02V4.98a1 1 0 011.57-.82l3.79 2.62c.85.59.85 1.85 0 2.44l-3.79 2.62z"/>\n </svg>\n ',previous:'\n <svg width="16" height="16" xmlns="http://www.w3.org/2000/svg">\n <path d="M9.43 11.84a1 1 0 001.57-.82V4.98a1 1 0 00-1.57-.82L5.64 6.78c-.85.59-.85 1.85 0 2.44l3.79 2.62z"/>\n </svg>\n '}),du=cu,uu=Dt`
|
|
106
|
+
.scroll-prev{right:auto;left:0}.scroll.scroll-next::before,.scroll-next .scroll-action{left:auto;right:0}.scroll.scroll-next::before{background:linear-gradient(to right,transparent,var(--scroll-fade-next))}.scroll-next .scroll-action{transform:translate(50%,-50%)}`,pu=Dt`
|
|
107
|
+
.scroll.scroll-next{right:auto;left:0}.scroll.scroll-next::before{background:linear-gradient(to right,var(--scroll-fade-next),transparent);left:auto;right:0}.scroll.scroll-prev::before{background:linear-gradient(to right,transparent,var(--scroll-fade-previous))}.scroll-prev .scroll-action{left:auto;right:0;transform:translate(50%,-50%)}`,gu=Dt`
|
|
108
|
+
.scroll-area{position:relative}div.scroll-view{overflow-x:hidden}.scroll{bottom:0;pointer-events:none;position:absolute;right:0;top:0;user-select:none;width:100px}.scroll.disabled{display:none}.scroll::before,.scroll-action{left:0;position:absolute}.scroll::before{background:linear-gradient(to right,var(--scroll-fade-previous),transparent);content:'';display:block;height:100%;width:100%}.scroll-action{pointer-events:auto;right:auto;top:50%;transform:translate(-50%,-50%)}::slotted(fluent-flipper){opacity:0;transition:opacity 0.2s ease-in-out}.scroll-area:hover ::slotted(fluent-flipper){opacity:1}`.withBehaviors(new kh(uu,pu)),fu=(t,e)=>Dt`
|
|
109
|
+
${oo("block")} :host{--scroll-align:center;--scroll-item-spacing:4px;contain:layout;position:relative}.scroll-view{overflow-x:auto;scrollbar-width:none}::-webkit-scrollbar{display:none}.content-container{align-items:var(--scroll-align);display:inline-flex;flex-wrap:nowrap;position:relative}.content-container ::slotted(*){margin-right:var(--scroll-item-spacing)}.content-container ::slotted(*:last-child){margin-right:0}`;class mu extends hs{connectedCallback(){super.connectedCallback(),"mobile"!==this.view&&this.$fastController.addStyles(gu)}}const bu=mu.compose({baseName:"horizontal-scroll",baseClass:hs,template:(t,e)=>{var i,o;return nt`<template class="horizontal-scroll" @keyup="${(t,e)=>t.keyupHandler(e.event)}">${ie(0,e)}<div class="scroll-area" part="scroll-area"><div class="scroll-view" part="scroll-view" @scroll="${t=>t.scrolled()}" ${Bt("scrollContainer")}><div class="content-container" part="content-container" ${Bt("content")}><slot ${Qt({property:"scrollItems",filter:Kt()})}></slot></div></div>${Nt(t=>"mobile"!==t.view,nt`<div class="scroll scroll-prev" part="scroll-prev" ${Bt("previousFlipperContainer")}><div class="scroll-action" part="scroll-action-previous"><slot name="previous-flipper">${e.previousFlipper instanceof Function?e.previousFlipper(t,e):null!==(i=e.previousFlipper)&&void 0!==i?i:""}</slot></div></div><div class="scroll scroll-next" part="scroll-next" ${Bt("nextFlipperContainer")}><div class="scroll-action" part="scroll-action-next"><slot name="next-flipper">${e.nextFlipper instanceof Function?e.nextFlipper(t,e):null!==(o=e.nextFlipper)&&void 0!==o?o:""}</slot></div></div>`)}</div>${ee(0,e)}</template>`},styles:fu,nextFlipper:nt`<fluent-flipper @click="${t=>t.scrollToNext()}" aria-hidden="${t=>t.flippersHiddenFromAT}"></fluent-flipper>`,previousFlipper:nt`<fluent-flipper @click="${t=>t.scrollToPrevious()}" direction="previous" aria-hidden="${t=>t.flippersHiddenFromAT}"></fluent-flipper>`}),vu=fu,yu=(t,e)=>Dt`
|
|
110
|
+
${oo("inline-flex")} :host{border:calc(${Kn} * 1px) solid ${Nl};border-radius:calc(${Gn} * 1px);box-sizing:border-box;flex-direction:column;padding:calc(${_n} * 1px) 0;outline:none}::slotted(${t.tagFor(ji)}){margin:0 calc(${_n} * 1px)}:host(:focus-within:not([disabled])){border-color:${pc};box-shadow:0 0 0 1px ${pc} inset}`;class xu extends qi{}const $u=xu.compose({baseName:"listbox",template:(t,e)=>nt`<template aria-activedescendant="${t=>t.ariaActiveDescendant}" aria-multiselectable="${t=>t.ariaMultiSelectable}" class="listbox" role="listbox" tabindex="${t=>t.disabled?null:"0"}" @click="${(t,e)=>t.clickHandler(e.event)}" @focusin="${(t,e)=>t.focusinHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}" @mousedown="${(t,e)=>t.mousedownHandler(e.event)}"><slot ${Qt({filter:Gi.slottedOptionFilter,flatten:!0,property:"slottedOptions"})}></slot></template>`,styles:yu}),wu=yu,ku=(t,e)=>Dt`
|
|
111
|
+
${oo("inline-flex")} :host{position:relative;font-family:${Yn};background:${Cl};border-radius:calc(${Gn} * 1px);border:calc(${Xn} * 1px) solid transparent;box-sizing:border-box;color:${Al};cursor:pointer;fill:currentcolor;font-size:${Qn};height:calc(${ph} * 1px);line-height:${Zn};outline:none;overflow:hidden;align-items:center;padding:0 calc(${_n} * 2.25px);user-select:none;white-space:nowrap}:host::before{content:'';display:block;position:absolute;left:0;top:calc((${ph} / 4) - ${Xn} * 1px);width:3px;height:calc((${ph} / 2) * 1px);background:transparent;border-radius:calc(${Gn} * 1px)}:host(:not([disabled]):hover){background:${Il}}:host(:not([disabled]):active){background:${Fl}}:host(:not([disabled]):active)::before{background:${Ea};height:calc(((${ph} / 2) - 6) * 1px)}:host([aria-selected='true'])::before{background:${Ea}}:host(:${so}){border-color:${pc};background:${Tl}}:host([aria-selected='true']){background:${yl}}:host(:not([disabled])[aria-selected='true']:hover){background:${xl}}:host(:not([disabled])[aria-selected='true']:active){background:${$l}}:host(:not([disabled]):not([aria-selected='true']):hover){background:${Il}}:host(:not([disabled]):not([aria-selected='true']):active){background:${Fl}}:host([disabled]){cursor:${"not-allowed"};opacity:${Nn}}.content{grid-column-start:2;justify-self:start;overflow:hidden;text-overflow:ellipsis}.start,.end,::slotted(svg){display:flex}::slotted([slot='end']){margin-inline-start:1ch}::slotted([slot='start']){margin-inline-end:1ch}`.withBehaviors(eo(Dt`
|
|
112
|
+
:host{background:${si.ButtonFace};border-color:${si.ButtonFace};color:${si.ButtonText}}:host(:not([disabled]):not([aria-selected="true"]):hover),:host(:not([disabled])[aria-selected="true"]:hover),:host([aria-selected="true"]){forced-color-adjust:none;background:${si.Highlight};color:${si.HighlightText}}:host(:not([disabled]):active)::before,:host([aria-selected='true'])::before{background:${si.HighlightText}}:host([disabled]),:host([disabled]:not([aria-selected='true']):hover){background:${si.Canvas};color:${si.GrayText};fill:currentcolor;opacity:1}`)),Cu=ji.compose({baseName:"option",template:(t,e)=>nt`<template aria-checked="${t=>t.ariaChecked}" aria-disabled="${t=>t.ariaDisabled}" aria-posinset="${t=>t.ariaPosInSet}" aria-selected="${t=>t.ariaSelected}" aria-setsize="${t=>t.ariaSetSize}" class="${t=>[t.checked&&"checked",t.selected&&"selected",t.disabled&&"disabled"].filter(Boolean).join(" ")}" role="option">${ie(0,e)}<span class="content" part="content"><slot></slot></span>${ee(0,e)}</template>`,styles:ku}),Iu=ku,Fu=(t,e)=>Dt`
|
|
113
|
+
${oo("block")} :host{background:${xa};border:calc(${Kn} * 1px) solid transparent;border-radius:calc(${Wn} * 1px);box-shadow:${Bh};padding:calc(${_n} * 1px) 0;max-width:368px;min-width:64px}:host([slot='submenu']){width:max-content;margin:0 calc(${_n} * 2px)}::slotted(${t.tagFor(Xo)}){margin:0 calc(${_n} * 1px)}::slotted(${t.tagFor(_o)}){margin:calc(${_n} * 1px) 0}::slotted(hr){box-sizing:content-box;height:0;margin:calc(${_n} * 1px) 0;border:none;border-top:calc(${Kn} * 1px) solid ${Ql}}`.withBehaviors(eo(Dt`
|
|
114
|
+
:host([slot='submenu']){background:${si.Canvas};border-color:${si.CanvasText}}`));class Tu extends Yo{connectedCallback(){super.connectedCallback(),Sa.setValueFor(this,xa)}}const Du=Tu.compose({baseName:"menu",baseClass:Yo,template:(t,e)=>nt`<template slot="${t=>t.slot?t.slot:t.isNestedMenu()?"submenu":void 0}" role="menu" @keydown="${(t,e)=>t.handleMenuKeyDown(e.event)}" @focusout="${(t,e)=>t.handleFocusOut(e.event)}"><slot ${Qt("items")}></slot></template>`,styles:Fu}),Su=Fu,Vu=(t,e)=>Dt`
|
|
115
|
+
${oo("grid")} :host{contain:layout;overflow:visible;font-family:${Yn};outline:none;box-sizing:border-box;height:calc(${ph} * 1px);grid-template-columns:minmax(32px,auto) 1fr minmax(32px,auto);grid-template-rows:auto;justify-items:center;align-items:center;padding:0;white-space:nowrap;color:${Al};fill:currentcolor;cursor:pointer;font-size:${Qn};line-height:${Zn};border-radius:calc(${Gn} * 1px);border:calc(${Kn} * 1px) solid transparent}:host(.indent-0){grid-template-columns:auto 1fr minmax(32px,auto)}:host(.indent-0) .content{grid-column:1;grid-row:1;margin-inline-start:10px}:host(.indent-0) .expand-collapse-glyph-container{grid-column:5;grid-row:1}:host(.indent-2){grid-template-columns:minmax(32px,auto) minmax(32px,auto) 1fr minmax(32px,auto) minmax(32px,auto)}:host(.indent-2) .content{grid-column:3;grid-row:1;margin-inline-start:10px}:host(.indent-2) .expand-collapse-glyph-container{grid-column:5;grid-row:1}:host(.indent-2) .start{grid-column:2}:host(.indent-2) .end{grid-column:4}:host(:${so}){border:calc(${Kn} * 1px) solid ${pc};box-shadow:0 0 0 calc((${Xn} - ${Kn}) * 1px) ${pc}}:host(:not([disabled]):hover){background:${Il}}:host(:not([disabled]):active),:host(.expanded){background:${Fl};color:${Al}}:host([disabled]){cursor:${"not-allowed"};opacity:${Nn}}.content{grid-column-start:2;justify-self:start;overflow:hidden;text-overflow:ellipsis}.start,.end{display:flex;justify-content:center}:host(.indent-0[aria-haspopup='menu']){display:grid;grid-template-columns:minmax(32px,auto) auto 1fr minmax(32px,auto) minmax(32px,auto);align-items:center;min-height:32px}:host(.indent-1[aria-haspopup='menu']),:host(.indent-1[role='menuitemcheckbox']),:host(.indent-1[role='menuitemradio']){display:grid;grid-template-columns:minmax(32px,auto) auto 1fr minmax(32px,auto) minmax(32px,auto);align-items:center;min-height:32px}:host(.indent-2:not([aria-haspopup='menu'])) .end{grid-column:5}:host .input-container,:host .expand-collapse-glyph-container{display:none}:host([aria-haspopup='menu']) .expand-collapse-glyph-container,:host([role='menuitemcheckbox']) .input-container,:host([role='menuitemradio']) .input-container{display:grid}:host([aria-haspopup='menu']) .content,:host([role='menuitemcheckbox']) .content,:host([role='menuitemradio']) .content{grid-column-start:3}:host([aria-haspopup='menu'].indent-0) .content{grid-column-start:1}:host([aria-haspopup='menu']) .end,:host([role='menuitemcheckbox']) .end,:host([role='menuitemradio']) .end{grid-column-start:4}:host .expand-collapse,:host .checkbox,:host .radio{display:flex;align-items:center;justify-content:center;position:relative;box-sizing:border-box;outline:none}:host .checkbox-indicator,:host .radio-indicator,slot[name='checkbox-indicator'],slot[name='radio-indicator']{display:none}::slotted([slot='end']:not(svg)){margin-inline-end:10px;color:${Ml}}:host([aria-checked='true']) .checkbox-indicator,:host([aria-checked='true']) slot[name='checkbox-indicator'],:host([aria-checked='true']) .radio-indicator,:host([aria-checked='true']) slot[name='radio-indicator']{display:flex}`.withBehaviors(eo(Dt`
|
|
116
|
+
:host,::slotted([slot='end']:not(svg)){forced-color-adjust:none;color:${si.ButtonText};fill:currentcolor}:host(:not([disabled]):hover){background:${si.Highlight};color:${si.HighlightText};fill:currentcolor}:host(:hover) .start,:host(:hover) .end,:host(:hover)::slotted(svg),:host(:active) .start,:host(:active) .end,:host(:active)::slotted(svg),:host(:hover) ::slotted([slot='end']:not(svg)),:host(:${so}) ::slotted([slot='end']:not(svg)){color:${si.HighlightText};fill:currentcolor}:host(.expanded){background:${si.Highlight};border-color:${si.Highlight};color:${si.HighlightText}}:host(:${so}){background:${si.Highlight};border-color:${si.ButtonText};box-shadow:0 0 0 calc(${Kn} * 1px) inset ${si.HighlightText};color:${si.HighlightText};fill:currentcolor}:host([disabled]),:host([disabled]:hover),:host([disabled]:hover) .start,:host([disabled]:hover) .end,:host([disabled]:hover)::slotted(svg),:host([disabled]:${so}){background:${si.ButtonFace};color:${si.GrayText};fill:currentcolor;opacity:1}:host([disabled]:${so}){border-color:${si.GrayText}}:host .expanded-toggle,:host .checkbox,:host .radio{border-color:${si.ButtonText};background:${si.HighlightText}}:host([checked]) .checkbox,:host([checked]) .radio{background:${si.HighlightText};border-color:${si.HighlightText}}:host(:hover) .expanded-toggle,:host(:hover) .checkbox,:host(:hover) .radio,:host(:${so}) .expanded-toggle,:host(:${so}) .checkbox,:host(:${so}) .radio,:host([checked]:hover) .checkbox,:host([checked]:hover) .radio,:host([checked]:${so}) .checkbox,:host([checked]:${so}) .radio{border-color:${si.HighlightText}}:host([aria-checked='true']){background:${si.Highlight};color:${si.HighlightText}}:host([aria-checked='true']) .checkbox-indicator,:host([aria-checked='true']) ::slotted([slot='checkbox-indicator']),:host([aria-checked='true']) ::slotted([slot='radio-indicator']){fill:${si.Highlight}}:host([aria-checked='true']) .radio-indicator{background:${si.Highlight}}`),new kh(Dt`
|
|
117
117
|
.expand-collapse-glyph-container{transform:rotate(0deg)}`,Dt`
|
|
118
|
-
.expand-collapse-glyph-container{transform:rotate(180deg)}`)),
|
|
119
|
-
${
|
|
118
|
+
.expand-collapse-glyph-container{transform:rotate(180deg)}`)),Ou=Xo.compose({baseName:"menu-item",template:(t,e)=>nt`<template role="${t=>t.role}" aria-haspopup="${t=>t.hasSubmenu?"menu":void 0}" aria-checked="${t=>t.role!==Wo.menuitem?t.checked:void 0}" aria-disabled="${t=>t.disabled}" aria-expanded="${t=>t.expanded}" @keydown="${(t,e)=>t.handleMenuItemKeyDown(e.event)}" @click="${(t,e)=>t.handleMenuItemClick(e.event)}" @mouseover="${(t,e)=>t.handleMouseOver(e.event)}" @mouseout="${(t,e)=>t.handleMouseOut(e.event)}" class="${t=>t.disabled?"disabled":""} ${t=>t.expanded?"expanded":""} ${t=>"indent-"+t.startColumnCount}">${Nt(t=>t.role===Wo.menuitemcheckbox,nt`<div part="input-container" class="input-container"><span part="checkbox" class="checkbox"><slot name="checkbox-indicator">${e.checkboxIndicator||""}</slot></span></div>`)} ${Nt(t=>t.role===Wo.menuitemradio,nt`<div part="input-container" class="input-container"><span part="radio" class="radio"><slot name="radio-indicator">${e.radioIndicator||""}</slot></span></div>`)}</div>${ie(0,e)}<span class="content" part="content"><slot></slot></span>${ee(0,e)} ${Nt(t=>t.hasSubmenu,nt`<div part="expand-collapse-glyph-container" class="expand-collapse-glyph-container"><span part="expand-collapse" class="expand-collapse"><slot name="expand-collapse-indicator">${e.expandCollapseGlyph||""}</slot></span></div>`)} ${Nt(t=>t.expanded,nt`<${t.tagFor(ui)} :anchorElement="${t=>t}" vertical-positioning-mode="dynamic" vertical-default-position="bottom" vertical-inset="true" horizontal-positioning-mode="dynamic" horizontal-default-position="end" class="submenu-region" dir="${t=>t.currentDirection}" @loaded="${t=>t.submenuLoaded()}" ${Bt("submenuRegion")} part="submenu-region"><slot name="submenu"></slot></${t.tagFor(ui)}>`)}</template>`,styles:Vu,checkboxIndicator:'\n <svg width="16" height="16" xmlns="http://www.w3.org/2000/svg">\n <path d="M13.86 3.66a.5.5 0 01-.02.7l-7.93 7.48a.6.6 0 01-.84-.02L2.4 9.1a.5.5 0 01.72-.7l2.4 2.44 7.65-7.2a.5.5 0 01.7.02z"/>\n </svg>\n ',expandCollapseGlyph:'\n <svg width="16" height="16" xmlns="http://www.w3.org/2000/svg">\n <path d="M5.65 3.15a.5.5 0 000 .7L9.79 8l-4.14 4.15a.5.5 0 00.7.7l4.5-4.5a.5.5 0 000-.7l-4.5-4.5a.5.5 0 00-.7 0z"/>\n </svg>\n ',radioIndicator:'\n <svg width="16" height="16" xmlns="http://www.w3.org/2000/svg">\n <circle cx="8" cy="8" r="2"/>\n </svg>\n '}),Eu=Vu,Ru=(t,e)=>Dt`
|
|
119
|
+
${oo("inline-block")}
|
|
120
120
|
|
|
121
|
-
${
|
|
121
|
+
${Jh(0,0,".root")}
|
|
122
122
|
|
|
123
|
-
${
|
|
123
|
+
${td()}
|
|
124
124
|
|
|
125
|
-
.root{display:flex;flex-direction:row}.control{-webkit-appearance:none;color:inherit;background:transparent;border:0;height:calc(100% - 4px);margin-top:auto;margin-bottom:auto;padding:0 calc(${
|
|
126
|
-
${
|
|
127
|
-
`.withBehaviors(
|
|
128
|
-
${
|
|
129
|
-
`))),
|
|
130
|
-
${
|
|
131
|
-
.step-up,.step-down{fill:${
|
|
132
|
-
${
|
|
133
|
-
.indeterminate-indicator-1,.indeterminate-indicator-2,.determinate,.progress{background-color:${
|
|
134
|
-
${
|
|
135
|
-
.background{stroke:${
|
|
136
|
-
${
|
|
137
|
-
.control{background:${
|
|
138
|
-
${
|
|
139
|
-
${
|
|
140
|
-
${
|
|
141
|
-
${
|
|
142
|
-
.root{display:flex;flex-direction:row}.control{-webkit-appearance:none;color:inherit;background:transparent;border:0;height:calc(100% - 4px);margin-top:auto;margin-bottom:auto;padding:0 calc(${
|
|
143
|
-
${
|
|
144
|
-
`.withBehaviors(
|
|
145
|
-
${
|
|
146
|
-
`))),
|
|
147
|
-
${
|
|
148
|
-
`));class
|
|
149
|
-
${
|
|
150
|
-
270deg,var(--skeleton-fill,var(--skeleton-fill-default)) 0%,${
|
|
151
|
-
);--skeleton-animation-timing-default:ease-in-out}:host(.rect){border-radius:calc(${
|
|
152
|
-
:host{background-color:${
|
|
153
|
-
${
|
|
154
|
-
.thumb-cursor{forced-color-adjust:none;border-color:${
|
|
155
|
-
${
|
|
156
|
-
.mark{forced-color-adjust:none;background:${
|
|
157
|
-
:host([hidden]){display:none}${
|
|
125
|
+
.root{display:flex;flex-direction:row}.control{-webkit-appearance:none;color:inherit;background:transparent;border:0;height:calc(100% - 4px);margin-top:auto;margin-bottom:auto;padding:0 calc(${_n} * 2px + 1px);font-family:inherit;font-size:inherit;line-height:inherit}.start,.end{margin:auto;fill:currentcolor}.start{display:flex;margin-inline-start:11px}.end{display:flex;margin-inline-end:11px}.controls{opacity:0;position:relative;top:-1px;z-index:3}:host(:hover:not([disabled])) .controls,:host(:focus-within:not([disabled])) .controls{opacity:1}.step-up,.step-down{display:flex;padding:0 8px;cursor:pointer}.step-up{padding-top:3px}`.withBehaviors(sd("filled",Dt`
|
|
126
|
+
${ed(0,0,".root")}
|
|
127
|
+
`.withBehaviors(eo(Dt`
|
|
128
|
+
${od(0,0,".root")}
|
|
129
|
+
`))),eo(Dt`
|
|
130
|
+
${id(0,0,".root")}
|
|
131
|
+
.step-up,.step-down{fill:${si.FieldText}}`));class Au extends ss{connectedCallback(){super.connectedCallback(),this.appearance||(this.appearance="outline")}}wh([ft],Au.prototype,"appearance",void 0);const Lu=Ru,zu=Au.compose({baseName:"number-field",baseClass:ss,styles:Ru,template:(t,e)=>nt`<template class="${t=>t.readOnly?"readonly":""}"><label part="label" for="control" class="${t=>t.defaultSlottedNodes&&t.defaultSlottedNodes.length?"label":"label label__hidden"}"><slot ${Qt("defaultSlottedNodes")}></slot></label><div class="root" part="root">${ie(0,e)}<input class="control" part="control" id="control" @input="${t=>t.handleTextInput()}" @change="${t=>t.handleChange()}" @keydown="${(t,e)=>t.handleKeyDown(e.event)}" @blur="${(t,e)=>t.handleBlur()}" ?autofocus="${t=>t.autofocus}" ?disabled="${t=>t.disabled}" list="${t=>t.list}" maxlength="${t=>t.maxlength}" minlength="${t=>t.minlength}" placeholder="${t=>t.placeholder}" ?readonly="${t=>t.readOnly}" ?required="${t=>t.required}" size="${t=>t.size}" type="text" inputmode="numeric" min="${t=>t.min}" max="${t=>t.max}" step="${t=>t.step}" aria-atomic="${t=>t.ariaAtomic}" aria-busy="${t=>t.ariaBusy}" aria-controls="${t=>t.ariaControls}" aria-current="${t=>t.ariaCurrent}" aria-describedby="${t=>t.ariaDescribedby}" aria-details="${t=>t.ariaDetails}" aria-disabled="${t=>t.ariaDisabled}" aria-errormessage="${t=>t.ariaErrormessage}" aria-flowto="${t=>t.ariaFlowto}" aria-haspopup="${t=>t.ariaHaspopup}" aria-hidden="${t=>t.ariaHidden}" aria-invalid="${t=>t.ariaInvalid}" aria-keyshortcuts="${t=>t.ariaKeyshortcuts}" aria-label="${t=>t.ariaLabel}" aria-labelledby="${t=>t.ariaLabelledby}" aria-live="${t=>t.ariaLive}" aria-owns="${t=>t.ariaOwns}" aria-relevant="${t=>t.ariaRelevant}" aria-roledescription="${t=>t.ariaRoledescription}" ${Bt("control")} />${Nt(t=>!t.hideStep&&!t.readOnly&&!t.disabled,nt`<div class="controls" part="controls"><div class="step-up" part="step-up" @click="${t=>t.stepUp()}"><slot name="step-up-glyph">${e.stepUpGlyph||""}</slot></div><div class="step-down" part="step-down" @click="${t=>t.stepDown()}"><slot name="step-down-glyph">${e.stepDownGlyph||""}</slot></div></div>`)} ${ee(0,e)}</div></template>`,shadowOptions:{delegatesFocus:!0},stepDownGlyph:'\n <svg width="12" height="12" xmlns="http://www.w3.org/2000/svg">\n <path d="M2.15 4.65c.2-.2.5-.2.7 0L6 7.79l3.15-3.14a.5.5 0 11.7.7l-3.5 3.5a.5.5 0 01-.7 0l-3.5-3.5a.5.5 0 010-.7z"/>\n </svg>\n ',stepUpGlyph:'\n <svg width="12" height="12" xmlns="http://www.w3.org/2000/svg">\n <path d="M2.15 7.35c.2.2.5.2.7 0L6 4.21l3.15 3.14a.5.5 0 10.7-.7l-3.5-3.5a.5.5 0 00-.7 0l-3.5 3.5a.5.5 0 000 .7z"/>\n </svg>\n'}),Hu=(t,e)=>Dt`
|
|
132
|
+
${oo("flex")} :host{align-items:center;outline:none;height:calc((${Kn} * 3) * 1px)}.progress{background-color:${lc};border-radius:calc(${_n} * 1px);width:100%;height:calc(${Kn} * 1px);display:flex;align-items:center;position:relative}.determinate{background-color:${Ea};border-radius:calc(${_n} * 1px);height:calc((${Kn} * 3) * 1px);transition:all 0.2s ease-in-out;display:flex}.indeterminate{height:calc((${Kn} * 3) * 1px);border-radius:calc(${_n} * 1px);display:flex;width:100%;position:relative;overflow:hidden}.indeterminate-indicator-1{position:absolute;opacity:0;height:100%;background-color:${Ea};border-radius:calc(${_n} * 1px);animation-timing-function:cubic-bezier(0.4,0,0.6,1);width:40%;animation:indeterminate-1 2s infinite}.indeterminate-indicator-2{position:absolute;opacity:0;height:100%;background-color:${Ea};border-radius:calc(${_n} * 1px);animation-timing-function:cubic-bezier(0.4,0,0.6,1);width:60%;animation:indeterminate-2 2s infinite}:host(.paused) .indeterminate-indicator-1,:host(.paused) .indeterminate-indicator-2{animation:none;background-color:${Ml};width:100%;opacity:1}:host(.paused) .determinate{background-color:${Ml}}@keyframes indeterminate-1{0%{opacity:1;transform:translateX(-100%)}70%{opacity:1;transform:translateX(300%)}70.01%{opacity:0}100%{opacity:0;transform:translateX(300%)}}@keyframes indeterminate-2{0%{opacity:0;transform:translateX(-150%)}29.99%{opacity:0}30%{opacity:1;transform:translateX(-150%)}100%{transform:translateX(166.66%);opacity:1}}`.withBehaviors(eo(Dt`
|
|
133
|
+
.indeterminate-indicator-1,.indeterminate-indicator-2,.determinate,.progress{background-color:${si.ButtonText}}:host(.paused) .indeterminate-indicator-1,:host(.paused) .indeterminate-indicator-2,:host(.paused) .determinate{background-color:${si.GrayText}}`));class Pu extends ns{}const Mu=Pu.compose({baseName:"progress",template:(t,e)=>nt`<template role="progressbar" aria-valuenow="${t=>t.value}" aria-valuemin="${t=>t.min}" aria-valuemax="${t=>t.max}" class="${t=>t.paused?"paused":""}">${Nt(t=>"number"==typeof t.value,nt`<div class="progress" part="progress" slot="determinate"><div class="determinate" part="determinate" style="width: ${t=>t.percentComplete}%"></div></div>`)} ${Nt(t=>"number"!=typeof t.value,nt`<div class="progress" part="progress" slot="indeterminate"><slot class="indeterminate" name="indeterminate">${e.indeterminateIndicator1||""} ${e.indeterminateIndicator2||""}</slot></div>`)}</template>`,styles:Hu,indeterminateIndicator1:'\n <span class="indeterminate-indicator-1" part="indeterminate-indicator-1"></span>\n ',indeterminateIndicator2:'\n <span class="indeterminate-indicator-2" part="indeterminate-indicator-2"></span>\n '}),Bu=Hu,Nu=(t,e)=>Dt`
|
|
134
|
+
${oo("flex")} :host{align-items:center;outline:none;height:calc(${ph} * 1px);width:calc(${ph} * 1px)}.progress{height:100%;width:100%}.background{fill:none;stroke-width:2px}.determinate{stroke:${Ea};fill:none;stroke-width:2px;stroke-linecap:round;transform-origin:50% 50%;transform:rotate(-90deg);transition:all 0.2s ease-in-out}.indeterminate-indicator-1{stroke:${Ea};fill:none;stroke-width:2px;stroke-linecap:round;transform-origin:50% 50%;transform:rotate(-90deg);transition:all 0.2s ease-in-out;animation:spin-infinite 2s linear infinite}:host(.paused) .indeterminate-indicator-1{animation:none;stroke:${Ml}}:host(.paused) .determinate{stroke:${Ml}}@keyframes spin-infinite{0%{stroke-dasharray:0.01px 43.97px;transform:rotate(0deg)}50%{stroke-dasharray:21.99px 21.99px;transform:rotate(450deg)}100%{stroke-dasharray:0.01px 43.97px;transform:rotate(1080deg)}}`.withBehaviors(eo(Dt`
|
|
135
|
+
.background{stroke:${si.Field}}.determinate,.indeterminate-indicator-1{stroke:${si.ButtonText}}:host(.paused) .determinate,:host(.paused) .indeterminate-indicator-1{stroke:${si.GrayText}}`));class ju extends ns{}const Uu=ju.compose({baseName:"progress-ring",template:(t,e)=>nt`<template role="progressbar" aria-valuenow="${t=>t.value}" aria-valuemin="${t=>t.min}" aria-valuemax="${t=>t.max}" class="${t=>t.paused?"paused":""}">${Nt(t=>"number"==typeof t.value,nt`<svg class="progress" part="progress" viewBox="0 0 16 16" slot="determinate"><circle class="background" part="background" cx="8px" cy="8px" r="7px"></circle><circle class="determinate" part="determinate" style="stroke-dasharray: ${t=>44*t.percentComplete/100}px ${44}px" cx="8px" cy="8px" r="7px"></circle></svg>`)} ${Nt(t=>"number"!=typeof t.value,nt`<slot name="indeterminate" slot="indeterminate">${e.indeterminateIndicator||""}</slot>`)}</template>`,styles:Nu,indeterminateIndicator:'\n <svg class="progress" part="progress" viewBox="0 0 16 16">\n <circle\n class="background"\n part="background"\n cx="8px"\n cy="8px"\n r="7px"\n ></circle>\n <circle\n class="indeterminate-indicator-1"\n part="indeterminate-indicator-1"\n cx="8px"\n cy="8px"\n r="7px"\n ></circle>\n </svg>\n '}),qu=Nu,_u=(t,e)=>Dt`
|
|
136
|
+
${oo("inline-flex")} :host{--input-size:calc((${ph} / 2) + ${_n});align-items:center;outline:none;${""} user-select:none;position:relative;flex-direction:row;transition:all 0.2s ease-in-out}.control{position:relative;width:calc(var(--input-size) * 1px);height:calc(var(--input-size) * 1px);box-sizing:border-box;border-radius:50%;border:calc(${Kn} * 1px) solid ${lc};background:${ll};outline:none;cursor:pointer}.label__hidden{display:none;visibility:hidden}.label{font-family:${Yn};color:${Al};${""} padding-inline-start:calc(${_n} * 2px + 2px);margin-inline-end:calc(${_n} * 2px + 2px);cursor:pointer;font-size:${Qn};line-height:${Zn}}.control,slot[name='checked-indicator']{flex-shrink:0}slot[name='checked-indicator']{display:flex;align-items:center;justify-content:center;width:100%;height:100%;fill:${Ha};opacity:0;pointer-events:none}:host(:not(.disabled):hover) .control{background:${cl};border-color:${cc}}:host(:not(.disabled):active) .control{background:${hl};border-color:${hc}}:host(:not(.disabled):active) slot[name='checked-indicator']{opacity:1}:host(:${so}) .control{box-shadow:0 0 0 1px ${Sa},0 0 0 3px ${pc};background:${dl};border-color:${pc}}:host(.checked) .control{background:${Ea};border-color:transparent}:host(.checked:not(.disabled):hover) .control{background:${Ra};border-color:transparent}:host(.checked:not(.disabled):active) .control{background:${Aa};border-color:transparent}:host(.disabled) .label,:host(.readonly) .label,:host(.readonly) .control,:host(.disabled) .control{cursor:${"not-allowed"}}:host(.checked) slot[name='checked-indicator']{opacity:1}:host(.disabled){opacity:${Nn}}`.withBehaviors(eo(Dt`
|
|
137
|
+
.control{background:${si.Field};border-color:${si.FieldText}}:host(:not(.disabled):hover) .control,:host(:not(.disabled):active) .control{border-color:${si.Highlight}}:host(:${so}) .control{forced-color-adjust:none;box-shadow:0 0 0 1px ${si.Field},0 0 0 3px ${si.FieldText};background:${si.Field};border-color:${si.Highlight}}:host(.checked:not(.disabled):hover) .control,:host(.checked:not(.disabled):active) .control{border-color:${si.Highlight};background:${si.Highlight}}:host(.checked:${so}) .control{box-shadow:0 0 0 1px ${si.Field},0 0 0 3px ${si.FieldText}}:host(.checked) slot[name='checked-indicator']{fill:${si.Highlight}}:host(.checked:hover) .control slot[name='checked-indicator']{fill:${si.HighlightText}}:host(.disabled){opacity:1}:host(.disabled) .label{color:${si.GrayText}}:host(.disabled) .control,:host(.checked.disabled) .control{background:${si.Field};border-color:${si.GrayText}}:host(.disabled) slot[name='checked-indicator'],:host(.checked.disabled) slot[name='checked-indicator']{fill:${si.GrayText}}`)),Gu=cs.compose({baseName:"radio",template:(t,e)=>nt`<template role="radio" class="${t=>t.checked?"checked":""} ${t=>t.readOnly?"readonly":""}" aria-checked="${t=>t.checked}" aria-required="${t=>t.required}" aria-disabled="${t=>t.disabled}" aria-readonly="${t=>t.readOnly}" @keypress="${(t,e)=>t.keypressHandler(e.event)}" @click="${(t,e)=>t.clickHandler(e.event)}"><div part="control" class="control"><slot name="checked-indicator">${e.checkedIndicator||""}</slot></div><label part="label" class="${t=>t.defaultSlottedNodes&&t.defaultSlottedNodes.length?"label":"label label__hidden"}"><slot ${Qt("defaultSlottedNodes")}></slot></label></template>`,styles:_u,checkedIndicator:'\n <svg width="16" height="16" xmlns="http://www.w3.org/2000/svg">\n <circle cx="8" cy="8" r="4"/>\n </svg>\n '}),Wu=_u,Ku=(t,e)=>Dt`
|
|
138
|
+
${oo("flex")} :host{align-items:flex-start;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}`,Xu=rs.compose({baseName:"radio-group",template:(t,e)=>nt`<template role="radiogroup" aria-disabled="${t=>t.disabled}" aria-readonly="${t=>t.readOnly}" @click="${(t,e)=>t.clickHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}" @focusout="${(t,e)=>t.focusOutHandler(e.event)}"><slot name="label"></slot><div class="positioning-region ${t=>t.orientation===We.horizontal?"horizontal":"vertical"}" part="positioning-region"><slot ${Qt({property:"slottedRadioButtons",filter:Kt("[role=radio]")})}></slot></div></template>`,styles:Ku}),Yu=Ku,Qu=(t,e)=>nt`<template class=" ${t=>t.readOnly?"readonly":""} "><label part="label" for="control" class="${t=>t.defaultSlottedNodes&&t.defaultSlottedNodes.length?"label":"label label__hidden"}"><slot ${Qt({property:"defaultSlottedNodes",filter:no})}></slot></label><div class="root" part="root" ${Bt("root")}>${ie(0,e)}<div class="input-wrapper" part="input-wrapper"><input class="control" part="control" id="control" @input="${t=>t.handleTextInput()}" @change="${t=>t.handleChange()}" ?autofocus="${t=>t.autofocus}" ?disabled="${t=>t.disabled}" list="${t=>t.list}" maxlength="${t=>t.maxlength}" minlength="${t=>t.minlength}" pattern="${t=>t.pattern}" placeholder="${t=>t.placeholder}" ?readonly="${t=>t.readOnly}" ?required="${t=>t.required}" size="${t=>t.size}" ?spellcheck="${t=>t.spellcheck}" :value="${t=>t.value}" type="search" aria-atomic="${t=>t.ariaAtomic}" aria-busy="${t=>t.ariaBusy}" aria-controls="${t=>t.ariaControls}" aria-current="${t=>t.ariaCurrent}" aria-describedby="${t=>t.ariaDescribedby}" aria-details="${t=>t.ariaDetails}" aria-disabled="${t=>t.ariaDisabled}" aria-errormessage="${t=>t.ariaErrormessage}" aria-flowto="${t=>t.ariaFlowto}" aria-haspopup="${t=>t.ariaHaspopup}" aria-hidden="${t=>t.ariaHidden}" aria-invalid="${t=>t.ariaInvalid}" aria-keyshortcuts="${t=>t.ariaKeyshortcuts}" aria-label="${t=>t.ariaLabel}" aria-labelledby="${t=>t.ariaLabelledby}" aria-live="${t=>t.ariaLive}" aria-owns="${t=>t.ariaOwns}" aria-relevant="${t=>t.ariaRelevant}" aria-roledescription="${t=>t.ariaRoledescription}" ${Bt("control")} /><slot name="clear-button"><button class="clear-button ${t=>t.value?"":"clear-button__hidden"}" part="clear-button" tabindex="-1" @click=${t=>t.handleClearInput()}><slot name="clear-glyph"><svg width="12" height="12" viewBox="0 0 12 12" xmlns="http://www.w3.org/2000/svg"><path d="m2.09 2.22.06-.07a.5.5 0 0 1 .63-.06l.07.06L6 5.29l3.15-3.14a.5.5 0 1 1 .7.7L6.71 6l3.14 3.15c.18.17.2.44.06.63l-.06.07a.5.5 0 0 1-.63.06l-.07-.06L6 6.71 2.85 9.85a.5.5 0 0 1-.7-.7L5.29 6 2.15 2.85a.5.5 0 0 1-.06-.63l.06-.07-.06.07Z" /></svg></slot></button></slot></div>${ee(0,e)}</div></template>`,Zu=ko.create("clear-button-hover").withDefault(t=>{const e=kl.getValueFor(t),i=il.getValueFor(t);return e.evaluate(t,i.evaluate(t).focus).hover}),Ju=ko.create("clear-button-active").withDefault(t=>{const e=kl.getValueFor(t),i=il.getValueFor(t);return e.evaluate(t,i.evaluate(t).focus).active}),tp=(t,e)=>Dt`
|
|
139
|
+
${oo("inline-block")}
|
|
140
|
+
${Jh(0,0,".root")}
|
|
141
|
+
${td()}
|
|
142
|
+
.root{display:flex;flex-direction:row}.control{-webkit-appearance:none;color:inherit;background:transparent;border:0;height:calc(100% - 4px);margin-top:auto;margin-bottom:auto;padding:0 calc(${_n} * 2px + 1px);font-family:inherit;font-size:inherit;line-height:inherit}.clear-button{display:inline-flex;align-items:center;margin:1px;height:calc(100% - 2px);opacity:0;background:transparent;color:${Al};fill:currentcolor;border:none;border-radius:calc(${Gn} * 1px);min-width:calc(${ph} * 1px);font-size:${Qn};line-height:${Zn};outline:none;font-family:${Yn};padding:0 calc((10 + (${_n} * 2 * ${qn})) * 1px)}.clear-button:hover{background:${Zu}}.clear-button:active{background:${Ju}}:host(:hover:not([disabled],[readOnly])) .clear-button,:host(:active:not([disabled],[readOnly])) .clear-button,:host(:focus-within:not([disabled],[readOnly])) .clear-button{opacity:1}:host(:hover:not([disabled],[readOnly])) .clear-button__hidden,:host(:active:not([disabled],[readOnly])) .clear-button__hidden,:host(:focus-within:not([disabled],[readOnly])) .clear-button__hidden{opacity:0}.control::-webkit-search-cancel-button{-webkit-appearance:none}.input-wrapper{display:flex;position:relative;width:100%}.start,.end{display:flex;margin:1px;align-items:center}.start{display:flex;margin-inline-start:11px}::slotted([slot="end"]){height:100%}.clear-button__hidden{opacity:0}.end{margin-inline-end:11px}::slotted(${t.tagFor(wi)}){margin-inline-end:1px}`.withBehaviors(sd("filled",Dt`
|
|
143
|
+
${ed(0,0,".root")}
|
|
144
|
+
`.withBehaviors(eo(Dt`
|
|
145
|
+
${od(0,0,".root")}
|
|
146
|
+
`))),eo(Dt`
|
|
147
|
+
${id(0,0,".root")}
|
|
148
|
+
`));class ep extends ps{constructor(){super(...arguments),this.appearance="outline"}}wh([ft],ep.prototype,"appearance",void 0);const ip=ep.compose({baseName:"search",baseClass:ps,template:Qu,styles:tp,start:'<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg%22%3E"><path d="M8.5 3a5.5 5.5 0 0 1 4.23 9.02l4.12 4.13a.5.5 0 0 1-.63.76l-.07-.06-4.13-4.12A5.5 5.5 0 1 1 8.5 3Zm0 1a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9Z"/></svg>',shadowOptions:{delegatesFocus:!0}}),op=tp;class sp extends bs{appearanceChanged(t,e){t!==e&&(this.classList.add(e),this.classList.remove(t))}connectedCallback(){super.connectedCallback(),this.appearance||(this.appearance="outline"),this.listbox&&Sa.setValueFor(this.listbox,xa)}}wh([ft({mode:"fromView"})],sp.prototype,"appearance",void 0);const np=sp.compose({baseName:"select",baseClass:bs,template:(t,e)=>nt`<template class="${t=>t.open?"open":""} ${t=>t.disabled?"disabled":""} ${t=>t.position}" aria-activedescendant="${t=>t.ariaActiveDescendant}" aria-controls="${t=>t.ariaControls}" aria-disabled="${t=>t.ariaDisabled}" aria-expanded="${t=>t.ariaExpanded}" aria-haspopup="listbox" ?open="${t=>t.open}" role="combobox" tabindex="${t=>t.disabled?null:"0"}" @click="${(t,e)=>t.clickHandler(e.event)}" @focusout="${(t,e)=>t.focusoutHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}"><div class="control" part="control" ?disabled="${t=>t.disabled}">${ie(0,e)}<slot name="button-container"><div class="selected-value" part="selected-value"><slot name="selected-value">${t=>t.displayValue}</slot></div><div aria-hidden="true" class="indicator" part="indicator"><slot name="indicator">${e.indicator||""}</slot></div></slot>${ee(0,e)}</div><div class="listbox" id="${t=>t.listboxId}" part="listbox" role="listbox" ?disabled="${t=>t.disabled}" ?hidden="${t=>!t.open}" ${Bt("listbox")}><slot ${Qt({filter:qi.slottedOptionFilter,flatten:!0,property:"slottedOptions"})}></slot></div></template>`,styles:Pd,indicator:'\n <svg width="12" height="12" xmlns="http://www.w3.org/2000/svg">\n <path d="M2.15 4.65c.2-.2.5-.2.7 0L6 7.79l3.15-3.14a.5.5 0 11.7.7l-3.5 3.5a.5.5 0 01-.7 0l-3.5-3.5a.5.5 0 010-.7z"/>\n </svg>\n '}),rp=Pd,ap=(t,e)=>Dt`
|
|
149
|
+
${oo("block")} :host{--skeleton-fill-default:${yl};overflow:hidden;width:100%;position:relative;background-color:var(--skeleton-fill,var(--skeleton-fill-default));--skeleton-animation-gradient-default:linear-gradient(
|
|
150
|
+
270deg,var(--skeleton-fill,var(--skeleton-fill-default)) 0%,${xl} 51%,var(--skeleton-fill,var(--skeleton-fill-default)) 100%
|
|
151
|
+
);--skeleton-animation-timing-default:ease-in-out}:host(.rect){border-radius:calc(${Gn} * 1px)}:host(.circle){border-radius:100%;overflow:hidden}object{position:absolute;width:100%;height:auto;z-index:2}object img{width:100%;height:auto}${oo("block")} span.shimmer{position:absolute;width:100%;height:100%;background-image:var(--skeleton-animation-gradient,var(--skeleton-animation-gradient-default));background-size:0px 0px / 90% 100%;background-repeat:no-repeat;background-color:var(--skeleton-animation-fill,${yl});animation:shimmer 2s infinite;animation-timing-function:var(--skeleton-animation-timing,var(--skeleton-timing-default));animation-direction:normal;z-index:1}::slotted(svg){z-index:2}::slotted(.pattern){width:100%;height:100%}@keyframes shimmer{0%{transform:translateX(-100%)}100%{transform:translateX(100%)}}`.withBehaviors(eo(Dt`
|
|
152
|
+
:host{background-color:${si.CanvasText}}`)),lp=ys.compose({baseName:"skeleton",template:(t,e)=>nt`<template class="${t=>"circle"===t.shape?"circle":"rect"}" pattern="${t=>t.pattern}" ?shimmer="${t=>t.shimmer}">${Nt(t=>!0===t.shimmer,nt`<span class="shimmer"></span>`)}<object type="image/svg+xml" data="${t=>t.pattern}"><img class="pattern" src="${t=>t.pattern}" /></object><slot></slot></template>`,styles:ap}),cp=ap,hp=(t,e)=>Dt`
|
|
153
|
+
${oo("inline-grid")} :host{--thumb-size:calc((${ph} / 2) + ${_n} + (${Kn} * 2));--thumb-translate:calc(var(--thumb-size) * -0.5 + var(--track-width) / 2);--track-overhang:calc((${_n} / 2) * -1);--track-width:${_n};align-items:center;width:100%;user-select:none;box-sizing:border-box;border-radius:calc(${Gn} * 1px);outline:none;cursor:pointer}:host(.horizontal) .positioning-region{position:relative;margin:0 8px;display:grid;grid-template-rows:calc(var(--thumb-size) * 1px) 1fr}:host(.vertical) .positioning-region{position:relative;margin:0 8px;display:grid;height:100%;grid-template-columns:calc(var(--thumb-size) * 1px) 1fr}:host(:${so}) .thumb-cursor{box-shadow:0 0 0 2px ${Sa},0 0 0 4px ${pc}}.thumb-container{position:absolute;height:calc(var(--thumb-size) * 1px);width:calc(var(--thumb-size) * 1px);transition:all 0.2s ease}.thumb-cursor{display:flex;position:relative;border:none;width:calc(var(--thumb-size) * 1px);height:calc(var(--thumb-size) * 1px);background:padding-box linear-gradient(${Za},${Za}),border-box ${Gl};border:calc(${Kn} * 1px) solid transparent;border-radius:50%;box-sizing:border-box}.thumb-cursor::after{content:'';display:block;border-radius:50%;width:100%;margin:4px;background:${Ea}}:host(:not(.disabled)) .thumb-cursor:hover::after{background:${Ra};margin:3px}:host(:not(.disabled)) .thumb-cursor:active::after{background:${Aa};margin:5px}:host(:not(.disabled)) .thumb-cursor:hover{background:padding-box linear-gradient(${Za},${Za}),border-box ${Wl}}:host(:not(.disabled)) .thumb-cursor:active{background:padding-box linear-gradient(${Za},${Za}),border-box ${Kl}}.track-start{background:${Ea};position:absolute;height:100%;left:0;border-radius:calc(${Gn} * 1px)}:host(.horizontal) .thumb-container{transform:translateX(calc(var(--thumb-size) * 0.5px)) translateY(calc(var(--thumb-translate) * 1px))}:host(.vertical) .thumb-container{transform:translateX(calc(var(--thumb-translate) * 1px)) translateY(calc(var(--thumb-size) * 0.5px))}:host(.horizontal){min-width:calc(var(--thumb-size) * 1px)}:host(.horizontal) .track{right:calc(var(--track-overhang) * 1px);left:calc(var(--track-overhang) * 1px);align-self:start;height:calc(var(--track-width) * 1px)}:host(.vertical) .track{top:calc(var(--track-overhang) * 1px);bottom:calc(var(--track-overhang) * 1px);width:calc(var(--track-width) * 1px);height:100%}.track{background:${Sl};border:1px solid ${lc};border-radius:2px;box-sizing:border-box;position:absolute}:host(.vertical){height:100%;min-height:calc(${_n} * 60px);min-width:calc(${_n} * 20px)}:host(.vertical) .track-start{height:auto;width:100%;top:0}:host(.disabled),:host(.readonly){cursor:${"not-allowed"}}:host(.disabled){opacity:${Nn}}`.withBehaviors(eo(Dt`
|
|
154
|
+
.thumb-cursor{forced-color-adjust:none;border-color:${si.FieldText};background:${si.FieldText}}:host(:not(.disabled)) .thumb-cursor:hover,:host(:not(.disabled)) .thumb-cursor:active{background:${si.Highlight}}.track{forced-color-adjust:none;background:${si.FieldText}}.thumb-cursor::after,:host(:not(.disabled)) .thumb-cursor:hover::after,:host(:not(.disabled)) .thumb-cursor:active::after{background:${si.Field}}:host(:${so}) .thumb-cursor{background:${si.Highlight};border-color:${si.Highlight};box-shadow:0 0 0 1px ${si.Field},0 0 0 3px ${si.FieldText}}:host(.disabled){opacity:1}:host(.disabled) .track,:host(.disabled) .thumb-cursor{forced-color-adjust:none;background:${si.GrayText}}`)),dp=Fs.compose({baseName:"slider",template:(t,e)=>nt`<template role="slider" class="${t=>t.readOnly?"readonly":""} ${t=>t.orientation||We.horizontal}" tabindex="${t=>t.disabled?null:0}" aria-valuetext="${t=>t.valueTextFormatter(t.value)}" aria-valuenow="${t=>t.value}" aria-valuemin="${t=>t.min}" aria-valuemax="${t=>t.max}" aria-disabled="${t=>!!t.disabled||void 0}" aria-readonly="${t=>!!t.readOnly||void 0}" aria-orientation="${t=>t.orientation}" class="${t=>t.orientation}"><div part="positioning-region" class="positioning-region"><div ${Bt("track")} part="track-container" class="track"><slot name="track"></slot></div><slot></slot><div ${Bt("thumb")} part="thumb-container" class="thumb-container" style="${t=>t.position}"><slot name="thumb">${e.thumb||""}</slot></div></div></template>`,styles:hp,thumb:'\n <div class="thumb-cursor"></div>\n '}),up=hp,pp=(t,e)=>Dt`
|
|
155
|
+
${oo("block")} :host{font-family:${Yn}}.root{position:absolute;display:grid}:host(.horizontal){align-self:start;grid-row:2;margin-top:-4px}:host(.vertical){justify-self:start;grid-column:2;margin-left:2px}.container{display:grid;justify-self:center}:host(.horizontal) .container{grid-template-rows:auto auto;grid-template-columns:0}:host(.vertical) .container{grid-template-columns:auto auto;grid-template-rows:0;min-width:calc(var(--thumb-size) * 1px);height:calc(var(--thumb-size) * 1px)}.label{justify-self:center;align-self:center;white-space:nowrap;max-width:30px;margin:2px 0}.mark{width:calc(${Kn} * 1px);height:calc(${_n} * 1px);background:${lc};justify-self:center}:host(.vertical) .mark{transform:rotate(90deg);align-self:center}:host(.vertical) .label{margin-left:calc((${_n} / 2) * 2px);align-self:center}:host(.disabled){opacity:${Nn}}`.withBehaviors(eo(Dt`
|
|
156
|
+
.mark{forced-color-adjust:none;background:${si.FieldText}}:host(.disabled){forced-color-adjust:none;opacity:1}:host(.disabled) .label{color:${si.GrayText}}:host(.disabled) .mark{background:${si.GrayText}}`)),gp=ws.compose({baseName:"slider-label",template:(t,e)=>nt`<template aria-disabled="${t=>t.disabled}" class="${t=>t.sliderOrientation||We.horizontal} ${t=>t.disabled?"disabled":""}"><div ${Bt("root")} part="root" class="root" style="${t=>t.positionStyle}"><div class="container">${Nt(t=>!t.hideMark,nt`<div class="mark"></div>`)}<div class="label"><slot></slot></div></div></div></template>`,styles:pp}),fp=pp,mp=(t,e)=>Dt`
|
|
157
|
+
:host([hidden]){display:none}${oo("inline-flex")} :host{align-items:center;outline:none;font-family:${Yn};${""} user-select:none}:host(.disabled){opacity:${Nn}}:host(.disabled) .label,:host(.readonly) .label,:host(.disabled) .switch,:host(.readonly) .switch,:host(.disabled) .status-message,:host(.readonly) .status-message{cursor:${"not-allowed"}}.switch{position:relative;outline:none;box-sizing:border-box;width:calc(((${ph} / 2) + ${_n}) * 2px);height:calc(((${ph} / 2) + ${_n}) * 1px);background:${ll};border-radius:calc(${ph} * 1px);border:calc(${Kn} * 1px) solid ${lc};cursor:pointer}:host(:not(.disabled):hover) .switch{background:${cl};border-color:${cc}}:host(:not(.disabled):active) .switch{background:${hl};border-color:${hc}}:host(:${so}) .switch{box-shadow:0 0 0 1px ${Sa},0 0 0 3px ${pc};background:${dl};border-color:${pc}}:host(.checked) .switch{background:${Ea};border-color:transparent}:host(.checked:not(.disabled):hover) .switch{background:${Ra};border-color:transparent}:host(.checked:not(.disabled):active) .switch{background:${Aa};border-color:transparent}slot[name='switch']{position:absolute;display:flex;border:1px solid transparent;fill:${Al};transition:all 0.2s ease-in-out}.status-message{color:${Al};cursor:pointer;font-size:${Qn};line-height:${Zn}}.label__hidden{display:none;visibility:hidden}.label{color:${Al};font-size:${Qn};line-height:${Zn};margin-inline-end:calc(${_n} * 2px + 2px);cursor:pointer}::slotted([slot="checked-message"]),::slotted([slot="unchecked-message"]){margin-inline-start:calc(${_n} * 2px + 2px)}:host(.checked) .switch{background:${Ea}}:host(.checked) .switch slot[name='switch']{fill:${Ha};filter:drop-shadow(0px 1px 1px rgba(0,0,0,0.15))}:host(.checked:not(.disabled)) .switch:hover{background:${Ra}}:host(.checked:not(.disabled)) .switch:hover slot[name='switch']{fill:${Pa}}:host(.checked:not(.disabled)) .switch:active{background:${Aa}}:host(.checked:not(.disabled)) .switch:active slot[name='switch']{fill:${Ma}}:host(.checked:${so}:not(.disabled)) .switch{box-shadow:0 0 0 1px ${Sa},0 0 0 3px ${pc};border-color:transparent}.unchecked-message{display:block}.checked-message{display:none}:host(.checked) .unchecked-message{display:none}:host(.checked) .checked-message{display:block}`.withBehaviors(new kh(Dt`
|
|
158
158
|
slot[name='switch']{left:0}:host(.checked) slot[name='switch']{left:100%;transform:translateX(-100%)}`,Dt`
|
|
159
|
-
slot[name='switch']{right:0}:host(.checked) slot[name='switch']{right:100%;transform:translateX(100%)}`),
|
|
160
|
-
:host(:not(.disabled)) .switch slot[name='switch']{forced-color-adjust:none;fill:${
|
|
161
|
-
${
|
|
162
|
-
.activeIndicator,:host(.vertical) .activeIndicator{background:${
|
|
163
|
-
${
|
|
164
|
-
:host{forced-color-adjust:none;border-color:transparent;color:${
|
|
165
|
-
${
|
|
166
|
-
${
|
|
159
|
+
slot[name='switch']{right:0}:host(.checked) slot[name='switch']{right:100%;transform:translateX(100%)}`),eo(Dt`
|
|
160
|
+
:host(:not(.disabled)) .switch slot[name='switch']{forced-color-adjust:none;fill:${si.FieldText}}.switch{background:${si.Field};border-color:${si.FieldText}}:host(.checked) .switch{background:${si.Highlight};border-color:${si.Highlight}}:host(:not(.disabled):hover) .switch,:host(:not(.disabled):active) .switch,:host(.checked:not(.disabled):hover) .switch{background:${si.HighlightText};border-color:${si.Highlight}}:host(.checked:not(.disabled)) .switch slot[name="switch"]{fill:${si.HighlightText}}:host(.checked:not(.disabled):hover) .switch slot[name='switch']{fill:${si.Highlight}}:host(:${so}) .switch{forced-color-adjust:none;background:${si.Field};border-color:${si.Highlight};box-shadow:0 0 0 1px ${si.Highlight},0 0 0 3px ${si.FieldText}}:host(.checked:${so}:not(.disabled)) .switch{forced-color-adjust:none;background:${si.Highlight};box-shadow:0 0 0 1px ${si.Field},0 0 0 3px ${si.FieldText};border-color:${si.Field}}:host(.disabled){opacity:1}:host(.disabled) slot[name='switch']{forced-color-adjust:none;fill:${si.GrayText}}:host(.disabled) .switch{background:${si.Field};border-color:${si.GrayText}}.status-message,.label{color:${si.FieldText}}`)),bp=Ss.compose({baseName:"switch",template:(t,e)=>nt`<template role="switch" aria-checked="${t=>t.checked}" aria-disabled="${t=>t.disabled}" aria-readonly="${t=>t.readOnly}" tabindex="${t=>t.disabled?null:0}" @keypress="${(t,e)=>t.keypressHandler(e.event)}" @click="${(t,e)=>t.clickHandler(e.event)}" class="${t=>t.checked?"checked":""}"><label part="label" class="${t=>t.defaultSlottedNodes&&t.defaultSlottedNodes.length?"label":"label label__hidden"}"><slot ${Qt("defaultSlottedNodes")}></slot></label><div part="switch" class="switch"><slot name="switch">${e.switch||""}</slot></div><span class="status-message" part="status-message"><span class="checked-message" part="checked-message"><slot name="checked-message"></slot></span><span class="unchecked-message" part="unchecked-message"><slot name="unchecked-message"></slot></span></span></template>`,styles:mp,switch:'\n <svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">\n <rect x="2" y="2" width="12" height="12" rx="6"/>\n </svg>\n '}),vp=mp,yp=(t,e)=>Dt`
|
|
161
|
+
${oo("grid")} :host{box-sizing:border-box;font-family:${Yn};font-size:${Qn};line-height:${Zn};color:${Al};grid-template-columns:auto 1fr auto;grid-template-rows:auto 1fr}.tablist{display:grid;grid-template-rows:calc(${ph} * 1px);auto;grid-template-columns:auto;position:relative;width:max-content;align-self:end}.start,.end{align-self:center}.activeIndicator{grid-row:2;grid-column:1;width:20px;height:3px;border-radius:calc(${Gn} * 1px);justify-self:center;background:${Ea}}.activeIndicatorTransition{transition:transform 0.2s ease-in-out}.tabpanel{grid-row:2;grid-column-start:1;grid-column-end:4;position:relative}:host(.vertical){grid-template-rows:auto 1fr auto;grid-template-columns:auto 1fr}:host(.vertical) .tablist{grid-row-start:2;grid-row-end:2;display:grid;grid-template-rows:auto;grid-template-columns:auto 1fr;position:relative;width:max-content;justify-self:end;align-self:flex-start;width:100%}:host(.vertical) .tabpanel{grid-column:2;grid-row-start:1;grid-row-end:4}:host(.vertical) .end{grid-row:3}:host(.vertical) .activeIndicator{grid-column:1;grid-row:1;width:3px;height:20px;margin-inline-start:calc(${Xn} * 1px);border-radius:calc(${Gn} * 1px);align-self:center;background:${Ea}}:host(.vertical) .activeIndicatorTransition{transition:transform 0.2s linear}`.withBehaviors(eo(Dt`
|
|
162
|
+
.activeIndicator,:host(.vertical) .activeIndicator{background:${si.Highlight}}`)),xp=(t,e)=>Dt`
|
|
163
|
+
${oo("inline-flex")} :host{box-sizing:border-box;font-family:${Yn};font-size:${Qn};font-weight:400;line-height:${Zn};height:calc((${ph} + (${_n} * 2)) * 1px);padding:0 calc((6 + (${_n} * 2 * ${qn})) * 1px);color:${Al};border-radius:calc(${Gn} * 1px);border:calc(${Kn} * 1px) solid transparent;align-items:center;justify-content:center;grid-row:1 / 3;cursor:pointer;outline:none}:host([aria-selected='true']){z-index:2}:host(:hover),:host(:active){color:${Al}}:host(:${so}){border-color:${pc};box-shadow:0 0 0 calc((${Xn} - ${Kn}) * 1px) ${pc} inset}:host(.vertical){justify-content:start;grid-column:1 / 3}:host(.vertical[aria-selected='true']){z-index:2}:host(.vertical:hover),:host(.vertical:active){color:${Al}}:host(.vertical:hover[aria-selected='true']){}`.withBehaviors(eo(Dt`
|
|
164
|
+
:host{forced-color-adjust:none;border-color:transparent;color:${si.ButtonText};fill:currentcolor}:host(:hover),:host(.vertical:hover),:host([aria-selected='true']:hover){background:transparent;color:${si.Highlight};fill:currentcolor}:host([aria-selected='true']){background:transparent;color:${si.Highlight};fill:currentcolor}:host(:${so}){background:transparent;border-color:${si.ButtonText};box-shadow:none}`)),$p=Os.compose({baseName:"tab",template:(t,e)=>nt`<template slot="tab" role="tab" aria-disabled="${t=>t.disabled}"><slot></slot></template>`,styles:xp}),wp=xp,kp=(t,e)=>Dt`
|
|
165
|
+
${oo("block")} :host{box-sizing:border-box;font-family:${Yn};font-size:${Qn};font-weight:400;line-height:${Zn};padding:0 calc((6 + (${_n} * 2 * ${qn})) * 1px)}`,Cp=Vs.compose({baseName:"tab-panel",template:(t,e)=>nt`<template slot="tabpanel" role="tabpanel"><slot></slot></template>`,styles:kp}),Ip=kp,Fp=As.compose({baseName:"tabs",template:(t,e)=>nt`<template class="${t=>t.orientation}">${ie(0,e)}<div class="tablist" part="tablist" role="tablist"><slot class="tab" name="tab" part="tab" ${Qt("tabs")}></slot>${Nt(t=>t.showActiveIndicator,nt`<div ${Bt("activeIndicatorRef")} class="activeIndicator" part="activeIndicator"></div>`)}</div>${ee(0,e)}<div class="tabpanel"><slot name="tabpanel" part="tabpanel" ${Qt("tabpanels")}></slot></div></template>`,styles:yp}),Tp=yp,Dp=(t,e)=>Dt`
|
|
166
|
+
${oo("inline-flex")}
|
|
167
167
|
|
|
168
|
-
${
|
|
168
|
+
${Jh(0,0,".control")}
|
|
169
169
|
|
|
170
|
-
${
|
|
170
|
+
${td()}
|
|
171
171
|
|
|
172
|
-
:host{flex-direction:column;vertical-align:bottom}.control{height:calc((${
|
|
173
|
-
${
|
|
174
|
-
`.withBehaviors(
|
|
175
|
-
${
|
|
176
|
-
`))),
|
|
177
|
-
${
|
|
178
|
-
`));class
|
|
179
|
-
${
|
|
172
|
+
:host{flex-direction:column;vertical-align:bottom}.control{height:calc((${ph} * 2) * 1px);padding:calc(${_n} * 1.5px) calc(${_n} * 2px + 1px)}:host .control{resize:none}:host(.resize-both) .control{resize:both}:host(.resize-horizontal) .control{resize:horizontal}:host(.resize-vertical) .control{resize:vertical}`.withBehaviors(sd("filled",Dt`
|
|
173
|
+
${ed(0,0,".control")}
|
|
174
|
+
`.withBehaviors(eo(Dt`
|
|
175
|
+
${od(0,0,".control")}
|
|
176
|
+
`))),eo(Dt`
|
|
177
|
+
${id(0,0,".control")}
|
|
178
|
+
`));class Sp extends Hs{appearanceChanged(t,e){t!==e&&(this.classList.add(e),this.classList.remove(t))}connectedCallback(){super.connectedCallback(),this.appearance||(this.appearance="outline")}}wh([ft],Sp.prototype,"appearance",void 0);const Vp=Sp.compose({baseName:"text-area",baseClass:Hs,template:(t,e)=>nt`<template class=" ${t=>t.readOnly?"readonly":""} ${t=>t.resize!==Rs.none?"resize-"+t.resize:""}"><label part="label" for="control" class="${t=>t.defaultSlottedNodes&&t.defaultSlottedNodes.length?"label":"label label__hidden"}"><slot ${Qt("defaultSlottedNodes")}></slot></label><textarea part="control" class="control" id="control" ?autofocus="${t=>t.autofocus}" cols="${t=>t.cols}" ?disabled="${t=>t.disabled}" form="${t=>t.form}" list="${t=>t.list}" maxlength="${t=>t.maxlength}" minlength="${t=>t.minlength}" name="${t=>t.name}" placeholder="${t=>t.placeholder}" ?readonly="${t=>t.readOnly}" ?required="${t=>t.required}" rows="${t=>t.rows}" ?spellcheck="${t=>t.spellcheck}" :value="${t=>t.value}" aria-atomic="${t=>t.ariaAtomic}" aria-busy="${t=>t.ariaBusy}" aria-controls="${t=>t.ariaControls}" aria-current="${t=>t.ariaCurrent}" aria-describedby="${t=>t.ariaDescribedby}" aria-details="${t=>t.ariaDetails}" aria-disabled="${t=>t.ariaDisabled}" aria-errormessage="${t=>t.ariaErrormessage}" aria-flowto="${t=>t.ariaFlowto}" aria-haspopup="${t=>t.ariaHaspopup}" aria-hidden="${t=>t.ariaHidden}" aria-invalid="${t=>t.ariaInvalid}" aria-keyshortcuts="${t=>t.ariaKeyshortcuts}" aria-label="${t=>t.ariaLabel}" aria-labelledby="${t=>t.ariaLabelledby}" aria-live="${t=>t.ariaLive}" aria-owns="${t=>t.ariaOwns}" aria-relevant="${t=>t.ariaRelevant}" aria-roledescription="${t=>t.ariaRoledescription}" @input="${(t,e)=>t.handleTextInput()}" @change="${t=>t.handleChange()}" ${Bt("control")}></textarea></template>`,styles:Dp,shadowOptions:{delegatesFocus:!0}}),Op=Dp,Ep=(t,e)=>Dt`
|
|
179
|
+
${oo("inline-block")}
|
|
180
180
|
|
|
181
|
-
${
|
|
181
|
+
${Jh(0,0,".root")}
|
|
182
182
|
|
|
183
|
-
${
|
|
183
|
+
${td()}
|
|
184
184
|
|
|
185
|
-
.root{display:flex;flex-direction:row}.control{-webkit-appearance:none;color:inherit;background:transparent;border:0;height:calc(100% - 4px);margin-top:auto;margin-bottom:auto;padding:0 calc(${
|
|
186
|
-
${
|
|
187
|
-
`.withBehaviors(
|
|
188
|
-
${
|
|
189
|
-
`))),
|
|
190
|
-
${
|
|
191
|
-
`));class
|
|
192
|
-
${
|
|
193
|
-
width:16px;height:16px}`.withBehaviors(
|
|
194
|
-
:host(:${
|
|
195
|
-
:host{position:relative;contain:layout;overflow:visible;height:0;width:0;z-index:10000}.tooltip{box-sizing:border-box;border-radius:calc(${
|
|
196
|
-
:host([disabled]){opacity:1}fluent-anchored-region.top .tooltip::after,fluent-anchored-region.bottom .tooltip::after,fluent-anchored-region.left .tooltip::after,fluent-anchored-region.right .tooltip::after{content:'';width:unset;height:unset}`))}),
|
|
197
|
-
:host([hidden]){display:none}${
|
|
198
|
-
.expand-collapse-button svg{transform:rotate(0deg)}:host(.nested) .expand-collapse-button{left:var(--expand-collapse-button-nested-width,calc(${
|
|
199
|
-
.expand-collapse-button svg{transform:rotate(180deg)}:host(.nested) .expand-collapse-button{right:var(--expand-collapse-button-nested-width,calc(${
|
|
200
|
-
${
|
|
201
|
-
:host{color:${oi.ButtonText}}.positioning-region{border-color:${oi.ButtonFace};background:${oi.ButtonFace}}:host(:not([disabled])) .positioning-region:hover,:host(:not([disabled])) .positioning-region:active,:host(:not([disabled])[selected]) .positioning-region{background:${oi.Highlight}}:host .positioning-region:hover .content-region,:host([selected]) .positioning-region .content-region{forced-color-adjust:none;color:${oi.HighlightText}}:host([disabled][selected]) .positioning-region .content-region{color:${oi.GrayText}}:host([selected])::after{background:${oi.HighlightText}}:host(:${oo}) .positioning-region{forced-color-adjust:none;border-color:${oi.ButtonText};box-shadow:0 0 0 2px inset ${oi.ButtonFace}}:host([disabled]),:host([disabled]) .content-region,:host([disabled]) .positioning-region:hover .content-region{opacity:1;color:${oi.GrayText}}:host(.nested) .expand-collapse-button:hover,:host(:not([disabled])[selected]) .expand-collapse-button:hover{background:${oi.ButtonFace};fill:${oi.ButtonText}}`)),Gp=Us.compose({baseName:"tree-item",template:(t,e)=>nt`<template role="treeitem" slot="${t=>t.isNestedItem()?"item":void 0}" tabindex="${t=>t.focusable?0:-1}" class="${t=>t.expanded?"expanded":""} ${t=>t.selected?"selected":""} ${t=>t.nested?"nested":""} ${t=>t.disabled?"disabled":""}" aria-expanded="${t=>t.childItems&&t.childItemLength()>0?t.expanded:void 0}" aria-selected="${t=>t.selected}" aria-disabled="${t=>t.disabled}" @click="${(t,e)=>t.handleClick(e.event)}" ${Jt({property:"childItems",filter:Kt()})}><div class="positioning-region" part="positioning-region"><div class="content-region" part="content-region">${Nt(t=>t.childItems&&t.childItemLength()>0,nt`<div aria-hidden="true" class="expand-collapse-button" part="expand-collapse-button" @click="${(t,e)=>t.handleExpandCollapseButtonClick(e.event)}" ${Bt("expandCollapseButton")}><slot name="expand-collapse-glyph">${e.expandCollapseGlyph||""}</slot></div>`)} ${ie(0,e)}<slot></slot>${ee(0,e)}</div></div>${Nt(t=>t.childItems&&t.childItemLength()>0&&(t.expanded||t.renderCollapsedChildren),nt`<div role="group" class="items" part="items"><slot name="item" ${Qt("items")}></slot></div>`)}</template>`,styles:_p,expandCollapseGlyph:'\n <svg width="12" height="12" xmlns="http://www.w3.org/2000/svg">\n <path d="M4.65 2.15a.5.5 0 000 .7L7.79 6 4.65 9.15a.5.5 0 10.7.7l3.5-3.5a.5.5 0 000-.7l-3.5-3.5a.5.5 0 00-.7 0z"/>\n </svg>\n '}),Wp=_p,Kp={fluentAccordion:bh,fluentAccordionItem:fh,fluentAnchor:nd,fluentAnchoredRegion:ad,fluentBadge:dd,fluentBreadcrumb:gd,fluentBreadcrumbItem:bd,fluentButton:$d,fluentCalendar:Id,fluentCard:Vd,fluentCheckbox:Ed,fluentCombobox:Pd,fluentDataGrid:Wd,fluentDataGridCell:Ud,fluentDataGridRow:_d,fluentDesignSystemProvider:Jd,fluentDialog:eu,fluentDivider:su,fluentFlipper:au,fluentHorizontalScroll:gu,fluentListbox:vu,fluentOption:$u,fluentMenu:Fu,fluentMenuItem:Du,fluentNumberField:Ou,fluentProgress:zu,fluentProgressRing:Bu,fluentRadio:Uu,fluentRadioGroup:Gu,fluentSearch:Ju,fluentSelect:ip,fluentSkeleton:np,fluentSlider:lp,fluentSliderLabel:dp,fluentSwitch:gp,fluentTabs:kp,fluentTab:vp,fluentTabPanel:$p,fluentTextArea:Tp,fluentTextField:Rp,fluentToolbar:Lp,fluentTooltip:zp,fluentTreeView:Pp,fluentTreeItem:Gp,register(t,...e){if(t)for(const i in this)"register"!==i&&this[i]().register(t,...e)}};function Xp(t){return Do.getOrCreate(t).withPrefix("fluent")}const Yp=Xp().register(Kp);export{Nh as AccentButtonStyles,ni as Accordion,Ge as AccordionItem,od as Anchor,di as AnchoredRegion,hd as Badge,gi as Breadcrumb,pi as BreadcrumbItem,xd as Button,Dd as Card,Hd as Combobox,Vi as DataGrid,Ei as DataGridCell,Di as DataGridRow,Zd as DesignSystemProvider,No as Dialog,xh as DirectionalStyleSheetBehavior,qo as Divider,_o as Flipper,Yp as FluentDesignSystem,pu as HorizontalScroll,jh as HypertextStyles,Uh as LightweightButtonStyles,bu as Listbox,Cu as Menu,Ko as MenuItem,Ru as NumberField,wu as OptionStyles,qh as OutlineButtonStyles,bn as PaletteRGB,Au as Progress,Mu as ProgressRing,ls as Radio,ns as RadioGroup,qu as RadioStyles,Zu as Search,ep as Select,vs as Skeleton,Fs as Slider,$s as SliderLabel,En as StandardLuminance,_h as StealthButtonStyles,dn as SwatchRGB,Ds as Switch,Ss as Tab,Vs as TabPanel,Os as Tabs,Ip as TextArea,Sp as TextField,Op as Toolbar,Ap as Tooltip,Us as TreeItem,qs as TreeView,ua as accentBaseColor,Ra as accentFillActive,fr as accentFillActiveDelta,Ea as accentFillFocus,mr as accentFillFocusDelta,Sa as accentFillHover,gr as accentFillHoverDelta,Da as accentFillRecipe,Va as accentFillRest,pr as accentFillRestDelta,Na as accentForegroundActive,yr as accentForegroundActiveDelta,_c as accentForegroundCut,Gc as accentForegroundCutLarge,ja as accentForegroundFocus,xr as accentForegroundFocusDelta,Ba as accentForegroundHover,vr as accentForegroundHoverDelta,Pa as accentForegroundRecipe,Ma as accentForegroundRest,br as accentForegroundRestDelta,pa as accentPalette,Ga as accentStrokeControlActive,Wa as accentStrokeControlFocus,_a as accentStrokeControlHover,Ua as accentStrokeControlRecipe,qa as accentStrokeControlRest,mh as accordionItemStyles,vh as accordionStyles,Kp as allComponents,wh as ambientShadow,sd as anchorStyles,ld as anchoredRegionStyles,ud as badgeStyles,Bh as baseButtonStyles,Mn as baseHeightMultiplier,Bn as baseHorizontalSpacingMultiplier,ur as baseLayerLuminance,Wn as bodyFont,vd as breadcrumbItemStyles,fd as breadcrumbStyles,wd as buttonStyles,Sd as cardStyles,Od as checkboxStyles,Md as comboboxStyles,Un as controlCornerRadius,Tc as cornerRadius,qd as dataGridCellStyles,Gd as dataGridRowStyles,Kd as dataGridStyles,Nn as density,jn as designUnit,iu as dialogStyles,Hn as direction,kh as directionalShadow,Pn as disabledOpacity,nu as dividerStyles,Dc as elevatedCornerRadius,Ch as elevation,Eh as elevationShadowCardActive,Dh as elevationShadowCardActiveSize,Oh as elevationShadowCardFocus,Vh as elevationShadowCardFocusSize,Rh as elevationShadowCardHover,Th as elevationShadowCardHoverSize,Sh as elevationShadowCardRest,Ih as elevationShadowCardRestSize,Mh as elevationShadowDialog,Ph as elevationShadowDialogSize,Hh as elevationShadowFlyout,zh as elevationShadowFlyoutSize,Fh as elevationShadowRecipe,Ah as elevationShadowTooltip,Lh as elevationShadowTooltipSize,Ia as fillColor,lu as flipperStyles,bh as fluentAccordion,fh as fluentAccordionItem,nd as fluentAnchor,ad as fluentAnchoredRegion,dd as fluentBadge,gd as fluentBreadcrumb,bd as fluentBreadcrumbItem,$d as fluentButton,Id as fluentCalendar,Vd as fluentCard,Ed as fluentCheckbox,Pd as fluentCombobox,Wd as fluentDataGrid,Ud as fluentDataGridCell,_d as fluentDataGridRow,Jd as fluentDesignSystemProvider,eu as fluentDialog,su as fluentDivider,au as fluentFlipper,gu as fluentHorizontalScroll,vu as fluentListbox,Fu as fluentMenu,Du as fluentMenuItem,Ou as fluentNumberField,$u as fluentOption,zu as fluentProgress,Bu as fluentProgressRing,Uu as fluentRadio,Gu as fluentRadioGroup,Ju as fluentSearch,ip as fluentSelect,np as fluentSkeleton,lp as fluentSlider,dp as fluentSliderLabel,gp as fluentSwitch,vp as fluentTab,$p as fluentTabPanel,kp as fluentTabs,Tp as fluentTextArea,Rp as fluentTextField,Lp as fluentToolbar,zp as fluentTooltip,Gp as fluentTreeItem,Pp as fluentTreeView,Sc as focusOutlineWidth,uc as focusStrokeInner,dc as focusStrokeInnerRecipe,hc as focusStrokeOuter,cc as focusStrokeOuterRecipe,Gn as focusStrokeWidth,za as foregroundOnAccentActive,mc as foregroundOnAccentActiveLarge,Ha as foregroundOnAccentFocus,bc as foregroundOnAccentFocusLarge,Aa as foregroundOnAccentHover,fc as foregroundOnAccentHoverLarge,pc as foregroundOnAccentLargeRecipe,Oa as foregroundOnAccentRecipe,La as foregroundOnAccentRest,gc as foregroundOnAccentRestLarge,hh as heightNumber,fu as horizontalScrollStyles,td as inputFilledForcedColorStyles,Zh as inputFilledStyles,Jh as inputForcedColorStyles,Qh as inputStateStyles,Yh as inputStyles,gn as isDark,qn as layerCornerRadius,yu as listboxStyles,Vu as menuItemStyles,Iu as menuStyles,ha as neutralBaseColor,Qc as neutralContrastFillActive,Oc as neutralContrastFillActiveDelta,Zc as neutralContrastFillFocus,Lc as neutralContrastFillFocusDelta,Yc as neutralContrastFillHover,Ec as neutralContrastFillHoverDelta,Xc as neutralContrastFillRest,Rc as neutralContrastFillRestDelta,Wc as neutralDivider,Bc as neutralDividerRestDelta,Qa as neutralFillActive,kr as neutralFillActiveDelta,Kc as neutralFillCard,Ac as neutralFillCardDelta,Za as neutralFillFocus,Cr as neutralFillFocusDelta,Ya as neutralFillHover,wr as neutralFillHoverDelta,il as neutralFillInputActive,Tr as neutralFillInputActiveDelta,al as neutralFillInputAltActive,Rr as neutralFillInputAltActiveDelta,ll as neutralFillInputAltFocus,Er as neutralFillInputAltFocusDelta,rl as neutralFillInputAltHover,Sr as neutralFillInputAltHoverDelta,sl as neutralFillInputAltRecipe,nl as neutralFillInputAltRest,Vr as neutralFillInputAltRestDelta,ol as neutralFillInputFocus,Dr as neutralFillInputFocusDelta,el as neutralFillInputHover,Ir as neutralFillInputHoverDelta,Ja as neutralFillInputRecipe,tl as neutralFillInputRest,Fr as neutralFillInputRestDelta,Fc as neutralFillInverseActive,xc as neutralFillInverseActiveDelta,Ic as neutralFillInverseFocus,$c as neutralFillInverseFocusDelta,Cc as neutralFillInverseHover,yc as neutralFillInverseHoverDelta,wc as neutralFillInverseRecipe,kc as neutralFillInverseRest,vc as neutralFillInverseRestDelta,ul as neutralFillLayerActive,Ar as neutralFillLayerActiveDelta,pl as neutralFillLayerAltRecipe,gl as neutralFillLayerAltRest,zr as neutralFillLayerAltRestDelta,dl as neutralFillLayerHover,Lr as neutralFillLayerHoverDelta,cl as neutralFillLayerRecipe,hl as neutralFillLayerRest,Or as neutralFillLayerRestDelta,Ka as neutralFillRecipe,Xa as neutralFillRest,$r as neutralFillRestDelta,vl as neutralFillSecondaryActive,Mr as neutralFillSecondaryActiveDelta,yl as neutralFillSecondaryFocus,Br as neutralFillSecondaryFocusDelta,bl as neutralFillSecondaryHover,Pr as neutralFillSecondaryHoverDelta,fl as neutralFillSecondaryRecipe,ml as neutralFillSecondaryRest,Hr as neutralFillSecondaryRestDelta,kl as neutralFillStealthActive,Ur as neutralFillStealthActiveDelta,Cl as neutralFillStealthFocus,qr as neutralFillStealthFocusDelta,wl as neutralFillStealthHover,jr as neutralFillStealthHoverDelta,xl as neutralFillStealthRecipe,$l as neutralFillStealthRest,Nr as neutralFillStealthRestDelta,Dl as neutralFillStrongActive,Wr as neutralFillStrongActiveDelta,Vl as neutralFillStrongFocus,Kr as neutralFillStrongFocusDelta,Tl as neutralFillStrongHover,Gr as neutralFillStrongHoverDelta,Fl as neutralFillStrongRecipe,Il as neutralFillStrongRest,_r as neutralFillStrongRestDelta,eh as neutralFillToggleActive,Pc as neutralFillToggleActiveDelta,ih as neutralFillToggleFocus,Mc as neutralFillToggleFocusDelta,th as neutralFillToggleHover,Hc as neutralFillToggleHoverDelta,Jc as neutralFillToggleRest,zc as neutralFillToggleRestDelta,oh as neutralFocus,sh as neutralFocusInnerAccent,Ol as neutralForegroundActive,Ll as neutralForegroundFocus,zl as neutralForegroundHint,Al as neutralForegroundHintRecipe,El as neutralForegroundHover,Sl as neutralForegroundRecipe,Rl as neutralForegroundRest,ya as neutralLayer1,va as neutralLayer1Recipe,$a as neutralLayer2,xa as neutralLayer2Recipe,ka as neutralLayer3,wa as neutralLayer3Recipe,Fa as neutralLayer4,Ca as neutralLayer4Recipe,fa as neutralLayerCardContainer,ga as neutralLayerCardContainerRecipe,ba as neutralLayerFloating,ma as neutralLayerFloatingRecipe,Nc as neutralLayerL1,jc as neutralLayerL2,Uc as neutralLayerL3,qc as neutralLayerL4,ah as neutralOutlineActive,lh as neutralOutlineFocus,rh as neutralOutlineHover,nh as neutralOutlineRest,da as neutralPalette,Bl as neutralStrokeActive,Qr as neutralStrokeActiveDelta,_l as neutralStrokeControlActive,ea as neutralStrokeControlActiveDelta,Gl as neutralStrokeControlFocus,ia as neutralStrokeControlFocusDelta,ql as neutralStrokeControlHover,ta as neutralStrokeControlHoverDelta,jl as neutralStrokeControlRecipe,Ul as neutralStrokeControlRest,Jr as neutralStrokeControlRestDelta,Wl as neutralStrokeDividerRecipe,Kl as neutralStrokeDividerRest,oa as neutralStrokeDividerRestDelta,Nl as neutralStrokeFocus,Zr as neutralStrokeFocusDelta,Ml as neutralStrokeHover,Yr as neutralStrokeHoverDelta,Zl as neutralStrokeInputActive,Jl as neutralStrokeInputFocus,Ql as neutralStrokeInputHover,Xl as neutralStrokeInputRecipe,Yl as neutralStrokeInputRest,oc as neutralStrokeLayerActive,ra as neutralStrokeLayerActiveDelta,ic as neutralStrokeLayerHover,na as neutralStrokeLayerHoverDelta,tc as neutralStrokeLayerRecipe,ec as neutralStrokeLayerRest,sa as neutralStrokeLayerRestDelta,Hl as neutralStrokeRecipe,Pl as neutralStrokeRest,Xr as neutralStrokeRestDelta,ac as neutralStrokeStrongActive,la as neutralStrokeStrongActiveDelta,lc as neutralStrokeStrongFocus,ca as neutralStrokeStrongFocusDelta,rc as neutralStrokeStrongHover,aa as neutralStrokeStrongHoverDelta,sc as neutralStrokeStrongRecipe,nc as neutralStrokeStrongRest,Eu as numberFieldStyles,Vc as outlineWidth,Nu as progressRingStyles,Hu as progressStyles,Xp as provideFluentDesignSystem,Wu as radioGroupStyles,tp as searchStyles,Ku as searchTemplate,op as selectStyles,rp as skeletonStyles,up as sliderLabelStyles,cp as sliderStyles,_n as strokeWidth,fp as switchStyles,wp as tabPanelStyles,yp as tabStyles,Cp as tabsStyles,Dp as textAreaStyles,Ep as textFieldStyles,Wp as treeItemStyles,Mp as treeViewStyles,Kn as typeRampBaseFontSize,Xn as typeRampBaseLineHeight,Yn as typeRampMinus1FontSize,Qn as typeRampMinus1LineHeight,Zn as typeRampMinus2FontSize,Jn as typeRampMinus2LineHeight,tr as typeRampPlus1FontSize,er as typeRampPlus1LineHeight,ir as typeRampPlus2FontSize,or as typeRampPlus2LineHeight,sr as typeRampPlus3FontSize,nr as typeRampPlus3LineHeight,rr as typeRampPlus4FontSize,ar as typeRampPlus4LineHeight,lr as typeRampPlus5FontSize,cr as typeRampPlus5LineHeight,hr as typeRampPlus6FontSize,dr as typeRampPlus6LineHeight};
|
|
185
|
+
.root{display:flex;flex-direction:row}.control{-webkit-appearance:none;color:inherit;background:transparent;border:0;height:calc(100% - 4px);margin-top:auto;margin-bottom:auto;padding:0 calc(${_n} * 2px + 1px);font-family:inherit;font-size:inherit;line-height:inherit}.start,.end{display:flex;margin:auto}.start{display:flex;margin-inline-start:11px}.end{display:flex;margin-inline-end:11px}`.withBehaviors(sd("filled",Dt`
|
|
186
|
+
${ed(0,0,".root")}
|
|
187
|
+
`.withBehaviors(eo(Dt`
|
|
188
|
+
${od(0,0,".root")}
|
|
189
|
+
`))),eo(Dt`
|
|
190
|
+
${id(0,0,".root")}
|
|
191
|
+
`));class Rp extends ts{appearanceChanged(t,e){t!==e&&(this.classList.add(e),this.classList.remove(t))}connectedCallback(){super.connectedCallback(),this.appearance||(this.appearance="outline")}}wh([ft],Rp.prototype,"appearance",void 0);const Ap=Rp.compose({baseName:"text-field",baseClass:ts,template:(t,e)=>nt`<template class=" ${t=>t.readOnly?"readonly":""} "><label part="label" for="control" class="${t=>t.defaultSlottedNodes&&t.defaultSlottedNodes.length?"label":"label label__hidden"}"><slot ${Qt({property:"defaultSlottedNodes",filter:no})}></slot></label><div class="root" part="root">${ie(0,e)}<input class="control" part="control" id="control" @input="${t=>t.handleTextInput()}" @change="${t=>t.handleChange()}" ?autofocus="${t=>t.autofocus}" ?disabled="${t=>t.disabled}" list="${t=>t.list}" maxlength="${t=>t.maxlength}" minlength="${t=>t.minlength}" pattern="${t=>t.pattern}" placeholder="${t=>t.placeholder}" ?readonly="${t=>t.readOnly}" ?required="${t=>t.required}" size="${t=>t.size}" ?spellcheck="${t=>t.spellcheck}" :value="${t=>t.value}" type="${t=>t.type}" aria-atomic="${t=>t.ariaAtomic}" aria-busy="${t=>t.ariaBusy}" aria-controls="${t=>t.ariaControls}" aria-current="${t=>t.ariaCurrent}" aria-describedby="${t=>t.ariaDescribedby}" aria-details="${t=>t.ariaDetails}" aria-disabled="${t=>t.ariaDisabled}" aria-errormessage="${t=>t.ariaErrormessage}" aria-flowto="${t=>t.ariaFlowto}" aria-haspopup="${t=>t.ariaHaspopup}" aria-hidden="${t=>t.ariaHidden}" aria-invalid="${t=>t.ariaInvalid}" aria-keyshortcuts="${t=>t.ariaKeyshortcuts}" aria-label="${t=>t.ariaLabel}" aria-labelledby="${t=>t.ariaLabelledby}" aria-live="${t=>t.ariaLive}" aria-owns="${t=>t.ariaOwns}" aria-relevant="${t=>t.ariaRelevant}" aria-roledescription="${t=>t.ariaRoledescription}" ${Bt("control")} />${ee(0,e)}</div></template>`,styles:Ep,shadowOptions:{delegatesFocus:!0}}),Lp=Ep;class zp extends Ms{}const Hp=zp.compose({baseName:"toolbar",baseClass:Ms,template:(t,e)=>nt`<template aria-label="${t=>t.ariaLabel}" aria-labelledby="${t=>t.ariaLabelledby}" aria-orientation="${t=>t.orientation}" orientation="${t=>t.orientation}" role="toolbar" @click="${(t,e)=>t.clickHandler(e.event)}" @focusin="${(t,e)=>t.focusinHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}"><slot name="label"></slot><div class="positioning-region" part="positioning-region">${ie(0,e)}<slot ${Qt({filter:Kt(),property:"slottedItems"})}></slot>${ee(0,e)}</div></template>`,styles:(t,e)=>Dt`
|
|
192
|
+
${oo("inline-flex")} :host{--toolbar-item-gap:calc(${_n} * 1px);background:${Sa};fill:currentcolor;padding:var(--toolbar-item-gap);box-sizing:border-box;align-items:center}:host(${so}){outline:calc(${Kn} * 1px) solid ${ql}}.positioning-region{align-items:center;display:inline-flex;flex-flow:row wrap;justify-content:flex-start;flex-grow:1}:host([orientation='vertical']) .positioning-region{flex-direction:column;align-items:start}::slotted(:not([slot])){flex:0 0 auto;margin:0 var(--toolbar-item-gap)}:host([orientation='vertical']) ::slotted(:not([slot])){margin:var(--toolbar-item-gap) 0}:host([orientation='vertical']){display:inline-flex;flex-direction:column}.start,.end{display:flex;align-items:center}.end{margin-inline-start:auto}.start__hidden,.end__hidden{display:none}::slotted(svg){${""}
|
|
193
|
+
width:16px;height:16px}`.withBehaviors(eo(Dt`
|
|
194
|
+
:host(:${so}){box-shadow:0 0 0 calc(${Xn} * 1px) ${si.Highlight};color:${si.ButtonText};forced-color-adjust:none}`))});class Pp extends js{connectedCallback(){super.connectedCallback(),Sa.setValueFor(this,xa)}}const Mp=Pp.compose({baseName:"tooltip",baseClass:js,template:(t,e)=>nt` ${Nt(t=>t.tooltipVisible,nt`<${t.tagFor(ui)} fixed-placement="true" auto-update-mode="${t=>t.autoUpdateMode}" vertical-positioning-mode="${t=>t.verticalPositioningMode}" vertical-default-position="${t=>t.verticalDefaultPosition}" vertical-inset="${t=>t.verticalInset}" vertical-scaling="${t=>t.verticalScaling}" horizontal-positioning-mode="${t=>t.horizontalPositioningMode}" horizontal-default-position="${t=>t.horizontalDefaultPosition}" horizontal-scaling="${t=>t.horizontalScaling}" horizontal-inset="${t=>t.horizontalInset}" vertical-viewport-lock="${t=>t.horizontalViewportLock}" horizontal-viewport-lock="${t=>t.verticalViewportLock}" dir="${t=>t.currentDirection}" ${Bt("region")}><div class="tooltip" part="tooltip" role="tooltip"><slot></slot></div></${t.tagFor(ui)}>`)} `,styles:(t,e)=>Dt`
|
|
195
|
+
:host{position:relative;contain:layout;overflow:visible;height:0;width:0;z-index:10000}.tooltip{box-sizing:border-box;border-radius:calc(${Gn} * 1px);border:calc(${Kn} * 1px) solid ${sc};background:${Sa};color:${Al};padding:4px 12px;height:fit-content;width:fit-content;font-family:${Yn};font-size:${Qn};line-height:${Zn};white-space:nowrap;box-shadow:${Ph}}fluent-anchored-region{display:flex;justify-content:center;align-items:center;overflow:visible;flex-direction:row}fluent-anchored-region.right,fluent-anchored-region.left{flex-direction:column}fluent-anchored-region.top .tooltip::after,fluent-anchored-region.bottom .tooltip::after,fluent-anchored-region.left .tooltip::after,fluent-anchored-region.right .tooltip::after{content:'';width:12px;height:12px;background:${Sa};border-top:calc(${Kn} * 1px) solid ${sc};border-left:calc(${Kn} * 1px) solid ${sc};position:absolute}fluent-anchored-region.top .tooltip::after{transform:translateX(-50%) rotate(225deg);bottom:5px;left:50%}fluent-anchored-region.top .tooltip{margin-bottom:12px}fluent-anchored-region.bottom .tooltip::after{transform:translateX(-50%) rotate(45deg);top:5px;left:50%}fluent-anchored-region.bottom .tooltip{margin-top:12px}fluent-anchored-region.left .tooltip::after{transform:translateY(-50%) rotate(135deg);top:50%;right:5px}fluent-anchored-region.left .tooltip{margin-right:12px}fluent-anchored-region.right .tooltip::after{transform:translateY(-50%) rotate(-45deg);top:50%;left:5px}fluent-anchored-region.right .tooltip{margin-left:12px}`.withBehaviors(eo(Dt`
|
|
196
|
+
:host([disabled]){opacity:1}fluent-anchored-region.top .tooltip::after,fluent-anchored-region.bottom .tooltip::after,fluent-anchored-region.left .tooltip::after,fluent-anchored-region.right .tooltip::after{content:'';width:unset;height:unset}`))}),Bp=(t,e)=>Dt`
|
|
197
|
+
:host([hidden]){display:none}${oo("flex")} :host{flex-direction:column;align-items:stretch;min-width:fit-content;font-size:0}:host:focus-visible{outline:none}`,Np=_s.compose({baseName:"tree-view",template:(t,e)=>nt`<template role="tree" ${Bt("treeView")} @keydown="${(t,e)=>t.handleKeyDown(e.event)}" @focusin="${(t,e)=>t.handleFocus(e.event)}" @focusout="${(t,e)=>t.handleBlur(e.event)}" @click="${(t,e)=>t.handleClick(e.event)}" @selected-change="${(t,e)=>t.handleSelectedChange(e.event)}"><slot ${Qt("slottedTreeItems")}></slot></template>`,styles:Bp}),jp=Bp,Up=Dt`
|
|
198
|
+
.expand-collapse-button svg{transform:rotate(0deg)}:host(.nested) .expand-collapse-button{left:var(--expand-collapse-button-nested-width,calc(${ph} * -1px))}:host([selected])::after{left:calc(${Xn} * 1px)}:host([expanded]) > .positioning-region .expand-collapse-button svg{transform:rotate(90deg)}`,qp=Dt`
|
|
199
|
+
.expand-collapse-button svg{transform:rotate(180deg)}:host(.nested) .expand-collapse-button{right:var(--expand-collapse-button-nested-width,calc(${ph} * -1px))}:host([selected])::after{right:calc(${Xn} * 1px)}:host([expanded]) > .positioning-region .expand-collapse-button svg{transform:rotate(90deg)}`,_p=Vt`((${jn} / 2) * ${_n}) + ((${_n} * ${qn}) / 2)`,Gp=ko.create("tree-item-expand-collapse-hover").withDefault(t=>{const e=kl.getValueFor(t);return e.evaluate(t,e.evaluate(t).hover).hover}),Wp=ko.create("tree-item-expand-collapse-selected-hover").withDefault(t=>{const e=vl.getValueFor(t);return kl.getValueFor(t).evaluate(t,e.evaluate(t).rest).hover}),Kp=(t,e)=>Dt`
|
|
200
|
+
${oo("block")} :host{contain:content;position:relative;outline:none;color:${Al};fill:currentcolor;cursor:pointer;font-family:${Yn};--expand-collapse-button-size:calc(${ph} * 1px);--tree-item-nested-width:0}:host(:focus) > .positioning-region{outline:none}:host(:focus) .content-region{outline:none}.positioning-region{display:flex;position:relative;box-sizing:border-box;background:${Cl};border:calc(${Kn} * 1px) solid transparent;border-radius:calc(${Gn} * 1px);height:calc((${ph} + 1) * 1px)}:host(:${so}) .positioning-region{border-color:${pc};box-shadow:0 0 0 calc((${Xn} - ${Kn}) * 1px) ${pc} inset}.positioning-region::before{content:'';display:block;width:var(--tree-item-nested-width);flex-shrink:0}:host(:not([disabled])) .positioning-region:hover{background:${Il}}:host(:not([disabled])) .positioning-region:active{background:${Fl}}.content-region{display:inline-flex;align-items:center;white-space:nowrap;width:100%;height:calc(${ph} * 1px);margin-inline-start:calc(${_n} * 2px + 8px);font-size:${Qn};line-height:${Zn};font-weight:400}.items{display:none;${""} font-size:calc(1em + (${_n} + 16) * 1px)}.expand-collapse-button{background:none;border:none;border-radius:calc(${Gn} * 1px);outline:none;${""} width:calc((${_p} + (${_n} * 2)) * 1px);height:calc((${_p} + (${_n} * 2)) * 1px);padding:0;display:flex;justify-content:center;align-items:center;cursor:pointer;margin:0 6px}.expand-collapse-button svg{transition:transform 0.1s linear;pointer-events:none}.start,.end{display:flex}.start{${""} margin-inline-end:calc(${_n} * 2px + 2px)}.end{${""} margin-inline-start:calc(${_n} * 2px + 2px)}:host(.expanded) > .items{display:block}:host([disabled]){opacity:${Nn};cursor:${"not-allowed"}}:host(.nested) .content-region{position:relative;margin-inline-start:var(--expand-collapse-button-size)}:host(.nested) .expand-collapse-button{position:absolute}:host(.nested) .expand-collapse-button:hover{background:${Gp}}:host(:not([disabled])[selected]) .positioning-region{background:${yl}}:host(:not([disabled])[selected]) .expand-collapse-button:hover{background:${Wp}}:host([selected])::after{content:'';display:block;position:absolute;top:calc((${ph} / 4) * 1px);width:3px;height:calc((${ph} / 2) * 1px);${""} background:${Ea};border-radius:calc(${Gn} * 1px)}::slotted(fluent-tree-item){--tree-item-nested-width:1em;--expand-collapse-button-nested-width:calc(${ph} * -1px)}`.withBehaviors(new kh(Up,qp),eo(Dt`
|
|
201
|
+
:host{color:${si.ButtonText}}.positioning-region{border-color:${si.ButtonFace};background:${si.ButtonFace}}:host(:not([disabled])) .positioning-region:hover,:host(:not([disabled])) .positioning-region:active,:host(:not([disabled])[selected]) .positioning-region{background:${si.Highlight}}:host .positioning-region:hover .content-region,:host([selected]) .positioning-region .content-region{forced-color-adjust:none;color:${si.HighlightText}}:host([disabled][selected]) .positioning-region .content-region{color:${si.GrayText}}:host([selected])::after{background:${si.HighlightText}}:host(:${so}) .positioning-region{forced-color-adjust:none;border-color:${si.ButtonText};box-shadow:0 0 0 2px inset ${si.ButtonFace}}:host([disabled]),:host([disabled]) .content-region,:host([disabled]) .positioning-region:hover .content-region{opacity:1;color:${si.GrayText}}:host(.nested) .expand-collapse-button:hover,:host(:not([disabled])[selected]) .expand-collapse-button:hover{background:${si.ButtonFace};fill:${si.ButtonText}}`)),Xp=qs.compose({baseName:"tree-item",template:(t,e)=>nt`<template role="treeitem" slot="${t=>t.isNestedItem()?"item":void 0}" tabindex="-1" class="${t=>t.expanded?"expanded":""} ${t=>t.selected?"selected":""} ${t=>t.nested?"nested":""} ${t=>t.disabled?"disabled":""}" aria-expanded="${t=>t.childItems&&t.childItemLength()>0?t.expanded:void 0}" aria-selected="${t=>t.selected}" aria-disabled="${t=>t.disabled}" @focusin="${(t,e)=>t.handleFocus(e.event)}" @focusout="${(t,e)=>t.handleBlur(e.event)}" ${Jt({property:"childItems",filter:Kt()})}><div class="positioning-region" part="positioning-region"><div class="content-region" part="content-region">${Nt(t=>t.childItems&&t.childItemLength()>0,nt`<div aria-hidden="true" class="expand-collapse-button" part="expand-collapse-button" @click="${(t,e)=>t.handleExpandCollapseButtonClick(e.event)}" ${Bt("expandCollapseButton")}><slot name="expand-collapse-glyph">${e.expandCollapseGlyph||""}</slot></div>`)} ${ie(0,e)}<slot></slot>${ee(0,e)}</div></div>${Nt(t=>t.childItems&&t.childItemLength()>0&&(t.expanded||t.renderCollapsedChildren),nt`<div role="group" class="items" part="items"><slot name="item" ${Qt("items")}></slot></div>`)}</template>`,styles:Kp,expandCollapseGlyph:'\n <svg width="12" height="12" xmlns="http://www.w3.org/2000/svg">\n <path d="M4.65 2.15a.5.5 0 000 .7L7.79 6 4.65 9.15a.5.5 0 10.7.7l3.5-3.5a.5.5 0 000-.7l-3.5-3.5a.5.5 0 00-.7 0z"/>\n </svg>\n '}),Yp=Kp,Qp={fluentAccordion:xh,fluentAccordionItem:vh,fluentAnchor:ld,fluentAnchoredRegion:hd,fluentBadge:gd,fluentBreadcrumb:bd,fluentBreadcrumbItem:xd,fluentButton:Cd,fluentCalendar:Sd,fluentCard:Ed,fluentCheckbox:Ld,fluentCombobox:Nd,fluentDataGrid:Yd,fluentDataGridCell:Gd,fluentDataGridRow:Kd,fluentDesignSystemProvider:iu,fluentDialog:su,fluentDivider:au,fluentFlipper:hu,fluentHorizontalScroll:bu,fluentListbox:$u,fluentOption:Cu,fluentMenu:Du,fluentMenuItem:Ou,fluentNumberField:zu,fluentProgress:Mu,fluentProgressRing:Uu,fluentRadio:Gu,fluentRadioGroup:Xu,fluentSearch:ip,fluentSelect:np,fluentSkeleton:lp,fluentSlider:dp,fluentSliderLabel:gp,fluentSwitch:bp,fluentTabs:Fp,fluentTab:$p,fluentTabPanel:Cp,fluentTextArea:Vp,fluentTextField:Ap,fluentToolbar:Hp,fluentTooltip:Mp,fluentTreeView:Np,fluentTreeItem:Xp,register(t,...e){if(t)for(const i in this)"register"!==i&&this[i]().register(t,...e)}};function Zp(t){return So.getOrCreate(t).withPrefix("fluent")}const Jp=Zp().register(Qp);export{qh as AccentButtonStyles,ri as Accordion,Ge as AccordionItem,rd as Anchor,ui as AnchoredRegion,pd as Badge,fi as Breadcrumb,gi as BreadcrumbItem,kd as Button,Od as Card,Bd as Combobox,Vi as DataGrid,Ri as DataGridCell,Si as DataGridRow,eu as DesignSystemProvider,jo as Dialog,kh as DirectionalStyleSheetBehavior,_o as Divider,Go as Flipper,Jp as FluentDesignSystem,mu as HorizontalScroll,_h as HypertextStyles,Gh as LightweightButtonStyles,xu as Listbox,Tu as Menu,Xo as MenuItem,Au as NumberField,Iu as OptionStyles,Wh as OutlineButtonStyles,xn as PaletteRGB,Pu as Progress,ju as ProgressRing,cs as Radio,rs as RadioGroup,Wu as RadioStyles,ep as Search,sp as Select,ys as Skeleton,Fs as Slider,ws as SliderLabel,Ln as StandardLuminance,Kh as StealthButtonStyles,gn as SwatchRGB,Ss as Switch,Os as Tab,Vs as TabPanel,As as Tabs,Sp as TextArea,Rp as TextField,zp as Toolbar,Pp as Tooltip,qs as TreeItem,_s as TreeView,fa as accentBaseColor,Aa as accentFillActive,vr as accentFillActiveDelta,La as accentFillFocus,yr as accentFillFocusDelta,Ra as accentFillHover,br as accentFillHoverDelta,Oa as accentFillRecipe,Ea as accentFillRest,mr as accentFillRestDelta,qa as accentForegroundActive,wr as accentForegroundActiveDelta,Kc as accentForegroundCut,Xc as accentForegroundCutLarge,_a as accentForegroundFocus,kr as accentForegroundFocusDelta,Ua as accentForegroundHover,$r as accentForegroundHoverDelta,Na as accentForegroundRecipe,ja as accentForegroundRest,xr as accentForegroundRestDelta,ma as accentPalette,Xa as accentStrokeControlActive,Ya as accentStrokeControlFocus,Ka as accentStrokeControlHover,Ga as accentStrokeControlRecipe,Wa as accentStrokeControlRest,yh as accordionItemStyles,$h as accordionStyles,Qp as allComponents,Ih as ambientShadow,ad as anchorStyles,dd as anchoredRegionStyles,fd as badgeStyles,Uh as baseButtonStyles,jn as baseHeightMultiplier,Un as baseHorizontalSpacingMultiplier,fr as baseLayerLuminance,Yn as bodyFont,$d as breadcrumbItemStyles,vd as breadcrumbStyles,Id as buttonStyles,Rd as cardStyles,zd as checkboxStyles,jd as comboboxStyles,Gn as controlCornerRadius,Vc as cornerRadius,Wd as dataGridCellStyles,Xd as dataGridRowStyles,Qd as dataGridStyles,qn as density,_n as designUnit,nu as dialogStyles,Bn as direction,Fh as directionalShadow,Nn as disabledOpacity,lu as dividerStyles,Oc as elevatedCornerRadius,Th as elevation,Lh as elevationShadowCardActive,Oh as elevationShadowCardActiveSize,zh as elevationShadowCardFocus,Eh as elevationShadowCardFocusSize,Ah as elevationShadowCardHover,Vh as elevationShadowCardHoverSize,Rh as elevationShadowCardRest,Sh as elevationShadowCardRestSize,jh as elevationShadowDialog,Nh as elevationShadowDialogSize,Bh as elevationShadowFlyout,Mh as elevationShadowFlyoutSize,Dh as elevationShadowRecipe,Ph as elevationShadowTooltip,Hh as elevationShadowTooltipSize,Sa as fillColor,du as flipperStyles,xh as fluentAccordion,vh as fluentAccordionItem,ld as fluentAnchor,hd as fluentAnchoredRegion,gd as fluentBadge,bd as fluentBreadcrumb,xd as fluentBreadcrumbItem,Cd as fluentButton,Sd as fluentCalendar,Ed as fluentCard,Ld as fluentCheckbox,Nd as fluentCombobox,Yd as fluentDataGrid,Gd as fluentDataGridCell,Kd as fluentDataGridRow,iu as fluentDesignSystemProvider,su as fluentDialog,au as fluentDivider,hu as fluentFlipper,bu as fluentHorizontalScroll,$u as fluentListbox,Du as fluentMenu,Ou as fluentMenuItem,zu as fluentNumberField,Cu as fluentOption,Mu as fluentProgress,Uu as fluentProgressRing,Gu as fluentRadio,Xu as fluentRadioGroup,ip as fluentSearch,np as fluentSelect,lp as fluentSkeleton,dp as fluentSlider,gp as fluentSliderLabel,bp as fluentSwitch,$p as fluentTab,Cp as fluentTabPanel,Fp as fluentTabs,Vp as fluentTextArea,Ap as fluentTextField,Hp as fluentToolbar,Mp as fluentTooltip,Xp as fluentTreeItem,Np as fluentTreeView,Rc as focusOutlineWidth,fc as focusStrokeInner,gc as focusStrokeInnerRecipe,pc as focusStrokeOuter,uc as focusStrokeOuterRecipe,Xn as focusStrokeWidth,Ma as foregroundOnAccentActive,yc as foregroundOnAccentActiveLarge,Ba as foregroundOnAccentFocus,xc as foregroundOnAccentFocusLarge,Pa as foregroundOnAccentHover,vc as foregroundOnAccentHoverLarge,mc as foregroundOnAccentLargeRecipe,za as foregroundOnAccentRecipe,Ha as foregroundOnAccentRest,bc as foregroundOnAccentRestLarge,ph as heightNumber,vu as horizontalScrollStyles,od as inputFilledForcedColorStyles,ed as inputFilledStyles,id as inputForcedColorStyles,td as inputStateStyles,Jh as inputStyles,bn as isDark,Wn as layerCornerRadius,wu as listboxStyles,Eu as menuItemStyles,Su as menuStyles,pa as neutralBaseColor,th as neutralContrastFillActive,zc as neutralContrastFillActiveDelta,eh as neutralContrastFillFocus,Hc as neutralContrastFillFocusDelta,Jc as neutralContrastFillHover,Lc as neutralContrastFillHoverDelta,Zc as neutralContrastFillRest,Ac as neutralContrastFillRestDelta,Yc as neutralDivider,Uc as neutralDividerRestDelta,tl as neutralFillActive,Fr as neutralFillActiveDelta,Qc as neutralFillCard,Pc as neutralFillCardDelta,el as neutralFillFocus,Tr as neutralFillFocusDelta,Ja as neutralFillHover,Ir as neutralFillHoverDelta,nl as neutralFillInputActive,Vr as neutralFillInputActiveDelta,hl as neutralFillInputAltActive,Ar as neutralFillInputAltActiveDelta,dl as neutralFillInputAltFocus,Lr as neutralFillInputAltFocusDelta,cl as neutralFillInputAltHover,Rr as neutralFillInputAltHoverDelta,al as neutralFillInputAltRecipe,ll as neutralFillInputAltRest,Er as neutralFillInputAltRestDelta,rl as neutralFillInputFocus,Or as neutralFillInputFocusDelta,sl as neutralFillInputHover,Sr as neutralFillInputHoverDelta,il as neutralFillInputRecipe,ol as neutralFillInputRest,Dr as neutralFillInputRestDelta,Dc as neutralFillInverseActive,kc as neutralFillInverseActiveDelta,Sc as neutralFillInverseFocus,Cc as neutralFillInverseFocusDelta,Tc as neutralFillInverseHover,wc as neutralFillInverseHoverDelta,Ic as neutralFillInverseRecipe,Fc as neutralFillInverseRest,$c as neutralFillInverseRestDelta,fl as neutralFillLayerActive,Pr as neutralFillLayerActiveDelta,ml as neutralFillLayerAltRecipe,bl as neutralFillLayerAltRest,Mr as neutralFillLayerAltRestDelta,gl as neutralFillLayerHover,Hr as neutralFillLayerHoverDelta,ul as neutralFillLayerRecipe,pl as neutralFillLayerRest,zr as neutralFillLayerRestDelta,Qa as neutralFillRecipe,Za as neutralFillRest,Cr as neutralFillRestDelta,$l as neutralFillSecondaryActive,jr as neutralFillSecondaryActiveDelta,wl as neutralFillSecondaryFocus,Ur as neutralFillSecondaryFocusDelta,xl as neutralFillSecondaryHover,Nr as neutralFillSecondaryHoverDelta,vl as neutralFillSecondaryRecipe,yl as neutralFillSecondaryRest,Br as neutralFillSecondaryRestDelta,Fl as neutralFillStealthActive,Gr as neutralFillStealthActiveDelta,Tl as neutralFillStealthFocus,Wr as neutralFillStealthFocusDelta,Il as neutralFillStealthHover,_r as neutralFillStealthHoverDelta,kl as neutralFillStealthRecipe,Cl as neutralFillStealthRest,qr as neutralFillStealthRestDelta,Ol as neutralFillStrongActive,Yr as neutralFillStrongActiveDelta,El as neutralFillStrongFocus,Qr as neutralFillStrongFocusDelta,Vl as neutralFillStrongHover,Xr as neutralFillStrongHoverDelta,Dl as neutralFillStrongRecipe,Sl as neutralFillStrongRest,Kr as neutralFillStrongRestDelta,sh as neutralFillToggleActive,Nc as neutralFillToggleActiveDelta,nh as neutralFillToggleFocus,jc as neutralFillToggleFocusDelta,oh as neutralFillToggleHover,Bc as neutralFillToggleHoverDelta,ih as neutralFillToggleRest,Mc as neutralFillToggleRestDelta,rh as neutralFocus,ah as neutralFocusInnerAccent,zl as neutralForegroundActive,Hl as neutralForegroundFocus,Ml as neutralForegroundHint,Pl as neutralForegroundHintRecipe,Ll as neutralForegroundHover,Rl as neutralForegroundRecipe,Al as neutralForegroundRest,wa as neutralLayer1,$a as neutralLayer1Recipe,Ca as neutralLayer2,ka as neutralLayer2Recipe,Fa as neutralLayer3,Ia as neutralLayer3Recipe,Da as neutralLayer4,Ta as neutralLayer4Recipe,va as neutralLayerCardContainer,ba as neutralLayerCardContainerRecipe,xa as neutralLayerFloating,ya as neutralLayerFloatingRecipe,qc as neutralLayerL1,_c as neutralLayerL2,Gc as neutralLayerL3,Wc as neutralLayerL4,hh as neutralOutlineActive,dh as neutralOutlineFocus,ch as neutralOutlineHover,lh as neutralOutlineRest,ga as neutralPalette,Ul as neutralStrokeActive,ta as neutralStrokeActiveDelta,Kl as neutralStrokeControlActive,sa as neutralStrokeControlActiveDelta,Xl as neutralStrokeControlFocus,na as neutralStrokeControlFocusDelta,Wl as neutralStrokeControlHover,oa as neutralStrokeControlHoverDelta,_l as neutralStrokeControlRecipe,Gl as neutralStrokeControlRest,ia as neutralStrokeControlRestDelta,Yl as neutralStrokeDividerRecipe,Ql as neutralStrokeDividerRest,ra as neutralStrokeDividerRestDelta,ql as neutralStrokeFocus,ea as neutralStrokeFocusDelta,jl as neutralStrokeHover,Jr as neutralStrokeHoverDelta,ec as neutralStrokeInputActive,ic as neutralStrokeInputFocus,tc as neutralStrokeInputHover,Zl as neutralStrokeInputRecipe,Jl as neutralStrokeInputRest,rc as neutralStrokeLayerActive,ca as neutralStrokeLayerActiveDelta,nc as neutralStrokeLayerHover,la as neutralStrokeLayerHoverDelta,oc as neutralStrokeLayerRecipe,sc as neutralStrokeLayerRest,aa as neutralStrokeLayerRestDelta,Bl as neutralStrokeRecipe,Nl as neutralStrokeRest,Zr as neutralStrokeRestDelta,hc as neutralStrokeStrongActive,da as neutralStrokeStrongActiveDelta,dc as neutralStrokeStrongFocus,ua as neutralStrokeStrongFocusDelta,cc as neutralStrokeStrongHover,ha as neutralStrokeStrongHoverDelta,ac as neutralStrokeStrongRecipe,lc as neutralStrokeStrongRest,Lu as numberFieldStyles,Ec as outlineWidth,qu as progressRingStyles,Bu as progressStyles,Zp as provideFluentDesignSystem,Yu as radioGroupStyles,op as searchStyles,Qu as searchTemplate,rp as selectStyles,cp as skeletonStyles,fp as sliderLabelStyles,up as sliderStyles,Kn as strokeWidth,vp as switchStyles,Ip as tabPanelStyles,wp as tabStyles,Tp as tabsStyles,Op as textAreaStyles,Lp as textFieldStyles,Yp as treeItemStyles,jp as treeViewStyles,Qn as typeRampBaseFontSize,Zn as typeRampBaseLineHeight,Jn as typeRampMinus1FontSize,tr as typeRampMinus1LineHeight,er as typeRampMinus2FontSize,ir as typeRampMinus2LineHeight,or as typeRampPlus1FontSize,sr as typeRampPlus1LineHeight,nr as typeRampPlus2FontSize,rr as typeRampPlus2LineHeight,ar as typeRampPlus3FontSize,lr as typeRampPlus3LineHeight,cr as typeRampPlus4FontSize,hr as typeRampPlus4LineHeight,dr as typeRampPlus5FontSize,ur as typeRampPlus5LineHeight,pr as typeRampPlus6FontSize,gr as typeRampPlus6LineHeight};
|