@telia-ace/widget-components-copyright-flamingo 1.1.111-rc.0 → 1.1.111-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,514 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var pt=function(s,t){return pt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])},pt(s,t)};function D(s,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");pt(s,t);function e(){this.constructor=s}s.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}function ut(s){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&s[t],i=0;if(e)return e.call(s);if(s&&typeof s.length=="number")return{next:function(){return s&&i>=s.length&&(s=void 0),{value:s&&s[i++],done:!s}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ft(s,t){var e=typeof Symbol=="function"&&s[Symbol.iterator];if(!e)return s;var i=e.call(s),r,n=[],o;try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)n.push(r.value)}catch(a){o={error:a}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(o)throw o.error}}return n}function gt(s,t,e){if(e||arguments.length===2)for(var i=0,r=t.length,n;i<r;i++)(n||!(i in t))&&(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return s.concat(n||Array.prototype.slice.call(t))}function b(s){return typeof s=="function"}function oe(s){var t=function(i){Error.call(i),i.stack=new Error().stack},e=s(t);return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var st=oe(function(s){return function(e){s(this),this.message=e?e.length+` errors occurred during unsubscription:
2
+ `+e.map(function(i,r){return r+1+") "+i.toString()}).join(`
3
+ `):"",this.name="UnsubscriptionError",this.errors=e}});function vt(s,t){if(s){var e=s.indexOf(t);0<=e&&s.splice(e,1)}}var et=function(){function s(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return s.prototype.unsubscribe=function(){var t,e,i,r,n;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=ut(o),c=a.next();!c.done;c=a.next()){var h=c.value;h.remove(this)}}catch(v){t={error:v}}finally{try{c&&!c.done&&(e=a.return)&&e.call(a)}finally{if(t)throw t.error}}else o.remove(this);var l=this.initialTeardown;if(b(l))try{l()}catch(v){n=v instanceof st?v.errors:[v]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var u=ut(d),f=u.next();!f.done;f=u.next()){var k=f.value;try{Lt(k)}catch(v){n=n??[],v instanceof st?n=gt(gt([],ft(n)),ft(v.errors)):n.push(v)}}}catch(v){i={error:v}}finally{try{f&&!f.done&&(r=u.return)&&r.call(u)}finally{if(i)throw i.error}}}if(n)throw new st(n)}},s.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)Lt(t);else{if(t instanceof s){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(t)}},s.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},s.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},s.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&vt(e,t)},s.prototype.remove=function(t){var e=this._finalizers;e&&vt(e,t),t instanceof s&&t._removeParent(this)},s.EMPTY=function(){var t=new s;return t.closed=!0,t}(),s}(),ae=et.EMPTY;function ce(s){return s instanceof et||s&&"closed"in s&&b(s.remove)&&b(s.add)&&b(s.unsubscribe)}function Lt(s){b(s)?s():s.unsubscribe()}var he={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Se={setTimeout:function(s,t){for(var e=[],i=2;i<arguments.length;i++)e[i-2]=arguments[i];return setTimeout.apply(void 0,gt([s,t],ft(e)))},clearTimeout:function(s){return clearTimeout(s)},delegate:void 0};function Pe(s){Se.setTimeout(function(){throw s})}function Rt(){}function W(s){s()}var le=function(s){D(t,s);function t(e){var i=s.call(this)||this;return i.isStopped=!1,e?(i.destination=e,ce(e)&&e.add(i)):i.destination=Me,i}return t.create=function(e,i,r){return new mt(e,i,r)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,s.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(et),Oe=Function.prototype.bind;function rt(s,t){return Oe.call(s,t)}var ke=function(){function s(t){this.partialObserver=t}return s.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(i){Z(i)}},s.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(i){Z(i)}else Z(t)},s.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){Z(e)}},s}(),mt=function(s){D(t,s);function t(e,i,r){var n=s.call(this)||this,o;if(b(e)||!e)o={next:e??void 0,error:i??void 0,complete:r??void 0};else{var a;n&&he.useDeprecatedNextContext?(a=Object.create(e),a.unsubscribe=function(){return n.unsubscribe()},o={next:e.next&&rt(e.next,a),error:e.error&&rt(e.error,a),complete:e.complete&&rt(e.complete,a)}):o=e}return n.destination=new ke(o),n}return t}(le);function Z(s){Pe(s)}function Te(s){throw s}var Me={closed:!0,next:Rt,error:Te,complete:Rt},He=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Le(s){return s}function Re(s){return s.length===0?Le:s.length===1?s[0]:function(e){return s.reduce(function(i,r){return r(i)},e)}}var Ut=function(){function s(t){t&&(this._subscribe=t)}return s.prototype.lift=function(t){var e=new s;return e.source=this,e.operator=t,e},s.prototype.subscribe=function(t,e,i){var r=this,n=je(t)?t:new mt(t,e,i);return W(function(){var o=r,a=o.operator,c=o.source;n.add(a?a.call(n,c):c?r._subscribe(n):r._trySubscribe(n))}),n},s.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},s.prototype.forEach=function(t,e){var i=this;return e=jt(e),new e(function(r,n){var o=new mt({next:function(a){try{t(a)}catch(c){n(c),o.unsubscribe()}},error:n,complete:r});i.subscribe(o)})},s.prototype._subscribe=function(t){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(t)},s.prototype[He]=function(){return this},s.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Re(t)(this)},s.prototype.toPromise=function(t){var e=this;return t=jt(t),new t(function(i,r){var n;e.subscribe(function(o){return n=o},function(o){return r(o)},function(){return i(n)})})},s.create=function(t){return new s(t)},s}();function jt(s){var t;return(t=s??he.Promise)!==null&&t!==void 0?t:Promise}function Ue(s){return s&&b(s.next)&&b(s.error)&&b(s.complete)}function je(s){return s&&s instanceof le||Ue(s)&&ce(s)}var Ne=oe(function(s){return function(){s(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),$t=function(s){D(t,s);function t(){var e=s.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return t.prototype.lift=function(e){var i=new Nt(this,this);return i.operator=e,i},t.prototype._throwIfClosed=function(){if(this.closed)throw new Ne},t.prototype.next=function(e){var i=this;W(function(){var r,n;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var o=ut(i.currentObservers),a=o.next();!a.done;a=o.next()){var c=a.value;c.next(e)}}catch(h){r={error:h}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}}})},t.prototype.error=function(e){var i=this;W(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=e;for(var r=i.observers;r.length;)r.shift().error(e)}})},t.prototype.complete=function(){var e=this;W(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var i=e.observers;i.length;)i.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(e){return this._throwIfClosed(),s.prototype._trySubscribe.call(this,e)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var i=this,r=this,n=r.hasError,o=r.isStopped,a=r.observers;return n||o?ae:(this.currentObservers=null,a.push(e),new et(function(){i.currentObservers=null,vt(a,e)}))},t.prototype._checkFinalizedStatuses=function(e){var i=this,r=i.hasError,n=i.thrownError,o=i.isStopped;r?e.error(n):o&&e.complete()},t.prototype.asObservable=function(){var e=new Ut;return e.source=this,e},t.create=function(e,i){return new Nt(e,i)},t}(Ut),Nt=function(s){D(t,s);function t(e,i){var r=s.call(this)||this;return r.destination=e,r.source=i,r}return t.prototype.next=function(e){var i,r;(r=(i=this.destination)===null||i===void 0?void 0:i.next)===null||r===void 0||r.call(i,e)},t.prototype.error=function(e){var i,r;(r=(i=this.destination)===null||i===void 0?void 0:i.error)===null||r===void 0||r.call(i,e)},t.prototype.complete=function(){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||i===void 0||i.call(e)},t.prototype._subscribe=function(e){var i,r;return(r=(i=this.source)===null||i===void 0?void 0:i.subscribe(e))!==null&&r!==void 0?r:ae},t}($t),de=function(s){D(t,s);function t(e){var i=s.call(this)||this;return i._value=e,i}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(e){var i=s.prototype._subscribe.call(this,e);return!i.closed&&e.next(this._value),i},t.prototype.getValue=function(){var e=this,i=e.hasError,r=e.thrownError,n=e._value;if(i)throw r;return this._throwIfClosed(),n},t.prototype.next=function(e){s.prototype.next.call(this,this._value=e)},t}($t);/**
4
+ * @license
5
+ * Copyright 2019 Google LLC
6
+ * SPDX-License-Identifier: BSD-3-Clause
7
+ */const q=globalThis,_t=q.ShadowRoot&&(q.ShadyCSS===void 0||q.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,wt=Symbol(),It=new WeakMap;let pe=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==wt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(_t&&t===void 0){const i=e!==void 0&&e.length===1;i&&(t=It.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&It.set(e,t))}return t}toString(){return this.cssText}};const Ie=s=>new pe(typeof s=="string"?s:s+"",void 0,wt),O=(s,...t)=>{const e=s.length===1?s[0]:t.reduce((i,r,n)=>i+(o=>{if(o._$cssResult$===!0)return o.cssText;if(typeof o=="number")return o;throw Error("Value passed to 'css' function must be a 'css' function result: "+o+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+s[n+1],s[0]);return new pe(e,s,wt)},Be=(s,t)=>{if(_t)s.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const i=document.createElement("style"),r=q.litNonce;r!==void 0&&i.setAttribute("nonce",r),i.textContent=e.cssText,s.appendChild(i)}},Bt=_t?s=>s:s=>s instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return Ie(e)})(s):s;/**
8
+ * @license
9
+ * Copyright 2017 Google LLC
10
+ * SPDX-License-Identifier: BSD-3-Clause
11
+ */const{is:Ve,defineProperty:ze,getOwnPropertyDescriptor:De,getOwnPropertyNames:Fe,getOwnPropertySymbols:Ye,getPrototypeOf:Ze}=Object,w=globalThis,Vt=w.trustedTypes,We=Vt?Vt.emptyScript:"",nt=w.reactiveElementPolyfillSupport,U=(s,t)=>s,K={toAttribute(s,t){switch(t){case Boolean:s=s?We:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,t){let e=s;switch(t){case Boolean:e=s!==null;break;case Number:e=s===null?null:Number(s);break;case Object:case Array:try{e=JSON.parse(s)}catch{e=null}}return e}},At=(s,t)=>!Ve(s,t),zt={attribute:!0,type:String,converter:K,reflect:!1,hasChanged:At};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),w.litPropertyMetadata??(w.litPropertyMetadata=new WeakMap);let T=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=zt){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),r=this.getPropertyDescriptor(t,i,e);r!==void 0&&ze(this.prototype,t,r)}}static getPropertyDescriptor(t,e,i){const{get:r,set:n}=De(this.prototype,t)??{get(){return this[e]},set(o){this[e]=o}};return{get(){return r==null?void 0:r.call(this)},set(o){const a=r==null?void 0:r.call(this);n.call(this,o),this.requestUpdate(t,a,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??zt}static _$Ei(){if(this.hasOwnProperty(U("elementProperties")))return;const t=Ze(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(U("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(U("properties"))){const e=this.properties,i=[...Fe(e),...Ye(e)];for(const r of i)this.createProperty(r,e[r])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[i,r]of e)this.elementProperties.set(i,r)}this._$Eh=new Map;for(const[e,i]of this.elementProperties){const r=this._$Eu(e,i);r!==void 0&&this._$Eh.set(r,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const r of i)e.unshift(Bt(r))}else t!==void 0&&e.push(Bt(t));return e}static _$Eu(t,e){const i=e.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((e=t.hostConnected)==null||e.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Be(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var i;return(i=e.hostConnected)==null?void 0:i.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var i;return(i=e.hostDisconnected)==null?void 0:i.call(e)})}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EC(t,e){var n;const i=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,i);if(r!==void 0&&i.reflect===!0){const o=(((n=i.converter)==null?void 0:n.toAttribute)!==void 0?i.converter:K).toAttribute(e,i.type);this._$Em=t,o==null?this.removeAttribute(r):this.setAttribute(r,o),this._$Em=null}}_$AK(t,e){var n;const i=this.constructor,r=i._$Eh.get(t);if(r!==void 0&&this._$Em!==r){const o=i.getPropertyOptions(r),a=typeof o.converter=="function"?{fromAttribute:o.converter}:((n=o.converter)==null?void 0:n.fromAttribute)!==void 0?o.converter:K;this._$Em=r,this[r]=a.fromAttribute(e,o.type),this._$Em=null}}requestUpdate(t,e,i){if(t!==void 0){if(i??(i=this.constructor.getPropertyOptions(t)),!(i.hasChanged??At)(this[t],e))return;this.P(t,e,i)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,i){this._$AL.has(t)||this._$AL.set(t,e),i.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[n,o]of this._$Ep)this[n]=o;this._$Ep=void 0}const r=this.constructor.elementProperties;if(r.size>0)for(const[n,o]of r)o.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.P(n,this[n],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(i=this._$EO)==null||i.forEach(r=>{var n;return(n=r.hostUpdate)==null?void 0:n.call(r)}),this.update(e)):this._$EU()}catch(r){throw t=!1,this._$EU(),r}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(i=>{var r;return(r=i.hostUpdated)==null?void 0:r.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU()}updated(t){}firstUpdated(t){}};T.elementStyles=[],T.shadowRootOptions={mode:"open"},T[U("elementProperties")]=new Map,T[U("finalized")]=new Map,nt==null||nt({ReactiveElement:T}),(w.reactiveElementVersions??(w.reactiveElementVersions=[])).push("2.0.4");/**
12
+ * @license
13
+ * Copyright 2017 Google LLC
14
+ * SPDX-License-Identifier: BSD-3-Clause
15
+ */const j=globalThis,G=j.trustedTypes,Dt=G?G.createPolicy("lit-html",{createHTML:s=>s}):void 0,ue="$lit$",_=`lit$${Math.random().toFixed(9).slice(2)}$`,fe="?"+_,qe=`<${fe}>`,S=document,I=()=>S.createComment(""),B=s=>s===null||typeof s!="object"&&typeof s!="function",Ct=Array.isArray,Ke=s=>Ct(s)||typeof(s==null?void 0:s[Symbol.iterator])=="function",ot=`[
16
+ \f\r]`,R=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ft=/-->/g,Yt=/>/g,A=RegExp(`>|${ot}(?:([^\\s"'>=/]+)(${ot}*=${ot}*(?:[^
17
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Zt=/'/g,Wt=/"/g,ge=/^(?:script|style|textarea|title)$/i,ve=s=>(t,...e)=>({_$litType$:s,strings:t,values:e}),x=ve(1),Ge=ve(2),P=Symbol.for("lit-noChange"),p=Symbol.for("lit-nothing"),qt=new WeakMap,E=S.createTreeWalker(S,129);function me(s,t){if(!Ct(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return Dt!==void 0?Dt.createHTML(t):t}const Xe=(s,t)=>{const e=s.length-1,i=[];let r,n=t===2?"<svg>":t===3?"<math>":"",o=R;for(let a=0;a<e;a++){const c=s[a];let h,l,d=-1,u=0;for(;u<c.length&&(o.lastIndex=u,l=o.exec(c),l!==null);)u=o.lastIndex,o===R?l[1]==="!--"?o=Ft:l[1]!==void 0?o=Yt:l[2]!==void 0?(ge.test(l[2])&&(r=RegExp("</"+l[2],"g")),o=A):l[3]!==void 0&&(o=A):o===A?l[0]===">"?(o=r??R,d=-1):l[1]===void 0?d=-2:(d=o.lastIndex-l[2].length,h=l[1],o=l[3]===void 0?A:l[3]==='"'?Wt:Zt):o===Wt||o===Zt?o=A:o===Ft||o===Yt?o=R:(o=A,r=void 0);const f=o===A&&s[a+1].startsWith("/>")?" ":"";n+=o===R?c+qe:d>=0?(i.push(h),c.slice(0,d)+ue+c.slice(d)+_+f):c+_+(d===-2?a:f)}return[me(s,n+(s[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),i]};let yt=class ye{constructor({strings:t,_$litType$:e},i){let r;this.parts=[];let n=0,o=0;const a=t.length-1,c=this.parts,[h,l]=Xe(t,e);if(this.el=ye.createElement(h,i),E.currentNode=this.el.content,e===2||e===3){const d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(r=E.nextNode())!==null&&c.length<a;){if(r.nodeType===1){if(r.hasAttributes())for(const d of r.getAttributeNames())if(d.endsWith(ue)){const u=l[o++],f=r.getAttribute(d).split(_),k=/([.?@])?(.*)/.exec(u);c.push({type:1,index:n,name:k[2],strings:f,ctor:k[1]==="."?Qe:k[1]==="?"?ti:k[1]==="@"?ei:it}),r.removeAttribute(d)}else d.startsWith(_)&&(c.push({type:6,index:n}),r.removeAttribute(d));if(ge.test(r.tagName)){const d=r.textContent.split(_),u=d.length-1;if(u>0){r.textContent=G?G.emptyScript:"";for(let f=0;f<u;f++)r.append(d[f],I()),E.nextNode(),c.push({type:2,index:++n});r.append(d[u],I())}}}else if(r.nodeType===8)if(r.data===fe)c.push({type:2,index:n});else{let d=-1;for(;(d=r.data.indexOf(_,d+1))!==-1;)c.push({type:7,index:n}),d+=_.length-1}n++}}static createElement(t,e){const i=S.createElement("template");return i.innerHTML=t,i}};function M(s,t,e=s,i){var o,a;if(t===P)return t;let r=i!==void 0?(o=e._$Co)==null?void 0:o[i]:e._$Cl;const n=B(t)?void 0:t._$litDirective$;return(r==null?void 0:r.constructor)!==n&&((a=r==null?void 0:r._$AO)==null||a.call(r,!1),n===void 0?r=void 0:(r=new n(s),r._$AT(s,e,i)),i!==void 0?(e._$Co??(e._$Co=[]))[i]=r:e._$Cl=r),r!==void 0&&(t=M(s,r._$AS(s,t.values),r,i)),t}class Je{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:i}=this._$AD,r=((t==null?void 0:t.creationScope)??S).importNode(e,!0);E.currentNode=r;let n=E.nextNode(),o=0,a=0,c=i[0];for(;c!==void 0;){if(o===c.index){let h;c.type===2?h=new F(n,n.nextSibling,this,t):c.type===1?h=new c.ctor(n,c.name,c.strings,this,t):c.type===6&&(h=new ii(n,this,t)),this._$AV.push(h),c=i[++a]}o!==(c==null?void 0:c.index)&&(n=E.nextNode(),o++)}return E.currentNode=S,r}p(t){let e=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class F{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,i,r){this.type=2,this._$AH=p,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=r,this._$Cv=(r==null?void 0:r.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=M(this,t,e),B(t)?t===p||t==null||t===""?(this._$AH!==p&&this._$AR(),this._$AH=p):t!==this._$AH&&t!==P&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Ke(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==p&&B(this._$AH)?this._$AA.nextSibling.data=t:this.T(S.createTextNode(t)),this._$AH=t}$(t){var n;const{values:e,_$litType$:i}=t,r=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=yt.createElement(me(i.h,i.h[0]),this.options)),i);if(((n=this._$AH)==null?void 0:n._$AD)===r)this._$AH.p(e);else{const o=new Je(r,this),a=o.u(this.options);o.p(e),this.T(a),this._$AH=o}}_$AC(t){let e=qt.get(t.strings);return e===void 0&&qt.set(t.strings,e=new yt(t)),e}k(t){Ct(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,r=0;for(const n of t)r===e.length?e.push(i=new F(this.O(I()),this.O(I()),this,this.options)):i=e[r],i._$AI(n),r++;r<e.length&&(this._$AR(i&&i._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,e);t&&t!==this._$AB;){const r=t.nextSibling;t.remove(),t=r}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}}class it{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,r,n){this.type=1,this._$AH=p,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=n,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=p}_$AI(t,e=this,i,r){const n=this.strings;let o=!1;if(n===void 0)t=M(this,t,e,0),o=!B(t)||t!==this._$AH&&t!==P,o&&(this._$AH=t);else{const a=t;let c,h;for(t=n[0],c=0;c<n.length-1;c++)h=M(this,a[i+c],e,c),h===P&&(h=this._$AH[c]),o||(o=!B(h)||h!==this._$AH[c]),h===p?t=p:t!==p&&(t+=(h??"")+n[c+1]),this._$AH[c]=h}o&&!r&&this.j(t)}j(t){t===p?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Qe extends it{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===p?void 0:t}}class ti extends it{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==p)}}class ei extends it{constructor(t,e,i,r,n){super(t,e,i,r,n),this.type=5}_$AI(t,e=this){if((t=M(this,t,e,0)??p)===P)return;const i=this._$AH,r=t===p&&i!==p||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,n=t!==p&&(i===p||r);r&&this.element.removeEventListener(this.name,this,i),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e;typeof this._$AH=="function"?this._$AH.call(((e=this.options)==null?void 0:e.host)??this.element,t):this._$AH.handleEvent(t)}}class ii{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){M(this,t)}}const at=j.litHtmlPolyfillSupport;at==null||at(yt,F),(j.litHtmlVersions??(j.litHtmlVersions=[])).push("3.2.1");const si=(s,t,e)=>{const i=(e==null?void 0:e.renderBefore)??t;let r=i._$litPart$;if(r===void 0){const n=(e==null?void 0:e.renderBefore)??null;i._$litPart$=r=new F(t.insertBefore(I(),n),n,void 0,e??{})}return r._$AI(s),r};/**
18
+ * @license
19
+ * Copyright 2017 Google LLC
20
+ * SPDX-License-Identifier: BSD-3-Clause
21
+ */let m=class extends T{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e;const t=super.createRenderRoot();return(e=this.renderOptions).renderBefore??(e.renderBefore=t.firstChild),t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=si(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return P}};var ne;m._$litElement$=!0,m.finalized=!0,(ne=globalThis.litElementHydrateSupport)==null||ne.call(globalThis,{LitElement:m});const ct=globalThis.litElementPolyfillSupport;ct==null||ct({LitElement:m});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.1.1");/**
22
+ * @license
23
+ * Copyright 2017 Google LLC
24
+ * SPDX-License-Identifier: BSD-3-Clause
25
+ */const ri={attribute:!0,type:String,converter:K,reflect:!1,hasChanged:At},ni=(s=ri,t,e)=>{const{kind:i,metadata:r}=e;let n=globalThis.litPropertyMetadata.get(r);if(n===void 0&&globalThis.litPropertyMetadata.set(r,n=new Map),n.set(e.name,s),i==="accessor"){const{name:o}=e;return{set(a){const c=t.get.call(this);t.set.call(this,a),this.requestUpdate(o,c,s)},init(a){return a!==void 0&&this.P(o,void 0,s),a}}}if(i==="setter"){const{name:o}=e;return function(a){const c=this[o];t.call(this,a),this.requestUpdate(o,c,s)}}throw Error("Unsupported decorator location: "+i)};function g(s){return(t,e)=>typeof e=="object"?ni(s,t,e):((i,r,n)=>{const o=r.hasOwnProperty(n);return r.constructor.createProperty(n,o?{...i,wrapped:!0}:i),o?Object.getOwnPropertyDescriptor(r,n):void 0})(s,t,e)}/**
26
+ * @license
27
+ * Copyright 2017 Google LLC
28
+ * SPDX-License-Identifier: BSD-3-Clause
29
+ */function L(s){return g({...s,state:!0,attribute:!1})}var oi=Object.defineProperty,ai=(s,t,e,i)=>{for(var r=void 0,n=s.length-1,o;n>=0;n--)(o=s[n])&&(r=o(t,e,r)||r);return r&&oi(t,e,r),r};const Pt=class Pt extends m{constructor(){super(...arguments),this.anchor="BottomRight"}appendChild(t){var e;return(e=this.shadowRoot)==null||e.appendChild(t),t}render(){return this.anchor==="BottomLeft"?this.renderRoot.host.classList.add("bottom-left"):this.anchor==="BottomRight"&&this.renderRoot.host.classList.add("bottom-right"),p}};Pt.styles=[O`
30
+ :host {
31
+ position: fixed;
32
+ display: flex;
33
+ align-items: center;
34
+ gap: 1rem;
35
+ }
36
+
37
+ :host(.bottom-right) {
38
+ bottom: 20px;
39
+ right: 20px;
40
+ }
41
+ :host(.bottom-left) {
42
+ bottom: 20px;
43
+ left: 20px;
44
+ }
45
+ `];let X=Pt;ai([g({attribute:!0})],X.prototype,"anchor");/**
46
+ * @license
47
+ * Copyright 2017 Google LLC
48
+ * SPDX-License-Identifier: BSD-3-Clause
49
+ */const xt={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Et=s=>(...t)=>({_$litDirective$:s,values:t});let be=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};/**
50
+ * @license
51
+ * Copyright 2020 Google LLC
52
+ * SPDX-License-Identifier: BSD-3-Clause
53
+ */const ci=s=>s.strings===void 0;/**
54
+ * @license
55
+ * Copyright 2017 Google LLC
56
+ * SPDX-License-Identifier: BSD-3-Clause
57
+ */const N=(s,t)=>{var i;const e=s._$AN;if(e===void 0)return!1;for(const r of e)(i=r._$AO)==null||i.call(r,t,!1),N(r,t);return!0},J=s=>{let t,e;do{if((t=s._$AM)===void 0)break;e=t._$AN,e.delete(s),s=t}while((e==null?void 0:e.size)===0)},$e=s=>{for(let t;t=s._$AM;s=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(s))break;e.add(s),di(t)}};function hi(s){this._$AN!==void 0?(J(this),this._$AM=s,$e(this)):this._$AM=s}function li(s,t=!1,e=0){const i=this._$AH,r=this._$AN;if(r!==void 0&&r.size!==0)if(t)if(Array.isArray(i))for(let n=e;n<i.length;n++)N(i[n],!1),J(i[n]);else i!=null&&(N(i,!1),J(i));else N(this,s)}const di=s=>{s.type==xt.CHILD&&(s._$AP??(s._$AP=li),s._$AQ??(s._$AQ=hi))};class _e extends be{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,i){super._$AT(t,e,i),$e(this),this.isConnected=t._$AU}_$AO(t,e=!0){var i,r;t!==this.isConnected&&(this.isConnected=t,t?(i=this.reconnected)==null||i.call(this):(r=this.disconnected)==null||r.call(this)),e&&(N(this,t),J(this))}setValue(t){if(ci(this._$Ct))this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}}const pi=new WeakMap;let Kt=0;const ht=new Map,Gt=new WeakSet,Xt=()=>new Promise(s=>requestAnimationFrame(s)),ui=[{transform:"translateX(100%) scale(0)",opacity:0}],Jt=(s,t)=>{const e=s-t;return e===0?void 0:e},Qt=(s,t)=>{const e=s/t;return e===1?void 0:e},lt={left:(s,t)=>{const e=Jt(s,t);return{value:e,transform:e==null||isNaN(e)?void 0:`translateX(${e}px)`}},top:(s,t)=>{const e=Jt(s,t);return{value:e,transform:e==null||isNaN(e)?void 0:`translateY(${e}px)`}},width:(s,t)=>{let e;t===0&&(t=1,e={width:"1px"});const i=Qt(s,t);return{value:i,overrideFrom:e,transform:i==null||isNaN(i)?void 0:`scaleX(${i})`}},height:(s,t)=>{let e;t===0&&(t=1,e={height:"1px"});const i=Qt(s,t);return{value:i,overrideFrom:e,transform:i==null||isNaN(i)?void 0:`scaleY(${i})`}}},fi={duration:333,easing:"ease-in-out"},gi=["left","top","width","height","opacity","color","background"],te=new WeakMap;class vi extends _e{constructor(t){if(super(t),this.t=!1,this.i=null,this.o=null,this.h=!0,this.shouldLog=!1,t.type===xt.CHILD)throw Error("The `animate` directive must be used in attribute position.");this.createFinished()}createFinished(){var t;(t=this.resolveFinished)==null||t.call(this),this.finished=new Promise(e=>{this.l=e})}async resolveFinished(){var t;(t=this.l)==null||t.call(this),this.l=void 0}render(t){return p}getController(){return pi.get(this.u)}isDisabled(){var t;return this.options.disabled||((t=this.getController())==null?void 0:t.disabled)}update(t,[e]){var r;const i=this.u===void 0;return i&&(this.u=(r=t.options)==null?void 0:r.host,this.u.addController(this),this.u.updateComplete.then(n=>this.t=!0),this.element=t.element,te.set(this.element,this)),this.optionsOrCallback=e,(i||typeof e!="function")&&this.p(e),this.render(e)}p(t){t=t??{};const e=this.getController();e!==void 0&&((t={...e.defaultOptions,...t}).keyframeOptions={...e.defaultOptions.keyframeOptions,...t.keyframeOptions}),t.properties??(t.properties=gi),this.options=t}m(){const t={},e=this.element.getBoundingClientRect(),i=getComputedStyle(this.element);return this.options.properties.forEach(r=>{const n=e[r]??(lt[r]?void 0:i[r]),o=Number(n);t[r]=isNaN(o)?n+"":o}),t}v(){let t,e=!0;return this.options.guard&&(t=this.options.guard(),e=((i,r)=>{if(Array.isArray(i)){if(Array.isArray(r)&&r.length===i.length&&i.every((n,o)=>n===r[o]))return!1}else if(r===i)return!1;return!0})(t,this._)),this.h=this.t&&!this.isDisabled()&&!this.isAnimating()&&e&&this.element.isConnected,this.h&&(this._=Array.isArray(t)?Array.from(t):t),this.h}hostUpdate(){typeof this.optionsOrCallback=="function"&&this.p(this.optionsOrCallback()),this.v()&&(this.A=this.m(),this.i=this.i??this.element.parentNode,this.o=this.element.nextSibling)}async hostUpdated(){if(!this.h||!this.element.isConnected||this.options.skipInitial&&!this.isHostRendered)return;let t;this.prepare(),await Xt;const e=this.O(),i=this.j(this.options.keyframeOptions,e),r=this.m();if(this.A!==void 0){const{from:n,to:o}=this.N(this.A,r,e);this.log("measured",[this.A,r,n,o]),t=this.calculateKeyframes(n,o)}else{const n=ht.get(this.options.inId);if(n){ht.delete(this.options.inId);const{from:o,to:a}=this.N(n,r,e);t=this.calculateKeyframes(o,a),t=this.options.in?[{...this.options.in[0],...t[0]},...this.options.in.slice(1),t[1]]:t,Kt++,t.forEach(c=>c.zIndex=Kt)}else this.options.in&&(t=[...this.options.in,{}])}this.animate(t,i)}resetStyles(){this.P!==void 0&&(this.element.setAttribute("style",this.P??""),this.P=void 0)}commitStyles(){var t,e;this.P=this.element.getAttribute("style"),(t=this.webAnimation)==null||t.commitStyles(),(e=this.webAnimation)==null||e.cancel()}reconnected(){}async disconnected(){var e;if(!this.h||(this.options.id!==void 0&&ht.set(this.options.id,this.A),this.options.out===void 0))return;if(this.prepare(),await Xt(),(e=this.i)==null?void 0:e.isConnected){const i=this.o&&this.o.parentNode===this.i?this.o:null;if(this.i.insertBefore(this.element,i),this.options.stabilizeOut){const r=this.m();this.log("stabilizing out");const n=this.A.left-r.left,o=this.A.top-r.top;getComputedStyle(this.element).position!=="static"||n===0&&o===0||(this.element.style.position="relative"),n!==0&&(this.element.style.left=n+"px"),o!==0&&(this.element.style.top=o+"px")}}const t=this.j(this.options.keyframeOptions);await this.animate(this.options.out,t),this.element.remove()}prepare(){this.createFinished()}start(){var t,e;(e=(t=this.options).onStart)==null||e.call(t,this)}didFinish(t){var e,i;t&&((i=(e=this.options).onComplete)==null||i.call(e,this)),this.A=void 0,this.animatingProperties=void 0,this.frames=void 0,this.resolveFinished()}O(){const t=[];for(let e=this.element.parentNode;e;e=e==null?void 0:e.parentNode){const i=te.get(e);i&&!i.isDisabled()&&i&&t.push(i)}return t}get isHostRendered(){const t=Gt.has(this.u);return t||this.u.updateComplete.then(()=>{Gt.add(this.u)}),t}j(t,e=this.O()){const i={...fi};return e.forEach(r=>Object.assign(i,r.options.keyframeOptions)),Object.assign(i,t),i}N(t,e,i){t={...t},e={...e};const r=i.map(a=>a.animatingProperties).filter(a=>a!==void 0);let n=1,o=1;return r.length>0&&(r.forEach(a=>{a.width&&(n/=a.width),a.height&&(o/=a.height)}),t.left!==void 0&&e.left!==void 0&&(t.left=n*t.left,e.left=n*e.left),t.top!==void 0&&e.top!==void 0&&(t.top=o*t.top,e.top=o*e.top)),{from:t,to:e}}calculateKeyframes(t,e,i=!1){const r={},n={};let o=!1;const a={};for(const c in e){const h=t[c],l=e[c];if(c in lt){const d=lt[c];if(h===void 0||l===void 0)continue;const u=d(h,l);u.transform!==void 0&&(a[c]=u.value,o=!0,r.transform=`${r.transform??""} ${u.transform}`,u.overrideFrom!==void 0&&Object.assign(r,u.overrideFrom))}else h!==l&&h!==void 0&&l!==void 0&&(o=!0,r[c]=h,n[c]=l)}return r.transformOrigin=n.transformOrigin=i?"center center":"top left",this.animatingProperties=a,o?[r,n]:void 0}async animate(t,e=this.options.keyframeOptions){this.start(),this.frames=t;let i=!1;if(!this.isAnimating()&&!this.isDisabled()&&(this.options.onFrames&&(this.frames=t=this.options.onFrames(this),this.log("modified frames",t)),t!==void 0)){this.log("animate",[t,e]),i=!0,this.webAnimation=this.element.animate(t,e);const r=this.getController();r==null||r.add(this);try{await this.webAnimation.finished}catch{}r==null||r.remove(this)}return this.didFinish(i),i}isAnimating(){var t,e;return((t=this.webAnimation)==null?void 0:t.playState)==="running"||((e=this.webAnimation)==null?void 0:e.pending)}log(t,e){this.shouldLog&&!this.isDisabled()&&console.log(t,this.options.id,e)}}const mi=Et(vi),yi={name:"question",svg:'<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M32 4C16.536 4 4 16.536 4 32C4 47.464 16.536 60 32 60C47.464 60 60 47.464 60 32C59.9827 16.5432 47.4568 4.01731 32 4ZM32 55.6923C18.9151 55.6923 8.30769 45.0849 8.30769 32C8.30769 18.9151 18.9151 8.30769 32 8.30769C45.0849 8.30769 55.6923 18.9151 55.6923 32C55.6775 45.0788 45.0788 55.6775 32 55.6923Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M31.9423 37.5723L36.311 32.9068L36.7354 32.4448C39.7555 29.1161 40.7645 27.0647 40.7645 24.5087C40.7645 23.1091 40.4251 21.7942 39.7041 20.6491C38.3044 18.3587 35.6323 16.9166 32.2816 16.9166C28.7565 16.9166 25.3125 18.7414 23.2581 21.6772L23.1201 21.8791C22.8232 22.3032 22.696 22.6849 22.696 22.9818C22.696 23.7029 23.926 25.9932 25.2833 25.9932C25.5378 25.9932 25.7922 25.9084 26.0467 25.7388C26.2588 25.5691 26.5981 25.2298 27.0647 24.7208C28.8885 22.6849 30.1185 21.9215 31.7726 21.9215C33.6813 21.9215 35.081 23.1939 35.081 24.8905C35.081 26.375 34.2751 27.7746 32.3664 29.8529L28.2523 34.2216C27.9554 34.6033 27.7857 34.9426 27.7857 35.282C27.7857 35.6213 27.9978 36.1726 28.4219 36.8937C29.0581 37.8692 29.7368 38.3782 30.4578 38.3782C30.9244 38.3782 31.3909 38.1237 31.9423 37.5723ZM30.882 47.4972C29.2278 47.4972 27.6585 44.7403 27.6585 43.6799C27.6585 42.1954 30.0761 40.6261 32.4089 40.6261C33.6389 40.6261 34.2751 41.1775 34.2751 42.3227C34.2751 44.0616 33.4692 45.843 32.4513 46.7761C31.9423 47.2427 31.4334 47.4972 30.882 47.4972Z"/></svg>'};/**
58
+ * @license
59
+ * Copyright 2018 Google LLC
60
+ * SPDX-License-Identifier: BSD-3-Clause
61
+ */const ee=Et(class extends be{constructor(s){var t;if(super(s),s.type!==xt.ATTRIBUTE||s.name!=="class"||((t=s.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(s){return" "+Object.keys(s).filter(t=>s[t]).join(" ")+" "}update(s,[t]){var i,r;if(this.st===void 0){this.st=new Set,s.strings!==void 0&&(this.nt=new Set(s.strings.join(" ").split(/\s/).filter(n=>n!=="")));for(const n in t)t[n]&&!((i=this.nt)!=null&&i.has(n))&&this.st.add(n);return this.render(t)}const e=s.element.classList;for(const n of this.st)n in t||(e.remove(n),this.st.delete(n));for(const n in t){const o=!!t[n];o===this.st.has(n)||(r=this.nt)!=null&&r.has(n)||(o?(e.add(n),this.st.add(n)):(e.remove(n),this.st.delete(n)))}return P}}),y=(s,t,e)=>{s&&e.style.setProperty(t,s)},we=(s,t)=>{var e,i,r,n,o,a,c,h,l;y((e=s.colors)==null?void 0:e.primaryBackground,"--primary-background",t),y((i=s.colors)==null?void 0:i.textOnPrimaryBackground,"--text-on-primary-background",t),y((r=s.colors)==null?void 0:r.secondaryBackground,"--secondary-background",t),y((n=s.colors)==null?void 0:n.textOnSecondaryBackground,"--text-on-secondary-background",t),y((o=s.colors)==null?void 0:o.interactiveDestructiveBackground,"--destructive-color",t),y((a=s.colors)==null?void 0:a.interactiveTextOnDestructiveBackground,"--text-on-destructive-color",t),y((c=s.colors)==null?void 0:c.interactivePrimaryBackground,"--interactive-primary-background",t),y((h=s.colors)==null?void 0:h.interactiveTextOnPrimaryBackground,"--interactive-text-on-primary-background",t),y((l=s.colors)==null?void 0:l.focusColor,"--focus-color",t)};/**
62
+ * @license
63
+ * Copyright 2020 Google LLC
64
+ * SPDX-License-Identifier: BSD-3-Clause
65
+ */const Ae=()=>new bi;class bi{}const dt=new WeakMap,Ce=Et(class extends _e{render(s){return p}update(s,[t]){var i;const e=t!==this.Y;return e&&this.Y!==void 0&&this.rt(void 0),(e||this.lt!==this.ct)&&(this.Y=t,this.ht=(i=s.options)==null?void 0:i.host,this.rt(this.ct=s.element)),p}rt(s){if(this.isConnected||(s=void 0),typeof this.Y=="function"){const t=this.ht??globalThis;let e=dt.get(t);e===void 0&&(e=new WeakMap,dt.set(t,e)),e.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),e.set(this.Y,s),s!==void 0&&this.Y.call(this.ht,s)}else this.Y.value=s}get lt(){var s,t;return typeof this.Y=="function"?(s=dt.get(this.ht??globalThis))==null?void 0:s.get(this.Y):(t=this.Y)==null?void 0:t.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var $i=Object.defineProperty,Y=(s,t,e,i)=>{for(var r=void 0,n=s.length-1,o;n>=0;n--)(o=s[n])&&(r=o(t,e,r)||r);return r&&$i(t,e,r),r};const Ot=class Ot extends m{constructor(){super(...arguments),this.active=!1,this.triggerVisible=!0,this.loaded=!1,this.containerRef=Ae(),this.widgetActive$=new de(!1),this.componentIsDestroyed$=new $t}async connectedCallback(){super.connectedCallback(),this.icon=await this._renderSymbol(),this.loaded=!0,this._applyBranding()}disconnectedCallback(){super.disconnectedCallback(),this.componentIsDestroyed$.next(),this.componentIsDestroyed$.complete()}toggleActive(){var t;if(!((t=this.application)!=null&&t.root)){console.warn("Could not activate widget. No root element assigned to widget.");return}this.active=!this.active,this.active?(this.application.appendToDOM(),this.notify("widget-set-active",{widgetId:this.application.id,active:!0}),this.widgetActive$.next(!0),this.hideTrigger()):(this.application.hide(),this.notify("widget-set-active",{widgetId:this.application.id,active:!1}),this.widgetActive$.next(!1),this.showTrigger())}notify(t,e={}){window!=null&&window.parent&&window.parent.postMessage({type:t,data:e},"*")}_applyBranding(){var t;(t=this.application)!=null&&t.settings&&we(this.application.settings.branding,this)}async _renderSymbol(){var a,c,h;const t=(a=this.application)==null?void 0:a.branding(),e=(c=t==null?void 0:t.graphics)==null?void 0:c.trigger;if(e)return x` <img src=${e} class="trigger-icon" alt="" /> `;const i=(h=this.application)==null?void 0:h.triggerIcon;if(!i)return p;const r=async l=>yi,{type:n,content:o}=i;switch(n){case"Telia":{const l=await r();return l?x`<telia-icon
66
+ class="trigger-icon"
67
+ svg=${l.svg}
68
+ size="lg"
69
+ ></telia-icon>`:p}default:return p}}hideTrigger(){this.triggerVisible=!1}showTrigger(){this.triggerVisible=!0}render(){var t,e,i,r;return x`<div
70
+ class=${ee({"trigger-container":!0,hidden:!this.triggerVisible})}
71
+ ${Ce(this.containerRef)}
72
+ >
73
+ ${!this.active&&((r=(i=(e=(t=this.application)==null?void 0:t.settings)==null?void 0:e.branding)==null?void 0:i.other)!=null&&r.showButtonLabel)?x`
74
+ <button
75
+ label="${this.application.settings.branding.other.buttonLabelText??"Widget trigger"}"
76
+ class="trigger-label"
77
+ @click=${this.toggleActive}
78
+ ${mi({keyframeOptions:{},in:ui,stabilizeOut:!0,skipInitial:!1})}
79
+ >
80
+ ${this.application.settings.branding.other.buttonLabelText}
81
+ </button>
82
+ `:p}
83
+
84
+ <button
85
+ label="Widget trigger"
86
+ class=${ee({trigger:!0,active:this.active,rendered:this.loaded})}
87
+ @click=${this.toggleActive}
88
+ >
89
+ ${this.icon}
90
+ <span class="trigger-close">
91
+ <svg
92
+ width="18"
93
+ height="9"
94
+ viewBox="0 0 18 9"
95
+ fill="none"
96
+ xmlns="http://www.w3.org/2000/svg"
97
+ >
98
+ <path
99
+ d="M9 9C8.81794 9.00045 8.63759 8.96634 8.46939 8.89965C8.3012 8.83295 8.14851 8.735 8.02015 8.61145L0.194523 1.12367C0.068294 0.99862 -0.00155266 0.831133 2.61958e-05 0.657285C0.00160506 0.483436 0.0744832 0.317136 0.202964 0.194202C0.331445 0.0712675 0.505249 0.00153576 0.686941 2.50649e-05C0.868634 -0.00148563 1.04368 0.0653456 1.17437 0.186125L9 7.6739L16.8256 0.186125C16.9563 0.0653456 17.1314 -0.00148563 17.3131 2.50649e-05C17.4948 0.00153576 17.6686 0.0712675 17.797 0.194202C17.9255 0.317136 17.9984 0.483436 18 0.657285C18.0016 0.831133 17.9317 0.99862 17.8055 1.12367L9.97985 8.61145C9.85149 8.735 9.6988 8.83295 9.53061 8.89965C9.36241 8.96634 9.18206 9.00045 9 9Z"
100
+ fill="white"
101
+ />
102
+ </svg>
103
+ </span>
104
+ <span class="trigger-loader">
105
+ <svg viewBox="25 25 50 50">
106
+ <circle
107
+ cx="50"
108
+ cy="50"
109
+ r="20"
110
+ fill="none"
111
+ stroke="#000"
112
+ stroke-width="2"
113
+ stroke-miterlimit="10"
114
+ />
115
+ </svg>
116
+ </span>
117
+ </button>
118
+ </div>`}};Ot.styles=[O`
119
+ :host {
120
+ --voca-rem-multiplier: 0.625;
121
+ --trigger-label-bg: #f5e0ff;
122
+ --trigger-label-text-color: rgba(0, 0, 0, 0.8);
123
+ display: block;
124
+ box-sizing: border-box;
125
+ font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
126
+ }
127
+
128
+ :focus {
129
+ outline-color: var(--focus-color);
130
+ }
131
+
132
+ .trigger-container {
133
+ display: flex;
134
+ align-items: center;
135
+ gap: 1rem;
136
+ }
137
+
138
+ .trigger-container.hidden {
139
+ display: none;
140
+ }
141
+
142
+ .trigger {
143
+ transform: scale(0);
144
+ box-shadow: rgba(0, 0, 0, 0.16) 0px 5px 40px;
145
+ z-index: 5;
146
+ display: flex;
147
+ align-items: center;
148
+ justify-content: center;
149
+ border: none;
150
+ line-height: 55px;
151
+ height: 55px;
152
+ width: 55px;
153
+ border-radius: 55px;
154
+ cursor: pointer;
155
+ background-color: var(
156
+ --interactive-primary-background,
157
+ var(--primary-background)
158
+ );
159
+ font-family: Lato;
160
+ text-decoration: none;
161
+ border: 3px dashed transparent;
162
+ box-sizing: border-box;
163
+ transition: transform 200ms ease-out;
164
+ }
165
+
166
+ .trigger:active {
167
+ transform: scale(0.8) !important;
168
+ }
169
+
170
+ .trigger:hover:not(:active) {
171
+ transform: scale(1.1) !important;
172
+ }
173
+
174
+ .trigger.rendered {
175
+ transform: scale(1);
176
+ }
177
+
178
+ .trigger.active .trigger-icon {
179
+ opacity: 0;
180
+ transform: rotate(-180deg) scale(0);
181
+ }
182
+
183
+ .trigger.active .trigger-close {
184
+ opacity: 1;
185
+ transform: rotate(0deg) scale(1);
186
+ }
187
+
188
+ .trigger-icon {
189
+ display: inline-block;
190
+ line-height: inherit;
191
+ text-align: center;
192
+ opacity: 1;
193
+ transform: rotate(0deg) scale(1);
194
+ transition: opacity 200ms ease-out, transform 200ms ease-out;
195
+ color: var(
196
+ --interactive-text-on-primary-background,
197
+ var(--text-on-primary-background)
198
+ );
199
+ }
200
+
201
+ .trigger-close {
202
+ opacity: 0;
203
+ transition: transform 200ms ease-out;
204
+ transform: rotate(180deg) scale(0);
205
+ position: absolute;
206
+ top: 0;
207
+ bottom: 0;
208
+ left: 0;
209
+ right: 0;
210
+ display: flex;
211
+ justify-content: center;
212
+ align-items: center;
213
+ }
214
+
215
+ .trigger-close svg path {
216
+ fill: var(
217
+ --interactive-text-on-primary-background,
218
+ var(--text-on-primary-background)
219
+ );
220
+ }
221
+
222
+ img {
223
+ max-width: 100%;
224
+ }
225
+
226
+ .trigger-label {
227
+ box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.1);
228
+ background-color: var(--secondary-background);
229
+ color: var(--text-on-secondary-background);
230
+ white-space: nowrap;
231
+ padding: 0.7rem 1rem;
232
+ border-radius: 0.3rem;
233
+ font-weight: 500;
234
+ display: flex;
235
+ justify-content: center;
236
+ align-items: center;
237
+ cursor: pointer;
238
+ border: none;
239
+ font-size: 1rem;
240
+ font-family: inherit;
241
+ transition: all 300ms ease-in-out;
242
+ }
243
+
244
+ .trigger-label:hover {
245
+ opacity: 0.8;
246
+ }
247
+ `];let $=Ot;Y([g({attribute:!1})],$.prototype,"application");Y([L()],$.prototype,"active");Y([L()],$.prototype,"triggerVisible");Y([L()],$.prototype,"loaded");Y([L()],$.prototype,"icon");var _i=Object.defineProperty,C=(s,t,e,i)=>{for(var r=void 0,n=s.length-1,o;n>=0;n--)(o=s[n])&&(r=o(t,e,r)||r);return r&&_i(t,e,r),r};const xe=s=>{const e=class e extends s{constructor(){super(...arguments),this.properties={},this.context={},this.layout={},this.nodes=[]}writeProperties(r){this.properties=r}writeLayout(r){this.layout=r}writeContext(r){this.context=r}addChild(r){r.parent=this,this.nodes.push(r)}connectedCallback(){super.connectedCallback(),this.renderRoot.host.style.setProperty("--width",this.layout.size==="full"?"var(--columns, 1)":`min(${this.layout.size||"var(--columns)"}, var(--columns))`),this.application.mountComponent(this)}};e.styles=[O`
248
+ :host {
249
+ font-family: var(--font-family);
250
+ grid-column: span var(--width);
251
+ max-width: 100%;
252
+ overflow: hidden;
253
+ box-sizing: border-box;
254
+ display: block;
255
+ }
256
+ * {
257
+ box-sizing: border-box;
258
+ }
259
+ `];let t=e;return C([g()],t.prototype,"properties"),C([g()],t.prototype,"context"),C([g()],t.prototype,"layout"),C([g()],t.prototype,"name"),C([g()],t.prototype,"type"),C([g({attribute:!1})],t.prototype,"application"),C([g({attribute:!1})],t.prototype,"parent"),t},kt=class kt extends xe(m){render(){return x`Non resolved component`}};kt.styles=[O`
260
+ :host {
261
+ display: block;
262
+ }
263
+ `];let bt=kt;/**
264
+ * @license
265
+ * Copyright 2021 Google LLC
266
+ * SPDX-License-Identifier: BSD-3-Clause
267
+ */function*wi(s,t){if(s!==void 0){let e=0;for(const i of s)yield t(i,e++)}}var V=(s=>(s.Inline="inline",s.Trigger="trigger",s))(V||{});/**
268
+ * @license
269
+ * Copyright 2021 Google LLC
270
+ * SPDX-License-Identifier: BSD-3-Clause
271
+ */let Ai=class extends Event{constructor(t,e,i){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.callback=e,this.subscribe=i??!1}};/**
272
+ * @license
273
+ * Copyright 2021 Google LLC
274
+ * SPDX-License-Identifier: BSD-3-Clause
275
+ *//**
276
+ * @license
277
+ * Copyright 2021 Google LLC
278
+ * SPDX-License-Identifier: BSD-3-Clause
279
+ */class Ci{get value(){return this.o}set value(t){this.setValue(t)}setValue(t,e=!1){const i=e||!Object.is(t,this.o);this.o=t,i&&this.updateObservers()}constructor(t){this.subscriptions=new Map,this.updateObservers=()=>{for(const[e,{disposer:i}]of this.subscriptions)e(this.o,i)},t!==void 0&&(this.value=t)}addCallback(t,e,i){if(!i)return void t(this.value);this.subscriptions.has(t)||this.subscriptions.set(t,{disposer:()=>{this.subscriptions.delete(t)},consumerHost:e});const{disposer:r}=this.subscriptions.get(t);t(this.value,r)}clearCallbacks(){this.subscriptions.clear()}}/**
280
+ * @license
281
+ * Copyright 2021 Google LLC
282
+ * SPDX-License-Identifier: BSD-3-Clause
283
+ */let xi=class extends Event{constructor(t){super("context-provider",{bubbles:!0,composed:!0}),this.context=t}};class ie extends Ci{constructor(t,e,i){var r,n;super(e.context!==void 0?e.initialValue:i),this.onContextRequest=o=>{const a=o.composedPath()[0];o.context===this.context&&a!==this.host&&(o.stopPropagation(),this.addCallback(o.callback,a,o.subscribe))},this.onProviderRequest=o=>{const a=o.composedPath()[0];if(o.context!==this.context||a===this.host)return;const c=new Set;for(const[h,{consumerHost:l}]of this.subscriptions)c.has(h)||(c.add(h),l.dispatchEvent(new Ai(this.context,h,!0)));o.stopPropagation()},this.host=t,e.context!==void 0?this.context=e.context:this.context=e,this.attachListeners(),(n=(r=this.host).addController)==null||n.call(r,this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new xi(this.context))}}/**
284
+ * @license
285
+ * Copyright 2017 Google LLC
286
+ * SPDX-License-Identifier: BSD-3-Clause
287
+ */function Ei({context:s}){return(t,e)=>{const i=new WeakMap;if(typeof e=="object")return e.addInitializer(function(){i.set(this,new ie(this,{context:s}))}),{get(){return t.get.call(this)},set(r){var n;return(n=i.get(this))==null||n.setValue(r),t.set.call(this,r)},init(r){var n;return(n=i.get(this))==null||n.setValue(r),r}};{t.constructor.addInitializer(o=>{i.set(o,new ie(o,{context:s}))});const r=Object.getOwnPropertyDescriptor(t,e);let n;if(r===void 0){const o=new WeakMap;n={get(){return o.get(this)},set(a){i.get(this).setValue(a),o.set(this,a)},configurable:!0,enumerable:!0}}else{const o=r.set;n={...r,set(a){i.get(this).setValue(a),o==null||o.call(this,a)}}}return void Object.defineProperty(t,e,n)}}}var Si=Object.defineProperty,Ee=(s,t,e,i)=>{for(var r=void 0,n=s.length-1,o;n>=0;n--)(o=s[n])&&(r=o(t,e,r)||r);return r&&Si(t,e,r),r};const Pi="application",Tt=class Tt extends m{constructor(){super(...arguments),this.nodes=[],this.wrapperRef=Ae(),this.fullscreen=!1,this.isReady=new de(!1)}addChild(t){t.parent=this,this.nodes.push(t)}applyBranding(){if(!this.wrapperRef.value)return;const t=this.application.settings;t!=null&&t.branding&&we(t.branding,this.wrapperRef.value)}applyStyles(){if(!this.wrapperRef.value)return;const t=this.application.styles(),e=this.wrapperRef.value;Object.entries(t).forEach(([i,r])=>{e.style.setProperty(`--${i}`,r)})}firstUpdated(t){this.applyBranding(),this.applyStyles()}render(){var i,r;const t=this.application.settings.components.conversation;return((r=(i=t==null?void 0:t.properties)==null?void 0:i.chat)==null?void 0:r.isThirdPartyWidget)?this.renderRoot.host.classList.add("third-party"):this.application.renderStrategy===V.Trigger&&(this.renderRoot.host.classList.add("floating"),this.application.anchor==="BottomLeft"?this.renderRoot.host.classList.add("bottom-left"):this.application.anchor==="BottomRight"&&this.renderRoot.host.classList.add("bottom-right")),this.application.fullscreen&&this.renderRoot.host.classList.add("fullscreen"),window.self!==window.top&&this.renderRoot.host.classList.add("embedded"),x`<div class="widget-container" ${Ce(this.wrapperRef)}>
288
+ ${wi(this.nodes,n=>n)}
289
+ </div>`}};Tt.styles=O`
290
+ :host {
291
+ --font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
292
+ --spacing-xs: 0.2rem;
293
+ --spacing-sm: 0.5rem;
294
+ --spacing-md: 1rem;
295
+ --spacing-lg: 1.2rem;
296
+ --spacing-xl: 1.8rem;
297
+
298
+ --inverted-spacing-lg: -1.2rem;
299
+
300
+ --text-color: #222222;
301
+ --link-color: #990ae3;
302
+ --gray-color: #f3f3f8;
303
+ --white-color: #fff;
304
+ --gray-dark-color: #a6a6a6;
305
+ --black-border-color: #00000054;
306
+
307
+ --box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
308
+ --border-radius: var(--spacing-sm);
309
+ --border-radius-sm: var(--spacing-sm);
310
+ --border-radius-lg: var(--spacing-lg);
311
+ --border-radius-xl: var(--spacing-xl);
312
+ --gap: var(--spacing-sm);
313
+
314
+ --header-height: 69px;
315
+ }
316
+
317
+ :host {
318
+ --voca-rem-multiplier: 0.625;
319
+ box-sizing: border-box;
320
+ display: block;
321
+ }
322
+
323
+ :host(.inline) {
324
+ height: 100%;
325
+ position: fixed;
326
+ inset: 0 0 0 0;
327
+ }
328
+
329
+ :host(.floating) {
330
+ z-index: 6;
331
+ position: fixed;
332
+ }
333
+
334
+ :host(.fullscreen.floating) {
335
+ inset: 0 !important;
336
+ height: 100% !important;
337
+ width: auto !important;
338
+ max-height: none !important;
339
+ }
340
+
341
+ :host(.fullscreen.floating) .widget-container {
342
+ box-shadow: none !important;
343
+ border-radius: 0 !important;
344
+ }
345
+
346
+ @media screen and (max-width: 800px) {
347
+ :host(.floating) {
348
+ inset: 0;
349
+ height: 100%;
350
+ }
351
+
352
+ :host(.third-party) {
353
+ inset: 0;
354
+ height: 100vh;
355
+ }
356
+ }
357
+
358
+ @media screen and (min-width: 801px) {
359
+ :host(.floating) {
360
+ inset: auto 20px 20px auto;
361
+ max-height: calc(100vh - 120px);
362
+ width: 400px;
363
+ height: 775px;
364
+ }
365
+
366
+ :host(.third-party) {
367
+ max-width: 1000px;
368
+ height: 100vh;
369
+ position: relative;
370
+ left: 50%;
371
+ transform: translateX(-50%);
372
+ margin: -10px 0;
373
+ }
374
+
375
+ :host(.floating.bottom-right) {
376
+ inset: auto 20px 20px auto;
377
+ }
378
+
379
+ :host(.floating.bottom-left) {
380
+ inset: auto auto 20px 20px;
381
+ }
382
+ }
383
+
384
+ :host(.floating) .widget-container {
385
+ box-shadow: rgba(0, 0, 0, 0.16) 0px 5px 40px;
386
+ border-radius: 0.7rem;
387
+
388
+ @media screen and (max-width: 800px) {
389
+ border-radius: 0;
390
+ }
391
+ }
392
+
393
+ * {
394
+ box-sizing: border-box;
395
+ }
396
+
397
+ .widget-container {
398
+ height: 100%;
399
+ background-color: var(--primary-background);
400
+ padding: var(--spacing-sm);
401
+ border: var(--widget-border, none);
402
+ }
403
+
404
+ @keyframes slideDown {
405
+ from {
406
+ transform: translateY(0);
407
+ opacity: 1;
408
+ }
409
+ to {
410
+ transform: translateY(100%);
411
+ opacity: 0;
412
+ }
413
+ }
414
+
415
+ @keyframes slideUp {
416
+ from {
417
+ transform: translateY(100%);
418
+ opacity: 0;
419
+ }
420
+ to {
421
+ transform: translateY(0);
422
+ opacity: 1;
423
+ }
424
+ }
425
+
426
+ :host(.expanded) {
427
+ opacity: 1;
428
+ animation: slideUp 0.3s linear;
429
+ }
430
+
431
+ :host(.hidden) {
432
+ opacity: 0;
433
+ animation: slideDown 0.3s linear;
434
+ pointer-events: none;
435
+ }
436
+
437
+ :host(.hidden.embedded),
438
+ :host(.expanded.embedded) {
439
+ animation: none;
440
+ }
441
+ `;let z=Tt;Ee([g({attribute:!0})],z.prototype,"fullscreen");Ee([g({attribute:!1}),Ei({context:Pi})],z.prototype,"application");const tt=class tt{constructor(t=tt.endpoint){this._endpoint=t}async getSite(t){const i=await(await fetch(t)).json();return i?{id:i.id,triggers:i.triggers||[],apps:(i.widgets||[]).map(r=>{let n=V.Trigger;r.renderStrategy.toLowerCase()==="inline"&&(n=V.Inline);const o=r.widgetId?r.widgetId:r.id,a=typeof r.autoActivate=="boolean"?r.autoActivate:!1,c=typeof r.anchor=="string"?r.anchor:"BottomRight",h=typeof r.triggerIcon=="string"?r.triggerIcon:"question";return{id:o,widgetId:o,renderStrategy:n,autoActivate:a,anchor:c,triggerIcon:{type:"Telia",content:h}}})}:null}async getWidget(t){const i=await(await fetch(`${this._endpoint}/widget/${t}`)).json();return i?{name:i.name,config:JSON.parse(i.configuration)}:null}};tt.endpoint="https://widgets.ace.teliacompany.net/api";let se=tt;var Oi=Object.defineProperty,St=(s,t,e,i)=>{for(var r=void 0,n=s.length-1,o;n>=0;n--)(o=s[n])&&(r=o(t,e,r)||r);return r&&Oi(t,e,r),r};const Mt=class Mt extends m{constructor(){super(),this.status="deactivated",this.addEventListener("environment-created",this.onEnvironmentCreated)}async connectedCallback(){super.connectedCallback(),await this.getGlobalEnvironment()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("environment-created",this.onEnvironmentCreated)}async onEnvironmentCreated(t){this.widget=t.detail.widget,await this.activate(),this.requestUpdate()}async activate(){this.widget&&(await this.widget.activate(),this.status="activated")}async getGlobalEnvironment(){const t=globalThis.widgets;t&&(this.widget=t.applications.find(e=>e.name===this.name),await this.activate())}render(){if(!this.widget||this.status!=="activated")return p;if(this.widget.renderStrategy===V.Trigger){const t=new $;return t.application=this.widget,t}return this.widget.render()}};Mt.styles=[O`
442
+ :host {
443
+ display: block;
444
+ }
445
+ `];let H=Mt;St([g({attribute:!0})],H.prototype,"name");St([L()],H.prototype,"widget");St([L()],H.prototype,"status");customElements.get("ace-trigger-slot")||customElements.define("ace-trigger-slot",X);customElements.get("ace-trigger")||customElements.define("ace-trigger",$);customElements.get("ace-unresolved-component")||customElements.define("ace-unresolved-component",bt);customElements.get("ace-wrapper")||customElements.define("ace-wrapper",z);customElements.get("ace-widget")||customElements.define("ace-widget",H);const ki=Ge`
446
+ <g clip-path="url(#clip0_119_1665)">
447
+ <path d="M16.9321 27.4656C11.5983 29.6245 8.54568 28.9365 6.85856 27.5904L6.83398 27.5712C9.44534 30.1717 12.4221 32.0011 15.0324 32.0011C19.6033 32.0011 25.8614 26.4651 28.8232 17.8805C27.1542 20.9792 23.5727 24.7861 16.9321 27.4656Z" fill="#990AE3"/>
448
+ <path d="M20.9805 22.4843C25.1369 20.0779 28.8809 15.9968 30.0615 13.0869C30.397 10.6784 30.4654 10.3744 30.506 7.72479C30.5113 7.35786 30.4889 7.00586 30.4547 6.66879C30.2122 10.56 25.1743 15.4528 18.5092 18.6496C10.4689 22.5056 4.43734 23.5435 1.74585 20.6027C2.68077 22.4459 3.29407 23.3408 4.34545 24.7083C7.45044 27.4539 13.9852 26.5355 20.9805 22.4843Z" fill="#990AE3"/>
449
+ <path d="M17.5721 15.8923C25.1562 12.24 30.4387 7.04427 29.5177 3.6C28.0058 0.993067 24.9457 0 21.6644 0C11.9381 0 0 6.4 0 14.5653C0 15.6149 0.231859 16.7883 0.647496 18.0181C2.86565 20.9568 9.64833 19.7077 17.5721 15.8923Z" fill="#990AE3"/>
450
+ </g>
451
+ <path d="M84.228 15.9056V24.3077H81.4938V22.9307C80.5664 24.1413 79.0919 24.5925 77.8557 24.5925C75.2881 24.5925 73.7666 22.9787 73.7666 20.9605C73.7666 18.6587 76.3587 16.7835 79.5203 16.7835C80.139 16.7835 80.8046 16.8315 81.3987 17.0213V16.2384C81.3987 15.0512 80.7096 14.4347 79.3066 14.4347C78.0469 14.4347 76.9293 15.0757 76.2401 15.9067L74.1716 14.3877C75.3362 13.0352 77.3342 12.0859 79.3547 12.0859C82.5163 12.0837 84.228 13.4608 84.228 15.9056ZM81.3987 19.7264V19.2037C80.9232 19.0373 80.4243 18.9904 79.8056 18.9904C77.6655 18.9904 76.5724 19.8448 76.5724 20.8891C76.5724 21.7435 77.3097 22.2896 78.4273 22.2896C79.9007 22.2896 81.3987 21.4117 81.3987 19.7264Z" fill="#990AE3"/>
452
+ <path d="M68.75 9.06934C68.75 8.14347 69.5588 7.384 70.4852 7.384C71.3891 7.384 72.1969 8.14347 72.1969 9.06934C72.1969 9.9952 71.3881 10.7547 70.4852 10.7547C69.5588 10.7547 68.75 9.9952 68.75 9.06934ZM69.0118 24.3077V12.44H71.9362V24.3077H69.0118Z" fill="#990AE3"/>
453
+ <path d="M67.2286 24.3547C66.7766 24.4496 66.3012 24.4731 65.8738 24.4731C63.7817 24.4731 62.8542 23.4757 62.8542 21.4587V7.69226H65.7787V21.0555C65.7787 22.0763 66.3973 22.2181 67.2286 22.1232V24.3547Z" fill="#990AE3"/>
454
+ <path d="M60.9994 19.2048H52.2262C52.535 20.9616 53.7958 22.1243 55.4124 22.1243C56.6251 22.1243 57.5995 21.5781 58.1947 20.6768L60.525 22.0773C59.3358 23.6677 57.3869 24.6171 55.4134 24.6171C52.1567 24.6171 49.3274 22.0304 49.3274 18.3269C49.3274 14.6235 52.1332 12.0613 55.2713 12.0613C59.3828 12.0603 61.4033 15.336 60.9994 19.2048ZM52.3213 16.9968H58.1701C57.8132 15.4544 56.8153 14.4805 55.2692 14.4805C53.8193 14.4816 52.7251 15.4779 52.3213 16.9968Z" fill="#990AE3"/>
455
+ <path d="M51.5839 10.3984H46.6379V24.3077H43.4998V10.3984H38.5068V7.69226H51.5839V10.3984Z" fill="#990AE3"/>
456
+ <path d="M126.394 7.98875H138.935V10.7756H129.668V14.2592H137.889V17.0461H129.668V21.4587H139.167V24.2456H126.394V7.98875Z" fill="#990AE3"/>
457
+ <path d="M117.4 24.6171C115.682 24.6171 114.126 24.261 112.732 23.5488C111.339 22.8366 110.24 21.8379 109.434 20.5529C108.645 19.2523 108.25 17.7737 108.25 16.1171C108.25 14.4604 108.645 12.9896 109.434 11.7045C110.24 10.404 111.339 9.39758 112.732 8.68537C114.126 7.97317 115.682 7.61707 117.4 7.61707C118.84 7.61707 120.148 7.84156 121.325 8.29056C122.502 8.72408 123.477 9.32016 124.251 10.0788L121.999 12.2154C120.868 11.0078 119.359 10.404 117.47 10.404C116.34 10.404 115.326 10.6517 114.428 11.1471C113.53 11.6271 112.825 12.3006 112.314 13.1676C111.819 14.0346 111.571 15.0178 111.571 16.1171C111.571 17.2163 111.819 18.1995 112.314 19.0665C112.825 19.9336 113.53 20.6148 114.428 21.1102C115.326 21.5902 116.34 21.8302 117.47 21.8302C118.523 21.8302 119.429 21.6521 120.187 21.296C120.961 20.9399 121.627 20.4367 122.184 19.7865L124.414 21.8302C123.609 22.7127 122.61 23.4017 121.418 23.8971C120.241 24.3771 118.902 24.6171 117.4 24.6171Z" fill="#990AE3"/>
458
+ <path d="M97.1488 7.98875H100.656L107.46 24.2456H103.977L102.514 20.6226H95.0122L93.5026 24.2456H90.228L97.1488 7.98875ZM101.445 17.9751L98.8209 11.5188L96.1269 17.9751H101.445Z" fill="#990AE3"/>
459
+ <defs>
460
+ <clipPath id="clip0_119_1665">
461
+ <rect width="30.5068" height="32.0011" fill="white"/>
462
+ </clipPath>
463
+ </defs>`,re=xe(m),Ht=class Ht extends re{render(){var e;return(e=this.application.branding().other)!=null&&e.whiteLabel?p:x` <div class="copyright">
464
+ <a
465
+ aria-label="Powered by Telia ACE"
466
+ href="https://ace-showcase.com"
467
+ target="_blank"
468
+ rel="noopener noreferrer"
469
+ >
470
+ <span>Powered by</span>
471
+ <svg
472
+ width="142"
473
+ height="32"
474
+ viewBox="0 0 142 32"
475
+ fill="none"
476
+ xmlns="http://www.w3.org/2000/svg"
477
+ >
478
+ ${ki}
479
+ </svg>
480
+ </a>
481
+ </div>`}};Ht.styles=[re.styles||[],O`
482
+ :host {
483
+ --copyright-text-color: var(--text-on-primary-background);
484
+ }
485
+
486
+ :focus {
487
+ outline-color: var(--focus-color);
488
+ }
489
+
490
+ .copyright {
491
+ padding: var(--spacing-sx);
492
+ box-shadow: 1px 0px 10px rgba(0, 0, 0, 0.1);
493
+ z-index: 6;
494
+ background-color: transparent;
495
+ }
496
+
497
+ a {
498
+ display: flex;
499
+ justify-content: center;
500
+ align-items: center;
501
+ color: var(--copyright-text-color);
502
+ text-decoration: none;
503
+ font-size: 0.8rem;
504
+ gap: var(--spacing-sm);
505
+ }
506
+
507
+ span {
508
+ opacity: 0.55;
509
+ }
510
+
511
+ svg {
512
+ width: 88px;
513
+ }
514
+ `];let Q=Ht;exports.Copyright=Q;exports.default=Q;