@cas-smartdesign/stage 3.0.2 → 3.1.1

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.
@@ -1,44 +1,44 @@
1
- var window;(window||={})["@cas-smartdesign/stage"]=(()=>{var _e=Object.defineProperty;var $t=Object.getOwnPropertyDescriptor;var _t=Object.getOwnPropertyNames;var yt=Object.prototype.hasOwnProperty;var bt=(s,e)=>{for(var t in e)_e(s,t,{get:e[t],enumerable:!0})},xt=(s,e,t,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of _t(e))!yt.call(s,i)&&i!==t&&_e(s,i,{get:()=>e[i],enumerable:!(o=$t(e,i))||o.enumerable});return s};var At=s=>xt(_e({},"__esModule",{value:!0}),s);var Vt={};bt(Vt,{Stage:()=>vt});var ne=window,re=ne.ShadowRoot&&(ne.ShadyCSS===void 0||ne.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ye=Symbol(),Ve=new WeakMap,W=class{constructor(e,t,o){if(this._$cssResult$=!0,o!==ye)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(re&&e===void 0){let o=t!==void 0&&t.length===1;o&&(e=Ve.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&Ve.set(t,e))}return e}toString(){return this.cssText}},D=s=>new W(typeof s=="string"?s:s+"",void 0,ye),G=(s,...e)=>{let t=s.length===1?s[0]:e.reduce((o,i,n)=>o+(r=>{if(r._$cssResult$===!0)return r.cssText;if(typeof r=="number")return r;throw Error("Value passed to 'css' function must be a 'css' function result: "+r+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+s[n+1],s[0]);return new W(t,s,ye)},be=(s,e)=>{re?s.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet):e.forEach(t=>{let o=document.createElement("style"),i=ne.litNonce;i!==void 0&&o.setAttribute("nonce",i),o.textContent=t.cssText,s.appendChild(o)})},le=re?s=>s:s=>s instanceof CSSStyleSheet?(e=>{let t="";for(let o of e.cssRules)t+=o.cssText;return D(t)})(s):s;var xe,ae=window,Ne=ae.trustedTypes,St=Ne?Ne.emptyScript:"",Be=ae.reactiveElementPolyfillSupport,Se={toAttribute(s,e){switch(e){case Boolean:s=s?St:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,e){let t=s;switch(e){case Boolean:t=s!==null;break;case Number:t=s===null?null:Number(s);break;case Object:case Array:try{t=JSON.parse(s)}catch{t=null}}return t}},je=(s,e)=>e!==s&&(e==e||s==s),Ae={attribute:!0,type:String,converter:Se,reflect:!1,hasChanged:je},we="finalized",w=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(e){var t;this.finalize(),((t=this.h)!==null&&t!==void 0?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();let e=[];return this.elementProperties.forEach((t,o)=>{let i=this._$Ep(o,t);i!==void 0&&(this._$Ev.set(i,o),e.push(i))}),e}static createProperty(e,t=Ae){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){let o=typeof e=="symbol"?Symbol():"__"+e,i=this.getPropertyDescriptor(e,o,t);i!==void 0&&Object.defineProperty(this.prototype,e,i)}}static getPropertyDescriptor(e,t,o){return{get(){return this[t]},set(i){let n=this[e];this[t]=i,this.requestUpdate(e,n,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||Ae}static finalize(){if(this.hasOwnProperty(we))return!1;this[we]=!0;let e=Object.getPrototypeOf(this);if(e.finalize(),e.h!==void 0&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){let t=this.properties,o=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(let i of o)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let o=new Set(e.flat(1/0).reverse());for(let i of o)t.unshift(le(i))}else e!==void 0&&t.push(le(e));return t}static _$Ep(e,t){let o=t.attribute;return o===!1?void 0:typeof o=="string"?o:typeof e=="string"?e.toLowerCase():void 0}_$Eu(){var e;this._$E_=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(e=this.constructor.h)===null||e===void 0||e.forEach(t=>t(this))}addController(e){var t,o;((t=this._$ES)!==null&&t!==void 0?t:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((o=e.hostConnected)===null||o===void 0||o.call(e))}removeController(e){var t;(t=this._$ES)===null||t===void 0||t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])})}createRenderRoot(){var e;let t=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return be(t,this.constructor.elementStyles),t}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)===null||e===void 0||e.forEach(t=>{var o;return(o=t.hostConnected)===null||o===void 0?void 0:o.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach(t=>{var o;return(o=t.hostDisconnected)===null||o===void 0?void 0:o.call(t)})}attributeChangedCallback(e,t,o){this._$AK(e,o)}_$EO(e,t,o=Ae){var i;let n=this.constructor._$Ep(e,o);if(n!==void 0&&o.reflect===!0){let r=(((i=o.converter)===null||i===void 0?void 0:i.toAttribute)!==void 0?o.converter:Se).toAttribute(t,o.type);this._$El=e,r==null?this.removeAttribute(n):this.setAttribute(n,r),this._$El=null}}_$AK(e,t){var o;let i=this.constructor,n=i._$Ev.get(e);if(n!==void 0&&this._$El!==n){let r=i.getPropertyOptions(n),h=typeof r.converter=="function"?{fromAttribute:r.converter}:((o=r.converter)===null||o===void 0?void 0:o.fromAttribute)!==void 0?r.converter:Se;this._$El=n,this[n]=h.fromAttribute(t,r.type),this._$El=null}}requestUpdate(e,t,o){let i=!0;e!==void 0&&(((o=o||this.constructor.getPropertyOptions(e)).hasChanged||je)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),o.reflect===!0&&this._$El!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,o))):i=!1),!this.isUpdatePending&&i&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((i,n)=>this[n]=i),this._$Ei=void 0);let t=!1,o=this._$AL;try{t=this.shouldUpdate(o),t?(this.willUpdate(o),(e=this._$ES)===null||e===void 0||e.forEach(i=>{var n;return(n=i.hostUpdate)===null||n===void 0?void 0:n.call(i)}),this.update(o)):this._$Ek()}catch(i){throw t=!1,this._$Ek(),i}t&&this._$AE(o)}willUpdate(e){}_$AE(e){var t;(t=this._$ES)===null||t===void 0||t.forEach(o=>{var i;return(i=o.hostUpdated)===null||i===void 0?void 0:i.call(o)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){this._$EC!==void 0&&(this._$EC.forEach((t,o)=>this._$EO(o,this[o],t)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};w[we]=!0,w.elementProperties=new Map,w.elementStyles=[],w.shadowRootOptions={mode:"open"},Be?.({ReactiveElement:w}),((xe=ae.reactiveElementVersions)!==null&&xe!==void 0?xe:ae.reactiveElementVersions=[]).push("1.6.3");var Ee,ce=window,z=ce.trustedTypes,Ke=z?z.createPolicy("lit-html",{createHTML:s=>s}):void 0,he="$lit$",E=`lit$${(Math.random()+"").slice(9)}$`,Oe="?"+E,wt=`<${Oe}>`,I=document,Q=()=>I.createComment(""),X=s=>s===null||typeof s!="object"&&typeof s!="function",Xe=Array.isArray,Ye=s=>Xe(s)||typeof s?.[Symbol.iterator]=="function",Ce=`[
2
- \f\r]`,J=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,qe=/-->/g,Fe=/>/g,U=RegExp(`>|${Ce}(?:([^\\s"'>=/]+)(${Ce}*=${Ce}*(?:[^
3
- \f\r"'\`<>=]|("|')|))|$)`,"g"),We=/'/g,Ge=/"/g,Ze=/^(?:script|style|textarea|title)$/i,et=s=>(e,...t)=>({_$litType$:s,strings:e,values:t}),x=et(1),Ft=et(2),C=Symbol.for("lit-noChange"),m=Symbol.for("lit-nothing"),Je=new WeakMap,k=I.createTreeWalker(I,129,null,!1);function tt(s,e){if(!Array.isArray(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ke!==void 0?Ke.createHTML(e):e}var st=(s,e)=>{let t=s.length-1,o=[],i,n=e===2?"<svg>":"",r=J;for(let h=0;h<t;h++){let a=s[h],c,p,v=-1,d=0;for(;d<a.length&&(r.lastIndex=d,p=r.exec(a),p!==null);)d=r.lastIndex,r===J?p[1]==="!--"?r=qe:p[1]!==void 0?r=Fe:p[2]!==void 0?(Ze.test(p[2])&&(i=RegExp("</"+p[2],"g")),r=U):p[3]!==void 0&&(r=U):r===U?p[0]===">"?(r=i??J,v=-1):p[1]===void 0?v=-2:(v=r.lastIndex-p[2].length,c=p[1],r=p[3]===void 0?U:p[3]==='"'?Ge:We):r===Ge||r===We?r=U:r===qe||r===Fe?r=J:(r=U,i=void 0);let u=r===U&&s[h+1].startsWith("/>")?" ":"";n+=r===J?a+wt:v>=0?(o.push(c),a.slice(0,v)+he+a.slice(v)+E+u):a+E+(v===-2?(o.push(void 0),h):u)}return[tt(s,n+(s[t]||"<?>")+(e===2?"</svg>":"")),o]},Y=class s{constructor({strings:e,_$litType$:t},o){let i;this.parts=[];let n=0,r=0,h=e.length-1,a=this.parts,[c,p]=st(e,t);if(this.el=s.createElement(c,o),k.currentNode=this.el.content,t===2){let v=this.el.content,d=v.firstChild;d.remove(),v.append(...d.childNodes)}for(;(i=k.nextNode())!==null&&a.length<h;){if(i.nodeType===1){if(i.hasAttributes()){let v=[];for(let d of i.getAttributeNames())if(d.endsWith(he)||d.startsWith(E)){let u=p[r++];if(v.push(d),u!==void 0){let f=i.getAttribute(u.toLowerCase()+he).split(E),g=/([.?@])?(.*)/.exec(u);a.push({type:1,index:n,name:g[2],strings:f,ctor:g[1]==="."?pe:g[1]==="?"?ue:g[1]==="@"?ve:H})}else a.push({type:6,index:n})}for(let d of v)i.removeAttribute(d)}if(Ze.test(i.tagName)){let v=i.textContent.split(E),d=v.length-1;if(d>0){i.textContent=z?z.emptyScript:"";for(let u=0;u<d;u++)i.append(v[u],Q()),k.nextNode(),a.push({type:2,index:++n});i.append(v[d],Q())}}}else if(i.nodeType===8)if(i.data===Oe)a.push({type:2,index:n});else{let v=-1;for(;(v=i.data.indexOf(E,v+1))!==-1;)a.push({type:7,index:n}),v+=E.length-1}n++}}static createElement(e,t){let o=I.createElement("template");return o.innerHTML=e,o}};function T(s,e,t=s,o){var i,n,r,h;if(e===C)return e;let a=o!==void 0?(i=t._$Co)===null||i===void 0?void 0:i[o]:t._$Cl,c=X(e)?void 0:e._$litDirective$;return a?.constructor!==c&&((n=a?._$AO)===null||n===void 0||n.call(a,!1),c===void 0?a=void 0:(a=new c(s),a._$AT(s,t,o)),o!==void 0?((r=(h=t)._$Co)!==null&&r!==void 0?r:h._$Co=[])[o]=a:t._$Cl=a),a!==void 0&&(e=T(s,a._$AS(s,e.values),a,o)),e}var de=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var t;let{el:{content:o},parts:i}=this._$AD,n=((t=e?.creationScope)!==null&&t!==void 0?t:I).importNode(o,!0);k.currentNode=n;let r=k.nextNode(),h=0,a=0,c=i[0];for(;c!==void 0;){if(h===c.index){let p;c.type===2?p=new R(r,r.nextSibling,this,e):c.type===1?p=new c.ctor(r,c.name,c.strings,this,e):c.type===6&&(p=new fe(r,this,e)),this._$AV.push(p),c=i[++a]}h!==c?.index&&(r=k.nextNode(),h++)}return k.currentNode=I,n}v(e){let t=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,t),t+=o.strings.length-2):o._$AI(e[t])),t++}},R=class s{constructor(e,t,o,i){var n;this.type=2,this._$AH=m,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=o,this.options=i,this._$Cp=(n=i?.isConnected)===null||n===void 0||n}get _$AU(){var e,t;return(t=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&t!==void 0?t:this._$Cp}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=T(this,e,t),X(e)?e===m||e==null||e===""?(this._$AH!==m&&this._$AR(),this._$AH=m):e!==this._$AH&&e!==C&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):Ye(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==m&&X(this._$AH)?this._$AA.nextSibling.data=e:this.$(I.createTextNode(e)),this._$AH=e}g(e){var t;let{values:o,_$litType$:i}=e,n=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=Y.createElement(tt(i.h,i.h[0]),this.options)),i);if(((t=this._$AH)===null||t===void 0?void 0:t._$AD)===n)this._$AH.v(o);else{let r=new de(n,this),h=r.u(this.options);r.v(o),this.$(h),this._$AH=r}}_$AC(e){let t=Je.get(e.strings);return t===void 0&&Je.set(e.strings,t=new Y(e)),t}T(e){Xe(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,o,i=0;for(let n of e)i===t.length?t.push(o=new s(this.k(Q()),this.k(Q()),this,this.options)):o=t[i],o._$AI(n),i++;i<t.length&&(this._$AR(o&&o._$AB.nextSibling,i),t.length=i)}_$AR(e=this._$AA.nextSibling,t){var o;for((o=this._$AP)===null||o===void 0||o.call(this,!1,!0,t);e&&e!==this._$AB;){let i=e.nextSibling;e.remove(),e=i}}setConnected(e){var t;this._$AM===void 0&&(this._$Cp=e,(t=this._$AP)===null||t===void 0||t.call(this,e))}},H=class{constructor(e,t,o,i,n){this.type=1,this._$AH=m,this._$AN=void 0,this.element=e,this.name=t,this._$AM=i,this.options=n,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=m}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,o,i){let n=this.strings,r=!1;if(n===void 0)e=T(this,e,t,0),r=!X(e)||e!==this._$AH&&e!==C,r&&(this._$AH=e);else{let h=e,a,c;for(e=n[0],a=0;a<n.length-1;a++)c=T(this,h[o+a],t,a),c===C&&(c=this._$AH[a]),r||(r=!X(c)||c!==this._$AH[a]),c===m?e=m:e!==m&&(e+=(c??"")+n[a+1]),this._$AH[a]=c}r&&!i&&this.j(e)}j(e){e===m?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},pe=class extends H{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===m?void 0:e}},Et=z?z.emptyScript:"",ue=class extends H{constructor(){super(...arguments),this.type=4}j(e){e&&e!==m?this.element.setAttribute(this.name,Et):this.element.removeAttribute(this.name)}},ve=class extends H{constructor(e,t,o,i,n){super(e,t,o,i,n),this.type=5}_$AI(e,t=this){var o;if((e=(o=T(this,e,t,0))!==null&&o!==void 0?o:m)===C)return;let i=this._$AH,n=e===m&&i!==m||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,r=e!==m&&(i===m||n);n&&this.element.removeEventListener(this.name,this,i),r&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,o;typeof this._$AH=="function"?this._$AH.call((o=(t=this.options)===null||t===void 0?void 0:t.host)!==null&&o!==void 0?o:this.element,e):this._$AH.handleEvent(e)}},fe=class{constructor(e,t,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){T(this,e)}},ot={O:he,P:E,A:Oe,C:1,M:st,L:de,R:Ye,D:T,I:R,V:H,H:ue,N:ve,U:pe,F:fe},Qe=ce.litHtmlPolyfillSupport;Qe?.(Y,R),((Ee=ce.litHtmlVersions)!==null&&Ee!==void 0?Ee:ce.litHtmlVersions=[]).push("2.8.0");var it=(s,e,t)=>{var o,i;let n=(o=t?.renderBefore)!==null&&o!==void 0?o:e,r=n._$litPart$;if(r===void 0){let h=(i=t?.renderBefore)!==null&&i!==void 0?i:null;n._$litPart$=r=new R(e.insertBefore(Q(),h),h,void 0,t??{})}return r._$AI(s),r};var Pe,Ue;var b=class extends w{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;let o=super.createRenderRoot();return(e=(t=this.renderOptions).renderBefore)!==null&&e!==void 0||(t.renderBefore=o.firstChild),o}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=it(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!1)}render(){return C}};b.finalized=!0,b._$litElement$=!0,(Pe=globalThis.litElementHydrateSupport)===null||Pe===void 0||Pe.call(globalThis,{LitElement:b});var nt=globalThis.litElementPolyfillSupport;nt?.({LitElement:b});((Ue=globalThis.litElementVersions)!==null&&Ue!==void 0?Ue:globalThis.litElementVersions=[]).push("3.3.3");var Ct=(s,e)=>e.kind==="method"&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(t){t.createProperty(e.key,s)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){typeof e.initializer=="function"&&(this[e.key]=e.initializer.call(this))},finisher(t){t.createProperty(e.key,s)}},Ot=(s,e,t)=>{e.constructor.createProperty(t,s)};function A(s){return(e,t)=>t!==void 0?Ot(s,e,t):Ct(s,e)}var rt={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},lt=s=>(...e)=>({_$litDirective$:s,values:e}),ge=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,o){this._$Ct=e,this._$AM=t,this._$Ci=o}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};var{I:Pt}=ot;var at=()=>document.createComment(""),V=(s,e,t)=>{var o;let i=s._$AA.parentNode,n=e===void 0?s._$AB:e._$AA;if(t===void 0){let r=i.insertBefore(at(),n),h=i.insertBefore(at(),n);t=new Pt(r,h,s,s.options)}else{let r=t._$AB.nextSibling,h=t._$AM,a=h!==s;if(a){let c;(o=t._$AQ)===null||o===void 0||o.call(t,s),t._$AM=s,t._$AP!==void 0&&(c=s._$AU)!==h._$AU&&t._$AP(c)}if(r!==n||a){let c=t._$AA;for(;c!==r;){let p=c.nextSibling;i.insertBefore(c,n),c=p}}}return t},O=(s,e,t=s)=>(s._$AI(e,t),s),Ut={},ct=(s,e=Ut)=>s._$AH=e,ht=s=>s._$AH,me=s=>{var e;(e=s._$AP)===null||e===void 0||e.call(s,!1,!0);let t=s._$AA,o=s._$AB.nextSibling;for(;t!==o;){let i=t.nextSibling;t.remove(),t=i}};var dt=(s,e,t)=>{let o=new Map;for(let i=e;i<=t;i++)o.set(s[i],i);return o},pt=lt(class extends ge{constructor(s){if(super(s),s.type!==rt.CHILD)throw Error("repeat() can only be used in text expressions")}ct(s,e,t){let o;t===void 0?t=e:e!==void 0&&(o=e);let i=[],n=[],r=0;for(let h of s)i[r]=o?o(h,r):r,n[r]=t(h,r),r++;return{values:n,keys:i}}render(s,e,t){return this.ct(s,e,t).values}update(s,[e,t,o]){var i;let n=ht(s),{values:r,keys:h}=this.ct(e,t,o);if(!Array.isArray(n))return this.ut=h,r;let a=(i=this.ut)!==null&&i!==void 0?i:this.ut=[],c=[],p,v,d=0,u=n.length-1,f=0,g=r.length-1;for(;d<=u&&f<=g;)if(n[d]===null)d++;else if(n[u]===null)u--;else if(a[d]===h[f])c[f]=O(n[d],r[f]),d++,f++;else if(a[u]===h[g])c[g]=O(n[u],r[g]),u--,g--;else if(a[d]===h[g])c[g]=O(n[d],r[g]),V(s,c[g+1],n[d]),d++,g--;else if(a[u]===h[f])c[f]=O(n[u],r[f]),V(s,n[d],n[u]),u--,f++;else if(p===void 0&&(p=dt(h,f,g),v=dt(a,d,u)),p.has(a[d]))if(p.has(a[u])){let _=v.get(h[f]),K=_!==void 0?n[_]:null;if(K===null){let se=V(s,n[d]);O(se,r[f]),c[f]=se}else c[f]=O(K,r[f]),V(s,n[d],K),n[_]=null;f++}else me(n[u]),u--;else me(n[d]),d++;for(;f<=g;){let _=V(s,c[g+1]);O(_,r[f]),c[f++]=_}for(;d<=u;){let _=n[d++];_!==null&&me(_)}return this.ut=h,ct(s,c),C}});var N=s=>s??m;var kt=":host{display:inline-block;font-size:13px;line-height:20px;font-family:Segoe UI,Lucida Sans,Arial,sans-serif;color:#111;contain:content}:host([hidden]){display:none!important}:host([level=warn i]){color:#555}:host([level=suggest i]){color:#bf8800}:host([level=error i]){color:#cc0017}:host([level=warn]){color:#555}:host([level=suggest]){color:#bf8800}:host([level=error]){color:#cc0017}.icon{height:12px;width:12px;padding-right:4px;margin-bottom:-1px}",It="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2012%2012'%3e%3cstyle%20id='style3'%3e%20.st0{fill:%23fff}.st1{fill:%23c00}%20%3c/style%3e%3cg%20id='g5'%3e%3cpath%20class='st1'%20d='M6%20.9c2.8%200%205.1%202.3%205.1%205.1S8.8%2011.1%206%2011.1.9%208.8.9%206%203.2.9%206%20.9m0-1C2.7-.1-.1%202.7-.1%206s2.7%206.1%206.1%206.1%206.1-2.7%206.1-6.1S9.3-.1%206-.1z'%20id='path9'/%3e%3c/g%3e%3cg%20id='g11'%3e%3cpath%20class='st0'%20id='rect13'%20d='M5.5%202.5h1v4h-1z'/%3e%3cpath%20class='st1'%20d='M6%203v3-3m1-1H5v5h2V2z'%20id='path15'/%3e%3c/g%3e%3cg%20id='g17'%3e%3cpath%20class='st0'%20id='rect19'%20d='M5.5%208.5h1v1h-1z'/%3e%3cpath%20class='st1'%20id='polygon21'%20d='M7%208H5v2h2V8z'/%3e%3c/g%3e%3c/svg%3e",Tt="data:image/svg+xml,%3csvg%20id='Ebene_1'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cstyle%3e%20.st0{fill:%23bf8800}%20%3c/style%3e%3cpath%20class='st0'%20d='M12%20.8l11%2019.8v1.3H1v-1.3L12%20.8zm.8-.6h-1.6L0%2020v3h24v-3L12.8.2z'/%3e%3cpath%20class='st0'%20d='M11%208h2v8h-2zm0%2010h2v2h-2z'/%3e%3c/svg%3e",Ht="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2012%2012'%3e%3cpath%20class='st1'%20d='M6%20.9c2.8%200%205.1%202.3%205.1%205.1S8.8%2011.1%206%2011.1.9%208.8.9%206%203.2.9%206%20.9m0-1C2.7-.1-.1%202.7-.1%206s2.7%206.1%206.1%206.1%206.1-2.7%206.1-6.1S9.3-.1%206-.1z'%20fill='%23555'/%3e%3cpath%20d='M6%209V6v3m-1%201h2V5H5v5zm2-8H5v2h2z'%20class='st1'%20fill='%23555'/%3e%3c/svg%3e",Mt=Object.defineProperty,Lt=Object.getOwnPropertyDescriptor,Ie=(s,e,t,o)=>{for(var i=o>1?void 0:o?Lt(e,t):e,n=s.length-1,r;n>=0;n--)(r=s[n])&&(i=(o?r(e,t,i):r(i))||i);return o&&i&&Mt(e,t,i),i},B,Z=(B=class extends b{static parseLevel(s){if(s){let e=Object.keys(ee).find(t=>t.toLowerCase()===s.toLowerCase());return e&&ee[e]}}static get styles(){return[G`
4
- ${D(kt)}
5
- `]}render(){return x`${this.iconToUse&&x`<img class="icon" src="${this.iconToUse}">`}${this.message}`}get iconToUse(){return this.icon||this._defaultIconPath}shouldUpdate(s){return s.has("level")&&(this._defaultIconPath=this.iconForLevel,!this.icon)?!0:super.shouldUpdate(s)}get iconForLevel(){switch(B.parseLevel(this.level)){case"warn":return Ht;case"suggest":return Tt;case"error":return It;default:return null}}},B.ID="sd-field-validation-message",B.levelConverter={fromAttribute(s){return B.parseLevel(s)},toAttribute(s){return s&&s.toLowerCase()}},B);Ie([A({type:String,attribute:!0})],Z.prototype,"message",2);Ie([A({type:String,attribute:!0})],Z.prototype,"icon",2);Ie([A({converter:Z.levelConverter,reflect:!0})],Z.prototype,"level",2);var ke=Z,ee=(s=>(s.Warn="warn",s.Suggest="suggest",s.Error="error",s))(ee||{});customElements.get(ke.ID)||customElements.define(ke.ID,ke);var Dt=':host{--component-stage-border-color: var(--color-base-grey-400, #cccccc);--component-stage-border-focus-color: var(--color-base-black, black);--component-stage-border-highlight-color: var(--color-base-white, white);--component-stage-inactive-color: var(--color-base-white, white);--component-stage-active-color: var(--color-base-green-200, #deedbc);--component-stage-selected-color: var(--color-base-green-400, #bedb79);--component-stage-hover-color: var(--color-base-green-300, #cee49c);--component-stage-focus-color: var(--color-base-green-300, #cee49c);--component-stage-font-color: var(--color-base-grey-900, #555555);--component-stage-font-inactive-color: var(--color-base-grey-900, #555555);--component-stage-font-selected-color: var(--color-base-grey-900, #555555);--component-stage-font-hover-color: var(--color-base-grey-900, #555555);--component-stage-font-focus-color: var(--color-base-grey-900, #555555);--component-stage-font-size: var(--size-font-medium, 13px);--component-stage-font-family: var(--font-family-base, "Segoe UI", Tahoma, Geneva, Verdana, sans-serif);--component-stage-transition-time: var(--time-transition-short, 275ms);display:flex;flex-direction:column;width:100%;margin:0;box-sizing:border-box;font-size:var(--component-stage-font-size);font-family:var(--component-stage-font-family);color:var(--component-stage-font-color)}@media (prefers-reduced-motion){:host{--component-stage-transition-time: 1ms}}:host *{box-sizing:border-box}:host *:before,:host *:after{box-sizing:border-box}:host .sections{width:100%;overflow:hidden;display:flex;-webkit-user-select:none;user-select:none}:host .sections .section:first-child{margin-left:0}:host .sections .section:first-child .content{padding-left:0}:host .section{display:flex;flex:1 1 80px;box-sizing:border-box;height:48px;cursor:pointer;overflow:visible;position:relative}:host .section.placeholder{flex:0 0 48px}:host .section.placeholder .index{display:none}:host .section.placeholder .content .label{top:18px;padding:0 16px}:host .section .content{height:100%;flex:1 1 0;overflow:hidden;transition:background-color var(--component-stage-transition-time) ease-in,color var(--component-stage-transition-time) ease-in}:host .section .content .label{position:absolute;top:25px;min-width:28px;width:100%;padding:0 8px 0 16px;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host .section .content .index{position:absolute;bottom:25px;width:100%;padding:0 8px 0 16px;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host .section .arrow{flex:0 0 auto;position:absolute;right:0;top:0;z-index:1;box-sizing:border-box;height:48px;width:48px;margin-right:-24px;transform-origin:center center;border:3px solid var(--component-stage-border-highlight-color);border-left:0px;border-bottom:0px;transform:scaleX(.5) scale(.707) rotate(45deg);transition:background-color var(--component-stage-transition-time) ease-in}:host .section:last-of-type .arrow{display:none}:host .section:last-of-type .content{margin-right:0}:host .section.inactive:last-of-type .content{border-right:1px solid var(--component-stage-border-color)}:host .section.inactive:first-child .content{border-left:1px solid var(--component-stage-border-color)}:host .section.inactive .arrow{border-color:var(--component-stage-border-color)}:host .section.inactive .content{color:var(--component-stage-font-inactive-color);background:var(--component-stage-inactive-color);border-top:1px solid var(--component-stage-border-color);border-bottom:1px solid var(--component-stage-border-color)}:host .section.inactive .content,:host .section.inactive .arrow{background:var(--component-stage-inactive-color)}:host .section.active .content,:host .section.active .arrow{color:var(--component-stage-font-color);background:var(--component-stage-active-color)}:host .section.selected .content,:host .section.selected .arrow{color:var(--component-stage-font-selected-color);background:var(--component-stage-selected-color)}:host .hidden{flex:0 1 0px;margin:0;overflow:hidden}:host ::slotted(*){display:none}:host(.readonly) .section{cursor:default}:host(:focus){outline:none}@media (hover: hover){:host(:not(.readonly)) .section:hover .content,:host(:not(.readonly)) .section:hover .arrow{color:var(--component-stage-font-hover-color);background:var(--component-stage-hover-color)}}:host(:not(.readonly)) .section.focused:focus-visible{outline:none}:host(:not(.readonly)) .section.focused:focus-visible .content{border-top:1px solid var(--component-stage-border-focus-color);border-bottom:1px solid var(--component-stage-border-focus-color)}:host(:not(.readonly)) .section.focused:focus-visible .content,:host(:not(.readonly)) .section.focused:focus-visible .arrow{color:var(--component-stage-font-focus-color);background:var(--component-stage-focus-color)}',zt=Object.defineProperty,Rt=Object.getOwnPropertyDescriptor,te=(s,e,t,o)=>{for(var i=o>1?void 0:o?Rt(e,t):e,n=s.length-1,r;n>=0;n--)(r=s[n])&&(i=(o?r(e,t,i):r(i))||i);return o&&i&&zt(e,t,i),i};function ut(s){return s.label!=null&&s.id!=null}var P,j=(P=class extends b{constructor(){super(...arguments),this._isSpaceOrEnterKeyDown=!1,this._focusIndex=-1,this._focusOutSuspended=!1}static get styles(){return[G`
6
- ${D(Dt)}
7
- `]}get value(){return this._value}set value(s){this._value!==s&&(this._value=s,this._focusIndex=this.getIndexOfSelection(this.value),this.requestUpdate())}get readonly(){return this._readonly}set readonly(s){this._readonly=s,this.classList.remove("readonly"),this._readonly&&this.classList.add("readonly"),this.requestUpdate("readonly")}get possibleValues(){return this._possibleValues}set possibleValues(s){this._possibleValues=s,this.requestUpdate()}connectedCallback(){super.connectedCallback(),this._resizeObserver=new ResizeObserver(this.requestUpdate.bind(this)),this._resizeObserver.observe(this)}focusSibling(s){this.updateFocusIndex(this._focusIndex+s)}updateFocusIndex(s){(this.possibleValues||[]).length!=0&&(this._focusIndex=Math.min(Math.max(0,s),this.possibleValues.length-1),this._focusOutSuspended=!0,this.requestUpdate(),this.updateComplete.then(()=>{var e;this._focusOutSuspended=!1,(e=this.shadowRoot.querySelector(".focused"))==null||e.focus()}))}getIndexOfSelection(s){return(this.possibleValues||[]).length==0?-1:this.possibleValues.map(e=>ut(e)?e.id:e).indexOf(s)}disconnectedCallback(){super.disconnectedCallback(),this._resizeObserver&&(this._resizeObserver.disconnect(),this._resizeObserver=null)}firstUpdated(s){super.firstUpdated(s),this.updatePossibleValuesFromOptionElements(),this.addEventListener("keydown",e=>{e.key=="ArrowLeft"||e.key=="ArrowUp"?(this.focusSibling(-1),e.preventDefault()):e.key=="ArrowRight"||e.key=="ArrowDown"?(this.focusSibling(1),e.preventDefault()):e.key=="PageUp"?(this.focusSibling(-this._renderedItems.length),e.preventDefault()):e.key=="PageDown"&&(this.focusSibling(this._renderedItems.length),e.preventDefault())}),this.addEventListener("focusout",()=>{this._focusOutSuspended||(this._focusIndex=this.getIndexOfSelection(this.value),this.requestUpdate())}),this._focusIndex=this.getIndexOfSelection(this.value)}render(){var s;let e=this.offsetWidth,t=x`<slot @slotchange=${this.updatePossibleValuesFromOptionElements}></slot>`,o=x`<sd-field-validation-message
1
+ var window;(window||={})["@cas-smartdesign/stage"]=(()=>{var me=Object.defineProperty;var dt=Object.getOwnPropertyDescriptor;var pt=Object.getOwnPropertyNames;var ut=Object.prototype.hasOwnProperty;var ft=(t,e)=>{for(var s in e)me(t,s,{get:e[s],enumerable:!0})},gt=(t,e,s,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of pt(e))!ut.call(t,o)&&o!==s&&me(t,o,{get:()=>e[o],enumerable:!(i=dt(e,o))||i.enumerable});return t};var vt=t=>gt(me({},"__esModule",{value:!0}),t);var Vt={};ft(Vt,{Stage:()=>nt});var re=globalThis,ne=re.ShadowRoot&&(re.ShadyCSS===void 0||re.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,$e=Symbol(),ke=new WeakMap,K=class{constructor(e,s,i){if(this._$cssResult$=!0,i!==$e)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=s}get styleSheet(){let e=this.o,s=this.t;if(ne&&e===void 0){let i=s!==void 0&&s.length===1;i&&(e=ke.get(s)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&ke.set(s,e))}return e}toString(){return this.cssText}},k=t=>new K(typeof t=="string"?t:t+"",void 0,$e),W=(t,...e)=>{let s=t.length===1?t[0]:e.reduce(((i,o,r)=>i+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+t[r+1]),t[0]);return new K(s,t,$e)},Le=(t,e)=>{if(ne)t.adoptedStyleSheets=e.map((s=>s instanceof CSSStyleSheet?s:s.styleSheet));else for(let s of e){let i=document.createElement("style"),o=re.litNonce;o!==void 0&&i.setAttribute("nonce",o),i.textContent=s.cssText,t.appendChild(i)}},_e=ne?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let s="";for(let i of e.cssRules)s+=i.cssText;return k(s)})(t):t;var{is:mt,defineProperty:$t,getOwnPropertyDescriptor:_t,getOwnPropertyNames:yt,getOwnPropertySymbols:bt,getPrototypeOf:xt}=Object,ae=globalThis,Re=ae.trustedTypes,At=Re?Re.emptyScript:"",St=ae.reactiveElementPolyfillSupport,F=(t,e)=>t,Z={toAttribute(t,e){switch(e){case Boolean:t=t?At:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let s=t;switch(e){case Boolean:s=t!==null;break;case Number:s=t===null?null:Number(t);break;case Object:case Array:try{s=JSON.parse(t)}catch{s=null}}return s}},le=(t,e)=>!mt(t,e),ze={attribute:!0,type:String,converter:Z,reflect:!1,useDefault:!1,hasChanged:le};Symbol.metadata??=Symbol("metadata"),ae.litPropertyMetadata??=new WeakMap;var S=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,s=ze){if(s.state&&(s.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((s=Object.create(s)).wrapped=!0),this.elementProperties.set(e,s),!s.noAccessor){let i=Symbol(),o=this.getPropertyDescriptor(e,i,s);o!==void 0&&$t(this.prototype,e,o)}}static getPropertyDescriptor(e,s,i){let{get:o,set:r}=_t(this.prototype,e)??{get(){return this[s]},set(n){this[s]=n}};return{get:o,set(n){let h=o?.call(this);r?.call(this,n),this.requestUpdate(e,h,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??ze}static _$Ei(){if(this.hasOwnProperty(F("elementProperties")))return;let e=xt(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(F("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(F("properties"))){let s=this.properties,i=[...yt(s),...bt(s)];for(let o of i)this.createProperty(o,s[o])}let e=this[Symbol.metadata];if(e!==null){let s=litPropertyMetadata.get(e);if(s!==void 0)for(let[i,o]of s)this.elementProperties.set(i,o)}this._$Eh=new Map;for(let[s,i]of this.elementProperties){let o=this._$Eu(s,i);o!==void 0&&this._$Eh.set(o,s)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let s=[];if(Array.isArray(e)){let i=new Set(e.flat(1/0).reverse());for(let o of i)s.unshift(_e(o))}else e!==void 0&&s.push(_e(e));return s}static _$Eu(e,s){let i=s.attribute;return i===!1?void 0:typeof i=="string"?i:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((e=>e(this)))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,s=this.constructor.elementProperties;for(let i of s.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Le(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((e=>e.hostConnected?.()))}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach((e=>e.hostDisconnected?.()))}attributeChangedCallback(e,s,i){this._$AK(e,i)}_$ET(e,s){let i=this.constructor.elementProperties.get(e),o=this.constructor._$Eu(e,i);if(o!==void 0&&i.reflect===!0){let r=(i.converter?.toAttribute!==void 0?i.converter:Z).toAttribute(s,i.type);this._$Em=e,r==null?this.removeAttribute(o):this.setAttribute(o,r),this._$Em=null}}_$AK(e,s){let i=this.constructor,o=i._$Eh.get(e);if(o!==void 0&&this._$Em!==o){let r=i.getPropertyOptions(o),n=typeof r.converter=="function"?{fromAttribute:r.converter}:r.converter?.fromAttribute!==void 0?r.converter:Z;this._$Em=o;let h=n.fromAttribute(s,r.type);this[o]=h??this._$Ej?.get(o)??h,this._$Em=null}}requestUpdate(e,s,i){if(e!==void 0){let o=this.constructor,r=this[e];if(i??=o.getPropertyOptions(e),!((i.hasChanged??le)(r,s)||i.useDefault&&i.reflect&&r===this._$Ej?.get(e)&&!this.hasAttribute(o._$Eu(e,i))))return;this.C(e,s,i)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,s,{useDefault:i,reflect:o,wrapped:r},n){i&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,n??s??this[e]),r!==!0||n!==void 0)||(this._$AL.has(e)||(this.hasUpdated||i||(s=void 0),this._$AL.set(e,s)),o===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(s){Promise.reject(s)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[o,r]of this._$Ep)this[o]=r;this._$Ep=void 0}let i=this.constructor.elementProperties;if(i.size>0)for(let[o,r]of i){let{wrapped:n}=r,h=this[o];n!==!0||this._$AL.has(o)||h===void 0||this.C(o,void 0,r,h)}}let e=!1,s=this._$AL;try{e=this.shouldUpdate(s),e?(this.willUpdate(s),this._$EO?.forEach((i=>i.hostUpdate?.())),this.update(s)):this._$EM()}catch(i){throw e=!1,this._$EM(),i}e&&this._$AE(s)}willUpdate(e){}_$AE(e){this._$EO?.forEach((s=>s.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach((s=>this._$ET(s,this[s]))),this._$EM()}updated(e){}firstUpdated(e){}};S.elementStyles=[],S.shadowRootOptions={mode:"open"},S[F("elementProperties")]=new Map,S[F("finalized")]=new Map,St?.({ReactiveElement:S}),(ae.reactiveElementVersions??=[]).push("2.1.1");var be=globalThis,ce=be.trustedTypes,Ve=ce?ce.createPolicy("lit-html",{createHTML:t=>t}):void 0,xe="$lit$",w=`lit$${Math.random().toFixed(9).slice(2)}$`,Ae="?"+w,wt=`<${Ae}>`,M=document,J=()=>M.createComment(""),Q=t=>t===null||typeof t!="object"&&typeof t!="function",Se=Array.isArray,We=t=>Se(t)||typeof t?.[Symbol.iterator]=="function",ye=`[
2
+ \f\r]`,G=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ne=/-->/g,Be=/>/g,O=RegExp(`>|${ye}(?:([^\\s"'>=/]+)(${ye}*=${ye}*(?:[^
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),je=/'/g,qe=/"/g,Fe=/^(?:script|style|textarea|title)$/i,we=t=>(e,...s)=>({_$litType$:t,strings:e,values:s}),b=we(1),Wt=we(2),Ft=we(3),E=Symbol.for("lit-noChange"),v=Symbol.for("lit-nothing"),Ke=new WeakMap,U=M.createTreeWalker(M,129);function Ze(t,e){if(!Se(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ve!==void 0?Ve.createHTML(e):e}var Ge=(t,e)=>{let s=t.length-1,i=[],o,r=e===2?"<svg>":e===3?"<math>":"",n=G;for(let h=0;h<s;h++){let a=t[h],p,f,c=-1,d=0;for(;d<a.length&&(n.lastIndex=d,f=n.exec(a),f!==null);)d=n.lastIndex,n===G?f[1]==="!--"?n=Ne:f[1]!==void 0?n=Be:f[2]!==void 0?(Fe.test(f[2])&&(o=RegExp("</"+f[2],"g")),n=O):f[3]!==void 0&&(n=O):n===O?f[0]===">"?(n=o??G,c=-1):f[1]===void 0?c=-2:(c=n.lastIndex-f[2].length,p=f[1],n=f[3]===void 0?O:f[3]==='"'?qe:je):n===qe||n===je?n=O:n===Ne||n===Be?n=G:(n=O,o=void 0);let u=n===O&&t[h+1].startsWith("/>")?" ":"";r+=n===G?a+wt:c>=0?(i.push(p),a.slice(0,c)+xe+a.slice(c)+w+u):a+w+(c===-2?h:u)}return[Ze(t,r+(t[s]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},X=class t{constructor({strings:e,_$litType$:s},i){let o;this.parts=[];let r=0,n=0,h=e.length-1,a=this.parts,[p,f]=Ge(e,s);if(this.el=t.createElement(p,i),U.currentNode=this.el.content,s===2||s===3){let c=this.el.content.firstChild;c.replaceWith(...c.childNodes)}for(;(o=U.nextNode())!==null&&a.length<h;){if(o.nodeType===1){if(o.hasAttributes())for(let c of o.getAttributeNames())if(c.endsWith(xe)){let d=f[n++],u=o.getAttribute(c).split(w),g=/([.?@])?(.*)/.exec(d);a.push({type:1,index:r,name:g[2],strings:u,ctor:g[1]==="."?de:g[1]==="?"?pe:g[1]==="@"?ue:I}),o.removeAttribute(c)}else c.startsWith(w)&&(a.push({type:6,index:r}),o.removeAttribute(c));if(Fe.test(o.tagName)){let c=o.textContent.split(w),d=c.length-1;if(d>0){o.textContent=ce?ce.emptyScript:"";for(let u=0;u<d;u++)o.append(c[u],J()),U.nextNode(),a.push({type:2,index:++r});o.append(c[d],J())}}}else if(o.nodeType===8)if(o.data===Ae)a.push({type:2,index:r});else{let c=-1;for(;(c=o.data.indexOf(w,c+1))!==-1;)a.push({type:7,index:r}),c+=w.length-1}r++}}static createElement(e,s){let i=M.createElement("template");return i.innerHTML=e,i}};function T(t,e,s=t,i){if(e===E)return e;let o=i!==void 0?s._$Co?.[i]:s._$Cl,r=Q(e)?void 0:e._$litDirective$;return o?.constructor!==r&&(o?._$AO?.(!1),r===void 0?o=void 0:(o=new r(t),o._$AT(t,s,i)),i!==void 0?(s._$Co??=[])[i]=o:s._$Cl=o),o!==void 0&&(e=T(t,o._$AS(t,e.values),o,i)),e}var he=class{constructor(e,s){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=s}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:s},parts:i}=this._$AD,o=(e?.creationScope??M).importNode(s,!0);U.currentNode=o;let r=U.nextNode(),n=0,h=0,a=i[0];for(;a!==void 0;){if(n===a.index){let p;a.type===2?p=new L(r,r.nextSibling,this,e):a.type===1?p=new a.ctor(r,a.name,a.strings,this,e):a.type===6&&(p=new fe(r,this,e)),this._$AV.push(p),a=i[++h]}n!==a?.index&&(r=U.nextNode(),n++)}return U.currentNode=M,o}p(e){let s=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,s),s+=i.strings.length-2):i._$AI(e[s])),s++}},L=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,s,i,o){this.type=2,this._$AH=v,this._$AN=void 0,this._$AA=e,this._$AB=s,this._$AM=i,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,s=this._$AM;return s!==void 0&&e?.nodeType===11&&(e=s.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,s=this){e=T(this,e,s),Q(e)?e===v||e==null||e===""?(this._$AH!==v&&this._$AR(),this._$AH=v):e!==this._$AH&&e!==E&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):We(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==v&&Q(this._$AH)?this._$AA.nextSibling.data=e:this.T(M.createTextNode(e)),this._$AH=e}$(e){let{values:s,_$litType$:i}=e,o=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=X.createElement(Ze(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===o)this._$AH.p(s);else{let r=new he(o,this),n=r.u(this.options);r.p(s),this.T(n),this._$AH=r}}_$AC(e){let s=Ke.get(e.strings);return s===void 0&&Ke.set(e.strings,s=new X(e)),s}k(e){Se(this._$AH)||(this._$AH=[],this._$AR());let s=this._$AH,i,o=0;for(let r of e)o===s.length?s.push(i=new t(this.O(J()),this.O(J()),this,this.options)):i=s[o],i._$AI(r),o++;o<s.length&&(this._$AR(i&&i._$AB.nextSibling,o),s.length=o)}_$AR(e=this._$AA.nextSibling,s){for(this._$AP?.(!1,!0,s);e!==this._$AB;){let i=e.nextSibling;e.remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},I=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,s,i,o,r){this.type=1,this._$AH=v,this._$AN=void 0,this.element=e,this.name=s,this._$AM=o,this.options=r,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=v}_$AI(e,s=this,i,o){let r=this.strings,n=!1;if(r===void 0)e=T(this,e,s,0),n=!Q(e)||e!==this._$AH&&e!==E,n&&(this._$AH=e);else{let h=e,a,p;for(e=r[0],a=0;a<r.length-1;a++)p=T(this,h[i+a],s,a),p===E&&(p=this._$AH[a]),n||=!Q(p)||p!==this._$AH[a],p===v?e=v:e!==v&&(e+=(p??"")+r[a+1]),this._$AH[a]=p}n&&!o&&this.j(e)}j(e){e===v?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},de=class extends I{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===v?void 0:e}},pe=class extends I{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==v)}},ue=class extends I{constructor(e,s,i,o,r){super(e,s,i,o,r),this.type=5}_$AI(e,s=this){if((e=T(this,e,s,0)??v)===E)return;let i=this._$AH,o=e===v&&i!==v||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,r=e!==v&&(i===v||o);o&&this.element.removeEventListener(this.name,this,i),r&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},fe=class{constructor(e,s,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=s,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){T(this,e)}},Je={M:xe,P:w,A:Ae,C:1,L:Ge,R:he,D:We,V:T,I:L,H:I,N:pe,U:ue,B:de,F:fe},Et=be.litHtmlPolyfillSupport;Et?.(X,L),(be.litHtmlVersions??=[]).push("3.3.1");var Qe=(t,e,s)=>{let i=s?.renderBefore??e,o=i._$litPart$;if(o===void 0){let r=s?.renderBefore??null;i._$litPart$=o=new L(e.insertBefore(J(),r),r,void 0,s??{})}return o._$AI(t),o};var Ee=globalThis,y=class extends S{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let s=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Qe(s,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return E}};y._$litElement$=!0,y.finalized=!0,Ee.litElementHydrateSupport?.({LitElement:y});var Ct=Ee.litElementPolyfillSupport;Ct?.({LitElement:y});(Ee.litElementVersions??=[]).push("4.2.1");var Pt={attribute:!0,type:String,converter:Z,reflect:!1,hasChanged:le},Ot=(t=Pt,e,s)=>{let{kind:i,metadata:o}=s,r=globalThis.litPropertyMetadata.get(o);if(r===void 0&&globalThis.litPropertyMetadata.set(o,r=new Map),i==="setter"&&((t=Object.create(t)).wrapped=!0),r.set(s.name,t),i==="accessor"){let{name:n}=s;return{set(h){let a=e.get.call(this);e.set.call(this,h),this.requestUpdate(n,a,t)},init(h){return h!==void 0&&this.C(n,void 0,t,h),h}}}if(i==="setter"){let{name:n}=s;return function(h){let a=this[n];e.call(this,h),this.requestUpdate(n,a,t)}}throw Error("Unsupported decorator location: "+i)};function x(t){return(e,s)=>typeof s=="object"?Ot(t,e,s):((i,o,r)=>{let n=o.hasOwnProperty(r);return o.constructor.createProperty(r,i),n?Object.getOwnPropertyDescriptor(o,r):void 0})(t,e,s)}var Xe={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Ye=t=>(...e)=>({_$litDirective$:t,values:e}),ge=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,s,i){this._$Ct=e,this._$AM=s,this._$Ci=i}_$AS(e,s){return this.update(e,s)}update(e,s){return this.render(...s)}};var{I:Ut}=Je;var et=()=>document.createComment(""),R=(t,e,s)=>{let i=t._$AA.parentNode,o=e===void 0?t._$AB:e._$AA;if(s===void 0){let r=i.insertBefore(et(),o),n=i.insertBefore(et(),o);s=new Ut(r,n,t,t.options)}else{let r=s._$AB.nextSibling,n=s._$AM,h=n!==t;if(h){let a;s._$AQ?.(t),s._$AM=t,s._$AP!==void 0&&(a=t._$AU)!==n._$AU&&s._$AP(a)}if(r!==o||h){let a=s._$AA;for(;a!==r;){let p=a.nextSibling;i.insertBefore(a,o),a=p}}}return s},C=(t,e,s=t)=>(t._$AI(e,s),t),Mt={},tt=(t,e=Mt)=>t._$AH=e,st=t=>t._$AH,ve=t=>{t._$AR(),t._$AA.remove()};var ot=(t,e,s)=>{let i=new Map;for(let o=e;o<=s;o++)i.set(t[o],o);return i},it=Ye(class extends ge{constructor(t){if(super(t),t.type!==Xe.CHILD)throw Error("repeat() can only be used in text expressions")}dt(t,e,s){let i;s===void 0?s=e:e!==void 0&&(i=e);let o=[],r=[],n=0;for(let h of t)o[n]=i?i(h,n):n,r[n]=s(h,n),n++;return{values:r,keys:o}}render(t,e,s){return this.dt(t,e,s).values}update(t,[e,s,i]){let o=st(t),{values:r,keys:n}=this.dt(e,s,i);if(!Array.isArray(o))return this.ut=n,r;let h=this.ut??=[],a=[],p,f,c=0,d=o.length-1,u=0,g=r.length-1;for(;c<=d&&u<=g;)if(o[c]===null)c++;else if(o[d]===null)d--;else if(h[c]===n[u])a[u]=C(o[c],r[u]),c++,u++;else if(h[d]===n[g])a[g]=C(o[d],r[g]),d--,g--;else if(h[c]===n[g])a[g]=C(o[c],r[g]),R(t,a[g+1],o[c]),c++,g--;else if(h[d]===n[u])a[u]=C(o[d],r[u]),R(t,o[c],o[d]),d--,u++;else if(p===void 0&&(p=ot(n,u,g),f=ot(h,c,d)),p.has(h[c]))if(p.has(h[d])){let $=f.get(n[u]),B=$!==void 0?o[$]:null;if(B===null){let se=R(t,o[c]);C(se,r[u]),a[u]=se}else a[u]=C(B,r[u]),R(t,o[c],B),o[$]=null;u++}else ve(o[d]),d--;else ve(o[c]),c++;for(;u<=g;){let $=R(t,a[g+1]);C($,r[u]),a[u++]=$}for(;c<=d;){let $=o[c++];$!==null&&ve($)}return this.ut=n,tt(t,a),E}});var z=t=>t??v;var Tt=":host{display:inline-block;font-size:13px;line-height:20px;font-family:Segoe UI,Lucida Sans,Arial,sans-serif;color:#111;contain:content}:host([hidden]){display:none!important}:host([level=warn i]){color:#555}:host([level=suggest i]){color:#bf8800}:host([level=error i]){color:#cc0017}:host([level=warn]){color:#555}:host([level=suggest]){color:#bf8800}:host([level=error]){color:#cc0017}.icon{height:12px;width:12px;padding-right:4px;margin-bottom:-1px}",It="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2012%2012'%3e%3cstyle%20id='style3'%3e%20.st0{fill:%23fff}.st1{fill:%23c00}%20%3c/style%3e%3cg%20id='g5'%3e%3cpath%20class='st1'%20d='M6%20.9c2.8%200%205.1%202.3%205.1%205.1S8.8%2011.1%206%2011.1.9%208.8.9%206%203.2.9%206%20.9m0-1C2.7-.1-.1%202.7-.1%206s2.7%206.1%206.1%206.1%206.1-2.7%206.1-6.1S9.3-.1%206-.1z'%20id='path9'/%3e%3c/g%3e%3cg%20id='g11'%3e%3cpath%20class='st0'%20id='rect13'%20d='M5.5%202.5h1v4h-1z'/%3e%3cpath%20class='st1'%20d='M6%203v3-3m1-1H5v5h2V2z'%20id='path15'/%3e%3c/g%3e%3cg%20id='g17'%3e%3cpath%20class='st0'%20id='rect19'%20d='M5.5%208.5h1v1h-1z'/%3e%3cpath%20class='st1'%20id='polygon21'%20d='M7%208H5v2h2V8z'/%3e%3c/g%3e%3c/svg%3e",Ht="data:image/svg+xml,%3csvg%20id='Ebene_1'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cstyle%3e%20.st0{fill:%23bf8800}%20%3c/style%3e%3cpath%20class='st0'%20d='M12%20.8l11%2019.8v1.3H1v-1.3L12%20.8zm.8-.6h-1.6L0%2020v3h24v-3L12.8.2z'/%3e%3cpath%20class='st0'%20d='M11%208h2v8h-2zm0%2010h2v2h-2z'/%3e%3c/svg%3e",Dt="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2012%2012'%3e%3cpath%20class='st1'%20d='M6%20.9c2.8%200%205.1%202.3%205.1%205.1S8.8%2011.1%206%2011.1.9%208.8.9%206%203.2.9%206%20.9m0-1C2.7-.1-.1%202.7-.1%206s2.7%206.1%206.1%206.1%206.1-2.7%206.1-6.1S9.3-.1%206-.1z'%20fill='%23555'/%3e%3cpath%20d='M6%209V6v3m-1%201h2V5H5v5zm2-8H5v2h2z'%20class='st1'%20fill='%23555'/%3e%3c/svg%3e",kt=Object.defineProperty,Pe=(t,e,s,i)=>{for(var o=void 0,r=t.length-1,n;r>=0;r--)(n=t[r])&&(o=n(e,s,o)||o);return o&&kt(e,s,o),o},V,Y=(V=class extends y{static parseLevel(t){if(t){let e=Object.keys(ee).find(s=>s.toLowerCase()===t.toLowerCase());return e&&ee[e]}}static get styles(){return[W`
4
+ ${k(Tt)}
5
+ `]}render(){return b`${this.iconToUse&&b`<img class="icon" src="${this.iconToUse}">`}${this.message}`}get iconToUse(){return this.icon||this._defaultIconPath}shouldUpdate(t){return t.has("level")&&(this._defaultIconPath=this.iconForLevel,!this.icon)?!0:super.shouldUpdate(t)}get iconForLevel(){switch(V.parseLevel(this.level)){case"warn":return Dt;case"suggest":return Ht;case"error":return It;default:return null}}},V.ID="sd-field-validation-message",V.levelConverter={fromAttribute(t){return V.parseLevel(t)},toAttribute(t){return t&&t.toLowerCase()}},V);Pe([x({type:String,attribute:!0})],Y.prototype,"message");Pe([x({type:String,attribute:!0})],Y.prototype,"icon");Pe([x({converter:Y.levelConverter,reflect:!0})],Y.prototype,"level");var Ce=Y,ee=(t=>(t.Warn="warn",t.Suggest="suggest",t.Error="error",t))(ee||{});customElements.get(Ce.ID)||customElements.define(Ce.ID,Ce);var Lt=':host{--component-stage-border-color: var(--color-base-grey-400, #cccccc);--component-stage-border-focus-color: var(--color-base-black, black);--component-stage-border-highlight-color: var(--color-base-white, white);--component-stage-inactive-color: var(--color-base-white, white);--component-stage-active-color: var(--color-base-green-200, #deedbc);--component-stage-selected-color: var(--color-base-green-400, #bedb79);--component-stage-hover-color: var(--color-base-green-300, #cee49c);--component-stage-focus-color: var(--color-base-green-300, #cee49c);--component-stage-font-color: var(--color-base-grey-900, #555555);--component-stage-font-inactive-color: var(--color-base-grey-900, #555555);--component-stage-font-selected-color: var(--color-base-grey-900, #555555);--component-stage-font-hover-color: var(--color-base-grey-900, #555555);--component-stage-font-focus-color: var(--color-base-grey-900, #555555);--component-stage-font-size: var(--size-font-medium, 13px);--component-stage-font-family: var(--font-family-base, "Segoe UI", Tahoma, Geneva, Verdana, sans-serif);--component-stage-transition-time: var(--time-transition-short, 275ms);display:flex;flex-direction:column;width:100%;margin:0;box-sizing:border-box;font-size:var(--component-stage-font-size);font-family:var(--component-stage-font-family);color:var(--component-stage-font-color)}@media (prefers-reduced-motion){:host{--component-stage-transition-time: 1ms}}:host *{box-sizing:border-box}:host *:before,:host *:after{box-sizing:border-box}:host .sections{width:100%;overflow:hidden;display:flex;-webkit-user-select:none;user-select:none}:host .sections .section:first-child{margin-left:0}:host .sections .section:first-child .content{padding-left:0}:host .section{display:flex;flex:1 1 80px;box-sizing:border-box;height:48px;cursor:pointer;overflow:visible;position:relative}:host .section.placeholder{flex:0 0 48px}:host .section.placeholder .index{display:none}:host .section.placeholder .content .label{top:18px;padding:0 16px}:host .section .content{height:100%;flex:1 1 0;overflow:hidden;transition:background-color var(--component-stage-transition-time) ease-in,color var(--component-stage-transition-time) ease-in}:host .section .content .label{position:absolute;top:25px;min-width:28px;width:100%;padding:0 8px 0 16px;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host .section .content .index{position:absolute;bottom:25px;width:100%;padding:0 8px 0 16px;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host .section .arrow{flex:0 0 auto;position:absolute;right:0;top:0;z-index:1;box-sizing:border-box;height:48px;width:48px;margin-right:-24px;transform-origin:center center;border:3px solid var(--component-stage-border-highlight-color);border-left:0px;border-bottom:0px;transform:scaleX(.5) scale(.707) rotate(45deg);transition:background-color var(--component-stage-transition-time) ease-in}:host .section:last-of-type .arrow{display:none}:host .section:last-of-type .content{margin-right:0}:host .section.inactive:last-of-type .content{border-right:1px solid var(--component-stage-border-color)}:host .section.inactive:first-child .content{border-left:1px solid var(--component-stage-border-color)}:host .section.inactive .arrow{border-color:var(--component-stage-border-color)}:host .section.inactive .content{color:var(--component-stage-font-inactive-color);background:var(--component-stage-inactive-color);border-top:1px solid var(--component-stage-border-color);border-bottom:1px solid var(--component-stage-border-color)}:host .section.inactive .content,:host .section.inactive .arrow{background:var(--component-stage-inactive-color)}:host .section.active .content,:host .section.active .arrow{color:var(--component-stage-font-color);background:var(--component-stage-active-color)}:host .section.selected .content,:host .section.selected .arrow{color:var(--component-stage-font-selected-color);background:var(--component-stage-selected-color)}:host .hidden{flex:0 1 0px;margin:0;overflow:hidden}:host ::slotted(*){display:none}:host(.readonly) .section{cursor:default}:host(:focus){outline:none}@media (hover: hover){:host(:not(.readonly)) .section:hover .content,:host(:not(.readonly)) .section:hover .arrow{color:var(--component-stage-font-hover-color);background:var(--component-stage-hover-color)}}:host(:not(.readonly)) .section.focused:focus-visible{outline:none}:host(:not(.readonly)) .section.focused:focus-visible .content{border-top:1px solid var(--component-stage-border-focus-color);border-bottom:1px solid var(--component-stage-border-focus-color)}:host(:not(.readonly)) .section.focused:focus-visible .content,:host(:not(.readonly)) .section.focused:focus-visible .arrow{color:var(--component-stage-font-focus-color);background:var(--component-stage-focus-color)}',Rt=Object.defineProperty,zt=Object.getOwnPropertyDescriptor,te=(t,e,s,i)=>{for(var o=i>1?void 0:i?zt(e,s):e,r=t.length-1,n;r>=0;r--)(n=t[r])&&(o=(i?n(e,s,o):n(o))||o);return i&&o&&Rt(e,s,o),o};function rt(t){return t.label!=null&&t.id!=null}var P,N=(P=class extends y{constructor(){super(...arguments),this._isSpaceOrEnterKeyDown=!1,this._focusIndex=-1,this._focusOutSuspended=!1}static get styles(){return[W`
6
+ ${k(Lt)}
7
+ `]}get value(){return this._value}set value(t){this._value!==t&&(this._value=t,this._focusIndex=this.getIndexOfSelection(this.value),this.requestUpdate())}get readonly(){return this._readonly}set readonly(t){this._readonly=t,this.classList.remove("readonly"),this._readonly&&this.classList.add("readonly"),this.requestUpdate("readonly")}get possibleValues(){return this._possibleValues}set possibleValues(t){this._possibleValues=t,this.requestUpdate()}connectedCallback(){super.connectedCallback(),this._resizeObserver=new ResizeObserver(this.requestUpdate.bind(this)),this._resizeObserver.observe(this)}focusSibling(t){this.updateFocusIndex(this._focusIndex+t)}updateFocusIndex(t){(this.possibleValues||[]).length!=0&&(this._focusIndex=Math.min(Math.max(0,t),this.possibleValues.length-1),this._focusOutSuspended=!0,this.requestUpdate(),this.updateComplete.then(()=>{this._focusOutSuspended=!1,this.shadowRoot.querySelector(".focused")?.focus()}))}getIndexOfSelection(t){return(this.possibleValues||[]).length==0?-1:this.possibleValues.map(e=>rt(e)?e.id:e).indexOf(t)}disconnectedCallback(){super.disconnectedCallback(),this._resizeObserver&&(this._resizeObserver.disconnect(),this._resizeObserver=null)}firstUpdated(t){super.firstUpdated(t),this.updatePossibleValuesFromOptionElements(),this.addEventListener("keydown",e=>{e.key=="ArrowLeft"||e.key=="ArrowUp"?(this.focusSibling(-1),e.preventDefault()):e.key=="ArrowRight"||e.key=="ArrowDown"?(this.focusSibling(1),e.preventDefault()):e.key=="PageUp"?(this.focusSibling(-this._renderedItems.length),e.preventDefault()):e.key=="PageDown"&&(this.focusSibling(this._renderedItems.length),e.preventDefault())}),this.addEventListener("focusout",()=>{this._focusOutSuspended||(this._focusIndex=this.getIndexOfSelection(this.value),this.requestUpdate())}),this._focusIndex=this.getIndexOfSelection(this.value)}render(){let t=this.offsetWidth,e=b`<slot @slotchange=${this.updatePossibleValuesFromOptionElements}></slot>`,s=b`<sd-field-validation-message
8
8
  class="validation-message"
9
9
  .message=${this.validationMessage}
10
10
  .icon=${this.validationIconSrc}
11
11
  .level=${this.validationLevel}
12
12
  >
13
- </sd-field-validation-message>`,i=x`${t}${o}`;if((this._possibleValues||[]).length===0)return i;let n=this._possibleValues.map((l,S)=>ut(l)?{...l,index:S}:{id:l,label:String(l),index:S}),r={label:"...",id:"placeholder1",index:-2,firstHiddenIndex:0},h={label:"...",id:"placeholder2",index:n.length,firstHiddenIndex:n.length},a=80,c=48,p=[],v=[];if(e/a>=n.length||n.length<=2)v=[...n],p=[...n];else{let l=()=>Math.max(1,Math.floor(e/a)),S=()=>{e=this.offsetWidth},$=oe=>{let mt=Math.max(0,oe),ie=0,Le,De,L,q,ze,Re,F;do ze=L,Re=q,ie=l(),L=Math.max(0,Math.min(Math.ceil(mt-ie/2),n.length-ie)),q=L+ie,F=!1,L>0&&!Le&&(e-=c,Le=!0,F=!0),!F&&q<n.length&&!De&&(e-=c,De=!0,F=!0);while(F||ze!=L||Re!=q);return{start:L,end:q}},{start:M,end:y}=$(this._focusIndex);if(this._focusIndex>-1&&y-M>=2&&y<=this._focusIndex+1&&y<n.length){S();let oe=$(this._focusIndex+1);M=oe.start,y=oe.end}let gt=n.slice(M,y),He=M>0?[r]:[],Me=y<n.length?[h]:[];h.firstHiddenIndex=y,v=[...He,...gt,...Me],p=[...He,...n,...Me]}let d=this._value?(s=p.find(l=>l.id===this._value))==null?void 0:s.index:-1,u=l=>l==r||l==h,f=l=>l.index==this._focusIndex,g=l=>!u(l)&&d!=null&&l.index===d,_=l=>u(l)?l.firstHiddenIndex<=d:l.index<d,K=l=>{let S=v.indexOf(l)==-1,$="section";return d!=null?g(l)?$+=" selected":_(l)?$+=" active":$+=" inactive":$+=" inactive",u(l)&&($+=" placeholder"),f(l)&&($+=" focused"),S&&($+=" hidden"),$};this._renderedItems=v.filter(l=>!u(l));let se=l=>{let S=()=>{if(u(l)){l.index<0?this.focusSibling(-this._renderedItems.length):this.focusSibling(this._renderedItems.length);return}this._readonly||(this.value=l.id,this.fireValueChange())},$=p.indexOf(l),M=v.indexOf(l)==-1?-1:p.length-$;return x`
13
+ </sd-field-validation-message>`,i=b`${e}${s}`;if((this._possibleValues||[]).length===0)return i;let o=this._possibleValues.map((l,A)=>rt(l)?{...l,index:A}:{id:l,label:String(l),index:A}),r={label:"...",id:"placeholder1",index:-2,firstHiddenIndex:0},n={label:"...",id:"placeholder2",index:o.length,firstHiddenIndex:o.length},h=80,a=48,p=[],f=[];if(t/h>=o.length||o.length<=2)f=[...o],p=[...o];else{let l=()=>Math.max(1,Math.floor(t/h)),A=()=>{t=this.offsetWidth},m=oe=>{let ht=Math.max(0,oe),ie=0,Te,Ie,D,j,He,De,q;do He=D,De=j,ie=l(),D=Math.max(0,Math.min(Math.ceil(ht-ie/2),o.length-ie)),j=D+ie,q=!1,D>0&&!Te&&(t-=a,Te=!0,q=!0),!q&&j<o.length&&!Ie&&(t-=a,Ie=!0,q=!0);while(q||He!=D||De!=j);return{start:D,end:j}},{start:H,end:_}=m(this._focusIndex);if(this._focusIndex>-1&&_-H>=2&&_<=this._focusIndex+1&&_<o.length){A();let oe=m(this._focusIndex+1);H=oe.start,_=oe.end}let ct=o.slice(H,_),Ue=H>0?[r]:[],Me=_<o.length?[n]:[];n.firstHiddenIndex=_,f=[...Ue,...ct,...Me],p=[...Ue,...o,...Me]}let c=this._value?p.find(l=>l.id===this._value)?.index:-1,d=l=>l==r||l==n,u=l=>l.index==this._focusIndex,g=l=>!d(l)&&c!=null&&l.index===c,$=l=>d(l)?l.firstHiddenIndex<=c:l.index<c,B=l=>{let A=f.indexOf(l)==-1,m="section";return c!=null?g(l)?m+=" selected":$(l)?m+=" active":m+=" inactive":m+=" inactive",d(l)&&(m+=" placeholder"),u(l)&&(m+=" focused"),A&&(m+=" hidden"),m};this._renderedItems=f.filter(l=>!d(l));let se=l=>{let A=()=>{if(d(l)){l.index<0?this.focusSibling(-this._renderedItems.length):this.focusSibling(this._renderedItems.length);return}this._readonly||(this.value=l.id,this.fireValueChange())},m=p.indexOf(l),H=f.indexOf(l)==-1?-1:p.length-m;return b`
14
14
  <div
15
15
  role="option"
16
- style="z-index: ${M}"
17
- id="${N(!u(l)&&l.index?"stage-option-"+l.index:void 0)}"
18
- aria-hidden="${N(u(l)?!0:void 0)}"
19
- aria-selected=${N(this._readonly||u(l)?void 0:g(l)?"true":"false")}
20
- tabindex="${f(l)?0:-1}"
21
- @keydown="${y=>this.onKeyDown(y)}"
22
- @keyup="${y=>this.onKeyUp(y,()=>S())}"
23
- @click="${()=>S()}"
24
- class="${K(l)}"
16
+ style="z-index: ${H}"
17
+ id="${z(!d(l)&&l.index?"stage-option-"+l.index:void 0)}"
18
+ aria-hidden="${z(d(l)?!0:void 0)}"
19
+ aria-selected=${z(this._readonly||d(l)?void 0:g(l)?"true":"false")}
20
+ tabindex="${u(l)?0:-1}"
21
+ @keydown="${_=>this.onKeyDown(_)}"
22
+ @keyup="${_=>this.onKeyUp(_,()=>A())}"
23
+ @click="${()=>A()}"
24
+ class="${B(l)}"
25
25
  >
26
26
  <div class="content" title="${l.label}">
27
- <div class="index" aria-hidden="true">${u(l)?"":l.index+1}</div>
27
+ <div class="index" aria-hidden="true">${d(l)?"":l.index+1}</div>
28
28
  <div class="label">${l.label}</div>
29
29
  </div>
30
30
  <div class="arrow"></div>
31
31
  </div>
32
- `},Te=p.find(l=>l.index==d),$e=p.find(l=>l.index==this._focusIndex),ft=x`<div
32
+ `},at=p.find(l=>l.index==c),Oe=p.find(l=>l.index==this._focusIndex),lt=b`<div
33
33
  class="sections"
34
34
  role="listbox"
35
- aria-activedescendant="${N($e!=null&&$e.index?"stage-option-"+$e.index:void 0)}"
35
+ aria-activedescendant="${z(Oe?.index?"stage-option-"+Oe.index:void 0)}"
36
36
  aria-orientation="horizontal"
37
- aria-valuenow=${N(Te?.label)}
37
+ aria-valuenow=${z(at?.label)}
38
38
  ?aria-readonly="${this._readonly}"
39
39
  >
40
- ${pt(p,l=>l.id,l=>se(l))}
41
- </div>`;return x`${ft}${i}`}onKeyDown(s){this.isSpaceOrEnter(s)&&(this._isSpaceOrEnterKeyDown=!0,s.preventDefault())}onKeyUp(s,e){this.isSpaceOrEnter(s)&&this._isSpaceOrEnterKeyDown==!0&&(this._isSpaceOrEnterKeyDown=!1,e())}updatePossibleValuesFromOptionElements(){let s=Array.prototype.map.call(this.querySelectorAll("option"),e=>e);this.possibleValues=s.length>0?s.map(e=>({id:e.value,label:e.innerText})):this.possibleValues}isSpaceOrEnter(s){switch(s.key){case" ":case"Space":case"Enter":return!0;default:return!1}}fireValueChange(){this.dispatchEvent(new CustomEvent("value-change",{detail:{value:this.value}}))}},P.ID="sd-stage",P.ensureDefined=()=>{customElements.get(P.ID)||customElements.define(P.ID,P)},P.shadowRootOptions={...b.shadowRootOptions,delegatesFocus:!0},P);te([A({type:String})],j.prototype,"validationMessage",2);te([A({type:String})],j.prototype,"validationIconSrc",2);te([A({type:ee,reflect:!0})],j.prototype,"validationLevel",2);te([A({reflect:!0,attribute:!0,converter:{fromAttribute:s=>s,toAttribute:s=>s}})],j.prototype,"value",1);te([A({type:Boolean,attribute:!0,reflect:!0})],j.prototype,"readonly",1);var vt=j;vt.ensureDefined();return At(Vt);})();
40
+ ${it(p,l=>l.id,l=>se(l))}
41
+ </div>`;return b`${lt}${i}`}onKeyDown(t){this.isSpaceOrEnter(t)&&(this._isSpaceOrEnterKeyDown=!0,t.preventDefault())}onKeyUp(t,e){this.isSpaceOrEnter(t)&&this._isSpaceOrEnterKeyDown==!0&&(this._isSpaceOrEnterKeyDown=!1,e())}updatePossibleValuesFromOptionElements(){let t=Array.prototype.map.call(this.querySelectorAll("option"),e=>e);this.possibleValues=t.length>0?t.map(e=>({id:e.value,label:e.innerText})):this.possibleValues}isSpaceOrEnter(t){switch(t.key){case" ":case"Space":case"Enter":return!0;default:return!1}}fireValueChange(){this.dispatchEvent(new CustomEvent("value-change",{detail:{value:this.value}}))}},P.ID="sd-stage",P.ensureDefined=()=>{customElements.get(P.ID)||customElements.define(P.ID,P)},P.shadowRootOptions={...y.shadowRootOptions,delegatesFocus:!0},P);te([x({type:String})],N.prototype,"validationMessage",2);te([x({type:String})],N.prototype,"validationIconSrc",2);te([x({type:ee,reflect:!0})],N.prototype,"validationLevel",2);te([x({reflect:!0,attribute:!0,converter:{fromAttribute:t=>t,toAttribute:t=>t}})],N.prototype,"value",1);te([x({type:Boolean,attribute:!0,reflect:!0})],N.prototype,"readonly",1);var nt=N;nt.ensureDefined();return vt(Vt);})();
42
42
  /*! Bundled license information:
43
43
 
44
44
  @lit/reactive-element/css-tag.js:
@@ -49,20 +49,11 @@ var window;(window||={})["@cas-smartdesign/stage"]=(()=>{var _e=Object.definePro
49
49
  *)
50
50
 
51
51
  @lit/reactive-element/reactive-element.js:
52
- (**
53
- * @license
54
- * Copyright 2017 Google LLC
55
- * SPDX-License-Identifier: BSD-3-Clause
56
- *)
57
-
58
52
  lit-html/lit-html.js:
59
- (**
60
- * @license
61
- * Copyright 2017 Google LLC
62
- * SPDX-License-Identifier: BSD-3-Clause
63
- *)
64
-
65
53
  lit-element/lit-element.js:
54
+ @lit/reactive-element/decorators/property.js:
55
+ lit-html/directive.js:
56
+ lit-html/directives/repeat.js:
66
57
  (**
67
58
  * @license
68
59
  * Copyright 2017 Google LLC
@@ -76,20 +67,6 @@ lit-html/is-server.js:
76
67
  * SPDX-License-Identifier: BSD-3-Clause
77
68
  *)
78
69
 
79
- @lit/reactive-element/decorators/property.js:
80
- (**
81
- * @license
82
- * Copyright 2017 Google LLC
83
- * SPDX-License-Identifier: BSD-3-Clause
84
- *)
85
-
86
- lit-html/directive.js:
87
- (**
88
- * @license
89
- * Copyright 2017 Google LLC
90
- * SPDX-License-Identifier: BSD-3-Clause
91
- *)
92
-
93
70
  lit-html/directive-helpers.js:
94
71
  (**
95
72
  * @license
@@ -97,13 +74,6 @@ lit-html/directive-helpers.js:
97
74
  * SPDX-License-Identifier: BSD-3-Clause
98
75
  *)
99
76
 
100
- lit-html/directives/repeat.js:
101
- (**
102
- * @license
103
- * Copyright 2017 Google LLC
104
- * SPDX-License-Identifier: BSD-3-Clause
105
- *)
106
-
107
77
  lit-html/directives/if-defined.js:
108
78
  (**
109
79
  * @license