@telia-ace/widget-side-menu 1.1.121-rc.1 → 1.1.121-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const n=async e=>{e.registerComponent("side-menu",Promise.resolve().then(()=>require("./side-menu-
|
|
1
|
+
"use strict";const n=async e=>{e.registerComponent("side-menu",Promise.resolve().then(()=>require("./side-menu-C3pgXQfW.js")))};module.exports=n;
|
package/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@telia-ace/widget-side-menu",
|
|
3
|
-
"version": "1.1.121-rc.
|
|
3
|
+
"version": "1.1.121-rc.2",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"lit": "^3.0.2",
|
|
6
6
|
"rxjs": "^7.8.2",
|
|
7
|
-
"@telia-ace/widget-core-flamingo": "1.1.121-rc.
|
|
7
|
+
"@telia-ace/widget-core-flamingo": "1.1.121-rc.2",
|
|
8
8
|
"@teliads/components": "^22.1.1",
|
|
9
9
|
"@lit-labs/motion": "^1.0.8",
|
|
10
10
|
"lit-html": "^3.0.2"
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var Dt=function(i,t){return Dt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,s){e.__proto__=s}||function(e,s){for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])},Dt(i,t)};function X(i,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Dt(i,t);function e(){this.constructor=i}i.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}function ts(i,t,e,s){function r(n){return n instanceof e?n:new e(function(o){o(n)})}return new(e||(e=Promise))(function(n,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?n(u.value):r(u.value).then(a,l)}c((s=s.apply(i,t||[])).next())})}function ii(i,t){var e={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},s,r,n,o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return o.next=a(0),o.throw=a(1),o.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,r&&(n=c[0]&2?r.return:c[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,c[1])).done)return n;switch(r=0,n&&(c=[c[0]&2,n.value]),c[0]){case 0:case 1:n=c;break;case 4:return e.label++,{value:c[1],done:!1};case 5:e.label++,r=c[1],c=[0];continue;case 7:c=e.ops.pop(),e.trys.pop();continue;default:if(n=e.trys,!(n=n.length>0&&n[n.length-1])&&(c[0]===6||c[0]===2)){e=0;continue}if(c[0]===3&&(!n||c[1]>n[0]&&c[1]<n[3])){e.label=c[1];break}if(c[0]===6&&e.label<n[1]){e.label=n[1],n=c;break}if(n&&e.label<n[2]){e.label=n[2],e.ops.push(c);break}n[2]&&e.ops.pop(),e.trys.pop();continue}c=t.call(i,e)}catch(u){c=[6,u],r=0}finally{s=n=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function Y(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 zt(i,t){var e=typeof Symbol=="function"&&i[Symbol.iterator];if(!e)return i;var s=e.call(i),r,n=[],o;try{for(;(t===void 0||t-- >0)&&!(r=s.next()).done;)n.push(r.value)}catch(a){o={error:a}}finally{try{r&&!r.done&&(e=s.return)&&e.call(s)}finally{if(o)throw o.error}}return n}function qt(i,t,e){if(e||arguments.length===2)for(var s=0,r=t.length,n;s<r;s++)(n||!(s in t))&&(n||(n=Array.prototype.slice.call(t,0,s)),n[s]=t[s]);return i.concat(n||Array.prototype.slice.call(t))}function q(i){return this instanceof q?(this.v=i,this):new q(i)}function es(i,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var s=e.apply(i,t||[]),r,n=[];return r=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",o),r[Symbol.asyncIterator]=function(){return this},r;function o(f){return function($){return Promise.resolve($).then(f,h)}}function a(f,$){s[f]&&(r[f]=function(g){return new Promise(function(ht,J){n.push([f,g,ht,J])>1||l(f,g)})},$&&(r[f]=$(r[f])))}function l(f,$){try{c(s[f]($))}catch(g){d(n[0][3],g)}}function c(f){f.value instanceof q?Promise.resolve(f.value.v).then(u,h):d(n[0][2],f)}function u(f){l("next",f)}function h(f){l("throw",f)}function d(f,$){f($),n.shift(),n.length&&l(n[0][0],n[0][1])}}function is(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 Y=="function"?Y(i):i[Symbol.iterator](),e={},s("next"),s("throw"),s("return"),e[Symbol.asyncIterator]=function(){return this},e);function s(n){e[n]=i[n]&&function(o){return new Promise(function(a,l){o=i[n](o),r(a,l,o.done,o.value)})}}function r(n,o,a,l){Promise.resolve(l).then(function(c){n({value:c,done:a})},o)}}function v(i){return typeof i=="function"}function si(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=si(function(i){return function(e){i(this),this.message=e?e.length+` errors occurred during unsubscription:
|
|
2
2
|
`+e.map(function(s,r){return r+1+") "+s.toString()}).join(`
|
|
3
|
-
`):"",this.name="UnsubscriptionError",this.errors=e}});function Wt(i,t){if(i){var e=i.indexOf(t);0<=e&&i.splice(e,1)}}var kt=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,r,n;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=Y(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){n=g instanceof Rt?g.errors:[g]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var d=Y(h),f=d.next();!f.done;f=d.next()){var $=f.value;try{ye($)}catch(g){n=n??[],g instanceof Rt?n=qt(qt([],zt(n)),zt(g.errors)):n.push(g)}}}catch(g){s={error:g}}finally{try{f&&!f.done&&(r=d.return)&&r.call(d)}finally{if(s)throw s.error}}}if(n)throw new Rt(n)}},i.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)ye(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)&&Wt(e,t)},i.prototype.remove=function(t){var e=this._finalizers;e&&Wt(e,t),t instanceof i&&t._removeParent(this)},i.EMPTY=function(){var t=new i;return t.closed=!0,t}(),i}(),ri=kt.EMPTY;function ni(i){return i instanceof kt||i&&"closed"in i&&v(i.remove)&&v(i.add)&&v(i.unsubscribe)}function ye(i){v(i)?i():i.unsubscribe()}var ss={Promise:void 0},rs={setTimeout:function(i,t){for(var e=[],s=2;s<arguments.length;s++)e[s-2]=arguments[s];return setTimeout.apply(void 0,qt([i,t],zt(e)))},clearTimeout:function(i){return clearTimeout(i)},delegate:void 0};function oi(i){rs.setTimeout(function(){throw i})}function be(){}function pt(i){i()}var Jt=function(i){X(t,i);function t(e){var s=i.call(this)||this;return s.isStopped=!1,e?(s.destination=e,ni(e)&&e.add(s)):s.destination=as,s}return t.create=function(e,s,r){return new Gt(e,s,r)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,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}(kt),ns=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){dt(s)}},i.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(s){dt(s)}else dt(t)},i.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){dt(e)}},i}(),Gt=function(i){X(t,i);function t(e,s,r){var n=i.call(this)||this,o;return v(e)||!e?o={next:e??void 0,error:s??void 0,complete:r??void 0}:o=e,n.destination=new ns(o),n}return t}(Jt);function dt(i){oi(i)}function os(i){throw i}var as={closed:!0,next:be,error:os,complete:be},Vt=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function ai(i){return i}function ls(i){return i.length===0?ai:i.length===1?i[0]:function(e){return i.reduce(function(s,r){return r(s)},e)}}var _=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 r=this,n=us(t)?t:new Gt(t,e,s);return pt(function(){var o=r,a=o.operator,l=o.source;n.add(a?a.call(n,l):l?r._subscribe(n):r._trySubscribe(n))}),n},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=_e(e),new e(function(r,n){var o=new Gt({next:function(a){try{t(a)}catch(l){n(l),o.unsubscribe()}},error:n,complete:r});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[Vt]=function(){return this},i.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return ls(t)(this)},i.prototype.toPromise=function(t){var e=this;return t=_e(t),new t(function(s,r){var n;e.subscribe(function(o){return n=o},function(o){return r(o)},function(){return s(n)})})},i.create=function(t){return new i(t)},i}();function _e(i){var t;return(t=i??ss.Promise)!==null&&t!==void 0?t:Promise}function cs(i){return i&&v(i.next)&&v(i.error)&&v(i.complete)}function us(i){return i&&i instanceof Jt||cs(i)&&ni(i)}function hs(i){return v(i==null?void 0:i.lift)}function Et(i){return function(t){if(hs(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,r){return new ds(i,t,e,s,r)}var ds=function(i){X(t,i);function t(e,s,r,n,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=n?function(c){try{n(c)}catch(u){e.error(u)}finally{this.unsubscribe()}}:i.prototype._error,l._complete=r?function(){try{r()}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}(Jt),fs=si(function(i){return function(){i(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Ct=function(i){X(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 we(this,this);return s.operator=e,s},t.prototype._throwIfClosed=function(){if(this.closed)throw new fs},t.prototype.next=function(e){var s=this;pt(function(){var r,n;if(s._throwIfClosed(),!s.isStopped){s.currentObservers||(s.currentObservers=Array.from(s.observers));try{for(var o=Y(s.currentObservers),a=o.next();!a.done;a=o.next()){var l=a.value;l.next(e)}}catch(c){r={error:c}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}}})},t.prototype.error=function(e){var s=this;pt(function(){if(s._throwIfClosed(),!s.isStopped){s.hasError=s.isStopped=!0,s.thrownError=e;for(var r=s.observers;r.length;)r.shift().error(e)}})},t.prototype.complete=function(){var e=this;pt(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,r=this,n=r.hasError,o=r.isStopped,a=r.observers;return n||o?ri:(this.currentObservers=null,a.push(e),new kt(function(){s.currentObservers=null,Wt(a,e)}))},t.prototype._checkFinalizedStatuses=function(e){var s=this,r=s.hasError,n=s.thrownError,o=s.isStopped;r?e.error(n):o&&e.complete()},t.prototype.asObservable=function(){var e=new _;return e.source=this,e},t.create=function(e,s){return new we(e,s)},t}(_),we=function(i){X(t,i);function t(e,s){var r=i.call(this)||this;return r.destination=e,r.source=s,r}return t.prototype.next=function(e){var s,r;(r=(s=this.destination)===null||s===void 0?void 0:s.next)===null||r===void 0||r.call(s,e)},t.prototype.error=function(e){var s,r;(r=(s=this.destination)===null||s===void 0?void 0:s.error)===null||r===void 0||r.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,r;return(r=(s=this.source)===null||s===void 0?void 0:s.subscribe(e))!==null&&r!==void 0?r:ri},t}(Ct),li=function(i){X(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,r=e.thrownError,n=e._value;if(s)throw r;return this._throwIfClosed(),n},t.prototype.next=function(e){i.prototype.next.call(this,this._value=e)},t}(Ct),ps=new _(function(i){return i.complete()});function gs(i){return i&&v(i.schedule)}function ci(i){return i[i.length-1]}function $s(i){return gs(ci(i))?i.pop():void 0}function vs(i,t){return typeof ci(i)=="number"?i.pop():t}var ui=function(i){return i&&typeof i.length=="number"&&typeof i!="function"};function hi(i){return v(i==null?void 0:i.then)}function di(i){return v(i[Vt])}function fi(i){return Symbol.asyncIterator&&v(i==null?void 0:i[Symbol.asyncIterator])}function pi(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 ms(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var gi=ms();function $i(i){return v(i==null?void 0:i[gi])}function vi(i){return es(this,arguments,function(){var e,s,r,n;return ii(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,q(e.read())];case 3:return s=o.sent(),r=s.value,n=s.done,n?[4,q(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,q(r)];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 mi(i){return v(i==null?void 0:i.getReader)}function Q(i){if(i instanceof _)return i;if(i!=null){if(di(i))return ys(i);if(ui(i))return bs(i);if(hi(i))return _s(i);if(fi(i))return yi(i);if($i(i))return ws(i);if(mi(i))return xs(i)}throw pi(i)}function ys(i){return new _(function(t){var e=i[Vt]();if(v(e.subscribe))return e.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function bs(i){return new _(function(t){for(var e=0;e<i.length&&!t.closed;e++)t.next(i[e]);t.complete()})}function _s(i){return new _(function(t){i.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,oi)})}function ws(i){return new _(function(t){var e,s;try{for(var r=Y(i),n=r.next();!n.done;n=r.next()){var o=n.value;if(t.next(o),t.closed)return}}catch(a){e={error:a}}finally{try{n&&!n.done&&(s=r.return)&&s.call(r)}finally{if(e)throw e.error}}t.complete()})}function yi(i){return new _(function(t){Ss(i,t).catch(function(e){return t.error(e)})})}function xs(i){return yi(vi(i))}function Ss(i,t){var e,s,r,n;return ts(this,void 0,void 0,function(){var o,a;return ii(this,function(l){switch(l.label){case 0:l.trys.push([0,5,6,11]),e=is(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(),r={error:a},[3,11];case 6:return l.trys.push([6,,9,10]),s&&!s.done&&(n=e.return)?[4,n.call(e)]:[3,8];case 7:l.sent(),l.label=8;case 8:return[3,10];case 9:if(r)throw r.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}function L(i,t,e,s,r){s===void 0&&(s=0),r===void 0&&(r=!1);var n=t.schedule(function(){e(),r?i.add(this.schedule(null,s)):this.unsubscribe()},s);if(i.add(n),!r)return n}function bi(i,t){return t===void 0&&(t=0),Et(function(e,s){e.subscribe($t(s,function(r){return L(s,i,function(){return s.next(r)},t)},function(){return L(s,i,function(){return s.complete()},t)},function(r){return L(s,i,function(){return s.error(r)},t)}))})}function _i(i,t){return t===void 0&&(t=0),Et(function(e,s){s.add(i.schedule(function(){return e.subscribe(s)},t))})}function As(i,t){return Q(i).pipe(_i(t),bi(t))}function ks(i,t){return Q(i).pipe(_i(t),bi(t))}function Es(i,t){return new _(function(e){var s=0;return t.schedule(function(){s===i.length?e.complete():(e.next(i[s++]),e.closed||this.schedule())})})}function Cs(i,t){return new _(function(e){var s;return L(e,t,function(){s=i[gi](),L(e,t,function(){var r,n,o;try{r=s.next(),n=r.value,o=r.done}catch(a){e.error(a);return}o?e.complete():e.next(n)},0,!0)}),function(){return v(s==null?void 0:s.return)&&s.return()}})}function wi(i,t){if(!i)throw new Error("Iterable cannot be null");return new _(function(e){L(e,t,function(){var s=i[Symbol.asyncIterator]();L(e,t,function(){s.next().then(function(r){r.done?e.complete():e.next(r.value)})},0,!0)})})}function Os(i,t){return wi(vi(i),t)}function Ts(i,t){if(i!=null){if(di(i))return As(i,t);if(ui(i))return Es(i,t);if(hi(i))return ks(i,t);if(fi(i))return wi(i,t);if($i(i))return Cs(i,t);if(mi(i))return Os(i,t)}throw pi(i)}function Ps(i,t){return t?Ts(i,t):Q(i)}function Is(i,t){return Et(function(e,s){var r=0;e.subscribe($t(s,function(n){s.next(i.call(t,n,r++))}))})}function Ls(i,t,e,s,r,n,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){c++;var ht=!1;Q(e(g,u++)).subscribe($t(t,function(J){t.next(J)},function(){ht=!0},void 0,function(){if(ht)try{c--;for(var J=function(){var Lt=l.shift();o||$(Lt)};l.length&&c<s;)J();d()}catch(Lt){t.error(Lt)}}))};return i.subscribe($t(t,f,function(){h=!0,d()})),function(){}}function xi(i,t,e){return e===void 0&&(e=1/0),v(t)?xi(function(s,r){return Is(function(n,o){return t(s,n,r,o)})(Q(i(s,r)))},e):(typeof t=="number"&&(e=t),Et(function(s,r){return Ls(s,r,i,e)}))}function Rs(i){return i===void 0&&(i=1/0),xi(ai,i)}function Us(){for(var i=[],t=0;t<arguments.length;t++)i[t]=arguments[t];var e=$s(i),s=vs(i,1/0),r=i;return r.length?r.length===1?Q(r[0]):Rs(s)(Ps(r,e)):ps}/**
|
|
3
|
+
`):"",this.name="UnsubscriptionError",this.errors=e}});function Wt(i,t){if(i){var e=i.indexOf(t);0<=e&&i.splice(e,1)}}var kt=(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,r,n;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=Y(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){n=g instanceof Rt?g.errors:[g]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var d=Y(h),f=d.next();!f.done;f=d.next()){var $=f.value;try{ye($)}catch(g){n=n??[],g instanceof Rt?n=qt(qt([],zt(n)),zt(g.errors)):n.push(g)}}}catch(g){s={error:g}}finally{try{f&&!f.done&&(r=d.return)&&r.call(d)}finally{if(s)throw s.error}}}if(n)throw new Rt(n)}},i.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)ye(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)&&Wt(e,t)},i.prototype.remove=function(t){var e=this._finalizers;e&&Wt(e,t),t instanceof i&&t._removeParent(this)},i.EMPTY=(function(){var t=new i;return t.closed=!0,t})(),i})(),ri=kt.EMPTY;function ni(i){return i instanceof kt||i&&"closed"in i&&v(i.remove)&&v(i.add)&&v(i.unsubscribe)}function ye(i){v(i)?i():i.unsubscribe()}var ss={Promise:void 0},rs={setTimeout:function(i,t){for(var e=[],s=2;s<arguments.length;s++)e[s-2]=arguments[s];return setTimeout.apply(void 0,qt([i,t],zt(e)))},clearTimeout:function(i){return clearTimeout(i)},delegate:void 0};function oi(i){rs.setTimeout(function(){throw i})}function be(){}function pt(i){i()}var Jt=(function(i){X(t,i);function t(e){var s=i.call(this)||this;return s.isStopped=!1,e?(s.destination=e,ni(e)&&e.add(s)):s.destination=as,s}return t.create=function(e,s,r){return new Gt(e,s,r)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,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})(kt),ns=(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){dt(s)}},i.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(s){dt(s)}else dt(t)},i.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){dt(e)}},i})(),Gt=(function(i){X(t,i);function t(e,s,r){var n=i.call(this)||this,o;return v(e)||!e?o={next:e??void 0,error:s??void 0,complete:r??void 0}:o=e,n.destination=new ns(o),n}return t})(Jt);function dt(i){oi(i)}function os(i){throw i}var as={closed:!0,next:be,error:os,complete:be},Vt=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function ai(i){return i}function ls(i){return i.length===0?ai:i.length===1?i[0]:function(e){return i.reduce(function(s,r){return r(s)},e)}}var _=(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 r=this,n=us(t)?t:new Gt(t,e,s);return pt(function(){var o=r,a=o.operator,l=o.source;n.add(a?a.call(n,l):l?r._subscribe(n):r._trySubscribe(n))}),n},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=_e(e),new e(function(r,n){var o=new Gt({next:function(a){try{t(a)}catch(l){n(l),o.unsubscribe()}},error:n,complete:r});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[Vt]=function(){return this},i.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return ls(t)(this)},i.prototype.toPromise=function(t){var e=this;return t=_e(t),new t(function(s,r){var n;e.subscribe(function(o){return n=o},function(o){return r(o)},function(){return s(n)})})},i.create=function(t){return new i(t)},i})();function _e(i){var t;return(t=i??ss.Promise)!==null&&t!==void 0?t:Promise}function cs(i){return i&&v(i.next)&&v(i.error)&&v(i.complete)}function us(i){return i&&i instanceof Jt||cs(i)&&ni(i)}function hs(i){return v(i==null?void 0:i.lift)}function Et(i){return function(t){if(hs(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,r){return new ds(i,t,e,s,r)}var ds=(function(i){X(t,i);function t(e,s,r,n,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=n?function(c){try{n(c)}catch(u){e.error(u)}finally{this.unsubscribe()}}:i.prototype._error,l._complete=r?function(){try{r()}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})(Jt),fs=si(function(i){return function(){i(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Ct=(function(i){X(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 we(this,this);return s.operator=e,s},t.prototype._throwIfClosed=function(){if(this.closed)throw new fs},t.prototype.next=function(e){var s=this;pt(function(){var r,n;if(s._throwIfClosed(),!s.isStopped){s.currentObservers||(s.currentObservers=Array.from(s.observers));try{for(var o=Y(s.currentObservers),a=o.next();!a.done;a=o.next()){var l=a.value;l.next(e)}}catch(c){r={error:c}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}}})},t.prototype.error=function(e){var s=this;pt(function(){if(s._throwIfClosed(),!s.isStopped){s.hasError=s.isStopped=!0,s.thrownError=e;for(var r=s.observers;r.length;)r.shift().error(e)}})},t.prototype.complete=function(){var e=this;pt(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,r=this,n=r.hasError,o=r.isStopped,a=r.observers;return n||o?ri:(this.currentObservers=null,a.push(e),new kt(function(){s.currentObservers=null,Wt(a,e)}))},t.prototype._checkFinalizedStatuses=function(e){var s=this,r=s.hasError,n=s.thrownError,o=s.isStopped;r?e.error(n):o&&e.complete()},t.prototype.asObservable=function(){var e=new _;return e.source=this,e},t.create=function(e,s){return new we(e,s)},t})(_),we=(function(i){X(t,i);function t(e,s){var r=i.call(this)||this;return r.destination=e,r.source=s,r}return t.prototype.next=function(e){var s,r;(r=(s=this.destination)===null||s===void 0?void 0:s.next)===null||r===void 0||r.call(s,e)},t.prototype.error=function(e){var s,r;(r=(s=this.destination)===null||s===void 0?void 0:s.error)===null||r===void 0||r.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,r;return(r=(s=this.source)===null||s===void 0?void 0:s.subscribe(e))!==null&&r!==void 0?r:ri},t})(Ct),li=(function(i){X(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,r=e.thrownError,n=e._value;if(s)throw r;return this._throwIfClosed(),n},t.prototype.next=function(e){i.prototype.next.call(this,this._value=e)},t})(Ct),ps=new _(function(i){return i.complete()});function gs(i){return i&&v(i.schedule)}function ci(i){return i[i.length-1]}function $s(i){return gs(ci(i))?i.pop():void 0}function vs(i,t){return typeof ci(i)=="number"?i.pop():t}var ui=(function(i){return i&&typeof i.length=="number"&&typeof i!="function"});function hi(i){return v(i==null?void 0:i.then)}function di(i){return v(i[Vt])}function fi(i){return Symbol.asyncIterator&&v(i==null?void 0:i[Symbol.asyncIterator])}function pi(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 ms(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var gi=ms();function $i(i){return v(i==null?void 0:i[gi])}function vi(i){return es(this,arguments,function(){var e,s,r,n;return ii(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,q(e.read())];case 3:return s=o.sent(),r=s.value,n=s.done,n?[4,q(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,q(r)];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 mi(i){return v(i==null?void 0:i.getReader)}function Q(i){if(i instanceof _)return i;if(i!=null){if(di(i))return ys(i);if(ui(i))return bs(i);if(hi(i))return _s(i);if(fi(i))return yi(i);if($i(i))return ws(i);if(mi(i))return xs(i)}throw pi(i)}function ys(i){return new _(function(t){var e=i[Vt]();if(v(e.subscribe))return e.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function bs(i){return new _(function(t){for(var e=0;e<i.length&&!t.closed;e++)t.next(i[e]);t.complete()})}function _s(i){return new _(function(t){i.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,oi)})}function ws(i){return new _(function(t){var e,s;try{for(var r=Y(i),n=r.next();!n.done;n=r.next()){var o=n.value;if(t.next(o),t.closed)return}}catch(a){e={error:a}}finally{try{n&&!n.done&&(s=r.return)&&s.call(r)}finally{if(e)throw e.error}}t.complete()})}function yi(i){return new _(function(t){Ss(i,t).catch(function(e){return t.error(e)})})}function xs(i){return yi(vi(i))}function Ss(i,t){var e,s,r,n;return ts(this,void 0,void 0,function(){var o,a;return ii(this,function(l){switch(l.label){case 0:l.trys.push([0,5,6,11]),e=is(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(),r={error:a},[3,11];case 6:return l.trys.push([6,,9,10]),s&&!s.done&&(n=e.return)?[4,n.call(e)]:[3,8];case 7:l.sent(),l.label=8;case 8:return[3,10];case 9:if(r)throw r.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}function L(i,t,e,s,r){s===void 0&&(s=0),r===void 0&&(r=!1);var n=t.schedule(function(){e(),r?i.add(this.schedule(null,s)):this.unsubscribe()},s);if(i.add(n),!r)return n}function bi(i,t){return t===void 0&&(t=0),Et(function(e,s){e.subscribe($t(s,function(r){return L(s,i,function(){return s.next(r)},t)},function(){return L(s,i,function(){return s.complete()},t)},function(r){return L(s,i,function(){return s.error(r)},t)}))})}function _i(i,t){return t===void 0&&(t=0),Et(function(e,s){s.add(i.schedule(function(){return e.subscribe(s)},t))})}function As(i,t){return Q(i).pipe(_i(t),bi(t))}function ks(i,t){return Q(i).pipe(_i(t),bi(t))}function Es(i,t){return new _(function(e){var s=0;return t.schedule(function(){s===i.length?e.complete():(e.next(i[s++]),e.closed||this.schedule())})})}function Cs(i,t){return new _(function(e){var s;return L(e,t,function(){s=i[gi](),L(e,t,function(){var r,n,o;try{r=s.next(),n=r.value,o=r.done}catch(a){e.error(a);return}o?e.complete():e.next(n)},0,!0)}),function(){return v(s==null?void 0:s.return)&&s.return()}})}function wi(i,t){if(!i)throw new Error("Iterable cannot be null");return new _(function(e){L(e,t,function(){var s=i[Symbol.asyncIterator]();L(e,t,function(){s.next().then(function(r){r.done?e.complete():e.next(r.value)})},0,!0)})})}function Os(i,t){return wi(vi(i),t)}function Ts(i,t){if(i!=null){if(di(i))return As(i,t);if(ui(i))return Es(i,t);if(hi(i))return ks(i,t);if(fi(i))return wi(i,t);if($i(i))return Cs(i,t);if(mi(i))return Os(i,t)}throw pi(i)}function Ps(i,t){return t?Ts(i,t):Q(i)}function Is(i,t){return Et(function(e,s){var r=0;e.subscribe($t(s,function(n){s.next(i.call(t,n,r++))}))})}function Ls(i,t,e,s,r,n,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){c++;var ht=!1;Q(e(g,u++)).subscribe($t(t,function(J){t.next(J)},function(){ht=!0},void 0,function(){if(ht)try{c--;for(var J=function(){var Lt=l.shift();o||$(Lt)};l.length&&c<s;)J();d()}catch(Lt){t.error(Lt)}}))};return i.subscribe($t(t,f,function(){h=!0,d()})),function(){}}function xi(i,t,e){return e===void 0&&(e=1/0),v(t)?xi(function(s,r){return Is(function(n,o){return t(s,n,r,o)})(Q(i(s,r)))},e):(typeof t=="number"&&(e=t),Et(function(s,r){return Ls(s,r,i,e)}))}function Rs(i){return i===void 0&&(i=1/0),xi(ai,i)}function Us(){for(var i=[],t=0;t<arguments.length;t++)i[t]=arguments[t];var e=$s(i),s=vs(i,1/0),r=i;return r.length?r.length===1?Q(r[0]):Rs(s)(Ps(r,e)):ps}/**
|
|
4
4
|
* @license
|
|
5
5
|
* Copyright 2019 Google LLC
|
|
6
6
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
7
|
-
*/const gt=globalThis,te=gt.ShadowRoot&&(gt.ShadyCSS===void 0||gt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ee=Symbol(),xe=new WeakMap;let Si=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==ee)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(te&&t===void 0){const s=e!==void 0&&e.length===1;s&&(t=xe.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&xe.set(e,t))}return t}toString(){return this.cssText}};const Ms=i=>new Si(typeof i=="string"?i:i+"",void 0,ee),N=(i,...t)=>{const e=i.length===1?i[0]:t.reduce((s,r,n)=>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.")})(r)+i[n+1],i[0]);return new Si(e,i,ee)},js=(i,t)=>{if(te)i.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const s=document.createElement("style"),r=gt.litNonce;r!==void 0&&s.setAttribute("nonce",r),s.textContent=e.cssText,i.appendChild(s)}},Se=te?i=>i:i=>i instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return Ms(e)})(i):i;/**
|
|
7
|
+
*/const gt=globalThis,te=gt.ShadowRoot&&(gt.ShadyCSS===void 0||gt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ee=Symbol(),xe=new WeakMap;let Si=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==ee)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(te&&t===void 0){const s=e!==void 0&&e.length===1;s&&(t=xe.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&xe.set(e,t))}return t}toString(){return this.cssText}};const Ms=i=>new Si(typeof i=="string"?i:i+"",void 0,ee),N=(i,...t)=>{const e=i.length===1?i[0]:t.reduce(((s,r,n)=>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.")})(r)+i[n+1]),i[0]);return new Si(e,i,ee)},js=(i,t)=>{if(te)i.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet));else for(const e of t){const s=document.createElement("style"),r=gt.litNonce;r!==void 0&&s.setAttribute("nonce",r),s.textContent=e.cssText,i.appendChild(s)}},Se=te?i=>i:i=>i instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return Ms(e)})(i):i;/**
|
|
8
8
|
* @license
|
|
9
9
|
* Copyright 2017 Google LLC
|
|
10
10
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
11
|
-
*/const{is:Ns,defineProperty:Hs,getOwnPropertyDescriptor:Bs,getOwnPropertyNames:Fs,getOwnPropertySymbols:Ds,getPrototypeOf:zs}=Object,O=globalThis,Ae=O.trustedTypes,qs=Ae?Ae.emptyScript:"",Ut=O.reactiveElementPolyfillSupport,tt=(i,t)=>i,vt={toAttribute(i,t){switch(t){case Boolean:i=i?qs: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}},ie=(i,t)=>!Ns(i,t),ke={attribute:!0,type:String,converter:vt,reflect:!1,useDefault:!1,hasChanged:ie};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),O.litPropertyMetadata??(O.litPropertyMetadata=new WeakMap);let B=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=ke){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const s=Symbol(),r=this.getPropertyDescriptor(t,s,e);r!==void 0&&Hs(this.prototype,t,r)}}static getPropertyDescriptor(t,e,s){const{get:r,set:n}=Bs(this.prototype,t)??{get(){return this[e]},set(o){this[e]=o}};return{get:r,set(o){const a=r==null?void 0:r.call(this);n==null||n.call(this,o),this.requestUpdate(t,a,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??ke}static _$Ei(){if(this.hasOwnProperty(tt("elementProperties")))return;const t=zs(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(tt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(tt("properties"))){const e=this.properties,s=[...Fs(e),...Ds(e)];for(const r of s)this.createProperty(r,e[r])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[s,r]of e)this.elementProperties.set(s,r)}this._$Eh=new Map;for(const[e,s]of this.elementProperties){const r=this._$Eu(e,s);r!==void 0&&this._$Eh.set(r,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 r of s)e.unshift(Se(r))}else t!==void 0&&e.push(Se(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 js(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)}_$ET(t,e){var n;const s=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,s);if(r!==void 0&&s.reflect===!0){const o=(((n=s.converter)==null?void 0:n.toAttribute)!==void 0?s.converter:vt).toAttribute(e,s.type);this._$Em=t,o==null?this.removeAttribute(r):this.setAttribute(r,o),this._$Em=null}}_$AK(t,e){var n,o;const s=this.constructor,r=s._$Eh.get(t);if(r!==void 0&&this._$Em!==r){const a=s.getPropertyOptions(r),l=typeof a.converter=="function"?{fromAttribute:a.converter}:((n=a.converter)==null?void 0:n.fromAttribute)!==void 0?a.converter:vt;this._$Em=r;const c=l.fromAttribute(e,a.type);this[r]=c??((o=this._$Ej)==null?void 0:o.get(r))??c,this._$Em=null}}requestUpdate(t,e,s){var r;if(t!==void 0){const n=this.constructor,o=this[t];if(s??(s=n.getPropertyOptions(t)),!((s.hasChanged??ie)(o,e)||s.useDefault&&s.reflect&&o===((r=this._$Ej)==null?void 0:r.get(t))&&!this.hasAttribute(n._$Eu(t,s))))return;this.C(t,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:r,wrapped:n},o){s&&!(this._$Ej??(this._$Ej=new Map)).has(t)&&(this._$Ej.set(t,o??e??this[t]),n!==!0||o!==void 0)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),r===!0&&this._$Em!==t&&(this._$Eq??(this._$Eq=new Set)).add(t))}async _$EP(){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[n,o]of this._$Ep)this[n]=o;this._$Ep=void 0}const r=this.constructor.elementProperties;if(r.size>0)for(const[n,o]of r){const{wrapped:a}=o,l=this[n];a!==!0||this._$AL.has(n)||l===void 0||this.C(n,void 0,o,l)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(s=this._$EO)==null||s.forEach(r=>{var n;return(n=r.hostUpdate)==null?void 0:n.call(r)}),this.update(e)):this._$EM()}catch(r){throw t=!1,this._$EM(),r}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(s=>{var r;return(r=s.hostUpdated)==null?void 0:r.call(s)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&(this._$Eq=this._$Eq.forEach(e=>this._$ET(e,this[e]))),this._$EM()}updated(t){}firstUpdated(t){}};B.elementStyles=[],B.shadowRootOptions={mode:"open"},B[tt("elementProperties")]=new Map,B[tt("finalized")]=new Map,Ut==null||Ut({ReactiveElement:B}),(O.reactiveElementVersions??(O.reactiveElementVersions=[])).push("2.1.1");/**
|
|
11
|
+
*/const{is:Ns,defineProperty:Hs,getOwnPropertyDescriptor:Bs,getOwnPropertyNames:Fs,getOwnPropertySymbols:Ds,getPrototypeOf:zs}=Object,O=globalThis,Ae=O.trustedTypes,qs=Ae?Ae.emptyScript:"",Ut=O.reactiveElementPolyfillSupport,tt=(i,t)=>i,vt={toAttribute(i,t){switch(t){case Boolean:i=i?qs: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}},ie=(i,t)=>!Ns(i,t),ke={attribute:!0,type:String,converter:vt,reflect:!1,useDefault:!1,hasChanged:ie};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),O.litPropertyMetadata??(O.litPropertyMetadata=new WeakMap);let B=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=ke){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const s=Symbol(),r=this.getPropertyDescriptor(t,s,e);r!==void 0&&Hs(this.prototype,t,r)}}static getPropertyDescriptor(t,e,s){const{get:r,set:n}=Bs(this.prototype,t)??{get(){return this[e]},set(o){this[e]=o}};return{get:r,set(o){const a=r==null?void 0:r.call(this);n==null||n.call(this,o),this.requestUpdate(t,a,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??ke}static _$Ei(){if(this.hasOwnProperty(tt("elementProperties")))return;const t=zs(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(tt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(tt("properties"))){const e=this.properties,s=[...Fs(e),...Ds(e)];for(const r of s)this.createProperty(r,e[r])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[s,r]of e)this.elementProperties.set(s,r)}this._$Eh=new Map;for(const[e,s]of this.elementProperties){const r=this._$Eu(e,s);r!==void 0&&this._$Eh.set(r,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 r of s)e.unshift(Se(r))}else t!==void 0&&e.push(Se(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 js(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)}_$ET(t,e){var n;const s=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,s);if(r!==void 0&&s.reflect===!0){const o=(((n=s.converter)==null?void 0:n.toAttribute)!==void 0?s.converter:vt).toAttribute(e,s.type);this._$Em=t,o==null?this.removeAttribute(r):this.setAttribute(r,o),this._$Em=null}}_$AK(t,e){var n,o;const s=this.constructor,r=s._$Eh.get(t);if(r!==void 0&&this._$Em!==r){const a=s.getPropertyOptions(r),l=typeof a.converter=="function"?{fromAttribute:a.converter}:((n=a.converter)==null?void 0:n.fromAttribute)!==void 0?a.converter:vt;this._$Em=r;const c=l.fromAttribute(e,a.type);this[r]=c??((o=this._$Ej)==null?void 0:o.get(r))??c,this._$Em=null}}requestUpdate(t,e,s){var r;if(t!==void 0){const n=this.constructor,o=this[t];if(s??(s=n.getPropertyOptions(t)),!((s.hasChanged??ie)(o,e)||s.useDefault&&s.reflect&&o===((r=this._$Ej)==null?void 0:r.get(t))&&!this.hasAttribute(n._$Eu(t,s))))return;this.C(t,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:r,wrapped:n},o){s&&!(this._$Ej??(this._$Ej=new Map)).has(t)&&(this._$Ej.set(t,o??e??this[t]),n!==!0||o!==void 0)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),r===!0&&this._$Em!==t&&(this._$Eq??(this._$Eq=new Set)).add(t))}async _$EP(){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[n,o]of this._$Ep)this[n]=o;this._$Ep=void 0}const r=this.constructor.elementProperties;if(r.size>0)for(const[n,o]of r){const{wrapped:a}=o,l=this[n];a!==!0||this._$AL.has(n)||l===void 0||this.C(n,void 0,o,l)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(s=this._$EO)==null||s.forEach((r=>{var n;return(n=r.hostUpdate)==null?void 0:n.call(r)})),this.update(e)):this._$EM()}catch(r){throw t=!1,this._$EM(),r}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach((s=>{var r;return(r=s.hostUpdated)==null?void 0:r.call(s)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&(this._$Eq=this._$Eq.forEach((e=>this._$ET(e,this[e])))),this._$EM()}updated(t){}firstUpdated(t){}};B.elementStyles=[],B.shadowRootOptions={mode:"open"},B[tt("elementProperties")]=new Map,B[tt("finalized")]=new Map,Ut==null||Ut({ReactiveElement:B}),(O.reactiveElementVersions??(O.reactiveElementVersions=[])).push("2.1.1");/**
|
|
12
12
|
* @license
|
|
13
13
|
* Copyright 2017 Google LLC
|
|
14
14
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -54,11 +54,11 @@
|
|
|
54
54
|
* @license
|
|
55
55
|
* Copyright 2017 Google LLC
|
|
56
56
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
57
|
-
*/const it=(i,t)=>{var s;const e=i._$AN;if(e===void 0)return!1;for(const r of e)(s=r._$AO)==null||s.call(r,t,!1),it(r,t);return!0},bt=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)},Pi=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),lr(t)}};function or(i){this._$AN!==void 0?(bt(this),this._$AM=i,Pi(this)):this._$AM=i}function ar(i,t=!1,e=0){const s=this._$AH,r=this._$AN;if(r!==void 0&&r.size!==0)if(t)if(Array.isArray(s))for(let n=e;n<s.length;n++)it(s[n],!1),bt(s[n]);else s!=null&&(it(s,!1),bt(s));else it(this,i)}const lr=i=>{i.type==re.CHILD&&(i._$AP??(i._$AP=ar),i._$AQ??(i._$AQ=or))};class Ii extends Ti{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,s){super._$AT(t,e,s),Pi(this),this.isConnected=t._$AU}_$AO(t,e=!0){var s,r;t!==this.isConnected&&(this.isConnected=t,t?(s=this.reconnected)==null||s.call(this):(r=this.disconnected)==null||r.call(this)),e&&(it(this,t),bt(this))}setValue(t){if(nr(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 cr=new WeakMap;let Le=0;const Ht=new Map,Re=new WeakSet,Ue=()=>new Promise(i=>requestAnimationFrame(i)),Me=[{transform:"translateY(-100%) scale(0)",opacity:0}],ur=[{transform:"translateX(100%) scale(0)",opacity:0}],je=(i,t)=>{const e=i-t;return e===0?void 0:e},Ne=(i,t)=>{const e=i/t;return e===1?void 0:e},Bt={left:(i,t)=>{const e=je(i,t);return{value:e,transform:e==null||isNaN(e)?void 0:`translateX(${e}px)`}},top:(i,t)=>{const e=je(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=Ne(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=Ne(i,t);return{value:s,overrideFrom:e,transform:s==null||isNaN(s)?void 0:`scaleY(${s})`}}},hr={duration:333,easing:"ease-in-out"},dr=["left","top","width","height","opacity","color","background"],He=new WeakMap;class fr extends Ii{constructor(t){if(super(t),this.t=!1,this.i=null,this.o=null,this.h=!0,this.shouldLog=!1,t.type===re.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 cr.get(this.u)}isDisabled(){var t;return this.options.disabled||((t=this.getController())==null?void 0:t.disabled)}update(t,[e]){var r;const s=this.u===void 0;return s&&(this.u=(r=t.options)==null?void 0:r.host,this.u.addController(this),this.u.updateComplete.then(n=>this.t=!0),this.element=t.element,He.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=dr),this.options=t}m(){const t={},e=this.element.getBoundingClientRect(),s=getComputedStyle(this.element);return this.options.properties.forEach(r=>{const n=e[r]??(Bt[r]?void 0:s[r]),o=Number(n);t[r]=isNaN(o)?n+"":o}),t}v(){let t,e=!0;return this.options.guard&&(t=this.options.guard(),e=((s,r)=>{if(Array.isArray(s)){if(Array.isArray(r)&&r.length===s.length&&s.every((n,o)=>n===r[o]))return!1}else if(r===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 Ue;const e=this.O(),s=this.j(this.options.keyframeOptions,e),r=this.m();if(this.A!==void 0){const{from:n,to:o}=this.N(this.A,r,e);this.log("measured",[this.A,r,n,o]),t=this.calculateKeyframes(n,o)}else{const n=Ht.get(this.options.inId);if(n){Ht.delete(this.options.inId);const{from:o,to:a}=this.N(n,r,e);t=this.calculateKeyframes(o,a),t=this.options.in?[{...this.options.in[0],...t[0]},...this.options.in.slice(1),t[1]]:t,Le++,t.forEach(l=>l.zIndex=Le)}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&&Ht.set(this.options.id,this.A),this.options.out===void 0))return;if(this.prepare(),await Ue(),(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 r=this.m();this.log("stabilizing out");const n=this.A.left-r.left,o=this.A.top-r.top;getComputedStyle(this.element).position!=="static"||n===0&&o===0||(this.element.style.position="relative"),n!==0&&(this.element.style.left=n+"px"),o!==0&&(this.element.style.top=o+"px")}}const t=this.j(this.options.keyframeOptions);await this.animate(this.options.out,t),this.element.remove()}prepare(){this.createFinished()}start(){var t,e;(e=(t=this.options).onStart)==null||e.call(t,this)}didFinish(t){var e,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=He.get(e);s&&!s.isDisabled()&&s&&t.push(s)}return t}get isHostRendered(){const t=Re.has(this.u);return t||this.u.updateComplete.then(()=>{Re.add(this.u)}),t}j(t,e=this.O()){const s={...hr};return e.forEach(r=>Object.assign(s,r.options.keyframeOptions)),Object.assign(s,t),s}N(t,e,s){t={...t},e={...e};const r=s.map(a=>a.animatingProperties).filter(a=>a!==void 0);let n=1,o=1;return r.length>0&&(r.forEach(a=>{a.width&&(n/=a.width),a.height&&(o/=a.height)}),t.left!==void 0&&e.left!==void 0&&(t.left=n*t.left,e.left=n*e.left),t.top!==void 0&&e.top!==void 0&&(t.top=o*t.top,e.top=o*e.top)),{from:t,to:e}}calculateKeyframes(t,e,s=!1){const r={},n={};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,r.transform=`${r.transform??""} ${d.transform}`,d.overrideFrom!==void 0&&Object.assign(r,d.overrideFrom))}else c!==u&&c!==void 0&&u!==void 0&&(o=!0,r[l]=c,n[l]=u)}return r.transformOrigin=n.transformOrigin=s?"center center":"top left",this.animatingProperties=a,o?[r,n]:void 0}async animate(t,e=this.options.keyframeOptions){this.start(),this.frames=t;let 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 r=this.getController();r==null||r.add(this);try{await this.webAnimation.finished}catch{}r==null||r.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 Li=ne(fr),pr={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 it=(i,t)=>{var s;const e=i._$AN;if(e===void 0)return!1;for(const r of e)(s=r._$AO)==null||s.call(r,t,!1),it(r,t);return!0},bt=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)},Pi=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),lr(t)}};function or(i){this._$AN!==void 0?(bt(this),this._$AM=i,Pi(this)):this._$AM=i}function ar(i,t=!1,e=0){const s=this._$AH,r=this._$AN;if(r!==void 0&&r.size!==0)if(t)if(Array.isArray(s))for(let n=e;n<s.length;n++)it(s[n],!1),bt(s[n]);else s!=null&&(it(s,!1),bt(s));else it(this,i)}const lr=i=>{i.type==re.CHILD&&(i._$AP??(i._$AP=ar),i._$AQ??(i._$AQ=or))};class Ii extends Ti{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,s){super._$AT(t,e,s),Pi(this),this.isConnected=t._$AU}_$AO(t,e=!0){var s,r;t!==this.isConnected&&(this.isConnected=t,t?(s=this.reconnected)==null||s.call(this):(r=this.disconnected)==null||r.call(this)),e&&(it(this,t),bt(this))}setValue(t){if(nr(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 cr=new WeakMap;let Le=0;const Ht=new Map,Re=new WeakSet,Ue=()=>new Promise((i=>requestAnimationFrame(i))),Me=[{transform:"translateY(-100%) scale(0)",opacity:0}],ur=[{transform:"translateX(100%) scale(0)",opacity:0}],je=(i,t)=>{const e=i-t;return e===0?void 0:e},Ne=(i,t)=>{const e=i/t;return e===1?void 0:e},Bt={left:(i,t)=>{const e=je(i,t);return{value:e,transform:e==null||isNaN(e)?void 0:`translateX(${e}px)`}},top:(i,t)=>{const e=je(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=Ne(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=Ne(i,t);return{value:s,overrideFrom:e,transform:s==null||isNaN(s)?void 0:`scaleY(${s})`}}},hr={duration:333,easing:"ease-in-out"},dr=["left","top","width","height","opacity","color","background"],He=new WeakMap;class fr extends Ii{constructor(t){if(super(t),this.t=!1,this.i=null,this.o=null,this.h=!0,this.shouldLog=!1,t.type===re.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 cr.get(this.u)}isDisabled(){var t;return this.options.disabled||((t=this.getController())==null?void 0:t.disabled)}update(t,[e]){var r;const s=this.u===void 0;return s&&(this.u=(r=t.options)==null?void 0:r.host,this.u.addController(this),this.u.updateComplete.then((n=>this.t=!0)),this.element=t.element,He.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=dr),this.options=t}m(){const t={},e=this.element.getBoundingClientRect(),s=getComputedStyle(this.element);return this.options.properties.forEach((r=>{const n=e[r]??(Bt[r]?void 0:s[r]),o=Number(n);t[r]=isNaN(o)?n+"":o})),t}v(){let t,e=!0;return this.options.guard&&(t=this.options.guard(),e=((s,r)=>{if(Array.isArray(s)){if(Array.isArray(r)&&r.length===s.length&&s.every(((n,o)=>n===r[o])))return!1}else if(r===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 Ue;const e=this.O(),s=this.j(this.options.keyframeOptions,e),r=this.m();if(this.A!==void 0){const{from:n,to:o}=this.N(this.A,r,e);this.log("measured",[this.A,r,n,o]),t=this.calculateKeyframes(n,o)}else{const n=Ht.get(this.options.inId);if(n){Ht.delete(this.options.inId);const{from:o,to:a}=this.N(n,r,e);t=this.calculateKeyframes(o,a),t=this.options.in?[{...this.options.in[0],...t[0]},...this.options.in.slice(1),t[1]]:t,Le++,t.forEach((l=>l.zIndex=Le))}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&&Ht.set(this.options.id,this.A),this.options.out===void 0))return;if(this.prepare(),await Ue(),(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 r=this.m();this.log("stabilizing out");const n=this.A.left-r.left,o=this.A.top-r.top;getComputedStyle(this.element).position!=="static"||n===0&&o===0||(this.element.style.position="relative"),n!==0&&(this.element.style.left=n+"px"),o!==0&&(this.element.style.top=o+"px")}}const t=this.j(this.options.keyframeOptions);await this.animate(this.options.out,t),this.element.remove()}prepare(){this.createFinished()}start(){var t,e;(e=(t=this.options).onStart)==null||e.call(t,this)}didFinish(t){var e,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=He.get(e);s&&!s.isDisabled()&&s&&t.push(s)}return t}get isHostRendered(){const t=Re.has(this.u);return t||this.u.updateComplete.then((()=>{Re.add(this.u)})),t}j(t,e=this.O()){const s={...hr};return e.forEach((r=>Object.assign(s,r.options.keyframeOptions))),Object.assign(s,t),s}N(t,e,s){t={...t},e={...e};const r=s.map((a=>a.animatingProperties)).filter((a=>a!==void 0));let n=1,o=1;return r.length>0&&(r.forEach((a=>{a.width&&(n/=a.width),a.height&&(o/=a.height)})),t.left!==void 0&&e.left!==void 0&&(t.left=n*t.left,e.left=n*e.left),t.top!==void 0&&e.top!==void 0&&(t.top=o*t.top,e.top=o*e.top)),{from:t,to:e}}calculateKeyframes(t,e,s=!1){const r={},n={};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,r.transform=`${r.transform??""} ${d.transform}`,d.overrideFrom!==void 0&&Object.assign(r,d.overrideFrom))}else c!==u&&c!==void 0&&u!==void 0&&(o=!0,r[l]=c,n[l]=u)}return r.transformOrigin=n.transformOrigin=s?"center center":"top left",this.animatingProperties=a,o?[r,n]:void 0}async animate(t,e=this.options.keyframeOptions){this.start(),this.frames=t;let 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 r=this.getController();r==null||r.add(this);try{await this.webAnimation.finished}catch{}r==null||r.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 Li=ne(fr),pr={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 Be=ne(class extends Ti{constructor(i){var t;if(super(i),i.type!==re.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,r;if(this.st===void 0){this.st=new Set,i.strings!==void 0&&(this.nt=new Set(i.strings.join(" ").split(/\s/).filter(n=>n!=="")));for(const n in t)t[n]&&!((s=this.nt)!=null&&s.has(n))&&this.st.add(n);return this.render(t)}const e=i.element.classList;for(const n of this.st)n in t||(e.remove(n),this.st.delete(n));for(const n in t){const o=!!t[n];o===this.st.has(n)||(r=this.nt)!=null&&r.has(n)||(o?(e.add(n),this.st.add(n)):(e.remove(n),this.st.delete(n)))}return M}}),A=(i,t,e)=>{i&&e.style.setProperty(t,i)},Ri=(i,t)=>{var e,s,r,n,o,a,l,c,u;A((e=i.colors)==null?void 0:e.primaryBackground,"--primary-background",t),A((s=i.colors)==null?void 0:s.textOnPrimaryBackground,"--text-on-primary-background",t),A((r=i.colors)==null?void 0:r.secondaryBackground,"--secondary-background",t),A((n=i.colors)==null?void 0:n.textOnSecondaryBackground,"--text-on-secondary-background",t),A((o=i.colors)==null?void 0:o.interactiveDestructiveBackground,"--destructive-color",t),A((a=i.colors)==null?void 0:a.interactiveTextOnDestructiveBackground,"--text-on-destructive-color",t),A((l=i.colors)==null?void 0:l.interactivePrimaryBackground,"--interactive-primary-background",t),A((c=i.colors)==null?void 0:c.interactiveTextOnPrimaryBackground,"--interactive-text-on-primary-background",t),A((u=i.colors)==null?void 0:u.focusColor,"--focus-color",t)};/**
|
|
61
|
+
*/const Be=ne(class extends Ti{constructor(i){var t;if(super(i),i.type!==re.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,r;if(this.st===void 0){this.st=new Set,i.strings!==void 0&&(this.nt=new Set(i.strings.join(" ").split(/\s/).filter((n=>n!==""))));for(const n in t)t[n]&&!((s=this.nt)!=null&&s.has(n))&&this.st.add(n);return this.render(t)}const e=i.element.classList;for(const n of this.st)n in t||(e.remove(n),this.st.delete(n));for(const n in t){const o=!!t[n];o===this.st.has(n)||(r=this.nt)!=null&&r.has(n)||(o?(e.add(n),this.st.add(n)):(e.remove(n),this.st.delete(n)))}return M}}),A=(i,t,e)=>{i&&e.style.setProperty(t,i)},Ri=(i,t)=>{var e,s,r,n,o,a,l,c,u;A((e=i.colors)==null?void 0:e.primaryBackground,"--primary-background",t),A((s=i.colors)==null?void 0:s.textOnPrimaryBackground,"--text-on-primary-background",t),A((r=i.colors)==null?void 0:r.secondaryBackground,"--secondary-background",t),A((n=i.colors)==null?void 0:n.textOnSecondaryBackground,"--text-on-secondary-background",t),A((o=i.colors)==null?void 0:o.interactiveDestructiveBackground,"--destructive-color",t),A((a=i.colors)==null?void 0:a.interactiveTextOnDestructiveBackground,"--text-on-destructive-color",t),A((l=i.colors)==null?void 0:l.interactivePrimaryBackground,"--interactive-primary-background",t),A((c=i.colors)==null?void 0:c.interactiveTextOnPrimaryBackground,"--interactive-text-on-primary-background",t),A((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
|
|
@@ -286,7 +286,7 @@
|
|
|
286
286
|
* @license
|
|
287
287
|
* Copyright 2017 Google LLC
|
|
288
288
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
289
|
-
*/function wr({context:i}){return(t,e)=>{const s=new WeakMap;if(typeof e=="object")return{get(){return t.get.call(this)},set(r){return s.get(this).setValue(r),t.set.call(this,r)},init(r){return s.set(this,new Fe(this,{context:i,initialValue:r})),r}};{t.constructor.addInitializer(o=>{s.set(o,new Fe(o,{context:i}))});const r=Object.getOwnPropertyDescriptor(t,e);let n;if(r===void 0){const o=new WeakMap;n={get(){return o.get(this)},set(a){s.get(this).setValue(a),o.set(this,a)},configurable:!0,enumerable:!0}}else{const o=r.set;n={...r,set(a){s.get(this).setValue(a),o==null||o.call(this,a)}}}return void Object.defineProperty(t,e,n)}}}var xr=Object.defineProperty,Mi=(i,t,e,s)=>{for(var r=void 0,n=i.length-1,o;n>=0;n--)(o=i[n])&&(r=o(t,e,r)||r);return r&&xr(t,e,r),r};const Sr="application",$e=class $e extends x{constructor(){super(...arguments),this.nodes=[],this.wrapperRef=_t(),this.fullscreen=!1,this.isReady=new li(!1)}addChild(t){t.parent=this,this.nodes.push(t)}applyBranding(){if(!this.wrapperRef.value)return;const t=this.application.settings;t!=null&&t.branding&&Ri(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,r])=>{e.style.setProperty(`--${s}`,r)})}firstUpdated(t){this.applyBranding(),this.applyStyles()}render(){var s,r;const t=this.application.settings.components.conversation;return((r=(s=t==null?void 0:t.properties)==null?void 0:s.chat)==null?void 0:r.isThirdPartyWidget)?this.renderRoot.host.classList.add("third-party"):this.application.renderStrategy===ae.Trigger&&(this.renderRoot.host.classList.add("floating"),this.application.anchor==="BottomLeft"?this.renderRoot.host.classList.add("bottom-left"):this.application.anchor==="BottomRight"&&this.renderRoot.host.classList.add("bottom-right")),this.application.fullscreen&&this.renderRoot.host.classList.add("fullscreen"),window.self!==window.top&&this.renderRoot.host.classList.add("embedded"),k`<div class="widget-container" ${oe(this.wrapperRef)}>
|
|
289
|
+
*/function wr({context:i}){return(t,e)=>{const s=new WeakMap;if(typeof e=="object")return{get(){return t.get.call(this)},set(r){return s.get(this).setValue(r),t.set.call(this,r)},init(r){return s.set(this,new Fe(this,{context:i,initialValue:r})),r}};{t.constructor.addInitializer((o=>{s.set(o,new Fe(o,{context:i}))}));const r=Object.getOwnPropertyDescriptor(t,e);let n;if(r===void 0){const o=new WeakMap;n={get(){return o.get(this)},set(a){s.get(this).setValue(a),o.set(this,a)},configurable:!0,enumerable:!0}}else{const o=r.set;n={...r,set(a){s.get(this).setValue(a),o==null||o.call(this,a)}}}return void Object.defineProperty(t,e,n)}}}var xr=Object.defineProperty,Mi=(i,t,e,s)=>{for(var r=void 0,n=i.length-1,o;n>=0;n--)(o=i[n])&&(r=o(t,e,r)||r);return r&&xr(t,e,r),r};const Sr="application",$e=class $e extends x{constructor(){super(...arguments),this.nodes=[],this.wrapperRef=_t(),this.fullscreen=!1,this.isReady=new li(!1)}addChild(t){t.parent=this,this.nodes.push(t)}applyBranding(){if(!this.wrapperRef.value)return;const t=this.application.settings;t!=null&&t.branding&&Ri(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,r])=>{e.style.setProperty(`--${s}`,r)})}firstUpdated(t){this.applyBranding(),this.applyStyles()}render(){var s,r;const t=this.application.settings.components.conversation;return((r=(s=t==null?void 0:t.properties)==null?void 0:s.chat)==null?void 0:r.isThirdPartyWidget)?this.renderRoot.host.classList.add("third-party"):this.application.renderStrategy===ae.Trigger&&(this.renderRoot.host.classList.add("floating"),this.application.anchor==="BottomLeft"?this.renderRoot.host.classList.add("bottom-left"):this.application.anchor==="BottomRight"&&this.renderRoot.host.classList.add("bottom-right")),this.application.fullscreen&&this.renderRoot.host.classList.add("fullscreen"),window.self!==window.top&&this.renderRoot.host.classList.add("embedded"),k`<div class="widget-container" ${oe(this.wrapperRef)}>
|
|
290
290
|
${mr(this.nodes,n=>n)}
|
|
291
291
|
</div>`}};$e.styles=N`
|
|
292
292
|
:host {
|
|
@@ -217,7 +217,7 @@ function qt(i, t) {
|
|
|
217
217
|
0 <= e && i.splice(e, 1);
|
|
218
218
|
}
|
|
219
219
|
}
|
|
220
|
-
var At = function() {
|
|
220
|
+
var At = (function() {
|
|
221
221
|
function i(t) {
|
|
222
222
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
223
223
|
}
|
|
@@ -301,11 +301,11 @@ var At = function() {
|
|
|
301
301
|
}, i.prototype.remove = function(t) {
|
|
302
302
|
var e = this._finalizers;
|
|
303
303
|
e && qt(e, t), t instanceof i && t._removeParent(this);
|
|
304
|
-
}, i.EMPTY = function() {
|
|
304
|
+
}, i.EMPTY = (function() {
|
|
305
305
|
var t = new i();
|
|
306
306
|
return t.closed = !0, t;
|
|
307
|
-
}(), i;
|
|
308
|
-
}(), ri = At.EMPTY;
|
|
307
|
+
})(), i;
|
|
308
|
+
})(), ri = At.EMPTY;
|
|
309
309
|
function ni(i) {
|
|
310
310
|
return i instanceof At || i && "closed" in i && v(i.remove) && v(i.add) && v(i.unsubscribe);
|
|
311
311
|
}
|
|
@@ -335,7 +335,7 @@ function be() {
|
|
|
335
335
|
function ft(i) {
|
|
336
336
|
i();
|
|
337
337
|
}
|
|
338
|
-
var Jt = function(i) {
|
|
338
|
+
var Jt = (function(i) {
|
|
339
339
|
X(t, i);
|
|
340
340
|
function t(e) {
|
|
341
341
|
var s = i.call(this) || this;
|
|
@@ -366,7 +366,7 @@ var Jt = function(i) {
|
|
|
366
366
|
this.unsubscribe();
|
|
367
367
|
}
|
|
368
368
|
}, t;
|
|
369
|
-
}(At), ns = function() {
|
|
369
|
+
})(At), ns = (function() {
|
|
370
370
|
function i(t) {
|
|
371
371
|
this.partialObserver = t;
|
|
372
372
|
}
|
|
@@ -397,7 +397,7 @@ var Jt = function(i) {
|
|
|
397
397
|
ht(e);
|
|
398
398
|
}
|
|
399
399
|
}, i;
|
|
400
|
-
}(), Wt = function(i) {
|
|
400
|
+
})(), Wt = (function(i) {
|
|
401
401
|
X(t, i);
|
|
402
402
|
function t(e, s, r) {
|
|
403
403
|
var n = i.call(this) || this, o;
|
|
@@ -408,7 +408,7 @@ var Jt = function(i) {
|
|
|
408
408
|
} : o = e, n.destination = new ns(o), n;
|
|
409
409
|
}
|
|
410
410
|
return t;
|
|
411
|
-
}(Jt);
|
|
411
|
+
})(Jt);
|
|
412
412
|
function ht(i) {
|
|
413
413
|
oi(i);
|
|
414
414
|
}
|
|
@@ -420,9 +420,9 @@ var as = {
|
|
|
420
420
|
next: be,
|
|
421
421
|
error: os,
|
|
422
422
|
complete: be
|
|
423
|
-
}, Vt = function() {
|
|
423
|
+
}, Vt = (function() {
|
|
424
424
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
425
|
-
}();
|
|
425
|
+
})();
|
|
426
426
|
function ai(i) {
|
|
427
427
|
return i;
|
|
428
428
|
}
|
|
@@ -433,7 +433,7 @@ function ls(i) {
|
|
|
433
433
|
}, e);
|
|
434
434
|
};
|
|
435
435
|
}
|
|
436
|
-
var _ = function() {
|
|
436
|
+
var _ = (function() {
|
|
437
437
|
function i(t) {
|
|
438
438
|
t && (this._subscribe = t);
|
|
439
439
|
}
|
|
@@ -492,7 +492,7 @@ var _ = function() {
|
|
|
492
492
|
}, i.create = function(t) {
|
|
493
493
|
return new i(t);
|
|
494
494
|
}, i;
|
|
495
|
-
}();
|
|
495
|
+
})();
|
|
496
496
|
function _e(i) {
|
|
497
497
|
var t;
|
|
498
498
|
return (t = i ?? ss.Promise) !== null && t !== void 0 ? t : Promise;
|
|
@@ -522,7 +522,7 @@ function kt(i) {
|
|
|
522
522
|
function gt(i, t, e, s, r) {
|
|
523
523
|
return new ds(i, t, e, s, r);
|
|
524
524
|
}
|
|
525
|
-
var ds = function(i) {
|
|
525
|
+
var ds = (function(i) {
|
|
526
526
|
X(t, i);
|
|
527
527
|
function t(e, s, r, n, o, a) {
|
|
528
528
|
var l = i.call(this, e) || this;
|
|
@@ -557,11 +557,11 @@ var ds = function(i) {
|
|
|
557
557
|
i.prototype.unsubscribe.call(this), !s && ((e = this.onFinalize) === null || e === void 0 || e.call(this));
|
|
558
558
|
}
|
|
559
559
|
}, t;
|
|
560
|
-
}(Jt), fs = si(function(i) {
|
|
560
|
+
})(Jt), fs = si(function(i) {
|
|
561
561
|
return function() {
|
|
562
562
|
i(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
563
563
|
};
|
|
564
|
-
}), Et = function(i) {
|
|
564
|
+
}), Et = (function(i) {
|
|
565
565
|
X(t, i);
|
|
566
566
|
function t() {
|
|
567
567
|
var e = i.call(this) || this;
|
|
@@ -640,7 +640,7 @@ var ds = function(i) {
|
|
|
640
640
|
}, t.create = function(e, s) {
|
|
641
641
|
return new we(e, s);
|
|
642
642
|
}, t;
|
|
643
|
-
}(_), we = function(i) {
|
|
643
|
+
})(_), we = (function(i) {
|
|
644
644
|
X(t, i);
|
|
645
645
|
function t(e, s) {
|
|
646
646
|
var r = i.call(this) || this;
|
|
@@ -659,7 +659,7 @@ var ds = function(i) {
|
|
|
659
659
|
var s, r;
|
|
660
660
|
return (r = (s = this.source) === null || s === void 0 ? void 0 : s.subscribe(e)) !== null && r !== void 0 ? r : ri;
|
|
661
661
|
}, t;
|
|
662
|
-
}(Et), li = function(i) {
|
|
662
|
+
})(Et), li = (function(i) {
|
|
663
663
|
X(t, i);
|
|
664
664
|
function t(e) {
|
|
665
665
|
var s = i.call(this) || this;
|
|
@@ -682,7 +682,7 @@ var ds = function(i) {
|
|
|
682
682
|
}, t.prototype.next = function(e) {
|
|
683
683
|
i.prototype.next.call(this, this._value = e);
|
|
684
684
|
}, t;
|
|
685
|
-
}(Et), ps = new _(function(i) {
|
|
685
|
+
})(Et), ps = new _(function(i) {
|
|
686
686
|
return i.complete();
|
|
687
687
|
});
|
|
688
688
|
function gs(i) {
|
|
@@ -697,9 +697,9 @@ function $s(i) {
|
|
|
697
697
|
function vs(i, t) {
|
|
698
698
|
return typeof ci(i) == "number" ? i.pop() : t;
|
|
699
699
|
}
|
|
700
|
-
var ui = function(i) {
|
|
700
|
+
var ui = (function(i) {
|
|
701
701
|
return i && typeof i.length == "number" && typeof i != "function";
|
|
702
|
-
};
|
|
702
|
+
});
|
|
703
703
|
function hi(i) {
|
|
704
704
|
return v(i == null ? void 0 : i.then);
|
|
705
705
|
}
|
|
@@ -1050,14 +1050,14 @@ let Si = class {
|
|
|
1050
1050
|
}
|
|
1051
1051
|
};
|
|
1052
1052
|
const Ms = (i) => new Si(typeof i == "string" ? i : i + "", void 0, ee), N = (i, ...t) => {
|
|
1053
|
-
const e = i.length === 1 ? i[0] : t.reduce((s, r, n) => s + ((o) => {
|
|
1053
|
+
const e = i.length === 1 ? i[0] : t.reduce(((s, r, n) => s + ((o) => {
|
|
1054
1054
|
if (o._$cssResult$ === !0) return o.cssText;
|
|
1055
1055
|
if (typeof o == "number") return o;
|
|
1056
1056
|
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.");
|
|
1057
|
-
})(r) + i[n + 1], i[0]);
|
|
1057
|
+
})(r) + i[n + 1]), i[0]);
|
|
1058
1058
|
return new Si(e, i, ee);
|
|
1059
1059
|
}, js = (i, t) => {
|
|
1060
|
-
if (te) i.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
1060
|
+
if (te) i.adoptedStyleSheets = t.map(((e) => e instanceof CSSStyleSheet ? e : e.styleSheet));
|
|
1061
1061
|
else for (const e of t) {
|
|
1062
1062
|
const s = document.createElement("style"), r = pt.litNonce;
|
|
1063
1063
|
r !== void 0 && s.setAttribute("nonce", r), s.textContent = e.cssText, i.appendChild(s);
|
|
@@ -1169,7 +1169,7 @@ let B = class extends HTMLElement {
|
|
|
1169
1169
|
}
|
|
1170
1170
|
_$Ev() {
|
|
1171
1171
|
var t;
|
|
1172
|
-
this._$ES = new Promise((e) => this.enableUpdating = e), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), (t = this.constructor.l) == null || t.forEach((e) => e(this));
|
|
1172
|
+
this._$ES = new Promise(((e) => this.enableUpdating = e)), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), (t = this.constructor.l) == null || t.forEach(((e) => e(this)));
|
|
1173
1173
|
}
|
|
1174
1174
|
addController(t) {
|
|
1175
1175
|
var e;
|
|
@@ -1190,19 +1190,19 @@ let B = class extends HTMLElement {
|
|
|
1190
1190
|
}
|
|
1191
1191
|
connectedCallback() {
|
|
1192
1192
|
var t;
|
|
1193
|
-
this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$EO) == null || t.forEach((e) => {
|
|
1193
|
+
this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$EO) == null || t.forEach(((e) => {
|
|
1194
1194
|
var s;
|
|
1195
1195
|
return (s = e.hostConnected) == null ? void 0 : s.call(e);
|
|
1196
|
-
});
|
|
1196
|
+
}));
|
|
1197
1197
|
}
|
|
1198
1198
|
enableUpdating(t) {
|
|
1199
1199
|
}
|
|
1200
1200
|
disconnectedCallback() {
|
|
1201
1201
|
var t;
|
|
1202
|
-
(t = this._$EO) == null || t.forEach((e) => {
|
|
1202
|
+
(t = this._$EO) == null || t.forEach(((e) => {
|
|
1203
1203
|
var s;
|
|
1204
1204
|
return (s = e.hostDisconnected) == null ? void 0 : s.call(e);
|
|
1205
|
-
});
|
|
1205
|
+
}));
|
|
1206
1206
|
}
|
|
1207
1207
|
attributeChangedCallback(t, e, s) {
|
|
1208
1208
|
this._$AK(t, s);
|
|
@@ -1267,10 +1267,10 @@ let B = class extends HTMLElement {
|
|
|
1267
1267
|
let t = !1;
|
|
1268
1268
|
const e = this._$AL;
|
|
1269
1269
|
try {
|
|
1270
|
-
t = this.shouldUpdate(e), t ? (this.willUpdate(e), (s = this._$EO) == null || s.forEach((r) => {
|
|
1270
|
+
t = this.shouldUpdate(e), t ? (this.willUpdate(e), (s = this._$EO) == null || s.forEach(((r) => {
|
|
1271
1271
|
var n;
|
|
1272
1272
|
return (n = r.hostUpdate) == null ? void 0 : n.call(r);
|
|
1273
|
-
}), this.update(e)) : this._$EM();
|
|
1273
|
+
})), this.update(e)) : this._$EM();
|
|
1274
1274
|
} catch (r) {
|
|
1275
1275
|
throw t = !1, this._$EM(), r;
|
|
1276
1276
|
}
|
|
@@ -1280,10 +1280,10 @@ let B = class extends HTMLElement {
|
|
|
1280
1280
|
}
|
|
1281
1281
|
_$AE(t) {
|
|
1282
1282
|
var e;
|
|
1283
|
-
(e = this._$EO) == null || e.forEach((s) => {
|
|
1283
|
+
(e = this._$EO) == null || e.forEach(((s) => {
|
|
1284
1284
|
var r;
|
|
1285
1285
|
return (r = s.hostUpdated) == null ? void 0 : r.call(s);
|
|
1286
|
-
}), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
|
|
1286
|
+
})), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
|
|
1287
1287
|
}
|
|
1288
1288
|
_$EM() {
|
|
1289
1289
|
this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
|
|
@@ -1298,7 +1298,7 @@ let B = class extends HTMLElement {
|
|
|
1298
1298
|
return !0;
|
|
1299
1299
|
}
|
|
1300
1300
|
update(t) {
|
|
1301
|
-
this._$Eq && (this._$Eq = this._$Eq.forEach((e) => this._$ET(e, this[e]))), this._$EM();
|
|
1301
|
+
this._$Eq && (this._$Eq = this._$Eq.forEach(((e) => this._$ET(e, this[e])))), this._$EM();
|
|
1302
1302
|
}
|
|
1303
1303
|
updated(t) {
|
|
1304
1304
|
}
|
|
@@ -1748,7 +1748,7 @@ class Ii extends Ti {
|
|
|
1748
1748
|
}
|
|
1749
1749
|
const cr = /* @__PURE__ */ new WeakMap();
|
|
1750
1750
|
let Le = 0;
|
|
1751
|
-
const Nt = /* @__PURE__ */ new Map(), Re = /* @__PURE__ */ new WeakSet(), Ue = () => new Promise((i) => requestAnimationFrame(i)), Me = [{ transform: "translateY(-100%) scale(0)", opacity: 0 }], ur = [{ transform: "translateX(100%) scale(0)", opacity: 0 }], je = (i, t) => {
|
|
1751
|
+
const Nt = /* @__PURE__ */ new Map(), Re = /* @__PURE__ */ new WeakSet(), Ue = () => new Promise(((i) => requestAnimationFrame(i))), Me = [{ transform: "translateY(-100%) scale(0)", opacity: 0 }], ur = [{ transform: "translateX(100%) scale(0)", opacity: 0 }], je = (i, t) => {
|
|
1752
1752
|
const e = i - t;
|
|
1753
1753
|
return e === 0 ? void 0 : e;
|
|
1754
1754
|
}, Ne = (i, t) => {
|
|
@@ -1778,9 +1778,9 @@ class fr extends Ii {
|
|
|
1778
1778
|
}
|
|
1779
1779
|
createFinished() {
|
|
1780
1780
|
var t;
|
|
1781
|
-
(t = this.resolveFinished) == null || t.call(this), this.finished = new Promise((e) => {
|
|
1781
|
+
(t = this.resolveFinished) == null || t.call(this), this.finished = new Promise(((e) => {
|
|
1782
1782
|
this.l = e;
|
|
1783
|
-
});
|
|
1783
|
+
}));
|
|
1784
1784
|
}
|
|
1785
1785
|
async resolveFinished() {
|
|
1786
1786
|
var t;
|
|
@@ -1799,7 +1799,7 @@ class fr extends Ii {
|
|
|
1799
1799
|
update(t, [e]) {
|
|
1800
1800
|
var r;
|
|
1801
1801
|
const s = this.u === void 0;
|
|
1802
|
-
return s && (this.u = (r = t.options) == null ? void 0 : r.host, this.u.addController(this), this.u.updateComplete.then((n) => this.t = !0), this.element = t.element, He.set(this.element, this)), this.optionsOrCallback = e, (s || typeof e != "function") && this.p(e), this.render(e);
|
|
1802
|
+
return s && (this.u = (r = t.options) == null ? void 0 : r.host, this.u.addController(this), this.u.updateComplete.then(((n) => this.t = !0)), this.element = t.element, He.set(this.element, this)), this.optionsOrCallback = e, (s || typeof e != "function") && this.p(e), this.render(e);
|
|
1803
1803
|
}
|
|
1804
1804
|
p(t) {
|
|
1805
1805
|
t = t ?? {};
|
|
@@ -1808,16 +1808,16 @@ class fr extends Ii {
|
|
|
1808
1808
|
}
|
|
1809
1809
|
m() {
|
|
1810
1810
|
const t = {}, e = this.element.getBoundingClientRect(), s = getComputedStyle(this.element);
|
|
1811
|
-
return this.options.properties.forEach((r) => {
|
|
1811
|
+
return this.options.properties.forEach(((r) => {
|
|
1812
1812
|
const n = e[r] ?? (Ht[r] ? void 0 : s[r]), o = Number(n);
|
|
1813
1813
|
t[r] = isNaN(o) ? n + "" : o;
|
|
1814
|
-
}), t;
|
|
1814
|
+
})), t;
|
|
1815
1815
|
}
|
|
1816
1816
|
v() {
|
|
1817
1817
|
let t, e = !0;
|
|
1818
1818
|
return this.options.guard && (t = this.options.guard(), e = ((s, r) => {
|
|
1819
1819
|
if (Array.isArray(s)) {
|
|
1820
|
-
if (Array.isArray(r) && r.length === s.length && s.every((n, o) => n === r[o])) return !1;
|
|
1820
|
+
if (Array.isArray(r) && r.length === s.length && s.every(((n, o) => n === r[o]))) return !1;
|
|
1821
1821
|
} else if (r === s) return !1;
|
|
1822
1822
|
return !0;
|
|
1823
1823
|
})(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;
|
|
@@ -1838,7 +1838,7 @@ class fr extends Ii {
|
|
|
1838
1838
|
if (n) {
|
|
1839
1839
|
Nt.delete(this.options.inId);
|
|
1840
1840
|
const { from: o, to: a } = this.N(n, r, e);
|
|
1841
|
-
t = this.calculateKeyframes(o, a), t = this.options.in ? [{ ...this.options.in[0], ...t[0] }, ...this.options.in.slice(1), t[1]] : t, Le++, t.forEach((l) => l.zIndex = Le);
|
|
1841
|
+
t = this.calculateKeyframes(o, a), t = this.options.in ? [{ ...this.options.in[0], ...t[0] }, ...this.options.in.slice(1), t[1]] : t, Le++, t.forEach(((l) => l.zIndex = Le));
|
|
1842
1842
|
} else this.options.in && (t = [...this.options.in, {}]);
|
|
1843
1843
|
}
|
|
1844
1844
|
this.animate(t, s);
|
|
@@ -1888,21 +1888,21 @@ class fr extends Ii {
|
|
|
1888
1888
|
}
|
|
1889
1889
|
get isHostRendered() {
|
|
1890
1890
|
const t = Re.has(this.u);
|
|
1891
|
-
return t || this.u.updateComplete.then(() => {
|
|
1891
|
+
return t || this.u.updateComplete.then((() => {
|
|
1892
1892
|
Re.add(this.u);
|
|
1893
|
-
}), t;
|
|
1893
|
+
})), t;
|
|
1894
1894
|
}
|
|
1895
1895
|
j(t, e = this.O()) {
|
|
1896
1896
|
const s = { ...hr };
|
|
1897
|
-
return e.forEach((r) => Object.assign(s, r.options.keyframeOptions)), Object.assign(s, t), s;
|
|
1897
|
+
return e.forEach(((r) => Object.assign(s, r.options.keyframeOptions))), Object.assign(s, t), s;
|
|
1898
1898
|
}
|
|
1899
1899
|
N(t, e, s) {
|
|
1900
1900
|
t = { ...t }, e = { ...e };
|
|
1901
|
-
const r = s.map((a) => a.animatingProperties).filter((a) => a !== void 0);
|
|
1901
|
+
const r = s.map(((a) => a.animatingProperties)).filter(((a) => a !== void 0));
|
|
1902
1902
|
let n = 1, o = 1;
|
|
1903
|
-
return r.length > 0 && (r.forEach((a) => {
|
|
1903
|
+
return r.length > 0 && (r.forEach(((a) => {
|
|
1904
1904
|
a.width && (n /= a.width), a.height && (o /= a.height);
|
|
1905
|
-
}), t.left !== void 0 && e.left !== void 0 && (t.left = n * t.left, e.left = n * e.left), t.top !== void 0 && e.top !== void 0 && (t.top = o * t.top, e.top = o * e.top)), { from: t, to: e };
|
|
1905
|
+
})), t.left !== void 0 && e.left !== void 0 && (t.left = n * t.left, e.left = n * e.left), t.top !== void 0 && e.top !== void 0 && (t.top = o * t.top, e.top = o * e.top)), { from: t, to: e };
|
|
1906
1906
|
}
|
|
1907
1907
|
calculateKeyframes(t, e, s = !1) {
|
|
1908
1908
|
const r = {}, n = {};
|
|
@@ -1954,12 +1954,12 @@ const Be = ne(class extends Ti {
|
|
|
1954
1954
|
if (super(i), i.type !== re.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.");
|
|
1955
1955
|
}
|
|
1956
1956
|
render(i) {
|
|
1957
|
-
return " " + Object.keys(i).filter((t) => i[t]).join(" ") + " ";
|
|
1957
|
+
return " " + Object.keys(i).filter(((t) => i[t])).join(" ") + " ";
|
|
1958
1958
|
}
|
|
1959
1959
|
update(i, [t]) {
|
|
1960
1960
|
var s, r;
|
|
1961
1961
|
if (this.st === void 0) {
|
|
1962
|
-
this.st = /* @__PURE__ */ new Set(), i.strings !== void 0 && (this.nt = new Set(i.strings.join(" ").split(/\s/).filter((n) => n !== "")));
|
|
1962
|
+
this.st = /* @__PURE__ */ new Set(), i.strings !== void 0 && (this.nt = new Set(i.strings.join(" ").split(/\s/).filter(((n) => n !== ""))));
|
|
1963
1963
|
for (const n in t) t[n] && !((s = this.nt) != null && s.has(n)) && this.st.add(n);
|
|
1964
1964
|
return this.render(t);
|
|
1965
1965
|
}
|
|
@@ -2516,9 +2516,9 @@ function wr({ context: i }) {
|
|
|
2516
2516
|
return s.set(this, new Fe(this, { context: i, initialValue: r })), r;
|
|
2517
2517
|
} };
|
|
2518
2518
|
{
|
|
2519
|
-
t.constructor.addInitializer((o) => {
|
|
2519
|
+
t.constructor.addInitializer(((o) => {
|
|
2520
2520
|
s.set(o, new Fe(o, { context: i }));
|
|
2521
|
-
});
|
|
2521
|
+
}));
|
|
2522
2522
|
const r = Object.getOwnPropertyDescriptor(t, e);
|
|
2523
2523
|
let n;
|
|
2524
2524
|
if (r === void 0) {
|