@telia-ace/widget-components-widget-header-flamingo 1.1.76-rc.24 → 1.1.76-rc.26

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.
package/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";const r=async e=>{e.registerComponent("widget-header",Promise.resolve().then(()=>require("./widget-header-2255f3f8.js")))};module.exports=r;
1
+ "use strict";const r=async e=>{e.registerComponent("widget-header",Promise.resolve().then(()=>require("./widget-header-194badea.js")))};module.exports=r;
package/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  const t = async (e) => {
2
- e.registerComponent("widget-header", import("./widget-header-80dd37be.mjs"));
2
+ e.registerComponent("widget-header", import("./widget-header-75f72f69.mjs"));
3
3
  };
4
4
  export {
5
5
  t as default
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@telia-ace/widget-components-widget-header-flamingo",
3
- "version": "1.1.76-rc.24",
3
+ "version": "1.1.76-rc.26",
4
4
  "dependencies": {
5
5
  "lit": "^3.0.2",
6
- "@telia-ace/widget-core-flamingo": "1.1.76-rc.24",
6
+ "@telia-ace/widget-core-flamingo": "1.1.76-rc.26",
7
7
  "@teliads/components": "^22.1.1",
8
8
  "@teliads/icons": "^8.4.0",
9
9
  "@lit-labs/motion": "^1.0.6",
@@ -1,32 +1,32 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var Wt=function(i,t){return Wt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])},Wt(i,t)};function Z(i,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Wt(i,t);function e(){this.constructor=i}i.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}function Gi(i,t,e,n){function s(r){return r instanceof e?r:new e(function(o){o(r)})}return new(e||(e=Promise))(function(r,o){function a(h){try{c(n.next(h))}catch(u){o(u)}}function l(h){try{c(n.throw(h))}catch(u){o(u)}}function c(h){h.done?r(h.value):s(h.value).then(a,l)}c((n=n.apply(i,t||[])).next())})}function Ze(i,t){var e={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,s,r,o;return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(c){return function(h){return l([c,h])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(e=0)),e;)try{if(n=1,s&&(r=c[0]&2?s.return:c[0]?s.throw||((r=s.return)&&r.call(s),0):s.next)&&!(r=r.call(s,c[1])).done)return r;switch(s=0,r&&(c=[c[0]&2,r.value]),c[0]){case 0:case 1:r=c;break;case 4:return e.label++,{value:c[1],done:!1};case 5:e.label++,s=c[1],c=[0];continue;case 7:c=e.ops.pop(),e.trys.pop();continue;default:if(r=e.trys,!(r=r.length>0&&r[r.length-1])&&(c[0]===6||c[0]===2)){e=0;continue}if(c[0]===3&&(!r||c[1]>r[0]&&c[1]<r[3])){e.label=c[1];break}if(c[0]===6&&e.label<r[1]){e.label=r[1],r=c;break}if(r&&e.label<r[2]){e.label=r[2],e.ops.push(c);break}r[2]&&e.ops.pop(),e.trys.pop();continue}c=t.call(i,e)}catch(h){c=[6,h],s=0}finally{n=r=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function q(i){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&i[t],n=0;if(e)return e.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&n>=i.length&&(i=void 0),{value:i&&i[n++],done:!i}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function pt(i,t){var e=typeof Symbol=="function"&&i[Symbol.iterator];if(!e)return i;var n=e.call(i),s,r=[],o;try{for(;(t===void 0||t-- >0)&&!(s=n.next()).done;)r.push(s.value)}catch(a){o={error:a}}finally{try{s&&!s.done&&(e=n.return)&&e.call(n)}finally{if(o)throw o.error}}return r}function gt(i,t,e){if(e||arguments.length===2)for(var n=0,s=t.length,r;n<s;n++)(r||!(n in t))&&(r||(r=Array.prototype.slice.call(t,0,n)),r[n]=t[n]);return i.concat(r||Array.prototype.slice.call(t))}function W(i){return this instanceof W?(this.v=i,this):new W(i)}function Zi(i,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=e.apply(i,t||[]),s,r=[];return s={},o("next"),o("throw"),o("return"),s[Symbol.asyncIterator]=function(){return this},s;function o(d){n[d]&&(s[d]=function(f){return new Promise(function(v,g){r.push([d,f,v,g])>1||a(d,f)})})}function a(d,f){try{l(n[d](f))}catch(v){u(r[0][3],v)}}function l(d){d.value instanceof W?Promise.resolve(d.value.v).then(c,h):u(r[0][2],d)}function c(d){a("next",d)}function h(d){a("throw",d)}function u(d,f){d(f),r.shift(),r.length&&a(r[0][0],r[0][1])}}function Ki(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=i[Symbol.asyncIterator],e;return t?t.call(i):(i=typeof q=="function"?q(i):i[Symbol.iterator](),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(r){e[r]=i[r]&&function(o){return new Promise(function(a,l){o=i[r](o),s(a,l,o.done,o.value)})}}function s(r,o,a,l){Promise.resolve(l).then(function(c){r({value:c,done:a})},o)}}function $(i){return typeof i=="function"}function Ke(i){var t=function(n){Error.call(n),n.stack=new Error().stack},e=i(t);return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var Rt=Ke(function(i){return function(e){i(this),this.message=e?e.length+` errors occurred during unsubscription:
2
- `+e.map(function(n,s){return s+1+") "+n.toString()}).join(`
3
- `):"",this.name="UnsubscriptionError",this.errors=e}});function Ft(i,t){if(i){var e=i.indexOf(t);0<=e&&i.splice(e,1)}}var Ct=function(){function i(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return i.prototype.unsubscribe=function(){var t,e,n,s,r;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=q(o),l=a.next();!l.done;l=a.next()){var c=l.value;c.remove(this)}}catch(g){t={error:g}}finally{try{l&&!l.done&&(e=a.return)&&e.call(a)}finally{if(t)throw t.error}}else o.remove(this);var h=this.initialTeardown;if($(h))try{h()}catch(g){r=g instanceof Rt?g.errors:[g]}var u=this._finalizers;if(u){this._finalizers=null;try{for(var d=q(u),f=d.next();!f.done;f=d.next()){var v=f.value;try{de(v)}catch(g){r=r??[],g instanceof Rt?r=gt(gt([],pt(r)),pt(g.errors)):r.push(g)}}}catch(g){n={error:g}}finally{try{f&&!f.done&&(s=d.return)&&s.call(d)}finally{if(n)throw n.error}}}if(r)throw new Rt(r)}},i.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)de(t);else{if(t instanceof i){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(t)}},i.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},i.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},i.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&Ft(e,t)},i.prototype.remove=function(t){var e=this._finalizers;e&&Ft(e,t),t instanceof i&&t._removeParent(this)},i.EMPTY=function(){var t=new i;return t.closed=!0,t}(),i}(),Xe=Ct.EMPTY;function Qe(i){return i instanceof Ct||i&&"closed"in i&&$(i.remove)&&$(i.add)&&$(i.unsubscribe)}function de(i){$(i)?i():i.unsubscribe()}var Je={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Yt={setTimeout:function(i,t){for(var e=[],n=2;n<arguments.length;n++)e[n-2]=arguments[n];var s=Yt.delegate;return s!=null&&s.setTimeout?s.setTimeout.apply(s,gt([i,t],pt(e))):setTimeout.apply(void 0,gt([i,t],pt(e)))},clearTimeout:function(i){var t=Yt.delegate;return((t==null?void 0:t.clearTimeout)||clearTimeout)(i)},delegate:void 0};function Ve(i){Yt.setTimeout(function(){throw i})}function fe(){}function dt(i){i()}var Xt=function(i){Z(t,i);function t(e){var n=i.call(this)||this;return n.isStopped=!1,e?(n.destination=e,Qe(e)&&e.add(n)):n.destination=Vi,n}return t.create=function(e,n,s){return new qt(e,n,s)},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,i.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}(Ct),Xi=Function.prototype.bind;function Ut(i,t){return Xi.call(i,t)}var Qi=function(){function i(t){this.partialObserver=t}return i.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(n){ht(n)}},i.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(n){ht(n)}else ht(t)},i.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){ht(e)}},i}(),qt=function(i){Z(t,i);function t(e,n,s){var r=i.call(this)||this,o;if($(e)||!e)o={next:e??void 0,error:n??void 0,complete:s??void 0};else{var a;r&&Je.useDeprecatedNextContext?(a=Object.create(e),a.unsubscribe=function(){return r.unsubscribe()},o={next:e.next&&Ut(e.next,a),error:e.error&&Ut(e.error,a),complete:e.complete&&Ut(e.complete,a)}):o=e}return r.destination=new Qi(o),r}return t}(Xt);function ht(i){Ve(i)}function Ji(i){throw i}var Vi={closed:!0,next:fe,error:Ji,complete:fe},Qt=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function ti(i){return i}function tn(i){return i.length===0?ti:i.length===1?i[0]:function(e){return i.reduce(function(n,s){return s(n)},e)}}var w=function(){function i(t){t&&(this._subscribe=t)}return i.prototype.lift=function(t){var e=new i;return e.source=this,e.operator=t,e},i.prototype.subscribe=function(t,e,n){var s=this,r=nn(t)?t:new qt(t,e,n);return dt(function(){var o=s,a=o.operator,l=o.source;r.add(a?a.call(r,l):l?s._subscribe(r):s._trySubscribe(r))}),r},i.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},i.prototype.forEach=function(t,e){var n=this;return e=pe(e),new e(function(s,r){var o=new qt({next:function(a){try{t(a)}catch(l){r(l),o.unsubscribe()}},error:r,complete:s});n.subscribe(o)})},i.prototype._subscribe=function(t){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(t)},i.prototype[Qt]=function(){return this},i.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return tn(t)(this)},i.prototype.toPromise=function(t){var e=this;return t=pe(t),new t(function(n,s){var r;e.subscribe(function(o){return r=o},function(o){return s(o)},function(){return n(r)})})},i.create=function(t){return new i(t)},i}();function pe(i){var t;return(t=i??Je.Promise)!==null&&t!==void 0?t:Promise}function en(i){return i&&$(i.next)&&$(i.error)&&$(i.complete)}function nn(i){return i&&i instanceof Xt||en(i)&&Qe(i)}function sn(i){return $(i==null?void 0:i.lift)}function Et(i){return function(t){if(sn(t))return t.lift(function(e){try{return i(e,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function vt(i,t,e,n,s){return new rn(i,t,e,n,s)}var rn=function(i){Z(t,i);function t(e,n,s,r,o,a){var l=i.call(this,e)||this;return l.onFinalize=o,l.shouldUnsubscribe=a,l._next=n?function(c){try{n(c)}catch(h){e.error(h)}}:i.prototype._next,l._error=r?function(c){try{r(c)}catch(h){e.error(h)}finally{this.unsubscribe()}}:i.prototype._error,l._complete=s?function(){try{s()}catch(c){e.error(c)}finally{this.unsubscribe()}}:i.prototype._complete,l}return t.prototype.unsubscribe=function(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;i.prototype.unsubscribe.call(this),!n&&((e=this.onFinalize)===null||e===void 0||e.call(this))}},t}(Xt),on=Ke(function(i){return function(){i(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),kt=function(i){Z(t,i);function t(){var e=i.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 n=new ge(this,this);return n.operator=e,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new on},t.prototype.next=function(e){var n=this;dt(function(){var s,r;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var o=q(n.currentObservers),a=o.next();!a.done;a=o.next()){var l=a.value;l.next(e)}}catch(c){s={error:c}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(s)throw s.error}}}})},t.prototype.error=function(e){var n=this;dt(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=e;for(var s=n.observers;s.length;)s.shift().error(e)}})},t.prototype.complete=function(){var e=this;dt(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var n=e.observers;n.length;)n.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(),i.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 n=this,s=this,r=s.hasError,o=s.isStopped,a=s.observers;return r||o?Xe:(this.currentObservers=null,a.push(e),new Ct(function(){n.currentObservers=null,Ft(a,e)}))},t.prototype._checkFinalizedStatuses=function(e){var n=this,s=n.hasError,r=n.thrownError,o=n.isStopped;s?e.error(r):o&&e.complete()},t.prototype.asObservable=function(){var e=new w;return e.source=this,e},t.create=function(e,n){return new ge(e,n)},t}(w),ge=function(i){Z(t,i);function t(e,n){var s=i.call(this)||this;return s.destination=e,s.source=n,s}return t.prototype.next=function(e){var n,s;(s=(n=this.destination)===null||n===void 0?void 0:n.next)===null||s===void 0||s.call(n,e)},t.prototype.error=function(e){var n,s;(s=(n=this.destination)===null||n===void 0?void 0:n.error)===null||s===void 0||s.call(n,e)},t.prototype.complete=function(){var e,n;(n=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||n===void 0||n.call(e)},t.prototype._subscribe=function(e){var n,s;return(s=(n=this.source)===null||n===void 0?void 0:n.subscribe(e))!==null&&s!==void 0?s:Xe},t}(kt),an=function(i){Z(t,i);function t(e){var n=i.call(this)||this;return n._value=e,n}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(e){var n=i.prototype._subscribe.call(this,e);return!n.closed&&e.next(this._value),n},t.prototype.getValue=function(){var e=this,n=e.hasError,s=e.thrownError,r=e._value;if(n)throw s;return this._throwIfClosed(),r},t.prototype.next=function(e){i.prototype.next.call(this,this._value=e)},t}(kt),ln=new w(function(i){return i.complete()});function cn(i){return i&&$(i.schedule)}function ei(i){return i[i.length-1]}function hn(i){return cn(ei(i))?i.pop():void 0}function un(i,t){return typeof ei(i)=="number"?i.pop():t}var ii=function(i){return i&&typeof i.length=="number"&&typeof i!="function"};function ni(i){return $(i==null?void 0:i.then)}function si(i){return $(i[Qt])}function ri(i){return Symbol.asyncIterator&&$(i==null?void 0:i[Symbol.asyncIterator])}function oi(i){return new TypeError("You provided "+(i!==null&&typeof i=="object"?"an invalid object":"'"+i+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function dn(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var ai=dn();function li(i){return $(i==null?void 0:i[ai])}function ci(i){return Zi(this,arguments,function(){var e,n,s,r;return Ze(this,function(o){switch(o.label){case 0:e=i.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,W(e.read())];case 3:return n=o.sent(),s=n.value,r=n.done,r?[4,W(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,W(s)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return e.releaseLock(),[7];case 10:return[2]}})})}function hi(i){return $(i==null?void 0:i.getReader)}function K(i){if(i instanceof w)return i;if(i!=null){if(si(i))return fn(i);if(ii(i))return pn(i);if(ni(i))return gn(i);if(ri(i))return ui(i);if(li(i))return vn(i);if(hi(i))return $n(i)}throw oi(i)}function fn(i){return new w(function(t){var e=i[Qt]();if($(e.subscribe))return e.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function pn(i){return new w(function(t){for(var e=0;e<i.length&&!t.closed;e++)t.next(i[e]);t.complete()})}function gn(i){return new w(function(t){i.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,Ve)})}function vn(i){return new w(function(t){var e,n;try{for(var s=q(i),r=s.next();!r.done;r=s.next()){var o=r.value;if(t.next(o),t.closed)return}}catch(a){e={error:a}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(e)throw e.error}}t.complete()})}function ui(i){return new w(function(t){mn(i,t).catch(function(e){return t.error(e)})})}function $n(i){return ui(ci(i))}function mn(i,t){var e,n,s,r;return Gi(this,void 0,void 0,function(){var o,a;return Ze(this,function(l){switch(l.label){case 0:l.trys.push([0,5,6,11]),e=Ki(i),l.label=1;case 1:return[4,e.next()];case 2:if(n=l.sent(),!!n.done)return[3,4];if(o=n.value,t.next(o),t.closed)return[2];l.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return a=l.sent(),s={error:a},[3,11];case 6:return l.trys.push([6,,9,10]),n&&!n.done&&(r=e.return)?[4,r.call(e)]:[3,8];case 7:l.sent(),l.label=8;case 8:return[3,10];case 9:if(s)throw s.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}function k(i,t,e,n,s){n===void 0&&(n=0),s===void 0&&(s=!1);var r=t.schedule(function(){e(),s?i.add(this.schedule(null,n)):this.unsubscribe()},n);if(i.add(r),!s)return r}function di(i,t){return t===void 0&&(t=0),Et(function(e,n){e.subscribe(vt(n,function(s){return k(n,i,function(){return n.next(s)},t)},function(){return k(n,i,function(){return n.complete()},t)},function(s){return k(n,i,function(){return n.error(s)},t)}))})}function fi(i,t){return t===void 0&&(t=0),Et(function(e,n){n.add(i.schedule(function(){return e.subscribe(n)},t))})}function yn(i,t){return K(i).pipe(fi(t),di(t))}function bn(i,t){return K(i).pipe(fi(t),di(t))}function _n(i,t){return new w(function(e){var n=0;return t.schedule(function(){n===i.length?e.complete():(e.next(i[n++]),e.closed||this.schedule())})})}function wn(i,t){return new w(function(e){var n;return k(e,t,function(){n=i[ai](),k(e,t,function(){var s,r,o;try{s=n.next(),r=s.value,o=s.done}catch(a){e.error(a);return}o?e.complete():e.next(r)},0,!0)}),function(){return $(n==null?void 0:n.return)&&n.return()}})}function pi(i,t){if(!i)throw new Error("Iterable cannot be null");return new w(function(e){k(e,t,function(){var n=i[Symbol.asyncIterator]();k(e,t,function(){n.next().then(function(s){s.done?e.complete():e.next(s.value)})},0,!0)})})}function xn(i,t){return pi(ci(i),t)}function Sn(i,t){if(i!=null){if(si(i))return yn(i,t);if(ii(i))return _n(i,t);if(ni(i))return bn(i,t);if(ri(i))return pi(i,t);if(li(i))return wn(i,t);if(hi(i))return xn(i,t)}throw oi(i)}function An(i,t){return t?Sn(i,t):K(i)}function Cn(i,t){return Et(function(e,n){var s=0;e.subscribe(vt(n,function(r){n.next(i.call(t,r,s++))}))})}function En(i,t,e,n,s,r,o,a){var l=[],c=0,h=0,u=!1,d=function(){u&&!l.length&&!c&&t.complete()},f=function(g){return c<n?v(g):l.push(g)},v=function(g){r&&t.next(g),c++;var ue=!1;K(e(g,h++)).subscribe(vt(t,function(X){s==null||s(X),r?f(X):t.next(X)},function(){ue=!0},void 0,function(){if(ue)try{c--;for(var X=function(){var ct=l.shift();o?k(t,o,function(){return v(ct)}):v(ct)};l.length&&c<n;)X();d()}catch(ct){t.error(ct)}}))};return i.subscribe(vt(t,f,function(){u=!0,d()})),function(){a==null||a()}}function gi(i,t,e){return e===void 0&&(e=1/0),$(t)?gi(function(n,s){return Cn(function(r,o){return t(n,r,s,o)})(K(i(n,s)))},e):(typeof t=="number"&&(e=t),Et(function(n,s){return En(n,s,i,e)}))}function kn(i){return i===void 0&&(i=1/0),gi(ti,i)}function On(){for(var i=[],t=0;t<arguments.length;t++)i[t]=arguments[t];var e=hn(i),n=un(i,1/0),s=i;return s.length?s.length===1?K(s[0]):kn(n)(An(s,e)):ln}/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var Wt=function(i,t){return Wt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,s){e.__proto__=s}||function(e,s){for(var n in s)Object.prototype.hasOwnProperty.call(s,n)&&(e[n]=s[n])},Wt(i,t)};function Z(i,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Wt(i,t);function e(){this.constructor=i}i.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}function Gi(i,t,e,s){function n(r){return r instanceof e?r:new e(function(o){o(r)})}return new(e||(e=Promise))(function(r,o){function a(u){try{c(s.next(u))}catch(h){o(h)}}function l(u){try{c(s.throw(u))}catch(h){o(h)}}function c(u){u.done?r(u.value):n(u.value).then(a,l)}c((s=s.apply(i,t||[])).next())})}function Ze(i,t){var e={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},s,n,r,o;return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(c){return function(u){return l([c,u])}}function l(c){if(s)throw new TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(e=0)),e;)try{if(s=1,n&&(r=c[0]&2?n.return:c[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,c[1])).done)return r;switch(n=0,r&&(c=[c[0]&2,r.value]),c[0]){case 0:case 1:r=c;break;case 4:return e.label++,{value:c[1],done:!1};case 5:e.label++,n=c[1],c=[0];continue;case 7:c=e.ops.pop(),e.trys.pop();continue;default:if(r=e.trys,!(r=r.length>0&&r[r.length-1])&&(c[0]===6||c[0]===2)){e=0;continue}if(c[0]===3&&(!r||c[1]>r[0]&&c[1]<r[3])){e.label=c[1];break}if(c[0]===6&&e.label<r[1]){e.label=r[1],r=c;break}if(r&&e.label<r[2]){e.label=r[2],e.ops.push(c);break}r[2]&&e.ops.pop(),e.trys.pop();continue}c=t.call(i,e)}catch(u){c=[6,u],n=0}finally{s=r=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function q(i){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&i[t],s=0;if(e)return e.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&s>=i.length&&(i=void 0),{value:i&&i[s++],done:!i}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function pt(i,t){var e=typeof Symbol=="function"&&i[Symbol.iterator];if(!e)return i;var s=e.call(i),n,r=[],o;try{for(;(t===void 0||t-- >0)&&!(n=s.next()).done;)r.push(n.value)}catch(a){o={error:a}}finally{try{n&&!n.done&&(e=s.return)&&e.call(s)}finally{if(o)throw o.error}}return r}function gt(i,t,e){if(e||arguments.length===2)for(var s=0,n=t.length,r;s<n;s++)(r||!(s in t))&&(r||(r=Array.prototype.slice.call(t,0,s)),r[s]=t[s]);return i.concat(r||Array.prototype.slice.call(t))}function W(i){return this instanceof W?(this.v=i,this):new W(i)}function Zi(i,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var s=e.apply(i,t||[]),n,r=[];return n={},o("next"),o("throw"),o("return"),n[Symbol.asyncIterator]=function(){return this},n;function o(d){s[d]&&(n[d]=function(f){return new Promise(function($,g){r.push([d,f,$,g])>1||a(d,f)})})}function a(d,f){try{l(s[d](f))}catch($){h(r[0][3],$)}}function l(d){d.value instanceof W?Promise.resolve(d.value.v).then(c,u):h(r[0][2],d)}function c(d){a("next",d)}function u(d){a("throw",d)}function h(d,f){d(f),r.shift(),r.length&&a(r[0][0],r[0][1])}}function Ki(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=i[Symbol.asyncIterator],e;return t?t.call(i):(i=typeof q=="function"?q(i):i[Symbol.iterator](),e={},s("next"),s("throw"),s("return"),e[Symbol.asyncIterator]=function(){return this},e);function s(r){e[r]=i[r]&&function(o){return new Promise(function(a,l){o=i[r](o),n(a,l,o.done,o.value)})}}function n(r,o,a,l){Promise.resolve(l).then(function(c){r({value:c,done:a})},o)}}function v(i){return typeof i=="function"}function Ke(i){var t=function(s){Error.call(s),s.stack=new Error().stack},e=i(t);return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var Rt=Ke(function(i){return function(e){i(this),this.message=e?e.length+` errors occurred during unsubscription:
2
+ `+e.map(function(s,n){return n+1+") "+s.toString()}).join(`
3
+ `):"",this.name="UnsubscriptionError",this.errors=e}});function Ft(i,t){if(i){var e=i.indexOf(t);0<=e&&i.splice(e,1)}}var Ct=function(){function i(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return i.prototype.unsubscribe=function(){var t,e,s,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=q(o),l=a.next();!l.done;l=a.next()){var c=l.value;c.remove(this)}}catch(g){t={error:g}}finally{try{l&&!l.done&&(e=a.return)&&e.call(a)}finally{if(t)throw t.error}}else o.remove(this);var u=this.initialTeardown;if(v(u))try{u()}catch(g){r=g instanceof Rt?g.errors:[g]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var d=q(h),f=d.next();!f.done;f=d.next()){var $=f.value;try{de($)}catch(g){r=r??[],g instanceof Rt?r=gt(gt([],pt(r)),pt(g.errors)):r.push(g)}}}catch(g){s={error:g}}finally{try{f&&!f.done&&(n=d.return)&&n.call(d)}finally{if(s)throw s.error}}}if(r)throw new Rt(r)}},i.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)de(t);else{if(t instanceof i){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(t)}},i.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},i.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},i.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&Ft(e,t)},i.prototype.remove=function(t){var e=this._finalizers;e&&Ft(e,t),t instanceof i&&t._removeParent(this)},i.EMPTY=function(){var t=new i;return t.closed=!0,t}(),i}(),Xe=Ct.EMPTY;function Qe(i){return i instanceof Ct||i&&"closed"in i&&v(i.remove)&&v(i.add)&&v(i.unsubscribe)}function de(i){v(i)?i():i.unsubscribe()}var Je={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Yt={setTimeout:function(i,t){for(var e=[],s=2;s<arguments.length;s++)e[s-2]=arguments[s];var n=Yt.delegate;return n!=null&&n.setTimeout?n.setTimeout.apply(n,gt([i,t],pt(e))):setTimeout.apply(void 0,gt([i,t],pt(e)))},clearTimeout:function(i){var t=Yt.delegate;return((t==null?void 0:t.clearTimeout)||clearTimeout)(i)},delegate:void 0};function Ve(i){Yt.setTimeout(function(){throw i})}function fe(){}function dt(i){i()}var Xt=function(i){Z(t,i);function t(e){var s=i.call(this)||this;return s.isStopped=!1,e?(s.destination=e,Qe(e)&&e.add(s)):s.destination=Vi,s}return t.create=function(e,s,n){return new qt(e,s,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,i.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}(Ct),Xi=Function.prototype.bind;function Ut(i,t){return Xi.call(i,t)}var Qi=function(){function i(t){this.partialObserver=t}return i.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(s){ut(s)}},i.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(s){ut(s)}else ut(t)},i.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){ut(e)}},i}(),qt=function(i){Z(t,i);function t(e,s,n){var r=i.call(this)||this,o;if(v(e)||!e)o={next:e??void 0,error:s??void 0,complete:n??void 0};else{var a;r&&Je.useDeprecatedNextContext?(a=Object.create(e),a.unsubscribe=function(){return r.unsubscribe()},o={next:e.next&&Ut(e.next,a),error:e.error&&Ut(e.error,a),complete:e.complete&&Ut(e.complete,a)}):o=e}return r.destination=new Qi(o),r}return t}(Xt);function ut(i){Ve(i)}function Ji(i){throw i}var Vi={closed:!0,next:fe,error:Ji,complete:fe},Qt=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function ti(i){return i}function ts(i){return i.length===0?ti:i.length===1?i[0]:function(e){return i.reduce(function(s,n){return n(s)},e)}}var w=function(){function i(t){t&&(this._subscribe=t)}return i.prototype.lift=function(t){var e=new i;return e.source=this,e.operator=t,e},i.prototype.subscribe=function(t,e,s){var n=this,r=is(t)?t:new qt(t,e,s);return dt(function(){var o=n,a=o.operator,l=o.source;r.add(a?a.call(r,l):l?n._subscribe(r):n._trySubscribe(r))}),r},i.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},i.prototype.forEach=function(t,e){var s=this;return e=pe(e),new e(function(n,r){var o=new qt({next:function(a){try{t(a)}catch(l){r(l),o.unsubscribe()}},error:r,complete:n});s.subscribe(o)})},i.prototype._subscribe=function(t){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(t)},i.prototype[Qt]=function(){return this},i.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return ts(t)(this)},i.prototype.toPromise=function(t){var e=this;return t=pe(t),new t(function(s,n){var r;e.subscribe(function(o){return r=o},function(o){return n(o)},function(){return s(r)})})},i.create=function(t){return new i(t)},i}();function pe(i){var t;return(t=i??Je.Promise)!==null&&t!==void 0?t:Promise}function es(i){return i&&v(i.next)&&v(i.error)&&v(i.complete)}function is(i){return i&&i instanceof Xt||es(i)&&Qe(i)}function ss(i){return v(i==null?void 0:i.lift)}function Et(i){return function(t){if(ss(t))return t.lift(function(e){try{return i(e,this)}catch(s){this.error(s)}});throw new TypeError("Unable to lift unknown Observable type")}}function $t(i,t,e,s,n){return new ns(i,t,e,s,n)}var ns=function(i){Z(t,i);function t(e,s,n,r,o,a){var l=i.call(this,e)||this;return l.onFinalize=o,l.shouldUnsubscribe=a,l._next=s?function(c){try{s(c)}catch(u){e.error(u)}}:i.prototype._next,l._error=r?function(c){try{r(c)}catch(u){e.error(u)}finally{this.unsubscribe()}}:i.prototype._error,l._complete=n?function(){try{n()}catch(c){e.error(c)}finally{this.unsubscribe()}}:i.prototype._complete,l}return t.prototype.unsubscribe=function(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var s=this.closed;i.prototype.unsubscribe.call(this),!s&&((e=this.onFinalize)===null||e===void 0||e.call(this))}},t}(Xt),rs=Ke(function(i){return function(){i(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),kt=function(i){Z(t,i);function t(){var e=i.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 s=new ge(this,this);return s.operator=e,s},t.prototype._throwIfClosed=function(){if(this.closed)throw new rs},t.prototype.next=function(e){var s=this;dt(function(){var n,r;if(s._throwIfClosed(),!s.isStopped){s.currentObservers||(s.currentObservers=Array.from(s.observers));try{for(var o=q(s.currentObservers),a=o.next();!a.done;a=o.next()){var l=a.value;l.next(e)}}catch(c){n={error:c}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}})},t.prototype.error=function(e){var s=this;dt(function(){if(s._throwIfClosed(),!s.isStopped){s.hasError=s.isStopped=!0,s.thrownError=e;for(var n=s.observers;n.length;)n.shift().error(e)}})},t.prototype.complete=function(){var e=this;dt(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var s=e.observers;s.length;)s.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(),i.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 s=this,n=this,r=n.hasError,o=n.isStopped,a=n.observers;return r||o?Xe:(this.currentObservers=null,a.push(e),new Ct(function(){s.currentObservers=null,Ft(a,e)}))},t.prototype._checkFinalizedStatuses=function(e){var s=this,n=s.hasError,r=s.thrownError,o=s.isStopped;n?e.error(r):o&&e.complete()},t.prototype.asObservable=function(){var e=new w;return e.source=this,e},t.create=function(e,s){return new ge(e,s)},t}(w),ge=function(i){Z(t,i);function t(e,s){var n=i.call(this)||this;return n.destination=e,n.source=s,n}return t.prototype.next=function(e){var s,n;(n=(s=this.destination)===null||s===void 0?void 0:s.next)===null||n===void 0||n.call(s,e)},t.prototype.error=function(e){var s,n;(n=(s=this.destination)===null||s===void 0?void 0:s.error)===null||n===void 0||n.call(s,e)},t.prototype.complete=function(){var e,s;(s=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||s===void 0||s.call(e)},t.prototype._subscribe=function(e){var s,n;return(n=(s=this.source)===null||s===void 0?void 0:s.subscribe(e))!==null&&n!==void 0?n:Xe},t}(kt),os=function(i){Z(t,i);function t(e){var s=i.call(this)||this;return s._value=e,s}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(e){var s=i.prototype._subscribe.call(this,e);return!s.closed&&e.next(this._value),s},t.prototype.getValue=function(){var e=this,s=e.hasError,n=e.thrownError,r=e._value;if(s)throw n;return this._throwIfClosed(),r},t.prototype.next=function(e){i.prototype.next.call(this,this._value=e)},t}(kt),as=new w(function(i){return i.complete()});function ls(i){return i&&v(i.schedule)}function ei(i){return i[i.length-1]}function cs(i){return ls(ei(i))?i.pop():void 0}function us(i,t){return typeof ei(i)=="number"?i.pop():t}var ii=function(i){return i&&typeof i.length=="number"&&typeof i!="function"};function si(i){return v(i==null?void 0:i.then)}function ni(i){return v(i[Qt])}function ri(i){return Symbol.asyncIterator&&v(i==null?void 0:i[Symbol.asyncIterator])}function oi(i){return new TypeError("You provided "+(i!==null&&typeof i=="object"?"an invalid object":"'"+i+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function hs(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var ai=hs();function li(i){return v(i==null?void 0:i[ai])}function ci(i){return Zi(this,arguments,function(){var e,s,n,r;return Ze(this,function(o){switch(o.label){case 0:e=i.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,W(e.read())];case 3:return s=o.sent(),n=s.value,r=s.done,r?[4,W(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,W(n)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return e.releaseLock(),[7];case 10:return[2]}})})}function ui(i){return v(i==null?void 0:i.getReader)}function K(i){if(i instanceof w)return i;if(i!=null){if(ni(i))return ds(i);if(ii(i))return fs(i);if(si(i))return ps(i);if(ri(i))return hi(i);if(li(i))return gs(i);if(ui(i))return $s(i)}throw oi(i)}function ds(i){return new w(function(t){var e=i[Qt]();if(v(e.subscribe))return e.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function fs(i){return new w(function(t){for(var e=0;e<i.length&&!t.closed;e++)t.next(i[e]);t.complete()})}function ps(i){return new w(function(t){i.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,Ve)})}function gs(i){return new w(function(t){var e,s;try{for(var n=q(i),r=n.next();!r.done;r=n.next()){var o=r.value;if(t.next(o),t.closed)return}}catch(a){e={error:a}}finally{try{r&&!r.done&&(s=n.return)&&s.call(n)}finally{if(e)throw e.error}}t.complete()})}function hi(i){return new w(function(t){vs(i,t).catch(function(e){return t.error(e)})})}function $s(i){return hi(ci(i))}function vs(i,t){var e,s,n,r;return Gi(this,void 0,void 0,function(){var o,a;return Ze(this,function(l){switch(l.label){case 0:l.trys.push([0,5,6,11]),e=Ki(i),l.label=1;case 1:return[4,e.next()];case 2:if(s=l.sent(),!!s.done)return[3,4];if(o=s.value,t.next(o),t.closed)return[2];l.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return a=l.sent(),n={error:a},[3,11];case 6:return l.trys.push([6,,9,10]),s&&!s.done&&(r=e.return)?[4,r.call(e)]:[3,8];case 7:l.sent(),l.label=8;case 8:return[3,10];case 9:if(n)throw n.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}function k(i,t,e,s,n){s===void 0&&(s=0),n===void 0&&(n=!1);var r=t.schedule(function(){e(),n?i.add(this.schedule(null,s)):this.unsubscribe()},s);if(i.add(r),!n)return r}function di(i,t){return t===void 0&&(t=0),Et(function(e,s){e.subscribe($t(s,function(n){return k(s,i,function(){return s.next(n)},t)},function(){return k(s,i,function(){return s.complete()},t)},function(n){return k(s,i,function(){return s.error(n)},t)}))})}function fi(i,t){return t===void 0&&(t=0),Et(function(e,s){s.add(i.schedule(function(){return e.subscribe(s)},t))})}function ms(i,t){return K(i).pipe(fi(t),di(t))}function ys(i,t){return K(i).pipe(fi(t),di(t))}function bs(i,t){return new w(function(e){var s=0;return t.schedule(function(){s===i.length?e.complete():(e.next(i[s++]),e.closed||this.schedule())})})}function _s(i,t){return new w(function(e){var s;return k(e,t,function(){s=i[ai](),k(e,t,function(){var n,r,o;try{n=s.next(),r=n.value,o=n.done}catch(a){e.error(a);return}o?e.complete():e.next(r)},0,!0)}),function(){return v(s==null?void 0:s.return)&&s.return()}})}function pi(i,t){if(!i)throw new Error("Iterable cannot be null");return new w(function(e){k(e,t,function(){var s=i[Symbol.asyncIterator]();k(e,t,function(){s.next().then(function(n){n.done?e.complete():e.next(n.value)})},0,!0)})})}function ws(i,t){return pi(ci(i),t)}function xs(i,t){if(i!=null){if(ni(i))return ms(i,t);if(ii(i))return bs(i,t);if(si(i))return ys(i,t);if(ri(i))return pi(i,t);if(li(i))return _s(i,t);if(ui(i))return ws(i,t)}throw oi(i)}function Ss(i,t){return t?xs(i,t):K(i)}function As(i,t){return Et(function(e,s){var n=0;e.subscribe($t(s,function(r){s.next(i.call(t,r,n++))}))})}function Cs(i,t,e,s,n,r,o,a){var l=[],c=0,u=0,h=!1,d=function(){h&&!l.length&&!c&&t.complete()},f=function(g){return c<s?$(g):l.push(g)},$=function(g){r&&t.next(g),c++;var he=!1;K(e(g,u++)).subscribe($t(t,function(X){n==null||n(X),r?f(X):t.next(X)},function(){he=!0},void 0,function(){if(he)try{c--;for(var X=function(){var ct=l.shift();o?k(t,o,function(){return $(ct)}):$(ct)};l.length&&c<s;)X();d()}catch(ct){t.error(ct)}}))};return i.subscribe($t(t,f,function(){h=!0,d()})),function(){a==null||a()}}function gi(i,t,e){return e===void 0&&(e=1/0),v(t)?gi(function(s,n){return As(function(r,o){return t(s,r,n,o)})(K(i(s,n)))},e):(typeof t=="number"&&(e=t),Et(function(s,n){return Cs(s,n,i,e)}))}function Es(i){return i===void 0&&(i=1/0),gi(ti,i)}function ks(){for(var i=[],t=0;t<arguments.length;t++)i[t]=arguments[t];var e=cs(i),s=us(i,1/0),n=i;return n.length?n.length===1?K(n[0]):Es(s)(Ss(n,e)):as}/**
4
4
  * @license
5
5
  * Copyright 2019 Google LLC
6
6
  * SPDX-License-Identifier: BSD-3-Clause
7
- */const ft=globalThis,Jt=ft.ShadowRoot&&(ft.ShadyCSS===void 0||ft.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Vt=Symbol(),ve=new WeakMap;let vi=class{constructor(t,e,n){if(this._$cssResult$=!0,n!==Vt)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(Jt&&t===void 0){const n=e!==void 0&&e.length===1;n&&(t=ve.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&ve.set(e,t))}return t}toString(){return this.cssText}};const Tn=i=>new vi(typeof i=="string"?i:i+"",void 0,Vt),j=(i,...t)=>{const e=i.length===1?i[0]:t.reduce((n,s,r)=>n+(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.")})(s)+i[r+1],i[0]);return new vi(e,i,Vt)},Pn=(i,t)=>{if(Jt)i.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const n=document.createElement("style"),s=ft.litNonce;s!==void 0&&n.setAttribute("nonce",s),n.textContent=e.cssText,i.appendChild(n)}},$e=Jt?i=>i:i=>i instanceof CSSStyleSheet?(t=>{let e="";for(const n of t.cssRules)e+=n.cssText;return Tn(e)})(i):i;/**
7
+ */const ft=globalThis,Jt=ft.ShadowRoot&&(ft.ShadyCSS===void 0||ft.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Vt=Symbol(),$e=new WeakMap;let $i=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==Vt)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(Jt&&t===void 0){const s=e!==void 0&&e.length===1;s&&(t=$e.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&$e.set(e,t))}return t}toString(){return this.cssText}};const Os=i=>new $i(typeof i=="string"?i:i+"",void 0,Vt),j=(i,...t)=>{const e=i.length===1?i[0]:t.reduce((s,n,r)=>s+(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)+i[r+1],i[0]);return new $i(e,i,Vt)},Ts=(i,t)=>{if(Jt)i.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const s=document.createElement("style"),n=ft.litNonce;n!==void 0&&s.setAttribute("nonce",n),s.textContent=e.cssText,i.appendChild(s)}},ve=Jt?i=>i:i=>i instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return Os(e)})(i):i;/**
8
8
  * @license
9
9
  * Copyright 2017 Google LLC
10
10
  * SPDX-License-Identifier: BSD-3-Clause
11
- */const{is:Ln,defineProperty:In,getOwnPropertyDescriptor:Rn,getOwnPropertyNames:Un,getOwnPropertySymbols:Mn,getPrototypeOf:jn}=Object,O=globalThis,me=O.trustedTypes,Hn=me?me.emptyScript:"",Mt=O.reactiveElementPolyfillSupport,J=(i,t)=>i,$t={toAttribute(i,t){switch(t){case Boolean:i=i?Hn:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,t){let e=i;switch(t){case Boolean:e=i!==null;break;case Number:e=i===null?null:Number(i);break;case Object:case Array:try{e=JSON.parse(i)}catch{e=null}}return e}},te=(i,t)=>!Ln(i,t),ye={attribute:!0,type:String,converter:$t,reflect:!1,hasChanged:te};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),O.litPropertyMetadata??(O.litPropertyMetadata=new WeakMap);let N=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=ye){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const n=Symbol(),s=this.getPropertyDescriptor(t,n,e);s!==void 0&&In(this.prototype,t,s)}}static getPropertyDescriptor(t,e,n){const{get:s,set:r}=Rn(this.prototype,t)??{get(){return this[e]},set(o){this[e]=o}};return{get(){return s==null?void 0:s.call(this)},set(o){const a=s==null?void 0:s.call(this);r.call(this,o),this.requestUpdate(t,a,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??ye}static _$Ei(){if(this.hasOwnProperty(J("elementProperties")))return;const t=jn(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(J("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(J("properties"))){const e=this.properties,n=[...Un(e),...Mn(e)];for(const s of n)this.createProperty(s,e[s])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[n,s]of e)this.elementProperties.set(n,s)}this._$Eh=new Map;for(const[e,n]of this.elementProperties){const s=this._$Eu(e,n);s!==void 0&&this._$Eh.set(s,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const n=new Set(t.flat(1/0).reverse());for(const s of n)e.unshift($e(s))}else t!==void 0&&e.push($e(t));return e}static _$Eu(t,e){const n=e.attribute;return n===!1?void 0:typeof n=="string"?n: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 n of e.keys())this.hasOwnProperty(n)&&(t.set(n,this[n]),delete this[n]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Pn(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 n;return(n=e.hostConnected)==null?void 0:n.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var n;return(n=e.hostDisconnected)==null?void 0:n.call(e)})}attributeChangedCallback(t,e,n){this._$AK(t,n)}_$EC(t,e){var r;const n=this.constructor.elementProperties.get(t),s=this.constructor._$Eu(t,n);if(s!==void 0&&n.reflect===!0){const o=(((r=n.converter)==null?void 0:r.toAttribute)!==void 0?n.converter:$t).toAttribute(e,n.type);this._$Em=t,o==null?this.removeAttribute(s):this.setAttribute(s,o),this._$Em=null}}_$AK(t,e){var r;const n=this.constructor,s=n._$Eh.get(t);if(s!==void 0&&this._$Em!==s){const o=n.getPropertyOptions(s),a=typeof o.converter=="function"?{fromAttribute:o.converter}:((r=o.converter)==null?void 0:r.fromAttribute)!==void 0?o.converter:$t;this._$Em=s,this[s]=a.fromAttribute(e,o.type),this._$Em=null}}requestUpdate(t,e,n){if(t!==void 0){if(n??(n=this.constructor.getPropertyOptions(t)),!(n.hasChanged??te)(this[t],e))return;this.P(t,e,n)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,n){this._$AL.has(t)||this._$AL.set(t,e),n.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 n;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 s=this.constructor.elementProperties;if(s.size>0)for(const[r,o]of s)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),(n=this._$EO)==null||n.forEach(s=>{var r;return(r=s.hostUpdate)==null?void 0:r.call(s)}),this.update(e)):this._$EU()}catch(s){throw t=!1,this._$EU(),s}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(n=>{var s;return(s=n.hostUpdated)==null?void 0:s.call(n)}),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){}};N.elementStyles=[],N.shadowRootOptions={mode:"open"},N[J("elementProperties")]=new Map,N[J("finalized")]=new Map,Mt==null||Mt({ReactiveElement:N}),(O.reactiveElementVersions??(O.reactiveElementVersions=[])).push("2.0.4");/**
11
+ */const{is:Ps,defineProperty:Ls,getOwnPropertyDescriptor:Is,getOwnPropertyNames:Rs,getOwnPropertySymbols:Us,getPrototypeOf:Ms}=Object,O=globalThis,me=O.trustedTypes,js=me?me.emptyScript:"",Mt=O.reactiveElementPolyfillSupport,J=(i,t)=>i,vt={toAttribute(i,t){switch(t){case Boolean:i=i?js:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,t){let e=i;switch(t){case Boolean:e=i!==null;break;case Number:e=i===null?null:Number(i);break;case Object:case Array:try{e=JSON.parse(i)}catch{e=null}}return e}},te=(i,t)=>!Ps(i,t),ye={attribute:!0,type:String,converter:vt,reflect:!1,hasChanged:te};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),O.litPropertyMetadata??(O.litPropertyMetadata=new WeakMap);let N=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=ye){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const s=Symbol(),n=this.getPropertyDescriptor(t,s,e);n!==void 0&&Ls(this.prototype,t,n)}}static getPropertyDescriptor(t,e,s){const{get:n,set:r}=Is(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,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??ye}static _$Ei(){if(this.hasOwnProperty(J("elementProperties")))return;const t=Ms(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(J("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(J("properties"))){const e=this.properties,s=[...Rs(e),...Us(e)];for(const n of s)this.createProperty(n,e[n])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[s,n]of e)this.elementProperties.set(s,n)}this._$Eh=new Map;for(const[e,s]of this.elementProperties){const n=this._$Eu(e,s);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const n of s)e.unshift(ve(n))}else t!==void 0&&e.push(ve(t));return e}static _$Eu(t,e){const s=e.attribute;return s===!1?void 0:typeof s=="string"?s: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 s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Ts(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 s;return(s=e.hostConnected)==null?void 0:s.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var s;return(s=e.hostDisconnected)==null?void 0:s.call(e)})}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$EC(t,e){var r;const s=this.constructor.elementProperties.get(t),n=this.constructor._$Eu(t,s);if(n!==void 0&&s.reflect===!0){const o=(((r=s.converter)==null?void 0:r.toAttribute)!==void 0?s.converter:vt).toAttribute(e,s.type);this._$Em=t,o==null?this.removeAttribute(n):this.setAttribute(n,o),this._$Em=null}}_$AK(t,e){var r;const s=this.constructor,n=s._$Eh.get(t);if(n!==void 0&&this._$Em!==n){const o=s.getPropertyOptions(n),a=typeof o.converter=="function"?{fromAttribute:o.converter}:((r=o.converter)==null?void 0:r.fromAttribute)!==void 0?o.converter:vt;this._$Em=n,this[n]=a.fromAttribute(e,o.type),this._$Em=null}}requestUpdate(t,e,s){if(t!==void 0){if(s??(s=this.constructor.getPropertyOptions(t)),!(s.hasChanged??te)(this[t],e))return;this.P(t,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,s){this._$AL.has(t)||this._$AL.set(t,e),s.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 s;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),(s=this._$EO)==null||s.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(s=>{var n;return(n=s.hostUpdated)==null?void 0:n.call(s)}),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){}};N.elementStyles=[],N.shadowRootOptions={mode:"open"},N[J("elementProperties")]=new Map,N[J("finalized")]=new Map,Mt==null||Mt({ReactiveElement:N}),(O.reactiveElementVersions??(O.reactiveElementVersions=[])).push("2.0.4");/**
12
12
  * @license
13
13
  * Copyright 2017 Google LLC
14
14
  * SPDX-License-Identifier: BSD-3-Clause
15
- */const V=globalThis,mt=V.trustedTypes,be=mt?mt.createPolicy("lit-html",{createHTML:i=>i}):void 0,$i="$lit$",E=`lit$${(Math.random()+"").slice(9)}$`,mi="?"+E,Nn=`<${mi}>`,R=document,et=()=>R.createComment(""),it=i=>i===null||typeof i!="object"&&typeof i!="function",yi=Array.isArray,Dn=i=>yi(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",jt=`[
15
+ */const V=globalThis,mt=V.trustedTypes,be=mt?mt.createPolicy("lit-html",{createHTML:i=>i}):void 0,vi="$lit$",E=`lit$${(Math.random()+"").slice(9)}$`,mi="?"+E,Hs=`<${mi}>`,R=document,et=()=>R.createComment(""),it=i=>i===null||typeof i!="object"&&typeof i!="function",yi=Array.isArray,Ns=i=>yi(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",jt=`[
16
16
  \f\r]`,Q=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_e=/-->/g,we=/>/g,P=RegExp(`>|${jt}(?:([^\\s"'>=/]+)(${jt}*=${jt}*(?:[^
17
- \f\r"'\`<>=]|("|')|))|$)`,"g"),xe=/'/g,Se=/"/g,bi=/^(?:script|style|textarea|title)$/i,Bn=i=>(t,...e)=>({_$litType$:i,strings:t,values:e}),b=Bn(1),U=Symbol.for("lit-noChange"),p=Symbol.for("lit-nothing"),Ae=new WeakMap,I=R.createTreeWalker(R,129);function _i(i,t){if(!Array.isArray(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return be!==void 0?be.createHTML(t):t}const zn=(i,t)=>{const e=i.length-1,n=[];let s,r=t===2?"<svg>":"",o=Q;for(let a=0;a<e;a++){const l=i[a];let c,h,u=-1,d=0;for(;d<l.length&&(o.lastIndex=d,h=o.exec(l),h!==null);)d=o.lastIndex,o===Q?h[1]==="!--"?o=_e:h[1]!==void 0?o=we:h[2]!==void 0?(bi.test(h[2])&&(s=RegExp("</"+h[2],"g")),o=P):h[3]!==void 0&&(o=P):o===P?h[0]===">"?(o=s??Q,u=-1):h[1]===void 0?u=-2:(u=o.lastIndex-h[2].length,c=h[1],o=h[3]===void 0?P:h[3]==='"'?Se:xe):o===Se||o===xe?o=P:o===_e||o===we?o=Q:(o=P,s=void 0);const f=o===P&&i[a+1].startsWith("/>")?" ":"";r+=o===Q?l+Nn:u>=0?(n.push(c),l.slice(0,u)+$i+l.slice(u)+E+f):l+E+(u===-2?a:f)}return[_i(i,r+(i[e]||"<?>")+(t===2?"</svg>":"")),n]};class nt{constructor({strings:t,_$litType$:e},n){let s;this.parts=[];let r=0,o=0;const a=t.length-1,l=this.parts,[c,h]=zn(t,e);if(this.el=nt.createElement(c,n),I.currentNode=this.el.content,e===2){const u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(s=I.nextNode())!==null&&l.length<a;){if(s.nodeType===1){if(s.hasAttributes())for(const u of s.getAttributeNames())if(u.endsWith($i)){const d=h[o++],f=s.getAttribute(u).split(E),v=/([.?@])?(.*)/.exec(d);l.push({type:1,index:r,name:v[2],strings:f,ctor:v[1]==="."?Fn:v[1]==="?"?Yn:v[1]==="@"?qn:Ot}),s.removeAttribute(u)}else u.startsWith(E)&&(l.push({type:6,index:r}),s.removeAttribute(u));if(bi.test(s.tagName)){const u=s.textContent.split(E),d=u.length-1;if(d>0){s.textContent=mt?mt.emptyScript:"";for(let f=0;f<d;f++)s.append(u[f],et()),I.nextNode(),l.push({type:2,index:++r});s.append(u[d],et())}}}else if(s.nodeType===8)if(s.data===mi)l.push({type:2,index:r});else{let u=-1;for(;(u=s.data.indexOf(E,u+1))!==-1;)l.push({type:7,index:r}),u+=E.length-1}r++}}static createElement(t,e){const n=R.createElement("template");return n.innerHTML=t,n}}function G(i,t,e=i,n){var o,a;if(t===U)return t;let s=n!==void 0?(o=e._$Co)==null?void 0:o[n]:e._$Cl;const r=it(t)?void 0:t._$litDirective$;return(s==null?void 0:s.constructor)!==r&&((a=s==null?void 0:s._$AO)==null||a.call(s,!1),r===void 0?s=void 0:(s=new r(i),s._$AT(i,e,n)),n!==void 0?(e._$Co??(e._$Co=[]))[n]=s:e._$Cl=s),s!==void 0&&(t=G(i,s._$AS(i,t.values),s,n)),t}class Wn{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:n}=this._$AD,s=((t==null?void 0:t.creationScope)??R).importNode(e,!0);I.currentNode=s;let r=I.nextNode(),o=0,a=0,l=n[0];for(;l!==void 0;){if(o===l.index){let c;l.type===2?c=new rt(r,r.nextSibling,this,t):l.type===1?c=new l.ctor(r,l.name,l.strings,this,t):l.type===6&&(c=new Gn(r,this,t)),this._$AV.push(c),l=n[++a]}o!==(l==null?void 0:l.index)&&(r=I.nextNode(),o++)}return I.currentNode=R,s}p(t){let e=0;for(const n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,e),e+=n.strings.length-2):n._$AI(t[e])),e++}}class rt{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,n,s){this.type=2,this._$AH=p,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=n,this.options=s,this._$Cv=(s==null?void 0:s.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=G(this,t,e),it(t)?t===p||t==null||t===""?(this._$AH!==p&&this._$AR(),this._$AH=p):t!==this._$AH&&t!==U&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Dn(t)?this.k(t):this._(t)}S(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.S(t))}_(t){this._$AH!==p&&it(this._$AH)?this._$AA.nextSibling.data=t:this.T(R.createTextNode(t)),this._$AH=t}$(t){var r;const{values:e,_$litType$:n}=t,s=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=nt.createElement(_i(n.h,n.h[0]),this.options)),n);if(((r=this._$AH)==null?void 0:r._$AD)===s)this._$AH.p(e);else{const o=new Wn(s,this),a=o.u(this.options);o.p(e),this.T(a),this._$AH=o}}_$AC(t){let e=Ae.get(t.strings);return e===void 0&&Ae.set(t.strings,e=new nt(t)),e}k(t){yi(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let n,s=0;for(const r of t)s===e.length?e.push(n=new rt(this.S(et()),this.S(et()),this,this.options)):n=e[s],n._$AI(r),s++;s<e.length&&(this._$AR(n&&n._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){var n;for((n=this._$AP)==null?void 0:n.call(this,!1,!0,e);t&&t!==this._$AB;){const s=t.nextSibling;t.remove(),t=s}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}}class Ot{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,n,s,r){this.type=1,this._$AH=p,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=r,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=p}_$AI(t,e=this,n,s){const r=this.strings;let o=!1;if(r===void 0)t=G(this,t,e,0),o=!it(t)||t!==this._$AH&&t!==U,o&&(this._$AH=t);else{const a=t;let l,c;for(t=r[0],l=0;l<r.length-1;l++)c=G(this,a[n+l],e,l),c===U&&(c=this._$AH[l]),o||(o=!it(c)||c!==this._$AH[l]),c===p?t=p:t!==p&&(t+=(c??"")+r[l+1]),this._$AH[l]=c}o&&!s&&this.j(t)}j(t){t===p?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Fn extends Ot{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===p?void 0:t}}let Yn=class extends Ot{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==p)}};class qn extends Ot{constructor(t,e,n,s,r){super(t,e,n,s,r),this.type=5}_$AI(t,e=this){if((t=G(this,t,e,0)??p)===U)return;const n=this._$AH,s=t===p&&n!==p||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,r=t!==p&&(n===p||s);s&&this.element.removeEventListener(this.name,this,n),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 Gn{constructor(t,e,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){G(this,t)}}const Ht=V.litHtmlPolyfillSupport;Ht==null||Ht(nt,rt),(V.litHtmlVersions??(V.litHtmlVersions=[])).push("3.1.2");const Zn=(i,t,e)=>{const n=(e==null?void 0:e.renderBefore)??t;let s=n._$litPart$;if(s===void 0){const r=(e==null?void 0:e.renderBefore)??null;n._$litPart$=s=new rt(t.insertBefore(et(),r),r,void 0,e??{})}return s._$AI(i),s};/**
17
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),xe=/'/g,Se=/"/g,bi=/^(?:script|style|textarea|title)$/i,Ds=i=>(t,...e)=>({_$litType$:i,strings:t,values:e}),b=Ds(1),U=Symbol.for("lit-noChange"),p=Symbol.for("lit-nothing"),Ae=new WeakMap,I=R.createTreeWalker(R,129);function _i(i,t){if(!Array.isArray(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return be!==void 0?be.createHTML(t):t}const Bs=(i,t)=>{const e=i.length-1,s=[];let n,r=t===2?"<svg>":"",o=Q;for(let a=0;a<e;a++){const l=i[a];let c,u,h=-1,d=0;for(;d<l.length&&(o.lastIndex=d,u=o.exec(l),u!==null);)d=o.lastIndex,o===Q?u[1]==="!--"?o=_e:u[1]!==void 0?o=we:u[2]!==void 0?(bi.test(u[2])&&(n=RegExp("</"+u[2],"g")),o=P):u[3]!==void 0&&(o=P):o===P?u[0]===">"?(o=n??Q,h=-1):u[1]===void 0?h=-2:(h=o.lastIndex-u[2].length,c=u[1],o=u[3]===void 0?P:u[3]==='"'?Se:xe):o===Se||o===xe?o=P:o===_e||o===we?o=Q:(o=P,n=void 0);const f=o===P&&i[a+1].startsWith("/>")?" ":"";r+=o===Q?l+Hs:h>=0?(s.push(c),l.slice(0,h)+vi+l.slice(h)+E+f):l+E+(h===-2?a:f)}return[_i(i,r+(i[e]||"<?>")+(t===2?"</svg>":"")),s]};class st{constructor({strings:t,_$litType$:e},s){let n;this.parts=[];let r=0,o=0;const a=t.length-1,l=this.parts,[c,u]=Bs(t,e);if(this.el=st.createElement(c,s),I.currentNode=this.el.content,e===2){const h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(n=I.nextNode())!==null&&l.length<a;){if(n.nodeType===1){if(n.hasAttributes())for(const h of n.getAttributeNames())if(h.endsWith(vi)){const d=u[o++],f=n.getAttribute(h).split(E),$=/([.?@])?(.*)/.exec(d);l.push({type:1,index:r,name:$[2],strings:f,ctor:$[1]==="."?Ws:$[1]==="?"?Fs:$[1]==="@"?Ys:Ot}),n.removeAttribute(h)}else h.startsWith(E)&&(l.push({type:6,index:r}),n.removeAttribute(h));if(bi.test(n.tagName)){const h=n.textContent.split(E),d=h.length-1;if(d>0){n.textContent=mt?mt.emptyScript:"";for(let f=0;f<d;f++)n.append(h[f],et()),I.nextNode(),l.push({type:2,index:++r});n.append(h[d],et())}}}else if(n.nodeType===8)if(n.data===mi)l.push({type:2,index:r});else{let h=-1;for(;(h=n.data.indexOf(E,h+1))!==-1;)l.push({type:7,index:r}),h+=E.length-1}r++}}static createElement(t,e){const s=R.createElement("template");return s.innerHTML=t,s}}function G(i,t,e=i,s){var o,a;if(t===U)return t;let n=s!==void 0?(o=e._$Co)==null?void 0:o[s]:e._$Cl;const r=it(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(i),n._$AT(i,e,s)),s!==void 0?(e._$Co??(e._$Co=[]))[s]=n:e._$Cl=n),n!==void 0&&(t=G(i,n._$AS(i,t.values),n,s)),t}class zs{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:s}=this._$AD,n=((t==null?void 0:t.creationScope)??R).importNode(e,!0);I.currentNode=n;let r=I.nextNode(),o=0,a=0,l=s[0];for(;l!==void 0;){if(o===l.index){let c;l.type===2?c=new rt(r,r.nextSibling,this,t):l.type===1?c=new l.ctor(r,l.name,l.strings,this,t):l.type===6&&(c=new qs(r,this,t)),this._$AV.push(c),l=s[++a]}o!==(l==null?void 0:l.index)&&(r=I.nextNode(),o++)}return I.currentNode=R,n}p(t){let e=0;for(const s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}}class rt{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,s,n){this.type=2,this._$AH=p,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,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=G(this,t,e),it(t)?t===p||t==null||t===""?(this._$AH!==p&&this._$AR(),this._$AH=p):t!==this._$AH&&t!==U&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Ns(t)?this.k(t):this._(t)}S(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.S(t))}_(t){this._$AH!==p&&it(this._$AH)?this._$AA.nextSibling.data=t:this.T(R.createTextNode(t)),this._$AH=t}$(t){var r;const{values:e,_$litType$:s}=t,n=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=st.createElement(_i(s.h,s.h[0]),this.options)),s);if(((r=this._$AH)==null?void 0:r._$AD)===n)this._$AH.p(e);else{const o=new zs(n,this),a=o.u(this.options);o.p(e),this.T(a),this._$AH=o}}_$AC(t){let e=Ae.get(t.strings);return e===void 0&&Ae.set(t.strings,e=new st(t)),e}k(t){yi(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,n=0;for(const r of t)n===e.length?e.push(s=new rt(this.S(et()),this.S(et()),this,this.options)):s=e[n],s._$AI(r),n++;n<e.length&&(this._$AR(s&&s._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){var s;for((s=this._$AP)==null?void 0:s.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 Ot{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,n,r){this.type=1,this._$AH=p,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=r,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=p}_$AI(t,e=this,s,n){const r=this.strings;let o=!1;if(r===void 0)t=G(this,t,e,0),o=!it(t)||t!==this._$AH&&t!==U,o&&(this._$AH=t);else{const a=t;let l,c;for(t=r[0],l=0;l<r.length-1;l++)c=G(this,a[s+l],e,l),c===U&&(c=this._$AH[l]),o||(o=!it(c)||c!==this._$AH[l]),c===p?t=p:t!==p&&(t+=(c??"")+r[l+1]),this._$AH[l]=c}o&&!n&&this.j(t)}j(t){t===p?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Ws extends Ot{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===p?void 0:t}}let Fs=class extends Ot{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==p)}};class Ys extends Ot{constructor(t,e,s,n,r){super(t,e,s,n,r),this.type=5}_$AI(t,e=this){if((t=G(this,t,e,0)??p)===U)return;const s=this._$AH,n=t===p&&s!==p||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,r=t!==p&&(s===p||n);n&&this.element.removeEventListener(this.name,this,s),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 qs{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){G(this,t)}}const Ht=V.litHtmlPolyfillSupport;Ht==null||Ht(st,rt),(V.litHtmlVersions??(V.litHtmlVersions=[])).push("3.1.2");const Gs=(i,t,e)=>{const s=(e==null?void 0:e.renderBefore)??t;let n=s._$litPart$;if(n===void 0){const r=(e==null?void 0:e.renderBefore)??null;s._$litPart$=n=new rt(t.insertBefore(et(),r),r,void 0,e??{})}return n._$AI(i),n};/**
18
18
  * @license
19
19
  * Copyright 2017 Google LLC
20
20
  * SPDX-License-Identifier: BSD-3-Clause
21
- */let S=class extends N{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=Zn(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 U}};var Ge;S._$litElement$=!0,S.finalized=!0,(Ge=globalThis.litElementHydrateSupport)==null||Ge.call(globalThis,{LitElement:S});const Nt=globalThis.litElementPolyfillSupport;Nt==null||Nt({LitElement:S});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.0.4");/**
21
+ */let S=class extends N{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=Gs(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 U}};var Ge;S._$litElement$=!0,S.finalized=!0,(Ge=globalThis.litElementHydrateSupport)==null||Ge.call(globalThis,{LitElement:S});const Nt=globalThis.litElementPolyfillSupport;Nt==null||Nt({LitElement:S});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.0.4");/**
22
22
  * @license
23
23
  * Copyright 2017 Google LLC
24
24
  * SPDX-License-Identifier: BSD-3-Clause
25
- */const Kn={attribute:!0,type:String,converter:$t,reflect:!1,hasChanged:te},Xn=(i=Kn,t,e)=>{const{kind:n,metadata:s}=e;let r=globalThis.litPropertyMetadata.get(s);if(r===void 0&&globalThis.litPropertyMetadata.set(s,r=new Map),r.set(e.name,i),n==="accessor"){const{name:o}=e;return{set(a){const l=t.get.call(this);t.set.call(this,a),this.requestUpdate(o,l,i)},init(a){return a!==void 0&&this.P(o,void 0,i),a}}}if(n==="setter"){const{name:o}=e;return function(a){const l=this[o];t.call(this,a),this.requestUpdate(o,l,i)}}throw Error("Unsupported decorator location: "+n)};function _(i){return(t,e)=>typeof e=="object"?Xn(i,t,e):((n,s,r)=>{const o=s.hasOwnProperty(r);return s.constructor.createProperty(r,o?{...n,wrapped:!0}:n),o?Object.getOwnPropertyDescriptor(s,r):void 0})(i,t,e)}/**
25
+ */const Zs={attribute:!0,type:String,converter:vt,reflect:!1,hasChanged:te},Ks=(i=Zs,t,e)=>{const{kind:s,metadata:n}=e;let r=globalThis.litPropertyMetadata.get(n);if(r===void 0&&globalThis.litPropertyMetadata.set(n,r=new Map),r.set(e.name,i),s==="accessor"){const{name:o}=e;return{set(a){const l=t.get.call(this);t.set.call(this,a),this.requestUpdate(o,l,i)},init(a){return a!==void 0&&this.P(o,void 0,i),a}}}if(s==="setter"){const{name:o}=e;return function(a){const l=this[o];t.call(this,a),this.requestUpdate(o,l,i)}}throw Error("Unsupported decorator location: "+s)};function _(i){return(t,e)=>typeof e=="object"?Ks(i,t,e):((s,n,r)=>{const o=n.hasOwnProperty(r);return n.constructor.createProperty(r,o?{...s,wrapped:!0}:s),o?Object.getOwnPropertyDescriptor(n,r):void 0})(i,t,e)}/**
26
26
  * @license
27
27
  * Copyright 2017 Google LLC
28
28
  * SPDX-License-Identifier: BSD-3-Clause
29
- */function H(i){return _({...i,state:!0,attribute:!1})}var Qn=Object.defineProperty,Jn=Object.getOwnPropertyDescriptor,Vn=(i,t,e,n)=>{for(var s=n>1?void 0:n?Jn(t,e):t,r=i.length-1,o;r>=0;r--)(o=i[r])&&(s=(n?o(t,e,s):o(s))||s);return n&&s&&Qn(t,e,s),s};class ee extends S{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}}ee.styles=[j`
29
+ */function H(i){return _({...i,state:!0,attribute:!1})}var Xs=Object.defineProperty,Qs=Object.getOwnPropertyDescriptor,Js=(i,t,e,s)=>{for(var n=s>1?void 0:s?Qs(t,e):t,r=i.length-1,o;r>=0;r--)(o=i[r])&&(n=(s?o(t,e,n):o(n))||n);return s&&n&&Xs(t,e,n),n};class ee extends S{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}}ee.styles=[j`
30
30
  :host {
31
31
  position: fixed;
32
32
  display: flex;
@@ -42,40 +42,40 @@
42
42
  bottom: 20px;
43
43
  left: 20px;
44
44
  }
45
- `];Vn([_({attribute:!0})],ee.prototype,"anchor",2);/**
45
+ `];Js([_({attribute:!0})],ee.prototype,"anchor",2);/**
46
46
  * @license
47
47
  * Copyright 2017 Google LLC
48
48
  * SPDX-License-Identifier: BSD-3-Clause
49
- */const ie={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},ne=i=>(...t)=>({_$litDirective$:i,values:t});let wi=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,n){this._$Ct=t,this._$AM=e,this._$Ci=n}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};/**
49
+ */const ie={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},se=i=>(...t)=>({_$litDirective$:i,values:t});let wi=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,s){this._$Ct=t,this._$AM=e,this._$Ci=s}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};/**
50
50
  * @license
51
51
  * Copyright 2020 Google LLC
52
52
  * SPDX-License-Identifier: BSD-3-Clause
53
- */const ts=i=>i.strings===void 0;/**
53
+ */const Vs=i=>i.strings===void 0;/**
54
54
  * @license
55
55
  * Copyright 2017 Google LLC
56
56
  * SPDX-License-Identifier: BSD-3-Clause
57
- */const tt=(i,t)=>{var n;const e=i._$AN;if(e===void 0)return!1;for(const s of e)(n=s._$AO)==null||n.call(s,t,!1),tt(s,t);return!0},yt=i=>{let t,e;do{if((t=i._$AM)===void 0)break;e=t._$AN,e.delete(i),i=t}while((e==null?void 0:e.size)===0)},xi=i=>{for(let t;t=i._$AM;i=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(i))break;e.add(i),ns(t)}};function es(i){this._$AN!==void 0?(yt(this),this._$AM=i,xi(this)):this._$AM=i}function is(i,t=!1,e=0){const n=this._$AH,s=this._$AN;if(s!==void 0&&s.size!==0)if(t)if(Array.isArray(n))for(let r=e;r<n.length;r++)tt(n[r],!1),yt(n[r]);else n!=null&&(tt(n,!1),yt(n));else tt(this,i)}const ns=i=>{i.type==ie.CHILD&&(i._$AP??(i._$AP=is),i._$AQ??(i._$AQ=es))};class Si extends wi{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,n){super._$AT(t,e,n),xi(this),this.isConnected=t._$AU}_$AO(t,e=!0){var n,s;t!==this.isConnected&&(this.isConnected=t,t?(n=this.reconnected)==null||n.call(this):(s=this.disconnected)==null||s.call(this)),e&&(tt(this,t),yt(this))}setValue(t){if(ts(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 ss=new WeakMap;let Ce=0;const Dt=new Map,Ee=new WeakSet,ke=()=>new Promise(i=>requestAnimationFrame(i)),Oe=[{transform:"translateY(-100%) scale(0)",opacity:0}],rs=[{transform:"translateX(100%) scale(0)",opacity:0}],Te=(i,t)=>{const e=i-t;return e===0?void 0:e},Pe=(i,t)=>{const e=i/t;return e===1?void 0:e},Bt={left:(i,t)=>{const e=Te(i,t);return{value:e,transform:e==null||isNaN(e)?void 0:`translateX(${e}px)`}},top:(i,t)=>{const e=Te(i,t);return{value:e,transform:e==null||isNaN(e)?void 0:`translateY(${e}px)`}},width:(i,t)=>{let e;t===0&&(t=1,e={width:"1px"});const n=Pe(i,t);return{value:n,overrideFrom:e,transform:n==null||isNaN(n)?void 0:`scaleX(${n})`}},height:(i,t)=>{let e;t===0&&(t=1,e={height:"1px"});const n=Pe(i,t);return{value:n,overrideFrom:e,transform:n==null||isNaN(n)?void 0:`scaleY(${n})`}}},os={duration:333,easing:"ease-in-out"},as=["left","top","width","height","opacity","color","background"],Le=new WeakMap;class ls extends Si{constructor(t){if(super(t),this.t=!1,this.i=null,this.o=null,this.h=!0,this.shouldLog=!1,t.type===ie.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 ss.get(this.u)}isDisabled(){var t;return this.options.disabled||((t=this.getController())==null?void 0:t.disabled)}update(t,[e]){var s;const n=this.u===void 0;return n&&(this.u=(s=t.options)==null?void 0:s.host,this.u.addController(this),this.u.updateComplete.then(r=>this.t=!0),this.element=t.element,Le.set(this.element,this)),this.optionsOrCallback=e,(n||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=as),this.options=t}m(){const t={},e=this.element.getBoundingClientRect(),n=getComputedStyle(this.element);return this.options.properties.forEach(s=>{const r=e[s]??(Bt[s]?void 0:n[s]),o=Number(r);t[s]=isNaN(o)?r+"":o}),t}v(){let t,e=!0;return this.options.guard&&(t=this.options.guard(),e=((n,s)=>{if(Array.isArray(n)){if(Array.isArray(s)&&s.length===n.length&&n.every((r,o)=>r===s[o]))return!1}else if(s===n)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 ke;const e=this.O(),n=this.j(this.options.keyframeOptions,e),s=this.m();if(this.A!==void 0){const{from:r,to:o}=this.N(this.A,s,e);this.log("measured",[this.A,s,r,o]),t=this.calculateKeyframes(r,o)}else{const r=Dt.get(this.options.inId);if(r){Dt.delete(this.options.inId);const{from:o,to:a}=this.N(r,s,e);t=this.calculateKeyframes(o,a),t=this.options.in?[{...this.options.in[0],...t[0]},...this.options.in.slice(1),t[1]]:t,Ce++,t.forEach(l=>l.zIndex=Ce)}else this.options.in&&(t=[...this.options.in,{}])}this.animate(t,n)}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&&Dt.set(this.options.id,this.A),this.options.out===void 0))return;if(this.prepare(),await ke(),(e=this.i)==null?void 0:e.isConnected){const n=this.o&&this.o.parentNode===this.i?this.o:null;if(this.i.insertBefore(this.element,n),this.options.stabilizeOut){const s=this.m();this.log("stabilizing out");const r=this.A.left-s.left,o=this.A.top-s.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,n;t&&((n=(e=this.options).onComplete)==null||n.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 n=Le.get(e);n&&!n.isDisabled()&&n&&t.push(n)}return t}get isHostRendered(){const t=Ee.has(this.u);return t||this.u.updateComplete.then(()=>{Ee.add(this.u)}),t}j(t,e=this.O()){const n={...os};return e.forEach(s=>Object.assign(n,s.options.keyframeOptions)),Object.assign(n,t),n}N(t,e,n){t={...t},e={...e};const s=n.map(a=>a.animatingProperties).filter(a=>a!==void 0);let r=1,o=1;return s.length>0&&(s.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,n=!1){const s={},r={};let o=!1;const a={};for(const l in e){const c=t[l],h=e[l];if(l in Bt){const u=Bt[l];if(c===void 0||h===void 0)continue;const d=u(c,h);d.transform!==void 0&&(a[l]=d.value,o=!0,s.transform=`${s.transform??""} ${d.transform}`,d.overrideFrom!==void 0&&Object.assign(s,d.overrideFrom))}else c!==h&&c!==void 0&&h!==void 0&&(o=!0,s[l]=c,r[l]=h)}return s.transformOrigin=r.transformOrigin=n?"center center":"top left",this.animatingProperties=a,o?[s,r]:void 0}async animate(t,e=this.options.keyframeOptions){this.start(),this.frames=t;let n=!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]),n=!0,this.webAnimation=this.element.animate(t,e);const s=this.getController();s==null||s.add(this);try{await this.webAnimation.finished}catch{}s==null||s.remove(this)}return this.didFinish(n),n}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 Ai=ne(ls),cs={name:"chevron-down",svg:'<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M53.0318 24.8653L33.5318 44.3653C33.1256 44.7717 32.5745 45.0001 31.9999 45.0001C31.4253 45.0001 30.8742 44.7717 30.468 44.3653L10.968 24.8653C10.122 24.0193 10.122 22.6476 10.968 21.8015C11.8141 20.9555 13.1858 20.9555 14.0318 21.8015L31.9999 39.7696L49.968 21.8015C50.8141 20.9555 52.1858 20.9555 53.0318 21.8015C53.8779 22.6476 53.8779 24.0193 53.0318 24.8653Z"/></svg>'},hs={name:"more-horizontal",svg:'<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M18 36C15.7909 36 14 34.2091 14 32C14 29.7909 15.7909 28 18 28C20.2091 28 22 29.7909 22 32C22 34.2091 20.2091 36 18 36ZM28 32C28 34.2091 29.7909 36 32 36C34.2091 36 36 34.2091 36 32C36 29.7909 34.2091 28 32 28C29.7909 28 28 29.7909 28 32ZM46 36C43.7909 36 42 34.2091 42 32C42 29.7909 43.7909 28 46 28C48.2091 28 50 29.7909 50 32C50 34.2091 48.2091 36 46 36Z"/></svg>'},us={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>'};/**
57
+ */const tt=(i,t)=>{var s;const e=i._$AN;if(e===void 0)return!1;for(const n of e)(s=n._$AO)==null||s.call(n,t,!1),tt(n,t);return!0},yt=i=>{let t,e;do{if((t=i._$AM)===void 0)break;e=t._$AN,e.delete(i),i=t}while((e==null?void 0:e.size)===0)},xi=i=>{for(let t;t=i._$AM;i=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(i))break;e.add(i),sn(t)}};function tn(i){this._$AN!==void 0?(yt(this),this._$AM=i,xi(this)):this._$AM=i}function en(i,t=!1,e=0){const s=this._$AH,n=this._$AN;if(n!==void 0&&n.size!==0)if(t)if(Array.isArray(s))for(let r=e;r<s.length;r++)tt(s[r],!1),yt(s[r]);else s!=null&&(tt(s,!1),yt(s));else tt(this,i)}const sn=i=>{i.type==ie.CHILD&&(i._$AP??(i._$AP=en),i._$AQ??(i._$AQ=tn))};class Si extends wi{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,s){super._$AT(t,e,s),xi(this),this.isConnected=t._$AU}_$AO(t,e=!0){var s,n;t!==this.isConnected&&(this.isConnected=t,t?(s=this.reconnected)==null||s.call(this):(n=this.disconnected)==null||n.call(this)),e&&(tt(this,t),yt(this))}setValue(t){if(Vs(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 nn=new WeakMap;let Ce=0;const Dt=new Map,Ee=new WeakSet,ke=()=>new Promise(i=>requestAnimationFrame(i)),Oe=[{transform:"translateY(-100%) scale(0)",opacity:0}],rn=[{transform:"translateX(100%) scale(0)",opacity:0}],Te=(i,t)=>{const e=i-t;return e===0?void 0:e},Pe=(i,t)=>{const e=i/t;return e===1?void 0:e},Bt={left:(i,t)=>{const e=Te(i,t);return{value:e,transform:e==null||isNaN(e)?void 0:`translateX(${e}px)`}},top:(i,t)=>{const e=Te(i,t);return{value:e,transform:e==null||isNaN(e)?void 0:`translateY(${e}px)`}},width:(i,t)=>{let e;t===0&&(t=1,e={width:"1px"});const s=Pe(i,t);return{value:s,overrideFrom:e,transform:s==null||isNaN(s)?void 0:`scaleX(${s})`}},height:(i,t)=>{let e;t===0&&(t=1,e={height:"1px"});const s=Pe(i,t);return{value:s,overrideFrom:e,transform:s==null||isNaN(s)?void 0:`scaleY(${s})`}}},on={duration:333,easing:"ease-in-out"},an=["left","top","width","height","opacity","color","background"],Le=new WeakMap;class ln extends Si{constructor(t){if(super(t),this.t=!1,this.i=null,this.o=null,this.h=!0,this.shouldLog=!1,t.type===ie.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 nn.get(this.u)}isDisabled(){var t;return this.options.disabled||((t=this.getController())==null?void 0:t.disabled)}update(t,[e]){var n;const s=this.u===void 0;return s&&(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,Le.set(this.element,this)),this.optionsOrCallback=e,(s||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=an),this.options=t}m(){const t={},e=this.element.getBoundingClientRect(),s=getComputedStyle(this.element);return this.options.properties.forEach(n=>{const r=e[n]??(Bt[n]?void 0:s[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=((s,n)=>{if(Array.isArray(s)){if(Array.isArray(n)&&n.length===s.length&&s.every((r,o)=>r===n[o]))return!1}else if(n===s)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 ke;const e=this.O(),s=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=Dt.get(this.options.inId);if(r){Dt.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,Ce++,t.forEach(l=>l.zIndex=Ce)}else this.options.in&&(t=[...this.options.in,{}])}this.animate(t,s)}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&&Dt.set(this.options.id,this.A),this.options.out===void 0))return;if(this.prepare(),await ke(),(e=this.i)==null?void 0:e.isConnected){const s=this.o&&this.o.parentNode===this.i?this.o:null;if(this.i.insertBefore(this.element,s),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,s;t&&((s=(e=this.options).onComplete)==null||s.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 s=Le.get(e);s&&!s.isDisabled()&&s&&t.push(s)}return t}get isHostRendered(){const t=Ee.has(this.u);return t||this.u.updateComplete.then(()=>{Ee.add(this.u)}),t}j(t,e=this.O()){const s={...on};return e.forEach(n=>Object.assign(s,n.options.keyframeOptions)),Object.assign(s,t),s}N(t,e,s){t={...t},e={...e};const n=s.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,s=!1){const n={},r={};let o=!1;const a={};for(const l in e){const c=t[l],u=e[l];if(l in Bt){const h=Bt[l];if(c===void 0||u===void 0)continue;const d=h(c,u);d.transform!==void 0&&(a[l]=d.value,o=!0,n.transform=`${n.transform??""} ${d.transform}`,d.overrideFrom!==void 0&&Object.assign(n,d.overrideFrom))}else c!==u&&c!==void 0&&u!==void 0&&(o=!0,n[l]=c,r[l]=u)}return n.transformOrigin=r.transformOrigin=s?"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 s=!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]),s=!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(s),s}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 Ai=se(ln),cn={name:"chevron-down",svg:'<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M53.0318 24.8653L33.5318 44.3653C33.1256 44.7717 32.5745 45.0001 31.9999 45.0001C31.4253 45.0001 30.8742 44.7717 30.468 44.3653L10.968 24.8653C10.122 24.0193 10.122 22.6476 10.968 21.8015C11.8141 20.9555 13.1858 20.9555 14.0318 21.8015L31.9999 39.7696L49.968 21.8015C50.8141 20.9555 52.1858 20.9555 53.0318 21.8015C53.8779 22.6476 53.8779 24.0193 53.0318 24.8653Z"/></svg>'},un={name:"more-horizontal",svg:'<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M18 36C15.7909 36 14 34.2091 14 32C14 29.7909 15.7909 28 18 28C20.2091 28 22 29.7909 22 32C22 34.2091 20.2091 36 18 36ZM28 32C28 34.2091 29.7909 36 32 36C34.2091 36 36 34.2091 36 32C36 29.7909 34.2091 28 32 28C29.7909 28 28 29.7909 28 32ZM46 36C43.7909 36 42 34.2091 42 32C42 29.7909 43.7909 28 46 28C48.2091 28 50 29.7909 50 32C50 34.2091 48.2091 36 46 36Z"/></svg>'},hn={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
58
  * @license
59
59
  * Copyright 2018 Google LLC
60
60
  * SPDX-License-Identifier: BSD-3-Clause
61
- */const Ie=ne(class extends wi{constructor(i){var t;if(super(i),i.type!==ie.ATTRIBUTE||i.name!=="class"||((t=i.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(i){return" "+Object.keys(i).filter(t=>i[t]).join(" ")+" "}update(i,[t]){var n,s;if(this.st===void 0){this.st=new Set,i.strings!==void 0&&(this.nt=new Set(i.strings.join(" ").split(/\s/).filter(r=>r!=="")));for(const r in t)t[r]&&!((n=this.nt)!=null&&n.has(r))&&this.st.add(r);return this.render(t)}const e=i.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)||(s=this.nt)!=null&&s.has(r)||(o?(e.add(r),this.st.add(r)):(e.remove(r),this.st.delete(r)))}return U}}),C=(i,t,e)=>{i&&e.style.setProperty(t,i)},Ci=(i,t)=>{var e,n,s,r,o,a,l,c,h;C((e=i.colors)==null?void 0:e.primaryBackground,"--primary-background",t),C((n=i.colors)==null?void 0:n.textOnPrimaryBackground,"--text-on-primary-background",t),C((s=i.colors)==null?void 0:s.secondaryBackground,"--secondary-background",t),C((r=i.colors)==null?void 0:r.textOnSecondaryBackground,"--text-on-secondary-background",t),C((o=i.colors)==null?void 0:o.interactiveDestructiveBackground,"--destructive-color",t),C((a=i.colors)==null?void 0:a.interactiveTextOnDestructiveBackground,"--text-on-destructive-color",t),C((l=i.colors)==null?void 0:l.interactivePrimaryBackground,"--interactive-primary-background",t),C((c=i.colors)==null?void 0:c.interactiveTextOnPrimaryBackground,"--interactive-text-on-primary-background",t),C((h=i.colors)==null?void 0:h.focusColor,"--focus-color",t)};/**
61
+ */const Ie=se(class extends wi{constructor(i){var t;if(super(i),i.type!==ie.ATTRIBUTE||i.name!=="class"||((t=i.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(i){return" "+Object.keys(i).filter(t=>i[t]).join(" ")+" "}update(i,[t]){var s,n;if(this.st===void 0){this.st=new Set,i.strings!==void 0&&(this.nt=new Set(i.strings.join(" ").split(/\s/).filter(r=>r!=="")));for(const r in t)t[r]&&!((s=this.nt)!=null&&s.has(r))&&this.st.add(r);return this.render(t)}const e=i.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 U}}),C=(i,t,e)=>{i&&e.style.setProperty(t,i)},Ci=(i,t)=>{var e,s,n,r,o,a,l,c,u;C((e=i.colors)==null?void 0:e.primaryBackground,"--primary-background",t),C((s=i.colors)==null?void 0:s.textOnPrimaryBackground,"--text-on-primary-background",t),C((n=i.colors)==null?void 0:n.secondaryBackground,"--secondary-background",t),C((r=i.colors)==null?void 0:r.textOnSecondaryBackground,"--text-on-secondary-background",t),C((o=i.colors)==null?void 0:o.interactiveDestructiveBackground,"--destructive-color",t),C((a=i.colors)==null?void 0:a.interactiveTextOnDestructiveBackground,"--text-on-destructive-color",t),C((l=i.colors)==null?void 0:l.interactivePrimaryBackground,"--interactive-primary-background",t),C((c=i.colors)==null?void 0:c.interactiveTextOnPrimaryBackground,"--interactive-text-on-primary-background",t),C((u=i.colors)==null?void 0:u.focusColor,"--focus-color",t)};/**
62
62
  * @license
63
63
  * Copyright 2020 Google LLC
64
64
  * SPDX-License-Identifier: BSD-3-Clause
65
- */const bt=()=>new ds;let ds=class{};const zt=new WeakMap,_t=ne(class extends Si{render(i){return p}update(i,[t]){var n;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=(n=i.options)==null?void 0:n.host,this.rt(this.ct=i.element)),p}rt(i){if(typeof this.Y=="function"){const t=this.ht??globalThis;let e=zt.get(t);e===void 0&&(e=new WeakMap,zt.set(t,e)),e.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),e.set(this.Y,i),i!==void 0&&this.Y.call(this.ht,i)}else this.Y.value=i}get lt(){var i,t;return typeof this.Y=="function"?(i=zt.get(this.ht??globalThis))==null?void 0:i.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 fs=Object.defineProperty,ps=Object.getOwnPropertyDescriptor,ot=(i,t,e,n)=>{for(var s=n>1?void 0:n?ps(t,e):t,r=i.length-1,o;r>=0;r--)(o=i[r])&&(s=(n?o(t,e,s):o(s))||s);return n&&s&&fs(t,e,s),s};class T extends S{constructor(){super(...arguments),this.active=!1,this.triggerVisible=!0,this.loaded=!1,this.containerRef=bt(),this.widgetActive$=new an(!1),this.componentIsDestroyed$=new kt}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&&Ci(this.application.settings.branding,this)}async _renderSymbol(){var a,l,c;const t=(a=this.application)==null?void 0:a.branding(),e=(l=t==null?void 0:t.graphics)==null?void 0:l.trigger;if(e)return b` <img src=${e} class="trigger-icon" alt="" /> `;const n=(c=this.application)==null?void 0:c.triggerIcon;if(!n)return p;const s=async h=>us,{type:r,content:o}=n;switch(r){case"Telia":{const h=await s();return h?b`<telia-icon
65
+ */const bt=()=>new dn;let dn=class{};const zt=new WeakMap,_t=se(class extends Si{render(i){return p}update(i,[t]){var s;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=(s=i.options)==null?void 0:s.host,this.rt(this.ct=i.element)),p}rt(i){if(typeof this.Y=="function"){const t=this.ht??globalThis;let e=zt.get(t);e===void 0&&(e=new WeakMap,zt.set(t,e)),e.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),e.set(this.Y,i),i!==void 0&&this.Y.call(this.ht,i)}else this.Y.value=i}get lt(){var i,t;return typeof this.Y=="function"?(i=zt.get(this.ht??globalThis))==null?void 0:i.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 fn=Object.defineProperty,pn=Object.getOwnPropertyDescriptor,ot=(i,t,e,s)=>{for(var n=s>1?void 0:s?pn(t,e):t,r=i.length-1,o;r>=0;r--)(o=i[r])&&(n=(s?o(t,e,n):o(n))||n);return s&&n&&fn(t,e,n),n};class T extends S{constructor(){super(...arguments),this.active=!1,this.triggerVisible=!0,this.loaded=!1,this.containerRef=bt(),this.widgetActive$=new os(!1),this.componentIsDestroyed$=new kt}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&&Ci(this.application.settings.branding,this)}async _renderSymbol(){var a,l,c;const t=(a=this.application)==null?void 0:a.branding(),e=(l=t==null?void 0:t.graphics)==null?void 0:l.trigger;if(e)return b` <img src=${e} class="trigger-icon" alt="" /> `;const s=(c=this.application)==null?void 0:c.triggerIcon;if(!s)return p;const n=async u=>hn,{type:r,content:o}=s;switch(r){case"Telia":{const u=await n();return u?b`<telia-icon
66
66
  class="trigger-icon"
67
- svg=${h.svg}
67
+ svg=${u.svg}
68
68
  size="lg"
69
- ></telia-icon>`:p}default:return p}}hideTrigger(){this.triggerVisible=!1}showTrigger(){this.triggerVisible=!0}render(){var t,e,n,s;return b`<div
69
+ ></telia-icon>`:p}default:return p}}hideTrigger(){this.triggerVisible=!1}showTrigger(){this.triggerVisible=!0}render(){var t,e,s,n;return b`<div
70
70
  class=${Ie({"trigger-container":!0,hidden:!this.triggerVisible})}
71
71
  ${_t(this.containerRef)}
72
72
  >
73
- ${!this.active&&((s=(n=(e=(t=this.application)==null?void 0:t.settings)==null?void 0:e.branding)==null?void 0:n.other)!=null&&s.showButtonLabel)?b`
73
+ ${!this.active&&((n=(s=(e=(t=this.application)==null?void 0:t.settings)==null?void 0:e.branding)==null?void 0:s.other)!=null&&n.showButtonLabel)?b`
74
74
  <button
75
75
  label="${this.application.settings.branding.other.buttonLabelText??"Widget trigger"}"
76
76
  class="trigger-label"
77
77
  @click=${this.toggleActive}
78
- ${Ai({keyframeOptions:{},in:rs,stabilizeOut:!0,skipInitial:!1})}
78
+ ${Ai({keyframeOptions:{},in:rn,stabilizeOut:!0,skipInitial:!1})}
79
79
  >
80
80
  ${this.application.settings.branding.other.buttonLabelText}
81
81
  </button>
@@ -244,7 +244,7 @@
244
244
  .trigger-label:hover {
245
245
  opacity: 0.8;
246
246
  }
247
- `];ot([_({attribute:!1})],T.prototype,"application",2);ot([H()],T.prototype,"active",2);ot([H()],T.prototype,"triggerVisible",2);ot([H()],T.prototype,"loaded",2);ot([H()],T.prototype,"icon",2);var gs=Object.defineProperty,vs=Object.getOwnPropertyDescriptor,L=(i,t,e,n)=>{for(var s=n>1?void 0:n?vs(t,e):t,r=i.length-1,o;r>=0;r--)(o=i[r])&&(s=(n?o(t,e,s):o(s))||s);return n&&s&&gs(t,e,s),s};const Ei=i=>{class t extends i{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)}}return t.styles=[j`
247
+ `];ot([_({attribute:!1})],T.prototype,"application",2);ot([H()],T.prototype,"active",2);ot([H()],T.prototype,"triggerVisible",2);ot([H()],T.prototype,"loaded",2);ot([H()],T.prototype,"icon",2);var gn=Object.defineProperty,$n=Object.getOwnPropertyDescriptor,L=(i,t,e,s)=>{for(var n=s>1?void 0:s?$n(t,e):t,r=i.length-1,o;r>=0;r--)(o=i[r])&&(n=(s?o(t,e,n):o(n))||n);return s&&n&&gn(t,e,n),n};const Ei=i=>{class t extends i{constructor(){super(...arguments),this.properties={},this.context={},this.layout={},this.nodes=[]}writeProperties(s){this.properties=s}writeLayout(s){this.layout=s}writeContext(s){this.context=s}addChild(s){s.parent=this,this.nodes.push(s)}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)}}return t.styles=[j`
248
248
  :host {
249
249
  font-family: var(--font-family);
250
250
  grid-column: span var(--width);
@@ -264,11 +264,11 @@
264
264
  * @license
265
265
  * Copyright 2021 Google LLC
266
266
  * SPDX-License-Identifier: BSD-3-Clause
267
- */function*$s(i,t){if(i!==void 0){let e=0;for(const n of i)yield t(n,e++)}}var se=(i=>(i.Inline="inline",i.Trigger="trigger",i))(se||{});/**
267
+ */function*vn(i,t){if(i!==void 0){let e=0;for(const s of i)yield t(s,e++)}}var ne=(i=>(i.Inline="inline",i.Trigger="trigger",i))(ne||{});/**
268
268
  * @license
269
269
  * Copyright 2021 Google LLC
270
270
  * SPDX-License-Identifier: BSD-3-Clause
271
- */let ms=class extends Event{constructor(t,e,n){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.callback=e,this.subscribe=n??!1}};/**
271
+ */let mn=class extends Event{constructor(t,e,s){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.callback=e,this.subscribe=s??!1}};/**
272
272
  * @license
273
273
  * Copyright 2021 Google LLC
274
274
  * SPDX-License-Identifier: BSD-3-Clause
@@ -276,16 +276,16 @@
276
276
  * @license
277
277
  * Copyright 2021 Google LLC
278
278
  * SPDX-License-Identifier: BSD-3-Clause
279
- */class ys{get value(){return this.o}set value(t){this.setValue(t)}setValue(t,e=!1){const n=e||!Object.is(t,this.o);this.o=t,n&&this.updateObservers()}constructor(t){this.subscriptions=new Map,this.updateObservers=()=>{for(const[e,{disposer:n}]of this.subscriptions)e(this.o,n)},t!==void 0&&(this.value=t)}addCallback(t,e,n){if(!n)return void t(this.value);this.subscriptions.has(t)||this.subscriptions.set(t,{disposer:()=>{this.subscriptions.delete(t)},consumerHost:e});const{disposer:s}=this.subscriptions.get(t);t(this.value,s)}clearCallbacks(){this.subscriptions.clear()}}/**
279
+ */class yn{get value(){return this.o}set value(t){this.setValue(t)}setValue(t,e=!1){const s=e||!Object.is(t,this.o);this.o=t,s&&this.updateObservers()}constructor(t){this.subscriptions=new Map,this.updateObservers=()=>{for(const[e,{disposer:s}]of this.subscriptions)e(this.o,s)},t!==void 0&&(this.value=t)}addCallback(t,e,s){if(!s)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
280
  * @license
281
281
  * Copyright 2021 Google LLC
282
282
  * SPDX-License-Identifier: BSD-3-Clause
283
- */let bs=class extends Event{constructor(t){super("context-provider",{bubbles:!0,composed:!0}),this.context=t}};class Re extends ys{constructor(t,e,n){var s,r;super(e.context!==void 0?e.initialValue:n),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 l=new Set;for(const[c,{consumerHost:h}]of this.subscriptions)l.has(c)||(l.add(c),h.dispatchEvent(new ms(this.context,c,!0)));o.stopPropagation()},this.host=t,e.context!==void 0?this.context=e.context:this.context=e,this.attachListeners(),(r=(s=this.host).addController)==null||r.call(s,this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new bs(this.context))}}/**
283
+ */let bn=class extends Event{constructor(t){super("context-provider",{bubbles:!0,composed:!0}),this.context=t}};class Re extends yn{constructor(t,e,s){var n,r;super(e.context!==void 0?e.initialValue:s),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 l=new Set;for(const[c,{consumerHost:u}]of this.subscriptions)l.has(c)||(l.add(c),u.dispatchEvent(new mn(this.context,c,!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 bn(this.context))}}/**
284
284
  * @license
285
285
  * Copyright 2017 Google LLC
286
286
  * SPDX-License-Identifier: BSD-3-Clause
287
- */function _s({context:i}){return(t,e)=>{const n=new WeakMap;if(typeof e=="object")return e.addInitializer(function(){n.set(this,new Re(this,{context:i}))}),{get(){return t.get.call(this)},set(s){var r;return(r=n.get(this))==null||r.setValue(s),t.set.call(this,s)},init(s){var r;return(r=n.get(this))==null||r.setValue(s),s}};{t.constructor.addInitializer(o=>{n.set(o,new Re(o,{context:i}))});const s=Object.getOwnPropertyDescriptor(t,e);let r;if(s===void 0){const o=new WeakMap;r={get:function(){return o.get(this)},set:function(a){n.get(this).setValue(a),o.set(this,a)},configurable:!0,enumerable:!0}}else{const o=s.set;r={...s,set:function(a){n.get(this).setValue(a),o==null||o.call(this,a)}}}return void Object.defineProperty(t,e,r)}}}var ws=Object.defineProperty,xs=Object.getOwnPropertyDescriptor,Ss=(i,t,e,n)=>{for(var s=n>1?void 0:n?xs(t,e):t,r=i.length-1,o;r>=0;r--)(o=i[r])&&(s=(n?o(t,e,s):o(s))||s);return n&&s&&ws(t,e,s),s};const As="application";class re extends S{constructor(){super(...arguments),this.nodes=[],this.wrapperRef=bt()}addChild(t){t.parent=this,this.nodes.push(t)}applyBranding(){if(!this.wrapperRef.value)return;const t=this.application.settings;t!=null&&t.branding&&Ci(t.branding,this.wrapperRef.value)}applyStyles(){if(!this.wrapperRef.value)return;const t=this.application.styles(),e=this.wrapperRef.value;Object.entries(t).forEach(([n,s])=>{e.style.setProperty(`--${n}`,s)})}firstUpdated(t){this.applyBranding(),this.applyStyles()}render(){var n,s;const t=this.application.settings.components.conversation;return((s=(n=t==null?void 0:t.properties)==null?void 0:n.chat)==null?void 0:s.isThirdPartyWidget)?this.renderRoot.host.classList.add("third-party"):this.application.renderStrategy===se.Trigger&&(this.renderRoot.host.classList.add("floating"),this.application.anchor==="BottomLeft"?this.renderRoot.host.classList.add("bottom-left"):this.application.anchor==="BottomRight"&&this.renderRoot.host.classList.add("bottom-right")),window.self!==window.top?(console.log("This page is embedded in an iframe."),this.renderRoot.host.classList.add("embedded")):console.log("This page is not embedded in an iframe."),b`<div class="widget-container" ${_t(this.wrapperRef)}>
288
- ${$s(this.nodes,r=>r)}
287
+ */function _n({context:i}){return(t,e)=>{const s=new WeakMap;if(typeof e=="object")return e.addInitializer(function(){s.set(this,new Re(this,{context:i}))}),{get(){return t.get.call(this)},set(n){var r;return(r=s.get(this))==null||r.setValue(n),t.set.call(this,n)},init(n){var r;return(r=s.get(this))==null||r.setValue(n),n}};{t.constructor.addInitializer(o=>{s.set(o,new Re(o,{context:i}))});const n=Object.getOwnPropertyDescriptor(t,e);let r;if(n===void 0){const o=new WeakMap;r={get:function(){return o.get(this)},set:function(a){s.get(this).setValue(a),o.set(this,a)},configurable:!0,enumerable:!0}}else{const o=n.set;r={...n,set:function(a){s.get(this).setValue(a),o==null||o.call(this,a)}}}return void Object.defineProperty(t,e,r)}}}var wn=Object.defineProperty,xn=Object.getOwnPropertyDescriptor,Sn=(i,t,e,s)=>{for(var n=s>1?void 0:s?xn(t,e):t,r=i.length-1,o;r>=0;r--)(o=i[r])&&(n=(s?o(t,e,n):o(n))||n);return s&&n&&wn(t,e,n),n};const An="application";class re extends S{constructor(){super(...arguments),this.nodes=[],this.wrapperRef=bt()}addChild(t){t.parent=this,this.nodes.push(t)}applyBranding(){if(!this.wrapperRef.value)return;const t=this.application.settings;t!=null&&t.branding&&Ci(t.branding,this.wrapperRef.value)}applyStyles(){if(!this.wrapperRef.value)return;const t=this.application.styles(),e=this.wrapperRef.value;Object.entries(t).forEach(([s,n])=>{e.style.setProperty(`--${s}`,n)})}firstUpdated(t){this.applyBranding(),this.applyStyles()}render(){var s,n;const t=this.application.settings.components.conversation;return((n=(s=t==null?void 0:t.properties)==null?void 0:s.chat)==null?void 0:n.isThirdPartyWidget)?this.renderRoot.host.classList.add("third-party"):this.application.renderStrategy===ne.Trigger&&(this.renderRoot.host.classList.add("floating"),this.application.anchor==="BottomLeft"?this.renderRoot.host.classList.add("bottom-left"):this.application.anchor==="BottomRight"&&this.renderRoot.host.classList.add("bottom-right")),window.self!==window.top&&this.renderRoot.host.classList.add("embedded"),b`<div class="widget-container" ${_t(this.wrapperRef)}>
288
+ ${vn(this.nodes,r=>r)}
289
289
  </div>`}}re.styles=j`
290
290
  :host {
291
291
  --font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
@@ -331,23 +331,6 @@
331
331
  position: fixed;
332
332
  }
333
333
 
334
- :host(.embedded) {
335
- padding: 40px 20px 20px 40px !important;
336
- }
337
-
338
- @media screen and (max-device-width: 800px) {
339
- :host(.embedded) {
340
- padding: 0 !important;
341
- }
342
- :host(.embedded) .widget-container {
343
- border-radius: none !important;
344
- }
345
- }
346
-
347
- :host(.embedded) .widget-container {
348
- border-radius: var(--border-radius) !important;
349
- }
350
-
351
334
  @media screen and (max-width: 800px) {
352
335
  :host(.floating) {
353
336
  inset: 0;
@@ -438,19 +421,19 @@
438
421
  animation: slideDown 0.3s linear;
439
422
  pointer-events: none;
440
423
  }
441
- `;Ss([_({attribute:!1}),_s({context:As})],re.prototype,"application",2);var Cs=Object.defineProperty,Es=Object.getOwnPropertyDescriptor,oe=(i,t,e,n)=>{for(var s=n>1?void 0:n?Es(t,e):t,r=i.length-1,o;r>=0;r--)(o=i[r])&&(s=(n?o(t,e,s):o(s))||s);return n&&s&&Cs(t,e,s),s};class at extends S{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===se.Trigger){const t=new T;return t.application=this.widget,t}return this.widget.render()}}at.styles=[j`
424
+ `;Sn([_({attribute:!1}),_n({context:An})],re.prototype,"application",2);var Cn=Object.defineProperty,En=Object.getOwnPropertyDescriptor,oe=(i,t,e,s)=>{for(var n=s>1?void 0:s?En(t,e):t,r=i.length-1,o;r>=0;r--)(o=i[r])&&(n=(s?o(t,e,n):o(n))||n);return s&&n&&Cn(t,e,n),n};class at extends S{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===ne.Trigger){const t=new T;return t.application=this.widget,t}return this.widget.render()}}at.styles=[j`
442
425
  :host {
443
426
  display: block;
444
427
  }
445
- `];oe([_({attribute:!0})],at.prototype,"name",2);oe([H()],at.prototype,"widget",2);oe([H()],at.prototype,"status",2);customElements.get("ace-trigger-slot")||customElements.define("ace-trigger-slot",ee);customElements.get("ace-trigger")||customElements.define("ace-trigger",T);customElements.get("ace-unresolved-component")||customElements.define("ace-unresolved-component",ki);customElements.get("ace-wrapper")||customElements.define("ace-wrapper",re);customElements.get("ace-widget")||customElements.define("ace-widget",at);const ks=()=>"10000000-1000-4000-8000-100000000000".replace(/[018]/g,i=>(+i^crypto.getRandomValues(new Uint8Array(1))[0]&15>>+i/4).toString(16)),Os=()=>typeof crypto.randomUUID=="function"?crypto.randomUUID():ks();class Ts{constructor(t,e,n,s,r,o,a=!0){this.label=t,this.icon=e,this.onClick=n,this.closeOnClick=s,this.key=r,this.update=new kt,this.id=Os(),this._controller=o,this.enabled=a}updateLabel(t){this.label=t,this.update.next()}updateIcon(t){this.icon=t,this.update.next()}remove(){this._controller.removeOption(this)}subscribe(){return this.update.asObservable()}}class Ps{constructor(t){this._options=[],this._subscription=null,this._host=t,t.addController(this)}hostConnected(){}hostDisconnected(){this._subscription&&this._subscription.unsubscribe(),this._options=[]}addOption(t){const e=new Ts(t.label,t.icon,t.onClick,t.closeOnClick,t.key,this);return this._options.push(e),this.handleUpdate(),e}removeOption(t){this._options=this._options.filter(e=>e.id!==t.id)}handleUpdate(){this._subscription&&this._subscription.unsubscribe();const t=this._options.map(e=>e.subscribe());this._subscription=On(t).subscribe(()=>{this._host.requestUpdate()})}set options(t){this._options=t,this._host.requestUpdate()}get options(){return this._options}hasOptions(){return this._options.length>0}}const D={allRenderFn:!1,cmpDidLoad:!0,cmpDidUnload:!1,cmpDidUpdate:!0,cmpDidRender:!0,cmpWillLoad:!0,cmpWillUpdate:!0,cmpWillRender:!0,connectedCallback:!0,disconnectedCallback:!0,element:!0,event:!0,hasRenderFn:!0,lifecycle:!0,hostListener:!0,hostListenerTargetWindow:!0,hostListenerTargetDocument:!0,hostListenerTargetBody:!0,hostListenerTargetParent:!1,hostListenerTarget:!0,member:!0,method:!0,mode:!0,observeAttribute:!0,prop:!0,propMutable:!0,reflect:!0,scoped:!0,shadowDom:!0,slot:!0,cssAnnotations:!0,state:!0,style:!0,svg:!0,updatable:!0,vdomAttribute:!0,vdomXlink:!0,vdomClass:!0,vdomFunctional:!0,vdomKey:!0,vdomListener:!0,vdomRef:!0,vdomPropOrAttr:!0,vdomRender:!0,vdomStyle:!0,vdomText:!0,watchCallback:!0,taskQueue:!0,hotModuleReplacement:!1,isDebug:!1,isDev:!1,isTesting:!1,hydrateServerSide:!1,hydrateClientSide:!1,lifecycleDOMEvents:!1,lazyLoad:!1,profile:!1,slotRelocation:!0,appendChildSlotFix:!1,cloneNodeFix:!1,hydratedAttribute:!1,hydratedClass:!0,safari10:!1,scriptDataOpts:!1,scopedSlotTextContentFix:!1,shadowDomShim:!1,slotChildNodesFix:!1,invisiblePrehydration:!0,propBoolean:!0,propNumber:!0,propString:!0,cssVarShim:!1,constructableCSS:!0,cmpShouldUpdate:!0,devTools:!1,dynamicImportShim:!1,shadowDelegatesFocus:!0,initializeNextTick:!1,asyncLoading:!1,asyncQueue:!1,transformTagName:!1,attachStyles:!0};let B,Oi,Tt,Ti=!1,wt=!1,ae=!1,y=!1,Ue=null,Gt=!1;const Pt=typeof window<"u"?window:{},A=Pt.document||{head:{}},Pi=Pt.HTMLElement||class{},m={$flags$:0,$resourcesUrl$:"",jmp:i=>i(),raf:i=>requestAnimationFrame(i),ael:(i,t,e,n)=>i.addEventListener(t,e,n),rel:(i,t,e,n)=>i.removeEventListener(t,e,n),ce:(i,t)=>new CustomEvent(i,t)},Ls=(()=>{let i=!1;try{A.addEventListener("e",null,Object.defineProperty({},"passive",{get(){i=!0}}))}catch{}return i})(),Is=i=>Promise.resolve(i),Rs=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replace=="function"}catch{}return!1})(),Li=(i,t,e,n)=>{e&&e.map(([s,r,o])=>{const a=Ms(i,s),l=Us(t,o),c=js(s);m.ael(a,r,l,c),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>m.rel(a,r,l,c))})},Us=(i,t)=>e=>{try{D.lazyLoad||i.$hostElement$[t](e)}catch(n){lt(n)}},Ms=(i,t)=>t&4?A:t&8?Pt:t&16?A.body:i,js=i=>Ls?{passive:(i&1)!==0,capture:(i&2)!==0}:(i&2)!==0,Me="http://www.w3.org/1999/xlink",M=(i,t="")=>()=>{},je=new WeakMap,Hs=(i,t,e)=>{let n=At.get(i);Rs&&e?(n=n||new CSSStyleSheet,n.replace(t)):n=t,At.set(i,n)},Ns=(i,t,e,n)=>{let s=Ii(t,e),r=At.get(s);if(i=i.nodeType===11?i:A,r)if(typeof r=="string"){i=i.head||i;let o=je.get(i),a;o||je.set(i,o=new Set),o.has(s)||(a=A.createElement("style"),a.innerHTML=r,i.insertBefore(a,i.querySelector("link")),o&&o.add(s))}else i.adoptedStyleSheets.includes(r)||(i.adoptedStyleSheets=[...i.adoptedStyleSheets,r]);return s},Ds=i=>{const t=i.$cmpMeta$,e=i.$hostElement$,n=t.$flags$,s=M("attachStyles",t.$tagName$),r=Ns(e.shadowRoot?e.shadowRoot:e.getRootNode(),t,i.$modeName$);n&10&&(e["s-sc"]=r,e.classList.add(r+"-h"),n&2&&e.classList.add(r+"-s")),s()},Ii=(i,t)=>"sc-"+(t&&i.$flags$&32?i.$tagName$+"-"+t:i.$tagName$),Bs=i=>gr.map(t=>t(i)).find(t=>!!t),He={},zs="http://www.w3.org/2000/svg",Ws="http://www.w3.org/1999/xhtml",Fs=i=>i!=null,le=i=>(i=typeof i,i==="object"||i==="function"),F=(i,t,...e)=>{let n=null,s=null,r=null,o=!1,a=!1,l=[];const c=u=>{for(let d=0;d<u.length;d++)n=u[d],Array.isArray(n)?c(n):n!=null&&typeof n!="boolean"&&((o=typeof i!="function"&&!le(n))&&(n=String(n)),o&&a?l[l.length-1].$text$+=n:l.push(o?xt(null,n):n),a=o)};if(c(e),t){t.key&&(s=t.key),t.name&&(r=t.name);{const u=t.className||t.class;u&&(t.class=typeof u!="object"?u:Object.keys(u).filter(d=>u[d]).join(" "))}}if(typeof i=="function")return i(t===null?{}:t,l,qs);const h=xt(i,null);return h.$attrs$=t,l.length>0&&(h.$children$=l),h.$key$=s,h.$name$=r,h},xt=(i,t)=>{const e={$flags$:0,$tag$:i,$text$:t,$elm$:null,$children$:null};return e.$attrs$=null,e.$key$=null,e.$name$=null,e},ce={},Ys=i=>i&&i.$tag$===ce,qs={forEach:(i,t)=>i.map(Ne).forEach(t),map:(i,t)=>i.map(Ne).map(t).map(Gs)},Ne=i=>({vattrs:i.$attrs$,vchildren:i.$children$,vkey:i.$key$,vname:i.$name$,vtag:i.$tag$,vtext:i.$text$}),Gs=i=>{if(typeof i.vtag=="function"){const e=Object.assign({},i.vattrs);return i.vkey&&(e.key=i.vkey),i.vname&&(e.name=i.vname),F(i.vtag,e,...i.vchildren||[])}const t=xt(i.vtag,i.vtext);return t.$attrs$=i.vattrs,t.$children$=i.vchildren,t.$key$=i.vkey,t.$name$=i.vname,t},De=(i,t,e,n,s,r)=>{if(e!==n){let o=Fe(i,t),a=t.toLowerCase();if(t==="class"){const l=i.classList,c=Be(e),h=Be(n);l.remove(...c.filter(u=>u&&!h.includes(u))),l.add(...h.filter(u=>u&&!c.includes(u)))}else if(t==="style"){for(const l in e)(!n||n[l]==null)&&(l.includes("-")?i.style.removeProperty(l):i.style[l]="");for(const l in n)(!e||n[l]!==e[l])&&(l.includes("-")?i.style.setProperty(l,n[l]):i.style[l]=n[l])}else if(t!=="key")if(t==="ref")n&&n(i);else if(!i.__lookupSetter__(t)&&t[0]==="o"&&t[1]==="n")t[2]==="-"?t=t.slice(3):Fe(Pt,a)?t=a.slice(2):t=a[2]+t.slice(3),e&&m.rel(i,t,e,!1),n&&m.ael(i,t,n,!1);else{const l=le(n);if((o||l&&n!==null)&&!s)try{if(i.tagName.includes("-"))i[t]=n;else{let h=n??"";t==="list"?o=!1:(e==null||i[t]!=h)&&(i[t]=h)}}catch{}let c=!1;a!==(a=a.replace(/^xlink\:?/,""))&&(t=a,c=!0),n==null||n===!1?(n!==!1||i.getAttribute(t)==="")&&(c?i.removeAttributeNS(Me,t):i.removeAttribute(t)):(!o||r&4||s)&&!l&&(n=n===!0?"":n,c?i.setAttributeNS(Me,t,n):i.setAttribute(t,n))}}},Zs=/\s/,Be=i=>i?i.split(Zs):[],Ri=(i,t,e,n)=>{const s=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,r=i&&i.$attrs$||He,o=t.$attrs$||He;for(n in r)n in o||De(s,n,r[n],void 0,e,t.$flags$);for(n in o)De(s,n,r[n],o[n],e,t.$flags$)},St=(i,t,e,n)=>{let s=t.$children$[e],r=0,o,a,l;if(Ti||(ae=!0,s.$tag$==="slot"&&(B&&n.classList.add(B+"-s"),s.$flags$|=s.$children$?2:1)),s.$text$!==null)o=s.$elm$=A.createTextNode(s.$text$);else if(s.$flags$&1)o=s.$elm$=A.createTextNode("");else{if(y||(y=s.$tag$==="svg"),o=s.$elm$=A.createElementNS(y?zs:Ws,s.$flags$&2?"slot-fb":s.$tag$),y&&s.$tag$==="foreignObject"&&(y=!1),Ri(null,s,y),Fs(B)&&o["s-si"]!==B&&o.classList.add(o["s-si"]=B),s.$children$)for(r=0;r<s.$children$.length;++r)a=St(i,s,r,o),a&&o.appendChild(a);s.$tag$==="svg"?y=!1:o.tagName==="foreignObject"&&(y=!0)}return o["s-hn"]=Tt,s.$flags$&3&&(o["s-sr"]=!0,o["s-cr"]=Oi,o["s-sn"]=s.$name$||"",l=i&&i.$children$&&i.$children$[e],l&&l.$tag$===s.$tag$&&i.$elm$&&st(i.$elm$,!1)),o},st=(i,t)=>{m.$flags$|=1;const e=i.childNodes;for(let n=e.length-1;n>=0;n--){const s=e[n];s["s-hn"]!==Tt&&s["s-ol"]&&(ji(s).insertBefore(s,he(s)),s["s-ol"].remove(),s["s-ol"]=void 0,ae=!0),t&&st(s,t)}m.$flags$&=-2},Ui=(i,t,e,n,s,r)=>{let o=i["s-cr"]&&i["s-cr"].parentNode||i,a;for(o.shadowRoot&&o.tagName===Tt&&(o=o.shadowRoot);s<=r;++s)n[s]&&(a=St(null,e,s,i),a&&(n[s].$elm$=a,o.insertBefore(a,he(t))))},Mi=(i,t,e,n,s)=>{for(;t<=e;++t)(n=i[t])&&(s=n.$elm$,Di(n),wt=!0,s["s-ol"]?s["s-ol"].remove():st(s,!0),s.remove())},Ks=(i,t,e,n)=>{let s=0,r=0,o=0,a=0,l=t.length-1,c=t[0],h=t[l],u=n.length-1,d=n[0],f=n[u],v,g;for(;s<=l&&r<=u;)if(c==null)c=t[++s];else if(h==null)h=t[--l];else if(d==null)d=n[++r];else if(f==null)f=n[--u];else if(ut(c,d))z(c,d),c=t[++s],d=n[++r];else if(ut(h,f))z(h,f),h=t[--l],f=n[--u];else if(ut(c,f))(c.$tag$==="slot"||f.$tag$==="slot")&&st(c.$elm$.parentNode,!1),z(c,f),i.insertBefore(c.$elm$,h.$elm$.nextSibling),c=t[++s],f=n[--u];else if(ut(h,d))(c.$tag$==="slot"||f.$tag$==="slot")&&st(h.$elm$.parentNode,!1),z(h,d),i.insertBefore(h.$elm$,c.$elm$),h=t[--l],d=n[++r];else{for(o=-1,a=s;a<=l;++a)if(t[a]&&t[a].$key$!==null&&t[a].$key$===d.$key$){o=a;break}o>=0?(g=t[o],g.$tag$!==d.$tag$?v=St(t&&t[r],e,o,i):(z(g,d),t[o]=void 0,v=g.$elm$),d=n[++r]):(v=St(t&&t[r],e,r,i),d=n[++r]),v&&ji(c.$elm$).insertBefore(v,he(c.$elm$))}s>l?Ui(i,n[u+1]==null?null:n[u+1].$elm$,e,n,r,u):r>u&&Mi(t,s,l)},ut=(i,t)=>i.$tag$===t.$tag$?i.$tag$==="slot"?i.$name$===t.$name$:i.$key$===t.$key$:!1,he=i=>i&&i["s-ol"]||i,ji=i=>(i["s-ol"]?i["s-ol"]:i).parentNode,z=(i,t)=>{const e=t.$elm$=i.$elm$,n=i.$children$,s=t.$children$,r=t.$tag$,o=t.$text$;let a;o===null?(y=r==="svg"?!0:r==="foreignObject"?!1:y,r==="slot"||Ri(i,t,y),n!==null&&s!==null?Ks(e,n,t,s):s!==null?(i.$text$!==null&&(e.textContent=""),Ui(e,null,t,s,0,s.length-1)):n!==null&&Mi(n,0,n.length-1),y&&r==="svg"&&(y=!1)):(a=e["s-cr"])?a.parentNode.textContent=o:i.$text$!==o&&(e.data=o)},Hi=i=>{let t=i.childNodes,e,n,s,r,o,a;for(n=0,s=t.length;n<s;n++)if(e=t[n],e.nodeType===1){if(e["s-sr"]){for(o=e["s-sn"],e.hidden=!1,r=0;r<s;r++)if(a=t[r].nodeType,t[r]["s-hn"]!==e["s-hn"]||o!==""){if(a===1&&o===t[r].getAttribute("slot")){e.hidden=!0;break}}else if(a===1||a===3&&t[r].textContent.trim()!==""){e.hidden=!0;break}}Hi(e)}},x=[],Ni=i=>{let t,e,n,s,r,o,a=0,l=i.childNodes,c=l.length;for(;a<c;a++){if(t=l[a],t["s-sr"]&&(e=t["s-cr"])&&e.parentNode)for(n=e.parentNode.childNodes,s=t["s-sn"],o=n.length-1;o>=0;o--)e=n[o],!e["s-cn"]&&!e["s-nr"]&&e["s-hn"]!==t["s-hn"]&&(ze(e,s)?(r=x.find(h=>h.$nodeToRelocate$===e),wt=!0,e["s-sn"]=e["s-sn"]||s,r?r.$slotRefNode$=t:x.push({$slotRefNode$:t,$nodeToRelocate$:e}),e["s-sr"]&&x.map(h=>{ze(h.$nodeToRelocate$,e["s-sn"])&&(r=x.find(u=>u.$nodeToRelocate$===e),r&&!h.$slotRefNode$&&(h.$slotRefNode$=r.$slotRefNode$))})):x.some(h=>h.$nodeToRelocate$===e)||x.push({$nodeToRelocate$:e}));t.nodeType===1&&Ni(t)}},ze=(i,t)=>i.nodeType===1?i.getAttribute("slot")===null&&t===""||i.getAttribute("slot")===t:i["s-sn"]===t?!0:t==="",Di=i=>{i.$attrs$&&i.$attrs$.ref&&i.$attrs$.ref(null),i.$children$&&i.$children$.map(Di)},Xs=(i,t)=>{const e=i.$hostElement$,n=i.$cmpMeta$,s=i.$vnode$||xt(null,null),r=Ys(t)?t:F(null,null,t);Tt=e.tagName,n.$attrsToReflect$&&(r.$attrs$=r.$attrs$||{},n.$attrsToReflect$.map(([o,a])=>r.$attrs$[a]=e[o])),r.$tag$=null,r.$flags$|=4,i.$vnode$=r,r.$elm$=s.$elm$=e.shadowRoot||e,B=e["s-sc"],Oi=e["s-cr"],Ti=(n.$flags$&1)!==0,wt=!1,z(s,r);{if(m.$flags$|=1,ae){Ni(r.$elm$);let o,a,l,c,h,u,d=0;for(;d<x.length;d++)o=x[d],a=o.$nodeToRelocate$,a["s-ol"]||(l=A.createTextNode(""),l["s-nr"]=a,a.parentNode.insertBefore(a["s-ol"]=l,a));for(d=0;d<x.length;d++)if(o=x[d],a=o.$nodeToRelocate$,o.$slotRefNode$){for(c=o.$slotRefNode$.parentNode,h=o.$slotRefNode$.nextSibling,l=a["s-ol"];l=l.previousSibling;)if(u=l["s-nr"],u&&u["s-sn"]===a["s-sn"]&&c===u.parentNode&&(u=u.nextSibling,!u||!u["s-nr"])){h=u;break}(!h&&c!==a.parentNode||a.nextSibling!==h)&&a!==h&&(!a["s-hn"]&&a["s-ol"]&&(a["s-hn"]=a["s-ol"].parentNode.nodeName),c.insertBefore(a,h))}else a.nodeType===1&&(a.hidden=!0)}wt&&Hi(r.$elm$),m.$flags$&=-2,x.length=0}},Qs=i=>i,Js=(i,t,e)=>{const n=Qs(i);return{emit:s=>Vs(n,t,{bubbles:!!(e&4),composed:!!(e&2),cancelable:!!(e&1),detail:s})}},Vs=(i,t,e)=>{const n=m.ce(t,e);return i.dispatchEvent(n),n},tr=(i,t)=>{},Bi=(i,t)=>(i.$flags$|=16,tr(i,i.$ancestorComponent$),mr(()=>er(i,t))),er=(i,t)=>{const e=i.$hostElement$,n=M("scheduleUpdate",i.$cmpMeta$.$tagName$),s=e;let r;return t?r=Y(s,"componentWillLoad"):r=Y(s,"componentWillUpdate"),r=We(r,()=>Y(s,"componentWillRender")),n(),We(r,()=>ir(i,s,t))},ir=async(i,t,e)=>{const n=i.$hostElement$,s=M("update",i.$cmpMeta$.$tagName$);n["s-rc"],e&&Ds(i);const r=M("render",i.$cmpMeta$.$tagName$);nr(i,t,n),r(),s(),sr(i)},nr=(i,t,e)=>{try{Ue=t,t=t.render&&t.render(),i.$flags$&=-17,i.$flags$|=2,(D.hasRenderFn||D.reflect)&&(D.vdomRender||D.reflect)&&(D.hydrateServerSide||Xs(i,t))}catch(a){lt(a,i.$hostElement$)}return Ue=null,null},sr=i=>{const t=i.$cmpMeta$.$tagName$,e=i.$hostElement$,n=M("postUpdate",t),s=e;i.$ancestorComponent$,Y(s,"componentDidRender"),i.$flags$&64?(Y(s,"componentDidUpdate"),n()):(i.$flags$|=64,Y(s,"componentDidLoad"),n())},Y=(i,t,e)=>{if(i&&i[t])try{return i[t](e)}catch(n){lt(n)}},We=(i,t)=>i&&i.then?i.then(t):t(),rr=(i,t)=>i!=null&&!le(i)?t&4?i==="false"?!1:i===""||!!i:t&2?parseFloat(i):t&1?String(i):i:i,or=(i,t)=>Lt(i).$instanceValues$.get(t),ar=(i,t,e,n)=>{const s=Lt(i),r=i,o=s.$instanceValues$.get(t),a=s.$flags$,l=r;e=rr(e,n.$members$[t][0]);const c=Number.isNaN(o)&&Number.isNaN(e);if(e!==o&&!c){s.$instanceValues$.set(t,e);{if(n.$watchers$&&a&128){const u=n.$watchers$[t];u&&u.map(d=>{try{l[d](e,o,t)}catch(f){lt(f,r)}})}if((a&18)===2){if(l.componentShouldUpdate&&l.componentShouldUpdate(e,o,t)===!1)return;Bi(s,!1)}}}},lr=(i,t,e)=>{if(t.$members$){i.watchers&&(t.$watchers$=i.watchers);const n=Object.entries(t.$members$),s=i.prototype;n.map(([r,[o]])=>{(o&31||o&32)&&Object.defineProperty(s,r,{get(){return or(this,r)},set(a){ar(this,r,a,t)},configurable:!0,enumerable:!0})});{const r=new Map;s.attributeChangedCallback=function(o,a,l){m.jmp(()=>{const c=r.get(o);if(this.hasOwnProperty(c))l=this[c],delete this[c];else if(s.hasOwnProperty(c)&&typeof this[c]=="number"&&this[c]==l)return;this[c]=l===null&&typeof this[c]=="boolean"?!1:l})},i.observedAttributes=n.filter(([o,a])=>a[0]&15).map(([o,a])=>{const l=a[1]||o;return r.set(l,o),a[0]&512&&t.$attrsToReflect$.push([o,l]),l})}}return i},cr=async(i,t,e,n,s)=>{if(!(t.$flags$&32)&&(s=i.constructor,t.$flags$|=32,customElements.whenDefined(e.$tagName$).then(()=>t.$flags$|=128),s.style)){let o=s.style;typeof o!="string"&&(o=o[t.$modeName$=Bs(i)]);const a=Ii(e,t.$modeName$);if(!At.has(a)){const l=M("registerStyles",e.$tagName$);Hs(a,o,!!(e.$flags$&1)),l()}}t.$ancestorComponent$,(()=>Bi(t,!0))()},hr=i=>{},ur=i=>{if(!(m.$flags$&1)){const t=Lt(i),e=t.$cmpMeta$,n=M("connectedCallback",e.$tagName$);t.$flags$&1?(Li(i,t,e.$listeners$),hr(t.$lazyInstance$)):(t.$flags$|=1,e.$flags$&12&&dr(i),e.$members$&&Object.entries(e.$members$).map(([s,[r]])=>{if(r&31&&i.hasOwnProperty(s)){const o=i[s];delete i[s],i[s]=o}}),cr(i,t,e)),n()}},dr=i=>{const t=i["s-cr"]=A.createComment("");t["s-cn"]=!0,i.insertBefore(t,i.firstChild)},fr=i=>{if(!(m.$flags$&1)){const t=Lt(i);t.$rmListeners$&&(t.$rmListeners$.map(e=>e()),t.$rmListeners$=void 0)}},zi=(i,t)=>{const e={$flags$:t[0],$tagName$:t[1]};e.$members$=t[2],e.$listeners$=t[3],e.$watchers$=i.$watchers$,e.$attrsToReflect$=[];const n=i.prototype.connectedCallback,s=i.prototype.disconnectedCallback;return Object.assign(i.prototype,{__registerHost(){pr(this,e)},connectedCallback(){ur(this),n&&n.call(this)},disconnectedCallback(){fr(this),s&&s.call(this)},__attachShadow(){this.attachShadow({mode:"open",delegatesFocus:!!(e.$flags$&16)})}}),i.is=e.$tagName$,lr(i,e)},Wi=new WeakMap,Lt=i=>Wi.get(i),pr=(i,t)=>{const e={$flags$:0,$hostElement$:i,$cmpMeta$:t,$instanceValues$:new Map};return Li(i,e,t.$listeners$),Wi.set(i,e)},Fe=(i,t)=>t in i,lt=(i,t)=>(0,console.error)(i,t),At=new Map,gr=[],Ye=[],Fi=[],vr=(i,t)=>e=>{i.push(e),Gt||(Gt=!0,t&&m.$flags$&4?$r(Zt):m.raf(Zt))},qe=i=>{for(let t=0;t<i.length;t++)try{i[t](performance.now())}catch(e){lt(e)}i.length=0},Zt=()=>{qe(Ye),qe(Fi),(Gt=Ye.length>0)&&m.raf(Zt)},$r=i=>Is().then(i),mr=vr(Fi,!0),yr=(i={})=>{const{content:t="",title:e,attributes:n=[]}=i;let s="",r=[{name:"xmlns",value:"http://www.w3.org/2000/svg"},{name:"fill",value:"currentColor"},...n];return e&&(s=`<title>${e}</title>`),`<svg ${r.map(a=>`${a.name}="${a.value}"`).join(" ")}>${s}${t}</svg>`},br=i=>i.replace(/<(\/?)svg([^>]*)>/g,"").trim();function _r(i){return`${i.getFullYear()}.${i.getMonth()+1}`}class wr{constructor(t){this.voca_component=t,this.voca_added=_r(new Date)}}const xr="telia-vst{display:none}",Sr=zi(class extends Pi{constructor(){super(),this.__registerHost(),this.vocaInternalUStats=Js(this,"vocaInternalUStats",7)}connectedCallback(){this.vocaInternalUStats.emit(new wr(this.dataTrackingId))}render(){return F(ce,null)}static get style(){return xr}},[0,"telia-vst",{dataTrackingId:[1,"data-tracking-id"]}]);function Yi(){if(typeof customElements>"u")return;["telia-vst"].forEach(t=>{switch(t){case"telia-vst":customElements.get(t)||customElements.define(t,Sr);break}})}Yi();function Kt(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{vocadsIcons:void 0,vocadsIconsRegistered:!1}}function Ar(){if(typeof Kt().vocadsIcons!==void 0)return Kt().vocadsIcons}function Cr(){return Kt().vocadsIconsRegistered}const Er=".telia-icon{display:inline-block}.telia-icon__container{display:block;height:inherit}.telia-icon svg{display:block}.telia-icon--sm{height:calc(1.6rem * var(--voca-rem-multiplier));min-width:calc(1.6rem * var(--voca-rem-multiplier));width:calc(1.6rem * var(--voca-rem-multiplier))}.telia-icon--md{height:calc(2.4rem * var(--voca-rem-multiplier));min-width:calc(2.4rem * var(--voca-rem-multiplier));width:calc(2.4rem * var(--voca-rem-multiplier))}.telia-icon--lg{height:calc(3.2rem * var(--voca-rem-multiplier));min-width:calc(3.2rem * var(--voca-rem-multiplier));width:calc(3.2rem * var(--voca-rem-multiplier))}",kr=zi(class extends Pi{constructor(){super(),this.__registerHost(),this.size="md",this.allyTitle=null,this.dataTrackingId="telia-icon"}getSvgString(){if(this.svg)return this.svg;if(Cr()&&this.name){const i=Ar();return i[this.name]?i[this.name].svg:""}return this.name&&console.warn(this.name,"Icons bundle is not registered and will not be rendered. Check if you have registered icons bundle or use svg property"),""}render(){let i=this.getSvgString(),t=[{name:"viewBox",value:"0 0 64 64"}];this.allyTitle?t=[...t,{name:"role",value:"img"}]:t=[...t,{name:"aria-hidden",value:"true"}];const e=yr({content:br(i),attributes:t,title:this.allyTitle});return F(ce,{class:`telia-icon telia-icon--${this.size}`},F("span",{"aria-label":this.allyTitle,class:"telia-icon__container",innerHTML:e}),F("telia-vst",{dataTrackingId:this.dataTrackingId}))}static get style(){return Er}},[0,"telia-icon",{name:[1],svg:[1],size:[1],allyTitle:[1,"ally-title"],dataTestid:[1,"data-testid"]}]);function Or(){if(typeof customElements>"u")return;["telia-icon","telia-vst"].forEach(t=>{switch(t){case"telia-icon":customElements.get(t)||customElements.define(t,kr);break;case"telia-vst":customElements.get(t)||Yi();break}})}Or();var Tr=Object.defineProperty,Pr=Object.getOwnPropertyDescriptor,Lr=(i,t,e,n)=>{for(var s=n>1?void 0:n?Pr(t,e):t,r=i.length-1,o;r>=0;r--)(o=i[r])&&(s=(n?o(t,e,s):o(s))||s);return n&&s&&Tr(t,e,s),s};const qi=Ei(S);class It extends qi{constructor(){super(...arguments),this.optionsIsVisible=!1,this.options=new Ps(this),this.optionsRef=bt(),this.optionsTriggerRef=bt(),this._onClickOutside=t=>{!this.optionsTriggerRef.value||!this.optionsRef.value||t.composedPath().includes(this.optionsTriggerRef.value)||t.composedPath().includes(this.optionsRef.value)||(this.optionsIsVisible=!1)}}addOption(t){return this.options.addOption(t)}removeOption(t){return this.options.removeOption(t)}_onToggleOptionsMenuClick(){this.optionsIsVisible=!this.optionsIsVisible}_onMinimizeClick(){this.application.trigger?this.application.trigger.toggleActive():this.notify("widget-minimize",{widgetId:this.application.id})}notify(t,e={}){window!=null&&window.parent&&window.parent.postMessage({type:t,data:e},"*")}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this._onClickOutside)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this._onClickOutside)}render(){var a,l,c;const t=this.application.branding(),e=(a=t==null?void 0:t.graphics)==null?void 0:a.logotype,n=this.application.texts,s=n.get("widget-header.header","ACE Widget"),r=this.application.settings.components.conversation,o=(c=(l=r==null?void 0:r.properties)==null?void 0:l.chat)==null?void 0:c.isThirdPartyWidget;return b` <div class="widget-header">
428
+ `];oe([_({attribute:!0})],at.prototype,"name",2);oe([H()],at.prototype,"widget",2);oe([H()],at.prototype,"status",2);customElements.get("ace-trigger-slot")||customElements.define("ace-trigger-slot",ee);customElements.get("ace-trigger")||customElements.define("ace-trigger",T);customElements.get("ace-unresolved-component")||customElements.define("ace-unresolved-component",ki);customElements.get("ace-wrapper")||customElements.define("ace-wrapper",re);customElements.get("ace-widget")||customElements.define("ace-widget",at);const kn=()=>"10000000-1000-4000-8000-100000000000".replace(/[018]/g,i=>(+i^crypto.getRandomValues(new Uint8Array(1))[0]&15>>+i/4).toString(16)),On=()=>typeof crypto.randomUUID=="function"?crypto.randomUUID():kn();class Tn{constructor(t,e,s,n,r,o,a=!0){this.label=t,this.icon=e,this.onClick=s,this.closeOnClick=n,this.key=r,this.update=new kt,this.id=On(),this._controller=o,this.enabled=a}updateLabel(t){this.label=t,this.update.next()}updateIcon(t){this.icon=t,this.update.next()}remove(){this._controller.removeOption(this)}subscribe(){return this.update.asObservable()}}class Pn{constructor(t){this._options=[],this._subscription=null,this._host=t,t.addController(this)}hostConnected(){}hostDisconnected(){this._subscription&&this._subscription.unsubscribe(),this._options=[]}addOption(t){const e=new Tn(t.label,t.icon,t.onClick,t.closeOnClick,t.key,this);return this._options.push(e),this.handleUpdate(),e}removeOption(t){this._options=this._options.filter(e=>e.id!==t.id)}handleUpdate(){this._subscription&&this._subscription.unsubscribe();const t=this._options.map(e=>e.subscribe());this._subscription=ks(t).subscribe(()=>{this._host.requestUpdate()})}set options(t){this._options=t,this._host.requestUpdate()}get options(){return this._options}hasOptions(){return this._options.length>0}}const D={allRenderFn:!1,cmpDidLoad:!0,cmpDidUnload:!1,cmpDidUpdate:!0,cmpDidRender:!0,cmpWillLoad:!0,cmpWillUpdate:!0,cmpWillRender:!0,connectedCallback:!0,disconnectedCallback:!0,element:!0,event:!0,hasRenderFn:!0,lifecycle:!0,hostListener:!0,hostListenerTargetWindow:!0,hostListenerTargetDocument:!0,hostListenerTargetBody:!0,hostListenerTargetParent:!1,hostListenerTarget:!0,member:!0,method:!0,mode:!0,observeAttribute:!0,prop:!0,propMutable:!0,reflect:!0,scoped:!0,shadowDom:!0,slot:!0,cssAnnotations:!0,state:!0,style:!0,svg:!0,updatable:!0,vdomAttribute:!0,vdomXlink:!0,vdomClass:!0,vdomFunctional:!0,vdomKey:!0,vdomListener:!0,vdomRef:!0,vdomPropOrAttr:!0,vdomRender:!0,vdomStyle:!0,vdomText:!0,watchCallback:!0,taskQueue:!0,hotModuleReplacement:!1,isDebug:!1,isDev:!1,isTesting:!1,hydrateServerSide:!1,hydrateClientSide:!1,lifecycleDOMEvents:!1,lazyLoad:!1,profile:!1,slotRelocation:!0,appendChildSlotFix:!1,cloneNodeFix:!1,hydratedAttribute:!1,hydratedClass:!0,safari10:!1,scriptDataOpts:!1,scopedSlotTextContentFix:!1,shadowDomShim:!1,slotChildNodesFix:!1,invisiblePrehydration:!0,propBoolean:!0,propNumber:!0,propString:!0,cssVarShim:!1,constructableCSS:!0,cmpShouldUpdate:!0,devTools:!1,dynamicImportShim:!1,shadowDelegatesFocus:!0,initializeNextTick:!1,asyncLoading:!1,asyncQueue:!1,transformTagName:!1,attachStyles:!0};let B,Oi,Tt,Ti=!1,wt=!1,ae=!1,y=!1,Ue=null,Gt=!1;const Pt=typeof window<"u"?window:{},A=Pt.document||{head:{}},Pi=Pt.HTMLElement||class{},m={$flags$:0,$resourcesUrl$:"",jmp:i=>i(),raf:i=>requestAnimationFrame(i),ael:(i,t,e,s)=>i.addEventListener(t,e,s),rel:(i,t,e,s)=>i.removeEventListener(t,e,s),ce:(i,t)=>new CustomEvent(i,t)},Ln=(()=>{let i=!1;try{A.addEventListener("e",null,Object.defineProperty({},"passive",{get(){i=!0}}))}catch{}return i})(),In=i=>Promise.resolve(i),Rn=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replace=="function"}catch{}return!1})(),Li=(i,t,e,s)=>{e&&e.map(([n,r,o])=>{const a=Mn(i,n),l=Un(t,o),c=jn(n);m.ael(a,r,l,c),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>m.rel(a,r,l,c))})},Un=(i,t)=>e=>{try{D.lazyLoad||i.$hostElement$[t](e)}catch(s){lt(s)}},Mn=(i,t)=>t&4?A:t&8?Pt:t&16?A.body:i,jn=i=>Ln?{passive:(i&1)!==0,capture:(i&2)!==0}:(i&2)!==0,Me="http://www.w3.org/1999/xlink",M=(i,t="")=>()=>{},je=new WeakMap,Hn=(i,t,e)=>{let s=At.get(i);Rn&&e?(s=s||new CSSStyleSheet,s.replace(t)):s=t,At.set(i,s)},Nn=(i,t,e,s)=>{let n=Ii(t,e),r=At.get(n);if(i=i.nodeType===11?i:A,r)if(typeof r=="string"){i=i.head||i;let o=je.get(i),a;o||je.set(i,o=new Set),o.has(n)||(a=A.createElement("style"),a.innerHTML=r,i.insertBefore(a,i.querySelector("link")),o&&o.add(n))}else i.adoptedStyleSheets.includes(r)||(i.adoptedStyleSheets=[...i.adoptedStyleSheets,r]);return n},Dn=i=>{const t=i.$cmpMeta$,e=i.$hostElement$,s=t.$flags$,n=M("attachStyles",t.$tagName$),r=Nn(e.shadowRoot?e.shadowRoot:e.getRootNode(),t,i.$modeName$);s&10&&(e["s-sc"]=r,e.classList.add(r+"-h"),s&2&&e.classList.add(r+"-s")),n()},Ii=(i,t)=>"sc-"+(t&&i.$flags$&32?i.$tagName$+"-"+t:i.$tagName$),Bn=i=>gr.map(t=>t(i)).find(t=>!!t),He={},zn="http://www.w3.org/2000/svg",Wn="http://www.w3.org/1999/xhtml",Fn=i=>i!=null,le=i=>(i=typeof i,i==="object"||i==="function"),F=(i,t,...e)=>{let s=null,n=null,r=null,o=!1,a=!1,l=[];const c=h=>{for(let d=0;d<h.length;d++)s=h[d],Array.isArray(s)?c(s):s!=null&&typeof s!="boolean"&&((o=typeof i!="function"&&!le(s))&&(s=String(s)),o&&a?l[l.length-1].$text$+=s:l.push(o?xt(null,s):s),a=o)};if(c(e),t){t.key&&(n=t.key),t.name&&(r=t.name);{const h=t.className||t.class;h&&(t.class=typeof h!="object"?h:Object.keys(h).filter(d=>h[d]).join(" "))}}if(typeof i=="function")return i(t===null?{}:t,l,qn);const u=xt(i,null);return u.$attrs$=t,l.length>0&&(u.$children$=l),u.$key$=n,u.$name$=r,u},xt=(i,t)=>{const e={$flags$:0,$tag$:i,$text$:t,$elm$:null,$children$:null};return e.$attrs$=null,e.$key$=null,e.$name$=null,e},ce={},Yn=i=>i&&i.$tag$===ce,qn={forEach:(i,t)=>i.map(Ne).forEach(t),map:(i,t)=>i.map(Ne).map(t).map(Gn)},Ne=i=>({vattrs:i.$attrs$,vchildren:i.$children$,vkey:i.$key$,vname:i.$name$,vtag:i.$tag$,vtext:i.$text$}),Gn=i=>{if(typeof i.vtag=="function"){const e=Object.assign({},i.vattrs);return i.vkey&&(e.key=i.vkey),i.vname&&(e.name=i.vname),F(i.vtag,e,...i.vchildren||[])}const t=xt(i.vtag,i.vtext);return t.$attrs$=i.vattrs,t.$children$=i.vchildren,t.$key$=i.vkey,t.$name$=i.vname,t},De=(i,t,e,s,n,r)=>{if(e!==s){let o=Fe(i,t),a=t.toLowerCase();if(t==="class"){const l=i.classList,c=Be(e),u=Be(s);l.remove(...c.filter(h=>h&&!u.includes(h))),l.add(...u.filter(h=>h&&!c.includes(h)))}else if(t==="style"){for(const l in e)(!s||s[l]==null)&&(l.includes("-")?i.style.removeProperty(l):i.style[l]="");for(const l in s)(!e||s[l]!==e[l])&&(l.includes("-")?i.style.setProperty(l,s[l]):i.style[l]=s[l])}else if(t!=="key")if(t==="ref")s&&s(i);else if(!i.__lookupSetter__(t)&&t[0]==="o"&&t[1]==="n")t[2]==="-"?t=t.slice(3):Fe(Pt,a)?t=a.slice(2):t=a[2]+t.slice(3),e&&m.rel(i,t,e,!1),s&&m.ael(i,t,s,!1);else{const l=le(s);if((o||l&&s!==null)&&!n)try{if(i.tagName.includes("-"))i[t]=s;else{let u=s??"";t==="list"?o=!1:(e==null||i[t]!=u)&&(i[t]=u)}}catch{}let c=!1;a!==(a=a.replace(/^xlink\:?/,""))&&(t=a,c=!0),s==null||s===!1?(s!==!1||i.getAttribute(t)==="")&&(c?i.removeAttributeNS(Me,t):i.removeAttribute(t)):(!o||r&4||n)&&!l&&(s=s===!0?"":s,c?i.setAttributeNS(Me,t,s):i.setAttribute(t,s))}}},Zn=/\s/,Be=i=>i?i.split(Zn):[],Ri=(i,t,e,s)=>{const n=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,r=i&&i.$attrs$||He,o=t.$attrs$||He;for(s in r)s in o||De(n,s,r[s],void 0,e,t.$flags$);for(s in o)De(n,s,r[s],o[s],e,t.$flags$)},St=(i,t,e,s)=>{let n=t.$children$[e],r=0,o,a,l;if(Ti||(ae=!0,n.$tag$==="slot"&&(B&&s.classList.add(B+"-s"),n.$flags$|=n.$children$?2:1)),n.$text$!==null)o=n.$elm$=A.createTextNode(n.$text$);else if(n.$flags$&1)o=n.$elm$=A.createTextNode("");else{if(y||(y=n.$tag$==="svg"),o=n.$elm$=A.createElementNS(y?zn:Wn,n.$flags$&2?"slot-fb":n.$tag$),y&&n.$tag$==="foreignObject"&&(y=!1),Ri(null,n,y),Fn(B)&&o["s-si"]!==B&&o.classList.add(o["s-si"]=B),n.$children$)for(r=0;r<n.$children$.length;++r)a=St(i,n,r,o),a&&o.appendChild(a);n.$tag$==="svg"?y=!1:o.tagName==="foreignObject"&&(y=!0)}return o["s-hn"]=Tt,n.$flags$&3&&(o["s-sr"]=!0,o["s-cr"]=Oi,o["s-sn"]=n.$name$||"",l=i&&i.$children$&&i.$children$[e],l&&l.$tag$===n.$tag$&&i.$elm$&&nt(i.$elm$,!1)),o},nt=(i,t)=>{m.$flags$|=1;const e=i.childNodes;for(let s=e.length-1;s>=0;s--){const n=e[s];n["s-hn"]!==Tt&&n["s-ol"]&&(ji(n).insertBefore(n,ue(n)),n["s-ol"].remove(),n["s-ol"]=void 0,ae=!0),t&&nt(n,t)}m.$flags$&=-2},Ui=(i,t,e,s,n,r)=>{let o=i["s-cr"]&&i["s-cr"].parentNode||i,a;for(o.shadowRoot&&o.tagName===Tt&&(o=o.shadowRoot);n<=r;++n)s[n]&&(a=St(null,e,n,i),a&&(s[n].$elm$=a,o.insertBefore(a,ue(t))))},Mi=(i,t,e,s,n)=>{for(;t<=e;++t)(s=i[t])&&(n=s.$elm$,Di(s),wt=!0,n["s-ol"]?n["s-ol"].remove():nt(n,!0),n.remove())},Kn=(i,t,e,s)=>{let n=0,r=0,o=0,a=0,l=t.length-1,c=t[0],u=t[l],h=s.length-1,d=s[0],f=s[h],$,g;for(;n<=l&&r<=h;)if(c==null)c=t[++n];else if(u==null)u=t[--l];else if(d==null)d=s[++r];else if(f==null)f=s[--h];else if(ht(c,d))z(c,d),c=t[++n],d=s[++r];else if(ht(u,f))z(u,f),u=t[--l],f=s[--h];else if(ht(c,f))(c.$tag$==="slot"||f.$tag$==="slot")&&nt(c.$elm$.parentNode,!1),z(c,f),i.insertBefore(c.$elm$,u.$elm$.nextSibling),c=t[++n],f=s[--h];else if(ht(u,d))(c.$tag$==="slot"||f.$tag$==="slot")&&nt(u.$elm$.parentNode,!1),z(u,d),i.insertBefore(u.$elm$,c.$elm$),u=t[--l],d=s[++r];else{for(o=-1,a=n;a<=l;++a)if(t[a]&&t[a].$key$!==null&&t[a].$key$===d.$key$){o=a;break}o>=0?(g=t[o],g.$tag$!==d.$tag$?$=St(t&&t[r],e,o,i):(z(g,d),t[o]=void 0,$=g.$elm$),d=s[++r]):($=St(t&&t[r],e,r,i),d=s[++r]),$&&ji(c.$elm$).insertBefore($,ue(c.$elm$))}n>l?Ui(i,s[h+1]==null?null:s[h+1].$elm$,e,s,r,h):r>h&&Mi(t,n,l)},ht=(i,t)=>i.$tag$===t.$tag$?i.$tag$==="slot"?i.$name$===t.$name$:i.$key$===t.$key$:!1,ue=i=>i&&i["s-ol"]||i,ji=i=>(i["s-ol"]?i["s-ol"]:i).parentNode,z=(i,t)=>{const e=t.$elm$=i.$elm$,s=i.$children$,n=t.$children$,r=t.$tag$,o=t.$text$;let a;o===null?(y=r==="svg"?!0:r==="foreignObject"?!1:y,r==="slot"||Ri(i,t,y),s!==null&&n!==null?Kn(e,s,t,n):n!==null?(i.$text$!==null&&(e.textContent=""),Ui(e,null,t,n,0,n.length-1)):s!==null&&Mi(s,0,s.length-1),y&&r==="svg"&&(y=!1)):(a=e["s-cr"])?a.parentNode.textContent=o:i.$text$!==o&&(e.data=o)},Hi=i=>{let t=i.childNodes,e,s,n,r,o,a;for(s=0,n=t.length;s<n;s++)if(e=t[s],e.nodeType===1){if(e["s-sr"]){for(o=e["s-sn"],e.hidden=!1,r=0;r<n;r++)if(a=t[r].nodeType,t[r]["s-hn"]!==e["s-hn"]||o!==""){if(a===1&&o===t[r].getAttribute("slot")){e.hidden=!0;break}}else if(a===1||a===3&&t[r].textContent.trim()!==""){e.hidden=!0;break}}Hi(e)}},x=[],Ni=i=>{let t,e,s,n,r,o,a=0,l=i.childNodes,c=l.length;for(;a<c;a++){if(t=l[a],t["s-sr"]&&(e=t["s-cr"])&&e.parentNode)for(s=e.parentNode.childNodes,n=t["s-sn"],o=s.length-1;o>=0;o--)e=s[o],!e["s-cn"]&&!e["s-nr"]&&e["s-hn"]!==t["s-hn"]&&(ze(e,n)?(r=x.find(u=>u.$nodeToRelocate$===e),wt=!0,e["s-sn"]=e["s-sn"]||n,r?r.$slotRefNode$=t:x.push({$slotRefNode$:t,$nodeToRelocate$:e}),e["s-sr"]&&x.map(u=>{ze(u.$nodeToRelocate$,e["s-sn"])&&(r=x.find(h=>h.$nodeToRelocate$===e),r&&!u.$slotRefNode$&&(u.$slotRefNode$=r.$slotRefNode$))})):x.some(u=>u.$nodeToRelocate$===e)||x.push({$nodeToRelocate$:e}));t.nodeType===1&&Ni(t)}},ze=(i,t)=>i.nodeType===1?i.getAttribute("slot")===null&&t===""||i.getAttribute("slot")===t:i["s-sn"]===t?!0:t==="",Di=i=>{i.$attrs$&&i.$attrs$.ref&&i.$attrs$.ref(null),i.$children$&&i.$children$.map(Di)},Xn=(i,t)=>{const e=i.$hostElement$,s=i.$cmpMeta$,n=i.$vnode$||xt(null,null),r=Yn(t)?t:F(null,null,t);Tt=e.tagName,s.$attrsToReflect$&&(r.$attrs$=r.$attrs$||{},s.$attrsToReflect$.map(([o,a])=>r.$attrs$[a]=e[o])),r.$tag$=null,r.$flags$|=4,i.$vnode$=r,r.$elm$=n.$elm$=e.shadowRoot||e,B=e["s-sc"],Oi=e["s-cr"],Ti=(s.$flags$&1)!==0,wt=!1,z(n,r);{if(m.$flags$|=1,ae){Ni(r.$elm$);let o,a,l,c,u,h,d=0;for(;d<x.length;d++)o=x[d],a=o.$nodeToRelocate$,a["s-ol"]||(l=A.createTextNode(""),l["s-nr"]=a,a.parentNode.insertBefore(a["s-ol"]=l,a));for(d=0;d<x.length;d++)if(o=x[d],a=o.$nodeToRelocate$,o.$slotRefNode$){for(c=o.$slotRefNode$.parentNode,u=o.$slotRefNode$.nextSibling,l=a["s-ol"];l=l.previousSibling;)if(h=l["s-nr"],h&&h["s-sn"]===a["s-sn"]&&c===h.parentNode&&(h=h.nextSibling,!h||!h["s-nr"])){u=h;break}(!u&&c!==a.parentNode||a.nextSibling!==u)&&a!==u&&(!a["s-hn"]&&a["s-ol"]&&(a["s-hn"]=a["s-ol"].parentNode.nodeName),c.insertBefore(a,u))}else a.nodeType===1&&(a.hidden=!0)}wt&&Hi(r.$elm$),m.$flags$&=-2,x.length=0}},Qn=i=>i,Jn=(i,t,e)=>{const s=Qn(i);return{emit:n=>Vn(s,t,{bubbles:!!(e&4),composed:!!(e&2),cancelable:!!(e&1),detail:n})}},Vn=(i,t,e)=>{const s=m.ce(t,e);return i.dispatchEvent(s),s},tr=(i,t)=>{},Bi=(i,t)=>(i.$flags$|=16,tr(i,i.$ancestorComponent$),mr(()=>er(i,t))),er=(i,t)=>{const e=i.$hostElement$,s=M("scheduleUpdate",i.$cmpMeta$.$tagName$),n=e;let r;return t?r=Y(n,"componentWillLoad"):r=Y(n,"componentWillUpdate"),r=We(r,()=>Y(n,"componentWillRender")),s(),We(r,()=>ir(i,n,t))},ir=async(i,t,e)=>{const s=i.$hostElement$,n=M("update",i.$cmpMeta$.$tagName$);s["s-rc"],e&&Dn(i);const r=M("render",i.$cmpMeta$.$tagName$);sr(i,t,s),r(),n(),nr(i)},sr=(i,t,e)=>{try{Ue=t,t=t.render&&t.render(),i.$flags$&=-17,i.$flags$|=2,(D.hasRenderFn||D.reflect)&&(D.vdomRender||D.reflect)&&(D.hydrateServerSide||Xn(i,t))}catch(a){lt(a,i.$hostElement$)}return Ue=null,null},nr=i=>{const t=i.$cmpMeta$.$tagName$,e=i.$hostElement$,s=M("postUpdate",t),n=e;i.$ancestorComponent$,Y(n,"componentDidRender"),i.$flags$&64?(Y(n,"componentDidUpdate"),s()):(i.$flags$|=64,Y(n,"componentDidLoad"),s())},Y=(i,t,e)=>{if(i&&i[t])try{return i[t](e)}catch(s){lt(s)}},We=(i,t)=>i&&i.then?i.then(t):t(),rr=(i,t)=>i!=null&&!le(i)?t&4?i==="false"?!1:i===""||!!i:t&2?parseFloat(i):t&1?String(i):i:i,or=(i,t)=>Lt(i).$instanceValues$.get(t),ar=(i,t,e,s)=>{const n=Lt(i),r=i,o=n.$instanceValues$.get(t),a=n.$flags$,l=r;e=rr(e,s.$members$[t][0]);const c=Number.isNaN(o)&&Number.isNaN(e);if(e!==o&&!c){n.$instanceValues$.set(t,e);{if(s.$watchers$&&a&128){const h=s.$watchers$[t];h&&h.map(d=>{try{l[d](e,o,t)}catch(f){lt(f,r)}})}if((a&18)===2){if(l.componentShouldUpdate&&l.componentShouldUpdate(e,o,t)===!1)return;Bi(n,!1)}}}},lr=(i,t,e)=>{if(t.$members$){i.watchers&&(t.$watchers$=i.watchers);const s=Object.entries(t.$members$),n=i.prototype;s.map(([r,[o]])=>{(o&31||o&32)&&Object.defineProperty(n,r,{get(){return or(this,r)},set(a){ar(this,r,a,t)},configurable:!0,enumerable:!0})});{const r=new Map;n.attributeChangedCallback=function(o,a,l){m.jmp(()=>{const c=r.get(o);if(this.hasOwnProperty(c))l=this[c],delete this[c];else if(n.hasOwnProperty(c)&&typeof this[c]=="number"&&this[c]==l)return;this[c]=l===null&&typeof this[c]=="boolean"?!1:l})},i.observedAttributes=s.filter(([o,a])=>a[0]&15).map(([o,a])=>{const l=a[1]||o;return r.set(l,o),a[0]&512&&t.$attrsToReflect$.push([o,l]),l})}}return i},cr=async(i,t,e,s,n)=>{if(!(t.$flags$&32)&&(n=i.constructor,t.$flags$|=32,customElements.whenDefined(e.$tagName$).then(()=>t.$flags$|=128),n.style)){let o=n.style;typeof o!="string"&&(o=o[t.$modeName$=Bn(i)]);const a=Ii(e,t.$modeName$);if(!At.has(a)){const l=M("registerStyles",e.$tagName$);Hn(a,o,!!(e.$flags$&1)),l()}}t.$ancestorComponent$,(()=>Bi(t,!0))()},ur=i=>{},hr=i=>{if(!(m.$flags$&1)){const t=Lt(i),e=t.$cmpMeta$,s=M("connectedCallback",e.$tagName$);t.$flags$&1?(Li(i,t,e.$listeners$),ur(t.$lazyInstance$)):(t.$flags$|=1,e.$flags$&12&&dr(i),e.$members$&&Object.entries(e.$members$).map(([n,[r]])=>{if(r&31&&i.hasOwnProperty(n)){const o=i[n];delete i[n],i[n]=o}}),cr(i,t,e)),s()}},dr=i=>{const t=i["s-cr"]=A.createComment("");t["s-cn"]=!0,i.insertBefore(t,i.firstChild)},fr=i=>{if(!(m.$flags$&1)){const t=Lt(i);t.$rmListeners$&&(t.$rmListeners$.map(e=>e()),t.$rmListeners$=void 0)}},zi=(i,t)=>{const e={$flags$:t[0],$tagName$:t[1]};e.$members$=t[2],e.$listeners$=t[3],e.$watchers$=i.$watchers$,e.$attrsToReflect$=[];const s=i.prototype.connectedCallback,n=i.prototype.disconnectedCallback;return Object.assign(i.prototype,{__registerHost(){pr(this,e)},connectedCallback(){hr(this),s&&s.call(this)},disconnectedCallback(){fr(this),n&&n.call(this)},__attachShadow(){this.attachShadow({mode:"open",delegatesFocus:!!(e.$flags$&16)})}}),i.is=e.$tagName$,lr(i,e)},Wi=new WeakMap,Lt=i=>Wi.get(i),pr=(i,t)=>{const e={$flags$:0,$hostElement$:i,$cmpMeta$:t,$instanceValues$:new Map};return Li(i,e,t.$listeners$),Wi.set(i,e)},Fe=(i,t)=>t in i,lt=(i,t)=>(0,console.error)(i,t),At=new Map,gr=[],Ye=[],Fi=[],$r=(i,t)=>e=>{i.push(e),Gt||(Gt=!0,t&&m.$flags$&4?vr(Zt):m.raf(Zt))},qe=i=>{for(let t=0;t<i.length;t++)try{i[t](performance.now())}catch(e){lt(e)}i.length=0},Zt=()=>{qe(Ye),qe(Fi),(Gt=Ye.length>0)&&m.raf(Zt)},vr=i=>In().then(i),mr=$r(Fi,!0),yr=(i={})=>{const{content:t="",title:e,attributes:s=[]}=i;let n="",r=[{name:"xmlns",value:"http://www.w3.org/2000/svg"},{name:"fill",value:"currentColor"},...s];return e&&(n=`<title>${e}</title>`),`<svg ${r.map(a=>`${a.name}="${a.value}"`).join(" ")}>${n}${t}</svg>`},br=i=>i.replace(/<(\/?)svg([^>]*)>/g,"").trim();function _r(i){return`${i.getFullYear()}.${i.getMonth()+1}`}class wr{constructor(t){this.voca_component=t,this.voca_added=_r(new Date)}}const xr="telia-vst{display:none}",Sr=zi(class extends Pi{constructor(){super(),this.__registerHost(),this.vocaInternalUStats=Jn(this,"vocaInternalUStats",7)}connectedCallback(){this.vocaInternalUStats.emit(new wr(this.dataTrackingId))}render(){return F(ce,null)}static get style(){return xr}},[0,"telia-vst",{dataTrackingId:[1,"data-tracking-id"]}]);function Yi(){if(typeof customElements>"u")return;["telia-vst"].forEach(t=>{switch(t){case"telia-vst":customElements.get(t)||customElements.define(t,Sr);break}})}Yi();function Kt(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{vocadsIcons:void 0,vocadsIconsRegistered:!1}}function Ar(){if(typeof Kt().vocadsIcons!==void 0)return Kt().vocadsIcons}function Cr(){return Kt().vocadsIconsRegistered}const Er=".telia-icon{display:inline-block}.telia-icon__container{display:block;height:inherit}.telia-icon svg{display:block}.telia-icon--sm{height:calc(1.6rem * var(--voca-rem-multiplier));min-width:calc(1.6rem * var(--voca-rem-multiplier));width:calc(1.6rem * var(--voca-rem-multiplier))}.telia-icon--md{height:calc(2.4rem * var(--voca-rem-multiplier));min-width:calc(2.4rem * var(--voca-rem-multiplier));width:calc(2.4rem * var(--voca-rem-multiplier))}.telia-icon--lg{height:calc(3.2rem * var(--voca-rem-multiplier));min-width:calc(3.2rem * var(--voca-rem-multiplier));width:calc(3.2rem * var(--voca-rem-multiplier))}",kr=zi(class extends Pi{constructor(){super(),this.__registerHost(),this.size="md",this.allyTitle=null,this.dataTrackingId="telia-icon"}getSvgString(){if(this.svg)return this.svg;if(Cr()&&this.name){const i=Ar();return i[this.name]?i[this.name].svg:""}return this.name&&console.warn(this.name,"Icons bundle is not registered and will not be rendered. Check if you have registered icons bundle or use svg property"),""}render(){let i=this.getSvgString(),t=[{name:"viewBox",value:"0 0 64 64"}];this.allyTitle?t=[...t,{name:"role",value:"img"}]:t=[...t,{name:"aria-hidden",value:"true"}];const e=yr({content:br(i),attributes:t,title:this.allyTitle});return F(ce,{class:`telia-icon telia-icon--${this.size}`},F("span",{"aria-label":this.allyTitle,class:"telia-icon__container",innerHTML:e}),F("telia-vst",{dataTrackingId:this.dataTrackingId}))}static get style(){return Er}},[0,"telia-icon",{name:[1],svg:[1],size:[1],allyTitle:[1,"ally-title"],dataTestid:[1,"data-testid"]}]);function Or(){if(typeof customElements>"u")return;["telia-icon","telia-vst"].forEach(t=>{switch(t){case"telia-icon":customElements.get(t)||customElements.define(t,kr);break;case"telia-vst":customElements.get(t)||Yi();break}})}Or();var Tr=Object.defineProperty,Pr=Object.getOwnPropertyDescriptor,Lr=(i,t,e,s)=>{for(var n=s>1?void 0:s?Pr(t,e):t,r=i.length-1,o;r>=0;r--)(o=i[r])&&(n=(s?o(t,e,n):o(n))||n);return s&&n&&Tr(t,e,n),n};const qi=Ei(S);class It extends qi{constructor(){super(...arguments),this.optionsIsVisible=!1,this.options=new Pn(this),this.optionsRef=bt(),this.optionsTriggerRef=bt(),this._onClickOutside=t=>{!this.optionsTriggerRef.value||!this.optionsRef.value||t.composedPath().includes(this.optionsTriggerRef.value)||t.composedPath().includes(this.optionsRef.value)||(this.optionsIsVisible=!1)}}addOption(t){return this.options.addOption(t)}removeOption(t){return this.options.removeOption(t)}_onToggleOptionsMenuClick(){this.optionsIsVisible=!this.optionsIsVisible}_onMinimizeClick(){this.application.trigger?this.application.trigger.toggleActive():this.notify("widget-minimize",{widgetId:this.application.id})}notify(t,e={}){window!=null&&window.parent&&window.parent.postMessage({type:t,data:e},"*")}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this._onClickOutside)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this._onClickOutside)}render(){var a,l,c;const t=this.application.branding(),e=(a=t==null?void 0:t.graphics)==null?void 0:a.logotype,s=this.application.texts,n=s.get("widget-header.header","ACE Widget"),r=this.application.settings.components.conversation,o=(c=(l=r==null?void 0:r.properties)==null?void 0:l.chat)==null?void 0:c.isThirdPartyWidget;return b` <div class="widget-header">
446
429
  ${e?b` <img
447
430
  src=${e}
448
431
  class="logotype"
449
- alt=${n.getOrFallback("widget-header.logo-alt","Logo")}
432
+ alt=${s.getOrFallback("widget-header.logo-alt","Logo")}
450
433
  />`:p}
451
434
 
452
435
  <div>
453
- <h1>${s}</h1>
436
+ <h1>${n}</h1>
454
437
 
455
438
  <!-- ${this.properties.tagline?b`<p>${this.properties.tagline}</p>`:p} -->
456
439
  </div>
@@ -459,18 +442,18 @@
459
442
  @click=${this._onToggleOptionsMenuClick}
460
443
  class="widget-header__action-button"
461
444
  ${_t(this.optionsTriggerRef)}
462
- title=${n.getOrFallback("widget-header.ellipses","Options")}
445
+ title=${s.getOrFallback("widget-header.ellipses","Options")}
463
446
  data-testid="options-button"
464
447
  >
465
- <telia-icon svg=${hs.svg}></telia-icon>
448
+ <telia-icon svg=${un.svg}></telia-icon>
466
449
  </button>
467
450
  ${o?p:b`<button
468
451
  @click=${this._onMinimizeClick}
469
452
  class="widget-header__action-button"
470
- title=${n.getOrFallback("widget-header.minimize","Minimize")}
453
+ title=${s.getOrFallback("widget-header.minimize","Minimize")}
471
454
  data-testid="minimize-button"
472
455
  >
473
- <telia-icon svg=${cs.svg}></telia-icon>
456
+ <telia-icon svg=${cn.svg}></telia-icon>
474
457
  </button>`}
475
458
  </div>
476
459
 
@@ -479,18 +462,18 @@
479
462
  ${_t(this.optionsRef)}
480
463
  ${Ai({keyframeOptions:{duration:120},in:Oe,out:Oe,stabilizeOut:!0,skipInitial:!1})}
481
464
  >
482
- ${this.options.options.map(h=>b`<button
465
+ ${this.options.options.map(u=>b`<button
483
466
  class="options-menu__item"
484
- data-testid="${h.key}"
485
- @click=${()=>{h.closeOnClick&&this._onToggleOptionsMenuClick(),h.onClick(),this.requestUpdate()}}
486
- ?disabled="${!h.enabled}"
467
+ data-testid="${u.key}"
468
+ @click=${()=>{u.closeOnClick&&this._onToggleOptionsMenuClick(),u.onClick(),this.requestUpdate()}}
469
+ ?disabled="${!u.enabled}"
487
470
  >
488
- ${h.icon?b`<telia-icon
471
+ ${u.icon?b`<telia-icon
489
472
  class="option-icon"
490
- svg=${h.icon}
473
+ svg=${u.icon}
491
474
  size="sm"
492
475
  ></telia-icon>`:p}
493
- ${h.label}
476
+ ${u.label}
494
477
  </button>`)}
495
478
  </div>`:p}
496
479
  </div>`}}It.styles=[qi.styles||[],j`
@@ -157,16 +157,16 @@ function Zi(i, t, e) {
157
157
  }, n;
158
158
  function o(d) {
159
159
  s[d] && (n[d] = function(f) {
160
- return new Promise(function(v, g) {
161
- r.push([d, f, v, g]) > 1 || a(d, f);
160
+ return new Promise(function($, g) {
161
+ r.push([d, f, $, g]) > 1 || a(d, f);
162
162
  });
163
163
  });
164
164
  }
165
165
  function a(d, f) {
166
166
  try {
167
167
  l(s[d](f));
168
- } catch (v) {
169
- u(r[0][3], v);
168
+ } catch ($) {
169
+ u(r[0][3], $);
170
170
  }
171
171
  }
172
172
  function l(d) {
@@ -202,7 +202,7 @@ function Ki(i) {
202
202
  }, o);
203
203
  }
204
204
  }
205
- function $(i) {
205
+ function v(i) {
206
206
  return typeof i == "function";
207
207
  }
208
208
  function Ze(i) {
@@ -255,7 +255,7 @@ var Ct = function() {
255
255
  else
256
256
  o.remove(this);
257
257
  var h = this.initialTeardown;
258
- if ($(h))
258
+ if (v(h))
259
259
  try {
260
260
  h();
261
261
  } catch (g) {
@@ -266,9 +266,9 @@ var Ct = function() {
266
266
  this._finalizers = null;
267
267
  try {
268
268
  for (var d = q(u), f = d.next(); !f.done; f = d.next()) {
269
- var v = f.value;
269
+ var $ = f.value;
270
270
  try {
271
- ue(v);
271
+ ue($);
272
272
  } catch (g) {
273
273
  r = r ?? [], g instanceof It ? r = gt(gt([], pt(r)), pt(g.errors)) : r.push(g);
274
274
  }
@@ -318,10 +318,10 @@ var Ct = function() {
318
318
  }(), i;
319
319
  }(), Ke = Ct.EMPTY;
320
320
  function Xe(i) {
321
- return i instanceof Ct || i && "closed" in i && $(i.remove) && $(i.add) && $(i.unsubscribe);
321
+ return i instanceof Ct || i && "closed" in i && v(i.remove) && v(i.add) && v(i.unsubscribe);
322
322
  }
323
323
  function ue(i) {
324
- $(i) ? i() : i.unsubscribe();
324
+ v(i) ? i() : i.unsubscribe();
325
325
  }
326
326
  var Qe = {
327
327
  onUnhandledError: null,
@@ -422,7 +422,7 @@ var Qi = function() {
422
422
  Z(t, i);
423
423
  function t(e, s, n) {
424
424
  var r = i.call(this) || this, o;
425
- if ($(e) || !e)
425
+ if (v(e) || !e)
426
426
  o = {
427
427
  next: e ?? void 0,
428
428
  error: s ?? void 0,
@@ -531,13 +531,13 @@ function fe(i) {
531
531
  return (t = i ?? Qe.Promise) !== null && t !== void 0 ? t : Promise;
532
532
  }
533
533
  function es(i) {
534
- return i && $(i.next) && $(i.error) && $(i.complete);
534
+ return i && v(i.next) && v(i.error) && v(i.complete);
535
535
  }
536
536
  function is(i) {
537
537
  return i && i instanceof Kt || es(i) && Xe(i);
538
538
  }
539
539
  function ss(i) {
540
- return $(i == null ? void 0 : i.lift);
540
+ return v(i == null ? void 0 : i.lift);
541
541
  }
542
542
  function Et(i) {
543
543
  return function(t) {
@@ -552,7 +552,7 @@ function Et(i) {
552
552
  throw new TypeError("Unable to lift unknown Observable type");
553
553
  };
554
554
  }
555
- function vt(i, t, e, s, n) {
555
+ function $t(i, t, e, s, n) {
556
556
  return new ns(i, t, e, s, n);
557
557
  }
558
558
  var ns = function(i) {
@@ -720,7 +720,7 @@ var ns = function(i) {
720
720
  return i.complete();
721
721
  });
722
722
  function ls(i) {
723
- return i && $(i.schedule);
723
+ return i && v(i.schedule);
724
724
  }
725
725
  function ti(i) {
726
726
  return i[i.length - 1];
@@ -735,13 +735,13 @@ var ei = function(i) {
735
735
  return i && typeof i.length == "number" && typeof i != "function";
736
736
  };
737
737
  function ii(i) {
738
- return $(i == null ? void 0 : i.then);
738
+ return v(i == null ? void 0 : i.then);
739
739
  }
740
740
  function si(i) {
741
- return $(i[Xt]);
741
+ return v(i[Xt]);
742
742
  }
743
743
  function ni(i) {
744
- return Symbol.asyncIterator && $(i == null ? void 0 : i[Symbol.asyncIterator]);
744
+ return Symbol.asyncIterator && v(i == null ? void 0 : i[Symbol.asyncIterator]);
745
745
  }
746
746
  function ri(i) {
747
747
  return new TypeError("You provided " + (i !== null && typeof i == "object" ? "an invalid object" : "'" + i + "'") + " where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.");
@@ -751,7 +751,7 @@ function us() {
751
751
  }
752
752
  var oi = us();
753
753
  function ai(i) {
754
- return $(i == null ? void 0 : i[oi]);
754
+ return v(i == null ? void 0 : i[oi]);
755
755
  }
756
756
  function li(i) {
757
757
  return Zi(this, arguments, function() {
@@ -785,7 +785,7 @@ function li(i) {
785
785
  });
786
786
  }
787
787
  function ci(i) {
788
- return $(i == null ? void 0 : i.getReader);
788
+ return v(i == null ? void 0 : i.getReader);
789
789
  }
790
790
  function K(i) {
791
791
  if (i instanceof w)
@@ -802,14 +802,14 @@ function K(i) {
802
802
  if (ai(i))
803
803
  return gs(i);
804
804
  if (ci(i))
805
- return vs(i);
805
+ return $s(i);
806
806
  }
807
807
  throw ri(i);
808
808
  }
809
809
  function ds(i) {
810
810
  return new w(function(t) {
811
811
  var e = i[Xt]();
812
- if ($(e.subscribe))
812
+ if (v(e.subscribe))
813
813
  return e.subscribe(t);
814
814
  throw new TypeError("Provided object does not correctly implement Symbol.observable");
815
815
  });
@@ -854,15 +854,15 @@ function gs(i) {
854
854
  }
855
855
  function hi(i) {
856
856
  return new w(function(t) {
857
- $s(i, t).catch(function(e) {
857
+ vs(i, t).catch(function(e) {
858
858
  return t.error(e);
859
859
  });
860
860
  });
861
861
  }
862
- function vs(i) {
862
+ function $s(i) {
863
863
  return hi(li(i));
864
864
  }
865
- function $s(i, t) {
865
+ function vs(i, t) {
866
866
  var e, s, n, r;
867
867
  return Gi(this, void 0, void 0, function() {
868
868
  var o, a;
@@ -912,7 +912,7 @@ function k(i, t, e, s, n) {
912
912
  }
913
913
  function ui(i, t) {
914
914
  return t === void 0 && (t = 0), Et(function(e, s) {
915
- e.subscribe(vt(s, function(n) {
915
+ e.subscribe($t(s, function(n) {
916
916
  return k(s, i, function() {
917
917
  return s.next(n);
918
918
  }, t);
@@ -963,7 +963,7 @@ function _s(i, t) {
963
963
  o ? e.complete() : e.next(r);
964
964
  }, 0, !0);
965
965
  }), function() {
966
- return $(s == null ? void 0 : s.return) && s.return();
966
+ return v(s == null ? void 0 : s.return) && s.return();
967
967
  };
968
968
  });
969
969
  }
@@ -1007,7 +1007,7 @@ function Ss(i, t) {
1007
1007
  function As(i, t) {
1008
1008
  return Et(function(e, s) {
1009
1009
  var n = 0;
1010
- e.subscribe(vt(s, function(r) {
1010
+ e.subscribe($t(s, function(r) {
1011
1011
  s.next(i.call(t, r, n++));
1012
1012
  }));
1013
1013
  });
@@ -1016,11 +1016,11 @@ function Cs(i, t, e, s, n, r, o, a) {
1016
1016
  var l = [], c = 0, h = 0, u = !1, d = function() {
1017
1017
  u && !l.length && !c && t.complete();
1018
1018
  }, f = function(g) {
1019
- return c < s ? v(g) : l.push(g);
1020
- }, v = function(g) {
1019
+ return c < s ? $(g) : l.push(g);
1020
+ }, $ = function(g) {
1021
1021
  r && t.next(g), c++;
1022
1022
  var he = !1;
1023
- K(e(g, h++)).subscribe(vt(t, function(X) {
1023
+ K(e(g, h++)).subscribe($t(t, function(X) {
1024
1024
  n == null || n(X), r ? f(X) : t.next(X);
1025
1025
  }, function() {
1026
1026
  he = !0;
@@ -1031,8 +1031,8 @@ function Cs(i, t, e, s, n, r, o, a) {
1031
1031
  for (var X = function() {
1032
1032
  var ct = l.shift();
1033
1033
  o ? k(t, o, function() {
1034
- return v(ct);
1035
- }) : v(ct);
1034
+ return $(ct);
1035
+ }) : $(ct);
1036
1036
  }; l.length && c < s; )
1037
1037
  X();
1038
1038
  d();
@@ -1041,14 +1041,14 @@ function Cs(i, t, e, s, n, r, o, a) {
1041
1041
  }
1042
1042
  }));
1043
1043
  };
1044
- return i.subscribe(vt(t, f, function() {
1044
+ return i.subscribe($t(t, f, function() {
1045
1045
  u = !0, d();
1046
1046
  })), function() {
1047
1047
  a == null || a();
1048
1048
  };
1049
1049
  }
1050
1050
  function pi(i, t, e) {
1051
- return e === void 0 && (e = 1 / 0), $(t) ? pi(function(s, n) {
1051
+ return e === void 0 && (e = 1 / 0), v(t) ? pi(function(s, n) {
1052
1052
  return As(function(r, o) {
1053
1053
  return t(s, r, n, o);
1054
1054
  })(K(i(s, n)));
@@ -1107,7 +1107,7 @@ const Os = (i) => new gi(typeof i == "string" ? i : i + "", void 0, Jt), j = (i,
1107
1107
  const s = document.createElement("style"), n = ft.litNonce;
1108
1108
  n !== void 0 && s.setAttribute("nonce", n), s.textContent = e.cssText, i.appendChild(s);
1109
1109
  }
1110
- }, ve = Qt ? (i) => i : (i) => i instanceof CSSStyleSheet ? ((t) => {
1110
+ }, $e = Qt ? (i) => i : (i) => i instanceof CSSStyleSheet ? ((t) => {
1111
1111
  let e = "";
1112
1112
  for (const s of t.cssRules)
1113
1113
  e += s.cssText;
@@ -1118,7 +1118,7 @@ const Os = (i) => new gi(typeof i == "string" ? i : i + "", void 0, Jt), j = (i,
1118
1118
  * Copyright 2017 Google LLC
1119
1119
  * SPDX-License-Identifier: BSD-3-Clause
1120
1120
  */
1121
- const { is: Ps, defineProperty: Ls, getOwnPropertyDescriptor: Is, getOwnPropertyNames: Rs, getOwnPropertySymbols: Us, getPrototypeOf: Ms } = Object, O = globalThis, $e = O.trustedTypes, js = $e ? $e.emptyScript : "", Ut = O.reactiveElementPolyfillSupport, J = (i, t) => i, $t = { toAttribute(i, t) {
1121
+ const { is: Ps, defineProperty: Ls, getOwnPropertyDescriptor: Is, getOwnPropertyNames: Rs, getOwnPropertySymbols: Us, getPrototypeOf: Ms } = Object, O = globalThis, ve = O.trustedTypes, js = ve ? ve.emptyScript : "", Ut = O.reactiveElementPolyfillSupport, J = (i, t) => i, vt = { toAttribute(i, t) {
1122
1122
  switch (t) {
1123
1123
  case Boolean:
1124
1124
  i = i ? js : null;
@@ -1146,7 +1146,7 @@ const { is: Ps, defineProperty: Ls, getOwnPropertyDescriptor: Is, getOwnProperty
1146
1146
  }
1147
1147
  }
1148
1148
  return e;
1149
- } }, Vt = (i, t) => !Ps(i, t), me = { attribute: !0, type: String, converter: $t, reflect: !1, hasChanged: Vt };
1149
+ } }, Vt = (i, t) => !Ps(i, t), me = { attribute: !0, type: String, converter: vt, reflect: !1, hasChanged: Vt };
1150
1150
  Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), O.litPropertyMetadata ?? (O.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
1151
1151
  let N = class extends HTMLElement {
1152
1152
  static addInitializer(t) {
@@ -1210,9 +1210,9 @@ let N = class extends HTMLElement {
1210
1210
  if (Array.isArray(t)) {
1211
1211
  const s = new Set(t.flat(1 / 0).reverse());
1212
1212
  for (const n of s)
1213
- e.unshift(ve(n));
1213
+ e.unshift($e(n));
1214
1214
  } else
1215
- t !== void 0 && e.push(ve(t));
1215
+ t !== void 0 && e.push($e(t));
1216
1216
  return e;
1217
1217
  }
1218
1218
  static _$Eu(t, e) {
@@ -1267,7 +1267,7 @@ let N = class extends HTMLElement {
1267
1267
  var r;
1268
1268
  const s = this.constructor.elementProperties.get(t), n = this.constructor._$Eu(t, s);
1269
1269
  if (n !== void 0 && s.reflect === !0) {
1270
- const o = (((r = s.converter) == null ? void 0 : r.toAttribute) !== void 0 ? s.converter : $t).toAttribute(e, s.type);
1270
+ const o = (((r = s.converter) == null ? void 0 : r.toAttribute) !== void 0 ? s.converter : vt).toAttribute(e, s.type);
1271
1271
  this._$Em = t, o == null ? this.removeAttribute(n) : this.setAttribute(n, o), this._$Em = null;
1272
1272
  }
1273
1273
  }
@@ -1275,7 +1275,7 @@ let N = class extends HTMLElement {
1275
1275
  var r;
1276
1276
  const s = this.constructor, n = s._$Eh.get(t);
1277
1277
  if (n !== void 0 && this._$Em !== n) {
1278
- const o = s.getPropertyOptions(n), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((r = o.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? o.converter : $t;
1278
+ const o = s.getPropertyOptions(n), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((r = o.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? o.converter : vt;
1279
1279
  this._$Em = n, this[n] = a.fromAttribute(e, o.type), this._$Em = null;
1280
1280
  }
1281
1281
  }
@@ -1365,7 +1365,7 @@ N.elementStyles = [], N.shadowRootOptions = { mode: "open" }, N[J("elementProper
1365
1365
  * Copyright 2017 Google LLC
1366
1366
  * SPDX-License-Identifier: BSD-3-Clause
1367
1367
  */
1368
- const V = globalThis, mt = V.trustedTypes, ye = mt ? mt.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, vi = "$lit$", E = `lit$${(Math.random() + "").slice(9)}$`, $i = "?" + E, Hs = `<${$i}>`, R = document, et = () => R.createComment(""), it = (i) => i === null || typeof i != "object" && typeof i != "function", mi = Array.isArray, Ns = (i) => mi(i) || typeof (i == null ? void 0 : i[Symbol.iterator]) == "function", Mt = `[
1368
+ const V = globalThis, mt = V.trustedTypes, ye = mt ? mt.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, $i = "$lit$", E = `lit$${(Math.random() + "").slice(9)}$`, vi = "?" + E, Hs = `<${vi}>`, R = document, et = () => R.createComment(""), it = (i) => i === null || typeof i != "object" && typeof i != "function", mi = Array.isArray, Ns = (i) => mi(i) || typeof (i == null ? void 0 : i[Symbol.iterator]) == "function", Mt = `[
1369
1369
  \f\r]`, Q = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, be = /-->/g, _e = />/g, P = RegExp(`>|${Mt}(?:([^\\s"'>=/]+)(${Mt}*=${Mt}*(?:[^
1370
1370
  \f\r"'\`<>=]|("|')|))|$)`, "g"), we = /'/g, xe = /"/g, yi = /^(?:script|style|textarea|title)$/i, Ds = (i) => (t, ...e) => ({ _$litType$: i, strings: t, values: e }), b = Ds(1), U = Symbol.for("lit-noChange"), p = Symbol.for("lit-nothing"), Se = /* @__PURE__ */ new WeakMap(), I = R.createTreeWalker(R, 129);
1371
1371
  function bi(i, t) {
@@ -1382,7 +1382,7 @@ const Bs = (i, t) => {
1382
1382
  for (; d < l.length && (o.lastIndex = d, h = o.exec(l), h !== null); )
1383
1383
  d = o.lastIndex, o === Q ? h[1] === "!--" ? o = be : h[1] !== void 0 ? o = _e : h[2] !== void 0 ? (yi.test(h[2]) && (n = RegExp("</" + h[2], "g")), o = P) : h[3] !== void 0 && (o = P) : o === P ? h[0] === ">" ? (o = n ?? Q, u = -1) : h[1] === void 0 ? u = -2 : (u = o.lastIndex - h[2].length, c = h[1], o = h[3] === void 0 ? P : h[3] === '"' ? xe : we) : o === xe || o === we ? o = P : o === be || o === _e ? o = Q : (o = P, n = void 0);
1384
1384
  const f = o === P && i[a + 1].startsWith("/>") ? " " : "";
1385
- r += o === Q ? l + Hs : u >= 0 ? (s.push(c), l.slice(0, u) + vi + l.slice(u) + E + f) : l + E + (u === -2 ? a : f);
1385
+ r += o === Q ? l + Hs : u >= 0 ? (s.push(c), l.slice(0, u) + $i + l.slice(u) + E + f) : l + E + (u === -2 ? a : f);
1386
1386
  }
1387
1387
  return [bi(i, r + (i[e] || "<?>") + (t === 2 ? "</svg>" : "")), s];
1388
1388
  };
@@ -1400,9 +1400,9 @@ class st {
1400
1400
  if (n.nodeType === 1) {
1401
1401
  if (n.hasAttributes())
1402
1402
  for (const u of n.getAttributeNames())
1403
- if (u.endsWith(vi)) {
1404
- const d = h[o++], f = n.getAttribute(u).split(E), v = /([.?@])?(.*)/.exec(d);
1405
- l.push({ type: 1, index: r, name: v[2], strings: f, ctor: v[1] === "." ? Fs : v[1] === "?" ? Ws : v[1] === "@" ? Ys : Ot }), n.removeAttribute(u);
1403
+ if (u.endsWith($i)) {
1404
+ const d = h[o++], f = n.getAttribute(u).split(E), $ = /([.?@])?(.*)/.exec(d);
1405
+ l.push({ type: 1, index: r, name: $[2], strings: f, ctor: $[1] === "." ? Fs : $[1] === "?" ? Ws : $[1] === "@" ? Ys : Ot }), n.removeAttribute(u);
1406
1406
  } else
1407
1407
  u.startsWith(E) && (l.push({ type: 6, index: r }), n.removeAttribute(u));
1408
1408
  if (yi.test(n.tagName)) {
@@ -1415,7 +1415,7 @@ class st {
1415
1415
  }
1416
1416
  }
1417
1417
  } else if (n.nodeType === 8)
1418
- if (n.data === $i)
1418
+ if (n.data === vi)
1419
1419
  l.push({ type: 2, index: r });
1420
1420
  else {
1421
1421
  let u = -1;
@@ -1652,7 +1652,7 @@ Ht == null || Ht({ LitElement: S });
1652
1652
  * Copyright 2017 Google LLC
1653
1653
  * SPDX-License-Identifier: BSD-3-Clause
1654
1654
  */
1655
- const Zs = { attribute: !0, type: String, converter: $t, reflect: !1, hasChanged: Vt }, Ks = (i = Zs, t, e) => {
1655
+ const Zs = { attribute: !0, type: String, converter: vt, reflect: !1, hasChanged: Vt }, Ks = (i = Zs, t, e) => {
1656
1656
  const { kind: s, metadata: n } = e;
1657
1657
  let r = globalThis.litPropertyMetadata.get(n);
1658
1658
  if (r === void 0 && globalThis.litPropertyMetadata.set(n, r = /* @__PURE__ */ new Map()), r.set(e.name, i), s === "accessor") {
@@ -2417,8 +2417,8 @@ ot([
2417
2417
  ot([
2418
2418
  H()
2419
2419
  ], T.prototype, "icon", 2);
2420
- var gn = Object.defineProperty, vn = Object.getOwnPropertyDescriptor, L = (i, t, e, s) => {
2421
- for (var n = s > 1 ? void 0 : s ? vn(t, e) : t, r = i.length - 1, o; r >= 0; r--)
2420
+ var gn = Object.defineProperty, $n = Object.getOwnPropertyDescriptor, L = (i, t, e, s) => {
2421
+ for (var n = s > 1 ? void 0 : s ? $n(t, e) : t, r = i.length - 1, o; r >= 0; r--)
2422
2422
  (o = i[r]) && (n = (s ? o(t, e, n) : o(n)) || n);
2423
2423
  return s && n && gn(t, e, n), n;
2424
2424
  };
@@ -2494,7 +2494,7 @@ Ei.styles = [
2494
2494
  * Copyright 2021 Google LLC
2495
2495
  * SPDX-License-Identifier: BSD-3-Clause
2496
2496
  */
2497
- function* $n(i, t) {
2497
+ function* vn(i, t) {
2498
2498
  if (i !== void 0) {
2499
2499
  let e = 0;
2500
2500
  for (const s of i)
@@ -2661,8 +2661,8 @@ class ne extends S {
2661
2661
  render() {
2662
2662
  var s, n;
2663
2663
  const t = this.application.settings.components.conversation;
2664
- return ((n = (s = t == null ? void 0 : t.properties) == null ? void 0 : s.chat) == null ? void 0 : n.isThirdPartyWidget) ? this.renderRoot.host.classList.add("third-party") : this.application.renderStrategy === se.Trigger && (this.renderRoot.host.classList.add("floating"), this.application.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.application.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right")), window.self !== window.top ? (console.log("This page is embedded in an iframe."), this.renderRoot.host.classList.add("embedded")) : console.log("This page is not embedded in an iframe."), b`<div class="widget-container" ${_t(this.wrapperRef)}>
2665
- ${$n(this.nodes, (r) => r)}
2664
+ return ((n = (s = t == null ? void 0 : t.properties) == null ? void 0 : s.chat) == null ? void 0 : n.isThirdPartyWidget) ? this.renderRoot.host.classList.add("third-party") : this.application.renderStrategy === se.Trigger && (this.renderRoot.host.classList.add("floating"), this.application.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.application.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right")), window.self !== window.top && this.renderRoot.host.classList.add("embedded"), b`<div class="widget-container" ${_t(this.wrapperRef)}>
2665
+ ${vn(this.nodes, (r) => r)}
2666
2666
  </div>`;
2667
2667
  }
2668
2668
  }
@@ -2711,23 +2711,6 @@ ne.styles = j`
2711
2711
  position: fixed;
2712
2712
  }
2713
2713
 
2714
- :host(.embedded) {
2715
- padding: 40px 20px 20px 40px !important;
2716
- }
2717
-
2718
- @media screen and (max-device-width: 800px) {
2719
- :host(.embedded) {
2720
- padding: 0 !important;
2721
- }
2722
- :host(.embedded) .widget-container {
2723
- border-radius: none !important;
2724
- }
2725
- }
2726
-
2727
- :host(.embedded) .widget-container {
2728
- border-radius: var(--border-radius) !important;
2729
- }
2730
-
2731
2714
  @media screen and (max-width: 800px) {
2732
2715
  :host(.floating) {
2733
2716
  inset: 0;
@@ -3200,7 +3183,7 @@ const Pt = typeof window < "u" ? window : {}, A = Pt.document || { head: {} }, T
3200
3183
  for (; t <= e; ++t)
3201
3184
  (s = i[t]) && (n = s.$elm$, Ni(s), wt = !0, n["s-ol"] ? n["s-ol"].remove() : nt(n, !0), n.remove());
3202
3185
  }, Kn = (i, t, e, s) => {
3203
- let n = 0, r = 0, o = 0, a = 0, l = t.length - 1, c = t[0], h = t[l], u = s.length - 1, d = s[0], f = s[u], v, g;
3186
+ let n = 0, r = 0, o = 0, a = 0, l = t.length - 1, c = t[0], h = t[l], u = s.length - 1, d = s[0], f = s[u], $, g;
3204
3187
  for (; n <= l && r <= u; )
3205
3188
  if (c == null)
3206
3189
  c = t[++n];
@@ -3224,7 +3207,7 @@ const Pt = typeof window < "u" ? window : {}, A = Pt.document || { head: {} }, T
3224
3207
  o = a;
3225
3208
  break;
3226
3209
  }
3227
- o >= 0 ? (g = t[o], g.$tag$ !== d.$tag$ ? v = St(t && t[r], e, o, i) : (z(g, d), t[o] = void 0, v = g.$elm$), d = s[++r]) : (v = St(t && t[r], e, r, i), d = s[++r]), v && Mi(c.$elm$).insertBefore(v, ce(c.$elm$));
3210
+ o >= 0 ? (g = t[o], g.$tag$ !== d.$tag$ ? $ = St(t && t[r], e, o, i) : (z(g, d), t[o] = void 0, $ = g.$elm$), d = s[++r]) : ($ = St(t && t[r], e, r, i), d = s[++r]), $ && Mi(c.$elm$).insertBefore($, ce(c.$elm$));
3228
3211
  }
3229
3212
  n > l ? Ri(i, s[u + 1] == null ? null : s[u + 1].$elm$, e, s, r, u) : r > u && Ui(t, n, l);
3230
3213
  }, ut = (i, t) => i.$tag$ === t.$tag$ ? i.$tag$ === "slot" ? i.$name$ === t.$name$ : i.$key$ === t.$key$ : !1, ce = (i) => i && i["s-ol"] || i, Mi = (i) => (i["s-ol"] ? i["s-ol"] : i).parentNode, z = (i, t) => {
@@ -3451,8 +3434,8 @@ const Pt = typeof window < "u" ? window : {}, A = Pt.document || { head: {} }, T
3451
3434
  $instanceValues$: /* @__PURE__ */ new Map()
3452
3435
  };
3453
3436
  return Pi(i, e, t.$listeners$), zi.set(i, e);
3454
- }, Fe = (i, t) => t in i, lt = (i, t) => (0, console.error)(i, t), At = /* @__PURE__ */ new Map(), gr = [], We = [], Fi = [], vr = (i, t) => (e) => {
3455
- i.push(e), qt || (qt = !0, t && m.$flags$ & 4 ? $r(Gt) : m.raf(Gt));
3437
+ }, Fe = (i, t) => t in i, lt = (i, t) => (0, console.error)(i, t), At = /* @__PURE__ */ new Map(), gr = [], We = [], Fi = [], $r = (i, t) => (e) => {
3438
+ i.push(e), qt || (qt = !0, t && m.$flags$ & 4 ? vr(Gt) : m.raf(Gt));
3456
3439
  }, Ye = (i) => {
3457
3440
  for (let t = 0; t < i.length; t++)
3458
3441
  try {
@@ -3463,7 +3446,7 @@ const Pt = typeof window < "u" ? window : {}, A = Pt.document || { head: {} }, T
3463
3446
  i.length = 0;
3464
3447
  }, Gt = () => {
3465
3448
  Ye(We), Ye(Fi), (qt = We.length > 0) && m.raf(Gt);
3466
- }, $r = (i) => In().then(i), mr = /* @__PURE__ */ vr(Fi, !0), yr = (i = {}) => {
3449
+ }, vr = (i) => In().then(i), mr = /* @__PURE__ */ $r(Fi, !0), yr = (i = {}) => {
3467
3450
  const { content: t = "", title: e, attributes: s = [] } = i;
3468
3451
  let n = "", r = [
3469
3452
  { name: "xmlns", value: "http://www.w3.org/2000/svg" },