@telia-ace/widget-conversation-flamingo 1.1.29 → 1.1.30-rc.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,22 +1,22 @@
1
- "use strict";const wt=require("./index-3cb7e10e.js");/**
1
+ "use strict";const St=require("./index-1474d7d6.js");/**
2
2
  * @license
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
- */const rt=globalThis,Mt=rt.ShadowRoot&&(rt.ShadyCSS===void 0||rt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,jt=Symbol(),Jt=new WeakMap;let Te=class{constructor(t,s,i){if(this._$cssResult$=!0,i!==jt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=s}get styleSheet(){let t=this.o;const s=this.t;if(Mt&&t===void 0){const i=s!==void 0&&s.length===1;i&&(t=Jt.get(s)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&Jt.set(s,t))}return t}toString(){return this.cssText}};const as=e=>new Te(typeof e=="string"?e:e+"",void 0,jt),_=(e,...t)=>{const s=e.length===1?e[0]:t.reduce((i,n,r)=>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.")})(n)+e[r+1],e[0]);return new Te(s,e,jt)},ls=(e,t)=>{if(Mt)e.adoptedStyleSheets=t.map(s=>s instanceof CSSStyleSheet?s:s.styleSheet);else for(const s of t){const i=document.createElement("style"),n=rt.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=s.cssText,e.appendChild(i)}},Vt=Mt?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let s="";for(const i of t.cssRules)s+=i.cssText;return as(s)})(e):e;/**
5
+ */const rt=globalThis,Dt=rt.ShadowRoot&&(rt.ShadyCSS===void 0||rt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,It=Symbol(),Jt=new WeakMap;let ke=class{constructor(t,s,i){if(this._$cssResult$=!0,i!==It)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=s}get styleSheet(){let t=this.o;const s=this.t;if(Dt&&t===void 0){const i=s!==void 0&&s.length===1;i&&(t=Jt.get(s)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&Jt.set(s,t))}return t}toString(){return this.cssText}};const as=e=>new ke(typeof e=="string"?e:e+"",void 0,It),_=(e,...t)=>{const s=e.length===1?e[0]:t.reduce((i,n,r)=>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.")})(n)+e[r+1],e[0]);return new ke(s,e,It)},ls=(e,t)=>{if(Dt)e.adoptedStyleSheets=t.map(s=>s instanceof CSSStyleSheet?s:s.styleSheet);else for(const s of t){const i=document.createElement("style"),n=rt.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=s.cssText,e.appendChild(i)}},Vt=Dt?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let s="";for(const i of t.cssRules)s+=i.cssText;return as(s)})(e):e;/**
6
6
  * @license
7
7
  * Copyright 2017 Google LLC
8
8
  * SPDX-License-Identifier: BSD-3-Clause
9
- */const{is:cs,defineProperty:ds,getOwnPropertyDescriptor:hs,getOwnPropertyNames:ps,getOwnPropertySymbols:us,getPrototypeOf:fs}=Object,E=globalThis,te=E.trustedTypes,gs=te?te.emptyScript:"",At=E.reactiveElementPolyfillSupport,W=(e,t)=>e,ot={toAttribute(e,t){switch(t){case Boolean:e=e?gs:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let s=e;switch(t){case Boolean:s=e!==null;break;case Number:s=e===null?null:Number(e);break;case Object:case Array:try{s=JSON.parse(e)}catch{s=null}}return s}},Dt=(e,t)=>!cs(e,t),ee={attribute:!0,type:String,converter:ot,reflect:!1,hasChanged:Dt};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),E.litPropertyMetadata??(E.litPropertyMetadata=new WeakMap);let R=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,s=ee){if(s.state&&(s.attribute=!1),this._$Ei(),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),n=this.getPropertyDescriptor(t,i,s);n!==void 0&&ds(this.prototype,t,n)}}static getPropertyDescriptor(t,s,i){const{get:n,set:r}=hs(this.prototype,t)??{get(){return this[s]},set(o){this[s]=o}};return{get(){return n==null?void 0:n.call(this)},set(o){const a=n==null?void 0:n.call(this);r.call(this,o),this.requestUpdate(t,a,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??ee}static _$Ei(){if(this.hasOwnProperty(W("elementProperties")))return;const t=fs(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(W("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(W("properties"))){const s=this.properties,i=[...ps(s),...us(s)];for(const n of i)this.createProperty(n,s[n])}const t=this[Symbol.metadata];if(t!==null){const s=litPropertyMetadata.get(t);if(s!==void 0)for(const[i,n]of s)this.elementProperties.set(i,n)}this._$Eh=new Map;for(const[s,i]of this.elementProperties){const n=this._$Eu(s,i);n!==void 0&&this._$Eh.set(n,s)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const s=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const n of i)s.unshift(Vt(n))}else t!==void 0&&s.push(Vt(t));return s}static _$Eu(t,s){const i=s.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._$Eg=new Promise(s=>this.enableUpdating=s),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(s=>s(this))}addController(t){var s;(this._$ES??(this._$ES=[])).push(t),this.renderRoot!==void 0&&this.isConnected&&((s=t.hostConnected)==null||s.call(t))}removeController(t){var s;(s=this._$ES)==null||s.splice(this._$ES.indexOf(t)>>>0,1)}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.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 ls(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)==null||t.forEach(s=>{var i;return(i=s.hostConnected)==null?void 0:i.call(s)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)==null||t.forEach(s=>{var i;return(i=s.hostDisconnected)==null?void 0:i.call(s)})}attributeChangedCallback(t,s,i){this._$AK(t,i)}_$EO(t,s){var r;const i=this.constructor.elementProperties.get(t),n=this.constructor._$Eu(t,i);if(n!==void 0&&i.reflect===!0){const o=(((r=i.converter)==null?void 0:r.toAttribute)!==void 0?i.converter:ot).toAttribute(s,i.type);this._$Em=t,o==null?this.removeAttribute(n):this.setAttribute(n,o),this._$Em=null}}_$AK(t,s){var r;const i=this.constructor,n=i._$Eh.get(t);if(n!==void 0&&this._$Em!==n){const o=i.getPropertyOptions(n),a=typeof o.converter=="function"?{fromAttribute:o.converter}:((r=o.converter)==null?void 0:r.fromAttribute)!==void 0?o.converter:ot;this._$Em=n,this[n]=a.fromAttribute(s,o.type),this._$Em=null}}requestUpdate(t,s,i,n=!1,r){if(t!==void 0){if(i??(i=this.constructor.getPropertyOptions(t)),!(i.hasChanged??Dt)(n?r:this[t],s))return;this.C(t,s,i)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(t,s,i){this._$AL.has(t)||this._$AL.set(t,s),i.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(s){Promise.reject(s)}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._$Ep){for(const[r,o]of this._$Ep)this[r]=o;this._$Ep=void 0}const n=this.constructor.elementProperties;if(n.size>0)for(const[r,o]of n)o.wrapped!==!0||this._$AL.has(r)||this[r]===void 0||this.C(r,this[r],o)}let t=!1;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),(i=this._$ES)==null||i.forEach(n=>{var r;return(r=n.hostUpdate)==null?void 0:r.call(n)}),this.update(s)):this._$ET()}catch(n){throw t=!1,this._$ET(),n}t&&this._$AE(s)}willUpdate(t){}_$AE(t){var s;(s=this._$ES)==null||s.forEach(i=>{var n;return(n=i.hostUpdated)==null?void 0:n.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(s=>this._$EO(s,this[s]))),this._$ET()}updated(t){}firstUpdated(t){}};R.elementStyles=[],R.shadowRootOptions={mode:"open"},R[W("elementProperties")]=new Map,R[W("finalized")]=new Map,At==null||At({ReactiveElement:R}),(E.reactiveElementVersions??(E.reactiveElementVersions=[])).push("2.0.1");/**
9
+ */const{is:cs,defineProperty:ds,getOwnPropertyDescriptor:hs,getOwnPropertyNames:ps,getOwnPropertySymbols:us,getPrototypeOf:fs}=Object,E=globalThis,te=E.trustedTypes,gs=te?te.emptyScript:"",Et=E.reactiveElementPolyfillSupport,W=(e,t)=>e,ot={toAttribute(e,t){switch(t){case Boolean:e=e?gs:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let s=e;switch(t){case Boolean:s=e!==null;break;case Number:s=e===null?null:Number(e);break;case Object:case Array:try{s=JSON.parse(e)}catch{s=null}}return s}},zt=(e,t)=>!cs(e,t),ee={attribute:!0,type:String,converter:ot,reflect:!1,hasChanged:zt};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),E.litPropertyMetadata??(E.litPropertyMetadata=new WeakMap);let U=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,s=ee){if(s.state&&(s.attribute=!1),this._$Ei(),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),n=this.getPropertyDescriptor(t,i,s);n!==void 0&&ds(this.prototype,t,n)}}static getPropertyDescriptor(t,s,i){const{get:n,set:r}=hs(this.prototype,t)??{get(){return this[s]},set(o){this[s]=o}};return{get(){return n==null?void 0:n.call(this)},set(o){const a=n==null?void 0:n.call(this);r.call(this,o),this.requestUpdate(t,a,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??ee}static _$Ei(){if(this.hasOwnProperty(W("elementProperties")))return;const t=fs(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(W("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(W("properties"))){const s=this.properties,i=[...ps(s),...us(s)];for(const n of i)this.createProperty(n,s[n])}const t=this[Symbol.metadata];if(t!==null){const s=litPropertyMetadata.get(t);if(s!==void 0)for(const[i,n]of s)this.elementProperties.set(i,n)}this._$Eh=new Map;for(const[s,i]of this.elementProperties){const n=this._$Eu(s,i);n!==void 0&&this._$Eh.set(n,s)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const s=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const n of i)s.unshift(Vt(n))}else t!==void 0&&s.push(Vt(t));return s}static _$Eu(t,s){const i=s.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._$Eg=new Promise(s=>this.enableUpdating=s),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(s=>s(this))}addController(t){var s;(this._$ES??(this._$ES=[])).push(t),this.renderRoot!==void 0&&this.isConnected&&((s=t.hostConnected)==null||s.call(t))}removeController(t){var s;(s=this._$ES)==null||s.splice(this._$ES.indexOf(t)>>>0,1)}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.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 ls(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)==null||t.forEach(s=>{var i;return(i=s.hostConnected)==null?void 0:i.call(s)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)==null||t.forEach(s=>{var i;return(i=s.hostDisconnected)==null?void 0:i.call(s)})}attributeChangedCallback(t,s,i){this._$AK(t,i)}_$EO(t,s){var r;const i=this.constructor.elementProperties.get(t),n=this.constructor._$Eu(t,i);if(n!==void 0&&i.reflect===!0){const o=(((r=i.converter)==null?void 0:r.toAttribute)!==void 0?i.converter:ot).toAttribute(s,i.type);this._$Em=t,o==null?this.removeAttribute(n):this.setAttribute(n,o),this._$Em=null}}_$AK(t,s){var r;const i=this.constructor,n=i._$Eh.get(t);if(n!==void 0&&this._$Em!==n){const o=i.getPropertyOptions(n),a=typeof o.converter=="function"?{fromAttribute:o.converter}:((r=o.converter)==null?void 0:r.fromAttribute)!==void 0?o.converter:ot;this._$Em=n,this[n]=a.fromAttribute(s,o.type),this._$Em=null}}requestUpdate(t,s,i,n=!1,r){if(t!==void 0){if(i??(i=this.constructor.getPropertyOptions(t)),!(i.hasChanged??zt)(n?r:this[t],s))return;this.C(t,s,i)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(t,s,i){this._$AL.has(t)||this._$AL.set(t,s),i.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(s){Promise.reject(s)}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._$Ep){for(const[r,o]of this._$Ep)this[r]=o;this._$Ep=void 0}const n=this.constructor.elementProperties;if(n.size>0)for(const[r,o]of n)o.wrapped!==!0||this._$AL.has(r)||this[r]===void 0||this.C(r,this[r],o)}let t=!1;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),(i=this._$ES)==null||i.forEach(n=>{var r;return(r=n.hostUpdate)==null?void 0:r.call(n)}),this.update(s)):this._$ET()}catch(n){throw t=!1,this._$ET(),n}t&&this._$AE(s)}willUpdate(t){}_$AE(t){var s;(s=this._$ES)==null||s.forEach(i=>{var n;return(n=i.hostUpdated)==null?void 0:n.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(s=>this._$EO(s,this[s]))),this._$ET()}updated(t){}firstUpdated(t){}};U.elementStyles=[],U.shadowRootOptions={mode:"open"},U[W("elementProperties")]=new Map,U[W("finalized")]=new Map,Et==null||Et({ReactiveElement:U}),(E.reactiveElementVersions??(E.reactiveElementVersions=[])).push("2.0.1");/**
10
10
  * @license
11
11
  * Copyright 2017 Google LLC
12
12
  * SPDX-License-Identifier: BSD-3-Clause
13
- */const G=globalThis,at=G.trustedTypes,se=at?at.createPolicy("lit-html",{createHTML:e=>e}):void 0,ke="$lit$",S=`lit$${(Math.random()+"").slice(9)}$`,Oe="?"+S,$s=`<${Oe}>`,L=document,Y=()=>L.createComment(""),K=e=>e===null||typeof e!="object"&&typeof e!="function",Pe=Array.isArray,ms=e=>Pe(e)||typeof(e==null?void 0:e[Symbol.iterator])=="function",St=`[
14
- \f\r]`,F=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ie=/-->/g,ne=/>/g,k=RegExp(`>|${St}(?:([^\\s"'>=/]+)(${St}*=${St}*(?:[^
15
- \f\r"'\`<>=]|("|')|))|$)`,"g"),re=/'/g,oe=/"/g,Le=/^(?:script|style|textarea|title)$/i,vs=e=>(t,...s)=>({_$litType$:e,strings:t,values:s}),f=vs(1),C=Symbol.for("lit-noChange"),u=Symbol.for("lit-nothing"),ae=new WeakMap,P=L.createTreeWalker(L,129);function Ue(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return se!==void 0?se.createHTML(t):t}const ys=(e,t)=>{const s=e.length-1,i=[];let n,r=t===2?"<svg>":"",o=F;for(let a=0;a<s;a++){const l=e[a];let c,d,h=-1,p=0;for(;p<l.length&&(o.lastIndex=p,d=o.exec(l),d!==null);)p=o.lastIndex,o===F?d[1]==="!--"?o=ie:d[1]!==void 0?o=ne:d[2]!==void 0?(Le.test(d[2])&&(n=RegExp("</"+d[2],"g")),o=k):d[3]!==void 0&&(o=k):o===k?d[0]===">"?(o=n??F,h=-1):d[1]===void 0?h=-2:(h=o.lastIndex-d[2].length,c=d[1],o=d[3]===void 0?k:d[3]==='"'?oe:re):o===oe||o===re?o=k:o===ie||o===ne?o=F:(o=k,n=void 0);const g=o===k&&e[a+1].startsWith("/>")?" ":"";r+=o===F?l+$s:h>=0?(i.push(c),l.slice(0,h)+ke+l.slice(h)+S+g):l+S+(h===-2?a:g)}return[Ue(e,r+(e[s]||"<?>")+(t===2?"</svg>":"")),i]};class Q{constructor({strings:t,_$litType$:s},i){let n;this.parts=[];let r=0,o=0;const a=t.length-1,l=this.parts,[c,d]=ys(t,s);if(this.el=Q.createElement(c,i),P.currentNode=this.el.content,s===2){const h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(n=P.nextNode())!==null&&l.length<a;){if(n.nodeType===1){if(n.hasAttributes())for(const h of n.getAttributeNames())if(h.endsWith(ke)){const p=d[o++],g=n.getAttribute(h).split(S),x=/([.?@])?(.*)/.exec(p);l.push({type:1,index:r,name:x[2],strings:g,ctor:x[1]==="."?_s:x[1]==="?"?xs:x[1]==="@"?ws:$t}),n.removeAttribute(h)}else h.startsWith(S)&&(l.push({type:6,index:r}),n.removeAttribute(h));if(Le.test(n.tagName)){const h=n.textContent.split(S),p=h.length-1;if(p>0){n.textContent=at?at.emptyScript:"";for(let g=0;g<p;g++)n.append(h[g],Y()),P.nextNode(),l.push({type:2,index:++r});n.append(h[p],Y())}}}else if(n.nodeType===8)if(n.data===Oe)l.push({type:2,index:r});else{let h=-1;for(;(h=n.data.indexOf(S,h+1))!==-1;)l.push({type:7,index:r}),h+=S.length-1}r++}}static createElement(t,s){const i=L.createElement("template");return i.innerHTML=t,i}}function I(e,t,s=e,i){var o,a;if(t===C)return t;let n=i!==void 0?(o=s._$Co)==null?void 0:o[i]:s._$Cl;const r=K(t)?void 0:t._$litDirective$;return(n==null?void 0:n.constructor)!==r&&((a=n==null?void 0:n._$AO)==null||a.call(n,!1),r===void 0?n=void 0:(n=new r(e),n._$AT(e,s,i)),i!==void 0?(s._$Co??(s._$Co=[]))[i]=n:s._$Cl=n),n!==void 0&&(t=I(e,n._$AS(e,t.values),n,i)),t}class bs{constructor(t,s){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=s}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:s},parts:i}=this._$AD,n=((t==null?void 0:t.creationScope)??L).importNode(s,!0);P.currentNode=n;let r=P.nextNode(),o=0,a=0,l=i[0];for(;l!==void 0;){if(o===l.index){let c;l.type===2?c=new Z(r,r.nextSibling,this,t):l.type===1?c=new l.ctor(r,l.name,l.strings,this,t):l.type===6&&(c=new As(r,this,t)),this._$AV.push(c),l=i[++a]}o!==(l==null?void 0:l.index)&&(r=P.nextNode(),o++)}return P.currentNode=L,n}p(t){let s=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,s),s+=i.strings.length-2):i._$AI(t[s])),s++}}class Z{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,s,i,n){this.type=2,this._$AH=u,this._$AN=void 0,this._$AA=t,this._$AB=s,this._$AM=i,this.options=n,this._$Cv=(n==null?void 0:n.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const s=this._$AM;return s!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=s.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,s=this){t=I(this,t,s),K(t)?t===u||t==null||t===""?(this._$AH!==u&&this._$AR(),this._$AH=u):t!==this._$AH&&t!==C&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):ms(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==u&&K(this._$AH)?this._$AA.nextSibling.data=t:this.$(L.createTextNode(t)),this._$AH=t}g(t){var r;const{values:s,_$litType$:i}=t,n=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=Q.createElement(Ue(i.h,i.h[0]),this.options)),i);if(((r=this._$AH)==null?void 0:r._$AD)===n)this._$AH.p(s);else{const o=new bs(n,this),a=o.u(this.options);o.p(s),this.$(a),this._$AH=o}}_$AC(t){let s=ae.get(t.strings);return s===void 0&&ae.set(t.strings,s=new Q(t)),s}T(t){Pe(this._$AH)||(this._$AH=[],this._$AR());const s=this._$AH;let i,n=0;for(const r of t)n===s.length?s.push(i=new Z(this.k(Y()),this.k(Y()),this,this.options)):i=s[n],i._$AI(r),n++;n<s.length&&(this._$AR(i&&i._$AB.nextSibling,n),s.length=n)}_$AR(t=this._$AA.nextSibling,s){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,s);t&&t!==this._$AB;){const n=t.nextSibling;t.remove(),t=n}}setConnected(t){var s;this._$AM===void 0&&(this._$Cv=t,(s=this._$AP)==null||s.call(this,t))}}class $t{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,s,i,n,r){this.type=1,this._$AH=u,this._$AN=void 0,this.element=t,this.name=s,this._$AM=n,this.options=r,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=u}_$AI(t,s=this,i,n){const r=this.strings;let o=!1;if(r===void 0)t=I(this,t,s,0),o=!K(t)||t!==this._$AH&&t!==C,o&&(this._$AH=t);else{const a=t;let l,c;for(t=r[0],l=0;l<r.length-1;l++)c=I(this,a[i+l],s,l),c===C&&(c=this._$AH[l]),o||(o=!K(c)||c!==this._$AH[l]),c===u?t=u:t!==u&&(t+=(c??"")+r[l+1]),this._$AH[l]=c}o&&!n&&this.O(t)}O(t){t===u?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class _s extends $t{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===u?void 0:t}}let xs=class extends $t{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==u)}};class ws extends $t{constructor(t,s,i,n,r){super(t,s,i,n,r),this.type=5}_$AI(t,s=this){if((t=I(this,t,s,0)??u)===C)return;const i=this._$AH,n=t===u&&i!==u||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,r=t!==u&&(i===u||n);n&&this.element.removeEventListener(this.name,this,i),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var s;typeof this._$AH=="function"?this._$AH.call(((s=this.options)==null?void 0:s.host)??this.element,t):this._$AH.handleEvent(t)}}class As{constructor(t,s,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=s,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){I(this,t)}}const Et=G.litHtmlPolyfillSupport;Et==null||Et(Q,Z),(G.litHtmlVersions??(G.litHtmlVersions=[])).push("3.0.2");const Ss=(e,t,s)=>{const i=(s==null?void 0:s.renderBefore)??t;let n=i._$litPart$;if(n===void 0){const r=(s==null?void 0:s.renderBefore)??null;i._$litPart$=n=new Z(t.insertBefore(Y(),r),r,void 0,s??{})}return n._$AI(e),n};/**
13
+ */const G=globalThis,at=G.trustedTypes,se=at?at.createPolicy("lit-html",{createHTML:e=>e}):void 0,Te="$lit$",S=`lit$${(Math.random()+"").slice(9)}$`,Oe="?"+S,$s=`<${Oe}>`,L=document,X=()=>L.createComment(""),Y=e=>e===null||typeof e!="object"&&typeof e!="function",Pe=Array.isArray,ms=e=>Pe(e)||typeof(e==null?void 0:e[Symbol.iterator])=="function",Ct=`[
14
+ \f\r]`,F=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ie=/-->/g,ne=/>/g,T=RegExp(`>|${Ct}(?:([^\\s"'>=/]+)(${Ct}*=${Ct}*(?:[^
15
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),re=/'/g,oe=/"/g,Le=/^(?:script|style|textarea|title)$/i,vs=e=>(t,...s)=>({_$litType$:e,strings:t,values:s}),f=vs(1),C=Symbol.for("lit-noChange"),u=Symbol.for("lit-nothing"),ae=new WeakMap,P=L.createTreeWalker(L,129);function Re(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return se!==void 0?se.createHTML(t):t}const ys=(e,t)=>{const s=e.length-1,i=[];let n,r=t===2?"<svg>":"",o=F;for(let a=0;a<s;a++){const l=e[a];let c,d,h=-1,p=0;for(;p<l.length&&(o.lastIndex=p,d=o.exec(l),d!==null);)p=o.lastIndex,o===F?d[1]==="!--"?o=ie:d[1]!==void 0?o=ne:d[2]!==void 0?(Le.test(d[2])&&(n=RegExp("</"+d[2],"g")),o=T):d[3]!==void 0&&(o=T):o===T?d[0]===">"?(o=n??F,h=-1):d[1]===void 0?h=-2:(h=o.lastIndex-d[2].length,c=d[1],o=d[3]===void 0?T:d[3]==='"'?oe:re):o===oe||o===re?o=T:o===ie||o===ne?o=F:(o=T,n=void 0);const g=o===T&&e[a+1].startsWith("/>")?" ":"";r+=o===F?l+$s:h>=0?(i.push(c),l.slice(0,h)+Te+l.slice(h)+S+g):l+S+(h===-2?a:g)}return[Re(e,r+(e[s]||"<?>")+(t===2?"</svg>":"")),i]};class K{constructor({strings:t,_$litType$:s},i){let n;this.parts=[];let r=0,o=0;const a=t.length-1,l=this.parts,[c,d]=ys(t,s);if(this.el=K.createElement(c,i),P.currentNode=this.el.content,s===2){const h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(n=P.nextNode())!==null&&l.length<a;){if(n.nodeType===1){if(n.hasAttributes())for(const h of n.getAttributeNames())if(h.endsWith(Te)){const p=d[o++],g=n.getAttribute(h).split(S),x=/([.?@])?(.*)/.exec(p);l.push({type:1,index:r,name:x[2],strings:g,ctor:x[1]==="."?_s:x[1]==="?"?xs:x[1]==="@"?ws:vt}),n.removeAttribute(h)}else h.startsWith(S)&&(l.push({type:6,index:r}),n.removeAttribute(h));if(Le.test(n.tagName)){const h=n.textContent.split(S),p=h.length-1;if(p>0){n.textContent=at?at.emptyScript:"";for(let g=0;g<p;g++)n.append(h[g],X()),P.nextNode(),l.push({type:2,index:++r});n.append(h[p],X())}}}else if(n.nodeType===8)if(n.data===Oe)l.push({type:2,index:r});else{let h=-1;for(;(h=n.data.indexOf(S,h+1))!==-1;)l.push({type:7,index:r}),h+=S.length-1}r++}}static createElement(t,s){const i=L.createElement("template");return i.innerHTML=t,i}}function I(e,t,s=e,i){var o,a;if(t===C)return t;let n=i!==void 0?(o=s._$Co)==null?void 0:o[i]:s._$Cl;const r=Y(t)?void 0:t._$litDirective$;return(n==null?void 0:n.constructor)!==r&&((a=n==null?void 0:n._$AO)==null||a.call(n,!1),r===void 0?n=void 0:(n=new r(e),n._$AT(e,s,i)),i!==void 0?(s._$Co??(s._$Co=[]))[i]=n:s._$Cl=n),n!==void 0&&(t=I(e,n._$AS(e,t.values),n,i)),t}class bs{constructor(t,s){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=s}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:s},parts:i}=this._$AD,n=((t==null?void 0:t.creationScope)??L).importNode(s,!0);P.currentNode=n;let r=P.nextNode(),o=0,a=0,l=i[0];for(;l!==void 0;){if(o===l.index){let c;l.type===2?c=new Z(r,r.nextSibling,this,t):l.type===1?c=new l.ctor(r,l.name,l.strings,this,t):l.type===6&&(c=new As(r,this,t)),this._$AV.push(c),l=i[++a]}o!==(l==null?void 0:l.index)&&(r=P.nextNode(),o++)}return P.currentNode=L,n}p(t){let s=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,s),s+=i.strings.length-2):i._$AI(t[s])),s++}}class Z{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,s,i,n){this.type=2,this._$AH=u,this._$AN=void 0,this._$AA=t,this._$AB=s,this._$AM=i,this.options=n,this._$Cv=(n==null?void 0:n.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const s=this._$AM;return s!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=s.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,s=this){t=I(this,t,s),Y(t)?t===u||t==null||t===""?(this._$AH!==u&&this._$AR(),this._$AH=u):t!==this._$AH&&t!==C&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):ms(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==u&&Y(this._$AH)?this._$AA.nextSibling.data=t:this.$(L.createTextNode(t)),this._$AH=t}g(t){var r;const{values:s,_$litType$:i}=t,n=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=K.createElement(Re(i.h,i.h[0]),this.options)),i);if(((r=this._$AH)==null?void 0:r._$AD)===n)this._$AH.p(s);else{const o=new bs(n,this),a=o.u(this.options);o.p(s),this.$(a),this._$AH=o}}_$AC(t){let s=ae.get(t.strings);return s===void 0&&ae.set(t.strings,s=new K(t)),s}T(t){Pe(this._$AH)||(this._$AH=[],this._$AR());const s=this._$AH;let i,n=0;for(const r of t)n===s.length?s.push(i=new Z(this.k(X()),this.k(X()),this,this.options)):i=s[n],i._$AI(r),n++;n<s.length&&(this._$AR(i&&i._$AB.nextSibling,n),s.length=n)}_$AR(t=this._$AA.nextSibling,s){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,s);t&&t!==this._$AB;){const n=t.nextSibling;t.remove(),t=n}}setConnected(t){var s;this._$AM===void 0&&(this._$Cv=t,(s=this._$AP)==null||s.call(this,t))}}class vt{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,s,i,n,r){this.type=1,this._$AH=u,this._$AN=void 0,this.element=t,this.name=s,this._$AM=n,this.options=r,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=u}_$AI(t,s=this,i,n){const r=this.strings;let o=!1;if(r===void 0)t=I(this,t,s,0),o=!Y(t)||t!==this._$AH&&t!==C,o&&(this._$AH=t);else{const a=t;let l,c;for(t=r[0],l=0;l<r.length-1;l++)c=I(this,a[i+l],s,l),c===C&&(c=this._$AH[l]),o||(o=!Y(c)||c!==this._$AH[l]),c===u?t=u:t!==u&&(t+=(c??"")+r[l+1]),this._$AH[l]=c}o&&!n&&this.O(t)}O(t){t===u?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class _s extends vt{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===u?void 0:t}}let xs=class extends vt{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==u)}};class ws extends vt{constructor(t,s,i,n,r){super(t,s,i,n,r),this.type=5}_$AI(t,s=this){if((t=I(this,t,s,0)??u)===C)return;const i=this._$AH,n=t===u&&i!==u||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,r=t!==u&&(i===u||n);n&&this.element.removeEventListener(this.name,this,i),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var s;typeof this._$AH=="function"?this._$AH.call(((s=this.options)==null?void 0:s.host)??this.element,t):this._$AH.handleEvent(t)}}class As{constructor(t,s,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=s,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){I(this,t)}}const kt=G.litHtmlPolyfillSupport;kt==null||kt(K,Z),(G.litHtmlVersions??(G.litHtmlVersions=[])).push("3.0.2");const Ss=(e,t,s)=>{const i=(s==null?void 0:s.renderBefore)??t;let n=i._$litPart$;if(n===void 0){const r=(s==null?void 0:s.renderBefore)??null;i._$litPart$=n=new Z(t.insertBefore(X(),r),r,void 0,s??{})}return n._$AI(e),n};/**
16
16
  * @license
17
17
  * Copyright 2017 Google LLC
18
18
  * SPDX-License-Identifier: BSD-3-Clause
19
- */let v=class extends R{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var s;const t=super.createRenderRoot();return(s=this.renderOptions).renderBefore??(s.renderBefore=t.firstChild),t}update(t){const s=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Ss(s,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 C}};var Ce;v._$litElement$=!0,v.finalized=!0,(Ce=globalThis.litElementHydrateSupport)==null||Ce.call(globalThis,{LitElement:v});const Ct=globalThis.litElementPolyfillSupport;Ct==null||Ct({LitElement:v});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.0.1");const Re={name:"send",svg:'<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.41642 6.29292C5.99705 5.18016 3.38612 7.41823 4.12858 9.96847L10.5427 32L4.12858 54.0315C3.38612 56.5818 5.99704 58.8198 8.41642 57.7071L58.1942 34.8125C60.6019 33.7051 60.6019 30.2949 58.1942 29.1875L8.41642 6.29292ZM14.2569 29.9351L8.74174 10.9913L49.9295 29.9351H14.2569ZM14.2568 34.0651L8.74174 53.0087L49.9291 34.0651H14.2568Z"/></svg>'},H={allRenderFn:!1,cmpDidLoad:!0,cmpDidUnload:!1,cmpDidUpdate:!0,cmpDidRender:!0,cmpWillLoad:!0,cmpWillUpdate:!0,cmpWillRender:!0,connectedCallback:!0,disconnectedCallback:!0,element:!0,event:!0,hasRenderFn:!0,lifecycle:!0,hostListener:!0,hostListenerTargetWindow:!0,hostListenerTargetDocument:!0,hostListenerTargetBody:!0,hostListenerTargetParent:!1,hostListenerTarget:!0,member:!0,method:!0,mode:!0,observeAttribute:!0,prop:!0,propMutable:!0,reflect:!0,scoped:!0,shadowDom:!0,slot:!0,cssAnnotations:!0,state:!0,style:!0,svg:!0,updatable:!0,vdomAttribute:!0,vdomXlink:!0,vdomClass:!0,vdomFunctional:!0,vdomKey:!0,vdomListener:!0,vdomRef:!0,vdomPropOrAttr:!0,vdomRender:!0,vdomStyle:!0,vdomText:!0,watchCallback:!0,taskQueue:!0,hotModuleReplacement:!1,isDebug:!1,isDev:!1,isTesting:!1,hydrateServerSide:!1,hydrateClientSide:!1,lifecycleDOMEvents:!1,lazyLoad:!1,profile:!1,slotRelocation:!0,appendChildSlotFix:!1,cloneNodeFix:!1,hydratedAttribute:!1,hydratedClass:!0,safari10:!1,scriptDataOpts:!1,scopedSlotTextContentFix:!1,shadowDomShim:!1,slotChildNodesFix:!1,invisiblePrehydration:!0,propBoolean:!0,propNumber:!0,propString:!0,cssVarShim:!1,constructableCSS:!0,cmpShouldUpdate:!0,devTools:!1,dynamicImportShim:!1,shadowDelegatesFocus:!0,initializeNextTick:!1,asyncLoading:!1,asyncQueue:!1,transformTagName:!1,attachStyles:!0};let N,He,mt,Ne=!1,lt=!1,It=!1,y=!1,le=null,Pt=!1;const vt=typeof window<"u"?window:{},w=vt.document||{head:{}},Me=vt.HTMLElement||class{},m={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,s,i)=>e.addEventListener(t,s,i),rel:(e,t,s,i)=>e.removeEventListener(t,s,i),ce:(e,t)=>new CustomEvent(e,t)},Es=(()=>{let e=!1;try{w.addEventListener("e",null,Object.defineProperty({},"passive",{get(){e=!0}}))}catch{}return e})(),Cs=e=>Promise.resolve(e),Ts=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replace=="function"}catch{}return!1})(),je=(e,t,s,i)=>{s&&s.map(([n,r,o])=>{const a=Os(e,n),l=ks(t,o),c=Ps(n);m.ael(a,r,l,c),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>m.rel(a,r,l,c))})},ks=(e,t)=>s=>{try{H.lazyLoad||e.$hostElement$[t](s)}catch(i){J(i)}},Os=(e,t)=>t&4?w:t&8?vt:t&16?w.body:e,Ps=e=>Es?{passive:(e&1)!==0,capture:(e&2)!==0}:(e&2)!==0,ce="http://www.w3.org/1999/xlink",U=(e,t="")=>()=>{},de=new WeakMap,Ls=(e,t,s)=>{let i=ht.get(e);Ts&&s?(i=i||new CSSStyleSheet,i.replace(t)):i=t,ht.set(e,i)},Us=(e,t,s,i)=>{let n=De(t,s),r=ht.get(n);if(e=e.nodeType===11?e:w,r)if(typeof r=="string"){e=e.head||e;let o=de.get(e),a;o||de.set(e,o=new Set),o.has(n)||(a=w.createElement("style"),a.innerHTML=r,e.insertBefore(a,e.querySelector("link")),o&&o.add(n))}else e.adoptedStyleSheets.includes(r)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,r]);return n},Rs=e=>{const t=e.$cmpMeta$,s=e.$hostElement$,i=t.$flags$,n=U("attachStyles",t.$tagName$),r=Us(s.shadowRoot?s.shadowRoot:s.getRootNode(),t,e.$modeName$);i&10&&(s["s-sc"]=r,s.classList.add(r+"-h"),i&2&&s.classList.add(r+"-s")),n()},De=(e,t)=>"sc-"+(t&&e.$flags$&32?e.$tagName$+"-"+t:e.$tagName$),Hs=e=>ci.map(t=>t(e)).find(t=>!!t),he={},Ns="http://www.w3.org/2000/svg",Ms="http://www.w3.org/1999/xhtml",js=e=>e!=null,zt=e=>(e=typeof e,e==="object"||e==="function"),j=(e,t,...s)=>{let i=null,n=null,r=null,o=!1,a=!1,l=[];const c=h=>{for(let p=0;p<h.length;p++)i=h[p],Array.isArray(i)?c(i):i!=null&&typeof i!="boolean"&&((o=typeof e!="function"&&!zt(i))&&(i=String(i)),o&&a?l[l.length-1].$text$+=i:l.push(o?ct(null,i):i),a=o)};if(c(s),t){t.key&&(n=t.key),t.name&&(r=t.name);{const h=t.className||t.class;h&&(t.class=typeof h!="object"?h:Object.keys(h).filter(p=>h[p]).join(" "))}}if(typeof e=="function")return e(t===null?{}:t,l,Is);const d=ct(e,null);return d.$attrs$=t,l.length>0&&(d.$children$=l),d.$key$=n,d.$name$=r,d},ct=(e,t)=>{const s={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return s.$attrs$=null,s.$key$=null,s.$name$=null,s},Bt={},Ds=e=>e&&e.$tag$===Bt,Is={forEach:(e,t)=>e.map(pe).forEach(t),map:(e,t)=>e.map(pe).map(t).map(zs)},pe=e=>({vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}),zs=e=>{if(typeof e.vtag=="function"){const s=Object.assign({},e.vattrs);return e.vkey&&(s.key=e.vkey),e.vname&&(s.name=e.vname),j(e.vtag,s,...e.vchildren||[])}const t=ct(e.vtag,e.vtext);return t.$attrs$=e.vattrs,t.$children$=e.vchildren,t.$key$=e.vkey,t.$name$=e.vname,t},ue=(e,t,s,i,n,r)=>{if(s!==i){let o=me(e,t),a=t.toLowerCase();if(t==="class"){const l=e.classList,c=fe(s),d=fe(i);l.remove(...c.filter(h=>h&&!d.includes(h))),l.add(...d.filter(h=>h&&!c.includes(h)))}else if(t==="style"){for(const l in s)(!i||i[l]==null)&&(l.includes("-")?e.style.removeProperty(l):e.style[l]="");for(const l in i)(!s||i[l]!==s[l])&&(l.includes("-")?e.style.setProperty(l,i[l]):e.style[l]=i[l])}else if(t!=="key")if(t==="ref")i&&i(e);else if(!e.__lookupSetter__(t)&&t[0]==="o"&&t[1]==="n")t[2]==="-"?t=t.slice(3):me(vt,a)?t=a.slice(2):t=a[2]+t.slice(3),s&&m.rel(e,t,s,!1),i&&m.ael(e,t,i,!1);else{const l=zt(i);if((o||l&&i!==null)&&!n)try{if(e.tagName.includes("-"))e[t]=i;else{let d=i??"";t==="list"?o=!1:(s==null||e[t]!=d)&&(e[t]=d)}}catch{}let c=!1;a!==(a=a.replace(/^xlink\:?/,""))&&(t=a,c=!0),i==null||i===!1?(i!==!1||e.getAttribute(t)==="")&&(c?e.removeAttributeNS(ce,t):e.removeAttribute(t)):(!o||r&4||n)&&!l&&(i=i===!0?"":i,c?e.setAttributeNS(ce,t,i):e.setAttribute(t,i))}}},Bs=/\s/,fe=e=>e?e.split(Bs):[],Ie=(e,t,s,i)=>{const n=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,r=e&&e.$attrs$||he,o=t.$attrs$||he;for(i in r)i in o||ue(n,i,r[i],void 0,s,t.$flags$);for(i in o)ue(n,i,r[i],o[i],s,t.$flags$)},dt=(e,t,s,i)=>{let n=t.$children$[s],r=0,o,a,l;if(Ne||(It=!0,n.$tag$==="slot"&&(N&&i.classList.add(N+"-s"),n.$flags$|=n.$children$?2:1)),n.$text$!==null)o=n.$elm$=w.createTextNode(n.$text$);else if(n.$flags$&1)o=n.$elm$=w.createTextNode("");else{if(y||(y=n.$tag$==="svg"),o=n.$elm$=w.createElementNS(y?Ns:Ms,n.$flags$&2?"slot-fb":n.$tag$),y&&n.$tag$==="foreignObject"&&(y=!1),Ie(null,n,y),js(N)&&o["s-si"]!==N&&o.classList.add(o["s-si"]=N),n.$children$)for(r=0;r<n.$children$.length;++r)a=dt(e,n,r,o),a&&o.appendChild(a);n.$tag$==="svg"?y=!1:o.tagName==="foreignObject"&&(y=!0)}return o["s-hn"]=mt,n.$flags$&3&&(o["s-sr"]=!0,o["s-cr"]=He,o["s-sn"]=n.$name$||"",l=e&&e.$children$&&e.$children$[s],l&&l.$tag$===n.$tag$&&e.$elm$&&X(e.$elm$,!1)),o},X=(e,t)=>{m.$flags$|=1;const s=e.childNodes;for(let i=s.length-1;i>=0;i--){const n=s[i];n["s-hn"]!==mt&&n["s-ol"]&&(Fe(n).insertBefore(n,Ft(n)),n["s-ol"].remove(),n["s-ol"]=void 0,It=!0),t&&X(n,t)}m.$flags$&=-2},ze=(e,t,s,i,n,r)=>{let o=e["s-cr"]&&e["s-cr"].parentNode||e,a;for(o.shadowRoot&&o.tagName===mt&&(o=o.shadowRoot);n<=r;++n)i[n]&&(a=dt(null,s,n,e),a&&(i[n].$elm$=a,o.insertBefore(a,Ft(t))))},Be=(e,t,s,i,n)=>{for(;t<=s;++t)(i=e[t])&&(n=i.$elm$,qe(i),lt=!0,n["s-ol"]?n["s-ol"].remove():X(n,!0),n.remove())},Fs=(e,t,s,i)=>{let n=0,r=0,o=0,a=0,l=t.length-1,c=t[0],d=t[l],h=i.length-1,p=i[0],g=i[h],x,st;for(;n<=l&&r<=h;)if(c==null)c=t[++n];else if(d==null)d=t[--l];else if(p==null)p=i[++r];else if(g==null)g=i[--h];else if(it(c,p))M(c,p),c=t[++n],p=i[++r];else if(it(d,g))M(d,g),d=t[--l],g=i[--h];else if(it(c,g))(c.$tag$==="slot"||g.$tag$==="slot")&&X(c.$elm$.parentNode,!1),M(c,g),e.insertBefore(c.$elm$,d.$elm$.nextSibling),c=t[++n],g=i[--h];else if(it(d,p))(c.$tag$==="slot"||g.$tag$==="slot")&&X(d.$elm$.parentNode,!1),M(d,p),e.insertBefore(d.$elm$,c.$elm$),d=t[--l],p=i[++r];else{for(o=-1,a=n;a<=l;++a)if(t[a]&&t[a].$key$!==null&&t[a].$key$===p.$key$){o=a;break}o>=0?(st=t[o],st.$tag$!==p.$tag$?x=dt(t&&t[r],s,o,e):(M(st,p),t[o]=void 0,x=st.$elm$),p=i[++r]):(x=dt(t&&t[r],s,r,e),p=i[++r]),x&&Fe(c.$elm$).insertBefore(x,Ft(c.$elm$))}n>l?ze(e,i[h+1]==null?null:i[h+1].$elm$,s,i,r,h):r>h&&Be(t,n,l)},it=(e,t)=>e.$tag$===t.$tag$?e.$tag$==="slot"?e.$name$===t.$name$:e.$key$===t.$key$:!1,Ft=e=>e&&e["s-ol"]||e,Fe=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,M=(e,t)=>{const s=t.$elm$=e.$elm$,i=e.$children$,n=t.$children$,r=t.$tag$,o=t.$text$;let a;o===null?(y=r==="svg"?!0:r==="foreignObject"?!1:y,r==="slot"||Ie(e,t,y),i!==null&&n!==null?Fs(s,i,t,n):n!==null?(e.$text$!==null&&(s.textContent=""),ze(s,null,t,n,0,n.length-1)):i!==null&&Be(i,0,i.length-1),y&&r==="svg"&&(y=!1)):(a=s["s-cr"])?a.parentNode.textContent=o:e.$text$!==o&&(s.data=o)},We=e=>{let t=e.childNodes,s,i,n,r,o,a;for(i=0,n=t.length;i<n;i++)if(s=t[i],s.nodeType===1){if(s["s-sr"]){for(o=s["s-sn"],s.hidden=!1,r=0;r<n;r++)if(a=t[r].nodeType,t[r]["s-hn"]!==s["s-hn"]||o!==""){if(a===1&&o===t[r].getAttribute("slot")){s.hidden=!0;break}}else if(a===1||a===3&&t[r].textContent.trim()!==""){s.hidden=!0;break}}We(s)}},b=[],Ge=e=>{let t,s,i,n,r,o,a=0,l=e.childNodes,c=l.length;for(;a<c;a++){if(t=l[a],t["s-sr"]&&(s=t["s-cr"])&&s.parentNode)for(i=s.parentNode.childNodes,n=t["s-sn"],o=i.length-1;o>=0;o--)s=i[o],!s["s-cn"]&&!s["s-nr"]&&s["s-hn"]!==t["s-hn"]&&(ge(s,n)?(r=b.find(d=>d.$nodeToRelocate$===s),lt=!0,s["s-sn"]=s["s-sn"]||n,r?r.$slotRefNode$=t:b.push({$slotRefNode$:t,$nodeToRelocate$:s}),s["s-sr"]&&b.map(d=>{ge(d.$nodeToRelocate$,s["s-sn"])&&(r=b.find(h=>h.$nodeToRelocate$===s),r&&!d.$slotRefNode$&&(d.$slotRefNode$=r.$slotRefNode$))})):b.some(d=>d.$nodeToRelocate$===s)||b.push({$nodeToRelocate$:s}));t.nodeType===1&&Ge(t)}},ge=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t?!0:t==="",qe=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(qe)},Ws=(e,t)=>{const s=e.$hostElement$,i=e.$cmpMeta$,n=e.$vnode$||ct(null,null),r=Ds(t)?t:j(null,null,t);mt=s.tagName,i.$attrsToReflect$&&(r.$attrs$=r.$attrs$||{},i.$attrsToReflect$.map(([o,a])=>r.$attrs$[a]=s[o])),r.$tag$=null,r.$flags$|=4,e.$vnode$=r,r.$elm$=n.$elm$=s.shadowRoot||s,N=s["s-sc"],He=s["s-cr"],Ne=(i.$flags$&1)!==0,lt=!1,M(n,r);{if(m.$flags$|=1,It){Ge(r.$elm$);let o,a,l,c,d,h,p=0;for(;p<b.length;p++)o=b[p],a=o.$nodeToRelocate$,a["s-ol"]||(l=w.createTextNode(""),l["s-nr"]=a,a.parentNode.insertBefore(a["s-ol"]=l,a));for(p=0;p<b.length;p++)if(o=b[p],a=o.$nodeToRelocate$,o.$slotRefNode$){for(c=o.$slotRefNode$.parentNode,d=o.$slotRefNode$.nextSibling,l=a["s-ol"];l=l.previousSibling;)if(h=l["s-nr"],h&&h["s-sn"]===a["s-sn"]&&c===h.parentNode&&(h=h.nextSibling,!h||!h["s-nr"])){d=h;break}(!d&&c!==a.parentNode||a.nextSibling!==d)&&a!==d&&(!a["s-hn"]&&a["s-ol"]&&(a["s-hn"]=a["s-ol"].parentNode.nodeName),c.insertBefore(a,d))}else a.nodeType===1&&(a.hidden=!0)}lt&&We(r.$elm$),m.$flags$&=-2,b.length=0}},Gs=e=>e,qs=(e,t,s)=>{const i=Gs(e);return{emit:n=>Ys(i,t,{bubbles:!!(s&4),composed:!!(s&2),cancelable:!!(s&1),detail:n})}},Ys=(e,t,s)=>{const i=m.ce(t,s);return e.dispatchEvent(i),i},Ks=(e,t)=>{},Ye=(e,t)=>(e.$flags$|=16,Ks(e,e.$ancestorComponent$),pi(()=>Qs(e,t))),Qs=(e,t)=>{const s=e.$hostElement$,i=U("scheduleUpdate",e.$cmpMeta$.$tagName$),n=s;let r;return t?r=D(n,"componentWillLoad"):r=D(n,"componentWillUpdate"),r=$e(r,()=>D(n,"componentWillRender")),i(),$e(r,()=>Xs(e,n,t))},Xs=async(e,t,s)=>{const i=e.$hostElement$,n=U("update",e.$cmpMeta$.$tagName$);i["s-rc"],s&&Rs(e);const r=U("render",e.$cmpMeta$.$tagName$);Zs(e,t,i),r(),n(),Js(e)},Zs=(e,t,s)=>{try{le=t,t=t.render&&t.render(),e.$flags$&=-17,e.$flags$|=2,(H.hasRenderFn||H.reflect)&&(H.vdomRender||H.reflect)&&(H.hydrateServerSide||Ws(e,t))}catch(a){J(a,e.$hostElement$)}return le=null,null},Js=e=>{const t=e.$cmpMeta$.$tagName$,s=e.$hostElement$,i=U("postUpdate",t),n=s;e.$ancestorComponent$,D(n,"componentDidRender"),e.$flags$&64?(D(n,"componentDidUpdate"),i()):(e.$flags$|=64,D(n,"componentDidLoad"),i())},D=(e,t,s)=>{if(e&&e[t])try{return e[t](s)}catch(i){J(i)}},$e=(e,t)=>e&&e.then?e.then(t):t(),Vs=(e,t)=>e!=null&&!zt(e)?t&4?e==="false"?!1:e===""||!!e:t&2?parseFloat(e):t&1?String(e):e:e,ti=(e,t)=>yt(e).$instanceValues$.get(t),ei=(e,t,s,i)=>{const n=yt(e),r=e,o=n.$instanceValues$.get(t),a=n.$flags$,l=r;s=Vs(s,i.$members$[t][0]);const c=Number.isNaN(o)&&Number.isNaN(s);if(s!==o&&!c){n.$instanceValues$.set(t,s);{if(i.$watchers$&&a&128){const h=i.$watchers$[t];h&&h.map(p=>{try{l[p](s,o,t)}catch(g){J(g,r)}})}if((a&18)===2){if(l.componentShouldUpdate&&l.componentShouldUpdate(s,o,t)===!1)return;Ye(n,!1)}}}},si=(e,t,s)=>{if(t.$members$){e.watchers&&(t.$watchers$=e.watchers);const i=Object.entries(t.$members$),n=e.prototype;i.map(([r,[o]])=>{(o&31||o&32)&&Object.defineProperty(n,r,{get(){return ti(this,r)},set(a){ei(this,r,a,t)},configurable:!0,enumerable:!0})});{const r=new Map;n.attributeChangedCallback=function(o,a,l){m.jmp(()=>{const c=r.get(o);if(this.hasOwnProperty(c))l=this[c],delete this[c];else if(n.hasOwnProperty(c)&&typeof this[c]=="number"&&this[c]==l)return;this[c]=l===null&&typeof this[c]=="boolean"?!1:l})},e.observedAttributes=i.filter(([o,a])=>a[0]&15).map(([o,a])=>{const l=a[1]||o;return r.set(l,o),a[0]&512&&t.$attrsToReflect$.push([o,l]),l})}}return e},ii=async(e,t,s,i,n)=>{if(!(t.$flags$&32)&&(n=e.constructor,t.$flags$|=32,customElements.whenDefined(s.$tagName$).then(()=>t.$flags$|=128),n.style)){let o=n.style;typeof o!="string"&&(o=o[t.$modeName$=Hs(e)]);const a=De(s,t.$modeName$);if(!ht.has(a)){const l=U("registerStyles",s.$tagName$);Ls(a,o,!!(s.$flags$&1)),l()}}t.$ancestorComponent$,(()=>Ye(t,!0))()},ni=e=>{},ri=e=>{if(!(m.$flags$&1)){const t=yt(e),s=t.$cmpMeta$,i=U("connectedCallback",s.$tagName$);t.$flags$&1?(je(e,t,s.$listeners$),ni(t.$lazyInstance$)):(t.$flags$|=1,s.$flags$&12&&oi(e),s.$members$&&Object.entries(s.$members$).map(([n,[r]])=>{if(r&31&&e.hasOwnProperty(n)){const o=e[n];delete e[n],e[n]=o}}),ii(e,t,s)),i()}},oi=e=>{const t=e["s-cr"]=w.createComment("");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)},ai=e=>{if(!(m.$flags$&1)){const t=yt(e);t.$rmListeners$&&(t.$rmListeners$.map(s=>s()),t.$rmListeners$=void 0)}},Ke=(e,t)=>{const s={$flags$:t[0],$tagName$:t[1]};s.$members$=t[2],s.$listeners$=t[3],s.$watchers$=e.$watchers$,s.$attrsToReflect$=[];const i=e.prototype.connectedCallback,n=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__registerHost(){li(this,s)},connectedCallback(){ri(this),i&&i.call(this)},disconnectedCallback(){ai(this),n&&n.call(this)},__attachShadow(){this.attachShadow({mode:"open",delegatesFocus:!!(s.$flags$&16)})}}),e.is=s.$tagName$,si(e,s)},Qe=new WeakMap,yt=e=>Qe.get(e),li=(e,t)=>{const s={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return je(e,s,t.$listeners$),Qe.set(e,s)},me=(e,t)=>t in e,J=(e,t)=>(0,console.error)(e,t),ht=new Map,ci=[],ve=[],Xe=[],di=(e,t)=>s=>{e.push(s),Pt||(Pt=!0,t&&m.$flags$&4?hi(Lt):m.raf(Lt))},ye=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(s){J(s)}e.length=0},Lt=()=>{ye(ve),ye(Xe),(Pt=ve.length>0)&&m.raf(Lt)},hi=e=>Cs().then(e),pi=di(Xe,!0),ui=(e={})=>{const{content:t="",title:s,attributes:i=[]}=e;let n="",r=[{name:"xmlns",value:"http://www.w3.org/2000/svg"},{name:"fill",value:"currentColor"},...i];return s&&(n=`<title>${s}</title>`),`<svg ${r.map(a=>`${a.name}="${a.value}"`).join(" ")}>${n}${t}</svg>`},fi=e=>e.replace(/<(\/?)svg([^>]*)>/g,"").trim();function gi(e){return`${e.getFullYear()}.${e.getMonth()+1}`}class $i{constructor(t){this.voca_component=t,this.voca_added=gi(new Date)}}const mi="telia-vst{display:none}",vi=Ke(class extends Me{constructor(){super(),this.__registerHost(),this.vocaInternalUStats=qs(this,"vocaInternalUStats",7)}connectedCallback(){this.vocaInternalUStats.emit(new $i(this.dataTrackingId))}render(){return j(Bt,null)}static get style(){return mi}},[0,"telia-vst",{dataTrackingId:[1,"data-tracking-id"]}]);function Ze(){if(typeof customElements>"u")return;["telia-vst"].forEach(t=>{switch(t){case"telia-vst":customElements.get(t)||customElements.define(t,vi);break}})}Ze();function Ut(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{vocadsIcons:void 0,vocadsIconsRegistered:!1}}function yi(){if(typeof Ut().vocadsIcons!==void 0)return Ut().vocadsIcons}function bi(){return Ut().vocadsIconsRegistered}const _i=".telia-icon{display:inline-block}.telia-icon__container{display:block;height:inherit}.telia-icon svg{display:block}.telia-icon--sm{height:calc(1.6rem * var(--voca-rem-multiplier));min-width:calc(1.6rem * var(--voca-rem-multiplier));width:calc(1.6rem * var(--voca-rem-multiplier))}.telia-icon--md{height:calc(2.4rem * var(--voca-rem-multiplier));min-width:calc(2.4rem * var(--voca-rem-multiplier));width:calc(2.4rem * var(--voca-rem-multiplier))}.telia-icon--lg{height:calc(3.2rem * var(--voca-rem-multiplier));min-width:calc(3.2rem * var(--voca-rem-multiplier));width:calc(3.2rem * var(--voca-rem-multiplier))}",xi=Ke(class extends Me{constructor(){super(),this.__registerHost(),this.size="md",this.allyTitle=null,this.dataTrackingId="telia-icon"}getSvgString(){if(this.svg)return this.svg;if(bi()&&this.name){const e=yi();return e[this.name]?e[this.name].svg:""}return this.name&&console.warn(this.name,"Icons bundle is not registered and will not be rendered. Check if you have registered icons bundle or use svg property"),""}render(){let e=this.getSvgString(),t=[{name:"viewBox",value:"0 0 64 64"}];this.allyTitle?t=[...t,{name:"role",value:"img"}]:t=[...t,{name:"aria-hidden",value:"true"}];const s=ui({content:fi(e),attributes:t,title:this.allyTitle});return j(Bt,{class:`telia-icon telia-icon--${this.size}`},j("span",{"aria-label":this.allyTitle,class:"telia-icon__container",innerHTML:s}),j("telia-vst",{dataTrackingId:this.dataTrackingId}))}static get style(){return _i}},[0,"telia-icon",{name:[1],svg:[1],size:[1],allyTitle:[1,"ally-title"],dataTestid:[1,"data-testid"]}]);function wi(){if(typeof customElements>"u")return;["telia-icon","telia-vst"].forEach(t=>{switch(t){case"telia-icon":customElements.get(t)||customElements.define(t,xi);break;case"telia-vst":customElements.get(t)||Ze();break}})}wi();/**
19
+ */let v=class extends U{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var s;const t=super.createRenderRoot();return(s=this.renderOptions).renderBefore??(s.renderBefore=t.firstChild),t}update(t){const s=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Ss(s,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 C}};var Ce;v._$litElement$=!0,v.finalized=!0,(Ce=globalThis.litElementHydrateSupport)==null||Ce.call(globalThis,{LitElement:v});const Tt=globalThis.litElementPolyfillSupport;Tt==null||Tt({LitElement:v});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.0.1");const Ue={name:"send",svg:'<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.41642 6.29292C5.99705 5.18016 3.38612 7.41823 4.12858 9.96847L10.5427 32L4.12858 54.0315C3.38612 56.5818 5.99704 58.8198 8.41642 57.7071L58.1942 34.8125C60.6019 33.7051 60.6019 30.2949 58.1942 29.1875L8.41642 6.29292ZM14.2569 29.9351L8.74174 10.9913L49.9295 29.9351H14.2569ZM14.2568 34.0651L8.74174 53.0087L49.9291 34.0651H14.2568Z"/></svg>'},H={allRenderFn:!1,cmpDidLoad:!0,cmpDidUnload:!1,cmpDidUpdate:!0,cmpDidRender:!0,cmpWillLoad:!0,cmpWillUpdate:!0,cmpWillRender:!0,connectedCallback:!0,disconnectedCallback:!0,element:!0,event:!0,hasRenderFn:!0,lifecycle:!0,hostListener:!0,hostListenerTargetWindow:!0,hostListenerTargetDocument:!0,hostListenerTargetBody:!0,hostListenerTargetParent:!1,hostListenerTarget:!0,member:!0,method:!0,mode:!0,observeAttribute:!0,prop:!0,propMutable:!0,reflect:!0,scoped:!0,shadowDom:!0,slot:!0,cssAnnotations:!0,state:!0,style:!0,svg:!0,updatable:!0,vdomAttribute:!0,vdomXlink:!0,vdomClass:!0,vdomFunctional:!0,vdomKey:!0,vdomListener:!0,vdomRef:!0,vdomPropOrAttr:!0,vdomRender:!0,vdomStyle:!0,vdomText:!0,watchCallback:!0,taskQueue:!0,hotModuleReplacement:!1,isDebug:!1,isDev:!1,isTesting:!1,hydrateServerSide:!1,hydrateClientSide:!1,lifecycleDOMEvents:!1,lazyLoad:!1,profile:!1,slotRelocation:!0,appendChildSlotFix:!1,cloneNodeFix:!1,hydratedAttribute:!1,hydratedClass:!0,safari10:!1,scriptDataOpts:!1,scopedSlotTextContentFix:!1,shadowDomShim:!1,slotChildNodesFix:!1,invisiblePrehydration:!0,propBoolean:!0,propNumber:!0,propString:!0,cssVarShim:!1,constructableCSS:!0,cmpShouldUpdate:!0,devTools:!1,dynamicImportShim:!1,shadowDelegatesFocus:!0,initializeNextTick:!1,asyncLoading:!1,asyncQueue:!1,transformTagName:!1,attachStyles:!0};let N,He,yt,Ne=!1,lt=!1,Bt=!1,y=!1,le=null,Rt=!1;const bt=typeof window<"u"?window:{},w=bt.document||{head:{}},Me=bt.HTMLElement||class{},m={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,s,i)=>e.addEventListener(t,s,i),rel:(e,t,s,i)=>e.removeEventListener(t,s,i),ce:(e,t)=>new CustomEvent(e,t)},Es=(()=>{let e=!1;try{w.addEventListener("e",null,Object.defineProperty({},"passive",{get(){e=!0}}))}catch{}return e})(),Cs=e=>Promise.resolve(e),ks=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replace=="function"}catch{}return!1})(),je=(e,t,s,i)=>{s&&s.map(([n,r,o])=>{const a=Os(e,n),l=Ts(t,o),c=Ps(n);m.ael(a,r,l,c),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>m.rel(a,r,l,c))})},Ts=(e,t)=>s=>{try{H.lazyLoad||e.$hostElement$[t](s)}catch(i){J(i)}},Os=(e,t)=>t&4?w:t&8?bt:t&16?w.body:e,Ps=e=>Es?{passive:(e&1)!==0,capture:(e&2)!==0}:(e&2)!==0,ce="http://www.w3.org/1999/xlink",R=(e,t="")=>()=>{},de=new WeakMap,Ls=(e,t,s)=>{let i=ht.get(e);ks&&s?(i=i||new CSSStyleSheet,i.replace(t)):i=t,ht.set(e,i)},Rs=(e,t,s,i)=>{let n=De(t,s),r=ht.get(n);if(e=e.nodeType===11?e:w,r)if(typeof r=="string"){e=e.head||e;let o=de.get(e),a;o||de.set(e,o=new Set),o.has(n)||(a=w.createElement("style"),a.innerHTML=r,e.insertBefore(a,e.querySelector("link")),o&&o.add(n))}else e.adoptedStyleSheets.includes(r)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,r]);return n},Us=e=>{const t=e.$cmpMeta$,s=e.$hostElement$,i=t.$flags$,n=R("attachStyles",t.$tagName$),r=Rs(s.shadowRoot?s.shadowRoot:s.getRootNode(),t,e.$modeName$);i&10&&(s["s-sc"]=r,s.classList.add(r+"-h"),i&2&&s.classList.add(r+"-s")),n()},De=(e,t)=>"sc-"+(t&&e.$flags$&32?e.$tagName$+"-"+t:e.$tagName$),Hs=e=>ci.map(t=>t(e)).find(t=>!!t),he={},Ns="http://www.w3.org/2000/svg",Ms="http://www.w3.org/1999/xhtml",js=e=>e!=null,Ft=e=>(e=typeof e,e==="object"||e==="function"),j=(e,t,...s)=>{let i=null,n=null,r=null,o=!1,a=!1,l=[];const c=h=>{for(let p=0;p<h.length;p++)i=h[p],Array.isArray(i)?c(i):i!=null&&typeof i!="boolean"&&((o=typeof e!="function"&&!Ft(i))&&(i=String(i)),o&&a?l[l.length-1].$text$+=i:l.push(o?ct(null,i):i),a=o)};if(c(s),t){t.key&&(n=t.key),t.name&&(r=t.name);{const h=t.className||t.class;h&&(t.class=typeof h!="object"?h:Object.keys(h).filter(p=>h[p]).join(" "))}}if(typeof e=="function")return e(t===null?{}:t,l,Is);const d=ct(e,null);return d.$attrs$=t,l.length>0&&(d.$children$=l),d.$key$=n,d.$name$=r,d},ct=(e,t)=>{const s={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return s.$attrs$=null,s.$key$=null,s.$name$=null,s},Wt={},Ds=e=>e&&e.$tag$===Wt,Is={forEach:(e,t)=>e.map(pe).forEach(t),map:(e,t)=>e.map(pe).map(t).map(zs)},pe=e=>({vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}),zs=e=>{if(typeof e.vtag=="function"){const s=Object.assign({},e.vattrs);return e.vkey&&(s.key=e.vkey),e.vname&&(s.name=e.vname),j(e.vtag,s,...e.vchildren||[])}const t=ct(e.vtag,e.vtext);return t.$attrs$=e.vattrs,t.$children$=e.vchildren,t.$key$=e.vkey,t.$name$=e.vname,t},ue=(e,t,s,i,n,r)=>{if(s!==i){let o=me(e,t),a=t.toLowerCase();if(t==="class"){const l=e.classList,c=fe(s),d=fe(i);l.remove(...c.filter(h=>h&&!d.includes(h))),l.add(...d.filter(h=>h&&!c.includes(h)))}else if(t==="style"){for(const l in s)(!i||i[l]==null)&&(l.includes("-")?e.style.removeProperty(l):e.style[l]="");for(const l in i)(!s||i[l]!==s[l])&&(l.includes("-")?e.style.setProperty(l,i[l]):e.style[l]=i[l])}else if(t!=="key")if(t==="ref")i&&i(e);else if(!e.__lookupSetter__(t)&&t[0]==="o"&&t[1]==="n")t[2]==="-"?t=t.slice(3):me(bt,a)?t=a.slice(2):t=a[2]+t.slice(3),s&&m.rel(e,t,s,!1),i&&m.ael(e,t,i,!1);else{const l=Ft(i);if((o||l&&i!==null)&&!n)try{if(e.tagName.includes("-"))e[t]=i;else{let d=i??"";t==="list"?o=!1:(s==null||e[t]!=d)&&(e[t]=d)}}catch{}let c=!1;a!==(a=a.replace(/^xlink\:?/,""))&&(t=a,c=!0),i==null||i===!1?(i!==!1||e.getAttribute(t)==="")&&(c?e.removeAttributeNS(ce,t):e.removeAttribute(t)):(!o||r&4||n)&&!l&&(i=i===!0?"":i,c?e.setAttributeNS(ce,t,i):e.setAttribute(t,i))}}},Bs=/\s/,fe=e=>e?e.split(Bs):[],Ie=(e,t,s,i)=>{const n=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,r=e&&e.$attrs$||he,o=t.$attrs$||he;for(i in r)i in o||ue(n,i,r[i],void 0,s,t.$flags$);for(i in o)ue(n,i,r[i],o[i],s,t.$flags$)},dt=(e,t,s,i)=>{let n=t.$children$[s],r=0,o,a,l;if(Ne||(Bt=!0,n.$tag$==="slot"&&(N&&i.classList.add(N+"-s"),n.$flags$|=n.$children$?2:1)),n.$text$!==null)o=n.$elm$=w.createTextNode(n.$text$);else if(n.$flags$&1)o=n.$elm$=w.createTextNode("");else{if(y||(y=n.$tag$==="svg"),o=n.$elm$=w.createElementNS(y?Ns:Ms,n.$flags$&2?"slot-fb":n.$tag$),y&&n.$tag$==="foreignObject"&&(y=!1),Ie(null,n,y),js(N)&&o["s-si"]!==N&&o.classList.add(o["s-si"]=N),n.$children$)for(r=0;r<n.$children$.length;++r)a=dt(e,n,r,o),a&&o.appendChild(a);n.$tag$==="svg"?y=!1:o.tagName==="foreignObject"&&(y=!0)}return o["s-hn"]=yt,n.$flags$&3&&(o["s-sr"]=!0,o["s-cr"]=He,o["s-sn"]=n.$name$||"",l=e&&e.$children$&&e.$children$[s],l&&l.$tag$===n.$tag$&&e.$elm$&&Q(e.$elm$,!1)),o},Q=(e,t)=>{m.$flags$|=1;const s=e.childNodes;for(let i=s.length-1;i>=0;i--){const n=s[i];n["s-hn"]!==yt&&n["s-ol"]&&(Fe(n).insertBefore(n,Gt(n)),n["s-ol"].remove(),n["s-ol"]=void 0,Bt=!0),t&&Q(n,t)}m.$flags$&=-2},ze=(e,t,s,i,n,r)=>{let o=e["s-cr"]&&e["s-cr"].parentNode||e,a;for(o.shadowRoot&&o.tagName===yt&&(o=o.shadowRoot);n<=r;++n)i[n]&&(a=dt(null,s,n,e),a&&(i[n].$elm$=a,o.insertBefore(a,Gt(t))))},Be=(e,t,s,i,n)=>{for(;t<=s;++t)(i=e[t])&&(n=i.$elm$,qe(i),lt=!0,n["s-ol"]?n["s-ol"].remove():Q(n,!0),n.remove())},Fs=(e,t,s,i)=>{let n=0,r=0,o=0,a=0,l=t.length-1,c=t[0],d=t[l],h=i.length-1,p=i[0],g=i[h],x,st;for(;n<=l&&r<=h;)if(c==null)c=t[++n];else if(d==null)d=t[--l];else if(p==null)p=i[++r];else if(g==null)g=i[--h];else if(it(c,p))M(c,p),c=t[++n],p=i[++r];else if(it(d,g))M(d,g),d=t[--l],g=i[--h];else if(it(c,g))(c.$tag$==="slot"||g.$tag$==="slot")&&Q(c.$elm$.parentNode,!1),M(c,g),e.insertBefore(c.$elm$,d.$elm$.nextSibling),c=t[++n],g=i[--h];else if(it(d,p))(c.$tag$==="slot"||g.$tag$==="slot")&&Q(d.$elm$.parentNode,!1),M(d,p),e.insertBefore(d.$elm$,c.$elm$),d=t[--l],p=i[++r];else{for(o=-1,a=n;a<=l;++a)if(t[a]&&t[a].$key$!==null&&t[a].$key$===p.$key$){o=a;break}o>=0?(st=t[o],st.$tag$!==p.$tag$?x=dt(t&&t[r],s,o,e):(M(st,p),t[o]=void 0,x=st.$elm$),p=i[++r]):(x=dt(t&&t[r],s,r,e),p=i[++r]),x&&Fe(c.$elm$).insertBefore(x,Gt(c.$elm$))}n>l?ze(e,i[h+1]==null?null:i[h+1].$elm$,s,i,r,h):r>h&&Be(t,n,l)},it=(e,t)=>e.$tag$===t.$tag$?e.$tag$==="slot"?e.$name$===t.$name$:e.$key$===t.$key$:!1,Gt=e=>e&&e["s-ol"]||e,Fe=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,M=(e,t)=>{const s=t.$elm$=e.$elm$,i=e.$children$,n=t.$children$,r=t.$tag$,o=t.$text$;let a;o===null?(y=r==="svg"?!0:r==="foreignObject"?!1:y,r==="slot"||Ie(e,t,y),i!==null&&n!==null?Fs(s,i,t,n):n!==null?(e.$text$!==null&&(s.textContent=""),ze(s,null,t,n,0,n.length-1)):i!==null&&Be(i,0,i.length-1),y&&r==="svg"&&(y=!1)):(a=s["s-cr"])?a.parentNode.textContent=o:e.$text$!==o&&(s.data=o)},We=e=>{let t=e.childNodes,s,i,n,r,o,a;for(i=0,n=t.length;i<n;i++)if(s=t[i],s.nodeType===1){if(s["s-sr"]){for(o=s["s-sn"],s.hidden=!1,r=0;r<n;r++)if(a=t[r].nodeType,t[r]["s-hn"]!==s["s-hn"]||o!==""){if(a===1&&o===t[r].getAttribute("slot")){s.hidden=!0;break}}else if(a===1||a===3&&t[r].textContent.trim()!==""){s.hidden=!0;break}}We(s)}},b=[],Ge=e=>{let t,s,i,n,r,o,a=0,l=e.childNodes,c=l.length;for(;a<c;a++){if(t=l[a],t["s-sr"]&&(s=t["s-cr"])&&s.parentNode)for(i=s.parentNode.childNodes,n=t["s-sn"],o=i.length-1;o>=0;o--)s=i[o],!s["s-cn"]&&!s["s-nr"]&&s["s-hn"]!==t["s-hn"]&&(ge(s,n)?(r=b.find(d=>d.$nodeToRelocate$===s),lt=!0,s["s-sn"]=s["s-sn"]||n,r?r.$slotRefNode$=t:b.push({$slotRefNode$:t,$nodeToRelocate$:s}),s["s-sr"]&&b.map(d=>{ge(d.$nodeToRelocate$,s["s-sn"])&&(r=b.find(h=>h.$nodeToRelocate$===s),r&&!d.$slotRefNode$&&(d.$slotRefNode$=r.$slotRefNode$))})):b.some(d=>d.$nodeToRelocate$===s)||b.push({$nodeToRelocate$:s}));t.nodeType===1&&Ge(t)}},ge=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t?!0:t==="",qe=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(qe)},Ws=(e,t)=>{const s=e.$hostElement$,i=e.$cmpMeta$,n=e.$vnode$||ct(null,null),r=Ds(t)?t:j(null,null,t);yt=s.tagName,i.$attrsToReflect$&&(r.$attrs$=r.$attrs$||{},i.$attrsToReflect$.map(([o,a])=>r.$attrs$[a]=s[o])),r.$tag$=null,r.$flags$|=4,e.$vnode$=r,r.$elm$=n.$elm$=s.shadowRoot||s,N=s["s-sc"],He=s["s-cr"],Ne=(i.$flags$&1)!==0,lt=!1,M(n,r);{if(m.$flags$|=1,Bt){Ge(r.$elm$);let o,a,l,c,d,h,p=0;for(;p<b.length;p++)o=b[p],a=o.$nodeToRelocate$,a["s-ol"]||(l=w.createTextNode(""),l["s-nr"]=a,a.parentNode.insertBefore(a["s-ol"]=l,a));for(p=0;p<b.length;p++)if(o=b[p],a=o.$nodeToRelocate$,o.$slotRefNode$){for(c=o.$slotRefNode$.parentNode,d=o.$slotRefNode$.nextSibling,l=a["s-ol"];l=l.previousSibling;)if(h=l["s-nr"],h&&h["s-sn"]===a["s-sn"]&&c===h.parentNode&&(h=h.nextSibling,!h||!h["s-nr"])){d=h;break}(!d&&c!==a.parentNode||a.nextSibling!==d)&&a!==d&&(!a["s-hn"]&&a["s-ol"]&&(a["s-hn"]=a["s-ol"].parentNode.nodeName),c.insertBefore(a,d))}else a.nodeType===1&&(a.hidden=!0)}lt&&We(r.$elm$),m.$flags$&=-2,b.length=0}},Gs=e=>e,qs=(e,t,s)=>{const i=Gs(e);return{emit:n=>Xs(i,t,{bubbles:!!(s&4),composed:!!(s&2),cancelable:!!(s&1),detail:n})}},Xs=(e,t,s)=>{const i=m.ce(t,s);return e.dispatchEvent(i),i},Ys=(e,t)=>{},Xe=(e,t)=>(e.$flags$|=16,Ys(e,e.$ancestorComponent$),pi(()=>Ks(e,t))),Ks=(e,t)=>{const s=e.$hostElement$,i=R("scheduleUpdate",e.$cmpMeta$.$tagName$),n=s;let r;return t?r=D(n,"componentWillLoad"):r=D(n,"componentWillUpdate"),r=$e(r,()=>D(n,"componentWillRender")),i(),$e(r,()=>Qs(e,n,t))},Qs=async(e,t,s)=>{const i=e.$hostElement$,n=R("update",e.$cmpMeta$.$tagName$);i["s-rc"],s&&Us(e);const r=R("render",e.$cmpMeta$.$tagName$);Zs(e,t,i),r(),n(),Js(e)},Zs=(e,t,s)=>{try{le=t,t=t.render&&t.render(),e.$flags$&=-17,e.$flags$|=2,(H.hasRenderFn||H.reflect)&&(H.vdomRender||H.reflect)&&(H.hydrateServerSide||Ws(e,t))}catch(a){J(a,e.$hostElement$)}return le=null,null},Js=e=>{const t=e.$cmpMeta$.$tagName$,s=e.$hostElement$,i=R("postUpdate",t),n=s;e.$ancestorComponent$,D(n,"componentDidRender"),e.$flags$&64?(D(n,"componentDidUpdate"),i()):(e.$flags$|=64,D(n,"componentDidLoad"),i())},D=(e,t,s)=>{if(e&&e[t])try{return e[t](s)}catch(i){J(i)}},$e=(e,t)=>e&&e.then?e.then(t):t(),Vs=(e,t)=>e!=null&&!Ft(e)?t&4?e==="false"?!1:e===""||!!e:t&2?parseFloat(e):t&1?String(e):e:e,ti=(e,t)=>_t(e).$instanceValues$.get(t),ei=(e,t,s,i)=>{const n=_t(e),r=e,o=n.$instanceValues$.get(t),a=n.$flags$,l=r;s=Vs(s,i.$members$[t][0]);const c=Number.isNaN(o)&&Number.isNaN(s);if(s!==o&&!c){n.$instanceValues$.set(t,s);{if(i.$watchers$&&a&128){const h=i.$watchers$[t];h&&h.map(p=>{try{l[p](s,o,t)}catch(g){J(g,r)}})}if((a&18)===2){if(l.componentShouldUpdate&&l.componentShouldUpdate(s,o,t)===!1)return;Xe(n,!1)}}}},si=(e,t,s)=>{if(t.$members$){e.watchers&&(t.$watchers$=e.watchers);const i=Object.entries(t.$members$),n=e.prototype;i.map(([r,[o]])=>{(o&31||o&32)&&Object.defineProperty(n,r,{get(){return ti(this,r)},set(a){ei(this,r,a,t)},configurable:!0,enumerable:!0})});{const r=new Map;n.attributeChangedCallback=function(o,a,l){m.jmp(()=>{const c=r.get(o);if(this.hasOwnProperty(c))l=this[c],delete this[c];else if(n.hasOwnProperty(c)&&typeof this[c]=="number"&&this[c]==l)return;this[c]=l===null&&typeof this[c]=="boolean"?!1:l})},e.observedAttributes=i.filter(([o,a])=>a[0]&15).map(([o,a])=>{const l=a[1]||o;return r.set(l,o),a[0]&512&&t.$attrsToReflect$.push([o,l]),l})}}return e},ii=async(e,t,s,i,n)=>{if(!(t.$flags$&32)&&(n=e.constructor,t.$flags$|=32,customElements.whenDefined(s.$tagName$).then(()=>t.$flags$|=128),n.style)){let o=n.style;typeof o!="string"&&(o=o[t.$modeName$=Hs(e)]);const a=De(s,t.$modeName$);if(!ht.has(a)){const l=R("registerStyles",s.$tagName$);Ls(a,o,!!(s.$flags$&1)),l()}}t.$ancestorComponent$,(()=>Xe(t,!0))()},ni=e=>{},ri=e=>{if(!(m.$flags$&1)){const t=_t(e),s=t.$cmpMeta$,i=R("connectedCallback",s.$tagName$);t.$flags$&1?(je(e,t,s.$listeners$),ni(t.$lazyInstance$)):(t.$flags$|=1,s.$flags$&12&&oi(e),s.$members$&&Object.entries(s.$members$).map(([n,[r]])=>{if(r&31&&e.hasOwnProperty(n)){const o=e[n];delete e[n],e[n]=o}}),ii(e,t,s)),i()}},oi=e=>{const t=e["s-cr"]=w.createComment("");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)},ai=e=>{if(!(m.$flags$&1)){const t=_t(e);t.$rmListeners$&&(t.$rmListeners$.map(s=>s()),t.$rmListeners$=void 0)}},Ye=(e,t)=>{const s={$flags$:t[0],$tagName$:t[1]};s.$members$=t[2],s.$listeners$=t[3],s.$watchers$=e.$watchers$,s.$attrsToReflect$=[];const i=e.prototype.connectedCallback,n=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__registerHost(){li(this,s)},connectedCallback(){ri(this),i&&i.call(this)},disconnectedCallback(){ai(this),n&&n.call(this)},__attachShadow(){this.attachShadow({mode:"open",delegatesFocus:!!(s.$flags$&16)})}}),e.is=s.$tagName$,si(e,s)},Ke=new WeakMap,_t=e=>Ke.get(e),li=(e,t)=>{const s={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return je(e,s,t.$listeners$),Ke.set(e,s)},me=(e,t)=>t in e,J=(e,t)=>(0,console.error)(e,t),ht=new Map,ci=[],ve=[],Qe=[],di=(e,t)=>s=>{e.push(s),Rt||(Rt=!0,t&&m.$flags$&4?hi(Ut):m.raf(Ut))},ye=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(s){J(s)}e.length=0},Ut=()=>{ye(ve),ye(Qe),(Rt=ve.length>0)&&m.raf(Ut)},hi=e=>Cs().then(e),pi=di(Qe,!0),ui=(e={})=>{const{content:t="",title:s,attributes:i=[]}=e;let n="",r=[{name:"xmlns",value:"http://www.w3.org/2000/svg"},{name:"fill",value:"currentColor"},...i];return s&&(n=`<title>${s}</title>`),`<svg ${r.map(a=>`${a.name}="${a.value}"`).join(" ")}>${n}${t}</svg>`},fi=e=>e.replace(/<(\/?)svg([^>]*)>/g,"").trim();function gi(e){return`${e.getFullYear()}.${e.getMonth()+1}`}class $i{constructor(t){this.voca_component=t,this.voca_added=gi(new Date)}}const mi="telia-vst{display:none}",vi=Ye(class extends Me{constructor(){super(),this.__registerHost(),this.vocaInternalUStats=qs(this,"vocaInternalUStats",7)}connectedCallback(){this.vocaInternalUStats.emit(new $i(this.dataTrackingId))}render(){return j(Wt,null)}static get style(){return mi}},[0,"telia-vst",{dataTrackingId:[1,"data-tracking-id"]}]);function Ze(){if(typeof customElements>"u")return;["telia-vst"].forEach(t=>{switch(t){case"telia-vst":customElements.get(t)||customElements.define(t,vi);break}})}Ze();function Ht(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{vocadsIcons:void 0,vocadsIconsRegistered:!1}}function yi(){if(typeof Ht().vocadsIcons!==void 0)return Ht().vocadsIcons}function bi(){return Ht().vocadsIconsRegistered}const _i=".telia-icon{display:inline-block}.telia-icon__container{display:block;height:inherit}.telia-icon svg{display:block}.telia-icon--sm{height:calc(1.6rem * var(--voca-rem-multiplier));min-width:calc(1.6rem * var(--voca-rem-multiplier));width:calc(1.6rem * var(--voca-rem-multiplier))}.telia-icon--md{height:calc(2.4rem * var(--voca-rem-multiplier));min-width:calc(2.4rem * var(--voca-rem-multiplier));width:calc(2.4rem * var(--voca-rem-multiplier))}.telia-icon--lg{height:calc(3.2rem * var(--voca-rem-multiplier));min-width:calc(3.2rem * var(--voca-rem-multiplier));width:calc(3.2rem * var(--voca-rem-multiplier))}",xi=Ye(class extends Me{constructor(){super(),this.__registerHost(),this.size="md",this.allyTitle=null,this.dataTrackingId="telia-icon"}getSvgString(){if(this.svg)return this.svg;if(bi()&&this.name){const e=yi();return e[this.name]?e[this.name].svg:""}return this.name&&console.warn(this.name,"Icons bundle is not registered and will not be rendered. Check if you have registered icons bundle or use svg property"),""}render(){let e=this.getSvgString(),t=[{name:"viewBox",value:"0 0 64 64"}];this.allyTitle?t=[...t,{name:"role",value:"img"}]:t=[...t,{name:"aria-hidden",value:"true"}];const s=ui({content:fi(e),attributes:t,title:this.allyTitle});return j(Wt,{class:`telia-icon telia-icon--${this.size}`},j("span",{"aria-label":this.allyTitle,class:"telia-icon__container",innerHTML:s}),j("telia-vst",{dataTrackingId:this.dataTrackingId}))}static get style(){return _i}},[0,"telia-icon",{name:[1],svg:[1],size:[1],allyTitle:[1,"ally-title"],dataTestid:[1,"data-testid"]}]);function wi(){if(typeof customElements>"u")return;["telia-icon","telia-vst"].forEach(t=>{switch(t){case"telia-icon":customElements.get(t)||customElements.define(t,xi);break;case"telia-vst":customElements.get(t)||Ze();break}})}wi();/**
20
20
  * @license
21
21
  * Copyright 2017 Google LLC
22
22
  * SPDX-License-Identifier: BSD-3-Clause
@@ -24,7 +24,7 @@
24
24
  * @license
25
25
  * Copyright 2017 Google LLC
26
26
  * SPDX-License-Identifier: BSD-3-Clause
27
- */const Ai={attribute:!0,type:String,converter:ot,reflect:!1,hasChanged:Dt},Si=(e=Ai,t,s)=>{const{kind:i,metadata:n}=s;let r=globalThis.litPropertyMetadata.get(n);if(r===void 0&&globalThis.litPropertyMetadata.set(n,r=new Map),r.set(s.name,e),i==="accessor"){const{name:o}=s;return{set(a){const l=t.get.call(this);t.set.call(this,a),this.requestUpdate(o,l,e)},init(a){return a!==void 0&&this.C(o,void 0,e),a}}}if(i==="setter"){const{name:o}=s;return function(a){const l=this[o];t.call(this,a),this.requestUpdate(o,l,e)}}throw Error("Unsupported decorator location: "+i)};function $(e){return(t,s)=>typeof s=="object"?Si(e,t,s):((i,n,r)=>{const o=n.hasOwnProperty(r);return n.constructor.createProperty(r,o?{...i,wrapped:!0}:i),o?Object.getOwnPropertyDescriptor(n,r):void 0})(e,t,s)}/**
27
+ */const Ai={attribute:!0,type:String,converter:ot,reflect:!1,hasChanged:zt},Si=(e=Ai,t,s)=>{const{kind:i,metadata:n}=s;let r=globalThis.litPropertyMetadata.get(n);if(r===void 0&&globalThis.litPropertyMetadata.set(n,r=new Map),r.set(s.name,e),i==="accessor"){const{name:o}=s;return{set(a){const l=t.get.call(this);t.set.call(this,a),this.requestUpdate(o,l,e)},init(a){return a!==void 0&&this.C(o,void 0,e),a}}}if(i==="setter"){const{name:o}=s;return function(a){const l=this[o];t.call(this,a),this.requestUpdate(o,l,e)}}throw Error("Unsupported decorator location: "+i)};function $(e){return(t,s)=>typeof s=="object"?Si(e,t,s):((i,n,r)=>{const o=n.hasOwnProperty(r);return n.constructor.createProperty(r,o?{...i,wrapped:!0}:i),o?Object.getOwnPropertyDescriptor(n,r):void 0})(e,t,s)}/**
28
28
  * @license
29
29
  * Copyright 2017 Google LLC
30
30
  * SPDX-License-Identifier: BSD-3-Clause
@@ -36,19 +36,19 @@
36
36
  * @license
37
37
  * Copyright 2017 Google LLC
38
38
  * SPDX-License-Identifier: BSD-3-Clause
39
- */const bt={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},_t=e=>(...t)=>({_$litDirective$:e,values:t});let Wt=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,s,i){this._$Ct=t,this._$AM=s,this._$Ci=i}_$AS(t,s){return this.update(t,s)}update(t,s){return this.render(...s)}};/**
39
+ */const xt={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},wt=e=>(...t)=>({_$litDirective$:e,values:t});let qt=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,s,i){this._$Ct=t,this._$AM=s,this._$Ci=i}_$AS(t,s){return this.update(t,s)}update(t,s){return this.render(...s)}};/**
40
40
  * @license
41
41
  * Copyright 2017 Google LLC
42
42
  * SPDX-License-Identifier: BSD-3-Clause
43
- */const q=(e,t)=>{var i;const s=e._$AN;if(s===void 0)return!1;for(const n of s)(i=n._$AO)==null||i.call(n,t,!1),q(n,t);return!0},pt=e=>{let t,s;do{if((t=e._$AM)===void 0)break;s=t._$AN,s.delete(e),e=t}while((s==null?void 0:s.size)===0)},Je=e=>{for(let t;t=e._$AM;e=t){let s=t._$AN;if(s===void 0)t._$AN=s=new Set;else if(s.has(e))break;s.add(e),ki(t)}};function Ci(e){this._$AN!==void 0?(pt(this),this._$AM=e,Je(this)):this._$AM=e}function Ti(e,t=!1,s=0){const i=this._$AH,n=this._$AN;if(n!==void 0&&n.size!==0)if(t)if(Array.isArray(i))for(let r=s;r<i.length;r++)q(i[r],!1),pt(i[r]);else i!=null&&(q(i,!1),pt(i));else q(this,e)}const ki=e=>{e.type==bt.CHILD&&(e._$AP??(e._$AP=Ti),e._$AQ??(e._$AQ=Ci))};let Ve=class extends Wt{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,s,i){super._$AT(t,s,i),Je(this),this.isConnected=t._$AU}_$AO(t,s=!0){var i,n;t!==this.isConnected&&(this.isConnected=t,t?(i=this.reconnected)==null||i.call(this):(n=this.disconnected)==null||n.call(this)),s&&(q(this,t),pt(this))}setValue(t){if(Ei(this._$Ct))this._$Ct._$AI(t,this);else{const s=[...this._$Ct._$AH];s[this._$Ci]=t,this._$Ct._$AI(s,this,0)}}disconnected(){}reconnected(){}};/**
43
+ */const q=(e,t)=>{var i;const s=e._$AN;if(s===void 0)return!1;for(const n of s)(i=n._$AO)==null||i.call(n,t,!1),q(n,t);return!0},pt=e=>{let t,s;do{if((t=e._$AM)===void 0)break;s=t._$AN,s.delete(e),e=t}while((s==null?void 0:s.size)===0)},Je=e=>{for(let t;t=e._$AM;e=t){let s=t._$AN;if(s===void 0)t._$AN=s=new Set;else if(s.has(e))break;s.add(e),Ti(t)}};function Ci(e){this._$AN!==void 0?(pt(this),this._$AM=e,Je(this)):this._$AM=e}function ki(e,t=!1,s=0){const i=this._$AH,n=this._$AN;if(n!==void 0&&n.size!==0)if(t)if(Array.isArray(i))for(let r=s;r<i.length;r++)q(i[r],!1),pt(i[r]);else i!=null&&(q(i,!1),pt(i));else q(this,e)}const Ti=e=>{e.type==xt.CHILD&&(e._$AP??(e._$AP=ki),e._$AQ??(e._$AQ=Ci))};let Ve=class extends qt{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,s,i){super._$AT(t,s,i),Je(this),this.isConnected=t._$AU}_$AO(t,s=!0){var i,n;t!==this.isConnected&&(this.isConnected=t,t?(i=this.reconnected)==null||i.call(this):(n=this.disconnected)==null||n.call(this)),s&&(q(this,t),pt(this))}setValue(t){if(Ei(this._$Ct))this._$Ct._$AI(t,this);else{const s=[...this._$Ct._$AH];s[this._$Ci]=t,this._$Ct._$AI(s,this,0)}}disconnected(){}reconnected(){}};/**
44
44
  * @license
45
45
  * Copyright 2020 Google LLC
46
46
  * SPDX-License-Identifier: BSD-3-Clause
47
- */const Gt=()=>new Oi;class Oi{}const Tt=new WeakMap,qt=_t(class extends Ve{render(e){return u}update(e,[t]){var i;const s=t!==this.G;return s&&this.G!==void 0&&this.ot(void 0),(s||this.rt!==this.lt)&&(this.G=t,this.ct=(i=e.options)==null?void 0:i.host,this.ot(this.lt=e.element)),u}ot(e){if(typeof this.G=="function"){const t=this.ct??globalThis;let s=Tt.get(t);s===void 0&&(s=new WeakMap,Tt.set(t,s)),s.get(this.G)!==void 0&&this.G.call(this.ct,void 0),s.set(this.G,e),e!==void 0&&this.G.call(this.ct,e)}else this.G.value=e}get rt(){var e,t;return typeof this.G=="function"?(e=Tt.get(this.ct??globalThis))==null?void 0:e.get(this.G):(t=this.G)==null?void 0:t.value}disconnected(){this.rt===this.lt&&this.ot(void 0)}reconnected(){this.ot(this.lt)}});/**
47
+ */const ut=()=>new Oi;class Oi{}const Ot=new WeakMap,ft=wt(class extends Ve{render(e){return u}update(e,[t]){var i;const s=t!==this.G;return s&&this.G!==void 0&&this.ot(void 0),(s||this.rt!==this.lt)&&(this.G=t,this.ct=(i=e.options)==null?void 0:i.host,this.ot(this.lt=e.element)),u}ot(e){if(typeof this.G=="function"){const t=this.ct??globalThis;let s=Ot.get(t);s===void 0&&(s=new WeakMap,Ot.set(t,s)),s.get(this.G)!==void 0&&this.G.call(this.ct,void 0),s.set(this.G,e),e!==void 0&&this.G.call(this.ct,e)}else this.G.value=e}get rt(){var e,t;return typeof this.G=="function"?(e=Ot.get(this.ct??globalThis))==null?void 0:e.get(this.G):(t=this.G)==null?void 0:t.value}disconnected(){this.rt===this.lt&&this.ot(void 0)}reconnected(){this.ot(this.lt)}});/**
48
48
  * @license
49
49
  * Copyright 2018 Google LLC
50
50
  * SPDX-License-Identifier: BSD-3-Clause
51
- */const Yt=_t(class extends Wt{constructor(e){var t;if(super(e),e.type!==bt.ATTRIBUTE||e.name!=="class"||((t=e.strings)==null?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter(t=>e[t]).join(" ")+" "}update(e,[t]){var i,n;if(this.it===void 0){this.it=new Set,e.strings!==void 0&&(this.st=new Set(e.strings.join(" ").split(/\s/).filter(r=>r!=="")));for(const r in t)t[r]&&!((i=this.st)!=null&&i.has(r))&&this.it.add(r);return this.render(t)}const s=e.element.classList;for(const r of this.it)r in t||(s.remove(r),this.it.delete(r));for(const r in t){const o=!!t[r];o===this.it.has(r)||(n=this.st)!=null&&n.has(r)||(o?(s.add(r),this.it.add(r)):(s.remove(r),this.it.delete(r)))}return C}}),Pi=new WeakMap;let be=0;const kt=new Map,_e=new WeakSet,xe=()=>new Promise(e=>requestAnimationFrame(e)),Li=[{transform:"translateX(100%) scale(0)",opacity:0}],Ui=[{opacity:0}],we=[{opacity:0},{opacity:1}],Ae=(e,t)=>{const s=e-t;return s===0?void 0:s},Se=(e,t)=>{const s=e/t;return s===1?void 0:s},Ot={left:(e,t)=>{const s=Ae(e,t);return{value:s,transform:s==null||isNaN(s)?void 0:`translateX(${s}px)`}},top:(e,t)=>{const s=Ae(e,t);return{value:s,transform:s==null||isNaN(s)?void 0:`translateY(${s}px)`}},width:(e,t)=>{let s;t===0&&(t=1,s={width:"1px"});const i=Se(e,t);return{value:i,overrideFrom:s,transform:i==null||isNaN(i)?void 0:`scaleX(${i})`}},height:(e,t)=>{let s;t===0&&(t=1,s={height:"1px"});const i=Se(e,t);return{value:i,overrideFrom:s,transform:i==null||isNaN(i)?void 0:`scaleY(${i})`}}},Ri={duration:333,easing:"ease-in-out"},Hi=["left","top","width","height","opacity","color","background"],Ee=new WeakMap;class Ni extends Ve{constructor(t){if(super(t),this.t=null,this.i=null,this.o=!0,this.shouldLog=!1,t.type===bt.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(s=>{this.h=s})}async resolveFinished(){var t;(t=this.h)==null||t.call(this),this.h=void 0}render(t){return u}getController(){return Pi.get(this.l)}isDisabled(){var t;return this.options.disabled||((t=this.getController())==null?void 0:t.disabled)}update(t,[s]){var n;const i=this.l===void 0;return i&&(this.l=(n=t.options)==null?void 0:n.host,this.l.addController(this),this.element=t.element,Ee.set(this.element,this)),this.optionsOrCallback=s,(i||typeof s!="function")&&this.u(s),this.render(s)}u(t){t=t??{};const s=this.getController();s!==void 0&&((t={...s.defaultOptions,...t}).keyframeOptions={...s.defaultOptions.keyframeOptions,...t.keyframeOptions}),t.properties??(t.properties=Hi),this.options=t}p(){const t={},s=this.element.getBoundingClientRect(),i=getComputedStyle(this.element);return this.options.properties.forEach(n=>{const r=s[n]??(Ot[n]?void 0:i[n]),o=Number(r);t[n]=isNaN(o)?r+"":o}),t}m(){let t,s=!0;return this.options.guard&&(t=this.options.guard(),s=((i,n)=>{if(Array.isArray(i)){if(Array.isArray(n)&&n.length===i.length&&i.every((r,o)=>r===n[o]))return!1}else if(n===i)return!1;return!0})(t,this.v)),this.o=this.l.hasUpdated&&!this.isDisabled()&&!this.isAnimating()&&s&&this.element.isConnected,this.o&&(this.v=Array.isArray(t)?Array.from(t):t),this.o}hostUpdate(){typeof this.optionsOrCallback=="function"&&this.u(this.optionsOrCallback()),this.m()&&(this.g=this.p(),this.t=this.t??this.element.parentNode,this.i=this.element.nextSibling)}async hostUpdated(){if(!this.o||!this.element.isConnected||this.options.skipInitial&&!this.isHostRendered)return;let t;this.prepare(),await xe;const s=this._(),i=this.A(this.options.keyframeOptions,s),n=this.p();if(this.g!==void 0){const{from:r,to:o}=this.O(this.g,n,s);this.log("measured",[this.g,n,r,o]),t=this.calculateKeyframes(r,o)}else{const r=kt.get(this.options.inId);if(r){kt.delete(this.options.inId);const{from:o,to:a}=this.O(r,n,s);t=this.calculateKeyframes(o,a),t=this.options.in?[{...this.options.in[0],...t[0]},...this.options.in.slice(1),t[1]]:t,be++,t.forEach(l=>l.zIndex=be)}else this.options.in&&(t=[...this.options.in,{}])}this.animate(t,i)}resetStyles(){this.j!==void 0&&(this.element.setAttribute("style",this.j??""),this.j=void 0)}commitStyles(){var t,s;this.j=this.element.getAttribute("style"),(t=this.webAnimation)==null||t.commitStyles(),(s=this.webAnimation)==null||s.cancel()}reconnected(){}async disconnected(){var s;if(!this.o||(this.options.id!==void 0&&kt.set(this.options.id,this.g),this.options.out===void 0))return;if(this.prepare(),await xe(),(s=this.t)==null?void 0:s.isConnected){const i=this.i&&this.i.parentNode===this.t?this.i:null;if(this.t.insertBefore(this.element,i),this.options.stabilizeOut){const n=this.p();this.log("stabilizing out");const r=this.g.left-n.left,o=this.g.top-n.top;getComputedStyle(this.element).position!=="static"||r===0&&o===0||(this.element.style.position="relative"),r!==0&&(this.element.style.left=r+"px"),o!==0&&(this.element.style.top=o+"px")}}const t=this.A(this.options.keyframeOptions);await this.animate(this.options.out,t),this.element.remove()}prepare(){this.createFinished()}start(){var t,s;(s=(t=this.options).onStart)==null||s.call(t,this)}didFinish(t){var s,i;t&&((i=(s=this.options).onComplete)==null||i.call(s,this)),this.g=void 0,this.animatingProperties=void 0,this.frames=void 0,this.resolveFinished()}_(){const t=[];for(let s=this.element.parentNode;s;s=s==null?void 0:s.parentNode){const i=Ee.get(s);i&&!i.isDisabled()&&i&&t.push(i)}return t}get isHostRendered(){const t=_e.has(this.l);return t||this.l.updateComplete.then(()=>{_e.add(this.l)}),t}A(t,s=this._()){const i={...Ri};return s.forEach(n=>Object.assign(i,n.options.keyframeOptions)),Object.assign(i,t),i}O(t,s,i){t={...t},s={...s};const n=i.map(a=>a.animatingProperties).filter(a=>a!==void 0);let r=1,o=1;return n!==void 0&&(n.forEach(a=>{a.width&&(r/=a.width),a.height&&(o/=a.height)}),t.left!==void 0&&s.left!==void 0&&(t.left=r*t.left,s.left=r*s.left),t.top!==void 0&&s.top!==void 0&&(t.top=o*t.top,s.top=o*s.top)),{from:t,to:s}}calculateKeyframes(t,s,i=!1){const n={},r={};let o=!1;const a={};for(const l in s){const c=t[l],d=s[l];if(l in Ot){const h=Ot[l];if(c===void 0||d===void 0)continue;const p=h(c,d);p.transform!==void 0&&(a[l]=p.value,o=!0,n.transform=`${n.transform??""} ${p.transform}`,p.overrideFrom!==void 0&&Object.assign(n,p.overrideFrom))}else c!==d&&c!==void 0&&d!==void 0&&(o=!0,n[l]=c,r[l]=d)}return n.transformOrigin=r.transformOrigin=i?"center center":"top left",this.animatingProperties=a,o?[n,r]:void 0}async animate(t,s=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,s]),i=!0,this.webAnimation=this.element.animate(t,s);const n=this.getController();n==null||n.add(this);try{await this.webAnimation.finished}catch{}n==null||n.remove(this)}return this.didFinish(i),i}isAnimating(){var t,s;return((t=this.webAnimation)==null?void 0:t.playState)==="running"||((s=this.webAnimation)==null?void 0:s.pending)}log(t,s){this.shouldLog&&!this.isDisabled()&&console.log(t,this.options.id,s)}}const Rt=_t(Ni),nt=(e,t,s)=>{e&&s.style.setProperty(t,e)},ts=(e,t)=>{var s,i,n,r;nt((s=e.colors)==null?void 0:s.primaryBackground,"--primary-background",t),nt((i=e.colors)==null?void 0:i.textOnPrimaryBackground,"--text-on-primary-background",t),nt((n=e.colors)==null?void 0:n.secondaryBackground,"--secondary-background",t),nt((r=e.colors)==null?void 0:r.textOnSecondaryBackground,"--text-on-secondary-background",t)};var Mi=Object.defineProperty,ji=Object.getOwnPropertyDescriptor,tt=(e,t,s,i)=>{for(var n=i>1?void 0:i?ji(t,s):t,r=e.length-1,o;r>=0;r--)(o=e[r])&&(n=(i?o(t,s,n):o(n))||n);return i&&n&&Mi(t,s,n),n};class T extends v{constructor(){super(...arguments),this.active=!1,this.loaded=!1,this.offset=0,this.buttonRef=Gt()}async connectedCallback(){super.connectedCallback(),this.icon=await this._renderSymbol(),this.loaded=!0,this._applyBranding(),this.offset>0&&this.buttonRef.value&&(this.buttonRef.value.style.right=`calc(${this.offset}px + 20px)`)}_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.application.hide()}_applyBranding(){var t;(t=this.application)!=null&&t.settings&&ts(this.application.settings.branding,this)}async _renderSymbol(){var a,l,c;const t=(a=this.application)==null?void 0:a.branding(),s=(l=t==null?void 0:t.graphics)==null?void 0:l.trigger;if(s)return f` <img src=${s} class="trigger-icon" alt="" /> `;const i=(c=this.application)==null?void 0:c.triggerIcon;if(!i)return u;const n=async d=>await Promise.resolve().then(()=>require("./index-364c669e.js")).then(p=>p[d]),{type:r,content:o}=i;switch(r){case"Telia":{const d=await n(o);return d?f`<telia-icon
51
+ */const Xt=wt(class extends qt{constructor(e){var t;if(super(e),e.type!==xt.ATTRIBUTE||e.name!=="class"||((t=e.strings)==null?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter(t=>e[t]).join(" ")+" "}update(e,[t]){var i,n;if(this.it===void 0){this.it=new Set,e.strings!==void 0&&(this.st=new Set(e.strings.join(" ").split(/\s/).filter(r=>r!=="")));for(const r in t)t[r]&&!((i=this.st)!=null&&i.has(r))&&this.it.add(r);return this.render(t)}const s=e.element.classList;for(const r of this.it)r in t||(s.remove(r),this.it.delete(r));for(const r in t){const o=!!t[r];o===this.it.has(r)||(n=this.st)!=null&&n.has(r)||(o?(s.add(r),this.it.add(r)):(s.remove(r),this.it.delete(r)))}return C}}),Pi=new WeakMap;let be=0;const Pt=new Map,_e=new WeakSet,xe=()=>new Promise(e=>requestAnimationFrame(e)),Li=[{transform:"translateX(100%) scale(0)",opacity:0}],Ri=[{opacity:0}],we=[{opacity:0},{opacity:1}],Ae=(e,t)=>{const s=e-t;return s===0?void 0:s},Se=(e,t)=>{const s=e/t;return s===1?void 0:s},Lt={left:(e,t)=>{const s=Ae(e,t);return{value:s,transform:s==null||isNaN(s)?void 0:`translateX(${s}px)`}},top:(e,t)=>{const s=Ae(e,t);return{value:s,transform:s==null||isNaN(s)?void 0:`translateY(${s}px)`}},width:(e,t)=>{let s;t===0&&(t=1,s={width:"1px"});const i=Se(e,t);return{value:i,overrideFrom:s,transform:i==null||isNaN(i)?void 0:`scaleX(${i})`}},height:(e,t)=>{let s;t===0&&(t=1,s={height:"1px"});const i=Se(e,t);return{value:i,overrideFrom:s,transform:i==null||isNaN(i)?void 0:`scaleY(${i})`}}},Ui={duration:333,easing:"ease-in-out"},Hi=["left","top","width","height","opacity","color","background"],Ee=new WeakMap;class Ni extends Ve{constructor(t){if(super(t),this.t=null,this.i=null,this.o=!0,this.shouldLog=!1,t.type===xt.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(s=>{this.h=s})}async resolveFinished(){var t;(t=this.h)==null||t.call(this),this.h=void 0}render(t){return u}getController(){return Pi.get(this.l)}isDisabled(){var t;return this.options.disabled||((t=this.getController())==null?void 0:t.disabled)}update(t,[s]){var n;const i=this.l===void 0;return i&&(this.l=(n=t.options)==null?void 0:n.host,this.l.addController(this),this.element=t.element,Ee.set(this.element,this)),this.optionsOrCallback=s,(i||typeof s!="function")&&this.u(s),this.render(s)}u(t){t=t??{};const s=this.getController();s!==void 0&&((t={...s.defaultOptions,...t}).keyframeOptions={...s.defaultOptions.keyframeOptions,...t.keyframeOptions}),t.properties??(t.properties=Hi),this.options=t}p(){const t={},s=this.element.getBoundingClientRect(),i=getComputedStyle(this.element);return this.options.properties.forEach(n=>{const r=s[n]??(Lt[n]?void 0:i[n]),o=Number(r);t[n]=isNaN(o)?r+"":o}),t}m(){let t,s=!0;return this.options.guard&&(t=this.options.guard(),s=((i,n)=>{if(Array.isArray(i)){if(Array.isArray(n)&&n.length===i.length&&i.every((r,o)=>r===n[o]))return!1}else if(n===i)return!1;return!0})(t,this.v)),this.o=this.l.hasUpdated&&!this.isDisabled()&&!this.isAnimating()&&s&&this.element.isConnected,this.o&&(this.v=Array.isArray(t)?Array.from(t):t),this.o}hostUpdate(){typeof this.optionsOrCallback=="function"&&this.u(this.optionsOrCallback()),this.m()&&(this.g=this.p(),this.t=this.t??this.element.parentNode,this.i=this.element.nextSibling)}async hostUpdated(){if(!this.o||!this.element.isConnected||this.options.skipInitial&&!this.isHostRendered)return;let t;this.prepare(),await xe;const s=this._(),i=this.A(this.options.keyframeOptions,s),n=this.p();if(this.g!==void 0){const{from:r,to:o}=this.O(this.g,n,s);this.log("measured",[this.g,n,r,o]),t=this.calculateKeyframes(r,o)}else{const r=Pt.get(this.options.inId);if(r){Pt.delete(this.options.inId);const{from:o,to:a}=this.O(r,n,s);t=this.calculateKeyframes(o,a),t=this.options.in?[{...this.options.in[0],...t[0]},...this.options.in.slice(1),t[1]]:t,be++,t.forEach(l=>l.zIndex=be)}else this.options.in&&(t=[...this.options.in,{}])}this.animate(t,i)}resetStyles(){this.j!==void 0&&(this.element.setAttribute("style",this.j??""),this.j=void 0)}commitStyles(){var t,s;this.j=this.element.getAttribute("style"),(t=this.webAnimation)==null||t.commitStyles(),(s=this.webAnimation)==null||s.cancel()}reconnected(){}async disconnected(){var s;if(!this.o||(this.options.id!==void 0&&Pt.set(this.options.id,this.g),this.options.out===void 0))return;if(this.prepare(),await xe(),(s=this.t)==null?void 0:s.isConnected){const i=this.i&&this.i.parentNode===this.t?this.i:null;if(this.t.insertBefore(this.element,i),this.options.stabilizeOut){const n=this.p();this.log("stabilizing out");const r=this.g.left-n.left,o=this.g.top-n.top;getComputedStyle(this.element).position!=="static"||r===0&&o===0||(this.element.style.position="relative"),r!==0&&(this.element.style.left=r+"px"),o!==0&&(this.element.style.top=o+"px")}}const t=this.A(this.options.keyframeOptions);await this.animate(this.options.out,t),this.element.remove()}prepare(){this.createFinished()}start(){var t,s;(s=(t=this.options).onStart)==null||s.call(t,this)}didFinish(t){var s,i;t&&((i=(s=this.options).onComplete)==null||i.call(s,this)),this.g=void 0,this.animatingProperties=void 0,this.frames=void 0,this.resolveFinished()}_(){const t=[];for(let s=this.element.parentNode;s;s=s==null?void 0:s.parentNode){const i=Ee.get(s);i&&!i.isDisabled()&&i&&t.push(i)}return t}get isHostRendered(){const t=_e.has(this.l);return t||this.l.updateComplete.then(()=>{_e.add(this.l)}),t}A(t,s=this._()){const i={...Ui};return s.forEach(n=>Object.assign(i,n.options.keyframeOptions)),Object.assign(i,t),i}O(t,s,i){t={...t},s={...s};const n=i.map(a=>a.animatingProperties).filter(a=>a!==void 0);let r=1,o=1;return n!==void 0&&(n.forEach(a=>{a.width&&(r/=a.width),a.height&&(o/=a.height)}),t.left!==void 0&&s.left!==void 0&&(t.left=r*t.left,s.left=r*s.left),t.top!==void 0&&s.top!==void 0&&(t.top=o*t.top,s.top=o*s.top)),{from:t,to:s}}calculateKeyframes(t,s,i=!1){const n={},r={};let o=!1;const a={};for(const l in s){const c=t[l],d=s[l];if(l in Lt){const h=Lt[l];if(c===void 0||d===void 0)continue;const p=h(c,d);p.transform!==void 0&&(a[l]=p.value,o=!0,n.transform=`${n.transform??""} ${p.transform}`,p.overrideFrom!==void 0&&Object.assign(n,p.overrideFrom))}else c!==d&&c!==void 0&&d!==void 0&&(o=!0,n[l]=c,r[l]=d)}return n.transformOrigin=r.transformOrigin=i?"center center":"top left",this.animatingProperties=a,o?[n,r]:void 0}async animate(t,s=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,s]),i=!0,this.webAnimation=this.element.animate(t,s);const n=this.getController();n==null||n.add(this);try{await this.webAnimation.finished}catch{}n==null||n.remove(this)}return this.didFinish(i),i}isAnimating(){var t,s;return((t=this.webAnimation)==null?void 0:t.playState)==="running"||((s=this.webAnimation)==null?void 0:s.pending)}log(t,s){this.shouldLog&&!this.isDisabled()&&console.log(t,this.options.id,s)}}const Nt=wt(Ni),nt=(e,t,s)=>{e&&s.style.setProperty(t,e)},ts=(e,t)=>{var s,i,n,r;nt((s=e.colors)==null?void 0:s.primaryBackground,"--primary-background",t),nt((i=e.colors)==null?void 0:i.textOnPrimaryBackground,"--text-on-primary-background",t),nt((n=e.colors)==null?void 0:n.secondaryBackground,"--secondary-background",t),nt((r=e.colors)==null?void 0:r.textOnSecondaryBackground,"--text-on-secondary-background",t)};var Mi=Object.defineProperty,ji=Object.getOwnPropertyDescriptor,tt=(e,t,s,i)=>{for(var n=i>1?void 0:i?ji(t,s):t,r=e.length-1,o;r>=0;r--)(o=e[r])&&(n=(i?o(t,s,n):o(n))||n);return i&&n&&Mi(t,s,n),n};class k extends v{constructor(){super(...arguments),this.active=!1,this.loaded=!1,this.offset=0,this.buttonRef=ut()}async connectedCallback(){super.connectedCallback(),this.icon=await this._renderSymbol(),this.loaded=!0,this._applyBranding(),this.offset>0&&this.buttonRef.value&&(this.buttonRef.value.style.right=`calc(${this.offset}px + 20px)`)}_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.application.hide()}_applyBranding(){var t;(t=this.application)!=null&&t.settings&&ts(this.application.settings.branding,this)}async _renderSymbol(){var a,l,c;const t=(a=this.application)==null?void 0:a.branding(),s=(l=t==null?void 0:t.graphics)==null?void 0:l.trigger;if(s)return f` <img src=${s} class="trigger-icon" alt="" /> `;const i=(c=this.application)==null?void 0:c.triggerIcon;if(!i)return u;const n=async d=>await Promise.resolve().then(()=>require("./index-0173d575.js")).then(p=>p[d]),{type:r,content:o}=i;switch(r){case"Telia":{const d=await n(o);return d?f`<telia-icon
52
52
  class="trigger-icon"
53
53
  svg=${d.svg}
54
54
  size="lg"
@@ -57,16 +57,16 @@
57
57
  <button
58
58
  class="trigger-label"
59
59
  @click=${this._toggleActive}
60
- ${Rt({keyframeOptions:{},in:Li,stabilizeOut:!0,skipInitial:!1})}
60
+ ${Nt({keyframeOptions:{},in:Li,stabilizeOut:!0,skipInitial:!1})}
61
61
  >
62
62
  ${this.application.settings.branding.other.buttonLabelText}
63
63
  </button>
64
64
  `:u}
65
65
 
66
66
  <button
67
- class=${Yt({trigger:!0,active:this.active,rendered:this.loaded})}
67
+ class=${Xt({trigger:!0,active:this.active,rendered:this.loaded})}
68
68
  @click=${this._toggleActive}
69
- ${qt(this.buttonRef)}
69
+ ${ft(this.buttonRef)}
70
70
  >
71
71
  ${this.icon}
72
72
  <span class="trigger-close">
@@ -97,7 +97,7 @@
97
97
  </svg>
98
98
  </span>
99
99
  </button>
100
- </div>`}}T.styles=[_`
100
+ </div>`}}k.styles=[_`
101
101
  :host {
102
102
  --voca-rem-multiplier: 0.625;
103
103
  --trigger-label-bg: #f5e0ff;
@@ -204,7 +204,7 @@
204
204
  .trigger-label:hover {
205
205
  opacity: 0.8;
206
206
  }
207
- `];tt([$({attribute:!1})],T.prototype,"application",2);tt([A()],T.prototype,"active",2);tt([A()],T.prototype,"loaded",2);tt([A()],T.prototype,"icon",2);tt([A()],T.prototype,"offset",2);var Di=Object.defineProperty,Ii=Object.getOwnPropertyDescriptor,O=(e,t,s,i)=>{for(var n=i>1?void 0:i?Ii(t,s):t,r=e.length-1,o;r>=0;r--)(o=e[r])&&(n=(i?o(t,s,n):o(n))||n);return i&&n&&Di(t,s,n),n};const es=e=>{class t extends e{constructor(){super(...arguments),this.properties={},this.context={},this.layout={},this.nodes=[]}writeProperties(i){this.properties=i}writeLayout(i){this.layout=i}writeContext(i){this.context=i}addChild(i){i.parent=this,this.nodes.push(i)}connectedCallback(){super.connectedCallback(),this.renderRoot.host.style.setProperty("--width",this.layout.size==="full"?"var(--columns, 1)":`min(${this.layout.size||"var(--columns)"}, var(--columns))`)}}return t.styles=[_`
207
+ `];tt([$({attribute:!1})],k.prototype,"application",2);tt([A()],k.prototype,"active",2);tt([A()],k.prototype,"loaded",2);tt([A()],k.prototype,"icon",2);tt([A()],k.prototype,"offset",2);var Di=Object.defineProperty,Ii=Object.getOwnPropertyDescriptor,O=(e,t,s,i)=>{for(var n=i>1?void 0:i?Ii(t,s):t,r=e.length-1,o;r>=0;r--)(o=e[r])&&(n=(i?o(t,s,n):o(n))||n);return i&&n&&Di(t,s,n),n};const es=e=>{class t extends e{constructor(){super(...arguments),this.properties={},this.context={},this.layout={},this.nodes=[]}writeProperties(i){this.properties=i}writeLayout(i){this.layout=i}writeContext(i){this.context=i}addChild(i){i.parent=this,this.nodes.push(i)}connectedCallback(){super.connectedCallback(),this.renderRoot.host.style.setProperty("--width",this.layout.size==="full"?"var(--columns, 1)":`min(${this.layout.size||"var(--columns)"}, var(--columns))`)}}return t.styles=[_`
208
208
  :host {
209
209
  font-family: var(--font-family);
210
210
  grid-column: span var(--width);
@@ -224,9 +224,9 @@
224
224
  * @license
225
225
  * Copyright 2021 Google LLC
226
226
  * SPDX-License-Identifier: BSD-3-Clause
227
- */function*zi(e,t){if(e!==void 0){let s=0;for(const i of e)yield t(i,s++)}}var Kt=(e=>(e.Inline="inline",e.Trigger="trigger",e))(Kt||{}),Bi=Object.defineProperty,Fi=Object.getOwnPropertyDescriptor,Wi=(e,t,s,i)=>{for(var n=i>1?void 0:i?Fi(t,s):t,r=e.length-1,o;r>=0;r--)(o=e[r])&&(n=(i?o(t,s,n):o(n))||n);return i&&n&&Bi(t,s,n),n};class Qt extends v{constructor(){super(...arguments),this.nodes=[],this.wrapperRef=Gt()}addChild(t){t.parent=this,this.nodes.push(t)}applyBranding(){if(!this.wrapperRef.value)return;const t=this.application.settings;t!=null&&t.branding&&ts(t.branding,this.wrapperRef.value)}applyStyles(){if(!this.wrapperRef.value)return;const t=this.application.styles(),s=this.wrapperRef.value;Object.entries(t).forEach(([i,n])=>{s.style.setProperty(`--${i}`,n)})}firstUpdated(t){this.applyBranding(),this.applyStyles()}render(){return this.application.renderStrategy===Kt.Trigger&&this.renderRoot.host.classList.add("floating"),f`<div class="widget-container" ${qt(this.wrapperRef)}>
227
+ */function*zi(e,t){if(e!==void 0){let s=0;for(const i of e)yield t(i,s++)}}var Yt=(e=>(e.Inline="inline",e.Trigger="trigger",e))(Yt||{}),Bi=Object.defineProperty,Fi=Object.getOwnPropertyDescriptor,Wi=(e,t,s,i)=>{for(var n=i>1?void 0:i?Fi(t,s):t,r=e.length-1,o;r>=0;r--)(o=e[r])&&(n=(i?o(t,s,n):o(n))||n);return i&&n&&Bi(t,s,n),n};class Kt extends v{constructor(){super(...arguments),this.nodes=[],this.wrapperRef=ut()}addChild(t){t.parent=this,this.nodes.push(t)}applyBranding(){if(!this.wrapperRef.value)return;const t=this.application.settings;t!=null&&t.branding&&ts(t.branding,this.wrapperRef.value)}applyStyles(){if(!this.wrapperRef.value)return;const t=this.application.styles(),s=this.wrapperRef.value;Object.entries(t).forEach(([i,n])=>{s.style.setProperty(`--${i}`,n)})}firstUpdated(t){this.applyBranding(),this.applyStyles()}render(){return this.application.renderStrategy===Yt.Trigger&&this.renderRoot.host.classList.add("floating"),f`<div class="widget-container" ${ft(this.wrapperRef)}>
228
228
  ${zi(this.nodes,t=>t)}
229
- </div>`}}Qt.styles=_`
229
+ </div>`}}Kt.styles=_`
230
230
  :host {
231
231
  --font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
232
232
  --spacing-xs: 0.2rem;
@@ -317,20 +317,20 @@
317
317
  opacity: 0;
318
318
  animation: slideDown 0.3s linear;
319
319
  }
320
- `;Wi([$({attribute:!1})],Qt.prototype,"application",2);var Gi=Object.defineProperty,qi=Object.getOwnPropertyDescriptor,Xt=(e,t,s,i)=>{for(var n=i>1?void 0:i?qi(t,s):t,r=e.length-1,o;r>=0;r--)(o=e[r])&&(n=(i?o(t,s,n):o(n))||n);return i&&n&&Gi(t,s,n),n};class et extends v{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(s=>s.name===this.name),await this.activate())}render(){if(!this.widget||this.status!=="activated")return u;if(this.widget.renderStrategy===Kt.Trigger){const t=new T;return t.application=this.widget,t}return this.widget.render()}}et.styles=[_`
320
+ `;Wi([$({attribute:!1})],Kt.prototype,"application",2);var Gi=Object.defineProperty,qi=Object.getOwnPropertyDescriptor,Qt=(e,t,s,i)=>{for(var n=i>1?void 0:i?qi(t,s):t,r=e.length-1,o;r>=0;r--)(o=e[r])&&(n=(i?o(t,s,n):o(n))||n);return i&&n&&Gi(t,s,n),n};class et extends v{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(s=>s.name===this.name),await this.activate())}render(){if(!this.widget||this.status!=="activated")return u;if(this.widget.renderStrategy===Yt.Trigger){const t=new k;return t.application=this.widget,t}return this.widget.render()}}et.styles=[_`
321
321
  :host {
322
322
  display: block;
323
323
  }
324
- `];Xt([$({attribute:!0})],et.prototype,"name",2);Xt([A()],et.prototype,"widget",2);Xt([A()],et.prototype,"status",2);customElements.get("ace-trigger")||customElements.define("ace-trigger",T);customElements.get("ace-unresolved-component")||customElements.define("ace-unresolved-component",ss);customElements.get("ace-wrapper")||customElements.define("ace-wrapper",Qt);customElements.get("ace-widget")||customElements.define("ace-widget",et);var Yi=Object.defineProperty,Ki=Object.getOwnPropertyDescriptor,xt=(e,t,s,i)=>{for(var n=i>1?void 0:i?Ki(t,s):t,r=e.length-1,o;r>=0;r--)(o=e[r])&&(n=(i?o(t,s,n):o(n))||n);return i&&n&&Yi(t,s,n),n};let z=class extends v{constructor(){super(...arguments),this.loading=!0,this.entries=[]}connectedCallback(){super.connectedCallback(),this.session.entries().subscribe(e=>{this.entries=e}),this.session.isTyping().subscribe(e=>{this.loading=e})}updated(e){const t=new CustomEvent("updated",{});this.dispatchEvent(t)}render(){return f`<div class="conversation-session">
324
+ `];Qt([$({attribute:!0})],et.prototype,"name",2);Qt([A()],et.prototype,"widget",2);Qt([A()],et.prototype,"status",2);customElements.get("ace-trigger")||customElements.define("ace-trigger",k);customElements.get("ace-unresolved-component")||customElements.define("ace-unresolved-component",ss);customElements.get("ace-wrapper")||customElements.define("ace-wrapper",Kt);customElements.get("ace-widget")||customElements.define("ace-widget",et);var Xi=Object.defineProperty,Yi=Object.getOwnPropertyDescriptor,At=(e,t,s,i)=>{for(var n=i>1?void 0:i?Yi(t,s):t,r=e.length-1,o;r>=0;r--)(o=e[r])&&(n=(i?o(t,s,n):o(n))||n);return i&&n&&Xi(t,s,n),n};let z=class extends v{constructor(){super(...arguments),this.loading=!0,this.entries=[]}connectedCallback(){super.connectedCallback(),this.session.entries().subscribe(e=>{this.entries=e}),this.session.isTyping().subscribe(e=>{this.loading=e})}updated(e){const t=new CustomEvent("updated",{});this.dispatchEvent(t)}render(){return f`<div class="conversation-session">
325
325
  ${this.entries.map(e=>f`<div class="conversation-entry" tabindex="-1">
326
326
  <conversation-entry
327
327
  .entry=${e}
328
- ${Rt({keyframeOptions:{},in:we,stabilizeOut:!0,skipInitial:!1})}
328
+ ${Nt({keyframeOptions:{},in:we,stabilizeOut:!0,skipInitial:!1})}
329
329
  >
330
330
  </conversation-entry>
331
331
  </div>`)}
332
332
  ${this.loading?f`<ace-typing-state
333
- ${Rt({keyframeOptions:{},in:we,out:Ui,stabilizeOut:!0,skipInitial:!1})}
333
+ ${Nt({keyframeOptions:{},in:we,out:Ri,stabilizeOut:!0,skipInitial:!1})}
334
334
  ></ace-typing-state>`:u}
335
335
  </div> `}};z.styles=[_`
336
336
  :host {
@@ -342,8 +342,8 @@
342
342
  justify-content: end;
343
343
  min-height: 100%;
344
344
  }
345
- `];xt([$({type:Boolean})],z.prototype,"loading",2);xt([$({attribute:!1})],z.prototype,"session",2);xt([A()],z.prototype,"entries",2);z=xt([V("ace-conversation-session")],z);var Qi=Object.defineProperty,Xi=Object.getOwnPropertyDescriptor,is=(e,t,s,i)=>{for(var n=i>1?void 0:i?Xi(t,s):t,r=e.length-1,o;r>=0;r--)(o=e[r])&&(n=(i?o(t,s,n):o(n))||n);return i&&n&&Qi(t,s,n),n};let ut=class extends v{connectedCallback(){var e;super.connectedCallback(),(e=this.entry.didUpdate)==null||e.subscribe(()=>{this.requestUpdate()})}_renderTimestamp(e,t){if(!e&&!t)return u;const s=n=>new Date(n).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"});let i="";return e?t?i=`${e}: ${s(t)}`:i=e:t&&(i=s(t)),f`<p class="conversation-timestamp">${i}</p>`}render(){var e,t;switch(this.entry.type){case wt.ConversationMessageType.System:return"";case wt.ConversationMessageType.Agent:return f`<div
346
- class=${Yt({"conversation-agent-message":!0,"has-avatar":!!((e=this.entry.sender)!=null&&e.avatar)})}
345
+ `];At([$({type:Boolean})],z.prototype,"loading",2);At([$({attribute:!1})],z.prototype,"session",2);At([A()],z.prototype,"entries",2);z=At([V("ace-conversation-session")],z);var Ki=Object.defineProperty,Qi=Object.getOwnPropertyDescriptor,is=(e,t,s,i)=>{for(var n=i>1?void 0:i?Qi(t,s):t,r=e.length-1,o;r>=0;r--)(o=e[r])&&(n=(i?o(t,s,n):o(n))||n);return i&&n&&Ki(t,s,n),n};let gt=class extends v{connectedCallback(){var e;super.connectedCallback(),(e=this.entry.didUpdate)==null||e.subscribe(()=>{this.requestUpdate()})}_renderTimestamp(e,t){if(!e&&!t)return u;const s=n=>new Date(n).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"});let i="";return e?t?i=`${e}: ${s(t)}`:i=e:t&&(i=s(t)),f`<p class="conversation-timestamp">${i}</p>`}render(){var e,t;switch(this.entry.type){case St.ConversationMessageType.System:return"";case St.ConversationMessageType.Agent:return f`<div
346
+ class=${Xt({"conversation-agent-message":!0,"has-avatar":!!((e=this.entry.sender)!=null&&e.avatar)})}
347
347
  >
348
348
  ${typeof((t=this.entry.sender)==null?void 0:t.avatar)=="string"?f`<div class="avatar">
349
349
  <img src=${this.entry.sender.avatar} />
@@ -359,7 +359,7 @@
359
359
  `)}
360
360
  </div>
361
361
  ${this._renderTimestamp(this.entry.sender.name||"",this.entry.timestamp)}
362
- </div>`;case wt.ConversationMessageType.User:return f`<div class="conversation-user-message">
362
+ </div>`;case St.ConversationMessageType.User:return f`<div class="conversation-user-message">
363
363
  <div class="entry-content">
364
364
  ${this.entry.messages.map(s=>f`
365
365
  <div class="message-container">
@@ -370,7 +370,7 @@
370
370
  `)}
371
371
  </div>
372
372
  ${this._renderTimestamp(this.entry.sender.name||"",this.entry.timestamp)}
373
- </div>`;default:return u}}};ut.styles=[_`
373
+ </div>`;default:return u}}};gt.styles=[_`
374
374
  :host {
375
375
  box-sizing: border-box;
376
376
  display: block;
@@ -452,7 +452,7 @@
452
452
  .entry-content {
453
453
  grid-area: content;
454
454
  }
455
- `];is([$({attribute:!1})],ut.prototype,"entry",2);ut=is([V("conversation-entry")],ut);var Zi=Object.defineProperty,Ji=Object.getOwnPropertyDescriptor,ns=(e,t,s,i)=>{for(var n=i>1?void 0:i?Ji(t,s):t,r=e.length-1,o;r>=0;r--)(o=e[r])&&(n=(i?o(t,s,n):o(n))||n);return i&&n&&Zi(t,s,n),n};let ft=class extends v{render(){return f`
455
+ `];is([$({attribute:!1})],gt.prototype,"entry",2);gt=is([V("conversation-entry")],gt);var Zi=Object.defineProperty,Ji=Object.getOwnPropertyDescriptor,ns=(e,t,s,i)=>{for(var n=i>1?void 0:i?Ji(t,s):t,r=e.length-1,o;r>=0;r--)(o=e[r])&&(n=(i?o(t,s,n):o(n))||n);return i&&n&&Zi(t,s,n),n};let $t=class extends v{render(){return f`
456
456
  <div class="message-group">
457
457
  ${this.group.items.map(([e,t])=>f`
458
458
  ${e==="html"?f`
@@ -460,7 +460,7 @@
460
460
  `:u}
461
461
  `)}
462
462
  </div>
463
- `}};ft.styles=[_`
463
+ `}};$t.styles=[_`
464
464
  :host {
465
465
  box-sizing: border-box;
466
466
  display: block;
@@ -473,11 +473,11 @@
473
473
  flex-direction: column;
474
474
  gap: var(--spacing-md);
475
475
  }
476
- `];ns([$({attribute:!1})],ft.prototype,"group",2);ft=ns([V("conversation-group")],ft);var Vi=Object.defineProperty,tn=Object.getOwnPropertyDescriptor,en=(e,t,s,i)=>{for(var n=i>1?void 0:i?tn(t,s):t,r=e.length-1,o;r>=0;r--)(o=e[r])&&(n=(i?o(t,s,n):o(n))||n);return i&&n&&Vi(t,s,n),n};let Ht=class extends v{render(){return f`<div class="container">
476
+ `];ns([$({attribute:!1})],$t.prototype,"group",2);$t=ns([V("conversation-group")],$t);var Vi=Object.defineProperty,tn=Object.getOwnPropertyDescriptor,en=(e,t,s,i)=>{for(var n=i>1?void 0:i?tn(t,s):t,r=e.length-1,o;r>=0;r--)(o=e[r])&&(n=(i?o(t,s,n):o(n))||n);return i&&n&&Vi(t,s,n),n};let Mt=class extends v{render(){return f`<div class="container">
477
477
  <div class="dot"></div>
478
478
  <div class="dot"></div>
479
479
  <div class="dot"></div>
480
- </div>`}};Ht.styles=[_`
480
+ </div>`}};Mt.styles=[_`
481
481
  :host {
482
482
  display: block;
483
483
  }
@@ -511,13 +511,13 @@
511
511
  opacity: 1;
512
512
  }
513
513
  }
514
- `];Ht=en([V("ace-typing-state")],Ht);/**
514
+ `];Mt=en([V("ace-typing-state")],Mt);/**
515
515
  * @license
516
516
  * Copyright 2017 Google LLC
517
517
  * SPDX-License-Identifier: BSD-3-Clause
518
- */class Nt extends Wt{constructor(t){if(super(t),this.et=u,t.type!==bt.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===u||t==null)return this.vt=void 0,this.et=t;if(t===C)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;const s=[t];return s.raw=s,this.vt={_$litType$:this.constructor.resultType,strings:s,values:[]}}}Nt.directiveName="unsafeHTML",Nt.resultType=1;const sn=_t(Nt);var nn=Object.defineProperty,rn=Object.getOwnPropertyDescriptor,rs=(e,t,s,i)=>{for(var n=i>1?void 0:i?rn(t,s):t,r=e.length-1,o;r>=0;r--)(o=e[r])&&(n=(i?o(t,s,n):o(n))||n);return i&&n&&nn(t,s,n),n};let gt=class extends v{render(){return f`<div class="message-type-html">
518
+ */class jt extends qt{constructor(t){if(super(t),this.et=u,t.type!==xt.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===u||t==null)return this.vt=void 0,this.et=t;if(t===C)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;const s=[t];return s.raw=s,this.vt={_$litType$:this.constructor.resultType,strings:s,values:[]}}}jt.directiveName="unsafeHTML",jt.resultType=1;const sn=wt(jt);var nn=Object.defineProperty,rn=Object.getOwnPropertyDescriptor,rs=(e,t,s,i)=>{for(var n=i>1?void 0:i?rn(t,s):t,r=e.length-1,o;r>=0;r--)(o=e[r])&&(n=(i?o(t,s,n):o(n))||n);return i&&n&&nn(t,s,n),n};let mt=class extends v{render(){return f`<div class="message-type-html">
519
519
  ${sn(this.message.content)}
520
- </div>`}};gt.styles=[_`
520
+ </div>`}};mt.styles=[_`
521
521
  :host {
522
522
  box-sizing: border-box;
523
523
  }
@@ -529,17 +529,21 @@
529
529
  padding: 0;
530
530
  word-break: break-word;
531
531
  }
532
- `];rs([$({attribute:!1})],gt.prototype,"message",2);gt=rs([V("message-type-html")],gt);var on=Object.defineProperty,an=Object.getOwnPropertyDescriptor,Zt=(e,t,s,i)=>{for(var n=i>1?void 0:i?an(t,s):t,r=e.length-1,o;r>=0;r--)(o=e[r])&&(n=(i?o(t,s,n):o(n))||n);return i&&n&&on(t,s,n),n};const ln=e=>{e.scrollTo?e.scrollTo({top:e.scrollHeight,behavior:"smooth"}):e.scrollTop=e.scrollHeight},os=es(v);class B extends os{constructor(){super(...arguments),this.message="",this.platform=null,this.session=null,this.conversationContentRef=Gt(),this.chatScrollHeight=0}async connectedCallback(){super.connectedCallback();const t=await this.application.container.get("conversation");this.platform=t||null,this.platform&&(this.platform.activeSessionId?this.session=this.platform.sessions.get(this.platform.activeSessionId)||null:this.session=this.platform.createSession(this)||null)}async _onSendMessage(t){t.preventDefault();const s=new CustomEvent("user-submit",{detail:{text:this.message}});this.dispatchEvent(s),this.message=""}_inputHandler(t){this.message=t.target.value}_actionHandler(t){}onSessionUpdated(){const t=this.conversationContentRef.value;t&&setTimeout(()=>{const s=t.scrollHeight;s>this.chatScrollHeight&&(ln(t),this.chatScrollHeight=s)},1e3)}render(){return f` <div
532
+ `];rs([$({attribute:!1})],mt.prototype,"message",2);mt=rs([V("message-type-html")],mt);var on=Object.defineProperty,an=Object.getOwnPropertyDescriptor,Zt=(e,t,s,i)=>{for(var n=i>1?void 0:i?an(t,s):t,r=e.length-1,o;r>=0;r--)(o=e[r])&&(n=(i?o(t,s,n):o(n))||n);return i&&n&&on(t,s,n),n};const ln=e=>{e.scrollTo?e.scrollTo({top:e.scrollHeight,behavior:"smooth"}):e.scrollTop=e.scrollHeight},os=es(v);class B extends os{constructor(){super(...arguments),this.message="",this.platform=null,this.session=null,this.conversationContentRef=ut(),this.formRef=ut(),this.chatScrollHeight=0}async connectedCallback(){super.connectedCallback();const t=await this.application.container.get("conversation");this.platform=t||null,this.platform&&(this.platform.activeSessionId?this.session=this.platform.sessions.get(this.platform.activeSessionId)||null:this.session=this.platform.createSession(this)||null)}async _onSendMessage(t){var i;if(t.preventDefault(),this.message.length<=0){(i=this.formRef.value)==null||i.classList.add("shake"),setTimeout(()=>{var n;(n=this.formRef.value)==null||n.classList.remove("shake")},500);return}const s=new CustomEvent("user-submit",{detail:{text:this.message}});this.dispatchEvent(s),this.message=""}_inputHandler(t){this.message=t.target.value}_actionHandler(t){}onSessionUpdated(){const t=this.conversationContentRef.value;t&&setTimeout(()=>{const s=t.scrollHeight;s>this.chatScrollHeight&&(ln(t),this.chatScrollHeight=s)},1e3)}render(){return f` <div
533
533
  @action=${this._actionHandler}
534
- class=${Yt({conversation:!0,"input-has-text":this.message.length>0})}
534
+ class=${Xt({conversation:!0,"input-has-text":this.message.length>0})}
535
535
  >
536
- <div class="conversation-content" ${qt(this.conversationContentRef)}>
536
+ <div class="conversation-content" ${ft(this.conversationContentRef)}>
537
537
  ${this.session?f`<ace-conversation-session
538
538
  @updated=${this.onSessionUpdated}
539
539
  .session=${this.session}
540
540
  ></ace-conversation-session>`:u}
541
541
  </div>
542
- <form class="conversation-bottom" @submit=${this._onSendMessage}>
542
+ <form
543
+ class="conversation-bottom"
544
+ @submit=${this._onSendMessage}
545
+ ${ft(this.formRef)}
546
+ >
543
547
  <input
544
548
  placeholder=${this.properties.inputPlaceholder||"Type your message here..."}
545
549
  .value=${this.message}
@@ -547,7 +551,7 @@
547
551
  />
548
552
  <div class="conversation-actions">
549
553
  <button class="conversation-send-button" type="submit">
550
- <telia-icon svg=${Re.svg}></telia-icon>
554
+ <telia-icon svg=${Ue.svg}></telia-icon>
551
555
  </button>
552
556
  </div>
553
557
  </form>
@@ -601,6 +605,26 @@
601
605
  background-color: transparent;
602
606
  }
603
607
 
608
+ @keyframes shake {
609
+ 10%,
610
+ 90% {
611
+ transform: translateX(1px);
612
+ }
613
+ 20%,
614
+ 80% {
615
+ transform: translateX(-1px);
616
+ }
617
+ 30%,
618
+ 50%,
619
+ 70% {
620
+ transform: translateX(2px);
621
+ }
622
+ 40%,
623
+ 60% {
624
+ transform: translateX(-2px);
625
+ }
626
+ }
627
+
604
628
  .conversation {
605
629
  display: grid;
606
630
  grid-template-rows: 1fr auto;
@@ -632,6 +656,10 @@
632
656
  padding: 0 var(--spacing-md);
633
657
  margin: 0;
634
658
  }
659
+ .conversation-bottom.shake {
660
+ animation: 0.82s cubic-bezier(0.36, 0.07, 0.19, 0.97) 0s 1 normal both
661
+ running shake;
662
+ }
635
663
  .conversation-bottom-left {
636
664
  border-right: 1px solid var(--gray-color);
637
665
  padding-right: var(--spacing-md);
@@ -657,4 +685,4 @@
657
685
  background-color: transparent;
658
686
  color: var(--input-text-color);
659
687
  }
660
- `];Zt([A()],B.prototype,"message",2);Zt([A()],B.prototype,"platform",2);Zt([A()],B.prototype,"session",2);const cn=Object.freeze(Object.defineProperty({__proto__:null,Conversation:B,default:B},Symbol.toStringTag,{value:"Module"}));exports.conversation=cn;exports.send=Re;
688
+ `];Zt([A()],B.prototype,"message",2);Zt([A()],B.prototype,"platform",2);Zt([A()],B.prototype,"session",2);const cn=Object.freeze(Object.defineProperty({__proto__:null,Conversation:B,default:B},Symbol.toStringTag,{value:"Module"}));exports.conversation=cn;exports.send=Ue;