@telia-ace/widget-components-area-flamingo 1.1.82-rc.1 → 1.1.82-rc.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,35 +2,35 @@
2
2
  * @license
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
- */const q=globalThis,$t=q.ShadowRoot&&(q.ShadyCSS===void 0||q.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,_t=Symbol(),jt=new WeakMap;let ne=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==_t)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if($t&&t===void 0){const i=e!==void 0&&e.length===1;i&&(t=jt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&jt.set(e,t))}return t}toString(){return this.cssText}};const xe=s=>new ne(typeof s=="string"?s:s+"",void 0,_t),O=(s,...t)=>{const e=s.length===1?s[0]:t.reduce((i,r,n)=>i+(o=>{if(o._$cssResult$===!0)return o.cssText;if(typeof o=="number")return o;throw Error("Value passed to 'css' function must be a 'css' function result: "+o+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+s[n+1],s[0]);return new ne(e,s,_t)},Se=(s,t)=>{if($t)s.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const i=document.createElement("style"),r=q.litNonce;r!==void 0&&i.setAttribute("nonce",r),i.textContent=e.cssText,s.appendChild(i)}},Mt=$t?s=>s:s=>s instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return xe(e)})(s):s;/**
5
+ */const W=globalThis,$t=W.ShadowRoot&&(W.ShadyCSS===void 0||W.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,_t=Symbol(),jt=new WeakMap;let ne=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==_t)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if($t&&t===void 0){const i=e!==void 0&&e.length===1;i&&(t=jt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&jt.set(e,t))}return t}toString(){return this.cssText}};const Se=s=>new ne(typeof s=="string"?s:s+"",void 0,_t),O=(s,...t)=>{const e=s.length===1?s[0]:t.reduce((i,r,n)=>i+(o=>{if(o._$cssResult$===!0)return o.cssText;if(typeof o=="number")return o;throw Error("Value passed to 'css' function must be a 'css' function result: "+o+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+s[n+1],s[0]);return new ne(e,s,_t)},Ee=(s,t)=>{if($t)s.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const i=document.createElement("style"),r=W.litNonce;r!==void 0&&i.setAttribute("nonce",r),i.textContent=e.cssText,s.appendChild(i)}},Mt=$t?s=>s:s=>s instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return Se(e)})(s):s;/**
6
6
  * @license
7
7
  * Copyright 2017 Google LLC
8
8
  * SPDX-License-Identifier: BSD-3-Clause
9
- */const{is:Ee,defineProperty:Ce,getOwnPropertyDescriptor:Pe,getOwnPropertyNames:Oe,getOwnPropertySymbols:ke,getPrototypeOf:Te}=Object,w=globalThis,Nt=w.trustedTypes,Re=Nt?Nt.emptyScript:"",st=w.reactiveElementPolyfillSupport,N=(s,t)=>s,Z={toAttribute(s,t){switch(t){case Boolean:s=s?Re:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,t){let e=s;switch(t){case Boolean:e=s!==null;break;case Number:e=s===null?null:Number(s);break;case Object:case Array:try{e=JSON.parse(s)}catch{e=null}}return e}},wt=(s,t)=>!Ee(s,t),It={attribute:!0,type:String,converter:Z,reflect:!1,hasChanged:wt};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),w.litPropertyMetadata??(w.litPropertyMetadata=new WeakMap);let T=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=It){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),r=this.getPropertyDescriptor(t,i,e);r!==void 0&&Ce(this.prototype,t,r)}}static getPropertyDescriptor(t,e,i){const{get:r,set:n}=Pe(this.prototype,t)??{get(){return this[e]},set(o){this[e]=o}};return{get(){return r==null?void 0:r.call(this)},set(o){const a=r==null?void 0:r.call(this);n.call(this,o),this.requestUpdate(t,a,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??It}static _$Ei(){if(this.hasOwnProperty(N("elementProperties")))return;const t=Te(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(N("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(N("properties"))){const e=this.properties,i=[...Oe(e),...ke(e)];for(const r of i)this.createProperty(r,e[r])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[i,r]of e)this.elementProperties.set(i,r)}this._$Eh=new Map;for(const[e,i]of this.elementProperties){const r=this._$Eu(e,i);r!==void 0&&this._$Eh.set(r,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const r of i)e.unshift(Mt(r))}else t!==void 0&&e.push(Mt(t));return e}static _$Eu(t,e){const i=e.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((e=t.hostConnected)==null||e.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Se(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var i;return(i=e.hostConnected)==null?void 0:i.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var i;return(i=e.hostDisconnected)==null?void 0:i.call(e)})}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EC(t,e){var n;const i=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,i);if(r!==void 0&&i.reflect===!0){const o=(((n=i.converter)==null?void 0:n.toAttribute)!==void 0?i.converter:Z).toAttribute(e,i.type);this._$Em=t,o==null?this.removeAttribute(r):this.setAttribute(r,o),this._$Em=null}}_$AK(t,e){var n;const i=this.constructor,r=i._$Eh.get(t);if(r!==void 0&&this._$Em!==r){const o=i.getPropertyOptions(r),a=typeof o.converter=="function"?{fromAttribute:o.converter}:((n=o.converter)==null?void 0:n.fromAttribute)!==void 0?o.converter:Z;this._$Em=r,this[r]=a.fromAttribute(e,o.type),this._$Em=null}}requestUpdate(t,e,i){if(t!==void 0){if(i??(i=this.constructor.getPropertyOptions(t)),!(i.hasChanged??wt)(this[t],e))return;this.P(t,e,i)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,i){this._$AL.has(t)||this._$AL.set(t,e),i.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[n,o]of this._$Ep)this[n]=o;this._$Ep=void 0}const r=this.constructor.elementProperties;if(r.size>0)for(const[n,o]of r)o.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.P(n,this[n],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(i=this._$EO)==null||i.forEach(r=>{var n;return(n=r.hostUpdate)==null?void 0:n.call(r)}),this.update(e)):this._$EU()}catch(r){throw t=!1,this._$EU(),r}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(i=>{var r;return(r=i.hostUpdated)==null?void 0:r.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU()}updated(t){}firstUpdated(t){}};T.elementStyles=[],T.shadowRootOptions={mode:"open"},T[N("elementProperties")]=new Map,T[N("finalized")]=new Map,st==null||st({ReactiveElement:T}),(w.reactiveElementVersions??(w.reactiveElementVersions=[])).push("2.0.4");/**
9
+ */const{is:Ce,defineProperty:Pe,getOwnPropertyDescriptor:Oe,getOwnPropertyNames:ke,getOwnPropertySymbols:Te,getPrototypeOf:Re}=Object,w=globalThis,Nt=w.trustedTypes,Ue=Nt?Nt.emptyScript:"",st=w.reactiveElementPolyfillSupport,N=(s,t)=>s,K={toAttribute(s,t){switch(t){case Boolean:s=s?Ue:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,t){let e=s;switch(t){case Boolean:e=s!==null;break;case Number:e=s===null?null:Number(s);break;case Object:case Array:try{e=JSON.parse(s)}catch{e=null}}return e}},wt=(s,t)=>!Ce(s,t),It={attribute:!0,type:String,converter:K,reflect:!1,hasChanged:wt};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),w.litPropertyMetadata??(w.litPropertyMetadata=new WeakMap);let T=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=It){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),r=this.getPropertyDescriptor(t,i,e);r!==void 0&&Pe(this.prototype,t,r)}}static getPropertyDescriptor(t,e,i){const{get:r,set:n}=Oe(this.prototype,t)??{get(){return this[e]},set(o){this[e]=o}};return{get(){return r==null?void 0:r.call(this)},set(o){const a=r==null?void 0:r.call(this);n.call(this,o),this.requestUpdate(t,a,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??It}static _$Ei(){if(this.hasOwnProperty(N("elementProperties")))return;const t=Re(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(N("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(N("properties"))){const e=this.properties,i=[...ke(e),...Te(e)];for(const r of i)this.createProperty(r,e[r])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[i,r]of e)this.elementProperties.set(i,r)}this._$Eh=new Map;for(const[e,i]of this.elementProperties){const r=this._$Eu(e,i);r!==void 0&&this._$Eh.set(r,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const r of i)e.unshift(Mt(r))}else t!==void 0&&e.push(Mt(t));return e}static _$Eu(t,e){const i=e.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((e=t.hostConnected)==null||e.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Ee(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var i;return(i=e.hostConnected)==null?void 0:i.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var i;return(i=e.hostDisconnected)==null?void 0:i.call(e)})}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EC(t,e){var n;const i=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,i);if(r!==void 0&&i.reflect===!0){const o=(((n=i.converter)==null?void 0:n.toAttribute)!==void 0?i.converter:K).toAttribute(e,i.type);this._$Em=t,o==null?this.removeAttribute(r):this.setAttribute(r,o),this._$Em=null}}_$AK(t,e){var n;const i=this.constructor,r=i._$Eh.get(t);if(r!==void 0&&this._$Em!==r){const o=i.getPropertyOptions(r),a=typeof o.converter=="function"?{fromAttribute:o.converter}:((n=o.converter)==null?void 0:n.fromAttribute)!==void 0?o.converter:K;this._$Em=r,this[r]=a.fromAttribute(e,o.type),this._$Em=null}}requestUpdate(t,e,i){if(t!==void 0){if(i??(i=this.constructor.getPropertyOptions(t)),!(i.hasChanged??wt)(this[t],e))return;this.P(t,e,i)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,i){this._$AL.has(t)||this._$AL.set(t,e),i.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[n,o]of this._$Ep)this[n]=o;this._$Ep=void 0}const r=this.constructor.elementProperties;if(r.size>0)for(const[n,o]of r)o.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.P(n,this[n],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(i=this._$EO)==null||i.forEach(r=>{var n;return(n=r.hostUpdate)==null?void 0:n.call(r)}),this.update(e)):this._$EU()}catch(r){throw t=!1,this._$EU(),r}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(i=>{var r;return(r=i.hostUpdated)==null?void 0:r.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU()}updated(t){}firstUpdated(t){}};T.elementStyles=[],T.shadowRootOptions={mode:"open"},T[N("elementProperties")]=new Map,T[N("finalized")]=new Map,st==null||st({ReactiveElement:T}),(w.reactiveElementVersions??(w.reactiveElementVersions=[])).push("2.0.4");/**
10
10
  * @license
11
11
  * Copyright 2017 Google LLC
12
12
  * SPDX-License-Identifier: BSD-3-Clause
13
- */const I=globalThis,K=I.trustedTypes,Lt=K?K.createPolicy("lit-html",{createHTML:s=>s}):void 0,oe="$lit$",_=`lit$${Math.random().toFixed(9).slice(2)}$`,ae="?"+_,Ue=`<${ae}>`,C=document,H=()=>C.createComment(""),B=s=>s===null||typeof s!="object"&&typeof s!="function",At=Array.isArray,je=s=>At(s)||typeof(s==null?void 0:s[Symbol.iterator])=="function",rt=`[
13
+ */const I=globalThis,G=I.trustedTypes,Lt=G?G.createPolicy("lit-html",{createHTML:s=>s}):void 0,oe="$lit$",_=`lit$${Math.random().toFixed(9).slice(2)}$`,ae="?"+_,je=`<${ae}>`,C=document,H=()=>C.createComment(""),B=s=>s===null||typeof s!="object"&&typeof s!="function",At=Array.isArray,Me=s=>At(s)||typeof(s==null?void 0:s[Symbol.iterator])=="function",rt=`[
14
14
  \f\r]`,M=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ht=/-->/g,Bt=/>/g,A=RegExp(`>|${rt}(?:([^\\s"'>=/]+)(${rt}*=${rt}*(?:[^
15
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Dt=/'/g,zt=/"/g,ce=/^(?:script|style|textarea|title)$/i,Me=s=>(t,...e)=>({_$litType$:s,strings:t,values:e}),S=Me(1),P=Symbol.for("lit-noChange"),u=Symbol.for("lit-nothing"),Vt=new WeakMap,E=C.createTreeWalker(C,129);function he(s,t){if(!At(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return Lt!==void 0?Lt.createHTML(t):t}const Ne=(s,t)=>{const e=s.length-1,i=[];let r,n=t===2?"<svg>":t===3?"<math>":"",o=M;for(let a=0;a<e;a++){const c=s[a];let h,l,d=-1,p=0;for(;p<c.length&&(o.lastIndex=p,l=o.exec(c),l!==null);)p=o.lastIndex,o===M?l[1]==="!--"?o=Ht:l[1]!==void 0?o=Bt:l[2]!==void 0?(ce.test(l[2])&&(r=RegExp("</"+l[2],"g")),o=A):l[3]!==void 0&&(o=A):o===A?l[0]===">"?(o=r??M,d=-1):l[1]===void 0?d=-2:(d=o.lastIndex-l[2].length,h=l[1],o=l[3]===void 0?A:l[3]==='"'?zt:Dt):o===zt||o===Dt?o=A:o===Ht||o===Bt?o=M:(o=A,r=void 0);const f=o===A&&s[a+1].startsWith("/>")?" ":"";n+=o===M?c+Ue:d>=0?(i.push(h),c.slice(0,d)+oe+c.slice(d)+_+f):c+_+(d===-2?a:f)}return[he(s,n+(s[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),i]};let ut=class le{constructor({strings:t,_$litType$:e},i){let r;this.parts=[];let n=0,o=0;const a=t.length-1,c=this.parts,[h,l]=Ne(t,e);if(this.el=le.createElement(h,i),E.currentNode=this.el.content,e===2||e===3){const d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(r=E.nextNode())!==null&&c.length<a;){if(r.nodeType===1){if(r.hasAttributes())for(const d of r.getAttributeNames())if(d.endsWith(oe)){const p=l[o++],f=r.getAttribute(d).split(_),k=/([.?@])?(.*)/.exec(p);c.push({type:1,index:n,name:k[2],strings:f,ctor:k[1]==="."?Le:k[1]==="?"?He:k[1]==="@"?Be:et}),r.removeAttribute(d)}else d.startsWith(_)&&(c.push({type:6,index:n}),r.removeAttribute(d));if(ce.test(r.tagName)){const d=r.textContent.split(_),p=d.length-1;if(p>0){r.textContent=K?K.emptyScript:"";for(let f=0;f<p;f++)r.append(d[f],H()),E.nextNode(),c.push({type:2,index:++n});r.append(d[p],H())}}}else if(r.nodeType===8)if(r.data===ae)c.push({type:2,index:n});else{let d=-1;for(;(d=r.data.indexOf(_,d+1))!==-1;)c.push({type:7,index:n}),d+=_.length-1}n++}}static createElement(t,e){const i=C.createElement("template");return i.innerHTML=t,i}};function R(s,t,e=s,i){var o,a;if(t===P)return t;let r=i!==void 0?(o=e._$Co)==null?void 0:o[i]:e._$Cl;const n=B(t)?void 0:t._$litDirective$;return(r==null?void 0:r.constructor)!==n&&((a=r==null?void 0:r._$AO)==null||a.call(r,!1),n===void 0?r=void 0:(r=new n(s),r._$AT(s,e,i)),i!==void 0?(e._$Co??(e._$Co=[]))[i]=r:e._$Cl=r),r!==void 0&&(t=R(s,r._$AS(s,t.values),r,i)),t}class Ie{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:i}=this._$AD,r=((t==null?void 0:t.creationScope)??C).importNode(e,!0);E.currentNode=r;let n=E.nextNode(),o=0,a=0,c=i[0];for(;c!==void 0;){if(o===c.index){let h;c.type===2?h=new z(n,n.nextSibling,this,t):c.type===1?h=new c.ctor(n,c.name,c.strings,this,t):c.type===6&&(h=new De(n,this,t)),this._$AV.push(h),c=i[++a]}o!==(c==null?void 0:c.index)&&(n=E.nextNode(),o++)}return E.currentNode=C,r}p(t){let e=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class z{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,i,r){this.type=2,this._$AH=u,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=r,this._$Cv=(r==null?void 0:r.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=R(this,t,e),B(t)?t===u||t==null||t===""?(this._$AH!==u&&this._$AR(),this._$AH=u):t!==this._$AH&&t!==P&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):je(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==u&&B(this._$AH)?this._$AA.nextSibling.data=t:this.T(C.createTextNode(t)),this._$AH=t}$(t){var n;const{values:e,_$litType$:i}=t,r=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=ut.createElement(he(i.h,i.h[0]),this.options)),i);if(((n=this._$AH)==null?void 0:n._$AD)===r)this._$AH.p(e);else{const o=new Ie(r,this),a=o.u(this.options);o.p(e),this.T(a),this._$AH=o}}_$AC(t){let e=Vt.get(t.strings);return e===void 0&&Vt.set(t.strings,e=new ut(t)),e}k(t){At(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,r=0;for(const n of t)r===e.length?e.push(i=new z(this.O(H()),this.O(H()),this,this.options)):i=e[r],i._$AI(n),r++;r<e.length&&(this._$AR(i&&i._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,e);t&&t!==this._$AB;){const r=t.nextSibling;t.remove(),t=r}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}}class et{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,r,n){this.type=1,this._$AH=u,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=n,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=u}_$AI(t,e=this,i,r){const n=this.strings;let o=!1;if(n===void 0)t=R(this,t,e,0),o=!B(t)||t!==this._$AH&&t!==P,o&&(this._$AH=t);else{const a=t;let c,h;for(t=n[0],c=0;c<n.length-1;c++)h=R(this,a[i+c],e,c),h===P&&(h=this._$AH[c]),o||(o=!B(h)||h!==this._$AH[c]),h===u?t=u:t!==u&&(t+=(h??"")+n[c+1]),this._$AH[c]=h}o&&!r&&this.j(t)}j(t){t===u?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Le extends et{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===u?void 0:t}}class He extends et{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==u)}}class Be extends et{constructor(t,e,i,r,n){super(t,e,i,r,n),this.type=5}_$AI(t,e=this){if((t=R(this,t,e,0)??u)===P)return;const i=this._$AH,r=t===u&&i!==u||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,n=t!==u&&(i===u||r);r&&this.element.removeEventListener(this.name,this,i),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e;typeof this._$AH=="function"?this._$AH.call(((e=this.options)==null?void 0:e.host)??this.element,t):this._$AH.handleEvent(t)}}class De{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){R(this,t)}}const nt=I.litHtmlPolyfillSupport;nt==null||nt(ut,z),(I.litHtmlVersions??(I.litHtmlVersions=[])).push("3.2.1");const ze=(s,t,e)=>{const i=(e==null?void 0:e.renderBefore)??t;let r=i._$litPart$;if(r===void 0){const n=(e==null?void 0:e.renderBefore)??null;i._$litPart$=r=new z(t.insertBefore(H(),n),n,void 0,e??{})}return r._$AI(s),r};/**
15
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Dt=/'/g,zt=/"/g,ce=/^(?:script|style|textarea|title)$/i,Ne=s=>(t,...e)=>({_$litType$:s,strings:t,values:e}),S=Ne(1),P=Symbol.for("lit-noChange"),u=Symbol.for("lit-nothing"),Vt=new WeakMap,E=C.createTreeWalker(C,129);function he(s,t){if(!At(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return Lt!==void 0?Lt.createHTML(t):t}const Ie=(s,t)=>{const e=s.length-1,i=[];let r,n=t===2?"<svg>":t===3?"<math>":"",o=M;for(let a=0;a<e;a++){const c=s[a];let h,l,d=-1,p=0;for(;p<c.length&&(o.lastIndex=p,l=o.exec(c),l!==null);)p=o.lastIndex,o===M?l[1]==="!--"?o=Ht:l[1]!==void 0?o=Bt:l[2]!==void 0?(ce.test(l[2])&&(r=RegExp("</"+l[2],"g")),o=A):l[3]!==void 0&&(o=A):o===A?l[0]===">"?(o=r??M,d=-1):l[1]===void 0?d=-2:(d=o.lastIndex-l[2].length,h=l[1],o=l[3]===void 0?A:l[3]==='"'?zt:Dt):o===zt||o===Dt?o=A:o===Ht||o===Bt?o=M:(o=A,r=void 0);const f=o===A&&s[a+1].startsWith("/>")?" ":"";n+=o===M?c+je:d>=0?(i.push(h),c.slice(0,d)+oe+c.slice(d)+_+f):c+_+(d===-2?a:f)}return[he(s,n+(s[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),i]};let ut=class le{constructor({strings:t,_$litType$:e},i){let r;this.parts=[];let n=0,o=0;const a=t.length-1,c=this.parts,[h,l]=Ie(t,e);if(this.el=le.createElement(h,i),E.currentNode=this.el.content,e===2||e===3){const d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(r=E.nextNode())!==null&&c.length<a;){if(r.nodeType===1){if(r.hasAttributes())for(const d of r.getAttributeNames())if(d.endsWith(oe)){const p=l[o++],f=r.getAttribute(d).split(_),k=/([.?@])?(.*)/.exec(p);c.push({type:1,index:n,name:k[2],strings:f,ctor:k[1]==="."?He:k[1]==="?"?Be:k[1]==="@"?De:et}),r.removeAttribute(d)}else d.startsWith(_)&&(c.push({type:6,index:n}),r.removeAttribute(d));if(ce.test(r.tagName)){const d=r.textContent.split(_),p=d.length-1;if(p>0){r.textContent=G?G.emptyScript:"";for(let f=0;f<p;f++)r.append(d[f],H()),E.nextNode(),c.push({type:2,index:++n});r.append(d[p],H())}}}else if(r.nodeType===8)if(r.data===ae)c.push({type:2,index:n});else{let d=-1;for(;(d=r.data.indexOf(_,d+1))!==-1;)c.push({type:7,index:n}),d+=_.length-1}n++}}static createElement(t,e){const i=C.createElement("template");return i.innerHTML=t,i}};function R(s,t,e=s,i){var o,a;if(t===P)return t;let r=i!==void 0?(o=e._$Co)==null?void 0:o[i]:e._$Cl;const n=B(t)?void 0:t._$litDirective$;return(r==null?void 0:r.constructor)!==n&&((a=r==null?void 0:r._$AO)==null||a.call(r,!1),n===void 0?r=void 0:(r=new n(s),r._$AT(s,e,i)),i!==void 0?(e._$Co??(e._$Co=[]))[i]=r:e._$Cl=r),r!==void 0&&(t=R(s,r._$AS(s,t.values),r,i)),t}class Le{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:i}=this._$AD,r=((t==null?void 0:t.creationScope)??C).importNode(e,!0);E.currentNode=r;let n=E.nextNode(),o=0,a=0,c=i[0];for(;c!==void 0;){if(o===c.index){let h;c.type===2?h=new V(n,n.nextSibling,this,t):c.type===1?h=new c.ctor(n,c.name,c.strings,this,t):c.type===6&&(h=new ze(n,this,t)),this._$AV.push(h),c=i[++a]}o!==(c==null?void 0:c.index)&&(n=E.nextNode(),o++)}return E.currentNode=C,r}p(t){let e=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class V{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,i,r){this.type=2,this._$AH=u,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=r,this._$Cv=(r==null?void 0:r.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=R(this,t,e),B(t)?t===u||t==null||t===""?(this._$AH!==u&&this._$AR(),this._$AH=u):t!==this._$AH&&t!==P&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Me(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==u&&B(this._$AH)?this._$AA.nextSibling.data=t:this.T(C.createTextNode(t)),this._$AH=t}$(t){var n;const{values:e,_$litType$:i}=t,r=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=ut.createElement(he(i.h,i.h[0]),this.options)),i);if(((n=this._$AH)==null?void 0:n._$AD)===r)this._$AH.p(e);else{const o=new Le(r,this),a=o.u(this.options);o.p(e),this.T(a),this._$AH=o}}_$AC(t){let e=Vt.get(t.strings);return e===void 0&&Vt.set(t.strings,e=new ut(t)),e}k(t){At(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,r=0;for(const n of t)r===e.length?e.push(i=new V(this.O(H()),this.O(H()),this,this.options)):i=e[r],i._$AI(n),r++;r<e.length&&(this._$AR(i&&i._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,e);t&&t!==this._$AB;){const r=t.nextSibling;t.remove(),t=r}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}}class et{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,r,n){this.type=1,this._$AH=u,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=n,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=u}_$AI(t,e=this,i,r){const n=this.strings;let o=!1;if(n===void 0)t=R(this,t,e,0),o=!B(t)||t!==this._$AH&&t!==P,o&&(this._$AH=t);else{const a=t;let c,h;for(t=n[0],c=0;c<n.length-1;c++)h=R(this,a[i+c],e,c),h===P&&(h=this._$AH[c]),o||(o=!B(h)||h!==this._$AH[c]),h===u?t=u:t!==u&&(t+=(h??"")+n[c+1]),this._$AH[c]=h}o&&!r&&this.j(t)}j(t){t===u?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class He extends et{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===u?void 0:t}}class Be extends et{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==u)}}class De extends et{constructor(t,e,i,r,n){super(t,e,i,r,n),this.type=5}_$AI(t,e=this){if((t=R(this,t,e,0)??u)===P)return;const i=this._$AH,r=t===u&&i!==u||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,n=t!==u&&(i===u||r);r&&this.element.removeEventListener(this.name,this,i),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e;typeof this._$AH=="function"?this._$AH.call(((e=this.options)==null?void 0:e.host)??this.element,t):this._$AH.handleEvent(t)}}class ze{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){R(this,t)}}const nt=I.litHtmlPolyfillSupport;nt==null||nt(ut,V),(I.litHtmlVersions??(I.litHtmlVersions=[])).push("3.2.1");const Ve=(s,t,e)=>{const i=(e==null?void 0:e.renderBefore)??t;let r=i._$litPart$;if(r===void 0){const n=(e==null?void 0:e.renderBefore)??null;i._$litPart$=r=new V(t.insertBefore(H(),n),n,void 0,e??{})}return r._$AI(s),r};/**
16
16
  * @license
17
17
  * Copyright 2017 Google LLC
18
18
  * SPDX-License-Identifier: BSD-3-Clause
19
- */let m=class extends T{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e;const t=super.createRenderRoot();return(e=this.renderOptions).renderBefore??(e.renderBefore=t.firstChild),t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=ze(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return P}};var re;m._$litElement$=!0,m.finalized=!0,(re=globalThis.litElementHydrateSupport)==null||re.call(globalThis,{LitElement:m});const ot=globalThis.litElementPolyfillSupport;ot==null||ot({LitElement:m});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.1.1");/**
19
+ */let m=class extends T{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e;const t=super.createRenderRoot();return(e=this.renderOptions).renderBefore??(e.renderBefore=t.firstChild),t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Ve(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return P}};var re;m._$litElement$=!0,m.finalized=!0,(re=globalThis.litElementHydrateSupport)==null||re.call(globalThis,{LitElement:m});const ot=globalThis.litElementPolyfillSupport;ot==null||ot({LitElement:m});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.1.1");/**
20
20
  * @license
21
21
  * Copyright 2021 Google LLC
22
22
  * SPDX-License-Identifier: BSD-3-Clause
23
- */function*de(s,t){if(s!==void 0){let e=0;for(const i of s)yield t(i,e++)}}var pt=function(s,t){return pt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])},pt(s,t)};function V(s,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");pt(s,t);function e(){this.constructor=s}s.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}function ft(s){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&s[t],i=0;if(e)return e.call(s);if(s&&typeof s.length=="number")return{next:function(){return s&&i>=s.length&&(s=void 0),{value:s&&s[i++],done:!s}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function gt(s,t){var e=typeof Symbol=="function"&&s[Symbol.iterator];if(!e)return s;var i=e.call(s),r,n=[],o;try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)n.push(r.value)}catch(a){o={error:a}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(o)throw o.error}}return n}function vt(s,t,e){if(e||arguments.length===2)for(var i=0,r=t.length,n;i<r;i++)(n||!(i in t))&&(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return s.concat(n||Array.prototype.slice.call(t))}function b(s){return typeof s=="function"}function ue(s){var t=function(i){Error.call(i),i.stack=new Error().stack},e=s(t);return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var at=ue(function(s){return function(e){s(this),this.message=e?e.length+` errors occurred during unsubscription:
23
+ */function*de(s,t){if(s!==void 0){let e=0;for(const i of s)yield t(i,e++)}}var pt=function(s,t){return pt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])},pt(s,t)};function F(s,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");pt(s,t);function e(){this.constructor=s}s.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}function ft(s){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&s[t],i=0;if(e)return e.call(s);if(s&&typeof s.length=="number")return{next:function(){return s&&i>=s.length&&(s=void 0),{value:s&&s[i++],done:!s}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function gt(s,t){var e=typeof Symbol=="function"&&s[Symbol.iterator];if(!e)return s;var i=e.call(s),r,n=[],o;try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)n.push(r.value)}catch(a){o={error:a}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(o)throw o.error}}return n}function vt(s,t,e){if(e||arguments.length===2)for(var i=0,r=t.length,n;i<r;i++)(n||!(i in t))&&(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return s.concat(n||Array.prototype.slice.call(t))}function b(s){return typeof s=="function"}function ue(s){var t=function(i){Error.call(i),i.stack=new Error().stack},e=s(t);return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var at=ue(function(s){return function(e){s(this),this.message=e?e.length+` errors occurred during unsubscription:
24
24
  `+e.map(function(i,r){return r+1+") "+i.toString()}).join(`
25
- `):"",this.name="UnsubscriptionError",this.errors=e}});function mt(s,t){if(s){var e=s.indexOf(t);0<=e&&s.splice(e,1)}}var it=function(){function s(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return s.prototype.unsubscribe=function(){var t,e,i,r,n;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=ft(o),c=a.next();!c.done;c=a.next()){var h=c.value;h.remove(this)}}catch(v){t={error:v}}finally{try{c&&!c.done&&(e=a.return)&&e.call(a)}finally{if(t)throw t.error}}else o.remove(this);var l=this.initialTeardown;if(b(l))try{l()}catch(v){n=v instanceof at?v.errors:[v]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var p=ft(d),f=p.next();!f.done;f=p.next()){var k=f.value;try{Ft(k)}catch(v){n=n??[],v instanceof at?n=vt(vt([],gt(n)),gt(v.errors)):n.push(v)}}}catch(v){i={error:v}}finally{try{f&&!f.done&&(r=p.return)&&r.call(p)}finally{if(i)throw i.error}}}if(n)throw new at(n)}},s.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)Ft(t);else{if(t instanceof s){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(t)}},s.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},s.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},s.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&mt(e,t)},s.prototype.remove=function(t){var e=this._finalizers;e&&mt(e,t),t instanceof s&&t._removeParent(this)},s.EMPTY=function(){var t=new s;return t.closed=!0,t}(),s}(),pe=it.EMPTY;function fe(s){return s instanceof it||s&&"closed"in s&&b(s.remove)&&b(s.add)&&b(s.unsubscribe)}function Ft(s){b(s)?s():s.unsubscribe()}var ge={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Ve={setTimeout:function(s,t){for(var e=[],i=2;i<arguments.length;i++)e[i-2]=arguments[i];return setTimeout.apply(void 0,vt([s,t],gt(e)))},clearTimeout:function(s){return clearTimeout(s)},delegate:void 0};function Fe(s){Ve.setTimeout(function(){throw s})}function Yt(){}function W(s){s()}var ve=function(s){V(t,s);function t(e){var i=s.call(this)||this;return i.isStopped=!1,e?(i.destination=e,fe(e)&&e.add(i)):i.destination=Ze,i}return t.create=function(e,i,r){return new yt(e,i,r)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,s.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(it),Ye=Function.prototype.bind;function ct(s,t){return Ye.call(s,t)}var qe=function(){function s(t){this.partialObserver=t}return s.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(i){Y(i)}},s.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(i){Y(i)}else Y(t)},s.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){Y(e)}},s}(),yt=function(s){V(t,s);function t(e,i,r){var n=s.call(this)||this,o;if(b(e)||!e)o={next:e??void 0,error:i??void 0,complete:r??void 0};else{var a;n&&ge.useDeprecatedNextContext?(a=Object.create(e),a.unsubscribe=function(){return n.unsubscribe()},o={next:e.next&&ct(e.next,a),error:e.error&&ct(e.error,a),complete:e.complete&&ct(e.complete,a)}):o=e}return n.destination=new qe(o),n}return t}(ve);function Y(s){Fe(s)}function We(s){throw s}var Ze={closed:!0,next:Yt,error:We,complete:Yt},Ke=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Ge(s){return s}function Xe(s){return s.length===0?Ge:s.length===1?s[0]:function(e){return s.reduce(function(i,r){return r(i)},e)}}var qt=function(){function s(t){t&&(this._subscribe=t)}return s.prototype.lift=function(t){var e=new s;return e.source=this,e.operator=t,e},s.prototype.subscribe=function(t,e,i){var r=this,n=Qe(t)?t:new yt(t,e,i);return W(function(){var o=r,a=o.operator,c=o.source;n.add(a?a.call(n,c):c?r._subscribe(n):r._trySubscribe(n))}),n},s.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},s.prototype.forEach=function(t,e){var i=this;return e=Wt(e),new e(function(r,n){var o=new yt({next:function(a){try{t(a)}catch(c){n(c),o.unsubscribe()}},error:n,complete:r});i.subscribe(o)})},s.prototype._subscribe=function(t){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(t)},s.prototype[Ke]=function(){return this},s.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Xe(t)(this)},s.prototype.toPromise=function(t){var e=this;return t=Wt(t),new t(function(i,r){var n;e.subscribe(function(o){return n=o},function(o){return r(o)},function(){return i(n)})})},s.create=function(t){return new s(t)},s}();function Wt(s){var t;return(t=s??ge.Promise)!==null&&t!==void 0?t:Promise}function Je(s){return s&&b(s.next)&&b(s.error)&&b(s.complete)}function Qe(s){return s&&s instanceof ve||Je(s)&&fe(s)}var ti=ue(function(s){return function(){s(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),xt=function(s){V(t,s);function t(){var e=s.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return t.prototype.lift=function(e){var i=new Zt(this,this);return i.operator=e,i},t.prototype._throwIfClosed=function(){if(this.closed)throw new ti},t.prototype.next=function(e){var i=this;W(function(){var r,n;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var o=ft(i.currentObservers),a=o.next();!a.done;a=o.next()){var c=a.value;c.next(e)}}catch(h){r={error:h}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}}})},t.prototype.error=function(e){var i=this;W(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=e;for(var r=i.observers;r.length;)r.shift().error(e)}})},t.prototype.complete=function(){var e=this;W(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var i=e.observers;i.length;)i.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(e){return this._throwIfClosed(),s.prototype._trySubscribe.call(this,e)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var i=this,r=this,n=r.hasError,o=r.isStopped,a=r.observers;return n||o?pe:(this.currentObservers=null,a.push(e),new it(function(){i.currentObservers=null,mt(a,e)}))},t.prototype._checkFinalizedStatuses=function(e){var i=this,r=i.hasError,n=i.thrownError,o=i.isStopped;r?e.error(n):o&&e.complete()},t.prototype.asObservable=function(){var e=new qt;return e.source=this,e},t.create=function(e,i){return new Zt(e,i)},t}(qt),Zt=function(s){V(t,s);function t(e,i){var r=s.call(this)||this;return r.destination=e,r.source=i,r}return t.prototype.next=function(e){var i,r;(r=(i=this.destination)===null||i===void 0?void 0:i.next)===null||r===void 0||r.call(i,e)},t.prototype.error=function(e){var i,r;(r=(i=this.destination)===null||i===void 0?void 0:i.error)===null||r===void 0||r.call(i,e)},t.prototype.complete=function(){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||i===void 0||i.call(e)},t.prototype._subscribe=function(e){var i,r;return(r=(i=this.source)===null||i===void 0?void 0:i.subscribe(e))!==null&&r!==void 0?r:pe},t}(xt),ei=function(s){V(t,s);function t(e){var i=s.call(this)||this;return i._value=e,i}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(e){var i=s.prototype._subscribe.call(this,e);return!i.closed&&e.next(this._value),i},t.prototype.getValue=function(){var e=this,i=e.hasError,r=e.thrownError,n=e._value;if(i)throw r;return this._throwIfClosed(),n},t.prototype.next=function(e){s.prototype.next.call(this,this._value=e)},t}(xt);/**
25
+ `):"",this.name="UnsubscriptionError",this.errors=e}});function mt(s,t){if(s){var e=s.indexOf(t);0<=e&&s.splice(e,1)}}var it=function(){function s(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return s.prototype.unsubscribe=function(){var t,e,i,r,n;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=ft(o),c=a.next();!c.done;c=a.next()){var h=c.value;h.remove(this)}}catch(v){t={error:v}}finally{try{c&&!c.done&&(e=a.return)&&e.call(a)}finally{if(t)throw t.error}}else o.remove(this);var l=this.initialTeardown;if(b(l))try{l()}catch(v){n=v instanceof at?v.errors:[v]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var p=ft(d),f=p.next();!f.done;f=p.next()){var k=f.value;try{Ft(k)}catch(v){n=n??[],v instanceof at?n=vt(vt([],gt(n)),gt(v.errors)):n.push(v)}}}catch(v){i={error:v}}finally{try{f&&!f.done&&(r=p.return)&&r.call(p)}finally{if(i)throw i.error}}}if(n)throw new at(n)}},s.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)Ft(t);else{if(t instanceof s){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(t)}},s.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},s.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},s.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&mt(e,t)},s.prototype.remove=function(t){var e=this._finalizers;e&&mt(e,t),t instanceof s&&t._removeParent(this)},s.EMPTY=function(){var t=new s;return t.closed=!0,t}(),s}(),pe=it.EMPTY;function fe(s){return s instanceof it||s&&"closed"in s&&b(s.remove)&&b(s.add)&&b(s.unsubscribe)}function Ft(s){b(s)?s():s.unsubscribe()}var ge={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Fe={setTimeout:function(s,t){for(var e=[],i=2;i<arguments.length;i++)e[i-2]=arguments[i];return setTimeout.apply(void 0,vt([s,t],gt(e)))},clearTimeout:function(s){return clearTimeout(s)},delegate:void 0};function Ye(s){Fe.setTimeout(function(){throw s})}function Yt(){}function Z(s){s()}var ve=function(s){F(t,s);function t(e){var i=s.call(this)||this;return i.isStopped=!1,e?(i.destination=e,fe(e)&&e.add(i)):i.destination=Ke,i}return t.create=function(e,i,r){return new yt(e,i,r)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,s.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(it),qe=Function.prototype.bind;function ct(s,t){return qe.call(s,t)}var We=function(){function s(t){this.partialObserver=t}return s.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(i){q(i)}},s.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(i){q(i)}else q(t)},s.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){q(e)}},s}(),yt=function(s){F(t,s);function t(e,i,r){var n=s.call(this)||this,o;if(b(e)||!e)o={next:e??void 0,error:i??void 0,complete:r??void 0};else{var a;n&&ge.useDeprecatedNextContext?(a=Object.create(e),a.unsubscribe=function(){return n.unsubscribe()},o={next:e.next&&ct(e.next,a),error:e.error&&ct(e.error,a),complete:e.complete&&ct(e.complete,a)}):o=e}return n.destination=new We(o),n}return t}(ve);function q(s){Ye(s)}function Ze(s){throw s}var Ke={closed:!0,next:Yt,error:Ze,complete:Yt},Ge=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Xe(s){return s}function Je(s){return s.length===0?Xe:s.length===1?s[0]:function(e){return s.reduce(function(i,r){return r(i)},e)}}var qt=function(){function s(t){t&&(this._subscribe=t)}return s.prototype.lift=function(t){var e=new s;return e.source=this,e.operator=t,e},s.prototype.subscribe=function(t,e,i){var r=this,n=ti(t)?t:new yt(t,e,i);return Z(function(){var o=r,a=o.operator,c=o.source;n.add(a?a.call(n,c):c?r._subscribe(n):r._trySubscribe(n))}),n},s.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},s.prototype.forEach=function(t,e){var i=this;return e=Wt(e),new e(function(r,n){var o=new yt({next:function(a){try{t(a)}catch(c){n(c),o.unsubscribe()}},error:n,complete:r});i.subscribe(o)})},s.prototype._subscribe=function(t){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(t)},s.prototype[Ge]=function(){return this},s.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Je(t)(this)},s.prototype.toPromise=function(t){var e=this;return t=Wt(t),new t(function(i,r){var n;e.subscribe(function(o){return n=o},function(o){return r(o)},function(){return i(n)})})},s.create=function(t){return new s(t)},s}();function Wt(s){var t;return(t=s??ge.Promise)!==null&&t!==void 0?t:Promise}function Qe(s){return s&&b(s.next)&&b(s.error)&&b(s.complete)}function ti(s){return s&&s instanceof ve||Qe(s)&&fe(s)}var ei=ue(function(s){return function(){s(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),xt=function(s){F(t,s);function t(){var e=s.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return t.prototype.lift=function(e){var i=new Zt(this,this);return i.operator=e,i},t.prototype._throwIfClosed=function(){if(this.closed)throw new ei},t.prototype.next=function(e){var i=this;Z(function(){var r,n;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var o=ft(i.currentObservers),a=o.next();!a.done;a=o.next()){var c=a.value;c.next(e)}}catch(h){r={error:h}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}}})},t.prototype.error=function(e){var i=this;Z(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=e;for(var r=i.observers;r.length;)r.shift().error(e)}})},t.prototype.complete=function(){var e=this;Z(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var i=e.observers;i.length;)i.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(e){return this._throwIfClosed(),s.prototype._trySubscribe.call(this,e)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var i=this,r=this,n=r.hasError,o=r.isStopped,a=r.observers;return n||o?pe:(this.currentObservers=null,a.push(e),new it(function(){i.currentObservers=null,mt(a,e)}))},t.prototype._checkFinalizedStatuses=function(e){var i=this,r=i.hasError,n=i.thrownError,o=i.isStopped;r?e.error(n):o&&e.complete()},t.prototype.asObservable=function(){var e=new qt;return e.source=this,e},t.create=function(e,i){return new Zt(e,i)},t}(qt),Zt=function(s){F(t,s);function t(e,i){var r=s.call(this)||this;return r.destination=e,r.source=i,r}return t.prototype.next=function(e){var i,r;(r=(i=this.destination)===null||i===void 0?void 0:i.next)===null||r===void 0||r.call(i,e)},t.prototype.error=function(e){var i,r;(r=(i=this.destination)===null||i===void 0?void 0:i.error)===null||r===void 0||r.call(i,e)},t.prototype.complete=function(){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||i===void 0||i.call(e)},t.prototype._subscribe=function(e){var i,r;return(r=(i=this.source)===null||i===void 0?void 0:i.subscribe(e))!==null&&r!==void 0?r:pe},t}(xt),ii=function(s){F(t,s);function t(e){var i=s.call(this)||this;return i._value=e,i}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(e){var i=s.prototype._subscribe.call(this,e);return!i.closed&&e.next(this._value),i},t.prototype.getValue=function(){var e=this,i=e.hasError,r=e.thrownError,n=e._value;if(i)throw r;return this._throwIfClosed(),n},t.prototype.next=function(e){s.prototype.next.call(this,this._value=e)},t}(xt);/**
26
26
  * @license
27
27
  * Copyright 2017 Google LLC
28
28
  * SPDX-License-Identifier: BSD-3-Clause
29
- */const ii={attribute:!0,type:String,converter:Z,reflect:!1,hasChanged:wt},si=(s=ii,t,e)=>{const{kind:i,metadata:r}=e;let n=globalThis.litPropertyMetadata.get(r);if(n===void 0&&globalThis.litPropertyMetadata.set(r,n=new Map),n.set(e.name,s),i==="accessor"){const{name:o}=e;return{set(a){const c=t.get.call(this);t.set.call(this,a),this.requestUpdate(o,c,s)},init(a){return a!==void 0&&this.P(o,void 0,s),a}}}if(i==="setter"){const{name:o}=e;return function(a){const c=this[o];t.call(this,a),this.requestUpdate(o,c,s)}}throw Error("Unsupported decorator location: "+i)};function g(s){return(t,e)=>typeof e=="object"?si(s,t,e):((i,r,n)=>{const o=r.hasOwnProperty(n);return r.constructor.createProperty(n,o?{...i,wrapped:!0}:i),o?Object.getOwnPropertyDescriptor(r,n):void 0})(s,t,e)}/**
29
+ */const si={attribute:!0,type:String,converter:K,reflect:!1,hasChanged:wt},ri=(s=si,t,e)=>{const{kind:i,metadata:r}=e;let n=globalThis.litPropertyMetadata.get(r);if(n===void 0&&globalThis.litPropertyMetadata.set(r,n=new Map),n.set(e.name,s),i==="accessor"){const{name:o}=e;return{set(a){const c=t.get.call(this);t.set.call(this,a),this.requestUpdate(o,c,s)},init(a){return a!==void 0&&this.P(o,void 0,s),a}}}if(i==="setter"){const{name:o}=e;return function(a){const c=this[o];t.call(this,a),this.requestUpdate(o,c,s)}}throw Error("Unsupported decorator location: "+i)};function g(s){return(t,e)=>typeof e=="object"?ri(s,t,e):((i,r,n)=>{const o=r.hasOwnProperty(n);return r.constructor.createProperty(n,o?{...i,wrapped:!0}:i),o?Object.getOwnPropertyDescriptor(r,n):void 0})(s,t,e)}/**
30
30
  * @license
31
31
  * Copyright 2017 Google LLC
32
32
  * SPDX-License-Identifier: BSD-3-Clause
33
- */function j(s){return g({...s,state:!0,attribute:!1})}var ri=Object.defineProperty,ni=(s,t,e,i)=>{for(var r=void 0,n=s.length-1,o;n>=0;n--)(o=s[n])&&(r=o(t,e,r)||r);return r&&ri(t,e,r),r};const Pt=class Pt extends m{constructor(){super(...arguments),this.anchor="BottomRight"}appendChild(t){var e;return(e=this.shadowRoot)==null||e.appendChild(t),t}render(){return this.anchor==="BottomLeft"?this.renderRoot.host.classList.add("bottom-left"):this.anchor==="BottomRight"&&this.renderRoot.host.classList.add("bottom-right"),u}};Pt.styles=[O`
33
+ */function j(s){return g({...s,state:!0,attribute:!1})}var ni=Object.defineProperty,oi=(s,t,e,i)=>{for(var r=void 0,n=s.length-1,o;n>=0;n--)(o=s[n])&&(r=o(t,e,r)||r);return r&&ni(t,e,r),r};const Pt=class Pt extends m{constructor(){super(...arguments),this.anchor="BottomRight"}appendChild(t){var e;return(e=this.shadowRoot)==null||e.appendChild(t),t}render(){return this.anchor==="BottomLeft"?this.renderRoot.host.classList.add("bottom-left"):this.anchor==="BottomRight"&&this.renderRoot.host.classList.add("bottom-right"),u}};Pt.styles=[O`
34
34
  :host {
35
35
  position: fixed;
36
36
  display: flex;
@@ -46,7 +46,7 @@
46
46
  bottom: 20px;
47
47
  left: 20px;
48
48
  }
49
- `];let G=Pt;ni([g({attribute:!0})],G.prototype,"anchor");/**
49
+ `];let X=Pt;oi([g({attribute:!0})],X.prototype,"anchor");/**
50
50
  * @license
51
51
  * Copyright 2017 Google LLC
52
52
  * SPDX-License-Identifier: BSD-3-Clause
@@ -54,11 +54,11 @@
54
54
  * @license
55
55
  * Copyright 2020 Google LLC
56
56
  * SPDX-License-Identifier: BSD-3-Clause
57
- */const oi=s=>s.strings===void 0;/**
57
+ */const ai=s=>s.strings===void 0;/**
58
58
  * @license
59
59
  * Copyright 2017 Google LLC
60
60
  * SPDX-License-Identifier: BSD-3-Clause
61
- */const L=(s,t)=>{var i;const e=s._$AN;if(e===void 0)return!1;for(const r of e)(i=r._$AO)==null||i.call(r,t,!1),L(r,t);return!0},X=s=>{let t,e;do{if((t=s._$AM)===void 0)break;e=t._$AN,e.delete(s),s=t}while((e==null?void 0:e.size)===0)},ye=s=>{for(let t;t=s._$AM;s=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(s))break;e.add(s),hi(t)}};function ai(s){this._$AN!==void 0?(X(this),this._$AM=s,ye(this)):this._$AM=s}function ci(s,t=!1,e=0){const i=this._$AH,r=this._$AN;if(r!==void 0&&r.size!==0)if(t)if(Array.isArray(i))for(let n=e;n<i.length;n++)L(i[n],!1),X(i[n]);else i!=null&&(L(i,!1),X(i));else L(this,s)}const hi=s=>{s.type==St.CHILD&&(s._$AP??(s._$AP=ci),s._$AQ??(s._$AQ=ai))};class be extends me{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,i){super._$AT(t,e,i),ye(this),this.isConnected=t._$AU}_$AO(t,e=!0){var i,r;t!==this.isConnected&&(this.isConnected=t,t?(i=this.reconnected)==null||i.call(this):(r=this.disconnected)==null||r.call(this)),e&&(L(this,t),X(this))}setValue(t){if(oi(this._$Ct))this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}}const li=new WeakMap;let Kt=0;const ht=new Map,Gt=new WeakSet,Xt=()=>new Promise(s=>requestAnimationFrame(s)),di=[{transform:"translateX(100%) scale(0)",opacity:0}],Jt=(s,t)=>{const e=s-t;return e===0?void 0:e},Qt=(s,t)=>{const e=s/t;return e===1?void 0:e},lt={left:(s,t)=>{const e=Jt(s,t);return{value:e,transform:e==null||isNaN(e)?void 0:`translateX(${e}px)`}},top:(s,t)=>{const e=Jt(s,t);return{value:e,transform:e==null||isNaN(e)?void 0:`translateY(${e}px)`}},width:(s,t)=>{let e;t===0&&(t=1,e={width:"1px"});const i=Qt(s,t);return{value:i,overrideFrom:e,transform:i==null||isNaN(i)?void 0:`scaleX(${i})`}},height:(s,t)=>{let e;t===0&&(t=1,e={height:"1px"});const i=Qt(s,t);return{value:i,overrideFrom:e,transform:i==null||isNaN(i)?void 0:`scaleY(${i})`}}},ui={duration:333,easing:"ease-in-out"},pi=["left","top","width","height","opacity","color","background"],te=new WeakMap;class fi extends be{constructor(t){if(super(t),this.t=!1,this.i=null,this.o=null,this.h=!0,this.shouldLog=!1,t.type===St.CHILD)throw Error("The `animate` directive must be used in attribute position.");this.createFinished()}createFinished(){var t;(t=this.resolveFinished)==null||t.call(this),this.finished=new Promise(e=>{this.l=e})}async resolveFinished(){var t;(t=this.l)==null||t.call(this),this.l=void 0}render(t){return u}getController(){return li.get(this.u)}isDisabled(){var t;return this.options.disabled||((t=this.getController())==null?void 0:t.disabled)}update(t,[e]){var r;const i=this.u===void 0;return i&&(this.u=(r=t.options)==null?void 0:r.host,this.u.addController(this),this.u.updateComplete.then(n=>this.t=!0),this.element=t.element,te.set(this.element,this)),this.optionsOrCallback=e,(i||typeof e!="function")&&this.p(e),this.render(e)}p(t){t=t??{};const e=this.getController();e!==void 0&&((t={...e.defaultOptions,...t}).keyframeOptions={...e.defaultOptions.keyframeOptions,...t.keyframeOptions}),t.properties??(t.properties=pi),this.options=t}m(){const t={},e=this.element.getBoundingClientRect(),i=getComputedStyle(this.element);return this.options.properties.forEach(r=>{const n=e[r]??(lt[r]?void 0:i[r]),o=Number(n);t[r]=isNaN(o)?n+"":o}),t}v(){let t,e=!0;return this.options.guard&&(t=this.options.guard(),e=((i,r)=>{if(Array.isArray(i)){if(Array.isArray(r)&&r.length===i.length&&i.every((n,o)=>n===r[o]))return!1}else if(r===i)return!1;return!0})(t,this._)),this.h=this.t&&!this.isDisabled()&&!this.isAnimating()&&e&&this.element.isConnected,this.h&&(this._=Array.isArray(t)?Array.from(t):t),this.h}hostUpdate(){typeof this.optionsOrCallback=="function"&&this.p(this.optionsOrCallback()),this.v()&&(this.A=this.m(),this.i=this.i??this.element.parentNode,this.o=this.element.nextSibling)}async hostUpdated(){if(!this.h||!this.element.isConnected||this.options.skipInitial&&!this.isHostRendered)return;let t;this.prepare(),await Xt;const e=this.O(),i=this.j(this.options.keyframeOptions,e),r=this.m();if(this.A!==void 0){const{from:n,to:o}=this.N(this.A,r,e);this.log("measured",[this.A,r,n,o]),t=this.calculateKeyframes(n,o)}else{const n=ht.get(this.options.inId);if(n){ht.delete(this.options.inId);const{from:o,to:a}=this.N(n,r,e);t=this.calculateKeyframes(o,a),t=this.options.in?[{...this.options.in[0],...t[0]},...this.options.in.slice(1),t[1]]:t,Kt++,t.forEach(c=>c.zIndex=Kt)}else this.options.in&&(t=[...this.options.in,{}])}this.animate(t,i)}resetStyles(){this.P!==void 0&&(this.element.setAttribute("style",this.P??""),this.P=void 0)}commitStyles(){var t,e;this.P=this.element.getAttribute("style"),(t=this.webAnimation)==null||t.commitStyles(),(e=this.webAnimation)==null||e.cancel()}reconnected(){}async disconnected(){var e;if(!this.h||(this.options.id!==void 0&&ht.set(this.options.id,this.A),this.options.out===void 0))return;if(this.prepare(),await Xt(),(e=this.i)==null?void 0:e.isConnected){const i=this.o&&this.o.parentNode===this.i?this.o:null;if(this.i.insertBefore(this.element,i),this.options.stabilizeOut){const r=this.m();this.log("stabilizing out");const n=this.A.left-r.left,o=this.A.top-r.top;getComputedStyle(this.element).position!=="static"||n===0&&o===0||(this.element.style.position="relative"),n!==0&&(this.element.style.left=n+"px"),o!==0&&(this.element.style.top=o+"px")}}const t=this.j(this.options.keyframeOptions);await this.animate(this.options.out,t),this.element.remove()}prepare(){this.createFinished()}start(){var t,e;(e=(t=this.options).onStart)==null||e.call(t,this)}didFinish(t){var e,i;t&&((i=(e=this.options).onComplete)==null||i.call(e,this)),this.A=void 0,this.animatingProperties=void 0,this.frames=void 0,this.resolveFinished()}O(){const t=[];for(let e=this.element.parentNode;e;e=e==null?void 0:e.parentNode){const i=te.get(e);i&&!i.isDisabled()&&i&&t.push(i)}return t}get isHostRendered(){const t=Gt.has(this.u);return t||this.u.updateComplete.then(()=>{Gt.add(this.u)}),t}j(t,e=this.O()){const i={...ui};return e.forEach(r=>Object.assign(i,r.options.keyframeOptions)),Object.assign(i,t),i}N(t,e,i){t={...t},e={...e};const r=i.map(a=>a.animatingProperties).filter(a=>a!==void 0);let n=1,o=1;return r.length>0&&(r.forEach(a=>{a.width&&(n/=a.width),a.height&&(o/=a.height)}),t.left!==void 0&&e.left!==void 0&&(t.left=n*t.left,e.left=n*e.left),t.top!==void 0&&e.top!==void 0&&(t.top=o*t.top,e.top=o*e.top)),{from:t,to:e}}calculateKeyframes(t,e,i=!1){const r={},n={};let o=!1;const a={};for(const c in e){const h=t[c],l=e[c];if(c in lt){const d=lt[c];if(h===void 0||l===void 0)continue;const p=d(h,l);p.transform!==void 0&&(a[c]=p.value,o=!0,r.transform=`${r.transform??""} ${p.transform}`,p.overrideFrom!==void 0&&Object.assign(r,p.overrideFrom))}else h!==l&&h!==void 0&&l!==void 0&&(o=!0,r[c]=h,n[c]=l)}return r.transformOrigin=n.transformOrigin=i?"center center":"top left",this.animatingProperties=a,o?[r,n]:void 0}async animate(t,e=this.options.keyframeOptions){this.start(),this.frames=t;let i=!1;if(!this.isAnimating()&&!this.isDisabled()&&(this.options.onFrames&&(this.frames=t=this.options.onFrames(this),this.log("modified frames",t)),t!==void 0)){this.log("animate",[t,e]),i=!0,this.webAnimation=this.element.animate(t,e);const r=this.getController();r==null||r.add(this);try{await this.webAnimation.finished}catch{}r==null||r.remove(this)}return this.didFinish(i),i}isAnimating(){var t,e;return((t=this.webAnimation)==null?void 0:t.playState)==="running"||((e=this.webAnimation)==null?void 0:e.pending)}log(t,e){this.shouldLog&&!this.isDisabled()&&console.log(t,this.options.id,e)}}const gi=Et(fi),vi={name:"question",svg:'<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M32 4C16.536 4 4 16.536 4 32C4 47.464 16.536 60 32 60C47.464 60 60 47.464 60 32C59.9827 16.5432 47.4568 4.01731 32 4ZM32 55.6923C18.9151 55.6923 8.30769 45.0849 8.30769 32C8.30769 18.9151 18.9151 8.30769 32 8.30769C45.0849 8.30769 55.6923 18.9151 55.6923 32C55.6775 45.0788 45.0788 55.6775 32 55.6923Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M31.9423 37.5723L36.311 32.9068L36.7354 32.4448C39.7555 29.1161 40.7645 27.0647 40.7645 24.5087C40.7645 23.1091 40.4251 21.7942 39.7041 20.6491C38.3044 18.3587 35.6323 16.9166 32.2816 16.9166C28.7565 16.9166 25.3125 18.7414 23.2581 21.6772L23.1201 21.8791C22.8232 22.3032 22.696 22.6849 22.696 22.9818C22.696 23.7029 23.926 25.9932 25.2833 25.9932C25.5378 25.9932 25.7922 25.9084 26.0467 25.7388C26.2588 25.5691 26.5981 25.2298 27.0647 24.7208C28.8885 22.6849 30.1185 21.9215 31.7726 21.9215C33.6813 21.9215 35.081 23.1939 35.081 24.8905C35.081 26.375 34.2751 27.7746 32.3664 29.8529L28.2523 34.2216C27.9554 34.6033 27.7857 34.9426 27.7857 35.282C27.7857 35.6213 27.9978 36.1726 28.4219 36.8937C29.0581 37.8692 29.7368 38.3782 30.4578 38.3782C30.9244 38.3782 31.3909 38.1237 31.9423 37.5723ZM30.882 47.4972C29.2278 47.4972 27.6585 44.7403 27.6585 43.6799C27.6585 42.1954 30.0761 40.6261 32.4089 40.6261C33.6389 40.6261 34.2751 41.1775 34.2751 42.3227C34.2751 44.0616 33.4692 45.843 32.4513 46.7761C31.9423 47.2427 31.4334 47.4972 30.882 47.4972Z"/></svg>'};/**
61
+ */const L=(s,t)=>{var i;const e=s._$AN;if(e===void 0)return!1;for(const r of e)(i=r._$AO)==null||i.call(r,t,!1),L(r,t);return!0},J=s=>{let t,e;do{if((t=s._$AM)===void 0)break;e=t._$AN,e.delete(s),s=t}while((e==null?void 0:e.size)===0)},ye=s=>{for(let t;t=s._$AM;s=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(s))break;e.add(s),li(t)}};function ci(s){this._$AN!==void 0?(J(this),this._$AM=s,ye(this)):this._$AM=s}function hi(s,t=!1,e=0){const i=this._$AH,r=this._$AN;if(r!==void 0&&r.size!==0)if(t)if(Array.isArray(i))for(let n=e;n<i.length;n++)L(i[n],!1),J(i[n]);else i!=null&&(L(i,!1),J(i));else L(this,s)}const li=s=>{s.type==St.CHILD&&(s._$AP??(s._$AP=hi),s._$AQ??(s._$AQ=ci))};class be extends me{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,i){super._$AT(t,e,i),ye(this),this.isConnected=t._$AU}_$AO(t,e=!0){var i,r;t!==this.isConnected&&(this.isConnected=t,t?(i=this.reconnected)==null||i.call(this):(r=this.disconnected)==null||r.call(this)),e&&(L(this,t),J(this))}setValue(t){if(ai(this._$Ct))this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}}const di=new WeakMap;let Kt=0;const ht=new Map,Gt=new WeakSet,Xt=()=>new Promise(s=>requestAnimationFrame(s)),ui=[{transform:"translateX(100%) scale(0)",opacity:0}],Jt=(s,t)=>{const e=s-t;return e===0?void 0:e},Qt=(s,t)=>{const e=s/t;return e===1?void 0:e},lt={left:(s,t)=>{const e=Jt(s,t);return{value:e,transform:e==null||isNaN(e)?void 0:`translateX(${e}px)`}},top:(s,t)=>{const e=Jt(s,t);return{value:e,transform:e==null||isNaN(e)?void 0:`translateY(${e}px)`}},width:(s,t)=>{let e;t===0&&(t=1,e={width:"1px"});const i=Qt(s,t);return{value:i,overrideFrom:e,transform:i==null||isNaN(i)?void 0:`scaleX(${i})`}},height:(s,t)=>{let e;t===0&&(t=1,e={height:"1px"});const i=Qt(s,t);return{value:i,overrideFrom:e,transform:i==null||isNaN(i)?void 0:`scaleY(${i})`}}},pi={duration:333,easing:"ease-in-out"},fi=["left","top","width","height","opacity","color","background"],te=new WeakMap;class gi extends be{constructor(t){if(super(t),this.t=!1,this.i=null,this.o=null,this.h=!0,this.shouldLog=!1,t.type===St.CHILD)throw Error("The `animate` directive must be used in attribute position.");this.createFinished()}createFinished(){var t;(t=this.resolveFinished)==null||t.call(this),this.finished=new Promise(e=>{this.l=e})}async resolveFinished(){var t;(t=this.l)==null||t.call(this),this.l=void 0}render(t){return u}getController(){return di.get(this.u)}isDisabled(){var t;return this.options.disabled||((t=this.getController())==null?void 0:t.disabled)}update(t,[e]){var r;const i=this.u===void 0;return i&&(this.u=(r=t.options)==null?void 0:r.host,this.u.addController(this),this.u.updateComplete.then(n=>this.t=!0),this.element=t.element,te.set(this.element,this)),this.optionsOrCallback=e,(i||typeof e!="function")&&this.p(e),this.render(e)}p(t){t=t??{};const e=this.getController();e!==void 0&&((t={...e.defaultOptions,...t}).keyframeOptions={...e.defaultOptions.keyframeOptions,...t.keyframeOptions}),t.properties??(t.properties=fi),this.options=t}m(){const t={},e=this.element.getBoundingClientRect(),i=getComputedStyle(this.element);return this.options.properties.forEach(r=>{const n=e[r]??(lt[r]?void 0:i[r]),o=Number(n);t[r]=isNaN(o)?n+"":o}),t}v(){let t,e=!0;return this.options.guard&&(t=this.options.guard(),e=((i,r)=>{if(Array.isArray(i)){if(Array.isArray(r)&&r.length===i.length&&i.every((n,o)=>n===r[o]))return!1}else if(r===i)return!1;return!0})(t,this._)),this.h=this.t&&!this.isDisabled()&&!this.isAnimating()&&e&&this.element.isConnected,this.h&&(this._=Array.isArray(t)?Array.from(t):t),this.h}hostUpdate(){typeof this.optionsOrCallback=="function"&&this.p(this.optionsOrCallback()),this.v()&&(this.A=this.m(),this.i=this.i??this.element.parentNode,this.o=this.element.nextSibling)}async hostUpdated(){if(!this.h||!this.element.isConnected||this.options.skipInitial&&!this.isHostRendered)return;let t;this.prepare(),await Xt;const e=this.O(),i=this.j(this.options.keyframeOptions,e),r=this.m();if(this.A!==void 0){const{from:n,to:o}=this.N(this.A,r,e);this.log("measured",[this.A,r,n,o]),t=this.calculateKeyframes(n,o)}else{const n=ht.get(this.options.inId);if(n){ht.delete(this.options.inId);const{from:o,to:a}=this.N(n,r,e);t=this.calculateKeyframes(o,a),t=this.options.in?[{...this.options.in[0],...t[0]},...this.options.in.slice(1),t[1]]:t,Kt++,t.forEach(c=>c.zIndex=Kt)}else this.options.in&&(t=[...this.options.in,{}])}this.animate(t,i)}resetStyles(){this.P!==void 0&&(this.element.setAttribute("style",this.P??""),this.P=void 0)}commitStyles(){var t,e;this.P=this.element.getAttribute("style"),(t=this.webAnimation)==null||t.commitStyles(),(e=this.webAnimation)==null||e.cancel()}reconnected(){}async disconnected(){var e;if(!this.h||(this.options.id!==void 0&&ht.set(this.options.id,this.A),this.options.out===void 0))return;if(this.prepare(),await Xt(),(e=this.i)==null?void 0:e.isConnected){const i=this.o&&this.o.parentNode===this.i?this.o:null;if(this.i.insertBefore(this.element,i),this.options.stabilizeOut){const r=this.m();this.log("stabilizing out");const n=this.A.left-r.left,o=this.A.top-r.top;getComputedStyle(this.element).position!=="static"||n===0&&o===0||(this.element.style.position="relative"),n!==0&&(this.element.style.left=n+"px"),o!==0&&(this.element.style.top=o+"px")}}const t=this.j(this.options.keyframeOptions);await this.animate(this.options.out,t),this.element.remove()}prepare(){this.createFinished()}start(){var t,e;(e=(t=this.options).onStart)==null||e.call(t,this)}didFinish(t){var e,i;t&&((i=(e=this.options).onComplete)==null||i.call(e,this)),this.A=void 0,this.animatingProperties=void 0,this.frames=void 0,this.resolveFinished()}O(){const t=[];for(let e=this.element.parentNode;e;e=e==null?void 0:e.parentNode){const i=te.get(e);i&&!i.isDisabled()&&i&&t.push(i)}return t}get isHostRendered(){const t=Gt.has(this.u);return t||this.u.updateComplete.then(()=>{Gt.add(this.u)}),t}j(t,e=this.O()){const i={...pi};return e.forEach(r=>Object.assign(i,r.options.keyframeOptions)),Object.assign(i,t),i}N(t,e,i){t={...t},e={...e};const r=i.map(a=>a.animatingProperties).filter(a=>a!==void 0);let n=1,o=1;return r.length>0&&(r.forEach(a=>{a.width&&(n/=a.width),a.height&&(o/=a.height)}),t.left!==void 0&&e.left!==void 0&&(t.left=n*t.left,e.left=n*e.left),t.top!==void 0&&e.top!==void 0&&(t.top=o*t.top,e.top=o*e.top)),{from:t,to:e}}calculateKeyframes(t,e,i=!1){const r={},n={};let o=!1;const a={};for(const c in e){const h=t[c],l=e[c];if(c in lt){const d=lt[c];if(h===void 0||l===void 0)continue;const p=d(h,l);p.transform!==void 0&&(a[c]=p.value,o=!0,r.transform=`${r.transform??""} ${p.transform}`,p.overrideFrom!==void 0&&Object.assign(r,p.overrideFrom))}else h!==l&&h!==void 0&&l!==void 0&&(o=!0,r[c]=h,n[c]=l)}return r.transformOrigin=n.transformOrigin=i?"center center":"top left",this.animatingProperties=a,o?[r,n]:void 0}async animate(t,e=this.options.keyframeOptions){this.start(),this.frames=t;let i=!1;if(!this.isAnimating()&&!this.isDisabled()&&(this.options.onFrames&&(this.frames=t=this.options.onFrames(this),this.log("modified frames",t)),t!==void 0)){this.log("animate",[t,e]),i=!0,this.webAnimation=this.element.animate(t,e);const r=this.getController();r==null||r.add(this);try{await this.webAnimation.finished}catch{}r==null||r.remove(this)}return this.didFinish(i),i}isAnimating(){var t,e;return((t=this.webAnimation)==null?void 0:t.playState)==="running"||((e=this.webAnimation)==null?void 0:e.pending)}log(t,e){this.shouldLog&&!this.isDisabled()&&console.log(t,this.options.id,e)}}const vi=Et(gi),mi={name:"question",svg:'<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M32 4C16.536 4 4 16.536 4 32C4 47.464 16.536 60 32 60C47.464 60 60 47.464 60 32C59.9827 16.5432 47.4568 4.01731 32 4ZM32 55.6923C18.9151 55.6923 8.30769 45.0849 8.30769 32C8.30769 18.9151 18.9151 8.30769 32 8.30769C45.0849 8.30769 55.6923 18.9151 55.6923 32C55.6775 45.0788 45.0788 55.6775 32 55.6923Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M31.9423 37.5723L36.311 32.9068L36.7354 32.4448C39.7555 29.1161 40.7645 27.0647 40.7645 24.5087C40.7645 23.1091 40.4251 21.7942 39.7041 20.6491C38.3044 18.3587 35.6323 16.9166 32.2816 16.9166C28.7565 16.9166 25.3125 18.7414 23.2581 21.6772L23.1201 21.8791C22.8232 22.3032 22.696 22.6849 22.696 22.9818C22.696 23.7029 23.926 25.9932 25.2833 25.9932C25.5378 25.9932 25.7922 25.9084 26.0467 25.7388C26.2588 25.5691 26.5981 25.2298 27.0647 24.7208C28.8885 22.6849 30.1185 21.9215 31.7726 21.9215C33.6813 21.9215 35.081 23.1939 35.081 24.8905C35.081 26.375 34.2751 27.7746 32.3664 29.8529L28.2523 34.2216C27.9554 34.6033 27.7857 34.9426 27.7857 35.282C27.7857 35.6213 27.9978 36.1726 28.4219 36.8937C29.0581 37.8692 29.7368 38.3782 30.4578 38.3782C30.9244 38.3782 31.3909 38.1237 31.9423 37.5723ZM30.882 47.4972C29.2278 47.4972 27.6585 44.7403 27.6585 43.6799C27.6585 42.1954 30.0761 40.6261 32.4089 40.6261C33.6389 40.6261 34.2751 41.1775 34.2751 42.3227C34.2751 44.0616 33.4692 45.843 32.4513 46.7761C31.9423 47.2427 31.4334 47.4972 30.882 47.4972Z"/></svg>'};/**
62
62
  * @license
63
63
  * Copyright 2018 Google LLC
64
64
  * SPDX-License-Identifier: BSD-3-Clause
@@ -66,7 +66,7 @@
66
66
  * @license
67
67
  * Copyright 2020 Google LLC
68
68
  * SPDX-License-Identifier: BSD-3-Clause
69
- */const _e=()=>new mi;class mi{}const dt=new WeakMap,we=Et(class extends be{render(s){return u}update(s,[t]){var i;const e=t!==this.Y;return e&&this.Y!==void 0&&this.rt(void 0),(e||this.lt!==this.ct)&&(this.Y=t,this.ht=(i=s.options)==null?void 0:i.host,this.rt(this.ct=s.element)),u}rt(s){if(this.isConnected||(s=void 0),typeof this.Y=="function"){const t=this.ht??globalThis;let e=dt.get(t);e===void 0&&(e=new WeakMap,dt.set(t,e)),e.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),e.set(this.Y,s),s!==void 0&&this.Y.call(this.ht,s)}else this.Y.value=s}get lt(){var s,t;return typeof this.Y=="function"?(s=dt.get(this.ht??globalThis))==null?void 0:s.get(this.Y):(t=this.Y)==null?void 0:t.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var yi=Object.defineProperty,F=(s,t,e,i)=>{for(var r=void 0,n=s.length-1,o;n>=0;n--)(o=s[n])&&(r=o(t,e,r)||r);return r&&yi(t,e,r),r};const Ot=class Ot extends m{constructor(){super(...arguments),this.active=!1,this.triggerVisible=!0,this.loaded=!1,this.containerRef=_e(),this.widgetActive$=new ei(!1),this.componentIsDestroyed$=new xt}async connectedCallback(){super.connectedCallback(),this.icon=await this._renderSymbol(),this.loaded=!0,this._applyBranding()}disconnectedCallback(){super.disconnectedCallback(),this.componentIsDestroyed$.next(),this.componentIsDestroyed$.complete()}toggleActive(){var t;if(!((t=this.application)!=null&&t.root)){console.warn("Could not activate widget. No root element assigned to widget.");return}this.active=!this.active,this.active?(this.application.appendToDOM(),this.notify("widget-set-active",{widgetId:this.application.id,active:!0}),this.widgetActive$.next(!0),this.hideTrigger()):(this.application.hide(),this.notify("widget-set-active",{widgetId:this.application.id,active:!1}),this.widgetActive$.next(!1),this.showTrigger())}notify(t,e={}){window!=null&&window.parent&&window.parent.postMessage({type:t,data:e},"*")}_applyBranding(){var t;(t=this.application)!=null&&t.settings&&$e(this.application.settings.branding,this)}async _renderSymbol(){var a,c,h;const t=(a=this.application)==null?void 0:a.branding(),e=(c=t==null?void 0:t.graphics)==null?void 0:c.trigger;if(e)return S` <img src=${e} class="trigger-icon" alt="" /> `;const i=(h=this.application)==null?void 0:h.triggerIcon;if(!i)return u;const r=async l=>vi,{type:n,content:o}=i;switch(n){case"Telia":{const l=await r();return l?S`<telia-icon
69
+ */const _e=()=>new yi;class yi{}const dt=new WeakMap,we=Et(class extends be{render(s){return u}update(s,[t]){var i;const e=t!==this.Y;return e&&this.Y!==void 0&&this.rt(void 0),(e||this.lt!==this.ct)&&(this.Y=t,this.ht=(i=s.options)==null?void 0:i.host,this.rt(this.ct=s.element)),u}rt(s){if(this.isConnected||(s=void 0),typeof this.Y=="function"){const t=this.ht??globalThis;let e=dt.get(t);e===void 0&&(e=new WeakMap,dt.set(t,e)),e.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),e.set(this.Y,s),s!==void 0&&this.Y.call(this.ht,s)}else this.Y.value=s}get lt(){var s,t;return typeof this.Y=="function"?(s=dt.get(this.ht??globalThis))==null?void 0:s.get(this.Y):(t=this.Y)==null?void 0:t.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var bi=Object.defineProperty,Y=(s,t,e,i)=>{for(var r=void 0,n=s.length-1,o;n>=0;n--)(o=s[n])&&(r=o(t,e,r)||r);return r&&bi(t,e,r),r};const Ot=class Ot extends m{constructor(){super(...arguments),this.active=!1,this.triggerVisible=!0,this.loaded=!1,this.containerRef=_e(),this.widgetActive$=new ii(!1),this.componentIsDestroyed$=new xt}async connectedCallback(){super.connectedCallback(),this.icon=await this._renderSymbol(),this.loaded=!0,this._applyBranding()}disconnectedCallback(){super.disconnectedCallback(),this.componentIsDestroyed$.next(),this.componentIsDestroyed$.complete()}toggleActive(){var t;if(!((t=this.application)!=null&&t.root)){console.warn("Could not activate widget. No root element assigned to widget.");return}this.active=!this.active,this.active?(this.application.appendToDOM(),this.notify("widget-set-active",{widgetId:this.application.id,active:!0}),this.widgetActive$.next(!0),this.hideTrigger()):(this.application.hide(),this.notify("widget-set-active",{widgetId:this.application.id,active:!1}),this.widgetActive$.next(!1),this.showTrigger())}notify(t,e={}){window!=null&&window.parent&&window.parent.postMessage({type:t,data:e},"*")}_applyBranding(){var t;(t=this.application)!=null&&t.settings&&$e(this.application.settings.branding,this)}async _renderSymbol(){var a,c,h;const t=(a=this.application)==null?void 0:a.branding(),e=(c=t==null?void 0:t.graphics)==null?void 0:c.trigger;if(e)return S` <img src=${e} class="trigger-icon" alt="" /> `;const i=(h=this.application)==null?void 0:h.triggerIcon;if(!i)return u;const r=async l=>mi,{type:n,content:o}=i;switch(n){case"Telia":{const l=await r();return l?S`<telia-icon
70
70
  class="trigger-icon"
71
71
  svg=${l.svg}
72
72
  size="lg"
@@ -79,7 +79,7 @@
79
79
  label="${this.application.settings.branding.other.buttonLabelText??"Widget trigger"}"
80
80
  class="trigger-label"
81
81
  @click=${this.toggleActive}
82
- ${gi({keyframeOptions:{},in:di,stabilizeOut:!0,skipInitial:!1})}
82
+ ${vi({keyframeOptions:{},in:ui,stabilizeOut:!0,skipInitial:!1})}
83
83
  >
84
84
  ${this.application.settings.branding.other.buttonLabelText}
85
85
  </button>
@@ -248,7 +248,7 @@
248
248
  .trigger-label:hover {
249
249
  opacity: 0.8;
250
250
  }
251
- `];let $=Ot;F([g({attribute:!1})],$.prototype,"application");F([j()],$.prototype,"active");F([j()],$.prototype,"triggerVisible");F([j()],$.prototype,"loaded");F([j()],$.prototype,"icon");var bi=Object.defineProperty,x=(s,t,e,i)=>{for(var r=void 0,n=s.length-1,o;n>=0;n--)(o=s[n])&&(r=o(t,e,r)||r);return r&&bi(t,e,r),r};const Ae=s=>{const e=class e extends s{constructor(){super(...arguments),this.properties={},this.context={},this.layout={},this.nodes=[]}writeProperties(r){this.properties=r}writeLayout(r){this.layout=r}writeContext(r){this.context=r}addChild(r){r.parent=this,this.nodes.push(r)}connectedCallback(){super.connectedCallback(),this.renderRoot.host.style.setProperty("--width",this.layout.size==="full"?"var(--columns, 1)":`min(${this.layout.size||"var(--columns)"}, var(--columns))`),this.application.mountComponent(this)}};e.styles=[O`
251
+ `];let $=Ot;Y([g({attribute:!1})],$.prototype,"application");Y([j()],$.prototype,"active");Y([j()],$.prototype,"triggerVisible");Y([j()],$.prototype,"loaded");Y([j()],$.prototype,"icon");var $i=Object.defineProperty,x=(s,t,e,i)=>{for(var r=void 0,n=s.length-1,o;n>=0;n--)(o=s[n])&&(r=o(t,e,r)||r);return r&&$i(t,e,r),r};const Ae=s=>{const e=class e extends s{constructor(){super(...arguments),this.properties={},this.context={},this.layout={},this.nodes=[]}writeProperties(r){this.properties=r}writeLayout(r){this.layout=r}writeContext(r){this.context=r}addChild(r){r.parent=this,this.nodes.push(r)}connectedCallback(){super.connectedCallback(),this.renderRoot.host.style.setProperty("--width",this.layout.size==="full"?"var(--columns, 1)":`min(${this.layout.size||"var(--columns)"}, var(--columns))`),this.application.mountComponent(this)}};e.styles=[O`
252
252
  :host {
253
253
  font-family: var(--font-family);
254
254
  grid-column: span var(--width);
@@ -268,7 +268,7 @@
268
268
  * @license
269
269
  * Copyright 2021 Google LLC
270
270
  * SPDX-License-Identifier: BSD-3-Clause
271
- */let $i=class extends Event{constructor(t,e,i){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.callback=e,this.subscribe=i??!1}};/**
271
+ */let _i=class extends Event{constructor(t,e,i){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.callback=e,this.subscribe=i??!1}};/**
272
272
  * @license
273
273
  * Copyright 2021 Google LLC
274
274
  * SPDX-License-Identifier: BSD-3-Clause
@@ -276,15 +276,15 @@
276
276
  * @license
277
277
  * Copyright 2021 Google LLC
278
278
  * SPDX-License-Identifier: BSD-3-Clause
279
- */class _i{get value(){return this.o}set value(t){this.setValue(t)}setValue(t,e=!1){const i=e||!Object.is(t,this.o);this.o=t,i&&this.updateObservers()}constructor(t){this.subscriptions=new Map,this.updateObservers=()=>{for(const[e,{disposer:i}]of this.subscriptions)e(this.o,i)},t!==void 0&&(this.value=t)}addCallback(t,e,i){if(!i)return void t(this.value);this.subscriptions.has(t)||this.subscriptions.set(t,{disposer:()=>{this.subscriptions.delete(t)},consumerHost:e});const{disposer:r}=this.subscriptions.get(t);t(this.value,r)}clearCallbacks(){this.subscriptions.clear()}}/**
279
+ */class wi{get value(){return this.o}set value(t){this.setValue(t)}setValue(t,e=!1){const i=e||!Object.is(t,this.o);this.o=t,i&&this.updateObservers()}constructor(t){this.subscriptions=new Map,this.updateObservers=()=>{for(const[e,{disposer:i}]of this.subscriptions)e(this.o,i)},t!==void 0&&(this.value=t)}addCallback(t,e,i){if(!i)return void t(this.value);this.subscriptions.has(t)||this.subscriptions.set(t,{disposer:()=>{this.subscriptions.delete(t)},consumerHost:e});const{disposer:r}=this.subscriptions.get(t);t(this.value,r)}clearCallbacks(){this.subscriptions.clear()}}/**
280
280
  * @license
281
281
  * Copyright 2021 Google LLC
282
282
  * SPDX-License-Identifier: BSD-3-Clause
283
- */let wi=class extends Event{constructor(t){super("context-provider",{bubbles:!0,composed:!0}),this.context=t}};class ie extends _i{constructor(t,e,i){var r,n;super(e.context!==void 0?e.initialValue:i),this.onContextRequest=o=>{const a=o.composedPath()[0];o.context===this.context&&a!==this.host&&(o.stopPropagation(),this.addCallback(o.callback,a,o.subscribe))},this.onProviderRequest=o=>{const a=o.composedPath()[0];if(o.context!==this.context||a===this.host)return;const c=new Set;for(const[h,{consumerHost:l}]of this.subscriptions)c.has(h)||(c.add(h),l.dispatchEvent(new $i(this.context,h,!0)));o.stopPropagation()},this.host=t,e.context!==void 0?this.context=e.context:this.context=e,this.attachListeners(),(n=(r=this.host).addController)==null||n.call(r,this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new wi(this.context))}}/**
283
+ */let Ai=class extends Event{constructor(t){super("context-provider",{bubbles:!0,composed:!0}),this.context=t}};class ie extends wi{constructor(t,e,i){var r,n;super(e.context!==void 0?e.initialValue:i),this.onContextRequest=o=>{const a=o.composedPath()[0];o.context===this.context&&a!==this.host&&(o.stopPropagation(),this.addCallback(o.callback,a,o.subscribe))},this.onProviderRequest=o=>{const a=o.composedPath()[0];if(o.context!==this.context||a===this.host)return;const c=new Set;for(const[h,{consumerHost:l}]of this.subscriptions)c.has(h)||(c.add(h),l.dispatchEvent(new _i(this.context,h,!0)));o.stopPropagation()},this.host=t,e.context!==void 0?this.context=e.context:this.context=e,this.attachListeners(),(n=(r=this.host).addController)==null||n.call(r,this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new Ai(this.context))}}/**
284
284
  * @license
285
285
  * Copyright 2017 Google LLC
286
286
  * SPDX-License-Identifier: BSD-3-Clause
287
- */function Ai({context:s}){return(t,e)=>{const i=new WeakMap;if(typeof e=="object")return e.addInitializer(function(){i.set(this,new ie(this,{context:s}))}),{get(){return t.get.call(this)},set(r){var n;return(n=i.get(this))==null||n.setValue(r),t.set.call(this,r)},init(r){var n;return(n=i.get(this))==null||n.setValue(r),r}};{t.constructor.addInitializer(o=>{i.set(o,new ie(o,{context:s}))});const r=Object.getOwnPropertyDescriptor(t,e);let n;if(r===void 0){const o=new WeakMap;n={get(){return o.get(this)},set(a){i.get(this).setValue(a),o.set(this,a)},configurable:!0,enumerable:!0}}else{const o=r.set;n={...r,set(a){i.get(this).setValue(a),o==null||o.call(this,a)}}}return void Object.defineProperty(t,e,n)}}}var xi=Object.defineProperty,Si=(s,t,e,i)=>{for(var r=void 0,n=s.length-1,o;n>=0;n--)(o=s[n])&&(r=o(t,e,r)||r);return r&&xi(t,e,r),r};const Ei="application",Tt=class Tt extends m{constructor(){super(...arguments),this.nodes=[],this.wrapperRef=_e()}addChild(t){t.parent=this,this.nodes.push(t)}applyBranding(){if(!this.wrapperRef.value)return;const t=this.application.settings;t!=null&&t.branding&&$e(t.branding,this.wrapperRef.value)}applyStyles(){if(!this.wrapperRef.value)return;const t=this.application.styles(),e=this.wrapperRef.value;Object.entries(t).forEach(([i,r])=>{e.style.setProperty(`--${i}`,r)})}firstUpdated(t){this.applyBranding(),this.applyStyles()}render(){var i,r;const t=this.application.settings.components.conversation;return((r=(i=t==null?void 0:t.properties)==null?void 0:i.chat)==null?void 0:r.isThirdPartyWidget)?this.renderRoot.host.classList.add("third-party"):this.application.renderStrategy===D.Trigger&&(this.renderRoot.host.classList.add("floating"),this.application.anchor==="BottomLeft"?this.renderRoot.host.classList.add("bottom-left"):this.application.anchor==="BottomRight"&&this.renderRoot.host.classList.add("bottom-right")),window.self!==window.top&&this.renderRoot.host.classList.add("embedded"),S`<div class="widget-container" ${we(this.wrapperRef)}>
287
+ */function xi({context:s}){return(t,e)=>{const i=new WeakMap;if(typeof e=="object")return e.addInitializer(function(){i.set(this,new ie(this,{context:s}))}),{get(){return t.get.call(this)},set(r){var n;return(n=i.get(this))==null||n.setValue(r),t.set.call(this,r)},init(r){var n;return(n=i.get(this))==null||n.setValue(r),r}};{t.constructor.addInitializer(o=>{i.set(o,new ie(o,{context:s}))});const r=Object.getOwnPropertyDescriptor(t,e);let n;if(r===void 0){const o=new WeakMap;n={get(){return o.get(this)},set(a){i.get(this).setValue(a),o.set(this,a)},configurable:!0,enumerable:!0}}else{const o=r.set;n={...r,set(a){i.get(this).setValue(a),o==null||o.call(this,a)}}}return void Object.defineProperty(t,e,n)}}}var Si=Object.defineProperty,xe=(s,t,e,i)=>{for(var r=void 0,n=s.length-1,o;n>=0;n--)(o=s[n])&&(r=o(t,e,r)||r);return r&&Si(t,e,r),r};const Ei="application",Tt=class Tt extends m{constructor(){super(...arguments),this.nodes=[],this.wrapperRef=_e(),this.fullscreen=!1}addChild(t){t.parent=this,this.nodes.push(t)}applyBranding(){if(!this.wrapperRef.value)return;const t=this.application.settings;t!=null&&t.branding&&$e(t.branding,this.wrapperRef.value)}applyStyles(){if(!this.wrapperRef.value)return;const t=this.application.styles(),e=this.wrapperRef.value;Object.entries(t).forEach(([i,r])=>{e.style.setProperty(`--${i}`,r)})}firstUpdated(t){this.applyBranding(),this.applyStyles()}render(){var i,r;const t=this.application.settings.components.conversation;return((r=(i=t==null?void 0:t.properties)==null?void 0:i.chat)==null?void 0:r.isThirdPartyWidget)?this.renderRoot.host.classList.add("third-party"):this.application.renderStrategy===D.Trigger&&(this.renderRoot.host.classList.add("floating"),this.application.anchor==="BottomLeft"?this.renderRoot.host.classList.add("bottom-left"):this.application.anchor==="BottomRight"&&this.renderRoot.host.classList.add("bottom-right")),this.application.fullscreen&&this.renderRoot.host.classList.add("fullscreen"),window.self!==window.top&&this.renderRoot.host.classList.add("embedded"),S`<div class="widget-container" ${we(this.wrapperRef)}>
288
288
  ${de(this.nodes,n=>n)}
289
289
  </div>`}};Tt.styles=O`
290
290
  :host {
@@ -331,6 +331,18 @@
331
331
  position: fixed;
332
332
  }
333
333
 
334
+ :host(.fullscreen.floating) {
335
+ inset: 0 !important;
336
+ height: 100% !important;
337
+ width: auto !important;
338
+ max-height: none !important;
339
+ }
340
+
341
+ :host(.fullscreen.floating) .widget-container {
342
+ box-shadow: none !important;
343
+ border-radius: 0 !important;
344
+ }
345
+
334
346
  @media screen and (max-width: 800px) {
335
347
  :host(.floating) {
336
348
  inset: 0;
@@ -421,11 +433,11 @@
421
433
  animation: slideDown 0.3s linear;
422
434
  pointer-events: none;
423
435
  }
424
- `;let J=Tt;Si([g({attribute:!1}),Ai({context:Ei})],J.prototype,"application");const tt=class tt{constructor(t=tt.endpoint){this._endpoint=t}async getSite(t){const i=await(await fetch(t)).json();return i?{id:i.id,triggers:i.triggers||[],apps:(i.widgets||[]).map(r=>{let n=D.Trigger;r.renderStrategy.toLowerCase()==="inline"&&(n=D.Inline);const o=r.widgetId?r.widgetId:r.id,a=typeof r.autoActivate=="boolean"?r.autoActivate:!1,c=typeof r.anchor=="string"?r.anchor:"BottomRight",h=typeof r.triggerIcon=="string"?r.triggerIcon:"question";return{id:o,widgetId:o,renderStrategy:n,autoActivate:a,anchor:c,triggerIcon:{type:"Telia",content:h}}})}:null}async getWidget(t){const i=await(await fetch(`${this._endpoint}/widget/${t}`)).json();return i?{name:i.name,config:JSON.parse(i.configuration)}:null}};tt.endpoint="https://widgets.ace.teliacompany.net/api";let se=tt;var Ci=Object.defineProperty,Ct=(s,t,e,i)=>{for(var r=void 0,n=s.length-1,o;n>=0;n--)(o=s[n])&&(r=o(t,e,r)||r);return r&&Ci(t,e,r),r};const Rt=class Rt extends m{constructor(){super(),this.status="deactivated",this.addEventListener("environment-created",this.onEnvironmentCreated)}async connectedCallback(){super.connectedCallback(),await this.getGlobalEnvironment()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("environment-created",this.onEnvironmentCreated)}async onEnvironmentCreated(t){this.widget=t.detail.widget,await this.activate(),this.requestUpdate()}async activate(){this.widget&&(await this.widget.activate(),this.status="activated")}async getGlobalEnvironment(){const t=globalThis.widgets;t&&(this.widget=t.applications.find(e=>e.name===this.name),await this.activate())}render(){if(!this.widget||this.status!=="activated")return u;if(this.widget.renderStrategy===D.Trigger){const t=new $;return t.application=this.widget,t}return this.widget.render()}};Rt.styles=[O`
436
+ `;let z=Tt;xe([g({attribute:!0})],z.prototype,"fullscreen");xe([g({attribute:!1}),xi({context:Ei})],z.prototype,"application");const tt=class tt{constructor(t=tt.endpoint){this._endpoint=t}async getSite(t){const i=await(await fetch(t)).json();return i?{id:i.id,triggers:i.triggers||[],apps:(i.widgets||[]).map(r=>{let n=D.Trigger;r.renderStrategy.toLowerCase()==="inline"&&(n=D.Inline);const o=r.widgetId?r.widgetId:r.id,a=typeof r.autoActivate=="boolean"?r.autoActivate:!1,c=typeof r.anchor=="string"?r.anchor:"BottomRight",h=typeof r.triggerIcon=="string"?r.triggerIcon:"question";return{id:o,widgetId:o,renderStrategy:n,autoActivate:a,anchor:c,triggerIcon:{type:"Telia",content:h}}})}:null}async getWidget(t){const i=await(await fetch(`${this._endpoint}/widget/${t}`)).json();return i?{name:i.name,config:JSON.parse(i.configuration)}:null}};tt.endpoint="https://widgets.ace.teliacompany.net/api";let se=tt;var Ci=Object.defineProperty,Ct=(s,t,e,i)=>{for(var r=void 0,n=s.length-1,o;n>=0;n--)(o=s[n])&&(r=o(t,e,r)||r);return r&&Ci(t,e,r),r};const Rt=class Rt extends m{constructor(){super(),this.status="deactivated",this.addEventListener("environment-created",this.onEnvironmentCreated)}async connectedCallback(){super.connectedCallback(),await this.getGlobalEnvironment()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("environment-created",this.onEnvironmentCreated)}async onEnvironmentCreated(t){this.widget=t.detail.widget,await this.activate(),this.requestUpdate()}async activate(){this.widget&&(await this.widget.activate(),this.status="activated")}async getGlobalEnvironment(){const t=globalThis.widgets;t&&(this.widget=t.applications.find(e=>e.name===this.name),await this.activate())}render(){if(!this.widget||this.status!=="activated")return u;if(this.widget.renderStrategy===D.Trigger){const t=new $;return t.application=this.widget,t}return this.widget.render()}};Rt.styles=[O`
425
437
  :host {
426
438
  display: block;
427
439
  }
428
- `];let U=Rt;Ct([g({attribute:!0})],U.prototype,"name");Ct([j()],U.prototype,"widget");Ct([j()],U.prototype,"status");customElements.get("ace-trigger-slot")||customElements.define("ace-trigger-slot",G);customElements.get("ace-trigger")||customElements.define("ace-trigger",$);customElements.get("ace-unresolved-component")||customElements.define("ace-unresolved-component",bt);customElements.get("ace-wrapper")||customElements.define("ace-wrapper",J);customElements.get("ace-widget")||customElements.define("ace-widget",U);const Pi=s=>{const t={};return Object.keys(s).forEach(e=>{e.indexOf("css-")>-1&&(t[e]=s[e])}),t},Oi=(s,t)=>{const e=Pi(t);Object.entries(e).forEach(([i,r])=>{s.style.setProperty(i.replace("css-",""),r)})},Ut=class Ut extends Ae(m){constructor(){super(...arguments),this.nodes=[]}render(){var t;return Oi(this.renderRoot.host,this.properties),this.renderRoot.host.style.setProperty("--columns",((t=this.properties.columns)==null?void 0:t.toString())||"1"),S`${de(this.nodes,e=>e)}`}};Ut.styles=[O`
440
+ `];let U=Rt;Ct([g({attribute:!0})],U.prototype,"name");Ct([j()],U.prototype,"widget");Ct([j()],U.prototype,"status");customElements.get("ace-trigger-slot")||customElements.define("ace-trigger-slot",X);customElements.get("ace-trigger")||customElements.define("ace-trigger",$);customElements.get("ace-unresolved-component")||customElements.define("ace-unresolved-component",bt);customElements.get("ace-wrapper")||customElements.define("ace-wrapper",z);customElements.get("ace-widget")||customElements.define("ace-widget",U);const Pi=s=>{const t={};return Object.keys(s).forEach(e=>{e.indexOf("css-")>-1&&(t[e]=s[e])}),t},Oi=(s,t)=>{const e=Pi(t);Object.entries(e).forEach(([i,r])=>{s.style.setProperty(i.replace("css-",""),r)})},Ut=class Ut extends Ae(m){constructor(){super(...arguments),this.nodes=[]}render(){var t;return Oi(this.renderRoot.host,this.properties),this.renderRoot.host.style.setProperty("--columns",((t=this.properties.columns)==null?void 0:t.toString())||"1"),S`${de(this.nodes,e=>e)}`}};Ut.styles=[O`
429
441
  :host {
430
442
  height: 100%;
431
443
  display: grid;
@@ -3,7 +3,7 @@
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
5
  */
6
- const q = globalThis, bt = q.ShadowRoot && (q.ShadyCSS === void 0 || q.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, $t = Symbol(), Ut = /* @__PURE__ */ new WeakMap();
6
+ const W = globalThis, bt = W.ShadowRoot && (W.ShadyCSS === void 0 || W.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, $t = Symbol(), Ut = /* @__PURE__ */ new WeakMap();
7
7
  let ne = class {
8
8
  constructor(t, e, i) {
9
9
  if (this._$cssResult$ = !0, i !== $t) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
@@ -22,33 +22,33 @@ let ne = class {
22
22
  return this.cssText;
23
23
  }
24
24
  };
25
- const xe = (s) => new ne(typeof s == "string" ? s : s + "", void 0, $t), O = (s, ...t) => {
25
+ const Ee = (s) => new ne(typeof s == "string" ? s : s + "", void 0, $t), O = (s, ...t) => {
26
26
  const e = s.length === 1 ? s[0] : t.reduce((i, r, n) => i + ((o) => {
27
27
  if (o._$cssResult$ === !0) return o.cssText;
28
28
  if (typeof o == "number") return o;
29
29
  throw Error("Value passed to 'css' function must be a 'css' function result: " + o + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
30
30
  })(r) + s[n + 1], s[0]);
31
31
  return new ne(e, s, $t);
32
- }, Ee = (s, t) => {
32
+ }, Ce = (s, t) => {
33
33
  if (bt) s.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
34
34
  else for (const e of t) {
35
- const i = document.createElement("style"), r = q.litNonce;
35
+ const i = document.createElement("style"), r = W.litNonce;
36
36
  r !== void 0 && i.setAttribute("nonce", r), i.textContent = e.cssText, s.appendChild(i);
37
37
  }
38
38
  }, jt = bt ? (s) => s : (s) => s instanceof CSSStyleSheet ? ((t) => {
39
39
  let e = "";
40
40
  for (const i of t.cssRules) e += i.cssText;
41
- return xe(e);
41
+ return Ee(e);
42
42
  })(s) : s;
43
43
  /**
44
44
  * @license
45
45
  * Copyright 2017 Google LLC
46
46
  * SPDX-License-Identifier: BSD-3-Clause
47
47
  */
48
- const { is: Ce, defineProperty: Se, getOwnPropertyDescriptor: Pe, getOwnPropertyNames: Oe, getOwnPropertySymbols: ke, getPrototypeOf: Te } = Object, w = globalThis, Mt = w.trustedTypes, Re = Mt ? Mt.emptyScript : "", it = w.reactiveElementPolyfillSupport, N = (s, t) => s, Z = { toAttribute(s, t) {
48
+ const { is: Se, defineProperty: Pe, getOwnPropertyDescriptor: Oe, getOwnPropertyNames: ke, getOwnPropertySymbols: Te, getPrototypeOf: Re } = Object, w = globalThis, Mt = w.trustedTypes, Ue = Mt ? Mt.emptyScript : "", it = w.reactiveElementPolyfillSupport, N = (s, t) => s, K = { toAttribute(s, t) {
49
49
  switch (t) {
50
50
  case Boolean:
51
- s = s ? Re : null;
51
+ s = s ? Ue : null;
52
52
  break;
53
53
  case Object:
54
54
  case Array:
@@ -73,7 +73,7 @@ const { is: Ce, defineProperty: Se, getOwnPropertyDescriptor: Pe, getOwnProperty
73
73
  }
74
74
  }
75
75
  return e;
76
- } }, _t = (s, t) => !Ce(s, t), Nt = { attribute: !0, type: String, converter: Z, reflect: !1, hasChanged: _t };
76
+ } }, _t = (s, t) => !Se(s, t), Nt = { attribute: !0, type: String, converter: K, reflect: !1, hasChanged: _t };
77
77
  Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), w.litPropertyMetadata ?? (w.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
78
78
  let T = class extends HTMLElement {
79
79
  static addInitializer(t) {
@@ -85,11 +85,11 @@ let T = class extends HTMLElement {
85
85
  static createProperty(t, e = Nt) {
86
86
  if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
87
87
  const i = Symbol(), r = this.getPropertyDescriptor(t, i, e);
88
- r !== void 0 && Se(this.prototype, t, r);
88
+ r !== void 0 && Pe(this.prototype, t, r);
89
89
  }
90
90
  }
91
91
  static getPropertyDescriptor(t, e, i) {
92
- const { get: r, set: n } = Pe(this.prototype, t) ?? { get() {
92
+ const { get: r, set: n } = Oe(this.prototype, t) ?? { get() {
93
93
  return this[e];
94
94
  }, set(o) {
95
95
  this[e] = o;
@@ -106,13 +106,13 @@ let T = class extends HTMLElement {
106
106
  }
107
107
  static _$Ei() {
108
108
  if (this.hasOwnProperty(N("elementProperties"))) return;
109
- const t = Te(this);
109
+ const t = Re(this);
110
110
  t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
111
111
  }
112
112
  static finalize() {
113
113
  if (this.hasOwnProperty(N("finalized"))) return;
114
114
  if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(N("properties"))) {
115
- const e = this.properties, i = [...Oe(e), ...ke(e)];
115
+ const e = this.properties, i = [...ke(e), ...Te(e)];
116
116
  for (const r of i) this.createProperty(r, e[r]);
117
117
  }
118
118
  const t = this[Symbol.metadata];
@@ -161,7 +161,7 @@ let T = class extends HTMLElement {
161
161
  }
162
162
  createRenderRoot() {
163
163
  const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
164
- return Ee(t, this.constructor.elementStyles), t;
164
+ return Ce(t, this.constructor.elementStyles), t;
165
165
  }
166
166
  connectedCallback() {
167
167
  var t;
@@ -186,7 +186,7 @@ let T = class extends HTMLElement {
186
186
  var n;
187
187
  const i = this.constructor.elementProperties.get(t), r = this.constructor._$Eu(t, i);
188
188
  if (r !== void 0 && i.reflect === !0) {
189
- const o = (((n = i.converter) == null ? void 0 : n.toAttribute) !== void 0 ? i.converter : Z).toAttribute(e, i.type);
189
+ const o = (((n = i.converter) == null ? void 0 : n.toAttribute) !== void 0 ? i.converter : K).toAttribute(e, i.type);
190
190
  this._$Em = t, o == null ? this.removeAttribute(r) : this.setAttribute(r, o), this._$Em = null;
191
191
  }
192
192
  }
@@ -194,7 +194,7 @@ let T = class extends HTMLElement {
194
194
  var n;
195
195
  const i = this.constructor, r = i._$Eh.get(t);
196
196
  if (r !== void 0 && this._$Em !== r) {
197
- const o = i.getPropertyOptions(r), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((n = o.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? o.converter : Z;
197
+ const o = i.getPropertyOptions(r), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((n = o.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? o.converter : K;
198
198
  this._$Em = r, this[r] = a.fromAttribute(e, o.type), this._$Em = null;
199
199
  }
200
200
  }
@@ -279,14 +279,14 @@ T.elementStyles = [], T.shadowRootOptions = { mode: "open" }, T[N("elementProper
279
279
  * Copyright 2017 Google LLC
280
280
  * SPDX-License-Identifier: BSD-3-Clause
281
281
  */
282
- const I = globalThis, K = I.trustedTypes, It = K ? K.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, oe = "$lit$", _ = `lit$${Math.random().toFixed(9).slice(2)}$`, ae = "?" + _, Ue = `<${ae}>`, S = document, H = () => S.createComment(""), B = (s) => s === null || typeof s != "object" && typeof s != "function", wt = Array.isArray, je = (s) => wt(s) || typeof (s == null ? void 0 : s[Symbol.iterator]) == "function", st = `[
282
+ const I = globalThis, G = I.trustedTypes, It = G ? G.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, oe = "$lit$", _ = `lit$${Math.random().toFixed(9).slice(2)}$`, ae = "?" + _, je = `<${ae}>`, S = document, H = () => S.createComment(""), B = (s) => s === null || typeof s != "object" && typeof s != "function", wt = Array.isArray, Me = (s) => wt(s) || typeof (s == null ? void 0 : s[Symbol.iterator]) == "function", st = `[
283
283
  \f\r]`, M = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Lt = /-->/g, Ht = />/g, A = RegExp(`>|${st}(?:([^\\s"'>=/]+)(${st}*=${st}*(?:[^
284
- \f\r"'\`<>=]|("|')|))|$)`, "g"), Bt = /'/g, Dt = /"/g, ce = /^(?:script|style|textarea|title)$/i, Me = (s) => (t, ...e) => ({ _$litType$: s, strings: t, values: e }), E = Me(1), P = Symbol.for("lit-noChange"), u = Symbol.for("lit-nothing"), zt = /* @__PURE__ */ new WeakMap(), C = S.createTreeWalker(S, 129);
284
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), Bt = /'/g, Dt = /"/g, ce = /^(?:script|style|textarea|title)$/i, Ne = (s) => (t, ...e) => ({ _$litType$: s, strings: t, values: e }), E = Ne(1), P = Symbol.for("lit-noChange"), u = Symbol.for("lit-nothing"), zt = /* @__PURE__ */ new WeakMap(), C = S.createTreeWalker(S, 129);
285
285
  function he(s, t) {
286
286
  if (!wt(s) || !s.hasOwnProperty("raw")) throw Error("invalid template strings array");
287
287
  return It !== void 0 ? It.createHTML(t) : t;
288
288
  }
289
- const Ne = (s, t) => {
289
+ const Ie = (s, t) => {
290
290
  const e = s.length - 1, i = [];
291
291
  let r, n = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = M;
292
292
  for (let a = 0; a < e; a++) {
@@ -294,7 +294,7 @@ const Ne = (s, t) => {
294
294
  let h, l, d = -1, p = 0;
295
295
  for (; p < c.length && (o.lastIndex = p, l = o.exec(c), l !== null); ) p = o.lastIndex, o === M ? l[1] === "!--" ? o = Lt : l[1] !== void 0 ? o = Ht : l[2] !== void 0 ? (ce.test(l[2]) && (r = RegExp("</" + l[2], "g")), o = A) : l[3] !== void 0 && (o = A) : o === A ? l[0] === ">" ? (o = r ?? M, d = -1) : l[1] === void 0 ? d = -2 : (d = o.lastIndex - l[2].length, h = l[1], o = l[3] === void 0 ? A : l[3] === '"' ? Dt : Bt) : o === Dt || o === Bt ? o = A : o === Lt || o === Ht ? o = M : (o = A, r = void 0);
296
296
  const f = o === A && s[a + 1].startsWith("/>") ? " " : "";
297
- n += o === M ? c + Ue : d >= 0 ? (i.push(h), c.slice(0, d) + oe + c.slice(d) + _ + f) : c + _ + (d === -2 ? a : f);
297
+ n += o === M ? c + je : d >= 0 ? (i.push(h), c.slice(0, d) + oe + c.slice(d) + _ + f) : c + _ + (d === -2 ? a : f);
298
298
  }
299
299
  return [he(s, n + (s[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), i];
300
300
  };
@@ -303,7 +303,7 @@ let dt = class le {
303
303
  let r;
304
304
  this.parts = [];
305
305
  let n = 0, o = 0;
306
- const a = t.length - 1, c = this.parts, [h, l] = Ne(t, e);
306
+ const a = t.length - 1, c = this.parts, [h, l] = Ie(t, e);
307
307
  if (this.el = le.createElement(h, i), C.currentNode = this.el.content, e === 2 || e === 3) {
308
308
  const d = this.el.content.firstChild;
309
309
  d.replaceWith(...d.childNodes);
@@ -312,12 +312,12 @@ let dt = class le {
312
312
  if (r.nodeType === 1) {
313
313
  if (r.hasAttributes()) for (const d of r.getAttributeNames()) if (d.endsWith(oe)) {
314
314
  const p = l[o++], f = r.getAttribute(d).split(_), k = /([.?@])?(.*)/.exec(p);
315
- c.push({ type: 1, index: n, name: k[2], strings: f, ctor: k[1] === "." ? Le : k[1] === "?" ? He : k[1] === "@" ? Be : tt }), r.removeAttribute(d);
315
+ c.push({ type: 1, index: n, name: k[2], strings: f, ctor: k[1] === "." ? He : k[1] === "?" ? Be : k[1] === "@" ? De : tt }), r.removeAttribute(d);
316
316
  } else d.startsWith(_) && (c.push({ type: 6, index: n }), r.removeAttribute(d));
317
317
  if (ce.test(r.tagName)) {
318
318
  const d = r.textContent.split(_), p = d.length - 1;
319
319
  if (p > 0) {
320
- r.textContent = K ? K.emptyScript : "";
320
+ r.textContent = G ? G.emptyScript : "";
321
321
  for (let f = 0; f < p; f++) r.append(d[f], H()), C.nextNode(), c.push({ type: 2, index: ++n });
322
322
  r.append(d[p], H());
323
323
  }
@@ -342,7 +342,7 @@ function R(s, t, e = s, i) {
342
342
  const n = B(t) ? void 0 : t._$litDirective$;
343
343
  return (r == null ? void 0 : r.constructor) !== n && ((a = r == null ? void 0 : r._$AO) == null || a.call(r, !1), n === void 0 ? r = void 0 : (r = new n(s), r._$AT(s, e, i)), i !== void 0 ? (e._$Co ?? (e._$Co = []))[i] = r : e._$Cl = r), r !== void 0 && (t = R(s, r._$AS(s, t.values), r, i)), t;
344
344
  }
345
- class Ie {
345
+ class Le {
346
346
  constructor(t, e) {
347
347
  this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
348
348
  }
@@ -359,7 +359,7 @@ class Ie {
359
359
  for (; c !== void 0; ) {
360
360
  if (o === c.index) {
361
361
  let h;
362
- c.type === 2 ? h = new z(n, n.nextSibling, this, t) : c.type === 1 ? h = new c.ctor(n, c.name, c.strings, this, t) : c.type === 6 && (h = new De(n, this, t)), this._$AV.push(h), c = i[++a];
362
+ c.type === 2 ? h = new V(n, n.nextSibling, this, t) : c.type === 1 ? h = new c.ctor(n, c.name, c.strings, this, t) : c.type === 6 && (h = new ze(n, this, t)), this._$AV.push(h), c = i[++a];
363
363
  }
364
364
  o !== (c == null ? void 0 : c.index) && (n = C.nextNode(), o++);
365
365
  }
@@ -370,7 +370,7 @@ class Ie {
370
370
  for (const i of this._$AV) i !== void 0 && (i.strings !== void 0 ? (i._$AI(t, i, e), e += i.strings.length - 2) : i._$AI(t[e])), e++;
371
371
  }
372
372
  }
373
- class z {
373
+ class V {
374
374
  get _$AU() {
375
375
  var t;
376
376
  return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
@@ -390,7 +390,7 @@ class z {
390
390
  return this._$AB;
391
391
  }
392
392
  _$AI(t, e = this) {
393
- t = R(this, t, e), B(t) ? t === u || t == null || t === "" ? (this._$AH !== u && this._$AR(), this._$AH = u) : t !== this._$AH && t !== P && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : je(t) ? this.k(t) : this._(t);
393
+ t = R(this, t, e), B(t) ? t === u || t == null || t === "" ? (this._$AH !== u && this._$AR(), this._$AH = u) : t !== this._$AH && t !== P && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Me(t) ? this.k(t) : this._(t);
394
394
  }
395
395
  O(t) {
396
396
  return this._$AA.parentNode.insertBefore(t, this._$AB);
@@ -406,7 +406,7 @@ class z {
406
406
  const { values: e, _$litType$: i } = t, r = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = dt.createElement(he(i.h, i.h[0]), this.options)), i);
407
407
  if (((n = this._$AH) == null ? void 0 : n._$AD) === r) this._$AH.p(e);
408
408
  else {
409
- const o = new Ie(r, this), a = o.u(this.options);
409
+ const o = new Le(r, this), a = o.u(this.options);
410
410
  o.p(e), this.T(a), this._$AH = o;
411
411
  }
412
412
  }
@@ -418,7 +418,7 @@ class z {
418
418
  wt(this._$AH) || (this._$AH = [], this._$AR());
419
419
  const e = this._$AH;
420
420
  let i, r = 0;
421
- for (const n of t) r === e.length ? e.push(i = new z(this.O(H()), this.O(H()), this, this.options)) : i = e[r], i._$AI(n), r++;
421
+ for (const n of t) r === e.length ? e.push(i = new V(this.O(H()), this.O(H()), this, this.options)) : i = e[r], i._$AI(n), r++;
422
422
  r < e.length && (this._$AR(i && i._$AB.nextSibling, r), e.length = r);
423
423
  }
424
424
  _$AR(t = this._$AA.nextSibling, e) {
@@ -458,7 +458,7 @@ class tt {
458
458
  t === u ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
459
459
  }
460
460
  }
461
- class Le extends tt {
461
+ class He extends tt {
462
462
  constructor() {
463
463
  super(...arguments), this.type = 3;
464
464
  }
@@ -466,7 +466,7 @@ class Le extends tt {
466
466
  this.element[this.name] = t === u ? void 0 : t;
467
467
  }
468
468
  }
469
- class He extends tt {
469
+ class Be extends tt {
470
470
  constructor() {
471
471
  super(...arguments), this.type = 4;
472
472
  }
@@ -474,7 +474,7 @@ class He extends tt {
474
474
  this.element.toggleAttribute(this.name, !!t && t !== u);
475
475
  }
476
476
  }
477
- class Be extends tt {
477
+ class De extends tt {
478
478
  constructor(t, e, i, r, n) {
479
479
  super(t, e, i, r, n), this.type = 5;
480
480
  }
@@ -488,7 +488,7 @@ class Be extends tt {
488
488
  typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
489
489
  }
490
490
  }
491
- class De {
491
+ class ze {
492
492
  constructor(t, e, i) {
493
493
  this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = i;
494
494
  }
@@ -500,13 +500,13 @@ class De {
500
500
  }
501
501
  }
502
502
  const rt = I.litHtmlPolyfillSupport;
503
- rt == null || rt(dt, z), (I.litHtmlVersions ?? (I.litHtmlVersions = [])).push("3.2.1");
504
- const ze = (s, t, e) => {
503
+ rt == null || rt(dt, V), (I.litHtmlVersions ?? (I.litHtmlVersions = [])).push("3.2.1");
504
+ const Ve = (s, t, e) => {
505
505
  const i = (e == null ? void 0 : e.renderBefore) ?? t;
506
506
  let r = i._$litPart$;
507
507
  if (r === void 0) {
508
508
  const n = (e == null ? void 0 : e.renderBefore) ?? null;
509
- i._$litPart$ = r = new z(t.insertBefore(H(), n), n, void 0, e ?? {});
509
+ i._$litPart$ = r = new V(t.insertBefore(H(), n), n, void 0, e ?? {});
510
510
  }
511
511
  return r._$AI(s), r;
512
512
  };
@@ -526,7 +526,7 @@ let m = class extends T {
526
526
  }
527
527
  update(t) {
528
528
  const e = this.render();
529
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = ze(e, this.renderRoot, this.renderOptions);
529
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Ve(e, this.renderRoot, this.renderOptions);
530
530
  }
531
531
  connectedCallback() {
532
532
  var t;
@@ -563,7 +563,7 @@ var ut = function(s, t) {
563
563
  for (var r in i) Object.prototype.hasOwnProperty.call(i, r) && (e[r] = i[r]);
564
564
  }, ut(s, t);
565
565
  };
566
- function V(s, t) {
566
+ function F(s, t) {
567
567
  if (typeof t != "function" && t !== null)
568
568
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
569
569
  ut(s, t);
@@ -729,7 +729,7 @@ var ge = {
729
729
  Promise: void 0,
730
730
  useDeprecatedSynchronousErrorHandling: !1,
731
731
  useDeprecatedNextContext: !1
732
- }, Ve = {
732
+ }, Fe = {
733
733
  setTimeout: function(s, t) {
734
734
  for (var e = [], i = 2; i < arguments.length; i++)
735
735
  e[i - 2] = arguments[i];
@@ -740,21 +740,21 @@ var ge = {
740
740
  },
741
741
  delegate: void 0
742
742
  };
743
- function Fe(s) {
744
- Ve.setTimeout(function() {
743
+ function Ye(s) {
744
+ Fe.setTimeout(function() {
745
745
  throw s;
746
746
  });
747
747
  }
748
748
  function Ft() {
749
749
  }
750
- function W(s) {
750
+ function Z(s) {
751
751
  s();
752
752
  }
753
753
  var ve = function(s) {
754
- V(t, s);
754
+ F(t, s);
755
755
  function t(e) {
756
756
  var i = s.call(this) || this;
757
- return i.isStopped = !1, e ? (i.destination = e, fe(e) && e.add(i)) : i.destination = Ze, i;
757
+ return i.isStopped = !1, e ? (i.destination = e, fe(e) && e.add(i)) : i.destination = Ke, i;
758
758
  }
759
759
  return t.create = function(e, i, r) {
760
760
  return new mt(e, i, r);
@@ -781,11 +781,11 @@ var ve = function(s) {
781
781
  this.unsubscribe();
782
782
  }
783
783
  }, t;
784
- }(et), Ye = Function.prototype.bind;
784
+ }(et), qe = Function.prototype.bind;
785
785
  function at(s, t) {
786
- return Ye.call(s, t);
786
+ return qe.call(s, t);
787
787
  }
788
- var qe = function() {
788
+ var We = function() {
789
789
  function s(t) {
790
790
  this.partialObserver = t;
791
791
  }
@@ -795,7 +795,7 @@ var qe = function() {
795
795
  try {
796
796
  e.next(t);
797
797
  } catch (i) {
798
- Y(i);
798
+ q(i);
799
799
  }
800
800
  }, s.prototype.error = function(t) {
801
801
  var e = this.partialObserver;
@@ -803,21 +803,21 @@ var qe = function() {
803
803
  try {
804
804
  e.error(t);
805
805
  } catch (i) {
806
- Y(i);
806
+ q(i);
807
807
  }
808
808
  else
809
- Y(t);
809
+ q(t);
810
810
  }, s.prototype.complete = function() {
811
811
  var t = this.partialObserver;
812
812
  if (t.complete)
813
813
  try {
814
814
  t.complete();
815
815
  } catch (e) {
816
- Y(e);
816
+ q(e);
817
817
  }
818
818
  }, s;
819
819
  }(), mt = function(s) {
820
- V(t, s);
820
+ F(t, s);
821
821
  function t(e, i, r) {
822
822
  var n = s.call(this) || this, o;
823
823
  if (b(e) || !e)
@@ -836,29 +836,29 @@ var qe = function() {
836
836
  complete: e.complete && at(e.complete, a)
837
837
  }) : o = e;
838
838
  }
839
- return n.destination = new qe(o), n;
839
+ return n.destination = new We(o), n;
840
840
  }
841
841
  return t;
842
842
  }(ve);
843
- function Y(s) {
844
- Fe(s);
843
+ function q(s) {
844
+ Ye(s);
845
845
  }
846
- function We(s) {
846
+ function Ze(s) {
847
847
  throw s;
848
848
  }
849
- var Ze = {
849
+ var Ke = {
850
850
  closed: !0,
851
851
  next: Ft,
852
- error: We,
852
+ error: Ze,
853
853
  complete: Ft
854
- }, Ke = function() {
854
+ }, Ge = function() {
855
855
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
856
856
  }();
857
- function Ge(s) {
857
+ function Xe(s) {
858
858
  return s;
859
859
  }
860
- function Xe(s) {
861
- return s.length === 0 ? Ge : s.length === 1 ? s[0] : function(e) {
860
+ function Je(s) {
861
+ return s.length === 0 ? Xe : s.length === 1 ? s[0] : function(e) {
862
862
  return s.reduce(function(i, r) {
863
863
  return r(i);
864
864
  }, e);
@@ -872,8 +872,8 @@ var Yt = function() {
872
872
  var e = new s();
873
873
  return e.source = this, e.operator = t, e;
874
874
  }, s.prototype.subscribe = function(t, e, i) {
875
- var r = this, n = Qe(t) ? t : new mt(t, e, i);
876
- return W(function() {
875
+ var r = this, n = ti(t) ? t : new mt(t, e, i);
876
+ return Z(function() {
877
877
  var o = r, a = o.operator, c = o.source;
878
878
  n.add(a ? a.call(n, c) : c ? r._subscribe(n) : r._trySubscribe(n));
879
879
  }), n;
@@ -902,12 +902,12 @@ var Yt = function() {
902
902
  }, s.prototype._subscribe = function(t) {
903
903
  var e;
904
904
  return (e = this.source) === null || e === void 0 ? void 0 : e.subscribe(t);
905
- }, s.prototype[Ke] = function() {
905
+ }, s.prototype[Ge] = function() {
906
906
  return this;
907
907
  }, s.prototype.pipe = function() {
908
908
  for (var t = [], e = 0; e < arguments.length; e++)
909
909
  t[e] = arguments[e];
910
- return Xe(t)(this);
910
+ return Je(t)(this);
911
911
  }, s.prototype.toPromise = function(t) {
912
912
  var e = this;
913
913
  return t = qt(t), new t(function(i, r) {
@@ -928,18 +928,18 @@ function qt(s) {
928
928
  var t;
929
929
  return (t = s ?? ge.Promise) !== null && t !== void 0 ? t : Promise;
930
930
  }
931
- function Je(s) {
931
+ function Qe(s) {
932
932
  return s && b(s.next) && b(s.error) && b(s.complete);
933
933
  }
934
- function Qe(s) {
935
- return s && s instanceof ve || Je(s) && fe(s);
934
+ function ti(s) {
935
+ return s && s instanceof ve || Qe(s) && fe(s);
936
936
  }
937
- var ti = ue(function(s) {
937
+ var ei = ue(function(s) {
938
938
  return function() {
939
939
  s(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
940
940
  };
941
941
  }), At = function(s) {
942
- V(t, s);
942
+ F(t, s);
943
943
  function t() {
944
944
  var e = s.call(this) || this;
945
945
  return e.closed = !1, e.currentObservers = null, e.observers = [], e.isStopped = !1, e.hasError = !1, e.thrownError = null, e;
@@ -949,10 +949,10 @@ var ti = ue(function(s) {
949
949
  return i.operator = e, i;
950
950
  }, t.prototype._throwIfClosed = function() {
951
951
  if (this.closed)
952
- throw new ti();
952
+ throw new ei();
953
953
  }, t.prototype.next = function(e) {
954
954
  var i = this;
955
- W(function() {
955
+ Z(function() {
956
956
  var r, n;
957
957
  if (i._throwIfClosed(), !i.isStopped) {
958
958
  i.currentObservers || (i.currentObservers = Array.from(i.observers));
@@ -974,7 +974,7 @@ var ti = ue(function(s) {
974
974
  });
975
975
  }, t.prototype.error = function(e) {
976
976
  var i = this;
977
- W(function() {
977
+ Z(function() {
978
978
  if (i._throwIfClosed(), !i.isStopped) {
979
979
  i.hasError = i.isStopped = !0, i.thrownError = e;
980
980
  for (var r = i.observers; r.length; )
@@ -983,7 +983,7 @@ var ti = ue(function(s) {
983
983
  });
984
984
  }, t.prototype.complete = function() {
985
985
  var e = this;
986
- W(function() {
986
+ Z(function() {
987
987
  if (e._throwIfClosed(), !e.isStopped) {
988
988
  e.isStopped = !0;
989
989
  for (var i = e.observers; i.length; )
@@ -1018,7 +1018,7 @@ var ti = ue(function(s) {
1018
1018
  return new Wt(e, i);
1019
1019
  }, t;
1020
1020
  }(Yt), Wt = function(s) {
1021
- V(t, s);
1021
+ F(t, s);
1022
1022
  function t(e, i) {
1023
1023
  var r = s.call(this) || this;
1024
1024
  return r.destination = e, r.source = i, r;
@@ -1036,8 +1036,8 @@ var ti = ue(function(s) {
1036
1036
  var i, r;
1037
1037
  return (r = (i = this.source) === null || i === void 0 ? void 0 : i.subscribe(e)) !== null && r !== void 0 ? r : pe;
1038
1038
  }, t;
1039
- }(At), ei = function(s) {
1040
- V(t, s);
1039
+ }(At), ii = function(s) {
1040
+ F(t, s);
1041
1041
  function t(e) {
1042
1042
  var i = s.call(this) || this;
1043
1043
  return i._value = e, i;
@@ -1065,7 +1065,7 @@ var ti = ue(function(s) {
1065
1065
  * Copyright 2017 Google LLC
1066
1066
  * SPDX-License-Identifier: BSD-3-Clause
1067
1067
  */
1068
- const ii = { attribute: !0, type: String, converter: Z, reflect: !1, hasChanged: _t }, si = (s = ii, t, e) => {
1068
+ const si = { attribute: !0, type: String, converter: K, reflect: !1, hasChanged: _t }, ri = (s = si, t, e) => {
1069
1069
  const { kind: i, metadata: r } = e;
1070
1070
  let n = globalThis.litPropertyMetadata.get(r);
1071
1071
  if (n === void 0 && globalThis.litPropertyMetadata.set(r, n = /* @__PURE__ */ new Map()), n.set(e.name, s), i === "accessor") {
@@ -1087,7 +1087,7 @@ const ii = { attribute: !0, type: String, converter: Z, reflect: !1, hasChanged:
1087
1087
  throw Error("Unsupported decorator location: " + i);
1088
1088
  };
1089
1089
  function g(s) {
1090
- return (t, e) => typeof e == "object" ? si(s, t, e) : ((i, r, n) => {
1090
+ return (t, e) => typeof e == "object" ? ri(s, t, e) : ((i, r, n) => {
1091
1091
  const o = r.hasOwnProperty(n);
1092
1092
  return r.constructor.createProperty(n, o ? { ...i, wrapped: !0 } : i), o ? Object.getOwnPropertyDescriptor(r, n) : void 0;
1093
1093
  })(s, t, e);
@@ -1100,10 +1100,10 @@ function g(s) {
1100
1100
  function j(s) {
1101
1101
  return g({ ...s, state: !0, attribute: !1 });
1102
1102
  }
1103
- var ri = Object.defineProperty, ni = (s, t, e, i) => {
1103
+ var ni = Object.defineProperty, oi = (s, t, e, i) => {
1104
1104
  for (var r = void 0, n = s.length - 1, o; n >= 0; n--)
1105
1105
  (o = s[n]) && (r = o(t, e, r) || r);
1106
- return r && ri(t, e, r), r;
1106
+ return r && ni(t, e, r), r;
1107
1107
  };
1108
1108
  const St = class St extends m {
1109
1109
  constructor() {
@@ -1136,10 +1136,10 @@ St.styles = [
1136
1136
  }
1137
1137
  `
1138
1138
  ];
1139
- let G = St;
1140
- ni([
1139
+ let X = St;
1140
+ oi([
1141
1141
  g({ attribute: !0 })
1142
- ], G.prototype, "anchor");
1142
+ ], X.prototype, "anchor");
1143
1143
  /**
1144
1144
  * @license
1145
1145
  * Copyright 2017 Google LLC
@@ -1167,7 +1167,7 @@ let me = class {
1167
1167
  * Copyright 2020 Google LLC
1168
1168
  * SPDX-License-Identifier: BSD-3-Clause
1169
1169
  */
1170
- const oi = (s) => s.strings === void 0;
1170
+ const ai = (s) => s.strings === void 0;
1171
1171
  /**
1172
1172
  * @license
1173
1173
  * Copyright 2017 Google LLC
@@ -1179,7 +1179,7 @@ const L = (s, t) => {
1179
1179
  if (e === void 0) return !1;
1180
1180
  for (const r of e) (i = r._$AO) == null || i.call(r, t, !1), L(r, t);
1181
1181
  return !0;
1182
- }, X = (s) => {
1182
+ }, J = (s) => {
1183
1183
  let t, e;
1184
1184
  do {
1185
1185
  if ((t = s._$AM) === void 0) break;
@@ -1190,20 +1190,20 @@ const L = (s, t) => {
1190
1190
  let e = t._$AN;
1191
1191
  if (e === void 0) t._$AN = e = /* @__PURE__ */ new Set();
1192
1192
  else if (e.has(s)) break;
1193
- e.add(s), hi(t);
1193
+ e.add(s), li(t);
1194
1194
  }
1195
1195
  };
1196
- function ai(s) {
1197
- this._$AN !== void 0 ? (X(this), this._$AM = s, ye(this)) : this._$AM = s;
1196
+ function ci(s) {
1197
+ this._$AN !== void 0 ? (J(this), this._$AM = s, ye(this)) : this._$AM = s;
1198
1198
  }
1199
- function ci(s, t = !1, e = 0) {
1199
+ function hi(s, t = !1, e = 0) {
1200
1200
  const i = this._$AH, r = this._$AN;
1201
- if (r !== void 0 && r.size !== 0) if (t) if (Array.isArray(i)) for (let n = e; n < i.length; n++) L(i[n], !1), X(i[n]);
1202
- else i != null && (L(i, !1), X(i));
1201
+ if (r !== void 0 && r.size !== 0) if (t) if (Array.isArray(i)) for (let n = e; n < i.length; n++) L(i[n], !1), J(i[n]);
1202
+ else i != null && (L(i, !1), J(i));
1203
1203
  else L(this, s);
1204
1204
  }
1205
- const hi = (s) => {
1206
- s.type == xt.CHILD && (s._$AP ?? (s._$AP = ci), s._$AQ ?? (s._$AQ = ai));
1205
+ const li = (s) => {
1206
+ s.type == xt.CHILD && (s._$AP ?? (s._$AP = hi), s._$AQ ?? (s._$AQ = ci));
1207
1207
  };
1208
1208
  class be extends me {
1209
1209
  constructor() {
@@ -1214,10 +1214,10 @@ class be extends me {
1214
1214
  }
1215
1215
  _$AO(t, e = !0) {
1216
1216
  var i, r;
1217
- t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) == null || i.call(this) : (r = this.disconnected) == null || r.call(this)), e && (L(this, t), X(this));
1217
+ t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) == null || i.call(this) : (r = this.disconnected) == null || r.call(this)), e && (L(this, t), J(this));
1218
1218
  }
1219
1219
  setValue(t) {
1220
- if (oi(this._$Ct)) this._$Ct._$AI(t, this);
1220
+ if (ai(this._$Ct)) this._$Ct._$AI(t, this);
1221
1221
  else {
1222
1222
  const e = [...this._$Ct._$AH];
1223
1223
  e[this._$Ci] = t, this._$Ct._$AI(e, this, 0);
@@ -1228,9 +1228,9 @@ class be extends me {
1228
1228
  reconnected() {
1229
1229
  }
1230
1230
  }
1231
- const li = /* @__PURE__ */ new WeakMap();
1231
+ const di = /* @__PURE__ */ new WeakMap();
1232
1232
  let Zt = 0;
1233
- const ct = /* @__PURE__ */ new Map(), Kt = /* @__PURE__ */ new WeakSet(), Gt = () => new Promise((s) => requestAnimationFrame(s)), di = [{ transform: "translateX(100%) scale(0)", opacity: 0 }], Xt = (s, t) => {
1233
+ const ct = /* @__PURE__ */ new Map(), Kt = /* @__PURE__ */ new WeakSet(), Gt = () => new Promise((s) => requestAnimationFrame(s)), ui = [{ transform: "translateX(100%) scale(0)", opacity: 0 }], Xt = (s, t) => {
1234
1234
  const e = s - t;
1235
1235
  return e === 0 ? void 0 : e;
1236
1236
  }, Jt = (s, t) => {
@@ -1252,8 +1252,8 @@ const ct = /* @__PURE__ */ new Map(), Kt = /* @__PURE__ */ new WeakSet(), Gt = (
1252
1252
  t === 0 && (t = 1, e = { height: "1px" });
1253
1253
  const i = Jt(s, t);
1254
1254
  return { value: i, overrideFrom: e, transform: i == null || isNaN(i) ? void 0 : `scaleY(${i})` };
1255
- } }, ui = { duration: 333, easing: "ease-in-out" }, pi = ["left", "top", "width", "height", "opacity", "color", "background"], Qt = /* @__PURE__ */ new WeakMap();
1256
- class fi extends be {
1255
+ } }, pi = { duration: 333, easing: "ease-in-out" }, fi = ["left", "top", "width", "height", "opacity", "color", "background"], Qt = /* @__PURE__ */ new WeakMap();
1256
+ class gi extends be {
1257
1257
  constructor(t) {
1258
1258
  if (super(t), this.t = !1, this.i = null, this.o = null, this.h = !0, this.shouldLog = !1, t.type === xt.CHILD) throw Error("The `animate` directive must be used in attribute position.");
1259
1259
  this.createFinished();
@@ -1272,7 +1272,7 @@ class fi extends be {
1272
1272
  return u;
1273
1273
  }
1274
1274
  getController() {
1275
- return li.get(this.u);
1275
+ return di.get(this.u);
1276
1276
  }
1277
1277
  isDisabled() {
1278
1278
  var t;
@@ -1286,7 +1286,7 @@ class fi extends be {
1286
1286
  p(t) {
1287
1287
  t = t ?? {};
1288
1288
  const e = this.getController();
1289
- e !== void 0 && ((t = { ...e.defaultOptions, ...t }).keyframeOptions = { ...e.defaultOptions.keyframeOptions, ...t.keyframeOptions }), t.properties ?? (t.properties = pi), this.options = t;
1289
+ e !== void 0 && ((t = { ...e.defaultOptions, ...t }).keyframeOptions = { ...e.defaultOptions.keyframeOptions, ...t.keyframeOptions }), t.properties ?? (t.properties = fi), this.options = t;
1290
1290
  }
1291
1291
  m() {
1292
1292
  const t = {}, e = this.element.getBoundingClientRect(), i = getComputedStyle(this.element);
@@ -1375,7 +1375,7 @@ class fi extends be {
1375
1375
  }), t;
1376
1376
  }
1377
1377
  j(t, e = this.O()) {
1378
- const i = { ...ui };
1378
+ const i = { ...pi };
1379
1379
  return e.forEach((r) => Object.assign(i, r.options.keyframeOptions)), Object.assign(i, t), i;
1380
1380
  }
1381
1381
  N(t, e, i) {
@@ -1424,7 +1424,7 @@ class fi extends be {
1424
1424
  this.shouldLog && !this.isDisabled() && console.log(t, this.options.id, e);
1425
1425
  }
1426
1426
  }
1427
- const gi = Et(fi), vi = { name: "question", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M32 4C16.536 4 4 16.536 4 32C4 47.464 16.536 60 32 60C47.464 60 60 47.464 60 32C59.9827 16.5432 47.4568 4.01731 32 4ZM32 55.6923C18.9151 55.6923 8.30769 45.0849 8.30769 32C8.30769 18.9151 18.9151 8.30769 32 8.30769C45.0849 8.30769 55.6923 18.9151 55.6923 32C55.6775 45.0788 45.0788 55.6775 32 55.6923Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M31.9423 37.5723L36.311 32.9068L36.7354 32.4448C39.7555 29.1161 40.7645 27.0647 40.7645 24.5087C40.7645 23.1091 40.4251 21.7942 39.7041 20.6491C38.3044 18.3587 35.6323 16.9166 32.2816 16.9166C28.7565 16.9166 25.3125 18.7414 23.2581 21.6772L23.1201 21.8791C22.8232 22.3032 22.696 22.6849 22.696 22.9818C22.696 23.7029 23.926 25.9932 25.2833 25.9932C25.5378 25.9932 25.7922 25.9084 26.0467 25.7388C26.2588 25.5691 26.5981 25.2298 27.0647 24.7208C28.8885 22.6849 30.1185 21.9215 31.7726 21.9215C33.6813 21.9215 35.081 23.1939 35.081 24.8905C35.081 26.375 34.2751 27.7746 32.3664 29.8529L28.2523 34.2216C27.9554 34.6033 27.7857 34.9426 27.7857 35.282C27.7857 35.6213 27.9978 36.1726 28.4219 36.8937C29.0581 37.8692 29.7368 38.3782 30.4578 38.3782C30.9244 38.3782 31.3909 38.1237 31.9423 37.5723ZM30.882 47.4972C29.2278 47.4972 27.6585 44.7403 27.6585 43.6799C27.6585 42.1954 30.0761 40.6261 32.4089 40.6261C33.6389 40.6261 34.2751 41.1775 34.2751 42.3227C34.2751 44.0616 33.4692 45.843 32.4513 46.7761C31.9423 47.2427 31.4334 47.4972 30.882 47.4972Z"/></svg>' };
1427
+ const vi = Et(gi), mi = { name: "question", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M32 4C16.536 4 4 16.536 4 32C4 47.464 16.536 60 32 60C47.464 60 60 47.464 60 32C59.9827 16.5432 47.4568 4.01731 32 4ZM32 55.6923C18.9151 55.6923 8.30769 45.0849 8.30769 32C8.30769 18.9151 18.9151 8.30769 32 8.30769C45.0849 8.30769 55.6923 18.9151 55.6923 32C55.6775 45.0788 45.0788 55.6775 32 55.6923Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M31.9423 37.5723L36.311 32.9068L36.7354 32.4448C39.7555 29.1161 40.7645 27.0647 40.7645 24.5087C40.7645 23.1091 40.4251 21.7942 39.7041 20.6491C38.3044 18.3587 35.6323 16.9166 32.2816 16.9166C28.7565 16.9166 25.3125 18.7414 23.2581 21.6772L23.1201 21.8791C22.8232 22.3032 22.696 22.6849 22.696 22.9818C22.696 23.7029 23.926 25.9932 25.2833 25.9932C25.5378 25.9932 25.7922 25.9084 26.0467 25.7388C26.2588 25.5691 26.5981 25.2298 27.0647 24.7208C28.8885 22.6849 30.1185 21.9215 31.7726 21.9215C33.6813 21.9215 35.081 23.1939 35.081 24.8905C35.081 26.375 34.2751 27.7746 32.3664 29.8529L28.2523 34.2216C27.9554 34.6033 27.7857 34.9426 27.7857 35.282C27.7857 35.6213 27.9978 36.1726 28.4219 36.8937C29.0581 37.8692 29.7368 38.3782 30.4578 38.3782C30.9244 38.3782 31.3909 38.1237 31.9423 37.5723ZM30.882 47.4972C29.2278 47.4972 27.6585 44.7403 27.6585 43.6799C27.6585 42.1954 30.0761 40.6261 32.4089 40.6261C33.6389 40.6261 34.2751 41.1775 34.2751 42.3227C34.2751 44.0616 33.4692 45.843 32.4513 46.7761C31.9423 47.2427 31.4334 47.4972 30.882 47.4972Z"/></svg>' };
1428
1428
  /**
1429
1429
  * @license
1430
1430
  * Copyright 2018 Google LLC
@@ -1492,8 +1492,8 @@ const te = Et(class extends me {
1492
1492
  * Copyright 2020 Google LLC
1493
1493
  * SPDX-License-Identifier: BSD-3-Clause
1494
1494
  */
1495
- const _e = () => new mi();
1496
- class mi {
1495
+ const _e = () => new yi();
1496
+ class yi {
1497
1497
  }
1498
1498
  const lt = /* @__PURE__ */ new WeakMap(), we = Et(class extends be {
1499
1499
  render(s) {
@@ -1522,14 +1522,14 @@ const lt = /* @__PURE__ */ new WeakMap(), we = Et(class extends be {
1522
1522
  this.rt(this.ct);
1523
1523
  }
1524
1524
  });
1525
- var yi = Object.defineProperty, F = (s, t, e, i) => {
1525
+ var bi = Object.defineProperty, Y = (s, t, e, i) => {
1526
1526
  for (var r = void 0, n = s.length - 1, o; n >= 0; n--)
1527
1527
  (o = s[n]) && (r = o(t, e, r) || r);
1528
- return r && yi(t, e, r), r;
1528
+ return r && bi(t, e, r), r;
1529
1529
  };
1530
1530
  const Pt = class Pt extends m {
1531
1531
  constructor() {
1532
- super(...arguments), this.active = !1, this.triggerVisible = !0, this.loaded = !1, this.containerRef = _e(), this.widgetActive$ = new ei(!1), this.componentIsDestroyed$ = new At();
1532
+ super(...arguments), this.active = !1, this.triggerVisible = !0, this.loaded = !1, this.containerRef = _e(), this.widgetActive$ = new ii(!1), this.componentIsDestroyed$ = new At();
1533
1533
  }
1534
1534
  async connectedCallback() {
1535
1535
  super.connectedCallback(), this.icon = await this._renderSymbol(), this.loaded = !0, this._applyBranding();
@@ -1574,7 +1574,7 @@ const Pt = class Pt extends m {
1574
1574
  const i = (h = this.application) == null ? void 0 : h.triggerIcon;
1575
1575
  if (!i)
1576
1576
  return u;
1577
- const r = async (l) => vi, { type: n, content: o } = i;
1577
+ const r = async (l) => mi, { type: n, content: o } = i;
1578
1578
  switch (n) {
1579
1579
  case "Telia": {
1580
1580
  const l = await r();
@@ -1608,9 +1608,9 @@ const Pt = class Pt extends m {
1608
1608
  label="${this.application.settings.branding.other.buttonLabelText ?? "Widget trigger"}"
1609
1609
  class="trigger-label"
1610
1610
  @click=${this.toggleActive}
1611
- ${gi({
1611
+ ${vi({
1612
1612
  keyframeOptions: {},
1613
- in: di,
1613
+ in: ui,
1614
1614
  stabilizeOut: !0,
1615
1615
  skipInitial: !1
1616
1616
  })}
@@ -1793,25 +1793,25 @@ Pt.styles = [
1793
1793
  `
1794
1794
  ];
1795
1795
  let $ = Pt;
1796
- F([
1796
+ Y([
1797
1797
  g({ attribute: !1 })
1798
1798
  ], $.prototype, "application");
1799
- F([
1799
+ Y([
1800
1800
  j()
1801
1801
  ], $.prototype, "active");
1802
- F([
1802
+ Y([
1803
1803
  j()
1804
1804
  ], $.prototype, "triggerVisible");
1805
- F([
1805
+ Y([
1806
1806
  j()
1807
1807
  ], $.prototype, "loaded");
1808
- F([
1808
+ Y([
1809
1809
  j()
1810
1810
  ], $.prototype, "icon");
1811
- var bi = Object.defineProperty, x = (s, t, e, i) => {
1811
+ var $i = Object.defineProperty, x = (s, t, e, i) => {
1812
1812
  for (var r = void 0, n = s.length - 1, o; n >= 0; n--)
1813
1813
  (o = s[n]) && (r = o(t, e, r) || r);
1814
- return r && bi(t, e, r), r;
1814
+ return r && $i(t, e, r), r;
1815
1815
  };
1816
1816
  const Ae = (s) => {
1817
1817
  const e = class e extends s {
@@ -1888,7 +1888,7 @@ var D = /* @__PURE__ */ ((s) => (s.Inline = "inline", s.Trigger = "trigger", s))
1888
1888
  * Copyright 2021 Google LLC
1889
1889
  * SPDX-License-Identifier: BSD-3-Clause
1890
1890
  */
1891
- let $i = class extends Event {
1891
+ let _i = class extends Event {
1892
1892
  constructor(t, e, i) {
1893
1893
  super("context-request", { bubbles: !0, composed: !0 }), this.context = t, this.callback = e, this.subscribe = i ?? !1;
1894
1894
  }
@@ -1903,7 +1903,7 @@ let $i = class extends Event {
1903
1903
  * Copyright 2021 Google LLC
1904
1904
  * SPDX-License-Identifier: BSD-3-Clause
1905
1905
  */
1906
- class _i {
1906
+ class wi {
1907
1907
  get value() {
1908
1908
  return this.o;
1909
1909
  }
@@ -1936,12 +1936,12 @@ class _i {
1936
1936
  * Copyright 2021 Google LLC
1937
1937
  * SPDX-License-Identifier: BSD-3-Clause
1938
1938
  */
1939
- let wi = class extends Event {
1939
+ let Ai = class extends Event {
1940
1940
  constructor(t) {
1941
1941
  super("context-provider", { bubbles: !0, composed: !0 }), this.context = t;
1942
1942
  }
1943
1943
  };
1944
- class ee extends _i {
1944
+ class ee extends wi {
1945
1945
  constructor(t, e, i) {
1946
1946
  var r, n;
1947
1947
  super(e.context !== void 0 ? e.initialValue : i), this.onContextRequest = (o) => {
@@ -1951,7 +1951,7 @@ class ee extends _i {
1951
1951
  const a = o.composedPath()[0];
1952
1952
  if (o.context !== this.context || a === this.host) return;
1953
1953
  const c = /* @__PURE__ */ new Set();
1954
- for (const [h, { consumerHost: l }] of this.subscriptions) c.has(h) || (c.add(h), l.dispatchEvent(new $i(this.context, h, !0)));
1954
+ for (const [h, { consumerHost: l }] of this.subscriptions) c.has(h) || (c.add(h), l.dispatchEvent(new _i(this.context, h, !0)));
1955
1955
  o.stopPropagation();
1956
1956
  }, this.host = t, e.context !== void 0 ? this.context = e.context : this.context = e, this.attachListeners(), (n = (r = this.host).addController) == null || n.call(r, this);
1957
1957
  }
@@ -1959,7 +1959,7 @@ class ee extends _i {
1959
1959
  this.host.addEventListener("context-request", this.onContextRequest), this.host.addEventListener("context-provider", this.onProviderRequest);
1960
1960
  }
1961
1961
  hostConnected() {
1962
- this.host.dispatchEvent(new wi(this.context));
1962
+ this.host.dispatchEvent(new Ai(this.context));
1963
1963
  }
1964
1964
  }
1965
1965
  /**
@@ -1967,7 +1967,7 @@ class ee extends _i {
1967
1967
  * Copyright 2017 Google LLC
1968
1968
  * SPDX-License-Identifier: BSD-3-Clause
1969
1969
  */
1970
- function Ai({ context: s }) {
1970
+ function xi({ context: s }) {
1971
1971
  return (t, e) => {
1972
1972
  const i = /* @__PURE__ */ new WeakMap();
1973
1973
  if (typeof e == "object") return e.addInitializer(function() {
@@ -2004,14 +2004,14 @@ function Ai({ context: s }) {
2004
2004
  }
2005
2005
  };
2006
2006
  }
2007
- var xi = Object.defineProperty, Ei = (s, t, e, i) => {
2007
+ var Ei = Object.defineProperty, xe = (s, t, e, i) => {
2008
2008
  for (var r = void 0, n = s.length - 1, o; n >= 0; n--)
2009
2009
  (o = s[n]) && (r = o(t, e, r) || r);
2010
- return r && xi(t, e, r), r;
2010
+ return r && Ei(t, e, r), r;
2011
2011
  };
2012
2012
  const Ci = "application", kt = class kt extends m {
2013
2013
  constructor() {
2014
- super(...arguments), this.nodes = [], this.wrapperRef = _e();
2014
+ super(...arguments), this.nodes = [], this.wrapperRef = _e(), this.fullscreen = !1;
2015
2015
  }
2016
2016
  addChild(t) {
2017
2017
  t.parent = this, this.nodes.push(t);
@@ -2036,7 +2036,7 @@ const Ci = "application", kt = class kt extends m {
2036
2036
  render() {
2037
2037
  var i, r;
2038
2038
  const t = this.application.settings.components.conversation;
2039
- return ((r = (i = t == null ? void 0 : t.properties) == null ? void 0 : i.chat) == null ? void 0 : r.isThirdPartyWidget) ? this.renderRoot.host.classList.add("third-party") : this.application.renderStrategy === D.Trigger && (this.renderRoot.host.classList.add("floating"), this.application.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.application.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right")), window.self !== window.top && this.renderRoot.host.classList.add("embedded"), E`<div class="widget-container" ${we(this.wrapperRef)}>
2039
+ return ((r = (i = t == null ? void 0 : t.properties) == null ? void 0 : i.chat) == null ? void 0 : r.isThirdPartyWidget) ? this.renderRoot.host.classList.add("third-party") : this.application.renderStrategy === D.Trigger && (this.renderRoot.host.classList.add("floating"), this.application.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.application.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right")), this.application.fullscreen && this.renderRoot.host.classList.add("fullscreen"), window.self !== window.top && this.renderRoot.host.classList.add("embedded"), E`<div class="widget-container" ${we(this.wrapperRef)}>
2040
2040
  ${de(this.nodes, (n) => n)}
2041
2041
  </div>`;
2042
2042
  }
@@ -2086,6 +2086,18 @@ kt.styles = O`
2086
2086
  position: fixed;
2087
2087
  }
2088
2088
 
2089
+ :host(.fullscreen.floating) {
2090
+ inset: 0 !important;
2091
+ height: 100% !important;
2092
+ width: auto !important;
2093
+ max-height: none !important;
2094
+ }
2095
+
2096
+ :host(.fullscreen.floating) .widget-container {
2097
+ box-shadow: none !important;
2098
+ border-radius: 0 !important;
2099
+ }
2100
+
2089
2101
  @media screen and (max-width: 800px) {
2090
2102
  :host(.floating) {
2091
2103
  inset: 0;
@@ -2177,11 +2189,14 @@ kt.styles = O`
2177
2189
  pointer-events: none;
2178
2190
  }
2179
2191
  `;
2180
- let J = kt;
2181
- Ei([
2192
+ let z = kt;
2193
+ xe([
2194
+ g({ attribute: !0 })
2195
+ ], z.prototype, "fullscreen");
2196
+ xe([
2182
2197
  g({ attribute: !1 }),
2183
- Ai({ context: Ci })
2184
- ], J.prototype, "application");
2198
+ xi({ context: Ci })
2199
+ ], z.prototype, "application");
2185
2200
  const Q = class Q {
2186
2201
  // TODO:
2187
2202
  // private static endpoint = 'http://localhost:5299/api'; // TODO:
@@ -2275,10 +2290,10 @@ Ct([
2275
2290
  Ct([
2276
2291
  j()
2277
2292
  ], U.prototype, "status");
2278
- customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot", G);
2293
+ customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot", X);
2279
2294
  customElements.get("ace-trigger") || customElements.define("ace-trigger", $);
2280
2295
  customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", yt);
2281
- customElements.get("ace-wrapper") || customElements.define("ace-wrapper", J);
2296
+ customElements.get("ace-wrapper") || customElements.define("ace-wrapper", z);
2282
2297
  customElements.get("ace-widget") || customElements.define("ace-widget", U);
2283
2298
  const Pi = (s) => {
2284
2299
  const t = {};
package/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";const r=async e=>{e.registerComponent("area",Promise.resolve().then(()=>require("./area-DB6yb3U4.js")))};module.exports=r;
1
+ "use strict";const r=async e=>{e.registerComponent("area",Promise.resolve().then(()=>require("./area-B0i3XLjJ.js")))};module.exports=r;
package/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  const o = async (e) => {
2
- e.registerComponent("area", import("./area-B8LkuHzi.mjs"));
2
+ e.registerComponent("area", import("./area-CLsVLvja.mjs"));
3
3
  };
4
4
  export {
5
5
  o as default
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@telia-ace/widget-components-area-flamingo",
3
- "version": "1.1.82-rc.1",
3
+ "version": "1.1.82-rc.10",
4
4
  "dependencies": {
5
- "@telia-ace/widget-core-flamingo": "1.1.82-rc.1",
5
+ "@telia-ace/widget-core-flamingo": "1.1.82-rc.10",
6
6
  "lit": "^3.0.2"
7
7
  },
8
8
  "main": "./index.js",