@letscooee/web-sdk 9.3.1 → 9.3.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.
@@ -1,26 +1,26 @@
1
- var td=Object.create;var Xr=Object.defineProperty,nd=Object.defineProperties,rd=Object.getOwnPropertyDescriptor,od=Object.getOwnPropertyDescriptors,id=Object.getOwnPropertyNames,Os=Object.getOwnPropertySymbols,sd=Object.getPrototypeOf,Fs=Object.prototype.hasOwnProperty,ad=Object.prototype.propertyIsEnumerable;var Ps=(e,t,n)=>t in e?Xr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ue=(e,t)=>{for(var n in t||={})Fs.call(t,n)&&Ps(e,n,t[n]);if(Os)for(var n of Os(t))ad.call(t,n)&&Ps(e,n,t[n]);return e},Ce=(e,t)=>nd(e,od(t));var cd=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var ud=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of id(t))!Fs.call(e,o)&&o!==n&&Xr(e,o,{get:()=>t[o],enumerable:!(r=rd(t,o))||r.enumerable});return e};var ld=(e,t,n)=>(n=e!=null?td(sd(e)):{},ud(t||!e||!e.__esModule?Xr(n,"default",{value:e,enumerable:!0}):n,e));var Rl=cd((Al,Hr)=>{"use strict";(function(e){"use strict";var t={};t.VERSION="1.6.1";var n,r={},o=function(u,l){return function(){return l.apply(u,arguments)}},i=function(){var u=arguments,l=u[0],p,g;for(g=1;g<u.length;g++)for(p in u[g])!(p in l)&&u[g].hasOwnProperty(p)&&(l[p]=u[g][p]);return l},s=function(u,l){return{value:u,name:l}};t.TRACE=s(1,"TRACE"),t.DEBUG=s(2,"DEBUG"),t.INFO=s(3,"INFO"),t.TIME=s(4,"TIME"),t.WARN=s(5,"WARN"),t.ERROR=s(8,"ERROR"),t.OFF=s(99,"OFF");var a=function(u){this.context=u,this.setLevel(u.filterLevel),this.log=this.info};a.prototype={setLevel:function(u){u&&"value"in u&&(this.context.filterLevel=u)},getLevel:function(){return this.context.filterLevel},enabledFor:function(u){var l=this.context.filterLevel;return u.value>=l.value},trace:function(){this.invoke(t.TRACE,arguments)},debug:function(){this.invoke(t.DEBUG,arguments)},info:function(){this.invoke(t.INFO,arguments)},warn:function(){this.invoke(t.WARN,arguments)},error:function(){this.invoke(t.ERROR,arguments)},time:function(u){typeof u=="string"&&u.length>0&&this.invoke(t.TIME,[u,"start"])},timeEnd:function(u){typeof u=="string"&&u.length>0&&this.invoke(t.TIME,[u,"end"])},invoke:function(u,l){n&&this.enabledFor(u)&&n(l,i({level:u},this.context))}};var c=new a({filterLevel:t.OFF});(function(){var u=t;u.enabledFor=o(c,c.enabledFor),u.trace=o(c,c.trace),u.debug=o(c,c.debug),u.time=o(c,c.time),u.timeEnd=o(c,c.timeEnd),u.info=o(c,c.info),u.warn=o(c,c.warn),u.error=o(c,c.error),u.log=u.info})(),t.setHandler=function(u){n=u},t.setLevel=function(u){c.setLevel(u);for(var l in r)r.hasOwnProperty(l)&&r[l].setLevel(u)},t.getLevel=function(){return c.getLevel()},t.get=function(u){return r[u]||(r[u]=new a(i({name:u},c.context)))},t.createDefaultHandler=function(u){u=u||{},u.formatter=u.formatter||function(f,m){m.name&&f.unshift("["+m.name+"]")};var l={},p=function(g,f){Function.prototype.apply.call(g,console,f)};return typeof console>"u"?function(){}:function(g,f){g=Array.prototype.slice.call(g);var m=console.log,y;f.level===t.TIME?(y=(f.name?"["+f.name+"] ":"")+g[0],g[1]==="start"?console.time?console.time(y):l[y]=new Date().getTime():console.timeEnd?console.timeEnd(y):p(m,[y+": "+(new Date().getTime()-l[y])+"ms"])):(f.level===t.WARN&&console.warn?m=console.warn:f.level===t.ERROR&&console.error?m=console.error:f.level===t.INFO&&console.info?m=console.info:f.level===t.DEBUG&&console.debug?m=console.debug:f.level===t.TRACE&&console.trace&&(m=console.trace),u.formatter(g,f),p(m,g))}},t.useDefaults=function(u){t.setLevel(u&&u.defaultLevel||t.DEBUG),t.setHandler(t.createDefaultHandler(u))},t.setDefaults=t.useDefaults,typeof define=="function"&&define.amd?define(t):typeof Hr<"u"&&Hr.exports?Hr.exports=t:(t._prevLogger=e.Logger,t.noConflict=function(){return e.Logger=t._prevLogger,t},e.Logger=t)})(Al)});function dd(e,t){return Object.is(e,t)}var Z=null,Dn=!1,eo=1,Pe=Symbol("SIGNAL");function R(e){let t=Z;return Z=e,t}function Ls(){return Z}var En={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Vs(e){if(Dn)throw new Error("");if(Z===null)return;Z.consumerOnSignalRead(e);let t=Z.nextProducerIndex++;if(wn(Z),t<Z.producerNode.length&&Z.producerNode[t]!==e&&Ht(Z)){let n=Z.producerNode[t];In(n,Z.producerIndexOfThis[t])}Z.producerNode[t]!==e&&(Z.producerNode[t]=e,Z.producerIndexOfThis[t]=Ht(Z)?Us(e,Z,t):0),Z.producerLastReadVersion[t]=e.version}function fd(){eo++}function pd(e){if(!(Ht(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===eo)){if(!e.producerMustRecompute(e)&&!no(e)){ks(e);return}e.producerRecomputeValue(e),ks(e)}}function js(e){if(e.liveConsumerNode===void 0)return;let t=Dn;Dn=!0;try{for(let n of e.liveConsumerNode)n.dirty||hd(n)}finally{Dn=t}}function Bs(){return Z?.consumerAllowSignalWrites!==!1}function hd(e){e.dirty=!0,js(e),e.consumerMarkedDirty?.(e)}function ks(e){e.dirty=!1,e.lastCleanEpoch=eo}function to(e){return e&&(e.nextProducerIndex=0),R(e)}function Hs(e,t){if(R(t),!(!e||e.producerNode===void 0||e.producerIndexOfThis===void 0||e.producerLastReadVersion===void 0)){if(Ht(e))for(let n=e.nextProducerIndex;n<e.producerNode.length;n++)In(e.producerNode[n],e.producerIndexOfThis[n]);for(;e.producerNode.length>e.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function no(e){wn(e);for(let t=0;t<e.producerNode.length;t++){let n=e.producerNode[t],r=e.producerLastReadVersion[t];if(r!==n.version||(pd(n),r!==n.version))return!0}return!1}function ro(e){if(wn(e),Ht(e))for(let t=0;t<e.producerNode.length;t++)In(e.producerNode[t],e.producerIndexOfThis[t]);e.producerNode.length=e.producerLastReadVersion.length=e.producerIndexOfThis.length=0,e.liveConsumerNode&&(e.liveConsumerNode.length=e.liveConsumerIndexOfThis.length=0)}function Us(e,t,n){if($s(e),e.liveConsumerNode.length===0&&Gs(e))for(let r=0;r<e.producerNode.length;r++)e.producerIndexOfThis[r]=Us(e.producerNode[r],e,r);return e.liveConsumerIndexOfThis.push(n),e.liveConsumerNode.push(t)-1}function In(e,t){if($s(e),e.liveConsumerNode.length===1&&Gs(e))for(let r=0;r<e.producerNode.length;r++)In(e.producerNode[r],e.producerIndexOfThis[r]);let n=e.liveConsumerNode.length-1;if(e.liveConsumerNode[t]=e.liveConsumerNode[n],e.liveConsumerIndexOfThis[t]=e.liveConsumerIndexOfThis[n],e.liveConsumerNode.length--,e.liveConsumerIndexOfThis.length--,t<e.liveConsumerNode.length){let r=e.liveConsumerIndexOfThis[t],o=e.liveConsumerNode[t];wn(o),o.producerIndexOfThis[r]=t}}function Ht(e){return e.consumerIsAlwaysLive||(e?.liveConsumerNode?.length??0)>0}function wn(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function $s(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function Gs(e){return e.producerNode!==void 0}function gd(){throw new Error}var zs=gd;function Ws(e){zs(e)}function qs(e){zs=e}var md=null;function Zs(e){let t=Object.create(Qs);t.value=e;let n=()=>(Vs(t),t.value);return n[Pe]=t,n}function oo(e,t){Bs()||Ws(e),e.equal(e.value,t)||(e.value=t,yd(e))}function Ys(e,t){Bs()||Ws(e),oo(e,t(e.value))}var Qs=Ce(ue({},En),{equal:dd,value:void 0,kind:"signal"});function yd(e){e.version++,fd(),js(e),md?.()}function O(e){return typeof e=="function"}function Cn(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var _n=Cn(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:
2
- ${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(`
3
- `)}`:"",this.name="UnsubscriptionError",this.errors=n});function Ut(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var X=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(O(r))try{r()}catch(i){t=i instanceof _n?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{Ks(i)}catch(s){t=t??[],s instanceof _n?t=[...t,...s.errors]:t.push(s)}}if(t)throw new _n(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Ks(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&Ut(n,t)}remove(t){let{_finalizers:n}=this;n&&Ut(n,t),t instanceof e&&t._removeParent(this)}};X.EMPTY=(()=>{let e=new X;return e.closed=!0,e})();var io=X.EMPTY;function bn(e){return e instanceof X||e&&"closed"in e&&O(e.remove)&&O(e.add)&&O(e.unsubscribe)}function Ks(e){O(e)?e():e.unsubscribe()}var ye={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var mt={setTimeout(e,t,...n){let{delegate:r}=mt;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=mt;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Mn(e){mt.setTimeout(()=>{let{onUnhandledError:t}=ye;if(t)t(e);else throw e})}function so(){}var Js=ao("C",void 0,void 0);function Xs(e){return ao("E",void 0,e)}function ea(e){return ao("N",e,void 0)}function ao(e,t,n){return{kind:e,value:t,error:n}}var Xe=null;function yt(e){if(ye.useDeprecatedSynchronousErrorHandling){let t=!Xe;if(t&&(Xe={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=Xe;if(Xe=null,n)throw r}}else e()}function ta(e){ye.useDeprecatedSynchronousErrorHandling&&Xe&&(Xe.errorThrown=!0,Xe.error=e)}var et=class extends X{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,bn(t)&&t.add(this)):this.destination=Ed}static create(t,n,r){return new vt(t,n,r)}next(t){this.isStopped?uo(ea(t),this):this._next(t)}error(t){this.isStopped?uo(Xs(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?uo(Js,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},vd=Function.prototype.bind;function co(e,t){return vd.call(e,t)}var lo=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Tn(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Tn(r)}else Tn(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Tn(n)}}},vt=class extends et{constructor(t,n,r){super();let o;if(O(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&ye.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&co(t.next,i),error:t.error&&co(t.error,i),complete:t.complete&&co(t.complete,i)}):o=t}this.destination=new lo(o)}};function Tn(e){ye.useDeprecatedSynchronousErrorHandling?ta(e):Mn(e)}function Dd(e){throw e}function uo(e,t){let{onStoppedNotification:n}=ye;n&&mt.setTimeout(()=>n(e,t))}var Ed={closed:!0,next:so,error:Dd,complete:so};var Dt=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Sn(e){return e}function na(e){return e.length===0?Sn:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var z=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=wd(n)?n:new vt(n,r,o);return yt(()=>{let{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=ra(r),new r((o,i)=>{let s=new vt({next:a=>{try{n(a)}catch(c){i(c),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[Dt](){return this}pipe(...n){return na(n)(this)}toPromise(n){return n=ra(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function ra(e){var t;return(t=e??ye.Promise)!==null&&t!==void 0?t:Promise}function Id(e){return e&&O(e.next)&&O(e.error)&&O(e.complete)}function wd(e){return e&&e instanceof et||Id(e)&&bn(e)}function Cd(e){return O(e?.lift)}function _e(e){return t=>{if(Cd(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function be(e,t,n,r,o){return new fo(e,t,n,r,o)}var fo=class extends et{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(c){t.error(c)}}:super._next,this._error=o?function(a){try{o(a)}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};var oa=Cn(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var Fe=(()=>{class e extends z{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new Nn(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new oa}next(n){yt(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){yt(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){yt(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:o,observers:i}=this;return r||o?io:(this.currentObservers=null,i.push(n),new X(()=>{this.currentObservers=null,Ut(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new z;return n.source=this,n}}return e.create=(t,n)=>new Nn(t,n),e})(),Nn=class extends Fe{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:io}};var $t=class extends Fe{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};var po={now(){return(po.delegate||Date).now()},delegate:void 0};var Gt=class extends Fe{constructor(t=1/0,n=1/0,r=po){super(),this._bufferSize=t,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,n)}next(t){let{isStopped:n,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;n||(r.push(t),!o&&r.push(i.now()+s)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();let n=this._innerSubscribe(t),{_infiniteTimeWindow:r,_buffer:o}=this,i=o.slice();for(let s=0;s<i.length&&!t.closed;s+=r?1:2)t.next(i[s]);return this._checkFinalizedStatuses(t),n}_trimBuffer(){let{_bufferSize:t,_timestampProvider:n,_buffer:r,_infiniteTimeWindow:o}=this,i=(o?1:2)*t;if(t<1/0&&i<r.length&&r.splice(0,r.length-i),!o){let s=n.now(),a=0;for(let c=1;c<r.length&&r[c]<=s;c+=2)a=c;a&&r.splice(0,a+1)}}};var ia=new z(e=>e.complete());function sa(e){return e&&O(e.schedule)}function aa(e){return e[e.length-1]}function ca(e){return sa(aa(e))?e.pop():void 0}function ua(e,t){return typeof aa(e)=="number"?e.pop():t}function da(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(l){try{u(r.next(l))}catch(p){s(p)}}function c(l){try{u(r.throw(l))}catch(p){s(p)}}function u(l){l.done?i(l.value):o(l.value).then(a,c)}u((r=r.apply(e,t||[])).next())})}function la(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function tt(e){return this instanceof tt?(this.v=e,this):new tt(e)}function fa(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(f){return function(m){return Promise.resolve(m).then(f,p)}}function a(f,m){r[f]&&(o[f]=function(y){return new Promise(function(w,x){i.push([f,y,w,x])>1||c(f,y)})},m&&(o[f]=m(o[f])))}function c(f,m){try{u(r[f](m))}catch(y){g(i[0][3],y)}}function u(f){f.value instanceof tt?Promise.resolve(f.value.v).then(l,p):g(i[0][2],f)}function l(f){c("next",f)}function p(f){c("throw",f)}function g(f,m){f(m),i.shift(),i.length&&c(i[0][0],i[0][1])}}function pa(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof la=="function"?la(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,c){s=e[i](s),o(a,c,s.done,s.value)})}}function o(i,s,a,c){Promise.resolve(c).then(function(u){i({value:u,done:a})},s)}}var xn=e=>e&&typeof e.length=="number"&&typeof e!="function";function An(e){return O(e?.then)}function Rn(e){return O(e[Dt])}function On(e){return Symbol.asyncIterator&&O(e?.[Symbol.asyncIterator])}function Pn(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function _d(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Fn=_d();function kn(e){return O(e?.[Fn])}function Ln(e){return fa(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield tt(n.read());if(o)return yield tt(void 0);yield yield tt(r)}}finally{n.releaseLock()}})}function Vn(e){return O(e?.getReader)}function ne(e){if(e instanceof z)return e;if(e!=null){if(Rn(e))return bd(e);if(xn(e))return Md(e);if(An(e))return Td(e);if(On(e))return ha(e);if(kn(e))return Sd(e);if(Vn(e))return Nd(e)}throw Pn(e)}function bd(e){return new z(t=>{let n=e[Dt]();if(O(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Md(e){return new z(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function Td(e){return new z(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Mn)})}function Sd(e){return new z(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function ha(e){return new z(t=>{xd(e,t).catch(n=>t.error(n))})}function Nd(e){return ha(Ln(e))}function xd(e,t){var n,r,o,i;return da(this,void 0,void 0,function*(){try{for(n=pa(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})}function le(e,t,n,r=0,o=!1){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function jn(e,t=0){return _e((n,r)=>{n.subscribe(be(r,o=>le(r,e,()=>r.next(o),t),()=>le(r,e,()=>r.complete(),t),o=>le(r,e,()=>r.error(o),t)))})}function Bn(e,t=0){return _e((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function ga(e,t){return ne(e).pipe(Bn(t),jn(t))}function ma(e,t){return ne(e).pipe(Bn(t),jn(t))}function ya(e,t){return new z(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function va(e,t){return new z(n=>{let r;return le(n,t,()=>{r=e[Fn](),le(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){n.error(s);return}i?n.complete():n.next(o)},0,!0)}),()=>O(r?.return)&&r.return()})}function Hn(e,t){if(!e)throw new Error("Iterable cannot be null");return new z(n=>{le(n,t,()=>{let r=e[Symbol.asyncIterator]();le(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function Da(e,t){return Hn(Ln(e),t)}function Ea(e,t){if(e!=null){if(Rn(e))return ga(e,t);if(xn(e))return ya(e,t);if(An(e))return ma(e,t);if(On(e))return Hn(e,t);if(kn(e))return va(e,t);if(Vn(e))return Da(e,t)}throw Pn(e)}function Ia(e,t){return t?Ea(e,t):ne(e)}function zt(e,t){return _e((n,r)=>{let o=0;n.subscribe(be(r,i=>{r.next(e.call(t,i,o++))}))})}function wa(e,t,n,r,o,i,s,a){let c=[],u=0,l=0,p=!1,g=()=>{p&&!c.length&&!u&&t.complete()},f=y=>u<r?m(y):c.push(y),m=y=>{i&&t.next(y),u++;let w=!1;ne(n(y,l++)).subscribe(be(t,x=>{o?.(x),i?f(x):t.next(x)},()=>{w=!0},void 0,()=>{if(w)try{for(u--;c.length&&u<r;){let x=c.shift();s?le(t,s,()=>m(x)):m(x)}g()}catch(x){t.error(x)}}))};return e.subscribe(be(t,f,()=>{p=!0,g()})),()=>{a?.()}}function ho(e,t,n=1/0){return O(t)?ho((r,o)=>zt((i,s)=>t(r,i,o,s))(ne(e(r,o))),n):(typeof t=="number"&&(n=t),_e((r,o)=>wa(r,o,e,n)))}function Ca(e=1/0){return ho(Sn,e)}function go(...e){let t=ca(e),n=ua(e,1/0),r=e;return r.length?r.length===1?ne(r[0]):Ca(n)(Ia(r,t)):ia}function mo(e,t){return _e((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(be(r,c=>{o?.unsubscribe();let u=0,l=i++;ne(e(c,l)).subscribe(o=be(r,p=>r.next(t?t(c,p,l,u++):p),()=>{o=null,a()}))},()=>{s=!0,a()}))})}var ic="https://g.co/ng/security#xss",P=class extends Error{code;constructor(t,n){super(mi(t,n)),this.code=t}};function mi(e,t){return`${`NG0${Math.abs(e)}`}${t?": "+t:""}`}function Ad(e){return{toString:e}.toString()}function B(e){for(let t in e)if(e[t]===B)return t;throw Error("Could not find renamed property on target object.")}function de(e){if(typeof e=="string")return e;if(Array.isArray(e))return`[${e.map(de).join(", ")}]`;if(e==null)return""+e;let t=e.overriddenName||e.name;if(t)return`${t}`;let n=e.toString();if(n==null)return""+n;let r=n.indexOf(`
4
- `);return r>=0?n.slice(0,r):n}function _a(e,t){return e?t?`${e} ${t}`:e:t||""}var Rd=B({__forward_ref__:B});function sc(e){return e.__forward_ref__=sc,e.toString=function(){return de(this())},e}function De(e){return Od(e)?e():e}function Od(e){return typeof e=="function"&&e.hasOwnProperty(Rd)&&e.__forward_ref__===sc}function q(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function yi(e){return ba(e,ac)||ba(e,cc)}function ba(e,t){return e.hasOwnProperty(t)?e[t]:null}function Pd(e){let t=e&&(e[ac]||e[cc]);return t||null}function Ma(e){return e&&(e.hasOwnProperty(Ta)||e.hasOwnProperty(Fd))?e[Ta]:null}var ac=B({\u0275prov:B}),Ta=B({\u0275inj:B}),cc=B({ngInjectableDef:B}),Fd=B({ngInjectorDef:B}),k=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,n){this._desc=t,this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=q({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function uc(e){return e&&!!e.\u0275providers}var kd=B({\u0275cmp:B}),Ld=B({\u0275dir:B}),Vd=B({\u0275pipe:B});var Sa=B({\u0275fac:B}),Yt=B({__NG_ELEMENT_ID__:B}),Na=B({__NG_ENV_ID__:B});function vi(e){return typeof e=="string"?e:e==null?"":String(e)}function jd(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():vi(e)}function Bd(e,t){throw new P(-200,e)}function Di(e,t){throw new P(-201,!1)}var T=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(T||{}),So;function lc(){return So}function re(e){let t=So;return So=e,t}function dc(e,t,n){let r=yi(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&T.Optional)return null;if(t!==void 0)return t;Di(e,"Injector")}var Hd={},Qt=Hd,Ud="__NG_DI_FLAG__",Zn="ngTempTokenPath",$d="ngTokenPath",Gd=/\n/gm,zd="\u0275",xa="__source",Ct;function Wd(){return Ct}function je(e){let t=Ct;return Ct=e,t}function qd(e,t=T.Default){if(Ct===void 0)throw new P(-203,!1);return Ct===null?dc(e,void 0,t):Ct.get(e,t&T.Optional?null:void 0,t)}function L(e,t=T.Default){return(lc()||qd)(De(e),t)}function F(e,t=T.Default){return L(e,fr(t))}function fr(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function No(e){let t=[];for(let n=0;n<e.length;n++){let r=De(e[n]);if(Array.isArray(r)){if(r.length===0)throw new P(900,!1);let o,i=T.Default;for(let s=0;s<r.length;s++){let a=r[s],c=Zd(a);typeof c=="number"?c===-1?o=a.token:i|=c:o=a}t.push(L(o,i))}else t.push(L(r))}return t}function Zd(e){return e[Ud]}function Yd(e,t,n,r){let o=e[Zn];throw t[xa]&&o.unshift(t[xa]),e.message=Qd(`
5
- `+e.message,o,n,r),e[$d]=o,e[Zn]=null,e}function Qd(e,t,n,r=null){e=e&&e.charAt(0)===`
6
- `&&e.charAt(1)==zd?e.slice(2):e;let o=de(t);if(Array.isArray(t))o=t.map(de).join(" -> ");else if(typeof t=="object"){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+(typeof a=="string"?JSON.stringify(a):de(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(Gd,`
7
- `)}`}function bt(e,t){let n=e.hasOwnProperty(Sa);return n?e[Sa]:null}function Ei(e,t){e.forEach(n=>Array.isArray(n)?Ei(n,t):t(n))}function Kd(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function fc(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Jd(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(o===1)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;){let i=o-2;e[o]=e[i],o--}e[t]=n,e[t+1]=r}}function Xd(e,t,n){let r=sn(e,t);return r>=0?e[r|1]=n:(r=~r,Jd(e,r,t,n)),r}function yo(e,t){let n=sn(e,t);if(n>=0)return e[n|1]}function sn(e,t){return ef(e,t,1)}function ef(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<<n];if(t===s)return i<<n;s>t?o=i:r=i+1}return~(o<<n)}var Mt={},rt=[],Kt=new k(""),pc=new k("",-1),hc=new k(""),Yn=class{get(t,n=Qt){if(n===Qt){let r=new Error(`NullInjectorError: No provider for ${de(t)}!`);throw r.name="NullInjectorError",r}return n}};function pr(e){return e[kd]||null}function gc(e){return e[Ld]||null}function mc(e){return e[Vd]||null}function tf(e){let t=pr(e)||gc(e)||mc(e);return t!==null&&t.standalone}function yc(e){return{\u0275providers:e}}function nf(...e){return{\u0275providers:vc(!0,e),\u0275fromNgModule:!0}}function vc(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return Ei(t,s=>{let a=s;xo(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&Dc(o,i),n}function Dc(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];Ii(o,i=>{t(i,r)})}}function xo(e,t,n,r){if(e=De(e),!e)return!1;let o=null,i=Ma(e),s=!i&&pr(e);if(!i&&!s){let c=e.ngModule;if(i=Ma(c),i)o=c;else return!1}else{if(s&&!s.standalone)return!1;o=e}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let u of c)xo(u,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let u;try{Ei(i.imports,l=>{xo(l,t,n,r)&&(u||=[],u.push(l))})}finally{}u!==void 0&&Dc(u,t)}if(!a){let u=bt(o)||(()=>new o);t({provide:o,useFactory:u,deps:rt},o),t({provide:hc,useValue:o,multi:!0},o),t({provide:Kt,useValue:()=>L(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let u=e;Ii(c,l=>{t(l,u)})}}else return!1;return o!==e&&e.providers!==void 0}function Ii(e,t){for(let n of e)uc(n)&&(n=n.\u0275providers),Array.isArray(n)?Ii(n,t):t(n)}var rf=B({provide:String,useValue:B});function Ec(e){return e!==null&&typeof e=="object"&&rf in e}function of(e){return!!(e&&e.useExisting)}function sf(e){return!!(e&&e.useFactory)}function Ao(e){return typeof e=="function"}var hr=new k(""),$n={},af={},vo;function wi(){return vo===void 0&&(vo=new Yn),vo}var ot=class{},Jt=class extends ot{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,Oo(t,s=>this.processProvider(s)),this.records.set(pc,Et(void 0,this)),o.has("environment")&&this.records.set(ot,Et(void 0,this));let i=this.records.get(hr);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(hc,rt,T.Self))}destroy(){qt(this),this._destroyed=!0;let t=R(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),R(t)}}onDestroy(t){return qt(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){qt(this);let n=je(this),r=re(void 0),o;try{return t()}finally{je(n),re(r)}}get(t,n=Qt,r=T.Default){if(qt(this),t.hasOwnProperty(Na))return t[Na](this);r=fr(r);let o,i=je(this),s=re(void 0);try{if(!(r&T.SkipSelf)){let c=this.records.get(t);if(c===void 0){let u=pf(t)&&yi(t);u&&this.injectableDefInScope(u)?c=Et(Ro(t),$n):c=null,this.records.set(t,c)}if(c!=null)return this.hydrate(t,c)}let a=r&T.Self?wi():this.parent;return n=r&T.Optional&&n===Qt?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[Zn]=a[Zn]||[]).unshift(de(t)),i)throw a;return Yd(a,t,"R3InjectorError",this.source)}else throw a}finally{re(s),je(i)}}resolveInjectorInitializers(){let t=R(null),n=je(this),r=re(void 0),o;try{let i=this.get(Kt,rt,T.Self);for(let s of i)s()}finally{je(n),re(r),R(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(de(r));return`R3Injector[${t.join(", ")}]`}processProvider(t){t=De(t);let n=Ao(t)?t:De(t&&t.provide),r=uf(t);if(!Ao(t)&&t.multi===!0){let o=this.records.get(n);o||(o=Et(void 0,$n,!0),o.factory=()=>No(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){let r=R(null);try{return n.value===$n&&(n.value=af,n.value=n.factory()),typeof n.value=="object"&&n.value&&ff(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{R(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=De(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function Ro(e){let t=yi(e),n=t!==null?t.factory:bt(e);if(n!==null)return n;if(e instanceof k)throw new P(204,!1);if(e instanceof Function)return cf(e);throw new P(204,!1)}function cf(e){if(e.length>0)throw new P(204,!1);let n=Pd(e);return n!==null?()=>n.factory(e):()=>new e}function uf(e){if(Ec(e))return Et(void 0,e.useValue);{let t=lf(e);return Et(t,$n)}}function lf(e,t,n){let r;if(Ao(e)){let o=De(e);return bt(o)||Ro(o)}else if(Ec(e))r=()=>De(e.useValue);else if(sf(e))r=()=>e.useFactory(...No(e.deps||[]));else if(of(e))r=()=>L(De(e.useExisting));else{let o=De(e&&(e.useClass||e.provide));if(df(e))r=()=>new o(...No(e.deps));else return bt(o)||Ro(o)}return r}function qt(e){if(e.destroyed)throw new P(205,!1)}function Et(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function df(e){return!!e.deps}function ff(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function pf(e){return typeof e=="function"||typeof e=="object"&&e instanceof k}function Oo(e,t){for(let n of e)Array.isArray(n)?Oo(n,t):n&&uc(n)?Oo(n.\u0275providers,t):t(n)}function Ic(e,t){e instanceof Jt&&qt(e);let n,r=je(e),o=re(void 0);try{return t()}finally{je(r),re(o)}}function hf(){return lc()!==void 0||Wd()!=null}var Ve=0,N=1,I=2,fe=3,Ee=4,xe=5,Xt=6,Aa=7,K=8,en=9,ke=10,ae=11,tn=12,Ra=13,Ot=14,Te=15,Tt=16,It=17,St=18,gr=19,wc=20,He=21,Do=22,Qn=23,se=24,Eo=25,J=26,Cc=1;var nn=7,gf=8,Kn=9,oe=10;function nt(e){return Array.isArray(e)&&typeof e[Cc]=="object"}function ut(e){return Array.isArray(e)&&e[Cc]===!0}function _c(e){return(e.flags&4)!==0}function mr(e){return e.componentOffset>-1}function bc(e){return(e.flags&1)===1}function lt(e){return!!e.template}function Jn(e){return(e[I]&512)!==0}function an(e){return(e[I]&256)===256}var Po=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function Mc(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}function mf(e){return e.type.prototype.ngOnChanges&&(e.setInput=vf),yf}function yf(){let e=Sc(this),t=e?.current;if(t){let n=e.previous;if(n===Mt)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function vf(e,t,n,r,o){let i=this.declaredInputs[r],s=Sc(e)||Df(e,{previous:Mt,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[i];a[i]=new Po(u&&u.currentValue,n,c===Mt),Mc(e,t,o,n)}var Tc="__ngSimpleChanges__";function Sc(e){return e[Tc]||null}function Df(e,t){return e[Tc]=t}var Oa=null;var H=function(e,t=null,n){Oa?.(e,t,n)},Ef="svg",If="math";function Ue(e){for(;Array.isArray(e);)e=e[Ve];return e}function Nc(e,t){return Ue(t[e])}function dt(e,t){return Ue(t[e.index])}function Ci(e,t){return e.data[t]}function _i(e,t){return e[t]}function it(e,t){let n=t[e];return nt(n)?n:n[Ve]}function bi(e){return(e[I]&128)===128}function Nt(e,t){return t==null?null:e[t]}function xc(e){e[It]=0}function Mi(e){e[I]&1024||(e[I]|=1024,bi(e)&&vr(e))}function wf(e,t){for(;e>0;)t=t[Ot],e--;return t}function yr(e){return!!(e[I]&9216||e[se]?.dirty)}function Fo(e){e[ke].changeDetectionScheduler?.notify(8),e[I]&64&&(e[I]|=1024),yr(e)&&vr(e)}function vr(e){e[ke].changeDetectionScheduler?.notify(0);let t=st(e);for(;t!==null&&!(t[I]&8192||(t[I]|=8192,!bi(t)));)t=st(t)}function Ac(e,t){if(an(e))throw new P(911,!1);e[He]===null&&(e[He]=[]),e[He].push(t)}function Cf(e,t){if(e[He]===null)return;let n=e[He].indexOf(t);n!==-1&&e[He].splice(n,1)}function st(e){let t=e[fe];return ut(t)?t[fe]:t}var S={lFrame:Bc(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var ko=!1;function _f(){return S.lFrame.elementDepthCount}function bf(){S.lFrame.elementDepthCount++}function Mf(){S.lFrame.elementDepthCount--}function Rc(){return S.bindingsEnabled}function Tf(){return S.skipHydrationRootTNode!==null}function Sf(e){return S.skipHydrationRootTNode===e}function Nf(){S.skipHydrationRootTNode=null}function U(){return S.lFrame.lView}function Ie(){return S.lFrame.tView}function cn(){let e=Oc();for(;e!==null&&e.type===64;)e=e.parent;return e}function Oc(){return S.lFrame.currentTNode}function xf(){let e=S.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Pt(e,t){let n=S.lFrame;n.currentTNode=e,n.isParent=t}function Pc(){return S.lFrame.isParent}function Af(){S.lFrame.isParent=!1}function Rf(){return S.lFrame.contextLView}function Fc(){return ko}function Pa(e){let t=ko;return ko=e,t}function kc(){let e=S.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Of(e){return S.lFrame.bindingIndex=e}function Dr(){return S.lFrame.bindingIndex++}function Pf(e){let t=S.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Ff(){return S.lFrame.inI18n}function kf(e,t){let n=S.lFrame;n.bindingIndex=n.bindingRootIndex=e,Lo(t)}function Lf(){return S.lFrame.currentDirectiveIndex}function Lo(e){S.lFrame.currentDirectiveIndex=e}function Vf(e){let t=S.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function Lc(e){S.lFrame.currentQueryIndex=e}function jf(e){let t=e[N];return t.type===2?t.declTNode:t.type===1?e[xe]:null}function Vc(e,t,n){if(n&T.SkipSelf){let o=t,i=e;for(;o=o.parent,o===null&&!(n&T.Host);)if(o=jf(i),o===null||(i=i[Ot],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=S.lFrame=jc();return r.currentTNode=t,r.lView=e,!0}function Ti(e){let t=jc(),n=e[N];S.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function jc(){let e=S.lFrame,t=e===null?null:e.child;return t===null?Bc(e):t}function Bc(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function Hc(){let e=S.lFrame;return S.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Uc=Hc;function Si(){let e=Hc();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Bf(e){return(S.lFrame.contextLView=wf(e,S.lFrame.contextLView))[K]}function Ze(){return S.lFrame.selectedIndex}function at(e){S.lFrame.selectedIndex=e}function Hf(){let e=S.lFrame;return Ci(e.tView,e.selectedIndex)}function Uf(){return S.lFrame.currentNamespace}var $c=!0;function Ni(){return $c}function xi(e){$c=e}function $f(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=mf(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}function Gc(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){let i=e.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:c,ngAfterViewChecked:u,ngOnDestroy:l}=i;s&&(e.contentHooks??=[]).push(-n,s),a&&((e.contentHooks??=[]).push(n,a),(e.contentCheckHooks??=[]).push(n,a)),c&&(e.viewHooks??=[]).push(-n,c),u&&((e.viewHooks??=[]).push(n,u),(e.viewCheckHooks??=[]).push(n,u)),l!=null&&(e.destroyHooks??=[]).push(n,l)}}function Gn(e,t,n){zc(e,t,3,n)}function zn(e,t,n,r){(e[I]&3)===n&&zc(e,t,n,r)}function Io(e,t){let n=e[I];(n&3)===t&&(n&=16383,n+=1,e[I]=n)}function zc(e,t,n,r){let o=r!==void 0?e[It]&65535:0,i=r??-1,s=t.length-1,a=0;for(let c=o;c<s;c++)if(typeof t[c+1]=="number"){if(a=t[c],r!=null&&a>=r)break}else t[c]<0&&(e[It]+=65536),(a<i||i==-1)&&(Gf(e,n,t,c),e[It]=(e[It]&4294901760)+c+2),c++}function Fa(e,t){H(4,e,t);let n=R(null);try{t.call(e)}finally{R(n),H(5,e,t)}}function Gf(e,t,n,r){let o=n[r]<0,i=n[r+1],s=o?-n[r]:n[r],a=e[s];o?e[I]>>14<e[It]>>16&&(e[I]&3)===t&&(e[I]+=16384,Fa(a,i)):Fa(a,i)}var _t=-1,rn=class{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,r){this.factory=t,this.canSeeViewProviders=n,this.injectImpl=r}};function zf(e){return e instanceof rn}function Wf(e){return(e.flags&8)!==0}function qf(e){return(e.flags&16)!==0}function Zf(e,t,n){let r=0;for(;r<n.length;){let o=n[r];if(typeof o=="number"){if(o!==0)break;r++;let i=n[r++],s=n[r++],a=n[r++];e.setAttribute(t,s,a,i)}else{let i=o,s=n[++r];Qf(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++}}return r}function Yf(e){return e===3||e===4||e===6}function Qf(e){return e.charCodeAt(0)===64}function Ai(e,t){if(!(t===null||t.length===0))if(e===null||e.length===0)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){let o=t[r];typeof o=="number"?n=o:n===0||(n===-1||n===2?ka(e,n,o,null,t[++r]):ka(e,n,o,null,null))}}return e}function ka(e,t,n,r,o){let i=0,s=e.length;if(t===-1)s=-1;else for(;i<e.length;){let a=e[i++];if(typeof a=="number"){if(a===t){s=-1;break}else if(a>t){s=i-1;break}}}for(;i<e.length;){let a=e[i];if(typeof a=="number")break;if(a===n){if(r===null){o!==null&&(e[i+1]=o);return}else if(r===e[i+1]){e[i+2]=o;return}}i++,r!==null&&i++,o!==null&&i++}s!==-1&&(e.splice(s,0,t),i=s+1),e.splice(i++,0,n),r!==null&&e.splice(i++,0,r),o!==null&&e.splice(i++,0,o)}var wo={},Vo=class{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=fr(r);let o=this.injector.get(t,wo,r);return o!==wo||n===wo?o:this.parentInjector.get(t,n,r)}};function Kf(e){return e!==_t}function jo(e){return e&32767}function Jf(e){return e>>16}function Bo(e,t){let n=Jf(e),r=t;for(;n>0;)r=r[Ot],n--;return r}var Ho=!0;function Xn(e){let t=Ho;return Ho=e,t}var Xf=256,Wc=Xf-1,qc=5,ep=0,Me={};function tp(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(Yt)&&(r=n[Yt]),r==null&&(r=n[Yt]=ep++);let o=r&Wc,i=1<<o;t.data[e+(o>>qc)]|=i}function Zc(e,t){let n=Yc(e,t);if(n!==-1)return n;let r=t[N];r.firstCreatePass&&(e.injectorIndex=t.length,Co(r.data,e),Co(t,null),Co(r.blueprint,null));let o=Qc(e,t),i=e.injectorIndex;if(Kf(o)){let s=jo(o),a=Bo(o,t),c=a[N].data;for(let u=0;u<8;u++)t[i+u]=a[s+u]|c[s+u]}return t[i+8]=o,i}function Co(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Yc(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function Qc(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;o!==null;){if(r=tu(o),r===null)return _t;if(n++,o=o[Ot],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return _t}function np(e,t,n){tp(e,t,n)}function Kc(e,t,n){if(n&T.Optional||e!==void 0)return e;Di(t,"NodeInjector")}function Jc(e,t,n,r){if(n&T.Optional&&r===void 0&&(r=null),(n&(T.Self|T.Host))===0){let o=e[en],i=re(void 0);try{return o?o.get(t,r,n&T.Optional):dc(t,r,n&T.Optional)}finally{re(i)}}return Kc(r,t,n)}function Xc(e,t,n,r=T.Default,o){if(e!==null){if(t[I]&2048&&!(r&T.Self)){let s=ap(e,t,n,r,Me);if(s!==Me)return s}let i=eu(e,t,n,r,Me);if(i!==Me)return i}return Jc(t,n,r,o)}function eu(e,t,n,r,o){let i=ip(n);if(typeof i=="function"){if(!Vc(t,e,r))return r&T.Host?Kc(o,n,r):Jc(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&T.Optional))Di(n);else return s}finally{Uc()}}else if(typeof i=="number"){let s=null,a=Yc(e,t),c=_t,u=r&T.Host?t[Te][xe]:null;for((a===-1||r&T.SkipSelf)&&(c=a===-1?Qc(e,t):t[a+8],c===_t||!Va(r,!1)?a=-1:(s=t[N],a=jo(c),t=Bo(c,t)));a!==-1;){let l=t[N];if(La(i,a,l.data)){let p=rp(a,t,n,s,r,u);if(p!==Me)return p}c=t[a+8],c!==_t&&Va(r,t[N].data[a+8]===u)&&La(i,a,t)?(s=l,a=jo(c),t=Bo(c,t)):a=-1}}return o}function rp(e,t,n,r,o,i){let s=t[N],a=s.data[e+8],c=r==null?mr(a)&&Ho:r!=s&&(a.type&3)!==0,u=o&T.Host&&i===a,l=op(a,s,n,c,u);return l!==null?Uo(t,s,l,a):Me}function op(e,t,n,r,o){let i=e.providerIndexes,s=t.data,a=i&1048575,c=e.directiveStart,u=e.directiveEnd,l=i>>20,p=r?a:a+l,g=o?a+l:u;for(let f=p;f<g;f++){let m=s[f];if(f<c&&n===m||f>=c&&m.type===n)return f}if(o){let f=s[c];if(f&&lt(f)&&f.type===n)return c}return null}function Uo(e,t,n,r){let o=e[n],i=t.data;if(zf(o)){let s=o;s.resolving&&Bd(jd(i[n]));let a=Xn(s.canSeeViewProviders);s.resolving=!0;let c,u=s.injectImpl?re(s.injectImpl):null,l=Vc(e,r,T.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&$f(n,i[n],t)}finally{u!==null&&re(u),Xn(a),s.resolving=!1,Uc()}}return o}function ip(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(Yt)?e[Yt]:void 0;return typeof t=="number"?t>=0?t&Wc:sp:t}function La(e,t,n){let r=1<<e;return!!(n[t+(e>>qc)]&r)}function Va(e,t){return!(e&T.Self)&&!(e&T.Host&&t)}var er=class{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return Xc(this._tNode,this._lView,t,fr(r),n)}};function sp(){return new er(cn(),U())}function ap(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[I]&2048&&!Jn(s);){let a=eu(i,s,n,r|T.Self,Me);if(a!==Me)return a;let c=i.parent;if(!c){let u=s[wc];if(u){let l=u.get(n,Me,r);if(l!==Me)return l}c=tu(s),s=s[Ot]}i=c}return o}function tu(e){let t=e[N],n=t.type;return n===2?t.declTNode:n===1?e[xe]:null}function ja(e,t=null,n=null,r){let o=cp(e,t,n,r);return o.resolveInjectorInitializers(),o}function cp(e,t=null,n=null,r,o=new Set){let i=[n||rt,nf(e)];return r=r||(typeof e=="object"?void 0:de(e)),new Jt(i,t||wi(),r||null,o)}var Se=class e{static THROW_IF_NOT_FOUND=Qt;static NULL=new Yn;static create(t,n){if(Array.isArray(t))return ja({name:""},n,t,"");{let r=t.name??"";return ja({name:r},t.parent,t.providers,r)}}static \u0275prov=q({token:e,providedIn:"any",factory:()=>L(pc)});static __NG_ELEMENT_ID__=-1};var up=new k("");up.__NG_ELEMENT_ID__=e=>{let t=cn();if(t===null)throw new P(204,!1);if(t.type&2)return t.value;if(e&T.Optional)return null;throw new P(204,!1)};var nu=!1,ru=(()=>{class e{static __NG_ELEMENT_ID__=lp;static __NG_ENV_ID__=n=>n}return e})(),$o=class extends ru{_lView;constructor(t){super(),this._lView=t}onDestroy(t){return Ac(this._lView,t),()=>Cf(this._lView,t)}};function lp(){return new $o(U())}var $e=class{},Er=new k("",{providedIn:"root",factory:()=>!1});var ou=new k(""),Ri=new k(""),Ir=(()=>{class e{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new $t(!1);add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static \u0275prov=q({token:e,providedIn:"root",factory:()=>new e})}return e})();var Go=class extends Fe{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,hf()&&(this.destroyRef=F(ru,{optional:!0})??void 0,this.pendingTasks=F(Ir,{optional:!0})??void 0)}emit(t){let n=R(null);try{super.next(t)}finally{R(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let c=t;o=c.next?.bind(c),i=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof X&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{t(n),r!==void 0&&this.pendingTasks?.remove(r)})}}},Be=Go;function tr(...e){}function iu(e){let t,n;function r(){e=tr;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function Ba(e){return queueMicrotask(()=>e()),()=>{e=tr}}var Oi="isAngularZone",nr=Oi+"_ID",dp=0,Y=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new Be(!1);onMicrotaskEmpty=new Be(!1);onStable=new Be(!1);onError=new Be(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=nu}=t;if(typeof Zone>"u")throw new P(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&r,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=!1,s.scheduleInRootZone=i,hp(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(Oi)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new P(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new P(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,fp,tr,tr);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},fp={};function Pi(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function pp(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){iu(()=>{e.callbackScheduled=!1,zo(e),e.isCheckStableRunning=!0,Pi(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),zo(e)}function hp(e){let t=()=>{pp(e)},n=dp++;e._inner=e._inner.fork({name:"angular",properties:{[Oi]:!0,[nr]:n,[nr+n]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(gp(c))return r.invokeTask(i,s,a,c);try{return Ha(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Ua(e)}},onInvoke:(r,o,i,s,a,c,u)=>{try{return Ha(e),r.invoke(i,s,a,c,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!mp(c)&&t(),Ua(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,zo(e),Pi(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,o,i,s)=>(r.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function zo(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function Ha(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Ua(e){e._nesting--,Pi(e)}var rr=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new Be;onMicrotaskEmpty=new Be;onStable=new Be;onError=new Be;run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}};function gp(e){return su(e,"__ignore_ng_zone__")}function mp(e){return su(e,"__scheduler_tick__")}function su(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var Ge=class{_console=console;handleError(t){this._console.error("ERROR",t)}},yp=new k("",{providedIn:"root",factory:()=>{let e=F(Y),t=F(Ge);return n=>e.runOutsideAngular(()=>t.handleError(n))}});function vp(){return au(cn(),U())}function au(e,t){return new wr(dt(e,t))}var wr=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=vp}return e})();function Fi(e,t){let n=Zs(e),r=n[Pe];return t?.equal&&(r.equal=t.equal),n.set=o=>oo(r,o),n.update=o=>Ys(r,o),n.asReadonly=Dp.bind(n),n}function Dp(){let e=this[Pe];if(e.readonlyFn===void 0){let t=()=>this();t[Pe]=e,e.readonlyFn=t}return e.readonlyFn}function cu(e){return(e.flags&128)===128}var uu=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(uu||{}),lu=new Map,Ep=0;function Ip(){return Ep++}function wp(e){lu.set(e[gr],e)}function Wo(e){lu.delete(e[gr])}var $a="__ngContext__";function un(e,t){nt(t)?(e[$a]=t[gr],wp(t)):e[$a]=t}function du(e){return pu(e[tn])}function fu(e){return pu(e[Ee])}function pu(e){for(;e!==null&&!ut(e);)e=e[Ee];return e}var qo;function hu(e){qo=e}function Cp(){if(qo!==void 0)return qo;if(typeof document<"u")return document;throw new P(210,!1)}var ki=new k("",{providedIn:"root",factory:()=>_p}),_p="ng",Li=new k(""),ln=new k("",{providedIn:"platform",factory:()=>"unknown"});var Vi=new k("",{providedIn:"root",factory:()=>Cp().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var bp="h",Mp="b";var gu=!1,Tp=new k("",{providedIn:"root",factory:()=>gu});var mu=function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e}(mu||{}),Cr=new k(""),Ga=new Set;function Ft(e){Ga.has(e)||(Ga.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var Sp=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=q({token:e,providedIn:"root",factory:()=>new e})}return e})();var Np=()=>null;function yu(e,t,n=!1){return Np(e,t,n)}function vu(e,t){let n=e.contentQueries;if(n!==null){let r=R(null);try{for(let o=0;o<n.length;o+=2){let i=n[o],s=n[o+1];if(s!==-1){let a=e.data[s];Lc(i),a.contentQueries(2,t[s],s)}}}finally{R(r)}}}function Zo(e,t,n){Lc(0);let r=R(null);try{t(e,n)}finally{R(r)}}function Du(e,t,n){if(_c(t)){let r=R(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;s<i;s++){let a=e.data[s];if(a.contentQueries){let c=n[s];a.contentQueries(1,c,s)}}}finally{R(r)}}}var Ne=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(Ne||{});var or=class{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${ic})`}};function _r(e){return e instanceof or?e.changingThisBreaksApplicationSecurity:e}function Eu(e,t){let n=xp(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${ic})`)}return n===t}function xp(e){return e instanceof or&&e.getTypeName()||null}var Ap=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Iu(e){return e=String(e),e.match(Ap)?e:"unsafe:"+e}var ji=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(ji||{});function wu(e){let t=Rp();return t?t.sanitize(ji.URL,e)||"":Eu(e,"URL")?_r(e):Iu(vi(e))}function Rp(){let e=U();return e&&e[ke].sanitizer}function Op(e,t,n){let r=e.length;for(;;){let o=e.indexOf(t,n);if(o===-1)return o;if(o===0||e.charCodeAt(o-1)<=32){let i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1}}var Cu="ng-template";function Pp(e,t,n,r){let o=0;if(r){for(;o<t.length&&typeof t[o]=="string";o+=2)if(t[o]==="class"&&Op(t[o+1].toLowerCase(),n,0)!==-1)return!0}else if(Bi(e))return!1;if(o=t.indexOf(1,o),o>-1){let i;for(;++o<t.length&&typeof(i=t[o])=="string";)if(i.toLowerCase()===n)return!0}return!1}function Bi(e){return e.type===4&&e.value!==Cu}function Fp(e,t,n){let r=e.type===4&&!n?Cu:e.value;return t===r}function kp(e,t,n){let r=4,o=e.attrs,i=o!==null?jp(o):0,s=!1;for(let a=0;a<t.length;a++){let c=t[a];if(typeof c=="number"){if(!s&&!ve(r)&&!ve(c))return!1;if(s&&ve(c))continue;s=!1,r=c|r&1;continue}if(!s)if(r&4){if(r=2|r&1,c!==""&&!Fp(e,c,n)||c===""&&t.length===1){if(ve(r))return!1;s=!0}}else if(r&8){if(o===null||!Pp(e,o,c,n)){if(ve(r))return!1;s=!0}}else{let u=t[++a],l=Lp(c,o,Bi(e),n);if(l===-1){if(ve(r))return!1;s=!0;continue}if(u!==""){let p;if(l>i?p="":p=o[l+1].toLowerCase(),r&2&&u!==p){if(ve(r))return!1;s=!0}}}}return ve(r)||s}function ve(e){return(e&1)===0}function Lp(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o<t.length;){let s=t[o];if(s===e)return o;if(s===3||s===6)i=!0;else if(s===1||s===2){let a=t[++o];for(;typeof a=="string";)a=t[++o];continue}else{if(s===4)break;if(s===0){o+=4;continue}}o+=i?1:2}return-1}else return Bp(t,e)}function Vp(e,t,n=!1){for(let r=0;r<t.length;r++)if(kp(e,t[r],n))return!0;return!1}function jp(e){for(let t=0;t<e.length;t++){let n=e[t];if(Yf(n))return t}return e.length}function Bp(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){let r=e[n];if(typeof r=="number")return-1;if(r===t)return n;n++}return-1}function za(e,t){return e?":not("+t.trim()+")":t}function Hp(e){let t=e[0],n=1,r=2,o="",i=!1;for(;n<e.length;){let s=e[n];if(typeof s=="string")if(r&2){let a=e[++n];o+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!ve(s)&&(t+=za(i,o),o=""),r=s,i=i||!ve(r);n++}return o!==""&&(t+=za(i,o)),t}function Up(e){return e.map(Hp).join(",")}function $p(e){let t=[],n=[],r=1,o=2;for(;r<e.length;){let i=e[r];if(typeof i=="string")o===2?i!==""&&t.push(i,e[++r]):o===8&&n.push(i);else{if(!ve(o))break;o=i}r++}return n.length&&t.push(1,...n),t}var Ye={};function Gp(e,t){return e.createText(t)}function zp(e,t,n){e.setValue(t,n)}function _u(e,t,n){return e.createElement(t,n)}function Yo(e,t,n,r,o){e.insertBefore(t,n,r,o)}function bu(e,t,n){e.appendChild(t,n)}function Wa(e,t,n,r,o){r!==null?Yo(e,t,n,r,o):bu(e,t,n)}function Wp(e,t,n){e.removeChild(null,t,n)}function qp(e,t,n){e.setAttribute(t,"style",n)}function Zp(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function Mu(e,t,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&Zf(e,t,r),o!==null&&Zp(e,t,o),i!==null&&qp(e,t,i)}function Hi(e,t,n,r,o,i,s,a,c,u,l){let p=J+r,g=p+o,f=Yp(p,g),m=typeof u=="function"?u():u;return f[N]={type:e,blueprint:f,template:n,queries:null,viewQuery:a,declTNode:t,data:f.slice().fill(null,p),bindingStartIndex:p,expandoStartIndex:g,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof i=="function"?i():i,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:c,consts:m,incompleteFirstPass:!1,ssrId:l}}function Yp(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:Ye);return n}function Qp(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=Hi(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function Ui(e,t,n,r,o,i,s,a,c,u,l){let p=t.blueprint.slice();return p[Ve]=o,p[I]=r|4|128|8|64|1024,(u!==null||e&&e[I]&2048)&&(p[I]|=2048),xc(p),p[fe]=p[Ot]=e,p[K]=n,p[ke]=s||e&&e[ke],p[ae]=a||e&&e[ae],p[en]=c||e&&e[en]||null,p[xe]=i,p[gr]=Ip(),p[Xt]=l,p[wc]=u,p[Te]=t.type==2?e[Te]:p,p}function Kp(e,t,n){let r=dt(t,e),o=Qp(n),i=e[ke].rendererFactory,s=Nu(e,Ui(e,o,null,Tu(n),r,t,null,i.createRenderer(r,n),null,null,null));return e[t.index]=s}function Tu(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function Su(e,t,n,r){if(n===0)return-1;let o=t.length;for(let i=0;i<n;i++)t.push(r),e.blueprint.push(r),e.data.push(null);return o}function Nu(e,t){return e[tn]?e[Ra][Ee]=t:e[tn]=t,e[Ra]=t,t}function ft(e=1){xu(Ie(),U(),Ze()+e,!1)}function xu(e,t,n,r){if(!r)if((t[I]&3)===3){let i=e.preOrderCheckHooks;i!==null&&Gn(t,i,n)}else{let i=e.preOrderHooks;i!==null&&zn(t,i,0,n)}at(n)}var br=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(br||{});function Qo(e,t,n,r){let o=R(null);try{let[i,s,a]=e.inputs[n],c=null;(s&br.SignalBased)!==0&&(c=t[i][Pe]),c!==null&&c.transformFn!==void 0?r=c.transformFn(r):a!==null&&(r=a.call(t,r)),e.setInput!==null?e.setInput(t,c,r,n,i):Mc(t,c,i,r)}finally{R(o)}}function Au(e,t,n,r,o){let i=Ze(),s=r&2;try{at(-1),s&&t.length>J&&xu(e,t,J,!1),H(s?2:0,o),n(r,o)}finally{at(i),H(s?3:1,o)}}function $i(e,t,n){oh(e,t,n),(n.flags&64)===64&&ih(e,t,n)}function Ru(e,t,n=dt){let r=t.localNames;if(r!==null){let o=t.index+1;for(let i=0;i<r.length;i+=2){let s=r[i+1],a=s===-1?n(t,e):e[s];e[o++]=a}}}function Jp(e,t,n,r){let i=r.get(Tp,gu)||n===Ne.ShadowDom,s=e.selectRootElement(t,i);return Xp(s),s}function Xp(e){eh(e)}var eh=()=>null;function th(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function nh(e,t,n,r,o,i,s,a){if(!a&&Gi(t,e,n,r,o)){mr(t)&&rh(n,t.index);return}if(t.type&3){let c=dt(t,n);r=th(r),o=s!=null?s(o,t.value||"",r):o,i.setProperty(c,r,o)}else t.type&12}function rh(e,t){let n=it(t,e);n[I]&16||(n[I]|=64)}function oh(e,t,n){let r=n.directiveStart,o=n.directiveEnd;mr(n)&&Kp(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||Zc(n,t);let i=n.initialInputs;for(let s=r;s<o;s++){let a=e.data[s],c=Uo(t,e,s,n);if(un(c,t),i!==null&&ah(t,s-r,c,a,n,i),lt(a)){let u=it(n.index,t);u[K]=Uo(t,e,s,n)}}}function ih(e,t,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=Lf();try{at(i);for(let a=r;a<o;a++){let c=e.data[a],u=t[a];Lo(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&sh(c,u)}}finally{at(-1),Lo(s)}}function sh(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function Ou(e,t){let n=e.directiveRegistry,r=null;if(n)for(let o=0;o<n.length;o++){let i=n[o];Vp(t,i.selectors,!1)&&(r??=[],lt(i)?r.unshift(i):r.push(i))}return r}function ah(e,t,n,r,o,i){let s=i[t];if(s!==null)for(let a=0;a<s.length;a+=2){let c=s[a],u=s[a+1];Qo(r,n,c,u)}}function ch(e,t){let n=e[en],r=n?n.get(Ge,null):null;r&&r.handleError(t)}function Gi(e,t,n,r,o){let i=e.inputs?.[r],s=e.hostDirectiveInputs?.[r],a=!1;if(s)for(let c=0;c<s.length;c+=2){let u=s[c],l=s[c+1],p=t.data[u];Qo(p,n[u],l,o),a=!0}if(i)for(let c of i){let u=n[c],l=t.data[c];Qo(l,u,r,o),a=!0}return a}function uh(e,t){let n=it(t,e),r=n[N];lh(r,n);let o=n[Ve];o!==null&&n[Xt]===null&&(n[Xt]=yu(o,n[en])),H(18),zi(r,n,n[K]),H(19,n[K])}function lh(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}function zi(e,t,n){Ti(t);try{let r=e.viewQuery;r!==null&&Zo(1,r,n);let o=e.template;o!==null&&Au(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[St]?.finishViewCreation(e),e.staticContentQueries&&vu(e,t),e.staticViewQueries&&Zo(2,e.viewQuery,n);let i=e.components;i!==null&&dh(t,i)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[I]&=-5,Si()}}function dh(e,t){for(let n=0;n<t.length;n++)uh(e,t[n])}function Wi(e,t,n,r){let o=R(null);try{let i=t.tView,a=e[I]&4096?4096:16,c=Ui(e,i,n,a,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),u=e[t.index];c[Tt]=u;let l=e[St];return l!==null&&(c[St]=l.createEmbeddedView(i)),zi(i,c,n),c}finally{R(o)}}function qi(e,t){return!t||t.firstChild===null||cu(e)}var fh;function Zi(e,t){return fh(e,t)}var Le=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Le||{});function Pu(e){return(e.flags&32)===32}function wt(e,t,n,r,o){if(r!=null){let i,s=!1;ut(r)?i=r:nt(r)&&(s=!0,r=r[Ve]);let a=Ue(r);e===0&&n!==null?o==null?bu(t,n,a):Yo(t,n,a,o||null,!0):e===1&&n!==null?Yo(t,n,a,o||null,!0):e===2?Wp(t,a,s):e===3&&t.destroyNode(a),i!=null&&_h(t,e,i,n,o)}}function ph(e,t){Fu(e,t),t[Ve]=null,t[xe]=null}function hh(e,t,n,r,o,i){r[Ve]=o,r[xe]=t,Mr(e,r,n,1,o,i)}function Fu(e,t){t[ke].changeDetectionScheduler?.notify(9),Mr(e,t,t[ae],2,null,null)}function gh(e){let t=e[tn];if(!t)return _o(e[N],e);for(;t;){let n=null;if(nt(t))n=t[tn];else{let r=t[oe];r&&(n=r)}if(!n){for(;t&&!t[Ee]&&t!==e;)nt(t)&&_o(t[N],t),t=t[fe];t===null&&(t=e),nt(t)&&_o(t[N],t),n=t&&t[Ee]}t=n}}function Yi(e,t){let n=e[Kn],r=n.indexOf(t);n.splice(r,1)}function Qi(e,t){if(an(t))return;let n=t[ae];n.destroyNode&&Mr(e,t,n,3,null,null),gh(t)}function _o(e,t){if(an(t))return;let n=R(null);try{t[I]&=-129,t[I]|=256,t[se]&&ro(t[se]),yh(e,t),mh(e,t),t[N].type===1&&t[ae].destroy();let r=t[Tt];if(r!==null&&ut(t[fe])){r!==t[fe]&&Yi(r,t);let o=t[St];o!==null&&o.detachView(e)}Wo(t)}finally{R(n)}}function mh(e,t){let n=e.cleanup,r=t[Aa];if(n!==null)for(let s=0;s<n.length-1;s+=2)if(typeof n[s]=="string"){let a=n[s+3];a>=0?r[a]():r[-a].unsubscribe(),s+=2}else{let a=r[n[s+1]];n[s].call(a)}r!==null&&(t[Aa]=null);let o=t[He];if(o!==null){t[He]=null;for(let s=0;s<o.length;s++){let a=o[s];a()}}let i=t[Qn];if(i!==null){t[Qn]=null;for(let s of i)s.destroy()}}function yh(e,t){let n;if(e!=null&&(n=e.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let o=t[n[r]];if(!(o instanceof rn)){let i=n[r+1];if(Array.isArray(i))for(let s=0;s<i.length;s+=2){let a=o[i[s]],c=i[s+1];H(4,a,c);try{c.call(a)}finally{H(5,a,c)}}else{H(4,o,i);try{i.call(o)}finally{H(5,o,i)}}}}}function vh(e,t,n){return Dh(e,t.parent,n)}function Dh(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[Ve];if(mr(r)){let{encapsulation:o}=e.data[r.directiveStart+r.componentOffset];if(o===Ne.None||o===Ne.Emulated)return null}return dt(r,n)}function Eh(e,t,n){return wh(e,t,n)}function Ih(e,t,n){return e.type&40?dt(e,n):null}var wh=Ih,qa;function Ki(e,t,n,r){let o=vh(e,r,t),i=t[ae],s=r.parent||t[xe],a=Eh(s,r,t);if(o!=null)if(Array.isArray(n))for(let c=0;c<n.length;c++)Wa(i,o,n[c],a,!1);else Wa(i,o,n,a,!1);qa!==void 0&&qa(i,r,t,n,o)}function Zt(e,t){if(t!==null){let n=t.type;if(n&3)return dt(t,e);if(n&4)return Ko(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return Zt(e,r);{let o=e[t.index];return ut(o)?Ko(-1,o):Ue(o)}}else{if(n&128)return Zt(e,t.next);if(n&32)return Zi(t,e)()||Ue(e[t.index]);{let r=ku(e,t);if(r!==null){if(Array.isArray(r))return r[0];let o=st(e[Te]);return Zt(o,r)}else return Zt(e,t.next)}}}return null}function ku(e,t){if(t!==null){let r=e[Te][xe],o=t.projection;return r.projection[o]}return null}function Ko(e,t){let n=oe+e+1;if(n<t.length){let r=t[n],o=r[N].firstChild;if(o!==null)return Zt(r,o)}return t[nn]}function Ji(e,t,n,r,o,i,s){for(;n!=null;){if(n.type===128){n=n.next;continue}let a=r[n.index],c=n.type;if(s&&t===0&&(a&&un(Ue(a),r),n.flags|=2),!Pu(n))if(c&8)Ji(e,t,n.child,r,o,i,!1),wt(t,e,o,a,i);else if(c&32){let u=Zi(n,r),l;for(;l=u();)wt(t,e,o,l,i);wt(t,e,o,a,i)}else c&16?Ch(e,t,r,n,o,i):wt(t,e,o,a,i);n=s?n.projectionNext:n.next}}function Mr(e,t,n,r,o,i){Ji(n,r,e.firstChild,t,o,i,!1)}function Ch(e,t,n,r,o,i){let s=n[Te],c=s[xe].projection[r.projection];if(Array.isArray(c))for(let u=0;u<c.length;u++){let l=c[u];wt(t,e,o,l,i)}else{let u=c,l=s[fe];cu(r)&&(u.flags|=128),Ji(e,t,u,l,o,i,!0)}}function _h(e,t,n,r,o){let i=n[nn],s=Ue(n);i!==s&&wt(t,e,r,i,o);for(let a=oe;a<n.length;a++){let c=n[a];Mr(c[N],c,e,t,r,i)}}function bh(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else{let i=r.indexOf("-")===-1?void 0:Le.DashCase;o==null?e.removeStyle(n,r,i):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=Le.Important),e.setStyle(n,r,o,i))}}function ir(e,t,n,r,o=!1){for(;n!==null;){if(n.type===128){n=o?n.projectionNext:n.next;continue}let i=t[n.index];i!==null&&r.push(Ue(i)),ut(i)&&Mh(i,r);let s=n.type;if(s&8)ir(e,t,n.child,r);else if(s&32){let a=Zi(n,t),c;for(;c=a();)r.push(c)}else if(s&16){let a=ku(t,n);if(Array.isArray(a))r.push(...a);else{let c=st(t[Te]);ir(c[N],c,a,r,!0)}}n=o?n.projectionNext:n.next}return r}function Mh(e,t){for(let n=oe;n<e.length;n++){let r=e[n],o=r[N].firstChild;o!==null&&ir(r[N],r,o,t)}e[nn]!==e[Ve]&&t.push(e[nn])}function Lu(e){if(e[Eo]!==null){for(let t of e[Eo])t.impl.addSequence(t);e[Eo].length=0}}var Vu=[];function Th(e){return e[se]??Sh(e)}function Sh(e){let t=Vu.pop()??Object.create(xh);return t.lView=e,t}function Nh(e){e.lView[se]!==e&&(e.lView=null,Vu.push(e))}var xh=Ce(ue({},En),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{vr(e.lView)},consumerOnSignalRead(){this.lView[se]=this}});function Ah(e){let t=e[se]??Object.create(Rh);return t.lView=e,t}var Rh=Ce(ue({},En),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=st(e.lView);for(;t&&!ju(t[N]);)t=st(t);t&&Mi(t)},consumerOnSignalRead(){this.lView[se]=this}});function ju(e){return e.type!==2}function Bu(e){if(e[Qn]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[Qn])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[I]&8192)}}var Oh=100;function Hu(e,t=!0,n=0){let o=e[ke].rendererFactory,i=!1;i||o.begin?.();try{Ph(e,n)}catch(s){throw t&&ch(e,s),s}finally{i||o.end?.()}}function Ph(e,t){let n=Fc();try{Pa(!0),Jo(e,t);let r=0;for(;yr(e);){if(r===Oh)throw new P(103,!1);r++,Jo(e,1)}}finally{Pa(n)}}function Fh(e,t,n,r){if(an(t))return;let o=t[I],i=!1,s=!1;Ti(t);let a=!0,c=null,u=null;i||(ju(e)?(u=Th(t),c=to(u)):Ls()===null?(a=!1,u=Ah(t),c=to(u)):t[se]&&(ro(t[se]),t[se]=null));try{xc(t),Of(e.bindingStartIndex),n!==null&&Au(e,t,n,2,r);let l=(o&3)===3;if(!i)if(l){let f=e.preOrderCheckHooks;f!==null&&Gn(t,f,null)}else{let f=e.preOrderHooks;f!==null&&zn(t,f,0,null),Io(t,0)}if(s||kh(t),Bu(t),Uu(t,0),e.contentQueries!==null&&vu(e,t),!i)if(l){let f=e.contentCheckHooks;f!==null&&Gn(t,f)}else{let f=e.contentHooks;f!==null&&zn(t,f,1),Io(t,1)}Vh(e,t);let p=e.components;p!==null&&Gu(t,p,0);let g=e.viewQuery;if(g!==null&&Zo(2,g,r),!i)if(l){let f=e.viewCheckHooks;f!==null&&Gn(t,f)}else{let f=e.viewHooks;f!==null&&zn(t,f,2),Io(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Do]){for(let f of t[Do])f();t[Do]=null}i||(Lu(t),t[I]&=-73)}catch(l){throw i||vr(t),l}finally{u!==null&&(Hs(u,c),a&&Nh(u)),Si()}}function Uu(e,t){for(let n=du(e);n!==null;n=fu(n))for(let r=oe;r<n.length;r++){let o=n[r];$u(o,t)}}function kh(e){for(let t=du(e);t!==null;t=fu(t)){if(!(t[I]&2))continue;let n=t[Kn];for(let r=0;r<n.length;r++){let o=n[r];Mi(o)}}}function Lh(e,t,n){H(18);let r=it(t,e);$u(r,n),H(19,r[K])}function $u(e,t){bi(e)&&Jo(e,t)}function Jo(e,t){let r=e[N],o=e[I],i=e[se],s=!!(t===0&&o&16);if(s||=!!(o&64&&t===0),s||=!!(o&1024),s||=!!(i?.dirty&&no(i)),s||=!1,i&&(i.dirty=!1),e[I]&=-9217,s)Fh(r,e,r.template,e[K]);else if(o&8192){Bu(e),Uu(e,1);let a=r.components;a!==null&&Gu(e,a,1),Lu(e)}}function Gu(e,t,n){for(let r=0;r<t.length;r++)Lh(e,t[r],n)}function Vh(e,t){let n=e.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let o=n[r];if(o<0)at(~o);else{let i=o,s=n[++r],a=n[++r];kf(s,i);let c=t[i];H(24,c),a(2,c),H(25,c)}}}finally{at(-1)}}function zu(e,t){let n=Fc()?64:1088;for(e[ke].changeDetectionScheduler?.notify(t);e;){e[I]|=n;let r=st(e);if(Jn(e)&&!r)return e;e=r}return null}function jh(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function Wu(e,t){let n=oe+t;if(n<e.length)return e[n]}function Xi(e,t,n,r=!0){let o=t[N];if(Bh(o,t,e,n),r){let s=Ko(n,e),a=t[ae],c=a.parentNode(e[nn]);c!==null&&hh(o,e[xe],a,t,c,s)}let i=t[Xt];i!==null&&i.firstChild!==null&&(i.firstChild=null)}function qu(e,t){let n=es(e,t);return n!==void 0&&Qi(n[N],n),n}function es(e,t){if(e.length<=oe)return;let n=oe+t,r=e[n];if(r){let o=r[Tt];o!==null&&o!==e&&Yi(o,r),t>0&&(e[n-1][Ee]=r[Ee]);let i=fc(e,oe+t);ph(r[N],r);let s=i[St];s!==null&&s.detachView(i[N]),r[fe]=null,r[Ee]=null,r[I]&=-129}return r}function Bh(e,t,n,r){let o=oe+r,i=n.length;r>0&&(n[o-1][Ee]=t),r<i-oe?(t[Ee]=n[o],Kd(n,oe+r,t)):(n.push(t),t[Ee]=null),t[fe]=n;let s=t[Tt];s!==null&&n!==s&&Zu(s,t);let a=t[St];a!==null&&a.insertView(e),Fo(t),t[I]|=128}function Zu(e,t){let n=e[Kn],r=t[fe];if(nt(r))e[I]|=2;else{let o=r[fe][Te];t[Te]!==o&&(e[I]|=2)}n===null?e[Kn]=[t]:n.push(t)}var Xo=class{_lView;_cdRefInjectingView;notifyErrorHandler;_appRef=null;_attachedToViewContainer=!1;get rootNodes(){let t=this._lView,n=t[N];return ir(n,t,n.firstChild,[])}constructor(t,n,r=!0){this._lView=t,this._cdRefInjectingView=n,this.notifyErrorHandler=r}get context(){return this._lView[K]}get dirty(){return!!(this._lView[I]&9280)||!!this._lView[se]?.dirty}set context(t){this._lView[K]=t}get destroyed(){return an(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[fe];if(ut(t)){let n=t[gf],r=n?n.indexOf(this):-1;r>-1&&(es(t,r),fc(n,r))}this._attachedToViewContainer=!1}Qi(this._lView[N],this._lView)}onDestroy(t){Ac(this._lView,t)}markForCheck(){zu(this._cdRefInjectingView||this._lView,4)}markForRefresh(){Mi(this._cdRefInjectingView||this._lView)}detach(){this._lView[I]&=-129}reattach(){Fo(this._lView),this._lView[I]|=128}detectChanges(){this._lView[I]|=1024,Hu(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new P(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=Jn(this._lView),n=this._lView[Tt];n!==null&&!t&&Yi(n,this._lView),Fu(this._lView[N],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new P(902,!1);this._appRef=t;let n=Jn(this._lView),r=this._lView[Tt];r!==null&&!n&&Zu(r,this._lView),Fo(this._lView)}};function Tr(e,t,n,r,o){let i=e.data[t];if(i===null)i=Hh(e,t,n,r,o),Ff()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=xf();i.injectorIndex=s===null?-1:s.injectorIndex}return Pt(i,!0),i}function Hh(e,t,n,r,o){let i=Oc(),s=Pc(),a=s?i:i&&i.parent,c=e.data[t]=$h(e,a,n,t,r,o);return Uh(e,c,i,s),c}function Uh(e,t,n,r){e.firstChild===null&&(e.firstChild=t),n!==null&&(r?n.child==null&&t.parent!==null&&(n.child=t):n.next===null&&(n.next=t,t.prev=n))}function $h(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return Tf()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}var BE=new RegExp(`^(\\d+)*(${Mp}|${bp})*(.*)`);var Gh=()=>null;function ts(e,t){return Gh(e,t)}var ei=class{},sr=class{},ti=class{resolveComponentFactory(t){throw Error(`No component factory found for ${de(t)}.`)}},ze=class{static NULL=new ti},xt=class{};var zh=(()=>{class e{static \u0275prov=q({token:e,providedIn:"root",factory:()=>null})}return e})();function Za(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s<t.length;s++){let a=t[s];if(typeof a=="number")i=a;else if(i==1)o=_a(o,a);else if(i==2){let c=a,u=t[++s];r=_a(r,c+": "+u+";")}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o}function Sr(e,t=T.Default){let n=U();if(n===null)return L(e,t);let r=cn();return Xc(r,n,De(e),t)}function Yu(e,t,n,r,o){let i=r===null?null:{"":-1},s=o(e,n);if(s!==null){let a,c=null,u=null,l=qh(s);l===null?a=s:[a,c,u]=l,Qh(e,t,n,a,i,c,u)}i!==null&&r!==null&&Wh(n,r,i)}function Wh(e,t,n){let r=e.localNames=[];for(let o=0;o<t.length;o+=2){let i=n[t[o+1]];if(i==null)throw new P(-301,!1);r.push(t[o],i)}}function qh(e){let t=null,n=!1;for(let s=0;s<e.length;s++){let a=e[s];if(s===0&&lt(a)&&(t=a),a.findHostDirectiveDefs!==null){n=!0;break}}if(!n)return null;let r=null,o=null,i=null;for(let s of e)s.findHostDirectiveDefs!==null&&(r??=[],o??=new Map,i??=new Map,Zh(s,r,i,o)),s===t&&(r??=[],r.push(s));return r!==null?(r.push(...t===null?e:e.slice(1)),[r,o,i]):null}function Zh(e,t,n,r){let o=t.length;e.findHostDirectiveDefs(e,t,r),n.set(e,[o,t.length-1])}function Yh(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function Qh(e,t,n,r,o,i,s){let a=r.length,c=!1;for(let g=0;g<a;g++){let f=r[g];!c&&lt(f)&&(c=!0,Yh(e,n,g)),np(Zc(n,t),e,f.type)}ng(n,e.data.length,a);for(let g=0;g<a;g++){let f=r[g];f.providersResolver&&f.providersResolver(f)}let u=!1,l=!1,p=Su(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let g=0;g<a;g++){let f=r[g];if(n.mergedAttrs=Ai(n.mergedAttrs,f.hostAttrs),Jh(e,n,t,p,f),tg(p,f,o),s!==null&&s.has(f)){let[y,w]=s.get(f);n.directiveToIndex.set(f.type,[p,y+n.directiveStart,w+n.directiveStart])}else(i===null||!i.has(f))&&n.directiveToIndex.set(f.type,p);f.contentQueries!==null&&(n.flags|=4),(f.hostBindings!==null||f.hostAttrs!==null||f.hostVars!==0)&&(n.flags|=64);let m=f.type.prototype;!u&&(m.ngOnChanges||m.ngOnInit||m.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),u=!0),!l&&(m.ngOnChanges||m.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),l=!0),p++}Kh(e,n,i)}function Kh(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let o=e.data[r];if(n===null||!n.has(o))Ya(0,t,o,r),Ya(1,t,o,r),Ka(t,r,!1);else{let i=n.get(o);Qa(0,t,i,r),Qa(1,t,i,r),Ka(t,r,!0)}}}function Ya(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s;e===0?s=t.inputs??={}:s=t.outputs??={},s[i]??=[],s[i].push(r),Qu(t,i)}}function Qa(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s=o[i],a;e===0?a=t.hostDirectiveInputs??={}:a=t.hostDirectiveOutputs??={},a[s]??=[],a[s].push(r,i),Qu(t,s)}}function Qu(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16)}function Ka(e,t,n){let{attrs:r,inputs:o,hostDirectiveInputs:i}=e;if(r===null||!n&&o===null||n&&i===null||Bi(e)){e.initialInputs??=[],e.initialInputs.push(null);return}let s=null,a=0;for(;a<r.length;){let c=r[a];if(c===0){a+=4;continue}else if(c===5){a+=2;continue}else if(typeof c=="number")break;if(!n&&o.hasOwnProperty(c)){let u=o[c];for(let l of u)if(l===t){s??=[],s.push(c,r[a+1]);break}}else if(n&&i.hasOwnProperty(c)){let u=i[c];for(let l=0;l<u.length;l+=2)if(u[l]===t){s??=[],s.push(u[l+1],r[a+1]);break}}a+=2}e.initialInputs??=[],e.initialInputs.push(s)}function Jh(e,t,n,r,o){e.data[r]=o;let i=o.factory||(o.factory=bt(o.type,!0)),s=new rn(i,lt(o),Sr);e.blueprint[r]=s,n[r]=s,Xh(e,t,r,Su(e,n,o.hostVars,Ye),o)}function Xh(e,t,n,r,o){let i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;eg(s)!=a&&s.push(a),s.push(n,r,i)}}function eg(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function tg(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;lt(t)&&(n[""]=e)}}function ng(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function Ku(e,t,n,r,o,i,s,a){let c=t.consts,u=Nt(c,s),l=Tr(t,e,2,r,u);return i&&Yu(t,n,l,Nt(c,a),o),l.mergedAttrs=Ai(l.mergedAttrs,l.attrs),l.attrs!==null&&Za(l,l.attrs,!1),l.mergedAttrs!==null&&Za(l,l.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,l),l}function Ju(e,t){Gc(e,t),_c(t)&&e.queries.elementEnd(t)}var ni=class extends ze{ngModule;constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){let n=pr(t);return new ri(n,this.ngModule)}};function rg(e){return Object.keys(e).map(t=>{let[n,r,o]=e[t],i={propName:n,templateName:t,isSignal:(r&br.SignalBased)!==0};return o&&(i.transform=o),i})}function og(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function ig(e,t,n){let r=t instanceof ot?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new Vo(n,r):n}function sg(e){let t=e.get(xt,null);if(t===null)throw new P(407,!1);let n=e.get(zh,null),r=e.get($e,null);return{rendererFactory:t,sanitizer:n,changeDetectionScheduler:r}}function ag(e,t){let n=(e.selectors[0][0]||"div").toLowerCase();return _u(t,n,n==="svg"?Ef:n==="math"?If:null)}var ri=class extends sr{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;get inputs(){return rg(this.componentDef.inputs)}get outputs(){return og(this.componentDef.outputs)}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=Up(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!n}create(t,n,r,o){H(22);let i=R(null);try{let s=this.componentDef,a=r?["ng-version","19.2.0"]:$p(this.componentDef.selectors[0]),c=Hi(0,null,null,1,0,null,null,null,null,[a],null),u=ig(s,o||this.ngModule,t),l=sg(u),p=l.rendererFactory.createRenderer(null,s),g=r?Jp(p,r,s.encapsulation,u):ag(s,p),f=Ui(null,c,null,512|Tu(s),null,null,l,p,u,null,yu(g,u,!0));f[J]=g,Ti(f);let m=null;try{let y=Ku(J,c,f,"#host",()=>[this.componentDef],!0,0);g&&(Mu(p,g,y),un(g,f)),$i(c,f,y),Du(c,y,f),Ju(c,y),n!==void 0&&cg(y,this.ngContentSelectors,n),m=it(y.index,f),f[K]=m[K],zi(c,f,null)}catch(y){throw m!==null&&Wo(m),Wo(f),y}finally{H(23),Si()}return new oi(this.componentType,f)}finally{R(i)}}},oi=class extends ei{_rootLView;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,n){super(),this._rootLView=n,this._tNode=Ci(n[N],J),this.location=au(this._tNode,n),this.instance=it(this._tNode.index,n)[K],this.hostView=this.changeDetectorRef=new Xo(n,void 0,!1),this.componentType=t}setInput(t,n){let r=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;let o=this._rootLView,i=Gi(r,o[N],o,t,n);this.previousInputValues.set(t,n);let s=it(r.index,o);zu(s,1)}get injector(){return new er(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}};function cg(e,t,n){let r=e.projection=[];for(let o=0;o<t.length;o++){let i=n[o];r.push(i!=null&&i.length?Array.from(i):null)}}var ug=()=>!1;function lg(e,t,n){return ug(e,t,n)}var At=class{};var ar=class extends At{injector;componentFactoryResolver=new ni(this);instance=null;constructor(t){super();let n=new Jt([...t.providers,{provide:At,useValue:this},{provide:ze,useValue:this.componentFactoryResolver}],t.parent||wi(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function dg(e,t,n=null){return new ar({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var fg=(()=>{class e{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=vc(!1,n.type),o=r.length>0?dg([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=q({token:e,providedIn:"environment",factory:()=>new e(L(ot))})}return e})();function Xu(e){return Ad(()=>{let t=yg(e),n=Ce(ue({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===uu.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(fg).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Ne.Emulated,styles:e.styles||rt,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&Ft("NgStandalone"),vg(n);let r=e.dependencies;return n.directiveDefs=Ja(r,!1),n.pipeDefs=Ja(r,!0),n.id=Dg(n),n})}function pg(e){return pr(e)||gc(e)}function hg(e){return e!==null}function gg(e,t){if(e==null)return Mt;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a,c;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i,c=o[3]||null):(i=o,s=o,a=br.None,c=null),n[i]=[r,a,c],t[i]=s}return n}function mg(e){if(e==null)return Mt;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function Nr(e){return{type:e.type,name:e.name,factory:null,pure:e.pure!==!1,standalone:e.standalone??!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function yg(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputConfig:e.inputs||Mt,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||rt,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:gg(e.inputs,t),outputs:mg(e.outputs),debugInfo:null}}function vg(e){e.features?.forEach(t=>t(e))}function Ja(e,t){if(!e)return null;let n=t?mc:pg;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(hg)}function Dg(e){let t=0,n=typeof e.consts=="function"?"":e.consts,r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,n,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery];for(let i of r.join("|"))t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function el(e,t,n){return e[t]=n}function We(e,t,n){let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function Eg(e,t,n,r){let o=We(e,t,n);return We(e,t+1,r)||o}function Ig(e,t,n,r,o,i,s,a,c){let u=t.consts,l=Tr(t,e,4,s||null,a||null);Rc()&&Yu(t,n,l,Nt(u,c),Ou),l.mergedAttrs=Ai(l.mergedAttrs,l.attrs),Gc(t,l);let p=l.tView=Hi(2,l,r,o,i,t.directiveRegistry,t.pipeRegistry,null,t.schemas,u,null);return t.queries!==null&&(t.queries.template(t,l),p.queries=t.queries.embeddedTView(l)),l}function ii(e,t,n,r,o,i,s,a,c,u){let l=n+J,p=t.firstCreatePass?Ig(l,t,e,r,o,i,s,a,c):t.data[l];Pt(p,!1);let g=wg(t,e,p,n);Ni()&&Ki(t,e,g,p),un(g,e);let f=jh(g,e,g,p);return e[l]=f,Nu(e,f),lg(f,p,e),bc(p)&&$i(t,e,p),c!=null&&Ru(e,p,u),p}function xr(e,t,n,r,o,i,s,a){let c=U(),u=Ie(),l=Nt(u.consts,i);return ii(c,u,e,t,n,r,o,l,s,a),xr}var wg=Cg;function Cg(e,t,n,r){return xi(!0),t[ae].createComment("")}var tl=new k("");var _g=(()=>{class e{static \u0275prov=q({token:e,providedIn:"root",factory:()=>new si})}return e})(),si=class{queuedEffectCount=0;queues=new Map;schedule(t){this.enqueue(t)}remove(t){let n=t.zone,r=this.queues.get(n);r.has(t)&&(r.delete(t),this.queuedEffectCount--)}enqueue(t){let n=t.zone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(t)||(this.queuedEffectCount++,r.add(t))}flush(){for(;this.queuedEffectCount>0;)for(let[t,n]of this.queues)t===null?this.flushQueue(n):t.run(()=>this.flushQueue(n))}flushQueue(t){for(let n of t)t.delete(n),this.queuedEffectCount--,n.run()}};function ns(e){return!!e&&typeof e.then=="function"}function nl(e){return!!e&&typeof e.subscribe=="function"}var bg=new k("");var rl=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=F(bg,{optional:!0})??[];injector=F(Se);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=Ic(this.injector,o);if(ns(i))n.push(i);else if(nl(i)){let s=new Promise((a,c)=>{i.subscribe({complete:a,error:c})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),n.length===0&&r(),this.initialized=!0}static \u0275fac=function(r){return new(r||e)};static \u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Mg=new k("");function Tg(){qs(()=>{throw new P(600,!1)})}function Sg(e){return e.isBoundToModule}var Ng=10;var qe=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=F(yp);afterRenderManager=F(Sp);zonelessEnabled=F(Er);rootEffectScheduler=F(_g);dirtyFlags=0;tracingSnapshot=null;externalTestViews=new Set;afterTick=new Fe;get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];isStable=F(Ir).hasPendingTasks.pipe(zt(n=>!n));constructor(){F(Cr,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=F(ot);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){H(10);let o=n instanceof sr;if(!this._injector.get(rl).done){let g=!o&&tf(n),f=!1;throw new P(405,f)}let s;o?s=n:s=this._injector.get(ze).resolveComponentFactory(n),this.componentTypes.push(s.componentType);let a=Sg(s)?void 0:this._injector.get(At),c=r||s.selector,u=s.create(Se.NULL,[],c,a),l=u.location.nativeElement,p=u.injector.get(tl,null);return p?.registerApplication(l),u.onDestroy(()=>{this.detachView(u.hostView),Wn(this.components,u),p?.unregisterApplication(l)}),this._loadComponent(u),H(11,u),u}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){H(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(mu.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new P(101,!1);let n=R(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,R(n),this.afterTick.next(),H(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(xt,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<Ng;)H(14),this.synchronizeOnce(),H(15)}synchronizeOnce(){if(this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush()),this.dirtyFlags&7){let n=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:r,notifyErrorHandler:o}of this.allViews)xg(r,o,n,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return}else this._rendererFactory?.begin?.(),this._rendererFactory?.end?.();this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:n})=>yr(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;Wn(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(Mg,[]).forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Wn(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new P(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(r){return new(r||e)};static \u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Wn(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function xg(e,t,n,r){if(!n&&!yr(e))return;Hu(e,t,n&&!r?0:1)}function Ag(e,t,n,r){return We(e,Dr(),n)?t+vi(n)+r:Ye}function Un(e,t){return e<<17|t<<2}function ct(e){return e>>17&32767}function Rg(e){return(e&2)==2}function Og(e,t){return e&131071|t<<17}function ai(e){return e|2}function Rt(e){return(e&131068)>>2}function bo(e,t){return e&-131069|t<<2}function Pg(e){return(e&1)===1}function ci(e){return e|1}function Fg(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=ct(s),c=Rt(s);e[r]=n;let u=!1,l;if(Array.isArray(n)){let p=n;l=p[1],(l===null||sn(p,l)>0)&&(u=!0)}else l=n;if(o)if(c!==0){let g=ct(e[a+1]);e[r+1]=Un(g,a),g!==0&&(e[g+1]=bo(e[g+1],r)),e[a+1]=Og(e[a+1],r)}else e[r+1]=Un(a,0),a!==0&&(e[a+1]=bo(e[a+1],r)),a=r;else e[r+1]=Un(c,0),a===0?a=r:e[c+1]=bo(e[c+1],r),c=r;u&&(e[r+1]=ai(e[r+1])),Xa(e,l,r,!0),Xa(e,l,r,!1),kg(t,l,e,r,i),s=Un(a,c),i?t.classBindings=s:t.styleBindings=s}function kg(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&sn(i,t)>=0&&(n[r+1]=ci(n[r+1]))}function Xa(e,t,n,r){let o=e[n+1],i=t===null,s=r?ct(o):Rt(o),a=!1;for(;s!==0&&(a===!1||i);){let c=e[s],u=e[s+1];Lg(c,t)&&(a=!0,e[s+1]=r?ci(u):ai(u)),s=r?ct(u):Rt(u)}a&&(e[n+1]=r?ai(o):ci(o))}function Lg(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?sn(e,t)>=0:!1}function rs(e,t,n){let r=U(),o=Dr();if(We(r,o,t)){let i=Ie(),s=Hf();nh(i,s,r,e,t,r[ae],n,!1)}return rs}function ec(e,t,n,r,o){Gi(t,e,n,o?"class":"style",r)}function Ar(e,t,n){return Vg(e,t,n,!1),Ar}function Vg(e,t,n,r){let o=U(),i=Ie(),s=Pf(2);if(i.firstUpdatePass&&Bg(i,e,s,r),t!==Ye&&We(o,s,t)){let a=i.data[Ze()];zg(i,a,o,o[ae],e,o[s+1]=Wg(t,n),r,s)}}function jg(e,t){return t>=e.expandoStartIndex}function Bg(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[Ze()],s=jg(e,n);qg(i,r)&&t===null&&!s&&(t=!1),t=Hg(o,i,t,r),Fg(o,i,t,n,s,r)}}function Hg(e,t,n,r){let o=Vf(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=Mo(null,e,t,n,r),n=on(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=Mo(o,e,t,n,r),i===null){let c=Ug(e,t,r);c!==void 0&&Array.isArray(c)&&(c=Mo(null,e,t,c[1],r),c=on(c,t.attrs,r),$g(e,t,r,c))}else i=Gg(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function Ug(e,t,n){let r=n?t.classBindings:t.styleBindings;if(Rt(r)!==0)return e[ct(r)]}function $g(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[ct(o)]=r}function Gg(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<o;i++){let s=e[i].hostAttrs;r=on(r,s,n)}return on(r,t.attrs,n)}function Mo(e,t,n,r,o){let i=null,s=n.directiveEnd,a=n.directiveStylingLast;for(a===-1?a=n.directiveStart:a++;a<s&&(i=t[a],r=on(r,i.hostAttrs,o),i!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function on(e,t,n){let r=n?1:2,o=-1;if(t!==null)for(let i=0;i<t.length;i++){let s=t[i];typeof s=="number"?o=s:o===r&&(Array.isArray(e)||(e=e===void 0?[]:["",e]),Xd(e,s,n?!0:t[++i]))}return e===void 0?null:e}function zg(e,t,n,r,o,i,s,a){if(!(t.type&3))return;let c=e.data,u=c[a+1],l=Pg(u)?tc(c,t,n,o,Rt(u),s):void 0;if(!cr(l)){cr(i)||Rg(u)&&(i=tc(c,null,n,o,a,s));let p=Nc(Ze(),n);bh(r,s,p,o,i)}}function tc(e,t,n,r,o,i){let s=t===null,a;for(;o>0;){let c=e[o],u=Array.isArray(c),l=u?c[1]:c,p=l===null,g=n[o+1];g===Ye&&(g=p?rt:void 0);let f=p?yo(g,r):l===r?g:void 0;if(u&&!cr(f)&&(f=yo(c,r)),cr(f)&&(a=f,s))return a;let m=e[o+1];o=s?ct(m):Rt(m)}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=yo(c,r))}return a}function cr(e){return e!==void 0}function Wg(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=de(_r(e)))),e}function qg(e,t){return(e.flags&(t?8:16))!==0}var ui=class{destroy(t){}updateValue(t,n){}swap(t,n){let r=Math.min(t,n),o=Math.max(t,n),i=this.detach(o);if(o-r>1){let s=this.detach(r);this.attach(r,i),this.attach(o,s)}else this.attach(r,i)}move(t,n){this.attach(n,this.detach(t))}};function To(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function Zg(e,t,n){let r,o,i=0,s=e.length-1,a=void 0;if(Array.isArray(t)){let c=t.length-1;for(;i<=s&&i<=c;){let u=e.at(i),l=t[i],p=To(i,u,i,l,n);if(p!==0){p<0&&e.updateValue(i,l),i++;continue}let g=e.at(s),f=t[c],m=To(s,g,c,f,n);if(m!==0){m<0&&e.updateValue(s,f),s--,c--;continue}let y=n(i,u),w=n(s,g),x=n(i,l);if(Object.is(x,w)){let W=n(c,f);Object.is(W,y)?(e.swap(i,s),e.updateValue(s,f),c--,s--):e.move(s,i),e.updateValue(i,l),i++;continue}if(r??=new ur,o??=rc(e,i,s,n),li(e,r,i,x))e.updateValue(i,l),i++,s++;else if(o.has(x))r.set(y,e.detach(i)),s--;else{let W=e.create(i,t[i]);e.attach(i,W),i++,s++}}for(;i<=c;)nc(e,r,n,i,t[i]),i++}else if(t!=null){let c=t[Symbol.iterator](),u=c.next();for(;!u.done&&i<=s;){let l=e.at(i),p=u.value,g=To(i,l,i,p,n);if(g!==0)g<0&&e.updateValue(i,p),i++,u=c.next();else{r??=new ur,o??=rc(e,i,s,n);let f=n(i,p);if(li(e,r,i,f))e.updateValue(i,p),i++,s++,u=c.next();else if(!o.has(f))e.attach(i,e.create(i,p)),i++,s++,u=c.next();else{let m=n(i,l);r.set(m,e.detach(i)),s--}}}for(;!u.done;)nc(e,r,n,e.length,u.value),u=c.next()}for(;i<=s;)e.destroy(e.detach(s--));r?.forEach(c=>{e.destroy(c)})}function li(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function nc(e,t,n,r,o){if(li(e,t,r,n(r,o)))e.updateValue(r,o);else{let i=e.create(r,o);e.attach(r,i)}}function rc(e,t,n,r){let o=new Set;for(let i=t;i<=n;i++)o.add(r(i,e.at(i)));return o}var ur=class{kvMap=new Map;_vMap=void 0;has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;let n=this.kvMap.get(t);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(r);)r=o.get(r);o.set(r,n)}else this.kvMap.set(t,n)}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),this._vMap!==void 0){let o=this._vMap;for(;o.has(r);)r=o.get(r),t(r,n)}}};function os(e,t){Ft("NgControlFlow");let n=U(),r=Dr(),o=n[r]!==Ye?n[r]:-1,i=o!==-1?lr(n,J+o):void 0,s=0;if(We(n,r,e)){let a=R(null);try{if(i!==void 0&&qu(i,s),e!==-1){let c=J+e,u=lr(n,c),l=hi(n[N],c),p=ts(u,l.tView.ssrId),g=Wi(n,l,t,{dehydratedView:p});Xi(u,g,s,qi(l,p))}}finally{R(a)}}else if(i!==void 0){let a=Wu(i,s);a!==void 0&&(a[K]=t)}}var di=class{lContainer;$implicit;$index;constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-oe}};var fi=class{hasEmptyBlock;trackByFn;liveCollection;constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}};function ol(e,t,n,r,o,i,s,a,c,u,l,p,g){Ft("NgControlFlow");let f=U(),m=Ie(),y=c!==void 0,w=U(),x=a?s.bind(w[Te][K]):s,W=new fi(y,x);w[J+e]=W,ii(f,m,e+1,t,n,r,o,Nt(m.consts,i)),y&&ii(f,m,e+2,c,u,l,p,Nt(m.consts,g))}var pi=class extends ui{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r}get length(){return this.lContainer.length-oe}at(t){return this.getLView(t)[K].$implicit}attach(t,n){let r=n[Xt];this.needsIndexUpdate||=t!==this.length,Xi(this.lContainer,n,t,qi(this.templateTNode,r))}detach(t){return this.needsIndexUpdate||=t!==this.length-1,Yg(this.lContainer,t)}create(t,n){let r=ts(this.lContainer,this.templateTNode.tView.ssrId),o=Wi(this.hostLView,this.templateTNode,new di(this.lContainer,n,t),{dehydratedView:r});return this.operationsCounter?.recordCreate(),o}destroy(t){Qi(t[N],t),this.operationsCounter?.recordDestroy()}updateValue(t,n){this.getLView(t)[K].$implicit=n}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t<this.length;t++)this.getLView(t)[K].$index=t}getLView(t){return Qg(this.lContainer,t)}};function il(e){let t=R(null),n=Ze();try{let r=U(),o=r[N],i=r[n],s=n+1,a=lr(r,s);if(i.liveCollection===void 0){let u=hi(o,s);i.liveCollection=new pi(a,r,u)}else i.liveCollection.reset();let c=i.liveCollection;if(Zg(c,e,i.trackByFn),c.updateIndexes(),i.hasEmptyBlock){let u=Dr(),l=c.length===0;if(We(r,u,l)){let p=n+2,g=lr(r,p);if(l){let f=hi(o,p),m=ts(g,f.tView.ssrId),y=Wi(r,f,void 0,{dehydratedView:m});Xi(g,y,0,qi(f,m))}else qu(g,0)}}}finally{R(t)}}function lr(e,t){return e[t]}function Yg(e,t){return es(e,t)}function Qg(e,t){return Wu(e,t)}function hi(e,t){return Ci(e,t)}function pt(e,t,n,r){let o=U(),i=Ie(),s=J+e,a=o[ae],c=i.firstCreatePass?Ku(s,i,o,t,Ou,Rc(),n,r):i.data[s],u=Kg(i,o,c,a,t,e);o[s]=u;let l=bc(c);return Pt(c,!0),Mu(a,u,c),!Pu(c)&&Ni()&&Ki(i,o,u,c),(_f()===0||l)&&un(u,o),bf(),l&&($i(i,o,c),Du(i,c,o)),r!==null&&Ru(o,c),pt}function Qe(){let e=cn();Pc()?Af():(e=e.parent,Pt(e,!1));let t=e;Sf(t)&&Nf(),Mf();let n=Ie();return n.firstCreatePass&&Ju(n,t),t.classesWithoutHost!=null&&Wf(t)&&ec(n,t,U(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&qf(t)&&ec(n,t,U(),t.stylesWithoutHost,!1),Qe}function Rr(e,t,n,r){return pt(e,t,n,r),Qe(),Rr}var Kg=(e,t,n,r,o,i)=>(xi(!0),_u(r,o,Uf()));var dr="en-US";var Jg=dr;function Xg(e){typeof e=="string"&&(Jg=e.toLowerCase().replace(/_/g,"-"))}function ht(e=1){return Bf(e)}function is(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function dn(e,t=""){let n=U(),r=Ie(),o=e+J,i=r.firstCreatePass?Tr(r,o,1,t,null):r.data[o],s=em(r,n,i,t,e);n[o]=s,Ni()&&Ki(r,n,s,i),Pt(i,!1)}var em=(e,t,n,r,o)=>(xi(!0),Gp(t[ae],r));function Or(e){return fn("",e,""),Or}function fn(e,t,n){let r=U(),o=Ag(r,e,t,n);return o!==Ye&&tm(r,Ze(),o),fn}function tm(e,t,n){let r=Nc(t,e);zp(e[ae],r,n)}var sl={};function ss(e){let t=Ie(),n=U(),r=e+J,o=Tr(t,r,128,null,null);return Pt(o,!1),is(t,n,r,sl),ss}function al(e){Ft("NgLet");let t=Ie(),n=U(),r=Ze();return is(t,n,r,e),e}function as(e){let t=Rf(),n=_i(t,J+e);if(n===sl)throw new P(314,!1);return n}function cl(e,t){let n=e[t];return n===Ye?void 0:n}function nm(e,t,n,r,o,i){let s=t+n;return We(e,s,o)?el(e,s+1,i?r.call(i,o):r(o)):cl(e,s+1)}function rm(e,t,n,r,o,i,s){let a=t+n;return Eg(e,a,o,i)?el(e,a+2,s?r.call(s,o,i):r(o,i)):cl(e,a+2)}function Pr(e,t){let n=Ie(),r,o=e+J;n.firstCreatePass?(r=om(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];let i=r.factory||(r.factory=bt(r.type,!0)),s,a=re(Sr);try{let c=Xn(!1),u=i();return Xn(c),is(n,U(),o,u),u}finally{re(a)}}function om(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function ul(e,t,n){let r=e+J,o=U(),i=_i(o,r);return ll(o,r)?nm(o,kc(),t,i.transform,n,i):i.transform(n)}function cs(e,t,n,r){let o=e+J,i=U(),s=_i(i,o);return ll(i,o)?rm(i,kc(),t,s.transform,n,r,s):s.transform(n,r)}function ll(e,t){return e[N].data[t].pure}var im=(()=>{class e{zone=F(Y);changeDetectionScheduler=F($e);applicationRef=F(qe);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function sm({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new Y(Ce(ue({},am()),{scheduleInRootZone:n})),[{provide:Y,useFactory:e},{provide:Kt,multi:!0,useFactory:()=>{let r=F(im,{optional:!0});return()=>r.initialize()}},{provide:Kt,multi:!0,useFactory:()=>{let r=F(cm);return()=>{r.initialize()}}},t===!0?{provide:ou,useValue:!0}:[],{provide:Ri,useValue:n??nu}]}function am(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var cm=(()=>{class e{subscription=new X;initialized=!1;zone=F(Y);pendingTasks=F(Ir);initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{Y.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{Y.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var dl=(()=>{class e{appRef=F(qe);taskService=F(Ir);ngZone=F(Y);zonelessEnabled=F(Er);tracing=F(Cr,{optional:!0});disableScheduling=F(ou,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new X;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(nr):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(F(Ri,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof rr||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;let r=!1;switch(n){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2,r=!0;break}case 12:{this.appRef.dirtyFlags|=16,r=!0;break}case 13:{this.appRef.dirtyFlags|=2,r=!0;break}case 11:{r=!0;break}case 9:case 8:case 7:case 10:default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(r))return;let o=this.useMicrotaskScheduler?Ba:iu;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>o(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>o(()=>this.tick()))}shouldScheduleTick(n){return!(this.disableScheduling&&!n||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(nr+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){throw this.taskService.remove(n),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,Ba(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static \u0275fac=function(r){return new(r||e)};static \u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function fl(){return Ft("NgZoneless"),yc([{provide:$e,useExisting:dl},{provide:Y,useClass:rr},{provide:Er,useValue:!0},{provide:Ri,useValue:!1},[]])}function um(){return typeof $localize<"u"&&$localize.locale||dr}var us=new k("",{providedIn:"root",factory:()=>F(us,T.Optional|T.SkipSelf)||um()});var gi=new k(""),lm=new k("");function Wt(e){return!e.moduleRef}function dm(e){let t=Wt(e)?e.r3Injector:e.moduleRef.injector,n=t.get(Y);return n.run(()=>{Wt(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(Ge,null),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:i=>{r.handleError(i)}})}),Wt(e)){let i=()=>t.destroy(),s=e.platformInjector.get(gi);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(gi);s.add(i),e.moduleRef.onDestroy(()=>{Wn(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return pm(r,n,()=>{let i=t.get(rl);return i.runInitializers(),i.donePromise.then(()=>{let s=t.get(us,dr);if(Xg(s||dr),!t.get(lm,!0))return Wt(e)?t.get(qe):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(Wt(e)){let c=t.get(qe);return e.rootComponent!==void 0&&c.bootstrap(e.rootComponent),c}else return fm(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}function fm(e,t){let n=e.injector.get(qe);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(e.instance.ngDoBootstrap)e.instance.ngDoBootstrap(n);else throw new P(-403,!1);t.push(e)}function pm(e,t,n){try{let r=n();return ns(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}var qn=null;function hm(e=[],t){return Se.create({name:t,providers:[{provide:hr,useValue:"platform"},{provide:gi,useValue:new Set([()=>qn=null])},...e]})}function gm(e=[]){if(qn)return qn;let t=hm(e);return qn=t,Tg(),mm(t),t}function mm(e){let t=e.get(Li,null);Ic(e,()=>{t?.forEach(n=>n())})}function pl(e){H(8);try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,o=gm(r),i=[sm({}),{provide:$e,useExisting:dl},...n||[]],s=new ar({providers:i,parent:o,debugName:"",runEnvironmentInitializers:!1});return dm({r3Injector:s.injector,platformInjector:o,rootComponent:t})}catch(t){return Promise.reject(t)}finally{H(9)}}var oc=class{[Pe];constructor(t){this[Pe]=t}destroy(){this[Pe].destroy()}};var ym={schedule(e,t){let n=setTimeout(e,t);return()=>clearTimeout(n)}};function vm(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function Dm(e){return!!e&&e.nodeType===Node.ELEMENT_NODE}var ls;function Em(e,t){if(!ls){let n=Element.prototype;ls=n.matches||n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}return e.nodeType===Node.ELEMENT_NODE?ls.call(e,t):!1}function Im(e){let t={};return e.forEach(({propName:n,templateName:r,transform:o})=>{t[vm(r)]=[n,o]}),t}function wm(e,t){return t.get(ze).resolveComponentFactory(e).inputs}function Cm(e,t){let n=e.childNodes,r=t.map(()=>[]),o=-1;t.some((i,s)=>i==="*"?(o=s,!0):!1);for(let i=0,s=n.length;i<s;++i){let a=n[i],c=_m(a,t,o);c!==-1&&r[c].push(a)}return r}function _m(e,t,n){let r=n;return Dm(e)&&t.some((o,i)=>o!=="*"&&Em(e,o)?(r=i,!0):!1),r}var bm=10,ds=class{componentFactory;inputMap=new Map;constructor(t,n){this.componentFactory=n.get(ze).resolveComponentFactory(t);for(let r of this.componentFactory.inputs)this.inputMap.set(r.propName,r.templateName)}create(t){return new fs(this.componentFactory,t,this.inputMap)}},fs=class{componentFactory;injector;inputMap;eventEmitters=new Gt(1);events=this.eventEmitters.pipe(mo(t=>go(...t)));componentRef=null;scheduledDestroyFn=null;initialInputValues=new Map;ngZone;elementZone;appRef;cdScheduler;constructor(t,n,r){this.componentFactory=t,this.injector=n,this.inputMap=r,this.ngZone=this.injector.get(Y),this.appRef=this.injector.get(qe),this.cdScheduler=n.get($e),this.elementZone=typeof Zone>"u"?null:this.ngZone.run(()=>Zone.current)}connect(t){this.runInZone(()=>{if(this.scheduledDestroyFn!==null){this.scheduledDestroyFn(),this.scheduledDestroyFn=null;return}this.componentRef===null&&this.initializeComponent(t)})}disconnect(){this.runInZone(()=>{this.componentRef===null||this.scheduledDestroyFn!==null||(this.scheduledDestroyFn=ym.schedule(()=>{this.componentRef!==null&&(this.componentRef.destroy(),this.componentRef=null)},bm))})}getInputValue(t){return this.runInZone(()=>this.componentRef===null?this.initialInputValues.get(t):this.componentRef.instance[t])}setInputValue(t,n){if(this.componentRef===null){this.initialInputValues.set(t,n);return}this.runInZone(()=>{this.componentRef.setInput(this.inputMap.get(t)??t,n),this.componentRef.hostView.dirty&&(this.componentRef.changeDetectorRef.markForRefresh(),this.cdScheduler.notify(6))})}initializeComponent(t){let n=Se.create({providers:[],parent:this.injector}),r=Cm(t,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(n,r,t),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.appRef.attachView(this.componentRef.hostView),this.componentRef.hostView.detectChanges()}initializeInputs(){for(let[t,n]of this.initialInputValues)this.setInputValue(t,n);this.initialInputValues.clear()}initializeOutputs(t){let n=this.componentFactory.outputs.map(({propName:r,templateName:o})=>{let i=t.instance[r];return new z(s=>{let a=i.subscribe(c=>s.next({name:o,value:c}));return()=>a.unsubscribe()})});this.eventEmitters.next(n)}runInZone(t){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(t):t()}},ps=class extends HTMLElement{ngElementEventsSubscription=null};function gl(e,t){let n=wm(e,t.injector),r=t.strategyFactory||new ds(e,t.injector),o=Im(n);class i extends ps{injector;static observedAttributes=Object.keys(o);get ngElementStrategy(){if(!this._ngElementStrategy){let a=this._ngElementStrategy=r.create(this.injector||t.injector);n.forEach(({propName:c,transform:u})=>{if(!this.hasOwnProperty(c))return;let l=this[c];delete this[c],a.setInputValue(c,l,u)})}return this._ngElementStrategy}_ngElementStrategy;constructor(a){super(),this.injector=a}attributeChangedCallback(a,c,u,l){let[p,g]=o[a];this.ngElementStrategy.setInputValue(p,u,g)}connectedCallback(){let a=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),a=!0),this.ngElementStrategy.connect(this),a||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(a=>{let c=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(c)})}}return n.forEach(({propName:s,transform:a})=>{Object.defineProperty(i.prototype,s,{get(){return this.ngElementStrategy.getInputValue(s)},set(c){this.ngElementStrategy.setInputValue(s,c,a)},configurable:!0,enumerable:!0})}),i}var ml=null;function hs(){return ml}function yl(e){ml??=e}var kr=class{};var Ke=new k("");function vl(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[o,i]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}var Dl="browser",Mm="server";function gs(e){return e===Mm}var Lr=class{};var ys=class extends kr{supportsDOMEvents=!0},vs=class e extends ys{static makeCurrent(){yl(new e)}onAndCancel(t,n,r,o){return t.addEventListener(n,r,o),()=>{t.removeEventListener(n,r,o)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.remove()}createElement(t,n){return n=n||this.getDefaultDocument(),n.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=Tm();return n==null?null:Sm(n)}resetBaseElement(){pn=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return vl(document.cookie,t)}},pn=null;function Tm(){return pn=pn||document.querySelector("base"),pn?pn.getAttribute("href"):null}function Sm(e){return new URL(e,document.baseURI).pathname}var Nm=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||e)};static \u0275prov=q({token:e,factory:e.\u0275fac})}return e})(),Ds=new k(""),bl=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,r){this._zone=r,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,o,i){return this._findPluginFor(r).addEventListener(n,r,o,i)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new P(5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(r){return new(r||e)(L(Ds),L(Y))};static \u0275prov=q({token:e,factory:e.\u0275fac})}return e})(),jr=class{_doc;constructor(t){this._doc=t}manager},Vr="ng-app-id";function El(e){for(let t of e)t.remove()}function Il(e,t){let n=t.createElement("style");return n.textContent=e,n}function xm(e,t,n,r){let o=e.head?.querySelectorAll(`style[${Vr}="${t}"],link[${Vr}="${t}"]`);if(o)for(let i of o)i.removeAttribute(Vr),i instanceof HTMLLinkElement?r.set(i.href.slice(i.href.lastIndexOf("/")+1),{usage:0,elements:[i]}):i.textContent&&n.set(i.textContent,{usage:0,elements:[i]})}function Es(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var Ml=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,this.isServer=gs(i),xm(n,r,this.inline,this.external),this.hosts.add(n.head)}addStyles(n,r){for(let o of n)this.addUsage(o,this.inline,Il);r?.forEach(o=>this.addUsage(o,this.external,Es))}removeStyles(n,r){for(let o of n)this.removeUsage(o,this.inline);r?.forEach(o=>this.removeUsage(o,this.external))}addUsage(n,r,o){let i=r.get(n);i?i.usage++:r.set(n,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,o(n,this.doc)))})}removeUsage(n,r){let o=r.get(n);o&&(o.usage--,o.usage<=0&&(El(o.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])El(n);this.hosts.clear()}addHost(n){this.hosts.add(n);for(let[r,{elements:o}]of this.inline)o.push(this.addElement(n,Il(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(n,Es(r,this.doc)))}removeHost(n){this.hosts.delete(n)}addElement(n,r){return this.nonce&&r.setAttribute("nonce",this.nonce),this.isServer&&r.setAttribute(Vr,this.appId),n.appendChild(r)}static \u0275fac=function(r){return new(r||e)(L(Ke),L(ki),L(Vi,8),L(ln))};static \u0275prov=q({token:e,factory:e.\u0275fac})}return e})(),ms={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},ws=/%COMP%/g;var Tl="%COMP%",Am=`_nghost-${Tl}`,Rm=`_ngcontent-${Tl}`,Om=!0,Pm=new k("",{providedIn:"root",factory:()=>Om});function Fm(e){return Rm.replace(ws,e)}function km(e){return Am.replace(ws,e)}function Sl(e,t){return t.map(n=>n.replace(ws,e))}var wl=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(n,r,o,i,s,a,c,u=null,l=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.platformId=a,this.ngZone=c,this.nonce=u,this.tracingService=l,this.platformIsServer=gs(a),this.defaultRenderer=new hn(n,s,c,this.platformIsServer,this.tracingService)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Ne.ShadowDom&&(r=Ce(ue({},r),{encapsulation:Ne.Emulated}));let o=this.getOrCreateRenderer(n,r);return o instanceof Br?o.applyToHost(n):o instanceof gn&&o.applyStyles(),o}getOrCreateRenderer(n,r){let o=this.rendererByCompId,i=o.get(r.id);if(!i){let s=this.doc,a=this.ngZone,c=this.eventManager,u=this.sharedStylesHost,l=this.removeStylesOnCompDestroy,p=this.platformIsServer,g=this.tracingService;switch(r.encapsulation){case Ne.Emulated:i=new Br(c,u,r,this.appId,l,s,a,p,g);break;case Ne.ShadowDom:return new Is(c,u,n,r,s,a,this.nonce,p,g);default:i=new gn(c,u,r,l,s,a,p,g);break}o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(n){this.rendererByCompId.delete(n)}static \u0275fac=function(r){return new(r||e)(L(bl),L(Ml),L(ki),L(Pm),L(Ke),L(ln),L(Y),L(Vi),L(Cr,8))};static \u0275prov=q({token:e,factory:e.\u0275fac})}return e})(),hn=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(t,n,r,o,i){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=o,this.tracingService=i}destroy(){}destroyNode=null;createElement(t,n){return n?this.doc.createElementNS(ms[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(Cl(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(Cl(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){n.remove()}selectRootElement(t,n){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new P(-5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;let i=ms[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let o=ms[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,o){o&(Le.DashCase|Le.Important)?t.style.setProperty(n,r,o&Le.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&Le.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t!=null&&(t[n]=r)}setValue(t,n){t.nodeValue=n}listen(t,n,r,o){if(typeof t=="string"&&(t=hs().getGlobalEventTarget(this.doc,t),!t))throw new Error(`Unsupported event target ${t} for event ${n}`);let i=this.decoratePreventDefault(r);return this.tracingService!==null&&this.tracingService.wrapEventListener&&(i=this.tracingService.wrapEventListener(t,n,i)),this.eventManager.addEventListener(t,n,i,o)}decoratePreventDefault(t){return n=>{if(n==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(n)):t(n))===!1&&n.preventDefault()}}};function Cl(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var Is=class extends hn{sharedStylesHost;hostEl;shadowRoot;constructor(t,n,r,o,i,s,a,c,u){super(t,i,s,c,u),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let l=o.styles;l=Sl(o.id,l);for(let g of l){let f=document.createElement("style");a&&f.setAttribute("nonce",a),f.textContent=g,this.shadowRoot.appendChild(f)}let p=o.getExternalStyles?.();if(p)for(let g of p){let f=Es(g,i);a&&f.setAttribute("nonce",a),this.shadowRoot.appendChild(f)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(null,n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},gn=class extends hn{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(t,n,r,o,i,s,a,c,u){super(t,i,s,a,c),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o;let l=r.styles;this.styles=u?Sl(u,l):l,this.styleUrls=r.getExternalStyles?.(u)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},Br=class extends gn{contentAttr;hostAttr;constructor(t,n,r,o,i,s,a,c,u){let l=o+"-"+r.id;super(t,n,r,i,s,a,c,u,l),this.contentAttr=Fm(l),this.hostAttr=km(l)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){let r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}},Lm=(()=>{class e extends jr{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o,i){return n.addEventListener(r,o,i),()=>this.removeEventListener(n,r,o,i)}removeEventListener(n,r,o,i){return n.removeEventListener(r,o,i)}static \u0275fac=function(r){return new(r||e)(L(Ke))};static \u0275prov=q({token:e,factory:e.\u0275fac})}return e})(),_l=["alt","control","meta","shift"],Vm={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},jm={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},Bm=(()=>{class e extends jr{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,o,i){let s=e.parseEventName(r),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>hs().onAndCancel(n,s.domEventName,a,i))}static parseEventName(n){let r=n.toLowerCase().split("."),o=r.shift();if(r.length===0||!(o==="keydown"||o==="keyup"))return null;let i=e._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),_l.forEach(u=>{let l=r.indexOf(u);l>-1&&(r.splice(l,1),s+=u+".")}),s+=i,r.length!=0||i.length===0)return null;let c={};return c.domEventName=o,c.fullKey=s,c}static matchEventFullKeyCode(n,r){let o=Vm[n.key]||n.key,i="";return r.indexOf("code.")>-1&&(o=n.code,i="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),_l.forEach(s=>{if(s!==o){let a=jm[s];a(n)&&(i+=s+".")}}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return n==="esc"?"escape":n}static \u0275fac=function(r){return new(r||e)(L(Ke))};static \u0275prov=q({token:e,factory:e.\u0275fac})}return e})();function Nl(e){return pl(Hm(e))}function Hm(e){return{appProviders:[...Wm,...e?.providers??[]],platformProviders:zm}}function Um(){vs.makeCurrent()}function $m(){return new Ge}function Gm(){return hu(document),document}var zm=[{provide:ln,useValue:Dl},{provide:Li,useValue:Um,multi:!0},{provide:Ke,useFactory:Gm,deps:[]}];var Wm=[{provide:hr,useValue:"root"},{provide:Ge,useFactory:$m,deps:[]},{provide:Ds,useClass:Lm,multi:!0,deps:[Ke]},{provide:Ds,useClass:Bm,multi:!0,deps:[Ke]},wl,Ml,bl,{provide:xt,useExisting:wl},{provide:Lr,useClass:Nm,deps:[]},[]];var xl={apiURL:"http://localhost:3003",debug:!0,mode:"local"};var ce=ld(Rl());var Ol="9.3.1";var kt=class e{static SDK_VERSION=Ol;static SDK_VERSION_CODE;static SDK="WEB";static LOG_PREFIX="CooeeSDK";static COOEE="cooee";static SESSION_STORAGE_SCROLL_ID="sleid";static IDLE_TIME_IN_SECONDS=30*60;static IN_APP_WRAPPER_NAME="cooee-wrapper";static IN_APP_CONTAINER_NAME="cooee-container";static IN_APP_DEFAULT_PADDING=15;static EVENT_SCREEN_VIEW="CE Screen View";static EVENT_APP_BACKGROUND="CE App Background";static EVENT_TRIGGER_DISPLAYED="CE Trigger Displayed";static EVENT_CAMPAIGN_HOLDOUT="CE Campaign Holdout";static EVENT_CAMPAIGN_REJECTED="CE Campaign Rejected";static EVENT_CAMPAIGN_FAILED="CE Campaign Failed";static EVENT_TRIGGER_CLOSED="CE Trigger Closed";static EVENT_SCROLL="CE Scroll";static EVENT_TRIGGER_CLICKED="CE Trigger Clicked";static EVENT_FORM_SUBMITTED="CE Form Submitted";static EVENT_ADD_TO_CART="Add To Cart";static EVENT_REMOVE_FROM_CART="Remove From Cart";static EVENT_VIEW_ITEM="View Item";static EVENT_VIEW_CART="View Cart";static EVENT_VIEW_COLLECTION="View Collection";static EVENT_BUY_NOW_CLICKED="Buy Now Clicked";static EVENT_CHECKOUT_STARTED="Checkout Started";static EVENT_REVIEW_CLICKED="Review Clicked";static EVENT_ITEM_THUMBNAIL_CLICKED="Item Thumbnail Clicked";static JS_LOAD_WHITELIST_EVENTS=[this.EVENT_VIEW_ITEM,this.EVENT_VIEW_CART,this.EVENT_VIEW_COLLECTION];static HASH_INITIATE_CHECKOUT="initiate-checkout";static HASH_OPEN_CART_DRAWER="open-cart-drawer";static CTA_EVENT="letscooee:outbound:cta";static ADD_BUNDLE_CTA_INBOUND_EVENT="letscooee:inbound:cta:add-bundle";static CTA_OPEN_CART_EVENT="letscooee:outbound:open-cart";static POPUP_ACTIVITY_EVENT="letscooee:outbound:popup-activities";static THIRD_PARTY_CHECKOUT_EVENT="letscooee:outbound:third-party-initiate-checkout";static CAMPAIGN_DISPLAYED_ACTIVITY="DISPLAYED";static CAMPAIGN_CLICKED_ACTIVITY="CLICKED";static CAMPAIGN_CLOSED_ACTIVITY="CLOSED";static BLACKLISTED_PAGE_NAMES=["collection","product","cart"];static API_CALL_MAX_ATTEMPTS=3;static API_CALL_RETRY_DELAY=1e3;static PLACEHOLDER_IMAGE="https://cdn.global.letscooee.com/images/placeholders/product.png";static CART_UPDATE_BROADCAST="CART_UPDATE";static GRAPHQL_VERSION="2024-10";static GRAPHQL_API_PATH=`/api/${this.GRAPHQL_VERSION}/graphql.json`;static CAMPAIGN_ATTRIBUTE="_letscooee_campaign";static{let t=e.SDK_VERSION.split(".").map(n=>n.padStart(2,"0")).join("");e.SDK_VERSION_CODE=parseInt(t,10)}};var ie=class{static log(...t){ce.default.info(...t)}static debug(...t){ce.default.debug(...t)}static error(...t){ce.default.error(...t)}static warn(...t){ce.default.warn(...t)}static info(...t){ce.default.info(...t)}static trace(...t){ce.default.trace(...t)}static configure(t=kt.LOG_PREFIX){ce.default.useDefaults({formatter:function(r){r.unshift(`${t} (v${kt.SDK_VERSION}):`)}});let n=this.getDebugParam();(n==="1"||n==="on")&&(localStorage.cooeeLogLevel="TRACE"),localStorage.cooeeLogLevel?ce.default.setLevel(ce.default[localStorage.cooeeLogLevel]):ce.default.setLevel(xl.debug?ce.default.TRACE:ce.default.OFF)}static getDebugParam(){return new URL(location.href).searchParams?.get("cooee-debug")}static logBrand(){let t=`
1
+ "use strict";(()=>{var wu=Object.create,Br=Object.defineProperty,bu=Object.defineProperties,Eu=Object.getOwnPropertyDescriptor,_u=Object.getOwnPropertyDescriptors,Iu=Object.getOwnPropertyNames,Xi=Object.getOwnPropertySymbols,Cu=Object.getPrototypeOf,Yo=Object.prototype.hasOwnProperty,Su=Object.prototype.propertyIsEnumerable,Ji=(e,t,n)=>t in e?Br(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,qe=(e,t)=>{for(var n in t||={})Yo.call(t,n)&&Ji(e,n,t[n]);if(Xi)for(var n of Xi(t))Su.call(t,n)&&Ji(e,n,t[n]);return e},wt=(e,t)=>bu(e,_u(t)),Tu=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),xu=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Iu(t))!Yo.call(e,i)&&i!==n&&Br(e,i,{get:()=>t[i],enumerable:!(r=Eu(t,i))||r.enumerable});return e},ku=(e,t,n)=>(n=e!=null?wu(Cu(e)):{},xu(t||!e||!e.__esModule?Br(n,"default",{value:e,enumerable:!0}):n,e)),Ou=Tu((e,t)=>{"use strict";(function(n){"use strict";var r={};r.VERSION="1.6.1";var i,o={},s=function(f,g){return function(){return g.apply(f,arguments)}},l=function(){var f=arguments,g=f[0],p,m;for(m=1;m<f.length;m++)for(p in f[m])!(p in g)&&f[m].hasOwnProperty(p)&&(g[p]=f[m][p]);return g},a=function(f,g){return{value:f,name:g}};r.TRACE=a(1,"TRACE"),r.DEBUG=a(2,"DEBUG"),r.INFO=a(3,"INFO"),r.TIME=a(4,"TIME"),r.WARN=a(5,"WARN"),r.ERROR=a(8,"ERROR"),r.OFF=a(99,"OFF");var u=function(f){this.context=f,this.setLevel(f.filterLevel),this.log=this.info};u.prototype={setLevel:function(f){f&&"value"in f&&(this.context.filterLevel=f)},getLevel:function(){return this.context.filterLevel},enabledFor:function(f){var g=this.context.filterLevel;return f.value>=g.value},trace:function(){this.invoke(r.TRACE,arguments)},debug:function(){this.invoke(r.DEBUG,arguments)},info:function(){this.invoke(r.INFO,arguments)},warn:function(){this.invoke(r.WARN,arguments)},error:function(){this.invoke(r.ERROR,arguments)},time:function(f){typeof f=="string"&&f.length>0&&this.invoke(r.TIME,[f,"start"])},timeEnd:function(f){typeof f=="string"&&f.length>0&&this.invoke(r.TIME,[f,"end"])},invoke:function(f,g){i&&this.enabledFor(f)&&i(g,l({level:f},this.context))}};var c=new u({filterLevel:r.OFF});(function(){var f=r;f.enabledFor=s(c,c.enabledFor),f.trace=s(c,c.trace),f.debug=s(c,c.debug),f.time=s(c,c.time),f.timeEnd=s(c,c.timeEnd),f.info=s(c,c.info),f.warn=s(c,c.warn),f.error=s(c,c.error),f.log=f.info})(),r.setHandler=function(f){i=f},r.setLevel=function(f){c.setLevel(f);for(var g in o)o.hasOwnProperty(g)&&o[g].setLevel(f)},r.getLevel=function(){return c.getLevel()},r.get=function(f){return o[f]||(o[f]=new u(l({name:f},c.context)))},r.createDefaultHandler=function(f){f=f||{},f.formatter=f.formatter||function(m,y){y.name&&m.unshift("["+y.name+"]")};var g={},p=function(m,y){Function.prototype.apply.call(m,console,y)};return typeof console>"u"?function(){}:function(m,y){m=Array.prototype.slice.call(m);var w=console.log,C;y.level===r.TIME?(C=(y.name?"["+y.name+"] ":"")+m[0],m[1]==="start"?console.time?console.time(C):g[C]=new Date().getTime():console.timeEnd?console.timeEnd(C):p(w,[C+": "+(new Date().getTime()-g[C])+"ms"])):(y.level===r.WARN&&console.warn?w=console.warn:y.level===r.ERROR&&console.error?w=console.error:y.level===r.INFO&&console.info?w=console.info:y.level===r.DEBUG&&console.debug?w=console.debug:y.level===r.TRACE&&console.trace&&(w=console.trace),f.formatter(m,y),p(w,m))}},r.useDefaults=function(f){r.setLevel(f&&f.defaultLevel||r.DEBUG),r.setHandler(r.createDefaultHandler(f))},r.setDefaults=r.useDefaults,typeof define=="function"&&define.amd?define(r):typeof t<"u"&&t.exports?t.exports=r:(r._prevLogger=n.Logger,r.noConflict=function(){return n.Logger=r._prevLogger,r},n.Logger=r)})(e)});function Du(e,t){return Object.is(e,t)}var Z=null,Yt=!1,Zr=1,De=Symbol("SIGNAL");function R(e){let t=Z;return Z=e,t}function Nu(){return Z}var $r={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Ru(e){if(Yt)throw new Error("");if(Z===null)return;Z.consumerOnSignalRead(e);let t=Z.nextProducerIndex++;if(_n(Z),t<Z.producerNode.length&&Z.producerNode[t]!==e&&Ot(Z)){let n=Z.producerNode[t];En(n,Z.producerIndexOfThis[t])}Z.producerNode[t]!==e&&(Z.producerNode[t]=e,Z.producerIndexOfThis[t]=Ot(Z)?ns(e,Z,t):0),Z.producerLastReadVersion[t]=e.version}function Au(){Zr++}function Vu(e){if(!(Ot(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===Zr)){if(!e.producerMustRecompute(e)&&!es(e)){eo(e);return}e.producerRecomputeValue(e),eo(e)}}function Xo(e){if(e.liveConsumerNode===void 0)return;let t=Yt;Yt=!0;try{for(let n of e.liveConsumerNode)n.dirty||Mu(n)}finally{Yt=t}}function Jo(){return Z?.consumerAllowSignalWrites!==!1}function Mu(e){e.dirty=!0,Xo(e),e.consumerMarkedDirty?.(e)}function eo(e){e.dirty=!1,e.lastCleanEpoch=Zr}function to(e){return e&&(e.nextProducerIndex=0),R(e)}function Pu(e,t){if(R(t),!(!e||e.producerNode===void 0||e.producerIndexOfThis===void 0||e.producerLastReadVersion===void 0)){if(Ot(e))for(let n=e.nextProducerIndex;n<e.producerNode.length;n++)En(e.producerNode[n],e.producerIndexOfThis[n]);for(;e.producerNode.length>e.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function es(e){_n(e);for(let t=0;t<e.producerNode.length;t++){let n=e.producerNode[t],r=e.producerLastReadVersion[t];if(r!==n.version||(Vu(n),r!==n.version))return!0}return!1}function ts(e){if(_n(e),Ot(e))for(let t=0;t<e.producerNode.length;t++)En(e.producerNode[t],e.producerIndexOfThis[t]);e.producerNode.length=e.producerLastReadVersion.length=e.producerIndexOfThis.length=0,e.liveConsumerNode&&(e.liveConsumerNode.length=e.liveConsumerIndexOfThis.length=0)}function ns(e,t,n){if(rs(e),e.liveConsumerNode.length===0&&is(e))for(let r=0;r<e.producerNode.length;r++)e.producerIndexOfThis[r]=ns(e.producerNode[r],e,r);return e.liveConsumerIndexOfThis.push(n),e.liveConsumerNode.push(t)-1}function En(e,t){if(rs(e),e.liveConsumerNode.length===1&&is(e))for(let r=0;r<e.producerNode.length;r++)En(e.producerNode[r],e.producerIndexOfThis[r]);let n=e.liveConsumerNode.length-1;if(e.liveConsumerNode[t]=e.liveConsumerNode[n],e.liveConsumerIndexOfThis[t]=e.liveConsumerIndexOfThis[n],e.liveConsumerNode.length--,e.liveConsumerIndexOfThis.length--,t<e.liveConsumerNode.length){let r=e.liveConsumerIndexOfThis[t],i=e.liveConsumerNode[t];_n(i),i.producerIndexOfThis[r]=t}}function Ot(e){return e.consumerIsAlwaysLive||(e?.liveConsumerNode?.length??0)>0}function _n(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function rs(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function is(e){return e.producerNode!==void 0}function Fu(){throw new Error}var os=Fu;function ss(e){os(e)}function ju(e){os=e}var Lu=null;function Hu(e){let t=Object.create(Uu);t.value=e;let n=()=>(Ru(t),t.value);return n[De]=t,n}function ls(e,t){Jo()||ss(e),e.equal(e.value,t)||(e.value=t,Bu(e))}function zu(e,t){Jo()||ss(e),ls(e,t(e.value))}var Uu=wt(qe({},$r),{equal:Du,value:void 0,kind:"signal"});function Bu(e){e.version++,Au(),Xo(e),Lu?.()}function $(e){return typeof e=="function"}function as(e){let t=e(n=>{Error.call(n),n.stack=new Error().stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var Ln=as(e=>function(t){e(this),this.message=t?`${t.length} errors occurred during unsubscription:
2
+ ${t.map((n,r)=>`${r+1}) ${n.toString()}`).join(`
3
+ `)}`:"",this.name="UnsubscriptionError",this.errors=t});function rr(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var Se=class ir{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let o of n)o.remove(this);else n.remove(this);let{initialTeardown:r}=this;if($(r))try{r()}catch(o){t=o instanceof Ln?o.errors:[o]}let{_finalizers:i}=this;if(i){this._finalizers=null;for(let o of i)try{no(o)}catch(s){t=t??[],s instanceof Ln?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Ln(t)}}add(t){var n;if(t&&t!==this)if(this.closed)no(t);else{if(t instanceof ir){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&rr(n,t)}remove(t){let{_finalizers:n}=this;n&&rr(n,t),t instanceof ir&&t._removeParent(this)}};Se.EMPTY=(()=>{let e=new Se;return e.closed=!0,e})();var us=Se.EMPTY;function cs(e){return e instanceof Se||e&&"closed"in e&&$(e.remove)&&$(e.add)&&$(e.unsubscribe)}function no(e){$(e)?e():e.unsubscribe()}var Ke={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},ln={setTimeout(e,t,...n){let{delegate:r}=ln;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=ln;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function fs(e){ln.setTimeout(()=>{let{onUnhandledError:t}=Ke;if(t)t(e);else throw e})}function ro(){}var Zu=Gr("C",void 0,void 0);function $u(e){return Gr("E",void 0,e)}function Gu(e){return Gr("N",e,void 0)}function Gr(e,t,n){return{kind:e,value:t,error:n}}var je=null;function Xt(e){if(Ke.useDeprecatedSynchronousErrorHandling){let t=!je;if(t&&(je={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=je;if(je=null,n)throw r}}else e()}function Wu(e){Ke.useDeprecatedSynchronousErrorHandling&&je&&(je.errorThrown=!0,je.error=e)}var Wr=class extends Se{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,cs(e)&&e.add(this)):this.destination=Yu}static create(e,t,n){return new or(e,t,n)}next(e){this.isStopped?zn(Gu(e),this):this._next(e)}error(e){this.isStopped?zn($u(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?zn(Zu,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},qu=Function.prototype.bind;function Hn(e,t){return qu.call(e,t)}var Ku=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:t}=this;if(t.next)try{t.next(e)}catch(n){Kt(n)}}error(e){let{partialObserver:t}=this;if(t.error)try{t.error(e)}catch(n){Kt(n)}else Kt(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(t){Kt(t)}}},or=class extends Wr{constructor(e,t,n){super();let r;if($(e)||!e)r={next:e??void 0,error:t??void 0,complete:n??void 0};else{let i;this&&Ke.useDeprecatedNextContext?(i=Object.create(e),i.unsubscribe=()=>this.unsubscribe(),r={next:e.next&&Hn(e.next,i),error:e.error&&Hn(e.error,i),complete:e.complete&&Hn(e.complete,i)}):r=e}this.destination=new Ku(r)}};function Kt(e){Ke.useDeprecatedSynchronousErrorHandling?Wu(e):fs(e)}function Qu(e){throw e}function zn(e,t){let{onStoppedNotification:n}=Ke;n&&ln.setTimeout(()=>n(e,t))}var Yu={closed:!0,next:ro,error:Qu,complete:ro},qr=typeof Symbol=="function"&&Symbol.observable||"@@observable";function hs(e){return e}function Xu(e){return e.length===0?hs:e.length===1?e[0]:function(t){return e.reduce((n,r)=>r(n),t)}}var re=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,i){let o=ec(n)?n:new or(n,r,i);return Xt(()=>{let{operator:s,source:l}=this;o.add(s?s.call(o,l):l?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=io(r),new r((i,o)=>{let s=new or({next:l=>{try{n(l)}catch(a){o(a),s.unsubscribe()}},error:o,complete:i});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[qr](){return this}pipe(...n){return Xu(n)(this)}toPromise(n){return n=io(n),new n((r,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>r(o))})}}return e.create=t=>new e(t),e})();function io(e){var t;return(t=e??Ke.Promise)!==null&&t!==void 0?t:Promise}function Ju(e){return e&&$(e.next)&&$(e.error)&&$(e.complete)}function ec(e){return e&&e instanceof Wr||Ju(e)&&cs(e)}function tc(e){return $(e?.lift)}function jt(e){return t=>{if(tc(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function at(e,t,n,r,i){return new nc(e,t,n,r,i)}var nc=class extends Wr{constructor(e,t,n,r,i,o){super(e),this.onFinalize=i,this.shouldUnsubscribe=o,this._next=t?function(s){try{t(s)}catch(l){e.error(l)}}:super._next,this._error=r?function(s){try{r(s)}catch(l){e.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(s){e.error(s)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:t}=this;super.unsubscribe(),!t&&((e=this.onFinalize)===null||e===void 0||e.call(this))}}},rc=as(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}),Lt=(()=>{class e extends re{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new oo(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new rc}next(n){Xt(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){Xt(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){Xt(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:i,observers:o}=this;return r||i?us:(this.currentObservers=null,o.push(n),new Se(()=>{this.currentObservers=null,rr(o,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:i,isStopped:o}=this;r?n.error(i):o&&n.complete()}asObservable(){let n=new re;return n.source=this,n}}return e.create=(t,n)=>new oo(t,n),e})(),oo=class extends Lt{constructor(e,t){super(),this.destination=e,this.source=t}next(e){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.next)===null||n===void 0||n.call(t,e)}error(e){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.error)===null||n===void 0||n.call(t,e)}complete(){var e,t;(t=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||t===void 0||t.call(e)}_subscribe(e){var t,n;return(n=(t=this.source)===null||t===void 0?void 0:t.subscribe(e))!==null&&n!==void 0?n:us}},ic=class extends Lt{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){let t=super._subscribe(e);return!t.closed&&e.next(this._value),t}getValue(){let{hasError:e,thrownError:t,_value:n}=this;if(e)throw t;return this._throwIfClosed(),n}next(e){super.next(this._value=e)}},ds={now(){return(ds.delegate||Date).now()},delegate:void 0},oc=class extends Lt{constructor(e=1/0,t=1/0,n=ds){super(),this._bufferSize=e,this._windowTime=t,this._timestampProvider=n,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=t===1/0,this._bufferSize=Math.max(1,e),this._windowTime=Math.max(1,t)}next(e){let{isStopped:t,_buffer:n,_infiniteTimeWindow:r,_timestampProvider:i,_windowTime:o}=this;t||(n.push(e),!r&&n.push(i.now()+o)),this._trimBuffer(),super.next(e)}_subscribe(e){this._throwIfClosed(),this._trimBuffer();let t=this._innerSubscribe(e),{_infiniteTimeWindow:n,_buffer:r}=this,i=r.slice();for(let o=0;o<i.length&&!e.closed;o+=n?1:2)e.next(i[o]);return this._checkFinalizedStatuses(e),t}_trimBuffer(){let{_bufferSize:e,_timestampProvider:t,_buffer:n,_infiniteTimeWindow:r}=this,i=(r?1:2)*e;if(e<1/0&&i<n.length&&n.splice(0,n.length-i),!r){let o=t.now(),s=0;for(let l=1;l<n.length&&n[l]<=o;l+=2)s=l;s&&n.splice(0,s+1)}}},sc=new re(e=>e.complete());function lc(e){return e&&$(e.schedule)}function ps(e){return e[e.length-1]}function ac(e){return lc(ps(e))?e.pop():void 0}function uc(e,t){return typeof ps(e)=="number"?e.pop():t}function cc(e,t,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function l(c){try{u(r.next(c))}catch(f){s(f)}}function a(c){try{u(r.throw(c))}catch(f){s(f)}}function u(c){c.done?o(c.value):i(c.value).then(l,a)}u((r=r.apply(e,t||[])).next())})}function so(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function it(e){return this instanceof it?(this.v=e,this):new it(e)}function fc(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,o=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),l("next"),l("throw"),l("return",s),i[Symbol.asyncIterator]=function(){return this},i;function s(p){return function(m){return Promise.resolve(m).then(p,f)}}function l(p,m){r[p]&&(i[p]=function(y){return new Promise(function(w,C){o.push([p,y,w,C])>1||a(p,y)})},m&&(i[p]=m(i[p])))}function a(p,m){try{u(r[p](m))}catch(y){g(o[0][3],y)}}function u(p){p.value instanceof it?Promise.resolve(p.value.v).then(c,f):g(o[0][2],p)}function c(p){a("next",p)}function f(p){a("throw",p)}function g(p,m){p(m),o.shift(),o.length&&a(o[0][0],o[0][1])}}function hc(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof so=="function"?so(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=e[o]&&function(s){return new Promise(function(l,a){s=e[o](s),i(l,a,s.done,s.value)})}}function i(o,s,l,a){Promise.resolve(a).then(function(u){o({value:u,done:l})},s)}}var gs=e=>e&&typeof e.length=="number"&&typeof e!="function";function ms(e){return $(e?.then)}function ys(e){return $(e[qr])}function vs(e){return Symbol.asyncIterator&&$(e?.[Symbol.asyncIterator])}function ws(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function dc(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var bs=dc();function Es(e){return $(e?.[bs])}function _s(e){return fc(this,arguments,function*(){let t=e.getReader();try{for(;;){let{value:n,done:r}=yield it(t.read());if(r)return yield it(void 0);yield yield it(n)}}finally{t.releaseLock()}})}function Is(e){return $(e?.getReader)}function Qe(e){if(e instanceof re)return e;if(e!=null){if(ys(e))return pc(e);if(gs(e))return gc(e);if(ms(e))return mc(e);if(vs(e))return Cs(e);if(Es(e))return yc(e);if(Is(e))return vc(e)}throw ws(e)}function pc(e){return new re(t=>{let n=e[qr]();if($(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function gc(e){return new re(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function mc(e){return new re(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,fs)})}function yc(e){return new re(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function Cs(e){return new re(t=>{wc(e,t).catch(n=>t.error(n))})}function vc(e){return Cs(_s(e))}function wc(e,t){var n,r,i,o;return cc(this,void 0,void 0,function*(){try{for(n=hc(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){i={error:s}}finally{try{r&&!r.done&&(o=n.return)&&(yield o.call(n))}finally{if(i)throw i.error}}t.complete()})}function Ne(e,t,n,r=0,i=!1){let o=t.schedule(function(){n(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(o),!i)return o}function Ss(e,t=0){return jt((n,r)=>{n.subscribe(at(r,i=>Ne(r,e,()=>r.next(i),t),()=>Ne(r,e,()=>r.complete(),t),i=>Ne(r,e,()=>r.error(i),t)))})}function Ts(e,t=0){return jt((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function bc(e,t){return Qe(e).pipe(Ts(t),Ss(t))}function Ec(e,t){return Qe(e).pipe(Ts(t),Ss(t))}function _c(e,t){return new re(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function Ic(e,t){return new re(n=>{let r;return Ne(n,t,()=>{r=e[bs](),Ne(n,t,()=>{let i,o;try{({value:i,done:o}=r.next())}catch(s){n.error(s);return}o?n.complete():n.next(i)},0,!0)}),()=>$(r?.return)&&r.return()})}function xs(e,t){if(!e)throw new Error("Iterable cannot be null");return new re(n=>{Ne(n,t,()=>{let r=e[Symbol.asyncIterator]();Ne(n,t,()=>{r.next().then(i=>{i.done?n.complete():n.next(i.value)})},0,!0)})})}function Cc(e,t){return xs(_s(e),t)}function Sc(e,t){if(e!=null){if(ys(e))return bc(e,t);if(gs(e))return _c(e,t);if(ms(e))return Ec(e,t);if(vs(e))return xs(e,t);if(Es(e))return Ic(e,t);if(Is(e))return Cc(e,t)}throw ws(e)}function Tc(e,t){return t?Sc(e,t):Qe(e)}function ks(e,t){return jt((n,r)=>{let i=0;n.subscribe(at(r,o=>{r.next(e.call(t,o,i++))}))})}function xc(e,t,n,r,i,o,s,l){let a=[],u=0,c=0,f=!1,g=()=>{f&&!a.length&&!u&&t.complete()},p=y=>u<r?m(y):a.push(y),m=y=>{o&&t.next(y),u++;let w=!1;Qe(n(y,c++)).subscribe(at(t,C=>{i?.(C),o?p(C):t.next(C)},()=>{w=!0},void 0,()=>{if(w)try{for(u--;a.length&&u<r;){let C=a.shift();s?Ne(t,s,()=>m(C)):m(C)}g()}catch(C){t.error(C)}}))};return e.subscribe(at(t,p,()=>{f=!0,g()})),()=>{l?.()}}function Os(e,t,n=1/0){return $(t)?Os((r,i)=>ks((o,s)=>t(r,o,i,s))(Qe(e(r,i))),n):(typeof t=="number"&&(n=t),jt((r,i)=>xc(r,i,e,n)))}function kc(e=1/0){return Os(hs,e)}function Oc(...e){let t=ac(e),n=uc(e,1/0),r=e;return r.length?r.length===1?Qe(r[0]):kc(n)(Tc(r,t)):sc}function Dc(e,t){return jt((n,r)=>{let i=null,o=0,s=!1,l=()=>s&&!i&&r.complete();n.subscribe(at(r,a=>{i?.unsubscribe();let u=0,c=o++;Qe(e(a,c)).subscribe(i=at(r,f=>r.next(t?t(a,f,c,u++):f),()=>{i=null,l()}))},()=>{s=!0,l()}))})}var Ds="https://g.co/ng/security#xss",M=class extends Error{code;constructor(e,t){super(Nc(e,t)),this.code=e}};function Nc(e,t){return`${`NG0${Math.abs(e)}`}${t?": "+t:""}`}function Rc(e){return{toString:e}.toString()}function L(e){for(let t in e)if(e[t]===L)return t;throw Error("Could not find renamed property on target object.")}function de(e){if(typeof e=="string")return e;if(Array.isArray(e))return`[${e.map(de).join(", ")}]`;if(e==null)return""+e;let t=e.overriddenName||e.name;if(t)return`${t}`;let n=e.toString();if(n==null)return""+n;let r=n.indexOf(`
4
+ `);return r>=0?n.slice(0,r):n}function lo(e,t){return e?t?`${e} ${t}`:e:t||""}var Ac=L({__forward_ref__:L});function Ns(e){return e.__forward_ref__=Ns,e.toString=function(){return de(this())},e}function he(e){return Vc(e)?e():e}function Vc(e){return typeof e=="function"&&e.hasOwnProperty(Ac)&&e.__forward_ref__===Ns}function W(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Kr(e){return ao(e,Rs)||ao(e,As)}function ao(e,t){return e.hasOwnProperty(t)?e[t]:null}function Mc(e){return e&&(e[Rs]||e[As])||null}function uo(e){return e&&(e.hasOwnProperty(co)||e.hasOwnProperty(Pc))?e[co]:null}var Rs=L({\u0275prov:L}),co=L({\u0275inj:L}),As=L({ngInjectableDef:L}),Pc=L({ngInjectorDef:L}),F=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(e,t){this._desc=e,this.\u0275prov=void 0,typeof t=="number"?this.__NG_ELEMENT_ID__=t:t!==void 0&&(this.\u0275prov=W({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Vs(e){return e&&!!e.\u0275providers}var Fc=L({\u0275cmp:L}),jc=L({\u0275dir:L}),Lc=L({\u0275pipe:L}),fo=L({\u0275fac:L}),kt=L({__NG_ELEMENT_ID__:L}),ho=L({__NG_ENV_ID__:L});function Qr(e){return typeof e=="string"?e:e==null?"":String(e)}function Hc(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():Qr(e)}function zc(e,t){throw new M(-200,e)}function Yr(e,t){throw new M(-201,!1)}var x=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(x||{}),sr;function Ms(){return sr}function J(e){let t=sr;return sr=e,t}function Ps(e,t,n){let r=Kr(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&x.Optional)return null;if(t!==void 0)return t;Yr(e,"Injector")}var Uc={},Dt=Uc,Bc="__NG_DI_FLAG__",an="ngTempTokenPath",Zc="ngTokenPath",$c=/\n/gm,Gc="\u0275",po="__source",ot;function Wc(){return ot}function ke(e){let t=ot;return ot=e,t}function qc(e,t=x.Default){if(ot===void 0)throw new M(-203,!1);return ot===null?Ps(e,void 0,t):ot.get(e,t&x.Optional?null:void 0,t)}function j(e,t=x.Default){return(Ms()||qc)(he(e),t)}function V(e,t=x.Default){return j(e,In(t))}function In(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function lr(e){let t=[];for(let n=0;n<e.length;n++){let r=he(e[n]);if(Array.isArray(r)){if(r.length===0)throw new M(900,!1);let i,o=x.Default;for(let s=0;s<r.length;s++){let l=r[s],a=Kc(l);typeof a=="number"?a===-1?i=l.token:o|=a:i=l}t.push(j(i,o))}else t.push(j(r))}return t}function Kc(e){return e[Bc]}function Qc(e,t,n,r){let i=e[an];throw t[po]&&i.unshift(t[po]),e.message=Yc(`
5
+ `+e.message,i,n,r),e[Zc]=i,e[an]=null,e}function Yc(e,t,n,r=null){e=e&&e.charAt(0)===`
6
+ `&&e.charAt(1)==Gc?e.slice(2):e;let i=de(t);if(Array.isArray(t))i=t.map(de).join(" -> ");else if(typeof t=="object"){let o=[];for(let s in t)if(t.hasOwnProperty(s)){let l=t[s];o.push(s+":"+(typeof l=="string"?JSON.stringify(l):de(l)))}i=`{${o.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${e.replace($c,`
7
+ `)}`}function ut(e,t){return e.hasOwnProperty(fo)?e[fo]:null}function Xr(e,t){e.forEach(n=>Array.isArray(n)?Xr(n,t):t(n))}function Xc(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Fs(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Jc(e,t,n,r){let i=e.length;if(i==t)e.push(n,r);else if(i===1)e.push(r,e[0]),e[0]=n;else{for(i--,e.push(e[i-1],e[i]);i>t;){let o=i-2;e[i]=e[o],i--}e[t]=n,e[t+1]=r}}function ef(e,t,n){let r=Ht(e,t);return r>=0?e[r|1]=n:(r=~r,Jc(e,r,t,n)),r}function Un(e,t){let n=Ht(e,t);if(n>=0)return e[n|1]}function Ht(e,t){return tf(e,t,1)}function tf(e,t,n){let r=0,i=e.length>>n;for(;i!==r;){let o=r+(i-r>>1),s=e[o<<n];if(t===s)return o<<n;s>t?i=o:r=o+1}return~(i<<n)}var ct={},Ue=[],un=new F(""),js=new F("",-1),Ls=new F(""),Hs=class{get(e,t=Dt){if(t===Dt){let n=new Error(`NullInjectorError: No provider for ${de(e)}!`);throw n.name="NullInjectorError",n}return t}};function Cn(e){return e[Fc]||null}function zs(e){return e[jc]||null}function Us(e){return e[Lc]||null}function nf(e){let t=Cn(e)||zs(e)||Us(e);return t!==null&&t.standalone}function rf(e){return{\u0275providers:e}}function of(...e){return{\u0275providers:Bs(!0,e),\u0275fromNgModule:!0}}function Bs(e,...t){let n=[],r=new Set,i,o=s=>{n.push(s)};return Xr(t,s=>{let l=s;ar(l,o,[],r)&&(i||=[],i.push(l))}),i!==void 0&&Zs(i,o),n}function Zs(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:i}=e[n];Jr(i,o=>{t(o,r)})}}function ar(e,t,n,r){if(e=he(e),!e)return!1;let i=null,o=uo(e),s=!o&&Cn(e);if(!o&&!s){let a=e.ngModule;if(o=uo(a),o)i=a;else return!1}else{if(s&&!s.standalone)return!1;i=e}let l=r.has(i);if(s){if(l)return!1;if(r.add(i),s.dependencies){let a=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let u of a)ar(u,t,n,r)}}else if(o){if(o.imports!=null&&!l){r.add(i);let u;try{Xr(o.imports,c=>{ar(c,t,n,r)&&(u||=[],u.push(c))})}finally{}u!==void 0&&Zs(u,t)}if(!l){let u=ut(i)||(()=>new i);t({provide:i,useFactory:u,deps:Ue},i),t({provide:Ls,useValue:i,multi:!0},i),t({provide:un,useValue:()=>j(i),multi:!0},i)}let a=o.providers;if(a!=null&&!l){let u=e;Jr(a,c=>{t(c,u)})}}else return!1;return i!==e&&e.providers!==void 0}function Jr(e,t){for(let n of e)Vs(n)&&(n=n.\u0275providers),Array.isArray(n)?Jr(n,t):t(n)}var sf=L({provide:String,useValue:L});function $s(e){return e!==null&&typeof e=="object"&&sf in e}function lf(e){return!!(e&&e.useExisting)}function af(e){return!!(e&&e.useFactory)}function ur(e){return typeof e=="function"}var ei=new F(""),Jt={},uf={},Bn;function ti(){return Bn===void 0&&(Bn=new Hs),Bn}var Nt=class{},ni=class extends Nt{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(e,t,n,r){super(),this.parent=t,this.source=n,this.scopes=r,fr(e,o=>this.processProvider(o)),this.records.set(js,tt(void 0,this)),r.has("environment")&&this.records.set(Nt,tt(void 0,this));let i=this.records.get(ei);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Ls,Ue,x.Self))}destroy(){St(this),this._destroyed=!0;let e=R(null);try{for(let n of this._ngOnDestroyHooks)n.ngOnDestroy();let t=this._onDestroyHooks;this._onDestroyHooks=[];for(let n of t)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),R(e)}}onDestroy(e){return St(this),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){St(this);let t=ke(this),n=J(void 0),r;try{return e()}finally{ke(t),J(n)}}get(e,t=Dt,n=x.Default){if(St(this),e.hasOwnProperty(ho))return e[ho](this);n=In(n);let r,i=ke(this),o=J(void 0);try{if(!(n&x.SkipSelf)){let l=this.records.get(e);if(l===void 0){let a=gf(e)&&Kr(e);a&&this.injectableDefInScope(a)?l=tt(cr(e),Jt):l=null,this.records.set(e,l)}if(l!=null)return this.hydrate(e,l)}let s=n&x.Self?ti():this.parent;return t=n&x.Optional&&t===Dt?null:t,s.get(e,t)}catch(s){if(s.name==="NullInjectorError"){if((s[an]=s[an]||[]).unshift(de(e)),i)throw s;return Qc(s,e,"R3InjectorError",this.source)}else throw s}finally{J(o),ke(i)}}resolveInjectorInitializers(){let e=R(null),t=ke(this),n=J(void 0),r;try{let i=this.get(un,Ue,x.Self);for(let o of i)o()}finally{ke(t),J(n),R(e)}}toString(){let e=[],t=this.records;for(let n of t.keys())e.push(de(n));return`R3Injector[${e.join(", ")}]`}processProvider(e){e=he(e);let t=ur(e)?e:he(e&&e.provide),n=ff(e);if(!ur(e)&&e.multi===!0){let r=this.records.get(t);r||(r=tt(void 0,Jt,!0),r.factory=()=>lr(r.multi),this.records.set(t,r)),t=e,r.multi.push(e)}this.records.set(t,n)}hydrate(e,t){let n=R(null);try{return t.value===Jt&&(t.value=uf,t.value=t.factory()),typeof t.value=="object"&&t.value&&pf(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}finally{R(n)}}injectableDefInScope(e){if(!e.providedIn)return!1;let t=he(e.providedIn);return typeof t=="string"?t==="any"||this.scopes.has(t):this.injectorDefTypes.has(t)}removeOnDestroy(e){let t=this._onDestroyHooks.indexOf(e);t!==-1&&this._onDestroyHooks.splice(t,1)}};function cr(e){let t=Kr(e),n=t!==null?t.factory:ut(e);if(n!==null)return n;if(e instanceof F)throw new M(204,!1);if(e instanceof Function)return cf(e);throw new M(204,!1)}function cf(e){if(e.length>0)throw new M(204,!1);let t=Mc(e);return t!==null?()=>t.factory(e):()=>new e}function ff(e){if($s(e))return tt(void 0,e.useValue);{let t=hf(e);return tt(t,Jt)}}function hf(e,t,n){let r;if(ur(e)){let i=he(e);return ut(i)||cr(i)}else if($s(e))r=()=>he(e.useValue);else if(af(e))r=()=>e.useFactory(...lr(e.deps||[]));else if(lf(e))r=()=>j(he(e.useExisting));else{let i=he(e&&(e.useClass||e.provide));if(df(e))r=()=>new i(...lr(e.deps));else return ut(i)||cr(i)}return r}function St(e){if(e.destroyed)throw new M(205,!1)}function tt(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function df(e){return!!e.deps}function pf(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function gf(e){return typeof e=="function"||typeof e=="object"&&e instanceof F}function fr(e,t){for(let n of e)Array.isArray(n)?fr(n,t):n&&Vs(n)?fr(n.\u0275providers,t):t(n)}function Gs(e,t){e instanceof ni&&St(e);let n,r=ke(e),i=J(void 0);try{return t()}finally{ke(r),J(i)}}function mf(){return Ms()!==void 0||Wc()!=null}var xe=0,O=1,_=2,se=3,pe=4,we=5,Rt=6,go=7,q=8,At=9,Te=10,ie=11,Vt=12,mo=13,bt=14,ve=15,ft=16,nt=17,ht=18,Sn=19,Ws=20,Re=21,Zn=22,cn=23,te=24,$n=25,K=26,qs=1,Mt=7,yf=8,fn=9,ee=10;function He(e){return Array.isArray(e)&&typeof e[qs]=="object"}function Ye(e){return Array.isArray(e)&&e[qs]===!0}function Ks(e){return(e.flags&4)!==0}function Tn(e){return e.componentOffset>-1}function Qs(e){return(e.flags&1)===1}function Xe(e){return!!e.template}function hn(e){return(e[_]&512)!==0}function zt(e){return(e[_]&256)===256}var vf=class{previousValue;currentValue;firstChange;constructor(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}isFirstChange(){return this.firstChange}};function Ys(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}function wf(e){return e.type.prototype.ngOnChanges&&(e.setInput=Ef),bf}function bf(){let e=Js(this),t=e?.current;if(t){let n=e.previous;if(n===ct)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Ef(e,t,n,r,i){let o=this.declaredInputs[r],s=Js(e)||_f(e,{previous:ct,current:null}),l=s.current||(s.current={}),a=s.previous,u=a[o];l[o]=new vf(u&&u.currentValue,n,a===ct),Ys(e,t,i,n)}var Xs="__ngSimpleChanges__";function Js(e){return e[Xs]||null}function _f(e,t){return e[Xs]=t}var If=null,H=function(e,t=null,n){If?.(e,t,n)},Cf="svg",Sf="math";function Ae(e){for(;Array.isArray(e);)e=e[xe];return e}function el(e,t){return Ae(t[e])}function Je(e,t){return Ae(t[e.index])}function ri(e,t){return e.data[t]}function ii(e,t){return e[t]}function Be(e,t){let n=t[e];return He(n)?n:n[xe]}function oi(e){return(e[_]&128)===128}function dt(e,t){return t==null?null:e[t]}function tl(e){e[nt]=0}function si(e){e[_]&1024||(e[_]|=1024,oi(e)&&kn(e))}function Tf(e,t){for(;e>0;)t=t[bt],e--;return t}function xn(e){return!!(e[_]&9216||e[te]?.dirty)}function hr(e){e[Te].changeDetectionScheduler?.notify(8),e[_]&64&&(e[_]|=1024),xn(e)&&kn(e)}function kn(e){e[Te].changeDetectionScheduler?.notify(0);let t=Ze(e);for(;t!==null&&!(t[_]&8192||(t[_]|=8192,!oi(t)));)t=Ze(t)}function nl(e,t){if(zt(e))throw new M(911,!1);e[Re]===null&&(e[Re]=[]),e[Re].push(t)}function xf(e,t){if(e[Re]===null)return;let n=e[Re].indexOf(t);n!==-1&&e[Re].splice(n,1)}function Ze(e){let t=e[se];return Ye(t)?t[se]:t}var k={lFrame:fl(null),bindingsEnabled:!0,skipHydrationRootTNode:null},dr=!1;function kf(){return k.lFrame.elementDepthCount}function Of(){k.lFrame.elementDepthCount++}function Df(){k.lFrame.elementDepthCount--}function rl(){return k.bindingsEnabled}function Nf(){return k.skipHydrationRootTNode!==null}function Rf(e){return k.skipHydrationRootTNode===e}function Af(){k.skipHydrationRootTNode=null}function z(){return k.lFrame.lView}function ge(){return k.lFrame.tView}function Ut(){let e=il();for(;e!==null&&e.type===64;)e=e.parent;return e}function il(){return k.lFrame.currentTNode}function Vf(){let e=k.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Et(e,t){let n=k.lFrame;n.currentTNode=e,n.isParent=t}function ol(){return k.lFrame.isParent}function Mf(){k.lFrame.isParent=!1}function Pf(){return k.lFrame.contextLView}function sl(){return dr}function yo(e){let t=dr;return dr=e,t}function ll(){let e=k.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Ff(e){return k.lFrame.bindingIndex=e}function On(){return k.lFrame.bindingIndex++}function jf(e){let t=k.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Lf(){return k.lFrame.inI18n}function Hf(e,t){let n=k.lFrame;n.bindingIndex=n.bindingRootIndex=e,pr(t)}function zf(){return k.lFrame.currentDirectiveIndex}function pr(e){k.lFrame.currentDirectiveIndex=e}function Uf(e){let t=k.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function al(e){k.lFrame.currentQueryIndex=e}function Bf(e){let t=e[O];return t.type===2?t.declTNode:t.type===1?e[we]:null}function ul(e,t,n){if(n&x.SkipSelf){let i=t,o=e;for(;(i=i.parent,i===null&&!(n&x.Host))&&(i=Bf(o),!(i===null||(o=o[bt],i.type&10))););if(i===null)return!1;t=i,e=o}let r=k.lFrame=cl();return r.currentTNode=t,r.lView=e,!0}function li(e){let t=cl(),n=e[O];k.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function cl(){let e=k.lFrame,t=e===null?null:e.child;return t===null?fl(e):t}function fl(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function hl(){let e=k.lFrame;return k.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var dl=hl;function ai(){let e=hl();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Zf(e){return(k.lFrame.contextLView=Tf(e,k.lFrame.contextLView))[q]}function Me(){return k.lFrame.selectedIndex}function $e(e){k.lFrame.selectedIndex=e}function $f(){let e=k.lFrame;return ri(e.tView,e.selectedIndex)}function Gf(){return k.lFrame.currentNamespace}var pl=!0;function ui(){return pl}function ci(e){pl=e}function Wf(e,t,n){let{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=t.type.prototype;if(r){let s=wf(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}i&&(n.preOrderHooks??=[]).push(0-e,i),o&&((n.preOrderHooks??=[]).push(e,o),(n.preOrderCheckHooks??=[]).push(e,o))}function gl(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){let i=e.data[n].type.prototype,{ngAfterContentInit:o,ngAfterContentChecked:s,ngAfterViewInit:l,ngAfterViewChecked:a,ngOnDestroy:u}=i;o&&(e.contentHooks??=[]).push(-n,o),s&&((e.contentHooks??=[]).push(n,s),(e.contentCheckHooks??=[]).push(n,s)),l&&(e.viewHooks??=[]).push(-n,l),a&&((e.viewHooks??=[]).push(n,a),(e.viewCheckHooks??=[]).push(n,a)),u!=null&&(e.destroyHooks??=[]).push(n,u)}}function en(e,t,n){ml(e,t,3,n)}function tn(e,t,n,r){(e[_]&3)===n&&ml(e,t,n,r)}function Gn(e,t){let n=e[_];(n&3)===t&&(n&=16383,n+=1,e[_]=n)}function ml(e,t,n,r){let i=r!==void 0?e[nt]&65535:0,o=r??-1,s=t.length-1,l=0;for(let a=i;a<s;a++)if(typeof t[a+1]=="number"){if(l=t[a],r!=null&&l>=r)break}else t[a]<0&&(e[nt]+=65536),(l<o||o==-1)&&(qf(e,n,t,a),e[nt]=(e[nt]&4294901760)+a+2),a++}function vo(e,t){H(4,e,t);let n=R(null);try{t.call(e)}finally{R(n),H(5,e,t)}}function qf(e,t,n,r){let i=n[r]<0,o=n[r+1],s=i?-n[r]:n[r],l=e[s];i?e[_]>>14<e[nt]>>16&&(e[_]&3)===t&&(e[_]+=16384,vo(l,o)):vo(l,o)}var st=-1,fi=class{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(e,t,n){this.factory=e,this.canSeeViewProviders=t,this.injectImpl=n}};function Kf(e){return e instanceof fi}function Qf(e){return(e.flags&8)!==0}function Yf(e){return(e.flags&16)!==0}function Xf(e,t,n){let r=0;for(;r<n.length;){let i=n[r];if(typeof i=="number"){if(i!==0)break;r++;let o=n[r++],s=n[r++],l=n[r++];e.setAttribute(t,s,l,o)}else{let o=i,s=n[++r];eh(o)?e.setProperty(t,o,s):e.setAttribute(t,o,s),r++}}return r}function Jf(e){return e===3||e===4||e===6}function eh(e){return e.charCodeAt(0)===64}function hi(e,t){if(!(t===null||t.length===0))if(e===null||e.length===0)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){let i=t[r];typeof i=="number"?n=i:n===0||(n===-1||n===2?wo(e,n,i,null,t[++r]):wo(e,n,i,null,null))}}return e}function wo(e,t,n,r,i){let o=0,s=e.length;if(t===-1)s=-1;else for(;o<e.length;){let l=e[o++];if(typeof l=="number"){if(l===t){s=-1;break}else if(l>t){s=o-1;break}}}for(;o<e.length;){let l=e[o];if(typeof l=="number")break;if(l===n){if(r===null){i!==null&&(e[o+1]=i);return}else if(r===e[o+1]){e[o+2]=i;return}}o++,r!==null&&o++,i!==null&&o++}s!==-1&&(e.splice(s,0,t),o=s+1),e.splice(o++,0,n),r!==null&&e.splice(o++,0,r),i!==null&&e.splice(o++,0,i)}var Wn={},th=class{injector;parentInjector;constructor(e,t){this.injector=e,this.parentInjector=t}get(e,t,n){n=In(n);let r=this.injector.get(e,Wn,n);return r!==Wn||t===Wn?r:this.parentInjector.get(e,t,n)}};function nh(e){return e!==st}function gr(e){return e&32767}function rh(e){return e>>16}function mr(e,t){let n=rh(e),r=t;for(;n>0;)r=r[bt],n--;return r}var yr=!0;function dn(e){let t=yr;return yr=e,t}var ih=256,yl=ih-1,vl=5,oh=0,ye={};function sh(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(kt)&&(r=n[kt]),r==null&&(r=n[kt]=oh++);let i=r&yl,o=1<<i;t.data[e+(i>>vl)]|=o}function wl(e,t){let n=bl(e,t);if(n!==-1)return n;let r=t[O];r.firstCreatePass&&(e.injectorIndex=t.length,qn(r.data,e),qn(t,null),qn(r.blueprint,null));let i=El(e,t),o=e.injectorIndex;if(nh(i)){let s=gr(i),l=mr(i,t),a=l[O].data;for(let u=0;u<8;u++)t[o+u]=l[s+u]|a[s+u]}return t[o+8]=i,o}function qn(e,t){e.push(0,0,0,0,0,0,0,0,t)}function bl(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function El(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,i=t;for(;i!==null;){if(r=xl(i),r===null)return st;if(n++,i=i[bt],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return st}function lh(e,t,n){sh(e,t,n)}function _l(e,t,n){if(n&x.Optional||e!==void 0)return e;Yr(t,"NodeInjector")}function Il(e,t,n,r){if(n&x.Optional&&r===void 0&&(r=null),(n&(x.Self|x.Host))===0){let i=e[At],o=J(void 0);try{return i?i.get(t,r,n&x.Optional):Ps(t,r,n&x.Optional)}finally{J(o)}}return _l(r,t,n)}function Cl(e,t,n,r=x.Default,i){if(e!==null){if(t[_]&2048&&!(r&x.Self)){let s=hh(e,t,n,r,ye);if(s!==ye)return s}let o=Sl(e,t,n,r,ye);if(o!==ye)return o}return Il(t,n,r,i)}function Sl(e,t,n,r,i){let o=ch(n);if(typeof o=="function"){if(!ul(t,e,r))return r&x.Host?_l(i,n,r):Il(t,n,r,i);try{let s;if(s=o(r),s==null&&!(r&x.Optional))Yr(n);else return s}finally{dl()}}else if(typeof o=="number"){let s=null,l=bl(e,t),a=st,u=r&x.Host?t[ve][we]:null;for((l===-1||r&x.SkipSelf)&&(a=l===-1?El(e,t):t[l+8],a===st||!Eo(r,!1)?l=-1:(s=t[O],l=gr(a),t=mr(a,t)));l!==-1;){let c=t[O];if(bo(o,l,c.data)){let f=ah(l,t,n,s,r,u);if(f!==ye)return f}a=t[l+8],a!==st&&Eo(r,t[O].data[l+8]===u)&&bo(o,l,t)?(s=c,l=gr(a),t=mr(a,t)):l=-1}}return i}function ah(e,t,n,r,i,o){let s=t[O],l=s.data[e+8],a=r==null?Tn(l)&&yr:r!=s&&(l.type&3)!==0,u=i&x.Host&&o===l,c=uh(l,s,n,a,u);return c!==null?vr(t,s,c,l):ye}function uh(e,t,n,r,i){let o=e.providerIndexes,s=t.data,l=o&1048575,a=e.directiveStart,u=e.directiveEnd,c=o>>20,f=r?l:l+c,g=i?l+c:u;for(let p=f;p<g;p++){let m=s[p];if(p<a&&n===m||p>=a&&m.type===n)return p}if(i){let p=s[a];if(p&&Xe(p)&&p.type===n)return a}return null}function vr(e,t,n,r){let i=e[n],o=t.data;if(Kf(i)){let s=i;s.resolving&&zc(Hc(o[n]));let l=dn(s.canSeeViewProviders);s.resolving=!0;let a,u=s.injectImpl?J(s.injectImpl):null,c=ul(e,r,x.Default);try{i=e[n]=s.factory(void 0,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&Wf(n,o[n],t)}finally{u!==null&&J(u),dn(l),s.resolving=!1,dl()}}return i}function ch(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(kt)?e[kt]:void 0;return typeof t=="number"?t>=0?t&yl:fh:t}function bo(e,t,n){let r=1<<e;return!!(n[t+(e>>vl)]&r)}function Eo(e,t){return!(e&x.Self)&&!(e&x.Host&&t)}var Tl=class{_tNode;_lView;constructor(e,t){this._tNode=e,this._lView=t}get(e,t,n){return Cl(this._tNode,this._lView,e,In(n),t)}};function fh(){return new Tl(Ut(),z())}function hh(e,t,n,r,i){let o=e,s=t;for(;o!==null&&s!==null&&s[_]&2048&&!hn(s);){let l=Sl(o,s,n,r|x.Self,ye);if(l!==ye)return l;let a=o.parent;if(!a){let u=s[Ws];if(u){let c=u.get(n,ye,r);if(c!==ye)return c}a=xl(s),s=s[bt]}o=a}return i}function xl(e){let t=e[O],n=t.type;return n===2?t.declTNode:n===1?e[we]:null}function _o(e,t=null,n=null,r){let i=dh(e,t,n,r);return i.resolveInjectorInitializers(),i}function dh(e,t=null,n=null,r,i=new Set){let o=[n||Ue,of(e)];return r=r||(typeof e=="object"?void 0:de(e)),new ni(o,t||ti(),r||null,i)}var Dn=class kl{static THROW_IF_NOT_FOUND=Dt;static NULL=new Hs;static create(t,n){if(Array.isArray(t))return _o({name:""},n,t,"");{let r=t.name??"";return _o({name:r},t.parent,t.providers,r)}}static \u0275prov=W({token:kl,providedIn:"any",factory:()=>j(js)});static __NG_ELEMENT_ID__=-1},ph=new F("");ph.__NG_ELEMENT_ID__=e=>{let t=Ut();if(t===null)throw new M(204,!1);if(t.type&2)return t.value;if(e&x.Optional)return null;throw new M(204,!1)};var Ol=!1,Dl=(()=>{class e{static __NG_ELEMENT_ID__=mh;static __NG_ENV_ID__=n=>n}return e})(),gh=class extends Dl{_lView;constructor(e){super(),this._lView=e}onDestroy(e){return nl(this._lView,e),()=>xf(this._lView,e)}};function mh(){return new gh(z())}var Bt=class{},di=new F("",{providedIn:"root",factory:()=>!1}),Nl=new F(""),pi=new F(""),Nn=(()=>{class e{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new ic(!1);add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static \u0275prov=W({token:e,providedIn:"root",factory:()=>new e})}return e})(),yh=class extends Lt{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(e=!1){super(),this.__isAsync=e,mf()&&(this.destroyRef=V(Dl,{optional:!0})??void 0,this.pendingTasks=V(Nn,{optional:!0})??void 0)}emit(e){let t=R(null);try{super.next(e)}finally{R(t)}}subscribe(e,t,n){let r=e,i=t||(()=>null),o=n;if(e&&typeof e=="object"){let l=e;r=l.next?.bind(l),i=l.error?.bind(l),o=l.complete?.bind(l)}this.__isAsync&&(i=this.wrapInTimeout(i),r&&(r=this.wrapInTimeout(r)),o&&(o=this.wrapInTimeout(o)));let s=super.subscribe({next:r,error:i,complete:o});return e instanceof Se&&e.add(s),s}wrapInTimeout(e){return t=>{let n=this.pendingTasks?.add();setTimeout(()=>{e(t),n!==void 0&&this.pendingTasks?.remove(n)})}}},Oe=yh;function pn(...e){}function Rl(e){let t,n;function r(){e=pn;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function Io(e){return queueMicrotask(()=>e()),()=>{e=pn}}var gi="isAngularZone",gn=gi+"_ID",vh=0,ne=class wr{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new Oe(!1);onMicrotaskEmpty=new Oe(!1);onStable=new Oe(!1);onError=new Oe(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:i=!1,scheduleInRootZone:o=Ol}=t;if(typeof Zone>"u")throw new M(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!i&&r,s.shouldCoalesceRunChangeDetection=i,s.callbackScheduled=!1,s.scheduleInRootZone=o,Eh(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(gi)===!0}static assertInAngularZone(){if(!wr.isInAngularZone())throw new M(909,!1)}static assertNotInAngularZone(){if(wr.isInAngularZone())throw new M(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,i){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,t,wh,pn,pn);try{return o.runTask(s,n,r)}finally{o.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},wh={};function mi(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function bh(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){Rl(()=>{e.callbackScheduled=!1,br(e),e.isCheckStableRunning=!0,mi(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),br(e)}function Eh(e){let t=()=>{bh(e)},n=vh++;e._inner=e._inner.fork({name:"angular",properties:{[gi]:!0,[gn]:n,[gn+n]:!0},onInvokeTask:(r,i,o,s,l,a)=>{if(_h(a))return r.invokeTask(o,s,l,a);try{return Co(e),r.invokeTask(o,s,l,a)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),So(e)}},onInvoke:(r,i,o,s,l,a,u)=>{try{return Co(e),r.invoke(o,s,l,a,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!Ih(a)&&t(),So(e)}},onHasTask:(r,i,o,s)=>{r.hasTask(o,s),i===o&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,br(e),mi(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,i,o,s)=>(r.handleError(o,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function br(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function Co(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function So(e){e._nesting--,mi(e)}var Al=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new Oe;onMicrotaskEmpty=new Oe;onStable=new Oe;onError=new Oe;run(e,t,n){return e.apply(t,n)}runGuarded(e,t,n){return e.apply(t,n)}runOutsideAngular(e){return e()}runTask(e,t,n,r){return e.apply(t,n)}};function _h(e){return Vl(e,"__ignore_ng_zone__")}function Ih(e){return Vl(e,"__scheduler_tick__")}function Vl(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var Zt=class{_console=console;handleError(e){this._console.error("ERROR",e)}},Ch=new F("",{providedIn:"root",factory:()=>{let e=V(ne),t=V(Zt);return n=>e.runOutsideAngular(()=>t.handleError(n))}});function Sh(){return Ml(Ut(),z())}function Ml(e,t){return new Pl(Je(e,t))}var Pl=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=Sh}return e})();function To(e,t){let n=Hu(e),r=n[De];return t?.equal&&(r.equal=t.equal),n.set=i=>ls(r,i),n.update=i=>zu(r,i),n.asReadonly=Th.bind(n),n}function Th(){let e=this[De];if(e.readonlyFn===void 0){let t=()=>this();t[De]=e,e.readonlyFn=t}return e.readonlyFn}function Fl(e){return(e.flags&128)===128}var jl=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(jl||{}),Ll=new Map,xh=0;function kh(){return xh++}function Oh(e){Ll.set(e[Sn],e)}function Er(e){Ll.delete(e[Sn])}var xo="__ngContext__";function $t(e,t){He(t)?(e[xo]=t[Sn],Oh(t)):e[xo]=t}function Hl(e){return Ul(e[Vt])}function zl(e){return Ul(e[pe])}function Ul(e){for(;e!==null&&!Ye(e);)e=e[pe];return e}var _r;function Dh(e){_r=e}function Nh(){if(_r!==void 0)return _r;if(typeof document<"u")return document;throw new M(210,!1)}var Bl=new F("",{providedIn:"root",factory:()=>Rh}),Rh="ng",Zl=new F(""),yi=new F("",{providedIn:"platform",factory:()=>"unknown"}),$l=new F("",{providedIn:"root",factory:()=>Nh().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null}),Ah="h",Vh="b",Gl=!1,Mh=new F("",{providedIn:"root",factory:()=>Gl}),Wl=function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e}(Wl||{}),vi=new F(""),ko=new Set;function Gt(e){ko.has(e)||(ko.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var Ph=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=W({token:e,providedIn:"root",factory:()=>new e})}return e})(),Fh=()=>null;function ql(e,t,n=!1){return Fh(e,t,n)}function Kl(e,t){let n=e.contentQueries;if(n!==null){let r=R(null);try{for(let i=0;i<n.length;i+=2){let o=n[i],s=n[i+1];if(s!==-1){let l=e.data[s];al(o),l.contentQueries(2,t[s],s)}}}finally{R(r)}}}function Ir(e,t,n){al(0);let r=R(null);try{t(e,n)}finally{R(r)}}function Ql(e,t,n){if(Ks(t)){let r=R(null);try{let i=t.directiveStart,o=t.directiveEnd;for(let s=i;s<o;s++){let l=e.data[s];if(l.contentQueries){let a=n[s];l.contentQueries(1,a,s)}}}finally{R(r)}}}var Ce=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(Ce||{}),Yl=class{changingThisBreaksApplicationSecurity;constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Ds})`}};function Xl(e){return e instanceof Yl?e.changingThisBreaksApplicationSecurity:e}function jh(e,t){let n=Lh(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${Ds})`)}return n===t}function Lh(e){return e instanceof Yl&&e.getTypeName()||null}var Hh=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function zh(e){return e=String(e),e.match(Hh)?e:"unsafe:"+e}var Jl=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(Jl||{});function Uh(e){let t=Bh();return t?t.sanitize(Jl.URL,e)||"":jh(e,"URL")?Xl(e):zh(Qr(e))}function Bh(){let e=z();return e&&e[Te].sanitizer}function Zh(e,t,n){let r=e.length;for(;;){let i=e.indexOf(t,n);if(i===-1)return i;if(i===0||e.charCodeAt(i-1)<=32){let o=t.length;if(i+o===r||e.charCodeAt(i+o)<=32)return i}n=i+1}}var ea="ng-template";function $h(e,t,n,r){let i=0;if(r){for(;i<t.length&&typeof t[i]=="string";i+=2)if(t[i]==="class"&&Zh(t[i+1].toLowerCase(),n,0)!==-1)return!0}else if(wi(e))return!1;if(i=t.indexOf(1,i),i>-1){let o;for(;++i<t.length&&typeof(o=t[i])=="string";)if(o.toLowerCase()===n)return!0}return!1}function wi(e){return e.type===4&&e.value!==ea}function Gh(e,t,n){let r=e.type===4&&!n?ea:e.value;return t===r}function Wh(e,t,n){let r=4,i=e.attrs,o=i!==null?Qh(i):0,s=!1;for(let l=0;l<t.length;l++){let a=t[l];if(typeof a=="number"){if(!s&&!fe(r)&&!fe(a))return!1;if(s&&fe(a))continue;s=!1,r=a|r&1;continue}if(!s)if(r&4){if(r=2|r&1,a!==""&&!Gh(e,a,n)||a===""&&t.length===1){if(fe(r))return!1;s=!0}}else if(r&8){if(i===null||!$h(e,i,a,n)){if(fe(r))return!1;s=!0}}else{let u=t[++l],c=qh(a,i,wi(e),n);if(c===-1){if(fe(r))return!1;s=!0;continue}if(u!==""){let f;if(c>o?f="":f=i[c+1].toLowerCase(),r&2&&u!==f){if(fe(r))return!1;s=!0}}}}return fe(r)||s}function fe(e){return(e&1)===0}function qh(e,t,n,r){if(t===null)return-1;let i=0;if(r||!n){let o=!1;for(;i<t.length;){let s=t[i];if(s===e)return i;if(s===3||s===6)o=!0;else if(s===1||s===2){let l=t[++i];for(;typeof l=="string";)l=t[++i];continue}else{if(s===4)break;if(s===0){i+=4;continue}}i+=o?1:2}return-1}else return Yh(t,e)}function Kh(e,t,n=!1){for(let r=0;r<t.length;r++)if(Wh(e,t[r],n))return!0;return!1}function Qh(e){for(let t=0;t<e.length;t++){let n=e[t];if(Jf(n))return t}return e.length}function Yh(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){let r=e[n];if(typeof r=="number")return-1;if(r===t)return n;n++}return-1}function Oo(e,t){return e?":not("+t.trim()+")":t}function Xh(e){let t=e[0],n=1,r=2,i="",o=!1;for(;n<e.length;){let s=e[n];if(typeof s=="string")if(r&2){let l=e[++n];i+="["+s+(l.length>0?'="'+l+'"':"")+"]"}else r&8?i+="."+s:r&4&&(i+=" "+s);else i!==""&&!fe(s)&&(t+=Oo(o,i),i=""),r=s,o=o||!fe(r);n++}return i!==""&&(t+=Oo(o,i)),t}function Jh(e){return e.map(Xh).join(",")}function ed(e){let t=[],n=[],r=1,i=2;for(;r<e.length;){let o=e[r];if(typeof o=="string")i===2?o!==""&&t.push(o,e[++r]):i===8&&n.push(o);else{if(!fe(i))break;i=o}r++}return n.length&&t.push(1,...n),t}var Pe={};function td(e,t){return e.createText(t)}function nd(e,t,n){e.setValue(t,n)}function ta(e,t,n){return e.createElement(t,n)}function Cr(e,t,n,r,i){e.insertBefore(t,n,r,i)}function na(e,t,n){e.appendChild(t,n)}function Do(e,t,n,r,i){r!==null?Cr(e,t,n,r,i):na(e,t,n)}function rd(e,t,n){e.removeChild(null,t,n)}function id(e,t,n){e.setAttribute(t,"style",n)}function od(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function ra(e,t,n){let{mergedAttrs:r,classes:i,styles:o}=n;r!==null&&Xf(e,t,r),i!==null&&od(e,t,i),o!==null&&id(e,t,o)}function bi(e,t,n,r,i,o,s,l,a,u,c){let f=K+r,g=f+i,p=sd(f,g),m=typeof u=="function"?u():u;return p[O]={type:e,blueprint:p,template:n,queries:null,viewQuery:l,declTNode:t,data:p.slice().fill(null,f),bindingStartIndex:f,expandoStartIndex:g,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof o=="function"?o():o,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:a,consts:m,incompleteFirstPass:!1,ssrId:c}}function sd(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:Pe);return n}function ld(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=bi(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function Ei(e,t,n,r,i,o,s,l,a,u,c){let f=t.blueprint.slice();return f[xe]=i,f[_]=r|4|128|8|64|1024,(u!==null||e&&e[_]&2048)&&(f[_]|=2048),tl(f),f[se]=f[bt]=e,f[q]=n,f[Te]=s||e&&e[Te],f[ie]=l||e&&e[ie],f[At]=a||e&&e[At]||null,f[we]=o,f[Sn]=kh(),f[Rt]=c,f[Ws]=u,f[ve]=t.type==2?e[ve]:f,f}function ad(e,t,n){let r=Je(t,e),i=ld(n),o=e[Te].rendererFactory,s=sa(e,Ei(e,i,null,ia(n),r,t,null,o.createRenderer(r,n),null,null,null));return e[t.index]=s}function ia(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function oa(e,t,n,r){if(n===0)return-1;let i=t.length;for(let o=0;o<n;o++)t.push(r),e.blueprint.push(r),e.data.push(null);return i}function sa(e,t){return e[Vt]?e[mo][pe]=t:e[Vt]=t,e[mo]=t,t}function lt(e=1){la(ge(),z(),Me()+e,!1)}function la(e,t,n,r){if(!r)if((t[_]&3)===3){let i=e.preOrderCheckHooks;i!==null&&en(t,i,n)}else{let i=e.preOrderHooks;i!==null&&tn(t,i,0,n)}$e(n)}var Rn=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(Rn||{});function Sr(e,t,n,r){let i=R(null);try{let[o,s,l]=e.inputs[n],a=null;(s&Rn.SignalBased)!==0&&(a=t[o][De]),a!==null&&a.transformFn!==void 0?r=a.transformFn(r):l!==null&&(r=l.call(t,r)),e.setInput!==null?e.setInput(t,a,r,n,o):Ys(t,a,o,r)}finally{R(i)}}function aa(e,t,n,r,i){let o=Me(),s=r&2;try{$e(-1),s&&t.length>K&&la(e,t,K,!1),H(s?2:0,i),n(r,i)}finally{$e(o),H(s?3:1,i)}}function _i(e,t,n){gd(e,t,n),(n.flags&64)===64&&md(e,t,n)}function ua(e,t,n=Je){let r=t.localNames;if(r!==null){let i=t.index+1;for(let o=0;o<r.length;o+=2){let s=r[o+1],l=s===-1?n(t,e):e[s];e[i++]=l}}}function ud(e,t,n,r){let i=r.get(Mh,Gl)||n===Ce.ShadowDom,o=e.selectRootElement(t,i);return cd(o),o}function cd(e){fd(e)}var fd=()=>null;function hd(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function dd(e,t,n,r,i,o,s,l){if(!l&&Ii(t,e,n,r,i)){Tn(t)&&pd(n,t.index);return}if(t.type&3){let a=Je(t,n);r=hd(r),i=s!=null?s(i,t.value||"",r):i,o.setProperty(a,r,i)}else t.type&12}function pd(e,t){let n=Be(t,e);n[_]&16||(n[_]|=64)}function gd(e,t,n){let r=n.directiveStart,i=n.directiveEnd;Tn(n)&&ad(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||wl(n,t);let o=n.initialInputs;for(let s=r;s<i;s++){let l=e.data[s],a=vr(t,e,s,n);if($t(a,t),o!==null&&vd(t,s-r,a,l,n,o),Xe(l)){let u=Be(n.index,t);u[q]=vr(t,e,s,n)}}}function md(e,t,n){let r=n.directiveStart,i=n.directiveEnd,o=n.index,s=zf();try{$e(o);for(let l=r;l<i;l++){let a=e.data[l],u=t[l];pr(l),(a.hostBindings!==null||a.hostVars!==0||a.hostAttrs!==null)&&yd(a,u)}}finally{$e(-1),pr(s)}}function yd(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function ca(e,t){let n=e.directiveRegistry,r=null;if(n)for(let i=0;i<n.length;i++){let o=n[i];Kh(t,o.selectors,!1)&&(r??=[],Xe(o)?r.unshift(o):r.push(o))}return r}function vd(e,t,n,r,i,o){let s=o[t];if(s!==null)for(let l=0;l<s.length;l+=2){let a=s[l],u=s[l+1];Sr(r,n,a,u)}}function wd(e,t){let n=e[At],r=n?n.get(Zt,null):null;r&&r.handleError(t)}function Ii(e,t,n,r,i){let o=e.inputs?.[r],s=e.hostDirectiveInputs?.[r],l=!1;if(s)for(let a=0;a<s.length;a+=2){let u=s[a],c=s[a+1],f=t.data[u];Sr(f,n[u],c,i),l=!0}if(o)for(let a of o){let u=n[a],c=t.data[a];Sr(c,u,r,i),l=!0}return l}function bd(e,t){let n=Be(t,e),r=n[O];Ed(r,n);let i=n[xe];i!==null&&n[Rt]===null&&(n[Rt]=ql(i,n[At])),H(18),Ci(r,n,n[q]),H(19,n[q])}function Ed(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}function Ci(e,t,n){li(t);try{let r=e.viewQuery;r!==null&&Ir(1,r,n);let i=e.template;i!==null&&aa(e,t,i,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[ht]?.finishViewCreation(e),e.staticContentQueries&&Kl(e,t),e.staticViewQueries&&Ir(2,e.viewQuery,n);let o=e.components;o!==null&&_d(t,o)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[_]&=-5,ai()}}function _d(e,t){for(let n=0;n<t.length;n++)bd(e,t[n])}function Si(e,t,n,r){let i=R(null);try{let o=t.tView,s=e[_]&4096?4096:16,l=Ei(e,o,n,s,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),a=e[t.index];l[ft]=a;let u=e[ht];return u!==null&&(l[ht]=u.createEmbeddedView(o)),Ci(o,l,n),l}finally{R(i)}}function Ti(e,t){return!t||t.firstChild===null||Fl(e)}var Id;function xi(e,t){return Id(e,t)}var Le=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Le||{});function fa(e){return(e.flags&32)===32}function rt(e,t,n,r,i){if(r!=null){let o,s=!1;Ye(r)?o=r:He(r)&&(s=!0,r=r[xe]);let l=Ae(r);e===0&&n!==null?i==null?na(t,n,l):Cr(t,n,l,i||null,!0):e===1&&n!==null?Cr(t,n,l,i||null,!0):e===2?rd(t,l,s):e===3&&t.destroyNode(l),o!=null&&Md(t,e,o,n,i)}}function Cd(e,t){ha(e,t),t[xe]=null,t[we]=null}function Sd(e,t,n,r,i,o){r[xe]=i,r[we]=t,An(e,r,n,1,i,o)}function ha(e,t){t[Te].changeDetectionScheduler?.notify(9),An(e,t,t[ie],2,null,null)}function Td(e){let t=e[Vt];if(!t)return Kn(e[O],e);for(;t;){let n=null;if(He(t))n=t[Vt];else{let r=t[ee];r&&(n=r)}if(!n){for(;t&&!t[pe]&&t!==e;)He(t)&&Kn(t[O],t),t=t[se];t===null&&(t=e),He(t)&&Kn(t[O],t),n=t&&t[pe]}t=n}}function ki(e,t){let n=e[fn],r=n.indexOf(t);n.splice(r,1)}function Oi(e,t){if(zt(t))return;let n=t[ie];n.destroyNode&&An(e,t,n,3,null,null),Td(t)}function Kn(e,t){if(zt(t))return;let n=R(null);try{t[_]&=-129,t[_]|=256,t[te]&&ts(t[te]),kd(e,t),xd(e,t),t[O].type===1&&t[ie].destroy();let r=t[ft];if(r!==null&&Ye(t[se])){r!==t[se]&&ki(r,t);let i=t[ht];i!==null&&i.detachView(e)}Er(t)}finally{R(n)}}function xd(e,t){let n=e.cleanup,r=t[go];if(n!==null)for(let s=0;s<n.length-1;s+=2)if(typeof n[s]=="string"){let l=n[s+3];l>=0?r[l]():r[-l].unsubscribe(),s+=2}else{let l=r[n[s+1]];n[s].call(l)}r!==null&&(t[go]=null);let i=t[Re];if(i!==null){t[Re]=null;for(let s=0;s<i.length;s++){let l=i[s];l()}}let o=t[cn];if(o!==null){t[cn]=null;for(let s of o)s.destroy()}}function kd(e,t){let n;if(e!=null&&(n=e.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let i=t[n[r]];if(!(i instanceof fi)){let o=n[r+1];if(Array.isArray(o))for(let s=0;s<o.length;s+=2){let l=i[o[s]],a=o[s+1];H(4,l,a);try{a.call(l)}finally{H(5,l,a)}}else{H(4,i,o);try{o.call(i)}finally{H(5,i,o)}}}}}function Od(e,t,n){return Dd(e,t.parent,n)}function Dd(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[xe];if(Tn(r)){let{encapsulation:i}=e.data[r.directiveStart+r.componentOffset];if(i===Ce.None||i===Ce.Emulated)return null}return Je(r,n)}function Nd(e,t,n){return Ad(e,t,n)}function Rd(e,t,n){return e.type&40?Je(e,n):null}var Ad=Rd,No;function Di(e,t,n,r){let i=Od(e,r,t),o=t[ie],s=r.parent||t[we],l=Nd(s,r,t);if(i!=null)if(Array.isArray(n))for(let a=0;a<n.length;a++)Do(o,i,n[a],l,!1);else Do(o,i,n,l,!1);No!==void 0&&No(o,r,t,n,i)}function Tt(e,t){if(t!==null){let n=t.type;if(n&3)return Je(t,e);if(n&4)return Tr(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return Tt(e,r);{let i=e[t.index];return Ye(i)?Tr(-1,i):Ae(i)}}else{if(n&128)return Tt(e,t.next);if(n&32)return xi(t,e)()||Ae(e[t.index]);{let r=da(e,t);if(r!==null){if(Array.isArray(r))return r[0];let i=Ze(e[ve]);return Tt(i,r)}else return Tt(e,t.next)}}}return null}function da(e,t){if(t!==null){let n=e[ve][we],r=t.projection;return n.projection[r]}return null}function Tr(e,t){let n=ee+e+1;if(n<t.length){let r=t[n],i=r[O].firstChild;if(i!==null)return Tt(r,i)}return t[Mt]}function Ni(e,t,n,r,i,o,s){for(;n!=null;){if(n.type===128){n=n.next;continue}let l=r[n.index],a=n.type;if(s&&t===0&&(l&&$t(Ae(l),r),n.flags|=2),!fa(n))if(a&8)Ni(e,t,n.child,r,i,o,!1),rt(t,e,i,l,o);else if(a&32){let u=xi(n,r),c;for(;c=u();)rt(t,e,i,c,o);rt(t,e,i,l,o)}else a&16?Vd(e,t,r,n,i,o):rt(t,e,i,l,o);n=s?n.projectionNext:n.next}}function An(e,t,n,r,i,o){Ni(n,r,e.firstChild,t,i,o,!1)}function Vd(e,t,n,r,i,o){let s=n[ve],l=s[we].projection[r.projection];if(Array.isArray(l))for(let a=0;a<l.length;a++){let u=l[a];rt(t,e,i,u,o)}else{let a=l,u=s[se];Fl(r)&&(a.flags|=128),Ni(e,t,a,u,i,o,!0)}}function Md(e,t,n,r,i){let o=n[Mt],s=Ae(n);o!==s&&rt(t,e,r,o,i);for(let l=ee;l<n.length;l++){let a=n[l];An(a[O],a,e,t,r,o)}}function Pd(e,t,n,r,i){if(t)i?e.addClass(n,r):e.removeClass(n,r);else{let o=r.indexOf("-")===-1?void 0:Le.DashCase;i==null?e.removeStyle(n,r,o):(typeof i=="string"&&i.endsWith("!important")&&(i=i.slice(0,-10),o|=Le.Important),e.setStyle(n,r,i,o))}}function mn(e,t,n,r,i=!1){for(;n!==null;){if(n.type===128){n=i?n.projectionNext:n.next;continue}let o=t[n.index];o!==null&&r.push(Ae(o)),Ye(o)&&Fd(o,r);let s=n.type;if(s&8)mn(e,t,n.child,r);else if(s&32){let l=xi(n,t),a;for(;a=l();)r.push(a)}else if(s&16){let l=da(t,n);if(Array.isArray(l))r.push(...l);else{let a=Ze(t[ve]);mn(a[O],a,l,r,!0)}}n=i?n.projectionNext:n.next}return r}function Fd(e,t){for(let n=ee;n<e.length;n++){let r=e[n],i=r[O].firstChild;i!==null&&mn(r[O],r,i,t)}e[Mt]!==e[xe]&&t.push(e[Mt])}function pa(e){if(e[$n]!==null){for(let t of e[$n])t.impl.addSequence(t);e[$n].length=0}}var ga=[];function jd(e){return e[te]??Ld(e)}function Ld(e){let t=ga.pop()??Object.create(zd);return t.lView=e,t}function Hd(e){e.lView[te]!==e&&(e.lView=null,ga.push(e))}var zd=wt(qe({},$r),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{kn(e.lView)},consumerOnSignalRead(){this.lView[te]=this}});function Ud(e){let t=e[te]??Object.create(Bd);return t.lView=e,t}var Bd=wt(qe({},$r),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=Ze(e.lView);for(;t&&!ma(t[O]);)t=Ze(t);t&&si(t)},consumerOnSignalRead(){this.lView[te]=this}});function ma(e){return e.type!==2}function ya(e){if(e[cn]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[cn])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[_]&8192)}}var Zd=100;function va(e,t=!0,n=0){let r=e[Te].rendererFactory,i=!1;i||r.begin?.();try{$d(e,n)}catch(o){throw t&&wd(e,o),o}finally{i||r.end?.()}}function $d(e,t){let n=sl();try{yo(!0),xr(e,t);let r=0;for(;xn(e);){if(r===Zd)throw new M(103,!1);r++,xr(e,1)}}finally{yo(n)}}function Gd(e,t,n,r){if(zt(t))return;let i=t[_],o=!1,s=!1;li(t);let l=!0,a=null,u=null;o||(ma(e)?(u=jd(t),a=to(u)):Nu()===null?(l=!1,u=Ud(t),a=to(u)):t[te]&&(ts(t[te]),t[te]=null));try{tl(t),Ff(e.bindingStartIndex),n!==null&&aa(e,t,n,2,r);let c=(i&3)===3;if(!o)if(c){let p=e.preOrderCheckHooks;p!==null&&en(t,p,null)}else{let p=e.preOrderHooks;p!==null&&tn(t,p,0,null),Gn(t,0)}if(s||Wd(t),ya(t),wa(t,0),e.contentQueries!==null&&Kl(e,t),!o)if(c){let p=e.contentCheckHooks;p!==null&&en(t,p)}else{let p=e.contentHooks;p!==null&&tn(t,p,1),Gn(t,1)}Kd(e,t);let f=e.components;f!==null&&Ea(t,f,0);let g=e.viewQuery;if(g!==null&&Ir(2,g,r),!o)if(c){let p=e.viewCheckHooks;p!==null&&en(t,p)}else{let p=e.viewHooks;p!==null&&tn(t,p,2),Gn(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Zn]){for(let p of t[Zn])p();t[Zn]=null}o||(pa(t),t[_]&=-73)}catch(c){throw o||kn(t),c}finally{u!==null&&(Pu(u,a),l&&Hd(u)),ai()}}function wa(e,t){for(let n=Hl(e);n!==null;n=zl(n))for(let r=ee;r<n.length;r++){let i=n[r];ba(i,t)}}function Wd(e){for(let t=Hl(e);t!==null;t=zl(t)){if(!(t[_]&2))continue;let n=t[fn];for(let r=0;r<n.length;r++){let i=n[r];si(i)}}}function qd(e,t,n){H(18);let r=Be(t,e);ba(r,n),H(19,r[q])}function ba(e,t){oi(e)&&xr(e,t)}function xr(e,t){let n=e[O],r=e[_],i=e[te],o=!!(t===0&&r&16);if(o||=!!(r&64&&t===0),o||=!!(r&1024),o||=!!(i?.dirty&&es(i)),o||=!1,i&&(i.dirty=!1),e[_]&=-9217,o)Gd(n,e,n.template,e[q]);else if(r&8192){ya(e),wa(e,1);let s=n.components;s!==null&&Ea(e,s,1),pa(e)}}function Ea(e,t,n){for(let r=0;r<t.length;r++)qd(e,t[r],n)}function Kd(e,t){let n=e.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let i=n[r];if(i<0)$e(~i);else{let o=i,s=n[++r],l=n[++r];Hf(s,o);let a=t[o];H(24,a),l(2,a),H(25,a)}}}finally{$e(-1)}}function _a(e,t){let n=sl()?64:1088;for(e[Te].changeDetectionScheduler?.notify(t);e;){e[_]|=n;let r=Ze(e);if(hn(e)&&!r)return e;e=r}return null}function Qd(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function Ia(e,t){let n=ee+t;if(n<e.length)return e[n]}function Ri(e,t,n,r=!0){let i=t[O];if(Yd(i,t,e,n),r){let s=Tr(n,e),l=t[ie],a=l.parentNode(e[Mt]);a!==null&&Sd(i,e[we],l,t,a,s)}let o=t[Rt];o!==null&&o.firstChild!==null&&(o.firstChild=null)}function Ca(e,t){let n=Ai(e,t);return n!==void 0&&Oi(n[O],n),n}function Ai(e,t){if(e.length<=ee)return;let n=ee+t,r=e[n];if(r){let i=r[ft];i!==null&&i!==e&&ki(i,r),t>0&&(e[n-1][pe]=r[pe]);let o=Fs(e,ee+t);Cd(r[O],r);let s=o[ht];s!==null&&s.detachView(o[O]),r[se]=null,r[pe]=null,r[_]&=-129}return r}function Yd(e,t,n,r){let i=ee+r,o=n.length;r>0&&(n[i-1][pe]=t),r<o-ee?(t[pe]=n[i],Xc(n,ee+r,t)):(n.push(t),t[pe]=null),t[se]=n;let s=t[ft];s!==null&&n!==s&&Sa(s,t);let l=t[ht];l!==null&&l.insertView(e),hr(t),t[_]|=128}function Sa(e,t){let n=e[fn],r=t[se];if(He(r))e[_]|=2;else{let i=r[se][ve];t[ve]!==i&&(e[_]|=2)}n===null?e[fn]=[t]:n.push(t)}var Xd=class{_lView;_cdRefInjectingView;notifyErrorHandler;_appRef=null;_attachedToViewContainer=!1;get rootNodes(){let e=this._lView,t=e[O];return mn(t,e,t.firstChild,[])}constructor(e,t,n=!0){this._lView=e,this._cdRefInjectingView=t,this.notifyErrorHandler=n}get context(){return this._lView[q]}get dirty(){return!!(this._lView[_]&9280)||!!this._lView[te]?.dirty}set context(e){this._lView[q]=e}get destroyed(){return zt(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let e=this._lView[se];if(Ye(e)){let t=e[yf],n=t?t.indexOf(this):-1;n>-1&&(Ai(e,n),Fs(t,n))}this._attachedToViewContainer=!1}Oi(this._lView[O],this._lView)}onDestroy(e){nl(this._lView,e)}markForCheck(){_a(this._cdRefInjectingView||this._lView,4)}markForRefresh(){si(this._cdRefInjectingView||this._lView)}detach(){this._lView[_]&=-129}reattach(){hr(this._lView),this._lView[_]|=128}detectChanges(){this._lView[_]|=1024,va(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new M(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=hn(this._lView),t=this._lView[ft];t!==null&&!e&&ki(t,this._lView),ha(this._lView[O],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new M(902,!1);this._appRef=e;let t=hn(this._lView),n=this._lView[ft];n!==null&&!t&&Sa(n,this._lView),hr(this._lView)}};function Vn(e,t,n,r,i){let o=e.data[t];if(o===null)o=Jd(e,t,n,r,i),Lf()&&(o.flags|=32);else if(o.type&64){o.type=n,o.value=r,o.attrs=i;let s=Vf();o.injectorIndex=s===null?-1:s.injectorIndex}return Et(o,!0),o}function Jd(e,t,n,r,i){let o=il(),s=ol(),l=s?o:o&&o.parent,a=e.data[t]=tp(e,l,n,t,r,i);return ep(e,a,o,s),a}function ep(e,t,n,r){e.firstChild===null&&(e.firstChild=t),n!==null&&(r?n.child==null&&t.parent!==null&&(n.child=t):n.next===null&&(n.next=t,t.prev=n))}function tp(e,t,n,r,i,o){let s=t?t.injectorIndex:-1,l=0;return Nf()&&(l|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:l,providerIndexes:0,value:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}var yy=new RegExp(`^(\\d+)*(${Vh}|${Ah})*(.*)`),np=()=>null;function Vi(e,t){return np(e,t)}var rp=class{},Ta=class{},ip=class{resolveComponentFactory(e){throw Error(`No component factory found for ${de(e)}.`)}},Wt=class{static NULL=new ip},Mi=class{},op=(()=>{class e{static \u0275prov=W({token:e,providedIn:"root",factory:()=>null})}return e})();function Ro(e,t,n){let r=n?e.styles:null,i=n?e.classes:null,o=0;if(t!==null)for(let s=0;s<t.length;s++){let l=t[s];if(typeof l=="number")o=l;else if(o==1)i=lo(i,l);else if(o==2){let a=l,u=t[++s];r=lo(r,a+": "+u+";")}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=i:e.classesWithoutHost=i}function Pi(e,t=x.Default){let n=z();if(n===null)return j(e,t);let r=Ut();return Cl(r,n,he(e),t)}function xa(e,t,n,r,i){let o=r===null?null:{"":-1},s=i(e,n);if(s!==null){let l,a=null,u=null,c=lp(s);c===null?l=s:[l,a,u]=c,cp(e,t,n,l,o,a,u)}o!==null&&r!==null&&sp(n,r,o)}function sp(e,t,n){let r=e.localNames=[];for(let i=0;i<t.length;i+=2){let o=n[t[i+1]];if(o==null)throw new M(-301,!1);r.push(t[i],o)}}function lp(e){let t=null,n=!1;for(let s=0;s<e.length;s++){let l=e[s];if(s===0&&Xe(l)&&(t=l),l.findHostDirectiveDefs!==null){n=!0;break}}if(!n)return null;let r=null,i=null,o=null;for(let s of e)s.findHostDirectiveDefs!==null&&(r??=[],i??=new Map,o??=new Map,ap(s,r,o,i)),s===t&&(r??=[],r.push(s));return r!==null?(r.push(...t===null?e:e.slice(1)),[r,i,o]):null}function ap(e,t,n,r){let i=t.length;e.findHostDirectiveDefs(e,t,r),n.set(e,[i,t.length-1])}function up(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function cp(e,t,n,r,i,o,s){let l=r.length,a=!1;for(let g=0;g<l;g++){let p=r[g];!a&&Xe(p)&&(a=!0,up(e,n,g)),lh(wl(n,t),e,p.type)}mp(n,e.data.length,l);for(let g=0;g<l;g++){let p=r[g];p.providersResolver&&p.providersResolver(p)}let u=!1,c=!1,f=oa(e,t,l,null);l>0&&(n.directiveToIndex=new Map);for(let g=0;g<l;g++){let p=r[g];if(n.mergedAttrs=hi(n.mergedAttrs,p.hostAttrs),hp(e,n,t,f,p),gp(f,p,i),s!==null&&s.has(p)){let[y,w]=s.get(p);n.directiveToIndex.set(p.type,[f,y+n.directiveStart,w+n.directiveStart])}else(o===null||!o.has(p))&&n.directiveToIndex.set(p.type,f);p.contentQueries!==null&&(n.flags|=4),(p.hostBindings!==null||p.hostAttrs!==null||p.hostVars!==0)&&(n.flags|=64);let m=p.type.prototype;!u&&(m.ngOnChanges||m.ngOnInit||m.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),u=!0),!c&&(m.ngOnChanges||m.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),c=!0),f++}fp(e,n,o)}function fp(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let i=e.data[r];if(n===null||!n.has(i))Ao(0,t,i,r),Ao(1,t,i,r),Mo(t,r,!1);else{let o=n.get(i);Vo(0,t,o,r),Vo(1,t,o,r),Mo(t,r,!0)}}}function Ao(e,t,n,r){let i=e===0?n.inputs:n.outputs;for(let o in i)if(i.hasOwnProperty(o)){let s;e===0?s=t.inputs??={}:s=t.outputs??={},s[o]??=[],s[o].push(r),ka(t,o)}}function Vo(e,t,n,r){let i=e===0?n.inputs:n.outputs;for(let o in i)if(i.hasOwnProperty(o)){let s=i[o],l;e===0?l=t.hostDirectiveInputs??={}:l=t.hostDirectiveOutputs??={},l[s]??=[],l[s].push(r,o),ka(t,s)}}function ka(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16)}function Mo(e,t,n){let{attrs:r,inputs:i,hostDirectiveInputs:o}=e;if(r===null||!n&&i===null||n&&o===null||wi(e)){e.initialInputs??=[],e.initialInputs.push(null);return}let s=null,l=0;for(;l<r.length;){let a=r[l];if(a===0){l+=4;continue}else if(a===5){l+=2;continue}else if(typeof a=="number")break;if(!n&&i.hasOwnProperty(a)){let u=i[a];for(let c of u)if(c===t){s??=[],s.push(a,r[l+1]);break}}else if(n&&o.hasOwnProperty(a)){let u=o[a];for(let c=0;c<u.length;c+=2)if(u[c]===t){s??=[],s.push(u[c+1],r[l+1]);break}}l+=2}e.initialInputs??=[],e.initialInputs.push(s)}function hp(e,t,n,r,i){e.data[r]=i;let o=i.factory||(i.factory=ut(i.type,!0)),s=new fi(o,Xe(i),Pi);e.blueprint[r]=s,n[r]=s,dp(e,t,r,oa(e,n,i.hostVars,Pe),i)}function dp(e,t,n,r,i){let o=i.hostBindings;if(o){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let l=~t.index;pp(s)!=l&&s.push(l),s.push(n,r,o)}}function pp(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function gp(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;Xe(t)&&(n[""]=e)}}function mp(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function Oa(e,t,n,r,i,o,s,l){let a=t.consts,u=dt(a,s),c=Vn(t,e,2,r,u);return o&&xa(t,n,c,dt(a,l),i),c.mergedAttrs=hi(c.mergedAttrs,c.attrs),c.attrs!==null&&Ro(c,c.attrs,!1),c.mergedAttrs!==null&&Ro(c,c.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,c),c}function Da(e,t){gl(e,t),Ks(t)&&e.queries.elementEnd(t)}var yp=class extends Wt{ngModule;constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){let t=Cn(e);return new Ip(t,this.ngModule)}};function vp(e){return Object.keys(e).map(t=>{let[n,r,i]=e[t],o={propName:n,templateName:t,isSignal:(r&Rn.SignalBased)!==0};return i&&(o.transform=i),o})}function wp(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function bp(e,t,n){let r=t instanceof Nt?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new th(n,r):n}function Ep(e){let t=e.get(Mi,null);if(t===null)throw new M(407,!1);let n=e.get(op,null),r=e.get(Bt,null);return{rendererFactory:t,sanitizer:n,changeDetectionScheduler:r}}function _p(e,t){let n=(e.selectors[0][0]||"div").toLowerCase();return ta(t,n,n==="svg"?Cf:n==="math"?Sf:null)}var Ip=class extends Ta{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;get inputs(){return vp(this.componentDef.inputs)}get outputs(){return wp(this.componentDef.outputs)}constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=Jh(e.selectors),this.ngContentSelectors=e.ngContentSelectors??[],this.isBoundToModule=!!t}create(e,t,n,r){H(22);let i=R(null);try{let o=this.componentDef,s=n?["ng-version","19.2.0"]:ed(this.componentDef.selectors[0]),l=bi(0,null,null,1,0,null,null,null,null,[s],null),a=bp(o,r||this.ngModule,e),u=Ep(a),c=u.rendererFactory.createRenderer(null,o),f=n?ud(c,n,o.encapsulation,a):_p(o,c),g=Ei(null,l,null,512|ia(o),null,null,u,c,a,null,ql(f,a,!0));g[K]=f,li(g);let p=null;try{let m=Oa(K,l,g,"#host",()=>[this.componentDef],!0,0);f&&(ra(c,f,m),$t(f,g)),_i(l,g,m),Ql(l,m,g),Da(l,m),t!==void 0&&Sp(m,this.ngContentSelectors,t),p=Be(m.index,g),g[q]=p[q],Ci(l,g,null)}catch(m){throw p!==null&&Er(p),Er(g),m}finally{H(23),ai()}return new Cp(this.componentType,g)}finally{R(i)}}},Cp=class extends rp{_rootLView;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(e,t){super(),this._rootLView=t,this._tNode=ri(t[O],K),this.location=Ml(this._tNode,t),this.instance=Be(this._tNode.index,t)[q],this.hostView=this.changeDetectorRef=new Xd(t,void 0,!1),this.componentType=e}setInput(e,t){let n=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(e)&&Object.is(this.previousInputValues.get(e),t))return;let r=this._rootLView,i=Ii(n,r[O],r,e,t);this.previousInputValues.set(e,t);let o=Be(n.index,r);_a(o,1)}get injector(){return new Tl(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}};function Sp(e,t,n){let r=e.projection=[];for(let i=0;i<t.length;i++){let o=n[i];r.push(o!=null&&o.length?Array.from(o):null)}}var Tp=()=>!1;function xp(e,t,n){return Tp(e,t,n)}var kr=class{},Na=class extends kr{injector;componentFactoryResolver=new yp(this);instance=null;constructor(e){super();let t=new ni([...e.providers,{provide:kr,useValue:this},{provide:Wt,useValue:this.componentFactoryResolver}],e.parent||ti(),e.debugName,new Set(["environment"]));this.injector=t,e.runEnvironmentInitializers&&t.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function kp(e,t,n=null){return new Na({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var Op=(()=>{class e{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=Bs(!1,n.type),i=r.length>0?kp([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,i)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=W({token:e,providedIn:"environment",factory:()=>new e(j(Nt))})}return e})();function Dp(e){return Rc(()=>{let t=Mp(e),n=wt(qe({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===jl.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?i=>i.get(Op).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Ce.Emulated,styles:e.styles||Ue,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&Gt("NgStandalone"),Pp(n);let r=e.dependencies;return n.directiveDefs=Po(r,!1),n.pipeDefs=Po(r,!0),n.id=Fp(n),n})}function Np(e){return Cn(e)||zs(e)}function Rp(e){return e!==null}function Ap(e,t){if(e==null)return ct;let n={};for(let r in e)if(e.hasOwnProperty(r)){let i=e[r],o,s,l,a;Array.isArray(i)?(l=i[0],o=i[1],s=i[2]??o,a=i[3]||null):(o=i,s=i,l=Rn.None,a=null),n[o]=[r,l,a],t[o]=s}return n}function Vp(e){if(e==null)return ct;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function Ra(e){return{type:e.type,name:e.name,factory:null,pure:e.pure!==!1,standalone:e.standalone??!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function Mp(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputConfig:e.inputs||ct,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||Ue,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Ap(e.inputs,t),outputs:Vp(e.outputs),debugInfo:null}}function Pp(e){e.features?.forEach(t=>t(e))}function Po(e,t){if(!e)return null;let n=t?Us:Np;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(Rp)}function Fp(e){let t=0,n=typeof e.consts=="function"?"":e.consts,r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,n,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery];for(let i of r.join("|"))t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function Aa(e,t,n){return e[t]=n}function Ve(e,t,n){let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function jp(e,t,n,r){let i=Ve(e,t,n);return Ve(e,t+1,r)||i}function Lp(e,t,n,r,i,o,s,l,a){let u=t.consts,c=Vn(t,e,4,s||null,l||null);rl()&&xa(t,n,c,dt(u,a),ca),c.mergedAttrs=hi(c.mergedAttrs,c.attrs),gl(t,c);let f=c.tView=bi(2,c,r,i,o,t.directiveRegistry,t.pipeRegistry,null,t.schemas,u,null);return t.queries!==null&&(t.queries.template(t,c),f.queries=t.queries.embeddedTView(c)),c}function Or(e,t,n,r,i,o,s,l,a,u){let c=n+K,f=t.firstCreatePass?Lp(c,t,e,r,i,o,s,l,a):t.data[c];Et(f,!1);let g=Hp(t,e,f,n);ui()&&Di(t,e,g,f),$t(g,e);let p=Qd(g,e,g,f);return e[c]=p,sa(e,p),xp(p,f,e),Qs(f)&&_i(t,e,f),a!=null&&ua(e,f,u),f}function Fi(e,t,n,r,i,o,s,l){let a=z(),u=ge(),c=dt(u.consts,o);return Or(a,u,e,t,n,r,i,c,s,l),Fi}var Hp=zp;function zp(e,t,n,r){return ci(!0),t[ie].createComment("")}var Up=new F(""),Bp=(()=>{class e{static \u0275prov=W({token:e,providedIn:"root",factory:()=>new Zp})}return e})(),Zp=class{queuedEffectCount=0;queues=new Map;schedule(e){this.enqueue(e)}remove(e){let t=e.zone,n=this.queues.get(t);n.has(e)&&(n.delete(e),this.queuedEffectCount--)}enqueue(e){let t=e.zone;this.queues.has(t)||this.queues.set(t,new Set);let n=this.queues.get(t);n.has(e)||(this.queuedEffectCount++,n.add(e))}flush(){for(;this.queuedEffectCount>0;)for(let[e,t]of this.queues)e===null?this.flushQueue(t):e.run(()=>this.flushQueue(t))}flushQueue(e){for(let t of e)e.delete(t),this.queuedEffectCount--,t.run()}};function Va(e){return!!e&&typeof e.then=="function"}function $p(e){return!!e&&typeof e.subscribe=="function"}var Gp=new F(""),Ma=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=V(Gp,{optional:!0})??[];injector=V(Dn);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let i of this.appInits){let o=Gs(this.injector,i);if(Va(o))n.push(o);else if($p(o)){let s=new Promise((l,a)=>{o.subscribe({complete:l,error:a})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(i=>{this.reject(i)}),n.length===0&&r(),this.initialized=!0}static \u0275fac=function(n){return new(n||e)};static \u0275prov=W({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Wp=new F("");function qp(){ju(()=>{throw new M(600,!1)})}function Kp(e){return e.isBoundToModule}var Qp=10,pt=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=V(Ch);afterRenderManager=V(Ph);zonelessEnabled=V(di);rootEffectScheduler=V(Bp);dirtyFlags=0;tracingSnapshot=null;externalTestViews=new Set;afterTick=new Lt;get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];isStable=V(Nn).hasPendingTasks.pipe(ks(n=>!n));constructor(){V(vi,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:i=>{i&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=V(Nt);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){H(10);let i=n instanceof Ta;if(!this._injector.get(Ma).done){let f=!i&&nf(n),g=!1;throw new M(405,g)}let o;i?o=n:o=this._injector.get(Wt).resolveComponentFactory(n),this.componentTypes.push(o.componentType);let s=Kp(o)?void 0:this._injector.get(kr),l=r||o.selector,a=o.create(Dn.NULL,[],l,s),u=a.location.nativeElement,c=a.injector.get(Up,null);return c?.registerApplication(u),a.onDestroy(()=>{this.detachView(a.hostView),nn(this.components,a),c?.unregisterApplication(u)}),this._loadComponent(a),H(11,a),a}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){H(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(Wl.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new M(101,!1);let n=R(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,R(n),this.afterTick.next(),H(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(Mi,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<Qp;)H(14),this.synchronizeOnce(),H(15)}synchronizeOnce(){if(this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush()),this.dirtyFlags&7){let n=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:r,notifyErrorHandler:i}of this.allViews)Yp(r,i,n,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return}else this._rendererFactory?.begin?.(),this._rendererFactory?.end?.();this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:n})=>xn(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;nn(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(Wp,[]).forEach(r=>r(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>nn(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new M(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(n){return new(n||e)};static \u0275prov=W({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function nn(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Yp(e,t,n,r){!n&&!xn(e)||va(e,t,n&&!r?0:1)}function Xp(e,t,n,r){return Ve(e,On(),n)?t+Qr(n)+r:Pe}function Qt(e,t){return e<<17|t<<2}function Ge(e){return e>>17&32767}function Jp(e){return(e&2)==2}function eg(e,t){return e&131071|t<<17}function Dr(e){return e|2}function gt(e){return(e&131068)>>2}function Qn(e,t){return e&-131069|t<<2}function tg(e){return(e&1)===1}function Nr(e){return e|1}function ng(e,t,n,r,i,o){let s=o?t.classBindings:t.styleBindings,l=Ge(s),a=gt(s);e[r]=n;let u=!1,c;if(Array.isArray(n)){let f=n;c=f[1],(c===null||Ht(f,c)>0)&&(u=!0)}else c=n;if(i)if(a!==0){let f=Ge(e[l+1]);e[r+1]=Qt(f,l),f!==0&&(e[f+1]=Qn(e[f+1],r)),e[l+1]=eg(e[l+1],r)}else e[r+1]=Qt(l,0),l!==0&&(e[l+1]=Qn(e[l+1],r)),l=r;else e[r+1]=Qt(a,0),l===0?l=r:e[a+1]=Qn(e[a+1],r),a=r;u&&(e[r+1]=Dr(e[r+1])),Fo(e,c,r,!0),Fo(e,c,r,!1),rg(t,c,e,r,o),s=Qt(l,a),o?t.classBindings=s:t.styleBindings=s}function rg(e,t,n,r,i){let o=i?e.residualClasses:e.residualStyles;o!=null&&typeof t=="string"&&Ht(o,t)>=0&&(n[r+1]=Nr(n[r+1]))}function Fo(e,t,n,r){let i=e[n+1],o=t===null,s=r?Ge(i):gt(i),l=!1;for(;s!==0&&(l===!1||o);){let a=e[s],u=e[s+1];ig(a,t)&&(l=!0,e[s+1]=r?Nr(u):Dr(u)),s=r?Ge(u):gt(u)}l&&(e[n+1]=r?Dr(i):Nr(i))}function ig(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?Ht(e,t)>=0:!1}function Pa(e,t,n){let r=z(),i=On();if(Ve(r,i,t)){let o=ge(),s=$f();dd(o,s,r,e,t,r[ie],n,!1)}return Pa}function jo(e,t,n,r,i){Ii(t,e,n,i?"class":"style",r)}function ji(e,t,n){return og(e,t,n,!1),ji}function og(e,t,n,r){let i=z(),o=ge(),s=jf(2);if(o.firstUpdatePass&&lg(o,e,s,r),t!==Pe&&Ve(i,s,t)){let l=o.data[Me()];hg(o,l,i,i[ie],e,i[s+1]=dg(t,n),r,s)}}function sg(e,t){return t>=e.expandoStartIndex}function lg(e,t,n,r){let i=e.data;if(i[n+1]===null){let o=i[Me()],s=sg(e,n);pg(o,r)&&t===null&&!s&&(t=!1),t=ag(i,o,t,r),ng(i,o,t,n,s,r)}}function ag(e,t,n,r){let i=Uf(e),o=r?t.residualClasses:t.residualStyles;if(i===null)(r?t.classBindings:t.styleBindings)===0&&(n=Yn(null,e,t,n,r),n=Pt(n,t.attrs,r),o=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==i)if(n=Yn(i,e,t,n,r),o===null){let l=ug(e,t,r);l!==void 0&&Array.isArray(l)&&(l=Yn(null,e,t,l[1],r),l=Pt(l,t.attrs,r),cg(e,t,r,l))}else o=fg(e,t,r)}return o!==void 0&&(r?t.residualClasses=o:t.residualStyles=o),n}function ug(e,t,n){let r=n?t.classBindings:t.styleBindings;if(gt(r)!==0)return e[Ge(r)]}function cg(e,t,n,r){let i=n?t.classBindings:t.styleBindings;e[Ge(i)]=r}function fg(e,t,n){let r,i=t.directiveEnd;for(let o=1+t.directiveStylingLast;o<i;o++){let s=e[o].hostAttrs;r=Pt(r,s,n)}return Pt(r,t.attrs,n)}function Yn(e,t,n,r,i){let o=null,s=n.directiveEnd,l=n.directiveStylingLast;for(l===-1?l=n.directiveStart:l++;l<s&&(o=t[l],r=Pt(r,o.hostAttrs,i),o!==e);)l++;return e!==null&&(n.directiveStylingLast=l),r}function Pt(e,t,n){let r=n?1:2,i=-1;if(t!==null)for(let o=0;o<t.length;o++){let s=t[o];typeof s=="number"?i=s:i===r&&(Array.isArray(e)||(e=e===void 0?[]:["",e]),ef(e,s,n?!0:t[++o]))}return e===void 0?null:e}function hg(e,t,n,r,i,o,s,l){if(!(t.type&3))return;let a=e.data,u=a[l+1],c=tg(u)?Lo(a,t,n,i,gt(u),s):void 0;if(!yn(c)){yn(o)||Jp(u)&&(o=Lo(a,null,n,i,l,s));let f=el(Me(),n);Pd(r,s,f,i,o)}}function Lo(e,t,n,r,i,o){let s=t===null,l;for(;i>0;){let a=e[i],u=Array.isArray(a),c=u?a[1]:a,f=c===null,g=n[i+1];g===Pe&&(g=f?Ue:void 0);let p=f?Un(g,r):c===r?g:void 0;if(u&&!yn(p)&&(p=Un(a,r)),yn(p)&&(l=p,s))return l;let m=e[i+1];i=s?Ge(m):gt(m)}if(t!==null){let a=o?t.residualClasses:t.residualStyles;a!=null&&(l=Un(a,r))}return l}function yn(e){return e!==void 0}function dg(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=de(Xl(e)))),e}function pg(e,t){return(e.flags&(t?8:16))!==0}var gg=class{destroy(e){}updateValue(e,t){}swap(e,t){let n=Math.min(e,t),r=Math.max(e,t),i=this.detach(r);if(r-n>1){let o=this.detach(n);this.attach(n,i),this.attach(r,o)}else this.attach(n,i)}move(e,t){this.attach(t,this.detach(e))}};function Xn(e,t,n,r,i){return e===n&&Object.is(t,r)?1:Object.is(i(e,t),i(n,r))?-1:0}function mg(e,t,n){let r,i,o=0,s=e.length-1,l;if(Array.isArray(t)){let a=t.length-1;for(;o<=s&&o<=a;){let u=e.at(o),c=t[o],f=Xn(o,u,o,c,n);if(f!==0){f<0&&e.updateValue(o,c),o++;continue}let g=e.at(s),p=t[a],m=Xn(s,g,a,p,n);if(m!==0){m<0&&e.updateValue(s,p),s--,a--;continue}let y=n(o,u),w=n(s,g),C=n(o,c);if(Object.is(C,w)){let U=n(a,p);Object.is(U,y)?(e.swap(o,s),e.updateValue(s,p),a--,s--):e.move(s,o),e.updateValue(o,c),o++;continue}if(r??=new Uo,i??=zo(e,o,s,n),Rr(e,r,o,C))e.updateValue(o,c),o++,s++;else if(i.has(C))r.set(y,e.detach(o)),s--;else{let U=e.create(o,t[o]);e.attach(o,U),o++,s++}}for(;o<=a;)Ho(e,r,n,o,t[o]),o++}else if(t!=null){let a=t[Symbol.iterator](),u=a.next();for(;!u.done&&o<=s;){let c=e.at(o),f=u.value,g=Xn(o,c,o,f,n);if(g!==0)g<0&&e.updateValue(o,f),o++,u=a.next();else{r??=new Uo,i??=zo(e,o,s,n);let p=n(o,f);if(Rr(e,r,o,p))e.updateValue(o,f),o++,s++,u=a.next();else if(!i.has(p))e.attach(o,e.create(o,f)),o++,s++,u=a.next();else{let m=n(o,c);r.set(m,e.detach(o)),s--}}}for(;!u.done;)Ho(e,r,n,e.length,u.value),u=a.next()}for(;o<=s;)e.destroy(e.detach(s--));r?.forEach(a=>{e.destroy(a)})}function Rr(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function Ho(e,t,n,r,i){if(Rr(e,t,r,n(r,i)))e.updateValue(r,i);else{let o=e.create(r,i);e.attach(r,o)}}function zo(e,t,n,r){let i=new Set;for(let o=t;o<=n;o++)i.add(r(o,e.at(o)));return i}var Uo=class{kvMap=new Map;_vMap=void 0;has(e){return this.kvMap.has(e)}delete(e){if(!this.has(e))return!1;let t=this.kvMap.get(e);return this._vMap!==void 0&&this._vMap.has(t)?(this.kvMap.set(e,this._vMap.get(t)),this._vMap.delete(t)):this.kvMap.delete(e),!0}get(e){return this.kvMap.get(e)}set(e,t){if(this.kvMap.has(e)){let n=this.kvMap.get(e);this._vMap===void 0&&(this._vMap=new Map);let r=this._vMap;for(;r.has(n);)n=r.get(n);r.set(n,t)}else this.kvMap.set(e,t)}forEach(e){for(let[t,n]of this.kvMap)if(e(n,t),this._vMap!==void 0){let r=this._vMap;for(;r.has(n);)n=r.get(n),e(n,t)}}};function Fa(e,t){Gt("NgControlFlow");let n=z(),r=On(),i=n[r]!==Pe?n[r]:-1,o=i!==-1?vn(n,K+i):void 0,s=0;if(Ve(n,r,e)){let l=R(null);try{if(o!==void 0&&Ca(o,s),e!==-1){let a=K+e,u=vn(n,a),c=Ar(n[O],a),f=Vi(u,c.tView.ssrId),g=Si(n,c,t,{dehydratedView:f});Ri(u,g,s,Ti(c,f))}}finally{R(l)}}else if(o!==void 0){let l=Ia(o,s);l!==void 0&&(l[q]=t)}}var yg=class{lContainer;$implicit;$index;constructor(e,t,n){this.lContainer=e,this.$implicit=t,this.$index=n}get $count(){return this.lContainer.length-ee}},vg=class{hasEmptyBlock;trackByFn;liveCollection;constructor(e,t,n){this.hasEmptyBlock=e,this.trackByFn=t,this.liveCollection=n}};function wg(e,t,n,r,i,o,s,l,a,u,c,f,g){Gt("NgControlFlow");let p=z(),m=ge(),y=a!==void 0,w=z(),C=l?s.bind(w[ve][q]):s,U=new vg(y,C);w[K+e]=U,Or(p,m,e+1,t,n,r,i,dt(m.consts,o)),y&&Or(p,m,e+2,a,u,c,f,dt(m.consts,g))}var bg=class extends gg{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(e,t,n){super(),this.lContainer=e,this.hostLView=t,this.templateTNode=n}get length(){return this.lContainer.length-ee}at(e){return this.getLView(e)[q].$implicit}attach(e,t){let n=t[Rt];this.needsIndexUpdate||=e!==this.length,Ri(this.lContainer,t,e,Ti(this.templateTNode,n))}detach(e){return this.needsIndexUpdate||=e!==this.length-1,_g(this.lContainer,e)}create(e,t){let n=Vi(this.lContainer,this.templateTNode.tView.ssrId),r=Si(this.hostLView,this.templateTNode,new yg(this.lContainer,t,e),{dehydratedView:n});return this.operationsCounter?.recordCreate(),r}destroy(e){Oi(e[O],e),this.operationsCounter?.recordDestroy()}updateValue(e,t){this.getLView(e)[q].$implicit=t}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let e=0;e<this.length;e++)this.getLView(e)[q].$index=e}getLView(e){return Ig(this.lContainer,e)}};function Eg(e){let t=R(null),n=Me();try{let r=z(),i=r[O],o=r[n],s=n+1,l=vn(r,s);if(o.liveCollection===void 0){let u=Ar(i,s);o.liveCollection=new bg(l,r,u)}else o.liveCollection.reset();let a=o.liveCollection;if(mg(a,e,o.trackByFn),a.updateIndexes(),o.hasEmptyBlock){let u=On(),c=a.length===0;if(Ve(r,u,c)){let f=n+2,g=vn(r,f);if(c){let p=Ar(i,f),m=Vi(g,p.tView.ssrId),y=Si(r,p,void 0,{dehydratedView:m});Ri(g,y,0,Ti(p,m))}else Ca(g,0)}}}finally{R(t)}}function vn(e,t){return e[t]}function _g(e,t){return Ai(e,t)}function Ig(e,t){return Ia(e,t)}function Ar(e,t){return ri(e,t)}function mt(e,t,n,r){let i=z(),o=ge(),s=K+e,l=i[ie],a=o.firstCreatePass?Oa(s,o,i,t,ca,rl(),n,r):o.data[s],u=Cg(o,i,a,l,t,e);i[s]=u;let c=Qs(a);return Et(a,!0),ra(l,u,a),!fa(a)&&ui()&&Di(o,i,u,a),(kf()===0||c)&&$t(u,i),Of(),c&&(_i(o,i,a),Ql(o,a,i)),r!==null&&ua(i,a),mt}function ze(){let e=Ut();ol()?Mf():(e=e.parent,Et(e,!1));let t=e;Rf(t)&&Af(),Df();let n=ge();return n.firstCreatePass&&Da(n,t),t.classesWithoutHost!=null&&Qf(t)&&jo(n,t,z(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&Yf(t)&&jo(n,t,z(),t.stylesWithoutHost,!1),ze}function Li(e,t,n,r){return mt(e,t,n,r),ze(),Li}var Cg=(e,t,n,r,i,o)=>(ci(!0),ta(r,i,Gf())),wn="en-US",Sg=wn;function Tg(e){typeof e=="string"&&(Sg=e.toLowerCase().replace(/_/g,"-"))}function yt(e=1){return Zf(e)}function Hi(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function bn(e,t=""){let n=z(),r=ge(),i=e+K,o=r.firstCreatePass?Vn(r,i,1,t,null):r.data[i],s=xg(r,n,o,t,e);n[i]=s,ui()&&Di(r,n,s,o),Et(o,!1)}var xg=(e,t,n,r,i)=>(ci(!0),td(t[ie],r));function Vr(e){return Mn("",e,""),Vr}function Mn(e,t,n){let r=z(),i=Xp(r,e,t,n);return i!==Pe&&kg(r,Me(),i),Mn}function kg(e,t,n){let r=el(t,e);nd(e[ie],r,n)}var ja={};function La(e){let t=ge(),n=z(),r=e+K,i=Vn(t,r,128,null,null);return Et(i,!1),Hi(t,n,r,ja),La}function Og(e){Gt("NgLet");let t=ge(),n=z(),r=Me();return Hi(t,n,r,e),e}function Ha(e){let t=Pf(),n=ii(t,K+e);if(n===ja)throw new M(314,!1);return n}function za(e,t){let n=e[t];return n===Pe?void 0:n}function Dg(e,t,n,r,i,o){let s=t+n;return Ve(e,s,i)?Aa(e,s+1,o?r.call(o,i):r(i)):za(e,s+1)}function Ng(e,t,n,r,i,o,s){let l=t+n;return jp(e,l,i,o)?Aa(e,l+2,s?r.call(s,i,o):r(i,o)):za(e,l+2)}function zi(e,t){let n=ge(),r,i=e+K;n.firstCreatePass?(r=Rg(t,n.pipeRegistry),n.data[i]=r,r.onDestroy&&(n.destroyHooks??=[]).push(i,r.onDestroy)):r=n.data[i];let o=r.factory||(r.factory=ut(r.type,!0)),s,l=J(Pi);try{let a=dn(!1),u=o();return dn(a),Hi(n,z(),i,u),u}finally{J(l)}}function Rg(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function Ag(e,t,n){let r=e+K,i=z(),o=ii(i,r);return Ba(i,r)?Dg(i,ll(),t,o.transform,n,o):o.transform(n)}function Ua(e,t,n,r){let i=e+K,o=z(),s=ii(o,i);return Ba(o,i)?Ng(o,ll(),t,s.transform,n,r,s):s.transform(n,r)}function Ba(e,t){return e[O].data[t].pure}var Vg=(()=>{class e{zone=V(ne);changeDetectionScheduler=V(Bt);applicationRef=V(pt);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(n){return new(n||e)};static \u0275prov=W({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Mg({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new ne(wt(qe({},Pg()),{scheduleInRootZone:n})),[{provide:ne,useFactory:e},{provide:un,multi:!0,useFactory:()=>{let r=V(Vg,{optional:!0});return()=>r.initialize()}},{provide:un,multi:!0,useFactory:()=>{let r=V(Fg);return()=>{r.initialize()}}},t===!0?{provide:Nl,useValue:!0}:[],{provide:pi,useValue:n??Ol}]}function Pg(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var Fg=(()=>{class e{subscription=new Se;initialized=!1;zone=V(ne);pendingTasks=V(Nn);initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{ne.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{ne.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(n){return new(n||e)};static \u0275prov=W({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Za=(()=>{class e{appRef=V(pt);taskService=V(Nn);ngZone=V(ne);zonelessEnabled=V(di);tracing=V(vi,{optional:!0});disableScheduling=V(Nl,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new Se;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(gn):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(V(pi,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof Al||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;let r=!1;switch(n){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2,r=!0;break}case 12:{this.appRef.dirtyFlags|=16,r=!0;break}case 13:{this.appRef.dirtyFlags|=2,r=!0;break}case 11:{r=!0;break}case 9:case 8:case 7:case 10:default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(r))return;let i=this.useMicrotaskScheduler?Io:Rl;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>i(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>i(()=>this.tick()))}shouldScheduleTick(n){return!(this.disableScheduling&&!n||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(gn+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){throw this.taskService.remove(n),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,Io(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static \u0275fac=function(n){return new(n||e)};static \u0275prov=W({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function jg(){return Gt("NgZoneless"),rf([{provide:Bt,useExisting:Za},{provide:ne,useClass:Al},{provide:di,useValue:!0},{provide:pi,useValue:!1},[]])}function Lg(){return typeof $localize<"u"&&$localize.locale||wn}var $a=new F("",{providedIn:"root",factory:()=>V($a,x.Optional|x.SkipSelf)||Lg()}),Mr=new F(""),Hg=new F("");function Ct(e){return!e.moduleRef}function zg(e){let t=Ct(e)?e.r3Injector:e.moduleRef.injector,n=t.get(ne);return n.run(()=>{Ct(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(Zt,null),i;if(n.runOutsideAngular(()=>{i=n.onError.subscribe({next:o=>{r.handleError(o)}})}),Ct(e)){let o=()=>t.destroy(),s=e.platformInjector.get(Mr);s.add(o),t.onDestroy(()=>{i.unsubscribe(),s.delete(o)})}else{let o=()=>e.moduleRef.destroy(),s=e.platformInjector.get(Mr);s.add(o),e.moduleRef.onDestroy(()=>{nn(e.allPlatformModules,e.moduleRef),i.unsubscribe(),s.delete(o)})}return Bg(r,n,()=>{let o=t.get(Ma);return o.runInitializers(),o.donePromise.then(()=>{let s=t.get($a,wn);if(Tg(s||wn),!t.get(Hg,!0))return Ct(e)?t.get(pt):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(Ct(e)){let l=t.get(pt);return e.rootComponent!==void 0&&l.bootstrap(e.rootComponent),l}else return Ug(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}function Ug(e,t){let n=e.injector.get(pt);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(e.instance.ngDoBootstrap)e.instance.ngDoBootstrap(n);else throw new M(-403,!1);t.push(e)}function Bg(e,t,n){try{let r=n();return Va(r)?r.catch(i=>{throw t.runOutsideAngular(()=>e.handleError(i)),i}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}var rn=null;function Zg(e=[],t){return Dn.create({name:t,providers:[{provide:ei,useValue:"platform"},{provide:Mr,useValue:new Set([()=>rn=null])},...e]})}function $g(e=[]){if(rn)return rn;let t=Zg(e);return rn=t,qp(),Gg(t),t}function Gg(e){let t=e.get(Zl,null);Gs(e,()=>{t?.forEach(n=>n())})}function Wg(e){H(8);try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,i=$g(r),o=[Mg({}),{provide:Bt,useExisting:Za},...n||[]],s=new Na({providers:o,parent:i,debugName:"",runEnvironmentInitializers:!1});return zg({r3Injector:s.injector,platformInjector:i,rootComponent:t})}catch(t){return Promise.reject(t)}finally{H(9)}}var vy=class{[De];constructor(e){this[De]=e}destroy(){this[De].destroy()}},qg={schedule(e,t){let n=setTimeout(e,t);return()=>clearTimeout(n)}};function Kg(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function Qg(e){return!!e&&e.nodeType===Node.ELEMENT_NODE}var Jn;function Yg(e,t){if(!Jn){let n=Element.prototype;Jn=n.matches||n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}return e.nodeType===Node.ELEMENT_NODE?Jn.call(e,t):!1}function Xg(e){let t={};return e.forEach(({propName:n,templateName:r,transform:i})=>{t[Kg(r)]=[n,i]}),t}function Jg(e,t){return t.get(Wt).resolveComponentFactory(e).inputs}function em(e,t){let n=e.childNodes,r=t.map(()=>[]),i=-1;t.some((o,s)=>o==="*"?(i=s,!0):!1);for(let o=0,s=n.length;o<s;++o){let l=n[o],a=tm(l,t,i);a!==-1&&r[a].push(l)}return r}function tm(e,t,n){let r=n;return Qg(e)&&t.some((i,o)=>i!=="*"&&Yg(e,i)?(r=o,!0):!1),r}var nm=10,rm=class{componentFactory;inputMap=new Map;constructor(e,t){this.componentFactory=t.get(Wt).resolveComponentFactory(e);for(let n of this.componentFactory.inputs)this.inputMap.set(n.propName,n.templateName)}create(e){return new im(this.componentFactory,e,this.inputMap)}},im=class{componentFactory;injector;inputMap;eventEmitters=new oc(1);events=this.eventEmitters.pipe(Dc(e=>Oc(...e)));componentRef=null;scheduledDestroyFn=null;initialInputValues=new Map;ngZone;elementZone;appRef;cdScheduler;constructor(e,t,n){this.componentFactory=e,this.injector=t,this.inputMap=n,this.ngZone=this.injector.get(ne),this.appRef=this.injector.get(pt),this.cdScheduler=t.get(Bt),this.elementZone=typeof Zone>"u"?null:this.ngZone.run(()=>Zone.current)}connect(e){this.runInZone(()=>{if(this.scheduledDestroyFn!==null){this.scheduledDestroyFn(),this.scheduledDestroyFn=null;return}this.componentRef===null&&this.initializeComponent(e)})}disconnect(){this.runInZone(()=>{this.componentRef===null||this.scheduledDestroyFn!==null||(this.scheduledDestroyFn=qg.schedule(()=>{this.componentRef!==null&&(this.componentRef.destroy(),this.componentRef=null)},nm))})}getInputValue(e){return this.runInZone(()=>this.componentRef===null?this.initialInputValues.get(e):this.componentRef.instance[e])}setInputValue(e,t){if(this.componentRef===null){this.initialInputValues.set(e,t);return}this.runInZone(()=>{this.componentRef.setInput(this.inputMap.get(e)??e,t),this.componentRef.hostView.dirty&&(this.componentRef.changeDetectorRef.markForRefresh(),this.cdScheduler.notify(6))})}initializeComponent(e){let t=Dn.create({providers:[],parent:this.injector}),n=em(e,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(t,n,e),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.appRef.attachView(this.componentRef.hostView),this.componentRef.hostView.detectChanges()}initializeInputs(){for(let[e,t]of this.initialInputValues)this.setInputValue(e,t);this.initialInputValues.clear()}initializeOutputs(e){let t=this.componentFactory.outputs.map(({propName:n,templateName:r})=>{let i=e.instance[n];return new re(o=>{let s=i.subscribe(l=>o.next({name:r,value:l}));return()=>s.unsubscribe()})});this.eventEmitters.next(t)}runInZone(e){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(e):e()}},om=class extends HTMLElement{ngElementEventsSubscription=null};function sm(e,t){let n=Jg(e,t.injector),r=t.strategyFactory||new rm(e,t.injector),i=Xg(n);class o extends om{injector;static observedAttributes=Object.keys(i);get ngElementStrategy(){if(!this._ngElementStrategy){let l=this._ngElementStrategy=r.create(this.injector||t.injector);n.forEach(({propName:a,transform:u})=>{if(!this.hasOwnProperty(a))return;let c=this[a];delete this[a],l.setInputValue(a,c,u)})}return this._ngElementStrategy}_ngElementStrategy;constructor(l){super(),this.injector=l}attributeChangedCallback(l,a,u,c){let[f,g]=i[l];this.ngElementStrategy.setInputValue(f,u,g)}connectedCallback(){let l=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),l=!0),this.ngElementStrategy.connect(this),l||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(l=>{let a=new CustomEvent(l.name,{detail:l.value});this.dispatchEvent(a)})}}return n.forEach(({propName:s,transform:l})=>{Object.defineProperty(o.prototype,s,{get(){return this.ngElementStrategy.getInputValue(s)},set(a){this.ngElementStrategy.setInputValue(s,a,l)},configurable:!0,enumerable:!0})}),o}var Ga=null;function Wa(){return Ga}function lm(e){Ga??=e}var am=class{},We=new F("");function um(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[i,o]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(i.trim()===t)return decodeURIComponent(o)}return null}var cm="browser",fm="server";function qa(e){return e===fm}var hm=class{},dm=class extends am{supportsDOMEvents=!0},pm=class Ka extends dm{static makeCurrent(){lm(new Ka)}onAndCancel(t,n,r,i){return t.addEventListener(n,r,i),()=>{t.removeEventListener(n,r,i)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.remove()}createElement(t,n){return n=n||this.getDefaultDocument(),n.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=gm();return n==null?null:mm(n)}resetBaseElement(){xt=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return um(document.cookie,t)}},xt=null;function gm(){return xt=xt||document.querySelector("base"),xt?xt.getAttribute("href"):null}function mm(e){return new URL(e,document.baseURI).pathname}var ym=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(n){return new(n||e)};static \u0275prov=W({token:e,factory:e.\u0275fac})}return e})(),Pr=new F(""),Qa=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,r){this._zone=r,n.forEach(i=>{i.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,i,o){return this._findPluginFor(r).addEventListener(n,r,i,o)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new M(5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(n){return new(n||e)(j(Pr),j(ne))};static \u0275prov=W({token:e,factory:e.\u0275fac})}return e})(),Ya=class{_doc;constructor(e){this._doc=e}manager},on="ng-app-id";function Bo(e){for(let t of e)t.remove()}function Zo(e,t){let n=t.createElement("style");return n.textContent=e,n}function vm(e,t,n,r){let i=e.head?.querySelectorAll(`style[${on}="${t}"],link[${on}="${t}"]`);if(i)for(let o of i)o.removeAttribute(on),o instanceof HTMLLinkElement?r.set(o.href.slice(o.href.lastIndexOf("/")+1),{usage:0,elements:[o]}):o.textContent&&n.set(o.textContent,{usage:0,elements:[o]})}function Fr(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var Xa=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(n,r,i,o={}){this.doc=n,this.appId=r,this.nonce=i,this.isServer=qa(o),vm(n,r,this.inline,this.external),this.hosts.add(n.head)}addStyles(n,r){for(let i of n)this.addUsage(i,this.inline,Zo);r?.forEach(i=>this.addUsage(i,this.external,Fr))}removeStyles(n,r){for(let i of n)this.removeUsage(i,this.inline);r?.forEach(i=>this.removeUsage(i,this.external))}addUsage(n,r,i){let o=r.get(n);o?o.usage++:r.set(n,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,i(n,this.doc)))})}removeUsage(n,r){let i=r.get(n);i&&(i.usage--,i.usage<=0&&(Bo(i.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])Bo(n);this.hosts.clear()}addHost(n){this.hosts.add(n);for(let[r,{elements:i}]of this.inline)i.push(this.addElement(n,Zo(r,this.doc)));for(let[r,{elements:i}]of this.external)i.push(this.addElement(n,Fr(r,this.doc)))}removeHost(n){this.hosts.delete(n)}addElement(n,r){return this.nonce&&r.setAttribute("nonce",this.nonce),this.isServer&&r.setAttribute(on,this.appId),n.appendChild(r)}static \u0275fac=function(n){return new(n||e)(j(We),j(Bl),j($l,8),j(yi))};static \u0275prov=W({token:e,factory:e.\u0275fac})}return e})(),er={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},Ui=/%COMP%/g,Ja="%COMP%",wm=`_nghost-${Ja}`,bm=`_ngcontent-${Ja}`,Em=!0,_m=new F("",{providedIn:"root",factory:()=>Em});function Im(e){return bm.replace(Ui,e)}function Cm(e){return wm.replace(Ui,e)}function eu(e,t){return t.map(n=>n.replace(Ui,e))}var $o=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(n,r,i,o,s,l,a,u=null,c=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=i,this.removeStylesOnCompDestroy=o,this.doc=s,this.platformId=l,this.ngZone=a,this.nonce=u,this.tracingService=c,this.platformIsServer=qa(l),this.defaultRenderer=new Bi(n,s,a,this.platformIsServer,this.tracingService)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Ce.ShadowDom&&(r=wt(qe({},r),{encapsulation:Ce.Emulated}));let i=this.getOrCreateRenderer(n,r);return i instanceof Wo?i.applyToHost(n):i instanceof jr&&i.applyStyles(),i}getOrCreateRenderer(n,r){let i=this.rendererByCompId,o=i.get(r.id);if(!o){let s=this.doc,l=this.ngZone,a=this.eventManager,u=this.sharedStylesHost,c=this.removeStylesOnCompDestroy,f=this.platformIsServer,g=this.tracingService;switch(r.encapsulation){case Ce.Emulated:o=new Wo(a,u,r,this.appId,c,s,l,f,g);break;case Ce.ShadowDom:return new Sm(a,u,n,r,s,l,this.nonce,f,g);default:o=new jr(a,u,r,c,s,l,f,g);break}i.set(r.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(n){this.rendererByCompId.delete(n)}static \u0275fac=function(n){return new(n||e)(j(Qa),j(Xa),j(Bl),j(_m),j(We),j(yi),j(ne),j($l),j(vi,8))};static \u0275prov=W({token:e,factory:e.\u0275fac})}return e})(),Bi=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(e,t,n,r,i){this.eventManager=e,this.doc=t,this.ngZone=n,this.platformIsServer=r,this.tracingService=i}destroy(){}destroyNode=null;createElement(e,t){return t?this.doc.createElementNS(er[t]||t,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,t){(Go(e)?e.content:e).appendChild(t)}insertBefore(e,t,n){e&&(Go(e)?e.content:e).insertBefore(t,n)}removeChild(e,t){t.remove()}selectRootElement(e,t){let n=typeof e=="string"?this.doc.querySelector(e):e;if(!n)throw new M(-5104,!1);return t||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,n,r){if(r){t=r+":"+t;let i=er[r];i?e.setAttributeNS(i,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){let r=er[n];r?e.removeAttributeNS(r,t):e.removeAttribute(`${n}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,n,r){r&(Le.DashCase|Le.Important)?e.style.setProperty(t,n,r&Le.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&Le.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,n){e!=null&&(e[t]=n)}setValue(e,t){e.nodeValue=t}listen(e,t,n,r){if(typeof e=="string"&&(e=Wa().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${t}`);let i=this.decoratePreventDefault(n);return this.tracingService!==null&&this.tracingService.wrapEventListener&&(i=this.tracingService.wrapEventListener(e,t,i)),this.eventManager.addEventListener(e,t,i,r)}decoratePreventDefault(e){return t=>{if(t==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(t)):e(t))===!1&&t.preventDefault()}}};function Go(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var Sm=class extends Bi{sharedStylesHost;hostEl;shadowRoot;constructor(e,t,n,r,i,o,s,l,a){super(e,i,o,l,a),this.sharedStylesHost=t,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=r.styles;u=eu(r.id,u);for(let f of u){let g=document.createElement("style");s&&g.setAttribute("nonce",s),g.textContent=f,this.shadowRoot.appendChild(g)}let c=r.getExternalStyles?.();if(c)for(let f of c){let g=Fr(f,i);s&&g.setAttribute("nonce",s),this.shadowRoot.appendChild(g)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,t){return super.appendChild(this.nodeOrShadowRoot(e),t)}insertBefore(e,t,n){return super.insertBefore(this.nodeOrShadowRoot(e),t,n)}removeChild(e,t){return super.removeChild(null,t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},jr=class extends Bi{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(e,t,n,r,i,o,s,l,a){super(e,i,o,s,l),this.sharedStylesHost=t,this.removeStylesOnCompDestroy=r;let u=n.styles;this.styles=a?eu(a,u):u,this.styleUrls=n.getExternalStyles?.(a)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},Wo=class extends jr{contentAttr;hostAttr;constructor(e,t,n,r,i,o,s,l,a){let u=r+"-"+n.id;super(e,t,n,i,o,s,l,a,u),this.contentAttr=Im(u),this.hostAttr=Cm(u)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,t){let n=super.createElement(e,t);return super.setAttribute(n,this.contentAttr,""),n}},Tm=(()=>{class e extends Ya{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,i,o){return n.addEventListener(r,i,o),()=>this.removeEventListener(n,r,i,o)}removeEventListener(n,r,i,o){return n.removeEventListener(r,i,o)}static \u0275fac=function(n){return new(n||e)(j(We))};static \u0275prov=W({token:e,factory:e.\u0275fac})}return e})(),qo=["alt","control","meta","shift"],xm={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},km={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},Om=(()=>{class e extends Ya{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,i,o){let s=e.parseEventName(r),l=e.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Wa().onAndCancel(n,s.domEventName,l,o))}static parseEventName(n){let r=n.toLowerCase().split("."),i=r.shift();if(r.length===0||!(i==="keydown"||i==="keyup"))return null;let o=e._normalizeKey(r.pop()),s="",l=r.indexOf("code");if(l>-1&&(r.splice(l,1),s="code."),qo.forEach(u=>{let c=r.indexOf(u);c>-1&&(r.splice(c,1),s+=u+".")}),s+=o,r.length!=0||o.length===0)return null;let a={};return a.domEventName=i,a.fullKey=s,a}static matchEventFullKeyCode(n,r){let i=xm[n.key]||n.key,o="";return r.indexOf("code.")>-1&&(i=n.code,o="code."),i==null||!i?!1:(i=i.toLowerCase(),i===" "?i="space":i==="."&&(i="dot"),qo.forEach(s=>{if(s!==i){let l=km[s];l(n)&&(o+=s+".")}}),o+=i,o===r)}static eventCallback(n,r,i){return o=>{e.matchEventFullKeyCode(o,n)&&i.runGuarded(()=>r(o))}}static _normalizeKey(n){return n==="esc"?"escape":n}static \u0275fac=function(n){return new(n||e)(j(We))};static \u0275prov=W({token:e,factory:e.\u0275fac})}return e})();function Dm(e){return Wg(Nm(e))}function Nm(e){return{appProviders:[...Pm,...e?.providers??[]],platformProviders:Mm}}function Rm(){pm.makeCurrent()}function Am(){return new Zt}function Vm(){return Dh(document),document}var Mm=[{provide:yi,useValue:cm},{provide:Zl,useValue:Rm,multi:!0},{provide:We,useFactory:Vm,deps:[]}],Pm=[{provide:ei,useValue:"root"},{provide:Zt,useFactory:Am,deps:[]},{provide:Pr,useClass:Tm,multi:!0,deps:[We]},{provide:Pr,useClass:Om,multi:!0,deps:[We]},$o,Xa,Qa,{provide:Mi,useExisting:$o},{provide:hm,useClass:ym,deps:[]},[]],Fm={apiURL:"http://localhost:3003",debug:!0,mode:"local"},oe=ku(Ou()),jm="9.3.2",tr=class Lr{static SDK_VERSION=jm;static SDK_VERSION_CODE;static SDK="WEB";static LOG_PREFIX="CooeeSDK";static COOEE="cooee";static SESSION_STORAGE_SCROLL_ID="sleid";static IDLE_TIME_IN_SECONDS=30*60;static IN_APP_WRAPPER_NAME="cooee-wrapper";static IN_APP_CONTAINER_NAME="cooee-container";static IN_APP_DEFAULT_PADDING=15;static EVENT_SCREEN_VIEW="CE Screen View";static EVENT_APP_BACKGROUND="CE App Background";static EVENT_TRIGGER_DISPLAYED="CE Trigger Displayed";static EVENT_CAMPAIGN_HOLDOUT="CE Campaign Holdout";static EVENT_CAMPAIGN_REJECTED="CE Campaign Rejected";static EVENT_CAMPAIGN_FAILED="CE Campaign Failed";static EVENT_TRIGGER_CLOSED="CE Trigger Closed";static EVENT_SCROLL="CE Scroll";static EVENT_TRIGGER_CLICKED="CE Trigger Clicked";static EVENT_FORM_SUBMITTED="CE Form Submitted";static EVENT_ADD_TO_CART="Add To Cart";static EVENT_REMOVE_FROM_CART="Remove From Cart";static EVENT_VIEW_ITEM="View Item";static EVENT_VIEW_CART="View Cart";static EVENT_VIEW_COLLECTION="View Collection";static EVENT_BUY_NOW_CLICKED="Buy Now Clicked";static EVENT_CHECKOUT_STARTED="Checkout Started";static EVENT_REVIEW_CLICKED="Review Clicked";static EVENT_ITEM_THUMBNAIL_CLICKED="Item Thumbnail Clicked";static JS_LOAD_WHITELIST_EVENTS=[this.EVENT_VIEW_ITEM,this.EVENT_VIEW_CART,this.EVENT_VIEW_COLLECTION];static HASH_INITIATE_CHECKOUT="initiate-checkout";static HASH_OPEN_CART_DRAWER="open-cart-drawer";static CTA_EVENT="letscooee:outbound:cta";static ADD_BUNDLE_CTA_INBOUND_EVENT="letscooee:inbound:cta:add-bundle";static CTA_OPEN_CART_EVENT="letscooee:outbound:open-cart";static POPUP_ACTIVITY_EVENT="letscooee:outbound:popup-activities";static THIRD_PARTY_CHECKOUT_EVENT="letscooee:outbound:third-party-initiate-checkout";static CAMPAIGN_DISPLAYED_ACTIVITY="DISPLAYED";static CAMPAIGN_CLICKED_ACTIVITY="CLICKED";static CAMPAIGN_CLOSED_ACTIVITY="CLOSED";static BLACKLISTED_PAGE_NAMES=["collection","product","cart"];static API_CALL_MAX_ATTEMPTS=3;static API_CALL_RETRY_DELAY=1e3;static PLACEHOLDER_IMAGE="https://cdn.global.letscooee.com/images/placeholders/product.png";static CART_UPDATE_BROADCAST="CART_UPDATE";static GRAPHQL_VERSION="2024-10";static GRAPHQL_API_PATH=`/api/${this.GRAPHQL_VERSION}/graphql.json`;static CAMPAIGN_ATTRIBUTE="_letscooee_campaign";static{let t=Lr.SDK_VERSION.split(".").map(n=>n.padStart(2,"0")).join("");Lr.SDK_VERSION_CODE=parseInt(t,10)}},Ie=class{static log(...e){oe.default.info(...e)}static debug(...e){oe.default.debug(...e)}static error(...e){oe.default.error(...e)}static warn(...e){oe.default.warn(...e)}static info(...e){oe.default.info(...e)}static trace(...e){oe.default.trace(...e)}static configure(e=tr.LOG_PREFIX){oe.default.useDefaults({formatter:function(n){n.unshift(`${e} (v${tr.SDK_VERSION}):`)}});let t=this.getDebugParam();(t==="1"||t==="on")&&(localStorage.cooeeLogLevel="TRACE"),localStorage.cooeeLogLevel?oe.default.setLevel(oe.default[localStorage.cooeeLogLevel]):oe.default.setLevel(Fm.debug?oe.default.TRACE:oe.default.OFF)}static getDebugParam(){return new URL(location.href).searchParams?.get("cooee-debug")}static logBrand(){let e=`
8
8
  display: inline-block;
9
9
  font-size: 14px;
10
10
  background: linear-gradient(90deg, #d52dc8 25%, #2179e2 82%);
11
11
  color: white;
12
12
  padding: 4px;
13
13
  border-radius: 4px;
14
- `,n=`
15
- `;n+=`\u{1F4E3} Drive higher conversions with AI-powered onsite engagement
16
- `,n+=`\u{1F50D} Track real-time visitor intent & optimize engagement
17
- `,n+=`\u{1F4CA} Improve Meta Ads ROAS with intent-driven campaigns
18
- `,n+=`\u{1F6CD}\uFE0F Boost purchases & repeat sales effortlessly
19
- `,n+=`
14
+ `,t=`
15
+ `;t+=`\u{1F4E3} Drive higher conversions with AI-powered onsite engagement
16
+ `,t+=`\u{1F50D} Track real-time visitor intent & optimize engagement
17
+ `,t+=`\u{1F4CA} Improve Meta Ads ROAS with intent-driven campaigns
18
+ `,t+=`\u{1F6CD}\uFE0F Boost purchases & repeat sales effortlessly
19
+ `,t+=`
20
20
 
21
- `,n+=`Learn more: https://www.letscooee.com
22
- Cooee SDK: v${kt.SDK_VERSION}`,console.group("%c Elevate your ecommerce experience with Cooee \u{1F680} ",t),console.log(`%c${n}`,"font-size: 13px; line-height: 1.8;"),console.groupEnd()}};var Pl={providers:[fl()]};var mn=function(e){return e.FREE_SHIPPING="FREE_SHIPPING",e.DISCOUNT="DISCOUNT",e.FREE_AUTO_GIFT="FREE_AUTO_GIFT",e.FREE_GIFT_SELECT="FREE_GIFT_SELECT",e}(mn||{});var Ur=class{gaEnabled;gaMeasurementID;pixelPush;website;currencyCount;money;storefrontToken;currency;static get(){return window.CooeeSDK.config}update(t){return t??={},this.gaEnabled=t.gaEnabled,this.gaMeasurementID=t.gaMeasurementID,this.pixelPush=t.pixelPush,this.website=t.website??{},this.currencyCount=t.currencyCount??0,this.money=t.money,this.currency=t.currency,this.storefrontToken=t.storefrontToken,this}};var $r=class{static format(t,n){let r=/{{\s*(\w+)\s*}}/;return n.replace(r,(o,i)=>{switch(i){case"amount":return this.formatWithDelimiters(t,2);case"amount_no_decimals":return this.formatWithDelimiters(t,0);case"amount_with_comma_separator":return this.formatWithDelimiters(t,2,".",",");case"amount_no_decimals_with_comma_separator":return this.formatWithDelimiters(t,0,".",",");case"amount_with_apostrophe_separator":return this.formatWithDelimiters(t,2,"'",".");case"amount_no_decimals_with_space_separator":return this.formatWithDelimiters(t,0," ");case"amount_with_space_separator":return this.formatWithDelimiters(t,2," ",",");case"amount_with_period_and_space_separator":return this.formatWithDelimiters(t,2," ",".");default:return o}})}static formatWithDelimiters(t,n=2,r=",",o="."){if(isNaN(t)||t==null)return"0";let s=(t/100).toFixed(n).split("."),a=s[0].replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1"+r),c=s[1]?o+s[1]:"";return a+c}};var Gr=class{isCartDirty=!0;cartEngagements;isGoKwikPopupOpen;previewIDs;previewVariant;pageName;moneyFormat;jsLoadTime=new Date;shopCurrencyCode;inInactive=!1;lastEnterActive=new Date;lastEnterInactive=null;currentItem;_currencyCode;get currencyCode(){return this._currencyCode}set currencyCode(t){this._currencyCode=t}static get(){return window.CooeeSDK.runtimeData}isInactive(){return this.inInactive}async setInactive(){return this.inInactive?0:(this.inInactive=!0,this.lastEnterInactive=new Date,Math.max((this.lastEnterInactive.getTime()-this.lastEnterActive.getTime())/1e3,0))}setActive(){return this.inInactive?(this.inInactive=!1,this.lastEnterActive=new Date,Math.max((this.lastEnterActive.getTime()-this.lastEnterInactive.getTime())/1e3,0)):0}isFirstActive(){return this.lastEnterInactive==null}getCurrentItem(){return this.currentItem}setCurrentItem(t){this.currentItem=t}};var zr=class{static ISO_WITHOUT_MS_REGEX=new RegExp(/\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)/);static isObject(t){return typeof t=="object"&&!Array.isArray(t)&&t!==null}static parseToAny(t){try{return JSON.parse(t.toString())}catch{}return t.toString().match(this.ISO_WITHOUT_MS_REGEX)?new Date(t.toString()):t}static async sleep(t){return new Promise(n=>setTimeout(n,t))}static hasKeys(t){return t?Object.keys(t).length>=1:!1}static convertObjectToArray(t,n){return n.reduce((r,o)=>(t.hasOwnProperty(o)&&t[o]!=null&&r.push({[o]:t[o]}),r),[])}static removeNullUndefinedKeys(t){return Object.keys(t).reduce((n,r)=>(t[r]!==null&&t[r]!==void 0&&(n[r]=t[r]),n),{})}static stringify(t){return JSON.stringify(t,function(n,r){return r===void 0?null:r})}};var Lt=class{static tz;static isValidURL(t){try{return new URL(t)}catch{return}}static isNull(t){return!t||t==="null"||t==="undefined"}static removeFromArray(t,n){let r=t.indexOf(n);return r===-1?!1:(t.splice(r,1),!0)}static formatCurrency(t,n){if(t==0&&n)return"Free";let r=Gr.get(),o=Ur.get(),i=r.shopCurrencyCode??o.currency,s=r.currencyCode,a=o.money?.format??r.moneyFormat,c;return a&&i===s?c=$r.format(t*100,a):(c=new Intl.NumberFormat(this.getLang(),{style:"currency",currency:s,minimumFractionDigits:0,maximumFractionDigits:2}).format(t),c=c.replace("\u20B9","Rs. "),o.money?.showCurrency&&s!=="INR"&&(c=c.concat(` ${s}`))),c}static formatNumber(t){return new Intl.NumberFormat(this.getLang(),{notation:"compact"}).format(t)}static getLang(){return navigator.languages!==void 0?navigator.languages[0].split("-")[0]:navigator.language??"en"}static getTimezone(){if(this.tz)return this.tz;try{return this.tz=Intl.DateTimeFormat().resolvedOptions().timeZone,this.tz}catch{return""}}static documentReady(t){document.readyState!=="loading"?t():document.addEventListener("DOMContentLoaded",t)}static onDocumentLoaded(t){document.readyState==="complete"?t():document.addEventListener("readystatechange",()=>{document.readyState==="complete"&&t()})}static showSnackbar(t){let n=document.createElement("span");n.id="snackbar",n.innerText=t,document.body.appendChild(n),n.className="show",setTimeout(()=>{n.classList.remove("show"),document.body.removeChild(n)},3e3)}static async retrySelectorForElements(t,n=10,r=document){let o=0,i=document.querySelectorAll("nonexistent-tag");for(;o<n;){let s=Math.min(100*2**o,5e3);if(await zr.sleep(s),i=r.querySelectorAll(t),i.length)return ie.debug(`Attempt ${o+1}: ${i.length} elements found with ${t}`),i;ie.debug(`Attempt ${o+1}: Elements not found with ${t}. Retrying after ${s}ms.`),o++}return ie.warn(`Max attempts reached. Element not found with ${t}.`),i}static async retrySelector(t,n=10,r=document){return(await this.retrySelectorForElements(t,n,r)).item(0)}};var Wr=class e{transform(t){return t?Lt.formatCurrency(t):null}static \u0275fac=function(n){return new(n||e)};static \u0275pipe=Nr({name:"cooeeCurrency",type:e,pure:!0})};var Fl=(()=>{class e{static entityMap={'"':"&quot;"};static escapeHtml(n){return String(n).replace(/"/g,r=>e.entityMap[r])}}return e})();var Zm=Object.prototype.toString,jt=Array.isArray||function(t){return Zm.call(t)==="[object Array]"};function _s(e){return typeof e=="function"}function Ym(e){return jt(e)?"array":typeof e}function Cs(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function kl(e,t){return e!=null&&typeof e=="object"&&t in e}function Qm(e,t){return e!=null&&typeof e!="object"&&e.hasOwnProperty&&e.hasOwnProperty(t)}var Km=RegExp.prototype.test;function Jm(e,t){return Km.call(e,t)}var Xm=/\S/;function ey(e){return!Jm(Xm,e)}var ty={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"};function ny(e){return String(e).replace(/[&<>"'`=\/]/g,function(n){return ty[n]})}var ry=/\s*/,oy=/\s+/,Ll=/\s*=/,iy=/\s*\}/,sy=/#|\^|\/|>|\{|&|=|!/;function ay(e,t){if(!e)return[];var n=!1,r=[],o=[],i=[],s=!1,a=!1,c="",u=0;function l(){if(s&&!a)for(;i.length;)delete o[i.pop()];else i=[];s=!1,a=!1}var p,g,f;function m(he){if(typeof he=="string"&&(he=he.split(oy,2)),!jt(he)||he.length!==2)throw new Error("Invalid tags: "+he);p=new RegExp(Cs(he[0])+"\\s*"),g=new RegExp("\\s*"+Cs(he[1])),f=new RegExp("\\s*"+Cs("}"+he[1]))}m(t||pe.tags);for(var y=new vn(e),w,x,W,Ae,gt,Re;!y.eos();){if(w=y.pos,W=y.scanUntil(p),W)for(var Bt=0,Qr=W.length;Bt<Qr;++Bt)Ae=W.charAt(Bt),ey(Ae)?(i.push(o.length),c+=Ae):(a=!0,n=!0,c+=" "),o.push(["text",Ae,w,w+1]),w+=1,Ae===`
23
- `&&(l(),c="",u=0,n=!1);if(!y.scan(p))break;if(s=!0,x=y.scan(sy)||"name",y.scan(ry),x==="="?(W=y.scanUntil(Ll),y.scan(Ll),y.scanUntil(g)):x==="{"?(W=y.scanUntil(f),y.scan(iy),y.scanUntil(g),x="&"):W=y.scanUntil(g),!y.scan(g))throw new Error("Unclosed tag at "+y.pos);if(x==">"?gt=[x,W,w,y.pos,c,u,n]:gt=[x,W,w,y.pos],u++,o.push(gt),x==="#"||x==="^")r.push(gt);else if(x==="/"){if(Re=r.pop(),!Re)throw new Error('Unopened section "'+W+'" at '+w);if(Re[1]!==W)throw new Error('Unclosed section "'+Re[1]+'" at '+w)}else x==="name"||x==="{"||x==="&"?a=!0:x==="="&&m(W)}if(l(),Re=r.pop(),Re)throw new Error('Unclosed section "'+Re[1]+'" at '+y.pos);return uy(cy(o))}function cy(e){for(var t=[],n,r,o=0,i=e.length;o<i;++o)n=e[o],n&&(n[0]==="text"&&r&&r[0]==="text"?(r[1]+=n[1],r[3]=n[3]):(t.push(n),r=n));return t}function uy(e){for(var t=[],n=t,r=[],o,i,s=0,a=e.length;s<a;++s)switch(o=e[s],o[0]){case"#":case"^":n.push(o),r.push(o),n=o[4]=[];break;case"/":i=r.pop(),i[5]=o[2],n=r.length>0?r[r.length-1][4]:t;break;default:n.push(o)}return t}function vn(e){this.string=e,this.tail=e,this.pos=0}vn.prototype.eos=function(){return this.tail===""};vn.prototype.scan=function(t){var n=this.tail.match(t);if(!n||n.index!==0)return"";var r=n[0];return this.tail=this.tail.substring(r.length),this.pos+=r.length,r};vn.prototype.scanUntil=function(t){var n=this.tail.search(t),r;switch(n){case-1:r=this.tail,this.tail="";break;case 0:r="";break;default:r=this.tail.substring(0,n),this.tail=this.tail.substring(n)}return this.pos+=r.length,r};function Vt(e,t){this.view=e,this.cache={".":this.view},this.parent=t}Vt.prototype.push=function(t){return new Vt(t,this)};Vt.prototype.lookup=function(t){var n=this.cache,r;if(n.hasOwnProperty(t))r=n[t];else{for(var o=this,i,s,a,c=!1;o;){if(t.indexOf(".")>0)for(i=o.view,s=t.split("."),a=0;i!=null&&a<s.length;)a===s.length-1&&(c=kl(i,s[a])||Qm(i,s[a])),i=i[s[a++]];else i=o.view[t],c=kl(o.view,t);if(c){r=i;break}o=o.parent}n[t]=r}return _s(r)&&(r=r.call(this.view)),r};function ee(){this.templateCache={_cache:{},set:function(t,n){this._cache[t]=n},get:function(t){return this._cache[t]},clear:function(){this._cache={}}}}ee.prototype.clearCache=function(){typeof this.templateCache<"u"&&this.templateCache.clear()};ee.prototype.parse=function(t,n){var r=this.templateCache,o=t+":"+(n||pe.tags).join(":"),i=typeof r<"u",s=i?r.get(o):void 0;return s==null&&(s=ay(t,n),i&&r.set(o,s)),s};ee.prototype.render=function(t,n,r,o){var i=this.getConfigTags(o),s=this.parse(t,i),a=n instanceof Vt?n:new Vt(n,void 0);return this.renderTokens(s,a,r,t,o)};ee.prototype.renderTokens=function(t,n,r,o,i){for(var s="",a,c,u,l=0,p=t.length;l<p;++l)u=void 0,a=t[l],c=a[0],c==="#"?u=this.renderSection(a,n,r,o,i):c==="^"?u=this.renderInverted(a,n,r,o,i):c===">"?u=this.renderPartial(a,n,r,i):c==="&"?u=this.unescapedValue(a,n):c==="name"?u=this.escapedValue(a,n,i):c==="text"&&(u=this.rawValue(a)),u!==void 0&&(s+=u);return s};ee.prototype.renderSection=function(t,n,r,o,i){var s=this,a="",c=n.lookup(t[1]);function u(g){return s.render(g,n,r,i)}if(c){if(jt(c))for(var l=0,p=c.length;l<p;++l)a+=this.renderTokens(t[4],n.push(c[l]),r,o,i);else if(typeof c=="object"||typeof c=="string"||typeof c=="number")a+=this.renderTokens(t[4],n.push(c),r,o,i);else if(_s(c)){if(typeof o!="string")throw new Error("Cannot use higher-order sections without the original template");c=c.call(n.view,o.slice(t[3],t[5]),u),c!=null&&(a+=c)}else a+=this.renderTokens(t[4],n,r,o,i);return a}};ee.prototype.renderInverted=function(t,n,r,o,i){var s=n.lookup(t[1]);if(!s||jt(s)&&s.length===0)return this.renderTokens(t[4],n,r,o,i)};ee.prototype.indentPartial=function(t,n,r){for(var o=n.replace(/[^ \t]/g,""),i=t.split(`
24
- `),s=0;s<i.length;s++)i[s].length&&(s>0||!r)&&(i[s]=o+i[s]);return i.join(`
25
- `)};ee.prototype.renderPartial=function(t,n,r,o){if(r){var i=this.getConfigTags(o),s=_s(r)?r(t[1]):r[t[1]];if(s!=null){var a=t[6],c=t[5],u=t[4],l=s;c==0&&u&&(l=this.indentPartial(s,u,a));var p=this.parse(l,i);return this.renderTokens(p,n,r,l,o)}}};ee.prototype.unescapedValue=function(t,n){var r=n.lookup(t[1]);if(r!=null)return r};ee.prototype.escapedValue=function(t,n,r){var o=this.getConfigEscape(r)||pe.escape,i=n.lookup(t[1]);if(i!=null)return typeof i=="number"&&o===pe.escape?String(i):o(i)};ee.prototype.rawValue=function(t){return t[1]};ee.prototype.getConfigTags=function(t){return jt(t)?t:t&&typeof t=="object"?t.tags:void 0};ee.prototype.getConfigEscape=function(t){if(t&&typeof t=="object"&&!jt(t))return t.escape};var pe={name:"mustache.js",version:"4.2.0",tags:["{{","}}"],clearCache:void 0,escape:void 0,parse:void 0,render:void 0,Scanner:void 0,Context:void 0,Writer:void 0,set templateCache(e){yn.templateCache=e},get templateCache(){return yn.templateCache}},yn=new ee;pe.clearCache=function(){return yn.clearCache()};pe.parse=function(t,n){return yn.parse(t,n)};pe.render=function(t,n,r,o){if(typeof t!="string")throw new TypeError('Invalid template! Template should be a "string" but "'+Ym(t)+'" was given as the first argument for mustache#render(template, view, partials)');return yn.render(t,n,r,o)};pe.escape=ny;pe.Scanner=vn;pe.Context=Vt;pe.Writer=ee;var bs=pe;bs.escape=Fl.escapeHtml;var qr=class e{transform(t,n){return t?bs.render(t,ue({},n)):null}static \u0275fac=function(n){return new(n||e)};static \u0275pipe=Nr({name:"cooeeDynamicVariables",type:e,pure:!0})};var Ms={};(function e(t,n,r,o){var i=!!(t.Worker&&t.Blob&&t.Promise&&t.OffscreenCanvas&&t.OffscreenCanvasRenderingContext2D&&t.HTMLCanvasElement&&t.HTMLCanvasElement.prototype.transferControlToOffscreen&&t.URL&&t.URL.createObjectURL),s=typeof Path2D=="function"&&typeof DOMMatrix=="function",a=function(){if(!t.OffscreenCanvas)return!1;var h=new OffscreenCanvas(1,1),d=h.getContext("2d");d.fillRect(0,0,1,1);var v=h.transferToImageBitmap();try{d.createPattern(v,"no-repeat")}catch{return!1}return!0}();function c(){}function u(h){var d=n.exports.Promise,v=d!==void 0?d:t.Promise;return typeof v=="function"?new v(h):(h(c,c),null)}var l=function(h,d){return{transform:function(v){if(h)return v;if(d.has(v))return d.get(v);var E=new OffscreenCanvas(v.width,v.height),C=E.getContext("2d");return C.drawImage(v,0,0),d.set(v,E),E},clear:function(){d.clear()}}}(a,new Map),p=function(){var h=Math.floor(16.666666666666668),d,v,E={},C=0;return typeof requestAnimationFrame=="function"&&typeof cancelAnimationFrame=="function"?(d=function(_){var b=Math.random();return E[b]=requestAnimationFrame(function D(M){C===M||C+h-1<M?(C=M,delete E[b],_()):E[b]=requestAnimationFrame(D)}),b},v=function(_){E[_]&&cancelAnimationFrame(E[_])}):(d=function(_){return setTimeout(_,h)},v=function(_){return clearTimeout(_)}),{frame:d,cancel:v}}(),g=function(){var h,d,v={};function E(C){function _(b,D){C.postMessage({options:b||{},callback:D})}C.init=function(D){var M=D.transferControlToOffscreen();C.postMessage({canvas:M},[M])},C.fire=function(D,M,V){if(d)return _(D,null),d;var $=Math.random().toString(36).slice(2);return d=u(function(j){function G(Q){Q.data.callback===$&&(delete v[$],C.removeEventListener("message",G),d=null,l.clear(),V(),j())}C.addEventListener("message",G),_(D,$),v[$]=G.bind(null,{data:{callback:$}})}),d},C.reset=function(){C.postMessage({reset:!0});for(var D in v)v[D](),delete v[D]}}return function(){if(h)return h;if(!r&&i){var C=["var CONFETTI, SIZE = {}, module = {};","("+e.toString()+")(this, module, true, SIZE);","onmessage = function(msg) {"," if (msg.data.options) {"," CONFETTI(msg.data.options).then(function () {"," if (msg.data.callback) {"," postMessage({ callback: msg.data.callback });"," }"," });"," } else if (msg.data.reset) {"," CONFETTI && CONFETTI.reset();"," } else if (msg.data.resize) {"," SIZE.width = msg.data.resize.width;"," SIZE.height = msg.data.resize.height;"," } else if (msg.data.canvas) {"," SIZE.width = msg.data.canvas.width;"," SIZE.height = msg.data.canvas.height;"," CONFETTI = module.exports.create(msg.data.canvas);"," }","}"].join(`
26
- `);try{h=new Worker(URL.createObjectURL(new Blob([C])))}catch(_){return typeof console!==void 0&&typeof console.warn=="function"&&console.warn("\u{1F38A} Could not load worker",_),null}E(h)}return h}}(),f={particleCount:50,angle:90,spread:45,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,x:.5,y:.5,shapes:["square","circle"],zIndex:100,colors:["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],disableForReducedMotion:!1,scalar:1};function m(h,d){return d?d(h):h}function y(h){return h!=null}function w(h,d,v){return m(h&&y(h[d])?h[d]:f[d],v)}function x(h){return h<0?0:Math.floor(h)}function W(h,d){return Math.floor(Math.random()*(d-h))+h}function Ae(h){return parseInt(h,16)}function gt(h){return h.map(Re)}function Re(h){var d=String(h).replace(/[^0-9a-f]/gi,"");return d.length<6&&(d=d[0]+d[0]+d[1]+d[1]+d[2]+d[2]),{r:Ae(d.substring(0,2)),g:Ae(d.substring(2,4)),b:Ae(d.substring(4,6))}}function Bt(h){var d=w(h,"origin",Object);return d.x=w(d,"x",Number),d.y=w(d,"y",Number),d}function Qr(h){h.width=document.documentElement.clientWidth,h.height=document.documentElement.clientHeight}function he(h){var d=h.getBoundingClientRect();h.width=d.width,h.height=d.height}function jl(h){var d=document.createElement("canvas");return d.style.position="fixed",d.style.top="0px",d.style.left="0px",d.style.pointerEvents="none",d.style.zIndex=h,d}function Bl(h,d,v,E,C,_,b,D,M){h.save(),h.translate(d,v),h.rotate(_),h.scale(E,C),h.arc(0,0,1,b,D,M),h.restore()}function Hl(h){var d=h.angle*(Math.PI/180),v=h.spread*(Math.PI/180);return{x:h.x,y:h.y,wobble:Math.random()*10,wobbleSpeed:Math.min(.11,Math.random()*.1+.05),velocity:h.startVelocity*.5+Math.random()*h.startVelocity,angle2D:-d+(.5*v-Math.random()*v),tiltAngle:(Math.random()*(.75-.25)+.25)*Math.PI,color:h.color,shape:h.shape,tick:0,totalTicks:h.ticks,decay:h.decay,drift:h.drift,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:h.gravity*3,ovalScalar:.6,scalar:h.scalar,flat:h.flat}}function Ul(h,d){d.x+=Math.cos(d.angle2D)*d.velocity+d.drift,d.y+=Math.sin(d.angle2D)*d.velocity+d.gravity,d.velocity*=d.decay,d.flat?(d.wobble=0,d.wobbleX=d.x+10*d.scalar,d.wobbleY=d.y+10*d.scalar,d.tiltSin=0,d.tiltCos=0,d.random=1):(d.wobble+=d.wobbleSpeed,d.wobbleX=d.x+10*d.scalar*Math.cos(d.wobble),d.wobbleY=d.y+10*d.scalar*Math.sin(d.wobble),d.tiltAngle+=.1,d.tiltSin=Math.sin(d.tiltAngle),d.tiltCos=Math.cos(d.tiltAngle),d.random=Math.random()+2);var v=d.tick++/d.totalTicks,E=d.x+d.random*d.tiltCos,C=d.y+d.random*d.tiltSin,_=d.wobbleX+d.random*d.tiltCos,b=d.wobbleY+d.random*d.tiltSin;if(h.fillStyle="rgba("+d.color.r+", "+d.color.g+", "+d.color.b+", "+(1-v)+")",h.beginPath(),s&&d.shape.type==="path"&&typeof d.shape.path=="string"&&Array.isArray(d.shape.matrix))h.fill(Gl(d.shape.path,d.shape.matrix,d.x,d.y,Math.abs(_-E)*.1,Math.abs(b-C)*.1,Math.PI/10*d.wobble));else if(d.shape.type==="bitmap"){var D=Math.PI/10*d.wobble,M=Math.abs(_-E)*.1,V=Math.abs(b-C)*.1,$=d.shape.bitmap.width*d.scalar,j=d.shape.bitmap.height*d.scalar,G=new DOMMatrix([Math.cos(D)*M,Math.sin(D)*M,-Math.sin(D)*V,Math.cos(D)*V,d.x,d.y]);G.multiplySelf(new DOMMatrix(d.shape.matrix));var Q=h.createPattern(l.transform(d.shape.bitmap),"no-repeat");Q.setTransform(G),h.globalAlpha=1-v,h.fillStyle=Q,h.fillRect(d.x-$/2,d.y-j/2,$,j),h.globalAlpha=1}else if(d.shape==="circle")h.ellipse?h.ellipse(d.x,d.y,Math.abs(_-E)*d.ovalScalar,Math.abs(b-C)*d.ovalScalar,Math.PI/10*d.wobble,0,2*Math.PI):Bl(h,d.x,d.y,Math.abs(_-E)*d.ovalScalar,Math.abs(b-C)*d.ovalScalar,Math.PI/10*d.wobble,0,2*Math.PI);else if(d.shape==="star")for(var A=Math.PI/2*3,te=4*d.scalar,ge=8*d.scalar,me=d.x,Oe=d.y,Je=5,we=Math.PI/Je;Je--;)me=d.x+Math.cos(A)*ge,Oe=d.y+Math.sin(A)*ge,h.lineTo(me,Oe),A+=we,me=d.x+Math.cos(A)*te,Oe=d.y+Math.sin(A)*te,h.lineTo(me,Oe),A+=we;else h.moveTo(Math.floor(d.x),Math.floor(d.y)),h.lineTo(Math.floor(d.wobbleX),Math.floor(C)),h.lineTo(Math.floor(_),Math.floor(b)),h.lineTo(Math.floor(E),Math.floor(d.wobbleY));return h.closePath(),h.fill(),d.tick<d.totalTicks}function $l(h,d,v,E,C){var _=d.slice(),b=h.getContext("2d"),D,M,V=u(function($){function j(){D=M=null,b.clearRect(0,0,E.width,E.height),l.clear(),C(),$()}function G(){r&&!(E.width===o.width&&E.height===o.height)&&(E.width=h.width=o.width,E.height=h.height=o.height),!E.width&&!E.height&&(v(h),E.width=h.width,E.height=h.height),b.clearRect(0,0,E.width,E.height),_=_.filter(function(Q){return Ul(b,Q)}),_.length?D=p.frame(G):j()}D=p.frame(G),M=j});return{addFettis:function($){return _=_.concat($),V},canvas:h,promise:V,reset:function(){D&&p.cancel(D),M&&M()}}}function Ts(h,d){var v=!h,E=!!w(d||{},"resize"),C=!1,_=w(d,"disableForReducedMotion",Boolean),b=i&&!!w(d||{},"useWorker"),D=b?g():null,M=v?Qr:he,V=h&&D?!!h.__confetti_initialized:!1,$=typeof matchMedia=="function"&&matchMedia("(prefers-reduced-motion)").matches,j;function G(A,te,ge){for(var me=w(A,"particleCount",x),Oe=w(A,"angle",Number),Je=w(A,"spread",Number),we=w(A,"startVelocity",Number),ql=w(A,"decay",Number),Zl=w(A,"gravity",Number),Yl=w(A,"drift",Number),Ns=w(A,"colors",gt),Ql=w(A,"ticks",Number),xs=w(A,"shapes"),Kl=w(A,"scalar"),Jl=!!w(A,"flat"),As=Bt(A),Rs=me,Jr=[],Xl=h.width*As.x,ed=h.height*As.y;Rs--;)Jr.push(Hl({x:Xl,y:ed,angle:Oe,spread:Je,startVelocity:we,color:Ns[Rs%Ns.length],shape:xs[W(0,xs.length)],ticks:Ql,decay:ql,gravity:Zl,drift:Yl,scalar:Kl,flat:Jl}));return j?j.addFettis(Jr):(j=$l(h,Jr,M,te,ge),j.promise)}function Q(A){var te=_||w(A,"disableForReducedMotion",Boolean),ge=w(A,"zIndex",Number);if(te&&$)return u(function(we){we()});v&&j?h=j.canvas:v&&!h&&(h=jl(ge),document.body.appendChild(h)),E&&!V&&M(h);var me={width:h.width,height:h.height};D&&!V&&D.init(h),V=!0,D&&(h.__confetti_initialized=!0);function Oe(){if(D){var we={getBoundingClientRect:function(){if(!v)return h.getBoundingClientRect()}};M(we),D.postMessage({resize:{width:we.width,height:we.height}});return}me.width=me.height=null}function Je(){j=null,E&&(C=!1,t.removeEventListener("resize",Oe)),v&&h&&(document.body.contains(h)&&document.body.removeChild(h),h=null,V=!1)}return E&&!C&&(C=!0,t.addEventListener("resize",Oe,!1)),D?D.fire(A,me,Je):G(A,me,Je)}return Q.reset=function(){D&&D.reset(),j&&j.reset()},Q}var Kr;function Ss(){return Kr||(Kr=Ts(null,{useWorker:!0,resize:!0})),Kr}function Gl(h,d,v,E,C,_,b){var D=new Path2D(h),M=new Path2D;M.addPath(D,new DOMMatrix(d));var V=new Path2D;return V.addPath(M,new DOMMatrix([Math.cos(b)*C,Math.sin(b)*C,-Math.sin(b)*_,Math.cos(b)*_,v,E])),V}function zl(h){if(!s)throw new Error("path confetti are not supported in this browser");var d,v;typeof h=="string"?d=h:(d=h.path,v=h.matrix);var E=new Path2D(d),C=document.createElement("canvas"),_=C.getContext("2d");if(!v){for(var b=1e3,D=b,M=b,V=0,$=0,j,G,Q=0;Q<b;Q+=2)for(var A=0;A<b;A+=2)_.isPointInPath(E,Q,A,"nonzero")&&(D=Math.min(D,Q),M=Math.min(M,A),V=Math.max(V,Q),$=Math.max($,A));j=V-D,G=$-M;var te=10,ge=Math.min(te/j,te/G);v=[ge,0,0,ge,-Math.round(j/2+D)*ge,-Math.round(G/2+M)*ge]}return{type:"path",path:d,matrix:v}}function Wl(h){var d,v=1,E="#000000",C='"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "EmojiOne Color", "Android Emoji", "Twemoji Mozilla", "system emoji", sans-serif';typeof h=="string"?d=h:(d=h.text,v="scalar"in h?h.scalar:v,C="fontFamily"in h?h.fontFamily:C,E="color"in h?h.color:E);var _=10*v,b=""+_+"px "+C,D=new OffscreenCanvas(_,_),M=D.getContext("2d");M.font=b;var V=M.measureText(d),$=Math.ceil(V.actualBoundingBoxRight+V.actualBoundingBoxLeft),j=Math.ceil(V.actualBoundingBoxAscent+V.actualBoundingBoxDescent),G=2,Q=V.actualBoundingBoxLeft+G,A=V.actualBoundingBoxAscent+G;$+=G+G,j+=G+G,D=new OffscreenCanvas($,j),M=D.getContext("2d"),M.font=b,M.fillStyle=E,M.fillText(d,Q,A);var te=1/v;return{type:"bitmap",bitmap:D.transferToImageBitmap(),matrix:[te,0,0,te,-$*te/2,-j*te/2]}}n.exports=function(){return Ss().apply(this,arguments)},n.exports.reset=function(){Ss().reset()},n.exports.create=Ts,n.exports.shapeFromPath=zl,n.exports.shapeFromText=Wl})(function(){return typeof window<"u"?window:typeof self<"u"?self:this||{}}(),Ms,!1);var Vl=Ms.exports,Tw=Ms.exports.create;var Zr=class{static DEFAULTS={scalar:1.4,zIndex:1e4,shapes:["circle","circle","square"],colors:["#f51c8f","#2179e2","#d52dc8","#01a9d9","#78ff44","#fdff6a"]};static async basic(){await this.fire({particleCount:100,spread:70,origin:{y:.6}})}static async leftRight(t=100){let n=[],r=Date.now()+2e3,o=()=>{n.push(this.fire({angle:60,spread:55,origin:{x:0}}),this.fire({angle:120,spread:55,origin:{x:1}})),Date.now()<r&&t>0&&(requestAnimationFrame(o),t--)};o(),await Promise.all(n)}static async realistic(){await Promise.all([this.realisticFire(.25,{spread:26,startVelocity:55}),this.realisticFire(.2,{spread:60}),this.realisticFire(.35,{spread:100,decay:.91,scalar:.8}),this.realisticFire(.1,{spread:120,startVelocity:25,decay:.92,scalar:1.2}),this.realisticFire(.1,{spread:120,startVelocity:45})])}static async fire(t){Object.assign(t,this.DEFAULTS,t),t.particleCount=t.particleCount??this.DEFAULTS.colors.length,await Vl(t)}static async realisticFire(t,n){let o={origin:{y:.7}};await this.fire(Object.assign({},o,n,{particleCount:Math.floor(200*t)}))}};var ly=(e,t)=>t.minValue;function dy(e,t){if(e&1&&(dn(0),Pr(1,"cooeeDynamicVariables")),e&2){ht();let n=as(0),r=ht();fn(" ",cs(1,1,n.nextMilestone.reachingText,r.localDynamicVariables)," ")}}function fy(e,t){if(e&1&&(dn(0),Pr(1,"cooeeDynamicVariables")),e&2){ht();let n=as(0),r=ht();fn(" ",cs(1,1,n.lastMilestone.reachedText,r.localDynamicVariables)," ")}}function py(e,t){if(e&1&&(pt(0,"li",6)(1,"div",7)(2,"div",8),dn(3),Pr(4,"cooeeCurrency"),Qe(),Rr(5,"img",9),pt(6,"div",10),dn(7),Qe()()()),e&2){let n=t.$implicit,r=ht(2);Ar("left",n.calculatedAlignment+"%"),ft(3),Or(ul(4,5,n.minValue)),ft(2),rs("src",r.getIconURL(n),wu),ft(2),Or(n.label)}}function hy(e,t){if(e&1&&(ss(0),pt(1,"div",0),xr(2,dy,2,4)(3,fy,2,4),Qe(),pt(4,"div",1)(5,"ul",2)(6,"div",3),Rr(7,"div",4),Qe(),ol(8,py,8,7,"li",5,ly),Qe()()),e&2){let n=al(ht().calculatedState());ft(2),os(n.nextMilestone?2:3),ft(5),Ar("width",n.cartValuePercentage+"%"),ft(),il(n.milestones)}}var Yr=class e{constructor(t){this.elementRef=t;this.elementRef.nativeElement.update=this.update.bind(this)}cart;localDynamicVariables={};calculatedState=Fi({});_engagementTrigger=Fi(null);set engagementTrigger(t){this._engagementTrigger.set(t)}ngOnInit(){ie.debug("Init progressbar"),this.calculateMilestonesSilently()}ngOnDestroy(){ie.debug("Destroying progressbar")}update(){this.calculateMilestonesSilently()}getIconURL(t){return t.rewardType===mn.FREE_SHIPPING?"https://img.icons8.com/ios-filled/50/FFFFFF/free-shipping.png":t.rewardType===mn.DISCOUNT?"https://img.icons8.com/ios-glyphs/30/FFFFFF/sale-price-tag.png":t.rewardType===mn.FREE_AUTO_GIFT?"https://img.icons8.com/ios-filled/50/FFFFFF/gift--v1.png":""}calculateMilestonesSilently(){this.calculateMilestones().catch(t=>ie.error(t))}async calculateMilestones(){let t=this._engagementTrigger();if(!t?.progressBarConfig?.milestones?.length){ie.warn("Milestones not available in progress bar config",t);return}let n=await this.cart.getNormalisedCart(),r=t.progressBarConfig,o=r.milestones.at(-1),i=o.minValue+Math.floor(o.minValue*5/100),s=n.originalAmount,a=Math.min(s,i),c=100-Math.abs((a-i)*100/i);ie.debug("Cart value:",s,`, percentage: ${c}%`);for(let p of r.milestones)p.calculatedAlignment=100-Math.abs((p.minValue-i)*100/i);this.celebrate(t,s);let u={milestonesReady:!0,cartValuePercentage:c,milestones:r.milestones},l=r.milestones.find(p=>p.minValue>s);if(l){this.localDynamicVariables.amount_left=Lt.formatCurrency(l.minValue-s),u.nextMilestone=l,this.calculatedState.set(u);return}u.lastMilestone=o,this.calculatedState.set(u)}celebrate(t,n){let i=[...t.progressBarConfig.milestones].reverse().find(c=>c.minValue<n);if(!i)return;let s=`lc/en/${t.shortID}/${i.minValue}`;sessionStorage.getItem(s)||(sessionStorage.setItem(s,"1"),Zr.realistic())}static \u0275fac=function(n){return new(n||e)(Sr(wr))};static \u0275cmp=Xu({type:e,selectors:[["cooee-progressbar"]],inputs:{cart:"cart",engagementTrigger:"engagementTrigger"},decls:1,vars:1,consts:[[1,"lc:font-medium","lc:text-center","lc:text-[12px]","lc-primary-text"],[1,"lc:mt-4","lc:w-[95%]"],[1,"lc:flex","lc:items-center","lc:relative","lc:text-[10px]","lc:font-medium"],[1,"lc:w-full","lc:bg-gray-200","lc:h-1","lc:absolute","lc-progress-rail"],[1,"lc:bg-green-700","lc:h-full","lc:block!"],[1,"lc:relative","lc:flex","lc:flex-col","lc:items-center","lc:h-[75px]",3,"left"],[1,"lc:relative","lc:flex","lc:flex-col","lc:items-center","lc:h-[75px]"],[1,"lc:flex","lc:flex-col","lc:items-center","lc:justify-between","lc:absolute","lc:h-full","lc:w-[100px]"],[1,"lc-milestone-value"],["width","20","height","20","alt","milestone icon",1,"lc-milestone-icon","lc:bg-green-700",3,"src"],[1,"lc="]],template:function(n,r){n&1&&xr(0,hy,10,4),n&2&&os(r.calculatedState().milestonesReady?0:-1)},dependencies:[qr,Wr],styles:["[_nghost-%COMP%]{display:block;padding:10px;background:linear-gradient(0deg,rgba(44,135,74,.1) 0%,transparent 100%)}.lc-milestone-icon[_ngcontent-%COMP%]{padding:5px;border-radius:1000px}.lc-progress-rail[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{transition:width .5s ease-in-out}"]})};ie.configure("CooeeWidgetSDK");(async()=>{let e=await Nl(Pl),t=gl(Yr,{injector:e.injector});customElements.define("cooee-progressbar",t)})();
21
+ `,t+=`Learn more: https://www.letscooee.com
22
+ Cooee SDK: v${tr.SDK_VERSION}`,console.group("%c Elevate your ecommerce experience with Cooee \u{1F680} ",e),console.log(`%c${t}`,"font-size: 13px; line-height: 1.8;"),console.groupEnd()}},Lm={providers:[jg()]},sn=function(e){return e.FREE_SHIPPING="FREE_SHIPPING",e.DISCOUNT="DISCOUNT",e.FREE_AUTO_GIFT="FREE_AUTO_GIFT",e.FREE_GIFT_SELECT="FREE_GIFT_SELECT",e}(sn||{}),Hm=class{gaEnabled;gaMeasurementID;pixelPush;website;currencyCount;money;storefrontToken;currency;static get(){return window.CooeeSDK.config}update(e){return e??={},this.gaEnabled=e.gaEnabled,this.gaMeasurementID=e.gaMeasurementID,this.pixelPush=e.pixelPush,this.website=e.website??{},this.currencyCount=e.currencyCount??0,this.money=e.money,this.currency=e.currency,this.storefrontToken=e.storefrontToken,this}},zm=class{static format(e,t){let n=/{{\s*(\w+)\s*}}/;return t.replace(n,(r,i)=>{switch(i){case"amount":return this.formatWithDelimiters(e,2);case"amount_no_decimals":return this.formatWithDelimiters(e,0);case"amount_with_comma_separator":return this.formatWithDelimiters(e,2,".",",");case"amount_no_decimals_with_comma_separator":return this.formatWithDelimiters(e,0,".",",");case"amount_with_apostrophe_separator":return this.formatWithDelimiters(e,2,"'",".");case"amount_no_decimals_with_space_separator":return this.formatWithDelimiters(e,0," ");case"amount_with_space_separator":return this.formatWithDelimiters(e,2," ",",");case"amount_with_period_and_space_separator":return this.formatWithDelimiters(e,2," ",".");default:return r}})}static formatWithDelimiters(e,t=2,n=",",r="."){if(isNaN(e)||e==null)return"0";let i=(e/100).toFixed(t).split("."),o=i[0].replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1"+n),s=i[1]?r+i[1]:"";return o+s}},Um=class{isCartDirty=!0;cartEngagements;isGoKwikPopupOpen;previewIDs;previewVariant;pageName;moneyFormat;jsLoadTime=new Date;shopCurrencyCode;inInactive=!1;lastEnterActive=new Date;lastEnterInactive=null;currentItem;_currencyCode;get currencyCode(){return this._currencyCode}set currencyCode(e){this._currencyCode=e}static get(){return window.CooeeSDK.runtimeData}isInactive(){return this.inInactive}async setInactive(){return this.inInactive?0:(this.inInactive=!0,this.lastEnterInactive=new Date,Math.max((this.lastEnterInactive.getTime()-this.lastEnterActive.getTime())/1e3,0))}setActive(){return this.inInactive?(this.inInactive=!1,this.lastEnterActive=new Date,Math.max((this.lastEnterActive.getTime()-this.lastEnterInactive.getTime())/1e3,0)):0}isFirstActive(){return this.lastEnterInactive==null}getCurrentItem(){return this.currentItem}setCurrentItem(e){this.currentItem=e}},Bm=class{static ISO_WITHOUT_MS_REGEX=new RegExp(/\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)/);static isObject(e){return typeof e=="object"&&!Array.isArray(e)&&e!==null}static parseToAny(e){try{return JSON.parse(e.toString())}catch{}return e.toString().match(this.ISO_WITHOUT_MS_REGEX)?new Date(e.toString()):e}static async sleep(e){return new Promise(t=>setTimeout(t,e))}static hasKeys(e){return e?Object.keys(e).length>=1:!1}static convertObjectToArray(e,t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&e[r]!=null&&n.push({[r]:e[r]}),n),[])}static removeNullUndefinedKeys(e){return Object.keys(e).reduce((t,n)=>(e[n]!==null&&e[n]!==void 0&&(t[n]=e[n]),t),{})}static stringify(e){return JSON.stringify(e,function(t,n){return n===void 0?null:n})}},tu=class{static tz;static isValidURL(e){try{return new URL(e)}catch{return}}static isNull(e){return!e||e==="null"||e==="undefined"}static removeFromArray(e,t){let n=e.indexOf(t);return n===-1?!1:(e.splice(n,1),!0)}static formatCurrency(e,t){if(e==0&&t)return"Free";let n=Um.get(),r=Hm.get(),i=n.shopCurrencyCode??r.currency,o=n.currencyCode,s=r.money?.format??n.moneyFormat,l;return s&&i===o?l=zm.format(e*100,s):(l=new Intl.NumberFormat(this.getLang(),{style:"currency",currency:o,minimumFractionDigits:0,maximumFractionDigits:2}).format(e),l=l.replace("\u20B9","Rs. "),r.money?.showCurrency&&o!=="INR"&&(l=l.concat(` ${o}`))),l}static formatNumber(e){return new Intl.NumberFormat(this.getLang(),{notation:"compact"}).format(e)}static getLang(){return navigator.languages!==void 0?navigator.languages[0].split("-")[0]:navigator.language??"en"}static getTimezone(){if(this.tz)return this.tz;try{return this.tz=Intl.DateTimeFormat().resolvedOptions().timeZone,this.tz}catch{return""}}static documentReady(e){document.readyState!=="loading"?e():document.addEventListener("DOMContentLoaded",e)}static onDocumentLoaded(e){document.readyState==="complete"?e():document.addEventListener("readystatechange",()=>{document.readyState==="complete"&&e()})}static showSnackbar(e){let t=document.createElement("span");t.id="snackbar",t.innerText=e,document.body.appendChild(t),t.className="show",setTimeout(()=>{t.classList.remove("show"),document.body.removeChild(t)},3e3)}static async retrySelectorForElements(e,t=10,n=document){let r=0,i=document.querySelectorAll("nonexistent-tag");for(;r<t;){let o=Math.min(100*2**r,5e3);if(await Bm.sleep(o),i=n.querySelectorAll(e),i.length)return Ie.debug(`Attempt ${r+1}: ${i.length} elements found with ${e}`),i;Ie.debug(`Attempt ${r+1}: Elements not found with ${e}. Retrying after ${o}ms.`),r++}return Ie.warn(`Max attempts reached. Element not found with ${e}.`),i}static async retrySelector(e,t=10,n=document){return(await this.retrySelectorForElements(e,t,n)).item(0)}},Zm=class Hr{transform(t){return t?tu.formatCurrency(t):null}static \u0275fac=function(t){return new(t||Hr)};static \u0275pipe=Ra({name:"cooeeCurrency",type:Hr,pure:!0})},$m=(()=>{class e{static entityMap={'"':"&quot;"};static escapeHtml(n){return String(n).replace(/"/g,r=>e.entityMap[r])}}return e})(),Gm=Object.prototype.toString,_t=Array.isArray||function(e){return Gm.call(e)==="[object Array]"};function Zi(e){return typeof e=="function"}function Wm(e){return _t(e)?"array":typeof e}function nr(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function Ko(e,t){return e!=null&&typeof e=="object"&&t in e}function qm(e,t){return e!=null&&typeof e!="object"&&e.hasOwnProperty&&e.hasOwnProperty(t)}var Km=RegExp.prototype.test;function Qm(e,t){return Km.call(e,t)}var Ym=/\S/;function Xm(e){return!Qm(Ym,e)}var Jm={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"};function ey(e){return String(e).replace(/[&<>"'`=\/]/g,function(t){return Jm[t]})}var ty=/\s*/,ny=/\s+/,Qo=/\s*=/,ry=/\s*\}/,iy=/#|\^|\/|>|\{|&|=|!/;function oy(e,t){if(!e)return[];var n=!1,r=[],i=[],o=[],s=!1,l=!1,a="",u=0;function c(){if(s&&!l)for(;o.length;)delete i[o.pop()];else o=[];s=!1,l=!1}var f,g,p;function m(ae){if(typeof ae=="string"&&(ae=ae.split(ny,2)),!_t(ae)||ae.length!==2)throw new Error("Invalid tags: "+ae);f=new RegExp(nr(ae[0])+"\\s*"),g=new RegExp("\\s*"+nr(ae[1])),p=new RegExp("\\s*"+nr("}"+ae[1]))}m(t||le.tags);for(var y=new qt(e),w,C,U,be,et,Ee;!y.eos();){if(w=y.pos,U=y.scanUntil(f),U)for(var It=0,Pn=U.length;It<Pn;++It)be=U.charAt(It),Xm(be)?(o.push(i.length),a+=be):(l=!0,n=!0,a+=" "),i.push(["text",be,w,w+1]),w+=1,be===`
23
+ `&&(c(),a="",u=0,n=!1);if(!y.scan(f))break;if(s=!0,C=y.scan(iy)||"name",y.scan(ty),C==="="?(U=y.scanUntil(Qo),y.scan(Qo),y.scanUntil(g)):C==="{"?(U=y.scanUntil(p),y.scan(ry),y.scanUntil(g),C="&"):U=y.scanUntil(g),!y.scan(g))throw new Error("Unclosed tag at "+y.pos);if(C==">"?et=[C,U,w,y.pos,a,u,n]:et=[C,U,w,y.pos],u++,i.push(et),C==="#"||C==="^")r.push(et);else if(C==="/"){if(Ee=r.pop(),!Ee)throw new Error('Unopened section "'+U+'" at '+w);if(Ee[1]!==U)throw new Error('Unclosed section "'+Ee[1]+'" at '+w)}else C==="name"||C==="{"||C==="&"?l=!0:C==="="&&m(U)}if(c(),Ee=r.pop(),Ee)throw new Error('Unclosed section "'+Ee[1]+'" at '+y.pos);return ly(sy(i))}function sy(e){for(var t=[],n,r,i=0,o=e.length;i<o;++i)n=e[i],n&&(n[0]==="text"&&r&&r[0]==="text"?(r[1]+=n[1],r[3]=n[3]):(t.push(n),r=n));return t}function ly(e){for(var t=[],n=t,r=[],i,o,s=0,l=e.length;s<l;++s)switch(i=e[s],i[0]){case"#":case"^":n.push(i),r.push(i),n=i[4]=[];break;case"/":o=r.pop(),o[5]=i[2],n=r.length>0?r[r.length-1][4]:t;break;default:n.push(i)}return t}function qt(e){this.string=e,this.tail=e,this.pos=0}qt.prototype.eos=function(){return this.tail===""};qt.prototype.scan=function(e){var t=this.tail.match(e);if(!t||t.index!==0)return"";var n=t[0];return this.tail=this.tail.substring(n.length),this.pos+=n.length,n};qt.prototype.scanUntil=function(e){var t=this.tail.search(e),n;switch(t){case-1:n=this.tail,this.tail="";break;case 0:n="";break;default:n=this.tail.substring(0,t),this.tail=this.tail.substring(t)}return this.pos+=n.length,n};function vt(e,t){this.view=e,this.cache={".":this.view},this.parent=t}vt.prototype.push=function(e){return new vt(e,this)};vt.prototype.lookup=function(e){var t=this.cache,n;if(t.hasOwnProperty(e))n=t[e];else{for(var r=this,i,o,s,l=!1;r;){if(e.indexOf(".")>0)for(i=r.view,o=e.split("."),s=0;i!=null&&s<o.length;)s===o.length-1&&(l=Ko(i,o[s])||qm(i,o[s])),i=i[o[s++]];else i=r.view[e],l=Ko(r.view,e);if(l){n=i;break}r=r.parent}t[e]=n}return Zi(n)&&(n=n.call(this.view)),n};function Y(){this.templateCache={_cache:{},set:function(e,t){this._cache[e]=t},get:function(e){return this._cache[e]},clear:function(){this._cache={}}}}Y.prototype.clearCache=function(){typeof this.templateCache<"u"&&this.templateCache.clear()};Y.prototype.parse=function(e,t){var n=this.templateCache,r=e+":"+(t||le.tags).join(":"),i=typeof n<"u",o=i?n.get(r):void 0;return o==null&&(o=oy(e,t),i&&n.set(r,o)),o};Y.prototype.render=function(e,t,n,r){var i=this.getConfigTags(r),o=this.parse(e,i),s=t instanceof vt?t:new vt(t,void 0);return this.renderTokens(o,s,n,e,r)};Y.prototype.renderTokens=function(e,t,n,r,i){for(var o="",s,l,a,u=0,c=e.length;u<c;++u)a=void 0,s=e[u],l=s[0],l==="#"?a=this.renderSection(s,t,n,r,i):l==="^"?a=this.renderInverted(s,t,n,r,i):l===">"?a=this.renderPartial(s,t,n,i):l==="&"?a=this.unescapedValue(s,t):l==="name"?a=this.escapedValue(s,t,i):l==="text"&&(a=this.rawValue(s)),a!==void 0&&(o+=a);return o};Y.prototype.renderSection=function(e,t,n,r,i){var o=this,s="",l=t.lookup(e[1]);function a(f){return o.render(f,t,n,i)}if(l){if(_t(l))for(var u=0,c=l.length;u<c;++u)s+=this.renderTokens(e[4],t.push(l[u]),n,r,i);else if(typeof l=="object"||typeof l=="string"||typeof l=="number")s+=this.renderTokens(e[4],t.push(l),n,r,i);else if(Zi(l)){if(typeof r!="string")throw new Error("Cannot use higher-order sections without the original template");l=l.call(t.view,r.slice(e[3],e[5]),a),l!=null&&(s+=l)}else s+=this.renderTokens(e[4],t,n,r,i);return s}};Y.prototype.renderInverted=function(e,t,n,r,i){var o=t.lookup(e[1]);if(!o||_t(o)&&o.length===0)return this.renderTokens(e[4],t,n,r,i)};Y.prototype.indentPartial=function(e,t,n){for(var r=t.replace(/[^ \t]/g,""),i=e.split(`
24
+ `),o=0;o<i.length;o++)i[o].length&&(o>0||!n)&&(i[o]=r+i[o]);return i.join(`
25
+ `)};Y.prototype.renderPartial=function(e,t,n,r){if(n){var i=this.getConfigTags(r),o=Zi(n)?n(e[1]):n[e[1]];if(o!=null){var s=e[6],l=e[5],a=e[4],u=o;l==0&&a&&(u=this.indentPartial(o,a,s));var c=this.parse(u,i);return this.renderTokens(c,t,n,u,r)}}};Y.prototype.unescapedValue=function(e,t){var n=t.lookup(e[1]);if(n!=null)return n};Y.prototype.escapedValue=function(e,t,n){var r=this.getConfigEscape(n)||le.escape,i=t.lookup(e[1]);if(i!=null)return typeof i=="number"&&r===le.escape?String(i):r(i)};Y.prototype.rawValue=function(e){return e[1]};Y.prototype.getConfigTags=function(e){return _t(e)?e:e&&typeof e=="object"?e.tags:void 0};Y.prototype.getConfigEscape=function(e){if(e&&typeof e=="object"&&!_t(e))return e.escape};var le={name:"mustache.js",version:"4.2.0",tags:["{{","}}"],clearCache:void 0,escape:void 0,parse:void 0,render:void 0,Scanner:void 0,Context:void 0,Writer:void 0,set templateCache(e){Ft.templateCache=e},get templateCache(){return Ft.templateCache}},Ft=new Y;le.clearCache=function(){return Ft.clearCache()};le.parse=function(e,t){return Ft.parse(e,t)};le.render=function(e,t,n,r){if(typeof e!="string")throw new TypeError('Invalid template! Template should be a "string" but "'+Wm(e)+'" was given as the first argument for mustache#render(template, view, partials)');return Ft.render(e,t,n,r)};le.escape=ey;le.Scanner=qt;le.Context=vt;le.Writer=Y;var nu=le;nu.escape=$m.escapeHtml;var ay=class zr{transform(t,n){return t?nu.render(t,qe({},n)):null}static \u0275fac=function(t){return new(t||zr)};static \u0275pipe=Ra({name:"cooeeDynamicVariables",type:zr,pure:!0})},$i={};(function e(t,n,r,i){var o=!!(t.Worker&&t.Blob&&t.Promise&&t.OffscreenCanvas&&t.OffscreenCanvasRenderingContext2D&&t.HTMLCanvasElement&&t.HTMLCanvasElement.prototype.transferControlToOffscreen&&t.URL&&t.URL.createObjectURL),s=typeof Path2D=="function"&&typeof DOMMatrix=="function",l=function(){if(!t.OffscreenCanvas)return!1;var d=new OffscreenCanvas(1,1),h=d.getContext("2d");h.fillRect(0,0,1,1);var v=d.transferToImageBitmap();try{h.createPattern(v,"no-repeat")}catch{return!1}return!0}();function a(){}function u(d){var h=n.exports.Promise,v=h!==void 0?h:t.Promise;return typeof v=="function"?new v(d):(d(a,a),null)}var c=function(d,h){return{transform:function(v){if(d)return v;if(h.has(v))return h.get(v);var b=new OffscreenCanvas(v.width,v.height),S=b.getContext("2d");return S.drawImage(v,0,0),h.set(v,b),b},clear:function(){h.clear()}}}(l,new Map),f=function(){var d=Math.floor(16.666666666666668),h,v,b={},S=0;return typeof requestAnimationFrame=="function"&&typeof cancelAnimationFrame=="function"?(h=function(T){var I=Math.random();return b[I]=requestAnimationFrame(function E(D){S===D||S+d-1<D?(S=D,delete b[I],T()):b[I]=requestAnimationFrame(E)}),I},v=function(T){b[T]&&cancelAnimationFrame(b[T])}):(h=function(T){return setTimeout(T,d)},v=function(T){return clearTimeout(T)}),{frame:h,cancel:v}}(),g=function(){var d,h,v={};function b(S){function T(I,E){S.postMessage({options:I||{},callback:E})}S.init=function(I){var E=I.transferControlToOffscreen();S.postMessage({canvas:E},[E])},S.fire=function(I,E,D){if(h)return T(I,null),h;var A=Math.random().toString(36).slice(2);return h=u(function(G){function P(B){B.data.callback===A&&(delete v[A],S.removeEventListener("message",P),h=null,c.clear(),D(),G())}S.addEventListener("message",P),T(I,A),v[A]=P.bind(null,{data:{callback:A}})}),h},S.reset=function(){S.postMessage({reset:!0});for(var I in v)v[I](),delete v[I]}}return function(){if(d)return d;if(!r&&o){var S=["var CONFETTI, SIZE = {}, module = {};","("+e.toString()+")(this, module, true, SIZE);","onmessage = function(msg) {"," if (msg.data.options) {"," CONFETTI(msg.data.options).then(function () {"," if (msg.data.callback) {"," postMessage({ callback: msg.data.callback });"," }"," });"," } else if (msg.data.reset) {"," CONFETTI && CONFETTI.reset();"," } else if (msg.data.resize) {"," SIZE.width = msg.data.resize.width;"," SIZE.height = msg.data.resize.height;"," } else if (msg.data.canvas) {"," SIZE.width = msg.data.canvas.width;"," SIZE.height = msg.data.canvas.height;"," CONFETTI = module.exports.create(msg.data.canvas);"," }","}"].join(`
26
+ `);try{d=new Worker(URL.createObjectURL(new Blob([S])))}catch(T){return typeof console!==void 0&&typeof console.warn=="function"&&console.warn("\u{1F38A} Could not load worker",T),null}b(d)}return d}}(),p={particleCount:50,angle:90,spread:45,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,x:.5,y:.5,shapes:["square","circle"],zIndex:100,colors:["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],disableForReducedMotion:!1,scalar:1};function m(d,h){return h?h(d):d}function y(d){return d!=null}function w(d,h,v){return m(d&&y(d[h])?d[h]:p[h],v)}function C(d){return d<0?0:Math.floor(d)}function U(d,h){return Math.floor(Math.random()*(h-d))+d}function be(d){return parseInt(d,16)}function et(d){return d.map(Ee)}function Ee(d){var h=String(d).replace(/[^0-9a-f]/gi,"");return h.length<6&&(h=h[0]+h[0]+h[1]+h[1]+h[2]+h[2]),{r:be(h.substring(0,2)),g:be(h.substring(2,4)),b:be(h.substring(4,6))}}function It(d){var h=w(d,"origin",Object);return h.x=w(h,"x",Number),h.y=w(h,"y",Number),h}function Pn(d){d.width=document.documentElement.clientWidth,d.height=document.documentElement.clientHeight}function ae(d){var h=d.getBoundingClientRect();d.width=h.width,d.height=h.height}function ru(d){var h=document.createElement("canvas");return h.style.position="fixed",h.style.top="0px",h.style.left="0px",h.style.pointerEvents="none",h.style.zIndex=d,h}function iu(d,h,v,b,S,T,I,E,D){d.save(),d.translate(h,v),d.rotate(T),d.scale(b,S),d.arc(0,0,1,I,E,D),d.restore()}function ou(d){var h=d.angle*(Math.PI/180),v=d.spread*(Math.PI/180);return{x:d.x,y:d.y,wobble:Math.random()*10,wobbleSpeed:Math.min(.11,Math.random()*.1+.05),velocity:d.startVelocity*.5+Math.random()*d.startVelocity,angle2D:-h+(.5*v-Math.random()*v),tiltAngle:(Math.random()*(.75-.25)+.25)*Math.PI,color:d.color,shape:d.shape,tick:0,totalTicks:d.ticks,decay:d.decay,drift:d.drift,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:d.gravity*3,ovalScalar:.6,scalar:d.scalar,flat:d.flat}}function su(d,h){h.x+=Math.cos(h.angle2D)*h.velocity+h.drift,h.y+=Math.sin(h.angle2D)*h.velocity+h.gravity,h.velocity*=h.decay,h.flat?(h.wobble=0,h.wobbleX=h.x+10*h.scalar,h.wobbleY=h.y+10*h.scalar,h.tiltSin=0,h.tiltCos=0,h.random=1):(h.wobble+=h.wobbleSpeed,h.wobbleX=h.x+10*h.scalar*Math.cos(h.wobble),h.wobbleY=h.y+10*h.scalar*Math.sin(h.wobble),h.tiltAngle+=.1,h.tiltSin=Math.sin(h.tiltAngle),h.tiltCos=Math.cos(h.tiltAngle),h.random=Math.random()+2);var v=h.tick++/h.totalTicks,b=h.x+h.random*h.tiltCos,S=h.y+h.random*h.tiltSin,T=h.wobbleX+h.random*h.tiltCos,I=h.wobbleY+h.random*h.tiltSin;if(d.fillStyle="rgba("+h.color.r+", "+h.color.g+", "+h.color.b+", "+(1-v)+")",d.beginPath(),s&&h.shape.type==="path"&&typeof h.shape.path=="string"&&Array.isArray(h.shape.matrix))d.fill(au(h.shape.path,h.shape.matrix,h.x,h.y,Math.abs(T-b)*.1,Math.abs(I-S)*.1,Math.PI/10*h.wobble));else if(h.shape.type==="bitmap"){var E=Math.PI/10*h.wobble,D=Math.abs(T-b)*.1,A=Math.abs(I-S)*.1,G=h.shape.bitmap.width*h.scalar,P=h.shape.bitmap.height*h.scalar,B=new DOMMatrix([Math.cos(E)*D,Math.sin(E)*D,-Math.sin(E)*A,Math.cos(E)*A,h.x,h.y]);B.multiplySelf(new DOMMatrix(h.shape.matrix));var Q=d.createPattern(c.transform(h.shape.bitmap),"no-repeat");Q.setTransform(B),d.globalAlpha=1-v,d.fillStyle=Q,d.fillRect(h.x-G/2,h.y-P/2,G,P),d.globalAlpha=1}else if(h.shape==="circle")d.ellipse?d.ellipse(h.x,h.y,Math.abs(T-b)*h.ovalScalar,Math.abs(I-S)*h.ovalScalar,Math.PI/10*h.wobble,0,2*Math.PI):iu(d,h.x,h.y,Math.abs(T-b)*h.ovalScalar,Math.abs(I-S)*h.ovalScalar,Math.PI/10*h.wobble,0,2*Math.PI);else if(h.shape==="star")for(var N=Math.PI/2*3,X=4*h.scalar,ue=8*h.scalar,ce=h.x,_e=h.y,Fe=5,me=Math.PI/Fe;Fe--;)ce=h.x+Math.cos(N)*ue,_e=h.y+Math.sin(N)*ue,d.lineTo(ce,_e),N+=me,ce=h.x+Math.cos(N)*X,_e=h.y+Math.sin(N)*X,d.lineTo(ce,_e),N+=me;else d.moveTo(Math.floor(h.x),Math.floor(h.y)),d.lineTo(Math.floor(h.wobbleX),Math.floor(S)),d.lineTo(Math.floor(T),Math.floor(I)),d.lineTo(Math.floor(b),Math.floor(h.wobbleY));return d.closePath(),d.fill(),h.tick<h.totalTicks}function lu(d,h,v,b,S){var T=h.slice(),I=d.getContext("2d"),E,D,A=u(function(G){function P(){E=D=null,I.clearRect(0,0,b.width,b.height),c.clear(),S(),G()}function B(){r&&!(b.width===i.width&&b.height===i.height)&&(b.width=d.width=i.width,b.height=d.height=i.height),!b.width&&!b.height&&(v(d),b.width=d.width,b.height=d.height),I.clearRect(0,0,b.width,b.height),T=T.filter(function(Q){return su(I,Q)}),T.length?E=f.frame(B):P()}E=f.frame(B),D=P});return{addFettis:function(G){return T=T.concat(G),A},canvas:d,promise:A,reset:function(){E&&f.cancel(E),D&&D()}}}function Gi(d,h){var v=!d,b=!!w(h||{},"resize"),S=!1,T=w(h,"disableForReducedMotion",Boolean),I=o&&!!w(h||{},"useWorker"),E=I?g():null,D=v?Pn:ae,A=d&&E?!!d.__confetti_initialized:!1,G=typeof matchMedia=="function"&&matchMedia("(prefers-reduced-motion)").matches,P;function B(N,X,ue){for(var ce=w(N,"particleCount",C),_e=w(N,"angle",Number),Fe=w(N,"spread",Number),me=w(N,"startVelocity",Number),fu=w(N,"decay",Number),hu=w(N,"gravity",Number),du=w(N,"drift",Number),qi=w(N,"colors",et),pu=w(N,"ticks",Number),Ki=w(N,"shapes"),gu=w(N,"scalar"),mu=!!w(N,"flat"),Qi=It(N),Yi=ce,jn=[],yu=d.width*Qi.x,vu=d.height*Qi.y;Yi--;)jn.push(ou({x:yu,y:vu,angle:_e,spread:Fe,startVelocity:me,color:qi[Yi%qi.length],shape:Ki[U(0,Ki.length)],ticks:pu,decay:fu,gravity:hu,drift:du,scalar:gu,flat:mu}));return P?P.addFettis(jn):(P=lu(d,jn,D,X,ue),P.promise)}function Q(N){var X=T||w(N,"disableForReducedMotion",Boolean),ue=w(N,"zIndex",Number);if(X&&G)return u(function(me){me()});v&&P?d=P.canvas:v&&!d&&(d=ru(ue),document.body.appendChild(d)),b&&!A&&D(d);var ce={width:d.width,height:d.height};E&&!A&&E.init(d),A=!0,E&&(d.__confetti_initialized=!0);function _e(){if(E){var me={getBoundingClientRect:function(){if(!v)return d.getBoundingClientRect()}};D(me),E.postMessage({resize:{width:me.width,height:me.height}});return}ce.width=ce.height=null}function Fe(){P=null,b&&(S=!1,t.removeEventListener("resize",_e)),v&&d&&(document.body.contains(d)&&document.body.removeChild(d),d=null,A=!1)}return b&&!S&&(S=!0,t.addEventListener("resize",_e,!1)),E?E.fire(N,ce,Fe):B(N,ce,Fe)}return Q.reset=function(){E&&E.reset(),P&&P.reset()},Q}var Fn;function Wi(){return Fn||(Fn=Gi(null,{useWorker:!0,resize:!0})),Fn}function au(d,h,v,b,S,T,I){var E=new Path2D(d),D=new Path2D;D.addPath(E,new DOMMatrix(h));var A=new Path2D;return A.addPath(D,new DOMMatrix([Math.cos(I)*S,Math.sin(I)*S,-Math.sin(I)*T,Math.cos(I)*T,v,b])),A}function uu(d){if(!s)throw new Error("path confetti are not supported in this browser");var h,v;typeof d=="string"?h=d:(h=d.path,v=d.matrix);var b=new Path2D(h),S=document.createElement("canvas"),T=S.getContext("2d");if(!v){for(var I=1e3,E=I,D=I,A=0,G=0,P,B,Q=0;Q<I;Q+=2)for(var N=0;N<I;N+=2)T.isPointInPath(b,Q,N,"nonzero")&&(E=Math.min(E,Q),D=Math.min(D,N),A=Math.max(A,Q),G=Math.max(G,N));P=A-E,B=G-D;var X=10,ue=Math.min(X/P,X/B);v=[ue,0,0,ue,-Math.round(P/2+E)*ue,-Math.round(B/2+D)*ue]}return{type:"path",path:h,matrix:v}}function cu(d){var h,v=1,b="#000000",S='"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "EmojiOne Color", "Android Emoji", "Twemoji Mozilla", "system emoji", sans-serif';typeof d=="string"?h=d:(h=d.text,v="scalar"in d?d.scalar:v,S="fontFamily"in d?d.fontFamily:S,b="color"in d?d.color:b);var T=10*v,I=""+T+"px "+S,E=new OffscreenCanvas(T,T),D=E.getContext("2d");D.font=I;var A=D.measureText(h),G=Math.ceil(A.actualBoundingBoxRight+A.actualBoundingBoxLeft),P=Math.ceil(A.actualBoundingBoxAscent+A.actualBoundingBoxDescent),B=2,Q=A.actualBoundingBoxLeft+B,N=A.actualBoundingBoxAscent+B;G+=B+B,P+=B+B,E=new OffscreenCanvas(G,P),D=E.getContext("2d"),D.font=I,D.fillStyle=b,D.fillText(h,Q,N);var X=1/v;return{type:"bitmap",bitmap:E.transferToImageBitmap(),matrix:[X,0,0,X,-G*X/2,-P*X/2]}}n.exports=function(){return Wi().apply(this,arguments)},n.exports.reset=function(){Wi().reset()},n.exports.create=Gi,n.exports.shapeFromPath=uu,n.exports.shapeFromText=cu})(function(){return typeof window<"u"?window:typeof self<"u"?self:this||{}}(),$i,!1);var uy=$i.exports,wy=$i.exports.create,cy=class{static DEFAULTS={scalar:1.4,zIndex:1e4,shapes:["circle","circle","square"],colors:["#f51c8f","#2179e2","#d52dc8","#01a9d9","#78ff44","#fdff6a"]};static async basic(){await this.fire({particleCount:100,spread:70,origin:{y:.6}})}static async leftRight(e=100){let t=[],n=Date.now()+2e3,r=()=>{t.push(this.fire({angle:60,spread:55,origin:{x:0}}),this.fire({angle:120,spread:55,origin:{x:1}})),Date.now()<n&&e>0&&(requestAnimationFrame(r),e--)};r(),await Promise.all(t)}static async realistic(){await Promise.all([this.realisticFire(.25,{spread:26,startVelocity:55}),this.realisticFire(.2,{spread:60}),this.realisticFire(.35,{spread:100,decay:.91,scalar:.8}),this.realisticFire(.1,{spread:120,startVelocity:25,decay:.92,scalar:1.2}),this.realisticFire(.1,{spread:120,startVelocity:45})])}static async fire(e){Object.assign(e,this.DEFAULTS,e),e.particleCount=e.particleCount??this.DEFAULTS.colors.length,await uy(e)}static async realisticFire(e,t){let n={origin:{y:.7}};await this.fire(Object.assign({},n,t,{particleCount:Math.floor(200*e)}))}},fy=(e,t)=>t.minValue;function hy(e,t){if(e&1&&(bn(0),zi(1,"cooeeDynamicVariables")),e&2){yt();let n=Ha(0),r=yt();Mn(" ",Ua(1,1,n.nextMilestone.reachingText,r.localDynamicVariables)," ")}}function dy(e,t){if(e&1&&(bn(0),zi(1,"cooeeDynamicVariables")),e&2){yt();let n=Ha(0),r=yt();Mn(" ",Ua(1,1,n.lastMilestone.reachedText,r.localDynamicVariables)," ")}}function py(e,t){if(e&1&&(mt(0,"li",6)(1,"div",7)(2,"div",8),bn(3),zi(4,"cooeeCurrency"),ze(),Li(5,"img",9),mt(6,"div",10),bn(7),ze()()()),e&2){let n=t.$implicit,r=yt(2);ji("left",n.calculatedAlignment+"%"),lt(3),Vr(Ag(4,5,n.minValue)),lt(2),Pa("src",r.getIconURL(n),Uh),lt(2),Vr(n.label)}}function gy(e,t){if(e&1&&(La(0),mt(1,"div",0),Fi(2,hy,2,4)(3,dy,2,4),ze(),mt(4,"div",1)(5,"ul",2)(6,"div",3),Li(7,"div",4),ze(),wg(8,py,8,7,"li",5,fy),ze()()),e&2){let n=Og(yt().calculatedState());lt(2),Fa(n.nextMilestone?2:3),lt(5),ji("width",n.cartValuePercentage+"%"),lt(),Eg(n.milestones)}}var my=class Ur{constructor(t){this.elementRef=t,this.elementRef.nativeElement.update=this.update.bind(this)}cart;localDynamicVariables={};calculatedState=To({});_engagementTrigger=To(null);set engagementTrigger(t){this._engagementTrigger.set(t)}ngOnInit(){Ie.debug("Init progressbar"),this.calculateMilestonesSilently()}ngOnDestroy(){Ie.debug("Destroying progressbar")}update(){this.calculateMilestonesSilently()}getIconURL(t){return t.rewardType===sn.FREE_SHIPPING?"https://img.icons8.com/ios-filled/50/FFFFFF/free-shipping.png":t.rewardType===sn.DISCOUNT?"https://img.icons8.com/ios-glyphs/30/FFFFFF/sale-price-tag.png":t.rewardType===sn.FREE_AUTO_GIFT?"https://img.icons8.com/ios-filled/50/FFFFFF/gift--v1.png":""}calculateMilestonesSilently(){this.calculateMilestones().catch(t=>Ie.error(t))}async calculateMilestones(){let t=this._engagementTrigger();if(!t?.progressBarConfig?.milestones?.length){Ie.warn("Milestones not available in progress bar config",t);return}let n=await this.cart.getNormalisedCart(),r=t.progressBarConfig,i=r.milestones.at(-1),o=i.minValue+Math.floor(i.minValue*5/100),s=n.originalAmount,l=Math.min(s,o),a=100-Math.abs((l-o)*100/o);Ie.debug("Cart value:",s,`, percentage: ${a}%`);for(let f of r.milestones)f.calculatedAlignment=100-Math.abs((f.minValue-o)*100/o);this.celebrate(t,s);let u={milestonesReady:!0,cartValuePercentage:a,milestones:r.milestones},c=r.milestones.find(f=>f.minValue>s);if(c){this.localDynamicVariables.amount_left=tu.formatCurrency(c.minValue-s),u.nextMilestone=c,this.calculatedState.set(u);return}u.lastMilestone=i,this.calculatedState.set(u)}celebrate(t,n){let r=[...t.progressBarConfig.milestones].reverse().find(o=>o.minValue<n);if(!r)return;let i=`lc/en/${t.shortID}/${r.minValue}`;sessionStorage.getItem(i)||(sessionStorage.setItem(i,"1"),cy.realistic())}static \u0275fac=function(t){return new(t||Ur)(Pi(Pl))};static \u0275cmp=Dp({type:Ur,selectors:[["cooee-progressbar"]],inputs:{cart:"cart",engagementTrigger:"engagementTrigger"},decls:1,vars:1,consts:[[1,"lc:font-medium","lc:text-center","lc:text-[12px]","lc-primary-text"],[1,"lc:mt-4","lc:w-[95%]"],[1,"lc:flex","lc:items-center","lc:relative","lc:text-[10px]","lc:font-medium"],[1,"lc:w-full","lc:bg-gray-200","lc:h-1","lc:absolute","lc-progress-rail"],[1,"lc:bg-green-700","lc:h-full","lc:block!"],[1,"lc:relative","lc:flex","lc:flex-col","lc:items-center","lc:h-[75px]",3,"left"],[1,"lc:relative","lc:flex","lc:flex-col","lc:items-center","lc:h-[75px]"],[1,"lc:flex","lc:flex-col","lc:items-center","lc:justify-between","lc:absolute","lc:h-full","lc:w-[100px]"],[1,"lc-milestone-value"],["width","20","height","20","alt","milestone icon",1,"lc-milestone-icon","lc:bg-green-700",3,"src"],[1,"lc="]],template:function(t,n){t&1&&Fi(0,gy,10,4),t&2&&Fa(n.calculatedState().milestonesReady?0:-1)},dependencies:[ay,Zm],styles:["[_nghost-%COMP%]{display:block;padding:10px;background:linear-gradient(0deg,rgba(44,135,74,.1) 0%,transparent 100%)}.lc-milestone-icon[_ngcontent-%COMP%]{padding:5px;border-radius:1000px}.lc-progress-rail[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{transition:width .5s ease-in-out}"]})};Ie.configure("CooeeWidgetSDK");(async()=>{let e=await Dm(Lm),t=sm(my,{injector:e.injector});customElements.define("cooee-progressbar",t)})();})();