@letscooee/web-sdk 9.0.0 → 9.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -9
- package/dist/shopify-sdk.min.js +1 -1
- package/dist/widget-sdk.min.css +1 -1
- package/dist/widget-sdk.min.js +25 -7
- package/package.json +32 -28
- package/CHANGELOG.md +0 -1738
- package/angular.json +0 -272
- package/projects/analytics-sdk/.eslintrc.json +0 -37
- package/projects/analytics-sdk/public/favicon.ico +0 -0
- package/projects/analytics-sdk/tsconfig.app.json +0 -15
- package/projects/analytics-sdk/tsconfig.spec.json +0 -15
- package/projects/core-lib/.eslintrc.json +0 -37
- package/projects/core-lib/README.md +0 -5
- package/projects/core-lib/ng-package.json +0 -7
- package/projects/core-lib/package.json +0 -12
- package/projects/core-lib/tsconfig.lib.json +0 -15
- package/projects/core-lib/tsconfig.lib.prod.json +0 -11
- package/projects/core-lib/tsconfig.spec.json +0 -15
- package/projects/widget-sdk/.eslintrc.json +0 -37
- package/projects/widget-sdk/public/favicon.ico +0 -0
- package/projects/widget-sdk/tsconfig.app.json +0 -15
- package/projects/widget-sdk/tsconfig.spec.json +0 -15
package/dist/widget-sdk.min.js
CHANGED
|
@@ -1,8 +1,26 @@
|
|
|
1
|
-
var
|
|
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
2
|
${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(`
|
|
3
|
-
`)}`:"",this.name="UnsubscriptionError",this.errors=n});function We(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var A=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(m(r))try{r()}catch(i){t=i instanceof It?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{To(i)}catch(s){t=t??[],s instanceof It?t=[...t,...s.errors]:t.push(s)}}if(t)throw new It(t)}}add(t){var n;if(t&&t!==this)if(this.closed)To(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)&&We(n,t)}remove(t){let{_finalizers:n}=this;n&&We(n,t),t instanceof e&&t._removeParent(this)}};A.EMPTY=(()=>{let e=new A;return e.closed=!0,e})();var xn=A.EMPTY;function wt(e){return e instanceof A||e&&"closed"in e&&m(e.remove)&&m(e.add)&&m(e.unsubscribe)}function To(e){m(e)?e():e.unsubscribe()}var j={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Te={setTimeout(e,t,...n){let{delegate:r}=Te;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=Te;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Ct(e){Te.setTimeout(()=>{let{onUnhandledError:t}=j;if(t)t(e);else throw e})}function An(){}var So=Rn("C",void 0,void 0);function No(e){return Rn("E",void 0,e)}function xo(e){return Rn("N",e,void 0)}function Rn(e,t,n){return{kind:e,value:t,error:n}}var ve=null;function Se(e){if(j.useDeprecatedSynchronousErrorHandling){let t=!ve;if(t&&(ve={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=ve;if(ve=null,n)throw r}}else e()}function Ao(e){j.useDeprecatedSynchronousErrorHandling&&ve&&(ve.errorThrown=!0,ve.error=e)}var De=class extends A{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,wt(t)&&t.add(this)):this.destination=sc}static create(t,n,r){return new Ne(t,n,r)}next(t){this.isStopped?Fn(xo(t),this):this._next(t)}error(t){this.isStopped?Fn(No(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Fn(So,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()}}},oc=Function.prototype.bind;function On(e,t){return oc.call(e,t)}var kn=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){bt(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){bt(r)}else bt(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){bt(n)}}},Ne=class extends De{constructor(t,n,r){super();let o;if(m(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&j.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&On(t.next,i),error:t.error&&On(t.error,i),complete:t.complete&&On(t.complete,i)}):o=t}this.destination=new kn(o)}};function bt(e){j.useDeprecatedSynchronousErrorHandling?Ao(e):Ct(e)}function ic(e){throw e}function Fn(e,t){let{onStoppedNotification:n}=j;n&&Te.setTimeout(()=>n(e,t))}var sc={closed:!0,next:An,error:ic,complete:An};var xe=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Mt(e){return e}function Ro(e){return e.length===0?Mt:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var T=(()=>{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=cc(n)?n:new Ne(n,r,o);return Se(()=>{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=Oo(r),new r((o,i)=>{let s=new Ne({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)}[xe](){return this}pipe(...n){return Ro(n)(this)}toPromise(n){return n=Oo(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 Oo(e){var t;return(t=e??j.Promise)!==null&&t!==void 0?t:Promise}function ac(e){return e&&m(e.next)&&m(e.error)&&m(e.complete)}function cc(e){return e&&e instanceof De||ac(e)&&wt(e)}function uc(e){return m(e?.lift)}function W(e){return t=>{if(uc(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 q(e,t,n,r,o){return new Pn(e,t,n,r,o)}var Pn=class extends De{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 Fo=Et(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var ee=(()=>{class e extends T{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new _t(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Fo}next(n){Se(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){Se(()=>{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(){Se(()=>{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?xn:(this.currentObservers=null,i.push(n),new A(()=>{this.currentObservers=null,We(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new T;return n.source=this,n}}return e.create=(t,n)=>new _t(t,n),e})(),_t=class extends ee{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:xn}};var qe=class extends ee{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 Ln={now(){return(Ln.delegate||Date).now()},delegate:void 0};var Ze=class extends ee{constructor(t=1/0,n=1/0,r=Ln){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 ko=new T(e=>e.complete());function Po(e){return e&&m(e.schedule)}function Lo(e){return e[e.length-1]}function jo(e){return Po(Lo(e))?e.pop():void 0}function Vo(e,t){return typeof Lo(e)=="number"?e.pop():t}function Ho(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(f){s(f)}}function c(l){try{u(r.throw(l))}catch(f){s(f)}}function u(l){l.done?i(l.value):o(l.value).then(a,c)}u((r=r.apply(e,t||[])).next())})}function Bo(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 Ee(e){return this instanceof Ee?(this.v=e,this):new Ee(e)}function $o(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(d){return function(M){return Promise.resolve(M).then(d,f)}}function a(d,M){r[d]&&(o[d]=function(_){return new Promise(function(gt,U){i.push([d,_,gt,U])>1||c(d,_)})},M&&(o[d]=M(o[d])))}function c(d,M){try{u(r[d](M))}catch(_){p(i[0][3],_)}}function u(d){d.value instanceof Ee?Promise.resolve(d.value.v).then(l,f):p(i[0][2],d)}function l(d){c("next",d)}function f(d){c("throw",d)}function p(d,M){d(M),i.shift(),i.length&&c(i[0][0],i[0][1])}}function Uo(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 Bo=="function"?Bo(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 Tt=e=>e&&typeof e.length=="number"&&typeof e!="function";function St(e){return m(e?.then)}function Nt(e){return m(e[xe])}function xt(e){return Symbol.asyncIterator&&m(e?.[Symbol.asyncIterator])}function At(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 lc(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Rt=lc();function Ot(e){return m(e?.[Rt])}function Ft(e){return $o(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield Ee(n.read());if(o)return yield Ee(void 0);yield yield Ee(r)}}finally{n.releaseLock()}})}function kt(e){return m(e?.getReader)}function R(e){if(e instanceof T)return e;if(e!=null){if(Nt(e))return dc(e);if(Tt(e))return fc(e);if(St(e))return pc(e);if(xt(e))return zo(e);if(Ot(e))return hc(e);if(kt(e))return gc(e)}throw At(e)}function dc(e){return new T(t=>{let n=e[xe]();if(m(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function fc(e){return new T(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function pc(e){return new T(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Ct)})}function hc(e){return new T(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function zo(e){return new T(t=>{mc(e,t).catch(n=>t.error(n))})}function gc(e){return zo(Ft(e))}function mc(e,t){var n,r,o,i;return Ho(this,void 0,void 0,function*(){try{for(n=Uo(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 P(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 Pt(e,t=0){return W((n,r)=>{n.subscribe(q(r,o=>P(r,e,()=>r.next(o),t),()=>P(r,e,()=>r.complete(),t),o=>P(r,e,()=>r.error(o),t)))})}function Lt(e,t=0){return W((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function Go(e,t){return R(e).pipe(Lt(t),Pt(t))}function Wo(e,t){return R(e).pipe(Lt(t),Pt(t))}function qo(e,t){return new T(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function Zo(e,t){return new T(n=>{let r;return P(n,t,()=>{r=e[Rt](),P(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)}),()=>m(r?.return)&&r.return()})}function jt(e,t){if(!e)throw new Error("Iterable cannot be null");return new T(n=>{P(n,t,()=>{let r=e[Symbol.asyncIterator]();P(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function Yo(e,t){return jt(Ft(e),t)}function Qo(e,t){if(e!=null){if(Nt(e))return Go(e,t);if(Tt(e))return qo(e,t);if(St(e))return Wo(e,t);if(xt(e))return jt(e,t);if(Ot(e))return Zo(e,t);if(kt(e))return Yo(e,t)}throw At(e)}function Ko(e,t){return t?Qo(e,t):R(e)}function Ye(e,t){return W((n,r)=>{let o=0;n.subscribe(q(r,i=>{r.next(e.call(t,i,o++))}))})}function Jo(e,t,n,r,o,i,s,a){let c=[],u=0,l=0,f=!1,p=()=>{f&&!c.length&&!u&&t.complete()},d=_=>u<r?M(_):c.push(_),M=_=>{i&&t.next(_),u++;let gt=!1;R(n(_,l++)).subscribe(q(t,U=>{o?.(U),i?d(U):t.next(U)},()=>{gt=!0},void 0,()=>{if(gt)try{for(u--;c.length&&u<r;){let U=c.shift();s?P(t,s,()=>M(U)):M(U)}p()}catch(U){t.error(U)}}))};return e.subscribe(q(t,d,()=>{f=!0,p()})),()=>{a?.()}}function jn(e,t,n=1/0){return m(t)?jn((r,o)=>Ye((i,s)=>t(r,i,o,s))(R(e(r,o))),n):(typeof t=="number"&&(n=t),W((r,o)=>Jo(r,o,e,n)))}function Xo(e=1/0){return jn(Mt,e)}function Vn(...e){let t=jo(e),n=Vo(e,1/0),r=e;return r.length?r.length===1?R(r[0]):Xo(n)(Ko(r,t)):ko}function Bn(e,t){return W((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(q(r,c=>{o?.unsubscribe();let u=0,l=i++;R(e(c,l)).subscribe(o=q(r,f=>r.next(t?t(c,f,l,u++):f),()=>{o=null,a()}))},()=>{s=!0,a()}))})}var y=class extends Error{code;constructor(t,n){super(Mr(t,n)),this.code=t}};function Mr(e,t){return`${`NG0${Math.abs(e)}`}${t?": "+t:""}`}function yc(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 H(e){if(typeof e=="string")return e;if(Array.isArray(e))return`[${e.map(H).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
|
|
5
|
-
`+e.message,o,n,r),e[
|
|
6
|
-
`&&e.charAt(1)==
|
|
7
|
-
`)}`}function et(e,t){let n=e.hasOwnProperty(oi);return n?e[oi]:null}function Sr(e,t){e.forEach(n=>Array.isArray(n)?Sr(n,t):t(n))}function Vi(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}var Pe={},Le=[],tt=new D(""),Bi=new D("",-1),Hi=new D(""),Gt=class{get(t,n=Xe){if(n===Xe){let r=new Error(`NullInjectorError: No provider for ${H(t)}!`);throw r.name="NullInjectorError",r}return n}};function sn(e){return e[wc]||null}function $i(e){return e[Cc]||null}function Ui(e){return e[bc]||null}function jc(e){let t=sn(e)||$i(e)||Ui(e);return t!==null&&t.standalone}function zi(e){return{\u0275providers:e}}function Vc(...e){return{\u0275providers:Gi(!0,e),\u0275fromNgModule:!0}}function Gi(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return Sr(t,s=>{let a=s;Yn(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&Wi(o,i),n}function Wi(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];Nr(o,i=>{t(i,r)})}}function Yn(e,t,n,r){if(e=B(e),!e)return!1;let o=null,i=ni(e),s=!i&&sn(e);if(!i&&!s){let c=e.ngModule;if(i=ni(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)Yn(u,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let u;try{Sr(i.imports,l=>{Yn(l,t,n,r)&&(u||=[],u.push(l))})}finally{}u!==void 0&&Wi(u,t)}if(!a){let u=et(o)||(()=>new o);t({provide:o,useFactory:u,deps:Le},o),t({provide:Hi,useValue:o,multi:!0},o),t({provide:tt,useValue:()=>C(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let u=e;Nr(c,l=>{t(l,u)})}}else return!1;return o!==e&&e.providers!==void 0}function Nr(e,t){for(let n of e)Pi(n)&&(n=n.\u0275providers),Array.isArray(n)?Nr(n,t):t(n)}var Bc=b({provide:String,useValue:b});function qi(e){return e!==null&&typeof e=="object"&&Bc in e}function Hc(e){return!!(e&&e.useExisting)}function $c(e){return!!(e&&e.useFactory)}function Qn(e){return typeof e=="function"}var an=new D(""),Vt={},Uc={},Hn;function xr(){return Hn===void 0&&(Hn=new Gt),Hn}var Ce=class{},nt=class extends Ce{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,Jn(t,s=>this.processProvider(s)),this.records.set(Bi,Ae(void 0,this)),o.has("environment")&&this.records.set(Ce,Ae(void 0,this));let i=this.records.get(an);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Hi,Le,g.Self))}destroy(){Ke(this),this._destroyed=!0;let t=w(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(),w(t)}}onDestroy(t){return Ke(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){Ke(this);let n=ne(this),r=L(void 0),o;try{return t()}finally{ne(n),L(r)}}get(t,n=Xe,r=g.Default){if(Ke(this),t.hasOwnProperty(ii))return t[ii](this);r=on(r);let o,i=ne(this),s=L(void 0);try{if(!(r&g.SkipSelf)){let c=this.records.get(t);if(c===void 0){let u=Yc(t)&&_r(t);u&&this.injectableDefInScope(u)?c=Ae(Kn(t),Vt):c=null,this.records.set(t,c)}if(c!=null)return this.hydrate(t,c)}let a=r&g.Self?xr():this.parent;return n=r&g.Optional&&n===Xe?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[zt]=a[zt]||[]).unshift(H(t)),i)throw a;return Pc(a,t,"R3InjectorError",this.source)}else throw a}finally{L(s),ne(i)}}resolveInjectorInitializers(){let t=w(null),n=ne(this),r=L(void 0),o;try{let i=this.get(tt,Le,g.Self);for(let s of i)s()}finally{ne(n),L(r),w(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(H(r));return`R3Injector[${t.join(", ")}]`}processProvider(t){t=B(t);let n=Qn(t)?t:B(t&&t.provide),r=Gc(t);if(!Qn(t)&&t.multi===!0){let o=this.records.get(n);o||(o=Ae(void 0,Vt,!0),o.factory=()=>Zn(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){let r=w(null);try{return n.value===Vt&&(n.value=Uc,n.value=n.factory()),typeof n.value=="object"&&n.value&&Zc(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{w(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=B(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 Kn(e){let t=_r(e),n=t!==null?t.factory:et(e);if(n!==null)return n;if(e instanceof D)throw new y(204,!1);if(e instanceof Function)return zc(e);throw new y(204,!1)}function zc(e){if(e.length>0)throw new y(204,!1);let n=Ec(e);return n!==null?()=>n.factory(e):()=>new e}function Gc(e){if(qi(e))return Ae(void 0,e.useValue);{let t=Wc(e);return Ae(t,Vt)}}function Wc(e,t,n){let r;if(Qn(e)){let o=B(e);return et(o)||Kn(o)}else if(qi(e))r=()=>B(e.useValue);else if($c(e))r=()=>e.useFactory(...Zn(e.deps||[]));else if(Hc(e))r=()=>C(B(e.useExisting));else{let o=B(e&&(e.useClass||e.provide));if(qc(e))r=()=>new o(...Zn(e.deps));else return et(o)||Kn(o)}return r}function Ke(e){if(e.destroyed)throw new y(205,!1)}function Ae(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function qc(e){return!!e.deps}function Zc(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function Yc(e){return typeof e=="function"||typeof e=="object"&&e instanceof D}function Jn(e,t){for(let n of e)Array.isArray(n)?Jn(n,t):n&&Pi(n)?Jn(n.\u0275providers,t):t(n)}function Zi(e,t){e instanceof nt&&Ke(e);let n,r=ne(e),o=L(void 0);try{return t()}finally{ne(r),L(o)}}function Qc(){return Li()!==void 0||Oc()!=null}var ge=0,E=1,h=2,$=3,oe=4,me=5,Xn=6,ai=7,te=8,rt=9,se=10,ae=11,ot=12,ci=13,st=14,ce=15,Wt=16,Re=17,Ar=18,cn=19,Yi=20,ie=21,$n=22,qt=23,O=24,ue=25,Qi=1;var er=7,Kc=8,Zt=9,Ie=10;function we(e){return Array.isArray(e)&&typeof e[Qi]=="object"}function $e(e){return Array.isArray(e)&&e[Qi]===!0}function Ki(e){return(e.flags&4)!==0}function un(e){return e.componentOffset>-1}function Jc(e){return(e.flags&1)===1}function Ue(e){return!!e.template}function Yt(e){return(e[h]&512)!==0}function at(e){return(e[h]&256)===256}var tr=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function Ji(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}function Xc(e){return e.type.prototype.ngOnChanges&&(e.setInput=tu),eu}function eu(){let e=es(this),t=e?.current;if(t){let n=e.previous;if(n===Pe)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function tu(e,t,n,r,o){let i=this.declaredInputs[r],s=es(e)||nu(e,{previous:Pe,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[i];a[i]=new tr(u&&u.currentValue,n,c===Pe),Ji(e,t,o,n)}var Xi="__ngSimpleChanges__";function es(e){return e[Xi]||null}function nu(e,t){return e[Xi]=t}var ui=null;var Z=function(e,t,n){ui?.(e,t,n)},ru="svg",ou="math";function ct(e){for(;Array.isArray(e);)e=e[ge];return e}function ze(e,t){return ct(t[e.index])}function iu(e,t){return e.data[t]}function je(e,t){let n=t[e];return we(n)?n:n[ge]}function Rr(e){return(e[h]&128)===128}function li(e,t){return t==null?null:e[t]}function ts(e){e[Re]=0}function Or(e){e[h]&1024||(e[h]|=1024,Rr(e)&&dn(e))}function ln(e){return!!(e[h]&9216||e[O]?.dirty)}function di(e){e[se].changeDetectionScheduler?.notify(9),e[h]&64&&(e[h]|=1024),ln(e)&&dn(e)}function dn(e){e[se].changeDetectionScheduler?.notify(0);let t=Ve(e);for(;t!==null&&!(t[h]&8192||(t[h]|=8192,!Rr(t)));)t=Ve(t)}function ns(e,t){if(at(e))throw new y(911,!1);e[ie]===null&&(e[ie]=[]),e[ie].push(t)}function su(e,t){if(e[ie]===null)return;let n=e[ie].indexOf(t);n!==-1&&e[ie].splice(n,1)}function Ve(e){let t=e[$];return $e(t)?t[$]:t}var I={lFrame:ls(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var nr=!1;function au(){return I.lFrame.elementDepthCount}function cu(){I.lFrame.elementDepthCount++}function uu(){I.lFrame.elementDepthCount--}function rs(){return I.bindingsEnabled}function lu(){return I.skipHydrationRootTNode!==null}function du(e){return I.skipHydrationRootTNode===e}function fu(){I.skipHydrationRootTNode=null}function le(){return I.lFrame.lView}function Fr(){return I.lFrame.tView}function ut(){let e=os();for(;e!==null&&e.type===64;)e=e.parent;return e}function os(){return I.lFrame.currentTNode}function pu(){let e=I.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function fn(e,t){let n=I.lFrame;n.currentTNode=e,n.isParent=t}function is(){return I.lFrame.isParent}function hu(){I.lFrame.isParent=!1}function ss(){return nr}function fi(e){let t=nr;return nr=e,t}function gu(e){return I.lFrame.bindingIndex=e}function mu(){return I.lFrame.inI18n}function yu(e,t){let n=I.lFrame;n.bindingIndex=n.bindingRootIndex=e,rr(t)}function vu(){return I.lFrame.currentDirectiveIndex}function rr(e){I.lFrame.currentDirectiveIndex=e}function as(e){I.lFrame.currentQueryIndex=e}function Du(e){let t=e[E];return t.type===2?t.declTNode:t.type===1?e[me]:null}function cs(e,t,n){if(n&g.SkipSelf){let o=t,i=e;for(;o=o.parent,o===null&&!(n&g.Host);)if(o=Du(i),o===null||(i=i[st],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=I.lFrame=us();return r.currentTNode=t,r.lView=e,!0}function kr(e){let t=us(),n=e[E];I.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function us(){let e=I.lFrame,t=e===null?null:e.child;return t===null?ls(e):t}function ls(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 ds(){let e=I.lFrame;return I.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var fs=ds;function Pr(){let e=ds();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 Eu(){return I.lFrame.selectedIndex}function be(e){I.lFrame.selectedIndex=e}function Iu(){return I.lFrame.currentNamespace}var ps=!0;function hs(){return ps}function gs(e){ps=e}function wu(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=Xc(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 Cu(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 Bt(e,t,n){ms(e,t,3,n)}function Ht(e,t,n,r){(e[h]&3)===n&&ms(e,t,n,r)}function Un(e,t){let n=e[h];(n&3)===t&&(n&=16383,n+=1,e[h]=n)}function ms(e,t,n,r){let o=r!==void 0?e[Re]&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[Re]+=65536),(a<i||i==-1)&&(bu(e,n,t,c),e[Re]=(e[Re]&4294901760)+c+2),c++}function pi(e,t){Z(4,e,t);let n=w(null);try{t.call(e)}finally{w(n),Z(5,e,t)}}function bu(e,t,n,r){let o=n[r]<0,i=n[r+1],s=o?-n[r]:n[r],a=e[s];o?e[h]>>14<e[Re]>>16&&(e[h]&3)===t&&(e[h]+=16384,pi(a,i)):pi(a,i)}var ke=-1,it=class{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,r){this.factory=t,this.canSeeViewProviders=n,this.injectImpl=r}};function Mu(e){return e instanceof it}function _u(e){return(e.flags&8)!==0}function Tu(e){return(e.flags&16)!==0}function Su(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];xu(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++}}return r}function Nu(e){return e===3||e===4||e===6}function xu(e){return e.charCodeAt(0)===64}function ys(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?hi(e,n,o,null,t[++r]):hi(e,n,o,null,null))}}return e}function hi(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 zn={},or=class{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=on(r);let o=this.injector.get(t,zn,r);return o!==zn||n===zn?o:this.parentInjector.get(t,n,r)}};function Au(e){return e!==ke}function ir(e){return e&32767}function Ru(e){return e>>16}function sr(e,t){let n=Ru(e),r=t;for(;n>0;)r=r[st],n--;return r}var ar=!0;function gi(e){let t=ar;return ar=e,t}var Ou=256,vs=Ou-1,Ds=5,Fu=0,Y={};function ku(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(Je)&&(r=n[Je]),r==null&&(r=n[Je]=Fu++);let o=r&vs,i=1<<o;t.data[e+(o>>Ds)]|=i}function Es(e,t){let n=Is(e,t);if(n!==-1)return n;let r=t[E];r.firstCreatePass&&(e.injectorIndex=t.length,Gn(r.data,e),Gn(t,null),Gn(r.blueprint,null));let o=ws(e,t),i=e.injectorIndex;if(Au(o)){let s=ir(o),a=sr(o,t),c=a[E].data;for(let u=0;u<8;u++)t[i+u]=a[s+u]|c[s+u]}return t[i+8]=o,i}function Gn(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Is(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function ws(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=Ts(o),r===null)return ke;if(n++,o=o[st],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return ke}function Pu(e,t,n){ku(e,t,n)}function Cs(e,t,n){if(n&g.Optional||e!==void 0)return e;Tr(t,"NodeInjector")}function bs(e,t,n,r){if(n&g.Optional&&r===void 0&&(r=null),!(n&(g.Self|g.Host))){let o=e[rt],i=L(void 0);try{return o?o.get(t,r,n&g.Optional):ji(t,r,n&g.Optional)}finally{L(i)}}return Cs(r,t,n)}function Ms(e,t,n,r=g.Default,o){if(e!==null){if(t[h]&2048&&!(r&g.Self)){let s=Hu(e,t,n,r,Y);if(s!==Y)return s}let i=_s(e,t,n,r,Y);if(i!==Y)return i}return bs(t,n,r,o)}function _s(e,t,n,r,o){let i=Vu(n);if(typeof i=="function"){if(!cs(t,e,r))return r&g.Host?Cs(o,n,r):bs(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&g.Optional))Tr(n);else return s}finally{fs()}}else if(typeof i=="number"){let s=null,a=Is(e,t),c=ke,u=r&g.Host?t[ce][me]:null;for((a===-1||r&g.SkipSelf)&&(c=a===-1?ws(e,t):t[a+8],c===ke||!yi(r,!1)?a=-1:(s=t[E],a=ir(c),t=sr(c,t)));a!==-1;){let l=t[E];if(mi(i,a,l.data)){let f=Lu(a,t,n,s,r,u);if(f!==Y)return f}c=t[a+8],c!==ke&&yi(r,t[E].data[a+8]===u)&&mi(i,a,t)?(s=l,a=ir(c),t=sr(c,t)):a=-1}}return o}function Lu(e,t,n,r,o,i){let s=t[E],a=s.data[e+8],c=r==null?un(a)&&ar:r!=s&&(a.type&3)!==0,u=o&g.Host&&i===a,l=ju(a,s,n,c,u);return l!==null?cr(t,s,l,a):Y}function ju(e,t,n,r,o){let i=e.providerIndexes,s=t.data,a=i&1048575,c=e.directiveStart,u=e.directiveEnd,l=i>>20,f=r?a:a+l,p=o?a+l:u;for(let d=f;d<p;d++){let M=s[d];if(d<c&&n===M||d>=c&&M.type===n)return d}if(o){let d=s[c];if(d&&Ue(d)&&d.type===n)return c}return null}function cr(e,t,n,r){let o=e[n],i=t.data;if(Mu(o)){let s=o;s.resolving&&Tc(_c(i[n]));let a=gi(s.canSeeViewProviders);s.resolving=!0;let c,u=s.injectImpl?L(s.injectImpl):null,l=cs(e,r,g.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&wu(n,i[n],t)}finally{u!==null&&L(u),gi(a),s.resolving=!1,fs()}}return o}function Vu(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(Je)?e[Je]:void 0;return typeof t=="number"?t>=0?t&vs:Bu:t}function mi(e,t,n){let r=1<<e;return!!(n[t+(e>>Ds)]&r)}function yi(e,t){return!(e&g.Self)&&!(e&g.Host&&t)}var Qt=class{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return Ms(this._tNode,this._lView,t,on(r),n)}};function Bu(){return new Qt(ut(),le())}function Hu(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[h]&2048&&!Yt(s);){let a=_s(i,s,n,r|g.Self,Y);if(a!==Y)return a;let c=i.parent;if(!c){let u=s[Yi];if(u){let l=u.get(n,Y,r);if(l!==Y)return l}c=Ts(s),s=s[st]}i=c}return o}function Ts(e){let t=e[E],n=t.type;return n===2?t.declTNode:n===1?e[me]:null}function vi(e,t=null,n=null,r){let o=$u(e,t,n,r);return o.resolveInjectorInitializers(),o}function $u(e,t=null,n=null,r,o=new Set){let i=[n||Le,Vc(e)];return r=r||(typeof e=="object"?void 0:H(e)),new nt(i,t||xr(),r||null,o)}var Q=class e{static THROW_IF_NOT_FOUND=Xe;static NULL=new Gt;static create(t,n){if(Array.isArray(t))return vi({name:""},n,t,"");{let r=t.name??"";return vi({name:r},t.parent,t.providers,r)}}static \u0275prov=S({token:e,providedIn:"any",factory:()=>C(Bi)});static __NG_ELEMENT_ID__=-1};var Uu=new D("");Uu.__NG_ELEMENT_ID__=e=>{let t=ut();if(t===null)throw new y(204,!1);if(t.type&2)return t.value;if(e&g.Optional)return null;throw new y(204,!1)};var Ss=!1,Ns=(()=>{class e{static __NG_ELEMENT_ID__=zu;static __NG_ENV_ID__=n=>n}return e})(),ur=class extends Ns{_lView;constructor(t){super(),this._lView=t}onDestroy(t){return ns(this._lView,t),()=>su(this._lView,t)}};function zu(){return new ur(le())}var de=class{},pn=new D("",{providedIn:"root",factory:()=>!1});var xs=new D(""),Lr=new D(""),hn=(()=>{class e{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new qe(!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=S({token:e,providedIn:"root",factory:()=>new e})}return e})();var lr=class extends ee{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,Qc()&&(this.destroyRef=v(Ns,{optional:!0})??void 0,this.pendingTasks=v(hn,{optional:!0})??void 0)}emit(t){let n=w(null);try{super.next(t)}finally{w(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 A&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{t(n),r!==void 0&&this.pendingTasks?.remove(r)})}}},re=lr;function Kt(...e){}function As(e){let t,n;function r(){e=Kt;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 Di(e){return queueMicrotask(()=>e()),()=>{e=Kt}}var jr="isAngularZone",Jt=jr+"_ID",Gu=0,x=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new re(!1);onMicrotaskEmpty=new re(!1);onStable=new re(!1);onError=new re(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=Ss}=t;if(typeof Zone>"u")throw new y(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,Zu(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(jr)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new y(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new y(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,Wu,Kt,Kt);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)}},Wu={};function Vr(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 qu(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){As(()=>{e.callbackScheduled=!1,dr(e),e.isCheckStableRunning=!0,Vr(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),dr(e)}function Zu(e){let t=()=>{qu(e)},n=Gu++;e._inner=e._inner.fork({name:"angular",properties:{[jr]:!0,[Jt]:n,[Jt+n]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(Yu(c))return r.invokeTask(i,s,a,c);try{return Ei(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Ii(e)}},onInvoke:(r,o,i,s,a,c,u)=>{try{return Ei(e),r.invoke(i,s,a,c,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!Qu(c)&&t(),Ii(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,dr(e),Vr(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 dr(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function Ei(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Ii(e){e._nesting--,Vr(e)}var Xt=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new re;onMicrotaskEmpty=new re;onStable=new re;onError=new re;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 Yu(e){return Rs(e,"__ignore_ng_zone__")}function Qu(e){return Rs(e,"__scheduler_tick__")}function Rs(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var fe=class{_console=console;handleError(t){this._console.error("ERROR",t)}},Ku=new D("",{providedIn:"root",factory:()=>{let e=v(x),t=v(fe);return n=>e.runOutsideAngular(()=>t.handleError(n))}});function Ju(){return Os(ut(),le())}function Os(e,t){return new gn(ze(e,t))}var gn=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=Ju}return e})();var wi=new Set;function mn(e){wi.has(e)||(wi.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function Fs(e,t){mn("NgSignals");let n=bo(e),r=n[X];return t?.equal&&(r.equal=t.equal),n.set=o=>Nn(r,o),n.update=o=>Mo(r,o),n.asReadonly=Xu.bind(n),n}function Xu(){let e=this[X];if(e.readonlyFn===void 0){let t=()=>this();t[X]=e,e.readonlyFn=t}return e.readonlyFn}function el(e){return(e.flags&128)===128}var ks=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(ks||{}),Ps=new Map,tl=0;function nl(){return tl++}function rl(e){Ps.set(e[cn],e)}function fr(e){Ps.delete(e[cn])}var Ci="__ngContext__";function lt(e,t){we(t)?(e[Ci]=t[cn],rl(t)):e[Ci]=t}function Ls(e){return Vs(e[ot])}function js(e){return Vs(e[oe])}function Vs(e){for(;e!==null&&!$e(e);)e=e[oe];return e}var pr;function Bs(e){pr=e}function ol(){if(pr!==void 0)return pr;if(typeof document<"u")return document;throw new y(210,!1)}var Br=new D("",{providedIn:"root",factory:()=>il}),il="ng",Hr=new D(""),dt=new D("",{providedIn:"platform",factory:()=>"unknown"});var $r=new D("",{providedIn:"root",factory:()=>ol().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var sl="h",al="b";var Hs=!1,cl=new D("",{providedIn:"root",factory:()=>Hs});var $s=function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e}($s||{}),yn=new D("");var ul=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=S({token:e,providedIn:"root",factory:()=>new e})}return e})();var ll=()=>null;function Us(e,t,n=!1){return ll(e,t,n)}function zs(e,t){let n=e.contentQueries;if(n!==null){let r=w(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];as(i),a.contentQueries(2,t[s],s)}}}finally{w(r)}}}function hr(e,t,n){as(0);let r=w(null);try{t(e,n)}finally{w(r)}}function Gs(e,t,n){if(Ki(t)){let r=w(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{w(r)}}}var K=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(K||{});function dl(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 Ws="ng-template";function fl(e,t,n,r){let o=0;if(r){for(;o<t.length&&typeof t[o]=="string";o+=2)if(t[o]==="class"&&dl(t[o+1].toLowerCase(),n,0)!==-1)return!0}else if(Ur(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 Ur(e){return e.type===4&&e.value!==Ws}function pl(e,t,n){let r=e.type===4&&!n?Ws:e.value;return t===r}function hl(e,t,n){let r=4,o=e.attrs,i=o!==null?yl(o):0,s=!1;for(let a=0;a<t.length;a++){let c=t[a];if(typeof c=="number"){if(!s&&!V(r)&&!V(c))return!1;if(s&&V(c))continue;s=!1,r=c|r&1;continue}if(!s)if(r&4){if(r=2|r&1,c!==""&&!pl(e,c,n)||c===""&&t.length===1){if(V(r))return!1;s=!0}}else if(r&8){if(o===null||!fl(e,o,c,n)){if(V(r))return!1;s=!0}}else{let u=t[++a],l=gl(c,o,Ur(e),n);if(l===-1){if(V(r))return!1;s=!0;continue}if(u!==""){let f;if(l>i?f="":f=o[l+1].toLowerCase(),r&2&&u!==f){if(V(r))return!1;s=!0}}}}return V(r)||s}function V(e){return(e&1)===0}function gl(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 vl(t,e)}function ml(e,t,n=!1){for(let r=0;r<t.length;r++)if(hl(e,t[r],n))return!0;return!1}function yl(e){for(let t=0;t<e.length;t++){let n=e[t];if(Nu(n))return t}return e.length}function vl(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 bi(e,t){return e?":not("+t.trim()+")":t}function Dl(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!==""&&!V(s)&&(t+=bi(i,o),o=""),r=s,i=i||!V(r);n++}return o!==""&&(t+=bi(i,o)),t}function El(e){return e.map(Dl).join(",")}function Il(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(!V(o))break;o=i}r++}return n.length&&t.push(1,...n),t}var qs={};function wl(e,t){return e.createText(t)}function Zs(e,t,n){return e.createElement(t,n)}function gr(e,t,n,r,o){e.insertBefore(t,n,r,o)}function Ys(e,t,n){e.appendChild(t,n)}function Mi(e,t,n,r,o){r!==null?gr(e,t,n,r,o):Ys(e,t,n)}function Cl(e,t,n){e.removeChild(null,t,n)}function bl(e,t,n){e.setAttribute(t,"style",n)}function Ml(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function Qs(e,t,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&Su(e,t,r),o!==null&&Ml(e,t,o),i!==null&&bl(e,t,i)}function Ks(e,t,n,r,o,i,s,a,c,u,l){let f=ue+r,p=f+o,d=_l(f,p),M=typeof u=="function"?u():u;return d[E]={type:e,blueprint:d,template:n,queries:null,viewQuery:a,declTNode:t,data:d.slice().fill(null,f),bindingStartIndex:f,expandoStartIndex:p,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 _l(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:qs);return n}function Tl(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=Ks(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function Js(e,t,n,r,o,i,s,a,c,u,l){let f=t.blueprint.slice();return f[ge]=o,f[h]=r|4|128|8|64|1024,(u!==null||e&&e[h]&2048)&&(f[h]|=2048),ts(f),f[$]=f[st]=e,f[te]=n,f[se]=s||e&&e[se],f[ae]=a||e&&e[ae],f[rt]=c||e&&e[rt]||null,f[me]=i,f[cn]=nl(),f[Xn]=l,f[Yi]=u,f[ce]=t.type==2?e[ce]:f,f}function Sl(e,t,n){let r=ze(t,e),o=Tl(n),i=e[se].rendererFactory,s=Nl(e,Js(e,o,null,Xs(n),r,t,null,i.createRenderer(r,n),null,null,null));return e[t.index]=s}function Xs(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function ea(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 Nl(e,t){return e[ot]?e[ci][oe]=t:e[ot]=t,e[ci]=t,t}function xl(e,t,n,r){if(!r)if((t[h]&3)===3){let i=e.preOrderCheckHooks;i!==null&&Bt(t,i,n)}else{let i=e.preOrderHooks;i!==null&&Ht(t,i,0,n)}be(n)}var vn=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(vn||{});function ta(e,t,n,r){let o=w(null);try{let[i,s,a]=e.inputs[n],c=null;s&vn.SignalBased&&(c=t[i][X]),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):Ji(t,c,i,r)}finally{w(o)}}function na(e,t,n,r,o){let i=Eu(),s=r&2;try{be(-1),s&&t.length>ue&&xl(e,t,ue,!1),Z(s?2:0,o),n(r,o)}finally{be(i),Z(s?3:1,o)}}function Al(e,t,n){rs()&&(lt(ze(n,t),t),ra(e,t,n))}function ra(e,t,n){Pl(e,t,n),(n.flags&64)===64&&Ll(e,t,n)}function Rl(e,t,n=ze){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 Ol(e,t,n,r){let i=r.get(cl,Hs)||n===K.ShadowDom,s=e.selectRootElement(t,i);return Fl(s),s}function Fl(e){kl(e)}var kl=()=>null;function Pl(e,t,n){let r=n.directiveStart,o=n.directiveEnd;un(n)&&Sl(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||Es(n,t);let i=n.initialInputs;for(let s=r;s<o;s++){let a=e.data[s],c=cr(t,e,s,n);if(lt(c,t),i!==null&&Bl(t,s-r,c,a,n,i),Ue(a)){let u=je(n.index,t);u[te]=cr(t,e,s,n)}}}function Ll(e,t,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=vu();try{be(i);for(let a=r;a<o;a++){let c=e.data[a],u=t[a];rr(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&jl(c,u)}}finally{be(-1),rr(s)}}function jl(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function Vl(e,t){let n=e.directiveRegistry,r=null;if(n)for(let o=0;o<n.length;o++){let i=n[o];ml(t,i.selectors,!1)&&(r??=[],Ue(i)?r.unshift(i):r.push(i))}return r}function Bl(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];ta(r,n,c,u)}}function Hl(e,t){let n=e[rt],r=n?n.get(fe,null):null;r&&r.handleError(t)}function oa(e,t,n,r,o){for(let i=0;i<n.length;i+=2){let s=n[i],a=n[i+1],c=t[s],u=e.data[s];ta(u,c,a,o)}}function $l(e,t){let n=je(t,e),r=n[E];Ul(r,n);let o=n[ge];o!==null&&n[Xn]===null&&(n[Xn]=Us(o,n[rt])),ia(r,n,n[te])}function Ul(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}function ia(e,t,n){kr(t);try{let r=e.viewQuery;r!==null&&hr(1,r,n);let o=e.template;o!==null&&na(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[Ar]?.finishViewCreation(e),e.staticContentQueries&&zs(e,t),e.staticViewQueries&&hr(2,e.viewQuery,n);let i=e.components;i!==null&&zl(t,i)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[h]&=-5,Pr()}}function zl(e,t){for(let n=0;n<t.length;n++)$l(e,t[n])}var Gl;function sa(e,t){return Gl(e,t)}var Me=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Me||{});function aa(e){return(e.flags&32)===32}function Oe(e,t,n,r,o){if(r!=null){let i,s=!1;$e(r)?i=r:we(r)&&(s=!0,r=r[ge]);let a=ct(r);e===0&&n!==null?o==null?Ys(t,n,a):gr(t,n,a,o||null,!0):e===1&&n!==null?gr(t,n,a,o||null,!0):e===2?Cl(t,a,s):e===3&&t.destroyNode(a),i!=null&&od(t,e,i,n,o)}}function Wl(e,t){ca(e,t),t[ge]=null,t[me]=null}function ca(e,t){t[se].changeDetectionScheduler?.notify(10),Wr(e,t,t[ae],2,null,null)}function ql(e){let t=e[ot];if(!t)return Wn(e[E],e);for(;t;){let n=null;if(we(t))n=t[ot];else{let r=t[Ie];r&&(n=r)}if(!n){for(;t&&!t[oe]&&t!==e;)we(t)&&Wn(t[E],t),t=t[$];t===null&&(t=e),we(t)&&Wn(t[E],t),n=t&&t[oe]}t=n}}function zr(e,t){let n=e[Zt],r=n.indexOf(t);n.splice(r,1)}function Zl(e,t){if(at(t))return;let n=t[ae];n.destroyNode&&Wr(e,t,n,3,null,null),ql(t)}function Wn(e,t){if(at(t))return;let n=w(null);try{t[h]&=-129,t[h]|=256,t[O]&&Sn(t[O]),Ql(e,t),Yl(e,t),t[E].type===1&&t[ae].destroy();let r=t[Wt];if(r!==null&&$e(t[$])){r!==t[$]&&zr(r,t);let o=t[Ar];o!==null&&o.detachView(e)}fr(t)}finally{w(n)}}function Yl(e,t){let n=e.cleanup,r=t[ai];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[ai]=null);let o=t[ie];if(o!==null){t[ie]=null;for(let s=0;s<o.length;s++){let a=o[s];a()}}let i=t[qt];if(i!==null){t[qt]=null;for(let s of i)s.destroy()}}function Ql(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 it)){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];Z(4,a,c);try{c.call(a)}finally{Z(5,a,c)}}else{Z(4,o,i);try{i.call(o)}finally{Z(5,o,i)}}}}}function Kl(e,t,n){return Jl(e,t.parent,n)}function Jl(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[ge];if(un(r)){let{encapsulation:o}=e.data[r.directiveStart+r.componentOffset];if(o===K.None||o===K.Emulated)return null}return ze(r,n)}function Xl(e,t,n){return td(e,t,n)}function ed(e,t,n){return e.type&40?ze(e,n):null}var td=ed,_i;function ua(e,t,n,r){let o=Kl(e,r,t),i=t[ae],s=r.parent||t[me],a=Xl(s,r,t);if(o!=null)if(Array.isArray(n))for(let c=0;c<n.length;c++)Mi(i,o,n[c],a,!1);else Mi(i,o,n,a,!1);_i!==void 0&&_i(i,r,t,n,o)}function nd(e,t){if(t!==null){let r=e[ce][me],o=t.projection;return r.projection[o]}return null}function Gr(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&<(ct(a),r),n.flags|=2),!aa(n))if(c&8)Gr(e,t,n.child,r,o,i,!1),Oe(t,e,o,a,i);else if(c&32){let u=sa(n,r),l;for(;l=u();)Oe(t,e,o,l,i);Oe(t,e,o,a,i)}else c&16?rd(e,t,r,n,o,i):Oe(t,e,o,a,i);n=s?n.projectionNext:n.next}}function Wr(e,t,n,r,o,i){Gr(n,r,e.firstChild,t,o,i,!1)}function rd(e,t,n,r,o,i){let s=n[ce],c=s[me].projection[r.projection];if(Array.isArray(c))for(let u=0;u<c.length;u++){let l=c[u];Oe(t,e,o,l,i)}else{let u=c,l=s[$];el(r)&&(u.flags|=128),Gr(e,t,u,l,o,i,!0)}}function od(e,t,n,r,o){let i=n[er],s=ct(n);i!==s&&Oe(t,e,r,i,o);for(let a=Ie;a<n.length;a++){let c=n[a];Wr(c[E],c,e,t,r,i)}}function en(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(ct(i)),$e(i)&&id(i,r);let s=n.type;if(s&8)en(e,t,n.child,r);else if(s&32){let a=sa(n,t),c;for(;c=a();)r.push(c)}else if(s&16){let a=nd(t,n);if(Array.isArray(a))r.push(...a);else{let c=Ve(t[ce]);en(c[E],c,a,r,!0)}}n=o?n.projectionNext:n.next}return r}function id(e,t){for(let n=Ie;n<e.length;n++){let r=e[n],o=r[E].firstChild;o!==null&&en(r[E],r,o,t)}e[er]!==e[ge]&&t.push(e[er])}var la=[];function sd(e){return e[O]??ad(e)}function ad(e){let t=la.pop()??Object.create(ud);return t.lView=e,t}function cd(e){e.lView[O]!==e&&(e.lView=null,la.push(e))}var ud=G(z({},yt),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{dn(e.lView)},consumerOnSignalRead(){this.lView[O]=this}});function ld(e){let t=e[O]??Object.create(dd);return t.lView=e,t}var dd=G(z({},yt),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=Ve(e.lView);for(;t&&!da(t[E]);)t=Ve(t);t&&Or(t)},consumerOnSignalRead(){this.lView[O]=this}});function da(e){return e.type!==2}function fa(e){if(e[qt]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[qt])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[h]&8192)}}var fd=100;function pa(e,t=!0,n=0){let o=e[se].rendererFactory,i=!1;i||o.begin?.();try{pd(e,n)}catch(s){throw t&&Hl(e,s),s}finally{i||o.end?.()}}function pd(e,t){let n=ss();try{fi(!0),mr(e,t);let r=0;for(;ln(e);){if(r===fd)throw new y(103,!1);r++,mr(e,1)}}finally{fi(n)}}function hd(e,t,n,r){if(at(t))return;let o=t[h],i=!1,s=!1;kr(t);let a=!0,c=null,u=null;i||(da(e)?(u=sd(t),c=_n(u)):po()===null?(a=!1,u=ld(t),c=_n(u)):t[O]&&(Sn(t[O]),t[O]=null));try{ts(t),gu(e.bindingStartIndex),n!==null&&na(e,t,n,2,r);let l=(o&3)===3;if(!i)if(l){let d=e.preOrderCheckHooks;d!==null&&Bt(t,d,null)}else{let d=e.preOrderHooks;d!==null&&Ht(t,d,0,null),Un(t,0)}if(s||gd(t),fa(t),ha(t,0),e.contentQueries!==null&&zs(e,t),!i)if(l){let d=e.contentCheckHooks;d!==null&&Bt(t,d)}else{let d=e.contentHooks;d!==null&&Ht(t,d,1),Un(t,1)}yd(e,t);let f=e.components;f!==null&&ma(t,f,0);let p=e.viewQuery;if(p!==null&&hr(2,p,r),!i)if(l){let d=e.viewCheckHooks;d!==null&&Bt(t,d)}else{let d=e.viewHooks;d!==null&&Ht(t,d,2),Un(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[$n]){for(let d of t[$n])d();t[$n]=null}i||(t[h]&=-73)}catch(l){throw i||dn(t),l}finally{u!==null&&(yo(u,c),a&&cd(u)),Pr()}}function ha(e,t){for(let n=Ls(e);n!==null;n=js(n))for(let r=Ie;r<n.length;r++){let o=n[r];ga(o,t)}}function gd(e){for(let t=Ls(e);t!==null;t=js(t)){if(!(t[h]&2))continue;let n=t[Zt];for(let r=0;r<n.length;r++){let o=n[r];Or(o)}}}function md(e,t,n){let r=je(t,e);ga(r,n)}function ga(e,t){Rr(e)&&mr(e,t)}function mr(e,t){let r=e[E],o=e[h],i=e[O],s=!!(t===0&&o&16);if(s||=!!(o&64&&t===0),s||=!!(o&1024),s||=!!(i?.dirty&&Tn(i)),s||=!1,i&&(i.dirty=!1),e[h]&=-9217,s)hd(r,e,r.template,e[te]);else if(o&8192){fa(e),ha(e,1);let a=r.components;a!==null&&ma(e,a,1)}}function ma(e,t,n){for(let r=0;r<t.length;r++)md(e,t[r],n)}function yd(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)be(~o);else{let i=o,s=n[++r],a=n[++r];yu(s,i);let c=t[i];Z(24,c),a(2,c),Z(25,c)}}}finally{be(-1)}}function ya(e,t){let n=ss()?64:1088;for(e[se].changeDetectionScheduler?.notify(t);e;){e[h]|=n;let r=Ve(e);if(Yt(e)&&!r)return e;e=r}return null}function vd(e,t){if(e.length<=Ie)return;let n=Ie+t,r=e[n];if(r){let o=r[Wt];o!==null&&o!==e&&zr(o,r),t>0&&(e[n-1][oe]=r[oe]);let i=Vi(e,Ie+t);Wl(r[E],r);let s=i[Ar];s!==null&&s.detachView(i[E]),r[$]=null,r[oe]=null,r[h]&=-129}return r}function Dd(e,t){let n=e[Zt],r=t[$];if(we(r))e[h]|=2;else{let o=r[$][ce];t[ce]!==o&&(e[h]|=2)}n===null?e[Zt]=[t]:n.push(t)}var yr=class{_lView;_cdRefInjectingView;notifyErrorHandler;_appRef=null;_attachedToViewContainer=!1;get rootNodes(){let t=this._lView,n=t[E];return en(n,t,n.firstChild,[])}constructor(t,n,r=!0){this._lView=t,this._cdRefInjectingView=n,this.notifyErrorHandler=r}get context(){return this._lView[te]}get dirty(){return!!(this._lView[h]&9280)||!!this._lView[O]?.dirty}set context(t){this._lView[te]=t}get destroyed(){return at(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[$];if($e(t)){let n=t[Kc],r=n?n.indexOf(this):-1;r>-1&&(vd(t,r),Vi(n,r))}this._attachedToViewContainer=!1}Zl(this._lView[E],this._lView)}onDestroy(t){ns(this._lView,t)}markForCheck(){ya(this._cdRefInjectingView||this._lView,4)}markForRefresh(){Or(this._cdRefInjectingView||this._lView)}detach(){this._lView[h]&=-129}reattach(){di(this._lView),this._lView[h]|=128}detectChanges(){this._lView[h]|=1024,pa(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new y(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=Yt(this._lView),n=this._lView[Wt];n!==null&&!t&&zr(n,this._lView),ca(this._lView[E],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new y(902,!1);this._appRef=t;let n=Yt(this._lView),r=this._lView[Wt];r!==null&&!n&&Dd(r,this._lView),di(this._lView)}};function va(e,t,n,r,o){let i=e.data[t];if(i===null)i=Ed(e,t,n,r,o),mu()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=pu();i.injectorIndex=s===null?-1:s.injectorIndex}return fn(i,!0),i}function Ed(e,t,n,r,o){let i=os(),s=is(),a=s?i:i&&i.parent,c=e.data[t]=wd(e,a,n,t,r,o);return Id(e,c,i,s),c}function Id(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 wd(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return lu()&&(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:void 0,inputs:null,outputs: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 Mm=new RegExp(`^(\\d+)*(${al}|${sl})*(.*)`);var vr=class{},tn=class{},Dr=class{resolveComponentFactory(t){throw Error(`No component factory found for ${H(t)}.`)}},pe=class{static NULL=new Dr},Be=class{};var Cd=(()=>{class e{static \u0275prov=S({token:e,providedIn:"root",factory:()=>null})}return e})();function Ti(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=ei(o,a);else if(i==2){let c=a,u=t[++s];r=ei(r,c+": "+u+";")}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o}function qr(e,t=g.Default){let n=le();if(n===null)return C(e,t);let r=ut();return Ms(r,n,B(e),t)}function bd(e,t,n,r,o){let i=r===null?null:{"":-1},s=o(e,n);if(s!==null){let[a,c]=_d(e,n,s);Sd(e,t,n,a,i,c)}i!==null&&r!==null&&Md(n,r,i)}function Md(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 y(-301,!1);r.push(t[o],i)}}function _d(e,t,n){let r=[],o=null;for(let i of n)i.findHostDirectiveDefs!==null&&(o??=new Map,i.findHostDirectiveDefs(i,r,o)),Ue(i)&&(r.push(i),Td(e,t,r.length-1));return un(t)?r.push(...n.slice(1)):r.push(...n),[r,o]}function Td(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function Sd(e,t,n,r,o,i){for(let u=0;u<r.length;u++)Pu(Es(n,t),e,r[u].type);kd(n,e.data.length,r.length);for(let u=0;u<r.length;u++){let l=r[u];l.providersResolver&&l.providersResolver(l)}let s=!1,a=!1,c=ea(e,t,r.length,null);for(let u=0;u<r.length;u++){let l=r[u];n.mergedAttrs=ys(n.mergedAttrs,l.hostAttrs),Ad(e,n,t,c,l),Fd(c,l,o),l.contentQueries!==null&&(n.flags|=4),(l.hostBindings!==null||l.hostAttrs!==null||l.hostVars!==0)&&(n.flags|=64);let f=l.type.prototype;!s&&(f.ngOnChanges||f.ngOnInit||f.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),s=!0),!a&&(f.ngOnChanges||f.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),a=!0),c++}Nd(e,n,i)}function Nd(e,t,n){let r=t.directiveStart,o=t.directiveEnd,i=e.data,s=t.attrs,a=[],c=null,u=null;for(let l=r;l<o;l++){let f=i[l],p=n?n.get(f):null,d=p?p.inputs:null,M=p?p.outputs:null;c=Si(0,f.inputs,l,c,d),u=Si(1,f.outputs,l,u,M);let _=c!==null&&s!==null&&!Ur(t)?xd(c,l,s):null;a.push(_)}c!==null&&(c.hasOwnProperty("class")&&(t.flags|=8),c.hasOwnProperty("style")&&(t.flags|=16)),t.initialInputs=a,t.inputs=c,t.outputs=u}function Si(e,t,n,r,o){for(let i in t){if(!t.hasOwnProperty(i))continue;let s=t[i];if(s===void 0)continue;r??={};let a=i;if(o!==null){if(!o.hasOwnProperty(i))continue;a=o[i]}e===0?Ni(r,n,a,i):Ni(r,n,a,s)}return r}function Ni(e,t,n,r){e.hasOwnProperty(n)?e[n].push(t,r):e[n]=[t,r]}function xd(e,t,n){let r=null,o=0;for(;o<n.length;){let i=n[o];if(i===0){o+=4;continue}else if(i===5){o+=2;continue}if(typeof i=="number")break;if(e.hasOwnProperty(i)){let s=e[i];for(let a=0;a<s.length;a+=2)if(s[a]===t){r??=[],r.push(s[a+1],n[o+1]);break}}o+=2}return r}function Ad(e,t,n,r,o){e.data[r]=o;let i=o.factory||(o.factory=et(o.type,!0)),s=new it(i,Ue(o),qr);e.blueprint[r]=s,n[r]=s,Rd(e,t,r,ea(e,n,o.hostVars,qs),o)}function Rd(e,t,n,r,o){let i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;Od(s)!=a&&s.push(a),s.push(n,r,i)}}function Od(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function Fd(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;Ue(t)&&(n[""]=e)}}function kd(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function Da(e,t,n,r,o,i,s,a){let c=t.consts,u=li(c,s),l=va(t,e,2,r,u);return i&&bd(t,n,l,li(c,a),o),l.mergedAttrs=ys(l.mergedAttrs,l.attrs),l.attrs!==null&&Ti(l,l.attrs,!1),l.mergedAttrs!==null&&Ti(l,l.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,l),l}function Ea(e,t){Cu(e,t),Ki(t)&&e.queries.elementEnd(t)}var Er=class extends pe{ngModule;constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){let n=sn(t);return new Ir(n,this.ngModule)}};function Pd(e){return Object.keys(e).map(t=>{let[n,r,o]=e[t],i={propName:n,templateName:t,isSignal:(r&vn.SignalBased)!==0};return o&&(i.transform=o),i})}function Ld(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function jd(e,t,n){let r=t instanceof Ce?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new or(n,r):n}function Vd(e){let t=e.get(Be,null);if(t===null)throw new y(407,!1);let n=e.get(Cd,null),r=e.get(de,null);return{rendererFactory:t,sanitizer:n,changeDetectionScheduler:r}}function Bd(e,t){let n=(e.selectors[0][0]||"div").toLowerCase();return Zs(t,n,n==="svg"?ru:n==="math"?ou:null)}var Ir=class extends tn{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;get inputs(){return Pd(this.componentDef.inputs)}get outputs(){return Ld(this.componentDef.outputs)}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=El(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!n}create(t,n,r,o){let i=w(null);try{let s=this.componentDef,a=r?["ng-version","19.1.7"]:Il(this.componentDef.selectors[0]),c=Ks(0,null,null,1,0,null,null,null,null,[a],null),u=jd(s,o||this.ngModule,t),l=Vd(u),f=l.rendererFactory.createRenderer(null,s),p=r?Ol(f,r,s.encapsulation,u):Bd(s,f),d=Js(null,c,null,512|Xs(s),null,null,l,f,u,null,Us(p,u,!0));d[ue]=p,kr(d);let M=null;try{let _=Da(ue,c,d,"#host",()=>[this.componentDef],!0,0);p&&(Qs(f,p,_),lt(p,d)),ra(c,d,_),Gs(c,_,d),Ea(c,_),n!==void 0&&Hd(_,this.ngContentSelectors,n),M=je(_.index,d),d[te]=M[te],ia(c,d,null)}catch(_){throw M!==null&&fr(M),fr(d),_}finally{Pr()}return new wr(this.componentType,d)}finally{w(i)}}},wr=class extends vr{_rootLView;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,n){super(),this._rootLView=n,this._tNode=iu(n[E],ue),this.location=Os(this._tNode,n),this.instance=je(this._tNode.index,n)[te],this.hostView=this.changeDetectorRef=new yr(n,void 0,!1),this.componentType=t}setInput(t,n){let r=this._tNode.inputs,o;if(r!==null&&(o=r[t])){if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;let i=this._rootLView;oa(i[E],i,o,t,n),this.previousInputValues.set(t,n);let s=je(this._tNode.index,i);ya(s,1)}}get injector(){return new Qt(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}};function Hd(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 He=class{};var nn=class extends He{injector;componentFactoryResolver=new Er(this);instance=null;constructor(t){super();let n=new nt([...t.providers,{provide:He,useValue:this},{provide:pe,useValue:this.componentFactoryResolver}],t.parent||xr(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function $d(e,t,n=null){return new nn({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var Ud=(()=>{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=Gi(!1,n.type),o=r.length>0?$d([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=S({token:e,providedIn:"environment",factory:()=>new e(C(Ce))})}return e})();function Ia(e){return yc(()=>{let t=Zd(e),n=G(z({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===ks.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(Ud).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||K.Emulated,styles:e.styles||Le,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&mn("NgStandalone"),Yd(n);let r=e.dependencies;return n.directiveDefs=xi(r,!1),n.pipeDefs=xi(r,!0),n.id=Qd(n),n})}function zd(e){return sn(e)||$i(e)}function Gd(e){return e!==null}function Wd(e,t){if(e==null)return Pe;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=vn.None,c=null),n[i]=[r,a,c],t[i]=s}return n}function qd(e){if(e==null)return Pe;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function Zd(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||Pe,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||Le,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Wd(e.inputs,t),outputs:qd(e.outputs),debugInfo:null}}function Yd(e){e.features?.forEach(t=>t(e))}function xi(e,t){if(!e)return null;let n=t?Ui:zd;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(Gd)}function Qd(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}var wa=new D("");function Zr(e){return!!e&&typeof e.then=="function"}function Ca(e){return!!e&&typeof e.subscribe=="function"}var Kd=new D("");var ba=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=v(Kd,{optional:!0})??[];injector=v(Q);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=Zi(this.injector,o);if(Zr(i))n.push(i);else if(Ca(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=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Jd=(()=>{class e{static \u0275prov=S({token:e,providedIn:"root",factory:()=>new Cr})}return e})(),Cr=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()}},Xd=new D("");function ef(){Co(()=>{throw new y(600,!1)})}function tf(e){return e.isBoundToModule}var nf=10;var he=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=v(Ku);afterRenderManager=v(ul);zonelessEnabled=v(pn);rootEffectScheduler=v(Jd);dirtyFlags=0;deferredDirtyFlags=0;tracingSnapshot=null;externalTestViews=new Set;afterTick=new ee;get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];isStable=v(hn).hasPendingTasks.pipe(Ye(n=>!n));constructor(){v(yn,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=v(Ce);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){let o=n instanceof tn;if(!this._injector.get(ba).done){let p=!o&&jc(n),d=!1;throw new y(405,d)}let s;o?s=n:s=this._injector.get(pe).resolveComponentFactory(n),this.componentTypes.push(s.componentType);let a=tf(s)?void 0:this._injector.get(He),c=r||s.selector,u=s.create(Q.NULL,[],c,a),l=u.location.nativeElement,f=u.injector.get(wa,null);return f?.registerApplication(l),u.onDestroy(()=>{this.detachView(u.hostView),$t(this.components,u),f?.unregisterApplication(l)}),this._loadComponent(u),u}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick=()=>{if(this.tracingSnapshot!==null){let r=this.tracingSnapshot;this.tracingSnapshot=null,r.run($s.CHANGE_DETECTION,this._tick),r.dispose();return}if(this._runningTick)throw new y(101,!1);let n=w(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,w(n),this.afterTick.next()}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(Be,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let n=0;for(;this.dirtyFlags!==0&&n++<nf;)this.synchronizeOnce()}synchronizeOnce(){if(this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0,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)rf(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})=>ln(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;$t(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(Xd,[]).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),()=>$t(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new y(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=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function $t(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function rf(e,t,n,r){if(!n&&!ln(e))return;pa(e,t,n&&!r?0:1)}function Ai(e,t,n,r,o){let i=t.inputs,s=o?"class":"style";oa(e,n,i[s],s,r)}function F(e,t,n,r){let o=le(),i=Fr(),s=ue+e,a=o[ae],c=i.firstCreatePass?Da(s,i,o,t,Vl,rs(),n,r):i.data[s],u=of(i,o,c,a,t,e);o[s]=u;let l=Jc(c);return fn(c,!0),Qs(a,u,c),!aa(c)&&hs()&&ua(i,o,u,c),au()===0&<(u,o),cu(),l&&(Al(i,o,c),Gs(i,c,o)),r!==null&&Rl(o,c),F}function k(){let e=ut();is()?hu():(e=e.parent,fn(e,!1));let t=e;du(t)&&fu(),uu();let n=Fr();return n.firstCreatePass&&Ea(n,t),t.classesWithoutHost!=null&&_u(t)&&Ai(n,t,le(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&Tu(t)&&Ai(n,t,le(),t.stylesWithoutHost,!1),k}function _e(e,t,n,r){return F(e,t,n,r),k(),_e}var of=(e,t,n,r,o,i)=>(gs(!0),Zs(r,o,Iu()));var rn="en-US";var sf=rn;function af(e){typeof e=="string"&&(sf=e.toLowerCase().replace(/_/g,"-"))}function J(e,t=""){let n=le(),r=Fr(),o=e+ue,i=r.firstCreatePass?va(r,o,1,t,null):r.data[o],s=cf(r,n,i,t,e);n[o]=s,hs()&&ua(r,n,s,i),fn(i,!1)}var cf=(e,t,n,r,o)=>(gs(!0),wl(t[ae],r));var uf=(()=>{class e{zone=v(x);changeDetectionScheduler=v(de);applicationRef=v(he);_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=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function lf({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new x(G(z({},df()),{scheduleInRootZone:n})),[{provide:x,useFactory:e},{provide:tt,multi:!0,useFactory:()=>{let r=v(uf,{optional:!0});return()=>r.initialize()}},{provide:tt,multi:!0,useFactory:()=>{let r=v(ff);return()=>{r.initialize()}}},t===!0?{provide:xs,useValue:!0}:[],{provide:Lr,useValue:n??Ss}]}function df(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var ff=(()=>{class e{subscription=new A;initialized=!1;zone=v(x);pendingTasks=v(hn);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(()=>{x.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{x.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Ma=(()=>{class e{appRef=v(he);taskService=v(hn);ngZone=v(x);zonelessEnabled=v(pn);tracing=v(yn,{optional:!0});disableScheduling=v(xs,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new A;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Jt):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(v(Lr,{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 Xt||!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 8:{this.appRef.deferredDirtyFlags|=8;break}case 6:{this.appRef.dirtyFlags|=2,r=!0;break}case 13:{this.appRef.dirtyFlags|=16,r=!0;break}case 14:{this.appRef.dirtyFlags|=2,r=!0;break}case 12:{r=!0;break}case 10:case 9:case 7:case 11:default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(r))return;let o=this.useMicrotaskScheduler?Di:As;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(Jt+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,Di(()=>{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=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function _a(){return mn("NgZoneless"),zi([{provide:de,useExisting:Ma},{provide:x,useClass:Xt},{provide:pn,useValue:!0},{provide:Lr,useValue:!1},[]])}function pf(){return typeof $localize<"u"&&$localize.locale||rn}var Yr=new D("",{providedIn:"root",factory:()=>v(Yr,g.Optional|g.SkipSelf)||pf()});var br=new D(""),hf=new D("");function Qe(e){return!e.moduleRef}function gf(e){let t=Qe(e)?e.r3Injector:e.moduleRef.injector,n=t.get(x);return n.run(()=>{Qe(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(fe,null),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:i=>{r.handleError(i)}})}),Qe(e)){let i=()=>t.destroy(),s=e.platformInjector.get(br);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(br);s.add(i),e.moduleRef.onDestroy(()=>{$t(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return yf(r,n,()=>{let i=t.get(ba);return i.runInitializers(),i.donePromise.then(()=>{let s=t.get(Yr,rn);if(af(s||rn),!t.get(hf,!0))return Qe(e)?t.get(he):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(Qe(e)){let c=t.get(he);return e.rootComponent!==void 0&&c.bootstrap(e.rootComponent),c}else return mf(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}function mf(e,t){let n=e.injector.get(he);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(e.instance.ngDoBootstrap)e.instance.ngDoBootstrap(n);else throw new y(-403,!1);t.push(e)}function yf(e,t,n){try{let r=n();return Zr(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}var Ut=null;function vf(e=[],t){return Q.create({name:t,providers:[{provide:an,useValue:"platform"},{provide:br,useValue:new Set([()=>Ut=null])},...e]})}function Df(e=[]){if(Ut)return Ut;let t=vf(e);return Ut=t,ef(),Ef(t),t}function Ef(e){let t=e.get(Hr,null);Zi(e,()=>{t?.forEach(n=>n())})}function Ta(e){try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,o=Df(r),i=[lf({}),{provide:de,useExisting:Ma},...n||[]],s=new nn({providers:i,parent:o,debugName:"",runEnvironmentInitializers:!1});return gf({r3Injector:s.injector,platformInjector:o,rootComponent:t})}catch(t){return Promise.reject(t)}}var Ri=class{[X];constructor(t){this[X]=t}destroy(){this[X].destroy()}};var If={schedule(e,t){let n=setTimeout(e,t);return()=>clearTimeout(n)}};function wf(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function Cf(e){return!!e&&e.nodeType===Node.ELEMENT_NODE}var Qr;function bf(e,t){if(!Qr){let n=Element.prototype;Qr=n.matches||n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}return e.nodeType===Node.ELEMENT_NODE?Qr.call(e,t):!1}function Mf(e){let t={};return e.forEach(({propName:n,templateName:r,transform:o})=>{t[wf(r)]=[n,o]}),t}function _f(e,t){return t.get(pe).resolveComponentFactory(e).inputs}function Tf(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=Sf(a,t,o);c!==-1&&r[c].push(a)}return r}function Sf(e,t,n){let r=n;return Cf(e)&&t.some((o,i)=>o!=="*"&&bf(e,o)?(r=i,!0):!1),r}var Nf=10,Kr=class{componentFactory;inputMap=new Map;constructor(t,n){this.componentFactory=n.get(pe).resolveComponentFactory(t);for(let r of this.componentFactory.inputs)this.inputMap.set(r.propName,r.templateName)}create(t){return new Jr(this.componentFactory,t,this.inputMap)}},Jr=class{componentFactory;injector;inputMap;eventEmitters=new Ze(1);events=this.eventEmitters.pipe(Bn(t=>Vn(...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(x),this.appRef=this.injector.get(he),this.cdScheduler=n.get(de),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=If.schedule(()=>{this.componentRef!==null&&(this.componentRef.destroy(),this.componentRef=null)},Nf))})}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=Q.create({providers:[],parent:this.injector}),r=Tf(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 T(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()}},Xr=class extends HTMLElement{ngElementEventsSubscription=null};function xa(e,t){let n=_f(e,t.injector),r=t.strategyFactory||new Kr(e,t.injector),o=Mf(n);class i extends Xr{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[f,p]=o[a];this.ngElementStrategy.setInputValue(f,u,p)}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 Aa=null;function eo(){return Aa}function Ra(e){Aa??=e}var Dn=class{};var ye=new D("");function Oa(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 Fa="browser",Af="server";function to(e){return e===Af}var En=class{};var ro=class extends Dn{supportsDOMEvents=!0},oo=class e extends ro{static makeCurrent(){Ra(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=Rf();return n==null?null:Of(n)}resetBaseElement(){ft=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Oa(document.cookie,t)}},ft=null;function Rf(){return ft=ft||document.querySelector("base"),ft?ft.getAttribute("href"):null}function Of(e){return new URL(e,document.baseURI).pathname}var Ff=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||e)};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})(),io=new D(""),Ba=(()=>{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 y(5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(r){return new(r||e)(C(io),C(x))};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})(),wn=class{_doc;constructor(t){this._doc=t}manager},In="ng-app-id";function ka(e){for(let t of e)t.remove()}function Pa(e,t){let n=t.createElement("style");return n.textContent=e,n}function kf(e,t,n,r){let o=e.head?.querySelectorAll(`style[${In}="${t}"],link[${In}="${t}"]`);if(o)for(let i of o)i.removeAttribute(In),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 so(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var Ha=(()=>{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=to(i),kf(n,r,this.inline,this.external),this.hosts.add(n.head)}addStyles(n,r){for(let o of n)this.addUsage(o,this.inline,Pa);r?.forEach(o=>this.addUsage(o,this.external,so))}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&&(ka(o.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])ka(n);this.hosts.clear()}addHost(n){this.hosts.add(n);for(let[r,{elements:o}]of this.inline)o.push(this.addElement(n,Pa(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(n,so(r,this.doc)))}removeHost(n){this.hosts.delete(n)}addElement(n,r){return this.nonce&&r.setAttribute("nonce",this.nonce),this.isServer&&r.setAttribute(In,this.appId),n.appendChild(r)}static \u0275fac=function(r){return new(r||e)(C(ye),C(Br),C($r,8),C(dt))};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})(),no={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"},co=/%COMP%/g;var $a="%COMP%",Pf=`_nghost-${$a}`,Lf=`_ngcontent-${$a}`,jf=!0,Vf=new D("",{providedIn:"root",factory:()=>jf});function Bf(e){return Lf.replace(co,e)}function Hf(e){return Pf.replace(co,e)}function Ua(e,t){return t.map(n=>n.replace(co,e))}var La=(()=>{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=to(a),this.defaultRenderer=new pt(n,s,c,this.platformIsServer,this.tracingService)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===K.ShadowDom&&(r=G(z({},r),{encapsulation:K.Emulated}));let o=this.getOrCreateRenderer(n,r);return o instanceof Cn?o.applyToHost(n):o instanceof ht&&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,f=this.platformIsServer,p=this.tracingService;switch(r.encapsulation){case K.Emulated:i=new Cn(c,u,r,this.appId,l,s,a,f,p);break;case K.ShadowDom:return new ao(c,u,n,r,s,a,this.nonce,f,p);default:i=new ht(c,u,r,l,s,a,f,p);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)(C(Ba),C(Ha),C(Br),C(Vf),C(ye),C(dt),C(x),C($r),C(yn,8))};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})(),pt=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(no[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(ja(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(ja(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 y(-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=no[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let o=no[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&(Me.DashCase|Me.Important)?t.style.setProperty(n,r,o&Me.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&Me.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=eo().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 ja(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var ao=class extends pt{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=Ua(o.id,l);for(let p of l){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=p,this.shadowRoot.appendChild(d)}let f=o.getExternalStyles?.();if(f)for(let p of f){let d=so(p,i);a&&d.setAttribute("nonce",a),this.shadowRoot.appendChild(d)}}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)}},ht=class extends pt{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?Ua(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)}},Cn=class extends ht{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=Bf(l),this.hostAttr=Hf(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}},$f=(()=>{class e extends wn{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)(C(ye))};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})(),Va=["alt","control","meta","shift"],Uf={"\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"},zf={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},Gf=(()=>{class e extends wn{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(()=>eo().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."),Va.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=Uf[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"),Va.forEach(s=>{if(s!==o){let a=zf[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)(C(ye))};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})();function za(e){return Ta(Wf(e))}function Wf(e){return{appProviders:[...Kf,...e?.providers??[]],platformProviders:Qf}}function qf(){oo.makeCurrent()}function Zf(){return new fe}function Yf(){return Bs(document),document}var Qf=[{provide:dt,useValue:Fa},{provide:Hr,useValue:qf,multi:!0},{provide:ye,useFactory:Yf,deps:[]}];var Kf=[{provide:an,useValue:"root"},{provide:fe,useFactory:Zf,deps:[]},{provide:io,useClass:$f,multi:!0,deps:[ye]},{provide:io,useClass:Gf,multi:!0,deps:[ye]},La,Ha,Ba,{provide:Be,useExisting:La},{provide:En,useClass:Ff,deps:[]},[]];var Ga={providers:[_a()]};var bn=class e{constructor(t){this.elementRef=t;this.elementRef.nativeElement.update=this.update.bind(this)}_engagementTrigger=Fs(null);set engagementTrigger(t){this._engagementTrigger.set(t)}ngOnInit(){console.log("ngOnInit:35")}ngOnDestroy(){console.log("ngOnDestroy:38")}update(){}static \u0275fac=function(n){return new(n||e)(qr(gn))};static \u0275cmp=Ia({type:e,selectors:[["cooee-progressbar"]],inputs:{engagementTrigger:"engagementTrigger"},decls:34,vars:0,consts:[[1,"lc:font-medium","lc:text-center","lc:text-[12px]"],[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"],[1,"lc:bg-green-700","lc:h-full","lc:block!",2,"width","45%"],[1,"lc:relative","lc:flex","lc:flex-col","lc:items-center","lc:h-[75px]",2,"left","10%"],[1,"lc:flex","lc:flex-col","lc:items-center","lc:justify-between","lc:absolute","lc:h-full","lc:w-[100px]"],[1,""],["width","20","height","20","src","https://img.icons8.com/ios-filled/50/FFFFFF/free-shipping.png","alt","free-shipping",1,"milestone-icon","lc:bg-green-700"],[1,"lc:relative","lc:flex","lc:flex-col","lc:items-center","lc:h-[75px]",2,"left","35%"],[1,"lc:flex","lc:flex-col","lc:items-center","lc:justify-between","lc:absolute","lc:h-[75px]","lc:w-[100px]"],["width","20","height","20","src","https://img.icons8.com/ios-glyphs/30/FFFFFF/sale-price-tag.png","alt","sale-price-tag",1,"milestone-icon","lc:bg-green-700"],[1,"lc:relative","lc:flex","lc:flex-col","lc:items-center","lc:h-[75px]",2,"left","55%"],[1,"lc:relative","lc:flex","lc:flex-col","lc:items-center","lc:h-[75px]",2,"left","80%"]],template:function(n,r){n&1&&(F(0,"div",0),J(1,` Add \u20B9305 more to get FLAT 20% OFF
|
|
8
|
-
|
|
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&<(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 UE=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&<(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&<(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={name:"@letscooee/web-sdk",description:"Engage uniquely and boost conversions with AI-powered customer journeys driven by real-time intent",version:"9.1.1",scripts:{lint:"ng lint",integrity:"./scripts/validate-integrity.sh",prepack:"npm run build:production",clean:"rm -rf dist/",build:"tsc","build:main":"webpack","build:production":"./scripts/build-production.sh","update-changelog":"rm -rf dist && npm run build:production && node scripts/update-changelog.js --",start:'concurrently -n analytics,widget "npm run webpack_serve" "ng serve widget-sdk"',webpack_serve:"webpack serve",preversion:"git add CHANGELOG.md projects/core-lib/src/lib/constants.ts",version:"npm run build:production",postversion:"git push && git push --tags",test:"karma start --no-auto-watch","test:ci":"karma start --no-auto-watch --code-coverage=true"},repository:{type:"git",url:"git+https://github.com/letscooee/cooee-web-sdk.git"},keywords:["shopify","shopify-plus","shopify-cart","popups","progressbar","customer-engagement"],author:"Cooee <shoutout@letscooee.com> (https://www.letscooee.com/)",license:"MIT",bugs:{url:"https://github.com/letscooee/cooee-web-sdk/issues"},homepage:"https://github.com/letscooee/cooee-web-sdk#readme",devDependencies:{"@angular-devkit/build-angular":"^19.2.0","@angular-eslint/builder":"19.2.0","@angular-eslint/eslint-plugin":"19.2.0","@angular-eslint/eslint-plugin-template":"19.2.0","@angular-eslint/schematics":"19.2.0","@angular-eslint/template-parser":"19.2.0","@angular/cli":"^19.2.0","@angular/compiler-cli":"^19.2.0","@preact/signals":"^1.2.3","@types/canvas-confetti":"^1.9.0","@types/jasmine":"~5.1.0","@types/mustache":"^4.2.5","@types/ua-parser-js":"^0.7.36","@typescript-eslint/eslint-plugin":"7.11.0","@typescript-eslint/parser":"7.11.0","angular-eslint":"^19.2.0",eslint:"8.57.0","eslint-config-google":"^0.14.0","file-replace-loader":"^1.4.0","jasmine-core":"~5.5.0",karma:"~6.4.1","karma-chrome-launcher":"~3.2.0","karma-coverage":"~2.2.0","karma-jasmine":"~5.1.0","karma-jasmine-html-reporter":"~2.1.0","karma-junit-reporter":"^2.0.1","karma-webpack":"^5.0.0","ng-packagr":"^19.1.0","ts-loader":"^9.2.4","tsconfig-paths-webpack-plugin":"^4.2.0",typescript:"^5.7.2",webpack:"5.94.0","webpack-cli":"^4.7.2","webpack-dev-server":"^4.1.1"},dependencies:{"@angular/animations":"^19.2.0","@angular/common":"^19.2.0","@angular/compiler":"^19.2.0","@angular/core":"^19.2.0","@angular/elements":"^19.2.0","@angular/forms":"^19.2.0","@angular/platform-browser":"^19.2.0","@angular/platform-browser-dynamic":"^19.2.0","@angular/router":"^19.2.0","@letscooee/ts-common":"1.1.3","@letscooee/url-builder":"^0.0.5","@sentry/browser":"8.18.0","@tailwindcss/postcss":"^4.0.8",bson:"^4.6.5","canvas-confetti":"^1.9.3","crypto-browserify":"^3.12.0",detectincognitojs:"^1.3.5","fetch-retry":"^5.0.6","hex-rgb":"^5.0.0","hex-to-rgba":"^2.0.1",isbot:"^5.1.19","js-logger":"^1.6.1",localforage:"^1.10.0",mustache:"^4.2.0",postcss:"^8.5.3",preact:"^10.19.6",rxjs:"^7.8.0","stream-browserify":"^3.0.0",tailwindcss:"^4.0.8",tslib:"^2.3.0","ua-parser-js":"^1.0.32"}};var kt=class e{static SDK_VERSION=Ol.version;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=`
|
|
8
|
+
display: inline-block;
|
|
9
|
+
font-size: 14px;
|
|
10
|
+
background: linear-gradient(90deg, #d52dc8 25%, #2179e2 82%);
|
|
11
|
+
color: white;
|
|
12
|
+
padding: 4px;
|
|
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+=`
|
|
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={'"':"""};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={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};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,Nw=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.amount,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");var gy=await Nl(Pl),my=gl(Yr,{injector:gy.injector});customElements.define("cooee-progressbar",my);
|