-
Notifications
You must be signed in to change notification settings - Fork 0
/
main-UDMVZKBA.js
124 lines (124 loc) · 283 KB
/
main-UDMVZKBA.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
import{$ as je,$a as cs,$b as Ut,A as ut,Aa as Dn,Ab as S,Ac as wc,B as Ml,Ba as $l,Bb as ee,Bc as Pr,C as Al,Ca as Bl,Cb as ne,Cc as Or,D as en,Da as zl,Db as Er,Dc as Nr,E as Ot,Ea as Hl,Eb as ic,F as ts,Fa as Gl,Fb as rc,G as Rl,Ga as ql,Gb as oc,H as Pl,Ha as Wl,Hb as oi,I as Ol,Ia as rn,Ib as Sr,J as qe,Ja as Ft,Jb as Vt,K as Ve,Ka as ve,Kb as Te,L as De,La as Kl,Lb as $,M as O,Ma as ri,Mb as W,N as Nt,Na as h,Nb as Rn,O as ns,Oa as f,Ob as sc,P as A,Pa as Ql,Pb as ke,Q as le,Qa as Zl,Qb as Tr,R as Nl,Ra as yr,Rb as ac,S as q,Sa as kt,Sb as Ir,T as is,Ta as Xl,Tb as xr,U as I,Ua as Mn,Ub as us,V as P,Va as An,Vb as Dr,W as rs,Wb as si,X as Fl,Xa as Ne,Xb as ds,Y as ni,Ya as Yl,Yb as jt,Z as T,Za as Jl,Zb as Mr,_ as ce,_a as ls,_b as lc,a as Sl,aa as Me,ab as _,ac as cc,b as Tl,ba as gr,bb as Ct,bc as uc,c as Zo,ca as kl,cb as p,cc as dc,d as Xo,da as tn,db as _r,dc as Pn,e as Yo,ea as et,eb as U,ec as On,f as me,fa as dt,fb as Cr,fc as on,g as ge,ga as Pe,gb as br,gc as hc,h as Rt,ha as Oe,hb as ec,hc as sn,i as we,ia as Ll,ib as g,ic as pc,j as k,ja as _t,jb as m,jc as fc,k as ei,ka as Vl,kb as C,kc as se,l as Il,la as In,lb as pe,lc as mc,m as xl,ma as ii,mb as fe,mc as an,n as G,na as Ue,nb as wr,nc as gc,o as Sn,oa as Ee,ob as Fe,oc as vc,p as He,pa as os,pb as X,pc as wt,q as ti,qb as b,qc as Ar,r as Dl,rb as $e,rc as $t,s as Jo,sa as Q,sb as Be,sc as yc,t as pr,ta as jl,tb as bt,tc as ue,u as fr,ua as vr,ub as tc,uc as z,v as Ge,va as Ul,vb as nc,vc as _c,w as Tn,wa as nn,wb as Lt,wc as Rr,x as Pt,xa as ss,xb as ht,xc as Cc,y as mr,ya as as,yb as pt,yc as bc,z as es,za as xn,zb as Se,zc as ot}from"./chunk-EKLXEAKM.js";import{a as E,b as J,d as Qo,f as Jn}from"./chunk-RNMDN42R.js";var li=class{},kr=class{},Et=class n{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(`
`).forEach(i=>{let t=i.indexOf(":");if(t>0){let r=i.slice(0,t),o=r.toLowerCase(),s=i.slice(t+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((i,t)=>{this.setHeaderEntries(t,i)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([i,t])=>{this.setHeaderEntries(i,t)})}: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 n?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 n;return i.lazyInit=this.lazyInit&&this.lazyInit instanceof n?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 t=e.value;if(typeof t=="string"&&(t=[t]),t.length===0)return;this.maybeSetNormalizedName(e.name,i);let r=(e.op==="a"?this.headers.get(i):void 0)||[];r.push(...t),this.headers.set(i,r);break;case"d":let o=e.value;if(!o)this.headers.delete(i),this.normalizedNames.delete(i);else{let s=this.headers.get(i);if(!s)return;s=s.filter(a=>o.indexOf(a)===-1),s.length===0?(this.headers.delete(i),this.normalizedNames.delete(i)):this.headers.set(i,s)}break}}setHeaderEntries(e,i){let t=(Array.isArray(i)?i:[i]).map(o=>o.toString()),r=e.toLowerCase();this.headers.set(r,t),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 ps=class{encodeKey(e){return Ec(e)}encodeValue(e){return Ec(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function _h(n,e){let i=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(r=>{let o=r.indexOf("="),[s,a]=o==-1?[e.decodeKey(r),""]:[e.decodeKey(r.slice(0,o)),e.decodeValue(r.slice(o+1))],c=i.get(s)||[];c.push(a),i.set(s,c)}),i}var Ch=/%(\d[a-f0-9])/gi,bh={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Ec(n){return encodeURIComponent(n).replace(Ch,(e,i)=>bh[i]??e)}function Fr(n){return`${n}`}var zt=class n{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new ps,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=_h(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(i=>{let t=e.fromObject[i],r=Array.isArray(t)?t.map(Fr):[Fr(t)];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(t=>{let r=e[t];Array.isArray(r)?r.forEach(o=>{i.push({param:t,value:o,op:"a"})}):i.push({param:t,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(t=>i+"="+this.encoder.encodeValue(t)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let i=new n({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(Fr(e.value)),this.map.set(e.param,i);break;case"d":if(e.value!==void 0){let t=this.map.get(e.param)||[],r=t.indexOf(Fr(e.value));r!==-1&&t.splice(r,1),t.length>0?this.map.set(e.param,t):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}};var fs=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 wh(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function Sc(n){return typeof ArrayBuffer<"u"&&n instanceof ArrayBuffer}function Tc(n){return typeof Blob<"u"&&n instanceof Blob}function Ic(n){return typeof FormData<"u"&&n instanceof FormData}function Eh(n){return typeof URLSearchParams<"u"&&n instanceof URLSearchParams}var ai=class n{constructor(e,i,t,r){this.url=i,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase();let o;if(wh(this.method)||r?(this.body=t!==void 0?t:null,o=r):o=t,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers??=new Et,this.context??=new fs,!this.params)this.params=new zt,this.urlWithParams=i;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=i;else{let a=i.indexOf("?"),c=a===-1?"?":a<i.length-1?"&":"";this.urlWithParams=i+c+s}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||Sc(this.body)||Tc(this.body)||Ic(this.body)||Eh(this.body)?this.body:this.body instanceof zt?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||Ic(this.body)?null:Tc(this.body)?this.body.type||null:Sc(this.body)?null:typeof this.body=="string"?"text/plain":this.body instanceof zt?"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,t=e.url||this.url,r=e.responseType||this.responseType,o=e.transferCache??this.transferCache,s=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,d=e.context??this.context;return e.setHeaders!==void 0&&(l=Object.keys(e.setHeaders).reduce((v,y)=>v.set(y,e.setHeaders[y]),l)),e.setParams&&(u=Object.keys(e.setParams).reduce((v,y)=>v.set(y,e.setParams[y]),u)),new n(i,t,s,{params:u,headers:l,context:d,reportProgress:c,responseType:r,withCredentials:a,transferCache:o})}},Ht=function(n){return n[n.Sent=0]="Sent",n[n.UploadProgress=1]="UploadProgress",n[n.ResponseHeader=2]="ResponseHeader",n[n.DownloadProgress=3]="DownloadProgress",n[n.Response=4]="Response",n[n.User=5]="User",n}(Ht||{}),ci=class{constructor(e,i=200,t="OK"){this.headers=e.headers||new Et,this.status=e.status!==void 0?e.status:i,this.statusText=e.statusText||t,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},Lr=class n extends ci{constructor(e={}){super(e),this.type=Ht.ResponseHeader}clone(e={}){return new n({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})}},ui=class n extends ci{constructor(e={}){super(e),this.type=Ht.Response,this.body=e.body!==void 0?e.body:null}clone(e={}){return new n({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})}},Bt=class extends ci{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}},Rc=200,Sh=204;function hs(n,e){return{body:e,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials,transferCache:n.transferCache}}var Ae=(()=>{let e=class e{constructor(t){this.handler=t}request(t,r,o={}){let s;if(t instanceof ai)s=t;else{let l;o.headers instanceof Et?l=o.headers:l=new Et(o.headers);let u;o.params&&(o.params instanceof zt?u=o.params:u=new zt({fromObject:o.params})),s=new ai(t,r,o.body!==void 0?o.body:null,{headers:l,context:o.context,params:u,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let a=k(s).pipe(Pt(l=>this.handler.handle(l)));if(t instanceof ai||o.observe==="events")return a;let c=a.pipe(Ge(l=>l instanceof ui));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return c.pipe(G(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(G(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(G(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(G(l=>l.body))}case"response":return c;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(t,r={}){return this.request("DELETE",t,r)}get(t,r={}){return this.request("GET",t,r)}head(t,r={}){return this.request("HEAD",t,r)}jsonp(t,r){return this.request("JSONP",t,{params:new zt().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,r={}){return this.request("OPTIONS",t,r)}patch(t,r,o={}){return this.request("PATCH",t,hs(o,r))}post(t,r,o={}){return this.request("POST",t,hs(o,r))}put(t,r,o={}){return this.request("PUT",t,hs(o,r))}};e.\u0275fac=function(r){return new(r||e)(I(li))},e.\u0275prov=A({token:e,factory:e.\u0275fac});let n=e;return n})(),Th=/^\)\]\}',?\n/,Ih="X-Request-URL";function xc(n){if(n.url)return n.url;let e=Ih.toLocaleLowerCase();return n.headers.get(e)}var xh=(()=>{let e=class e{constructor(){this.fetchImpl=P(ms,{optional:!0})?.fetch??fetch.bind(globalThis),this.ngZone=P(Ee)}handle(t){return new Zo(r=>{let o=new AbortController;return this.doRequest(t,o.signal,r).then(gs,s=>r.error(new Bt({error:s}))),()=>o.abort()})}doRequest(t,r,o){return Jn(this,null,function*(){let s=this.createRequestInit(t),a;try{let w=this.ngZone.runOutsideAngular(()=>this.fetchImpl(t.urlWithParams,E({signal:r},s)));Dh(w),o.next({type:Ht.Sent}),a=yield w}catch(w){o.error(new Bt({error:w,status:w.status??0,statusText:w.statusText,url:t.urlWithParams,headers:w.headers}));return}let c=new Et(a.headers),l=a.statusText,u=xc(a)??t.urlWithParams,d=a.status,v=null;if(t.reportProgress&&o.next(new Lr({headers:c,status:d,statusText:l,url:u})),a.body){let w=a.headers.get("content-length"),R=[],M=a.body.getReader(),F=0,Z,te,H=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>Jn(this,null,function*(){for(;;){let{done:Ce,value:he}=yield M.read();if(Ce)break;if(R.push(he),F+=he.length,t.reportProgress){te=t.responseType==="text"?(te??"")+(Z??=new TextDecoder).decode(he,{stream:!0}):void 0;let xe=()=>o.next({type:Ht.DownloadProgress,total:w?+w:void 0,loaded:F,partialText:te});H?H.run(xe):xe()}}}));let Ye=this.concatChunks(R,F);try{let Ce=a.headers.get("Content-Type")??"";v=this.parseBody(t,Ye,Ce)}catch(Ce){o.error(new Bt({error:Ce,headers:new Et(a.headers),status:a.status,statusText:a.statusText,url:xc(a)??t.urlWithParams}));return}}d===0&&(d=v?Rc:0),d>=200&&d<300?(o.next(new ui({body:v,headers:c,status:d,statusText:l,url:u})),o.complete()):o.error(new Bt({error:v,headers:c,status:d,statusText:l,url:u}))})}parseBody(t,r,o){switch(t.responseType){case"json":let s=new TextDecoder().decode(r).replace(Th,"");return s===""?null:JSON.parse(s);case"text":return new TextDecoder().decode(r);case"blob":return new Blob([r],{type:o});case"arraybuffer":return r.buffer}}createRequestInit(t){let r={},o=t.withCredentials?"include":void 0;if(t.headers.forEach((s,a)=>r[s]=a.join(",")),t.headers.has("Accept")||(r.Accept="application/json, text/plain, */*"),!t.headers.has("Content-Type")){let s=t.detectContentTypeHeader();s!==null&&(r["Content-Type"]=s)}return{body:t.serializeBody(),method:t.method,headers:r,credentials:o}}concatChunks(t,r){let o=new Uint8Array(r),s=0;for(let a of t)o.set(a,s),s+=a.length;return o}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=A({token:e,factory:e.\u0275fac});let n=e;return n})(),ms=class{};function gs(){}function Dh(n){n.then(gs,gs)}function Pc(n,e){return e(n)}function Mh(n,e){return(i,t)=>e.intercept(i,{handle:r=>n(r,t)})}function Ah(n,e,i){return(t,r)=>et(i,()=>e(t,o=>n(o,r)))}var Rh=new q(""),vs=new q(""),Ph=new q(""),Oc=new q("",{providedIn:"root",factory:()=>!0});function Oh(){let n=null;return(e,i)=>{n===null&&(n=(P(Rh,{optional:!0})??[]).reduceRight(Mh,Pc));let t=P(ii);if(P(Oc)){let o=t.add();return n(e,i).pipe(en(()=>t.remove(o)))}else return n(e,i)}}var Dc=(()=>{let e=class e extends li{constructor(t,r){super(),this.backend=t,this.injector=r,this.chain=null,this.pendingTasks=P(ii),this.contributeToStability=P(Oc)}handle(t){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(vs),...this.injector.get(Ph,[])]));this.chain=r.reduceRight((o,s)=>Ah(o,s,this.injector),Pc)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(t,o=>this.backend.handle(o)).pipe(en(()=>this.pendingTasks.remove(r)))}else return this.chain(t,r=>this.backend.handle(r))}};e.\u0275fac=function(r){return new(r||e)(I(kr),I(tn))},e.\u0275prov=A({token:e,factory:e.\u0275fac});let n=e;return n})();var Nh=/^\)\]\}',?\n/;function Fh(n){return"responseURL"in n&&n.responseURL?n.responseURL:/^X-Request-URL:/m.test(n.getAllResponseHeaders())?n.getResponseHeader("X-Request-URL"):null}var Mc=(()=>{let e=class e{constructor(t){this.xhrFactory=t}handle(t){if(t.method==="JSONP")throw new O(-2800,!1);let r=this.xhrFactory;return(r.\u0275loadImpl?we(r.\u0275loadImpl()):k(null)).pipe(qe(()=>new Zo(s=>{let a=r.build();if(a.open(t.method,t.urlWithParams),t.withCredentials&&(a.withCredentials=!0),t.headers.forEach((M,F)=>a.setRequestHeader(M,F.join(","))),t.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){let M=t.detectContentTypeHeader();M!==null&&a.setRequestHeader("Content-Type",M)}if(t.responseType){let M=t.responseType.toLowerCase();a.responseType=M!=="json"?M:"text"}let c=t.serializeBody(),l=null,u=()=>{if(l!==null)return l;let M=a.statusText||"OK",F=new Et(a.getAllResponseHeaders()),Z=Fh(a)||t.url;return l=new Lr({headers:F,status:a.status,statusText:M,url:Z}),l},d=()=>{let{headers:M,status:F,statusText:Z,url:te}=u(),H=null;F!==Sh&&(H=typeof a.response>"u"?a.responseText:a.response),F===0&&(F=H?Rc:0);let Ye=F>=200&&F<300;if(t.responseType==="json"&&typeof H=="string"){let Ce=H;H=H.replace(Nh,"");try{H=H!==""?JSON.parse(H):null}catch(he){H=Ce,Ye&&(Ye=!1,H={error:he,text:H})}}Ye?(s.next(new ui({body:H,headers:M,status:F,statusText:Z,url:te||void 0})),s.complete()):s.error(new Bt({error:H,headers:M,status:F,statusText:Z,url:te||void 0}))},v=M=>{let{url:F}=u(),Z=new Bt({error:M,status:a.status||0,statusText:a.statusText||"Unknown Error",url:F||void 0});s.error(Z)},y=!1,w=M=>{y||(s.next(u()),y=!0);let F={type:Ht.DownloadProgress,loaded:M.loaded};M.lengthComputable&&(F.total=M.total),t.responseType==="text"&&a.responseText&&(F.partialText=a.responseText),s.next(F)},R=M=>{let F={type:Ht.UploadProgress,loaded:M.loaded};M.lengthComputable&&(F.total=M.total),s.next(F)};return a.addEventListener("load",d),a.addEventListener("error",v),a.addEventListener("timeout",v),a.addEventListener("abort",v),t.reportProgress&&(a.addEventListener("progress",w),c!==null&&a.upload&&a.upload.addEventListener("progress",R)),a.send(c),s.next({type:Ht.Sent}),()=>{a.removeEventListener("error",v),a.removeEventListener("abort",v),a.removeEventListener("load",d),a.removeEventListener("timeout",v),t.reportProgress&&(a.removeEventListener("progress",w),c!==null&&a.upload&&a.upload.removeEventListener("progress",R)),a.readyState!==a.DONE&&a.abort()}})))}};e.\u0275fac=function(r){return new(r||e)(I(Nr))},e.\u0275prov=A({token:e,factory:e.\u0275fac});let n=e;return n})(),Nc=new q(""),kh="XSRF-TOKEN",Lh=new q("",{providedIn:"root",factory:()=>kh}),Vh="X-XSRF-TOKEN",jh=new q("",{providedIn:"root",factory:()=>Vh}),Vr=class{},Uh=(()=>{let e=class e{constructor(t,r,o){this.doc=t,this.platform=r,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Ar(t,this.cookieName),this.lastCookieString=t),this.lastToken}};e.\u0275fac=function(r){return new(r||e)(I(se),I(nn),I(Lh))},e.\u0275prov=A({token:e,factory:e.\u0275fac});let n=e;return n})();function $h(n,e){let i=n.url.toLowerCase();if(!P(Nc)||n.method==="GET"||n.method==="HEAD"||i.startsWith("http://")||i.startsWith("https://"))return e(n);let t=P(Vr).getToken(),r=P(jh);return t!=null&&!n.headers.has(r)&&(n=n.clone({headers:n.headers.set(r,t)})),e(n)}var Fc=function(n){return n[n.Interceptors=0]="Interceptors",n[n.LegacyInterceptors=1]="LegacyInterceptors",n[n.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",n[n.NoXsrfProtection=3]="NoXsrfProtection",n[n.JsonpSupport=4]="JsonpSupport",n[n.RequestsMadeViaParent=5]="RequestsMadeViaParent",n[n.Fetch=6]="Fetch",n}(Fc||{});function Bh(n,e){return{\u0275kind:n,\u0275providers:e}}function jr(...n){let e=[Ae,Mc,Dc,{provide:li,useExisting:Dc},{provide:kr,useFactory:()=>P(xh,{optional:!0})??P(Mc)},{provide:vs,useValue:$h,multi:!0},{provide:Nc,useValue:!0},{provide:Vr,useClass:Uh}];for(let i of n)e.push(...i.\u0275providers);return gr(e)}var Ac=new q("");function Ur(){return Bh(Fc.LegacyInterceptors,[{provide:Ac,useFactory:Oh},{provide:vs,useExisting:Ac,multi:!0}])}var Cs=class extends fc{constructor(){super(...arguments),this.supportsDOMEvents=!0}},bs=class n extends Cs{static makeCurrent(){pc(new n)}onAndCancel(e,i,t){return e.addEventListener(i,t),()=>{e.removeEventListener(i,t)}}dispatchEvent(e,i){e.dispatchEvent(i)}remove(e){e.remove()}createElement(e,i){return i=i||this.getDefaultDocument(),i.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,i){return i==="window"?window:i==="document"?e:i==="body"?e.body:null}getBaseHref(e){let i=Hh();return i==null?null:Gh(i)}resetBaseElement(){di=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return Ar(document.cookie,e)}},di=null;function Hh(){return di=di||document.querySelector("base"),di?di.getAttribute("href"):null}function Gh(n){return new URL(n,document.baseURI).pathname}var ws=class{addToWindow(e){Nt.getAngularTestability=(t,r=!0)=>{let o=e.findTestabilityInTree(t,r);if(o==null)throw new O(5103,!1);return o},Nt.getAllAngularTestabilities=()=>e.getAllTestabilities(),Nt.getAllAngularRootElements=()=>e.getAllRootElements();let i=t=>{let r=Nt.getAllAngularTestabilities(),o=r.length,s=function(){o--,o==0&&t()};r.forEach(a=>{a.whenStable(s)})};Nt.frameworkStabilizers||(Nt.frameworkStabilizers=[]),Nt.frameworkStabilizers.push(i)}findTestabilityInTree(e,i,t){if(i==null)return null;let r=e.getTestability(i);return r??(t?sn().isShadowRoot(i)?this.findTestabilityInTree(e,i.host,!0):this.findTestabilityInTree(e,i.parentElement,!0):null)}},qh=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=A({token:e,factory:e.\u0275fac});let n=e;return n})(),$r=new q(""),jc=(()=>{let e=class e{constructor(t,r){this._zone=r,this._eventNameToPlugin=new Map,t.forEach(o=>{o.manager=this}),this._plugins=t.slice().reverse()}addEventListener(t,r,o){return this._findPluginFor(r).addEventListener(t,r,o)}getZone(){return this._zone}_findPluginFor(t){let r=this._eventNameToPlugin.get(t);if(r)return r;if(r=this._plugins.find(s=>s.supports(t)),!r)throw new O(5101,!1);return this._eventNameToPlugin.set(t,r),r}};e.\u0275fac=function(r){return new(r||e)(I($r),I(Ee))},e.\u0275prov=A({token:e,factory:e.\u0275fac});let n=e;return n})(),hi=class{constructor(e){this._doc=e}},ys="ng-app-id",Uc=(()=>{let e=class e{constructor(t,r,o,s={}){this.doc=t,this.appId=r,this.nonce=o,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Pr(s),this.resetHostNodes()}addStyles(t){for(let r of t)this.changeUsageCount(r,1)===1&&this.onStyleAdded(r)}removeStyles(t){for(let r of t)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){let t=this.styleNodesInDOM;t&&(t.forEach(r=>r.remove()),t.clear());for(let r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(t){this.hostNodes.add(t);for(let r of this.getAllStyles())this.addStyleToHost(t,r)}removeHost(t){this.hostNodes.delete(t)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(t){for(let r of this.hostNodes)this.addStyleToHost(r,t)}onStyleRemoved(t){let r=this.styleRef;r.get(t)?.elements?.forEach(o=>o.remove()),r.delete(t)}collectServerRenderedStyles(){let t=this.doc.head?.querySelectorAll(`style[${ys}="${this.appId}"]`);if(t?.length){let r=new Map;return t.forEach(o=>{o.textContent!=null&&r.set(o.textContent,o)}),r}return null}changeUsageCount(t,r){let o=this.styleRef;if(o.has(t)){let s=o.get(t);return s.usage+=r,s.usage}return o.set(t,{usage:r,elements:[]}),r}getStyleElement(t,r){let o=this.styleNodesInDOM,s=o?.get(r);if(s?.parentNode===t)return o.delete(r),s.removeAttribute(ys),s;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=r,this.platformIsServer&&a.setAttribute(ys,this.appId),t.appendChild(a),a}}addStyleToHost(t,r){let o=this.getStyleElement(t,r),s=this.styleRef,a=s.get(r)?.elements;a?a.push(o):s.set(r,{elements:[o],usage:1})}resetHostNodes(){let t=this.hostNodes;t.clear(),t.add(this.doc.head)}};e.\u0275fac=function(r){return new(r||e)(I(se),I(vr),I(as,8),I(nn))},e.\u0275prov=A({token:e,factory:e.\u0275fac});let n=e;return n})(),_s={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"},Ss=/%COMP%/g,$c="%COMP%",Wh=`_nghost-${$c}`,Kh=`_ngcontent-${$c}`,Qh=!0,Zh=new q("",{providedIn:"root",factory:()=>Qh});function Xh(n){return Kh.replace(Ss,n)}function Yh(n){return Wh.replace(Ss,n)}function Bc(n,e){return e.map(i=>i.replace(Ss,n))}var Br=(()=>{let e=class e{constructor(t,r,o,s,a,c,l,u=null){this.eventManager=t,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=c,this.ngZone=l,this.nonce=u,this.rendererByCompId=new Map,this.platformIsServer=Pr(c),this.defaultRenderer=new pi(t,a,l,this.platformIsServer)}createRenderer(t,r){if(!t||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===ni.ShadowDom&&(r=J(E({},r),{encapsulation:ni.Emulated}));let o=this.getOrCreateRenderer(t,r);return o instanceof zr?o.applyToHost(t):o instanceof fi&&o.applyStyles(),o}getOrCreateRenderer(t,r){let o=this.rendererByCompId,s=o.get(r.id);if(!s){let a=this.doc,c=this.ngZone,l=this.eventManager,u=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,v=this.platformIsServer;switch(r.encapsulation){case ni.Emulated:s=new zr(l,u,r,this.appId,d,a,c,v);break;case ni.ShadowDom:return new Es(l,u,t,r,a,c,this.nonce,v);default:s=new fi(l,u,r,d,a,c,v);break}o.set(r.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(r){return new(r||e)(I(jc),I(Uc),I(vr),I(Zh),I(se),I(nn),I(Ee),I(as))},e.\u0275prov=A({token:e,factory:e.\u0275fac});let n=e;return n})(),pi=class{constructor(e,i,t,r){this.eventManager=e,this.doc=i,this.ngZone=t,this.platformIsServer=r,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,i){return i?this.doc.createElementNS(_s[i]||i,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,i){(kc(e)?e.content:e).appendChild(i)}insertBefore(e,i,t){e&&(kc(e)?e.content:e).insertBefore(i,t)}removeChild(e,i){i.remove()}selectRootElement(e,i){let t=typeof e=="string"?this.doc.querySelector(e):e;if(!t)throw new O(-5104,!1);return i||(t.textContent=""),t}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,i,t,r){if(r){i=r+":"+i;let o=_s[r];o?e.setAttributeNS(o,i,t):e.setAttribute(i,t)}else e.setAttribute(i,t)}removeAttribute(e,i,t){if(t){let r=_s[t];r?e.removeAttributeNS(r,i):e.removeAttribute(`${t}:${i}`)}else e.removeAttribute(i)}addClass(e,i){e.classList.add(i)}removeClass(e,i){e.classList.remove(i)}setStyle(e,i,t,r){r&(ri.DashCase|ri.Important)?e.style.setProperty(i,t,r&ri.Important?"important":""):e.style[i]=t}removeStyle(e,i,t){t&ri.DashCase?e.style.removeProperty(i):e.style[i]=""}setProperty(e,i,t){e!=null&&(e[i]=t)}setValue(e,i){e.nodeValue=i}listen(e,i,t){if(typeof e=="string"&&(e=sn().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${i}`);return this.eventManager.addEventListener(e,i,this.decoratePreventDefault(t))}decoratePreventDefault(e){return i=>{if(i==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(i)):e(i))===!1&&i.preventDefault()}}};function kc(n){return n.tagName==="TEMPLATE"&&n.content!==void 0}var Es=class extends pi{constructor(e,i,t,r,o,s,a,c){super(e,o,s,c),this.sharedStylesHost=i,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let l=Bc(r.id,r.styles);for(let u of l){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=u,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,i){return super.appendChild(this.nodeOrShadowRoot(e),i)}insertBefore(e,i,t){return super.insertBefore(this.nodeOrShadowRoot(e),i,t)}removeChild(e,i){return super.removeChild(null,i)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},fi=class extends pi{constructor(e,i,t,r,o,s,a,c){super(e,o,s,a),this.sharedStylesHost=i,this.removeStylesOnCompDestroy=r,this.styles=c?Bc(c,t.styles):t.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},zr=class extends fi{constructor(e,i,t,r,o,s,a,c){let l=r+"-"+t.id;super(e,i,t,o,s,a,c,l),this.contentAttr=Xh(l),this.hostAttr=Yh(l)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,i){let t=super.createElement(e,i);return super.setAttribute(t,this.contentAttr,""),t}},Jh=(()=>{let e=class e extends hi{constructor(t){super(t)}supports(t){return!0}addEventListener(t,r,o){return t.addEventListener(r,o,!1),()=>this.removeEventListener(t,r,o)}removeEventListener(t,r,o){return t.removeEventListener(r,o)}};e.\u0275fac=function(r){return new(r||e)(I(se))},e.\u0275prov=A({token:e,factory:e.\u0275fac});let n=e;return n})(),ep=(()=>{let e=class e extends hi{constructor(t){super(t),this.delegate=P(dc,{optional:!0})}supports(t){return this.delegate?this.delegate.supports(t):!1}addEventListener(t,r,o){return this.delegate.addEventListener(t,r,o)}removeEventListener(t,r,o){return this.delegate.removeEventListener(t,r,o)}};e.\u0275fac=function(r){return new(r||e)(I(se))},e.\u0275prov=A({token:e,factory:e.\u0275fac});let n=e;return n})(),Lc=["alt","control","meta","shift"],tp={"\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"},np={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey},ip=(()=>{let e=class e extends hi{constructor(t){super(t)}supports(t){return e.parseEventName(t)!=null}addEventListener(t,r,o){let s=e.parseEventName(r),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>sn().onAndCancel(t,s.domEventName,a))}static parseEventName(t){let r=t.toLowerCase().split("."),o=r.shift();if(r.length===0||!(o==="keydown"||o==="keyup"))return null;let s=e._normalizeKey(r.pop()),a="",c=r.indexOf("code");if(c>-1&&(r.splice(c,1),a="code."),Lc.forEach(u=>{let d=r.indexOf(u);d>-1&&(r.splice(d,1),a+=u+".")}),a+=s,r.length!=0||s.length===0)return null;let l={};return l.domEventName=o,l.fullKey=a,l}static matchEventFullKeyCode(t,r){let o=tp[t.key]||t.key,s="";return r.indexOf("code.")>-1&&(o=t.code,s="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),Lc.forEach(a=>{if(a!==o){let c=np[a];c(t)&&(s+=a+".")}}),s+=o,s===r)}static eventCallback(t,r,o){return s=>{e.matchEventFullKeyCode(s,t)&&o.runGuarded(()=>r(s))}}static _normalizeKey(t){return t==="esc"?"escape":t}};e.\u0275fac=function(r){return new(r||e)(I(se))},e.\u0275prov=A({token:e,factory:e.\u0275fac});let n=e;return n})();function rp(){bs.makeCurrent()}function op(){return new os}function sp(){return jl(document),document}var ap=[{provide:nn,useValue:wc},{provide:Ul,useValue:rp,multi:!0},{provide:se,useFactory:sp,deps:[]}],zc=lc(cc,"browser",ap),lp=new q(""),cp=[{provide:Ir,useClass:ws,deps:[]},{provide:ac,useClass:xr,deps:[Ee,us,Ir]},{provide:xr,useClass:xr,deps:[Ee,us,Ir]}],up=[{provide:kl,useValue:"root"},{provide:os,useFactory:op,deps:[]},{provide:$r,useClass:Jh,multi:!0,deps:[se,Ee,nn]},{provide:$r,useClass:ip,multi:!0,deps:[se]},{provide:$r,useClass:ep,multi:!0},Br,Uc,jc,{provide:yr,useExisting:Br},{provide:Nr,useClass:qh,deps:[]},[]],Hr=(()=>{let e=class e{constructor(t){}static withServerTransition(t){return{ngModule:e,providers:[{provide:vr,useValue:t.appId}]}}};e.\u0275fac=function(r){return new(r||e)(I(lp,12))},e.\u0275mod=ce({type:e}),e.\u0275inj=le({providers:[...up,...cp],imports:[ot,uc]});let n=e;return n})();var Gr=(()=>{let e=class e{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}};e.\u0275fac=function(r){return new(r||e)(I(se))},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var mi=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=A({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=I(dp),o},providedIn:"root"});let n=e;return n})(),dp=(()=>{let e=class e extends mi{constructor(t){super(),this._doc=t}sanitize(t,r){if(r==null)return null;switch(t){case rn.NONE:return r;case rn.HTML:return Dn(r,"HTML")?xn(r):Wl(this._doc,String(r)).toString();case rn.STYLE:return Dn(r,"Style")?xn(r):r;case rn.SCRIPT:if(Dn(r,"Script"))return xn(r);throw new O(5200,!1);case rn.URL:return Dn(r,"URL")?xn(r):ql(String(r));case rn.RESOURCE_URL:if(Dn(r,"ResourceURL"))return xn(r);throw new O(5201,!1);default:throw new O(5202,!1)}}bypassSecurityTrustHtml(t){return $l(t)}bypassSecurityTrustStyle(t){return Bl(t)}bypassSecurityTrustScript(t){return zl(t)}bypassSecurityTrustUrl(t){return Hl(t)}bypassSecurityTrustResourceUrl(t){return Gl(t)}};e.\u0275fac=function(r){return new(r||e)(I(se))},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var Xc=(()=>{let e=class e{constructor(t,r){this._renderer=t,this._elementRef=r,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(t,r){this._renderer.setProperty(this._elementRef.nativeElement,t,r)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}};e.\u0275fac=function(r){return new(r||e)(f(kt),f(Q))},e.\u0275dir=je({type:e});let n=e;return n})(),hp=(()=>{let e=class e extends Xc{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=_t(e)))(o||e)}})(),e.\u0275dir=je({type:e,features:[Ne]});let n=e;return n})(),Yc=new q("");var pp={provide:Yc,useExisting:ns(()=>Zr),multi:!0};function fp(){let n=sn()?sn().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}var mp=new q(""),Zr=(()=>{let e=class e extends Xc{constructor(t,r,o){super(t,r),this._compositionMode=o,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!fp())}writeValue(t){let r=t??"";this.setProperty("value",r)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}};e.\u0275fac=function(r){return new(r||e)(f(kt),f(Q),f(mp,8))},e.\u0275dir=je({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(r,o){r&1&&X("input",function(a){return o._handleInput(a.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(a){return o._compositionEnd(a.target.value)})},features:[oi([pp]),Ne]});let n=e;return n})();var gp=new q(""),vp=new q("");function Jc(n){return n!=null}function eu(n){return Dr(n)?we(n):n}function tu(n){let e={};return n.forEach(i=>{e=i!=null?E(E({},e),i):e}),Object.keys(e).length===0?null:e}function nu(n,e){return e.map(i=>i(n))}function yp(n){return!n.validate}function iu(n){return n.map(e=>yp(e)?e:i=>e.validate(i))}function _p(n){if(!n)return null;let e=n.filter(Jc);return e.length==0?null:function(i){return tu(nu(i,e))}}function ru(n){return n!=null?_p(iu(n)):null}function Cp(n){if(!n)return null;let e=n.filter(Jc);return e.length==0?null:function(i){let t=nu(i,e).map(eu);return pr(t).pipe(G(tu))}}function ou(n){return n!=null?Cp(iu(n)):null}function Hc(n,e){return n===null?[e]:Array.isArray(n)?[...n,e]:[n,e]}function bp(n){return n._rawValidators}function wp(n){return n._rawAsyncValidators}function Ts(n){return n?Array.isArray(n)?n:[n]:[]}function Wr(n,e){return Array.isArray(n)?n.includes(e):n===e}function Gc(n,e){let i=Ts(e);return Ts(n).forEach(r=>{Wr(i,r)||i.push(r)}),i}function qc(n,e){return Ts(e).filter(i=>!Wr(n,i))}var Kr=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=ru(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=ou(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}},Is=class extends Kr{get formDirective(){return null}get path(){return null}},bi=class extends Kr{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},xs=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}},Ep={"[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"},K_=J(E({},Ep),{"[class.ng-submitted]":"isSubmitted"}),su=(()=>{let e=class e extends xs{constructor(t){super(t)}};e.\u0275fac=function(r){return new(r||e)(f(bi,2))},e.\u0275dir=je({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,o){r&2&&U("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[Ne]});let n=e;return n})();var vi="VALID",qr="INVALID",Nn="PENDING",yi="DISABLED",kn=class{},Qr=class extends kn{constructor(e,i){super(),this.value=e,this.source=i}},_i=class extends kn{constructor(e,i){super(),this.pristine=e,this.source=i}},Ci=class extends kn{constructor(e,i){super(),this.touched=e,this.source=i}},Fn=class extends kn{constructor(e,i){super(),this.status=e,this.source=i}};function Sp(n){return(Xr(n)?n.validators:n)||null}function Tp(n){return Array.isArray(n)?ru(n):n||null}function Ip(n,e){return(Xr(e)?e.asyncValidators:n)||null}function xp(n){return Array.isArray(n)?ou(n):n||null}function Xr(n){return n!=null&&!Array.isArray(n)&&typeof n=="object"}var Ds=class{constructor(e,i){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=On(()=>this.statusReactive()),this.statusReactive=An(void 0),this._pristine=On(()=>this.pristineReactive()),this.pristineReactive=An(!0),this._touched=On(()=>this.touchedReactive()),this.touchedReactive=An(!1),this._events=new me,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 on(this.statusReactive)}set status(e){on(()=>this.statusReactive.set(e))}get valid(){return this.status===vi}get invalid(){return this.status===qr}get pending(){return this.status==Nn}get disabled(){return this.status===yi}get enabled(){return this.status!==yi}get pristine(){return on(this.pristineReactive)}set pristine(e){on(()=>this.pristineReactive.set(e))}get dirty(){return!this.pristine}get touched(){return on(this.touchedReactive)}set touched(e){on(()=>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(Gc(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(Gc(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(qc(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(qc(e,this._rawAsyncValidators))}hasValidator(e){return Wr(this._rawValidators,e)}hasAsyncValidator(e){return Wr(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){let i=this.touched===!1;this.touched=!0;let t=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsTouched(J(E({},e),{sourceControl:t})),i&&e.emitEvent!==!1&&this._events.next(new Ci(!0,t))}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 t=e.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:t})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,t),i&&e.emitEvent!==!1&&this._events.next(new Ci(!1,t))}markAsDirty(e={}){let i=this.pristine===!0;this.pristine=!1;let t=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsDirty(J(E({},e),{sourceControl:t})),i&&e.emitEvent!==!1&&this._events.next(new _i(!1,t))}markAsPristine(e={}){let i=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let t=e.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:e.emitEvent})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e,t),i&&e.emitEvent!==!1&&this._events.next(new _i(!0,t))}markAsPending(e={}){this.status=Nn;let i=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Fn(this.status,i)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending(J(E({},e),{sourceControl:i}))}disable(e={}){let i=this._parentMarkedDirty(e.onlySelf);this.status=yi,this.errors=null,this._forEachChild(r=>{r.disable(J(E({},e),{onlySelf:!0}))}),this._updateValue();let t=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Qr(this.value,t)),this._events.next(new Fn(this.status,t)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(J(E({},e),{skipPristineCheck:i}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(e={}){let i=this._parentMarkedDirty(e.onlySelf);this.status=vi,this._forEachChild(t=>{t.enable(J(E({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(J(E({},e),{skipPristineCheck:i}),this),this._onDisabledChange.forEach(t=>t(!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 t=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===vi||this.status===Nn)&&this._runAsyncValidator(t,e.emitEvent)}let i=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Qr(this.value,i)),this._events.next(new Fn(this.status,i)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(J(E({},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()?yi:vi}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,i){if(this.asyncValidator){this.status=Nn,this._hasOwnPendingAsyncValidator={emitEvent:i!==!1};let t=eu(this.asyncValidator(this));this._asyncValidationSubscription=t.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((t,r)=>t&&t._find(r),this)}getError(e,i){let t=i?this.get(i):this;return t&&t.errors?t.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,t){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),(e||t)&&this._events.next(new Fn(this.status,i)),this._parent&&this._parent._updateControlsErrors(e,i,t)}_initObservables(){this.valueChanges=new Ue,this.statusChanges=new Ue}_calculateStatus(){return this._allControlsDisabled()?yi:this.errors?qr:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Nn)?Nn:this._anyControlsHaveStatus(qr)?qr:vi}_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 t=!this._anyControlsDirty(),r=this.pristine!==t;this.pristine=t,this._parent&&!e.onlySelf&&this._parent._updatePristine(e,i),r&&this._events.next(new _i(this.pristine,i))}_updateTouched(e={},i){this.touched=this._anyControlsTouched(),this._events.next(new Ci(this.touched,i)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,i)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){Xr(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=Tp(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=xp(this._rawAsyncValidators)}};var au=new q("CallSetDisabledState",{providedIn:"root",factory:()=>Ms}),Ms="always";function Dp(n,e){return[...e.path,n]}function Mp(n,e,i=Ms){Rp(n,e),e.valueAccessor.writeValue(n.value),(n.disabled||i==="always")&&e.valueAccessor.setDisabledState?.(n.disabled),Pp(n,e),Np(n,e),Op(n,e),Ap(n,e)}function Wc(n,e){n.forEach(i=>{i.registerOnValidatorChange&&i.registerOnValidatorChange(e)})}function Ap(n,e){if(e.valueAccessor.setDisabledState){let i=t=>{e.valueAccessor.setDisabledState(t)};n.registerOnDisabledChange(i),e._registerOnDestroy(()=>{n._unregisterOnDisabledChange(i)})}}function Rp(n,e){let i=bp(n);e.validator!==null?n.setValidators(Hc(i,e.validator)):typeof i=="function"&&n.setValidators([i]);let t=wp(n);e.asyncValidator!==null?n.setAsyncValidators(Hc(t,e.asyncValidator)):typeof t=="function"&&n.setAsyncValidators([t]);let r=()=>n.updateValueAndValidity();Wc(e._rawValidators,r),Wc(e._rawAsyncValidators,r)}function Pp(n,e){e.valueAccessor.registerOnChange(i=>{n._pendingValue=i,n._pendingChange=!0,n._pendingDirty=!0,n.updateOn==="change"&&lu(n,e)})}function Op(n,e){e.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,n.updateOn==="blur"&&n._pendingChange&&lu(n,e),n.updateOn!=="submit"&&n.markAsTouched()})}function lu(n,e){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function Np(n,e){let i=(t,r)=>{e.valueAccessor.writeValue(t),r&&e.viewToModelUpdate(t)};n.registerOnChange(i),e._registerOnDestroy(()=>{n._unregisterOnChange(i)})}function Fp(n,e){if(!n.hasOwnProperty("model"))return!1;let i=n.model;return i.isFirstChange()?!0:!Object.is(e,i.currentValue)}function kp(n){return Object.getPrototypeOf(n.constructor)===hp}function Lp(n,e){if(!e)return null;Array.isArray(e);let i,t,r;return e.forEach(o=>{o.constructor===Zr?i=o:kp(o)?t=o:r=o}),r||t||i||null}function Kc(n,e){let i=n.indexOf(e);i>-1&&n.splice(i,1)}function Qc(n){return typeof n=="object"&&n!==null&&Object.keys(n).length===2&&"value"in n&&"disabled"in n}var Vp=class extends Ds{constructor(e=null,i,t){super(Sp(i),Ip(t,i)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(i),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Xr(i)&&(i.nonNullable||i.initialValueIsDefault)&&(Qc(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(t=>t(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){Kc(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){Kc(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){Qc(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 jp={provide:bi,useExisting:ns(()=>As)},Zc=Promise.resolve(),As=(()=>{let e=class e extends bi{constructor(t,r,o,s,a,c){super(),this._changeDetectorRef=a,this.callSetDisabledState=c,this.control=new Vp,this._registered=!1,this.name="",this.update=new Ue,this._parent=t,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=Lp(this,s)}ngOnChanges(t){if(this._checkForErrors(),!this._registered||"name"in t){if(this._registered&&(this._checkName(),this.formDirective)){let r=t.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in t&&this._updateDisabled(t),Fp(t,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(t){this.viewModel=t,this.update.emit(t)}_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(){Mp(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(t){Zc.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(t){let r=t.isDisabled.currentValue,o=r!==0&&Pn(r);Zc.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(t){return this._parent?Dp(t,this._parent):[t]}};e.\u0275fac=function(r){return new(r||e)(f(Is,9),f(gp,10),f(vp,10),f(Yc,10),f(Ut,8),f(au,8))},e.\u0275dir=je({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:[oi([jp]),Ne,dt]});let n=e;return n})();var Up=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=ce({type:e}),e.\u0275inj=le({});let n=e;return n})();var ln=(()=>{let e=class e{static withConfig(t){return{ngModule:e,providers:[{provide:au,useValue:t.callSetDisabledState??Ms}]}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=ce({type:e}),e.\u0275inj=le({imports:[Up]});let n=e;return n})();var cu=[];var j="primary",Fi=Symbol("RouteTitle"),Fs=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 Bn(n){return new Fs(n)}function Bp(n,e,i){let t=i.path.split("/");if(t.length>n.length||i.pathMatch==="full"&&(e.hasChildren()||t.length<n.length))return null;let r={};for(let o=0;o<t.length;o++){let s=t[o],a=n[o];if(s[0]===":")r[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:n.slice(0,t.length),posParams:r}}function zp(n,e){if(n.length!==e.length)return!1;for(let i=0;i<n.length;++i)if(!ft(n[i],e[i]))return!1;return!0}function ft(n,e){let i=n?ks(n):void 0,t=e?ks(e):void 0;if(!i||!t||i.length!=t.length)return!1;let r;for(let o=0;o<i.length;o++)if(r=i[o],!Cu(n[r],e[r]))return!1;return!0}function ks(n){return[...Object.keys(n),...Object.getOwnPropertySymbols(n)]}function Cu(n,e){if(Array.isArray(n)&&Array.isArray(e)){if(n.length!==e.length)return!1;let i=[...n].sort(),t=[...e].sort();return i.every((r,o)=>t[o]===r)}else return n===e}function bu(n){return n.length>0?n[n.length-1]:null}function Wt(n){return Il(n)?n:Dr(n)?we(Promise.resolve(n)):k(n)}var Hp={exact:Eu,subset:Su},wu={exact:Gp,subset:qp,ignored:()=>!0};function uu(n,e,i){return Hp[i.paths](n.root,e.root,i.matrixParams)&&wu[i.queryParams](n.queryParams,e.queryParams)&&!(i.fragment==="exact"&&n.fragment!==e.fragment)}function Gp(n,e){return ft(n,e)}function Eu(n,e,i){if(!un(n.segments,e.segments)||!eo(n.segments,e.segments,i)||n.numberOfChildren!==e.numberOfChildren)return!1;for(let t in e.children)if(!n.children[t]||!Eu(n.children[t],e.children[t],i))return!1;return!0}function qp(n,e){return Object.keys(e).length<=Object.keys(n).length&&Object.keys(e).every(i=>Cu(n[i],e[i]))}function Su(n,e,i){return Tu(n,e,e.segments,i)}function Tu(n,e,i,t){if(n.segments.length>i.length){let r=n.segments.slice(0,i.length);return!(!un(r,i)||e.hasChildren()||!eo(r,i,t))}else if(n.segments.length===i.length){if(!un(n.segments,i)||!eo(n.segments,i,t))return!1;for(let r in e.children)if(!n.children[r]||!Su(n.children[r],e.children[r],t))return!1;return!0}else{let r=i.slice(0,n.segments.length),o=i.slice(n.segments.length);return!un(n.segments,r)||!eo(n.segments,r,t)||!n.children[j]?!1:Tu(n.children[j],e,o,t)}}function eo(n,e,i){return e.every((t,r)=>wu[i](n[r].parameters,t.parameters))}var Tt=class{constructor(e=new Y([],{}),i={},t=null){this.root=e,this.queryParams=i,this.fragment=t}get queryParamMap(){return this._queryParamMap??=Bn(this.queryParams),this._queryParamMap}toString(){return Qp.serialize(this)}},Y=class{constructor(e,i){this.segments=e,this.children=i,this.parent=null,Object.values(i).forEach(t=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return to(this)}},cn=class{constructor(e,i){this.path=e,this.parameters=i}get parameterMap(){return this._parameterMap??=Bn(this.parameters),this._parameterMap}toString(){return xu(this)}};function Wp(n,e){return un(n,e)&&n.every((i,t)=>ft(i.parameters,e[t].parameters))}function un(n,e){return n.length!==e.length?!1:n.every((i,t)=>i.path===e[t].path)}function Kp(n,e){let i=[];return Object.entries(n.children).forEach(([t,r])=>{t===j&&(i=i.concat(e(r,t)))}),Object.entries(n.children).forEach(([t,r])=>{t!==j&&(i=i.concat(e(r,t)))}),i}var ki=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=A({token:e,factory:()=>new zn,providedIn:"root"});let n=e;return n})(),zn=class{parse(e){let i=new Vs(e);return new Tt(i.parseRootSegment(),i.parseQueryParams(),i.parseFragment())}serialize(e){let i=`/${wi(e.root,!0)}`,t=Yp(e.queryParams),r=typeof e.fragment=="string"?`#${Zp(e.fragment)}`:"";return`${i}${t}${r}`}},Qp=new zn;function to(n){return n.segments.map(e=>xu(e)).join("/")}function wi(n,e){if(!n.hasChildren())return to(n);if(e){let i=n.children[j]?wi(n.children[j],!1):"",t=[];return Object.entries(n.children).forEach(([r,o])=>{r!==j&&t.push(`${r}:${wi(o,!1)}`)}),t.length>0?`${i}(${t.join("//")})`:i}else{let i=Kp(n,(t,r)=>r===j?[wi(n.children[j],!1)]:[`${r}:${wi(t,!1)}`]);return Object.keys(n.children).length===1&&n.children[j]!=null?`${to(n)}/${i[0]}`:`${to(n)}/(${i.join("//")})`}}function Iu(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Yr(n){return Iu(n).replace(/%3B/gi,";")}function Zp(n){return encodeURI(n)}function Ls(n){return Iu(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function no(n){return decodeURIComponent(n)}function du(n){return no(n.replace(/\+/g,"%20"))}function xu(n){return`${Ls(n.path)}${Xp(n.parameters)}`}function Xp(n){return Object.entries(n).map(([e,i])=>`;${Ls(e)}=${Ls(i)}`).join("")}function Yp(n){let e=Object.entries(n).map(([i,t])=>Array.isArray(t)?t.map(r=>`${Yr(i)}=${Yr(r)}`).join("&"):`${Yr(i)}=${Yr(t)}`).filter(i=>i);return e.length?`?${e.join("&")}`:""}var Jp=/^[^\/()?;#]+/;function Rs(n){let e=n.match(Jp);return e?e[0]:""}var ef=/^[^\/()?;=#]+/;function tf(n){let e=n.match(ef);return e?e[0]:""}var nf=/^[^=?&#]+/;function rf(n){let e=n.match(nf);return e?e[0]:""}var of=/^[^&#]+/;function sf(n){let e=n.match(of);return e?e[0]:""}var Vs=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new Y([],{}):new Y([],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 t={};return this.peekStartsWith("(")&&(t=this.parseParens(!1)),(e.length>0||Object.keys(i).length>0)&&(t[j]=new Y(e,i)),t}parseSegment(){let e=Rs(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new O(4009,!1);return this.capture(e),new cn(no(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let i=tf(this.remaining);if(!i)return;this.capture(i);let t="";if(this.consumeOptional("=")){let r=Rs(this.remaining);r&&(t=r,this.capture(t))}e[no(i)]=no(t)}parseQueryParam(e){let i=rf(this.remaining);if(!i)return;this.capture(i);let t="";if(this.consumeOptional("=")){let s=sf(this.remaining);s&&(t=s,this.capture(t))}let r=du(i),o=du(t);if(e.hasOwnProperty(r)){let s=e[r];Array.isArray(s)||(s=[s],e[r]=s),s.push(o)}else e[r]=o}parseParens(e){let i={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let t=Rs(this.remaining),r=this.remaining[t.length];if(r!=="/"&&r!==")"&&r!==";")throw new O(4010,!1);let o;t.indexOf(":")>-1?(o=t.slice(0,t.indexOf(":")),this.capture(o),this.capture(":")):e&&(o=j);let s=this.parseChildren();i[o]=Object.keys(s).length===1?s[j]:new Y([],s),this.consumeOptional("//")}return i}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return this.peekStartsWith(e)?(this.remaining=this.remaining.substring(e.length),!0):!1}capture(e){if(!this.consumeOptional(e))throw new O(4011,!1)}};function Du(n){return n.segments.length>0?new Y([],{[j]:n}):n}function Mu(n){let e={};for(let[t,r]of Object.entries(n.children)){let o=Mu(r);if(t===j&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))e[s]=a;else(o.segments.length>0||o.hasChildren())&&(e[t]=o)}let i=new Y(n.segments,e);return af(i)}function af(n){if(n.numberOfChildren===1&&n.children[j]){let e=n.children[j];return new Y(n.segments.concat(e.segments),e.children)}return n}function dn(n){return n instanceof Tt}function lf(n,e,i=null,t=null){let r=Au(n);return Ru(r,e,i,t)}function Au(n){let e;function i(o){let s={};for(let c of o.children){let l=i(c);s[c.outlet]=l}let a=new Y(o.url,s);return o===n&&(e=a),a}let t=i(n.root),r=Du(t);return e??r}function Ru(n,e,i,t){let r=n;for(;r.parent;)r=r.parent;if(e.length===0)return Ps(r,r,r,i,t);let o=cf(e);if(o.toRoot())return Ps(r,r,new Y([],{}),i,t);let s=uf(o,r,n),a=s.processChildren?Ti(s.segmentGroup,s.index,o.commands):Ou(s.segmentGroup,s.index,o.commands);return Ps(r,s.segmentGroup,a,i,t)}function io(n){return typeof n=="object"&&n!=null&&!n.outlets&&!n.segmentPath}function Di(n){return typeof n=="object"&&n!=null&&n.outlets}function Ps(n,e,i,t,r){let o={};t&&Object.entries(t).forEach(([c,l])=>{o[c]=Array.isArray(l)?l.map(u=>`${u}`):`${l}`});let s;n===e?s=i:s=Pu(n,e,i);let a=Du(Mu(s));return new Tt(a,o,r)}function Pu(n,e,i){let t={};return Object.entries(n.children).forEach(([r,o])=>{o===e?t[r]=i:t[r]=Pu(o,e,i)}),new Y(n.segments,t)}var ro=class{constructor(e,i,t){if(this.isAbsolute=e,this.numberOfDoubleDots=i,this.commands=t,e&&t.length>0&&io(t[0]))throw new O(4003,!1);let r=t.find(Di);if(r&&r!==bu(t))throw new O(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function cf(n){if(typeof n[0]=="string"&&n.length===1&&n[0]==="/")return new ro(!0,0,n);let e=0,i=!1,t=n.reduce((r,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([c,l])=>{a[c]=typeof l=="string"?l.split("/"):l}),[...r,{outlets:a}]}if(o.segmentPath)return[...r,o.segmentPath]}return typeof o!="string"?[...r,o]:s===0?(o.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?i=!0:a===".."?e++:a!=""&&r.push(a))}),r):[...r,o]},[]);return new ro(i,e,t)}var jn=class{constructor(e,i,t){this.segmentGroup=e,this.processChildren=i,this.index=t}};function uf(n,e,i){if(n.isAbsolute)return new jn(e,!0,0);if(!i)return new jn(e,!1,NaN);if(i.parent===null)return new jn(i,!0,0);let t=io(n.commands[0])?0:1,r=i.segments.length-1+t;return df(i,r,n.numberOfDoubleDots)}function df(n,e,i){let t=n,r=e,o=i;for(;o>r;){if(o-=r,t=t.parent,!t)throw new O(4005,!1);r=t.segments.length}return new jn(t,!1,r-o)}function hf(n){return Di(n[0])?n[0].outlets:{[j]:n}}function Ou(n,e,i){if(n??=new Y([],{}),n.segments.length===0&&n.hasChildren())return Ti(n,e,i);let t=pf(n,e,i),r=i.slice(t.commandIndex);if(t.match&&t.pathIndex<n.segments.length){let o=new Y(n.segments.slice(0,t.pathIndex),{});return o.children[j]=new Y(n.segments.slice(t.pathIndex),n.children),Ti(o,0,r)}else return t.match&&r.length===0?new Y(n.segments,{}):t.match&&!n.hasChildren()?js(n,e,i):t.match?Ti(n,0,r):js(n,e,i)}function Ti(n,e,i){if(i.length===0)return new Y(n.segments,{});{let t=hf(i),r={};if(Object.keys(t).some(o=>o!==j)&&n.children[j]&&n.numberOfChildren===1&&n.children[j].segments.length===0){let o=Ti(n.children[j],e,i);return new Y(n.segments,o.children)}return Object.entries(t).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(r[o]=Ou(n.children[o],e,s))}),Object.entries(n.children).forEach(([o,s])=>{t[o]===void 0&&(r[o]=s)}),new Y(n.segments,r)}}function pf(n,e,i){let t=0,r=e,o={match:!1,pathIndex:0,commandIndex:0};for(;r<n.segments.length;){if(t>=i.length)return o;let s=n.segments[r],a=i[t];if(Di(a))break;let c=`${a}`,l=t<i.length-1?i[t+1]:null;if(r>0&&c===void 0)break;if(c&&l&&typeof l=="object"&&l.outlets===void 0){if(!pu(c,l,s))return o;t+=2}else{if(!pu(c,{},s))return o;t++}r++}return{match:!0,pathIndex:r,commandIndex:t}}function js(n,e,i){let t=n.segments.slice(0,e),r=0;for(;r<i.length;){let o=i[r];if(Di(o)){let c=ff(o.outlets);return new Y(t,c)}if(r===0&&io(i[0])){let c=n.segments[e];t.push(new cn(c.path,hu(i[0]))),r++;continue}let s=Di(o)?o.outlets[j]:`${o}`,a=r<i.length-1?i[r+1]:null;s&&a&&io(a)?(t.push(new cn(s,hu(a))),r+=2):(t.push(new cn(s,{})),r++)}return new Y(t,{})}function ff(n){let e={};return Object.entries(n).forEach(([i,t])=>{typeof t=="string"&&(t=[t]),t!==null&&(e[i]=js(new Y([],{}),0,t))}),e}function hu(n){let e={};return Object.entries(n).forEach(([i,t])=>e[i]=`${t}`),e}function pu(n,e,i){return n==i.path&&ft(e,i.parameters)}var Ii="imperative",Ie=function(n){return n[n.NavigationStart=0]="NavigationStart",n[n.NavigationEnd=1]="NavigationEnd",n[n.NavigationCancel=2]="NavigationCancel",n[n.NavigationError=3]="NavigationError",n[n.RoutesRecognized=4]="RoutesRecognized",n[n.ResolveStart=5]="ResolveStart",n[n.ResolveEnd=6]="ResolveEnd",n[n.GuardsCheckStart=7]="GuardsCheckStart",n[n.GuardsCheckEnd=8]="GuardsCheckEnd",n[n.RouteConfigLoadStart=9]="RouteConfigLoadStart",n[n.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",n[n.ChildActivationStart=11]="ChildActivationStart",n[n.ChildActivationEnd=12]="ChildActivationEnd",n[n.ActivationStart=13]="ActivationStart",n[n.ActivationEnd=14]="ActivationEnd",n[n.Scroll=15]="Scroll",n[n.NavigationSkipped=16]="NavigationSkipped",n}(Ie||{}),tt=class{constructor(e,i){this.id=e,this.url=i}},Hn=class extends tt{constructor(e,i,t="imperative",r=null){super(e,i),this.type=Ie.NavigationStart,this.navigationTrigger=t,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Le=class extends tt{constructor(e,i,t){super(e,i),this.urlAfterRedirects=t,this.type=Ie.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},Ke=function(n){return n[n.Redirect=0]="Redirect",n[n.SupersededByNewNavigation=1]="SupersededByNewNavigation",n[n.NoDataFromResolver=2]="NoDataFromResolver",n[n.GuardRejected=3]="GuardRejected",n}(Ke||{}),oo=function(n){return n[n.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",n[n.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",n}(oo||{}),St=class extends tt{constructor(e,i,t,r){super(e,i),this.reason=t,this.code=r,this.type=Ie.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},qt=class extends tt{constructor(e,i,t,r){super(e,i),this.reason=t,this.code=r,this.type=Ie.NavigationSkipped}},Mi=class extends tt{constructor(e,i,t,r){super(e,i),this.error=t,this.target=r,this.type=Ie.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},so=class extends tt{constructor(e,i,t,r){super(e,i),this.urlAfterRedirects=t,this.state=r,this.type=Ie.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Us=class extends tt{constructor(e,i,t,r){super(e,i),this.urlAfterRedirects=t,this.state=r,this.type=Ie.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},$s=class extends tt{constructor(e,i,t,r,o){super(e,i),this.urlAfterRedirects=t,this.state=r,this.shouldActivate=o,this.type=Ie.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Bs=class extends tt{constructor(e,i,t,r){super(e,i),this.urlAfterRedirects=t,this.state=r,this.type=Ie.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},zs=class extends tt{constructor(e,i,t,r){super(e,i),this.urlAfterRedirects=t,this.state=r,this.type=Ie.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Hs=class{constructor(e){this.route=e,this.type=Ie.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Gs=class{constructor(e){this.route=e,this.type=Ie.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},qs=class{constructor(e){this.snapshot=e,this.type=Ie.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ws=class{constructor(e){this.snapshot=e,this.type=Ie.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ks=class{constructor(e){this.snapshot=e,this.type=Ie.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Qs=class{constructor(e){this.snapshot=e,this.type=Ie.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},ao=class{constructor(e,i,t){this.routerEvent=e,this.position=i,this.anchor=t,this.type=Ie.Scroll}toString(){let e=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${e}')`}},Ai=class{},Gn=class{constructor(e,i){this.url=e,this.navigationBehaviorOptions=i}};function mf(n,e){return n.providers&&!n._injector&&(n._injector=cs(n.providers,e,`Route: ${n.path}`)),n._injector??e}function st(n){return n.outlet||j}function gf(n,e){let i=n.filter(t=>st(t)===e);return i.push(...n.filter(t=>st(t)!==e)),i}function Li(n){if(!n)return null;if(n.routeConfig?._injector)return n.routeConfig._injector;for(let e=n.parent;e;e=e.parent){let i=e.routeConfig;if(i?._loadedInjector)return i._loadedInjector;if(i?._injector)return i._injector}return null}var Zs=class{get injector(){return Li(this.route?.snapshot)??this.rootInjector}set injector(e){}constructor(e){this.rootInjector=e,this.outlet=null,this.route=null,this.children=new Vi(this.rootInjector),this.attachRef=null}},Vi=(()=>{let e=class e{constructor(t){this.rootInjector=t,this.contexts=new Map}onChildOutletCreated(t,r){let o=this.getOrCreateContext(t);o.outlet=r,this.contexts.set(t,o)}onChildOutletDestroyed(t){let r=this.getContext(t);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let r=this.getContext(t);return r||(r=new Zs(this.rootInjector),this.contexts.set(t,r)),r}getContext(t){return this.contexts.get(t)||null}};e.\u0275fac=function(r){return new(r||e)(I(tn))},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),lo=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=Xs(e,this._root);return i?i.children.map(t=>t.value):[]}firstChild(e){let i=Xs(e,this._root);return i&&i.children.length>0?i.children[0].value:null}siblings(e){let i=Ys(e,this._root);return i.length<2?[]:i[i.length-2].children.map(r=>r.value).filter(r=>r!==e)}pathFromRoot(e){return Ys(e,this._root).map(i=>i.value)}};function Xs(n,e){if(n===e.value)return e;for(let i of e.children){let t=Xs(n,i);if(t)return t}return null}function Ys(n,e){if(n===e.value)return[e];for(let i of e.children){let t=Ys(n,i);if(t.length)return t.unshift(e),t}return[]}var We=class{constructor(e,i){this.value=e,this.children=i}toString(){return`TreeNode(${this.value})`}};function Vn(n){let e={};return n&&n.children.forEach(i=>e[i.value.outlet]=i),e}var co=class extends lo{constructor(e,i){super(e),this.snapshot=i,aa(this,e)}toString(){return this.snapshot.toString()}};function Nu(n){let e=vf(n),i=new ge([new cn("",{})]),t=new ge({}),r=new ge({}),o=new ge({}),s=new ge(""),a=new ye(i,t,o,s,r,j,n,e.root);return a.snapshot=e.root,new co(new We(a,[]),e)}function vf(n){let e={},i={},t={},r="",o=new Un([],e,t,r,i,j,n,null,{});return new ho("",new We(o,[]))}var ye=class{constructor(e,i,t,r,o,s,a,c){this.urlSubject=e,this.paramsSubject=i,this.queryParamsSubject=t,this.fragmentSubject=r,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(G(l=>l[Fi]))??k(void 0),this.url=e,this.params=i,this.queryParams=t,this.fragment=r,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(G(e=>Bn(e))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(G(e=>Bn(e))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function uo(n,e,i="emptyOnly"){let t,{routeConfig:r}=n;return e!==null&&(i==="always"||r?.path===""||!e.component&&!e.routeConfig?.loadComponent)?t={params:E(E({},e.params),n.params),data:E(E({},e.data),n.data),resolve:E(E(E(E({},n.data),e.data),r?.data),n._resolvedData)}:t={params:E({},n.params),data:E({},n.data),resolve:E(E({},n.data),n._resolvedData??{})},r&&ku(r)&&(t.resolve[Fi]=r.title),t}var Un=class{get title(){return this.data?.[Fi]}constructor(e,i,t,r,o,s,a,c,l){this.url=e,this.params=i,this.queryParams=t,this.fragment=r,this.data=o,this.outlet=s,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??=Bn(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Bn(this.queryParams),this._queryParamMap}toString(){let e=this.url.map(t=>t.toString()).join("/"),i=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${i}')`}},ho=class extends lo{constructor(e,i){super(i),this.url=e,aa(this,i)}toString(){return Fu(this._root)}};function aa(n,e){e.value._routerState=n,e.children.forEach(i=>aa(n,i))}function Fu(n){let e=n.children.length>0?` { ${n.children.map(Fu).join(", ")} } `:"";return`${n.value}${e}`}function Os(n){if(n.snapshot){let e=n.snapshot,i=n._futureSnapshot;n.snapshot=i,ft(e.queryParams,i.queryParams)||n.queryParamsSubject.next(i.queryParams),e.fragment!==i.fragment&&n.fragmentSubject.next(i.fragment),ft(e.params,i.params)||n.paramsSubject.next(i.params),zp(e.url,i.url)||n.urlSubject.next(i.url),ft(e.data,i.data)||n.dataSubject.next(i.data)}else n.snapshot=n._futureSnapshot,n.dataSubject.next(n._futureSnapshot.data)}function Js(n,e){let i=ft(n.params,e.params)&&Wp(n.url,e.url),t=!n.parent!=!e.parent;return i&&!t&&(!n.parent||Js(n.parent,e.parent))}function ku(n){return typeof n.title=="string"||n.title===null}var Kt=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=j,this.activateEvents=new Ue,this.deactivateEvents=new Ue,this.attachEvents=new Ue,this.detachEvents=new Ue,this.parentContexts=P(Vi),this.location=P(Mn),this.changeDetector=P(Ut),this.inputBinder=P(vo,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(t){if(t.name){let{firstChange:r,previousValue:o}=t.name;if(r)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(t){return this.parentContexts.getContext(t)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let t=this.parentContexts.getContext(this.name);t?.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new O(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new O(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new O(4012,!1);this.location.detach();let t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,r){this.activated=t,this._activatedRoute=r,this.location.insert(t.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(t.instance)}deactivate(){if(this.activated){let t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,r){if(this.isActivated)throw new O(4013,!1);this._activatedRoute=t;let o=this.location,a=t.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,l=new ea(t,c,o.injector);this.activated=o.createComponent(a,{index:o.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=je({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[dt]});let n=e;return n})(),ea=class n{__ngOutletInjector(e){return new n(this.route,this.childContexts,e)}constructor(e,i,t){this.route=e,this.childContexts=i,this.parent=t}get(e,i){return e===ye?this.route:e===Vi?this.childContexts:this.parent.get(e,i)}},vo=new q(""),fu=(()=>{let e=class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(t){this.unsubscribeFromRouteData(t),this.subscribeToRouteData(t)}unsubscribeFromRouteData(t){this.outletDataSubscriptions.get(t)?.unsubscribe(),this.outletDataSubscriptions.delete(t)}subscribeToRouteData(t){let{activatedRoute:r}=t,o=Sn([r.queryParams,r.params,r.data]).pipe(qe(([s,a,c],l)=>(c=E(E(E({},s),a),c),l===0?k(c):Promise.resolve(c)))).subscribe(s=>{if(!t.isActivated||!t.activatedComponentRef||t.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(t);return}let a=hc(r.component);if(!a){this.unsubscribeFromRouteData(t);return}for(let{templateName:c}of a.inputs)t.activatedComponentRef.setInput(c,s[c])});this.outletDataSubscriptions.set(t,o)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=A({token:e,factory:e.\u0275fac});let n=e;return n})();function yf(n,e,i){let t=Ri(n,e._root,i?i._root:void 0);return new co(t,e)}function Ri(n,e,i){if(i&&n.shouldReuseRoute(e.value,i.value.snapshot)){let t=i.value;t._futureSnapshot=e.value;let r=_f(n,e,i);return new We(t,r)}else{if(n.shouldAttach(e.value)){let o=n.retrieve(e.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=e.value,s.children=e.children.map(a=>Ri(n,a)),s}}let t=Cf(e.value),r=e.children.map(o=>Ri(n,o));return new We(t,r)}}function _f(n,e,i){return e.children.map(t=>{for(let r of i.children)if(n.shouldReuseRoute(t.value,r.value.snapshot))return Ri(n,t,r);return Ri(n,t)})}function Cf(n){return new ye(new ge(n.url),new ge(n.params),new ge(n.queryParams),new ge(n.fragment),new ge(n.data),n.outlet,n.component,n)}var Pi=class{constructor(e,i){this.redirectTo=e,this.navigationBehaviorOptions=i}},Lu="ngNavigationCancelingError";function po(n,e){let{redirectTo:i,navigationBehaviorOptions:t}=dn(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,r=Vu(!1,Ke.Redirect);return r.url=i,r.navigationBehaviorOptions=t,r}function Vu(n,e){let i=new Error(`NavigationCancelingError: ${n||""}`);return i[Lu]=!0,i.cancellationCode=e,i}function bf(n){return ju(n)&&dn(n.url)}function ju(n){return!!n&&n[Lu]}var wf=(n,e,i,t)=>G(r=>(new ta(e,r.targetRouterState,r.currentRouterState,i,t).activate(n),r)),ta=class{constructor(e,i,t,r,o){this.routeReuseStrategy=e,this.futureState=i,this.currState=t,this.forwardEvent=r,this.inputBindingEnabled=o}activate(e){let i=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(i,t,e),Os(this.futureState.root),this.activateChildRoutes(i,t,e)}deactivateChildRoutes(e,i,t){let r=Vn(i);e.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,r[s],t),delete r[s]}),Object.values(r).forEach(o=>{this.deactivateRouteAndItsChildren(o,t)})}deactivateRoutes(e,i,t){let r=e.value,o=i?i.value:null;if(r===o)if(r.component){let s=t.getContext(r.outlet);s&&this.deactivateChildRoutes(e,i,s.children)}else this.deactivateChildRoutes(e,i,t);else o&&this.deactivateRouteAndItsChildren(i,t)}deactivateRouteAndItsChildren(e,i){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,i):this.deactivateRouteAndOutlet(e,i)}detachAndStoreRouteSubtree(e,i){let t=i.getContext(e.value.outlet),r=t&&e.value.component?t.children:i,o=Vn(e);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,r);if(t&&t.outlet){let s=t.outlet.detach(),a=t.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:s,route:e,contexts:a})}}deactivateRouteAndOutlet(e,i){let t=i.getContext(e.value.outlet),r=t&&e.value.component?t.children:i,o=Vn(e);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,r);t&&(t.outlet&&(t.outlet.deactivate(),t.children.onOutletDeactivated()),t.attachRef=null,t.route=null)}activateChildRoutes(e,i,t){let r=Vn(i);e.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],t),this.forwardEvent(new Qs(o.value.snapshot))}),e.children.length&&this.forwardEvent(new Ws(e.value.snapshot))}activateRoutes(e,i,t){let r=e.value,o=i?i.value:null;if(Os(r),r===o)if(r.component){let s=t.getOrCreateContext(r.outlet);this.activateChildRoutes(e,i,s.children)}else this.activateChildRoutes(e,i,t);else if(r.component){let s=t.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){let a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),Os(a.route.value),this.activateChildRoutes(e,null,s.children)}else s.attachRef=null,s.route=r,s.outlet&&s.outlet.activateWith(r,s.injector),this.activateChildRoutes(e,null,s.children)}else this.activateChildRoutes(e,null,t)}},fo=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},$n=class{constructor(e,i){this.component=e,this.route=i}};function Ef(n,e,i){let t=n._root,r=e?e._root:null;return Ei(t,r,i,[t.value])}function Sf(n){let e=n.routeConfig?n.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:n,guards:e}}function Wn(n,e){let i=Symbol(),t=e.get(n,i);return t===i?typeof n=="function"&&!Nl(n)?n:e.get(n):t}function Ei(n,e,i,t,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=Vn(e);return n.children.forEach(s=>{Tf(s,o[s.value.outlet],i,t.concat([s.value]),r),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>xi(a,i.getContext(s),r)),r}function Tf(n,e,i,t,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=n.value,s=e?e.value:null,a=i?i.getContext(n.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let c=If(s,o,o.routeConfig.runGuardsAndResolvers);c?r.canActivateChecks.push(new fo(t)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?Ei(n,e,a?a.children:null,t,r):Ei(n,e,i,t,r),c&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new $n(a.outlet.component,s))}else s&&xi(e,a,r),r.canActivateChecks.push(new fo(t)),o.component?Ei(n,null,a?a.children:null,t,r):Ei(n,null,i,t,r);return r}function If(n,e,i){if(typeof i=="function")return i(n,e);switch(i){case"pathParamsChange":return!un(n.url,e.url);case"pathParamsOrQueryParamsChange":return!un(n.url,e.url)||!ft(n.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Js(n,e)||!ft(n.queryParams,e.queryParams);case"paramsChange":default:return!Js(n,e)}}function xi(n,e,i){let t=Vn(n),r=n.value;Object.entries(t).forEach(([o,s])=>{r.component?e?xi(s,e.children.getContext(o),i):xi(s,null,i):xi(s,e,i)}),r.component?e&&e.outlet&&e.outlet.isActivated?i.canDeactivateChecks.push(new $n(e.outlet.component,r)):i.canDeactivateChecks.push(new $n(null,r)):i.canDeactivateChecks.push(new $n(null,r))}function ji(n){return typeof n=="function"}function xf(n){return typeof n=="boolean"}function Df(n){return n&&ji(n.canLoad)}function Mf(n){return n&&ji(n.canActivate)}function Af(n){return n&&ji(n.canActivateChild)}function Rf(n){return n&&ji(n.canDeactivate)}function Pf(n){return n&&ji(n.canMatch)}function Uu(n){return n instanceof xl||n?.name==="EmptyError"}var Jr=Symbol("INITIAL_VALUE");function qn(){return qe(n=>Sn(n.map(e=>e.pipe(ut(1),Ol(Jr)))).pipe(G(e=>{for(let i of e)if(i!==!0){if(i===Jr)return Jr;if(i===!1||Of(i))return i}return!0}),Ge(e=>e!==Jr),ut(1)))}function Of(n){return dn(n)||n instanceof Pi}function Nf(n,e){return He(i=>{let{targetSnapshot:t,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:s}}=i;return s.length===0&&o.length===0?k(J(E({},i),{guardsResult:!0})):Ff(s,t,r,n).pipe(He(a=>a&&xf(a)?kf(t,o,n,e):k(a)),G(a=>J(E({},i),{guardsResult:a})))})}function Ff(n,e,i,t){return we(n).pipe(He(r=>$f(r.component,r.route,i,e,t)),Ot(r=>r!==!0,!0))}function kf(n,e,i,t){return we(e).pipe(Pt(r=>Dl(Vf(r.route.parent,t),Lf(r.route,t),Uf(n,r.path,i),jf(n,r.route,i))),Ot(r=>r!==!0,!0))}function Lf(n,e){return n!==null&&e&&e(new Ks(n)),k(!0)}function Vf(n,e){return n!==null&&e&&e(new qs(n)),k(!0)}function jf(n,e,i){let t=e.routeConfig?e.routeConfig.canActivate:null;if(!t||t.length===0)return k(!0);let r=t.map(o=>Jo(()=>{let s=Li(e)??i,a=Wn(o,s),c=Mf(a)?a.canActivate(e,n):et(s,()=>a(e,n));return Wt(c).pipe(Ot())}));return k(r).pipe(qn())}function Uf(n,e,i){let t=e[e.length-1],o=e.slice(0,e.length-1).reverse().map(s=>Sf(s)).filter(s=>s!==null).map(s=>Jo(()=>{let a=s.guards.map(c=>{let l=Li(s.node)??i,u=Wn(c,l),d=Af(u)?u.canActivateChild(t,n):et(l,()=>u(t,n));return Wt(d).pipe(Ot())});return k(a).pipe(qn())}));return k(o).pipe(qn())}function $f(n,e,i,t,r){let o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||o.length===0)return k(!0);let s=o.map(a=>{let c=Li(e)??r,l=Wn(a,c),u=Rf(l)?l.canDeactivate(n,e,i,t):et(c,()=>l(n,e,i,t));return Wt(u).pipe(Ot())});return k(s).pipe(qn())}function Bf(n,e,i,t){let r=e.canLoad;if(r===void 0||r.length===0)return k(!0);let o=r.map(s=>{let a=Wn(s,n),c=Df(a)?a.canLoad(e,i):et(n,()=>a(e,i));return Wt(c)});return k(o).pipe(qn(),$u(t))}function $u(n){return Tl(De(e=>{if(typeof e!="boolean")throw po(n,e)}),G(e=>e===!0))}function zf(n,e,i,t){let r=e.canMatch;if(!r||r.length===0)return k(!0);let o=r.map(s=>{let a=Wn(s,n),c=Pf(a)?a.canMatch(e,i):et(n,()=>a(e,i));return Wt(c)});return k(o).pipe(qn(),$u(t))}var Oi=class{constructor(e){this.segmentGroup=e||null}},Ni=class extends Error{constructor(e){super(),this.urlTree=e}};function Ln(n){return ei(new Oi(n))}function Hf(n){return ei(new O(4e3,!1))}function Gf(n){return ei(Vu(!1,Ke.GuardRejected))}var na=class{constructor(e,i){this.urlSerializer=e,this.urlTree=i}lineralizeSegments(e,i){let t=[],r=i.root;for(;;){if(t=t.concat(r.segments),r.numberOfChildren===0)return k(t);if(r.numberOfChildren>1||!r.children[j])return Hf(`${e.redirectTo}`);r=r.children[j]}}applyRedirectCommands(e,i,t,r,o){if(typeof i!="string"){let a=i,{queryParams:c,fragment:l,routeConfig:u,url:d,outlet:v,params:y,data:w,title:R}=r,M=et(o,()=>a({params:y,data:w,queryParams:c,fragment:l,routeConfig:u,url:d,outlet:v,title:R}));if(M instanceof Tt)throw new Ni(M);i=M}let s=this.applyRedirectCreateUrlTree(i,this.urlSerializer.parse(i),e,t);if(i[0]==="/")throw new Ni(s);return s}applyRedirectCreateUrlTree(e,i,t,r){let o=this.createSegmentGroup(e,i.root,t,r);return new Tt(o,this.createQueryParams(i.queryParams,this.urlTree.queryParams),i.fragment)}createQueryParams(e,i){let t={};return Object.entries(e).forEach(([r,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);t[r]=i[a]}else t[r]=o}),t}createSegmentGroup(e,i,t,r){let o=this.createSegments(e,i.segments,t,r),s={};return Object.entries(i.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(e,c,t,r)}),new Y(o,s)}createSegments(e,i,t,r){return i.map(o=>o.path[0]===":"?this.findPosParam(e,o,r):this.findOrReturn(o,t))}findPosParam(e,i,t){let r=t[i.path.substring(1)];if(!r)throw new O(4001,!1);return r}findOrReturn(e,i){let t=0;for(let r of i){if(r.path===e.path)return i.splice(t),r;t++}return e}},ia={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function qf(n,e,i,t,r){let o=la(n,e,i);return o.matched?(t=mf(e,t),zf(t,e,i,r).pipe(G(s=>s===!0?o:E({},ia)))):k(o)}function la(n,e,i){if(e.path==="**")return Wf(i);if(e.path==="")return e.pathMatch==="full"&&(n.hasChildren()||i.length>0)?E({},ia):{matched:!0,consumedSegments:[],remainingSegments:i,parameters:{},positionalParamSegments:{}};let r=(e.matcher||Bp)(i,n,e);if(!r)return E({},ia);let o={};Object.entries(r.posParams??{}).forEach(([a,c])=>{o[a]=c.path});let s=r.consumed.length>0?E(E({},o),r.consumed[r.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:i.slice(r.consumed.length),parameters:s,positionalParamSegments:r.posParams??{}}}function Wf(n){return{matched:!0,parameters:n.length>0?bu(n).parameters:{},consumedSegments:n,remainingSegments:[],positionalParamSegments:{}}}function mu(n,e,i,t){return i.length>0&&Zf(n,i,t)?{segmentGroup:new Y(e,Qf(t,new Y(i,n.children))),slicedSegments:[]}:i.length===0&&Xf(n,i,t)?{segmentGroup:new Y(n.segments,Kf(n,i,t,n.children)),slicedSegments:i}:{segmentGroup:new Y(n.segments,n.children),slicedSegments:i}}function Kf(n,e,i,t){let r={};for(let o of i)if(yo(n,e,o)&&!t[st(o)]){let s=new Y([],{});r[st(o)]=s}return E(E({},t),r)}function Qf(n,e){let i={};i[j]=e;for(let t of n)if(t.path===""&&st(t)!==j){let r=new Y([],{});i[st(t)]=r}return i}function Zf(n,e,i){return i.some(t=>yo(n,e,t)&&st(t)!==j)}function Xf(n,e,i){return i.some(t=>yo(n,e,t))}function yo(n,e,i){return(n.hasChildren()||e.length>0)&&i.pathMatch==="full"?!1:i.path===""}function Yf(n,e,i,t){return st(n)!==t&&(t===j||!yo(e,i,n))?!1:la(e,n,i).matched}function Jf(n,e,i){return e.length===0&&!n.children[i]}var ra=class{};function em(n,e,i,t,r,o,s="emptyOnly"){return new oa(n,e,i,t,r,s,o).recognize()}var tm=31,oa=class{constructor(e,i,t,r,o,s,a){this.injector=e,this.configLoader=i,this.rootComponentType=t,this.config=r,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new na(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new O(4002,`'${e.segmentGroup}'`)}recognize(){let e=mu(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(G(({children:i,rootSnapshot:t})=>{let r=new We(t,i),o=new ho("",r),s=lf(t,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}))}match(e){let i=new Un([],Object.freeze({}),Object.freeze(E({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),j,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,e,j,i).pipe(G(t=>({children:t,rootSnapshot:i})),Tn(t=>{if(t instanceof Ni)return this.urlTree=t.urlTree,this.match(t.urlTree.root);throw t instanceof Oi?this.noMatchError(t):t}))}processSegmentGroup(e,i,t,r,o){return t.segments.length===0&&t.hasChildren()?this.processChildren(e,i,t,o):this.processSegment(e,i,t,t.segments,r,!0,o).pipe(G(s=>s instanceof We?[s]:[]))}processChildren(e,i,t,r){let o=[];for(let s of Object.keys(t.children))s==="primary"?o.unshift(s):o.push(s);return we(o).pipe(Pt(s=>{let a=t.children[s],c=gf(i,s);return this.processSegmentGroup(e,c,a,s,r)}),Pl((s,a)=>(s.push(...a),s)),es(null),Rl(),He(s=>{if(s===null)return Ln(t);let a=Bu(s);return nm(a),k(a)}))}processSegment(e,i,t,r,o,s,a){return we(i).pipe(Pt(c=>this.processSegmentAgainstRoute(c._injector??e,i,c,t,r,o,s,a).pipe(Tn(l=>{if(l instanceof Oi)return k(null);throw l}))),Ot(c=>!!c),Tn(c=>{if(Uu(c))return Jf(t,r,o)?k(new ra):Ln(t);throw c}))}processSegmentAgainstRoute(e,i,t,r,o,s,a,c){return Yf(t,r,o,s)?t.redirectTo===void 0?this.matchSegmentAgainstRoute(e,r,t,o,s,c):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(e,r,i,t,o,s,c):Ln(r):Ln(r)}expandSegmentAgainstRouteUsingRedirect(e,i,t,r,o,s,a){let{matched:c,parameters:l,consumedSegments:u,positionalParamSegments:d,remainingSegments:v}=la(i,r,o);if(!c)return Ln(i);typeof r.redirectTo=="string"&&r.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>tm&&(this.allowRedirects=!1));let y=new Un(o,l,Object.freeze(E({},this.urlTree.queryParams)),this.urlTree.fragment,gu(r),st(r),r.component??r._loadedComponent??null,r,vu(r)),w=uo(y,a,this.paramsInheritanceStrategy);y.params=Object.freeze(w.params),y.data=Object.freeze(w.data);let R=this.applyRedirects.applyRedirectCommands(u,r.redirectTo,d,y,e);return this.applyRedirects.lineralizeSegments(r,R).pipe(He(M=>this.processSegment(e,t,i,M.concat(v),s,!1,a)))}matchSegmentAgainstRoute(e,i,t,r,o,s){let a=qf(i,t,r,e,this.urlSerializer);return t.path==="**"&&(i.children={}),a.pipe(qe(c=>c.matched?(e=t._injector??e,this.getChildConfig(e,t,r).pipe(qe(({routes:l})=>{let u=t._loadedInjector??e,{parameters:d,consumedSegments:v,remainingSegments:y}=c,w=new Un(v,d,Object.freeze(E({},this.urlTree.queryParams)),this.urlTree.fragment,gu(t),st(t),t.component??t._loadedComponent??null,t,vu(t)),R=uo(w,s,this.paramsInheritanceStrategy);w.params=Object.freeze(R.params),w.data=Object.freeze(R.data);let{segmentGroup:M,slicedSegments:F}=mu(i,v,y,l);if(F.length===0&&M.hasChildren())return this.processChildren(u,l,M,w).pipe(G(te=>new We(w,te)));if(l.length===0&&F.length===0)return k(new We(w,[]));let Z=st(t)===o;return this.processSegment(u,l,M,F,Z?j:o,!0,w).pipe(G(te=>new We(w,te instanceof We?[te]:[])))}))):Ln(i)))}getChildConfig(e,i,t){return i.children?k({routes:i.children,injector:e}):i.loadChildren?i._loadedRoutes!==void 0?k({routes:i._loadedRoutes,injector:i._loadedInjector}):Bf(e,i,t,this.urlSerializer).pipe(He(r=>r?this.configLoader.loadChildren(e,i).pipe(De(o=>{i._loadedRoutes=o.routes,i._loadedInjector=o.injector})):Gf(i))):k({routes:[],injector:e})}};function nm(n){n.sort((e,i)=>e.value.outlet===j?-1:i.value.outlet===j?1:e.value.outlet.localeCompare(i.value.outlet))}function im(n){let e=n.value.routeConfig;return e&&e.path===""}function Bu(n){let e=[],i=new Set;for(let t of n){if(!im(t)){e.push(t);continue}let r=e.find(o=>t.value.routeConfig===o.value.routeConfig);r!==void 0?(r.children.push(...t.children),i.add(r)):e.push(t)}for(let t of i){let r=Bu(t.children);e.push(new We(t.value,r))}return e.filter(t=>!i.has(t))}function gu(n){return n.data||{}}function vu(n){return n.resolve||{}}function rm(n,e,i,t,r,o){return He(s=>em(n,e,i,t,s.extractedUrl,r,o).pipe(G(({state:a,tree:c})=>J(E({},s),{targetSnapshot:a,urlAfterRedirects:c}))))}function om(n,e){return He(i=>{let{targetSnapshot:t,guards:{canActivateChecks:r}}=i;if(!r.length)return k(i);let o=new Set(r.map(c=>c.route)),s=new Set;for(let c of o)if(!s.has(c))for(let l of zu(c))s.add(l);let a=0;return we(s).pipe(Pt(c=>o.has(c)?sm(c,t,n,e):(c.data=uo(c,c.parent,n).resolve,k(void 0))),De(()=>a++),ts(1),He(c=>a===s.size?k(i):Rt))})}function zu(n){let e=n.children.map(i=>zu(i)).flat();return[n,...e]}function sm(n,e,i,t){let r=n.routeConfig,o=n._resolve;return r?.title!==void 0&&!ku(r)&&(o[Fi]=r.title),am(o,n,e,t).pipe(G(s=>(n._resolvedData=s,n.data=uo(n,n.parent,i).resolve,null)))}function am(n,e,i,t){let r=ks(n);if(r.length===0)return k({});let o={};return we(r).pipe(He(s=>lm(n[s],e,i,t).pipe(Ot(),De(a=>{if(a instanceof Pi)throw po(new zn,a);o[s]=a}))),ts(1),Ml(o),Tn(s=>Uu(s)?Rt:ei(s)))}function lm(n,e,i,t){let r=Li(e)??t,o=Wn(n,r),s=o.resolve?o.resolve(e,i):et(r,()=>o(e,i));return Wt(s)}function Ns(n){return qe(e=>{let i=n(e);return i?we(i).pipe(G(()=>e)):k(e)})}var Hu=(()=>{let e=class e{buildTitle(t){let r,o=t.root;for(;o!==void 0;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(s=>s.outlet===j);return r}getResolvedTitleForRoute(t){return t.data[Fi]}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=A({token:e,factory:()=>P(cm),providedIn:"root"});let n=e;return n})(),cm=(()=>{let e=class e extends Hu{constructor(t){super(),this.title=t}updateTitle(t){let r=this.buildTitle(t);r!==void 0&&this.title.setTitle(r)}};e.\u0275fac=function(r){return new(r||e)(I(Gr))},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),Ui=new q("",{providedIn:"root",factory:()=>({})}),um=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=T({type:e,selectors:[["ng-component"]],standalone:!0,features:[Sr],decls:1,vars:0,template:function(r,o){r&1&&C(0,"router-outlet")},dependencies:[Kt],encapsulation:2});let n=e;return n})();function ca(n){let e=n.children&&n.children.map(ca),i=e?J(E({},n),{children:e}):E({},n);return!i.component&&!i.loadComponent&&(e||i.loadChildren)&&i.outlet&&i.outlet!==j&&(i.component=um),i}var mo=new q(""),ua=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=P(Mr)}loadComponent(t){if(this.componentLoaders.get(t))return this.componentLoaders.get(t);if(t._loadedComponent)return k(t._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(t);let r=Wt(t.loadComponent()).pipe(G(Gu),De(s=>{this.onLoadEndListener&&this.onLoadEndListener(t),t._loadedComponent=s}),en(()=>{this.componentLoaders.delete(t)})),o=new Yo(r,()=>new me).pipe(Xo());return this.componentLoaders.set(t,o),o}loadChildren(t,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return k({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let s=dm(r,this.compiler,t,this.onLoadEndListener).pipe(en(()=>{this.childrenLoaders.delete(r)})),a=new Yo(s,()=>new me).pipe(Xo());return this.childrenLoaders.set(r,a),a}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function dm(n,e,i,t){return Wt(n.loadChildren()).pipe(G(Gu),He(r=>r instanceof Jl||Array.isArray(r)?k(r):we(e.compileModuleAsync(r))),G(r=>{t&&t(n);let o,s,a=!1;return Array.isArray(r)?(s=r,a=!0):(o=r.create(i).injector,s=o.get(mo,[],{optional:!0,self:!0}).flat()),{routes:s.map(ca),injector:o}}))}function hm(n){return n&&typeof n=="object"&&"default"in n}function Gu(n){return hm(n)?n.default:n}var da=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=A({token:e,factory:()=>P(pm),providedIn:"root"});let n=e;return n})(),pm=(()=>{let e=class e{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,r){return t}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),qu=new q(""),Wu=new q("");function fm(n,e,i){let t=n.get(Wu),r=n.get(se);return n.get(Ee).runOutsideAngular(()=>{if(!r.startViewTransition||t.skipNextTransition)return t.skipNextTransition=!1,new Promise(l=>setTimeout(l));let o,s=new Promise(l=>{o=l}),a=r.startViewTransition(()=>(o(),mm(n))),{onViewTransitionCreated:c}=t;return c&&et(n,()=>c({transition:a,from:e,to:i})),s})}function mm(n){return new Promise(e=>{Xl({read:()=>setTimeout(e)},{injector:n})})}var gm=new q(""),ha=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new me,this.transitionAbortSubject=new me,this.configLoader=P(ua),this.environmentInjector=P(tn),this.urlSerializer=P(ki),this.rootContexts=P(Vi),this.location=P(wt),this.inputBindingEnabled=P(vo,{optional:!0})!==null,this.titleStrategy=P(Hu),this.options=P(Ui,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=P(da),this.createViewTransition=P(qu,{optional:!0}),this.navigationErrorHandler=P(gm,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>k(void 0),this.rootComponentType=null;let t=o=>this.events.next(new Hs(o)),r=o=>this.events.next(new Gs(o));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=t}complete(){this.transitions?.complete()}handleNavigationRequest(t){let r=++this.navigationId;this.transitions?.next(J(E(E({},this.transitions.value),t),{id:r}))}setupNavigations(t,r,o){return this.transitions=new ge({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:Ii,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(Ge(s=>s.id!==0),G(s=>J(E({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),qe(s=>{let a=!1,c=!1;return k(s).pipe(qe(l=>{if(this.navigationId>s.id)return this.cancelNavigationTransition(s,"",Ke.SupersededByNewNavigation),Rt;this.currentTransition=s,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?J(E({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let u=!t.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=l.extras.onSameUrlNavigation??t.onSameUrlNavigation;if(!u&&d!=="reload"){let v="";return this.events.next(new qt(l.id,this.urlSerializer.serialize(l.rawUrl),v,oo.IgnoredSameUrlNavigation)),l.resolve(!1),Rt}if(this.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return k(l).pipe(qe(v=>{let y=this.transitions?.getValue();return this.events.next(new Hn(v.id,this.urlSerializer.serialize(v.extractedUrl),v.source,v.restoredState)),y!==this.transitions?.getValue()?Rt:Promise.resolve(v)}),rm(this.environmentInjector,this.configLoader,this.rootComponentType,t.config,this.urlSerializer,this.paramsInheritanceStrategy),De(v=>{s.targetSnapshot=v.targetSnapshot,s.urlAfterRedirects=v.urlAfterRedirects,this.currentNavigation=J(E({},this.currentNavigation),{finalUrl:v.urlAfterRedirects});let y=new so(v.id,this.urlSerializer.serialize(v.extractedUrl),this.urlSerializer.serialize(v.urlAfterRedirects),v.targetSnapshot);this.events.next(y)}));if(u&&this.urlHandlingStrategy.shouldProcessUrl(l.currentRawUrl)){let{id:v,extractedUrl:y,source:w,restoredState:R,extras:M}=l,F=new Hn(v,this.urlSerializer.serialize(y),w,R);this.events.next(F);let Z=Nu(this.rootComponentType).snapshot;return this.currentTransition=s=J(E({},l),{targetSnapshot:Z,urlAfterRedirects:y,extras:J(E({},M),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=y,k(s)}else{let v="";return this.events.next(new qt(l.id,this.urlSerializer.serialize(l.extractedUrl),v,oo.IgnoredByUrlHandlingStrategy)),l.resolve(!1),Rt}}),De(l=>{let u=new Us(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(u)}),G(l=>(this.currentTransition=s=J(E({},l),{guards:Ef(l.targetSnapshot,l.currentSnapshot,this.rootContexts)}),s)),Nf(this.environmentInjector,l=>this.events.next(l)),De(l=>{if(s.guardsResult=l.guardsResult,l.guardsResult&&typeof l.guardsResult!="boolean")throw po(this.urlSerializer,l.guardsResult);let u=new $s(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.events.next(u)}),Ge(l=>l.guardsResult?!0:(this.cancelNavigationTransition(l,"",Ke.GuardRejected),!1)),Ns(l=>{if(l.guards.canActivateChecks.length)return k(l).pipe(De(u=>{let d=new Bs(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(d)}),qe(u=>{let d=!1;return k(u).pipe(om(this.paramsInheritanceStrategy,this.environmentInjector),De({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(u,"",Ke.NoDataFromResolver)}}))}),De(u=>{let d=new zs(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(d)}))}),Ns(l=>{let u=d=>{let v=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&v.push(this.configLoader.loadComponent(d.routeConfig).pipe(De(y=>{d.component=y}),G(()=>{})));for(let y of d.children)v.push(...u(y));return v};return Sn(u(l.targetSnapshot.root)).pipe(es(null),ut(1))}),Ns(()=>this.afterPreactivation()),qe(()=>{let{currentSnapshot:l,targetSnapshot:u}=s,d=this.createViewTransition?.(this.environmentInjector,l.root,u.root);return d?we(d).pipe(G(()=>s)):k(s)}),G(l=>{let u=yf(t.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=s=J(E({},l),{targetRouterState:u}),this.currentNavigation.targetRouterState=u,s}),De(()=>{this.events.next(new Ai)}),wf(this.rootContexts,t.routeReuseStrategy,l=>this.events.next(l),this.inputBindingEnabled),ut(1),De({next:l=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Le(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),this.titleStrategy?.updateTitle(l.targetRouterState.snapshot),l.resolve(!0)},complete:()=>{a=!0}}),Ve(this.transitionAbortSubject.pipe(De(l=>{throw l}))),en(()=>{!a&&!c&&this.cancelNavigationTransition(s,"",Ke.SupersededByNewNavigation),this.currentTransition?.id===s.id&&(this.currentNavigation=null,this.currentTransition=null)}),Tn(l=>{if(c=!0,ju(l))this.events.next(new St(s.id,this.urlSerializer.serialize(s.extractedUrl),l.message,l.cancellationCode)),bf(l)?this.events.next(new Gn(l.url,l.navigationBehaviorOptions)):s.resolve(!1);else{let u=new Mi(s.id,this.urlSerializer.serialize(s.extractedUrl),l,s.targetSnapshot??void 0);try{let d=et(this.environmentInjector,()=>this.navigationErrorHandler?.(u));if(d instanceof Pi){let{message:v,cancellationCode:y}=po(this.urlSerializer,d);this.events.next(new St(s.id,this.urlSerializer.serialize(s.extractedUrl),v,y)),this.events.next(new Gn(d.redirectTo,d.navigationBehaviorOptions))}else{this.events.next(u);let v=t.errorHandler(l);s.resolve(!!v)}}catch(d){this.options.resolveNavigationPromiseOnError?s.resolve(!1):s.reject(d)}}return Rt}))}))}cancelNavigationTransition(t,r,o){let s=new St(t.id,this.urlSerializer.serialize(t.extractedUrl),r,o);this.events.next(s),t.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let t=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return t.toString()!==r?.toString()&&!this.currentNavigation?.extras.skipLocationChange}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function vm(n){return n!==Ii}var ym=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=A({token:e,factory:()=>P(_m),providedIn:"root"});let n=e;return n})(),sa=class{shouldDetach(e){return!1}store(e,i){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,i){return e.routeConfig===i.routeConfig}},_m=(()=>{let e=class e extends sa{};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=_t(e)))(o||e)}})(),e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),Ku=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=A({token:e,factory:()=>P(Cm),providedIn:"root"});let n=e;return n})(),Cm=(()=>{let e=class e extends Ku{constructor(){super(...arguments),this.location=P(wt),this.urlSerializer=P(ki),this.options=P(Ui,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=P(da),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Tt,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Nu(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(t){return this.location.subscribe(r=>{r.type==="popstate"&&t(r.url,r.state)})}handleRouterEvent(t,r){if(t instanceof Hn)this.stateMemento=this.createStateMemento();else if(t instanceof qt)this.rawUrlTree=r.initialUrl;else if(t instanceof so){if(this.urlUpdateStrategy==="eager"&&!r.extras.skipLocationChange){let o=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(r.targetBrowserUrl??o,r)}}else t instanceof Ai?(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)):t instanceof St&&(t.code===Ke.GuardRejected||t.code===Ke.NoDataFromResolver)?this.restoreHistory(r):t instanceof Mi?this.restoreHistory(r,!0):t instanceof Le&&(this.lastSuccessfulId=t.id,this.currentPageId=this.browserPageId)}setBrowserUrl(t,r){let o=t instanceof Tt?this.urlSerializer.serialize(t):t;if(this.location.isCurrentPathEqualTo(o)||r.extras.replaceUrl){let s=this.browserPageId,a=E(E({},r.extras.state),this.generateNgRouterState(r.id,s));this.location.replaceState(o,"",a)}else{let s=E(E({},r.extras.state),this.generateNgRouterState(r.id,this.browserPageId+1));this.location.go(o,"",s)}}restoreHistory(t,r=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,s=this.currentPageId-o;s!==0?this.location.historyGo(s):this.currentUrlTree===t.finalUrl&&s===0&&(this.resetState(t),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(t,r){return this.canceledNavigationResolution==="computed"?{navigationId:t,\u0275routerPageId:r}:{navigationId:t}}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=_t(e)))(o||e)}})(),e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),Si=function(n){return n[n.COMPLETE=0]="COMPLETE",n[n.FAILED=1]="FAILED",n[n.REDIRECTING=2]="REDIRECTING",n}(Si||{});function Qu(n,e){n.events.pipe(Ge(i=>i instanceof Le||i instanceof St||i instanceof Mi||i instanceof qt),G(i=>i instanceof Le||i instanceof qt?Si.COMPLETE:(i instanceof St?i.code===Ke.Redirect||i.code===Ke.SupersededByNewNavigation:!1)?Si.REDIRECTING:Si.FAILED),Ge(i=>i!==Si.REDIRECTING),ut(1)).subscribe(()=>{e()})}function bm(n){throw n}var wm={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Em={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},ie=(()=>{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=P(Tr),this.stateManager=P(Ku),this.options=P(Ui,{optional:!0})||{},this.pendingTasks=P(ii),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=P(ha),this.urlSerializer=P(ki),this.location=P(wt),this.urlHandlingStrategy=P(da),this._events=new me,this.errorHandler=this.options.errorHandler||bm,this.navigated=!1,this.routeReuseStrategy=P(ym),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=P(mo,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!P(vo,{optional:!0}),this.eventsSubscription=new Sl,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:t=>{this.console.warn(t)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let t=this.navigationTransitions.events.subscribe(r=>{try{let o=this.navigationTransitions.currentTransition,s=this.navigationTransitions.currentNavigation;if(o!==null&&s!==null){if(this.stateManager.handleRouterEvent(r,s),r instanceof St&&r.code!==Ke.Redirect&&r.code!==Ke.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof Le)this.navigated=!0;else if(r instanceof Gn){let a=r.navigationBehaviorOptions,c=this.urlHandlingStrategy.merge(r.url,o.currentRawUrl),l=E({browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||vm(o.source)},a);this.scheduleNavigation(c,Ii,null,l,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}Tm(r)&&this._events.next(r)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(t)}resetRootComponentType(t){this.routerState.root.component=t,this.navigationTransitions.rootComponentType=t}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Ii,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((t,r)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(t,"popstate",r)},0)})}navigateToSyncWithBrowser(t,r,o){let s={replaceUrl:!0},a=o?.navigationId?o:null;if(o){let l=E({},o);delete l.navigationId,delete l.\u0275routerPageId,Object.keys(l).length!==0&&(s.state=l)}let c=this.parseUrl(t);this.scheduleNavigation(c,r,a,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(t){this.config=t.map(ca),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(t,r={}){let{relativeTo:o,queryParams:s,fragment:a,queryParamsHandling:c,preserveFragment:l}=r,u=l?this.currentUrlTree.fragment:a,d=null;switch(c??this.options.defaultQueryParamsHandling){case"merge":d=E(E({},this.currentUrlTree.queryParams),s);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=s||null}d!==null&&(d=this.removeEmptyProps(d));let v;try{let y=o?o.snapshot:this.routerState.snapshot.root;v=Au(y)}catch{(typeof t[0]!="string"||t[0][0]!=="/")&&(t=[]),v=this.currentUrlTree.root}return Ru(v,t,d,u??null)}navigateByUrl(t,r={skipLocationChange:!1}){let o=dn(t)?t:this.parseUrl(t),s=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(s,Ii,null,r)}navigate(t,r={skipLocationChange:!1}){return Sm(t),this.navigateByUrl(this.createUrlTree(t,r),r)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){try{return this.urlSerializer.parse(t)}catch{return this.urlSerializer.parse("/")}}isActive(t,r){let o;if(r===!0?o=E({},wm):r===!1?o=E({},Em):o=r,dn(t))return uu(this.currentUrlTree,t,o);let s=this.parseUrl(t);return uu(this.currentUrlTree,s,o)}removeEmptyProps(t){return Object.entries(t).reduce((r,[o,s])=>(s!=null&&(r[o]=s),r),{})}scheduleNavigation(t,r,o,s,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((v,y)=>{c=v,l=y});let d=this.pendingTasks.add();return Qu(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:t,extras:s,resolve:c,reject:l,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(v=>Promise.reject(v))}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function Sm(n){for(let e=0;e<n.length;e++)if(n[e]==null)throw new O(4008,!1)}function Tm(n){return!(n instanceof Ai)&&!(n instanceof Gn)}var mt=(()=>{let e=class e{constructor(t,r,o,s,a,c){this.router=t,this.route=r,this.tabIndexAttribute=o,this.renderer=s,this.el=a,this.locationStrategy=c,this.href=null,this.onChanges=new me,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=t.events.subscribe(u=>{u instanceof Le&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(t){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",t)}ngOnChanges(t){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(t){t==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(dn(t)?this.routerLinkInput=t:this.routerLinkInput=Array.isArray(t)?t:[t],this.setTabIndexIfNotOnNativeEl("0"))}onClick(t,r,o,s,a){let c=this.urlTree;if(c===null||this.isAnchorElement&&(t!==0||r||o||s||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 t=this.urlTree;this.href=t!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(t)):null;let r=this.href===null?null:Kl(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",r)}applyAttributeValue(t,r){let o=this.renderer,s=this.el.nativeElement;r!==null?o.setAttribute(s,t,r):o.removeAttribute(s,t)}get urlTree(){return this.routerLinkInput===null?null:dn(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)(f(ie),f(ye),Vl("tabindex"),f(kt),f(Q),f(an))},e.\u0275dir=je({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(r,o){r&1&&X("click",function(a){return o.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),r&2&&Ct("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",Pn],skipLocationChange:[2,"skipLocationChange","skipLocationChange",Pn],replaceUrl:[2,"replaceUrl","replaceUrl",Pn],routerLink:"routerLink"},standalone:!0,features:[Yl,dt]});let n=e;return n})(),Kn=(()=>{let e=class e{get isActive(){return this._isActive}constructor(t,r,o,s,a){this.router=t,this.element=r,this.renderer=o,this.cdr=s,this.link=a,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new Ue,this.routerEventsSubscription=t.events.subscribe(c=>{c instanceof Le&&this.update()})}ngAfterContentInit(){k(this.links.changes,k(null)).pipe(ti()).subscribe(t=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let t=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=we(t).pipe(ti()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update()})}set routerLinkActive(t){let r=Array.isArray(t)?t:t.split(" ");this.classes=r.filter(o=>!!o)}ngOnChanges(t){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let t=this.hasActiveLinks();this.classes.forEach(r=>{t?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r)}),t&&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!==t&&(this._isActive=t,this.cdr.markForCheck(),this.isActiveChange.emit(t))})}isLinkActive(t){let r=Im(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return o=>{let s=o.urlTree;return s?t.isActive(s,r):!1}}hasActiveLinks(){let t=this.isLinkActive(this.router);return this.link&&t(this.link)||this.links.some(t)}};e.\u0275fac=function(r){return new(r||e)(f(ie),f(Q),f(kt),f(Ut),f(mt,8))},e.\u0275dir=je({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(r,o,s){if(r&1&&nc(s,mt,5),r&2){let a;ht(a=pt())&&(o.links=a)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[dt]});let n=e;return n})();function Im(n){return!!n.paths}var go=class{};var xm=(()=>{let e=class e{constructor(t,r,o,s,a){this.router=t,this.injector=o,this.preloadingStrategy=s,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(Ge(t=>t instanceof Le),Pt(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,r){let o=[];for(let s of r){s.providers&&!s._injector&&(s._injector=cs(s.providers,t,`Route: ${s.path}`));let a=s._injector??t,c=s._loadedInjector??a;(s.loadChildren&&!s._loadedRoutes&&s.canLoad===void 0||s.loadComponent&&!s._loadedComponent)&&o.push(this.preloadConfig(a,s)),(s.children||s._loadedRoutes)&&o.push(this.processRoutes(c,s.children??s._loadedRoutes))}return we(o).pipe(ti())}preloadConfig(t,r){return this.preloadingStrategy.preload(r,()=>{let o;r.loadChildren&&r.canLoad===void 0?o=this.loader.loadChildren(t,r):o=k(null);let s=o.pipe(He(a=>a===null?k(void 0):(r._loadedRoutes=a.routes,r._loadedInjector=a.injector,this.processRoutes(a.injector??t,a.routes))));if(r.loadComponent&&!r._loadedComponent){let a=this.loader.loadComponent(r);return we([s,a]).pipe(ti())}else return s})}};e.\u0275fac=function(r){return new(r||e)(I(ie),I(Mr),I(tn),I(go),I(ua))},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),Zu=new q(""),Dm=(()=>{let e=class e{constructor(t,r,o,s,a={}){this.urlSerializer=t,this.transitions=r,this.viewportScroller=o,this.zone=s,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},a.scrollPositionRestoration||="disabled",a.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof Hn?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof Le?(this.lastId=t.id,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.urlAfterRedirects).fragment)):t instanceof qt&&t.code===oo.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof ao&&(t.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(t.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new ao(t,this.lastSource==="popstate"?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}};e.\u0275fac=function(r){Ql()},e.\u0275prov=A({token:e,factory:e.\u0275fac});let n=e;return n})();function Mm(n){return n.routerState.root}function $i(n,e){return{\u0275kind:n,\u0275providers:e}}function Am(){let n=P(In);return e=>{let i=n.get(jt);if(e!==i.components[0])return;let t=n.get(ie),r=n.get(Xu);n.get(pa)===1&&t.initialNavigation(),n.get(Yu,null,is.Optional)?.setUpPreloading(),n.get(Zu,null,is.Optional)?.init(),t.resetRootComponentType(i.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}var Xu=new q("",{factory:()=>new me}),pa=new q("",{providedIn:"root",factory:()=>1});function Rm(){return $i(2,[{provide:pa,useValue:0},{provide:si,multi:!0,deps:[In],useFactory:e=>{let i=e.get(mc,Promise.resolve());return()=>i.then(()=>new Promise(t=>{let r=e.get(ie),o=e.get(Xu);Qu(r,()=>{t(!0)}),e.get(ha).afterPreactivation=()=>(t(!0),o.closed?k(void 0):o),r.initialNavigation()}))}}])}function Pm(){return $i(3,[{provide:si,multi:!0,useFactory:()=>{let e=P(ie);return()=>{e.setUpLocationChangeListener()}}},{provide:pa,useValue:2}])}var Yu=new q("");function Om(n){return $i(0,[{provide:Yu,useExisting:xm},{provide:go,useExisting:n}])}function Nm(){return $i(8,[fu,{provide:vo,useExisting:fu}])}function Fm(n){let e=[{provide:qu,useValue:fm},{provide:Wu,useValue:E({skipNextTransition:!!n?.skipInitialTransition},n)}];return $i(9,e)}var yu=new q("ROUTER_FORROOT_GUARD"),km=[wt,{provide:ki,useClass:zn},ie,Vi,{provide:ye,useFactory:Mm,deps:[ie]},ua,[]],Bi=(()=>{let e=class e{constructor(t){}static forRoot(t,r){return{ngModule:e,providers:[km,[],{provide:mo,multi:!0,useValue:t},{provide:yu,useFactory:Um,deps:[[ie,new rs,new Fl]]},{provide:Ui,useValue:r||{}},r?.useHash?Vm():jm(),Lm(),r?.preloadingStrategy?Om(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?$m(r):[],r?.bindToComponentInputs?Nm().\u0275providers:[],r?.enableViewTransitions?Fm().\u0275providers:[],Bm()]}}static forChild(t){return{ngModule:e,providers:[{provide:mo,multi:!0,useValue:t}]}}};e.\u0275fac=function(r){return new(r||e)(I(yu,8))},e.\u0275mod=ce({type:e}),e.\u0275inj=le({});let n=e;return n})();function Lm(){return{provide:Zu,useFactory:()=>{let n=P(Or),e=P(Ee),i=P(Ui),t=P(ha),r=P(ki);return i.scrollOffset&&n.setOffset(i.scrollOffset),new Dm(r,t,n,e,i)}}}function Vm(){return{provide:an,useClass:vc}}function jm(){return{provide:an,useClass:gc}}function Um(n){return"guarded"}function $m(n){return[n.initialNavigation==="disabled"?Pm().\u0275providers:[],n.initialNavigation==="enabledBlocking"?Rm().\u0275providers:[]]}var _u=new q("");function Bm(){return[{provide:_u,useFactory:Am},{provide:ds,multi:!0,useExisting:_u}]}var B=function(n){return n[n.State=0]="State",n[n.Transition=1]="Transition",n[n.Sequence=2]="Sequence",n[n.Group=3]="Group",n[n.Animate=4]="Animate",n[n.Keyframes=5]="Keyframes",n[n.Style=6]="Style",n[n.Trigger=7]="Trigger",n[n.Reference=8]="Reference",n[n.AnimateChild=9]="AnimateChild",n[n.AnimateRef=10]="AnimateRef",n[n.Query=11]="Query",n[n.Stagger=12]="Stagger",n}(B||{}),gt="*";function Ju(n,e=null){return{type:B.Sequence,steps:n,options:e}}function fa(n){return{type:B.Style,styles:n,offset:null}}var Qt=class{constructor(e=0,i=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+i}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){let i=e=="start"?this._onStartFns:this._onDoneFns;i.forEach(t=>t()),i.length=0}},zi=class{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let i=0,t=0,r=0,o=this.players.length;o==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++i==o&&this._onFinish()}),s.onDestroy(()=>{++t==o&&this._onDestroy()}),s.onStart(()=>{++r==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){let i=e*this.totalTime;this.players.forEach(t=>{let r=t.totalTime?Math.min(1,i/t.totalTime):1;t.setPosition(r)})}getPosition(){let e=this.players.reduce((i,t)=>i===null||t.totalTime>i.totalTime?t:i,null);return e!=null?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){let i=e=="start"?this._onStartFns:this._onDoneFns;i.forEach(t=>t()),i.length=0}},_o="!";function ed(n){return new O(3e3,!1)}function zm(){return new O(3100,!1)}function Hm(){return new O(3101,!1)}function Gm(n){return new O(3001,!1)}function qm(n){return new O(3003,!1)}function Wm(n){return new O(3004,!1)}function Km(n,e){return new O(3005,!1)}function Qm(){return new O(3006,!1)}function Zm(){return new O(3007,!1)}function Xm(n,e){return new O(3008,!1)}function Ym(n){return new O(3002,!1)}function Jm(n,e,i,t,r){return new O(3010,!1)}function eg(){return new O(3011,!1)}function tg(){return new O(3012,!1)}function ng(){return new O(3200,!1)}function ig(){return new O(3202,!1)}function rg(){return new O(3013,!1)}function og(n){return new O(3014,!1)}function sg(n){return new O(3015,!1)}function ag(n){return new O(3016,!1)}function lg(n,e){return new O(3404,!1)}function cg(n){return new O(3502,!1)}function ug(n){return new O(3503,!1)}function dg(){return new O(3300,!1)}function hg(n){return new O(3504,!1)}function pg(n){return new O(3301,!1)}function fg(n,e){return new O(3302,!1)}function mg(n){return new O(3303,!1)}function gg(n,e){return new O(3400,!1)}function vg(n){return new O(3401,!1)}function yg(n){return new O(3402,!1)}function _g(n,e){return new O(3505,!1)}function Zt(n){switch(n.length){case 0:return new Qt;case 1:return n[0];default:return new zi(n)}}function fd(n,e,i=new Map,t=new Map){let r=[],o=[],s=-1,a=null;if(e.forEach(c=>{let l=c.get("offset"),u=l==s,d=u&&a||new Map;c.forEach((v,y)=>{let w=y,R=v;if(y!=="offset")switch(w=n.normalizePropertyName(w,r),R){case _o:R=i.get(y);break;case gt:R=t.get(y);break;default:R=n.normalizeStyleValue(y,w,R,r);break}d.set(w,R)}),u||o.push(d),a=d,s=l}),r.length)throw cg(r);return o}function La(n,e,i,t){switch(e){case"start":n.onStart(()=>t(i&&ma(i,"start",n)));break;case"done":n.onDone(()=>t(i&&ma(i,"done",n)));break;case"destroy":n.onDestroy(()=>t(i&&ma(i,"destroy",n)));break}}function ma(n,e,i){let t=i.totalTime,r=!!i.disabled,o=Va(n.element,n.triggerName,n.fromState,n.toState,e||n.phaseName,t??n.totalTime,r),s=n._data;return s!=null&&(o._data=s),o}function Va(n,e,i,t,r="",o=0,s){return{element:n,triggerName:e,fromState:i,toState:t,phaseName:r,totalTime:o,disabled:!!s}}function Ze(n,e,i){let t=n.get(e);return t||n.set(e,t=i),t}function td(n){let e=n.indexOf(":"),i=n.substring(1,e),t=n.slice(e+1);return[i,t]}var Cg=typeof document>"u"?null:document.documentElement;function ja(n){let e=n.parentNode||n.host||null;return e===Cg?null:e}function bg(n){return n.substring(1,6)=="ebkit"}var hn=null,nd=!1;function wg(n){hn||(hn=Eg()||{},nd=hn.style?"WebkitAppearance"in hn.style:!1);let e=!0;return hn.style&&!bg(n)&&(e=n in hn.style,!e&&nd&&(e="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in hn.style)),e}function Eg(){return typeof document<"u"?document.body:null}function md(n,e){for(;e;){if(e===n)return!0;e=ja(e)}return!1}function gd(n,e,i){if(i)return Array.from(n.querySelectorAll(e));let t=n.querySelector(e);return t?[t]:[]}var Ua=(()=>{let e=class e{validateStyleProperty(t){return wg(t)}containsElement(t,r){return md(t,r)}getParentElement(t){return ja(t)}query(t,r,o){return gd(t,r,o)}computeStyle(t,r,o){return o||""}animate(t,r,o,s,a,c=[],l){return new Qt(o,s)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=A({token:e,factory:e.\u0275fac});let n=e;return n})(),Ha=class Ha{};Ha.NOOP=new Ua;var mn=Ha,gn=class{};var Sg=1e3,vd="{{",Tg="}}",yd="ng-enter",ba="ng-leave",Co="ng-trigger",To=".ng-trigger",id="ng-animating",wa=".ng-animating";function It(n){if(typeof n=="number")return n;let e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Ea(parseFloat(e[1]),e[2])}function Ea(n,e){switch(e){case"s":return n*Sg;default:return n}}function Io(n,e,i){return n.hasOwnProperty("duration")?n:Ig(n,e,i)}function Ig(n,e,i){let t=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,r,o=0,s="";if(typeof n=="string"){let a=n.match(t);if(a===null)return e.push(ed(n)),{duration:0,delay:0,easing:""};r=Ea(parseFloat(a[1]),a[2]);let c=a[3];c!=null&&(o=Ea(parseFloat(c),a[4]));let l=a[5];l&&(s=l)}else r=n;if(!i){let a=!1,c=e.length;r<0&&(e.push(zm()),a=!0),o<0&&(e.push(Hm()),a=!0),a&&e.splice(c,0,ed(n))}return{duration:r,delay:o,easing:s}}function xg(n){return n.length?n[0]instanceof Map?n:n.map(e=>new Map(Object.entries(e))):[]}function vt(n,e,i){e.forEach((t,r)=>{let o=$a(r);i&&!i.has(r)&&i.set(r,n.style[o]),n.style[o]=t})}function fn(n,e){e.forEach((i,t)=>{let r=$a(t);n.style[r]=""})}function Hi(n){return Array.isArray(n)?n.length==1?n[0]:Ju(n):n}function Dg(n,e,i){let t=e.params||{},r=_d(n);r.length&&r.forEach(o=>{t.hasOwnProperty(o)||i.push(Gm(o))})}var Sa=new RegExp(`${vd}\\s*(.+?)\\s*${Tg}`,"g");function _d(n){let e=[];if(typeof n=="string"){let i;for(;i=Sa.exec(n);)e.push(i[1]);Sa.lastIndex=0}return e}function qi(n,e,i){let t=`${n}`,r=t.replace(Sa,(o,s)=>{let a=e[s];return a==null&&(i.push(qm(s)),a=""),a.toString()});return r==t?n:r}var Mg=/-+([a-z0-9])/g;function $a(n){return n.replace(Mg,(...e)=>e[1].toUpperCase())}function Ag(n,e){return n===0||e===0}function Rg(n,e,i){if(i.size&&e.length){let t=e[0],r=[];if(i.forEach((o,s)=>{t.has(s)||r.push(s),t.set(s,o)}),r.length)for(let o=1;o<e.length;o++){let s=e[o];r.forEach(a=>s.set(a,Ba(n,a)))}}return e}function Qe(n,e,i){switch(e.type){case B.Trigger:return n.visitTrigger(e,i);case B.State:return n.visitState(e,i);case B.Transition:return n.visitTransition(e,i);case B.Sequence:return n.visitSequence(e,i);case B.Group:return n.visitGroup(e,i);case B.Animate:return n.visitAnimate(e,i);case B.Keyframes:return n.visitKeyframes(e,i);case B.Style:return n.visitStyle(e,i);case B.Reference:return n.visitReference(e,i);case B.AnimateChild:return n.visitAnimateChild(e,i);case B.AnimateRef:return n.visitAnimateRef(e,i);case B.Query:return n.visitQuery(e,i);case B.Stagger:return n.visitStagger(e,i);default:throw Wm(e.type)}}function Ba(n,e){return window.getComputedStyle(n)[e]}var Pg=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),xo=class extends gn{normalizePropertyName(e,i){return $a(e)}normalizeStyleValue(e,i,t,r){let o="",s=t.toString().trim();if(Pg.has(i)&&t!==0&&t!=="0")if(typeof t=="number")o="px";else{let a=t.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&r.push(Km(e,t))}return s+o}};var Do="*";function Og(n,e){let i=[];return typeof n=="string"?n.split(/\s*,\s*/).forEach(t=>Ng(t,i,e)):i.push(n),i}function Ng(n,e,i){if(n[0]==":"){let c=Fg(n,i);if(typeof c=="function"){e.push(c);return}n=c}let t=n.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(t==null||t.length<4)return i.push(sg(n)),e;let r=t[1],o=t[2],s=t[3];e.push(rd(r,s));let a=r==Do&&s==Do;o[0]=="<"&&!a&&e.push(rd(s,r))}function Fg(n,e){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(i,t)=>parseFloat(t)>parseFloat(i);case":decrement":return(i,t)=>parseFloat(t)<parseFloat(i);default:return e.push(ag(n)),"* => *"}}var bo=new Set(["true","1"]),wo=new Set(["false","0"]);function rd(n,e){let i=bo.has(n)||wo.has(n),t=bo.has(e)||wo.has(e);return(r,o)=>{let s=n==Do||n==r,a=e==Do||e==o;return!s&&i&&typeof r=="boolean"&&(s=r?bo.has(n):wo.has(n)),!a&&t&&typeof o=="boolean"&&(a=o?bo.has(e):wo.has(e)),s&&a}}var Cd=":self",kg=new RegExp(`s*${Cd}s*,?`,"g");function bd(n,e,i,t){return new Ta(n).build(e,i,t)}var od="",Ta=class{constructor(e){this._driver=e}build(e,i,t){let r=new Ia(i);return this._resetContextStyleTimingState(r),Qe(this,Hi(e),r)}_resetContextStyleTimingState(e){e.currentQuerySelector=od,e.collectedStyles=new Map,e.collectedStyles.set(od,new Map),e.currentTime=0}visitTrigger(e,i){let t=i.queryCount=0,r=i.depCount=0,o=[],s=[];return e.name.charAt(0)=="@"&&i.errors.push(Qm()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(i),a.type==B.State){let c=a,l=c.name;l.toString().split(/\s*,\s*/).forEach(u=>{c.name=u,o.push(this.visitState(c,i))}),c.name=l}else if(a.type==B.Transition){let c=this.visitTransition(a,i);t+=c.queryCount,r+=c.depCount,s.push(c)}else i.errors.push(Zm())}),{type:B.Trigger,name:e.name,states:o,transitions:s,queryCount:t,depCount:r,options:null}}visitState(e,i){let t=this.visitStyle(e.styles,i),r=e.options&&e.options.params||null;if(t.containsDynamicStyles){let o=new Set,s=r||{};t.styles.forEach(a=>{a instanceof Map&&a.forEach(c=>{_d(c).forEach(l=>{s.hasOwnProperty(l)||o.add(l)})})}),o.size&&i.errors.push(Xm(e.name,[...o.values()]))}return{type:B.State,name:e.name,style:t,options:r?{params:r}:null}}visitTransition(e,i){i.queryCount=0,i.depCount=0;let t=Qe(this,Hi(e.animation),i),r=Og(e.expr,i.errors);return{type:B.Transition,matchers:r,animation:t,queryCount:i.queryCount,depCount:i.depCount,options:pn(e.options)}}visitSequence(e,i){return{type:B.Sequence,steps:e.steps.map(t=>Qe(this,t,i)),options:pn(e.options)}}visitGroup(e,i){let t=i.currentTime,r=0,o=e.steps.map(s=>{i.currentTime=t;let a=Qe(this,s,i);return r=Math.max(r,i.currentTime),a});return i.currentTime=r,{type:B.Group,steps:o,options:pn(e.options)}}visitAnimate(e,i){let t=Ug(e.timings,i.errors);i.currentAnimateTimings=t;let r,o=e.styles?e.styles:fa({});if(o.type==B.Keyframes)r=this.visitKeyframes(o,i);else{let s=e.styles,a=!1;if(!s){a=!0;let l={};t.easing&&(l.easing=t.easing),s=fa(l)}i.currentTime+=t.duration+t.delay;let c=this.visitStyle(s,i);c.isEmptyStep=a,r=c}return i.currentAnimateTimings=null,{type:B.Animate,timings:t,style:r,options:null}}visitStyle(e,i){let t=this._makeStyleAst(e,i);return this._validateStyleAst(t,i),t}_makeStyleAst(e,i){let t=[],r=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of r)typeof a=="string"?a===gt?t.push(a):i.errors.push(Ym(a)):t.push(new Map(Object.entries(a)));let o=!1,s=null;return t.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!o)){for(let c of a.values())if(c.toString().indexOf(vd)>=0){o=!0;break}}}),{type:B.Style,styles:t,easing:s,offset:e.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(e,i){let t=i.currentAnimateTimings,r=i.currentTime,o=i.currentTime;t&&o>0&&(o-=t.duration+t.delay),e.styles.forEach(s=>{typeof s!="string"&&s.forEach((a,c)=>{let l=i.collectedStyles.get(i.currentQuerySelector),u=l.get(c),d=!0;u&&(o!=r&&o>=u.startTime&&r<=u.endTime&&(i.errors.push(Jm(c,u.startTime,u.endTime,o,r)),d=!1),o=u.startTime),d&&l.set(c,{startTime:o,endTime:r}),i.options&&Dg(a,i.options,i.errors)})})}visitKeyframes(e,i){let t={type:B.Keyframes,styles:[],options:null};if(!i.currentAnimateTimings)return i.errors.push(eg()),t;let r=1,o=0,s=[],a=!1,c=!1,l=0,u=e.steps.map(F=>{let Z=this._makeStyleAst(F,i),te=Z.offset!=null?Z.offset:jg(Z.styles),H=0;return te!=null&&(o++,H=Z.offset=te),c=c||H<0||H>1,a=a||H<l,l=H,s.push(H),Z});c&&i.errors.push(tg()),a&&i.errors.push(ng());let d=e.steps.length,v=0;o>0&&o<d?i.errors.push(ig()):o==0&&(v=r/(d-1));let y=d-1,w=i.currentTime,R=i.currentAnimateTimings,M=R.duration;return u.forEach((F,Z)=>{let te=v>0?Z==y?1:v*Z:s[Z],H=te*M;i.currentTime=w+R.delay+H,R.duration=H,this._validateStyleAst(F,i),F.offset=te,t.styles.push(F)}),t}visitReference(e,i){return{type:B.Reference,animation:Qe(this,Hi(e.animation),i),options:pn(e.options)}}visitAnimateChild(e,i){return i.depCount++,{type:B.AnimateChild,options:pn(e.options)}}visitAnimateRef(e,i){return{type:B.AnimateRef,animation:this.visitReference(e.animation,i),options:pn(e.options)}}visitQuery(e,i){let t=i.currentQuerySelector,r=e.options||{};i.queryCount++,i.currentQuery=e;let[o,s]=Lg(e.selector);i.currentQuerySelector=t.length?t+" "+o:o,Ze(i.collectedStyles,i.currentQuerySelector,new Map);let a=Qe(this,Hi(e.animation),i);return i.currentQuery=null,i.currentQuerySelector=t,{type:B.Query,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:e.selector,options:pn(e.options)}}visitStagger(e,i){i.currentQuery||i.errors.push(rg());let t=e.timings==="full"?{duration:0,delay:0,easing:"full"}:Io(e.timings,i.errors,!0);return{type:B.Stagger,animation:Qe(this,Hi(e.animation),i),timings:t,options:null}}};function Lg(n){let e=!!n.split(/\s*,\s*/).find(i=>i==Cd);return e&&(n=n.replace(kg,"")),n=n.replace(/@\*/g,To).replace(/@\w+/g,i=>To+"-"+i.slice(1)).replace(/:animating/g,wa),[n,e]}function Vg(n){return n?E({},n):null}var Ia=class{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}};function jg(n){if(typeof n=="string")return null;let e=null;if(Array.isArray(n))n.forEach(i=>{if(i instanceof Map&&i.has("offset")){let t=i;e=parseFloat(t.get("offset")),t.delete("offset")}});else if(n instanceof Map&&n.has("offset")){let i=n;e=parseFloat(i.get("offset")),i.delete("offset")}return e}function Ug(n,e){if(n.hasOwnProperty("duration"))return n;if(typeof n=="number"){let o=Io(n,e).duration;return ga(o,0,"")}let i=n;if(i.split(/\s+/).some(o=>o.charAt(0)=="{"&&o.charAt(1)=="{")){let o=ga(0,0,"");return o.dynamic=!0,o.strValue=i,o}let r=Io(i,e);return ga(r.duration,r.delay,r.easing)}function pn(n){return n?(n=E({},n),n.params&&(n.params=Vg(n.params))):n={},n}function ga(n,e,i){return{duration:n,delay:e,easing:i}}function za(n,e,i,t,r,o,s=null,a=!1){return{type:1,element:n,keyframes:e,preStyleProps:i,postStyleProps:t,duration:r,delay:o,totalTime:r+o,easing:s,subTimeline:a}}var Wi=class{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,i){let t=this._map.get(e);t||this._map.set(e,t=[]),t.push(...i)}has(e){return this._map.has(e)}clear(){this._map.clear()}},$g=1,Bg=":enter",zg=new RegExp(Bg,"g"),Hg=":leave",Gg=new RegExp(Hg,"g");function wd(n,e,i,t,r,o=new Map,s=new Map,a,c,l=[]){return new xa().buildKeyframes(n,e,i,t,r,o,s,a,c,l)}var xa=class{buildKeyframes(e,i,t,r,o,s,a,c,l,u=[]){l=l||new Wi;let d=new Da(e,i,l,r,o,u,[]);d.options=c;let v=c.delay?It(c.delay):0;d.currentTimeline.delayNextStep(v),d.currentTimeline.setStyles([s],null,d.errors,c),Qe(this,t,d);let y=d.timelines.filter(w=>w.containsAnimation());if(y.length&&a.size){let w;for(let R=y.length-1;R>=0;R--){let M=y[R];if(M.element===i){w=M;break}}w&&!w.allowOnlyTimelineStyles()&&w.setStyles([a],null,d.errors,c)}return y.length?y.map(w=>w.buildKeyframes()):[za(i,[],[],[],0,v,"",!1)]}visitTrigger(e,i){}visitState(e,i){}visitTransition(e,i){}visitAnimateChild(e,i){let t=i.subInstructions.get(i.element);if(t){let r=i.createSubContext(e.options),o=i.currentTimeline.currentTime,s=this._visitSubInstructions(t,r,r.options);o!=s&&i.transformIntoNewTimeline(s)}i.previousNode=e}visitAnimateRef(e,i){let t=i.createSubContext(e.options);t.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],i,t),this.visitReference(e.animation,t),i.transformIntoNewTimeline(t.currentTimeline.currentTime),i.previousNode=e}_applyAnimationRefDelays(e,i,t){for(let r of e){let o=r?.delay;if(o){let s=typeof o=="number"?o:It(qi(o,r?.params??{},i.errors));t.delayNextStep(s)}}}_visitSubInstructions(e,i,t){let o=i.currentTimeline.currentTime,s=t.duration!=null?It(t.duration):null,a=t.delay!=null?It(t.delay):null;return s!==0&&e.forEach(c=>{let l=i.appendInstructionToTimeline(c,s,a);o=Math.max(o,l.duration+l.delay)}),o}visitReference(e,i){i.updateOptions(e.options,!0),Qe(this,e.animation,i),i.previousNode=e}visitSequence(e,i){let t=i.subContextCount,r=i,o=e.options;if(o&&(o.params||o.delay)&&(r=i.createSubContext(o),r.transformIntoNewTimeline(),o.delay!=null)){r.previousNode.type==B.Style&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Mo);let s=It(o.delay);r.delayNextStep(s)}e.steps.length&&(e.steps.forEach(s=>Qe(this,s,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>t&&r.transformIntoNewTimeline()),i.previousNode=e}visitGroup(e,i){let t=[],r=i.currentTimeline.currentTime,o=e.options&&e.options.delay?It(e.options.delay):0;e.steps.forEach(s=>{let a=i.createSubContext(e.options);o&&a.delayNextStep(o),Qe(this,s,a),r=Math.max(r,a.currentTimeline.currentTime),t.push(a.currentTimeline)}),t.forEach(s=>i.currentTimeline.mergeTimelineCollectedStyles(s)),i.transformIntoNewTimeline(r),i.previousNode=e}_visitTiming(e,i){if(e.dynamic){let t=e.strValue,r=i.params?qi(t,i.params,i.errors):t;return Io(r,i.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,i){let t=i.currentAnimateTimings=this._visitTiming(e.timings,i),r=i.currentTimeline;t.delay&&(i.incrementTime(t.delay),r.snapshotCurrentStyles());let o=e.style;o.type==B.Keyframes?this.visitKeyframes(o,i):(i.incrementTime(t.duration),this.visitStyle(o,i),r.applyStylesToKeyframe()),i.currentAnimateTimings=null,i.previousNode=e}visitStyle(e,i){let t=i.currentTimeline,r=i.currentAnimateTimings;!r&&t.hasCurrentStyleProperties()&&t.forwardFrame();let o=r&&r.easing||e.easing;e.isEmptyStep?t.applyEmptyStep(o):t.setStyles(e.styles,o,i.errors,i.options),i.previousNode=e}visitKeyframes(e,i){let t=i.currentAnimateTimings,r=i.currentTimeline.duration,o=t.duration,a=i.createSubContext().currentTimeline;a.easing=t.easing,e.styles.forEach(c=>{let l=c.offset||0;a.forwardTime(l*o),a.setStyles(c.styles,c.easing,i.errors,i.options),a.applyStylesToKeyframe()}),i.currentTimeline.mergeTimelineCollectedStyles(a),i.transformIntoNewTimeline(r+o),i.previousNode=e}visitQuery(e,i){let t=i.currentTimeline.currentTime,r=e.options||{},o=r.delay?It(r.delay):0;o&&(i.previousNode.type===B.Style||t==0&&i.currentTimeline.hasCurrentStyleProperties())&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=Mo);let s=t,a=i.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,i.errors);i.currentQueryTotal=a.length;let c=null;a.forEach((l,u)=>{i.currentQueryIndex=u;let d=i.createSubContext(e.options,l);o&&d.delayNextStep(o),l===i.element&&(c=d.currentTimeline),Qe(this,e.animation,d),d.currentTimeline.applyStylesToKeyframe();let v=d.currentTimeline.currentTime;s=Math.max(s,v)}),i.currentQueryIndex=0,i.currentQueryTotal=0,i.transformIntoNewTimeline(s),c&&(i.currentTimeline.mergeTimelineCollectedStyles(c),i.currentTimeline.snapshotCurrentStyles()),i.previousNode=e}visitStagger(e,i){let t=i.parentContext,r=i.currentTimeline,o=e.timings,s=Math.abs(o.duration),a=s*(i.currentQueryTotal-1),c=s*i.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":c=a-c;break;case"full":c=t.currentStaggerTime;break}let u=i.currentTimeline;c&&u.delayNextStep(c);let d=u.currentTime;Qe(this,e.animation,i),i.previousNode=e,t.currentStaggerTime=r.currentTime-d+(r.startTime-t.currentTimeline.startTime)}},Mo={},Da=class n{constructor(e,i,t,r,o,s,a,c){this._driver=e,this.element=i,this.subInstructions=t,this._enterClassName=r,this._leaveClassName=o,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Mo,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=c||new Ao(this._driver,i,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,i){if(!e)return;let t=e,r=this.options;t.duration!=null&&(r.duration=It(t.duration)),t.delay!=null&&(r.delay=It(t.delay));let o=t.params;if(o){let s=r.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!i||!s.hasOwnProperty(a))&&(s[a]=qi(o[a],s,this.errors))})}}_copyOptions(){let e={};if(this.options){let i=this.options.params;if(i){let t=e.params={};Object.keys(i).forEach(r=>{t[r]=i[r]})}}return e}createSubContext(e=null,i,t){let r=i||this.element,o=new n(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,t||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(e),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(e){return this.previousNode=Mo,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,i,t){let r={duration:i??e.duration,delay:this.currentTimeline.currentTime+(t??0)+e.delay,easing:""},o=new Ma(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,i,t,r,o,s){let a=[];if(r&&a.push(this.element),e.length>0){e=e.replace(zg,"."+this._enterClassName),e=e.replace(Gg,"."+this._leaveClassName);let c=t!=1,l=this._driver.query(this.element,e,c);t!==0&&(l=t<0?l.slice(l.length+t,l.length):l.slice(0,t)),a.push(...l)}return!o&&a.length==0&&s.push(og(i)),a}},Ao=class n{constructor(e,i,t,r){this._driver=e,this.element=i,this.startTime=t,this._elementTimelineStylesLookup=r,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(i),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(i,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let i=this._keyframes.size===1&&this._pendingStyles.size;this.duration||i?(this.forwardTime(this.currentTime+e),i&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,i){return this.applyStylesToKeyframe(),new n(this._driver,e,i||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=$g,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,i){this._localTimelineStyles.set(e,i),this._globalTimelineStyles.set(e,i),this._styleSummary.set(e,{time:this.currentTime,value:i})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[i,t]of this._globalTimelineStyles)this._backFill.set(i,t||gt),this._currentKeyframe.set(i,gt);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,i,t,r){i&&this._previousKeyframe.set("easing",i);let o=r&&r.params||{},s=qg(e,this._globalTimelineStyles);for(let[a,c]of s){let l=qi(c,o,t);this._pendingStyles.set(a,l),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??gt),this._updateStyle(a,l)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,i)=>{this._currentKeyframe.set(i,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,i)=>{this._currentKeyframe.has(i)||this._currentKeyframe.set(i,e)}))}snapshotCurrentStyles(){for(let[e,i]of this._localTimelineStyles)this._pendingStyles.set(e,i),this._updateStyle(e,i)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let i in this._currentKeyframe)e.push(i);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((i,t)=>{let r=this._styleSummary.get(t);(!r||i.time>r.time)&&this._updateStyle(t,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,i=new Set,t=this._keyframes.size===1&&this.duration===0,r=[];this._keyframes.forEach((a,c)=>{let l=new Map([...this._backFill,...a]);l.forEach((u,d)=>{u===_o?e.add(d):u===gt&&i.add(d)}),t||l.set("offset",c/this.duration),r.push(l)});let o=[...e.values()],s=[...i.values()];if(t){let a=r[0],c=new Map(a);a.set("offset",0),c.set("offset",1),r=[a,c]}return za(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)}},Ma=class extends Ao{constructor(e,i,t,r,o,s,a=!1){super(e,i,s.delay),this.keyframes=t,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:i,duration:t,easing:r}=this.timings;if(this._stretchStartingKeyframe&&i){let o=[],s=t+i,a=i/s,c=new Map(e[0]);c.set("offset",0),o.push(c);let l=new Map(e[0]);l.set("offset",sd(a)),o.push(l);let u=e.length-1;for(let d=1;d<=u;d++){let v=new Map(e[d]),y=v.get("offset"),w=i+y*t;v.set("offset",sd(w/s)),o.push(v)}t=s,i=0,r="",e=o}return za(this.element,e,this.preStyleProps,this.postStyleProps,t,i,r,!0)}};function sd(n,e=3){let i=Math.pow(10,e-1);return Math.round(n*i)/i}function qg(n,e){let i=new Map,t;return n.forEach(r=>{if(r==="*"){t??=e.keys();for(let o of t)i.set(o,gt)}else for(let[o,s]of r)i.set(o,s)}),i}function ad(n,e,i,t,r,o,s,a,c,l,u,d,v){return{type:0,element:n,triggerName:e,isRemovalTransition:r,fromState:i,fromStyles:o,toState:t,toStyles:s,timelines:a,queriedElements:c,preStyleProps:l,postStyleProps:u,totalTime:d,errors:v}}var va={},Ro=class{constructor(e,i,t){this._triggerName=e,this.ast=i,this._stateStyles=t}match(e,i,t,r){return Wg(this.ast.matchers,e,i,t,r)}buildStyles(e,i,t){let r=this._stateStyles.get("*");return e!==void 0&&(r=this._stateStyles.get(e?.toString())||r),r?r.buildStyles(i,t):new Map}build(e,i,t,r,o,s,a,c,l,u){let d=[],v=this.ast.options&&this.ast.options.params||va,y=a&&a.params||va,w=this.buildStyles(t,y,d),R=c&&c.params||va,M=this.buildStyles(r,R,d),F=new Set,Z=new Map,te=new Map,H=r==="void",Ye={params:Ed(R,v),delay:this.ast.options?.delay},Ce=u?[]:wd(e,i,this.ast.animation,o,s,w,M,Ye,l,d),he=0;return Ce.forEach(xe=>{he=Math.max(xe.duration+xe.delay,he)}),d.length?ad(i,this._triggerName,t,r,H,w,M,[],[],Z,te,he,d):(Ce.forEach(xe=>{let Xt=xe.element,En=Ze(Z,Xt,new Set);xe.preStyleProps.forEach(Yt=>En.add(Yt));let Cl=Ze(te,Xt,new Set);xe.postStyleProps.forEach(Yt=>Cl.add(Yt)),Xt!==i&&F.add(Xt)}),ad(i,this._triggerName,t,r,H,w,M,Ce,[...F.values()],Z,te,he))}};function Wg(n,e,i,t,r){return n.some(o=>o(e,i,t,r))}function Ed(n,e){let i=E({},e);return Object.entries(n).forEach(([t,r])=>{r!=null&&(i[t]=r)}),i}var Aa=class{constructor(e,i,t){this.styles=e,this.defaultParams=i,this.normalizer=t}buildStyles(e,i){let t=new Map,r=Ed(e,this.defaultParams);return this.styles.styles.forEach(o=>{typeof o!="string"&&o.forEach((s,a)=>{s&&(s=qi(s,r,i));let c=this.normalizer.normalizePropertyName(a,i);s=this.normalizer.normalizeStyleValue(a,c,s,i),t.set(a,s)})}),t}};function Kg(n,e,i){return new Ra(n,e,i)}var Ra=class{constructor(e,i,t){this.name=e,this.ast=i,this._normalizer=t,this.transitionFactories=[],this.states=new Map,i.states.forEach(r=>{let o=r.options&&r.options.params||{};this.states.set(r.name,new Aa(r.style,o,t))}),ld(this.states,"true","1"),ld(this.states,"false","0"),i.transitions.forEach(r=>{this.transitionFactories.push(new Ro(e,r,this.states))}),this.fallbackTransition=Qg(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,i,t,r){return this.transitionFactories.find(s=>s.match(e,i,t,r))||null}matchStyles(e,i,t){return this.fallbackTransition.buildStyles(e,i,t)}};function Qg(n,e,i){let t=[(s,a)=>!0],r={type:B.Sequence,steps:[],options:null},o={type:B.Transition,animation:r,matchers:t,options:null,queryCount:0,depCount:0};return new Ro(n,o,e)}function ld(n,e,i){n.has(e)?n.has(i)||n.set(i,n.get(e)):n.has(i)&&n.set(e,n.get(i))}var Zg=new Wi,Pa=class{constructor(e,i,t){this.bodyNode=e,this._driver=i,this._normalizer=t,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,i){let t=[],r=[],o=bd(this._driver,i,t,r);if(t.length)throw ug(t);r.length&&void 0,this._animations.set(e,o)}_buildPlayer(e,i,t){let r=e.element,o=fd(this._normalizer,e.keyframes,i,t);return this._driver.animate(r,o,e.duration,e.delay,e.easing,[],!0)}create(e,i,t={}){let r=[],o=this._animations.get(e),s,a=new Map;if(o?(s=wd(this._driver,i,o,yd,ba,new Map,new Map,t,Zg,r),s.forEach(u=>{let d=Ze(a,u.element,new Map);u.postStyleProps.forEach(v=>d.set(v,null))})):(r.push(dg()),s=[]),r.length)throw hg(r);a.forEach((u,d)=>{u.forEach((v,y)=>{u.set(y,this._driver.computeStyle(d,y,gt))})});let c=s.map(u=>{let d=a.get(u.element);return this._buildPlayer(u,new Map,d)}),l=Zt(c);return this._playersById.set(e,l),l.onDestroy(()=>this.destroy(e)),this.players.push(l),l}destroy(e){let i=this._getPlayer(e);i.destroy(),this._playersById.delete(e);let t=this.players.indexOf(i);t>=0&&this.players.splice(t,1)}_getPlayer(e){let i=this._playersById.get(e);if(!i)throw pg(e);return i}listen(e,i,t,r){let o=Va(i,"","","");return La(this._getPlayer(e),t,o,r),()=>{}}command(e,i,t,r){if(t=="register"){this.register(e,r[0]);return}if(t=="create"){let s=r[0]||{};this.create(e,i,s);return}let o=this._getPlayer(e);switch(t){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(e);break}}},cd="ng-animate-queued",Xg=".ng-animate-queued",ya="ng-animate-disabled",Yg=".ng-animate-disabled",Jg="ng-star-inserted",e0=".ng-star-inserted",t0=[],Sd={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},n0={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},at="__ng_removed",Ki=class{get params(){return this.options.params}constructor(e,i=""){this.namespaceId=i;let t=e&&e.hasOwnProperty("value"),r=t?e.value:e;if(this.value=r0(r),t){let o=e,{value:s}=o,a=Qo(o,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let i=e.params;if(i){let t=this.options.params;Object.keys(i).forEach(r=>{t[r]==null&&(t[r]=i[r])})}}},Gi="void",_a=new Ki(Gi),Oa=class{constructor(e,i,t){this.id=e,this.hostElement=i,this._engine=t,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,it(i,this._hostClassName)}listen(e,i,t,r){if(!this._triggers.has(i))throw fg(t,i);if(t==null||t.length==0)throw mg(i);if(!o0(t))throw gg(t,i);let o=Ze(this._elementListeners,e,[]),s={name:i,phase:t,callback:r};o.push(s);let a=Ze(this._engine.statesByElement,e,new Map);return a.has(i)||(it(e,Co),it(e,Co+"-"+i),a.set(i,_a)),()=>{this._engine.afterFlush(()=>{let c=o.indexOf(s);c>=0&&o.splice(c,1),this._triggers.has(i)||a.delete(i)})}}register(e,i){return this._triggers.has(e)?!1:(this._triggers.set(e,i),!0)}_getTrigger(e){let i=this._triggers.get(e);if(!i)throw vg(e);return i}trigger(e,i,t,r=!0){let o=this._getTrigger(i),s=new Qi(this.id,i,e),a=this._engine.statesByElement.get(e);a||(it(e,Co),it(e,Co+"-"+i),this._engine.statesByElement.set(e,a=new Map));let c=a.get(i),l=new Ki(t,this.id);if(!(t&&t.hasOwnProperty("value"))&&c&&l.absorbOptions(c.options),a.set(i,l),c||(c=_a),!(l.value===Gi)&&c.value===l.value){if(!l0(c.params,l.params)){let R=[],M=o.matchStyles(c.value,c.params,R),F=o.matchStyles(l.value,l.params,R);R.length?this._engine.reportError(R):this._engine.afterFlush(()=>{fn(e,M),vt(e,F)})}return}let v=Ze(this._engine.playersByElement,e,[]);v.forEach(R=>{R.namespaceId==this.id&&R.triggerName==i&&R.queued&&R.destroy()});let y=o.matchTransition(c.value,l.value,e,l.params),w=!1;if(!y){if(!r)return;y=o.fallbackTransition,w=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:i,transition:y,fromState:c,toState:l,player:s,isFallbackTransition:w}),w||(it(e,cd),s.onStart(()=>{Qn(e,cd)})),s.onDone(()=>{let R=this.players.indexOf(s);R>=0&&this.players.splice(R,1);let M=this._engine.playersByElement.get(e);if(M){let F=M.indexOf(s);F>=0&&M.splice(F,1)}}),this.players.push(s),v.push(s),s}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(i=>i.delete(e)),this._elementListeners.forEach((i,t)=>{this._elementListeners.set(t,i.filter(r=>r.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let i=this._engine.playersByElement.get(e);i&&(i.forEach(t=>t.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,i){let t=this._engine.driver.query(e,To,!0);t.forEach(r=>{if(r[at])return;let o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(s=>s.triggerLeaveAnimation(r,i,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>t.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(e,i,t,r){let o=this._engine.statesByElement.get(e),s=new Map;if(o){let a=[];if(o.forEach((c,l)=>{if(s.set(l,c.value),this._triggers.has(l)){let u=this.trigger(e,l,Gi,r);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,i,s),t&&Zt(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let i=this._elementListeners.get(e),t=this._engine.statesByElement.get(e);if(i&&t){let r=new Set;i.forEach(o=>{let s=o.name;if(r.has(s))return;r.add(s);let c=this._triggers.get(s).fallbackTransition,l=t.get(s)||_a,u=new Ki(Gi),d=new Qi(this.id,s,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:s,transition:c,fromState:l,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(e,i){let t=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,i),this.triggerLeaveAnimation(e,i,!0))return;let r=!1;if(t.totalAnimations){let o=t.players.length?t.playersByQueriedElement.get(e):[];if(o&&o.length)r=!0;else{let s=e;for(;s=s.parentNode;)if(t.statesByElement.get(s)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(e),r)t.markElementAsRemoved(this.id,e,!1,i);else{let o=e[at];(!o||o===Sd)&&(t.afterFlush(()=>this.clearElementCache(e)),t.destroyInnerAnimations(e),t._onRemovalComplete(e,i))}}insertNode(e,i){it(e,this._hostClassName)}drainQueuedTransitions(e){let i=[];return this._queue.forEach(t=>{let r=t.player;if(r.destroyed)return;let o=t.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==t.triggerName){let c=Va(o,t.triggerName,t.fromState.value,t.toState.value);c._data=e,La(t.player,a.phase,c,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):i.push(t)}),this._queue=[],i.sort((t,r)=>{let o=t.transition.ast.depCount,s=r.transition.ast.depCount;return o==0||s==0?o-s:this._engine.driver.containsElement(t.element,r.element)?1:-1})}destroy(e){this.players.forEach(i=>i.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},Na=class{_onRemovalComplete(e,i){this.onRemovalComplete(e,i)}constructor(e,i,t){this.bodyNode=e,this.driver=i,this._normalizer=t,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,o)=>{}}get queuedPlayers(){let e=[];return this._namespaceList.forEach(i=>{i.players.forEach(t=>{t.queued&&e.push(t)})}),e}createNamespace(e,i){let t=new Oa(e,i,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,i)?this._balanceNamespaceList(t,i):(this.newHostElements.set(i,t),this.collectEnterElement(i)),this._namespaceLookup[e]=t}_balanceNamespaceList(e,i){let t=this._namespaceList,r=this.namespacesByHostElement;if(t.length-1>=0){let s=!1,a=this.driver.getParentElement(i);for(;a;){let c=r.get(a);if(c){let l=t.indexOf(c);t.splice(l+1,0,e),s=!0;break}a=this.driver.getParentElement(a)}s||t.unshift(e)}else t.push(e);return r.set(i,e),e}register(e,i){let t=this._namespaceLookup[e];return t||(t=this.createNamespace(e,i)),t}registerTrigger(e,i,t){let r=this._namespaceLookup[e];r&&r.register(i,t)&&this.totalAnimations++}destroy(e,i){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let t=this._fetchNamespace(e);this.namespacesByHostElement.delete(t.hostElement);let r=this._namespaceList.indexOf(t);r>=0&&this._namespaceList.splice(r,1),t.destroy(i),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let i=new Set,t=this.statesByElement.get(e);if(t){for(let r of t.values())if(r.namespaceId){let o=this._fetchNamespace(r.namespaceId);o&&i.add(o)}}return i}trigger(e,i,t,r){if(Eo(i)){let o=this._fetchNamespace(e);if(o)return o.trigger(i,t,r),!0}return!1}insertNode(e,i,t,r){if(!Eo(i))return;let o=i[at];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;let s=this.collectedLeaveElements.indexOf(i);s>=0&&this.collectedLeaveElements.splice(s,1)}if(e){let s=this._fetchNamespace(e);s&&s.insertNode(i,t)}r&&this.collectEnterElement(i)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,i){i?this.disabledNodes.has(e)||(this.disabledNodes.add(e),it(e,ya)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Qn(e,ya))}removeNode(e,i,t){if(Eo(i)){let r=e?this._fetchNamespace(e):null;r?r.removeNode(i,t):this.markElementAsRemoved(e,i,!1,t);let o=this.namespacesByHostElement.get(i);o&&o.id!==e&&o.removeNode(i,t)}else this._onRemovalComplete(i,t)}markElementAsRemoved(e,i,t,r,o){this.collectedLeaveElements.push(i),i[at]={namespaceId:e,setForRemoval:r,hasAnimation:t,removedBeforeQueried:!1,previousTriggersValues:o}}listen(e,i,t,r,o){return Eo(i)?this._fetchNamespace(e).listen(i,t,r,o):()=>{}}_buildInstruction(e,i,t,r,o){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,t,r,e.fromState.options,e.toState.options,i,o)}destroyInnerAnimations(e){let i=this.driver.query(e,To,!0);i.forEach(t=>this.destroyActiveAnimationsForElement(t)),this.playersByQueriedElement.size!=0&&(i=this.driver.query(e,wa,!0),i.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(e){let i=this.playersByElement.get(e);i&&i.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(e){let i=this.playersByQueriedElement.get(e);i&&i.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return Zt(this.players).onDone(()=>e());e()})}processLeaveNode(e){let i=e[at];if(i&&i.setForRemoval){if(e[at]=Sd,i.namespaceId){this.destroyInnerAnimations(e);let t=this._fetchNamespace(i.namespaceId);t&&t.clearElementCache(e)}this._onRemovalComplete(e,i.setForRemoval)}e.classList?.contains(ya)&&this.markElementAsDisabled(e,!1),this.driver.query(e,Yg,!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(e=-1){let i=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,r)=>this._balanceNamespaceList(t,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let t=0;t<this.collectedEnterElements.length;t++){let r=this.collectedEnterElements[t];it(r,Jg)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let t=[];try{i=this._flushAnimations(t,e)}finally{for(let r=0;r<t.length;r++)t[r]()}}else for(let t=0;t<this.collectedLeaveElements.length;t++){let r=this.collectedLeaveElements[t];this.processLeaveNode(r)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(t=>t()),this._flushFns=[],this._whenQuietFns.length){let t=this._whenQuietFns;this._whenQuietFns=[],i.length?Zt(i).onDone(()=>{t.forEach(r=>r())}):t.forEach(r=>r())}}reportError(e){throw yg(e)}_flushAnimations(e,i){let t=new Wi,r=[],o=new Map,s=[],a=new Map,c=new Map,l=new Map,u=new Set;this.disabledNodes.forEach(x=>{u.add(x);let N=this.driver.query(x,Xg,!0);for(let V=0;V<N.length;V++)u.add(N[V])});let d=this.bodyNode,v=Array.from(this.statesByElement.keys()),y=hd(v,this.collectedEnterElements),w=new Map,R=0;y.forEach((x,N)=>{let V=yd+R++;w.set(N,V),x.forEach(K=>it(K,V))});let M=[],F=new Set,Z=new Set;for(let x=0;x<this.collectedLeaveElements.length;x++){let N=this.collectedLeaveElements[x],V=N[at];V&&V.setForRemoval&&(M.push(N),F.add(N),V.hasAnimation?this.driver.query(N,e0,!0).forEach(K=>F.add(K)):Z.add(N))}let te=new Map,H=hd(v,Array.from(F));H.forEach((x,N)=>{let V=ba+R++;te.set(N,V),x.forEach(K=>it(K,V))}),e.push(()=>{y.forEach((x,N)=>{let V=w.get(N);x.forEach(K=>Qn(K,V))}),H.forEach((x,N)=>{let V=te.get(N);x.forEach(K=>Qn(K,V))}),M.forEach(x=>{this.processLeaveNode(x)})});let Ye=[],Ce=[];for(let x=this._namespaceList.length-1;x>=0;x--)this._namespaceList[x].drainQueuedTransitions(i).forEach(V=>{let K=V.player,be=V.element;if(Ye.push(K),this.collectedEnterElements.length){let Re=be[at];if(Re&&Re.setForMove){if(Re.previousTriggersValues&&Re.previousTriggersValues.has(V.triggerName)){let Jt=Re.previousTriggersValues.get(V.triggerName),Je=this.statesByElement.get(V.element);if(Je&&Je.has(V.triggerName)){let hr=Je.get(V.triggerName);hr.value=Jt,Je.set(V.triggerName,hr)}}K.destroy();return}}let ct=!d||!this.driver.containsElement(d,be),ze=te.get(be),At=w.get(be),oe=this._buildInstruction(V,t,At,ze,ct);if(oe.errors&&oe.errors.length){Ce.push(oe);return}if(ct){K.onStart(()=>fn(be,oe.fromStyles)),K.onDestroy(()=>vt(be,oe.toStyles)),r.push(K);return}if(V.isFallbackTransition){K.onStart(()=>fn(be,oe.fromStyles)),K.onDestroy(()=>vt(be,oe.toStyles)),r.push(K);return}let El=[];oe.timelines.forEach(Re=>{Re.stretchStartingKeyframe=!0,this.disabledNodes.has(Re.element)||El.push(Re)}),oe.timelines=El,t.append(be,oe.timelines);let gh={instruction:oe,player:K,element:be};s.push(gh),oe.queriedElements.forEach(Re=>Ze(a,Re,[]).push(K)),oe.preStyleProps.forEach((Re,Jt)=>{if(Re.size){let Je=c.get(Jt);Je||c.set(Jt,Je=new Set),Re.forEach((hr,Ko)=>Je.add(Ko))}}),oe.postStyleProps.forEach((Re,Jt)=>{let Je=l.get(Jt);Je||l.set(Jt,Je=new Set),Re.forEach((hr,Ko)=>Je.add(Ko))})});if(Ce.length){let x=[];Ce.forEach(N=>{x.push(_g(N.triggerName,N.errors))}),Ye.forEach(N=>N.destroy()),this.reportError(x)}let he=new Map,xe=new Map;s.forEach(x=>{let N=x.element;t.has(N)&&(xe.set(N,N),this._beforeAnimationBuild(x.player.namespaceId,x.instruction,he))}),r.forEach(x=>{let N=x.element;this._getPreviousPlayers(N,!1,x.namespaceId,x.triggerName,null).forEach(K=>{Ze(he,N,[]).push(K),K.destroy()})});let Xt=M.filter(x=>pd(x,c,l)),En=new Map;dd(En,this.driver,Z,l,gt).forEach(x=>{pd(x,c,l)&&Xt.push(x)});let Yt=new Map;y.forEach((x,N)=>{dd(Yt,this.driver,new Set(x),c,_o)}),Xt.forEach(x=>{let N=En.get(x),V=Yt.get(x);En.set(x,new Map([...N?.entries()??[],...V?.entries()??[]]))});let Wo=[],bl=[],wl={};s.forEach(x=>{let{element:N,player:V,instruction:K}=x;if(t.has(N)){if(u.has(N)){V.onDestroy(()=>vt(N,K.toStyles)),V.disabled=!0,V.overrideTotalTime(K.totalTime),r.push(V);return}let be=wl;if(xe.size>1){let ze=N,At=[];for(;ze=ze.parentNode;){let oe=xe.get(ze);if(oe){be=oe;break}At.push(ze)}At.forEach(oe=>xe.set(oe,be))}let ct=this._buildAnimation(V.namespaceId,K,he,o,Yt,En);if(V.setRealPlayer(ct),be===wl)Wo.push(V);else{let ze=this.playersByElement.get(be);ze&&ze.length&&(V.parentPlayer=Zt(ze)),r.push(V)}}else fn(N,K.fromStyles),V.onDestroy(()=>vt(N,K.toStyles)),bl.push(V),u.has(N)&&r.push(V)}),bl.forEach(x=>{let N=o.get(x.element);if(N&&N.length){let V=Zt(N);x.setRealPlayer(V)}}),r.forEach(x=>{x.parentPlayer?x.syncPlayerEvents(x.parentPlayer):x.destroy()});for(let x=0;x<M.length;x++){let N=M[x],V=N[at];if(Qn(N,ba),V&&V.hasAnimation)continue;let K=[];if(a.size){let ct=a.get(N);ct&&ct.length&&K.push(...ct);let ze=this.driver.query(N,wa,!0);for(let At=0;At<ze.length;At++){let oe=a.get(ze[At]);oe&&oe.length&&K.push(...oe)}}let be=K.filter(ct=>!ct.destroyed);be.length?s0(this,N,be):this.processLeaveNode(N)}return M.length=0,Wo.forEach(x=>{this.players.push(x),x.onDone(()=>{x.destroy();let N=this.players.indexOf(x);this.players.splice(N,1)}),x.play()}),Wo}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,i,t,r,o){let s=[];if(i){let a=this.playersByQueriedElement.get(e);a&&(s=a)}else{let a=this.playersByElement.get(e);if(a){let c=!o||o==Gi;a.forEach(l=>{l.queued||!c&&l.triggerName!=r||s.push(l)})}}return(t||r)&&(s=s.filter(a=>!(t&&t!=a.namespaceId||r&&r!=a.triggerName))),s}_beforeAnimationBuild(e,i,t){let r=i.triggerName,o=i.element,s=i.isRemovalTransition?void 0:e,a=i.isRemovalTransition?void 0:r;for(let c of i.timelines){let l=c.element,u=l!==o,d=Ze(t,l,[]);this._getPreviousPlayers(l,u,s,a,i.toState).forEach(y=>{let w=y.getRealPlayer();w.beforeDestroy&&w.beforeDestroy(),y.destroy(),d.push(y)})}fn(o,i.fromStyles)}_buildAnimation(e,i,t,r,o,s){let a=i.triggerName,c=i.element,l=[],u=new Set,d=new Set,v=i.timelines.map(w=>{let R=w.element;u.add(R);let M=R[at];if(M&&M.removedBeforeQueried)return new Qt(w.duration,w.delay);let F=R!==c,Z=a0((t.get(R)||t0).map(he=>he.getRealPlayer())).filter(he=>{let xe=he;return xe.element?xe.element===R:!1}),te=o.get(R),H=s.get(R),Ye=fd(this._normalizer,w.keyframes,te,H),Ce=this._buildPlayer(w,Ye,Z);if(w.subTimeline&&r&&d.add(R),F){let he=new Qi(e,a,R);he.setRealPlayer(Ce),l.push(he)}return Ce});l.forEach(w=>{Ze(this.playersByQueriedElement,w.element,[]).push(w),w.onDone(()=>i0(this.playersByQueriedElement,w.element,w))}),u.forEach(w=>it(w,id));let y=Zt(v);return y.onDestroy(()=>{u.forEach(w=>Qn(w,id)),vt(c,i.toStyles)}),d.forEach(w=>{Ze(r,w,[]).push(y)}),y}_buildPlayer(e,i,t){return i.length>0?this.driver.animate(e.element,i,e.duration,e.delay,e.easing,t):new Qt(e.duration,e.delay)}},Qi=class{constructor(e,i,t){this.namespaceId=e,this.triggerName=i,this.element=t,this._player=new Qt,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((i,t)=>{i.forEach(r=>La(e,t,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let i=this._player;i.triggerCallback&&e.onStart(()=>i.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,i){Ze(this._queuedCallbacks,e,[]).push(i)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let i=this._player;i.triggerCallback&&i.triggerCallback(e)}};function i0(n,e,i){let t=n.get(e);if(t){if(t.length){let r=t.indexOf(i);t.splice(r,1)}t.length==0&&n.delete(e)}return t}function r0(n){return n??null}function Eo(n){return n&&n.nodeType===1}function o0(n){return n=="start"||n=="done"}function ud(n,e){let i=n.style.display;return n.style.display=e??"none",i}function dd(n,e,i,t,r){let o=[];i.forEach(c=>o.push(ud(c)));let s=[];t.forEach((c,l)=>{let u=new Map;c.forEach(d=>{let v=e.computeStyle(l,d,r);u.set(d,v),(!v||v.length==0)&&(l[at]=n0,s.push(l))}),n.set(l,u)});let a=0;return i.forEach(c=>ud(c,o[a++])),s}function hd(n,e){let i=new Map;if(n.forEach(a=>i.set(a,[])),e.length==0)return i;let t=1,r=new Set(e),o=new Map;function s(a){if(!a)return t;let c=o.get(a);if(c)return c;let l=a.parentNode;return i.has(l)?c=l:r.has(l)?c=t:c=s(l),o.set(a,c),c}return e.forEach(a=>{let c=s(a);c!==t&&i.get(c).push(a)}),i}function it(n,e){n.classList?.add(e)}function Qn(n,e){n.classList?.remove(e)}function s0(n,e,i){Zt(i).onDone(()=>n.processLeaveNode(e))}function a0(n){let e=[];return Td(n,e),e}function Td(n,e){for(let i=0;i<n.length;i++){let t=n[i];t instanceof zi?Td(t.players,e):e.push(t)}}function l0(n,e){let i=Object.keys(n),t=Object.keys(e);if(i.length!=t.length)return!1;for(let r=0;r<i.length;r++){let o=i[r];if(!e.hasOwnProperty(o)||n[o]!==e[o])return!1}return!0}function pd(n,e,i){let t=i.get(n);if(!t)return!1;let r=e.get(n);return r?t.forEach(o=>r.add(o)):e.set(n,t),i.delete(n),!0}var Xn=class{constructor(e,i,t){this._driver=i,this._normalizer=t,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new Na(e.body,i,t),this._timelineEngine=new Pa(e.body,i,t),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(e,i,t,r,o){let s=e+"-"+r,a=this._triggerCache[s];if(!a){let c=[],l=[],u=bd(this._driver,o,c,l);if(c.length)throw lg(r,c);l.length&&void 0,a=Kg(r,u,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(i,r,a)}register(e,i){this._transitionEngine.register(e,i)}destroy(e,i){this._transitionEngine.destroy(e,i)}onInsert(e,i,t,r){this._transitionEngine.insertNode(e,i,t,r)}onRemove(e,i,t){this._transitionEngine.removeNode(e,i,t)}disableAnimations(e,i){this._transitionEngine.markElementAsDisabled(e,i)}process(e,i,t,r){if(t.charAt(0)=="@"){let[o,s]=td(t),a=r;this._timelineEngine.command(o,i,s,a)}else this._transitionEngine.trigger(e,i,t,r)}listen(e,i,t,r,o){if(t.charAt(0)=="@"){let[s,a]=td(t);return this._timelineEngine.listen(s,i,a,o)}return this._transitionEngine.listen(e,i,t,r,o)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function c0(n,e){let i=null,t=null;return Array.isArray(e)&&e.length?(i=Ca(e[0]),e.length>1&&(t=Ca(e[e.length-1]))):e instanceof Map&&(i=Ca(e)),i||t?new Fa(n,i,t):null}var Zn=class Zn{constructor(e,i,t){this._element=e,this._startStyles=i,this._endStyles=t,this._state=0;let r=Zn.initialStylesByElement.get(e);r||Zn.initialStylesByElement.set(e,r=new Map),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&vt(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(vt(this._element,this._initialStyles),this._endStyles&&(vt(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Zn.initialStylesByElement.delete(this._element),this._startStyles&&(fn(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(fn(this._element,this._endStyles),this._endStyles=null),vt(this._element,this._initialStyles),this._state=3)}};Zn.initialStylesByElement=new WeakMap;var Fa=Zn;function Ca(n){let e=null;return n.forEach((i,t)=>{u0(t)&&(e=e||new Map,e.set(t,i))}),e}function u0(n){return n==="display"||n==="position"}var Po=class{constructor(e,i,t,r){this.element=e,this.keyframes=i,this.options=t,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=t.duration,this._delay=t.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let i=()=>this._onFinish();this.domPlayer.addEventListener("finish",i),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",i)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let i=[];return e.forEach(t=>{i.push(Object.fromEntries(t))}),i}_triggerWebAnimation(e,i,t){return e.animate(this._convertKeyframesToObject(i),t)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((t,r)=>{r!=="offset"&&e.set(r,this._finished?t:Ba(this.element,r))}),this.currentSnapshot=e}triggerCallback(e){let i=e==="start"?this._onStartFns:this._onDoneFns;i.forEach(t=>t()),i.length=0}},Oo=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,i){return md(e,i)}getParentElement(e){return ja(e)}query(e,i,t){return gd(e,i,t)}computeStyle(e,i,t){return Ba(e,i)}animate(e,i,t,r,o,s=[]){let a=r==0?"both":"forwards",c={duration:t,delay:r,fill:a};o&&(c.easing=o);let l=new Map,u=s.filter(y=>y instanceof Po);Ag(t,r)&&u.forEach(y=>{y.currentSnapshot.forEach((w,R)=>l.set(R,w))});let d=xg(i).map(y=>new Map(y));d=Rg(e,d,l);let v=c0(e,d);return new Po(e,d,c,v)}};var So="@",Id="@.disabled",No=class{constructor(e,i,t,r){this.namespaceId=e,this.delegate=i,this.engine=t,this._onDestroy=r,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,i){return this.delegate.createElement(e,i)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,i){this.delegate.appendChild(e,i),this.engine.onInsert(this.namespaceId,i,e,!1)}insertBefore(e,i,t,r=!0){this.delegate.insertBefore(e,i,t),this.engine.onInsert(this.namespaceId,i,e,r)}removeChild(e,i,t){this.parentNode(i)&&this.engine.onRemove(this.namespaceId,i,this.delegate)}selectRootElement(e,i){return this.delegate.selectRootElement(e,i)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,i,t,r){this.delegate.setAttribute(e,i,t,r)}removeAttribute(e,i,t){this.delegate.removeAttribute(e,i,t)}addClass(e,i){this.delegate.addClass(e,i)}removeClass(e,i){this.delegate.removeClass(e,i)}setStyle(e,i,t,r){this.delegate.setStyle(e,i,t,r)}removeStyle(e,i,t){this.delegate.removeStyle(e,i,t)}setProperty(e,i,t){i.charAt(0)==So&&i==Id?this.disableAnimations(e,!!t):this.delegate.setProperty(e,i,t)}setValue(e,i){this.delegate.setValue(e,i)}listen(e,i,t){return this.delegate.listen(e,i,t)}disableAnimations(e,i){this.engine.disableAnimations(e,i)}},ka=class extends No{constructor(e,i,t,r,o){super(i,t,r,o),this.factory=e,this.namespaceId=i}setProperty(e,i,t){i.charAt(0)==So?i.charAt(1)=="."&&i==Id?(t=t===void 0?!0:!!t,this.disableAnimations(e,t)):this.engine.process(this.namespaceId,e,i.slice(1),t):this.delegate.setProperty(e,i,t)}listen(e,i,t){if(i.charAt(0)==So){let r=d0(e),o=i.slice(1),s="";return o.charAt(0)!=So&&([o,s]=h0(o)),this.engine.listen(this.namespaceId,r,o,s,a=>{let c=a._data||-1;this.factory.scheduleListenerCallback(c,t,a)})}return this.delegate.listen(e,i,t)}};function d0(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}function h0(n){let e=n.indexOf("."),i=n.substring(0,e),t=n.slice(e+1);return[i,t]}var Fo=class{constructor(e,i,t){this.delegate=e,this.engine=i,this._zone=t,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,i.onRemovalComplete=(r,o)=>{o?.removeChild(null,r)}}createRenderer(e,i){let t="",r=this.delegate.createRenderer(e,i);if(!e||!i?.data?.animation){let l=this._rendererCache,u=l.get(r);if(!u){let d=()=>l.delete(r);u=new No(t,r,this.engine,d),l.set(r,u)}return u}let o=i.id,s=i.id+"-"+this._currentId;this._currentId++,this.engine.register(s,e);let a=l=>{Array.isArray(l)?l.forEach(a):this.engine.registerTrigger(o,s,e,l.name,l)};return i.data.animation.forEach(a),new ka(this,s,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,t){if(e>=0&&e<this._microtaskId){this._zone.run(()=>i(t));return}let r=this._animationCallbacksBuffer;r.length==0&&queueMicrotask(()=>{this._zone.run(()=>{r.forEach(o=>{let[s,a]=o;s(a)}),this._animationCallbacksBuffer=[]})}),r.push([i,t])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}};var f0=(()=>{let e=class e extends Xn{constructor(t,r,o){super(t,r,o)}ngOnDestroy(){this.flush()}};e.\u0275fac=function(r){return new(r||e)(I(se),I(mn),I(gn))},e.\u0275prov=A({token:e,factory:e.\u0275fac});let n=e;return n})();function m0(){return new xo}function g0(n,e,i){return new Fo(n,e,i)}var Dd=[{provide:gn,useFactory:m0},{provide:Xn,useClass:f0},{provide:yr,useFactory:g0,deps:[Br,Xn,Ee]}],xd=[{provide:mn,useFactory:()=>new Oo},{provide:ss,useValue:"BrowserAnimations"},...Dd],v0=[{provide:mn,useClass:Ua},{provide:ss,useValue:"NoopAnimations"},...Dd],Md=(()=>{let e=class e{static withConfig(t){return{ngModule:e,providers:t.disableAnimations?v0:xd}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=ce({type:e}),e.\u0275inj=le({providers:xd,imports:[Hr]});let n=e;return n})();var vn=(()=>{let e=class e{get hostElement(){return this.elementRef.nativeElement}constructor(t){this.elementRef=t,this.classes=[]}setAttribute(t,r){this[t]=r,this.hostElement.setAttribute(t,r)}updateHostClass(t){this.classes&&this.classes.forEach(o=>{this.classes.includes(o)||this.removeClass(o)});let r=[];return t.forEach(o=>{o&&(r.push(o),this.classes.includes(o)||this.addClass(o))}),this.classes=r,this}addClass(t){this.hostElement.classList.add(t)}removeClass(t){this.hostElement.classList.remove(t)}};e.\u0275fac=function(r){return new(r||e)(f(Q))},e.\u0275dir=je({type:e});let n=e;return n})();var y0=["*"],_0=(()=>{let e=class e extends vn{get type(){return this.internalType}set type(t){this.internalType=t,this.updateHostClass([`dg-label-${this.type}`])}constructor(t){super(t),this.internalType="primary"}ngOnInit(){this.updateHostClass([`dg-label-${this.type}`])}};e.\u0275fac=function(r){return new(r||e)(f(Q))},e.\u0275cmp=T({type:e,selectors:[["label"]],hostAttrs:[1,"dg-label"],inputs:{type:"type"},features:[Ne],ngContentSelectors:y0,decls:1,vars:0,template:function(r,o){r&1&&($e(),Be(0))},encapsulation:2,changeDetection:0});let n=e;return n})(),Ga={selector:"label",component:_0};var C0=["*"],b0=(()=>{let e=class e extends vn{get type(){return this.internalType}set type(t){this.internalType=t,this.updateHostClass([`dg-alert-${this.type}`])}constructor(t){super(t),this.internalType="info"}ngOnInit(){this.updateHostClass([`dg-alert-${this.type}`])}};e.\u0275fac=function(r){return new(r||e)(f(Q))},e.\u0275cmp=T({type:e,selectors:[["alert"]],hostAttrs:[1,"dg-alert"],inputs:{type:"type"},features:[Ne],ngContentSelectors:C0,decls:1,vars:0,template:function(r,o){r&1&&($e(),Be(0))},encapsulation:2,changeDetection:0});let n=e;return n})(),qa={selector:"alert",component:b0};var Zi;function Ad(n){Zi=n||[]}function Rd(){return Zi}function Wa(n){Zi=Zi?Zi.concat(n):n}function Pd(){Ad([Ga,qa])}var Ka=(()=>{let e=class e{constructor(){Pd()}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=ce({type:e}),e.\u0275inj=le({imports:[ot]});let n=e;return n})();var re=function(n){return n.light="light",n.dark="dark",n.system="system",n}(re||{});function Od(n,e){return n.toLocaleLowerCase().replace(/_/g,"-")===e.toLocaleLowerCase().replace(/_/g,"-")}var Xi=new q("DOC_SITE_CONFIG"),kd={title:"Docgeni",description:""},Nd="docgeni-locale",w0="docgeni-mode",Fd="docgeni-theme",L=(()=>{let e=class e{get isDefaultLocale(){return this.locale===this.config.defaultLocale}constructor(t,r,o,s){this.config=t,this.http=r,this.document=o,this.location=s,this.theme=An(re.light),this.isDarkTheme=On(()=>this.theme()===re.system&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches||this.theme()===re.dark),this.setup()}getLocaleKey(){let t=this.getLocalKeyFromUrl();if(t)return t;{let r=window.localStorage.getItem(Nd)||window.navigator.language||"",o=(this.config.locales||[]).find(s=>Od(s.key,r));return o?o.key:this.config.defaultLocale}}setup(){this.setLocale(this.getLocaleKey()),this.setTheme(this.getTheme());let t=window.localStorage.getItem(w0);if(t&&["lite","full"].includes(t)&&(this.config.mode=t),document.body.classList.add(`dg-mode-${this.config.mode}`,`dg-navbar-theme-${this.config.theme}`),this.config.repoUrl){let r=/https:\/\/github.com\/([^\/]*)\/([^\/]*)/.exec(this.config.repoUrl);r&&r.length===3&&(this.owner=r[1],this.repo=r[2])}}getLocalKeyFromUrl(){let t=(this.config.locales||[]).find(r=>this.location.path().startsWith(`/${r.key}`));return t&&t.key}setLocale(t){this.locale=t,window.localStorage.setItem(Nd,t)}getTheme(){let t=window.localStorage.getItem(Fd);return t&&[re.light,re.dark,re.system].includes(t)?t:re.light}setTheme(t){this.theme.set(t),window.localStorage.setItem(Fd,t),this.isDarkTheme()?(document.documentElement.setAttribute("theme",re.dark),document.documentElement.style.setProperty("color-scheme","dark")):(document.documentElement.removeAttribute("theme"),document.documentElement.style.removeProperty("color-scheme"))}getNowTimestamp(){return new Date().getTime()}initialize(){return new Promise((t,r)=>{this.http.get(`assets/content/navigations-${this.locale}.json?t=${this.getNowTimestamp()}`).subscribe({next:o=>{this.homeMeta=o.homeMeta,this.navs=o.navs,this.docItems=this.sortDocItems(this.navs),t(o)},error:o=>{r(o)}})})}getAssetsContentPath(t){return t.startsWith("/")?`assets/content${t}`:`assets/content/${t}`}sortDocItems(t){t=t.slice();let r=[];for(;t.length;){let o=t.shift();o&&(o.items?(o.items.forEach(s=>{s.ancestors=s.ancestors||[],s.ancestors.push(...o.ancestors||[],o)}),t.unshift(...o.items)):o.hidden||r.push(o))}return r}};e.\u0275fac=function(r){return new(r||e)(I(Xi),I(Ae),I(se),I(wt))},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var de=(()=>{let e=class e{get channel(){return this.channel$.value}get docItem(){return this.docItem$.value}get navs(){return this.global.navs}get docItems(){return this.global.docItems}constructor(t){this.global=t,this.channel$=new ge(null),this.docItem$=new ge(null),this.docPages$=new ge(null),this.showSidebar=!1}getChannels(){return this.navs}getChannel(t){return this.navs.find(r=>r.path===t)}getDocItemByPath(t){let r;if(this.channel?this.channel.lib?r=this.docItems.findIndex(o=>o.path===t&&o.channelPath===this.channel.path&&!!o.importSpecifier):r=this.docItems.findIndex(o=>o.path===t&&o.channelPath===this.channel.path):r=this.docItems.findIndex(o=>o.path===t&&(this.global.config.mode==="lite"?!0:!o.channelPath)),r>-1){let o=r?this.docItems[r-1]:void 0,s=this.docItems.length-1===r?void 0:this.docItems[r+1];this.docPages$.next({pre:o,next:s})}return this.docItems[r]}selectChannelByPath(t){let r=this.getChannel(t);return this.channel$.next(r),r}clearChannel(){this.channel$.next(null)}selectDocItem(t){let r=this.getDocItemByPath(t);this.docItem$.next(r)}getChannelFirstDocItem(){return this.channel&&this.channel.items?this.searchFirstDocItem(this.channel.items):null}searchFirstDocItem(t=this.navs){let r;for(let o of t)if(this.isDocItem(o)?r=o:r=this.getNavFirstDocItem(o),r)break;return r}getNavFirstDocItem(t){let r;for(let o of t.items)if(o&&this.isCategoryItem(o)?r=this.getNavFirstDocItem(o):r=o,r)break;return r}toggleSidebar(){this.showSidebar=!this.showSidebar}resetShowSidebar(){this.showSidebar=!1}isCategoryItem(t){return t.items}isDocItem(t){return!t.items}};e.\u0275fac=function(r){return new(r||e)(I(L))},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var yn=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=A({token:e,factory:e.\u0275fac});let n=e;return n})();var Yn=(()=>{let e=class e{get title(){return this.innerTitle}set title(t){this.innerTitle=t,t!==""?t=`${t} - ${this.globalContext.config.title}`:t=this.globalContext.config.title,this.bodyTitle.setTitle(t)}constructor(t,r){this.bodyTitle=t,this.globalContext=r,this.innerTitle=""}};e.\u0275fac=function(r){return new(r||e)(I(Gr),I(L))},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var E0=`<svg focusable="false" viewBox="0 0 51.8 50.4" xmlns="http://www.w3.org/2000/svg" width="1em" height="1em">
<path
d="M25.9,0.2C11.8,0.2,0.3,11.7,0.3,25.8c0,11.3,7.3,20.9,17.5,24.3c1.3,0.2,1.7-0.6,1.7-1.2c0-0.6,0-2.6,0-4.8c-7.1,1.5-8.6-3-8.6-3c-1.2-3-2.8-3.7-2.8-3.7c-2.3-1.6,0.2-1.6,0.2-1.6c2.6,0.2,3.9,2.6,3.9,2.6c2.3,3.9,6,2.8,7.5,2.1c0.2-1.7,0.9-2.8,1.6-3.4c-5.7-0.6-11.7-2.8-11.7-12.7c0-2.8,1-5.1,2.6-6.9c-0.3-0.7-1.1-3.3,0.3-6.8c0,0,2.1-0.7,7,2.6c2-0.6,4.2-0.9,6.4-0.9c2.2,0,4.4,0.3,6.4,0.9c4.9-3.3,7-2.6,7-2.6c1.4,3.5,0.5,6.1,0.3,6.8c1.6,1.8,2.6,4.1,2.6,6.9c0,9.8-6,12-11.7,12.6c0.9,0.8,1.7,2.4,1.7,4.7c0,3.4,0,6.2,0,7c0,0.7,0.5,1.5,1.8,1.2c10.2-3.4,17.5-13,17.5-24.3C51.5,11.7,40.1,0.2,25.9,0.2z"
></path>
</svg>`,S0=`<svg
viewBox="0 0 16 16"
xmlns="http://www.w3.org/2000/svg"
fit=""
height="1em"
width="1em"
preserveAspectRatio="xMidYMid meet"
focusable="false"
>
<g fill-rule="evenodd">
<path d="M.003 8.306l4.302 4.304.849-.848L.852 7.458z"></path>
<path d="M0 8.308l.847.85 4.31-4.296-.847-.85zM10.8 4.861l4.309 4.296.848-.85-4.309-4.296z"></path>
<path d="M10.804 11.762l.849.848 4.302-4.304-.85-.848zM8.526 4L6.1 12.582l1.241.006 2.435-8.565z"></path>
</g>
</svg>`,T0=`<svg
fit=""
focusable="false"
height="100%"
preserveAspectRatio="xMidYMid meet"
viewBox="0 0 24 24"
width="100%"
xmlns="http://www.w3.org/2000/svg"
>
<path d="M0 0h24v24H0z" fill="none"></path>
<path
d="M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"
></path>
</svg>`,I0=`<svg
viewBox="0 0 16 16"
xmlns="http://www.w3.org/2000/svg"
fit=""
height="1em"
width="1em"
preserveAspectRatio="xMidYMid meet"
focusable="false"
>
<path
d="M7.6 8.2V7h4.174v1.2H7.6zm0 3V10h4.174v1.2H7.6zm-4.4-10v10.074H2L2.003 2c0-1.088.895-2 1.997-2h7.585v1.2H3.2zM5 2h9a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1zm.2 1.2v11.6h8.6V3.2H5.2z"
></path>
</svg>`,x0=`
<svg
viewBox="0 0 16 16"
xmlns="http://www.w3.org/2000/svg"
fit=""
height="1em"
width="1em"
preserveAspectRatio="xMidYMid meet"
focusable="false"
>
<path d="M6.012 11.201L1.313 6.832l-.817.879 5.54 5.15 9.304-9.163-.842-.855z"></path>
</svg>`,D0=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="align-justify">
<g id="ageditor/align-justify" stroke-width="1" fill-rule="evenodd">
<path d="M0 1h16v1.2H0V1zm0 6.4h16v1.2H0V7.4zm0 6.4h16V15H0v-1.2z" id="ag\u5408\u5E76\u5F62\u72B6"></path>
</g>
</svg>`,M0=`<svg width="1em" height="1em" viewBox="0 0 16 16" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: Sketch 55.2 (78181) - https://sketchapp.com -->
<title>navigation/arrow-left</title>
<desc>Created with Sketch.</desc>
<g id="navigation/arrow-left" stroke="none" stroke-width="1" fill-rule="evenodd">
<path d="M7.4,4.14955232 L4.4383,7.3151 C4.2123,7.5571 3.8323,7.5691 3.5903,7.3431 C3.3483,7.1161 3.3353,6.7371 3.5623,6.4951 L7.53151194,2.2516372 C7.55538364,2.21814642 7.58305703,2.18659454 7.6145,2.1576 C7.8585,1.9336 8.2375,1.9496 8.4615,2.1946 L12.4315,6.5176 C12.6565,6.7616 12.6395,7.1416 12.3955,7.3656 C12.1515,7.5896 11.7725,7.5736 11.5475,7.3296 L8.6,4.11846621 L8.6,13.2666667 C8.6,13.6712222 8.331,14 8,14 C7.668,14 7.4,13.6712222 7.4,13.2666667 L7.4,4.14955232 Z" id="\u5F62\u72B6\u7ED3\u5408" transform="translate(7.995013, 7.999832) rotate(-90.000000) translate(-7.995013, -7.999832) "></path>
</g>
</svg>`,A0=`<svg width="1em" height="1em" viewBox="0 0 16 16" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: Sketch 55.2 (78181) - https://sketchapp.com -->
<title>navigation/arrow-right</title>
<desc>Created with Sketch.</desc>
<g id="navigation/arrow-right" stroke="none" stroke-width="1" fill-rule="evenodd">
<path d="M7.4,4.14955232 L4.4383,7.3151 C4.2123,7.5571 3.8323,7.5691 3.5903,7.3431 C3.3483,7.1161 3.3353,6.7371 3.5623,6.4951 L7.53151194,2.2516372 C7.55538364,2.21814642 7.58305703,2.18659454 7.6145,2.1576 C7.8585,1.9336 8.2375,1.9496 8.4615,2.1946 L12.4315,6.5176 C12.6565,6.7616 12.6395,7.1416 12.3955,7.3656 C12.1515,7.5896 11.7725,7.5736 11.5475,7.3296 L8.6,4.11846621 L8.6,13.2666667 C8.6,13.6712222 8.331,14 8,14 C7.668,14 7.4,13.6712222 7.4,13.2666667 L7.4,4.14955232 Z" id="\u5F62\u72B6\u7ED3\u5408" transform="translate(7.995013, 7.999832) rotate(90.000000) translate(-7.995013, -7.999832) "></path>
</g>
</svg>`,R0=`<svg width="16px" height="16px" viewBox="0 0 16 16" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: Sketch 55.2 (78181) - https://sketchapp.com -->
<title>navigation/angle-right</title>
<desc>Created with Sketch.</desc>
<g id="navigation/angle-right" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<path d="M7.97815,11.49765 L7.9728,11.503 L2.2998,5.831 L3.1298,5 L7.97807731,9.84827731 L12.8255,5 L13.6565,5.831 L7.9835,11.503 L7.97815,11.49765 Z" id="\u5F62\u72B6\u7ED3\u5408" fill="#888888" transform="translate(7.978150, 8.251500) scale(-1, -1) rotate(-270.000000) translate(-7.978150, -8.251500) "></path>
</g>
</svg>`,P0='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fit="" height="1em" width="1em" preserveAspectRatio="xMidYMid meet" focusable="false"><g id="oonormal/search" stroke-width="1" fill-rule="evenodd"><path d="M6.751 12.303A5.557 5.557 0 0 1 1.2 6.751C1.2 3.691 3.69 1.2 6.751 1.2a5.558 5.558 0 0 1 5.551 5.551 5.557 5.557 0 0 1-5.551 5.552M6.751 0a6.751 6.751 0 1 0 4.309 11.949l3.855 3.855a.6.6 0 1 0 .849-.849l-3.854-3.853A6.751 6.751 0 0 0 6.751 0" id="ooFill-1"></path></g></svg>',O0='<svg width="148px" height="134px" viewBox="0 0 148 134" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" class="ng-star-inserted"><defs><filter x="0.0%" y="0.0%" width="100.0%" height="100.0%" filterUnits="objectBoundingBox" id="filter-1"><feGaussianBlur stdDeviation="0" in="SourceGraphic"></feGaussianBlur></filter></defs><g id="148x134" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="\u7F16\u7EC4-6" transform="translate(1.000000, 1.000000)"><ellipse id="\u692D\u5706\u5F62" fill="#EDEEF2" opacity="0.3" filter="url(#filter-1)" cx="73.0800017" cy="115.920003" rx="73.0800017" ry="16.8000004"></ellipse><g id="\u7F16\u7EC4-5" transform="translate(15.120000, 0.000000)"><polygon id="\u77E9\u5F62" fill="#E2E4E9" points="19.2789848 49.5600011 99.1200023 48.7200011 117.600003 75.9297673 117.600003 92.313049 0 92.313049 0 75.0356267"></polygon><path d="M23.5200005,0 L94.0800002,0 C97.7913538,2.06413823e-16 100.8,3.00864655 100.8,6.72000015 L100.8,99.1200023 L100.8,99.1200023 L16.8000004,99.1200023 L16.8000004,6.72000015 C16.8000004,3.00864655 19.8086469,1.56994302e-15 23.5200005,0 Z" id="\u77E9\u5F62" fill="#F9FAFB"></path><path d="M30.9200007,12.4400003 L86.6800019,12.4400003 C88.5356787,12.4400003 90.040002,13.9443236 90.040002,15.8000004 L90.040002,42.000001 C90.040002,43.8556778 88.5356787,45.360001 86.6800019,45.360001 L30.9200007,45.360001 C29.0643239,45.360001 27.5600006,43.8556778 27.5600006,42.000001 L27.5600006,15.8000004 C27.5600006,13.9443236 29.0643239,12.4400003 30.9200007,12.4400003 Z" id="\u77E9\u5F62" fill="#E8EAEE"></path><text id="</null>" font-family="PingFangSC-Medium, PingFang SC" font-size="15.1200003" font-weight="400" fill="#BCBECD"><tspan x="33.6000008" y="32.8000004"></null></tspan></text><rect id="\u77E9\u5F62" fill="#E8EAEE" x="27.5600006" y="52.0800012" width="61.4800014" height="5.04000011" rx="2.52000006"></rect><rect id="\u77E9\u5F62\u5907\u4EFD" fill="#E8EAEE" x="27.5600006" y="63.8400014" width="61.4800014" height="5.04000011" rx="2.52000006"></rect><path d="M0,75.6000017 L29.280235,75.6000017 C32.0637502,75.6000017 34.3202352,77.8564866 34.3202352,80.6400018 L34.3202352,86.2591426 C34.3202352,89.0426578 36.5767201,91.2991427 39.3602353,91.2991427 L78.4136737,91.2991427 C81.1971889,91.2991427 83.4536738,89.0426578 83.4536738,86.2591426 L83.4536738,80.6400018 C83.4536738,77.8564866 85.7101587,75.6000017 88.4936739,75.6000017 L117.600003,75.6000017 L117.600003,75.6000017 L117.600003,110.880003 C117.600003,115.519195 113.839194,119.280003 109.200002,119.280003 L8.40000019,119.280003 C3.76080819,119.280003 -6.53729019e-15,115.519195 0,110.880003 L0,75.6000017 L0,75.6000017 Z" id="\u77E9\u5F62" fill="#EDEFF2"></path></g></g></g></svg>',N0='<svg viewBox="0 0 28 28" aria-hidden="true" class="StackBlitzLogo-module-boltIcon-3IWaX" width="28" height="28"><path d="M12.747 16.273h-7.46L18.925 1.5l-3.671 10.227h7.46L9.075 26.5l3.671-10.227z"></path></svg>',F0='<svg xmlns="http://www.w3.org/2000/svg" fill="none" stroke="currentColor" stroke-width="4" viewBox="0 0 48 48" aria-hidden="true" focusable="false"><circle cx="24" cy="24" r="9" fill="currentColor" stroke="none"/><path fill="currentColor" stroke="none" d="M21 5.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 .5.5v5a.5.5 0 0 1-.5.5h-5a.5.5 0 0 1-.5-.5v-5ZM21 37.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 .5.5v5a.5.5 0 0 1-.5.5h-5a.5.5 0 0 1-.5-.5v-5ZM42.5 21a.5.5 0 0 1 .5.5v5a.5.5 0 0 1-.5.5h-5a.5.5 0 0 1-.5-.5v-5a.5.5 0 0 1 .5-.5h5ZM10.5 21a.5.5 0 0 1 .5.5v5a.5.5 0 0 1-.5.5h-5a.5.5 0 0 1-.5-.5v-5a.5.5 0 0 1 .5-.5h5ZM39.203 34.96a.5.5 0 0 1 0 .707l-3.536 3.536a.5.5 0 0 1-.707 0l-3.535-3.536a.5.5 0 0 1 0-.707l3.535-3.535a.5.5 0 0 1 .707 0l3.536 3.535ZM16.575 12.333a.5.5 0 0 1 0 .707l-3.535 3.535a.5.5 0 0 1-.707 0L8.797 13.04a.5.5 0 0 1 0-.707l3.536-3.536a.5.5 0 0 1 .707 0l3.535 3.536ZM13.04 39.203a.5.5 0 0 1-.707 0l-3.536-3.536a.5.5 0 0 1 0-.707l3.536-3.535a.5.5 0 0 1 .707 0l3.536 3.535a.5.5 0 0 1 0 .707l-3.536 3.536ZM35.668 16.575a.5.5 0 0 1-.708 0l-3.535-3.535a.5.5 0 0 1 0-.707l3.535-3.536a.5.5 0 0 1 .708 0l3.535 3.536a.5.5 0 0 1 0 .707l-3.535 3.535Z"/></svg>',k0='<svg xmlns="http://www.w3.org/2000/svg" fill="none" stroke="currentColor" stroke-width="4" viewBox="0 0 48 48" aria-hidden="true" focusable="false"><path fill="currentColor" stroke="none" d="M42.108 29.769c.124-.387-.258-.736-.645-.613A17.99 17.99 0 0 1 36 30c-9.941 0-18-8.059-18-18 0-1.904.296-3.74.844-5.463.123-.387-.226-.768-.613-.645C10.558 8.334 5 15.518 5 24c0 10.493 8.507 19 19 19 8.482 0 15.666-5.558 18.108-13.231Z"/></svg>',L0='<svg fill="none" stroke="currentColor" stroke-width="4" viewBox="0 0 48 48" width="1em" height="1em"><path d="M24 32v8m0 0h-9m9 0h9M7 32h34a1 1 0 0 0 1-1V9a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1v22a1 1 0 0 0 1 1Z"></path></svg>',V0=`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M2 5C2 3.34315 3.34315 2 5 2H7C8.65685 2 10 3.34315 10 5V11H8V8.5H4V11H2V5ZM4 6.5H8V5C8 4.44772 7.55228 4 7 4H5C4.44772 4 4 4.44772 4 5V6.5ZM12 3.5H18C19.6569 3.5 21 4.84315 21 6.5V9H19V6.5C19 5.94772 18.5523 5.5 18 5.5H12V3.5ZM18 11.5V13H22V15H20.9381C20.7182 16.7638 19.9241 18.3492 18.7488 19.5634C19.4441 19.845 20.2041 20 21 20H22V22H21C19.5425 22 18.1765 21.6102 17.0001 20.9297C15.8234 21.6104 14.4572 22 13 22H12V20H13C13.7962 20 14.5562 19.8449 15.2514 19.5633C14.6487 18.9407 14.1463 18.2205 13.7704 17.4291L13.3413 16.5258L15.1478 15.6676L15.5769 16.5709C15.9219 17.2971 16.4081 17.9427 16.9999 18.4723C17.9921 17.5843 18.687 16.371 18.917 15H12V13H16V11.5H18ZM6 13V19C6 19.5523 6.44772 20 7 20H9.5V22H7C5.34315 22 4 20.6569 4 19V13H6Z" fill="currentColor"/>
</svg>`,jd={github:E0,code:S0,external:T0,copy:I0,check:x0,list:D0,arrowLeft:M0,arrowRight:A0,angleRight:R0,search:P0,empty:O0,stackBlitz:N0,locale:V0,lightTheme:F0,darkTheme:k0,systemTheme:L0};var j0=["*"],_e=(()=>{let e=class e{set iconName(t){this.setSvg(t)}constructor(t,r){this.elementRef=t,this.domSanitizer=r,this.isIcon=!0}ngOnInit(){}ngAfterViewInit(){}setSvg(t){let r=jd[t];r?this.elementRef.nativeElement.innerHTML=r:this.elementRef.nativeElement.innerHTML=""}};e.\u0275fac=function(r){return new(r||e)(f(Q),f(mi))},e.\u0275cmp=T({type:e,selectors:[["dg-icon"]],hostVars:2,hostBindings:function(r,o){r&2&&U("dg-icon",o.isIcon)},inputs:{iconName:"iconName"},ngContentSelectors:j0,decls:1,vars:0,template:function(r,o){r&1&&($e(),Be(0))},encapsulation:2});let n=e;return n})();function Ud(n){let e;if(n.startsWith("#"))e=U0(n);else if(n.startsWith("rgb"))e=$0(n);else throw new Error("unsupported color format "+n);return e}function U0(n){let e=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,i=n.replace(e,(r,o,s,a)=>o+o+s+s+a+a),t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(i);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:{}}function $0(n){let e=/rgb\(([0-9]{1,3})\s*[,\s]\s*([0-9]{1,3})\s*[,\s]\s*([0-9]{1,3})\)/i.exec(n);return e?{r:parseInt(e[1],10),g:parseInt(e[2],10),b:parseInt(e[3],10)}:{}}var B0=["*"],z0=["primary","danger","warning","info"],Za=(()=>{let e=class e{set labelType(t){z0.includes(t)?this.classList=["dg-label",`dg-label-${t}`]:(this.classList=["dg-label"],this.renderer.setStyle(this.elementRef.nativeElement,"background-color",this.getBackgroundColor(t)),this.renderer.setStyle(this.elementRef.nativeElement,"color",t))}constructor(t,r){this.elementRef=t,this.renderer=r}ngOnInit(){}getBackgroundColor(t){let{r,g:o,b:s}=Ud(t);return`rgba(${r},${o},${s},0.20)`}};e.\u0275fac=function(r){return new(r||e)(f(Q),f(kt))},e.\u0275cmp=T({type:e,selectors:[["dg-label"]],hostVars:2,hostBindings:function(r,o){r&2&&Cr(o.classList)},inputs:{labelType:"labelType"},ngContentSelectors:B0,decls:1,vars:0,template:function(r,o){r&1&&($e(),Be(0))},encapsulation:2});let n=e;return n})();var Yi=0,yt=(()=>{let e=class e{get links$(){return this.linksSubject$.asObservable()}get links(){return this.linksSubject$.value}get activeLink$(){return this.activeLinkSubject$.asObservable()}constructor(t,r,o){this.document=t,this.viewportScroller=o,this.linksSubject$=new ge([]),this.activeLinkSubject$=new ge(null),this.destroyed$=new me,r.config.mode==="lite"&&(Yi=0),this.viewportScroller.setOffset([0,Yi])}reset(){this.linksSubject$.next([]),this.activeLinkSubject$.next(null),this.highestLevel=0,this.destroyed$.next(null),this.destroyed$.complete()}generateToc(t,r=".dg-scroll-container"){let o=Array.from(t.querySelectorAll("h1, h2, h3, h4, dg-examples")),s=[];o.forEach(a=>{if(a.tagName==="DG-EXAMPLES"){let d=a.querySelectorAll("example"),v=2;d.forEach(y=>{s.push({name:y.getAttribute("title"),type:"h2",top:y.getBoundingClientRect().top,id:y.getAttribute("name"),active:!1,level:v,element:y})});return}let c=a.innerText.trim().replace(/^TocLink/,""),{top:l}=a.getBoundingClientRect(),u=parseInt(a.tagName[1],10);s.push({name:c,type:a.tagName.toLowerCase(),top:l,id:a.id,active:!1,level:u,element:a}),this.highestLevel=this.highestLevel&&u>this.highestLevel?this.highestLevel:u}),this.initializeScrollContainer(r),this.linksSubject$.next(s)}initializeScrollContainer(t){this.scrollContainer=t?this.document.querySelectorAll(t)[0]:window,Promise.resolve().then(()=>{this.scrollContainer&&fr(this.scrollContainer,"scroll").pipe(Ve(this.destroyed$),mr(10)).subscribe(()=>this.onScroll()),this.onScroll()})}onScroll(){let t=this.getScrollOffset(),r;if(t<=Yi+1)r=this.links[0];else{let o=this.links.find(s=>s.element.offsetTop>=t);o?r=o:r=this.links[this.links.length-1]}this.activeLinkSubject$.next(r||null)}scrollToAnchor(t){if(this.scrollContainer)if(this.scrollContainer===this.document.window)this.viewportScroller.scrollToAnchor(t);else{let r=this.links.find(o=>o.id===t);r&&(this.scrollContainer.scrollTop=r.element.offsetTop-10)}}getScrollOffset(){return this.scrollContainer?typeof this.scrollContainer.scrollTop<"u"?this.scrollContainer.scrollTop+Yi:typeof this.scrollContainer.pageYOffset<"u"?this.scrollContainer.pageYOffset+Yi:0:0}};e.\u0275fac=function(r){return new(r||e)(I(se),I(L),I(Or))},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function G0(n,e){if(n&1){let i=Fe();g(0,"li")(1,"a",2),X("click",function(r){let o=Pe(i).$implicit,s=b();return Oe(s.onLinkClick(r,o))}),S(2),m()()}if(n&2){let i=e.$implicit,t=b();br("dg-level-",i.type,""),Ct("data-level",i.level-t.tocService.highestLevel+1),h(),U("active",i===t.activeLink),p("href",t.rootUrl+"#"+i.id,ve),Ct("data-level",i.level-t.tocService.highestLevel+1),h(),ne(" ",i.name," ")}}var q0=60,Dt=(()=>{let e=class e{constructor(t,r,o,s,a){this.router=t,this.route=r,this.locationStrategy=s,this.tocService=a,this.isToc=!0,this.container=".dg-scroll-container",this.links=[],this.rootUrl=this.locationStrategy.path(!1),this.hideToc=!0,this.destroyed=new me,this.urlFragment="",o.config.mode==="lite"&&(q0=0),this.router.events.pipe(Ve(this.destroyed)).subscribe(c=>{if(c instanceof Le){let l=this.locationStrategy.path(!1);l!==this.rootUrl&&(this.rootUrl=l)}}),this.route.fragment.pipe(Ve(this.destroyed)).subscribe(c=>{this.urlFragment=c,this.tocService.scrollToAnchor(this.urlFragment)}),this.tocService.links$.pipe(Ve(this.destroyed)).subscribe(c=>{this.hideToc=!c||c.length===0,this.hideToc||this.tocService.scrollToAnchor(this.urlFragment)}),this.tocService.activeLink$.pipe(Ve(this.destroyed)).subscribe(c=>{this.activeLink=c})}ngOnInit(){}ngOnDestroy(){this.destroyed.next()}onLinkClick(t,r){}};e.\u0275fac=function(r){return new(r||e)(f(ie),f(ye),f(L),f(an),f(yt))},e.\u0275cmp=T({type:e,selectors:[["dg-toc"]],hostVars:4,hostBindings:function(r,o){r&2&&U("dg-toc",o.isToc)("dg-d-none",o.hideToc)},inputs:{container:"container"},decls:4,vars:4,consts:[[1,"dg-toc-container"],[3,"class",4,"ngFor","ngForOf"],[1,"dg-link",3,"click","href"]],template:function(r,o){r&1&&(g(0,"div",0)(1,"ul"),_(2,G0,3,9,"li",1),$(3,"async"),m()()),r&2&&(h(),Ct("aria-label","Table of Contents"),h(),p("ngForOf",W(3,2,o.tocService.links$)))},dependencies:[ue,Rr],encapsulation:2});let n=e;return n})();var $d=n=>({active:n});function W0(n,e){if(n&1&&(g(0,"button",2),C(1,"dg-icon",3),m()),n&2){let i=b();p("ngClass",Te(1,$d,!!i.isDropdownOpen))}}function K0(n,e){if(n&1){let i=Fe();g(0,"div",7),X("click",function(){let r=Pe(i).$implicit,o=b(2);return Oe(o.selectLocale(r.key))}),S(1),m()}if(n&2){let i=e.$implicit,t=b(2);p("ngClass",Te(2,$d,i.key===t.locale)),h(),ne(" ",i.name," ")}}function Q0(n,e){if(n&1&&(g(0,"div",4)(1,"div",5),_(2,K0,2,4,"div",6),m()()),n&2){let i=b();h(2),p("ngForOf",i.global.config.locales)}}var Ji=(()=>{let e=class e{constructor(t,r,o){this.global=t,this.navigationService=r,this.location=o,this.isNavbar=!0,this.isDropdownOpen=!1}ngOnInit(){this.locale=this.global.locale}openDropdown(){this.isDropdownOpen=!0}closeDropdown(){this.isDropdownOpen=!1}selectLocale(t){this.locale=t,this.isDropdownOpen=!1,this.localeModelChange()}localeModelChange(){let t=this.locale===this.global.config.defaultLocale,r=this.global.getLocalKeyFromUrl();t&&this.global.setLocale(this.locale);let o=this.location.path();r?this.location.go(o.replace("/"+r,t?"":`/${this.locale}`)):this.location.go(t?o:`/${this.locale}${o}`),location.href=location.href}};e.\u0275fac=function(r){return new(r||e)(f(L),f(de),f(wt))},e.\u0275cmp=T({type:e,selectors:[["dg-locales-selector"]],hostVars:2,hostBindings:function(r,o){r&1&&X("mouseenter",function(){return o.openDropdown()})("mouseleave",function(){return o.closeDropdown()}),r&2&&U("dg-locales-selector",o.isNavbar)},decls:2,vars:2,consts:[["type","button","class","action-icon",3,"ngClass",4,"ngIf"],["class","locales-container",4,"ngIf"],["type","button",1,"action-icon",3,"ngClass"],["iconName","locale"],[1,"locales-container"],[1,"locales-menu"],["class","locale",3,"ngClass","click",4,"ngFor","ngForOf"],[1,"locale",3,"click","ngClass"]],template:function(r,o){r&1&&_(0,W0,2,3,"button",0)(1,Q0,3,1,"div",1),r&2&&(p("ngIf",o.global.config.locales&&o.global.config.locales.length>1),h(),p("ngIf",!!o.isDropdownOpen))},dependencies:[$t,ue,z,_e],encapsulation:2});let n=e;return n})();var Z0=["logo"];function X0(n,e){if(n&1&&C(0,"img",3),n&2){let i=b(2);p("src",i.global.config.logoUrl,ve)}}function Y0(n,e){if(n&1&&_(0,X0,1,1,"img",2),n&2){let i=b(),t=Se(3);p("ngIf",i.global.config.logoUrl)("ngIfElse",t)}}function J0(n,e){n&1&&(Ll(),g(0,"svg",4)(1,"style",5),S(2," .st0 { fill: #00cc05; } .st1 { fill: #ffda00; } .st2 { fill: #246eff; } .st3 { fill: #004ab5; } .st4 { fill: #ff5050; } "),m(),g(3,"g"),C(4,"path",6)(5,"path",7),g(6,"g"),C(7,"path",8),m(),C(8,"path",9)(9,"path",10),m()())}var er=(()=>{let e=class e{constructor(t,r,o){this.global=t,this.elementRef=r,this.viewContainerRef=o}ngOnInit(){this.viewContainerRef.createEmbeddedView(this.logoTemplate),this.elementRef.nativeElement.remove()}};e.\u0275fac=function(r){return new(r||e)(f(L),f(Q),f(Mn))},e.\u0275cmp=T({type:e,selectors:[["dg-logo"]],viewQuery:function(r,o){if(r&1&&Lt(Z0,7),r&2){let s;ht(s=pt())&&(o.logoTemplate=s.first)}},decls:4,vars:0,consts:[["logo",""],["defaultLogo",""],["class","logo","alt","Logo",3,"src",4,"ngIf","ngIfElse"],["alt","Logo",1,"logo",3,"src"],["version","1.1","id","docgeni-logo","data-name","docgeni-logo","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink","x","0px","y","0px","viewBox","0 0 30 30",0,"xml","space","preserve",1,"logo",2,"enable-background","new 0 0 30 30"],["type","text/css"],["d",`M3.74,3.26h13.54c0,0,4.5,0,7.99,4.66c2.33,3.12,2.31,5.42,2.31,5.42s-0.88-2.44-7.04-2.41
c-7.43,0.04-10.59,0.04-10.59,0.04S3.23,11.28,3.74,3.26z`,1,"st0"],["d",`M6.37,3.26h10.92c0,0,4.5,0,7.99,4.66c2.33,3.12,2.31,5.42,2.31,5.42s-0.88-2.44-7.04-2.41
c-7.43,0.04-7.97,0.04-7.97,0.04S5.87,11.28,6.37,3.26z`,1,"st1"],["d",`M16.04,26.74H2.45L4.88,14.5h6.77l-1.02,5.15h5.4c2.52,0,4.58-2.06,4.58-4.58s-2.06-4.58-4.58-4.58h-1.98
v-7.1h1.98c6.44,0,11.68,5.24,11.68,11.68C27.72,21.5,22.48,26.74,16.04,26.74z`,1,"st2"],["d","M27.64,13.61c0,0-3.95-0.9-7.06,0.88c0,0-0.31-2.39-2.47-3.55C18.11,10.95,27.32,8.46,27.64,13.61z",1,"st3"],["d",`M8.99,3.26h8.68c0,0,3.92,0,7.6,4.66c2.24,2.84,2.38,5.92,2.38,5.92s0.06-2.89-4.48-2.9
c-7.4-0.02-7.97,0.04-7.97,0.04S8.49,11.28,8.99,3.26z`,1,"st4"]],template:function(r,o){r&1&&_(0,Y0,1,2,"ng-template",null,0,ke)(2,J0,10,0,"ng-template",null,1,ke)},dependencies:[z],encapsulation:2});let n=e;return n})();var Hd=(()=>{let e=class e{get hasAlgolia(){return!!(this.global.config.algolia&&this.global.config.algolia.apiKey&&this.global.config.algolia.indexName)}constructor(t,r){this.global=t,this.document=r,this.allPages=[],this.destroyed$=new me,this.result=[]}initSearch(t){this.hasAlgolia?this.initAlgolia(t):this.initInnerSearch(t)}initAlgolia(t){return Jn(this,null,function*(){let r=this.global.config.algolia,o=r?.appId?{appId:r.appId,apiKey:r.apiKey,indexName:r.indexName}:{apiKey:r?.apiKey,indexName:r?.indexName};window.global=window,window.process={env:{DEBUG:void 0}};let{default:s}=yield import("./chunk-KKC2X77Y.js");s(J(E({},o),{inputSelector:t,algoliaOptions:{hitsPerPage:5,facetFilters:[`lang: ${this.global.locale}`]},transformData:a=>(location.href.indexOf(this.global.locale)<0&&a.forEach(c=>{c.url=c.url.replace(`${this.global.locale}/`,"")}),a)}))})}initInnerSearch(t){this.generatePages();let r=this.document.querySelector(t);if(r)fr(r,"input").pipe(mr(100),G(()=>r.value),Al(),Ve(this.destroyed$)).subscribe(o=>{this.result=this.searchPages(o)});else throw new Error("not find search container")}generatePages(){this.allPages=[],this.global.docItems.forEach(t=>{let r=this.global.config.mode==="full"&&t.channelPath?`${t.channelPath}/${t.path}`:t.path,o={title:`${t.title} ${t.subtitle?t.subtitle:""}`,id:t.id,path:r};this.allPages.push(o),(t.headings||[]).forEach(s=>{this.allPages.push({title:s.name,id:s.id,path:`${r}#${s.id}`,parent:o})})})}searchPages(t){let r=t?.trim().toLowerCase();return r?this.allPages.filter(o=>o.title.toLowerCase().indexOf(r)>-1):[]}trackByFn(t,r){return r.id||t}};e.\u0275fac=function(r){return new(r||e)(I(L),I(se))},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var Gd={"zh-cn":{OVERVIEW:"\u6982\u89C8",EXAMPLES:"\u793A\u4F8B",HOME:"\u9996\u9875",LAST_UPDATED_TIME:"\u6700\u540E\u66F4\u65B0",PRE_PAGE:"\u4E0A\u4E00\u7BC7",NEXT_PAGE:"\u4E0B\u4E00\u7BC7",SEARCH:"\u641C\u7D22"},"en-us":{OVERVIEW:"Overview",EXAMPLES:"Examples",HOME:"Home",LAST_UPDATED_TIME:"Last updated",PRE_PAGE:"Previous",NEXT_PAGE:"Next",SEARCH:"Search"}},lt=(()=>{let e=class e{constructor(t){this.global=t}transform(t){let r=Gd[this.global.locale.toLowerCase()]||Gd["en-us"];return r[t]?r[t]:t}};e.\u0275fac=function(r){return new(r||e)(f(L,16))},e.\u0275pipe=Me({name:"dgTranslate",type:e,pure:!0});let n=e;return n})();var Xa=(()=>{let e=class e{constructor(t){this.domSanitizer=t}highlightTitle(t,r){let o=new RegExp(`(${t})`,"gi"),s=r.split(o),a="";return s.forEach(c=>{c&&(a=a+(c.toLocaleLowerCase()===t?`<span class="dg-word-highlight">${c}</span>`:c))}),a}transform(t,r){if(t=(t||"").trim().toLocaleLowerCase(),t&&r){let o=this.highlightTitle(t,r);return this.domSanitizer.bypassSecurityTrustHtml(o)}else return r}};e.\u0275fac=function(r){return new(r||e)(f(mi,16))},e.\u0275pipe=Me({name:"highlight",type:e,pure:!0});let n=e;return n})();function nv(n,e){if(n&1&&(pe(0),S(1),fe()),n&2){let i=b().$implicit;h(),ne(" ",i.parent==null?null:i.parent.title," > ")}}function iv(n,e){if(n&1){let i=Fe();g(0,"a",7),X("click",function(r){let o=Pe(i).$implicit,s=b(2);return Oe(s.toRoute(r,o))}),_(1,nv,2,1,"ng-container",6),C(2,"span",8),$(3,"highlight"),m()}if(n&2){let i=e.$implicit,t=b(2);p("href",i.path,ve),h(),p("ngIf",i.parent),h(),p("innerHtml",Rn(3,3,t.searchText,i.title),Ft)}}function rv(n,e){n&1&&(pe(0),C(1,"dg-icon",9),fe())}function ov(n,e){if(n&1&&(g(0,"div",4),_(1,iv,4,6,"a",5)(2,rv,2,0,"ng-container",6),m()),n&2){let i=b();U("is-searching",i.hasSearchText&&i.isFocus)("result-empty",(i.searchService.result==null?null:i.searchService.result.length)===0),h(),p("ngForOf",i.searchService.result)("ngForTrackBy",i.searchService.trackByFn),h(),p("ngIf",i.hasSearchText&&i.searchService.result.length===0)}}var tr=(()=>{let e=class e{constructor(t,r){this.searchService=t,this.router=r}ngOnInit(){}ngAfterViewInit(){this.searchService.initSearch("#inputSearch")}focus(){this.isFocus=!0}blur(){setTimeout(()=>{this.isFocus=!1,this.searchText="",this.hasSearchText=!1},200)}change(){setTimeout(()=>{this.hasSearchText=!!this.searchText?.trim()},200)}toRoute(t,r){r.path.startsWith("http")||(t.preventDefault(),this.router.navigateByUrl(r.path))}};e.\u0275fac=function(r){return new(r||e)(f(Hd),f(ie))},e.\u0275cmp=T({type:e,selectors:[["dg-search"]],decls:5,vars:5,consts:[[1,"dg-search-container"],["iconName","search",1,"search-icon"],["id","inputSearch",1,"search",3,"ngModelChange","blur","focus","ngModel","placeholder"],["class","search-results-container",3,"is-searching","result-empty",4,"ngIf"],[1,"search-results-container"],["class","search-result",3,"href","click",4,"ngFor","ngForOf","ngForTrackBy"],[4,"ngIf"],[1,"search-result",3,"click","href"],[3,"innerHtml"],["iconName","empty",1,"empty-icon"]],template:function(r,o){r&1&&(g(0,"div",0),C(1,"dg-icon",1),g(2,"input",2),$(3,"dgTranslate"),oc("ngModelChange",function(a){return rc(o.searchText,a)||(o.searchText=a),a}),X("ngModelChange",function(){return o.change()})("blur",function(){return o.blur()})("focus",function(){return o.focus()}),m(),_(4,ov,3,7,"div",3),m()),r&2&&(h(2),ic("ngModel",o.searchText),p("placeholder",W(3,3,"SEARCH")),h(2),p("ngIf",!o.searchService.hasAlgolia))},dependencies:[ue,z,Zr,su,As,_e,lt,Xa],encapsulation:2});let n=e;return n})();var _n=(()=>{let e=class e{constructor(){}transform(t){return t==="lite"}};e.\u0275fac=function(r){return new(r||e)},e.\u0275pipe=Me({name:"dgIsLite",type:e,pure:!0});let n=e;return n})(),Cn=(()=>{let e=class e{constructor(){}transform(t){return t==="full"}};e.\u0275fac=function(r){return new(r||e)},e.\u0275pipe=Me({name:"dgIsFull",type:e,pure:!0});let n=e;return n})();var sv=()=>["/"],Wd=n=>({$implicit:n}),av=n=>({exact:n}),lv=n=>[n];function cv(n,e){if(n&1&&(g(0,"span",12),S(1),m()),n&2){let i=b(2);h(),ee(i.global.config.description)}}function uv(n,e){if(n&1&&(g(0,"div",9),C(1,"dg-logo"),g(2,"a",10),S(3),m(),_(4,cv,2,1,"span",11),m()),n&2){let i=b();h(2),p("routerLink",Vt(3,sv)),h(),ee(i.global.config.title),h(),p("ngIf",i.global.config.description)}}function dv(n,e){n&1&&C(0,"dg-search")}function hv(n,e){n&1&&wr(0)}function pv(n,e){if(n&1&&(pe(0,13),_(1,hv,1,0,"ng-container",14),fe()),n&2){let i=e.$implicit;b();let t=Se(9);h(),p("ngTemplateOutlet",t)("ngTemplateOutletContext",Te(2,Wd,i))}}function fv(n,e){n&1&&wr(0)}function mv(n,e){if(n&1&&(pe(0),_(1,fv,1,0,"ng-container",15),fe()),n&2){b();let i=Se(11);h(),p("ngTemplateOutlet",i)}}function gv(n,e){if(n&1&&(g(0,"div",24),S(1),m()),n&2){let i=b(3).$implicit;h(),ne(" ",i.title," ")}}function vv(n,e){n&1&&(g(0,"div",25),C(1,"dg-icon",26),m()),n&2&&(h(),p("iconName","angleRight"))}function yv(n,e){n&1&&wr(0)}function _v(n,e){if(n&1&&(pe(0),_(1,yv,1,0,"ng-container",14),fe()),n&2){let i=e.$implicit;b(4);let t=Se(9);h(),p("ngTemplateOutlet",t)("ngTemplateOutletContext",Te(2,Wd,i))}}function Cv(n,e){if(n&1){let i=Fe();g(0,"div",18)(1,"div",19),X("click",function(){Pe(i);let r=b(2).$implicit,o=b();return Oe(o.toggle(r))}),_(2,gv,2,1,"div",20)(3,vv,2,1,"div",21),m(),g(4,"div",22),_(5,_v,2,4,"ng-container",23),m()()}if(n&2){let i=b(2).$implicit,t=b();U("menu-group--open",t.menuDisplayMap.get(i)),h(2),p("ngIf",i.title),h(),p("ngIf",i.items&&i.items.length),h(2),p("ngForOf",i.items)}}function bv(n,e){if(n&1&&(pe(0),_(1,Cv,6,5,"div",17),fe()),n&2){let i=b().$implicit;h(),p("ngIf",i.items.length>0)}}function wv(n,e){if(n&1&&(g(0,"div",13)(1,"a",28),C(2,"dg-icon",29),S(3),m()()),n&2){let i=b(2).$implicit;h(),bt("href",i.path,ve),h(2),ne(" ",i.title," ")}}function Ev(n,e){if(n&1&&(g(0,"span",37),S(1),m()),n&2){let i=b(3).$implicit;h(),ee(i.subtitle)}}function Sv(n,e){if(n&1&&(g(0,"dg-label",38),S(1),m()),n&2){let i=b(3).$implicit;p("labelType",i.label.color),h(),ee(i.label.text)}}function Tv(n,e){n&1&&C(0,"dg-toc",39)}function Iv(n,e){if(n&1&&(g(0,"div",30,4)(2,"a",31)(3,"div",32),S(4),_(5,Ev,2,1,"span",33),m(),g(6,"div",34),_(7,Sv,2,2,"dg-label",35),m()()(),_(8,Tv,1,0,"dg-toc",36)),n&2){let i=Se(1),t=b(2).$implicit;p("routerLinkActiveOptions",Te(6,av,!t.examples)),h(2),p("routerLink",Te(8,lv,"./"+t.path)),h(2),ne(" ",t.title," "),h(),p("ngIf",t.subtitle),h(2),p("ngIf",t.label),h(),p("ngIf",t.toc==="menu"&&i.isActive)}}function xv(n,e){if(n&1&&_(0,wv,4,2,"div",27)(1,Iv,9,10,"ng-template",null,3,ke),n&2){let i=Se(2),t=b().$implicit;p("ngIf",t.isExternal)("ngIfElse",i)}}function Dv(n,e){if(n&1&&_(0,bv,2,1,"ng-container",16)(1,xv,3,2,"ng-template",null,2,ke),n&2){let i=e.$implicit,t=Se(2);p("ngIf",i.items)("ngIfElse",t)}}function Mv(n,e){n&1&&(g(0,"div",41)(1,"div",42),C(2,"dg-locales-selector"),m()())}function Av(n,e){if(n&1&&_(0,Mv,3,0,"div",40),n&2){let i=b();p("ngIf",i.global.config.locales&&i.global.config.locales.length>1)}}var nr=(()=>{let e=class e{constructor(t,r,o){this.global=t,this.router=r,this.activatedRoute=o,this.isSidebar=!0,this.menuDisplayMap=new Map,this.initDisplay=!0}ngOnInit(){this.router.events.pipe(Ge(t=>t instanceof Le)).subscribe(()=>{this.updateGroupsCollapseStates()})}toggle(t){if(!t.items||!t.items.length)return;let r=this.menuDisplayMap.get(t);this.setMenuOpen(t,!r)}setMenuOpen(t,r){this.menuDisplayMap.set(t,r)}ngOnChanges(){this.initDisplay&&this.setMenuDisplay(this.menus),this.updateGroupsCollapseStates()}updateGroupsCollapseStates(){let t=[];for(let r of this.global.docItems){let o=this.router.createUrlTree(["./"+r.path],{relativeTo:this.activatedRoute});if(this.router.isActive(o,!r.examples)){t=r.ancestors||[];break}}t.forEach(r=>{this.setMenuOpen(r,!0)})}setMenuDisplay(t){for(let r of t)this.menuDisplayMap.set(r,!0),r.items&&r.items.length&&this.setMenuDisplay(r.items)}};e.\u0275fac=function(r){return new(r||e)(f(L),f(ie),f(ye))},e.\u0275cmp=T({type:e,selectors:[["dg-sidebar"]],hostVars:2,hostBindings:function(r,o){r&2&&U("dg-sidebar",o.isSidebar)},inputs:{menus:"menus"},features:[dt],decls:12,vars:10,consts:[["navTemplate",""],["changeLanguageTemplate",""],["item",""],["docItemMenu",""],["routerLinkActive","routerLinkActive"],["class","dg-sidebar-header",4,"ngIf"],[4,"ngIf"],[1,"dg-menu"],["class","menu-item",4,"ngFor","ngForOf"],[1,"dg-sidebar-header"],[1,"title",3,"routerLink"],["class","description",4,"ngIf"],[1,"description"],[1,"menu-item"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngTemplateOutlet"],[4,"ngIf","ngIfElse"],["class","menu-group",3,"menu-group--open",4,"ngIf"],[1,"menu-group"],[1,"group-header",3,"click"],["class","group-title",4,"ngIf"],["class","group-arrow",4,"ngIf"],[1,"group-body"],[4,"ngFor","ngForOf"],[1,"group-title"],[1,"group-arrow"],[3,"iconName"],["class","menu-item",4,"ngIf","ngIfElse"],["target","_blank",1,"item-content",3,"href"],["iconName","external",1,"external-icon"],["routerLinkActive","active",1,"menu-item",3,"routerLinkActiveOptions"],[1,"item-content",3,"routerLink"],[1,"item-content-title"],["class","subtitle",4,"ngIf"],[1,"item-content-label"],[3,"labelType",4,"ngIf"],["class","dg-toc-menu",4,"ngIf"],[1,"subtitle"],[3,"labelType"],[1,"dg-toc-menu"],["class","action-items",4,"ngIf"],[1,"action-items"],[1,"action-item"]],template:function(r,o){r&1&&(_(0,uv,5,4,"div",5),$(1,"dgIsLite"),_(2,dv,1,0,"dg-search",6),$(3,"dgIsLite"),g(4,"div",7),_(5,pv,2,4,"ng-container",8)(6,mv,2,1,"ng-container",6),$(7,"dgIsLite"),_(8,Dv,3,2,"ng-template",null,0,ke),m(),_(10,Av,1,1,"ng-template",null,1,ke)),r&2&&(p("ngIf",W(1,4,o.global.config.mode)),h(2),p("ngIf",W(3,6,o.global.config.mode)),h(3),p("ngForOf",o.menus),h(),p("ngIf",W(7,8,o.global.config.mode)))},dependencies:[ue,z,_c,mt,Kn,_e,Za,Dt,Ji,er,tr,_n],encapsulation:2});let n=e;return n})();function Rv(n,e){if(n&1&&(pe(0),C(1,"dg-sidebar",1)(2,"router-outlet"),fe()),n&2){let i=b();h(),p("menus",i.navigationService.channel.items)}}var Ya=(()=>{let e=class e{constructor(t,r,o,s,a,c){this.http=t,this.elementRef=r,this.route=o,this.router=s,this.navigationService=a,this.global=c,this.isLayout=!0,this.isScrollContainer=!0,this.exampleComponentType=null,this.exampleModuleFactory=null}ngOnInit(){let t=this.route.snapshot.routeConfig?.path;this.navigationService.selectChannelByPath(t)}ngOnDestroy(){this.navigationService.clearChannel()}};e.\u0275fac=function(r){return new(r||e)(f(Ae),f(Q),f(ye),f(ie),f(de),f(L))},e.\u0275cmp=T({type:e,selectors:[["dg-channel"]],hostVars:4,hostBindings:function(r,o){r&2&&U("dg-layout",o.isLayout)("dg-scroll-container",o.isScrollContainer)},decls:1,vars:1,consts:[[4,"ngIf"],[3,"menus"]],template:function(r,o){r&1&&_(0,Rv,3,1,"ng-container",0),r&2&&p("ngIf",o.navigationService.channel)},dependencies:[z,Kt,nr],encapsulation:2});let n=e;return n})(),Ja=(()=>{let e=class e{constructor(t,r,o,s){this.router=t,this.navigationService=r,this.global=o,this.route=s}ngOnInit(){let t=this.navigationService.getChannelFirstDocItem();t&&this.router.navigate(["./"+t.path],{replaceUrl:!0,relativeTo:this.route})}};e.\u0275fac=function(r){return new(r||e)(f(ie),f(de),f(L),f(ye))},e.\u0275cmp=T({type:e,selectors:[["dg-channel-home"]],decls:0,vars:0,template:function(r,o){},encapsulation:2});let n=e;return n})();var Pv=["*"],ir=(()=>{let e=class e{constructor(t,r){this.global=t,this.elementRef=r,this.isHide=!0}ngOnInit(){this.global.config.footer?(this.elementRef.nativeElement.innerHTML=this.global.config.footer,this.isHide=!1):this.isHide=!0}};e.\u0275fac=function(r){return new(r||e)(f(L),f(Q))},e.\u0275cmp=T({type:e,selectors:[["dg-footer"]],hostAttrs:[1,"dg-footer"],hostVars:2,hostBindings:function(r,o){r&2&&U("dg-hidden",o.isHide)},ngContentSelectors:Pv,decls:1,vars:0,template:function(r,o){r&1&&($e(),Be(0))},encapsulation:2});let n=e;return n})();function Ov(n,e){if(n&1){let i=Fe();g(0,"a",4),X("click",function(r){Pe(i);let o=b();return Oe(o.toggleSidebar(r))}),C(1,"dg-icon",5),m()}}function Nv(n,e){if(n&1&&(g(0,"span",6),S(1),m()),n&2){let i=b();h(),ee(i.subtitle)}}var rr=(()=>{let e=class e{constructor(t,r){this.navigationService=t,this.global=r}ngOnInit(){}toggleSidebar(t){this.navigationService.toggleSidebar(),t.stopPropagation()}ngOnDestroy(){this.navigationService.resetShowSidebar()}};e.\u0275fac=function(r){return new(r||e)(f(de),f(L))},e.\u0275cmp=T({type:e,selectors:[["dg-doc-header"]],inputs:{title:"title",subtitle:"subtitle"},decls:7,vars:7,consts:[[1,"dg-doc-header"],["class","sidebar-toggler","href","javascript:;",3,"click",4,"ngIf"],[1,"title"],["class","subtitle",4,"ngIf"],["href","javascript:;",1,"sidebar-toggler",3,"click"],["iconName","list"],[1,"subtitle"]],template:function(r,o){r&1&&(g(0,"header",0),_(1,Ov,2,0,"a",1),$(2,"dgIsFull"),$(3,"dgIsLite"),g(4,"span",2),S(5),m(),_(6,Nv,2,1,"span",3),m()),r&2&&(h(),p("ngIf",W(2,3,o.global.config.mode)&&o.navigationService.channel||W(3,5,o.global.config.mode)),h(4),ee(o.title),h(),p("ngIf",o.subtitle))},dependencies:[z,_e,_n,Cn],encapsulation:2,changeDetection:0});let n=e;return n})();function Xd(n){return n!=null&&`${n}`!="false"}var Yd=(()=>{let e=class e{generateEntryFile(t,r){return[this.generateAppModuleTs(t,r),this.generateIndexHtml(),this.generateMainTs(),this.generateAppComponentTs(r.selector)]}generateAppModuleTs(t,r){return{path:"src/app.module.ts",content:`import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { ${t.name} } from './examples.module';
import { AppComponent } from './app.component'
@NgModule({
declarations: [AppComponent],
imports: [BrowserModule,${t.name}],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule {
constructor() {}
}
`}}generateMainTs(){return{path:"src/main.ts",content:`import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { AppModule } from './app.module';
import 'zone.js';
platformBrowserDynamic().bootstrapModule(AppModule);
`}}generateIndexHtml(){return{path:"src/index.html",content:`<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta charset="utf-8" />
<title>Docgeni</title>
<base href="/" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" type="image/x-icon" href="assets/favicon.ico" />
</head>
<body>
<app-root></app-root>
</body>
</html>
`}}generateAppComponentTs(t){return{path:"src/app.component.ts",content:`import { Component } from '@angular/core';
@Component({
selector: 'app-root',
template: '<${t}></${t}>',
})
export class AppComponent {}`}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=A({token:e,factory:e.\u0275fac});let n=e;return n})();var Jd=(()=>{let e=class e extends Yd{createFormInput(t,r){let o=document.createElement("textarea");return o.name=t,o.value=r,o.hidden=!0,o}open(t,r,o){let s=document.createElement("form");s.hidden=!0,s.target="_blank",s.method="post",s.action="https://run.stackblitz.com/api/angular/v1";let c=[...this.generateEntryFile(r,o),...t],l={};c.forEach(d=>{l[`files[${d.path}]`]=d.content});for(let d in l)if(Object.prototype.hasOwnProperty.call(l,d)){let v=l[d];s.appendChild(this.createFormInput(d,v))}let u=c.find(d=>d.path==="package.json");s.appendChild(this.createFormInput("dependencies",JSON.stringify(JSON.parse(u.content).dependencies))),document.body.appendChild(s),s.submit(),document.body.removeChild(s)}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=_t(e)))(o||e)}})(),e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function kv(n,e){}function Lv(n,e){if(n&1&&_(0,kv,0,0,"ng-template",1),n&2){let i=b();p("ngComponentOutlet",i.componentType)("ngComponentOutletNgModuleFactory",i.exampleModuleFactory)}}function Vv(n,e){}function jv(n,e){if(n&1&&_(0,Vv,0,0,"ng-template",2),n&2){let i=b();p("ngComponentOutlet",i.componentType)}}var or=(()=>{let e=class e{set name(t){this.load(t)}set exampleModuleType(t){this.exampleModuleFactory=new ls(t)}set exampleComponentType(t){this.componentType=t}get enableIvy(){return this.exampleLoader.enableIvy}constructor(t){this.exampleLoader=t,this.componentType=null,this.exampleModuleFactory=null,this.exampleLoadSuccess=new Ue}ngOnInit(){}load(t){this.exampleLoader.load(t).then(r=>{this.exampleModuleFactory=new ls(r.moduleType),this.componentType=r.componentType,this.exampleLoadSuccess.emit(r.example)})}};e.\u0275fac=function(r){return new(r||e)(f(yn))},e.\u0275cmp=T({type:e,selectors:[["dg-example-renderer"],["","dgExampleRenderer",""]],inputs:{name:"name",exampleModuleType:"exampleModuleType",exampleComponentType:"exampleComponentType"},outputs:{exampleLoadSuccess:"exampleLoadSuccess"},decls:2,vars:2,consts:[[4,"ngIf"],[3,"ngComponentOutlet","ngComponentOutletNgModuleFactory"],[3,"ngComponentOutlet"]],template:function(r,o){r&1&&_(0,Lv,1,2,null,0)(1,jv,1,1,null,0),r&2&&(p("ngIf",o.enableIvy&&o.componentType&&o.exampleModuleFactory),h(),p("ngIf",!o.enableIvy&&o.componentType))},dependencies:[yc,z],encapsulation:2});let n=e;return n})();var Uo=(()=>{let e=class e{set url(t){t&&this.fetchDocument(t)}set content(t){t&&this.updateDocument(t)}constructor(t){this.http=t,this.contentRendered=new Ue}fetchDocument(t){this.documentFetchSubscription&&this.documentFetchSubscription.unsubscribe(),this.documentFetchSubscription=this.http.get(t,{responseType:"text"}).subscribe(r=>{this.updateDocument(r)},r=>{this.showError(t,r)})}destroy(){this.documentFetchSubscription.unsubscribe()}};e.\u0275fac=function(r){return new(r||e)(f(Ae))},e.\u0275dir=je({type:e,inputs:{url:"url",content:"content"},outputs:{contentRendered:"contentRendered"}});let n=e;return n})();var el=(()=>{let e=class e{copyText(t){this.createTextareaAndSelect(t);let r=document.execCommand("copy");return this.removeFake(),r}createTextareaAndSelect(t){this.textarea=document.createElement("textarea"),this.textarea.style.fontSize="12pt",this.textarea.classList.add("dg-visually-hidden");let r=window.pageYOffset||document.documentElement.scrollTop;this.textarea.style.top=r+"px",this.textarea.setAttribute("readonly",""),this.textarea.value=t,document.body.appendChild(this.textarea),this.textarea.select(),this.textarea.setSelectionRange(0,this.textarea.value.length)}removeFake(){this.textarea&&(document.body.removeChild(this.textarea),delete this.textarea)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var $v=["*"],sr=(()=>{let e=class e{set dgCopy(t){this.text=t}constructor(t){this.copier=t,this.icon="copy"}ngOnInit(){}copy(t){this.copier.copyText(this.text),this.icon="check",setTimeout(()=>{this.icon="copy"},2e3)}};e.\u0275fac=function(r){return new(r||e)(f(el))},e.\u0275cmp=T({type:e,selectors:[["dg-copy"],["","dgCopy",""]],hostAttrs:[1,"dg-copy"],hostBindings:function(r,o){r&1&&X("click",function(a){return o.copy(a)})},inputs:{text:"text",dgCopy:"dgCopy"},ngContentSelectors:$v,decls:2,vars:1,consts:[[1,"color-primary",3,"iconName"]],template:function(r,o){r&1&&($e(),Be(0),C(1,"dg-icon",0)),r&2&&(h(),p("iconName",o.icon))},dependencies:[_e],encapsulation:2});let n=e;return n})();var Bv=["codeContent"],tl=(()=>{let e=class e extends Uo{get textContent(){return this.codeContent.nativeElement?.textContent}constructor(t){super(t)}ngOnInit(){}updateDocument(t){this.codeContent.nativeElement.innerHTML=t}showError(t,r){console.log(r),this.codeContent.nativeElement.innerText=`Failed to load document: ${t}. Error: ${r.statusText}`}};e.\u0275fac=function(r){return new(r||e)(f(Ae))},e.\u0275cmp=T({type:e,selectors:[["dg-source-code"],["","dgSourceCode",""]],viewQuery:function(r,o){if(r&1&&Lt(Bv,7,Q),r&2){let s;ht(s=pt())&&(o.codeContent=s.first)}},hostAttrs:[1,"dg-source-code"],features:[Ne],decls:3,vars:1,consts:[["codeContent",""],[1,"dg-source-code-content"],["href","javascript:;","title","Copy",3,"dgCopy"]],template:function(r,o){r&1&&C(0,"div",1,0)(2,"a",2),r&2&&(h(2),p("dgCopy",o.textContent))},dependencies:[sr],encapsulation:2});let n=e;return n})();var Hv=n=>({"dg-sources-show":n}),Gv=n=>({active:n});function qv(n,e){if(n&1){let i=Fe();g(0,"a",18),X("click",function(){let r=Pe(i).$implicit,o=b(2);return Oe(o.selectExampleTab(r))}),S(1),m()}if(n&2){let i=e.$implicit,t=b(2);p("ngClass",Te(2,Gv,i===t.selectedTab)),h(),ee(i.name)}}function Wv(n,e){if(n&1){let i=Fe();g(0,"div",2)(1,"div",3)(2,"span",4),S(3),m()(),C(4,"div",5),g(5,"div",6),C(6,"a",7),g(7,"a",8),X("click",function(){Pe(i);let r=b();return Oe(r.toggleSource())}),C(8,"dg-icon",9),m(),g(9,"a",10),C(10,"dg-icon",11),m(),g(11,"a",12),X("click",function(){Pe(i);let r=b();return Oe(r.openStackBlitz())}),C(12,"dg-icon",13),m()(),g(13,"div",14)(14,"div",15),_(15,qv,2,4,"a",16),m(),C(16,"pre",17,0),m()()}if(n&2){let i=Se(17),t=b();h(3),ee(t.example.title),h(),Cr(t.example.className),_r("background",t.example.background),U("dg-example-viewer-compact",t.example.compact),p("exampleModuleType",t.exampleModuleType)("exampleComponentType",t.exampleComponentType),h(),bt("title",t.example.title),h(),p("dgCopy",i==null?null:i.textContent),h(3),p("href","~examples/"+t.name,ve),h(4),p("ngClass",Te(15,Hv,t.showSource)),h(2),p("ngForOf",t.exampleTabs),h(),p("url",t.selectedTab==null?null:t.selectedTab.path)}}var Kv="examples-highlighted",nh={HTML:1,TS:2,SCSS:3,CSS:4},ar=(()=>{let e=class e{set exampleName(t){this.name=t}get inline(){return this._inline}set inline(t){this._inline=Xd(t)}get enableIvy(){return this.exampleLoader.enableIvy}constructor(t,r,o,s){this.exampleLoader=t,this.globalContext=r,this.http=o,this.stackblitzExampleService=s,this._inline=!1,this.isExampleViewer=!0,this.exampleComponentType=null,this.exampleModuleType=null,this.showSource=!1,this.exampleTabs=[]}transformFileName(t,r){return t.startsWith(`${r}.component.`)?t.replace(`${r}.component.`,"").toUpperCase():t}ngOnInit(){this.exampleLoader.load(this.name).then(t=>{this.exampleModuleType=t.moduleType,this.exampleComponentType=t.componentType,this.example=t.example;let r=this.globalContext.getAssetsContentPath(`${Kv}/${this.example.module.importSpecifier}/${this.example.name}`);this.exampleTabs=this.example.sourceFiles.map(o=>({name:this.transformFileName(o.name,this.example.name),path:`${r}/${o.highlightedPath}`})).sort((o,s)=>{let a=nh[o.name]||Number.MAX_SAFE_INTEGER,c=nh[s.name]||Number.MAX_SAFE_INTEGER;return a>c?1:a===c?0:-1}),this.selectedTab=this.exampleTabs[0]})}selectExampleTab(t){this.selectedTab=t}toggleSource(){this.showSource=!this.showSource}openStackBlitz(){pr({examplesSources:this.http.get(`assets/content/examples-source-bundle/${this.example.module.importSpecifier}/bundle.json`),sharedFiles:this.http.get("assets/stack-blitz/bundle.json")}).subscribe(t=>{let{examplesSources:r,sharedFiles:o}=t;this.stackblitzExampleService.open([...r.map(s=>J(E({},s),{path:`src/${s.path}`})),...o],this.example.module,{name:this.example.componentName,selector:this.example.key})})}};e.\u0275fac=function(r){return new(r||e)(f(yn),f(L),f(Ae),f(Jd))},e.\u0275cmp=T({type:e,selectors:[["dg-example-viewer"]],hostVars:5,hostBindings:function(r,o){r&2&&(Ct("id",o.example==null?null:o.example.key),U("dg-example-viewer",o.isExampleViewer)("dg-example-viewer-inline",o.inline))},inputs:{exampleName:"exampleName",name:"name",inline:"inline"},decls:1,vars:1,consts:[["sourceCode",""],["class","dg-example-viewer-wrapper",4,"ngIf"],[1,"dg-example-viewer-wrapper"],[1,"dg-example-viewer-header"],[1,"title"],["dgExampleRenderer","",1,"dg-example-viewer-body",3,"exampleModuleType","exampleComponentType"],[1,"dg-example-viewer-actions",3,"title"],["title","Copy source code","href","javascript:;",1,"action-item",3,"dgCopy"],["title","Toggle source code","href","javascript:;",1,"action-item",3,"click"],["iconName","code"],["title","Open example in new tab","target","_blank",1,"action-item",3,"href"],["iconName","external"],["title","Open example in StackBlitz","target","_blank",1,"action-item",3,"click"],["iconName","stackBlitz"],[1,"dg-example-viewer-sources",3,"ngClass"],[1,"dg-tab-links"],["class","dg-tab-link","href","javascript:;",3,"ngClass","click",4,"ngFor","ngForOf"],["dgSourceCode","",3,"url"],["href","javascript:;",1,"dg-tab-link",3,"click","ngClass"]],template:function(r,o){r&1&&_(0,Wv,18,17,"div",1),r&2&&p("ngIf",o.example)},dependencies:[$t,ue,z,or,_e,tl,sr],encapsulation:2});let n=e;return n})();var nl=class{attach(e){return this._attachedHost=e,e.attach(this)}detach(){let e=this._attachedHost;e!==null&&(this._attachedHost=null,e.detach())}get isAttached(){return this._attachedHost!==null}setAttachedHost(e){this._attachedHost=e}},$o=class extends nl{constructor(e,i,t,r){super(),this.component=e,this.viewContainerRef=i,this.injector=t,this.componentFactoryResolver=r}},Bo=class{constructor(e,i,t,r,o){this.outletElement=e,this.componentFactoryResolver=i,this.appRef=t,this.defaultInjector=r,this.projectableNodes=o}attach(e,i=!1){let r=(e.componentFactoryResolver||this.componentFactoryResolver).resolveComponentFactory(e.component),o;return e.viewContainerRef?(o=e.viewContainerRef.createComponent(r,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector,this.projectableNodes),this.setDisposeFn(()=>{o.destroy()})):(o=r.create(e.injector||this.defaultInjector),this.appRef.attachView(o.hostView),this.setDisposeFn(()=>{this.appRef.detachView(o.hostView),o.destroy()})),i?this.outletElement.replaceWith(this.getComponentRootNode(o)):this.outletElement.appendChild(this.getComponentRootNode(o)),this.attachedPortal=e,o}hasAttached(){return!!this.attachedPortal}detach(){this.attachedPortal&&(this.attachedPortal.setAttachedHost(null),this.attachedPortal=null),this.invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this.invokeDisposeFn(),this.isDisposed=!0}setDisposeFn(e){this.disposeFn=e}invokeDisposeFn(){this.disposeFn&&(this.disposeFn(),this.disposeFn=null)}getComponentRootNode(e){return e.hostView.rootNodes[0]}};var bn=(()=>{let e=class e extends Uo{constructor(t,r,o,s,a,c,l,u,d){super(t),this.elementRef=r,this.appRef=o,this.componentFactoryResolver=s,this.injector=a,this.viewContainerRef=c,this.ngZone=l,this.tocService=u,this.cdr=d,this.portalHosts=[]}ngOnInit(){}updateDocument(t){this.elementRef.nativeElement.innerHTML=t,this.loadComponents("example",ar),Rd().forEach(r=>{this.loadComponents(r.selector,r.component,!0)}),this.cdr.markForCheck(),this.ngZone.onStable.pipe(ut(1)).subscribe(()=>{this.ngZone.run(()=>{this.contentRendered.emit(this.elementRef.nativeElement),this.updateTableOfContents(this.elementRef.nativeElement)})})}updateTableOfContents(t){t&&this.tocService.generateToc(t)}loadComponents(t,r,o=!1){let s=this.elementRef.nativeElement.querySelectorAll(t);Array.prototype.slice.call(s).forEach(a=>{let c=new Bo(a,this.componentFactoryResolver,this.appRef,this.injector,[a.childNodes]),l=new $o(r,this.viewContainerRef),u=c.attach(l,o);for(let d in a.attributes)if(Object.prototype.hasOwnProperty.call(a.attributes,d)){let v=a.attributes[d],y=u.instance.setAttribute;y?y.call(u.instance,v.nodeName,a.getAttribute(v.nodeName)||""):u.instance[v.nodeName]=a.getAttribute(v.nodeName)}this.portalHosts.push(c)})}showError(t,r){console.log(r),this.elementRef.nativeElement.innerText=`Failed to load document: ${t}. Error: ${r.statusText}`}clearLiveExamples(){this.portalHosts.forEach(t=>t.dispose()),this.portalHosts=[]}ngOnDestroy(){this.clearLiveExamples(),this.tocService.reset(),super.destroy()}};e.\u0275fac=function(r){return new(r||e)(f(Ae),f(Q),f(jt),f(Zl),f(In),f(Mn),f(Ee),f(yt),f(Ut))},e.\u0275cmp=T({type:e,selectors:[["dg-content-viewer"]],hostAttrs:[1,"dg-doc-content"],features:[Ne],decls:1,vars:0,template:function(r,o){r&1&&S(0,"Loading...")},encapsulation:2,changeDetection:0});let n=e;return n})();function Zv(n,e){if(n&1&&(g(0,"div",5),C(1,"img",6),m()),n&2){let i=e.$implicit;p("title",i),h(),tc("src","https://avatars.githubusercontent.com/",i,"",ve)}}function Xv(n,e){if(n&1&&(g(0,"div",7),S(1),$(2,"slice"),m()),n&2){let i=b(2);h(),ne(" ",Rn(2,1,i.contributors,3).length," ")}}function Yv(n,e){if(n&1&&(g(0,"div",2),_(1,Zv,2,3,"div",3),$(2,"slice"),_(3,Xv,3,4,"div",4),$(4,"slice"),m()),n&2){let i=b();h(),p("ngForOf",sc(2,2,i.contributors,0,3)),h(2),p("ngIf",Rn(4,6,i.contributors,3).length)}}function Jv(n,e){if(n&1&&(g(0,"div",8),S(1),$(2,"dgTranslate"),$(3,"date"),m()),n&2){let i=b();h(),Er(" ",W(2,2,"LAST_UPDATED_TIME")," ",Rn(3,4,i.lastUpdatedTime,"yyyy/MM/dd"),`
`)}}var lr=(()=>{let e=class e{constructor(t,r){this.http=t,this.globalContext=r,this.hideDocMeta=!0}ngOnChanges(){this.docItem.originPath&&this.globalContext.owner&&this.globalContext.repo?this.http.get(`https://api.github.com/repos/${this.globalContext.owner}/${this.globalContext.repo}/commits`,{params:{path:this.docItem.originPath}}).pipe(Ge(t=>!!t.length)).subscribe(t=>{this.contributors=Array.from(new Set(t.map(r=>r.author.login))),this.lastUpdatedTime=new Date(t[0].commit.author.date),this.hideDocMeta=!1}):(this.contributors=void 0,this.lastUpdatedTime=void 0,this.hideDocMeta=!0)}};e.\u0275fac=function(r){return new(r||e)(f(Ae),f(L))},e.\u0275cmp=T({type:e,selectors:[["dg-doc-meta"]],hostAttrs:[1,"dg-doc-meta"],hostVars:2,hostBindings:function(r,o){r&2&&U("dg-d-none",o.hideDocMeta)},inputs:{docItem:"docItem"},features:[dt],decls:2,vars:2,consts:[["class","dg-contributor-avatar-list",4,"ngIf"],["class","dg-contribution-last-time",4,"ngIf"],[1,"dg-contributor-avatar-list"],["class","dg-contributor-avatar",3,"title",4,"ngFor","ngForOf"],["class","dg-contributor-avatar dg-contributor-other",4,"ngIf"],[1,"dg-contributor-avatar",3,"title"],[3,"src"],[1,"dg-contributor-avatar","dg-contributor-other"],[1,"dg-contribution-last-time"]],template:function(r,o){r&1&&_(0,Yv,5,9,"div",0)(1,Jv,4,7,"div",1),r&2&&(p("ngIf",o.contributors),h(),p("ngIf",o.lastUpdatedTime))},dependencies:[ue,z,bc,Cc,lt],encapsulation:2});let n=e;return n})();var rh=n=>[n];function ey(n,e){if(n&1&&(g(0,"div",1)(1,"a",2)(2,"div",3),C(3,"dg-icon",4),m(),g(4,"div")(5,"div",5),S(6),$(7,"dgTranslate"),m(),g(8,"div",6),S(9),m()()()()),n&2){let i=b();h(),p("routerLink",Te(5,rh,i.preRouterLink)),h(5),ne(" ",W(7,3,"PRE_PAGE")," "),h(3),ne(" ",i.docPages.pre.title," ")}}function ty(n,e){if(n&1&&(g(0,"div",1)(1,"a",2)(2,"div",3),C(3,"dg-icon",7),m(),g(4,"div")(5,"div",5),S(6),$(7,"dgTranslate"),m(),g(8,"div",6),S(9),m()()()()),n&2){let i=b();h(),p("routerLink",Te(5,rh,i.nextRouterLink)),h(5),ne(" ",W(7,3,"NEXT_PAGE")," "),h(3),ne(" ",i.docPages.next.title," ")}}var rl=(()=>{let e=class e{constructor(t){this.globalContext=t}ngOnInit(){this.docPages.pre&&(this.preRouterLink=this.globalContext.config.mode==="lite"?`/${this.docPages.pre.path}`:`/${this.docPages.pre.channelPath}/${this.docPages.pre.path}`),this.docPages.next&&(this.nextRouterLink=this.globalContext.config.mode==="lite"?`/${this.docPages.next.path}`:`/${this.docPages.next.channelPath}/${this.docPages.next.path}`)}};e.\u0275fac=function(r){return new(r||e)(f(L))},e.\u0275cmp=T({type:e,selectors:[["dg-doc-pages-links"]],hostAttrs:[1,"dg-pages-link"],inputs:{docPages:"docPages"},decls:2,vars:2,consts:[["class","dg-page-link",4,"ngIf"],[1,"dg-page-link"],[3,"routerLink"],[1,"dg-page-link-icon"],["iconName","arrowLeft"],[1,"dg-page-link-label"],[1,"dg-page-link-title"],["iconName","arrowRight"]],template:function(r,o){r&1&&_(0,ey,10,7,"div",0)(1,ty,10,7,"div",0),r&2&&(p("ngIf",o.docPages.pre&&o.preRouterLink),h(),p("ngIf",o.docPages.next&&o.nextRouterLink))},dependencies:[z,mt,_e,lt],encapsulation:2});let n=e;return n})();var iy=()=>["./overview"],ry=()=>["./examples"],oy=()=>["./api"];function sy(n,e){n&1&&(g(0,"a",5),S(1),$(2,"dgTranslate"),m()),n&2&&(p("routerLink",Vt(4,iy)),h(),ee(W(2,2,"OVERVIEW")))}function ay(n,e){n&1&&(g(0,"a",5),S(1),$(2,"dgTranslate"),m()),n&2&&(p("routerLink",Vt(4,ry)),h(),ee(W(2,2,"EXAMPLES")))}function ly(n,e){n&1&&(g(0,"a",5),S(1,"API"),m()),n&2&&p("routerLink",Vt(1,oy))}function cy(n,e){if(n&1&&(pe(0),C(1,"dg-doc-header",2),g(2,"div",3),_(3,sy,3,5,"a",4)(4,ay,3,5,"a",4)(5,ly,2,2,"a",4),m(),fe()),n&2){let i=b();h(),p("title",i.docItem.title)("subtitle",i.docItem.subtitle),h(2),p("ngIf",i.docItem.overview),h(),p("ngIf",(i.docItem.examples==null?null:i.docItem.examples.length)>0),h(),p("ngIf",i.docItem.api)}}var Mt=(()=>{let e=class e{constructor(){this.isDocViewer=!0}ngOnInit(){}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=T({type:e,selectors:[["dg-component-viewer"]],hostVars:2,hostBindings:function(r,o){r&2&&U("dg-component-viewer",o.isDocViewer)},inputs:{docItem:"docItem"},decls:3,vars:2,consts:[[4,"ngIf"],[3,"docItem"],[3,"title","subtitle"],[1,"dg-tab-links"],["class","dg-tab-link","routerLinkActive","active",3,"routerLink",4,"ngIf"],["routerLinkActive","active",1,"dg-tab-link",3,"routerLink"]],template:function(r,o){r&1&&(_(0,cy,6,5,"ng-container",0),C(1,"router-outlet")(2,"dg-doc-meta",1)),r&2&&(p("ngIf",o.docItem),h(2),p("docItem",o.docItem))},dependencies:[z,Kt,mt,Kn,rr,lr,lt],encapsulation:2});let n=e;return n})(),ol=(()=>{let e=class e{constructor(){this.isDocEmpty=!0}ngOnInit(){}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=T({type:e,selectors:[["dg-component-empty"]],hostVars:2,hostBindings:function(r,o){r&2&&U("dg-component-empty",o.isDocEmpty)},decls:2,vars:0,template:function(r,o){r&1&&(g(0,"p"),S(1,"Current component has not been documented."),m())},encapsulation:2});let n=e;return n})();var cr=(()=>{let e=class e{constructor(t){this.globalContext=t}transform(t){return this.globalContext.getAssetsContentPath(t)}};e.\u0275fac=function(r){return new(r||e)(f(L,16))},e.\u0275pipe=Me({name:"dgAssetsContentPath",type:e,pure:!0});let n=e;return n})();var sl=(()=>{let e=class e{constructor(){}transform(t){return!!t.importSpecifier}};e.\u0275fac=function(r){return new(r||e)},e.\u0275pipe=Me({name:"dgIsComponentDoc",type:e,pure:!0});let n=e;return n})();var dy=["toc"];function hy(n,e){if(n&1&&(pe(0),C(1,"dg-component-viewer",5),fe()),n&2){let i=b().ngIf;h(),p("docItem",i)}}function py(n,e){if(n&1&&C(0,"dg-doc-pages-links",12),n&2){let i=e.ngIf;p("docPages",i)}}function fy(n,e){n&1&&C(0,"dg-toc")}function my(n,e){if(n&1&&(g(0,"div",6)(1,"div",7),C(2,"dg-doc-header",8)(3,"dg-content-viewer",9),$(4,"dgAssetsContentPath"),_(5,py,1,1,"dg-doc-pages-links",10),$(6,"async"),C(7,"dg-doc-meta",11),m(),_(8,fy,1,0,"dg-toc",1),m()),n&2){let i=b().ngIf,t=b();h(2),p("title",i.title)("subtitle",i.subtitle),h(),p("url",W(4,6,i.contentPath)),h(2),p("ngIf",W(6,8,t.docPages$)),h(2),p("docItem",i),h(),p("ngIf",t.hasContentToc)}}function gy(n,e){if(n&1&&(pe(0),_(1,hy,2,1,"ng-container",3),$(2,"dgIsComponentDoc"),_(3,my,9,10,"ng-template",null,0,ke),C(5,"div",4)(6,"dg-footer"),fe()),n&2){let i=e.ngIf,t=Se(4);h(),p("ngIf",W(2,2,i))("ngIfElse",t)}}var wn=(()=>{let e=class e{get channel(){return this.navigationService.channel}constructor(t,r,o,s,a){this.route=t,this.router=r,this.navigationService=o,this.pageTitle=s,this.tocService=a,this.isDocViewer=!0,this.isSingle=!1,this.hasContentToc=!1,this.exampleComponentType=null,this.exampleModuleFactory=null,this.docItem$=this.navigationService.docItem$.asObservable(),this.docPages$=this.navigationService.docPages$.asObservable(),this.destroyed=new me}ngOnInit(){this.route.snapshot.data&&(this.isSingle=this.route.snapshot.data.single),this.route.paramMap.subscribe(t=>{let r=t.get("id");if(r)this.navigationService.selectDocItem(r),this.navigationService.resetShowSidebar();else{let o=this.route.snapshot.routeConfig?.path;this.navigationService.selectDocItem(o)}if(this.navigationService.docItem)this.pageTitle.title=""+this.navigationService.docItem.title;else{let o=this.navigationService.searchFirstDocItem();o&&this.router.navigate(["./"+o.path],{relativeTo:this.route})}}),Sn([this.navigationService.docItem$,this.tocService.links$]).pipe(Ve(this.destroyed)).subscribe(t=>{this.hasContentToc=t[0].toc==="content"&&t[1].length>0})}close(){this.navigationService.showSidebar&&this.navigationService.toggleSidebar()}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete()}};e.\u0275fac=function(r){return new(r||e)(f(ye),f(ie),f(de),f(Yn),f(yt))},e.\u0275cmp=T({type:e,selectors:[["dg-doc-viewer"]],viewQuery:function(r,o){if(r&1&&Lt(dy,5),r&2){let s;ht(s=pt())&&(o.tableOfContents=s.first)}},hostVars:6,hostBindings:function(r,o){r&2&&U("dg-doc-viewer",o.isDocViewer)("dg-doc-viewer--single",o.isSingle)("dg-doc-viewer--toc",o.hasContentToc)},decls:3,vars:3,consts:[["general",""],[4,"ngIf"],[1,"dg-doc-viewer-backdrop",3,"click"],[4,"ngIf","ngIfElse"],[1,"dg-spring"],[3,"docItem"],[1,"dg-doc-viewer-inner"],[1,"dg-doc-viewer-inner-content"],[3,"title","subtitle"],[3,"url"],[3,"docPages",4,"ngIf"],[1,"dg-mt-4",3,"docItem"],[3,"docPages"]],template:function(r,o){r&1&&(_(0,gy,7,4,"ng-container",1),$(1,"async"),g(2,"div",2),X("click",function(){return o.close()}),m()),r&2&&p("ngIf",W(1,1,o.docItem$))},dependencies:[z,ir,rr,bn,Dt,lr,rl,Mt,Rr,cr,sl],encapsulation:2});let n=e;return n})(),al=(()=>{let e=class e{constructor(t,r,o){this.destroy$=new me,t.docItem$.pipe(Ve(this.destroy$)).subscribe(s=>{if(s){let a="./empty";s.overview?a="./overview":s.examples&&s.examples.length>0?a="./examples":s.api&&(a="./api"),a&&o.navigate([a],{relativeTo:r,replaceUrl:!0})}})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}};e.\u0275fac=function(r){return new(r||e)(f(de),f(ye),f(ie))},e.\u0275cmp=T({type:e,selectors:[["doc-viewer-home"]],decls:0,vars:0,template:function(r,o){},encapsulation:2});let n=e;return n})();var vy=["toc"];function yy(n,e){n&1&&C(0,"dg-toc",null,0)}var ll=(()=>{let e=class e{constructor(t,r){this.componentViewer=t,this.global=r,this.contentClass=!0}ngOnInit(){this.contentUrl=this.global.getAssetsContentPath(`overviews/${this.componentViewer.docItem.importSpecifier}/${this.global.locale}.html`)}};e.\u0275fac=function(r){return new(r||e)(f(Mt),f(L))},e.\u0275cmp=T({type:e,selectors:[["dg-component-overview"]],viewQuery:function(r,o){if(r&1&&Lt(vy,5),r&2){let s;ht(s=pt())&&(o.tableOfContents=s.first)}},hostVars:2,hostBindings:function(r,o){r&2&&U("dg-component-overview",o.contentClass)},decls:2,vars:2,consts:[["toc",""],[1,"dg-doc-viewer-inner-content",3,"url"],[4,"ngIf"]],template:function(r,o){r&1&&(C(0,"dg-content-viewer",1),_(1,yy,2,0,"dg-toc",2)),r&2&&(p("url",o.contentUrl),h(),p("ngIf",o.componentViewer.docItem.toc==="content"))},dependencies:[z,bn,Dt],encapsulation:2});let n=e;return n})();var cl=(()=>{let e=class e{constructor(){}transform(t){return t==="ContentChild"||t==="ContentChildren"}};e.\u0275fac=function(r){return new(r||e)},e.\u0275pipe=Me({name:"dgIsContentChildKind",type:e,pure:!0});let n=e;return n})();var ul=(()=>{let e=class e{constructor(){}transform(t){let o=new cl().transform(t.kind),s=t.aliasName||t.name;return o?`#${s}`:t.kind==="Output"?`(${s})`:`${s}`}};e.\u0275fac=function(r){return new(r||e)},e.\u0275pipe=Me({name:"dgPropertyName",type:e,pure:!0});let n=e;return n})();function Cy(n,e){if(n&1&&C(0,"div",11),n&2){let i=b().$implicit;p("innerHTML",i.description,Ft)}}function by(n,e){if(n&1&&(g(0,"tr",22)(1,"td",23)(2,"label"),S(3),$(4,"dgPropertyName"),m()(),g(5,"td",24)(6,"label"),S(7),m()(),g(8,"td",25),S(9),m(),C(10,"td",26),m()),n&2){let i=e.$implicit;h(3),ee(W(4,4,i)),h(4),ee(i.type.name||i.type),h(2),ne(" ",i.default||"-"," "),h(),p("innerHTML",i.description,Ft)}}function wy(n,e){n&1&&(g(0,"tr")(1,"td",27),S(2,"None"),m()())}function Ey(n,e){if(n&1&&(g(0,"div",12)(1,"div",13),S(2,"Properties"),m(),g(3,"table",14)(4,"thead")(5,"tr",15)(6,"th",16),S(7,"Name"),m(),g(8,"th",17),S(9,"Type"),m(),g(10,"th",18),S(11,"Default"),m(),g(12,"th",19),S(13,"Description"),m()()(),g(14,"tbody"),_(15,by,11,6,"tr",20)(16,wy,3,0,"tr",21),m()()()),n&2){let i=b().$implicit;h(15),p("ngForOf",i.properties),h(),p("ngIf",!i.properties||i.properties.length===0)}}function Sy(n,e){if(n&1&&(g(0,"span",35),S(1),m()),n&2){let i=b().$implicit;h(),ee(i.description||i.comment)}}function Ty(n,e){if(n&1&&(g(0,"div",37)(1,"span",34),S(2),m(),_(3,Sy,2,1,"span",38),m()),n&2){let i=e.$implicit;h(2),Er("",i.name,": ",i.type,""),h(),p("ngIf",i.description||i.comment)}}function Iy(n,e){if(n&1&&(pe(0),_(1,Ty,4,3,"div",36),fe()),n&2){let i=b().$implicit;h(),p("ngForOf",i.parameters)}}function xy(n,e){if(n&1&&(g(0,"tr",22)(1,"td",23)(2,"label"),S(3),m()(),g(4,"td",24)(5,"div",30)(6,"div",31),S(7,"Parameters:"),m(),g(8,"div",32),_(9,Iy,2,1,"ng-container",3),m()(),g(10,"div",30)(11,"div",31),S(12," Return: "),m(),g(13,"div",33)(14,"span",34),S(15),m(),g(16,"span",35),S(17),m()()()(),C(18,"td",26),m()),n&2){let i=e.$implicit;b(4);let t=Se(2);h(3),ee(i.name),h(6),p("ngIf",i.parameters&&i.parameters.length)("ngIfElse",t),h(6),ee(i.returnValue.type),h(2),ee(i.returnValue.description),h(),p("innerHTML",i.description,Ft)}}function Dy(n,e){n&1&&(g(0,"tr")(1,"td",39),S(2,"None"),m()())}function My(n,e){if(n&1&&(g(0,"div",12)(1,"div",13),S(2,"Methods"),m(),g(3,"table",28)(4,"thead")(5,"tr",15)(6,"th",16),S(7,"Name"),m(),g(8,"th",29),S(9,"Type"),m(),g(10,"th",19),S(11,"Description"),m()()(),g(12,"tbody"),_(13,xy,19,6,"tr",20)(14,Dy,3,0,"tr",21),m()()()),n&2){let i=b().$implicit;h(13),p("ngForOf",i.methods),h(),p("ngIf",!i.methods||i.methods.length===0)}}function Ay(n,e){if(n&1&&(pe(0),g(1,"div",7)(2,"h1",8),S(3),m(),g(4,"label"),S(5),m()(),_(6,Cy,1,1,"div",9)(7,Ey,17,2,"div",10)(8,My,15,2,"div",10),fe()),n&2){let i=e.$implicit;h(2),bt("id",i.name),h(),ee(i.name),h(),br("type-label dg-label ",i.type,""),h(),ee(i.type),h(),p("ngIf",i.description),h(),p("ngIf",i.properties&&i.properties.length),h(),p("ngIf",i.methods&&i.methods.length)}}function Ry(n,e){if(n&1&&(pe(0),g(1,"div",4),_(2,Ay,9,9,"ng-container",5),m(),C(3,"dg-toc",6,2),fe()),n&2){let i=b();h(2),p("ngForOf",i.apiDeclarations)}}function Py(n,e){n&1&&(g(0,"div",40),S(1,"None"),m())}function Oy(n,e){n&1&&(g(0,"div",41),S(1,"Loading..."),m())}var dl=(()=>{let e=class e{constructor(t,r,o,s,a,c){this.componentViewer=t,this.global=r,this.http=o,this.ngZone=s,this.elementRef=a,this.tocService=c}ngOnInit(){let t=this.global.getAssetsContentPath(`api-docs/${this.componentViewer.docItem.importSpecifier}/${this.global.locale}.json`);this.http.get(t).subscribe({next:r=>{this.apiDeclarations=r,this.ngZone.onStable.pipe(ut(1)).subscribe(()=>{this.ngZone.run(()=>{this.elementRef.nativeElement&&this.tocService.generateToc(this.elementRef.nativeElement)})})}})}};e.\u0275fac=function(r){return new(r||e)(f(Mt),f(L),f(Ae),f(Ee),f(Q),f(yt))},e.\u0275cmp=T({type:e,selectors:[["dg-component-api"]],hostAttrs:[1,"dg-component-api"],features:[oi([yt])],decls:5,vars:2,consts:[["noParametersTemplate",""],["loading",""],["toc",""],[4,"ngIf","ngIfElse"],[1,"dg-component-api-content","dg-doc-content"],[4,"ngFor","ngForOf"],[1,"dg-component-api-toc"],[1,"dg-api-header"],[1,"name",3,"id"],["class","dg-api-description",3,"innerHTML",4,"ngIf"],["class","dg-section",4,"ngIf"],[1,"dg-api-description",3,"innerHTML"],[1,"dg-section"],[1,"section-title"],[1,"dg-api-property-table"],[1,"dg-api-property-header-row"],[1,"dg-api-property-name-th"],[1,"dg-api-property-type-th"],[1,"dg-api-property-default-th"],[1,"dg-api-property-description-th"],["class","dg-api-property-row",4,"ngFor","ngForOf"],[4,"ngIf"],[1,"dg-api-property-row"],[1,"dg-api-property-name-cell"],[1,"dg-api-property-type-cell"],[1,"dg-api-property-default-cell"],[1,"dg-api-property-description-cell",3,"innerHTML"],["colspan","4"],[1,"dg-api-methods-table"],[1,"dg-api-methods-type-th"],[1,"dg-api-method-parameter"],[1,"dg-api-method-parameter-head"],[1,"dg-api-method-parameter-list"],[1,"dg-api-method-return-value"],[1,"dg-api-method-parameter-type"],[1,"dg-api-method-parameter-description"],["class","dg-api-method-parameter-item",4,"ngFor","ngForOf"],[1,"dg-api-method-parameter-item"],["class","dg-api-method-parameter-description",4,"ngIf"],["colspan","3"],[1,"dg-api-no-method-parameter"],[1,"dg-doc-content"]],template:function(r,o){if(r&1&&_(0,Ry,5,1,"ng-container",3)(1,Py,2,0,"ng-template",null,0,ke)(3,Oy,2,0,"ng-template",null,1,ke),r&2){let s=Se(4);p("ngIf",o.apiDeclarations)("ngIfElse",s)}},dependencies:[ue,z,Dt,ul],encapsulation:2});let n=e;return n})();function Ny(n,e){if(n&1&&C(0,"dg-example-viewer",1),n&2){let i=e.$implicit;p("name",i)}}var Ho=(()=>{let e=class e{get examples(){return this.componentViewer.docItem.examples||[]}constructor(t,r){this.componentViewer=t,this.navigationService=r,this.isComponentExamples=!0}ngOnInit(){}};e.\u0275fac=function(r){return new(r||e)(f(Mt),f(de))},e.\u0275cmp=T({type:e,selectors:[["dg-component-examples"]],hostVars:2,hostBindings:function(r,o){r&2&&U("dg-examples",o.isComponentExamples)},decls:1,vars:1,consts:[[3,"name",4,"ngFor","ngForOf"],[3,"name"]],template:function(r,o){r&1&&_(0,Ny,1,1,"dg-example-viewer",0),r&2&&p("ngForOf",o.examples)},dependencies:[ue,ar],encapsulation:2});let n=e;return n})();var hl=(()=>{let e=class e{constructor(){}transform(t){return[`dg-btn-${t.btnType||"primary-light"}`,"dg-btn-xlg",`dg-btn-${t.btnShape||"round"}`]}};e.\u0275fac=function(r){return new(r||e)},e.\u0275pipe=Me({name:"dgHeroActionClass",type:e,pure:!0});let n=e;return n})();function ky(n,e){if(n&1&&(g(0,"a",11),$(1,"dgHeroActionClass"),S(2),m()),n&2){let i=e.$implicit;p("ngClass",W(1,3,i))("href",i.link,ve),h(2),ne(" ",i.text," ")}}function Ly(n,e){if(n&1&&C(0,"img",10),n&2){let i=b(2);p("src",i.bannerImgSrc,ve)}}function Vy(n,e){if(n&1&&(g(0,"div",3)(1,"div",4)(2,"h1",5),S(3),m(),g(4,"p",6),S(5),m(),g(6,"div",7),_(7,ky,3,5,"a",8),m()(),g(8,"div",9),_(9,Ly,1,1,"img",10),m()()),n&2){let i=b();h(3),ee(i.global.homeMeta.hero.title),h(2),ee(i.global.homeMeta.hero.description),h(2),p("ngForOf",i.global.homeMeta.hero.actions),h(),_r("background-color",i.global.homeMeta.hero.backgroundColor),h(),ec(i.bannerImgSrc?9:-1)}}function jy(n,e){if(n&1&&(g(0,"div",14),C(1,"img",15),g(2,"div",16),S(3),m(),C(4,"div",17),m()),n&2){let i=e.$implicit;h(),p("src",i.icon,ve),h(2),ne(" ",i.title," "),h(),p("innerHTML",i.description,Ft)}}function Uy(n,e){if(n&1&&(g(0,"div",12),_(1,jy,5,3,"div",13),m()),n&2){let i=b();h(),p("ngForOf",i.global.homeMeta.features)}}function $y(n,e){if(n&1&&(g(0,"div",18),C(1,"dg-content-viewer",19),$(2,"dgAssetsContentPath"),m()),n&2){let i=b();h(),p("url",W(2,1,i.global.homeMeta.contentPath))}}var ur=(()=>{let e=class e{get bannerImgSrc(){let t=this.global.homeMeta.hero.banner;return t?typeof t=="string"?t:Array.isArray(t)?t.length===1?t[0]:t.length===2?this.global.isDarkTheme()?t[1]:t[0]:!1:!1:!1}constructor(t,r,o,s){if(this.global=t,this.isHome=!0,this.hasHome=!1,!t.homeMeta){if(t.config.mode==="full"){let a=o.getChannels();a&&a[0].path&&!a[0].isExternal&&r.navigateByUrl(a[0].path,{replaceUrl:!0})}else{let a=o.searchFirstDocItem();a&&r.navigateByUrl(a.path,{replaceUrl:!0})}return}s.title=new lt(t).transform("HOME"),this.hasHome=!0}ngOnInit(){}};e.\u0275fac=function(r){return new(r||e)(f(L),f(ie),f(de),f(Yn))},e.\u0275cmp=T({type:e,selectors:[["dg-home"]],hostVars:2,hostBindings:function(r,o){r&2&&U("dg-home",o.isHome)},decls:4,vars:3,consts:[["class","dg-hero",4,"ngIf"],["class","dg-features",4,"ngIf"],["class","dg-extra-content",4,"ngIf"],[1,"dg-hero"],[1,"dg-hero-launch"],[1,"dg-launch-title"],[1,"dg-launch-description"],[1,"dg-launch-actions"],["class","dg-launch-action dg-btn",3,"ngClass","href",4,"ngFor","ngForOf"],[1,"dg-hero-banner"],[3,"src"],[1,"dg-launch-action","dg-btn",3,"ngClass","href"],[1,"dg-features"],["class","dg-feature",4,"ngFor","ngForOf"],[1,"dg-feature"],["alt","",3,"src"],[1,"dg-feature-title"],[1,"dg-feature-description",3,"innerHTML"],[1,"dg-extra-content"],[3,"url"]],template:function(r,o){r&1&&(_(0,Vy,10,6,"div",0)(1,Uy,2,1,"div",1)(2,$y,3,3,"div",2),C(3,"dg-footer")),r&2&&(p("ngIf",o.global.homeMeta==null?null:o.global.homeMeta.hero),h(),p("ngIf",(o.global.homeMeta==null?null:o.global.homeMeta.features)&&(o.global.homeMeta==null?null:o.global.homeMeta.features.length)>0),h(),p("ngIf",o.global.homeMeta==null?null:o.global.homeMeta.contentPath))},dependencies:[$t,ue,z,ir,bn,cr,hl],encapsulation:2,changeDetection:0});let n=e;return n})();var pl=(()=>{let e=class e{constructor(t,r){this.route=t,this.pageTitle=r}ngOnInit(){this.name=this.route.snapshot.paramMap.get("name"),this.pageTitle.title=`Example - ${this.name}`}};e.\u0275fac=function(r){return new(r||e)(f(ye),f(Yn))},e.\u0275cmp=T({type:e,selectors:[["dg-example-isolated-viewer"]],decls:1,vars:1,consts:[[3,"name"]],template:function(r,o){r&1&&C(0,"dg-example-renderer",0),r&2&&p("name",o.name)},dependencies:[or],encapsulation:2});let n=e;return n})();var sh=n=>({active:n}),By=n=>({system:n});function zy(n,e){if(n&1){let i=Fe();g(0,"div",6),X("click",function(){let r=Pe(i).$implicit,o=b(2);return Oe(o.selectTheme(r.key))}),S(1),m()}if(n&2){let i=e.$implicit,t=b(2);p("ngClass",Te(2,sh,i.key===t.theme)),h(),ne(" ",i.name," ")}}function Hy(n,e){if(n&1&&(g(0,"div",3)(1,"div",4),_(2,zy,2,4,"div",5),m()()),n&2){let i=b();h(2),p("ngForOf",i.themes)}}var fl=(()=>{let e=class e{constructor(t,r){this.global=t,this.navigationService=r,this.isNavbar=!0,this.cacheKey="docgeni-theme",this.isDropdownOpen=!1,this.docgeniTheme=re,this.themesMap={[re.light]:{key:re.light,name:"\u4EAE\u8272\u4E3B\u9898",icon:"lightTheme"},[re.dark]:{key:re.dark,name:"\u6697\u9ED1\u4E3B\u9898",icon:"darkTheme"},[re.system]:{key:re.system,name:"\u8DDF\u968F\u7CFB\u7EDF",icon:"systemTheme"}},this.themes=[this.themesMap[re.light],this.themesMap[re.dark],this.themesMap[re.system]]}openDropdown(){this.isDropdownOpen=!0}closeDropdown(){this.isDropdownOpen=!1}ngOnInit(){this.theme=this.global.theme()}setTheme(t){this.theme=t,this.global.setTheme(this.theme)}selectTheme(t){this.setTheme(t),this.isDropdownOpen=!1}toggleTheme(){this.theme===re.dark?this.setTheme(re.light):this.theme===re.light&&this.setTheme(re.dark)}};e.\u0275fac=function(r){return new(r||e)(f(L),f(de))},e.\u0275cmp=T({type:e,selectors:[["dg-themes-selector"]],hostVars:2,hostBindings:function(r,o){r&1&&X("mouseenter",function(){return o.openDropdown()})("mouseleave",function(){return o.closeDropdown()}),r&2&&U("dg-themes-selector",o.isNavbar)},decls:3,vars:8,consts:[["type","button",1,"action-icon",3,"click","ngClass"],[3,"iconName","ngClass"],["class","themes-container",4,"ngIf"],[1,"themes-container"],[1,"themes-menu"],["class","theme",3,"ngClass","click",4,"ngFor","ngForOf"],[1,"theme",3,"click","ngClass"]],template:function(r,o){r&1&&(g(0,"button",0),X("click",function(){return o.toggleTheme()}),C(1,"dg-icon",1),m(),_(2,Hy,3,1,"div",2)),r&2&&(p("ngClass",Te(4,sh,!!o.isDropdownOpen)),h(),p("iconName",o.themesMap[o.theme]==null?null:o.themesMap[o.theme].icon)("ngClass",Te(6,By,o.theme===o.docgeniTheme.system)),h(),p("ngIf",!!o.isDropdownOpen))},dependencies:[$t,ue,z,_e],encapsulation:2});let n=e;return n})();var qy=()=>["/"];function Wy(n,e){if(n&1&&(g(0,"a",14),S(1),C(2,"dg-icon",15),m()),n&2){let i=b().$implicit;bt("href",i.path,ve),h(),ne("",i.title," ")}}function Ky(n,e){if(n&1&&(g(0,"a",16),S(1),m()),n&2){let i=b().$implicit;p("routerLink",i.path),h(),ee(i.title)}}function Qy(n,e){if(n&1&&(pe(0),_(1,Wy,3,2,"a",13)(2,Ky,2,2,"ng-template",null,0,ke),fe()),n&2){let i=e.$implicit,t=Se(3);h(),p("ngIf",i.isExternal)("ngIfElse",t)}}function Zy(n,e){n&1&&C(0,"dg-search",17)}function Xy(n,e){n&1&&C(0,"dg-locales-selector",18)}function Yy(n,e){n&1&&C(0,"dg-themes-selector",18)}function Jy(n,e){if(n&1&&(g(0,"a",19)(1,"button",20),C(2,"dg-icon",21),m()()),n&2){let i=b();bt("href",i.global.config.repoUrl,ve)}}var ml=(()=>{let e=class e{constructor(t,r,o){this.global=t,this.navigationService=r,this.elementRef=o,this.isNavbar=!0,this.showNav=!1}ngOnInit(){this.channels=this.navigationService.getChannels(),this.elementRef.nativeElement.classList.add(this.global.config.theme)}toggleNavbar(){this.showNav=!this.showNav}};e.\u0275fac=function(r){return new(r||e)(f(L),f(de),f(Q))},e.\u0275cmp=T({type:e,selectors:[["dg-navbar"]],hostVars:4,hostBindings:function(r,o){r&2&&U("dg-navbar",o.isNavbar)("show",o.showNav)},decls:18,vars:10,consts:[["navLink",""],[1,"navbar-brand"],[1,"title",3,"routerLink"],[1,"nav","nav-spacer"],[1,"navbar-toggler","dg-btn","dg-btn-primary",3,"click"],["iconName","list"],[1,"nav"],[4,"ngFor","ngForOf"],[1,"spacer"],[1,"action-items"],["class","action-item search-container",4,"ngIf"],["class","action-icon-item",4,"ngIf"],["class","action-icon-item","target","_blank",3,"href",4,"ngIf"],["target","_blank",3,"href",4,"ngIf","ngIfElse"],["target","_blank",3,"href"],["iconName","external"],["routerLinkActive","active",3,"routerLink"],[1,"action-item","search-container"],[1,"action-icon-item"],["target","_blank",1,"action-icon-item",3,"href"],["type","button",1,"action-icon"],["iconName","github"]],template:function(r,o){r&1&&(g(0,"div",1),C(1,"dg-logo"),g(2,"a",2),S(3),m()(),g(4,"div",3)(5,"a"),S(6,"\xA0"),m()(),g(7,"button",4),X("click",function(){return o.toggleNavbar()}),C(8,"dg-icon",5),m(),g(9,"div",6),_(10,Qy,4,2,"ng-container",7),m(),C(11,"div",8),g(12,"div",9),_(13,Zy,1,0,"dg-search",10),$(14,"dgIsFull"),_(15,Xy,1,0,"dg-locales-selector",11)(16,Yy,1,0,"dg-themes-selector",11)(17,Jy,3,1,"a",12),m()),r&2&&(h(2),p("routerLink",Vt(9,qy)),h(),ee(o.global.config.title),h(7),p("ngForOf",o.channels),h(3),p("ngIf",W(14,7,o.global.config.mode)),h(2),p("ngIf",o.global.config.locales&&o.global.config.locales.length>1),h(),p("ngIf",o.global.config.switchTheme),h(),p("ngIf",o.global.config.repoUrl))},dependencies:[ue,z,mt,Kn,_e,Ji,fl,er,tr,Cn],encapsulation:2});let n=e;return n})();function t_(n,e){n&1&&C(0,"dg-navbar")}function n_(n,e){if(n&1&&C(0,"dg-sidebar",2),n&2){let i=b();p("menus",i.navigationService.navs)}}var Go=(()=>{let e=class e{get showSidebar(){return this.navigationService.showSidebar}constructor(t,r){this.global=t,this.navigationService=r,this.isMain=!0,this.isLayout=!0,this.isScrollContainer=this.global.config.mode==="lite"}};e.\u0275fac=function(r){return new(r||e)(f(L),f(de))},e.\u0275cmp=T({type:e,selectors:[["dg-root-actual"]],hostVars:8,hostBindings:function(r,o){r&2&&U("dg-main",o.isMain)("dg-layout",o.isLayout)("dg-scroll-container",o.isScrollContainer)("dg-sidebar-show",o.showSidebar)},decls:5,vars:6,consts:[[4,"ngIf"],[3,"menus",4,"ngIf"],[3,"menus"]],template:function(r,o){r&1&&(_(0,t_,1,0,"dg-navbar",0),$(1,"dgIsFull"),_(2,n_,1,1,"dg-sidebar",1),$(3,"dgIsLite"),C(4,"router-outlet")),r&2&&(p("ngIf",W(1,2,o.global.config.mode)),h(2),p("ngIf",W(3,4,o.global.config.mode)))},dependencies:[z,Kt,ml,nr,_n,Cn],encapsulation:2});let n=e;return n})(),qo=(()=>{let e=class e{constructor(t,r){this.global=t,this.navigationService=r}};e.\u0275fac=function(r){return new(r||e)(f(L),f(de))},e.\u0275cmp=T({type:e,selectors:[["dg-root"]],decls:1,vars:0,template:function(r,o){r&1&&C(0,"router-outlet")},dependencies:[Kt],encapsulation:2});let n=e;return n})();var gl=[{path:"",component:al},{path:"overview",component:ll},{path:"api",component:dl},{path:"examples",component:Ho},{path:"empty",component:ol},{path:"**",component:Ho}],ah=(()=>{let e=class e{constructor(t,r){this.router=t,this.global=r}resetRoutes(){let t=this.router.config,r=[{path:"",component:ur}],o=[...this.global.config.locales.map(l=>({path:l.key,component:Go,children:r})),{path:"",component:Go,children:r},{path:"~examples/:name",component:pl}],s={},a={},c=!1;this.global.config.mode==="full"?(this.global.navs.filter(u=>!u.isExternal).forEach(u=>{if(u.items){let d={path:u.path,component:Ya,children:[{path:"",component:Ja}]};a[u.path]=d.children[0],u.lib&&d.children.push({path:":id",component:wn,children:gl}),r.push(d),s[u.path]=d}}),this.global.docItems.forEach(u=>{let d=u.importSpecifier?{path:u.path,component:wn,children:gl}:{path:u.path,component:wn},v=s[u.channelPath];v?(d.path===""&&v.children.includes(a[v.path])&&v.children.splice(0,1),v.children.push(d)):u.importSpecifier||(d.data={single:!0},r.push(d))})):(this.global.docItems.forEach(l=>{let u=l.importSpecifier?{path:l.path,component:wn,children:gl}:{path:l.path,component:wn};u.path===""&&(c=!0),r.push(u)}),c&&r.splice(0,1)),this.router.resetConfig([...t,...o,{path:"**",redirectTo:""}])}};e.\u0275fac=function(r){return new(r||e)(I(ie),I(L))},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var lh=[{provide:si,useFactory:i_,deps:[L,ah],multi:!0}];function i_(n,e){return()=>n.initialize().then(()=>{e.resetRoutes()})}var dr=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=ce({type:e}),e.\u0275inj=le({providers:[jr(Ur())],imports:[ot,ln,Bi,ot,ln,Bi]});let n=e;return n})();var vl=(()=>{let e=class e{constructor(t){this.appRef=t}};e.\u0275fac=function(r){return new(r||e)(I(jt))},e.\u0275mod=ce({type:e}),e.\u0275inj=le({imports:[dr]});let n=e;return n})();var yl=(()=>{let e=class e{constructor(){}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=ce({type:e}),e.\u0275inj=le({providers:[{provide:Xi,useValue:kd},jr(Ur())],imports:[dr,Ka,vl,dr,vl,Ka]});let n=e;return n})();var r_=[{path:"",component:ur}],Xw=[...r_];var ch={title:"Docgeni",description:"\u4E3A Angular \u7EC4\u4EF6\u5F00\u53D1\u573A\u666F\u800C\u751F\u7684\u6587\u6863\u5DE5\u5177",mode:"full",theme:"default",locales:[{key:"zh-cn",name:"\u4E2D\u6587"},{key:"en-us",name:"English"}],defaultLocale:"zh-cn",switchTheme:!0,logoUrl:"./assets/images/logo.png",repoUrl:"https://github.com/docgeni/docgeni",footer:`Open-source MIT Licensed | Copyright \xA9 2020-present Powered by <a href="https://pingcode.com" target="_blank">PingCode</a><br />
<div class="beian"><a href="https://beian.miit.gov.cn/" target="_blank" class="beian-icp">\u4EACICP\u590713017353\u53F7-13</a><a target="_blank" href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=11010802034808" class="beian-public-security"><img src="assets/images/obtain-icp.png"> \u4EAC\u516C\u7F51\u5B89\u5907 11010802034808\u53F7 </a></div>`};var uh={"alib-bar-basic-example":{key:"alib-bar-basic-example",name:"basic",title:"Basic",componentName:"AlibBarBasicExampleComponent",module:{name:"AlibBarExamplesModule",importSpecifier:"alib/bar"},sourceFiles:[{name:"basic.component.html",highlightedPath:"basic-component-html.html"},{name:"basic.component.scss",highlightedPath:"basic-component-scss.html"},{name:"basic.component.ts",highlightedPath:"basic-component-ts.html"}],additionalFiles:[],additionalComponents:[],standalone:!1},"alib-button-basic-example":{key:"alib-button-basic-example",name:"basic",title:"Button Base",componentName:"AlibButtonBasicExampleComponent",module:{name:"AlibButtonExamplesModule",importSpecifier:"alib/button"},sourceFiles:[{name:"a.component.ts",highlightedPath:"a-component-ts.html"},{name:"basic.component.html",highlightedPath:"basic-component-html.html"},{name:"basic.component.scss",highlightedPath:"basic-component-scss.html"},{name:"basic.component.ts",highlightedPath:"basic-component-ts.html"}],additionalFiles:[],additionalComponents:[],standalone:!0},"alib-button-advance-example":{key:"alib-button-advance-example",name:"advance",title:"Advance",componentName:"AlibButtonAdvanceExampleComponent",module:{name:"AlibButtonExamplesModule",importSpecifier:"alib/button"},sourceFiles:[{name:"advance.component.html",highlightedPath:"advance-component-html.html"},{name:"advance.component.scss",highlightedPath:"advance-component-scss.html"},{name:"advance.component.ts",highlightedPath:"advance-component-ts.html"}],additionalFiles:[],additionalComponents:[],standalone:!0,background:"var(--dg-bg-color)",className:"bg-custom-example"},"alib-button-advance-title-example":{key:"alib-button-advance-title-example",name:"advance-title",title:"Advance with Title",componentName:"AlibButtonAdvanceTitleExampleComponent",module:{name:"AlibButtonExamplesModule",importSpecifier:"alib/button"},sourceFiles:[{name:"advance-title.component.html",highlightedPath:"advance-title-component-html.html"},{name:"advance-title.component.ts",highlightedPath:"advance-title-component-ts.html"}],additionalFiles:[],additionalComponents:[],standalone:!0},"alib-foo-advance-example":{key:"alib-foo-advance-example",name:"advance",title:"Advance",componentName:"AlibFooAdvanceExampleComponent",module:{name:"AlibFooExamplesModule",importSpecifier:"alib/foo"},sourceFiles:[{name:"advance.component.ts",highlightedPath:"advance-component-ts.html"}],additionalFiles:[],additionalComponents:[],standalone:!0},"alib-foo-basic-example":{key:"alib-foo-basic-example",name:"basic",title:"Basic",componentName:"AlibFooBasicExampleComponent",module:{name:"AlibFooExamplesModule",importSpecifier:"alib/foo"},sourceFiles:[{name:"basic.component.html",highlightedPath:"basic-component-html.html"},{name:"basic.component.scss",highlightedPath:"basic-component-scss.html"},{name:"basic.component.ts",highlightedPath:"basic-component-ts.html"}],additionalFiles:[],additionalComponents:[],standalone:!0},"alib-layout-advance-example":{key:"alib-layout-advance-example",name:"advance",title:"Advance",componentName:"AlibLayoutAdvanceExampleComponent",module:{name:"AlibLayoutExamplesModule",importSpecifier:"alib/layout"},sourceFiles:[{name:"advance.component.ts",highlightedPath:"advance-component-ts.html"}],additionalFiles:[],additionalComponents:[],standalone:!1},"alib-layout-basic-example":{key:"alib-layout-basic-example",name:"basic",title:"Basic",componentName:"AlibLayoutBasicExampleComponent",module:{name:"AlibLayoutExamplesModule",importSpecifier:"alib/layout"},sourceFiles:[{name:"basic.component.html",highlightedPath:"basic-component-html.html"},{name:"basic.component.scss",highlightedPath:"basic-component-scss.html"},{name:"basic.component.ts",highlightedPath:"basic-component-ts.html"}],additionalFiles:[],additionalComponents:[],standalone:!1},"alib-zoo-basic-example":{key:"alib-zoo-basic-example",name:"basic",title:"Basic",componentName:"AlibZooBasicExampleComponent",module:{name:"AlibZooExamplesModule",importSpecifier:"alib/zoo"},sourceFiles:[{name:"basic.component.html",highlightedPath:"basic-component-html.html"},{name:"basic.component.scss",highlightedPath:"basic-component-scss.html"},{name:"basic.component.ts",highlightedPath:"basic-component-ts.html"}],additionalFiles:[],additionalComponents:[],standalone:!1}};var o_=(()=>{let e=class e extends yn{constructor(){super(...arguments),this.enableIvy=!0}"alib/bar"(){return import("./chunk-3QIRK4HY.js")}"alib/button"(){return import("./chunk-3TQZKA5U.js")}"alib/foo"(){return import("./chunk-VO3AEWRA.js")}"alib/layout"(){return import("./chunk-4QOM7NMR.js")}"alib/zoo"(){return import("./chunk-GC6ZXOGT.js")}load(t){let r=uh[t];return new Promise(o=>{this[r.module.importSpecifier]().then(s=>{o({moduleType:s.EXAMPLES_MODULE,componentType:s.EXAMPLE_COMPONENTS[t],example:r})})})}};e.\u0275fac=(()=>{let t;return function(o){return(t||(t=_t(e)))(o||e)}})(),e.\u0275prov=A({token:e,factory:e.\u0275fac});let n=e;return n})(),dh={provide:yn,useClass:o_};var s_=["*"],_l=(()=>{let e=class e extends vn{set color(t){this.hostElement.style.color=t}constructor(t){super(t)}ngOnInit(){}};e.\u0275fac=function(r){return new(r||e)(f(Q))},e.\u0275cmp=T({type:e,selectors:[["my-color"]],inputs:{color:"color"},standalone:!0,features:[Ne,Sr],ngContentSelectors:s_,decls:1,vars:0,template:function(r,o){r&1&&($e(),Be(0))},dependencies:[ln,ot],encapsulation:2});let n=e;return n})();var hh=(()=>{let e=class e{constructor(){Wa([{selector:"my-color",component:_l}])}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=ce({type:e}),e.\u0275inj=le({imports:[ot,_l]});let n=e;return n})();var ph=[...lh,dh,{provide:Xi,useValue:ch}],fh=[hh];var mh=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=ce({type:e,bootstrap:[qo]}),e.\u0275inj=le({providers:[...cu,...ph],imports:[ln,Hr,Md,yl,Bi.forRoot([]),fh]});let n=e;return n})();zc().bootstrapModule(mh).catch(n=>console.error(n));