From 378b0696e3164b94201a15195f4aaa04e7d08a01 Mon Sep 17 00:00:00 2001 From: Al-Mothafar Al-Hasan Date: Mon, 16 Sep 2024 17:59:38 +0300 Subject: [PATCH] Update docs --- docs/index.html | 2 +- docs/{main-MP7MFDPQ.js => main-FJ7KUP3Y.js} | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename docs/{main-MP7MFDPQ.js => main-FJ7KUP3Y.js} (99%) diff --git a/docs/index.html b/docs/index.html index 9f6a84c..a9b5fe8 100644 --- a/docs/index.html +++ b/docs/index.html @@ -9,5 +9,5 @@ - + diff --git a/docs/main-MP7MFDPQ.js b/docs/main-FJ7KUP3Y.js similarity index 99% rename from docs/main-MP7MFDPQ.js rename to docs/main-FJ7KUP3Y.js index 81c8c89..984bceb 100644 --- a/docs/main-MP7MFDPQ.js +++ b/docs/main-FJ7KUP3Y.js @@ -5,7 +5,7 @@ ${i.map((n,r)=>`${r+1}) ${n.toString()}`).join(` `+t.message,r,i,n),t[tC]=r,t[Ba]=null,t}function lC(t,e,i,n=null){t=t&&t.charAt(0)===` `&&t.charAt(1)==iC?t.slice(2):t;let r=ot(e);if(Array.isArray(e))r=e.map(ot).join(" -> ");else if(typeof e=="object"){let o=[];for(let s in e)if(e.hasOwnProperty(s)){let a=e[s];o.push(s+":"+(typeof a=="string"?JSON.stringify(a):ot(a)))}r=`{${o.join(", ")}}`}return`${i}${n?"("+n+")":""}[${r}]: ${t.replace(nC,` `)}`}var jo=lv(ev("Optional"),8);var vl=lv(ev("SkipSelf"),4);function Ai(t,e){let i=t.hasOwnProperty(Va);return i?t[Va]:null}function cC(t,e,i){if(t.length!==e.length)return!1;for(let n=0;nArray.isArray(i)?ef(i,e):e(i))}function cv(t,e,i){e>=t.length?t.push(i):t.splice(e,0,i)}function Ua(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function dC(t,e){let i=[];for(let n=0;ne;){let o=r-2;t[r]=t[o],r--}t[e]=i,t[e+1]=n}}function tf(t,e,i){let n=Vo(t,e);return n>=0?t[n|1]=i:(n=~n,fC(t,n,e,i)),n}function ju(t,e){let i=Vo(t,e);if(i>=0)return t[i|1]}function Vo(t,e){return hC(t,e,1)}function hC(t,e,i){let n=0,r=t.length>>i;for(;r!==n;){let o=n+(r-n>>1),s=t[o<e?r=o:n=o+1}return~(r<e){s=o-1;break}}}for(;o-1){let o;for(;++ro?d="":d=r[u+1].toLowerCase(),n&2&&c!==d){if(Ht(n))return!1;s=!0}}}}return Ht(n)||s}function Ht(t){return(t&1)===0}function bC(t,e,i,n){if(e===null)return-1;let r=0;if(n||!i){let o=!1;for(;r-1)for(i++;i0?'="'+a+'"':"")+"]"}else n&8?r+="."+s:n&4&&(r+=" "+s);else r!==""&&!Ht(s)&&(e+=vg(o,r),r=""),n=s,o=o||!Ht(n);i++}return r!==""&&(e+=vg(o,r)),e}function IC(t){return t.map(CC).join(",")}function xC(t){let e=[],i=[],n=1,r=2;for(;n{let e=wv(t),i=ie(b({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===fv.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||ln.Emulated,styles:t.styles||rt,_:null,schemas:t.schemas||null,tView:null,id:""});Dv(i);let n=t.dependencies;return i.directiveDefs=bg(n,!1),i.pipeDefs=bg(n,!0),i.id=MC(i),i})}function SC(t){return ti(t)||vv(t)}function TC(t){return t!==null}function ne(t){return Po(()=>({type:t.type,bootstrap:t.bootstrap||rt,declarations:t.declarations||rt,imports:t.imports||rt,exports:t.exports||rt,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function yg(t,e){if(t==null)return Ir;let i={};for(let n in t)if(t.hasOwnProperty(n)){let r=t[n],o,s,a=ei.None;Array.isArray(r)?(a=r[0],o=r[1],s=r[2]??o):(o=r,s=r),e?(i[o]=a!==ei.None?[n,a]:n,e[o]=s):i[o]=n}return i}function W(t){return Po(()=>{let e=wv(t);return Dv(e),e})}function gv(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone===!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function ti(t){return t[QE]||null}function vv(t){return t[ZE]||null}function yv(t){return t[KE]||null}function bv(t){let e=ti(t)||vv(t)||yv(t);return e!==null?e.standalone:!1}function _v(t,e){let i=t[YE]||null;if(!i&&e===!0)throw new Error(`Type ${ot(t)} does not have '\u0275mod' property.`);return i}function wv(t){let e={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputTransforms:null,inputConfig:t.inputs||Ir,exportAs:t.exportAs||null,standalone:t.standalone===!0,signals:t.signals===!0,selectors:t.selectors||rt,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:yg(t.inputs,e),outputs:yg(t.outputs),debugInfo:null}}function Dv(t){t.features?.forEach(e=>e(t))}function bg(t,e){if(!t)return null;let i=e?yv:SC;return()=>(typeof t=="function"?t():t).map(n=>i(n)).filter(TC)}function MC(t){let e=0,i=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(let r of i)e=Math.imul(31,e)+r.charCodeAt(0)<<0;return e+=2147483648,"c"+e}function yl(t){return{\u0275providers:t}}function AC(...t){return{\u0275providers:Ev(!0,t),\u0275fromNgModule:!0}}function Ev(t,...e){let i=[],n=new Set,r,o=s=>{i.push(s)};return ef(e,s=>{let a=s;td(a,o,[],n)&&(r||=[],r.push(a))}),r!==void 0&&Cv(r,o),i}function Cv(t,e){for(let i=0;i{e(o,n)})}}function td(t,e,i,n){if(t=it(t),!t)return!1;let r=null,o=fg(t),s=!o&&ti(t);if(!o&&!s){let l=t.ngModule;if(o=fg(l),o)r=l;else return!1}else{if(s&&!s.standalone)return!1;r=t}let a=n.has(r);if(s){if(a)return!1;if(n.add(r),s.dependencies){let l=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let c of l)td(c,e,i,n)}}else if(o){if(o.imports!=null&&!a){n.add(r);let c;try{ef(o.imports,u=>{td(u,e,i,n)&&(c||=[],c.push(u))})}finally{}c!==void 0&&Cv(c,e)}if(!a){let c=Ai(r)||(()=>new r);e({provide:r,useFactory:c,deps:rt},r),e({provide:dv,useValue:r,multi:!0},r),e({provide:xr,useValue:()=>y(r),multi:!0},r)}let l=o.providers;if(l!=null&&!a){let c=t;rf(l,u=>{e(u,c)})}}else return!1;return r!==t&&t.providers!==void 0}function rf(t,e){for(let i of t)ov(i)&&(i=i.\u0275providers),Array.isArray(i)?rf(i,e):e(i)}var NC=ye({provide:String,useValue:ye});function Iv(t){return t!==null&&typeof t=="object"&&NC in t}function RC(t){return!!(t&&t.useExisting)}function OC(t){return!!(t&&t.useFactory)}function Sr(t){return typeof t=="function"}function kC(t){return!!t.useClass}var bl=new x(""),Oa={},FC={},Vu;function of(){return Vu===void 0&&(Vu=new $a),Vu}var st=class{},No=class extends st{get destroyed(){return this._destroyed}constructor(e,i,n,r){super(),this.parent=i,this.source=n,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,id(e,s=>this.processProvider(s)),this.records.set(uv,br(void 0,this)),r.has("environment")&&this.records.set(st,br(void 0,this));let o=this.records.get(bl);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(dv,rt,X.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let e=oe(null);try{for(let n of this._ngOnDestroyHooks)n.ngOnDestroy();let i=this._onDestroyHooks;this._onDestroyHooks=[];for(let n of i)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),oe(e)}}onDestroy(e){return this.assertNotDestroyed(),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){this.assertNotDestroyed();let i=Yn(this),n=ft(void 0),r;try{return e()}finally{Yn(i),ft(n)}}get(e,i=Mo,n=X.Default){if(this.assertNotDestroyed(),e.hasOwnProperty(pg))return e[pg](this);n=gl(n);let r,o=Yn(this),s=ft(void 0);try{if(!(n&X.SkipSelf)){let l=this.records.get(e);if(l===void 0){let c=BC(e)&&ml(e);c&&this.injectableDefInScope(c)?l=br(nd(e),Oa):l=null,this.records.set(e,l)}if(l!=null)return this.hydrate(e,l)}let a=n&X.Self?of():this.parent;return i=n&X.Optional&&i===Mo?null:i,a.get(e,i)}catch(a){if(a.name==="NullInjectorError"){if((a[Ba]=a[Ba]||[]).unshift(ot(e)),o)throw a;return aC(a,e,"R3InjectorError",this.source)}else throw a}finally{ft(s),Yn(o)}}resolveInjectorInitializers(){let e=oe(null),i=Yn(this),n=ft(void 0),r;try{let o=this.get(xr,rt,X.Self);for(let s of o)s()}finally{Yn(i),ft(n),oe(e)}}toString(){let e=[],i=this.records;for(let n of i.keys())e.push(ot(n));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new _(205,!1)}processProvider(e){e=it(e);let i=Sr(e)?e:it(e&&e.provide),n=LC(e);if(!Sr(e)&&e.multi===!0){let r=this.records.get(i);r||(r=br(void 0,Oa,!0),r.factory=()=>Ju(r.multi),this.records.set(i,r)),i=e,r.multi.push(e)}this.records.set(i,n)}hydrate(e,i){let n=oe(null);try{return i.value===Oa&&(i.value=FC,i.value=i.factory()),typeof i.value=="object"&&i.value&&VC(i.value)&&this._ngOnDestroyHooks.add(i.value),i.value}finally{oe(n)}}injectableDefInScope(e){if(!e.providedIn)return!1;let i=it(e.providedIn);return typeof i=="string"?i==="any"||this.scopes.has(i):this.injectorDefTypes.has(i)}removeOnDestroy(e){let i=this._onDestroyHooks.indexOf(e);i!==-1&&this._onDestroyHooks.splice(i,1)}};function nd(t){let e=ml(t),i=e!==null?e.factory:Ai(t);if(i!==null)return i;if(t instanceof x)throw new _(204,!1);if(t instanceof Function)return PC(t);throw new _(204,!1)}function PC(t){if(t.length>0)throw new _(204,!1);let i=GE(t);return i!==null?()=>i.factory(t):()=>new t}function LC(t){if(Iv(t))return br(void 0,t.useValue);{let e=xv(t);return br(e,Oa)}}function xv(t,e,i){let n;if(Sr(t)){let r=it(t);return Ai(r)||nd(r)}else if(Iv(t))n=()=>it(t.useValue);else if(OC(t))n=()=>t.useFactory(...Ju(t.deps||[]));else if(RC(t))n=()=>y(it(t.useExisting));else{let r=it(t&&(t.useClass||t.provide));if(jC(t))n=()=>new r(...Ju(t.deps));else return Ai(r)||nd(r)}return n}function br(t,e,i=!1){return{factory:t,value:e,multi:i?[]:void 0}}function jC(t){return!!t.deps}function VC(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function BC(t){return typeof t=="function"||typeof t=="object"&&t instanceof x}function id(t,e){for(let i of t)Array.isArray(i)?id(i,e):i&&ov(i)?id(i.\u0275providers,e):e(i)}function At(t,e){t instanceof No&&t.assertNotDestroyed();let i,n=Yn(t),r=ft(void 0);try{return e()}finally{Yn(n),ft(r)}}function Sv(){return sv()!==void 0||rC()!=null}function sf(t){if(!Sv())throw new _(-203,!1)}function UC(t){let e=vt.ng;if(e&&e.\u0275compilerFacade)return e.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}function $C(t){return typeof t=="function"}var Rn=0,z=1,B=2,Ye=3,Wt=4,mt=5,Ro=6,Ha=7,Tt=8,Tr=9,cn=10,Te=11,Oo=12,_g=13,Or=14,Mt=15,Ni=16,_r=17,Mn=18,_l=19,Tv=20,Xn=21,ka=22,St=23,at=25,Mv=1;var Ri=7,za=8,Mr=9,ht=10,Wa=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(Wa||{});function Jn(t){return Array.isArray(t)&&typeof t[Mv]=="object"}function On(t){return Array.isArray(t)&&t[Mv]===!0}function Av(t){return(t.flags&4)!==0}function wl(t){return t.componentOffset>-1}function af(t){return(t.flags&1)===1}function ni(t){return!!t.template}function rd(t){return(t[B]&512)!==0}var od=class{constructor(e,i,n){this.previousValue=e,this.currentValue=i,this.firstChange=n}isFirstChange(){return this.firstChange}};function Nv(t,e,i,n){e!==null?e.applyValueToInputSignal(e,n):t[i]=n}function qe(){return Rv}function Rv(t){return t.type.prototype.ngOnChanges&&(t.setInput=zC),HC}qe.ngInherit=!0;function HC(){let t=kv(this),e=t?.current;if(e){let i=t.previous;if(i===Ir)t.previous=e;else for(let n in e)i[n]=e[n];t.current=null,this.ngOnChanges(e)}}function zC(t,e,i,n,r){let o=this.declaredInputs[n],s=kv(t)||WC(t,{previous:Ir,current:null}),a=s.current||(s.current={}),l=s.previous,c=l[o];a[o]=new od(c&&c.currentValue,i,l===Ir),Nv(t,e,r,i)}var Ov="__ngSimpleChanges__";function kv(t){return t[Ov]||null}function WC(t,e){return t[Ov]=e}var wg=null;var sn=function(t,e,i){wg?.(t,e,i)},GC="svg",qC="math";function un(t){for(;Array.isArray(t);)t=t[Rn];return t}function Fv(t,e){return un(e[t])}function Nt(t,e){return un(e[t.index])}function lf(t,e){return t.data[e]}function Pv(t,e){return t[e]}function oi(t,e){let i=e[t];return Jn(i)?i:i[Rn]}function QC(t){return(t[B]&4)===4}function cf(t){return(t[B]&128)===128}function ZC(t){return On(t[Ye])}function Ga(t,e){return e==null?null:t[e]}function Lv(t){t[_r]=0}function jv(t){t[B]&1024||(t[B]|=1024,cf(t)&&El(t))}function KC(t,e){for(;t>0;)e=e[Or],t--;return e}function Dl(t){return!!(t[B]&9216||t[St]?.dirty)}function sd(t){t[cn].changeDetectionScheduler?.notify(8),t[B]&64&&(t[B]|=1024),Dl(t)&&El(t)}function El(t){t[cn].changeDetectionScheduler?.notify(0);let e=Oi(t);for(;e!==null&&!(e[B]&8192||(e[B]|=8192,!cf(e)));)e=Oi(e)}function Vv(t,e){if((t[B]&256)===256)throw new _(911,!1);t[Xn]===null&&(t[Xn]=[]),t[Xn].push(e)}function YC(t,e){if(t[Xn]===null)return;let i=t[Xn].indexOf(e);i!==-1&&t[Xn].splice(i,1)}function Oi(t){let e=t[Ye];return On(e)?e[Ye]:e}var ee={lFrame:Kv(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var Bv=!1;function XC(){return ee.lFrame.elementDepthCount}function JC(){ee.lFrame.elementDepthCount++}function eI(){ee.lFrame.elementDepthCount--}function Uv(){return ee.bindingsEnabled}function $v(){return ee.skipHydrationRootTNode!==null}function tI(t){return ee.skipHydrationRootTNode===t}function nI(){ee.skipHydrationRootTNode=null}function K(){return ee.lFrame.lView}function Fe(){return ee.lFrame.tView}function Ee(t){return ee.lFrame.contextLView=t,t[Tt]}function Ce(t){return ee.lFrame.contextLView=null,t}function Xe(){let t=Hv();for(;t!==null&&t.type===64;)t=t.parent;return t}function Hv(){return ee.lFrame.currentTNode}function iI(){let t=ee.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function Bo(t,e){let i=ee.lFrame;i.currentTNode=t,i.isParent=e}function zv(){return ee.lFrame.isParent}function Wv(){ee.lFrame.isParent=!1}function rI(){return ee.lFrame.contextLView}function Gv(){return Bv}function Dg(t){Bv=t}function uf(){let t=ee.lFrame,e=t.bindingRootIndex;return e===-1&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function oI(t){return ee.lFrame.bindingIndex=t}function kr(){return ee.lFrame.bindingIndex++}function qv(t){let e=ee.lFrame,i=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,i}function sI(){return ee.lFrame.inI18n}function aI(t,e){let i=ee.lFrame;i.bindingIndex=i.bindingRootIndex=t,ad(e)}function lI(){return ee.lFrame.currentDirectiveIndex}function ad(t){ee.lFrame.currentDirectiveIndex=t}function cI(t){let e=ee.lFrame.currentDirectiveIndex;return e===-1?null:t[e]}function df(){return ee.lFrame.currentQueryIndex}function Cl(t){ee.lFrame.currentQueryIndex=t}function uI(t){let e=t[z];return e.type===2?e.declTNode:e.type===1?t[mt]:null}function Qv(t,e,i){if(i&X.SkipSelf){let r=e,o=t;for(;r=r.parent,r===null&&!(i&X.Host);)if(r=uI(o),r===null||(o=o[Or],r.type&10))break;if(r===null)return!1;e=r,t=o}let n=ee.lFrame=Zv();return n.currentTNode=e,n.lView=t,!0}function ff(t){let e=Zv(),i=t[z];ee.lFrame=e,e.currentTNode=i.firstChild,e.lView=t,e.tView=i,e.contextLView=t,e.bindingIndex=i.bindingStartIndex,e.inI18n=!1}function Zv(){let t=ee.lFrame,e=t===null?null:t.child;return e===null?Kv(t):e}function Kv(t){let e={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:t,child:null,inI18n:!1};return t!==null&&(t.child=e),e}function Yv(){let t=ee.lFrame;return ee.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var Xv=Yv;function hf(){let t=Yv();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function dI(t){return(ee.lFrame.contextLView=KC(t,ee.lFrame.contextLView))[Tt]}function $i(){return ee.lFrame.selectedIndex}function ki(t){ee.lFrame.selectedIndex=t}function Uo(){let t=ee.lFrame;return lf(t.tView,t.selectedIndex)}function fI(){return ee.lFrame.currentNamespace}var Jv=!0;function pf(){return Jv}function mf(t){Jv=t}function hI(t,e,i){let{ngOnChanges:n,ngOnInit:r,ngDoCheck:o}=e.type.prototype;if(n){let s=Rv(e);(i.preOrderHooks??=[]).push(t,s),(i.preOrderCheckHooks??=[]).push(t,s)}r&&(i.preOrderHooks??=[]).push(0-t,r),o&&((i.preOrderHooks??=[]).push(t,o),(i.preOrderCheckHooks??=[]).push(t,o))}function gf(t,e){for(let i=e.directiveStart,n=e.directiveEnd;i=n)break}else e[l]<0&&(t[_r]+=65536),(a>14>16&&(t[B]&3)===e&&(t[B]+=16384,Eg(a,o)):Eg(a,o)}var Cr=-1,Fi=class{constructor(e,i,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=i,this.injectImpl=n}};function mI(t){return t instanceof Fi}function gI(t){return(t.flags&8)!==0}function vI(t){return(t.flags&16)!==0}var Uu={},ld=class{constructor(e,i){this.injector=e,this.parentInjector=i}get(e,i,n){n=gl(n);let r=this.injector.get(e,Uu,n);return r!==Uu||i===Uu?r:this.parentInjector.get(e,i,n)}};function ty(t){return t!==Cr}function qa(t){return t&32767}function yI(t){return t>>16}function Qa(t,e){let i=yI(t),n=e;for(;i>0;)n=n[Or],i--;return n}var cd=!0;function Za(t){let e=cd;return cd=t,e}var bI=256,ny=bI-1,iy=5,_I=0,an={};function wI(t,e,i){let n;typeof i=="string"?n=i.charCodeAt(0)||0:i.hasOwnProperty(So)&&(n=i[So]),n==null&&(n=i[So]=_I++);let r=n&ny,o=1<>iy)]|=o}function Ka(t,e){let i=ry(t,e);if(i!==-1)return i;let n=e[z];n.firstCreatePass&&(t.injectorIndex=e.length,$u(n.data,t),$u(e,null),$u(n.blueprint,null));let r=vf(t,e),o=t.injectorIndex;if(ty(r)){let s=qa(r),a=Qa(r,e),l=a[z].data;for(let c=0;c<8;c++)e[o+c]=a[s+c]|l[s+c]}return e[o+8]=r,o}function $u(t,e){t.push(0,0,0,0,0,0,0,0,e)}function ry(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function vf(t,e){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let i=0,n=null,r=e;for(;r!==null;){if(n=cy(r),n===null)return Cr;if(i++,r=r[Or],n.injectorIndex!==-1)return n.injectorIndex|i<<16}return Cr}function ud(t,e,i){wI(t,e,i)}function DI(t,e){if(e==="class")return t.classes;if(e==="style")return t.styles;let i=t.attrs;if(i){let n=i.length,r=0;for(;r>20,d=n?a:a+u,h=r?a+u:c;for(let f=d;f=l&&p.type===i)return f}if(r){let f=s[l];if(f&&ni(f)&&f.type===i)return l}return null}function Pi(t,e,i,n){let r=t[i],o=e.data;if(mI(r)){let s=r;s.resolving&&JE(XE(o[i]));let a=Za(s.canSeeViewProviders);s.resolving=!0;let l,c=s.injectImpl?ft(s.injectImpl):null,u=Qv(t,n,X.Default);try{r=t[i]=s.factory(void 0,o,t,n),e.firstCreatePass&&i>=n.directiveStart&&hI(i,o[i],e)}finally{c!==null&&ft(c),Za(a),s.resolving=!1,Xv()}}return r}function CI(t){if(typeof t=="string")return t.charCodeAt(0)||0;let e=t.hasOwnProperty(So)?t[So]:void 0;return typeof e=="number"?e>=0?e&ny:II:e}function Cg(t,e,i){let n=1<>iy)]&n)}function Ig(t,e){return!(t&X.Self)&&!(t&X.Host&&e)}var Mi=class{constructor(e,i){this._tNode=e,this._lView=i}get(e,i,n){return ay(this._tNode,this._lView,e,gl(n),i)}};function II(){return new Mi(Xe(),K())}function Fr(t){return Po(()=>{let e=t.prototype.constructor,i=e[Va]||dd(e),n=Object.prototype,r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==n;){let o=r[Va]||dd(r);if(o&&o!==i)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function dd(t){return tv(t)?()=>{let e=dd(it(t));return e&&e()}:Ai(t)}function xI(t,e,i,n,r){let o=t,s=e;for(;o!==null&&s!==null&&s[B]&2048&&!(s[B]&512);){let a=ly(o,s,i,n|X.Self,an);if(a!==an)return a;let l=o.parent;if(!l){let c=s[Tv];if(c){let u=c.get(i,an,n);if(u!==an)return u}l=cy(s),s=s[Or]}o=l}return r}function cy(t){let e=t[z],i=e.type;return i===2?e.declTNode:i===1?t[mt]:null}function si(t){return DI(Xe(),t)}function xg(t,e=null,i=null,n){let r=uy(t,e,i,n);return r.resolveInjectorInitializers(),r}function uy(t,e=null,i=null,n,r=new Set){let o=[i||rt,AC(t)];return n=n||(typeof t=="object"?void 0:ot(t)),new No(o,e||of(),n||null,r)}var Si=class Si{static create(e,i){if(Array.isArray(e))return xg({name:""},i,e,"");{let n=e.name??"";return xg({name:n},e.parent,e.providers,n)}}};Si.THROW_IF_NOT_FOUND=Mo,Si.NULL=new $a,Si.\u0275prov=E({token:Si,providedIn:"any",factory:()=>y(uv)}),Si.__NG_ELEMENT_ID__=-1;var Le=Si;var SI=new x("");SI.__NG_ELEMENT_ID__=t=>{let e=Xe();if(e===null)throw new _(204,!1);if(e.type&2)return e.value;if(t&X.Optional)return null;throw new _(204,!1)};var TI="ngOriginalError";function Hu(t){return t[TI]}var dy=!0,Il=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=MI,e.__NG_ENV_ID__=n=>n;let t=e;return t})(),fd=class extends Il{constructor(e){super(),this._lView=e}onDestroy(e){return Vv(this._lView,e),()=>YC(this._lView,e)}};function MI(){return new fd(K())}var hn=(()=>{let e=class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Oe(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),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)}};e.\u0275prov=E({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();var hd=class extends V{constructor(e=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=e,Sv()&&(this.destroyRef=g(Il,{optional:!0})??void 0,this.pendingTasks=g(hn,{optional:!0})??void 0)}emit(e){let i=oe(null);try{super.next(e)}finally{oe(i)}}subscribe(e,i,n){let r=e,o=i||(()=>null),s=n;if(e&&typeof e=="object"){let l=e;r=l.next?.bind(l),o=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(o=this.wrapInTimeout(o),r&&(r=this.wrapInTimeout(r)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:r,error:o,complete:s});return e instanceof de&&e.add(a),a}wrapInTimeout(e){return i=>{let n=this.pendingTasks?.add();setTimeout(()=>{e(i),n!==void 0&&this.pendingTasks?.remove(n)})}}},J=hd;function Ya(...t){}function fy(t){let e,i;function n(){t=Ya;try{i!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(i),e!==void 0&&clearTimeout(e)}catch{}}return e=setTimeout(()=>{t(),n()}),typeof requestAnimationFrame=="function"&&(i=requestAnimationFrame(()=>{t(),n()})),()=>n()}function Sg(t){return queueMicrotask(()=>t()),()=>{t=Ya}}var yf="isAngularZone",Xa=yf+"_ID",AI=0,R=class t{constructor(e){this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new J(!1),this.onMicrotaskEmpty=new J(!1),this.onStable=new J(!1),this.onError=new J(!1);let{enableLongStackTrace:i=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1,scheduleInRootZone:o=dy}=e;if(typeof Zone>"u")throw new _(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)),i&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!r&&n,s.shouldCoalesceRunChangeDetection=r,s.callbackScheduled=!1,s.scheduleInRootZone=o,OI(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(yf)===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new _(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new _(909,!1)}run(e,i,n){return this._inner.run(e,i,n)}runTask(e,i,n,r){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+r,e,NI,Ya,Ya);try{return o.runTask(s,i,n)}finally{o.cancelTask(s)}}runGuarded(e,i,n){return this._inner.runGuarded(e,i,n)}runOutsideAngular(e){return this._outer.run(e)}},NI={};function bf(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function RI(t){if(t.isCheckStableRunning||t.callbackScheduled)return;t.callbackScheduled=!0;function e(){fy(()=>{t.callbackScheduled=!1,pd(t),t.isCheckStableRunning=!0,bf(t),t.isCheckStableRunning=!1})}t.scheduleInRootZone?Zone.root.run(()=>{e()}):t._outer.run(()=>{e()}),pd(t)}function OI(t){let e=()=>{RI(t)},i=AI++;t._inner=t._inner.fork({name:"angular",properties:{[yf]:!0,[Xa]:i,[Xa+i]:!0},onInvokeTask:(n,r,o,s,a,l)=>{if(kI(l))return n.invokeTask(o,s,a,l);try{return Tg(t),n.invokeTask(o,s,a,l)}finally{(t.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),Mg(t)}},onInvoke:(n,r,o,s,a,l,c)=>{try{return Tg(t),n.invoke(o,s,a,l,c)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!FI(l)&&e(),Mg(t)}},onHasTask:(n,r,o,s)=>{n.hasTask(o,s),r===o&&(s.change=="microTask"?(t._hasPendingMicrotasks=s.microTask,pd(t),bf(t)):s.change=="macroTask"&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(n,r,o,s)=>(n.handleError(o,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}function pd(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function Tg(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Mg(t){t._nesting--,bf(t)}var Ja=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new J,this.onMicrotaskEmpty=new J,this.onStable=new J,this.onError=new J}run(e,i,n){return e.apply(i,n)}runGuarded(e,i,n){return e.apply(i,n)}runOutsideAngular(e){return e()}runTask(e,i,n,r){return e.apply(i,n)}};function kI(t){return hy(t,"__ignore_ng_zone__")}function FI(t){return hy(t,"__scheduler_tick__")}function hy(t,e){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[e]===!0}function PI(t="zone.js",e){return t==="noop"?new Ja:t==="zone.js"?new R(e):t}var pt=class{constructor(){this._console=console}handleError(e){let i=this._findOriginalError(e);this._console.error("ERROR",e),i&&this._console.error("ORIGINAL ERROR",i)}_findOriginalError(e){let i=e&&Hu(e);for(;i&&Hu(i);)i=Hu(i);return i||null}},LI=new x("",{providedIn:"root",factory:()=>{let t=g(R),e=g(pt);return i=>t.runOutsideAngular(()=>e.handleError(i))}});function jI(){return Pr(Xe(),K())}function Pr(t,e){return new Y(Nt(t,e))}var Y=(()=>{let e=class e{constructor(n){this.nativeElement=n}};e.__NG_ELEMENT_ID__=jI;let t=e;return t})();function py(t){return t instanceof Y?t.nativeElement:t}function VI(){return this._results[Symbol.iterator]()}var Li=class t{get changes(){return this._changes??=new J}constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;let i=t.prototype;i[Symbol.iterator]||(i[Symbol.iterator]=VI)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,i){return this._results.reduce(e,i)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,i){this.dirty=!1;let n=uC(e);(this._changesDetected=!cC(this._results,n,i))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(e){this._onDirty=e}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}};function my(t){return(t.flags&128)===128}var gy=new Map,BI=0;function UI(){return BI++}function $I(t){gy.set(t[_l],t)}function md(t){gy.delete(t[_l])}var Ag="__ngContext__";function ji(t,e){Jn(e)?(t[Ag]=e[_l],$I(e)):t[Ag]=e}function vy(t){return by(t[Oo])}function yy(t){return by(t[Wt])}function by(t){for(;t!==null&&!On(t);)t=t[Wt];return t}var gd;function _y(t){gd=t}function wy(){if(gd!==void 0)return gd;if(typeof document<"u")return document;throw new _(210,!1)}var $o=new x("",{providedIn:"root",factory:()=>HI}),HI="ng",_f=new x(""),Rt=new x("",{providedIn:"platform",factory:()=>"unknown"});var Gt=new x(""),Ho=new x("",{providedIn:"root",factory:()=>wy().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var zI="h",WI="b";var GI=()=>null;function wf(t,e,i=!1){return GI(t,e,i)}var Dy=!1,qI=new x("",{providedIn:"root",factory:()=>Dy});var xa;function QI(){if(xa===void 0&&(xa=null,vt.trustedTypes))try{xa=vt.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return xa}function xl(t){return QI()?.createHTML(t)||t}var Sa;function Ey(){if(Sa===void 0&&(Sa=null,vt.trustedTypes))try{Sa=vt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Sa}function Ng(t){return Ey()?.createHTML(t)||t}function Rg(t){return Ey()?.createScriptURL(t)||t}var An=class{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Jg})`}},vd=class extends An{getTypeName(){return"HTML"}},yd=class extends An{getTypeName(){return"Style"}},bd=class extends An{getTypeName(){return"Script"}},_d=class extends An{getTypeName(){return"URL"}},wd=class extends An{getTypeName(){return"ResourceURL"}};function Ot(t){return t instanceof An?t.changingThisBreaksApplicationSecurity:t}function kn(t,e){let i=ZI(t);if(i!=null&&i!==e){if(i==="ResourceURL"&&e==="URL")return!0;throw new Error(`Required a safe ${e}, got a ${i} (see ${Jg})`)}return i===e}function ZI(t){return t instanceof An&&t.getTypeName()||null}function Cy(t){return new vd(t)}function Iy(t){return new yd(t)}function xy(t){return new bd(t)}function Sy(t){return new _d(t)}function Ty(t){return new wd(t)}function KI(t){let e=new Ed(t);return YI()?new Dd(e):e}var Dd=class{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e=""+e;try{let i=new window.DOMParser().parseFromString(xl(e),"text/html").body;return i===null?this.inertDocumentHelper.getInertBodyElement(e):(i.firstChild?.remove(),i)}catch{return null}}},Ed=class{constructor(e){this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(e){let i=this.inertDocument.createElement("template");return i.innerHTML=xl(e),i}};function YI(){try{return!!new window.DOMParser().parseFromString(xl(""),"text/html")}catch{return!1}}var XI=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Sl(t){return t=String(t),t.match(XI)?t:"unsafe:"+t}function Fn(t){let e={};for(let i of t.split(","))e[i]=!0;return e}function zo(...t){let e={};for(let i of t)for(let n in i)i.hasOwnProperty(n)&&(e[n]=!0);return e}var My=Fn("area,br,col,hr,img,wbr"),Ay=Fn("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Ny=Fn("rp,rt"),JI=zo(Ny,Ay),ex=zo(Ay,Fn("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),tx=zo(Ny,Fn("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Og=zo(My,ex,tx,JI),Ry=Fn("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),nx=Fn("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),ix=Fn("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),rx=zo(Ry,nx,ix),ox=Fn("script,style,template"),Cd=class{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let i=e.firstChild,n=!0,r=[];for(;i;){if(i.nodeType===Node.ELEMENT_NODE?n=this.startElement(i):i.nodeType===Node.TEXT_NODE?this.chars(i.nodeValue):this.sanitizedSomething=!0,n&&i.firstChild){r.push(i),i=lx(i);continue}for(;i;){i.nodeType===Node.ELEMENT_NODE&&this.endElement(i);let o=ax(i);if(o){i=o;break}i=r.pop()}}return this.buf.join("")}startElement(e){let i=kg(e).toLowerCase();if(!Og.hasOwnProperty(i))return this.sanitizedSomething=!0,!ox.hasOwnProperty(i);this.buf.push("<"),this.buf.push(i);let n=e.attributes;for(let r=0;r"),!0}endElement(e){let i=kg(e).toLowerCase();Og.hasOwnProperty(i)&&!My.hasOwnProperty(i)&&(this.buf.push(""))}chars(e){this.buf.push(Fg(e))}};function sx(t,e){return(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function ax(t){let e=t.nextSibling;if(e&&t!==e.previousSibling)throw Oy(e);return e}function lx(t){let e=t.firstChild;if(e&&sx(t,e))throw Oy(e);return e}function kg(t){let e=t.nodeName;return typeof e=="string"?e:"FORM"}function Oy(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var cx=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ux=/([^\#-~ |!])/g;function Fg(t){return t.replace(/&/g,"&").replace(cx,function(e){let i=e.charCodeAt(0),n=e.charCodeAt(1);return"&#"+((i-55296)*1024+(n-56320)+65536)+";"}).replace(ux,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}var Ta;function Df(t,e){let i=null;try{Ta=Ta||KI(t);let n=e?String(e):"";i=Ta.getInertBodyElement(n);let r=5,o=n;do{if(r===0)throw new Error("Failed to sanitize html because the input is unstable");r--,n=o,o=i.innerHTML,i=Ta.getInertBodyElement(n)}while(n!==o);let a=new Cd().sanitizeChildren(Pg(i)||i);return xl(a)}finally{if(i){let n=Pg(i)||i;for(;n.firstChild;)n.firstChild.remove()}}}function Pg(t){return"content"in t&&dx(t)?t.content:null}function dx(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var Qe=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(Qe||{});function Tl(t){let e=Ef();return e?Ng(e.sanitize(Qe.HTML,t)||""):kn(t,"HTML")?Ng(Ot(t)):Df(wy(),Lo(t))}function fx(t){let e=Ef();return e?e.sanitize(Qe.URL,t)||"":kn(t,"URL")?Ot(t):Sl(Lo(t))}function hx(t){let e=Ef();if(e)return Rg(e.sanitize(Qe.RESOURCE_URL,t)||"");if(kn(t,"ResourceURL"))return Rg(Ot(t));throw new _(904,!1)}function px(t,e){return e==="src"&&(t==="embed"||t==="frame"||t==="iframe"||t==="media"||t==="script")||e==="href"&&(t==="base"||t==="link")?hx:fx}function ky(t,e,i){return px(e,i)(t)}function Ef(){let t=K();return t&&t[cn].sanitizer}function Fy(t){return t instanceof Function?t():t}function Py(t){return(t??g(Le)).get(Rt)==="browser"}var Nn=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(Nn||{}),mx;function Cf(t,e){return mx(t,e)}function wr(t,e,i,n,r){if(n!=null){let o,s=!1;On(n)?o=n:Jn(n)&&(s=!0,n=n[Rn]);let a=un(n);t===0&&i!==null?r==null?Uy(e,i,a):tl(e,i,a,r||null,!0):t===1&&i!==null?tl(e,i,a,r||null,!0):t===2?Tx(e,a,s):t===3&&e.destroyNode(a),o!=null&&Ax(e,t,o,i,r)}}function gx(t,e){return t.createText(e)}function vx(t,e,i){t.setValue(e,i)}function Ly(t,e,i){return t.createElement(e,i)}function yx(t,e){jy(t,e),e[Rn]=null,e[mt]=null}function bx(t,e,i,n,r,o){n[Rn]=r,n[mt]=e,Ml(t,n,i,1,r,o)}function jy(t,e){e[cn].changeDetectionScheduler?.notify(9),Ml(t,e,e[Te],2,null,null)}function _x(t){let e=t[Oo];if(!e)return zu(t[z],t);for(;e;){let i=null;if(Jn(e))i=e[Oo];else{let n=e[ht];n&&(i=n)}if(!i){for(;e&&!e[Wt]&&e!==t;)Jn(e)&&zu(e[z],e),e=e[Ye];e===null&&(e=t),Jn(e)&&zu(e[z],e),i=e&&e[Wt]}e=i}}function wx(t,e,i,n){let r=ht+n,o=i.length;n>0&&(i[r-1][Wt]=e),n0&&(t[i-1][Wt]=n[Wt]);let o=Ua(t,ht+e);yx(n[z],n);let s=o[Mn];s!==null&&s.detachView(o[z]),n[Ye]=null,n[Wt]=null,n[B]&=-129}return n}function xf(t,e){if(!(e[B]&256)){let i=e[Te];i.destroyNode&&Ml(t,e,i,3,null,null),_x(e)}}function zu(t,e){if(e[B]&256)return;let i=oe(null);try{e[B]&=-129,e[B]|=256,e[St]&&Zs(e[St]),Ex(t,e),Dx(t,e),e[z].type===1&&e[Te].destroy();let n=e[Ni];if(n!==null&&On(e[Ye])){n!==e[Ye]&&If(n,e);let r=e[Mn];r!==null&&r.detachView(t)}md(e)}finally{oe(i)}}function Dx(t,e){let i=t.cleanup,n=e[Ha];if(i!==null)for(let o=0;o=0?n[s]():n[-s].unsubscribe(),o+=2}else{let s=n[i[o+1]];i[o].call(s)}n!==null&&(e[Ha]=null);let r=e[Xn];if(r!==null){e[Xn]=null;for(let o=0;o-1){let{encapsulation:o}=t.data[n.directiveStart+r];if(o===ln.None||o===ln.Emulated)return null}return Nt(n,i)}}function tl(t,e,i,n,r){t.insertBefore(e,i,n,r)}function Uy(t,e,i){t.appendChild(e,i)}function Lg(t,e,i,n,r){n!==null?tl(t,e,i,n,r):Uy(t,e,i)}function $y(t,e){return t.parentNode(e)}function Ix(t,e){return t.nextSibling(e)}function Hy(t,e,i){return Sx(t,e,i)}function xx(t,e,i){return t.type&40?Nt(t,i):null}var Sx=xx,jg;function Sf(t,e,i,n){let r=By(t,n,e),o=e[Te],s=n.parent||e[mt],a=Hy(s,n,e);if(r!=null)if(Array.isArray(i))for(let l=0;lat&&Qy(t,e,at,!1),sn(s?2:0,r),i(n,r)}finally{ki(o),sn(s?3:1,r)}}function Jy(t,e,i){if(Av(e)){let n=oe(null);try{let r=e.directiveStart,o=e.directiveEnd;for(let s=r;snull;function Vx(t,e,i,n){let r=lb(e);r.push(i),t.firstCreatePass&&cb(t).push(n,r.length-1)}function Bx(t,e,i,n,r,o){let s=e?e.injectorIndex:-1,a=0;return $v()&&(a|=128),{type:i,index:n,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:r,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Vg(t,e,i,n,r){for(let o in e){if(!e.hasOwnProperty(o))continue;let s=e[o];if(s===void 0)continue;n??={};let a,l=ei.None;Array.isArray(s)?(a=s[0],l=s[1]):a=s;let c=o;if(r!==null){if(!r.hasOwnProperty(o))continue;c=r[o]}t===0?Bg(n,i,c,a,l):Bg(n,i,c,a)}return n}function Bg(t,e,i,n,r){let o;t.hasOwnProperty(i)?(o=t[i]).push(e,n):o=t[i]=[e,n],r!==void 0&&o.push(r)}function Ux(t,e,i){let n=e.directiveStart,r=e.directiveEnd,o=t.data,s=e.attrs,a=[],l=null,c=null;for(let u=n;u0;){let i=t[--e];if(typeof i=="number"&&i<0)return i}return 0}function Gx(t,e,i,n){let r=i.directiveStart,o=i.directiveEnd;wl(i)&&Jx(e,i,t.data[r+i.componentOffset]),t.firstCreatePass||Ka(i,e),ji(n,e);let s=i.initialInputs;for(let a=r;a{El(t.lView)},consumerOnSignalRead(){this.lView[St]=this}});function mS(t){let e=t[St]??Object.create(gS);return e.lView=t,e}var gS=ie(b({},ar),{consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{let e=Oi(t.lView);for(;e&&!fb(e[z]);)e=Oi(e);e&&jv(e)},consumerOnSignalRead(){this.lView[St]=this}});function fb(t){return t.type!==2}var vS=100;function hb(t,e=!0,i=0){let n=t[cn],r=n.rendererFactory,o=!1;o||r.begin?.();try{yS(t,i)}catch(s){throw e&&ub(t,s),s}finally{o||(r.end?.(),n.inlineEffectRunner?.flush())}}function yS(t,e){let i=Gv();try{Dg(!0),Td(t,e);let n=0;for(;Dl(t);){if(n===vS)throw new _(103,!1);n++,Td(t,1)}}finally{Dg(i)}}function bS(t,e,i,n){let r=e[B];if((r&256)===256)return;let o=!1,s=!1;!o&&e[cn].inlineEffectRunner?.flush(),ff(e);let a=!0,l=null,c=null;o||(fb(t)?(c=dS(e),l=go(c)):Em()===null?(a=!1,c=mS(e),l=go(c)):e[St]&&(Zs(e[St]),e[St]=null));try{Lv(e),oI(t.bindingStartIndex),i!==null&&Xy(t,e,i,2,n);let u=(r&3)===3;if(!o)if(u){let f=t.preOrderCheckHooks;f!==null&&Fa(e,f,null)}else{let f=t.preOrderHooks;f!==null&&Pa(e,f,0,null),Bu(e,0)}if(s||_S(e),pb(e,0),t.contentQueries!==null&&ab(t,e),!o)if(u){let f=t.contentCheckHooks;f!==null&&Fa(e,f)}else{let f=t.contentHooks;f!==null&&Pa(e,f,1),Bu(e,1)}Ox(t,e);let d=t.components;d!==null&&gb(e,d,0);let h=t.viewQuery;if(h!==null&&Sd(2,h,n),!o)if(u){let f=t.viewCheckHooks;f!==null&&Fa(e,f)}else{let f=t.viewHooks;f!==null&&Pa(e,f,2),Bu(e,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),e[ka]){for(let f of e[ka])f();e[ka]=null}o||(e[B]&=-73)}catch(u){throw o||El(e),u}finally{c!==null&&(qs(c,l),a&&hS(c)),hf()}}function pb(t,e){for(let i=vy(t);i!==null;i=yy(i))for(let n=ht;n-1&&(el(e,n),Ua(i,n))}this._attachedToViewContainer=!1}xf(this._lView[z],this._lView)}onDestroy(e){Vv(this._lView,e)}markForCheck(){kf(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[B]&=-129}reattach(){sd(this._lView),this._lView[B]|=128}detectChanges(){this._lView[B]|=1024,hb(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new _(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=rd(this._lView),i=this._lView[Ni];i!==null&&!e&&If(i,this._lView),jy(this._lView[z],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new _(902,!1);this._appRef=e;let i=rd(this._lView),n=this._lView[Ni];n!==null&&!i&&Vy(n,this._lView),sd(this._lView)}},dn=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=CS;let t=e;return t})(),DS=dn,ES=class extends DS{constructor(e,i,n){super(),this._declarationLView=e,this._declarationTContainer=i,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,i){return this.createEmbeddedViewImpl(e,i)}createEmbeddedViewImpl(e,i,n){let r=Rf(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:i,dehydratedView:n});return new Vi(r)}};function CS(){return Ol(Xe(),K())}function Ol(t,e){return t.type&4?new ES(e,t,Pr(t,e)):null}var h$=new RegExp(`^(\\d+)*(${WI}|${zI})*(.*)`);var IS=()=>null;function rl(t,e){return IS(t,e)}var Ar=class{},vb=new x("",{providedIn:"root",factory:()=>!1});var yb=new x(""),bb=new x(""),Md=class{},ol=class{};function xS(t){let e=Error(`No component factory found for ${ot(t)}.`);return e[SS]=t,e}var SS="ngComponent";var Ad=class{resolveComponentFactory(e){throw xS(e)}},Gf=class Gf{};Gf.NULL=new Ad;var Bi=Gf,ii=class{},Pn=(()=>{let e=class e{constructor(){this.destroyNode=null}};e.__NG_ELEMENT_ID__=()=>TS();let t=e;return t})();function TS(){let t=K(),e=Xe(),i=oi(e.index,t);return(Jn(i)?i:t)[Te]}var MS=(()=>{let e=class e{};e.\u0275prov=E({token:e,providedIn:"root",factory:()=>null});let t=e;return t})();function Nd(t,e,i){let n=i?t.styles:null,r=i?t.classes:null,o=0;if(e!==null)for(let s=0;s0&&Gy(t,i,o.join(" "))}}function PS(t,e,i){let n=t.projection=[];for(let r=0;r{let e=class e{};e.__NG_ELEMENT_ID__=jS;let t=e;return t})();function jS(){let t=Xe();return wb(t,K())}var VS=yt,_b=class extends VS{constructor(e,i,n){super(),this._lContainer=e,this._hostTNode=i,this._hostLView=n}get element(){return Pr(this._hostTNode,this._hostLView)}get injector(){return new Mi(this._hostTNode,this._hostLView)}get parentInjector(){let e=vf(this._hostTNode,this._hostLView);if(ty(e)){let i=Qa(e,this._hostLView),n=qa(e),r=i[z].data[n+8];return new Mi(r,i)}else return new Mi(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let i=$g(this._lContainer);return i!==null&&i[e]||null}get length(){return this._lContainer.length-ht}createEmbeddedView(e,i,n){let r,o;typeof n=="number"?r=n:n!=null&&(r=n.index,o=n.injector);let s=rl(this._lContainer,e.ssrId),a=e.createEmbeddedViewImpl(i||{},o,s);return this.insertImpl(a,r,nl(this._hostTNode,s)),a}createComponent(e,i,n,r,o){let s=e&&!$C(e),a;if(s)a=i;else{let p=i||{};a=p.index,n=p.injector,r=p.projectableNodes,o=p.environmentInjector||p.ngModuleRef}let l=s?e:new Nr(ti(e)),c=n||this.parentInjector;if(!o&&l.ngModule==null){let v=(s?c:this.parentInjector).get(st,null);v&&(o=v)}let u=ti(l.componentType??{}),d=rl(this._lContainer,u?.id??null),h=d?.firstChild??null,f=l.create(c,r,h,o);return this.insertImpl(f.hostView,a,nl(this._hostTNode,d)),f}insert(e,i){return this.insertImpl(e,i,!0)}insertImpl(e,i,n){let r=e._lView;if(ZC(r)){let a=this.indexOf(e);if(a!==-1)this.detach(a);else{let l=r[Ye],c=new _b(l,l[mt],l[Ye]);c.detach(c.indexOf(e))}}let o=this._adjustIndex(i),s=this._lContainer;return Of(s,r,o,n),e.attachToViewContainerRef(),cv(Wu(s),o,e),e}move(e,i){return this.insert(e,i)}indexOf(e){let i=$g(this._lContainer);return i!==null?i.indexOf(e):-1}remove(e){let i=this._adjustIndex(e,-1),n=el(this._lContainer,i);n&&(Ua(Wu(this._lContainer),i),xf(n[z],n))}detach(e){let i=this._adjustIndex(e,-1),n=el(this._lContainer,i);return n&&Ua(Wu(this._lContainer),i)!=null?new Vi(n):null}_adjustIndex(e,i=0){return e??this.length+i}};function $g(t){return t[za]}function Wu(t){return t[za]||(t[za]=[])}function wb(t,e){let i,n=e[t.index];return On(n)?i=n:(i=sb(n,e,null,t),e[t.index]=i,Rl(e,i)),US(i,e,t,n),new _b(i,t,e)}function BS(t,e){let i=t[Te],n=i.createComment(""),r=Nt(e,t),o=$y(i,r);return tl(i,o,n,Ix(i,r),!1),n}var US=zS,$S=()=>!1;function HS(t,e,i){return $S(t,e,i)}function zS(t,e,i,n){if(t[Ri])return;let r;i.type&8?r=un(n):r=BS(e,i),t[Ri]=r}var Od=class t{constructor(e){this.queryList=e,this.matches=null}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},kd=class t{constructor(e=[]){this.queries=e}createEmbeddedView(e){let i=e.queries;if(i!==null){let n=e.contentQueries!==null?e.contentQueries[0]:i.length,r=[];for(let o=0;o0)n.push(s[a/2]);else{let c=o[a+1],u=e[-l];for(let d=ht;de.trim())}function Ib(t,e,i){t.queries===null&&(t.queries=new Fd),t.queries.track(new Pd(e,i))}function YS(t,e){let i=t.contentQueries||(t.contentQueries=[]),n=i.length?i[i.length-1]:-1;e!==n&&i.push(t.queries.length-1,e)}function Pf(t,e){return t.queries.getByIndex(e)}function xb(t,e){let i=t[z],n=Pf(i,e);return n.crossesNgTemplate?Ld(i,t,e,[]):Db(i,t,n,e)}var Hg=new Set;function pn(t){Hg.has(t)||(Hg.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}function kl(t){return typeof t=="function"&&t[xt]!==void 0}function Hi(t,e){pn("NgSignals");let i=km(t),n=i[xt];return e?.equal&&(n.equal=e.equal),i.set=r=>Du(n,r),i.update=r=>Fm(n,r),i.asReadonly=XS.bind(i),i}function XS(){let t=this[xt];if(t.readonlyFn===void 0){let e=()=>this();e[xt]=t,t.readonlyFn=e}return t.readonlyFn}function Sb(t){return kl(t)&&typeof t.set=="function"}function Tb(t,e){let i,n=wu(()=>{i._dirtyCounter();let r=nT(i,t);if(e&&r===void 0)throw new _(-951,!1);return r});return i=n[xt],i._dirtyCounter=Hi(0),i._flatValue=void 0,n}function JS(){return Tb(!0,!1)}function eT(){return Tb(!0,!0)}function tT(t,e){let i=t[xt];i._lView=K(),i._queryIndex=e,i._queryList=Ff(i._lView,e),i._queryList.onDirty(()=>i._dirtyCounter.update(n=>n+1))}function nT(t,e){let i=t._lView,n=t._queryIndex;if(i===void 0||n===void 0||i[B]&4)return e?void 0:rt;let r=Ff(i,n),o=xb(i,n);return r.reset(o,py),e?r.first:r._changesDetected||t._flatValue===void 0?t._flatValue=r.toArray():t._flatValue}function zg(t,e){return JS()}function iT(t,e){return eT()}var Mb=(zg.required=iT,zg);function rT(t){let e=[],i=new Map;function n(r){let o=i.get(r);if(!o){let s=t(r);i.set(r,o=s.then(lT))}return o}return ll.forEach((r,o)=>{let s=[];r.templateUrl&&s.push(n(r.templateUrl).then(c=>{r.template=c}));let a=typeof r.styles=="string"?[r.styles]:r.styles||[];if(r.styles=a,r.styleUrl&&r.styleUrls?.length)throw new Error("@Component cannot define both `styleUrl` and `styleUrls`. Use `styleUrl` if the component has one stylesheet, or `styleUrls` if it has multiple");if(r.styleUrls?.length){let c=r.styles.length,u=r.styleUrls;r.styleUrls.forEach((d,h)=>{a.push(""),s.push(n(d).then(f=>{a[c+h]=f,u.splice(u.indexOf(d),1),u.length==0&&(r.styleUrls=void 0)}))})}else r.styleUrl&&s.push(n(r.styleUrl).then(c=>{a.push(c),r.styleUrl=void 0}));let l=Promise.all(s).then(()=>cT(o));e.push(l)}),sT(),Promise.all(e).then(()=>{})}var ll=new Map,oT=new Set;function sT(){let t=ll;return ll=new Map,t}function aT(){return ll.size===0}function lT(t){return typeof t=="string"?t:t.text()}function cT(t){oT.delete(t)}function uT(t){return Object.getPrototypeOf(t.prototype).constructor}function lt(t){let e=uT(t.type),i=!0,n=[t];for(;e;){let r;if(ni(t))r=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new _(903,!1);r=e.\u0275dir}if(r){if(i){n.push(r);let s=t;s.inputs=Ma(t.inputs),s.inputTransforms=Ma(t.inputTransforms),s.declaredInputs=Ma(t.declaredInputs),s.outputs=Ma(t.outputs);let a=r.hostBindings;a&&mT(t,a);let l=r.viewQuery,c=r.contentQueries;if(l&&hT(t,l),c&&pT(t,c),dT(t,r),zE(t.outputs,r.outputs),ni(r)&&r.data.animation){let u=t.data;u.animation=(u.animation||[]).concat(r.data.animation)}}let o=r.features;if(o)for(let s=0;s=0;n--){let r=t[n];r.hostVars=e+=r.hostVars,r.hostAttrs=Ao(r.hostAttrs,i=Ao(i,r.hostAttrs))}}function Ma(t){return t===Ir?{}:t===rt?[]:t}function hT(t,e){let i=t.viewQuery;i?t.viewQuery=(n,r)=>{e(n,r),i(n,r)}:t.viewQuery=e}function pT(t,e){let i=t.contentQueries;i?t.contentQueries=(n,r,o)=>{e(n,r,o),i(n,r,o)}:t.contentQueries=e}function mT(t,e){let i=t.hostBindings;i?t.hostBindings=(n,r)=>{e(n,r),i(n,r)}:t.hostBindings=e}function Je(t){let e=t.inputConfig,i={};for(let n in e)if(e.hasOwnProperty(n)){let r=e[n];Array.isArray(r)&&r[3]&&(i[n]=r[3])}t.inputTransforms=i}var ri=class{},ko=class{};var cl=class extends ri{constructor(e,i,n,r=!0){super(),this.ngModuleType=e,this._parent=i,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new sl(this);let o=_v(e);this._bootstrapComponents=Fy(o.bootstrap),this._r3Injector=uy(e,i,[{provide:ri,useValue:this},{provide:Bi,useValue:this.componentFactoryResolver},...n],ot(e),new Set(["environment"])),r&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(i=>i()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}},ul=class extends ko{constructor(e){super(),this.moduleType=e}create(e){return new cl(this.moduleType,e,[])}};function gT(t,e,i){return new cl(t,e,i,!1)}var jd=class extends ri{constructor(e){super(),this.componentFactoryResolver=new sl(this),this.instance=null;let i=new No([...e.providers,{provide:ri,useValue:this},{provide:Bi,useValue:this.componentFactoryResolver}],e.parent||of(),e.debugName,new Set(["environment"]));this.injector=i,e.runEnvironmentInitializers&&i.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function Fl(t,e,i=null){return new jd({providers:t,parent:e,debugName:i,runEnvironmentInitializers:!0}).injector}function Ab(t){return yT(t)?Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t:!1}function vT(t,e){if(Array.isArray(t))for(let i=0;i{let e=class e{constructor(){this.impl=null}execute(){this.impl?.execute()}};e.\u0275prov=E({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})(),Ti=class Ti{constructor(){this.ngZone=g(R),this.scheduler=g(Ar),this.errorHandler=g(pt,{optional:!0}),this.sequences=new Set,this.deferredRegistrations=new Set,this.executing=!1}execute(){this.executing=!0;for(let e of Ti.PHASES)for(let i of this.sequences)if(!(i.erroredOrDestroyed||!i.hooks[e]))try{i.pipelinedValue=this.ngZone.runOutsideAngular(()=>i.hooks[e](i.pipelinedValue))}catch(n){i.erroredOrDestroyed=!0,this.errorHandler?.handleError(n)}this.executing=!1;for(let e of this.sequences)e.afterRun(),e.once&&this.sequences.delete(e);for(let e of this.deferredRegistrations)this.sequences.add(e);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear()}register(e){this.executing?this.deferredRegistrations.add(e):(this.sequences.add(e),this.scheduler.notify(6))}unregister(e){this.executing&&this.sequences.has(e)?(e.erroredOrDestroyed=!0,e.pipelinedValue=void 0,e.once=!0):(this.sequences.delete(e),this.deferredRegistrations.delete(e))}};Ti.PHASES=[Dr.EarlyRead,Dr.Write,Dr.MixedReadWrite,Dr.Read],Ti.\u0275prov=E({token:Ti,providedIn:"root",factory:()=>new Ti});var Vd=Ti,Bd=class{constructor(e,i,n,r){this.impl=e,this.hooks=i,this.once=n,this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.unregisterOnDestroy=r.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0}destroy(){this.impl.unregister(this),this.unregisterOnDestroy()}};function Lf(t,e){!e?.injector&&sf(Lf);let i=e?.injector??g(Le);return Py(i)?(pn("NgAfterRender"),kb(t,i,e,!1)):Fb}function Lr(t,e){!e?.injector&&sf(Lr);let i=e?.injector??g(Le);return Py(i)?(pn("NgAfterNextRender"),kb(t,i,e,!0)):Fb}function CT(t,e){if(t instanceof Function){let i=[void 0,void 0,void 0,void 0];return i[e]=t,i}else return[t.earlyRead,t.write,t.mixedReadWrite,t.read]}function kb(t,e,i,n){let r=e.get(Ob);r.impl??=e.get(Vd);let o=i?.phase??Dr.MixedReadWrite,s=new Bd(r.impl,CT(t,o),n,e.get(Il));return r.impl.register(s),s}var Fb={destroy(){}};function $e(t,e,i,n){let r=K(),o=kr();if(Ln(r,o,e)){let s=Fe(),a=Uo();eS(a,r,t,e,i,n)}return $e}function Pb(t,e,i,n){return Ln(t,kr(),i)?e+Lo(i)+n:kt}function Aa(t,e){return t<<17|e<<2}function Ui(t){return t>>17&32767}function IT(t){return(t&2)==2}function xT(t,e){return t&131071|e<<17}function Ud(t){return t|2}function Rr(t){return(t&131068)>>2}function Gu(t,e){return t&-131069|e<<2}function ST(t){return(t&1)===1}function $d(t){return t|1}function TT(t,e,i,n,r,o){let s=o?e.classBindings:e.styleBindings,a=Ui(s),l=Rr(s);t[n]=i;let c=!1,u;if(Array.isArray(i)){let d=i;u=d[1],(u===null||Vo(d,u)>0)&&(c=!0)}else u=i;if(r)if(l!==0){let h=Ui(t[a+1]);t[n+1]=Aa(h,a),h!==0&&(t[h+1]=Gu(t[h+1],n)),t[a+1]=xT(t[a+1],n)}else t[n+1]=Aa(a,0),a!==0&&(t[a+1]=Gu(t[a+1],n)),a=n;else t[n+1]=Aa(l,0),a===0?a=n:t[l+1]=Gu(t[l+1],n),l=n;c&&(t[n+1]=Ud(t[n+1])),Wg(t,u,n,!0),Wg(t,u,n,!1),MT(e,u,t,n,o),s=Aa(a,l),o?e.classBindings=s:e.styleBindings=s}function MT(t,e,i,n,r){let o=r?t.residualClasses:t.residualStyles;o!=null&&typeof e=="string"&&Vo(o,e)>=0&&(i[n+1]=$d(i[n+1]))}function Wg(t,e,i,n){let r=t[i+1],o=e===null,s=n?Ui(r):Rr(r),a=!1;for(;s!==0&&(a===!1||o);){let l=t[s],c=t[s+1];AT(l,e)&&(a=!0,t[s+1]=n?$d(c):Ud(c)),s=n?Ui(c):Rr(c)}a&&(t[i+1]=n?Ud(r):$d(r))}function AT(t,e){return t===null||e==null||(Array.isArray(t)?t[1]:t)===e?!0:Array.isArray(t)&&typeof e=="string"?Vo(t,e)>=0:!1}var zt={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function NT(t){return t.substring(zt.key,zt.keyEnd)}function RT(t){return OT(t),Lb(t,jb(t,0,zt.textEnd))}function Lb(t,e){let i=zt.textEnd;return i===e?-1:(e=zt.keyEnd=kT(t,zt.key=e,i),jb(t,e,i))}function OT(t){zt.key=0,zt.keyEnd=0,zt.value=0,zt.valueEnd=0,zt.textEnd=t.length}function jb(t,e,i){for(;e32;)e++;return e}function O(t,e,i){let n=K(),r=kr();if(Ln(n,r,e)){let o=Fe(),s=Uo();Nl(o,s,n,t,e,n[Te],i,!1)}return O}function Hd(t,e,i,n,r){let o=e.inputs,s=r?"class":"style";Af(t,i,o[s],s,n)}function Go(t,e,i){return Vb(t,e,i,!1),Go}function Ie(t,e){return Vb(t,e,null,!0),Ie}function jf(t){PT($T,FT,t,!0)}function FT(t,e){for(let i=RT(e);i>=0;i=Lb(e,i))tf(t,NT(e),!0)}function Vb(t,e,i,n){let r=K(),o=Fe(),s=qv(2);if(o.firstUpdatePass&&Ub(o,t,s,n),e!==kt&&Ln(r,s,e)){let a=o.data[$i()];$b(o,a,r,r[Te],t,r[s+1]=zT(e,i),n,s)}}function PT(t,e,i,n){let r=Fe(),o=qv(2);r.firstUpdatePass&&Ub(r,null,o,n);let s=K();if(i!==kt&&Ln(s,o,i)){let a=r.data[$i()];if(Hb(a,n)&&!Bb(r,o)){let l=n?a.classesWithoutHost:a.stylesWithoutHost;l!==null&&(i=Ku(l,i||"")),Hd(r,a,s,i,n)}else HT(r,a,s,s[Te],s[o+1],s[o+1]=UT(t,e,i),n,o)}}function Bb(t,e){return e>=t.expandoStartIndex}function Ub(t,e,i,n){let r=t.data;if(r[i+1]===null){let o=r[$i()],s=Bb(t,i);Hb(o,n)&&e===null&&!s&&(e=!1),e=LT(r,o,e,n),TT(r,o,e,i,s,n)}}function LT(t,e,i,n){let r=cI(t),o=n?e.residualClasses:e.residualStyles;if(r===null)(n?e.classBindings:e.styleBindings)===0&&(i=qu(null,t,e,i,n),i=Fo(i,e.attrs,n),o=null);else{let s=e.directiveStylingLast;if(s===-1||t[s]!==r)if(i=qu(r,t,e,i,n),o===null){let l=jT(t,e,n);l!==void 0&&Array.isArray(l)&&(l=qu(null,t,e,l[1],n),l=Fo(l,e.attrs,n),VT(t,e,n,l))}else o=BT(t,e,n)}return o!==void 0&&(n?e.residualClasses=o:e.residualStyles=o),i}function jT(t,e,i){let n=i?e.classBindings:e.styleBindings;if(Rr(n)!==0)return t[Ui(n)]}function VT(t,e,i,n){let r=i?e.classBindings:e.styleBindings;t[Ui(r)]=n}function BT(t,e,i){let n,r=e.directiveEnd;for(let o=1+e.directiveStylingLast;o0;){let l=t[r],c=Array.isArray(l),u=c?l[1]:l,d=u===null,h=i[r+1];h===kt&&(h=d?rt:void 0);let f=d?ju(h,n):u===n?h:void 0;if(c&&!dl(f)&&(f=ju(l,n)),dl(f)&&(a=f,s))return a;let p=t[r+1];r=s?Ui(p):Rr(p)}if(e!==null){let l=o?e.residualClasses:e.residualStyles;l!=null&&(a=ju(l,n))}return a}function dl(t){return t!==void 0}function zT(t,e){return t==null||t===""||(typeof e=="string"?t=t+e:typeof t=="object"&&(t=ot(Ot(t)))),t}function Hb(t,e){return(t.flags&(e?8:16))!==0}function et(t,e){pn("NgControlFlow");let i=K(),n=kr(),r=i[n]!==kt?i[n]:-1,o=r!==-1?qg(i,at+r):void 0,s=0;if(Ln(i,n,t)){let a=oe(null);try{if(o!==void 0&&cS(o,s),t!==-1){let l=at+t,c=qg(i,l),u=WT(i[z],l),d=rl(c,u.tView.ssrId),h=Rf(i,u,e,{dehydratedView:d});Of(c,h,s,nl(u,d))}}finally{oe(a)}}else if(o!==void 0){let a=lS(o,s);a!==void 0&&(a[Tt]=e)}}function qg(t,e){return t[e]}function WT(t,e){return lf(t,e)}function GT(t,e,i,n,r,o){let s=e.consts,a=Ga(s,r),l=Wo(e,t,2,n,a);return ib(e,i,l,Ga(s,o)),l.attrs!==null&&Nd(l,l.attrs,!1),l.mergedAttrs!==null&&Nd(l,l.mergedAttrs,!0),e.queries!==null&&e.queries.elementStart(e,l),l}function D(t,e,i,n){let r=K(),o=Fe(),s=at+t,a=r[Te],l=o.firstCreatePass?GT(s,o,r,e,i,n):o.data[s],c=qT(o,r,l,a,e,t);r[s]=c;let u=af(l);return Bo(l,!0),qy(a,c,l),!_T(l)&&pf()&&Sf(o,r,c,l),XC()===0&&ji(c,r),JC(),u&&(eb(o,r,l),Jy(o,l,r)),n!==null&&tb(r,l),D}function C(){let t=Xe();zv()?Wv():(t=t.parent,Bo(t,!1));let e=t;tI(e)&&nI(),eI();let i=Fe();return i.firstCreatePass&&(gf(i,t),Av(t)&&i.queries.elementEnd(t)),e.classesWithoutHost!=null&&gI(e)&&Hd(i,e,K(),e.classesWithoutHost,!0),e.stylesWithoutHost!=null&&vI(e)&&Hd(i,e,K(),e.stylesWithoutHost,!1),C}function L(t,e,i,n){return D(t,e,i,n),C(),L}var qT=(t,e,i,n,r,o)=>(mf(!0),Ly(n,r,fI()));function bt(){return K()}function jr(t,e,i){let n=K(),r=kr();if(Ln(n,r,e)){let o=Fe(),s=Uo();Nl(o,s,n,t,e,n[Te],i,!0)}return jr}var fl="en-US";var QT=fl;function ZT(t){typeof t=="string"&&(QT=t.toLowerCase().replace(/_/g,"-"))}var KT=(t,e,i)=>{};function re(t,e,i,n){let r=K(),o=Fe(),s=Xe();return zb(o,r,r[Te],s,t,e,n),re}function YT(t,e,i,n){let r=t.cleanup;if(r!=null)for(let o=0;ol?a[l]:null}typeof s=="string"&&(o+=2)}return null}function zb(t,e,i,n,r,o,s){let a=af(n),c=t.firstCreatePass&&cb(t),u=e[Tt],d=lb(e),h=!0;if(n.type&3||s){let v=Nt(n,e),w=s?s(v):v,S=d.length,k=s?U=>s(un(U[n.index])):n.index,Z=null;if(!s&&a&&(Z=YT(t,e,r,n.index)),Z!==null){let U=Z.__ngLastListenerFn__||Z;U.__ngNextListenerFn__=o,Z.__ngLastListenerFn__=o,h=!1}else{o=Zg(n,e,u,o),KT(v,r,o);let U=i.listen(w,r,o);d.push(o,U),c&&c.push(r,k,S,S+1)}}else o=Zg(n,e,u,o);let f=n.outputs,p;if(h&&f!==null&&(p=f[r])){let v=p.length;if(v)for(let w=0;w-1?oi(t.index,e):e;kf(s,5);let a=Qg(e,i,n,o),l=r.__ngNextListenerFn__;for(;l;)a=Qg(e,i,l,o)&&a,l=l.__ngNextListenerFn__;return a}}function se(t=1){return dI(t)}function XT(t,e){let i=null,n=_C(t);for(let r=0;r=t.data.length&&(t.data[i]=null,t.blueprint[i]=null),e[i]=n}function Vr(t){let e=rI();return Pv(e,at+t)}function A(t,e=""){let i=K(),n=Fe(),r=t+at,o=n.firstCreatePass?Wo(n,r,1,e,null):n.data[r],s=tM(n,i,o,e,t);i[r]=s,pf()&&Sf(n,i,s,o),Bo(o,!1)}var tM=(t,e,i,n,r)=>(mf(!0),gx(e[Te],n));function je(t){return ue("",t,""),je}function ue(t,e,i){let n=K(),r=Pb(n,t,e,i);return r!==kt&&rS(n,$i(),r),ue}function Ft(t,e,i){Sb(e)&&(e=e());let n=K(),r=kr();if(Ln(n,r,e)){let o=Fe(),s=Uo();Nl(o,s,n,t,e,n[Te],i,!1)}return Ft}function Qt(t,e){let i=Sb(t);return i&&t.set(e),i}function Pt(t,e){let i=K(),n=Fe(),r=Xe();return zb(n,i,i[Te],r,t,e),Pt}function nM(t,e,i){let n=Fe();if(n.firstCreatePass){let r=ni(t);zd(i,n.data,n.blueprint,r,!0),zd(e,n.data,n.blueprint,r,!1)}}function zd(t,e,i,n,r){if(t=it(t),Array.isArray(t))for(let o=0;o>20;if(Sr(t)||!t.multi){let f=new Fi(c,r,m),p=Zu(l,e,r?u:u+h,d);p===-1?(ud(Ka(a,s),o,l),Qu(o,t,e.length),e.push(l),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),i.push(f),s.push(f)):(i[p]=f,s[p]=f)}else{let f=Zu(l,e,u+h,d),p=Zu(l,e,u,u+h),v=f>=0&&i[f],w=p>=0&&i[p];if(r&&!w||!r&&!v){ud(Ka(a,s),o,l);let S=oM(r?rM:iM,i.length,r,n,c);!r&&w&&(i[p].providerFactory=S),Qu(o,t,e.length,0),e.push(l),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),i.push(S),s.push(S)}else{let S=Qb(i[r?p:f],c,!r&&n);Qu(o,t,f>-1?f:p,S)}!r&&n&&w&&i[p].componentProviders++}}}function Qu(t,e,i,n){let r=Sr(e),o=kC(e);if(r||o){let l=(o?it(e.useClass):e).prototype.ngOnDestroy;if(l){let c=t.destroyHooks||(t.destroyHooks=[]);if(!r&&e.multi){let u=c.indexOf(i);u===-1?c.push(i,[n,l]):c[u+1].push(n,l)}else c.push(i,l)}}}function Qb(t,e,i){return i&&t.componentProviders++,t.multi.push(e)-1}function Zu(t,e,i,n){for(let r=i;r{i.providersResolver=(n,r)=>nM(n,r?r(t):t,e)}}var sM=(()=>{let e=class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=Ev(!1,n.type),o=r.length>0?Fl([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()}}};e.\u0275prov=E({token:e,providedIn:"environment",factory:()=>new e(y(st))});let t=e;return t})();function _t(t){pn("NgStandalone"),t.getStandaloneInjector=e=>e.get(sM).getOrCreateStandaloneInjector(t)}function Zb(t,e,i){let n=uf()+t,r=K();return r[n]===kt?Nb(r,n,i?e.call(i):e()):bT(r,n)}function Bf(t,e,i,n){return Kb(K(),uf(),t,e,i,n)}function aM(t,e){let i=t[e];return i===kt?void 0:i}function Kb(t,e,i,n,r,o){let s=e+i;return Ln(t,s,r)?Nb(t,s+1,o?n.call(o,r):n(r)):aM(t,s+1)}function qo(t,e){let i=Fe(),n,r=t+at;i.firstCreatePass?(n=lM(e,i.pipeRegistry),i.data[r]=n,n.onDestroy&&(i.destroyHooks??=[]).push(r,n.onDestroy)):n=i.data[r];let o=n.factory||(n.factory=Ai(n.type,!0)),s,a=ft(m);try{let l=Za(!1),c=o();return Za(l),eM(i,K(),r,c),c}finally{ft(a)}}function lM(t,e){if(e)for(let i=e.length-1;i>=0;i--){let n=e[i];if(t===n.name)return n}}function Qo(t,e,i){let n=t+at,r=K(),o=Pv(r,n);return cM(r,n)?Kb(r,uf(),e,o.transform,i,o):o.transform(i)}function cM(t,e){return t[z].data[e].pure}function Yb(t,e){return Ol(t,e)}var Na=null;function uM(t){Na!==null&&(t.defaultEncapsulation!==Na.defaultEncapsulation||t.preserveWhitespaces!==Na.preserveWhitespaces)||(Na=t)}var Pl=(()=>{let e=class e{log(n){console.log(n)}warn(n){console.warn(n)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();var Uf=new x(""),Zo=new x(""),Ll=(()=>{let e=class e{constructor(n,r,o){this._ngZone=n,this.registry=r,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,$f||(dM(o),o.addToWindow(r)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{R.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb()}});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>r.updateCb&&r.updateCb(n)?(clearTimeout(r.timeoutId),!1):!0)}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,o){let s=-1;r&&r>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==s),n()},r)),this._callbacks.push({doneCb:n,timeoutId:s,updateCb:o})}whenStable(n,r,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,r,o),this._runCallbacksIfReady()}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,r,o){return[]}};e.\u0275fac=function(r){return new(r||e)(y(R),y(jl),y(Zo))},e.\u0275prov=E({token:e,factory:e.\u0275fac});let t=e;return t})(),jl=(()=>{let e=class e{constructor(){this._applications=new Map}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return $f?.findTestabilityInTree(this,n,r)??null}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();function dM(t){$f=t}var $f;function zi(t){return!!t&&typeof t.then=="function"}function Xb(t){return!!t&&typeof t.subscribe=="function"}var Vl=new x(""),Jb=(()=>{let e=class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=g(Vl,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let s=o();if(zi(s))n.push(s);else if(Xb(s)){let a=new Promise((l,c)=>{s.subscribe({complete:l,error:c})});n.push(a)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),n.length===0&&r(),this.initialized=!0}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Bl=new x("");function fM(){Om(()=>{throw new _(600,!1)})}function hM(t){return t.isBoundToModule}var pM=10;function mM(t,e,i){try{let n=i();return zi(n)?n.catch(r=>{throw e.runOutsideAngular(()=>t.handleError(r)),r}):n}catch(n){throw e.runOutsideAngular(()=>t.handleError(n)),n}}function e_(t,e){return Array.isArray(e)?e.reduce(e_,t):b(b({},t),e)}var jn=(()=>{let e=class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=g(LI),this.afterRenderManager=g(Ob),this.zonelessEnabled=g(vb),this.dirtyFlags=0,this.deferredDirtyFlags=0,this.externalTestViews=new Set,this.beforeRender=new V,this.afterTick=new V,this.componentTypes=[],this.components=[],this.isStable=g(hn).hasPendingTasks.pipe(N(n=>!n)),this._injector=g(st)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}get injector(){return this._injector}bootstrap(n,r){let o=n instanceof ol;if(!this._injector.get(Jb).done){let f=!o&&bv(n),p=!1;throw new _(405,p)}let a;o?a=n:a=this._injector.get(Bi).resolveComponentFactory(n),this.componentTypes.push(a.componentType);let l=hM(a)?void 0:this._injector.get(ri),c=r||a.selector,u=a.create(Le.NULL,[],c,l),d=u.location.nativeElement,h=u.injector.get(Uf,null);return h?.registerApplication(d),u.onDestroy(()=>{this.detachView(u.hostView),ja(this.components,u),h?.unregisterApplication(d)}),this._loadComponent(u),u}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){if(this._runningTick)throw new _(101,!1);let n=oe(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,oe(n),this.afterTick.next()}}synchronize(){let n=null;this._injector.destroyed||(n=this._injector.get(ii,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let r=0;for(;this.dirtyFlags!==0&&r++Dl(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;ja(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let r=this._injector.get(Bl,[]);[...this._bootstrapListeners,...r].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._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>ja(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new _(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function ja(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}function gM(t,e,i,n){if(!i&&!Dl(t))return;hb(t,e,i&&!n?0:1)}var Gd=class{constructor(e,i){this.ngModuleFactory=e,this.componentFactories=i}},Ul=(()=>{let e=class e{compileModuleSync(n){return new ul(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let r=this.compileModuleSync(n),o=_v(n),s=Fy(o.declarations).reduce((a,l)=>{let c=ti(l);return c&&a.push(new Nr(c)),a},[]);return new Gd(r,s)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),vM=new x("");function yM(t,e,i){let n=new ul(i);return Promise.resolve(n)}function Kg(t){for(let e=t.length-1;e>=0;e--)if(t[e]!==void 0)return t[e]}var bM=(()=>{let e=class e{constructor(){this.zone=g(R),this.changeDetectionScheduler=g(Ar),this.applicationRef=g(jn)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function _M({ngZoneFactory:t,ignoreChangesOutsideZone:e,scheduleInRootZone:i}){return t??=()=>new R(ie(b({},t_()),{scheduleInRootZone:i})),[{provide:R,useFactory:t},{provide:xr,multi:!0,useFactory:()=>{let n=g(bM,{optional:!0});return()=>n.initialize()}},{provide:xr,multi:!0,useFactory:()=>{let n=g(wM);return()=>{n.initialize()}}},e===!0?{provide:yb,useValue:!0}:[],{provide:bb,useValue:i??dy}]}function t_(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var wM=(()=>{let e=class e{constructor(){this.subscription=new de,this.initialized=!1,this.zone=g(R),this.pendingTasks=g(hn)}initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{R.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{R.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var DM=(()=>{let e=class e{constructor(){this.appRef=g(jn),this.taskService=g(hn),this.ngZone=g(R),this.zonelessEnabled=g(vb),this.disableScheduling=g(yb,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new de,this.angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Xa):null,this.scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(g(bb,{optional:!0})??!1),this.cancelScheduledCallback=null,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,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 Ja||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;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 7:{this.appRef.deferredDirtyFlags|=8;break}case 9:case 8:case 6:case 10:default:this.appRef.dirtyFlags|=8}if(!this.shouldScheduleTick())return;let r=this.useMicrotaskScheduler?Sg:fy;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>r(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>r(()=>this.tick()))}shouldScheduleTick(){return!(this.disableScheduling||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Xa+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)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,Sg(()=>{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)}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function EM(){return typeof $localize<"u"&&$localize.locale||fl}var $l=new x("",{providedIn:"root",factory:()=>g($l,X.Optional|X.SkipSelf)||EM()});var Hf=new x("");function Ra(t){return!!t.platformInjector}function CM(t){let e=Ra(t)?t.r3Injector:t.moduleRef.injector,i=e.get(R);return i.run(()=>{Ra(t)?t.r3Injector.resolveInjectorInitializers():t.moduleRef.resolveInjectorInitializers();let n=e.get(pt,null),r;if(i.runOutsideAngular(()=>{r=i.onError.subscribe({next:o=>{n.handleError(o)}})}),Ra(t)){let o=()=>e.destroy(),s=t.platformInjector.get(Hf);s.add(o),e.onDestroy(()=>{r.unsubscribe(),s.delete(o)})}else t.moduleRef.onDestroy(()=>{ja(t.allPlatformModules,t.moduleRef),r.unsubscribe()});return mM(n,i,()=>{let o=e.get(Jb);return o.runInitializers(),o.donePromise.then(()=>{let s=e.get($l,fl);if(ZT(s||fl),Ra(t)){let a=e.get(jn);return t.rootComponent!==void 0&&a.bootstrap(t.rootComponent),a}else return IM(t.moduleRef,t.allPlatformModules),t.moduleRef})})})}function IM(t,e){let i=t.injector.get(jn);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(n=>i.bootstrap(n));else if(t.instance.ngDoBootstrap)t.instance.ngDoBootstrap(i);else throw new _(-403,!1);e.push(t)}var n_=(()=>{let e=class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){let o=r?.scheduleInRootZone,s=()=>PI(r?.ngZone,ie(b({},t_({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing})),{scheduleInRootZone:o})),a=r?.ignoreChangesOutsideZone,l=[_M({ngZoneFactory:s,ignoreChangesOutsideZone:a}),{provide:Ar,useExisting:DM}],c=gT(n.moduleType,this.injector,l);return CM({moduleRef:c,allPlatformModules:this._modules})}bootstrapModule(n,r=[]){let o=e_({},r);return yM(this.injector,o,n).then(s=>this.bootstrapModuleFactory(s,o))}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new _(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());let n=this._injector.get(Hf,null);n&&(n.forEach(r=>r()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}};e.\u0275fac=function(r){return new(r||e)(y(Le))},e.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})(),To=null,i_=new x("");function xM(t){if(To&&!To.get(i_,!1))throw new _(400,!1);fM(),To=t;let e=t.get(n_);return MM(t),e}function zf(t,e,i=[]){let n=`Platform: ${e}`,r=new x(n);return(o=[])=>{let s=r_();if(!s||s.injector.get(i_,!1)){let a=[...i,...o,{provide:r,useValue:!0}];t?t(a):xM(SM(a,n))}return TM(r)}}function SM(t=[],e){return Le.create({name:e,providers:[{provide:bl,useValue:"platform"},{provide:Hf,useValue:new Set([()=>To=null])},...t]})}function TM(t){let e=r_();if(!e)throw new _(401,!1);return e}function r_(){return To?.get(n_)??null}function MM(t){t.get(_f,null)?.forEach(i=>i())}var tt=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=AM;let t=e;return t})();function AM(t){return NM(Xe(),K(),(t&16)===16)}function NM(t,e,i){if(wl(t)&&!i){let n=oi(t.index,e);return new Vi(n,n)}else if(t.type&175){let n=e[Mt];return new Vi(n,e)}return null}var qd=class{constructor(){}supports(e){return Ab(e)}create(e){return new Qd(e)}},RM=(t,e)=>e,Qd=class{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||RM}forEachItem(e){let i;for(i=this._itHead;i!==null;i=i._next)e(i)}forEachOperation(e){let i=this._itHead,n=this._removalsHead,r=0,o=null;for(;i||n;){let s=!n||i&&i.currentIndex{s=this._trackByFn(r,a),i===null||!Object.is(i.trackById,s)?(i=this._mismatch(i,a,s,r),n=!0):(n&&(i=this._verifyReinsertion(i,a,s,r)),Object.is(i.item,a)||this._addIdentityChange(i,a)),i=i._next,r++}),this.length=r;return this._truncate(i),this.collection=e,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;e!==null;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;e!==null;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,i,n,r){let o;return e===null?o=this._itTail:(o=e._prev,this._remove(e)),e=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null),e!==null?(Object.is(e.item,i)||this._addIdentityChange(e,i),this._reinsertAfter(e,o,r)):(e=this._linkedRecords===null?null:this._linkedRecords.get(n,r),e!==null?(Object.is(e.item,i)||this._addIdentityChange(e,i),this._moveAfter(e,o,r)):e=this._addAfter(new Zd(i,n),o,r)),e}_verifyReinsertion(e,i,n,r){let o=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null);return o!==null?e=this._reinsertAfter(o,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e}_truncate(e){for(;e!==null;){let i=e._next;this._addToRemovals(this._unlink(e)),e=i}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,i,n){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(e);let r=e._prevRemoved,o=e._nextRemoved;return r===null?this._removalsHead=o:r._nextRemoved=o,o===null?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(e,i,n),this._addToMoves(e,n),e}_moveAfter(e,i,n){return this._unlink(e),this._insertAfter(e,i,n),this._addToMoves(e,n),e}_addAfter(e,i,n){return this._insertAfter(e,i,n),this._additionsTail===null?this._additionsTail=this._additionsHead=e:this._additionsTail=this._additionsTail._nextAdded=e,e}_insertAfter(e,i,n){let r=i===null?this._itHead:i._next;return e._next=r,e._prev=i,r===null?this._itTail=e:r._prev=e,i===null?this._itHead=e:i._next=e,this._linkedRecords===null&&(this._linkedRecords=new hl),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){this._linkedRecords!==null&&this._linkedRecords.remove(e);let i=e._prev,n=e._next;return i===null?this._itHead=n:i._next=n,n===null?this._itTail=i:n._prev=i,e}_addToMoves(e,i){return e.previousIndex===i||(this._movesTail===null?this._movesTail=this._movesHead=e:this._movesTail=this._movesTail._nextMoved=e),e}_addToRemovals(e){return this._unlinkedRecords===null&&(this._unlinkedRecords=new hl),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,i){return e.item=i,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=e:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=e,e}},Zd=class{constructor(e,i){this.item=e,this.trackById=i,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}},Kd=class{constructor(){this._head=null,this._tail=null}add(e){this._head===null?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,i){let n;for(n=this._head;n!==null;n=n._nextDup)if((i===null||i<=n.currentIndex)&&Object.is(n.trackById,e))return n;return null}remove(e){let i=e._prevDup,n=e._nextDup;return i===null?this._head=n:i._nextDup=n,n===null?this._tail=i:n._prevDup=i,this._head===null}},hl=class{constructor(){this.map=new Map}put(e){let i=e.trackById,n=this.map.get(i);n||(n=new Kd,this.map.set(i,n)),n.add(e)}get(e,i){let n=e,r=this.map.get(n);return r?r.get(e,i):null}remove(e){let i=e.trackById;return this.map.get(i).remove(e)&&this.map.delete(i),e}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function Yg(t,e,i){let n=t.previousIndex;if(n===null)return n;let r=0;return i&&n{let e=class e{constructor(n){this.factories=n}static create(n,r){if(r!=null){let o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||Xg()),deps:[[e,new vl,new jo]]}}find(n){let r=this.factories.find(o=>o.supports(n));if(r!=null)return r;throw new _(901,!1)}};e.\u0275prov=E({token:e,providedIn:"root",factory:Xg});let t=e;return t})();var o_=zf(null,"core",[]),s_=(()=>{let e=class e{constructor(n){}};e.\u0275fac=function(r){return new(r||e)(y(jn))},e.\u0275mod=ne({type:e}),e.\u0275inj=te({});let t=e;return t})();var a_=new x("");function Ae(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function zl(t,e=NaN){return!isNaN(parseFloat(t))&&!isNaN(Number(t))?Number(t):e}function Vn(t,e){pn("NgSignals");let i=wu(t);return e?.equal&&(i[xt].equal=e.equal),i}function gn(t){let e=oe(null);try{return t()}finally{oe(e)}}var OM=new x("",{providedIn:"root",factory:()=>g(kM)}),kM=(()=>{let e=class e{};e.\u0275prov=E({token:e,providedIn:"root",factory:()=>new Yd});let t=e;return t})(),Yd=class{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=g(hn),this.taskId=null}scheduleEffect(e){if(this.enqueue(e),this.taskId===null){let i=this.taskId=this.pendingTasks.add();queueMicrotask(()=>{this.flush(),this.pendingTasks.remove(i),this.taskId=null})}}enqueue(e){let i=e.creationZone;this.queues.has(i)||this.queues.set(i,new Set);let n=this.queues.get(i);n.has(e)||(this.queuedEffectCount++,n.add(e))}flush(){for(;this.queuedEffectCount>0;)for(let[e,i]of this.queues)e===null?this.flushQueue(i):e.run(()=>this.flushQueue(i))}flushQueue(e){for(let i of e)e.delete(i),this.queuedEffectCount--,i.run()}},Xd=class{constructor(e,i,n,r,o,s){this.scheduler=e,this.effectFn=i,this.creationZone=n,this.injector=o,this.watcher=Lm(a=>this.runEffect(a),()=>this.schedule(),s),this.unregisterOnDestroy=r?.onDestroy(()=>this.destroy())}runEffect(e){try{this.effectFn(e)}catch(i){this.injector.get(pt,null,{optional:!0})?.handleError(i)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}};function Wf(t,e){pn("NgSignals"),!e?.injector&&sf(Wf);let i=e?.injector??g(Le),n=e?.manualCleanup!==!0?i.get(Il):null,r=new Xd(i.get(OM),t,typeof Zone>"u"?null:Zone.current,n,i,e?.allowSignalWrites??!1),o=i.get(tt,null,{optional:!0});return!o||!(o._lView[B]&8)?r.watcher.notify():(o._lView[ka]??=[]).push(r.watcher.notify),r}function l_(t){let e=ti(t);if(!e)return null;let i=new Nr(e);return{get selector(){return i.selector},get type(){return i.componentType},get inputs(){return i.inputs},get outputs(){return i.outputs},get ngContentSelectors(){return i.ngContentSelectors},get isStandalone(){return e.standalone},get isSignal(){return e.signals}}}var p_=null;function vn(){return p_}function m_(t){p_??=t}var Wl=class{};var ae=new x(""),Xf=(()=>{let e=class e{historyGo(n){throw new Error("")}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=E({token:e,factory:()=>g(PM),providedIn:"platform"});let t=e;return t})(),g_=new x(""),PM=(()=>{let e=class e extends Xf{constructor(){super(),this._doc=g(ae),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return vn().getBaseHref(this._doc)}onPopState(n){let r=vn().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=vn().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n}pushState(n,r,o){this._history.pushState(n,r,o)}replaceState(n,r,o){this._history.replaceState(n,r,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=E({token:e,factory:()=>new e,providedIn:"platform"});let t=e;return t})();function Jf(t,e){if(t.length==0)return e;if(e.length==0)return t;let i=0;return t.endsWith("/")&&i++,e.startsWith("/")&&i++,i==2?t+e.substring(1):i==1?t+e:t+"/"+e}function c_(t){let e=t.match(/#|\?|$/),i=e&&e.index||t.length,n=i-(t[i-1]==="/"?1:0);return t.slice(0,n)+t.slice(i)}function Bn(t){return t&&t[0]!=="?"?"?"+t:t}var Un=(()=>{let e=class e{historyGo(n){throw new Error("")}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=E({token:e,factory:()=>g(eh),providedIn:"root"});let t=e;return t})(),v_=new x(""),eh=(()=>{let e=class e extends Un{constructor(n,r){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??g(ae).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return Jf(this._baseHref,n)}path(n=!1){let r=this._platformLocation.pathname+Bn(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,s){let a=this.prepareExternalUrl(o+Bn(s));this._platformLocation.pushState(n,r,a)}replaceState(n,r,o,s){let a=this.prepareExternalUrl(o+Bn(s));this._platformLocation.replaceState(n,r,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};e.\u0275fac=function(r){return new(r||e)(y(Xf),y(v_,8))},e.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),y_=(()=>{let e=class e extends Un{constructor(n,r){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],r!=null&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}path(n=!1){let r=this._platformLocation.hash??"#";return r.length>0?r.substring(1):r}prepareExternalUrl(n){let r=Jf(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,o,s){let a=this.prepareExternalUrl(o+Bn(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.pushState(n,r,a)}replaceState(n,r,o,s){let a=this.prepareExternalUrl(o+Bn(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(n,r,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};e.\u0275fac=function(r){return new(r||e)(y(Xf),y(v_,8))},e.\u0275prov=E({token:e,factory:e.\u0275fac});let t=e;return t})(),Ur=(()=>{let e=class e{constructor(n){this._subject=new J,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=VM(c_(u_(r))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+Bn(r))}normalize(n){return e.stripTrailingSlash(jM(this._basePath,u_(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",o=null){this._locationStrategy.pushState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Bn(r)),o)}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Bn(r)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(o=>o(n,r))}subscribe(n,r,o){return this._subject.subscribe({next:n,error:r,complete:o})}};e.normalizeQueryParams=Bn,e.joinWithSlash=Jf,e.stripTrailingSlash=c_,e.\u0275fac=function(r){return new(r||e)(y(Un))},e.\u0275prov=E({token:e,factory:()=>LM(),providedIn:"root"});let t=e;return t})();function LM(){return new Ur(y(Un))}function jM(t,e){if(!t||!e.startsWith(t))return e;let i=e.substring(t.length);return i===""||["/",";","?","#"].includes(i[0])?i:e}function u_(t){return t.replace(/\/index.html$/,"")}function VM(t){if(new RegExp("^(https?:)?//").test(t)){let[,i]=t.split(/\/\/[^\/]+/);return i}return t}function ql(t,e){e=encodeURIComponent(e);for(let i of t.split(";")){let n=i.indexOf("="),[r,o]=n==-1?[i,""]:[i.slice(0,n),i.slice(n+1)];if(r.trim()===e)return decodeURIComponent(o)}return null}var qf=/\s+/,d_=[],b_=(()=>{let e=class e{constructor(n,r){this._ngEl=n,this._renderer=r,this.initialClasses=d_,this.stateMap=new Map}set klass(n){this.initialClasses=n!=null?n.trim().split(qf):d_}set ngClass(n){this.rawClass=typeof n=="string"?n.trim().split(qf):n}ngDoCheck(){for(let r of this.initialClasses)this._updateState(r,!0);let n=this.rawClass;if(Array.isArray(n)||n instanceof Set)for(let r of n)this._updateState(r,!0);else if(n!=null)for(let r of Object.keys(n))this._updateState(r,!!n[r]);this._applyStateDiff()}_updateState(n,r){let o=this.stateMap.get(n);o!==void 0?(o.enabled!==r&&(o.changed=!0,o.enabled=r),o.touched=!0):this.stateMap.set(n,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(let n of this.stateMap){let r=n[0],o=n[1];o.changed?(this._toggleClass(r,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),o.touched=!1}}_toggleClass(n,r){n=n.trim(),n.length>0&&n.split(qf).forEach(o=>{r?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}};e.\u0275fac=function(r){return new(r||e)(m(Y),m(Pn))},e.\u0275dir=W({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"},standalone:!0});let t=e;return t})();var Qf=class{constructor(e,i,n,r){this.$implicit=e,this.ngForOf=i,this.index=n,this.count=r}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},$r=(()=>{let e=class e{set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}constructor(n,r,o){this._viewContainer=n,this._template=r,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let n=this._ngForOf;if(!this._differ&&n)if(0)try{}catch{}else this._differ=this._differs.find(n).create(this.ngForTrackBy)}if(this._differ){let n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){let r=this._viewContainer;n.forEachOperation((o,s,a)=>{if(o.previousIndex==null)r.createEmbeddedView(this._template,new Qf(o.item,this._ngForOf,-1,-1),a===null?void 0:a);else if(a==null)r.remove(s===null?void 0:s);else if(s!==null){let l=r.get(s);r.move(l,a),f_(l,o)}});for(let o=0,s=r.length;o{let s=r.get(o.currentIndex);f_(s,o)})}static ngTemplateContextGuard(n,r){return!0}};e.\u0275fac=function(r){return new(r||e)(m(yt),m(dn),m(Hl))},e.\u0275dir=W({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});let t=e;return t})();function f_(t,e){t.context.$implicit=e.item}var Ql=(()=>{let e=class e{constructor(n,r){this._viewContainer=n,this._context=new Zf,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){h_("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){h_("ngIfElse",n),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(n,r){return!0}};e.\u0275fac=function(r){return new(r||e)(m(yt),m(dn))},e.\u0275dir=W({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let t=e;return t})(),Zf=class{constructor(){this.$implicit=null,this.ngIf=null}};function h_(t,e){if(!!!(!e||e.createEmbeddedView))throw new Error(`${t} must be a TemplateRef, but received '${ot(e)}'.`)}var __=(()=>{let e=class e{constructor(n){this._viewContainerRef=n,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(n){if(this._shouldRecreateView(n)){let r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let o=this._createContextForwardProxy();this._viewRef=r.createEmbeddedView(this.ngTemplateOutlet,o,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(n){return!!n.ngTemplateOutlet||!!n.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(n,r,o)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,r,o):!1,get:(n,r,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,r,o)}})}};e.\u0275fac=function(r){return new(r||e)(m(yt))},e.\u0275dir=W({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[qe]});let t=e;return t})();var w_=(()=>{let e=class e{transform(n){return JSON.stringify(n,null,2)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275pipe=gv({name:"json",type:e,pure:!1,standalone:!0});let t=e;return t})();var Hr=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=ne({type:e}),e.\u0275inj=te({});let t=e;return t})(),th="browser",BM="server";function nh(t){return t===th}function Zl(t){return t===BM}var D_=(()=>{let e=class e{};e.\u0275prov=E({token:e,providedIn:"root",factory:()=>nh(g(Rt))?new Kf(g(ae),window):new Yf});let t=e;return t})(),Kf=class{constructor(e,i){this.document=e,this.window=i,this.offset=()=>[0,0]}setOffset(e){Array.isArray(e)?this.offset=()=>e:this.offset=e}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(e){this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){let i=UM(this.document,e);i&&(this.scrollToElement(i),i.focus())}setHistoryScrollRestoration(e){this.window.history.scrollRestoration=e}scrollToElement(e){let i=e.getBoundingClientRect(),n=i.left+this.window.pageXOffset,r=i.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(n-o[0],r-o[1])}};function UM(t,e){let i=t.getElementById(e)||t.getElementsByName(e)[0];if(i)return i;if(typeof t.createTreeWalker=="function"&&t.body&&typeof t.body.attachShadow=="function"){let n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),r=n.currentNode;for(;r;){let o=r.shadowRoot;if(o){let s=o.getElementById(e)||o.querySelector(`[name="${e}"]`);if(s)return s}r=n.nextNode()}}return null}var Yf=class{setOffset(e){}getScrollPosition(){return[0,0]}scrollToPosition(e){}scrollToAnchor(e){}setHistoryScrollRestoration(e){}},Br=class{};var Yo=class{},Yl=class{},$n=class t{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(` -`).forEach(i=>{let n=i.indexOf(":");if(n>0){let r=i.slice(0,n),o=r.toLowerCase(),s=i.slice(n+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((i,n)=>{this.setHeaderEntries(n,i)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([i,n])=>{this.setHeaderEntries(i,n)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let i=this.headers.get(e.toLowerCase());return i&&i.length>0?i[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,i){return this.clone({name:e,value:i,op:"a"})}set(e,i){return this.clone({name:e,value:i,op:"s"})}delete(e,i){return this.clone({name:e,value:i,op:"d"})}maybeSetNormalizedName(e,i){this.normalizedNames.has(i)||this.normalizedNames.set(i,e)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(i=>{this.headers.set(i,e.headers.get(i)),this.normalizedNames.set(i,e.normalizedNames.get(i))})}clone(e){let i=new t;return i.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,i.lazyUpdate=(this.lazyUpdate||[]).concat([e]),i}applyUpdate(e){let i=e.name.toLowerCase();switch(e.op){case"a":case"s":let n=e.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(e.name,i);let r=(e.op==="a"?this.headers.get(i):void 0)||[];r.push(...n),this.headers.set(i,r);break;case"d":let o=e.value;if(!o)this.headers.delete(i),this.normalizedNames.delete(i);else{let s=this.headers.get(i);if(!s)return;s=s.filter(a=>o.indexOf(a)===-1),s.length===0?(this.headers.delete(i),this.normalizedNames.delete(i)):this.headers.set(i,s)}break}}setHeaderEntries(e,i){let n=(Array.isArray(i)?i:[i]).map(o=>o.toString()),r=e.toLowerCase();this.headers.set(r,n),this.maybeSetNormalizedName(e,r)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(i=>e(this.normalizedNames.get(i),this.headers.get(i)))}};var rh=class{encodeKey(e){return E_(e)}encodeValue(e){return E_(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function $M(t,e){let i=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(r=>{let o=r.indexOf("="),[s,a]=o==-1?[e.decodeKey(r),""]:[e.decodeKey(r.slice(0,o)),e.decodeValue(r.slice(o+1))],l=i.get(s)||[];l.push(a),i.set(s,l)}),i}var HM=/%(\d[a-f0-9])/gi,zM={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function E_(t){return encodeURIComponent(t).replace(HM,(e,i)=>zM[i]??e)}function Kl(t){return`${t}`}var li=class t{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new rh,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=$M(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(i=>{let n=e.fromObject[i],r=Array.isArray(n)?n.map(Kl):[Kl(n)];this.map.set(i,r)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let i=this.map.get(e);return i?i[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,i){return this.clone({param:e,value:i,op:"a"})}appendAll(e){let i=[];return Object.keys(e).forEach(n=>{let r=e[n];Array.isArray(r)?r.forEach(o=>{i.push({param:n,value:o,op:"a"})}):i.push({param:n,value:r,op:"a"})}),this.clone(i)}set(e,i){return this.clone({param:e,value:i,op:"s"})}delete(e,i){return this.clone({param:e,value:i,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let i=this.encoder.encodeKey(e);return this.map.get(e).map(n=>i+"="+this.encoder.encodeValue(n)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let i=new t({encoder:this.encoder});return i.cloneFrom=this.cloneFrom||this,i.updates=(this.updates||[]).concat(e),i}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":let i=(e.op==="a"?this.map.get(e.param):void 0)||[];i.push(Kl(e.value)),this.map.set(e.param,i);break;case"d":if(e.value!==void 0){let n=this.map.get(e.param)||[],r=n.indexOf(Kl(e.value));r!==-1&&n.splice(r,1),n.length>0?this.map.set(e.param,n):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}};var oh=class{constructor(){this.map=new Map}set(e,i){return this.map.set(e,i),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}};function WM(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function C_(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function I_(t){return typeof Blob<"u"&&t instanceof Blob}function x_(t){return typeof FormData<"u"&&t instanceof FormData}function GM(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var Ko=class t{constructor(e,i,n,r){this.url=i,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase();let o;if(WM(this.method)||r?(this.body=n!==void 0?n:null,o=r):o=n,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers??=new $n,this.context??=new oh,!this.params)this.params=new li,this.urlWithParams=i;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=i;else{let a=i.indexOf("?"),l=a===-1?"?":ah.set(f,e.setHeaders[f]),c)),e.setParams&&(u=Object.keys(e.setParams).reduce((h,f)=>h.set(f,e.setParams[f]),u)),new t(i,n,s,{params:u,headers:c,context:d,reportProgress:l,responseType:r,withCredentials:a,transferCache:o})}},ci=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(ci||{}),Xo=class{constructor(e,i=200,n="OK"){this.headers=e.headers||new $n,this.status=e.status!==void 0?e.status:i,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},Xl=class t extends Xo{constructor(e={}){super(e),this.type=ci.ResponseHeader}clone(e={}){return new t({headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},Jo=class t extends Xo{constructor(e={}){super(e),this.type=ci.Response,this.body=e.body!==void 0?e.body:null}clone(e={}){return new t({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},ai=class extends Xo{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}},N_=200,qM=204;function ih(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}var Wi=(()=>{let e=class e{constructor(n){this.handler=n}request(n,r,o={}){let s;if(n instanceof Ko)s=n;else{let c;o.headers instanceof $n?c=o.headers:c=new $n(o.headers);let u;o.params&&(o.params instanceof li?u=o.params:u=new li({fromObject:o.params})),s=new Ko(n,r,o.body!==void 0?o.body:null,{headers:c,context:o.context,params:u,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let a=M(s).pipe(xn(c=>this.handler.handle(c)));if(n instanceof Ko||o.observe==="events")return a;let l=a.pipe(_e(c=>c instanceof Jo));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return l.pipe(N(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return l.pipe(N(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return l.pipe(N(c=>{if(c.body!==null&&typeof c.body!="string")throw new Error("Response is not a string.");return c.body}));case"json":default:return l.pipe(N(c=>c.body))}case"response":return l;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:new li().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,o={}){return this.request("PATCH",n,ih(o,r))}post(n,r,o={}){return this.request("POST",n,ih(o,r))}put(n,r,o={}){return this.request("PUT",n,ih(o,r))}};e.\u0275fac=function(r){return new(r||e)(y(Yo))},e.\u0275prov=E({token:e,factory:e.\u0275fac});let t=e;return t})(),QM=/^\)\]\}',?\n/,ZM="X-Request-URL";function S_(t){if(t.url)return t.url;let e=ZM.toLocaleLowerCase();return t.headers.get(e)}var KM=(()=>{let e=class e{constructor(){this.fetchImpl=g(sh,{optional:!0})?.fetch??((...n)=>globalThis.fetch(...n)),this.ngZone=g(R)}handle(n){return new $(r=>{let o=new AbortController;return this.doRequest(n,o.signal,r).then(ah,s=>r.error(new ai({error:s}))),()=>o.abort()})}doRequest(n,r,o){return zs(this,null,function*(){let s=this.createRequestInit(n),a;try{let p=this.ngZone.runOutsideAngular(()=>this.fetchImpl(n.urlWithParams,b({signal:r},s)));YM(p),o.next({type:ci.Sent}),a=yield p}catch(p){o.error(new ai({error:p,status:p.status??0,statusText:p.statusText,url:n.urlWithParams,headers:p.headers}));return}let l=new $n(a.headers),c=a.statusText,u=S_(a)??n.urlWithParams,d=a.status,h=null;if(n.reportProgress&&o.next(new Xl({headers:l,status:d,statusText:c,url:u})),a.body){let p=a.headers.get("content-length"),v=[],w=a.body.getReader(),S=0,k,Z,U=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>zs(this,null,function*(){for(;;){let{done:ce,value:ge}=yield w.read();if(ce)break;if(v.push(ge),S+=ge.length,n.reportProgress){Z=n.responseType==="text"?(Z??"")+(k??=new TextDecoder).decode(ge,{stream:!0}):void 0;let Re=()=>o.next({type:ci.DownloadProgress,total:p?+p:void 0,loaded:S,partialText:Z});U?U.run(Re):Re()}}}));let Ve=this.concatChunks(v,S);try{let ce=a.headers.get("Content-Type")??"";h=this.parseBody(n,Ve,ce)}catch(ce){o.error(new ai({error:ce,headers:new $n(a.headers),status:a.status,statusText:a.statusText,url:S_(a)??n.urlWithParams}));return}}d===0&&(d=h?N_:0),d>=200&&d<300?(o.next(new Jo({body:h,headers:l,status:d,statusText:c,url:u})),o.complete()):o.error(new ai({error:h,headers:l,status:d,statusText:c,url:u}))})}parseBody(n,r,o){switch(n.responseType){case"json":let s=new TextDecoder().decode(r).replace(QM,"");return s===""?null:JSON.parse(s);case"text":return new TextDecoder().decode(r);case"blob":return new Blob([r],{type:o});case"arraybuffer":return r.buffer}}createRequestInit(n){let r={},o=n.withCredentials?"include":void 0;if(n.headers.forEach((s,a)=>r[s]=a.join(",")),n.headers.has("Accept")||(r.Accept="application/json, text/plain, */*"),!n.headers.has("Content-Type")){let s=n.detectContentTypeHeader();s!==null&&(r["Content-Type"]=s)}return{body:n.serializeBody(),method:n.method,headers:r,credentials:o}}concatChunks(n,r){let o=new Uint8Array(r),s=0;for(let a of n)o.set(a,s),s+=a.length;return o}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=E({token:e,factory:e.\u0275fac});let t=e;return t})(),sh=class{};function ah(){}function YM(t){t.then(ah,ah)}function R_(t,e){return e(t)}function XM(t,e){return(i,n)=>e.intercept(i,{handle:r=>t(r,n)})}function JM(t,e,i){return(n,r)=>At(i,()=>e(n,o=>t(o,r)))}var eA=new x(""),lh=new x(""),tA=new x(""),O_=new x("",{providedIn:"root",factory:()=>!0});function nA(){let t=null;return(e,i)=>{t===null&&(t=(g(eA,{optional:!0})??[]).reduceRight(XM,R_));let n=g(hn);if(g(O_)){let o=n.add();return t(e,i).pipe(rn(()=>n.remove(o)))}else return t(e,i)}}var T_=(()=>{let e=class e extends Yo{constructor(n,r){super(),this.backend=n,this.injector=r,this.chain=null,this.pendingTasks=g(hn),this.contributeToStability=g(O_)}handle(n){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(lh),...this.injector.get(tA,[])]));this.chain=r.reduceRight((o,s)=>JM(o,s,this.injector),R_)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(rn(()=>this.pendingTasks.remove(r)))}else return this.chain(n,r=>this.backend.handle(r))}};e.\u0275fac=function(r){return new(r||e)(y(Yl),y(st))},e.\u0275prov=E({token:e,factory:e.\u0275fac});let t=e;return t})();var iA=/^\)\]\}',?\n/;function rA(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}var M_=(()=>{let e=class e{constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new _(-2800,!1);let r=this.xhrFactory;return(r.\u0275loadImpl?ve(r.\u0275loadImpl()):M(null)).pipe(Ge(()=>new $(s=>{let a=r.build();if(a.open(n.method,n.urlWithParams),n.withCredentials&&(a.withCredentials=!0),n.headers.forEach((w,S)=>a.setRequestHeader(w,S.join(","))),n.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let w=n.detectContentTypeHeader();w!==null&&a.setRequestHeader("Content-Type",w)}if(n.responseType){let w=n.responseType.toLowerCase();a.responseType=w!=="json"?w:"text"}let l=n.serializeBody(),c=null,u=()=>{if(c!==null)return c;let w=a.statusText||"OK",S=new $n(a.getAllResponseHeaders()),k=rA(a)||n.url;return c=new Xl({headers:S,status:a.status,statusText:w,url:k}),c},d=()=>{let{headers:w,status:S,statusText:k,url:Z}=u(),U=null;S!==qM&&(U=typeof a.response>"u"?a.responseText:a.response),S===0&&(S=U?N_:0);let Ve=S>=200&&S<300;if(n.responseType==="json"&&typeof U=="string"){let ce=U;U=U.replace(iA,"");try{U=U!==""?JSON.parse(U):null}catch(ge){U=ce,Ve&&(Ve=!1,U={error:ge,text:U})}}Ve?(s.next(new Jo({body:U,headers:w,status:S,statusText:k,url:Z||void 0})),s.complete()):s.error(new ai({error:U,headers:w,status:S,statusText:k,url:Z||void 0}))},h=w=>{let{url:S}=u(),k=new ai({error:w,status:a.status||0,statusText:a.statusText||"Unknown Error",url:S||void 0});s.error(k)},f=!1,p=w=>{f||(s.next(u()),f=!0);let S={type:ci.DownloadProgress,loaded:w.loaded};w.lengthComputable&&(S.total=w.total),n.responseType==="text"&&a.responseText&&(S.partialText=a.responseText),s.next(S)},v=w=>{let S={type:ci.UploadProgress,loaded:w.loaded};w.lengthComputable&&(S.total=w.total),s.next(S)};return a.addEventListener("load",d),a.addEventListener("error",h),a.addEventListener("timeout",h),a.addEventListener("abort",h),n.reportProgress&&(a.addEventListener("progress",p),l!==null&&a.upload&&a.upload.addEventListener("progress",v)),a.send(l),s.next({type:ci.Sent}),()=>{a.removeEventListener("error",h),a.removeEventListener("abort",h),a.removeEventListener("load",d),a.removeEventListener("timeout",h),n.reportProgress&&(a.removeEventListener("progress",p),l!==null&&a.upload&&a.upload.removeEventListener("progress",v)),a.readyState!==a.DONE&&a.abort()}})))}};e.\u0275fac=function(r){return new(r||e)(y(Br))},e.\u0275prov=E({token:e,factory:e.\u0275fac});let t=e;return t})(),k_=new x(""),oA="XSRF-TOKEN",sA=new x("",{providedIn:"root",factory:()=>oA}),aA="X-XSRF-TOKEN",lA=new x("",{providedIn:"root",factory:()=>aA}),Jl=class{},cA=(()=>{let e=class e{constructor(n,r,o){this.doc=n,this.platform=r,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=ql(n,this.cookieName),this.lastCookieString=n),this.lastToken}};e.\u0275fac=function(r){return new(r||e)(y(ae),y(Rt),y(sA))},e.\u0275prov=E({token:e,factory:e.\u0275fac});let t=e;return t})();function uA(t,e){let i=t.url.toLowerCase();if(!g(k_)||t.method==="GET"||t.method==="HEAD"||i.startsWith("http://")||i.startsWith("https://"))return e(t);let n=g(Jl).getToken(),r=g(lA);return n!=null&&!t.headers.has(r)&&(t=t.clone({headers:t.headers.set(r,n)})),e(t)}var F_=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(F_||{});function dA(t,e){return{\u0275kind:t,\u0275providers:e}}function P_(...t){let e=[Wi,M_,T_,{provide:Yo,useExisting:T_},{provide:Yl,useFactory:()=>g(KM,{optional:!0})??g(M_)},{provide:lh,useValue:uA,multi:!0},{provide:k_,useValue:!0},{provide:Jl,useClass:cA}];for(let i of t)e.push(...i.\u0275providers);return yl(e)}var A_=new x("");function L_(){return dA(F_.LegacyInterceptors,[{provide:A_,useFactory:nA},{provide:lh,useExisting:A_,multi:!0}])}var fh=class extends Wl{constructor(){super(...arguments),this.supportsDOMEvents=!0}},hh=class t extends fh{static makeCurrent(){m_(new t)}onAndCancel(e,i,n){return e.addEventListener(i,n),()=>{e.removeEventListener(i,n)}}dispatchEvent(e,i){e.dispatchEvent(i)}remove(e){e.remove()}createElement(e,i){return i=i||this.getDefaultDocument(),i.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,i){return i==="window"?window:i==="document"?e:i==="body"?e.body:null}getBaseHref(e){let i=fA();return i==null?null:hA(i)}resetBaseElement(){es=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return ql(document.cookie,e)}},es=null;function fA(){return es=es||document.querySelector("base"),es?es.getAttribute("href"):null}function hA(t){return new URL(t,document.baseURI).pathname}var ph=class{addToWindow(e){vt.getAngularTestability=(n,r=!0)=>{let o=e.findTestabilityInTree(n,r);if(o==null)throw new _(5103,!1);return o},vt.getAllAngularTestabilities=()=>e.getAllTestabilities(),vt.getAllAngularRootElements=()=>e.getAllRootElements();let i=n=>{let r=vt.getAllAngularTestabilities(),o=r.length,s=function(){o--,o==0&&n()};r.forEach(a=>{a.whenStable(s)})};vt.frameworkStabilizers||(vt.frameworkStabilizers=[]),vt.frameworkStabilizers.push(i)}findTestabilityInTree(e,i,n){if(i==null)return null;let r=e.getTestability(i);return r??(n?vn().isShadowRoot(i)?this.findTestabilityInTree(e,i.host,!0):this.findTestabilityInTree(e,i.parentElement,!0):null)}},pA=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=E({token:e,factory:e.\u0275fac});let t=e;return t})(),ec=new x(""),B_=(()=>{let e=class e{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,o){return this._findPluginFor(r).addEventListener(n,r,o)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(s=>s.supports(n)),!r)throw new _(5101,!1);return this._eventNameToPlugin.set(n,r),r}};e.\u0275fac=function(r){return new(r||e)(y(ec),y(R))},e.\u0275prov=E({token:e,factory:e.\u0275fac});let t=e;return t})(),ts=class{constructor(e){this._doc=e}},uh="ng-app-id",U_=(()=>{let e=class e{constructor(n,r,o,s={}){this.doc=n,this.appId=r,this.nonce=o,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Zl(s),this.resetHostNodes()}addStyles(n){for(let r of n)this.changeUsageCount(r,1)===1&&this.onStyleAdded(r)}removeStyles(n){for(let r of n)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(r=>r.remove()),n.clear());for(let r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let r of this.getAllStyles())this.addStyleToHost(n,r)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let r of this.hostNodes)this.addStyleToHost(r,n)}onStyleRemoved(n){let r=this.styleRef;r.get(n)?.elements?.forEach(o=>o.remove()),r.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${uh}="${this.appId}"]`);if(n?.length){let r=new Map;return n.forEach(o=>{o.textContent!=null&&r.set(o.textContent,o)}),r}return null}changeUsageCount(n,r){let o=this.styleRef;if(o.has(n)){let s=o.get(n);return s.usage+=r,s.usage}return o.set(n,{usage:r,elements:[]}),r}getStyleElement(n,r){let o=this.styleNodesInDOM,s=o?.get(r);if(s?.parentNode===n)return o.delete(r),s.removeAttribute(uh),s;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=r,this.platformIsServer&&a.setAttribute(uh,this.appId),n.appendChild(a),a}}addStyleToHost(n,r){let o=this.getStyleElement(n,r),s=this.styleRef,a=s.get(r)?.elements;a?a.push(o):s.set(r,{elements:[o],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}};e.\u0275fac=function(r){return new(r||e)(y(ae),y($o),y(Ho,8),y(Rt))},e.\u0275prov=E({token:e,factory:e.\u0275fac});let t=e;return t})(),dh={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"},gh=/%COMP%/g,$_="%COMP%",mA=`_nghost-${$_}`,gA=`_ngcontent-${$_}`,vA=!0,yA=new x("",{providedIn:"root",factory:()=>vA});function bA(t){return gA.replace(gh,t)}function _A(t){return mA.replace(gh,t)}function H_(t,e){return e.map(i=>i.replace(gh,t))}var tc=(()=>{let e=class e{constructor(n,r,o,s,a,l,c,u=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=l,this.ngZone=c,this.nonce=u,this.rendererByCompId=new Map,this.platformIsServer=Zl(l),this.defaultRenderer=new ns(n,a,c,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===ln.ShadowDom&&(r=ie(b({},r),{encapsulation:ln.Emulated}));let o=this.getOrCreateRenderer(n,r);return o instanceof nc?o.applyToHost(n):o instanceof is&&o.applyStyles(),o}getOrCreateRenderer(n,r){let o=this.rendererByCompId,s=o.get(r.id);if(!s){let a=this.doc,l=this.ngZone,c=this.eventManager,u=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,h=this.platformIsServer;switch(r.encapsulation){case ln.Emulated:s=new nc(c,u,r,this.appId,d,a,l,h);break;case ln.ShadowDom:return new mh(c,u,n,r,a,l,this.nonce,h);default:s=new is(c,u,r,d,a,l,h);break}o.set(r.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(r){return new(r||e)(y(B_),y(U_),y($o),y(yA),y(ae),y(Rt),y(R),y(Ho))},e.\u0275prov=E({token:e,factory:e.\u0275fac});let t=e;return t})(),ns=class{constructor(e,i,n,r){this.eventManager=e,this.doc=i,this.ngZone=n,this.platformIsServer=r,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,i){return i?this.doc.createElementNS(dh[i]||i,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,i){(j_(e)?e.content:e).appendChild(i)}insertBefore(e,i,n){e&&(j_(e)?e.content:e).insertBefore(i,n)}removeChild(e,i){i.remove()}selectRootElement(e,i){let n=typeof e=="string"?this.doc.querySelector(e):e;if(!n)throw new _(-5104,!1);return i||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,i,n,r){if(r){i=r+":"+i;let o=dh[r];o?e.setAttributeNS(o,i,n):e.setAttribute(i,n)}else e.setAttribute(i,n)}removeAttribute(e,i,n){if(n){let r=dh[n];r?e.removeAttributeNS(r,i):e.removeAttribute(`${n}:${i}`)}else e.removeAttribute(i)}addClass(e,i){e.classList.add(i)}removeClass(e,i){e.classList.remove(i)}setStyle(e,i,n,r){r&(Nn.DashCase|Nn.Important)?e.style.setProperty(i,n,r&Nn.Important?"important":""):e.style[i]=n}removeStyle(e,i,n){n&Nn.DashCase?e.style.removeProperty(i):e.style[i]=""}setProperty(e,i,n){e!=null&&(e[i]=n)}setValue(e,i){e.nodeValue=i}listen(e,i,n){if(typeof e=="string"&&(e=vn().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${i}`);return this.eventManager.addEventListener(e,i,this.decoratePreventDefault(n))}decoratePreventDefault(e){return i=>{if(i==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(i)):e(i))===!1&&i.preventDefault()}}};function j_(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var mh=class extends ns{constructor(e,i,n,r,o,s,a,l){super(e,o,s,l),this.sharedStylesHost=i,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let c=H_(r.id,r.styles);for(let u of c){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=u,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,i){return super.appendChild(this.nodeOrShadowRoot(e),i)}insertBefore(e,i,n){return super.insertBefore(this.nodeOrShadowRoot(e),i,n)}removeChild(e,i){return super.removeChild(null,i)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},is=class extends ns{constructor(e,i,n,r,o,s,a,l){super(e,o,s,a),this.sharedStylesHost=i,this.removeStylesOnCompDestroy=r,this.styles=l?H_(l,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},nc=class extends is{constructor(e,i,n,r,o,s,a,l){let c=r+"-"+n.id;super(e,i,n,o,s,a,l,c),this.contentAttr=bA(c),this.hostAttr=_A(c)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,i){let n=super.createElement(e,i);return super.setAttribute(n,this.contentAttr,""),n}},wA=(()=>{let e=class e extends ts{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o){return n.addEventListener(r,o,!1),()=>this.removeEventListener(n,r,o)}removeEventListener(n,r,o){return n.removeEventListener(r,o)}};e.\u0275fac=function(r){return new(r||e)(y(ae))},e.\u0275prov=E({token:e,factory:e.\u0275fac});let t=e;return t})(),DA=(()=>{let e=class e extends ts{constructor(n){super(n),this.delegate=g(a_,{optional:!0})}supports(n){return this.delegate?this.delegate.supports(n):!1}addEventListener(n,r,o){return this.delegate.addEventListener(n,r,o)}removeEventListener(n,r,o){return this.delegate.removeEventListener(n,r,o)}};e.\u0275fac=function(r){return new(r||e)(y(ae))},e.\u0275prov=E({token:e,factory:e.\u0275fac});let t=e;return t})(),V_=["alt","control","meta","shift"],EA={"\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"},CA={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},IA=(()=>{let e=class e extends ts{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,o){let s=e.parseEventName(r),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>vn().onAndCancel(n,s.domEventName,a))}static parseEventName(n){let r=n.toLowerCase().split("."),o=r.shift();if(r.length===0||!(o==="keydown"||o==="keyup"))return null;let s=e._normalizeKey(r.pop()),a="",l=r.indexOf("code");if(l>-1&&(r.splice(l,1),a="code."),V_.forEach(u=>{let d=r.indexOf(u);d>-1&&(r.splice(d,1),a+=u+".")}),a+=s,r.length!=0||s.length===0)return null;let c={};return c.domEventName=o,c.fullKey=a,c}static matchEventFullKeyCode(n,r){let o=EA[n.key]||n.key,s="";return r.indexOf("code.")>-1&&(o=n.code,s="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),V_.forEach(a=>{if(a!==o){let l=CA[a];l(n)&&(s+=a+".")}}),s+=o,s===r)}static eventCallback(n,r,o){return s=>{e.matchEventFullKeyCode(s,n)&&o.runGuarded(()=>r(s))}}static _normalizeKey(n){return n==="esc"?"escape":n}};e.\u0275fac=function(r){return new(r||e)(y(ae))},e.\u0275prov=E({token:e,factory:e.\u0275fac});let t=e;return t})();function xA(){hh.makeCurrent()}function SA(){return new pt}function TA(){return _y(document),document}var MA=[{provide:Rt,useValue:th},{provide:_f,useValue:xA,multi:!0},{provide:ae,useFactory:TA,deps:[]}],z_=zf(o_,"browser",MA),AA=new x(""),NA=[{provide:Zo,useClass:ph,deps:[]},{provide:Uf,useClass:Ll,deps:[R,jl,Zo]},{provide:Ll,useClass:Ll,deps:[R,jl,Zo]}],RA=[{provide:bl,useValue:"root"},{provide:pt,useFactory:SA,deps:[]},{provide:ec,useClass:wA,multi:!0,deps:[ae,R,Rt]},{provide:ec,useClass:IA,multi:!0,deps:[ae]},{provide:ec,useClass:DA,multi:!0},tc,U_,B_,{provide:ii,useExisting:tc},{provide:Br,useClass:pA,deps:[]},[]],ic=(()=>{let e=class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:$o,useValue:n.appId}]}}};e.\u0275fac=function(r){return new(r||e)(y(AA,12))},e.\u0275mod=ne({type:e}),e.\u0275inj=te({providers:[...RA,...NA],imports:[Hr,s_]});let t=e;return t})();var W_=(()=>{let e=class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}};e.\u0275fac=function(r){return new(r||e)(y(ae))},e.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var vh=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=E({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=y(OA),o},providedIn:"root"});let t=e;return t})(),OA=(()=>{let e=class e extends vh{constructor(n){super(),this._doc=n}sanitize(n,r){if(r==null)return null;switch(n){case Qe.NONE:return r;case Qe.HTML:return kn(r,"HTML")?Ot(r):Df(this._doc,String(r)).toString();case Qe.STYLE:return kn(r,"Style")?Ot(r):r;case Qe.SCRIPT:if(kn(r,"Script"))return Ot(r);throw new _(5200,!1);case Qe.URL:return kn(r,"URL")?Ot(r):Sl(String(r));case Qe.RESOURCE_URL:if(kn(r,"ResourceURL"))return Ot(r);throw new _(5201,!1);default:throw new _(5202,!1)}}bypassSecurityTrustHtml(n){return Cy(n)}bypassSecurityTrustStyle(n){return Iy(n)}bypassSecurityTrustScript(n){return xy(n)}bypassSecurityTrustUrl(n){return Sy(n)}bypassSecurityTrustResourceUrl(n){return Ty(n)}};e.\u0275fac=function(r){return new(r||e)(y(ae))},e.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var q=function(t){return t[t.State=0]="State",t[t.Transition=1]="Transition",t[t.Sequence=2]="Sequence",t[t.Group=3]="Group",t[t.Animate=4]="Animate",t[t.Keyframes=5]="Keyframes",t[t.Style=6]="Style",t[t.Trigger=7]="Trigger",t[t.Reference=8]="Reference",t[t.AnimateChild=9]="AnimateChild",t[t.AnimateRef=10]="AnimateRef",t[t.Query=11]="Query",t[t.Stagger=12]="Stagger",t}(q||{}),yn="*";function G_(t,e){return{type:q.Trigger,name:t,definitions:e,options:{}}}function q_(t,e=null){return{type:q.Animate,styles:e,timings:t}}function Q_(t,e=null){return{type:q.Sequence,steps:t,options:e}}function Wr(t){return{type:q.Style,styles:t,offset:null}}function Z_(t,e,i){return{type:q.State,name:t,styles:e,options:i}}function K_(t,e,i=null){return{type:q.Transition,expr:t,animation:e,options:i}}var ui=class{constructor(e=0,i=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+i}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){let i=e=="start"?this._onStartFns:this._onDoneFns;i.forEach(n=>n()),i.length=0}},rs=class{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let i=0,n=0,r=0,o=this.players.length;o==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++i==o&&this._onFinish()}),s.onDestroy(()=>{++n==o&&this._onDestroy()}),s.onStart(()=>{++r==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){let i=e*this.totalTime;this.players.forEach(n=>{let r=n.totalTime?Math.min(1,i/n.totalTime):1;n.setPosition(r)})}getPosition(){let e=this.players.reduce((i,n)=>i===null||n.totalTime>i.totalTime?n:i,null);return e!=null?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){let i=e=="start"?this._onStartFns:this._onDoneFns;i.forEach(n=>n()),i.length=0}},rc="!";function Y_(t){return new _(3e3,!1)}function kA(){return new _(3100,!1)}function FA(){return new _(3101,!1)}function PA(t){return new _(3001,!1)}function LA(t){return new _(3003,!1)}function jA(t){return new _(3004,!1)}function VA(t,e){return new _(3005,!1)}function BA(){return new _(3006,!1)}function UA(){return new _(3007,!1)}function $A(t,e){return new _(3008,!1)}function HA(t){return new _(3002,!1)}function zA(t,e,i,n,r){return new _(3010,!1)}function WA(){return new _(3011,!1)}function GA(){return new _(3012,!1)}function qA(){return new _(3200,!1)}function QA(){return new _(3202,!1)}function ZA(){return new _(3013,!1)}function KA(t){return new _(3014,!1)}function YA(t){return new _(3015,!1)}function XA(t){return new _(3016,!1)}function JA(t,e){return new _(3404,!1)}function eN(t){return new _(3502,!1)}function tN(t){return new _(3503,!1)}function nN(){return new _(3300,!1)}function iN(t){return new _(3504,!1)}function rN(t){return new _(3301,!1)}function oN(t,e){return new _(3302,!1)}function sN(t){return new _(3303,!1)}function aN(t,e){return new _(3400,!1)}function lN(t){return new _(3401,!1)}function cN(t){return new _(3402,!1)}function uN(t,e){return new _(3505,!1)}function di(t){switch(t.length){case 0:return new ui;case 1:return t[0];default:return new rs(t)}}function d0(t,e,i=new Map,n=new Map){let r=[],o=[],s=-1,a=null;if(e.forEach(l=>{let c=l.get("offset"),u=c==s,d=u&&a||new Map;l.forEach((h,f)=>{let p=f,v=h;if(f!=="offset")switch(p=t.normalizePropertyName(p,r),v){case rc:v=i.get(f);break;case yn:v=n.get(f);break;default:v=t.normalizeStyleValue(f,p,v,r);break}d.set(p,v)}),u||o.push(d),a=d,s=c}),r.length)throw eN(r);return o}function Uh(t,e,i,n){switch(e){case"start":t.onStart(()=>n(i&&bh(i,"start",t)));break;case"done":t.onDone(()=>n(i&&bh(i,"done",t)));break;case"destroy":t.onDestroy(()=>n(i&&bh(i,"destroy",t)));break}}function bh(t,e,i){let n=i.totalTime,r=!!i.disabled,o=$h(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,n??t.totalTime,r),s=t._data;return s!=null&&(o._data=s),o}function $h(t,e,i,n,r="",o=0,s){return{element:t,triggerName:e,fromState:i,toState:n,phaseName:r,totalTime:o,disabled:!!s}}function Dt(t,e,i){let n=t.get(e);return n||t.set(e,n=i),n}function X_(t){let e=t.indexOf(":"),i=t.substring(1,e),n=t.slice(e+1);return[i,n]}var dN=typeof document>"u"?null:document.documentElement;function Hh(t){let e=t.parentNode||t.host||null;return e===dN?null:e}function fN(t){return t.substring(1,6)=="ebkit"}var Gi=null,J_=!1;function hN(t){Gi||(Gi=pN()||{},J_=Gi.style?"WebkitAppearance"in Gi.style:!1);let e=!0;return Gi.style&&!fN(t)&&(e=t in Gi.style,!e&&J_&&(e="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in Gi.style)),e}function pN(){return typeof document<"u"?document.body:null}function f0(t,e){for(;e;){if(e===t)return!0;e=Hh(e)}return!1}function h0(t,e,i){if(i)return Array.from(t.querySelectorAll(e));let n=t.querySelector(e);return n?[n]:[]}var zh=(()=>{let e=class e{validateStyleProperty(n){return hN(n)}containsElement(n,r){return f0(n,r)}getParentElement(n){return Hh(n)}query(n,r,o){return h0(n,r,o)}computeStyle(n,r,o){return o||""}animate(n,r,o,s,a,l=[],c){return new ui(o,s)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=E({token:e,factory:e.\u0275fac});let t=e;return t})(),Qh=class Qh{};Qh.NOOP=new zh;var Zi=Qh,Ki=class{};var mN=1e3,p0="{{",gN="}}",m0="ng-enter",Ih="ng-leave",oc="ng-trigger",uc=".ng-trigger",e0="ng-animating",xh=".ng-animating";function Hn(t){if(typeof t=="number")return t;let e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Sh(parseFloat(e[1]),e[2])}function Sh(t,e){switch(e){case"s":return t*mN;default:return t}}function dc(t,e,i){return t.hasOwnProperty("duration")?t:vN(t,e,i)}function vN(t,e,i){let n=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,r,o=0,s="";if(typeof t=="string"){let a=t.match(n);if(a===null)return e.push(Y_(t)),{duration:0,delay:0,easing:""};r=Sh(parseFloat(a[1]),a[2]);let l=a[3];l!=null&&(o=Sh(parseFloat(l),a[4]));let c=a[5];c&&(s=c)}else r=t;if(!i){let a=!1,l=e.length;r<0&&(e.push(kA()),a=!0),o<0&&(e.push(FA()),a=!0),a&&e.splice(l,0,Y_(t))}return{duration:r,delay:o,easing:s}}function yN(t){return t.length?t[0]instanceof Map?t:t.map(e=>new Map(Object.entries(e))):[]}function bn(t,e,i){e.forEach((n,r)=>{let o=Wh(r);i&&!i.has(r)&&i.set(r,t.style[o]),t.style[o]=n})}function Qi(t,e){e.forEach((i,n)=>{let r=Wh(n);t.style[r]=""})}function os(t){return Array.isArray(t)?t.length==1?t[0]:Q_(t):t}function bN(t,e,i){let n=e.params||{},r=g0(t);r.length&&r.forEach(o=>{n.hasOwnProperty(o)||i.push(PA(o))})}var Th=new RegExp(`${p0}\\s*(.+?)\\s*${gN}`,"g");function g0(t){let e=[];if(typeof t=="string"){let i;for(;i=Th.exec(t);)e.push(i[1]);Th.lastIndex=0}return e}function as(t,e,i){let n=`${t}`,r=n.replace(Th,(o,s)=>{let a=e[s];return a==null&&(i.push(LA(s)),a=""),a.toString()});return r==n?t:r}var _N=/-+([a-z0-9])/g;function Wh(t){return t.replace(_N,(...e)=>e[1].toUpperCase())}function wN(t,e){return t===0||e===0}function DN(t,e,i){if(i.size&&e.length){let n=e[0],r=[];if(i.forEach((o,s)=>{n.has(s)||r.push(s),n.set(s,o)}),r.length)for(let o=1;os.set(a,Gh(t,a)))}}return e}function wt(t,e,i){switch(e.type){case q.Trigger:return t.visitTrigger(e,i);case q.State:return t.visitState(e,i);case q.Transition:return t.visitTransition(e,i);case q.Sequence:return t.visitSequence(e,i);case q.Group:return t.visitGroup(e,i);case q.Animate:return t.visitAnimate(e,i);case q.Keyframes:return t.visitKeyframes(e,i);case q.Style:return t.visitStyle(e,i);case q.Reference:return t.visitReference(e,i);case q.AnimateChild:return t.visitAnimateChild(e,i);case q.AnimateRef:return t.visitAnimateRef(e,i);case q.Query:return t.visitQuery(e,i);case q.Stagger:return t.visitStagger(e,i);default:throw jA(e.type)}}function Gh(t,e){return window.getComputedStyle(t)[e]}var EN=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),fc=class extends Ki{normalizePropertyName(e,i){return Wh(e)}normalizeStyleValue(e,i,n,r){let o="",s=n.toString().trim();if(EN.has(i)&&n!==0&&n!=="0")if(typeof n=="number")o="px";else{let a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&r.push(VA(e,n))}return s+o}};var hc="*";function CN(t,e){let i=[];return typeof t=="string"?t.split(/\s*,\s*/).forEach(n=>IN(n,i,e)):i.push(t),i}function IN(t,e,i){if(t[0]==":"){let l=xN(t,i);if(typeof l=="function"){e.push(l);return}t=l}let n=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(n==null||n.length<4)return i.push(YA(t)),e;let r=n[1],o=n[2],s=n[3];e.push(t0(r,s));let a=r==hc&&s==hc;o[0]=="<"&&!a&&e.push(t0(s,r))}function xN(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(i,n)=>parseFloat(n)>parseFloat(i);case":decrement":return(i,n)=>parseFloat(n) *"}}var sc=new Set(["true","1"]),ac=new Set(["false","0"]);function t0(t,e){let i=sc.has(t)||ac.has(t),n=sc.has(e)||ac.has(e);return(r,o)=>{let s=t==hc||t==r,a=e==hc||e==o;return!s&&i&&typeof r=="boolean"&&(s=r?sc.has(t):ac.has(t)),!a&&n&&typeof o=="boolean"&&(a=o?sc.has(e):ac.has(e)),s&&a}}var v0=":self",SN=new RegExp(`s*${v0}s*,?`,"g");function y0(t,e,i,n){return new Mh(t).build(e,i,n)}var n0="",Mh=class{constructor(e){this._driver=e}build(e,i,n){let r=new Ah(i);return this._resetContextStyleTimingState(r),wt(this,os(e),r)}_resetContextStyleTimingState(e){e.currentQuerySelector=n0,e.collectedStyles=new Map,e.collectedStyles.set(n0,new Map),e.currentTime=0}visitTrigger(e,i){let n=i.queryCount=0,r=i.depCount=0,o=[],s=[];return e.name.charAt(0)=="@"&&i.errors.push(BA()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(i),a.type==q.State){let l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,o.push(this.visitState(l,i))}),l.name=c}else if(a.type==q.Transition){let l=this.visitTransition(a,i);n+=l.queryCount,r+=l.depCount,s.push(l)}else i.errors.push(UA())}),{type:q.Trigger,name:e.name,states:o,transitions:s,queryCount:n,depCount:r,options:null}}visitState(e,i){let n=this.visitStyle(e.styles,i),r=e.options&&e.options.params||null;if(n.containsDynamicStyles){let o=new Set,s=r||{};n.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{g0(l).forEach(c=>{s.hasOwnProperty(c)||o.add(c)})})}),o.size&&i.errors.push($A(e.name,[...o.values()]))}return{type:q.State,name:e.name,style:n,options:r?{params:r}:null}}visitTransition(e,i){i.queryCount=0,i.depCount=0;let n=wt(this,os(e.animation),i),r=CN(e.expr,i.errors);return{type:q.Transition,matchers:r,animation:n,queryCount:i.queryCount,depCount:i.depCount,options:qi(e.options)}}visitSequence(e,i){return{type:q.Sequence,steps:e.steps.map(n=>wt(this,n,i)),options:qi(e.options)}}visitGroup(e,i){let n=i.currentTime,r=0,o=e.steps.map(s=>{i.currentTime=n;let a=wt(this,s,i);return r=Math.max(r,i.currentTime),a});return i.currentTime=r,{type:q.Group,steps:o,options:qi(e.options)}}visitAnimate(e,i){let n=NN(e.timings,i.errors);i.currentAnimateTimings=n;let r,o=e.styles?e.styles:Wr({});if(o.type==q.Keyframes)r=this.visitKeyframes(o,i);else{let s=e.styles,a=!1;if(!s){a=!0;let c={};n.easing&&(c.easing=n.easing),s=Wr(c)}i.currentTime+=n.duration+n.delay;let l=this.visitStyle(s,i);l.isEmptyStep=a,r=l}return i.currentAnimateTimings=null,{type:q.Animate,timings:n,style:r,options:null}}visitStyle(e,i){let n=this._makeStyleAst(e,i);return this._validateStyleAst(n,i),n}_makeStyleAst(e,i){let n=[],r=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of r)typeof a=="string"?a===yn?n.push(a):i.errors.push(HA(a)):n.push(new Map(Object.entries(a)));let o=!1,s=null;return n.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!o)){for(let l of a.values())if(l.toString().indexOf(p0)>=0){o=!0;break}}}),{type:q.Style,styles:n,easing:s,offset:e.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(e,i){let n=i.currentAnimateTimings,r=i.currentTime,o=i.currentTime;n&&o>0&&(o-=n.duration+n.delay),e.styles.forEach(s=>{typeof s!="string"&&s.forEach((a,l)=>{let c=i.collectedStyles.get(i.currentQuerySelector),u=c.get(l),d=!0;u&&(o!=r&&o>=u.startTime&&r<=u.endTime&&(i.errors.push(zA(l,u.startTime,u.endTime,o,r)),d=!1),o=u.startTime),d&&c.set(l,{startTime:o,endTime:r}),i.options&&bN(a,i.options,i.errors)})})}visitKeyframes(e,i){let n={type:q.Keyframes,styles:[],options:null};if(!i.currentAnimateTimings)return i.errors.push(WA()),n;let r=1,o=0,s=[],a=!1,l=!1,c=0,u=e.steps.map(S=>{let k=this._makeStyleAst(S,i),Z=k.offset!=null?k.offset:AN(k.styles),U=0;return Z!=null&&(o++,U=k.offset=Z),l=l||U<0||U>1,a=a||U0&&o{let Z=h>0?k==f?1:h*k:s[k],U=Z*w;i.currentTime=p+v.delay+U,v.duration=U,this._validateStyleAst(S,i),S.offset=Z,n.styles.push(S)}),n}visitReference(e,i){return{type:q.Reference,animation:wt(this,os(e.animation),i),options:qi(e.options)}}visitAnimateChild(e,i){return i.depCount++,{type:q.AnimateChild,options:qi(e.options)}}visitAnimateRef(e,i){return{type:q.AnimateRef,animation:this.visitReference(e.animation,i),options:qi(e.options)}}visitQuery(e,i){let n=i.currentQuerySelector,r=e.options||{};i.queryCount++,i.currentQuery=e;let[o,s]=TN(e.selector);i.currentQuerySelector=n.length?n+" "+o:o,Dt(i.collectedStyles,i.currentQuerySelector,new Map);let a=wt(this,os(e.animation),i);return i.currentQuery=null,i.currentQuerySelector=n,{type:q.Query,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:e.selector,options:qi(e.options)}}visitStagger(e,i){i.currentQuery||i.errors.push(ZA());let n=e.timings==="full"?{duration:0,delay:0,easing:"full"}:dc(e.timings,i.errors,!0);return{type:q.Stagger,animation:wt(this,os(e.animation),i),timings:n,options:null}}};function TN(t){let e=!!t.split(/\s*,\s*/).find(i=>i==v0);return e&&(t=t.replace(SN,"")),t=t.replace(/@\*/g,uc).replace(/@\w+/g,i=>uc+"-"+i.slice(1)).replace(/:animating/g,xh),[t,e]}function MN(t){return t?b({},t):null}var Ah=class{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}};function AN(t){if(typeof t=="string")return null;let e=null;if(Array.isArray(t))t.forEach(i=>{if(i instanceof Map&&i.has("offset")){let n=i;e=parseFloat(n.get("offset")),n.delete("offset")}});else if(t instanceof Map&&t.has("offset")){let i=t;e=parseFloat(i.get("offset")),i.delete("offset")}return e}function NN(t,e){if(t.hasOwnProperty("duration"))return t;if(typeof t=="number"){let o=dc(t,e).duration;return _h(o,0,"")}let i=t;if(i.split(/\s+/).some(o=>o.charAt(0)=="{"&&o.charAt(1)=="{")){let o=_h(0,0,"");return o.dynamic=!0,o.strValue=i,o}let r=dc(i,e);return _h(r.duration,r.delay,r.easing)}function qi(t){return t?(t=b({},t),t.params&&(t.params=MN(t.params))):t={},t}function _h(t,e,i){return{duration:t,delay:e,easing:i}}function qh(t,e,i,n,r,o,s=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:i,postStyleProps:n,duration:r,delay:o,totalTime:r+o,easing:s,subTimeline:a}}var ls=class{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,i){let n=this._map.get(e);n||this._map.set(e,n=[]),n.push(...i)}has(e){return this._map.has(e)}clear(){this._map.clear()}},RN=1,ON=":enter",kN=new RegExp(ON,"g"),FN=":leave",PN=new RegExp(FN,"g");function b0(t,e,i,n,r,o=new Map,s=new Map,a,l,c=[]){return new Nh().buildKeyframes(t,e,i,n,r,o,s,a,l,c)}var Nh=class{buildKeyframes(e,i,n,r,o,s,a,l,c,u=[]){c=c||new ls;let d=new Rh(e,i,c,r,o,u,[]);d.options=l;let h=l.delay?Hn(l.delay):0;d.currentTimeline.delayNextStep(h),d.currentTimeline.setStyles([s],null,d.errors,l),wt(this,n,d);let f=d.timelines.filter(p=>p.containsAnimation());if(f.length&&a.size){let p;for(let v=f.length-1;v>=0;v--){let w=f[v];if(w.element===i){p=w;break}}p&&!p.allowOnlyTimelineStyles()&&p.setStyles([a],null,d.errors,l)}return f.length?f.map(p=>p.buildKeyframes()):[qh(i,[],[],[],0,h,"",!1)]}visitTrigger(e,i){}visitState(e,i){}visitTransition(e,i){}visitAnimateChild(e,i){let n=i.subInstructions.get(i.element);if(n){let r=i.createSubContext(e.options),o=i.currentTimeline.currentTime,s=this._visitSubInstructions(n,r,r.options);o!=s&&i.transformIntoNewTimeline(s)}i.previousNode=e}visitAnimateRef(e,i){let n=i.createSubContext(e.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],i,n),this.visitReference(e.animation,n),i.transformIntoNewTimeline(n.currentTimeline.currentTime),i.previousNode=e}_applyAnimationRefDelays(e,i,n){for(let r of e){let o=r?.delay;if(o){let s=typeof o=="number"?o:Hn(as(o,r?.params??{},i.errors));n.delayNextStep(s)}}}_visitSubInstructions(e,i,n){let o=i.currentTimeline.currentTime,s=n.duration!=null?Hn(n.duration):null,a=n.delay!=null?Hn(n.delay):null;return s!==0&&e.forEach(l=>{let c=i.appendInstructionToTimeline(l,s,a);o=Math.max(o,c.duration+c.delay)}),o}visitReference(e,i){i.updateOptions(e.options,!0),wt(this,e.animation,i),i.previousNode=e}visitSequence(e,i){let n=i.subContextCount,r=i,o=e.options;if(o&&(o.params||o.delay)&&(r=i.createSubContext(o),r.transformIntoNewTimeline(),o.delay!=null)){r.previousNode.type==q.Style&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=pc);let s=Hn(o.delay);r.delayNextStep(s)}e.steps.length&&(e.steps.forEach(s=>wt(this,s,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>n&&r.transformIntoNewTimeline()),i.previousNode=e}visitGroup(e,i){let n=[],r=i.currentTimeline.currentTime,o=e.options&&e.options.delay?Hn(e.options.delay):0;e.steps.forEach(s=>{let a=i.createSubContext(e.options);o&&a.delayNextStep(o),wt(this,s,a),r=Math.max(r,a.currentTimeline.currentTime),n.push(a.currentTimeline)}),n.forEach(s=>i.currentTimeline.mergeTimelineCollectedStyles(s)),i.transformIntoNewTimeline(r),i.previousNode=e}_visitTiming(e,i){if(e.dynamic){let n=e.strValue,r=i.params?as(n,i.params,i.errors):n;return dc(r,i.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,i){let n=i.currentAnimateTimings=this._visitTiming(e.timings,i),r=i.currentTimeline;n.delay&&(i.incrementTime(n.delay),r.snapshotCurrentStyles());let o=e.style;o.type==q.Keyframes?this.visitKeyframes(o,i):(i.incrementTime(n.duration),this.visitStyle(o,i),r.applyStylesToKeyframe()),i.currentAnimateTimings=null,i.previousNode=e}visitStyle(e,i){let n=i.currentTimeline,r=i.currentAnimateTimings;!r&&n.hasCurrentStyleProperties()&&n.forwardFrame();let o=r&&r.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(o):n.setStyles(e.styles,o,i.errors,i.options),i.previousNode=e}visitKeyframes(e,i){let n=i.currentAnimateTimings,r=i.currentTimeline.duration,o=n.duration,a=i.createSubContext().currentTimeline;a.easing=n.easing,e.styles.forEach(l=>{let c=l.offset||0;a.forwardTime(c*o),a.setStyles(l.styles,l.easing,i.errors,i.options),a.applyStylesToKeyframe()}),i.currentTimeline.mergeTimelineCollectedStyles(a),i.transformIntoNewTimeline(r+o),i.previousNode=e}visitQuery(e,i){let n=i.currentTimeline.currentTime,r=e.options||{},o=r.delay?Hn(r.delay):0;o&&(i.previousNode.type===q.Style||n==0&&i.currentTimeline.hasCurrentStyleProperties())&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=pc);let s=n,a=i.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,i.errors);i.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{i.currentQueryIndex=u;let d=i.createSubContext(e.options,c);o&&d.delayNextStep(o),c===i.element&&(l=d.currentTimeline),wt(this,e.animation,d),d.currentTimeline.applyStylesToKeyframe();let h=d.currentTimeline.currentTime;s=Math.max(s,h)}),i.currentQueryIndex=0,i.currentQueryTotal=0,i.transformIntoNewTimeline(s),l&&(i.currentTimeline.mergeTimelineCollectedStyles(l),i.currentTimeline.snapshotCurrentStyles()),i.previousNode=e}visitStagger(e,i){let n=i.parentContext,r=i.currentTimeline,o=e.timings,s=Math.abs(o.duration),a=s*(i.currentQueryTotal-1),l=s*i.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=a-l;break;case"full":l=n.currentStaggerTime;break}let u=i.currentTimeline;l&&u.delayNextStep(l);let d=u.currentTime;wt(this,e.animation,i),i.previousNode=e,n.currentStaggerTime=r.currentTime-d+(r.startTime-n.currentTimeline.startTime)}},pc={},Rh=class t{constructor(e,i,n,r,o,s,a,l){this._driver=e,this.element=i,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=o,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=pc,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new mc(this._driver,i,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,i){if(!e)return;let n=e,r=this.options;n.duration!=null&&(r.duration=Hn(n.duration)),n.delay!=null&&(r.delay=Hn(n.delay));let o=n.params;if(o){let s=r.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!i||!s.hasOwnProperty(a))&&(s[a]=as(o[a],s,this.errors))})}}_copyOptions(){let e={};if(this.options){let i=this.options.params;if(i){let n=e.params={};Object.keys(i).forEach(r=>{n[r]=i[r]})}}return e}createSubContext(e=null,i,n){let r=i||this.element,o=new t(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,n||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(e),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(e){return this.previousNode=pc,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,i,n){let r={duration:i??e.duration,delay:this.currentTimeline.currentTime+(n??0)+e.delay,easing:""},o=new Oh(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,i,n,r,o,s){let a=[];if(r&&a.push(this.element),e.length>0){e=e.replace(kN,"."+this._enterClassName),e=e.replace(PN,"."+this._leaveClassName);let l=n!=1,c=this._driver.query(this.element,e,l);n!==0&&(c=n<0?c.slice(c.length+n,c.length):c.slice(0,n)),a.push(...c)}return!o&&a.length==0&&s.push(KA(i)),a}},mc=class t{constructor(e,i,n,r){this._driver=e,this.element=i,this.startTime=n,this._elementTimelineStylesLookup=r,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(i),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(i,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let i=this._keyframes.size===1&&this._pendingStyles.size;this.duration||i?(this.forwardTime(this.currentTime+e),i&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,i){return this.applyStylesToKeyframe(),new t(this._driver,e,i||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=RN,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,i){this._localTimelineStyles.set(e,i),this._globalTimelineStyles.set(e,i),this._styleSummary.set(e,{time:this.currentTime,value:i})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[i,n]of this._globalTimelineStyles)this._backFill.set(i,n||yn),this._currentKeyframe.set(i,yn);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,i,n,r){i&&this._previousKeyframe.set("easing",i);let o=r&&r.params||{},s=LN(e,this._globalTimelineStyles);for(let[a,l]of s){let c=as(l,o,n);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??yn),this._updateStyle(a,c)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,i)=>{this._currentKeyframe.set(i,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,i)=>{this._currentKeyframe.has(i)||this._currentKeyframe.set(i,e)}))}snapshotCurrentStyles(){for(let[e,i]of this._localTimelineStyles)this._pendingStyles.set(e,i),this._updateStyle(e,i)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let i in this._currentKeyframe)e.push(i);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((i,n)=>{let r=this._styleSummary.get(n);(!r||i.time>r.time)&&this._updateStyle(n,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,i=new Set,n=this._keyframes.size===1&&this.duration===0,r=[];this._keyframes.forEach((a,l)=>{let c=new Map([...this._backFill,...a]);c.forEach((u,d)=>{u===rc?e.add(d):u===yn&&i.add(d)}),n||c.set("offset",l/this.duration),r.push(c)});let o=[...e.values()],s=[...i.values()];if(n){let a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return qh(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)}},Oh=class extends mc{constructor(e,i,n,r,o,s,a=!1){super(e,i,s.delay),this.keyframes=n,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:i,duration:n,easing:r}=this.timings;if(this._stretchStartingKeyframe&&i){let o=[],s=n+i,a=i/s,l=new Map(e[0]);l.set("offset",0),o.push(l);let c=new Map(e[0]);c.set("offset",i0(a)),o.push(c);let u=e.length-1;for(let d=1;d<=u;d++){let h=new Map(e[d]),f=h.get("offset"),p=i+f*n;h.set("offset",i0(p/s)),o.push(h)}n=s,i=0,r="",e=o}return qh(this.element,e,this.preStyleProps,this.postStyleProps,n,i,r,!0)}};function i0(t,e=3){let i=Math.pow(10,e-1);return Math.round(t*i)/i}function LN(t,e){let i=new Map,n;return t.forEach(r=>{if(r==="*"){n??=e.keys();for(let o of n)i.set(o,yn)}else for(let[o,s]of r)i.set(o,s)}),i}function r0(t,e,i,n,r,o,s,a,l,c,u,d,h){return{type:0,element:t,triggerName:e,isRemovalTransition:r,fromState:i,fromStyles:o,toState:n,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:h}}var wh={},gc=class{constructor(e,i,n){this._triggerName=e,this.ast=i,this._stateStyles=n}match(e,i,n,r){return jN(this.ast.matchers,e,i,n,r)}buildStyles(e,i,n){let r=this._stateStyles.get("*");return e!==void 0&&(r=this._stateStyles.get(e?.toString())||r),r?r.buildStyles(i,n):new Map}build(e,i,n,r,o,s,a,l,c,u){let d=[],h=this.ast.options&&this.ast.options.params||wh,f=a&&a.params||wh,p=this.buildStyles(n,f,d),v=l&&l.params||wh,w=this.buildStyles(r,v,d),S=new Set,k=new Map,Z=new Map,U=r==="void",Ve={params:_0(v,h),delay:this.ast.options?.delay},ce=u?[]:b0(e,i,this.ast.animation,o,s,p,w,Ve,c,d),ge=0;return ce.forEach(Re=>{ge=Math.max(Re.duration+Re.delay,ge)}),d.length?r0(i,this._triggerName,n,r,U,p,w,[],[],k,Z,ge,d):(ce.forEach(Re=>{let Dn=Re.element,sr=Dt(k,Dn,new Set);Re.preStyleProps.forEach(bi=>sr.add(bi));let mm=Dt(Z,Dn,new Set);Re.postStyleProps.forEach(bi=>mm.add(bi)),Dn!==i&&S.add(Dn)}),r0(i,this._triggerName,n,r,U,p,w,ce,[...S.values()],k,Z,ge))}};function jN(t,e,i,n,r){return t.some(o=>o(e,i,n,r))}function _0(t,e){let i=b({},e);return Object.entries(t).forEach(([n,r])=>{r!=null&&(i[n]=r)}),i}var kh=class{constructor(e,i,n){this.styles=e,this.defaultParams=i,this.normalizer=n}buildStyles(e,i){let n=new Map,r=_0(e,this.defaultParams);return this.styles.styles.forEach(o=>{typeof o!="string"&&o.forEach((s,a)=>{s&&(s=as(s,r,i));let l=this.normalizer.normalizePropertyName(a,i);s=this.normalizer.normalizeStyleValue(a,l,s,i),n.set(a,s)})}),n}};function VN(t,e,i){return new Fh(t,e,i)}var Fh=class{constructor(e,i,n){this.name=e,this.ast=i,this._normalizer=n,this.transitionFactories=[],this.states=new Map,i.states.forEach(r=>{let o=r.options&&r.options.params||{};this.states.set(r.name,new kh(r.style,o,n))}),o0(this.states,"true","1"),o0(this.states,"false","0"),i.transitions.forEach(r=>{this.transitionFactories.push(new gc(e,r,this.states))}),this.fallbackTransition=BN(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,i,n,r){return this.transitionFactories.find(s=>s.match(e,i,n,r))||null}matchStyles(e,i,n){return this.fallbackTransition.buildStyles(e,i,n)}};function BN(t,e,i){let n=[(s,a)=>!0],r={type:q.Sequence,steps:[],options:null},o={type:q.Transition,animation:r,matchers:n,options:null,queryCount:0,depCount:0};return new gc(t,o,e)}function o0(t,e,i){t.has(e)?t.has(i)||t.set(i,t.get(e)):t.has(i)&&t.set(e,t.get(i))}var UN=new ls,Ph=class{constructor(e,i,n){this.bodyNode=e,this._driver=i,this._normalizer=n,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,i){let n=[],r=[],o=y0(this._driver,i,n,r);if(n.length)throw tN(n);r.length&&void 0,this._animations.set(e,o)}_buildPlayer(e,i,n){let r=e.element,o=d0(this._normalizer,e.keyframes,i,n);return this._driver.animate(r,o,e.duration,e.delay,e.easing,[],!0)}create(e,i,n={}){let r=[],o=this._animations.get(e),s,a=new Map;if(o?(s=b0(this._driver,i,o,m0,Ih,new Map,new Map,n,UN,r),s.forEach(u=>{let d=Dt(a,u.element,new Map);u.postStyleProps.forEach(h=>d.set(h,null))})):(r.push(nN()),s=[]),r.length)throw iN(r);a.forEach((u,d)=>{u.forEach((h,f)=>{u.set(f,this._driver.computeStyle(d,f,yn))})});let l=s.map(u=>{let d=a.get(u.element);return this._buildPlayer(u,new Map,d)}),c=di(l);return this._playersById.set(e,c),c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){let i=this._getPlayer(e);i.destroy(),this._playersById.delete(e);let n=this.players.indexOf(i);n>=0&&this.players.splice(n,1)}_getPlayer(e){let i=this._playersById.get(e);if(!i)throw rN(e);return i}listen(e,i,n,r){let o=$h(i,"","","");return Uh(this._getPlayer(e),n,o,r),()=>{}}command(e,i,n,r){if(n=="register"){this.register(e,r[0]);return}if(n=="create"){let s=r[0]||{};this.create(e,i,s);return}let o=this._getPlayer(e);switch(n){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(e);break}}},s0="ng-animate-queued",$N=".ng-animate-queued",Dh="ng-animate-disabled",HN=".ng-animate-disabled",zN="ng-star-inserted",WN=".ng-star-inserted",GN=[],w0={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},qN={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Zt="__ng_removed",cs=class{get params(){return this.options.params}constructor(e,i=""){this.namespaceId=i;let n=e&&e.hasOwnProperty("value"),r=n?e.value:e;if(this.value=ZN(r),n){let o=e,{value:s}=o,a=gu(o,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let i=e.params;if(i){let n=this.options.params;Object.keys(i).forEach(r=>{n[r]==null&&(n[r]=i[r])})}}},ss="void",Eh=new cs(ss),Lh=class{constructor(e,i,n){this.id=e,this.hostElement=i,this._engine=n,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Lt(i,this._hostClassName)}listen(e,i,n,r){if(!this._triggers.has(i))throw oN(n,i);if(n==null||n.length==0)throw sN(i);if(!KN(n))throw aN(n,i);let o=Dt(this._elementListeners,e,[]),s={name:i,phase:n,callback:r};o.push(s);let a=Dt(this._engine.statesByElement,e,new Map);return a.has(i)||(Lt(e,oc),Lt(e,oc+"-"+i),a.set(i,Eh)),()=>{this._engine.afterFlush(()=>{let l=o.indexOf(s);l>=0&&o.splice(l,1),this._triggers.has(i)||a.delete(i)})}}register(e,i){return this._triggers.has(e)?!1:(this._triggers.set(e,i),!0)}_getTrigger(e){let i=this._triggers.get(e);if(!i)throw lN(e);return i}trigger(e,i,n,r=!0){let o=this._getTrigger(i),s=new us(this.id,i,e),a=this._engine.statesByElement.get(e);a||(Lt(e,oc),Lt(e,oc+"-"+i),this._engine.statesByElement.set(e,a=new Map));let l=a.get(i),c=new cs(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(i,c),l||(l=Eh),!(c.value===ss)&&l.value===c.value){if(!JN(l.params,c.params)){let v=[],w=o.matchStyles(l.value,l.params,v),S=o.matchStyles(c.value,c.params,v);v.length?this._engine.reportError(v):this._engine.afterFlush(()=>{Qi(e,w),bn(e,S)})}return}let h=Dt(this._engine.playersByElement,e,[]);h.forEach(v=>{v.namespaceId==this.id&&v.triggerName==i&&v.queued&&v.destroy()});let f=o.matchTransition(l.value,c.value,e,c.params),p=!1;if(!f){if(!r)return;f=o.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:i,transition:f,fromState:l,toState:c,player:s,isFallbackTransition:p}),p||(Lt(e,s0),s.onStart(()=>{Gr(e,s0)})),s.onDone(()=>{let v=this.players.indexOf(s);v>=0&&this.players.splice(v,1);let w=this._engine.playersByElement.get(e);if(w){let S=w.indexOf(s);S>=0&&w.splice(S,1)}}),this.players.push(s),h.push(s),s}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(i=>i.delete(e)),this._elementListeners.forEach((i,n)=>{this._elementListeners.set(n,i.filter(r=>r.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let i=this._engine.playersByElement.get(e);i&&(i.forEach(n=>n.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,i){let n=this._engine.driver.query(e,uc,!0);n.forEach(r=>{if(r[Zt])return;let o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(s=>s.triggerLeaveAnimation(r,i,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(e,i,n,r){let o=this._engine.statesByElement.get(e),s=new Map;if(o){let a=[];if(o.forEach((l,c)=>{if(s.set(c,l.value),this._triggers.has(c)){let u=this.trigger(e,c,ss,r);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,i,s),n&&di(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let i=this._elementListeners.get(e),n=this._engine.statesByElement.get(e);if(i&&n){let r=new Set;i.forEach(o=>{let s=o.name;if(r.has(s))return;r.add(s);let l=this._triggers.get(s).fallbackTransition,c=n.get(s)||Eh,u=new cs(ss),d=new us(this.id,s,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:s,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(e,i){let n=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,i),this.triggerLeaveAnimation(e,i,!0))return;let r=!1;if(n.totalAnimations){let o=n.players.length?n.playersByQueriedElement.get(e):[];if(o&&o.length)r=!0;else{let s=e;for(;s=s.parentNode;)if(n.statesByElement.get(s)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(e),r)n.markElementAsRemoved(this.id,e,!1,i);else{let o=e[Zt];(!o||o===w0)&&(n.afterFlush(()=>this.clearElementCache(e)),n.destroyInnerAnimations(e),n._onRemovalComplete(e,i))}}insertNode(e,i){Lt(e,this._hostClassName)}drainQueuedTransitions(e){let i=[];return this._queue.forEach(n=>{let r=n.player;if(r.destroyed)return;let o=n.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==n.triggerName){let l=$h(o,n.triggerName,n.fromState.value,n.toState.value);l._data=e,Uh(n.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):i.push(n)}),this._queue=[],i.sort((n,r)=>{let o=n.transition.ast.depCount,s=r.transition.ast.depCount;return o==0||s==0?o-s:this._engine.driver.containsElement(n.element,r.element)?1:-1})}destroy(e){this.players.forEach(i=>i.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},jh=class{_onRemovalComplete(e,i){this.onRemovalComplete(e,i)}constructor(e,i,n){this.bodyNode=e,this.driver=i,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,o)=>{}}get queuedPlayers(){let e=[];return this._namespaceList.forEach(i=>{i.players.forEach(n=>{n.queued&&e.push(n)})}),e}createNamespace(e,i){let n=new Lh(e,i,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,i)?this._balanceNamespaceList(n,i):(this.newHostElements.set(i,n),this.collectEnterElement(i)),this._namespaceLookup[e]=n}_balanceNamespaceList(e,i){let n=this._namespaceList,r=this.namespacesByHostElement;if(n.length-1>=0){let s=!1,a=this.driver.getParentElement(i);for(;a;){let l=r.get(a);if(l){let c=n.indexOf(l);n.splice(c+1,0,e),s=!0;break}a=this.driver.getParentElement(a)}s||n.unshift(e)}else n.push(e);return r.set(i,e),e}register(e,i){let n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,i)),n}registerTrigger(e,i,n){let r=this._namespaceLookup[e];r&&r.register(i,n)&&this.totalAnimations++}destroy(e,i){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let n=this._fetchNamespace(e);this.namespacesByHostElement.delete(n.hostElement);let r=this._namespaceList.indexOf(n);r>=0&&this._namespaceList.splice(r,1),n.destroy(i),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let i=new Set,n=this.statesByElement.get(e);if(n){for(let r of n.values())if(r.namespaceId){let o=this._fetchNamespace(r.namespaceId);o&&i.add(o)}}return i}trigger(e,i,n,r){if(lc(i)){let o=this._fetchNamespace(e);if(o)return o.trigger(i,n,r),!0}return!1}insertNode(e,i,n,r){if(!lc(i))return;let o=i[Zt];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;let s=this.collectedLeaveElements.indexOf(i);s>=0&&this.collectedLeaveElements.splice(s,1)}if(e){let s=this._fetchNamespace(e);s&&s.insertNode(i,n)}r&&this.collectEnterElement(i)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,i){i?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Lt(e,Dh)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Gr(e,Dh))}removeNode(e,i,n){if(lc(i)){let r=e?this._fetchNamespace(e):null;r?r.removeNode(i,n):this.markElementAsRemoved(e,i,!1,n);let o=this.namespacesByHostElement.get(i);o&&o.id!==e&&o.removeNode(i,n)}else this._onRemovalComplete(i,n)}markElementAsRemoved(e,i,n,r,o){this.collectedLeaveElements.push(i),i[Zt]={namespaceId:e,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:o}}listen(e,i,n,r,o){return lc(i)?this._fetchNamespace(e).listen(i,n,r,o):()=>{}}_buildInstruction(e,i,n,r,o){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,r,e.fromState.options,e.toState.options,i,o)}destroyInnerAnimations(e){let i=this.driver.query(e,uc,!0);i.forEach(n=>this.destroyActiveAnimationsForElement(n)),this.playersByQueriedElement.size!=0&&(i=this.driver.query(e,xh,!0),i.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(e){let i=this.playersByElement.get(e);i&&i.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(e){let i=this.playersByQueriedElement.get(e);i&&i.forEach(n=>n.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return di(this.players).onDone(()=>e());e()})}processLeaveNode(e){let i=e[Zt];if(i&&i.setForRemoval){if(e[Zt]=w0,i.namespaceId){this.destroyInnerAnimations(e);let n=this._fetchNamespace(i.namespaceId);n&&n.clearElementCache(e)}this._onRemovalComplete(e,i.setForRemoval)}e.classList?.contains(Dh)&&this.markElementAsDisabled(e,!1),this.driver.query(e,HN,!0).forEach(n=>{this.markElementAsDisabled(n,!1)})}flush(e=-1){let i=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,r)=>this._balanceNamespaceList(n,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;nn()),this._flushFns=[],this._whenQuietFns.length){let n=this._whenQuietFns;this._whenQuietFns=[],i.length?di(i).onDone(()=>{n.forEach(r=>r())}):n.forEach(r=>r())}}reportError(e){throw cN(e)}_flushAnimations(e,i){let n=new ls,r=[],o=new Map,s=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(T=>{u.add(T);let F=this.driver.query(T,$N,!0);for(let j=0;j{let j=m0+v++;p.set(F,j),T.forEach(le=>Lt(le,j))});let w=[],S=new Set,k=new Set;for(let T=0;TS.add(le)):k.add(F))}let Z=new Map,U=c0(h,Array.from(S));U.forEach((T,F)=>{let j=Ih+v++;Z.set(F,j),T.forEach(le=>Lt(le,j))}),e.push(()=>{f.forEach((T,F)=>{let j=p.get(F);T.forEach(le=>Gr(le,j))}),U.forEach((T,F)=>{let j=Z.get(F);T.forEach(le=>Gr(le,j))}),w.forEach(T=>{this.processLeaveNode(T)})});let Ve=[],ce=[];for(let T=this._namespaceList.length-1;T>=0;T--)this._namespaceList[T].drainQueuedTransitions(i).forEach(j=>{let le=j.player,ze=j.element;if(Ve.push(le),this.collectedEnterElements.length){let Ke=ze[Zt];if(Ke&&Ke.setForMove){if(Ke.previousTriggersValues&&Ke.previousTriggersValues.has(j.triggerName)){let _i=Ke.previousTriggersValues.get(j.triggerName),It=this.statesByElement.get(j.element);if(It&&It.has(j.triggerName)){let $s=It.get(j.triggerName);$s.value=_i,It.set(j.triggerName,$s)}}le.destroy();return}}let Jt=!d||!this.driver.containsElement(d,ze),gt=Z.get(ze),qn=p.get(ze),xe=this._buildInstruction(j,n,qn,gt,Jt);if(xe.errors&&xe.errors.length){ce.push(xe);return}if(Jt){le.onStart(()=>Qi(ze,xe.fromStyles)),le.onDestroy(()=>bn(ze,xe.toStyles)),r.push(le);return}if(j.isFallbackTransition){le.onStart(()=>Qi(ze,xe.fromStyles)),le.onDestroy(()=>bn(ze,xe.toStyles)),r.push(le);return}let ym=[];xe.timelines.forEach(Ke=>{Ke.stretchStartingKeyframe=!0,this.disabledNodes.has(Ke.element)||ym.push(Ke)}),xe.timelines=ym,n.append(ze,xe.timelines);let rE={instruction:xe,player:le,element:ze};s.push(rE),xe.queriedElements.forEach(Ke=>Dt(a,Ke,[]).push(le)),xe.preStyleProps.forEach((Ke,_i)=>{if(Ke.size){let It=l.get(_i);It||l.set(_i,It=new Set),Ke.forEach(($s,mu)=>It.add(mu))}}),xe.postStyleProps.forEach((Ke,_i)=>{let It=c.get(_i);It||c.set(_i,It=new Set),Ke.forEach(($s,mu)=>It.add(mu))})});if(ce.length){let T=[];ce.forEach(F=>{T.push(uN(F.triggerName,F.errors))}),Ve.forEach(F=>F.destroy()),this.reportError(T)}let ge=new Map,Re=new Map;s.forEach(T=>{let F=T.element;n.has(F)&&(Re.set(F,F),this._beforeAnimationBuild(T.player.namespaceId,T.instruction,ge))}),r.forEach(T=>{let F=T.element;this._getPreviousPlayers(F,!1,T.namespaceId,T.triggerName,null).forEach(le=>{Dt(ge,F,[]).push(le),le.destroy()})});let Dn=w.filter(T=>u0(T,l,c)),sr=new Map;l0(sr,this.driver,k,c,yn).forEach(T=>{u0(T,l,c)&&Dn.push(T)});let bi=new Map;f.forEach((T,F)=>{l0(bi,this.driver,new Set(T),l,rc)}),Dn.forEach(T=>{let F=sr.get(T),j=bi.get(T);sr.set(T,new Map([...F?.entries()??[],...j?.entries()??[]]))});let pu=[],gm=[],vm={};s.forEach(T=>{let{element:F,player:j,instruction:le}=T;if(n.has(F)){if(u.has(F)){j.onDestroy(()=>bn(F,le.toStyles)),j.disabled=!0,j.overrideTotalTime(le.totalTime),r.push(j);return}let ze=vm;if(Re.size>1){let gt=F,qn=[];for(;gt=gt.parentNode;){let xe=Re.get(gt);if(xe){ze=xe;break}qn.push(gt)}qn.forEach(xe=>Re.set(xe,ze))}let Jt=this._buildAnimation(j.namespaceId,le,ge,o,bi,sr);if(j.setRealPlayer(Jt),ze===vm)pu.push(j);else{let gt=this.playersByElement.get(ze);gt&>.length&&(j.parentPlayer=di(gt)),r.push(j)}}else Qi(F,le.fromStyles),j.onDestroy(()=>bn(F,le.toStyles)),gm.push(j),u.has(F)&&r.push(j)}),gm.forEach(T=>{let F=o.get(T.element);if(F&&F.length){let j=di(F);T.setRealPlayer(j)}}),r.forEach(T=>{T.parentPlayer?T.syncPlayerEvents(T.parentPlayer):T.destroy()});for(let T=0;T!Jt.destroyed);ze.length?YN(this,F,ze):this.processLeaveNode(F)}return w.length=0,pu.forEach(T=>{this.players.push(T),T.onDone(()=>{T.destroy();let F=this.players.indexOf(T);this.players.splice(F,1)}),T.play()}),pu}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,i,n,r,o){let s=[];if(i){let a=this.playersByQueriedElement.get(e);a&&(s=a)}else{let a=this.playersByElement.get(e);if(a){let l=!o||o==ss;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||s.push(c)})}}return(n||r)&&(s=s.filter(a=>!(n&&n!=a.namespaceId||r&&r!=a.triggerName))),s}_beforeAnimationBuild(e,i,n){let r=i.triggerName,o=i.element,s=i.isRemovalTransition?void 0:e,a=i.isRemovalTransition?void 0:r;for(let l of i.timelines){let c=l.element,u=c!==o,d=Dt(n,c,[]);this._getPreviousPlayers(c,u,s,a,i.toState).forEach(f=>{let p=f.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),f.destroy(),d.push(f)})}Qi(o,i.fromStyles)}_buildAnimation(e,i,n,r,o,s){let a=i.triggerName,l=i.element,c=[],u=new Set,d=new Set,h=i.timelines.map(p=>{let v=p.element;u.add(v);let w=v[Zt];if(w&&w.removedBeforeQueried)return new ui(p.duration,p.delay);let S=v!==l,k=XN((n.get(v)||GN).map(ge=>ge.getRealPlayer())).filter(ge=>{let Re=ge;return Re.element?Re.element===v:!1}),Z=o.get(v),U=s.get(v),Ve=d0(this._normalizer,p.keyframes,Z,U),ce=this._buildPlayer(p,Ve,k);if(p.subTimeline&&r&&d.add(v),S){let ge=new us(e,a,v);ge.setRealPlayer(ce),c.push(ge)}return ce});c.forEach(p=>{Dt(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>QN(this.playersByQueriedElement,p.element,p))}),u.forEach(p=>Lt(p,e0));let f=di(h);return f.onDestroy(()=>{u.forEach(p=>Gr(p,e0)),bn(l,i.toStyles)}),d.forEach(p=>{Dt(r,p,[]).push(f)}),f}_buildPlayer(e,i,n){return i.length>0?this.driver.animate(e.element,i,e.duration,e.delay,e.easing,n):new ui(e.duration,e.delay)}},us=class{constructor(e,i,n){this.namespaceId=e,this.triggerName=i,this.element=n,this._player=new ui,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((i,n)=>{i.forEach(r=>Uh(e,n,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let i=this._player;i.triggerCallback&&e.onStart(()=>i.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,i){Dt(this._queuedCallbacks,e,[]).push(i)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let i=this._player;i.triggerCallback&&i.triggerCallback(e)}};function QN(t,e,i){let n=t.get(e);if(n){if(n.length){let r=n.indexOf(i);n.splice(r,1)}n.length==0&&t.delete(e)}return n}function ZN(t){return t??null}function lc(t){return t&&t.nodeType===1}function KN(t){return t=="start"||t=="done"}function a0(t,e){let i=t.style.display;return t.style.display=e??"none",i}function l0(t,e,i,n,r){let o=[];i.forEach(l=>o.push(a0(l)));let s=[];n.forEach((l,c)=>{let u=new Map;l.forEach(d=>{let h=e.computeStyle(c,d,r);u.set(d,h),(!h||h.length==0)&&(c[Zt]=qN,s.push(c))}),t.set(c,u)});let a=0;return i.forEach(l=>a0(l,o[a++])),s}function c0(t,e){let i=new Map;if(t.forEach(a=>i.set(a,[])),e.length==0)return i;let n=1,r=new Set(e),o=new Map;function s(a){if(!a)return n;let l=o.get(a);if(l)return l;let c=a.parentNode;return i.has(c)?l=c:r.has(c)?l=n:l=s(c),o.set(a,l),l}return e.forEach(a=>{let l=s(a);l!==n&&i.get(l).push(a)}),i}function Lt(t,e){t.classList?.add(e)}function Gr(t,e){t.classList?.remove(e)}function YN(t,e,i){di(i).onDone(()=>t.processLeaveNode(e))}function XN(t){let e=[];return D0(t,e),e}function D0(t,e){for(let i=0;ir.add(o)):e.set(t,n),i.delete(t),!0}var Qr=class{constructor(e,i,n){this._driver=i,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new jh(e.body,i,n),this._timelineEngine=new Ph(e.body,i,n),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(e,i,n,r,o){let s=e+"-"+r,a=this._triggerCache[s];if(!a){let l=[],c=[],u=y0(this._driver,o,l,c);if(l.length)throw JA(r,l);c.length&&void 0,a=VN(r,u,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(i,r,a)}register(e,i){this._transitionEngine.register(e,i)}destroy(e,i){this._transitionEngine.destroy(e,i)}onInsert(e,i,n,r){this._transitionEngine.insertNode(e,i,n,r)}onRemove(e,i,n){this._transitionEngine.removeNode(e,i,n)}disableAnimations(e,i){this._transitionEngine.markElementAsDisabled(e,i)}process(e,i,n,r){if(n.charAt(0)=="@"){let[o,s]=X_(n),a=r;this._timelineEngine.command(o,i,s,a)}else this._transitionEngine.trigger(e,i,n,r)}listen(e,i,n,r,o){if(n.charAt(0)=="@"){let[s,a]=X_(n);return this._timelineEngine.listen(s,i,a,o)}return this._transitionEngine.listen(e,i,n,r,o)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function eR(t,e){let i=null,n=null;return Array.isArray(e)&&e.length?(i=Ch(e[0]),e.length>1&&(n=Ch(e[e.length-1]))):e instanceof Map&&(i=Ch(e)),i||n?new Vh(t,i,n):null}var qr=class qr{constructor(e,i,n){this._element=e,this._startStyles=i,this._endStyles=n,this._state=0;let r=qr.initialStylesByElement.get(e);r||qr.initialStylesByElement.set(e,r=new Map),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&bn(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(bn(this._element,this._initialStyles),this._endStyles&&(bn(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(qr.initialStylesByElement.delete(this._element),this._startStyles&&(Qi(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Qi(this._element,this._endStyles),this._endStyles=null),bn(this._element,this._initialStyles),this._state=3)}};qr.initialStylesByElement=new WeakMap;var Vh=qr;function Ch(t){let e=null;return t.forEach((i,n)=>{tR(n)&&(e=e||new Map,e.set(n,i))}),e}function tR(t){return t==="display"||t==="position"}var vc=class{constructor(e,i,n,r){this.element=e,this.keyframes=i,this.options=n,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let i=()=>this._onFinish();this.domPlayer.addEventListener("finish",i),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",i)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let i=[];return e.forEach(n=>{i.push(Object.fromEntries(n))}),i}_triggerWebAnimation(e,i,n){return e.animate(this._convertKeyframesToObject(i),n)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((n,r)=>{r!=="offset"&&e.set(r,this._finished?n:Gh(this.element,r))}),this.currentSnapshot=e}triggerCallback(e){let i=e==="start"?this._onStartFns:this._onDoneFns;i.forEach(n=>n()),i.length=0}},yc=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,i){return f0(e,i)}getParentElement(e){return Hh(e)}query(e,i,n){return h0(e,i,n)}computeStyle(e,i,n){return Gh(e,i)}animate(e,i,n,r,o,s=[]){let a=r==0?"both":"forwards",l={duration:n,delay:r,fill:a};o&&(l.easing=o);let c=new Map,u=s.filter(f=>f instanceof vc);wN(n,r)&&u.forEach(f=>{f.currentSnapshot.forEach((p,v)=>c.set(v,p))});let d=yN(i).map(f=>new Map(f));d=DN(e,d,c);let h=eR(e,d);return new vc(e,d,l,h)}};var cc="@",E0="@.disabled",bc=class{constructor(e,i,n,r){this.namespaceId=e,this.delegate=i,this.engine=n,this._onDestroy=r,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,i){return this.delegate.createElement(e,i)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,i){this.delegate.appendChild(e,i),this.engine.onInsert(this.namespaceId,i,e,!1)}insertBefore(e,i,n,r=!0){this.delegate.insertBefore(e,i,n),this.engine.onInsert(this.namespaceId,i,e,r)}removeChild(e,i,n){this.parentNode(i)&&this.engine.onRemove(this.namespaceId,i,this.delegate)}selectRootElement(e,i){return this.delegate.selectRootElement(e,i)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,i,n,r){this.delegate.setAttribute(e,i,n,r)}removeAttribute(e,i,n){this.delegate.removeAttribute(e,i,n)}addClass(e,i){this.delegate.addClass(e,i)}removeClass(e,i){this.delegate.removeClass(e,i)}setStyle(e,i,n,r){this.delegate.setStyle(e,i,n,r)}removeStyle(e,i,n){this.delegate.removeStyle(e,i,n)}setProperty(e,i,n){i.charAt(0)==cc&&i==E0?this.disableAnimations(e,!!n):this.delegate.setProperty(e,i,n)}setValue(e,i){this.delegate.setValue(e,i)}listen(e,i,n){return this.delegate.listen(e,i,n)}disableAnimations(e,i){this.engine.disableAnimations(e,i)}},Bh=class extends bc{constructor(e,i,n,r,o){super(i,n,r,o),this.factory=e,this.namespaceId=i}setProperty(e,i,n){i.charAt(0)==cc?i.charAt(1)=="."&&i==E0?(n=n===void 0?!0:!!n,this.disableAnimations(e,n)):this.engine.process(this.namespaceId,e,i.slice(1),n):this.delegate.setProperty(e,i,n)}listen(e,i,n){if(i.charAt(0)==cc){let r=nR(e),o=i.slice(1),s="";return o.charAt(0)!=cc&&([o,s]=iR(o)),this.engine.listen(this.namespaceId,r,o,s,a=>{let l=a._data||-1;this.factory.scheduleListenerCallback(l,n,a)})}return this.delegate.listen(e,i,n)}};function nR(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}function iR(t){let e=t.indexOf("."),i=t.substring(0,e),n=t.slice(e+1);return[i,n]}var _c=class{constructor(e,i,n){this.delegate=e,this.engine=i,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,i.onRemovalComplete=(r,o)=>{o?.removeChild(null,r)}}createRenderer(e,i){let n="",r=this.delegate.createRenderer(e,i);if(!e||!i?.data?.animation){let c=this._rendererCache,u=c.get(r);if(!u){let d=()=>c.delete(r);u=new bc(n,r,this.engine,d),c.set(r,u)}return u}let o=i.id,s=i.id+"-"+this._currentId;this._currentId++,this.engine.register(s,e);let a=c=>{Array.isArray(c)?c.forEach(a):this.engine.registerTrigger(o,s,e,c.name,c)};return i.data.animation.forEach(a),new Bh(this,s,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,n){if(e>=0&&ei(n));return}let r=this._animationCallbacksBuffer;r.length==0&&queueMicrotask(()=>{this._zone.run(()=>{r.forEach(o=>{let[s,a]=o;s(a)}),this._animationCallbacksBuffer=[]})}),r.push([i,n])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}};var oR=(()=>{let e=class e extends Qr{constructor(n,r,o){super(n,r,o)}ngOnDestroy(){this.flush()}};e.\u0275fac=function(r){return new(r||e)(y(ae),y(Zi),y(Ki))},e.\u0275prov=E({token:e,factory:e.\u0275fac});let t=e;return t})();function sR(){return new fc}function aR(t,e,i){return new _c(t,e,i)}var I0=[{provide:Ki,useFactory:sR},{provide:Qr,useClass:oR},{provide:ii,useFactory:aR,deps:[tc,Qr,R]}],C0=[{provide:Zi,useFactory:()=>new yc},{provide:Gt,useValue:"BrowserAnimations"},...I0],lR=[{provide:Zi,useClass:zh},{provide:Gt,useValue:"NoopAnimations"},...I0],x0=(()=>{let e=class e{static withConfig(n){return{ngModule:e,providers:n.disableAnimations?lR:C0}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=ne({type:e}),e.\u0275inj=te({providers:C0,imports:[ic]});let t=e;return t})();var k0=(()=>{let e=class e{constructor(n,r){this._renderer=n,this._elementRef=r,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}};e.\u0275fac=function(r){return new(r||e)(m(Pn),m(Y))},e.\u0275dir=W({type:e});let t=e;return t})(),cR=(()=>{let e=class e extends k0{};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Fr(e)))(o||e)}})(),e.\u0275dir=W({type:e,features:[lt]});let t=e;return t})(),F0=new x("");var uR={provide:F0,useExisting:fn(()=>pi),multi:!0};function dR(){let t=vn()?vn().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var fR=new x(""),pi=(()=>{let e=class e extends k0{constructor(n,r,o){super(n,r),this._compositionMode=o,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!dR())}writeValue(n){let r=n??"";this.setProperty("value",r)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}};e.\u0275fac=function(r){return new(r||e)(m(Pn),m(Y),m(fR,8))},e.\u0275dir=W({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(r,o){r&1&&re("input",function(a){return o._handleInput(a.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(a){return o._compositionEnd(a.target.value)})},features:[Ze([uR]),lt]});let t=e;return t})();function fi(t){return t==null||(typeof t=="string"||Array.isArray(t))&&t.length===0}function P0(t){return t!=null&&typeof t.length=="number"}var gs=new x(""),vs=new x(""),hR=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Dc=class{static min(e){return pR(e)}static max(e){return mR(e)}static required(e){return gR(e)}static requiredTrue(e){return vR(e)}static email(e){return yR(e)}static minLength(e){return bR(e)}static maxLength(e){return _R(e)}static pattern(e){return wR(e)}static nullValidator(e){return L0(e)}static compose(e){return H0(e)}static composeAsync(e){return z0(e)}};function pR(t){return e=>{if(fi(e.value)||fi(t))return null;let i=parseFloat(e.value);return!isNaN(i)&&i{if(fi(e.value)||fi(t))return null;let i=parseFloat(e.value);return!isNaN(i)&&i>t?{max:{max:t,actual:e.value}}:null}}function gR(t){return fi(t.value)?{required:!0}:null}function vR(t){return t.value===!0?null:{required:!0}}function yR(t){return fi(t.value)||hR.test(t.value)?null:{email:!0}}function bR(t){return e=>fi(e.value)||!P0(e.value)?null:e.value.lengthP0(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}function wR(t){if(!t)return L0;let e,i;return typeof t=="string"?(i="",t.charAt(0)!=="^"&&(i+="^"),i+=t,t.charAt(t.length-1)!=="$"&&(i+="$"),e=new RegExp(i)):(i=t.toString(),e=t),n=>{if(fi(n.value))return null;let r=n.value;return e.test(r)?null:{pattern:{requiredPattern:i,actualValue:r}}}}function L0(t){return null}function j0(t){return t!=null}function V0(t){return zi(t)?ve(t):t}function B0(t){let e={};return t.forEach(i=>{e=i!=null?b(b({},e),i):e}),Object.keys(e).length===0?null:e}function U0(t,e){return e.map(i=>i(t))}function DR(t){return!t.validate}function $0(t){return t.map(e=>DR(e)?e:i=>e.validate(i))}function H0(t){if(!t)return null;let e=t.filter(j0);return e.length==0?null:function(i){return B0(U0(i,e))}}function Jh(t){return t!=null?H0($0(t)):null}function z0(t){if(!t)return null;let e=t.filter(j0);return e.length==0?null:function(i){let n=U0(i,e).map(V0);return Do(n).pipe(N(B0))}}function ep(t){return t!=null?z0($0(t)):null}function S0(t,e){return t===null?[e]:Array.isArray(t)?[...t,e]:[t,e]}function W0(t){return t._rawValidators}function G0(t){return t._rawAsyncValidators}function Zh(t){return t?Array.isArray(t)?t:[t]:[]}function Ec(t,e){return Array.isArray(t)?t.includes(e):t===e}function T0(t,e){let i=Zh(e);return Zh(t).forEach(r=>{Ec(i,r)||i.push(r)}),i}function M0(t,e){return Zh(e).filter(i=>!Ec(t,i))}var Cc=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=Jh(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=ep(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,i){return this.control?this.control.hasError(e,i):!1}getError(e,i){return this.control?this.control.getError(e,i):null}},ct=class extends Cc{get formDirective(){return null}get path(){return null}},Yi=class extends Cc{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},Kh=class{constructor(e){this._cd=e}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},ER={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},LH=ie(b({},ER),{"[class.ng-submitted]":"isSubmitted"}),Yr=(()=>{let e=class e extends Kh{constructor(n){super(n)}};e.\u0275fac=function(r){return new(r||e)(m(Yi,2))},e.\u0275dir=W({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,o){r&2&&Ie("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[lt]});let t=e;return t})();var ds="VALID",wc="INVALID",Zr="PENDING",fs="DISABLED",hi=class{},Ic=class extends hi{constructor(e,i){super(),this.value=e,this.source=i}},ps=class extends hi{constructor(e,i){super(),this.pristine=e,this.source=i}},ms=class extends hi{constructor(e,i){super(),this.touched=e,this.source=i}},Kr=class extends hi{constructor(e,i){super(),this.status=e,this.source=i}},Yh=class extends hi{constructor(e){super(),this.source=e}},Xh=class extends hi{constructor(e){super(),this.source=e}};function q0(t){return(Nc(t)?t.validators:t)||null}function CR(t){return Array.isArray(t)?Jh(t):t||null}function Q0(t,e){return(Nc(e)?e.asyncValidators:t)||null}function IR(t){return Array.isArray(t)?ep(t):t||null}function Nc(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function xR(t,e,i){let n=t.controls;if(!(e?Object.keys(n):n).length)throw new _(1e3,"");if(!n[i])throw new _(1001,"")}function SR(t,e,i){t._forEachChild((n,r)=>{if(i[r]===void 0)throw new _(1002,"")})}var xc=class{constructor(e,i){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=Vn(()=>this.statusReactive()),this.statusReactive=Hi(void 0),this._pristine=Vn(()=>this.pristineReactive()),this.pristineReactive=Hi(!0),this._touched=Vn(()=>this.touchedReactive()),this.touchedReactive=Hi(!1),this._events=new V,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(i)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get status(){return gn(this.statusReactive)}set status(e){gn(()=>this.statusReactive.set(e))}get valid(){return this.status===ds}get invalid(){return this.status===wc}get pending(){return this.status==Zr}get disabled(){return this.status===fs}get enabled(){return this.status!==fs}get pristine(){return gn(this.pristineReactive)}set pristine(e){gn(()=>this.pristineReactive.set(e))}get dirty(){return!this.pristine}get touched(){return gn(this.touchedReactive)}set touched(e){gn(()=>this.touchedReactive.set(e))}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(T0(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(T0(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(M0(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(M0(e,this._rawAsyncValidators))}hasValidator(e){return Ec(this._rawValidators,e)}hasAsyncValidator(e){return Ec(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){let i=this.touched===!1;this.touched=!0;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsTouched(ie(b({},e),{sourceControl:n})),i&&e.emitEvent!==!1&&this._events.next(new ms(!0,n))}markAllAsTouched(e={}){this.markAsTouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(i=>i.markAllAsTouched(e))}markAsUntouched(e={}){let i=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let n=e.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:n})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,n),i&&e.emitEvent!==!1&&this._events.next(new ms(!1,n))}markAsDirty(e={}){let i=this.pristine===!0;this.pristine=!1;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsDirty(ie(b({},e),{sourceControl:n})),i&&e.emitEvent!==!1&&this._events.next(new ps(!1,n))}markAsPristine(e={}){let i=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let n=e.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:e.emitEvent})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e,n),i&&e.emitEvent!==!1&&this._events.next(new ps(!0,n))}markAsPending(e={}){this.status=Zr;let i=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Kr(this.status,i)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending(ie(b({},e),{sourceControl:i}))}disable(e={}){let i=this._parentMarkedDirty(e.onlySelf);this.status=fs,this.errors=null,this._forEachChild(r=>{r.disable(ie(b({},e),{onlySelf:!0}))}),this._updateValue();let n=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Ic(this.value,n)),this._events.next(new Kr(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(ie(b({},e),{skipPristineCheck:i}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(e={}){let i=this._parentMarkedDirty(e.onlySelf);this.status=ds,this._forEachChild(n=>{n.enable(ie(b({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(ie(b({},e),{skipPristineCheck:i}),this),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(e,i){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine({},i),this._parent._updateTouched({},i))}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let n=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ds||this.status===Zr)&&this._runAsyncValidator(n,e.emitEvent)}let i=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Ic(this.value,i)),this._events.next(new Kr(this.status,i)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(ie(b({},e),{sourceControl:i}))}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(i=>i._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?fs:ds}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,i){if(this.asyncValidator){this.status=Zr,this._hasOwnPendingAsyncValidator={emitEvent:i!==!1};let n=V0(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{emitEvent:i,shouldHaveEmitted:e})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let e=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,e}return!1}setErrors(e,i={}){this.errors=e,this._updateControlsErrors(i.emitEvent!==!1,this,i.shouldHaveEmitted)}get(e){let i=e;return i==null||(Array.isArray(i)||(i=i.split(".")),i.length===0)?null:i.reduce((n,r)=>n&&n._find(r),this)}getError(e,i){let n=i?this.get(i):this;return n&&n.errors?n.errors[e]:null}hasError(e,i){return!!this.getError(e,i)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e,i,n){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),(e||n)&&this._events.next(new Kr(this.status,i)),this._parent&&this._parent._updateControlsErrors(e,i,n)}_initObservables(){this.valueChanges=new J,this.statusChanges=new J}_calculateStatus(){return this._allControlsDisabled()?fs:this.errors?wc:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Zr)?Zr:this._anyControlsHaveStatus(wc)?wc:ds}_anyControlsHaveStatus(e){return this._anyControls(i=>i.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e,i){let n=!this._anyControlsDirty(),r=this.pristine!==n;this.pristine=n,this._parent&&!e.onlySelf&&this._parent._updatePristine(e,i),r&&this._events.next(new ps(this.pristine,i))}_updateTouched(e={},i){this.touched=this._anyControlsTouched(),this._events.next(new ms(this.touched,i)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,i)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){Nc(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let i=this._parent&&this._parent.dirty;return!e&&!!i&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=CR(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=IR(this._rawAsyncValidators)}},Sc=class extends xc{constructor(e,i,n){super(q0(i),Q0(n,i)),this.controls=e,this._initObservables(),this._setUpdateStrategy(i),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,i){return this.controls[e]?this.controls[e]:(this.controls[e]=i,i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange),i)}addControl(e,i,n={}){this.registerControl(e,i),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(e,i={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}setControl(e,i,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],i&&this.registerControl(e,i),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,i={}){SR(this,!0,e),Object.keys(e).forEach(n=>{xR(this,!0,n),this.controls[n].setValue(e[n],{onlySelf:!0,emitEvent:i.emitEvent})}),this.updateValueAndValidity(i)}patchValue(e,i={}){e!=null&&(Object.keys(e).forEach(n=>{let r=this.controls[n];r&&r.patchValue(e[n],{onlySelf:!0,emitEvent:i.emitEvent})}),this.updateValueAndValidity(i))}reset(e={},i={}){this._forEachChild((n,r)=>{n.reset(e?e[r]:null,{onlySelf:!0,emitEvent:i.emitEvent})}),this._updatePristine(i,this),this._updateTouched(i,this),this.updateValueAndValidity(i)}getRawValue(){return this._reduceChildren({},(e,i,n)=>(e[n]=i.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(i,n)=>n._syncPendingControls()?!0:i);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(i=>{let n=this.controls[i];n&&e(n,i)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(let[i,n]of Object.entries(this.controls))if(this.contains(i)&&e(n))return!0;return!1}_reduceValue(){let e={};return this._reduceChildren(e,(i,n,r)=>((n.enabled||this.disabled)&&(i[r]=n.value),i))}_reduceChildren(e,i){let n=e;return this._forEachChild((r,o)=>{n=i(n,r,o)}),n}_allControlsDisabled(){for(let e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return this.controls.hasOwnProperty(e)?this.controls[e]:null}};var Rc=new x("CallSetDisabledState",{providedIn:"root",factory:()=>tp}),tp="always";function np(t,e){return[...e.path,t]}function Tc(t,e,i=tp){ip(t,e),e.valueAccessor.writeValue(t.value),(t.disabled||i==="always")&&e.valueAccessor.setDisabledState?.(t.disabled),MR(t,e),NR(t,e),AR(t,e),TR(t,e)}function A0(t,e,i=!0){let n=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(n),e.valueAccessor.registerOnTouched(n)),Ac(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function Mc(t,e){t.forEach(i=>{i.registerOnValidatorChange&&i.registerOnValidatorChange(e)})}function TR(t,e){if(e.valueAccessor.setDisabledState){let i=n=>{e.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(i),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(i)})}}function ip(t,e){let i=W0(t);e.validator!==null?t.setValidators(S0(i,e.validator)):typeof i=="function"&&t.setValidators([i]);let n=G0(t);e.asyncValidator!==null?t.setAsyncValidators(S0(n,e.asyncValidator)):typeof n=="function"&&t.setAsyncValidators([n]);let r=()=>t.updateValueAndValidity();Mc(e._rawValidators,r),Mc(e._rawAsyncValidators,r)}function Ac(t,e){let i=!1;if(t!==null){if(e.validator!==null){let r=W0(t);if(Array.isArray(r)&&r.length>0){let o=r.filter(s=>s!==e.validator);o.length!==r.length&&(i=!0,t.setValidators(o))}}if(e.asyncValidator!==null){let r=G0(t);if(Array.isArray(r)&&r.length>0){let o=r.filter(s=>s!==e.asyncValidator);o.length!==r.length&&(i=!0,t.setAsyncValidators(o))}}}let n=()=>{};return Mc(e._rawValidators,n),Mc(e._rawAsyncValidators,n),i}function MR(t,e){e.valueAccessor.registerOnChange(i=>{t._pendingValue=i,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&Z0(t,e)})}function AR(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&Z0(t,e),t.updateOn!=="submit"&&t.markAsTouched()})}function Z0(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function NR(t,e){let i=(n,r)=>{e.valueAccessor.writeValue(n),r&&e.viewToModelUpdate(n)};t.registerOnChange(i),e._registerOnDestroy(()=>{t._unregisterOnChange(i)})}function K0(t,e){t==null,ip(t,e)}function RR(t,e){return Ac(t,e)}function OR(t,e){if(!t.hasOwnProperty("model"))return!1;let i=t.model;return i.isFirstChange()?!0:!Object.is(e,i.currentValue)}function kR(t){return Object.getPrototypeOf(t.constructor)===cR}function Y0(t,e){t._syncPendingControls(),e.forEach(i=>{let n=i.control;n.updateOn==="submit"&&n._pendingChange&&(i.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function FR(t,e){if(!e)return null;Array.isArray(e);let i,n,r;return e.forEach(o=>{o.constructor===pi?i=o:kR(o)?n=o:r=o}),r||n||i||null}function PR(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}var LR={provide:ct,useExisting:fn(()=>rp)},hs=Promise.resolve(),rp=(()=>{let e=class e extends ct{get submitted(){return gn(this.submittedReactive)}constructor(n,r,o){super(),this.callSetDisabledState=o,this._submitted=Vn(()=>this.submittedReactive()),this.submittedReactive=Hi(!1),this._directives=new Set,this.ngSubmit=new J,this.form=new Sc({},Jh(n),ep(r))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(n){hs.then(()=>{let r=this._findContainer(n.path);n.control=r.registerControl(n.name,n.control),Tc(n.control,n,this.callSetDisabledState),n.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(n)})}getControl(n){return this.form.get(n.path)}removeControl(n){hs.then(()=>{let r=this._findContainer(n.path);r&&r.removeControl(n.name),this._directives.delete(n)})}addFormGroup(n){hs.then(()=>{let r=this._findContainer(n.path),o=new Sc({});K0(o,n),r.registerControl(n.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(n){hs.then(()=>{let r=this._findContainer(n.path);r&&r.removeControl(n.name)})}getFormGroup(n){return this.form.get(n.path)}updateModel(n,r){hs.then(()=>{this.form.get(n.path).setValue(r)})}setValue(n){this.control.setValue(n)}onSubmit(n){return this.submittedReactive.set(!0),Y0(this.form,this._directives),this.ngSubmit.emit(n),n?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(n){return n.pop(),n.length?this.form.get(n):this.form}};e.\u0275fac=function(r){return new(r||e)(m(gs,10),m(vs,10),m(Rc,8))},e.\u0275dir=W({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(r,o){r&1&&re("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Ze([LR]),lt]});let t=e;return t})();function N0(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}function R0(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var X0=class extends xc{constructor(e=null,i,n){super(q0(i),Q0(n,i)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(i),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Nc(i)&&(i.nonNullable||i.initialValueIsDefault)&&(R0(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,i={}){this.value=this._pendingValue=e,this._onChange.length&&i.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,i.emitViewToModelChange!==!1)),this.updateValueAndValidity(i)}patchValue(e,i={}){this.setValue(e,i)}reset(e=this.defaultValue,i={}){this._applyFormState(e),this.markAsPristine(i),this.markAsUntouched(i),this.setValue(this.value,i),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){N0(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){N0(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(e){R0(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}};var jR=t=>t instanceof X0,VR=(()=>{let e=class e extends ct{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return np(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Fr(e)))(o||e)}})(),e.\u0275dir=W({type:e,features:[lt]});let t=e;return t})();var BR={provide:Yi,useExisting:fn(()=>Xi)},O0=Promise.resolve(),Xi=(()=>{let e=class e extends Yi{constructor(n,r,o,s,a,l){super(),this._changeDetectorRef=a,this.callSetDisabledState=l,this.control=new X0,this._registered=!1,this.name="",this.update=new J,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=FR(this,s)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){let r=n.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),OR(n,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){Tc(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(n){O0.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let r=n.isDisabled.currentValue,o=r!==0&&Ae(r);O0.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?np(n,this._parent):[n]}};e.\u0275fac=function(r){return new(r||e)(m(ct,9),m(gs,10),m(vs,10),m(F0,10),m(tt,8),m(Rc,8))},e.\u0275dir=W({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Ze([BR]),lt,qe]});let t=e;return t})();var UR={provide:ct,useExisting:fn(()=>Oc)},Oc=(()=>{let e=class e extends ct{get submitted(){return gn(this._submittedReactive)}set submitted(n){this._submittedReactive.set(n)}constructor(n,r,o){super(),this.callSetDisabledState=o,this._submitted=Vn(()=>this._submittedReactive()),this._submittedReactive=Hi(!1),this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new J,this._setValidators(n),this._setAsyncValidators(r)}ngOnChanges(n){this._checkFormPresent(),n.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Ac(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(n){let r=this.form.get(n.path);return Tc(r,n,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(n),r}getControl(n){return this.form.get(n.path)}removeControl(n){A0(n.control||null,n,!1),PR(this.directives,n)}addFormGroup(n){this._setUpFormContainer(n)}removeFormGroup(n){this._cleanUpFormContainer(n)}getFormGroup(n){return this.form.get(n.path)}addFormArray(n){this._setUpFormContainer(n)}removeFormArray(n){this._cleanUpFormContainer(n)}getFormArray(n){return this.form.get(n.path)}updateModel(n,r){this.form.get(n.path).setValue(r)}onSubmit(n){return this._submittedReactive.set(!0),Y0(this.form,this.directives),this.ngSubmit.emit(n),this.form._events.next(new Yh(this.control)),n?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this._submittedReactive.set(!1),this.form._events.next(new Xh(this.form))}_updateDomValue(){this.directives.forEach(n=>{let r=n.control,o=this.form.get(n.path);r!==o&&(A0(r||null,n),jR(o)&&(Tc(o,n,this.callSetDisabledState),n.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(n){let r=this.form.get(n.path);K0(r,n),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(n){if(this.form){let r=this.form.get(n.path);r&&RR(r,n)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){ip(this.form,this),this._oldForm&&Ac(this._oldForm,this)}_checkFormPresent(){this.form}};e.\u0275fac=function(r){return new(r||e)(m(gs,10),m(vs,10),m(Rc,8))},e.\u0275dir=W({type:e,selectors:[["","formGroup",""]],hostBindings:function(r,o){r&1&&re("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Ze([UR]),lt,qe]});let t=e;return t})(),$R={provide:ct,useExisting:fn(()=>kc)},kc=(()=>{let e=class e extends VR{constructor(n,r,o){super(),this.name=null,this._parent=n,this._setValidators(r),this._setAsyncValidators(o)}_checkParentType(){ew(this._parent)}};e.\u0275fac=function(r){return new(r||e)(m(ct,13),m(gs,10),m(vs,10))},e.\u0275dir=W({type:e,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},features:[Ze([$R]),lt]});let t=e;return t})(),HR={provide:ct,useExisting:fn(()=>J0)},J0=(()=>{let e=class e extends ct{constructor(n,r,o){super(),this.name=null,this._parent=n,this._setValidators(r),this._setAsyncValidators(o)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return np(this.name==null?this.name:this.name.toString(),this._parent)}_checkParentType(){ew(this._parent)}};e.\u0275fac=function(r){return new(r||e)(m(ct,13),m(gs,10),m(vs,10))},e.\u0275dir=W({type:e,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},features:[Ze([HR]),lt]});let t=e;return t})();function ew(t){return!(t instanceof kc)&&!(t instanceof Oc)&&!(t instanceof J0)}var zR=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=ne({type:e}),e.\u0275inj=te({});let t=e;return t})();var Fc=(()=>{let e=class e{static withConfig(n){return{ngModule:e,providers:[{provide:Rc,useValue:n.callSetDisabledState??tp}]}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=ne({type:e}),e.\u0275inj=te({imports:[zR]});let t=e;return t})();var WR=["autoCompleteInput"],GR=["autoCompleteContainer"],qR=t=>({selected:t});function QR(t,e){if(t&1){let i=bt();D(0,"input",5,1),re("focus",function(r){Ee(i);let o=se();return Ce(o.showDropdownList(r))})("blur",function(r){Ee(i);let o=se();return Ce(o.blurHandler(r))})("keydown",function(r){Ee(i);let o=se();return Ce(o.inputElKeyHandler(r))})("input",function(r){Ee(i);let o=se();return Ce(o.reloadListInDelay(r))}),Pt("ngModelChange",function(r){Ee(i);let o=se();return Qt(o.keyword,r)||(o.keyword=r),Ce(r)}),C()}if(t&2){let i=se();Vf("placeholder",i.placeholder),Ft("ngModel",i.keyword),$e("autocomplete",i.autocomplete?"null":"off")}}function ZR(t,e){if(t&1&&L(0,"li",12),t&2){let i=se(2);O("innerHTML",i.loadingTemplate,Tl)}}function KR(t,e){if(t&1&&(D(0,"li",13),A(1),C()),t&2){let i=se(2);I(),je(i.loadingText)}}function YR(t,e){if(t&1){let i=bt();D(0,"li",14),re("mousedown",function(){Ee(i);let r=se(2);return Ce(r.selectOne(""))}),A(1),C()}if(t&2){let i=se(2);I(),ue("",i.noMatchFoundText||"No Result Found"," ")}}function XR(t,e){if(t&1&&L(0,"li",15),t&2){let i=se(2);O("innerHTML",i.headerItemTemplate,Tl)}}function JR(t,e){if(t&1){let i=bt();D(0,"li",16),re("mousedown",function(){Ee(i);let r=se(2);return Ce(r.selectOne(""))}),A(1),C()}if(t&2){let i=se(2);I(),ue("",i.blankOptionText," ")}}function eO(t,e){if(t&1){let i=bt();D(0,"li",17),re("mousedown",function(){let r=Ee(i).$implicit,o=se(2);return Ce(o.selectOne(r))}),C()}if(t&2){let i=e.$implicit,n=e.index,r=se(2);O("ngClass",Bf(2,qR,n===r.itemIndex))("innerHtml",r.autoComplete.getFormattedListItem(i),Tl)}}function tO(t,e){if(t&1&&(D(0,"ul"),we(1,ZR,1,1,"li",6)(2,KR,2,1,"li",7)(3,YR,2,1,"li",8)(4,XR,1,1,"li",9)(5,JR,2,1,"li",10)(6,eO,1,4,"li",11),C()),t&2){let i=se();Ie("empty",i.emptyList),I(),O("ngIf",i.isLoading&&i.loadingTemplate),I(),O("ngIf",i.isLoading&&!i.loadingTemplate),I(),O("ngIf",i.minCharsEntered&&!i.isLoading&&!i.filteredList.length),I(),O("ngIf",i.headerItemTemplate&&i.filteredList.length),I(),O("ngIf",i.blankOptionText&&i.filteredList.length),I(),O("ngForOf",i.filteredList)("ngForTrackBy",i.trackByIndex)}}var tw=(()=>{let e=class e{constructor(n){this.http=n}filter(n,r,o,s){let a=c=>o?this.getFormattedListItem(c).toLowerCase():JSON.stringify(c).toLowerCase(),l=r.toLowerCase();return s?n.filter(c=>a(c).normalize("NFD").replace(/[\u0300-\u036f]/g,"").indexOf(l.normalize("NFD").replace(/[\u0300-\u036f]/g,""))!==-1):n.filter(c=>a(c).indexOf(l)!==-1)}getFormattedListItem(n){let r=this.listFormatter||"(id) value";if(typeof r=="function")return r.apply(this,[n]);if(typeof n!="object")return n;if(typeof r=="string"){let o=r,s=r.match(/[a-zA-Z0-9_\$]+/g);return s&&typeof n!="string"&&s.forEach(a=>{o=o.replace(a,n[a])}),o}return JSON.stringify(n)}getRemoteData(n){if(typeof this.source!="string")throw new TypeError("Invalid type of source, must be a string. e.g. http://www.google.com?q=:my_keyword");if(!this.http)throw new Error("Http is required.");let r=this.source.match(/:[a-zA-Z_]+/);if(r===null)throw new Error("Replacement word is missing.");let o=r[0],s=this.source.replace(o,n);return this.http.get(s).pipe(N(a=>(this.pathToData&&this.pathToData.split(".").forEach(c=>a=a[c]),a)))}};e.\u0275fac=function(r){return new(r||e)(y(Wi,8))},e.\u0275prov=E({token:e,factory:e.\u0275fac});let t=e;return t})(),op=(()=>{let e=class e{constructor(n,r){this.autoComplete=r,this.autocomplete=!1,this.minChars=0,this.acceptUserInput=!0,this.loadingText="Loading",this.loadingTemplate=null,this.showInputTag=!0,this.showDropdownOnInit=!1,this.tabToSelect=!0,this.matchFormatted=!1,this.autoSelectFirstItem=!1,this.selectOnBlur=!1,this.reFocusAfterSelect=!0,this.headerItemTemplate=null,this.ignoreAccents=!0,this.valueSelected=new J,this.customSelected=new J,this.textEntered=new J,this.dropdownVisible=!1,this.isLoading=!1,this.filteredList=[],this.minCharsEntered=!1,this.itemIndex=null,this.timer=0,this.delay=(()=>{let o=null;return(s,a)=>{clearTimeout(o),o=setTimeout(s,a)}})(),this.selectOnEnter=!1,this.reloadListInDelay=o=>{let s=this.isSrcArr()?10:500,a=o.target.value;this.delay(()=>this.reloadList(a),s)},this.inputElKeyHandler=o=>{let s=this.filteredList.length;switch(!this.selectOnEnter&&this.autoSelectFirstItem&&s!==0&&(this.selectOnEnter=!0),o.keyCode){case 27:this.selectOnEnter=!1,this.selectOne(void 0);break;case 38:if(s===0)return;this.selectOnEnter=!0,this.itemIndex=(s+this.itemIndex-1)%s,this.scrollToView(this.itemIndex);break;case 40:if(s===0)return;this.selectOnEnter=!0,this.dropdownVisible=!0;let a=this.itemIndex;a=this.itemIndex===null?0:a+1,this.itemIndex=(s+a)%s,this.scrollToView(this.itemIndex);break;case 13:this.selectOnEnter&&this.selectOne(this.filteredList[this.itemIndex]),o.preventDefault();break;case 9:this.tabToSelect&&this.selectOne(this.filteredList[this.itemIndex]);break}},this.el=n.nativeElement}ngOnInit(){this.autoComplete.source=this.source,this.autoComplete.pathToData=this.pathToData,this.autoComplete.listFormatter=this.listFormatter,this.autoSelectFirstItem&&(this.itemIndex=0),setTimeout(()=>{this.autoCompleteInput&&this.reFocusAfterSelect&&this.autoCompleteInput.nativeElement.focus(),this.showDropdownOnInit&&this.showDropdownList({target:{value:""}})})}isSrcArr(){return Array.isArray(this.source)}showDropdownList(n){this.dropdownVisible=!0,this.reloadList(n.target.value)}hideDropdownList(){this.selectOnEnter=!1,this.dropdownVisible=!1}findItemFromSelectValue(n){let r=this.filteredList.filter(o=>""+o===n);return r.length?r[0]:null}reloadList(n){if(this.filteredList=[],n.length<(this.minChars||0)){this.minCharsEntered=!1;return}else this.minCharsEntered=!0;this.isSrcArr()?(this.isLoading=!1,this.filteredList=this.autoComplete.filter(this.source,n,this.matchFormatted,this.ignoreAccents),this.maxNumList&&(this.filteredList=this.filteredList.slice(0,this.maxNumList))):(this.isLoading=!0,typeof this.source=="function"?this.source(n).subscribe(r=>{this.pathToData&&this.pathToData.split(".").forEach(s=>r=r[s]),this.filteredList=r,this.maxNumList&&(this.filteredList=this.filteredList.slice(0,this.maxNumList))},r=>console.warn(r),()=>this.isLoading=!1):this.autoComplete.getRemoteData(n).subscribe(r=>{this.filteredList=r||[],this.maxNumList&&(this.filteredList=this.filteredList.slice(0,this.maxNumList))},r=>console.warn(r),()=>this.isLoading=!1))}selectOne(n){n||n===""?this.valueSelected.emit(n):this.customSelected.emit(this.keyword)}enterText(n){this.textEntered.emit(n)}blurHandler(n){this.selectOnBlur&&this.selectOne(this.filteredList[this.itemIndex]),this.hideDropdownList()}scrollToView(n){let o=this.autoCompleteContainer.nativeElement.querySelector("ul"),a=o.querySelector("li").offsetHeight,l=o.scrollTop,c=l+o.offsetHeight,u=a*n;(uc)&&(o.scrollTop=u)}trackByIndex(n,r){return n}get emptyList(){return!(this.isLoading||this.minCharsEntered&&!this.isLoading&&!this.filteredList.length||this.filteredList.length)}};e.\u0275fac=function(r){return new(r||e)(m(Y),m(tw))},e.\u0275cmp=ke({type:e,selectors:[["ngui-auto-complete"]],viewQuery:function(r,o){if(r&1&&(Pe(WR,5),Pe(GR,5)),r&2){let s;pe(s=me())&&(o.autoCompleteInput=s.first),pe(s=me())&&(o.autoCompleteContainer=s.first)}},inputs:{autocomplete:"autocomplete",listFormatter:[0,"list-formatter","listFormatter"],source:"source",pathToData:[0,"path-to-data","pathToData"],minChars:[0,"min-chars","minChars"],placeholder:"placeholder",blankOptionText:[0,"blank-option-text","blankOptionText"],noMatchFoundText:[0,"no-match-found-text","noMatchFoundText"],acceptUserInput:[0,"accept-user-input","acceptUserInput"],loadingText:[0,"loading-text","loadingText"],loadingTemplate:[0,"loading-template","loadingTemplate"],maxNumList:[0,"max-num-list","maxNumList"],showInputTag:[0,"show-input-tag","showInputTag"],showDropdownOnInit:[0,"show-dropdown-on-init","showDropdownOnInit"],tabToSelect:[0,"tab-to-select","tabToSelect"],matchFormatted:[0,"match-formatted","matchFormatted"],autoSelectFirstItem:[0,"auto-select-first-item","autoSelectFirstItem"],selectOnBlur:[0,"select-on-blur","selectOnBlur"],reFocusAfterSelect:[0,"re-focus-after-select","reFocusAfterSelect"],headerItemTemplate:[0,"header-item-template","headerItemTemplate"],ignoreAccents:[0,"ignore-accents","ignoreAccents"]},outputs:{valueSelected:"valueSelected",customSelected:"customSelected",textEntered:"textEntered"},decls:4,vars:2,consts:[["autoCompleteContainer",""],["autoCompleteInput",""],[1,"ngui-auto-complete"],["class","keyword",3,"placeholder","ngModel","focus","blur","keydown","input","ngModelChange",4,"ngIf"],[3,"empty",4,"ngIf"],[1,"keyword",3,"focus","blur","keydown","input","ngModelChange","placeholder","ngModel"],["class","loading",3,"innerHTML",4,"ngIf"],["class","loading",4,"ngIf"],["class","no-match-found",3,"mousedown",4,"ngIf"],["class","header-item",3,"innerHTML",4,"ngIf"],["class","blank-item",3,"mousedown",4,"ngIf"],["class","item",3,"ngClass","innerHtml","mousedown",4,"ngFor","ngForOf","ngForTrackBy"],[1,"loading",3,"innerHTML"],[1,"loading"],[1,"no-match-found",3,"mousedown"],[1,"header-item",3,"innerHTML"],[1,"blank-item",3,"mousedown"],[1,"item",3,"mousedown","ngClass","innerHtml"]],template:function(r,o){r&1&&(D(0,"div",2,0),we(2,QR,2,3,"input",3)(3,tO,7,9,"ul",4),C()),r&2&&(I(2),O("ngIf",o.showInputTag),I(),O("ngIf",o.dropdownVisible))},dependencies:[b_,$r,Ql,pi,Yr,Xi],styles:[`@keyframes slideDown{0%{transform:translateY(-10px)}to{transform:translateY(0)}}.ngui-auto-complete{background-color:transparent}.ngui-auto-complete>input{outline:none;border:0;padding:2px;box-sizing:border-box;background-clip:content-box}.ngui-auto-complete>ul{background-color:#fff;margin:0;width:100%;overflow-y:auto;list-style-type:none;padding:0;border:1px solid #ccc;box-sizing:border-box;animation:slideDown .1s}.ngui-auto-complete>ul.empty{display:none}.ngui-auto-complete>ul li{padding:2px 5px;border-bottom:1px solid #eee}.ngui-auto-complete>ul li.selected{background-color:#ccc}.ngui-auto-complete>ul li:last-child{border-bottom:none}.ngui-auto-complete>ul li:not(.header-item):hover{background-color:#ccc} +`).forEach(i=>{let n=i.indexOf(":");if(n>0){let r=i.slice(0,n),o=r.toLowerCase(),s=i.slice(n+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((i,n)=>{this.setHeaderEntries(n,i)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([i,n])=>{this.setHeaderEntries(i,n)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let i=this.headers.get(e.toLowerCase());return i&&i.length>0?i[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,i){return this.clone({name:e,value:i,op:"a"})}set(e,i){return this.clone({name:e,value:i,op:"s"})}delete(e,i){return this.clone({name:e,value:i,op:"d"})}maybeSetNormalizedName(e,i){this.normalizedNames.has(i)||this.normalizedNames.set(i,e)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(i=>{this.headers.set(i,e.headers.get(i)),this.normalizedNames.set(i,e.normalizedNames.get(i))})}clone(e){let i=new t;return i.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,i.lazyUpdate=(this.lazyUpdate||[]).concat([e]),i}applyUpdate(e){let i=e.name.toLowerCase();switch(e.op){case"a":case"s":let n=e.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(e.name,i);let r=(e.op==="a"?this.headers.get(i):void 0)||[];r.push(...n),this.headers.set(i,r);break;case"d":let o=e.value;if(!o)this.headers.delete(i),this.normalizedNames.delete(i);else{let s=this.headers.get(i);if(!s)return;s=s.filter(a=>o.indexOf(a)===-1),s.length===0?(this.headers.delete(i),this.normalizedNames.delete(i)):this.headers.set(i,s)}break}}setHeaderEntries(e,i){let n=(Array.isArray(i)?i:[i]).map(o=>o.toString()),r=e.toLowerCase();this.headers.set(r,n),this.maybeSetNormalizedName(e,r)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(i=>e(this.normalizedNames.get(i),this.headers.get(i)))}};var rh=class{encodeKey(e){return E_(e)}encodeValue(e){return E_(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function $M(t,e){let i=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(r=>{let o=r.indexOf("="),[s,a]=o==-1?[e.decodeKey(r),""]:[e.decodeKey(r.slice(0,o)),e.decodeValue(r.slice(o+1))],l=i.get(s)||[];l.push(a),i.set(s,l)}),i}var HM=/%(\d[a-f0-9])/gi,zM={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function E_(t){return encodeURIComponent(t).replace(HM,(e,i)=>zM[i]??e)}function Kl(t){return`${t}`}var li=class t{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new rh,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=$M(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(i=>{let n=e.fromObject[i],r=Array.isArray(n)?n.map(Kl):[Kl(n)];this.map.set(i,r)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let i=this.map.get(e);return i?i[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,i){return this.clone({param:e,value:i,op:"a"})}appendAll(e){let i=[];return Object.keys(e).forEach(n=>{let r=e[n];Array.isArray(r)?r.forEach(o=>{i.push({param:n,value:o,op:"a"})}):i.push({param:n,value:r,op:"a"})}),this.clone(i)}set(e,i){return this.clone({param:e,value:i,op:"s"})}delete(e,i){return this.clone({param:e,value:i,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let i=this.encoder.encodeKey(e);return this.map.get(e).map(n=>i+"="+this.encoder.encodeValue(n)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let i=new t({encoder:this.encoder});return i.cloneFrom=this.cloneFrom||this,i.updates=(this.updates||[]).concat(e),i}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":let i=(e.op==="a"?this.map.get(e.param):void 0)||[];i.push(Kl(e.value)),this.map.set(e.param,i);break;case"d":if(e.value!==void 0){let n=this.map.get(e.param)||[],r=n.indexOf(Kl(e.value));r!==-1&&n.splice(r,1),n.length>0?this.map.set(e.param,n):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}};var oh=class{constructor(){this.map=new Map}set(e,i){return this.map.set(e,i),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}};function WM(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function C_(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function I_(t){return typeof Blob<"u"&&t instanceof Blob}function x_(t){return typeof FormData<"u"&&t instanceof FormData}function GM(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var Ko=class t{constructor(e,i,n,r){this.url=i,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase();let o;if(WM(this.method)||r?(this.body=n!==void 0?n:null,o=r):o=n,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers??=new $n,this.context??=new oh,!this.params)this.params=new li,this.urlWithParams=i;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=i;else{let a=i.indexOf("?"),l=a===-1?"?":ah.set(f,e.setHeaders[f]),c)),e.setParams&&(u=Object.keys(e.setParams).reduce((h,f)=>h.set(f,e.setParams[f]),u)),new t(i,n,s,{params:u,headers:c,context:d,reportProgress:l,responseType:r,withCredentials:a,transferCache:o})}},ci=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(ci||{}),Xo=class{constructor(e,i=200,n="OK"){this.headers=e.headers||new $n,this.status=e.status!==void 0?e.status:i,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},Xl=class t extends Xo{constructor(e={}){super(e),this.type=ci.ResponseHeader}clone(e={}){return new t({headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},Jo=class t extends Xo{constructor(e={}){super(e),this.type=ci.Response,this.body=e.body!==void 0?e.body:null}clone(e={}){return new t({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},ai=class extends Xo{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}},N_=200,qM=204;function ih(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}var Wi=(()=>{let e=class e{constructor(n){this.handler=n}request(n,r,o={}){let s;if(n instanceof Ko)s=n;else{let c;o.headers instanceof $n?c=o.headers:c=new $n(o.headers);let u;o.params&&(o.params instanceof li?u=o.params:u=new li({fromObject:o.params})),s=new Ko(n,r,o.body!==void 0?o.body:null,{headers:c,context:o.context,params:u,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let a=M(s).pipe(xn(c=>this.handler.handle(c)));if(n instanceof Ko||o.observe==="events")return a;let l=a.pipe(_e(c=>c instanceof Jo));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return l.pipe(N(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return l.pipe(N(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return l.pipe(N(c=>{if(c.body!==null&&typeof c.body!="string")throw new Error("Response is not a string.");return c.body}));case"json":default:return l.pipe(N(c=>c.body))}case"response":return l;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:new li().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,o={}){return this.request("PATCH",n,ih(o,r))}post(n,r,o={}){return this.request("POST",n,ih(o,r))}put(n,r,o={}){return this.request("PUT",n,ih(o,r))}};e.\u0275fac=function(r){return new(r||e)(y(Yo))},e.\u0275prov=E({token:e,factory:e.\u0275fac});let t=e;return t})(),QM=/^\)\]\}',?\n/,ZM="X-Request-URL";function S_(t){if(t.url)return t.url;let e=ZM.toLocaleLowerCase();return t.headers.get(e)}var KM=(()=>{let e=class e{constructor(){this.fetchImpl=g(sh,{optional:!0})?.fetch??((...n)=>globalThis.fetch(...n)),this.ngZone=g(R)}handle(n){return new $(r=>{let o=new AbortController;return this.doRequest(n,o.signal,r).then(ah,s=>r.error(new ai({error:s}))),()=>o.abort()})}doRequest(n,r,o){return zs(this,null,function*(){let s=this.createRequestInit(n),a;try{let p=this.ngZone.runOutsideAngular(()=>this.fetchImpl(n.urlWithParams,b({signal:r},s)));YM(p),o.next({type:ci.Sent}),a=yield p}catch(p){o.error(new ai({error:p,status:p.status??0,statusText:p.statusText,url:n.urlWithParams,headers:p.headers}));return}let l=new $n(a.headers),c=a.statusText,u=S_(a)??n.urlWithParams,d=a.status,h=null;if(n.reportProgress&&o.next(new Xl({headers:l,status:d,statusText:c,url:u})),a.body){let p=a.headers.get("content-length"),v=[],w=a.body.getReader(),S=0,k,Z,U=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>zs(this,null,function*(){for(;;){let{done:ce,value:ge}=yield w.read();if(ce)break;if(v.push(ge),S+=ge.length,n.reportProgress){Z=n.responseType==="text"?(Z??"")+(k??=new TextDecoder).decode(ge,{stream:!0}):void 0;let Re=()=>o.next({type:ci.DownloadProgress,total:p?+p:void 0,loaded:S,partialText:Z});U?U.run(Re):Re()}}}));let Ve=this.concatChunks(v,S);try{let ce=a.headers.get("Content-Type")??"";h=this.parseBody(n,Ve,ce)}catch(ce){o.error(new ai({error:ce,headers:new $n(a.headers),status:a.status,statusText:a.statusText,url:S_(a)??n.urlWithParams}));return}}d===0&&(d=h?N_:0),d>=200&&d<300?(o.next(new Jo({body:h,headers:l,status:d,statusText:c,url:u})),o.complete()):o.error(new ai({error:h,headers:l,status:d,statusText:c,url:u}))})}parseBody(n,r,o){switch(n.responseType){case"json":let s=new TextDecoder().decode(r).replace(QM,"");return s===""?null:JSON.parse(s);case"text":return new TextDecoder().decode(r);case"blob":return new Blob([r],{type:o});case"arraybuffer":return r.buffer}}createRequestInit(n){let r={},o=n.withCredentials?"include":void 0;if(n.headers.forEach((s,a)=>r[s]=a.join(",")),n.headers.has("Accept")||(r.Accept="application/json, text/plain, */*"),!n.headers.has("Content-Type")){let s=n.detectContentTypeHeader();s!==null&&(r["Content-Type"]=s)}return{body:n.serializeBody(),method:n.method,headers:r,credentials:o}}concatChunks(n,r){let o=new Uint8Array(r),s=0;for(let a of n)o.set(a,s),s+=a.length;return o}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=E({token:e,factory:e.\u0275fac});let t=e;return t})(),sh=class{};function ah(){}function YM(t){t.then(ah,ah)}function R_(t,e){return e(t)}function XM(t,e){return(i,n)=>e.intercept(i,{handle:r=>t(r,n)})}function JM(t,e,i){return(n,r)=>At(i,()=>e(n,o=>t(o,r)))}var eA=new x(""),lh=new x(""),tA=new x(""),O_=new x("",{providedIn:"root",factory:()=>!0});function nA(){let t=null;return(e,i)=>{t===null&&(t=(g(eA,{optional:!0})??[]).reduceRight(XM,R_));let n=g(hn);if(g(O_)){let o=n.add();return t(e,i).pipe(rn(()=>n.remove(o)))}else return t(e,i)}}var T_=(()=>{let e=class e extends Yo{constructor(n,r){super(),this.backend=n,this.injector=r,this.chain=null,this.pendingTasks=g(hn),this.contributeToStability=g(O_)}handle(n){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(lh),...this.injector.get(tA,[])]));this.chain=r.reduceRight((o,s)=>JM(o,s,this.injector),R_)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(rn(()=>this.pendingTasks.remove(r)))}else return this.chain(n,r=>this.backend.handle(r))}};e.\u0275fac=function(r){return new(r||e)(y(Yl),y(st))},e.\u0275prov=E({token:e,factory:e.\u0275fac});let t=e;return t})();var iA=/^\)\]\}',?\n/;function rA(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}var M_=(()=>{let e=class e{constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new _(-2800,!1);let r=this.xhrFactory;return(r.\u0275loadImpl?ve(r.\u0275loadImpl()):M(null)).pipe(Ge(()=>new $(s=>{let a=r.build();if(a.open(n.method,n.urlWithParams),n.withCredentials&&(a.withCredentials=!0),n.headers.forEach((w,S)=>a.setRequestHeader(w,S.join(","))),n.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let w=n.detectContentTypeHeader();w!==null&&a.setRequestHeader("Content-Type",w)}if(n.responseType){let w=n.responseType.toLowerCase();a.responseType=w!=="json"?w:"text"}let l=n.serializeBody(),c=null,u=()=>{if(c!==null)return c;let w=a.statusText||"OK",S=new $n(a.getAllResponseHeaders()),k=rA(a)||n.url;return c=new Xl({headers:S,status:a.status,statusText:w,url:k}),c},d=()=>{let{headers:w,status:S,statusText:k,url:Z}=u(),U=null;S!==qM&&(U=typeof a.response>"u"?a.responseText:a.response),S===0&&(S=U?N_:0);let Ve=S>=200&&S<300;if(n.responseType==="json"&&typeof U=="string"){let ce=U;U=U.replace(iA,"");try{U=U!==""?JSON.parse(U):null}catch(ge){U=ce,Ve&&(Ve=!1,U={error:ge,text:U})}}Ve?(s.next(new Jo({body:U,headers:w,status:S,statusText:k,url:Z||void 0})),s.complete()):s.error(new ai({error:U,headers:w,status:S,statusText:k,url:Z||void 0}))},h=w=>{let{url:S}=u(),k=new ai({error:w,status:a.status||0,statusText:a.statusText||"Unknown Error",url:S||void 0});s.error(k)},f=!1,p=w=>{f||(s.next(u()),f=!0);let S={type:ci.DownloadProgress,loaded:w.loaded};w.lengthComputable&&(S.total=w.total),n.responseType==="text"&&a.responseText&&(S.partialText=a.responseText),s.next(S)},v=w=>{let S={type:ci.UploadProgress,loaded:w.loaded};w.lengthComputable&&(S.total=w.total),s.next(S)};return a.addEventListener("load",d),a.addEventListener("error",h),a.addEventListener("timeout",h),a.addEventListener("abort",h),n.reportProgress&&(a.addEventListener("progress",p),l!==null&&a.upload&&a.upload.addEventListener("progress",v)),a.send(l),s.next({type:ci.Sent}),()=>{a.removeEventListener("error",h),a.removeEventListener("abort",h),a.removeEventListener("load",d),a.removeEventListener("timeout",h),n.reportProgress&&(a.removeEventListener("progress",p),l!==null&&a.upload&&a.upload.removeEventListener("progress",v)),a.readyState!==a.DONE&&a.abort()}})))}};e.\u0275fac=function(r){return new(r||e)(y(Br))},e.\u0275prov=E({token:e,factory:e.\u0275fac});let t=e;return t})(),k_=new x(""),oA="XSRF-TOKEN",sA=new x("",{providedIn:"root",factory:()=>oA}),aA="X-XSRF-TOKEN",lA=new x("",{providedIn:"root",factory:()=>aA}),Jl=class{},cA=(()=>{let e=class e{constructor(n,r,o){this.doc=n,this.platform=r,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=ql(n,this.cookieName),this.lastCookieString=n),this.lastToken}};e.\u0275fac=function(r){return new(r||e)(y(ae),y(Rt),y(sA))},e.\u0275prov=E({token:e,factory:e.\u0275fac});let t=e;return t})();function uA(t,e){let i=t.url.toLowerCase();if(!g(k_)||t.method==="GET"||t.method==="HEAD"||i.startsWith("http://")||i.startsWith("https://"))return e(t);let n=g(Jl).getToken(),r=g(lA);return n!=null&&!t.headers.has(r)&&(t=t.clone({headers:t.headers.set(r,n)})),e(t)}var F_=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(F_||{});function dA(t,e){return{\u0275kind:t,\u0275providers:e}}function P_(...t){let e=[Wi,M_,T_,{provide:Yo,useExisting:T_},{provide:Yl,useFactory:()=>g(KM,{optional:!0})??g(M_)},{provide:lh,useValue:uA,multi:!0},{provide:k_,useValue:!0},{provide:Jl,useClass:cA}];for(let i of t)e.push(...i.\u0275providers);return yl(e)}var A_=new x("");function L_(){return dA(F_.LegacyInterceptors,[{provide:A_,useFactory:nA},{provide:lh,useExisting:A_,multi:!0}])}var fh=class extends Wl{constructor(){super(...arguments),this.supportsDOMEvents=!0}},hh=class t extends fh{static makeCurrent(){m_(new t)}onAndCancel(e,i,n){return e.addEventListener(i,n),()=>{e.removeEventListener(i,n)}}dispatchEvent(e,i){e.dispatchEvent(i)}remove(e){e.remove()}createElement(e,i){return i=i||this.getDefaultDocument(),i.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,i){return i==="window"?window:i==="document"?e:i==="body"?e.body:null}getBaseHref(e){let i=fA();return i==null?null:hA(i)}resetBaseElement(){es=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return ql(document.cookie,e)}},es=null;function fA(){return es=es||document.querySelector("base"),es?es.getAttribute("href"):null}function hA(t){return new URL(t,document.baseURI).pathname}var ph=class{addToWindow(e){vt.getAngularTestability=(n,r=!0)=>{let o=e.findTestabilityInTree(n,r);if(o==null)throw new _(5103,!1);return o},vt.getAllAngularTestabilities=()=>e.getAllTestabilities(),vt.getAllAngularRootElements=()=>e.getAllRootElements();let i=n=>{let r=vt.getAllAngularTestabilities(),o=r.length,s=function(){o--,o==0&&n()};r.forEach(a=>{a.whenStable(s)})};vt.frameworkStabilizers||(vt.frameworkStabilizers=[]),vt.frameworkStabilizers.push(i)}findTestabilityInTree(e,i,n){if(i==null)return null;let r=e.getTestability(i);return r??(n?vn().isShadowRoot(i)?this.findTestabilityInTree(e,i.host,!0):this.findTestabilityInTree(e,i.parentElement,!0):null)}},pA=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=E({token:e,factory:e.\u0275fac});let t=e;return t})(),ec=new x(""),B_=(()=>{let e=class e{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,o){return this._findPluginFor(r).addEventListener(n,r,o)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(s=>s.supports(n)),!r)throw new _(5101,!1);return this._eventNameToPlugin.set(n,r),r}};e.\u0275fac=function(r){return new(r||e)(y(ec),y(R))},e.\u0275prov=E({token:e,factory:e.\u0275fac});let t=e;return t})(),ts=class{constructor(e){this._doc=e}},uh="ng-app-id",U_=(()=>{let e=class e{constructor(n,r,o,s={}){this.doc=n,this.appId=r,this.nonce=o,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Zl(s),this.resetHostNodes()}addStyles(n){for(let r of n)this.changeUsageCount(r,1)===1&&this.onStyleAdded(r)}removeStyles(n){for(let r of n)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(r=>r.remove()),n.clear());for(let r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let r of this.getAllStyles())this.addStyleToHost(n,r)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let r of this.hostNodes)this.addStyleToHost(r,n)}onStyleRemoved(n){let r=this.styleRef;r.get(n)?.elements?.forEach(o=>o.remove()),r.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${uh}="${this.appId}"]`);if(n?.length){let r=new Map;return n.forEach(o=>{o.textContent!=null&&r.set(o.textContent,o)}),r}return null}changeUsageCount(n,r){let o=this.styleRef;if(o.has(n)){let s=o.get(n);return s.usage+=r,s.usage}return o.set(n,{usage:r,elements:[]}),r}getStyleElement(n,r){let o=this.styleNodesInDOM,s=o?.get(r);if(s?.parentNode===n)return o.delete(r),s.removeAttribute(uh),s;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=r,this.platformIsServer&&a.setAttribute(uh,this.appId),n.appendChild(a),a}}addStyleToHost(n,r){let o=this.getStyleElement(n,r),s=this.styleRef,a=s.get(r)?.elements;a?a.push(o):s.set(r,{elements:[o],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}};e.\u0275fac=function(r){return new(r||e)(y(ae),y($o),y(Ho,8),y(Rt))},e.\u0275prov=E({token:e,factory:e.\u0275fac});let t=e;return t})(),dh={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"},gh=/%COMP%/g,$_="%COMP%",mA=`_nghost-${$_}`,gA=`_ngcontent-${$_}`,vA=!0,yA=new x("",{providedIn:"root",factory:()=>vA});function bA(t){return gA.replace(gh,t)}function _A(t){return mA.replace(gh,t)}function H_(t,e){return e.map(i=>i.replace(gh,t))}var tc=(()=>{let e=class e{constructor(n,r,o,s,a,l,c,u=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=l,this.ngZone=c,this.nonce=u,this.rendererByCompId=new Map,this.platformIsServer=Zl(l),this.defaultRenderer=new ns(n,a,c,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===ln.ShadowDom&&(r=ie(b({},r),{encapsulation:ln.Emulated}));let o=this.getOrCreateRenderer(n,r);return o instanceof nc?o.applyToHost(n):o instanceof is&&o.applyStyles(),o}getOrCreateRenderer(n,r){let o=this.rendererByCompId,s=o.get(r.id);if(!s){let a=this.doc,l=this.ngZone,c=this.eventManager,u=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,h=this.platformIsServer;switch(r.encapsulation){case ln.Emulated:s=new nc(c,u,r,this.appId,d,a,l,h);break;case ln.ShadowDom:return new mh(c,u,n,r,a,l,this.nonce,h);default:s=new is(c,u,r,d,a,l,h);break}o.set(r.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(r){return new(r||e)(y(B_),y(U_),y($o),y(yA),y(ae),y(Rt),y(R),y(Ho))},e.\u0275prov=E({token:e,factory:e.\u0275fac});let t=e;return t})(),ns=class{constructor(e,i,n,r){this.eventManager=e,this.doc=i,this.ngZone=n,this.platformIsServer=r,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,i){return i?this.doc.createElementNS(dh[i]||i,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,i){(j_(e)?e.content:e).appendChild(i)}insertBefore(e,i,n){e&&(j_(e)?e.content:e).insertBefore(i,n)}removeChild(e,i){i.remove()}selectRootElement(e,i){let n=typeof e=="string"?this.doc.querySelector(e):e;if(!n)throw new _(-5104,!1);return i||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,i,n,r){if(r){i=r+":"+i;let o=dh[r];o?e.setAttributeNS(o,i,n):e.setAttribute(i,n)}else e.setAttribute(i,n)}removeAttribute(e,i,n){if(n){let r=dh[n];r?e.removeAttributeNS(r,i):e.removeAttribute(`${n}:${i}`)}else e.removeAttribute(i)}addClass(e,i){e.classList.add(i)}removeClass(e,i){e.classList.remove(i)}setStyle(e,i,n,r){r&(Nn.DashCase|Nn.Important)?e.style.setProperty(i,n,r&Nn.Important?"important":""):e.style[i]=n}removeStyle(e,i,n){n&Nn.DashCase?e.style.removeProperty(i):e.style[i]=""}setProperty(e,i,n){e!=null&&(e[i]=n)}setValue(e,i){e.nodeValue=i}listen(e,i,n){if(typeof e=="string"&&(e=vn().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${i}`);return this.eventManager.addEventListener(e,i,this.decoratePreventDefault(n))}decoratePreventDefault(e){return i=>{if(i==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(i)):e(i))===!1&&i.preventDefault()}}};function j_(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var mh=class extends ns{constructor(e,i,n,r,o,s,a,l){super(e,o,s,l),this.sharedStylesHost=i,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let c=H_(r.id,r.styles);for(let u of c){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=u,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,i){return super.appendChild(this.nodeOrShadowRoot(e),i)}insertBefore(e,i,n){return super.insertBefore(this.nodeOrShadowRoot(e),i,n)}removeChild(e,i){return super.removeChild(null,i)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},is=class extends ns{constructor(e,i,n,r,o,s,a,l){super(e,o,s,a),this.sharedStylesHost=i,this.removeStylesOnCompDestroy=r,this.styles=l?H_(l,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},nc=class extends is{constructor(e,i,n,r,o,s,a,l){let c=r+"-"+n.id;super(e,i,n,o,s,a,l,c),this.contentAttr=bA(c),this.hostAttr=_A(c)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,i){let n=super.createElement(e,i);return super.setAttribute(n,this.contentAttr,""),n}},wA=(()=>{let e=class e extends ts{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o){return n.addEventListener(r,o,!1),()=>this.removeEventListener(n,r,o)}removeEventListener(n,r,o){return n.removeEventListener(r,o)}};e.\u0275fac=function(r){return new(r||e)(y(ae))},e.\u0275prov=E({token:e,factory:e.\u0275fac});let t=e;return t})(),DA=(()=>{let e=class e extends ts{constructor(n){super(n),this.delegate=g(a_,{optional:!0})}supports(n){return this.delegate?this.delegate.supports(n):!1}addEventListener(n,r,o){return this.delegate.addEventListener(n,r,o)}removeEventListener(n,r,o){return this.delegate.removeEventListener(n,r,o)}};e.\u0275fac=function(r){return new(r||e)(y(ae))},e.\u0275prov=E({token:e,factory:e.\u0275fac});let t=e;return t})(),V_=["alt","control","meta","shift"],EA={"\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"},CA={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},IA=(()=>{let e=class e extends ts{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,o){let s=e.parseEventName(r),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>vn().onAndCancel(n,s.domEventName,a))}static parseEventName(n){let r=n.toLowerCase().split("."),o=r.shift();if(r.length===0||!(o==="keydown"||o==="keyup"))return null;let s=e._normalizeKey(r.pop()),a="",l=r.indexOf("code");if(l>-1&&(r.splice(l,1),a="code."),V_.forEach(u=>{let d=r.indexOf(u);d>-1&&(r.splice(d,1),a+=u+".")}),a+=s,r.length!=0||s.length===0)return null;let c={};return c.domEventName=o,c.fullKey=a,c}static matchEventFullKeyCode(n,r){let o=EA[n.key]||n.key,s="";return r.indexOf("code.")>-1&&(o=n.code,s="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),V_.forEach(a=>{if(a!==o){let l=CA[a];l(n)&&(s+=a+".")}}),s+=o,s===r)}static eventCallback(n,r,o){return s=>{e.matchEventFullKeyCode(s,n)&&o.runGuarded(()=>r(s))}}static _normalizeKey(n){return n==="esc"?"escape":n}};e.\u0275fac=function(r){return new(r||e)(y(ae))},e.\u0275prov=E({token:e,factory:e.\u0275fac});let t=e;return t})();function xA(){hh.makeCurrent()}function SA(){return new pt}function TA(){return _y(document),document}var MA=[{provide:Rt,useValue:th},{provide:_f,useValue:xA,multi:!0},{provide:ae,useFactory:TA,deps:[]}],z_=zf(o_,"browser",MA),AA=new x(""),NA=[{provide:Zo,useClass:ph,deps:[]},{provide:Uf,useClass:Ll,deps:[R,jl,Zo]},{provide:Ll,useClass:Ll,deps:[R,jl,Zo]}],RA=[{provide:bl,useValue:"root"},{provide:pt,useFactory:SA,deps:[]},{provide:ec,useClass:wA,multi:!0,deps:[ae,R,Rt]},{provide:ec,useClass:IA,multi:!0,deps:[ae]},{provide:ec,useClass:DA,multi:!0},tc,U_,B_,{provide:ii,useExisting:tc},{provide:Br,useClass:pA,deps:[]},[]],ic=(()=>{let e=class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:$o,useValue:n.appId}]}}};e.\u0275fac=function(r){return new(r||e)(y(AA,12))},e.\u0275mod=ne({type:e}),e.\u0275inj=te({providers:[...RA,...NA],imports:[Hr,s_]});let t=e;return t})();var W_=(()=>{let e=class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}};e.\u0275fac=function(r){return new(r||e)(y(ae))},e.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var vh=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=E({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=y(OA),o},providedIn:"root"});let t=e;return t})(),OA=(()=>{let e=class e extends vh{constructor(n){super(),this._doc=n}sanitize(n,r){if(r==null)return null;switch(n){case Qe.NONE:return r;case Qe.HTML:return kn(r,"HTML")?Ot(r):Df(this._doc,String(r)).toString();case Qe.STYLE:return kn(r,"Style")?Ot(r):r;case Qe.SCRIPT:if(kn(r,"Script"))return Ot(r);throw new _(5200,!1);case Qe.URL:return kn(r,"URL")?Ot(r):Sl(String(r));case Qe.RESOURCE_URL:if(kn(r,"ResourceURL"))return Ot(r);throw new _(5201,!1);default:throw new _(5202,!1)}}bypassSecurityTrustHtml(n){return Cy(n)}bypassSecurityTrustStyle(n){return Iy(n)}bypassSecurityTrustScript(n){return xy(n)}bypassSecurityTrustUrl(n){return Sy(n)}bypassSecurityTrustResourceUrl(n){return Ty(n)}};e.\u0275fac=function(r){return new(r||e)(y(ae))},e.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var q=function(t){return t[t.State=0]="State",t[t.Transition=1]="Transition",t[t.Sequence=2]="Sequence",t[t.Group=3]="Group",t[t.Animate=4]="Animate",t[t.Keyframes=5]="Keyframes",t[t.Style=6]="Style",t[t.Trigger=7]="Trigger",t[t.Reference=8]="Reference",t[t.AnimateChild=9]="AnimateChild",t[t.AnimateRef=10]="AnimateRef",t[t.Query=11]="Query",t[t.Stagger=12]="Stagger",t}(q||{}),yn="*";function G_(t,e){return{type:q.Trigger,name:t,definitions:e,options:{}}}function q_(t,e=null){return{type:q.Animate,styles:e,timings:t}}function Q_(t,e=null){return{type:q.Sequence,steps:t,options:e}}function Wr(t){return{type:q.Style,styles:t,offset:null}}function Z_(t,e,i){return{type:q.State,name:t,styles:e,options:i}}function K_(t,e,i=null){return{type:q.Transition,expr:t,animation:e,options:i}}var ui=class{constructor(e=0,i=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+i}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){let i=e=="start"?this._onStartFns:this._onDoneFns;i.forEach(n=>n()),i.length=0}},rs=class{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let i=0,n=0,r=0,o=this.players.length;o==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++i==o&&this._onFinish()}),s.onDestroy(()=>{++n==o&&this._onDestroy()}),s.onStart(()=>{++r==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){let i=e*this.totalTime;this.players.forEach(n=>{let r=n.totalTime?Math.min(1,i/n.totalTime):1;n.setPosition(r)})}getPosition(){let e=this.players.reduce((i,n)=>i===null||n.totalTime>i.totalTime?n:i,null);return e!=null?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){let i=e=="start"?this._onStartFns:this._onDoneFns;i.forEach(n=>n()),i.length=0}},rc="!";function Y_(t){return new _(3e3,!1)}function kA(){return new _(3100,!1)}function FA(){return new _(3101,!1)}function PA(t){return new _(3001,!1)}function LA(t){return new _(3003,!1)}function jA(t){return new _(3004,!1)}function VA(t,e){return new _(3005,!1)}function BA(){return new _(3006,!1)}function UA(){return new _(3007,!1)}function $A(t,e){return new _(3008,!1)}function HA(t){return new _(3002,!1)}function zA(t,e,i,n,r){return new _(3010,!1)}function WA(){return new _(3011,!1)}function GA(){return new _(3012,!1)}function qA(){return new _(3200,!1)}function QA(){return new _(3202,!1)}function ZA(){return new _(3013,!1)}function KA(t){return new _(3014,!1)}function YA(t){return new _(3015,!1)}function XA(t){return new _(3016,!1)}function JA(t,e){return new _(3404,!1)}function eN(t){return new _(3502,!1)}function tN(t){return new _(3503,!1)}function nN(){return new _(3300,!1)}function iN(t){return new _(3504,!1)}function rN(t){return new _(3301,!1)}function oN(t,e){return new _(3302,!1)}function sN(t){return new _(3303,!1)}function aN(t,e){return new _(3400,!1)}function lN(t){return new _(3401,!1)}function cN(t){return new _(3402,!1)}function uN(t,e){return new _(3505,!1)}function di(t){switch(t.length){case 0:return new ui;case 1:return t[0];default:return new rs(t)}}function d0(t,e,i=new Map,n=new Map){let r=[],o=[],s=-1,a=null;if(e.forEach(l=>{let c=l.get("offset"),u=c==s,d=u&&a||new Map;l.forEach((h,f)=>{let p=f,v=h;if(f!=="offset")switch(p=t.normalizePropertyName(p,r),v){case rc:v=i.get(f);break;case yn:v=n.get(f);break;default:v=t.normalizeStyleValue(f,p,v,r);break}d.set(p,v)}),u||o.push(d),a=d,s=c}),r.length)throw eN(r);return o}function Uh(t,e,i,n){switch(e){case"start":t.onStart(()=>n(i&&bh(i,"start",t)));break;case"done":t.onDone(()=>n(i&&bh(i,"done",t)));break;case"destroy":t.onDestroy(()=>n(i&&bh(i,"destroy",t)));break}}function bh(t,e,i){let n=i.totalTime,r=!!i.disabled,o=$h(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,n??t.totalTime,r),s=t._data;return s!=null&&(o._data=s),o}function $h(t,e,i,n,r="",o=0,s){return{element:t,triggerName:e,fromState:i,toState:n,phaseName:r,totalTime:o,disabled:!!s}}function Dt(t,e,i){let n=t.get(e);return n||t.set(e,n=i),n}function X_(t){let e=t.indexOf(":"),i=t.substring(1,e),n=t.slice(e+1);return[i,n]}var dN=typeof document>"u"?null:document.documentElement;function Hh(t){let e=t.parentNode||t.host||null;return e===dN?null:e}function fN(t){return t.substring(1,6)=="ebkit"}var Gi=null,J_=!1;function hN(t){Gi||(Gi=pN()||{},J_=Gi.style?"WebkitAppearance"in Gi.style:!1);let e=!0;return Gi.style&&!fN(t)&&(e=t in Gi.style,!e&&J_&&(e="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in Gi.style)),e}function pN(){return typeof document<"u"?document.body:null}function f0(t,e){for(;e;){if(e===t)return!0;e=Hh(e)}return!1}function h0(t,e,i){if(i)return Array.from(t.querySelectorAll(e));let n=t.querySelector(e);return n?[n]:[]}var zh=(()=>{let e=class e{validateStyleProperty(n){return hN(n)}containsElement(n,r){return f0(n,r)}getParentElement(n){return Hh(n)}query(n,r,o){return h0(n,r,o)}computeStyle(n,r,o){return o||""}animate(n,r,o,s,a,l=[],c){return new ui(o,s)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=E({token:e,factory:e.\u0275fac});let t=e;return t})(),Qh=class Qh{};Qh.NOOP=new zh;var Zi=Qh,Ki=class{};var mN=1e3,p0="{{",gN="}}",m0="ng-enter",Ih="ng-leave",oc="ng-trigger",uc=".ng-trigger",e0="ng-animating",xh=".ng-animating";function Hn(t){if(typeof t=="number")return t;let e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Sh(parseFloat(e[1]),e[2])}function Sh(t,e){switch(e){case"s":return t*mN;default:return t}}function dc(t,e,i){return t.hasOwnProperty("duration")?t:vN(t,e,i)}function vN(t,e,i){let n=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,r,o=0,s="";if(typeof t=="string"){let a=t.match(n);if(a===null)return e.push(Y_(t)),{duration:0,delay:0,easing:""};r=Sh(parseFloat(a[1]),a[2]);let l=a[3];l!=null&&(o=Sh(parseFloat(l),a[4]));let c=a[5];c&&(s=c)}else r=t;if(!i){let a=!1,l=e.length;r<0&&(e.push(kA()),a=!0),o<0&&(e.push(FA()),a=!0),a&&e.splice(l,0,Y_(t))}return{duration:r,delay:o,easing:s}}function yN(t){return t.length?t[0]instanceof Map?t:t.map(e=>new Map(Object.entries(e))):[]}function bn(t,e,i){e.forEach((n,r)=>{let o=Wh(r);i&&!i.has(r)&&i.set(r,t.style[o]),t.style[o]=n})}function Qi(t,e){e.forEach((i,n)=>{let r=Wh(n);t.style[r]=""})}function os(t){return Array.isArray(t)?t.length==1?t[0]:Q_(t):t}function bN(t,e,i){let n=e.params||{},r=g0(t);r.length&&r.forEach(o=>{n.hasOwnProperty(o)||i.push(PA(o))})}var Th=new RegExp(`${p0}\\s*(.+?)\\s*${gN}`,"g");function g0(t){let e=[];if(typeof t=="string"){let i;for(;i=Th.exec(t);)e.push(i[1]);Th.lastIndex=0}return e}function as(t,e,i){let n=`${t}`,r=n.replace(Th,(o,s)=>{let a=e[s];return a==null&&(i.push(LA(s)),a=""),a.toString()});return r==n?t:r}var _N=/-+([a-z0-9])/g;function Wh(t){return t.replace(_N,(...e)=>e[1].toUpperCase())}function wN(t,e){return t===0||e===0}function DN(t,e,i){if(i.size&&e.length){let n=e[0],r=[];if(i.forEach((o,s)=>{n.has(s)||r.push(s),n.set(s,o)}),r.length)for(let o=1;os.set(a,Gh(t,a)))}}return e}function wt(t,e,i){switch(e.type){case q.Trigger:return t.visitTrigger(e,i);case q.State:return t.visitState(e,i);case q.Transition:return t.visitTransition(e,i);case q.Sequence:return t.visitSequence(e,i);case q.Group:return t.visitGroup(e,i);case q.Animate:return t.visitAnimate(e,i);case q.Keyframes:return t.visitKeyframes(e,i);case q.Style:return t.visitStyle(e,i);case q.Reference:return t.visitReference(e,i);case q.AnimateChild:return t.visitAnimateChild(e,i);case q.AnimateRef:return t.visitAnimateRef(e,i);case q.Query:return t.visitQuery(e,i);case q.Stagger:return t.visitStagger(e,i);default:throw jA(e.type)}}function Gh(t,e){return window.getComputedStyle(t)[e]}var EN=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),fc=class extends Ki{normalizePropertyName(e,i){return Wh(e)}normalizeStyleValue(e,i,n,r){let o="",s=n.toString().trim();if(EN.has(i)&&n!==0&&n!=="0")if(typeof n=="number")o="px";else{let a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&r.push(VA(e,n))}return s+o}};var hc="*";function CN(t,e){let i=[];return typeof t=="string"?t.split(/\s*,\s*/).forEach(n=>IN(n,i,e)):i.push(t),i}function IN(t,e,i){if(t[0]==":"){let l=xN(t,i);if(typeof l=="function"){e.push(l);return}t=l}let n=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(n==null||n.length<4)return i.push(YA(t)),e;let r=n[1],o=n[2],s=n[3];e.push(t0(r,s));let a=r==hc&&s==hc;o[0]=="<"&&!a&&e.push(t0(s,r))}function xN(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(i,n)=>parseFloat(n)>parseFloat(i);case":decrement":return(i,n)=>parseFloat(n) *"}}var sc=new Set(["true","1"]),ac=new Set(["false","0"]);function t0(t,e){let i=sc.has(t)||ac.has(t),n=sc.has(e)||ac.has(e);return(r,o)=>{let s=t==hc||t==r,a=e==hc||e==o;return!s&&i&&typeof r=="boolean"&&(s=r?sc.has(t):ac.has(t)),!a&&n&&typeof o=="boolean"&&(a=o?sc.has(e):ac.has(e)),s&&a}}var v0=":self",SN=new RegExp(`s*${v0}s*,?`,"g");function y0(t,e,i,n){return new Mh(t).build(e,i,n)}var n0="",Mh=class{constructor(e){this._driver=e}build(e,i,n){let r=new Ah(i);return this._resetContextStyleTimingState(r),wt(this,os(e),r)}_resetContextStyleTimingState(e){e.currentQuerySelector=n0,e.collectedStyles=new Map,e.collectedStyles.set(n0,new Map),e.currentTime=0}visitTrigger(e,i){let n=i.queryCount=0,r=i.depCount=0,o=[],s=[];return e.name.charAt(0)=="@"&&i.errors.push(BA()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(i),a.type==q.State){let l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,o.push(this.visitState(l,i))}),l.name=c}else if(a.type==q.Transition){let l=this.visitTransition(a,i);n+=l.queryCount,r+=l.depCount,s.push(l)}else i.errors.push(UA())}),{type:q.Trigger,name:e.name,states:o,transitions:s,queryCount:n,depCount:r,options:null}}visitState(e,i){let n=this.visitStyle(e.styles,i),r=e.options&&e.options.params||null;if(n.containsDynamicStyles){let o=new Set,s=r||{};n.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{g0(l).forEach(c=>{s.hasOwnProperty(c)||o.add(c)})})}),o.size&&i.errors.push($A(e.name,[...o.values()]))}return{type:q.State,name:e.name,style:n,options:r?{params:r}:null}}visitTransition(e,i){i.queryCount=0,i.depCount=0;let n=wt(this,os(e.animation),i),r=CN(e.expr,i.errors);return{type:q.Transition,matchers:r,animation:n,queryCount:i.queryCount,depCount:i.depCount,options:qi(e.options)}}visitSequence(e,i){return{type:q.Sequence,steps:e.steps.map(n=>wt(this,n,i)),options:qi(e.options)}}visitGroup(e,i){let n=i.currentTime,r=0,o=e.steps.map(s=>{i.currentTime=n;let a=wt(this,s,i);return r=Math.max(r,i.currentTime),a});return i.currentTime=r,{type:q.Group,steps:o,options:qi(e.options)}}visitAnimate(e,i){let n=NN(e.timings,i.errors);i.currentAnimateTimings=n;let r,o=e.styles?e.styles:Wr({});if(o.type==q.Keyframes)r=this.visitKeyframes(o,i);else{let s=e.styles,a=!1;if(!s){a=!0;let c={};n.easing&&(c.easing=n.easing),s=Wr(c)}i.currentTime+=n.duration+n.delay;let l=this.visitStyle(s,i);l.isEmptyStep=a,r=l}return i.currentAnimateTimings=null,{type:q.Animate,timings:n,style:r,options:null}}visitStyle(e,i){let n=this._makeStyleAst(e,i);return this._validateStyleAst(n,i),n}_makeStyleAst(e,i){let n=[],r=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of r)typeof a=="string"?a===yn?n.push(a):i.errors.push(HA(a)):n.push(new Map(Object.entries(a)));let o=!1,s=null;return n.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!o)){for(let l of a.values())if(l.toString().indexOf(p0)>=0){o=!0;break}}}),{type:q.Style,styles:n,easing:s,offset:e.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(e,i){let n=i.currentAnimateTimings,r=i.currentTime,o=i.currentTime;n&&o>0&&(o-=n.duration+n.delay),e.styles.forEach(s=>{typeof s!="string"&&s.forEach((a,l)=>{let c=i.collectedStyles.get(i.currentQuerySelector),u=c.get(l),d=!0;u&&(o!=r&&o>=u.startTime&&r<=u.endTime&&(i.errors.push(zA(l,u.startTime,u.endTime,o,r)),d=!1),o=u.startTime),d&&c.set(l,{startTime:o,endTime:r}),i.options&&bN(a,i.options,i.errors)})})}visitKeyframes(e,i){let n={type:q.Keyframes,styles:[],options:null};if(!i.currentAnimateTimings)return i.errors.push(WA()),n;let r=1,o=0,s=[],a=!1,l=!1,c=0,u=e.steps.map(S=>{let k=this._makeStyleAst(S,i),Z=k.offset!=null?k.offset:AN(k.styles),U=0;return Z!=null&&(o++,U=k.offset=Z),l=l||U<0||U>1,a=a||U0&&o{let Z=h>0?k==f?1:h*k:s[k],U=Z*w;i.currentTime=p+v.delay+U,v.duration=U,this._validateStyleAst(S,i),S.offset=Z,n.styles.push(S)}),n}visitReference(e,i){return{type:q.Reference,animation:wt(this,os(e.animation),i),options:qi(e.options)}}visitAnimateChild(e,i){return i.depCount++,{type:q.AnimateChild,options:qi(e.options)}}visitAnimateRef(e,i){return{type:q.AnimateRef,animation:this.visitReference(e.animation,i),options:qi(e.options)}}visitQuery(e,i){let n=i.currentQuerySelector,r=e.options||{};i.queryCount++,i.currentQuery=e;let[o,s]=TN(e.selector);i.currentQuerySelector=n.length?n+" "+o:o,Dt(i.collectedStyles,i.currentQuerySelector,new Map);let a=wt(this,os(e.animation),i);return i.currentQuery=null,i.currentQuerySelector=n,{type:q.Query,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:e.selector,options:qi(e.options)}}visitStagger(e,i){i.currentQuery||i.errors.push(ZA());let n=e.timings==="full"?{duration:0,delay:0,easing:"full"}:dc(e.timings,i.errors,!0);return{type:q.Stagger,animation:wt(this,os(e.animation),i),timings:n,options:null}}};function TN(t){let e=!!t.split(/\s*,\s*/).find(i=>i==v0);return e&&(t=t.replace(SN,"")),t=t.replace(/@\*/g,uc).replace(/@\w+/g,i=>uc+"-"+i.slice(1)).replace(/:animating/g,xh),[t,e]}function MN(t){return t?b({},t):null}var Ah=class{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}};function AN(t){if(typeof t=="string")return null;let e=null;if(Array.isArray(t))t.forEach(i=>{if(i instanceof Map&&i.has("offset")){let n=i;e=parseFloat(n.get("offset")),n.delete("offset")}});else if(t instanceof Map&&t.has("offset")){let i=t;e=parseFloat(i.get("offset")),i.delete("offset")}return e}function NN(t,e){if(t.hasOwnProperty("duration"))return t;if(typeof t=="number"){let o=dc(t,e).duration;return _h(o,0,"")}let i=t;if(i.split(/\s+/).some(o=>o.charAt(0)=="{"&&o.charAt(1)=="{")){let o=_h(0,0,"");return o.dynamic=!0,o.strValue=i,o}let r=dc(i,e);return _h(r.duration,r.delay,r.easing)}function qi(t){return t?(t=b({},t),t.params&&(t.params=MN(t.params))):t={},t}function _h(t,e,i){return{duration:t,delay:e,easing:i}}function qh(t,e,i,n,r,o,s=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:i,postStyleProps:n,duration:r,delay:o,totalTime:r+o,easing:s,subTimeline:a}}var ls=class{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,i){let n=this._map.get(e);n||this._map.set(e,n=[]),n.push(...i)}has(e){return this._map.has(e)}clear(){this._map.clear()}},RN=1,ON=":enter",kN=new RegExp(ON,"g"),FN=":leave",PN=new RegExp(FN,"g");function b0(t,e,i,n,r,o=new Map,s=new Map,a,l,c=[]){return new Nh().buildKeyframes(t,e,i,n,r,o,s,a,l,c)}var Nh=class{buildKeyframes(e,i,n,r,o,s,a,l,c,u=[]){c=c||new ls;let d=new Rh(e,i,c,r,o,u,[]);d.options=l;let h=l.delay?Hn(l.delay):0;d.currentTimeline.delayNextStep(h),d.currentTimeline.setStyles([s],null,d.errors,l),wt(this,n,d);let f=d.timelines.filter(p=>p.containsAnimation());if(f.length&&a.size){let p;for(let v=f.length-1;v>=0;v--){let w=f[v];if(w.element===i){p=w;break}}p&&!p.allowOnlyTimelineStyles()&&p.setStyles([a],null,d.errors,l)}return f.length?f.map(p=>p.buildKeyframes()):[qh(i,[],[],[],0,h,"",!1)]}visitTrigger(e,i){}visitState(e,i){}visitTransition(e,i){}visitAnimateChild(e,i){let n=i.subInstructions.get(i.element);if(n){let r=i.createSubContext(e.options),o=i.currentTimeline.currentTime,s=this._visitSubInstructions(n,r,r.options);o!=s&&i.transformIntoNewTimeline(s)}i.previousNode=e}visitAnimateRef(e,i){let n=i.createSubContext(e.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],i,n),this.visitReference(e.animation,n),i.transformIntoNewTimeline(n.currentTimeline.currentTime),i.previousNode=e}_applyAnimationRefDelays(e,i,n){for(let r of e){let o=r?.delay;if(o){let s=typeof o=="number"?o:Hn(as(o,r?.params??{},i.errors));n.delayNextStep(s)}}}_visitSubInstructions(e,i,n){let o=i.currentTimeline.currentTime,s=n.duration!=null?Hn(n.duration):null,a=n.delay!=null?Hn(n.delay):null;return s!==0&&e.forEach(l=>{let c=i.appendInstructionToTimeline(l,s,a);o=Math.max(o,c.duration+c.delay)}),o}visitReference(e,i){i.updateOptions(e.options,!0),wt(this,e.animation,i),i.previousNode=e}visitSequence(e,i){let n=i.subContextCount,r=i,o=e.options;if(o&&(o.params||o.delay)&&(r=i.createSubContext(o),r.transformIntoNewTimeline(),o.delay!=null)){r.previousNode.type==q.Style&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=pc);let s=Hn(o.delay);r.delayNextStep(s)}e.steps.length&&(e.steps.forEach(s=>wt(this,s,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>n&&r.transformIntoNewTimeline()),i.previousNode=e}visitGroup(e,i){let n=[],r=i.currentTimeline.currentTime,o=e.options&&e.options.delay?Hn(e.options.delay):0;e.steps.forEach(s=>{let a=i.createSubContext(e.options);o&&a.delayNextStep(o),wt(this,s,a),r=Math.max(r,a.currentTimeline.currentTime),n.push(a.currentTimeline)}),n.forEach(s=>i.currentTimeline.mergeTimelineCollectedStyles(s)),i.transformIntoNewTimeline(r),i.previousNode=e}_visitTiming(e,i){if(e.dynamic){let n=e.strValue,r=i.params?as(n,i.params,i.errors):n;return dc(r,i.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,i){let n=i.currentAnimateTimings=this._visitTiming(e.timings,i),r=i.currentTimeline;n.delay&&(i.incrementTime(n.delay),r.snapshotCurrentStyles());let o=e.style;o.type==q.Keyframes?this.visitKeyframes(o,i):(i.incrementTime(n.duration),this.visitStyle(o,i),r.applyStylesToKeyframe()),i.currentAnimateTimings=null,i.previousNode=e}visitStyle(e,i){let n=i.currentTimeline,r=i.currentAnimateTimings;!r&&n.hasCurrentStyleProperties()&&n.forwardFrame();let o=r&&r.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(o):n.setStyles(e.styles,o,i.errors,i.options),i.previousNode=e}visitKeyframes(e,i){let n=i.currentAnimateTimings,r=i.currentTimeline.duration,o=n.duration,a=i.createSubContext().currentTimeline;a.easing=n.easing,e.styles.forEach(l=>{let c=l.offset||0;a.forwardTime(c*o),a.setStyles(l.styles,l.easing,i.errors,i.options),a.applyStylesToKeyframe()}),i.currentTimeline.mergeTimelineCollectedStyles(a),i.transformIntoNewTimeline(r+o),i.previousNode=e}visitQuery(e,i){let n=i.currentTimeline.currentTime,r=e.options||{},o=r.delay?Hn(r.delay):0;o&&(i.previousNode.type===q.Style||n==0&&i.currentTimeline.hasCurrentStyleProperties())&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=pc);let s=n,a=i.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,i.errors);i.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{i.currentQueryIndex=u;let d=i.createSubContext(e.options,c);o&&d.delayNextStep(o),c===i.element&&(l=d.currentTimeline),wt(this,e.animation,d),d.currentTimeline.applyStylesToKeyframe();let h=d.currentTimeline.currentTime;s=Math.max(s,h)}),i.currentQueryIndex=0,i.currentQueryTotal=0,i.transformIntoNewTimeline(s),l&&(i.currentTimeline.mergeTimelineCollectedStyles(l),i.currentTimeline.snapshotCurrentStyles()),i.previousNode=e}visitStagger(e,i){let n=i.parentContext,r=i.currentTimeline,o=e.timings,s=Math.abs(o.duration),a=s*(i.currentQueryTotal-1),l=s*i.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=a-l;break;case"full":l=n.currentStaggerTime;break}let u=i.currentTimeline;l&&u.delayNextStep(l);let d=u.currentTime;wt(this,e.animation,i),i.previousNode=e,n.currentStaggerTime=r.currentTime-d+(r.startTime-n.currentTimeline.startTime)}},pc={},Rh=class t{constructor(e,i,n,r,o,s,a,l){this._driver=e,this.element=i,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=o,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=pc,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new mc(this._driver,i,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,i){if(!e)return;let n=e,r=this.options;n.duration!=null&&(r.duration=Hn(n.duration)),n.delay!=null&&(r.delay=Hn(n.delay));let o=n.params;if(o){let s=r.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!i||!s.hasOwnProperty(a))&&(s[a]=as(o[a],s,this.errors))})}}_copyOptions(){let e={};if(this.options){let i=this.options.params;if(i){let n=e.params={};Object.keys(i).forEach(r=>{n[r]=i[r]})}}return e}createSubContext(e=null,i,n){let r=i||this.element,o=new t(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,n||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(e),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(e){return this.previousNode=pc,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,i,n){let r={duration:i??e.duration,delay:this.currentTimeline.currentTime+(n??0)+e.delay,easing:""},o=new Oh(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,i,n,r,o,s){let a=[];if(r&&a.push(this.element),e.length>0){e=e.replace(kN,"."+this._enterClassName),e=e.replace(PN,"."+this._leaveClassName);let l=n!=1,c=this._driver.query(this.element,e,l);n!==0&&(c=n<0?c.slice(c.length+n,c.length):c.slice(0,n)),a.push(...c)}return!o&&a.length==0&&s.push(KA(i)),a}},mc=class t{constructor(e,i,n,r){this._driver=e,this.element=i,this.startTime=n,this._elementTimelineStylesLookup=r,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(i),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(i,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let i=this._keyframes.size===1&&this._pendingStyles.size;this.duration||i?(this.forwardTime(this.currentTime+e),i&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,i){return this.applyStylesToKeyframe(),new t(this._driver,e,i||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=RN,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,i){this._localTimelineStyles.set(e,i),this._globalTimelineStyles.set(e,i),this._styleSummary.set(e,{time:this.currentTime,value:i})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[i,n]of this._globalTimelineStyles)this._backFill.set(i,n||yn),this._currentKeyframe.set(i,yn);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,i,n,r){i&&this._previousKeyframe.set("easing",i);let o=r&&r.params||{},s=LN(e,this._globalTimelineStyles);for(let[a,l]of s){let c=as(l,o,n);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??yn),this._updateStyle(a,c)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,i)=>{this._currentKeyframe.set(i,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,i)=>{this._currentKeyframe.has(i)||this._currentKeyframe.set(i,e)}))}snapshotCurrentStyles(){for(let[e,i]of this._localTimelineStyles)this._pendingStyles.set(e,i),this._updateStyle(e,i)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let i in this._currentKeyframe)e.push(i);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((i,n)=>{let r=this._styleSummary.get(n);(!r||i.time>r.time)&&this._updateStyle(n,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,i=new Set,n=this._keyframes.size===1&&this.duration===0,r=[];this._keyframes.forEach((a,l)=>{let c=new Map([...this._backFill,...a]);c.forEach((u,d)=>{u===rc?e.add(d):u===yn&&i.add(d)}),n||c.set("offset",l/this.duration),r.push(c)});let o=[...e.values()],s=[...i.values()];if(n){let a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return qh(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)}},Oh=class extends mc{constructor(e,i,n,r,o,s,a=!1){super(e,i,s.delay),this.keyframes=n,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:i,duration:n,easing:r}=this.timings;if(this._stretchStartingKeyframe&&i){let o=[],s=n+i,a=i/s,l=new Map(e[0]);l.set("offset",0),o.push(l);let c=new Map(e[0]);c.set("offset",i0(a)),o.push(c);let u=e.length-1;for(let d=1;d<=u;d++){let h=new Map(e[d]),f=h.get("offset"),p=i+f*n;h.set("offset",i0(p/s)),o.push(h)}n=s,i=0,r="",e=o}return qh(this.element,e,this.preStyleProps,this.postStyleProps,n,i,r,!0)}};function i0(t,e=3){let i=Math.pow(10,e-1);return Math.round(t*i)/i}function LN(t,e){let i=new Map,n;return t.forEach(r=>{if(r==="*"){n??=e.keys();for(let o of n)i.set(o,yn)}else for(let[o,s]of r)i.set(o,s)}),i}function r0(t,e,i,n,r,o,s,a,l,c,u,d,h){return{type:0,element:t,triggerName:e,isRemovalTransition:r,fromState:i,fromStyles:o,toState:n,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:h}}var wh={},gc=class{constructor(e,i,n){this._triggerName=e,this.ast=i,this._stateStyles=n}match(e,i,n,r){return jN(this.ast.matchers,e,i,n,r)}buildStyles(e,i,n){let r=this._stateStyles.get("*");return e!==void 0&&(r=this._stateStyles.get(e?.toString())||r),r?r.buildStyles(i,n):new Map}build(e,i,n,r,o,s,a,l,c,u){let d=[],h=this.ast.options&&this.ast.options.params||wh,f=a&&a.params||wh,p=this.buildStyles(n,f,d),v=l&&l.params||wh,w=this.buildStyles(r,v,d),S=new Set,k=new Map,Z=new Map,U=r==="void",Ve={params:_0(v,h),delay:this.ast.options?.delay},ce=u?[]:b0(e,i,this.ast.animation,o,s,p,w,Ve,c,d),ge=0;return ce.forEach(Re=>{ge=Math.max(Re.duration+Re.delay,ge)}),d.length?r0(i,this._triggerName,n,r,U,p,w,[],[],k,Z,ge,d):(ce.forEach(Re=>{let Dn=Re.element,sr=Dt(k,Dn,new Set);Re.preStyleProps.forEach(bi=>sr.add(bi));let mm=Dt(Z,Dn,new Set);Re.postStyleProps.forEach(bi=>mm.add(bi)),Dn!==i&&S.add(Dn)}),r0(i,this._triggerName,n,r,U,p,w,ce,[...S.values()],k,Z,ge))}};function jN(t,e,i,n,r){return t.some(o=>o(e,i,n,r))}function _0(t,e){let i=b({},e);return Object.entries(t).forEach(([n,r])=>{r!=null&&(i[n]=r)}),i}var kh=class{constructor(e,i,n){this.styles=e,this.defaultParams=i,this.normalizer=n}buildStyles(e,i){let n=new Map,r=_0(e,this.defaultParams);return this.styles.styles.forEach(o=>{typeof o!="string"&&o.forEach((s,a)=>{s&&(s=as(s,r,i));let l=this.normalizer.normalizePropertyName(a,i);s=this.normalizer.normalizeStyleValue(a,l,s,i),n.set(a,s)})}),n}};function VN(t,e,i){return new Fh(t,e,i)}var Fh=class{constructor(e,i,n){this.name=e,this.ast=i,this._normalizer=n,this.transitionFactories=[],this.states=new Map,i.states.forEach(r=>{let o=r.options&&r.options.params||{};this.states.set(r.name,new kh(r.style,o,n))}),o0(this.states,"true","1"),o0(this.states,"false","0"),i.transitions.forEach(r=>{this.transitionFactories.push(new gc(e,r,this.states))}),this.fallbackTransition=BN(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,i,n,r){return this.transitionFactories.find(s=>s.match(e,i,n,r))||null}matchStyles(e,i,n){return this.fallbackTransition.buildStyles(e,i,n)}};function BN(t,e,i){let n=[(s,a)=>!0],r={type:q.Sequence,steps:[],options:null},o={type:q.Transition,animation:r,matchers:n,options:null,queryCount:0,depCount:0};return new gc(t,o,e)}function o0(t,e,i){t.has(e)?t.has(i)||t.set(i,t.get(e)):t.has(i)&&t.set(e,t.get(i))}var UN=new ls,Ph=class{constructor(e,i,n){this.bodyNode=e,this._driver=i,this._normalizer=n,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,i){let n=[],r=[],o=y0(this._driver,i,n,r);if(n.length)throw tN(n);r.length&&void 0,this._animations.set(e,o)}_buildPlayer(e,i,n){let r=e.element,o=d0(this._normalizer,e.keyframes,i,n);return this._driver.animate(r,o,e.duration,e.delay,e.easing,[],!0)}create(e,i,n={}){let r=[],o=this._animations.get(e),s,a=new Map;if(o?(s=b0(this._driver,i,o,m0,Ih,new Map,new Map,n,UN,r),s.forEach(u=>{let d=Dt(a,u.element,new Map);u.postStyleProps.forEach(h=>d.set(h,null))})):(r.push(nN()),s=[]),r.length)throw iN(r);a.forEach((u,d)=>{u.forEach((h,f)=>{u.set(f,this._driver.computeStyle(d,f,yn))})});let l=s.map(u=>{let d=a.get(u.element);return this._buildPlayer(u,new Map,d)}),c=di(l);return this._playersById.set(e,c),c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){let i=this._getPlayer(e);i.destroy(),this._playersById.delete(e);let n=this.players.indexOf(i);n>=0&&this.players.splice(n,1)}_getPlayer(e){let i=this._playersById.get(e);if(!i)throw rN(e);return i}listen(e,i,n,r){let o=$h(i,"","","");return Uh(this._getPlayer(e),n,o,r),()=>{}}command(e,i,n,r){if(n=="register"){this.register(e,r[0]);return}if(n=="create"){let s=r[0]||{};this.create(e,i,s);return}let o=this._getPlayer(e);switch(n){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(e);break}}},s0="ng-animate-queued",$N=".ng-animate-queued",Dh="ng-animate-disabled",HN=".ng-animate-disabled",zN="ng-star-inserted",WN=".ng-star-inserted",GN=[],w0={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},qN={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Zt="__ng_removed",cs=class{get params(){return this.options.params}constructor(e,i=""){this.namespaceId=i;let n=e&&e.hasOwnProperty("value"),r=n?e.value:e;if(this.value=ZN(r),n){let o=e,{value:s}=o,a=gu(o,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let i=e.params;if(i){let n=this.options.params;Object.keys(i).forEach(r=>{n[r]==null&&(n[r]=i[r])})}}},ss="void",Eh=new cs(ss),Lh=class{constructor(e,i,n){this.id=e,this.hostElement=i,this._engine=n,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Lt(i,this._hostClassName)}listen(e,i,n,r){if(!this._triggers.has(i))throw oN(n,i);if(n==null||n.length==0)throw sN(i);if(!KN(n))throw aN(n,i);let o=Dt(this._elementListeners,e,[]),s={name:i,phase:n,callback:r};o.push(s);let a=Dt(this._engine.statesByElement,e,new Map);return a.has(i)||(Lt(e,oc),Lt(e,oc+"-"+i),a.set(i,Eh)),()=>{this._engine.afterFlush(()=>{let l=o.indexOf(s);l>=0&&o.splice(l,1),this._triggers.has(i)||a.delete(i)})}}register(e,i){return this._triggers.has(e)?!1:(this._triggers.set(e,i),!0)}_getTrigger(e){let i=this._triggers.get(e);if(!i)throw lN(e);return i}trigger(e,i,n,r=!0){let o=this._getTrigger(i),s=new us(this.id,i,e),a=this._engine.statesByElement.get(e);a||(Lt(e,oc),Lt(e,oc+"-"+i),this._engine.statesByElement.set(e,a=new Map));let l=a.get(i),c=new cs(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(i,c),l||(l=Eh),!(c.value===ss)&&l.value===c.value){if(!JN(l.params,c.params)){let v=[],w=o.matchStyles(l.value,l.params,v),S=o.matchStyles(c.value,c.params,v);v.length?this._engine.reportError(v):this._engine.afterFlush(()=>{Qi(e,w),bn(e,S)})}return}let h=Dt(this._engine.playersByElement,e,[]);h.forEach(v=>{v.namespaceId==this.id&&v.triggerName==i&&v.queued&&v.destroy()});let f=o.matchTransition(l.value,c.value,e,c.params),p=!1;if(!f){if(!r)return;f=o.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:i,transition:f,fromState:l,toState:c,player:s,isFallbackTransition:p}),p||(Lt(e,s0),s.onStart(()=>{Gr(e,s0)})),s.onDone(()=>{let v=this.players.indexOf(s);v>=0&&this.players.splice(v,1);let w=this._engine.playersByElement.get(e);if(w){let S=w.indexOf(s);S>=0&&w.splice(S,1)}}),this.players.push(s),h.push(s),s}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(i=>i.delete(e)),this._elementListeners.forEach((i,n)=>{this._elementListeners.set(n,i.filter(r=>r.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let i=this._engine.playersByElement.get(e);i&&(i.forEach(n=>n.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,i){let n=this._engine.driver.query(e,uc,!0);n.forEach(r=>{if(r[Zt])return;let o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(s=>s.triggerLeaveAnimation(r,i,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(e,i,n,r){let o=this._engine.statesByElement.get(e),s=new Map;if(o){let a=[];if(o.forEach((l,c)=>{if(s.set(c,l.value),this._triggers.has(c)){let u=this.trigger(e,c,ss,r);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,i,s),n&&di(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let i=this._elementListeners.get(e),n=this._engine.statesByElement.get(e);if(i&&n){let r=new Set;i.forEach(o=>{let s=o.name;if(r.has(s))return;r.add(s);let l=this._triggers.get(s).fallbackTransition,c=n.get(s)||Eh,u=new cs(ss),d=new us(this.id,s,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:s,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(e,i){let n=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,i),this.triggerLeaveAnimation(e,i,!0))return;let r=!1;if(n.totalAnimations){let o=n.players.length?n.playersByQueriedElement.get(e):[];if(o&&o.length)r=!0;else{let s=e;for(;s=s.parentNode;)if(n.statesByElement.get(s)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(e),r)n.markElementAsRemoved(this.id,e,!1,i);else{let o=e[Zt];(!o||o===w0)&&(n.afterFlush(()=>this.clearElementCache(e)),n.destroyInnerAnimations(e),n._onRemovalComplete(e,i))}}insertNode(e,i){Lt(e,this._hostClassName)}drainQueuedTransitions(e){let i=[];return this._queue.forEach(n=>{let r=n.player;if(r.destroyed)return;let o=n.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==n.triggerName){let l=$h(o,n.triggerName,n.fromState.value,n.toState.value);l._data=e,Uh(n.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):i.push(n)}),this._queue=[],i.sort((n,r)=>{let o=n.transition.ast.depCount,s=r.transition.ast.depCount;return o==0||s==0?o-s:this._engine.driver.containsElement(n.element,r.element)?1:-1})}destroy(e){this.players.forEach(i=>i.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},jh=class{_onRemovalComplete(e,i){this.onRemovalComplete(e,i)}constructor(e,i,n){this.bodyNode=e,this.driver=i,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,o)=>{}}get queuedPlayers(){let e=[];return this._namespaceList.forEach(i=>{i.players.forEach(n=>{n.queued&&e.push(n)})}),e}createNamespace(e,i){let n=new Lh(e,i,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,i)?this._balanceNamespaceList(n,i):(this.newHostElements.set(i,n),this.collectEnterElement(i)),this._namespaceLookup[e]=n}_balanceNamespaceList(e,i){let n=this._namespaceList,r=this.namespacesByHostElement;if(n.length-1>=0){let s=!1,a=this.driver.getParentElement(i);for(;a;){let l=r.get(a);if(l){let c=n.indexOf(l);n.splice(c+1,0,e),s=!0;break}a=this.driver.getParentElement(a)}s||n.unshift(e)}else n.push(e);return r.set(i,e),e}register(e,i){let n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,i)),n}registerTrigger(e,i,n){let r=this._namespaceLookup[e];r&&r.register(i,n)&&this.totalAnimations++}destroy(e,i){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let n=this._fetchNamespace(e);this.namespacesByHostElement.delete(n.hostElement);let r=this._namespaceList.indexOf(n);r>=0&&this._namespaceList.splice(r,1),n.destroy(i),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let i=new Set,n=this.statesByElement.get(e);if(n){for(let r of n.values())if(r.namespaceId){let o=this._fetchNamespace(r.namespaceId);o&&i.add(o)}}return i}trigger(e,i,n,r){if(lc(i)){let o=this._fetchNamespace(e);if(o)return o.trigger(i,n,r),!0}return!1}insertNode(e,i,n,r){if(!lc(i))return;let o=i[Zt];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;let s=this.collectedLeaveElements.indexOf(i);s>=0&&this.collectedLeaveElements.splice(s,1)}if(e){let s=this._fetchNamespace(e);s&&s.insertNode(i,n)}r&&this.collectEnterElement(i)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,i){i?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Lt(e,Dh)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Gr(e,Dh))}removeNode(e,i,n){if(lc(i)){let r=e?this._fetchNamespace(e):null;r?r.removeNode(i,n):this.markElementAsRemoved(e,i,!1,n);let o=this.namespacesByHostElement.get(i);o&&o.id!==e&&o.removeNode(i,n)}else this._onRemovalComplete(i,n)}markElementAsRemoved(e,i,n,r,o){this.collectedLeaveElements.push(i),i[Zt]={namespaceId:e,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:o}}listen(e,i,n,r,o){return lc(i)?this._fetchNamespace(e).listen(i,n,r,o):()=>{}}_buildInstruction(e,i,n,r,o){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,r,e.fromState.options,e.toState.options,i,o)}destroyInnerAnimations(e){let i=this.driver.query(e,uc,!0);i.forEach(n=>this.destroyActiveAnimationsForElement(n)),this.playersByQueriedElement.size!=0&&(i=this.driver.query(e,xh,!0),i.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(e){let i=this.playersByElement.get(e);i&&i.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(e){let i=this.playersByQueriedElement.get(e);i&&i.forEach(n=>n.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return di(this.players).onDone(()=>e());e()})}processLeaveNode(e){let i=e[Zt];if(i&&i.setForRemoval){if(e[Zt]=w0,i.namespaceId){this.destroyInnerAnimations(e);let n=this._fetchNamespace(i.namespaceId);n&&n.clearElementCache(e)}this._onRemovalComplete(e,i.setForRemoval)}e.classList?.contains(Dh)&&this.markElementAsDisabled(e,!1),this.driver.query(e,HN,!0).forEach(n=>{this.markElementAsDisabled(n,!1)})}flush(e=-1){let i=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,r)=>this._balanceNamespaceList(n,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;nn()),this._flushFns=[],this._whenQuietFns.length){let n=this._whenQuietFns;this._whenQuietFns=[],i.length?di(i).onDone(()=>{n.forEach(r=>r())}):n.forEach(r=>r())}}reportError(e){throw cN(e)}_flushAnimations(e,i){let n=new ls,r=[],o=new Map,s=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(T=>{u.add(T);let F=this.driver.query(T,$N,!0);for(let j=0;j{let j=m0+v++;p.set(F,j),T.forEach(le=>Lt(le,j))});let w=[],S=new Set,k=new Set;for(let T=0;TS.add(le)):k.add(F))}let Z=new Map,U=c0(h,Array.from(S));U.forEach((T,F)=>{let j=Ih+v++;Z.set(F,j),T.forEach(le=>Lt(le,j))}),e.push(()=>{f.forEach((T,F)=>{let j=p.get(F);T.forEach(le=>Gr(le,j))}),U.forEach((T,F)=>{let j=Z.get(F);T.forEach(le=>Gr(le,j))}),w.forEach(T=>{this.processLeaveNode(T)})});let Ve=[],ce=[];for(let T=this._namespaceList.length-1;T>=0;T--)this._namespaceList[T].drainQueuedTransitions(i).forEach(j=>{let le=j.player,ze=j.element;if(Ve.push(le),this.collectedEnterElements.length){let Ke=ze[Zt];if(Ke&&Ke.setForMove){if(Ke.previousTriggersValues&&Ke.previousTriggersValues.has(j.triggerName)){let _i=Ke.previousTriggersValues.get(j.triggerName),It=this.statesByElement.get(j.element);if(It&&It.has(j.triggerName)){let $s=It.get(j.triggerName);$s.value=_i,It.set(j.triggerName,$s)}}le.destroy();return}}let Jt=!d||!this.driver.containsElement(d,ze),gt=Z.get(ze),qn=p.get(ze),xe=this._buildInstruction(j,n,qn,gt,Jt);if(xe.errors&&xe.errors.length){ce.push(xe);return}if(Jt){le.onStart(()=>Qi(ze,xe.fromStyles)),le.onDestroy(()=>bn(ze,xe.toStyles)),r.push(le);return}if(j.isFallbackTransition){le.onStart(()=>Qi(ze,xe.fromStyles)),le.onDestroy(()=>bn(ze,xe.toStyles)),r.push(le);return}let ym=[];xe.timelines.forEach(Ke=>{Ke.stretchStartingKeyframe=!0,this.disabledNodes.has(Ke.element)||ym.push(Ke)}),xe.timelines=ym,n.append(ze,xe.timelines);let rE={instruction:xe,player:le,element:ze};s.push(rE),xe.queriedElements.forEach(Ke=>Dt(a,Ke,[]).push(le)),xe.preStyleProps.forEach((Ke,_i)=>{if(Ke.size){let It=l.get(_i);It||l.set(_i,It=new Set),Ke.forEach(($s,mu)=>It.add(mu))}}),xe.postStyleProps.forEach((Ke,_i)=>{let It=c.get(_i);It||c.set(_i,It=new Set),Ke.forEach(($s,mu)=>It.add(mu))})});if(ce.length){let T=[];ce.forEach(F=>{T.push(uN(F.triggerName,F.errors))}),Ve.forEach(F=>F.destroy()),this.reportError(T)}let ge=new Map,Re=new Map;s.forEach(T=>{let F=T.element;n.has(F)&&(Re.set(F,F),this._beforeAnimationBuild(T.player.namespaceId,T.instruction,ge))}),r.forEach(T=>{let F=T.element;this._getPreviousPlayers(F,!1,T.namespaceId,T.triggerName,null).forEach(le=>{Dt(ge,F,[]).push(le),le.destroy()})});let Dn=w.filter(T=>u0(T,l,c)),sr=new Map;l0(sr,this.driver,k,c,yn).forEach(T=>{u0(T,l,c)&&Dn.push(T)});let bi=new Map;f.forEach((T,F)=>{l0(bi,this.driver,new Set(T),l,rc)}),Dn.forEach(T=>{let F=sr.get(T),j=bi.get(T);sr.set(T,new Map([...F?.entries()??[],...j?.entries()??[]]))});let pu=[],gm=[],vm={};s.forEach(T=>{let{element:F,player:j,instruction:le}=T;if(n.has(F)){if(u.has(F)){j.onDestroy(()=>bn(F,le.toStyles)),j.disabled=!0,j.overrideTotalTime(le.totalTime),r.push(j);return}let ze=vm;if(Re.size>1){let gt=F,qn=[];for(;gt=gt.parentNode;){let xe=Re.get(gt);if(xe){ze=xe;break}qn.push(gt)}qn.forEach(xe=>Re.set(xe,ze))}let Jt=this._buildAnimation(j.namespaceId,le,ge,o,bi,sr);if(j.setRealPlayer(Jt),ze===vm)pu.push(j);else{let gt=this.playersByElement.get(ze);gt&>.length&&(j.parentPlayer=di(gt)),r.push(j)}}else Qi(F,le.fromStyles),j.onDestroy(()=>bn(F,le.toStyles)),gm.push(j),u.has(F)&&r.push(j)}),gm.forEach(T=>{let F=o.get(T.element);if(F&&F.length){let j=di(F);T.setRealPlayer(j)}}),r.forEach(T=>{T.parentPlayer?T.syncPlayerEvents(T.parentPlayer):T.destroy()});for(let T=0;T!Jt.destroyed);ze.length?YN(this,F,ze):this.processLeaveNode(F)}return w.length=0,pu.forEach(T=>{this.players.push(T),T.onDone(()=>{T.destroy();let F=this.players.indexOf(T);this.players.splice(F,1)}),T.play()}),pu}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,i,n,r,o){let s=[];if(i){let a=this.playersByQueriedElement.get(e);a&&(s=a)}else{let a=this.playersByElement.get(e);if(a){let l=!o||o==ss;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||s.push(c)})}}return(n||r)&&(s=s.filter(a=>!(n&&n!=a.namespaceId||r&&r!=a.triggerName))),s}_beforeAnimationBuild(e,i,n){let r=i.triggerName,o=i.element,s=i.isRemovalTransition?void 0:e,a=i.isRemovalTransition?void 0:r;for(let l of i.timelines){let c=l.element,u=c!==o,d=Dt(n,c,[]);this._getPreviousPlayers(c,u,s,a,i.toState).forEach(f=>{let p=f.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),f.destroy(),d.push(f)})}Qi(o,i.fromStyles)}_buildAnimation(e,i,n,r,o,s){let a=i.triggerName,l=i.element,c=[],u=new Set,d=new Set,h=i.timelines.map(p=>{let v=p.element;u.add(v);let w=v[Zt];if(w&&w.removedBeforeQueried)return new ui(p.duration,p.delay);let S=v!==l,k=XN((n.get(v)||GN).map(ge=>ge.getRealPlayer())).filter(ge=>{let Re=ge;return Re.element?Re.element===v:!1}),Z=o.get(v),U=s.get(v),Ve=d0(this._normalizer,p.keyframes,Z,U),ce=this._buildPlayer(p,Ve,k);if(p.subTimeline&&r&&d.add(v),S){let ge=new us(e,a,v);ge.setRealPlayer(ce),c.push(ge)}return ce});c.forEach(p=>{Dt(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>QN(this.playersByQueriedElement,p.element,p))}),u.forEach(p=>Lt(p,e0));let f=di(h);return f.onDestroy(()=>{u.forEach(p=>Gr(p,e0)),bn(l,i.toStyles)}),d.forEach(p=>{Dt(r,p,[]).push(f)}),f}_buildPlayer(e,i,n){return i.length>0?this.driver.animate(e.element,i,e.duration,e.delay,e.easing,n):new ui(e.duration,e.delay)}},us=class{constructor(e,i,n){this.namespaceId=e,this.triggerName=i,this.element=n,this._player=new ui,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((i,n)=>{i.forEach(r=>Uh(e,n,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let i=this._player;i.triggerCallback&&e.onStart(()=>i.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,i){Dt(this._queuedCallbacks,e,[]).push(i)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let i=this._player;i.triggerCallback&&i.triggerCallback(e)}};function QN(t,e,i){let n=t.get(e);if(n){if(n.length){let r=n.indexOf(i);n.splice(r,1)}n.length==0&&t.delete(e)}return n}function ZN(t){return t??null}function lc(t){return t&&t.nodeType===1}function KN(t){return t=="start"||t=="done"}function a0(t,e){let i=t.style.display;return t.style.display=e??"none",i}function l0(t,e,i,n,r){let o=[];i.forEach(l=>o.push(a0(l)));let s=[];n.forEach((l,c)=>{let u=new Map;l.forEach(d=>{let h=e.computeStyle(c,d,r);u.set(d,h),(!h||h.length==0)&&(c[Zt]=qN,s.push(c))}),t.set(c,u)});let a=0;return i.forEach(l=>a0(l,o[a++])),s}function c0(t,e){let i=new Map;if(t.forEach(a=>i.set(a,[])),e.length==0)return i;let n=1,r=new Set(e),o=new Map;function s(a){if(!a)return n;let l=o.get(a);if(l)return l;let c=a.parentNode;return i.has(c)?l=c:r.has(c)?l=n:l=s(c),o.set(a,l),l}return e.forEach(a=>{let l=s(a);l!==n&&i.get(l).push(a)}),i}function Lt(t,e){t.classList?.add(e)}function Gr(t,e){t.classList?.remove(e)}function YN(t,e,i){di(i).onDone(()=>t.processLeaveNode(e))}function XN(t){let e=[];return D0(t,e),e}function D0(t,e){for(let i=0;ir.add(o)):e.set(t,n),i.delete(t),!0}var Qr=class{constructor(e,i,n){this._driver=i,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new jh(e.body,i,n),this._timelineEngine=new Ph(e.body,i,n),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(e,i,n,r,o){let s=e+"-"+r,a=this._triggerCache[s];if(!a){let l=[],c=[],u=y0(this._driver,o,l,c);if(l.length)throw JA(r,l);c.length&&void 0,a=VN(r,u,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(i,r,a)}register(e,i){this._transitionEngine.register(e,i)}destroy(e,i){this._transitionEngine.destroy(e,i)}onInsert(e,i,n,r){this._transitionEngine.insertNode(e,i,n,r)}onRemove(e,i,n){this._transitionEngine.removeNode(e,i,n)}disableAnimations(e,i){this._transitionEngine.markElementAsDisabled(e,i)}process(e,i,n,r){if(n.charAt(0)=="@"){let[o,s]=X_(n),a=r;this._timelineEngine.command(o,i,s,a)}else this._transitionEngine.trigger(e,i,n,r)}listen(e,i,n,r,o){if(n.charAt(0)=="@"){let[s,a]=X_(n);return this._timelineEngine.listen(s,i,a,o)}return this._transitionEngine.listen(e,i,n,r,o)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function eR(t,e){let i=null,n=null;return Array.isArray(e)&&e.length?(i=Ch(e[0]),e.length>1&&(n=Ch(e[e.length-1]))):e instanceof Map&&(i=Ch(e)),i||n?new Vh(t,i,n):null}var qr=class qr{constructor(e,i,n){this._element=e,this._startStyles=i,this._endStyles=n,this._state=0;let r=qr.initialStylesByElement.get(e);r||qr.initialStylesByElement.set(e,r=new Map),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&bn(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(bn(this._element,this._initialStyles),this._endStyles&&(bn(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(qr.initialStylesByElement.delete(this._element),this._startStyles&&(Qi(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Qi(this._element,this._endStyles),this._endStyles=null),bn(this._element,this._initialStyles),this._state=3)}};qr.initialStylesByElement=new WeakMap;var Vh=qr;function Ch(t){let e=null;return t.forEach((i,n)=>{tR(n)&&(e=e||new Map,e.set(n,i))}),e}function tR(t){return t==="display"||t==="position"}var vc=class{constructor(e,i,n,r){this.element=e,this.keyframes=i,this.options=n,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let i=()=>this._onFinish();this.domPlayer.addEventListener("finish",i),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",i)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let i=[];return e.forEach(n=>{i.push(Object.fromEntries(n))}),i}_triggerWebAnimation(e,i,n){return e.animate(this._convertKeyframesToObject(i),n)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((n,r)=>{r!=="offset"&&e.set(r,this._finished?n:Gh(this.element,r))}),this.currentSnapshot=e}triggerCallback(e){let i=e==="start"?this._onStartFns:this._onDoneFns;i.forEach(n=>n()),i.length=0}},yc=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,i){return f0(e,i)}getParentElement(e){return Hh(e)}query(e,i,n){return h0(e,i,n)}computeStyle(e,i,n){return Gh(e,i)}animate(e,i,n,r,o,s=[]){let a=r==0?"both":"forwards",l={duration:n,delay:r,fill:a};o&&(l.easing=o);let c=new Map,u=s.filter(f=>f instanceof vc);wN(n,r)&&u.forEach(f=>{f.currentSnapshot.forEach((p,v)=>c.set(v,p))});let d=yN(i).map(f=>new Map(f));d=DN(e,d,c);let h=eR(e,d);return new vc(e,d,l,h)}};var cc="@",E0="@.disabled",bc=class{constructor(e,i,n,r){this.namespaceId=e,this.delegate=i,this.engine=n,this._onDestroy=r,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,i){return this.delegate.createElement(e,i)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,i){this.delegate.appendChild(e,i),this.engine.onInsert(this.namespaceId,i,e,!1)}insertBefore(e,i,n,r=!0){this.delegate.insertBefore(e,i,n),this.engine.onInsert(this.namespaceId,i,e,r)}removeChild(e,i,n){this.parentNode(i)&&this.engine.onRemove(this.namespaceId,i,this.delegate)}selectRootElement(e,i){return this.delegate.selectRootElement(e,i)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,i,n,r){this.delegate.setAttribute(e,i,n,r)}removeAttribute(e,i,n){this.delegate.removeAttribute(e,i,n)}addClass(e,i){this.delegate.addClass(e,i)}removeClass(e,i){this.delegate.removeClass(e,i)}setStyle(e,i,n,r){this.delegate.setStyle(e,i,n,r)}removeStyle(e,i,n){this.delegate.removeStyle(e,i,n)}setProperty(e,i,n){i.charAt(0)==cc&&i==E0?this.disableAnimations(e,!!n):this.delegate.setProperty(e,i,n)}setValue(e,i){this.delegate.setValue(e,i)}listen(e,i,n){return this.delegate.listen(e,i,n)}disableAnimations(e,i){this.engine.disableAnimations(e,i)}},Bh=class extends bc{constructor(e,i,n,r,o){super(i,n,r,o),this.factory=e,this.namespaceId=i}setProperty(e,i,n){i.charAt(0)==cc?i.charAt(1)=="."&&i==E0?(n=n===void 0?!0:!!n,this.disableAnimations(e,n)):this.engine.process(this.namespaceId,e,i.slice(1),n):this.delegate.setProperty(e,i,n)}listen(e,i,n){if(i.charAt(0)==cc){let r=nR(e),o=i.slice(1),s="";return o.charAt(0)!=cc&&([o,s]=iR(o)),this.engine.listen(this.namespaceId,r,o,s,a=>{let l=a._data||-1;this.factory.scheduleListenerCallback(l,n,a)})}return this.delegate.listen(e,i,n)}};function nR(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}function iR(t){let e=t.indexOf("."),i=t.substring(0,e),n=t.slice(e+1);return[i,n]}var _c=class{constructor(e,i,n){this.delegate=e,this.engine=i,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,i.onRemovalComplete=(r,o)=>{o?.removeChild(null,r)}}createRenderer(e,i){let n="",r=this.delegate.createRenderer(e,i);if(!e||!i?.data?.animation){let c=this._rendererCache,u=c.get(r);if(!u){let d=()=>c.delete(r);u=new bc(n,r,this.engine,d),c.set(r,u)}return u}let o=i.id,s=i.id+"-"+this._currentId;this._currentId++,this.engine.register(s,e);let a=c=>{Array.isArray(c)?c.forEach(a):this.engine.registerTrigger(o,s,e,c.name,c)};return i.data.animation.forEach(a),new Bh(this,s,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,n){if(e>=0&&ei(n));return}let r=this._animationCallbacksBuffer;r.length==0&&queueMicrotask(()=>{this._zone.run(()=>{r.forEach(o=>{let[s,a]=o;s(a)}),this._animationCallbacksBuffer=[]})}),r.push([i,n])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}};var oR=(()=>{let e=class e extends Qr{constructor(n,r,o){super(n,r,o)}ngOnDestroy(){this.flush()}};e.\u0275fac=function(r){return new(r||e)(y(ae),y(Zi),y(Ki))},e.\u0275prov=E({token:e,factory:e.\u0275fac});let t=e;return t})();function sR(){return new fc}function aR(t,e,i){return new _c(t,e,i)}var I0=[{provide:Ki,useFactory:sR},{provide:Qr,useClass:oR},{provide:ii,useFactory:aR,deps:[tc,Qr,R]}],C0=[{provide:Zi,useFactory:()=>new yc},{provide:Gt,useValue:"BrowserAnimations"},...I0],lR=[{provide:Zi,useClass:zh},{provide:Gt,useValue:"NoopAnimations"},...I0],x0=(()=>{let e=class e{static withConfig(n){return{ngModule:e,providers:n.disableAnimations?lR:C0}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=ne({type:e}),e.\u0275inj=te({providers:C0,imports:[ic]});let t=e;return t})();var k0=(()=>{let e=class e{constructor(n,r){this._renderer=n,this._elementRef=r,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}};e.\u0275fac=function(r){return new(r||e)(m(Pn),m(Y))},e.\u0275dir=W({type:e});let t=e;return t})(),cR=(()=>{let e=class e extends k0{};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Fr(e)))(o||e)}})(),e.\u0275dir=W({type:e,features:[lt]});let t=e;return t})(),F0=new x("");var uR={provide:F0,useExisting:fn(()=>pi),multi:!0};function dR(){let t=vn()?vn().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var fR=new x(""),pi=(()=>{let e=class e extends k0{constructor(n,r,o){super(n,r),this._compositionMode=o,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!dR())}writeValue(n){let r=n??"";this.setProperty("value",r)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}};e.\u0275fac=function(r){return new(r||e)(m(Pn),m(Y),m(fR,8))},e.\u0275dir=W({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(r,o){r&1&&re("input",function(a){return o._handleInput(a.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(a){return o._compositionEnd(a.target.value)})},features:[Ze([uR]),lt]});let t=e;return t})();function fi(t){return t==null||(typeof t=="string"||Array.isArray(t))&&t.length===0}function P0(t){return t!=null&&typeof t.length=="number"}var gs=new x(""),vs=new x(""),hR=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Dc=class{static min(e){return pR(e)}static max(e){return mR(e)}static required(e){return gR(e)}static requiredTrue(e){return vR(e)}static email(e){return yR(e)}static minLength(e){return bR(e)}static maxLength(e){return _R(e)}static pattern(e){return wR(e)}static nullValidator(e){return L0(e)}static compose(e){return H0(e)}static composeAsync(e){return z0(e)}};function pR(t){return e=>{if(fi(e.value)||fi(t))return null;let i=parseFloat(e.value);return!isNaN(i)&&i{if(fi(e.value)||fi(t))return null;let i=parseFloat(e.value);return!isNaN(i)&&i>t?{max:{max:t,actual:e.value}}:null}}function gR(t){return fi(t.value)?{required:!0}:null}function vR(t){return t.value===!0?null:{required:!0}}function yR(t){return fi(t.value)||hR.test(t.value)?null:{email:!0}}function bR(t){return e=>fi(e.value)||!P0(e.value)?null:e.value.lengthP0(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}function wR(t){if(!t)return L0;let e,i;return typeof t=="string"?(i="",t.charAt(0)!=="^"&&(i+="^"),i+=t,t.charAt(t.length-1)!=="$"&&(i+="$"),e=new RegExp(i)):(i=t.toString(),e=t),n=>{if(fi(n.value))return null;let r=n.value;return e.test(r)?null:{pattern:{requiredPattern:i,actualValue:r}}}}function L0(t){return null}function j0(t){return t!=null}function V0(t){return zi(t)?ve(t):t}function B0(t){let e={};return t.forEach(i=>{e=i!=null?b(b({},e),i):e}),Object.keys(e).length===0?null:e}function U0(t,e){return e.map(i=>i(t))}function DR(t){return!t.validate}function $0(t){return t.map(e=>DR(e)?e:i=>e.validate(i))}function H0(t){if(!t)return null;let e=t.filter(j0);return e.length==0?null:function(i){return B0(U0(i,e))}}function Jh(t){return t!=null?H0($0(t)):null}function z0(t){if(!t)return null;let e=t.filter(j0);return e.length==0?null:function(i){let n=U0(i,e).map(V0);return Do(n).pipe(N(B0))}}function ep(t){return t!=null?z0($0(t)):null}function S0(t,e){return t===null?[e]:Array.isArray(t)?[...t,e]:[t,e]}function W0(t){return t._rawValidators}function G0(t){return t._rawAsyncValidators}function Zh(t){return t?Array.isArray(t)?t:[t]:[]}function Ec(t,e){return Array.isArray(t)?t.includes(e):t===e}function T0(t,e){let i=Zh(e);return Zh(t).forEach(r=>{Ec(i,r)||i.push(r)}),i}function M0(t,e){return Zh(e).filter(i=>!Ec(t,i))}var Cc=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=Jh(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=ep(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,i){return this.control?this.control.hasError(e,i):!1}getError(e,i){return this.control?this.control.getError(e,i):null}},ct=class extends Cc{get formDirective(){return null}get path(){return null}},Yi=class extends Cc{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},Kh=class{constructor(e){this._cd=e}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},ER={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},LH=ie(b({},ER),{"[class.ng-submitted]":"isSubmitted"}),Yr=(()=>{let e=class e extends Kh{constructor(n){super(n)}};e.\u0275fac=function(r){return new(r||e)(m(Yi,2))},e.\u0275dir=W({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,o){r&2&&Ie("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[lt]});let t=e;return t})();var ds="VALID",wc="INVALID",Zr="PENDING",fs="DISABLED",hi=class{},Ic=class extends hi{constructor(e,i){super(),this.value=e,this.source=i}},ps=class extends hi{constructor(e,i){super(),this.pristine=e,this.source=i}},ms=class extends hi{constructor(e,i){super(),this.touched=e,this.source=i}},Kr=class extends hi{constructor(e,i){super(),this.status=e,this.source=i}},Yh=class extends hi{constructor(e){super(),this.source=e}},Xh=class extends hi{constructor(e){super(),this.source=e}};function q0(t){return(Nc(t)?t.validators:t)||null}function CR(t){return Array.isArray(t)?Jh(t):t||null}function Q0(t,e){return(Nc(e)?e.asyncValidators:t)||null}function IR(t){return Array.isArray(t)?ep(t):t||null}function Nc(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function xR(t,e,i){let n=t.controls;if(!(e?Object.keys(n):n).length)throw new _(1e3,"");if(!n[i])throw new _(1001,"")}function SR(t,e,i){t._forEachChild((n,r)=>{if(i[r]===void 0)throw new _(1002,"")})}var xc=class{constructor(e,i){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=Vn(()=>this.statusReactive()),this.statusReactive=Hi(void 0),this._pristine=Vn(()=>this.pristineReactive()),this.pristineReactive=Hi(!0),this._touched=Vn(()=>this.touchedReactive()),this.touchedReactive=Hi(!1),this._events=new V,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(i)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get status(){return gn(this.statusReactive)}set status(e){gn(()=>this.statusReactive.set(e))}get valid(){return this.status===ds}get invalid(){return this.status===wc}get pending(){return this.status==Zr}get disabled(){return this.status===fs}get enabled(){return this.status!==fs}get pristine(){return gn(this.pristineReactive)}set pristine(e){gn(()=>this.pristineReactive.set(e))}get dirty(){return!this.pristine}get touched(){return gn(this.touchedReactive)}set touched(e){gn(()=>this.touchedReactive.set(e))}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(T0(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(T0(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(M0(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(M0(e,this._rawAsyncValidators))}hasValidator(e){return Ec(this._rawValidators,e)}hasAsyncValidator(e){return Ec(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){let i=this.touched===!1;this.touched=!0;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsTouched(ie(b({},e),{sourceControl:n})),i&&e.emitEvent!==!1&&this._events.next(new ms(!0,n))}markAllAsTouched(e={}){this.markAsTouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(i=>i.markAllAsTouched(e))}markAsUntouched(e={}){let i=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let n=e.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:n})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,n),i&&e.emitEvent!==!1&&this._events.next(new ms(!1,n))}markAsDirty(e={}){let i=this.pristine===!0;this.pristine=!1;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsDirty(ie(b({},e),{sourceControl:n})),i&&e.emitEvent!==!1&&this._events.next(new ps(!1,n))}markAsPristine(e={}){let i=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let n=e.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:e.emitEvent})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e,n),i&&e.emitEvent!==!1&&this._events.next(new ps(!0,n))}markAsPending(e={}){this.status=Zr;let i=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Kr(this.status,i)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending(ie(b({},e),{sourceControl:i}))}disable(e={}){let i=this._parentMarkedDirty(e.onlySelf);this.status=fs,this.errors=null,this._forEachChild(r=>{r.disable(ie(b({},e),{onlySelf:!0}))}),this._updateValue();let n=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Ic(this.value,n)),this._events.next(new Kr(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(ie(b({},e),{skipPristineCheck:i}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(e={}){let i=this._parentMarkedDirty(e.onlySelf);this.status=ds,this._forEachChild(n=>{n.enable(ie(b({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(ie(b({},e),{skipPristineCheck:i}),this),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(e,i){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine({},i),this._parent._updateTouched({},i))}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let n=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ds||this.status===Zr)&&this._runAsyncValidator(n,e.emitEvent)}let i=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Ic(this.value,i)),this._events.next(new Kr(this.status,i)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(ie(b({},e),{sourceControl:i}))}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(i=>i._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?fs:ds}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,i){if(this.asyncValidator){this.status=Zr,this._hasOwnPendingAsyncValidator={emitEvent:i!==!1};let n=V0(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{emitEvent:i,shouldHaveEmitted:e})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let e=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,e}return!1}setErrors(e,i={}){this.errors=e,this._updateControlsErrors(i.emitEvent!==!1,this,i.shouldHaveEmitted)}get(e){let i=e;return i==null||(Array.isArray(i)||(i=i.split(".")),i.length===0)?null:i.reduce((n,r)=>n&&n._find(r),this)}getError(e,i){let n=i?this.get(i):this;return n&&n.errors?n.errors[e]:null}hasError(e,i){return!!this.getError(e,i)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e,i,n){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),(e||n)&&this._events.next(new Kr(this.status,i)),this._parent&&this._parent._updateControlsErrors(e,i,n)}_initObservables(){this.valueChanges=new J,this.statusChanges=new J}_calculateStatus(){return this._allControlsDisabled()?fs:this.errors?wc:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Zr)?Zr:this._anyControlsHaveStatus(wc)?wc:ds}_anyControlsHaveStatus(e){return this._anyControls(i=>i.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e,i){let n=!this._anyControlsDirty(),r=this.pristine!==n;this.pristine=n,this._parent&&!e.onlySelf&&this._parent._updatePristine(e,i),r&&this._events.next(new ps(this.pristine,i))}_updateTouched(e={},i){this.touched=this._anyControlsTouched(),this._events.next(new ms(this.touched,i)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,i)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){Nc(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let i=this._parent&&this._parent.dirty;return!e&&!!i&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=CR(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=IR(this._rawAsyncValidators)}},Sc=class extends xc{constructor(e,i,n){super(q0(i),Q0(n,i)),this.controls=e,this._initObservables(),this._setUpdateStrategy(i),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,i){return this.controls[e]?this.controls[e]:(this.controls[e]=i,i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange),i)}addControl(e,i,n={}){this.registerControl(e,i),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(e,i={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}setControl(e,i,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],i&&this.registerControl(e,i),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,i={}){SR(this,!0,e),Object.keys(e).forEach(n=>{xR(this,!0,n),this.controls[n].setValue(e[n],{onlySelf:!0,emitEvent:i.emitEvent})}),this.updateValueAndValidity(i)}patchValue(e,i={}){e!=null&&(Object.keys(e).forEach(n=>{let r=this.controls[n];r&&r.patchValue(e[n],{onlySelf:!0,emitEvent:i.emitEvent})}),this.updateValueAndValidity(i))}reset(e={},i={}){this._forEachChild((n,r)=>{n.reset(e?e[r]:null,{onlySelf:!0,emitEvent:i.emitEvent})}),this._updatePristine(i,this),this._updateTouched(i,this),this.updateValueAndValidity(i)}getRawValue(){return this._reduceChildren({},(e,i,n)=>(e[n]=i.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(i,n)=>n._syncPendingControls()?!0:i);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(i=>{let n=this.controls[i];n&&e(n,i)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(let[i,n]of Object.entries(this.controls))if(this.contains(i)&&e(n))return!0;return!1}_reduceValue(){let e={};return this._reduceChildren(e,(i,n,r)=>((n.enabled||this.disabled)&&(i[r]=n.value),i))}_reduceChildren(e,i){let n=e;return this._forEachChild((r,o)=>{n=i(n,r,o)}),n}_allControlsDisabled(){for(let e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return this.controls.hasOwnProperty(e)?this.controls[e]:null}};var Rc=new x("CallSetDisabledState",{providedIn:"root",factory:()=>tp}),tp="always";function np(t,e){return[...e.path,t]}function Tc(t,e,i=tp){ip(t,e),e.valueAccessor.writeValue(t.value),(t.disabled||i==="always")&&e.valueAccessor.setDisabledState?.(t.disabled),MR(t,e),NR(t,e),AR(t,e),TR(t,e)}function A0(t,e,i=!0){let n=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(n),e.valueAccessor.registerOnTouched(n)),Ac(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function Mc(t,e){t.forEach(i=>{i.registerOnValidatorChange&&i.registerOnValidatorChange(e)})}function TR(t,e){if(e.valueAccessor.setDisabledState){let i=n=>{e.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(i),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(i)})}}function ip(t,e){let i=W0(t);e.validator!==null?t.setValidators(S0(i,e.validator)):typeof i=="function"&&t.setValidators([i]);let n=G0(t);e.asyncValidator!==null?t.setAsyncValidators(S0(n,e.asyncValidator)):typeof n=="function"&&t.setAsyncValidators([n]);let r=()=>t.updateValueAndValidity();Mc(e._rawValidators,r),Mc(e._rawAsyncValidators,r)}function Ac(t,e){let i=!1;if(t!==null){if(e.validator!==null){let r=W0(t);if(Array.isArray(r)&&r.length>0){let o=r.filter(s=>s!==e.validator);o.length!==r.length&&(i=!0,t.setValidators(o))}}if(e.asyncValidator!==null){let r=G0(t);if(Array.isArray(r)&&r.length>0){let o=r.filter(s=>s!==e.asyncValidator);o.length!==r.length&&(i=!0,t.setAsyncValidators(o))}}}let n=()=>{};return Mc(e._rawValidators,n),Mc(e._rawAsyncValidators,n),i}function MR(t,e){e.valueAccessor.registerOnChange(i=>{t._pendingValue=i,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&Z0(t,e)})}function AR(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&Z0(t,e),t.updateOn!=="submit"&&t.markAsTouched()})}function Z0(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function NR(t,e){let i=(n,r)=>{e.valueAccessor.writeValue(n),r&&e.viewToModelUpdate(n)};t.registerOnChange(i),e._registerOnDestroy(()=>{t._unregisterOnChange(i)})}function K0(t,e){t==null,ip(t,e)}function RR(t,e){return Ac(t,e)}function OR(t,e){if(!t.hasOwnProperty("model"))return!1;let i=t.model;return i.isFirstChange()?!0:!Object.is(e,i.currentValue)}function kR(t){return Object.getPrototypeOf(t.constructor)===cR}function Y0(t,e){t._syncPendingControls(),e.forEach(i=>{let n=i.control;n.updateOn==="submit"&&n._pendingChange&&(i.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function FR(t,e){if(!e)return null;Array.isArray(e);let i,n,r;return e.forEach(o=>{o.constructor===pi?i=o:kR(o)?n=o:r=o}),r||n||i||null}function PR(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}var LR={provide:ct,useExisting:fn(()=>rp)},hs=Promise.resolve(),rp=(()=>{let e=class e extends ct{get submitted(){return gn(this.submittedReactive)}constructor(n,r,o){super(),this.callSetDisabledState=o,this._submitted=Vn(()=>this.submittedReactive()),this.submittedReactive=Hi(!1),this._directives=new Set,this.ngSubmit=new J,this.form=new Sc({},Jh(n),ep(r))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(n){hs.then(()=>{let r=this._findContainer(n.path);n.control=r.registerControl(n.name,n.control),Tc(n.control,n,this.callSetDisabledState),n.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(n)})}getControl(n){return this.form.get(n.path)}removeControl(n){hs.then(()=>{let r=this._findContainer(n.path);r&&r.removeControl(n.name),this._directives.delete(n)})}addFormGroup(n){hs.then(()=>{let r=this._findContainer(n.path),o=new Sc({});K0(o,n),r.registerControl(n.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(n){hs.then(()=>{let r=this._findContainer(n.path);r&&r.removeControl(n.name)})}getFormGroup(n){return this.form.get(n.path)}updateModel(n,r){hs.then(()=>{this.form.get(n.path).setValue(r)})}setValue(n){this.control.setValue(n)}onSubmit(n){return this.submittedReactive.set(!0),Y0(this.form,this._directives),this.ngSubmit.emit(n),n?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(n){return n.pop(),n.length?this.form.get(n):this.form}};e.\u0275fac=function(r){return new(r||e)(m(gs,10),m(vs,10),m(Rc,8))},e.\u0275dir=W({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(r,o){r&1&&re("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Ze([LR]),lt]});let t=e;return t})();function N0(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}function R0(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var X0=class extends xc{constructor(e=null,i,n){super(q0(i),Q0(n,i)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(i),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Nc(i)&&(i.nonNullable||i.initialValueIsDefault)&&(R0(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,i={}){this.value=this._pendingValue=e,this._onChange.length&&i.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,i.emitViewToModelChange!==!1)),this.updateValueAndValidity(i)}patchValue(e,i={}){this.setValue(e,i)}reset(e=this.defaultValue,i={}){this._applyFormState(e),this.markAsPristine(i),this.markAsUntouched(i),this.setValue(this.value,i),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){N0(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){N0(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(e){R0(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}};var jR=t=>t instanceof X0,VR=(()=>{let e=class e extends ct{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return np(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Fr(e)))(o||e)}})(),e.\u0275dir=W({type:e,features:[lt]});let t=e;return t})();var BR={provide:Yi,useExisting:fn(()=>Xi)},O0=Promise.resolve(),Xi=(()=>{let e=class e extends Yi{constructor(n,r,o,s,a,l){super(),this._changeDetectorRef=a,this.callSetDisabledState=l,this.control=new X0,this._registered=!1,this.name="",this.update=new J,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=FR(this,s)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){let r=n.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),OR(n,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){Tc(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(n){O0.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let r=n.isDisabled.currentValue,o=r!==0&&Ae(r);O0.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?np(n,this._parent):[n]}};e.\u0275fac=function(r){return new(r||e)(m(ct,9),m(gs,10),m(vs,10),m(F0,10),m(tt,8),m(Rc,8))},e.\u0275dir=W({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Ze([BR]),lt,qe]});let t=e;return t})();var UR={provide:ct,useExisting:fn(()=>Oc)},Oc=(()=>{let e=class e extends ct{get submitted(){return gn(this._submittedReactive)}set submitted(n){this._submittedReactive.set(n)}constructor(n,r,o){super(),this.callSetDisabledState=o,this._submitted=Vn(()=>this._submittedReactive()),this._submittedReactive=Hi(!1),this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new J,this._setValidators(n),this._setAsyncValidators(r)}ngOnChanges(n){this._checkFormPresent(),n.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Ac(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(n){let r=this.form.get(n.path);return Tc(r,n,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(n),r}getControl(n){return this.form.get(n.path)}removeControl(n){A0(n.control||null,n,!1),PR(this.directives,n)}addFormGroup(n){this._setUpFormContainer(n)}removeFormGroup(n){this._cleanUpFormContainer(n)}getFormGroup(n){return this.form.get(n.path)}addFormArray(n){this._setUpFormContainer(n)}removeFormArray(n){this._cleanUpFormContainer(n)}getFormArray(n){return this.form.get(n.path)}updateModel(n,r){this.form.get(n.path).setValue(r)}onSubmit(n){return this._submittedReactive.set(!0),Y0(this.form,this.directives),this.ngSubmit.emit(n),this.form._events.next(new Yh(this.control)),n?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this._submittedReactive.set(!1),this.form._events.next(new Xh(this.form))}_updateDomValue(){this.directives.forEach(n=>{let r=n.control,o=this.form.get(n.path);r!==o&&(A0(r||null,n),jR(o)&&(Tc(o,n,this.callSetDisabledState),n.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(n){let r=this.form.get(n.path);K0(r,n),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(n){if(this.form){let r=this.form.get(n.path);r&&RR(r,n)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){ip(this.form,this),this._oldForm&&Ac(this._oldForm,this)}_checkFormPresent(){this.form}};e.\u0275fac=function(r){return new(r||e)(m(gs,10),m(vs,10),m(Rc,8))},e.\u0275dir=W({type:e,selectors:[["","formGroup",""]],hostBindings:function(r,o){r&1&&re("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Ze([UR]),lt,qe]});let t=e;return t})(),$R={provide:ct,useExisting:fn(()=>kc)},kc=(()=>{let e=class e extends VR{constructor(n,r,o){super(),this.name=null,this._parent=n,this._setValidators(r),this._setAsyncValidators(o)}_checkParentType(){ew(this._parent)}};e.\u0275fac=function(r){return new(r||e)(m(ct,13),m(gs,10),m(vs,10))},e.\u0275dir=W({type:e,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},features:[Ze([$R]),lt]});let t=e;return t})(),HR={provide:ct,useExisting:fn(()=>J0)},J0=(()=>{let e=class e extends ct{constructor(n,r,o){super(),this.name=null,this._parent=n,this._setValidators(r),this._setAsyncValidators(o)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return np(this.name==null?this.name:this.name.toString(),this._parent)}_checkParentType(){ew(this._parent)}};e.\u0275fac=function(r){return new(r||e)(m(ct,13),m(gs,10),m(vs,10))},e.\u0275dir=W({type:e,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},features:[Ze([HR]),lt]});let t=e;return t})();function ew(t){return!(t instanceof kc)&&!(t instanceof Oc)&&!(t instanceof J0)}var zR=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=ne({type:e}),e.\u0275inj=te({});let t=e;return t})();var Fc=(()=>{let e=class e{static withConfig(n){return{ngModule:e,providers:[{provide:Rc,useValue:n.callSetDisabledState??tp}]}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=ne({type:e}),e.\u0275inj=te({imports:[zR]});let t=e;return t})();var WR=["autoCompleteInput"],GR=["autoCompleteContainer"],qR=t=>({selected:t});function QR(t,e){if(t&1){let i=bt();D(0,"input",5,1),re("focus",function(r){Ee(i);let o=se();return Ce(o.showDropdownList(r))})("blur",function(r){Ee(i);let o=se();return Ce(o.blurHandler(r))})("keydown",function(r){Ee(i);let o=se();return Ce(o.inputElKeyHandler(r))})("input",function(r){Ee(i);let o=se();return Ce(o.reloadListInDelay(r))}),Pt("ngModelChange",function(r){Ee(i);let o=se();return Qt(o.keyword,r)||(o.keyword=r),Ce(r)}),C()}if(t&2){let i=se();Vf("placeholder",i.placeholder),Ft("ngModel",i.keyword),$e("autocomplete",i.autocomplete?"null":"off")}}function ZR(t,e){if(t&1&&L(0,"li",12),t&2){let i=se(2);O("innerHTML",i.loadingTemplate,Tl)}}function KR(t,e){if(t&1&&(D(0,"li",13),A(1),C()),t&2){let i=se(2);I(),je(i.loadingText)}}function YR(t,e){if(t&1){let i=bt();D(0,"li",14),re("mousedown",function(){Ee(i);let r=se(2);return Ce(r.selectOne(""))}),A(1),C()}if(t&2){let i=se(2);I(),ue("",i.noMatchFoundText||"No Result Found"," ")}}function XR(t,e){if(t&1&&L(0,"li",15),t&2){let i=se(2);O("innerHTML",i.headerItemTemplate,Tl)}}function JR(t,e){if(t&1){let i=bt();D(0,"li",16),re("mousedown",function(){Ee(i);let r=se(2);return Ce(r.selectOne(""))}),A(1),C()}if(t&2){let i=se(2);I(),ue("",i.blankOptionText," ")}}function eO(t,e){if(t&1){let i=bt();D(0,"li",17),re("mousedown",function(){let r=Ee(i).$implicit,o=se(2);return Ce(o.selectOne(r))}),C()}if(t&2){let i=e.$implicit,n=e.index,r=se(2);O("ngClass",Bf(2,qR,n===r.itemIndex))("innerHtml",r.autoComplete.getFormattedListItem(i),Tl)}}function tO(t,e){if(t&1&&(D(0,"ul"),we(1,ZR,1,1,"li",6)(2,KR,2,1,"li",7)(3,YR,2,1,"li",8)(4,XR,1,1,"li",9)(5,JR,2,1,"li",10)(6,eO,1,4,"li",11),C()),t&2){let i=se();Ie("empty",i.emptyList),I(),O("ngIf",i.isLoading&&i.loadingTemplate),I(),O("ngIf",i.isLoading&&!i.loadingTemplate),I(),O("ngIf",i.minCharsEntered&&!i.isLoading&&!i.filteredList.length),I(),O("ngIf",i.headerItemTemplate&&i.filteredList.length),I(),O("ngIf",i.blankOptionText&&i.filteredList.length),I(),O("ngForOf",i.filteredList)("ngForTrackBy",i.trackByIndex)}}var tw=(()=>{let e=class e{constructor(n){this.http=n}filter(n,r,o,s){let a=c=>o?this.getFormattedListItem(c).toLowerCase():JSON.stringify(c).toLowerCase(),l=r.toLowerCase();return s?n.filter(c=>a(c).normalize("NFD").replace(/[\u0300-\u036f]/g,"").indexOf(l.normalize("NFD").replace(/[\u0300-\u036f]/g,""))!==-1):n.filter(c=>a(c).indexOf(l)!==-1)}getFormattedListItem(n){let r=this.listFormatter||"(id) value";if(typeof r=="function")return r.apply(this,[n]);if(typeof n!="object")return n;if(typeof r=="string"){let o=r,s=r.match(/[a-zA-Z0-9_\$]+/g);return s&&typeof n!="string"&&s.forEach(a=>{o=o.replace(a,n[a])}),o}return JSON.stringify(n)}getRemoteData(n){if(typeof this.source!="string")throw new TypeError("Invalid type of source, must be a string. e.g. http://www.google.com?q=:my_keyword");if(!this.http)throw new Error("Http is required.");let r=this.source.match(/:[a-zA-Z_]+/);if(r===null)throw new Error("Replacement word is missing.");let o=r[0],s=this.source.replace(o,n);return this.http.get(s).pipe(N(a=>(this.pathToData&&this.pathToData.split(".").forEach(c=>a=a[c]),a)))}};e.\u0275fac=function(r){return new(r||e)(y(Wi,8))},e.\u0275prov=E({token:e,factory:e.\u0275fac});let t=e;return t})(),op=(()=>{let e=class e{constructor(n,r){this.autoComplete=r,this.autocomplete=!1,this.minChars=0,this.acceptUserInput=!0,this.loadingText="Loading",this.loadingTemplate=null,this.showInputTag=!0,this.showDropdownOnInit=!1,this.tabToSelect=!0,this.matchFormatted=!1,this.autoSelectFirstItem=!1,this.selectOnBlur=!1,this.reFocusAfterSelect=!0,this.headerItemTemplate=null,this.ignoreAccents=!0,this.valueSelected=new J,this.customSelected=new J,this.textEntered=new J,this.dropdownVisible=!1,this.isLoading=!1,this.filteredList=[],this.minCharsEntered=!1,this.itemIndex=null,this.timer=0,this.delay=(()=>{let o=null;return(s,a)=>{clearTimeout(o),o=setTimeout(s,a)}})(),this.selectOnEnter=!1,this.reloadListInDelay=o=>{let s=this.isSrcArr()?10:500,a=o.target.value;this.delay(()=>this.reloadList(a),s)},this.inputElKeyHandler=o=>{let s=this.filteredList.length;switch(!this.selectOnEnter&&this.autoSelectFirstItem&&s!==0&&(this.selectOnEnter=!0),o.keyCode){case 27:this.selectOnEnter=!1,this.selectOne(void 0);break;case 38:if(s===0)return;this.selectOnEnter=!0,this.itemIndex=(s+this.itemIndex-1)%s,this.scrollToView(this.itemIndex);break;case 40:if(s===0)return;this.selectOnEnter=!0,this.dropdownVisible=!0;let a=this.itemIndex;a=this.itemIndex===null?0:a+1,this.itemIndex=(s+a)%s,this.scrollToView(this.itemIndex);break;case 13:this.selectOnEnter&&this.selectOne(this.filteredList[this.itemIndex]),o.preventDefault();break;case 9:this.tabToSelect&&this.selectOne(this.filteredList[this.itemIndex]);break}},this.el=n.nativeElement}ngOnInit(){this.autoComplete.source=this.source,this.autoComplete.pathToData=this.pathToData,this.autoComplete.listFormatter=this.listFormatter,this.autoSelectFirstItem&&(this.itemIndex=0),setTimeout(()=>{this.autoCompleteInput&&this.reFocusAfterSelect&&this.autoCompleteInput.nativeElement.focus(),this.showDropdownOnInit&&this.showDropdownList({target:{value:""}})})}isSrcArr(){return Array.isArray(this.source)}showDropdownList(n){this.dropdownVisible=!0,this.reloadList(n.target.value)}hideDropdownList(){this.selectOnEnter=!1,this.dropdownVisible=!1}findItemFromSelectValue(n){let r=this.filteredList.filter(o=>""+o===n);return r.length?r[0]:null}reloadList(n){if(this.filteredList=[],n.length<(this.minChars||0)){this.minCharsEntered=!1;return}else this.minCharsEntered=!0;this.isSrcArr()?(this.isLoading=!1,this.filteredList=this.autoComplete.filter(this.source,n,this.matchFormatted,this.ignoreAccents),this.maxNumList&&(this.filteredList=this.filteredList.slice(0,this.maxNumList))):(this.isLoading=!0,typeof this.source=="function"?this.source(n).subscribe({next:r=>{this.pathToData&&this.pathToData.split(".").forEach(s=>r=r[s]),this.filteredList=r,this.maxNumList&&(this.filteredList=this.filteredList.slice(0,this.maxNumList))},error:r=>console.warn(r),complete:()=>this.isLoading=!1}):this.autoComplete.getRemoteData(n).subscribe({next:r=>{this.filteredList=r||[],this.maxNumList&&(this.filteredList=this.filteredList.slice(0,this.maxNumList))},error:r=>console.warn(r),complete:()=>this.isLoading=!1}))}selectOne(n){n||n===""?this.valueSelected.emit(n):this.customSelected.emit(this.keyword)}enterText(n){this.textEntered.emit(n)}blurHandler(n){this.selectOnBlur&&this.selectOne(this.filteredList[this.itemIndex]),this.hideDropdownList()}scrollToView(n){let o=this.autoCompleteContainer.nativeElement.querySelector("ul"),a=o.querySelector("li").offsetHeight,l=o.scrollTop,c=l+o.offsetHeight,u=a*n;(uc)&&(o.scrollTop=u)}trackByIndex(n,r){return n}get emptyList(){return!(this.isLoading||this.minCharsEntered&&!this.isLoading&&!this.filteredList.length||this.filteredList.length)}};e.\u0275fac=function(r){return new(r||e)(m(Y),m(tw))},e.\u0275cmp=ke({type:e,selectors:[["ngui-auto-complete"]],viewQuery:function(r,o){if(r&1&&(Pe(WR,5),Pe(GR,5)),r&2){let s;pe(s=me())&&(o.autoCompleteInput=s.first),pe(s=me())&&(o.autoCompleteContainer=s.first)}},inputs:{autocomplete:"autocomplete",listFormatter:[0,"list-formatter","listFormatter"],source:"source",pathToData:[0,"path-to-data","pathToData"],minChars:[0,"min-chars","minChars"],placeholder:"placeholder",blankOptionText:[0,"blank-option-text","blankOptionText"],noMatchFoundText:[0,"no-match-found-text","noMatchFoundText"],acceptUserInput:[0,"accept-user-input","acceptUserInput"],loadingText:[0,"loading-text","loadingText"],loadingTemplate:[0,"loading-template","loadingTemplate"],maxNumList:[0,"max-num-list","maxNumList"],showInputTag:[0,"show-input-tag","showInputTag"],showDropdownOnInit:[0,"show-dropdown-on-init","showDropdownOnInit"],tabToSelect:[0,"tab-to-select","tabToSelect"],matchFormatted:[0,"match-formatted","matchFormatted"],autoSelectFirstItem:[0,"auto-select-first-item","autoSelectFirstItem"],selectOnBlur:[0,"select-on-blur","selectOnBlur"],reFocusAfterSelect:[0,"re-focus-after-select","reFocusAfterSelect"],headerItemTemplate:[0,"header-item-template","headerItemTemplate"],ignoreAccents:[0,"ignore-accents","ignoreAccents"]},outputs:{valueSelected:"valueSelected",customSelected:"customSelected",textEntered:"textEntered"},decls:4,vars:2,consts:[["autoCompleteContainer",""],["autoCompleteInput",""],[1,"ngui-auto-complete"],["class","keyword",3,"placeholder","ngModel","focus","blur","keydown","input","ngModelChange",4,"ngIf"],[3,"empty",4,"ngIf"],[1,"keyword",3,"focus","blur","keydown","input","ngModelChange","placeholder","ngModel"],["class","loading",3,"innerHTML",4,"ngIf"],["class","loading",4,"ngIf"],["class","no-match-found",3,"mousedown",4,"ngIf"],["class","header-item",3,"innerHTML",4,"ngIf"],["class","blank-item",3,"mousedown",4,"ngIf"],["class","item",3,"ngClass","innerHtml","mousedown",4,"ngFor","ngForOf","ngForTrackBy"],[1,"loading",3,"innerHTML"],[1,"loading"],[1,"no-match-found",3,"mousedown"],[1,"header-item",3,"innerHTML"],[1,"blank-item",3,"mousedown"],[1,"item",3,"mousedown","ngClass","innerHtml"]],template:function(r,o){r&1&&(D(0,"div",2,0),we(2,QR,2,3,"input",3)(3,tO,7,9,"ul",4),C()),r&2&&(I(2),O("ngIf",o.showInputTag),I(),O("ngIf",o.dropdownVisible))},dependencies:[b_,$r,Ql,pi,Yr,Xi],styles:[`@keyframes slideDown{0%{transform:translateY(-10px)}to{transform:translateY(0)}}.ngui-auto-complete{background-color:transparent}.ngui-auto-complete>input{outline:none;border:0;padding:2px;box-sizing:border-box;background-clip:content-box}.ngui-auto-complete>ul{background-color:#fff;margin:0;width:100%;overflow-y:auto;list-style-type:none;padding:0;border:1px solid #ccc;box-sizing:border-box;animation:slideDown .1s}.ngui-auto-complete>ul.empty{display:none}.ngui-auto-complete>ul li{padding:2px 5px;border-bottom:1px solid #eee}.ngui-auto-complete>ul li.selected{background-color:#ccc}.ngui-auto-complete>ul li:last-child{border-bottom:none}.ngui-auto-complete>ul li:not(.header-item):hover{background-color:#ccc} `],encapsulation:2});let t=e;return t})(),nw=(()=>{let e=class e{constructor(n,r){this.viewContainerRef=n,this.parentForm=r,this.autocomplete=!1,this.acceptUserInput=!0,this.loadingTemplate=null,this.loadingText="Loading",this.tabToSelect=!0,this.selectOnBlur=!1,this.matchFormatted=!1,this.autoSelectFirstItem=!1,this.openOnFocus=!0,this.closeOnFocusOut=!0,this.reFocusAfterSelect=!0,this.headerItemTemplate=null,this.ignoreAccents=!0,this.zIndex="1",this.isRtl=!1,this.ngModelChange=new J,this.valueChanged=new J,this.customSelected=new J,this.showAutoCompleteDropdown=o=>{if(this.dropdownJustHidden)return;this.hideAutoCompleteDropdown(),this.scheduledBlurHandler=null,this.componentRef=this.viewContainerRef.createComponent(op);let s=this.componentRef.instance;s.keyword=this.inputEl.value,s.showInputTag=!1,s.pathToData=this.pathToData,s.minChars=this.minChars,s.source=this.source,s.placeholder=this.autoCompletePlaceholder,s.acceptUserInput=this.acceptUserInput,s.maxNumList=parseInt(this.maxNumList,10),s.loadingText=this.loadingText,s.loadingTemplate=this.loadingTemplate,s.listFormatter=this.listFormatter,s.blankOptionText=this.blankOptionText,s.noMatchFoundText=this.noMatchFoundText,s.tabToSelect=this.tabToSelect,s.selectOnBlur=this.selectOnBlur,s.matchFormatted=this.matchFormatted,s.autoSelectFirstItem=this.autoSelectFirstItem,s.headerItemTemplate=this.headerItemTemplate,s.ignoreAccents=this.ignoreAccents,s.valueSelected.subscribe(this.selectNewValue),s.textEntered.subscribe(this.enterNewText),s.customSelected.subscribe(this.selectCustomValue),this.acDropdownEl=this.componentRef.location.nativeElement,this.acDropdownEl.style.display="none",this.inputEl.parentElement.insertBefore(this.acDropdownEl,this.inputEl.nextSibling),this.revertValue=typeof this.revertValue<"u"?this.revertValue:"",setTimeout(()=>{s.reloadList(this.inputEl.value),this.styleAutoCompleteDropdown(),s.dropdownVisible=!0})},this.hideAutoCompleteDropdown=o=>{if(this.componentRef){let s,a=typeof this.revertValue<"u";this.inputEl&&a&&this.acceptUserInput===!1&&(s=this.componentRef.instance.findItemFromSelectValue(this.inputEl.value)),this.componentRef.destroy(),this.componentRef=void 0,this.inputEl&&a&&this.acceptUserInput===!1&&s===null&&this.inputEl.value!==""?(this.selectNewValue(this.revertValue),s=this.revertValue):this.inputEl&&this.acceptUserInput===!0&&typeof s>"u"&&o&&o.target.value&&this.enterNewText(o.target.value),this.revertValue=s}this.dropdownJustHidden=!0,setTimeout(()=>this.dropdownJustHidden=!1,100)},this.styleAutoCompleteDropdown=()=>{if(this.componentRef){let o=this.componentRef.instance,s=this.el.getBoundingClientRect(),a=this.inputEl.getBoundingClientRect(),l=a.bottom+100>window.innerHeight,c=this.isRtl?"right":"left";this.acDropdownEl.style.width=a.width+"px",this.acDropdownEl.style.position="absolute",this.acDropdownEl.style.zIndex=this.zIndex,this.acDropdownEl.style[c]="0",this.acDropdownEl.style.display="inline-block",l?this.acDropdownEl.style.bottom=`${a.height}px`:this.acDropdownEl.style.top=`${a.height}px`}},this.selectNewValue=o=>{o&&typeof o=="object"&&(o=this.setToStringFunction(o)),this.renderValue(o);let s=o;this.selectValueOf&&o[this.selectValueOf]&&(s=o[this.selectValueOf]),(this.parentForm&&this.formControlName||this.extFormControl)&&s&&this.formControl.patchValue(s),s!==this.ngModel&&this.ngModelChange.emit(s),this.valueChanged.emit(s),this.hideAutoCompleteDropdown(),setTimeout(()=>(this.reFocusAfterSelect&&this.inputEl.focus(),this.inputEl))},this.selectCustomValue=o=>{this.customSelected.emit(o),this.hideAutoCompleteDropdown(),setTimeout(()=>(this.reFocusAfterSelect&&this.inputEl.focus(),this.inputEl))},this.enterNewText=o=>{this.renderValue(o),this.ngModelChange.emit(o),this.valueChanged.emit(o),this.hideAutoCompleteDropdown()},this.keydownEventHandler=o=>{this.componentRef&&this.componentRef.instance.inputElKeyHandler(o)},this.inputEventHandler=o=>{if(this.componentRef){let s=this.componentRef.instance;s.dropdownVisible=!0,s.keyword=o.target.value,s.reloadListInDelay(o)}else this.showAutoCompleteDropdown()},this.el=this.viewContainerRef.element.nativeElement}ngOnInit(){this.documentClickListener=n=>{this.scheduledBlurHandler&&(this.scheduledBlurHandler(),this.scheduledBlurHandler=null)},document.addEventListener("click",this.documentClickListener),this.wrapperEl=document.createElement("div"),this.wrapperEl.className="ngui-auto-complete-wrapper",this.wrapperEl.style.position="relative",this.el.parentElement.insertBefore(this.wrapperEl,this.el.nextSibling),this.wrapperEl.appendChild(this.el),this.parentForm&&this.formControlName?this.parentForm.form?this.formControl=this.parentForm.form.get(this.formControlName):this.parentForm instanceof kc&&(this.formControl=this.parentForm.control.controls[this.formControlName]):this.extFormControl&&(this.formControl=this.extFormControl),this.ngModel?this.selectNewValue(this.ngModel):this.formControl&&this.formControl.value&&this.selectNewValue(this.formControl.value)}ngAfterViewInit(){this.inputEl=this.el.tagName==="INPUT"?this.el:this.el.querySelector("input"),this.openOnFocus&&this.inputEl.addEventListener("focus",n=>this.showAutoCompleteDropdown(n)),this.closeOnFocusOut&&this.inputEl.addEventListener("focusout",n=>this.hideAutoCompleteDropdown(n)),this.autocomplete||this.inputEl.setAttribute("autocomplete","off"),this.inputEl.addEventListener("blur",n=>{this.scheduledBlurHandler=()=>this.blurHandler(n)}),this.inputEl.addEventListener("keydown",n=>this.keydownEventHandler(n)),this.inputEl.addEventListener("input",n=>this.inputEventHandler(n))}ngOnDestroy(){this.componentRef&&(this.componentRef.instance.valueSelected.unsubscribe(),this.componentRef.instance.textEntered.unsubscribe()),this.documentClickListener&&document.removeEventListener("click",this.documentClickListener)}ngOnChanges(n){n.ngModel&&(this.ngModel=this.setToStringFunction(n.ngModel.currentValue),this.renderValue(this.ngModel))}blurHandler(n){if(this.componentRef){let r=this.componentRef.instance;this.selectOnBlur&&r.selectOne(r.filteredList[r.itemIndex]),this.closeOnFocusOut&&this.hideAutoCompleteDropdown(n)}}setToStringFunction(n){if(n&&typeof n=="object"){let r;if(typeof this.valueFormatter=="string"){let o=this.valueFormatter.match(/[a-zA-Z0-9_\$]+/g),s=this.valueFormatter;o&&typeof n!="string"&&o.forEach(a=>{s=s.replace(a,n[a])}),r=s}else typeof this.valueFormatter=="function"?r=this.valueFormatter(n):this.displayPropertyName?r=n[this.displayPropertyName]:typeof this.listFormatter=="string"&&this.listFormatter.match(/^\w+$/)?r=n[this.listFormatter]:r=n.value;n.toString=()=>r}return n}renderValue(n){this.inputEl&&(this.inputEl.value=""+n)}};e.\u0275fac=function(r){return new(r||e)(m(yt),m(ct,13))},e.\u0275dir=W({type:e,selectors:[["","auto-complete",""],["","ngui-auto-complete",""]],inputs:{autocomplete:"autocomplete",autoCompletePlaceholder:[0,"auto-complete-placeholder","autoCompletePlaceholder"],source:"source",pathToData:[0,"path-to-data","pathToData"],minChars:[0,"min-chars","minChars"],displayPropertyName:[0,"display-property-name","displayPropertyName"],acceptUserInput:[0,"accept-user-input","acceptUserInput"],maxNumList:[0,"max-num-list","maxNumList"],selectValueOf:[0,"select-value-of","selectValueOf"],loadingTemplate:[0,"loading-template","loadingTemplate"],listFormatter:[0,"list-formatter","listFormatter"],loadingText:[0,"loading-text","loadingText"],blankOptionText:[0,"blank-option-text","blankOptionText"],noMatchFoundText:[0,"no-match-found-text","noMatchFoundText"],valueFormatter:[0,"value-formatter","valueFormatter"],tabToSelect:[0,"tab-to-select","tabToSelect"],selectOnBlur:[0,"select-on-blur","selectOnBlur"],matchFormatted:[0,"match-formatted","matchFormatted"],autoSelectFirstItem:[0,"auto-select-first-item","autoSelectFirstItem"],openOnFocus:[0,"open-on-focus","openOnFocus"],closeOnFocusOut:[0,"close-on-focusout","closeOnFocusOut"],reFocusAfterSelect:[0,"re-focus-after-select","reFocusAfterSelect"],headerItemTemplate:[0,"header-item-template","headerItemTemplate"],ignoreAccents:[0,"ignore-accents","ignoreAccents"],ngModel:"ngModel",formControlName:"formControlName",extFormControl:[0,"formControl","extFormControl"],zIndex:[0,"z-index","zIndex"],isRtl:[0,"is-rtl","isRtl"]},outputs:{ngModelChange:"ngModelChange",valueChanged:"valueChanged",customSelected:"customSelected"},features:[qe]});let t=e;return t})(),iw=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=ne({type:e}),e.\u0275inj=te({providers:[tw],imports:[Hr,Fc]});let t=e;return t})();var Q="primary",Ns=Symbol("RouteTitle"),up=class{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){let i=this.params[e];return Array.isArray(i)?i[0]:i}return null}getAll(e){if(this.has(e)){let i=this.params[e];return Array.isArray(i)?i:[i]}return[]}get keys(){return Object.keys(this.params)}};function io(t){return new up(t)}function nO(t,e,i){let n=i.path.split("/");if(n.length>t.length||i.pathMatch==="full"&&(e.hasChildren()||n.lengthn[o]===r)}else return t===e}function gw(t){return t.length>0?t[t.length-1]:null}function gi(t){return wo(t)?t:zi(t)?ve(Promise.resolve(t)):M(t)}var rO={exact:yw,subset:bw},vw={exact:oO,subset:sO,ignored:()=>!0};function ow(t,e,i){return rO[i.paths](t.root,e.root,i.matrixParams)&&vw[i.queryParams](t.queryParams,e.queryParams)&&!(i.fragment==="exact"&&t.fragment!==e.fragment)}function oO(t,e){return _n(t,e)}function yw(t,e,i){if(!er(t.segments,e.segments)||!Vc(t.segments,e.segments,i)||t.numberOfChildren!==e.numberOfChildren)return!1;for(let n in e.children)if(!t.children[n]||!yw(t.children[n],e.children[n],i))return!1;return!0}function sO(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(i=>mw(t[i],e[i]))}function bw(t,e,i){return _w(t,e,e.segments,i)}function _w(t,e,i,n){if(t.segments.length>i.length){let r=t.segments.slice(0,i.length);return!(!er(r,i)||e.hasChildren()||!Vc(r,i,n))}else if(t.segments.length===i.length){if(!er(t.segments,i)||!Vc(t.segments,i,n))return!1;for(let r in e.children)if(!t.children[r]||!bw(t.children[r],e.children[r],n))return!1;return!0}else{let r=i.slice(0,t.segments.length),o=i.slice(t.segments.length);return!er(t.segments,r)||!Vc(t.segments,r,n)||!t.children[Q]?!1:_w(t.children[Q],e,o,n)}}function Vc(t,e,i){return e.every((n,r)=>vw[i](t[r].parameters,n.parameters))}var Wn=class{constructor(e=new fe([],{}),i={},n=null){this.root=e,this.queryParams=i,this.fragment=n}get queryParamMap(){return this._queryParamMap??=io(this.queryParams),this._queryParamMap}toString(){return cO.serialize(this)}},fe=class{constructor(e,i){this.segments=e,this.children=i,this.parent=null,Object.values(i).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Bc(this)}},Ji=class{constructor(e,i){this.path=e,this.parameters=i}get parameterMap(){return this._parameterMap??=io(this.parameters),this._parameterMap}toString(){return Dw(this)}};function aO(t,e){return er(t,e)&&t.every((i,n)=>_n(i.parameters,e[n].parameters))}function er(t,e){return t.length!==e.length?!1:t.every((i,n)=>i.path===e[n].path)}function lO(t,e){let i=[];return Object.entries(t.children).forEach(([n,r])=>{n===Q&&(i=i.concat(e(r,n)))}),Object.entries(t.children).forEach(([n,r])=>{n!==Q&&(i=i.concat(e(r,n)))}),i}var Rs=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=E({token:e,factory:()=>new ro,providedIn:"root"});let t=e;return t})(),ro=class{parse(e){let i=new hp(e);return new Wn(i.parseRootSegment(),i.parseQueryParams(),i.parseFragment())}serialize(e){let i=`/${ys(e.root,!0)}`,n=fO(e.queryParams),r=typeof e.fragment=="string"?`#${uO(e.fragment)}`:"";return`${i}${n}${r}`}},cO=new ro;function Bc(t){return t.segments.map(e=>Dw(e)).join("/")}function ys(t,e){if(!t.hasChildren())return Bc(t);if(e){let i=t.children[Q]?ys(t.children[Q],!1):"",n=[];return Object.entries(t.children).forEach(([r,o])=>{r!==Q&&n.push(`${r}:${ys(o,!1)}`)}),n.length>0?`${i}(${n.join("//")})`:i}else{let i=lO(t,(n,r)=>r===Q?[ys(t.children[Q],!1)]:[`${r}:${ys(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[Q]!=null?`${Bc(t)}/${i[0]}`:`${Bc(t)}/(${i.join("//")})`}}function ww(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Lc(t){return ww(t).replace(/%3B/gi,";")}function uO(t){return encodeURI(t)}function fp(t){return ww(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Uc(t){return decodeURIComponent(t)}function sw(t){return Uc(t.replace(/\+/g,"%20"))}function Dw(t){return`${fp(t.path)}${dO(t.parameters)}`}function dO(t){return Object.entries(t).map(([e,i])=>`;${fp(e)}=${fp(i)}`).join("")}function fO(t){let e=Object.entries(t).map(([i,n])=>Array.isArray(n)?n.map(r=>`${Lc(i)}=${Lc(r)}`).join("&"):`${Lc(i)}=${Lc(n)}`).filter(i=>i);return e.length?`?${e.join("&")}`:""}var hO=/^[^\/()?;#]+/;function sp(t){let e=t.match(hO);return e?e[0]:""}var pO=/^[^\/()?;=#]+/;function mO(t){let e=t.match(pO);return e?e[0]:""}var gO=/^[^=?&#]+/;function vO(t){let e=t.match(gO);return e?e[0]:""}var yO=/^[^&#]+/;function bO(t){let e=t.match(yO);return e?e[0]:""}var hp=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new fe([],{}):new fe([],this.parseChildren())}parseQueryParams(){let e={};if(this.consumeOptional("?"))do this.parseQueryParam(e);while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let i={};this.peekStartsWith("/(")&&(this.capture("/"),i=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(i).length>0)&&(n[Q]=new fe(e,i)),n}parseSegment(){let e=sp(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new _(4009,!1);return this.capture(e),new Ji(Uc(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let i=mO(this.remaining);if(!i)return;this.capture(i);let n="";if(this.consumeOptional("=")){let r=sp(this.remaining);r&&(n=r,this.capture(n))}e[Uc(i)]=Uc(n)}parseQueryParam(e){let i=vO(this.remaining);if(!i)return;this.capture(i);let n="";if(this.consumeOptional("=")){let s=bO(this.remaining);s&&(n=s,this.capture(n))}let r=sw(i),o=sw(n);if(e.hasOwnProperty(r)){let s=e[r];Array.isArray(s)||(s=[s],e[r]=s),s.push(o)}else e[r]=o}parseParens(e){let i={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=sp(this.remaining),r=this.remaining[n.length];if(r!=="/"&&r!==")"&&r!==";")throw new _(4010,!1);let o;n.indexOf(":")>-1?(o=n.slice(0,n.indexOf(":")),this.capture(o),this.capture(":")):e&&(o=Q);let s=this.parseChildren();i[o]=Object.keys(s).length===1?s[Q]:new fe([],s),this.consumeOptional("//")}return i}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return this.peekStartsWith(e)?(this.remaining=this.remaining.substring(e.length),!0):!1}capture(e){if(!this.consumeOptional(e))throw new _(4011,!1)}};function Ew(t){return t.segments.length>0?new fe([],{[Q]:t}):t}function Cw(t){let e={};for(let[n,r]of Object.entries(t.children)){let o=Cw(r);if(n===Q&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))e[s]=a;else(o.segments.length>0||o.hasChildren())&&(e[n]=o)}let i=new fe(t.segments,e);return _O(i)}function _O(t){if(t.numberOfChildren===1&&t.children[Q]){let e=t.children[Q];return new fe(t.segments.concat(e.segments),e.children)}return t}function tr(t){return t instanceof Wn}function wO(t,e,i=null,n=null){let r=Iw(t);return xw(r,e,i,n)}function Iw(t){let e;function i(o){let s={};for(let l of o.children){let c=i(l);s[l.outlet]=c}let a=new fe(o.url,s);return o===t&&(e=a),a}let n=i(t.root),r=Ew(n);return e??r}function xw(t,e,i,n){let r=t;for(;r.parent;)r=r.parent;if(e.length===0)return ap(r,r,r,i,n);let o=DO(e);if(o.toRoot())return ap(r,r,new fe([],{}),i,n);let s=EO(o,r,t),a=s.processChildren?ws(s.segmentGroup,s.index,o.commands):Tw(s.segmentGroup,s.index,o.commands);return ap(r,s.segmentGroup,a,i,n)}function $c(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function Cs(t){return typeof t=="object"&&t!=null&&t.outlets}function ap(t,e,i,n,r){let o={};n&&Object.entries(n).forEach(([l,c])=>{o[l]=Array.isArray(c)?c.map(u=>`${u}`):`${c}`});let s;t===e?s=i:s=Sw(t,e,i);let a=Ew(Cw(s));return new Wn(a,o,r)}function Sw(t,e,i){let n={};return Object.entries(t.children).forEach(([r,o])=>{o===e?n[r]=i:n[r]=Sw(o,e,i)}),new fe(t.segments,n)}var Hc=class{constructor(e,i,n){if(this.isAbsolute=e,this.numberOfDoubleDots=i,this.commands=n,e&&n.length>0&&$c(n[0]))throw new _(4003,!1);let r=n.find(Cs);if(r&&r!==gw(n))throw new _(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function DO(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new Hc(!0,0,t);let e=0,i=!1,n=t.reduce((r,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([l,c])=>{a[l]=typeof c=="string"?c.split("/"):c}),[...r,{outlets:a}]}if(o.segmentPath)return[...r,o.segmentPath]}return typeof o!="string"?[...r,o]:s===0?(o.split("/").forEach((a,l)=>{l==0&&a==="."||(l==0&&a===""?i=!0:a===".."?e++:a!=""&&r.push(a))}),r):[...r,o]},[]);return new Hc(i,e,n)}var eo=class{constructor(e,i,n){this.segmentGroup=e,this.processChildren=i,this.index=n}};function EO(t,e,i){if(t.isAbsolute)return new eo(e,!0,0);if(!i)return new eo(e,!1,NaN);if(i.parent===null)return new eo(i,!0,0);let n=$c(t.commands[0])?0:1,r=i.segments.length-1+n;return CO(i,r,t.numberOfDoubleDots)}function CO(t,e,i){let n=t,r=e,o=i;for(;o>r;){if(o-=r,n=n.parent,!n)throw new _(4005,!1);r=n.segments.length}return new eo(n,!1,r-o)}function IO(t){return Cs(t[0])?t[0].outlets:{[Q]:t}}function Tw(t,e,i){if(t??=new fe([],{}),t.segments.length===0&&t.hasChildren())return ws(t,e,i);let n=xO(t,e,i),r=i.slice(n.commandIndex);if(n.match&&n.pathIndexo!==Q)&&t.children[Q]&&t.numberOfChildren===1&&t.children[Q].segments.length===0){let o=ws(t.children[Q],e,i);return new fe(t.segments,o.children)}return Object.entries(n).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(r[o]=Tw(t.children[o],e,s))}),Object.entries(t.children).forEach(([o,s])=>{n[o]===void 0&&(r[o]=s)}),new fe(t.segments,r)}}function xO(t,e,i){let n=0,r=e,o={match:!1,pathIndex:0,commandIndex:0};for(;r=i.length)return o;let s=t.segments[r],a=i[n];if(Cs(a))break;let l=`${a}`,c=n0&&l===void 0)break;if(l&&c&&typeof c=="object"&&c.outlets===void 0){if(!lw(l,c,s))return o;n+=2}else{if(!lw(l,{},s))return o;n++}r++}return{match:!0,pathIndex:r,commandIndex:n}}function pp(t,e,i){let n=t.segments.slice(0,e),r=0;for(;r{typeof n=="string"&&(n=[n]),n!==null&&(e[i]=pp(new fe([],{}),0,n))}),e}function aw(t){let e={};return Object.entries(t).forEach(([i,n])=>e[i]=`${n}`),e}function lw(t,e,i){return t==i.path&&_n(e,i.parameters)}var Ds="imperative",We=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(We||{}),jt=class{constructor(e,i){this.id=e,this.url=i}},oo=class extends jt{constructor(e,i,n="imperative",r=null){super(e,i),this.type=We.NavigationStart,this.navigationTrigger=n,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Yt=class extends jt{constructor(e,i,n){super(e,i),this.urlAfterRedirects=n,this.type=We.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},Ct=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(Ct||{}),zc=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(zc||{}),zn=class extends jt{constructor(e,i,n,r){super(e,i),this.reason=n,this.code=r,this.type=We.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},mi=class extends jt{constructor(e,i,n,r){super(e,i),this.reason=n,this.code=r,this.type=We.NavigationSkipped}},Is=class extends jt{constructor(e,i,n,r){super(e,i),this.error=n,this.target=r,this.type=We.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Wc=class extends jt{constructor(e,i,n,r){super(e,i),this.urlAfterRedirects=n,this.state=r,this.type=We.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},mp=class extends jt{constructor(e,i,n,r){super(e,i),this.urlAfterRedirects=n,this.state=r,this.type=We.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},gp=class extends jt{constructor(e,i,n,r,o){super(e,i),this.urlAfterRedirects=n,this.state=r,this.shouldActivate=o,this.type=We.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},vp=class extends jt{constructor(e,i,n,r){super(e,i),this.urlAfterRedirects=n,this.state=r,this.type=We.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},yp=class extends jt{constructor(e,i,n,r){super(e,i),this.urlAfterRedirects=n,this.state=r,this.type=We.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},bp=class{constructor(e){this.route=e,this.type=We.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},_p=class{constructor(e){this.route=e,this.type=We.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},wp=class{constructor(e){this.snapshot=e,this.type=We.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Dp=class{constructor(e){this.snapshot=e,this.type=We.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ep=class{constructor(e){this.snapshot=e,this.type=We.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Cp=class{constructor(e){this.snapshot=e,this.type=We.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Gc=class{constructor(e,i,n){this.routerEvent=e,this.position=i,this.anchor=n,this.type=We.Scroll}toString(){let e=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${e}')`}},xs=class{},so=class{constructor(e,i){this.url=e,this.navigationBehaviorOptions=i}};function TO(t,e){return t.providers&&!t._injector&&(t._injector=Fl(t.providers,e,`Route: ${t.path}`)),t._injector??e}function Kt(t){return t.outlet||Q}function MO(t,e){let i=t.filter(n=>Kt(n)===e);return i.push(...t.filter(n=>Kt(n)!==e)),i}function Os(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let e=t.parent;e;e=e.parent){let i=e.routeConfig;if(i?._loadedInjector)return i._loadedInjector;if(i?._injector)return i._injector}return null}var Ip=class{get injector(){return Os(this.route?.snapshot)??this.rootInjector}set injector(e){}constructor(e){this.rootInjector=e,this.outlet=null,this.route=null,this.children=new ks(this.rootInjector),this.attachRef=null}},ks=(()=>{let e=class e{constructor(n){this.rootInjector=n,this.contexts=new Map}onChildOutletCreated(n,r){let o=this.getOrCreateContext(n);o.outlet=r,this.contexts.set(n,o)}onChildOutletDestroyed(n){let r=this.getContext(n);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let r=this.getContext(n);return r||(r=new Ip(this.rootInjector),this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}};e.\u0275fac=function(r){return new(r||e)(y(st))},e.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),qc=class{constructor(e){this._root=e}get root(){return this._root.value}parent(e){let i=this.pathFromRoot(e);return i.length>1?i[i.length-2]:null}children(e){let i=xp(e,this._root);return i?i.children.map(n=>n.value):[]}firstChild(e){let i=xp(e,this._root);return i&&i.children.length>0?i.children[0].value:null}siblings(e){let i=Sp(e,this._root);return i.length<2?[]:i[i.length-2].children.map(r=>r.value).filter(r=>r!==e)}pathFromRoot(e){return Sp(e,this._root).map(i=>i.value)}};function xp(t,e){if(t===e.value)return e;for(let i of e.children){let n=xp(t,i);if(n)return n}return null}function Sp(t,e){if(t===e.value)return[e];for(let i of e.children){let n=Sp(t,i);if(n.length)return n.unshift(e),n}return[]}var Et=class{constructor(e,i){this.value=e,this.children=i}toString(){return`TreeNode(${this.value})`}};function Jr(t){let e={};return t&&t.children.forEach(i=>e[i.value.outlet]=i),e}var Qc=class extends qc{constructor(e,i){super(e),this.snapshot=i,Pp(this,e)}toString(){return this.snapshot.toString()}};function Mw(t){let e=AO(t),i=new Oe([new Ji("",{})]),n=new Oe({}),r=new Oe({}),o=new Oe({}),s=new Oe(""),a=new nr(i,n,o,s,r,Q,t,e.root);return a.snapshot=e.root,new Qc(new Et(a,[]),e)}function AO(t){let e={},i={},n={},r="",o=new to([],e,n,r,i,Q,t,null,{});return new Kc("",new Et(o,[]))}var nr=class{constructor(e,i,n,r,o,s,a,l){this.urlSubject=e,this.paramsSubject=i,this.queryParamsSubject=n,this.fragmentSubject=r,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(N(c=>c[Ns]))??M(void 0),this.url=e,this.params=i,this.queryParams=n,this.fragment=r,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(N(e=>io(e))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(N(e=>io(e))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Zc(t,e,i="emptyOnly"){let n,{routeConfig:r}=t;return e!==null&&(i==="always"||r?.path===""||!e.component&&!e.routeConfig?.loadComponent)?n={params:b(b({},e.params),t.params),data:b(b({},e.data),t.data),resolve:b(b(b(b({},t.data),e.data),r?.data),t._resolvedData)}:n={params:b({},t.params),data:b({},t.data),resolve:b(b({},t.data),t._resolvedData??{})},r&&Nw(r)&&(n.resolve[Ns]=r.title),n}var to=class{get title(){return this.data?.[Ns]}constructor(e,i,n,r,o,s,a,l,c){this.url=e,this.params=i,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.routeConfig=l,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=io(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=io(this.queryParams),this._queryParamMap}toString(){let e=this.url.map(n=>n.toString()).join("/"),i=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${i}')`}},Kc=class extends qc{constructor(e,i){super(i),this.url=e,Pp(this,i)}toString(){return Aw(this._root)}};function Pp(t,e){e.value._routerState=t,e.children.forEach(i=>Pp(t,i))}function Aw(t){let e=t.children.length>0?` { ${t.children.map(Aw).join(", ")} } `:"";return`${t.value}${e}`}function lp(t){if(t.snapshot){let e=t.snapshot,i=t._futureSnapshot;t.snapshot=i,_n(e.queryParams,i.queryParams)||t.queryParamsSubject.next(i.queryParams),e.fragment!==i.fragment&&t.fragmentSubject.next(i.fragment),_n(e.params,i.params)||t.paramsSubject.next(i.params),iO(e.url,i.url)||t.urlSubject.next(i.url),_n(e.data,i.data)||t.dataSubject.next(i.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function Tp(t,e){let i=_n(t.params,e.params)&&aO(t.url,e.url),n=!t.parent!=!e.parent;return i&&!n&&(!t.parent||Tp(t.parent,e.parent))}function Nw(t){return typeof t.title=="string"||t.title===null}var Lp=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=Q,this.activateEvents=new J,this.deactivateEvents=new J,this.attachEvents=new J,this.detachEvents=new J,this.parentContexts=g(ks),this.location=g(yt),this.changeDetector=g(tt),this.inputBinder=g(nu,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){let{firstChange:r,previousValue:o}=n.name;if(r)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new _(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new _(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new _(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){let n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new _(4013,!1);this._activatedRoute=n;let o=this.location,a=n.snapshot.component,l=this.parentContexts.getOrCreateContext(this.name).children,c=new Mp(n,l,o.injector);this.activated=o.createComponent(a,{index:o.length,injector:c,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=W({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[qe]});let t=e;return t})(),Mp=class t{__ngOutletInjector(e){return new t(this.route,this.childContexts,e)}constructor(e,i,n){this.route=e,this.childContexts=i,this.parent=n}get(e,i){return e===nr?this.route:e===ks?this.childContexts:this.parent.get(e,i)}},nu=new x(""),cw=(()=>{let e=class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(n){this.unsubscribeFromRouteData(n),this.subscribeToRouteData(n)}unsubscribeFromRouteData(n){this.outletDataSubscriptions.get(n)?.unsubscribe(),this.outletDataSubscriptions.delete(n)}subscribeToRouteData(n){let{activatedRoute:r}=n,o=Ii([r.queryParams,r.params,r.data]).pipe(Ge(([s,a,l],c)=>(l=b(b(b({},s),a),l),c===0?M(l):Promise.resolve(l)))).subscribe(s=>{if(!n.isActivated||!n.activatedComponentRef||n.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(n);return}let a=l_(r.component);if(!a){this.unsubscribeFromRouteData(n);return}for(let{templateName:l}of a.inputs)n.activatedComponentRef.setInput(l,s[l])});this.outletDataSubscriptions.set(n,o)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=E({token:e,factory:e.\u0275fac});let t=e;return t})();function NO(t,e,i){let n=Ss(t,e._root,i?i._root:void 0);return new Qc(n,e)}function Ss(t,e,i){if(i&&t.shouldReuseRoute(e.value,i.value.snapshot)){let n=i.value;n._futureSnapshot=e.value;let r=RO(t,e,i);return new Et(n,r)}else{if(t.shouldAttach(e.value)){let o=t.retrieve(e.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=e.value,s.children=e.children.map(a=>Ss(t,a)),s}}let n=OO(e.value),r=e.children.map(o=>Ss(t,o));return new Et(n,r)}}function RO(t,e,i){return e.children.map(n=>{for(let r of i.children)if(t.shouldReuseRoute(n.value,r.value.snapshot))return Ss(t,n,r);return Ss(t,n)})}function OO(t){return new nr(new Oe(t.url),new Oe(t.params),new Oe(t.queryParams),new Oe(t.fragment),new Oe(t.data),t.outlet,t.component,t)}var Ts=class{constructor(e,i){this.redirectTo=e,this.navigationBehaviorOptions=i}},Rw="ngNavigationCancelingError";function Yc(t,e){let{redirectTo:i,navigationBehaviorOptions:n}=tr(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,r=Ow(!1,Ct.Redirect);return r.url=i,r.navigationBehaviorOptions=n,r}function Ow(t,e){let i=new Error(`NavigationCancelingError: ${t||""}`);return i[Rw]=!0,i.cancellationCode=e,i}function kO(t){return kw(t)&&tr(t.url)}function kw(t){return!!t&&t[Rw]}var FO=(t,e,i,n)=>N(r=>(new Ap(e,r.targetRouterState,r.currentRouterState,i,n).activate(t),r)),Ap=class{constructor(e,i,n,r,o){this.routeReuseStrategy=e,this.futureState=i,this.currState=n,this.forwardEvent=r,this.inputBindingEnabled=o}activate(e){let i=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(i,n,e),lp(this.futureState.root),this.activateChildRoutes(i,n,e)}deactivateChildRoutes(e,i,n){let r=Jr(i);e.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,r[s],n),delete r[s]}),Object.values(r).forEach(o=>{this.deactivateRouteAndItsChildren(o,n)})}deactivateRoutes(e,i,n){let r=e.value,o=i?i.value:null;if(r===o)if(r.component){let s=n.getContext(r.outlet);s&&this.deactivateChildRoutes(e,i,s.children)}else this.deactivateChildRoutes(e,i,n);else o&&this.deactivateRouteAndItsChildren(i,n)}deactivateRouteAndItsChildren(e,i){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,i):this.deactivateRouteAndOutlet(e,i)}detachAndStoreRouteSubtree(e,i){let n=i.getContext(e.value.outlet),r=n&&e.value.component?n.children:i,o=Jr(e);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,r);if(n&&n.outlet){let s=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:s,route:e,contexts:a})}}deactivateRouteAndOutlet(e,i){let n=i.getContext(e.value.outlet),r=n&&e.value.component?n.children:i,o=Jr(e);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,r);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(e,i,n){let r=Jr(i);e.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],n),this.forwardEvent(new Cp(o.value.snapshot))}),e.children.length&&this.forwardEvent(new Dp(e.value.snapshot))}activateRoutes(e,i,n){let r=e.value,o=i?i.value:null;if(lp(r),r===o)if(r.component){let s=n.getOrCreateContext(r.outlet);this.activateChildRoutes(e,i,s.children)}else this.activateChildRoutes(e,i,n);else if(r.component){let s=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){let a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),lp(a.route.value),this.activateChildRoutes(e,null,s.children)}else s.attachRef=null,s.route=r,s.outlet&&s.outlet.activateWith(r,s.injector),this.activateChildRoutes(e,null,s.children)}else this.activateChildRoutes(e,null,n)}},Xc=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},no=class{constructor(e,i){this.component=e,this.route=i}};function PO(t,e,i){let n=t._root,r=e?e._root:null;return bs(n,r,i,[n.value])}function LO(t){let e=t.routeConfig?t.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:t,guards:e}}function lo(t,e){let i=Symbol(),n=e.get(t,i);return n===i?typeof t=="function"&&!nv(t)?t:e.get(t):n}function bs(t,e,i,n,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=Jr(e);return t.children.forEach(s=>{jO(s,o[s.value.outlet],i,n.concat([s.value]),r),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>Es(a,i.getContext(s),r)),r}function jO(t,e,i,n,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=e?e.value:null,a=i?i.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let l=VO(s,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new Xc(n)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?bs(t,e,a?a.children:null,n,r):bs(t,e,i,n,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new no(a.outlet.component,s))}else s&&Es(e,a,r),r.canActivateChecks.push(new Xc(n)),o.component?bs(t,null,a?a.children:null,n,r):bs(t,null,i,n,r);return r}function VO(t,e,i){if(typeof i=="function")return i(t,e);switch(i){case"pathParamsChange":return!er(t.url,e.url);case"pathParamsOrQueryParamsChange":return!er(t.url,e.url)||!_n(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Tp(t,e)||!_n(t.queryParams,e.queryParams);case"paramsChange":default:return!Tp(t,e)}}function Es(t,e,i){let n=Jr(t),r=t.value;Object.entries(n).forEach(([o,s])=>{r.component?e?Es(s,e.children.getContext(o),i):Es(s,null,i):Es(s,e,i)}),r.component?e&&e.outlet&&e.outlet.isActivated?i.canDeactivateChecks.push(new no(e.outlet.component,r)):i.canDeactivateChecks.push(new no(null,r)):i.canDeactivateChecks.push(new no(null,r))}function Fs(t){return typeof t=="function"}function BO(t){return typeof t=="boolean"}function UO(t){return t&&Fs(t.canLoad)}function $O(t){return t&&Fs(t.canActivate)}function HO(t){return t&&Fs(t.canActivateChild)}function zO(t){return t&&Fs(t.canDeactivate)}function WO(t){return t&&Fs(t.canMatch)}function Fw(t){return t instanceof Cn||t?.name==="EmptyError"}var jc=Symbol("INITIAL_VALUE");function ao(){return Ge(t=>Ii(t.map(e=>e.pipe(dt(1),Tn(jc)))).pipe(N(e=>{for(let i of e)if(i!==!0){if(i===jc)return jc;if(i===!1||GO(i))return i}return!0}),_e(e=>e!==jc),dt(1)))}function GO(t){return tr(t)||t instanceof Ts}function qO(t,e){return Me(i=>{let{targetSnapshot:n,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:s}}=i;return s.length===0&&o.length===0?M(ie(b({},i),{guardsResult:!0})):QO(s,n,r,t).pipe(Me(a=>a&&BO(a)?ZO(n,o,t,e):M(a)),N(a=>ie(b({},i),{guardsResult:a})))})}function QO(t,e,i,n){return ve(t).pipe(Me(r=>ek(r.component,r.route,i,e,n)),on(r=>r!==!0,!0))}function ZO(t,e,i,n){return ve(e).pipe(xn(r=>Zn(YO(r.route.parent,n),KO(r.route,n),JO(t,r.path,i),XO(t,r.route,i))),on(r=>r!==!0,!0))}function KO(t,e){return t!==null&&e&&e(new Ep(t)),M(!0)}function YO(t,e){return t!==null&&e&&e(new wp(t)),M(!0)}function XO(t,e,i){let n=e.routeConfig?e.routeConfig.canActivate:null;if(!n||n.length===0)return M(!0);let r=n.map(o=>Da(()=>{let s=Os(e)??i,a=lo(o,s),l=$O(a)?a.canActivate(e,t):At(s,()=>a(e,t));return gi(l).pipe(on())}));return M(r).pipe(ao())}function JO(t,e,i){let n=e[e.length-1],o=e.slice(0,e.length-1).reverse().map(s=>LO(s)).filter(s=>s!==null).map(s=>Da(()=>{let a=s.guards.map(l=>{let c=Os(s.node)??i,u=lo(l,c),d=HO(u)?u.canActivateChild(n,t):At(c,()=>u(n,t));return gi(d).pipe(on())});return M(a).pipe(ao())}));return M(o).pipe(ao())}function ek(t,e,i,n,r){let o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||o.length===0)return M(!0);let s=o.map(a=>{let l=Os(e)??r,c=lo(a,l),u=zO(c)?c.canDeactivate(t,e,i,n):At(l,()=>c(t,e,i,n));return gi(u).pipe(on())});return M(s).pipe(ao())}function tk(t,e,i,n){let r=e.canLoad;if(r===void 0||r.length===0)return M(!0);let o=r.map(s=>{let a=lo(s,t),l=UO(a)?a.canLoad(e,i):At(t,()=>a(e,i));return gi(l)});return M(o).pipe(ao(),Pw(n))}function Pw(t){return Tu(De(e=>{if(typeof e!="boolean")throw Yc(t,e)}),N(e=>e===!0))}function nk(t,e,i,n){let r=e.canMatch;if(!r||r.length===0)return M(!0);let o=r.map(s=>{let a=lo(s,t),l=WO(a)?a.canMatch(e,i):At(t,()=>a(e,i));return gi(l)});return M(o).pipe(ao(),Pw(n))}var Ms=class{constructor(e){this.segmentGroup=e||null}},As=class extends Error{constructor(e){super(),this.urlTree=e}};function Xr(t){return Qn(new Ms(t))}function ik(t){return Qn(new _(4e3,!1))}function rk(t){return Qn(Ow(!1,Ct.GuardRejected))}var Np=class{constructor(e,i){this.urlSerializer=e,this.urlTree=i}lineralizeSegments(e,i){let n=[],r=i.root;for(;;){if(n=n.concat(r.segments),r.numberOfChildren===0)return M(n);if(r.numberOfChildren>1||!r.children[Q])return ik(`${e.redirectTo}`);r=r.children[Q]}}applyRedirectCommands(e,i,n,r,o){if(typeof i!="string"){let a=i,{queryParams:l,fragment:c,routeConfig:u,url:d,outlet:h,params:f,data:p,title:v}=r,w=At(o,()=>a({params:f,data:p,queryParams:l,fragment:c,routeConfig:u,url:d,outlet:h,title:v}));if(w instanceof Wn)throw new As(w);i=w}let s=this.applyRedirectCreateUrlTree(i,this.urlSerializer.parse(i),e,n);if(i[0]==="/")throw new As(s);return s}applyRedirectCreateUrlTree(e,i,n,r){let o=this.createSegmentGroup(e,i.root,n,r);return new Wn(o,this.createQueryParams(i.queryParams,this.urlTree.queryParams),i.fragment)}createQueryParams(e,i){let n={};return Object.entries(e).forEach(([r,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);n[r]=i[a]}else n[r]=o}),n}createSegmentGroup(e,i,n,r){let o=this.createSegments(e,i.segments,n,r),s={};return Object.entries(i.children).forEach(([a,l])=>{s[a]=this.createSegmentGroup(e,l,n,r)}),new fe(o,s)}createSegments(e,i,n,r){return i.map(o=>o.path[0]===":"?this.findPosParam(e,o,r):this.findOrReturn(o,n))}findPosParam(e,i,n){let r=n[i.path.substring(1)];if(!r)throw new _(4001,!1);return r}findOrReturn(e,i){let n=0;for(let r of i){if(r.path===e.path)return i.splice(n),r;n++}return e}},Rp={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function ok(t,e,i,n,r){let o=Lw(t,e,i);return o.matched?(n=TO(e,n),nk(n,e,i,r).pipe(N(s=>s===!0?o:b({},Rp)))):M(o)}function Lw(t,e,i){if(e.path==="**")return sk(i);if(e.path==="")return e.pathMatch==="full"&&(t.hasChildren()||i.length>0)?b({},Rp):{matched:!0,consumedSegments:[],remainingSegments:i,parameters:{},positionalParamSegments:{}};let r=(e.matcher||nO)(i,t,e);if(!r)return b({},Rp);let o={};Object.entries(r.posParams??{}).forEach(([a,l])=>{o[a]=l.path});let s=r.consumed.length>0?b(b({},o),r.consumed[r.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:i.slice(r.consumed.length),parameters:s,positionalParamSegments:r.posParams??{}}}function sk(t){return{matched:!0,parameters:t.length>0?gw(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function uw(t,e,i,n){return i.length>0&&ck(t,i,n)?{segmentGroup:new fe(e,lk(n,new fe(i,t.children))),slicedSegments:[]}:i.length===0&&uk(t,i,n)?{segmentGroup:new fe(t.segments,ak(t,i,n,t.children)),slicedSegments:i}:{segmentGroup:new fe(t.segments,t.children),slicedSegments:i}}function ak(t,e,i,n){let r={};for(let o of i)if(iu(t,e,o)&&!n[Kt(o)]){let s=new fe([],{});r[Kt(o)]=s}return b(b({},n),r)}function lk(t,e){let i={};i[Q]=e;for(let n of t)if(n.path===""&&Kt(n)!==Q){let r=new fe([],{});i[Kt(n)]=r}return i}function ck(t,e,i){return i.some(n=>iu(t,e,n)&&Kt(n)!==Q)}function uk(t,e,i){return i.some(n=>iu(t,e,n))}function iu(t,e,i){return(t.hasChildren()||e.length>0)&&i.pathMatch==="full"?!1:i.path===""}function dk(t,e,i){return e.length===0&&!t.children[i]}var Op=class{};function fk(t,e,i,n,r,o,s="emptyOnly"){return new kp(t,e,i,n,r,s,o).recognize()}var hk=31,kp=class{constructor(e,i,n,r,o,s,a){this.injector=e,this.configLoader=i,this.rootComponentType=n,this.config=r,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new Np(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new _(4002,`'${e.segmentGroup}'`)}recognize(){let e=uw(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(N(({children:i,rootSnapshot:n})=>{let r=new Et(n,i),o=new Kc("",r),s=wO(n,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}))}match(e){let i=new to([],Object.freeze({}),Object.freeze(b({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),Q,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,e,Q,i).pipe(N(n=>({children:n,rootSnapshot:i})),nn(n=>{if(n instanceof As)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof Ms?this.noMatchError(n):n}))}processSegmentGroup(e,i,n,r,o){return n.segments.length===0&&n.hasChildren()?this.processChildren(e,i,n,o):this.processSegment(e,i,n,n.segments,r,!0,o).pipe(N(s=>s instanceof Et?[s]:[]))}processChildren(e,i,n,r){let o=[];for(let s of Object.keys(n.children))s==="primary"?o.unshift(s):o.push(s);return ve(o).pipe(xn(s=>{let a=n.children[s],l=MO(i,s);return this.processSegmentGroup(e,l,a,s,r)}),Pu((s,a)=>(s.push(...a),s)),Kn(null),Fu(),Me(s=>{if(s===null)return Xr(n);let a=jw(s);return pk(a),M(a)}))}processSegment(e,i,n,r,o,s,a){return ve(i).pipe(xn(l=>this.processSegmentAgainstRoute(l._injector??e,i,l,n,r,o,s,a).pipe(nn(c=>{if(c instanceof Ms)return M(null);throw c}))),on(l=>!!l),nn(l=>{if(Fw(l))return dk(n,r,o)?M(new Op):Xr(n);throw l}))}processSegmentAgainstRoute(e,i,n,r,o,s,a,l){return Kt(n)!==s&&(s===Q||!iu(r,o,n))?Xr(r):n.redirectTo===void 0?this.matchSegmentAgainstRoute(e,r,n,o,s,l):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(e,r,i,n,o,s,l):Xr(r)}expandSegmentAgainstRouteUsingRedirect(e,i,n,r,o,s,a){let{matched:l,parameters:c,consumedSegments:u,positionalParamSegments:d,remainingSegments:h}=Lw(i,r,o);if(!l)return Xr(i);typeof r.redirectTo=="string"&&r.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>hk&&(this.allowRedirects=!1));let f=new to(o,c,Object.freeze(b({},this.urlTree.queryParams)),this.urlTree.fragment,dw(r),Kt(r),r.component??r._loadedComponent??null,r,fw(r)),p=Zc(f,a,this.paramsInheritanceStrategy);f.params=Object.freeze(p.params),f.data=Object.freeze(p.data);let v=this.applyRedirects.applyRedirectCommands(u,r.redirectTo,d,f,e);return this.applyRedirects.lineralizeSegments(r,v).pipe(Me(w=>this.processSegment(e,n,i,w.concat(h),s,!1,a)))}matchSegmentAgainstRoute(e,i,n,r,o,s){let a=ok(i,n,r,e,this.urlSerializer);return n.path==="**"&&(i.children={}),a.pipe(Ge(l=>l.matched?(e=n._injector??e,this.getChildConfig(e,n,r).pipe(Ge(({routes:c})=>{let u=n._loadedInjector??e,{parameters:d,consumedSegments:h,remainingSegments:f}=l,p=new to(h,d,Object.freeze(b({},this.urlTree.queryParams)),this.urlTree.fragment,dw(n),Kt(n),n.component??n._loadedComponent??null,n,fw(n)),v=Zc(p,s,this.paramsInheritanceStrategy);p.params=Object.freeze(v.params),p.data=Object.freeze(v.data);let{segmentGroup:w,slicedSegments:S}=uw(i,h,f,c);if(S.length===0&&w.hasChildren())return this.processChildren(u,c,w,p).pipe(N(Z=>new Et(p,Z)));if(c.length===0&&S.length===0)return M(new Et(p,[]));let k=Kt(n)===o;return this.processSegment(u,c,w,S,k?Q:o,!0,p).pipe(N(Z=>new Et(p,Z instanceof Et?[Z]:[])))}))):Xr(i)))}getChildConfig(e,i,n){return i.children?M({routes:i.children,injector:e}):i.loadChildren?i._loadedRoutes!==void 0?M({routes:i._loadedRoutes,injector:i._loadedInjector}):tk(e,i,n,this.urlSerializer).pipe(Me(r=>r?this.configLoader.loadChildren(e,i).pipe(De(o=>{i._loadedRoutes=o.routes,i._loadedInjector=o.injector})):rk(i))):M({routes:[],injector:e})}};function pk(t){t.sort((e,i)=>e.value.outlet===Q?-1:i.value.outlet===Q?1:e.value.outlet.localeCompare(i.value.outlet))}function mk(t){let e=t.value.routeConfig;return e&&e.path===""}function jw(t){let e=[],i=new Set;for(let n of t){if(!mk(n)){e.push(n);continue}let r=e.find(o=>n.value.routeConfig===o.value.routeConfig);r!==void 0?(r.children.push(...n.children),i.add(r)):e.push(n)}for(let n of i){let r=jw(n.children);e.push(new Et(n.value,r))}return e.filter(n=>!i.has(n))}function dw(t){return t.data||{}}function fw(t){return t.resolve||{}}function gk(t,e,i,n,r,o){return Me(s=>fk(t,e,i,n,s.extractedUrl,r,o).pipe(N(({state:a,tree:l})=>ie(b({},s),{targetSnapshot:a,urlAfterRedirects:l}))))}function vk(t,e){return Me(i=>{let{targetSnapshot:n,guards:{canActivateChecks:r}}=i;if(!r.length)return M(i);let o=new Set(r.map(l=>l.route)),s=new Set;for(let l of o)if(!s.has(l))for(let c of Vw(l))s.add(c);let a=0;return ve(s).pipe(xn(l=>o.has(l)?yk(l,n,t,e):(l.data=Zc(l,l.parent,t).resolve,M(void 0))),De(()=>a++),yr(1),Me(l=>a===s.size?M(i):Ue))})}function Vw(t){let e=t.children.map(i=>Vw(i)).flat();return[t,...e]}function yk(t,e,i,n){let r=t.routeConfig,o=t._resolve;return r?.title!==void 0&&!Nw(r)&&(o[Ns]=r.title),bk(o,t,e,n).pipe(N(s=>(t._resolvedData=s,t.data=Zc(t,t.parent,i).resolve,null)))}function bk(t,e,i,n){let r=dp(t);if(r.length===0)return M({});let o={};return ve(r).pipe(Me(s=>_k(t[s],e,i,n).pipe(on(),De(a=>{if(a instanceof Ts)throw Yc(new ro,a);o[s]=a}))),yr(1),ku(o),nn(s=>Fw(s)?Ue:Qn(s)))}function _k(t,e,i,n){let r=Os(e)??n,o=lo(t,r),s=o.resolve?o.resolve(e,i):At(r,()=>o(e,i));return gi(s)}function cp(t){return Ge(e=>{let i=t(e);return i?ve(i).pipe(N(()=>e)):M(e)})}var Bw=(()=>{let e=class e{buildTitle(n){let r,o=n.root;for(;o!==void 0;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(s=>s.outlet===Q);return r}getResolvedTitleForRoute(n){return n.data[Ns]}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=E({token:e,factory:()=>g(wk),providedIn:"root"});let t=e;return t})(),wk=(()=>{let e=class e extends Bw{constructor(n){super(),this.title=n}updateTitle(n){let r=this.buildTitle(n);r!==void 0&&this.title.setTitle(r)}};e.\u0275fac=function(r){return new(r||e)(y(W_))},e.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Ps=new x("",{providedIn:"root",factory:()=>({})}),Dk=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=ke({type:e,selectors:[["ng-component"]],standalone:!0,features:[_t],decls:1,vars:0,template:function(r,o){r&1&&L(0,"router-outlet")},dependencies:[Lp],encapsulation:2});let t=e;return t})();function jp(t){let e=t.children&&t.children.map(jp),i=e?ie(b({},t),{children:e}):b({},t);return!i.component&&!i.loadComponent&&(e||i.loadChildren)&&i.outlet&&i.outlet!==Q&&(i.component=Dk),i}var Jc=new x(""),Vp=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=g(Ul)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return M(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let r=gi(n.loadComponent()).pipe(N(Uw),De(s=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=s}),rn(()=>{this.componentLoaders.delete(n)})),o=new hr(r,()=>new V).pipe(fr());return this.componentLoaders.set(n,o),o}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return M({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let s=Ek(r,this.compiler,n,this.onLoadEndListener).pipe(rn(()=>{this.childrenLoaders.delete(r)})),a=new hr(s,()=>new V).pipe(fr());return this.childrenLoaders.set(r,a),a}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Ek(t,e,i,n){return gi(t.loadChildren()).pipe(N(Uw),Me(r=>r instanceof ko||Array.isArray(r)?M(r):ve(e.compileModuleAsync(r))),N(r=>{n&&n(t);let o,s,a=!1;return Array.isArray(r)?(s=r,a=!0):(o=r.create(i).injector,s=o.get(Jc,[],{optional:!0,self:!0}).flat()),{routes:s.map(jp),injector:o}}))}function Ck(t){return t&&typeof t=="object"&&"default"in t}function Uw(t){return Ck(t)?t.default:t}var Bp=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=E({token:e,factory:()=>g(Ik),providedIn:"root"});let t=e;return t})(),Ik=(()=>{let e=class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),$w=new x(""),Hw=new x("");function xk(t,e,i){let n=t.get(Hw),r=t.get(ae);return t.get(R).runOutsideAngular(()=>{if(!r.startViewTransition||n.skipNextTransition)return n.skipNextTransition=!1,new Promise(c=>setTimeout(c));let o,s=new Promise(c=>{o=c}),a=r.startViewTransition(()=>(o(),Sk(t))),{onViewTransitionCreated:l}=n;return l&&At(t,()=>l({transition:a,from:e,to:i})),s})}function Sk(t){return new Promise(e=>{Lr({read:()=>setTimeout(e)},{injector:t})})}var Tk=new x(""),Up=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new V,this.transitionAbortSubject=new V,this.configLoader=g(Vp),this.environmentInjector=g(st),this.urlSerializer=g(Rs),this.rootContexts=g(ks),this.location=g(Ur),this.inputBindingEnabled=g(nu,{optional:!0})!==null,this.titleStrategy=g(Bw),this.options=g(Ps,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=g(Bp),this.createViewTransition=g($w,{optional:!0}),this.navigationErrorHandler=g(Tk,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>M(void 0),this.rootComponentType=null;let n=o=>this.events.next(new bp(o)),r=o=>this.events.next(new _p(o));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let r=++this.navigationId;this.transitions?.next(ie(b(b({},this.transitions.value),n),{id:r}))}setupNavigations(n,r,o){return this.transitions=new Oe({id:0,currentUrlTree:r,currentRawUrl:r,extractedUrl:this.urlHandlingStrategy.extract(r),urlAfterRedirects:this.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:Ds,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(_e(s=>s.id!==0),N(s=>ie(b({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),Ge(s=>{let a=!1,l=!1;return M(s).pipe(Ge(c=>{if(this.navigationId>s.id)return this.cancelNavigationTransition(s,"",Ct.SupersededByNewNavigation),Ue;this.currentTransition=s,this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,targetBrowserUrl:typeof c.extras.browserUrl=="string"?this.urlSerializer.parse(c.extras.browserUrl):c.extras.browserUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?ie(b({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let u=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=c.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!u&&d!=="reload"){let h="";return this.events.next(new mi(c.id,this.urlSerializer.serialize(c.rawUrl),h,zc.IgnoredSameUrlNavigation)),c.resolve(!1),Ue}if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return M(c).pipe(Ge(h=>{let f=this.transitions?.getValue();return this.events.next(new oo(h.id,this.urlSerializer.serialize(h.extractedUrl),h.source,h.restoredState)),f!==this.transitions?.getValue()?Ue:Promise.resolve(h)}),gk(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),De(h=>{s.targetSnapshot=h.targetSnapshot,s.urlAfterRedirects=h.urlAfterRedirects,this.currentNavigation=ie(b({},this.currentNavigation),{finalUrl:h.urlAfterRedirects});let f=new Wc(h.id,this.urlSerializer.serialize(h.extractedUrl),this.urlSerializer.serialize(h.urlAfterRedirects),h.targetSnapshot);this.events.next(f)}));if(u&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){let{id:h,extractedUrl:f,source:p,restoredState:v,extras:w}=c,S=new oo(h,this.urlSerializer.serialize(f),p,v);this.events.next(S);let k=Mw(this.rootComponentType).snapshot;return this.currentTransition=s=ie(b({},c),{targetSnapshot:k,urlAfterRedirects:f,extras:ie(b({},w),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=f,M(s)}else{let h="";return this.events.next(new mi(c.id,this.urlSerializer.serialize(c.extractedUrl),h,zc.IgnoredByUrlHandlingStrategy)),c.resolve(!1),Ue}}),De(c=>{let u=new mp(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}),N(c=>(this.currentTransition=s=ie(b({},c),{guards:PO(c.targetSnapshot,c.currentSnapshot,this.rootContexts)}),s)),qO(this.environmentInjector,c=>this.events.next(c)),De(c=>{if(s.guardsResult=c.guardsResult,c.guardsResult&&typeof c.guardsResult!="boolean")throw Yc(this.urlSerializer,c.guardsResult);let u=new gp(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(u)}),_e(c=>c.guardsResult?!0:(this.cancelNavigationTransition(c,"",Ct.GuardRejected),!1)),cp(c=>{if(c.guards.canActivateChecks.length)return M(c).pipe(De(u=>{let d=new vp(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(d)}),Ge(u=>{let d=!1;return M(u).pipe(vk(this.paramsInheritanceStrategy,this.environmentInjector),De({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(u,"",Ct.NoDataFromResolver)}}))}),De(u=>{let d=new yp(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(d)}))}),cp(c=>{let u=d=>{let h=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&h.push(this.configLoader.loadComponent(d.routeConfig).pipe(De(f=>{d.component=f}),N(()=>{})));for(let f of d.children)h.push(...u(f));return h};return Ii(u(c.targetSnapshot.root)).pipe(Kn(null),dt(1))}),cp(()=>this.afterPreactivation()),Ge(()=>{let{currentSnapshot:c,targetSnapshot:u}=s,d=this.createViewTransition?.(this.environmentInjector,c.root,u.root);return d?ve(d).pipe(N(()=>s)):M(s)}),N(c=>{let u=NO(n.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=s=ie(b({},c),{targetRouterState:u}),this.currentNavigation.targetRouterState=u,s}),De(()=>{this.events.next(new xs)}),FO(this.rootContexts,n.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),dt(1),De({next:c=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Yt(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{a=!0}}),Se(this.transitionAbortSubject.pipe(De(c=>{throw c}))),rn(()=>{!a&&!l&&this.cancelNavigationTransition(s,"",Ct.SupersededByNewNavigation),this.currentTransition?.id===s.id&&(this.currentNavigation=null,this.currentTransition=null)}),nn(c=>{if(l=!0,kw(c))this.events.next(new zn(s.id,this.urlSerializer.serialize(s.extractedUrl),c.message,c.cancellationCode)),kO(c)?this.events.next(new so(c.url,c.navigationBehaviorOptions)):s.resolve(!1);else{let u=new Is(s.id,this.urlSerializer.serialize(s.extractedUrl),c,s.targetSnapshot??void 0);try{let d=At(this.environmentInjector,()=>this.navigationErrorHandler?.(u));if(d instanceof Ts){let{message:h,cancellationCode:f}=Yc(this.urlSerializer,d);this.events.next(new zn(s.id,this.urlSerializer.serialize(s.extractedUrl),h,f)),this.events.next(new so(d.redirectTo,d.navigationBehaviorOptions))}else{this.events.next(u);let h=n.errorHandler(c);s.resolve(!!h)}}catch(d){this.options.resolveNavigationPromiseOnError?s.resolve(!1):s.reject(d)}}return Ue}))}))}cancelNavigationTransition(n,r,o){let s=new zn(n.id,this.urlSerializer.serialize(n.extractedUrl),r,o);this.events.next(s),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let n=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return n.toString()!==r?.toString()&&!this.currentNavigation?.extras.skipLocationChange}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Mk(t){return t!==Ds}var Ak=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=E({token:e,factory:()=>g(Nk),providedIn:"root"});let t=e;return t})(),Fp=class{shouldDetach(e){return!1}store(e,i){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,i){return e.routeConfig===i.routeConfig}},Nk=(()=>{let e=class e extends Fp{};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Fr(e)))(o||e)}})(),e.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),zw=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=E({token:e,factory:()=>g(Rk),providedIn:"root"});let t=e;return t})(),Rk=(()=>{let e=class e extends zw{constructor(){super(...arguments),this.location=g(Ur),this.urlSerializer=g(Rs),this.options=g(Ps,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=g(Bp),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Wn,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Mw(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(r=>{r.type==="popstate"&&n(r.url,r.state)})}handleRouterEvent(n,r){if(n instanceof oo)this.stateMemento=this.createStateMemento();else if(n instanceof mi)this.rawUrlTree=r.initialUrl;else if(n instanceof Wc){if(this.urlUpdateStrategy==="eager"&&!r.extras.skipLocationChange){let o=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(r.targetBrowserUrl??o,r)}}else n instanceof xs?(this.currentUrlTree=r.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl),this.routerState=r.targetRouterState,this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(r.targetBrowserUrl??this.rawUrlTree,r)):n instanceof zn&&(n.code===Ct.GuardRejected||n.code===Ct.NoDataFromResolver)?this.restoreHistory(r):n instanceof Is?this.restoreHistory(r,!0):n instanceof Yt&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,r){let o=n instanceof Wn?this.urlSerializer.serialize(n):n;if(this.location.isCurrentPathEqualTo(o)||r.extras.replaceUrl){let s=this.browserPageId,a=b(b({},r.extras.state),this.generateNgRouterState(r.id,s));this.location.replaceState(o,"",a)}else{let s=b(b({},r.extras.state),this.generateNgRouterState(r.id,this.browserPageId+1));this.location.go(o,"",s)}}restoreHistory(n,r=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,s=this.currentPageId-o;s!==0?this.location.historyGo(s):this.currentUrlTree===n.finalUrl&&s===0&&(this.resetState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,r){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Fr(e)))(o||e)}})(),e.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),_s=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(_s||{});function Ww(t,e){t.events.pipe(_e(i=>i instanceof Yt||i instanceof zn||i instanceof Is||i instanceof mi),N(i=>i instanceof Yt||i instanceof mi?_s.COMPLETE:(i instanceof zn?i.code===Ct.Redirect||i.code===Ct.SupersededByNewNavigation:!1)?_s.REDIRECTING:_s.FAILED),_e(i=>i!==_s.REDIRECTING),dt(1)).subscribe(()=>{e()})}function Ok(t){throw t}var kk={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Fk={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Xt=(()=>{let e=class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.console=g(Pl),this.stateManager=g(zw),this.options=g(Ps,{optional:!0})||{},this.pendingTasks=g(hn),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=g(Up),this.urlSerializer=g(Rs),this.location=g(Ur),this.urlHandlingStrategy=g(Bp),this._events=new V,this.errorHandler=this.options.errorHandler||Ok,this.navigated=!1,this.routeReuseStrategy=g(Ak),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=g(Jc,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!g(nu,{optional:!0}),this.eventsSubscription=new de,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(r=>{try{let o=this.navigationTransitions.currentTransition,s=this.navigationTransitions.currentNavigation;if(o!==null&&s!==null){if(this.stateManager.handleRouterEvent(r,s),r instanceof zn&&r.code!==Ct.Redirect&&r.code!==Ct.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof Yt)this.navigated=!0;else if(r instanceof so){let a=r.navigationBehaviorOptions,l=this.urlHandlingStrategy.merge(r.url,o.currentRawUrl),c=b({browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||Mk(o.source)},a);this.scheduleNavigation(l,Ds,null,c,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}Lk(r)&&this._events.next(r)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(n)}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Ds,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,r)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",r)},0)})}navigateToSyncWithBrowser(n,r,o){let s={replaceUrl:!0},a=o?.navigationId?o:null;if(o){let c=b({},o);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(s.state=c)}let l=this.parseUrl(n);this.scheduleNavigation(l,r,a,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(jp),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(n,r={}){let{relativeTo:o,queryParams:s,fragment:a,queryParamsHandling:l,preserveFragment:c}=r,u=c?this.currentUrlTree.fragment:a,d=null;switch(l??this.options.defaultQueryParamsHandling){case"merge":d=b(b({},this.currentUrlTree.queryParams),s);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=s||null}d!==null&&(d=this.removeEmptyProps(d));let h;try{let f=o?o.snapshot:this.routerState.snapshot.root;h=Iw(f)}catch{(typeof n[0]!="string"||n[0][0]!=="/")&&(n=[]),h=this.currentUrlTree.root}return xw(h,n,d,u??null)}navigateByUrl(n,r={skipLocationChange:!1}){let o=tr(n)?n:this.parseUrl(n),s=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(s,Ds,null,r)}navigate(n,r={skipLocationChange:!1}){return Pk(n),this.navigateByUrl(this.createUrlTree(n,r),r)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.urlSerializer.parse("/")}}isActive(n,r){let o;if(r===!0?o=b({},kk):r===!1?o=b({},Fk):o=r,tr(n))return ow(this.currentUrlTree,n,o);let s=this.parseUrl(n);return ow(this.currentUrlTree,s,o)}removeEmptyProps(n){return Object.entries(n).reduce((r,[o,s])=>(s!=null&&(r[o]=s),r),{})}scheduleNavigation(n,r,o,s,a){if(this.disposed)return Promise.resolve(!1);let l,c,u;a?(l=a.resolve,c=a.reject,u=a.promise):u=new Promise((h,f)=>{l=h,c=f});let d=this.pendingTasks.add();return Ww(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:s,resolve:l,reject:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(h=>Promise.reject(h))}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Pk(t){for(let e=0;e{let e=class e{constructor(n,r,o,s,a,l){this.router=n,this.route=r,this.tabIndexAttribute=o,this.renderer=s,this.el=a,this.locationStrategy=l,this.href=null,this.onChanges=new V,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1,this.routerLinkInput=null;let c=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area",this.isAnchorElement?this.subscription=n.events.subscribe(u=>{u instanceof Yt&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(n){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",n)}ngOnChanges(n){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(n){n==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(tr(n)?this.routerLinkInput=n:this.routerLinkInput=Array.isArray(n)?n:[n],this.setTabIndexIfNotOnNativeEl("0"))}onClick(n,r,o,s,a){let l=this.urlTree;if(l===null||this.isAnchorElement&&(n!==0||r||o||s||a||typeof this.target=="string"&&this.target!="_self"))return!0;let c={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(l,c),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let n=this.urlTree;this.href=n!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(n)):null;let r=this.href===null?null:ky(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",r)}applyAttributeValue(n,r){let o=this.renderer,s=this.el.nativeElement;r!==null?o.setAttribute(s,n,r):o.removeAttribute(s,n)}get urlTree(){return this.routerLinkInput===null?null:tr(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}};e.\u0275fac=function(r){return new(r||e)(m(Xt),m(nr),si("tabindex"),m(Pn),m(Y),m(Un))},e.\u0275dir=W({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(r,o){r&1&&re("click",function(a){return o.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),r&2&&$e("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",Ae],skipLocationChange:[2,"skipLocationChange","skipLocationChange",Ae],replaceUrl:[2,"replaceUrl","replaceUrl",Ae],routerLink:"routerLink"},standalone:!0,features:[Je,qe]});let t=e;return t})(),Gw=(()=>{let e=class e{get isActive(){return this._isActive}constructor(n,r,o,s,a){this.router=n,this.element=r,this.renderer=o,this.cdr=s,this.link=a,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new J,this.routerEventsSubscription=n.events.subscribe(l=>{l instanceof Yt&&this.update()})}ngAfterContentInit(){M(this.links.changes,M(null)).pipe(tn()).subscribe(n=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let n=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=ve(n).pipe(tn()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update()})}set routerLinkActive(n){let r=Array.isArray(n)?n:n.split(" ");this.classes=r.filter(o=>!!o)}ngOnChanges(n){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let n=this.hasActiveLinks();this.classes.forEach(r=>{n?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r)}),n&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==n&&(this._isActive=n,this.cdr.markForCheck(),this.isActiveChange.emit(n))})}isLinkActive(n){let r=jk(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return o=>{let s=o.urlTree;return s?n.isActive(s,r):!1}}hasActiveLinks(){let n=this.isLinkActive(this.router);return this.link&&n(this.link)||this.links.some(n)}};e.\u0275fac=function(r){return new(r||e)(m(Xt),m(Y),m(Pn),m(tt),m(eu,8))},e.\u0275dir=W({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(r,o,s){if(r&1&&mn(s,eu,5),r&2){let a;pe(a=me())&&(o.links=a)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[qe]});let t=e;return t})();function jk(t){return!!t.paths}var tu=class{};var Vk=(()=>{let e=class e{constructor(n,r,o,s,a){this.router=n,this.injector=o,this.preloadingStrategy=s,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(_e(n=>n instanceof Yt),xn(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,r){let o=[];for(let s of r){s.providers&&!s._injector&&(s._injector=Fl(s.providers,n,`Route: ${s.path}`));let a=s._injector??n,l=s._loadedInjector??a;(s.loadChildren&&!s._loadedRoutes&&s.canLoad===void 0||s.loadComponent&&!s._loadedComponent)&&o.push(this.preloadConfig(a,s)),(s.children||s._loadedRoutes)&&o.push(this.processRoutes(l,s.children??s._loadedRoutes))}return ve(o).pipe(tn())}preloadConfig(n,r){return this.preloadingStrategy.preload(r,()=>{let o;r.loadChildren&&r.canLoad===void 0?o=this.loader.loadChildren(n,r):o=M(null);let s=o.pipe(Me(a=>a===null?M(void 0):(r._loadedRoutes=a.routes,r._loadedInjector=a.injector,this.processRoutes(a.injector??n,a.routes))));if(r.loadComponent&&!r._loadedComponent){let a=this.loader.loadComponent(r);return ve([s,a]).pipe(tn())}else return s})}};e.\u0275fac=function(r){return new(r||e)(y(Xt),y(Ul),y(st),y(tu),y(Vp))},e.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),qw=new x(""),Bk=(()=>{let e=class e{constructor(n,r,o,s,a={}){this.urlSerializer=n,this.transitions=r,this.viewportScroller=o,this.zone=s,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},a.scrollPositionRestoration||="disabled",a.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof oo?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof Yt?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof mi&&n.code===zc.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof Gc&&(n.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(n.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Gc(n,this.lastSource==="popstate"?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}};e.\u0275fac=function(r){Zy()},e.\u0275prov=E({token:e,factory:e.\u0275fac});let t=e;return t})();function Uk(t){return t.routerState.root}function Ls(t,e){return{\u0275kind:t,\u0275providers:e}}function $k(){let t=g(Le);return e=>{let i=t.get(jn);if(e!==i.components[0])return;let n=t.get(Xt),r=t.get(Qw);t.get($p)===1&&n.initialNavigation(),t.get(Zw,null,X.Optional)?.setUpPreloading(),t.get(qw,null,X.Optional)?.init(),n.resetRootComponentType(i.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}var Qw=new x("",{factory:()=>new V}),$p=new x("",{providedIn:"root",factory:()=>1});function Hk(){return Ls(2,[{provide:$p,useValue:0},{provide:Vl,multi:!0,deps:[Le],useFactory:e=>{let i=e.get(g_,Promise.resolve());return()=>i.then(()=>new Promise(n=>{let r=e.get(Xt),o=e.get(Qw);Ww(r,()=>{n(!0)}),e.get(Up).afterPreactivation=()=>(n(!0),o.closed?M(void 0):o),r.initialNavigation()}))}}])}function zk(){return Ls(3,[{provide:Vl,multi:!0,useFactory:()=>{let e=g(Xt);return()=>{e.setUpLocationChangeListener()}}},{provide:$p,useValue:2}])}var Zw=new x("");function Wk(t){return Ls(0,[{provide:Zw,useExisting:Vk},{provide:tu,useExisting:t}])}function Gk(){return Ls(8,[cw,{provide:nu,useExisting:cw}])}function qk(t){let e=[{provide:$w,useValue:xk},{provide:Hw,useValue:b({skipNextTransition:!!t?.skipInitialTransition},t)}];return Ls(9,e)}var hw=new x("ROUTER_FORROOT_GUARD"),Qk=[Ur,{provide:Rs,useClass:ro},Xt,ks,{provide:nr,useFactory:Uk,deps:[Xt]},Vp,[]],Hp=(()=>{let e=class e{constructor(n){}static forRoot(n,r){return{ngModule:e,providers:[Qk,[],{provide:Jc,multi:!0,useValue:n},{provide:hw,useFactory:Xk,deps:[[Xt,new jo,new vl]]},{provide:Ps,useValue:r||{}},r?.useHash?Kk():Yk(),Zk(),r?.preloadingStrategy?Wk(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?Jk(r):[],r?.bindToComponentInputs?Gk().\u0275providers:[],r?.enableViewTransitions?qk().\u0275providers:[],eF()]}}static forChild(n){return{ngModule:e,providers:[{provide:Jc,multi:!0,useValue:n}]}}};e.\u0275fac=function(r){return new(r||e)(y(hw,8))},e.\u0275mod=ne({type:e}),e.\u0275inj=te({});let t=e;return t})();function Zk(){return{provide:qw,useFactory:()=>{let t=g(D_),e=g(R),i=g(Ps),n=g(Up),r=g(Rs);return i.scrollOffset&&t.setOffset(i.scrollOffset),new Bk(r,n,t,e,i)}}}function Kk(){return{provide:Un,useClass:y_}}function Yk(){return{provide:Un,useClass:eh}}function Xk(t){return"guarded"}function Jk(t){return[t.initialNavigation==="disabled"?zk().\u0275providers:[],t.initialNavigation==="enabledBlocking"?Hk().\u0275providers:[]]}var pw=new x("");function eF(){return[{provide:pw,useFactory:$k},{provide:Bl,multi:!0,useExisting:pw}]}var co=(()=>{let e=class e{constructor(n){this._http=n,this.marvelBase="http://gateway.marvel.com:80/v1/public/",this.marvelPublicKey="b9ced31de3874eb2c065a5bce26f8c59",this.googleMapsPublicKey="AIzaSyBjCWwFwEjaClobsRcY7mAlGSfCsRmD0Vg",this.findHeroes=r=>this._http.get(`${this.marvelBase}characters?nameStartsWith=${r}&apikey=${this.marvelPublicKey}`),this.getMapsUrl=()=>`https://maps.googleapis.com/maps/api/geocode/json?address=:my_own_keyword&key=${this.googleMapsPublicKey}`}};e.\u0275fac=function(r){return new(r||e)(y(Wi))},e.\u0275prov=E({token:e,factory:e.\u0275fac});let t=e;return t})();var nF=new x("cdk-dir-doc",{providedIn:"root",factory:iF});function iF(){return g(ae)}var rF=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function oF(t){let e=t?.toLowerCase()||"";return e==="auto"&&typeof navigator<"u"&&navigator?.language?rF.test(navigator.language)?"rtl":"ltr":e==="rtl"?"rtl":"ltr"}var js=(()=>{let e=class e{constructor(n){if(this.value="ltr",this.change=new J,n){let r=n.body?n.body.dir:null,o=n.documentElement?n.documentElement.dir:null;this.value=oF(r||o||"ltr")}}ngOnDestroy(){this.change.complete()}};e.\u0275fac=function(r){return new(r||e)(y(nF,8))},e.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var zp=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=ne({type:e}),e.\u0275inj=te({});let t=e;return t})();function ir(t){return t!=null&&`${t}`!="false"}function ru(t,e=0){return sF(t)?Number(t):arguments.length===2?e:0}function sF(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function Wp(t){return Array.isArray(t)?t:[t]}function Vt(t){return t instanceof Y?t.nativeElement:t}var qp;try{qp=typeof Intl<"u"&&Intl.v8BreakIterator}catch{qp=!1}var Ne=(()=>{let e=class e{constructor(n){this._platformId=n,this.isBrowser=this._platformId?nh(this._platformId):typeof document=="object"&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!!(window.chrome||qp)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}};e.\u0275fac=function(r){return new(r||e)(y(Rt))},e.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var uo,Xw=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Qp(){if(uo)return uo;if(typeof document!="object"||!document)return uo=new Set(Xw),uo;let t=document.createElement("input");return uo=new Set(Xw.filter(e=>(t.setAttribute("type",e),t.type===e))),uo}var Vs;function aF(){if(Vs==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Vs=!0}))}finally{Vs=Vs||!1}return Vs}function wn(t){return aF()?t:!!t.capture}var Gp;function lF(){if(Gp==null){let t=typeof document<"u"?document.head:null;Gp=!!(t&&(t.createShadowRoot||t.attachShadow))}return Gp}function Jw(t){if(lF()){let e=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function vi(t){return t.composedPath?t.composedPath()[0]:t.target}function eD(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}var Zp=class{constructor(e){this._box=e,this._destroyed=new V,this._resizeSubject=new V,this._elementObservables=new Map,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(i=>this._resizeSubject.next(i)))}observe(e){return this._elementObservables.has(e)||this._elementObservables.set(e,new $(i=>{let n=this._resizeSubject.subscribe(i);return this._resizeObserver?.observe(e,{box:this._box}),()=>{this._resizeObserver?.unobserve(e),n.unsubscribe(),this._elementObservables.delete(e)}}).pipe(_e(i=>i.some(n=>n.target===e)),Ca({bufferSize:1,refCount:!0}),Se(this._destroyed))),this._elementObservables.get(e)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}},ou=(()=>{let e=class e{constructor(){this._observers=new Map,this._ngZone=g(R),typeof ResizeObserver<"u"}ngOnDestroy(){for(let[,n]of this._observers)n.destroy();this._observers.clear(),typeof ResizeObserver<"u"}observe(n,r){let o=r?.box||"content-box";return this._observers.has(o)||this._observers.set(o,new Zp(o)),this._observers.get(o).observe(n)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function cF(t){if(t.type==="characterData"&&t.target instanceof Comment)return!0;if(t.type==="childList"){for(let e=0;e{let e=class e{create(n){return typeof MutationObserver>"u"?null:new MutationObserver(n)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),uF=(()=>{let e=class e{constructor(n){this._mutationObserverFactory=n,this._observedElements=new Map,this._ngZone=g(R)}ngOnDestroy(){this._observedElements.forEach((n,r)=>this._cleanupObserver(r))}observe(n){let r=Vt(n);return new $(o=>{let a=this._observeElement(r).pipe(N(l=>l.filter(c=>!cF(c))),_e(l=>!!l.length)).subscribe(l=>{this._ngZone.run(()=>{o.next(l)})});return()=>{a.unsubscribe(),this._unobserveElement(r)}})}_observeElement(n){return this._ngZone.runOutsideAngular(()=>{if(this._observedElements.has(n))this._observedElements.get(n).count++;else{let r=new V,o=this._mutationObserverFactory.create(s=>r.next(s));o&&o.observe(n,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(n,{observer:o,stream:r,count:1})}return this._observedElements.get(n).stream})}_unobserveElement(n){this._observedElements.has(n)&&(this._observedElements.get(n).count--,this._observedElements.get(n).count||this._cleanupObserver(n))}_cleanupObserver(n){if(this._observedElements.has(n)){let{observer:r,stream:o}=this._observedElements.get(n);r&&r.disconnect(),o.complete(),this._observedElements.delete(n)}}};e.\u0275fac=function(r){return new(r||e)(y(tD))},e.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),nD=(()=>{let e=class e{get disabled(){return this._disabled}set disabled(n){this._disabled=n,this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(n){this._debounce=ru(n),this._subscribe()}constructor(n,r){this._contentObserver=n,this._elementRef=r,this.event=new J,this._disabled=!1,this._currentSubscription=null}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();let n=this._contentObserver.observe(this._elementRef);this._currentSubscription=(this.debounce?n.pipe(Sn(this.debounce)):n).subscribe(this.event)}_unsubscribe(){this._currentSubscription?.unsubscribe()}};e.\u0275fac=function(r){return new(r||e)(m(uF),m(Y))},e.\u0275dir=W({type:e,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[2,"cdkObserveContentDisabled","disabled",Ae],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"],standalone:!0,features:[Je]});let t=e;return t})(),iD=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=ne({type:e}),e.\u0275inj=te({providers:[tD]});let t=e;return t})();function su(t,...e){return e.length?e.some(i=>t[i]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}var rD=new Set,rr,dF=(()=>{let e=class e{constructor(n,r){this._platform=n,this._nonce=r,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):hF}matchMedia(n){return(this._platform.WEBKIT||this._platform.BLINK)&&fF(n,this._nonce),this._matchMedia(n)}};e.\u0275fac=function(r){return new(r||e)(y(Ne),y(Ho,8))},e.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function fF(t,e){if(!rD.has(t))try{rr||(rr=document.createElement("style"),e&&rr.setAttribute("nonce",e),rr.setAttribute("type","text/css"),document.head.appendChild(rr)),rr.sheet&&(rr.sheet.insertRule(`@media ${t} {body{ }}`,0),rD.add(t))}catch(i){console.error(i)}}function hF(t){return{matches:t==="all"||t==="",media:t,addListener:()=>{},removeListener:()=>{}}}var sD=(()=>{let e=class e{constructor(n,r){this._mediaMatcher=n,this._zone=r,this._queries=new Map,this._destroySubject=new V}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(n){return oD(Wp(n)).some(o=>this._registerQuery(o).mql.matches)}observe(n){let o=oD(Wp(n)).map(a=>this._registerQuery(a).observable),s=Ii(o);return s=Zn(s.pipe(dt(1)),s.pipe(xi(1),Sn(0))),s.pipe(N(a=>{let l={matches:!1,breakpoints:{}};return a.forEach(({matches:c,query:u})=>{l.matches=l.matches||c,l.breakpoints[u]=c}),l}))}_registerQuery(n){if(this._queries.has(n))return this._queries.get(n);let r=this._mediaMatcher.matchMedia(n),s={observable:new $(a=>{let l=c=>this._zone.run(()=>a.next(c));return r.addListener(l),()=>{r.removeListener(l)}}).pipe(Tn(r),N(({matches:a})=>({query:n,matches:a})),Se(this._destroySubject)),mql:r};return this._queries.set(n,s),s}};e.\u0275fac=function(r){return new(r||e)(y(dF),y(R))},e.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function oD(t){return t.map(e=>e.split(",")).reduce((e,i)=>e.concat(i)).map(e=>e.trim())}var RF=200,Yp=class{constructor(e,i){this._letterKeyStream=new V,this._items=[],this._selectedItemIndex=-1,this._pressedLetters=[],this._selectedItem=new V,this.selectedItem=this._selectedItem;let n=typeof i?.debounceInterval=="number"?i.debounceInterval:RF;i?.skipPredicate&&(this._skipPredicateFn=i.skipPredicate),this.setItems(e),this._setupKeyHandler(n)}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete()}setCurrentSelectedItemIndex(e){this._selectedItemIndex=e}setItems(e){this._items=e}handleKey(e){let i=e.keyCode;e.key&&e.key.length===1?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(i>=65&&i<=90||i>=48&&i<=57)&&this._letterKeyStream.next(String.fromCharCode(i))}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[]}_setupKeyHandler(e){this._letterKeyStream.pipe(De(i=>this._pressedLetters.push(i)),Sn(e),_e(()=>this._pressedLetters.length>0),N(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(i=>{for(let n=1;nn.disabled,this.tabOut=new V,this.change=new V,e instanceof Li?this._itemChangesSubscription=e.changes.subscribe(n=>this._itemsChanged(n.toArray())):kl(e)&&(this._effectRef=Wf(()=>this._itemsChanged(e()),{injector:i}))}skipPredicate(e){return this._skipPredicateFn=e,this}withWrap(e=!0){return this._wrap=e,this}withVerticalOrientation(e=!0){return this._vertical=e,this}withHorizontalOrientation(e){return this._horizontal=e,this}withAllowedModifierKeys(e){return this._allowedModifierKeys=e,this}withTypeAhead(e=200){this._typeaheadSubscription.unsubscribe();let i=this._getItemsArray();return this._typeahead=new Yp(i,{debounceInterval:typeof e=="number"?e:void 0,skipPredicate:n=>this._skipPredicateFn(n)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(n=>{this.setActiveItem(n)}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(e=!0){return this._homeAndEnd=e,this}withPageUpDown(e=!0,i=10){return this._pageUpAndDown={enabled:e,delta:i},this}setActiveItem(e){let i=this._activeItem;this.updateActiveItem(e),this._activeItem!==i&&this.change.next(this._activeItemIndex)}onKeydown(e){let i=e.keyCode,r=["altKey","ctrlKey","metaKey","shiftKey"].every(o=>!e[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(i){case 9:this.tabOut.next();return;case 40:if(this._vertical&&r){this.setNextItemActive();break}else return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&r){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&r){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&r){let o=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(o>0?o:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&r){let o=this._activeItemIndex+this._pageUpAndDown.delta,s=this._getItemsArray().length;this._setActiveItemByIndex(o-1&&i!==this._activeItemIndex&&(this._activeItemIndex=i,this._typeahead?.setCurrentSelectedItemIndex(i))}}};var cu=class extends Xp{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(e){return this._origin=e,this}setActiveItem(e){super.setActiveItem(e),this.activeItem&&this.activeItem.focus(this._origin)}};function Jp(t){return t.buttons===0||t.detail===0}function em(t){let e=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!!e&&e.identifier===-1&&(e.radiusX==null||e.radiusX===1)&&(e.radiusY==null||e.radiusY===1)}var OF=new x("cdk-input-modality-detector-options"),kF={ignoreKeys:[18,17,224,91,16]},cD=650,fo=wn({passive:!0,capture:!0}),FF=(()=>{let e=class e{get mostRecentModality(){return this._modality.value}constructor(n,r,o,s){this._platform=n,this._mostRecentTarget=null,this._modality=new Oe(null),this._lastTouchMs=0,this._onKeydown=a=>{this._options?.ignoreKeys?.some(l=>l===a.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=vi(a))},this._onMousedown=a=>{Date.now()-this._lastTouchMs{if(em(a)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=vi(a)},this._options=b(b({},kF),s),this.modalityDetected=this._modality.pipe(xi(1)),this.modalityChanged=this.modalityDetected.pipe(Co()),n.isBrowser&&r.runOutsideAngular(()=>{o.addEventListener("keydown",this._onKeydown,fo),o.addEventListener("mousedown",this._onMousedown,fo),o.addEventListener("touchstart",this._onTouchstart,fo)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,fo),document.removeEventListener("mousedown",this._onMousedown,fo),document.removeEventListener("touchstart",this._onTouchstart,fo))}};e.\u0275fac=function(r){return new(r||e)(y(Ne),y(R),y(ae),y(OF,8))},e.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var lu=function(t){return t[t.IMMEDIATE=0]="IMMEDIATE",t[t.EVENTUAL=1]="EVENTUAL",t}(lu||{}),PF=new x("cdk-focus-monitor-default-options"),au=wn({passive:!0,capture:!0}),uD=(()=>{let e=class e{constructor(n,r,o,s,a){this._ngZone=n,this._platform=r,this._inputModalityDetector=o,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new V,this._rootNodeFocusAndBlurListener=l=>{let c=vi(l);for(let u=c;u;u=u.parentElement)l.type==="focus"?this._onFocus(l,u):this._onBlur(l,u)},this._document=s,this._detectionMode=a?.detectionMode||lu.IMMEDIATE}monitor(n,r=!1){let o=Vt(n);if(!this._platform.isBrowser||o.nodeType!==1)return M();let s=Jw(o)||this._getDocument(),a=this._elementInfo.get(o);if(a)return r&&(a.checkChildren=!0),a.subject;let l={checkChildren:r,subject:new V,rootNode:s};return this._elementInfo.set(o,l),this._registerGlobalListeners(l),l.subject}stopMonitoring(n){let r=Vt(n),o=this._elementInfo.get(r);o&&(o.subject.complete(),this._setClasses(r),this._elementInfo.delete(r),this._removeGlobalListeners(o))}focusVia(n,r,o){let s=Vt(n),a=this._getDocument().activeElement;s===a?this._getClosestElementsInfo(s).forEach(([l,c])=>this._originChanged(l,r,c)):(this._setOrigin(r),typeof s.focus=="function"&&s.focus(o))}ngOnDestroy(){this._elementInfo.forEach((n,r)=>this.stopMonitoring(r))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(n){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(n)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:n&&this._isLastInteractionFromInputLabel(n)?"mouse":"program"}_shouldBeAttributedToTouch(n){return this._detectionMode===lu.EVENTUAL||!!n?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(n,r){n.classList.toggle("cdk-focused",!!r),n.classList.toggle("cdk-touch-focused",r==="touch"),n.classList.toggle("cdk-keyboard-focused",r==="keyboard"),n.classList.toggle("cdk-mouse-focused",r==="mouse"),n.classList.toggle("cdk-program-focused",r==="program")}_setOrigin(n,r=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=n,this._originFromTouchInteraction=n==="touch"&&r,this._detectionMode===lu.IMMEDIATE){clearTimeout(this._originTimeoutId);let o=this._originFromTouchInteraction?cD:1;this._originTimeoutId=setTimeout(()=>this._origin=null,o)}})}_onFocus(n,r){let o=this._elementInfo.get(r),s=vi(n);!o||!o.checkChildren&&r!==s||this._originChanged(r,this._getFocusOrigin(s),o)}_onBlur(n,r){let o=this._elementInfo.get(r);!o||o.checkChildren&&n.relatedTarget instanceof Node&&r.contains(n.relatedTarget)||(this._setClasses(r),this._emitOrigin(o,null))}_emitOrigin(n,r){n.subject.observers.length&&this._ngZone.run(()=>n.subject.next(r))}_registerGlobalListeners(n){if(!this._platform.isBrowser)return;let r=n.rootNode,o=this._rootNodeFocusListenerCount.get(r)||0;o||this._ngZone.runOutsideAngular(()=>{r.addEventListener("focus",this._rootNodeFocusAndBlurListener,au),r.addEventListener("blur",this._rootNodeFocusAndBlurListener,au)}),this._rootNodeFocusListenerCount.set(r,o+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Se(this._stopInputModalityDetector)).subscribe(s=>{this._setOrigin(s,!0)}))}_removeGlobalListeners(n){let r=n.rootNode;if(this._rootNodeFocusListenerCount.has(r)){let o=this._rootNodeFocusListenerCount.get(r);o>1?this._rootNodeFocusListenerCount.set(r,o-1):(r.removeEventListener("focus",this._rootNodeFocusAndBlurListener,au),r.removeEventListener("blur",this._rootNodeFocusAndBlurListener,au),this._rootNodeFocusListenerCount.delete(r))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(n,r,o){this._setClasses(n,r),this._emitOrigin(o,r),this._lastFocusOrigin=r}_getClosestElementsInfo(n){let r=[];return this._elementInfo.forEach((o,s)=>{(s===n||o.checkChildren&&s.contains(n))&&r.push([s,o])}),r}_isLastInteractionFromInputLabel(n){let{_mostRecentTarget:r,mostRecentModality:o}=this._inputModalityDetector;if(o!=="mouse"||!r||r===n||n.nodeName!=="INPUT"&&n.nodeName!=="TEXTAREA"||n.disabled)return!1;let s=n.labels;if(s){for(let a=0;a{let e=class e{constructor(n,r){this._platform=n,this._document=r,this._breakpointSubscription=g(sD).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return or.NONE;let n=this._document.createElement("div");n.style.backgroundColor="rgb(1,2,3)",n.style.position="absolute",this._document.body.appendChild(n);let r=this._document.defaultView||window,o=r&&r.getComputedStyle?r.getComputedStyle(n):null,s=(o&&o.backgroundColor||"").replace(/ /g,"");switch(n.remove(),s){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return or.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return or.BLACK_ON_WHITE}return or.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let n=this._document.body.classList;n.remove(Kp,aD,lD),this._hasCheckedHighContrastMode=!0;let r=this.getHighContrastMode();r===or.BLACK_ON_WHITE?n.add(Kp,aD):r===or.WHITE_ON_BLACK&&n.add(Kp,lD)}}};e.\u0275fac=function(r){return new(r||e)(y(Ne),y(ae))},e.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function LF(){return!0}var jF=new x("mat-sanity-checks",{providedIn:"root",factory:LF}),Ut=(()=>{let e=class e{constructor(n,r,o){this._sanityChecks=r,this._document=o,this._hasDoneGlobalChecks=!1,n._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(n){return eD()?!1:typeof this._sanityChecks=="boolean"?this._sanityChecks:!!this._sanityChecks[n]}};e.\u0275fac=function(r){return new(r||e)(y(dD),y(jF,8),y(ae))},e.\u0275mod=ne({type:e}),e.\u0275inj=te({imports:[zp,zp]});let t=e;return t})();var uu=class{constructor(e,i,n,r,o){this._defaultMatcher=e,this.ngControl=i,this._parentFormGroup=n,this._parentForm=r,this._stateChanges=o,this.errorState=!1}updateErrorState(){let e=this.errorState,i=this._parentFormGroup||this._parentForm,n=this.matcher||this._defaultMatcher,r=this.ngControl?this.ngControl.control:null,o=n?.isErrorState(r,i)??!1;o!==e&&(this.errorState=o,this._stateChanges.next())}};var yD=(()=>{let e=class e{isErrorState(n,r){return!!(n&&n.invalid&&(n.touched||r&&r.submitted))}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Bt=function(t){return t[t.FADING_IN=0]="FADING_IN",t[t.VISIBLE=1]="VISIBLE",t[t.FADING_OUT=2]="FADING_OUT",t[t.HIDDEN=3]="HIDDEN",t}(Bt||{}),tm=class{constructor(e,i,n,r=!1){this._renderer=e,this.element=i,this.config=n,this._animationForciblyDisabledThroughCss=r,this.state=Bt.HIDDEN}fadeOut(){this._renderer.fadeOutRipple(this)}},hD=wn({passive:!0,capture:!0}),nm=class{constructor(){this._events=new Map,this._delegateEventHandler=e=>{let i=vi(e);i&&this._events.get(e.type)?.forEach((n,r)=>{(r===i||r.contains(i))&&n.forEach(o=>o.handleEvent(e))})}}addHandler(e,i,n,r){let o=this._events.get(i);if(o){let s=o.get(n);s?s.add(r):o.set(n,new Set([r]))}else this._events.set(i,new Map([[n,new Set([r])]])),e.runOutsideAngular(()=>{document.addEventListener(i,this._delegateEventHandler,hD)})}removeHandler(e,i,n){let r=this._events.get(e);if(!r)return;let o=r.get(i);o&&(o.delete(n),o.size===0&&r.delete(i),r.size===0&&(this._events.delete(e),document.removeEventListener(e,this._delegateEventHandler,hD)))}},pD={enterDuration:225,exitDuration:150},VF=800,mD=wn({passive:!0,capture:!0}),gD=["mousedown","touchstart"],vD=["mouseup","mouseleave","touchend","touchcancel"],Bs=class Bs{constructor(e,i,n,r){this._target=e,this._ngZone=i,this._platform=r,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=Vt(n))}fadeInRipple(e,i,n={}){let r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=b(b({},pD),n.animation);n.centered&&(e=r.left+r.width/2,i=r.top+r.height/2);let s=n.radius||BF(e,i,r),a=e-r.left,l=i-r.top,c=o.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=`${a-s}px`,u.style.top=`${l-s}px`,u.style.height=`${s*2}px`,u.style.width=`${s*2}px`,n.color!=null&&(u.style.backgroundColor=n.color),u.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(u);let d=window.getComputedStyle(u),h=d.transitionProperty,f=d.transitionDuration,p=h==="none"||f==="0s"||f==="0s, 0s"||r.width===0&&r.height===0,v=new tm(this,u,n,p);u.style.transform="scale3d(1, 1, 1)",v.state=Bt.FADING_IN,n.persistent||(this._mostRecentTransientRipple=v);let w=null;return!p&&(c||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let S=()=>{w&&(w.fallbackTimer=null),clearTimeout(Z),this._finishRippleTransition(v)},k=()=>this._destroyRipple(v),Z=setTimeout(k,c+100);u.addEventListener("transitionend",S),u.addEventListener("transitioncancel",k),w={onTransitionEnd:S,onTransitionCancel:k,fallbackTimer:Z}}),this._activeRipples.set(v,w),(p||!c)&&this._finishRippleTransition(v),v}fadeOutRipple(e){if(e.state===Bt.FADING_OUT||e.state===Bt.HIDDEN)return;let i=e.element,n=b(b({},pD),e.config.animation);i.style.transitionDuration=`${n.exitDuration}ms`,i.style.opacity="0",e.state=Bt.FADING_OUT,(e._animationForciblyDisabledThroughCss||!n.exitDuration)&&this._finishRippleTransition(e)}fadeOutAll(){this._getActiveRipples().forEach(e=>e.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(e=>{e.config.persistent||e.fadeOut()})}setupTriggerEvents(e){let i=Vt(e);!this._platform.isBrowser||!i||i===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=i,gD.forEach(n=>{Bs._eventManager.addHandler(this._ngZone,n,i,this)}))}handleEvent(e){e.type==="mousedown"?this._onMousedown(e):e.type==="touchstart"?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{vD.forEach(i=>{this._triggerElement.addEventListener(i,this,mD)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(e){e.state===Bt.FADING_IN?this._startFadeOutTransition(e):e.state===Bt.FADING_OUT&&this._destroyRipple(e)}_startFadeOutTransition(e){let i=e===this._mostRecentTransientRipple,{persistent:n}=e.config;e.state=Bt.VISIBLE,!n&&(!i||!this._isPointerDown)&&e.fadeOut()}_destroyRipple(e){let i=this._activeRipples.get(e)??null;this._activeRipples.delete(e),this._activeRipples.size||(this._containerRect=null),e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),e.state=Bt.HIDDEN,i!==null&&(e.element.removeEventListener("transitionend",i.onTransitionEnd),e.element.removeEventListener("transitioncancel",i.onTransitionCancel),i.fallbackTimer!==null&&clearTimeout(i.fallbackTimer)),e.element.remove()}_onMousedown(e){let i=Jp(e),n=this._lastTouchStartEvent&&Date.now(){let i=e.state===Bt.VISIBLE||e.config.terminateOnPointerUp&&e.state===Bt.FADING_IN;!e.config.persistent&&i&&e.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let e=this._triggerElement;e&&(gD.forEach(i=>Bs._eventManager.removeHandler(i,e,this)),this._pointerUpEventsRegistered&&(vD.forEach(i=>e.removeEventListener(i,this,mD)),this._pointerUpEventsRegistered=!1))}};Bs._eventManager=new nm;var im=Bs;function BF(t,e,i){let n=Math.max(Math.abs(t-i.left),Math.abs(t-i.right)),r=Math.max(Math.abs(e-i.top),Math.abs(e-i.bottom));return Math.sqrt(n*n+r*r)}var rm=new x("mat-ripple-global-options"),om=(()=>{let e=class e{get disabled(){return this._disabled}set disabled(n){n&&this.fadeOutAllNonPersistent(),this._disabled=n,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(n){this._trigger=n,this._setupTriggerEventsIfEnabled()}constructor(n,r,o,s,a){this._elementRef=n,this._animationMode=a,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=s||{},this._rippleRenderer=new im(this,r,n,o)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:b(b(b({},this._globalOptions.animation),this._animationMode==="NoopAnimations"?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(n,r=0,o){return typeof n=="number"?this._rippleRenderer.fadeInRipple(n,r,b(b({},this.rippleConfig),o)):this._rippleRenderer.fadeInRipple(0,0,b(b({},this.rippleConfig),n))}};e.\u0275fac=function(r){return new(r||e)(m(Y),m(R),m(Ne),m(rm,8),m(Gt,8))},e.\u0275dir=W({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(r,o){r&2&&Ie("mat-ripple-unbounded",o.unbounded)},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"],standalone:!0});let t=e;return t})();var $F=["notch"],HF=["matFormFieldNotchedOutline",""],zF=["*"],WF=["textField"],GF=["iconPrefixContainer"],qF=["textPrefixContainer"],QF=["iconSuffixContainer"],ZF=["textSuffixContainer"],KF=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],YF=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function XF(t,e){t&1&&L(0,"span",21)}function JF(t,e){if(t&1&&(D(0,"label",20),He(1,1),we(2,XF,1,0,"span",21),C()),t&2){let i=se(2);O("floating",i._shouldLabelFloat())("monitorResize",i._hasOutline())("id",i._labelId),$e("for",i._control.disableAutomaticLabeling?null:i._control.id),I(2),et(!i.hideRequiredMarker&&i._control.required?2:-1)}}function e1(t,e){if(t&1&&we(0,JF,3,5,"label",20),t&2){let i=se();et(i._hasFloatingLabel()?0:-1)}}function t1(t,e){t&1&&L(0,"div",7)}function n1(t,e){}function i1(t,e){if(t&1&&we(0,n1,0,0,"ng-template",13),t&2){se(2);let i=Vr(1);O("ngTemplateOutlet",i)}}function r1(t,e){if(t&1&&(D(0,"div",9),we(1,i1,1,1,null,13),C()),t&2){let i=se();O("matFormFieldNotchedOutlineOpen",i._shouldLabelFloat()),I(),et(i._forceDisplayInfixLabel()?-1:1)}}function o1(t,e){t&1&&(D(0,"div",10,2),He(2,2),C())}function s1(t,e){t&1&&(D(0,"div",11,3),He(2,3),C())}function a1(t,e){}function l1(t,e){if(t&1&&we(0,a1,0,0,"ng-template",13),t&2){se();let i=Vr(1);O("ngTemplateOutlet",i)}}function c1(t,e){t&1&&(D(0,"div",14,4),He(2,4),C())}function u1(t,e){t&1&&(D(0,"div",15,5),He(2,5),C())}function d1(t,e){t&1&&L(0,"div",16)}function f1(t,e){if(t&1&&(D(0,"div",18),He(1,6),C()),t&2){let i=se();O("@transitionMessages",i._subscriptAnimationState)}}function h1(t,e){if(t&1&&(D(0,"mat-hint",22),A(1),C()),t&2){let i=se(2);O("id",i._hintLabelId),I(),je(i.hintLabel)}}function p1(t,e){if(t&1&&(D(0,"div",19),we(1,h1,2,2,"mat-hint",22),He(2,7),L(3,"div",23),He(4,8),C()),t&2){let i=se();O("@transitionMessages",i._subscriptAnimationState),I(),et(i.hintLabel?1:-1)}}var bD=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=W({type:e,selectors:[["mat-label"]],standalone:!0});let t=e;return t})();var m1=new x("MatError");var g1=0,_D=(()=>{let e=class e{constructor(){this.align="start",this.id=`mat-mdc-hint-${g1++}`}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=W({type:e,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(r,o){r&2&&(jr("id",o.id),$e("align",null),Ie("mat-mdc-form-field-hint-end",o.align==="end"))},inputs:{align:"align",id:"id"},standalone:!0});let t=e;return t})(),TD=new x("MatPrefix"),MD=(()=>{let e=class e{constructor(){this._isText=!1}set _isTextSelector(n){this._isText=!0}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=W({type:e,selectors:[["","matPrefix",""],["","matIconPrefix",""],["","matTextPrefix",""]],inputs:{_isTextSelector:[0,"matTextPrefix","_isTextSelector"]},standalone:!0,features:[Ze([{provide:TD,useExisting:e}])]});let t=e;return t})(),AD=new x("MatSuffix"),ND=(()=>{let e=class e{constructor(){this._isText=!1}set _isTextSelector(n){this._isText=!0}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=W({type:e,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[0,"matTextSuffix","_isTextSelector"]},standalone:!0,features:[Ze([{provide:AD,useExisting:e}])]});let t=e;return t})(),RD=new x("FloatingLabelParent"),wD=(()=>{let e=class e{get floating(){return this._floating}set floating(n){this._floating=n,this.monitorResize&&this._handleResize()}get monitorResize(){return this._monitorResize}set monitorResize(n){this._monitorResize=n,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}constructor(n){this._elementRef=n,this._floating=!1,this._monitorResize=!1,this._resizeObserver=g(ou),this._ngZone=g(R),this._parent=g(RD),this._resizeSubscription=new de}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return v1(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}_handleResize(){setTimeout(()=>this._parent._handleLabelResized())}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize())})}};e.\u0275fac=function(r){return new(r||e)(m(Y))},e.\u0275dir=W({type:e,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(r,o){r&2&&Ie("mdc-floating-label--float-above",o.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"},standalone:!0});let t=e;return t})();function v1(t){let e=t;if(e.offsetParent!==null)return e.scrollWidth;let i=e.cloneNode(!0);i.style.setProperty("position","absolute"),i.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(i);let n=i.scrollWidth;return i.remove(),n}var DD="mdc-line-ripple--active",du="mdc-line-ripple--deactivating",ED=(()=>{let e=class e{constructor(n,r){this._elementRef=n,this._handleTransitionEnd=o=>{let s=this._elementRef.nativeElement.classList,a=s.contains(du);o.propertyName==="opacity"&&a&&s.remove(DD,du)},r.runOutsideAngular(()=>{n.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){let n=this._elementRef.nativeElement.classList;n.remove(du),n.add(DD)}deactivate(){this._elementRef.nativeElement.classList.add(du)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}};e.\u0275fac=function(r){return new(r||e)(m(Y),m(R))},e.\u0275dir=W({type:e,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"],standalone:!0});let t=e;return t})(),CD=(()=>{let e=class e{constructor(n,r){this._elementRef=n,this._ngZone=r,this.open=!1}ngAfterViewInit(){let n=this._elementRef.nativeElement.querySelector(".mdc-floating-label");n?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame=="function"&&(n.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>n.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(n){!this.open||!n?this._notch.nativeElement.style.width="":this._notch.nativeElement.style.width=`calc(${n}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`}};e.\u0275fac=function(r){return new(r||e)(m(Y),m(R))},e.\u0275cmp=ke({type:e,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(r,o){if(r&1&&Pe($F,5),r&2){let s;pe(s=me())&&(o._notch=s.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(r,o){r&2&&Ie("mdc-notched-outline--notched",o.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},standalone:!0,features:[_t],attrs:HF,ngContentSelectors:zF,decls:5,vars:0,consts:[["notch",""],[1,"mat-mdc-notch-piece","mdc-notched-outline__leading"],[1,"mat-mdc-notch-piece","mdc-notched-outline__notch"],[1,"mat-mdc-notch-piece","mdc-notched-outline__trailing"]],template:function(r,o){r&1&&(qt(),L(0,"div",1),D(1,"div",2,0),He(3),C(),L(4,"div",3))},encapsulation:2,changeDetection:0});let t=e;return t})(),y1={transitionMessages:G_("transitionMessages",[Z_("enter",Wr({opacity:1,transform:"translateY(0%)"})),K_("void => enter",[Wr({opacity:0,transform:"translateY(-5px)"}),q_("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},sm=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=W({type:e});let t=e;return t})();var am=new x("MatFormField"),b1=new x("MAT_FORM_FIELD_DEFAULT_OPTIONS"),ID=0,xD="fill",_1="auto",SD="fixed",w1="translateY(-50%)",OD=(()=>{let e=class e{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(n){this._hideRequiredMarker=ir(n)}get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||_1}set floatLabel(n){n!==this._floatLabel&&(this._floatLabel=n,this._changeDetectorRef.markForCheck())}get appearance(){return this._appearance}set appearance(n){let r=this._appearance,o=n||this._defaults?.appearance||xD;this._appearance=o,this._appearance==="outline"&&this._appearance!==r&&(this._needsOutlineLabelOffsetUpdate=!0)}get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||SD}set subscriptSizing(n){this._subscriptSizing=n||this._defaults?.subscriptSizing||SD}get hintLabel(){return this._hintLabel}set hintLabel(n){this._hintLabel=n,this._processHints()}get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(n){this._explicitFormFieldControl=n}constructor(n,r,o,s,a,l,c,u){this._elementRef=n,this._changeDetectorRef=r,this._dir=s,this._platform=a,this._defaults=l,this._animationMode=c,this._labelChild=Mb(bD),this._hideRequiredMarker=!1,this.color="primary",this._appearance=xD,this._subscriptSizing=null,this._hintLabel="",this._hasIconPrefix=!1,this._hasTextPrefix=!1,this._hasIconSuffix=!1,this._hasTextSuffix=!1,this._labelId=`mat-mdc-form-field-label-${ID++}`,this._hintLabelId=`mat-mdc-hint-${ID++}`,this._subscriptAnimationState="",this._destroyed=new V,this._isFocused=null,this._needsOutlineLabelOffsetUpdate=!1,this._previousControl=null,this._injector=g(Le),this.getLabelId=Vn(()=>this._hasFloatingLabel()?this._labelId:null),this._hasFloatingLabel=Vn(()=>!!this._labelChild()),l&&(l.appearance&&(this.appearance=l.appearance),this._hideRequiredMarker=!!l?.hideRequiredMarker,l.color&&(this.color=l.color))}ngAfterViewInit(){this._updateFocusState(),this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl(),this._control!==this._previousControl&&(this._initializeControl(this._previousControl),this._previousControl=this._control)}ngOnDestroy(){this._stateChanges?.unsubscribe(),this._valueChanges?.unsubscribe(),this._destroyed.next(),this._destroyed.complete()}getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(n){let r=this._control,o="mat-mdc-form-field-type-";n&&this._elementRef.nativeElement.classList.remove(o+n.controlType),r.controlType&&this._elementRef.nativeElement.classList.add(o+r.controlType),this._stateChanges?.unsubscribe(),this._stateChanges=r.stateChanges.subscribe(()=>{this._updateFocusState(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._valueChanges?.unsubscribe(),r.ngControl&&r.ngControl.valueChanges&&(this._valueChanges=r.ngControl.valueChanges.pipe(Se(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()))}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(n=>!n._isText),this._hasTextPrefix=!!this._prefixChildren.find(n=>n._isText),this._hasIconSuffix=!!this._suffixChildren.find(n=>!n._isText),this._hasTextSuffix=!!this._suffixChildren.find(n=>n._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),vr(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){this._control}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||this._isFocused===null)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0),Lf(()=>{this._needsOutlineLabelOffsetUpdate&&(this._needsOutlineLabelOffsetUpdate=!1,this._updateOutlineLabelOffset())},{injector:this._injector}),this._dir.change.pipe(Se(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0)}_shouldAlwaysFloat(){return this.floatLabel==="always"}_hasOutline(){return this.appearance==="outline"}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_shouldLabelFloat(){return this._hasFloatingLabel()?this._control.shouldLabelFloat||this._shouldAlwaysFloat():!1}_shouldForward(n){let r=this._control?this._control.ngControl:null;return r&&r[n]}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_handleLabelResized(){this._refreshOutlineNotchWidth()}_refreshOutlineNotchWidth(){!this._hasOutline()||!this._floatingLabel||!this._shouldLabelFloat()?this._notchedOutline?._setNotchWidth(0):this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth())}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){this._hintChildren}_syncDescribedByIds(){if(this._control){let n=[];if(this._control.userAriaDescribedBy&&typeof this._control.userAriaDescribedBy=="string"&&n.push(...this._control.userAriaDescribedBy.split(" ")),this._getDisplayedMessages()==="hint"){let r=this._hintChildren?this._hintChildren.find(s=>s.align==="start"):null,o=this._hintChildren?this._hintChildren.find(s=>s.align==="end"):null;r?n.push(r.id):this._hintLabel&&n.push(this._hintLabelId),o&&n.push(o.id)}else this._errorChildren&&n.push(...this._errorChildren.map(r=>r.id));this._control.setDescribedByIds(n)}}_updateOutlineLabelOffset(){if(!this._hasOutline()||!this._floatingLabel)return;let n=this._floatingLabel.element;if(!(this._iconPrefixContainer||this._textPrefixContainer)){n.style.transform="";return}if(!this._isAttachedToDom()){this._needsOutlineLabelOffsetUpdate=!0;return}let r=this._iconPrefixContainer?.nativeElement,o=this._textPrefixContainer?.nativeElement,s=this._iconSuffixContainer?.nativeElement,a=this._textSuffixContainer?.nativeElement,l=r?.getBoundingClientRect().width??0,c=o?.getBoundingClientRect().width??0,u=s?.getBoundingClientRect().width??0,d=a?.getBoundingClientRect().width??0,h=this._dir.value==="rtl"?"-1":"1",f=`${l+c}px`,v=`calc(${h} * (${f} + var(--mat-mdc-form-field-label-offset-x, 0px)))`;n.style.transform=`var( --mat-mdc-form-field-label-transform, ${w1} translateX(${v})