@telia-ace/widget-components-area-flamingo 1.1.111-rc.0 → 1.1.111-rc.1

Sign up to get free protection for your applications and to get access to all the features.
package/area-hi1yRfU6.js DELETED
@@ -1,455 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});/**
2
- * @license
3
- * Copyright 2019 Google LLC
4
- * SPDX-License-Identifier: BSD-3-Clause
5
- */const W=globalThis,vt=W.ShadowRoot&&(W.ShadyCSS===void 0||W.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,$t=Symbol(),Ut=new WeakMap;let ne=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==$t)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(vt&&t===void 0){const i=e!==void 0&&e.length===1;i&&(t=Ut.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&Ut.set(e,t))}return t}toString(){return this.cssText}};const Ae=s=>new ne(typeof s=="string"?s:s+"",void 0,$t),O=(s,...t)=>{const e=s.length===1?s[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)+s[r+1],s[0]);return new ne(e,s,$t)},xe=(s,t)=>{if(vt)s.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const i=document.createElement("style"),n=W.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=e.cssText,s.appendChild(i)}},jt=vt?s=>s:s=>s instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return Ae(e)})(s):s;/**
6
- * @license
7
- * Copyright 2017 Google LLC
8
- * SPDX-License-Identifier: BSD-3-Clause
9
- */const{is:Se,defineProperty:Ce,getOwnPropertyDescriptor:Ee,getOwnPropertyNames:Pe,getOwnPropertySymbols:Oe,getPrototypeOf:ke}=Object,w=globalThis,Mt=w.trustedTypes,Te=Mt?Mt.emptyScript:"",st=w.reactiveElementPolyfillSupport,N=(s,t)=>s,K={toAttribute(s,t){switch(t){case Boolean:s=s?Te: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}},_t=(s,t)=>!Se(s,t),Nt={attribute:!0,type:String,converter:K,reflect:!1,hasChanged:_t};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=Nt){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),n=this.getPropertyDescriptor(t,i,e);n!==void 0&&Ce(this.prototype,t,n)}}static getPropertyDescriptor(t,e,i){const{get:n,set:r}=Ee(this.prototype,t)??{get(){return this[e]},set(o){this[e]=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)??Nt}static _$Ei(){if(this.hasOwnProperty(N("elementProperties")))return;const t=ke(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(N("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(N("properties"))){const e=this.properties,i=[...Pe(e),...Oe(e)];for(const n of i)this.createProperty(n,e[n])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[i,n]of e)this.elementProperties.set(i,n)}this._$Eh=new Map;for(const[e,i]of this.elementProperties){const n=this._$Eu(e,i);n!==void 0&&this._$Eh.set(n,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 n of i)e.unshift(jt(n))}else t!==void 0&&e.push(jt(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 xe(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 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:K).toAttribute(e,i.type);this._$Em=t,o==null?this.removeAttribute(n):this.setAttribute(n,o),this._$Em=null}}_$AK(t,e){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:K;this._$Em=n,this[n]=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??_t)(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[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.P(r,this[r],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(i=this._$EO)==null||i.forEach(n=>{var r;return(r=n.hostUpdate)==null?void 0:r.call(n)}),this.update(e)):this._$EU()}catch(n){throw t=!1,this._$EU(),n}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.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)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU()}updated(t){}firstUpdated(t){}};T.elementStyles=[],T.shadowRootOptions={mode:"open"},T[N("elementProperties")]=new Map,T[N("finalized")]=new Map,st==null||st({ReactiveElement:T}),(w.reactiveElementVersions??(w.reactiveElementVersions=[])).push("2.0.4");/**
10
- * @license
11
- * Copyright 2017 Google LLC
12
- * SPDX-License-Identifier: BSD-3-Clause
13
- */const I=globalThis,G=I.trustedTypes,It=G?G.createPolicy("lit-html",{createHTML:s=>s}):void 0,re="$lit$",_=`lit$${Math.random().toFixed(9).slice(2)}$`,oe="?"+_,Re=`<${oe}>`,E=document,H=()=>E.createComment(""),B=s=>s===null||typeof s!="object"&&typeof s!="function",wt=Array.isArray,Ue=s=>wt(s)||typeof(s==null?void 0:s[Symbol.iterator])=="function",nt=`[
14
- \f\r]`,M=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Lt=/-->/g,Ht=/>/g,A=RegExp(`>|${nt}(?:([^\\s"'>=/]+)(${nt}*=${nt}*(?:[^
15
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Bt=/'/g,zt=/"/g,ae=/^(?:script|style|textarea|title)$/i,je=s=>(t,...e)=>({_$litType$:s,strings:t,values:e}),S=je(1),P=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),Dt=new WeakMap,C=E.createTreeWalker(E,129);function ce(s,t){if(!wt(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return It!==void 0?It.createHTML(t):t}const Me=(s,t)=>{const e=s.length-1,i=[];let n,r=t===2?"<svg>":t===3?"<math>":"",o=M;for(let a=0;a<e;a++){const c=s[a];let h,l,u=-1,p=0;for(;p<c.length&&(o.lastIndex=p,l=o.exec(c),l!==null);)p=o.lastIndex,o===M?l[1]==="!--"?o=Lt:l[1]!==void 0?o=Ht:l[2]!==void 0?(ae.test(l[2])&&(n=RegExp("</"+l[2],"g")),o=A):l[3]!==void 0&&(o=A):o===A?l[0]===">"?(o=n??M,u=-1):l[1]===void 0?u=-2:(u=o.lastIndex-l[2].length,h=l[1],o=l[3]===void 0?A:l[3]==='"'?zt:Bt):o===zt||o===Bt?o=A:o===Lt||o===Ht?o=M:(o=A,n=void 0);const f=o===A&&s[a+1].startsWith("/>")?" ":"";r+=o===M?c+Re:u>=0?(i.push(h),c.slice(0,u)+re+c.slice(u)+_+f):c+_+(u===-2?a:f)}return[ce(s,r+(s[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),i]};let ut=class he{constructor({strings:t,_$litType$:e},i){let n;this.parts=[];let r=0,o=0;const a=t.length-1,c=this.parts,[h,l]=Me(t,e);if(this.el=he.createElement(h,i),C.currentNode=this.el.content,e===2||e===3){const u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(n=C.nextNode())!==null&&c.length<a;){if(n.nodeType===1){if(n.hasAttributes())for(const u of n.getAttributeNames())if(u.endsWith(re)){const p=l[o++],f=n.getAttribute(u).split(_),k=/([.?@])?(.*)/.exec(p);c.push({type:1,index:r,name:k[2],strings:f,ctor:k[1]==="."?Ie:k[1]==="?"?Le:k[1]==="@"?He:et}),n.removeAttribute(u)}else u.startsWith(_)&&(c.push({type:6,index:r}),n.removeAttribute(u));if(ae.test(n.tagName)){const u=n.textContent.split(_),p=u.length-1;if(p>0){n.textContent=G?G.emptyScript:"";for(let f=0;f<p;f++)n.append(u[f],H()),C.nextNode(),c.push({type:2,index:++r});n.append(u[p],H())}}}else if(n.nodeType===8)if(n.data===oe)c.push({type:2,index:r});else{let u=-1;for(;(u=n.data.indexOf(_,u+1))!==-1;)c.push({type:7,index:r}),u+=_.length-1}r++}}static createElement(t,e){const i=E.createElement("template");return i.innerHTML=t,i}};function R(s,t,e=s,i){var o,a;if(t===P)return t;let n=i!==void 0?(o=e._$Co)==null?void 0:o[i]:e._$Cl;const r=B(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(s),n._$AT(s,e,i)),i!==void 0?(e._$Co??(e._$Co=[]))[i]=n:e._$Cl=n),n!==void 0&&(t=R(s,n._$AS(s,t.values),n,i)),t}class Ne{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,n=((t==null?void 0:t.creationScope)??E).importNode(e,!0);C.currentNode=n;let r=C.nextNode(),o=0,a=0,c=i[0];for(;c!==void 0;){if(o===c.index){let h;c.type===2?h=new V(r,r.nextSibling,this,t):c.type===1?h=new c.ctor(r,c.name,c.strings,this,t):c.type===6&&(h=new Be(r,this,t)),this._$AV.push(h),c=i[++a]}o!==(c==null?void 0:c.index)&&(r=C.nextNode(),o++)}return C.currentNode=E,n}p(t){let e=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class V{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,i,n){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=n,this._$Cv=(n==null?void 0:n.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=R(this,t,e),B(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==P&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Ue(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!==d&&B(this._$AH)?this._$AA.nextSibling.data=t:this.T(E.createTextNode(t)),this._$AH=t}$(t){var r;const{values:e,_$litType$:i}=t,n=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=ut.createElement(ce(i.h,i.h[0]),this.options)),i);if(((r=this._$AH)==null?void 0:r._$AD)===n)this._$AH.p(e);else{const o=new Ne(n,this),a=o.u(this.options);o.p(e),this.T(a),this._$AH=o}}_$AC(t){let e=Dt.get(t.strings);return e===void 0&&Dt.set(t.strings,e=new ut(t)),e}k(t){wt(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,n=0;for(const r of t)n===e.length?e.push(i=new V(this.O(H()),this.O(H()),this,this.options)):i=e[n],i._$AI(r),n++;n<e.length&&(this._$AR(i&&i._$AB.nextSibling,n),e.length=n)}_$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 n=t.nextSibling;t.remove(),t=n}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}}class et{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,n,r){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,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=d}_$AI(t,e=this,i,n){const r=this.strings;let o=!1;if(r===void 0)t=R(this,t,e,0),o=!B(t)||t!==this._$AH&&t!==P,o&&(this._$AH=t);else{const a=t;let c,h;for(t=r[0],c=0;c<r.length-1;c++)h=R(this,a[i+c],e,c),h===P&&(h=this._$AH[c]),o||(o=!B(h)||h!==this._$AH[c]),h===d?t=d:t!==d&&(t+=(h??"")+r[c+1]),this._$AH[c]=h}o&&!n&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Ie extends et{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}}class Le extends et{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}}class He extends et{constructor(t,e,i,n,r){super(t,e,i,n,r),this.type=5}_$AI(t,e=this){if((t=R(this,t,e,0)??d)===P)return;const i=this._$AH,n=t===d&&i!==d||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,r=t!==d&&(i===d||n);n&&this.element.removeEventListener(this.name,this,i),r&&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 Be{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){R(this,t)}}const rt=I.litHtmlPolyfillSupport;rt==null||rt(ut,V),(I.litHtmlVersions??(I.litHtmlVersions=[])).push("3.2.1");const ze=(s,t,e)=>{const i=(e==null?void 0:e.renderBefore)??t;let n=i._$litPart$;if(n===void 0){const r=(e==null?void 0:e.renderBefore)??null;i._$litPart$=n=new V(t.insertBefore(H(),r),r,void 0,e??{})}return n._$AI(s),n};/**
16
- * @license
17
- * Copyright 2017 Google LLC
18
- * SPDX-License-Identifier: BSD-3-Clause
19
- */let y=class extends T{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e;const t=super.createRenderRoot();return(e=this.renderOptions).renderBefore??(e.renderBefore=t.firstChild),t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=ze(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return P}};var se;y._$litElement$=!0,y.finalized=!0,(se=globalThis.litElementHydrateSupport)==null||se.call(globalThis,{LitElement:y});const ot=globalThis.litElementPolyfillSupport;ot==null||ot({LitElement:y});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.1.1");/**
20
- * @license
21
- * Copyright 2021 Google LLC
22
- * SPDX-License-Identifier: BSD-3-Clause
23
- */function*le(s,t){if(s!==void 0){let e=0;for(const i of s)yield t(i,e++)}}var dt=function(s,t){return dt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])},dt(s,t)};function F(s,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");dt(s,t);function e(){this.constructor=s}s.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}function pt(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),n,r=[],o;try{for(;(t===void 0||t-- >0)&&!(n=i.next()).done;)r.push(n.value)}catch(a){o={error:a}}finally{try{n&&!n.done&&(e=i.return)&&e.call(i)}finally{if(o)throw o.error}}return r}function gt(s,t,e){if(e||arguments.length===2)for(var i=0,n=t.length,r;i<n;i++)(r||!(i in t))&&(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return s.concat(r||Array.prototype.slice.call(t))}function v(s){return typeof s=="function"}function ue(s){var t=function(i){Error.call(i),i.stack=new Error().stack},e=s(t);return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var at=ue(function(s){return function(e){s(this),this.message=e?e.length+` errors occurred during unsubscription:
24
- `+e.map(function(i,n){return n+1+") "+i.toString()}).join(`
25
- `):"",this.name="UnsubscriptionError",this.errors=e}});function mt(s,t){if(s){var e=s.indexOf(t);0<=e&&s.splice(e,1)}}var it=function(){function s(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return s.prototype.unsubscribe=function(){var t,e,i,n,r;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=pt(o),c=a.next();!c.done;c=a.next()){var h=c.value;h.remove(this)}}catch(m){t={error:m}}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(v(l))try{l()}catch(m){r=m instanceof at?m.errors:[m]}var u=this._finalizers;if(u){this._finalizers=null;try{for(var p=pt(u),f=p.next();!f.done;f=p.next()){var k=f.value;try{Vt(k)}catch(m){r=r??[],m instanceof at?r=gt(gt([],ft(r)),ft(m.errors)):r.push(m)}}}catch(m){i={error:m}}finally{try{f&&!f.done&&(n=p.return)&&n.call(p)}finally{if(i)throw i.error}}}if(r)throw new at(r)}},s.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)Vt(t);else{if(t instanceof s){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(t)}},s.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},s.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},s.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&mt(e,t)},s.prototype.remove=function(t){var e=this._finalizers;e&&mt(e,t),t instanceof s&&t._removeParent(this)},s.EMPTY=function(){var t=new s;return t.closed=!0,t}(),s}(),de=it.EMPTY;function pe(s){return s instanceof it||s&&"closed"in s&&v(s.remove)&&v(s.add)&&v(s.unsubscribe)}function Vt(s){v(s)?s():s.unsubscribe()}var De={Promise:void 0},Ve={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 Fe(s){Ve.setTimeout(function(){throw s})}function Ft(){}function Z(s){s()}var fe=function(s){F(t,s);function t(e){var i=s.call(this)||this;return i.isStopped=!1,e?(i.destination=e,pe(e)&&e.add(i)):i.destination=We,i}return t.create=function(e,i,n){return new yt(e,i,n)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,s.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(it),Ye=function(){function s(t){this.partialObserver=t}return s.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(i){q(i)}},s.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(i){q(i)}else q(t)},s.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){q(e)}},s}(),yt=function(s){F(t,s);function t(e,i,n){var r=s.call(this)||this,o;return v(e)||!e?o={next:e??void 0,error:i??void 0,complete:n??void 0}:o=e,r.destination=new Ye(o),r}return t}(fe);function q(s){Fe(s)}function qe(s){throw s}var We={closed:!0,next:Ft,error:qe,complete:Ft},Ze=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Ke(s){return s}function Ge(s){return s.length===0?Ke:s.length===1?s[0]:function(e){return s.reduce(function(i,n){return n(i)},e)}}var Yt=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 n=this,r=Je(t)?t:new yt(t,e,i);return Z(function(){var o=n,a=o.operator,c=o.source;r.add(a?a.call(r,c):c?n._subscribe(r):n._trySubscribe(r))}),r},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=qt(e),new e(function(n,r){var o=new yt({next:function(a){try{t(a)}catch(c){r(c),o.unsubscribe()}},error:r,complete:n});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[Ze]=function(){return this},s.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Ge(t)(this)},s.prototype.toPromise=function(t){var e=this;return t=qt(t),new t(function(i,n){var r;e.subscribe(function(o){return r=o},function(o){return n(o)},function(){return i(r)})})},s.create=function(t){return new s(t)},s}();function qt(s){var t;return(t=s??De.Promise)!==null&&t!==void 0?t:Promise}function Xe(s){return s&&v(s.next)&&v(s.error)&&v(s.complete)}function Je(s){return s&&s instanceof fe||Xe(s)&&pe(s)}var Qe=ue(function(s){return function(){s(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),At=function(s){F(t,s);function t(){var e=s.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return t.prototype.lift=function(e){var i=new Wt(this,this);return i.operator=e,i},t.prototype._throwIfClosed=function(){if(this.closed)throw new Qe},t.prototype.next=function(e){var i=this;Z(function(){var n,r;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var o=pt(i.currentObservers),a=o.next();!a.done;a=o.next()){var c=a.value;c.next(e)}}catch(h){n={error:h}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}})},t.prototype.error=function(e){var i=this;Z(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=e;for(var n=i.observers;n.length;)n.shift().error(e)}})},t.prototype.complete=function(){var e=this;Z(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var i=e.observers;i.length;)i.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(e){return this._throwIfClosed(),s.prototype._trySubscribe.call(this,e)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var i=this,n=this,r=n.hasError,o=n.isStopped,a=n.observers;return r||o?de:(this.currentObservers=null,a.push(e),new it(function(){i.currentObservers=null,mt(a,e)}))},t.prototype._checkFinalizedStatuses=function(e){var i=this,n=i.hasError,r=i.thrownError,o=i.isStopped;n?e.error(r):o&&e.complete()},t.prototype.asObservable=function(){var e=new Yt;return e.source=this,e},t.create=function(e,i){return new Wt(e,i)},t}(Yt),Wt=function(s){F(t,s);function t(e,i){var n=s.call(this)||this;return n.destination=e,n.source=i,n}return t.prototype.next=function(e){var i,n;(n=(i=this.destination)===null||i===void 0?void 0:i.next)===null||n===void 0||n.call(i,e)},t.prototype.error=function(e){var i,n;(n=(i=this.destination)===null||i===void 0?void 0:i.error)===null||n===void 0||n.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,n;return(n=(i=this.source)===null||i===void 0?void 0:i.subscribe(e))!==null&&n!==void 0?n:de},t}(At),ti=function(s){F(t,s);function t(e){var i=s.call(this)||this;return i._value=e,i}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(e){var i=s.prototype._subscribe.call(this,e);return!i.closed&&e.next(this._value),i},t.prototype.getValue=function(){var e=this,i=e.hasError,n=e.thrownError,r=e._value;if(i)throw n;return this._throwIfClosed(),r},t.prototype.next=function(e){s.prototype.next.call(this,this._value=e)},t}(At);/**
26
- * @license
27
- * Copyright 2017 Google LLC
28
- * SPDX-License-Identifier: BSD-3-Clause
29
- */const ei={attribute:!0,type:String,converter:K,reflect:!1,hasChanged:_t},ii=(s=ei,t,e)=>{const{kind:i,metadata:n}=e;let r=globalThis.litPropertyMetadata.get(n);if(r===void 0&&globalThis.litPropertyMetadata.set(n,r=new Map),r.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"?ii(s,t,e):((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})(s,t,e)}/**
30
- * @license
31
- * Copyright 2017 Google LLC
32
- * SPDX-License-Identifier: BSD-3-Clause
33
- */function j(s){return g({...s,state:!0,attribute:!1})}var si=Object.defineProperty,ni=(s,t,e,i)=>{for(var n=void 0,r=s.length-1,o;r>=0;r--)(o=s[r])&&(n=o(t,e,n)||n);return n&&si(t,e,n),n};const Et=class Et extends y{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"),d}};Et.styles=[O`
34
- :host {
35
- position: fixed;
36
- display: flex;
37
- align-items: center;
38
- gap: 1rem;
39
- }
40
-
41
- :host(.bottom-right) {
42
- bottom: 20px;
43
- right: 20px;
44
- }
45
- :host(.bottom-left) {
46
- bottom: 20px;
47
- left: 20px;
48
- }
49
- `];let X=Et;ni([g({attribute:!0})],X.prototype,"anchor");/**
50
- * @license
51
- * Copyright 2017 Google LLC
52
- * SPDX-License-Identifier: BSD-3-Clause
53
- */const xt={ATTRIBUTE:1,CHILD:2},St=s=>(...t)=>({_$litDirective$:s,values:t});let ge=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)}};/**
54
- * @license
55
- * Copyright 2020 Google LLC
56
- * SPDX-License-Identifier: BSD-3-Clause
57
- */const ri=s=>s.strings===void 0;/**
58
- * @license
59
- * Copyright 2017 Google LLC
60
- * SPDX-License-Identifier: BSD-3-Clause
61
- */const L=(s,t)=>{var i;const e=s._$AN;if(e===void 0)return!1;for(const n of e)(i=n._$AO)==null||i.call(n,t,!1),L(n,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)},me=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),ci(t)}};function oi(s){this._$AN!==void 0?(J(this),this._$AM=s,me(this)):this._$AM=s}function ai(s,t=!1,e=0){const i=this._$AH,n=this._$AN;if(n!==void 0&&n.size!==0)if(t)if(Array.isArray(i))for(let r=e;r<i.length;r++)L(i[r],!1),J(i[r]);else i!=null&&(L(i,!1),J(i));else L(this,s)}const ci=s=>{s.type==xt.CHILD&&(s._$AP??(s._$AP=ai),s._$AQ??(s._$AQ=oi))};class ye extends ge{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,i){super._$AT(t,e,i),me(this),this.isConnected=t._$AU}_$AO(t,e=!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)),e&&(L(this,t),J(this))}setValue(t){if(ri(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 hi=new WeakMap;let Zt=0;const ct=new Map,Kt=new WeakSet,Gt=()=>new Promise(s=>requestAnimationFrame(s)),li=[{transform:"translateX(100%) scale(0)",opacity:0}],Xt=(s,t)=>{const e=s-t;return e===0?void 0:e},Jt=(s,t)=>{const e=s/t;return e===1?void 0:e},ht={left:(s,t)=>{const e=Xt(s,t);return{value:e,transform:e==null||isNaN(e)?void 0:`translateX(${e}px)`}},top:(s,t)=>{const e=Xt(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=Jt(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=Jt(s,t);return{value:i,overrideFrom:e,transform:i==null||isNaN(i)?void 0:`scaleY(${i})`}}},ui={duration:333,easing:"ease-in-out"},di=["left","top","width","height","opacity","color","background"],Qt=new WeakMap;class pi extends ye{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 d}getController(){return hi.get(this.u)}isDisabled(){var t;return this.options.disabled||((t=this.getController())==null?void 0:t.disabled)}update(t,[e]){var n;const i=this.u===void 0;return i&&(this.u=(n=t.options)==null?void 0:n.host,this.u.addController(this),this.u.updateComplete.then(r=>this.t=!0),this.element=t.element,Qt.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=di),this.options=t}m(){const t={},e=this.element.getBoundingClientRect(),i=getComputedStyle(this.element);return this.options.properties.forEach(n=>{const r=e[n]??(ht[n]?void 0:i[n]),o=Number(r);t[n]=isNaN(o)?r+"":o}),t}v(){let t,e=!0;return this.options.guard&&(t=this.options.guard(),e=((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._)),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 Gt;const e=this.O(),i=this.j(this.options.keyframeOptions,e),n=this.m();if(this.A!==void 0){const{from:r,to:o}=this.N(this.A,n,e);this.log("measured",[this.A,n,r,o]),t=this.calculateKeyframes(r,o)}else{const r=ct.get(this.options.inId);if(r){ct.delete(this.options.inId);const{from:o,to:a}=this.N(r,n,e);t=this.calculateKeyframes(o,a),t=this.options.in?[{...this.options.in[0],...t[0]},...this.options.in.slice(1),t[1]]:t,Zt++,t.forEach(c=>c.zIndex=Zt)}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&&ct.set(this.options.id,this.A),this.options.out===void 0))return;if(this.prepare(),await Gt(),(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 n=this.m();this.log("stabilizing out");const r=this.A.left-n.left,o=this.A.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.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=Qt.get(e);i&&!i.isDisabled()&&i&&t.push(i)}return t}get isHostRendered(){const t=Kt.has(this.u);return t||this.u.updateComplete.then(()=>{Kt.add(this.u)}),t}j(t,e=this.O()){const i={...ui};return e.forEach(n=>Object.assign(i,n.options.keyframeOptions)),Object.assign(i,t),i}N(t,e,i){t={...t},e={...e};const n=i.map(a=>a.animatingProperties).filter(a=>a!==void 0);let r=1,o=1;return n.length>0&&(n.forEach(a=>{a.width&&(r/=a.width),a.height&&(o/=a.height)}),t.left!==void 0&&e.left!==void 0&&(t.left=r*t.left,e.left=r*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 n={},r={};let o=!1;const a={};for(const c in e){const h=t[c],l=e[c];if(c in ht){const u=ht[c];if(h===void 0||l===void 0)continue;const p=u(h,l);p.transform!==void 0&&(a[c]=p.value,o=!0,n.transform=`${n.transform??""} ${p.transform}`,p.overrideFrom!==void 0&&Object.assign(n,p.overrideFrom))}else h!==l&&h!==void 0&&l!==void 0&&(o=!0,n[c]=h,r[c]=l)}return n.transformOrigin=r.transformOrigin=i?"center center":"top left",this.animatingProperties=a,o?[n,r]: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 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,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 fi=St(pi),gi={name:"question",svg:'<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M32 4C16.536 4 4 16.536 4 32C4 47.464 16.536 60 32 60C47.464 60 60 47.464 60 32C59.9827 16.5432 47.4568 4.01731 32 4ZM32 55.6923C18.9151 55.6923 8.30769 45.0849 8.30769 32C8.30769 18.9151 18.9151 8.30769 32 8.30769C45.0849 8.30769 55.6923 18.9151 55.6923 32C55.6775 45.0788 45.0788 55.6775 32 55.6923Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M31.9423 37.5723L36.311 32.9068L36.7354 32.4448C39.7555 29.1161 40.7645 27.0647 40.7645 24.5087C40.7645 23.1091 40.4251 21.7942 39.7041 20.6491C38.3044 18.3587 35.6323 16.9166 32.2816 16.9166C28.7565 16.9166 25.3125 18.7414 23.2581 21.6772L23.1201 21.8791C22.8232 22.3032 22.696 22.6849 22.696 22.9818C22.696 23.7029 23.926 25.9932 25.2833 25.9932C25.5378 25.9932 25.7922 25.9084 26.0467 25.7388C26.2588 25.5691 26.5981 25.2298 27.0647 24.7208C28.8885 22.6849 30.1185 21.9215 31.7726 21.9215C33.6813 21.9215 35.081 23.1939 35.081 24.8905C35.081 26.375 34.2751 27.7746 32.3664 29.8529L28.2523 34.2216C27.9554 34.6033 27.7857 34.9426 27.7857 35.282C27.7857 35.6213 27.9978 36.1726 28.4219 36.8937C29.0581 37.8692 29.7368 38.3782 30.4578 38.3782C30.9244 38.3782 31.3909 38.1237 31.9423 37.5723ZM30.882 47.4972C29.2278 47.4972 27.6585 44.7403 27.6585 43.6799C27.6585 42.1954 30.0761 40.6261 32.4089 40.6261C33.6389 40.6261 34.2751 41.1775 34.2751 42.3227C34.2751 44.0616 33.4692 45.843 32.4513 46.7761C31.9423 47.2427 31.4334 47.4972 30.882 47.4972Z"/></svg>'};/**
62
- * @license
63
- * Copyright 2018 Google LLC
64
- * SPDX-License-Identifier: BSD-3-Clause
65
- */const te=St(class extends ge{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,n;if(this.st===void 0){this.st=new Set,s.strings!==void 0&&(this.nt=new Set(s.strings.join(" ").split(/\s/).filter(r=>r!=="")));for(const r in t)t[r]&&!((i=this.nt)!=null&&i.has(r))&&this.st.add(r);return this.render(t)}const e=s.element.classList;for(const r of this.st)r in t||(e.remove(r),this.st.delete(r));for(const r in t){const o=!!t[r];o===this.st.has(r)||(n=this.nt)!=null&&n.has(r)||(o?(e.add(r),this.st.add(r)):(e.remove(r),this.st.delete(r)))}return P}}),b=(s,t,e)=>{s&&e.style.setProperty(t,s)},be=(s,t)=>{var e,i,n,r,o,a,c,h,l;b((e=s.colors)==null?void 0:e.primaryBackground,"--primary-background",t),b((i=s.colors)==null?void 0:i.textOnPrimaryBackground,"--text-on-primary-background",t),b((n=s.colors)==null?void 0:n.secondaryBackground,"--secondary-background",t),b((r=s.colors)==null?void 0:r.textOnSecondaryBackground,"--text-on-secondary-background",t),b((o=s.colors)==null?void 0:o.interactiveDestructiveBackground,"--destructive-color",t),b((a=s.colors)==null?void 0:a.interactiveTextOnDestructiveBackground,"--text-on-destructive-color",t),b((c=s.colors)==null?void 0:c.interactivePrimaryBackground,"--interactive-primary-background",t),b((h=s.colors)==null?void 0:h.interactiveTextOnPrimaryBackground,"--interactive-text-on-primary-background",t),b((l=s.colors)==null?void 0:l.focusColor,"--focus-color",t)};/**
66
- * @license
67
- * Copyright 2020 Google LLC
68
- * SPDX-License-Identifier: BSD-3-Clause
69
- */const ve=()=>new mi;class mi{}const lt=new WeakMap,$e=St(class extends ye{render(s){return d}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)),d}rt(s){if(this.isConnected||(s=void 0),typeof this.Y=="function"){const t=this.ht??globalThis;let e=lt.get(t);e===void 0&&(e=new WeakMap,lt.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=lt.get(this.ht??globalThis))==null?void 0:s.get(this.Y):(t=this.Y)==null?void 0:t.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var yi=Object.defineProperty,Y=(s,t,e,i)=>{for(var n=void 0,r=s.length-1,o;r>=0;r--)(o=s[r])&&(n=o(t,e,n)||n);return n&&yi(t,e,n),n};const Pt=class Pt extends y{constructor(){super(...arguments),this.active=!1,this.triggerVisible=!0,this.loaded=!1,this.containerRef=ve(),this.widgetActive$=new ti(!1),this.componentIsDestroyed$=new At}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&&be(this.application.settings.branding,this)}async _renderSymbol(){var a,c,h;const t=(a=this.application)==null?void 0:a.branding(),e=(c=t==null?void 0:t.graphics)==null?void 0:c.trigger;if(e)return S` <img src=${e} class="trigger-icon" alt="" /> `;const i=(h=this.application)==null?void 0:h.triggerIcon;if(!i)return d;const n=async l=>gi,{type:r,content:o}=i;switch(r){case"Telia":{const l=await n();return l?S`<telia-icon
70
- class="trigger-icon"
71
- svg=${l.svg}
72
- size="lg"
73
- ></telia-icon>`:d}default:return d}}hideTrigger(){this.triggerVisible=!1}showTrigger(){this.triggerVisible=!0}render(){var t,e,i,n;return S`<div
74
- class=${te({"trigger-container":!0,hidden:!this.triggerVisible})}
75
- ${$e(this.containerRef)}
76
- >
77
- ${!this.active&&((n=(i=(e=(t=this.application)==null?void 0:t.settings)==null?void 0:e.branding)==null?void 0:i.other)!=null&&n.showButtonLabel)?S`
78
- <button
79
- label="${this.application.settings.branding.other.buttonLabelText??"Widget trigger"}"
80
- class="trigger-label"
81
- @click=${this.toggleActive}
82
- ${fi({keyframeOptions:{},in:li,stabilizeOut:!0,skipInitial:!1})}
83
- >
84
- ${this.application.settings.branding.other.buttonLabelText}
85
- </button>
86
- `:d}
87
-
88
- <button
89
- label="Widget trigger"
90
- class=${te({trigger:!0,active:this.active,rendered:this.loaded})}
91
- @click=${this.toggleActive}
92
- >
93
- ${this.icon}
94
- <span class="trigger-close">
95
- <svg
96
- width="18"
97
- height="9"
98
- viewBox="0 0 18 9"
99
- fill="none"
100
- xmlns="http://www.w3.org/2000/svg"
101
- >
102
- <path
103
- 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"
104
- fill="white"
105
- />
106
- </svg>
107
- </span>
108
- <span class="trigger-loader">
109
- <svg viewBox="25 25 50 50">
110
- <circle
111
- cx="50"
112
- cy="50"
113
- r="20"
114
- fill="none"
115
- stroke="#000"
116
- stroke-width="2"
117
- stroke-miterlimit="10"
118
- />
119
- </svg>
120
- </span>
121
- </button>
122
- </div>`}};Pt.styles=[O`
123
- :host {
124
- --voca-rem-multiplier: 0.625;
125
- --trigger-label-bg: #f5e0ff;
126
- --trigger-label-text-color: rgba(0, 0, 0, 0.8);
127
- display: block;
128
- box-sizing: border-box;
129
- font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
130
- }
131
-
132
- :focus {
133
- outline-color: var(--focus-color);
134
- }
135
-
136
- .trigger-container {
137
- display: flex;
138
- align-items: center;
139
- gap: 1rem;
140
- }
141
-
142
- .trigger-container.hidden {
143
- display: none;
144
- }
145
-
146
- .trigger {
147
- transform: scale(0);
148
- box-shadow: rgba(0, 0, 0, 0.16) 0px 5px 40px;
149
- z-index: 5;
150
- display: flex;
151
- align-items: center;
152
- justify-content: center;
153
- border: none;
154
- line-height: 55px;
155
- height: 55px;
156
- width: 55px;
157
- border-radius: 55px;
158
- cursor: pointer;
159
- background-color: var(
160
- --interactive-primary-background,
161
- var(--primary-background)
162
- );
163
- font-family: Lato;
164
- text-decoration: none;
165
- border: 3px dashed transparent;
166
- box-sizing: border-box;
167
- transition: transform 200ms ease-out;
168
- }
169
-
170
- .trigger:active {
171
- transform: scale(0.8) !important;
172
- }
173
-
174
- .trigger:hover:not(:active) {
175
- transform: scale(1.1) !important;
176
- }
177
-
178
- .trigger.rendered {
179
- transform: scale(1);
180
- }
181
-
182
- .trigger.active .trigger-icon {
183
- opacity: 0;
184
- transform: rotate(-180deg) scale(0);
185
- }
186
-
187
- .trigger.active .trigger-close {
188
- opacity: 1;
189
- transform: rotate(0deg) scale(1);
190
- }
191
-
192
- .trigger-icon {
193
- display: inline-block;
194
- line-height: inherit;
195
- text-align: center;
196
- opacity: 1;
197
- transform: rotate(0deg) scale(1);
198
- transition: opacity 200ms ease-out, transform 200ms ease-out;
199
- color: var(
200
- --interactive-text-on-primary-background,
201
- var(--text-on-primary-background)
202
- );
203
- }
204
-
205
- .trigger-close {
206
- opacity: 0;
207
- transition: transform 200ms ease-out;
208
- transform: rotate(180deg) scale(0);
209
- position: absolute;
210
- top: 0;
211
- bottom: 0;
212
- left: 0;
213
- right: 0;
214
- display: flex;
215
- justify-content: center;
216
- align-items: center;
217
- }
218
-
219
- .trigger-close svg path {
220
- fill: var(
221
- --interactive-text-on-primary-background,
222
- var(--text-on-primary-background)
223
- );
224
- }
225
-
226
- img {
227
- max-width: 100%;
228
- }
229
-
230
- .trigger-label {
231
- box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.1);
232
- background-color: var(--secondary-background);
233
- color: var(--text-on-secondary-background);
234
- white-space: nowrap;
235
- padding: 0.7rem 1rem;
236
- border-radius: 0.3rem;
237
- font-weight: 500;
238
- display: flex;
239
- justify-content: center;
240
- align-items: center;
241
- cursor: pointer;
242
- border: none;
243
- font-size: 1rem;
244
- font-family: inherit;
245
- transition: all 300ms ease-in-out;
246
- }
247
-
248
- .trigger-label:hover {
249
- opacity: 0.8;
250
- }
251
- `];let $=Pt;Y([g({attribute:!1})],$.prototype,"application");Y([j()],$.prototype,"active");Y([j()],$.prototype,"triggerVisible");Y([j()],$.prototype,"loaded");Y([j()],$.prototype,"icon");var bi=Object.defineProperty,x=(s,t,e,i)=>{for(var n=void 0,r=s.length-1,o;r>=0;r--)(o=s[r])&&(n=o(t,e,n)||n);return n&&bi(t,e,n),n};const _e=s=>{const e=class e extends s{constructor(){super(...arguments),this.properties={},this.context={},this.layout={},this.nodes=[]}writeProperties(n){this.properties=n}writeLayout(n){this.layout=n}writeContext(n){this.context=n}addChild(n){n.parent=this,this.nodes.push(n)}connectedCallback(){super.connectedCallback(),this.renderRoot.host.style.setProperty("--width",this.layout.size==="full"?"var(--columns, 1)":`min(${this.layout.size||"var(--columns)"}, var(--columns))`),this.application.mountComponent(this)}};e.styles=[O`
252
- :host {
253
- font-family: var(--font-family);
254
- grid-column: span var(--width);
255
- max-width: 100%;
256
- overflow: hidden;
257
- box-sizing: border-box;
258
- display: block;
259
- }
260
- * {
261
- box-sizing: border-box;
262
- }
263
- `];let t=e;return x([g()],t.prototype,"properties"),x([g()],t.prototype,"context"),x([g()],t.prototype,"layout"),x([g()],t.prototype,"name"),x([g()],t.prototype,"type"),x([g({attribute:!1})],t.prototype,"application"),x([g({attribute:!1})],t.prototype,"parent"),t},Ot=class Ot extends _e(y){render(){return S`Non resolved component`}};Ot.styles=[O`
264
- :host {
265
- display: block;
266
- }
267
- `];let bt=Ot;var z=(s=>(s.Inline="inline",s.Trigger="trigger",s))(z||{});/**
268
- * @license
269
- * Copyright 2021 Google LLC
270
- * SPDX-License-Identifier: BSD-3-Clause
271
- */let vi=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 $i{get value(){return this.o}set value(t){this.setValue(t)}setValue(t,e=!1){const i=e||!Object.is(t,this.o);this.o=t,i&&this.updateObservers()}constructor(t){this.subscriptions=new Map,this.updateObservers=()=>{for(const[e,{disposer:i}]of this.subscriptions)e(this.o,i)},t!==void 0&&(this.value=t)}addCallback(t,e,i){if(!i)return void t(this.value);this.subscriptions.has(t)||this.subscriptions.set(t,{disposer:()=>{this.subscriptions.delete(t)},consumerHost:e});const{disposer:n}=this.subscriptions.get(t);t(this.value,n)}clearCallbacks(){this.subscriptions.clear()}}/**
280
- * @license
281
- * Copyright 2021 Google LLC
282
- * SPDX-License-Identifier: BSD-3-Clause
283
- */let _i=class extends Event{constructor(t){super("context-provider",{bubbles:!0,composed:!0}),this.context=t}};class ee extends $i{constructor(t,e,i){var n,r;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 vi(this.context,h,!0)));o.stopPropagation()},this.host=t,e.context!==void 0?this.context=e.context:this.context=e,this.attachListeners(),(r=(n=this.host).addController)==null||r.call(n,this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new _i(this.context))}}/**
284
- * @license
285
- * Copyright 2017 Google LLC
286
- * SPDX-License-Identifier: BSD-3-Clause
287
- */function wi({context:s}){return(t,e)=>{const i=new WeakMap;if(typeof e=="object")return e.addInitializer(function(){i.set(this,new ee(this,{context:s}))}),{get(){return t.get.call(this)},set(n){var r;return(r=i.get(this))==null||r.setValue(n),t.set.call(this,n)},init(n){var r;return(r=i.get(this))==null||r.setValue(n),n}};{t.constructor.addInitializer(o=>{i.set(o,new ee(o,{context:s}))});const n=Object.getOwnPropertyDescriptor(t,e);let r;if(n===void 0){const o=new WeakMap;r={get(){return o.get(this)},set(a){i.get(this).setValue(a),o.set(this,a)},configurable:!0,enumerable:!0}}else{const o=n.set;r={...n,set(a){i.get(this).setValue(a),o==null||o.call(this,a)}}}return void Object.defineProperty(t,e,r)}}}var Ai=Object.defineProperty,we=(s,t,e,i)=>{for(var n=void 0,r=s.length-1,o;r>=0;r--)(o=s[r])&&(n=o(t,e,n)||n);return n&&Ai(t,e,n),n};const xi="application",kt=class kt extends y{constructor(){super(...arguments),this.nodes=[],this.wrapperRef=ve(),this.fullscreen=!1}addChild(t){t.parent=this,this.nodes.push(t)}applyBranding(){if(!this.wrapperRef.value)return;const t=this.application.settings;t!=null&&t.branding&&be(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,n])=>{e.style.setProperty(`--${i}`,n)})}firstUpdated(t){this.applyBranding(),this.applyStyles()}render(){var i,n;const t=this.application.settings.components.conversation;return((n=(i=t==null?void 0:t.properties)==null?void 0:i.chat)==null?void 0:n.isThirdPartyWidget)?this.renderRoot.host.classList.add("third-party"):this.application.renderStrategy===z.Trigger&&(this.renderRoot.host.classList.add("floating"),this.application.anchor==="BottomLeft"?this.renderRoot.host.classList.add("bottom-left"):this.application.anchor==="BottomRight"&&this.renderRoot.host.classList.add("bottom-right")),this.application.fullscreen&&this.renderRoot.host.classList.add("fullscreen"),window.self!==window.top&&this.renderRoot.host.classList.add("embedded"),S`<div class="widget-container" ${$e(this.wrapperRef)}>
288
- ${le(this.nodes,r=>r)}
289
- </div>`}};kt.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 D=kt;we([g({attribute:!0})],D.prototype,"fullscreen");we([g({attribute:!1}),wi({context:xi})],D.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(n=>{let r=z.Trigger;n.renderStrategy.toLowerCase()==="inline"&&(r=z.Inline);const o=n.widgetId?n.widgetId:n.id,a=typeof n.autoActivate=="boolean"?n.autoActivate:!1,c=typeof n.anchor=="string"?n.anchor:"BottomRight",h=typeof n.triggerIcon=="string"?n.triggerIcon:"question";return{id:o,widgetId:o,renderStrategy:r,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 ie=tt;var Si=Object.defineProperty,Ct=(s,t,e,i)=>{for(var n=void 0,r=s.length-1,o;r>=0;r--)(o=s[r])&&(n=o(t,e,n)||n);return n&&Si(t,e,n),n};const Tt=class Tt extends y{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 d;if(this.widget.renderStrategy===z.Trigger){const t=new $;return t.application=this.widget,t}return this.widget.render()}};Tt.styles=[O`
442
- :host {
443
- display: block;
444
- }
445
- `];let U=Tt;Ct([g({attribute:!0})],U.prototype,"name");Ct([j()],U.prototype,"widget");Ct([j()],U.prototype,"status");customElements.get("ace-trigger-slot")||customElements.define("ace-trigger-slot",X);customElements.get("ace-trigger")||customElements.define("ace-trigger",$);customElements.get("ace-unresolved-component")||customElements.define("ace-unresolved-component",bt);customElements.get("ace-wrapper")||customElements.define("ace-wrapper",D);customElements.get("ace-widget")||customElements.define("ace-widget",U);const Ci=s=>{const t={};return Object.keys(s).forEach(e=>{e.indexOf("css-")>-1&&(t[e]=s[e])}),t},Ei=(s,t)=>{const e=Ci(t);Object.entries(e).forEach(([i,n])=>{s.style.setProperty(i.replace("css-",""),n)})},Rt=class Rt extends _e(y){constructor(){super(...arguments),this.nodes=[]}render(){var t;return Ei(this.renderRoot.host,this.properties),this.renderRoot.host.style.setProperty("--columns",((t=this.properties.columns)==null?void 0:t.toString())||"1"),S`${le(this.nodes,e=>e)}`}};Rt.styles=[O`
446
- :host {
447
- height: 100%;
448
- display: grid;
449
- justify-content: center;
450
- grid-auto-rows: max-content;
451
- grid-template-rows: auto;
452
- grid-template-columns: repeat(var(--columns), 1fr);
453
- gap: var(--gap);
454
- }
455
- `];let Q=Rt;exports.Area=Q;exports.default=Q;