@fluentui/web-components 3.0.0-beta.35 → 3.0.0-beta.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -2
- package/dist/dts/drawer/define.d.ts +1 -0
- package/dist/dts/drawer/drawer.d.ts +93 -0
- package/dist/dts/drawer/drawer.definition.d.ts +8 -0
- package/dist/dts/drawer/drawer.options.d.ts +40 -0
- package/dist/dts/drawer/drawer.styles.d.ts +4 -0
- package/dist/dts/drawer/drawer.template.d.ts +8 -0
- package/dist/dts/drawer/index.d.ts +5 -0
- package/dist/dts/drawer-body/define.d.ts +1 -0
- package/dist/dts/drawer-body/drawer-body.d.ts +3 -0
- package/dist/dts/drawer-body/drawer-body.definition.d.ts +8 -0
- package/dist/dts/drawer-body/drawer-body.styles.d.ts +4 -0
- package/dist/dts/drawer-body/drawer-body.template.d.ts +8 -0
- package/dist/dts/drawer-body/index.d.ts +4 -0
- package/dist/dts/index-rollup.d.ts +1 -0
- package/dist/dts/index.d.ts +1 -0
- package/dist/esm/drawer/define.js +4 -0
- package/dist/esm/drawer/define.js.map +1 -0
- package/dist/esm/drawer/drawer.definition.js +16 -0
- package/dist/esm/drawer/drawer.definition.js.map +1 -0
- package/dist/esm/drawer/drawer.js +132 -0
- package/dist/esm/drawer/drawer.js.map +1 -0
- package/dist/esm/drawer/drawer.options.js +25 -0
- package/dist/esm/drawer/drawer.options.js.map +1 -0
- package/dist/esm/drawer/drawer.styles.js +138 -0
- package/dist/esm/drawer/drawer.styles.js.map +1 -0
- package/dist/esm/drawer/drawer.template.js +28 -0
- package/dist/esm/drawer/drawer.template.js.map +1 -0
- package/dist/esm/drawer/index.js +6 -0
- package/dist/esm/drawer/index.js.map +1 -0
- package/dist/esm/drawer-body/define.js +4 -0
- package/dist/esm/drawer-body/define.js.map +1 -0
- package/dist/esm/drawer-body/drawer-body.definition.js +16 -0
- package/dist/esm/drawer-body/drawer-body.definition.js.map +1 -0
- package/dist/esm/drawer-body/drawer-body.js +4 -0
- package/dist/esm/drawer-body/drawer-body.js.map +1 -0
- package/dist/esm/drawer-body/drawer-body.styles.js +31 -0
- package/dist/esm/drawer-body/drawer-body.styles.js.map +1 -0
- package/dist/esm/drawer-body/drawer-body.template.js +21 -0
- package/dist/esm/drawer-body/drawer-body.template.js.map +1 -0
- package/dist/esm/drawer-body/index.js +5 -0
- package/dist/esm/drawer-body/index.js.map +1 -0
- package/dist/esm/index-rollup.js +1 -0
- package/dist/esm/index-rollup.js.map +1 -1
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/web-components.d.ts +152 -0
- package/dist/web-components.js +351 -229
- package/dist/web-components.min.js +254 -251
- package/package.json +9 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const f=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElements});let co;const Qs="fast-kernel";try{if(document.currentScript)co=document.currentScript.getAttribute(Qs);else{const s=document.getElementsByTagName("script");co=s[s.length-1].getAttribute(Qs)}}catch{co="isolate"}let ne;switch(co){case"share":ne=Object.freeze({updateQueue:1,observable:2,contextEvent:3,elementRegistry:4});break;case"share-v2":ne=Object.freeze({updateQueue:1.2,observable:2.2,contextEvent:3.2,elementRegistry:4.2});break;default:const s=`-${Math.random().toString(36).substring(2,8)}`;ne=Object.freeze({updateQueue:`1.2${s}`,observable:`2.2${s}`,contextEvent:`3.2${s}`,elementRegistry:`4.2${s}`});break}const me=s=>typeof s=="function",wt=s=>typeof s=="string",Zs=()=>{};var is=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};(function(){if(!(typeof globalThis<"u"))if(typeof is<"u")is.globalThis=is;else if(typeof self<"u")self.globalThis=self;else if(typeof window<"u")window.globalThis=window;else{const t=new Function("return this")();t.globalThis=t}})();const Js={configurable:!1,enumerable:!1,writable:!1};globalThis.FAST===void 0&&Reflect.defineProperty(globalThis,"FAST",Object.assign({value:Object.create(null)},Js));const G=globalThis.FAST;if(G.getById===void 0){const s=Object.create(null);Reflect.defineProperty(G,"getById",Object.assign({value(t,e){let o=s[t];return o===void 0&&(o=e?s[t]=e():null),o}},Js))}G.error===void 0&&Object.assign(G,{warn(){},error(s){return new Error(`Error ${s}`)},addMessages(){}});const ti=Object.freeze([]);function rs(){const s=new Map;return Object.freeze({register(t){return s.has(t.type)?!1:(s.set(t.type,t),!0)},getByType(t){return s.get(t)},getForInstance(t){if(t!=null)return s.get(t.constructor)}})}function ei(){const s=new WeakMap;return function(t){let e=s.get(t);if(e===void 0){let o=Reflect.getPrototypeOf(t);for(;e===void 0&&o!==null;)e=s.get(o),o=Reflect.getPrototypeOf(o);e=e===void 0?[]:e.slice(0),s.set(t,e)}return e}}function ve(s){s.prototype.toJSON=Zs}const K=Object.freeze({none:0,attribute:1,booleanAttribute:2,property:3,content:4,tokenList:5,event:6}),oi=s=>s,rn=globalThis.trustedTypes?globalThis.trustedTypes.createPolicy("fast-html",{createHTML:oi}):{createHTML:oi};let ho=Object.freeze({createHTML(s){return rn.createHTML(s)},protect(s,t,e,o){return o}});const nn=ho,$e=Object.freeze({get policy(){return ho},setPolicy(s){if(ho!==nn)throw G.error(1201);ho=s},setAttribute(s,t,e){e==null?s.removeAttribute(t):s.setAttribute(t,e)},setBooleanAttribute(s,t,e){e?s.setAttribute(t,""):s.removeAttribute(t)}}),Mt=G.getById(ne.updateQueue,()=>{const s=[],t=[],e=globalThis.requestAnimationFrame;let o=!0;function i(){if(t.length)throw t.shift()}function r(p){try{p.call()}catch(u){if(o)t.push(u),setTimeout(i,0);else throw s.length=0,u}}function n(){let u=0;for(;u<s.length;)if(r(s[u]),u++,u>1024){for(let c=0,b=s.length-u;c<b;c++)s[c]=s[c+u];s.length-=u,u=0}s.length=0}function h(p){s.push(p),s.length<2&&(o?e(n):n())}return Object.freeze({enqueue:h,next:()=>new Promise(h),process:n,setMode:p=>o=p})});class ns{constructor(t,e){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.subject=t,this.sub1=e}has(t){return this.spillover===void 0?this.sub1===t||this.sub2===t:this.spillover.indexOf(t)!==-1}subscribe(t){const e=this.spillover;if(e===void 0){if(this.has(t))return;if(this.sub1===void 0){this.sub1=t;return}if(this.sub2===void 0){this.sub2=t;return}this.spillover=[this.sub1,this.sub2,t],this.sub1=void 0,this.sub2=void 0}else e.indexOf(t)===-1&&e.push(t)}unsubscribe(t){const e=this.spillover;if(e===void 0)this.sub1===t?this.sub1=void 0:this.sub2===t&&(this.sub2=void 0);else{const o=e.indexOf(t);o!==-1&&e.splice(o,1)}}notify(t){const e=this.spillover,o=this.subject;if(e===void 0){const i=this.sub1,r=this.sub2;i!==void 0&&i.handleChange(o,t),r!==void 0&&r.handleChange(o,t)}else for(let i=0,r=e.length;i<r;++i)e[i].handleChange(o,t)}}class si{constructor(t){this.subscribers={},this.subjectSubscribers=null,this.subject=t}notify(t){var e,o;(e=this.subscribers[t])===null||e===void 0||e.notify(t),(o=this.subjectSubscribers)===null||o===void 0||o.notify(t)}subscribe(t,e){var o,i;let r;e?r=(o=this.subscribers[e])!==null&&o!==void 0?o:this.subscribers[e]=new ns(this.subject):r=(i=this.subjectSubscribers)!==null&&i!==void 0?i:this.subjectSubscribers=new ns(this.subject),r.subscribe(t)}unsubscribe(t,e){var o,i;e?(o=this.subscribers[e])===null||o===void 0||o.unsubscribe(t):(i=this.subjectSubscribers)===null||i===void 0||i.unsubscribe(t)}}const as=Object.freeze({unknown:void 0,coupled:1}),m=G.getById(ne.observable,()=>{const s=Mt.enqueue,t=/(:|&&|\|\||if|\?\.)/,e=new WeakMap;let o,i=u=>{throw G.error(1101)};function r(u){var c;let b=(c=u.$fastController)!==null&&c!==void 0?c:e.get(u);return b===void 0&&(Array.isArray(u)?b=i(u):e.set(u,b=new si(u))),b}const n=ei();class h{constructor(c){this.name=c,this.field=`_${c}`,this.callback=`${c}Changed`}getValue(c){return o!==void 0&&o.watch(c,this.name),c[this.field]}setValue(c,b){const I=this.field,D=c[I];if(D!==b){c[I]=b;const Qt=c[this.callback];me(Qt)&&Qt.call(c,D,b),r(c).notify(this.name)}}}class p extends ns{constructor(c,b,I=!1){super(c,b),this.expression=c,this.isVolatileBinding=I,this.needsRefresh=!0,this.needsQueue=!0,this.isAsync=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}setMode(c){this.isAsync=this.needsQueue=c}bind(c){this.controller=c;const b=this.observe(c.source,c.context);return!c.isBound&&this.requiresUnbind(c)&&c.onUnbind(this),b}requiresUnbind(c){return c.sourceLifetime!==as.coupled||this.first!==this.last||this.first.propertySource!==c.source}unbind(c){this.dispose()}observe(c,b){this.needsRefresh&&this.last!==null&&this.dispose();const I=o;o=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;let D;try{D=this.expression(c,b)}finally{o=I}return D}disconnect(){this.dispose()}dispose(){if(this.last!==null){let c=this.first;for(;c!==void 0;)c.notifier.unsubscribe(this,c.propertyName),c=c.next;this.last=null,this.needsRefresh=this.needsQueue=this.isAsync}}watch(c,b){const I=this.last,D=r(c),Qt=I===null?this.first:{};if(Qt.propertySource=c,Qt.propertyName=b,Qt.notifier=D,D.subscribe(this,b),I!==null){if(!this.needsRefresh){let Ys;o=void 0,Ys=I.propertySource[I.propertyName],o=this,c===Ys&&(this.needsRefresh=!0)}I.next=Qt}this.last=Qt}handleChange(){this.needsQueue?(this.needsQueue=!1,s(this)):this.isAsync||this.call()}call(){this.last!==null&&(this.needsQueue=this.isAsync,this.notify(this))}*records(){let c=this.first;for(;c!==void 0;)yield c,c=c.next}}return ve(p),Object.freeze({setArrayObserverFactory(u){i=u},getNotifier:r,track(u,c){o&&o.watch(u,c)},trackVolatile(){o&&(o.needsRefresh=!0)},notify(u,c){r(u).notify(c)},defineProperty(u,c){wt(c)&&(c=new h(c)),n(u).push(c),Reflect.defineProperty(u,c.name,{enumerable:!0,get(){return c.getValue(this)},set(b){c.setValue(this,b)}})},getAccessors:n,binding(u,c,b=this.isVolatileBinding(u)){return new p(u,c,b)},isVolatileBinding(u){return t.test(u.toString())}})});function $(s,t){m.defineProperty(s,t)}function an(s,t,e){return Object.assign({},e,{get(){return m.trackVolatile(),e.get.apply(this)}})}const ii=G.getById(ne.contextEvent,()=>{let s=null;return{get(){return s},set(t){s=t}}}),Le=Object.freeze({default:{index:0,length:0,get event(){return Le.getEvent()},eventDetail(){return this.event.detail},eventTarget(){return this.event.target}},getEvent(){return ii.get()},setEvent(s){ii.set(s)}});class uo{constructor(t,e,o=!1){this.evaluate=t,this.policy=e,this.isVolatile=o}}class ln extends uo{createObserver(t){return m.binding(this.evaluate,t,this.isVolatile)}}function ri(s,t,e=m.isVolatileBinding(s)){return new ln(s,t,e)}class ni extends uo{createObserver(){return this}bind(t){return this.evaluate(t.source,t.context)}}ve(ni);function ai(s,t){return new ni(s,t)}let li;function ci(s){return s.map(t=>t instanceof it?ci(t.styles):[t]).reduce((t,e)=>t.concat(e),[])}class it{constructor(t){this.styles=t,this.targets=new WeakSet,this._strategy=null,this.behaviors=t.map(e=>e instanceof it?e.behaviors:null).reduce((e,o)=>o===null?e:e===null?o:e.concat(o),null)}get strategy(){return this._strategy===null&&this.withStrategy(li),this._strategy}addStylesTo(t){this.strategy.addStylesTo(t),this.targets.add(t)}removeStylesFrom(t){this.strategy.removeStylesFrom(t),this.targets.delete(t)}isAttachedTo(t){return this.targets.has(t)}withBehaviors(...t){return this.behaviors=this.behaviors===null?t:this.behaviors.concat(t),this}withStrategy(t){return this._strategy=new t(ci(this.styles)),this}static setDefaultStrategy(t){li=t}static normalize(t){return t===void 0?void 0:Array.isArray(t)?new it(t):t instanceof it?t:new it([t])}}it.supportsAdoptedStyleSheets=Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype;const ls=rs(),cs=Object.freeze({getForInstance:ls.getForInstance,getByType:ls.getByType,define(s){return ls.register({type:s}),s}});function ds(s,t,e){t.source.style.setProperty(s.targetAspect,e.bind(t))}class hs{constructor(t,e){this.dataBinding=t,this.targetAspect=e}createCSS(t){return t(this),`var(${this.targetAspect})`}addedCallback(t){var e;const o=t.source;if(!o.$cssBindings){o.$cssBindings=new Map;const r=o.setAttribute;o.setAttribute=(n,h)=>{r.call(o,n,h),n==="style"&&o.$cssBindings.forEach((p,u)=>ds(u,p.controller,p.observer))}}const i=(e=t[this.targetAspect])!==null&&e!==void 0?e:t[this.targetAspect]=this.dataBinding.createObserver(this,this);i.controller=t,t.source.$cssBindings.set(this,{controller:t,observer:i})}connectedCallback(t){ds(this,t,t[this.targetAspect])}removedCallback(t){t.source.$cssBindings&&t.source.$cssBindings.delete(this)}handleChange(t,e){ds(this,e.controller,e)}}cs.define(hs);const cn=`${Math.random().toString(36).substring(2,8)}`;let dn=0;const di=()=>`--v${cn}${++dn}`;function hi(s,t){const e=[];let o="";const i=[],r=n=>{i.push(n)};for(let n=0,h=s.length-1;n<h;++n){o+=s[n];let p=t[n];me(p)?p=new hs(ri(p),di()).createCSS(r):p instanceof uo?p=new hs(p,di()).createCSS(r):cs.getForInstance(p)!==void 0&&(p=p.createCSS(r)),p instanceof it||p instanceof CSSStyleSheet?(o.trim()!==""&&(e.push(o),o=""),e.push(p)):o+=p}return o+=s[s.length-1],o.trim()!==""&&e.push(o),{styles:e,behaviors:i}}const l=(s,...t)=>{const{styles:e,behaviors:o}=hi(s,t),i=new it(e);return o.length?i.withBehaviors(...o):i};class ui{constructor(t,e){this.behaviors=e,this.css="";const o=t.reduce((i,r)=>(wt(r)?this.css+=r:i.push(r),i),[]);o.length&&(this.styles=new it(o))}createCSS(t){return this.behaviors.forEach(t),this.styles&&t(this),this.css}addedCallback(t){t.addStyles(this.styles)}removedCallback(t){t.removeStyles(this.styles)}}cs.define(ui),l.partial=(s,...t)=>{const{styles:e,behaviors:o}=hi(s,t);return new ui(e,o)};const us=`fast-${Math.random().toString(36).substring(2,8)}`,po=`${us}{`,He=`}${us}`,hn=He.length;let un=0;const ps=()=>`${us}-${++un}`,pi=Object.freeze({interpolation:s=>`${po}${s}${He}`,attribute:s=>`${ps()}="${po}${s}${He}"`,comment:s=>`<!--${po}${s}${He}-->`}),fo=Object.freeze({parse(s,t){const e=s.split(po);if(e.length===1)return null;const o=[];for(let i=0,r=e.length;i<r;++i){const n=e[i],h=n.indexOf(He);let p;if(h===-1)p=n;else{const u=n.substring(0,h);o.push(t[u]),p=n.substring(h+hn)}p!==""&&o.push(p)}return o}}),fs=rs(),gt=Object.freeze({getForInstance:fs.getForInstance,getByType:fs.getByType,define(s,t){return t=t||{},t.type=s,fs.register(t),s},assignAspect(s,t){if(!t){s.aspectType=K.content;return}switch(s.sourceAspect=t,t[0]){case":":s.targetAspect=t.substring(1),s.aspectType=s.targetAspect==="classList"?K.tokenList:K.property;break;case"?":s.targetAspect=t.substring(1),s.aspectType=K.booleanAttribute;break;case"@":s.targetAspect=t.substring(1),s.aspectType=K.event;break;default:s.targetAspect=t,s.aspectType=K.attribute;break}}});class gs{constructor(t){this.options=t}createHTML(t){return pi.attribute(t(this))}createBehavior(){return this}}ve(gs);function pn(s,t,e,o){if(e==null&&(e=""),e.create){s.textContent="";let i=s.$fastView;i===void 0?i=e.create():s.$fastTemplate!==e&&(i.isComposed&&(i.remove(),i.unbind()),i=e.create()),i.isComposed?i.needsBindOnly&&(i.needsBindOnly=!1,i.bind(o.source,o.context)):(i.isComposed=!0,i.bind(o.source,o.context),i.insertBefore(s),s.$fastView=i,s.$fastTemplate=e)}else{const i=s.$fastView;i!==void 0&&i.isComposed&&(i.isComposed=!1,i.remove(),i.needsBindOnly?i.needsBindOnly=!1:i.unbind()),s.textContent=e}}function fn(s,t,e){var o;const i=`${this.id}-t`,r=(o=s[i])!==null&&o!==void 0?o:s[i]={v:0,cv:Object.create(null)},n=r.cv;let h=r.v;const p=s[t];if(e!=null&&e.length){const u=e.split(/\s+/);for(let c=0,b=u.length;c<b;++c){const I=u[c];I!==""&&(n[I]=h,p.add(I))}}if(r.v=h+1,h!==0){h-=1;for(const u in n)n[u]===h&&p.remove(u)}}const gn={[K.attribute]:$e.setAttribute,[K.booleanAttribute]:$e.setBooleanAttribute,[K.property]:(s,t,e)=>s[t]=e,[K.content]:pn,[K.tokenList]:fn,[K.event]:()=>{}};class ye{constructor(t){this.dataBinding=t,this.updateTarget=null,this.aspectType=K.content}createHTML(t){return pi.interpolation(t(this))}createBehavior(){var t;if(this.updateTarget===null){const e=gn[this.aspectType],o=(t=this.dataBinding.policy)!==null&&t!==void 0?t:this.policy;if(!e)throw G.error(1205);this.data=`${this.id}-d`,this.updateTarget=o.protect(this.targetTagName,this.aspectType,this.targetAspect,e)}return this}bind(t){var e;const o=t.targets[this.targetNodeId];switch(this.aspectType){case K.event:o[this.data]=t,o.addEventListener(this.targetAspect,this,this.dataBinding.options);break;case K.content:t.onUnbind(this);default:const i=(e=o[this.data])!==null&&e!==void 0?e:o[this.data]=this.dataBinding.createObserver(this,this);i.target=o,i.controller=t,this.updateTarget(o,this.targetAspect,i.bind(t),t);break}}unbind(t){const o=t.targets[this.targetNodeId].$fastView;o!==void 0&&o.isComposed&&(o.unbind(),o.needsBindOnly=!0)}handleEvent(t){const e=t.currentTarget[this.data];if(e.isBound){Le.setEvent(t);const o=this.dataBinding.evaluate(e.source,e.context);Le.setEvent(null),o!==!0&&t.preventDefault()}}handleChange(t,e){const o=e.target,i=e.controller;this.updateTarget(o,this.targetAspect,e.bind(i),i)}}gt.define(ye,{aspected:!0});function fi(s,t){const e=s.parentNode;let o=s,i;for(;o!==t;)i=o.nextSibling,e.removeChild(o),o=i;e.removeChild(t)}class go{constructor(t,e,o){this.fragment=t,this.factories=e,this.targets=o,this.behaviors=null,this.unbindables=[],this.source=null,this.isBound=!1,this.sourceLifetime=as.unknown,this.context=this,this.index=0,this.length=0,this.firstChild=t.firstChild,this.lastChild=t.lastChild}get event(){return Le.getEvent()}get isEven(){return this.index%2===0}get isOdd(){return this.index%2!==0}get isFirst(){return this.index===0}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}eventDetail(){return this.event.detail}eventTarget(){return this.event.target}appendTo(t){t.appendChild(this.fragment)}insertBefore(t){if(this.fragment.hasChildNodes())t.parentNode.insertBefore(this.fragment,t);else{const e=this.lastChild;if(t.previousSibling===e)return;const o=t.parentNode;let i=this.firstChild,r;for(;i!==e;)r=i.nextSibling,o.insertBefore(i,t),i=r;o.insertBefore(e,t)}}remove(){const t=this.fragment,e=this.lastChild;let o=this.firstChild,i;for(;o!==e;)i=o.nextSibling,t.appendChild(o),o=i;t.appendChild(e)}dispose(){fi(this.firstChild,this.lastChild),this.unbind()}onUnbind(t){this.unbindables.push(t)}bind(t,e=this){if(this.source===t)return;let o=this.behaviors;if(o===null){this.source=t,this.context=e,this.behaviors=o=new Array(this.factories.length);const i=this.factories;for(let r=0,n=i.length;r<n;++r){const h=i[r].createBehavior();h.bind(this),o[r]=h}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=t,this.context=e;for(let i=0,r=o.length;i<r;++i)o[i].bind(this)}this.isBound=!0}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}evaluateUnbindables(){const t=this.unbindables;for(let e=0,o=t.length;e<o;++e)t[e].unbind(this);t.length=0}static disposeContiguousBatch(t){if(t.length!==0){fi(t[0].firstChild,t[t.length-1].lastChild);for(let e=0,o=t.length;e<o;++e)t[e].unbind()}}}ve(go),m.defineProperty(go.prototype,"index"),m.defineProperty(go.prototype,"length");const gi=(s,t)=>`${s}.${t}`,bi={},Ct={index:0,node:null};function mi(s){s.startsWith("fast-")||G.warn(1204,{name:s})}const bn=new Proxy(document.createElement("div"),{get(s,t){mi(t);const e=Reflect.get(s,t);return me(e)?e.bind(s):e},set(s,t,e){return mi(t),Reflect.set(s,t,e)}});class mn{constructor(t,e,o){this.fragment=t,this.directives=e,this.policy=o,this.proto=null,this.nodeIds=new Set,this.descriptors={},this.factories=[]}addFactory(t,e,o,i,r){var n,h;this.nodeIds.has(o)||(this.nodeIds.add(o),this.addTargetDescriptor(e,o,i)),t.id=(n=t.id)!==null&&n!==void 0?n:ps(),t.targetNodeId=o,t.targetTagName=r,t.policy=(h=t.policy)!==null&&h!==void 0?h:this.policy,this.factories.push(t)}freeze(){return this.proto=Object.create(null,this.descriptors),this}addTargetDescriptor(t,e,o){const i=this.descriptors;if(e==="r"||e==="h"||i[e])return;if(!i[t]){const n=t.lastIndexOf("."),h=t.substring(0,n),p=parseInt(t.substring(n+1));this.addTargetDescriptor(h,t,p)}let r=bi[e];if(!r){const n=`_${e}`;bi[e]=r={get(){var h;return(h=this[n])!==null&&h!==void 0?h:this[n]=this[t].childNodes[o]}}}i[e]=r}createView(t){const e=this.fragment.cloneNode(!0),o=Object.create(this.proto);o.r=e,o.h=t??bn;for(const i of this.nodeIds)o[i];return new go(e,this.factories,o)}}function vi(s,t,e,o,i,r=!1){const n=e.attributes,h=s.directives;for(let p=0,u=n.length;p<u;++p){const c=n[p],b=c.value,I=fo.parse(b,h);let D=null;I===null?r&&(D=new ye(ai(()=>b,s.policy)),gt.assignAspect(D,c.name)):D=bs.aggregate(I,s.policy),D!==null&&(e.removeAttributeNode(c),p--,u--,s.addFactory(D,t,o,i,e.tagName))}}function vn(s,t,e,o,i){const r=fo.parse(t.textContent,s.directives);if(r===null)return Ct.node=t.nextSibling,Ct.index=i+1,Ct;let n,h=n=t;for(let p=0,u=r.length;p<u;++p){const c=r[p];p!==0&&(i++,o=gi(e,i),n=h.parentNode.insertBefore(document.createTextNode(""),h.nextSibling)),wt(c)?n.textContent=c:(n.textContent=" ",gt.assignAspect(c),s.addFactory(c,e,o,i,null)),h=n}return Ct.index=i+1,Ct.node=h.nextSibling,Ct}function $i(s,t,e){let o=0,i=t.firstChild;for(;i;){const r=$n(s,e,i,o);i=r.node,o=r.index}}function $n(s,t,e,o){const i=gi(t,o);switch(e.nodeType){case 1:vi(s,t,e,i,o),$i(s,e,i);break;case 3:return vn(s,e,t,i,o);case 8:const r=fo.parse(e.data,s.directives);r!==null&&s.addFactory(bs.aggregate(r),t,i,o,null);break}return Ct.index=o+1,Ct.node=e.nextSibling,Ct}function yn(s,t){return s&&s.nodeType==8&&fo.parse(s.data,t)!==null}const yi="TEMPLATE",bs={compile(s,t,e=$e.policy){let o;if(wt(s)){o=document.createElement(yi),o.innerHTML=e.createHTML(s);const n=o.content.firstElementChild;n!==null&&n.tagName===yi&&(o=n)}else o=s;!o.content.firstChild&&!o.content.lastChild&&o.content.appendChild(document.createComment(""));const i=document.adoptNode(o.content),r=new mn(i,t,e);return vi(r,"",o,"h",0,!0),(yn(i.firstChild,t)||i.childNodes.length===1&&Object.keys(t).length>0)&&i.insertBefore(document.createComment(""),i.firstChild),$i(r,i,"r"),Ct.node=null,r.freeze()},setDefaultStrategy(s){this.compile=s},aggregate(s,t=$e.policy){if(s.length===1)return s[0];let e,o,i=!1,r;const n=s.length,h=s.map(c=>wt(c)?()=>c:(e=c.sourceAspect||e,o=c.dataBinding||o,i=i||c.dataBinding.isVolatile,r=r||c.dataBinding.policy,c.dataBinding.evaluate)),p=(c,b)=>{let I="";for(let D=0;D<n;++D)I+=h[D](c,b);return I};o.evaluate=p,o.isVolatile=i,o.policy=r??t;const u=new ye(o);return gt.assignAspect(u,e),u}},kn=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/,xn=Object.create(null);class ae{constructor(t,e=xn){this.html=t,this.factories=e}createHTML(t){const e=this.factories;for(const o in e)t(e[o]);return this.html}}ae.empty=new ae(""),gt.define(ae);function wn(s,t,e,o=gt.getForInstance(s)){if(o.aspected){const i=kn.exec(t);i!==null&>.assignAspect(s,i[2])}return s.createHTML(e)}class es{constructor(t,e={},o){this.policy=o,this.result=null,this.html=t,this.factories=e}create(t){return this.result===null&&(this.result=bs.compile(this.html,this.factories,this.policy)),this.result.createView(t)}inline(){return new ae(wt(this.html)?this.html:this.html.innerHTML,this.factories)}withPolicy(t){if(this.result)throw G.error(1208);if(this.policy)throw G.error(1207);return this.policy=t,this}render(t,e,o){const i=this.create(o);return i.bind(t),i.appendTo(e),i}static create(t,e,o){let i="";const r=Object.create(null),n=h=>{var p;const u=(p=h.id)!==null&&p!==void 0?p:h.id=ps();return r[u]=h,u};for(let h=0,p=t.length-1;h<p;++h){const u=t[h];let c=e[h],b;if(i+=u,me(c))c=new ye(ri(c));else if(c instanceof uo)c=new ye(c);else if(!(b=gt.getForInstance(c))){const I=c;c=new ye(ai(()=>I))}i+=wn(c,u,n,b)}return new es(i+t[t.length-1],r,o)}}ve(es);const g=(s,...t)=>{if(Array.isArray(s)&&Array.isArray(s.raw))return es.create(s,t);throw G.error(1206)};g.partial=s=>new ae(s);class ki extends gs{bind(t){t.source[this.options]=t.targets[this.targetNodeId]}}gt.define(ki);const Et=s=>new ki(s),Cn=s=>s.nodeType===1,le=s=>s?t=>t.nodeType===1&&t.matches(s):Cn;class xi extends gs{get id(){return this._id}set id(t){this._id=t,this._controllerProperty=`${t}-c`}bind(t){const e=t.targets[this.targetNodeId];e[this._controllerProperty]=t,this.updateTarget(t.source,this.computeNodes(e)),this.observe(e),t.onUnbind(this)}unbind(t){const e=t.targets[this.targetNodeId];this.updateTarget(t.source,ti),this.disconnect(e),e[this._controllerProperty]=null}getSource(t){return t[this._controllerProperty].source}updateTarget(t,e){t[this.options.property]=e}computeNodes(t){let e=this.getNodes(t);return"filter"in this.options&&(e=e.filter(this.options.filter)),e}}const wi="slotchange";class Ci extends xi{observe(t){t.addEventListener(wi,this)}disconnect(t){t.removeEventListener(wi,this)}getNodes(t){return t.assignedNodes(this.options)}handleEvent(t){const e=t.currentTarget;this.updateTarget(this.getSource(e),this.computeNodes(e))}}gt.define(Ci);function rt(s){return wt(s)&&(s={property:s}),new Ci(s)}class Si extends xi{constructor(t){super(t),this.observerProperty=Symbol(),this.handleEvent=(e,o)=>{const i=o.target;this.updateTarget(this.getSource(i),this.computeNodes(i))},t.childList=!0}observe(t){let e=t[this.observerProperty];e||(e=new MutationObserver(this.handleEvent),e.toJSON=Zs,t[this.observerProperty]=e),e.target=t,e.observe(t,this.options)}disconnect(t){const e=t[this.observerProperty];e.target=null,e.disconnect()}getNodes(t){return"selector"in this.options?Array.from(t.querySelectorAll(this.options.selector)):Array.from(t.childNodes)}}gt.define(Si);function Sn(s){return wt(s)&&(s={property:s}),new Si(s)}const Ii="boolean",Pi="reflect",bo=Object.freeze({locate:ei()}),Bi={toView(s){return s?"true":"false"},fromView(s){return!(s==null||s==="false"||s===!1||s===0)}};function Ti(s){if(s==null)return null;const t=s*1;return isNaN(t)?null:t}const nt={toView(s){const t=Ti(s);return t&&t.toString()},fromView:Ti};class os{constructor(t,e,o=e.toLowerCase(),i=Pi,r){this.guards=new Set,this.Owner=t,this.name=e,this.attribute=o,this.mode=i,this.converter=r,this.fieldName=`_${e}`,this.callbackName=`${e}Changed`,this.hasCallback=this.callbackName in t.prototype,i===Ii&&r===void 0&&(this.converter=Bi)}setValue(t,e){const o=t[this.fieldName],i=this.converter;i!==void 0&&(e=i.fromView(e)),o!==e&&(t[this.fieldName]=e,this.tryReflectToAttribute(t),this.hasCallback&&t[this.callbackName](o,e),t.$fastController.notify(this.name))}getValue(t){return m.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,o=this.guards;o.has(t)||e==="fromView"||Mt.enqueue(()=>{o.add(t);const i=t[this.fieldName];switch(e){case Pi:const r=this.converter;$e.setAttribute(t,this.attribute,r!==void 0?r.toView(i):i);break;case Ii:$e.setBooleanAttribute(t,this.attribute,i);break}o.delete(t)})}static collect(t,...e){const o=[];e.push(bo.locate(t));for(let i=0,r=e.length;i<r;++i){const n=e[i];if(n!==void 0)for(let h=0,p=n.length;h<p;++h){const u=n[h];wt(u)?o.push(new os(t,u)):o.push(new os(t,u.property,u.attribute,u.mode,u.converter))}}return o}}function a(s,t){let e;function o(i,r){arguments.length>1&&(e.property=r),bo.locate(i.constructor).push(e)}if(arguments.length>1){e={},o(s,t);return}return e=s===void 0?{}:s,o}const zi={mode:"open"},Fi={},Oi=new Set,mo=G.getById(ne.elementRegistry,()=>rs());class xt{constructor(t,e=t.definition){var o;this.platformDefined=!1,wt(e)&&(e={name:e}),this.type=t,this.name=e.name,this.template=e.template,this.registry=(o=e.registry)!==null&&o!==void 0?o:customElements;const i=t.prototype,r=os.collect(t,e.attributes),n=new Array(r.length),h={},p={};for(let u=0,c=r.length;u<c;++u){const b=r[u];n[u]=b.attribute,h[b.name]=b,p[b.attribute]=b,m.defineProperty(i,b)}Reflect.defineProperty(t,"observedAttributes",{value:n,enumerable:!0}),this.attributes=r,this.propertyLookup=h,this.attributeLookup=p,this.shadowOptions=e.shadowOptions===void 0?zi:e.shadowOptions===null?void 0:Object.assign(Object.assign({},zi),e.shadowOptions),this.elementOptions=e.elementOptions===void 0?Fi:Object.assign(Object.assign({},Fi),e.elementOptions),this.styles=it.normalize(e.styles),mo.register(this)}get isDefined(){return this.platformDefined}define(t=this.registry){const e=this.type;return t.get(this.name)||(this.platformDefined=!0,t.define(this.name,e,this.elementOptions)),this}static compose(t,e){return Oi.has(t)||mo.getByType(t)?new xt(class extends t{},e):new xt(t,e)}static registerBaseType(t){Oi.add(t)}}xt.getByType=mo.getByType,xt.getForInstance=mo.getForInstance;const In={bubbles:!0,composed:!0,cancelable:!0},ms="isConnected",Ai=new WeakMap;function vo(s){var t,e;return(e=(t=s.shadowRoot)!==null&&t!==void 0?t:Ai.get(s))!==null&&e!==void 0?e:null}let _i;class $o extends si{constructor(t,e){super(t),this.boundObservables=null,this.needsInitialization=!0,this.hasExistingShadowRoot=!1,this._template=null,this.stage=3,this.guardBehaviorConnection=!1,this.behaviors=null,this._mainStyles=null,this.$fastController=this,this.view=null,this.source=t,this.definition=e;const o=e.shadowOptions;if(o!==void 0){let r=t.shadowRoot;r?this.hasExistingShadowRoot=!0:(r=t.attachShadow(o),o.mode==="closed"&&Ai.set(t,r))}const i=m.getAccessors(t);if(i.length>0){const r=this.boundObservables=Object.create(null);for(let n=0,h=i.length;n<h;++n){const p=i[n].name,u=t[p];u!==void 0&&(delete t[p],r[p]=u)}}}get isConnected(){return m.track(this,ms),this.stage===1}get context(){var t,e;return(e=(t=this.view)===null||t===void 0?void 0:t.context)!==null&&e!==void 0?e:Le.default}get isBound(){var t,e;return(e=(t=this.view)===null||t===void 0?void 0:t.isBound)!==null&&e!==void 0?e:!1}get sourceLifetime(){var t;return(t=this.view)===null||t===void 0?void 0:t.sourceLifetime}get template(){var t;if(this._template===null){const e=this.definition;this.source.resolveTemplate?this._template=this.source.resolveTemplate():e.template&&(this._template=(t=e.template)!==null&&t!==void 0?t:null)}return this._template}set template(t){this._template!==t&&(this._template=t,this.needsInitialization||this.renderTemplate(t))}get mainStyles(){var t;if(this._mainStyles===null){const e=this.definition;this.source.resolveStyles?this._mainStyles=this.source.resolveStyles():e.styles&&(this._mainStyles=(t=e.styles)!==null&&t!==void 0?t:null)}return this._mainStyles}set mainStyles(t){this._mainStyles!==t&&(this._mainStyles!==null&&this.removeStyles(this._mainStyles),this._mainStyles=t,this.needsInitialization||this.addStyles(t))}onUnbind(t){var e;(e=this.view)===null||e===void 0||e.onUnbind(t)}addBehavior(t){var e,o;const i=(e=this.behaviors)!==null&&e!==void 0?e:this.behaviors=new Map,r=(o=i.get(t))!==null&&o!==void 0?o:0;r===0?(i.set(t,1),t.addedCallback&&t.addedCallback(this),t.connectedCallback&&!this.guardBehaviorConnection&&(this.stage===1||this.stage===0)&&t.connectedCallback(this)):i.set(t,r+1)}removeBehavior(t,e=!1){const o=this.behaviors;if(o===null)return;const i=o.get(t);i!==void 0&&(i===1||e?(o.delete(t),t.disconnectedCallback&&this.stage!==3&&t.disconnectedCallback(this),t.removedCallback&&t.removedCallback(this)):o.set(t,i-1))}addStyles(t){var e;if(!t)return;const o=this.source;if(t instanceof HTMLElement)((e=vo(o))!==null&&e!==void 0?e:this.source).append(t);else if(!t.isAttachedTo(o)){const i=t.behaviors;if(t.addStylesTo(o),i!==null)for(let r=0,n=i.length;r<n;++r)this.addBehavior(i[r])}}removeStyles(t){var e;if(!t)return;const o=this.source;if(t instanceof HTMLElement)((e=vo(o))!==null&&e!==void 0?e:o).removeChild(t);else if(t.isAttachedTo(o)){const i=t.behaviors;if(t.removeStylesFrom(o),i!==null)for(let r=0,n=i.length;r<n;++r)this.removeBehavior(i[r])}}connect(){if(this.stage!==3)return;if(this.stage=0,this.boundObservables!==null){const e=this.source,o=this.boundObservables,i=Object.keys(o);for(let r=0,n=i.length;r<n;++r){const h=i[r];e[h]=o[h]}this.boundObservables=null}const t=this.behaviors;if(t!==null){this.guardBehaviorConnection=!0;for(const e of t.keys())e.connectedCallback&&e.connectedCallback(this);this.guardBehaviorConnection=!1}this.needsInitialization?(this.renderTemplate(this.template),this.addStyles(this.mainStyles),this.needsInitialization=!1):this.view!==null&&this.view.bind(this.source),this.stage=1,m.notify(this,ms)}disconnect(){if(this.stage!==1)return;this.stage=2,m.notify(this,ms),this.view!==null&&this.view.unbind();const t=this.behaviors;if(t!==null)for(const e of t.keys())e.disconnectedCallback&&e.disconnectedCallback(this);this.stage=3}onAttributeChangedCallback(t,e,o){const i=this.definition.attributeLookup[t];i!==void 0&&i.onAttributeChangedCallback(this.source,o)}emit(t,e,o){return this.stage===1?this.source.dispatchEvent(new CustomEvent(t,Object.assign(Object.assign({detail:e},In),o))):!1}renderTemplate(t){var e;const o=this.source,i=(e=vo(o))!==null&&e!==void 0?e:o;if(this.view!==null)this.view.dispose(),this.view=null;else if(!this.needsInitialization||this.hasExistingShadowRoot){this.hasExistingShadowRoot=!1;for(let r=i.firstChild;r!==null;r=i.firstChild)i.removeChild(r)}t&&(this.view=t.render(o,i,o),this.view.sourceLifetime=as.coupled)}static forCustomElement(t){const e=t.$fastController;if(e!==void 0)return e;const o=xt.getForInstance(t);if(o===void 0)throw G.error(1401);return t.$fastController=new _i(t,o)}static setStrategy(t){_i=t}}ve($o),$o.setStrategy($o);function yo(s){var t;return"adoptedStyleSheets"in s?s:(t=vo(s))!==null&&t!==void 0?t:s.getRootNode()}class ss{constructor(t){const e=ss.styleSheetCache;this.sheets=t.map(o=>{if(o instanceof CSSStyleSheet)return o;let i=e.get(o);return i===void 0&&(i=new CSSStyleSheet,i.replaceSync(o),e.set(o,i)),i})}addStylesTo(t){Ei(yo(t),this.sheets)}removeStylesFrom(t){Li(yo(t),this.sheets)}}ss.styleSheetCache=new Map;let Pn=0;const Bn=()=>`fast-${++Pn}`;function Mi(s){return s===document?document.body:s}class Tn{constructor(t){this.styles=t,this.styleClass=Bn()}addStylesTo(t){t=Mi(yo(t));const e=this.styles,o=this.styleClass;for(let i=0;i<e.length;i++){const r=document.createElement("style");r.innerHTML=e[i],r.className=o,t.append(r)}}removeStylesFrom(t){t=Mi(yo(t));const e=t.querySelectorAll(`.${this.styleClass}`);for(let o=0,i=e.length;o<i;++o)t.removeChild(e[o])}}let Ei=(s,t)=>{s.adoptedStyleSheets=[...s.adoptedStyleSheets,...t]},Li=(s,t)=>{s.adoptedStyleSheets=s.adoptedStyleSheets.filter(e=>t.indexOf(e)===-1)};if(it.supportsAdoptedStyleSheets){try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),Ei=(s,t)=>{s.adoptedStyleSheets.push(...t)},Li=(s,t)=>{for(const e of t){const o=s.adoptedStyleSheets.indexOf(e);o!==-1&&s.adoptedStyleSheets.splice(o,1)}}}catch{}it.setDefaultStrategy(ss)}else it.setDefaultStrategy(Tn);function Hi(s){const t=class extends s{constructor(){super(),$o.forCustomElement(this)}$emit(e,o,i){return this.$fastController.emit(e,o,i)}connectedCallback(){this.$fastController.connect()}disconnectedCallback(){this.$fastController.disconnect()}attributeChangedCallback(e,o,i){this.$fastController.onAttributeChangedCallback(e,o,i)}};return xt.registerBaseType(t),t}function zn(s,t){return me(s)?xt.compose(s,t):xt.compose(this,s)}function Fn(s,t){return me(s)?xt.compose(s,t).define().type:xt.compose(this,s).define().type}function On(s){return Hi(s)}const x=Object.assign(Hi(HTMLElement),{from:On,define:Fn,compose:zn}),Q={horizontal:"horizontal",vertical:"vertical"};function Ni(...s){return s.every(t=>t instanceof HTMLElement)}const ke="ArrowDown",xe="ArrowLeft",we="ArrowRight",Ce="ArrowUp",ko="End",Se="Enter",An="Escape",xo="Home",wo=" ",_n="Tab",Mn={ArrowDown:ke,ArrowLeft:xe,ArrowRight:we,ArrowUp:Ce};var dt;(function(s){s.ltr="ltr",s.rtl="rtl"})(dt||(dt={}));function En(s,t,e){return e<s?t:e>t?s:e}function vs(s,t,e){return Math.min(Math.max(e,s),t)}let Ln=0;function $s(s=""){return`${s}${Ln++}`}var Hn=Object.defineProperty,Nn=Object.getOwnPropertyDescriptor,L=(s,t,e,o)=>{for(var i=o>1?void 0:o?Nn(t,e):t,r=s.length-1,n;r>=0;r--)(n=s[r])&&(i=(o?n(t,e,i):n(i))||i);return o&&i&&Hn(t,e,i),i};class H{}L([a({attribute:"aria-atomic"})],H.prototype,"ariaAtomic",2),L([a({attribute:"aria-busy"})],H.prototype,"ariaBusy",2),L([a({attribute:"aria-controls"})],H.prototype,"ariaControls",2),L([a({attribute:"aria-current"})],H.prototype,"ariaCurrent",2),L([a({attribute:"aria-describedby"})],H.prototype,"ariaDescribedby",2),L([a({attribute:"aria-details"})],H.prototype,"ariaDetails",2),L([a({attribute:"aria-disabled"})],H.prototype,"ariaDisabled",2),L([a({attribute:"aria-errormessage"})],H.prototype,"ariaErrormessage",2),L([a({attribute:"aria-flowto"})],H.prototype,"ariaFlowto",2),L([a({attribute:"aria-haspopup"})],H.prototype,"ariaHaspopup",2),L([a({attribute:"aria-hidden"})],H.prototype,"ariaHidden",2),L([a({attribute:"aria-invalid"})],H.prototype,"ariaInvalid",2),L([a({attribute:"aria-keyshortcuts"})],H.prototype,"ariaKeyshortcuts",2),L([a({attribute:"aria-label"})],H.prototype,"ariaLabel",2),L([a({attribute:"aria-labelledby"})],H.prototype,"ariaLabelledby",2),L([a({attribute:"aria-live"})],H.prototype,"ariaLive",2),L([a({attribute:"aria-owns"})],H.prototype,"ariaOwns",2),L([a({attribute:"aria-relevant"})],H.prototype,"ariaRelevant",2),L([a({attribute:"aria-roledescription"})],H.prototype,"ariaRoledescription",2);const Di=s=>s.closest("[dir]")?.dir==="rtl"?dt.rtl:dt.ltr;function ht(s){return s?typeof s=="string"?new ae(s):"inline"in s?s.inline():s:ae.empty}const Ri=s=>s.nodeType!==Node.TEXT_NODE||!!s.nodeValue?.trim().length,Dn=":host([hidden]){display:none}";function C(s){return`${Dn}:host{display:${s}}`}class Rn{constructor(t){this.listenerCache=new WeakMap,this.query=t}connectedCallback(t){const{query:e}=this;let o=this.listenerCache.get(t);o||(o=this.constructListener(t),this.listenerCache.set(t,o)),o.bind(e)(),e.addEventListener("change",o)}disconnectedCallback(t){const e=this.listenerCache.get(t);e&&this.query.removeEventListener("change",e)}}class lo extends Rn{constructor(t,e){super(t),this.styles=e}static with(t){return e=>new lo(t,e)}constructListener(t){let e=!1;const o=this.styles;return function(){const{matches:r}=this;r&&!e?(t.addStyles(o),e=r):!r&&e&&(t.removeStyles(o),e=r)}}removedCallback(t){t.removeStyles(this.styles)}}const Z=lo.with(window.matchMedia("(forced-colors)"));lo.with(window.matchMedia("(prefers-color-scheme: dark)")),lo.with(window.matchMedia("(prefers-color-scheme: light)"));class Lt{}function Ht(s){return g`<slot name="end" ${Et("end")}>${ht(s.end)}</slot>`.inline()}function Nt(s){return g`<slot name="start" ${Et("start")}>${ht(s.start)}</slot>`.inline()}function Dt(s,...t){const e=bo.locate(s);t.forEach(o=>{Object.getOwnPropertyNames(o.prototype).forEach(r=>{r!=="constructor"&&Object.defineProperty(s.prototype,r,Object.getOwnPropertyDescriptor(o.prototype,r))}),bo.locate(o).forEach(r=>e.push(r))})}var Vn=Object.defineProperty,jn=Object.getOwnPropertyDescriptor,ce=(s,t,e,o)=>{for(var i=o>1?void 0:o?jn(t,e):t,r=s.length-1,n;r>=0;r--)(n=s[r])&&(i=(o?n(t,e,i):n(i))||i);return o&&i&&Vn(t,e,i),i};class J extends x{constructor(){super(...arguments),this.headinglevel=2,this.expanded=!1,this.disabled=!1,this.id=$s("accordion-"),this.block=!1,this.clickHandler=t=>{this.disabled||this.$emit("click",t)}}}ce([a({attribute:"heading-level",mode:"fromView",converter:nt})],J.prototype,"headinglevel",2),ce([a({mode:"boolean"})],J.prototype,"expanded",2),ce([a({mode:"boolean"})],J.prototype,"disabled",2),ce([a],J.prototype,"id",2),ce([a],J.prototype,"size",2),ce([a({mode:"boolean"})],J.prototype,"block",2),ce([a({attribute:"expand-icon-position"})],J.prototype,"expandIconPosition",2),Dt(J,Lt);const A="var(--colorNeutralForeground1)",Vi="var(--colorNeutralForeground1Hover)",qn="var(--colorNeutralForeground1Pressed)",Rt="var(--colorNeutralForeground2)",Co="var(--colorNeutralForeground2Hover)",So="var(--colorNeutralForeground2Pressed)",Gn="var(--colorNeutralForeground2Selected)",Io="var(--colorNeutralForeground2BrandHover)",Po="var(--colorNeutralForeground2BrandPressed)",Wn="var(--colorNeutralForeground2BrandSelected)",tt="var(--colorNeutralForeground3)",Un="var(--colorNeutralForeground3Hover)",Xn="var(--colorNeutralForeground3Pressed)",Kn="var(--colorNeutralForeground4)",k="var(--colorNeutralForegroundDisabled)",Yn="var(--colorBrandForegroundLink)",Qn="var(--colorBrandForegroundLinkHover)",Zn="var(--colorBrandForegroundLinkPressed)",Jn="var(--colorNeutralForeground2Link)",ta="var(--colorNeutralForeground2LinkHover)",ea="var(--colorNeutralForeground2LinkPressed)",ji="var(--colorCompoundBrandForeground1)",qi="var(--colorCompoundBrandForeground1Hover)",Gi="var(--colorCompoundBrandForeground1Pressed)",Vt="var(--colorNeutralForegroundOnBrand)",Bo="var(--colorNeutralForegroundInverted)",oa="var(--colorNeutralForegroundInvertedHover)",sa="var(--colorNeutralForegroundInvertedPressed)",Wi="var(--colorNeutralForegroundStaticInverted)",ys="var(--colorBrandForeground1)",ia="var(--colorBrandForeground2)",ra="var(--colorNeutralForeground1Static)",_="var(--colorNeutralBackground1)",ks="var(--colorNeutralBackground1Hover)",Ui="var(--colorNeutralBackground1Pressed)",Xi="var(--colorNeutralBackground1Selected)",Ki="var(--colorNeutralBackground3)",na="var(--colorNeutralBackground4)",aa="var(--colorNeutralBackground5)",To="var(--colorNeutralBackground6)",la="var(--colorNeutralBackgroundInverted)",ca="var(--colorSubtleBackground)",xs="var(--colorSubtleBackgroundHover)",zo="var(--colorSubtleBackgroundPressed)",da="var(--colorSubtleBackgroundSelected)",bt="var(--colorTransparentBackground)",ws="var(--colorTransparentBackgroundHover)",Cs="var(--colorTransparentBackgroundPressed)",ha="var(--colorTransparentBackgroundSelected)",Ne="var(--colorNeutralBackgroundDisabled)",ua="var(--colorBackgroundOverlay)",Ss="var(--colorBrandBackground)",Yi="var(--colorBrandBackgroundHover)",Qi="var(--colorBrandBackgroundPressed)",pa="var(--colorBrandBackgroundSelected)",De="var(--colorCompoundBrandBackground)",Re="var(--colorCompoundBrandBackgroundHover)",Ve="var(--colorCompoundBrandBackgroundPressed)",Zi="var(--colorBrandBackgroundStatic)",fa="var(--colorBrandBackground2)",jt="var(--colorNeutralStrokeAccessible)",je="var(--colorNeutralStrokeAccessibleHover)",qe="var(--colorNeutralStrokeAccessiblePressed)",Ie="var(--colorNeutralStroke1)",Fo="var(--colorNeutralStroke1Hover)",Is="var(--colorNeutralStroke1Pressed)",Ge="var(--colorNeutralStroke2)",ga="var(--colorNeutralStroke3)",ba="var(--colorNeutralStrokeOnBrand2)",Ji="var(--colorBrandStroke1)",tr="var(--colorBrandStroke2)",Ps="var(--colorCompoundBrandStroke)",Bs="var(--colorCompoundBrandStrokeHover)",Ts="var(--colorCompoundBrandStrokePressed)",qt="var(--colorNeutralStrokeDisabled)",St="var(--colorTransparentStroke)",er="var(--colorTransparentStrokeInteractive)",Oo="var(--colorStrokeFocus1)",It="var(--colorStrokeFocus2)",ma="var(--colorPaletteRedBackground1)",va="var(--colorPaletteRedBackground2)",or="var(--colorPaletteRedBackground3)",$a="var(--colorPaletteRedBorder1)",ya="var(--colorPaletteRedBorder2)",sr="var(--colorPaletteRedForeground1)",ka="var(--colorPaletteRedForeground2)",ir="var(--colorPaletteRedForeground3)",xa="var(--colorPaletteGreenBackground1)",rr="var(--colorPaletteGreenBackground3)",wa="var(--colorPaletteGreenBorder2)",Ca="var(--colorPaletteGreenForeground1)",Sa="var(--colorPaletteGreenForeground2)",Ia="var(--colorPaletteGreenForeground3)",Pa="var(--colorPaletteDarkOrangeBackground1)",nr="var(--colorPaletteDarkOrangeBackground3)",Ba="var(--colorPaletteDarkOrangeBorder1)",Ta="var(--colorPaletteDarkOrangeForeground1)",ar="var(--colorPaletteDarkOrangeForeground3)",za="var(--colorPaletteYellowBackground1)",Fa="var(--colorPaletteYellowBackground3)",Oa="var(--colorPaletteYellowBorder1)",zs="var(--colorPaletteYellowForeground2)",Aa="var(--colorPaletteMarigoldBackground2)",_a="var(--colorPaletteMarigoldForeground2)",Ma="var(--colorPaletteAnchorBackground2)",Ea="var(--colorPaletteAnchorForeground2)",La="var(--colorPaletteBeigeBackground2)",Ha="var(--colorPaletteBeigeForeground2)",Na="var(--colorPaletteBlueBackground2)",Da="var(--colorPaletteBlueForeground2)",Ra="var(--colorPaletteBrassBackground2)",Va="var(--colorPaletteBrassForeground2)",ja="var(--colorPaletteBrownBackground2)",qa="var(--colorPaletteBrownForeground2)",Ga="var(--colorPaletteCornflowerBackground2)",Wa="var(--colorPaletteCornflowerForeground2)",Ua="var(--colorPaletteCranberryBackground2)",Xa="var(--colorPaletteCranberryForeground2)",Ka="var(--colorPaletteDarkGreenBackground2)",Ya="var(--colorPaletteDarkGreenForeground2)",Qa="var(--colorPaletteDarkRedBackground2)",Za="var(--colorPaletteDarkRedForeground2)",Ja="var(--colorPaletteForestBackground2)",tl="var(--colorPaletteForestForeground2)",el="var(--colorPaletteGoldBackground2)",ol="var(--colorPaletteGoldForeground2)",sl="var(--colorPaletteGrapeBackground2)",il="var(--colorPaletteGrapeForeground2)",rl="var(--colorPaletteLavenderBackground2)",nl="var(--colorPaletteLavenderForeground2)",al="var(--colorPaletteLightTealBackground2)",ll="var(--colorPaletteLightTealForeground2)",cl="var(--colorPaletteLilacBackground2)",dl="var(--colorPaletteLilacForeground2)",hl="var(--colorPaletteMagentaBackground2)",ul="var(--colorPaletteMagentaForeground2)",pl="var(--colorPaletteMinkBackground2)",fl="var(--colorPaletteMinkForeground2)",gl="var(--colorPaletteNavyBackground2)",bl="var(--colorPaletteNavyForeground2)",ml="var(--colorPalettePeachBackground2)",vl="var(--colorPalettePeachForeground2)",$l="var(--colorPalettePinkBackground2)",yl="var(--colorPalettePinkForeground2)",kl="var(--colorPalettePlatinumBackground2)",xl="var(--colorPalettePlatinumForeground2)",wl="var(--colorPalettePlumBackground2)",Cl="var(--colorPalettePlumForeground2)",Sl="var(--colorPalettePumpkinBackground2)",Il="var(--colorPalettePumpkinForeground2)",Pl="var(--colorPalettePurpleBackground2)",Bl="var(--colorPalettePurpleForeground2)",Tl="var(--colorPaletteRoyalBlueBackground2)",zl="var(--colorPaletteRoyalBlueForeground2)",Fl="var(--colorPaletteSeafoamBackground2)",Ol="var(--colorPaletteSeafoamForeground2)",Al="var(--colorPaletteSteelBackground2)",_l="var(--colorPaletteSteelForeground2)",Ml="var(--colorPaletteTealBackground2)",El="var(--colorPaletteTealForeground2)",Fs="var(--borderRadiusNone)",mt="var(--borderRadiusSmall)",T="var(--borderRadiusMedium)",lr="var(--borderRadiusLarge)",cr="var(--borderRadiusXLarge)",at="var(--borderRadiusCircular)",v="var(--fontFamilyBase)",Ll="var(--fontFamilyMonospace)",Hl="var(--fontFamilyNumeric)",We="var(--fontSizeBase100)",W="var(--fontSizeBase200)",z="var(--fontSizeBase300)",lt="var(--fontSizeBase400)",Pe="var(--fontSizeBase500)",Ao="var(--fontSizeBase600)",dr="var(--fontSizeHero700)",hr="var(--fontSizeHero800)",ur="var(--fontSizeHero900)",pr="var(--fontSizeHero1000)",F="var(--fontWeightRegular)",Nl="var(--fontWeightMedium)",N="var(--fontWeightSemibold)",_o="var(--fontWeightBold)",Mo="var(--lineHeightBase100)",ct="var(--lineHeightBase200)",M="var(--lineHeightBase300)",vt="var(--lineHeightBase400)",Eo="var(--lineHeightBase500)",fr="var(--lineHeightBase600)",gr="var(--lineHeightHero700)",br="var(--lineHeightHero800)",mr="var(--lineHeightHero900)",vr="var(--lineHeightHero1000)",$r="var(--shadow2)",Lo="var(--shadow4)",Dl="var(--shadow8)",yr="var(--shadow16)",Rl="var(--shadow28)",Vl="var(--shadow64)",Y="var(--strokeWidthThin)",de="var(--strokeWidthThick)",Zt="var(--strokeWidthThicker)",kr="var(--strokeWidthThickest)",he="var(--spacingHorizontalXXS)",Gt="var(--spacingHorizontalXS)",ue="var(--spacingHorizontalSNudge)",Pt="var(--spacingHorizontalS)",Wt="var(--spacingHorizontalMNudge)",Jt="var(--spacingHorizontalM)",jl="var(--spacingHorizontalL)",ql="var(--spacingHorizontalXXL)",Ho="var(--spacingVerticalXXS)",Gl="var(--spacingVerticalXS)",Ue="var(--spacingVerticalSNudge)",U="var(--spacingVerticalS)",xr="var(--spacingVerticalMNudge)",wr="var(--spacingVerticalL)",Xe="var(--spacingVerticalXXL)",Wl="var(--durationUltraFast)",Os="var(--durationFaster)",Cr="var(--durationNormal)",Ul="var(--durationGentle)",Xl="var(--durationSlow)",Sr="var(--durationSlower)",No="var(--durationUltraSlow)",Kl="var(--curveAccelerateMax)",As="var(--curveAccelerateMid)",Yl="var(--curveAccelerateMin)",Ir="var(--curveDecelerateMax)",_s="var(--curveDecelerateMid)",Ql="var(--curveDecelerateMin)",Zl="var(--curveEasyEaseMax)",Ms="var(--curveEasyEase)",Pr="var(--curveLinear)",Jl=l`
|
|
2
|
-
${
|
|
1
|
+
const g=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElements});let go;const si="fast-kernel";try{if(document.currentScript)go=document.currentScript.getAttribute(si);else{const o=document.getElementsByTagName("script");go=o[o.length-1].getAttribute(si)}}catch{go="isolate"}let ne;switch(go){case"share":ne=Object.freeze({updateQueue:1,observable:2,contextEvent:3,elementRegistry:4});break;case"share-v2":ne=Object.freeze({updateQueue:1.2,observable:2.2,contextEvent:3.2,elementRegistry:4.2});break;default:const o=`-${Math.random().toString(36).substring(2,8)}`;ne=Object.freeze({updateQueue:`1.2${o}`,observable:`2.2${o}`,contextEvent:`3.2${o}`,elementRegistry:`4.2${o}`});break}const $e=o=>typeof o=="function",Ct=o=>typeof o=="string",ii=()=>{};var ls=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};(function(){if(!(typeof globalThis<"u"))if(typeof ls<"u")ls.globalThis=ls;else if(typeof self<"u")self.globalThis=self;else if(typeof window<"u")window.globalThis=window;else{const t=new Function("return this")();t.globalThis=t}})();const ri={configurable:!1,enumerable:!1,writable:!1};globalThis.FAST===void 0&&Reflect.defineProperty(globalThis,"FAST",Object.assign({value:Object.create(null)},ri));const G=globalThis.FAST;if(G.getById===void 0){const o=Object.create(null);Reflect.defineProperty(G,"getById",Object.assign({value(t,e){let s=o[t];return s===void 0&&(s=e?o[t]=e():null),s}},ri))}G.error===void 0&&Object.assign(G,{warn(){},error(o){return new Error(`Error ${o}`)},addMessages(){}});const ni=Object.freeze([]);function cs(){const o=new Map;return Object.freeze({register(t){return o.has(t.type)?!1:(o.set(t.type,t),!0)},getByType(t){return o.get(t)},getForInstance(t){if(t!=null)return o.get(t.constructor)}})}function ai(){const o=new WeakMap;return function(t){let e=o.get(t);if(e===void 0){let s=Reflect.getPrototypeOf(t);for(;e===void 0&&s!==null;)e=o.get(s),s=Reflect.getPrototypeOf(s);e=e===void 0?[]:e.slice(0),o.set(t,e)}return e}}function ve(o){o.prototype.toJSON=ii}const Y=Object.freeze({none:0,attribute:1,booleanAttribute:2,property:3,content:4,tokenList:5,event:6}),li=o=>o,hn=globalThis.trustedTypes?globalThis.trustedTypes.createPolicy("fast-html",{createHTML:li}):{createHTML:li};let fo=Object.freeze({createHTML(o){return hn.createHTML(o)},protect(o,t,e,s){return s}});const un=fo,ye=Object.freeze({get policy(){return fo},setPolicy(o){if(fo!==un)throw G.error(1201);fo=o},setAttribute(o,t,e){e==null?o.removeAttribute(t):o.setAttribute(t,e)},setBooleanAttribute(o,t,e){e?o.setAttribute(t,""):o.removeAttribute(t)}}),St=G.getById(ne.updateQueue,()=>{const o=[],t=[],e=globalThis.requestAnimationFrame;let s=!0;function i(){if(t.length)throw t.shift()}function r(p){try{p.call()}catch(u){if(s)t.push(u),setTimeout(i,0);else throw o.length=0,u}}function n(){let u=0;for(;u<o.length;)if(r(o[u]),u++,u>1024){for(let c=0,b=o.length-u;c<b;c++)o[c]=o[c+u];o.length-=u,u=0}o.length=0}function h(p){o.push(p),o.length<2&&(s?e(n):n())}return Object.freeze({enqueue:h,next:()=>new Promise(h),process:n,setMode:p=>s=p})});class ds{constructor(t,e){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.subject=t,this.sub1=e}has(t){return this.spillover===void 0?this.sub1===t||this.sub2===t:this.spillover.indexOf(t)!==-1}subscribe(t){const e=this.spillover;if(e===void 0){if(this.has(t))return;if(this.sub1===void 0){this.sub1=t;return}if(this.sub2===void 0){this.sub2=t;return}this.spillover=[this.sub1,this.sub2,t],this.sub1=void 0,this.sub2=void 0}else e.indexOf(t)===-1&&e.push(t)}unsubscribe(t){const e=this.spillover;if(e===void 0)this.sub1===t?this.sub1=void 0:this.sub2===t&&(this.sub2=void 0);else{const s=e.indexOf(t);s!==-1&&e.splice(s,1)}}notify(t){const e=this.spillover,s=this.subject;if(e===void 0){const i=this.sub1,r=this.sub2;i!==void 0&&i.handleChange(s,t),r!==void 0&&r.handleChange(s,t)}else for(let i=0,r=e.length;i<r;++i)e[i].handleChange(s,t)}}class ci{constructor(t){this.subscribers={},this.subjectSubscribers=null,this.subject=t}notify(t){var e,s;(e=this.subscribers[t])===null||e===void 0||e.notify(t),(s=this.subjectSubscribers)===null||s===void 0||s.notify(t)}subscribe(t,e){var s,i;let r;e?r=(s=this.subscribers[e])!==null&&s!==void 0?s:this.subscribers[e]=new ds(this.subject):r=(i=this.subjectSubscribers)!==null&&i!==void 0?i:this.subjectSubscribers=new ds(this.subject),r.subscribe(t)}unsubscribe(t,e){var s,i;e?(s=this.subscribers[e])===null||s===void 0||s.unsubscribe(t):(i=this.subjectSubscribers)===null||i===void 0||i.unsubscribe(t)}}const hs=Object.freeze({unknown:void 0,coupled:1}),$=G.getById(ne.observable,()=>{const o=St.enqueue,t=/(:|&&|\|\||if|\?\.)/,e=new WeakMap;let s,i=u=>{throw G.error(1101)};function r(u){var c;let b=(c=u.$fastController)!==null&&c!==void 0?c:e.get(u);return b===void 0&&(Array.isArray(u)?b=i(u):e.set(u,b=new ci(u))),b}const n=ai();class h{constructor(c){this.name=c,this.field=`_${c}`,this.callback=`${c}Changed`}getValue(c){return s!==void 0&&s.watch(c,this.name),c[this.field]}setValue(c,b){const I=this.field,N=c[I];if(N!==b){c[I]=b;const Qt=c[this.callback];$e(Qt)&&Qt.call(c,N,b),r(c).notify(this.name)}}}class p extends ds{constructor(c,b,I=!1){super(c,b),this.expression=c,this.isVolatileBinding=I,this.needsRefresh=!0,this.needsQueue=!0,this.isAsync=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}setMode(c){this.isAsync=this.needsQueue=c}bind(c){this.controller=c;const b=this.observe(c.source,c.context);return!c.isBound&&this.requiresUnbind(c)&&c.onUnbind(this),b}requiresUnbind(c){return c.sourceLifetime!==hs.coupled||this.first!==this.last||this.first.propertySource!==c.source}unbind(c){this.dispose()}observe(c,b){this.needsRefresh&&this.last!==null&&this.dispose();const I=s;s=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;let N;try{N=this.expression(c,b)}finally{s=I}return N}disconnect(){this.dispose()}dispose(){if(this.last!==null){let c=this.first;for(;c!==void 0;)c.notifier.unsubscribe(this,c.propertyName),c=c.next;this.last=null,this.needsRefresh=this.needsQueue=this.isAsync}}watch(c,b){const I=this.last,N=r(c),Qt=I===null?this.first:{};if(Qt.propertySource=c,Qt.propertyName=b,Qt.notifier=N,N.subscribe(this,b),I!==null){if(!this.needsRefresh){let oi;s=void 0,oi=I.propertySource[I.propertyName],s=this,c===oi&&(this.needsRefresh=!0)}I.next=Qt}this.last=Qt}handleChange(){this.needsQueue?(this.needsQueue=!1,o(this)):this.isAsync||this.call()}call(){this.last!==null&&(this.needsQueue=this.isAsync,this.notify(this))}*records(){let c=this.first;for(;c!==void 0;)yield c,c=c.next}}return ve(p),Object.freeze({setArrayObserverFactory(u){i=u},getNotifier:r,track(u,c){s&&s.watch(u,c)},trackVolatile(){s&&(s.needsRefresh=!0)},notify(u,c){r(u).notify(c)},defineProperty(u,c){Ct(c)&&(c=new h(c)),n(u).push(c),Reflect.defineProperty(u,c.name,{enumerable:!0,get(){return c.getValue(this)},set(b){c.setValue(this,b)}})},getAccessors:n,binding(u,c,b=this.isVolatileBinding(u)){return new p(u,c,b)},isVolatileBinding(u){return t.test(u.toString())}})});function v(o,t){$.defineProperty(o,t)}function pn(o,t,e){return Object.assign({},e,{get(){return $.trackVolatile(),e.get.apply(this)}})}const di=G.getById(ne.contextEvent,()=>{let o=null;return{get(){return o},set(t){o=t}}}),De=Object.freeze({default:{index:0,length:0,get event(){return De.getEvent()},eventDetail(){return this.event.detail},eventTarget(){return this.event.target}},getEvent(){return di.get()},setEvent(o){di.set(o)}});class bo{constructor(t,e,s=!1){this.evaluate=t,this.policy=e,this.isVolatile=s}}class gn extends bo{createObserver(t){return $.binding(this.evaluate,t,this.isVolatile)}}function hi(o,t,e=$.isVolatileBinding(o)){return new gn(o,t,e)}class ui extends bo{createObserver(){return this}bind(t){return this.evaluate(t.source,t.context)}}ve(ui);function pi(o,t){return new ui(o,t)}let gi;function fi(o){return o.map(t=>t instanceof it?fi(t.styles):[t]).reduce((t,e)=>t.concat(e),[])}class it{constructor(t){this.styles=t,this.targets=new WeakSet,this._strategy=null,this.behaviors=t.map(e=>e instanceof it?e.behaviors:null).reduce((e,s)=>s===null?e:e===null?s:e.concat(s),null)}get strategy(){return this._strategy===null&&this.withStrategy(gi),this._strategy}addStylesTo(t){this.strategy.addStylesTo(t),this.targets.add(t)}removeStylesFrom(t){this.strategy.removeStylesFrom(t),this.targets.delete(t)}isAttachedTo(t){return this.targets.has(t)}withBehaviors(...t){return this.behaviors=this.behaviors===null?t:this.behaviors.concat(t),this}withStrategy(t){return this._strategy=new t(fi(this.styles)),this}static setDefaultStrategy(t){gi=t}static normalize(t){return t===void 0?void 0:Array.isArray(t)?new it(t):t instanceof it?t:new it([t])}}it.supportsAdoptedStyleSheets=Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype;const us=cs(),ps=Object.freeze({getForInstance:us.getForInstance,getByType:us.getByType,define(o){return us.register({type:o}),o}});function gs(o,t,e){t.source.style.setProperty(o.targetAspect,e.bind(t))}class fs{constructor(t,e){this.dataBinding=t,this.targetAspect=e}createCSS(t){return t(this),`var(${this.targetAspect})`}addedCallback(t){var e;const s=t.source;if(!s.$cssBindings){s.$cssBindings=new Map;const r=s.setAttribute;s.setAttribute=(n,h)=>{r.call(s,n,h),n==="style"&&s.$cssBindings.forEach((p,u)=>gs(u,p.controller,p.observer))}}const i=(e=t[this.targetAspect])!==null&&e!==void 0?e:t[this.targetAspect]=this.dataBinding.createObserver(this,this);i.controller=t,t.source.$cssBindings.set(this,{controller:t,observer:i})}connectedCallback(t){gs(this,t,t[this.targetAspect])}removedCallback(t){t.source.$cssBindings&&t.source.$cssBindings.delete(this)}handleChange(t,e){gs(this,e.controller,e)}}ps.define(fs);const fn=`${Math.random().toString(36).substring(2,8)}`;let bn=0;const bi=()=>`--v${fn}${++bn}`;function mi(o,t){const e=[];let s="";const i=[],r=n=>{i.push(n)};for(let n=0,h=o.length-1;n<h;++n){s+=o[n];let p=t[n];$e(p)?p=new fs(hi(p),bi()).createCSS(r):p instanceof bo?p=new fs(p,bi()).createCSS(r):ps.getForInstance(p)!==void 0&&(p=p.createCSS(r)),p instanceof it||p instanceof CSSStyleSheet?(s.trim()!==""&&(e.push(s),s=""),e.push(p)):s+=p}return s+=o[o.length-1],s.trim()!==""&&e.push(s),{styles:e,behaviors:i}}const l=(o,...t)=>{const{styles:e,behaviors:s}=mi(o,t),i=new it(e);return s.length?i.withBehaviors(...s):i};class $i{constructor(t,e){this.behaviors=e,this.css="";const s=t.reduce((i,r)=>(Ct(r)?this.css+=r:i.push(r),i),[]);s.length&&(this.styles=new it(s))}createCSS(t){return this.behaviors.forEach(t),this.styles&&t(this),this.css}addedCallback(t){t.addStyles(this.styles)}removedCallback(t){t.removeStyles(this.styles)}}ps.define($i),l.partial=(o,...t)=>{const{styles:e,behaviors:s}=mi(o,t);return new $i(e,s)};const bs=`fast-${Math.random().toString(36).substring(2,8)}`,mo=`${bs}{`,Ne=`}${bs}`,mn=Ne.length;let $n=0;const ms=()=>`${bs}-${++$n}`,vi=Object.freeze({interpolation:o=>`${mo}${o}${Ne}`,attribute:o=>`${ms()}="${mo}${o}${Ne}"`,comment:o=>`<!--${mo}${o}${Ne}-->`}),$o=Object.freeze({parse(o,t){const e=o.split(mo);if(e.length===1)return null;const s=[];for(let i=0,r=e.length;i<r;++i){const n=e[i],h=n.indexOf(Ne);let p;if(h===-1)p=n;else{const u=n.substring(0,h);s.push(t[u]),p=n.substring(h+mn)}p!==""&&s.push(p)}return s}}),$s=cs(),bt=Object.freeze({getForInstance:$s.getForInstance,getByType:$s.getByType,define(o,t){return t=t||{},t.type=o,$s.register(t),o},assignAspect(o,t){if(!t){o.aspectType=Y.content;return}switch(o.sourceAspect=t,t[0]){case":":o.targetAspect=t.substring(1),o.aspectType=o.targetAspect==="classList"?Y.tokenList:Y.property;break;case"?":o.targetAspect=t.substring(1),o.aspectType=Y.booleanAttribute;break;case"@":o.targetAspect=t.substring(1),o.aspectType=Y.event;break;default:o.targetAspect=t,o.aspectType=Y.attribute;break}}});class vs{constructor(t){this.options=t}createHTML(t){return vi.attribute(t(this))}createBehavior(){return this}}ve(vs);function vn(o,t,e,s){if(e==null&&(e=""),e.create){o.textContent="";let i=o.$fastView;i===void 0?i=e.create():o.$fastTemplate!==e&&(i.isComposed&&(i.remove(),i.unbind()),i=e.create()),i.isComposed?i.needsBindOnly&&(i.needsBindOnly=!1,i.bind(s.source,s.context)):(i.isComposed=!0,i.bind(s.source,s.context),i.insertBefore(o),o.$fastView=i,o.$fastTemplate=e)}else{const i=o.$fastView;i!==void 0&&i.isComposed&&(i.isComposed=!1,i.remove(),i.needsBindOnly?i.needsBindOnly=!1:i.unbind()),o.textContent=e}}function yn(o,t,e){var s;const i=`${this.id}-t`,r=(s=o[i])!==null&&s!==void 0?s:o[i]={v:0,cv:Object.create(null)},n=r.cv;let h=r.v;const p=o[t];if(e!=null&&e.length){const u=e.split(/\s+/);for(let c=0,b=u.length;c<b;++c){const I=u[c];I!==""&&(n[I]=h,p.add(I))}}if(r.v=h+1,h!==0){h-=1;for(const u in n)n[u]===h&&p.remove(u)}}const kn={[Y.attribute]:ye.setAttribute,[Y.booleanAttribute]:ye.setBooleanAttribute,[Y.property]:(o,t,e)=>o[t]=e,[Y.content]:vn,[Y.tokenList]:yn,[Y.event]:()=>{}};class ke{constructor(t){this.dataBinding=t,this.updateTarget=null,this.aspectType=Y.content}createHTML(t){return vi.interpolation(t(this))}createBehavior(){var t;if(this.updateTarget===null){const e=kn[this.aspectType],s=(t=this.dataBinding.policy)!==null&&t!==void 0?t:this.policy;if(!e)throw G.error(1205);this.data=`${this.id}-d`,this.updateTarget=s.protect(this.targetTagName,this.aspectType,this.targetAspect,e)}return this}bind(t){var e;const s=t.targets[this.targetNodeId];switch(this.aspectType){case Y.event:s[this.data]=t,s.addEventListener(this.targetAspect,this,this.dataBinding.options);break;case Y.content:t.onUnbind(this);default:const i=(e=s[this.data])!==null&&e!==void 0?e:s[this.data]=this.dataBinding.createObserver(this,this);i.target=s,i.controller=t,this.updateTarget(s,this.targetAspect,i.bind(t),t);break}}unbind(t){const s=t.targets[this.targetNodeId].$fastView;s!==void 0&&s.isComposed&&(s.unbind(),s.needsBindOnly=!0)}handleEvent(t){const e=t.currentTarget[this.data];if(e.isBound){De.setEvent(t);const s=this.dataBinding.evaluate(e.source,e.context);De.setEvent(null),s!==!0&&t.preventDefault()}}handleChange(t,e){const s=e.target,i=e.controller;this.updateTarget(s,this.targetAspect,e.bind(i),i)}}bt.define(ke,{aspected:!0});function yi(o,t){const e=o.parentNode;let s=o,i;for(;s!==t;)i=s.nextSibling,e.removeChild(s),s=i;e.removeChild(t)}class vo{constructor(t,e,s){this.fragment=t,this.factories=e,this.targets=s,this.behaviors=null,this.unbindables=[],this.source=null,this.isBound=!1,this.sourceLifetime=hs.unknown,this.context=this,this.index=0,this.length=0,this.firstChild=t.firstChild,this.lastChild=t.lastChild}get event(){return De.getEvent()}get isEven(){return this.index%2===0}get isOdd(){return this.index%2!==0}get isFirst(){return this.index===0}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}eventDetail(){return this.event.detail}eventTarget(){return this.event.target}appendTo(t){t.appendChild(this.fragment)}insertBefore(t){if(this.fragment.hasChildNodes())t.parentNode.insertBefore(this.fragment,t);else{const e=this.lastChild;if(t.previousSibling===e)return;const s=t.parentNode;let i=this.firstChild,r;for(;i!==e;)r=i.nextSibling,s.insertBefore(i,t),i=r;s.insertBefore(e,t)}}remove(){const t=this.fragment,e=this.lastChild;let s=this.firstChild,i;for(;s!==e;)i=s.nextSibling,t.appendChild(s),s=i;t.appendChild(e)}dispose(){yi(this.firstChild,this.lastChild),this.unbind()}onUnbind(t){this.unbindables.push(t)}bind(t,e=this){if(this.source===t)return;let s=this.behaviors;if(s===null){this.source=t,this.context=e,this.behaviors=s=new Array(this.factories.length);const i=this.factories;for(let r=0,n=i.length;r<n;++r){const h=i[r].createBehavior();h.bind(this),s[r]=h}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=t,this.context=e;for(let i=0,r=s.length;i<r;++i)s[i].bind(this)}this.isBound=!0}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}evaluateUnbindables(){const t=this.unbindables;for(let e=0,s=t.length;e<s;++e)t[e].unbind(this);t.length=0}static disposeContiguousBatch(t){if(t.length!==0){yi(t[0].firstChild,t[t.length-1].lastChild);for(let e=0,s=t.length;e<s;++e)t[e].unbind()}}}ve(vo),$.defineProperty(vo.prototype,"index"),$.defineProperty(vo.prototype,"length");const ki=(o,t)=>`${o}.${t}`,xi={},It={index:0,node:null};function wi(o){o.startsWith("fast-")||G.warn(1204,{name:o})}const xn=new Proxy(document.createElement("div"),{get(o,t){wi(t);const e=Reflect.get(o,t);return $e(e)?e.bind(o):e},set(o,t,e){return wi(t),Reflect.set(o,t,e)}});class wn{constructor(t,e,s){this.fragment=t,this.directives=e,this.policy=s,this.proto=null,this.nodeIds=new Set,this.descriptors={},this.factories=[]}addFactory(t,e,s,i,r){var n,h;this.nodeIds.has(s)||(this.nodeIds.add(s),this.addTargetDescriptor(e,s,i)),t.id=(n=t.id)!==null&&n!==void 0?n:ms(),t.targetNodeId=s,t.targetTagName=r,t.policy=(h=t.policy)!==null&&h!==void 0?h:this.policy,this.factories.push(t)}freeze(){return this.proto=Object.create(null,this.descriptors),this}addTargetDescriptor(t,e,s){const i=this.descriptors;if(e==="r"||e==="h"||i[e])return;if(!i[t]){const n=t.lastIndexOf("."),h=t.substring(0,n),p=parseInt(t.substring(n+1));this.addTargetDescriptor(h,t,p)}let r=xi[e];if(!r){const n=`_${e}`;xi[e]=r={get(){var h;return(h=this[n])!==null&&h!==void 0?h:this[n]=this[t].childNodes[s]}}}i[e]=r}createView(t){const e=this.fragment.cloneNode(!0),s=Object.create(this.proto);s.r=e,s.h=t??xn;for(const i of this.nodeIds)s[i];return new vo(e,this.factories,s)}}function Ci(o,t,e,s,i,r=!1){const n=e.attributes,h=o.directives;for(let p=0,u=n.length;p<u;++p){const c=n[p],b=c.value,I=$o.parse(b,h);let N=null;I===null?r&&(N=new ke(pi(()=>b,o.policy)),bt.assignAspect(N,c.name)):N=ys.aggregate(I,o.policy),N!==null&&(e.removeAttributeNode(c),p--,u--,o.addFactory(N,t,s,i,e.tagName))}}function Cn(o,t,e,s,i){const r=$o.parse(t.textContent,o.directives);if(r===null)return It.node=t.nextSibling,It.index=i+1,It;let n,h=n=t;for(let p=0,u=r.length;p<u;++p){const c=r[p];p!==0&&(i++,s=ki(e,i),n=h.parentNode.insertBefore(document.createTextNode(""),h.nextSibling)),Ct(c)?n.textContent=c:(n.textContent=" ",bt.assignAspect(c),o.addFactory(c,e,s,i,null)),h=n}return It.index=i+1,It.node=h.nextSibling,It}function Si(o,t,e){let s=0,i=t.firstChild;for(;i;){const r=Sn(o,e,i,s);i=r.node,s=r.index}}function Sn(o,t,e,s){const i=ki(t,s);switch(e.nodeType){case 1:Ci(o,t,e,i,s),Si(o,e,i);break;case 3:return Cn(o,e,t,i,s);case 8:const r=$o.parse(e.data,o.directives);r!==null&&o.addFactory(ys.aggregate(r),t,i,s,null);break}return It.index=s+1,It.node=e.nextSibling,It}function In(o,t){return o&&o.nodeType==8&&$o.parse(o.data,t)!==null}const Ii="TEMPLATE",ys={compile(o,t,e=ye.policy){let s;if(Ct(o)){s=document.createElement(Ii),s.innerHTML=e.createHTML(o);const n=s.content.firstElementChild;n!==null&&n.tagName===Ii&&(s=n)}else s=o;!s.content.firstChild&&!s.content.lastChild&&s.content.appendChild(document.createComment(""));const i=document.adoptNode(s.content),r=new wn(i,t,e);return Ci(r,"",s,"h",0,!0),(In(i.firstChild,t)||i.childNodes.length===1&&Object.keys(t).length>0)&&i.insertBefore(document.createComment(""),i.firstChild),Si(r,i,"r"),It.node=null,r.freeze()},setDefaultStrategy(o){this.compile=o},aggregate(o,t=ye.policy){if(o.length===1)return o[0];let e,s,i=!1,r;const n=o.length,h=o.map(c=>Ct(c)?()=>c:(e=c.sourceAspect||e,s=c.dataBinding||s,i=i||c.dataBinding.isVolatile,r=r||c.dataBinding.policy,c.dataBinding.evaluate)),p=(c,b)=>{let I="";for(let N=0;N<n;++N)I+=h[N](c,b);return I};s.evaluate=p,s.isVolatile=i,s.policy=r??t;const u=new ke(s);return bt.assignAspect(u,e),u}},Pn=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/,Bn=Object.create(null);class ae{constructor(t,e=Bn){this.html=t,this.factories=e}createHTML(t){const e=this.factories;for(const s in e)t(e[s]);return this.html}}ae.empty=new ae(""),bt.define(ae);function Tn(o,t,e,s=bt.getForInstance(o)){if(s.aspected){const i=Pn.exec(t);i!==null&&bt.assignAspect(o,i[2])}return o.createHTML(e)}class rs{constructor(t,e={},s){this.policy=s,this.result=null,this.html=t,this.factories=e}create(t){return this.result===null&&(this.result=ys.compile(this.html,this.factories,this.policy)),this.result.createView(t)}inline(){return new ae(Ct(this.html)?this.html:this.html.innerHTML,this.factories)}withPolicy(t){if(this.result)throw G.error(1208);if(this.policy)throw G.error(1207);return this.policy=t,this}render(t,e,s){const i=this.create(s);return i.bind(t),i.appendTo(e),i}static create(t,e,s){let i="";const r=Object.create(null),n=h=>{var p;const u=(p=h.id)!==null&&p!==void 0?p:h.id=ms();return r[u]=h,u};for(let h=0,p=t.length-1;h<p;++h){const u=t[h];let c=e[h],b;if(i+=u,$e(c))c=new ke(hi(c));else if(c instanceof bo)c=new ke(c);else if(!(b=bt.getForInstance(c))){const I=c;c=new ke(pi(()=>I))}i+=Tn(c,u,n,b)}return new rs(i+t[t.length-1],r,s)}}ve(rs);const f=(o,...t)=>{if(Array.isArray(o)&&Array.isArray(o.raw))return rs.create(o,t);throw G.error(1206)};f.partial=o=>new ae(o);class Pi extends vs{bind(t){t.source[this.options]=t.targets[this.targetNodeId]}}bt.define(Pi);const Pt=o=>new Pi(o),zn=o=>o.nodeType===1,le=o=>o?t=>t.nodeType===1&&t.matches(o):zn;class Bi extends vs{get id(){return this._id}set id(t){this._id=t,this._controllerProperty=`${t}-c`}bind(t){const e=t.targets[this.targetNodeId];e[this._controllerProperty]=t,this.updateTarget(t.source,this.computeNodes(e)),this.observe(e),t.onUnbind(this)}unbind(t){const e=t.targets[this.targetNodeId];this.updateTarget(t.source,ni),this.disconnect(e),e[this._controllerProperty]=null}getSource(t){return t[this._controllerProperty].source}updateTarget(t,e){t[this.options.property]=e}computeNodes(t){let e=this.getNodes(t);return"filter"in this.options&&(e=e.filter(this.options.filter)),e}}const Ti="slotchange";class zi extends Bi{observe(t){t.addEventListener(Ti,this)}disconnect(t){t.removeEventListener(Ti,this)}getNodes(t){return t.assignedNodes(this.options)}handleEvent(t){const e=t.currentTarget;this.updateTarget(this.getSource(e),this.computeNodes(e))}}bt.define(zi);function rt(o){return Ct(o)&&(o={property:o}),new zi(o)}class Fi extends Bi{constructor(t){super(t),this.observerProperty=Symbol(),this.handleEvent=(e,s)=>{const i=s.target;this.updateTarget(this.getSource(i),this.computeNodes(i))},t.childList=!0}observe(t){let e=t[this.observerProperty];e||(e=new MutationObserver(this.handleEvent),e.toJSON=ii,t[this.observerProperty]=e),e.target=t,e.observe(t,this.options)}disconnect(t){const e=t[this.observerProperty];e.target=null,e.disconnect()}getNodes(t){return"selector"in this.options?Array.from(t.querySelectorAll(this.options.selector)):Array.from(t.childNodes)}}bt.define(Fi);function Fn(o){return Ct(o)&&(o={property:o}),new Fi(o)}const Oi="boolean",Ai="reflect",yo=Object.freeze({locate:ai()}),_i={toView(o){return o?"true":"false"},fromView(o){return!(o==null||o==="false"||o===!1||o===0)}};function Mi(o){if(o==null)return null;const t=o*1;return isNaN(t)?null:t}const nt={toView(o){const t=Mi(o);return t&&t.toString()},fromView:Mi};class ns{constructor(t,e,s=e.toLowerCase(),i=Ai,r){this.guards=new Set,this.Owner=t,this.name=e,this.attribute=s,this.mode=i,this.converter=r,this.fieldName=`_${e}`,this.callbackName=`${e}Changed`,this.hasCallback=this.callbackName in t.prototype,i===Oi&&r===void 0&&(this.converter=_i)}setValue(t,e){const s=t[this.fieldName],i=this.converter;i!==void 0&&(e=i.fromView(e)),s!==e&&(t[this.fieldName]=e,this.tryReflectToAttribute(t),this.hasCallback&&t[this.callbackName](s,e),t.$fastController.notify(this.name))}getValue(t){return $.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,s=this.guards;s.has(t)||e==="fromView"||St.enqueue(()=>{s.add(t);const i=t[this.fieldName];switch(e){case Ai:const r=this.converter;ye.setAttribute(t,this.attribute,r!==void 0?r.toView(i):i);break;case Oi:ye.setBooleanAttribute(t,this.attribute,i);break}s.delete(t)})}static collect(t,...e){const s=[];e.push(yo.locate(t));for(let i=0,r=e.length;i<r;++i){const n=e[i];if(n!==void 0)for(let h=0,p=n.length;h<p;++h){const u=n[h];Ct(u)?s.push(new ns(t,u)):s.push(new ns(t,u.property,u.attribute,u.mode,u.converter))}}return s}}function a(o,t){let e;function s(i,r){arguments.length>1&&(e.property=r),yo.locate(i.constructor).push(e)}if(arguments.length>1){e={},s(o,t);return}return e=o===void 0?{}:o,s}const Ei={mode:"open"},Li={},Hi=new Set,ko=G.getById(ne.elementRegistry,()=>cs());class wt{constructor(t,e=t.definition){var s;this.platformDefined=!1,Ct(e)&&(e={name:e}),this.type=t,this.name=e.name,this.template=e.template,this.registry=(s=e.registry)!==null&&s!==void 0?s:customElements;const i=t.prototype,r=ns.collect(t,e.attributes),n=new Array(r.length),h={},p={};for(let u=0,c=r.length;u<c;++u){const b=r[u];n[u]=b.attribute,h[b.name]=b,p[b.attribute]=b,$.defineProperty(i,b)}Reflect.defineProperty(t,"observedAttributes",{value:n,enumerable:!0}),this.attributes=r,this.propertyLookup=h,this.attributeLookup=p,this.shadowOptions=e.shadowOptions===void 0?Ei:e.shadowOptions===null?void 0:Object.assign(Object.assign({},Ei),e.shadowOptions),this.elementOptions=e.elementOptions===void 0?Li:Object.assign(Object.assign({},Li),e.elementOptions),this.styles=it.normalize(e.styles),ko.register(this)}get isDefined(){return this.platformDefined}define(t=this.registry){const e=this.type;return t.get(this.name)||(this.platformDefined=!0,t.define(this.name,e,this.elementOptions)),this}static compose(t,e){return Hi.has(t)||ko.getByType(t)?new wt(class extends t{},e):new wt(t,e)}static registerBaseType(t){Hi.add(t)}}wt.getByType=ko.getByType,wt.getForInstance=ko.getForInstance;const On={bubbles:!0,composed:!0,cancelable:!0},ks="isConnected",Di=new WeakMap;function xo(o){var t,e;return(e=(t=o.shadowRoot)!==null&&t!==void 0?t:Di.get(o))!==null&&e!==void 0?e:null}let Ni;class wo extends ci{constructor(t,e){super(t),this.boundObservables=null,this.needsInitialization=!0,this.hasExistingShadowRoot=!1,this._template=null,this.stage=3,this.guardBehaviorConnection=!1,this.behaviors=null,this._mainStyles=null,this.$fastController=this,this.view=null,this.source=t,this.definition=e;const s=e.shadowOptions;if(s!==void 0){let r=t.shadowRoot;r?this.hasExistingShadowRoot=!0:(r=t.attachShadow(s),s.mode==="closed"&&Di.set(t,r))}const i=$.getAccessors(t);if(i.length>0){const r=this.boundObservables=Object.create(null);for(let n=0,h=i.length;n<h;++n){const p=i[n].name,u=t[p];u!==void 0&&(delete t[p],r[p]=u)}}}get isConnected(){return $.track(this,ks),this.stage===1}get context(){var t,e;return(e=(t=this.view)===null||t===void 0?void 0:t.context)!==null&&e!==void 0?e:De.default}get isBound(){var t,e;return(e=(t=this.view)===null||t===void 0?void 0:t.isBound)!==null&&e!==void 0?e:!1}get sourceLifetime(){var t;return(t=this.view)===null||t===void 0?void 0:t.sourceLifetime}get template(){var t;if(this._template===null){const e=this.definition;this.source.resolveTemplate?this._template=this.source.resolveTemplate():e.template&&(this._template=(t=e.template)!==null&&t!==void 0?t:null)}return this._template}set template(t){this._template!==t&&(this._template=t,this.needsInitialization||this.renderTemplate(t))}get mainStyles(){var t;if(this._mainStyles===null){const e=this.definition;this.source.resolveStyles?this._mainStyles=this.source.resolveStyles():e.styles&&(this._mainStyles=(t=e.styles)!==null&&t!==void 0?t:null)}return this._mainStyles}set mainStyles(t){this._mainStyles!==t&&(this._mainStyles!==null&&this.removeStyles(this._mainStyles),this._mainStyles=t,this.needsInitialization||this.addStyles(t))}onUnbind(t){var e;(e=this.view)===null||e===void 0||e.onUnbind(t)}addBehavior(t){var e,s;const i=(e=this.behaviors)!==null&&e!==void 0?e:this.behaviors=new Map,r=(s=i.get(t))!==null&&s!==void 0?s:0;r===0?(i.set(t,1),t.addedCallback&&t.addedCallback(this),t.connectedCallback&&!this.guardBehaviorConnection&&(this.stage===1||this.stage===0)&&t.connectedCallback(this)):i.set(t,r+1)}removeBehavior(t,e=!1){const s=this.behaviors;if(s===null)return;const i=s.get(t);i!==void 0&&(i===1||e?(s.delete(t),t.disconnectedCallback&&this.stage!==3&&t.disconnectedCallback(this),t.removedCallback&&t.removedCallback(this)):s.set(t,i-1))}addStyles(t){var e;if(!t)return;const s=this.source;if(t instanceof HTMLElement)((e=xo(s))!==null&&e!==void 0?e:this.source).append(t);else if(!t.isAttachedTo(s)){const i=t.behaviors;if(t.addStylesTo(s),i!==null)for(let r=0,n=i.length;r<n;++r)this.addBehavior(i[r])}}removeStyles(t){var e;if(!t)return;const s=this.source;if(t instanceof HTMLElement)((e=xo(s))!==null&&e!==void 0?e:s).removeChild(t);else if(t.isAttachedTo(s)){const i=t.behaviors;if(t.removeStylesFrom(s),i!==null)for(let r=0,n=i.length;r<n;++r)this.removeBehavior(i[r])}}connect(){if(this.stage!==3)return;if(this.stage=0,this.boundObservables!==null){const e=this.source,s=this.boundObservables,i=Object.keys(s);for(let r=0,n=i.length;r<n;++r){const h=i[r];e[h]=s[h]}this.boundObservables=null}const t=this.behaviors;if(t!==null){this.guardBehaviorConnection=!0;for(const e of t.keys())e.connectedCallback&&e.connectedCallback(this);this.guardBehaviorConnection=!1}this.needsInitialization?(this.renderTemplate(this.template),this.addStyles(this.mainStyles),this.needsInitialization=!1):this.view!==null&&this.view.bind(this.source),this.stage=1,$.notify(this,ks)}disconnect(){if(this.stage!==1)return;this.stage=2,$.notify(this,ks),this.view!==null&&this.view.unbind();const t=this.behaviors;if(t!==null)for(const e of t.keys())e.disconnectedCallback&&e.disconnectedCallback(this);this.stage=3}onAttributeChangedCallback(t,e,s){const i=this.definition.attributeLookup[t];i!==void 0&&i.onAttributeChangedCallback(this.source,s)}emit(t,e,s){return this.stage===1?this.source.dispatchEvent(new CustomEvent(t,Object.assign(Object.assign({detail:e},On),s))):!1}renderTemplate(t){var e;const s=this.source,i=(e=xo(s))!==null&&e!==void 0?e:s;if(this.view!==null)this.view.dispose(),this.view=null;else if(!this.needsInitialization||this.hasExistingShadowRoot){this.hasExistingShadowRoot=!1;for(let r=i.firstChild;r!==null;r=i.firstChild)i.removeChild(r)}t&&(this.view=t.render(s,i,s),this.view.sourceLifetime=hs.coupled)}static forCustomElement(t){const e=t.$fastController;if(e!==void 0)return e;const s=wt.getForInstance(t);if(s===void 0)throw G.error(1401);return t.$fastController=new Ni(t,s)}static setStrategy(t){Ni=t}}ve(wo),wo.setStrategy(wo);function Co(o){var t;return"adoptedStyleSheets"in o?o:(t=xo(o))!==null&&t!==void 0?t:o.getRootNode()}class as{constructor(t){const e=as.styleSheetCache;this.sheets=t.map(s=>{if(s instanceof CSSStyleSheet)return s;let i=e.get(s);return i===void 0&&(i=new CSSStyleSheet,i.replaceSync(s),e.set(s,i)),i})}addStylesTo(t){Vi(Co(t),this.sheets)}removeStylesFrom(t){ji(Co(t),this.sheets)}}as.styleSheetCache=new Map;let An=0;const _n=()=>`fast-${++An}`;function Ri(o){return o===document?document.body:o}class Mn{constructor(t){this.styles=t,this.styleClass=_n()}addStylesTo(t){t=Ri(Co(t));const e=this.styles,s=this.styleClass;for(let i=0;i<e.length;i++){const r=document.createElement("style");r.innerHTML=e[i],r.className=s,t.append(r)}}removeStylesFrom(t){t=Ri(Co(t));const e=t.querySelectorAll(`.${this.styleClass}`);for(let s=0,i=e.length;s<i;++s)t.removeChild(e[s])}}let Vi=(o,t)=>{o.adoptedStyleSheets=[...o.adoptedStyleSheets,...t]},ji=(o,t)=>{o.adoptedStyleSheets=o.adoptedStyleSheets.filter(e=>t.indexOf(e)===-1)};if(it.supportsAdoptedStyleSheets){try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),Vi=(o,t)=>{o.adoptedStyleSheets.push(...t)},ji=(o,t)=>{for(const e of t){const s=o.adoptedStyleSheets.indexOf(e);s!==-1&&o.adoptedStyleSheets.splice(s,1)}}}catch{}it.setDefaultStrategy(as)}else it.setDefaultStrategy(Mn);function qi(o){const t=class extends o{constructor(){super(),wo.forCustomElement(this)}$emit(e,s,i){return this.$fastController.emit(e,s,i)}connectedCallback(){this.$fastController.connect()}disconnectedCallback(){this.$fastController.disconnect()}attributeChangedCallback(e,s,i){this.$fastController.onAttributeChangedCallback(e,s,i)}};return wt.registerBaseType(t),t}function En(o,t){return $e(o)?wt.compose(o,t):wt.compose(this,o)}function Ln(o,t){return $e(o)?wt.compose(o,t).define().type:wt.compose(this,o).define().type}function Hn(o){return qi(o)}const x=Object.assign(qi(HTMLElement),{from:Hn,define:Ln,compose:En}),Q={horizontal:"horizontal",vertical:"vertical"};function Gi(...o){return o.every(t=>t instanceof HTMLElement)}const xe="ArrowDown",we="ArrowLeft",Ce="ArrowRight",Se="ArrowUp",So="End",Ie="Enter",Dn="Escape",Io="Home",Po=" ",Nn="Tab",Rn={ArrowDown:xe,ArrowLeft:we,ArrowRight:Ce,ArrowUp:Se};var ht;(function(o){o.ltr="ltr",o.rtl="rtl"})(ht||(ht={}));function Vn(o,t,e){return e<o?t:e>t?o:e}function xs(o,t,e){return Math.min(Math.max(e,o),t)}let jn=0;function ws(o=""){return`${o}${jn++}`}var qn=Object.defineProperty,Gn=Object.getOwnPropertyDescriptor,L=(o,t,e,s)=>{for(var i=s>1?void 0:s?Gn(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&qn(t,e,i),i};class H{}L([a({attribute:"aria-atomic"})],H.prototype,"ariaAtomic",2),L([a({attribute:"aria-busy"})],H.prototype,"ariaBusy",2),L([a({attribute:"aria-controls"})],H.prototype,"ariaControls",2),L([a({attribute:"aria-current"})],H.prototype,"ariaCurrent",2),L([a({attribute:"aria-describedby"})],H.prototype,"ariaDescribedby",2),L([a({attribute:"aria-details"})],H.prototype,"ariaDetails",2),L([a({attribute:"aria-disabled"})],H.prototype,"ariaDisabled",2),L([a({attribute:"aria-errormessage"})],H.prototype,"ariaErrormessage",2),L([a({attribute:"aria-flowto"})],H.prototype,"ariaFlowto",2),L([a({attribute:"aria-haspopup"})],H.prototype,"ariaHaspopup",2),L([a({attribute:"aria-hidden"})],H.prototype,"ariaHidden",2),L([a({attribute:"aria-invalid"})],H.prototype,"ariaInvalid",2),L([a({attribute:"aria-keyshortcuts"})],H.prototype,"ariaKeyshortcuts",2),L([a({attribute:"aria-label"})],H.prototype,"ariaLabel",2),L([a({attribute:"aria-labelledby"})],H.prototype,"ariaLabelledby",2),L([a({attribute:"aria-live"})],H.prototype,"ariaLive",2),L([a({attribute:"aria-owns"})],H.prototype,"ariaOwns",2),L([a({attribute:"aria-relevant"})],H.prototype,"ariaRelevant",2),L([a({attribute:"aria-roledescription"})],H.prototype,"ariaRoledescription",2);const Wi=o=>o.closest("[dir]")?.dir==="rtl"?ht.rtl:ht.ltr;function ut(o){return o?typeof o=="string"?new ae(o):"inline"in o?o.inline():o:ae.empty}const Xi=o=>o.nodeType!==Node.TEXT_NODE||!!o.nodeValue?.trim().length,Wn=":host([hidden]){display:none}";function w(o){return`${Wn}:host{display:${o}}`}class Xn{constructor(t){this.listenerCache=new WeakMap,this.query=t}connectedCallback(t){const{query:e}=this;let s=this.listenerCache.get(t);s||(s=this.constructListener(t),this.listenerCache.set(t,s)),s.bind(e)(),e.addEventListener("change",s)}disconnectedCallback(t){const e=this.listenerCache.get(t);e&&this.query.removeEventListener("change",e)}}class po extends Xn{constructor(t,e){super(t),this.styles=e}static with(t){return e=>new po(t,e)}constructListener(t){let e=!1;const s=this.styles;return function(){const{matches:r}=this;r&&!e?(t.addStyles(s),e=r):!r&&e&&(t.removeStyles(s),e=r)}}removedCallback(t){t.removeStyles(this.styles)}}const Z=po.with(window.matchMedia("(forced-colors)"));po.with(window.matchMedia("(prefers-color-scheme: dark)")),po.with(window.matchMedia("(prefers-color-scheme: light)"));class Lt{}function Ht(o){return f`<slot name="end" ${Pt("end")}>${ut(o.end)}</slot>`.inline()}function Dt(o){return f`<slot name="start" ${Pt("start")}>${ut(o.start)}</slot>`.inline()}function Nt(o,...t){const e=yo.locate(o);t.forEach(s=>{Object.getOwnPropertyNames(s.prototype).forEach(r=>{r!=="constructor"&&Object.defineProperty(o.prototype,r,Object.getOwnPropertyDescriptor(s.prototype,r))}),yo.locate(s).forEach(r=>e.push(r))})}var Un=Object.defineProperty,Kn=Object.getOwnPropertyDescriptor,ce=(o,t,e,s)=>{for(var i=s>1?void 0:s?Kn(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Un(t,e,i),i};class J extends x{constructor(){super(...arguments),this.headinglevel=2,this.expanded=!1,this.disabled=!1,this.id=ws("accordion-"),this.block=!1,this.clickHandler=t=>{this.disabled||this.$emit("click",t)}}}ce([a({attribute:"heading-level",mode:"fromView",converter:nt})],J.prototype,"headinglevel",2),ce([a({mode:"boolean"})],J.prototype,"expanded",2),ce([a({mode:"boolean"})],J.prototype,"disabled",2),ce([a],J.prototype,"id",2),ce([a],J.prototype,"size",2),ce([a({mode:"boolean"})],J.prototype,"block",2),ce([a({attribute:"expand-icon-position"})],J.prototype,"expandIconPosition",2),Nt(J,Lt);const A="var(--colorNeutralForeground1)",Ui="var(--colorNeutralForeground1Hover)",Yn="var(--colorNeutralForeground1Pressed)",Rt="var(--colorNeutralForeground2)",Bo="var(--colorNeutralForeground2Hover)",To="var(--colorNeutralForeground2Pressed)",Qn="var(--colorNeutralForeground2Selected)",zo="var(--colorNeutralForeground2BrandHover)",Fo="var(--colorNeutralForeground2BrandPressed)",Zn="var(--colorNeutralForeground2BrandSelected)",tt="var(--colorNeutralForeground3)",Jn="var(--colorNeutralForeground3Hover)",ta="var(--colorNeutralForeground3Pressed)",ea="var(--colorNeutralForeground4)",k="var(--colorNeutralForegroundDisabled)",oa="var(--colorBrandForegroundLink)",sa="var(--colorBrandForegroundLinkHover)",ia="var(--colorBrandForegroundLinkPressed)",ra="var(--colorNeutralForeground2Link)",na="var(--colorNeutralForeground2LinkHover)",aa="var(--colorNeutralForeground2LinkPressed)",Ki="var(--colorCompoundBrandForeground1)",Yi="var(--colorCompoundBrandForeground1Hover)",Qi="var(--colorCompoundBrandForeground1Pressed)",Vt="var(--colorNeutralForegroundOnBrand)",Oo="var(--colorNeutralForegroundInverted)",la="var(--colorNeutralForegroundInvertedHover)",ca="var(--colorNeutralForegroundInvertedPressed)",Zi="var(--colorNeutralForegroundStaticInverted)",Cs="var(--colorBrandForeground1)",da="var(--colorBrandForeground2)",ha="var(--colorNeutralForeground1Static)",_="var(--colorNeutralBackground1)",Ss="var(--colorNeutralBackground1Hover)",Ji="var(--colorNeutralBackground1Pressed)",tr="var(--colorNeutralBackground1Selected)",er="var(--colorNeutralBackground3)",ua="var(--colorNeutralBackground4)",pa="var(--colorNeutralBackground5)",Ao="var(--colorNeutralBackground6)",ga="var(--colorNeutralBackgroundInverted)",fa="var(--colorSubtleBackground)",Is="var(--colorSubtleBackgroundHover)",_o="var(--colorSubtleBackgroundPressed)",ba="var(--colorSubtleBackgroundSelected)",mt="var(--colorTransparentBackground)",Ps="var(--colorTransparentBackgroundHover)",Bs="var(--colorTransparentBackgroundPressed)",ma="var(--colorTransparentBackgroundSelected)",Re="var(--colorNeutralBackgroundDisabled)",Ts="var(--colorBackgroundOverlay)",zs="var(--colorBrandBackground)",or="var(--colorBrandBackgroundHover)",sr="var(--colorBrandBackgroundPressed)",$a="var(--colorBrandBackgroundSelected)",Ve="var(--colorCompoundBrandBackground)",je="var(--colorCompoundBrandBackgroundHover)",qe="var(--colorCompoundBrandBackgroundPressed)",ir="var(--colorBrandBackgroundStatic)",va="var(--colorBrandBackground2)",jt="var(--colorNeutralStrokeAccessible)",Ge="var(--colorNeutralStrokeAccessibleHover)",We="var(--colorNeutralStrokeAccessiblePressed)",Pe="var(--colorNeutralStroke1)",Mo="var(--colorNeutralStroke1Hover)",Fs="var(--colorNeutralStroke1Pressed)",Xe="var(--colorNeutralStroke2)",ya="var(--colorNeutralStroke3)",ka="var(--colorNeutralStrokeOnBrand2)",rr="var(--colorBrandStroke1)",nr="var(--colorBrandStroke2)",Os="var(--colorCompoundBrandStroke)",As="var(--colorCompoundBrandStrokeHover)",_s="var(--colorCompoundBrandStrokePressed)",qt="var(--colorNeutralStrokeDisabled)",at="var(--colorTransparentStroke)",ar="var(--colorTransparentStrokeInteractive)",Eo="var(--colorStrokeFocus1)",Bt="var(--colorStrokeFocus2)",xa="var(--colorPaletteRedBackground1)",wa="var(--colorPaletteRedBackground2)",lr="var(--colorPaletteRedBackground3)",Ca="var(--colorPaletteRedBorder1)",Sa="var(--colorPaletteRedBorder2)",cr="var(--colorPaletteRedForeground1)",Ia="var(--colorPaletteRedForeground2)",dr="var(--colorPaletteRedForeground3)",Pa="var(--colorPaletteGreenBackground1)",hr="var(--colorPaletteGreenBackground3)",Ba="var(--colorPaletteGreenBorder2)",Ta="var(--colorPaletteGreenForeground1)",za="var(--colorPaletteGreenForeground2)",Fa="var(--colorPaletteGreenForeground3)",Oa="var(--colorPaletteDarkOrangeBackground1)",ur="var(--colorPaletteDarkOrangeBackground3)",Aa="var(--colorPaletteDarkOrangeBorder1)",_a="var(--colorPaletteDarkOrangeForeground1)",pr="var(--colorPaletteDarkOrangeForeground3)",Ma="var(--colorPaletteYellowBackground1)",Ea="var(--colorPaletteYellowBackground3)",La="var(--colorPaletteYellowBorder1)",Ms="var(--colorPaletteYellowForeground2)",Ha="var(--colorPaletteMarigoldBackground2)",Da="var(--colorPaletteMarigoldForeground2)",Na="var(--colorPaletteAnchorBackground2)",Ra="var(--colorPaletteAnchorForeground2)",Va="var(--colorPaletteBeigeBackground2)",ja="var(--colorPaletteBeigeForeground2)",qa="var(--colorPaletteBlueBackground2)",Ga="var(--colorPaletteBlueForeground2)",Wa="var(--colorPaletteBrassBackground2)",Xa="var(--colorPaletteBrassForeground2)",Ua="var(--colorPaletteBrownBackground2)",Ka="var(--colorPaletteBrownForeground2)",Ya="var(--colorPaletteCornflowerBackground2)",Qa="var(--colorPaletteCornflowerForeground2)",Za="var(--colorPaletteCranberryBackground2)",Ja="var(--colorPaletteCranberryForeground2)",tl="var(--colorPaletteDarkGreenBackground2)",el="var(--colorPaletteDarkGreenForeground2)",ol="var(--colorPaletteDarkRedBackground2)",sl="var(--colorPaletteDarkRedForeground2)",il="var(--colorPaletteForestBackground2)",rl="var(--colorPaletteForestForeground2)",nl="var(--colorPaletteGoldBackground2)",al="var(--colorPaletteGoldForeground2)",ll="var(--colorPaletteGrapeBackground2)",cl="var(--colorPaletteGrapeForeground2)",dl="var(--colorPaletteLavenderBackground2)",hl="var(--colorPaletteLavenderForeground2)",ul="var(--colorPaletteLightTealBackground2)",pl="var(--colorPaletteLightTealForeground2)",gl="var(--colorPaletteLilacBackground2)",fl="var(--colorPaletteLilacForeground2)",bl="var(--colorPaletteMagentaBackground2)",ml="var(--colorPaletteMagentaForeground2)",$l="var(--colorPaletteMinkBackground2)",vl="var(--colorPaletteMinkForeground2)",yl="var(--colorPaletteNavyBackground2)",kl="var(--colorPaletteNavyForeground2)",xl="var(--colorPalettePeachBackground2)",wl="var(--colorPalettePeachForeground2)",Cl="var(--colorPalettePinkBackground2)",Sl="var(--colorPalettePinkForeground2)",Il="var(--colorPalettePlatinumBackground2)",Pl="var(--colorPalettePlatinumForeground2)",Bl="var(--colorPalettePlumBackground2)",Tl="var(--colorPalettePlumForeground2)",zl="var(--colorPalettePumpkinBackground2)",Fl="var(--colorPalettePumpkinForeground2)",Ol="var(--colorPalettePurpleBackground2)",Al="var(--colorPalettePurpleForeground2)",_l="var(--colorPaletteRoyalBlueBackground2)",Ml="var(--colorPaletteRoyalBlueForeground2)",El="var(--colorPaletteSeafoamBackground2)",Ll="var(--colorPaletteSeafoamForeground2)",Hl="var(--colorPaletteSteelBackground2)",Dl="var(--colorPaletteSteelForeground2)",Nl="var(--colorPaletteTealBackground2)",Rl="var(--colorPaletteTealForeground2)",Es="var(--borderRadiusNone)",$t="var(--borderRadiusSmall)",F="var(--borderRadiusMedium)",gr="var(--borderRadiusLarge)",fr="var(--borderRadiusXLarge)",lt="var(--borderRadiusCircular)",m="var(--fontFamilyBase)",Vl="var(--fontFamilyMonospace)",jl="var(--fontFamilyNumeric)",Ue="var(--fontSizeBase100)",W="var(--fontSizeBase200)",P="var(--fontSizeBase300)",ct="var(--fontSizeBase400)",Be="var(--fontSizeBase500)",Lo="var(--fontSizeBase600)",br="var(--fontSizeHero700)",mr="var(--fontSizeHero800)",$r="var(--fontSizeHero900)",vr="var(--fontSizeHero1000)",B="var(--fontWeightRegular)",ql="var(--fontWeightMedium)",D="var(--fontWeightSemibold)",Ho="var(--fontWeightBold)",Do="var(--lineHeightBase100)",dt="var(--lineHeightBase200)",M="var(--lineHeightBase300)",vt="var(--lineHeightBase400)",No="var(--lineHeightBase500)",yr="var(--lineHeightBase600)",kr="var(--lineHeightHero700)",xr="var(--lineHeightHero800)",wr="var(--lineHeightHero900)",Cr="var(--lineHeightHero1000)",Sr="var(--shadow2)",Ro="var(--shadow4)",Gl="var(--shadow8)",Ir="var(--shadow16)",Wl="var(--shadow28)",Pr="var(--shadow64)",X="var(--strokeWidthThin)",de="var(--strokeWidthThick)",Zt="var(--strokeWidthThicker)",Br="var(--strokeWidthThickest)",he="var(--spacingHorizontalXXS)",Gt="var(--spacingHorizontalXS)",ue="var(--spacingHorizontalSNudge)",Tt="var(--spacingHorizontalS)",Wt="var(--spacingHorizontalMNudge)",Jt="var(--spacingHorizontalM)",Xl="var(--spacingHorizontalL)",Ul="var(--spacingHorizontalXXL)",Vo="var(--spacingVerticalXXS)",Kl="var(--spacingVerticalXS)",Ke="var(--spacingVerticalSNudge)",U="var(--spacingVerticalS)",Tr="var(--spacingVerticalMNudge)",zr="var(--spacingVerticalL)",Ye="var(--spacingVerticalXXL)",Yl="var(--durationUltraFast)",Ls="var(--durationFaster)",Fr="var(--durationNormal)",Hs="var(--durationGentle)",Ql="var(--durationSlow)",Or="var(--durationSlower)",jo="var(--durationUltraSlow)",Zl="var(--curveAccelerateMax)",Qe="var(--curveAccelerateMid)",Jl="var(--curveAccelerateMin)",Ar="var(--curveDecelerateMax)",Ze="var(--curveDecelerateMid)",tc="var(--curveDecelerateMin)",ec="var(--curveEasyEaseMax)",Ds="var(--curveEasyEase)",Ns="var(--curveLinear)",oc=l`
|
|
2
|
+
${w("block")}
|
|
3
3
|
|
|
4
|
-
:host{max-width:fit-content;contain:content}.heading{height:44px;display:grid;position:relative;vertical-align:middle;padding-inline:${Jt} ${Wt};border-radius:${
|
|
4
|
+
:host{max-width:fit-content;contain:content}.heading{height:44px;display:grid;position:relative;vertical-align:middle;padding-inline:${Jt} ${Wt};border-radius:${F};font-family:${m};font-size:${P};font-weight:${B};line-height:${M};grid-template-columns:auto auto 1fr auto}.heading-content{height:100%;display:flex;align-items:center}.button{box-sizing:border-box;appearance:none;border:none;outline:none;text-align:start;cursor:pointer;font-family:inherit;height:44px;color:${A};background:${mt};line-height:${M};height:auto;padding:0;font-size:inherit;grid-column:auto / span 2;grid-row:1}.button::before{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${$t}}.icon{display:flex;align-items:center;justify-content:center;pointer-events:none;position:relative;height:100%;padding-right:${Tt};grid-column:1 / span 1;grid-row:1}.region{margin:0 ${Jt}}::slotted([slot='start']),::slotted([slot='end']){justify-content:center;align-items:center;padding-right:${Tt};grid-column:2 / span 1;grid-row:1 / span 1}button:focus-visible::after{content:'';position:absolute;inset:0px;cursor:pointer;border-radius:${$t};outline:none;border:2px solid ${Eo};box-shadow:inset 0 0 0 1px ${Bt}}:host([disabled]) .button{color:${k}}:host([disabled]) svg{filter:invert(89%) sepia(0%) saturate(569%) hue-rotate(155deg) brightness(88%) contrast(87%)}:host([expanded]) .region{display:block}:host([expanded]) .default-collapsed-icon,:host([expanded]) ::slotted([slot='collapsed-icon']),:host(:not([expanded])) .default-expanded-icon,:host(:not([expanded])) ::slotted([slot='expanded-icon']),:host([expanded]) ::slotted([slot='end']),::slotted([slot='start']),.region{display:none}:host([expanded]) ::slotted([slot='start']),:host([expanded]) ::slotted([slot='expanded-icon']),:host(:not([expanded])) ::slotted([slot='collapsed-icon']),::slotted([slot='end']){display:flex}.heading{font-size:${P};line-height:${M}}:host([size='small']) .heading{font-size:${W};line-height:${dt}}:host([size='large']) .heading{font-size:${ct};line-height:${vt}}:host([size='extra-large']) .heading{font-size:${Be};line-height:${No}}:host([expand-icon-position='end']) :slotted(span[slot='start']),:host([expand-icon-position='end']) ::slotted(span[slot='end']){grid-column:1 / span 1;grid-row:1}:host([expand-icon-position='end']) ::slotted(span[slot='start']),:host([expand-icon-position='end']) ::slotted(span[slot='end']){grid-column:1 / span 1;grid-row:1}:host([expand-icon-position='end']) .icon{grid-column:4 / span 1;grid-row:1;display:flex;padding-left:10px;padding-right:0}:host([expand-icon-position='end']) .button{grid-column:2 / span 3;grid-row:1}:host([block]){max-width:100%}:host([expand-icon-position='end']) .heading{grid-template-columns:auto auto 28px}:host([expand-icon-position='end']) .icon{grid-column:5 / span 1}:host([block][expand-icon-position='end']) .heading{grid-template-columns:auto 1fr}:host([block][expand-icon-position='end']) .icon{grid-column:5 / span 1}`,sc=f.partial(`<svg
|
|
5
5
|
width="20"
|
|
6
6
|
height="20"
|
|
7
7
|
viewBox="0 0 20 20"
|
|
@@ -13,7 +13,7 @@ const f=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
13
13
|
d="M7.73271 4.20694C8.03263 3.92125 8.50737 3.93279 8.79306 4.23271L13.7944 9.48318C14.0703 9.77285 14.0703 10.2281 13.7944 10.5178L8.79306 15.7682C8.50737 16.0681 8.03263 16.0797 7.73271 15.794C7.43279 15.5083 7.42125 15.0336 7.70694 14.7336L12.2155 10.0005L7.70694 5.26729C7.42125 4.96737 7.43279 4.49264 7.73271 4.20694Z"
|
|
14
14
|
fill="currentColor"
|
|
15
15
|
/>
|
|
16
|
-
</svg>`),
|
|
16
|
+
</svg>`),ic=f.partial(`<svg
|
|
17
17
|
width="20"
|
|
18
18
|
height="20"
|
|
19
19
|
viewBox="0 0 20 20"
|
|
@@ -25,37 +25,37 @@ const f=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
25
25
|
d="M15.794 7.73271C16.0797 8.03263 16.0681 8.50737 15.7682 8.79306L10.5178 13.7944C10.2281 14.0703 9.77285 14.0703 9.48318 13.7944L4.23271 8.79306C3.93279 8.50737 3.92125 8.03263 4.20694 7.73271C4.49264 7.43279 4.96737 7.42125 5.26729 7.70694L10.0005 12.2155L14.7336 7.70694C15.0336 7.42125 15.5083 7.43279 15.794 7.73271Z"
|
|
26
26
|
fill="currentColor"
|
|
27
27
|
/>
|
|
28
|
-
</svg>`);function
|
|
29
|
-
${
|
|
28
|
+
</svg>`);function rc(o={}){return f`<div class="heading" part="heading" role="heading" aria-level="${t=>t.headinglevel}"><button class="button" part="button" ${Pt("expandbutton")} ?disabled="${t=>t.disabled?"true":void 0}" 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-content" part="heading-content"><slot name="heading"></slot></span></button>${Dt(o)} ${Ht(o)}<span class="icon" part="icon" aria-hidden="true"><slot name="expanded-icon">${ut(o.expandedIcon)}</slot><slot name="collapsed-icon">${ut(o.collapsedIcon)}</slot><span></div><div class="region" part="region" id="${t=>t.id}-panel" role="region" aria-labelledby="${t=>t.id}"><slot></slot></div>`}const nc=rc({collapsedIcon:sc,expandedIcon:ic}),ac=J.compose({name:`${g.prefix}-accordion-item`,template:nc,styles:oc});ac.define(g.registry);const Rs={single:"single",multi:"multi"};var lc=Object.defineProperty,cc=Object.getOwnPropertyDescriptor,_r=(o,t,e,s)=>{for(var i=s>1?void 0:s?cc(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&lc(t,e,i),i};class Vs extends x{constructor(){super(...arguments),this.expandmode=Rs.multi,this.activeItemIndex=0,this.change=()=>{this.$emit("change",this.activeid)},this.setItems=()=>{if(this.slottedAccordionItems.length===0)return;const t=Array.from(this.children);if(this.removeItemListeners(t),t.forEach(e=>$.getNotifier(e).subscribe(this,"disabled")),this.accordionItems=t.filter(e=>!e.hasAttribute("disabled")),this.accordionIds=this.getItemIds(),this.accordionItems.forEach((e,s)=>{e instanceof J&&(e.addEventListener("click",this.activeItemChange),e.addEventListener("keydown",this.handleItemKeyDown),e.addEventListener("focus",this.handleItemFocus),$.getNotifier(e).subscribe(this,"expanded"));const i=this.accordionIds[s];e.setAttribute("id",typeof i!="string"?`accordion-${s+1}`:i),this.activeid=this.accordionIds[this.activeItemIndex]}),this.isSingleExpandMode()){const e=this.findExpandedItem();this.setSingleExpandMode(e)}},this.removeItemListeners=t=>{t.forEach((e,s)=>{$.getNotifier(e).unsubscribe(this,"disabled"),$.getNotifier(e).unsubscribe(this,"expanded"),e.removeEventListener("click",this.activeItemChange),e.removeEventListener("keydown",this.handleItemKeyDown),e.removeEventListener("focus",this.handleItemFocus)})},this.activeItemChange=t=>{t.defaultPrevented||t.target!==t.currentTarget||(t.preventDefault(),this.handleExpandedChange(t.target))},this.handleExpandedChange=t=>{t instanceof J&&(this.activeid=t.getAttribute("id"),this.isSingleExpandMode()?this.setSingleExpandMode(t):(t.expanded=!t.expanded,this.activeItemIndex=this.accordionItems.indexOf(t)),this.change())},this.handleItemKeyDown=t=>{if(t.target===t.currentTarget)switch(this.accordionIds=this.getItemIds(),t.key){case Se:t.preventDefault(),this.adjust(-1);break;case xe:t.preventDefault(),this.adjust(1);break;case Io:this.activeItemIndex=0,this.focusItem();break;case So:this.activeItemIndex=this.accordionItems.length-1,this.focusItem();break}},this.handleItemFocus=t=>{if(t.target===t.currentTarget){const e=t.target,s=this.activeItemIndex=Array.from(this.accordionItems).indexOf(e);this.activeItemIndex!==s&&s!==-1&&(this.activeItemIndex=s,this.activeid=this.accordionIds[this.activeItemIndex])}}}expandmodeChanged(t,e){if(!this.$fastController.isConnected)return;const s=this.findExpandedItem();s&&(e!==Rs.single?s?.expandbutton.removeAttribute("aria-disabled"):this.setSingleExpandMode(s))}slottedAccordionItemsChanged(t,e){this.$fastController.isConnected&&this.setItems()}handleChange(t,e){e==="disabled"?this.setItems():e==="expanded"&&t.expanded&&this.isSingleExpandMode()&&this.setSingleExpandMode(t)}findExpandedItem(){return this.accordionItems.length===0?null:this.accordionItems.find(t=>t instanceof J&&t.expanded)??this.accordionItems[0]}setSingleExpandMode(t){if(this.accordionItems.length===0)return;const e=Array.from(this.accordionItems);this.activeItemIndex=e.indexOf(t),e.forEach((s,i)=>{s instanceof J&&(this.activeItemIndex===i?(s.expanded=!0,s.expandbutton.setAttribute("aria-disabled","true")):(s.expanded=!1,s.hasAttribute("disabled")||s.expandbutton.removeAttribute("aria-disabled")))})}getItemIds(){return this.slottedAccordionItems.map(t=>t.id)}isSingleExpandMode(){return this.expandmode===Rs.single}adjust(t){this.activeItemIndex=Vn(0,this.accordionItems.length-1,this.activeItemIndex+t),this.focusItem()}focusItem(){const t=this.accordionItems[this.activeItemIndex];t instanceof J&&t.expandbutton.focus()}}_r([a({attribute:"expand-mode"})],Vs.prototype,"expandmode",2),_r([v],Vs.prototype,"slottedAccordionItems",2);const dc=l`
|
|
29
|
+
${w("flex")}
|
|
30
30
|
|
|
31
|
-
:host{flex-direction:column;width:100%;contain:content}`;function
|
|
32
|
-
${
|
|
31
|
+
:host{flex-direction:column;width:100%;contain:content}`;function hc(){return f`<template><slot ${rt({property:"slottedAccordionItems",filter:le()})}></slot></template>`}const uc=hc(),pc=Vs.compose({name:`${g.prefix}-accordion`,template:uc,styles:dc});pc.define(g.registry);const gc=CSS.supports("selector(:state(g))");function d(o,t,e){if(!gc){o.shadowRoot.host.toggleAttribute(`state--${t}`,e);return}if(e=e??!o.states.has(t),e){o.states.add(t);return}o.states.delete(t)}const qo={submit:"submit",reset:"reset",button:"button"},fc={download:"download",href:"href",hreflang:"hreflang",ping:"ping",referrerpolicy:"referrerpolicy",rel:"rel",target:"target",type:"type"};var bc=Object.defineProperty,mc=Object.getOwnPropertyDescriptor,pt=(o,t,e,s)=>{for(var i=s>1?void 0:s?mc(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&bc(t,e,i),i};class zt extends x{constructor(){super(),this.isMac=navigator.userAgent.includes("Mac"),this.elementInternals=this.attachInternals(),this.internalProxyAnchor=this.createProxyElement(),this.elementInternals.role="link"}connectedCallback(){super.connectedCallback(),$.getNotifier(this).subscribe(this),Object.keys(this.$fastController.definition.attributeLookup).forEach(t=>{this.handleChange(this,t)}),this.append(this.internalProxyAnchor)}disconnectedCallback(){super.disconnectedCallback(),$.getNotifier(this).unsubscribe(this)}handleChange(t,e){if(e in fc){const s=this.$fastController.definition.attributeLookup[e]?.attribute;s&&this.handleProxyAttributeChange(s,this[e])}}clickHandler(t){if(this.href){const e=this.isMac?t.metaKey:t.ctrlKey;this.handleNavigation(e)}return!0}keydownHandler(t){if(this.href&&t.key===Ie){const e=this.isMac&&t.metaKey||t.ctrlKey;this.handleNavigation(e);return}return!0}handleNavigation(t){t?window.open(this.href,"_blank"):this.internalProxyAnchor.click()}handleProxyAttributeChange(t,e){e?this.internalProxyAnchor.setAttribute(t,e):this.internalProxyAnchor.removeAttribute(t)}createProxyElement(){const t=this.internalProxyAnchor??document.createElement("a");return t.ariaHidden="true",t.tabIndex=-1,t}}pt([a],zt.prototype,"download",2),pt([a],zt.prototype,"href",2),pt([a],zt.prototype,"hreflang",2),pt([a],zt.prototype,"ping",2),pt([a],zt.prototype,"referrerpolicy",2),pt([a],zt.prototype,"rel",2),pt([a],zt.prototype,"target",2),pt([a],zt.prototype,"type",2);class Te extends zt{constructor(){super(...arguments),this.iconOnly=!1}appearanceChanged(t,e){t&&d(this.elementInternals,`${t}`,!1),e&&d(this.elementInternals,`${e}`,!0)}shapeChanged(t,e){t&&d(this.elementInternals,`${t}`,!1),e&&d(this.elementInternals,`${e}`,!0)}sizeChanged(t,e){t&&d(this.elementInternals,`${t}`,!1),e&&d(this.elementInternals,`${e}`,!0)}iconOnlyChanged(t,e){d(this.elementInternals,"icon",!!e)}}pt([a],Te.prototype,"appearance",2),pt([a],Te.prototype,"shape",2),pt([a],Te.prototype,"size",2),pt([a({attribute:"icon-only",mode:"boolean"})],Te.prototype,"iconOnly",2),Nt(Te,Lt);const Go=l.partial`:is([state--filled-lighter], :state(filled-lighter))`,Wo=l.partial`:is([state--filled-darker], :state(filled-darker))`,Xt=l.partial`:is([state--ghost], :state(ghost))`,Mr=l.partial`:is([state--inverted], :state(inverted))`,et=l.partial`:is([state--primary], :state(primary))`,R=l.partial`:is([state--outline], :state(outline))`,Je=l.partial`:is([state--strong], :state(strong))`,C=l.partial`:is([state--subtle], :state(subtle))`,te=l.partial`:is([state--tint], :state(tint))`,to=l.partial`:is([state--underline], :state(underline))`,V=l.partial`:is([state--transparent], :state(transparent))`,eo=l.partial`:is([state--circular], :state(circular))`,Ut=l.partial`:is([state--rounded], :state(rounded))`,Xo=l.partial`:is([state--square], :state(square))`,oo=l.partial`:is([state--tiny], :state(tiny))`,so=l.partial`:is([state--extra-small], :state(extra-small))`,ot=l.partial`:is([state--small], :state(small))`,E=l.partial`:is([state--large], :state(large))`,js=l.partial`:is([state--extra-large], :state(extra-large))`,$c=l.partial`:is([state--huge], :state(huge))`,Er=l.partial`:is([state--align-start], :state(align-start))`,Lr=l.partial`:is([state--align-end], :state(align-end))`,qs=l.partial`:is([state--inset], :state(inset))`,ze=l.partial`:is([state--icon], :state(icon))`,T=l.partial`:is([state--pressed], :state(pressed))`,io=l.partial`:is([state--brand], :state(brand))`,Hr=l.partial`:is([state--error], :state(error))`,Uo=l.partial`:is([state--danger], :state(danger))`,Ko=l.partial`:is([state--important], :state(important))`,Yo=l.partial`:is([state--informative], :state(informative))`,Qo=l.partial`:is([state--severe], :state(severe))`,Fe=l.partial`:is([state--success], :state(success))`,Oe=l.partial`:is([state--warning], :state(warning))`,gt=l.partial`:is([state--vertical], :state(vertical))`;l.partial`:is([state--horizontal], :state(horizontal))`;const Dr=l`
|
|
32
|
+
${w("inline-flex")}
|
|
33
33
|
|
|
34
|
-
:host{--icon-spacing:${ue};position:relative;contain:layout style;vertical-align:middle;align-items:center;box-sizing:border-box;justify-content:center;text-align:center;text-decoration-line:none;margin:0;min-height:32px;outline-style:none;background-color:${_};color:${A};border:${
|
|
35
|
-
${
|
|
34
|
+
:host{--icon-spacing:${ue};position:relative;contain:layout style;vertical-align:middle;align-items:center;box-sizing:border-box;justify-content:center;text-align:center;text-decoration-line:none;margin:0;min-height:32px;outline-style:none;background-color:${_};color:${A};border:${X} solid ${Pe};padding:0 ${Jt};min-width:96px;border-radius:${F};font-size:${P};font-family:${m};font-weight:${D};line-height:${M};transition-duration:${Ls};transition-property:background,border,color;transition-timing-function:${Ds};cursor:pointer;user-select:none}.content{display:inherit}:host(:hover){background-color:${Ss};color:${Ui};border-color:${Mo}}:host(:hover:active){background-color:${Ji};border-color:${Fs};color:${Yn};outline-style:none}:host(:focus-visible){border-color:${at};outline:${de} solid ${at};box-shadow:${Ro},0 0 0 2px ${Bt}}@media screen and (prefers-reduced-motion:reduce){transition-duration:0.01ms}::slotted(svg){font-size:20px;height:20px;width:20px;fill:currentColor}:is([slot='start'],::slotted([slot='start'])){margin-inline-end:var(--icon-spacing)}:is([slot='end'],::slotted([slot='end'])){margin-inline-start:var(--icon-spacing)}:host(${ze}){min-width:32px;max-width:32px}:host(${ot}){--icon-spacing:${Gt};min-height:24px;min-width:64px;padding:0 ${Tt};border-radius:${$t};font-size:${W};line-height:${dt};font-weight:${B}}:host(${ot}${ze}){min-width:24px;max-width:24px}:host(${E}){min-height:40px;border-radius:${gr};padding:0 ${Xl};font-size:${ct};line-height:${vt}}:host(${E}${ze}){min-width:40px;max-width:40px}:host(${E}) ::slotted(svg){font-size:24px;height:24px;width:24px}:host(:is(${eo},${eo}:focus-visible)){border-radius:${lt}}:host(:is(${Xo},${Xo}:focus-visible)){border-radius:${Es}}:host(${et}){background-color:${zs};color:${Vt};border-color:transparent}:host(${et}:hover){background-color:${or}}:host(${et}:is(:hover,:hover:active)){border-color:transparent;color:${Vt}}:host(${et}:hover:active){background-color:${sr}}:host(${et}:focus-visible){border-color:${Vt};box-shadow:${Sr},0 0 0 2px ${Bt}}:host(${R}){background-color:${mt}}:host(${R}:hover){background-color:${Ps}}:host(${R}:hover:active){background-color:${Bs}}:host(${C}){background-color:${fa};color:${Rt};border-color:transparent}:host(${C}:hover){background-color:${Is};color:${Bo};border-color:transparent}:host(${C}:hover:active){background-color:${_o};color:${To};border-color:transparent}:host(${C}:hover) ::slotted(svg){fill:${zo}}:host(${C}:hover:active) ::slotted(svg){fill:${Fo}}:host(${V}){background-color:${mt};color:${Rt}}:host(${V}:hover){background-color:${Ps};color:${zo}}:host(${V}:hover:active){background-color:${Bs};color:${Fo}}:host(:is(${V},${V}:is(:hover,:active))){border-color:transparent}`,Zo=l`
|
|
35
|
+
${Dr}
|
|
36
36
|
|
|
37
|
-
:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable])),:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable]):hover),:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable]):hover:active){background-color:${
|
|
38
|
-
:host{background:ButtonFace;color:ButtonText}:host(:is(:hover,:focus-visible)){border-color:Highlight}`)),
|
|
39
|
-
${
|
|
37
|
+
:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable])),:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable]):hover),:host(:is(:disabled,[disabled-focusable],[appearance]:disabled,[appearance][disabled-focusable]):hover:active){background-color:${Re};border-color:${qt};color:${k};cursor:not-allowed}:host(${et}:is(:disabled,[disabled-focusable])),:host(${et}:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent}:host(${R}:is(:disabled,[disabled-focusable])),:host(${R}:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${mt}}:host(${C}:is(:disabled,[disabled-focusable])),:host(${C}:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){background-color:${mt};border-color:transparent}:host(${V}:is(:disabled,[disabled-focusable])),:host(${V}:is(:disabled,[disabled-focusable]):is(:hover,:hover:active)){border-color:transparent;background-color:${mt}}`.withBehaviors(Z(l`
|
|
38
|
+
:host{background:ButtonFace;color:ButtonText}:host(:is(:hover,:focus-visible)){border-color:Highlight}`)),vc=l`
|
|
39
|
+
${Dr}
|
|
40
40
|
|
|
41
41
|
::slotted(a){position:absolute;inset:0}`.withBehaviors(Z(l`
|
|
42
|
-
:host{border-color:LinkText;color:LinkText}`));function
|
|
43
|
-
${
|
|
44
|
-
${
|
|
42
|
+
:host{border-color:LinkText;color:LinkText}`));function yc(o={}){return f`<template tabindex="0" @click="${(t,e)=>t.clickHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}">${Dt(o)}<span class="content" part="content"><slot></slot></span>${Ht(o)}</template>`}const kc=yc(),xc=Te.compose({name:`${g.prefix}-anchor-button`,template:kc,styles:vc});xc.define(g.registry);const wc=/[\(\[\{][^\)\]\}]*[\)\]\}]/g,Cc=/[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g,Sc=/^\d+[\d\s]*(:?ext|x|)\s*\d+$/i,Ic=/\s+/g,Pc=/[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\u1100-\u11FF\u3130-\u318F\uA960-\uA97F\uAC00-\uD7AF\uD7B0-\uD7FF\u3040-\u309F\u30A0-\u30FF\u3400-\u4DBF\u4E00-\u9FFF\uF900-\uFAFF]|[\uD840-\uD869][\uDC00-\uDED6]/;function Bc(o,t,e){let s="";const i=o.split(" ");return i.length!==0&&(s+=i[0].charAt(0).toUpperCase()),e||(i.length===2?s+=i[1].charAt(0).toUpperCase():i.length===3&&(s+=i[2].charAt(0).toUpperCase())),t&&s.length>1?s.charAt(1)+s.charAt(0):s}function Tc(o){return o=o.replace(wc,""),o=o.replace(Cc,""),o=o.replace(Ic," "),o=o.trim(),o}function zc(o,t,e){return!o||(o=Tc(o),Pc.test(o)||!e?.allowPhoneInitials&&Sc.test(o))?"":Bc(o,t,e?.firstInitialOnly)}const Nr={darkRed:"dark-red",cranberry:"cranberry",red:"red",pumpkin:"pumpkin",peach:"peach",marigold:"marigold",gold:"gold",brass:"brass",brown:"brown",forest:"forest",seafoam:"seafoam",darkGreen:"dark-green",lightTeal:"light-teal",teal:"teal",steel:"steel",blue:"blue",royalBlue:"royal-blue",cornflower:"cornflower",navy:"navy",lavender:"lavender",purple:"purple",grape:"grape",lilac:"lilac",pink:"pink",magenta:"magenta",plum:"plum",beige:"beige",mink:"mink",platinum:"platinum",anchor:"anchor"},Rr={neutral:"neutral",brand:"brand",colorful:"colorful",...Nr};var Fc=Object.defineProperty,Oc=Object.getOwnPropertyDescriptor,ee=(o,t,e,s)=>{for(var i=s>1?void 0:s?Oc(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Fc(t,e,i),i};const Ft=class ti extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="img"}connectedCallback(){super.connectedCallback(),$.getNotifier(this).subscribe(this),this.generateColor()}disconnectedCallback(){super.disconnectedCallback(),$.getNotifier(this).unsubscribe(this)}handleChange(t,e){switch(e){case"color":case"colorId":this.generateColor();break}}generateColor(){const t=this.color===Rr.colorful,e=this.currentColor;d(this.elementInternals,`${e}`,!1),this.currentColor=t&&this.colorId?this.colorId:t?ti.colors[_c(this.name??"")%ti.colors.length]:this.color??Rr.neutral,d(this.elementInternals,`${this.currentColor}`,!0)}generateInitials(){if(!this.name&&!this.initials)return;const t=this.size??32;return this.initials??zc(this.name,window.getComputedStyle(this).direction==="rtl",{firstInitialOnly:t<=16})}};Ft.colors=Object.values(Nr),ee([a],Ft.prototype,"name",2),ee([a],Ft.prototype,"initials",2),ee([a({converter:nt})],Ft.prototype,"size",2),ee([a],Ft.prototype,"shape",2),ee([a],Ft.prototype,"active",2),ee([a],Ft.prototype,"appearance",2),ee([a],Ft.prototype,"color",2),ee([a({attribute:"color-id"})],Ft.prototype,"colorId",2);let Ac=Ft;const _c=o=>{let t=0;for(let e=o.length-1;e>=0;e--){const s=o.charCodeAt(e),i=e%8;t^=(s<<i)+(s>>8-i)}return t},oe={fastOutSlowInMax:Ar,fastOutSlowInMid:Ze,fastOutSlowInMin:tc,slowOutFastInMax:Zl,slowOutFastInMid:Qe,slowOutFastInMin:Jl,fastEase:ec,normalEase:Ds,nullEasing:Ns},Mc=l`
|
|
43
|
+
${w("inline-flex")} :host{position:relative;align-items:center;justify-content:center;flex-shrink:0;width:32px;height:32px;font-family:${m};font-weight:${D};font-size:${P};border-radius:${lt};color:${tt};background-color:${Ao};contain:layout style}.default-icon,::slotted(svg){width:20px;height:20px;font-size:20px}::slotted(img){box-sizing:border-box;width:100%;height:100%;border-radius:${lt}}::slotted([slot='badge']){position:absolute;bottom:0;right:0;box-shadow:0 0 0 ${X}) ${_}}:host([size='64']) ::slotted([slot='badge']),:host([size='72']) ::slotted([slot='badge']),:host([size='96']) ::slotted([slot='badge']),:host([size='120']) ::slotted([slot='badge']),:host([size='128']) ::slotted([slot='badge']){box-shadow:0 0 0 ${de}) ${_}}:host([size='16']),:host([size='20']),:host([size='24']){font-size:${Ue};font-weight:${B}}:host([size='16']){width:16px;height:16px}:host([size='20']){width:20px;height:20px}:host([size='24']){width:24px;height:24px}:host([size='16']) .default-icon,:host([size='16']) ::slotted(svg){width:12px;height:12px;font-size:12px}:host([size='20']) .default-icon,:host([size='24']) .default-icon,:host([size='20']) ::slotted(svg),:host([size='24']) ::slotted(svg){width:16px;height:16px;font-size:16px}:host([size='28']){width:28px;height:28px;font-size:${W}}:host([size='36']){width:36px;height:36px}:host([size='40']){width:40px;height:40px}:host([size='48']),:host([size='56']){font-size:${ct}}:host([size='48']){width:48px;height:48px}:host([size='48']) .default-icon,:host([size='48']) ::slotted(svg){width:24px;height:24px;font-size:24px}:host([size='56']){width:56px;height:56px}:host([size='56']) .default-icon,:host([size='56']) ::slotted(svg){width:28px;height:28px;font-size:28px}:host([size='64']),:host([size='72']),:host([size='96']){font-size:${Be}}:host([size='64']) .default-icon,:host([size='72']) .default-icon,:host([size='64']) ::slotted(svg),:host([size='72']) ::slotted(svg){width:32px;height:32px;font-size:32px}:host([size='64']){width:64px;height:64px}:host([size='72']){width:72px;height:72px}:host([size='96']){width:96px;height:96px}:host([size='96']) .default-icon,:host([size='120']) .default-icon,:host([size='128']) .default-icon,:host([size='96']) ::slotted(svg),:host([size='120']) ::slotted(svg),:host([size='128']) ::slotted(svg){width:48px;height:48px;font-size:48px}:host([size='120']),:host([size='128']){font-size:${Lo}}:host([size='120']){width:120px;height:120px}:host([size='128']){width:128px;height:128px}:host([shape='square']){border-radius:${F}}:host([shape='square'][size='20']),:host([shape='square'][size='24']){border-radius:${$t}}:host([shape='square'][size='56']),:host([shape='square'][size='64']),:host([shape='square'][size='72']){border-radius:${gr}}:host([shape='square'][size='96']),:host([shape='square'][size='120']),:host([shape='square'][size='128']){border-radius:${fr}}:host(:is([state--brand],:state(brand))){color:${Zi};background-color:${ir}}:host(:is([state--dark-red],:state(dark-red))){color:${sl};background-color:${ol}}:host(:is([state--cranberry],:state(cranberry))){color:${Ja};background-color:${Za}}:host(:is([state--red],:state(red))){color:${Ia};background-color:${wa}}:host(:is([state--pumpkin],:state(pumpkin))){color:${Fl};background-color:${zl}}:host(:is([state--peach],:state(peach))){color:${wl};background-color:${xl}}:host(:is([state--marigold],:state(marigold))){color:${Da};background-color:${Ha}}:host(:is([state--gold],:state(gold))){color:${al};background-color:${nl}}:host(:is([state--brass],:state(brass))){color:${Xa};background-color:${Wa}}:host(:is([state--brown],:state(brown))){color:${Ka};background-color:${Ua}}:host(:is([state--forest],:state(forest))){color:${rl};background-color:${il}}:host(:is([state--seafoam],:state(seafoam))){color:${Ll};background-color:${El}}:host(:is([state--dark-green],:state(dark-green))){color:${el};background-color:${tl}}:host(:is([state--light-teal],:state(light-teal))){color:${pl};background-color:${ul}}:host(:is([state--teal],:state(teal))){color:${Rl};background-color:${Nl}}:host(:is([state--steel],:state(steel))){color:${Dl};background-color:${Hl}}:host(:is([state--blue],:state(blue))){color:${Ga};background-color:${qa}}:host(:is([state--royal-blue],:state(royal-blue))){color:${Ml};background-color:${_l}}:host(:is([state--cornflower],:state(cornflower))){color:${Qa};background-color:${Ya}}:host(:is([state--navy],:state(navy))){color:${kl};background-color:${yl}}:host(:is([state--lavender],:state(lavender))){color:${hl};background-color:${dl}}:host(:is([state--purple],:state(purple))){color:${Al};background-color:${Ol}}:host(:is([state--grape],:state(grape))){color:${cl};background-color:${ll}}:host(:is([state--lilac],:state(lilac))){color:${fl};background-color:${gl}}:host(:is([state--pink],:state(pink))){color:${Sl};background-color:${Cl}}:host(:is([state--magenta],:state(magenta))){color:${ml};background-color:${bl}}:host(:is([state--plum],:state(plum))){color:${Tl};background-color:${Bl}}:host(:is([state--beige],:state(beige))){color:${ja};background-color:${Va}}:host(:is([state--mink],:state(mink))){color:${vl};background-color:${$l}}:host(:is([state--platinum],:state(platinum))){color:${Pl};background-color:${Il}}:host(:is([state--anchor],:state(anchor))){color:${Ra};background-color:${Na}}:host([active]){transform:perspective(1px);transition-property:transform,opacity;transition-duration:${jo},${Ls};transition-delay:${oe.fastEase},${oe.nullEasing}}:host([active])::before{content:'';position:absolute;top:0;left:0;bottom:0;right:0;border-radius:inherit;transition-property:margin,opacity;transition-duration:${jo}),${Or};transition-delay:${oe.fastEase}),${oe.nullEasing})}:host([active])::before{box-shadow:${Gl};border-style:solid;border-color:${ir}}:host([active][appearance='shadow'])::before{border-style:none;border-color:none}:host([active]:not([appearance='shadow']))::before{margin:calc(-2 * ${de});border-width:${de}}:host([size='56'][active]:not([appearance='shadow']))::before,:host([size='64'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${Zt});border-width:${Zt}}:host([size='72'][active]:not([appearance='shadow']))::before,:host([size='96'][active]:not([appearance='shadow']))::before,:host([size='120'][active]:not([appearance='shadow']))::before,:host([size='128'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${Br});border-width:${Br}}:host([size='20'][active][appearance])::before,:host([size='24'][active][appearance])::before,:host([size='28'][active][appearance])::before{box-shadow:${Ro}}:host([size='56'][active][appearance])::before,:host([size='64'][active][appearance])::before{box-shadow:${Ir}}:host([size='72'][active][appearance])::before,:host([size='96'][active][appearance])::before,:host([size='120'][active][appearance])::before,:host([size='128'][active][appearance])::before{box-shadow:${Wl}}:host([active][appearance='ring'])::before{box-shadow:none}:host([active='inactive']){opacity:0.8;transform:scale(0.875);transition-property:transform,opacity;transition-duration:${jo},${Ls};transition-delay:${oe.fastOutSlowInMin},${oe.nullEasing}}:host([active='inactive'])::before{margin:0;opacity:0;transition-property:margin,opacity;transition-duration:${jo},${Or};transition-delay:${oe.fastOutSlowInMin},${oe.nullEasing}}@media screen and (prefers-reduced-motion:reduce){:host([active]){transition-duration:0.01ms}:host([active])::before{transition-duration:0.01ms;transition-delay:0.01ms}}`,Ec=f`<svg width="1em" height="1em" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" class="default-icon" fill="currentcolor" aria-hidden="true"><path d="M10 2a4 4 0 100 8 4 4 0 000-8zM7 6a3 3 0 116 0 3 3 0 01-6 0zm-2 5a2 2 0 00-2 2c0 1.7.83 2.97 2.13 3.8A9.14 9.14 0 0010 18c1.85 0 3.58-.39 4.87-1.2A4.35 4.35 0 0017 13a2 2 0 00-2-2H5zm-1 2a1 1 0 011-1h10a1 1 0 011 1c0 1.3-.62 2.28-1.67 2.95A8.16 8.16 0 0110 17a8.16 8.16 0 01-4.33-1.05A3.36 3.36 0 014 13z"></path></svg>`;function Lc(){return f`<slot>${o=>o.name||o.initials?o.generateInitials():Ec}</slot><slot name="badge"></slot>`}const Hc=Lc(),Dc=Ac.compose({name:`${g.prefix}-avatar`,template:Hc,styles:Mc});Dc.define(g.registry);const Nc={filled:"filled",ghost:"ghost",outline:"outline",tint:"tint"},Rc={brand:"brand",danger:"danger",important:"important",informative:"informative",severe:"severe",subtle:"subtle",success:"success",warning:"warning"};var Vc=Object.defineProperty,jc=Object.getOwnPropertyDescriptor,Jo=(o,t,e,s)=>{for(var i=s>1?void 0:s?jc(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Vc(t,e,i),i};class Ae extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.appearance=Nc.filled,this.color=Rc.brand}appearanceChanged(t,e){t&&d(this.elementInternals,`${t}`,!1),e&&d(this.elementInternals,`${e}`,!0)}colorChanged(t,e){t&&d(this.elementInternals,`${t}`,!1),e&&d(this.elementInternals,`${e}`,!0)}shapeChanged(t,e){t&&d(this.elementInternals,`${t}`,!1),e&&d(this.elementInternals,`${e}`,!0)}sizeChanged(t,e){t&&d(this.elementInternals,`${t}`,!1),e&&d(this.elementInternals,`${e}`,!0)}}Jo([a],Ae.prototype,"appearance",2),Jo([a],Ae.prototype,"color",2),Jo([a],Ae.prototype,"shape",2),Jo([a],Ae.prototype,"size",2),Nt(Ae,Lt);const ts=he,Vr=l.partial`
|
|
44
|
+
${w("inline-flex")} :host {
|
|
45
45
|
position: relative;
|
|
46
46
|
box-sizing: border-box;
|
|
47
47
|
align-items: center;
|
|
48
48
|
justify-content: center;
|
|
49
|
-
font-family: ${
|
|
50
|
-
font-weight: ${
|
|
49
|
+
font-family: ${m};
|
|
50
|
+
font-weight: ${D};
|
|
51
51
|
font-size: ${W};
|
|
52
|
-
line-height: ${
|
|
52
|
+
line-height: ${dt};
|
|
53
53
|
min-width: 20px;
|
|
54
54
|
height: 20px;
|
|
55
|
-
padding-inline: calc(${Gt} + ${
|
|
56
|
-
border-radius: ${
|
|
57
|
-
border-color: ${
|
|
58
|
-
background-color: ${
|
|
55
|
+
padding-inline: calc(${Gt} + ${ts});
|
|
56
|
+
border-radius: ${lt};
|
|
57
|
+
border-color: ${at};
|
|
58
|
+
background-color: ${zs};
|
|
59
59
|
color: ${Vt};
|
|
60
60
|
contain: content;
|
|
61
61
|
}
|
|
@@ -64,7 +64,7 @@ const f=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
64
64
|
font-size: 12px;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
:host(:not(${
|
|
67
|
+
:host(:not(${Xt}))::after {
|
|
68
68
|
position: absolute;
|
|
69
69
|
content: '';
|
|
70
70
|
top: 0;
|
|
@@ -72,12 +72,12 @@ const f=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
72
72
|
bottom: 0;
|
|
73
73
|
right: 0;
|
|
74
74
|
border-style: solid;
|
|
75
|
-
border-width: ${
|
|
75
|
+
border-width: ${X};
|
|
76
76
|
border-color: inherit;
|
|
77
77
|
border-radius: inherit;
|
|
78
78
|
}
|
|
79
|
-
`,
|
|
80
|
-
:host(${
|
|
79
|
+
`,jr=l.partial`
|
|
80
|
+
:host(${oo}) {
|
|
81
81
|
width: 6px;
|
|
82
82
|
height: 6px;
|
|
83
83
|
font-size: 4px;
|
|
@@ -85,10 +85,10 @@ const f=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
85
85
|
padding-inline: 0;
|
|
86
86
|
min-width: unset;
|
|
87
87
|
}
|
|
88
|
-
:host(${
|
|
88
|
+
:host(${oo}) ::slotted(svg) {
|
|
89
89
|
font-size: 6px;
|
|
90
90
|
}
|
|
91
|
-
:host(${
|
|
91
|
+
:host(${so}) {
|
|
92
92
|
width: 10px;
|
|
93
93
|
height: 10px;
|
|
94
94
|
font-size: 6px;
|
|
@@ -96,15 +96,15 @@ const f=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
96
96
|
padding-inline: 0;
|
|
97
97
|
min-width: unset;
|
|
98
98
|
}
|
|
99
|
-
:host(${
|
|
99
|
+
:host(${so}) ::slotted(svg) {
|
|
100
100
|
font-size: 10px;
|
|
101
101
|
}
|
|
102
102
|
:host(${ot}) {
|
|
103
103
|
min-width: 16px;
|
|
104
104
|
height: 16px;
|
|
105
|
-
font-size: ${
|
|
106
|
-
line-height: ${
|
|
107
|
-
padding-inline: calc(${he} + ${
|
|
105
|
+
font-size: ${Ue};
|
|
106
|
+
line-height: ${Do};
|
|
107
|
+
padding-inline: calc(${he} + ${ts});
|
|
108
108
|
}
|
|
109
109
|
:host(${ot}) ::slotted(svg) {
|
|
110
110
|
font-size: 12px;
|
|
@@ -113,272 +113,272 @@ const f=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
113
113
|
min-width: 24px;
|
|
114
114
|
height: 24px;
|
|
115
115
|
font-size: ${W};
|
|
116
|
-
line-height: ${
|
|
117
|
-
padding-inline: calc(${Gt} + ${
|
|
116
|
+
line-height: ${dt};
|
|
117
|
+
padding-inline: calc(${Gt} + ${ts});
|
|
118
118
|
}
|
|
119
119
|
:host(${E}) ::slotted(svg) {
|
|
120
120
|
font-size: 16px;
|
|
121
121
|
}
|
|
122
|
-
:host(${
|
|
122
|
+
:host(${js}) {
|
|
123
123
|
min-width: 32px;
|
|
124
124
|
height: 32px;
|
|
125
125
|
font-size: ${W};
|
|
126
|
-
line-height: ${
|
|
127
|
-
padding-inline: calc(${ue} + ${
|
|
126
|
+
line-height: ${dt};
|
|
127
|
+
padding-inline: calc(${ue} + ${ts});
|
|
128
128
|
}
|
|
129
|
-
:host(${
|
|
129
|
+
:host(${js}) ::slotted(svg) {
|
|
130
130
|
font-size: 20px;
|
|
131
131
|
}
|
|
132
|
-
`,
|
|
133
|
-
:host(${
|
|
134
|
-
background-color: ${
|
|
132
|
+
`,qr=l.partial`
|
|
133
|
+
:host(${Uo}) {
|
|
134
|
+
background-color: ${lr};
|
|
135
135
|
color: ${Vt};
|
|
136
136
|
}
|
|
137
137
|
|
|
138
|
-
:host(${
|
|
138
|
+
:host(${Ko}) {
|
|
139
139
|
background-color: ${A};
|
|
140
140
|
color: ${_};
|
|
141
141
|
}
|
|
142
142
|
|
|
143
|
-
:host(${
|
|
144
|
-
background-color: ${
|
|
143
|
+
:host(${Yo}) {
|
|
144
|
+
background-color: ${pa};
|
|
145
145
|
color: ${tt};
|
|
146
146
|
}
|
|
147
147
|
|
|
148
|
-
:host(${
|
|
149
|
-
background-color: ${
|
|
148
|
+
:host(${Qo}) {
|
|
149
|
+
background-color: ${ur};
|
|
150
150
|
color: ${Vt};
|
|
151
151
|
}
|
|
152
152
|
|
|
153
|
-
:host(${
|
|
153
|
+
:host(${C}) {
|
|
154
154
|
background-color: ${_};
|
|
155
155
|
color: ${A};
|
|
156
156
|
}
|
|
157
157
|
|
|
158
|
-
:host(${
|
|
159
|
-
background-color: ${
|
|
158
|
+
:host(${Fe}) {
|
|
159
|
+
background-color: ${hr};
|
|
160
160
|
color: ${Vt};
|
|
161
161
|
}
|
|
162
162
|
|
|
163
|
-
:host(${
|
|
164
|
-
background-color: ${
|
|
165
|
-
color: ${
|
|
163
|
+
:host(${Oe}) {
|
|
164
|
+
background-color: ${Ea};
|
|
165
|
+
color: ${ha};
|
|
166
166
|
}
|
|
167
|
-
`,
|
|
168
|
-
:host(${
|
|
169
|
-
color: ${
|
|
167
|
+
`,Gr=l.partial`
|
|
168
|
+
:host(${Xt}) {
|
|
169
|
+
color: ${Cs};
|
|
170
170
|
background-color: initial;
|
|
171
171
|
}
|
|
172
172
|
|
|
173
|
-
:host(${
|
|
174
|
-
color: ${
|
|
173
|
+
:host(${Xt}${Uo}) {
|
|
174
|
+
color: ${dr};
|
|
175
175
|
}
|
|
176
176
|
|
|
177
|
-
:host(${
|
|
177
|
+
:host(${Xt}${Ko}) {
|
|
178
178
|
color: ${A};
|
|
179
179
|
}
|
|
180
180
|
|
|
181
|
-
:host(${
|
|
181
|
+
:host(${Xt}${Yo}) {
|
|
182
182
|
color: ${tt};
|
|
183
183
|
}
|
|
184
184
|
|
|
185
|
-
:host(${
|
|
186
|
-
color: ${
|
|
185
|
+
:host(${Xt}${Qo}) {
|
|
186
|
+
color: ${pr};
|
|
187
187
|
}
|
|
188
188
|
|
|
189
|
-
:host(${
|
|
190
|
-
color: ${
|
|
189
|
+
:host(${Xt}${C}) {
|
|
190
|
+
color: ${Oo};
|
|
191
191
|
}
|
|
192
192
|
|
|
193
|
-
:host(${
|
|
194
|
-
color: ${
|
|
193
|
+
:host(${Xt}${Fe}) {
|
|
194
|
+
color: ${Fa};
|
|
195
195
|
}
|
|
196
196
|
|
|
197
|
-
:host(${
|
|
198
|
-
color: ${
|
|
197
|
+
:host(${Xt}${Oe}) {
|
|
198
|
+
color: ${Ms};
|
|
199
199
|
}
|
|
200
|
-
`,
|
|
200
|
+
`,qc=l.partial`
|
|
201
201
|
:host(${R}) {
|
|
202
202
|
border-color: currentColor;
|
|
203
|
-
color: ${
|
|
203
|
+
color: ${Cs};
|
|
204
204
|
background-color: initial;
|
|
205
205
|
}
|
|
206
206
|
|
|
207
|
-
:host(${R}${
|
|
208
|
-
color: ${
|
|
207
|
+
:host(${R}${Uo}) {
|
|
208
|
+
color: ${dr};
|
|
209
209
|
}
|
|
210
210
|
|
|
211
|
-
:host(${R}${
|
|
211
|
+
:host(${R}${Ko}) {
|
|
212
212
|
color: ${tt};
|
|
213
213
|
border-color: ${jt};
|
|
214
214
|
}
|
|
215
215
|
|
|
216
|
-
:host(${R}${
|
|
216
|
+
:host(${R}${Yo}) {
|
|
217
217
|
color: ${tt};
|
|
218
|
-
border-color: ${
|
|
218
|
+
border-color: ${Xe};
|
|
219
219
|
}
|
|
220
220
|
|
|
221
|
-
:host(${R}${
|
|
222
|
-
color: ${
|
|
221
|
+
:host(${R}${Qo}) {
|
|
222
|
+
color: ${pr};
|
|
223
223
|
}
|
|
224
224
|
|
|
225
|
-
:host(${R}${
|
|
226
|
-
color: ${
|
|
225
|
+
:host(${R}${C}) {
|
|
226
|
+
color: ${Zi};
|
|
227
227
|
}
|
|
228
228
|
|
|
229
|
-
:host(${R}${
|
|
230
|
-
color: ${
|
|
229
|
+
:host(${R}${Fe}) {
|
|
230
|
+
color: ${za};
|
|
231
231
|
}
|
|
232
232
|
|
|
233
|
-
:host(${R}${
|
|
234
|
-
color: ${
|
|
233
|
+
:host(${R}${Oe}) {
|
|
234
|
+
color: ${Ms};
|
|
235
235
|
}
|
|
236
|
-
`,
|
|
236
|
+
`,Gc=l.partial`
|
|
237
237
|
:host(${te}) {
|
|
238
|
-
background-color: ${
|
|
239
|
-
color: ${
|
|
240
|
-
border-color: ${
|
|
238
|
+
background-color: ${va};
|
|
239
|
+
color: ${da};
|
|
240
|
+
border-color: ${nr};
|
|
241
241
|
}
|
|
242
242
|
|
|
243
|
-
:host(${te}${
|
|
244
|
-
background-color: ${
|
|
245
|
-
color: ${
|
|
246
|
-
border-color: ${
|
|
243
|
+
:host(${te}${Uo}) {
|
|
244
|
+
background-color: ${xa};
|
|
245
|
+
color: ${cr};
|
|
246
|
+
border-color: ${Ca};
|
|
247
247
|
}
|
|
248
248
|
|
|
249
|
-
:host(${te}${
|
|
249
|
+
:host(${te}${Ko}) {
|
|
250
250
|
background-color: ${tt};
|
|
251
251
|
color: ${_};
|
|
252
|
-
border-color: ${
|
|
252
|
+
border-color: ${at};
|
|
253
253
|
}
|
|
254
254
|
|
|
255
|
-
:host(${te}${
|
|
256
|
-
background-color: ${
|
|
255
|
+
:host(${te}${Yo}) {
|
|
256
|
+
background-color: ${ua};
|
|
257
257
|
color: ${tt};
|
|
258
|
-
border-color: ${
|
|
258
|
+
border-color: ${Xe};
|
|
259
259
|
}
|
|
260
260
|
|
|
261
|
-
:host(${te}${
|
|
262
|
-
background-color: ${
|
|
263
|
-
color: ${
|
|
264
|
-
border-color: ${
|
|
261
|
+
:host(${te}${Qo}) {
|
|
262
|
+
background-color: ${Oa};
|
|
263
|
+
color: ${_a};
|
|
264
|
+
border-color: ${Aa};
|
|
265
265
|
}
|
|
266
266
|
|
|
267
|
-
:host(${te}${
|
|
267
|
+
:host(${te}${C}) {
|
|
268
268
|
background-color: ${_};
|
|
269
269
|
color: ${tt};
|
|
270
|
-
border-color: ${
|
|
270
|
+
border-color: ${Xe};
|
|
271
271
|
}
|
|
272
272
|
|
|
273
|
-
:host(${te}${
|
|
274
|
-
background-color: ${
|
|
275
|
-
color: ${
|
|
276
|
-
border-color: ${
|
|
273
|
+
:host(${te}${Fe}) {
|
|
274
|
+
background-color: ${Pa};
|
|
275
|
+
color: ${Ta};
|
|
276
|
+
border-color: ${Ba};
|
|
277
277
|
}
|
|
278
278
|
|
|
279
|
-
:host(${te}${
|
|
280
|
-
background-color: ${
|
|
281
|
-
color: ${
|
|
282
|
-
border-color: ${
|
|
279
|
+
:host(${te}${Oe}) {
|
|
280
|
+
background-color: ${Ma};
|
|
281
|
+
color: ${Ms};
|
|
282
|
+
border-color: ${La};
|
|
283
283
|
}
|
|
284
284
|
`;l.partial`
|
|
285
|
-
font-family: ${
|
|
286
|
-
font-size: ${
|
|
285
|
+
font-family: ${m};
|
|
286
|
+
font-size: ${P};
|
|
287
287
|
line-height: ${M};
|
|
288
|
-
font-weight: ${
|
|
288
|
+
font-weight: ${B};
|
|
289
289
|
`,l.partial`
|
|
290
|
-
font-family: ${
|
|
291
|
-
font-size: ${
|
|
290
|
+
font-family: ${m};
|
|
291
|
+
font-size: ${P};
|
|
292
292
|
line-height: ${M};
|
|
293
|
-
font-weight: ${
|
|
293
|
+
font-weight: ${D};
|
|
294
294
|
`,l.partial`
|
|
295
|
-
font-family: ${
|
|
296
|
-
font-size: ${
|
|
295
|
+
font-family: ${m};
|
|
296
|
+
font-size: ${P};
|
|
297
297
|
line-height: ${M};
|
|
298
|
-
font-weight: ${
|
|
298
|
+
font-weight: ${Ho};
|
|
299
299
|
`,l.partial`
|
|
300
|
-
font-family: ${
|
|
301
|
-
font-size: ${
|
|
300
|
+
font-family: ${m};
|
|
301
|
+
font-size: ${ct};
|
|
302
302
|
line-height: ${vt};
|
|
303
|
-
font-weight: ${
|
|
303
|
+
font-weight: ${B};
|
|
304
304
|
`,l.partial`
|
|
305
|
-
font-family: ${
|
|
305
|
+
font-family: ${m};
|
|
306
306
|
font-size: ${W};
|
|
307
|
-
line-height: ${
|
|
308
|
-
font-weight: ${
|
|
307
|
+
line-height: ${dt};
|
|
308
|
+
font-weight: ${B};
|
|
309
309
|
`,l.partial`
|
|
310
|
-
font-family: ${
|
|
310
|
+
font-family: ${m};
|
|
311
311
|
font-size: ${W};
|
|
312
|
-
line-height: ${
|
|
313
|
-
font-weight: ${
|
|
312
|
+
line-height: ${dt};
|
|
313
|
+
font-weight: ${D};
|
|
314
314
|
`,l.partial`
|
|
315
|
-
font-family: ${
|
|
315
|
+
font-family: ${m};
|
|
316
316
|
font-size: ${W};
|
|
317
|
-
line-height: ${
|
|
318
|
-
font-weight: ${
|
|
317
|
+
line-height: ${dt};
|
|
318
|
+
font-weight: ${Ho};
|
|
319
319
|
`,l.partial`
|
|
320
|
-
font-family: ${
|
|
321
|
-
font-size: ${
|
|
322
|
-
line-height: ${
|
|
323
|
-
font-weight: ${
|
|
320
|
+
font-family: ${m};
|
|
321
|
+
font-size: ${Ue};
|
|
322
|
+
line-height: ${Do};
|
|
323
|
+
font-weight: ${B};
|
|
324
324
|
`,l.partial`
|
|
325
|
-
font-family: ${
|
|
326
|
-
font-size: ${
|
|
327
|
-
line-height: ${
|
|
328
|
-
font-weight: ${
|
|
325
|
+
font-family: ${m};
|
|
326
|
+
font-size: ${Ue};
|
|
327
|
+
line-height: ${Do};
|
|
328
|
+
font-weight: ${D};
|
|
329
329
|
`,l.partial`
|
|
330
|
-
font-family: ${
|
|
331
|
-
font-size: ${
|
|
332
|
-
line-height: ${
|
|
333
|
-
font-weight: ${
|
|
330
|
+
font-family: ${m};
|
|
331
|
+
font-size: ${Be};
|
|
332
|
+
line-height: ${No};
|
|
333
|
+
font-weight: ${D};
|
|
334
334
|
`,l.partial`
|
|
335
|
-
font-family: ${
|
|
336
|
-
font-size: ${
|
|
335
|
+
font-family: ${m};
|
|
336
|
+
font-size: ${ct};
|
|
337
337
|
line-height: ${vt};
|
|
338
|
-
font-weight: ${
|
|
338
|
+
font-weight: ${D};
|
|
339
339
|
`,l.partial`
|
|
340
|
-
font-family: ${
|
|
341
|
-
font-size: ${
|
|
340
|
+
font-family: ${m};
|
|
341
|
+
font-size: ${ct};
|
|
342
342
|
line-height: ${vt};
|
|
343
|
-
font-weight: ${
|
|
343
|
+
font-weight: ${Ho};
|
|
344
344
|
`,l.partial`
|
|
345
|
-
font-family: ${
|
|
346
|
-
font-size: ${
|
|
347
|
-
line-height: ${
|
|
348
|
-
font-weight: ${
|
|
345
|
+
font-family: ${m};
|
|
346
|
+
font-size: ${mr};
|
|
347
|
+
line-height: ${xr};
|
|
348
|
+
font-weight: ${D};
|
|
349
349
|
`,l.partial`
|
|
350
|
-
font-family: ${
|
|
351
|
-
font-size: ${
|
|
352
|
-
line-height: ${
|
|
353
|
-
font-weight: ${
|
|
350
|
+
font-family: ${m};
|
|
351
|
+
font-size: ${br};
|
|
352
|
+
line-height: ${kr};
|
|
353
|
+
font-weight: ${D};
|
|
354
354
|
`,l.partial`
|
|
355
|
-
font-family: ${
|
|
356
|
-
font-size: ${
|
|
357
|
-
line-height: ${
|
|
358
|
-
font-weight: ${
|
|
355
|
+
font-family: ${m};
|
|
356
|
+
font-size: ${Lo};
|
|
357
|
+
line-height: ${yr};
|
|
358
|
+
font-weight: ${D};
|
|
359
359
|
`,l.partial`
|
|
360
|
-
font-family: ${
|
|
361
|
-
font-size: ${
|
|
362
|
-
line-height: ${
|
|
363
|
-
font-weight: ${
|
|
360
|
+
font-family: ${m};
|
|
361
|
+
font-size: ${$r};
|
|
362
|
+
line-height: ${wr};
|
|
363
|
+
font-weight: ${D};
|
|
364
364
|
`,l.partial`
|
|
365
|
-
font-family: ${
|
|
366
|
-
font-size: ${
|
|
367
|
-
line-height: ${
|
|
368
|
-
font-weight: ${
|
|
369
|
-
`;const
|
|
370
|
-
:host(${
|
|
371
|
-
${
|
|
372
|
-
${
|
|
373
|
-
${
|
|
374
|
-
${
|
|
375
|
-
${
|
|
365
|
+
font-family: ${m};
|
|
366
|
+
font-size: ${vr};
|
|
367
|
+
line-height: ${Cr};
|
|
368
|
+
font-weight: ${D};
|
|
369
|
+
`;const Wc=l`
|
|
370
|
+
:host(${Xo}){border-radius:${Es}}:host(${Ut}){border-radius:${F}}:host(${Ut}${oo}),:host(${Ut}${so}),:host(${Ut}${ot}){border-radius:${$t}}${jr}
|
|
371
|
+
${qr}
|
|
372
|
+
${Gr}
|
|
373
|
+
${qc}
|
|
374
|
+
${Gc}
|
|
375
|
+
${Vr}
|
|
376
376
|
`.withBehaviors(Z(l`
|
|
377
|
-
:host,:host([appearance='outline']),:host([appearance='tint']){border-color:CanvasText}`));function
|
|
378
|
-
${
|
|
377
|
+
:host,:host([appearance='outline']),:host([appearance='tint']){border-color:CanvasText}`));function Wr(o={}){return f` ${Dt(o)}<slot>${ut(o.defaultContent)}</slot>${Ht(o)} `}const Xc=Wr(),Uc=Ae.compose({name:`${g.prefix}-badge`,template:Xc,styles:Wc});Uc.define(g.registry);var Kc=Object.defineProperty,Yc=Object.getOwnPropertyDescriptor,j=(o,t,e,s)=>{for(var i=s>1?void 0:s?Yc(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Kc(t,e,i),i};class z extends x{constructor(){super(),this.disabledFocusable=!1,this.elementInternals=this.attachInternals(),this.iconOnly=!1,this.elementInternals.role="button"}appearanceChanged(t,e){t&&d(this.elementInternals,`${t}`,!1),e&&d(this.elementInternals,`${e}`,!0)}disabledFocusableChanged(t,e){this.$fastController.isConnected&&(this.elementInternals.ariaDisabled=`${!!e}`)}get form(){return this.elementInternals.form}iconOnlyChanged(t,e){d(this.elementInternals,"icon",e)}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}shapeChanged(t,e){t&&d(this.elementInternals,`${t}`,!1),e&&d(this.elementInternals,`${e}`,!0)}sizeChanged(t,e){t&&d(this.elementInternals,`${t}`,!1),e&&d(this.elementInternals,`${e}`,!0)}typeChanged(t,e){e!==qo.submit&&(this.formSubmissionFallbackControl?.remove(),this.shadowRoot?.querySelector('slot[name="internal"]')?.remove())}clickHandler(t){if(t&&this.disabledFocusable){t.stopImmediatePropagation();return}return this.press(),!0}connectedCallback(){super.connectedCallback(),this.elementInternals.ariaDisabled=`${!!this.disabledFocusable}`}createAndInsertFormSubmissionFallbackControl(){const t=this.formSubmissionFallbackControlSlot??document.createElement("slot");t.setAttribute("name","internal"),this.shadowRoot?.appendChild(t),this.formSubmissionFallbackControlSlot=t;const e=this.formSubmissionFallbackControl??document.createElement("button");e.style.display="none",e.setAttribute("type","submit"),e.setAttribute("slot","internal"),this.formNoValidate&&e.toggleAttribute("formnovalidate",!0),this.elementInternals.form?.id&&e.setAttribute("form",this.elementInternals.form.id),this.name&&e.setAttribute("name",this.name),this.value&&e.setAttribute("value",this.value),this.formAction&&e.setAttribute("formaction",this.formAction??""),this.formEnctype&&e.setAttribute("formenctype",this.formEnctype??""),this.formMethod&&e.setAttribute("formmethod",this.formMethod??""),this.formTarget&&e.setAttribute("formtarget",this.formTarget??""),this.append(e),this.formSubmissionFallbackControl=e}formDisabledCallback(t){this.disabled=t}keypressHandler(t){if(t&&this.disabledFocusable){t.stopImmediatePropagation();return}if(t.key===Ie||t.key===Po){this.click();return}return!0}press(){switch(this.type){case qo.reset:{this.resetForm();break}case qo.submit:{this.submitForm();break}}}resetForm(){this.elementInternals.form?.reset()}submitForm(){if(!(!this.elementInternals.form||this.disabled||this.type!==qo.submit)){if(!this.name&&!this.formAction&&!this.formEnctype&&!this.form&&!this.formMethod&&!this.formNoValidate&&!this.formTarget){this.elementInternals.form.requestSubmit();return}try{this.elementInternals.setFormValue(this.value??""),this.elementInternals.form.requestSubmit(this)}catch{this.createAndInsertFormSubmissionFallbackControl(),this.elementInternals.setFormValue(null),this.elementInternals.form.requestSubmit(this.formSubmissionFallbackControl)}}}}z.formAssociated=!0,j([a],z.prototype,"appearance",2),j([a({mode:"boolean"})],z.prototype,"autofocus",2),j([v],z.prototype,"defaultSlottedContent",2),j([a({mode:"boolean"})],z.prototype,"disabled",2),j([a({attribute:"disabled-focusable",mode:"boolean"})],z.prototype,"disabledFocusable",2),j([a({attribute:"formaction"})],z.prototype,"formAction",2),j([a({attribute:"form"})],z.prototype,"formAttribute",2),j([a({attribute:"formenctype"})],z.prototype,"formEnctype",2),j([a({attribute:"formmethod"})],z.prototype,"formMethod",2),j([a({attribute:"formnovalidate",mode:"boolean"})],z.prototype,"formNoValidate",2),j([a({attribute:"formtarget"})],z.prototype,"formTarget",2),j([a({attribute:"icon-only",mode:"boolean"})],z.prototype,"iconOnly",2),j([a],z.prototype,"name",2),j([a],z.prototype,"shape",2),j([a],z.prototype,"size",2),j([a],z.prototype,"type",2),j([a],z.prototype,"value",2),Nt(z,Lt);function Gs(o={}){return f`<template tabindex="${t=>t.disabled?-1:0}" @click="${(t,e)=>t.clickHandler(e.event)}" @keypress="${(t,e)=>t.keypressHandler(e.event)}">${Dt(o)}<span class="content" part="content"><slot ${rt("defaultSlottedContent")}></slot></span>${Ht(o)}</template>`}const Qc=Gs(),Zc=z.compose({name:`${g.prefix}-button`,template:Qc,styles:Zo});Zc.define(g.registry);var Jc=Object.defineProperty,td=Object.getOwnPropertyDescriptor,Ot=(o,t,e,s)=>{for(var i=s>1?void 0:s?td(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Jc(t,e,i),i};class yt extends x{constructor(){super(),this.disabled=!1,this.initialValue="on",this._checked=this.initialChecked??!1,this.dirtyChecked=!1,this.elementInternals=this.attachInternals(),this._validationFallbackMessage="",this._value=this.initialValue,this.elementInternals.role="checkbox"}get checked(){return $.track(this,"checked"),this._checked}set checked(t){this._checked=t,this.setFormValue(t?this.value:null),this.setValidity(),this.setAriaChecked(),d(this.elementInternals,"checked",t),$.notify(this,"checked")}indeterminateChanged(t,e){this.setAriaChecked(),d(this.elementInternals,"indeterminate",e)}initialCheckedChanged(t,e){this.dirtyChecked||(this.checked=e)}initialValueChanged(t,e){this._value=e}requiredChanged(t,e){this.$fastController.isConnected&&(this.setValidity(),this.elementInternals.ariaRequired=`${!!e}`)}get form(){return this.elementInternals.form}get labels(){return Object.freeze(Array.from(this.elementInternals.labels))}get validationMessage(){if(this.elementInternals.validationMessage)return this.elementInternals.validationMessage;if(!this._validationFallbackMessage){const t=document.createElement("input");t.type="checkbox",t.required=!0,t.checked=!1,this._validationFallbackMessage=t.validationMessage}return this._validationFallbackMessage}get validity(){return this.elementInternals.validity}get value(){return $.track(this,"value"),this._value}set value(t){this._value=t,this.$fastController.isConnected&&(this.setFormValue(t),this.setValidity(),$.notify(this,"value"))}get willValidate(){return this.elementInternals.willValidate}setAriaChecked(){this.elementInternals.ariaChecked=this.indeterminate?"mixed":`${this.checked}`}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(t){if(!this.disabled)return this.dirtyChecked=!0,this.toggleChecked(),this.$emit("change"),this.$emit("input"),!0}connectedCallback(){super.connectedCallback(),this.setFormValue(this.checked?this.value:null),this.setAriaChecked(),this.setValidity()}inputHandler(t){return this.elementInternals.setFormValue(this.value),this.setValidity(),!0}keydownHandler(t){if(t.key!==" ")return!0}keyupHandler(t){if(t.key!==" ")return!0;this.click()}formResetCallback(){this.checked=this.initialChecked??!1,this.dirtyChecked=!1,this.indeterminate=!1,this.setValidity()}reportValidity(){return this.elementInternals.reportValidity()}setFormValue(t,e){this.elementInternals.setFormValue(t,t??e)}setCustomValidity(t){this.elementInternals.setValidity({customError:!0},t),this.setValidity()}setValidity(t={valueMissing:!!this.required&&!this.checked},e=this.validationMessage,s){if(this.$fastController.isConnected){if(this.disabled){this.elementInternals.setValidity({});return}this.elementInternals.setValidity(t,e,s)}}toggleChecked(t=!this.checked){this.indeterminate=!1,this.checked=t}}yt.formAssociated=!0,Ot([a({mode:"boolean"})],yt.prototype,"autofocus",2),Ot([a({mode:"boolean"})],yt.prototype,"disabled",2),Ot([a({attribute:"form"})],yt.prototype,"formAttribute",2),Ot([v],yt.prototype,"indeterminate",2),Ot([a({attribute:"checked",mode:"boolean"})],yt.prototype,"initialChecked",2),Ot([a({attribute:"value",mode:"fromView"})],yt.prototype,"initialValue",2),Ot([a],yt.prototype,"name",2),Ot([a({mode:"boolean"})],yt.prototype,"required",2);class Ws extends yt{shapeChanged(t,e){t&&d(this.elementInternals,t,!1),e&&d(this.elementInternals,e,!0)}sizeChanged(t,e){t&&d(this.elementInternals,t,!1),e&&d(this.elementInternals,e,!0)}}Ot([a],Ws.prototype,"shape",2),Ot([a],Ws.prototype,"size",2);const kt=l.partial`:is([state--checked], :state(checked))`,pe=l.partial`:is([state--indeterminate], :state(indeterminate))`,ed=l`
|
|
378
|
+
${w("inline-flex")}
|
|
379
379
|
|
|
380
|
-
:host{--size:16px;background-color:${_};border-radius:${
|
|
381
|
-
:host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not([disabled]):hover),:host(${
|
|
380
|
+
:host{--size:16px;background-color:${_};border-radius:${$t};border:${X} solid ${jt};box-sizing:border-box;cursor:pointer;position:relative;width:var(--size)}:host,.indeterminate-indicator,.checked-indicator{aspect-ratio:1}:host(:hover){border-color:${Ge}}:host(:active){border-color:${We}}:host(${kt}:hover){background-color:${je};border-color:${As}}:host(${kt}:active){background-color:${qe};border-color:${_s}}:host(:focus-visible){outline:none}:host(:not([slot='input']))::after{content:'';position:absolute;inset:-8px;box-sizing:border-box;outline:none;border:${de} solid ${at};border-radius:${F}}:host(:not([slot='input']):focus-visible)::after{border-color:${Bt}}.indeterminate-indicator,.checked-indicator{color:${Oo};inset:0;margin:auto;position:absolute}::slotted([slot='checked-indicator']),.checked-indicator{fill:currentColor;display:inline-flex;flex:1 0 auto;width:12px}:host(:not(${kt})) *:is(::slotted([slot='checked-indicator']),.checked-indicator){display:none}:host(${kt}),:host(${pe}){border-color:${Os}}:host(${kt}),:host(${pe}) .indeterminate-indicator{background-color:${Ve}}:host(${pe}) .indeterminate-indicator{border-radius:${$t};position:absolute;width:calc(var(--size) / 2);inset:0}:host(${E}){--size:20px}:host(${E}) ::slotted([slot='checked-indicator']),:host(${E}) .checked-indicator{width:16px}:host(${eo}),:host(${eo}) .indeterminate-indicator{border-radius:${lt}}:host([disabled]),:host([disabled]${kt}){background-color:${Re};border-color:${qt}}:host([disabled]){cursor:unset}:host([disabled]${pe}) .indeterminate-indicator{background-color:${qt}}:host([disabled]${kt}) .checked-indicator{color:${qt}}`.withBehaviors(Z(l`
|
|
381
|
+
:host{border-color:FieldText}:host(:not([slot='input']:focus-visible))::after{border-color:Canvas}:host(:not([disabled]):hover),:host(${kt}:not([disabled]):hover),:host(:not([slot='input']):focus-visible)::after{border-color:Highlight}.indeterminate-indicator,.checked-indicator{color:HighlightText}:host(${kt}),:host(${pe}) .indeterminate-indicator{background-color:FieldText}:host(${kt}:not([disabled]):hover),:host(${pe}:not([disabled]):hover) .indeterminate-indicator{background-color:Highlight}:host([disabled]){border-color:GrayText}:host([disabled]${pe}) .indeterminate-indicator{background-color:GrayText}:host([disabled]),:host([disabled]${kt}) .checked-indicator{color:GrayText}`)),od=f.partial(`
|
|
382
382
|
<svg
|
|
383
383
|
fill="currentColor"
|
|
384
384
|
aria-hidden="true"
|
|
@@ -389,21 +389,21 @@ const f=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
389
389
|
xmlns="http://www.w3.org/2000/svg">
|
|
390
390
|
<path d="M9.76 3.2c.3.29.32.76.04 1.06l-4.25 4.5a.75.75 0 0 1-1.08.02L2.22 6.53a.75.75 0 0 1 1.06-1.06l1.7 1.7L8.7 3.24a.75.75 0 0 1 1.06-.04Z" fill="currentColor"></path>
|
|
391
391
|
</svg>
|
|
392
|
-
`),
|
|
392
|
+
`),sd=f.partial(`
|
|
393
393
|
<span class="indeterminate-indicator"></span>
|
|
394
|
-
`);function
|
|
395
|
-
${
|
|
396
|
-
|
|
397
|
-
:host,:host(:is([size])){gap:12px;height:auto;padding-top:14px;padding-inline:12px;padding-bottom:16px;font-size:${
|
|
398
|
-
::slotted([slot='description']){color:${k}}:host(${ot}){padding:8px;padding-bottom:10px}:host(${
|
|
399
|
-
:host(${
|
|
400
|
-
${
|
|
401
|
-
${
|
|
402
|
-
${
|
|
403
|
-
|
|
404
|
-
:host(${
|
|
405
|
-
@layer base{:host{--dialog-backdrop:${
|
|
406
|
-
@layer base{dialog{border:${
|
|
394
|
+
`);function id(o={}){return f`<template tabindex="${t=>t.disabled?void 0:0}" @click="${(t,e)=>t.clickHandler(e.event)}" @input="${(t,e)=>t.inputHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}" @keyup="${(t,e)=>t.keyupHandler(e.event)}"><slot name="checked-indicator">${ut(o.checkedIndicator)}</slot><slot name="indeterminate-indicator">${ut(o.indeterminateIndicator)}</slot></template>`}const rd=id({checkedIndicator:od,indeterminateIndicator:sd}),nd=Ws.compose({name:`${g.prefix}-checkbox`,template:rd,styles:ed});nd.define(g.registry);class ad extends z{}const ld=l`
|
|
395
|
+
${Zo}
|
|
396
|
+
|
|
397
|
+
:host,:host(:is([size])){gap:12px;height:auto;padding-top:14px;padding-inline:12px;padding-bottom:16px;font-size:${P};line-height:${M}}.content{display:flex;flex-direction:column;text-align:start}::slotted([slot='description']){color:${Rt};line-height:100%;font-size:${W};font-weight:${B}}::slotted(svg),:host(${E}) ::slotted(svg){font-size:40px;height:40px;width:40px}:host(:hover) ::slotted([slot='description']){color:${Bo}}:host(:active) ::slotted([slot='description']){color:${To}}:host(:is(${et},${et}:hover,${et}:active)) ::slotted([slot='description']){color:${Vt}}:host(:is(${C},${C}:hover,${C}:active)) ::slotted([slot='description']),:host(${V}) ::slotted([slot='description']){color:${Rt}}:host(${V}:hover) ::slotted([slot='description']){color:${zo}}:host(${V}:active) ::slotted([slot='description']){color:${Fo}}:host(:is(:disabled,:disabled[appearance],[disabled-focusable],[disabled-focusable][appearance]))
|
|
398
|
+
::slotted([slot='description']){color:${k}}:host(${ot}){padding:8px;padding-bottom:10px}:host(${ze}){min-width:52px;max-width:52px;padding:${ue}}:host(${ze}${ot}){min-width:48px;max-width:48px;padding:${Gt}}:host(${ze}${E}){min-width:56px;max-width:56px;padding:${Tt}}:host(${E}){padding-top:18px;padding-inline:16px;padding-bottom:20px;font-size:${ct};line-height:${vt}}:host(${E}) ::slotted([slot='description']){font-size:${P}}`;function cd(o={}){return f`<template ?disabled="${t=>t.disabled}" tabindex="${t=>t.disabled?-1:0}">${Dt(o)}<span class="content" part="content"><slot ${rt("defaultSlottedContent")}></slot><slot name="description"></slot></span>${Ht(o)}</template>`}const dd=cd(),hd=ad.compose({name:`${g.prefix}-compound-button`,template:dd,styles:ld});hd.define(g.registry);var ud=Object.defineProperty,pd=Object.getOwnPropertyDescriptor,se=(o,t,e,s)=>{for(var i=s>1?void 0:s?pd(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&ud(t,e,i),i};class At extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.count=0,this.overflowCount=99,this.showZero=!1,this.dot=!1}appearanceChanged(t,e){t&&d(this.elementInternals,`${t}`,!1),e&&d(this.elementInternals,`${e}`,!0)}colorChanged(t,e){t&&d(this.elementInternals,`${t}`,!1),e&&d(this.elementInternals,`${e}`,!0)}shapeChanged(t,e){t&&d(this.elementInternals,`${t}`,!1),e&&d(this.elementInternals,`${e}`,!0)}sizeChanged(t,e){t&&d(this.elementInternals,`${t}`,!1),e&&d(this.elementInternals,`${e}`,!0)}countChanged(){this.setCount()}overflowCountChanged(){this.setCount()}dotChanged(t,e){d(this.elementInternals,"dot",!!e)}setCount(){const t=this.count??0;if((t!==0||this.showZero)&&!this.dot)return t>this.overflowCount?`${this.overflowCount}+`:`${t}`}}se([a],At.prototype,"appearance",2),se([a],At.prototype,"color",2),se([a],At.prototype,"shape",2),se([a],At.prototype,"size",2),se([a({converter:nt})],At.prototype,"count",2),se([a({attribute:"overflow-count",converter:nt})],At.prototype,"overflowCount",2),se([a({attribute:"show-zero",mode:"boolean"})],At.prototype,"showZero",2),se([a({mode:"boolean"})],At.prototype,"dot",2),Nt(At,Lt);const Xr=l.partial`:is([state--dot], :state(dot))`,gd=l`
|
|
399
|
+
:host(${Ut}){border-radius:${F}}:host(${Ut}${oo}),:host(${Ut}${so}),:host(${Ut}${ot}){border-radius:${$t}}${jr}
|
|
400
|
+
${qr}
|
|
401
|
+
${Gr}
|
|
402
|
+
${Vr}
|
|
403
|
+
|
|
404
|
+
:host(${Xr}),:host(${Xr}[appearance][size]){min-width:auto;width:6px;height:6px;padding:0}`;function fd(o={}){return Wr({defaultContent:f`${t=>t.setCount()}`})}const bd=fd(),md=At.compose({name:`${g.prefix}-counter-badge`,template:bd,styles:gd});md.define(g.registry);const _t={modal:"modal",nonModal:"non-modal",alert:"alert"};var $d=Object.defineProperty,vd=Object.getOwnPropertyDescriptor,es=(o,t,e,s)=>{for(var i=s>1?void 0:s?vd(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&$d(t,e,i),i};class ro extends x{constructor(){super(...arguments),this.type=_t.modal,this.emitBeforeToggle=()=>{this.$emit("beforetoggle",{oldState:this.dialog.open?"open":"closed",newState:this.dialog.open?"closed":"open"})},this.emitToggle=()=>{this.$emit("toggle",{oldState:this.dialog.open?"closed":"open",newState:this.dialog.open?"open":"closed"})}}show(){St.enqueue(()=>{this.emitBeforeToggle(),this.type===_t.alert||this.type===_t.modal?this.dialog.showModal():this.type===_t.nonModal&&this.dialog.show(),this.emitToggle()})}hide(){this.emitBeforeToggle(),this.dialog.close(),this.emitToggle()}clickHandler(t){return t.preventDefault(),this.dialog.open&&this.type!==_t.alert&&t.target===this.dialog&&this.hide(),!0}}es([v],ro.prototype,"dialog",2),es([a({attribute:"aria-describedby"})],ro.prototype,"ariaDescribedby",2),es([a({attribute:"aria-labelledby"})],ro.prototype,"ariaLabelledby",2),es([a],ro.prototype,"type",2);const yd=f`<dialog role="${o=>o.type===_t.alert?"alertdialog":"dialog"}" type="${o=>o.type}" class="dialog" part="dialog" aria-modal="${o=>o.type===_t.modal||o.type===_t.alert?"true":void 0}" aria-describedby="${o=>o.ariaDescribedby}" aria-labelledby="${o=>o.ariaLabelledby}" aria-label="${o=>o.ariaLabel}" @click="${(o,t)=>o.clickHandler(t.event)}" @cancel="${(o,t)=>o.type===_t.alert?t.event.preventDefault():o.hide()}" ${Pt("dialog")}><slot></slot></dialog>`,kd=l`
|
|
405
|
+
@layer base{:host{--dialog-backdrop:${Ts};--dialog-starting-scale:0.85}::backdrop{background:var(--dialog-backdrop,rgba(0,0,0,0.4))}dialog{background:${_};border-radius:${fr};border:none;box-shadow:${Pr};color:${A};max-height:calc(-48px + 100vh);padding:0;width:100%;max-width:600px}:host([type='non-modal']) dialog{inset:0;position:fixed;z-index:2;overflow:auto}}@layer animations{@media (prefers-reduced-motion:no-preference){dialog,::backdrop{transition:display allow-discrete,opacity,overlay allow-discrete,scale;transition-duration:${Hs};transition-timing-function:${Ze};opacity:0}::backdrop{transition-timing-function:${Ns}}[open],[open]::backdrop{opacity:1}dialog:not([open]){scale:var(--dialog-starting-scale);transition-timing-function:${Qe}}}@starting-style{[open],[open]::backdrop{opacity:0}dialog{scale:var(--dialog-starting-scale)}}}`.withBehaviors(Z(l`
|
|
406
|
+
@layer base{dialog{border:${X} solid ${at}}}`)),xd=ro.compose({name:`${g.prefix}-dialog`,template:yd,styles:kd});xd.define(g.registry);var wd=Object.defineProperty,Cd=Object.getOwnPropertyDescriptor,Sd=(o,t,e,s)=>{for(var i=s>1?void 0:s?Cd(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&wd(t,e,i),i};class Ur extends x{constructor(){super(...arguments),this.noTitleAction=!1}}Sd([a({mode:"boolean",attribute:"no-title-action"})],Ur.prototype,"noTitleAction",2);const Id=f.partial(`
|
|
407
407
|
<svg
|
|
408
408
|
fill="currentColor"
|
|
409
409
|
aria-hidden="true"
|
|
@@ -416,84 +416,87 @@ const f=Object.freeze({prefix:"fluent",shadowRootMode:"open",registry:customElem
|
|
|
416
416
|
d="m4.09 4.22.06-.07a.5.5 0 0 1 .63-.06l.07.06L10 9.29l5.15-5.14a.5.5 0 0 1 .63-.06l.07.06c.18.17.2.44.06.63l-.06.07L10.71 10l5.14 5.15c.18.17.2.44.06.63l-.06.07a.5.5 0 0 1-.63.06l-.07-.06L10 10.71l-5.15 5.14a.5.5 0 0 1-.63.06l-.07-.06a.5.5 0 0 1-.06-.63l.06-.07L9.29 10 4.15 4.85a.5.5 0 0 1-.06-.63l.06-.07-.06.07Z"
|
|
417
417
|
fill="currentColor"
|
|
418
418
|
></path>
|
|
419
|
-
</svg>`),
|
|
420
|
-
${
|
|
419
|
+
</svg>`),Pd=f`<div class="title" part="title"><slot name="title"></slot><slot name="title-action"><fluent-button ?hidden=${o=>o.noTitleAction||o.parentNode?.type===_t.alert} tabindex="0" part="title-action" class="title-action" appearance="transparent" icon-only @click=${o=>o.parentNode?.hide()} ${Pt("defaultTitleAction")}>${Id}</fluent-button></slot></div><div class="content" part="content"><slot></slot></div><div class="actions" part="actions"><slot name="action"></slot></div>`,Bd=l`
|
|
420
|
+
${w("grid")}
|
|
421
|
+
|
|
422
|
+
:host{background:${_};box-sizing:border-box;gap:${U};padding:${Ye} ${Ul};container:dialog-body / inline-size}.title{box-sizing:border-box;align-items:flex-start;background:${_};color:${A};column-gap:8px;display:flex;font-family:${m};font-size:${Be};font-weight:${D};inset-block-start:0;justify-content:space-between;line-height:${No};margin-block-end:calc(${U} * -1);margin-block-start:calc(${Ye} * -1);padding-block-end:${U};padding-block-start:${Ye};position:sticky;z-index:1}.content{box-sizing:border-box;color:${A};font-family:${m};font-size:${P};font-weight:${B};line-height:${M};min-height:32px}.actions{box-sizing:border-box;background:${_};display:flex;flex-direction:column;gap:${U};inset-block-end:0;margin-block-end:calc(${Ye} * -1);padding-block-end:${Ye};padding-block-start:${zr};position:sticky;z-index:2}:not(:has(:is([slot='title'],[slot='title-action']))) .title:not(:has(.title-action)),:not(:has([slot='action'])) .actions{display:none}@container (min-width:480px){.actions{align-items:center;flex-direction:row;justify-content:flex-end;margin-block-start:calc(${U} * -1);padding-block-start:${U}}}`,Td=Ur.compose({name:`${g.prefix}-dialog-body`,template:Pd,styles:Bd});Td.define(g.registry);const no={separator:"separator",presentation:"presentation"},zd=Q;var Fd=Object.defineProperty,Od=Object.getOwnPropertyDescriptor,ao=(o,t,e,s)=>{for(var i=s>1?void 0:s?Od(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Fd(t,e,i),i};class _e extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.inset=!1}alignContentChanged(t,e){t&&d(this.elementInternals,`align-${t}`,!1),e&&d(this.elementInternals,`align-${e}`,!0)}appearanceChanged(t,e){t&&d(this.elementInternals,`${t}`,!1),e&&d(this.elementInternals,`${e}`,!0)}insetChanged(t,e){d(this.elementInternals,"inset",e)}connectedCallback(){super.connectedCallback(),this.elementInternals.role=this.role??no.separator,this.role!==no.presentation&&(this.elementInternals.ariaOrientation=this.orientation??zd.horizontal)}roleChanged(t,e){this.$fastController.isConnected&&(this.elementInternals.role=`${e??no.separator}`),e===no.presentation&&(this.elementInternals.ariaOrientation=null)}orientationChanged(t,e){this.elementInternals.ariaOrientation=this.role!==no.presentation?e:null,t&&d(this.elementInternals,`${t}`,!1),e&&d(this.elementInternals,`${e}`,!0)}}ao([a],_e.prototype,"role",2),ao([a],_e.prototype,"orientation",2),ao([a({attribute:"align-content"})],_e.prototype,"alignContent",2),ao([a],_e.prototype,"appearance",2),ao([a({mode:"boolean"})],_e.prototype,"inset",2);function Ad(){return f`<slot></slot>`}const _d=Ad(),Md=l`
|
|
423
|
+
${w("flex")}
|
|
421
424
|
|
|
422
|
-
:host{background:${
|
|
423
|
-
|
|
425
|
+
:host{contain:content}:host::after,:host::before{align-self:center;background:${Xe};box-sizing:border-box;content:'';display:flex;flex-grow:1;height:${X}}:host(${qs}){padding:0 12px}:host ::slotted(*){color:${Rt};font-family:${m};font-size:${W};font-weight:${B};margin:0;padding:0 12px}:host(${Er})::before,:host(${Lr})::after{flex-basis:12px;flex-grow:0;flex-shrink:0}:host(${gt}){height:100%;min-height:84px}:host(${gt}):empty{min-height:20px}:host(${gt}){flex-direction:column;align-items:center}:host(${gt}${qs})::before{margin-top:12px}:host(${gt}${qs})::after{margin-bottom:12px}:host(${gt}):empty::before,:host(${gt}):empty::after{height:10px;min-height:10px;flex-grow:0}:host(${gt})::before,:host(${gt})::after{width:${X};min-height:20px;height:100%}:host(${gt}) ::slotted(*){display:flex;flex-direction:column;padding:12px 0;line-height:20px}:host(${gt}${Er})::before{min-height:8px}:host(${gt}${Lr})::after{min-height:8px}:host(${Je})::before,:host(${Je})::after{background:${Pe}}:host(${Je}) ::slotted(*){color:${A}}:host(${io})::before,:host(${io})::after{background:${rr}}:host(${io}) ::slotted(*){color:${Cs}}:host(${C})::before,:host(${C})::after{background:${ya}}:host(${C}) ::slotted(*){color:${tt}}`.withBehaviors(Z(l`
|
|
426
|
+
:host(${Je})::before,:host(${Je})::after,:host(${io})::before,:host(${io})::after,:host(${C})::before,:host(${C})::after,:host::after,:host::before{background:WindowText;color:WindowText}`)),Ed=_e.compose({name:`${g.prefix}-divider`,template:_d,styles:Md});Ed.define(g.registry);const Ld={start:"start",end:"end"},Hd={small:"small",medium:"medium",large:"large",full:"full"},Xs={nonModal:"non-modal",modal:"modal",inline:"inline"};var Dd=Object.defineProperty,Nd=Object.getOwnPropertyDescriptor,Me=(o,t,e,s)=>{for(var i=s>1?void 0:s?Nd(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Dd(t,e,i),i};class ge extends x{constructor(){super(...arguments),this.type=Xs.modal,this.position=Ld.start,this.size=Hd.medium,this.emitToggle=()=>{this.$emit("toggle",{oldState:this.dialog.open?"closed":"open",newState:this.dialog.open?"open":"closed"})},this.emitBeforeToggle=()=>{this.$emit("beforetoggle",{oldState:this.dialog.open?"open":"closed",newState:this.dialog.open?"closed":"open"})}}show(){St.enqueue(()=>{this.emitBeforeToggle(),this.type===Xs.inline||this.type===Xs.nonModal?this.dialog.show():this.dialog.showModal(),this.emitToggle()})}hide(){this.emitBeforeToggle(),this.dialog.close(),this.emitToggle()}clickHandler(t){return t.preventDefault(),this.dialog.open&&t.target===this.dialog&&this.hide(),!0}}Me([a],ge.prototype,"type",2),Me([a({attribute:"aria-labelledby"})],ge.prototype,"ariaLabelledby",2),Me([a({attribute:"aria-describedby"})],ge.prototype,"ariaDescribedby",2),Me([a],ge.prototype,"position",2),Me([a({attribute:"size"})],ge.prototype,"size",2),Me([v],ge.prototype,"dialog",2);const Rd=l`
|
|
427
|
+
${w("block")}
|
|
424
428
|
|
|
425
|
-
:host{
|
|
426
|
-
|
|
427
|
-
${C("inline-grid")}
|
|
429
|
+
:host{--dialog-backdrop:${Ts}}:host([type='non-modal']) dialog[open]::backdrop{display:none}:host([type='non-modal']) dialog{position:fixed;top:0;bottom:0}:host([type='inline']){height:100%;width:fit-content}:host([type='inline']) dialog[open]{box-shadow:none;position:relative}:host([size='small']) dialog{width:320px;max-width:320px}:host([size='large']) dialog{width:940px;max-width:940px}:host([size='full']) dialog{width:100%;max-width:100%}:host([position='end']) dialog{margin-inline-start:auto;margin-inline-end:0}dialog{box-sizing:border-box;z-index:var(--drawer-elevation,1000);font-size:${P};line-height:${M};font-family:${m};font-weight:${B};color:${A};max-width:var(--drawer-width,592px);max-height:100vh;height:100%;margin-inline-start:0;margin-inline-end:auto;border-inline-end-color:${at};border-inline-start-color:var(--drawer-separator,${at});outline:none;top:0;bottom:0;width:var(--drawer-width,592px);border-radius:0;padding:0;max-width:var(--drawer-width,592px);box-shadow:${Pr};border:${X} solid ${at};background:${_}}dialog::backdrop{background:var(--dialog-backdrop)}@layer animations{@media (prefers-reduced-motion:no-preference){dialog{transition:display allow-discrete,opacity,overlay allow-discrete,transform;transition-duration:${Hs};transition-timing-function:${Ze}}:host dialog:not([open]){transform:translateX(-100%);transition-timing-function:${Qe}}:host([position='end']) dialog:not([open]){transform:translateX(100%);transition-timing-function:${Qe}}dialog[open]{transform:translateX(0)}dialog::backdrop{transition:display allow-discrete,opacity,overlay allow-discrete,scale;transition-duration:${Hs};transition-timing-function:${Ze};background:var(--dialog-backdrop,${Ts});opacity:0}dialog[open]::backdrop{opacity:1}dialog::backdrop{transition-timing-function:${Ns}}}@starting-style{dialog[open]{transform:translateX(-100%)}:host([position='end']) dialog[open]{transform:translateX(100%)}dialog[open]::backdrop{opacity:0}}}`;function Vd(){return f`<dialog class="dialog" part="dialog" role="${o=>o.type==="modal"?"dialog":o.role}" aria-modal="${o=>o.type==="modal"?"true":void 0}" aria-describedby="${o=>o.ariaDescribedby}" aria-labelledby="${o=>o.ariaLabelledby}" aria-label="${o=>o.ariaLabel}" size="${o=>o.size}" position="${o=>o.position}" type="${o=>o.type}" @click="${(o,t)=>o.clickHandler(t.event)}" @cancel="${(o,t)=>o.hide()}" ${Pt("dialog")}><slot></slot></dialog>`}const jd=Vd(),qd=ge.compose({name:`${g.prefix}-drawer`,template:jd,styles:Rd});qd.define(g.registry);const Gd={above:"above",after:"after",before:"before"},y={badInput:"bad-input",customError:"custom-error",patternMismatch:"pattern-mismatch",rangeOverflow:"range-overflow",rangeUnderflow:"range-underflow",stepMismatch:"step-mismatch",tooLong:"too-long",tooShort:"too-short",typeMismatch:"type-mismatch",valueMissing:"value-missing",valid:"valid"};var Wd=Object.defineProperty,Xd=Object.getOwnPropertyDescriptor,Us=(o,t,e,s)=>{for(var i=s>1?void 0:s?Xd(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Wd(t,e,i),i};class os extends x{constructor(){super(...arguments),this.labelPosition=Gd.above,this.elementInternals=this.attachInternals()}messageSlotChanged(t,e){if(!e.length){this.removeEventListener("invalid",this.invalidHandler,{capture:!0});return}this.addEventListener("invalid",this.invalidHandler,{capture:!0})}slottedInputsChanged(t,e){this.input=e?.[0],this.input&&this.setStates()}changeHandler(t){this.setStates()}clickHandler(t){if(this.isSameNode(t.target)){this.input.focus(),this.input.click();return}return!0}focusinHandler(t){return t.target.matches(":focus-visible")&&d(this.elementInternals,"focus-visible",!0),!0}focusoutHandler(t){return d(this.elementInternals,"focus-visible",!1),!0}invalidHandler(t){this.messageSlot.length&&t.preventDefault(),this.setStates()}setStates(){if(this.$fastController.isConnected){if(d(this.elementInternals,"disabled",!!this.input.disabled),d(this.elementInternals,"readonly",!!this.input.readOnly),d(this.elementInternals,"required",!!this.input.required),!this.input.validity)return;for(const[t,e]of Object.entries(y))d(this.elementInternals,e,!!this.input.validity[t])}}}Us([a({attribute:"label-position"})],os.prototype,"labelPosition",2),Us([v],os.prototype,"messageSlot",2),Us([v],os.prototype,"slottedInputs",2);const Ud=l.partial`:is([state--disabled], :state(disabled))`,Kd=l.partial`:is([state--focus-visible], :state(focus-visible))`,Yd=l.partial`:is([state--${y.badInput}], :state(${y.badInput}))`,Qd=l.partial`:is([state--${y.customError}], :state(${y.customError}))`,Zd=l.partial`:is([state--${y.patternMismatch}], :state(${y.patternMismatch}))`,Jd=l.partial`:is([state--${y.rangeOverflow}], :state(${y.rangeOverflow}))`,th=l.partial`:is([state--${y.rangeUnderflow}], :state(${y.rangeUnderflow}))`,eh=l.partial`:is([state--${y.stepMismatch}], :state(${y.stepMismatch}))`,oh=l.partial`:is([state--${y.tooLong}], :state(${y.tooLong}))`,sh=l.partial`:is([state--${y.tooShort}], :state(${y.tooShort}))`,ih=l.partial`:is([state--${y.typeMismatch}], :state(${y.typeMismatch}))`,rh=l.partial`:is([state-${y.valid}], :state(${y.valid}))`,nh=l.partial`:is([state--${y.valueMissing}], :state(${y.valueMissing}))`,ah=l`
|
|
430
|
+
${w("inline-grid")}
|
|
428
431
|
|
|
429
|
-
:host{align-items:center;cursor:pointer;gap:0 ${Jt};justify-items:start;padding:${U}}:has([slot='message']){color:${A};row-gap:${U}}:not(::slotted([slot='label'])){gap:0}:host([label-position='before']){grid-template-areas:'label input' 'label message'}:host([label-position='after']){gap:0;grid-template-areas:'input label' 'message message';grid-template-columns:auto 1fr}:host([label-position='after']) ::slotted([slot='input']){margin-inline-end:${Jt}}:host([label-position='above']){grid-template-areas:'label' 'input' 'message';row-gap:${
|
|
430
|
-
:host{contain:content}:host ::slotted(img){box-sizing:border-box;min-height:8px;min-width:8px;display:inline-block}:host(:is([state--block],:state(block))) ::slotted(img){width:100%;height:auto}:host(:is([state--bordered],:state(bordered))) ::slotted(img){border:${
|
|
431
|
-
${
|
|
432
|
+
:host{align-items:center;cursor:pointer;gap:0 ${Jt};justify-items:start;padding:${U}}:has([slot='message']){color:${A};row-gap:${U}}:not(::slotted([slot='label'])){gap:0}:host([label-position='before']){grid-template-areas:'label input' 'label message'}:host([label-position='after']){gap:0;grid-template-areas:'input label' 'message message';grid-template-columns:auto 1fr}:host([label-position='after']) ::slotted([slot='input']){margin-inline-end:${Jt}}:host([label-position='above']){grid-template-areas:'label' 'input' 'message';row-gap:${Vo}}:host([label-position='below']){grid-template-areas:'input' 'label' 'message'}::slotted([slot='label']){cursor:pointer;grid-area:label}::slotted([slot='input']){grid-area:input}::slotted([slot='message']){margin-block-start:${Vo};grid-area:message}:host(${Kd}:focus-within){border-radius:${F};outline:${de} solid ${Bt}}::slotted(label){display:inline-flex;color:${A};cursor:pointer;font-family:${m};font-size:${P};font-weight:${B};line-height:${M};user-select:none}:host([size='small']) ::slotted(label){font-size:${W};line-height:${dt}}:host([size='large']) ::slotted(label){font-size:${ct};line-height:${vt}}:host([size='large']) ::slotted(label),:host([weight='semibold']) ::slotted(label){font-weight:${D}}:host(${Ud}) ::slotted(label){color:${A};cursor:default}::slotted([flag]){display:none}:host(${Yd}) ::slotted([flag='${y.badInput}']),:host(${Qd}) ::slotted([flag='${y.customError}']),:host(${Zd}) ::slotted([flag='${y.patternMismatch}']),:host(${Jd}) ::slotted([flag='${y.rangeOverflow}']),:host(${th}) ::slotted([flag='${y.rangeUnderflow}']),:host(${eh}) ::slotted([flag='${y.stepMismatch}']),:host(${oh}) ::slotted([flag='${y.tooLong}']),:host(${sh}) ::slotted([flag='${y.tooShort}']),:host(${ih}) ::slotted([flag='${y.typeMismatch}']),:host(${nh}) ::slotted([flag='${y.valueMissing}']),:host(${rh}) ::slotted([flag='${y.valid}']){display:block}`,lh=f`<template @click="${(o,t)=>o.clickHandler(t.event)}" @change="${(o,t)=>o.changeHandler(t.event)}" @focusin="${(o,t)=>o.focusinHandler(t.event)}" @focusout="${(o,t)=>o.focusoutHandler(t.event)}" ${Fn({property:"slottedInputs",attributes:!0,attributeFilter:["disabled","required","readonly"],subtree:!0,selector:'[slot="input"]',filter:le()})}><slot name="label" part="label"></slot><slot name="input" part="input"></slot><slot name="message" part="message" ${rt({property:"messageSlot",filter:le("[flag]")})}></slot></template>`,ch=os.compose({name:`${g.prefix}-field`,template:lh,styles:ah,shadowOptions:{delegatesFocus:!0}});ch.define(g.registry);var dh=Object.defineProperty,hh=Object.getOwnPropertyDescriptor,lo=(o,t,e,s)=>{for(var i=s>1?void 0:s?hh(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&dh(t,e,i),i};class Ee extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.block=!1}blockChanged(t,e){d(this.elementInternals,"block",e)}borderedChanged(t,e){d(this.elementInternals,"bordered",e)}shadowChanged(t,e){d(this.elementInternals,"shadow",e)}fitChanged(t,e){t&&d(this.elementInternals,`fit-${t}`,!1),e&&d(this.elementInternals,`fit-${e}`,!0)}shapeChanged(t,e){t&&d(this.elementInternals,`${t}`,!1),e&&d(this.elementInternals,`${e}`,!0)}}lo([a({mode:"boolean"})],Ee.prototype,"block",2),lo([a({mode:"boolean"})],Ee.prototype,"bordered",2),lo([a({mode:"boolean"})],Ee.prototype,"shadow",2),lo([a],Ee.prototype,"fit",2),lo([a],Ee.prototype,"shape",2);const uh=f`<slot></slot>`,ph=l`
|
|
433
|
+
:host{contain:content}:host ::slotted(img){box-sizing:border-box;min-height:8px;min-width:8px;display:inline-block}:host(:is([state--block],:state(block))) ::slotted(img){width:100%;height:auto}:host(:is([state--bordered],:state(bordered))) ::slotted(img){border:${X} solid ${Xe}}:host(:is([state--fit-none],:state(fit-none))) ::slotted(img){object-fit:none;object-position:top left;height:100%;width:100%}:host(:is([state--fit-center],:state(fit-center))) ::slotted(img){object-fit:none;object-position:center;height:100%;width:100%}:host(:is([state--fit-contain],:state(fit-contain))) ::slotted(img){object-fit:contain;object-position:center;height:100%;width:100%}:host(:is([state--fit-cover],:state(fit-cover))) ::slotted(img){object-fit:cover;object-position:center;height:100%;width:100%}:host(:is([state--shadowed],:state(shadowed))) ::slotted(img){box-shadow:${Ro}}:host(${eo}) ::slotted(img){border-radius:${lt}}:host(${Ut}) ::slotted(img){border-radius:${F}}`,gh=Ee.compose({name:`${g.prefix}-image`,template:uh,styles:ph});gh.define(g.registry);var fh=Object.defineProperty,bh=Object.getOwnPropertyDescriptor,ss=(o,t,e,s)=>{for(var i=s>1?void 0:s?bh(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&fh(t,e,i),i};class co extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.disabled=!1,this.required=!1}sizeChanged(t,e){t&&d(this.elementInternals,`${t}`,!1),e&&d(this.elementInternals,`${e}`,!0)}weightChanged(t,e){t&&d(this.elementInternals,`${t}`,!1),e&&d(this.elementInternals,`${e}`,!0)}disabledChanged(t,e){d(this.elementInternals,"disabled",e)}}ss([a],co.prototype,"size",2),ss([a],co.prototype,"weight",2),ss([a({mode:"boolean"})],co.prototype,"disabled",2),ss([a({mode:"boolean"})],co.prototype,"required",2);const mh=l`
|
|
434
|
+
${w("inline-flex")}
|
|
432
435
|
|
|
433
|
-
:host{color:${A};cursor:pointer;font-family:${
|
|
434
|
-
${
|
|
436
|
+
:host{color:${A};cursor:pointer;font-family:${m};font-size:${P};font-weight:${B};line-height:${M};user-select:none}.asterisk{color:${cr};margin-inline-start:${Gt}}:host(${ot}){font-size:${W};line-height:${dt}}:host(${E}){font-size:${ct};line-height:${vt}}:host(${E}),:host(:is([state--semibold],:state(semibold))){font-weight:${D}}:host(:is([state--disabled],:state(disabled))),:host(:is([state--disabled],:state(disabled))) .asterisk{color:${k}}`;function $h(){return f`<slot></slot><span part="asterisk" class="asterisk" ?hidden="${o=>!o.required}">*</span>`}const vh=$h(),yh=co.compose({name:`${g.prefix}-label`,template:vh,styles:mh});yh.define(g.registry);var kh=Object.defineProperty,xh=Object.getOwnPropertyDescriptor,Kr=(o,t,e,s)=>{for(var i=s>1?void 0:s?xh(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&kh(t,e,i),i};class Ks extends zt{constructor(){super(...arguments),this.inline=!1}appearanceChanged(t,e){t&&d(this.elementInternals,`${t}`,!1),e&&d(this.elementInternals,`${e}`,!0)}inlineChanged(t,e){d(this.elementInternals,"inline",e)}}Kr([a],Ks.prototype,"appearance",2),Kr([a({mode:"boolean"})],Ks.prototype,"inline",2);const wh=l`
|
|
437
|
+
${w("inline")}
|
|
435
438
|
|
|
436
|
-
:host{position:relative;box-sizing:border-box;background-color:transparent;color:${
|
|
437
|
-
:host{color:LinkText}`));function
|
|
439
|
+
:host{position:relative;box-sizing:border-box;background-color:transparent;color:${oa};cursor:pointer;font-family:${m};font-size:${P};font-weight:${B};margin:0;padding:0;overflow:inherit;text-align:left;text-decoration:none;text-decoration-thinkness:${X};text-overflow:inherit;user-select:text}:host(:is(:hover,:focus-visible)){outline:none;text-decoration-line:underline}@media (hover:hover){:host(:hover){color:${sa}}:host(:active){color:${ia}}:host(${C}:hover){color:${na}}:host(${C}:active){color:${aa}}}:host(${C}){color:${ra}}:host-context(:is(h1,h2,h3,h4,h5,h6,p,fluent-text)),:host(:is([state--inline],:state(inline))){font:inherit;text-decoration:underline}:host(:not([href])){color:inherit;text-decoration:none}::slotted(a){position:absolute;inset:0}`.withBehaviors(Z(l`
|
|
440
|
+
:host{color:LinkText}`));function Ch(){return f`<template tabindex="0" @click="${(o,t)=>o.clickHandler(t.event)}" @keydown="${(o,t)=>o.keydownHandler(t.event)}"><slot></slot></template>`}const Sh=Ch(),Ih=Ks.compose({name:`${g.prefix}-link`,template:Sh,styles:wh});Ih.define(g.registry);class Ph extends z{}const Bh=Gs({end:f.partial(`
|
|
438
441
|
<svg slot="end" fill="currentColor" aria-hidden="true" width="1em" height="1em" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
|
|
439
442
|
<path d="M15.85 7.65c.2.2.2.5 0 .7l-5.46 5.49a.55.55 0 0 1-.78 0L4.15 8.35a.5.5 0 1 1 .7-.7L10 12.8l5.15-5.16c.2-.2.5-.2.7 0Z" fill="currentColor"></path>
|
|
440
443
|
</svg>
|
|
441
|
-
`)}),
|
|
442
|
-
${
|
|
444
|
+
`)}),Th=Ph.compose({name:`${g.prefix}-menu-button`,template:Bh,styles:Zo});Th.define(g.registry);const ft={menuitem:"menuitem",menuitemcheckbox:"menuitemcheckbox",menuitemradio:"menuitemradio"};ft.menuitem+"",ft.menuitemcheckbox+"",ft.menuitemradio+"";var zh=Object.defineProperty,Fh=Object.getOwnPropertyDescriptor,Le=(o,t,e,s)=>{for(var i=s>1?void 0:s?Fh(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&zh(t,e,i),i};class Mt extends x{constructor(){super(...arguments),this.role=ft.menuitem,this.checked=!1,this.handleMenuItemKeyDown=t=>{if(t.defaultPrevented)return!1;switch(t.key){case Ie:case Po:return this.invoke(),!1;case Ce:return this.disabled||(this.submenu?.togglePopover(!0),this.submenu?.focus()),!1;case we:return this.parentElement?.hasAttribute("popover")&&this.parentElement.togglePopover(!1),!1}return!0},this.handleMenuItemClick=t=>(t.defaultPrevented||this.disabled||this.invoke(),!1),this.handleMouseOver=t=>(this.disabled||this.submenu?.togglePopover(!0),!1),this.handleMouseOut=t=>(this.contains(document.activeElement)||this.submenu?.togglePopover(!1),!1),this.toggleHandler=t=>{t instanceof ToggleEvent&&t.newState==="open"&&(this.setAttribute("tabindex","-1"),this.setAttribute("aria-expanded","true"),this.setSubmenuPosition()),t instanceof ToggleEvent&&t.newState==="closed"&&(this.setAttribute("aria-expanded","false"),this.setAttribute("tabindex","0"))},this.invoke=()=>{if(!this.disabled)switch(this.role){case ft.menuitemcheckbox:this.checked=!this.checked;break;case ft.menuitem:if(this.submenu){this.submenu.togglePopover(!0),this.submenu.focus();break}this.$emit("change");break;case ft.menuitemradio:this.checked||(this.checked=!0);break}},this.setSubmenuPosition=()=>{if(!CSS.supports("anchor-name","--anchor")&&this.submenu){const t=this.getBoundingClientRect(),e=this.submenu.getBoundingClientRect(),s=getComputedStyle(this).direction==="ltr"?"right":"left";if(t.width+e.width>window.innerWidth*.75){this.submenu.style.translate="0 -100%";return}if(t[s]+e.width>window.innerWidth){this.submenu.style.translate="-100% 0";return}this.submenu.style.translate=`${t.width-8}px 0`}}}checkedChanged(t,e){this.$fastController.isConnected&&this.$emit("change")}slottedSubmenuChanged(t,e){this.submenu?.removeEventListener("toggle",this.toggleHandler),e.length&&(this.submenu=e[0],this.submenu.toggleAttribute("popover",!0),this.submenu.addEventListener("toggle",this.toggleHandler))}}Le([a({mode:"boolean"})],Mt.prototype,"disabled",2),Le([a],Mt.prototype,"role",2),Le([a({mode:"boolean"})],Mt.prototype,"checked",2),Le([a({mode:"boolean"})],Mt.prototype,"hidden",2),Le([v],Mt.prototype,"slottedSubmenu",2),Le([v],Mt.prototype,"submenu",2),Nt(Mt,Lt);const Oh=l`
|
|
445
|
+
${w("grid")}
|
|
443
446
|
|
|
444
|
-
:host{--indent:0;align-items:center;background:${_};border-radius:${
|
|
445
|
-
:host([disabled]),:host([disabled]) ::slotted([slot='start']),:host([disabled]) ::slotted([slot='end']){color:GrayText}`)),
|
|
446
|
-
${
|
|
447
|
+
:host{--indent:0;align-items:center;background:${_};border-radius:${F};color:${Rt};contain:layout;cursor:pointer;flex-shrink:0;font:${B} ${P} / ${M} ${m};grid-gap:4px;grid-template-columns:20px 20px auto 20px;height:32px;overflow:visible;padding:0 10px}:host(:hover){background:${Ss};color:${Bo}}:host([icon]:hover) ::slotted([slot='start']){color:${Yi}}:host(:active){background-color:${tr};color:${To}}:host(:active) ::slotted([slot='start']){color:${Qi}}:host([disabled]){background-color:${Re};color:${k}}:host([disabled]) ::slotted([slot='start']),:host([disabled]) ::slotted([slot='end']){color:${k}}:host(:focus-visible){border-radius:${F};outline:2px solid ${Bt}}.content{white-space:nowrap;flex-grow:1;grid-column:auto / span 2;padding:0 2px}:host(:not([checked])) .indicator,:host(:not([checked])) ::slotted([slot='indicator']),:host(:not([aria-haspopup='menu'])) .submenu-glyph,:host(:not([aria-haspopup='menu'])) ::slotted([slot='submenu-glyph']){display:none}::slotted([slot='end']){color:${tt};font:${B} ${W} / ${dt} ${m};white-space:nowrap}:host([data-indent='1']){--indent:1}:host([data-indent='2']){--indent:2;grid-template-columns:20px 20px auto auto}:host([aria-haspopup='menu']){grid-template-columns:20px auto auto 20px}:host([data-indent='2'][aria-haspopup='menu']){grid-template-columns:20px 20px auto auto 20px}.indicator,::slotted([slot='indicator']){grid-column:1 / span 1;width:20px}::slotted([slot='start']){display:inline-flex;grid-column:calc(var(--indent)) / span 1}.content{grid-column:calc(var(--indent) + 1) / span 1}::slotted([slot='end']){grid-column:calc(var(--indent) + 2) / span 1;justify-self:end}.submenu-glyph,::slotted([slot='submenu-glyph']){grid-column:-2 / span 1;justify-self:end}@layer popover{:host{anchor-name:--menu-trigger;position:relative}::slotted([popover]){inset-area:inline-end span-block-end;margin:0;max-height:var(--menu-max-height,auto);position:absolute;position-anchor:--menu-trigger;position-try-options:flip-inline,inset-area(block-start);z-index:1}::slotted([popover]:not(:popover-open)){display:none}::slotted([popover]:popover-open){inset:unset}}`.withBehaviors(Z(l`
|
|
448
|
+
:host([disabled]),:host([disabled]) ::slotted([slot='start']),:host([disabled]) ::slotted([slot='end']){color:GrayText}`)),Ah=f.partial('<svg class="indicator" fill="currentColor" aria-hidden="true" width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M14.05 3.49c.28.3.27.77-.04 1.06l-7.93 7.47A.85.85 0 014.9 12L2.22 9.28a.75.75 0 111.06-1.06l2.24 2.27 7.47-7.04a.75.75 0 011.06.04z" fill="currentColor"></path></svg>'),_h=f.partial('<svg class="submenu-glyph" fill="currentColor" aria-hidden="true" width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M5.74 3.2a.75.75 0 00-.04 1.06L9.23 8 5.7 11.74a.75.75 0 101.1 1.02l4-4.25a.75.75 0 000-1.02l-4-4.25a.75.75 0 00-1.06-.04z" fill="currentColor"></path></svg>');function Mh(o={}){return f`<template aria-haspopup="${t=>t.submenu?"menu":void 0}" aria-checked="${t=>t.role!==ft.menuitem?t.checked:void 0}" aria-disabled="${t=>t.disabled}" aria-expanded="${t=>t.submenu?"false":void 0}" @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)}" @toggle="${(t,e)=>t.toggleHandler(e.event)}"><slot name="indicator">${ut(o.indicator)}</slot>${Dt(o)}<div part="content" class="content"><slot></slot></div>${Ht(o)}<slot name="submenu-glyph">${ut(o.submenuGlyph)}</slot><slot name="submenu" ${rt({property:"slottedSubmenu",filter:le("[role='menu']")})}></slot></template>`}const Eh=Mh({indicator:Ah,submenuGlyph:_h}),Lh=Mt.compose({name:`${g.prefix}-menu-item`,template:Eh,styles:Oh});Lh.define(g.registry);var Hh=Object.defineProperty,Dh=Object.getOwnPropertyDescriptor,Nh=(o,t,e,s)=>{for(var i=s>1?void 0:s?Dh(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Hh(t,e,i),i};const Ys=class ei extends x{constructor(){super(...arguments),this.focusIndex=-1,this.isNestedMenu=()=>this.parentElement!==null&&Gi(this.parentElement)&&this.parentElement.getAttribute("role")==="menuitem",this.handleFocusOut=t=>{if(!this.contains(t.relatedTarget)&&this.menuItems!==void 0){const e=this.menuItems.findIndex(this.isFocusableElement);this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.menuItems[e].setAttribute("tabindex","0"),this.focusIndex=e}},this.handleItemFocus=t=>{const e=t.target;this.menuItems!==void 0&&e!==this.menuItems[this.focusIndex]&&(this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=this.menuItems.indexOf(e),e.setAttribute("tabindex","0"))},this.changedMenuItemHandler=t=>{if(this.menuItems===void 0)return;const e=t.target,s=this.menuItems.indexOf(e);if(s!==-1&&e.role==="menuitemradio"&&e.checked===!0){for(let r=s-1;r>=0;--r){const n=this.menuItems[r],h=n.getAttribute("role");if(h===ft.menuitemradio&&(n.checked=!1),h==="separator")break}const i=this.menuItems.length-1;for(let r=s+1;r<=i;++r){const n=this.menuItems[r],h=n.getAttribute("role");if(h===ft.menuitemradio&&(n.checked=!1),h==="separator")break}}},this.isMenuItemElement=t=>t instanceof Mt||Gi(t)&&t.getAttribute("role")in ei.focusableElementRoles,this.isFocusableElement=t=>this.isMenuItemElement(t)}itemsChanged(t,e){this.$fastController.isConnected&&this.menuItems!==void 0&&this.setItems()}connectedCallback(){super.connectedCallback(),St.enqueue(()=>{this.setItems()}),this.addEventListener("change",this.changedMenuItemHandler)}disconnectedCallback(){super.disconnectedCallback(),this.removeItemListeners(),this.menuItems=void 0,this.removeEventListener("change",this.changedMenuItemHandler)}focus(){this.setFocus(0,1)}handleMenuKeyDown(t){if(!(t.defaultPrevented||this.menuItems===void 0))switch(t.key){case xe:this.setFocus(this.focusIndex+1,1);return;case Se:this.setFocus(this.focusIndex-1,-1);return;case So:this.setFocus(this.menuItems.length-1,-1);return;case Io:this.setFocus(0,1);return;default:return!0}}removeItemListeners(t=this.items){t.forEach(e=>{e.removeEventListener("focus",this.handleItemFocus),$.getNotifier(e).unsubscribe(this,"hidden")})}static elementIndent(t){const e=t.getAttribute("role"),s=t.querySelector("[slot=start]");return e&&e!==ft.menuitem?s?2:1:s?1:0}setItems(){const t=Array.from(this.children);this.removeItemListeners(t),t.forEach(n=>$.getNotifier(n).subscribe(this,"hidden"));const e=t.filter(n=>!n.hasAttribute("hidden"));this.menuItems=e;const s=this.menuItems.filter(this.isMenuItemElement);s.length&&(this.focusIndex=0),s.forEach((n,h)=>{n.setAttribute("tabindex",h===0?"0":"-1"),n.addEventListener("focus",this.handleItemFocus)});const i=this.menuItems?.filter(this.isMenuItemElement),r=i?.reduce((n,h)=>{const p=ei.elementIndent(h);return Math.max(n,p)},0);i?.forEach(n=>{n instanceof Mt&&n.setAttribute("data-indent",`${r}`)})}handleChange(t,e){e==="hidden"&&this.setItems()}setFocus(t,e){if(this.menuItems!==void 0)for(;t>=0&&t<this.menuItems.length;){const s=this.menuItems[t];if(this.isFocusableElement(s)){this.focusIndex>-1&&this.menuItems.length>=this.focusIndex-1&&this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=t,s.setAttribute("tabindex","0"),s.focus();break}t+=e}}};Ys.focusableElementRoles=ft,Nh([v],Ys.prototype,"items",2);let Rh=Ys;const Vh=l`
|
|
449
|
+
${w("flex")}
|
|
447
450
|
|
|
448
|
-
:host{flex-direction:column;height:fit-content;max-width:300px;min-width:160px;width:auto;background-color:${_};border:1px solid ${
|
|
449
|
-
${
|
|
451
|
+
:host{flex-direction:column;height:fit-content;max-width:300px;min-width:160px;width:auto;background-color:${_};border:1px solid ${at};border-radius:${F};box-shadow:${Ir};padding:4px;row-gap:2px}`;function jh(){return f`<template slot="${o=>o.slot?o.slot:o.isNestedMenu()?"submenu":void 0}" role="menu" @keydown="${(o,t)=>o.handleMenuKeyDown(t.event)}" @focusout="${(o,t)=>o.handleFocusOut(t.event)}"><slot ${rt("items")}></slot></template>`}const qh=jh(),Gh=Rh.compose({name:`${g.prefix}-menu-list`,template:qh,styles:Vh});Gh.define(g.registry);var Wh=Object.defineProperty,Xh=Object.getOwnPropertyDescriptor,He=(o,t,e,s)=>{for(var i=s>1?void 0:s?Xh(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Wh(t,e,i),i};class fe extends x{constructor(){super(...arguments),this.openOnHover=!1,this.openOnContext=!1,this.closeOnScroll=!1,this.persistOnItemClick=!1,this.slottedMenuList=[],this.slottedTriggers=[],this._open=!1,this.toggleMenu=()=>{this._menuList?.togglePopover(!this._open)},this.closeMenu=()=>{this._menuList?.togglePopover(!1),this.closeOnScroll&&document.removeEventListener("scroll",this.closeMenu)},this.openMenu=t=>{this._menuList?.togglePopover(!0),t&&this.openOnContext&&t.preventDefault(),this.closeOnScroll&&document.addEventListener("scroll",this.closeMenu)},this.toggleHandler=t=>{if(t instanceof ToggleEvent){const e=t.newState==="open";this._trigger?.setAttribute("aria-expanded",`${e}`),this._open=e,this.focusMenuList()}},this.triggerKeydownHandler=t=>{if(t.defaultPrevented)return;switch(t.key){case Po:case Ie:t.preventDefault(),this.toggleMenu();break;default:return!0}},this.documentClickHandler=t=>{t.composedPath().some(e=>e===this._trigger||e===this._menuList)||this.closeMenu()}}connectedCallback(){super.connectedCallback(),St.enqueue(()=>this.setComponent())}disconnectedCallback(){super.disconnectedCallback(),this.removeListeners()}setComponent(){this.$fastController.isConnected&&this.slottedMenuList.length&&this.slottedTriggers.length&&(this._trigger=this.slottedTriggers[0],this._menuList=this.slottedMenuList[0],this._trigger.setAttribute("aria-haspopup","true"),this._trigger.setAttribute("aria-expanded",`${this._open}`),this._menuList.setAttribute("popover",this.openOnContext?"manual":""),this.addListeners())}focusMenuList(){St.enqueue(()=>{this._menuList.focus()})}focusTrigger(){St.enqueue(()=>{this._trigger.focus()})}openOnHoverChanged(t,e){e?this._trigger?.addEventListener("mouseover",this.openMenu):this._trigger?.removeEventListener("mouseover",this.openMenu)}persistOnItemClickChanged(t,e){e?this._menuList?.removeEventListener("click",this.closeMenu):this._menuList?.addEventListener("click",this.closeMenu)}openOnContextChanged(t,e){e?this._trigger?.addEventListener("contextmenu",this.openMenu):this._trigger?.removeEventListener("contextmenu",this.openMenu)}closeOnScrollChanged(t,e){e?document.addEventListener("scroll",this.closeMenu):document.removeEventListener("scroll",this.closeMenu)}addListeners(){this._menuList?.addEventListener("toggle",this.toggleHandler),this._trigger?.addEventListener("keydown",this.triggerKeydownHandler),this.persistOnItemClick||this._menuList?.addEventListener("click",this.closeMenu),this.openOnHover?this._trigger?.addEventListener("mouseover",this.openMenu):this.openOnContext?(this._trigger?.addEventListener("contextmenu",this.openMenu),document.addEventListener("click",this.documentClickHandler)):this._trigger?.addEventListener("click",this.toggleMenu)}removeListeners(){this._menuList?.removeEventListener("toggle",this.toggleHandler),this._trigger?.removeEventListener("keydown",this.triggerKeydownHandler),this.persistOnItemClick||this._menuList?.removeEventListener("click",this.closeMenu),this.openOnHover&&this._trigger?.removeEventListener("mouseover",this.openMenu),this.openOnContext?(this._trigger?.removeEventListener("contextmenu",this.openMenu),document.removeEventListener("click",this.documentClickHandler)):this._trigger?.removeEventListener("click",this.toggleMenu)}menuKeydownHandler(t){if(t.defaultPrevented)return;switch(t.key){case Dn:t.preventDefault(),this._open&&(this.closeMenu(),this.focusTrigger());break;case Nn:this._open&&this.closeMenu(),t.shiftKey&&this.focusTrigger();default:return!0}}}He([v,a({attribute:"open-on-hover",mode:"boolean"})],fe.prototype,"openOnHover",2),He([v,a({attribute:"open-on-context",mode:"boolean"})],fe.prototype,"openOnContext",2),He([v,a({attribute:"close-on-scroll",mode:"boolean"})],fe.prototype,"closeOnScroll",2),He([v,a({attribute:"persist-on-item-click",mode:"boolean"})],fe.prototype,"persistOnItemClick",2),He([v],fe.prototype,"slottedMenuList",2),He([v],fe.prototype,"slottedTriggers",2);const Uh=l`
|
|
452
|
+
${w("inline-block")}
|
|
450
453
|
|
|
451
|
-
::slotted([slot='trigger']){anchor-name:--menu-trigger}::slotted([popover]){inset-area:block-end span-inline-end;margin:0;max-height:var(--menu-max-height,auto);position-anchor:--menu-trigger;position-try-options:flip-block;position:absolute;z-index:1}::slotted([popover]:popover-open){inset:unset}::slotted([popover]:not(:popover-open)){display:none}`;function
|
|
452
|
-
${
|
|
454
|
+
::slotted([slot='trigger']){anchor-name:--menu-trigger}::slotted([popover]){inset-area:block-end span-inline-end;margin:0;max-height:var(--menu-max-height,auto);position-anchor:--menu-trigger;position-try-options:flip-block;position:absolute;z-index:1}::slotted([popover]:popover-open){inset:unset}::slotted([popover]:not(:popover-open)){display:none}`;function Kh(){return f`<template ?open-on-hover="${o=>o.openOnHover}" ?open-on-context="${o=>o.openOnContext}" ?close-on-scroll="${o=>o.closeOnScroll}" ?persist-on-item-click="${o=>o.persistOnItemClick}" @keydown="${(o,t)=>o.menuKeydownHandler(t.event)}"><slot name="trigger" ${rt({property:"slottedTriggers",filter:le()})}></slot><slot ${rt({property:"slottedMenuList",filter:le()})}></slot></template>`}const Yh=Kh(),Qh=fe.compose({name:`${g.prefix}-menu`,template:Yh,styles:Uh});Qh.define(g.registry);var Zh=Object.defineProperty,Jh=Object.getOwnPropertyDescriptor,be=(o,t,e,s)=>{for(var i=s>1?void 0:s?Jh(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Zh(t,e,i),i};class ie extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.validationState=null,this.elementInternals.role="progressbar"}thicknessChanged(t,e){t&&d(this.elementInternals,`${t}`,!1),e&&d(this.elementInternals,`${e}`,!0)}shapeChanged(t,e){t&&d(this.elementInternals,`${t}`,!1),e&&d(this.elementInternals,`${e}`,!0)}validationStateChanged(t,e){t&&d(this.elementInternals,`${t}`,!1),e&&d(this.elementInternals,`${e}`,!0)}valueChanged(t,e){this.elementInternals.ariaValueNow=typeof e=="number"?`${e}`:null}minChanged(t,e){this.elementInternals.ariaValueMin=typeof e=="number"?`${e}`:null}maxChanged(t,e){this.elementInternals.ariaValueMax=typeof e=="number"?`${e}`:null}get percentComplete(){const t=this.min??0,e=this.max??100,s=this.value??0,i=e-t;return i===0?0:Math.fround((s-t)/i*100)}}be([a],ie.prototype,"thickness",2),be([a],ie.prototype,"shape",2),be([a({attribute:"validation-state"})],ie.prototype,"validationState",2),be([a({converter:nt})],ie.prototype,"value",2),be([a({converter:nt})],ie.prototype,"min",2),be([a({converter:nt})],ie.prototype,"max",2),be([pn],ie.prototype,"percentComplete",1);const tu=l`
|
|
455
|
+
${w("block")}
|
|
453
456
|
|
|
454
|
-
:host{width:100%;height:2px;overflow-x:hidden;background-color:${
|
|
455
|
-
to right,${
|
|
456
|
-
);animation-name:indeterminate;animation-duration:3s;animation-timing-function:linear;animation-iteration-count:infinite}:host(${
|
|
457
|
-
:host{background-color:CanvasText}.indicator,:host(:is(${ze},${Fe},${Or})) .indicator{background-color:Highlight}`));function qh(){return g`<div class="indicator" part="indicator" style="${s=>typeof s.value=="number"?`width: ${s.percentComplete}%`:void 0}"></div>`}const Gh=qh(),Wh=ie.compose({name:`${f.prefix}-progress-bar`,template:Gh,styles:jh});Wh.define(f.registry);const qr="form-associated-proxy",Gr="ElementInternals",Wr=Gr in window&&"setFormValue"in window[Gr].prototype,Ur=new WeakMap;function Xr(s){const t=class extends s{constructor(...e){super(...e),this.dirtyValue=!1,this.initialValue="",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 Wr}get validity(){return this.elementInternals?this.elementInternals.validity:this.proxy.validity}get form(){return this.elementInternals?this.elementInternals.form:this.proxy.form}get validationMessage(){return this.elementInternals?this.elementInternals.validationMessage:this.proxy.validationMessage}get willValidate(){return this.elementInternals?this.elementInternals.willValidate:this.proxy.willValidate}get labels(){if(this.elementInternals)return Object.freeze(Array.from(this.elementInternals.labels));if(this.proxy instanceof HTMLElement&&this.proxy.ownerDocument&&this.id){const e=this.proxy.labels,o=Array.from(this.proxy.getRootNode().querySelectorAll(`[for='${this.id}']`)),i=e?o.concat(Array.from(e)):o;return Object.freeze(i)}else return ti}valueChanged(e,o){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(e,o){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}disabledChanged(e,o){this.proxy instanceof HTMLElement&&(this.proxy.disabled=this.disabled),Mt.enqueue(()=>this.classList.toggle("disabled",this.disabled))}nameChanged(e,o){this.proxy instanceof HTMLElement&&(this.proxy.name=this.name)}requiredChanged(e,o){this.proxy instanceof HTMLElement&&(this.proxy.required=this.required),Mt.enqueue(()=>this.classList.toggle("required",this.required)),this.validate()}get elementInternals(){if(!Wr)return null;let e=Ur.get(this);return e||(e=this.attachInternals(),Ur.set(this,e)),e}connectedCallback(){super.connectedCallback(),this.addEventListener("keypress",this._keypressHandler),this.value||(this.value=this.initialValue,this.dirtyValue=!1),this.elementInternals||(this.attachProxy(),this.form&&this.form.addEventListener("reset",this.formResetCallback))}disconnectedCallback(){this.proxyEventsToBlock.forEach(e=>this.proxy.removeEventListener(e,this.stopPropagation)),!this.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(e,o,i){this.elementInternals?this.elementInternals.setValidity(e,o,i):typeof o=="string"&&this.proxy.setCustomValidity(o)}formDisabledCallback(e){this.disabled=e}formResetCallback(){this.value=this.initialValue,this.dirtyValue=!1}attachProxy(){this.proxyInitialized||(this.proxyInitialized=!0,this.proxy.style.display="none",this.proxyEventsToBlock.forEach(e=>this.proxy.addEventListener(e,this.stopPropagation)),this.proxy.disabled=this.disabled,this.proxy.required=this.required,typeof this.name=="string"&&(this.proxy.name=this.name),typeof this.value=="string"&&(this.proxy.value=this.value),this.proxy.setAttribute("slot",qr),this.proxySlot=document.createElement("slot"),this.proxySlot.setAttribute("name",qr)),this.shadowRoot?.appendChild(this.proxySlot),this.appendChild(this.proxy)}detachProxy(){this.removeChild(this.proxy),this.shadowRoot?.removeChild(this.proxySlot)}validate(e){this.proxy instanceof HTMLElement&&this.setValidity(this.proxy.validity,this.proxy.validationMessage,e)}setFormValue(e,o){this.elementInternals&&this.elementInternals.setFormValue(e,o||e)}_keypressHandler(e){switch(e.key){case Se:this.form instanceof HTMLFormElement&&this.form.querySelector("[type=submit]")?.click();break}}stopPropagation(e){e.stopPropagation()}};return a({mode:"boolean"})(t.prototype,"disabled"),a({mode:"fromView",attribute:"value"})(t.prototype,"initialValue"),a({attribute:"current-value"})(t.prototype,"currentValue"),a(t.prototype,"name"),a({mode:"boolean"})(t.prototype,"required"),$(t.prototype,"value"),t}function Uh(s){class t extends Xr(s){}class e extends t{constructor(...i){super(i),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(i,r){this.dirtyChecked||(this.dirtyChecked=!0),this.currentChecked=this.checked,this.updateForm(),this.proxy instanceof HTMLInputElement&&(this.proxy.checked=this.checked),i!==void 0&&this.$emit("change"),this.validate()}currentCheckedChanged(i,r){this.checked=this.currentChecked}updateForm(){const i=this.checked?this.value:null;this.setFormValue(i,i)}connectedCallback(){super.connectedCallback(),this.updateForm()}formResetCallback(){super.formResetCallback(),this.checked=!!this.checkedAttribute,this.dirtyChecked=!1}}return a({attribute:"checked",mode:"boolean"})(e.prototype,"checkedAttribute"),a({attribute:"current-checked",converter:Bi})(e.prototype,"currentChecked"),$(e.prototype,"defaultChecked"),$(e.prototype,"checked"),e}class Xh extends x{}class Kh extends Uh(Xh){constructor(){super(...arguments),this.proxy=document.createElement("input")}}var Yh=Object.defineProperty,Qh=Object.getOwnPropertyDescriptor,Kr=(s,t,e,o)=>{for(var i=o>1?void 0:o?Qh(t,e):t,r=s.length-1,n;r>=0;r--)(n=s[r])&&(i=(o?n(t,e,i):n(i))||i);return o&&i&&Yh(t,e,i),i};class Kt extends Kh{constructor(){super(),this.initialValue="on",this.proxy.setAttribute("type","radio")}get radioGroup(){return this.closest("[role=radiogroup]")}defaultCheckedChanged(){this.$fastController.isConnected&&!this.dirtyChecked&&(this.isInsideRadioGroup()||(this.checked=this.defaultChecked??!1,this.dirtyChecked=!1))}connectedCallback(){super.connectedCallback(),this.validate(),this.parentElement?.getAttribute("role")!=="radiogroup"&&this.getAttribute("tabindex")===null&&(this.disabled||this.setAttribute("tabindex","0")),this.checkedAttribute&&(this.dirtyChecked||this.isInsideRadioGroup()||(this.checked=this.defaultChecked??!1,this.dirtyChecked=!1))}isInsideRadioGroup(){return this.radioGroup!==null}keypressHandler(t){switch(t.key){case wo:!this.checked&&!this.radioGroup?.readOnly&&(this.checked=!0);return}return!0}}Kr([$],Kt.prototype,"name",2),Kr([$],Kt.prototype,"defaultSlottedNodes",2);const Yr=Q;var Zh=Object.defineProperty,Jh=Object.getOwnPropertyDescriptor,re=(s,t,e,o)=>{for(var i=o>1?void 0:o?Jh(t,e):t,r=s.length-1,n;r>=0;r--)(n=s[r])&&(i=(o?n(t,e,i):n(i))||i);return o&&i&&Zh(t,e,i),i};class Yt extends x{constructor(){super(...arguments),this.stacked=!1,this.orientation=Yr.horizontal,this.radioChangeHandler=t=>{const e=t.target;e.checked&&(this.slottedRadioButtons.forEach(o=>{o instanceof Kt&&o!==e&&(o.checked=!1,this.isInsideFoundationToolbar||o.setAttribute("tabindex","-1"))}),this.selectedRadio=e,this.value=e.value,e.setAttribute("tabindex","0"),this.focusedRadio=e),t.stopPropagation()},this.moveToRadioByIndex=(t,e)=>{const o=t[e];this.isInsideToolbar||(o.setAttribute("tabindex","0"),o.checked=!0,this.selectedRadio=o),this.focusedRadio=o,o.focus()},this.moveRightOffGroup=()=>{this.nextElementSibling?.focus()},this.moveLeftOffGroup=()=>{this.previousElementSibling?.focus()},this.focusOutHandler=t=>{const e=this.slottedRadioButtons,o=t.target,i=o!==null?e.indexOf(o):0,r=this.focusedRadio?e.indexOf(this.focusedRadio):-1;return(r===0&&i===r||r===e.length-1&&r===i)&&(this.selectedRadio?(this.focusedRadio=this.selectedRadio,this.isInsideFoundationToolbar||(this.selectedRadio.setAttribute("tabindex","0"),e.forEach(n=>{n!==this.selectedRadio&&n.setAttribute("tabindex","-1")}))):(this.focusedRadio=e[0],this.focusedRadio.setAttribute("tabindex","0"),e.forEach(n=>{o instanceof Kt&&n!==this.focusedRadio&&n.setAttribute("tabindex","-1")}))),!0},this.handleDisabledClick=t=>{if(this.disabled){t.preventDefault();return}return!0},this.clickHandler=t=>{if(this.disabled)return;t.preventDefault();const e=t.target;e&&e instanceof Kt&&(e.checked=!0,e.setAttribute("tabindex","0"),this.selectedRadio=e,this.focusedRadio=e)},this.shouldMoveOffGroupToTheRight=(t,e,o)=>t===e.length&&this.isInsideToolbar&&o===we,this.shouldMoveOffGroupToTheLeft=(t,e)=>(this.focusedRadio?t.indexOf(this.focusedRadio)-1:0)<0&&this.isInsideToolbar&&e===xe,this.checkFocusedRadio=()=>{this.focusedRadio!==null&&!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 o=0;if(o=this.focusedRadio?e.indexOf(this.focusedRadio)+1:1,this.shouldMoveOffGroupToTheRight(o,e,t.key)){this.moveRightOffGroup();return}else o===e.length&&(o=0);for(;o<e.length&&e.length>1;)if(e[o].disabled){if(this.focusedRadio&&o===e.indexOf(this.focusedRadio))break;if(o+1>=e.length){if(this.isInsideToolbar)break;o=0}else o+=1}else{this.moveToRadioByIndex(e,o);break}},this.moveLeft=t=>{const e=this.slottedRadioButtons;let o=0;if(o=this.focusedRadio?e.indexOf(this.focusedRadio)-1:0,o=o<0?e.length-1:o,this.shouldMoveOffGroupToTheLeft(e,t.key)){this.moveLeftOffGroup();return}for(;o>=0&&e.length>1;)if(e[o].disabled){if(this.focusedRadio&&o===e.indexOf(this.focusedRadio))break;o-1<0?o=e.length-1:o-=1}else{this.moveToRadioByIndex(e,o);break}},this.keydownHandler=t=>{const e=t.key;if(e in Mn&&(this.isInsideFoundationToolbar||this.disabled))return!0;switch(e){case Se:{this.checkFocusedRadio();break}case we:case ke:{this.direction===dt.ltr?this.moveRight(t):this.moveLeft(t);break}case xe:case Ce:{this.direction===dt.ltr?this.moveLeft(t):this.moveRight(t);break}default:return!0}}}nameChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach(t=>{t.setAttribute("name",this.name)})}valueChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach(t=>{t instanceof Kt&&t.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(){return this.parentToolbar??!1}get isInsideFoundationToolbar(){return!!this.parentToolbar?.hasOwnProperty("$fastController")}connectedCallback(){super.connectedCallback(),this.direction=Di(this),this.setupRadioButtons()}disconnectedCallback(){this.slottedRadioButtons.forEach(t=>{t instanceof Kt&&t.removeEventListener("change",this.radioChangeHandler)})}setupRadioButtons(){const t=this.slottedRadioButtons.filter(i=>i.hasAttribute("checked")),e=t?t.length:0;if(e>1){const i=t[e-1];i.checked=!0}let o=!1;if(this.slottedRadioButtons.forEach(i=>{i instanceof Kt&&(this.name!==void 0&&i.setAttribute("name",this.name),this.value&&this.value===i.value?(this.selectedRadio=i,this.focusedRadio=i,i.checked=!0,i.setAttribute("tabindex","0"),o=!0):(this.isInsideFoundationToolbar||i.setAttribute("tabindex","-1"),i.checked=!1),i.addEventListener("change",this.radioChangeHandler))}),this.value===void 0&&this.slottedRadioButtons.length>0){const i=this.slottedRadioButtons.filter(n=>n.hasAttribute("checked")),r=i!==null?i.length:0;if(r>0&&!o){const n=i[r-1];n.checked=!0,this.focusedRadio=n,n.setAttribute("tabindex","0")}else this.slottedRadioButtons[0].setAttribute("tabindex","0"),this.focusedRadio=this.slottedRadioButtons[0]}}}re([a({mode:"boolean"})],Yt.prototype,"stacked",2),re([a({attribute:"readonly",mode:"boolean"})],Yt.prototype,"readOnly",2),re([a({attribute:"disabled",mode:"boolean"})],Yt.prototype,"disabled",2),re([a],Yt.prototype,"name",2),re([a],Yt.prototype,"value",2),re([a],Yt.prototype,"orientation",2),re([$],Yt.prototype,"childItems",2),re([$],Yt.prototype,"slottedRadioButtons",2);const tu=l`
|
|
458
|
-
${
|
|
457
|
+
:host{width:100%;height:2px;overflow-x:hidden;background-color:${Ao};border-radius:${F};contain:content}:host(${E}){height:4px}:host(${Xo}){border-radius:${Es}}.indicator{background-color:${Ve};border-radius:inherit;height:100%}:host([value]) .indicator{transition:all 0.2s ease-in-out}:host(:not([value])) .indicator{position:relative;width:33%;background-image:linear-gradient(
|
|
458
|
+
to right,${Ao} 0%,${mt} 50%,${Ao} 100%
|
|
459
|
+
);animation-name:indeterminate;animation-duration:3s;animation-timing-function:linear;animation-iteration-count:infinite}:host(${Hr}) .indicator{background-color:${lr}}:host(${Oe}) .indicator{background-color:${ur}}:host(${Fe}) .indicator{background-color:${hr}}@layer animations{@media (prefers-reduced-motion:no-preference){:host([value]){transition:none}:host(:not([value])) .indicator{animation-duration:0.01ms;animation-iteration-count:1}}}@keyframes indeterminate{0%{inset-inline-start:-33%}100%{inset-inline-start:100%}}`.withBehaviors(Z(l`
|
|
460
|
+
:host{background-color:CanvasText}.indicator,:host(:is(${Fe},${Oe},${Hr})) .indicator{background-color:Highlight}`));function eu(){return f`<div class="indicator" part="indicator" style="${o=>typeof o.value=="number"?`width: ${o.percentComplete}%`:void 0}"></div>`}const ou=eu(),su=ie.compose({name:`${g.prefix}-progress-bar`,template:ou,styles:tu});su.define(g.registry);const Yr="form-associated-proxy",Qr="ElementInternals",Zr=Qr in window&&"setFormValue"in window[Qr].prototype,Jr=new WeakMap;function tn(o){const t=class extends o{constructor(...e){super(...e),this.dirtyValue=!1,this.initialValue="",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 Zr}get validity(){return this.elementInternals?this.elementInternals.validity:this.proxy.validity}get form(){return this.elementInternals?this.elementInternals.form:this.proxy.form}get validationMessage(){return this.elementInternals?this.elementInternals.validationMessage:this.proxy.validationMessage}get willValidate(){return this.elementInternals?this.elementInternals.willValidate:this.proxy.willValidate}get labels(){if(this.elementInternals)return Object.freeze(Array.from(this.elementInternals.labels));if(this.proxy instanceof HTMLElement&&this.proxy.ownerDocument&&this.id){const e=this.proxy.labels,s=Array.from(this.proxy.getRootNode().querySelectorAll(`[for='${this.id}']`)),i=e?s.concat(Array.from(e)):s;return Object.freeze(i)}else return ni}valueChanged(e,s){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(e,s){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}disabledChanged(e,s){this.proxy instanceof HTMLElement&&(this.proxy.disabled=this.disabled),St.enqueue(()=>this.classList.toggle("disabled",this.disabled))}nameChanged(e,s){this.proxy instanceof HTMLElement&&(this.proxy.name=this.name)}requiredChanged(e,s){this.proxy instanceof HTMLElement&&(this.proxy.required=this.required),St.enqueue(()=>this.classList.toggle("required",this.required)),this.validate()}get elementInternals(){if(!Zr)return null;let e=Jr.get(this);return e||(e=this.attachInternals(),Jr.set(this,e)),e}connectedCallback(){super.connectedCallback(),this.addEventListener("keypress",this._keypressHandler),this.value||(this.value=this.initialValue,this.dirtyValue=!1),this.elementInternals||(this.attachProxy(),this.form&&this.form.addEventListener("reset",this.formResetCallback))}disconnectedCallback(){this.proxyEventsToBlock.forEach(e=>this.proxy.removeEventListener(e,this.stopPropagation)),!this.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(e,s,i){this.elementInternals?this.elementInternals.setValidity(e,s,i):typeof s=="string"&&this.proxy.setCustomValidity(s)}formDisabledCallback(e){this.disabled=e}formResetCallback(){this.value=this.initialValue,this.dirtyValue=!1}attachProxy(){this.proxyInitialized||(this.proxyInitialized=!0,this.proxy.style.display="none",this.proxyEventsToBlock.forEach(e=>this.proxy.addEventListener(e,this.stopPropagation)),this.proxy.disabled=this.disabled,this.proxy.required=this.required,typeof this.name=="string"&&(this.proxy.name=this.name),typeof this.value=="string"&&(this.proxy.value=this.value),this.proxy.setAttribute("slot",Yr),this.proxySlot=document.createElement("slot"),this.proxySlot.setAttribute("name",Yr)),this.shadowRoot?.appendChild(this.proxySlot),this.appendChild(this.proxy)}detachProxy(){this.removeChild(this.proxy),this.shadowRoot?.removeChild(this.proxySlot)}validate(e){this.proxy instanceof HTMLElement&&this.setValidity(this.proxy.validity,this.proxy.validationMessage,e)}setFormValue(e,s){this.elementInternals&&this.elementInternals.setFormValue(e,s||e)}_keypressHandler(e){switch(e.key){case Ie:this.form instanceof HTMLFormElement&&this.form.querySelector("[type=submit]")?.click();break}}stopPropagation(e){e.stopPropagation()}};return a({mode:"boolean"})(t.prototype,"disabled"),a({mode:"fromView",attribute:"value"})(t.prototype,"initialValue"),a({attribute:"current-value"})(t.prototype,"currentValue"),a(t.prototype,"name"),a({mode:"boolean"})(t.prototype,"required"),v(t.prototype,"value"),t}function iu(o){class t extends tn(o){}class e extends t{constructor(...i){super(i),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(i,r){this.dirtyChecked||(this.dirtyChecked=!0),this.currentChecked=this.checked,this.updateForm(),this.proxy instanceof HTMLInputElement&&(this.proxy.checked=this.checked),i!==void 0&&this.$emit("change"),this.validate()}currentCheckedChanged(i,r){this.checked=this.currentChecked}updateForm(){const i=this.checked?this.value:null;this.setFormValue(i,i)}connectedCallback(){super.connectedCallback(),this.updateForm()}formResetCallback(){super.formResetCallback(),this.checked=!!this.checkedAttribute,this.dirtyChecked=!1}}return a({attribute:"checked",mode:"boolean"})(e.prototype,"checkedAttribute"),a({attribute:"current-checked",converter:_i})(e.prototype,"currentChecked"),v(e.prototype,"defaultChecked"),v(e.prototype,"checked"),e}class ru extends x{}class nu extends iu(ru){constructor(){super(...arguments),this.proxy=document.createElement("input")}}var au=Object.defineProperty,lu=Object.getOwnPropertyDescriptor,en=(o,t,e,s)=>{for(var i=s>1?void 0:s?lu(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&au(t,e,i),i};class Kt extends nu{constructor(){super(),this.initialValue="on",this.proxy.setAttribute("type","radio")}get radioGroup(){return this.closest("[role=radiogroup]")}defaultCheckedChanged(){this.$fastController.isConnected&&!this.dirtyChecked&&(this.isInsideRadioGroup()||(this.checked=this.defaultChecked??!1,this.dirtyChecked=!1))}connectedCallback(){super.connectedCallback(),this.validate(),this.parentElement?.getAttribute("role")!=="radiogroup"&&this.getAttribute("tabindex")===null&&(this.disabled||this.setAttribute("tabindex","0")),this.checkedAttribute&&(this.dirtyChecked||this.isInsideRadioGroup()||(this.checked=this.defaultChecked??!1,this.dirtyChecked=!1))}isInsideRadioGroup(){return this.radioGroup!==null}keypressHandler(t){switch(t.key){case Po:!this.checked&&!this.radioGroup?.readOnly&&(this.checked=!0);return}return!0}}en([v],Kt.prototype,"name",2),en([v],Kt.prototype,"defaultSlottedNodes",2);const on=Q;var cu=Object.defineProperty,du=Object.getOwnPropertyDescriptor,re=(o,t,e,s)=>{for(var i=s>1?void 0:s?du(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&cu(t,e,i),i};class Yt extends x{constructor(){super(...arguments),this.stacked=!1,this.orientation=on.horizontal,this.radioChangeHandler=t=>{const e=t.target;e.checked&&(this.slottedRadioButtons.forEach(s=>{s instanceof Kt&&s!==e&&(s.checked=!1,this.isInsideFoundationToolbar||s.setAttribute("tabindex","-1"))}),this.selectedRadio=e,this.value=e.value,e.setAttribute("tabindex","0"),this.focusedRadio=e),t.stopPropagation()},this.moveToRadioByIndex=(t,e)=>{const s=t[e];this.isInsideToolbar||(s.setAttribute("tabindex","0"),s.checked=!0,this.selectedRadio=s),this.focusedRadio=s,s.focus()},this.moveRightOffGroup=()=>{this.nextElementSibling?.focus()},this.moveLeftOffGroup=()=>{this.previousElementSibling?.focus()},this.focusOutHandler=t=>{const e=this.slottedRadioButtons,s=t.target,i=s!==null?e.indexOf(s):0,r=this.focusedRadio?e.indexOf(this.focusedRadio):-1;return(r===0&&i===r||r===e.length-1&&r===i)&&(this.selectedRadio?(this.focusedRadio=this.selectedRadio,this.isInsideFoundationToolbar||(this.selectedRadio.setAttribute("tabindex","0"),e.forEach(n=>{n!==this.selectedRadio&&n.setAttribute("tabindex","-1")}))):(this.focusedRadio=e[0],this.focusedRadio.setAttribute("tabindex","0"),e.forEach(n=>{s instanceof Kt&&n!==this.focusedRadio&&n.setAttribute("tabindex","-1")}))),!0},this.handleDisabledClick=t=>{if(this.disabled){t.preventDefault();return}return!0},this.clickHandler=t=>{if(this.disabled)return;t.preventDefault();const e=t.target;e&&e instanceof Kt&&(e.checked=!0,e.setAttribute("tabindex","0"),this.selectedRadio=e,this.focusedRadio=e)},this.shouldMoveOffGroupToTheRight=(t,e,s)=>t===e.length&&this.isInsideToolbar&&s===Ce,this.shouldMoveOffGroupToTheLeft=(t,e)=>(this.focusedRadio?t.indexOf(this.focusedRadio)-1:0)<0&&this.isInsideToolbar&&e===we,this.checkFocusedRadio=()=>{this.focusedRadio!==null&&!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 s=0;if(s=this.focusedRadio?e.indexOf(this.focusedRadio)+1:1,this.shouldMoveOffGroupToTheRight(s,e,t.key)){this.moveRightOffGroup();return}else s===e.length&&(s=0);for(;s<e.length&&e.length>1;)if(e[s].disabled){if(this.focusedRadio&&s===e.indexOf(this.focusedRadio))break;if(s+1>=e.length){if(this.isInsideToolbar)break;s=0}else s+=1}else{this.moveToRadioByIndex(e,s);break}},this.moveLeft=t=>{const e=this.slottedRadioButtons;let s=0;if(s=this.focusedRadio?e.indexOf(this.focusedRadio)-1:0,s=s<0?e.length-1:s,this.shouldMoveOffGroupToTheLeft(e,t.key)){this.moveLeftOffGroup();return}for(;s>=0&&e.length>1;)if(e[s].disabled){if(this.focusedRadio&&s===e.indexOf(this.focusedRadio))break;s-1<0?s=e.length-1:s-=1}else{this.moveToRadioByIndex(e,s);break}},this.keydownHandler=t=>{const e=t.key;if(e in Rn&&(this.isInsideFoundationToolbar||this.disabled))return!0;switch(e){case Ie:{this.checkFocusedRadio();break}case Ce:case xe:{this.direction===ht.ltr?this.moveRight(t):this.moveLeft(t);break}case we:case Se:{this.direction===ht.ltr?this.moveLeft(t):this.moveRight(t);break}default:return!0}}}nameChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach(t=>{t.setAttribute("name",this.name)})}valueChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach(t=>{t instanceof Kt&&t.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(){return this.parentToolbar??!1}get isInsideFoundationToolbar(){return!!this.parentToolbar?.hasOwnProperty("$fastController")}connectedCallback(){super.connectedCallback(),this.direction=Wi(this),this.setupRadioButtons()}disconnectedCallback(){this.slottedRadioButtons.forEach(t=>{t instanceof Kt&&t.removeEventListener("change",this.radioChangeHandler)})}setupRadioButtons(){const t=this.slottedRadioButtons.filter(i=>i.hasAttribute("checked")),e=t?t.length:0;if(e>1){const i=t[e-1];i.checked=!0}let s=!1;if(this.slottedRadioButtons.forEach(i=>{i instanceof Kt&&(this.name!==void 0&&i.setAttribute("name",this.name),this.value&&this.value===i.value?(this.selectedRadio=i,this.focusedRadio=i,i.checked=!0,i.setAttribute("tabindex","0"),s=!0):(this.isInsideFoundationToolbar||i.setAttribute("tabindex","-1"),i.checked=!1),i.addEventListener("change",this.radioChangeHandler))}),this.value===void 0&&this.slottedRadioButtons.length>0){const i=this.slottedRadioButtons.filter(n=>n.hasAttribute("checked")),r=i!==null?i.length:0;if(r>0&&!s){const n=i[r-1];n.checked=!0,this.focusedRadio=n,n.setAttribute("tabindex","0")}else this.slottedRadioButtons[0].setAttribute("tabindex","0"),this.focusedRadio=this.slottedRadioButtons[0]}}}re([a({mode:"boolean"})],Yt.prototype,"stacked",2),re([a({attribute:"readonly",mode:"boolean"})],Yt.prototype,"readOnly",2),re([a({attribute:"disabled",mode:"boolean"})],Yt.prototype,"disabled",2),re([a],Yt.prototype,"name",2),re([a],Yt.prototype,"value",2),re([a],Yt.prototype,"orientation",2),re([v],Yt.prototype,"childItems",2),re([v],Yt.prototype,"slottedRadioButtons",2);const hu=l`
|
|
461
|
+
${w("flex")}
|
|
459
462
|
|
|
460
|
-
:host{align-items:flex-start;flex-direction:column;row-gap:${U}}:host([disabled]) ::slotted([role='radio']){--control-border-color:${k};--checked-indicator-background-color:${k};--state-color:${k}}::slotted([slot='label']){color:${A};padding:${U} ${
|
|
461
|
-
${
|
|
463
|
+
:host{align-items:flex-start;flex-direction:column;row-gap:${U}}:host([disabled]) ::slotted([role='radio']){--control-border-color:${k};--checked-indicator-background-color:${k};--state-color:${k}}::slotted([slot='label']){color:${A};padding:${U} ${Tt} ${U} ${Gt};font:${B} ${P} / ${M} ${m};cursor:default}.positioning-region{display:flex;flex-wrap:wrap}:host([orientation='vertical']) .positioning-region{flex-direction:column;justify-content:flex-start}:host([orientation='horizontal']) .positioning-region{flex-direction:row}:host([orientation='horizontal']) ::slotted([role='radio']){padding-inline-end:${Tt}}:host([orientation='horizontal'][stacked]) ::slotted([role='radio']){display:flex;flex-direction:column;padding-inline:${Tt};height:auto;align-items:center;justify-content:center}:host([disabled]) ::slotted([role='radio']){pointer-events:none}`;function uu(){return f`<template role="radiogroup" tabindex="${o=>o.disabled?-1:void 0}" aria-disabled="${o=>o.disabled}" aria-readonly="${o=>o.readOnly}" aria-orientation="${o=>o.orientation}" @click="${(o,t)=>o.clickHandler(t.event)}" @mousedown="${(o,t)=>o.handleDisabledClick(t.event)}" @keydown="${(o,t)=>o.keydownHandler(t.event)}" @focusout="${(o,t)=>o.focusOutHandler(t.event)}"><slot name="label"></slot><div class="positioning-region ${o=>o.orientation===on.horizontal?"horizontal":"vertical"}" part="positioning-region"><slot ${rt({property:"slottedRadioButtons",filter:le("[role=radio]")})}></slot></div></template>`}const pu=uu(),gu=Yt.compose({name:`${g.prefix}-radio-group`,template:pu,styles:hu});gu.define(g.registry);const fu=l`
|
|
464
|
+
${w("inline-grid")}
|
|
462
465
|
|
|
463
|
-
:host{grid-auto-flow:column;grid-template-columns:max-content;gap:${Gt};align-items:center;height:32px;cursor:pointer;outline:none;position:relative;user-select:none;color:blue;color:var(--state-color,${tt});padding-inline-end:${
|
|
464
|
-
:host .control{border-color:InactiveBorder}:host([aria-checked='true']) .checked-indicator,:host([aria-checked='true']:active) .checked-indicator,:host([aria-checked='true']:hover) .checked-indicator{background-color:Highlight;border-color:ActiveBorder}`));function
|
|
465
|
-
:host{--step-rate:${t}%;color:blue}`,this.$fastController.addStyles(this.stepStyles)}else this.stepStyles!==void 0&&this.$fastController.removeStyles(this.stepStyles)}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){if(this.$fastController.isConnected){const
|
|
466
|
-
${
|
|
466
|
+
:host{grid-auto-flow:column;grid-template-columns:max-content;gap:${Gt};align-items:center;height:32px;cursor:pointer;outline:none;position:relative;user-select:none;color:blue;color:var(--state-color,${tt});padding-inline-end:${Tt};--control-border-color:${jt};--checked-indicator-background-color:${Ki};--state-color:${tt}}:host([disabled]){--control-border-color:${k};--checked-indicator-background-color:${k};--state-color:${k}}.label{cursor:pointer;font-family:${m};font-size:${P};font-weight:${B};line-height:${M}}.label__hidden{display:none}.control{box-sizing:border-box;align-items:center;border:1px solid var(--control-border-color,${jt});border-radius:${lt};display:flex;height:16px;justify-content:center;margin:${U} ${Tt};position:relative;width:16px;justify-self:center}.checked-indicator{border-radius:${lt};height:10px;opacity:0;width:10px}:host([aria-checked='false']:hover) .control{color:${Rt}}:host(:focus-visible){border-radius:${$t};box-shadow:0 0 0 3px ${Bt};outline:1px solid ${Eo}}:host(:hover) .control{border-color:${Ge}}:host(:active) .control{border-color:${We}}:host([aria-checked='true']) .checked-indicator{opacity:1}:host([aria-checked='true']) .control{border-color:var(--control-border-color,${jt})}:host([aria-checked='true']) .checked-indicator{background-color:var(--checked-indicator-background-color,${Ki})}:host([aria-checked='true']:hover) .control{border-color:${As}}:host([aria-checked='true']:hover) .checked-indicator{background-color:${As}}:host([aria-checked='true']:active) .control{border-color:${_s}}:host([aria-checked='true']:active) .checked-indicator{background:${Qi}}:host([disabled]){color:${k};pointer-events:none}:host([disabled]) .control{pointer-events:none;border-color:${k}}:host([disabled]) .checked-indicator{background:${k}}`.withBehaviors(Z(l`
|
|
467
|
+
:host .control{border-color:InactiveBorder}:host([aria-checked='true']) .checked-indicator,:host([aria-checked='true']:active) .checked-indicator,:host([aria-checked='true']:hover) .checked-indicator{background-color:Highlight;border-color:ActiveBorder}`));function bu(o={}){return f`<template role="radio" aria-checked="${t=>t.checked}" aria-required="${t=>t.required}" aria-disabled="${t=>t.disabled}" @keypress="${(t,e)=>t.keypressHandler(e.event)}"><div part="control" class="control"><slot name="checked-indicator">${ut(o.checkedIndicator)}</slot></div><label part="label" class="${t=>["label",!t.defaultSlottedNodes?.length&&"label__hidden"].filter(Boolean).join(" ")}"><slot ${rt({property:"defaultSlottedNodes",filter:Xi})}></slot></label></template>`}const mu=bu({checkedIndicator:f`<div part="checked-indicator" class="checked-indicator"></div>`}),$u=Kt.compose({name:`${g.prefix}-radio`,template:mu,styles:fu});$u.define(g.registry);const vu={singleValue:"single-value"};class yu extends x{}class ku extends tn(yu){constructor(){super(...arguments),this.proxy=document.createElement("input")}}function sn(o,t,e,s){let i=xs(0,1,(o-t)/(e-t));return s===ht.rtl&&(i=1-i),i}var xu=Object.defineProperty,wu=Object.getOwnPropertyDescriptor,K=(o,t,e,s)=>{for(var i=s>1?void 0:s?wu(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&xu(t,e,i),i};class q extends ku{constructor(){super(...arguments),this.direction=ht.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.orientation=Q.horizontal,this.mode=vu.singleValue,this.keypressHandler=t=>{if(!(this.readOnly||this.disabled)){if(t.key===Io)t.preventDefault(),this.direction!==ht.rtl&&this.orientation!==Q.vertical?this.value=`${this.min}`:this.value=`${this.max}`;else if(t.key===So)t.preventDefault(),this.direction!==ht.rtl&&this.orientation!==Q.vertical?this.value=`${this.max}`:this.value=`${this.min}`;else if(!t.shiftKey)switch(t.key){case Ce:case Se:t.preventDefault(),this.increment();break;case we:case xe:t.preventDefault(),this.decrement();break}}},this.setupTrackConstraints=()=>{const t=this.track.getBoundingClientRect();this.trackWidth=this.track.clientWidth,this.trackMinWidth=this.track.clientLeft,this.trackHeight=t.top,this.trackMinHeight=t.bottom,this.trackLeft=this.getBoundingClientRect().left,this.trackWidth===0&&(this.trackWidth=1)},this.setupListeners=(t=!1)=>{this.addEventListener("keydown",this.keypressHandler),this.addEventListener("mousedown",this.handleMouseDown),t&&(this.removeEventListener("keydown",this.keypressHandler),this.removeEventListener("mousedown",this.handleMouseDown))},this.initialValue="",this.handleThumbMouseDown=t=>{const e=t!==null?window.addEventListener:window.removeEventListener;e("mouseup",this.handleWindowMouseUp),e("mousemove",this.handleMouseMove,{passive:!0}),e("touchmove",this.handleMouseMove,{passive:!0}),e("touchend",this.handleWindowMouseUp),this.isDragging=t!==null},this.handleMouseMove=t=>{if(this.readOnly||this.disabled||t.defaultPrevented)return;const e=window.TouchEvent&&t instanceof TouchEvent?t.touches[0]:t,s=this.orientation===Q.horizontal?e.pageX-document.documentElement.scrollLeft-this.trackLeft:e.pageY-document.documentElement.scrollTop;this.value=`${this.calculateNewValue(s)}`},this.handleWindowMouseUp=t=>{this.stopDragging()},this.stopDragging=()=>{this.isDragging=!1,this.handleMouseDown(null),this.handleThumbMouseDown(null)},this.handleMouseDown=t=>{if(t===null||!this.disabled&&!this.readOnly){const e=t!==null?window.addEventListener:window.removeEventListener,s=t!==null?document.addEventListener:document.removeEventListener;if(e("mouseup",this.handleWindowMouseUp),s("mouseleave",this.handleWindowMouseUp),e("mousemove",this.handleMouseMove),t){this.setupTrackConstraints();const i=this.orientation===Q.horizontal?t.pageX-document.documentElement.scrollLeft-this.trackLeft:t.pageY-document.documentElement.scrollTop;this.value=`${this.calculateNewValue(i)}`}}}}handleChange(t,e){switch(e){case"min":case"max":case"step":this.handleStepStyles();break}}handleStepStyles(){if(this.step){const t=100/Math.floor((this.max-this.min)/this.step);this.stepStyles!==void 0&&this.$fastController.removeStyles(this.stepStyles),this.stepStyles=l`
|
|
468
|
+
:host{--step-rate:${t}%;color:blue}`,this.$fastController.addStyles(this.stepStyles)}else this.stepStyles!==void 0&&this.$fastController.removeStyles(this.stepStyles)}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){if(this.$fastController.isConnected){const s=parseFloat(e),i=xs(this.min,this.max,this.convertToConstrainedValue(s)).toString();if(i!==e){this.value=i;return}super.valueChanged(t,e),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=Wi(this),this.updateStepMultiplier(),this.setupTrackConstraints(),this.setupListeners(),this.setupDefaultValue(),this.setThumbPositionForOrientation(this.direction),$.getNotifier(this).subscribe(this,"max"),$.getNotifier(this).subscribe(this,"min"),$.getNotifier(this).subscribe(this,"step"),this.handleStepStyles()}disconnectedCallback(){super.disconnectedCallback(),this.setupListeners(!0),$.getNotifier(this).unsubscribe(this,"max"),$.getNotifier(this).unsubscribe(this,"min"),$.getNotifier(this).unsubscribe(this,"step")}increment(){const t=this.direction!==ht.rtl&&this.orientation!==Q.vertical?Number(this.value)+Number(this.stepValue):Number(this.value)+Number(this.stepValue),e=this.convertToConstrainedValue(t),s=e<Number(this.max)?`${e}`:`${this.max}`;this.value=s}decrement(){const t=this.direction!==ht.rtl&&this.orientation!==Q.vertical?Number(this.value)-Number(this.stepValue):Number(this.value)-Number(this.stepValue),e=this.convertToConstrainedValue(t),s=e>Number(this.min)?`${e}`:`${this.min}`;this.value=s}get stepValue(){return this.step===void 0?1:this.step}setThumbPositionForOrientation(t){const s=(1-sn(Number(this.value),Number(this.min),Number(this.max),t))*100;this.orientation===Q.horizontal?this.position=this.isDragging?`right: ${s}%; transition: none;`:`right: ${s}%; transition: all 0.2s ease;`:this.position=this.isDragging?`top: ${s}%; transition: none;`:`top: ${s}%; transition: all 0.2s ease;`}updateStepMultiplier(){const t=this.stepValue+"",e=this.stepValue%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(typeof this.value=="string")if(this.value.length===0)this.initialValue=this.midpoint;else{const t=parseFloat(this.value);!Number.isNaN(t)&&(t<this.min||t>this.max)&&(this.value=this.midpoint)}}calculateNewValue(t){this.setupTrackConstraints();const e=sn(t,this.orientation===Q.horizontal?this.trackMinWidth:this.trackMinHeight,this.orientation===Q.horizontal?this.trackWidth:this.trackHeight,this.direction),s=(this.max-this.min)*e+this.min;return this.convertToConstrainedValue(s)}convertToConstrainedValue(t){isNaN(t)&&(t=this.min);let e=t-this.min;const s=Math.round(e/this.stepValue),i=e-s*(this.stepMultiplier*this.stepValue)/this.stepMultiplier;return e=i>=Number(this.stepValue)/2?e-i+Number(this.stepValue):e-i,e+this.min}}K([a],q.prototype,"size",2),K([a({attribute:"readonly",mode:"boolean"})],q.prototype,"readOnly",2),K([v],q.prototype,"direction",2),K([v],q.prototype,"isDragging",2),K([v],q.prototype,"position",2),K([v],q.prototype,"trackWidth",2),K([v],q.prototype,"trackMinWidth",2),K([v],q.prototype,"trackHeight",2),K([v],q.prototype,"trackLeft",2),K([v],q.prototype,"trackMinHeight",2),K([v],q.prototype,"valueTextFormatter",2),K([a({converter:nt})],q.prototype,"min",2),K([a({converter:nt})],q.prototype,"max",2),K([a({converter:nt})],q.prototype,"step",2),K([a],q.prototype,"orientation",2),K([a],q.prototype,"mode",2);const Cu=l`
|
|
469
|
+
${w("inline-grid")} :host{--thumb-size:18px;--thumb-padding:3px;--thumb-translate:calc(var(--thumb-size) * -0.5 + var(--track-width) / 2);--track-overhang:-2px;--track-width:4px;--fast-slider-height:calc(var(--thumb-size) * 10);--slider-direction:90deg;align-items:center;box-sizing:border-box;outline:none;cursor:pointer;user-select:none;border-radius:${$t};touch-action:pan-y;min-width:calc(var(--thumb-size) * 1px);width:100%}:host([size='small']){--thumb-size:14px;--track-width:2px;--thumb-padding:3px}:host([orientation='vertical']){--slider-direction:0deg;height:160px;min-height:var(--thumb-size);touch-action:pan-x;padding:8px 0;width:auto;min-width:auto}:host([disabled]:hover){cursor:initial}:host(:focus-visible){box-shadow:0 0 0 2pt ${Bt};outline:1px solid ${Eo}}.thumb-cursor:focus{outline:0}.thumb-container{position:absolute;height:var(--thumb-size);width:var(--thumb-size);transition:all 0.2s ease}.thumb-container{transform:translateX(calc(var(--thumb-size) * 0.5)) translateY(calc(var(--thumb-translate) * -1.5))}:host([size='small']) .thumb-container{transform:translateX(calc(var(--thumb-size) * 0.5)) translateY(calc(var(--thumb-translate) * -1.35))}:host([orientation='vertical']) .thumb-container{transform:translateX(calc(var(--thumb-translate) * -1.5)) translateY(calc(var(--thumb-size) * -0.5))}:host([orientation='vertical'][size='small']) .thumb-container{transform:translateX(calc(var(--thumb-translate) * -1.35)) translateY(calc(var(--thumb-size) * -0.5))}.thumb-cursor{height:var(--thumb-size);width:var(--thumb-size);background-color:${zs};border-radius:${lt};box-shadow:inset 0 0 0 var(--thumb-padding) ${_},0 0 0 1px ${Pe}}.thumb-cursor:hover{background-color:${je}}.thumb-cursor:active{background-color:${qe}}:host([disabled]) .thumb-cursor{background-color:${k};box-shadow:inset 0 0 0 var(--thumb-padding) ${_},0 0 0 1px ${qt}}.positioning-region{position:relative;display:grid}:host([orientation='horizontal']) .positioning-region{margin:0 8px;grid-template-rows:var(--thumb-size) var(--thumb-size)}:host([orientation='vertical']) .positioning-region{margin:8px 0;height:100%;grid-template-columns:var(--thumb-size) var(--thumb-size)}.track{align-self:start;position:absolute;background-color:${jt};border-radius:${F};overflow:hidden}:host([step]) .track::after{content:'';position:absolute;border-radius:${F};width:100%;inset:0 2px;background-image:repeating-linear-gradient(
|
|
467
470
|
var(--slider-direction),#0000 0%,#0000 calc(var(--step-rate) - 1px),${_} calc(var(--step-rate) - 1px),${_} var(--step-rate)
|
|
468
|
-
)}:host([orientation='vertical'][step]) .track::after{inset:-2px 0}:host([disabled]) .track{background-color:${
|
|
469
|
-
.track:hover,.track:active,.track{background:WindowText}.thumb-cursor:hover,.thumb-cursor:active,.thumb-cursor{background:ButtonText}:host(:hover) .track-start,.track-start:active,.track-start{background:Highlight}`));function
|
|
470
|
-
${
|
|
471
|
+
)}:host([orientation='vertical'][step]) .track::after{inset:-2px 0}:host([disabled]) .track{background-color:${Re}}:host([orientation='horizontal']) .track{right:var(--track-overhang);left:var(--track-overhang);align-self:start;height:var(--track-width);grid-row:2 / auto}:host([orientation='vertical']) .track{top:var(--track-overhang);bottom:var(--track-overhang);width:var(--track-width);height:100%;grid-column:2 / auto}.track-start{background-color:${Ve};position:absolute;height:100%;left:0;border-radius:${F}}:host([disabled]) .track-start{background-color:${k}}:host(:hover) .track-start{background-color:${je}}:host([disabled]:hover) .track-start{background-color:${k}}.track-start:active{background-color:${qe}}:host([orientation='vertical']) .track-start{height:auto;width:100%;bottom:0}`.withBehaviors(Z(l`
|
|
472
|
+
.track:hover,.track:active,.track{background:WindowText}.thumb-cursor:hover,.thumb-cursor:active,.thumb-cursor{background:ButtonText}:host(:hover) .track-start,.track-start:active,.track-start{background:Highlight}`));function Su(o={}){return f`<template role="slider" 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?!0:void 0}" aria-readonly="${t=>t.readOnly?!0:void 0}" aria-orientation="${t=>t.orientation}" class="${t=>t.orientation}"><div part="positioning-region" class="positioning-region"><div ${Pt("track")} part="track-container" class="track"><slot name="track"></slot><div part="track-start" class="track-start" style="${t=>t.position}"><slot name="track-start"></slot></div></div><slot></slot><div ${Pt("thumb")} part="thumb-container" class="thumb-container" style="${t=>t.position}" @mousedown="${(t,e)=>t.handleThumbMouseDown(e.event)}" @touchstart="${(t,e)=>t.handleThumbMouseDown(e.event)}"><slot name="thumb">${ut(o.thumb)}</slot></div></div></template>`}const Iu=Su({thumb:'<div class="thumb-cursor"></div>'}),Pu=q.compose({name:`${g.prefix}-slider`,template:Iu,styles:Cu});Pu.define(g.registry);var Bu=Object.defineProperty,Tu=Object.getOwnPropertyDescriptor,rn=(o,t,e,s)=>{for(var i=s>1?void 0:s?Tu(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Bu(t,e,i),i};class Qs extends x{constructor(){super(),this.elementInternals=this.attachInternals(),this.elementInternals.role="progressbar"}sizeChanged(t,e){t&&d(this.elementInternals,`${t}`,!1),e&&d(this.elementInternals,`${e}`,!0)}appearanceChanged(t,e){t&&d(this.elementInternals,`${t}`,!1),e&&d(this.elementInternals,`${e}`,!0)}}rn([a],Qs.prototype,"size",2),rn([a],Qs.prototype,"appearance",2);const zu=l`
|
|
473
|
+
${w("flex")}
|
|
471
474
|
|
|
472
|
-
:host{display:flex;align-items:center;height:32px;width:32px;contain:content}:host(${
|
|
473
|
-
${
|
|
475
|
+
:host{display:flex;align-items:center;height:32px;width:32px;contain:content}:host(${oo}){height:20px;width:20px}:host(${so}){height:24px;width:24px}:host(${ot}){height:28px;width:28px}:host(${E}){height:36px;width:36px}:host(${js}){height:40px;width:40px}:host(${$c}){height:44px;width:44px}.progress{height:100%;width:100%}.background{fill:none;stroke:${nr};stroke-width:1.5px}:host(${Mr}) .background{stroke:rgba(255,255,255,0.2)}.indicator{stroke:${rr};fill:none;stroke-width:1.5px;stroke-linecap:round;transform-origin:50% 50%;transform:rotate(-90deg);transition:all 0.2s ease-in-out;animation:spin-infinite 3s cubic-bezier(0.53,0.21,0.29,0.67) infinite}:host(${Mr}) .indicator{stroke:${ka}}@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)}}`,Fu=f`<slot name="indicator"><svg class="progress" part="progress" viewBox="0 0 16 16"><circle class="background" cx="8px" cy="8px" r="7px"></circle><circle class="indicator" cx="8px" cy="8px" r="7px"></circle></svg></slot>`,Ou=Qs.compose({name:`${g.prefix}-spinner`,template:Fu,styles:zu});Ou.define(g.registry);class Au extends yt{}function _u(o={}){return f`<template tabindex="${t=>t.disabled?void 0:0}" @click="${(t,e)=>t.clickHandler(e.event)}" @input="${(t,e)=>t.inputHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}" @keyup="${(t,e)=>t.keyupHandler(e.event)}"><slot name="switch">${ut(o.switch)}</slot></template>`}const Mu=_u({switch:'<span class="checked-indicator" part="checked-indicator"></span>'}),st=l.partial`:is([state--checked], :state(checked))`,Eu=l`
|
|
476
|
+
${w("inline-flex")}
|
|
474
477
|
|
|
475
|
-
:host{box-sizing:border-box;align-items:center;flex-direction:row;outline:none;user-select:none;contain:content;padding:0 ${he};width:40px;height:20px;background-color:${
|
|
476
|
-
:host{border-color:InactiveBorder}:host(${st}),:host(${st}:active),:host(${st}:hover){background:Highlight;border-color:Highlight}.checked-indicator,:host(:hover) .checked-indicator,:host(:active) .checked-indicator{background-color:ActiveCaption}:host(${st}) .checked-indicator,:host(${st}:hover) .checked-indicator,:host(${st}:active) .checked-indicator{background-color:ButtonFace}`)),
|
|
477
|
-
${
|
|
478
|
+
:host{box-sizing:border-box;align-items:center;flex-direction:row;outline:none;user-select:none;contain:content;padding:0 ${he};width:40px;height:20px;background-color:${mt};border:1px solid ${jt};border-radius:${lt};cursor:pointer}:host(:hover){background:none;border-color:${Ge}}:host(:active){border-color:${We}}:host(:disabled),:host([readonly]){border:1px solid ${qt};background-color:none;pointer:default}:host(${st}){background:${Ve};border-color:${Ve}}:host(${st}:hover){background:${je};border-color:${je}}:host(${st}:active){background:${qe};border-color:${qe}}:host(${st}:disabled){background:${Re};border-color:${qt}}.checked-indicator{height:14px;width:14px;border-radius:50%;margin-inline-start:0;background-color:${tt};transition-duration:${Fr};transition-timing-function:${Ds};transition-property:margin-inline-start}:host(${st}) .checked-indicator{background-color:${Oo};margin-inline-start:calc(100% - 14px)}:host(${st}:hover) .checked-indicator{background:${la}}:host(${st}:active) .checked-indicator{background:${ca}}:host(:hover) .checked-indicator{background-color:${Jn}}:host(:active) .checked-indicator{background-color:${ta}}:host(:disabled) .checked-indicator,:host([readonly]) .checked-indicator{background:${k}}:host(${st}:disabled) .checked-indicator{background:${k}}:host(:focus-visible){outline:none}:host(:not([slot='input']):focus-visible){border-color:${at};outline:${de} solid ${at};box-shadow:${Ro},0 0 0 2px ${Bt}}`.withBehaviors(Z(l`
|
|
479
|
+
:host{border-color:InactiveBorder}:host(${st}),:host(${st}:active),:host(${st}:hover){background:Highlight;border-color:Highlight}.checked-indicator,:host(:hover) .checked-indicator,:host(:active) .checked-indicator{background-color:ActiveCaption}:host(${st}) .checked-indicator,:host(${st}:hover) .checked-indicator,:host(${st}:active) .checked-indicator{background-color:ButtonFace}`)),Lu=Au.compose({name:`${g.prefix}-switch`,template:Mu,styles:Eu});Lu.define(g.registry);class Hu extends x{}function Du(){return f`<template slot="tabpanel" role="tabpanel"><slot></slot></template>`}const Nu=Du(),Ru=l`
|
|
480
|
+
${w("block")}
|
|
478
481
|
|
|
479
|
-
:host{box-sizing:border-box;padding:${Jt} ${Wt}}`,
|
|
480
|
-
:host{--textContent:'${this.textContent}'}`,this.$fastController.addStyles(this.styles)}}
|
|
481
|
-
${
|
|
482
|
+
:host{box-sizing:border-box;padding:${Jt} ${Wt}}`,Vu=Hu.compose({name:`${g.prefix}-tab-panel`,template:Nu,styles:Ru});Vu.define(g.registry);var ju=Object.defineProperty,qu=Object.getOwnPropertyDescriptor,Gu=(o,t,e,s)=>{for(var i=s>1?void 0:s?qu(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&ju(t,e,i),i};class Zs extends x{connectedCallback(){super.connectedCallback(),this.styles!==void 0&&this.$fastController.removeStyles(this.styles),this.styles=l`
|
|
483
|
+
:host{--textContent:'${this.textContent}'}`,this.$fastController.addStyles(this.styles)}}Gu([a({mode:"boolean"})],Zs.prototype,"disabled",2),Nt(Zs,Lt);function Wu(o={}){return f`<template slot="tab" role="tab" aria-disabled="${t=>t.disabled}">${Dt(o)}<span class="tab-content"><slot></slot></span>${Ht(o)}</template>`}const Xu=Wu({}),Uu=l`
|
|
484
|
+
${w("inline-flex")}
|
|
482
485
|
|
|
483
|
-
:host{position:relative;flex-direction:column;cursor:pointer;box-sizing:border-box;justify-content:center;line-height:${M};font-family:${
|
|
484
|
-
:host([aria-selected='true'])::after{background-color:Highlight}`)),
|
|
486
|
+
:host{position:relative;flex-direction:column;cursor:pointer;box-sizing:border-box;justify-content:center;line-height:${M};font-family:${m};font-size:${P};color:${Rt};fill:currentcolor;grid-row:1;padding:${Jt} ${Wt};border-radius:${F}}:host .tab-content{display:inline-flex;flex-direction:column;padding:0 2px}:host([aria-selected='true']){color:${A};font-weight:${D}}:host .tab-content::after{content:var(--textContent);visibility:hidden;height:0;line-height:${M};font-weight:${D}}:host([aria-selected='true'])::after{background-color:${Os};border-radius:${lt};content:'';inset:0;position:absolute;z-index:2}:host([aria-selected='false']:hover)::after{background-color:${Mo};border-radius:${lt};content:'';inset:0;position:absolute;z-index:1}:host([aria-selected='true'][disabled])::after{background-color:${k}}::slotted([slot='start']),::slotted([slot='end']){display:flex}::slotted([slot='start']){margin-inline-end:11px}::slotted([slot='end']){margin-inline-start:11px}:host([disabled]){cursor:not-allowed;fill:${k};color:${k}}:host([disabled]:hover)::after{background-color:unset}:host(:focus){outline:none}:host(:focus-visible){border-radius:${$t};box-shadow:0 0 0 3px ${Bt};outline:1px solid ${Eo}}`.withBehaviors(Z(l`
|
|
487
|
+
:host([aria-selected='true'])::after{background-color:Highlight}`)),Ku=Zs.compose({name:`${g.prefix}-tab`,template:Xu,styles:Uu});Ku.define(g.registry);const Yu={subtle:"subtle",transparent:"transparent"},is=Q;var Qu=Object.defineProperty,Zu=Object.getOwnPropertyDescriptor,me=(o,t,e,s)=>{for(var i=s>1?void 0:s?Zu(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&Qu(t,e,i),i};class ho extends x{constructor(){super(...arguments),this.orientation=is.horizontal,this.prevActiveTabIndex=0,this.activeTabIndex=0,this.change=()=>{this.$emit("change",this.activetab)},this.isDisabledElement=t=>t.getAttribute("aria-disabled")==="true",this.isHiddenElement=t=>t.hasAttribute("hidden"),this.isFocusableElement=t=>!this.isDisabledElement(t)&&!this.isHiddenElement(t),this.handleTabClick=t=>{const e=t.currentTarget;e.nodeType===1&&this.isFocusableElement(e)&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(e),this.setComponent())},this.handleTabKeyDown=t=>{if(this.isHorizontal())switch(t.key){case we:t.preventDefault(),this.adjustBackward(t);break;case Ce:t.preventDefault(),this.adjustForward(t);break}else switch(t.key){case Se:t.preventDefault(),this.adjustBackward(t);break;case xe:t.preventDefault(),this.adjustForward(t);break}switch(t.key){case Io:t.preventDefault(),this.adjust(-this.activeTabIndex);break;case So:t.preventDefault(),this.adjust(this.tabs.length-this.activeTabIndex-1);break}}}orientationChanged(){this.$fastController.isConnected&&this.setTabs()}activeidChanged(t,e){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.prevActiveTabIndex=this.tabs.findIndex(s=>s.id===t),this.setTabs())}tabsChanged(){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs())}tabpanelsChanged(){this.$fastController.isConnected&&this.tabpanels.length<=this.tabs.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs())}getActiveIndex(){return this.activeid!==void 0?this.tabIds.indexOf(this.activeid)===-1?0:this.tabIds.indexOf(this.activeid):0}setTabs(){const t="gridColumn",e="gridRow",s=this.isHorizontal()?t:e;this.activeTabIndex=this.getActiveIndex(),this.tabs.forEach((i,r)=>{if(i.slot==="tab"){const n=this.activeTabIndex===r&&this.isFocusableElement(i),h=this.tabIds[r],p=this.tabpanelIds[r];i.setAttribute("id",h),i.setAttribute("aria-selected",n?"true":"false"),i.setAttribute("aria-controls",p),i.addEventListener("click",this.handleTabClick),i.addEventListener("keydown",this.handleTabKeyDown),i.setAttribute("tabindex",n?"0":"-1"),n&&(this.activetab=i,this.activeid=h)}i.style[t]="",i.style[e]="",i.style[s]=`${r+1}`,this.isHorizontal()?i.classList.remove("vertical"):i.classList.add("vertical")}),this.setTabPanels()}setTabPanels(){this.tabpanels.forEach((t,e)=>{const s=this.tabIds[e],i=this.tabpanelIds[e];t.setAttribute("id",i),t.setAttribute("aria-labelledby",s),this.activeTabIndex!==e?t.setAttribute("hidden",""):t.removeAttribute("hidden")})}getTabIds(){return this.tabs.map(t=>t.getAttribute("id")??`tab-${ws()}`)}getTabPanelIds(){return this.tabpanels.map(t=>t.getAttribute("id")??`panel-${ws()}`)}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}isHorizontal(){return this.orientation===is.horizontal}adjust(t){const e=this.tabs.filter(n=>this.isFocusableElement(n)),s=e.indexOf(this.activetab),i=xs(0,e.length-1,s+t),r=this.tabs.indexOf(e[i]);r>-1&&this.moveToTabByIndex(this.tabs,r)}adjustForward(t){const e=this.tabs;let s=0;for(s=this.activetab?e.indexOf(this.activetab)+1:1,s===e.length&&(s=0);s<e.length&&e.length>1;)if(this.isFocusableElement(e[s])){this.moveToTabByIndex(e,s);break}else{if(this.activetab&&s===e.indexOf(this.activetab))break;s+1>=e.length?s=0:s+=1}}adjustBackward(t){const e=this.tabs;let s=0;for(s=this.activetab?e.indexOf(this.activetab)-1:0,s=s<0?e.length-1:s;s>=0&&e.length>1;)if(this.isFocusableElement(e[s])){this.moveToTabByIndex(e,s);break}else s-1<0?s=e.length-1:s-=1}moveToTabByIndex(t,e){const s=t[e];this.activetab=s,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=e,s.focus(),this.setComponent()}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}}me([a],ho.prototype,"orientation",2),me([a],ho.prototype,"activeid",2),me([v],ho.prototype,"tabs",2),me([v],ho.prototype,"tabpanels",2);class uo extends ho{constructor(){super(...arguments),this.activeTabData={x:0,y:0,height:0,width:0},this.previousActiveTabData={x:0,y:0,height:0,width:0},this.activeTabOffset=0,this.activeTabScale=1,this.appearance=Yu.transparent}calculateAnimationProperties(t){this.activeTabOffset=this.getTabPosition(t),this.activeTabScale=this.getTabScale(t)}getTabPosition(t){return this.orientation===is.horizontal?this.previousActiveTabData.x-(t.getBoundingClientRect().x-this.getBoundingClientRect().x):this.previousActiveTabData.y-(t.getBoundingClientRect().y-this.getBoundingClientRect().y)}getTabScale(t){return this.orientation===is.horizontal?this.previousActiveTabData.width/t.getBoundingClientRect().width:this.previousActiveTabData.height/t.getBoundingClientRect().height}applyUpdatedCSSValues(t){this.calculateAnimationProperties(t),this.setTabScaleCSSVar(),this.setTabOffsetCSSVar()}animationLoop(t){t.setAttribute("data-animate","false"),this.applyUpdatedCSSValues(t),this.previousActiveTabData=this.activeTabData,this.applyUpdatedCSSValues(t),t.setAttribute("data-animate","true")}setTabData(){if(this.tabs&&this.tabs.length>0){const t=this.tabs,s=(this.activetab||t[0])?.getBoundingClientRect(),i=this.getBoundingClientRect();this.activeTabData={x:s.x-i.x,y:s.y-i.y,height:s.height,width:s.width},this.previousActiveTabData?.x!==this.activeTabData?.x&&this.previousActiveTabData?.y!==this.activeTabData?.y&&(this.previousActiveTabData=this.activeTabData)}}setTabOffsetCSSVar(){this.styles=l`
|
|
485
488
|
:host{--tabIndicatorOffset:${this.activeTabOffset.toString()}px}`,this.$fastController.addStyles(this.styles)}setTabScaleCSSVar(){this.styles=l`
|
|
486
|
-
:host{--tabIndicatorScale:${this.activeTabScale.toString()}}`,this.$fastController.addStyles(this.styles)}activeidChanged(t,e){super.activeidChanged(t,e),this.setTabData(),this.activetab&&this.animationLoop(this.activetab)}tabsChanged(){super.tabsChanged(),this.setTabData()}}
|
|
487
|
-
${
|
|
489
|
+
:host{--tabIndicatorScale:${this.activeTabScale.toString()}}`,this.$fastController.addStyles(this.styles)}activeidChanged(t,e){super.activeidChanged(t,e),this.setTabData(),this.activetab&&this.animationLoop(this.activetab)}tabsChanged(){super.tabsChanged(),this.setTabData()}}me([a],uo.prototype,"appearance",2),me([a({mode:"boolean"})],uo.prototype,"disabled",2),me([a],uo.prototype,"size",2),Nt(uo,Lt);function Ju(o={}){return f` ${Dt(o)}<div class="tablist" part="tablist" role="tablist"><slot name="tab" ${rt("tabs")}></slot></div>${Ht(o)}<div class="tabpanel" part="tabpanel"><slot name="tabpanel" ${rt("tabpanels")}></slot></div>`}const tp=Ju({}),ep=l`
|
|
490
|
+
${w("grid")}
|
|
488
491
|
|
|
489
|
-
:host{box-sizing:border-box;font-family:${
|
|
490
|
-
${
|
|
492
|
+
:host{box-sizing:border-box;font-family:${m};font-size:${P};line-height:${M};color:${Rt};grid-template-columns:auto 1fr auto;grid-template-rows:auto 1fr}:host([disabled]){cursor:not-allowed;color:${k}}:host([disabled]) ::slotted(fluent-tab){pointer-events:none;cursor:not-allowed;color:${k}}:host([disabled]) ::slotted(fluent-tab:after){background-color:${k}}:host([disabled]) ::slotted(fluent-tab[aria-selected='true'])::after{background-color:${k}}:host([disabled]) ::slotted(fluent-tab:hover):before{content:unset}:host ::slotted(fluent-tab){border-radius:${F}}:host ::slotted(fluent-tab[aria-selected='true'])::before{background-color:${k}}.tablist{display:grid;grid-template-rows:auto auto;grid-template-columns:auto;position:relative;width:max-content;align-self:end;box-sizing:border-box}::slotted([slot='start']),::slotted([slot='end']){display:flex;align-self:center}::slotted([slot='start']){margin-inline-end:11px}::slotted([slot='end']){margin-inline-start:11px}.tabpanel{grid-row:2;grid-column-start:1;grid-column-end:4;position:relative}:host([orientation='vertical']){grid-template-rows:auto 1fr auto;grid-template-columns:auto 1fr}:host([orientation='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([orientation='vertical']) .tabpanel{grid-column:2;grid-row-start:1;grid-row-end:4}:host([orientation='vertical']) ::slotted([slot='end']){grid-row:3}:host([appearance='subtle']) ::slotted(fluent-tab:hover){background-color:${Is};color:${Ui};fill:${Yi}}:host([appearance='subtle']) ::slotted(fluent-tab:active){background-color:${_o};fill:${_o};color:${A}}:host([size='small']) ::slotted(fluent-tab){font-size:${P};line-height:${M};padding:${Ke} ${ue}}:host([size='large']) ::slotted(fluent-tab){font-size:${ct};line-height:${vt};padding:${zr} ${Wt}}:host ::slotted(fluent-tab[data-animate='true'])::after{transition-property:transform;transition-duration:${Ql};transition-timing-function:${Ar}}:host ::slotted(fluent-tab)::after{height:${Zt};margin-top:auto;transform-origin:left;transform:translateX(var(--tabIndicatorOffset)) scaleX(var(--tabIndicatorScale))}:host([orientation='vertical']) ::slotted(fluent-tab)::after{width:${Zt};height:unset;margin-top:unset;transform-origin:top;transform:translateY(var(--tabIndicatorOffset)) scaleY(var(--tabIndicatorScale))}:host ::slotted(fluent-tab)::before{height:${Zt};border-radius:${lt};content:'';inset:0;position:absolute;margin-top:auto}:host([orientation='vertical']) ::slotted(fluent-tab)::before{height:unset;width:${Zt};margin-inline-end:auto;transform-origin:top}:host ::slotted(fluent-tab[aria-selected='false']:hover)::after{height:${Zt};margin-top:auto;transform-origin:left}:host([orientation='vertical']) ::slotted(fluent-tab[aria-selected='false']:hover)::after{height:unset;margin-inline-end:auto;transform-origin:top;width:${Zt}}:host([orientation='vertical']) ::slotted(fluent-tab){align-items:flex-start;grid-column:2;padding-top:${Ke};padding-bottom:${Ke}}:host([orientation='vertical'][size='small']) ::slotted(fluent-tab){padding-top:${Vo};padding-bottom:${Vo}}:host([orientation='vertical'][size='large']) ::slotted(fluent-tab){padding-top:${U};padding-bottom:${U}}:host([size='small']) ::slotted(fluent-tab)::after,:host([size='small']) ::slotted(fluent-tab)::before,:host([size='small']) ::slotted(fluent-tab:hover)::after{right:${ue};left:${ue}}:host ::slotted(fluent-tab)::after,:host ::slotted(fluent-tab)::before,:host ::slotted(fluent-tab:hover)::after{right:${Wt};left:${Wt}}:host([size='large']) ::slotted(fluent-tab)::after,:host([size='large']) ::slotted(fluent-tab)::before,:host([size='large']) ::slotted(fluent-tab:hover)::after{right:${Wt};left:${Wt}}:host([orientation='vertical'][size='small']) ::slotted(fluent-tab)::after,:host([orientation='vertical'][size='small']) ::slotted(fluent-tab)::before,:host([orientation='vertical'][size='small']) ::slotted(fluent-tab:hover)::after{right:0;left:0;top:${Ke};bottom:${Ke}}:host([orientation='vertical']) ::slotted(fluent-tab)::after,:host([orientation='vertical']) ::slotted(fluent-tab)::before,:host([orientation='vertical']) ::slotted(fluent-tab:hover)::after{right:0;left:0;top:${U};bottom:${U}}:host([orientation='vertical'][size='large']) ::slotted(fluent-tab)::after,:host([orientation='vertical'][size='large']) ::slotted(fluent-tab)::before,:host([orientation='vertical'][size='large']) ::slotted(fluent-tab:hover)::after{right:0;left:0;top:${Tr};bottom:${Tr}}`,op=uo.compose({name:`${g.prefix}-tabs`,template:tp,styles:ep});op.define(g.registry);const sp={email:"email",password:"password",tel:"tel",text:"text",url:"url"},ip=["date","datetime-local","email","month","number","password","search","tel","text","time","url","week"];var rp=Object.defineProperty,np=Object.getOwnPropertyDescriptor,O=(o,t,e,s)=>{for(var i=s>1?void 0:s?np(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&rp(t,e,i),i};class S extends x{constructor(){super(...arguments),this.type=sp.text,this._value=this.initialValue,this.dirtyValue=!1,this.elementInternals=this.attachInternals()}appearanceChanged(t,e){t&&d(this.elementInternals,`${t}`,!1),e&&d(this.elementInternals,`${e}`,!0)}controlSizeChanged(t,e){t&&d(this.elementInternals,`${t}`,!1),e&&d(this.elementInternals,`${e}`,!0)}defaultSlottedNodesChanged(t,e){this.$fastController.isConnected&&(this.controlLabel.hidden=!e?.length)}initialValueChanged(){this.dirtyValue||(this.value=this.initialValue)}readOnlyChanged(){this.$fastController.isConnected&&(this.elementInternals.ariaReadOnly=`${!!this.readOnly}`)}requiredChanged(t,e){this.$fastController.isConnected&&(this.elementInternals.ariaRequired=`${!!e}`)}get validity(){return this.elementInternals.validity}get validationMessage(){return this.elementInternals.validationMessage||this.control.validationMessage}get value(){return $.track(this,"value"),this._value}set value(t){this._value=t,this.$fastController.isConnected&&(this.control.value=t,this.setFormValue(t),this.setValidity(),$.notify(this,"value"))}get willValidate(){return this.elementInternals.willValidate}get form(){return this.elementInternals.form}beforeinputHandler(t){return t.inputType==="insertLineBreak"&&this.implicitSubmit(),!0}changeHandler(t){return this.setValidity(),this.$emit("change",t,{bubbles:!0,composed:!0}),!0}checkValidity(){return this.elementInternals.checkValidity()}clickHandler(t){this.isSameNode(t.target)&&this.control?.click()}connectedCallback(){super.connectedCallback(),this.setFormValue(this.value),this.setValidity()}focusinHandler(t){this.control?.focus()}formResetCallback(){this.value=this.initialValue,this.dirtyValue=!1}implicitSubmit(){if(!this.elementInternals.form)return;if(this.elementInternals.form.elements.length===1){this.elementInternals.form.requestSubmit();return}const t=[...this.elementInternals.form.elements],e=t.find(i=>i.getAttribute("type")==="submit");if(e){e.click();return}t.filter(i=>ip.includes(i.getAttribute("type")??"")).length>1||this.elementInternals.form.requestSubmit()}inputHandler(t){return this.dirtyValue=!0,this.value=this.control.value,!0}keydownHandler(t){return t.key==="Enter"&&this.implicitSubmit(),!0}select(){this.control.select(),this.$emit("select")}setCustomValidity(t){this.elementInternals.setValidity({customError:!0},t),this.reportValidity()}reportValidity(){return this.elementInternals.reportValidity()}setFormValue(t,e){this.elementInternals.setFormValue(t,t??e)}setValidity(t=this.control.validity,e=this.validationMessage,s=this.control){if(this.$fastController.isConnected){if(this.disabled){this.elementInternals.setValidity({});return}this.elementInternals.setValidity(t,e,s)}}}S.formAssociated=!0,O([a],S.prototype,"appearance",2),O([a],S.prototype,"autocomplete",2),O([a({mode:"boolean"})],S.prototype,"autofocus",2),O([a({attribute:"control-size"})],S.prototype,"controlSize",2),O([v],S.prototype,"defaultSlottedNodes",2),O([a],S.prototype,"dirname",2),O([a({mode:"boolean"})],S.prototype,"disabled",2),O([a({attribute:"form"})],S.prototype,"formAttribute",2),O([a({attribute:"value",mode:"fromView"})],S.prototype,"initialValue",2),O([a],S.prototype,"list",2),O([a({converter:nt})],S.prototype,"maxlength",2),O([a({converter:nt})],S.prototype,"minlength",2),O([a({mode:"boolean"})],S.prototype,"multiple",2),O([a],S.prototype,"name",2),O([a],S.prototype,"pattern",2),O([a],S.prototype,"placeholder",2),O([a({attribute:"readonly",mode:"boolean"})],S.prototype,"readOnly",2),O([a({mode:"boolean"})],S.prototype,"required",2),O([a({converter:nt})],S.prototype,"size",2),O([a({converter:{fromView:o=>typeof o=="string"?["true",""].includes(o.trim().toLowerCase()):null,toView:o=>o.toString()}})],S.prototype,"spellcheck",2),O([a],S.prototype,"type",2),O([v],S.prototype,"controlLabel",2),Nt(S,Lt);const ap=l`
|
|
493
|
+
${w("block")}
|
|
491
494
|
|
|
492
|
-
:host{font-family:${
|
|
493
|
-
${
|
|
495
|
+
:host{font-family:${m};font-size:${P};font-weight:${B};line-height:${M};max-width:400px}.label{display:flex;color:${A};padding-bottom:${Kl};flex-shrink:0;padding-inline-end:${Gt}}.label[hidden],:host(:empty) .label{display:none}.root{align-items:center;background-color:${_};border:${X} solid ${Pe};border-bottom-color:${jt};border-radius:${F};box-sizing:border-box;height:32px;display:inline-flex;flex-direction:row;gap:${he};padding:0 ${Wt};position:relative;width:100%}:has(.control:user-invalid){border-color:${Sa}}.root::after{box-sizing:border-box;content:'';position:absolute;left:-1px;bottom:0px;right:-1px;height:max(2px,${F});border-radius:0 0 ${F} ${F};border-bottom:2px solid ${Os};clip-path:inset(calc(100% - 2px) 1px 0px);transform:scaleX(0);transition-property:transform;transition-duration:${Yl};transition-delay:${Qe}}.control{width:100%;height:100%;box-sizing:border-box;color:${A};border-radius:${F};background:${mt};font-family:${m};font-weight:${B};font-size:${P};border:none;vertical-align:center}.control:focus-visible{outline:0;border:0}.control::placeholder{color:${ea}}:host ::slotted([slot='start']),:host ::slotted([slot='end']){display:flex;align-items:center;justify-content:center;color:${tt};font-size:${Be}}:host ::slotted([slot='start']){padding-right:${he}}:host ::slotted([slot='end']){padding-left:${he};gap:${Gt}}:host(:hover) .root{border-color:${Mo};border-bottom-color:${Ge}}:host(:active) .root{border-color:${Fs}}:host(:focus-within) .root{outline:transparent solid 2px;border-bottom:0}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${Fr};transition-delay:${Ze}}:host(:focus-within:active) .root:after{border-bottom-color:${_s}}:host(${R}:focus-within) .root{border:${X} solid ${Pe}}:host(:focus-within) .control{color:${A}}:host([disabled]) .root{background:${mt};border:${X} solid ${qt}}:host([disabled]) .control::placeholder,:host([disabled]) ::slotted([slot='start']),:host([disabled]) ::slotted([slot='end']){color:${k}}::selection{color:${Oo};background-color:${ga}}:host(${ot}) .control{font-size:${W};font-weight:${B};line-height:${dt}}:host(${ot}) .root{height:24px;gap:${he};padding:0 ${ue}}:host(${ot}) ::slotted([slot='start']),:host(${ot}) ::slotted([slot='end']){font-size:${ct}}:host(${E}) .control{font-size:${ct};font-weight:${B};line-height:${vt}}:host(${E}) .root{height:40px;gap:${Tt};padding:0 ${Jt}}:host(${E}) ::slotted([slot='start']),:host(${E}) ::slotted([slot='end']){font-size:${Lo}}:host(${to}) .root{background:${mt};border:0;border-radius:0;border-bottom:${X} solid ${jt}}:host(${to}:hover) .root{border-bottom-color:${Ge}}:host(${to}:active) .root{border-bottom-color:${We}}:host(${to}:focus-within) .root{border:0;border-bottom-color:${We}}:host(${to}[disabled]) .root{border-bottom-color:${qt}}:host(${Go}) .root,:host(${Wo}) .root{border:${X} solid ${at};box-shadow:${Sr}}:host(${Go}) .root{background:${_}}:host(${Wo}) .root{background:${er}}:host(${Go}:hover) .root,:host(${Wo}:hover) .root{border-color:${ar}}:host(${Go}:active) .root,:host(${Wo}:active) .root{border-color:${ar};background:${er}}`;function lp(o={}){return f`<template @beforeinput="${(t,e)=>t.beforeinputHandler(e.event)}" @focusin="${(t,e)=>t.focusinHandler(e.event)}" @keydown="${(t,e)=>t.keydownHandler(e.event)}"><label part="label" for="control" class="label" ${Pt("controlLabel")}><slot ${rt({property:"defaultSlottedNodes",filter:Xi})}></slot></label><div class="root" part="root">${Dt(o)}<input class="control" part="control" id="control" @change="${(t,e)=>t.changeHandler(e.event)}" @input="${(t,e)=>t.inputHandler(e.event)}" ?autofocus="${t=>t.autofocus}" autocomplete="${t=>t.autocomplete}" ?disabled="${t=>t.disabled}" list="${t=>t.list}" maxlength="${t=>t.maxlength}" minlength="${t=>t.minlength}" ?multiple="${t=>t.multiple}" name="${t=>t.name}" pattern="${t=>t.pattern}" placeholder="${t=>t.placeholder}" ?readonly="${t=>t.readOnly}" ?required="${t=>t.required}" size="${t=>t.size}" spellcheck="${t=>t.spellcheck}" type="${t=>t.type}" value="${t=>t.initialValue}" ${Pt("control")} />${Ht(o)}</div></template>`}const cp=lp(),dp=S.compose({name:`${g.prefix}-text-input`,template:cp,styles:ap,shadowOptions:{delegatesFocus:!0}});dp.define(g.registry);var hp=Object.defineProperty,up=Object.getOwnPropertyDescriptor,Et=(o,t,e,s)=>{for(var i=s>1?void 0:s?up(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&hp(t,e,i),i};class xt extends x{constructor(){super(...arguments),this.elementInternals=this.attachInternals(),this.nowrap=!1,this.truncate=!1,this.italic=!1,this.underline=!1,this.strikethrough=!1,this.block=!1}sizeChanged(t,e){t&&d(this.elementInternals,`size-${t}`,!1),e&&d(this.elementInternals,`size-${e}`,!0)}fontChanged(t,e){t&&d(this.elementInternals,t,!1),e&&d(this.elementInternals,e,!0)}weightChanged(t,e){t&&d(this.elementInternals,t,!1),e&&d(this.elementInternals,e,!0)}alignChanged(t,e){t&&d(this.elementInternals,t,!1),e&&d(this.elementInternals,e,!0)}connectedCallback(){super.connectedCallback(),$.getNotifier(this).subscribe(this),Object.keys(this.$fastController.definition.attributeLookup).forEach(t=>{this.handleChange(this,t)})}disconnectedCallback(){super.disconnectedCallback(),$.getNotifier(this).unsubscribe(this)}handleChange(t,e){switch(e){case"nowrap":case"truncate":case"italic":case"underline":case"strikethrough":case"block":d(this.elementInternals,e,!!this[e]);break}}}Et([a({mode:"boolean"})],xt.prototype,"nowrap",2),Et([a({mode:"boolean"})],xt.prototype,"truncate",2),Et([a({mode:"boolean"})],xt.prototype,"italic",2),Et([a({mode:"boolean"})],xt.prototype,"underline",2),Et([a({mode:"boolean"})],xt.prototype,"strikethrough",2),Et([a({mode:"boolean"})],xt.prototype,"block",2),Et([a],xt.prototype,"size",2),Et([a],xt.prototype,"font",2),Et([a],xt.prototype,"weight",2),Et([a],xt.prototype,"align",2);const nn=l.partial`:is([state--nowrap], :state(nowrap))`,an=l.partial`:is([state--truncate], :state(truncate))`,ln=l.partial`:is([state--underline], :state(underline))`,cn=l.partial`:is([state--strikethrough], :state(strikethrough))`,pp=l`
|
|
496
|
+
${w("inline")}
|
|
494
497
|
|
|
495
|
-
:host{contain:content;font-family:${
|
|
496
|
-
${
|
|
498
|
+
:host{contain:content;font-family:${m};font-size:${P};line-height:${M};font-weight:${B};text-align:start}:host(${nn}),:host(${nn}) ::slotted(*){white-space:nowrap;overflow:hidden}:host(${an}),:host(${an}) ::slotted(*){text-overflow:ellipsis}:host(:is([state--block],:state(block))){display:block}:host(:is([state--italic],:state(italic))){font-style:italic}:host(${ln}){text-decoration-line:underline}:host(${cn}){text-decoration-line:line-through}:host(${ln}${cn}){text-decoration-line:line-through underline}:host(:is([state--size-100],:state(size-100))){font-size:${Ue};line-height:${Do}}:host(:is([state--size-200],:state(size-200))){font-size:${W};line-height:${dt}}:host(:is([state--size-400],:state(size-400))){font-size:${ct};line-height:${vt}}:host(:is([state--size-500],:state(size-500))){font-size:${Be};line-height:${No}}:host(:is([state--size-600],:state(size-600))){font-size:${Lo};line-height:${yr}}:host(:is([state--size-700],:state(size-700))){font-size:${br};line-height:${kr}}:host(:is([state--size-800],:state(size-800))){font-size:${mr};line-height:${xr}}:host(:is([state--size-900],:state(size-900))){font-size:${$r};line-height:${wr}}:host(:is([state--size-1000],:state(size-1000))){font-size:${vr};line-height:${Cr}}:host(:is([state--monospace],:state(monospace))){font-family:${Vl}}:host(:is([state--numeric],:state(numeric))){font-family:${jl}}:host(:is([state--medium],:state(medium))){font-weight:${ql}}:host(:is([state--semibold],:state(semibold))){font-weight:${D}}:host(:is([state--bold],:state(bold))){font-weight:${Ho}}:host(:is([state--center],:state(center))){text-align:center}:host(:is([state--end],:state(end))){text-align:end}:host(:is([state--justify],:state(justify))){text-align:justify}::slotted(*){display:inherit;font:inherit;line-height:inherit;text-decoration-line:inherit;text-align:inherit;text-decoration-line:inherit;margin:0}`,gp=f`<slot></slot>`,fp=xt.compose({name:`${g.prefix}-text`,template:gp,styles:pp});fp.define(g.registry);var bp=Object.defineProperty,mp=Object.getOwnPropertyDescriptor,dn=(o,t,e,s)=>{for(var i=s>1?void 0:s?mp(t,e):t,r=o.length-1,n;r>=0;r--)(n=o[r])&&(i=(s?n(t,e,i):n(i))||i);return s&&i&&bp(t,e,i),i};class Js extends z{pressedChanged(){this.setPressedState()}mixedChanged(){this.setPressedState()}press(){this.pressed=!this.pressed}connectedCallback(){super.connectedCallback(),this.setPressedState()}setPressedState(){if(this.$fastController.isConnected){const t=`${this.mixed?"mixed":!!this.pressed}`;this.elementInternals.ariaPressed=t,d(this.elementInternals,"pressed",!!this.pressed||!!this.mixed)}}}dn([a({mode:"boolean"})],Js.prototype,"pressed",2),dn([a({mode:"boolean"})],Js.prototype,"mixed",2);const $p=l`
|
|
499
|
+
${Zo}
|
|
497
500
|
|
|
498
|
-
:host(${
|
|
499
|
-
:host(${
|
|
501
|
+
:host(${T}){border-color:${Pe};background-color:${tr};color:${A};border-width:${X}}:host(${T}:hover){border-color:${Mo};background-color:${Ss}}:host(${T}:active){border-color:${Fs};background-color:${Ji}}:host(${T}${et}){border-color:transparent;background-color:${$a};color:${Vt}}:host(${T}${et}:hover){background-color:${or}}:host(${T}${et}:active){background-color:${sr}}:host(${T}${C}){border-color:transparent;background-color:${ba};color:${Qn}}:host(${T}${C}:hover){background-color:${Is};color:${Bo}}:host(${T}${C}:active){background-color:${_o};color:${To}}:host(${T}${R}),:host(${T}${V}){background-color:${ma}}:host(${T}${R}:hover),:host(${T}${V}:hover){background-color:${Ps}}:host(${T}${R}:active),:host(${T}${V}:active){background-color:${Bs}}:host(${T}${V}){border-color:transparent;color:${Zn}}:host(${T}${V}:hover){color:${zo}}:host(${T}${V}:active){color:${Fo}}`.withBehaviors(Z(l`
|
|
502
|
+
:host(${T}),:host(${T}${et}),:host(${T}${C}),:host(${T}${R}),:host(${T}${V}){background:SelectedItem;color:SelectedItemText}`)),vp=Gs(),yp=Js.compose({name:`${g.prefix}-toggle-button`,template:vp,styles:$p});yp.define(g.registry);
|