@letscooee/web-sdk 9.1.1 → 9.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,7 +4,7 @@ ${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(`
4
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
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
6
  `&&e.charAt(1)==zd?e.slice(2):e;let o=de(t);if(Array.isArray(t))o=t.map(de).join(" -> ");else if(typeof t=="object"){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+(typeof a=="string"?JSON.stringify(a):de(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(Gd,`
7
- `)}`}function bt(e,t){let n=e.hasOwnProperty(Sa);return n?e[Sa]:null}function Ei(e,t){e.forEach(n=>Array.isArray(n)?Ei(n,t):t(n))}function Kd(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function fc(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Jd(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(o===1)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;){let i=o-2;e[o]=e[i],o--}e[t]=n,e[t+1]=r}}function Xd(e,t,n){let r=sn(e,t);return r>=0?e[r|1]=n:(r=~r,Jd(e,r,t,n)),r}function yo(e,t){let n=sn(e,t);if(n>=0)return e[n|1]}function sn(e,t){return ef(e,t,1)}function ef(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<<n];if(t===s)return i<<n;s>t?o=i:r=i+1}return~(o<<n)}var Mt={},rt=[],Kt=new k(""),pc=new k("",-1),hc=new k(""),Yn=class{get(t,n=Qt){if(n===Qt){let r=new Error(`NullInjectorError: No provider for ${de(t)}!`);throw r.name="NullInjectorError",r}return n}};function pr(e){return e[kd]||null}function gc(e){return e[Ld]||null}function mc(e){return e[Vd]||null}function tf(e){let t=pr(e)||gc(e)||mc(e);return t!==null&&t.standalone}function yc(e){return{\u0275providers:e}}function nf(...e){return{\u0275providers:vc(!0,e),\u0275fromNgModule:!0}}function vc(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return Ei(t,s=>{let a=s;xo(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&Dc(o,i),n}function Dc(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];Ii(o,i=>{t(i,r)})}}function xo(e,t,n,r){if(e=De(e),!e)return!1;let o=null,i=Ma(e),s=!i&&pr(e);if(!i&&!s){let c=e.ngModule;if(i=Ma(c),i)o=c;else return!1}else{if(s&&!s.standalone)return!1;o=e}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let u of c)xo(u,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let u;try{Ei(i.imports,l=>{xo(l,t,n,r)&&(u||=[],u.push(l))})}finally{}u!==void 0&&Dc(u,t)}if(!a){let u=bt(o)||(()=>new o);t({provide:o,useFactory:u,deps:rt},o),t({provide:hc,useValue:o,multi:!0},o),t({provide:Kt,useValue:()=>L(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let u=e;Ii(c,l=>{t(l,u)})}}else return!1;return o!==e&&e.providers!==void 0}function Ii(e,t){for(let n of e)uc(n)&&(n=n.\u0275providers),Array.isArray(n)?Ii(n,t):t(n)}var rf=B({provide:String,useValue:B});function Ec(e){return e!==null&&typeof e=="object"&&rf in e}function of(e){return!!(e&&e.useExisting)}function sf(e){return!!(e&&e.useFactory)}function Ao(e){return typeof e=="function"}var hr=new k(""),$n={},af={},vo;function wi(){return vo===void 0&&(vo=new Yn),vo}var ot=class{},Jt=class extends ot{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,Oo(t,s=>this.processProvider(s)),this.records.set(pc,Et(void 0,this)),o.has("environment")&&this.records.set(ot,Et(void 0,this));let i=this.records.get(hr);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(hc,rt,T.Self))}destroy(){qt(this),this._destroyed=!0;let t=R(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),R(t)}}onDestroy(t){return qt(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){qt(this);let n=je(this),r=re(void 0),o;try{return t()}finally{je(n),re(r)}}get(t,n=Qt,r=T.Default){if(qt(this),t.hasOwnProperty(Na))return t[Na](this);r=fr(r);let o,i=je(this),s=re(void 0);try{if(!(r&T.SkipSelf)){let c=this.records.get(t);if(c===void 0){let u=pf(t)&&yi(t);u&&this.injectableDefInScope(u)?c=Et(Ro(t),$n):c=null,this.records.set(t,c)}if(c!=null)return this.hydrate(t,c)}let a=r&T.Self?wi():this.parent;return n=r&T.Optional&&n===Qt?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[Zn]=a[Zn]||[]).unshift(de(t)),i)throw a;return Yd(a,t,"R3InjectorError",this.source)}else throw a}finally{re(s),je(i)}}resolveInjectorInitializers(){let t=R(null),n=je(this),r=re(void 0),o;try{let i=this.get(Kt,rt,T.Self);for(let s of i)s()}finally{je(n),re(r),R(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(de(r));return`R3Injector[${t.join(", ")}]`}processProvider(t){t=De(t);let n=Ao(t)?t:De(t&&t.provide),r=uf(t);if(!Ao(t)&&t.multi===!0){let o=this.records.get(n);o||(o=Et(void 0,$n,!0),o.factory=()=>No(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){let r=R(null);try{return n.value===$n&&(n.value=af,n.value=n.factory()),typeof n.value=="object"&&n.value&&ff(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{R(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=De(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function Ro(e){let t=yi(e),n=t!==null?t.factory:bt(e);if(n!==null)return n;if(e instanceof k)throw new P(204,!1);if(e instanceof Function)return cf(e);throw new P(204,!1)}function cf(e){if(e.length>0)throw new P(204,!1);let n=Pd(e);return n!==null?()=>n.factory(e):()=>new e}function uf(e){if(Ec(e))return Et(void 0,e.useValue);{let t=lf(e);return Et(t,$n)}}function lf(e,t,n){let r;if(Ao(e)){let o=De(e);return bt(o)||Ro(o)}else if(Ec(e))r=()=>De(e.useValue);else if(sf(e))r=()=>e.useFactory(...No(e.deps||[]));else if(of(e))r=()=>L(De(e.useExisting));else{let o=De(e&&(e.useClass||e.provide));if(df(e))r=()=>new o(...No(e.deps));else return bt(o)||Ro(o)}return r}function qt(e){if(e.destroyed)throw new P(205,!1)}function Et(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function df(e){return!!e.deps}function ff(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function pf(e){return typeof e=="function"||typeof e=="object"&&e instanceof k}function Oo(e,t){for(let n of e)Array.isArray(n)?Oo(n,t):n&&uc(n)?Oo(n.\u0275providers,t):t(n)}function Ic(e,t){e instanceof Jt&&qt(e);let n,r=je(e),o=re(void 0);try{return t()}finally{je(r),re(o)}}function hf(){return lc()!==void 0||Wd()!=null}var Ve=0,N=1,I=2,fe=3,Ee=4,xe=5,Xt=6,Aa=7,K=8,en=9,ke=10,ae=11,tn=12,Ra=13,Ot=14,Te=15,Tt=16,It=17,St=18,gr=19,wc=20,He=21,Do=22,Qn=23,se=24,Eo=25,J=26,Cc=1;var nn=7,gf=8,Kn=9,oe=10;function nt(e){return Array.isArray(e)&&typeof e[Cc]=="object"}function ut(e){return Array.isArray(e)&&e[Cc]===!0}function _c(e){return(e.flags&4)!==0}function mr(e){return e.componentOffset>-1}function bc(e){return(e.flags&1)===1}function lt(e){return!!e.template}function Jn(e){return(e[I]&512)!==0}function an(e){return(e[I]&256)===256}var Po=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function Mc(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}function mf(e){return e.type.prototype.ngOnChanges&&(e.setInput=vf),yf}function yf(){let e=Sc(this),t=e?.current;if(t){let n=e.previous;if(n===Mt)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function vf(e,t,n,r,o){let i=this.declaredInputs[r],s=Sc(e)||Df(e,{previous:Mt,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[i];a[i]=new Po(u&&u.currentValue,n,c===Mt),Mc(e,t,o,n)}var Tc="__ngSimpleChanges__";function Sc(e){return e[Tc]||null}function Df(e,t){return e[Tc]=t}var Oa=null;var H=function(e,t=null,n){Oa?.(e,t,n)},Ef="svg",If="math";function Ue(e){for(;Array.isArray(e);)e=e[Ve];return e}function Nc(e,t){return Ue(t[e])}function dt(e,t){return Ue(t[e.index])}function Ci(e,t){return e.data[t]}function _i(e,t){return e[t]}function it(e,t){let n=t[e];return nt(n)?n:n[Ve]}function bi(e){return(e[I]&128)===128}function Nt(e,t){return t==null?null:e[t]}function xc(e){e[It]=0}function Mi(e){e[I]&1024||(e[I]|=1024,bi(e)&&vr(e))}function wf(e,t){for(;e>0;)t=t[Ot],e--;return t}function yr(e){return!!(e[I]&9216||e[se]?.dirty)}function Fo(e){e[ke].changeDetectionScheduler?.notify(8),e[I]&64&&(e[I]|=1024),yr(e)&&vr(e)}function vr(e){e[ke].changeDetectionScheduler?.notify(0);let t=st(e);for(;t!==null&&!(t[I]&8192||(t[I]|=8192,!bi(t)));)t=st(t)}function Ac(e,t){if(an(e))throw new P(911,!1);e[He]===null&&(e[He]=[]),e[He].push(t)}function Cf(e,t){if(e[He]===null)return;let n=e[He].indexOf(t);n!==-1&&e[He].splice(n,1)}function st(e){let t=e[fe];return ut(t)?t[fe]:t}var S={lFrame:Bc(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var ko=!1;function _f(){return S.lFrame.elementDepthCount}function bf(){S.lFrame.elementDepthCount++}function Mf(){S.lFrame.elementDepthCount--}function Rc(){return S.bindingsEnabled}function Tf(){return S.skipHydrationRootTNode!==null}function Sf(e){return S.skipHydrationRootTNode===e}function Nf(){S.skipHydrationRootTNode=null}function U(){return S.lFrame.lView}function Ie(){return S.lFrame.tView}function cn(){let e=Oc();for(;e!==null&&e.type===64;)e=e.parent;return e}function Oc(){return S.lFrame.currentTNode}function xf(){let e=S.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Pt(e,t){let n=S.lFrame;n.currentTNode=e,n.isParent=t}function Pc(){return S.lFrame.isParent}function Af(){S.lFrame.isParent=!1}function Rf(){return S.lFrame.contextLView}function Fc(){return ko}function Pa(e){let t=ko;return ko=e,t}function kc(){let e=S.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Of(e){return S.lFrame.bindingIndex=e}function Dr(){return S.lFrame.bindingIndex++}function Pf(e){let t=S.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Ff(){return S.lFrame.inI18n}function kf(e,t){let n=S.lFrame;n.bindingIndex=n.bindingRootIndex=e,Lo(t)}function Lf(){return S.lFrame.currentDirectiveIndex}function Lo(e){S.lFrame.currentDirectiveIndex=e}function Vf(e){let t=S.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function Lc(e){S.lFrame.currentQueryIndex=e}function jf(e){let t=e[N];return t.type===2?t.declTNode:t.type===1?e[xe]:null}function Vc(e,t,n){if(n&T.SkipSelf){let o=t,i=e;for(;o=o.parent,o===null&&!(n&T.Host);)if(o=jf(i),o===null||(i=i[Ot],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=S.lFrame=jc();return r.currentTNode=t,r.lView=e,!0}function Ti(e){let t=jc(),n=e[N];S.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function jc(){let e=S.lFrame,t=e===null?null:e.child;return t===null?Bc(e):t}function Bc(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function Hc(){let e=S.lFrame;return S.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Uc=Hc;function Si(){let e=Hc();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Bf(e){return(S.lFrame.contextLView=wf(e,S.lFrame.contextLView))[K]}function Ze(){return S.lFrame.selectedIndex}function at(e){S.lFrame.selectedIndex=e}function Hf(){let e=S.lFrame;return Ci(e.tView,e.selectedIndex)}function Uf(){return S.lFrame.currentNamespace}var $c=!0;function Ni(){return $c}function xi(e){$c=e}function $f(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=mf(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}function Gc(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){let i=e.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:c,ngAfterViewChecked:u,ngOnDestroy:l}=i;s&&(e.contentHooks??=[]).push(-n,s),a&&((e.contentHooks??=[]).push(n,a),(e.contentCheckHooks??=[]).push(n,a)),c&&(e.viewHooks??=[]).push(-n,c),u&&((e.viewHooks??=[]).push(n,u),(e.viewCheckHooks??=[]).push(n,u)),l!=null&&(e.destroyHooks??=[]).push(n,l)}}function Gn(e,t,n){zc(e,t,3,n)}function zn(e,t,n,r){(e[I]&3)===n&&zc(e,t,n,r)}function Io(e,t){let n=e[I];(n&3)===t&&(n&=16383,n+=1,e[I]=n)}function zc(e,t,n,r){let o=r!==void 0?e[It]&65535:0,i=r??-1,s=t.length-1,a=0;for(let c=o;c<s;c++)if(typeof t[c+1]=="number"){if(a=t[c],r!=null&&a>=r)break}else t[c]<0&&(e[It]+=65536),(a<i||i==-1)&&(Gf(e,n,t,c),e[It]=(e[It]&4294901760)+c+2),c++}function Fa(e,t){H(4,e,t);let n=R(null);try{t.call(e)}finally{R(n),H(5,e,t)}}function Gf(e,t,n,r){let o=n[r]<0,i=n[r+1],s=o?-n[r]:n[r],a=e[s];o?e[I]>>14<e[It]>>16&&(e[I]&3)===t&&(e[I]+=16384,Fa(a,i)):Fa(a,i)}var _t=-1,rn=class{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,r){this.factory=t,this.canSeeViewProviders=n,this.injectImpl=r}};function zf(e){return e instanceof rn}function Wf(e){return(e.flags&8)!==0}function qf(e){return(e.flags&16)!==0}function Zf(e,t,n){let r=0;for(;r<n.length;){let o=n[r];if(typeof o=="number"){if(o!==0)break;r++;let i=n[r++],s=n[r++],a=n[r++];e.setAttribute(t,s,a,i)}else{let i=o,s=n[++r];Qf(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++}}return r}function Yf(e){return e===3||e===4||e===6}function Qf(e){return e.charCodeAt(0)===64}function Ai(e,t){if(!(t===null||t.length===0))if(e===null||e.length===0)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){let o=t[r];typeof o=="number"?n=o:n===0||(n===-1||n===2?ka(e,n,o,null,t[++r]):ka(e,n,o,null,null))}}return e}function ka(e,t,n,r,o){let i=0,s=e.length;if(t===-1)s=-1;else for(;i<e.length;){let a=e[i++];if(typeof a=="number"){if(a===t){s=-1;break}else if(a>t){s=i-1;break}}}for(;i<e.length;){let a=e[i];if(typeof a=="number")break;if(a===n){if(r===null){o!==null&&(e[i+1]=o);return}else if(r===e[i+1]){e[i+2]=o;return}}i++,r!==null&&i++,o!==null&&i++}s!==-1&&(e.splice(s,0,t),i=s+1),e.splice(i++,0,n),r!==null&&e.splice(i++,0,r),o!==null&&e.splice(i++,0,o)}var wo={},Vo=class{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=fr(r);let o=this.injector.get(t,wo,r);return o!==wo||n===wo?o:this.parentInjector.get(t,n,r)}};function Kf(e){return e!==_t}function jo(e){return e&32767}function Jf(e){return e>>16}function Bo(e,t){let n=Jf(e),r=t;for(;n>0;)r=r[Ot],n--;return r}var Ho=!0;function Xn(e){let t=Ho;return Ho=e,t}var Xf=256,Wc=Xf-1,qc=5,ep=0,Me={};function tp(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(Yt)&&(r=n[Yt]),r==null&&(r=n[Yt]=ep++);let o=r&Wc,i=1<<o;t.data[e+(o>>qc)]|=i}function Zc(e,t){let n=Yc(e,t);if(n!==-1)return n;let r=t[N];r.firstCreatePass&&(e.injectorIndex=t.length,Co(r.data,e),Co(t,null),Co(r.blueprint,null));let o=Qc(e,t),i=e.injectorIndex;if(Kf(o)){let s=jo(o),a=Bo(o,t),c=a[N].data;for(let u=0;u<8;u++)t[i+u]=a[s+u]|c[s+u]}return t[i+8]=o,i}function Co(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Yc(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function Qc(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;o!==null;){if(r=tu(o),r===null)return _t;if(n++,o=o[Ot],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return _t}function np(e,t,n){tp(e,t,n)}function Kc(e,t,n){if(n&T.Optional||e!==void 0)return e;Di(t,"NodeInjector")}function Jc(e,t,n,r){if(n&T.Optional&&r===void 0&&(r=null),(n&(T.Self|T.Host))===0){let o=e[en],i=re(void 0);try{return o?o.get(t,r,n&T.Optional):dc(t,r,n&T.Optional)}finally{re(i)}}return Kc(r,t,n)}function Xc(e,t,n,r=T.Default,o){if(e!==null){if(t[I]&2048&&!(r&T.Self)){let s=ap(e,t,n,r,Me);if(s!==Me)return s}let i=eu(e,t,n,r,Me);if(i!==Me)return i}return Jc(t,n,r,o)}function eu(e,t,n,r,o){let i=ip(n);if(typeof i=="function"){if(!Vc(t,e,r))return r&T.Host?Kc(o,n,r):Jc(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&T.Optional))Di(n);else return s}finally{Uc()}}else if(typeof i=="number"){let s=null,a=Yc(e,t),c=_t,u=r&T.Host?t[Te][xe]:null;for((a===-1||r&T.SkipSelf)&&(c=a===-1?Qc(e,t):t[a+8],c===_t||!Va(r,!1)?a=-1:(s=t[N],a=jo(c),t=Bo(c,t)));a!==-1;){let l=t[N];if(La(i,a,l.data)){let p=rp(a,t,n,s,r,u);if(p!==Me)return p}c=t[a+8],c!==_t&&Va(r,t[N].data[a+8]===u)&&La(i,a,t)?(s=l,a=jo(c),t=Bo(c,t)):a=-1}}return o}function rp(e,t,n,r,o,i){let s=t[N],a=s.data[e+8],c=r==null?mr(a)&&Ho:r!=s&&(a.type&3)!==0,u=o&T.Host&&i===a,l=op(a,s,n,c,u);return l!==null?Uo(t,s,l,a):Me}function op(e,t,n,r,o){let i=e.providerIndexes,s=t.data,a=i&1048575,c=e.directiveStart,u=e.directiveEnd,l=i>>20,p=r?a:a+l,g=o?a+l:u;for(let f=p;f<g;f++){let m=s[f];if(f<c&&n===m||f>=c&&m.type===n)return f}if(o){let f=s[c];if(f&&lt(f)&&f.type===n)return c}return null}function Uo(e,t,n,r){let o=e[n],i=t.data;if(zf(o)){let s=o;s.resolving&&Bd(jd(i[n]));let a=Xn(s.canSeeViewProviders);s.resolving=!0;let c,u=s.injectImpl?re(s.injectImpl):null,l=Vc(e,r,T.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&$f(n,i[n],t)}finally{u!==null&&re(u),Xn(a),s.resolving=!1,Uc()}}return o}function ip(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(Yt)?e[Yt]:void 0;return typeof t=="number"?t>=0?t&Wc:sp:t}function La(e,t,n){let r=1<<e;return!!(n[t+(e>>qc)]&r)}function Va(e,t){return!(e&T.Self)&&!(e&T.Host&&t)}var er=class{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return Xc(this._tNode,this._lView,t,fr(r),n)}};function sp(){return new er(cn(),U())}function ap(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[I]&2048&&!Jn(s);){let a=eu(i,s,n,r|T.Self,Me);if(a!==Me)return a;let c=i.parent;if(!c){let u=s[wc];if(u){let l=u.get(n,Me,r);if(l!==Me)return l}c=tu(s),s=s[Ot]}i=c}return o}function tu(e){let t=e[N],n=t.type;return n===2?t.declTNode:n===1?e[xe]:null}function ja(e,t=null,n=null,r){let o=cp(e,t,n,r);return o.resolveInjectorInitializers(),o}function cp(e,t=null,n=null,r,o=new Set){let i=[n||rt,nf(e)];return r=r||(typeof e=="object"?void 0:de(e)),new Jt(i,t||wi(),r||null,o)}var Se=class e{static THROW_IF_NOT_FOUND=Qt;static NULL=new Yn;static create(t,n){if(Array.isArray(t))return ja({name:""},n,t,"");{let r=t.name??"";return ja({name:r},t.parent,t.providers,r)}}static \u0275prov=q({token:e,providedIn:"any",factory:()=>L(pc)});static __NG_ELEMENT_ID__=-1};var up=new k("");up.__NG_ELEMENT_ID__=e=>{let t=cn();if(t===null)throw new P(204,!1);if(t.type&2)return t.value;if(e&T.Optional)return null;throw new P(204,!1)};var nu=!1,ru=(()=>{class e{static __NG_ELEMENT_ID__=lp;static __NG_ENV_ID__=n=>n}return e})(),$o=class extends ru{_lView;constructor(t){super(),this._lView=t}onDestroy(t){return Ac(this._lView,t),()=>Cf(this._lView,t)}};function lp(){return new $o(U())}var $e=class{},Er=new k("",{providedIn:"root",factory:()=>!1});var ou=new k(""),Ri=new k(""),Ir=(()=>{class e{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new $t(!1);add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static \u0275prov=q({token:e,providedIn:"root",factory:()=>new e})}return e})();var Go=class extends Fe{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,hf()&&(this.destroyRef=F(ru,{optional:!0})??void 0,this.pendingTasks=F(Ir,{optional:!0})??void 0)}emit(t){let n=R(null);try{super.next(t)}finally{R(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let c=t;o=c.next?.bind(c),i=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof X&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{t(n),r!==void 0&&this.pendingTasks?.remove(r)})}}},Be=Go;function tr(...e){}function iu(e){let t,n;function r(){e=tr;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function Ba(e){return queueMicrotask(()=>e()),()=>{e=tr}}var Oi="isAngularZone",nr=Oi+"_ID",dp=0,Y=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new Be(!1);onMicrotaskEmpty=new Be(!1);onStable=new Be(!1);onError=new Be(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=nu}=t;if(typeof Zone>"u")throw new P(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&r,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=!1,s.scheduleInRootZone=i,hp(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(Oi)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new P(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new P(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,fp,tr,tr);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},fp={};function Pi(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function pp(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){iu(()=>{e.callbackScheduled=!1,zo(e),e.isCheckStableRunning=!0,Pi(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),zo(e)}function hp(e){let t=()=>{pp(e)},n=dp++;e._inner=e._inner.fork({name:"angular",properties:{[Oi]:!0,[nr]:n,[nr+n]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(gp(c))return r.invokeTask(i,s,a,c);try{return Ha(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Ua(e)}},onInvoke:(r,o,i,s,a,c,u)=>{try{return Ha(e),r.invoke(i,s,a,c,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!mp(c)&&t(),Ua(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,zo(e),Pi(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,o,i,s)=>(r.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function zo(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function Ha(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Ua(e){e._nesting--,Pi(e)}var rr=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new Be;onMicrotaskEmpty=new Be;onStable=new Be;onError=new Be;run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}};function gp(e){return su(e,"__ignore_ng_zone__")}function mp(e){return su(e,"__scheduler_tick__")}function su(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var Ge=class{_console=console;handleError(t){this._console.error("ERROR",t)}},yp=new k("",{providedIn:"root",factory:()=>{let e=F(Y),t=F(Ge);return n=>e.runOutsideAngular(()=>t.handleError(n))}});function vp(){return au(cn(),U())}function au(e,t){return new wr(dt(e,t))}var wr=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=vp}return e})();function Fi(e,t){let n=Zs(e),r=n[Pe];return t?.equal&&(r.equal=t.equal),n.set=o=>oo(r,o),n.update=o=>Ys(r,o),n.asReadonly=Dp.bind(n),n}function Dp(){let e=this[Pe];if(e.readonlyFn===void 0){let t=()=>this();t[Pe]=e,e.readonlyFn=t}return e.readonlyFn}function cu(e){return(e.flags&128)===128}var uu=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(uu||{}),lu=new Map,Ep=0;function Ip(){return Ep++}function wp(e){lu.set(e[gr],e)}function Wo(e){lu.delete(e[gr])}var $a="__ngContext__";function un(e,t){nt(t)?(e[$a]=t[gr],wp(t)):e[$a]=t}function du(e){return pu(e[tn])}function fu(e){return pu(e[Ee])}function pu(e){for(;e!==null&&!ut(e);)e=e[Ee];return e}var qo;function hu(e){qo=e}function Cp(){if(qo!==void 0)return qo;if(typeof document<"u")return document;throw new P(210,!1)}var ki=new k("",{providedIn:"root",factory:()=>_p}),_p="ng",Li=new k(""),ln=new k("",{providedIn:"platform",factory:()=>"unknown"});var Vi=new k("",{providedIn:"root",factory:()=>Cp().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var bp="h",Mp="b";var gu=!1,Tp=new k("",{providedIn:"root",factory:()=>gu});var mu=function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e}(mu||{}),Cr=new k(""),Ga=new Set;function Ft(e){Ga.has(e)||(Ga.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var Sp=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=q({token:e,providedIn:"root",factory:()=>new e})}return e})();var Np=()=>null;function yu(e,t,n=!1){return Np(e,t,n)}function vu(e,t){let n=e.contentQueries;if(n!==null){let r=R(null);try{for(let o=0;o<n.length;o+=2){let i=n[o],s=n[o+1];if(s!==-1){let a=e.data[s];Lc(i),a.contentQueries(2,t[s],s)}}}finally{R(r)}}}function Zo(e,t,n){Lc(0);let r=R(null);try{t(e,n)}finally{R(r)}}function Du(e,t,n){if(_c(t)){let r=R(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;s<i;s++){let a=e.data[s];if(a.contentQueries){let c=n[s];a.contentQueries(1,c,s)}}}finally{R(r)}}}var Ne=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(Ne||{});var or=class{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${ic})`}};function _r(e){return e instanceof or?e.changingThisBreaksApplicationSecurity:e}function Eu(e,t){let n=xp(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${ic})`)}return n===t}function xp(e){return e instanceof or&&e.getTypeName()||null}var Ap=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Iu(e){return e=String(e),e.match(Ap)?e:"unsafe:"+e}var ji=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(ji||{});function wu(e){let t=Rp();return t?t.sanitize(ji.URL,e)||"":Eu(e,"URL")?_r(e):Iu(vi(e))}function Rp(){let e=U();return e&&e[ke].sanitizer}function Op(e,t,n){let r=e.length;for(;;){let o=e.indexOf(t,n);if(o===-1)return o;if(o===0||e.charCodeAt(o-1)<=32){let i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1}}var Cu="ng-template";function Pp(e,t,n,r){let o=0;if(r){for(;o<t.length&&typeof t[o]=="string";o+=2)if(t[o]==="class"&&Op(t[o+1].toLowerCase(),n,0)!==-1)return!0}else if(Bi(e))return!1;if(o=t.indexOf(1,o),o>-1){let i;for(;++o<t.length&&typeof(i=t[o])=="string";)if(i.toLowerCase()===n)return!0}return!1}function Bi(e){return e.type===4&&e.value!==Cu}function Fp(e,t,n){let r=e.type===4&&!n?Cu:e.value;return t===r}function kp(e,t,n){let r=4,o=e.attrs,i=o!==null?jp(o):0,s=!1;for(let a=0;a<t.length;a++){let c=t[a];if(typeof c=="number"){if(!s&&!ve(r)&&!ve(c))return!1;if(s&&ve(c))continue;s=!1,r=c|r&1;continue}if(!s)if(r&4){if(r=2|r&1,c!==""&&!Fp(e,c,n)||c===""&&t.length===1){if(ve(r))return!1;s=!0}}else if(r&8){if(o===null||!Pp(e,o,c,n)){if(ve(r))return!1;s=!0}}else{let u=t[++a],l=Lp(c,o,Bi(e),n);if(l===-1){if(ve(r))return!1;s=!0;continue}if(u!==""){let p;if(l>i?p="":p=o[l+1].toLowerCase(),r&2&&u!==p){if(ve(r))return!1;s=!0}}}}return ve(r)||s}function ve(e){return(e&1)===0}function Lp(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o<t.length;){let s=t[o];if(s===e)return o;if(s===3||s===6)i=!0;else if(s===1||s===2){let a=t[++o];for(;typeof a=="string";)a=t[++o];continue}else{if(s===4)break;if(s===0){o+=4;continue}}o+=i?1:2}return-1}else return Bp(t,e)}function Vp(e,t,n=!1){for(let r=0;r<t.length;r++)if(kp(e,t[r],n))return!0;return!1}function jp(e){for(let t=0;t<e.length;t++){let n=e[t];if(Yf(n))return t}return e.length}function Bp(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){let r=e[n];if(typeof r=="number")return-1;if(r===t)return n;n++}return-1}function za(e,t){return e?":not("+t.trim()+")":t}function Hp(e){let t=e[0],n=1,r=2,o="",i=!1;for(;n<e.length;){let s=e[n];if(typeof s=="string")if(r&2){let a=e[++n];o+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!ve(s)&&(t+=za(i,o),o=""),r=s,i=i||!ve(r);n++}return o!==""&&(t+=za(i,o)),t}function Up(e){return e.map(Hp).join(",")}function $p(e){let t=[],n=[],r=1,o=2;for(;r<e.length;){let i=e[r];if(typeof i=="string")o===2?i!==""&&t.push(i,e[++r]):o===8&&n.push(i);else{if(!ve(o))break;o=i}r++}return n.length&&t.push(1,...n),t}var Ye={};function Gp(e,t){return e.createText(t)}function zp(e,t,n){e.setValue(t,n)}function _u(e,t,n){return e.createElement(t,n)}function Yo(e,t,n,r,o){e.insertBefore(t,n,r,o)}function bu(e,t,n){e.appendChild(t,n)}function Wa(e,t,n,r,o){r!==null?Yo(e,t,n,r,o):bu(e,t,n)}function Wp(e,t,n){e.removeChild(null,t,n)}function qp(e,t,n){e.setAttribute(t,"style",n)}function Zp(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function Mu(e,t,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&Zf(e,t,r),o!==null&&Zp(e,t,o),i!==null&&qp(e,t,i)}function Hi(e,t,n,r,o,i,s,a,c,u,l){let p=J+r,g=p+o,f=Yp(p,g),m=typeof u=="function"?u():u;return f[N]={type:e,blueprint:f,template:n,queries:null,viewQuery:a,declTNode:t,data:f.slice().fill(null,p),bindingStartIndex:p,expandoStartIndex:g,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof i=="function"?i():i,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:c,consts:m,incompleteFirstPass:!1,ssrId:l}}function Yp(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:Ye);return n}function Qp(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=Hi(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function Ui(e,t,n,r,o,i,s,a,c,u,l){let p=t.blueprint.slice();return p[Ve]=o,p[I]=r|4|128|8|64|1024,(u!==null||e&&e[I]&2048)&&(p[I]|=2048),xc(p),p[fe]=p[Ot]=e,p[K]=n,p[ke]=s||e&&e[ke],p[ae]=a||e&&e[ae],p[en]=c||e&&e[en]||null,p[xe]=i,p[gr]=Ip(),p[Xt]=l,p[wc]=u,p[Te]=t.type==2?e[Te]:p,p}function Kp(e,t,n){let r=dt(t,e),o=Qp(n),i=e[ke].rendererFactory,s=Nu(e,Ui(e,o,null,Tu(n),r,t,null,i.createRenderer(r,n),null,null,null));return e[t.index]=s}function Tu(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function Su(e,t,n,r){if(n===0)return-1;let o=t.length;for(let i=0;i<n;i++)t.push(r),e.blueprint.push(r),e.data.push(null);return o}function Nu(e,t){return e[tn]?e[Ra][Ee]=t:e[tn]=t,e[Ra]=t,t}function ft(e=1){xu(Ie(),U(),Ze()+e,!1)}function xu(e,t,n,r){if(!r)if((t[I]&3)===3){let i=e.preOrderCheckHooks;i!==null&&Gn(t,i,n)}else{let i=e.preOrderHooks;i!==null&&zn(t,i,0,n)}at(n)}var br=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(br||{});function Qo(e,t,n,r){let o=R(null);try{let[i,s,a]=e.inputs[n],c=null;(s&br.SignalBased)!==0&&(c=t[i][Pe]),c!==null&&c.transformFn!==void 0?r=c.transformFn(r):a!==null&&(r=a.call(t,r)),e.setInput!==null?e.setInput(t,c,r,n,i):Mc(t,c,i,r)}finally{R(o)}}function Au(e,t,n,r,o){let i=Ze(),s=r&2;try{at(-1),s&&t.length>J&&xu(e,t,J,!1),H(s?2:0,o),n(r,o)}finally{at(i),H(s?3:1,o)}}function $i(e,t,n){oh(e,t,n),(n.flags&64)===64&&ih(e,t,n)}function Ru(e,t,n=dt){let r=t.localNames;if(r!==null){let o=t.index+1;for(let i=0;i<r.length;i+=2){let s=r[i+1],a=s===-1?n(t,e):e[s];e[o++]=a}}}function Jp(e,t,n,r){let i=r.get(Tp,gu)||n===Ne.ShadowDom,s=e.selectRootElement(t,i);return Xp(s),s}function Xp(e){eh(e)}var eh=()=>null;function th(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function nh(e,t,n,r,o,i,s,a){if(!a&&Gi(t,e,n,r,o)){mr(t)&&rh(n,t.index);return}if(t.type&3){let c=dt(t,n);r=th(r),o=s!=null?s(o,t.value||"",r):o,i.setProperty(c,r,o)}else t.type&12}function rh(e,t){let n=it(t,e);n[I]&16||(n[I]|=64)}function oh(e,t,n){let r=n.directiveStart,o=n.directiveEnd;mr(n)&&Kp(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||Zc(n,t);let i=n.initialInputs;for(let s=r;s<o;s++){let a=e.data[s],c=Uo(t,e,s,n);if(un(c,t),i!==null&&ah(t,s-r,c,a,n,i),lt(a)){let u=it(n.index,t);u[K]=Uo(t,e,s,n)}}}function ih(e,t,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=Lf();try{at(i);for(let a=r;a<o;a++){let c=e.data[a],u=t[a];Lo(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&sh(c,u)}}finally{at(-1),Lo(s)}}function sh(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function Ou(e,t){let n=e.directiveRegistry,r=null;if(n)for(let o=0;o<n.length;o++){let i=n[o];Vp(t,i.selectors,!1)&&(r??=[],lt(i)?r.unshift(i):r.push(i))}return r}function ah(e,t,n,r,o,i){let s=i[t];if(s!==null)for(let a=0;a<s.length;a+=2){let c=s[a],u=s[a+1];Qo(r,n,c,u)}}function ch(e,t){let n=e[en],r=n?n.get(Ge,null):null;r&&r.handleError(t)}function Gi(e,t,n,r,o){let i=e.inputs?.[r],s=e.hostDirectiveInputs?.[r],a=!1;if(s)for(let c=0;c<s.length;c+=2){let u=s[c],l=s[c+1],p=t.data[u];Qo(p,n[u],l,o),a=!0}if(i)for(let c of i){let u=n[c],l=t.data[c];Qo(l,u,r,o),a=!0}return a}function uh(e,t){let n=it(t,e),r=n[N];lh(r,n);let o=n[Ve];o!==null&&n[Xt]===null&&(n[Xt]=yu(o,n[en])),H(18),zi(r,n,n[K]),H(19,n[K])}function lh(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}function zi(e,t,n){Ti(t);try{let r=e.viewQuery;r!==null&&Zo(1,r,n);let o=e.template;o!==null&&Au(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[St]?.finishViewCreation(e),e.staticContentQueries&&vu(e,t),e.staticViewQueries&&Zo(2,e.viewQuery,n);let i=e.components;i!==null&&dh(t,i)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[I]&=-5,Si()}}function dh(e,t){for(let n=0;n<t.length;n++)uh(e,t[n])}function Wi(e,t,n,r){let o=R(null);try{let i=t.tView,a=e[I]&4096?4096:16,c=Ui(e,i,n,a,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),u=e[t.index];c[Tt]=u;let l=e[St];return l!==null&&(c[St]=l.createEmbeddedView(i)),zi(i,c,n),c}finally{R(o)}}function qi(e,t){return!t||t.firstChild===null||cu(e)}var fh;function Zi(e,t){return fh(e,t)}var Le=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Le||{});function Pu(e){return(e.flags&32)===32}function wt(e,t,n,r,o){if(r!=null){let i,s=!1;ut(r)?i=r:nt(r)&&(s=!0,r=r[Ve]);let a=Ue(r);e===0&&n!==null?o==null?bu(t,n,a):Yo(t,n,a,o||null,!0):e===1&&n!==null?Yo(t,n,a,o||null,!0):e===2?Wp(t,a,s):e===3&&t.destroyNode(a),i!=null&&_h(t,e,i,n,o)}}function ph(e,t){Fu(e,t),t[Ve]=null,t[xe]=null}function hh(e,t,n,r,o,i){r[Ve]=o,r[xe]=t,Mr(e,r,n,1,o,i)}function Fu(e,t){t[ke].changeDetectionScheduler?.notify(9),Mr(e,t,t[ae],2,null,null)}function gh(e){let t=e[tn];if(!t)return _o(e[N],e);for(;t;){let n=null;if(nt(t))n=t[tn];else{let r=t[oe];r&&(n=r)}if(!n){for(;t&&!t[Ee]&&t!==e;)nt(t)&&_o(t[N],t),t=t[fe];t===null&&(t=e),nt(t)&&_o(t[N],t),n=t&&t[Ee]}t=n}}function Yi(e,t){let n=e[Kn],r=n.indexOf(t);n.splice(r,1)}function Qi(e,t){if(an(t))return;let n=t[ae];n.destroyNode&&Mr(e,t,n,3,null,null),gh(t)}function _o(e,t){if(an(t))return;let n=R(null);try{t[I]&=-129,t[I]|=256,t[se]&&ro(t[se]),yh(e,t),mh(e,t),t[N].type===1&&t[ae].destroy();let r=t[Tt];if(r!==null&&ut(t[fe])){r!==t[fe]&&Yi(r,t);let o=t[St];o!==null&&o.detachView(e)}Wo(t)}finally{R(n)}}function mh(e,t){let n=e.cleanup,r=t[Aa];if(n!==null)for(let s=0;s<n.length-1;s+=2)if(typeof n[s]=="string"){let a=n[s+3];a>=0?r[a]():r[-a].unsubscribe(),s+=2}else{let a=r[n[s+1]];n[s].call(a)}r!==null&&(t[Aa]=null);let o=t[He];if(o!==null){t[He]=null;for(let s=0;s<o.length;s++){let a=o[s];a()}}let i=t[Qn];if(i!==null){t[Qn]=null;for(let s of i)s.destroy()}}function yh(e,t){let n;if(e!=null&&(n=e.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let o=t[n[r]];if(!(o instanceof rn)){let i=n[r+1];if(Array.isArray(i))for(let s=0;s<i.length;s+=2){let a=o[i[s]],c=i[s+1];H(4,a,c);try{c.call(a)}finally{H(5,a,c)}}else{H(4,o,i);try{i.call(o)}finally{H(5,o,i)}}}}}function vh(e,t,n){return Dh(e,t.parent,n)}function Dh(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[Ve];if(mr(r)){let{encapsulation:o}=e.data[r.directiveStart+r.componentOffset];if(o===Ne.None||o===Ne.Emulated)return null}return dt(r,n)}function Eh(e,t,n){return wh(e,t,n)}function Ih(e,t,n){return e.type&40?dt(e,n):null}var wh=Ih,qa;function Ki(e,t,n,r){let o=vh(e,r,t),i=t[ae],s=r.parent||t[xe],a=Eh(s,r,t);if(o!=null)if(Array.isArray(n))for(let c=0;c<n.length;c++)Wa(i,o,n[c],a,!1);else Wa(i,o,n,a,!1);qa!==void 0&&qa(i,r,t,n,o)}function Zt(e,t){if(t!==null){let n=t.type;if(n&3)return dt(t,e);if(n&4)return Ko(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return Zt(e,r);{let o=e[t.index];return ut(o)?Ko(-1,o):Ue(o)}}else{if(n&128)return Zt(e,t.next);if(n&32)return Zi(t,e)()||Ue(e[t.index]);{let r=ku(e,t);if(r!==null){if(Array.isArray(r))return r[0];let o=st(e[Te]);return Zt(o,r)}else return Zt(e,t.next)}}}return null}function ku(e,t){if(t!==null){let r=e[Te][xe],o=t.projection;return r.projection[o]}return null}function Ko(e,t){let n=oe+e+1;if(n<t.length){let r=t[n],o=r[N].firstChild;if(o!==null)return Zt(r,o)}return t[nn]}function Ji(e,t,n,r,o,i,s){for(;n!=null;){if(n.type===128){n=n.next;continue}let a=r[n.index],c=n.type;if(s&&t===0&&(a&&un(Ue(a),r),n.flags|=2),!Pu(n))if(c&8)Ji(e,t,n.child,r,o,i,!1),wt(t,e,o,a,i);else if(c&32){let u=Zi(n,r),l;for(;l=u();)wt(t,e,o,l,i);wt(t,e,o,a,i)}else c&16?Ch(e,t,r,n,o,i):wt(t,e,o,a,i);n=s?n.projectionNext:n.next}}function Mr(e,t,n,r,o,i){Ji(n,r,e.firstChild,t,o,i,!1)}function Ch(e,t,n,r,o,i){let s=n[Te],c=s[xe].projection[r.projection];if(Array.isArray(c))for(let u=0;u<c.length;u++){let l=c[u];wt(t,e,o,l,i)}else{let u=c,l=s[fe];cu(r)&&(u.flags|=128),Ji(e,t,u,l,o,i,!0)}}function _h(e,t,n,r,o){let i=n[nn],s=Ue(n);i!==s&&wt(t,e,r,i,o);for(let a=oe;a<n.length;a++){let c=n[a];Mr(c[N],c,e,t,r,i)}}function bh(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else{let i=r.indexOf("-")===-1?void 0:Le.DashCase;o==null?e.removeStyle(n,r,i):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=Le.Important),e.setStyle(n,r,o,i))}}function ir(e,t,n,r,o=!1){for(;n!==null;){if(n.type===128){n=o?n.projectionNext:n.next;continue}let i=t[n.index];i!==null&&r.push(Ue(i)),ut(i)&&Mh(i,r);let s=n.type;if(s&8)ir(e,t,n.child,r);else if(s&32){let a=Zi(n,t),c;for(;c=a();)r.push(c)}else if(s&16){let a=ku(t,n);if(Array.isArray(a))r.push(...a);else{let c=st(t[Te]);ir(c[N],c,a,r,!0)}}n=o?n.projectionNext:n.next}return r}function Mh(e,t){for(let n=oe;n<e.length;n++){let r=e[n],o=r[N].firstChild;o!==null&&ir(r[N],r,o,t)}e[nn]!==e[Ve]&&t.push(e[nn])}function Lu(e){if(e[Eo]!==null){for(let t of e[Eo])t.impl.addSequence(t);e[Eo].length=0}}var Vu=[];function Th(e){return e[se]??Sh(e)}function Sh(e){let t=Vu.pop()??Object.create(xh);return t.lView=e,t}function Nh(e){e.lView[se]!==e&&(e.lView=null,Vu.push(e))}var xh=Ce(ue({},En),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{vr(e.lView)},consumerOnSignalRead(){this.lView[se]=this}});function Ah(e){let t=e[se]??Object.create(Rh);return t.lView=e,t}var Rh=Ce(ue({},En),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=st(e.lView);for(;t&&!ju(t[N]);)t=st(t);t&&Mi(t)},consumerOnSignalRead(){this.lView[se]=this}});function ju(e){return e.type!==2}function Bu(e){if(e[Qn]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[Qn])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[I]&8192)}}var Oh=100;function Hu(e,t=!0,n=0){let o=e[ke].rendererFactory,i=!1;i||o.begin?.();try{Ph(e,n)}catch(s){throw t&&ch(e,s),s}finally{i||o.end?.()}}function Ph(e,t){let n=Fc();try{Pa(!0),Jo(e,t);let r=0;for(;yr(e);){if(r===Oh)throw new P(103,!1);r++,Jo(e,1)}}finally{Pa(n)}}function Fh(e,t,n,r){if(an(t))return;let o=t[I],i=!1,s=!1;Ti(t);let a=!0,c=null,u=null;i||(ju(e)?(u=Th(t),c=to(u)):Ls()===null?(a=!1,u=Ah(t),c=to(u)):t[se]&&(ro(t[se]),t[se]=null));try{xc(t),Of(e.bindingStartIndex),n!==null&&Au(e,t,n,2,r);let l=(o&3)===3;if(!i)if(l){let f=e.preOrderCheckHooks;f!==null&&Gn(t,f,null)}else{let f=e.preOrderHooks;f!==null&&zn(t,f,0,null),Io(t,0)}if(s||kh(t),Bu(t),Uu(t,0),e.contentQueries!==null&&vu(e,t),!i)if(l){let f=e.contentCheckHooks;f!==null&&Gn(t,f)}else{let f=e.contentHooks;f!==null&&zn(t,f,1),Io(t,1)}Vh(e,t);let p=e.components;p!==null&&Gu(t,p,0);let g=e.viewQuery;if(g!==null&&Zo(2,g,r),!i)if(l){let f=e.viewCheckHooks;f!==null&&Gn(t,f)}else{let f=e.viewHooks;f!==null&&zn(t,f,2),Io(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Do]){for(let f of t[Do])f();t[Do]=null}i||(Lu(t),t[I]&=-73)}catch(l){throw i||vr(t),l}finally{u!==null&&(Hs(u,c),a&&Nh(u)),Si()}}function Uu(e,t){for(let n=du(e);n!==null;n=fu(n))for(let r=oe;r<n.length;r++){let o=n[r];$u(o,t)}}function kh(e){for(let t=du(e);t!==null;t=fu(t)){if(!(t[I]&2))continue;let n=t[Kn];for(let r=0;r<n.length;r++){let o=n[r];Mi(o)}}}function Lh(e,t,n){H(18);let r=it(t,e);$u(r,n),H(19,r[K])}function $u(e,t){bi(e)&&Jo(e,t)}function Jo(e,t){let r=e[N],o=e[I],i=e[se],s=!!(t===0&&o&16);if(s||=!!(o&64&&t===0),s||=!!(o&1024),s||=!!(i?.dirty&&no(i)),s||=!1,i&&(i.dirty=!1),e[I]&=-9217,s)Fh(r,e,r.template,e[K]);else if(o&8192){Bu(e),Uu(e,1);let a=r.components;a!==null&&Gu(e,a,1),Lu(e)}}function Gu(e,t,n){for(let r=0;r<t.length;r++)Lh(e,t[r],n)}function Vh(e,t){let n=e.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let o=n[r];if(o<0)at(~o);else{let i=o,s=n[++r],a=n[++r];kf(s,i);let c=t[i];H(24,c),a(2,c),H(25,c)}}}finally{at(-1)}}function zu(e,t){let n=Fc()?64:1088;for(e[ke].changeDetectionScheduler?.notify(t);e;){e[I]|=n;let r=st(e);if(Jn(e)&&!r)return e;e=r}return null}function jh(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function Wu(e,t){let n=oe+t;if(n<e.length)return e[n]}function Xi(e,t,n,r=!0){let o=t[N];if(Bh(o,t,e,n),r){let s=Ko(n,e),a=t[ae],c=a.parentNode(e[nn]);c!==null&&hh(o,e[xe],a,t,c,s)}let i=t[Xt];i!==null&&i.firstChild!==null&&(i.firstChild=null)}function qu(e,t){let n=es(e,t);return n!==void 0&&Qi(n[N],n),n}function es(e,t){if(e.length<=oe)return;let n=oe+t,r=e[n];if(r){let o=r[Tt];o!==null&&o!==e&&Yi(o,r),t>0&&(e[n-1][Ee]=r[Ee]);let i=fc(e,oe+t);ph(r[N],r);let s=i[St];s!==null&&s.detachView(i[N]),r[fe]=null,r[Ee]=null,r[I]&=-129}return r}function Bh(e,t,n,r){let o=oe+r,i=n.length;r>0&&(n[o-1][Ee]=t),r<i-oe?(t[Ee]=n[o],Kd(n,oe+r,t)):(n.push(t),t[Ee]=null),t[fe]=n;let s=t[Tt];s!==null&&n!==s&&Zu(s,t);let a=t[St];a!==null&&a.insertView(e),Fo(t),t[I]|=128}function Zu(e,t){let n=e[Kn],r=t[fe];if(nt(r))e[I]|=2;else{let o=r[fe][Te];t[Te]!==o&&(e[I]|=2)}n===null?e[Kn]=[t]:n.push(t)}var Xo=class{_lView;_cdRefInjectingView;notifyErrorHandler;_appRef=null;_attachedToViewContainer=!1;get rootNodes(){let t=this._lView,n=t[N];return ir(n,t,n.firstChild,[])}constructor(t,n,r=!0){this._lView=t,this._cdRefInjectingView=n,this.notifyErrorHandler=r}get context(){return this._lView[K]}get dirty(){return!!(this._lView[I]&9280)||!!this._lView[se]?.dirty}set context(t){this._lView[K]=t}get destroyed(){return an(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[fe];if(ut(t)){let n=t[gf],r=n?n.indexOf(this):-1;r>-1&&(es(t,r),fc(n,r))}this._attachedToViewContainer=!1}Qi(this._lView[N],this._lView)}onDestroy(t){Ac(this._lView,t)}markForCheck(){zu(this._cdRefInjectingView||this._lView,4)}markForRefresh(){Mi(this._cdRefInjectingView||this._lView)}detach(){this._lView[I]&=-129}reattach(){Fo(this._lView),this._lView[I]|=128}detectChanges(){this._lView[I]|=1024,Hu(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new P(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=Jn(this._lView),n=this._lView[Tt];n!==null&&!t&&Yi(n,this._lView),Fu(this._lView[N],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new P(902,!1);this._appRef=t;let n=Jn(this._lView),r=this._lView[Tt];r!==null&&!n&&Zu(r,this._lView),Fo(this._lView)}};function Tr(e,t,n,r,o){let i=e.data[t];if(i===null)i=Hh(e,t,n,r,o),Ff()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=xf();i.injectorIndex=s===null?-1:s.injectorIndex}return Pt(i,!0),i}function Hh(e,t,n,r,o){let i=Oc(),s=Pc(),a=s?i:i&&i.parent,c=e.data[t]=$h(e,a,n,t,r,o);return Uh(e,c,i,s),c}function Uh(e,t,n,r){e.firstChild===null&&(e.firstChild=t),n!==null&&(r?n.child==null&&t.parent!==null&&(n.child=t):n.next===null&&(n.next=t,t.prev=n))}function $h(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return Tf()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}var 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&&lt(a)&&(t=a),a.findHostDirectiveDefs!==null){n=!0;break}}if(!n)return null;let r=null,o=null,i=null;for(let s of e)s.findHostDirectiveDefs!==null&&(r??=[],o??=new Map,i??=new Map,Zh(s,r,i,o)),s===t&&(r??=[],r.push(s));return r!==null?(r.push(...t===null?e:e.slice(1)),[r,o,i]):null}function Zh(e,t,n,r){let o=t.length;e.findHostDirectiveDefs(e,t,r),n.set(e,[o,t.length-1])}function Yh(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function Qh(e,t,n,r,o,i,s){let a=r.length,c=!1;for(let g=0;g<a;g++){let f=r[g];!c&&lt(f)&&(c=!0,Yh(e,n,g)),np(Zc(n,t),e,f.type)}ng(n,e.data.length,a);for(let g=0;g<a;g++){let f=r[g];f.providersResolver&&f.providersResolver(f)}let u=!1,l=!1,p=Su(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let g=0;g<a;g++){let f=r[g];if(n.mergedAttrs=Ai(n.mergedAttrs,f.hostAttrs),Jh(e,n,t,p,f),tg(p,f,o),s!==null&&s.has(f)){let[y,w]=s.get(f);n.directiveToIndex.set(f.type,[p,y+n.directiveStart,w+n.directiveStart])}else(i===null||!i.has(f))&&n.directiveToIndex.set(f.type,p);f.contentQueries!==null&&(n.flags|=4),(f.hostBindings!==null||f.hostAttrs!==null||f.hostVars!==0)&&(n.flags|=64);let m=f.type.prototype;!u&&(m.ngOnChanges||m.ngOnInit||m.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),u=!0),!l&&(m.ngOnChanges||m.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),l=!0),p++}Kh(e,n,i)}function Kh(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let o=e.data[r];if(n===null||!n.has(o))Ya(0,t,o,r),Ya(1,t,o,r),Ka(t,r,!1);else{let i=n.get(o);Qa(0,t,i,r),Qa(1,t,i,r),Ka(t,r,!0)}}}function Ya(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s;e===0?s=t.inputs??={}:s=t.outputs??={},s[i]??=[],s[i].push(r),Qu(t,i)}}function Qa(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s=o[i],a;e===0?a=t.hostDirectiveInputs??={}:a=t.hostDirectiveOutputs??={},a[s]??=[],a[s].push(r,i),Qu(t,s)}}function Qu(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16)}function Ka(e,t,n){let{attrs:r,inputs:o,hostDirectiveInputs:i}=e;if(r===null||!n&&o===null||n&&i===null||Bi(e)){e.initialInputs??=[],e.initialInputs.push(null);return}let s=null,a=0;for(;a<r.length;){let c=r[a];if(c===0){a+=4;continue}else if(c===5){a+=2;continue}else if(typeof c=="number")break;if(!n&&o.hasOwnProperty(c)){let u=o[c];for(let l of u)if(l===t){s??=[],s.push(c,r[a+1]);break}}else if(n&&i.hasOwnProperty(c)){let u=i[c];for(let l=0;l<u.length;l+=2)if(u[l]===t){s??=[],s.push(u[l+1],r[a+1]);break}}a+=2}e.initialInputs??=[],e.initialInputs.push(s)}function Jh(e,t,n,r,o){e.data[r]=o;let i=o.factory||(o.factory=bt(o.type,!0)),s=new rn(i,lt(o),Sr);e.blueprint[r]=s,n[r]=s,Xh(e,t,r,Su(e,n,o.hostVars,Ye),o)}function Xh(e,t,n,r,o){let i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;eg(s)!=a&&s.push(a),s.push(n,r,i)}}function eg(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function tg(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;lt(t)&&(n[""]=e)}}function ng(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function Ku(e,t,n,r,o,i,s,a){let c=t.consts,u=Nt(c,s),l=Tr(t,e,2,r,u);return i&&Yu(t,n,l,Nt(c,a),o),l.mergedAttrs=Ai(l.mergedAttrs,l.attrs),l.attrs!==null&&Za(l,l.attrs,!1),l.mergedAttrs!==null&&Za(l,l.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,l),l}function Ju(e,t){Gc(e,t),_c(t)&&e.queries.elementEnd(t)}var ni=class extends ze{ngModule;constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){let n=pr(t);return new ri(n,this.ngModule)}};function rg(e){return Object.keys(e).map(t=>{let[n,r,o]=e[t],i={propName:n,templateName:t,isSignal:(r&br.SignalBased)!==0};return o&&(i.transform=o),i})}function og(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function ig(e,t,n){let r=t instanceof ot?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new Vo(n,r):n}function sg(e){let t=e.get(xt,null);if(t===null)throw new P(407,!1);let n=e.get(zh,null),r=e.get($e,null);return{rendererFactory:t,sanitizer:n,changeDetectionScheduler:r}}function ag(e,t){let n=(e.selectors[0][0]||"div").toLowerCase();return _u(t,n,n==="svg"?Ef:n==="math"?If:null)}var ri=class extends sr{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;get inputs(){return rg(this.componentDef.inputs)}get outputs(){return og(this.componentDef.outputs)}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=Up(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!n}create(t,n,r,o){H(22);let i=R(null);try{let s=this.componentDef,a=r?["ng-version","19.2.0"]:$p(this.componentDef.selectors[0]),c=Hi(0,null,null,1,0,null,null,null,null,[a],null),u=ig(s,o||this.ngModule,t),l=sg(u),p=l.rendererFactory.createRenderer(null,s),g=r?Jp(p,r,s.encapsulation,u):ag(s,p),f=Ui(null,c,null,512|Tu(s),null,null,l,p,u,null,yu(g,u,!0));f[J]=g,Ti(f);let m=null;try{let y=Ku(J,c,f,"#host",()=>[this.componentDef],!0,0);g&&(Mu(p,g,y),un(g,f)),$i(c,f,y),Du(c,y,f),Ju(c,y),n!==void 0&&cg(y,this.ngContentSelectors,n),m=it(y.index,f),f[K]=m[K],zi(c,f,null)}catch(y){throw m!==null&&Wo(m),Wo(f),y}finally{H(23),Si()}return new oi(this.componentType,f)}finally{R(i)}}},oi=class extends ei{_rootLView;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,n){super(),this._rootLView=n,this._tNode=Ci(n[N],J),this.location=au(this._tNode,n),this.instance=it(this._tNode.index,n)[K],this.hostView=this.changeDetectorRef=new Xo(n,void 0,!1),this.componentType=t}setInput(t,n){let r=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;let o=this._rootLView,i=Gi(r,o[N],o,t,n);this.previousInputValues.set(t,n);let s=it(r.index,o);zu(s,1)}get injector(){return new er(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}};function cg(e,t,n){let r=e.projection=[];for(let o=0;o<t.length;o++){let i=n[o];r.push(i!=null&&i.length?Array.from(i):null)}}var ug=()=>!1;function lg(e,t,n){return ug(e,t,n)}var At=class{};var ar=class extends At{injector;componentFactoryResolver=new ni(this);instance=null;constructor(t){super();let n=new Jt([...t.providers,{provide:At,useValue:this},{provide:ze,useValue:this.componentFactoryResolver}],t.parent||wi(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function dg(e,t,n=null){return new ar({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var fg=(()=>{class e{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=vc(!1,n.type),o=r.length>0?dg([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=q({token:e,providedIn:"environment",factory:()=>new e(L(ot))})}return e})();function Xu(e){return Ad(()=>{let t=yg(e),n=Ce(ue({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===uu.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(fg).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Ne.Emulated,styles:e.styles||rt,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&Ft("NgStandalone"),vg(n);let r=e.dependencies;return n.directiveDefs=Ja(r,!1),n.pipeDefs=Ja(r,!0),n.id=Dg(n),n})}function pg(e){return pr(e)||gc(e)}function hg(e){return e!==null}function gg(e,t){if(e==null)return Mt;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a,c;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i,c=o[3]||null):(i=o,s=o,a=br.None,c=null),n[i]=[r,a,c],t[i]=s}return n}function mg(e){if(e==null)return Mt;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function Nr(e){return{type:e.type,name:e.name,factory:null,pure:e.pure!==!1,standalone:e.standalone??!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function yg(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputConfig:e.inputs||Mt,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||rt,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:gg(e.inputs,t),outputs:mg(e.outputs),debugInfo:null}}function vg(e){e.features?.forEach(t=>t(e))}function Ja(e,t){if(!e)return null;let n=t?mc:pg;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(hg)}function Dg(e){let t=0,n=typeof e.consts=="function"?"":e.consts,r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,n,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery];for(let i of r.join("|"))t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function el(e,t,n){return e[t]=n}function We(e,t,n){let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function Eg(e,t,n,r){let o=We(e,t,n);return We(e,t+1,r)||o}function Ig(e,t,n,r,o,i,s,a,c){let u=t.consts,l=Tr(t,e,4,s||null,a||null);Rc()&&Yu(t,n,l,Nt(u,c),Ou),l.mergedAttrs=Ai(l.mergedAttrs,l.attrs),Gc(t,l);let p=l.tView=Hi(2,l,r,o,i,t.directiveRegistry,t.pipeRegistry,null,t.schemas,u,null);return t.queries!==null&&(t.queries.template(t,l),p.queries=t.queries.embeddedTView(l)),l}function ii(e,t,n,r,o,i,s,a,c,u){let l=n+J,p=t.firstCreatePass?Ig(l,t,e,r,o,i,s,a,c):t.data[l];Pt(p,!1);let g=wg(t,e,p,n);Ni()&&Ki(t,e,g,p),un(g,e);let f=jh(g,e,g,p);return e[l]=f,Nu(e,f),lg(f,p,e),bc(p)&&$i(t,e,p),c!=null&&Ru(e,p,u),p}function xr(e,t,n,r,o,i,s,a){let c=U(),u=Ie(),l=Nt(u.consts,i);return ii(c,u,e,t,n,r,o,l,s,a),xr}var wg=Cg;function Cg(e,t,n,r){return xi(!0),t[ae].createComment("")}var tl=new k("");var _g=(()=>{class e{static \u0275prov=q({token:e,providedIn:"root",factory:()=>new si})}return e})(),si=class{queuedEffectCount=0;queues=new Map;schedule(t){this.enqueue(t)}remove(t){let n=t.zone,r=this.queues.get(n);r.has(t)&&(r.delete(t),this.queuedEffectCount--)}enqueue(t){let n=t.zone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(t)||(this.queuedEffectCount++,r.add(t))}flush(){for(;this.queuedEffectCount>0;)for(let[t,n]of this.queues)t===null?this.flushQueue(n):t.run(()=>this.flushQueue(n))}flushQueue(t){for(let n of t)t.delete(n),this.queuedEffectCount--,n.run()}};function ns(e){return!!e&&typeof e.then=="function"}function nl(e){return!!e&&typeof e.subscribe=="function"}var bg=new k("");var rl=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=F(bg,{optional:!0})??[];injector=F(Se);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=Ic(this.injector,o);if(ns(i))n.push(i);else if(nl(i)){let s=new Promise((a,c)=>{i.subscribe({complete:a,error:c})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),n.length===0&&r(),this.initialized=!0}static \u0275fac=function(r){return new(r||e)};static \u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Mg=new k("");function Tg(){qs(()=>{throw new P(600,!1)})}function Sg(e){return e.isBoundToModule}var Ng=10;var qe=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=F(yp);afterRenderManager=F(Sp);zonelessEnabled=F(Er);rootEffectScheduler=F(_g);dirtyFlags=0;tracingSnapshot=null;externalTestViews=new Set;afterTick=new Fe;get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];isStable=F(Ir).hasPendingTasks.pipe(zt(n=>!n));constructor(){F(Cr,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=F(ot);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){H(10);let o=n instanceof sr;if(!this._injector.get(rl).done){let g=!o&&tf(n),f=!1;throw new P(405,f)}let s;o?s=n:s=this._injector.get(ze).resolveComponentFactory(n),this.componentTypes.push(s.componentType);let a=Sg(s)?void 0:this._injector.get(At),c=r||s.selector,u=s.create(Se.NULL,[],c,a),l=u.location.nativeElement,p=u.injector.get(tl,null);return p?.registerApplication(l),u.onDestroy(()=>{this.detachView(u.hostView),Wn(this.components,u),p?.unregisterApplication(l)}),this._loadComponent(u),H(11,u),u}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){H(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(mu.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new P(101,!1);let n=R(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,R(n),this.afterTick.next(),H(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(xt,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<Ng;)H(14),this.synchronizeOnce(),H(15)}synchronizeOnce(){if(this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush()),this.dirtyFlags&7){let n=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:r,notifyErrorHandler:o}of this.allViews)xg(r,o,n,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return}else this._rendererFactory?.begin?.(),this._rendererFactory?.end?.();this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:n})=>yr(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;Wn(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(Mg,[]).forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Wn(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new P(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(r){return new(r||e)};static \u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Wn(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function xg(e,t,n,r){if(!n&&!yr(e))return;Hu(e,t,n&&!r?0:1)}function Ag(e,t,n,r){return We(e,Dr(),n)?t+vi(n)+r:Ye}function Un(e,t){return e<<17|t<<2}function ct(e){return e>>17&32767}function Rg(e){return(e&2)==2}function Og(e,t){return e&131071|t<<17}function ai(e){return e|2}function Rt(e){return(e&131068)>>2}function bo(e,t){return e&-131069|t<<2}function Pg(e){return(e&1)===1}function ci(e){return e|1}function Fg(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=ct(s),c=Rt(s);e[r]=n;let u=!1,l;if(Array.isArray(n)){let p=n;l=p[1],(l===null||sn(p,l)>0)&&(u=!0)}else l=n;if(o)if(c!==0){let g=ct(e[a+1]);e[r+1]=Un(g,a),g!==0&&(e[g+1]=bo(e[g+1],r)),e[a+1]=Og(e[a+1],r)}else e[r+1]=Un(a,0),a!==0&&(e[a+1]=bo(e[a+1],r)),a=r;else e[r+1]=Un(c,0),a===0?a=r:e[c+1]=bo(e[c+1],r),c=r;u&&(e[r+1]=ai(e[r+1])),Xa(e,l,r,!0),Xa(e,l,r,!1),kg(t,l,e,r,i),s=Un(a,c),i?t.classBindings=s:t.styleBindings=s}function kg(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&sn(i,t)>=0&&(n[r+1]=ci(n[r+1]))}function Xa(e,t,n,r){let o=e[n+1],i=t===null,s=r?ct(o):Rt(o),a=!1;for(;s!==0&&(a===!1||i);){let c=e[s],u=e[s+1];Lg(c,t)&&(a=!0,e[s+1]=r?ci(u):ai(u)),s=r?ct(u):Rt(u)}a&&(e[n+1]=r?ai(o):ci(o))}function Lg(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?sn(e,t)>=0:!1}function rs(e,t,n){let r=U(),o=Dr();if(We(r,o,t)){let i=Ie(),s=Hf();nh(i,s,r,e,t,r[ae],n,!1)}return rs}function ec(e,t,n,r,o){Gi(t,e,n,o?"class":"style",r)}function Ar(e,t,n){return Vg(e,t,n,!1),Ar}function Vg(e,t,n,r){let o=U(),i=Ie(),s=Pf(2);if(i.firstUpdatePass&&Bg(i,e,s,r),t!==Ye&&We(o,s,t)){let a=i.data[Ze()];zg(i,a,o,o[ae],e,o[s+1]=Wg(t,n),r,s)}}function jg(e,t){return t>=e.expandoStartIndex}function Bg(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[Ze()],s=jg(e,n);qg(i,r)&&t===null&&!s&&(t=!1),t=Hg(o,i,t,r),Fg(o,i,t,n,s,r)}}function Hg(e,t,n,r){let o=Vf(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=Mo(null,e,t,n,r),n=on(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=Mo(o,e,t,n,r),i===null){let c=Ug(e,t,r);c!==void 0&&Array.isArray(c)&&(c=Mo(null,e,t,c[1],r),c=on(c,t.attrs,r),$g(e,t,r,c))}else i=Gg(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function Ug(e,t,n){let r=n?t.classBindings:t.styleBindings;if(Rt(r)!==0)return e[ct(r)]}function $g(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[ct(o)]=r}function Gg(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<o;i++){let s=e[i].hostAttrs;r=on(r,s,n)}return on(r,t.attrs,n)}function Mo(e,t,n,r,o){let i=null,s=n.directiveEnd,a=n.directiveStylingLast;for(a===-1?a=n.directiveStart:a++;a<s&&(i=t[a],r=on(r,i.hostAttrs,o),i!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function on(e,t,n){let r=n?1:2,o=-1;if(t!==null)for(let i=0;i<t.length;i++){let s=t[i];typeof s=="number"?o=s:o===r&&(Array.isArray(e)||(e=e===void 0?[]:["",e]),Xd(e,s,n?!0:t[++i]))}return e===void 0?null:e}function zg(e,t,n,r,o,i,s,a){if(!(t.type&3))return;let c=e.data,u=c[a+1],l=Pg(u)?tc(c,t,n,o,Rt(u),s):void 0;if(!cr(l)){cr(i)||Rg(u)&&(i=tc(c,null,n,o,a,s));let p=Nc(Ze(),n);bh(r,s,p,o,i)}}function tc(e,t,n,r,o,i){let s=t===null,a;for(;o>0;){let c=e[o],u=Array.isArray(c),l=u?c[1]:c,p=l===null,g=n[o+1];g===Ye&&(g=p?rt:void 0);let f=p?yo(g,r):l===r?g:void 0;if(u&&!cr(f)&&(f=yo(c,r)),cr(f)&&(a=f,s))return a;let m=e[o+1];o=s?ct(m):Rt(m)}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=yo(c,r))}return a}function cr(e){return e!==void 0}function Wg(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=de(_r(e)))),e}function qg(e,t){return(e.flags&(t?8:16))!==0}var ui=class{destroy(t){}updateValue(t,n){}swap(t,n){let r=Math.min(t,n),o=Math.max(t,n),i=this.detach(o);if(o-r>1){let s=this.detach(r);this.attach(r,i),this.attach(o,s)}else this.attach(r,i)}move(t,n){this.attach(n,this.detach(t))}};function To(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function Zg(e,t,n){let r,o,i=0,s=e.length-1,a=void 0;if(Array.isArray(t)){let c=t.length-1;for(;i<=s&&i<=c;){let u=e.at(i),l=t[i],p=To(i,u,i,l,n);if(p!==0){p<0&&e.updateValue(i,l),i++;continue}let g=e.at(s),f=t[c],m=To(s,g,c,f,n);if(m!==0){m<0&&e.updateValue(s,f),s--,c--;continue}let y=n(i,u),w=n(s,g),x=n(i,l);if(Object.is(x,w)){let W=n(c,f);Object.is(W,y)?(e.swap(i,s),e.updateValue(s,f),c--,s--):e.move(s,i),e.updateValue(i,l),i++;continue}if(r??=new ur,o??=rc(e,i,s,n),li(e,r,i,x))e.updateValue(i,l),i++,s++;else if(o.has(x))r.set(y,e.detach(i)),s--;else{let W=e.create(i,t[i]);e.attach(i,W),i++,s++}}for(;i<=c;)nc(e,r,n,i,t[i]),i++}else if(t!=null){let c=t[Symbol.iterator](),u=c.next();for(;!u.done&&i<=s;){let l=e.at(i),p=u.value,g=To(i,l,i,p,n);if(g!==0)g<0&&e.updateValue(i,p),i++,u=c.next();else{r??=new ur,o??=rc(e,i,s,n);let f=n(i,p);if(li(e,r,i,f))e.updateValue(i,p),i++,s++,u=c.next();else if(!o.has(f))e.attach(i,e.create(i,p)),i++,s++,u=c.next();else{let m=n(i,l);r.set(m,e.detach(i)),s--}}}for(;!u.done;)nc(e,r,n,e.length,u.value),u=c.next()}for(;i<=s;)e.destroy(e.detach(s--));r?.forEach(c=>{e.destroy(c)})}function li(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function nc(e,t,n,r,o){if(li(e,t,r,n(r,o)))e.updateValue(r,o);else{let i=e.create(r,o);e.attach(r,i)}}function rc(e,t,n,r){let o=new Set;for(let i=t;i<=n;i++)o.add(r(i,e.at(i)));return o}var ur=class{kvMap=new Map;_vMap=void 0;has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;let n=this.kvMap.get(t);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(r);)r=o.get(r);o.set(r,n)}else this.kvMap.set(t,n)}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),this._vMap!==void 0){let o=this._vMap;for(;o.has(r);)r=o.get(r),t(r,n)}}};function os(e,t){Ft("NgControlFlow");let n=U(),r=Dr(),o=n[r]!==Ye?n[r]:-1,i=o!==-1?lr(n,J+o):void 0,s=0;if(We(n,r,e)){let a=R(null);try{if(i!==void 0&&qu(i,s),e!==-1){let c=J+e,u=lr(n,c),l=hi(n[N],c),p=ts(u,l.tView.ssrId),g=Wi(n,l,t,{dehydratedView:p});Xi(u,g,s,qi(l,p))}}finally{R(a)}}else if(i!==void 0){let a=Wu(i,s);a!==void 0&&(a[K]=t)}}var di=class{lContainer;$implicit;$index;constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-oe}};var fi=class{hasEmptyBlock;trackByFn;liveCollection;constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}};function ol(e,t,n,r,o,i,s,a,c,u,l,p,g){Ft("NgControlFlow");let f=U(),m=Ie(),y=c!==void 0,w=U(),x=a?s.bind(w[Te][K]):s,W=new fi(y,x);w[J+e]=W,ii(f,m,e+1,t,n,r,o,Nt(m.consts,i)),y&&ii(f,m,e+2,c,u,l,p,Nt(m.consts,g))}var pi=class extends ui{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r}get length(){return this.lContainer.length-oe}at(t){return this.getLView(t)[K].$implicit}attach(t,n){let r=n[Xt];this.needsIndexUpdate||=t!==this.length,Xi(this.lContainer,n,t,qi(this.templateTNode,r))}detach(t){return this.needsIndexUpdate||=t!==this.length-1,Yg(this.lContainer,t)}create(t,n){let r=ts(this.lContainer,this.templateTNode.tView.ssrId),o=Wi(this.hostLView,this.templateTNode,new di(this.lContainer,n,t),{dehydratedView:r});return this.operationsCounter?.recordCreate(),o}destroy(t){Qi(t[N],t),this.operationsCounter?.recordDestroy()}updateValue(t,n){this.getLView(t)[K].$implicit=n}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t<this.length;t++)this.getLView(t)[K].$index=t}getLView(t){return Qg(this.lContainer,t)}};function il(e){let t=R(null),n=Ze();try{let r=U(),o=r[N],i=r[n],s=n+1,a=lr(r,s);if(i.liveCollection===void 0){let u=hi(o,s);i.liveCollection=new pi(a,r,u)}else i.liveCollection.reset();let c=i.liveCollection;if(Zg(c,e,i.trackByFn),c.updateIndexes(),i.hasEmptyBlock){let u=Dr(),l=c.length===0;if(We(r,u,l)){let p=n+2,g=lr(r,p);if(l){let f=hi(o,p),m=ts(g,f.tView.ssrId),y=Wi(r,f,void 0,{dehydratedView:m});Xi(g,y,0,qi(f,m))}else qu(g,0)}}}finally{R(t)}}function lr(e,t){return e[t]}function Yg(e,t){return es(e,t)}function Qg(e,t){return Wu(e,t)}function hi(e,t){return Ci(e,t)}function pt(e,t,n,r){let o=U(),i=Ie(),s=J+e,a=o[ae],c=i.firstCreatePass?Ku(s,i,o,t,Ou,Rc(),n,r):i.data[s],u=Kg(i,o,c,a,t,e);o[s]=u;let l=bc(c);return Pt(c,!0),Mu(a,u,c),!Pu(c)&&Ni()&&Ki(i,o,u,c),(_f()===0||l)&&un(u,o),bf(),l&&($i(i,o,c),Du(i,c,o)),r!==null&&Ru(o,c),pt}function Qe(){let e=cn();Pc()?Af():(e=e.parent,Pt(e,!1));let t=e;Sf(t)&&Nf(),Mf();let n=Ie();return n.firstCreatePass&&Ju(n,t),t.classesWithoutHost!=null&&Wf(t)&&ec(n,t,U(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&qf(t)&&ec(n,t,U(),t.stylesWithoutHost,!1),Qe}function Rr(e,t,n,r){return pt(e,t,n,r),Qe(),Rr}var Kg=(e,t,n,r,o,i)=>(xi(!0),_u(r,o,Uf()));var dr="en-US";var Jg=dr;function Xg(e){typeof e=="string"&&(Jg=e.toLowerCase().replace(/_/g,"-"))}function ht(e=1){return Bf(e)}function is(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function dn(e,t=""){let n=U(),r=Ie(),o=e+J,i=r.firstCreatePass?Tr(r,o,1,t,null):r.data[o],s=em(r,n,i,t,e);n[o]=s,Ni()&&Ki(r,n,s,i),Pt(i,!1)}var em=(e,t,n,r,o)=>(xi(!0),Gp(t[ae],r));function Or(e){return fn("",e,""),Or}function fn(e,t,n){let r=U(),o=Ag(r,e,t,n);return o!==Ye&&tm(r,Ze(),o),fn}function tm(e,t,n){let r=Nc(t,e);zp(e[ae],r,n)}var sl={};function ss(e){let t=Ie(),n=U(),r=e+J,o=Tr(t,r,128,null,null);return Pt(o,!1),is(t,n,r,sl),ss}function al(e){Ft("NgLet");let t=Ie(),n=U(),r=Ze();return is(t,n,r,e),e}function as(e){let t=Rf(),n=_i(t,J+e);if(n===sl)throw new P(314,!1);return n}function cl(e,t){let n=e[t];return n===Ye?void 0:n}function nm(e,t,n,r,o,i){let s=t+n;return We(e,s,o)?el(e,s+1,i?r.call(i,o):r(o)):cl(e,s+1)}function rm(e,t,n,r,o,i,s){let a=t+n;return Eg(e,a,o,i)?el(e,a+2,s?r.call(s,o,i):r(o,i)):cl(e,a+2)}function Pr(e,t){let n=Ie(),r,o=e+J;n.firstCreatePass?(r=om(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];let i=r.factory||(r.factory=bt(r.type,!0)),s,a=re(Sr);try{let c=Xn(!1),u=i();return Xn(c),is(n,U(),o,u),u}finally{re(a)}}function om(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function ul(e,t,n){let r=e+J,o=U(),i=_i(o,r);return ll(o,r)?nm(o,kc(),t,i.transform,n,i):i.transform(n)}function cs(e,t,n,r){let o=e+J,i=U(),s=_i(i,o);return ll(i,o)?rm(i,kc(),t,s.transform,n,r,s):s.transform(n,r)}function ll(e,t){return e[N].data[t].pure}var im=(()=>{class e{zone=F(Y);changeDetectionScheduler=F($e);applicationRef=F(qe);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function sm({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new Y(Ce(ue({},am()),{scheduleInRootZone:n})),[{provide:Y,useFactory:e},{provide:Kt,multi:!0,useFactory:()=>{let r=F(im,{optional:!0});return()=>r.initialize()}},{provide:Kt,multi:!0,useFactory:()=>{let r=F(cm);return()=>{r.initialize()}}},t===!0?{provide:ou,useValue:!0}:[],{provide:Ri,useValue:n??nu}]}function am(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var cm=(()=>{class e{subscription=new X;initialized=!1;zone=F(Y);pendingTasks=F(Ir);initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{Y.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{Y.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var dl=(()=>{class e{appRef=F(qe);taskService=F(Ir);ngZone=F(Y);zonelessEnabled=F(Er);tracing=F(Cr,{optional:!0});disableScheduling=F(ou,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new X;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(nr):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(F(Ri,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof rr||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;let r=!1;switch(n){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2,r=!0;break}case 12:{this.appRef.dirtyFlags|=16,r=!0;break}case 13:{this.appRef.dirtyFlags|=2,r=!0;break}case 11:{r=!0;break}case 9:case 8:case 7:case 10:default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(r))return;let o=this.useMicrotaskScheduler?Ba:iu;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>o(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>o(()=>this.tick()))}shouldScheduleTick(n){return!(this.disableScheduling&&!n||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(nr+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){throw this.taskService.remove(n),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,Ba(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static \u0275fac=function(r){return new(r||e)};static \u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function fl(){return Ft("NgZoneless"),yc([{provide:$e,useExisting:dl},{provide:Y,useClass:rr},{provide:Er,useValue:!0},{provide:Ri,useValue:!1},[]])}function um(){return typeof $localize<"u"&&$localize.locale||dr}var us=new k("",{providedIn:"root",factory:()=>F(us,T.Optional|T.SkipSelf)||um()});var gi=new k(""),lm=new k("");function Wt(e){return!e.moduleRef}function dm(e){let t=Wt(e)?e.r3Injector:e.moduleRef.injector,n=t.get(Y);return n.run(()=>{Wt(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(Ge,null),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:i=>{r.handleError(i)}})}),Wt(e)){let i=()=>t.destroy(),s=e.platformInjector.get(gi);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(gi);s.add(i),e.moduleRef.onDestroy(()=>{Wn(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return pm(r,n,()=>{let i=t.get(rl);return i.runInitializers(),i.donePromise.then(()=>{let s=t.get(us,dr);if(Xg(s||dr),!t.get(lm,!0))return Wt(e)?t.get(qe):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(Wt(e)){let c=t.get(qe);return e.rootComponent!==void 0&&c.bootstrap(e.rootComponent),c}else return fm(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}function fm(e,t){let n=e.injector.get(qe);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(e.instance.ngDoBootstrap)e.instance.ngDoBootstrap(n);else throw new P(-403,!1);t.push(e)}function pm(e,t,n){try{let r=n();return ns(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}var qn=null;function hm(e=[],t){return Se.create({name:t,providers:[{provide:hr,useValue:"platform"},{provide:gi,useValue:new Set([()=>qn=null])},...e]})}function gm(e=[]){if(qn)return qn;let t=hm(e);return qn=t,Tg(),mm(t),t}function mm(e){let t=e.get(Li,null);Ic(e,()=>{t?.forEach(n=>n())})}function pl(e){H(8);try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,o=gm(r),i=[sm({}),{provide:$e,useExisting:dl},...n||[]],s=new ar({providers:i,parent:o,debugName:"",runEnvironmentInitializers:!1});return dm({r3Injector:s.injector,platformInjector:o,rootComponent:t})}catch(t){return Promise.reject(t)}finally{H(9)}}var oc=class{[Pe];constructor(t){this[Pe]=t}destroy(){this[Pe].destroy()}};var ym={schedule(e,t){let n=setTimeout(e,t);return()=>clearTimeout(n)}};function vm(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function Dm(e){return!!e&&e.nodeType===Node.ELEMENT_NODE}var ls;function Em(e,t){if(!ls){let n=Element.prototype;ls=n.matches||n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}return e.nodeType===Node.ELEMENT_NODE?ls.call(e,t):!1}function Im(e){let t={};return e.forEach(({propName:n,templateName:r,transform:o})=>{t[vm(r)]=[n,o]}),t}function wm(e,t){return t.get(ze).resolveComponentFactory(e).inputs}function Cm(e,t){let n=e.childNodes,r=t.map(()=>[]),o=-1;t.some((i,s)=>i==="*"?(o=s,!0):!1);for(let i=0,s=n.length;i<s;++i){let a=n[i],c=_m(a,t,o);c!==-1&&r[c].push(a)}return r}function _m(e,t,n){let r=n;return Dm(e)&&t.some((o,i)=>o!=="*"&&Em(e,o)?(r=i,!0):!1),r}var bm=10,ds=class{componentFactory;inputMap=new Map;constructor(t,n){this.componentFactory=n.get(ze).resolveComponentFactory(t);for(let r of this.componentFactory.inputs)this.inputMap.set(r.propName,r.templateName)}create(t){return new fs(this.componentFactory,t,this.inputMap)}},fs=class{componentFactory;injector;inputMap;eventEmitters=new Gt(1);events=this.eventEmitters.pipe(mo(t=>go(...t)));componentRef=null;scheduledDestroyFn=null;initialInputValues=new Map;ngZone;elementZone;appRef;cdScheduler;constructor(t,n,r){this.componentFactory=t,this.injector=n,this.inputMap=r,this.ngZone=this.injector.get(Y),this.appRef=this.injector.get(qe),this.cdScheduler=n.get($e),this.elementZone=typeof Zone>"u"?null:this.ngZone.run(()=>Zone.current)}connect(t){this.runInZone(()=>{if(this.scheduledDestroyFn!==null){this.scheduledDestroyFn(),this.scheduledDestroyFn=null;return}this.componentRef===null&&this.initializeComponent(t)})}disconnect(){this.runInZone(()=>{this.componentRef===null||this.scheduledDestroyFn!==null||(this.scheduledDestroyFn=ym.schedule(()=>{this.componentRef!==null&&(this.componentRef.destroy(),this.componentRef=null)},bm))})}getInputValue(t){return this.runInZone(()=>this.componentRef===null?this.initialInputValues.get(t):this.componentRef.instance[t])}setInputValue(t,n){if(this.componentRef===null){this.initialInputValues.set(t,n);return}this.runInZone(()=>{this.componentRef.setInput(this.inputMap.get(t)??t,n),this.componentRef.hostView.dirty&&(this.componentRef.changeDetectorRef.markForRefresh(),this.cdScheduler.notify(6))})}initializeComponent(t){let n=Se.create({providers:[],parent:this.injector}),r=Cm(t,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(n,r,t),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.appRef.attachView(this.componentRef.hostView),this.componentRef.hostView.detectChanges()}initializeInputs(){for(let[t,n]of this.initialInputValues)this.setInputValue(t,n);this.initialInputValues.clear()}initializeOutputs(t){let n=this.componentFactory.outputs.map(({propName:r,templateName:o})=>{let i=t.instance[r];return new z(s=>{let a=i.subscribe(c=>s.next({name:o,value:c}));return()=>a.unsubscribe()})});this.eventEmitters.next(n)}runInZone(t){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(t):t()}},ps=class extends HTMLElement{ngElementEventsSubscription=null};function gl(e,t){let n=wm(e,t.injector),r=t.strategyFactory||new ds(e,t.injector),o=Im(n);class i extends ps{injector;static observedAttributes=Object.keys(o);get ngElementStrategy(){if(!this._ngElementStrategy){let a=this._ngElementStrategy=r.create(this.injector||t.injector);n.forEach(({propName:c,transform:u})=>{if(!this.hasOwnProperty(c))return;let l=this[c];delete this[c],a.setInputValue(c,l,u)})}return this._ngElementStrategy}_ngElementStrategy;constructor(a){super(),this.injector=a}attributeChangedCallback(a,c,u,l){let[p,g]=o[a];this.ngElementStrategy.setInputValue(p,u,g)}connectedCallback(){let a=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),a=!0),this.ngElementStrategy.connect(this),a||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(a=>{let c=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(c)})}}return n.forEach(({propName:s,transform:a})=>{Object.defineProperty(i.prototype,s,{get(){return this.ngElementStrategy.getInputValue(s)},set(c){this.ngElementStrategy.setInputValue(s,c,a)},configurable:!0,enumerable:!0})}),i}var ml=null;function hs(){return ml}function yl(e){ml??=e}var kr=class{};var Ke=new k("");function vl(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[o,i]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}var Dl="browser",Mm="server";function gs(e){return e===Mm}var Lr=class{};var ys=class extends kr{supportsDOMEvents=!0},vs=class e extends ys{static makeCurrent(){yl(new e)}onAndCancel(t,n,r,o){return t.addEventListener(n,r,o),()=>{t.removeEventListener(n,r,o)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.remove()}createElement(t,n){return n=n||this.getDefaultDocument(),n.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=Tm();return n==null?null:Sm(n)}resetBaseElement(){pn=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return vl(document.cookie,t)}},pn=null;function Tm(){return pn=pn||document.querySelector("base"),pn?pn.getAttribute("href"):null}function Sm(e){return new URL(e,document.baseURI).pathname}var Nm=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||e)};static \u0275prov=q({token:e,factory:e.\u0275fac})}return e})(),Ds=new k(""),bl=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,r){this._zone=r,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,o,i){return this._findPluginFor(r).addEventListener(n,r,o,i)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new P(5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(r){return new(r||e)(L(Ds),L(Y))};static \u0275prov=q({token:e,factory:e.\u0275fac})}return e})(),jr=class{_doc;constructor(t){this._doc=t}manager},Vr="ng-app-id";function El(e){for(let t of e)t.remove()}function Il(e,t){let n=t.createElement("style");return n.textContent=e,n}function xm(e,t,n,r){let o=e.head?.querySelectorAll(`style[${Vr}="${t}"],link[${Vr}="${t}"]`);if(o)for(let i of o)i.removeAttribute(Vr),i instanceof HTMLLinkElement?r.set(i.href.slice(i.href.lastIndexOf("/")+1),{usage:0,elements:[i]}):i.textContent&&n.set(i.textContent,{usage:0,elements:[i]})}function Es(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var Ml=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,this.isServer=gs(i),xm(n,r,this.inline,this.external),this.hosts.add(n.head)}addStyles(n,r){for(let o of n)this.addUsage(o,this.inline,Il);r?.forEach(o=>this.addUsage(o,this.external,Es))}removeStyles(n,r){for(let o of n)this.removeUsage(o,this.inline);r?.forEach(o=>this.removeUsage(o,this.external))}addUsage(n,r,o){let i=r.get(n);i?i.usage++:r.set(n,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,o(n,this.doc)))})}removeUsage(n,r){let o=r.get(n);o&&(o.usage--,o.usage<=0&&(El(o.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])El(n);this.hosts.clear()}addHost(n){this.hosts.add(n);for(let[r,{elements:o}]of this.inline)o.push(this.addElement(n,Il(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(n,Es(r,this.doc)))}removeHost(n){this.hosts.delete(n)}addElement(n,r){return this.nonce&&r.setAttribute("nonce",this.nonce),this.isServer&&r.setAttribute(Vr,this.appId),n.appendChild(r)}static \u0275fac=function(r){return new(r||e)(L(Ke),L(ki),L(Vi,8),L(ln))};static \u0275prov=q({token:e,factory:e.\u0275fac})}return e})(),ms={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},ws=/%COMP%/g;var Tl="%COMP%",Am=`_nghost-${Tl}`,Rm=`_ngcontent-${Tl}`,Om=!0,Pm=new k("",{providedIn:"root",factory:()=>Om});function Fm(e){return Rm.replace(ws,e)}function km(e){return Am.replace(ws,e)}function Sl(e,t){return t.map(n=>n.replace(ws,e))}var wl=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(n,r,o,i,s,a,c,u=null,l=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.platformId=a,this.ngZone=c,this.nonce=u,this.tracingService=l,this.platformIsServer=gs(a),this.defaultRenderer=new hn(n,s,c,this.platformIsServer,this.tracingService)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Ne.ShadowDom&&(r=Ce(ue({},r),{encapsulation:Ne.Emulated}));let o=this.getOrCreateRenderer(n,r);return o instanceof Br?o.applyToHost(n):o instanceof gn&&o.applyStyles(),o}getOrCreateRenderer(n,r){let o=this.rendererByCompId,i=o.get(r.id);if(!i){let s=this.doc,a=this.ngZone,c=this.eventManager,u=this.sharedStylesHost,l=this.removeStylesOnCompDestroy,p=this.platformIsServer,g=this.tracingService;switch(r.encapsulation){case Ne.Emulated:i=new Br(c,u,r,this.appId,l,s,a,p,g);break;case Ne.ShadowDom:return new Is(c,u,n,r,s,a,this.nonce,p,g);default:i=new gn(c,u,r,l,s,a,p,g);break}o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(n){this.rendererByCompId.delete(n)}static \u0275fac=function(r){return new(r||e)(L(bl),L(Ml),L(ki),L(Pm),L(Ke),L(ln),L(Y),L(Vi),L(Cr,8))};static \u0275prov=q({token:e,factory:e.\u0275fac})}return e})(),hn=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(t,n,r,o,i){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=o,this.tracingService=i}destroy(){}destroyNode=null;createElement(t,n){return n?this.doc.createElementNS(ms[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(Cl(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(Cl(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){n.remove()}selectRootElement(t,n){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new P(-5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;let i=ms[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let o=ms[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,o){o&(Le.DashCase|Le.Important)?t.style.setProperty(n,r,o&Le.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&Le.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t!=null&&(t[n]=r)}setValue(t,n){t.nodeValue=n}listen(t,n,r,o){if(typeof t=="string"&&(t=hs().getGlobalEventTarget(this.doc,t),!t))throw new Error(`Unsupported event target ${t} for event ${n}`);let i=this.decoratePreventDefault(r);return this.tracingService!==null&&this.tracingService.wrapEventListener&&(i=this.tracingService.wrapEventListener(t,n,i)),this.eventManager.addEventListener(t,n,i,o)}decoratePreventDefault(t){return n=>{if(n==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(n)):t(n))===!1&&n.preventDefault()}}};function Cl(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var Is=class extends hn{sharedStylesHost;hostEl;shadowRoot;constructor(t,n,r,o,i,s,a,c,u){super(t,i,s,c,u),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let l=o.styles;l=Sl(o.id,l);for(let g of l){let f=document.createElement("style");a&&f.setAttribute("nonce",a),f.textContent=g,this.shadowRoot.appendChild(f)}let p=o.getExternalStyles?.();if(p)for(let g of p){let f=Es(g,i);a&&f.setAttribute("nonce",a),this.shadowRoot.appendChild(f)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(null,n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},gn=class extends hn{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(t,n,r,o,i,s,a,c,u){super(t,i,s,a,c),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o;let l=r.styles;this.styles=u?Sl(u,l):l,this.styleUrls=r.getExternalStyles?.(u)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},Br=class extends gn{contentAttr;hostAttr;constructor(t,n,r,o,i,s,a,c,u){let l=o+"-"+r.id;super(t,n,r,i,s,a,c,u,l),this.contentAttr=Fm(l),this.hostAttr=km(l)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){let r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}},Lm=(()=>{class e extends jr{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o,i){return n.addEventListener(r,o,i),()=>this.removeEventListener(n,r,o,i)}removeEventListener(n,r,o,i){return n.removeEventListener(r,o,i)}static \u0275fac=function(r){return new(r||e)(L(Ke))};static \u0275prov=q({token:e,factory:e.\u0275fac})}return e})(),_l=["alt","control","meta","shift"],Vm={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},jm={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},Bm=(()=>{class e extends jr{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,o,i){let s=e.parseEventName(r),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>hs().onAndCancel(n,s.domEventName,a,i))}static parseEventName(n){let r=n.toLowerCase().split("."),o=r.shift();if(r.length===0||!(o==="keydown"||o==="keyup"))return null;let i=e._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),_l.forEach(u=>{let l=r.indexOf(u);l>-1&&(r.splice(l,1),s+=u+".")}),s+=i,r.length!=0||i.length===0)return null;let c={};return c.domEventName=o,c.fullKey=s,c}static matchEventFullKeyCode(n,r){let o=Vm[n.key]||n.key,i="";return r.indexOf("code.")>-1&&(o=n.code,i="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),_l.forEach(s=>{if(s!==o){let a=jm[s];a(n)&&(i+=s+".")}}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return n==="esc"?"escape":n}static \u0275fac=function(r){return new(r||e)(L(Ke))};static \u0275prov=q({token:e,factory:e.\u0275fac})}return e})();function Nl(e){return pl(Hm(e))}function Hm(e){return{appProviders:[...Wm,...e?.providers??[]],platformProviders:zm}}function Um(){vs.makeCurrent()}function $m(){return new Ge}function Gm(){return hu(document),document}var zm=[{provide:ln,useValue:Dl},{provide:Li,useValue:Um,multi:!0},{provide:Ke,useFactory:Gm,deps:[]}];var Wm=[{provide:hr,useValue:"root"},{provide:Ge,useFactory:$m,deps:[]},{provide:Ds,useClass:Lm,multi:!0,deps:[Ke]},{provide:Ds,useClass:Bm,multi:!0,deps:[Ke]},wl,Ml,bl,{provide:xt,useExisting:wl},{provide:Lr,useClass:Nm,deps:[]},[]];var xl={apiURL:"http://localhost:3003",debug:!0,mode:"local"};var ce=ld(Rl());var Ol={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=`
7
+ `)}`}function bt(e,t){let n=e.hasOwnProperty(Sa);return n?e[Sa]:null}function Ei(e,t){e.forEach(n=>Array.isArray(n)?Ei(n,t):t(n))}function Kd(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function fc(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Jd(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(o===1)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;){let i=o-2;e[o]=e[i],o--}e[t]=n,e[t+1]=r}}function Xd(e,t,n){let r=sn(e,t);return r>=0?e[r|1]=n:(r=~r,Jd(e,r,t,n)),r}function yo(e,t){let n=sn(e,t);if(n>=0)return e[n|1]}function sn(e,t){return ef(e,t,1)}function ef(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<<n];if(t===s)return i<<n;s>t?o=i:r=i+1}return~(o<<n)}var Mt={},rt=[],Kt=new k(""),pc=new k("",-1),hc=new k(""),Yn=class{get(t,n=Qt){if(n===Qt){let r=new Error(`NullInjectorError: No provider for ${de(t)}!`);throw r.name="NullInjectorError",r}return n}};function pr(e){return e[kd]||null}function gc(e){return e[Ld]||null}function mc(e){return e[Vd]||null}function tf(e){let t=pr(e)||gc(e)||mc(e);return t!==null&&t.standalone}function yc(e){return{\u0275providers:e}}function nf(...e){return{\u0275providers:vc(!0,e),\u0275fromNgModule:!0}}function vc(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return Ei(t,s=>{let a=s;xo(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&Dc(o,i),n}function Dc(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];Ii(o,i=>{t(i,r)})}}function xo(e,t,n,r){if(e=De(e),!e)return!1;let o=null,i=Ma(e),s=!i&&pr(e);if(!i&&!s){let c=e.ngModule;if(i=Ma(c),i)o=c;else return!1}else{if(s&&!s.standalone)return!1;o=e}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let u of c)xo(u,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let u;try{Ei(i.imports,l=>{xo(l,t,n,r)&&(u||=[],u.push(l))})}finally{}u!==void 0&&Dc(u,t)}if(!a){let u=bt(o)||(()=>new o);t({provide:o,useFactory:u,deps:rt},o),t({provide:hc,useValue:o,multi:!0},o),t({provide:Kt,useValue:()=>L(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let u=e;Ii(c,l=>{t(l,u)})}}else return!1;return o!==e&&e.providers!==void 0}function Ii(e,t){for(let n of e)uc(n)&&(n=n.\u0275providers),Array.isArray(n)?Ii(n,t):t(n)}var rf=B({provide:String,useValue:B});function Ec(e){return e!==null&&typeof e=="object"&&rf in e}function of(e){return!!(e&&e.useExisting)}function sf(e){return!!(e&&e.useFactory)}function Ao(e){return typeof e=="function"}var hr=new k(""),$n={},af={},vo;function wi(){return vo===void 0&&(vo=new Yn),vo}var ot=class{},Jt=class extends ot{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,Oo(t,s=>this.processProvider(s)),this.records.set(pc,Et(void 0,this)),o.has("environment")&&this.records.set(ot,Et(void 0,this));let i=this.records.get(hr);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(hc,rt,T.Self))}destroy(){qt(this),this._destroyed=!0;let t=R(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),R(t)}}onDestroy(t){return qt(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){qt(this);let n=je(this),r=re(void 0),o;try{return t()}finally{je(n),re(r)}}get(t,n=Qt,r=T.Default){if(qt(this),t.hasOwnProperty(Na))return t[Na](this);r=fr(r);let o,i=je(this),s=re(void 0);try{if(!(r&T.SkipSelf)){let c=this.records.get(t);if(c===void 0){let u=pf(t)&&yi(t);u&&this.injectableDefInScope(u)?c=Et(Ro(t),$n):c=null,this.records.set(t,c)}if(c!=null)return this.hydrate(t,c)}let a=r&T.Self?wi():this.parent;return n=r&T.Optional&&n===Qt?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[Zn]=a[Zn]||[]).unshift(de(t)),i)throw a;return Yd(a,t,"R3InjectorError",this.source)}else throw a}finally{re(s),je(i)}}resolveInjectorInitializers(){let t=R(null),n=je(this),r=re(void 0),o;try{let i=this.get(Kt,rt,T.Self);for(let s of i)s()}finally{je(n),re(r),R(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(de(r));return`R3Injector[${t.join(", ")}]`}processProvider(t){t=De(t);let n=Ao(t)?t:De(t&&t.provide),r=uf(t);if(!Ao(t)&&t.multi===!0){let o=this.records.get(n);o||(o=Et(void 0,$n,!0),o.factory=()=>No(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){let r=R(null);try{return n.value===$n&&(n.value=af,n.value=n.factory()),typeof n.value=="object"&&n.value&&ff(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{R(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=De(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function Ro(e){let t=yi(e),n=t!==null?t.factory:bt(e);if(n!==null)return n;if(e instanceof k)throw new P(204,!1);if(e instanceof Function)return cf(e);throw new P(204,!1)}function cf(e){if(e.length>0)throw new P(204,!1);let n=Pd(e);return n!==null?()=>n.factory(e):()=>new e}function uf(e){if(Ec(e))return Et(void 0,e.useValue);{let t=lf(e);return Et(t,$n)}}function lf(e,t,n){let r;if(Ao(e)){let o=De(e);return bt(o)||Ro(o)}else if(Ec(e))r=()=>De(e.useValue);else if(sf(e))r=()=>e.useFactory(...No(e.deps||[]));else if(of(e))r=()=>L(De(e.useExisting));else{let o=De(e&&(e.useClass||e.provide));if(df(e))r=()=>new o(...No(e.deps));else return bt(o)||Ro(o)}return r}function qt(e){if(e.destroyed)throw new P(205,!1)}function Et(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function df(e){return!!e.deps}function ff(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function pf(e){return typeof e=="function"||typeof e=="object"&&e instanceof k}function Oo(e,t){for(let n of e)Array.isArray(n)?Oo(n,t):n&&uc(n)?Oo(n.\u0275providers,t):t(n)}function Ic(e,t){e instanceof Jt&&qt(e);let n,r=je(e),o=re(void 0);try{return t()}finally{je(r),re(o)}}function hf(){return lc()!==void 0||Wd()!=null}var Ve=0,N=1,I=2,fe=3,Ee=4,xe=5,Xt=6,Aa=7,K=8,en=9,ke=10,ae=11,tn=12,Ra=13,Ot=14,Te=15,Tt=16,It=17,St=18,gr=19,wc=20,He=21,Do=22,Qn=23,se=24,Eo=25,J=26,Cc=1;var nn=7,gf=8,Kn=9,oe=10;function nt(e){return Array.isArray(e)&&typeof e[Cc]=="object"}function ut(e){return Array.isArray(e)&&e[Cc]===!0}function _c(e){return(e.flags&4)!==0}function mr(e){return e.componentOffset>-1}function bc(e){return(e.flags&1)===1}function lt(e){return!!e.template}function Jn(e){return(e[I]&512)!==0}function an(e){return(e[I]&256)===256}var Po=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function Mc(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}function mf(e){return e.type.prototype.ngOnChanges&&(e.setInput=vf),yf}function yf(){let e=Sc(this),t=e?.current;if(t){let n=e.previous;if(n===Mt)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function vf(e,t,n,r,o){let i=this.declaredInputs[r],s=Sc(e)||Df(e,{previous:Mt,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[i];a[i]=new Po(u&&u.currentValue,n,c===Mt),Mc(e,t,o,n)}var Tc="__ngSimpleChanges__";function Sc(e){return e[Tc]||null}function Df(e,t){return e[Tc]=t}var Oa=null;var H=function(e,t=null,n){Oa?.(e,t,n)},Ef="svg",If="math";function Ue(e){for(;Array.isArray(e);)e=e[Ve];return e}function Nc(e,t){return Ue(t[e])}function dt(e,t){return Ue(t[e.index])}function Ci(e,t){return e.data[t]}function _i(e,t){return e[t]}function it(e,t){let n=t[e];return nt(n)?n:n[Ve]}function bi(e){return(e[I]&128)===128}function Nt(e,t){return t==null?null:e[t]}function xc(e){e[It]=0}function Mi(e){e[I]&1024||(e[I]|=1024,bi(e)&&vr(e))}function wf(e,t){for(;e>0;)t=t[Ot],e--;return t}function yr(e){return!!(e[I]&9216||e[se]?.dirty)}function Fo(e){e[ke].changeDetectionScheduler?.notify(8),e[I]&64&&(e[I]|=1024),yr(e)&&vr(e)}function vr(e){e[ke].changeDetectionScheduler?.notify(0);let t=st(e);for(;t!==null&&!(t[I]&8192||(t[I]|=8192,!bi(t)));)t=st(t)}function Ac(e,t){if(an(e))throw new P(911,!1);e[He]===null&&(e[He]=[]),e[He].push(t)}function Cf(e,t){if(e[He]===null)return;let n=e[He].indexOf(t);n!==-1&&e[He].splice(n,1)}function st(e){let t=e[fe];return ut(t)?t[fe]:t}var S={lFrame:Bc(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var ko=!1;function _f(){return S.lFrame.elementDepthCount}function bf(){S.lFrame.elementDepthCount++}function Mf(){S.lFrame.elementDepthCount--}function Rc(){return S.bindingsEnabled}function Tf(){return S.skipHydrationRootTNode!==null}function Sf(e){return S.skipHydrationRootTNode===e}function Nf(){S.skipHydrationRootTNode=null}function U(){return S.lFrame.lView}function Ie(){return S.lFrame.tView}function cn(){let e=Oc();for(;e!==null&&e.type===64;)e=e.parent;return e}function Oc(){return S.lFrame.currentTNode}function xf(){let e=S.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Pt(e,t){let n=S.lFrame;n.currentTNode=e,n.isParent=t}function Pc(){return S.lFrame.isParent}function Af(){S.lFrame.isParent=!1}function Rf(){return S.lFrame.contextLView}function Fc(){return ko}function Pa(e){let t=ko;return ko=e,t}function kc(){let e=S.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Of(e){return S.lFrame.bindingIndex=e}function Dr(){return S.lFrame.bindingIndex++}function Pf(e){let t=S.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Ff(){return S.lFrame.inI18n}function kf(e,t){let n=S.lFrame;n.bindingIndex=n.bindingRootIndex=e,Lo(t)}function Lf(){return S.lFrame.currentDirectiveIndex}function Lo(e){S.lFrame.currentDirectiveIndex=e}function Vf(e){let t=S.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function Lc(e){S.lFrame.currentQueryIndex=e}function jf(e){let t=e[N];return t.type===2?t.declTNode:t.type===1?e[xe]:null}function Vc(e,t,n){if(n&T.SkipSelf){let o=t,i=e;for(;o=o.parent,o===null&&!(n&T.Host);)if(o=jf(i),o===null||(i=i[Ot],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=S.lFrame=jc();return r.currentTNode=t,r.lView=e,!0}function Ti(e){let t=jc(),n=e[N];S.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function jc(){let e=S.lFrame,t=e===null?null:e.child;return t===null?Bc(e):t}function Bc(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function Hc(){let e=S.lFrame;return S.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Uc=Hc;function Si(){let e=Hc();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Bf(e){return(S.lFrame.contextLView=wf(e,S.lFrame.contextLView))[K]}function Ze(){return S.lFrame.selectedIndex}function at(e){S.lFrame.selectedIndex=e}function Hf(){let e=S.lFrame;return Ci(e.tView,e.selectedIndex)}function Uf(){return S.lFrame.currentNamespace}var $c=!0;function Ni(){return $c}function xi(e){$c=e}function $f(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=mf(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}function Gc(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){let i=e.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:c,ngAfterViewChecked:u,ngOnDestroy:l}=i;s&&(e.contentHooks??=[]).push(-n,s),a&&((e.contentHooks??=[]).push(n,a),(e.contentCheckHooks??=[]).push(n,a)),c&&(e.viewHooks??=[]).push(-n,c),u&&((e.viewHooks??=[]).push(n,u),(e.viewCheckHooks??=[]).push(n,u)),l!=null&&(e.destroyHooks??=[]).push(n,l)}}function Gn(e,t,n){zc(e,t,3,n)}function zn(e,t,n,r){(e[I]&3)===n&&zc(e,t,n,r)}function Io(e,t){let n=e[I];(n&3)===t&&(n&=16383,n+=1,e[I]=n)}function zc(e,t,n,r){let o=r!==void 0?e[It]&65535:0,i=r??-1,s=t.length-1,a=0;for(let c=o;c<s;c++)if(typeof t[c+1]=="number"){if(a=t[c],r!=null&&a>=r)break}else t[c]<0&&(e[It]+=65536),(a<i||i==-1)&&(Gf(e,n,t,c),e[It]=(e[It]&4294901760)+c+2),c++}function Fa(e,t){H(4,e,t);let n=R(null);try{t.call(e)}finally{R(n),H(5,e,t)}}function Gf(e,t,n,r){let o=n[r]<0,i=n[r+1],s=o?-n[r]:n[r],a=e[s];o?e[I]>>14<e[It]>>16&&(e[I]&3)===t&&(e[I]+=16384,Fa(a,i)):Fa(a,i)}var _t=-1,rn=class{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,r){this.factory=t,this.canSeeViewProviders=n,this.injectImpl=r}};function zf(e){return e instanceof rn}function Wf(e){return(e.flags&8)!==0}function qf(e){return(e.flags&16)!==0}function Zf(e,t,n){let r=0;for(;r<n.length;){let o=n[r];if(typeof o=="number"){if(o!==0)break;r++;let i=n[r++],s=n[r++],a=n[r++];e.setAttribute(t,s,a,i)}else{let i=o,s=n[++r];Qf(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++}}return r}function Yf(e){return e===3||e===4||e===6}function Qf(e){return e.charCodeAt(0)===64}function Ai(e,t){if(!(t===null||t.length===0))if(e===null||e.length===0)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){let o=t[r];typeof o=="number"?n=o:n===0||(n===-1||n===2?ka(e,n,o,null,t[++r]):ka(e,n,o,null,null))}}return e}function ka(e,t,n,r,o){let i=0,s=e.length;if(t===-1)s=-1;else for(;i<e.length;){let a=e[i++];if(typeof a=="number"){if(a===t){s=-1;break}else if(a>t){s=i-1;break}}}for(;i<e.length;){let a=e[i];if(typeof a=="number")break;if(a===n){if(r===null){o!==null&&(e[i+1]=o);return}else if(r===e[i+1]){e[i+2]=o;return}}i++,r!==null&&i++,o!==null&&i++}s!==-1&&(e.splice(s,0,t),i=s+1),e.splice(i++,0,n),r!==null&&e.splice(i++,0,r),o!==null&&e.splice(i++,0,o)}var wo={},Vo=class{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=fr(r);let o=this.injector.get(t,wo,r);return o!==wo||n===wo?o:this.parentInjector.get(t,n,r)}};function Kf(e){return e!==_t}function jo(e){return e&32767}function Jf(e){return e>>16}function Bo(e,t){let n=Jf(e),r=t;for(;n>0;)r=r[Ot],n--;return r}var Ho=!0;function Xn(e){let t=Ho;return Ho=e,t}var Xf=256,Wc=Xf-1,qc=5,ep=0,Me={};function tp(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(Yt)&&(r=n[Yt]),r==null&&(r=n[Yt]=ep++);let o=r&Wc,i=1<<o;t.data[e+(o>>qc)]|=i}function Zc(e,t){let n=Yc(e,t);if(n!==-1)return n;let r=t[N];r.firstCreatePass&&(e.injectorIndex=t.length,Co(r.data,e),Co(t,null),Co(r.blueprint,null));let o=Qc(e,t),i=e.injectorIndex;if(Kf(o)){let s=jo(o),a=Bo(o,t),c=a[N].data;for(let u=0;u<8;u++)t[i+u]=a[s+u]|c[s+u]}return t[i+8]=o,i}function Co(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Yc(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function Qc(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;o!==null;){if(r=tu(o),r===null)return _t;if(n++,o=o[Ot],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return _t}function np(e,t,n){tp(e,t,n)}function Kc(e,t,n){if(n&T.Optional||e!==void 0)return e;Di(t,"NodeInjector")}function Jc(e,t,n,r){if(n&T.Optional&&r===void 0&&(r=null),(n&(T.Self|T.Host))===0){let o=e[en],i=re(void 0);try{return o?o.get(t,r,n&T.Optional):dc(t,r,n&T.Optional)}finally{re(i)}}return Kc(r,t,n)}function Xc(e,t,n,r=T.Default,o){if(e!==null){if(t[I]&2048&&!(r&T.Self)){let s=ap(e,t,n,r,Me);if(s!==Me)return s}let i=eu(e,t,n,r,Me);if(i!==Me)return i}return Jc(t,n,r,o)}function eu(e,t,n,r,o){let i=ip(n);if(typeof i=="function"){if(!Vc(t,e,r))return r&T.Host?Kc(o,n,r):Jc(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&T.Optional))Di(n);else return s}finally{Uc()}}else if(typeof i=="number"){let s=null,a=Yc(e,t),c=_t,u=r&T.Host?t[Te][xe]:null;for((a===-1||r&T.SkipSelf)&&(c=a===-1?Qc(e,t):t[a+8],c===_t||!Va(r,!1)?a=-1:(s=t[N],a=jo(c),t=Bo(c,t)));a!==-1;){let l=t[N];if(La(i,a,l.data)){let p=rp(a,t,n,s,r,u);if(p!==Me)return p}c=t[a+8],c!==_t&&Va(r,t[N].data[a+8]===u)&&La(i,a,t)?(s=l,a=jo(c),t=Bo(c,t)):a=-1}}return o}function rp(e,t,n,r,o,i){let s=t[N],a=s.data[e+8],c=r==null?mr(a)&&Ho:r!=s&&(a.type&3)!==0,u=o&T.Host&&i===a,l=op(a,s,n,c,u);return l!==null?Uo(t,s,l,a):Me}function op(e,t,n,r,o){let i=e.providerIndexes,s=t.data,a=i&1048575,c=e.directiveStart,u=e.directiveEnd,l=i>>20,p=r?a:a+l,g=o?a+l:u;for(let f=p;f<g;f++){let m=s[f];if(f<c&&n===m||f>=c&&m.type===n)return f}if(o){let f=s[c];if(f&&lt(f)&&f.type===n)return c}return null}function Uo(e,t,n,r){let o=e[n],i=t.data;if(zf(o)){let s=o;s.resolving&&Bd(jd(i[n]));let a=Xn(s.canSeeViewProviders);s.resolving=!0;let c,u=s.injectImpl?re(s.injectImpl):null,l=Vc(e,r,T.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&$f(n,i[n],t)}finally{u!==null&&re(u),Xn(a),s.resolving=!1,Uc()}}return o}function ip(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(Yt)?e[Yt]:void 0;return typeof t=="number"?t>=0?t&Wc:sp:t}function La(e,t,n){let r=1<<e;return!!(n[t+(e>>qc)]&r)}function Va(e,t){return!(e&T.Self)&&!(e&T.Host&&t)}var er=class{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return Xc(this._tNode,this._lView,t,fr(r),n)}};function sp(){return new er(cn(),U())}function ap(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[I]&2048&&!Jn(s);){let a=eu(i,s,n,r|T.Self,Me);if(a!==Me)return a;let c=i.parent;if(!c){let u=s[wc];if(u){let l=u.get(n,Me,r);if(l!==Me)return l}c=tu(s),s=s[Ot]}i=c}return o}function tu(e){let t=e[N],n=t.type;return n===2?t.declTNode:n===1?e[xe]:null}function ja(e,t=null,n=null,r){let o=cp(e,t,n,r);return o.resolveInjectorInitializers(),o}function cp(e,t=null,n=null,r,o=new Set){let i=[n||rt,nf(e)];return r=r||(typeof e=="object"?void 0:de(e)),new Jt(i,t||wi(),r||null,o)}var Se=class e{static THROW_IF_NOT_FOUND=Qt;static NULL=new Yn;static create(t,n){if(Array.isArray(t))return ja({name:""},n,t,"");{let r=t.name??"";return ja({name:r},t.parent,t.providers,r)}}static \u0275prov=q({token:e,providedIn:"any",factory:()=>L(pc)});static __NG_ELEMENT_ID__=-1};var up=new k("");up.__NG_ELEMENT_ID__=e=>{let t=cn();if(t===null)throw new P(204,!1);if(t.type&2)return t.value;if(e&T.Optional)return null;throw new P(204,!1)};var nu=!1,ru=(()=>{class e{static __NG_ELEMENT_ID__=lp;static __NG_ENV_ID__=n=>n}return e})(),$o=class extends ru{_lView;constructor(t){super(),this._lView=t}onDestroy(t){return Ac(this._lView,t),()=>Cf(this._lView,t)}};function lp(){return new $o(U())}var $e=class{},Er=new k("",{providedIn:"root",factory:()=>!1});var ou=new k(""),Ri=new k(""),Ir=(()=>{class e{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new $t(!1);add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static \u0275prov=q({token:e,providedIn:"root",factory:()=>new e})}return e})();var Go=class extends Fe{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,hf()&&(this.destroyRef=F(ru,{optional:!0})??void 0,this.pendingTasks=F(Ir,{optional:!0})??void 0)}emit(t){let n=R(null);try{super.next(t)}finally{R(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let c=t;o=c.next?.bind(c),i=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof X&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{t(n),r!==void 0&&this.pendingTasks?.remove(r)})}}},Be=Go;function tr(...e){}function iu(e){let t,n;function r(){e=tr;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function Ba(e){return queueMicrotask(()=>e()),()=>{e=tr}}var Oi="isAngularZone",nr=Oi+"_ID",dp=0,Y=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new Be(!1);onMicrotaskEmpty=new Be(!1);onStable=new Be(!1);onError=new Be(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=nu}=t;if(typeof Zone>"u")throw new P(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&r,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=!1,s.scheduleInRootZone=i,hp(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(Oi)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new P(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new P(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,fp,tr,tr);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},fp={};function Pi(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function pp(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){iu(()=>{e.callbackScheduled=!1,zo(e),e.isCheckStableRunning=!0,Pi(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),zo(e)}function hp(e){let t=()=>{pp(e)},n=dp++;e._inner=e._inner.fork({name:"angular",properties:{[Oi]:!0,[nr]:n,[nr+n]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(gp(c))return r.invokeTask(i,s,a,c);try{return Ha(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Ua(e)}},onInvoke:(r,o,i,s,a,c,u)=>{try{return Ha(e),r.invoke(i,s,a,c,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!mp(c)&&t(),Ua(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,zo(e),Pi(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,o,i,s)=>(r.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function zo(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function Ha(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Ua(e){e._nesting--,Pi(e)}var rr=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new Be;onMicrotaskEmpty=new Be;onStable=new Be;onError=new Be;run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}};function gp(e){return su(e,"__ignore_ng_zone__")}function mp(e){return su(e,"__scheduler_tick__")}function su(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var Ge=class{_console=console;handleError(t){this._console.error("ERROR",t)}},yp=new k("",{providedIn:"root",factory:()=>{let e=F(Y),t=F(Ge);return n=>e.runOutsideAngular(()=>t.handleError(n))}});function vp(){return au(cn(),U())}function au(e,t){return new wr(dt(e,t))}var wr=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=vp}return e})();function Fi(e,t){let n=Zs(e),r=n[Pe];return t?.equal&&(r.equal=t.equal),n.set=o=>oo(r,o),n.update=o=>Ys(r,o),n.asReadonly=Dp.bind(n),n}function Dp(){let e=this[Pe];if(e.readonlyFn===void 0){let t=()=>this();t[Pe]=e,e.readonlyFn=t}return e.readonlyFn}function cu(e){return(e.flags&128)===128}var uu=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(uu||{}),lu=new Map,Ep=0;function Ip(){return Ep++}function wp(e){lu.set(e[gr],e)}function Wo(e){lu.delete(e[gr])}var $a="__ngContext__";function un(e,t){nt(t)?(e[$a]=t[gr],wp(t)):e[$a]=t}function du(e){return pu(e[tn])}function fu(e){return pu(e[Ee])}function pu(e){for(;e!==null&&!ut(e);)e=e[Ee];return e}var qo;function hu(e){qo=e}function Cp(){if(qo!==void 0)return qo;if(typeof document<"u")return document;throw new P(210,!1)}var ki=new k("",{providedIn:"root",factory:()=>_p}),_p="ng",Li=new k(""),ln=new k("",{providedIn:"platform",factory:()=>"unknown"});var Vi=new k("",{providedIn:"root",factory:()=>Cp().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var bp="h",Mp="b";var gu=!1,Tp=new k("",{providedIn:"root",factory:()=>gu});var mu=function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e}(mu||{}),Cr=new k(""),Ga=new Set;function Ft(e){Ga.has(e)||(Ga.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var Sp=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=q({token:e,providedIn:"root",factory:()=>new e})}return e})();var Np=()=>null;function yu(e,t,n=!1){return Np(e,t,n)}function vu(e,t){let n=e.contentQueries;if(n!==null){let r=R(null);try{for(let o=0;o<n.length;o+=2){let i=n[o],s=n[o+1];if(s!==-1){let a=e.data[s];Lc(i),a.contentQueries(2,t[s],s)}}}finally{R(r)}}}function Zo(e,t,n){Lc(0);let r=R(null);try{t(e,n)}finally{R(r)}}function Du(e,t,n){if(_c(t)){let r=R(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;s<i;s++){let a=e.data[s];if(a.contentQueries){let c=n[s];a.contentQueries(1,c,s)}}}finally{R(r)}}}var Ne=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(Ne||{});var or=class{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${ic})`}};function _r(e){return e instanceof or?e.changingThisBreaksApplicationSecurity:e}function Eu(e,t){let n=xp(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${ic})`)}return n===t}function xp(e){return e instanceof or&&e.getTypeName()||null}var Ap=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Iu(e){return e=String(e),e.match(Ap)?e:"unsafe:"+e}var ji=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(ji||{});function wu(e){let t=Rp();return t?t.sanitize(ji.URL,e)||"":Eu(e,"URL")?_r(e):Iu(vi(e))}function Rp(){let e=U();return e&&e[ke].sanitizer}function Op(e,t,n){let r=e.length;for(;;){let o=e.indexOf(t,n);if(o===-1)return o;if(o===0||e.charCodeAt(o-1)<=32){let i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1}}var Cu="ng-template";function Pp(e,t,n,r){let o=0;if(r){for(;o<t.length&&typeof t[o]=="string";o+=2)if(t[o]==="class"&&Op(t[o+1].toLowerCase(),n,0)!==-1)return!0}else if(Bi(e))return!1;if(o=t.indexOf(1,o),o>-1){let i;for(;++o<t.length&&typeof(i=t[o])=="string";)if(i.toLowerCase()===n)return!0}return!1}function Bi(e){return e.type===4&&e.value!==Cu}function Fp(e,t,n){let r=e.type===4&&!n?Cu:e.value;return t===r}function kp(e,t,n){let r=4,o=e.attrs,i=o!==null?jp(o):0,s=!1;for(let a=0;a<t.length;a++){let c=t[a];if(typeof c=="number"){if(!s&&!ve(r)&&!ve(c))return!1;if(s&&ve(c))continue;s=!1,r=c|r&1;continue}if(!s)if(r&4){if(r=2|r&1,c!==""&&!Fp(e,c,n)||c===""&&t.length===1){if(ve(r))return!1;s=!0}}else if(r&8){if(o===null||!Pp(e,o,c,n)){if(ve(r))return!1;s=!0}}else{let u=t[++a],l=Lp(c,o,Bi(e),n);if(l===-1){if(ve(r))return!1;s=!0;continue}if(u!==""){let p;if(l>i?p="":p=o[l+1].toLowerCase(),r&2&&u!==p){if(ve(r))return!1;s=!0}}}}return ve(r)||s}function ve(e){return(e&1)===0}function Lp(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o<t.length;){let s=t[o];if(s===e)return o;if(s===3||s===6)i=!0;else if(s===1||s===2){let a=t[++o];for(;typeof a=="string";)a=t[++o];continue}else{if(s===4)break;if(s===0){o+=4;continue}}o+=i?1:2}return-1}else return Bp(t,e)}function Vp(e,t,n=!1){for(let r=0;r<t.length;r++)if(kp(e,t[r],n))return!0;return!1}function jp(e){for(let t=0;t<e.length;t++){let n=e[t];if(Yf(n))return t}return e.length}function Bp(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){let r=e[n];if(typeof r=="number")return-1;if(r===t)return n;n++}return-1}function za(e,t){return e?":not("+t.trim()+")":t}function Hp(e){let t=e[0],n=1,r=2,o="",i=!1;for(;n<e.length;){let s=e[n];if(typeof s=="string")if(r&2){let a=e[++n];o+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!ve(s)&&(t+=za(i,o),o=""),r=s,i=i||!ve(r);n++}return o!==""&&(t+=za(i,o)),t}function Up(e){return e.map(Hp).join(",")}function $p(e){let t=[],n=[],r=1,o=2;for(;r<e.length;){let i=e[r];if(typeof i=="string")o===2?i!==""&&t.push(i,e[++r]):o===8&&n.push(i);else{if(!ve(o))break;o=i}r++}return n.length&&t.push(1,...n),t}var Ye={};function Gp(e,t){return e.createText(t)}function zp(e,t,n){e.setValue(t,n)}function _u(e,t,n){return e.createElement(t,n)}function Yo(e,t,n,r,o){e.insertBefore(t,n,r,o)}function bu(e,t,n){e.appendChild(t,n)}function Wa(e,t,n,r,o){r!==null?Yo(e,t,n,r,o):bu(e,t,n)}function Wp(e,t,n){e.removeChild(null,t,n)}function qp(e,t,n){e.setAttribute(t,"style",n)}function Zp(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function Mu(e,t,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&Zf(e,t,r),o!==null&&Zp(e,t,o),i!==null&&qp(e,t,i)}function Hi(e,t,n,r,o,i,s,a,c,u,l){let p=J+r,g=p+o,f=Yp(p,g),m=typeof u=="function"?u():u;return f[N]={type:e,blueprint:f,template:n,queries:null,viewQuery:a,declTNode:t,data:f.slice().fill(null,p),bindingStartIndex:p,expandoStartIndex:g,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof i=="function"?i():i,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:c,consts:m,incompleteFirstPass:!1,ssrId:l}}function Yp(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:Ye);return n}function Qp(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=Hi(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function Ui(e,t,n,r,o,i,s,a,c,u,l){let p=t.blueprint.slice();return p[Ve]=o,p[I]=r|4|128|8|64|1024,(u!==null||e&&e[I]&2048)&&(p[I]|=2048),xc(p),p[fe]=p[Ot]=e,p[K]=n,p[ke]=s||e&&e[ke],p[ae]=a||e&&e[ae],p[en]=c||e&&e[en]||null,p[xe]=i,p[gr]=Ip(),p[Xt]=l,p[wc]=u,p[Te]=t.type==2?e[Te]:p,p}function Kp(e,t,n){let r=dt(t,e),o=Qp(n),i=e[ke].rendererFactory,s=Nu(e,Ui(e,o,null,Tu(n),r,t,null,i.createRenderer(r,n),null,null,null));return e[t.index]=s}function Tu(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function Su(e,t,n,r){if(n===0)return-1;let o=t.length;for(let i=0;i<n;i++)t.push(r),e.blueprint.push(r),e.data.push(null);return o}function Nu(e,t){return e[tn]?e[Ra][Ee]=t:e[tn]=t,e[Ra]=t,t}function ft(e=1){xu(Ie(),U(),Ze()+e,!1)}function xu(e,t,n,r){if(!r)if((t[I]&3)===3){let i=e.preOrderCheckHooks;i!==null&&Gn(t,i,n)}else{let i=e.preOrderHooks;i!==null&&zn(t,i,0,n)}at(n)}var br=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(br||{});function Qo(e,t,n,r){let o=R(null);try{let[i,s,a]=e.inputs[n],c=null;(s&br.SignalBased)!==0&&(c=t[i][Pe]),c!==null&&c.transformFn!==void 0?r=c.transformFn(r):a!==null&&(r=a.call(t,r)),e.setInput!==null?e.setInput(t,c,r,n,i):Mc(t,c,i,r)}finally{R(o)}}function Au(e,t,n,r,o){let i=Ze(),s=r&2;try{at(-1),s&&t.length>J&&xu(e,t,J,!1),H(s?2:0,o),n(r,o)}finally{at(i),H(s?3:1,o)}}function $i(e,t,n){oh(e,t,n),(n.flags&64)===64&&ih(e,t,n)}function Ru(e,t,n=dt){let r=t.localNames;if(r!==null){let o=t.index+1;for(let i=0;i<r.length;i+=2){let s=r[i+1],a=s===-1?n(t,e):e[s];e[o++]=a}}}function Jp(e,t,n,r){let i=r.get(Tp,gu)||n===Ne.ShadowDom,s=e.selectRootElement(t,i);return Xp(s),s}function Xp(e){eh(e)}var eh=()=>null;function th(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function nh(e,t,n,r,o,i,s,a){if(!a&&Gi(t,e,n,r,o)){mr(t)&&rh(n,t.index);return}if(t.type&3){let c=dt(t,n);r=th(r),o=s!=null?s(o,t.value||"",r):o,i.setProperty(c,r,o)}else t.type&12}function rh(e,t){let n=it(t,e);n[I]&16||(n[I]|=64)}function oh(e,t,n){let r=n.directiveStart,o=n.directiveEnd;mr(n)&&Kp(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||Zc(n,t);let i=n.initialInputs;for(let s=r;s<o;s++){let a=e.data[s],c=Uo(t,e,s,n);if(un(c,t),i!==null&&ah(t,s-r,c,a,n,i),lt(a)){let u=it(n.index,t);u[K]=Uo(t,e,s,n)}}}function ih(e,t,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=Lf();try{at(i);for(let a=r;a<o;a++){let c=e.data[a],u=t[a];Lo(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&sh(c,u)}}finally{at(-1),Lo(s)}}function sh(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function Ou(e,t){let n=e.directiveRegistry,r=null;if(n)for(let o=0;o<n.length;o++){let i=n[o];Vp(t,i.selectors,!1)&&(r??=[],lt(i)?r.unshift(i):r.push(i))}return r}function ah(e,t,n,r,o,i){let s=i[t];if(s!==null)for(let a=0;a<s.length;a+=2){let c=s[a],u=s[a+1];Qo(r,n,c,u)}}function ch(e,t){let n=e[en],r=n?n.get(Ge,null):null;r&&r.handleError(t)}function Gi(e,t,n,r,o){let i=e.inputs?.[r],s=e.hostDirectiveInputs?.[r],a=!1;if(s)for(let c=0;c<s.length;c+=2){let u=s[c],l=s[c+1],p=t.data[u];Qo(p,n[u],l,o),a=!0}if(i)for(let c of i){let u=n[c],l=t.data[c];Qo(l,u,r,o),a=!0}return a}function uh(e,t){let n=it(t,e),r=n[N];lh(r,n);let o=n[Ve];o!==null&&n[Xt]===null&&(n[Xt]=yu(o,n[en])),H(18),zi(r,n,n[K]),H(19,n[K])}function lh(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}function zi(e,t,n){Ti(t);try{let r=e.viewQuery;r!==null&&Zo(1,r,n);let o=e.template;o!==null&&Au(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[St]?.finishViewCreation(e),e.staticContentQueries&&vu(e,t),e.staticViewQueries&&Zo(2,e.viewQuery,n);let i=e.components;i!==null&&dh(t,i)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[I]&=-5,Si()}}function dh(e,t){for(let n=0;n<t.length;n++)uh(e,t[n])}function Wi(e,t,n,r){let o=R(null);try{let i=t.tView,a=e[I]&4096?4096:16,c=Ui(e,i,n,a,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),u=e[t.index];c[Tt]=u;let l=e[St];return l!==null&&(c[St]=l.createEmbeddedView(i)),zi(i,c,n),c}finally{R(o)}}function qi(e,t){return!t||t.firstChild===null||cu(e)}var fh;function Zi(e,t){return fh(e,t)}var Le=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Le||{});function Pu(e){return(e.flags&32)===32}function wt(e,t,n,r,o){if(r!=null){let i,s=!1;ut(r)?i=r:nt(r)&&(s=!0,r=r[Ve]);let a=Ue(r);e===0&&n!==null?o==null?bu(t,n,a):Yo(t,n,a,o||null,!0):e===1&&n!==null?Yo(t,n,a,o||null,!0):e===2?Wp(t,a,s):e===3&&t.destroyNode(a),i!=null&&_h(t,e,i,n,o)}}function ph(e,t){Fu(e,t),t[Ve]=null,t[xe]=null}function hh(e,t,n,r,o,i){r[Ve]=o,r[xe]=t,Mr(e,r,n,1,o,i)}function Fu(e,t){t[ke].changeDetectionScheduler?.notify(9),Mr(e,t,t[ae],2,null,null)}function gh(e){let t=e[tn];if(!t)return _o(e[N],e);for(;t;){let n=null;if(nt(t))n=t[tn];else{let r=t[oe];r&&(n=r)}if(!n){for(;t&&!t[Ee]&&t!==e;)nt(t)&&_o(t[N],t),t=t[fe];t===null&&(t=e),nt(t)&&_o(t[N],t),n=t&&t[Ee]}t=n}}function Yi(e,t){let n=e[Kn],r=n.indexOf(t);n.splice(r,1)}function Qi(e,t){if(an(t))return;let n=t[ae];n.destroyNode&&Mr(e,t,n,3,null,null),gh(t)}function _o(e,t){if(an(t))return;let n=R(null);try{t[I]&=-129,t[I]|=256,t[se]&&ro(t[se]),yh(e,t),mh(e,t),t[N].type===1&&t[ae].destroy();let r=t[Tt];if(r!==null&&ut(t[fe])){r!==t[fe]&&Yi(r,t);let o=t[St];o!==null&&o.detachView(e)}Wo(t)}finally{R(n)}}function mh(e,t){let n=e.cleanup,r=t[Aa];if(n!==null)for(let s=0;s<n.length-1;s+=2)if(typeof n[s]=="string"){let a=n[s+3];a>=0?r[a]():r[-a].unsubscribe(),s+=2}else{let a=r[n[s+1]];n[s].call(a)}r!==null&&(t[Aa]=null);let o=t[He];if(o!==null){t[He]=null;for(let s=0;s<o.length;s++){let a=o[s];a()}}let i=t[Qn];if(i!==null){t[Qn]=null;for(let s of i)s.destroy()}}function yh(e,t){let n;if(e!=null&&(n=e.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let o=t[n[r]];if(!(o instanceof rn)){let i=n[r+1];if(Array.isArray(i))for(let s=0;s<i.length;s+=2){let a=o[i[s]],c=i[s+1];H(4,a,c);try{c.call(a)}finally{H(5,a,c)}}else{H(4,o,i);try{i.call(o)}finally{H(5,o,i)}}}}}function vh(e,t,n){return Dh(e,t.parent,n)}function Dh(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[Ve];if(mr(r)){let{encapsulation:o}=e.data[r.directiveStart+r.componentOffset];if(o===Ne.None||o===Ne.Emulated)return null}return dt(r,n)}function Eh(e,t,n){return wh(e,t,n)}function Ih(e,t,n){return e.type&40?dt(e,n):null}var wh=Ih,qa;function Ki(e,t,n,r){let o=vh(e,r,t),i=t[ae],s=r.parent||t[xe],a=Eh(s,r,t);if(o!=null)if(Array.isArray(n))for(let c=0;c<n.length;c++)Wa(i,o,n[c],a,!1);else Wa(i,o,n,a,!1);qa!==void 0&&qa(i,r,t,n,o)}function Zt(e,t){if(t!==null){let n=t.type;if(n&3)return dt(t,e);if(n&4)return Ko(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return Zt(e,r);{let o=e[t.index];return ut(o)?Ko(-1,o):Ue(o)}}else{if(n&128)return Zt(e,t.next);if(n&32)return Zi(t,e)()||Ue(e[t.index]);{let r=ku(e,t);if(r!==null){if(Array.isArray(r))return r[0];let o=st(e[Te]);return Zt(o,r)}else return Zt(e,t.next)}}}return null}function ku(e,t){if(t!==null){let r=e[Te][xe],o=t.projection;return r.projection[o]}return null}function Ko(e,t){let n=oe+e+1;if(n<t.length){let r=t[n],o=r[N].firstChild;if(o!==null)return Zt(r,o)}return t[nn]}function Ji(e,t,n,r,o,i,s){for(;n!=null;){if(n.type===128){n=n.next;continue}let a=r[n.index],c=n.type;if(s&&t===0&&(a&&un(Ue(a),r),n.flags|=2),!Pu(n))if(c&8)Ji(e,t,n.child,r,o,i,!1),wt(t,e,o,a,i);else if(c&32){let u=Zi(n,r),l;for(;l=u();)wt(t,e,o,l,i);wt(t,e,o,a,i)}else c&16?Ch(e,t,r,n,o,i):wt(t,e,o,a,i);n=s?n.projectionNext:n.next}}function Mr(e,t,n,r,o,i){Ji(n,r,e.firstChild,t,o,i,!1)}function Ch(e,t,n,r,o,i){let s=n[Te],c=s[xe].projection[r.projection];if(Array.isArray(c))for(let u=0;u<c.length;u++){let l=c[u];wt(t,e,o,l,i)}else{let u=c,l=s[fe];cu(r)&&(u.flags|=128),Ji(e,t,u,l,o,i,!0)}}function _h(e,t,n,r,o){let i=n[nn],s=Ue(n);i!==s&&wt(t,e,r,i,o);for(let a=oe;a<n.length;a++){let c=n[a];Mr(c[N],c,e,t,r,i)}}function bh(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else{let i=r.indexOf("-")===-1?void 0:Le.DashCase;o==null?e.removeStyle(n,r,i):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=Le.Important),e.setStyle(n,r,o,i))}}function ir(e,t,n,r,o=!1){for(;n!==null;){if(n.type===128){n=o?n.projectionNext:n.next;continue}let i=t[n.index];i!==null&&r.push(Ue(i)),ut(i)&&Mh(i,r);let s=n.type;if(s&8)ir(e,t,n.child,r);else if(s&32){let a=Zi(n,t),c;for(;c=a();)r.push(c)}else if(s&16){let a=ku(t,n);if(Array.isArray(a))r.push(...a);else{let c=st(t[Te]);ir(c[N],c,a,r,!0)}}n=o?n.projectionNext:n.next}return r}function Mh(e,t){for(let n=oe;n<e.length;n++){let r=e[n],o=r[N].firstChild;o!==null&&ir(r[N],r,o,t)}e[nn]!==e[Ve]&&t.push(e[nn])}function Lu(e){if(e[Eo]!==null){for(let t of e[Eo])t.impl.addSequence(t);e[Eo].length=0}}var Vu=[];function Th(e){return e[se]??Sh(e)}function Sh(e){let t=Vu.pop()??Object.create(xh);return t.lView=e,t}function Nh(e){e.lView[se]!==e&&(e.lView=null,Vu.push(e))}var xh=Ce(ue({},En),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{vr(e.lView)},consumerOnSignalRead(){this.lView[se]=this}});function Ah(e){let t=e[se]??Object.create(Rh);return t.lView=e,t}var Rh=Ce(ue({},En),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=st(e.lView);for(;t&&!ju(t[N]);)t=st(t);t&&Mi(t)},consumerOnSignalRead(){this.lView[se]=this}});function ju(e){return e.type!==2}function Bu(e){if(e[Qn]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[Qn])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[I]&8192)}}var Oh=100;function Hu(e,t=!0,n=0){let o=e[ke].rendererFactory,i=!1;i||o.begin?.();try{Ph(e,n)}catch(s){throw t&&ch(e,s),s}finally{i||o.end?.()}}function Ph(e,t){let n=Fc();try{Pa(!0),Jo(e,t);let r=0;for(;yr(e);){if(r===Oh)throw new P(103,!1);r++,Jo(e,1)}}finally{Pa(n)}}function Fh(e,t,n,r){if(an(t))return;let o=t[I],i=!1,s=!1;Ti(t);let a=!0,c=null,u=null;i||(ju(e)?(u=Th(t),c=to(u)):Ls()===null?(a=!1,u=Ah(t),c=to(u)):t[se]&&(ro(t[se]),t[se]=null));try{xc(t),Of(e.bindingStartIndex),n!==null&&Au(e,t,n,2,r);let l=(o&3)===3;if(!i)if(l){let f=e.preOrderCheckHooks;f!==null&&Gn(t,f,null)}else{let f=e.preOrderHooks;f!==null&&zn(t,f,0,null),Io(t,0)}if(s||kh(t),Bu(t),Uu(t,0),e.contentQueries!==null&&vu(e,t),!i)if(l){let f=e.contentCheckHooks;f!==null&&Gn(t,f)}else{let f=e.contentHooks;f!==null&&zn(t,f,1),Io(t,1)}Vh(e,t);let p=e.components;p!==null&&Gu(t,p,0);let g=e.viewQuery;if(g!==null&&Zo(2,g,r),!i)if(l){let f=e.viewCheckHooks;f!==null&&Gn(t,f)}else{let f=e.viewHooks;f!==null&&zn(t,f,2),Io(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Do]){for(let f of t[Do])f();t[Do]=null}i||(Lu(t),t[I]&=-73)}catch(l){throw i||vr(t),l}finally{u!==null&&(Hs(u,c),a&&Nh(u)),Si()}}function Uu(e,t){for(let n=du(e);n!==null;n=fu(n))for(let r=oe;r<n.length;r++){let o=n[r];$u(o,t)}}function kh(e){for(let t=du(e);t!==null;t=fu(t)){if(!(t[I]&2))continue;let n=t[Kn];for(let r=0;r<n.length;r++){let o=n[r];Mi(o)}}}function Lh(e,t,n){H(18);let r=it(t,e);$u(r,n),H(19,r[K])}function $u(e,t){bi(e)&&Jo(e,t)}function Jo(e,t){let r=e[N],o=e[I],i=e[se],s=!!(t===0&&o&16);if(s||=!!(o&64&&t===0),s||=!!(o&1024),s||=!!(i?.dirty&&no(i)),s||=!1,i&&(i.dirty=!1),e[I]&=-9217,s)Fh(r,e,r.template,e[K]);else if(o&8192){Bu(e),Uu(e,1);let a=r.components;a!==null&&Gu(e,a,1),Lu(e)}}function Gu(e,t,n){for(let r=0;r<t.length;r++)Lh(e,t[r],n)}function Vh(e,t){let n=e.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let o=n[r];if(o<0)at(~o);else{let i=o,s=n[++r],a=n[++r];kf(s,i);let c=t[i];H(24,c),a(2,c),H(25,c)}}}finally{at(-1)}}function zu(e,t){let n=Fc()?64:1088;for(e[ke].changeDetectionScheduler?.notify(t);e;){e[I]|=n;let r=st(e);if(Jn(e)&&!r)return e;e=r}return null}function jh(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function Wu(e,t){let n=oe+t;if(n<e.length)return e[n]}function Xi(e,t,n,r=!0){let o=t[N];if(Bh(o,t,e,n),r){let s=Ko(n,e),a=t[ae],c=a.parentNode(e[nn]);c!==null&&hh(o,e[xe],a,t,c,s)}let i=t[Xt];i!==null&&i.firstChild!==null&&(i.firstChild=null)}function qu(e,t){let n=es(e,t);return n!==void 0&&Qi(n[N],n),n}function es(e,t){if(e.length<=oe)return;let n=oe+t,r=e[n];if(r){let o=r[Tt];o!==null&&o!==e&&Yi(o,r),t>0&&(e[n-1][Ee]=r[Ee]);let i=fc(e,oe+t);ph(r[N],r);let s=i[St];s!==null&&s.detachView(i[N]),r[fe]=null,r[Ee]=null,r[I]&=-129}return r}function Bh(e,t,n,r){let o=oe+r,i=n.length;r>0&&(n[o-1][Ee]=t),r<i-oe?(t[Ee]=n[o],Kd(n,oe+r,t)):(n.push(t),t[Ee]=null),t[fe]=n;let s=t[Tt];s!==null&&n!==s&&Zu(s,t);let a=t[St];a!==null&&a.insertView(e),Fo(t),t[I]|=128}function Zu(e,t){let n=e[Kn],r=t[fe];if(nt(r))e[I]|=2;else{let o=r[fe][Te];t[Te]!==o&&(e[I]|=2)}n===null?e[Kn]=[t]:n.push(t)}var Xo=class{_lView;_cdRefInjectingView;notifyErrorHandler;_appRef=null;_attachedToViewContainer=!1;get rootNodes(){let t=this._lView,n=t[N];return ir(n,t,n.firstChild,[])}constructor(t,n,r=!0){this._lView=t,this._cdRefInjectingView=n,this.notifyErrorHandler=r}get context(){return this._lView[K]}get dirty(){return!!(this._lView[I]&9280)||!!this._lView[se]?.dirty}set context(t){this._lView[K]=t}get destroyed(){return an(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[fe];if(ut(t)){let n=t[gf],r=n?n.indexOf(this):-1;r>-1&&(es(t,r),fc(n,r))}this._attachedToViewContainer=!1}Qi(this._lView[N],this._lView)}onDestroy(t){Ac(this._lView,t)}markForCheck(){zu(this._cdRefInjectingView||this._lView,4)}markForRefresh(){Mi(this._cdRefInjectingView||this._lView)}detach(){this._lView[I]&=-129}reattach(){Fo(this._lView),this._lView[I]|=128}detectChanges(){this._lView[I]|=1024,Hu(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new P(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=Jn(this._lView),n=this._lView[Tt];n!==null&&!t&&Yi(n,this._lView),Fu(this._lView[N],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new P(902,!1);this._appRef=t;let n=Jn(this._lView),r=this._lView[Tt];r!==null&&!n&&Zu(r,this._lView),Fo(this._lView)}};function Tr(e,t,n,r,o){let i=e.data[t];if(i===null)i=Hh(e,t,n,r,o),Ff()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=xf();i.injectorIndex=s===null?-1:s.injectorIndex}return Pt(i,!0),i}function Hh(e,t,n,r,o){let i=Oc(),s=Pc(),a=s?i:i&&i.parent,c=e.data[t]=$h(e,a,n,t,r,o);return Uh(e,c,i,s),c}function Uh(e,t,n,r){e.firstChild===null&&(e.firstChild=t),n!==null&&(r?n.child==null&&t.parent!==null&&(n.child=t):n.next===null&&(n.next=t,t.prev=n))}function $h(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return Tf()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}var BE=new RegExp(`^(\\d+)*(${Mp}|${bp})*(.*)`);var Gh=()=>null;function ts(e,t){return Gh(e,t)}var ei=class{},sr=class{},ti=class{resolveComponentFactory(t){throw Error(`No component factory found for ${de(t)}.`)}},ze=class{static NULL=new ti},xt=class{};var zh=(()=>{class e{static \u0275prov=q({token:e,providedIn:"root",factory:()=>null})}return e})();function Za(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s<t.length;s++){let a=t[s];if(typeof a=="number")i=a;else if(i==1)o=_a(o,a);else if(i==2){let c=a,u=t[++s];r=_a(r,c+": "+u+";")}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o}function Sr(e,t=T.Default){let n=U();if(n===null)return L(e,t);let r=cn();return Xc(r,n,De(e),t)}function Yu(e,t,n,r,o){let i=r===null?null:{"":-1},s=o(e,n);if(s!==null){let a,c=null,u=null,l=qh(s);l===null?a=s:[a,c,u]=l,Qh(e,t,n,a,i,c,u)}i!==null&&r!==null&&Wh(n,r,i)}function Wh(e,t,n){let r=e.localNames=[];for(let o=0;o<t.length;o+=2){let i=n[t[o+1]];if(i==null)throw new P(-301,!1);r.push(t[o],i)}}function qh(e){let t=null,n=!1;for(let s=0;s<e.length;s++){let a=e[s];if(s===0&&lt(a)&&(t=a),a.findHostDirectiveDefs!==null){n=!0;break}}if(!n)return null;let r=null,o=null,i=null;for(let s of e)s.findHostDirectiveDefs!==null&&(r??=[],o??=new Map,i??=new Map,Zh(s,r,i,o)),s===t&&(r??=[],r.push(s));return r!==null?(r.push(...t===null?e:e.slice(1)),[r,o,i]):null}function Zh(e,t,n,r){let o=t.length;e.findHostDirectiveDefs(e,t,r),n.set(e,[o,t.length-1])}function Yh(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function Qh(e,t,n,r,o,i,s){let a=r.length,c=!1;for(let g=0;g<a;g++){let f=r[g];!c&&lt(f)&&(c=!0,Yh(e,n,g)),np(Zc(n,t),e,f.type)}ng(n,e.data.length,a);for(let g=0;g<a;g++){let f=r[g];f.providersResolver&&f.providersResolver(f)}let u=!1,l=!1,p=Su(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let g=0;g<a;g++){let f=r[g];if(n.mergedAttrs=Ai(n.mergedAttrs,f.hostAttrs),Jh(e,n,t,p,f),tg(p,f,o),s!==null&&s.has(f)){let[y,w]=s.get(f);n.directiveToIndex.set(f.type,[p,y+n.directiveStart,w+n.directiveStart])}else(i===null||!i.has(f))&&n.directiveToIndex.set(f.type,p);f.contentQueries!==null&&(n.flags|=4),(f.hostBindings!==null||f.hostAttrs!==null||f.hostVars!==0)&&(n.flags|=64);let m=f.type.prototype;!u&&(m.ngOnChanges||m.ngOnInit||m.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),u=!0),!l&&(m.ngOnChanges||m.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),l=!0),p++}Kh(e,n,i)}function Kh(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let o=e.data[r];if(n===null||!n.has(o))Ya(0,t,o,r),Ya(1,t,o,r),Ka(t,r,!1);else{let i=n.get(o);Qa(0,t,i,r),Qa(1,t,i,r),Ka(t,r,!0)}}}function Ya(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s;e===0?s=t.inputs??={}:s=t.outputs??={},s[i]??=[],s[i].push(r),Qu(t,i)}}function Qa(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s=o[i],a;e===0?a=t.hostDirectiveInputs??={}:a=t.hostDirectiveOutputs??={},a[s]??=[],a[s].push(r,i),Qu(t,s)}}function Qu(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16)}function Ka(e,t,n){let{attrs:r,inputs:o,hostDirectiveInputs:i}=e;if(r===null||!n&&o===null||n&&i===null||Bi(e)){e.initialInputs??=[],e.initialInputs.push(null);return}let s=null,a=0;for(;a<r.length;){let c=r[a];if(c===0){a+=4;continue}else if(c===5){a+=2;continue}else if(typeof c=="number")break;if(!n&&o.hasOwnProperty(c)){let u=o[c];for(let l of u)if(l===t){s??=[],s.push(c,r[a+1]);break}}else if(n&&i.hasOwnProperty(c)){let u=i[c];for(let l=0;l<u.length;l+=2)if(u[l]===t){s??=[],s.push(u[l+1],r[a+1]);break}}a+=2}e.initialInputs??=[],e.initialInputs.push(s)}function Jh(e,t,n,r,o){e.data[r]=o;let i=o.factory||(o.factory=bt(o.type,!0)),s=new rn(i,lt(o),Sr);e.blueprint[r]=s,n[r]=s,Xh(e,t,r,Su(e,n,o.hostVars,Ye),o)}function Xh(e,t,n,r,o){let i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;eg(s)!=a&&s.push(a),s.push(n,r,i)}}function eg(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function tg(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;lt(t)&&(n[""]=e)}}function ng(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function Ku(e,t,n,r,o,i,s,a){let c=t.consts,u=Nt(c,s),l=Tr(t,e,2,r,u);return i&&Yu(t,n,l,Nt(c,a),o),l.mergedAttrs=Ai(l.mergedAttrs,l.attrs),l.attrs!==null&&Za(l,l.attrs,!1),l.mergedAttrs!==null&&Za(l,l.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,l),l}function Ju(e,t){Gc(e,t),_c(t)&&e.queries.elementEnd(t)}var ni=class extends ze{ngModule;constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){let n=pr(t);return new ri(n,this.ngModule)}};function rg(e){return Object.keys(e).map(t=>{let[n,r,o]=e[t],i={propName:n,templateName:t,isSignal:(r&br.SignalBased)!==0};return o&&(i.transform=o),i})}function og(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function ig(e,t,n){let r=t instanceof ot?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new Vo(n,r):n}function sg(e){let t=e.get(xt,null);if(t===null)throw new P(407,!1);let n=e.get(zh,null),r=e.get($e,null);return{rendererFactory:t,sanitizer:n,changeDetectionScheduler:r}}function ag(e,t){let n=(e.selectors[0][0]||"div").toLowerCase();return _u(t,n,n==="svg"?Ef:n==="math"?If:null)}var ri=class extends sr{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;get inputs(){return rg(this.componentDef.inputs)}get outputs(){return og(this.componentDef.outputs)}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=Up(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!n}create(t,n,r,o){H(22);let i=R(null);try{let s=this.componentDef,a=r?["ng-version","19.2.0"]:$p(this.componentDef.selectors[0]),c=Hi(0,null,null,1,0,null,null,null,null,[a],null),u=ig(s,o||this.ngModule,t),l=sg(u),p=l.rendererFactory.createRenderer(null,s),g=r?Jp(p,r,s.encapsulation,u):ag(s,p),f=Ui(null,c,null,512|Tu(s),null,null,l,p,u,null,yu(g,u,!0));f[J]=g,Ti(f);let m=null;try{let y=Ku(J,c,f,"#host",()=>[this.componentDef],!0,0);g&&(Mu(p,g,y),un(g,f)),$i(c,f,y),Du(c,y,f),Ju(c,y),n!==void 0&&cg(y,this.ngContentSelectors,n),m=it(y.index,f),f[K]=m[K],zi(c,f,null)}catch(y){throw m!==null&&Wo(m),Wo(f),y}finally{H(23),Si()}return new oi(this.componentType,f)}finally{R(i)}}},oi=class extends ei{_rootLView;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,n){super(),this._rootLView=n,this._tNode=Ci(n[N],J),this.location=au(this._tNode,n),this.instance=it(this._tNode.index,n)[K],this.hostView=this.changeDetectorRef=new Xo(n,void 0,!1),this.componentType=t}setInput(t,n){let r=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;let o=this._rootLView,i=Gi(r,o[N],o,t,n);this.previousInputValues.set(t,n);let s=it(r.index,o);zu(s,1)}get injector(){return new er(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}};function cg(e,t,n){let r=e.projection=[];for(let o=0;o<t.length;o++){let i=n[o];r.push(i!=null&&i.length?Array.from(i):null)}}var ug=()=>!1;function lg(e,t,n){return ug(e,t,n)}var At=class{};var ar=class extends At{injector;componentFactoryResolver=new ni(this);instance=null;constructor(t){super();let n=new Jt([...t.providers,{provide:At,useValue:this},{provide:ze,useValue:this.componentFactoryResolver}],t.parent||wi(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function dg(e,t,n=null){return new ar({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var fg=(()=>{class e{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=vc(!1,n.type),o=r.length>0?dg([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=q({token:e,providedIn:"environment",factory:()=>new e(L(ot))})}return e})();function Xu(e){return Ad(()=>{let t=yg(e),n=Ce(ue({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===uu.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(fg).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Ne.Emulated,styles:e.styles||rt,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&Ft("NgStandalone"),vg(n);let r=e.dependencies;return n.directiveDefs=Ja(r,!1),n.pipeDefs=Ja(r,!0),n.id=Dg(n),n})}function pg(e){return pr(e)||gc(e)}function hg(e){return e!==null}function gg(e,t){if(e==null)return Mt;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a,c;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i,c=o[3]||null):(i=o,s=o,a=br.None,c=null),n[i]=[r,a,c],t[i]=s}return n}function mg(e){if(e==null)return Mt;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function Nr(e){return{type:e.type,name:e.name,factory:null,pure:e.pure!==!1,standalone:e.standalone??!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function yg(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputConfig:e.inputs||Mt,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||rt,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:gg(e.inputs,t),outputs:mg(e.outputs),debugInfo:null}}function vg(e){e.features?.forEach(t=>t(e))}function Ja(e,t){if(!e)return null;let n=t?mc:pg;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(hg)}function Dg(e){let t=0,n=typeof e.consts=="function"?"":e.consts,r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,n,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery];for(let i of r.join("|"))t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function el(e,t,n){return e[t]=n}function We(e,t,n){let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function Eg(e,t,n,r){let o=We(e,t,n);return We(e,t+1,r)||o}function Ig(e,t,n,r,o,i,s,a,c){let u=t.consts,l=Tr(t,e,4,s||null,a||null);Rc()&&Yu(t,n,l,Nt(u,c),Ou),l.mergedAttrs=Ai(l.mergedAttrs,l.attrs),Gc(t,l);let p=l.tView=Hi(2,l,r,o,i,t.directiveRegistry,t.pipeRegistry,null,t.schemas,u,null);return t.queries!==null&&(t.queries.template(t,l),p.queries=t.queries.embeddedTView(l)),l}function ii(e,t,n,r,o,i,s,a,c,u){let l=n+J,p=t.firstCreatePass?Ig(l,t,e,r,o,i,s,a,c):t.data[l];Pt(p,!1);let g=wg(t,e,p,n);Ni()&&Ki(t,e,g,p),un(g,e);let f=jh(g,e,g,p);return e[l]=f,Nu(e,f),lg(f,p,e),bc(p)&&$i(t,e,p),c!=null&&Ru(e,p,u),p}function xr(e,t,n,r,o,i,s,a){let c=U(),u=Ie(),l=Nt(u.consts,i);return ii(c,u,e,t,n,r,o,l,s,a),xr}var wg=Cg;function Cg(e,t,n,r){return xi(!0),t[ae].createComment("")}var tl=new k("");var _g=(()=>{class e{static \u0275prov=q({token:e,providedIn:"root",factory:()=>new si})}return e})(),si=class{queuedEffectCount=0;queues=new Map;schedule(t){this.enqueue(t)}remove(t){let n=t.zone,r=this.queues.get(n);r.has(t)&&(r.delete(t),this.queuedEffectCount--)}enqueue(t){let n=t.zone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(t)||(this.queuedEffectCount++,r.add(t))}flush(){for(;this.queuedEffectCount>0;)for(let[t,n]of this.queues)t===null?this.flushQueue(n):t.run(()=>this.flushQueue(n))}flushQueue(t){for(let n of t)t.delete(n),this.queuedEffectCount--,n.run()}};function ns(e){return!!e&&typeof e.then=="function"}function nl(e){return!!e&&typeof e.subscribe=="function"}var bg=new k("");var rl=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=F(bg,{optional:!0})??[];injector=F(Se);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=Ic(this.injector,o);if(ns(i))n.push(i);else if(nl(i)){let s=new Promise((a,c)=>{i.subscribe({complete:a,error:c})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),n.length===0&&r(),this.initialized=!0}static \u0275fac=function(r){return new(r||e)};static \u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Mg=new k("");function Tg(){qs(()=>{throw new P(600,!1)})}function Sg(e){return e.isBoundToModule}var Ng=10;var qe=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=F(yp);afterRenderManager=F(Sp);zonelessEnabled=F(Er);rootEffectScheduler=F(_g);dirtyFlags=0;tracingSnapshot=null;externalTestViews=new Set;afterTick=new Fe;get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];isStable=F(Ir).hasPendingTasks.pipe(zt(n=>!n));constructor(){F(Cr,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=F(ot);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){H(10);let o=n instanceof sr;if(!this._injector.get(rl).done){let g=!o&&tf(n),f=!1;throw new P(405,f)}let s;o?s=n:s=this._injector.get(ze).resolveComponentFactory(n),this.componentTypes.push(s.componentType);let a=Sg(s)?void 0:this._injector.get(At),c=r||s.selector,u=s.create(Se.NULL,[],c,a),l=u.location.nativeElement,p=u.injector.get(tl,null);return p?.registerApplication(l),u.onDestroy(()=>{this.detachView(u.hostView),Wn(this.components,u),p?.unregisterApplication(l)}),this._loadComponent(u),H(11,u),u}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){H(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(mu.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new P(101,!1);let n=R(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,R(n),this.afterTick.next(),H(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(xt,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<Ng;)H(14),this.synchronizeOnce(),H(15)}synchronizeOnce(){if(this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush()),this.dirtyFlags&7){let n=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:r,notifyErrorHandler:o}of this.allViews)xg(r,o,n,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return}else this._rendererFactory?.begin?.(),this._rendererFactory?.end?.();this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:n})=>yr(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;Wn(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(Mg,[]).forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Wn(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new P(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(r){return new(r||e)};static \u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Wn(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function xg(e,t,n,r){if(!n&&!yr(e))return;Hu(e,t,n&&!r?0:1)}function Ag(e,t,n,r){return We(e,Dr(),n)?t+vi(n)+r:Ye}function Un(e,t){return e<<17|t<<2}function ct(e){return e>>17&32767}function Rg(e){return(e&2)==2}function Og(e,t){return e&131071|t<<17}function ai(e){return e|2}function Rt(e){return(e&131068)>>2}function bo(e,t){return e&-131069|t<<2}function Pg(e){return(e&1)===1}function ci(e){return e|1}function Fg(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=ct(s),c=Rt(s);e[r]=n;let u=!1,l;if(Array.isArray(n)){let p=n;l=p[1],(l===null||sn(p,l)>0)&&(u=!0)}else l=n;if(o)if(c!==0){let g=ct(e[a+1]);e[r+1]=Un(g,a),g!==0&&(e[g+1]=bo(e[g+1],r)),e[a+1]=Og(e[a+1],r)}else e[r+1]=Un(a,0),a!==0&&(e[a+1]=bo(e[a+1],r)),a=r;else e[r+1]=Un(c,0),a===0?a=r:e[c+1]=bo(e[c+1],r),c=r;u&&(e[r+1]=ai(e[r+1])),Xa(e,l,r,!0),Xa(e,l,r,!1),kg(t,l,e,r,i),s=Un(a,c),i?t.classBindings=s:t.styleBindings=s}function kg(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&sn(i,t)>=0&&(n[r+1]=ci(n[r+1]))}function Xa(e,t,n,r){let o=e[n+1],i=t===null,s=r?ct(o):Rt(o),a=!1;for(;s!==0&&(a===!1||i);){let c=e[s],u=e[s+1];Lg(c,t)&&(a=!0,e[s+1]=r?ci(u):ai(u)),s=r?ct(u):Rt(u)}a&&(e[n+1]=r?ai(o):ci(o))}function Lg(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?sn(e,t)>=0:!1}function rs(e,t,n){let r=U(),o=Dr();if(We(r,o,t)){let i=Ie(),s=Hf();nh(i,s,r,e,t,r[ae],n,!1)}return rs}function ec(e,t,n,r,o){Gi(t,e,n,o?"class":"style",r)}function Ar(e,t,n){return Vg(e,t,n,!1),Ar}function Vg(e,t,n,r){let o=U(),i=Ie(),s=Pf(2);if(i.firstUpdatePass&&Bg(i,e,s,r),t!==Ye&&We(o,s,t)){let a=i.data[Ze()];zg(i,a,o,o[ae],e,o[s+1]=Wg(t,n),r,s)}}function jg(e,t){return t>=e.expandoStartIndex}function Bg(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[Ze()],s=jg(e,n);qg(i,r)&&t===null&&!s&&(t=!1),t=Hg(o,i,t,r),Fg(o,i,t,n,s,r)}}function Hg(e,t,n,r){let o=Vf(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=Mo(null,e,t,n,r),n=on(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=Mo(o,e,t,n,r),i===null){let c=Ug(e,t,r);c!==void 0&&Array.isArray(c)&&(c=Mo(null,e,t,c[1],r),c=on(c,t.attrs,r),$g(e,t,r,c))}else i=Gg(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function Ug(e,t,n){let r=n?t.classBindings:t.styleBindings;if(Rt(r)!==0)return e[ct(r)]}function $g(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[ct(o)]=r}function Gg(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<o;i++){let s=e[i].hostAttrs;r=on(r,s,n)}return on(r,t.attrs,n)}function Mo(e,t,n,r,o){let i=null,s=n.directiveEnd,a=n.directiveStylingLast;for(a===-1?a=n.directiveStart:a++;a<s&&(i=t[a],r=on(r,i.hostAttrs,o),i!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function on(e,t,n){let r=n?1:2,o=-1;if(t!==null)for(let i=0;i<t.length;i++){let s=t[i];typeof s=="number"?o=s:o===r&&(Array.isArray(e)||(e=e===void 0?[]:["",e]),Xd(e,s,n?!0:t[++i]))}return e===void 0?null:e}function zg(e,t,n,r,o,i,s,a){if(!(t.type&3))return;let c=e.data,u=c[a+1],l=Pg(u)?tc(c,t,n,o,Rt(u),s):void 0;if(!cr(l)){cr(i)||Rg(u)&&(i=tc(c,null,n,o,a,s));let p=Nc(Ze(),n);bh(r,s,p,o,i)}}function tc(e,t,n,r,o,i){let s=t===null,a;for(;o>0;){let c=e[o],u=Array.isArray(c),l=u?c[1]:c,p=l===null,g=n[o+1];g===Ye&&(g=p?rt:void 0);let f=p?yo(g,r):l===r?g:void 0;if(u&&!cr(f)&&(f=yo(c,r)),cr(f)&&(a=f,s))return a;let m=e[o+1];o=s?ct(m):Rt(m)}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=yo(c,r))}return a}function cr(e){return e!==void 0}function Wg(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=de(_r(e)))),e}function qg(e,t){return(e.flags&(t?8:16))!==0}var ui=class{destroy(t){}updateValue(t,n){}swap(t,n){let r=Math.min(t,n),o=Math.max(t,n),i=this.detach(o);if(o-r>1){let s=this.detach(r);this.attach(r,i),this.attach(o,s)}else this.attach(r,i)}move(t,n){this.attach(n,this.detach(t))}};function To(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function Zg(e,t,n){let r,o,i=0,s=e.length-1,a=void 0;if(Array.isArray(t)){let c=t.length-1;for(;i<=s&&i<=c;){let u=e.at(i),l=t[i],p=To(i,u,i,l,n);if(p!==0){p<0&&e.updateValue(i,l),i++;continue}let g=e.at(s),f=t[c],m=To(s,g,c,f,n);if(m!==0){m<0&&e.updateValue(s,f),s--,c--;continue}let y=n(i,u),w=n(s,g),x=n(i,l);if(Object.is(x,w)){let W=n(c,f);Object.is(W,y)?(e.swap(i,s),e.updateValue(s,f),c--,s--):e.move(s,i),e.updateValue(i,l),i++;continue}if(r??=new ur,o??=rc(e,i,s,n),li(e,r,i,x))e.updateValue(i,l),i++,s++;else if(o.has(x))r.set(y,e.detach(i)),s--;else{let W=e.create(i,t[i]);e.attach(i,W),i++,s++}}for(;i<=c;)nc(e,r,n,i,t[i]),i++}else if(t!=null){let c=t[Symbol.iterator](),u=c.next();for(;!u.done&&i<=s;){let l=e.at(i),p=u.value,g=To(i,l,i,p,n);if(g!==0)g<0&&e.updateValue(i,p),i++,u=c.next();else{r??=new ur,o??=rc(e,i,s,n);let f=n(i,p);if(li(e,r,i,f))e.updateValue(i,p),i++,s++,u=c.next();else if(!o.has(f))e.attach(i,e.create(i,p)),i++,s++,u=c.next();else{let m=n(i,l);r.set(m,e.detach(i)),s--}}}for(;!u.done;)nc(e,r,n,e.length,u.value),u=c.next()}for(;i<=s;)e.destroy(e.detach(s--));r?.forEach(c=>{e.destroy(c)})}function li(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function nc(e,t,n,r,o){if(li(e,t,r,n(r,o)))e.updateValue(r,o);else{let i=e.create(r,o);e.attach(r,i)}}function rc(e,t,n,r){let o=new Set;for(let i=t;i<=n;i++)o.add(r(i,e.at(i)));return o}var ur=class{kvMap=new Map;_vMap=void 0;has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;let n=this.kvMap.get(t);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(r);)r=o.get(r);o.set(r,n)}else this.kvMap.set(t,n)}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),this._vMap!==void 0){let o=this._vMap;for(;o.has(r);)r=o.get(r),t(r,n)}}};function os(e,t){Ft("NgControlFlow");let n=U(),r=Dr(),o=n[r]!==Ye?n[r]:-1,i=o!==-1?lr(n,J+o):void 0,s=0;if(We(n,r,e)){let a=R(null);try{if(i!==void 0&&qu(i,s),e!==-1){let c=J+e,u=lr(n,c),l=hi(n[N],c),p=ts(u,l.tView.ssrId),g=Wi(n,l,t,{dehydratedView:p});Xi(u,g,s,qi(l,p))}}finally{R(a)}}else if(i!==void 0){let a=Wu(i,s);a!==void 0&&(a[K]=t)}}var di=class{lContainer;$implicit;$index;constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-oe}};var fi=class{hasEmptyBlock;trackByFn;liveCollection;constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}};function ol(e,t,n,r,o,i,s,a,c,u,l,p,g){Ft("NgControlFlow");let f=U(),m=Ie(),y=c!==void 0,w=U(),x=a?s.bind(w[Te][K]):s,W=new fi(y,x);w[J+e]=W,ii(f,m,e+1,t,n,r,o,Nt(m.consts,i)),y&&ii(f,m,e+2,c,u,l,p,Nt(m.consts,g))}var pi=class extends ui{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r}get length(){return this.lContainer.length-oe}at(t){return this.getLView(t)[K].$implicit}attach(t,n){let r=n[Xt];this.needsIndexUpdate||=t!==this.length,Xi(this.lContainer,n,t,qi(this.templateTNode,r))}detach(t){return this.needsIndexUpdate||=t!==this.length-1,Yg(this.lContainer,t)}create(t,n){let r=ts(this.lContainer,this.templateTNode.tView.ssrId),o=Wi(this.hostLView,this.templateTNode,new di(this.lContainer,n,t),{dehydratedView:r});return this.operationsCounter?.recordCreate(),o}destroy(t){Qi(t[N],t),this.operationsCounter?.recordDestroy()}updateValue(t,n){this.getLView(t)[K].$implicit=n}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t<this.length;t++)this.getLView(t)[K].$index=t}getLView(t){return Qg(this.lContainer,t)}};function il(e){let t=R(null),n=Ze();try{let r=U(),o=r[N],i=r[n],s=n+1,a=lr(r,s);if(i.liveCollection===void 0){let u=hi(o,s);i.liveCollection=new pi(a,r,u)}else i.liveCollection.reset();let c=i.liveCollection;if(Zg(c,e,i.trackByFn),c.updateIndexes(),i.hasEmptyBlock){let u=Dr(),l=c.length===0;if(We(r,u,l)){let p=n+2,g=lr(r,p);if(l){let f=hi(o,p),m=ts(g,f.tView.ssrId),y=Wi(r,f,void 0,{dehydratedView:m});Xi(g,y,0,qi(f,m))}else qu(g,0)}}}finally{R(t)}}function lr(e,t){return e[t]}function Yg(e,t){return es(e,t)}function Qg(e,t){return Wu(e,t)}function hi(e,t){return Ci(e,t)}function pt(e,t,n,r){let o=U(),i=Ie(),s=J+e,a=o[ae],c=i.firstCreatePass?Ku(s,i,o,t,Ou,Rc(),n,r):i.data[s],u=Kg(i,o,c,a,t,e);o[s]=u;let l=bc(c);return Pt(c,!0),Mu(a,u,c),!Pu(c)&&Ni()&&Ki(i,o,u,c),(_f()===0||l)&&un(u,o),bf(),l&&($i(i,o,c),Du(i,c,o)),r!==null&&Ru(o,c),pt}function Qe(){let e=cn();Pc()?Af():(e=e.parent,Pt(e,!1));let t=e;Sf(t)&&Nf(),Mf();let n=Ie();return n.firstCreatePass&&Ju(n,t),t.classesWithoutHost!=null&&Wf(t)&&ec(n,t,U(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&qf(t)&&ec(n,t,U(),t.stylesWithoutHost,!1),Qe}function Rr(e,t,n,r){return pt(e,t,n,r),Qe(),Rr}var Kg=(e,t,n,r,o,i)=>(xi(!0),_u(r,o,Uf()));var dr="en-US";var Jg=dr;function Xg(e){typeof e=="string"&&(Jg=e.toLowerCase().replace(/_/g,"-"))}function ht(e=1){return Bf(e)}function is(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function dn(e,t=""){let n=U(),r=Ie(),o=e+J,i=r.firstCreatePass?Tr(r,o,1,t,null):r.data[o],s=em(r,n,i,t,e);n[o]=s,Ni()&&Ki(r,n,s,i),Pt(i,!1)}var em=(e,t,n,r,o)=>(xi(!0),Gp(t[ae],r));function Or(e){return fn("",e,""),Or}function fn(e,t,n){let r=U(),o=Ag(r,e,t,n);return o!==Ye&&tm(r,Ze(),o),fn}function tm(e,t,n){let r=Nc(t,e);zp(e[ae],r,n)}var sl={};function ss(e){let t=Ie(),n=U(),r=e+J,o=Tr(t,r,128,null,null);return Pt(o,!1),is(t,n,r,sl),ss}function al(e){Ft("NgLet");let t=Ie(),n=U(),r=Ze();return is(t,n,r,e),e}function as(e){let t=Rf(),n=_i(t,J+e);if(n===sl)throw new P(314,!1);return n}function cl(e,t){let n=e[t];return n===Ye?void 0:n}function nm(e,t,n,r,o,i){let s=t+n;return We(e,s,o)?el(e,s+1,i?r.call(i,o):r(o)):cl(e,s+1)}function rm(e,t,n,r,o,i,s){let a=t+n;return Eg(e,a,o,i)?el(e,a+2,s?r.call(s,o,i):r(o,i)):cl(e,a+2)}function Pr(e,t){let n=Ie(),r,o=e+J;n.firstCreatePass?(r=om(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];let i=r.factory||(r.factory=bt(r.type,!0)),s,a=re(Sr);try{let c=Xn(!1),u=i();return Xn(c),is(n,U(),o,u),u}finally{re(a)}}function om(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function ul(e,t,n){let r=e+J,o=U(),i=_i(o,r);return ll(o,r)?nm(o,kc(),t,i.transform,n,i):i.transform(n)}function cs(e,t,n,r){let o=e+J,i=U(),s=_i(i,o);return ll(i,o)?rm(i,kc(),t,s.transform,n,r,s):s.transform(n,r)}function ll(e,t){return e[N].data[t].pure}var im=(()=>{class e{zone=F(Y);changeDetectionScheduler=F($e);applicationRef=F(qe);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function sm({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new Y(Ce(ue({},am()),{scheduleInRootZone:n})),[{provide:Y,useFactory:e},{provide:Kt,multi:!0,useFactory:()=>{let r=F(im,{optional:!0});return()=>r.initialize()}},{provide:Kt,multi:!0,useFactory:()=>{let r=F(cm);return()=>{r.initialize()}}},t===!0?{provide:ou,useValue:!0}:[],{provide:Ri,useValue:n??nu}]}function am(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var cm=(()=>{class e{subscription=new X;initialized=!1;zone=F(Y);pendingTasks=F(Ir);initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{Y.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{Y.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var dl=(()=>{class e{appRef=F(qe);taskService=F(Ir);ngZone=F(Y);zonelessEnabled=F(Er);tracing=F(Cr,{optional:!0});disableScheduling=F(ou,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new X;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(nr):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(F(Ri,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof rr||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;let r=!1;switch(n){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2,r=!0;break}case 12:{this.appRef.dirtyFlags|=16,r=!0;break}case 13:{this.appRef.dirtyFlags|=2,r=!0;break}case 11:{r=!0;break}case 9:case 8:case 7:case 10:default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(r))return;let o=this.useMicrotaskScheduler?Ba:iu;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>o(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>o(()=>this.tick()))}shouldScheduleTick(n){return!(this.disableScheduling&&!n||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(nr+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){throw this.taskService.remove(n),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,Ba(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static \u0275fac=function(r){return new(r||e)};static \u0275prov=q({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function fl(){return Ft("NgZoneless"),yc([{provide:$e,useExisting:dl},{provide:Y,useClass:rr},{provide:Er,useValue:!0},{provide:Ri,useValue:!1},[]])}function um(){return typeof $localize<"u"&&$localize.locale||dr}var us=new k("",{providedIn:"root",factory:()=>F(us,T.Optional|T.SkipSelf)||um()});var gi=new k(""),lm=new k("");function Wt(e){return!e.moduleRef}function dm(e){let t=Wt(e)?e.r3Injector:e.moduleRef.injector,n=t.get(Y);return n.run(()=>{Wt(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(Ge,null),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:i=>{r.handleError(i)}})}),Wt(e)){let i=()=>t.destroy(),s=e.platformInjector.get(gi);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(gi);s.add(i),e.moduleRef.onDestroy(()=>{Wn(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return pm(r,n,()=>{let i=t.get(rl);return i.runInitializers(),i.donePromise.then(()=>{let s=t.get(us,dr);if(Xg(s||dr),!t.get(lm,!0))return Wt(e)?t.get(qe):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(Wt(e)){let c=t.get(qe);return e.rootComponent!==void 0&&c.bootstrap(e.rootComponent),c}else return fm(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}function fm(e,t){let n=e.injector.get(qe);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(e.instance.ngDoBootstrap)e.instance.ngDoBootstrap(n);else throw new P(-403,!1);t.push(e)}function pm(e,t,n){try{let r=n();return ns(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}var qn=null;function hm(e=[],t){return Se.create({name:t,providers:[{provide:hr,useValue:"platform"},{provide:gi,useValue:new Set([()=>qn=null])},...e]})}function gm(e=[]){if(qn)return qn;let t=hm(e);return qn=t,Tg(),mm(t),t}function mm(e){let t=e.get(Li,null);Ic(e,()=>{t?.forEach(n=>n())})}function pl(e){H(8);try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,o=gm(r),i=[sm({}),{provide:$e,useExisting:dl},...n||[]],s=new ar({providers:i,parent:o,debugName:"",runEnvironmentInitializers:!1});return dm({r3Injector:s.injector,platformInjector:o,rootComponent:t})}catch(t){return Promise.reject(t)}finally{H(9)}}var oc=class{[Pe];constructor(t){this[Pe]=t}destroy(){this[Pe].destroy()}};var ym={schedule(e,t){let n=setTimeout(e,t);return()=>clearTimeout(n)}};function vm(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function Dm(e){return!!e&&e.nodeType===Node.ELEMENT_NODE}var ls;function Em(e,t){if(!ls){let n=Element.prototype;ls=n.matches||n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}return e.nodeType===Node.ELEMENT_NODE?ls.call(e,t):!1}function Im(e){let t={};return e.forEach(({propName:n,templateName:r,transform:o})=>{t[vm(r)]=[n,o]}),t}function wm(e,t){return t.get(ze).resolveComponentFactory(e).inputs}function Cm(e,t){let n=e.childNodes,r=t.map(()=>[]),o=-1;t.some((i,s)=>i==="*"?(o=s,!0):!1);for(let i=0,s=n.length;i<s;++i){let a=n[i],c=_m(a,t,o);c!==-1&&r[c].push(a)}return r}function _m(e,t,n){let r=n;return Dm(e)&&t.some((o,i)=>o!=="*"&&Em(e,o)?(r=i,!0):!1),r}var bm=10,ds=class{componentFactory;inputMap=new Map;constructor(t,n){this.componentFactory=n.get(ze).resolveComponentFactory(t);for(let r of this.componentFactory.inputs)this.inputMap.set(r.propName,r.templateName)}create(t){return new fs(this.componentFactory,t,this.inputMap)}},fs=class{componentFactory;injector;inputMap;eventEmitters=new Gt(1);events=this.eventEmitters.pipe(mo(t=>go(...t)));componentRef=null;scheduledDestroyFn=null;initialInputValues=new Map;ngZone;elementZone;appRef;cdScheduler;constructor(t,n,r){this.componentFactory=t,this.injector=n,this.inputMap=r,this.ngZone=this.injector.get(Y),this.appRef=this.injector.get(qe),this.cdScheduler=n.get($e),this.elementZone=typeof Zone>"u"?null:this.ngZone.run(()=>Zone.current)}connect(t){this.runInZone(()=>{if(this.scheduledDestroyFn!==null){this.scheduledDestroyFn(),this.scheduledDestroyFn=null;return}this.componentRef===null&&this.initializeComponent(t)})}disconnect(){this.runInZone(()=>{this.componentRef===null||this.scheduledDestroyFn!==null||(this.scheduledDestroyFn=ym.schedule(()=>{this.componentRef!==null&&(this.componentRef.destroy(),this.componentRef=null)},bm))})}getInputValue(t){return this.runInZone(()=>this.componentRef===null?this.initialInputValues.get(t):this.componentRef.instance[t])}setInputValue(t,n){if(this.componentRef===null){this.initialInputValues.set(t,n);return}this.runInZone(()=>{this.componentRef.setInput(this.inputMap.get(t)??t,n),this.componentRef.hostView.dirty&&(this.componentRef.changeDetectorRef.markForRefresh(),this.cdScheduler.notify(6))})}initializeComponent(t){let n=Se.create({providers:[],parent:this.injector}),r=Cm(t,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(n,r,t),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.appRef.attachView(this.componentRef.hostView),this.componentRef.hostView.detectChanges()}initializeInputs(){for(let[t,n]of this.initialInputValues)this.setInputValue(t,n);this.initialInputValues.clear()}initializeOutputs(t){let n=this.componentFactory.outputs.map(({propName:r,templateName:o})=>{let i=t.instance[r];return new z(s=>{let a=i.subscribe(c=>s.next({name:o,value:c}));return()=>a.unsubscribe()})});this.eventEmitters.next(n)}runInZone(t){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(t):t()}},ps=class extends HTMLElement{ngElementEventsSubscription=null};function gl(e,t){let n=wm(e,t.injector),r=t.strategyFactory||new ds(e,t.injector),o=Im(n);class i extends ps{injector;static observedAttributes=Object.keys(o);get ngElementStrategy(){if(!this._ngElementStrategy){let a=this._ngElementStrategy=r.create(this.injector||t.injector);n.forEach(({propName:c,transform:u})=>{if(!this.hasOwnProperty(c))return;let l=this[c];delete this[c],a.setInputValue(c,l,u)})}return this._ngElementStrategy}_ngElementStrategy;constructor(a){super(),this.injector=a}attributeChangedCallback(a,c,u,l){let[p,g]=o[a];this.ngElementStrategy.setInputValue(p,u,g)}connectedCallback(){let a=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),a=!0),this.ngElementStrategy.connect(this),a||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(a=>{let c=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(c)})}}return n.forEach(({propName:s,transform:a})=>{Object.defineProperty(i.prototype,s,{get(){return this.ngElementStrategy.getInputValue(s)},set(c){this.ngElementStrategy.setInputValue(s,c,a)},configurable:!0,enumerable:!0})}),i}var ml=null;function hs(){return ml}function yl(e){ml??=e}var kr=class{};var Ke=new k("");function vl(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[o,i]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}var Dl="browser",Mm="server";function gs(e){return e===Mm}var Lr=class{};var ys=class extends kr{supportsDOMEvents=!0},vs=class e extends ys{static makeCurrent(){yl(new e)}onAndCancel(t,n,r,o){return t.addEventListener(n,r,o),()=>{t.removeEventListener(n,r,o)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.remove()}createElement(t,n){return n=n||this.getDefaultDocument(),n.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=Tm();return n==null?null:Sm(n)}resetBaseElement(){pn=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return vl(document.cookie,t)}},pn=null;function Tm(){return pn=pn||document.querySelector("base"),pn?pn.getAttribute("href"):null}function Sm(e){return new URL(e,document.baseURI).pathname}var Nm=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||e)};static \u0275prov=q({token:e,factory:e.\u0275fac})}return e})(),Ds=new k(""),bl=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,r){this._zone=r,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,o,i){return this._findPluginFor(r).addEventListener(n,r,o,i)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new P(5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(r){return new(r||e)(L(Ds),L(Y))};static \u0275prov=q({token:e,factory:e.\u0275fac})}return e})(),jr=class{_doc;constructor(t){this._doc=t}manager},Vr="ng-app-id";function El(e){for(let t of e)t.remove()}function Il(e,t){let n=t.createElement("style");return n.textContent=e,n}function xm(e,t,n,r){let o=e.head?.querySelectorAll(`style[${Vr}="${t}"],link[${Vr}="${t}"]`);if(o)for(let i of o)i.removeAttribute(Vr),i instanceof HTMLLinkElement?r.set(i.href.slice(i.href.lastIndexOf("/")+1),{usage:0,elements:[i]}):i.textContent&&n.set(i.textContent,{usage:0,elements:[i]})}function Es(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var Ml=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,this.isServer=gs(i),xm(n,r,this.inline,this.external),this.hosts.add(n.head)}addStyles(n,r){for(let o of n)this.addUsage(o,this.inline,Il);r?.forEach(o=>this.addUsage(o,this.external,Es))}removeStyles(n,r){for(let o of n)this.removeUsage(o,this.inline);r?.forEach(o=>this.removeUsage(o,this.external))}addUsage(n,r,o){let i=r.get(n);i?i.usage++:r.set(n,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,o(n,this.doc)))})}removeUsage(n,r){let o=r.get(n);o&&(o.usage--,o.usage<=0&&(El(o.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])El(n);this.hosts.clear()}addHost(n){this.hosts.add(n);for(let[r,{elements:o}]of this.inline)o.push(this.addElement(n,Il(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(n,Es(r,this.doc)))}removeHost(n){this.hosts.delete(n)}addElement(n,r){return this.nonce&&r.setAttribute("nonce",this.nonce),this.isServer&&r.setAttribute(Vr,this.appId),n.appendChild(r)}static \u0275fac=function(r){return new(r||e)(L(Ke),L(ki),L(Vi,8),L(ln))};static \u0275prov=q({token:e,factory:e.\u0275fac})}return e})(),ms={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},ws=/%COMP%/g;var Tl="%COMP%",Am=`_nghost-${Tl}`,Rm=`_ngcontent-${Tl}`,Om=!0,Pm=new k("",{providedIn:"root",factory:()=>Om});function Fm(e){return Rm.replace(ws,e)}function km(e){return Am.replace(ws,e)}function Sl(e,t){return t.map(n=>n.replace(ws,e))}var wl=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(n,r,o,i,s,a,c,u=null,l=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.platformId=a,this.ngZone=c,this.nonce=u,this.tracingService=l,this.platformIsServer=gs(a),this.defaultRenderer=new hn(n,s,c,this.platformIsServer,this.tracingService)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Ne.ShadowDom&&(r=Ce(ue({},r),{encapsulation:Ne.Emulated}));let o=this.getOrCreateRenderer(n,r);return o instanceof Br?o.applyToHost(n):o instanceof gn&&o.applyStyles(),o}getOrCreateRenderer(n,r){let o=this.rendererByCompId,i=o.get(r.id);if(!i){let s=this.doc,a=this.ngZone,c=this.eventManager,u=this.sharedStylesHost,l=this.removeStylesOnCompDestroy,p=this.platformIsServer,g=this.tracingService;switch(r.encapsulation){case Ne.Emulated:i=new Br(c,u,r,this.appId,l,s,a,p,g);break;case Ne.ShadowDom:return new Is(c,u,n,r,s,a,this.nonce,p,g);default:i=new gn(c,u,r,l,s,a,p,g);break}o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(n){this.rendererByCompId.delete(n)}static \u0275fac=function(r){return new(r||e)(L(bl),L(Ml),L(ki),L(Pm),L(Ke),L(ln),L(Y),L(Vi),L(Cr,8))};static \u0275prov=q({token:e,factory:e.\u0275fac})}return e})(),hn=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(t,n,r,o,i){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=o,this.tracingService=i}destroy(){}destroyNode=null;createElement(t,n){return n?this.doc.createElementNS(ms[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(Cl(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(Cl(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){n.remove()}selectRootElement(t,n){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new P(-5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;let i=ms[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let o=ms[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,o){o&(Le.DashCase|Le.Important)?t.style.setProperty(n,r,o&Le.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&Le.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t!=null&&(t[n]=r)}setValue(t,n){t.nodeValue=n}listen(t,n,r,o){if(typeof t=="string"&&(t=hs().getGlobalEventTarget(this.doc,t),!t))throw new Error(`Unsupported event target ${t} for event ${n}`);let i=this.decoratePreventDefault(r);return this.tracingService!==null&&this.tracingService.wrapEventListener&&(i=this.tracingService.wrapEventListener(t,n,i)),this.eventManager.addEventListener(t,n,i,o)}decoratePreventDefault(t){return n=>{if(n==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(n)):t(n))===!1&&n.preventDefault()}}};function Cl(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var Is=class extends hn{sharedStylesHost;hostEl;shadowRoot;constructor(t,n,r,o,i,s,a,c,u){super(t,i,s,c,u),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let l=o.styles;l=Sl(o.id,l);for(let g of l){let f=document.createElement("style");a&&f.setAttribute("nonce",a),f.textContent=g,this.shadowRoot.appendChild(f)}let p=o.getExternalStyles?.();if(p)for(let g of p){let f=Es(g,i);a&&f.setAttribute("nonce",a),this.shadowRoot.appendChild(f)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(null,n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},gn=class extends hn{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(t,n,r,o,i,s,a,c,u){super(t,i,s,a,c),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o;let l=r.styles;this.styles=u?Sl(u,l):l,this.styleUrls=r.getExternalStyles?.(u)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},Br=class extends gn{contentAttr;hostAttr;constructor(t,n,r,o,i,s,a,c,u){let l=o+"-"+r.id;super(t,n,r,i,s,a,c,u,l),this.contentAttr=Fm(l),this.hostAttr=km(l)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){let r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}},Lm=(()=>{class e extends jr{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o,i){return n.addEventListener(r,o,i),()=>this.removeEventListener(n,r,o,i)}removeEventListener(n,r,o,i){return n.removeEventListener(r,o,i)}static \u0275fac=function(r){return new(r||e)(L(Ke))};static \u0275prov=q({token:e,factory:e.\u0275fac})}return e})(),_l=["alt","control","meta","shift"],Vm={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},jm={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},Bm=(()=>{class e extends jr{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,o,i){let s=e.parseEventName(r),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>hs().onAndCancel(n,s.domEventName,a,i))}static parseEventName(n){let r=n.toLowerCase().split("."),o=r.shift();if(r.length===0||!(o==="keydown"||o==="keyup"))return null;let i=e._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),_l.forEach(u=>{let l=r.indexOf(u);l>-1&&(r.splice(l,1),s+=u+".")}),s+=i,r.length!=0||i.length===0)return null;let c={};return c.domEventName=o,c.fullKey=s,c}static matchEventFullKeyCode(n,r){let o=Vm[n.key]||n.key,i="";return r.indexOf("code.")>-1&&(o=n.code,i="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),_l.forEach(s=>{if(s!==o){let a=jm[s];a(n)&&(i+=s+".")}}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return n==="esc"?"escape":n}static \u0275fac=function(r){return new(r||e)(L(Ke))};static \u0275prov=q({token:e,factory:e.\u0275fac})}return e})();function Nl(e){return pl(Hm(e))}function Hm(e){return{appProviders:[...Wm,...e?.providers??[]],platformProviders:zm}}function Um(){vs.makeCurrent()}function $m(){return new Ge}function Gm(){return hu(document),document}var zm=[{provide:ln,useValue:Dl},{provide:Li,useValue:Um,multi:!0},{provide:Ke,useFactory:Gm,deps:[]}];var Wm=[{provide:hr,useValue:"root"},{provide:Ge,useFactory:$m,deps:[]},{provide:Ds,useClass:Lm,multi:!0,deps:[Ke]},{provide:Ds,useClass:Bm,multi:!0,deps:[Ke]},wl,Ml,bl,{provide:xt,useExisting:wl},{provide:Lr,useClass:Nm,deps:[]},[]];var xl={apiURL:"http://localhost:3003",debug:!0,mode:"local"};var ce=ld(Rl());var Ol={name:"@letscooee/web-sdk",description:"Engage uniquely and boost conversions with AI-powered customer journeys driven by real-time intent",version:"9.1.2",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
8
  display: inline-block;
9
9
  font-size: 14px;
10
10
  background: linear-gradient(90deg, #d52dc8 25%, #2179e2 82%);
@@ -23,4 +23,4 @@ Cooee SDK: v${kt.SDK_VERSION}`,console.group("%c Elevate your ecommerce experien
23
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
24
  `),s=0;s<i.length;s++)i[s].length&&(s>0||!r)&&(i[s]=o+i[s]);return i.join(`
25
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);
26
+ `);try{h=new Worker(URL.createObjectURL(new Blob([C])))}catch(_){return typeof console!==void 0&&typeof console.warn=="function"&&console.warn("\u{1F38A} Could not load worker",_),null}E(h)}return h}}(),f={particleCount:50,angle:90,spread:45,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,x:.5,y:.5,shapes:["square","circle"],zIndex:100,colors:["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],disableForReducedMotion:!1,scalar:1};function m(h,d){return d?d(h):h}function y(h){return h!=null}function w(h,d,v){return m(h&&y(h[d])?h[d]:f[d],v)}function x(h){return h<0?0:Math.floor(h)}function W(h,d){return Math.floor(Math.random()*(d-h))+h}function Ae(h){return parseInt(h,16)}function gt(h){return h.map(Re)}function Re(h){var d=String(h).replace(/[^0-9a-f]/gi,"");return d.length<6&&(d=d[0]+d[0]+d[1]+d[1]+d[2]+d[2]),{r:Ae(d.substring(0,2)),g:Ae(d.substring(2,4)),b:Ae(d.substring(4,6))}}function Bt(h){var d=w(h,"origin",Object);return d.x=w(d,"x",Number),d.y=w(d,"y",Number),d}function Qr(h){h.width=document.documentElement.clientWidth,h.height=document.documentElement.clientHeight}function he(h){var d=h.getBoundingClientRect();h.width=d.width,h.height=d.height}function jl(h){var d=document.createElement("canvas");return d.style.position="fixed",d.style.top="0px",d.style.left="0px",d.style.pointerEvents="none",d.style.zIndex=h,d}function Bl(h,d,v,E,C,_,b,D,M){h.save(),h.translate(d,v),h.rotate(_),h.scale(E,C),h.arc(0,0,1,b,D,M),h.restore()}function Hl(h){var d=h.angle*(Math.PI/180),v=h.spread*(Math.PI/180);return{x:h.x,y:h.y,wobble:Math.random()*10,wobbleSpeed:Math.min(.11,Math.random()*.1+.05),velocity:h.startVelocity*.5+Math.random()*h.startVelocity,angle2D:-d+(.5*v-Math.random()*v),tiltAngle:(Math.random()*(.75-.25)+.25)*Math.PI,color:h.color,shape:h.shape,tick:0,totalTicks:h.ticks,decay:h.decay,drift:h.drift,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:h.gravity*3,ovalScalar:.6,scalar:h.scalar,flat:h.flat}}function Ul(h,d){d.x+=Math.cos(d.angle2D)*d.velocity+d.drift,d.y+=Math.sin(d.angle2D)*d.velocity+d.gravity,d.velocity*=d.decay,d.flat?(d.wobble=0,d.wobbleX=d.x+10*d.scalar,d.wobbleY=d.y+10*d.scalar,d.tiltSin=0,d.tiltCos=0,d.random=1):(d.wobble+=d.wobbleSpeed,d.wobbleX=d.x+10*d.scalar*Math.cos(d.wobble),d.wobbleY=d.y+10*d.scalar*Math.sin(d.wobble),d.tiltAngle+=.1,d.tiltSin=Math.sin(d.tiltAngle),d.tiltCos=Math.cos(d.tiltAngle),d.random=Math.random()+2);var v=d.tick++/d.totalTicks,E=d.x+d.random*d.tiltCos,C=d.y+d.random*d.tiltSin,_=d.wobbleX+d.random*d.tiltCos,b=d.wobbleY+d.random*d.tiltSin;if(h.fillStyle="rgba("+d.color.r+", "+d.color.g+", "+d.color.b+", "+(1-v)+")",h.beginPath(),s&&d.shape.type==="path"&&typeof d.shape.path=="string"&&Array.isArray(d.shape.matrix))h.fill(Gl(d.shape.path,d.shape.matrix,d.x,d.y,Math.abs(_-E)*.1,Math.abs(b-C)*.1,Math.PI/10*d.wobble));else if(d.shape.type==="bitmap"){var D=Math.PI/10*d.wobble,M=Math.abs(_-E)*.1,V=Math.abs(b-C)*.1,$=d.shape.bitmap.width*d.scalar,j=d.shape.bitmap.height*d.scalar,G=new DOMMatrix([Math.cos(D)*M,Math.sin(D)*M,-Math.sin(D)*V,Math.cos(D)*V,d.x,d.y]);G.multiplySelf(new DOMMatrix(d.shape.matrix));var Q=h.createPattern(l.transform(d.shape.bitmap),"no-repeat");Q.setTransform(G),h.globalAlpha=1-v,h.fillStyle=Q,h.fillRect(d.x-$/2,d.y-j/2,$,j),h.globalAlpha=1}else if(d.shape==="circle")h.ellipse?h.ellipse(d.x,d.y,Math.abs(_-E)*d.ovalScalar,Math.abs(b-C)*d.ovalScalar,Math.PI/10*d.wobble,0,2*Math.PI):Bl(h,d.x,d.y,Math.abs(_-E)*d.ovalScalar,Math.abs(b-C)*d.ovalScalar,Math.PI/10*d.wobble,0,2*Math.PI);else if(d.shape==="star")for(var A=Math.PI/2*3,te=4*d.scalar,ge=8*d.scalar,me=d.x,Oe=d.y,Je=5,we=Math.PI/Je;Je--;)me=d.x+Math.cos(A)*ge,Oe=d.y+Math.sin(A)*ge,h.lineTo(me,Oe),A+=we,me=d.x+Math.cos(A)*te,Oe=d.y+Math.sin(A)*te,h.lineTo(me,Oe),A+=we;else h.moveTo(Math.floor(d.x),Math.floor(d.y)),h.lineTo(Math.floor(d.wobbleX),Math.floor(C)),h.lineTo(Math.floor(_),Math.floor(b)),h.lineTo(Math.floor(E),Math.floor(d.wobbleY));return h.closePath(),h.fill(),d.tick<d.totalTicks}function $l(h,d,v,E,C){var _=d.slice(),b=h.getContext("2d"),D,M,V=u(function($){function j(){D=M=null,b.clearRect(0,0,E.width,E.height),l.clear(),C(),$()}function G(){r&&!(E.width===o.width&&E.height===o.height)&&(E.width=h.width=o.width,E.height=h.height=o.height),!E.width&&!E.height&&(v(h),E.width=h.width,E.height=h.height),b.clearRect(0,0,E.width,E.height),_=_.filter(function(Q){return Ul(b,Q)}),_.length?D=p.frame(G):j()}D=p.frame(G),M=j});return{addFettis:function($){return _=_.concat($),V},canvas:h,promise:V,reset:function(){D&&p.cancel(D),M&&M()}}}function Ts(h,d){var v=!h,E=!!w(d||{},"resize"),C=!1,_=w(d,"disableForReducedMotion",Boolean),b=i&&!!w(d||{},"useWorker"),D=b?g():null,M=v?Qr:he,V=h&&D?!!h.__confetti_initialized:!1,$=typeof matchMedia=="function"&&matchMedia("(prefers-reduced-motion)").matches,j;function G(A,te,ge){for(var me=w(A,"particleCount",x),Oe=w(A,"angle",Number),Je=w(A,"spread",Number),we=w(A,"startVelocity",Number),ql=w(A,"decay",Number),Zl=w(A,"gravity",Number),Yl=w(A,"drift",Number),Ns=w(A,"colors",gt),Ql=w(A,"ticks",Number),xs=w(A,"shapes"),Kl=w(A,"scalar"),Jl=!!w(A,"flat"),As=Bt(A),Rs=me,Jr=[],Xl=h.width*As.x,ed=h.height*As.y;Rs--;)Jr.push(Hl({x:Xl,y:ed,angle:Oe,spread:Je,startVelocity:we,color:Ns[Rs%Ns.length],shape:xs[W(0,xs.length)],ticks:Ql,decay:ql,gravity:Zl,drift:Yl,scalar:Kl,flat:Jl}));return j?j.addFettis(Jr):(j=$l(h,Jr,M,te,ge),j.promise)}function Q(A){var te=_||w(A,"disableForReducedMotion",Boolean),ge=w(A,"zIndex",Number);if(te&&$)return u(function(we){we()});v&&j?h=j.canvas:v&&!h&&(h=jl(ge),document.body.appendChild(h)),E&&!V&&M(h);var me={width:h.width,height:h.height};D&&!V&&D.init(h),V=!0,D&&(h.__confetti_initialized=!0);function Oe(){if(D){var we={getBoundingClientRect:function(){if(!v)return h.getBoundingClientRect()}};M(we),D.postMessage({resize:{width:we.width,height:we.height}});return}me.width=me.height=null}function Je(){j=null,E&&(C=!1,t.removeEventListener("resize",Oe)),v&&h&&(document.body.contains(h)&&document.body.removeChild(h),h=null,V=!1)}return E&&!C&&(C=!0,t.addEventListener("resize",Oe,!1)),D?D.fire(A,me,Je):G(A,me,Je)}return Q.reset=function(){D&&D.reset(),j&&j.reset()},Q}var Kr;function Ss(){return Kr||(Kr=Ts(null,{useWorker:!0,resize:!0})),Kr}function Gl(h,d,v,E,C,_,b){var D=new Path2D(h),M=new Path2D;M.addPath(D,new DOMMatrix(d));var V=new Path2D;return V.addPath(M,new DOMMatrix([Math.cos(b)*C,Math.sin(b)*C,-Math.sin(b)*_,Math.cos(b)*_,v,E])),V}function zl(h){if(!s)throw new Error("path confetti are not supported in this browser");var d,v;typeof h=="string"?d=h:(d=h.path,v=h.matrix);var E=new Path2D(d),C=document.createElement("canvas"),_=C.getContext("2d");if(!v){for(var b=1e3,D=b,M=b,V=0,$=0,j,G,Q=0;Q<b;Q+=2)for(var A=0;A<b;A+=2)_.isPointInPath(E,Q,A,"nonzero")&&(D=Math.min(D,Q),M=Math.min(M,A),V=Math.max(V,Q),$=Math.max($,A));j=V-D,G=$-M;var te=10,ge=Math.min(te/j,te/G);v=[ge,0,0,ge,-Math.round(j/2+D)*ge,-Math.round(G/2+M)*ge]}return{type:"path",path:d,matrix:v}}function Wl(h){var d,v=1,E="#000000",C='"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "EmojiOne Color", "Android Emoji", "Twemoji Mozilla", "system emoji", sans-serif';typeof h=="string"?d=h:(d=h.text,v="scalar"in h?h.scalar:v,C="fontFamily"in h?h.fontFamily:C,E="color"in h?h.color:E);var _=10*v,b=""+_+"px "+C,D=new OffscreenCanvas(_,_),M=D.getContext("2d");M.font=b;var V=M.measureText(d),$=Math.ceil(V.actualBoundingBoxRight+V.actualBoundingBoxLeft),j=Math.ceil(V.actualBoundingBoxAscent+V.actualBoundingBoxDescent),G=2,Q=V.actualBoundingBoxLeft+G,A=V.actualBoundingBoxAscent+G;$+=G+G,j+=G+G,D=new OffscreenCanvas($,j),M=D.getContext("2d"),M.font=b,M.fillStyle=E,M.fillText(d,Q,A);var te=1/v;return{type:"bitmap",bitmap:D.transferToImageBitmap(),matrix:[te,0,0,te,-$*te/2,-j*te/2]}}n.exports=function(){return Ss().apply(this,arguments)},n.exports.reset=function(){Ss().reset()},n.exports.create=Ts,n.exports.shapeFromPath=zl,n.exports.shapeFromText=Wl})(function(){return typeof window<"u"?window:typeof self<"u"?self:this||{}}(),Ms,!1);var Vl=Ms.exports,Tw=Ms.exports.create;var Zr=class{static DEFAULTS={scalar:1.4,zIndex:1e4,shapes:["circle","circle","square"],colors:["#f51c8f","#2179e2","#d52dc8","#01a9d9","#78ff44","#fdff6a"]};static async basic(){await this.fire({particleCount:100,spread:70,origin:{y:.6}})}static async leftRight(t=100){let n=[],r=Date.now()+2e3,o=()=>{n.push(this.fire({angle:60,spread:55,origin:{x:0}}),this.fire({angle:120,spread:55,origin:{x:1}})),Date.now()<r&&t>0&&(requestAnimationFrame(o),t--)};o(),await Promise.all(n)}static async realistic(){await Promise.all([this.realisticFire(.25,{spread:26,startVelocity:55}),this.realisticFire(.2,{spread:60}),this.realisticFire(.35,{spread:100,decay:.91,scalar:.8}),this.realisticFire(.1,{spread:120,startVelocity:25,decay:.92,scalar:1.2}),this.realisticFire(.1,{spread:120,startVelocity:45})])}static async fire(t){Object.assign(t,this.DEFAULTS,t),t.particleCount=t.particleCount??this.DEFAULTS.colors.length,await Vl(t)}static async realisticFire(t,n){let o={origin:{y:.7}};await this.fire(Object.assign({},o,n,{particleCount:Math.floor(200*t)}))}};var ly=(e,t)=>t.minValue;function dy(e,t){if(e&1&&(dn(0),Pr(1,"cooeeDynamicVariables")),e&2){ht();let n=as(0),r=ht();fn(" ",cs(1,1,n.nextMilestone.reachingText,r.localDynamicVariables)," ")}}function fy(e,t){if(e&1&&(dn(0),Pr(1,"cooeeDynamicVariables")),e&2){ht();let n=as(0),r=ht();fn(" ",cs(1,1,n.lastMilestone.reachedText,r.localDynamicVariables)," ")}}function py(e,t){if(e&1&&(pt(0,"li",6)(1,"div",7)(2,"div",8),dn(3),Pr(4,"cooeeCurrency"),Qe(),Rr(5,"img",9),pt(6,"div",10),dn(7),Qe()()()),e&2){let n=t.$implicit,r=ht(2);Ar("left",n.calculatedAlignment+"%"),ft(3),Or(ul(4,5,n.minValue)),ft(2),rs("src",r.getIconURL(n),wu),ft(2),Or(n.label)}}function hy(e,t){if(e&1&&(ss(0),pt(1,"div",0),xr(2,dy,2,4)(3,fy,2,4),Qe(),pt(4,"div",1)(5,"ul",2)(6,"div",3),Rr(7,"div",4),Qe(),ol(8,py,8,7,"li",5,ly),Qe()()),e&2){let n=al(ht().calculatedState());ft(2),os(n.nextMilestone?2:3),ft(5),Ar("width",n.cartValuePercentage+"%"),ft(),il(n.milestones)}}var Yr=class e{constructor(t){this.elementRef=t;this.elementRef.nativeElement.update=this.update.bind(this)}cart;localDynamicVariables={};calculatedState=Fi({});_engagementTrigger=Fi(null);set engagementTrigger(t){this._engagementTrigger.set(t)}ngOnInit(){ie.debug("Init progressbar"),this.calculateMilestonesSilently()}ngOnDestroy(){ie.debug("Destroying progressbar")}update(){this.calculateMilestonesSilently()}getIconURL(t){return t.rewardType===mn.FREE_SHIPPING?"https://img.icons8.com/ios-filled/50/FFFFFF/free-shipping.png":t.rewardType===mn.DISCOUNT?"https://img.icons8.com/ios-glyphs/30/FFFFFF/sale-price-tag.png":t.rewardType===mn.FREE_AUTO_GIFT?"https://img.icons8.com/ios-filled/50/FFFFFF/gift--v1.png":""}calculateMilestonesSilently(){this.calculateMilestones().catch(t=>ie.error(t))}async calculateMilestones(){let t=this._engagementTrigger();if(!t?.progressBarConfig?.milestones?.length){ie.warn("Milestones not available in progress bar config",t);return}let n=await this.cart.getNormalisedCart(),r=t.progressBarConfig,o=r.milestones.at(-1),i=o.minValue+Math.floor(o.minValue*5/100),s=n.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");(async()=>{let e=await Nl(Pl),t=gl(Yr,{injector:e.injector});customElements.define("cooee-progressbar",t)})();