dealposbarcode 1.6.7 → 1.6.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/{chunk-7RAAC4WC.js → chunk-3YCQABOZ.js} +1 -1
- package/browser/{chunk-DEBDZAS6.js → chunk-TYIXFHFS.js} +1 -1
- package/browser/{chunk-4MFUP6QK.js → chunk-VRHFDJYZ.js} +1 -1
- package/browser/{chunk-SPEKUZUA.js → chunk-WJNU4MET.js} +1 -1
- package/browser/{chunk-T7IGF7GQ.js → chunk-WQYEFC4E.js} +1 -1
- package/browser/index.html +2 -2
- package/browser/{main-EACYDKW2.js → main-5BPKKDEX.js} +2 -2
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import{$ as qo,$b as Fi,$c as fd,A as Go,Aa as Lu,Ab as $,Ac as ha,B as X,Ba as Ai,Bb as Zu,Bc as Li,C as b,Ca as Ye,Cb as Ni,Cc as rd,D as dn,Da as Le,Db as Ve,Dc as Xr,E as Tu,Ea as x,Eb as Ue,Ec as es,F as Cu,Fb as ia,Fc as fa,G as Iu,Ga as Qe,Gb as Xu,Gc as ts,H as Fn,Hb as ed,Hc as et,I as S,Ia as Bu,Ib as ra,Ic as ns,J as Ii,Ja as ut,Jb as Ze,Jc as je,K as we,Ka as Be,Kb as Ce,L as Si,La as Qo,Lb as ee,Lc as sd,M as Su,Ma as Pe,Mb as $n,Mc as od,N as zo,Na as Ln,Nb as Y,Nc as Hn,O as Au,Oa as Bn,Ob as ye,P as De,Pa as Gt,Pc as hn,Q as Ou,Qa as Zo,Qc as $e,Ra as ne,Rb as sa,Rc as ad,S as ve,Sa as Xo,Sb as oa,Sc as is,Ta as Oi,Tb as aa,Tc as cd,U as Wo,Ua as ae,Ub as ca,Uc as Gn,V as Yr,Va as Ri,Vb as he,Vc as ld,Wa as F,Wb as Ie,Wc as ud,X as Ee,Xa as Vu,Xb as ht,Xc as H,Y as jt,Ya as ea,Yb as ki,Yc as dd,Za as Uu,Zb as xi,Zc as Bi,_a as dt,_c as hd,a as m,aa as Te,ab as ta,ac as ft,ad as Vi,b as k,ba as Ru,bb as Vn,bc as td,bd as rs,ca as Pu,cb as Un,cc as ie,db as ju,dc as Q,ea as Mu,eb as $u,ec as la,fa as $t,fb as Hu,fc as ua,fd as pa,ga as Ht,gb as Gu,ha as Jo,hb as zu,hc as St,hd as ga,i as un,ia as Nu,ib as Wu,ic as nd,j as p,ja as ku,jb as qu,jc as pt,k as yu,ka as xu,kb as It,kc as gt,l as bu,la as Ko,lb as na,lc as da,ld as pd,m as xe,ma as oe,mc as Me,md as ss,n as jo,na as K,nb as Ju,nc as Zr,nd as gd,o as $o,oa as V,oc as zt,od as os,p as L,pa as Qr,q as _e,qa as j,qb as Pi,qc as mt,r as wu,ra as ct,rb as z,rc as Xe,rd as md,sa as w,sb as I,sd as ma,t as Du,ta as Fe,tb as Ku,u as Eu,ua as Fu,ub as Mi,uc as id,ud as as,va as R,vd as cs,w as at,wa as Yo,wb as Yu,x as Kr,xa as T,xb as Qu,xd as _a,ya as d,yb as jn,z as Ho,za as lt}from"./chunk-QAGGYSUU.js";var ji=class{},us=class{},At=class t{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(`
|
|
2
|
-
`).forEach(i=>{let n=i.indexOf(":");if(n>0){let r=i.slice(0,n),s=r.toLowerCase(),o=i.slice(n+1).trim();this.maybeSetNormalizedName(r,s),this.headers.has(s)?this.headers.get(s).push(o):this.headers.set(s,[o])}})}: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 s=e.value;if(!s)this.headers.delete(i),this.normalizedNames.delete(i);else{let o=this.headers.get(i);if(!o)return;o=o.filter(a=>s.indexOf(a)===-1),o.length===0?(this.headers.delete(i),this.normalizedNames.delete(i)):this.headers.set(i,o)}break}}setHeaderEntries(e,i){let n=(Array.isArray(i)?i:[i]).map(s=>s.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 ya=class{encodeKey(e){return _d(e)}encodeValue(e){return _d(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function mg(t,e){let i=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(r=>{let s=r.indexOf("="),[o,a]=s==-1?[e.decodeKey(r),""]:[e.decodeKey(r.slice(0,s)),e.decodeValue(r.slice(s+1))],c=i.get(o)||[];c.push(a),i.set(o,c)}),i}var _g=/%(\d[a-f0-9])/gi,vg={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function _d(t){return encodeURIComponent(t).replace(_g,(e,i)=>vg[i]??e)}function ls(t){return`${t}`}var Wt=class t{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new ya,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=mg(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(ls):[ls(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(s=>{i.push({param:n,value:s,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(ls(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(ls(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 ba=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 yg(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function vd(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function yd(t){return typeof Blob<"u"&&t instanceof Blob}function bd(t){return typeof FormData<"u"&&t instanceof FormData}function bg(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var Ui=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 s;if(yg(this.method)||r?(this.body=n!==void 0?n:null,s=r):s=n,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params),this.transferCache=s.transferCache),this.headers??=new At,this.context??=new ba,!this.params)this.params=new Wt,this.urlWithParams=i;else{let o=this.params.toString();if(o.length===0)this.urlWithParams=i;else{let a=i.indexOf("?"),c=a===-1?"?":a<i.length-1?"&":"";this.urlWithParams=i+c+o}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||vd(this.body)||yd(this.body)||bd(this.body)||bg(this.body)?this.body:this.body instanceof Wt?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||bd(this.body)?null:yd(this.body)?this.body.type||null:vd(this.body)?null:typeof this.body=="string"?"text/plain":this.body instanceof Wt?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?"application/json":null}clone(e={}){let i=e.method||this.method,n=e.url||this.url,r=e.responseType||this.responseType,s=e.transferCache??this.transferCache,o=e.body!==void 0?e.body:this.body,a=e.withCredentials??this.withCredentials,c=e.reportProgress??this.reportProgress,l=e.headers||this.headers,u=e.params||this.params,f=e.context??this.context;return e.setHeaders!==void 0&&(l=Object.keys(e.setHeaders).reduce((h,g)=>h.set(g,e.setHeaders[g]),l)),e.setParams&&(u=Object.keys(e.setParams).reduce((h,g)=>h.set(g,e.setParams[g]),u)),new t(i,n,o,{params:u,headers:l,context:f,reportProgress:c,responseType:r,withCredentials:a,transferCache:s})}},qt=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}(qt||{}),$i=class{constructor(e,i=200,n="OK"){this.headers=e.headers||new At,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}},ds=class t extends $i{constructor(e={}){super(e),this.type=qt.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})}},Hi=class t extends $i{constructor(e={}){super(e),this.type=qt.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})}},_t=class extends $i{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}},Cd=200,wg=204;function va(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 Ea=(()=>{let e=class e{constructor(n){this.handler=n}request(n,r,s={}){let o;if(n instanceof Ui)o=n;else{let l;s.headers instanceof At?l=s.headers:l=new At(s.headers);let u;s.params&&(s.params instanceof Wt?u=s.params:u=new Wt({fromObject:s.params})),o=new Ui(n,r,s.body!==void 0?s.body:null,{headers:l,context:s.context,params:u,reportProgress:s.reportProgress,responseType:s.responseType||"json",withCredentials:s.withCredentials,transferCache:s.transferCache})}let a=b(o).pipe(jt(l=>this.handler.handle(l)));if(n instanceof Ui||s.observe==="events")return a;let c=a.pipe(ve(l=>l instanceof Hi));switch(s.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return c.pipe(S(l=>{if(l.body!==null&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return c.pipe(S(l=>{if(l.body!==null&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return c.pipe(S(l=>{if(l.body!==null&&typeof l.body!="string")throw new Error("Response is not a string.");return l.body}));case"json":default:return c.pipe(S(l=>l.body))}case"response":return c;default:throw new Error(`Unreachable: unhandled observe type ${s.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 Wt().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,s={}){return this.request("PATCH",n,va(s,r))}post(n,r,s={}){return this.request("POST",n,va(s,r))}put(n,r,s={}){return this.request("PUT",n,va(s,r))}};e.\u0275fac=function(r){return new(r||e)(T(ji))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})(),Dg=/^\)\]\}',?\n/,Eg="X-Request-URL";function wd(t){if(t.url)return t.url;let e=Eg.toLocaleLowerCase();return t.headers.get(e)}var Tg=(()=>{let e=class e{constructor(){this.fetchImpl=d(wa,{optional:!0})?.fetch??fetch.bind(globalThis),this.ngZone=d($)}handle(n){return new xe(r=>{let s=new AbortController;return this.doRequest(n,s.signal,r).then(Da,o=>r.error(new _t({error:o}))),()=>s.abort()})}doRequest(n,r,s){return p(this,null,function*(){let o=this.createRequestInit(n),a;try{let v=this.ngZone.runOutsideAngular(()=>this.fetchImpl(n.urlWithParams,m({signal:r},o)));Cg(v),s.next({type:qt.Sent}),a=yield v}catch(v){s.error(new _t({error:v,status:v.status??0,statusText:v.statusText,url:n.urlWithParams,headers:v.headers}));return}let c=new At(a.headers),l=a.statusText,u=wd(a)??n.urlWithParams,f=a.status,h=null;if(n.reportProgress&&s.next(new ds({headers:c,status:f,statusText:l,url:u})),a.body){let v=a.headers.get("content-length"),E=[],_=a.body.getReader(),y=0,P,M,D=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>p(this,null,function*(){for(;;){let{done:O,value:B}=yield _.read();if(O)break;if(E.push(B),y+=B.length,n.reportProgress){M=n.responseType==="text"?(M??"")+(P??=new TextDecoder).decode(B,{stream:!0}):void 0;let q=()=>s.next({type:qt.DownloadProgress,total:v?+v:void 0,loaded:y,partialText:M});D?D.run(q):q()}}}));let N=this.concatChunks(E,y);try{let O=a.headers.get("Content-Type")??"";h=this.parseBody(n,N,O)}catch(O){s.error(new _t({error:O,headers:new At(a.headers),status:a.status,statusText:a.statusText,url:wd(a)??n.urlWithParams}));return}}f===0&&(f=h?Cd:0),f>=200&&f<300?(s.next(new Hi({body:h,headers:c,status:f,statusText:l,url:u})),s.complete()):s.error(new _t({error:h,headers:c,status:f,statusText:l,url:u}))})}parseBody(n,r,s){switch(n.responseType){case"json":let o=new TextDecoder().decode(r).replace(Dg,"");return o===""?null:JSON.parse(o);case"text":return new TextDecoder().decode(r);case"blob":return new Blob([r],{type:s});case"arraybuffer":return r.buffer}}createRequestInit(n){let r={},s=n.withCredentials?"include":void 0;if(n.headers.forEach((o,a)=>r[o]=a.join(",")),n.headers.has("Accept")||(r.Accept="application/json, text/plain, */*"),!n.headers.has("Content-Type")){let o=n.detectContentTypeHeader();o!==null&&(r["Content-Type"]=o)}return{body:n.serializeBody(),method:n.method,headers:r,credentials:s}}concatChunks(n,r){let s=new Uint8Array(r),o=0;for(let a of n)s.set(a,o),o+=a.length;return s}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})(),wa=class{};function Da(){}function Cg(t){t.then(Da,Da)}function Id(t,e){return e(t)}function Ig(t,e){return(i,n)=>e.intercept(i,{handle:r=>t(r,n)})}function Sg(t,e,i){return(n,r)=>Be(i,()=>e(n,s=>t(s,r)))}var Ag=new R(""),fs=new R(""),Og=new R(""),Sd=new R("",{providedIn:"root",factory:()=>!0});function Rg(){let t=null;return(e,i)=>{t===null&&(t=(d(Ag,{optional:!0})??[]).reduceRight(Ig,Id));let n=d(Ri);if(d(Sd)){let s=n.add();return t(e,i).pipe($t(()=>n.remove(s)))}else return t(e,i)}}var Dd=(()=>{let e=class e extends ji{constructor(n,r){super(),this.backend=n,this.injector=r,this.chain=null,this.pendingTasks=d(Ri),this.contributeToStability=d(Sd)}handle(n){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(fs),...this.injector.get(Og,[])]));this.chain=r.reduceRight((s,o)=>Sg(s,o,this.injector),Id)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(n,s=>this.backend.handle(s)).pipe($t(()=>this.pendingTasks.remove(r)))}else return this.chain(n,r=>this.backend.handle(r))}};e.\u0275fac=function(r){return new(r||e)(T(us),T(ut))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})();var Pg=/^\)\]\}',?\n/;function Mg(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}var Ed=(()=>{let e=class e{constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new j(-2800,!1);let r=this.xhrFactory;return(r.\u0275loadImpl?X(r.\u0275loadImpl()):b(null)).pipe(oe(()=>new xe(o=>{let a=r.build();if(a.open(n.method,n.urlWithParams),n.withCredentials&&(a.withCredentials=!0),n.headers.forEach((_,y)=>a.setRequestHeader(_,y.join(","))),n.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let _=n.detectContentTypeHeader();_!==null&&a.setRequestHeader("Content-Type",_)}if(n.responseType){let _=n.responseType.toLowerCase();a.responseType=_!=="json"?_:"text"}let c=n.serializeBody(),l=null,u=()=>{if(l!==null)return l;let _=a.statusText||"OK",y=new At(a.getAllResponseHeaders()),P=Mg(a)||n.url;return l=new ds({headers:y,status:a.status,statusText:_,url:P}),l},f=()=>{let{headers:_,status:y,statusText:P,url:M}=u(),D=null;y!==wg&&(D=typeof a.response>"u"?a.responseText:a.response),y===0&&(y=D?Cd:0);let N=y>=200&&y<300;if(n.responseType==="json"&&typeof D=="string"){let O=D;D=D.replace(Pg,"");try{D=D!==""?JSON.parse(D):null}catch(B){D=O,N&&(N=!1,D={error:B,text:D})}}N?(o.next(new Hi({body:D,headers:_,status:y,statusText:P,url:M||void 0})),o.complete()):o.error(new _t({error:D,headers:_,status:y,statusText:P,url:M||void 0}))},h=_=>{let{url:y}=u(),P=new _t({error:_,status:a.status||0,statusText:a.statusText||"Unknown Error",url:y||void 0});o.error(P)},g=!1,v=_=>{g||(o.next(u()),g=!0);let y={type:qt.DownloadProgress,loaded:_.loaded};_.lengthComputable&&(y.total=_.total),n.responseType==="text"&&a.responseText&&(y.partialText=a.responseText),o.next(y)},E=_=>{let y={type:qt.UploadProgress,loaded:_.loaded};_.lengthComputable&&(y.total=_.total),o.next(y)};return a.addEventListener("load",f),a.addEventListener("error",h),a.addEventListener("timeout",h),a.addEventListener("abort",h),n.reportProgress&&(a.addEventListener("progress",v),c!==null&&a.upload&&a.upload.addEventListener("progress",E)),a.send(c),o.next({type:qt.Sent}),()=>{a.removeEventListener("error",h),a.removeEventListener("abort",h),a.removeEventListener("load",f),a.removeEventListener("timeout",h),n.reportProgress&&(a.removeEventListener("progress",v),c!==null&&a.upload&&a.upload.removeEventListener("progress",E)),a.readyState!==a.DONE&&a.abort()}})))}};e.\u0275fac=function(r){return new(r||e)(T(os))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})(),Ad=new R(""),Ng="XSRF-TOKEN",kg=new R("",{providedIn:"root",factory:()=>Ng}),xg="X-XSRF-TOKEN",Fg=new R("",{providedIn:"root",factory:()=>xg}),hs=class{},Lg=(()=>{let e=class e{constructor(n,r,s){this.doc=n,this.platform=r,this.cookieName=s,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=rs(n,this.cookieName),this.lastCookieString=n),this.lastToken}};e.\u0275fac=function(r){return new(r||e)(T(H),T(dt),T(kg))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})();function Bg(t,e){let i=t.url.toLowerCase();if(!d(Ad)||t.method==="GET"||t.method==="HEAD"||i.startsWith("http://")||i.startsWith("https://"))return e(t);let n=d(hs).getToken(),r=d(Fg);return n!=null&&!t.headers.has(r)&&(t=t.clone({headers:t.headers.set(r,n)})),e(t)}var Ta=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}(Ta||{});function Od(t,e){return{\u0275kind:t,\u0275providers:e}}function nE(...t){let e=[Ea,Ed,Dd,{provide:ji,useExisting:Dd},{provide:us,useFactory:()=>d(Tg,{optional:!0})??d(Ed)},{provide:fs,useValue:Bg,multi:!0},{provide:Ad,useValue:!0},{provide:hs,useClass:Lg}];for(let i of t)e.push(...i.\u0275providers);return Qe(e)}function iE(t){return Od(Ta.Interceptors,t.map(e=>({provide:fs,useValue:e,multi:!0})))}var Td=new R("");function rE(){return Od(Ta.LegacyInterceptors,[{provide:Td,useFactory:Rg},{provide:fs,useExisting:Td,multi:!0}])}var Sa=class extends ud{constructor(){super(...arguments),this.supportsDOMEvents=!0}},Aa=class t extends Sa{static makeCurrent(){ld(new t)}onAndCancel(e,i,n){return e.addEventListener(i,n),()=>{e.removeEventListener(i,n)}}dispatchEvent(e,i){e.dispatchEvent(i)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}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=Ug();return i==null?null:jg(i)}resetBaseElement(){Gi=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return rs(document.cookie,e)}},Gi=null;function Ug(){return Gi=Gi||document.querySelector("base"),Gi?Gi.getAttribute("href"):null}function jg(t){return new URL(t,document.baseURI).pathname}var $g=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})(),ps=new R(""),Nd=(()=>{let e=class e{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(s=>{s.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,s){return this._findPluginFor(r).addEventListener(n,r,s)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(o=>o.supports(n)),!r)throw new j(5101,!1);return this._eventNameToPlugin.set(n,r),r}};e.\u0275fac=function(r){return new(r||e)(T(ps),T($))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})(),zi=class{constructor(e){this._doc=e}},Ca="ng-app-id",kd=(()=>{let e=class e{constructor(n,r,s,o={}){this.doc=n,this.appId=r,this.nonce=s,this.platformId=o,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=ss(o),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(s=>s.remove()),r.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${Ca}="${this.appId}"]`);if(n?.length){let r=new Map;return n.forEach(s=>{s.textContent!=null&&r.set(s.textContent,s)}),r}return null}changeUsageCount(n,r){let s=this.styleRef;if(s.has(n)){let o=s.get(n);return o.usage+=r,o.usage}return s.set(n,{usage:r,elements:[]}),r}getStyleElement(n,r){let s=this.styleNodesInDOM,o=s?.get(r);if(o?.parentNode===n)return s.delete(r),o.removeAttribute(Ca),o;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=r,this.platformIsServer&&a.setAttribute(Ca,this.appId),n.appendChild(a),a}}addStyleToHost(n,r){let s=this.getStyleElement(n,r),o=this.styleRef,a=o.get(r)?.elements;a?a.push(s):o.set(r,{elements:[s],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}};e.\u0275fac=function(r){return new(r||e)(T(H),T(ea),T(ta,8),T(dt))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})(),Ia={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"},Ra=/%COMP%/g,xd="%COMP%",Hg=`_nghost-${xd}`,Gg=`_ngcontent-${xd}`,zg=!0,Wg=new R("",{providedIn:"root",factory:()=>zg});function qg(t){return Gg.replace(Ra,t)}function Jg(t){return Hg.replace(Ra,t)}function Fd(t,e){return e.map(i=>i.replace(Ra,t))}var Rd=(()=>{let e=class e{constructor(n,r,s,o,a,c,l,u=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=s,this.removeStylesOnCompDestroy=o,this.doc=a,this.platformId=c,this.ngZone=l,this.nonce=u,this.rendererByCompId=new Map,this.platformIsServer=ss(c),this.defaultRenderer=new Wi(n,a,l,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Ai.ShadowDom&&(r=k(m({},r),{encapsulation:Ai.Emulated}));let s=this.getOrCreateRenderer(n,r);return s instanceof gs?s.applyToHost(n):s instanceof qi&&s.applyStyles(),s}getOrCreateRenderer(n,r){let s=this.rendererByCompId,o=s.get(r.id);if(!o){let a=this.doc,c=this.ngZone,l=this.eventManager,u=this.sharedStylesHost,f=this.removeStylesOnCompDestroy,h=this.platformIsServer;switch(r.encapsulation){case Ai.Emulated:o=new gs(l,u,r,this.appId,f,a,c,h);break;case Ai.ShadowDom:return new Oa(l,u,n,r,a,c,this.nonce,h);default:o=new qi(l,u,r,f,a,c,h);break}s.set(r.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(r){return new(r||e)(T(Nd),T(kd),T(ea),T(Wg),T(H),T(dt),T($),T(ta))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})(),Wi=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(Ia[i]||i,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,i){(Pd(e)?e.content:e).appendChild(i)}insertBefore(e,i,n){e&&(Pd(e)?e.content:e).insertBefore(i,n)}removeChild(e,i){e&&e.removeChild(i)}selectRootElement(e,i){let n=typeof e=="string"?this.doc.querySelector(e):e;if(!n)throw new j(-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 s=Ia[r];s?e.setAttributeNS(s,i,n):e.setAttribute(i,n)}else e.setAttribute(i,n)}removeAttribute(e,i,n){if(n){let r=Ia[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&(Pi.DashCase|Pi.Important)?e.style.setProperty(i,n,r&Pi.Important?"important":""):e.style[i]=n}removeStyle(e,i,n){n&Pi.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=Gn().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 Pd(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var Oa=class extends Wi{constructor(e,i,n,r,s,o,a,c){super(e,s,o,c),this.sharedStylesHost=i,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let l=Fd(r.id,r.styles);for(let u of l){let f=document.createElement("style");a&&f.setAttribute("nonce",a),f.textContent=u,this.shadowRoot.appendChild(f)}}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(this.nodeOrShadowRoot(e),i)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},qi=class extends Wi{constructor(e,i,n,r,s,o,a,c){super(e,s,o,a),this.sharedStylesHost=i,this.removeStylesOnCompDestroy=r,this.styles=c?Fd(c,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},gs=class extends qi{constructor(e,i,n,r,s,o,a,c){let l=r+"-"+n.id;super(e,i,n,s,o,a,c,l),this.contentAttr=qg(l),this.hostAttr=Jg(l)}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}},Kg=(()=>{let e=class e extends zi{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,s){return n.addEventListener(r,s,!1),()=>this.removeEventListener(n,r,s)}removeEventListener(n,r,s){return n.removeEventListener(r,s)}};e.\u0275fac=function(r){return new(r||e)(T(H))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})(),Yg=(()=>{let e=class e extends zi{constructor(n){super(n),this.delegate=d(od,{optional:!0})}supports(n){return this.delegate?this.delegate.supports(n):!1}addEventListener(n,r,s){return this.delegate.addEventListener(n,r,s)}removeEventListener(n,r,s){return this.delegate.removeEventListener(n,r,s)}};e.\u0275fac=function(r){return new(r||e)(T(H))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})(),Md=["alt","control","meta","shift"],Qg={"\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"},Zg={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},Xg=(()=>{let e=class e extends zi{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,s){let o=e.parseEventName(r),a=e.eventCallback(o.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Gn().onAndCancel(n,o.domEventName,a))}static parseEventName(n){let r=n.toLowerCase().split("."),s=r.shift();if(r.length===0||!(s==="keydown"||s==="keyup"))return null;let o=e._normalizeKey(r.pop()),a="",c=r.indexOf("code");if(c>-1&&(r.splice(c,1),a="code."),Md.forEach(u=>{let f=r.indexOf(u);f>-1&&(r.splice(f,1),a+=u+".")}),a+=o,r.length!=0||o.length===0)return null;let l={};return l.domEventName=s,l.fullKey=a,l}static matchEventFullKeyCode(n,r){let s=Qg[n.key]||n.key,o="";return r.indexOf("code.")>-1&&(s=n.code,o="code."),s==null||!s?!1:(s=s.toLowerCase(),s===" "?s="space":s==="."&&(s="dot"),Md.forEach(a=>{if(a!==s){let c=Zg[a];c(n)&&(o+=a+".")}}),o+=s,o===r)}static eventCallback(n,r,s){return o=>{e.matchEventFullKeyCode(o,n)&&s.runGuarded(()=>r(o))}}static _normalizeKey(n){return n==="esc"?"escape":n}};e.\u0275fac=function(r){return new(r||e)(T(H))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})();function SE(t,e){return sd(m({rootComponent:t},em(e)))}function em(t){return{appProviders:[...sm,...t?.providers??[]],platformProviders:rm}}function tm(){Aa.makeCurrent()}function nm(){return new Xo}function im(){return Vu(document),document}var rm=[{provide:dt,useValue:pd},{provide:Uu,useValue:tm,multi:!0},{provide:H,useFactory:im,deps:[]}];var sm=[{provide:Bu,useValue:"root"},{provide:Xo,useFactory:nm,deps:[]},{provide:ps,useClass:Kg,multi:!0,deps:[H,$,dt]},{provide:ps,useClass:Xg,multi:!0,deps:[H]},{provide:ps,useClass:Yg,multi:!0},Rd,kd,Nd,{provide:Qu,useExisting:Rd},{provide:os,useClass:$g,deps:[]},[]];var Ld=(()=>{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)(T(H))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Pa=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=w({token:e,factory:function(r){let s=null;return r?s=new(r||e):s=T(om),s},providedIn:"root"});let t=e;return t})(),om=(()=>{let e=class e extends Pa{constructor(n){super(),this._doc=n}sanitize(n,r){if(r==null)return null;switch(n){case It.NONE:return r;case It.HTML:return Un(r,"HTML")?Vn(r):qu(this._doc,String(r)).toString();case It.STYLE:return Un(r,"Style")?Vn(r):r;case It.SCRIPT:if(Un(r,"Script"))return Vn(r);throw new j(5200,!1);case It.URL:return Un(r,"URL")?Vn(r):Wu(String(r));case It.RESOURCE_URL:if(Un(r,"ResourceURL"))return Vn(r);throw new j(5201,!1);default:throw new j(5202,!1)}}bypassSecurityTrustHtml(n){return ju(n)}bypassSecurityTrustStyle(n){return $u(n)}bypassSecurityTrustScript(n){return Hu(n)}bypassSecurityTrustUrl(n){return Gu(n)}bypassSecurityTrustResourceUrl(n){return zu(n)}};e.\u0275fac=function(r){return new(r||e)(T(H))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var A="primary",cr=Symbol("RouteTitle"),Fa=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 Yn(t){return new Fa(t)}function am(t,e,i){let n=i.path.split("/");if(n.length>t.length||i.pathMatch==="full"&&(e.hasChildren()||n.length<t.length))return null;let r={};for(let s=0;s<n.length;s++){let o=n[s],a=t[s];if(o[0]===":")r[o.substring(1)]=a;else if(o!==a.path)return null}return{consumed:t.slice(0,n.length),posParams:r}}function cm(t,e){if(t.length!==e.length)return!1;for(let i=0;i<t.length;++i)if(!vt(t[i],e[i]))return!1;return!0}function vt(t,e){let i=t?La(t):void 0,n=e?La(e):void 0;if(!i||!n||i.length!=n.length)return!1;let r;for(let s=0;s<i.length;s++)if(r=i[s],!Yd(t[r],e[r]))return!1;return!0}function La(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function Yd(t,e){if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;let i=[...t].sort(),n=[...e].sort();return i.every((r,s)=>n[s]===r)}else return t===e}function Qd(t){return t.length>0?t[t.length-1]:null}function Yt(t){return Tu(t)?t:es(t)?X(Promise.resolve(t)):b(t)}var lm={exact:Xd,subset:eh},Zd={exact:um,subset:dm,ignored:()=>!0};function Vd(t,e,i){return lm[i.paths](t.root,e.root,i.matrixParams)&&Zd[i.queryParams](t.queryParams,e.queryParams)&&!(i.fragment==="exact"&&t.fragment!==e.fragment)}function um(t,e){return vt(t,e)}function Xd(t,e,i){if(!pn(t.segments,e.segments)||!vs(t.segments,e.segments,i)||t.numberOfChildren!==e.numberOfChildren)return!1;for(let n in e.children)if(!t.children[n]||!Xd(t.children[n],e.children[n],i))return!1;return!0}function dm(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(i=>Yd(t[i],e[i]))}function eh(t,e,i){return th(t,e,e.segments,i)}function th(t,e,i,n){if(t.segments.length>i.length){let r=t.segments.slice(0,i.length);return!(!pn(r,i)||e.hasChildren()||!vs(r,i,n))}else if(t.segments.length===i.length){if(!pn(t.segments,i)||!vs(t.segments,i,n))return!1;for(let r in e.children)if(!t.children[r]||!eh(t.children[r],e.children[r],n))return!1;return!0}else{let r=i.slice(0,t.segments.length),s=i.slice(t.segments.length);return!pn(t.segments,r)||!vs(t.segments,r,n)||!t.children[A]?!1:th(t.children[A],e,s,n)}}function vs(t,e,i){return e.every((n,r)=>Zd[i](t[r].parameters,n.parameters))}var Rt=class{constructor(e=new U([],{}),i={},n=null){this.root=e,this.queryParams=i,this.fragment=n}get queryParamMap(){return this._queryParamMap??=Yn(this.queryParams),this._queryParamMap}toString(){return pm.serialize(this)}},U=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 ys(this)}},fn=class{constructor(e,i){this.path=e,this.parameters=i}get parameterMap(){return this._parameterMap??=Yn(this.parameters),this._parameterMap}toString(){return ih(this)}};function hm(t,e){return pn(t,e)&&t.every((i,n)=>vt(i.parameters,e[n].parameters))}function pn(t,e){return t.length!==e.length?!1:t.every((i,n)=>i.path===e[n].path)}function fm(t,e){let i=[];return Object.entries(t.children).forEach(([n,r])=>{n===A&&(i=i.concat(e(r,n)))}),Object.entries(t.children).forEach(([n,r])=>{n!==A&&(i=i.concat(e(r,n)))}),i}var lr=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=w({token:e,factory:()=>new Qn,providedIn:"root"});let t=e;return t})(),Qn=class{parse(e){let i=new Va(e);return new Rt(i.parseRootSegment(),i.parseQueryParams(),i.parseFragment())}serialize(e){let i=`/${Ji(e.root,!0)}`,n=_m(e.queryParams),r=typeof e.fragment=="string"?`#${gm(e.fragment)}`:"";return`${i}${n}${r}`}},pm=new Qn;function ys(t){return t.segments.map(e=>ih(e)).join("/")}function Ji(t,e){if(!t.hasChildren())return ys(t);if(e){let i=t.children[A]?Ji(t.children[A],!1):"",n=[];return Object.entries(t.children).forEach(([r,s])=>{r!==A&&n.push(`${r}:${Ji(s,!1)}`)}),n.length>0?`${i}(${n.join("//")})`:i}else{let i=fm(t,(n,r)=>r===A?[Ji(t.children[A],!1)]:[`${r}:${Ji(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[A]!=null?`${ys(t)}/${i[0]}`:`${ys(t)}/(${i.join("//")})`}}function nh(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ms(t){return nh(t).replace(/%3B/gi,";")}function gm(t){return encodeURI(t)}function Ba(t){return nh(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function bs(t){return decodeURIComponent(t)}function Ud(t){return bs(t.replace(/\+/g,"%20"))}function ih(t){return`${Ba(t.path)}${mm(t.parameters)}`}function mm(t){return Object.entries(t).map(([e,i])=>`;${Ba(e)}=${Ba(i)}`).join("")}function _m(t){let e=Object.entries(t).map(([i,n])=>Array.isArray(n)?n.map(r=>`${ms(i)}=${ms(r)}`).join("&"):`${ms(i)}=${ms(n)}`).filter(i=>i);return e.length?`?${e.join("&")}`:""}var vm=/^[^\/()?;#]+/;function Ma(t){let e=t.match(vm);return e?e[0]:""}var ym=/^[^\/()?;=#]+/;function bm(t){let e=t.match(ym);return e?e[0]:""}var wm=/^[^=?&#]+/;function Dm(t){let e=t.match(wm);return e?e[0]:""}var Em=/^[^&#]+/;function Tm(t){let e=t.match(Em);return e?e[0]:""}var Va=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new U([],{}):new U([],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[A]=new U(e,i)),n}parseSegment(){let e=Ma(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new j(4009,!1);return this.capture(e),new fn(bs(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let i=bm(this.remaining);if(!i)return;this.capture(i);let n="";if(this.consumeOptional("=")){let r=Ma(this.remaining);r&&(n=r,this.capture(n))}e[bs(i)]=bs(n)}parseQueryParam(e){let i=Dm(this.remaining);if(!i)return;this.capture(i);let n="";if(this.consumeOptional("=")){let o=Tm(this.remaining);o&&(n=o,this.capture(n))}let r=Ud(i),s=Ud(n);if(e.hasOwnProperty(r)){let o=e[r];Array.isArray(o)||(o=[o],e[r]=o),o.push(s)}else e[r]=s}parseParens(e){let i={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=Ma(this.remaining),r=this.remaining[n.length];if(r!=="/"&&r!==")"&&r!==";")throw new j(4010,!1);let s;n.indexOf(":")>-1?(s=n.slice(0,n.indexOf(":")),this.capture(s),this.capture(":")):e&&(s=A);let o=this.parseChildren();i[s]=Object.keys(o).length===1?o[A]:new U([],o),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 j(4011,!1)}};function rh(t){return t.segments.length>0?new U([],{[A]:t}):t}function sh(t){let e={};for(let[n,r]of Object.entries(t.children)){let s=sh(r);if(n===A&&s.segments.length===0&&s.hasChildren())for(let[o,a]of Object.entries(s.children))e[o]=a;else(s.segments.length>0||s.hasChildren())&&(e[n]=s)}let i=new U(t.segments,e);return Cm(i)}function Cm(t){if(t.numberOfChildren===1&&t.children[A]){let e=t.children[A];return new U(t.segments.concat(e.segments),e.children)}return t}function gn(t){return t instanceof Rt}function Im(t,e,i=null,n=null){let r=oh(t);return ah(r,e,i,n)}function oh(t){let e;function i(s){let o={};for(let c of s.children){let l=i(c);o[c.outlet]=l}let a=new U(s.url,o);return s===t&&(e=a),a}let n=i(t.root),r=rh(n);return e??r}function ah(t,e,i,n){let r=t;for(;r.parent;)r=r.parent;if(e.length===0)return Na(r,r,r,i,n);let s=Sm(e);if(s.toRoot())return Na(r,r,new U([],{}),i,n);let o=Am(s,r,t),a=o.processChildren?Qi(o.segmentGroup,o.index,s.commands):lh(o.segmentGroup,o.index,s.commands);return Na(r,o.segmentGroup,a,i,n)}function ws(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function er(t){return typeof t=="object"&&t!=null&&t.outlets}function Na(t,e,i,n,r){let s={};n&&Object.entries(n).forEach(([c,l])=>{s[c]=Array.isArray(l)?l.map(u=>`${u}`):`${l}`});let o;t===e?o=i:o=ch(t,e,i);let a=rh(sh(o));return new Rt(a,s,r)}function ch(t,e,i){let n={};return Object.entries(t.children).forEach(([r,s])=>{s===e?n[r]=i:n[r]=ch(s,e,i)}),new U(t.segments,n)}var Ds=class{constructor(e,i,n){if(this.isAbsolute=e,this.numberOfDoubleDots=i,this.commands=n,e&&n.length>0&&ws(n[0]))throw new j(4003,!1);let r=n.find(er);if(r&&r!==Qd(n))throw new j(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Sm(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new Ds(!0,0,t);let e=0,i=!1,n=t.reduce((r,s,o)=>{if(typeof s=="object"&&s!=null){if(s.outlets){let a={};return Object.entries(s.outlets).forEach(([c,l])=>{a[c]=typeof l=="string"?l.split("/"):l}),[...r,{outlets:a}]}if(s.segmentPath)return[...r,s.segmentPath]}return typeof s!="string"?[...r,s]:o===0?(s.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?i=!0:a===".."?e++:a!=""&&r.push(a))}),r):[...r,s]},[]);return new Ds(i,e,n)}var qn=class{constructor(e,i,n){this.segmentGroup=e,this.processChildren=i,this.index=n}};function Am(t,e,i){if(t.isAbsolute)return new qn(e,!0,0);if(!i)return new qn(e,!1,NaN);if(i.parent===null)return new qn(i,!0,0);let n=ws(t.commands[0])?0:1,r=i.segments.length-1+n;return Om(i,r,t.numberOfDoubleDots)}function Om(t,e,i){let n=t,r=e,s=i;for(;s>r;){if(s-=r,n=n.parent,!n)throw new j(4005,!1);r=n.segments.length}return new qn(n,!1,r-s)}function Rm(t){return er(t[0])?t[0].outlets:{[A]:t}}function lh(t,e,i){if(t??=new U([],{}),t.segments.length===0&&t.hasChildren())return Qi(t,e,i);let n=Pm(t,e,i),r=i.slice(n.commandIndex);if(n.match&&n.pathIndex<t.segments.length){let s=new U(t.segments.slice(0,n.pathIndex),{});return s.children[A]=new U(t.segments.slice(n.pathIndex),t.children),Qi(s,0,r)}else return n.match&&r.length===0?new U(t.segments,{}):n.match&&!t.hasChildren()?Ua(t,e,i):n.match?Qi(t,0,r):Ua(t,e,i)}function Qi(t,e,i){if(i.length===0)return new U(t.segments,{});{let n=Rm(i),r={};if(Object.keys(n).some(s=>s!==A)&&t.children[A]&&t.numberOfChildren===1&&t.children[A].segments.length===0){let s=Qi(t.children[A],e,i);return new U(t.segments,s.children)}return Object.entries(n).forEach(([s,o])=>{typeof o=="string"&&(o=[o]),o!==null&&(r[s]=lh(t.children[s],e,o))}),Object.entries(t.children).forEach(([s,o])=>{n[s]===void 0&&(r[s]=o)}),new U(t.segments,r)}}function Pm(t,e,i){let n=0,r=e,s={match:!1,pathIndex:0,commandIndex:0};for(;r<t.segments.length;){if(n>=i.length)return s;let o=t.segments[r],a=i[n];if(er(a))break;let c=`${a}`,l=n<i.length-1?i[n+1]:null;if(r>0&&c===void 0)break;if(c&&l&&typeof l=="object"&&l.outlets===void 0){if(!$d(c,l,o))return s;n+=2}else{if(!$d(c,{},o))return s;n++}r++}return{match:!0,pathIndex:r,commandIndex:n}}function Ua(t,e,i){let n=t.segments.slice(0,e),r=0;for(;r<i.length;){let s=i[r];if(er(s)){let c=Mm(s.outlets);return new U(n,c)}if(r===0&&ws(i[0])){let c=t.segments[e];n.push(new fn(c.path,jd(i[0]))),r++;continue}let o=er(s)?s.outlets[A]:`${s}`,a=r<i.length-1?i[r+1]:null;o&&a&&ws(a)?(n.push(new fn(o,jd(a))),r+=2):(n.push(new fn(o,{})),r++)}return new U(n,{})}function Mm(t){let e={};return Object.entries(t).forEach(([i,n])=>{typeof n=="string"&&(n=[n]),n!==null&&(e[i]=Ua(new U([],{}),0,n))}),e}function jd(t){let e={};return Object.entries(t).forEach(([i,n])=>e[i]=`${n}`),e}function $d(t,e,i){return t==i.path&&vt(e,i.parameters)}var Zi="imperative",ce=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}(ce||{}),He=class{constructor(e,i){this.id=e,this.url=i}},Zn=class extends He{constructor(e,i,n="imperative",r=null){super(e,i),this.type=ce.NavigationStart,this.navigationTrigger=n,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},nt=class extends He{constructor(e,i,n){super(e,i),this.urlAfterRedirects=n,this.type=ce.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},ke=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(ke||{}),Es=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(Es||{}),Ot=class extends He{constructor(e,i,n,r){super(e,i),this.reason=n,this.code=r,this.type=ce.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},Kt=class extends He{constructor(e,i,n,r){super(e,i),this.reason=n,this.code=r,this.type=ce.NavigationSkipped}},tr=class extends He{constructor(e,i,n,r){super(e,i),this.error=n,this.target=r,this.type=ce.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Ts=class extends He{constructor(e,i,n,r){super(e,i),this.urlAfterRedirects=n,this.state=r,this.type=ce.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ja=class extends He{constructor(e,i,n,r){super(e,i),this.urlAfterRedirects=n,this.state=r,this.type=ce.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},$a=class extends He{constructor(e,i,n,r,s){super(e,i),this.urlAfterRedirects=n,this.state=r,this.shouldActivate=s,this.type=ce.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Ha=class extends He{constructor(e,i,n,r){super(e,i),this.urlAfterRedirects=n,this.state=r,this.type=ce.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ga=class extends He{constructor(e,i,n,r){super(e,i),this.urlAfterRedirects=n,this.state=r,this.type=ce.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},za=class{constructor(e){this.route=e,this.type=ce.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Wa=class{constructor(e){this.route=e,this.type=ce.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},qa=class{constructor(e){this.snapshot=e,this.type=ce.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ja=class{constructor(e){this.snapshot=e,this.type=ce.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ka=class{constructor(e){this.snapshot=e,this.type=ce.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ya=class{constructor(e){this.snapshot=e,this.type=ce.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Cs=class{constructor(e,i,n){this.routerEvent=e,this.position=i,this.anchor=n,this.type=ce.Scroll}toString(){let e=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${e}')`}},nr=class{},Xn=class{constructor(e,i){this.url=e,this.navigationBehaviorOptions=i}};function Nm(t,e){return t.providers&&!t._injector&&(t._injector=ra(t.providers,e,`Route: ${t.path}`)),t._injector??e}function tt(t){return t.outlet||A}function km(t,e){let i=t.filter(n=>tt(n)===e);return i.push(...t.filter(n=>tt(n)!==e)),i}function ur(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 Qa=class{get injector(){return ur(this.route?.snapshot)??this.rootInjector}set injector(e){}constructor(e){this.rootInjector=e,this.outlet=null,this.route=null,this.children=new dr(this.rootInjector),this.attachRef=null}},dr=(()=>{let e=class e{constructor(n){this.rootInjector=n,this.contexts=new Map}onChildOutletCreated(n,r){let s=this.getOrCreateContext(n);s.outlet=r,this.contexts.set(n,s)}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 Qa(this.rootInjector),this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}};e.\u0275fac=function(r){return new(r||e)(T(ut))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Is=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=Za(e,this._root);return i?i.children.map(n=>n.value):[]}firstChild(e){let i=Za(e,this._root);return i&&i.children.length>0?i.children[0].value:null}siblings(e){let i=Xa(e,this._root);return i.length<2?[]:i[i.length-2].children.map(r=>r.value).filter(r=>r!==e)}pathFromRoot(e){return Xa(e,this._root).map(i=>i.value)}};function Za(t,e){if(t===e.value)return e;for(let i of e.children){let n=Za(t,i);if(n)return n}return null}function Xa(t,e){if(t===e.value)return[e];for(let i of e.children){let n=Xa(t,i);if(n.length)return n.unshift(e),n}return[]}var Ne=class{constructor(e,i){this.value=e,this.children=i}toString(){return`TreeNode(${this.value})`}};function Wn(t){let e={};return t&&t.children.forEach(i=>e[i.value.outlet]=i),e}var Ss=class extends Is{constructor(e,i){super(e),this.snapshot=i,cc(this,e)}toString(){return this.snapshot.toString()}};function uh(t){let e=xm(t),i=new _e([new fn("",{})]),n=new _e({}),r=new _e({}),s=new _e({}),o=new _e(""),a=new yt(i,n,s,o,r,A,t,e.root);return a.snapshot=e.root,new Ss(new Ne(a,[]),e)}function xm(t){let e={},i={},n={},r="",s=new Jn([],e,n,r,i,A,t,null,{});return new Os("",new Ne(s,[]))}var yt=class{constructor(e,i,n,r,s,o,a,c){this.urlSubject=e,this.paramsSubject=i,this.queryParamsSubject=n,this.fragmentSubject=r,this.dataSubject=s,this.outlet=o,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(S(l=>l[cr]))??b(void 0),this.url=e,this.params=i,this.queryParams=n,this.fragment=r,this.data=s}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(S(e=>Yn(e))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(S(e=>Yn(e))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function As(t,e,i="emptyOnly"){let n,{routeConfig:r}=t;return e!==null&&(i==="always"||r?.path===""||!e.component&&!e.routeConfig?.loadComponent)?n={params:m(m({},e.params),t.params),data:m(m({},e.data),t.data),resolve:m(m(m(m({},t.data),e.data),r?.data),t._resolvedData)}:n={params:m({},t.params),data:m({},t.data),resolve:m(m({},t.data),t._resolvedData??{})},r&&hh(r)&&(n.resolve[cr]=r.title),n}var Jn=class{get title(){return this.data?.[cr]}constructor(e,i,n,r,s,o,a,c,l){this.url=e,this.params=i,this.queryParams=n,this.fragment=r,this.data=s,this.outlet=o,this.component=a,this.routeConfig=c,this._resolve=l}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??=Yn(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Yn(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}')`}},Os=class extends Is{constructor(e,i){super(i),this.url=e,cc(this,i)}toString(){return dh(this._root)}};function cc(t,e){e.value._routerState=t,e.children.forEach(i=>cc(t,i))}function dh(t){let e=t.children.length>0?` { ${t.children.map(dh).join(", ")} } `:"";return`${t.value}${e}`}function ka(t){if(t.snapshot){let e=t.snapshot,i=t._futureSnapshot;t.snapshot=i,vt(e.queryParams,i.queryParams)||t.queryParamsSubject.next(i.queryParams),e.fragment!==i.fragment&&t.fragmentSubject.next(i.fragment),vt(e.params,i.params)||t.paramsSubject.next(i.params),cm(e.url,i.url)||t.urlSubject.next(i.url),vt(e.data,i.data)||t.dataSubject.next(i.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function ec(t,e){let i=vt(t.params,e.params)&&hm(t.url,e.url),n=!t.parent!=!e.parent;return i&&!n&&(!t.parent||ec(t.parent,e.parent))}function hh(t){return typeof t.title=="string"||t.title===null}var Fm=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=A,this.activateEvents=new F,this.deactivateEvents=new F,this.attachEvents=new F,this.detachEvents=new F,this.parentContexts=d(dr),this.location=d(Ni),this.changeDetector=d(je),this.inputBinder=d(Ns,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){let{firstChange:r,previousValue:s}=n.name;if(r)return;this.isTrackedInParentContexts(s)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(s)),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 j(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new j(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new j(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 j(4013,!1);this._activatedRoute=n;let s=this.location,a=n.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,l=new tc(n,c,s.injector);this.activated=s.createComponent(a,{index:s.length,injector:l,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=x({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Pe]});let t=e;return t})(),tc=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===yt?this.route:e===dr?this.childContexts:this.parent.get(e,i)}},Ns=new R(""),Hd=(()=>{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,s=Ii([r.queryParams,r.params,r.data]).pipe(oe(([o,a,c],l)=>(c=m(m(m({},o),a),c),l===0?b(c):Promise.resolve(c)))).subscribe(o=>{if(!n.isActivated||!n.activatedComponentRef||n.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(n);return}let a=cd(r.component);if(!a){this.unsubscribeFromRouteData(n);return}for(let{templateName:c}of a.inputs)n.activatedComponentRef.setInput(c,o[c])});this.outletDataSubscriptions.set(n,s)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})();function Lm(t,e,i){let n=ir(t,e._root,i?i._root:void 0);return new Ss(n,e)}function ir(t,e,i){if(i&&t.shouldReuseRoute(e.value,i.value.snapshot)){let n=i.value;n._futureSnapshot=e.value;let r=Bm(t,e,i);return new Ne(n,r)}else{if(t.shouldAttach(e.value)){let s=t.retrieve(e.value);if(s!==null){let o=s.route;return o.value._futureSnapshot=e.value,o.children=e.children.map(a=>ir(t,a)),o}}let n=Vm(e.value),r=e.children.map(s=>ir(t,s));return new Ne(n,r)}}function Bm(t,e,i){return e.children.map(n=>{for(let r of i.children)if(t.shouldReuseRoute(n.value,r.value.snapshot))return ir(t,n,r);return ir(t,n)})}function Vm(t){return new yt(new _e(t.url),new _e(t.params),new _e(t.queryParams),new _e(t.fragment),new _e(t.data),t.outlet,t.component,t)}var rr=class{constructor(e,i){this.redirectTo=e,this.navigationBehaviorOptions=i}},fh="ngNavigationCancelingError";function Rs(t,e){let{redirectTo:i,navigationBehaviorOptions:n}=gn(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,r=ph(!1,ke.Redirect);return r.url=i,r.navigationBehaviorOptions=n,r}function ph(t,e){let i=new Error(`NavigationCancelingError: ${t||""}`);return i[fh]=!0,i.cancellationCode=e,i}function Um(t){return gh(t)&&gn(t.url)}function gh(t){return!!t&&t[fh]}var jm=(t,e,i,n)=>S(r=>(new nc(e,r.targetRouterState,r.currentRouterState,i,n).activate(t),r)),nc=class{constructor(e,i,n,r,s){this.routeReuseStrategy=e,this.futureState=i,this.currState=n,this.forwardEvent=r,this.inputBindingEnabled=s}activate(e){let i=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(i,n,e),ka(this.futureState.root),this.activateChildRoutes(i,n,e)}deactivateChildRoutes(e,i,n){let r=Wn(i);e.children.forEach(s=>{let o=s.value.outlet;this.deactivateRoutes(s,r[o],n),delete r[o]}),Object.values(r).forEach(s=>{this.deactivateRouteAndItsChildren(s,n)})}deactivateRoutes(e,i,n){let r=e.value,s=i?i.value:null;if(r===s)if(r.component){let o=n.getContext(r.outlet);o&&this.deactivateChildRoutes(e,i,o.children)}else this.deactivateChildRoutes(e,i,n);else s&&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,s=Wn(e);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,r);if(n&&n.outlet){let o=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:o,route:e,contexts:a})}}deactivateRouteAndOutlet(e,i){let n=i.getContext(e.value.outlet),r=n&&e.value.component?n.children:i,s=Wn(e);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,r);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(e,i,n){let r=Wn(i);e.children.forEach(s=>{this.activateRoutes(s,r[s.value.outlet],n),this.forwardEvent(new Ya(s.value.snapshot))}),e.children.length&&this.forwardEvent(new Ja(e.value.snapshot))}activateRoutes(e,i,n){let r=e.value,s=i?i.value:null;if(ka(r),r===s)if(r.component){let o=n.getOrCreateContext(r.outlet);this.activateChildRoutes(e,i,o.children)}else this.activateChildRoutes(e,i,n);else if(r.component){let o=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){let a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),o.children.onOutletReAttached(a.contexts),o.attachRef=a.componentRef,o.route=a.route.value,o.outlet&&o.outlet.attach(a.componentRef,a.route.value),ka(a.route.value),this.activateChildRoutes(e,null,o.children)}else o.attachRef=null,o.route=r,o.outlet&&o.outlet.activateWith(r,o.injector),this.activateChildRoutes(e,null,o.children)}else this.activateChildRoutes(e,null,n)}},Ps=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},Kn=class{constructor(e,i){this.component=e,this.route=i}};function $m(t,e,i){let n=t._root,r=e?e._root:null;return Ki(n,r,i,[n.value])}function Hm(t){let e=t.routeConfig?t.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:t,guards:e}}function ti(t,e){let i=Symbol(),n=e.get(t,i);return n===i?typeof t=="function"&&!Fu(t)?t:e.get(t):n}function Ki(t,e,i,n,r={canDeactivateChecks:[],canActivateChecks:[]}){let s=Wn(e);return t.children.forEach(o=>{Gm(o,s[o.value.outlet],i,n.concat([o.value]),r),delete s[o.value.outlet]}),Object.entries(s).forEach(([o,a])=>Xi(a,i.getContext(o),r)),r}function Gm(t,e,i,n,r={canDeactivateChecks:[],canActivateChecks:[]}){let s=t.value,o=e?e.value:null,a=i?i.getContext(t.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){let c=zm(o,s,s.routeConfig.runGuardsAndResolvers);c?r.canActivateChecks.push(new Ps(n)):(s.data=o.data,s._resolvedData=o._resolvedData),s.component?Ki(t,e,a?a.children:null,n,r):Ki(t,e,i,n,r),c&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new Kn(a.outlet.component,o))}else o&&Xi(e,a,r),r.canActivateChecks.push(new Ps(n)),s.component?Ki(t,null,a?a.children:null,n,r):Ki(t,null,i,n,r);return r}function zm(t,e,i){if(typeof i=="function")return i(t,e);switch(i){case"pathParamsChange":return!pn(t.url,e.url);case"pathParamsOrQueryParamsChange":return!pn(t.url,e.url)||!vt(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ec(t,e)||!vt(t.queryParams,e.queryParams);case"paramsChange":default:return!ec(t,e)}}function Xi(t,e,i){let n=Wn(t),r=t.value;Object.entries(n).forEach(([s,o])=>{r.component?e?Xi(o,e.children.getContext(s),i):Xi(o,null,i):Xi(o,e,i)}),r.component?e&&e.outlet&&e.outlet.isActivated?i.canDeactivateChecks.push(new Kn(e.outlet.component,r)):i.canDeactivateChecks.push(new Kn(null,r)):i.canDeactivateChecks.push(new Kn(null,r))}function hr(t){return typeof t=="function"}function Wm(t){return typeof t=="boolean"}function qm(t){return t&&hr(t.canLoad)}function Jm(t){return t&&hr(t.canActivate)}function Km(t){return t&&hr(t.canActivateChild)}function Ym(t){return t&&hr(t.canDeactivate)}function Qm(t){return t&&hr(t.canMatch)}function mh(t){return t instanceof Cu||t?.name==="EmptyError"}var _s=Symbol("INITIAL_VALUE");function ei(){return oe(t=>Ii(t.map(e=>e.pipe(Te(1),Ko(_s)))).pipe(S(e=>{for(let i of e)if(i!==!0){if(i===_s)return _s;if(i===!1||Zm(i))return i}return!0}),ve(e=>e!==_s),Te(1)))}function Zm(t){return gn(t)||t instanceof rr}function Xm(t,e){return we(i=>{let{targetSnapshot:n,currentSnapshot:r,guards:{canActivateChecks:s,canDeactivateChecks:o}}=i;return o.length===0&&s.length===0?b(k(m({},i),{guardsResult:!0})):e_(o,n,r,t).pipe(we(a=>a&&Wm(a)?t_(n,s,t,e):b(a)),S(a=>k(m({},i),{guardsResult:a})))})}function e_(t,e,i,n){return X(t).pipe(we(r=>o_(r.component,r.route,i,e,n)),Ht(r=>r!==!0,!0))}function t_(t,e,i,n){return X(e).pipe(jt(r=>Su(i_(r.route.parent,n),n_(r.route,n),s_(t,r.path,i),r_(t,r.route,i))),Ht(r=>r!==!0,!0))}function n_(t,e){return t!==null&&e&&e(new Ka(t)),b(!0)}function i_(t,e){return t!==null&&e&&e(new qa(t)),b(!0)}function r_(t,e,i){let n=e.routeConfig?e.routeConfig.canActivate:null;if(!n||n.length===0)return b(!0);let r=n.map(s=>zo(()=>{let o=ur(e)??i,a=ti(s,o),c=Jm(a)?a.canActivate(e,t):Be(o,()=>a(e,t));return Yt(c).pipe(Ht())}));return b(r).pipe(ei())}function s_(t,e,i){let n=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(o=>Hm(o)).filter(o=>o!==null).map(o=>zo(()=>{let a=o.guards.map(c=>{let l=ur(o.node)??i,u=ti(c,l),f=Km(u)?u.canActivateChild(n,t):Be(l,()=>u(n,t));return Yt(f).pipe(Ht())});return b(a).pipe(ei())}));return b(s).pipe(ei())}function o_(t,e,i,n,r){let s=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!s||s.length===0)return b(!0);let o=s.map(a=>{let c=ur(e)??r,l=ti(a,c),u=Ym(l)?l.canDeactivate(t,e,i,n):Be(c,()=>l(t,e,i,n));return Yt(u).pipe(Ht())});return b(o).pipe(ei())}function a_(t,e,i,n){let r=e.canLoad;if(r===void 0||r.length===0)return b(!0);let s=r.map(o=>{let a=ti(o,t),c=qm(a)?a.canLoad(e,i):Be(t,()=>a(e,i));return Yt(c)});return b(s).pipe(ei(),_h(n))}function _h(t){return bu(V(e=>{if(typeof e!="boolean")throw Rs(t,e)}),S(e=>e===!0))}function c_(t,e,i,n){let r=e.canMatch;if(!r||r.length===0)return b(!0);let s=r.map(o=>{let a=ti(o,t),c=Qm(a)?a.canMatch(e,i):Be(t,()=>a(e,i));return Yt(c)});return b(s).pipe(ei(),_h(n))}var sr=class{constructor(e){this.segmentGroup=e||null}},or=class extends Error{constructor(e){super(),this.urlTree=e}};function zn(t){return dn(new sr(t))}function l_(t){return dn(new j(4e3,!1))}function u_(t){return dn(ph(!1,ke.GuardRejected))}var ic=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 b(n);if(r.numberOfChildren>1||!r.children[A])return l_(`${e.redirectTo}`);r=r.children[A]}}applyRedirectCommands(e,i,n,r,s){if(typeof i!="string"){let a=i,{queryParams:c,fragment:l,routeConfig:u,url:f,outlet:h,params:g,data:v,title:E}=r,_=Be(s,()=>a({params:g,data:v,queryParams:c,fragment:l,routeConfig:u,url:f,outlet:h,title:E}));if(_ instanceof Rt)throw new or(_);i=_}let o=this.applyRedirectCreateUrlTree(i,this.urlSerializer.parse(i),e,n);if(i[0]==="/")throw new or(o);return o}applyRedirectCreateUrlTree(e,i,n,r){let s=this.createSegmentGroup(e,i.root,n,r);return new Rt(s,this.createQueryParams(i.queryParams,this.urlTree.queryParams),i.fragment)}createQueryParams(e,i){let n={};return Object.entries(e).forEach(([r,s])=>{if(typeof s=="string"&&s[0]===":"){let a=s.substring(1);n[r]=i[a]}else n[r]=s}),n}createSegmentGroup(e,i,n,r){let s=this.createSegments(e,i.segments,n,r),o={};return Object.entries(i.children).forEach(([a,c])=>{o[a]=this.createSegmentGroup(e,c,n,r)}),new U(s,o)}createSegments(e,i,n,r){return i.map(s=>s.path[0]===":"?this.findPosParam(e,s,r):this.findOrReturn(s,n))}findPosParam(e,i,n){let r=n[i.path.substring(1)];if(!r)throw new j(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}},rc={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function d_(t,e,i,n,r){let s=lc(t,e,i);return s.matched?(n=Nm(e,n),c_(n,e,i,r).pipe(S(o=>o===!0?s:m({},rc)))):b(s)}function lc(t,e,i){if(e.path==="**")return h_(i);if(e.path==="")return e.pathMatch==="full"&&(t.hasChildren()||i.length>0)?m({},rc):{matched:!0,consumedSegments:[],remainingSegments:i,parameters:{},positionalParamSegments:{}};let r=(e.matcher||am)(i,t,e);if(!r)return m({},rc);let s={};Object.entries(r.posParams??{}).forEach(([a,c])=>{s[a]=c.path});let o=r.consumed.length>0?m(m({},s),r.consumed[r.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:r.consumed,remainingSegments:i.slice(r.consumed.length),parameters:o,positionalParamSegments:r.posParams??{}}}function h_(t){return{matched:!0,parameters:t.length>0?Qd(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function Gd(t,e,i,n){return i.length>0&&g_(t,i,n)?{segmentGroup:new U(e,p_(n,new U(i,t.children))),slicedSegments:[]}:i.length===0&&m_(t,i,n)?{segmentGroup:new U(t.segments,f_(t,i,n,t.children)),slicedSegments:i}:{segmentGroup:new U(t.segments,t.children),slicedSegments:i}}function f_(t,e,i,n){let r={};for(let s of i)if(ks(t,e,s)&&!n[tt(s)]){let o=new U([],{});r[tt(s)]=o}return m(m({},n),r)}function p_(t,e){let i={};i[A]=e;for(let n of t)if(n.path===""&&tt(n)!==A){let r=new U([],{});i[tt(n)]=r}return i}function g_(t,e,i){return i.some(n=>ks(t,e,n)&&tt(n)!==A)}function m_(t,e,i){return i.some(n=>ks(t,e,n))}function ks(t,e,i){return(t.hasChildren()||e.length>0)&&i.pathMatch==="full"?!1:i.path===""}function __(t,e,i,n){return tt(t)!==n&&(n===A||!ks(e,i,t))?!1:lc(e,t,i).matched}function v_(t,e,i){return e.length===0&&!t.children[i]}var sc=class{};function y_(t,e,i,n,r,s,o="emptyOnly"){return new oc(t,e,i,n,r,o,s).recognize()}var b_=31,oc=class{constructor(e,i,n,r,s,o,a){this.injector=e,this.configLoader=i,this.rootComponentType=n,this.config=r,this.urlTree=s,this.paramsInheritanceStrategy=o,this.urlSerializer=a,this.applyRedirects=new ic(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new j(4002,`'${e.segmentGroup}'`)}recognize(){let e=Gd(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(S(({children:i,rootSnapshot:n})=>{let r=new Ne(n,i),s=new Os("",r),o=Im(n,[],this.urlTree.queryParams,this.urlTree.fragment);return o.queryParams=this.urlTree.queryParams,s.url=this.urlSerializer.serialize(o),{state:s,tree:o}}))}match(e){let i=new Jn([],Object.freeze({}),Object.freeze(m({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),A,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,e,A,i).pipe(S(n=>({children:n,rootSnapshot:i})),Ee(n=>{if(n instanceof or)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof sr?this.noMatchError(n):n}))}processSegmentGroup(e,i,n,r,s){return n.segments.length===0&&n.hasChildren()?this.processChildren(e,i,n,s):this.processSegment(e,i,n,n.segments,r,!0,s).pipe(S(o=>o instanceof Ne?[o]:[]))}processChildren(e,i,n,r){let s=[];for(let o of Object.keys(n.children))o==="primary"?s.unshift(o):s.push(o);return X(s).pipe(jt(o=>{let a=n.children[o],c=km(i,o);return this.processSegmentGroup(e,c,a,o,r)}),ku((o,a)=>(o.push(...a),o)),qo(null),Nu(),we(o=>{if(o===null)return zn(n);let a=vh(o);return w_(a),b(a)}))}processSegment(e,i,n,r,s,o,a){return X(i).pipe(jt(c=>this.processSegmentAgainstRoute(c._injector??e,i,c,n,r,s,o,a).pipe(Ee(l=>{if(l instanceof sr)return b(null);throw l}))),Ht(c=>!!c),Ee(c=>{if(mh(c))return v_(n,r,s)?b(new sc):zn(n);throw c}))}processSegmentAgainstRoute(e,i,n,r,s,o,a,c){return __(n,r,s,o)?n.redirectTo===void 0?this.matchSegmentAgainstRoute(e,r,n,s,o,c):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(e,r,i,n,s,o,c):zn(r):zn(r)}expandSegmentAgainstRouteUsingRedirect(e,i,n,r,s,o,a){let{matched:c,parameters:l,consumedSegments:u,positionalParamSegments:f,remainingSegments:h}=lc(i,r,s);if(!c)return zn(i);typeof r.redirectTo=="string"&&r.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>b_&&(this.allowRedirects=!1));let g=new Jn(s,l,Object.freeze(m({},this.urlTree.queryParams)),this.urlTree.fragment,zd(r),tt(r),r.component??r._loadedComponent??null,r,Wd(r)),v=As(g,a,this.paramsInheritanceStrategy);g.params=Object.freeze(v.params),g.data=Object.freeze(v.data);let E=this.applyRedirects.applyRedirectCommands(u,r.redirectTo,f,g,e);return this.applyRedirects.lineralizeSegments(r,E).pipe(we(_=>this.processSegment(e,n,i,_.concat(h),o,!1,a)))}matchSegmentAgainstRoute(e,i,n,r,s,o){let a=d_(i,n,r,e,this.urlSerializer);return n.path==="**"&&(i.children={}),a.pipe(oe(c=>c.matched?(e=n._injector??e,this.getChildConfig(e,n,r).pipe(oe(({routes:l})=>{let u=n._loadedInjector??e,{parameters:f,consumedSegments:h,remainingSegments:g}=c,v=new Jn(h,f,Object.freeze(m({},this.urlTree.queryParams)),this.urlTree.fragment,zd(n),tt(n),n.component??n._loadedComponent??null,n,Wd(n)),E=As(v,o,this.paramsInheritanceStrategy);v.params=Object.freeze(E.params),v.data=Object.freeze(E.data);let{segmentGroup:_,slicedSegments:y}=Gd(i,h,g,l);if(y.length===0&&_.hasChildren())return this.processChildren(u,l,_,v).pipe(S(M=>new Ne(v,M)));if(l.length===0&&y.length===0)return b(new Ne(v,[]));let P=tt(n)===s;return this.processSegment(u,l,_,y,P?A:s,!0,v).pipe(S(M=>new Ne(v,M instanceof Ne?[M]:[])))}))):zn(i)))}getChildConfig(e,i,n){return i.children?b({routes:i.children,injector:e}):i.loadChildren?i._loadedRoutes!==void 0?b({routes:i._loadedRoutes,injector:i._loadedInjector}):a_(e,i,n,this.urlSerializer).pipe(we(r=>r?this.configLoader.loadChildren(e,i).pipe(V(s=>{i._loadedRoutes=s.routes,i._loadedInjector=s.injector})):u_(i))):b({routes:[],injector:e})}};function w_(t){t.sort((e,i)=>e.value.outlet===A?-1:i.value.outlet===A?1:e.value.outlet.localeCompare(i.value.outlet))}function D_(t){let e=t.value.routeConfig;return e&&e.path===""}function vh(t){let e=[],i=new Set;for(let n of t){if(!D_(n)){e.push(n);continue}let r=e.find(s=>n.value.routeConfig===s.value.routeConfig);r!==void 0?(r.children.push(...n.children),i.add(r)):e.push(n)}for(let n of i){let r=vh(n.children);e.push(new Ne(n.value,r))}return e.filter(n=>!i.has(n))}function zd(t){return t.data||{}}function Wd(t){return t.resolve||{}}function E_(t,e,i,n,r,s){return we(o=>y_(t,e,i,n,o.extractedUrl,r,s).pipe(S(({state:a,tree:c})=>k(m({},o),{targetSnapshot:a,urlAfterRedirects:c}))))}function T_(t,e){return we(i=>{let{targetSnapshot:n,guards:{canActivateChecks:r}}=i;if(!r.length)return b(i);let s=new Set(r.map(c=>c.route)),o=new Set;for(let c of s)if(!o.has(c))for(let l of yh(c))o.add(l);let a=0;return X(o).pipe(jt(c=>s.has(c)?C_(c,n,t,e):(c.data=As(c,c.parent,t).resolve,b(void 0))),V(()=>a++),Jo(1),we(c=>a===o.size?b(i):at))})}function yh(t){let e=t.children.map(i=>yh(i)).flat();return[t,...e]}function C_(t,e,i,n){let r=t.routeConfig,s=t._resolve;return r?.title!==void 0&&!hh(r)&&(s[cr]=r.title),I_(s,t,e,n).pipe(S(o=>(t._resolvedData=o,t.data=As(t,t.parent,i).resolve,null)))}function I_(t,e,i,n){let r=La(t);if(r.length===0)return b({});let s={};return X(r).pipe(we(o=>S_(t[o],e,i,n).pipe(Ht(),V(a=>{if(a instanceof rr)throw Rs(new Qn,a);s[o]=a}))),Jo(1),Ru(s),Ee(o=>mh(o)?at:dn(o)))}function S_(t,e,i,n){let r=ur(e)??n,s=ti(t,r),o=s.resolve?s.resolve(e,i):Be(r,()=>s(e,i));return Yt(o)}function xa(t){return oe(e=>{let i=t(e);return i?X(i).pipe(S(()=>e)):b(e)})}var bh=(()=>{let e=class e{buildTitle(n){let r,s=n.root;for(;s!==void 0;)r=this.getResolvedTitleForRoute(s)??r,s=s.children.find(o=>o.outlet===A);return r}getResolvedTitleForRoute(n){return n.data[cr]}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=w({token:e,factory:()=>d(A_),providedIn:"root"});let t=e;return t})(),A_=(()=>{let e=class e extends bh{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)(T(Ld))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),fr=new R("",{providedIn:"root",factory:()=>({})}),O_=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=Ye({type:e,selectors:[["ng-component"]],standalone:!0,features:[Xe],decls:1,vars:0,template:function(r,s){r&1&&ht(0,"router-outlet")},dependencies:[Fm],encapsulation:2});let t=e;return t})();function uc(t){let e=t.children&&t.children.map(uc),i=e?k(m({},t),{children:e}):m({},t);return!i.component&&!i.loadComponent&&(e||i.loadChildren)&&i.outlet&&i.outlet!==A&&(i.component=O_),i}var ar=new R(""),dc=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=d(ns)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return b(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let r=Yt(n.loadComponent()).pipe(S(wh),V(o=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=o}),$t(()=>{this.componentLoaders.delete(n)})),s=new $o(r,()=>new L).pipe(jo());return this.componentLoaders.set(n,s),s}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return b({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let o=R_(r,this.compiler,n,this.onLoadEndListener).pipe($t(()=>{this.childrenLoaders.delete(r)})),a=new $o(o,()=>new L).pipe(jo());return this.childrenLoaders.set(r,a),a}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function R_(t,e,i,n){return Yt(t.loadChildren()).pipe(S(wh),we(r=>r instanceof ed||Array.isArray(r)?b(r):X(e.compileModuleAsync(r))),S(r=>{n&&n(t);let s,o,a=!1;return Array.isArray(r)?(o=r,a=!0):(s=r.create(i).injector,o=s.get(ar,[],{optional:!0,self:!0}).flat()),{routes:o.map(uc),injector:s}}))}function P_(t){return t&&typeof t=="object"&&"default"in t}function wh(t){return P_(t)?t.default:t}var hc=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=w({token:e,factory:()=>d(M_),providedIn:"root"});let t=e;return t})(),M_=(()=>{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=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Dh=new R(""),Eh=new R("");function N_(t,e,i){let n=t.get(Eh),r=t.get(H);return t.get($).runOutsideAngular(()=>{if(!r.startViewTransition||n.skipNextTransition)return n.skipNextTransition=!1,new Promise(l=>setTimeout(l));let s,o=new Promise(l=>{s=l}),a=r.startViewTransition(()=>(s(),k_(t))),{onViewTransitionCreated:c}=n;return c&&Be(t,()=>c({transition:a,from:e,to:i})),o})}function k_(t){return new Promise(e=>{Zu({read:()=>setTimeout(e)},{injector:t})})}var x_=new R(""),fc=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new L,this.transitionAbortSubject=new L,this.configLoader=d(dc),this.environmentInjector=d(ut),this.urlSerializer=d(lr),this.rootContexts=d(dr),this.location=d(Vi),this.inputBindingEnabled=d(Ns,{optional:!0})!==null,this.titleStrategy=d(bh),this.options=d(fr,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=d(hc),this.createViewTransition=d(Dh,{optional:!0}),this.navigationErrorHandler=d(x_,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>b(void 0),this.rootComponentType=null;let n=s=>this.events.next(new za(s)),r=s=>this.events.next(new Wa(s));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let r=++this.navigationId;this.transitions?.next(k(m(m({},this.transitions.value),n),{id:r}))}setupNavigations(n,r,s){return this.transitions=new _e({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:Zi,restoredState:null,currentSnapshot:s.snapshot,targetSnapshot:null,currentRouterState:s,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(ve(o=>o.id!==0),S(o=>k(m({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),oe(o=>{let a=!1,c=!1;return b(o).pipe(oe(l=>{if(this.navigationId>o.id)return this.cancelNavigationTransition(o,"",ke.SupersededByNewNavigation),at;this.currentTransition=o,this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,targetBrowserUrl:typeof l.extras.browserUrl=="string"?this.urlSerializer.parse(l.extras.browserUrl):l.extras.browserUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?k(m({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let u=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),f=l.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!u&&f!=="reload"){let h="";return this.events.next(new Kt(l.id,this.urlSerializer.serialize(l.rawUrl),h,Es.IgnoredSameUrlNavigation)),l.resolve(!1),at}if(this.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return b(l).pipe(oe(h=>{let g=this.transitions?.getValue();return this.events.next(new Zn(h.id,this.urlSerializer.serialize(h.extractedUrl),h.source,h.restoredState)),g!==this.transitions?.getValue()?at:Promise.resolve(h)}),E_(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),V(h=>{o.targetSnapshot=h.targetSnapshot,o.urlAfterRedirects=h.urlAfterRedirects,this.currentNavigation=k(m({},this.currentNavigation),{finalUrl:h.urlAfterRedirects});let g=new Ts(h.id,this.urlSerializer.serialize(h.extractedUrl),this.urlSerializer.serialize(h.urlAfterRedirects),h.targetSnapshot);this.events.next(g)}));if(u&&this.urlHandlingStrategy.shouldProcessUrl(l.currentRawUrl)){let{id:h,extractedUrl:g,source:v,restoredState:E,extras:_}=l,y=new Zn(h,this.urlSerializer.serialize(g),v,E);this.events.next(y);let P=uh(this.rootComponentType).snapshot;return this.currentTransition=o=k(m({},l),{targetSnapshot:P,urlAfterRedirects:g,extras:k(m({},_),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=g,b(o)}else{let h="";return this.events.next(new Kt(l.id,this.urlSerializer.serialize(l.extractedUrl),h,Es.IgnoredByUrlHandlingStrategy)),l.resolve(!1),at}}),V(l=>{let u=new ja(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(u)}),S(l=>(this.currentTransition=o=k(m({},l),{guards:$m(l.targetSnapshot,l.currentSnapshot,this.rootContexts)}),o)),Xm(this.environmentInjector,l=>this.events.next(l)),V(l=>{if(o.guardsResult=l.guardsResult,l.guardsResult&&typeof l.guardsResult!="boolean")throw Rs(this.urlSerializer,l.guardsResult);let u=new $a(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.events.next(u)}),ve(l=>l.guardsResult?!0:(this.cancelNavigationTransition(l,"",ke.GuardRejected),!1)),xa(l=>{if(l.guards.canActivateChecks.length)return b(l).pipe(V(u=>{let f=new Ha(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(f)}),oe(u=>{let f=!1;return b(u).pipe(T_(this.paramsInheritanceStrategy,this.environmentInjector),V({next:()=>f=!0,complete:()=>{f||this.cancelNavigationTransition(u,"",ke.NoDataFromResolver)}}))}),V(u=>{let f=new Ga(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(f)}))}),xa(l=>{let u=f=>{let h=[];f.routeConfig?.loadComponent&&!f.routeConfig._loadedComponent&&h.push(this.configLoader.loadComponent(f.routeConfig).pipe(V(g=>{f.component=g}),S(()=>{})));for(let g of f.children)h.push(...u(g));return h};return Ii(u(l.targetSnapshot.root)).pipe(qo(null),Te(1))}),xa(()=>this.afterPreactivation()),oe(()=>{let{currentSnapshot:l,targetSnapshot:u}=o,f=this.createViewTransition?.(this.environmentInjector,l.root,u.root);return f?X(f).pipe(S(()=>o)):b(o)}),S(l=>{let u=Lm(n.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=o=k(m({},l),{targetRouterState:u}),this.currentNavigation.targetRouterState=u,o}),V(()=>{this.events.next(new nr)}),jm(this.rootContexts,n.routeReuseStrategy,l=>this.events.next(l),this.inputBindingEnabled),Te(1),V({next:l=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new nt(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),this.titleStrategy?.updateTitle(l.targetRouterState.snapshot),l.resolve(!0)},complete:()=>{a=!0}}),K(this.transitionAbortSubject.pipe(V(l=>{throw l}))),$t(()=>{!a&&!c&&this.cancelNavigationTransition(o,"",ke.SupersededByNewNavigation),this.currentTransition?.id===o.id&&(this.currentNavigation=null,this.currentTransition=null)}),Ee(l=>{if(c=!0,gh(l))this.events.next(new Ot(o.id,this.urlSerializer.serialize(o.extractedUrl),l.message,l.cancellationCode)),Um(l)?this.events.next(new Xn(l.url,l.navigationBehaviorOptions)):o.resolve(!1);else{let u=new tr(o.id,this.urlSerializer.serialize(o.extractedUrl),l,o.targetSnapshot??void 0);try{let f=Be(this.environmentInjector,()=>this.navigationErrorHandler?.(u));if(f instanceof rr){let{message:h,cancellationCode:g}=Rs(this.urlSerializer,f);this.events.next(new Ot(o.id,this.urlSerializer.serialize(o.extractedUrl),h,g)),this.events.next(new Xn(f.redirectTo,f.navigationBehaviorOptions))}else{this.events.next(u);let h=n.errorHandler(l);o.resolve(!!h)}}catch(f){this.options.resolveNavigationPromiseOnError?o.resolve(!1):o.reject(f)}}return at}))}))}cancelNavigationTransition(n,r,s){let o=new Ot(n.id,this.urlSerializer.serialize(n.extractedUrl),r,s);this.events.next(o),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=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function F_(t){return t!==Zi}var L_=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=w({token:e,factory:()=>d(B_),providedIn:"root"});let t=e;return t})(),ac=class{shouldDetach(e){return!1}store(e,i){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,i){return e.routeConfig===i.routeConfig}},B_=(()=>{let e=class e extends ac{};e.\u0275fac=(()=>{let n;return function(s){return(n||(n=Gt(e)))(s||e)}})(),e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Th=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=w({token:e,factory:()=>d(V_),providedIn:"root"});let t=e;return t})(),V_=(()=>{let e=class e extends Th{constructor(){super(...arguments),this.location=d(Vi),this.urlSerializer=d(lr),this.options=d(fr,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=d(hc),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Rt,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=uh(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 Zn)this.stateMemento=this.createStateMemento();else if(n instanceof Kt)this.rawUrlTree=r.initialUrl;else if(n instanceof Ts){if(this.urlUpdateStrategy==="eager"&&!r.extras.skipLocationChange){let s=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(r.targetBrowserUrl??s,r)}}else n instanceof nr?(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 Ot&&(n.code===ke.GuardRejected||n.code===ke.NoDataFromResolver)?this.restoreHistory(r):n instanceof tr?this.restoreHistory(r,!0):n instanceof nt&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,r){let s=n instanceof Rt?this.urlSerializer.serialize(n):n;if(this.location.isCurrentPathEqualTo(s)||r.extras.replaceUrl){let o=this.browserPageId,a=m(m({},r.extras.state),this.generateNgRouterState(r.id,o));this.location.replaceState(s,"",a)}else{let o=m(m({},r.extras.state),this.generateNgRouterState(r.id,this.browserPageId+1));this.location.go(s,"",o)}}restoreHistory(n,r=!1){if(this.canceledNavigationResolution==="computed"){let s=this.browserPageId,o=this.currentPageId-s;o!==0?this.location.historyGo(o):this.currentUrlTree===n.finalUrl&&o===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(s){return(n||(n=Gt(e)))(s||e)}})(),e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Yi=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(Yi||{});function Ch(t,e){t.events.pipe(ve(i=>i instanceof nt||i instanceof Ot||i instanceof tr||i instanceof Kt),S(i=>i instanceof nt||i instanceof Kt?Yi.COMPLETE:(i instanceof Ot?i.code===ke.Redirect||i.code===ke.SupersededByNewNavigation:!1)?Yi.REDIRECTING:Yi.FAILED),ve(i=>i!==Yi.REDIRECTING),Te(1)).subscribe(()=>{e()})}function U_(t){throw t}var j_={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},$_={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Ge=(()=>{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=d(Xr),this.stateManager=d(Th),this.options=d(fr,{optional:!0})||{},this.pendingTasks=d(Ri),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=d(fc),this.urlSerializer=d(lr),this.location=d(Vi),this.urlHandlingStrategy=d(hc),this._events=new L,this.errorHandler=this.options.errorHandler||U_,this.navigated=!1,this.routeReuseStrategy=d(L_),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=d(ar,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!d(Ns,{optional:!0}),this.eventsSubscription=new yu,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 s=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(s!==null&&o!==null){if(this.stateManager.handleRouterEvent(r,o),r instanceof Ot&&r.code!==ke.Redirect&&r.code!==ke.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof nt)this.navigated=!0;else if(r instanceof Xn){let a=r.navigationBehaviorOptions,c=this.urlHandlingStrategy.merge(r.url,s.currentRawUrl),l=m({browserUrl:s.extras.browserUrl,info:s.extras.info,skipLocationChange:s.extras.skipLocationChange,replaceUrl:s.extras.replaceUrl||this.urlUpdateStrategy==="eager"||F_(s.source)},a);this.scheduleNavigation(c,Zi,null,l,{resolve:s.resolve,reject:s.reject,promise:s.promise})}}G_(r)&&this._events.next(r)}catch(s){this.navigationTransitions.transitionAbortSubject.next(s)}});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),Zi,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,r)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",r)},0)})}navigateToSyncWithBrowser(n,r,s){let o={replaceUrl:!0},a=s?.navigationId?s:null;if(s){let l=m({},s);delete l.navigationId,delete l.\u0275routerPageId,Object.keys(l).length!==0&&(o.state=l)}let c=this.parseUrl(n);this.scheduleNavigation(c,r,a,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(uc),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:s,queryParams:o,fragment:a,queryParamsHandling:c,preserveFragment:l}=r,u=l?this.currentUrlTree.fragment:a,f=null;switch(c){case"merge":f=m(m({},this.currentUrlTree.queryParams),o);break;case"preserve":f=this.currentUrlTree.queryParams;break;default:f=o||null}f!==null&&(f=this.removeEmptyProps(f));let h;try{let g=s?s.snapshot:this.routerState.snapshot.root;h=oh(g)}catch{(typeof n[0]!="string"||n[0][0]!=="/")&&(n=[]),h=this.currentUrlTree.root}return ah(h,n,f,u??null)}navigateByUrl(n,r={skipLocationChange:!1}){let s=gn(n)?n:this.parseUrl(n),o=this.urlHandlingStrategy.merge(s,this.rawUrlTree);return this.scheduleNavigation(o,Zi,null,r)}navigate(n,r={skipLocationChange:!1}){return H_(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 s;if(r===!0?s=m({},j_):r===!1?s=m({},$_):s=r,gn(n))return Vd(this.currentUrlTree,n,s);let o=this.parseUrl(n);return Vd(this.currentUrlTree,o,s)}removeEmptyProps(n){return Object.entries(n).reduce((r,[s,o])=>(o!=null&&(r[s]=o),r),{})}scheduleNavigation(n,r,s,o,a){if(this.disposed)return Promise.resolve(!1);let c,l,u;a?(c=a.resolve,l=a.reject,u=a.promise):u=new Promise((h,g)=>{c=h,l=g});let f=this.pendingTasks.add();return Ch(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(f))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:s,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:o,resolve:c,reject:l,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=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function H_(t){for(let e=0;e<t.length;e++)if(t[e]==null)throw new j(4008,!1)}function G_(t){return!(t instanceof nr)&&!(t instanceof Xn)}var qd=(()=>{let e=class e{constructor(n,r,s,o,a,c){this.router=n,this.route=r,this.tabIndexAttribute=s,this.renderer=o,this.el=a,this.locationStrategy=c,this.href=null,this.onChanges=new L,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1,this.routerLinkInput=null;let l=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=l==="a"||l==="area",this.isAnchorElement?this.subscription=n.events.subscribe(u=>{u instanceof nt&&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)):(gn(n)?this.routerLinkInput=n:this.routerLinkInput=Array.isArray(n)?n:[n],this.setTabIndexIfNotOnNativeEl("0"))}onClick(n,r,s,o,a){let c=this.urlTree;if(c===null||this.isAnchorElement&&(n!==0||r||s||o||a||typeof this.target=="string"&&this.target!="_self"))return!0;let l={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(c,l),!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:Ju(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",r)}applyAttributeValue(n,r){let s=this.renderer,o=this.el.nativeElement;r!==null?s.setAttribute(o,n,r):s.removeAttribute(o,n)}get urlTree(){return this.routerLinkInput===null?null:gn(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)(I(Ge),I(yt),Zo("tabindex"),I(jn),I(ae),I(Bi))},e.\u0275dir=x({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(r,s){r&1&&ie("click",function(a){return s.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),r&2&&Ce("target",s.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",Hn],skipLocationChange:[2,"skipLocationChange","skipLocationChange",Hn],replaceUrl:[2,"replaceUrl","replaceUrl",Hn],routerLink:"routerLink"},standalone:!0,features:[Xu,Pe]});let t=e;return t})(),WE=(()=>{let e=class e{get isActive(){return this._isActive}constructor(n,r,s,o,a){this.router=n,this.element=r,this.renderer=s,this.cdr=o,this.link=a,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new F,this.routerEventsSubscription=n.events.subscribe(c=>{c instanceof nt&&this.update()})}ngAfterContentInit(){b(this.links.changes,b(null)).pipe(Si()).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=X(n).pipe(Si()).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(s=>!!s)}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=z_(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return s=>{let o=s.urlTree;return o?n.isActive(o,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)(I(Ge),I(ae),I(jn),I(je),I(qd,8))},e.\u0275dir=x({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(r,s,o){if(r&1&&St(o,qd,5),r&2){let a;pt(a=gt())&&(s.links=a)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[Pe]});let t=e;return t})();function z_(t){return!!t.paths}var Ms=class{};var W_=(()=>{let e=class e{constructor(n,r,s,o,a){this.router=n,this.injector=s,this.preloadingStrategy=o,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(ve(n=>n instanceof nt),jt(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,r){let s=[];for(let o of r){o.providers&&!o._injector&&(o._injector=ra(o.providers,n,`Route: ${o.path}`));let a=o._injector??n,c=o._loadedInjector??a;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&s.push(this.preloadConfig(a,o)),(o.children||o._loadedRoutes)&&s.push(this.processRoutes(c,o.children??o._loadedRoutes))}return X(s).pipe(Si())}preloadConfig(n,r){return this.preloadingStrategy.preload(r,()=>{let s;r.loadChildren&&r.canLoad===void 0?s=this.loader.loadChildren(n,r):s=b(null);let o=s.pipe(we(a=>a===null?b(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 X([o,a]).pipe(Si())}else return o})}};e.\u0275fac=function(r){return new(r||e)(T(Ge),T(ns),T(ut),T(Ms),T(dc))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Ih=new R(""),q_=(()=>{let e=class e{constructor(n,r,s,o,a={}){this.urlSerializer=n,this.transitions=r,this.viewportScroller=s,this.zone=o,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 Zn?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof nt?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof Kt&&n.code===Es.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 Cs&&(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 Cs(n,this.lastSource==="popstate"?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}};e.\u0275fac=function(r){Ku()},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})();function qE(t,...e){return Qe([{provide:ar,multi:!0,useValue:t},[],{provide:yt,useFactory:Sh,deps:[Ge]},{provide:ts,multi:!0,useFactory:Ah},e.map(i=>i.\u0275providers)])}function Sh(t){return t.routerState.root}function pr(t,e){return{\u0275kind:t,\u0275providers:e}}function Ah(){let t=d(ne);return e=>{let i=t.get(et);if(e!==i.components[0])return;let n=t.get(Ge),r=t.get(Oh);t.get(pc)===1&&n.initialNavigation(),t.get(Rh,null,Yo.Optional)?.setUpPreloading(),t.get(Ih,null,Yo.Optional)?.init(),n.resetRootComponentType(i.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}var Oh=new R("",{factory:()=>new L}),pc=new R("",{providedIn:"root",factory:()=>1});function J_(){return pr(2,[{provide:pc,useValue:0},{provide:fa,multi:!0,deps:[ne],useFactory:e=>{let i=e.get(dd,Promise.resolve());return()=>i.then(()=>new Promise(n=>{let r=e.get(Ge),s=e.get(Oh);Ch(r,()=>{n(!0)}),e.get(fc).afterPreactivation=()=>(n(!0),s.closed?b(void 0):s),r.initialNavigation()}))}}])}function K_(){return pr(3,[{provide:fa,multi:!0,useFactory:()=>{let e=d(Ge);return()=>{e.setUpLocationChangeListener()}}},{provide:pc,useValue:2}])}var Rh=new R("");function Y_(t){return pr(0,[{provide:Rh,useExisting:W_},{provide:Ms,useExisting:t}])}function Q_(){return pr(8,[Hd,{provide:Ns,useExisting:Hd}])}function Z_(t){let e=[{provide:Dh,useValue:N_},{provide:Eh,useValue:m({skipNextTransition:!!t?.skipInitialTransition},t)}];return pr(9,e)}var Jd=new R("ROUTER_FORROOT_GUARD"),X_=[Vi,{provide:lr,useClass:Qn},Ge,dr,{provide:yt,useFactory:Sh,deps:[Ge]},dc,[]],JE=(()=>{let e=class e{constructor(n){}static forRoot(n,r){return{ngModule:e,providers:[X_,[],{provide:ar,multi:!0,useValue:n},{provide:Jd,useFactory:i0,deps:[[Ge,new lt,new Lu]]},{provide:fr,useValue:r||{}},r?.useHash?t0():n0(),e0(),r?.preloadingStrategy?Y_(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?r0(r):[],r?.bindToComponentInputs?Q_().\u0275providers:[],r?.enableViewTransitions?Z_().\u0275providers:[],s0()]}}static forChild(n){return{ngModule:e,providers:[{provide:ar,multi:!0,useValue:n}]}}};e.\u0275fac=function(r){return new(r||e)(T(Jd,8))},e.\u0275mod=Le({type:e}),e.\u0275inj=Fe({});let t=e;return t})();function e0(){return{provide:Ih,useFactory:()=>{let t=d(gd),e=d($),i=d(fr),n=d(fc),r=d(lr);return i.scrollOffset&&t.setOffset(i.scrollOffset),new q_(r,n,t,e,i)}}}function t0(){return{provide:Bi,useClass:fd}}function n0(){return{provide:Bi,useClass:hd}}function i0(t){return"guarded"}function r0(t){return[t.initialNavigation==="disabled"?K_().\u0275providers:[],t.initialNavigation==="enabledBlocking"?J_().\u0275providers:[]]}var Kd=new R("");function s0(){return[{provide:Kd,useFactory:Ah},{provide:ts,multi:!0,useExisting:Kd}]}var QE={production:!0,firebaseConfig:{apiKey:"AIzaSyDnnitFXpM8TglWKNpzu4ChgF98n25Rgvw",authDomain:"auth.dealpos.com",projectId:"devops-signin",storageBucket:"devops-signin.appspot.com",messagingSenderId:"412465165194",appId:"1:412465165194:web:03d806f6b6ab6f8b460e73",measurementId:"G-MNDBRJ5XZD"},version:"1.6.6"};var Ph=["toast-component",""];function o0(t,e){if(t&1){let i=Fi();he(0,"button",5),ie("click",function(){Ln(i);let r=Q();return Bn(r.remove())}),he(1,"span",6),Me(2,"\xD7"),Ie()()}}function a0(t,e){if(t&1&&(ki(0),Me(1),xi()),t&2){let i=Q(2);z(),zt("[",i.duplicatesCount+1,"]")}}function c0(t,e){if(t&1&&(he(0,"div"),Me(1),Ze(2,a0,2,1,"ng-container",4),Ie()),t&2){let i=Q();ye(i.options.titleClass),Ce("aria-label",i.title),z(),zt(" ",i.title," "),z(),ee("ngIf",i.duplicatesCount)}}function l0(t,e){if(t&1&&ht(0,"div",7),t&2){let i=Q();ye(i.options.messageClass),ee("innerHTML",i.message,na)}}function u0(t,e){if(t&1&&(he(0,"div",8),Me(1),Ie()),t&2){let i=Q();ye(i.options.messageClass),Ce("aria-label",i.message),z(),zt(" ",i.message," ")}}function d0(t,e){if(t&1&&(he(0,"div"),ht(1,"div",9),Ie()),t&2){let i=Q();z(),$n("width",i.width()+"%")}}function h0(t,e){if(t&1){let i=Fi();he(0,"button",5),ie("click",function(){Ln(i);let r=Q();return Bn(r.remove())}),he(1,"span",6),Me(2,"\xD7"),Ie()()}}function f0(t,e){if(t&1&&(ki(0),Me(1),xi()),t&2){let i=Q(2);z(),zt("[",i.duplicatesCount+1,"]")}}function p0(t,e){if(t&1&&(he(0,"div"),Me(1),Ze(2,f0,2,1,"ng-container",4),Ie()),t&2){let i=Q();ye(i.options.titleClass),Ce("aria-label",i.title),z(),zt(" ",i.title," "),z(),ee("ngIf",i.duplicatesCount)}}function g0(t,e){if(t&1&&ht(0,"div",7),t&2){let i=Q();ye(i.options.messageClass),ee("innerHTML",i.message,na)}}function m0(t,e){if(t&1&&(he(0,"div",8),Me(1),Ie()),t&2){let i=Q();ye(i.options.messageClass),Ce("aria-label",i.message),z(),zt(" ",i.message," ")}}function _0(t,e){if(t&1&&(he(0,"div"),ht(1,"div",9),Ie()),t&2){let i=Q();z(),$n("width",i.width()+"%")}}var gc=class{_attachedHost;component;viewContainerRef;injector;constructor(e,i){this.component=e,this.injector=i}attach(e,i){return this._attachedHost=e,e.attach(this,i)}detach(){let e=this._attachedHost;if(e)return this._attachedHost=void 0,e.detach()}get isAttached(){return this._attachedHost!=null}setAttachedHost(e){this._attachedHost=e}},mc=class{_attachedPortal;_disposeFn;attach(e,i){return this._attachedPortal=e,this.attachComponentPortal(e,i)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(e){this._disposeFn=e}},_c=class{_overlayRef;componentInstance;duplicatesCount=0;_afterClosed=new L;_activate=new L;_manualClose=new L;_resetTimeout=new L;_countDuplicate=new L;constructor(e){this._overlayRef=e}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate(e,i){e&&this._resetTimeout.next(),i&&this._countDuplicate.next(++this.duplicatesCount)}},ni=class{toastId;config;message;title;toastType;toastRef;_onTap=new L;_onAction=new L;constructor(e,i,n,r,s,o){this.toastId=e,this.config=i,this.message=n,this.title=r,this.toastType=s,this.toastRef=o,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(e){this._onAction.next(e)}onAction(){return this._onAction.asObservable()}},Mh={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,includeTitleDuplicates:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing"},Nh=new R("ToastConfig"),vc=class extends mc{_hostDomElement;_componentFactoryResolver;_appRef;constructor(e,i,n){super(),this._hostDomElement=e,this._componentFactoryResolver=i,this._appRef=n}attachComponentPortal(e,i){let n=this._componentFactoryResolver.resolveComponentFactory(e.component),r;return r=n.create(e.injector),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.detachView(r.hostView),r.destroy()}),i?this._hostDomElement.insertBefore(this._getComponentRootNode(r),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(r)),r}_getComponentRootNode(e){return e.hostView.rootNodes[0]}},v0=(()=>{class t{_document=d(H);_containerElement;ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let i=this._document.createElement("div");i.classList.add("overlay-container"),i.setAttribute("aria-live","polite"),this._document.body.appendChild(i),this._containerElement=i}static \u0275fac=function(n){return new(n||t)};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),yc=class{_portalHost;constructor(e){this._portalHost=e}attach(e,i=!0){return this._portalHost.attach(e,i)}detach(){return this._portalHost.detach()}},y0=(()=>{class t{_overlayContainer=d(v0);_componentFactoryResolver=d(Yu);_appRef=d(et);_document=d(H);_paneElements=new Map;create(i,n){return this._createOverlayRef(this.getPaneElement(i,n))}getPaneElement(i="",n){return this._paneElements.get(n)||this._paneElements.set(n,{}),this._paneElements.get(n)[i]||(this._paneElements.get(n)[i]=this._createPaneElement(i,n)),this._paneElements.get(n)[i]}_createPaneElement(i,n){let r=this._document.createElement("div");return r.id="toast-container",r.classList.add(i),r.classList.add("toast-container"),n?n.getContainerElement().appendChild(r):this._overlayContainer.getContainerElement().appendChild(r),r}_createPortalHost(i){return new vc(i,this._componentFactoryResolver,this._appRef)}_createOverlayRef(i){return new yc(this._createPortalHost(i))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),xs=(()=>{class t{overlay;_injector;sanitizer;ngZone;toastrConfig;currentlyActive=0;toasts=[];overlayContainer;previousToastMessage;index=0;constructor(i,n,r,s,o){this.overlay=n,this._injector=r,this.sanitizer=s,this.ngZone=o,this.toastrConfig=m(m({},i.default),i.config),i.config.iconClasses&&(this.toastrConfig.iconClasses=m(m({},i.default.iconClasses),i.config.iconClasses))}show(i,n,r={},s=""){return this._preBuildNotification(s,i,n,this.applyConfig(r))}success(i,n,r={}){let s=this.toastrConfig.iconClasses.success||"";return this._preBuildNotification(s,i,n,this.applyConfig(r))}error(i,n,r={}){let s=this.toastrConfig.iconClasses.error||"";return this._preBuildNotification(s,i,n,this.applyConfig(r))}info(i,n,r={}){let s=this.toastrConfig.iconClasses.info||"";return this._preBuildNotification(s,i,n,this.applyConfig(r))}warning(i,n,r={}){let s=this.toastrConfig.iconClasses.warning||"";return this._preBuildNotification(s,i,n,this.applyConfig(r))}clear(i){for(let n of this.toasts)if(i!==void 0){if(n.toastId===i){n.toastRef.manualClose();return}}else n.toastRef.manualClose()}remove(i){let n=this._findToast(i);if(!n||(n.activeToast.toastRef.close(),this.toasts.splice(n.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length))return!1;if(this.currentlyActive<this.toastrConfig.maxOpened&&this.toasts[this.currentlyActive]){let r=this.toasts[this.currentlyActive].toastRef;r.isInactive()||(this.currentlyActive=this.currentlyActive+1,r.activate())}return!0}findDuplicate(i="",n="",r,s){let{includeTitleDuplicates:o}=this.toastrConfig;for(let a of this.toasts){let c=o&&a.title===i;if((!o||c)&&a.message===n)return a.toastRef.onDuplicate(r,s),a}return null}applyConfig(i={}){return m(m({},this.toastrConfig),i)}_findToast(i){for(let n=0;n<this.toasts.length;n++)if(this.toasts[n].toastId===i)return{index:n,activeToast:this.toasts[n]};return null}_preBuildNotification(i,n,r,s){return s.onActivateTick?this.ngZone.run(()=>this._buildNotification(i,n,r,s)):this._buildNotification(i,n,r,s)}_buildNotification(i,n,r,s){if(!s.toastComponent)throw new Error("toastComponent required");let o=this.findDuplicate(r,n,this.toastrConfig.resetTimeoutOnDuplicate&&s.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&r||n)&&this.toastrConfig.preventDuplicates&&o!==null)return o;this.previousToastMessage=n;let a=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(a=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));let c=this.overlay.create(s.positionClass,this.overlayContainer);this.index=this.index+1;let l=n;n&&s.enableHtml&&(l=this.sanitizer.sanitize(It.HTML,n));let u=new _c(c),f=new ni(this.index,s,l,r,i,u),h=[{provide:ni,useValue:f}],g=ne.create({providers:h,parent:this._injector}),v=new gc(s.toastComponent,g),E=c.attach(v,s.newestOnTop);u.componentInstance=E.instance;let _={toastId:this.index,title:r||"",message:n||"",toastRef:u,onShown:u.afterActivate(),onHidden:u.afterClosed(),onTap:f.onTap(),onAction:f.onAction(),portal:E};return a||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{_.toastRef.activate()})),this.toasts.push(_),_}static \u0275fac=function(n){return new(n||t)(T(Nh),T(y0),T(ne),T(Pa),T($))};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),b0=(()=>{class t{toastrService;toastPackage;ngZone;message;title;options;duplicatesCount;originalTimeout;width=Ve(-1);toastClasses="";state;get _state(){return this.state()}get displayStyle(){if(this.state().value==="inactive")return"none"}timeout;intervalId;hideTime;sub;sub1;sub2;sub3;constructor(i,n,r){this.toastrService=i,this.toastPackage=n,this.ngZone=r,this.message=n.message,this.title=n.title,this.options=n.config,this.originalTimeout=n.config.timeOut,this.toastClasses=`${n.toastType} ${n.config.toastClass}`,this.sub=n.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=n.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=n.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=n.toastRef.countDuplicate().subscribe(s=>{this.duplicatesCount=s}),this.state=Ve({value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}})}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state.update(i=>k(m({},i),{value:"active"})),!(this.options.disableTimeOut===!0||this.options.disableTimeOut==="timeOut")&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=new Date().getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(this.width()===0||this.width()===100||!this.options.timeOut)return;let i=new Date().getTime(),n=this.hideTime-i;this.width.set(n/this.options.timeOut*100),this.options.progressAnimation==="increasing"&&this.width.update(r=>100-r),this.width()<=0&&this.width.set(0),this.width()>=100&&this.width.set(100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state.update(i=>k(m({},i),{value:"active"})),this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=new Date().getTime()+(this.options.timeOut||0),this.width.set(-1),this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){this.state().value!=="removed"&&(clearTimeout(this.timeout),this.state.update(i=>k(m({},i),{value:"removed"})),this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){this.state().value!=="removed"&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){this.state().value!=="removed"&&this.options.disableTimeOut!=="extendedTimeOut"&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width.set(0))}delayedHideToast(){this.options.disableTimeOut===!0||this.options.disableTimeOut==="extendedTimeOut"||this.options.extendedTimeOut===0||this.state().value==="removed"||(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=new Date().getTime()+(this.options.timeOut||0),this.width.set(-1),this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(i,n){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(i),n)):this.timeout=setTimeout(()=>i(),n)}outsideInterval(i,n){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(i),n)):this.intervalId=setInterval(()=>i(),n)}runInsideAngular(i){this.ngZone?this.ngZone.run(()=>i()):i()}static \u0275fac=function(n){return new(n||t)(I(xs),I(ni),I($))};static \u0275cmp=Ye({type:t,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(n,r){n&1&&ie("click",function(){return r.tapToast()})("mouseenter",function(){return r.stickAround()})("mouseleave",function(){return r.delayedHideToast()}),n&2&&(td("@flyInOut",r._state),ye(r.toastClasses),$n("display",r.displayStyle))},standalone:!0,features:[Xe],attrs:Ph,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(n,r){n&1&&Ze(0,o0,3,0,"button",0)(1,c0,3,5,"div",1)(2,l0,1,3,"div",2)(3,u0,2,4,"div",3)(4,d0,2,2,"div",4),n&2&&(ee("ngIf",r.options.closeButton),z(),ee("ngIf",r.title),z(),ee("ngIf",r.message&&r.options.enableHtml),z(),ee("ngIf",r.message&&!r.options.enableHtml),z(),ee("ngIf",r.options.progressBar))},dependencies:[pa],encapsulation:2,data:{animation:[md("flyInOut",[cs("inactive",as({opacity:0})),cs("active",as({opacity:1})),cs("removed",as({opacity:0})),_a("inactive => active",ma("{{ easeTime }}ms {{ easing }}")),_a("active => removed",ma("{{ easeTime }}ms {{ easing }}"))])]},changeDetection:0})}return t})(),w0=k(m({},Mh),{toastComponent:b0}),dT=(t={})=>Qe([{provide:Nh,useValue:{default:w0,config:t}}]);var D0=(()=>{class t{toastrService;toastPackage;appRef;message;title;options;duplicatesCount;originalTimeout;width=Ve(-1);toastClasses="";get displayStyle(){return this.state()==="inactive"?"none":null}state=Ve("inactive");timeout;intervalId;hideTime;sub;sub1;sub2;sub3;constructor(i,n,r){this.toastrService=i,this.toastPackage=n,this.appRef=r,this.message=n.message,this.title=n.title,this.options=n.config,this.originalTimeout=n.config.timeOut,this.toastClasses=`${n.toastType} ${n.config.toastClass}`,this.sub=n.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=n.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=n.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=n.toastRef.countDuplicate().subscribe(s=>{this.duplicatesCount=s})}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state.set("active"),!(this.options.disableTimeOut===!0||this.options.disableTimeOut==="timeOut")&&this.options.timeOut&&(this.timeout=setTimeout(()=>{this.remove()},this.options.timeOut),this.hideTime=new Date().getTime()+this.options.timeOut,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))),this.options.onActivateTick&&this.appRef.tick()}updateProgress(){if(this.width()===0||this.width()===100||!this.options.timeOut)return;let i=new Date().getTime(),n=this.hideTime-i;this.width.set(n/this.options.timeOut*100),this.options.progressAnimation==="increasing"&&this.width.update(r=>100-r),this.width()<=0&&this.width.set(0),this.width()>=100&&this.width.set(100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state.set("active"),this.options.timeOut=this.originalTimeout,this.timeout=setTimeout(()=>this.remove(),this.originalTimeout),this.hideTime=new Date().getTime()+(this.originalTimeout||0),this.width.set(-1),this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))}remove(){this.state()!=="removed"&&(clearTimeout(this.timeout),this.state.set("removed"),this.timeout=setTimeout(()=>this.toastrService.remove(this.toastPackage.toastId)))}tapToast(){this.state()!=="removed"&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){this.state()!=="removed"&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width.set(0))}delayedHideToast(){this.options.disableTimeOut===!0||this.options.disableTimeOut==="extendedTimeOut"||this.options.extendedTimeOut===0||this.state()==="removed"||(this.timeout=setTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=new Date().getTime()+(this.options.timeOut||0),this.width.set(-1),this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10)))}static \u0275fac=function(n){return new(n||t)(I(xs),I(ni),I(et))};static \u0275cmp=Ye({type:t,selectors:[["","toast-component",""]],hostVars:4,hostBindings:function(n,r){n&1&&ie("click",function(){return r.tapToast()})("mouseenter",function(){return r.stickAround()})("mouseleave",function(){return r.delayedHideToast()}),n&2&&(ye(r.toastClasses),$n("display",r.displayStyle))},standalone:!0,features:[Xe],attrs:Ph,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(n,r){n&1&&Ze(0,h0,3,0,"button",0)(1,p0,3,5,"div",1)(2,g0,1,3,"div",2)(3,m0,2,4,"div",3)(4,_0,2,2,"div",4),n&2&&(ee("ngIf",r.options.closeButton),z(),ee("ngIf",r.title),z(),ee("ngIf",r.message&&r.options.enableHtml),z(),ee("ngIf",r.message&&!r.options.enableHtml),z(),ee("ngIf",r.options.progressBar))},dependencies:[pa],encapsulation:2,changeDetection:0})}return t})(),hT=k(m({},Mh),{toastComponent:D0});var Hh=(()=>{let e=class e{constructor(n,r){this._renderer=n,this._elementRef=r,this.onChange=s=>{},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)(I(jn),I(ae))},e.\u0275dir=x({type:e});let t=e;return t})(),Gh=(()=>{let e=class e extends Hh{};e.\u0275fac=(()=>{let n;return function(s){return(n||(n=Gt(e)))(s||e)}})(),e.\u0275dir=x({type:e,features:[Ue]});let t=e;return t})(),ai=new R(""),E0={provide:ai,useExisting:ct(()=>T0),multi:!0},T0=(()=>{let e=class e extends Gh{writeValue(n){this.setProperty("checked",n)}};e.\u0275fac=(()=>{let n;return function(s){return(n||(n=Gt(e)))(s||e)}})(),e.\u0275dir=x({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(r,s){r&1&&ie("change",function(a){return s.onChange(a.target.checked)})("blur",function(){return s.onTouched()})},features:[mt([E0]),Ue]});let t=e;return t})(),C0={provide:ai,useExisting:ct(()=>zh),multi:!0};function I0(){let t=Gn()?Gn().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var S0=new R(""),zh=(()=>{let e=class e extends Hh{constructor(n,r,s){super(n,r),this._compositionMode=s,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!I0())}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)(I(jn),I(ae),I(S0,8))},e.\u0275dir=x({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,s){r&1&&ie("input",function(a){return s._handleInput(a.target.value)})("blur",function(){return s.onTouched()})("compositionstart",function(){return s._compositionStart()})("compositionend",function(a){return s._compositionEnd(a.target.value)})},features:[mt([C0]),Ue]});let t=e;return t})();function Qt(t){return t==null||(typeof t=="string"||Array.isArray(t))&&t.length===0}function Wh(t){return t!=null&&typeof t.length=="number"}var wr=new R(""),Gs=new R(""),A0=/^(?=.{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])?)*$/,kh=class{static min(e){return O0(e)}static max(e){return R0(e)}static required(e){return P0(e)}static requiredTrue(e){return M0(e)}static email(e){return N0(e)}static minLength(e){return k0(e)}static maxLength(e){return x0(e)}static pattern(e){return F0(e)}static nullValidator(e){return qh(e)}static compose(e){return Xh(e)}static composeAsync(e){return ef(e)}};function O0(t){return e=>{if(Qt(e.value)||Qt(t))return null;let i=parseFloat(e.value);return!isNaN(i)&&i<t?{min:{min:t,actual:e.value}}:null}}function R0(t){return e=>{if(Qt(e.value)||Qt(t))return null;let i=parseFloat(e.value);return!isNaN(i)&&i>t?{max:{max:t,actual:e.value}}:null}}function P0(t){return Qt(t.value)?{required:!0}:null}function M0(t){return t.value===!0?null:{required:!0}}function N0(t){return Qt(t.value)||A0.test(t.value)?null:{email:!0}}function k0(t){return e=>Qt(e.value)||!Wh(e.value)?null:e.value.length<t?{minlength:{requiredLength:t,actualLength:e.value.length}}:null}function x0(t){return e=>Wh(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}function F0(t){if(!t)return qh;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(Qt(n.value))return null;let r=n.value;return e.test(r)?null:{pattern:{requiredPattern:i,actualValue:r}}}}function qh(t){return null}function Jh(t){return t!=null}function Kh(t){return es(t)?X(t):t}function Yh(t){let e={};return t.forEach(i=>{e=i!=null?m(m({},e),i):e}),Object.keys(e).length===0?null:e}function Qh(t,e){return e.map(i=>i(t))}function L0(t){return!t.validate}function Zh(t){return t.map(e=>L0(e)?e:i=>e.validate(i))}function Xh(t){if(!t)return null;let e=t.filter(Jh);return e.length==0?null:function(i){return Yh(Qh(i,e))}}function Cc(t){return t!=null?Xh(Zh(t)):null}function ef(t){if(!t)return null;let e=t.filter(Jh);return e.length==0?null:function(i){let n=Qh(i,e).map(Kh);return Au(n).pipe(S(Yh))}}function Ic(t){return t!=null?ef(Zh(t)):null}function xh(t,e){return t===null?[e]:Array.isArray(t)?[...t,e]:[t,e]}function tf(t){return t._rawValidators}function nf(t){return t._rawAsyncValidators}function bc(t){return t?Array.isArray(t)?t:[t]:[]}function Ls(t,e){return Array.isArray(t)?t.includes(e):t===e}function Fh(t,e){let i=bc(e);return bc(t).forEach(r=>{Ls(i,r)||i.push(r)}),i}function Lh(t,e){return bc(e).filter(i=>!Ls(t,i))}var Bs=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=Cc(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=Ic(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}},Pt=class extends Bs{get formDirective(){return null}get path(){return null}},mn=class extends Bs{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},Vs=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}},B0={"[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"},RT=k(m({},B0),{"[class.ng-submitted]":"isSubmitted"}),PT=(()=>{let e=class e extends Vs{constructor(n){super(n)}};e.\u0275fac=function(r){return new(r||e)(I(mn,2))},e.\u0275dir=x({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,s){r&2&&Y("ng-untouched",s.isUntouched)("ng-touched",s.isTouched)("ng-pristine",s.isPristine)("ng-dirty",s.isDirty)("ng-valid",s.isValid)("ng-invalid",s.isInvalid)("ng-pending",s.isPending)},features:[Ue]});let t=e;return t})(),MT=(()=>{let e=class e extends Vs{constructor(n){super(n)}};e.\u0275fac=function(r){return new(r||e)(I(Pt,10))},e.\u0275dir=x({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,s){r&2&&Y("ng-untouched",s.isUntouched)("ng-touched",s.isTouched)("ng-pristine",s.isPristine)("ng-dirty",s.isDirty)("ng-valid",s.isValid)("ng-invalid",s.isInvalid)("ng-pending",s.isPending)("ng-submitted",s.isSubmitted)},features:[Ue]});let t=e;return t})();var gr="VALID",Fs="INVALID",ii="PENDING",mr="DISABLED",Zt=class{},Us=class extends Zt{constructor(e,i){super(),this.value=e,this.source=i}},vr=class extends Zt{constructor(e,i){super(),this.pristine=e,this.source=i}},yr=class extends Zt{constructor(e,i){super(),this.touched=e,this.source=i}},ri=class extends Zt{constructor(e,i){super(),this.status=e,this.source=i}},wc=class extends Zt{constructor(e){super(),this.source=e}},Dc=class extends Zt{constructor(e){super(),this.source=e}};function Sc(t){return(zs(t)?t.validators:t)||null}function V0(t){return Array.isArray(t)?Cc(t):t||null}function Ac(t,e){return(zs(e)?e.asyncValidators:t)||null}function U0(t){return Array.isArray(t)?Ic(t):t||null}function zs(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function rf(t,e,i){let n=t.controls;if(!(e?Object.keys(n):n).length)throw new j(1e3,"");if(!n[i])throw new j(1001,"")}function sf(t,e,i){t._forEachChild((n,r)=>{if(i[r]===void 0)throw new j(1002,"")})}var si=class{constructor(e,i){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=hn(()=>this.statusReactive()),this.statusReactive=Ve(void 0),this._pristine=hn(()=>this.pristineReactive()),this.pristineReactive=Ve(!0),this._touched=hn(()=>this.touchedReactive()),this.touchedReactive=Ve(!1),this._events=new L,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 $e(this.statusReactive)}set status(e){$e(()=>this.statusReactive.set(e))}get valid(){return this.status===gr}get invalid(){return this.status===Fs}get pending(){return this.status==ii}get disabled(){return this.status===mr}get enabled(){return this.status!==mr}get pristine(){return $e(this.pristineReactive)}set pristine(e){$e(()=>this.pristineReactive.set(e))}get dirty(){return!this.pristine}get touched(){return $e(this.touchedReactive)}set touched(e){$e(()=>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(Fh(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(Fh(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(Lh(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(Lh(e,this._rawAsyncValidators))}hasValidator(e){return Ls(this._rawValidators,e)}hasAsyncValidator(e){return Ls(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(k(m({},e),{sourceControl:n})),i&&e.emitEvent!==!1&&this._events.next(new yr(!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 yr(!1,n))}markAsDirty(e={}){let i=this.pristine===!0;this.pristine=!1;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsDirty(k(m({},e),{sourceControl:n})),i&&e.emitEvent!==!1&&this._events.next(new vr(!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 vr(!0,n))}markAsPending(e={}){this.status=ii;let i=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new ri(this.status,i)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending(k(m({},e),{sourceControl:i}))}disable(e={}){let i=this._parentMarkedDirty(e.onlySelf);this.status=mr,this.errors=null,this._forEachChild(r=>{r.disable(k(m({},e),{onlySelf:!0}))}),this._updateValue();let n=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Us(this.value,n)),this._events.next(new ri(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(k(m({},e),{skipPristineCheck:i}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(e={}){let i=this._parentMarkedDirty(e.onlySelf);this.status=gr,this._forEachChild(n=>{n.enable(k(m({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(k(m({},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===gr||this.status===ii)&&this._runAsyncValidator(n,e.emitEvent)}let i=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Us(this.value,i)),this._events.next(new ri(this.status,i)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(k(m({},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()?mr:gr}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,i){if(this.asyncValidator){this.status=ii,this._hasOwnPendingAsyncValidator={emitEvent:i!==!1};let n=Kh(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 ri(this.status,i)),this._parent&&this._parent._updateControlsErrors(e,i,n)}_initObservables(){this.valueChanges=new F,this.statusChanges=new F}_calculateStatus(){return this._allControlsDisabled()?mr:this.errors?Fs:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ii)?ii:this._anyControlsHaveStatus(Fs)?Fs:gr}_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 vr(this.pristine,i))}_updateTouched(e={},i){this.touched=this._anyControlsTouched(),this._events.next(new yr(this.touched,i)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,i)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){zs(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=V0(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=U0(this._rawAsyncValidators)}},oi=class extends si{constructor(e,i,n){super(Sc(i),Ac(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={}){sf(this,!0,e),Object.keys(e).forEach(n=>{rf(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,s)=>{n=i(n,r,s)}),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 Ec=class extends oi{};var Dr=new R("CallSetDisabledState",{providedIn:"root",factory:()=>Ws}),Ws="always";function of(t,e){return[...e.path,t]}function js(t,e,i=Ws){Oc(t,e),e.valueAccessor.writeValue(t.value),(t.disabled||i==="always")&&e.valueAccessor.setDisabledState?.(t.disabled),$0(t,e),G0(t,e),H0(t,e),j0(t,e)}function Bh(t,e,i=!0){let n=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(n),e.valueAccessor.registerOnTouched(n)),Hs(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function $s(t,e){t.forEach(i=>{i.registerOnValidatorChange&&i.registerOnValidatorChange(e)})}function j0(t,e){if(e.valueAccessor.setDisabledState){let i=n=>{e.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(i),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(i)})}}function Oc(t,e){let i=tf(t);e.validator!==null?t.setValidators(xh(i,e.validator)):typeof i=="function"&&t.setValidators([i]);let n=nf(t);e.asyncValidator!==null?t.setAsyncValidators(xh(n,e.asyncValidator)):typeof n=="function"&&t.setAsyncValidators([n]);let r=()=>t.updateValueAndValidity();$s(e._rawValidators,r),$s(e._rawAsyncValidators,r)}function Hs(t,e){let i=!1;if(t!==null){if(e.validator!==null){let r=tf(t);if(Array.isArray(r)&&r.length>0){let s=r.filter(o=>o!==e.validator);s.length!==r.length&&(i=!0,t.setValidators(s))}}if(e.asyncValidator!==null){let r=nf(t);if(Array.isArray(r)&&r.length>0){let s=r.filter(o=>o!==e.asyncValidator);s.length!==r.length&&(i=!0,t.setAsyncValidators(s))}}}let n=()=>{};return $s(e._rawValidators,n),$s(e._rawAsyncValidators,n),i}function $0(t,e){e.valueAccessor.registerOnChange(i=>{t._pendingValue=i,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&af(t,e)})}function H0(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&af(t,e),t.updateOn!=="submit"&&t.markAsTouched()})}function af(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function G0(t,e){let i=(n,r)=>{e.valueAccessor.writeValue(n),r&&e.viewToModelUpdate(n)};t.registerOnChange(i),e._registerOnDestroy(()=>{t._unregisterOnChange(i)})}function cf(t,e){t==null,Oc(t,e)}function z0(t,e){return Hs(t,e)}function lf(t,e){if(!t.hasOwnProperty("model"))return!1;let i=t.model;return i.isFirstChange()?!0:!Object.is(e,i.currentValue)}function W0(t){return Object.getPrototypeOf(t.constructor)===Gh}function uf(t,e){t._syncPendingControls(),e.forEach(i=>{let n=i.control;n.updateOn==="submit"&&n._pendingChange&&(i.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function df(t,e){if(!e)return null;Array.isArray(e);let i,n,r;return e.forEach(s=>{s.constructor===zh?i=s:W0(s)?n=s:r=s}),r||n||i||null}function q0(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}var J0={provide:Pt,useExisting:ct(()=>K0)},_r=Promise.resolve(),K0=(()=>{let e=class e extends Pt{get submitted(){return $e(this.submittedReactive)}constructor(n,r,s){super(),this.callSetDisabledState=s,this._submitted=hn(()=>this.submittedReactive()),this.submittedReactive=Ve(!1),this._directives=new Set,this.ngSubmit=new F,this.form=new oi({},Cc(n),Ic(r))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(n){_r.then(()=>{let r=this._findContainer(n.path);n.control=r.registerControl(n.name,n.control),js(n.control,n,this.callSetDisabledState),n.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(n)})}getControl(n){return this.form.get(n.path)}removeControl(n){_r.then(()=>{let r=this._findContainer(n.path);r&&r.removeControl(n.name),this._directives.delete(n)})}addFormGroup(n){_r.then(()=>{let r=this._findContainer(n.path),s=new oi({});cf(s,n),r.registerControl(n.name,s),s.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(n){_r.then(()=>{let r=this._findContainer(n.path);r&&r.removeControl(n.name)})}getFormGroup(n){return this.form.get(n.path)}updateModel(n,r){_r.then(()=>{this.form.get(n.path).setValue(r)})}setValue(n){this.control.setValue(n)}onSubmit(n){return this.submittedReactive.set(!0),uf(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)(I(wr,10),I(Gs,10),I(Dr,8))},e.\u0275dir=x({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(r,s){r&1&&ie("submit",function(a){return s.onSubmit(a)})("reset",function(){return s.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[mt([J0]),Ue]});let t=e;return t})();function Vh(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}function Uh(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var br=class extends si{constructor(e=null,i,n){super(Sc(i),Ac(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}),zs(i)&&(i.nonNullable||i.initialValueIsDefault)&&(Uh(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){Vh(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){Vh(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){Uh(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 Y0=t=>t instanceof br;var Q0={provide:mn,useExisting:ct(()=>Z0)},jh=Promise.resolve(),Z0=(()=>{let e=class e extends mn{constructor(n,r,s,o,a,c){super(),this._changeDetectorRef=a,this.callSetDisabledState=c,this.control=new br,this._registered=!1,this.name="",this.update=new F,this._parent=n,this._setValidators(r),this._setAsyncValidators(s),this.valueAccessor=df(this,o)}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),lf(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(){js(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){jh.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let r=n.isDisabled.currentValue,s=r!==0&&Hn(r);jh.then(()=>{s&&!this.control.disabled?this.control.disable():!s&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?of(n,this._parent):[n]}};e.\u0275fac=function(r){return new(r||e)(I(Pt,9),I(wr,10),I(Gs,10),I(ai,10),I(je,8),I(Dr,8))},e.\u0275dir=x({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:[mt([Q0]),Ue,Pe]});let t=e;return t})(),kT=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=x({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});let t=e;return t})();var hf=new R("");var X0={provide:Pt,useExisting:ct(()=>ev)},ev=(()=>{let e=class e extends Pt{get submitted(){return $e(this._submittedReactive)}set submitted(n){this._submittedReactive.set(n)}constructor(n,r,s){super(),this.callSetDisabledState=s,this._submitted=hn(()=>this._submittedReactive()),this._submittedReactive=Ve(!1),this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new F,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&&(Hs(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 js(r,n,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(n),r}getControl(n){return this.form.get(n.path)}removeControl(n){Bh(n.control||null,n,!1),q0(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),uf(this.form,this.directives),this.ngSubmit.emit(n),this.form._events.next(new wc(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 Dc(this.form))}_updateDomValue(){this.directives.forEach(n=>{let r=n.control,s=this.form.get(n.path);r!==s&&(Bh(r||null,n),Y0(s)&&(js(s,n,this.callSetDisabledState),n.control=s))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(n){let r=this.form.get(n.path);cf(r,n),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(n){if(this.form){let r=this.form.get(n.path);r&&z0(r,n)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Oc(this.form,this),this._oldForm&&Hs(this._oldForm,this)}_checkFormPresent(){this.form}};e.\u0275fac=function(r){return new(r||e)(I(wr,10),I(Gs,10),I(Dr,8))},e.\u0275dir=x({type:e,selectors:[["","formGroup",""]],hostBindings:function(r,s){r&1&&ie("submit",function(a){return s.onSubmit(a)})("reset",function(){return s.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[mt([X0]),Ue,Pe]});let t=e;return t})();var tv={provide:mn,useExisting:ct(()=>nv)},nv=(()=>{let e=class e extends mn{set isDisabled(n){}constructor(n,r,s,o,a){super(),this._ngModelWarningConfig=a,this._added=!1,this.name=null,this.update=new F,this._ngModelWarningSent=!1,this._parent=n,this._setValidators(r),this._setAsyncValidators(s),this.valueAccessor=df(this,o)}ngOnChanges(n){this._added||this._setUpControl(),lf(n,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}get path(){return of(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}};e._ngModelWarningSentOnce=!1,e.\u0275fac=function(r){return new(r||e)(I(Pt,13),I(wr,10),I(Gs,10),I(ai,10),I(hf,8))},e.\u0275dir=x({type:e,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[mt([tv]),Ue,Pe]});let t=e;return t})();var ff=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Le({type:e}),e.\u0275inj=Fe({});let t=e;return t})(),Tc=class extends si{constructor(e,i,n){super(Sc(i),Ac(n,i)),this.controls=e,this._initObservables(),this._setUpdateStrategy(i),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(e){return this.controls[this._adjustIndex(e)]}push(e,i={}){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}insert(e,i,n={}){this.controls.splice(e,0,i),this._registerControl(i),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(e,i={}){let n=this._adjustIndex(e);n<0&&(n=0),this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:i.emitEvent})}setControl(e,i,n={}){let r=this._adjustIndex(e);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),i&&(this.controls.splice(r,0,i),this._registerControl(i)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,i={}){sf(this,!1,e),e.forEach((n,r)=>{rf(this,!1,r),this.at(r).setValue(n,{onlySelf:!0,emitEvent:i.emitEvent})}),this.updateValueAndValidity(i)}patchValue(e,i={}){e!=null&&(e.forEach((n,r)=>{this.at(r)&&this.at(r).patchValue(n,{onlySelf:!0,emitEvent:i.emitEvent})}),this.updateValueAndValidity(i))}reset(e=[],i={}){this._forEachChild((n,r)=>{n.reset(e[r],{onlySelf:!0,emitEvent:i.emitEvent})}),this._updatePristine(i,this),this._updateTouched(i,this),this.updateValueAndValidity(i)}getRawValue(){return this.controls.map(e=>e.getRawValue())}clear(e={}){this.controls.length<1||(this._forEachChild(i=>i._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}_adjustIndex(e){return e<0?e+this.length:e}_syncPendingControls(){let e=this.controls.reduce((i,n)=>n._syncPendingControls()?!0:i,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){this.controls.forEach((i,n)=>{e(i,n)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(i=>i.enabled&&e(i))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_allControlsDisabled(){for(let e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}_find(e){return this.at(e)??null}};function $h(t){return!!t&&(t.asyncValidators!==void 0||t.validators!==void 0||t.updateOn!==void 0)}var xT=(()=>{let e=class e{constructor(){this.useNonNullable=!1}get nonNullable(){let n=new e;return n.useNonNullable=!0,n}group(n,r=null){let s=this._reduceControls(n),o={};return $h(r)?o=r:r!==null&&(o.validators=r.validator,o.asyncValidators=r.asyncValidator),new oi(s,o)}record(n,r=null){let s=this._reduceControls(n);return new Ec(s,r)}control(n,r,s){let o={};return this.useNonNullable?($h(r)?o=r:(o.validators=r,o.asyncValidators=s),new br(n,k(m({},o),{nonNullable:!0}))):new br(n,r,s)}array(n,r,s){let o=n.map(a=>this._createControl(a));return new Tc(o,r,s)}_reduceControls(n){let r={};return Object.keys(n).forEach(s=>{r[s]=this._createControl(n[s])}),r}_createControl(n){if(n instanceof br)return n;if(n instanceof si)return n;if(Array.isArray(n)){let r=n[0],s=n.length>1?n[1]:null,o=n.length>2?n[2]:null;return this.control(r,s,o)}else return this.control(n)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var FT=(()=>{let e=class e{static withConfig(n){return{ngModule:e,providers:[{provide:Dr,useValue:n.callSetDisabledState??Ws}]}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Le({type:e}),e.\u0275inj=Fe({imports:[ff]});let t=e;return t})(),LT=(()=>{let e=class e{static withConfig(n){return{ngModule:e,providers:[{provide:hf,useValue:n.warnOnNgModelWithFormControl??"always"},{provide:Dr,useValue:n.callSetDisabledState??Ws}]}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Le({type:e}),e.\u0275inj=Fe({imports:[ff]});let t=e;return t})();function qs(t){t||(Qo(qs),t=d(Oi));let e=new xe(i=>t.onDestroy(i.next.bind(i)));return i=>i.pipe(K(e))}function iv(t,e){!e?.injector&&Qo(iv);let i=e?.injector??d(ne),n=new wu(1),r=ad(()=>{let s;try{s=t()}catch(o){$e(()=>n.error(o));return}$e(()=>n.next(s))},{injector:i,manualCleanup:!0});return i.get(Oi).onDestroy(()=>{r.destroy(),n.complete()}),n.asObservable()}var te="top",fe="bottom",le="right",re="left",Js="auto",Xt=[te,fe,le,re],Mt="start",_n="end",pf="clippingParents",Ks="viewport",ci="popper",gf="reference",Rc=Xt.reduce(function(t,e){return t.concat([e+"-"+Mt,e+"-"+_n])},[]),Ys=[].concat(Xt,[Js]).reduce(function(t,e){return t.concat([e,e+"-"+Mt,e+"-"+_n])},[]),rv="beforeRead",sv="read",ov="afterRead",av="beforeMain",cv="main",lv="afterMain",uv="beforeWrite",dv="write",hv="afterWrite",mf=[rv,sv,ov,av,cv,lv,uv,dv,hv];function ue(t){return t?(t.nodeName||"").toLowerCase():null}function W(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function ze(t){var e=W(t).Element;return t instanceof e||t instanceof Element}function se(t){var e=W(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function li(t){if(typeof ShadowRoot>"u")return!1;var e=W(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function fv(t){var e=t.state;Object.keys(e.elements).forEach(function(i){var n=e.styles[i]||{},r=e.attributes[i]||{},s=e.elements[i];!se(s)||!ue(s)||(Object.assign(s.style,n),Object.keys(r).forEach(function(o){var a=r[o];a===!1?s.removeAttribute(o):s.setAttribute(o,a===!0?"":a)}))})}function pv(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow),function(){Object.keys(e.elements).forEach(function(n){var r=e.elements[n],s=e.attributes[n]||{},o=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:i[n]),a=o.reduce(function(c,l){return c[l]="",c},{});!se(r)||!ue(r)||(Object.assign(r.style,a),Object.keys(s).forEach(function(c){r.removeAttribute(c)}))})}}var _f={name:"applyStyles",enabled:!0,phase:"write",fn:fv,effect:pv,requires:["computeStyles"]};function de(t){return t.split("-")[0]}var it=Math.max,vn=Math.min,Nt=Math.round;function ui(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Er(){return!/^((?!chrome|android).)*safari/i.test(ui())}function We(t,e,i){e===void 0&&(e=!1),i===void 0&&(i=!1);var n=t.getBoundingClientRect(),r=1,s=1;e&&se(t)&&(r=t.offsetWidth>0&&Nt(n.width)/t.offsetWidth||1,s=t.offsetHeight>0&&Nt(n.height)/t.offsetHeight||1);var o=ze(t)?W(t):window,a=o.visualViewport,c=!Er()&&i,l=(n.left+(c&&a?a.offsetLeft:0))/r,u=(n.top+(c&&a?a.offsetTop:0))/s,f=n.width/r,h=n.height/s;return{width:f,height:h,top:u,right:l+f,bottom:u+h,left:l,x:l,y:u}}function yn(t){var e=We(t),i=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-i)<=1&&(i=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:i,height:n}}function Tr(t,e){var i=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(i&&li(i)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Se(t){return W(t).getComputedStyle(t)}function Pc(t){return["table","td","th"].indexOf(ue(t))>=0}function pe(t){return((ze(t)?t.ownerDocument:t.document)||window.document).documentElement}function kt(t){return ue(t)==="html"?t:t.assignedSlot||t.parentNode||(li(t)?t.host:null)||pe(t)}function vf(t){return!se(t)||Se(t).position==="fixed"?null:t.offsetParent}function gv(t){var e=/firefox/i.test(ui()),i=/Trident/i.test(ui());if(i&&se(t)){var n=Se(t);if(n.position==="fixed")return null}var r=kt(t);for(li(r)&&(r=r.host);se(r)&&["html","body"].indexOf(ue(r))<0;){var s=Se(r);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||e&&s.willChange==="filter"||e&&s.filter&&s.filter!=="none")return r;r=r.parentNode}return null}function rt(t){for(var e=W(t),i=vf(t);i&&Pc(i)&&Se(i).position==="static";)i=vf(i);return i&&(ue(i)==="html"||ue(i)==="body"&&Se(i).position==="static")?e:i||gv(t)||e}function bn(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function wn(t,e,i){return it(t,vn(e,i))}function yf(t,e,i){var n=wn(t,e,i);return n>i?i:n}function Cr(){return{top:0,right:0,bottom:0,left:0}}function Ir(t){return Object.assign({},Cr(),t)}function Sr(t,e){return e.reduce(function(i,n){return i[n]=t,i},{})}var mv=function(e,i){return e=typeof e=="function"?e(Object.assign({},i.rects,{placement:i.placement})):e,Ir(typeof e!="number"?e:Sr(e,Xt))};function _v(t){var e,i=t.state,n=t.name,r=t.options,s=i.elements.arrow,o=i.modifiersData.popperOffsets,a=de(i.placement),c=bn(a),l=[re,le].indexOf(a)>=0,u=l?"height":"width";if(!(!s||!o)){var f=mv(r.padding,i),h=yn(s),g=c==="y"?te:re,v=c==="y"?fe:le,E=i.rects.reference[u]+i.rects.reference[c]-o[c]-i.rects.popper[u],_=o[c]-i.rects.reference[c],y=rt(s),P=y?c==="y"?y.clientHeight||0:y.clientWidth||0:0,M=E/2-_/2,D=f[g],N=P-h[u]-f[v],O=P/2-h[u]/2+M,B=wn(D,O,N),q=c;i.modifiersData[n]=(e={},e[q]=B,e.centerOffset=B-O,e)}}function vv(t){var e=t.state,i=t.options,n=i.element,r=n===void 0?"[data-popper-arrow]":n;r!=null&&(typeof r=="string"&&(r=e.elements.popper.querySelector(r),!r)||Tr(e.elements.popper,r)&&(e.elements.arrow=r))}var Mc={name:"arrow",enabled:!0,phase:"main",fn:_v,effect:vv,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function qe(t){return t.split("-")[1]}var yv={top:"auto",right:"auto",bottom:"auto",left:"auto"};function bv(t,e){var i=t.x,n=t.y,r=e.devicePixelRatio||1;return{x:Nt(i*r)/r||0,y:Nt(n*r)/r||0}}function bf(t){var e,i=t.popper,n=t.popperRect,r=t.placement,s=t.variation,o=t.offsets,a=t.position,c=t.gpuAcceleration,l=t.adaptive,u=t.roundOffsets,f=t.isFixed,h=o.x,g=h===void 0?0:h,v=o.y,E=v===void 0?0:v,_=typeof u=="function"?u({x:g,y:E}):{x:g,y:E};g=_.x,E=_.y;var y=o.hasOwnProperty("x"),P=o.hasOwnProperty("y"),M=re,D=te,N=window;if(l){var O=rt(i),B="clientHeight",q="clientWidth";if(O===W(i)&&(O=pe(i),Se(O).position!=="static"&&a==="absolute"&&(B="scrollHeight",q="scrollWidth")),O=O,r===te||(r===re||r===le)&&s===_n){D=fe;var J=f&&O===N&&N.visualViewport?N.visualViewport.height:O[B];E-=J-n.height,E*=c?1:-1}if(r===re||(r===te||r===fe)&&s===_n){M=le;var Z=f&&O===N&&N.visualViewport?N.visualViewport.width:O[q];g-=Z-n.width,g*=c?1:-1}}var me=Object.assign({position:a},l&&yv),Je=u===!0?bv({x:g,y:E},W(i)):{x:g,y:E};if(g=Je.x,E=Je.y,c){var be;return Object.assign({},me,(be={},be[D]=P?"0":"",be[M]=y?"0":"",be.transform=(N.devicePixelRatio||1)<=1?"translate("+g+"px, "+E+"px)":"translate3d("+g+"px, "+E+"px, 0)",be))}return Object.assign({},me,(e={},e[D]=P?E+"px":"",e[M]=y?g+"px":"",e.transform="",e))}function wv(t){var e=t.state,i=t.options,n=i.gpuAcceleration,r=n===void 0?!0:n,s=i.adaptive,o=s===void 0?!0:s,a=i.roundOffsets,c=a===void 0?!0:a,l={placement:de(e.placement),variation:qe(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,bf(Object.assign({},l,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:c})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,bf(Object.assign({},l,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var wf={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:wv,data:{}};var Qs={passive:!0};function Dv(t){var e=t.state,i=t.instance,n=t.options,r=n.scroll,s=r===void 0?!0:r,o=n.resize,a=o===void 0?!0:o,c=W(e.elements.popper),l=[].concat(e.scrollParents.reference,e.scrollParents.popper);return s&&l.forEach(function(u){u.addEventListener("scroll",i.update,Qs)}),a&&c.addEventListener("resize",i.update,Qs),function(){s&&l.forEach(function(u){u.removeEventListener("scroll",i.update,Qs)}),a&&c.removeEventListener("resize",i.update,Qs)}}var Df={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Dv,data:{}};var Ev={left:"right",right:"left",bottom:"top",top:"bottom"};function di(t){return t.replace(/left|right|bottom|top/g,function(e){return Ev[e]})}var Tv={start:"end",end:"start"};function Zs(t){return t.replace(/start|end/g,function(e){return Tv[e]})}function Dn(t){var e=W(t),i=e.pageXOffset,n=e.pageYOffset;return{scrollLeft:i,scrollTop:n}}function En(t){return We(pe(t)).left+Dn(t).scrollLeft}function Nc(t,e){var i=W(t),n=pe(t),r=i.visualViewport,s=n.clientWidth,o=n.clientHeight,a=0,c=0;if(r){s=r.width,o=r.height;var l=Er();(l||!l&&e==="fixed")&&(a=r.offsetLeft,c=r.offsetTop)}return{width:s,height:o,x:a+En(t),y:c}}function kc(t){var e,i=pe(t),n=Dn(t),r=(e=t.ownerDocument)==null?void 0:e.body,s=it(i.scrollWidth,i.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),o=it(i.scrollHeight,i.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-n.scrollLeft+En(t),c=-n.scrollTop;return Se(r||i).direction==="rtl"&&(a+=it(i.clientWidth,r?r.clientWidth:0)-s),{width:s,height:o,x:a,y:c}}function Tn(t){var e=Se(t),i=e.overflow,n=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(i+r+n)}function Xs(t){return["html","body","#document"].indexOf(ue(t))>=0?t.ownerDocument.body:se(t)&&Tn(t)?t:Xs(kt(t))}function en(t,e){var i;e===void 0&&(e=[]);var n=Xs(t),r=n===((i=t.ownerDocument)==null?void 0:i.body),s=W(n),o=r?[s].concat(s.visualViewport||[],Tn(n)?n:[]):n,a=e.concat(o);return r?a:a.concat(en(kt(o)))}function hi(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Cv(t,e){var i=We(t,!1,e==="fixed");return i.top=i.top+t.clientTop,i.left=i.left+t.clientLeft,i.bottom=i.top+t.clientHeight,i.right=i.left+t.clientWidth,i.width=t.clientWidth,i.height=t.clientHeight,i.x=i.left,i.y=i.top,i}function Ef(t,e,i){return e===Ks?hi(Nc(t,i)):ze(e)?Cv(e,i):hi(kc(pe(t)))}function Iv(t){var e=en(kt(t)),i=["absolute","fixed"].indexOf(Se(t).position)>=0,n=i&&se(t)?rt(t):t;return ze(n)?e.filter(function(r){return ze(r)&&Tr(r,n)&&ue(r)!=="body"}):[]}function xc(t,e,i,n){var r=e==="clippingParents"?Iv(t):[].concat(e),s=[].concat(r,[i]),o=s[0],a=s.reduce(function(c,l){var u=Ef(t,l,n);return c.top=it(u.top,c.top),c.right=vn(u.right,c.right),c.bottom=vn(u.bottom,c.bottom),c.left=it(u.left,c.left),c},Ef(t,o,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Ar(t){var e=t.reference,i=t.element,n=t.placement,r=n?de(n):null,s=n?qe(n):null,o=e.x+e.width/2-i.width/2,a=e.y+e.height/2-i.height/2,c;switch(r){case te:c={x:o,y:e.y-i.height};break;case fe:c={x:o,y:e.y+e.height};break;case le:c={x:e.x+e.width,y:a};break;case re:c={x:e.x-i.width,y:a};break;default:c={x:e.x,y:e.y}}var l=r?bn(r):null;if(l!=null){var u=l==="y"?"height":"width";switch(s){case Mt:c[l]=c[l]-(e[u]/2-i[u]/2);break;case _n:c[l]=c[l]+(e[u]/2-i[u]/2);break;default:}}return c}function tn(t,e){e===void 0&&(e={});var i=e,n=i.placement,r=n===void 0?t.placement:n,s=i.strategy,o=s===void 0?t.strategy:s,a=i.boundary,c=a===void 0?pf:a,l=i.rootBoundary,u=l===void 0?Ks:l,f=i.elementContext,h=f===void 0?ci:f,g=i.altBoundary,v=g===void 0?!1:g,E=i.padding,_=E===void 0?0:E,y=Ir(typeof _!="number"?_:Sr(_,Xt)),P=h===ci?gf:ci,M=t.rects.popper,D=t.elements[v?P:h],N=xc(ze(D)?D:D.contextElement||pe(t.elements.popper),c,u,o),O=We(t.elements.reference),B=Ar({reference:O,element:M,strategy:"absolute",placement:r}),q=hi(Object.assign({},M,B)),J=h===ci?q:O,Z={top:N.top-J.top+y.top,bottom:J.bottom-N.bottom+y.bottom,left:N.left-J.left+y.left,right:J.right-N.right+y.right},me=t.modifiersData.offset;if(h===ci&&me){var Je=me[r];Object.keys(Z).forEach(function(be){var sn=[le,fe].indexOf(be)>=0?1:-1,on=[te,fe].indexOf(be)>=0?"y":"x";Z[be]+=Je[on]*sn})}return Z}function Fc(t,e){e===void 0&&(e={});var i=e,n=i.placement,r=i.boundary,s=i.rootBoundary,o=i.padding,a=i.flipVariations,c=i.allowedAutoPlacements,l=c===void 0?Ys:c,u=qe(n),f=u?a?Rc:Rc.filter(function(v){return qe(v)===u}):Xt,h=f.filter(function(v){return l.indexOf(v)>=0});h.length===0&&(h=f);var g=h.reduce(function(v,E){return v[E]=tn(t,{placement:E,boundary:r,rootBoundary:s,padding:o})[de(E)],v},{});return Object.keys(g).sort(function(v,E){return g[v]-g[E]})}function Sv(t){if(de(t)===Js)return[];var e=di(t);return[Zs(t),e,Zs(e)]}function Av(t){var e=t.state,i=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var r=i.mainAxis,s=r===void 0?!0:r,o=i.altAxis,a=o===void 0?!0:o,c=i.fallbackPlacements,l=i.padding,u=i.boundary,f=i.rootBoundary,h=i.altBoundary,g=i.flipVariations,v=g===void 0?!0:g,E=i.allowedAutoPlacements,_=e.options.placement,y=de(_),P=y===_,M=c||(P||!v?[di(_)]:Sv(_)),D=[_].concat(M).reduce(function(xn,Ut){return xn.concat(de(Ut)===Js?Fc(e,{placement:Ut,boundary:u,rootBoundary:f,padding:l,flipVariations:v,allowedAutoPlacements:E}):Ut)},[]),N=e.rects.reference,O=e.rects.popper,B=new Map,q=!0,J=D[0],Z=0;Z<D.length;Z++){var me=D[Z],Je=de(me),be=qe(me)===Mt,sn=[te,fe].indexOf(Je)>=0,on=sn?"width":"height",Re=tn(e,{placement:me,boundary:u,rootBoundary:f,altBoundary:h,padding:l}),Ke=sn?be?le:re:be?fe:te;N[on]>O[on]&&(Ke=di(Ke));var Gr=di(Ke),an=[];if(s&&an.push(Re[Je]<=0),a&&an.push(Re[Ke]<=0,Re[Gr]<=0),an.every(function(xn){return xn})){J=me,q=!1;break}B.set(me,an)}if(q)for(var zr=v?3:1,Lo=function(Ut){var Ci=D.find(function(qr){var cn=B.get(qr);if(cn)return cn.slice(0,Ut).every(function(Bo){return Bo})});if(Ci)return J=Ci,"break"},Ti=zr;Ti>0;Ti--){var Wr=Lo(Ti);if(Wr==="break")break}e.placement!==J&&(e.modifiersData[n]._skip=!0,e.placement=J,e.reset=!0)}}var Lc={name:"flip",enabled:!0,phase:"main",fn:Av,requiresIfExists:["offset"],data:{_skip:!1}};function Ov(t,e,i){var n=de(t),r=[re,te].indexOf(n)>=0?-1:1,s=typeof i=="function"?i(Object.assign({},e,{placement:t})):i,o=s[0],a=s[1];return o=o||0,a=(a||0)*r,[re,le].indexOf(n)>=0?{x:a,y:o}:{x:o,y:a}}function Rv(t){var e=t.state,i=t.options,n=t.name,r=i.offset,s=r===void 0?[0,0]:r,o=Ys.reduce(function(u,f){return u[f]=Ov(f,e.rects,s),u},{}),a=o[e.placement],c=a.x,l=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=c,e.modifiersData.popperOffsets.y+=l),e.modifiersData[n]=o}var Bc={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Rv};function Pv(t){var e=t.state,i=t.name;e.modifiersData[i]=Ar({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var Tf={name:"popperOffsets",enabled:!0,phase:"read",fn:Pv,data:{}};function Vc(t){return t==="x"?"y":"x"}function Mv(t){var e=t.state,i=t.options,n=t.name,r=i.mainAxis,s=r===void 0?!0:r,o=i.altAxis,a=o===void 0?!1:o,c=i.boundary,l=i.rootBoundary,u=i.altBoundary,f=i.padding,h=i.tether,g=h===void 0?!0:h,v=i.tetherOffset,E=v===void 0?0:v,_=tn(e,{boundary:c,rootBoundary:l,padding:f,altBoundary:u}),y=de(e.placement),P=qe(e.placement),M=!P,D=bn(y),N=Vc(D),O=e.modifiersData.popperOffsets,B=e.rects.reference,q=e.rects.popper,J=typeof E=="function"?E(Object.assign({},e.rects,{placement:e.placement})):E,Z=typeof J=="number"?{mainAxis:J,altAxis:J}:Object.assign({mainAxis:0,altAxis:0},J),me=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,Je={x:0,y:0};if(O){if(s){var be,sn=D==="y"?te:re,on=D==="y"?fe:le,Re=D==="y"?"height":"width",Ke=O[D],Gr=Ke+_[sn],an=Ke-_[on],zr=g?-q[Re]/2:0,Lo=P===Mt?B[Re]:q[Re],Ti=P===Mt?-q[Re]:-B[Re],Wr=e.elements.arrow,xn=g&&Wr?yn(Wr):{width:0,height:0},Ut=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Cr(),Ci=Ut[sn],qr=Ut[on],cn=wn(0,B[Re],xn[Re]),Bo=M?B[Re]/2-zr-cn-Ci-Z.mainAxis:Lo-cn-Ci-Z.mainAxis,cg=M?-B[Re]/2+zr+cn+qr+Z.mainAxis:Ti+cn+qr+Z.mainAxis,Vo=e.elements.arrow&&rt(e.elements.arrow),lg=Vo?D==="y"?Vo.clientTop||0:Vo.clientLeft||0:0,uu=(be=me?.[D])!=null?be:0,ug=Ke+Bo-uu-lg,dg=Ke+cg-uu,du=wn(g?vn(Gr,ug):Gr,Ke,g?it(an,dg):an);O[D]=du,Je[D]=du-Ke}if(a){var hu,hg=D==="x"?te:re,fg=D==="x"?fe:le,ln=O[N],Jr=N==="y"?"height":"width",fu=ln+_[hg],pu=ln-_[fg],Uo=[te,re].indexOf(y)!==-1,gu=(hu=me?.[N])!=null?hu:0,mu=Uo?fu:ln-B[Jr]-q[Jr]-gu+Z.altAxis,_u=Uo?ln+B[Jr]+q[Jr]-gu-Z.altAxis:pu,vu=g&&Uo?yf(mu,ln,_u):wn(g?mu:fu,ln,g?_u:pu);O[N]=vu,Je[N]=vu-ln}e.modifiersData[n]=Je}}var Uc={name:"preventOverflow",enabled:!0,phase:"main",fn:Mv,requiresIfExists:["offset"]};function jc(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function $c(t){return t===W(t)||!se(t)?Dn(t):jc(t)}function Nv(t){var e=t.getBoundingClientRect(),i=Nt(e.width)/t.offsetWidth||1,n=Nt(e.height)/t.offsetHeight||1;return i!==1||n!==1}function Hc(t,e,i){i===void 0&&(i=!1);var n=se(e),r=se(e)&&Nv(e),s=pe(e),o=We(t,r,i),a={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(n||!n&&!i)&&((ue(e)!=="body"||Tn(s))&&(a=$c(e)),se(e)?(c=We(e,!0),c.x+=e.clientLeft,c.y+=e.clientTop):s&&(c.x=En(s))),{x:o.left+a.scrollLeft-c.x,y:o.top+a.scrollTop-c.y,width:o.width,height:o.height}}function kv(t){var e=new Map,i=new Set,n=[];t.forEach(function(s){e.set(s.name,s)});function r(s){i.add(s.name);var o=[].concat(s.requires||[],s.requiresIfExists||[]);o.forEach(function(a){if(!i.has(a)){var c=e.get(a);c&&r(c)}}),n.push(s)}return t.forEach(function(s){i.has(s.name)||r(s)}),n}function Gc(t){var e=kv(t);return mf.reduce(function(i,n){return i.concat(e.filter(function(r){return r.phase===n}))},[])}function zc(t){var e;return function(){return e||(e=new Promise(function(i){Promise.resolve().then(function(){e=void 0,i(t())})})),e}}function Wc(t){var e=t.reduce(function(i,n){var r=i[n.name];return i[n.name]=r?Object.assign({},r,n,{options:Object.assign({},r.options,n.options),data:Object.assign({},r.data,n.data)}):n,i},{});return Object.keys(e).map(function(i){return e[i]})}var Cf={placement:"bottom",modifiers:[],strategy:"absolute"};function If(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return!e.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function Sf(t){t===void 0&&(t={});var e=t,i=e.defaultModifiers,n=i===void 0?[]:i,r=e.defaultOptions,s=r===void 0?Cf:r;return function(a,c,l){l===void 0&&(l=s);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},Cf,s),modifiersData:{},elements:{reference:a,popper:c},attributes:{},styles:{}},f=[],h=!1,g={state:u,setOptions:function(y){var P=typeof y=="function"?y(u.options):y;E(),u.options=Object.assign({},s,u.options,P),u.scrollParents={reference:ze(a)?en(a):a.contextElement?en(a.contextElement):[],popper:en(c)};var M=Gc(Wc([].concat(n,u.options.modifiers)));return u.orderedModifiers=M.filter(function(D){return D.enabled}),v(),g.update()},forceUpdate:function(){if(!h){var y=u.elements,P=y.reference,M=y.popper;if(If(P,M)){u.rects={reference:Hc(P,rt(M),u.options.strategy==="fixed"),popper:yn(M)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(Z){return u.modifiersData[Z.name]=Object.assign({},Z.data)});for(var D=0;D<u.orderedModifiers.length;D++){if(u.reset===!0){u.reset=!1,D=-1;continue}var N=u.orderedModifiers[D],O=N.fn,B=N.options,q=B===void 0?{}:B,J=N.name;typeof O=="function"&&(u=O({state:u,options:q,name:J,instance:g})||u)}}}},update:zc(function(){return new Promise(function(_){g.forceUpdate(),_(u)})}),destroy:function(){E(),h=!0}};if(!If(a,c))return g;g.setOptions(l).then(function(_){!h&&l.onFirstUpdate&&l.onFirstUpdate(_)});function v(){u.orderedModifiers.forEach(function(_){var y=_.name,P=_.options,M=P===void 0?{}:P,D=_.effect;if(typeof D=="function"){var N=D({state:u,name:y,instance:g,options:M}),O=function(){};f.push(N||O)}})}function E(){f.forEach(function(_){return _()}),f=[]}return g}}var xv=[Df,Tf,wf,_f],qc=Sf({defaultModifiers:xv});var kf=["*"];var Fv=["dialog"];function Lv(t,e){if(t&1&&Me(0),t&2){let i=Q(2);Zr(i.title)}}function Bv(t,e){}function Vv(t,e){if(t&1&&(he(0,"h3",2),Ze(1,Lv,1,1,"ng-template",null,0,ha)(3,Bv,0,0,"ng-template",4),Ie()),t&2){let i=da(2),n=Q();z(3),ee("ngTemplateOutlet",n.isTitleTemplate()?n.title:i)("ngTemplateOutletContext",n.context)}}function Uv(t,e){if(t&1&&(he(0,"span"),Me(1),Ie()),t&2){let i=Q().$implicit,n=Q();ye(n.highlightClass),z(),Zr(i)}}function jv(t,e){if(t&1&&(ki(0),Me(1),xi()),t&2){let i=Q().$implicit;z(),Zr(i)}}function $v(t,e){if(t&1&&Ze(0,Uv,2,4,"span",0)(1,jv,2,1,"ng-container"),t&2){let i=e.$index;sa(i%2!==0?0:1)}}var Hv=(t,e,i)=>({result:t,term:e,formatter:i});function Gv(t,e){if(t&1&&ht(0,"ngb-highlight",2),t&2){let i=e.result,n=e.term,r=e.formatter;ee("result",r(i))("term",n)}}function zv(t,e){}function Wv(t,e){if(t&1){let i=Fi();he(0,"button",3),ie("mouseenter",function(){let r=Ln(i).$index,s=Q();return Bn(s.markActive(r))})("click",function(){let r=Ln(i).$implicit,s=Q();return Bn(s.select(r))}),Ze(1,zv,0,0,"ng-template",4),Ie()}if(t&2){let i=e.$implicit,n=e.$index,r=Q(),s=da(1);Y("active",n===r.activeIdx),ee("id",r.id+"-"+n),z(),ee("ngTemplateOutlet",r.resultTemplate||s)("ngTemplateOutletContext",id(5,Hv,i,r.term,r.formatter))}}var xf={animation:!0,transitionTimerDelayMs:5},so=(()=>{let e=class e{constructor(){this.animation=xf.animation}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),qv=(()=>{let e=class e{constructor(){this._ngbConfig=d(so),this.closeOthers=!1,this.destroyOnHide=!0}get animation(){return this._animation??this._ngbConfig.animation}set animation(n){this._animation=n}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Jv(t){let{transitionDelay:e,transitionDuration:i}=window.getComputedStyle(t),n=parseFloat(e),r=parseFloat(i);return(n+r)*1e3}function Or(t){return t!=null?`${t}`:""}function oo(t){return typeof t=="string"}function no(t){return t!=null}function Kv(t){return t&&t.then}function Yv(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}function Qv(t,e){return!e||typeof t.closest>"u"?null:t.closest(e)}function Qc(t){return(t||document.body).getBoundingClientRect()}function Zv(t){return e=>new xe(i=>{let n=o=>t.run(()=>i.next(o)),r=o=>t.run(()=>i.error(o)),s=()=>t.run(()=>i.complete());return e.subscribe({next:n,error:r,complete:s})})}function Af(t){return t.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function Ff(t=document){let e=t?.activeElement;return e?e.shadowRoot?Ff(e.shadowRoot):e:null}var Xv=()=>{},{transitionTimerDelayMs:ey}=xf,eo=new Map,bt=(t,e,i,n)=>{let r=n.context||{},s=eo.get(e);if(s)switch(n.runningTransition){case"continue":return at;case"stop":t.run(()=>s.transition$.complete()),r=Object.assign(s.context,r),eo.delete(e)}let o=i(e,n.animation,r)||Xv;if(!n.animation||window.getComputedStyle(e).transitionProperty==="none")return t.run(()=>o()),b(void 0).pipe(Zv(t));let a=new L,c=new L,l=a.pipe(Mu(!0));eo.set(e,{transition$:a,complete:()=>{c.next(),c.complete()},context:r});let u=Jv(e);return t.runOutsideAngular(()=>{let f=De(e,"transitionend").pipe(K(l),ve(({target:g})=>g===e)),h=Ou(u+ey).pipe(K(l));Wo(h,f,c).pipe(K(l)).subscribe(()=>{eo.delete(e),t.run(()=>{o(),a.next(),a.complete()})})}),a.asObservable()};function ty(t,e){if(typeof navigator>"u")return"0px";let{classList:i}=t,n=i.contains("show");n||i.add("show"),t.style[e]="";let r=t.getBoundingClientRect()[e]+"px";return n||i.remove("show"),r}var ny=(t,e,i)=>{let{direction:n,maxSize:r,dimension:s}=i,{classList:o}=t;function a(){o.add("collapse"),n==="show"?o.add("show"):o.remove("show")}if(!e){a();return}return r||(r=ty(t,s),i.maxSize=r,t.style[s]=n!=="show"?r:"0px",o.remove("collapse"),o.remove("collapsing"),o.remove("show"),Qc(t),o.add("collapsing")),t.style[s]=n==="show"?r:"0px",()=>{a(),o.remove("collapsing"),t.style[s]=""}},iy=(()=>{let e=class e{constructor(){this._ngbConfig=d(so),this.horizontal=!1}get animation(){return this._animation??this._ngbConfig.animation}set animation(n){this._animation=n}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Of=(()=>{let e=class e{constructor(){this._config=d(iy),this._element=d(ae),this._zone=d($),this.animation=this._config.animation,this._afterInit=!1,this._isCollapsed=!1,this.ngbCollapseChange=new F,this.horizontal=this._config.horizontal,this.shown=new F,this.hidden=new F}set collapsed(n){this._isCollapsed!==n&&(this._isCollapsed=n,this._afterInit&&this._runTransitionWithEvents(n,this.animation))}ngOnInit(){this._runTransition(this._isCollapsed,!1),this._afterInit=!0}toggle(n=this._isCollapsed){this.collapsed=!n,this.ngbCollapseChange.next(this._isCollapsed)}_runTransition(n,r){return bt(this._zone,this._element.nativeElement,ny,{animation:r,runningTransition:"stop",context:{direction:n?"hide":"show",dimension:this.horizontal?"width":"height"}})}_runTransitionWithEvents(n,r){this._runTransition(n,r).subscribe(()=>{n?this.hidden.emit():this.shown.emit()})}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=x({type:e,selectors:[["","ngbCollapse",""]],hostVars:2,hostBindings:function(r,s){r&2&&Y("collapse-horizontal",s.horizontal)},inputs:{animation:"animation",collapsed:[0,"ngbCollapse","collapsed"],horizontal:"horizontal"},outputs:{ngbCollapseChange:"ngbCollapseChange",shown:"shown",hidden:"hidden"},exportAs:["ngbCollapse"],standalone:!0});let t=e;return t})(),ry=0,EO=(()=>{let e=class e{constructor(){this._vcr=d(Ni),this._element=d(ae).nativeElement,this._item=d(fi),this._viewRef=null}ngAfterContentChecked(){this._bodyTpl&&(this._item._shouldBeInDOM?this._createViewIfNotExists():this._destroyViewIfExists())}ngOnDestroy(){this._destroyViewIfExists()}_destroyViewIfExists(){this._viewRef&&(this._viewRef.destroy(),this._viewRef=null)}_createViewIfNotExists(){if(!this._viewRef){this._viewRef=this._vcr.createEmbeddedView(this._bodyTpl),this._viewRef.detectChanges();for(let n of this._viewRef.rootNodes)this._element.appendChild(n)}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=x({type:e,selectors:[["","ngbAccordionBody",""]],contentQueries:function(r,s,o){if(r&1&&St(o,Mi,7),r&2){let a;pt(a=gt())&&(s._bodyTpl=a.first)}},hostVars:2,hostBindings:function(r,s){r&2&&Y("accordion-body",!0)},standalone:!0});let t=e;return t})(),sy=(()=>{let e=class e{constructor(){this.item=d(fi),this.ngbCollapse=d(Of)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=x({type:e,selectors:[["","ngbAccordionCollapse",""]],hostAttrs:["role","region"],hostVars:4,hostBindings:function(r,s){r&2&&(ft("id",s.item.collapseId),Ce("aria-labelledby",s.item.toggleId),Y("accordion-collapse",!0))},exportAs:["ngbAccordionCollapse"],standalone:!0,features:[ia([Of])]});let t=e;return t})(),oy=(()=>{let e=class e{constructor(){this.item=d(fi),this.accordion=d(Lf)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=x({type:e,selectors:[["","ngbAccordionToggle",""]],hostVars:5,hostBindings:function(r,s){r&1&&ie("click",function(){return!s.item.disabled&&s.accordion.toggle(s.item.id)}),r&2&&(ft("id",s.item.toggleId),Ce("aria-controls",s.item.collapseId)("aria-expanded",!s.item.collapsed),Y("collapsed",s.item.collapsed))},standalone:!0});let t=e;return t})(),TO=(()=>{let e=class e{constructor(){this.item=d(fi)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=x({type:e,selectors:[["button","ngbAccordionButton",""]],hostAttrs:["type","button"],hostVars:3,hostBindings:function(r,s){r&2&&(ft("disabled",s.item.disabled),Y("accordion-button",!0))},standalone:!0,features:[ia([oy])]});let t=e;return t})(),CO=(()=>{let e=class e{constructor(){this.item=d(fi)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=x({type:e,selectors:[["","ngbAccordionHeader",""]],hostAttrs:["role","heading"],hostVars:4,hostBindings:function(r,s){r&2&&Y("accordion-header",!0)("collapsed",s.item.collapsed)},standalone:!0});let t=e;return t})(),fi=(()=>{let e=class e{constructor(){this._accordion=d(Lf),this._cd=d(je),this._destroyRef=d(Oi),this._collapsed=!0,this._id=`ngb-accordion-item-${ry++}`,this._collapseAnimationRunning=!1,this.disabled=!1,this.show=new F,this.shown=new F,this.hide=new F,this.hidden=new F}set id(n){oo(n)&&n!==""&&(this._id=n)}set destroyOnHide(n){this._destroyOnHide=n}get destroyOnHide(){return this._destroyOnHide===void 0?this._accordion.destroyOnHide:this._destroyOnHide}set collapsed(n){n?this.collapse():this.expand()}get collapsed(){return this._collapsed}get id(){return`${this._id}`}get toggleId(){return`${this.id}-toggle`}get collapseId(){return`${this.id}-collapse`}get _shouldBeInDOM(){return!this.collapsed||this._collapseAnimationRunning||!this.destroyOnHide}ngAfterContentInit(){let{ngbCollapse:n}=this._collapse;n.animation=!1,n.collapsed=this.collapsed,n.animation=this._accordion.animation,n.hidden.pipe(qs(this._destroyRef)).subscribe(()=>{this._collapseAnimationRunning=!1,this.hidden.emit(),this._accordion.hidden.emit(this.id)}),n.shown.pipe(qs(this._destroyRef)).subscribe(()=>{this.shown.emit(),this._accordion.shown.emit(this.id)})}toggle(){this.collapsed=!this.collapsed}expand(){if(this.collapsed){if(!this._accordion._ensureCanExpand(this))return;this._collapsed=!1,this._cd.markForCheck(),this._cd.detectChanges(),this.show.emit(),this._accordion.show.emit(this.id),this._collapse.ngbCollapse.animation=this._accordion.animation,this._collapse.ngbCollapse.collapsed=!1}}collapse(){this.collapsed||(this._collapsed=!0,this._collapseAnimationRunning=!0,this._cd.markForCheck(),this.hide.emit(),this._accordion.hide.emit(this.id),this._collapse.ngbCollapse.animation=this._accordion.animation,this._collapse.ngbCollapse.collapsed=!0)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=x({type:e,selectors:[["","ngbAccordionItem",""]],contentQueries:function(r,s,o){if(r&1&&St(o,sy,7),r&2){let a;pt(a=gt())&&(s._collapse=a.first)}},hostVars:3,hostBindings:function(r,s){r&2&&(ft("id",s.id),Y("accordion-item",!0))},inputs:{id:[0,"ngbAccordionItem","id"],destroyOnHide:"destroyOnHide",disabled:"disabled",collapsed:"collapsed"},outputs:{show:"show",shown:"shown",hide:"hide",hidden:"hidden"},exportAs:["ngbAccordionItem"],standalone:!0});let t=e;return t})(),Lf=(()=>{let e=class e{constructor(){this._config=d(qv),this._anItemWasAlreadyExpandedDuringInitialisation=!1,this.animation=this._config.animation,this.closeOthers=this._config.closeOthers,this.destroyOnHide=this._config.destroyOnHide,this.show=new F,this.shown=new F,this.hide=new F,this.hidden=new F}toggle(n){this._getItem(n)?.toggle()}expand(n){this._getItem(n)?.expand()}expandAll(){this._items&&(this.closeOthers?this._items.find(n=>!n.collapsed)||this._items.first.expand():this._items.forEach(n=>n.expand()))}collapse(n){this._getItem(n)?.collapse()}collapseAll(){this._items?.forEach(n=>n.collapse())}isExpanded(n){let r=this._getItem(n);return r?!r.collapsed:!1}_ensureCanExpand(n){return this.closeOthers?this._items?(this._items.find(r=>!r.collapsed&&n!==r)?.collapse(),!0):this._anItemWasAlreadyExpandedDuringInitialisation?!1:(this._anItemWasAlreadyExpandedDuringInitialisation=!0,!0):!0}_getItem(n){return this._items?.find(r=>r.id===n)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=x({type:e,selectors:[["","ngbAccordion",""]],contentQueries:function(r,s,o){if(r&1&&St(o,fi,4),r&2){let a;pt(a=gt())&&(s._items=a)}},hostVars:2,hostBindings:function(r,s){r&2&&Y("accordion",!0)},inputs:{animation:"animation",closeOthers:"closeOthers",destroyOnHide:"destroyOnHide"},outputs:{show:"show",shown:"shown",hide:"hide",hidden:"hidden"},exportAs:["ngbAccordion"],standalone:!0});let t=e;return t})();var IO=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Le({type:e}),e.\u0275inj=Fe({});let t=e;return t})();var Ae=function(t){return t[t.Tab=9]="Tab",t[t.Enter=13]="Enter",t[t.Escape=27]="Escape",t[t.Space=32]="Space",t[t.PageUp=33]="PageUp",t[t.PageDown=34]="PageDown",t[t.End=35]="End",t[t.Home=36]="Home",t[t.ArrowLeft=37]="ArrowLeft",t[t.ArrowUp=38]="ArrowUp",t[t.ArrowRight=39]="ArrowRight",t[t.ArrowDown=40]="ArrowDown",t}(Ae||{});var to=(t,e)=>e?e.some(i=>i.contains(t)):!1,Rf=(t,e)=>!e||Qv(t,e)!=null,ay=(()=>{let t=()=>/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2,e=()=>/Android/.test(navigator.userAgent);return typeof navigator<"u"?!!navigator.userAgent&&(t()||e()):!1})(),cy=t=>ay?()=>setTimeout(()=>t(),100):t;function Zc(t,e,i,n,r,s,o,a){i&&t.runOutsideAngular(cy(()=>{let c=h=>{let g=h.target;return h.button===2||to(g,o)?!1:i==="inside"?to(g,s)&&Rf(g,a):i==="outside"?!to(g,s):Rf(g,a)||!to(g,s)},l=De(e,"keydown").pipe(K(r),ve(h=>h.which===Ae.Escape),V(h=>h.preventDefault())),u=De(e,"mousedown").pipe(S(c),K(r)),f=De(e,"mouseup").pipe(Qr(u),ve(([h,g])=>g),Pu(0),K(r));Wo([l.pipe(S(h=>0)),f.pipe(S(h=>1))]).subscribe(h=>t.run(()=>n(h)))}))}var Bf=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function Vf(t){let e=Array.from(t.querySelectorAll(Bf)).filter(i=>i.tabIndex!==-1);return[e[0],e[e.length-1]]}var ly=(t,e,i,n=!1)=>{t.runOutsideAngular(()=>{let r=De(e,"focusin").pipe(K(i),S(s=>s.target));De(e,"keydown").pipe(K(i),ve(s=>s.which===Ae.Tab),Qr(r)).subscribe(([s,o])=>{let[a,c]=Vf(e);(o===a||o===e)&&s.shiftKey&&(c.focus(),s.preventDefault()),o===c&&!s.shiftKey&&(a.focus(),s.preventDefault())}),n&&De(e,"click").pipe(K(i),Qr(r),S(s=>s[1])).subscribe(s=>s.focus())})},uy=(()=>{let e=class e{constructor(){this._element=d(H).documentElement}isRTL(){return(this._element.getAttribute("dir")||"").toLowerCase()==="rtl"}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),dy=/\s+/,hy=/ +/gi,fy={top:["top"],bottom:["bottom"],start:["left","right"],left:["left"],end:["right","left"],right:["right"],"top-start":["top-start","top-end"],"top-left":["top-start"],"top-end":["top-end","top-start"],"top-right":["top-end"],"bottom-start":["bottom-start","bottom-end"],"bottom-left":["bottom-start"],"bottom-end":["bottom-end","bottom-start"],"bottom-right":["bottom-end"],"start-top":["left-start","right-start"],"left-top":["left-start"],"start-bottom":["left-end","right-end"],"left-bottom":["left-end"],"end-top":["right-start","left-start"],"right-top":["right-start"],"end-bottom":["right-end","left-end"],"right-bottom":["right-end"]};function py(t,e){let[i,n]=fy[t];return e&&n||i}var gy=/^left/,my=/^right/,_y=/^start/,vy=/^end/;function yy(t,e){let[i,n]=e.split("-"),r=i.replace(gy,"start").replace(my,"end"),s=[r];if(n){let o=n;(i==="left"||i==="right")&&(o=o.replace(_y,"top").replace(vy,"bottom")),s.push(`${r}-${o}`)}return t&&(s=s.map(o=>`${t}-${o}`)),s.join(" ")}function Pf({placement:t,baseClass:e},i){let n=Array.isArray(t)?t:t.split(dy),r=["top","bottom","start","end","top-start","top-end","bottom-start","bottom-end","start-top","start-bottom","end-top","end-bottom"],s=n.findIndex(l=>l==="auto");s>=0&&r.forEach(function(l){n.find(u=>u.search("^"+l)!==-1)==null&&n.splice(s++,1,l)});let o=n.map(l=>py(l,i.isRTL()));return{placement:o.shift(),modifiers:[{name:"bootstrapClasses",enabled:!!e,phase:"write",fn({state:l}){let u=new RegExp(e+"(-[a-z]+)*","gi"),f=l.elements.popper,h=l.placement,g=f.className;g=g.replace(u,""),g+=` ${yy(e,h)}`,g=g.trim().replace(hy," "),f.className=g}},Lc,Uc,Mc,{enabled:!0,name:"flip",options:{fallbackPlacements:o}},{enabled:!0,name:"preventOverflow",phase:"main",fn:function(){}}]}}function Mf(t){return t}function Xc(){let t=d(uy),e=null;return{createPopper(i){if(!e){let r=(i.updatePopperOptions||Mf)(Pf(i,t));e=qc(i.hostElement,i.targetElement,r)}},update(){e&&e.update()},setOptions(i){if(e){let r=(i.updatePopperOptions||Mf)(Pf(i,t));e.setOptions(r)}},destroy(){e&&(e.destroy(),e=null)}}}function el(t){return e=>(e.modifiers.push(Bc,{name:"offset",options:{offset:()=>t}}),e)}var SO=new Date(1882,10,12),AO=new Date(2174,10,25);var OO=1e3*60*60*24;var tl=1080,by=24*tl,wy=12*tl+793,RO=29*by+wy,PO=11*tl+204;var Dy=(()=>{let e=class e{constructor(){this.autoClose=!0,this.placement=["bottom-start","bottom-end","top-start","top-end"],this.popperOptions=n=>n,this.container=null}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Uf=(()=>{let e=class e{constructor(){this._disabled=!1,this.nativeElement=d(ae).nativeElement,this.tabindex=0}set disabled(n){this._disabled=n===""||n===!0}get disabled(){return this._disabled}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=x({type:e,selectors:[["","ngbDropdownItem",""]],hostAttrs:[1,"dropdown-item"],hostVars:3,hostBindings:function(r,s){r&2&&(ft("tabIndex",s.disabled?-1:s.tabindex),Y("disabled",s.disabled))},inputs:{tabindex:"tabindex",disabled:"disabled"},standalone:!0});let t=e;return t})(),MO=(()=>{let e=class e{constructor(){this.item=d(Uf)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=x({type:e,selectors:[["button","ngbDropdownItem",""]],hostVars:1,hostBindings:function(r,s){r&2&&ft("disabled",s.item.disabled)},standalone:!0});let t=e;return t})(),Ey=(()=>{let e=class e{constructor(){this.dropdown=d(jf),this.nativeElement=d(ae).nativeElement}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=x({type:e,selectors:[["","ngbDropdownMenu",""]],contentQueries:function(r,s,o){if(r&1&&St(o,Uf,4),r&2){let a;pt(a=gt())&&(s.menuItems=a)}},hostVars:4,hostBindings:function(r,s){r&1&&ie("keydown.ArrowUp",function(a){return s.dropdown.onKeyDown(a)})("keydown.ArrowDown",function(a){return s.dropdown.onKeyDown(a)})("keydown.Home",function(a){return s.dropdown.onKeyDown(a)})("keydown.End",function(a){return s.dropdown.onKeyDown(a)})("keydown.Enter",function(a){return s.dropdown.onKeyDown(a)})("keydown.Space",function(a){return s.dropdown.onKeyDown(a)})("keydown.Tab",function(a){return s.dropdown.onKeyDown(a)})("keydown.Shift.Tab",function(a){return s.dropdown.onKeyDown(a)}),r&2&&Y("dropdown-menu",!0)("show",s.dropdown.isOpen())},standalone:!0});let t=e;return t})(),Jc=(()=>{let e=class e{constructor(){this.dropdown=d(jf),this.nativeElement=d(ae).nativeElement}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=x({type:e,selectors:[["","ngbDropdownAnchor",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:3,hostBindings:function(r,s){r&2&&(Ce("aria-expanded",s.dropdown.isOpen()),Y("show",s.dropdown.isOpen()))},standalone:!0});let t=e;return t})(),NO=(()=>{let e=class e extends Jc{};e.\u0275fac=(()=>{let n;return function(s){return(n||(n=Gt(e)))(s||e)}})(),e.\u0275dir=x({type:e,selectors:[["","ngbDropdownToggle",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:3,hostBindings:function(r,s){r&1&&ie("click",function(){return s.dropdown.toggle()})("keydown.ArrowUp",function(a){return s.dropdown.onKeyDown(a)})("keydown.ArrowDown",function(a){return s.dropdown.onKeyDown(a)})("keydown.Home",function(a){return s.dropdown.onKeyDown(a)})("keydown.End",function(a){return s.dropdown.onKeyDown(a)})("keydown.Tab",function(a){return s.dropdown.onKeyDown(a)})("keydown.Shift.Tab",function(a){return s.dropdown.onKeyDown(a)}),r&2&&(Ce("aria-expanded",s.dropdown.isOpen()),Y("show",s.dropdown.isOpen()))},standalone:!0,features:[mt([{provide:Jc,useExisting:ct(()=>e)}]),Ue]});let t=e;return t})(),jf=(()=>{let e=class e{constructor(){this._changeDetector=d(je),this._config=d(Dy),this._document=d(H),this._ngZone=d($),this._nativeElement=d(ae).nativeElement,this._destroyCloseHandlers$=new L,this._bodyContainer=null,this._positioning=Xc(),this.autoClose=this._config.autoClose,this._open=!1,this.placement=this._config.placement,this.popperOptions=this._config.popperOptions,this.container=this._config.container,this.openChange=new F}ngOnInit(){this.display||(this.display=this._nativeElement.closest(".navbar")?"static":"dynamic")}ngAfterContentInit(){this._ngZone.onStable.pipe(Te(1)).subscribe(()=>{this._applyPlacementClasses(),this._open&&this._setCloseHandlers()})}ngOnChanges(n){if(n.container&&this._open&&this._applyContainer(this.container),n.placement&&!n.placement.firstChange&&(this._positioning.setOptions({hostElement:this._anchor.nativeElement,targetElement:this._bodyContainer||this._menu.nativeElement,placement:this.placement,appendToBody:this.container==="body"}),this._applyPlacementClasses()),n.dropdownClass){let{currentValue:r,previousValue:s}=n.dropdownClass;this._applyCustomDropdownClass(r,s)}n.autoClose&&this._open&&(this.autoClose=n.autoClose.currentValue,this._setCloseHandlers())}isOpen(){return this._open}open(){this._open||(this._open=!0,this._applyContainer(this.container),this.openChange.emit(!0),this._setCloseHandlers(),this._anchor&&(this._anchor.nativeElement.focus(),this.display==="dynamic"&&this._ngZone.runOutsideAngular(()=>{this._positioning.createPopper({hostElement:this._anchor.nativeElement,targetElement:this._bodyContainer||this._menu.nativeElement,placement:this.placement,appendToBody:this.container==="body",updatePopperOptions:n=>this.popperOptions(el([0,2])(n))}),this._applyPlacementClasses(),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>this._positionMenu())})))}_setCloseHandlers(){this._destroyCloseHandlers$.next(),Zc(this._ngZone,this._document,this.autoClose,n=>{this.close(),n===0&&this._anchor.nativeElement.focus()},this._destroyCloseHandlers$,this._menu?[this._menu.nativeElement]:[],this._anchor?[this._anchor.nativeElement]:[],".dropdown-item,.dropdown-divider")}close(){this._open&&(this._open=!1,this._resetContainer(),this._positioning.destroy(),this._zoneSubscription?.unsubscribe(),this._destroyCloseHandlers$.next(),this.openChange.emit(!1),this._changeDetector.markForCheck())}toggle(){this.isOpen()?this.close():this.open()}ngOnDestroy(){this.close()}onKeyDown(n){let r=n.which,s=this._getMenuElements(),o=-1,a=null,c=this._isEventFromToggle(n);if(!c&&s.length&&s.forEach((l,u)=>{l.contains(n.target)&&(a=l),l===Ff(this._document)&&(o=u)}),r===Ae.Space||r===Ae.Enter){a&&(this.autoClose===!0||this.autoClose==="inside")&&De(a,"click").pipe(Te(1)).subscribe(()=>this.close());return}if(r===Ae.Tab){if(n.target&&this.isOpen()&&this.autoClose)if(this._anchor.nativeElement===n.target){this.container==="body"&&!n.shiftKey?(this._menu.nativeElement.setAttribute("tabindex","0"),this._menu.nativeElement.focus(),this._menu.nativeElement.removeAttribute("tabindex")):n.shiftKey&&this.close();return}else if(this.container==="body"){let l=this._menu.nativeElement.querySelectorAll(Bf);n.shiftKey&&n.target===l[0]?(this._anchor.nativeElement.focus(),n.preventDefault()):!n.shiftKey&&n.target===l[l.length-1]&&(this._anchor.nativeElement.focus(),this.close())}else De(n.target,"focusout").pipe(Te(1)).subscribe(({relatedTarget:l})=>{this._nativeElement.contains(l)||this.close()});return}if(c||a){if(this.open(),s.length){switch(r){case Ae.ArrowDown:o=Math.min(o+1,s.length-1);break;case Ae.ArrowUp:if(this._isDropup()&&o===-1){o=s.length-1;break}o=Math.max(o-1,0);break;case Ae.Home:o=0;break;case Ae.End:o=s.length-1;break}s[o].focus()}n.preventDefault()}}_isDropup(){return this._nativeElement.classList.contains("dropup")}_isEventFromToggle(n){return this._anchor.nativeElement.contains(n.target)}_getMenuElements(){return this._menu?this._menu.menuItems.filter(({disabled:n})=>!n).map(({nativeElement:n})=>n):[]}_positionMenu(){let n=this._menu;this.isOpen()&&n&&(this.display==="dynamic"?(this._positioning.update(),this._applyPlacementClasses()):this._applyPlacementClasses(this._getFirstPlacement(this.placement)))}_getFirstPlacement(n){return Array.isArray(n)?n[0]:n.split(" ")[0]}_resetContainer(){this._menu&&this._nativeElement.appendChild(this._menu.nativeElement),this._bodyContainer&&(this._document.body.removeChild(this._bodyContainer),this._bodyContainer=null)}_applyContainer(n=null){if(this._resetContainer(),n==="body"){let r=this._menu.nativeElement,s=this._bodyContainer=this._bodyContainer||this._document.createElement("div");s.style.position="absolute",r.style.position="static",s.style.zIndex="1055",s.appendChild(r),this._document.body.appendChild(s)}this._applyCustomDropdownClass(this.dropdownClass)}_applyCustomDropdownClass(n,r){let s=this.container==="body"?this._bodyContainer:this._nativeElement;s&&(r&&s.classList.remove(r),n&&s.classList.add(n))}_applyPlacementClasses(n){if(this._menu){n||(n=this._getFirstPlacement(this.placement)),this._nativeElement.classList.remove("dropup","dropdown"),this.display==="static"?this._menu.nativeElement.setAttribute("data-bs-popper","static"):this._menu.nativeElement.removeAttribute("data-bs-popper");let r=n.search("^top")!==-1?"dropup":"dropdown";this._nativeElement.classList.add(r),this._bodyContainer&&(this._bodyContainer.classList.remove("dropup","dropdown"),this._bodyContainer.classList.add(r))}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=x({type:e,selectors:[["","ngbDropdown",""]],contentQueries:function(r,s,o){if(r&1&&(St(o,Ey,5),St(o,Jc,5)),r&2){let a;pt(a=gt())&&(s._menu=a.first),pt(a=gt())&&(s._anchor=a.first)}},hostVars:2,hostBindings:function(r,s){r&2&&Y("show",s.isOpen())},inputs:{autoClose:"autoClose",dropdownClass:"dropdownClass",_open:[0,"open","_open"],placement:"placement",popperOptions:"popperOptions",container:"container",display:"display"},outputs:{openChange:"openChange"},exportAs:["ngbDropdown"],standalone:!0,features:[Pe]});let t=e;return t})();var Ty=(()=>{let e=class e{constructor(){this._ngbConfig=d(so),this.backdrop=!0,this.fullscreen=!1,this.keyboard=!0}get animation(){return this._animation??this._ngbConfig.animation}set animation(n){this._animation=n}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),xt=class{constructor(e,i,n){this.nodes=e,this.viewRef=i,this.componentRef=n}},io=class{constructor(e){this._componentType=e,this._windowRef=null,this._contentRef=null,this._document=d(H),this._applicationRef=d(et),this._injector=d(ne),this._viewContainerRef=d(Ni),this._ngZone=d($)}open(e,i,n=!1){this._windowRef||(this._contentRef=this._getContentRef(e,i),this._windowRef=this._viewContainerRef.createComponent(this._componentType,{injector:this._injector,projectableNodes:this._contentRef.nodes}));let{nativeElement:r}=this._windowRef.location,s=this._ngZone.onStable.pipe(Te(1),we(()=>bt(this._ngZone,r,({classList:o})=>o.add("show"),{animation:n,runningTransition:"continue"})));return{windowRef:this._windowRef,transition$:s}}close(e=!1){return this._windowRef?bt(this._ngZone,this._windowRef.location.nativeElement,({classList:i})=>i.remove("show"),{animation:e,runningTransition:"stop"}).pipe(V(()=>{this._windowRef&&(this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._windowRef.hostView)),this._windowRef=null),this._contentRef?.viewRef&&(this._applicationRef.detachView(this._contentRef.viewRef),this._contentRef.viewRef.destroy(),this._contentRef=null)})):b(void 0)}_getContentRef(e,i){if(e)if(e instanceof Mi){let n=e.createEmbeddedView(i);return this._applicationRef.attachView(n),new xt([n.rootNodes],n)}else return new xt([[this._document.createTextNode(`${e}`)]]);else return new xt([])}},Cy=(()=>{let e=class e{constructor(){this._document=d(H)}hide(){let n=Math.abs(window.innerWidth-this._document.documentElement.clientWidth),r=this._document.body,s=r.style,{overflow:o,paddingRight:a}=s;if(n>0){let c=parseFloat(window.getComputedStyle(r).paddingRight);s.paddingRight=`${c+n}px`}return s.overflow="hidden",()=>{n>0&&(s.paddingRight=a),s.overflow=o}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Iy=(()=>{let e=class e{constructor(){this._nativeElement=d(ae).nativeElement,this._zone=d($)}ngOnInit(){this._zone.onStable.asObservable().pipe(Te(1)).subscribe(()=>{bt(this._zone,this._nativeElement,(n,r)=>{r&&Qc(n),n.classList.add("show")},{animation:this.animation,runningTransition:"continue"})})}hide(){return bt(this._zone,this._nativeElement,({classList:n})=>n.remove("show"),{animation:this.animation,runningTransition:"stop"})}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=Ye({type:e,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1055"],hostVars:6,hostBindings:function(r,s){r&2&&(ye("modal-backdrop"+(s.backdropClass?" "+s.backdropClass:"")),Y("show",!s.animation)("fade",s.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},standalone:!0,features:[Xe],decls:0,vars:0,template:function(r,s){},encapsulation:2});let t=e;return t})(),ro=class{update(e){}close(e){}dismiss(e){}},Sy=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","fullscreen","keyboard","scrollable","size","windowClass","modalDialogClass"],Ay=["animation","backdropClass"],Kc=class{_applyWindowOptions(e,i){Sy.forEach(n=>{no(i[n])&&(e[n]=i[n])})}_applyBackdropOptions(e,i){Ay.forEach(n=>{no(i[n])&&(e[n]=i[n])})}update(e){this._applyWindowOptions(this._windowCmptRef.instance,e),this._backdropCmptRef&&this._backdropCmptRef.instance&&this._applyBackdropOptions(this._backdropCmptRef.instance,e)}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe(K(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe(K(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}constructor(e,i,n,r){this._windowCmptRef=e,this._contentRef=i,this._backdropCmptRef=n,this._beforeDismiss=r,this._closed=new L,this._dismissed=new L,this._hidden=new L,e.instance.dismissEvent.subscribe(s=>{this.dismiss(s)}),this.result=new Promise((s,o)=>{this._resolve=s,this._reject=o}),this.result.then(null,()=>{})}close(e){this._windowCmptRef&&(this._closed.next(e),this._resolve(e),this._removeModalElements())}_dismiss(e){this._dismissed.next(e),this._reject(e),this._removeModalElements()}dismiss(e){if(this._windowCmptRef)if(!this._beforeDismiss)this._dismiss(e);else{let i=this._beforeDismiss();Kv(i)?i.then(n=>{n!==!1&&this._dismiss(e)},()=>{}):i!==!1&&this._dismiss(e)}}_removeModalElements(){let e=this._windowCmptRef.instance.hide(),i=this._backdropCmptRef?this._backdropCmptRef.instance.hide():b(void 0);e.subscribe(()=>{let{nativeElement:n}=this._windowCmptRef.location;n.parentNode.removeChild(n),this._windowCmptRef.destroy(),this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._contentRef=null}),i.subscribe(()=>{if(this._backdropCmptRef){let{nativeElement:n}=this._backdropCmptRef.location;n.parentNode.removeChild(n),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),Yr(e,i).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}},Yc=function(t){return t[t.BACKDROP_CLICK=0]="BACKDROP_CLICK",t[t.ESC=1]="ESC",t}(Yc||{}),Oy=(()=>{let e=class e{constructor(){this._document=d(H),this._elRef=d(ae),this._zone=d($),this._closed$=new L,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new F,this.shown=new L,this.hidden=new L}get fullscreenClass(){return this.fullscreen===!0?" modal-fullscreen":oo(this.fullscreen)?` modal-fullscreen-${this.fullscreen}-down`:""}dismiss(n){this.dismissEvent.emit(n)}ngOnInit(){this._elWithFocus=this._document.activeElement,this._zone.onStable.asObservable().pipe(Te(1)).subscribe(()=>{this._show()})}ngOnDestroy(){this._disableEventHandling()}hide(){let{nativeElement:n}=this._elRef,r={animation:this.animation,runningTransition:"stop"},s=bt(this._zone,n,()=>n.classList.remove("show"),r),o=bt(this._zone,this._dialogEl.nativeElement,()=>{},r),a=Yr(s,o);return a.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),a}_show(){let n={animation:this.animation,runningTransition:"continue"},r=bt(this._zone,this._elRef.nativeElement,(o,a)=>{a&&Qc(o),o.classList.add("show")},n),s=bt(this._zone,this._dialogEl.nativeElement,()=>{},n);Yr(r,s).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){let{nativeElement:n}=this._elRef;this._zone.runOutsideAngular(()=>{De(n,"keydown").pipe(K(this._closed$),ve(s=>s.which===Ae.Escape)).subscribe(s=>{this.keyboard?requestAnimationFrame(()=>{s.defaultPrevented||this._zone.run(()=>this.dismiss(Yc.ESC))}):this.backdrop==="static"&&this._bumpBackdrop()});let r=!1;De(this._dialogEl.nativeElement,"mousedown").pipe(K(this._closed$),V(()=>r=!1),oe(()=>De(n,"mouseup").pipe(K(this._closed$),Te(1))),ve(({target:s})=>n===s)).subscribe(()=>{r=!0}),De(n,"click").pipe(K(this._closed$)).subscribe(({target:s})=>{n===s&&(this.backdrop==="static"?this._bumpBackdrop():this.backdrop===!0&&!r&&this._zone.run(()=>this.dismiss(Yc.BACKDROP_CLICK))),r=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){let{nativeElement:n}=this._elRef;if(!n.contains(document.activeElement)){let r=n.querySelector("[ngbAutofocus]"),s=Vf(n)[0];(r||s||n).focus()}}_restoreFocus(){let n=this._document.body,r=this._elWithFocus,s;r&&r.focus&&n.contains(r)?s=r:s=n,this._zone.runOutsideAngular(()=>{setTimeout(()=>s.focus()),this._elWithFocus=null})}_bumpBackdrop(){this.backdrop==="static"&&bt(this._zone,this._elRef.nativeElement,({classList:n})=>(n.add("modal-static"),()=>n.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=Ye({type:e,selectors:[["ngb-modal-window"]],viewQuery:function(r,s){if(r&1&&nd(Fv,7),r&2){let o;pt(o=gt())&&(s._dialogEl=o.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(r,s){r&2&&(Ce("aria-modal",!0)("aria-labelledby",s.ariaLabelledBy)("aria-describedby",s.ariaDescribedBy),ye("modal d-block"+(s.windowClass?" "+s.windowClass:"")),Y("fade",s.animation))},inputs:{animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",backdrop:"backdrop",centered:"centered",fullscreen:"fullscreen",keyboard:"keyboard",scrollable:"scrollable",size:"size",windowClass:"windowClass",modalDialogClass:"modalDialogClass"},outputs:{dismissEvent:"dismiss"},standalone:!0,features:[Xe],ngContentSelectors:kf,decls:4,vars:2,consts:[["dialog",""],["role","document"],[1,"modal-content"]],template:function(r,s){r&1&&(la(),he(0,"div",1,0)(2,"div",2),ua(3),Ie()()),r&2&&ye("modal-dialog"+(s.size?" modal-"+s.size:"")+(s.centered?" modal-dialog-centered":"")+s.fullscreenClass+(s.scrollable?" modal-dialog-scrollable":"")+(s.modalDialogClass?" "+s.modalDialogClass:""))},styles:[`ngb-modal-window .component-host-scrollable{display:flex;flex-direction:column;overflow:hidden}
|
|
2
|
+
`).forEach(i=>{let n=i.indexOf(":");if(n>0){let r=i.slice(0,n),s=r.toLowerCase(),o=i.slice(n+1).trim();this.maybeSetNormalizedName(r,s),this.headers.has(s)?this.headers.get(s).push(o):this.headers.set(s,[o])}})}: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 s=e.value;if(!s)this.headers.delete(i),this.normalizedNames.delete(i);else{let o=this.headers.get(i);if(!o)return;o=o.filter(a=>s.indexOf(a)===-1),o.length===0?(this.headers.delete(i),this.normalizedNames.delete(i)):this.headers.set(i,o)}break}}setHeaderEntries(e,i){let n=(Array.isArray(i)?i:[i]).map(s=>s.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 ya=class{encodeKey(e){return _d(e)}encodeValue(e){return _d(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function mg(t,e){let i=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(r=>{let s=r.indexOf("="),[o,a]=s==-1?[e.decodeKey(r),""]:[e.decodeKey(r.slice(0,s)),e.decodeValue(r.slice(s+1))],c=i.get(o)||[];c.push(a),i.set(o,c)}),i}var _g=/%(\d[a-f0-9])/gi,vg={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function _d(t){return encodeURIComponent(t).replace(_g,(e,i)=>vg[i]??e)}function ls(t){return`${t}`}var Wt=class t{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new ya,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=mg(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(ls):[ls(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(s=>{i.push({param:n,value:s,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(ls(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(ls(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 ba=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 yg(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function vd(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function yd(t){return typeof Blob<"u"&&t instanceof Blob}function bd(t){return typeof FormData<"u"&&t instanceof FormData}function bg(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var Ui=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 s;if(yg(this.method)||r?(this.body=n!==void 0?n:null,s=r):s=n,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params),this.transferCache=s.transferCache),this.headers??=new At,this.context??=new ba,!this.params)this.params=new Wt,this.urlWithParams=i;else{let o=this.params.toString();if(o.length===0)this.urlWithParams=i;else{let a=i.indexOf("?"),c=a===-1?"?":a<i.length-1?"&":"";this.urlWithParams=i+c+o}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||vd(this.body)||yd(this.body)||bd(this.body)||bg(this.body)?this.body:this.body instanceof Wt?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||bd(this.body)?null:yd(this.body)?this.body.type||null:vd(this.body)?null:typeof this.body=="string"?"text/plain":this.body instanceof Wt?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?"application/json":null}clone(e={}){let i=e.method||this.method,n=e.url||this.url,r=e.responseType||this.responseType,s=e.transferCache??this.transferCache,o=e.body!==void 0?e.body:this.body,a=e.withCredentials??this.withCredentials,c=e.reportProgress??this.reportProgress,l=e.headers||this.headers,u=e.params||this.params,f=e.context??this.context;return e.setHeaders!==void 0&&(l=Object.keys(e.setHeaders).reduce((h,g)=>h.set(g,e.setHeaders[g]),l)),e.setParams&&(u=Object.keys(e.setParams).reduce((h,g)=>h.set(g,e.setParams[g]),u)),new t(i,n,o,{params:u,headers:l,context:f,reportProgress:c,responseType:r,withCredentials:a,transferCache:s})}},qt=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}(qt||{}),$i=class{constructor(e,i=200,n="OK"){this.headers=e.headers||new At,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}},ds=class t extends $i{constructor(e={}){super(e),this.type=qt.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})}},Hi=class t extends $i{constructor(e={}){super(e),this.type=qt.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})}},_t=class extends $i{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}},Cd=200,wg=204;function va(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 Ea=(()=>{let e=class e{constructor(n){this.handler=n}request(n,r,s={}){let o;if(n instanceof Ui)o=n;else{let l;s.headers instanceof At?l=s.headers:l=new At(s.headers);let u;s.params&&(s.params instanceof Wt?u=s.params:u=new Wt({fromObject:s.params})),o=new Ui(n,r,s.body!==void 0?s.body:null,{headers:l,context:s.context,params:u,reportProgress:s.reportProgress,responseType:s.responseType||"json",withCredentials:s.withCredentials,transferCache:s.transferCache})}let a=b(o).pipe(jt(l=>this.handler.handle(l)));if(n instanceof Ui||s.observe==="events")return a;let c=a.pipe(ve(l=>l instanceof Hi));switch(s.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return c.pipe(S(l=>{if(l.body!==null&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return c.pipe(S(l=>{if(l.body!==null&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return c.pipe(S(l=>{if(l.body!==null&&typeof l.body!="string")throw new Error("Response is not a string.");return l.body}));case"json":default:return c.pipe(S(l=>l.body))}case"response":return c;default:throw new Error(`Unreachable: unhandled observe type ${s.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 Wt().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,s={}){return this.request("PATCH",n,va(s,r))}post(n,r,s={}){return this.request("POST",n,va(s,r))}put(n,r,s={}){return this.request("PUT",n,va(s,r))}};e.\u0275fac=function(r){return new(r||e)(T(ji))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})(),Dg=/^\)\]\}',?\n/,Eg="X-Request-URL";function wd(t){if(t.url)return t.url;let e=Eg.toLocaleLowerCase();return t.headers.get(e)}var Tg=(()=>{let e=class e{constructor(){this.fetchImpl=d(wa,{optional:!0})?.fetch??fetch.bind(globalThis),this.ngZone=d($)}handle(n){return new xe(r=>{let s=new AbortController;return this.doRequest(n,s.signal,r).then(Da,o=>r.error(new _t({error:o}))),()=>s.abort()})}doRequest(n,r,s){return p(this,null,function*(){let o=this.createRequestInit(n),a;try{let v=this.ngZone.runOutsideAngular(()=>this.fetchImpl(n.urlWithParams,m({signal:r},o)));Cg(v),s.next({type:qt.Sent}),a=yield v}catch(v){s.error(new _t({error:v,status:v.status??0,statusText:v.statusText,url:n.urlWithParams,headers:v.headers}));return}let c=new At(a.headers),l=a.statusText,u=wd(a)??n.urlWithParams,f=a.status,h=null;if(n.reportProgress&&s.next(new ds({headers:c,status:f,statusText:l,url:u})),a.body){let v=a.headers.get("content-length"),E=[],_=a.body.getReader(),y=0,P,M,D=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>p(this,null,function*(){for(;;){let{done:O,value:B}=yield _.read();if(O)break;if(E.push(B),y+=B.length,n.reportProgress){M=n.responseType==="text"?(M??"")+(P??=new TextDecoder).decode(B,{stream:!0}):void 0;let q=()=>s.next({type:qt.DownloadProgress,total:v?+v:void 0,loaded:y,partialText:M});D?D.run(q):q()}}}));let N=this.concatChunks(E,y);try{let O=a.headers.get("Content-Type")??"";h=this.parseBody(n,N,O)}catch(O){s.error(new _t({error:O,headers:new At(a.headers),status:a.status,statusText:a.statusText,url:wd(a)??n.urlWithParams}));return}}f===0&&(f=h?Cd:0),f>=200&&f<300?(s.next(new Hi({body:h,headers:c,status:f,statusText:l,url:u})),s.complete()):s.error(new _t({error:h,headers:c,status:f,statusText:l,url:u}))})}parseBody(n,r,s){switch(n.responseType){case"json":let o=new TextDecoder().decode(r).replace(Dg,"");return o===""?null:JSON.parse(o);case"text":return new TextDecoder().decode(r);case"blob":return new Blob([r],{type:s});case"arraybuffer":return r.buffer}}createRequestInit(n){let r={},s=n.withCredentials?"include":void 0;if(n.headers.forEach((o,a)=>r[o]=a.join(",")),n.headers.has("Accept")||(r.Accept="application/json, text/plain, */*"),!n.headers.has("Content-Type")){let o=n.detectContentTypeHeader();o!==null&&(r["Content-Type"]=o)}return{body:n.serializeBody(),method:n.method,headers:r,credentials:s}}concatChunks(n,r){let s=new Uint8Array(r),o=0;for(let a of n)s.set(a,o),o+=a.length;return s}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})(),wa=class{};function Da(){}function Cg(t){t.then(Da,Da)}function Id(t,e){return e(t)}function Ig(t,e){return(i,n)=>e.intercept(i,{handle:r=>t(r,n)})}function Sg(t,e,i){return(n,r)=>Be(i,()=>e(n,s=>t(s,r)))}var Ag=new R(""),fs=new R(""),Og=new R(""),Sd=new R("",{providedIn:"root",factory:()=>!0});function Rg(){let t=null;return(e,i)=>{t===null&&(t=(d(Ag,{optional:!0})??[]).reduceRight(Ig,Id));let n=d(Ri);if(d(Sd)){let s=n.add();return t(e,i).pipe($t(()=>n.remove(s)))}else return t(e,i)}}var Dd=(()=>{let e=class e extends ji{constructor(n,r){super(),this.backend=n,this.injector=r,this.chain=null,this.pendingTasks=d(Ri),this.contributeToStability=d(Sd)}handle(n){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(fs),...this.injector.get(Og,[])]));this.chain=r.reduceRight((s,o)=>Sg(s,o,this.injector),Id)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(n,s=>this.backend.handle(s)).pipe($t(()=>this.pendingTasks.remove(r)))}else return this.chain(n,r=>this.backend.handle(r))}};e.\u0275fac=function(r){return new(r||e)(T(us),T(ut))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})();var Pg=/^\)\]\}',?\n/;function Mg(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}var Ed=(()=>{let e=class e{constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new j(-2800,!1);let r=this.xhrFactory;return(r.\u0275loadImpl?X(r.\u0275loadImpl()):b(null)).pipe(oe(()=>new xe(o=>{let a=r.build();if(a.open(n.method,n.urlWithParams),n.withCredentials&&(a.withCredentials=!0),n.headers.forEach((_,y)=>a.setRequestHeader(_,y.join(","))),n.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let _=n.detectContentTypeHeader();_!==null&&a.setRequestHeader("Content-Type",_)}if(n.responseType){let _=n.responseType.toLowerCase();a.responseType=_!=="json"?_:"text"}let c=n.serializeBody(),l=null,u=()=>{if(l!==null)return l;let _=a.statusText||"OK",y=new At(a.getAllResponseHeaders()),P=Mg(a)||n.url;return l=new ds({headers:y,status:a.status,statusText:_,url:P}),l},f=()=>{let{headers:_,status:y,statusText:P,url:M}=u(),D=null;y!==wg&&(D=typeof a.response>"u"?a.responseText:a.response),y===0&&(y=D?Cd:0);let N=y>=200&&y<300;if(n.responseType==="json"&&typeof D=="string"){let O=D;D=D.replace(Pg,"");try{D=D!==""?JSON.parse(D):null}catch(B){D=O,N&&(N=!1,D={error:B,text:D})}}N?(o.next(new Hi({body:D,headers:_,status:y,statusText:P,url:M||void 0})),o.complete()):o.error(new _t({error:D,headers:_,status:y,statusText:P,url:M||void 0}))},h=_=>{let{url:y}=u(),P=new _t({error:_,status:a.status||0,statusText:a.statusText||"Unknown Error",url:y||void 0});o.error(P)},g=!1,v=_=>{g||(o.next(u()),g=!0);let y={type:qt.DownloadProgress,loaded:_.loaded};_.lengthComputable&&(y.total=_.total),n.responseType==="text"&&a.responseText&&(y.partialText=a.responseText),o.next(y)},E=_=>{let y={type:qt.UploadProgress,loaded:_.loaded};_.lengthComputable&&(y.total=_.total),o.next(y)};return a.addEventListener("load",f),a.addEventListener("error",h),a.addEventListener("timeout",h),a.addEventListener("abort",h),n.reportProgress&&(a.addEventListener("progress",v),c!==null&&a.upload&&a.upload.addEventListener("progress",E)),a.send(c),o.next({type:qt.Sent}),()=>{a.removeEventListener("error",h),a.removeEventListener("abort",h),a.removeEventListener("load",f),a.removeEventListener("timeout",h),n.reportProgress&&(a.removeEventListener("progress",v),c!==null&&a.upload&&a.upload.removeEventListener("progress",E)),a.readyState!==a.DONE&&a.abort()}})))}};e.\u0275fac=function(r){return new(r||e)(T(os))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})(),Ad=new R(""),Ng="XSRF-TOKEN",kg=new R("",{providedIn:"root",factory:()=>Ng}),xg="X-XSRF-TOKEN",Fg=new R("",{providedIn:"root",factory:()=>xg}),hs=class{},Lg=(()=>{let e=class e{constructor(n,r,s){this.doc=n,this.platform=r,this.cookieName=s,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=rs(n,this.cookieName),this.lastCookieString=n),this.lastToken}};e.\u0275fac=function(r){return new(r||e)(T(H),T(dt),T(kg))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})();function Bg(t,e){let i=t.url.toLowerCase();if(!d(Ad)||t.method==="GET"||t.method==="HEAD"||i.startsWith("http://")||i.startsWith("https://"))return e(t);let n=d(hs).getToken(),r=d(Fg);return n!=null&&!t.headers.has(r)&&(t=t.clone({headers:t.headers.set(r,n)})),e(t)}var Ta=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}(Ta||{});function Od(t,e){return{\u0275kind:t,\u0275providers:e}}function nE(...t){let e=[Ea,Ed,Dd,{provide:ji,useExisting:Dd},{provide:us,useFactory:()=>d(Tg,{optional:!0})??d(Ed)},{provide:fs,useValue:Bg,multi:!0},{provide:Ad,useValue:!0},{provide:hs,useClass:Lg}];for(let i of t)e.push(...i.\u0275providers);return Qe(e)}function iE(t){return Od(Ta.Interceptors,t.map(e=>({provide:fs,useValue:e,multi:!0})))}var Td=new R("");function rE(){return Od(Ta.LegacyInterceptors,[{provide:Td,useFactory:Rg},{provide:fs,useExisting:Td,multi:!0}])}var Sa=class extends ud{constructor(){super(...arguments),this.supportsDOMEvents=!0}},Aa=class t extends Sa{static makeCurrent(){ld(new t)}onAndCancel(e,i,n){return e.addEventListener(i,n),()=>{e.removeEventListener(i,n)}}dispatchEvent(e,i){e.dispatchEvent(i)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}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=Ug();return i==null?null:jg(i)}resetBaseElement(){Gi=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return rs(document.cookie,e)}},Gi=null;function Ug(){return Gi=Gi||document.querySelector("base"),Gi?Gi.getAttribute("href"):null}function jg(t){return new URL(t,document.baseURI).pathname}var $g=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})(),ps=new R(""),Nd=(()=>{let e=class e{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(s=>{s.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,s){return this._findPluginFor(r).addEventListener(n,r,s)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(o=>o.supports(n)),!r)throw new j(5101,!1);return this._eventNameToPlugin.set(n,r),r}};e.\u0275fac=function(r){return new(r||e)(T(ps),T($))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})(),zi=class{constructor(e){this._doc=e}},Ca="ng-app-id",kd=(()=>{let e=class e{constructor(n,r,s,o={}){this.doc=n,this.appId=r,this.nonce=s,this.platformId=o,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=ss(o),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(s=>s.remove()),r.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${Ca}="${this.appId}"]`);if(n?.length){let r=new Map;return n.forEach(s=>{s.textContent!=null&&r.set(s.textContent,s)}),r}return null}changeUsageCount(n,r){let s=this.styleRef;if(s.has(n)){let o=s.get(n);return o.usage+=r,o.usage}return s.set(n,{usage:r,elements:[]}),r}getStyleElement(n,r){let s=this.styleNodesInDOM,o=s?.get(r);if(o?.parentNode===n)return s.delete(r),o.removeAttribute(Ca),o;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=r,this.platformIsServer&&a.setAttribute(Ca,this.appId),n.appendChild(a),a}}addStyleToHost(n,r){let s=this.getStyleElement(n,r),o=this.styleRef,a=o.get(r)?.elements;a?a.push(s):o.set(r,{elements:[s],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}};e.\u0275fac=function(r){return new(r||e)(T(H),T(ea),T(ta,8),T(dt))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})(),Ia={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"},Ra=/%COMP%/g,xd="%COMP%",Hg=`_nghost-${xd}`,Gg=`_ngcontent-${xd}`,zg=!0,Wg=new R("",{providedIn:"root",factory:()=>zg});function qg(t){return Gg.replace(Ra,t)}function Jg(t){return Hg.replace(Ra,t)}function Fd(t,e){return e.map(i=>i.replace(Ra,t))}var Rd=(()=>{let e=class e{constructor(n,r,s,o,a,c,l,u=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=s,this.removeStylesOnCompDestroy=o,this.doc=a,this.platformId=c,this.ngZone=l,this.nonce=u,this.rendererByCompId=new Map,this.platformIsServer=ss(c),this.defaultRenderer=new Wi(n,a,l,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Ai.ShadowDom&&(r=k(m({},r),{encapsulation:Ai.Emulated}));let s=this.getOrCreateRenderer(n,r);return s instanceof gs?s.applyToHost(n):s instanceof qi&&s.applyStyles(),s}getOrCreateRenderer(n,r){let s=this.rendererByCompId,o=s.get(r.id);if(!o){let a=this.doc,c=this.ngZone,l=this.eventManager,u=this.sharedStylesHost,f=this.removeStylesOnCompDestroy,h=this.platformIsServer;switch(r.encapsulation){case Ai.Emulated:o=new gs(l,u,r,this.appId,f,a,c,h);break;case Ai.ShadowDom:return new Oa(l,u,n,r,a,c,this.nonce,h);default:o=new qi(l,u,r,f,a,c,h);break}s.set(r.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(r){return new(r||e)(T(Nd),T(kd),T(ea),T(Wg),T(H),T(dt),T($),T(ta))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})(),Wi=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(Ia[i]||i,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,i){(Pd(e)?e.content:e).appendChild(i)}insertBefore(e,i,n){e&&(Pd(e)?e.content:e).insertBefore(i,n)}removeChild(e,i){e&&e.removeChild(i)}selectRootElement(e,i){let n=typeof e=="string"?this.doc.querySelector(e):e;if(!n)throw new j(-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 s=Ia[r];s?e.setAttributeNS(s,i,n):e.setAttribute(i,n)}else e.setAttribute(i,n)}removeAttribute(e,i,n){if(n){let r=Ia[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&(Pi.DashCase|Pi.Important)?e.style.setProperty(i,n,r&Pi.Important?"important":""):e.style[i]=n}removeStyle(e,i,n){n&Pi.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=Gn().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 Pd(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var Oa=class extends Wi{constructor(e,i,n,r,s,o,a,c){super(e,s,o,c),this.sharedStylesHost=i,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let l=Fd(r.id,r.styles);for(let u of l){let f=document.createElement("style");a&&f.setAttribute("nonce",a),f.textContent=u,this.shadowRoot.appendChild(f)}}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(this.nodeOrShadowRoot(e),i)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},qi=class extends Wi{constructor(e,i,n,r,s,o,a,c){super(e,s,o,a),this.sharedStylesHost=i,this.removeStylesOnCompDestroy=r,this.styles=c?Fd(c,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},gs=class extends qi{constructor(e,i,n,r,s,o,a,c){let l=r+"-"+n.id;super(e,i,n,s,o,a,c,l),this.contentAttr=qg(l),this.hostAttr=Jg(l)}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}},Kg=(()=>{let e=class e extends zi{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,s){return n.addEventListener(r,s,!1),()=>this.removeEventListener(n,r,s)}removeEventListener(n,r,s){return n.removeEventListener(r,s)}};e.\u0275fac=function(r){return new(r||e)(T(H))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})(),Yg=(()=>{let e=class e extends zi{constructor(n){super(n),this.delegate=d(od,{optional:!0})}supports(n){return this.delegate?this.delegate.supports(n):!1}addEventListener(n,r,s){return this.delegate.addEventListener(n,r,s)}removeEventListener(n,r,s){return this.delegate.removeEventListener(n,r,s)}};e.\u0275fac=function(r){return new(r||e)(T(H))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})(),Md=["alt","control","meta","shift"],Qg={"\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"},Zg={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},Xg=(()=>{let e=class e extends zi{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,s){let o=e.parseEventName(r),a=e.eventCallback(o.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Gn().onAndCancel(n,o.domEventName,a))}static parseEventName(n){let r=n.toLowerCase().split("."),s=r.shift();if(r.length===0||!(s==="keydown"||s==="keyup"))return null;let o=e._normalizeKey(r.pop()),a="",c=r.indexOf("code");if(c>-1&&(r.splice(c,1),a="code."),Md.forEach(u=>{let f=r.indexOf(u);f>-1&&(r.splice(f,1),a+=u+".")}),a+=o,r.length!=0||o.length===0)return null;let l={};return l.domEventName=s,l.fullKey=a,l}static matchEventFullKeyCode(n,r){let s=Qg[n.key]||n.key,o="";return r.indexOf("code.")>-1&&(s=n.code,o="code."),s==null||!s?!1:(s=s.toLowerCase(),s===" "?s="space":s==="."&&(s="dot"),Md.forEach(a=>{if(a!==s){let c=Zg[a];c(n)&&(o+=a+".")}}),o+=s,o===r)}static eventCallback(n,r,s){return o=>{e.matchEventFullKeyCode(o,n)&&s.runGuarded(()=>r(o))}}static _normalizeKey(n){return n==="esc"?"escape":n}};e.\u0275fac=function(r){return new(r||e)(T(H))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})();function SE(t,e){return sd(m({rootComponent:t},em(e)))}function em(t){return{appProviders:[...sm,...t?.providers??[]],platformProviders:rm}}function tm(){Aa.makeCurrent()}function nm(){return new Xo}function im(){return Vu(document),document}var rm=[{provide:dt,useValue:pd},{provide:Uu,useValue:tm,multi:!0},{provide:H,useFactory:im,deps:[]}];var sm=[{provide:Bu,useValue:"root"},{provide:Xo,useFactory:nm,deps:[]},{provide:ps,useClass:Kg,multi:!0,deps:[H,$,dt]},{provide:ps,useClass:Xg,multi:!0,deps:[H]},{provide:ps,useClass:Yg,multi:!0},Rd,kd,Nd,{provide:Qu,useExisting:Rd},{provide:os,useClass:$g,deps:[]},[]];var Ld=(()=>{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)(T(H))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Pa=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=w({token:e,factory:function(r){let s=null;return r?s=new(r||e):s=T(om),s},providedIn:"root"});let t=e;return t})(),om=(()=>{let e=class e extends Pa{constructor(n){super(),this._doc=n}sanitize(n,r){if(r==null)return null;switch(n){case It.NONE:return r;case It.HTML:return Un(r,"HTML")?Vn(r):qu(this._doc,String(r)).toString();case It.STYLE:return Un(r,"Style")?Vn(r):r;case It.SCRIPT:if(Un(r,"Script"))return Vn(r);throw new j(5200,!1);case It.URL:return Un(r,"URL")?Vn(r):Wu(String(r));case It.RESOURCE_URL:if(Un(r,"ResourceURL"))return Vn(r);throw new j(5201,!1);default:throw new j(5202,!1)}}bypassSecurityTrustHtml(n){return ju(n)}bypassSecurityTrustStyle(n){return $u(n)}bypassSecurityTrustScript(n){return Hu(n)}bypassSecurityTrustUrl(n){return Gu(n)}bypassSecurityTrustResourceUrl(n){return zu(n)}};e.\u0275fac=function(r){return new(r||e)(T(H))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var A="primary",cr=Symbol("RouteTitle"),Fa=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 Yn(t){return new Fa(t)}function am(t,e,i){let n=i.path.split("/");if(n.length>t.length||i.pathMatch==="full"&&(e.hasChildren()||n.length<t.length))return null;let r={};for(let s=0;s<n.length;s++){let o=n[s],a=t[s];if(o[0]===":")r[o.substring(1)]=a;else if(o!==a.path)return null}return{consumed:t.slice(0,n.length),posParams:r}}function cm(t,e){if(t.length!==e.length)return!1;for(let i=0;i<t.length;++i)if(!vt(t[i],e[i]))return!1;return!0}function vt(t,e){let i=t?La(t):void 0,n=e?La(e):void 0;if(!i||!n||i.length!=n.length)return!1;let r;for(let s=0;s<i.length;s++)if(r=i[s],!Yd(t[r],e[r]))return!1;return!0}function La(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function Yd(t,e){if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;let i=[...t].sort(),n=[...e].sort();return i.every((r,s)=>n[s]===r)}else return t===e}function Qd(t){return t.length>0?t[t.length-1]:null}function Yt(t){return Tu(t)?t:es(t)?X(Promise.resolve(t)):b(t)}var lm={exact:Xd,subset:eh},Zd={exact:um,subset:dm,ignored:()=>!0};function Vd(t,e,i){return lm[i.paths](t.root,e.root,i.matrixParams)&&Zd[i.queryParams](t.queryParams,e.queryParams)&&!(i.fragment==="exact"&&t.fragment!==e.fragment)}function um(t,e){return vt(t,e)}function Xd(t,e,i){if(!pn(t.segments,e.segments)||!vs(t.segments,e.segments,i)||t.numberOfChildren!==e.numberOfChildren)return!1;for(let n in e.children)if(!t.children[n]||!Xd(t.children[n],e.children[n],i))return!1;return!0}function dm(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(i=>Yd(t[i],e[i]))}function eh(t,e,i){return th(t,e,e.segments,i)}function th(t,e,i,n){if(t.segments.length>i.length){let r=t.segments.slice(0,i.length);return!(!pn(r,i)||e.hasChildren()||!vs(r,i,n))}else if(t.segments.length===i.length){if(!pn(t.segments,i)||!vs(t.segments,i,n))return!1;for(let r in e.children)if(!t.children[r]||!eh(t.children[r],e.children[r],n))return!1;return!0}else{let r=i.slice(0,t.segments.length),s=i.slice(t.segments.length);return!pn(t.segments,r)||!vs(t.segments,r,n)||!t.children[A]?!1:th(t.children[A],e,s,n)}}function vs(t,e,i){return e.every((n,r)=>Zd[i](t[r].parameters,n.parameters))}var Rt=class{constructor(e=new U([],{}),i={},n=null){this.root=e,this.queryParams=i,this.fragment=n}get queryParamMap(){return this._queryParamMap??=Yn(this.queryParams),this._queryParamMap}toString(){return pm.serialize(this)}},U=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 ys(this)}},fn=class{constructor(e,i){this.path=e,this.parameters=i}get parameterMap(){return this._parameterMap??=Yn(this.parameters),this._parameterMap}toString(){return ih(this)}};function hm(t,e){return pn(t,e)&&t.every((i,n)=>vt(i.parameters,e[n].parameters))}function pn(t,e){return t.length!==e.length?!1:t.every((i,n)=>i.path===e[n].path)}function fm(t,e){let i=[];return Object.entries(t.children).forEach(([n,r])=>{n===A&&(i=i.concat(e(r,n)))}),Object.entries(t.children).forEach(([n,r])=>{n!==A&&(i=i.concat(e(r,n)))}),i}var lr=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=w({token:e,factory:()=>new Qn,providedIn:"root"});let t=e;return t})(),Qn=class{parse(e){let i=new Va(e);return new Rt(i.parseRootSegment(),i.parseQueryParams(),i.parseFragment())}serialize(e){let i=`/${Ji(e.root,!0)}`,n=_m(e.queryParams),r=typeof e.fragment=="string"?`#${gm(e.fragment)}`:"";return`${i}${n}${r}`}},pm=new Qn;function ys(t){return t.segments.map(e=>ih(e)).join("/")}function Ji(t,e){if(!t.hasChildren())return ys(t);if(e){let i=t.children[A]?Ji(t.children[A],!1):"",n=[];return Object.entries(t.children).forEach(([r,s])=>{r!==A&&n.push(`${r}:${Ji(s,!1)}`)}),n.length>0?`${i}(${n.join("//")})`:i}else{let i=fm(t,(n,r)=>r===A?[Ji(t.children[A],!1)]:[`${r}:${Ji(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[A]!=null?`${ys(t)}/${i[0]}`:`${ys(t)}/(${i.join("//")})`}}function nh(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ms(t){return nh(t).replace(/%3B/gi,";")}function gm(t){return encodeURI(t)}function Ba(t){return nh(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function bs(t){return decodeURIComponent(t)}function Ud(t){return bs(t.replace(/\+/g,"%20"))}function ih(t){return`${Ba(t.path)}${mm(t.parameters)}`}function mm(t){return Object.entries(t).map(([e,i])=>`;${Ba(e)}=${Ba(i)}`).join("")}function _m(t){let e=Object.entries(t).map(([i,n])=>Array.isArray(n)?n.map(r=>`${ms(i)}=${ms(r)}`).join("&"):`${ms(i)}=${ms(n)}`).filter(i=>i);return e.length?`?${e.join("&")}`:""}var vm=/^[^\/()?;#]+/;function Ma(t){let e=t.match(vm);return e?e[0]:""}var ym=/^[^\/()?;=#]+/;function bm(t){let e=t.match(ym);return e?e[0]:""}var wm=/^[^=?&#]+/;function Dm(t){let e=t.match(wm);return e?e[0]:""}var Em=/^[^&#]+/;function Tm(t){let e=t.match(Em);return e?e[0]:""}var Va=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new U([],{}):new U([],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[A]=new U(e,i)),n}parseSegment(){let e=Ma(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new j(4009,!1);return this.capture(e),new fn(bs(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let i=bm(this.remaining);if(!i)return;this.capture(i);let n="";if(this.consumeOptional("=")){let r=Ma(this.remaining);r&&(n=r,this.capture(n))}e[bs(i)]=bs(n)}parseQueryParam(e){let i=Dm(this.remaining);if(!i)return;this.capture(i);let n="";if(this.consumeOptional("=")){let o=Tm(this.remaining);o&&(n=o,this.capture(n))}let r=Ud(i),s=Ud(n);if(e.hasOwnProperty(r)){let o=e[r];Array.isArray(o)||(o=[o],e[r]=o),o.push(s)}else e[r]=s}parseParens(e){let i={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=Ma(this.remaining),r=this.remaining[n.length];if(r!=="/"&&r!==")"&&r!==";")throw new j(4010,!1);let s;n.indexOf(":")>-1?(s=n.slice(0,n.indexOf(":")),this.capture(s),this.capture(":")):e&&(s=A);let o=this.parseChildren();i[s]=Object.keys(o).length===1?o[A]:new U([],o),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 j(4011,!1)}};function rh(t){return t.segments.length>0?new U([],{[A]:t}):t}function sh(t){let e={};for(let[n,r]of Object.entries(t.children)){let s=sh(r);if(n===A&&s.segments.length===0&&s.hasChildren())for(let[o,a]of Object.entries(s.children))e[o]=a;else(s.segments.length>0||s.hasChildren())&&(e[n]=s)}let i=new U(t.segments,e);return Cm(i)}function Cm(t){if(t.numberOfChildren===1&&t.children[A]){let e=t.children[A];return new U(t.segments.concat(e.segments),e.children)}return t}function gn(t){return t instanceof Rt}function Im(t,e,i=null,n=null){let r=oh(t);return ah(r,e,i,n)}function oh(t){let e;function i(s){let o={};for(let c of s.children){let l=i(c);o[c.outlet]=l}let a=new U(s.url,o);return s===t&&(e=a),a}let n=i(t.root),r=rh(n);return e??r}function ah(t,e,i,n){let r=t;for(;r.parent;)r=r.parent;if(e.length===0)return Na(r,r,r,i,n);let s=Sm(e);if(s.toRoot())return Na(r,r,new U([],{}),i,n);let o=Am(s,r,t),a=o.processChildren?Qi(o.segmentGroup,o.index,s.commands):lh(o.segmentGroup,o.index,s.commands);return Na(r,o.segmentGroup,a,i,n)}function ws(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function er(t){return typeof t=="object"&&t!=null&&t.outlets}function Na(t,e,i,n,r){let s={};n&&Object.entries(n).forEach(([c,l])=>{s[c]=Array.isArray(l)?l.map(u=>`${u}`):`${l}`});let o;t===e?o=i:o=ch(t,e,i);let a=rh(sh(o));return new Rt(a,s,r)}function ch(t,e,i){let n={};return Object.entries(t.children).forEach(([r,s])=>{s===e?n[r]=i:n[r]=ch(s,e,i)}),new U(t.segments,n)}var Ds=class{constructor(e,i,n){if(this.isAbsolute=e,this.numberOfDoubleDots=i,this.commands=n,e&&n.length>0&&ws(n[0]))throw new j(4003,!1);let r=n.find(er);if(r&&r!==Qd(n))throw new j(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Sm(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new Ds(!0,0,t);let e=0,i=!1,n=t.reduce((r,s,o)=>{if(typeof s=="object"&&s!=null){if(s.outlets){let a={};return Object.entries(s.outlets).forEach(([c,l])=>{a[c]=typeof l=="string"?l.split("/"):l}),[...r,{outlets:a}]}if(s.segmentPath)return[...r,s.segmentPath]}return typeof s!="string"?[...r,s]:o===0?(s.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?i=!0:a===".."?e++:a!=""&&r.push(a))}),r):[...r,s]},[]);return new Ds(i,e,n)}var qn=class{constructor(e,i,n){this.segmentGroup=e,this.processChildren=i,this.index=n}};function Am(t,e,i){if(t.isAbsolute)return new qn(e,!0,0);if(!i)return new qn(e,!1,NaN);if(i.parent===null)return new qn(i,!0,0);let n=ws(t.commands[0])?0:1,r=i.segments.length-1+n;return Om(i,r,t.numberOfDoubleDots)}function Om(t,e,i){let n=t,r=e,s=i;for(;s>r;){if(s-=r,n=n.parent,!n)throw new j(4005,!1);r=n.segments.length}return new qn(n,!1,r-s)}function Rm(t){return er(t[0])?t[0].outlets:{[A]:t}}function lh(t,e,i){if(t??=new U([],{}),t.segments.length===0&&t.hasChildren())return Qi(t,e,i);let n=Pm(t,e,i),r=i.slice(n.commandIndex);if(n.match&&n.pathIndex<t.segments.length){let s=new U(t.segments.slice(0,n.pathIndex),{});return s.children[A]=new U(t.segments.slice(n.pathIndex),t.children),Qi(s,0,r)}else return n.match&&r.length===0?new U(t.segments,{}):n.match&&!t.hasChildren()?Ua(t,e,i):n.match?Qi(t,0,r):Ua(t,e,i)}function Qi(t,e,i){if(i.length===0)return new U(t.segments,{});{let n=Rm(i),r={};if(Object.keys(n).some(s=>s!==A)&&t.children[A]&&t.numberOfChildren===1&&t.children[A].segments.length===0){let s=Qi(t.children[A],e,i);return new U(t.segments,s.children)}return Object.entries(n).forEach(([s,o])=>{typeof o=="string"&&(o=[o]),o!==null&&(r[s]=lh(t.children[s],e,o))}),Object.entries(t.children).forEach(([s,o])=>{n[s]===void 0&&(r[s]=o)}),new U(t.segments,r)}}function Pm(t,e,i){let n=0,r=e,s={match:!1,pathIndex:0,commandIndex:0};for(;r<t.segments.length;){if(n>=i.length)return s;let o=t.segments[r],a=i[n];if(er(a))break;let c=`${a}`,l=n<i.length-1?i[n+1]:null;if(r>0&&c===void 0)break;if(c&&l&&typeof l=="object"&&l.outlets===void 0){if(!$d(c,l,o))return s;n+=2}else{if(!$d(c,{},o))return s;n++}r++}return{match:!0,pathIndex:r,commandIndex:n}}function Ua(t,e,i){let n=t.segments.slice(0,e),r=0;for(;r<i.length;){let s=i[r];if(er(s)){let c=Mm(s.outlets);return new U(n,c)}if(r===0&&ws(i[0])){let c=t.segments[e];n.push(new fn(c.path,jd(i[0]))),r++;continue}let o=er(s)?s.outlets[A]:`${s}`,a=r<i.length-1?i[r+1]:null;o&&a&&ws(a)?(n.push(new fn(o,jd(a))),r+=2):(n.push(new fn(o,{})),r++)}return new U(n,{})}function Mm(t){let e={};return Object.entries(t).forEach(([i,n])=>{typeof n=="string"&&(n=[n]),n!==null&&(e[i]=Ua(new U([],{}),0,n))}),e}function jd(t){let e={};return Object.entries(t).forEach(([i,n])=>e[i]=`${n}`),e}function $d(t,e,i){return t==i.path&&vt(e,i.parameters)}var Zi="imperative",ce=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}(ce||{}),He=class{constructor(e,i){this.id=e,this.url=i}},Zn=class extends He{constructor(e,i,n="imperative",r=null){super(e,i),this.type=ce.NavigationStart,this.navigationTrigger=n,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},nt=class extends He{constructor(e,i,n){super(e,i),this.urlAfterRedirects=n,this.type=ce.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},ke=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(ke||{}),Es=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(Es||{}),Ot=class extends He{constructor(e,i,n,r){super(e,i),this.reason=n,this.code=r,this.type=ce.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},Kt=class extends He{constructor(e,i,n,r){super(e,i),this.reason=n,this.code=r,this.type=ce.NavigationSkipped}},tr=class extends He{constructor(e,i,n,r){super(e,i),this.error=n,this.target=r,this.type=ce.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Ts=class extends He{constructor(e,i,n,r){super(e,i),this.urlAfterRedirects=n,this.state=r,this.type=ce.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ja=class extends He{constructor(e,i,n,r){super(e,i),this.urlAfterRedirects=n,this.state=r,this.type=ce.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},$a=class extends He{constructor(e,i,n,r,s){super(e,i),this.urlAfterRedirects=n,this.state=r,this.shouldActivate=s,this.type=ce.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Ha=class extends He{constructor(e,i,n,r){super(e,i),this.urlAfterRedirects=n,this.state=r,this.type=ce.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ga=class extends He{constructor(e,i,n,r){super(e,i),this.urlAfterRedirects=n,this.state=r,this.type=ce.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},za=class{constructor(e){this.route=e,this.type=ce.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Wa=class{constructor(e){this.route=e,this.type=ce.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},qa=class{constructor(e){this.snapshot=e,this.type=ce.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ja=class{constructor(e){this.snapshot=e,this.type=ce.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ka=class{constructor(e){this.snapshot=e,this.type=ce.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ya=class{constructor(e){this.snapshot=e,this.type=ce.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Cs=class{constructor(e,i,n){this.routerEvent=e,this.position=i,this.anchor=n,this.type=ce.Scroll}toString(){let e=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${e}')`}},nr=class{},Xn=class{constructor(e,i){this.url=e,this.navigationBehaviorOptions=i}};function Nm(t,e){return t.providers&&!t._injector&&(t._injector=ra(t.providers,e,`Route: ${t.path}`)),t._injector??e}function tt(t){return t.outlet||A}function km(t,e){let i=t.filter(n=>tt(n)===e);return i.push(...t.filter(n=>tt(n)!==e)),i}function ur(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 Qa=class{get injector(){return ur(this.route?.snapshot)??this.rootInjector}set injector(e){}constructor(e){this.rootInjector=e,this.outlet=null,this.route=null,this.children=new dr(this.rootInjector),this.attachRef=null}},dr=(()=>{let e=class e{constructor(n){this.rootInjector=n,this.contexts=new Map}onChildOutletCreated(n,r){let s=this.getOrCreateContext(n);s.outlet=r,this.contexts.set(n,s)}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 Qa(this.rootInjector),this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}};e.\u0275fac=function(r){return new(r||e)(T(ut))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Is=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=Za(e,this._root);return i?i.children.map(n=>n.value):[]}firstChild(e){let i=Za(e,this._root);return i&&i.children.length>0?i.children[0].value:null}siblings(e){let i=Xa(e,this._root);return i.length<2?[]:i[i.length-2].children.map(r=>r.value).filter(r=>r!==e)}pathFromRoot(e){return Xa(e,this._root).map(i=>i.value)}};function Za(t,e){if(t===e.value)return e;for(let i of e.children){let n=Za(t,i);if(n)return n}return null}function Xa(t,e){if(t===e.value)return[e];for(let i of e.children){let n=Xa(t,i);if(n.length)return n.unshift(e),n}return[]}var Ne=class{constructor(e,i){this.value=e,this.children=i}toString(){return`TreeNode(${this.value})`}};function Wn(t){let e={};return t&&t.children.forEach(i=>e[i.value.outlet]=i),e}var Ss=class extends Is{constructor(e,i){super(e),this.snapshot=i,cc(this,e)}toString(){return this.snapshot.toString()}};function uh(t){let e=xm(t),i=new _e([new fn("",{})]),n=new _e({}),r=new _e({}),s=new _e({}),o=new _e(""),a=new yt(i,n,s,o,r,A,t,e.root);return a.snapshot=e.root,new Ss(new Ne(a,[]),e)}function xm(t){let e={},i={},n={},r="",s=new Jn([],e,n,r,i,A,t,null,{});return new Os("",new Ne(s,[]))}var yt=class{constructor(e,i,n,r,s,o,a,c){this.urlSubject=e,this.paramsSubject=i,this.queryParamsSubject=n,this.fragmentSubject=r,this.dataSubject=s,this.outlet=o,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(S(l=>l[cr]))??b(void 0),this.url=e,this.params=i,this.queryParams=n,this.fragment=r,this.data=s}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(S(e=>Yn(e))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(S(e=>Yn(e))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function As(t,e,i="emptyOnly"){let n,{routeConfig:r}=t;return e!==null&&(i==="always"||r?.path===""||!e.component&&!e.routeConfig?.loadComponent)?n={params:m(m({},e.params),t.params),data:m(m({},e.data),t.data),resolve:m(m(m(m({},t.data),e.data),r?.data),t._resolvedData)}:n={params:m({},t.params),data:m({},t.data),resolve:m(m({},t.data),t._resolvedData??{})},r&&hh(r)&&(n.resolve[cr]=r.title),n}var Jn=class{get title(){return this.data?.[cr]}constructor(e,i,n,r,s,o,a,c,l){this.url=e,this.params=i,this.queryParams=n,this.fragment=r,this.data=s,this.outlet=o,this.component=a,this.routeConfig=c,this._resolve=l}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??=Yn(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Yn(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}')`}},Os=class extends Is{constructor(e,i){super(i),this.url=e,cc(this,i)}toString(){return dh(this._root)}};function cc(t,e){e.value._routerState=t,e.children.forEach(i=>cc(t,i))}function dh(t){let e=t.children.length>0?` { ${t.children.map(dh).join(", ")} } `:"";return`${t.value}${e}`}function ka(t){if(t.snapshot){let e=t.snapshot,i=t._futureSnapshot;t.snapshot=i,vt(e.queryParams,i.queryParams)||t.queryParamsSubject.next(i.queryParams),e.fragment!==i.fragment&&t.fragmentSubject.next(i.fragment),vt(e.params,i.params)||t.paramsSubject.next(i.params),cm(e.url,i.url)||t.urlSubject.next(i.url),vt(e.data,i.data)||t.dataSubject.next(i.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function ec(t,e){let i=vt(t.params,e.params)&&hm(t.url,e.url),n=!t.parent!=!e.parent;return i&&!n&&(!t.parent||ec(t.parent,e.parent))}function hh(t){return typeof t.title=="string"||t.title===null}var Fm=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=A,this.activateEvents=new F,this.deactivateEvents=new F,this.attachEvents=new F,this.detachEvents=new F,this.parentContexts=d(dr),this.location=d(Ni),this.changeDetector=d(je),this.inputBinder=d(Ns,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){let{firstChange:r,previousValue:s}=n.name;if(r)return;this.isTrackedInParentContexts(s)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(s)),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 j(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new j(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new j(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 j(4013,!1);this._activatedRoute=n;let s=this.location,a=n.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,l=new tc(n,c,s.injector);this.activated=s.createComponent(a,{index:s.length,injector:l,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=x({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Pe]});let t=e;return t})(),tc=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===yt?this.route:e===dr?this.childContexts:this.parent.get(e,i)}},Ns=new R(""),Hd=(()=>{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,s=Ii([r.queryParams,r.params,r.data]).pipe(oe(([o,a,c],l)=>(c=m(m(m({},o),a),c),l===0?b(c):Promise.resolve(c)))).subscribe(o=>{if(!n.isActivated||!n.activatedComponentRef||n.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(n);return}let a=cd(r.component);if(!a){this.unsubscribeFromRouteData(n);return}for(let{templateName:c}of a.inputs)n.activatedComponentRef.setInput(c,o[c])});this.outletDataSubscriptions.set(n,s)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})();function Lm(t,e,i){let n=ir(t,e._root,i?i._root:void 0);return new Ss(n,e)}function ir(t,e,i){if(i&&t.shouldReuseRoute(e.value,i.value.snapshot)){let n=i.value;n._futureSnapshot=e.value;let r=Bm(t,e,i);return new Ne(n,r)}else{if(t.shouldAttach(e.value)){let s=t.retrieve(e.value);if(s!==null){let o=s.route;return o.value._futureSnapshot=e.value,o.children=e.children.map(a=>ir(t,a)),o}}let n=Vm(e.value),r=e.children.map(s=>ir(t,s));return new Ne(n,r)}}function Bm(t,e,i){return e.children.map(n=>{for(let r of i.children)if(t.shouldReuseRoute(n.value,r.value.snapshot))return ir(t,n,r);return ir(t,n)})}function Vm(t){return new yt(new _e(t.url),new _e(t.params),new _e(t.queryParams),new _e(t.fragment),new _e(t.data),t.outlet,t.component,t)}var rr=class{constructor(e,i){this.redirectTo=e,this.navigationBehaviorOptions=i}},fh="ngNavigationCancelingError";function Rs(t,e){let{redirectTo:i,navigationBehaviorOptions:n}=gn(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,r=ph(!1,ke.Redirect);return r.url=i,r.navigationBehaviorOptions=n,r}function ph(t,e){let i=new Error(`NavigationCancelingError: ${t||""}`);return i[fh]=!0,i.cancellationCode=e,i}function Um(t){return gh(t)&&gn(t.url)}function gh(t){return!!t&&t[fh]}var jm=(t,e,i,n)=>S(r=>(new nc(e,r.targetRouterState,r.currentRouterState,i,n).activate(t),r)),nc=class{constructor(e,i,n,r,s){this.routeReuseStrategy=e,this.futureState=i,this.currState=n,this.forwardEvent=r,this.inputBindingEnabled=s}activate(e){let i=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(i,n,e),ka(this.futureState.root),this.activateChildRoutes(i,n,e)}deactivateChildRoutes(e,i,n){let r=Wn(i);e.children.forEach(s=>{let o=s.value.outlet;this.deactivateRoutes(s,r[o],n),delete r[o]}),Object.values(r).forEach(s=>{this.deactivateRouteAndItsChildren(s,n)})}deactivateRoutes(e,i,n){let r=e.value,s=i?i.value:null;if(r===s)if(r.component){let o=n.getContext(r.outlet);o&&this.deactivateChildRoutes(e,i,o.children)}else this.deactivateChildRoutes(e,i,n);else s&&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,s=Wn(e);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,r);if(n&&n.outlet){let o=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:o,route:e,contexts:a})}}deactivateRouteAndOutlet(e,i){let n=i.getContext(e.value.outlet),r=n&&e.value.component?n.children:i,s=Wn(e);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,r);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(e,i,n){let r=Wn(i);e.children.forEach(s=>{this.activateRoutes(s,r[s.value.outlet],n),this.forwardEvent(new Ya(s.value.snapshot))}),e.children.length&&this.forwardEvent(new Ja(e.value.snapshot))}activateRoutes(e,i,n){let r=e.value,s=i?i.value:null;if(ka(r),r===s)if(r.component){let o=n.getOrCreateContext(r.outlet);this.activateChildRoutes(e,i,o.children)}else this.activateChildRoutes(e,i,n);else if(r.component){let o=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){let a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),o.children.onOutletReAttached(a.contexts),o.attachRef=a.componentRef,o.route=a.route.value,o.outlet&&o.outlet.attach(a.componentRef,a.route.value),ka(a.route.value),this.activateChildRoutes(e,null,o.children)}else o.attachRef=null,o.route=r,o.outlet&&o.outlet.activateWith(r,o.injector),this.activateChildRoutes(e,null,o.children)}else this.activateChildRoutes(e,null,n)}},Ps=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},Kn=class{constructor(e,i){this.component=e,this.route=i}};function $m(t,e,i){let n=t._root,r=e?e._root:null;return Ki(n,r,i,[n.value])}function Hm(t){let e=t.routeConfig?t.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:t,guards:e}}function ti(t,e){let i=Symbol(),n=e.get(t,i);return n===i?typeof t=="function"&&!Fu(t)?t:e.get(t):n}function Ki(t,e,i,n,r={canDeactivateChecks:[],canActivateChecks:[]}){let s=Wn(e);return t.children.forEach(o=>{Gm(o,s[o.value.outlet],i,n.concat([o.value]),r),delete s[o.value.outlet]}),Object.entries(s).forEach(([o,a])=>Xi(a,i.getContext(o),r)),r}function Gm(t,e,i,n,r={canDeactivateChecks:[],canActivateChecks:[]}){let s=t.value,o=e?e.value:null,a=i?i.getContext(t.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){let c=zm(o,s,s.routeConfig.runGuardsAndResolvers);c?r.canActivateChecks.push(new Ps(n)):(s.data=o.data,s._resolvedData=o._resolvedData),s.component?Ki(t,e,a?a.children:null,n,r):Ki(t,e,i,n,r),c&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new Kn(a.outlet.component,o))}else o&&Xi(e,a,r),r.canActivateChecks.push(new Ps(n)),s.component?Ki(t,null,a?a.children:null,n,r):Ki(t,null,i,n,r);return r}function zm(t,e,i){if(typeof i=="function")return i(t,e);switch(i){case"pathParamsChange":return!pn(t.url,e.url);case"pathParamsOrQueryParamsChange":return!pn(t.url,e.url)||!vt(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ec(t,e)||!vt(t.queryParams,e.queryParams);case"paramsChange":default:return!ec(t,e)}}function Xi(t,e,i){let n=Wn(t),r=t.value;Object.entries(n).forEach(([s,o])=>{r.component?e?Xi(o,e.children.getContext(s),i):Xi(o,null,i):Xi(o,e,i)}),r.component?e&&e.outlet&&e.outlet.isActivated?i.canDeactivateChecks.push(new Kn(e.outlet.component,r)):i.canDeactivateChecks.push(new Kn(null,r)):i.canDeactivateChecks.push(new Kn(null,r))}function hr(t){return typeof t=="function"}function Wm(t){return typeof t=="boolean"}function qm(t){return t&&hr(t.canLoad)}function Jm(t){return t&&hr(t.canActivate)}function Km(t){return t&&hr(t.canActivateChild)}function Ym(t){return t&&hr(t.canDeactivate)}function Qm(t){return t&&hr(t.canMatch)}function mh(t){return t instanceof Cu||t?.name==="EmptyError"}var _s=Symbol("INITIAL_VALUE");function ei(){return oe(t=>Ii(t.map(e=>e.pipe(Te(1),Ko(_s)))).pipe(S(e=>{for(let i of e)if(i!==!0){if(i===_s)return _s;if(i===!1||Zm(i))return i}return!0}),ve(e=>e!==_s),Te(1)))}function Zm(t){return gn(t)||t instanceof rr}function Xm(t,e){return we(i=>{let{targetSnapshot:n,currentSnapshot:r,guards:{canActivateChecks:s,canDeactivateChecks:o}}=i;return o.length===0&&s.length===0?b(k(m({},i),{guardsResult:!0})):e_(o,n,r,t).pipe(we(a=>a&&Wm(a)?t_(n,s,t,e):b(a)),S(a=>k(m({},i),{guardsResult:a})))})}function e_(t,e,i,n){return X(t).pipe(we(r=>o_(r.component,r.route,i,e,n)),Ht(r=>r!==!0,!0))}function t_(t,e,i,n){return X(e).pipe(jt(r=>Su(i_(r.route.parent,n),n_(r.route,n),s_(t,r.path,i),r_(t,r.route,i))),Ht(r=>r!==!0,!0))}function n_(t,e){return t!==null&&e&&e(new Ka(t)),b(!0)}function i_(t,e){return t!==null&&e&&e(new qa(t)),b(!0)}function r_(t,e,i){let n=e.routeConfig?e.routeConfig.canActivate:null;if(!n||n.length===0)return b(!0);let r=n.map(s=>zo(()=>{let o=ur(e)??i,a=ti(s,o),c=Jm(a)?a.canActivate(e,t):Be(o,()=>a(e,t));return Yt(c).pipe(Ht())}));return b(r).pipe(ei())}function s_(t,e,i){let n=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(o=>Hm(o)).filter(o=>o!==null).map(o=>zo(()=>{let a=o.guards.map(c=>{let l=ur(o.node)??i,u=ti(c,l),f=Km(u)?u.canActivateChild(n,t):Be(l,()=>u(n,t));return Yt(f).pipe(Ht())});return b(a).pipe(ei())}));return b(s).pipe(ei())}function o_(t,e,i,n,r){let s=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!s||s.length===0)return b(!0);let o=s.map(a=>{let c=ur(e)??r,l=ti(a,c),u=Ym(l)?l.canDeactivate(t,e,i,n):Be(c,()=>l(t,e,i,n));return Yt(u).pipe(Ht())});return b(o).pipe(ei())}function a_(t,e,i,n){let r=e.canLoad;if(r===void 0||r.length===0)return b(!0);let s=r.map(o=>{let a=ti(o,t),c=qm(a)?a.canLoad(e,i):Be(t,()=>a(e,i));return Yt(c)});return b(s).pipe(ei(),_h(n))}function _h(t){return bu(V(e=>{if(typeof e!="boolean")throw Rs(t,e)}),S(e=>e===!0))}function c_(t,e,i,n){let r=e.canMatch;if(!r||r.length===0)return b(!0);let s=r.map(o=>{let a=ti(o,t),c=Qm(a)?a.canMatch(e,i):Be(t,()=>a(e,i));return Yt(c)});return b(s).pipe(ei(),_h(n))}var sr=class{constructor(e){this.segmentGroup=e||null}},or=class extends Error{constructor(e){super(),this.urlTree=e}};function zn(t){return dn(new sr(t))}function l_(t){return dn(new j(4e3,!1))}function u_(t){return dn(ph(!1,ke.GuardRejected))}var ic=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 b(n);if(r.numberOfChildren>1||!r.children[A])return l_(`${e.redirectTo}`);r=r.children[A]}}applyRedirectCommands(e,i,n,r,s){if(typeof i!="string"){let a=i,{queryParams:c,fragment:l,routeConfig:u,url:f,outlet:h,params:g,data:v,title:E}=r,_=Be(s,()=>a({params:g,data:v,queryParams:c,fragment:l,routeConfig:u,url:f,outlet:h,title:E}));if(_ instanceof Rt)throw new or(_);i=_}let o=this.applyRedirectCreateUrlTree(i,this.urlSerializer.parse(i),e,n);if(i[0]==="/")throw new or(o);return o}applyRedirectCreateUrlTree(e,i,n,r){let s=this.createSegmentGroup(e,i.root,n,r);return new Rt(s,this.createQueryParams(i.queryParams,this.urlTree.queryParams),i.fragment)}createQueryParams(e,i){let n={};return Object.entries(e).forEach(([r,s])=>{if(typeof s=="string"&&s[0]===":"){let a=s.substring(1);n[r]=i[a]}else n[r]=s}),n}createSegmentGroup(e,i,n,r){let s=this.createSegments(e,i.segments,n,r),o={};return Object.entries(i.children).forEach(([a,c])=>{o[a]=this.createSegmentGroup(e,c,n,r)}),new U(s,o)}createSegments(e,i,n,r){return i.map(s=>s.path[0]===":"?this.findPosParam(e,s,r):this.findOrReturn(s,n))}findPosParam(e,i,n){let r=n[i.path.substring(1)];if(!r)throw new j(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}},rc={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function d_(t,e,i,n,r){let s=lc(t,e,i);return s.matched?(n=Nm(e,n),c_(n,e,i,r).pipe(S(o=>o===!0?s:m({},rc)))):b(s)}function lc(t,e,i){if(e.path==="**")return h_(i);if(e.path==="")return e.pathMatch==="full"&&(t.hasChildren()||i.length>0)?m({},rc):{matched:!0,consumedSegments:[],remainingSegments:i,parameters:{},positionalParamSegments:{}};let r=(e.matcher||am)(i,t,e);if(!r)return m({},rc);let s={};Object.entries(r.posParams??{}).forEach(([a,c])=>{s[a]=c.path});let o=r.consumed.length>0?m(m({},s),r.consumed[r.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:r.consumed,remainingSegments:i.slice(r.consumed.length),parameters:o,positionalParamSegments:r.posParams??{}}}function h_(t){return{matched:!0,parameters:t.length>0?Qd(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function Gd(t,e,i,n){return i.length>0&&g_(t,i,n)?{segmentGroup:new U(e,p_(n,new U(i,t.children))),slicedSegments:[]}:i.length===0&&m_(t,i,n)?{segmentGroup:new U(t.segments,f_(t,i,n,t.children)),slicedSegments:i}:{segmentGroup:new U(t.segments,t.children),slicedSegments:i}}function f_(t,e,i,n){let r={};for(let s of i)if(ks(t,e,s)&&!n[tt(s)]){let o=new U([],{});r[tt(s)]=o}return m(m({},n),r)}function p_(t,e){let i={};i[A]=e;for(let n of t)if(n.path===""&&tt(n)!==A){let r=new U([],{});i[tt(n)]=r}return i}function g_(t,e,i){return i.some(n=>ks(t,e,n)&&tt(n)!==A)}function m_(t,e,i){return i.some(n=>ks(t,e,n))}function ks(t,e,i){return(t.hasChildren()||e.length>0)&&i.pathMatch==="full"?!1:i.path===""}function __(t,e,i,n){return tt(t)!==n&&(n===A||!ks(e,i,t))?!1:lc(e,t,i).matched}function v_(t,e,i){return e.length===0&&!t.children[i]}var sc=class{};function y_(t,e,i,n,r,s,o="emptyOnly"){return new oc(t,e,i,n,r,o,s).recognize()}var b_=31,oc=class{constructor(e,i,n,r,s,o,a){this.injector=e,this.configLoader=i,this.rootComponentType=n,this.config=r,this.urlTree=s,this.paramsInheritanceStrategy=o,this.urlSerializer=a,this.applyRedirects=new ic(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new j(4002,`'${e.segmentGroup}'`)}recognize(){let e=Gd(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(S(({children:i,rootSnapshot:n})=>{let r=new Ne(n,i),s=new Os("",r),o=Im(n,[],this.urlTree.queryParams,this.urlTree.fragment);return o.queryParams=this.urlTree.queryParams,s.url=this.urlSerializer.serialize(o),{state:s,tree:o}}))}match(e){let i=new Jn([],Object.freeze({}),Object.freeze(m({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),A,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,e,A,i).pipe(S(n=>({children:n,rootSnapshot:i})),Ee(n=>{if(n instanceof or)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof sr?this.noMatchError(n):n}))}processSegmentGroup(e,i,n,r,s){return n.segments.length===0&&n.hasChildren()?this.processChildren(e,i,n,s):this.processSegment(e,i,n,n.segments,r,!0,s).pipe(S(o=>o instanceof Ne?[o]:[]))}processChildren(e,i,n,r){let s=[];for(let o of Object.keys(n.children))o==="primary"?s.unshift(o):s.push(o);return X(s).pipe(jt(o=>{let a=n.children[o],c=km(i,o);return this.processSegmentGroup(e,c,a,o,r)}),ku((o,a)=>(o.push(...a),o)),qo(null),Nu(),we(o=>{if(o===null)return zn(n);let a=vh(o);return w_(a),b(a)}))}processSegment(e,i,n,r,s,o,a){return X(i).pipe(jt(c=>this.processSegmentAgainstRoute(c._injector??e,i,c,n,r,s,o,a).pipe(Ee(l=>{if(l instanceof sr)return b(null);throw l}))),Ht(c=>!!c),Ee(c=>{if(mh(c))return v_(n,r,s)?b(new sc):zn(n);throw c}))}processSegmentAgainstRoute(e,i,n,r,s,o,a,c){return __(n,r,s,o)?n.redirectTo===void 0?this.matchSegmentAgainstRoute(e,r,n,s,o,c):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(e,r,i,n,s,o,c):zn(r):zn(r)}expandSegmentAgainstRouteUsingRedirect(e,i,n,r,s,o,a){let{matched:c,parameters:l,consumedSegments:u,positionalParamSegments:f,remainingSegments:h}=lc(i,r,s);if(!c)return zn(i);typeof r.redirectTo=="string"&&r.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>b_&&(this.allowRedirects=!1));let g=new Jn(s,l,Object.freeze(m({},this.urlTree.queryParams)),this.urlTree.fragment,zd(r),tt(r),r.component??r._loadedComponent??null,r,Wd(r)),v=As(g,a,this.paramsInheritanceStrategy);g.params=Object.freeze(v.params),g.data=Object.freeze(v.data);let E=this.applyRedirects.applyRedirectCommands(u,r.redirectTo,f,g,e);return this.applyRedirects.lineralizeSegments(r,E).pipe(we(_=>this.processSegment(e,n,i,_.concat(h),o,!1,a)))}matchSegmentAgainstRoute(e,i,n,r,s,o){let a=d_(i,n,r,e,this.urlSerializer);return n.path==="**"&&(i.children={}),a.pipe(oe(c=>c.matched?(e=n._injector??e,this.getChildConfig(e,n,r).pipe(oe(({routes:l})=>{let u=n._loadedInjector??e,{parameters:f,consumedSegments:h,remainingSegments:g}=c,v=new Jn(h,f,Object.freeze(m({},this.urlTree.queryParams)),this.urlTree.fragment,zd(n),tt(n),n.component??n._loadedComponent??null,n,Wd(n)),E=As(v,o,this.paramsInheritanceStrategy);v.params=Object.freeze(E.params),v.data=Object.freeze(E.data);let{segmentGroup:_,slicedSegments:y}=Gd(i,h,g,l);if(y.length===0&&_.hasChildren())return this.processChildren(u,l,_,v).pipe(S(M=>new Ne(v,M)));if(l.length===0&&y.length===0)return b(new Ne(v,[]));let P=tt(n)===s;return this.processSegment(u,l,_,y,P?A:s,!0,v).pipe(S(M=>new Ne(v,M instanceof Ne?[M]:[])))}))):zn(i)))}getChildConfig(e,i,n){return i.children?b({routes:i.children,injector:e}):i.loadChildren?i._loadedRoutes!==void 0?b({routes:i._loadedRoutes,injector:i._loadedInjector}):a_(e,i,n,this.urlSerializer).pipe(we(r=>r?this.configLoader.loadChildren(e,i).pipe(V(s=>{i._loadedRoutes=s.routes,i._loadedInjector=s.injector})):u_(i))):b({routes:[],injector:e})}};function w_(t){t.sort((e,i)=>e.value.outlet===A?-1:i.value.outlet===A?1:e.value.outlet.localeCompare(i.value.outlet))}function D_(t){let e=t.value.routeConfig;return e&&e.path===""}function vh(t){let e=[],i=new Set;for(let n of t){if(!D_(n)){e.push(n);continue}let r=e.find(s=>n.value.routeConfig===s.value.routeConfig);r!==void 0?(r.children.push(...n.children),i.add(r)):e.push(n)}for(let n of i){let r=vh(n.children);e.push(new Ne(n.value,r))}return e.filter(n=>!i.has(n))}function zd(t){return t.data||{}}function Wd(t){return t.resolve||{}}function E_(t,e,i,n,r,s){return we(o=>y_(t,e,i,n,o.extractedUrl,r,s).pipe(S(({state:a,tree:c})=>k(m({},o),{targetSnapshot:a,urlAfterRedirects:c}))))}function T_(t,e){return we(i=>{let{targetSnapshot:n,guards:{canActivateChecks:r}}=i;if(!r.length)return b(i);let s=new Set(r.map(c=>c.route)),o=new Set;for(let c of s)if(!o.has(c))for(let l of yh(c))o.add(l);let a=0;return X(o).pipe(jt(c=>s.has(c)?C_(c,n,t,e):(c.data=As(c,c.parent,t).resolve,b(void 0))),V(()=>a++),Jo(1),we(c=>a===o.size?b(i):at))})}function yh(t){let e=t.children.map(i=>yh(i)).flat();return[t,...e]}function C_(t,e,i,n){let r=t.routeConfig,s=t._resolve;return r?.title!==void 0&&!hh(r)&&(s[cr]=r.title),I_(s,t,e,n).pipe(S(o=>(t._resolvedData=o,t.data=As(t,t.parent,i).resolve,null)))}function I_(t,e,i,n){let r=La(t);if(r.length===0)return b({});let s={};return X(r).pipe(we(o=>S_(t[o],e,i,n).pipe(Ht(),V(a=>{if(a instanceof rr)throw Rs(new Qn,a);s[o]=a}))),Jo(1),Ru(s),Ee(o=>mh(o)?at:dn(o)))}function S_(t,e,i,n){let r=ur(e)??n,s=ti(t,r),o=s.resolve?s.resolve(e,i):Be(r,()=>s(e,i));return Yt(o)}function xa(t){return oe(e=>{let i=t(e);return i?X(i).pipe(S(()=>e)):b(e)})}var bh=(()=>{let e=class e{buildTitle(n){let r,s=n.root;for(;s!==void 0;)r=this.getResolvedTitleForRoute(s)??r,s=s.children.find(o=>o.outlet===A);return r}getResolvedTitleForRoute(n){return n.data[cr]}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=w({token:e,factory:()=>d(A_),providedIn:"root"});let t=e;return t})(),A_=(()=>{let e=class e extends bh{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)(T(Ld))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),fr=new R("",{providedIn:"root",factory:()=>({})}),O_=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=Ye({type:e,selectors:[["ng-component"]],standalone:!0,features:[Xe],decls:1,vars:0,template:function(r,s){r&1&&ht(0,"router-outlet")},dependencies:[Fm],encapsulation:2});let t=e;return t})();function uc(t){let e=t.children&&t.children.map(uc),i=e?k(m({},t),{children:e}):m({},t);return!i.component&&!i.loadComponent&&(e||i.loadChildren)&&i.outlet&&i.outlet!==A&&(i.component=O_),i}var ar=new R(""),dc=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=d(ns)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return b(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let r=Yt(n.loadComponent()).pipe(S(wh),V(o=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=o}),$t(()=>{this.componentLoaders.delete(n)})),s=new $o(r,()=>new L).pipe(jo());return this.componentLoaders.set(n,s),s}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return b({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let o=R_(r,this.compiler,n,this.onLoadEndListener).pipe($t(()=>{this.childrenLoaders.delete(r)})),a=new $o(o,()=>new L).pipe(jo());return this.childrenLoaders.set(r,a),a}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function R_(t,e,i,n){return Yt(t.loadChildren()).pipe(S(wh),we(r=>r instanceof ed||Array.isArray(r)?b(r):X(e.compileModuleAsync(r))),S(r=>{n&&n(t);let s,o,a=!1;return Array.isArray(r)?(o=r,a=!0):(s=r.create(i).injector,o=s.get(ar,[],{optional:!0,self:!0}).flat()),{routes:o.map(uc),injector:s}}))}function P_(t){return t&&typeof t=="object"&&"default"in t}function wh(t){return P_(t)?t.default:t}var hc=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=w({token:e,factory:()=>d(M_),providedIn:"root"});let t=e;return t})(),M_=(()=>{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=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Dh=new R(""),Eh=new R("");function N_(t,e,i){let n=t.get(Eh),r=t.get(H);return t.get($).runOutsideAngular(()=>{if(!r.startViewTransition||n.skipNextTransition)return n.skipNextTransition=!1,new Promise(l=>setTimeout(l));let s,o=new Promise(l=>{s=l}),a=r.startViewTransition(()=>(s(),k_(t))),{onViewTransitionCreated:c}=n;return c&&Be(t,()=>c({transition:a,from:e,to:i})),o})}function k_(t){return new Promise(e=>{Zu({read:()=>setTimeout(e)},{injector:t})})}var x_=new R(""),fc=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new L,this.transitionAbortSubject=new L,this.configLoader=d(dc),this.environmentInjector=d(ut),this.urlSerializer=d(lr),this.rootContexts=d(dr),this.location=d(Vi),this.inputBindingEnabled=d(Ns,{optional:!0})!==null,this.titleStrategy=d(bh),this.options=d(fr,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=d(hc),this.createViewTransition=d(Dh,{optional:!0}),this.navigationErrorHandler=d(x_,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>b(void 0),this.rootComponentType=null;let n=s=>this.events.next(new za(s)),r=s=>this.events.next(new Wa(s));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let r=++this.navigationId;this.transitions?.next(k(m(m({},this.transitions.value),n),{id:r}))}setupNavigations(n,r,s){return this.transitions=new _e({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:Zi,restoredState:null,currentSnapshot:s.snapshot,targetSnapshot:null,currentRouterState:s,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(ve(o=>o.id!==0),S(o=>k(m({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),oe(o=>{let a=!1,c=!1;return b(o).pipe(oe(l=>{if(this.navigationId>o.id)return this.cancelNavigationTransition(o,"",ke.SupersededByNewNavigation),at;this.currentTransition=o,this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,targetBrowserUrl:typeof l.extras.browserUrl=="string"?this.urlSerializer.parse(l.extras.browserUrl):l.extras.browserUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?k(m({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let u=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),f=l.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!u&&f!=="reload"){let h="";return this.events.next(new Kt(l.id,this.urlSerializer.serialize(l.rawUrl),h,Es.IgnoredSameUrlNavigation)),l.resolve(!1),at}if(this.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return b(l).pipe(oe(h=>{let g=this.transitions?.getValue();return this.events.next(new Zn(h.id,this.urlSerializer.serialize(h.extractedUrl),h.source,h.restoredState)),g!==this.transitions?.getValue()?at:Promise.resolve(h)}),E_(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),V(h=>{o.targetSnapshot=h.targetSnapshot,o.urlAfterRedirects=h.urlAfterRedirects,this.currentNavigation=k(m({},this.currentNavigation),{finalUrl:h.urlAfterRedirects});let g=new Ts(h.id,this.urlSerializer.serialize(h.extractedUrl),this.urlSerializer.serialize(h.urlAfterRedirects),h.targetSnapshot);this.events.next(g)}));if(u&&this.urlHandlingStrategy.shouldProcessUrl(l.currentRawUrl)){let{id:h,extractedUrl:g,source:v,restoredState:E,extras:_}=l,y=new Zn(h,this.urlSerializer.serialize(g),v,E);this.events.next(y);let P=uh(this.rootComponentType).snapshot;return this.currentTransition=o=k(m({},l),{targetSnapshot:P,urlAfterRedirects:g,extras:k(m({},_),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=g,b(o)}else{let h="";return this.events.next(new Kt(l.id,this.urlSerializer.serialize(l.extractedUrl),h,Es.IgnoredByUrlHandlingStrategy)),l.resolve(!1),at}}),V(l=>{let u=new ja(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(u)}),S(l=>(this.currentTransition=o=k(m({},l),{guards:$m(l.targetSnapshot,l.currentSnapshot,this.rootContexts)}),o)),Xm(this.environmentInjector,l=>this.events.next(l)),V(l=>{if(o.guardsResult=l.guardsResult,l.guardsResult&&typeof l.guardsResult!="boolean")throw Rs(this.urlSerializer,l.guardsResult);let u=new $a(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.events.next(u)}),ve(l=>l.guardsResult?!0:(this.cancelNavigationTransition(l,"",ke.GuardRejected),!1)),xa(l=>{if(l.guards.canActivateChecks.length)return b(l).pipe(V(u=>{let f=new Ha(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(f)}),oe(u=>{let f=!1;return b(u).pipe(T_(this.paramsInheritanceStrategy,this.environmentInjector),V({next:()=>f=!0,complete:()=>{f||this.cancelNavigationTransition(u,"",ke.NoDataFromResolver)}}))}),V(u=>{let f=new Ga(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(f)}))}),xa(l=>{let u=f=>{let h=[];f.routeConfig?.loadComponent&&!f.routeConfig._loadedComponent&&h.push(this.configLoader.loadComponent(f.routeConfig).pipe(V(g=>{f.component=g}),S(()=>{})));for(let g of f.children)h.push(...u(g));return h};return Ii(u(l.targetSnapshot.root)).pipe(qo(null),Te(1))}),xa(()=>this.afterPreactivation()),oe(()=>{let{currentSnapshot:l,targetSnapshot:u}=o,f=this.createViewTransition?.(this.environmentInjector,l.root,u.root);return f?X(f).pipe(S(()=>o)):b(o)}),S(l=>{let u=Lm(n.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=o=k(m({},l),{targetRouterState:u}),this.currentNavigation.targetRouterState=u,o}),V(()=>{this.events.next(new nr)}),jm(this.rootContexts,n.routeReuseStrategy,l=>this.events.next(l),this.inputBindingEnabled),Te(1),V({next:l=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new nt(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),this.titleStrategy?.updateTitle(l.targetRouterState.snapshot),l.resolve(!0)},complete:()=>{a=!0}}),K(this.transitionAbortSubject.pipe(V(l=>{throw l}))),$t(()=>{!a&&!c&&this.cancelNavigationTransition(o,"",ke.SupersededByNewNavigation),this.currentTransition?.id===o.id&&(this.currentNavigation=null,this.currentTransition=null)}),Ee(l=>{if(c=!0,gh(l))this.events.next(new Ot(o.id,this.urlSerializer.serialize(o.extractedUrl),l.message,l.cancellationCode)),Um(l)?this.events.next(new Xn(l.url,l.navigationBehaviorOptions)):o.resolve(!1);else{let u=new tr(o.id,this.urlSerializer.serialize(o.extractedUrl),l,o.targetSnapshot??void 0);try{let f=Be(this.environmentInjector,()=>this.navigationErrorHandler?.(u));if(f instanceof rr){let{message:h,cancellationCode:g}=Rs(this.urlSerializer,f);this.events.next(new Ot(o.id,this.urlSerializer.serialize(o.extractedUrl),h,g)),this.events.next(new Xn(f.redirectTo,f.navigationBehaviorOptions))}else{this.events.next(u);let h=n.errorHandler(l);o.resolve(!!h)}}catch(f){this.options.resolveNavigationPromiseOnError?o.resolve(!1):o.reject(f)}}return at}))}))}cancelNavigationTransition(n,r,s){let o=new Ot(n.id,this.urlSerializer.serialize(n.extractedUrl),r,s);this.events.next(o),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=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function F_(t){return t!==Zi}var L_=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=w({token:e,factory:()=>d(B_),providedIn:"root"});let t=e;return t})(),ac=class{shouldDetach(e){return!1}store(e,i){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,i){return e.routeConfig===i.routeConfig}},B_=(()=>{let e=class e extends ac{};e.\u0275fac=(()=>{let n;return function(s){return(n||(n=Gt(e)))(s||e)}})(),e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Th=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=w({token:e,factory:()=>d(V_),providedIn:"root"});let t=e;return t})(),V_=(()=>{let e=class e extends Th{constructor(){super(...arguments),this.location=d(Vi),this.urlSerializer=d(lr),this.options=d(fr,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=d(hc),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Rt,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=uh(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 Zn)this.stateMemento=this.createStateMemento();else if(n instanceof Kt)this.rawUrlTree=r.initialUrl;else if(n instanceof Ts){if(this.urlUpdateStrategy==="eager"&&!r.extras.skipLocationChange){let s=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(r.targetBrowserUrl??s,r)}}else n instanceof nr?(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 Ot&&(n.code===ke.GuardRejected||n.code===ke.NoDataFromResolver)?this.restoreHistory(r):n instanceof tr?this.restoreHistory(r,!0):n instanceof nt&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,r){let s=n instanceof Rt?this.urlSerializer.serialize(n):n;if(this.location.isCurrentPathEqualTo(s)||r.extras.replaceUrl){let o=this.browserPageId,a=m(m({},r.extras.state),this.generateNgRouterState(r.id,o));this.location.replaceState(s,"",a)}else{let o=m(m({},r.extras.state),this.generateNgRouterState(r.id,this.browserPageId+1));this.location.go(s,"",o)}}restoreHistory(n,r=!1){if(this.canceledNavigationResolution==="computed"){let s=this.browserPageId,o=this.currentPageId-s;o!==0?this.location.historyGo(o):this.currentUrlTree===n.finalUrl&&o===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(s){return(n||(n=Gt(e)))(s||e)}})(),e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Yi=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(Yi||{});function Ch(t,e){t.events.pipe(ve(i=>i instanceof nt||i instanceof Ot||i instanceof tr||i instanceof Kt),S(i=>i instanceof nt||i instanceof Kt?Yi.COMPLETE:(i instanceof Ot?i.code===ke.Redirect||i.code===ke.SupersededByNewNavigation:!1)?Yi.REDIRECTING:Yi.FAILED),ve(i=>i!==Yi.REDIRECTING),Te(1)).subscribe(()=>{e()})}function U_(t){throw t}var j_={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},$_={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Ge=(()=>{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=d(Xr),this.stateManager=d(Th),this.options=d(fr,{optional:!0})||{},this.pendingTasks=d(Ri),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=d(fc),this.urlSerializer=d(lr),this.location=d(Vi),this.urlHandlingStrategy=d(hc),this._events=new L,this.errorHandler=this.options.errorHandler||U_,this.navigated=!1,this.routeReuseStrategy=d(L_),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=d(ar,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!d(Ns,{optional:!0}),this.eventsSubscription=new yu,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 s=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(s!==null&&o!==null){if(this.stateManager.handleRouterEvent(r,o),r instanceof Ot&&r.code!==ke.Redirect&&r.code!==ke.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof nt)this.navigated=!0;else if(r instanceof Xn){let a=r.navigationBehaviorOptions,c=this.urlHandlingStrategy.merge(r.url,s.currentRawUrl),l=m({browserUrl:s.extras.browserUrl,info:s.extras.info,skipLocationChange:s.extras.skipLocationChange,replaceUrl:s.extras.replaceUrl||this.urlUpdateStrategy==="eager"||F_(s.source)},a);this.scheduleNavigation(c,Zi,null,l,{resolve:s.resolve,reject:s.reject,promise:s.promise})}}G_(r)&&this._events.next(r)}catch(s){this.navigationTransitions.transitionAbortSubject.next(s)}});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),Zi,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,r)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",r)},0)})}navigateToSyncWithBrowser(n,r,s){let o={replaceUrl:!0},a=s?.navigationId?s:null;if(s){let l=m({},s);delete l.navigationId,delete l.\u0275routerPageId,Object.keys(l).length!==0&&(o.state=l)}let c=this.parseUrl(n);this.scheduleNavigation(c,r,a,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(uc),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:s,queryParams:o,fragment:a,queryParamsHandling:c,preserveFragment:l}=r,u=l?this.currentUrlTree.fragment:a,f=null;switch(c){case"merge":f=m(m({},this.currentUrlTree.queryParams),o);break;case"preserve":f=this.currentUrlTree.queryParams;break;default:f=o||null}f!==null&&(f=this.removeEmptyProps(f));let h;try{let g=s?s.snapshot:this.routerState.snapshot.root;h=oh(g)}catch{(typeof n[0]!="string"||n[0][0]!=="/")&&(n=[]),h=this.currentUrlTree.root}return ah(h,n,f,u??null)}navigateByUrl(n,r={skipLocationChange:!1}){let s=gn(n)?n:this.parseUrl(n),o=this.urlHandlingStrategy.merge(s,this.rawUrlTree);return this.scheduleNavigation(o,Zi,null,r)}navigate(n,r={skipLocationChange:!1}){return H_(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 s;if(r===!0?s=m({},j_):r===!1?s=m({},$_):s=r,gn(n))return Vd(this.currentUrlTree,n,s);let o=this.parseUrl(n);return Vd(this.currentUrlTree,o,s)}removeEmptyProps(n){return Object.entries(n).reduce((r,[s,o])=>(o!=null&&(r[s]=o),r),{})}scheduleNavigation(n,r,s,o,a){if(this.disposed)return Promise.resolve(!1);let c,l,u;a?(c=a.resolve,l=a.reject,u=a.promise):u=new Promise((h,g)=>{c=h,l=g});let f=this.pendingTasks.add();return Ch(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(f))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:s,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:o,resolve:c,reject:l,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=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function H_(t){for(let e=0;e<t.length;e++)if(t[e]==null)throw new j(4008,!1)}function G_(t){return!(t instanceof nr)&&!(t instanceof Xn)}var qd=(()=>{let e=class e{constructor(n,r,s,o,a,c){this.router=n,this.route=r,this.tabIndexAttribute=s,this.renderer=o,this.el=a,this.locationStrategy=c,this.href=null,this.onChanges=new L,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1,this.routerLinkInput=null;let l=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=l==="a"||l==="area",this.isAnchorElement?this.subscription=n.events.subscribe(u=>{u instanceof nt&&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)):(gn(n)?this.routerLinkInput=n:this.routerLinkInput=Array.isArray(n)?n:[n],this.setTabIndexIfNotOnNativeEl("0"))}onClick(n,r,s,o,a){let c=this.urlTree;if(c===null||this.isAnchorElement&&(n!==0||r||s||o||a||typeof this.target=="string"&&this.target!="_self"))return!0;let l={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(c,l),!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:Ju(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",r)}applyAttributeValue(n,r){let s=this.renderer,o=this.el.nativeElement;r!==null?s.setAttribute(o,n,r):s.removeAttribute(o,n)}get urlTree(){return this.routerLinkInput===null?null:gn(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)(I(Ge),I(yt),Zo("tabindex"),I(jn),I(ae),I(Bi))},e.\u0275dir=x({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(r,s){r&1&&ie("click",function(a){return s.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),r&2&&Ce("target",s.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",Hn],skipLocationChange:[2,"skipLocationChange","skipLocationChange",Hn],replaceUrl:[2,"replaceUrl","replaceUrl",Hn],routerLink:"routerLink"},standalone:!0,features:[Xu,Pe]});let t=e;return t})(),WE=(()=>{let e=class e{get isActive(){return this._isActive}constructor(n,r,s,o,a){this.router=n,this.element=r,this.renderer=s,this.cdr=o,this.link=a,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new F,this.routerEventsSubscription=n.events.subscribe(c=>{c instanceof nt&&this.update()})}ngAfterContentInit(){b(this.links.changes,b(null)).pipe(Si()).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=X(n).pipe(Si()).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(s=>!!s)}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=z_(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return s=>{let o=s.urlTree;return o?n.isActive(o,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)(I(Ge),I(ae),I(jn),I(je),I(qd,8))},e.\u0275dir=x({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(r,s,o){if(r&1&&St(o,qd,5),r&2){let a;pt(a=gt())&&(s.links=a)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[Pe]});let t=e;return t})();function z_(t){return!!t.paths}var Ms=class{};var W_=(()=>{let e=class e{constructor(n,r,s,o,a){this.router=n,this.injector=s,this.preloadingStrategy=o,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(ve(n=>n instanceof nt),jt(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,r){let s=[];for(let o of r){o.providers&&!o._injector&&(o._injector=ra(o.providers,n,`Route: ${o.path}`));let a=o._injector??n,c=o._loadedInjector??a;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&s.push(this.preloadConfig(a,o)),(o.children||o._loadedRoutes)&&s.push(this.processRoutes(c,o.children??o._loadedRoutes))}return X(s).pipe(Si())}preloadConfig(n,r){return this.preloadingStrategy.preload(r,()=>{let s;r.loadChildren&&r.canLoad===void 0?s=this.loader.loadChildren(n,r):s=b(null);let o=s.pipe(we(a=>a===null?b(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 X([o,a]).pipe(Si())}else return o})}};e.\u0275fac=function(r){return new(r||e)(T(Ge),T(ns),T(ut),T(Ms),T(dc))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Ih=new R(""),q_=(()=>{let e=class e{constructor(n,r,s,o,a={}){this.urlSerializer=n,this.transitions=r,this.viewportScroller=s,this.zone=o,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 Zn?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof nt?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof Kt&&n.code===Es.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 Cs&&(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 Cs(n,this.lastSource==="popstate"?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}};e.\u0275fac=function(r){Ku()},e.\u0275prov=w({token:e,factory:e.\u0275fac});let t=e;return t})();function qE(t,...e){return Qe([{provide:ar,multi:!0,useValue:t},[],{provide:yt,useFactory:Sh,deps:[Ge]},{provide:ts,multi:!0,useFactory:Ah},e.map(i=>i.\u0275providers)])}function Sh(t){return t.routerState.root}function pr(t,e){return{\u0275kind:t,\u0275providers:e}}function Ah(){let t=d(ne);return e=>{let i=t.get(et);if(e!==i.components[0])return;let n=t.get(Ge),r=t.get(Oh);t.get(pc)===1&&n.initialNavigation(),t.get(Rh,null,Yo.Optional)?.setUpPreloading(),t.get(Ih,null,Yo.Optional)?.init(),n.resetRootComponentType(i.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}var Oh=new R("",{factory:()=>new L}),pc=new R("",{providedIn:"root",factory:()=>1});function J_(){return pr(2,[{provide:pc,useValue:0},{provide:fa,multi:!0,deps:[ne],useFactory:e=>{let i=e.get(dd,Promise.resolve());return()=>i.then(()=>new Promise(n=>{let r=e.get(Ge),s=e.get(Oh);Ch(r,()=>{n(!0)}),e.get(fc).afterPreactivation=()=>(n(!0),s.closed?b(void 0):s),r.initialNavigation()}))}}])}function K_(){return pr(3,[{provide:fa,multi:!0,useFactory:()=>{let e=d(Ge);return()=>{e.setUpLocationChangeListener()}}},{provide:pc,useValue:2}])}var Rh=new R("");function Y_(t){return pr(0,[{provide:Rh,useExisting:W_},{provide:Ms,useExisting:t}])}function Q_(){return pr(8,[Hd,{provide:Ns,useExisting:Hd}])}function Z_(t){let e=[{provide:Dh,useValue:N_},{provide:Eh,useValue:m({skipNextTransition:!!t?.skipInitialTransition},t)}];return pr(9,e)}var Jd=new R("ROUTER_FORROOT_GUARD"),X_=[Vi,{provide:lr,useClass:Qn},Ge,dr,{provide:yt,useFactory:Sh,deps:[Ge]},dc,[]],JE=(()=>{let e=class e{constructor(n){}static forRoot(n,r){return{ngModule:e,providers:[X_,[],{provide:ar,multi:!0,useValue:n},{provide:Jd,useFactory:i0,deps:[[Ge,new lt,new Lu]]},{provide:fr,useValue:r||{}},r?.useHash?t0():n0(),e0(),r?.preloadingStrategy?Y_(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?r0(r):[],r?.bindToComponentInputs?Q_().\u0275providers:[],r?.enableViewTransitions?Z_().\u0275providers:[],s0()]}}static forChild(n){return{ngModule:e,providers:[{provide:ar,multi:!0,useValue:n}]}}};e.\u0275fac=function(r){return new(r||e)(T(Jd,8))},e.\u0275mod=Le({type:e}),e.\u0275inj=Fe({});let t=e;return t})();function e0(){return{provide:Ih,useFactory:()=>{let t=d(gd),e=d($),i=d(fr),n=d(fc),r=d(lr);return i.scrollOffset&&t.setOffset(i.scrollOffset),new q_(r,n,t,e,i)}}}function t0(){return{provide:Bi,useClass:fd}}function n0(){return{provide:Bi,useClass:hd}}function i0(t){return"guarded"}function r0(t){return[t.initialNavigation==="disabled"?K_().\u0275providers:[],t.initialNavigation==="enabledBlocking"?J_().\u0275providers:[]]}var Kd=new R("");function s0(){return[{provide:Kd,useFactory:Ah},{provide:ts,multi:!0,useExisting:Kd}]}var QE={production:!0,firebaseConfig:{apiKey:"AIzaSyDnnitFXpM8TglWKNpzu4ChgF98n25Rgvw",authDomain:"auth.dealpos.com",projectId:"devops-signin",storageBucket:"devops-signin.appspot.com",messagingSenderId:"412465165194",appId:"1:412465165194:web:03d806f6b6ab6f8b460e73",measurementId:"G-MNDBRJ5XZD"},version:"1.6.8"};var Ph=["toast-component",""];function o0(t,e){if(t&1){let i=Fi();he(0,"button",5),ie("click",function(){Ln(i);let r=Q();return Bn(r.remove())}),he(1,"span",6),Me(2,"\xD7"),Ie()()}}function a0(t,e){if(t&1&&(ki(0),Me(1),xi()),t&2){let i=Q(2);z(),zt("[",i.duplicatesCount+1,"]")}}function c0(t,e){if(t&1&&(he(0,"div"),Me(1),Ze(2,a0,2,1,"ng-container",4),Ie()),t&2){let i=Q();ye(i.options.titleClass),Ce("aria-label",i.title),z(),zt(" ",i.title," "),z(),ee("ngIf",i.duplicatesCount)}}function l0(t,e){if(t&1&&ht(0,"div",7),t&2){let i=Q();ye(i.options.messageClass),ee("innerHTML",i.message,na)}}function u0(t,e){if(t&1&&(he(0,"div",8),Me(1),Ie()),t&2){let i=Q();ye(i.options.messageClass),Ce("aria-label",i.message),z(),zt(" ",i.message," ")}}function d0(t,e){if(t&1&&(he(0,"div"),ht(1,"div",9),Ie()),t&2){let i=Q();z(),$n("width",i.width()+"%")}}function h0(t,e){if(t&1){let i=Fi();he(0,"button",5),ie("click",function(){Ln(i);let r=Q();return Bn(r.remove())}),he(1,"span",6),Me(2,"\xD7"),Ie()()}}function f0(t,e){if(t&1&&(ki(0),Me(1),xi()),t&2){let i=Q(2);z(),zt("[",i.duplicatesCount+1,"]")}}function p0(t,e){if(t&1&&(he(0,"div"),Me(1),Ze(2,f0,2,1,"ng-container",4),Ie()),t&2){let i=Q();ye(i.options.titleClass),Ce("aria-label",i.title),z(),zt(" ",i.title," "),z(),ee("ngIf",i.duplicatesCount)}}function g0(t,e){if(t&1&&ht(0,"div",7),t&2){let i=Q();ye(i.options.messageClass),ee("innerHTML",i.message,na)}}function m0(t,e){if(t&1&&(he(0,"div",8),Me(1),Ie()),t&2){let i=Q();ye(i.options.messageClass),Ce("aria-label",i.message),z(),zt(" ",i.message," ")}}function _0(t,e){if(t&1&&(he(0,"div"),ht(1,"div",9),Ie()),t&2){let i=Q();z(),$n("width",i.width()+"%")}}var gc=class{_attachedHost;component;viewContainerRef;injector;constructor(e,i){this.component=e,this.injector=i}attach(e,i){return this._attachedHost=e,e.attach(this,i)}detach(){let e=this._attachedHost;if(e)return this._attachedHost=void 0,e.detach()}get isAttached(){return this._attachedHost!=null}setAttachedHost(e){this._attachedHost=e}},mc=class{_attachedPortal;_disposeFn;attach(e,i){return this._attachedPortal=e,this.attachComponentPortal(e,i)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(e){this._disposeFn=e}},_c=class{_overlayRef;componentInstance;duplicatesCount=0;_afterClosed=new L;_activate=new L;_manualClose=new L;_resetTimeout=new L;_countDuplicate=new L;constructor(e){this._overlayRef=e}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate(e,i){e&&this._resetTimeout.next(),i&&this._countDuplicate.next(++this.duplicatesCount)}},ni=class{toastId;config;message;title;toastType;toastRef;_onTap=new L;_onAction=new L;constructor(e,i,n,r,s,o){this.toastId=e,this.config=i,this.message=n,this.title=r,this.toastType=s,this.toastRef=o,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(e){this._onAction.next(e)}onAction(){return this._onAction.asObservable()}},Mh={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,includeTitleDuplicates:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing"},Nh=new R("ToastConfig"),vc=class extends mc{_hostDomElement;_componentFactoryResolver;_appRef;constructor(e,i,n){super(),this._hostDomElement=e,this._componentFactoryResolver=i,this._appRef=n}attachComponentPortal(e,i){let n=this._componentFactoryResolver.resolveComponentFactory(e.component),r;return r=n.create(e.injector),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.detachView(r.hostView),r.destroy()}),i?this._hostDomElement.insertBefore(this._getComponentRootNode(r),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(r)),r}_getComponentRootNode(e){return e.hostView.rootNodes[0]}},v0=(()=>{class t{_document=d(H);_containerElement;ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let i=this._document.createElement("div");i.classList.add("overlay-container"),i.setAttribute("aria-live","polite"),this._document.body.appendChild(i),this._containerElement=i}static \u0275fac=function(n){return new(n||t)};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),yc=class{_portalHost;constructor(e){this._portalHost=e}attach(e,i=!0){return this._portalHost.attach(e,i)}detach(){return this._portalHost.detach()}},y0=(()=>{class t{_overlayContainer=d(v0);_componentFactoryResolver=d(Yu);_appRef=d(et);_document=d(H);_paneElements=new Map;create(i,n){return this._createOverlayRef(this.getPaneElement(i,n))}getPaneElement(i="",n){return this._paneElements.get(n)||this._paneElements.set(n,{}),this._paneElements.get(n)[i]||(this._paneElements.get(n)[i]=this._createPaneElement(i,n)),this._paneElements.get(n)[i]}_createPaneElement(i,n){let r=this._document.createElement("div");return r.id="toast-container",r.classList.add(i),r.classList.add("toast-container"),n?n.getContainerElement().appendChild(r):this._overlayContainer.getContainerElement().appendChild(r),r}_createPortalHost(i){return new vc(i,this._componentFactoryResolver,this._appRef)}_createOverlayRef(i){return new yc(this._createPortalHost(i))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),xs=(()=>{class t{overlay;_injector;sanitizer;ngZone;toastrConfig;currentlyActive=0;toasts=[];overlayContainer;previousToastMessage;index=0;constructor(i,n,r,s,o){this.overlay=n,this._injector=r,this.sanitizer=s,this.ngZone=o,this.toastrConfig=m(m({},i.default),i.config),i.config.iconClasses&&(this.toastrConfig.iconClasses=m(m({},i.default.iconClasses),i.config.iconClasses))}show(i,n,r={},s=""){return this._preBuildNotification(s,i,n,this.applyConfig(r))}success(i,n,r={}){let s=this.toastrConfig.iconClasses.success||"";return this._preBuildNotification(s,i,n,this.applyConfig(r))}error(i,n,r={}){let s=this.toastrConfig.iconClasses.error||"";return this._preBuildNotification(s,i,n,this.applyConfig(r))}info(i,n,r={}){let s=this.toastrConfig.iconClasses.info||"";return this._preBuildNotification(s,i,n,this.applyConfig(r))}warning(i,n,r={}){let s=this.toastrConfig.iconClasses.warning||"";return this._preBuildNotification(s,i,n,this.applyConfig(r))}clear(i){for(let n of this.toasts)if(i!==void 0){if(n.toastId===i){n.toastRef.manualClose();return}}else n.toastRef.manualClose()}remove(i){let n=this._findToast(i);if(!n||(n.activeToast.toastRef.close(),this.toasts.splice(n.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length))return!1;if(this.currentlyActive<this.toastrConfig.maxOpened&&this.toasts[this.currentlyActive]){let r=this.toasts[this.currentlyActive].toastRef;r.isInactive()||(this.currentlyActive=this.currentlyActive+1,r.activate())}return!0}findDuplicate(i="",n="",r,s){let{includeTitleDuplicates:o}=this.toastrConfig;for(let a of this.toasts){let c=o&&a.title===i;if((!o||c)&&a.message===n)return a.toastRef.onDuplicate(r,s),a}return null}applyConfig(i={}){return m(m({},this.toastrConfig),i)}_findToast(i){for(let n=0;n<this.toasts.length;n++)if(this.toasts[n].toastId===i)return{index:n,activeToast:this.toasts[n]};return null}_preBuildNotification(i,n,r,s){return s.onActivateTick?this.ngZone.run(()=>this._buildNotification(i,n,r,s)):this._buildNotification(i,n,r,s)}_buildNotification(i,n,r,s){if(!s.toastComponent)throw new Error("toastComponent required");let o=this.findDuplicate(r,n,this.toastrConfig.resetTimeoutOnDuplicate&&s.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&r||n)&&this.toastrConfig.preventDuplicates&&o!==null)return o;this.previousToastMessage=n;let a=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(a=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));let c=this.overlay.create(s.positionClass,this.overlayContainer);this.index=this.index+1;let l=n;n&&s.enableHtml&&(l=this.sanitizer.sanitize(It.HTML,n));let u=new _c(c),f=new ni(this.index,s,l,r,i,u),h=[{provide:ni,useValue:f}],g=ne.create({providers:h,parent:this._injector}),v=new gc(s.toastComponent,g),E=c.attach(v,s.newestOnTop);u.componentInstance=E.instance;let _={toastId:this.index,title:r||"",message:n||"",toastRef:u,onShown:u.afterActivate(),onHidden:u.afterClosed(),onTap:f.onTap(),onAction:f.onAction(),portal:E};return a||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{_.toastRef.activate()})),this.toasts.push(_),_}static \u0275fac=function(n){return new(n||t)(T(Nh),T(y0),T(ne),T(Pa),T($))};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),b0=(()=>{class t{toastrService;toastPackage;ngZone;message;title;options;duplicatesCount;originalTimeout;width=Ve(-1);toastClasses="";state;get _state(){return this.state()}get displayStyle(){if(this.state().value==="inactive")return"none"}timeout;intervalId;hideTime;sub;sub1;sub2;sub3;constructor(i,n,r){this.toastrService=i,this.toastPackage=n,this.ngZone=r,this.message=n.message,this.title=n.title,this.options=n.config,this.originalTimeout=n.config.timeOut,this.toastClasses=`${n.toastType} ${n.config.toastClass}`,this.sub=n.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=n.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=n.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=n.toastRef.countDuplicate().subscribe(s=>{this.duplicatesCount=s}),this.state=Ve({value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}})}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state.update(i=>k(m({},i),{value:"active"})),!(this.options.disableTimeOut===!0||this.options.disableTimeOut==="timeOut")&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=new Date().getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(this.width()===0||this.width()===100||!this.options.timeOut)return;let i=new Date().getTime(),n=this.hideTime-i;this.width.set(n/this.options.timeOut*100),this.options.progressAnimation==="increasing"&&this.width.update(r=>100-r),this.width()<=0&&this.width.set(0),this.width()>=100&&this.width.set(100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state.update(i=>k(m({},i),{value:"active"})),this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=new Date().getTime()+(this.options.timeOut||0),this.width.set(-1),this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){this.state().value!=="removed"&&(clearTimeout(this.timeout),this.state.update(i=>k(m({},i),{value:"removed"})),this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){this.state().value!=="removed"&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){this.state().value!=="removed"&&this.options.disableTimeOut!=="extendedTimeOut"&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width.set(0))}delayedHideToast(){this.options.disableTimeOut===!0||this.options.disableTimeOut==="extendedTimeOut"||this.options.extendedTimeOut===0||this.state().value==="removed"||(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=new Date().getTime()+(this.options.timeOut||0),this.width.set(-1),this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(i,n){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(i),n)):this.timeout=setTimeout(()=>i(),n)}outsideInterval(i,n){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(i),n)):this.intervalId=setInterval(()=>i(),n)}runInsideAngular(i){this.ngZone?this.ngZone.run(()=>i()):i()}static \u0275fac=function(n){return new(n||t)(I(xs),I(ni),I($))};static \u0275cmp=Ye({type:t,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(n,r){n&1&&ie("click",function(){return r.tapToast()})("mouseenter",function(){return r.stickAround()})("mouseleave",function(){return r.delayedHideToast()}),n&2&&(td("@flyInOut",r._state),ye(r.toastClasses),$n("display",r.displayStyle))},standalone:!0,features:[Xe],attrs:Ph,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(n,r){n&1&&Ze(0,o0,3,0,"button",0)(1,c0,3,5,"div",1)(2,l0,1,3,"div",2)(3,u0,2,4,"div",3)(4,d0,2,2,"div",4),n&2&&(ee("ngIf",r.options.closeButton),z(),ee("ngIf",r.title),z(),ee("ngIf",r.message&&r.options.enableHtml),z(),ee("ngIf",r.message&&!r.options.enableHtml),z(),ee("ngIf",r.options.progressBar))},dependencies:[pa],encapsulation:2,data:{animation:[md("flyInOut",[cs("inactive",as({opacity:0})),cs("active",as({opacity:1})),cs("removed",as({opacity:0})),_a("inactive => active",ma("{{ easeTime }}ms {{ easing }}")),_a("active => removed",ma("{{ easeTime }}ms {{ easing }}"))])]},changeDetection:0})}return t})(),w0=k(m({},Mh),{toastComponent:b0}),dT=(t={})=>Qe([{provide:Nh,useValue:{default:w0,config:t}}]);var D0=(()=>{class t{toastrService;toastPackage;appRef;message;title;options;duplicatesCount;originalTimeout;width=Ve(-1);toastClasses="";get displayStyle(){return this.state()==="inactive"?"none":null}state=Ve("inactive");timeout;intervalId;hideTime;sub;sub1;sub2;sub3;constructor(i,n,r){this.toastrService=i,this.toastPackage=n,this.appRef=r,this.message=n.message,this.title=n.title,this.options=n.config,this.originalTimeout=n.config.timeOut,this.toastClasses=`${n.toastType} ${n.config.toastClass}`,this.sub=n.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=n.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=n.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=n.toastRef.countDuplicate().subscribe(s=>{this.duplicatesCount=s})}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state.set("active"),!(this.options.disableTimeOut===!0||this.options.disableTimeOut==="timeOut")&&this.options.timeOut&&(this.timeout=setTimeout(()=>{this.remove()},this.options.timeOut),this.hideTime=new Date().getTime()+this.options.timeOut,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))),this.options.onActivateTick&&this.appRef.tick()}updateProgress(){if(this.width()===0||this.width()===100||!this.options.timeOut)return;let i=new Date().getTime(),n=this.hideTime-i;this.width.set(n/this.options.timeOut*100),this.options.progressAnimation==="increasing"&&this.width.update(r=>100-r),this.width()<=0&&this.width.set(0),this.width()>=100&&this.width.set(100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state.set("active"),this.options.timeOut=this.originalTimeout,this.timeout=setTimeout(()=>this.remove(),this.originalTimeout),this.hideTime=new Date().getTime()+(this.originalTimeout||0),this.width.set(-1),this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))}remove(){this.state()!=="removed"&&(clearTimeout(this.timeout),this.state.set("removed"),this.timeout=setTimeout(()=>this.toastrService.remove(this.toastPackage.toastId)))}tapToast(){this.state()!=="removed"&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){this.state()!=="removed"&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width.set(0))}delayedHideToast(){this.options.disableTimeOut===!0||this.options.disableTimeOut==="extendedTimeOut"||this.options.extendedTimeOut===0||this.state()==="removed"||(this.timeout=setTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=new Date().getTime()+(this.options.timeOut||0),this.width.set(-1),this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10)))}static \u0275fac=function(n){return new(n||t)(I(xs),I(ni),I(et))};static \u0275cmp=Ye({type:t,selectors:[["","toast-component",""]],hostVars:4,hostBindings:function(n,r){n&1&&ie("click",function(){return r.tapToast()})("mouseenter",function(){return r.stickAround()})("mouseleave",function(){return r.delayedHideToast()}),n&2&&(ye(r.toastClasses),$n("display",r.displayStyle))},standalone:!0,features:[Xe],attrs:Ph,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(n,r){n&1&&Ze(0,h0,3,0,"button",0)(1,p0,3,5,"div",1)(2,g0,1,3,"div",2)(3,m0,2,4,"div",3)(4,_0,2,2,"div",4),n&2&&(ee("ngIf",r.options.closeButton),z(),ee("ngIf",r.title),z(),ee("ngIf",r.message&&r.options.enableHtml),z(),ee("ngIf",r.message&&!r.options.enableHtml),z(),ee("ngIf",r.options.progressBar))},dependencies:[pa],encapsulation:2,changeDetection:0})}return t})(),hT=k(m({},Mh),{toastComponent:D0});var Hh=(()=>{let e=class e{constructor(n,r){this._renderer=n,this._elementRef=r,this.onChange=s=>{},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)(I(jn),I(ae))},e.\u0275dir=x({type:e});let t=e;return t})(),Gh=(()=>{let e=class e extends Hh{};e.\u0275fac=(()=>{let n;return function(s){return(n||(n=Gt(e)))(s||e)}})(),e.\u0275dir=x({type:e,features:[Ue]});let t=e;return t})(),ai=new R(""),E0={provide:ai,useExisting:ct(()=>T0),multi:!0},T0=(()=>{let e=class e extends Gh{writeValue(n){this.setProperty("checked",n)}};e.\u0275fac=(()=>{let n;return function(s){return(n||(n=Gt(e)))(s||e)}})(),e.\u0275dir=x({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(r,s){r&1&&ie("change",function(a){return s.onChange(a.target.checked)})("blur",function(){return s.onTouched()})},features:[mt([E0]),Ue]});let t=e;return t})(),C0={provide:ai,useExisting:ct(()=>zh),multi:!0};function I0(){let t=Gn()?Gn().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var S0=new R(""),zh=(()=>{let e=class e extends Hh{constructor(n,r,s){super(n,r),this._compositionMode=s,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!I0())}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)(I(jn),I(ae),I(S0,8))},e.\u0275dir=x({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,s){r&1&&ie("input",function(a){return s._handleInput(a.target.value)})("blur",function(){return s.onTouched()})("compositionstart",function(){return s._compositionStart()})("compositionend",function(a){return s._compositionEnd(a.target.value)})},features:[mt([C0]),Ue]});let t=e;return t})();function Qt(t){return t==null||(typeof t=="string"||Array.isArray(t))&&t.length===0}function Wh(t){return t!=null&&typeof t.length=="number"}var wr=new R(""),Gs=new R(""),A0=/^(?=.{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])?)*$/,kh=class{static min(e){return O0(e)}static max(e){return R0(e)}static required(e){return P0(e)}static requiredTrue(e){return M0(e)}static email(e){return N0(e)}static minLength(e){return k0(e)}static maxLength(e){return x0(e)}static pattern(e){return F0(e)}static nullValidator(e){return qh(e)}static compose(e){return Xh(e)}static composeAsync(e){return ef(e)}};function O0(t){return e=>{if(Qt(e.value)||Qt(t))return null;let i=parseFloat(e.value);return!isNaN(i)&&i<t?{min:{min:t,actual:e.value}}:null}}function R0(t){return e=>{if(Qt(e.value)||Qt(t))return null;let i=parseFloat(e.value);return!isNaN(i)&&i>t?{max:{max:t,actual:e.value}}:null}}function P0(t){return Qt(t.value)?{required:!0}:null}function M0(t){return t.value===!0?null:{required:!0}}function N0(t){return Qt(t.value)||A0.test(t.value)?null:{email:!0}}function k0(t){return e=>Qt(e.value)||!Wh(e.value)?null:e.value.length<t?{minlength:{requiredLength:t,actualLength:e.value.length}}:null}function x0(t){return e=>Wh(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}function F0(t){if(!t)return qh;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(Qt(n.value))return null;let r=n.value;return e.test(r)?null:{pattern:{requiredPattern:i,actualValue:r}}}}function qh(t){return null}function Jh(t){return t!=null}function Kh(t){return es(t)?X(t):t}function Yh(t){let e={};return t.forEach(i=>{e=i!=null?m(m({},e),i):e}),Object.keys(e).length===0?null:e}function Qh(t,e){return e.map(i=>i(t))}function L0(t){return!t.validate}function Zh(t){return t.map(e=>L0(e)?e:i=>e.validate(i))}function Xh(t){if(!t)return null;let e=t.filter(Jh);return e.length==0?null:function(i){return Yh(Qh(i,e))}}function Cc(t){return t!=null?Xh(Zh(t)):null}function ef(t){if(!t)return null;let e=t.filter(Jh);return e.length==0?null:function(i){let n=Qh(i,e).map(Kh);return Au(n).pipe(S(Yh))}}function Ic(t){return t!=null?ef(Zh(t)):null}function xh(t,e){return t===null?[e]:Array.isArray(t)?[...t,e]:[t,e]}function tf(t){return t._rawValidators}function nf(t){return t._rawAsyncValidators}function bc(t){return t?Array.isArray(t)?t:[t]:[]}function Ls(t,e){return Array.isArray(t)?t.includes(e):t===e}function Fh(t,e){let i=bc(e);return bc(t).forEach(r=>{Ls(i,r)||i.push(r)}),i}function Lh(t,e){return bc(e).filter(i=>!Ls(t,i))}var Bs=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=Cc(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=Ic(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}},Pt=class extends Bs{get formDirective(){return null}get path(){return null}},mn=class extends Bs{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},Vs=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}},B0={"[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"},RT=k(m({},B0),{"[class.ng-submitted]":"isSubmitted"}),PT=(()=>{let e=class e extends Vs{constructor(n){super(n)}};e.\u0275fac=function(r){return new(r||e)(I(mn,2))},e.\u0275dir=x({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,s){r&2&&Y("ng-untouched",s.isUntouched)("ng-touched",s.isTouched)("ng-pristine",s.isPristine)("ng-dirty",s.isDirty)("ng-valid",s.isValid)("ng-invalid",s.isInvalid)("ng-pending",s.isPending)},features:[Ue]});let t=e;return t})(),MT=(()=>{let e=class e extends Vs{constructor(n){super(n)}};e.\u0275fac=function(r){return new(r||e)(I(Pt,10))},e.\u0275dir=x({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,s){r&2&&Y("ng-untouched",s.isUntouched)("ng-touched",s.isTouched)("ng-pristine",s.isPristine)("ng-dirty",s.isDirty)("ng-valid",s.isValid)("ng-invalid",s.isInvalid)("ng-pending",s.isPending)("ng-submitted",s.isSubmitted)},features:[Ue]});let t=e;return t})();var gr="VALID",Fs="INVALID",ii="PENDING",mr="DISABLED",Zt=class{},Us=class extends Zt{constructor(e,i){super(),this.value=e,this.source=i}},vr=class extends Zt{constructor(e,i){super(),this.pristine=e,this.source=i}},yr=class extends Zt{constructor(e,i){super(),this.touched=e,this.source=i}},ri=class extends Zt{constructor(e,i){super(),this.status=e,this.source=i}},wc=class extends Zt{constructor(e){super(),this.source=e}},Dc=class extends Zt{constructor(e){super(),this.source=e}};function Sc(t){return(zs(t)?t.validators:t)||null}function V0(t){return Array.isArray(t)?Cc(t):t||null}function Ac(t,e){return(zs(e)?e.asyncValidators:t)||null}function U0(t){return Array.isArray(t)?Ic(t):t||null}function zs(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function rf(t,e,i){let n=t.controls;if(!(e?Object.keys(n):n).length)throw new j(1e3,"");if(!n[i])throw new j(1001,"")}function sf(t,e,i){t._forEachChild((n,r)=>{if(i[r]===void 0)throw new j(1002,"")})}var si=class{constructor(e,i){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=hn(()=>this.statusReactive()),this.statusReactive=Ve(void 0),this._pristine=hn(()=>this.pristineReactive()),this.pristineReactive=Ve(!0),this._touched=hn(()=>this.touchedReactive()),this.touchedReactive=Ve(!1),this._events=new L,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 $e(this.statusReactive)}set status(e){$e(()=>this.statusReactive.set(e))}get valid(){return this.status===gr}get invalid(){return this.status===Fs}get pending(){return this.status==ii}get disabled(){return this.status===mr}get enabled(){return this.status!==mr}get pristine(){return $e(this.pristineReactive)}set pristine(e){$e(()=>this.pristineReactive.set(e))}get dirty(){return!this.pristine}get touched(){return $e(this.touchedReactive)}set touched(e){$e(()=>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(Fh(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(Fh(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(Lh(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(Lh(e,this._rawAsyncValidators))}hasValidator(e){return Ls(this._rawValidators,e)}hasAsyncValidator(e){return Ls(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(k(m({},e),{sourceControl:n})),i&&e.emitEvent!==!1&&this._events.next(new yr(!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 yr(!1,n))}markAsDirty(e={}){let i=this.pristine===!0;this.pristine=!1;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsDirty(k(m({},e),{sourceControl:n})),i&&e.emitEvent!==!1&&this._events.next(new vr(!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 vr(!0,n))}markAsPending(e={}){this.status=ii;let i=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new ri(this.status,i)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending(k(m({},e),{sourceControl:i}))}disable(e={}){let i=this._parentMarkedDirty(e.onlySelf);this.status=mr,this.errors=null,this._forEachChild(r=>{r.disable(k(m({},e),{onlySelf:!0}))}),this._updateValue();let n=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Us(this.value,n)),this._events.next(new ri(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(k(m({},e),{skipPristineCheck:i}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(e={}){let i=this._parentMarkedDirty(e.onlySelf);this.status=gr,this._forEachChild(n=>{n.enable(k(m({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(k(m({},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===gr||this.status===ii)&&this._runAsyncValidator(n,e.emitEvent)}let i=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Us(this.value,i)),this._events.next(new ri(this.status,i)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(k(m({},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()?mr:gr}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,i){if(this.asyncValidator){this.status=ii,this._hasOwnPendingAsyncValidator={emitEvent:i!==!1};let n=Kh(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 ri(this.status,i)),this._parent&&this._parent._updateControlsErrors(e,i,n)}_initObservables(){this.valueChanges=new F,this.statusChanges=new F}_calculateStatus(){return this._allControlsDisabled()?mr:this.errors?Fs:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ii)?ii:this._anyControlsHaveStatus(Fs)?Fs:gr}_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 vr(this.pristine,i))}_updateTouched(e={},i){this.touched=this._anyControlsTouched(),this._events.next(new yr(this.touched,i)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,i)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){zs(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=V0(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=U0(this._rawAsyncValidators)}},oi=class extends si{constructor(e,i,n){super(Sc(i),Ac(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={}){sf(this,!0,e),Object.keys(e).forEach(n=>{rf(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,s)=>{n=i(n,r,s)}),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 Ec=class extends oi{};var Dr=new R("CallSetDisabledState",{providedIn:"root",factory:()=>Ws}),Ws="always";function of(t,e){return[...e.path,t]}function js(t,e,i=Ws){Oc(t,e),e.valueAccessor.writeValue(t.value),(t.disabled||i==="always")&&e.valueAccessor.setDisabledState?.(t.disabled),$0(t,e),G0(t,e),H0(t,e),j0(t,e)}function Bh(t,e,i=!0){let n=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(n),e.valueAccessor.registerOnTouched(n)),Hs(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function $s(t,e){t.forEach(i=>{i.registerOnValidatorChange&&i.registerOnValidatorChange(e)})}function j0(t,e){if(e.valueAccessor.setDisabledState){let i=n=>{e.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(i),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(i)})}}function Oc(t,e){let i=tf(t);e.validator!==null?t.setValidators(xh(i,e.validator)):typeof i=="function"&&t.setValidators([i]);let n=nf(t);e.asyncValidator!==null?t.setAsyncValidators(xh(n,e.asyncValidator)):typeof n=="function"&&t.setAsyncValidators([n]);let r=()=>t.updateValueAndValidity();$s(e._rawValidators,r),$s(e._rawAsyncValidators,r)}function Hs(t,e){let i=!1;if(t!==null){if(e.validator!==null){let r=tf(t);if(Array.isArray(r)&&r.length>0){let s=r.filter(o=>o!==e.validator);s.length!==r.length&&(i=!0,t.setValidators(s))}}if(e.asyncValidator!==null){let r=nf(t);if(Array.isArray(r)&&r.length>0){let s=r.filter(o=>o!==e.asyncValidator);s.length!==r.length&&(i=!0,t.setAsyncValidators(s))}}}let n=()=>{};return $s(e._rawValidators,n),$s(e._rawAsyncValidators,n),i}function $0(t,e){e.valueAccessor.registerOnChange(i=>{t._pendingValue=i,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&af(t,e)})}function H0(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&af(t,e),t.updateOn!=="submit"&&t.markAsTouched()})}function af(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function G0(t,e){let i=(n,r)=>{e.valueAccessor.writeValue(n),r&&e.viewToModelUpdate(n)};t.registerOnChange(i),e._registerOnDestroy(()=>{t._unregisterOnChange(i)})}function cf(t,e){t==null,Oc(t,e)}function z0(t,e){return Hs(t,e)}function lf(t,e){if(!t.hasOwnProperty("model"))return!1;let i=t.model;return i.isFirstChange()?!0:!Object.is(e,i.currentValue)}function W0(t){return Object.getPrototypeOf(t.constructor)===Gh}function uf(t,e){t._syncPendingControls(),e.forEach(i=>{let n=i.control;n.updateOn==="submit"&&n._pendingChange&&(i.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function df(t,e){if(!e)return null;Array.isArray(e);let i,n,r;return e.forEach(s=>{s.constructor===zh?i=s:W0(s)?n=s:r=s}),r||n||i||null}function q0(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}var J0={provide:Pt,useExisting:ct(()=>K0)},_r=Promise.resolve(),K0=(()=>{let e=class e extends Pt{get submitted(){return $e(this.submittedReactive)}constructor(n,r,s){super(),this.callSetDisabledState=s,this._submitted=hn(()=>this.submittedReactive()),this.submittedReactive=Ve(!1),this._directives=new Set,this.ngSubmit=new F,this.form=new oi({},Cc(n),Ic(r))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(n){_r.then(()=>{let r=this._findContainer(n.path);n.control=r.registerControl(n.name,n.control),js(n.control,n,this.callSetDisabledState),n.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(n)})}getControl(n){return this.form.get(n.path)}removeControl(n){_r.then(()=>{let r=this._findContainer(n.path);r&&r.removeControl(n.name),this._directives.delete(n)})}addFormGroup(n){_r.then(()=>{let r=this._findContainer(n.path),s=new oi({});cf(s,n),r.registerControl(n.name,s),s.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(n){_r.then(()=>{let r=this._findContainer(n.path);r&&r.removeControl(n.name)})}getFormGroup(n){return this.form.get(n.path)}updateModel(n,r){_r.then(()=>{this.form.get(n.path).setValue(r)})}setValue(n){this.control.setValue(n)}onSubmit(n){return this.submittedReactive.set(!0),uf(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)(I(wr,10),I(Gs,10),I(Dr,8))},e.\u0275dir=x({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(r,s){r&1&&ie("submit",function(a){return s.onSubmit(a)})("reset",function(){return s.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[mt([J0]),Ue]});let t=e;return t})();function Vh(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}function Uh(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var br=class extends si{constructor(e=null,i,n){super(Sc(i),Ac(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}),zs(i)&&(i.nonNullable||i.initialValueIsDefault)&&(Uh(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){Vh(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){Vh(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){Uh(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 Y0=t=>t instanceof br;var Q0={provide:mn,useExisting:ct(()=>Z0)},jh=Promise.resolve(),Z0=(()=>{let e=class e extends mn{constructor(n,r,s,o,a,c){super(),this._changeDetectorRef=a,this.callSetDisabledState=c,this.control=new br,this._registered=!1,this.name="",this.update=new F,this._parent=n,this._setValidators(r),this._setAsyncValidators(s),this.valueAccessor=df(this,o)}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),lf(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(){js(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){jh.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let r=n.isDisabled.currentValue,s=r!==0&&Hn(r);jh.then(()=>{s&&!this.control.disabled?this.control.disable():!s&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?of(n,this._parent):[n]}};e.\u0275fac=function(r){return new(r||e)(I(Pt,9),I(wr,10),I(Gs,10),I(ai,10),I(je,8),I(Dr,8))},e.\u0275dir=x({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:[mt([Q0]),Ue,Pe]});let t=e;return t})(),kT=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=x({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});let t=e;return t})();var hf=new R("");var X0={provide:Pt,useExisting:ct(()=>ev)},ev=(()=>{let e=class e extends Pt{get submitted(){return $e(this._submittedReactive)}set submitted(n){this._submittedReactive.set(n)}constructor(n,r,s){super(),this.callSetDisabledState=s,this._submitted=hn(()=>this._submittedReactive()),this._submittedReactive=Ve(!1),this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new F,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&&(Hs(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 js(r,n,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(n),r}getControl(n){return this.form.get(n.path)}removeControl(n){Bh(n.control||null,n,!1),q0(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),uf(this.form,this.directives),this.ngSubmit.emit(n),this.form._events.next(new wc(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 Dc(this.form))}_updateDomValue(){this.directives.forEach(n=>{let r=n.control,s=this.form.get(n.path);r!==s&&(Bh(r||null,n),Y0(s)&&(js(s,n,this.callSetDisabledState),n.control=s))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(n){let r=this.form.get(n.path);cf(r,n),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(n){if(this.form){let r=this.form.get(n.path);r&&z0(r,n)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Oc(this.form,this),this._oldForm&&Hs(this._oldForm,this)}_checkFormPresent(){this.form}};e.\u0275fac=function(r){return new(r||e)(I(wr,10),I(Gs,10),I(Dr,8))},e.\u0275dir=x({type:e,selectors:[["","formGroup",""]],hostBindings:function(r,s){r&1&&ie("submit",function(a){return s.onSubmit(a)})("reset",function(){return s.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[mt([X0]),Ue,Pe]});let t=e;return t})();var tv={provide:mn,useExisting:ct(()=>nv)},nv=(()=>{let e=class e extends mn{set isDisabled(n){}constructor(n,r,s,o,a){super(),this._ngModelWarningConfig=a,this._added=!1,this.name=null,this.update=new F,this._ngModelWarningSent=!1,this._parent=n,this._setValidators(r),this._setAsyncValidators(s),this.valueAccessor=df(this,o)}ngOnChanges(n){this._added||this._setUpControl(),lf(n,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}get path(){return of(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}};e._ngModelWarningSentOnce=!1,e.\u0275fac=function(r){return new(r||e)(I(Pt,13),I(wr,10),I(Gs,10),I(ai,10),I(hf,8))},e.\u0275dir=x({type:e,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[mt([tv]),Ue,Pe]});let t=e;return t})();var ff=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Le({type:e}),e.\u0275inj=Fe({});let t=e;return t})(),Tc=class extends si{constructor(e,i,n){super(Sc(i),Ac(n,i)),this.controls=e,this._initObservables(),this._setUpdateStrategy(i),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(e){return this.controls[this._adjustIndex(e)]}push(e,i={}){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}insert(e,i,n={}){this.controls.splice(e,0,i),this._registerControl(i),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(e,i={}){let n=this._adjustIndex(e);n<0&&(n=0),this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:i.emitEvent})}setControl(e,i,n={}){let r=this._adjustIndex(e);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),i&&(this.controls.splice(r,0,i),this._registerControl(i)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,i={}){sf(this,!1,e),e.forEach((n,r)=>{rf(this,!1,r),this.at(r).setValue(n,{onlySelf:!0,emitEvent:i.emitEvent})}),this.updateValueAndValidity(i)}patchValue(e,i={}){e!=null&&(e.forEach((n,r)=>{this.at(r)&&this.at(r).patchValue(n,{onlySelf:!0,emitEvent:i.emitEvent})}),this.updateValueAndValidity(i))}reset(e=[],i={}){this._forEachChild((n,r)=>{n.reset(e[r],{onlySelf:!0,emitEvent:i.emitEvent})}),this._updatePristine(i,this),this._updateTouched(i,this),this.updateValueAndValidity(i)}getRawValue(){return this.controls.map(e=>e.getRawValue())}clear(e={}){this.controls.length<1||(this._forEachChild(i=>i._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}_adjustIndex(e){return e<0?e+this.length:e}_syncPendingControls(){let e=this.controls.reduce((i,n)=>n._syncPendingControls()?!0:i,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){this.controls.forEach((i,n)=>{e(i,n)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(i=>i.enabled&&e(i))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_allControlsDisabled(){for(let e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}_find(e){return this.at(e)??null}};function $h(t){return!!t&&(t.asyncValidators!==void 0||t.validators!==void 0||t.updateOn!==void 0)}var xT=(()=>{let e=class e{constructor(){this.useNonNullable=!1}get nonNullable(){let n=new e;return n.useNonNullable=!0,n}group(n,r=null){let s=this._reduceControls(n),o={};return $h(r)?o=r:r!==null&&(o.validators=r.validator,o.asyncValidators=r.asyncValidator),new oi(s,o)}record(n,r=null){let s=this._reduceControls(n);return new Ec(s,r)}control(n,r,s){let o={};return this.useNonNullable?($h(r)?o=r:(o.validators=r,o.asyncValidators=s),new br(n,k(m({},o),{nonNullable:!0}))):new br(n,r,s)}array(n,r,s){let o=n.map(a=>this._createControl(a));return new Tc(o,r,s)}_reduceControls(n){let r={};return Object.keys(n).forEach(s=>{r[s]=this._createControl(n[s])}),r}_createControl(n){if(n instanceof br)return n;if(n instanceof si)return n;if(Array.isArray(n)){let r=n[0],s=n.length>1?n[1]:null,o=n.length>2?n[2]:null;return this.control(r,s,o)}else return this.control(n)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var FT=(()=>{let e=class e{static withConfig(n){return{ngModule:e,providers:[{provide:Dr,useValue:n.callSetDisabledState??Ws}]}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Le({type:e}),e.\u0275inj=Fe({imports:[ff]});let t=e;return t})(),LT=(()=>{let e=class e{static withConfig(n){return{ngModule:e,providers:[{provide:hf,useValue:n.warnOnNgModelWithFormControl??"always"},{provide:Dr,useValue:n.callSetDisabledState??Ws}]}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Le({type:e}),e.\u0275inj=Fe({imports:[ff]});let t=e;return t})();function qs(t){t||(Qo(qs),t=d(Oi));let e=new xe(i=>t.onDestroy(i.next.bind(i)));return i=>i.pipe(K(e))}function iv(t,e){!e?.injector&&Qo(iv);let i=e?.injector??d(ne),n=new wu(1),r=ad(()=>{let s;try{s=t()}catch(o){$e(()=>n.error(o));return}$e(()=>n.next(s))},{injector:i,manualCleanup:!0});return i.get(Oi).onDestroy(()=>{r.destroy(),n.complete()}),n.asObservable()}var te="top",fe="bottom",le="right",re="left",Js="auto",Xt=[te,fe,le,re],Mt="start",_n="end",pf="clippingParents",Ks="viewport",ci="popper",gf="reference",Rc=Xt.reduce(function(t,e){return t.concat([e+"-"+Mt,e+"-"+_n])},[]),Ys=[].concat(Xt,[Js]).reduce(function(t,e){return t.concat([e,e+"-"+Mt,e+"-"+_n])},[]),rv="beforeRead",sv="read",ov="afterRead",av="beforeMain",cv="main",lv="afterMain",uv="beforeWrite",dv="write",hv="afterWrite",mf=[rv,sv,ov,av,cv,lv,uv,dv,hv];function ue(t){return t?(t.nodeName||"").toLowerCase():null}function W(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function ze(t){var e=W(t).Element;return t instanceof e||t instanceof Element}function se(t){var e=W(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function li(t){if(typeof ShadowRoot>"u")return!1;var e=W(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function fv(t){var e=t.state;Object.keys(e.elements).forEach(function(i){var n=e.styles[i]||{},r=e.attributes[i]||{},s=e.elements[i];!se(s)||!ue(s)||(Object.assign(s.style,n),Object.keys(r).forEach(function(o){var a=r[o];a===!1?s.removeAttribute(o):s.setAttribute(o,a===!0?"":a)}))})}function pv(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow),function(){Object.keys(e.elements).forEach(function(n){var r=e.elements[n],s=e.attributes[n]||{},o=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:i[n]),a=o.reduce(function(c,l){return c[l]="",c},{});!se(r)||!ue(r)||(Object.assign(r.style,a),Object.keys(s).forEach(function(c){r.removeAttribute(c)}))})}}var _f={name:"applyStyles",enabled:!0,phase:"write",fn:fv,effect:pv,requires:["computeStyles"]};function de(t){return t.split("-")[0]}var it=Math.max,vn=Math.min,Nt=Math.round;function ui(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Er(){return!/^((?!chrome|android).)*safari/i.test(ui())}function We(t,e,i){e===void 0&&(e=!1),i===void 0&&(i=!1);var n=t.getBoundingClientRect(),r=1,s=1;e&&se(t)&&(r=t.offsetWidth>0&&Nt(n.width)/t.offsetWidth||1,s=t.offsetHeight>0&&Nt(n.height)/t.offsetHeight||1);var o=ze(t)?W(t):window,a=o.visualViewport,c=!Er()&&i,l=(n.left+(c&&a?a.offsetLeft:0))/r,u=(n.top+(c&&a?a.offsetTop:0))/s,f=n.width/r,h=n.height/s;return{width:f,height:h,top:u,right:l+f,bottom:u+h,left:l,x:l,y:u}}function yn(t){var e=We(t),i=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-i)<=1&&(i=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:i,height:n}}function Tr(t,e){var i=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(i&&li(i)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Se(t){return W(t).getComputedStyle(t)}function Pc(t){return["table","td","th"].indexOf(ue(t))>=0}function pe(t){return((ze(t)?t.ownerDocument:t.document)||window.document).documentElement}function kt(t){return ue(t)==="html"?t:t.assignedSlot||t.parentNode||(li(t)?t.host:null)||pe(t)}function vf(t){return!se(t)||Se(t).position==="fixed"?null:t.offsetParent}function gv(t){var e=/firefox/i.test(ui()),i=/Trident/i.test(ui());if(i&&se(t)){var n=Se(t);if(n.position==="fixed")return null}var r=kt(t);for(li(r)&&(r=r.host);se(r)&&["html","body"].indexOf(ue(r))<0;){var s=Se(r);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||e&&s.willChange==="filter"||e&&s.filter&&s.filter!=="none")return r;r=r.parentNode}return null}function rt(t){for(var e=W(t),i=vf(t);i&&Pc(i)&&Se(i).position==="static";)i=vf(i);return i&&(ue(i)==="html"||ue(i)==="body"&&Se(i).position==="static")?e:i||gv(t)||e}function bn(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function wn(t,e,i){return it(t,vn(e,i))}function yf(t,e,i){var n=wn(t,e,i);return n>i?i:n}function Cr(){return{top:0,right:0,bottom:0,left:0}}function Ir(t){return Object.assign({},Cr(),t)}function Sr(t,e){return e.reduce(function(i,n){return i[n]=t,i},{})}var mv=function(e,i){return e=typeof e=="function"?e(Object.assign({},i.rects,{placement:i.placement})):e,Ir(typeof e!="number"?e:Sr(e,Xt))};function _v(t){var e,i=t.state,n=t.name,r=t.options,s=i.elements.arrow,o=i.modifiersData.popperOffsets,a=de(i.placement),c=bn(a),l=[re,le].indexOf(a)>=0,u=l?"height":"width";if(!(!s||!o)){var f=mv(r.padding,i),h=yn(s),g=c==="y"?te:re,v=c==="y"?fe:le,E=i.rects.reference[u]+i.rects.reference[c]-o[c]-i.rects.popper[u],_=o[c]-i.rects.reference[c],y=rt(s),P=y?c==="y"?y.clientHeight||0:y.clientWidth||0:0,M=E/2-_/2,D=f[g],N=P-h[u]-f[v],O=P/2-h[u]/2+M,B=wn(D,O,N),q=c;i.modifiersData[n]=(e={},e[q]=B,e.centerOffset=B-O,e)}}function vv(t){var e=t.state,i=t.options,n=i.element,r=n===void 0?"[data-popper-arrow]":n;r!=null&&(typeof r=="string"&&(r=e.elements.popper.querySelector(r),!r)||Tr(e.elements.popper,r)&&(e.elements.arrow=r))}var Mc={name:"arrow",enabled:!0,phase:"main",fn:_v,effect:vv,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function qe(t){return t.split("-")[1]}var yv={top:"auto",right:"auto",bottom:"auto",left:"auto"};function bv(t,e){var i=t.x,n=t.y,r=e.devicePixelRatio||1;return{x:Nt(i*r)/r||0,y:Nt(n*r)/r||0}}function bf(t){var e,i=t.popper,n=t.popperRect,r=t.placement,s=t.variation,o=t.offsets,a=t.position,c=t.gpuAcceleration,l=t.adaptive,u=t.roundOffsets,f=t.isFixed,h=o.x,g=h===void 0?0:h,v=o.y,E=v===void 0?0:v,_=typeof u=="function"?u({x:g,y:E}):{x:g,y:E};g=_.x,E=_.y;var y=o.hasOwnProperty("x"),P=o.hasOwnProperty("y"),M=re,D=te,N=window;if(l){var O=rt(i),B="clientHeight",q="clientWidth";if(O===W(i)&&(O=pe(i),Se(O).position!=="static"&&a==="absolute"&&(B="scrollHeight",q="scrollWidth")),O=O,r===te||(r===re||r===le)&&s===_n){D=fe;var J=f&&O===N&&N.visualViewport?N.visualViewport.height:O[B];E-=J-n.height,E*=c?1:-1}if(r===re||(r===te||r===fe)&&s===_n){M=le;var Z=f&&O===N&&N.visualViewport?N.visualViewport.width:O[q];g-=Z-n.width,g*=c?1:-1}}var me=Object.assign({position:a},l&&yv),Je=u===!0?bv({x:g,y:E},W(i)):{x:g,y:E};if(g=Je.x,E=Je.y,c){var be;return Object.assign({},me,(be={},be[D]=P?"0":"",be[M]=y?"0":"",be.transform=(N.devicePixelRatio||1)<=1?"translate("+g+"px, "+E+"px)":"translate3d("+g+"px, "+E+"px, 0)",be))}return Object.assign({},me,(e={},e[D]=P?E+"px":"",e[M]=y?g+"px":"",e.transform="",e))}function wv(t){var e=t.state,i=t.options,n=i.gpuAcceleration,r=n===void 0?!0:n,s=i.adaptive,o=s===void 0?!0:s,a=i.roundOffsets,c=a===void 0?!0:a,l={placement:de(e.placement),variation:qe(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,bf(Object.assign({},l,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:c})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,bf(Object.assign({},l,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var wf={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:wv,data:{}};var Qs={passive:!0};function Dv(t){var e=t.state,i=t.instance,n=t.options,r=n.scroll,s=r===void 0?!0:r,o=n.resize,a=o===void 0?!0:o,c=W(e.elements.popper),l=[].concat(e.scrollParents.reference,e.scrollParents.popper);return s&&l.forEach(function(u){u.addEventListener("scroll",i.update,Qs)}),a&&c.addEventListener("resize",i.update,Qs),function(){s&&l.forEach(function(u){u.removeEventListener("scroll",i.update,Qs)}),a&&c.removeEventListener("resize",i.update,Qs)}}var Df={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Dv,data:{}};var Ev={left:"right",right:"left",bottom:"top",top:"bottom"};function di(t){return t.replace(/left|right|bottom|top/g,function(e){return Ev[e]})}var Tv={start:"end",end:"start"};function Zs(t){return t.replace(/start|end/g,function(e){return Tv[e]})}function Dn(t){var e=W(t),i=e.pageXOffset,n=e.pageYOffset;return{scrollLeft:i,scrollTop:n}}function En(t){return We(pe(t)).left+Dn(t).scrollLeft}function Nc(t,e){var i=W(t),n=pe(t),r=i.visualViewport,s=n.clientWidth,o=n.clientHeight,a=0,c=0;if(r){s=r.width,o=r.height;var l=Er();(l||!l&&e==="fixed")&&(a=r.offsetLeft,c=r.offsetTop)}return{width:s,height:o,x:a+En(t),y:c}}function kc(t){var e,i=pe(t),n=Dn(t),r=(e=t.ownerDocument)==null?void 0:e.body,s=it(i.scrollWidth,i.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),o=it(i.scrollHeight,i.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-n.scrollLeft+En(t),c=-n.scrollTop;return Se(r||i).direction==="rtl"&&(a+=it(i.clientWidth,r?r.clientWidth:0)-s),{width:s,height:o,x:a,y:c}}function Tn(t){var e=Se(t),i=e.overflow,n=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(i+r+n)}function Xs(t){return["html","body","#document"].indexOf(ue(t))>=0?t.ownerDocument.body:se(t)&&Tn(t)?t:Xs(kt(t))}function en(t,e){var i;e===void 0&&(e=[]);var n=Xs(t),r=n===((i=t.ownerDocument)==null?void 0:i.body),s=W(n),o=r?[s].concat(s.visualViewport||[],Tn(n)?n:[]):n,a=e.concat(o);return r?a:a.concat(en(kt(o)))}function hi(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Cv(t,e){var i=We(t,!1,e==="fixed");return i.top=i.top+t.clientTop,i.left=i.left+t.clientLeft,i.bottom=i.top+t.clientHeight,i.right=i.left+t.clientWidth,i.width=t.clientWidth,i.height=t.clientHeight,i.x=i.left,i.y=i.top,i}function Ef(t,e,i){return e===Ks?hi(Nc(t,i)):ze(e)?Cv(e,i):hi(kc(pe(t)))}function Iv(t){var e=en(kt(t)),i=["absolute","fixed"].indexOf(Se(t).position)>=0,n=i&&se(t)?rt(t):t;return ze(n)?e.filter(function(r){return ze(r)&&Tr(r,n)&&ue(r)!=="body"}):[]}function xc(t,e,i,n){var r=e==="clippingParents"?Iv(t):[].concat(e),s=[].concat(r,[i]),o=s[0],a=s.reduce(function(c,l){var u=Ef(t,l,n);return c.top=it(u.top,c.top),c.right=vn(u.right,c.right),c.bottom=vn(u.bottom,c.bottom),c.left=it(u.left,c.left),c},Ef(t,o,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Ar(t){var e=t.reference,i=t.element,n=t.placement,r=n?de(n):null,s=n?qe(n):null,o=e.x+e.width/2-i.width/2,a=e.y+e.height/2-i.height/2,c;switch(r){case te:c={x:o,y:e.y-i.height};break;case fe:c={x:o,y:e.y+e.height};break;case le:c={x:e.x+e.width,y:a};break;case re:c={x:e.x-i.width,y:a};break;default:c={x:e.x,y:e.y}}var l=r?bn(r):null;if(l!=null){var u=l==="y"?"height":"width";switch(s){case Mt:c[l]=c[l]-(e[u]/2-i[u]/2);break;case _n:c[l]=c[l]+(e[u]/2-i[u]/2);break;default:}}return c}function tn(t,e){e===void 0&&(e={});var i=e,n=i.placement,r=n===void 0?t.placement:n,s=i.strategy,o=s===void 0?t.strategy:s,a=i.boundary,c=a===void 0?pf:a,l=i.rootBoundary,u=l===void 0?Ks:l,f=i.elementContext,h=f===void 0?ci:f,g=i.altBoundary,v=g===void 0?!1:g,E=i.padding,_=E===void 0?0:E,y=Ir(typeof _!="number"?_:Sr(_,Xt)),P=h===ci?gf:ci,M=t.rects.popper,D=t.elements[v?P:h],N=xc(ze(D)?D:D.contextElement||pe(t.elements.popper),c,u,o),O=We(t.elements.reference),B=Ar({reference:O,element:M,strategy:"absolute",placement:r}),q=hi(Object.assign({},M,B)),J=h===ci?q:O,Z={top:N.top-J.top+y.top,bottom:J.bottom-N.bottom+y.bottom,left:N.left-J.left+y.left,right:J.right-N.right+y.right},me=t.modifiersData.offset;if(h===ci&&me){var Je=me[r];Object.keys(Z).forEach(function(be){var sn=[le,fe].indexOf(be)>=0?1:-1,on=[te,fe].indexOf(be)>=0?"y":"x";Z[be]+=Je[on]*sn})}return Z}function Fc(t,e){e===void 0&&(e={});var i=e,n=i.placement,r=i.boundary,s=i.rootBoundary,o=i.padding,a=i.flipVariations,c=i.allowedAutoPlacements,l=c===void 0?Ys:c,u=qe(n),f=u?a?Rc:Rc.filter(function(v){return qe(v)===u}):Xt,h=f.filter(function(v){return l.indexOf(v)>=0});h.length===0&&(h=f);var g=h.reduce(function(v,E){return v[E]=tn(t,{placement:E,boundary:r,rootBoundary:s,padding:o})[de(E)],v},{});return Object.keys(g).sort(function(v,E){return g[v]-g[E]})}function Sv(t){if(de(t)===Js)return[];var e=di(t);return[Zs(t),e,Zs(e)]}function Av(t){var e=t.state,i=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var r=i.mainAxis,s=r===void 0?!0:r,o=i.altAxis,a=o===void 0?!0:o,c=i.fallbackPlacements,l=i.padding,u=i.boundary,f=i.rootBoundary,h=i.altBoundary,g=i.flipVariations,v=g===void 0?!0:g,E=i.allowedAutoPlacements,_=e.options.placement,y=de(_),P=y===_,M=c||(P||!v?[di(_)]:Sv(_)),D=[_].concat(M).reduce(function(xn,Ut){return xn.concat(de(Ut)===Js?Fc(e,{placement:Ut,boundary:u,rootBoundary:f,padding:l,flipVariations:v,allowedAutoPlacements:E}):Ut)},[]),N=e.rects.reference,O=e.rects.popper,B=new Map,q=!0,J=D[0],Z=0;Z<D.length;Z++){var me=D[Z],Je=de(me),be=qe(me)===Mt,sn=[te,fe].indexOf(Je)>=0,on=sn?"width":"height",Re=tn(e,{placement:me,boundary:u,rootBoundary:f,altBoundary:h,padding:l}),Ke=sn?be?le:re:be?fe:te;N[on]>O[on]&&(Ke=di(Ke));var Gr=di(Ke),an=[];if(s&&an.push(Re[Je]<=0),a&&an.push(Re[Ke]<=0,Re[Gr]<=0),an.every(function(xn){return xn})){J=me,q=!1;break}B.set(me,an)}if(q)for(var zr=v?3:1,Lo=function(Ut){var Ci=D.find(function(qr){var cn=B.get(qr);if(cn)return cn.slice(0,Ut).every(function(Bo){return Bo})});if(Ci)return J=Ci,"break"},Ti=zr;Ti>0;Ti--){var Wr=Lo(Ti);if(Wr==="break")break}e.placement!==J&&(e.modifiersData[n]._skip=!0,e.placement=J,e.reset=!0)}}var Lc={name:"flip",enabled:!0,phase:"main",fn:Av,requiresIfExists:["offset"],data:{_skip:!1}};function Ov(t,e,i){var n=de(t),r=[re,te].indexOf(n)>=0?-1:1,s=typeof i=="function"?i(Object.assign({},e,{placement:t})):i,o=s[0],a=s[1];return o=o||0,a=(a||0)*r,[re,le].indexOf(n)>=0?{x:a,y:o}:{x:o,y:a}}function Rv(t){var e=t.state,i=t.options,n=t.name,r=i.offset,s=r===void 0?[0,0]:r,o=Ys.reduce(function(u,f){return u[f]=Ov(f,e.rects,s),u},{}),a=o[e.placement],c=a.x,l=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=c,e.modifiersData.popperOffsets.y+=l),e.modifiersData[n]=o}var Bc={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Rv};function Pv(t){var e=t.state,i=t.name;e.modifiersData[i]=Ar({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var Tf={name:"popperOffsets",enabled:!0,phase:"read",fn:Pv,data:{}};function Vc(t){return t==="x"?"y":"x"}function Mv(t){var e=t.state,i=t.options,n=t.name,r=i.mainAxis,s=r===void 0?!0:r,o=i.altAxis,a=o===void 0?!1:o,c=i.boundary,l=i.rootBoundary,u=i.altBoundary,f=i.padding,h=i.tether,g=h===void 0?!0:h,v=i.tetherOffset,E=v===void 0?0:v,_=tn(e,{boundary:c,rootBoundary:l,padding:f,altBoundary:u}),y=de(e.placement),P=qe(e.placement),M=!P,D=bn(y),N=Vc(D),O=e.modifiersData.popperOffsets,B=e.rects.reference,q=e.rects.popper,J=typeof E=="function"?E(Object.assign({},e.rects,{placement:e.placement})):E,Z=typeof J=="number"?{mainAxis:J,altAxis:J}:Object.assign({mainAxis:0,altAxis:0},J),me=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,Je={x:0,y:0};if(O){if(s){var be,sn=D==="y"?te:re,on=D==="y"?fe:le,Re=D==="y"?"height":"width",Ke=O[D],Gr=Ke+_[sn],an=Ke-_[on],zr=g?-q[Re]/2:0,Lo=P===Mt?B[Re]:q[Re],Ti=P===Mt?-q[Re]:-B[Re],Wr=e.elements.arrow,xn=g&&Wr?yn(Wr):{width:0,height:0},Ut=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Cr(),Ci=Ut[sn],qr=Ut[on],cn=wn(0,B[Re],xn[Re]),Bo=M?B[Re]/2-zr-cn-Ci-Z.mainAxis:Lo-cn-Ci-Z.mainAxis,cg=M?-B[Re]/2+zr+cn+qr+Z.mainAxis:Ti+cn+qr+Z.mainAxis,Vo=e.elements.arrow&&rt(e.elements.arrow),lg=Vo?D==="y"?Vo.clientTop||0:Vo.clientLeft||0:0,uu=(be=me?.[D])!=null?be:0,ug=Ke+Bo-uu-lg,dg=Ke+cg-uu,du=wn(g?vn(Gr,ug):Gr,Ke,g?it(an,dg):an);O[D]=du,Je[D]=du-Ke}if(a){var hu,hg=D==="x"?te:re,fg=D==="x"?fe:le,ln=O[N],Jr=N==="y"?"height":"width",fu=ln+_[hg],pu=ln-_[fg],Uo=[te,re].indexOf(y)!==-1,gu=(hu=me?.[N])!=null?hu:0,mu=Uo?fu:ln-B[Jr]-q[Jr]-gu+Z.altAxis,_u=Uo?ln+B[Jr]+q[Jr]-gu-Z.altAxis:pu,vu=g&&Uo?yf(mu,ln,_u):wn(g?mu:fu,ln,g?_u:pu);O[N]=vu,Je[N]=vu-ln}e.modifiersData[n]=Je}}var Uc={name:"preventOverflow",enabled:!0,phase:"main",fn:Mv,requiresIfExists:["offset"]};function jc(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function $c(t){return t===W(t)||!se(t)?Dn(t):jc(t)}function Nv(t){var e=t.getBoundingClientRect(),i=Nt(e.width)/t.offsetWidth||1,n=Nt(e.height)/t.offsetHeight||1;return i!==1||n!==1}function Hc(t,e,i){i===void 0&&(i=!1);var n=se(e),r=se(e)&&Nv(e),s=pe(e),o=We(t,r,i),a={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(n||!n&&!i)&&((ue(e)!=="body"||Tn(s))&&(a=$c(e)),se(e)?(c=We(e,!0),c.x+=e.clientLeft,c.y+=e.clientTop):s&&(c.x=En(s))),{x:o.left+a.scrollLeft-c.x,y:o.top+a.scrollTop-c.y,width:o.width,height:o.height}}function kv(t){var e=new Map,i=new Set,n=[];t.forEach(function(s){e.set(s.name,s)});function r(s){i.add(s.name);var o=[].concat(s.requires||[],s.requiresIfExists||[]);o.forEach(function(a){if(!i.has(a)){var c=e.get(a);c&&r(c)}}),n.push(s)}return t.forEach(function(s){i.has(s.name)||r(s)}),n}function Gc(t){var e=kv(t);return mf.reduce(function(i,n){return i.concat(e.filter(function(r){return r.phase===n}))},[])}function zc(t){var e;return function(){return e||(e=new Promise(function(i){Promise.resolve().then(function(){e=void 0,i(t())})})),e}}function Wc(t){var e=t.reduce(function(i,n){var r=i[n.name];return i[n.name]=r?Object.assign({},r,n,{options:Object.assign({},r.options,n.options),data:Object.assign({},r.data,n.data)}):n,i},{});return Object.keys(e).map(function(i){return e[i]})}var Cf={placement:"bottom",modifiers:[],strategy:"absolute"};function If(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return!e.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function Sf(t){t===void 0&&(t={});var e=t,i=e.defaultModifiers,n=i===void 0?[]:i,r=e.defaultOptions,s=r===void 0?Cf:r;return function(a,c,l){l===void 0&&(l=s);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},Cf,s),modifiersData:{},elements:{reference:a,popper:c},attributes:{},styles:{}},f=[],h=!1,g={state:u,setOptions:function(y){var P=typeof y=="function"?y(u.options):y;E(),u.options=Object.assign({},s,u.options,P),u.scrollParents={reference:ze(a)?en(a):a.contextElement?en(a.contextElement):[],popper:en(c)};var M=Gc(Wc([].concat(n,u.options.modifiers)));return u.orderedModifiers=M.filter(function(D){return D.enabled}),v(),g.update()},forceUpdate:function(){if(!h){var y=u.elements,P=y.reference,M=y.popper;if(If(P,M)){u.rects={reference:Hc(P,rt(M),u.options.strategy==="fixed"),popper:yn(M)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(Z){return u.modifiersData[Z.name]=Object.assign({},Z.data)});for(var D=0;D<u.orderedModifiers.length;D++){if(u.reset===!0){u.reset=!1,D=-1;continue}var N=u.orderedModifiers[D],O=N.fn,B=N.options,q=B===void 0?{}:B,J=N.name;typeof O=="function"&&(u=O({state:u,options:q,name:J,instance:g})||u)}}}},update:zc(function(){return new Promise(function(_){g.forceUpdate(),_(u)})}),destroy:function(){E(),h=!0}};if(!If(a,c))return g;g.setOptions(l).then(function(_){!h&&l.onFirstUpdate&&l.onFirstUpdate(_)});function v(){u.orderedModifiers.forEach(function(_){var y=_.name,P=_.options,M=P===void 0?{}:P,D=_.effect;if(typeof D=="function"){var N=D({state:u,name:y,instance:g,options:M}),O=function(){};f.push(N||O)}})}function E(){f.forEach(function(_){return _()}),f=[]}return g}}var xv=[Df,Tf,wf,_f],qc=Sf({defaultModifiers:xv});var kf=["*"];var Fv=["dialog"];function Lv(t,e){if(t&1&&Me(0),t&2){let i=Q(2);Zr(i.title)}}function Bv(t,e){}function Vv(t,e){if(t&1&&(he(0,"h3",2),Ze(1,Lv,1,1,"ng-template",null,0,ha)(3,Bv,0,0,"ng-template",4),Ie()),t&2){let i=da(2),n=Q();z(3),ee("ngTemplateOutlet",n.isTitleTemplate()?n.title:i)("ngTemplateOutletContext",n.context)}}function Uv(t,e){if(t&1&&(he(0,"span"),Me(1),Ie()),t&2){let i=Q().$implicit,n=Q();ye(n.highlightClass),z(),Zr(i)}}function jv(t,e){if(t&1&&(ki(0),Me(1),xi()),t&2){let i=Q().$implicit;z(),Zr(i)}}function $v(t,e){if(t&1&&Ze(0,Uv,2,4,"span",0)(1,jv,2,1,"ng-container"),t&2){let i=e.$index;sa(i%2!==0?0:1)}}var Hv=(t,e,i)=>({result:t,term:e,formatter:i});function Gv(t,e){if(t&1&&ht(0,"ngb-highlight",2),t&2){let i=e.result,n=e.term,r=e.formatter;ee("result",r(i))("term",n)}}function zv(t,e){}function Wv(t,e){if(t&1){let i=Fi();he(0,"button",3),ie("mouseenter",function(){let r=Ln(i).$index,s=Q();return Bn(s.markActive(r))})("click",function(){let r=Ln(i).$implicit,s=Q();return Bn(s.select(r))}),Ze(1,zv,0,0,"ng-template",4),Ie()}if(t&2){let i=e.$implicit,n=e.$index,r=Q(),s=da(1);Y("active",n===r.activeIdx),ee("id",r.id+"-"+n),z(),ee("ngTemplateOutlet",r.resultTemplate||s)("ngTemplateOutletContext",id(5,Hv,i,r.term,r.formatter))}}var xf={animation:!0,transitionTimerDelayMs:5},so=(()=>{let e=class e{constructor(){this.animation=xf.animation}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),qv=(()=>{let e=class e{constructor(){this._ngbConfig=d(so),this.closeOthers=!1,this.destroyOnHide=!0}get animation(){return this._animation??this._ngbConfig.animation}set animation(n){this._animation=n}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Jv(t){let{transitionDelay:e,transitionDuration:i}=window.getComputedStyle(t),n=parseFloat(e),r=parseFloat(i);return(n+r)*1e3}function Or(t){return t!=null?`${t}`:""}function oo(t){return typeof t=="string"}function no(t){return t!=null}function Kv(t){return t&&t.then}function Yv(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}function Qv(t,e){return!e||typeof t.closest>"u"?null:t.closest(e)}function Qc(t){return(t||document.body).getBoundingClientRect()}function Zv(t){return e=>new xe(i=>{let n=o=>t.run(()=>i.next(o)),r=o=>t.run(()=>i.error(o)),s=()=>t.run(()=>i.complete());return e.subscribe({next:n,error:r,complete:s})})}function Af(t){return t.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function Ff(t=document){let e=t?.activeElement;return e?e.shadowRoot?Ff(e.shadowRoot):e:null}var Xv=()=>{},{transitionTimerDelayMs:ey}=xf,eo=new Map,bt=(t,e,i,n)=>{let r=n.context||{},s=eo.get(e);if(s)switch(n.runningTransition){case"continue":return at;case"stop":t.run(()=>s.transition$.complete()),r=Object.assign(s.context,r),eo.delete(e)}let o=i(e,n.animation,r)||Xv;if(!n.animation||window.getComputedStyle(e).transitionProperty==="none")return t.run(()=>o()),b(void 0).pipe(Zv(t));let a=new L,c=new L,l=a.pipe(Mu(!0));eo.set(e,{transition$:a,complete:()=>{c.next(),c.complete()},context:r});let u=Jv(e);return t.runOutsideAngular(()=>{let f=De(e,"transitionend").pipe(K(l),ve(({target:g})=>g===e)),h=Ou(u+ey).pipe(K(l));Wo(h,f,c).pipe(K(l)).subscribe(()=>{eo.delete(e),t.run(()=>{o(),a.next(),a.complete()})})}),a.asObservable()};function ty(t,e){if(typeof navigator>"u")return"0px";let{classList:i}=t,n=i.contains("show");n||i.add("show"),t.style[e]="";let r=t.getBoundingClientRect()[e]+"px";return n||i.remove("show"),r}var ny=(t,e,i)=>{let{direction:n,maxSize:r,dimension:s}=i,{classList:o}=t;function a(){o.add("collapse"),n==="show"?o.add("show"):o.remove("show")}if(!e){a();return}return r||(r=ty(t,s),i.maxSize=r,t.style[s]=n!=="show"?r:"0px",o.remove("collapse"),o.remove("collapsing"),o.remove("show"),Qc(t),o.add("collapsing")),t.style[s]=n==="show"?r:"0px",()=>{a(),o.remove("collapsing"),t.style[s]=""}},iy=(()=>{let e=class e{constructor(){this._ngbConfig=d(so),this.horizontal=!1}get animation(){return this._animation??this._ngbConfig.animation}set animation(n){this._animation=n}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Of=(()=>{let e=class e{constructor(){this._config=d(iy),this._element=d(ae),this._zone=d($),this.animation=this._config.animation,this._afterInit=!1,this._isCollapsed=!1,this.ngbCollapseChange=new F,this.horizontal=this._config.horizontal,this.shown=new F,this.hidden=new F}set collapsed(n){this._isCollapsed!==n&&(this._isCollapsed=n,this._afterInit&&this._runTransitionWithEvents(n,this.animation))}ngOnInit(){this._runTransition(this._isCollapsed,!1),this._afterInit=!0}toggle(n=this._isCollapsed){this.collapsed=!n,this.ngbCollapseChange.next(this._isCollapsed)}_runTransition(n,r){return bt(this._zone,this._element.nativeElement,ny,{animation:r,runningTransition:"stop",context:{direction:n?"hide":"show",dimension:this.horizontal?"width":"height"}})}_runTransitionWithEvents(n,r){this._runTransition(n,r).subscribe(()=>{n?this.hidden.emit():this.shown.emit()})}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=x({type:e,selectors:[["","ngbCollapse",""]],hostVars:2,hostBindings:function(r,s){r&2&&Y("collapse-horizontal",s.horizontal)},inputs:{animation:"animation",collapsed:[0,"ngbCollapse","collapsed"],horizontal:"horizontal"},outputs:{ngbCollapseChange:"ngbCollapseChange",shown:"shown",hidden:"hidden"},exportAs:["ngbCollapse"],standalone:!0});let t=e;return t})(),ry=0,EO=(()=>{let e=class e{constructor(){this._vcr=d(Ni),this._element=d(ae).nativeElement,this._item=d(fi),this._viewRef=null}ngAfterContentChecked(){this._bodyTpl&&(this._item._shouldBeInDOM?this._createViewIfNotExists():this._destroyViewIfExists())}ngOnDestroy(){this._destroyViewIfExists()}_destroyViewIfExists(){this._viewRef&&(this._viewRef.destroy(),this._viewRef=null)}_createViewIfNotExists(){if(!this._viewRef){this._viewRef=this._vcr.createEmbeddedView(this._bodyTpl),this._viewRef.detectChanges();for(let n of this._viewRef.rootNodes)this._element.appendChild(n)}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=x({type:e,selectors:[["","ngbAccordionBody",""]],contentQueries:function(r,s,o){if(r&1&&St(o,Mi,7),r&2){let a;pt(a=gt())&&(s._bodyTpl=a.first)}},hostVars:2,hostBindings:function(r,s){r&2&&Y("accordion-body",!0)},standalone:!0});let t=e;return t})(),sy=(()=>{let e=class e{constructor(){this.item=d(fi),this.ngbCollapse=d(Of)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=x({type:e,selectors:[["","ngbAccordionCollapse",""]],hostAttrs:["role","region"],hostVars:4,hostBindings:function(r,s){r&2&&(ft("id",s.item.collapseId),Ce("aria-labelledby",s.item.toggleId),Y("accordion-collapse",!0))},exportAs:["ngbAccordionCollapse"],standalone:!0,features:[ia([Of])]});let t=e;return t})(),oy=(()=>{let e=class e{constructor(){this.item=d(fi),this.accordion=d(Lf)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=x({type:e,selectors:[["","ngbAccordionToggle",""]],hostVars:5,hostBindings:function(r,s){r&1&&ie("click",function(){return!s.item.disabled&&s.accordion.toggle(s.item.id)}),r&2&&(ft("id",s.item.toggleId),Ce("aria-controls",s.item.collapseId)("aria-expanded",!s.item.collapsed),Y("collapsed",s.item.collapsed))},standalone:!0});let t=e;return t})(),TO=(()=>{let e=class e{constructor(){this.item=d(fi)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=x({type:e,selectors:[["button","ngbAccordionButton",""]],hostAttrs:["type","button"],hostVars:3,hostBindings:function(r,s){r&2&&(ft("disabled",s.item.disabled),Y("accordion-button",!0))},standalone:!0,features:[ia([oy])]});let t=e;return t})(),CO=(()=>{let e=class e{constructor(){this.item=d(fi)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=x({type:e,selectors:[["","ngbAccordionHeader",""]],hostAttrs:["role","heading"],hostVars:4,hostBindings:function(r,s){r&2&&Y("accordion-header",!0)("collapsed",s.item.collapsed)},standalone:!0});let t=e;return t})(),fi=(()=>{let e=class e{constructor(){this._accordion=d(Lf),this._cd=d(je),this._destroyRef=d(Oi),this._collapsed=!0,this._id=`ngb-accordion-item-${ry++}`,this._collapseAnimationRunning=!1,this.disabled=!1,this.show=new F,this.shown=new F,this.hide=new F,this.hidden=new F}set id(n){oo(n)&&n!==""&&(this._id=n)}set destroyOnHide(n){this._destroyOnHide=n}get destroyOnHide(){return this._destroyOnHide===void 0?this._accordion.destroyOnHide:this._destroyOnHide}set collapsed(n){n?this.collapse():this.expand()}get collapsed(){return this._collapsed}get id(){return`${this._id}`}get toggleId(){return`${this.id}-toggle`}get collapseId(){return`${this.id}-collapse`}get _shouldBeInDOM(){return!this.collapsed||this._collapseAnimationRunning||!this.destroyOnHide}ngAfterContentInit(){let{ngbCollapse:n}=this._collapse;n.animation=!1,n.collapsed=this.collapsed,n.animation=this._accordion.animation,n.hidden.pipe(qs(this._destroyRef)).subscribe(()=>{this._collapseAnimationRunning=!1,this.hidden.emit(),this._accordion.hidden.emit(this.id)}),n.shown.pipe(qs(this._destroyRef)).subscribe(()=>{this.shown.emit(),this._accordion.shown.emit(this.id)})}toggle(){this.collapsed=!this.collapsed}expand(){if(this.collapsed){if(!this._accordion._ensureCanExpand(this))return;this._collapsed=!1,this._cd.markForCheck(),this._cd.detectChanges(),this.show.emit(),this._accordion.show.emit(this.id),this._collapse.ngbCollapse.animation=this._accordion.animation,this._collapse.ngbCollapse.collapsed=!1}}collapse(){this.collapsed||(this._collapsed=!0,this._collapseAnimationRunning=!0,this._cd.markForCheck(),this.hide.emit(),this._accordion.hide.emit(this.id),this._collapse.ngbCollapse.animation=this._accordion.animation,this._collapse.ngbCollapse.collapsed=!0)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=x({type:e,selectors:[["","ngbAccordionItem",""]],contentQueries:function(r,s,o){if(r&1&&St(o,sy,7),r&2){let a;pt(a=gt())&&(s._collapse=a.first)}},hostVars:3,hostBindings:function(r,s){r&2&&(ft("id",s.id),Y("accordion-item",!0))},inputs:{id:[0,"ngbAccordionItem","id"],destroyOnHide:"destroyOnHide",disabled:"disabled",collapsed:"collapsed"},outputs:{show:"show",shown:"shown",hide:"hide",hidden:"hidden"},exportAs:["ngbAccordionItem"],standalone:!0});let t=e;return t})(),Lf=(()=>{let e=class e{constructor(){this._config=d(qv),this._anItemWasAlreadyExpandedDuringInitialisation=!1,this.animation=this._config.animation,this.closeOthers=this._config.closeOthers,this.destroyOnHide=this._config.destroyOnHide,this.show=new F,this.shown=new F,this.hide=new F,this.hidden=new F}toggle(n){this._getItem(n)?.toggle()}expand(n){this._getItem(n)?.expand()}expandAll(){this._items&&(this.closeOthers?this._items.find(n=>!n.collapsed)||this._items.first.expand():this._items.forEach(n=>n.expand()))}collapse(n){this._getItem(n)?.collapse()}collapseAll(){this._items?.forEach(n=>n.collapse())}isExpanded(n){let r=this._getItem(n);return r?!r.collapsed:!1}_ensureCanExpand(n){return this.closeOthers?this._items?(this._items.find(r=>!r.collapsed&&n!==r)?.collapse(),!0):this._anItemWasAlreadyExpandedDuringInitialisation?!1:(this._anItemWasAlreadyExpandedDuringInitialisation=!0,!0):!0}_getItem(n){return this._items?.find(r=>r.id===n)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=x({type:e,selectors:[["","ngbAccordion",""]],contentQueries:function(r,s,o){if(r&1&&St(o,fi,4),r&2){let a;pt(a=gt())&&(s._items=a)}},hostVars:2,hostBindings:function(r,s){r&2&&Y("accordion",!0)},inputs:{animation:"animation",closeOthers:"closeOthers",destroyOnHide:"destroyOnHide"},outputs:{show:"show",shown:"shown",hide:"hide",hidden:"hidden"},exportAs:["ngbAccordion"],standalone:!0});let t=e;return t})();var IO=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Le({type:e}),e.\u0275inj=Fe({});let t=e;return t})();var Ae=function(t){return t[t.Tab=9]="Tab",t[t.Enter=13]="Enter",t[t.Escape=27]="Escape",t[t.Space=32]="Space",t[t.PageUp=33]="PageUp",t[t.PageDown=34]="PageDown",t[t.End=35]="End",t[t.Home=36]="Home",t[t.ArrowLeft=37]="ArrowLeft",t[t.ArrowUp=38]="ArrowUp",t[t.ArrowRight=39]="ArrowRight",t[t.ArrowDown=40]="ArrowDown",t}(Ae||{});var to=(t,e)=>e?e.some(i=>i.contains(t)):!1,Rf=(t,e)=>!e||Qv(t,e)!=null,ay=(()=>{let t=()=>/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2,e=()=>/Android/.test(navigator.userAgent);return typeof navigator<"u"?!!navigator.userAgent&&(t()||e()):!1})(),cy=t=>ay?()=>setTimeout(()=>t(),100):t;function Zc(t,e,i,n,r,s,o,a){i&&t.runOutsideAngular(cy(()=>{let c=h=>{let g=h.target;return h.button===2||to(g,o)?!1:i==="inside"?to(g,s)&&Rf(g,a):i==="outside"?!to(g,s):Rf(g,a)||!to(g,s)},l=De(e,"keydown").pipe(K(r),ve(h=>h.which===Ae.Escape),V(h=>h.preventDefault())),u=De(e,"mousedown").pipe(S(c),K(r)),f=De(e,"mouseup").pipe(Qr(u),ve(([h,g])=>g),Pu(0),K(r));Wo([l.pipe(S(h=>0)),f.pipe(S(h=>1))]).subscribe(h=>t.run(()=>n(h)))}))}var Bf=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function Vf(t){let e=Array.from(t.querySelectorAll(Bf)).filter(i=>i.tabIndex!==-1);return[e[0],e[e.length-1]]}var ly=(t,e,i,n=!1)=>{t.runOutsideAngular(()=>{let r=De(e,"focusin").pipe(K(i),S(s=>s.target));De(e,"keydown").pipe(K(i),ve(s=>s.which===Ae.Tab),Qr(r)).subscribe(([s,o])=>{let[a,c]=Vf(e);(o===a||o===e)&&s.shiftKey&&(c.focus(),s.preventDefault()),o===c&&!s.shiftKey&&(a.focus(),s.preventDefault())}),n&&De(e,"click").pipe(K(i),Qr(r),S(s=>s[1])).subscribe(s=>s.focus())})},uy=(()=>{let e=class e{constructor(){this._element=d(H).documentElement}isRTL(){return(this._element.getAttribute("dir")||"").toLowerCase()==="rtl"}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),dy=/\s+/,hy=/ +/gi,fy={top:["top"],bottom:["bottom"],start:["left","right"],left:["left"],end:["right","left"],right:["right"],"top-start":["top-start","top-end"],"top-left":["top-start"],"top-end":["top-end","top-start"],"top-right":["top-end"],"bottom-start":["bottom-start","bottom-end"],"bottom-left":["bottom-start"],"bottom-end":["bottom-end","bottom-start"],"bottom-right":["bottom-end"],"start-top":["left-start","right-start"],"left-top":["left-start"],"start-bottom":["left-end","right-end"],"left-bottom":["left-end"],"end-top":["right-start","left-start"],"right-top":["right-start"],"end-bottom":["right-end","left-end"],"right-bottom":["right-end"]};function py(t,e){let[i,n]=fy[t];return e&&n||i}var gy=/^left/,my=/^right/,_y=/^start/,vy=/^end/;function yy(t,e){let[i,n]=e.split("-"),r=i.replace(gy,"start").replace(my,"end"),s=[r];if(n){let o=n;(i==="left"||i==="right")&&(o=o.replace(_y,"top").replace(vy,"bottom")),s.push(`${r}-${o}`)}return t&&(s=s.map(o=>`${t}-${o}`)),s.join(" ")}function Pf({placement:t,baseClass:e},i){let n=Array.isArray(t)?t:t.split(dy),r=["top","bottom","start","end","top-start","top-end","bottom-start","bottom-end","start-top","start-bottom","end-top","end-bottom"],s=n.findIndex(l=>l==="auto");s>=0&&r.forEach(function(l){n.find(u=>u.search("^"+l)!==-1)==null&&n.splice(s++,1,l)});let o=n.map(l=>py(l,i.isRTL()));return{placement:o.shift(),modifiers:[{name:"bootstrapClasses",enabled:!!e,phase:"write",fn({state:l}){let u=new RegExp(e+"(-[a-z]+)*","gi"),f=l.elements.popper,h=l.placement,g=f.className;g=g.replace(u,""),g+=` ${yy(e,h)}`,g=g.trim().replace(hy," "),f.className=g}},Lc,Uc,Mc,{enabled:!0,name:"flip",options:{fallbackPlacements:o}},{enabled:!0,name:"preventOverflow",phase:"main",fn:function(){}}]}}function Mf(t){return t}function Xc(){let t=d(uy),e=null;return{createPopper(i){if(!e){let r=(i.updatePopperOptions||Mf)(Pf(i,t));e=qc(i.hostElement,i.targetElement,r)}},update(){e&&e.update()},setOptions(i){if(e){let r=(i.updatePopperOptions||Mf)(Pf(i,t));e.setOptions(r)}},destroy(){e&&(e.destroy(),e=null)}}}function el(t){return e=>(e.modifiers.push(Bc,{name:"offset",options:{offset:()=>t}}),e)}var SO=new Date(1882,10,12),AO=new Date(2174,10,25);var OO=1e3*60*60*24;var tl=1080,by=24*tl,wy=12*tl+793,RO=29*by+wy,PO=11*tl+204;var Dy=(()=>{let e=class e{constructor(){this.autoClose=!0,this.placement=["bottom-start","bottom-end","top-start","top-end"],this.popperOptions=n=>n,this.container=null}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Uf=(()=>{let e=class e{constructor(){this._disabled=!1,this.nativeElement=d(ae).nativeElement,this.tabindex=0}set disabled(n){this._disabled=n===""||n===!0}get disabled(){return this._disabled}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=x({type:e,selectors:[["","ngbDropdownItem",""]],hostAttrs:[1,"dropdown-item"],hostVars:3,hostBindings:function(r,s){r&2&&(ft("tabIndex",s.disabled?-1:s.tabindex),Y("disabled",s.disabled))},inputs:{tabindex:"tabindex",disabled:"disabled"},standalone:!0});let t=e;return t})(),MO=(()=>{let e=class e{constructor(){this.item=d(Uf)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=x({type:e,selectors:[["button","ngbDropdownItem",""]],hostVars:1,hostBindings:function(r,s){r&2&&ft("disabled",s.item.disabled)},standalone:!0});let t=e;return t})(),Ey=(()=>{let e=class e{constructor(){this.dropdown=d(jf),this.nativeElement=d(ae).nativeElement}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=x({type:e,selectors:[["","ngbDropdownMenu",""]],contentQueries:function(r,s,o){if(r&1&&St(o,Uf,4),r&2){let a;pt(a=gt())&&(s.menuItems=a)}},hostVars:4,hostBindings:function(r,s){r&1&&ie("keydown.ArrowUp",function(a){return s.dropdown.onKeyDown(a)})("keydown.ArrowDown",function(a){return s.dropdown.onKeyDown(a)})("keydown.Home",function(a){return s.dropdown.onKeyDown(a)})("keydown.End",function(a){return s.dropdown.onKeyDown(a)})("keydown.Enter",function(a){return s.dropdown.onKeyDown(a)})("keydown.Space",function(a){return s.dropdown.onKeyDown(a)})("keydown.Tab",function(a){return s.dropdown.onKeyDown(a)})("keydown.Shift.Tab",function(a){return s.dropdown.onKeyDown(a)}),r&2&&Y("dropdown-menu",!0)("show",s.dropdown.isOpen())},standalone:!0});let t=e;return t})(),Jc=(()=>{let e=class e{constructor(){this.dropdown=d(jf),this.nativeElement=d(ae).nativeElement}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=x({type:e,selectors:[["","ngbDropdownAnchor",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:3,hostBindings:function(r,s){r&2&&(Ce("aria-expanded",s.dropdown.isOpen()),Y("show",s.dropdown.isOpen()))},standalone:!0});let t=e;return t})(),NO=(()=>{let e=class e extends Jc{};e.\u0275fac=(()=>{let n;return function(s){return(n||(n=Gt(e)))(s||e)}})(),e.\u0275dir=x({type:e,selectors:[["","ngbDropdownToggle",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:3,hostBindings:function(r,s){r&1&&ie("click",function(){return s.dropdown.toggle()})("keydown.ArrowUp",function(a){return s.dropdown.onKeyDown(a)})("keydown.ArrowDown",function(a){return s.dropdown.onKeyDown(a)})("keydown.Home",function(a){return s.dropdown.onKeyDown(a)})("keydown.End",function(a){return s.dropdown.onKeyDown(a)})("keydown.Tab",function(a){return s.dropdown.onKeyDown(a)})("keydown.Shift.Tab",function(a){return s.dropdown.onKeyDown(a)}),r&2&&(Ce("aria-expanded",s.dropdown.isOpen()),Y("show",s.dropdown.isOpen()))},standalone:!0,features:[mt([{provide:Jc,useExisting:ct(()=>e)}]),Ue]});let t=e;return t})(),jf=(()=>{let e=class e{constructor(){this._changeDetector=d(je),this._config=d(Dy),this._document=d(H),this._ngZone=d($),this._nativeElement=d(ae).nativeElement,this._destroyCloseHandlers$=new L,this._bodyContainer=null,this._positioning=Xc(),this.autoClose=this._config.autoClose,this._open=!1,this.placement=this._config.placement,this.popperOptions=this._config.popperOptions,this.container=this._config.container,this.openChange=new F}ngOnInit(){this.display||(this.display=this._nativeElement.closest(".navbar")?"static":"dynamic")}ngAfterContentInit(){this._ngZone.onStable.pipe(Te(1)).subscribe(()=>{this._applyPlacementClasses(),this._open&&this._setCloseHandlers()})}ngOnChanges(n){if(n.container&&this._open&&this._applyContainer(this.container),n.placement&&!n.placement.firstChange&&(this._positioning.setOptions({hostElement:this._anchor.nativeElement,targetElement:this._bodyContainer||this._menu.nativeElement,placement:this.placement,appendToBody:this.container==="body"}),this._applyPlacementClasses()),n.dropdownClass){let{currentValue:r,previousValue:s}=n.dropdownClass;this._applyCustomDropdownClass(r,s)}n.autoClose&&this._open&&(this.autoClose=n.autoClose.currentValue,this._setCloseHandlers())}isOpen(){return this._open}open(){this._open||(this._open=!0,this._applyContainer(this.container),this.openChange.emit(!0),this._setCloseHandlers(),this._anchor&&(this._anchor.nativeElement.focus(),this.display==="dynamic"&&this._ngZone.runOutsideAngular(()=>{this._positioning.createPopper({hostElement:this._anchor.nativeElement,targetElement:this._bodyContainer||this._menu.nativeElement,placement:this.placement,appendToBody:this.container==="body",updatePopperOptions:n=>this.popperOptions(el([0,2])(n))}),this._applyPlacementClasses(),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>this._positionMenu())})))}_setCloseHandlers(){this._destroyCloseHandlers$.next(),Zc(this._ngZone,this._document,this.autoClose,n=>{this.close(),n===0&&this._anchor.nativeElement.focus()},this._destroyCloseHandlers$,this._menu?[this._menu.nativeElement]:[],this._anchor?[this._anchor.nativeElement]:[],".dropdown-item,.dropdown-divider")}close(){this._open&&(this._open=!1,this._resetContainer(),this._positioning.destroy(),this._zoneSubscription?.unsubscribe(),this._destroyCloseHandlers$.next(),this.openChange.emit(!1),this._changeDetector.markForCheck())}toggle(){this.isOpen()?this.close():this.open()}ngOnDestroy(){this.close()}onKeyDown(n){let r=n.which,s=this._getMenuElements(),o=-1,a=null,c=this._isEventFromToggle(n);if(!c&&s.length&&s.forEach((l,u)=>{l.contains(n.target)&&(a=l),l===Ff(this._document)&&(o=u)}),r===Ae.Space||r===Ae.Enter){a&&(this.autoClose===!0||this.autoClose==="inside")&&De(a,"click").pipe(Te(1)).subscribe(()=>this.close());return}if(r===Ae.Tab){if(n.target&&this.isOpen()&&this.autoClose)if(this._anchor.nativeElement===n.target){this.container==="body"&&!n.shiftKey?(this._menu.nativeElement.setAttribute("tabindex","0"),this._menu.nativeElement.focus(),this._menu.nativeElement.removeAttribute("tabindex")):n.shiftKey&&this.close();return}else if(this.container==="body"){let l=this._menu.nativeElement.querySelectorAll(Bf);n.shiftKey&&n.target===l[0]?(this._anchor.nativeElement.focus(),n.preventDefault()):!n.shiftKey&&n.target===l[l.length-1]&&(this._anchor.nativeElement.focus(),this.close())}else De(n.target,"focusout").pipe(Te(1)).subscribe(({relatedTarget:l})=>{this._nativeElement.contains(l)||this.close()});return}if(c||a){if(this.open(),s.length){switch(r){case Ae.ArrowDown:o=Math.min(o+1,s.length-1);break;case Ae.ArrowUp:if(this._isDropup()&&o===-1){o=s.length-1;break}o=Math.max(o-1,0);break;case Ae.Home:o=0;break;case Ae.End:o=s.length-1;break}s[o].focus()}n.preventDefault()}}_isDropup(){return this._nativeElement.classList.contains("dropup")}_isEventFromToggle(n){return this._anchor.nativeElement.contains(n.target)}_getMenuElements(){return this._menu?this._menu.menuItems.filter(({disabled:n})=>!n).map(({nativeElement:n})=>n):[]}_positionMenu(){let n=this._menu;this.isOpen()&&n&&(this.display==="dynamic"?(this._positioning.update(),this._applyPlacementClasses()):this._applyPlacementClasses(this._getFirstPlacement(this.placement)))}_getFirstPlacement(n){return Array.isArray(n)?n[0]:n.split(" ")[0]}_resetContainer(){this._menu&&this._nativeElement.appendChild(this._menu.nativeElement),this._bodyContainer&&(this._document.body.removeChild(this._bodyContainer),this._bodyContainer=null)}_applyContainer(n=null){if(this._resetContainer(),n==="body"){let r=this._menu.nativeElement,s=this._bodyContainer=this._bodyContainer||this._document.createElement("div");s.style.position="absolute",r.style.position="static",s.style.zIndex="1055",s.appendChild(r),this._document.body.appendChild(s)}this._applyCustomDropdownClass(this.dropdownClass)}_applyCustomDropdownClass(n,r){let s=this.container==="body"?this._bodyContainer:this._nativeElement;s&&(r&&s.classList.remove(r),n&&s.classList.add(n))}_applyPlacementClasses(n){if(this._menu){n||(n=this._getFirstPlacement(this.placement)),this._nativeElement.classList.remove("dropup","dropdown"),this.display==="static"?this._menu.nativeElement.setAttribute("data-bs-popper","static"):this._menu.nativeElement.removeAttribute("data-bs-popper");let r=n.search("^top")!==-1?"dropup":"dropdown";this._nativeElement.classList.add(r),this._bodyContainer&&(this._bodyContainer.classList.remove("dropup","dropdown"),this._bodyContainer.classList.add(r))}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=x({type:e,selectors:[["","ngbDropdown",""]],contentQueries:function(r,s,o){if(r&1&&(St(o,Ey,5),St(o,Jc,5)),r&2){let a;pt(a=gt())&&(s._menu=a.first),pt(a=gt())&&(s._anchor=a.first)}},hostVars:2,hostBindings:function(r,s){r&2&&Y("show",s.isOpen())},inputs:{autoClose:"autoClose",dropdownClass:"dropdownClass",_open:[0,"open","_open"],placement:"placement",popperOptions:"popperOptions",container:"container",display:"display"},outputs:{openChange:"openChange"},exportAs:["ngbDropdown"],standalone:!0,features:[Pe]});let t=e;return t})();var Ty=(()=>{let e=class e{constructor(){this._ngbConfig=d(so),this.backdrop=!0,this.fullscreen=!1,this.keyboard=!0}get animation(){return this._animation??this._ngbConfig.animation}set animation(n){this._animation=n}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),xt=class{constructor(e,i,n){this.nodes=e,this.viewRef=i,this.componentRef=n}},io=class{constructor(e){this._componentType=e,this._windowRef=null,this._contentRef=null,this._document=d(H),this._applicationRef=d(et),this._injector=d(ne),this._viewContainerRef=d(Ni),this._ngZone=d($)}open(e,i,n=!1){this._windowRef||(this._contentRef=this._getContentRef(e,i),this._windowRef=this._viewContainerRef.createComponent(this._componentType,{injector:this._injector,projectableNodes:this._contentRef.nodes}));let{nativeElement:r}=this._windowRef.location,s=this._ngZone.onStable.pipe(Te(1),we(()=>bt(this._ngZone,r,({classList:o})=>o.add("show"),{animation:n,runningTransition:"continue"})));return{windowRef:this._windowRef,transition$:s}}close(e=!1){return this._windowRef?bt(this._ngZone,this._windowRef.location.nativeElement,({classList:i})=>i.remove("show"),{animation:e,runningTransition:"stop"}).pipe(V(()=>{this._windowRef&&(this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._windowRef.hostView)),this._windowRef=null),this._contentRef?.viewRef&&(this._applicationRef.detachView(this._contentRef.viewRef),this._contentRef.viewRef.destroy(),this._contentRef=null)})):b(void 0)}_getContentRef(e,i){if(e)if(e instanceof Mi){let n=e.createEmbeddedView(i);return this._applicationRef.attachView(n),new xt([n.rootNodes],n)}else return new xt([[this._document.createTextNode(`${e}`)]]);else return new xt([])}},Cy=(()=>{let e=class e{constructor(){this._document=d(H)}hide(){let n=Math.abs(window.innerWidth-this._document.documentElement.clientWidth),r=this._document.body,s=r.style,{overflow:o,paddingRight:a}=s;if(n>0){let c=parseFloat(window.getComputedStyle(r).paddingRight);s.paddingRight=`${c+n}px`}return s.overflow="hidden",()=>{n>0&&(s.paddingRight=a),s.overflow=o}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Iy=(()=>{let e=class e{constructor(){this._nativeElement=d(ae).nativeElement,this._zone=d($)}ngOnInit(){this._zone.onStable.asObservable().pipe(Te(1)).subscribe(()=>{bt(this._zone,this._nativeElement,(n,r)=>{r&&Qc(n),n.classList.add("show")},{animation:this.animation,runningTransition:"continue"})})}hide(){return bt(this._zone,this._nativeElement,({classList:n})=>n.remove("show"),{animation:this.animation,runningTransition:"stop"})}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=Ye({type:e,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1055"],hostVars:6,hostBindings:function(r,s){r&2&&(ye("modal-backdrop"+(s.backdropClass?" "+s.backdropClass:"")),Y("show",!s.animation)("fade",s.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},standalone:!0,features:[Xe],decls:0,vars:0,template:function(r,s){},encapsulation:2});let t=e;return t})(),ro=class{update(e){}close(e){}dismiss(e){}},Sy=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","fullscreen","keyboard","scrollable","size","windowClass","modalDialogClass"],Ay=["animation","backdropClass"],Kc=class{_applyWindowOptions(e,i){Sy.forEach(n=>{no(i[n])&&(e[n]=i[n])})}_applyBackdropOptions(e,i){Ay.forEach(n=>{no(i[n])&&(e[n]=i[n])})}update(e){this._applyWindowOptions(this._windowCmptRef.instance,e),this._backdropCmptRef&&this._backdropCmptRef.instance&&this._applyBackdropOptions(this._backdropCmptRef.instance,e)}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe(K(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe(K(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}constructor(e,i,n,r){this._windowCmptRef=e,this._contentRef=i,this._backdropCmptRef=n,this._beforeDismiss=r,this._closed=new L,this._dismissed=new L,this._hidden=new L,e.instance.dismissEvent.subscribe(s=>{this.dismiss(s)}),this.result=new Promise((s,o)=>{this._resolve=s,this._reject=o}),this.result.then(null,()=>{})}close(e){this._windowCmptRef&&(this._closed.next(e),this._resolve(e),this._removeModalElements())}_dismiss(e){this._dismissed.next(e),this._reject(e),this._removeModalElements()}dismiss(e){if(this._windowCmptRef)if(!this._beforeDismiss)this._dismiss(e);else{let i=this._beforeDismiss();Kv(i)?i.then(n=>{n!==!1&&this._dismiss(e)},()=>{}):i!==!1&&this._dismiss(e)}}_removeModalElements(){let e=this._windowCmptRef.instance.hide(),i=this._backdropCmptRef?this._backdropCmptRef.instance.hide():b(void 0);e.subscribe(()=>{let{nativeElement:n}=this._windowCmptRef.location;n.parentNode.removeChild(n),this._windowCmptRef.destroy(),this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._contentRef=null}),i.subscribe(()=>{if(this._backdropCmptRef){let{nativeElement:n}=this._backdropCmptRef.location;n.parentNode.removeChild(n),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),Yr(e,i).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}},Yc=function(t){return t[t.BACKDROP_CLICK=0]="BACKDROP_CLICK",t[t.ESC=1]="ESC",t}(Yc||{}),Oy=(()=>{let e=class e{constructor(){this._document=d(H),this._elRef=d(ae),this._zone=d($),this._closed$=new L,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new F,this.shown=new L,this.hidden=new L}get fullscreenClass(){return this.fullscreen===!0?" modal-fullscreen":oo(this.fullscreen)?` modal-fullscreen-${this.fullscreen}-down`:""}dismiss(n){this.dismissEvent.emit(n)}ngOnInit(){this._elWithFocus=this._document.activeElement,this._zone.onStable.asObservable().pipe(Te(1)).subscribe(()=>{this._show()})}ngOnDestroy(){this._disableEventHandling()}hide(){let{nativeElement:n}=this._elRef,r={animation:this.animation,runningTransition:"stop"},s=bt(this._zone,n,()=>n.classList.remove("show"),r),o=bt(this._zone,this._dialogEl.nativeElement,()=>{},r),a=Yr(s,o);return a.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),a}_show(){let n={animation:this.animation,runningTransition:"continue"},r=bt(this._zone,this._elRef.nativeElement,(o,a)=>{a&&Qc(o),o.classList.add("show")},n),s=bt(this._zone,this._dialogEl.nativeElement,()=>{},n);Yr(r,s).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){let{nativeElement:n}=this._elRef;this._zone.runOutsideAngular(()=>{De(n,"keydown").pipe(K(this._closed$),ve(s=>s.which===Ae.Escape)).subscribe(s=>{this.keyboard?requestAnimationFrame(()=>{s.defaultPrevented||this._zone.run(()=>this.dismiss(Yc.ESC))}):this.backdrop==="static"&&this._bumpBackdrop()});let r=!1;De(this._dialogEl.nativeElement,"mousedown").pipe(K(this._closed$),V(()=>r=!1),oe(()=>De(n,"mouseup").pipe(K(this._closed$),Te(1))),ve(({target:s})=>n===s)).subscribe(()=>{r=!0}),De(n,"click").pipe(K(this._closed$)).subscribe(({target:s})=>{n===s&&(this.backdrop==="static"?this._bumpBackdrop():this.backdrop===!0&&!r&&this._zone.run(()=>this.dismiss(Yc.BACKDROP_CLICK))),r=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){let{nativeElement:n}=this._elRef;if(!n.contains(document.activeElement)){let r=n.querySelector("[ngbAutofocus]"),s=Vf(n)[0];(r||s||n).focus()}}_restoreFocus(){let n=this._document.body,r=this._elWithFocus,s;r&&r.focus&&n.contains(r)?s=r:s=n,this._zone.runOutsideAngular(()=>{setTimeout(()=>s.focus()),this._elWithFocus=null})}_bumpBackdrop(){this.backdrop==="static"&&bt(this._zone,this._elRef.nativeElement,({classList:n})=>(n.add("modal-static"),()=>n.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=Ye({type:e,selectors:[["ngb-modal-window"]],viewQuery:function(r,s){if(r&1&&nd(Fv,7),r&2){let o;pt(o=gt())&&(s._dialogEl=o.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(r,s){r&2&&(Ce("aria-modal",!0)("aria-labelledby",s.ariaLabelledBy)("aria-describedby",s.ariaDescribedBy),ye("modal d-block"+(s.windowClass?" "+s.windowClass:"")),Y("fade",s.animation))},inputs:{animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",backdrop:"backdrop",centered:"centered",fullscreen:"fullscreen",keyboard:"keyboard",scrollable:"scrollable",size:"size",windowClass:"windowClass",modalDialogClass:"modalDialogClass"},outputs:{dismissEvent:"dismiss"},standalone:!0,features:[Xe],ngContentSelectors:kf,decls:4,vars:2,consts:[["dialog",""],["role","document"],[1,"modal-content"]],template:function(r,s){r&1&&(la(),he(0,"div",1,0)(2,"div",2),ua(3),Ie()()),r&2&&ye("modal-dialog"+(s.size?" modal-"+s.size:"")+(s.centered?" modal-dialog-centered":"")+s.fullscreenClass+(s.scrollable?" modal-dialog-scrollable":"")+(s.modalDialogClass?" "+s.modalDialogClass:""))},styles:[`ngb-modal-window .component-host-scrollable{display:flex;flex-direction:column;overflow:hidden}
|
|
3
3
|
`],encapsulation:2});let t=e;return t})(),Ry=(()=>{let e=class e{constructor(){this._applicationRef=d(et),this._injector=d(ne),this._environmentInjector=d(ut),this._document=d(H),this._scrollBar=d(Cy),this._activeWindowCmptHasChanged=new L,this._ariaHiddenValues=new Map,this._scrollBarRestoreFn=null,this._modalRefs=[],this._windowCmpts=[],this._activeInstances=new F;let n=d($);this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){let r=this._windowCmpts[this._windowCmpts.length-1];ly(n,r.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(r.location.nativeElement)}})}_restoreScrollBar(){let n=this._scrollBarRestoreFn;n&&(this._scrollBarRestoreFn=null,n())}_hideScrollBar(){this._scrollBarRestoreFn||(this._scrollBarRestoreFn=this._scrollBar.hide())}open(n,r,s){let o=s.container instanceof HTMLElement?s.container:no(s.container)?this._document.querySelector(s.container):this._document.body;if(!o)throw new Error(`The specified modal container "${s.container||"body"}" was not found in the DOM.`);this._hideScrollBar();let a=new ro;n=s.injector||n;let c=n.get(ut,null)||this._environmentInjector,l=this._getContentRef(n,c,r,a,s),u=s.backdrop!==!1?this._attachBackdrop(o):void 0,f=this._attachWindowComponent(o,l.nodes),h=new Kc(f,l,u,s.beforeDismiss);return this._registerModalRef(h),this._registerWindowCmpt(f),h.hidden.pipe(Te(1)).subscribe(()=>Promise.resolve(!0).then(()=>{this._modalRefs.length||(this._document.body.classList.remove("modal-open"),this._restoreScrollBar(),this._revertAriaHidden())})),a.close=g=>{h.close(g)},a.dismiss=g=>{h.dismiss(g)},a.update=g=>{h.update(g)},h.update(s),this._modalRefs.length===1&&this._document.body.classList.add("modal-open"),u&&u.instance&&u.changeDetectorRef.detectChanges(),f.changeDetectorRef.detectChanges(),h}get activeInstances(){return this._activeInstances}dismissAll(n){this._modalRefs.forEach(r=>r.dismiss(n))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(n){let r=is(Iy,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector});return this._applicationRef.attachView(r.hostView),n.appendChild(r.location.nativeElement),r}_attachWindowComponent(n,r){let s=is(Oy,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector,projectableNodes:r});return this._applicationRef.attachView(s.hostView),n.appendChild(s.location.nativeElement),s}_getContentRef(n,r,s,o,a){return s?s instanceof Mi?this._createFromTemplateRef(s,o):oo(s)?this._createFromString(s):this._createFromComponent(n,r,s,o,a):new xt([])}_createFromTemplateRef(n,r){let s={$implicit:r,close(a){r.close(a)},dismiss(a){r.dismiss(a)}},o=n.createEmbeddedView(s);return this._applicationRef.attachView(o),new xt([o.rootNodes],o)}_createFromString(n){let r=this._document.createTextNode(`${n}`);return new xt([[r]])}_createFromComponent(n,r,s,o,a){let c=ne.create({providers:[{provide:ro,useValue:o}],parent:n}),l=is(s,{environmentInjector:r,elementInjector:c}),u=l.location.nativeElement;return a.scrollable&&u.classList.add("component-host-scrollable"),this._applicationRef.attachView(l.hostView),new xt([[u]],l.hostView,l)}_setAriaHidden(n){let r=n.parentElement;r&&n!==this._document.body&&(Array.from(r.children).forEach(s=>{s!==n&&s.nodeName!=="SCRIPT"&&(this._ariaHiddenValues.set(s,s.getAttribute("aria-hidden")),s.setAttribute("aria-hidden","true"))}),this._setAriaHidden(r))}_revertAriaHidden(){this._ariaHiddenValues.forEach((n,r)=>{n?r.setAttribute("aria-hidden",n):r.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(n){let r=()=>{let s=this._modalRefs.indexOf(n);s>-1&&(this._modalRefs.splice(s,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(n),this._activeInstances.emit(this._modalRefs),n.result.then(r,r)}_registerWindowCmpt(n){this._windowCmpts.push(n),this._activeWindowCmptHasChanged.next(),n.onDestroy(()=>{let r=this._windowCmpts.indexOf(n);r>-1&&(this._windowCmpts.splice(r,1),this._activeWindowCmptHasChanged.next())})}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),kO=(()=>{let e=class e{constructor(){this._injector=d(ne),this._modalStack=d(Ry),this._config=d(Ty)}open(n,r={}){let s=m(k(m({},this._config),{animation:this._config.animation}),r);return this._modalStack.open(this._injector,n,s)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(n){this._modalStack.dismissAll(n)}hasOpenModals(){return this._modalStack.hasOpenModals()}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var xO=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=Le({type:e}),e.\u0275inj=Fe({});let t=e;return t})();var Py={hover:["mouseenter","mouseleave"],focus:["focusin","focusout"]};function My(t){let e=(t||"").trim();if(e.length===0)return[];let i=e.split(/\s+/).map(r=>r.split(":")).map(r=>Py[r[0]]||r),n=i.filter(r=>r.includes("manual"));if(n.length>1)throw"Triggers parse error: only one manual trigger is allowed";if(n.length===1&&i.length>1)throw"Triggers parse error: manual trigger can't be mixed with other triggers";return n.length?[]:i}function Ny(t,e,i,n,r,s=0,o=0){let a=My(e);if(a.length===0)return()=>{};let c=new Set,l=[],u;function f(g,v){t.addEventListener(g,v),l.push(()=>t.removeEventListener(g,v))}function h(g,v){clearTimeout(u),v>0?u=setTimeout(g,v):g()}for(let[g,v]of a)v?(f(g,()=>{c.add(g),h(()=>c.size>0&&n(),s)}),f(v,()=>{c.delete(g),h(()=>c.size===0&&r(),o)})):f(g,()=>i()?h(r,o):h(n,s));return()=>l.forEach(g=>g())}var ky=(()=>{let e=class e{constructor(){this._ngbConfig=d(so),this.autoClose=!0,this.placement="auto",this.popperOptions=n=>n,this.triggers="click",this.disablePopover=!1,this.openDelay=0,this.closeDelay=0}get animation(){return this._animation??this._ngbConfig.animation}set animation(n){this._animation=n}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),xy=0,Fy=(()=>{let e=class e{isTitleTemplate(){return this.title instanceof Mi}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=Ye({type:e,selectors:[["ngb-popover-window"]],hostAttrs:["role","tooltip",2,"position","absolute"],hostVars:5,hostBindings:function(r,s){r&2&&(ft("id",s.id),ye("popover"+(s.popoverClass?" "+s.popoverClass:"")),Y("fade",s.animation))},inputs:{animation:"animation",title:"title",id:"id",popoverClass:"popoverClass",context:"context"},standalone:!0,features:[Xe],ngContentSelectors:kf,decls:4,vars:1,consts:[["simpleTitle",""],["data-popper-arrow","",1,"popover-arrow"],[1,"popover-header"],[1,"popover-body"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(r,s){r&1&&(la(),ht(0,"div",1),Ze(1,Vv,4,2,"h3",2),he(2,"div",3),ua(3),Ie()),r&2&&(z(),sa(s.title?1:-1))},dependencies:[ga],encapsulation:2,changeDetection:0});let t=e;return t})(),FO=(()=>{let e=class e{constructor(){this._config=d(ky),this.animation=this._config.animation,this.autoClose=this._config.autoClose,this.placement=this._config.placement,this.popperOptions=this._config.popperOptions,this.triggers=this._config.triggers,this.container=this._config.container,this.disablePopover=this._config.disablePopover,this.popoverClass=this._config.popoverClass,this.openDelay=this._config.openDelay,this.closeDelay=this._config.closeDelay,this.shown=new F,this.hidden=new F,this._nativeElement=d(ae).nativeElement,this._ngZone=d($),this._document=d(H),this._changeDetector=d(je),this._ngbPopoverWindowId=`ngb-popover-${xy++}`,this._popupService=new io(Fy),this._windowRef=null,this._positioning=Xc()}open(n){if(!this._windowRef&&!this._isDisabled()){let{windowRef:r,transition$:s}=this._popupService.open(this.ngbPopover,n??this.popoverContext,this.animation);this._windowRef=r,this._windowRef.setInput("animation",this.animation),this._windowRef.setInput("title",this.popoverTitle),this._windowRef.setInput("context",n??this.popoverContext),this._windowRef.setInput("popoverClass",this.popoverClass),this._windowRef.setInput("id",this._ngbPopoverWindowId),this._getPositionTargetElement().setAttribute("aria-describedby",this._ngbPopoverWindowId),this.container==="body"&&this._document.body.appendChild(this._windowRef.location.nativeElement),this._windowRef.changeDetectorRef.detectChanges(),this._windowRef.changeDetectorRef.markForCheck(),this._ngZone.runOutsideAngular(()=>{this._positioning.createPopper({hostElement:this._getPositionTargetElement(),targetElement:this._windowRef.location.nativeElement,placement:this.placement,appendToBody:this.container==="body",baseClass:"bs-popover",updatePopperOptions:o=>this.popperOptions(el([0,8])(o))}),Promise.resolve().then(()=>{this._positioning.update(),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>this._positioning.update())})}),Zc(this._ngZone,this._document,this.autoClose,()=>this.close(),this.hidden,[this._windowRef.location.nativeElement]),s.subscribe(()=>this.shown.emit())}}close(n=this.animation){this._windowRef&&(this._getPositionTargetElement().removeAttribute("aria-describedby"),this._popupService.close(n).subscribe(()=>{this._windowRef=null,this._positioning.destroy(),this._zoneSubscription?.unsubscribe(),this.hidden.emit(),this._changeDetector.markForCheck()}))}toggle(){this._windowRef?this.close():this.open()}isOpen(){return this._windowRef!=null}ngOnInit(){this._unregisterListenersFn=Ny(this._nativeElement,this.triggers,this.isOpen.bind(this),this.open.bind(this),this.close.bind(this),+this.openDelay,+this.closeDelay)}ngOnChanges({ngbPopover:n,popoverTitle:r,disablePopover:s,popoverClass:o}){o&&this.isOpen()&&this._windowRef.setInput("popoverClass",o.currentValue),(n||r||s)&&this._isDisabled()&&this.close()}ngOnDestroy(){this.close(!1),this._unregisterListenersFn?.()}_isDisabled(){return this.disablePopover?!0:!this.ngbPopover&&!this.popoverTitle}_getPositionTargetElement(){return(oo(this.positionTarget)?this._document.querySelector(this.positionTarget):this.positionTarget)||this._nativeElement}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=x({type:e,selectors:[["","ngbPopover",""]],inputs:{animation:"animation",autoClose:"autoClose",ngbPopover:"ngbPopover",popoverTitle:"popoverTitle",placement:"placement",popperOptions:"popperOptions",triggers:"triggers",positionTarget:"positionTarget",container:"container",disablePopover:"disablePopover",popoverClass:"popoverClass",popoverContext:"popoverContext",openDelay:"openDelay",closeDelay:"closeDelay"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbPopover"],standalone:!0,features:[Pe]});let t=e;return t})();var Ly=(()=>{let e=class e{constructor(){this.highlightClass="ngb-highlight",this.accentSensitive=!0}ngOnChanges(n){!this.accentSensitive&&!String.prototype.normalize&&(console.warn("The `accentSensitive` input in `ngb-highlight` cannot be set to `false` in a browser that does not implement the `String.normalize` function. You will have to include a polyfill in your application to use this feature in the current browser."),this.accentSensitive=!0);let r=Or(this.result),s=Array.isArray(this.term)?this.term:[this.term],o=u=>this.accentSensitive?u:Af(u),a=s.map(u=>Yv(o(Or(u)))).filter(u=>u),c=this.accentSensitive?r:Af(r),l=a.length?c.split(new RegExp(`(${a.join("|")})`,"gmi")):[r];if(this.accentSensitive)this.parts=l;else{let u=0;this.parts=l.map(f=>r.substring(u,u+=f.length))}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=Ye({type:e,selectors:[["ngb-highlight"]],inputs:{highlightClass:"highlightClass",result:"result",term:"term",accentSensitive:"accentSensitive"},standalone:!0,features:[Pe,Xe],decls:2,vars:0,consts:[[3,"class"]],template:function(r,s){r&1&&aa(0,$v,2,1,null,null,oa),r&2&&ca(s.parts)},styles:[`.ngb-highlight{font-weight:700}
|
|
4
4
|
`],encapsulation:2,changeDetection:0});let t=e;return t})(),By=new R("live announcer delay",{providedIn:"root",factory:()=>100});function Nf(t,e=!1){let i=t.body.querySelector("#ngb-live");return i==null&&e&&(i=t.createElement("div"),i.setAttribute("id","ngb-live"),i.setAttribute("aria-live","polite"),i.setAttribute("aria-atomic","true"),i.classList.add("visually-hidden"),t.body.appendChild(i)),i}var Vy=(()=>{let e=class e{constructor(){this._document=d(H),this._delay=d(By)}ngOnDestroy(){let n=Nf(this._document);n&&n.parentElement.removeChild(n)}say(n){let r=Nf(this._document,!0),s=this._delay;if(r!=null){r.textContent="";let o=()=>r.textContent=n;s===null?o():setTimeout(o,s)}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Uy=(()=>{let e=class e{constructor(){this.editable=!0,this.focusFirst=!0,this.selectOnExact=!1,this.showHint=!1,this.placement=["bottom-start","bottom-end","top-start","top-end"],this.popperOptions=n=>n}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),jy=(()=>{let e=class e{constructor(){this.activeIdx=0,this.focusFirst=!0,this.formatter=Or,this.selectEvent=new F,this.activeChangeEvent=new F}hasActive(){return this.activeIdx>-1&&this.activeIdx<this.results.length}getActive(){return this.results[this.activeIdx]}markActive(n){this.activeIdx=n,this._activeChanged()}next(){this.activeIdx===this.results.length-1?this.activeIdx=this.focusFirst?(this.activeIdx+1)%this.results.length:-1:this.activeIdx++,this._activeChanged()}prev(){this.activeIdx<0?this.activeIdx=this.results.length-1:this.activeIdx===0?this.activeIdx=this.focusFirst?this.results.length-1:-1:this.activeIdx--,this._activeChanged()}resetActive(){this.activeIdx=this.focusFirst?0:-1,this._activeChanged()}select(n){this.selectEvent.emit(n)}ngOnInit(){this.resetActive()}_activeChanged(){this.activeChangeEvent.emit(this.activeIdx>=0?this.id+"-"+this.activeIdx:void 0)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=Ye({type:e,selectors:[["ngb-typeahead-window"]],hostAttrs:["role","listbox"],hostVars:3,hostBindings:function(r,s){r&1&&ie("mousedown",function(a){return a.preventDefault()}),r&2&&(ft("id",s.id),ye("dropdown-menu show"+(s.popupClass?" "+s.popupClass:"")))},inputs:{id:"id",focusFirst:"focusFirst",results:"results",term:"term",formatter:"formatter",resultTemplate:"resultTemplate",popupClass:"popupClass"},outputs:{selectEvent:"select",activeChangeEvent:"activeChange"},exportAs:["ngbTypeaheadWindow"],standalone:!0,features:[Xe],decls:4,vars:0,consts:[["rt",""],["type","button","role","option",1,"dropdown-item",3,"id","active"],[3,"result","term"],["type","button","role","option",1,"dropdown-item",3,"mouseenter","click","id"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(r,s){r&1&&(Ze(0,Gv,1,2,"ng-template",null,0,ha),aa(2,Wv,2,9,"button",1,oa)),r&2&&(z(2),ca(s.results))},dependencies:[Ly,ga],encapsulation:2});let t=e;return t})(),$y=0,LO=(()=>{let e=class e{constructor(){this._nativeElement=d(ae).nativeElement,this._config=d(Uy),this._live=d(Vy),this._document=d(H),this._ngZone=d($),this._changeDetector=d(je),this._popupService=new io(jy),this._positioning=Xc(),this._subscription=null,this._closed$=new L,this._inputValueBackup=null,this._inputValueForSelectOnExact=null,this._valueChanges$=De(this._nativeElement,"input").pipe(S(n=>n.target.value)),this._resubscribeTypeahead$=new _e(null),this._windowRef=null,this.autocomplete="off",this.container=this._config.container,this.editable=this._config.editable,this.focusFirst=this._config.focusFirst,this.selectOnExact=this._config.selectOnExact,this.showHint=this._config.showHint,this.placement=this._config.placement,this.popperOptions=this._config.popperOptions,this.selectItem=new F,this.activeDescendant=null,this.popupId=`ngb-typeahead-${$y++}`,this._onTouched=()=>{},this._onChange=n=>{}}ngOnInit(){this._subscribeToUserInput()}ngOnChanges({ngbTypeahead:n}){n&&!n.firstChange&&(this._unsubscribeFromUserInput(),this._subscribeToUserInput())}ngOnDestroy(){this._closePopup(),this._unsubscribeFromUserInput()}registerOnChange(n){this._onChange=n}registerOnTouched(n){this._onTouched=n}writeValue(n){this._writeInputValue(this._formatItemForInput(n)),this.showHint&&(this._inputValueBackup=n)}setDisabledState(n){this._nativeElement.disabled=n}dismissPopup(){this.isPopupOpen()&&(this._resubscribeTypeahead$.next(null),this._closePopup(),this.showHint&&this._inputValueBackup!==null&&this._writeInputValue(this._inputValueBackup),this._changeDetector.markForCheck())}isPopupOpen(){return this._windowRef!=null}handleBlur(){this._resubscribeTypeahead$.next(null),this._onTouched()}handleKeyDown(n){if(this.isPopupOpen())switch(n.which){case Ae.ArrowDown:n.preventDefault(),this._windowRef.instance.next(),this._showHint();break;case Ae.ArrowUp:n.preventDefault(),this._windowRef.instance.prev(),this._showHint();break;case Ae.Enter:case Ae.Tab:{let r=this._windowRef.instance.getActive();no(r)&&(n.preventDefault(),n.stopPropagation(),this._selectResult(r)),this._closePopup();break}}}_openPopup(){if(!this.isPopupOpen()){this._inputValueBackup=this._nativeElement.value;let{windowRef:n}=this._popupService.open();this._windowRef=n,this._windowRef.setInput("id",this.popupId),this._windowRef.setInput("popupClass",this.popupClass),this._windowRef.instance.selectEvent.subscribe(r=>this._selectResultClosePopup(r)),this._windowRef.instance.activeChangeEvent.subscribe(r=>this.activeDescendant=r),this.container==="body"&&(this._windowRef.location.nativeElement.style.zIndex="1055",this._document.body.appendChild(this._windowRef.location.nativeElement)),this._changeDetector.markForCheck(),this._ngZone.runOutsideAngular(()=>{this._windowRef&&(this._positioning.createPopper({hostElement:this._nativeElement,targetElement:this._windowRef.location.nativeElement,placement:this.placement,appendToBody:this.container==="body",updatePopperOptions:r=>this.popperOptions(el([0,2])(r))}),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>this._positioning.update()))}),Zc(this._ngZone,this._document,"outside",()=>this.dismissPopup(),this._closed$,[this._nativeElement,this._windowRef.location.nativeElement])}}_closePopup(){this._popupService.close().subscribe(()=>{this._positioning.destroy(),this._zoneSubscription?.unsubscribe(),this._closed$.next(),this._windowRef=null,this.activeDescendant=null})}_selectResult(n){let r=!1;this.selectItem.emit({item:n,preventDefault:()=>{r=!0}}),this._resubscribeTypeahead$.next(null),r||(this.writeValue(n),this._onChange(n))}_selectResultClosePopup(n){this._selectResult(n),this._closePopup()}_showHint(){if(this.showHint&&this._windowRef?.instance.hasActive()&&this._inputValueBackup!=null){let n=this._inputValueBackup.toLowerCase(),r=this._formatItemForInput(this._windowRef.instance.getActive());n===r.substring(0,this._inputValueBackup.length).toLowerCase()?(this._writeInputValue(this._inputValueBackup+r.substring(this._inputValueBackup.length)),this._nativeElement.setSelectionRange.apply(this._nativeElement,[this._inputValueBackup.length,r.length])):this._writeInputValue(r)}}_formatItemForInput(n){return n!=null&&this.inputFormatter?this.inputFormatter(n):Or(n)}_writeInputValue(n){this._nativeElement.value=Or(n)}_subscribeToUserInput(){let n=this._valueChanges$.pipe(V(r=>{this._inputValueBackup=this.showHint?r:null,this._inputValueForSelectOnExact=this.selectOnExact?r:null,this._onChange(this.editable?r:void 0)}),this.ngbTypeahead?this.ngbTypeahead:()=>b([]));this._subscription=this._resubscribeTypeahead$.pipe(oe(()=>n)).subscribe(r=>{!r||r.length===0?this._closePopup():this.selectOnExact&&r.length===1&&this._formatItemForInput(r[0])===this._inputValueForSelectOnExact?(this._selectResult(r[0]),this._closePopup()):(this._openPopup(),this._windowRef.setInput("focusFirst",this.focusFirst),this._windowRef.setInput("results",r),this._windowRef.setInput("term",this._nativeElement.value),this.resultFormatter&&this._windowRef.setInput("formatter",this.resultFormatter),this.resultTemplate&&this._windowRef.setInput("resultTemplate",this.resultTemplate),this._windowRef.instance.resetActive(),this._windowRef.changeDetectorRef.detectChanges(),this._showHint());let s=r?r.length:0;this._live.say(s===0?"No results available":`${s} result${s===1?"":"s"} available`)})}_unsubscribeFromUserInput(){this._subscription&&this._subscription.unsubscribe(),this._subscription=null}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=x({type:e,selectors:[["input","ngbTypeahead",""]],hostAttrs:["autocapitalize","off","autocorrect","off","role","combobox"],hostVars:7,hostBindings:function(r,s){r&1&&ie("blur",function(){return s.handleBlur()})("keydown",function(a){return s.handleKeyDown(a)}),r&2&&(ft("autocomplete",s.autocomplete),Ce("aria-autocomplete",s.showHint?"both":"list")("aria-activedescendant",s.activeDescendant)("aria-owns",s.isPopupOpen()?s.popupId:null)("aria-expanded",s.isPopupOpen()),Y("open",s.isPopupOpen()))},inputs:{autocomplete:"autocomplete",container:"container",editable:"editable",focusFirst:"focusFirst",inputFormatter:"inputFormatter",ngbTypeahead:"ngbTypeahead",resultFormatter:"resultFormatter",resultTemplate:"resultTemplate",selectOnExact:"selectOnExact",showHint:"showHint",placement:"placement",popperOptions:"popperOptions",popupClass:"popupClass"},outputs:{selectItem:"selectItem"},exportAs:["ngbTypeahead"],standalone:!0,features:[mt([{provide:ai,useExisting:ct(()=>e),multi:!0}]),Pe]});let t=e;return t})();var $f=(()=>{let e=class e{constructor(){this.http=d(Ea),this.toastr=d(xs),this.requestTimeout=1e4}get(n,r={},s="/"){return this.http.get(`${s}${n}`,m({},r)).pipe(Fn(this.requestTimeout),Ee(this.handleError.bind(this)))}post(n,r,s={},o="/"){return this.http.post(`${o}${n}`,r,m({},s)).pipe(Fn(this.requestTimeout),Ee(this.handleError.bind(this)))}postFormData(n,r,s={},o="/"){return this.http.post(`${o}/${n}`,r,m({},s)).pipe(Fn(this.requestTimeout),Ee(this.handleError.bind(this)))}put(n,r,s={},o="/"){return this.http.put(`${o}/${n}`,r,m({},s)).pipe(Fn(this.requestTimeout),Ee(this.handleError.bind(this)))}delete(n,r={},s="/"){return this.http.delete(`${s}/${n}`,m({},r)).pipe(Fn(this.requestTimeout),Ee(this.handleError.bind(this)))}handleError(n){let r={header:"API Error ",message:"An unknown error occurred."};return n instanceof Iu&&n.name=="TimeoutError"&&(r.header="Request Timeout",r.message="The request took too long to complete. Please try again later."),n instanceof _t&&(Object.keys(n.error).length?(r.header="API Error - "+n.status,r.message=n.error.Message||n.error.message):(n.status===401&&(r.header="Unauthorized",r.message="We can't log you in because of authentication error"),r.header="API Error - "+n.status,r.message=n.error.message)),this.toastr.error(r.message,r.header),dn(()=>r)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Gf=function(t){let e=[],i=0;for(let n=0;n<t.length;n++){let r=t.charCodeAt(n);r<128?e[i++]=r:r<2048?(e[i++]=r>>6|192,e[i++]=r&63|128):(r&64512)===55296&&n+1<t.length&&(t.charCodeAt(n+1)&64512)===56320?(r=65536+((r&1023)<<10)+(t.charCodeAt(++n)&1023),e[i++]=r>>18|240,e[i++]=r>>12&63|128,e[i++]=r>>6&63|128,e[i++]=r&63|128):(e[i++]=r>>12|224,e[i++]=r>>6&63|128,e[i++]=r&63|128)}return e},Hy=function(t){let e=[],i=0,n=0;for(;i<t.length;){let r=t[i++];if(r<128)e[n++]=String.fromCharCode(r);else if(r>191&&r<224){let s=t[i++];e[n++]=String.fromCharCode((r&31)<<6|s&63)}else if(r>239&&r<365){let s=t[i++],o=t[i++],a=t[i++],c=((r&7)<<18|(s&63)<<12|(o&63)<<6|a&63)-65536;e[n++]=String.fromCharCode(55296+(c>>10)),e[n++]=String.fromCharCode(56320+(c&1023))}else{let s=t[i++],o=t[i++];e[n++]=String.fromCharCode((r&15)<<12|(s&63)<<6|o&63)}}return e.join("")},zf={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:typeof atob=="function",encodeByteArray(t,e){if(!Array.isArray(t))throw Error("encodeByteArray takes an array as a parameter");this.init_();let i=e?this.byteToCharMapWebSafe_:this.byteToCharMap_,n=[];for(let r=0;r<t.length;r+=3){let s=t[r],o=r+1<t.length,a=o?t[r+1]:0,c=r+2<t.length,l=c?t[r+2]:0,u=s>>2,f=(s&3)<<4|a>>4,h=(a&15)<<2|l>>6,g=l&63;c||(g=64,o||(h=64)),n.push(i[u],i[f],i[h],i[g])}return n.join("")},encodeString(t,e){return this.HAS_NATIVE_SUPPORT&&!e?btoa(t):this.encodeByteArray(Gf(t),e)},decodeString(t,e){return this.HAS_NATIVE_SUPPORT&&!e?atob(t):Hy(this.decodeStringToByteArray(t,e))},decodeStringToByteArray(t,e){this.init_();let i=e?this.charToByteMapWebSafe_:this.charToByteMap_,n=[];for(let r=0;r<t.length;){let s=i[t.charAt(r++)],a=r<t.length?i[t.charAt(r)]:0;++r;let l=r<t.length?i[t.charAt(r)]:64;++r;let f=r<t.length?i[t.charAt(r)]:64;if(++r,s==null||a==null||l==null||f==null)throw new il;let h=s<<2|a>>4;if(n.push(h),l!==64){let g=a<<4&240|l>>2;if(n.push(g),f!==64){let v=l<<6&192|f;n.push(v)}}}return n},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let t=0;t<this.ENCODED_VALS.length;t++)this.byteToCharMap_[t]=this.ENCODED_VALS.charAt(t),this.charToByteMap_[this.byteToCharMap_[t]]=t,this.byteToCharMapWebSafe_[t]=this.ENCODED_VALS_WEBSAFE.charAt(t),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[t]]=t,t>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(t)]=t,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(t)]=t)}}},il=class extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}},Gy=function(t){let e=Gf(t);return zf.encodeByteArray(e,!0)},sl=function(t){return Gy(t).replace(/\./g,"")},ol=function(t){try{return zf.decodeString(t,!0)}catch(e){console.error("base64Decode failed: ",e)}return null};function zy(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("Unable to locate global object.")}var Wy=()=>zy().__FIREBASE_DEFAULTS__,qy=()=>{if(typeof process>"u"||typeof process.env>"u")return;let t=process.env.__FIREBASE_DEFAULTS__;if(t)return JSON.parse(t)},Jy=()=>{if(typeof document>"u")return;let t;try{t=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}let e=t&&ol(t[1]);return e&&JSON.parse(e)},al=()=>{try{return Wy()||qy()||Jy()}catch(t){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${t}`);return}},Wf=t=>{var e,i;return(i=(e=al())===null||e===void 0?void 0:e.emulatorHosts)===null||i===void 0?void 0:i[t]};var cl=()=>{var t;return(t=al())===null||t===void 0?void 0:t.config},ll=t=>{var e;return(e=al())===null||e===void 0?void 0:e[`_${t}`]};var ao=class{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((e,i)=>{this.resolve=e,this.reject=i})}wrapCallback(e){return(i,n)=>{i?this.reject(i):this.resolve(n),typeof e=="function"&&(this.promise.catch(()=>{}),e.length===1?e(i):e(i,n))}}};function ge(){return typeof navigator<"u"&&typeof navigator.userAgent=="string"?navigator.userAgent:""}function qf(){return typeof window<"u"&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(ge())}function Jf(){let t=typeof chrome=="object"?chrome.runtime:typeof browser=="object"?browser.runtime:void 0;return typeof t=="object"&&t.id!==void 0}function Kf(){return typeof navigator=="object"&&navigator.product==="ReactNative"}function Yf(){let t=ge();return t.indexOf("MSIE ")>=0||t.indexOf("Trident/")>=0}function Qf(){try{return typeof indexedDB=="object"}catch{return!1}}function Zf(){return new Promise((t,e)=>{try{let i=!0,n="validate-browser-context-for-indexeddb-analytics-module",r=self.indexedDB.open(n);r.onsuccess=()=>{r.result.close(),i||self.indexedDB.deleteDatabase(n),t(!0)},r.onupgradeneeded=()=>{i=!1},r.onerror=()=>{var s;e(((s=r.error)===null||s===void 0?void 0:s.message)||"")}}catch(i){e(i)}})}var Ky="FirebaseError",st=class t extends Error{constructor(e,i,n){super(i),this.code=e,this.customData=n,this.name=Ky,Object.setPrototypeOf(this,t.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,Ft.prototype.create)}},Ft=class{constructor(e,i,n){this.service=e,this.serviceName=i,this.errors=n}create(e,...i){let n=i[0]||{},r=`${this.service}/${e}`,s=this.errors[e],o=s?Yy(s,n):"Error",a=`${this.serviceName}: ${o} (${r}).`;return new st(r,a,n)}};function Yy(t,e){return t.replace(Qy,(i,n)=>{let r=e[n];return r!=null?String(r):`<${n}?>`})}var Qy=/\{\$([^}]+)}/g;function Xf(t){for(let e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}function pi(t,e){if(t===e)return!0;let i=Object.keys(t),n=Object.keys(e);for(let r of i){if(!n.includes(r))return!1;let s=t[r],o=e[r];if(Hf(s)&&Hf(o)){if(!pi(s,o))return!1}else if(s!==o)return!1}for(let r of n)if(!i.includes(r))return!1;return!0}function Hf(t){return t!==null&&typeof t=="object"}function gi(t){let e=[];for(let[i,n]of Object.entries(t))Array.isArray(n)?n.forEach(r=>{e.push(encodeURIComponent(i)+"="+encodeURIComponent(r))}):e.push(encodeURIComponent(i)+"="+encodeURIComponent(n));return e.length?"&"+e.join("&"):""}function ep(t,e){let i=new rl(t,e);return i.subscribe.bind(i)}var rl=class{constructor(e,i){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=i,this.task.then(()=>{e(this)}).catch(n=>{this.error(n)})}next(e){this.forEachObserver(i=>{i.next(e)})}error(e){this.forEachObserver(i=>{i.error(e)}),this.close(e)}complete(){this.forEachObserver(e=>{e.complete()}),this.close()}subscribe(e,i,n){let r;if(e===void 0&&i===void 0&&n===void 0)throw new Error("Missing Observer.");Zy(e,["next","error","complete"])?r=e:r={next:e,error:i,complete:n},r.next===void 0&&(r.next=nl),r.error===void 0&&(r.error=nl),r.complete===void 0&&(r.complete=nl);let s=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?r.error(this.finalError):r.complete()}catch{}}),this.observers.push(r),s}unsubscribeOne(e){this.observers===void 0||this.observers[e]===void 0||(delete this.observers[e],this.observerCount-=1,this.observerCount===0&&this.onNoObservers!==void 0&&this.onNoObservers(this))}forEachObserver(e){if(!this.finalized)for(let i=0;i<this.observers.length;i++)this.sendOne(i,e)}sendOne(e,i){this.task.then(()=>{if(this.observers!==void 0&&this.observers[e]!==void 0)try{i(this.observers[e])}catch(n){typeof console<"u"&&console.error&&console.error(n)}})}close(e){this.finalized||(this.finalized=!0,e!==void 0&&(this.finalError=e),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}};function Zy(t,e){if(typeof t!="object"||t===null)return!1;for(let i of e)if(i in t&&typeof t[i]=="function")return!0;return!1}function nl(){}var JO=4*60*60*1e3;function Cn(t){return t&&t._delegate?t._delegate:t}var wt=class{constructor(e,i,n){this.name=e,this.instanceFactory=i,this.type=n,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}};var In="[DEFAULT]";var ul=class{constructor(e,i){this.name=e,this.container=i,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(e){let i=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(i)){let n=new ao;if(this.instancesDeferred.set(i,n),this.isInitialized(i)||this.shouldAutoInitialize())try{let r=this.getOrInitializeService({instanceIdentifier:i});r&&n.resolve(r)}catch{}}return this.instancesDeferred.get(i).promise}getImmediate(e){var i;let n=this.normalizeInstanceIdentifier(e?.identifier),r=(i=e?.optional)!==null&&i!==void 0?i:!1;if(this.isInitialized(n)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:n})}catch(s){if(r)return null;throw s}else{if(r)return null;throw Error(`Service ${this.name} is not available`)}}getComponent(){return this.component}setComponent(e){if(e.name!==this.name)throw Error(`Mismatching Component ${e.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=e,!!this.shouldAutoInitialize()){if(eb(e))try{this.getOrInitializeService({instanceIdentifier:In})}catch{}for(let[i,n]of this.instancesDeferred.entries()){let r=this.normalizeInstanceIdentifier(i);try{let s=this.getOrInitializeService({instanceIdentifier:r});n.resolve(s)}catch{}}}}clearInstance(e=In){this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)}delete(){return p(this,null,function*(){let e=Array.from(this.instances.values());yield Promise.all([...e.filter(i=>"INTERNAL"in i).map(i=>i.INTERNAL.delete()),...e.filter(i=>"_delete"in i).map(i=>i._delete())])})}isComponentSet(){return this.component!=null}isInitialized(e=In){return this.instances.has(e)}getOptions(e=In){return this.instancesOptions.get(e)||{}}initialize(e={}){let{options:i={}}=e,n=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(n))throw Error(`${this.name}(${n}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);let r=this.getOrInitializeService({instanceIdentifier:n,options:i});for(let[s,o]of this.instancesDeferred.entries()){let a=this.normalizeInstanceIdentifier(s);n===a&&o.resolve(r)}return r}onInit(e,i){var n;let r=this.normalizeInstanceIdentifier(i),s=(n=this.onInitCallbacks.get(r))!==null&&n!==void 0?n:new Set;s.add(e),this.onInitCallbacks.set(r,s);let o=this.instances.get(r);return o&&e(o,r),()=>{s.delete(e)}}invokeOnInitCallbacks(e,i){let n=this.onInitCallbacks.get(i);if(n)for(let r of n)try{r(e,i)}catch{}}getOrInitializeService({instanceIdentifier:e,options:i={}}){let n=this.instances.get(e);if(!n&&this.component&&(n=this.component.instanceFactory(this.container,{instanceIdentifier:Xy(e),options:i}),this.instances.set(e,n),this.instancesOptions.set(e,i),this.invokeOnInitCallbacks(n,e),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,n)}catch{}return n||null}normalizeInstanceIdentifier(e=In){return this.component?this.component.multipleInstances?e:In:e}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"}};function Xy(t){return t===In?void 0:t}function eb(t){return t.instantiationMode==="EAGER"}var co=class{constructor(e){this.name=e,this.providers=new Map}addComponent(e){let i=this.getProvider(e.name);if(i.isComponentSet())throw new Error(`Component ${e.name} has already been registered with ${this.name}`);i.setComponent(e)}addOrOverwriteComponent(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)}getProvider(e){if(this.providers.has(e))return this.providers.get(e);let i=new ul(e,this);return this.providers.set(e,i),i}getProviders(){return Array.from(this.providers.values())}};var tb=[],G=function(t){return t[t.DEBUG=0]="DEBUG",t[t.VERBOSE=1]="VERBOSE",t[t.INFO=2]="INFO",t[t.WARN=3]="WARN",t[t.ERROR=4]="ERROR",t[t.SILENT=5]="SILENT",t}(G||{}),nb={debug:G.DEBUG,verbose:G.VERBOSE,info:G.INFO,warn:G.WARN,error:G.ERROR,silent:G.SILENT},ib=G.INFO,rb={[G.DEBUG]:"log",[G.VERBOSE]:"log",[G.INFO]:"info",[G.WARN]:"warn",[G.ERROR]:"error"},sb=(t,e,...i)=>{if(e<t.logLevel)return;let n=new Date().toISOString(),r=rb[e];if(r)console[r](`[${n}] ${t.name}:`,...i);else throw new Error(`Attempted to log a message with an invalid logType (value: ${e})`)},mi=class{constructor(e){this.name=e,this._logLevel=ib,this._logHandler=sb,this._userLogHandler=null,tb.push(this)}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in G))throw new TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e}setLogLevel(e){this._logLevel=typeof e=="string"?nb[e]:e}get logHandler(){return this._logHandler}set logHandler(e){if(typeof e!="function")throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e}get userLogHandler(){return this._userLogHandler}set userLogHandler(e){this._userLogHandler=e}debug(...e){this._userLogHandler&&this._userLogHandler(this,G.DEBUG,...e),this._logHandler(this,G.DEBUG,...e)}log(...e){this._userLogHandler&&this._userLogHandler(this,G.VERBOSE,...e),this._logHandler(this,G.VERBOSE,...e)}info(...e){this._userLogHandler&&this._userLogHandler(this,G.INFO,...e),this._logHandler(this,G.INFO,...e)}warn(...e){this._userLogHandler&&this._userLogHandler(this,G.WARN,...e),this._logHandler(this,G.WARN,...e)}error(...e){this._userLogHandler&&this._userLogHandler(this,G.ERROR,...e),this._logHandler(this,G.ERROR,...e)}};var ob=(t,e)=>e.some(i=>t instanceof i),tp,np;function ab(){return tp||(tp=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function cb(){return np||(np=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}var ip=new WeakMap,hl=new WeakMap,rp=new WeakMap,dl=new WeakMap,pl=new WeakMap;function lb(t){let e=new Promise((i,n)=>{let r=()=>{t.removeEventListener("success",s),t.removeEventListener("error",o)},s=()=>{i(Dt(t.result)),r()},o=()=>{n(t.error),r()};t.addEventListener("success",s),t.addEventListener("error",o)});return e.then(i=>{i instanceof IDBCursor&&ip.set(i,t)}).catch(()=>{}),pl.set(e,t),e}function ub(t){if(hl.has(t))return;let e=new Promise((i,n)=>{let r=()=>{t.removeEventListener("complete",s),t.removeEventListener("error",o),t.removeEventListener("abort",o)},s=()=>{i(),r()},o=()=>{n(t.error||new DOMException("AbortError","AbortError")),r()};t.addEventListener("complete",s),t.addEventListener("error",o),t.addEventListener("abort",o)});hl.set(t,e)}var fl={get(t,e,i){if(t instanceof IDBTransaction){if(e==="done")return hl.get(t);if(e==="objectStoreNames")return t.objectStoreNames||rp.get(t);if(e==="store")return i.objectStoreNames[1]?void 0:i.objectStore(i.objectStoreNames[0])}return Dt(t[e])},set(t,e,i){return t[e]=i,!0},has(t,e){return t instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in t}};function sp(t){fl=t(fl)}function db(t){return t===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...i){let n=t.call(lo(this),e,...i);return rp.set(n,e.sort?e.sort():[e]),Dt(n)}:cb().includes(t)?function(...e){return t.apply(lo(this),e),Dt(ip.get(this))}:function(...e){return Dt(t.apply(lo(this),e))}}function hb(t){return typeof t=="function"?db(t):(t instanceof IDBTransaction&&ub(t),ob(t,ab())?new Proxy(t,fl):t)}function Dt(t){if(t instanceof IDBRequest)return lb(t);if(dl.has(t))return dl.get(t);let e=hb(t);return e!==t&&(dl.set(t,e),pl.set(e,t)),e}var lo=t=>pl.get(t);function ap(t,e,{blocked:i,upgrade:n,blocking:r,terminated:s}={}){let o=indexedDB.open(t,e),a=Dt(o);return n&&o.addEventListener("upgradeneeded",c=>{n(Dt(o.result),c.oldVersion,c.newVersion,Dt(o.transaction),c)}),i&&o.addEventListener("blocked",c=>i(c.oldVersion,c.newVersion,c)),a.then(c=>{s&&c.addEventListener("close",()=>s()),r&&c.addEventListener("versionchange",l=>r(l.oldVersion,l.newVersion,l))}).catch(()=>{}),a}var fb=["get","getKey","getAll","getAllKeys","count"],pb=["put","add","delete","clear"],gl=new Map;function op(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if(gl.get(e))return gl.get(e);let i=e.replace(/FromIndex$/,""),n=e!==i,r=pb.includes(i);if(!(i in(n?IDBIndex:IDBObjectStore).prototype)||!(r||fb.includes(i)))return;let s=function(o,...a){return p(this,null,function*(){let c=this.transaction(o,r?"readwrite":"readonly"),l=c.store;return n&&(l=l.index(a.shift())),(yield Promise.all([l[i](...a),r&&c.done]))[0]})};return gl.set(e,s),s}sp(t=>k(m({},t),{get:(e,i,n)=>op(e,i)||t.get(e,i,n),has:(e,i)=>!!op(e,i)||t.has(e,i)}));var _l=class{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map(i=>{if(gb(i)){let n=i.getImmediate();return`${n.library}/${n.version}`}else return null}).filter(i=>i).join(" ")}};function gb(t){let e=t.getComponent();return e?.type==="VERSION"}var vl="@firebase/app",cp="0.10.7";var Sn=new mi("@firebase/app"),mb="@firebase/app-compat",_b="@firebase/analytics-compat",vb="@firebase/analytics",yb="@firebase/app-check-compat",bb="@firebase/app-check",wb="@firebase/auth",Db="@firebase/auth-compat",Eb="@firebase/database",Tb="@firebase/database-compat",Cb="@firebase/functions",Ib="@firebase/functions-compat",Sb="@firebase/installations",Ab="@firebase/installations-compat",Ob="@firebase/messaging",Rb="@firebase/messaging-compat",Pb="@firebase/performance",Mb="@firebase/performance-compat",Nb="@firebase/remote-config",kb="@firebase/remote-config-compat",xb="@firebase/storage",Fb="@firebase/storage-compat",Lb="@firebase/firestore",Bb="@firebase/vertexai-preview",Vb="@firebase/firestore-compat",Ub="firebase",jb="10.12.4";var yl="[DEFAULT]",$b={[vl]:"fire-core",[mb]:"fire-core-compat",[vb]:"fire-analytics",[_b]:"fire-analytics-compat",[bb]:"fire-app-check",[yb]:"fire-app-check-compat",[wb]:"fire-auth",[Db]:"fire-auth-compat",[Eb]:"fire-rtdb",[Tb]:"fire-rtdb-compat",[Cb]:"fire-fn",[Ib]:"fire-fn-compat",[Sb]:"fire-iid",[Ab]:"fire-iid-compat",[Ob]:"fire-fcm",[Rb]:"fire-fcm-compat",[Pb]:"fire-perf",[Mb]:"fire-perf-compat",[Nb]:"fire-rc",[kb]:"fire-rc-compat",[xb]:"fire-gcs",[Fb]:"fire-gcs-compat",[Lb]:"fire-fst",[Vb]:"fire-fst-compat",[Bb]:"fire-vertex","fire-js":"fire-js",[Ub]:"fire-js-all"};var Rr=new Map,Hb=new Map,bl=new Map;function lp(t,e){try{t.container.addComponent(e)}catch(i){Sn.debug(`Component ${e.name} failed to register with FirebaseApp ${t.name}`,i)}}function _i(t){let e=t.name;if(bl.has(e))return Sn.debug(`There were multiple attempts to register component ${e}.`),!1;bl.set(e,t);for(let i of Rr.values())lp(i,t);for(let i of Hb.values())lp(i,t);return!0}function Tl(t,e){let i=t.container.getProvider("heartbeat").getImmediate({optional:!0});return i&&i.triggerHeartbeat(),t.container.getProvider(e)}function Et(t){return t.settings!==void 0}var Gb={"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invalid-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."},nn=new Ft("app","Firebase",Gb);var wl=class{constructor(e,i,n){this._isDeleted=!1,this._options=Object.assign({},e),this._config=Object.assign({},i),this._name=i.name,this._automaticDataCollectionEnabled=i.automaticDataCollectionEnabled,this._container=n,this.container.addComponent(new wt("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(e){this._isDeleted=e}checkDestroyed(){if(this.isDeleted)throw nn.create("app-deleted",{appName:this._name})}};var vi=jb;function Cl(t,e={}){let i=t;typeof e!="object"&&(e={name:e});let n=Object.assign({name:yl,automaticDataCollectionEnabled:!1},e),r=n.name;if(typeof r!="string"||!r)throw nn.create("bad-app-name",{appName:String(r)});if(i||(i=cl()),!i)throw nn.create("no-options");let s=Rr.get(r);if(s){if(pi(i,s.options)&&pi(n,s.config))return s;throw nn.create("duplicate-app",{appName:r})}let o=new co(r);for(let c of bl.values())o.addComponent(c);let a=new wl(i,n,o);return Rr.set(r,a),a}function uo(t=yl){let e=Rr.get(t);if(!e&&t===yl&&cl())return Cl();if(!e)throw nn.create("no-app",{appName:t});return e}function ho(){return Array.from(Rr.values())}function Oe(t,e,i){var n;let r=(n=$b[t])!==null&&n!==void 0?n:t;i&&(r+=`-${i}`);let s=r.match(/\s|\//),o=e.match(/\s|\//);if(s||o){let a=[`Unable to register library "${r}" with version "${e}":`];s&&a.push(`library name "${r}" contains illegal characters (whitespace or "/")`),s&&o&&a.push("and"),o&&a.push(`version name "${e}" contains illegal characters (whitespace or "/")`),Sn.warn(a.join(" "));return}_i(new wt(`${r}-version`,()=>({library:r,version:e}),"VERSION"))}var zb="firebase-heartbeat-database",Wb=1,Pr="firebase-heartbeat-store",ml=null;function fp(){return ml||(ml=ap(zb,Wb,{upgrade:(t,e)=>{switch(e){case 0:try{t.createObjectStore(Pr)}catch(i){console.warn(i)}}}}).catch(t=>{throw nn.create("idb-open",{originalErrorMessage:t.message})})),ml}function qb(t){return p(this,null,function*(){try{let i=(yield fp()).transaction(Pr),n=yield i.objectStore(Pr).get(pp(t));return yield i.done,n}catch(e){if(e instanceof st)Sn.warn(e.message);else{let i=nn.create("idb-get",{originalErrorMessage:e?.message});Sn.warn(i.message)}}})}function up(t,e){return p(this,null,function*(){try{let n=(yield fp()).transaction(Pr,"readwrite");yield n.objectStore(Pr).put(e,pp(t)),yield n.done}catch(i){if(i instanceof st)Sn.warn(i.message);else{let n=nn.create("idb-set",{originalErrorMessage:i?.message});Sn.warn(n.message)}}})}function pp(t){return`${t.name}!${t.options.appId}`}var Jb=1024,Kb=30*24*60*60*1e3,Dl=class{constructor(e){this.container=e,this._heartbeatsCache=null;let i=this.container.getProvider("app").getImmediate();this._storage=new El(i),this._heartbeatsCachePromise=this._storage.read().then(n=>(this._heartbeatsCache=n,n))}triggerHeartbeat(){return p(this,null,function*(){var e,i;let r=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),s=dp();if(!(((e=this._heartbeatsCache)===null||e===void 0?void 0:e.heartbeats)==null&&(this._heartbeatsCache=yield this._heartbeatsCachePromise,((i=this._heartbeatsCache)===null||i===void 0?void 0:i.heartbeats)==null))&&!(this._heartbeatsCache.lastSentHeartbeatDate===s||this._heartbeatsCache.heartbeats.some(o=>o.date===s)))return this._heartbeatsCache.heartbeats.push({date:s,agent:r}),this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter(o=>{let a=new Date(o.date).valueOf();return Date.now()-a<=Kb}),this._storage.overwrite(this._heartbeatsCache)})}getHeartbeatsHeader(){return p(this,null,function*(){var e;if(this._heartbeatsCache===null&&(yield this._heartbeatsCachePromise),((e=this._heartbeatsCache)===null||e===void 0?void 0:e.heartbeats)==null||this._heartbeatsCache.heartbeats.length===0)return"";let i=dp(),{heartbeatsToSend:n,unsentEntries:r}=Yb(this._heartbeatsCache.heartbeats),s=sl(JSON.stringify({version:2,heartbeats:n}));return this._heartbeatsCache.lastSentHeartbeatDate=i,r.length>0?(this._heartbeatsCache.heartbeats=r,yield this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),s})}};function dp(){return new Date().toISOString().substring(0,10)}function Yb(t,e=Jb){let i=[],n=t.slice();for(let r of t){let s=i.find(o=>o.agent===r.agent);if(s){if(s.dates.push(r.date),hp(i)>e){s.dates.pop();break}}else if(i.push({agent:r.agent,dates:[r.date]}),hp(i)>e){i.pop();break}n=n.slice(1)}return{heartbeatsToSend:i,unsentEntries:n}}var El=class{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}runIndexedDBEnvironmentCheck(){return p(this,null,function*(){return Qf()?Zf().then(()=>!0).catch(()=>!1):!1})}read(){return p(this,null,function*(){if(yield this._canUseIndexedDBPromise){let i=yield qb(this.app);return i?.heartbeats?i:{heartbeats:[]}}else return{heartbeats:[]}})}overwrite(e){return p(this,null,function*(){var i;if(yield this._canUseIndexedDBPromise){let r=yield this.read();return up(this.app,{lastSentHeartbeatDate:(i=e.lastSentHeartbeatDate)!==null&&i!==void 0?i:r.lastSentHeartbeatDate,heartbeats:e.heartbeats})}else return})}add(e){return p(this,null,function*(){var i;if(yield this._canUseIndexedDBPromise){let r=yield this.read();return up(this.app,{lastSentHeartbeatDate:(i=e.lastSentHeartbeatDate)!==null&&i!==void 0?i:r.lastSentHeartbeatDate,heartbeats:[...r.heartbeats,...e.heartbeats]})}else return})}};function hp(t){return sl(JSON.stringify({version:2,heartbeats:t})).length}function Qb(t){_i(new wt("platform-logger",e=>new _l(e),"PRIVATE")),_i(new wt("heartbeat",e=>new Dl(e),"PRIVATE")),Oe(vl,cp,t),Oe(vl,cp,"esm2017"),Oe("fire-js","")}Qb("");var Zb="firebase",Xb="10.12.4";Oe(Zb,Xb,"app");var Mr=new Li("ANGULARFIRE2_VERSION");function gp(t,e,i){if(e){if(e.length===1)return e[0];let s=e.filter(o=>o.app===i);if(s.length===1)return s[0]}return i.container.getProvider(t).getImmediate({optional:!0})}var Sl=(t,e)=>{let i=e?[e]:ho(),n=[];return i.forEach(r=>{r.container.getProvider(t).instances.forEach(o=>{n.includes(o)||n.push(o)})}),n},fo=class{constructor(){return Sl(e1)}},e1="app-check";function yi(){}var po=class{zone;delegate;constructor(e,i=Eu){this.zone=e,this.delegate=i}now(){return this.delegate.now()}schedule(e,i,n){let r=this.zone,s=function(o){r.runGuarded(()=>{e.apply(this,[o])})};return this.delegate.schedule(s,i,n)}},Il=class{zone;task=null;constructor(e){this.zone=e}call(e,i){let n=this.unscheduleTask.bind(this);return this.task=this.zone.run(()=>Zone.current.scheduleMacroTask("firebaseZoneBlock",yi,{},yi,yi)),i.pipe(V({next:n,complete:n,error:n})).subscribe(e).add(n)}unscheduleTask(){setTimeout(()=>{this.task!=null&&this.task.state==="scheduled"&&(this.task.invoke(),this.task=null)},10)}},go=(()=>{class t{ngZone;outsideAngular;insideAngular;constructor(i){this.ngZone=i,this.outsideAngular=i.runOutsideAngular(()=>new po(Zone.current)),this.insideAngular=i.run(()=>new po(Zone.current,Du)),globalThis.\u0275AngularFireScheduler||=this}static \u0275fac=function(n){return new(n||t)(T($))};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function mo(){let t=globalThis.\u0275AngularFireScheduler;if(!t)throw new Error(`Either AngularFireModule has not been provided in your AppModule (this can be done manually or implictly using
|
|
5
5
|
provideFirebaseApp) or you're calling an AngularFire method outside of an NgModule (which is not supported).`);return t}function t1(t){return mo().ngZone.runOutsideAngular(()=>t())}function An(t){return mo().ngZone.run(()=>t())}function n1(t){return i1(mo())(t)}function i1(t){return function(i){return i=i.lift(new Il(t.ngZone)),i.pipe(Go(t.outsideAngular),Ho(t.insideAngular))}}var r1=(t,e)=>function(){let n=arguments;return e&&setTimeout(()=>{e.state==="scheduled"&&e.invoke()},10),An(()=>t.apply(void 0,n))},bi=(t,e)=>function(){let i,n=arguments;for(let s=0;s<arguments.length;s++)typeof n[s]=="function"&&(e&&(i||=An(()=>Zone.current.scheduleMacroTask("firebaseZoneBlock",yi,{},yi,yi))),n[s]=r1(n[s],i));let r=t1(()=>t.apply(this,n));if(!e)if(r instanceof xe){let s=mo();return r.pipe(Go(s.outsideAngular),Ho(s.insideAngular))}else return An(()=>r);return r instanceof xe?r.pipe(n1):r instanceof Promise?An(()=>new Promise((s,o)=>r.then(a=>An(()=>s(a)),a=>An(()=>o(a))))):typeof r=="function"&&i?function(){return setTimeout(()=>{i&&i.state==="scheduled"&&i.invoke()},10),r.apply(this,arguments)}:An(()=>r)};var On=class{constructor(e){return e}},Nr=class{constructor(){return ho()}};function s1(t){return t&&t.length===1?t[0]:new On(uo())}var Al=new R("angularfire2._apps"),o1={provide:On,useFactory:s1,deps:[[new lt,Al]]},a1={provide:Nr,deps:[[new lt,Al]]};function c1(t){return(e,i)=>{let n=i.get(dt);Oe("angularfire",Mr.full,"core"),Oe("angularfire",Mr.full,"app"),Oe("angular",rd.full,n.toString());let r=e.runOutsideAngular(()=>t(i));return new On(r)}}function kR(t,...e){return Qe([o1,a1,{provide:Al,useFactory:c1(t),multi:!0,deps:[$,ne,go,...e]}])}var xR=bi(Cl,!0);function Rp(){return{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}}var Pp=Rp,Mp=new Ft("auth","Firebase",Rp());var Do=new mi("@firebase/auth");function l1(t,...e){Do.logLevel<=G.WARN&&Do.warn(`Auth (${vi}): ${t}`,...e)}function vo(t,...e){Do.logLevel<=G.ERROR&&Do.error(`Auth (${vi}): ${t}`,...e)}function Ct(t,...e){throw Wl(t,...e)}function ot(t,...e){return Wl(t,...e)}function zl(t,e,i){let n=Object.assign(Object.assign({},Pp()),{[e]:i});return new Ft("auth","Firebase",n).create(e,{appName:t.name})}function Rn(t){return zl(t,"operation-not-supported-in-this-environment","Operations that alter the current user are not supported in conjunction with FirebaseServerApp")}function u1(t,e,i){let n=i;if(!(e instanceof n))throw n.name!==e.constructor.name&&Ct(t,"argument-error"),zl(t,"argument-error",`Type of ${e.constructor.name} does not match expected instance.Did you pass a reference from a different Auth SDK?`)}function Wl(t,...e){if(typeof t!="string"){let i=e[0],n=[...e.slice(1)];return n[0]&&(n[0].appName=t.name),t._errorFactory.create(i,...n)}return Mp.create(t,...e)}function C(t,e,...i){if(!t)throw Wl(e,...i)}function Lt(t){let e="INTERNAL ASSERTION FAILED: "+t;throw vo(e),new Error(e)}function Vt(t,e){t||Lt(e)}function Pl(){var t;return typeof self<"u"&&((t=self.location)===null||t===void 0?void 0:t.href)||""}function d1(){return mp()==="http:"||mp()==="https:"}function mp(){var t;return typeof self<"u"&&((t=self.location)===null||t===void 0?void 0:t.protocol)||null}function h1(){return typeof navigator<"u"&&navigator&&"onLine"in navigator&&typeof navigator.onLine=="boolean"&&(d1()||Jf()||"connection"in navigator)?navigator.onLine:!0}function f1(){if(typeof navigator>"u")return null;let t=navigator;return t.languages&&t.languages[0]||t.language||null}var Pn=class{constructor(e,i){this.shortDelay=e,this.longDelay=i,Vt(i>e,"Short delay should be less than long delay!"),this.isMobile=qf()||Kf()}get(){return h1()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}};function ql(t,e){Vt(t.emulator,"Emulator should always be set here");let{url:i}=t.emulator;return e?`${i}${e.startsWith("/")?e.slice(1):e}`:i}var Eo=class{static initialize(e,i,n){this.fetchImpl=e,i&&(this.headersImpl=i),n&&(this.responseImpl=n)}static fetch(){if(this.fetchImpl)return this.fetchImpl;if(typeof self<"u"&&"fetch"in self)return self.fetch;if(typeof globalThis<"u"&&globalThis.fetch)return globalThis.fetch;if(typeof fetch<"u")return fetch;Lt("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static headers(){if(this.headersImpl)return this.headersImpl;if(typeof self<"u"&&"Headers"in self)return self.Headers;if(typeof globalThis<"u"&&globalThis.Headers)return globalThis.Headers;if(typeof Headers<"u")return Headers;Lt("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static response(){if(this.responseImpl)return this.responseImpl;if(typeof self<"u"&&"Response"in self)return self.Response;if(typeof globalThis<"u"&&globalThis.Response)return globalThis.Response;if(typeof Response<"u")return Response;Lt("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}};var p1={CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_PASSWORD:"wrong-password",MISSING_PASSWORD:"missing-password",INVALID_LOGIN_CREDENTIALS:"invalid-credential",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_REQ_TYPE:"internal-error",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",PASSWORD_DOES_NOT_MEET_REQUIREMENTS:"password-does-not-meet-requirements",INVALID_CODE:"invalid-verification-code",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_SESSION_INFO:"missing-verification-id",SESSION_EXPIRED:"code-expired",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",BLOCKING_FUNCTION_ERROR_RESPONSE:"internal-error",RECAPTCHA_NOT_ENABLED:"recaptcha-not-enabled",MISSING_RECAPTCHA_TOKEN:"missing-recaptcha-token",INVALID_RECAPTCHA_TOKEN:"invalid-recaptcha-token",INVALID_RECAPTCHA_ACTION:"invalid-recaptcha-action",MISSING_CLIENT_TYPE:"missing-client-type",MISSING_RECAPTCHA_VERSION:"missing-recaptcha-version",INVALID_RECAPTCHA_VERSION:"invalid-recaptcha-version",INVALID_REQ_TYPE:"invalid-req-type"};var g1=new Pn(3e4,6e4);function Jl(t,e){return t.tenantId&&!e.tenantId?Object.assign(Object.assign({},e),{tenantId:t.tenantId}):e}function Ei(s,o,a,c){return p(this,arguments,function*(t,e,i,n,r={}){return Np(t,r,()=>p(this,null,function*(){let l={},u={};n&&(e==="GET"?u=n:l={body:JSON.stringify(n)});let f=gi(Object.assign({key:t.config.apiKey},u)).slice(1),h=yield t._getAdditionalHeaders();return h["Content-Type"]="application/json",t.languageCode&&(h["X-Firebase-Locale"]=t.languageCode),Eo.fetch()(kp(t,t.config.apiHost,i,f),Object.assign({method:e,headers:h,referrerPolicy:"no-referrer"},l))}))})}function Np(t,e,i){return p(this,null,function*(){t._canInitEmulator=!1;let n=Object.assign(Object.assign({},p1),e);try{let r=new Ml(t),s=yield Promise.race([i(),r.promise]);r.clearNetworkTimeout();let o=yield s.json();if("needConfirmation"in o)throw _o(t,"account-exists-with-different-credential",o);if(s.ok&&!("errorMessage"in o))return o;{let a=s.ok?o.errorMessage:o.error.message,[c,l]=a.split(" : ");if(c==="FEDERATED_USER_ID_ALREADY_LINKED")throw _o(t,"credential-already-in-use",o);if(c==="EMAIL_EXISTS")throw _o(t,"email-already-in-use",o);if(c==="USER_DISABLED")throw _o(t,"user-disabled",o);let u=n[c]||c.toLowerCase().replace(/[_\s]+/g,"-");if(l)throw zl(t,u,l);Ct(t,u)}}catch(r){if(r instanceof st)throw r;Ct(t,"network-request-failed",{message:String(r)})}})}function m1(s,o,a,c){return p(this,arguments,function*(t,e,i,n,r={}){let l=yield Ei(t,e,i,n,r);return"mfaPendingCredential"in l&&Ct(t,"multi-factor-auth-required",{_serverResponse:l}),l})}function kp(t,e,i,n){let r=`${e}${i}?${n}`;return t.config.emulator?ql(t.config,r):`${t.config.apiScheme}://${r}`}var Ml=class{constructor(e){this.auth=e,this.timer=null,this.promise=new Promise((i,n)=>{this.timer=setTimeout(()=>n(ot(this.auth,"network-request-failed")),g1.get())})}clearNetworkTimeout(){clearTimeout(this.timer)}};function _o(t,e,i){let n={appName:t.name};i.email&&(n.email=i.email),i.phoneNumber&&(n.phoneNumber=i.phoneNumber);let r=ot(t,e,n);return r.customData._tokenResponse=i,r}function _1(t,e){return p(this,null,function*(){return Ei(t,"POST","/v1/accounts:delete",e)})}function xp(t,e){return p(this,null,function*(){return Ei(t,"POST","/v1/accounts:lookup",e)})}function kr(t){if(t)try{let e=new Date(Number(t));if(!isNaN(e.getTime()))return e.toUTCString()}catch{}}function Kl(t,e=!1){return p(this,null,function*(){let i=Cn(t),n=yield i.getIdToken(e),r=Yl(n);C(r&&r.exp&&r.auth_time&&r.iat,i.auth,"internal-error");let s=typeof r.firebase=="object"?r.firebase:void 0,o=s?.sign_in_provider;return{claims:r,token:n,authTime:kr(Ol(r.auth_time)),issuedAtTime:kr(Ol(r.iat)),expirationTime:kr(Ol(r.exp)),signInProvider:o||null,signInSecondFactor:s?.sign_in_second_factor||null}})}function Ol(t){return Number(t)*1e3}function Yl(t){let[e,i,n]=t.split(".");if(e===void 0||i===void 0||n===void 0)return vo("JWT malformed, contained fewer than 3 sections"),null;try{let r=ol(i);return r?JSON.parse(r):(vo("Failed to decode base64 JWT payload"),null)}catch(r){return vo("Caught error parsing JWT payload as JSON",r?.toString()),null}}function _p(t){let e=Yl(t);return C(e,"internal-error"),C(typeof e.exp<"u","internal-error"),C(typeof e.iat<"u","internal-error"),Number(e.exp)-Number(e.iat)}function Fr(t,e,i=!1){return p(this,null,function*(){if(i)return e;try{return yield e}catch(n){throw n instanceof st&&v1(n)&&t.auth.currentUser===t&&(yield t.auth.signOut()),n}})}function v1({code:t}){return t==="auth/user-disabled"||t==="auth/user-token-expired"}var Nl=class{constructor(e){this.user=e,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}_start(){this.isRunning||(this.isRunning=!0,this.schedule())}_stop(){this.isRunning&&(this.isRunning=!1,this.timerId!==null&&clearTimeout(this.timerId))}getInterval(e){var i;if(e){let n=this.errorBackoff;return this.errorBackoff=Math.min(this.errorBackoff*2,96e4),n}else{this.errorBackoff=3e4;let r=((i=this.user.stsTokenManager.expirationTime)!==null&&i!==void 0?i:0)-Date.now()-3e5;return Math.max(0,r)}}schedule(e=!1){if(!this.isRunning)return;let i=this.getInterval(e);this.timerId=setTimeout(()=>p(this,null,function*(){yield this.iteration()}),i)}iteration(){return p(this,null,function*(){try{yield this.user.getIdToken(!0)}catch(e){e?.code==="auth/network-request-failed"&&this.schedule(!0);return}this.schedule()})}};var Lr=class{constructor(e,i){this.createdAt=e,this.lastLoginAt=i,this._initializeTime()}_initializeTime(){this.lastSignInTime=kr(this.lastLoginAt),this.creationTime=kr(this.createdAt)}_copy(e){this.createdAt=e.createdAt,this.lastLoginAt=e.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}};function To(t){return p(this,null,function*(){var e;let i=t.auth,n=yield t.getIdToken(),r=yield Fr(t,xp(i,{idToken:n}));C(r?.users.length,i,"internal-error");let s=r.users[0];t._notifyReloadListener(s);let o=!((e=s.providerUserInfo)===null||e===void 0)&&e.length?Fp(s.providerUserInfo):[],a=y1(t.providerData,o),c=t.isAnonymous,l=!(t.email&&s.passwordHash)&&!a?.length,u=c?l:!1,f={uid:s.localId,displayName:s.displayName||null,photoURL:s.photoUrl||null,email:s.email||null,emailVerified:s.emailVerified||!1,phoneNumber:s.phoneNumber||null,tenantId:s.tenantId||null,providerData:a,metadata:new Lr(s.createdAt,s.lastLoginAt),isAnonymous:u};Object.assign(t,f)})}function Ql(t){return p(this,null,function*(){let e=Cn(t);yield To(e),yield e.auth._persistUserIfCurrent(e),e.auth._notifyListenersIfCurrent(e)})}function y1(t,e){return[...t.filter(n=>!e.some(r=>r.providerId===n.providerId)),...e]}function Fp(t){return t.map(e=>{var{providerId:i}=e,n=Kr(e,["providerId"]);return{providerId:i,uid:n.rawId||"",displayName:n.displayName||null,email:n.email||null,phoneNumber:n.phoneNumber||null,photoURL:n.photoUrl||null}})}function b1(t,e){return p(this,null,function*(){let i=yield Np(t,{},()=>p(this,null,function*(){let n=gi({grant_type:"refresh_token",refresh_token:e}).slice(1),{tokenApiHost:r,apiKey:s}=t.config,o=kp(t,r,"/v1/token",`key=${s}`),a=yield t._getAdditionalHeaders();return a["Content-Type"]="application/x-www-form-urlencoded",Eo.fetch()(o,{method:"POST",headers:a,body:n})}));return{accessToken:i.access_token,expiresIn:i.expires_in,refreshToken:i.refresh_token}})}function w1(t,e){return p(this,null,function*(){return Ei(t,"POST","/v2/accounts:revokeToken",Jl(t,e))})}var xr=class t{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(e){C(e.idToken,"internal-error"),C(typeof e.idToken<"u","internal-error"),C(typeof e.refreshToken<"u","internal-error");let i="expiresIn"in e&&typeof e.expiresIn<"u"?Number(e.expiresIn):_p(e.idToken);this.updateTokensAndExpiration(e.idToken,e.refreshToken,i)}updateFromIdToken(e){C(e.length!==0,"internal-error");let i=_p(e);this.updateTokensAndExpiration(e,null,i)}getToken(e,i=!1){return p(this,null,function*(){return!i&&this.accessToken&&!this.isExpired?this.accessToken:(C(this.refreshToken,e,"user-token-expired"),this.refreshToken?(yield this.refresh(e,this.refreshToken),this.accessToken):null)})}clearRefreshToken(){this.refreshToken=null}refresh(e,i){return p(this,null,function*(){let{accessToken:n,refreshToken:r,expiresIn:s}=yield b1(e,i);this.updateTokensAndExpiration(n,r,Number(s))})}updateTokensAndExpiration(e,i,n){this.refreshToken=i||null,this.accessToken=e||null,this.expirationTime=Date.now()+n*1e3}static fromJSON(e,i){let{refreshToken:n,accessToken:r,expirationTime:s}=i,o=new t;return n&&(C(typeof n=="string","internal-error",{appName:e}),o.refreshToken=n),r&&(C(typeof r=="string","internal-error",{appName:e}),o.accessToken=r),s&&(C(typeof s=="number","internal-error",{appName:e}),o.expirationTime=s),o}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(e){this.accessToken=e.accessToken,this.refreshToken=e.refreshToken,this.expirationTime=e.expirationTime}_clone(){return Object.assign(new t,this.toJSON())}_performRefresh(){return Lt("not implemented")}};function rn(t,e){C(typeof t=="string"||typeof t>"u","internal-error",{appName:e})}var Di=class t{constructor(e){var{uid:i,auth:n,stsTokenManager:r}=e,s=Kr(e,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new Nl(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=i,this.auth=n,this.stsTokenManager=r,this.accessToken=r.accessToken,this.displayName=s.displayName||null,this.email=s.email||null,this.emailVerified=s.emailVerified||!1,this.phoneNumber=s.phoneNumber||null,this.photoURL=s.photoURL||null,this.isAnonymous=s.isAnonymous||!1,this.tenantId=s.tenantId||null,this.providerData=s.providerData?[...s.providerData]:[],this.metadata=new Lr(s.createdAt||void 0,s.lastLoginAt||void 0)}getIdToken(e){return p(this,null,function*(){let i=yield Fr(this,this.stsTokenManager.getToken(this.auth,e));return C(i,this.auth,"internal-error"),this.accessToken!==i&&(this.accessToken=i,yield this.auth._persistUserIfCurrent(this),this.auth._notifyListenersIfCurrent(this)),i})}getIdTokenResult(e){return Kl(this,e)}reload(){return Ql(this)}_assign(e){this!==e&&(C(this.uid===e.uid,this.auth,"internal-error"),this.displayName=e.displayName,this.photoURL=e.photoURL,this.email=e.email,this.emailVerified=e.emailVerified,this.phoneNumber=e.phoneNumber,this.isAnonymous=e.isAnonymous,this.tenantId=e.tenantId,this.providerData=e.providerData.map(i=>Object.assign({},i)),this.metadata._copy(e.metadata),this.stsTokenManager._assign(e.stsTokenManager))}_clone(e){let i=new t(Object.assign(Object.assign({},this),{auth:e,stsTokenManager:this.stsTokenManager._clone()}));return i.metadata._copy(this.metadata),i}_onReload(e){C(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=e,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(e){this.reloadListener?this.reloadListener(e):this.reloadUserInfo=e}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}_updateTokensIfNecessary(e,i=!1){return p(this,null,function*(){let n=!1;e.idToken&&e.idToken!==this.stsTokenManager.accessToken&&(this.stsTokenManager.updateFromServerResponse(e),n=!0),i&&(yield To(this)),yield this.auth._persistUserIfCurrent(this),n&&this.auth._notifyListenersIfCurrent(this)})}delete(){return p(this,null,function*(){if(Et(this.auth.app))return Promise.reject(Rn(this.auth));let e=yield this.getIdToken();return yield Fr(this,_1(this.auth,{idToken:e})),this.stsTokenManager.clearRefreshToken(),this.auth.signOut()})}toJSON(){return Object.assign(Object.assign({uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isAnonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map(e=>Object.assign({},e)),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId},this.metadata.toJSON()),{apiKey:this.auth.config.apiKey,appName:this.auth.name})}get refreshToken(){return this.stsTokenManager.refreshToken||""}static _fromJSON(e,i){var n,r,s,o,a,c,l,u;let f=(n=i.displayName)!==null&&n!==void 0?n:void 0,h=(r=i.email)!==null&&r!==void 0?r:void 0,g=(s=i.phoneNumber)!==null&&s!==void 0?s:void 0,v=(o=i.photoURL)!==null&&o!==void 0?o:void 0,E=(a=i.tenantId)!==null&&a!==void 0?a:void 0,_=(c=i._redirectEventId)!==null&&c!==void 0?c:void 0,y=(l=i.createdAt)!==null&&l!==void 0?l:void 0,P=(u=i.lastLoginAt)!==null&&u!==void 0?u:void 0,{uid:M,emailVerified:D,isAnonymous:N,providerData:O,stsTokenManager:B}=i;C(M&&B,e,"internal-error");let q=xr.fromJSON(this.name,B);C(typeof M=="string",e,"internal-error"),rn(f,e.name),rn(h,e.name),C(typeof D=="boolean",e,"internal-error"),C(typeof N=="boolean",e,"internal-error"),rn(g,e.name),rn(v,e.name),rn(E,e.name),rn(_,e.name),rn(y,e.name),rn(P,e.name);let J=new t({uid:M,auth:e,email:h,emailVerified:D,displayName:f,isAnonymous:N,photoURL:v,phoneNumber:g,tenantId:E,stsTokenManager:q,createdAt:y,lastLoginAt:P});return O&&Array.isArray(O)&&(J.providerData=O.map(Z=>Object.assign({},Z))),_&&(J._redirectEventId=_),J}static _fromIdTokenResponse(e,i,n=!1){return p(this,null,function*(){let r=new xr;r.updateFromServerResponse(i);let s=new t({uid:i.localId,auth:e,stsTokenManager:r,isAnonymous:n});return yield To(s),s})}static _fromGetAccountInfoResponse(e,i,n){return p(this,null,function*(){let r=i.users[0];C(r.localId!==void 0,"internal-error");let s=r.providerUserInfo!==void 0?Fp(r.providerUserInfo):[],o=!(r.email&&r.passwordHash)&&!s?.length,a=new xr;a.updateFromIdToken(n);let c=new t({uid:r.localId,auth:e,stsTokenManager:a,isAnonymous:o}),l={uid:r.localId,displayName:r.displayName||null,photoURL:r.photoUrl||null,email:r.email||null,emailVerified:r.emailVerified||!1,phoneNumber:r.phoneNumber||null,tenantId:r.tenantId||null,providerData:s,metadata:new Lr(r.createdAt,r.lastLoginAt),isAnonymous:!(r.email&&r.passwordHash)&&!s?.length};return Object.assign(c,l),c})}};var vp=new Map;function Bt(t){Vt(t instanceof Function,"Expected a class definition");let e=vp.get(t);return e?(Vt(e instanceof t,"Instance stored in cache mismatched with class"),e):(e=new t,vp.set(t,e),e)}var D1=(()=>{class t{constructor(){this.type="NONE",this.storage={}}_isAvailable(){return p(this,null,function*(){return!0})}_set(i,n){return p(this,null,function*(){this.storage[i]=n})}_get(i){return p(this,null,function*(){let n=this.storage[i];return n===void 0?null:n})}_remove(i){return p(this,null,function*(){delete this.storage[i]})}_addListener(i,n){}_removeListener(i,n){}}return t.type="NONE",t})(),kl=D1;function yo(t,e,i){return`firebase:${t}:${e}:${i}`}var Co=class t{constructor(e,i,n){this.persistence=e,this.auth=i,this.userKey=n;let{config:r,name:s}=this.auth;this.fullUserKey=yo(this.userKey,r.apiKey,s),this.fullPersistenceKey=yo("persistence",r.apiKey,s),this.boundEventHandler=i._onStorageEvent.bind(i),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(e){return this.persistence._set(this.fullUserKey,e.toJSON())}getCurrentUser(){return p(this,null,function*(){let e=yield this.persistence._get(this.fullUserKey);return e?Di._fromJSON(this.auth,e):null})}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}setPersistence(e){return p(this,null,function*(){if(this.persistence===e)return;let i=yield this.getCurrentUser();if(yield this.removeCurrentUser(),this.persistence=e,i)return this.setCurrentUser(i)})}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static create(e,i,n="authUser"){return p(this,null,function*(){if(!i.length)return new t(Bt(kl),e,n);let r=(yield Promise.all(i.map(l=>p(this,null,function*(){if(yield l._isAvailable())return l})))).filter(l=>l),s=r[0]||Bt(kl),o=yo(n,e.config.apiKey,e.name),a=null;for(let l of i)try{let u=yield l._get(o);if(u){let f=Di._fromJSON(e,u);l!==s&&(a=f),s=l;break}}catch{}let c=r.filter(l=>l._shouldAllowMigration);return!s._shouldAllowMigration||!c.length?new t(s,e,n):(s=c[0],a&&(yield s._set(o,a.toJSON())),yield Promise.all(i.map(l=>p(this,null,function*(){if(l!==s)try{yield l._remove(o)}catch{}}))),new t(s,e,n))})}};function yp(t){let e=t.toLowerCase();if(e.includes("opera/")||e.includes("opr/")||e.includes("opios/"))return"Opera";if(Vp(e))return"IEMobile";if(e.includes("msie")||e.includes("trident/"))return"IE";if(e.includes("edge/"))return"Edge";if(Lp(e))return"Firefox";if(e.includes("silk/"))return"Silk";if(jp(e))return"Blackberry";if($p(e))return"Webos";if(Zl(e))return"Safari";if((e.includes("chrome/")||Bp(e))&&!e.includes("edge/"))return"Chrome";if(Up(e))return"Android";{let i=/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/,n=t.match(i);if(n?.length===2)return n[1]}return"Other"}function Lp(t=ge()){return/firefox\//i.test(t)}function Zl(t=ge()){let e=t.toLowerCase();return e.includes("safari/")&&!e.includes("chrome/")&&!e.includes("crios/")&&!e.includes("android")}function Bp(t=ge()){return/crios\//i.test(t)}function Vp(t=ge()){return/iemobile/i.test(t)}function Up(t=ge()){return/android/i.test(t)}function jp(t=ge()){return/blackberry/i.test(t)}function $p(t=ge()){return/webos/i.test(t)}function ko(t=ge()){return/iphone|ipad|ipod/i.test(t)||/macintosh/i.test(t)&&/mobile/i.test(t)}function E1(t=ge()){var e;return ko(t)&&!!(!((e=window.navigator)===null||e===void 0)&&e.standalone)}function T1(){return Yf()&&document.documentMode===10}function Hp(t=ge()){return ko(t)||Up(t)||$p(t)||jp(t)||/windows phone/i.test(t)||Vp(t)}function C1(){try{return!!(window&&window!==window.top)}catch{return!1}}function Gp(t,e=[]){let i;switch(t){case"Browser":i=yp(ge());break;case"Worker":i=`${yp(ge())}-${t}`;break;default:i=t}let n=e.length?e.join(","):"FirebaseCore-web";return`${i}/JsCore/${vi}/${n}`}var xl=class{constructor(e){this.auth=e,this.queue=[]}pushCallback(e,i){let n=s=>new Promise((o,a)=>{try{let c=e(s);o(c)}catch(c){a(c)}});n.onAbort=i,this.queue.push(n);let r=this.queue.length-1;return()=>{this.queue[r]=()=>Promise.resolve()}}runMiddleware(e){return p(this,null,function*(){if(this.auth.currentUser===e)return;let i=[];try{for(let n of this.queue)yield n(e),n.onAbort&&i.push(n.onAbort)}catch(n){i.reverse();for(let r of i)try{r()}catch{}throw this.auth._errorFactory.create("login-blocked",{originalMessage:n?.message})}})}};function I1(i){return p(this,arguments,function*(t,e={}){return Ei(t,"GET","/v2/passwordPolicy",Jl(t,e))})}var S1=6,Fl=class{constructor(e){var i,n,r,s;let o=e.customStrengthOptions;this.customStrengthOptions={},this.customStrengthOptions.minPasswordLength=(i=o.minPasswordLength)!==null&&i!==void 0?i:S1,o.maxPasswordLength&&(this.customStrengthOptions.maxPasswordLength=o.maxPasswordLength),o.containsLowercaseCharacter!==void 0&&(this.customStrengthOptions.containsLowercaseLetter=o.containsLowercaseCharacter),o.containsUppercaseCharacter!==void 0&&(this.customStrengthOptions.containsUppercaseLetter=o.containsUppercaseCharacter),o.containsNumericCharacter!==void 0&&(this.customStrengthOptions.containsNumericCharacter=o.containsNumericCharacter),o.containsNonAlphanumericCharacter!==void 0&&(this.customStrengthOptions.containsNonAlphanumericCharacter=o.containsNonAlphanumericCharacter),this.enforcementState=e.enforcementState,this.enforcementState==="ENFORCEMENT_STATE_UNSPECIFIED"&&(this.enforcementState="OFF"),this.allowedNonAlphanumericCharacters=(r=(n=e.allowedNonAlphanumericCharacters)===null||n===void 0?void 0:n.join(""))!==null&&r!==void 0?r:"",this.forceUpgradeOnSignin=(s=e.forceUpgradeOnSignin)!==null&&s!==void 0?s:!1,this.schemaVersion=e.schemaVersion}validatePassword(e){var i,n,r,s,o,a;let c={isValid:!0,passwordPolicy:this};return this.validatePasswordLengthOptions(e,c),this.validatePasswordCharacterOptions(e,c),c.isValid&&(c.isValid=(i=c.meetsMinPasswordLength)!==null&&i!==void 0?i:!0),c.isValid&&(c.isValid=(n=c.meetsMaxPasswordLength)!==null&&n!==void 0?n:!0),c.isValid&&(c.isValid=(r=c.containsLowercaseLetter)!==null&&r!==void 0?r:!0),c.isValid&&(c.isValid=(s=c.containsUppercaseLetter)!==null&&s!==void 0?s:!0),c.isValid&&(c.isValid=(o=c.containsNumericCharacter)!==null&&o!==void 0?o:!0),c.isValid&&(c.isValid=(a=c.containsNonAlphanumericCharacter)!==null&&a!==void 0?a:!0),c}validatePasswordLengthOptions(e,i){let n=this.customStrengthOptions.minPasswordLength,r=this.customStrengthOptions.maxPasswordLength;n&&(i.meetsMinPasswordLength=e.length>=n),r&&(i.meetsMaxPasswordLength=e.length<=r)}validatePasswordCharacterOptions(e,i){this.updatePasswordCharacterOptionsStatuses(i,!1,!1,!1,!1);let n;for(let r=0;r<e.length;r++)n=e.charAt(r),this.updatePasswordCharacterOptionsStatuses(i,n>="a"&&n<="z",n>="A"&&n<="Z",n>="0"&&n<="9",this.allowedNonAlphanumericCharacters.includes(n))}updatePasswordCharacterOptionsStatuses(e,i,n,r,s){this.customStrengthOptions.containsLowercaseLetter&&(e.containsLowercaseLetter||(e.containsLowercaseLetter=i)),this.customStrengthOptions.containsUppercaseLetter&&(e.containsUppercaseLetter||(e.containsUppercaseLetter=n)),this.customStrengthOptions.containsNumericCharacter&&(e.containsNumericCharacter||(e.containsNumericCharacter=r)),this.customStrengthOptions.containsNonAlphanumericCharacter&&(e.containsNonAlphanumericCharacter||(e.containsNonAlphanumericCharacter=s))}};var Ll=class{constructor(e,i,n,r){this.app=e,this.heartbeatServiceProvider=i,this.appCheckServiceProvider=n,this.config=r,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new Io(this),this.idTokenSubscription=new Io(this),this.beforeStateQueue=new xl(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION=1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=Mp,this._agentRecaptchaConfig=null,this._tenantRecaptchaConfigs={},this._projectPasswordPolicy=null,this._tenantPasswordPolicies={},this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=e.name,this.clientVersion=r.sdkClientVersion}_initializeWithPersistence(e,i){return i&&(this._popupRedirectResolver=Bt(i)),this._initializationPromise=this.queue(()=>p(this,null,function*(){var n,r;if(!this._deleted&&(this.persistenceManager=yield Co.create(this,e),!this._deleted)){if(!((n=this._popupRedirectResolver)===null||n===void 0)&&n._shouldInitProactively)try{yield this._popupRedirectResolver._initialize(this)}catch{}yield this.initializeCurrentUser(i),this.lastNotifiedUid=((r=this.currentUser)===null||r===void 0?void 0:r.uid)||null,!this._deleted&&(this._isInitialized=!0)}})),this._initializationPromise}_onStorageEvent(){return p(this,null,function*(){if(this._deleted)return;let e=yield this.assertedPersistence.getCurrentUser();if(!(!this.currentUser&&!e)){if(this.currentUser&&e&&this.currentUser.uid===e.uid){this._currentUser._assign(e),yield this.currentUser.getIdToken();return}yield this._updateCurrentUser(e,!0)}})}initializeCurrentUserFromIdToken(e){return p(this,null,function*(){try{let i=yield xp(this,{idToken:e}),n=yield Di._fromGetAccountInfoResponse(this,i,e);yield this.directlySetCurrentUser(n)}catch(i){console.warn("FirebaseServerApp could not login user with provided authIdToken: ",i),yield this.directlySetCurrentUser(null)}})}initializeCurrentUser(e){return p(this,null,function*(){var i;if(Et(this.app)){let o=this.app.settings.authIdToken;return o?new Promise(a=>{setTimeout(()=>this.initializeCurrentUserFromIdToken(o).then(a,a))}):this.directlySetCurrentUser(null)}let n=yield this.assertedPersistence.getCurrentUser(),r=n,s=!1;if(e&&this.config.authDomain){yield this.getOrInitRedirectPersistenceManager();let o=(i=this.redirectUser)===null||i===void 0?void 0:i._redirectEventId,a=r?._redirectEventId,c=yield this.tryRedirectSignIn(e);(!o||o===a)&&c?.user&&(r=c.user,s=!0)}if(!r)return this.directlySetCurrentUser(null);if(!r._redirectEventId){if(s)try{yield this.beforeStateQueue.runMiddleware(r)}catch(o){r=n,this._popupRedirectResolver._overrideRedirectResult(this,()=>Promise.reject(o))}return r?this.reloadAndSetCurrentUserOrClear(r):this.directlySetCurrentUser(null)}return C(this._popupRedirectResolver,this,"argument-error"),yield this.getOrInitRedirectPersistenceManager(),this.redirectUser&&this.redirectUser._redirectEventId===r._redirectEventId?this.directlySetCurrentUser(r):this.reloadAndSetCurrentUserOrClear(r)})}tryRedirectSignIn(e){return p(this,null,function*(){let i=null;try{i=yield this._popupRedirectResolver._completeRedirectFn(this,e,!0)}catch{yield this._setRedirectUser(null)}return i})}reloadAndSetCurrentUserOrClear(e){return p(this,null,function*(){try{yield To(e)}catch(i){if(i?.code!=="auth/network-request-failed")return this.directlySetCurrentUser(null)}return this.directlySetCurrentUser(e)})}useDeviceLanguage(){this.languageCode=f1()}_delete(){return p(this,null,function*(){this._deleted=!0})}updateCurrentUser(e){return p(this,null,function*(){if(Et(this.app))return Promise.reject(Rn(this));let i=e?Cn(e):null;return i&&C(i.auth.config.apiKey===this.config.apiKey,this,"invalid-user-token"),this._updateCurrentUser(i&&i._clone(this))})}_updateCurrentUser(e,i=!1){return p(this,null,function*(){if(!this._deleted)return e&&C(this.tenantId===e.tenantId,this,"tenant-id-mismatch"),i||(yield this.beforeStateQueue.runMiddleware(e)),this.queue(()=>p(this,null,function*(){yield this.directlySetCurrentUser(e),this.notifyAuthListeners()}))})}signOut(){return p(this,null,function*(){return Et(this.app)?Promise.reject(Rn(this)):(yield this.beforeStateQueue.runMiddleware(null),(this.redirectPersistenceManager||this._popupRedirectResolver)&&(yield this._setRedirectUser(null)),this._updateCurrentUser(null,!0))})}setPersistence(e){return Et(this.app)?Promise.reject(Rn(this)):this.queue(()=>p(this,null,function*(){yield this.assertedPersistence.setPersistence(Bt(e))}))}_getRecaptchaConfig(){return this.tenantId==null?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}validatePassword(e){return p(this,null,function*(){this._getPasswordPolicyInternal()||(yield this._updatePasswordPolicy());let i=this._getPasswordPolicyInternal();return i.schemaVersion!==this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION?Promise.reject(this._errorFactory.create("unsupported-password-policy-schema-version",{})):i.validatePassword(e)})}_getPasswordPolicyInternal(){return this.tenantId===null?this._projectPasswordPolicy:this._tenantPasswordPolicies[this.tenantId]}_updatePasswordPolicy(){return p(this,null,function*(){let e=yield I1(this),i=new Fl(e);this.tenantId===null?this._projectPasswordPolicy=i:this._tenantPasswordPolicies[this.tenantId]=i})}_getPersistence(){return this.assertedPersistence.persistence.type}_updateErrorMap(e){this._errorFactory=new Ft("auth","Firebase",e())}onAuthStateChanged(e,i,n){return this.registerStateListener(this.authStateSubscription,e,i,n)}beforeAuthStateChanged(e,i){return this.beforeStateQueue.pushCallback(e,i)}onIdTokenChanged(e,i,n){return this.registerStateListener(this.idTokenSubscription,e,i,n)}authStateReady(){return new Promise((e,i)=>{if(this.currentUser)e();else{let n=this.onAuthStateChanged(()=>{n(),e()},i)}})}revokeAccessToken(e){return p(this,null,function*(){if(this.currentUser){let i=yield this.currentUser.getIdToken(),n={providerId:"apple.com",tokenType:"ACCESS_TOKEN",token:e,idToken:i};this.tenantId!=null&&(n.tenantId=this.tenantId),yield w1(this,n)}})}toJSON(){var e;return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:(e=this._currentUser)===null||e===void 0?void 0:e.toJSON()}}_setRedirectUser(e,i){return p(this,null,function*(){let n=yield this.getOrInitRedirectPersistenceManager(i);return e===null?n.removeCurrentUser():n.setCurrentUser(e)})}getOrInitRedirectPersistenceManager(e){return p(this,null,function*(){if(!this.redirectPersistenceManager){let i=e&&Bt(e)||this._popupRedirectResolver;C(i,this,"argument-error"),this.redirectPersistenceManager=yield Co.create(this,[Bt(i._redirectPersistence)],"redirectUser"),this.redirectUser=yield this.redirectPersistenceManager.getCurrentUser()}return this.redirectPersistenceManager})}_redirectUserForId(e){return p(this,null,function*(){var i,n;return this._isInitialized&&(yield this.queue(()=>p(this,null,function*(){}))),((i=this._currentUser)===null||i===void 0?void 0:i._redirectEventId)===e?this._currentUser:((n=this.redirectUser)===null||n===void 0?void 0:n._redirectEventId)===e?this.redirectUser:null})}_persistUserIfCurrent(e){return p(this,null,function*(){if(e===this.currentUser)return this.queue(()=>p(this,null,function*(){return this.directlySetCurrentUser(e)}))})}_notifyListenersIfCurrent(e){e===this.currentUser&&this.notifyAuthListeners()}_key(){return`${this.config.authDomain}:${this.config.apiKey}:${this.name}`}_startProactiveRefresh(){this.isProactiveRefreshEnabled=!0,this.currentUser&&this._currentUser._startProactiveRefresh()}_stopProactiveRefresh(){this.isProactiveRefreshEnabled=!1,this.currentUser&&this._currentUser._stopProactiveRefresh()}get _currentUser(){return this.currentUser}notifyAuthListeners(){var e,i;if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);let n=(i=(e=this.currentUser)===null||e===void 0?void 0:e.uid)!==null&&i!==void 0?i:null;this.lastNotifiedUid!==n&&(this.lastNotifiedUid=n,this.authStateSubscription.next(this.currentUser))}registerStateListener(e,i,n,r){if(this._deleted)return()=>{};let s=typeof i=="function"?i:i.next.bind(i),o=!1,a=this._isInitialized?Promise.resolve():this._initializationPromise;if(C(a,this,"internal-error"),a.then(()=>{o||s(this.currentUser)}),typeof i=="function"){let c=e.addObserver(i,n,r);return()=>{o=!0,c()}}else{let c=e.addObserver(i);return()=>{o=!0,c()}}}directlySetCurrentUser(e){return p(this,null,function*(){this.currentUser&&this.currentUser!==e&&this._currentUser._stopProactiveRefresh(),e&&this.isProactiveRefreshEnabled&&e._startProactiveRefresh(),this.currentUser=e,e?yield this.assertedPersistence.setCurrentUser(e):yield this.assertedPersistence.removeCurrentUser()})}queue(e){return this.operations=this.operations.then(e,e),this.operations}get assertedPersistence(){return C(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(e){!e||this.frameworks.includes(e)||(this.frameworks.push(e),this.frameworks.sort(),this.clientVersion=Gp(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}_getAdditionalHeaders(){return p(this,null,function*(){var e;let i={"X-Client-Version":this.clientVersion};this.app.options.appId&&(i["X-Firebase-gmpid"]=this.app.options.appId);let n=yield(e=this.heartbeatServiceProvider.getImmediate({optional:!0}))===null||e===void 0?void 0:e.getHeartbeatsHeader();n&&(i["X-Firebase-Client"]=n);let r=yield this._getAppCheckToken();return r&&(i["X-Firebase-AppCheck"]=r),i})}_getAppCheckToken(){return p(this,null,function*(){var e;let i=yield(e=this.appCheckServiceProvider.getImmediate({optional:!0}))===null||e===void 0?void 0:e.getToken();return i?.error&&l1(`Error while retrieving App Check token: ${i.error}`),i?.token})}};function xo(t){return Cn(t)}var Io=class{constructor(e){this.auth=e,this.observer=null,this.addObserver=ep(i=>this.observer=i)}get next(){return C(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}};var Xl={loadJS(){return p(this,null,function*(){throw new Error("Unable to load external scripts")})},recaptchaV2Script:"",recaptchaEnterpriseScript:"",gapiScript:""};function A1(t){Xl=t}function O1(t){return Xl.loadJS(t)}function R1(){return Xl.gapiScript}function zp(t){return`__${t}${Math.floor(Math.random()*1e6)}`}function eu(t,e){let i=Tl(t,"auth");if(i.isInitialized()){let r=i.getImmediate(),s=i.getOptions();if(pi(s,e??{}))return r;Ct(r,"already-initialized")}return i.initialize({options:e})}function P1(t,e){let i=e?.persistence||[],n=(Array.isArray(i)?i:[i]).map(Bt);e?.errorMap&&t._updateErrorMap(e.errorMap),t._initializeWithPersistence(n,e?.popupRedirectResolver)}function tu(t,e,i){let n=xo(t);C(n._canInitEmulator,n,"emulator-config-failed"),C(/^https?:\/\//.test(e),n,"invalid-emulator-scheme");let r=!!i?.disableWarnings,s=Wp(e),{host:o,port:a}=M1(e),c=a===null?"":`:${a}`;n.config.emulator={url:`${s}//${o}${c}/`},n.settings.appVerificationDisabledForTesting=!0,n.emulatorConfig=Object.freeze({host:o,port:a,protocol:s.replace(":",""),options:Object.freeze({disableWarnings:r})}),r||N1()}function Wp(t){let e=t.indexOf(":");return e<0?"":t.substr(0,e+1)}function M1(t){let e=Wp(t),i=/(\/\/)?([^?#/]+)/.exec(t.substr(e.length));if(!i)return{host:"",port:null};let n=i[2].split("@").pop()||"",r=/^(\[[^\]]+\])(:|$)/.exec(n);if(r){let s=r[1];return{host:s,port:bp(n.substr(s.length+1))}}else{let[s,o]=n.split(":");return{host:s,port:bp(o)}}}function bp(t){if(!t)return null;let e=Number(t);return isNaN(e)?null:e}function N1(){function t(){let e=document.createElement("p"),i=e.style;e.innerText="Running in emulator mode. Do not use with production credentials.",i.position="fixed",i.width="100%",i.backgroundColor="#ffffff",i.border=".1em solid #000000",i.color="#b50000",i.bottom="0px",i.left="0px",i.margin="0px",i.zIndex="10000",i.textAlign="center",e.classList.add("firebase-emulator-warning"),document.body.appendChild(e)}typeof console<"u"&&typeof console.info=="function"&&console.info("WARNING: You are using the Auth Emulator, which is intended for local testing only. Do not use with production credentials."),typeof window<"u"&&typeof document<"u"&&(document.readyState==="loading"?window.addEventListener("DOMContentLoaded",t):t())}var Br=class{constructor(e,i){this.providerId=e,this.signInMethod=i}toJSON(){return Lt("not implemented")}_getIdTokenResponse(e){return Lt("not implemented")}_linkToIdToken(e,i){return Lt("not implemented")}_getReauthenticationResolver(e){return Lt("not implemented")}};function wi(t,e){return p(this,null,function*(){return m1(t,"POST","/v1/accounts:signInWithIdp",Jl(t,e))})}var k1="http://localhost",So=class t extends Br{constructor(){super(...arguments),this.pendingToken=null}static _fromParams(e){let i=new t(e.providerId,e.signInMethod);return e.idToken||e.accessToken?(e.idToken&&(i.idToken=e.idToken),e.accessToken&&(i.accessToken=e.accessToken),e.nonce&&!e.pendingToken&&(i.nonce=e.nonce),e.pendingToken&&(i.pendingToken=e.pendingToken)):e.oauthToken&&e.oauthTokenSecret?(i.accessToken=e.oauthToken,i.secret=e.oauthTokenSecret):Ct("argument-error"),i}toJSON(){return{idToken:this.idToken,accessToken:this.accessToken,secret:this.secret,nonce:this.nonce,pendingToken:this.pendingToken,providerId:this.providerId,signInMethod:this.signInMethod}}static fromJSON(e){let i=typeof e=="string"?JSON.parse(e):e,{providerId:n,signInMethod:r}=i,s=Kr(i,["providerId","signInMethod"]);if(!n||!r)return null;let o=new t(n,r);return o.idToken=s.idToken||void 0,o.accessToken=s.accessToken||void 0,o.secret=s.secret,o.nonce=s.nonce,o.pendingToken=s.pendingToken||null,o}_getIdTokenResponse(e){let i=this.buildRequest();return wi(e,i)}_linkToIdToken(e,i){let n=this.buildRequest();return n.idToken=i,wi(e,n)}_getReauthenticationResolver(e){let i=this.buildRequest();return i.autoCreate=!1,wi(e,i)}buildRequest(){let e={requestUri:k1,returnSecureToken:!0};if(this.pendingToken)e.pendingToken=this.pendingToken;else{let i={};this.idToken&&(i.id_token=this.idToken),this.accessToken&&(i.access_token=this.accessToken),this.secret&&(i.oauth_token_secret=this.secret),i.providerId=this.providerId,this.nonce&&!this.pendingToken&&(i.nonce=this.nonce),e.postBody=gi(i)}return e}};var Vr=class{constructor(e){this.providerId=e,this.defaultLanguageCode=null,this.customParameters={}}setDefaultLanguage(e){this.defaultLanguageCode=e}setCustomParameters(e){return this.customParameters=e,this}getCustomParameters(){return this.customParameters}};var Ao=class extends Vr{constructor(){super(...arguments),this.scopes=[]}addScope(e){return this.scopes.includes(e)||this.scopes.push(e),this}getScopes(){return[...this.scopes]}};var $r=(()=>{class t extends Ao{constructor(){super("google.com"),this.addScope("profile")}static credential(i,n){return So._fromParams({providerId:t.PROVIDER_ID,signInMethod:t.GOOGLE_SIGN_IN_METHOD,idToken:i,accessToken:n})}static credentialFromResult(i){return t.credentialFromTaggedObject(i)}static credentialFromError(i){return t.credentialFromTaggedObject(i.customData||{})}static credentialFromTaggedObject({_tokenResponse:i}){if(!i)return null;let{oauthIdToken:n,oauthAccessToken:r}=i;if(!n&&!r)return null;try{return t.credential(n,r)}catch{return null}}}t.GOOGLE_SIGN_IN_METHOD="google.com",t.PROVIDER_ID="google.com";return t})();var Ur=class t{constructor(e){this.user=e.user,this.providerId=e.providerId,this._tokenResponse=e._tokenResponse,this.operationType=e.operationType}static _fromIdTokenResponse(e,i,n,r=!1){return p(this,null,function*(){let s=yield Di._fromIdTokenResponse(e,n,r),o=wp(n);return new t({user:s,providerId:o,_tokenResponse:n,operationType:i})})}static _forOperation(e,i,n){return p(this,null,function*(){yield e._updateTokensIfNecessary(n,!0);let r=wp(n);return new t({user:e,providerId:r,_tokenResponse:n,operationType:i})})}};function wp(t){return t.providerId?t.providerId:"phoneNumber"in t?"phone":null}var Bl=class t extends st{constructor(e,i,n,r){var s;super(i.code,i.message),this.operationType=n,this.user=r,Object.setPrototypeOf(this,t.prototype),this.customData={appName:e.name,tenantId:(s=e.tenantId)!==null&&s!==void 0?s:void 0,_serverResponse:i.customData._serverResponse,operationType:n}}static _fromErrorAndOperation(e,i,n,r){return new t(e,i,n,r)}};function qp(t,e,i,n){return(e==="reauthenticate"?i._getReauthenticationResolver(t):i._getIdTokenResponse(t)).catch(s=>{throw s.code==="auth/multi-factor-auth-required"?Bl._fromErrorAndOperation(t,s,e,n):s})}function x1(t,e,i=!1){return p(this,null,function*(){let n=yield Fr(t,e._linkToIdToken(t.auth,yield t.getIdToken()),i);return Ur._forOperation(t,"link",n)})}function F1(t,e,i=!1){return p(this,null,function*(){let{auth:n}=t;if(Et(n.app))return Promise.reject(Rn(n));let r="reauthenticate";try{let s=yield Fr(t,qp(n,r,e,t),i);C(s.idToken,n,"internal-error");let o=Yl(s.idToken);C(o,n,"internal-error");let{sub:a}=o;return C(t.uid===a,n,"user-mismatch"),Ur._forOperation(t,r,s)}catch(s){throw s?.code==="auth/user-not-found"&&Ct(n,"user-mismatch"),s}})}function L1(t,e,i=!1){return p(this,null,function*(){if(Et(t.app))return Promise.reject(Rn(t));let n="signIn",r=yield qp(t,n,e),s=yield Ur._fromIdTokenResponse(t,n,r);return i||(yield t._updateCurrentUser(s.user)),s})}function Hr(t,e,i,n){return Cn(t).onIdTokenChanged(e,i,n)}function nu(t,e,i){return Cn(t).beforeAuthStateChanged(e,i)}var Oo="__sak";var Ro=class{constructor(e,i){this.storageRetriever=e,this.type=i}_isAvailable(){try{return this.storage?(this.storage.setItem(Oo,"1"),this.storage.removeItem(Oo),Promise.resolve(!0)):Promise.resolve(!1)}catch{return Promise.resolve(!1)}}_set(e,i){return this.storage.setItem(e,JSON.stringify(i)),Promise.resolve()}_get(e){let i=this.storage.getItem(e);return Promise.resolve(i?JSON.parse(i):null)}_remove(e){return this.storage.removeItem(e),Promise.resolve()}get storage(){return this.storageRetriever()}};function B1(){let t=ge();return Zl(t)||ko(t)}var V1=1e3,U1=10,j1=(()=>{class t extends Ro{constructor(){super(()=>window.localStorage,"LOCAL"),this.boundEventHandler=(i,n)=>this.onStorageEvent(i,n),this.listeners={},this.localCache={},this.pollTimer=null,this.safariLocalStorageNotSynced=B1()&&C1(),this.fallbackToPolling=Hp(),this._shouldAllowMigration=!0}forAllChangedKeys(i){for(let n of Object.keys(this.listeners)){let r=this.storage.getItem(n),s=this.localCache[n];r!==s&&i(n,s,r)}}onStorageEvent(i,n=!1){if(!i.key){this.forAllChangedKeys((a,c,l)=>{this.notifyListeners(a,l)});return}let r=i.key;if(n?this.detachListener():this.stopPolling(),this.safariLocalStorageNotSynced){let a=this.storage.getItem(r);if(i.newValue!==a)i.newValue!==null?this.storage.setItem(r,i.newValue):this.storage.removeItem(r);else if(this.localCache[r]===i.newValue&&!n)return}let s=()=>{let a=this.storage.getItem(r);!n&&this.localCache[r]===a||this.notifyListeners(r,a)},o=this.storage.getItem(r);T1()&&o!==i.newValue&&i.newValue!==i.oldValue?setTimeout(s,U1):s()}notifyListeners(i,n){this.localCache[i]=n;let r=this.listeners[i];if(r)for(let s of Array.from(r))s(n&&JSON.parse(n))}startPolling(){this.stopPolling(),this.pollTimer=setInterval(()=>{this.forAllChangedKeys((i,n,r)=>{this.onStorageEvent(new StorageEvent("storage",{key:i,oldValue:n,newValue:r}),!0)})},V1)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}attachListener(){window.addEventListener("storage",this.boundEventHandler)}detachListener(){window.removeEventListener("storage",this.boundEventHandler)}_addListener(i,n){Object.keys(this.listeners).length===0&&(this.fallbackToPolling?this.startPolling():this.attachListener()),this.listeners[i]||(this.listeners[i]=new Set,this.localCache[i]=this.storage.getItem(i)),this.listeners[i].add(n)}_removeListener(i,n){this.listeners[i]&&(this.listeners[i].delete(n),this.listeners[i].size===0&&delete this.listeners[i]),Object.keys(this.listeners).length===0&&(this.detachListener(),this.stopPolling())}_set(i,n){return p(this,null,function*(){yield un(t.prototype,this,"_set").call(this,i,n),this.localCache[i]=JSON.stringify(n)})}_get(i){return p(this,null,function*(){let n=yield un(t.prototype,this,"_get").call(this,i);return this.localCache[i]=JSON.stringify(n),n})}_remove(i){return p(this,null,function*(){yield un(t.prototype,this,"_remove").call(this,i),delete this.localCache[i]})}}return t.type="LOCAL",t})(),Jp=j1;var $1=(()=>{class t extends Ro{constructor(){super(()=>window.sessionStorage,"SESSION")}_addListener(i,n){}_removeListener(i,n){}}return t.type="SESSION",t})(),iu=$1;function H1(t){return Promise.all(t.map(e=>p(this,null,function*(){try{return{fulfilled:!0,value:yield e}}catch(i){return{fulfilled:!1,reason:i}}})))}var G1=(()=>{class t{constructor(i){this.eventTarget=i,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}static _getInstance(i){let n=this.receivers.find(s=>s.isListeningto(i));if(n)return n;let r=new t(i);return this.receivers.push(r),r}isListeningto(i){return this.eventTarget===i}handleEvent(i){return p(this,null,function*(){let n=i,{eventId:r,eventType:s,data:o}=n.data,a=this.handlersMap[s];if(!a?.size)return;n.ports[0].postMessage({status:"ack",eventId:r,eventType:s});let c=Array.from(a).map(u=>p(this,null,function*(){return u(n.origin,o)})),l=yield H1(c);n.ports[0].postMessage({status:"done",eventId:r,eventType:s,response:l})})}_subscribe(i,n){Object.keys(this.handlersMap).length===0&&this.eventTarget.addEventListener("message",this.boundEventHandler),this.handlersMap[i]||(this.handlersMap[i]=new Set),this.handlersMap[i].add(n)}_unsubscribe(i,n){this.handlersMap[i]&&n&&this.handlersMap[i].delete(n),(!n||this.handlersMap[i].size===0)&&delete this.handlersMap[i],Object.keys(this.handlersMap).length===0&&this.eventTarget.removeEventListener("message",this.boundEventHandler)}}t.receivers=[];return t})();function ru(t="",e=10){let i="";for(let n=0;n<e;n++)i+=Math.floor(Math.random()*10);return t+i}var Vl=class{constructor(e){this.target=e,this.handlers=new Set}removeMessageHandler(e){e.messageChannel&&(e.messageChannel.port1.removeEventListener("message",e.onMessage),e.messageChannel.port1.close()),this.handlers.delete(e)}_send(e,i,n=50){return p(this,null,function*(){let r=typeof MessageChannel<"u"?new MessageChannel:null;if(!r)throw new Error("connection_unavailable");let s,o;return new Promise((a,c)=>{let l=ru("",20);r.port1.start();let u=setTimeout(()=>{c(new Error("unsupported_event"))},n);o={messageChannel:r,onMessage(f){let h=f;if(h.data.eventId===l)switch(h.data.status){case"ack":clearTimeout(u),s=setTimeout(()=>{c(new Error("timeout"))},3e3);break;case"done":clearTimeout(s),a(h.data.response);break;default:clearTimeout(u),clearTimeout(s),c(new Error("invalid_response"));break}}},this.handlers.add(o),r.port1.addEventListener("message",o.onMessage),this.target.postMessage({eventType:e,eventId:l,data:i},[r.port2])}).finally(()=>{o&&this.removeMessageHandler(o)})})}};function Tt(){return window}function z1(t){Tt().location.href=t}function Kp(){return typeof Tt().WorkerGlobalScope<"u"&&typeof Tt().importScripts=="function"}function W1(){return p(this,null,function*(){if(!navigator?.serviceWorker)return null;try{return(yield navigator.serviceWorker.ready).active}catch{return null}})}function q1(){var t;return((t=navigator?.serviceWorker)===null||t===void 0?void 0:t.controller)||null}function J1(){return Kp()?self:null}var Yp="firebaseLocalStorageDb",K1=1,Po="firebaseLocalStorage",Qp="fbase_key",Mn=class{constructor(e){this.request=e}toPromise(){return new Promise((e,i)=>{this.request.addEventListener("success",()=>{e(this.request.result)}),this.request.addEventListener("error",()=>{i(this.request.error)})})}};function Fo(t,e){return t.transaction([Po],e?"readwrite":"readonly").objectStore(Po)}function Y1(){let t=indexedDB.deleteDatabase(Yp);return new Mn(t).toPromise()}function Ul(){let t=indexedDB.open(Yp,K1);return new Promise((e,i)=>{t.addEventListener("error",()=>{i(t.error)}),t.addEventListener("upgradeneeded",()=>{let n=t.result;try{n.createObjectStore(Po,{keyPath:Qp})}catch(r){i(r)}}),t.addEventListener("success",()=>p(this,null,function*(){let n=t.result;n.objectStoreNames.contains(Po)?e(n):(n.close(),yield Y1(),e(yield Ul()))}))})}function Dp(t,e,i){return p(this,null,function*(){let n=Fo(t,!0).put({[Qp]:e,value:i});return new Mn(n).toPromise()})}function Q1(t,e){return p(this,null,function*(){let i=Fo(t,!1).get(e),n=yield new Mn(i).toPromise();return n===void 0?null:n.value})}function Ep(t,e){let i=Fo(t,!0).delete(e);return new Mn(i).toPromise()}var Z1=800,X1=3,ew=(()=>{class t{constructor(){this.type="LOCAL",this._shouldAllowMigration=!0,this.listeners={},this.localCache={},this.pollTimer=null,this.pendingWrites=0,this.receiver=null,this.sender=null,this.serviceWorkerReceiverAvailable=!1,this.activeServiceWorker=null,this._workerInitializationPromise=this.initializeServiceWorkerMessaging().then(()=>{},()=>{})}_openDb(){return p(this,null,function*(){return this.db?this.db:(this.db=yield Ul(),this.db)})}_withRetries(i){return p(this,null,function*(){let n=0;for(;;)try{let r=yield this._openDb();return yield i(r)}catch(r){if(n++>X1)throw r;this.db&&(this.db.close(),this.db=void 0)}})}initializeServiceWorkerMessaging(){return p(this,null,function*(){return Kp()?this.initializeReceiver():this.initializeSender()})}initializeReceiver(){return p(this,null,function*(){this.receiver=G1._getInstance(J1()),this.receiver._subscribe("keyChanged",(i,n)=>p(this,null,function*(){return{keyProcessed:(yield this._poll()).includes(n.key)}})),this.receiver._subscribe("ping",(i,n)=>p(this,null,function*(){return["keyChanged"]}))})}initializeSender(){return p(this,null,function*(){var i,n;if(this.activeServiceWorker=yield W1(),!this.activeServiceWorker)return;this.sender=new Vl(this.activeServiceWorker);let r=yield this.sender._send("ping",{},800);r&&!((i=r[0])===null||i===void 0)&&i.fulfilled&&!((n=r[0])===null||n===void 0)&&n.value.includes("keyChanged")&&(this.serviceWorkerReceiverAvailable=!0)})}notifyServiceWorker(i){return p(this,null,function*(){if(!(!this.sender||!this.activeServiceWorker||q1()!==this.activeServiceWorker))try{yield this.sender._send("keyChanged",{key:i},this.serviceWorkerReceiverAvailable?800:50)}catch{}})}_isAvailable(){return p(this,null,function*(){try{if(!indexedDB)return!1;let i=yield Ul();return yield Dp(i,Oo,"1"),yield Ep(i,Oo),!0}catch{}return!1})}_withPendingWrite(i){return p(this,null,function*(){this.pendingWrites++;try{yield i()}finally{this.pendingWrites--}})}_set(i,n){return p(this,null,function*(){return this._withPendingWrite(()=>p(this,null,function*(){return yield this._withRetries(r=>Dp(r,i,n)),this.localCache[i]=n,this.notifyServiceWorker(i)}))})}_get(i){return p(this,null,function*(){let n=yield this._withRetries(r=>Q1(r,i));return this.localCache[i]=n,n})}_remove(i){return p(this,null,function*(){return this._withPendingWrite(()=>p(this,null,function*(){return yield this._withRetries(n=>Ep(n,i)),delete this.localCache[i],this.notifyServiceWorker(i)}))})}_poll(){return p(this,null,function*(){let i=yield this._withRetries(s=>{let o=Fo(s,!1).getAll();return new Mn(o).toPromise()});if(!i)return[];if(this.pendingWrites!==0)return[];let n=[],r=new Set;if(i.length!==0)for(let{fbase_key:s,value:o}of i)r.add(s),JSON.stringify(this.localCache[s])!==JSON.stringify(o)&&(this.notifyListeners(s,o),n.push(s));for(let s of Object.keys(this.localCache))this.localCache[s]&&!r.has(s)&&(this.notifyListeners(s,null),n.push(s));return n})}notifyListeners(i,n){this.localCache[i]=n;let r=this.listeners[i];if(r)for(let s of Array.from(r))s(n)}startPolling(){this.stopPolling(),this.pollTimer=setInterval(()=>p(this,null,function*(){return this._poll()}),Z1)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}_addListener(i,n){Object.keys(this.listeners).length===0&&this.startPolling(),this.listeners[i]||(this.listeners[i]=new Set,this._get(i)),this.listeners[i].add(n)}_removeListener(i,n){this.listeners[i]&&(this.listeners[i].delete(n),this.listeners[i].size===0&&delete this.listeners[i]),Object.keys(this.listeners).length===0&&this.stopPolling()}}return t.type="LOCAL",t})(),Zp=ew;var zR=zp("rcb"),WR=new Pn(3e4,6e4);function Xp(t,e){return e?Bt(e):(C(t._popupRedirectResolver,t,"argument-error"),t._popupRedirectResolver)}var jr=class extends Br{constructor(e){super("custom","custom"),this.params=e}_getIdTokenResponse(e){return wi(e,this._buildIdpRequest())}_linkToIdToken(e,i){return wi(e,this._buildIdpRequest(i))}_getReauthenticationResolver(e){return wi(e,this._buildIdpRequest())}_buildIdpRequest(e){let i={requestUri:this.params.requestUri,sessionId:this.params.sessionId,postBody:this.params.postBody,tenantId:this.params.tenantId,pendingToken:this.params.pendingToken,returnSecureToken:!0,returnIdpCredential:!0};return e&&(i.idToken=e),i}};function tw(t){return L1(t.auth,new jr(t),t.bypassAuthState)}function nw(t){let{auth:e,user:i}=t;return C(i,e,"internal-error"),F1(i,new jr(t),t.bypassAuthState)}function iw(t){return p(this,null,function*(){let{auth:e,user:i}=t;return C(i,e,"internal-error"),x1(i,new jr(t),t.bypassAuthState)})}var Mo=class{constructor(e,i,n,r,s=!1){this.auth=e,this.resolver=n,this.user=r,this.bypassAuthState=s,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(i)?i:[i]}execute(){return new Promise((e,i)=>p(this,null,function*(){this.pendingPromise={resolve:e,reject:i};try{this.eventManager=yield this.resolver._initialize(this.auth),yield this.onExecution(),this.eventManager.registerConsumer(this)}catch(n){this.reject(n)}}))}onAuthEvent(e){return p(this,null,function*(){let{urlResponse:i,sessionId:n,postBody:r,tenantId:s,error:o,type:a}=e;if(o){this.reject(o);return}let c={auth:this.auth,requestUri:i,sessionId:n,tenantId:s||void 0,postBody:r||void 0,user:this.user,bypassAuthState:this.bypassAuthState};try{this.resolve(yield this.getIdpTask(a)(c))}catch(l){this.reject(l)}})}onError(e){this.reject(e)}getIdpTask(e){switch(e){case"signInViaPopup":case"signInViaRedirect":return tw;case"linkViaPopup":case"linkViaRedirect":return iw;case"reauthViaPopup":case"reauthViaRedirect":return nw;default:Ct(this.auth,"internal-error")}}resolve(e){Vt(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(e),this.unregisterAndCleanUp()}reject(e){Vt(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.reject(e),this.unregisterAndCleanUp()}unregisterAndCleanUp(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}};var rw=new Pn(2e3,1e4);function su(t,e,i){return p(this,null,function*(){if(Et(t.app))return Promise.reject(ot(t,"operation-not-supported-in-this-environment"));let n=xo(t);u1(t,e,Vr);let r=Xp(n,i);return new sw(n,"signInViaPopup",e,r).executeNotNull()})}var sw=(()=>{class t extends Mo{constructor(i,n,r,s,o){super(i,n,s,o),this.provider=r,this.authWindow=null,this.pollId=null,t.currentPopupAction&&t.currentPopupAction.cancel(),t.currentPopupAction=this}executeNotNull(){return p(this,null,function*(){let i=yield this.execute();return C(i,this.auth,"internal-error"),i})}onExecution(){return p(this,null,function*(){Vt(this.filter.length===1,"Popup operations only handle one event");let i=ru();this.authWindow=yield this.resolver._openPopup(this.auth,this.provider,this.filter[0],i),this.authWindow.associatedEvent=i,this.resolver._originValidation(this.auth).catch(n=>{this.reject(n)}),this.resolver._isIframeWebStorageSupported(this.auth,n=>{n||this.reject(ot(this.auth,"web-storage-unsupported"))}),this.pollUserCancellation()})}get eventId(){var i;return((i=this.authWindow)===null||i===void 0?void 0:i.associatedEvent)||null}cancel(){this.reject(ot(this.auth,"cancelled-popup-request"))}cleanUp(){this.authWindow&&this.authWindow.close(),this.pollId&&window.clearTimeout(this.pollId),this.authWindow=null,this.pollId=null,t.currentPopupAction=null}pollUserCancellation(){let i=()=>{var n,r;if(!((r=(n=this.authWindow)===null||n===void 0?void 0:n.window)===null||r===void 0)&&r.closed){this.pollId=window.setTimeout(()=>{this.pollId=null,this.reject(ot(this.auth,"popup-closed-by-user"))},8e3);return}this.pollId=window.setTimeout(i,rw.get())};i()}}t.currentPopupAction=null;return t})(),ow="pendingRedirect",bo=new Map,jl=class t extends Mo{constructor(e,i,n=!1){super(e,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],i,void 0,n),this.eventId=null}execute(){return p(this,null,function*(){let e=bo.get(this.auth._key());if(!e){try{let n=(yield aw(this.resolver,this.auth))?yield un(t.prototype,this,"execute").call(this):null;e=()=>Promise.resolve(n)}catch(i){e=()=>Promise.reject(i)}bo.set(this.auth._key(),e)}return this.bypassAuthState||bo.set(this.auth._key(),()=>Promise.resolve(null)),e()})}onAuthEvent(e){return p(this,null,function*(){if(e.type==="signInViaRedirect")return un(t.prototype,this,"onAuthEvent").call(this,e);if(e.type==="unknown"){this.resolve(null);return}if(e.eventId){let i=yield this.auth._redirectUserForId(e.eventId);if(i)return this.user=i,un(t.prototype,this,"onAuthEvent").call(this,e);this.resolve(null)}})}onExecution(){return p(this,null,function*(){})}cleanUp(){}};function aw(t,e){return p(this,null,function*(){let i=uw(e),n=lw(t);if(!(yield n._isAvailable()))return!1;let r=(yield n._get(i))==="true";return yield n._remove(i),r})}function cw(t,e){bo.set(t._key(),e)}function lw(t){return Bt(t._redirectPersistence)}function uw(t){return yo(ow,t.config.apiKey,t.name)}function dw(t,e,i=!1){return p(this,null,function*(){if(Et(t.app))return Promise.reject(Rn(t));let n=xo(t),r=Xp(n,e),o=yield new jl(n,r,i).execute();return o&&!i&&(delete o.user._redirectEventId,yield n._persistUserIfCurrent(o.user),yield n._setRedirectUser(null,e)),o})}var hw=10*60*1e3,$l=class{constructor(e){this.auth=e,this.cachedEventUids=new Set,this.consumers=new Set,this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1,this.lastProcessedEventTime=Date.now()}registerConsumer(e){this.consumers.add(e),this.queuedRedirectEvent&&this.isEventForConsumer(this.queuedRedirectEvent,e)&&(this.sendToConsumer(this.queuedRedirectEvent,e),this.saveEventToCache(this.queuedRedirectEvent),this.queuedRedirectEvent=null)}unregisterConsumer(e){this.consumers.delete(e)}onEvent(e){if(this.hasEventBeenHandled(e))return!1;let i=!1;return this.consumers.forEach(n=>{this.isEventForConsumer(e,n)&&(i=!0,this.sendToConsumer(e,n),this.saveEventToCache(e))}),this.hasHandledPotentialRedirect||!fw(e)||(this.hasHandledPotentialRedirect=!0,i||(this.queuedRedirectEvent=e,i=!0)),i}sendToConsumer(e,i){var n;if(e.error&&!eg(e)){let r=((n=e.error.code)===null||n===void 0?void 0:n.split("auth/")[1])||"internal-error";i.onError(ot(this.auth,r))}else i.onAuthEvent(e)}isEventForConsumer(e,i){let n=i.eventId===null||!!e.eventId&&e.eventId===i.eventId;return i.filter.includes(e.type)&&n}hasEventBeenHandled(e){return Date.now()-this.lastProcessedEventTime>=hw&&this.cachedEventUids.clear(),this.cachedEventUids.has(Tp(e))}saveEventToCache(e){this.cachedEventUids.add(Tp(e)),this.lastProcessedEventTime=Date.now()}};function Tp(t){return[t.type,t.eventId,t.sessionId,t.tenantId].filter(e=>e).join("-")}function eg({type:t,error:e}){return t==="unknown"&&e?.code==="auth/no-auth-event"}function fw(t){switch(t.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return eg(t);default:return!1}}function pw(i){return p(this,arguments,function*(t,e={}){return Ei(t,"GET","/v1/projects",e)})}var gw=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,mw=/^https?/;function _w(t){return p(this,null,function*(){if(t.config.emulator)return;let{authorizedDomains:e}=yield pw(t);for(let i of e)try{if(vw(i))return}catch{}Ct(t,"unauthorized-domain")})}function vw(t){let e=Pl(),{protocol:i,hostname:n}=new URL(e);if(t.startsWith("chrome-extension://")){let o=new URL(t);return o.hostname===""&&n===""?i==="chrome-extension:"&&t.replace("chrome-extension://","")===e.replace("chrome-extension://",""):i==="chrome-extension:"&&o.hostname===n}if(!mw.test(i))return!1;if(gw.test(t))return n===t;let r=t.replace(/\./g,"\\.");return new RegExp("^(.+\\."+r+"|"+r+")$","i").test(n)}var yw=new Pn(3e4,6e4);function Cp(){let t=Tt().___jsl;if(t?.H){for(let e of Object.keys(t.H))if(t.H[e].r=t.H[e].r||[],t.H[e].L=t.H[e].L||[],t.H[e].r=[...t.H[e].L],t.CP)for(let i=0;i<t.CP.length;i++)t.CP[i]=null}}function bw(t){return new Promise((e,i)=>{var n,r,s;function o(){Cp(),gapi.load("gapi.iframes",{callback:()=>{e(gapi.iframes.getContext())},ontimeout:()=>{Cp(),i(ot(t,"network-request-failed"))},timeout:yw.get()})}if(!((r=(n=Tt().gapi)===null||n===void 0?void 0:n.iframes)===null||r===void 0)&&r.Iframe)e(gapi.iframes.getContext());else if(!((s=Tt().gapi)===null||s===void 0)&&s.load)o();else{let a=zp("iframefcb");return Tt()[a]=()=>{gapi.load?o():i(ot(t,"network-request-failed"))},O1(`${R1()}?onload=${a}`).catch(c=>i(c))}}).catch(e=>{throw wo=null,e})}var wo=null;function ww(t){return wo=wo||bw(t),wo}var Dw=new Pn(5e3,15e3),Ew="__/auth/iframe",Tw="emulator/auth/iframe",Cw={style:{position:"absolute",top:"-100px",width:"1px",height:"1px"},"aria-hidden":"true",tabindex:"-1"},Iw=new Map([["identitytoolkit.googleapis.com","p"],["staging-identitytoolkit.sandbox.googleapis.com","s"],["test-identitytoolkit.sandbox.googleapis.com","t"]]);function Sw(t){let e=t.config;C(e.authDomain,t,"auth-domain-config-required");let i=e.emulator?ql(e,Tw):`https://${t.config.authDomain}/${Ew}`,n={apiKey:e.apiKey,appName:t.name,v:vi},r=Iw.get(t.config.apiHost);r&&(n.eid=r);let s=t._getFrameworks();return s.length&&(n.fw=s.join(",")),`${i}?${gi(n).slice(1)}`}function Aw(t){return p(this,null,function*(){let e=yield ww(t),i=Tt().gapi;return C(i,t,"internal-error"),e.open({where:document.body,url:Sw(t),messageHandlersFilter:i.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:Cw,dontclear:!0},n=>new Promise((r,s)=>p(this,null,function*(){yield n.restyle({setHideOnLeave:!1});let o=ot(t,"network-request-failed"),a=Tt().setTimeout(()=>{s(o)},Dw.get());function c(){Tt().clearTimeout(a),r(n)}n.ping(c).then(c,()=>{s(o)})})))})}var Ow={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"},Rw=500,Pw=600,Mw="_blank",Nw="http://localhost",No=class{constructor(e){this.window=e,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch{}}};function kw(t,e,i,n=Rw,r=Pw){let s=Math.max((window.screen.availHeight-r)/2,0).toString(),o=Math.max((window.screen.availWidth-n)/2,0).toString(),a="",c=Object.assign(Object.assign({},Ow),{width:n.toString(),height:r.toString(),top:s,left:o}),l=ge().toLowerCase();i&&(a=Bp(l)?Mw:i),Lp(l)&&(e=e||Nw,c.scrollbars="yes");let u=Object.entries(c).reduce((h,[g,v])=>`${h}${g}=${v},`,"");if(E1(l)&&a!=="_self")return xw(e||"",a),new No(null);let f=window.open(e||"",a,u);C(f,t,"popup-blocked");try{f.focus()}catch{}return new No(f)}function xw(t,e){let i=document.createElement("a");i.href=t,i.target=e;let n=document.createEvent("MouseEvent");n.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),i.dispatchEvent(n)}var Fw="__/auth/handler",Lw="emulator/auth/handler",Bw=encodeURIComponent("fac");function Ip(t,e,i,n,r,s){return p(this,null,function*(){C(t.config.authDomain,t,"auth-domain-config-required"),C(t.config.apiKey,t,"invalid-api-key");let o={apiKey:t.config.apiKey,appName:t.name,authType:i,redirectUrl:n,v:vi,eventId:r};if(e instanceof Vr){e.setDefaultLanguage(t.languageCode),o.providerId=e.providerId||"",Xf(e.getCustomParameters())||(o.customParameters=JSON.stringify(e.getCustomParameters()));for(let[u,f]of Object.entries(s||{}))o[u]=f}if(e instanceof Ao){let u=e.getScopes().filter(f=>f!=="");u.length>0&&(o.scopes=u.join(","))}t.tenantId&&(o.tid=t.tenantId);let a=o;for(let u of Object.keys(a))a[u]===void 0&&delete a[u];let c=yield t._getAppCheckToken(),l=c?`#${Bw}=${encodeURIComponent(c)}`:"";return`${Vw(t)}?${gi(a).slice(1)}${l}`})}function Vw({config:t}){return t.emulator?ql(t,Lw):`https://${t.authDomain}/${Fw}`}var Rl="webStorageSupport",Hl=class{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=iu,this._completeRedirectFn=dw,this._overrideRedirectResult=cw}_openPopup(e,i,n,r){return p(this,null,function*(){var s;Vt((s=this.eventManagers[e._key()])===null||s===void 0?void 0:s.manager,"_initialize() not called before _openPopup()");let o=yield Ip(e,i,n,Pl(),r);return kw(e,o,ru())})}_openRedirect(e,i,n,r){return p(this,null,function*(){yield this._originValidation(e);let s=yield Ip(e,i,n,Pl(),r);return z1(s),new Promise(()=>{})})}_initialize(e){let i=e._key();if(this.eventManagers[i]){let{manager:r,promise:s}=this.eventManagers[i];return r?Promise.resolve(r):(Vt(s,"If manager is not set, promise should be"),s)}let n=this.initAndGetManager(e);return this.eventManagers[i]={promise:n},n.catch(()=>{delete this.eventManagers[i]}),n}initAndGetManager(e){return p(this,null,function*(){let i=yield Aw(e),n=new $l(e);return i.register("authEvent",r=>(C(r?.authEvent,e,"invalid-auth-event"),{status:n.onEvent(r.authEvent)?"ACK":"ERROR"}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),this.eventManagers[e._key()]={manager:n},this.iframes[e._key()]=i,n})}_isIframeWebStorageSupported(e,i){this.iframes[e._key()].send(Rl,{type:Rl},r=>{var s;let o=(s=r?.[0])===null||s===void 0?void 0:s[Rl];o!==void 0&&i(!!o),Ct(e,"internal-error")},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(e){let i=e._key();return this.originValidationPromises[i]||(this.originValidationPromises[i]=_w(e)),this.originValidationPromises[i]}get _shouldInitProactively(){return Hp()||Zl()||ko()}},tg=Hl;var Sp="@firebase/auth",Ap="1.7.5";var Gl=class{constructor(e){this.auth=e,this.internalListeners=new Map}getUid(){var e;return this.assertAuthConfigured(),((e=this.auth.currentUser)===null||e===void 0?void 0:e.uid)||null}getToken(e){return p(this,null,function*(){return this.assertAuthConfigured(),yield this.auth._initializationPromise,this.auth.currentUser?{accessToken:yield this.auth.currentUser.getIdToken(e)}:null})}addAuthTokenListener(e){if(this.assertAuthConfigured(),this.internalListeners.has(e))return;let i=this.auth.onIdTokenChanged(n=>{e(n?.stsTokenManager.accessToken||null)});this.internalListeners.set(e,i),this.updateProactiveRefresh()}removeAuthTokenListener(e){this.assertAuthConfigured();let i=this.internalListeners.get(e);i&&(this.internalListeners.delete(e),i(),this.updateProactiveRefresh())}assertAuthConfigured(){C(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}};function Uw(t){switch(t){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";case"WebExtension":return"web-extension";default:return}}function jw(t){_i(new wt("auth",(e,{options:i})=>{let n=e.getProvider("app").getImmediate(),r=e.getProvider("heartbeat"),s=e.getProvider("app-check-internal"),{apiKey:o,authDomain:a}=n.options;C(o&&!o.includes(":"),"invalid-api-key",{appName:n.name});let c={apiKey:o,authDomain:a,clientPlatform:t,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:Gp(t)},l=new Ll(n,r,s,c);return P1(l,i),l},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((e,i,n)=>{e.getProvider("auth-internal").initialize()})),_i(new wt("auth-internal",e=>{let i=xo(e.getProvider("auth").getImmediate());return(n=>new Gl(n))(i)},"PRIVATE").setInstantiationMode("EXPLICIT")),Oe(Sp,Ap,Uw(t)),Oe(Sp,Ap,"esm2017")}var $w=5*60,Hw=ll("authIdTokenMaxAge")||$w,Op=null,Gw=t=>e=>p(void 0,null,function*(){let i=e&&(yield e.getIdTokenResult()),n=i&&(new Date().getTime()-Date.parse(i.issuedAtTime))/1e3;if(n&&n>Hw)return;let r=i?.token;Op!==r&&(Op=r,yield fetch(t,{method:r?"POST":"DELETE",headers:r?{Authorization:`Bearer ${r}`}:{}}))});function ou(t=uo()){let e=Tl(t,"auth");if(e.isInitialized())return e.getImmediate();let i=eu(t,{popupRedirectResolver:tg,persistence:[Zp,Jp,iu]}),n=ll("authTokenSyncURL");if(n&&typeof isSecureContext=="boolean"&&isSecureContext){let s=new URL(n,location.origin);if(location.origin===s.origin){let o=Gw(s.toString());nu(i,o,()=>o(i.currentUser)),Hr(i,a=>o(a))}}let r=Wf("auth");return r&&tu(i,`http://${r}`),i}function zw(){var t,e;return(e=(t=document.getElementsByTagName("head"))===null||t===void 0?void 0:t[0])!==null&&e!==void 0?e:document}A1({loadJS(t){return new Promise((e,i)=>{let n=document.createElement("script");n.setAttribute("src",t),n.onload=e,n.onerror=r=>{let s=ot("internal-error");s.customData=r,i(s)},n.type="text/javascript",n.charset="UTF-8",zw().appendChild(n)})},gapiScript:"https://apis.google.com/js/api.js",recaptchaV2Script:"https://www.google.com/recaptcha/api.js",recaptchaEnterpriseScript:"https://www.google.com/recaptcha/enterprise.js?render="});jw("Browser");function rg(t){return new xe(function(e){var i=Hr(t,e.next.bind(e),e.error.bind(e),e.complete.bind(e));return{unsubscribe:i}})}var sg="auth",Nn=class{constructor(e){return e}},au=class{constructor(){return Sl(sg)}};var cu=new R("angularfire2.auth-instances");function FD(t,e){let i=gp(sg,t,e);return i&&new Nn(i)}function LD(t){return(e,i)=>{let n=e.runOutsideAngular(()=>t(i));return new Nn(n)}}var BD={provide:au,deps:[[new lt,cu]]},VD={provide:Nn,useFactory:FD,deps:[[new lt,cu],On]};function FP(t,...e){return Oe("angularfire",Mr.full,"auth"),Qe([VD,BD,{provide:cu,useFactory:LD(t),multi:!0,deps:[$,ne,go,Nr,[new lt,fo],...e]}])}var og=bi(rg,!0);var LP=bi(ou,!0);var ag=bi(su,!0);var kn=class extends Error{};kn.prototype.name="InvalidTokenError";function UD(t){return decodeURIComponent(atob(t).replace(/(.)/g,(e,i)=>{let n=i.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}function jD(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return UD(e)}catch{return atob(e)}}function lu(t,e){if(typeof t!="string")throw new kn("Invalid token specified: must be a string");e||(e={});let i=e.header===!0?0:1,n=t.split(".")[i];if(typeof n!="string")throw new kn(`Invalid token specified: missing part #${i+1}`);let r;try{r=jD(n)}catch(s){throw new kn(`Invalid token specified: invalid base64 for part #${i+1} (${s.message})`)}try{return JSON.parse(r)}catch(s){throw new kn(`Invalid token specified: invalid json for part #${i+1} (${s.message})`)}}var KP=(()=>{let e=class e{constructor(){this.httpService=d($f),this._roles=new _e([]),this.route=d(yt),this.router=d(Ge),this.auth=d(Nn),this.provider=new $r,this.user$=og(this.auth),this.destroy=new L,this.automateLogon()}login(n){return this.httpService.post("api/Token/Login",n).pipe(V(r=>this.storeLoginResponse(r)),V(r=>this.decodeRoles(r)),V(()=>this.storeFormLogin(n)),xu(1))}storeLoginResponse(n){localStorage.setItem("Token",n.access_token),localStorage.setItem("ExpireDate",n.expiredAt),localStorage.setItem("TokenType",n.token_type)}storeFormLogin(n){localStorage.setItem("Domain",n.Host),localStorage.setItem("Username",n.Username)}decodeRoles(n){let r=lu(n.access_token);localStorage.setItem("Brand",r.Brand);let s=r["http://schemas.microsoft.com/ws/2008/06/identity/claims/role"];return this._roles.next(s),this.storeRoles(),s}storeRoles(){localStorage.setItem("Roles",JSON.stringify(this._roles.value))}isTokenExpired(){let n=localStorage.getItem("Token");try{let r=lu(n),s=Math.floor(Date.now()/1e3);return r.exp?r.exp<s:!1}catch{return!0}}isAuthenticated(){return localStorage.getItem("Token")!==null&&!this.isTokenExpired()}getAuthToken(){return localStorage.getItem("Token")??""}getAuthTokenType(){return localStorage.getItem("TokenType")??""}redirectUrl(){return this.route.queryParamMap.pipe(K(this.destroy),V(n=>p(this,null,function*(){n.has("from")&&(yield this.router.navigate([n.get("from")])),yield this.router.navigate(["/pages"])})))}automateLogon(){return p(this,null,function*(){return this.isAuthenticated()?yield this.router.navigate(["/pages"]):yield this.router.navigate([""])})}getDomain(){return localStorage.getItem("Domain")!==null?localStorage.getItem("Domain"):""}logout(){return p(this,null,function*(){let n=["ExpireDate","Token","TokenType","Roles"];for(let r of n)localStorage.removeItem(r);yield this.router.navigate([""])})}signInWithPopup(n){return X(ag(this.auth,new $r)).pipe(oe(r=>{let s=$r.credentialFromResult(r),o={Host:n,IDToken:s?.idToken};return this.httpService.post("api/token/LoginWithSocialProvider",o).pipe(S(a=>a),V(a=>this.storeLoginResponse(a)),V(a=>this.decodeRoles(a)),Ee(a=>b(null)))}),Ee(r=>b(null)))}ngOnDestroy(){this.destroy.next(),this.destroy.complete()}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();export{Hi as a,Ag as b,nE as c,iE as d,rE as e,Rd as f,SE as g,Ld as h,Fm as i,Ge as j,qd as k,WE as l,qE as m,JE as n,QE as o,xs as p,b0 as q,dT as r,ai as s,T0 as t,zh as u,kh as v,PT as w,MT as x,oi as y,K0 as z,br as A,Z0 as B,kT as C,ev as D,nv as E,xT as F,FT as G,LT as H,qs as I,iv as J,Of as K,EO as L,sy as M,TO as N,CO as O,fi as P,Lf as Q,IO as R,Uf as S,MO as T,Ey as U,NO as V,jf as W,ro as X,kO as Y,xO as Z,FO as _,Ly as $,LO as aa,$f as ba,kR as ca,xR as da,FP as ea,LP as fa,KP as ga};
|