From ed208901f469795629707346d9b1b1d526b80f3b Mon Sep 17 00:00:00 2001 From: Ward Truyen Date: Sun, 25 Aug 2024 20:58:31 +0200 Subject: [PATCH] chore: password change --- back/target/familySite1Backend1-0.1.0.jar | Bin 57343314 -> 57345869 bytes front/dist/familySite1/3rdpartylicenses.txt | 82 ++++++++++++++++++ front/dist/familySite1/index.html | 2 +- .../dist/familySite1/main.16d538b861c9512c.js | 1 - .../dist/familySite1/main.b711afe55c8aa989.js | 1 + 5 files changed, 84 insertions(+), 2 deletions(-) delete mode 100644 front/dist/familySite1/main.16d538b861c9512c.js create mode 100644 front/dist/familySite1/main.b711afe55c8aa989.js diff --git a/back/target/familySite1Backend1-0.1.0.jar b/back/target/familySite1Backend1-0.1.0.jar index e0faa28f30d78ac929bab2e8229f336d53c262b1..5fb2ccc4b89e99aaeb1566d3e9637c535d230f73 100755 GIT binary patch delta 14744 zcmb8$2|QG7AMkPJ*hATuY}xl+WM4wElO_xXH&-}^deu5;$h88dWdo~H|?>)TVy)-&6fV^r)EbaZqS zAB%am<4u!F*d{6%k}D%xM5Fe{?WerHpK!SiL+i+Vj|m%LP~-5J5KD=j3gaU8wG-?) zJCh#xGEfLn!2c*IxG5+eY!~|rtrj%MaP`s0%v2viVI|@`x)2tunHq!+UsJ9;H@}dbVQF<&ab4VfxxFqCu2+X>ghXYXS@os2ltt^8drpfQeb{(a#P6vz z?OQup4T=Oqi#q=`hKBB;ts*G{M?1cbcK@KIa5EZ+iH~esH|%!vl-u@#^teZ#NbKjY z7TOrwtIpmGI@N2Kc{uy1d?yq6021w9&$o!TN{VmltX%()o+j`l1`>*njk{d>JVU%g>s+kbM;xbW?6DI@-$x4&Gg z+i|C>Qng6sXjdGwJsZmAKJhbWEf9nRHX9amzV^8RI9jDDpdpLzd*)oatBcJY`k2_dD?` z`rY3QU5^;Z-%#|({rX~;46mB%xW7poTZzP>0`~2PhK%16O*Q+k>gtd>V=y5M6SvCe0hCQUyC&Vm!N10E{CZg9okuMNjH_EPw%TzWkO@tB^*sp{kmoQy@?$5SRFaf zo*gG`-MSTv-&rQB@V!>7ZJRrt=4KMKm$kb>nXms;qS`ABdvOP~+f9l#G;U%h@g%8; zI(haYUM1Dyy-vv{uafD+!&(cnbE^Fg`6bcbIK#zRI-G0i87_S(+1lZS?&W8j=cpaF zchoGCpI-J};w?~04EC1UAH$~Sgr58V`fuQv7L za*2)3SF9t+!oW-IY2mK3VFlsakE}hj)oH}2!{L*Mq=e3i&_*Z9=?Ra>21`Q4T)(p7 zwZiJ{)91E{#6J&wVHYo#H8Mg-cihsqKp+0{!o9WrN0&)E3rI^2{6ZxcrLAI=G#_M; zv=tu)WjTZ$n0feIp+8AtN`E+lq2jpozgMljXevTV4l^ogrF;K65aNo;D=+{ig$?f6f3ZhxQh4>U!!MK{{W zv!yS4AAOinQsZ%Qtckl`*X4Y|I&+>8-#t$k{Aswp+L95QRus+B!@Uwv6qt@hFTc3oyra0_Sf z$OQ(@=Or6%ETmSMZ|)qpMSXF)MSd!h%PqI~w4GIuPAEfP9_zE?h2vD?zAr5Xq)zQC z7R!uysmi)xb0W`~$2(Jnq!makGB4)zKCg34Ehl-dKdjK!v&8))(uZ$yk%zav*Qqo6 zj{k?XdzLsPT%MG@y-p=io5^F3s3|C% zng8b($M#=-H&fV>@os`TIr1lgip(@Y_}yO>HRxBx0^Q0l6x}(3_aA%0ox8+JABE(=DT&|}iftn5U0L+J~pK}xbzaP9%s*{!#FPF!&J`S!52X#7}l$dNdK zxh=g#>IL+kPm9KldsXYFe>7B(@^>^o370Xil8u=x+M%ag5j^nZ@!5gL`+fUAJtxWQ zPeENPq*e`i9vaEWRg$GF6W%jdOHv9dVYXAi(W2$BTcFbsf^LY zuxk@5{|o0-4hF}|&T+eWzG@rc+|nn{=Jcy@bn!$t`Fm~AQr0cHd75r*QEh;$OLSye zD=+nK2W{F3?hhkLirY?488DP=z_=OtZ9DH&b_JW<-SB%&bHooXXSy#Q-T}q7^dt76FJ!=vqV&idyUq-E99+BQWfW3RI=3b z?#tdtRS|5rZR@0Zip~w)7nvK`G_Ut;&GmM^)_ri##rh3rU$k?Mt8+hO$1k@^^_9Pk zlb&iiktlqkCw8l(i8bS`6JPsSjeI{F`qPfT-OjzF(XOR* zhRDEwu;*>OI=v&iisA7vxhaPkO^%BD>wQl>Y%gL-eSJ`_>*B#(57>{&UYj&y7-W$KNc`2wwXVb7sp%b-qItKW$#K9$dfC zJ+p7>hU{6*P1mJu^NhcmuepX#DI z$yX=1oubHiUt@jAl9>o+YL{pG$>nw$2?curC-MVKAiMWXaeu^prTPoA0>lof`!Amz zj5*{g<9m+ho2s?=rQz^3DUk{jbX(=pGq^YljM zSpStW&)g&^A^JDJ!`)$6D|i%)v~Y**lNZ}sofMVP0kz-vU_en zF0MREqg3>8bGbV6=co1R++mJYA@i>)Rjls>=Oo{-Zf+yRmFX6U?W%j}?EE8T?{l+~ zv+{+$CC%0hhnMru1rN3A+6Rqi2ab&UMtL_BIBMH&i@(vrua%zv?sfAvpVYw0(z{ho zVz)hBcsySh;$KPZS2xNlFX*c(%hf-*H;^1_->({i&EL>4Gfv8FAj-_R>q*b*aO`Lu zrjU0UN?@E=Al30Y$BZef`{$lG?>jaBs{fAk?5_CTA}Y%99y4DrdK)x+Dbf0IIA*V! z;_I)Y5sQSzZ8I_)jjj9rv)&(7DW?z5WhQ3O#TvBbib-yLxOnm6=aWPpv9+Hf+Mlw; z_i|tVI2&~NfyCXTNkg%fwdDRBr(o&PyO}q4zRG*}O zz5Pu$`)hmb;Lqh_+{#174VD#D#|=`Pa|Y+cRl7NKDmAC?8Z`}YpV@lItw}G@)`|1N zwMvQPiNq(m3;up{PE6TX7~UutP`gi`zo@vB6k@*7og)0yzN4Ws?lSL(4&6? z<{kgjPOXD_$2QOnljJivTV*z0*JcpA_>o-trRbWAi}Sddk8I*CV!)T`O7p0EJj7?? zv6{Xiolpg-0g3Lm02R+4#isdXHxn;Bt8GpA`SNp#UW&s>uO+X#`YAKjb9YE z^E0B%VJz$N+eF7S14w1Z@2K00s~55u&_`s}n9dcStQ6Q zhbczli{zWIEgj}XZK8HLC({NA^1g?@y|S1xdE!-anAddd&Jh6-@;ch_lTVL*QqD=j zKUZ3v9}(`Wdl+Ex{eUA?WPYRbTVfJtNu%3k^ToI{C$@yhc4vdzq%fHw$e1J>zG&|3C z=7%F4@7A17wD1;wnzQS(%+Uu!=d-(W@2^)FwA`M^THsyf3emwT7cZ!f&~Zswz{;BKRyf?XTa+n)||} z!LZ>tH_2h^F-y&>8GNBh5smU?=B9bA>SN!}&ef!PlT4-?j;2|NGvXIjnu zpM*YYlHmTtWhHNW{&%9i#i$8!rd~~SZ!%N92e%wIW_f?^|)8&dSRNz zHACO#W1{tvo(<#Nyj(WnFT(|mmw43sel&)}SbMx(KWCUW_Cs>#_V{aB1vjtwhh}dY zU}gB(+PN)jkm0An4s|Z^3)mIYWEshHtR{&XGawMOpOD*WF?m+M>Sej3v;+6|A0MLq zv>+0;L{Da-!?<~N<=$g*Mdvf}m-D%LI(6x=UB5YeGRb-jMhUDrds?$h3rMDDwFG9z}WXT@v6 z8DAW%6&c*E$(x;>7fagDb3?}?OV_VKG1yL!5X9^`cmAE0yG(%PXhdCVXQpAu?3Jo7 z0zC@VbZ-gnrMKJLxi6GXu6fJhHpl4R>_eq94DVZ|F1-;k)kXZDg3oU8EA=aAB0q9n zSIXP*;Z&vh-s0Zu+s~YIxSW)%9yPa|ED`e4H=U?RyU~AtA#4wcF~4FdMD=H+9Le*C zn9J1BM4gbU(*k)vcqUr<-T7)0?uKlsC=|-)pX>0t$koX_FtSshzm_I@ao-&e(RASe zIlQ*IktbHVAOQLG8 zz*{j-fh9`qducl;(}OzA>-tr0kTV8M{a(_!toxF&|I4}enQI3X`D)p>@V`z!uS~T? zGl|EAnyc-tdHd5x9dq&IfOBLinFoq|tRjtku9l>o9p`*{k~qC4I4#21+K;qn)_vT* zUue1F*%FhjOhwNAA-N+FS{2_|>PfWIgGNWkhnr?N8k$1<7X{(vt1I*{PmG3w;=}*` z6OD|n+HD~_ti`x~_cIs07MoxF_t-IR%=I_3-~u0e4S@%1qyPI_pb_~FH%3c3Gc$(oWoBm#&nWm? zHrz2&v7}d-X>RR5{^CJK`pfY-Tyc@&QwHs+D8*;AG#-x_NsUo>lgNd>Z14NmEnQm$ zK2E*4HrgNl)noi5DQ}VBNqy_h7NG$BYxyEAX<-jehCLaa@|x;zGP2ELyyVk+eOTJ) z(9xZZYsBjqgIvd=S`VZJYif#P1vVmcDPM9{!wU0=9m}%U+t+2H@ zdt(TJ<{Bs6z%WM>sdIQ59QE6W4Q3vEHh<%N+p|D$f7;atZ?0GD z?(^d2R;X^hr8*l&SnJGvPb@yqXoKGF+FKgBT~jtvY1e0phpgz0`6T1L);N7&yp^KJ z8rs%Ocg2?5MI*N4%Yv)DBP3wMQ5pQF8j~Gu)1`aq*^prfTviv!+W_daKL3ig8Z@bLSHk}*T zS-R=kD-t)WrPzi$XQgTTZTA_~Hjmn6jcu{+l%3O0(3bdm>Gq8{+3*YQQ*0ItdWp<0 zzxa6epD_tZAN(zK|ThvpLVJ znqI@>+tub`(+|3iJ)1S-uJ0?`b@xuOv=qahNjKJBov*2z%ZS^2CT^1?b(WRxs<+qO zzw_XSc!+r_T`NOg$hOj8$+~6D`L_ohf+9(;3O>J<`qX#u>mI2wLb)9Ive>lE8DT{m z&)T0Z1-w08wF`$N-QB2K)jsr5UEdiUF&EF^H-2D}U|*r((r8r5SI(WX@V>)SFSasd z{B%+>_r;4G9TJLW@3!66vLuPvPv>kb6!bbeVCa22V{EHwVZWpB=j_cYwNc(%s=39j z!!zymn#OW_J!2D3KQEK;?vSGTBC0GmH+{Hx`k4Ddkjk;Tlsu0HrKKG~&-1Tpt9|DW z`WW;<{nUV=b)MA{LtyxkPmHGzm}Q>OdN$|$+&9A1+A%z7jYOqy)oUL4ZW4>piG}JT z#Z`69MR|qGRQ20+&R&kGw*Qp9$J|pTsUTgS=h~_BOO%s?;;&erXAADi+hgWZKE&Cs zy2s{wy|oH|FLyJos<~H`)yYnYXN&8P(LDC!R!z%qe3&sb8xuD~}yw_RD!BT7LSpW|UH3 zeCdwz*bE|3q_jn=m^JrCyw;jcf>&ENh?!;eR@&sS z)Yn`_-s7#@m#A9v*v5{Yvx%o1J8Z;%zTRKh+5BZ`N}j8YssE%sed+tWw|n!i>wQ17 zgZ3Ez8HM9(@3ILFTJ>B`-WoF~??dq@bnX_`_G%z zU&o!onEP+u^lFSmu(hjijr_`(897e|Tl>4IcV#dqnw7UkG}ZYxv&d1#7)MRMGB!ZN zg8s7l$K^9~GRsSX8oZ~{klQw4+`rjH&G$_h9ky~uR63a3Z)U+AvDYN&U?kdqzFp() z14NADH(S-9t@f;LfIcGJ^P5@l!6REuoF#UA^)Og$vEP2!mu`zOF~Mh=2?ZV)iV8)I zqCwH3=uq@12Gkl9BZ>*dj9QCYhhjmoqS#REC=L`SiVMY!f_?L%)}#1P{3rpGAW8_e z0VRwQL5ZToP~s>Flq5^icXJ1C$}k2(=kyj50x)qPC#SP+L*vC<~M&$_izTvO(FR>`?ZoZ72tnBgzTo zjM|QJLAj#bQ0^!X)DDy<$_upL}_MDgs49MWUim(Wn?yEGiBak4iu#qK>1IP$y8ys1#Hx z>Le-+m5$0lWumfB*{B>88FdPE8g&MB7L|)Shss0YsC-lbst|P^RfM{LDn?yIm7p%6 zE~83OWvFu06;uVP5_J_-g}R2SMqNkUK-HjXQ8!U_s9UJpsCrZbsu6Vu)r4wB-9_C) zwV+y2_fZc}4^fX$ZK%hncGMG82dWd*g?fs5hI)>AfqIGRM)jaxpMd#zHH3PHdXE}Lji5$RW2kY|2h;>=67>-^g_=gqpk`5@P@hqAs4u9msBfrw)OXYZ z>IZ5OwS@YKT0T+WL3t7d5C9CI0;mBRfEJ(w=m7>`4ZsL60nET!U>(2$umWrVJHP>O z0$cz$zyt6C>j6H19}oZp0U=-mAPk5AqJS764oCo!fD|AN$N;i{93T%U0E&PTpbV%0 zs(>1>5l{y-fK7lVpap0HI)E;q2j~L^fFWQ6YzB-06TlSM0+<0?0dv3tumr3CYrqDu z1?&KOU>o27I08<9Gq4?S0bBt$z#Uk5R(HV26Yv6d0=ocjzz6UJ`~ZI-03ZUpfjz)p zU>~p_H~<_34grBc5O5d>210;PAPhJHgab!`V?YEz0wRGZAR34PVu3gy9!LNZf#X0D zZ~{mMQh-$8B#;KA0~tUjkOgD|IRF_r1)K)X0B3<*;2e+#;6Of502Bh}fg<1nPz+oI zN`OniWuO!&1ImFbKm||D10JXqPpboeN+y?4_2A~nR12h56z+K=T z&;qmq_kjn%L*Nn620RAZfhRx*&0{089Xrz(-&TmO}!8JGjU0AGP`z&!9BSO9(ii@*}_ z6IiB1Z+`?dpacj222cUi01ZG3&;j%S1F!~Q1egG3U@fo?U;$VGHh>-A05}0IfE(Ze zc!Bi*AHWX?0D^!JumKPTL;z7h3=jt-07*a!kOpJ`SwIeu2NVEBKnYL=Q~*^#4cG{% z0~)|4Koigcv;iGJ7tjOr0RzAgFakCM#()W63Ty$)fUSTzU;$VHR)95N1K0v~fIYAc zZ~z3a1Uq!T7mn( z1K=U>2xtQy1MR>QpabXxx`3y^GvGP!0(c2@13kbi;5E<-^Z{>xeqaE23k(87z&qeQ zFbs?Uqrez24txM6fJxvZFa=BlGr%nH3HS`m0bhWxz&BtX_zo-pKY&GG3HS*t6VTfq zh6a=X0l)w%fEu6yXaPEa9$*000E_?=zznPf)&VR4E5HV@0~`P+zy)vvJOD4S9^eD` z0Rcb|5CS#;!hi@M3Wx#XfCL~3NCDD-3?K{00rG$Xpa>`d%76->3a9}a0d+tF*aT<- zT7Wj71Ly*JfIeUV7y?GXX22LQ0Zf4{fElnAFb6CEOTY@S25bOZzz(nnwgC=+Bj5x$ z1KR-?z!h)<+<}#6bq9<*0WV-DunX`8d;nj-5AX*9utxOuhcRt}s{xHy$wVv|gCQ<` zmWbV6{VH^0t|G>nmrKMptV|L`BU#1O?{(YWFXYAdJtks2D>o&fQPs+Kxp6)8J!Y>z zeVJPxe~+fb!WX&m-5o@9iTe-VCBZx|hV?UIzN*(Og2))?*R!@#ot|2 z{^fPku(H)-!@myq4;P4kdECSwVdwnN<37hiL1FTb!?iNOqxy-MnRoPXTY$^*ZIrmZJvI<9P`N>=P7(37<-F`<9o(&a5|>FTn& zC0>daCH}Y-PBVz!J_!>$SGHiowb5Jc8uF9vm^L1XZjr{W?80(9u#NaTv?PaV`oWSu zp5{wQpk9Oh_y1W$ezbv)moVXnlZJ@cCQQ;F!ztxr2^@GQTGqg_H}d_pEcA|unPB&% zHOXtw>2l$bXi*b0E7pZYaa{d95o0EIPnfP_{QC{8C`#xH&V<(65mKyiFEp?uJUfn8 zqJa(7yFyC}+~6a+P)}|=ZOMzP3==U)%$(jTo5gAaPFh(ai`f5l-;HQl0~3kb{@3!_ z5xDa$7k&R)UN=g_=*el?F*NuAbdxH!wjt)Pn{K0JZA`F&{L55*%xUiYU(5bzQ$36> zr(|WB8*fI-YFJ1@3t1zx3w~u9J!-rY-NZ}K zb-^dmz=D{TcOUjOq7r5Jt;RuGt6@QY|*O?c;x&!d3_p*I>g znIvNNRF5W?De?4o%ar^$A6mhH-$M#esjZ} zu){>MY4SdyCnIkP&Q>L-z<-vg@iZm@0vo;u-6Dz2B&x35f|sF14J<)gV|8&6EvggD z!*DfpMl7*}IGxq?XV9WH)@rJYr_Z2Q5I&8T4KceHzb-T28jp1ethoFf9P$A)Pk>h>?KYoEAiub?@%y&caUyqUpJrW)4wMFA!%lpx?KB19>Uqu5OOw#M& zUpMf6fuE0cF8B^Kups0+;pJ#xL(pTzm(jqHP;P=deMM)KN@T|;0{+3_6M-LZK`SH) zVT|}R8rTr-y}}K?q34i_T38grA9IUh8}M4RLXuE_4Ie@SSHgoYxZXU>o$|!f(ZGVx zavC2%11GA{(^}YHKdjc@(Q`vZm8Xs2ZCTow2+p_wPe?ObEkN}(To=RZ59wl(E2||5 zXFuT^(e0b5@E7{%Ed!l4cKpa=eQfnb!GM>e8wIEu)7<~Q@l1j{wr=GWgI)zIH@=$r z&y6cDV7z`5rda%d)B7ga_wOxNZ_GxkH3_jl@h&uQp_1YX!0;KS08AElU4#v&y3mT1 z;~*c9Q+cLcY8VAYG!q2{=il#6=)Xl#Kl1T+XqxECU+D}>@D?0Y YgiD|SKl2pD6a~#r3JRqQM6~Vy0g0qVkpKVy delta 12468 zcma*t2|N{h*uZgSWQ)kYi^{&Y*o(-LHQ7s2h+}V)7AGZbB88KZ2}LSf2`y4cnE(;DBM{ae^i3-^p!h9u!IRB7@bqt9bVj&JnoN9<@W^z9>C!_fhu|miw zvDlZBX%-Xy!^|YY#5BuSGv_Up{uhlDV0bf1Zrna;O84}Wr z@;YJ$Wz<9?g-WEJ5TVSZ_6`9?LOl^Iq<6CF-(OU8AaUA9#_gAcK#Ag0V%F4D>t{s3 zZ>P3DBc!LMnmdyw4Cz{8I(6n1jg(|4Z-hp#&6qdm=B@r$$9v!WNvQg$~T^HbCq391~J|CMnyG-haq zwm=oz5dZqLg1LiLNxO~9>_y@(Kg-B>>-gN$Ki{ipe2z=NVD54YGuy1|GdtcFUeHY+ zQxQJ*x^?B^fQg3(1q1KBd#IR{Dzhuf+vNUN2emvl{Zp^@meux8FxgwNvA+s*t>=VS zX%zbBLxCqwely|stG7V)6|r;r4lKGg*Vq8C~JHGUFLNUFI}B&P8F~GyVt>YDLGi`6EfrnX{E{Y0I^iO0U~stoJG@Ih7$F*C%|c%gjGH=dkrMVp~G}aPILt-t;x8VZL*< zIDFR?DOG*Ge}YnyZ`(Qi&Dq3PSYqDx*-8yzi2}}F0wTPVY#rlXhJK_kH@(%yaglBm zNvoe-q%+$tdA)>$aN`Bh!$~U)#@6Q^HqVds?KAQ2Grg87D7QXJOM7HVtzvRveNGkq z%FuDO=`C-VKBfj-UGbgs^6rofHQ|Rvb6+h*jUTP3dgUkKVYuoHsYH z_1oRP#G2>Rwms&ed-Tk^DKWg8_ZBCmmc4o~Vkc+CZE>}gs)rhu&1b(kt(3%*!sD&A zeL9>FkBR?#QY17GOBrkW3E5wr8OQsHuk4fG?UF_bZ~FiL-R{31%R8<7v0J z_G{j&vMTU6sk3XYiOP*Tnrl`G={wJk4PZaOkc*xFSi|hZa$mDGsaazuKJ*HOhcSw5 zuIUG_70rq<6pTgQ#;?E1IQo+A@YSGCx-P3J^s+4a``ma&-Z@r}J4OxFk1 z7w=G5VV}2_LrH{?FXB*5t*d!5VARJFf1OM4RE&SA2ba(7x==x-!f~gX?X12yO}YsKP>o^=yQC|73&6-m=As& zghMiYU1_pm68}bp>o3~PxoLtdjw&XSm6uY#&wSdM+3agCS7dsEM`FFJXl!)GMg_g| zg%ZjF7aa>Z8?^c&VisyTN@-h{tyjvJ$Fk>1#gQ%Effm=zWDSmN;C}dw@6A2h#pMOg zcQzKpr3b5Vm?X7JoY}QO^wyf5{kvIX4ksImZE+~3d&NnWT$w`^^$iXjf0tFUuk_d@ z>wWzTJStD|aV|VpDs{NZ;DKe;&>FwIFwPUAjd^0b&z${eT05r1GSi{Ja_Mw;(LAal z>-#3rO$)T&YmBl6d-)wqHnMu+7XOII^oq%ol~G-4p`Ow#GfSdMNO0xeQ%-EGF&~<> zL*GR$N?&uGZeOq`eL*Qx7-69A)Ew;*JwM^|2Ns|6YR4(>nKDb<*z^SZoS*D9nVL%>1g`IuEt#{Y1X;m<32ruMWVuM_|F!qe^lX?rrU?{K9=Xsdmhvzrul(= z^kW%p7cDJ3h&<9}=M|ZD1dw)eP& zWRmhab6-RmyWBRG^rbsFhii3GYU$X!bwj!s$rgXXr$U+e1Uc3tW&XJ+bs^w^*d{;B>5uHiT zhp#mEXxzMz7`D34z=%^>;={;+dB&atqSBm8Dx*I{eu#7XYHTy7sdHh93tb`TU@5nF zoUw2C$*iTPQr(jj9%qd14|}w!;_j7F$Fn}76|ejoPRtL?JJ$K|+Ps%!Vz(w6No?{=$a^v#X!lEsHMshoWxB;DWOAo|2~jJtJE1|!(+-?nnoh&dyHqu zajBjyao}rmk{EN`HBJ>zOSpDcCr3wg(YMTj*lI#Xnbo zo}Suc@N@^WA;qa)Td=wPn&N=Jd2HI(h}<=$pC>vTyPLyi%ihe~#J+;IVX3pI{F7e# znRD6oOTBBk*IFFg?;ax2b#{A*#?VFY{(;Lf>(h34iD0Bd!5CX^k!1H6*ORj@wJF&r_sW0dzS40ZL#xQTp_q?DFHbersY|DO z%VyV+^U)0#8V_-92ok$^;`5^;@&O7ZD$4S8^mT4|CRK_dC-kofjuuO|-VPVsVRz^A zAW3V!dQr41dV%d-S|0cO<2^3!hUr@-O!?mAHJtVh(RTGE*V)g`y8pfZ4Gk%L%Iqlpgr=AE7rJillW%RwhY9q;k*O*2$3`Yl?uQ}hl z)45gL!zrFAMM7L4D=}3tqeD4sZQs z7=&?2xKHBEmFKtev{==AzW-^118ZRGFni(x;lfQ~4Wo6f+oV2a7rxcJxY#svCO98Tx#Y(pq)vj`fE{C-1+yr^|K4_BFet>*IBA z_&R2dFW+Xny4oR3pNIZ&K25D6=VWSiBG3AzO!qzsPcJ`_F|ALX(N{mQgyF&;v+I$o zacQubcyV2;RNx)n6zbua#lrsC0ynJqT4ryJ?fZ0T)eO(ep1vgy%vnz7rf@A*`@Y&r z#jdWYdqbq~oD>n!mopA@J$^ksWxutzY<;rHN97&&zM3oN>&9!Zt~g1*q_&J_?$NUP z^9kSHyB?geENFe2OORWBqn4kLU7CxiXKl?;=b?Irnd~<{j^oDfzAbt_Iuvzim#1}f z#llNp!{&Eh{M2X>>MZ_+^QGL{Z%&q<7Wh{!(`r+^M)$B_#26e7sTU@w^W5l<@|C+!{Uy|d~X-2q-GraX0=ps{9yTO>fD4n{%~g@>)`0f!NhbLeqsIR zCw~0>G>IVB{^Ix35^j9 zp();PF3H|#XRzp4_L_X(UXIG3*v1iWJ*PIKnRdu zXMXi0ck%OEJ!1-M-C{25r(ezU+nS`?%EvigUFVp%PT<>~o55<<%h*=Mi@4Z7BZk9j zdt5k@@;D9EO+-Cf%|g7c9V+uVS@M;GR3ZqW8ipJfsb;dWXu{;1$l}V!2RcfIzHX2B zK6_kch2bv!9N7s6=cw|I{!#h2OrZjy_Io|9W~ zUFOEV&vSRodTp}9RA+St{Z(pV*43i}oHk;#v?>vr)?T{_fykzh%Wm%3cs@t8+27Lj z#U?dzWnS?uOIZue6*)J!H(9lIzTTXv+&XeDM)Trz1EFg9XJZ}w>&Nvio_|#_?e2N( zQ`7D%qU~SW0pI7OOg2k=uoyiNXXcYcUs6%R)g-09jGE^uqJQ6iS1ogFqZPUaiC52dABmByaVZeChnvDGP{Ddb3U zkx5H1e{bL?mHDF%5!2T?y>^r2-@?JS>H5*|ujjivl&US=N=Ii3zTxWe`z~1jV$5|h zJ^nEB@Rf6ouI#Vthse*NqceJ)1XzmpjO+Fd6OHXn ztGLdQ4X2N`a{qN`j>DYXPX5o~I`6Hw>POMZL+g- zG&R_sYE<)v9tm4h!MD)#_T}M|8!VFA_4;<`(&-s~%2l586W$rbY0YWu3QKJ_b$v$* z2%Zt}Im{s-%{+vcBf+z;ks;+-M`vuaY}j5s;xIJUQzK?PJ!ADy?#*L6 zhGZmSNCuH(qQAj0hRM=g)8sjE#N|LP{ zle6SiNRMC5I-x@HOzrF9eA4w-v&0sVF07OLf?1Y~GJTTg7gOvq# z*Dt1)*qe~-7jvZD!;yw#ljR>X=Y`We*Iu^LFWx}}NPRjpceo2oz$<2+I_x6phCm|MS8pH~*LF^C*#0gD@xFBw5 z2E+sLLNg&gh#wMwa9=`@FeCzrLSm3OBmqf6Qjjz>3zC6kq1n(JXf7lN$wLZ|BBTT< zLn@Feqz0)&8jvQW1kon+6%=%`=I^M0q7uf2#SRcLvc_%bOcI(jzY(vL?{VLh8WOsCP3u@}UB#5V{0ihKisoP%%^jl|omcYtVJ* z22=*!gvy~?&~2y!s)VYbJ5V)r7rF=ChaNx=p&IBBR0}Yyi3J@gcM20e#fKn>7e z&`YQhYJ!@fS5OPo3bjG)PzUrHdINPrT~IgF1NB00p?6Rp^d9;E^+N;DAT$JhgodF{ z&p7Ze#|+gYY6V z5k7<;5kLeHAw(DvK|~QTL>!SoBoQe@8kvR2AhO78WDYVHkwfGW1w;{1LX;5|L={m( z)DaCt6VXEEA@h+1$U;OL(Lr<(JwzWdKn#&Z$YR6@F-DdkCWtAr6fr~05evi;S%z34 z)`$&ai`XId$a2I1S%EkrPKYz&g191Xh&!?pS%r8Ys}WCR4dR8YMb;tSh!5h6Or8RM zIPynmNB|Ou1R=pl2oj2fAsdj5$R=bnvIPl8wjvS8He@@p1KEj0B6MUI5{2wW_8`&7 zUL*$DhwMiVAP12{NGx&~i9_O%BS->r6gh?@B1uRx!a$BADaZ-rB$A4pLedZlIgO+v z8Av8_204plA=$_|BnLTZ zQjXk0ZX*>)B~pdlL8_6v$UWpf@&I{=)F6+LTI4ZOhde>*k*CNr&JX+Zu$ULuW1 z6Vi;lLRyekqz!3DI*`}M8>AEILb{P2q!)RMyhHks_s9pN9~nRfks;(GGK_peMv%|Q zDDnmQii{!OknhMiGQkYr{s!X3vI22LoDgTk1#v~(5O-uHvI_A)RwJIs8pI1(i>yPu5g)`CnLGvjaO98B zkN_kQ2||LA5F``{LpC5Akxj^EWD63GY(*lFZOC?H2eK21MCiyaBnsJ$>_MWDy+{nQ z5800#Kn@~@kXYm}5{JYiN00>MC~^!*M3RtXgn=AKQjinKNhB3Hg`^=AavDiTGLTH< z400C9Lb8!_NDguyxqw_ma*;eFA1OczkxR&BqzJi!6eA@_DRLFLhFnK(AZ5r+q#U`0 z+(s&pN~8+8gH$7Tk$cE})l5NH6jhd582N?~xBkKQe#}B16bWWElB`j3A$pQREBq z6&XXmA>Wa4WP*Tiep7Ze#|+gYY6V5k7<;5kLeH zAw(DvK|~QTL>!SoBoQe@8kvR2AhO78WDYVHkwfGW1w;{1LX;5|L={m()DaCt6VXEE zA@h+1$U;OL(Lr<(JwzWdKn#&Z$YR6@F-DdkCWtAr6fr~05evi;S%z34)`$&ai`XId z$a2I1S%EkrPKYz&g191Xh&!?pS%r8Ys}WCR4dR8YMb;tSh!5h6Or8RMIPxdU;oBd{ zt&3L!%GuLt9be2ZyOm5x|BNdIQTbS19i-}Qpp2KZ1lbhOMbZPRo zB`Udr1{X|zbKjB_r3`m3CE_3OsR|ga{Kd7&$@`V2Ci7BWFKMJ5-mIiVoo=I%ENSpn zSSiUDG?JGZhHXD?Uox^7BE%?0BaM`vx@*a(K?_zqgB7YA@Vwk6Z_{Cp=58L*qlfS^^&3`)iYzvLt`UjI| zz!P-)=MEgo6K-Yt)ooAz_qnFQD=kiJYNo>A6`oJg;mu-Wd}$_rbuZS>kDrBK_vf2D zESXgQ_a3P;Q5$-wFgTKhY3(#p><^yCJvmyL&|bbtG`2x&8bX3EO`i ziRSRs?kM{XIBR})F8(+RX5s#RzS?g6ul=cw|8saOj240v{nLH^d_mRbU;ET#r*8Mc zTfi9TA*L}}xk&Lp*(bgOZT)?oHSA1Gfx=8o|9%IUcz)jJZ?4w<{8~=F4JmK%Z3q>a zdi>O-OlkmD^8M)>`KlB5P$~QK9vGo2q`;ret%{q$JY z-(3*?&-1@Jxr5ERKktCz?V*t(e|iX>Fj<`VZ17_b1+XakhmTEz^FW-KF#Y+9|L!{S z&qqJ`nY?gRAT5++VtUTT#N_<1v+T9?OvC)Cb@3sTSCzO1}2^&nB_S|4(_q zByl2fHMI=}y5y79Bqj62pA@6&V0j+7NLAv;@~rnX(wGdA(POkL=_yi&VNrn`N?nAD z!qj6})F$u0GiMlnGFPOuKEPIDp&7Lb1~%l5T{et?12*#1Q(RBRrr1zkC$gA@7#!m^ zGbq`9_>7Xn6E>6^j4Vkbu@#eFQ;@m_%Q|FDI6Of(CLwD203PGuDc>L4dBS~3PRbY8 z5~W2{It(1hduJIxZRTLO=QDVy*@O6nncihiZDJf4&J?E7SOVbT(XdI1EQ~$(<5AaO zS%;VvNe#nb1yNW`Sq{-iD^g0m_s5Kju&hgV+Yc~Sx(}#PLLc$TN>8VZVBk)^Kaxcm z!$^n+A5;q5_QW#hgiv}t36OFWHp~mx= zDFOC;=DE~XSfRjDY~RmJDZBT>iu;o*Vpo1=rkH)cGs{k{m`-)=o?zzZ`uqPBXQHAb zDB}@4{Ee@vWEhweEzDFa4BS{ceVGXcbEb_T6%xu!2u&UzCuMemnGpDC2c1W#gwODD zveX=6B`D)0RziW|8O4Kf16PziWR2XcOB2ws70t{>k4H>E(1~$ZS z2&M4_2O2vlIt(0GLKZC|sLFC{rfBWF+-KF|qX?th-VSttF+tm}Py2o9H2mW4+oYwEd)Qm16Hh?$h) zIDUyeCgp!WWp0~tLWJ5qx!P~bt-n`S!U|pDi3>Fj19z6I_74e4&HW)EOGQrL9xQEZ z3F@XxEg?tMO|Ix+?_I90=21N)tYArlduU5f#N6KnhZaVOf{-+vo9P zxdoPW$lcw4FHe2Cb*2T7+C)qc6$S%0LiH0>0|R%mp4*>#1S3((Q`nyrpvGa$Nv(lB zOA)zusa-HwH2EFwHjKoHGYqN)26L?N$Jr}g3tsGi^W_=D|Mz(V|2-2Wd6Gshv9ohj nwX`);5A=%g*|1T~-+QaQ)in5%Efdpw_;;-r6H_BhV`BOrh6P_I diff --git a/front/dist/familySite1/3rdpartylicenses.txt b/front/dist/familySite1/3rdpartylicenses.txt index 5b4de01..ec31949 100644 --- a/front/dist/familySite1/3rdpartylicenses.txt +++ b/front/dist/familySite1/3rdpartylicenses.txt @@ -13,6 +13,88 @@ MIT @angular/router MIT +bcrypt-ts +MIT +bcrypt-ts + +Copyright (c) 2022 Mister Hope + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: + +1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +3. The name of the author may not be used to endorse or promote products + derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR +IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES +OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, +INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT +NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF +THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +bcrypt.js + +Copyright (c) 2012 Nevins Bartolomeo +Copyright (c) 2012 Shane Girish +Copyright (c) 2014 Daniel Wirtz + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: + +1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +3. The name of the author may not be used to endorse or promote products + derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR +IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES +OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, +INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT +NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF +THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +isaac.js + +Copyright (c) 2012 Yves-Marie K. Rinquin + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + rxjs Apache-2.0 Apache License diff --git a/front/dist/familySite1/index.html b/front/dist/familySite1/index.html index 82e9fb8..0dc82e9 100644 --- a/front/dist/familySite1/index.html +++ b/front/dist/familySite1/index.html @@ -8,7 +8,7 @@ - + \ No newline at end of file diff --git a/front/dist/familySite1/main.16d538b861c9512c.js b/front/dist/familySite1/main.16d538b861c9512c.js deleted file mode 100644 index 45b1dba..0000000 --- a/front/dist/familySite1/main.16d538b861c9512c.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkfamilySite1=self.webpackChunkfamilySite1||[]).push([[179],{534:()=>{function le(e){return"function"==typeof e}function Vo(e){const n=e(r=>{Error.call(r),r.stack=(new Error).stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}const fs=Vo(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map((r,o)=>`${o+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=n});function Ho(e,t){if(e){const n=e.indexOf(t);0<=n&&e.splice(n,1)}}class It{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;const{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(const i of n)i.remove(this);else n.remove(this);const{initialTeardown:r}=this;if(le(r))try{r()}catch(i){t=i instanceof fs?i.errors:[i]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const i of o)try{dh(i)}catch(s){t=t??[],s instanceof fs?t=[...t,...s.errors]:t.push(s)}}if(t)throw new fs(t)}}add(t){var n;if(t&&t!==this)if(this.closed)dh(t);else{if(t instanceof It){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(t)}}_hasParent(t){const{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){const{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){const{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&Ho(n,t)}remove(t){const{_finalizers:n}=this;n&&Ho(n,t),t instanceof It&&t._removeParent(this)}}It.EMPTY=(()=>{const e=new It;return e.closed=!0,e})();const uh=It.EMPTY;function ch(e){return e instanceof It||e&&"closed"in e&&le(e.remove)&&le(e.add)&&le(e.unsubscribe)}function dh(e){le(e)?e():e.unsubscribe()}const or={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},hs={setTimeout(e,t,...n){const{delegate:r}=hs;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){const{delegate:t}=hs;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function fh(e){hs.setTimeout(()=>{const{onUnhandledError:t}=or;if(!t)throw e;t(e)})}function hh(){}const ME=Fl("C",void 0,void 0);function Fl(e,t,n){return{kind:e,value:t,error:n}}let ir=null;function ps(e){if(or.useDeprecatedSynchronousErrorHandling){const t=!ir;if(t&&(ir={errorThrown:!1,error:null}),e(),t){const{errorThrown:n,error:r}=ir;if(ir=null,n)throw r}}else e()}class kl extends It{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,ch(t)&&t.add(this)):this.destination=OE}static create(t,n,r){return new jo(t,n,r)}next(t){this.isStopped?Vl(function IE(e){return Fl("N",e,void 0)}(t),this):this._next(t)}error(t){this.isStopped?Vl(function SE(e){return Fl("E",void 0,e)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Vl(ME,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const AE=Function.prototype.bind;function Ll(e,t){return AE.call(e,t)}class NE{constructor(t){this.partialObserver=t}next(t){const{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){gs(r)}}error(t){const{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){gs(r)}else gs(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){gs(n)}}}class jo extends kl{constructor(t,n,r){let o;if(super(),le(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&or.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&Ll(t.next,i),error:t.error&&Ll(t.error,i),complete:t.complete&&Ll(t.complete,i)}):o=t}this.destination=new NE(o)}}function gs(e){or.useDeprecatedSynchronousErrorHandling?function TE(e){or.useDeprecatedSynchronousErrorHandling&&ir&&(ir.errorThrown=!0,ir.error=e)}(e):fh(e)}function Vl(e,t){const{onStoppedNotification:n}=or;n&&hs.setTimeout(()=>n(e,t))}const OE={closed:!0,next:hh,error:function RE(e){throw e},complete:hh},Hl="function"==typeof Symbol&&Symbol.observable||"@@observable";function sr(e){return e}function ph(e){return 0===e.length?sr:1===e.length?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}let be=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){const r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){const i=function FE(e){return e&&e instanceof kl||function PE(e){return e&&le(e.next)&&le(e.error)&&le(e.complete)}(e)&&ch(e)}(n)?n:new jo(n,r,o);return ps(()=>{const{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return new(r=gh(r))((o,i)=>{const s=new jo({next:a=>{try{n(a)}catch(l){i(l),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(n)}[Hl](){return this}pipe(...n){return ph(n)(this)}toPromise(n){return new(n=gh(n))((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function gh(e){var t;return null!==(t=e??or.Promise)&&void 0!==t?t:Promise}const kE=Vo(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let Cn=(()=>{class e extends be{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){const r=new mh(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new kE}next(n){ps(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(n)}})}error(n){ps(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;const{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){ps(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return(null===(n=this.observers)||void 0===n?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){const{hasError:r,isStopped:o,observers:i}=this;return r||o?uh:(this.currentObservers=null,i.push(n),new It(()=>{this.currentObservers=null,Ho(i,n)}))}_checkFinalizedStatuses(n){const{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){const n=new be;return n.source=this,n}}return e.create=(t,n)=>new mh(t,n),e})();class mh extends Cn{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.next)||void 0===r||r.call(n,t)}error(t){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.error)||void 0===r||r.call(n,t)}complete(){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===n||n.call(t)}_subscribe(t){var n,r;return null!==(r=null===(n=this.source)||void 0===n?void 0:n.subscribe(t))&&void 0!==r?r:uh}}function yh(e){return le(e?.lift)}function $e(e){return t=>{if(yh(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function He(e,t,n,r,o){return new LE(e,t,n,r,o)}class LE extends kl{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(l){t.error(l)}}:super._next,this._error=o?function(a){try{o(a)}catch(l){t.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:n}=this;super.unsubscribe(),!n&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}}}function te(e,t){return $e((n,r)=>{let o=0;n.subscribe(He(r,i=>{r.next(e.call(t,i,o++))}))})}function ar(e){return this instanceof ar?(this.v=e,this):new ar(e)}function $E(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,t=e[Symbol.asyncIterator];return t?t.call(e):(e=function Dh(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,l){!function o(i,s,a,l){Promise.resolve(l).then(function(u){i({value:u,done:a})},s)}(a,l,(s=e[i](s)).done,s.value)})}}}const _h=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function wh(e){return le(e?.then)}function Eh(e){return le(e[Hl])}function bh(e){return Symbol.asyncIterator&&le(e?.[Symbol.asyncIterator])}function Mh(e){return new TypeError(`You provided ${null!==e&&"object"==typeof e?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const Sh=function UE(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Ih(e){return le(e?.[Sh])}function Th(e){return function jE(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,r=n.apply(e,t||[]),i=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(f){r[f]&&(o[f]=function(h){return new Promise(function(p,m){i.push([f,h,p,m])>1||a(f,h)})})}function a(f,h){try{!function l(f){f.value instanceof ar?Promise.resolve(f.value.v).then(u,c):d(i[0][2],f)}(r[f](h))}catch(p){d(i[0][3],p)}}function u(f){a("next",f)}function c(f){a("throw",f)}function d(f,h){f(h),i.shift(),i.length&&a(i[0][0],i[0][1])}}(this,arguments,function*(){const n=e.getReader();try{for(;;){const{value:r,done:o}=yield ar(n.read());if(o)return yield ar(void 0);yield yield ar(r)}}finally{n.releaseLock()}})}function Ah(e){return le(e?.getReader)}function Tt(e){if(e instanceof be)return e;if(null!=e){if(Eh(e))return function zE(e){return new be(t=>{const n=e[Hl]();if(le(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(_h(e))return function GE(e){return new be(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,fh)})}(e);if(bh(e))return Nh(e);if(Ih(e))return function qE(e){return new be(t=>{for(const n of e)if(t.next(n),t.closed)return;t.complete()})}(e);if(Ah(e))return function ZE(e){return Nh(Th(e))}(e)}throw Mh(e)}function Nh(e){return new be(t=>{(function YE(e,t){var n,r,o,i;return function VE(e,t,n,r){return new(n||(n=Promise))(function(i,s){function a(c){try{u(r.next(c))}catch(d){s(d)}}function l(c){try{u(r.throw(c))}catch(d){s(d)}}function u(c){c.done?i(c.value):function o(i){return i instanceof n?i:new n(function(s){s(i)})}(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})}(this,void 0,void 0,function*(){try{for(n=$E(e);!(r=yield n.next()).done;)if(t.next(r.value),t.closed)return}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})})(e,t).catch(n=>t.error(n))})}function Dn(e,t,n,r=0,o=!1){const i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function Be(e,t,n=1/0){return le(t)?Be((r,o)=>te((i,s)=>t(r,i,o,s))(Tt(e(r,o))),n):("number"==typeof t&&(n=t),$e((r,o)=>function QE(e,t,n,r,o,i,s,a){const l=[];let u=0,c=0,d=!1;const f=()=>{d&&!l.length&&!u&&t.complete()},h=m=>u{i&&t.next(m),u++;let v=!1;Tt(n(m,c++)).subscribe(He(t,E=>{o?.(E),i?h(E):t.next(E)},()=>{v=!0},void 0,()=>{if(v)try{for(u--;l.length&&up(E)):p(E)}f()}catch(E){t.error(E)}}))};return e.subscribe(He(t,h,()=>{d=!0,f()})),()=>{a?.()}}(r,o,e,n)))}function Rr(e=1/0){return Be(sr,e)}const Qt=new be(e=>e.complete());function $l(e){return e[e.length-1]}function Rh(e){return le($l(e))?e.pop():void 0}function $o(e){return function KE(e){return e&&le(e.schedule)}($l(e))?e.pop():void 0}function Oh(e,t=0){return $e((n,r)=>{n.subscribe(He(r,o=>Dn(r,e,()=>r.next(o),t),()=>Dn(r,e,()=>r.complete(),t),o=>Dn(r,e,()=>r.error(o),t)))})}function xh(e,t=0){return $e((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function Ph(e,t){if(!e)throw new Error("Iterable cannot be null");return new be(n=>{Dn(n,t,()=>{const r=e[Symbol.asyncIterator]();Dn(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function xe(e,t){return t?function ib(e,t){if(null!=e){if(Eh(e))return function eb(e,t){return Tt(e).pipe(xh(t),Oh(t))}(e,t);if(_h(e))return function nb(e,t){return new be(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}(e,t);if(wh(e))return function tb(e,t){return Tt(e).pipe(xh(t),Oh(t))}(e,t);if(bh(e))return Ph(e,t);if(Ih(e))return function rb(e,t){return new be(n=>{let r;return Dn(n,t,()=>{r=e[Sh](),Dn(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){return void n.error(s)}i?n.complete():n.next(o)},0,!0)}),()=>le(r?.return)&&r.return()})}(e,t);if(Ah(e))return function ob(e,t){return Ph(Th(e),t)}(e,t)}throw Mh(e)}(e,t):Tt(e)}function Bl(e,t,...n){if(!0===t)return void e();if(!1===t)return;const r=new jo({next:()=>{r.unsubscribe(),e()}});return Tt(t(...n)).subscribe(r)}function ie(e){for(let t in e)if(e[t]===ie)return t;throw Error("Could not find renamed property on target object.")}function Ul(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function Pe(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Pe).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function zl(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const lb=ie({__forward_ref__:ie});function ue(e){return e.__forward_ref__=ue,e.toString=function(){return Pe(this())},e}function $(e){return Gl(e)?e():e}function Gl(e){return"function"==typeof e&&e.hasOwnProperty(lb)&&e.__forward_ref__===ue}function Wl(e){return e&&!!e.\u0275providers}const Fh="https://g.co/ng/security#xss";class w extends Error{constructor(t,n){super(function ql(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(t,n)),this.code=t}}function B(e){return"string"==typeof e?e:null==e?"":String(e)}function ms(e,t){throw new w(-201,!1)}function At(e,t){null==e&&function oe(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}(t,e,null,"!=")}function O(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Nt(e){return{providers:e.providers||[],imports:e.imports||[]}}function ys(e){return kh(e,vs)||kh(e,Vh)}function kh(e,t){return e.hasOwnProperty(t)?e[t]:null}function Lh(e){return e&&(e.hasOwnProperty(Zl)||e.hasOwnProperty(mb))?e[Zl]:null}const vs=ie({\u0275prov:ie}),Zl=ie({\u0275inj:ie}),Vh=ie({ngInjectableDef:ie}),mb=ie({ngInjectorDef:ie});var L=(()=>((L=L||{})[L.Default=0]="Default",L[L.Host=1]="Host",L[L.Self=2]="Self",L[L.SkipSelf=4]="SkipSelf",L[L.Optional=8]="Optional",L))();let Yl;function it(e){const t=Yl;return Yl=e,t}function jh(e,t,n){const r=ys(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&L.Optional?null:void 0!==t?t:void ms(Pe(e))}const ce=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),Bo={},Ql="__NG_DI_FLAG__",Cs="ngTempTokenPath",vb=/\n/gm,$h="__source";let Or;function $n(e){const t=Or;return Or=e,t}function _b(e,t=L.Default){if(void 0===Or)throw new w(-203,!1);return null===Or?jh(e,void 0,t):Or.get(e,t&L.Optional?null:void 0,t)}function A(e,t=L.Default){return(function Hh(){return Yl}()||_b)($(e),t)}function S(e,t=L.Default){return A(e,Ds(t))}function Ds(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Xl(e){const t=[];for(let n=0;n((Xt=Xt||{})[Xt.OnPush=0]="OnPush",Xt[Xt.Default=1]="Default",Xt))(),Ct=(()=>{return(e=Ct||(Ct={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",Ct;var e})();const wn={},ee=[],_s=ie({\u0275cmp:ie}),Kl=ie({\u0275dir:ie}),Jl=ie({\u0275pipe:ie}),Uh=ie({\u0275mod:ie}),En=ie({\u0275fac:ie}),zo=ie({__NG_ELEMENT_ID__:ie}),zh=ie({__NG_ENV_ID__:ie});function Gh(e,t,n){let r=e.length;for(;;){const o=e.indexOf(t,n);if(-1===o)return o;if(0===o||e.charCodeAt(o-1)<=32){const i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1}}function eu(e,t,n){let r=0;for(;rt){s=i-1;break}}}for(;ii?"":o[d+1].toLowerCase();const h=8&r?f:null;if(h&&-1!==Gh(h,u,0)||2&r&&u!==f){if(kt(r))return!1;s=!0}}}}else{if(!s&&!kt(r)&&!kt(l))return!1;if(s&&kt(l))continue;s=!1,r=l|1&r}}return kt(r)||s}function kt(e){return 0==(1&e)}function Tb(e,t,n,r){if(null===t)return-1;let o=0;if(r||!n){let i=!1;for(;o-1)for(n++;n0?'="'+a+'"':"")+"]"}else 8&r?o+="."+s:4&r&&(o+=" "+s);else""!==o&&!kt(s)&&(t+=Kh(i,o),o=""),r=s,i=i||!kt(r);n++}return""!==o&&(t+=Kh(i,o)),t}function Lt(e){return _n(()=>{const t=ep(e),n={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Xt.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,data:e.data||{},encapsulation:e.encapsulation||Ct.Emulated,styles:e.styles||ee,_:null,schemas:e.schemas||null,tView:null,id:""};tp(n);const r=e.dependencies;return n.directiveDefs=ws(r,!1),n.pipeDefs=ws(r,!0),n.id=function $b(e){let t=0;const n=JSON.stringify([e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.exportAs,e.inputs,e.outputs,Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery]);for(const o of n)t=Math.imul(31,t)+o.charCodeAt(0)<<0;return t+=2147483648,"c"+t}(n),n})}function Lb(e){return ne(e)||qe(e)}function Vb(e){return null!==e}function Vt(e){return _n(()=>({type:e.type,bootstrap:e.bootstrap||ee,declarations:e.declarations||ee,imports:e.imports||ee,exports:e.exports||ee,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Jh(e,t){if(null==e)return wn;const n={};for(const r in e)if(e.hasOwnProperty(r)){let o=e[r],i=o;Array.isArray(o)&&(i=o[1],o=o[0]),n[o]=r,t&&(t[o]=i)}return n}function j(e){return _n(()=>{const t=ep(e);return tp(t),t})}function st(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function ne(e){return e[_s]||null}function qe(e){return e[Kl]||null}function at(e){return e[Jl]||null}function Dt(e,t){const n=e[Uh]||null;if(!n&&!0===t)throw new Error(`Type ${Pe(e)} does not have '\u0275mod' property.`);return n}function ep(e){const t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,exportAs:e.exportAs||null,standalone:!0===e.standalone,selectors:e.selectors||ee,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Jh(e.inputs,t),outputs:Jh(e.outputs)}}function tp(e){e.features?.forEach(t=>t(e))}function ws(e,t){if(!e)return null;const n=t?at:Lb;return()=>("function"==typeof e?e():e).map(r=>n(r)).filter(Vb)}const Fe=0,I=1,G=2,ve=3,Ht=4,lr=5,Ze=6,Pr=7,_e=8,Fr=9,ur=10,U=11,Wo=12,np=13,kr=14,Te=15,qo=16,Lr=17,Kt=18,Zo=19,rp=20,Bn=21,bn=22,Es=23,bs=24,X=25,tu=1,op=2,Jt=7,Ms=8,Vr=9,Ue=11;function _t(e){return Array.isArray(e)&&"object"==typeof e[tu]}function lt(e){return Array.isArray(e)&&!0===e[tu]}function nu(e){return 0!=(4&e.flags)}function cr(e){return e.componentOffset>-1}function Ss(e){return 1==(1&e.flags)}function jt(e){return!!e.template}function ru(e){return 0!=(512&e[G])}function dr(e,t){return e.hasOwnProperty(En)?e[En]:null}let Wb=ce.WeakRef??class Gb{constructor(t){this.ref=t}deref(){return this.ref}},Zb=0,en=null,Is=!1;function je(e){const t=en;return en=e,t}class up{constructor(){this.id=Zb++,this.ref=function qb(e){return new Wb(e)}(this),this.producers=new Map,this.consumers=new Map,this.trackingVersion=0,this.valueVersion=0}consumerPollProducersForChange(){for(const[t,n]of this.producers){const r=n.producerNode.deref();if(void 0!==r&&n.atTrackingVersion===this.trackingVersion){if(r.producerPollStatus(n.seenValueVersion))return!0}else this.producers.delete(t),r?.consumers.delete(this.id)}return!1}producerMayHaveChanged(){const t=Is;Is=!0;try{for(const[n,r]of this.consumers){const o=r.consumerNode.deref();void 0!==o&&o.trackingVersion===r.atTrackingVersion?o.onConsumerDependencyMayHaveChanged():(this.consumers.delete(n),o?.producers.delete(this.id))}}finally{Is=t}}producerAccessed(){if(Is)throw new Error("");if(null===en)return;let t=en.producers.get(this.id);void 0===t?(t={consumerNode:en.ref,producerNode:this.ref,seenValueVersion:this.valueVersion,atTrackingVersion:en.trackingVersion},en.producers.set(this.id,t),this.consumers.set(en.id,t)):(t.seenValueVersion=this.valueVersion,t.atTrackingVersion=en.trackingVersion)}get hasProducers(){return this.producers.size>0}get producerUpdatesAllowed(){return!1!==en?.consumerAllowSignalWrites}producerPollStatus(t){return this.valueVersion!==t||(this.onProducerUpdateValueVersion(),this.valueVersion!==t)}}let cp=null;const dp=()=>{};class Kb extends up{constructor(t,n,r){super(),this.watch=t,this.schedule=n,this.dirty=!1,this.cleanupFn=dp,this.registerOnCleanup=o=>{this.cleanupFn=o},this.consumerAllowSignalWrites=r}notify(){this.dirty||this.schedule(this),this.dirty=!0}onConsumerDependencyMayHaveChanged(){this.notify()}onProducerUpdateValueVersion(){}run(){if(this.dirty=!1,0!==this.trackingVersion&&!this.consumerPollProducersForChange())return;const t=je(this);this.trackingVersion++;try{this.cleanupFn(),this.cleanupFn=dp,this.watch(this.registerOnCleanup)}finally{je(t)}}cleanup(){this.cleanupFn()}}class Jb{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function Rt(){return fp}function fp(e){return e.type.prototype.ngOnChanges&&(e.setInput=tM),eM}function eM(){const e=pp(this),t=e?.current;if(t){const n=e.previous;if(n===wn)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function tM(e,t,n,r){const o=this.declaredInputs[n],i=pp(e)||function nM(e,t){return e[hp]=t}(e,{previous:wn,current:null}),s=i.current||(i.current={}),a=i.previous,l=a[o];s[o]=new Jb(l&&l.currentValue,t,a===wn),e[r]=t}Rt.ngInherit=!0;const hp="__ngSimpleChanges__";function pp(e){return e[hp]||null}const tn=function(e,t,n){};function pe(e){for(;Array.isArray(e);)e=e[Fe];return e}function Ns(e,t){return pe(t[e])}function ut(e,t){return pe(t[e.index])}function yp(e,t){return e.data[t]}function ct(e,t){const n=t[e];return _t(n)?n:n[Fe]}function Rs(e){return 128==(128&e[G])}function Un(e,t){return null==t?null:e[t]}function vp(e){e[Lr]=0}function lM(e){1024&e[G]||(e[G]|=1024,Dp(e,1))}function Cp(e){1024&e[G]&&(e[G]&=-1025,Dp(e,-1))}function Dp(e,t){let n=e[ve];if(null===n)return;n[lr]+=t;let r=n;for(n=n[ve];null!==n&&(1===t&&1===r[lr]||-1===t&&0===r[lr]);)n[lr]+=t,r=n,n=n[ve]}const H={lFrame:Rp(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function Ep(){return H.bindingsEnabled}function _(){return H.lFrame.lView}function K(){return H.lFrame.tView}function Os(e){return H.lFrame.contextLView=e,e[_e]}function xs(e){return H.lFrame.contextLView=null,e}function ze(){let e=bp();for(;null!==e&&64===e.type;)e=e.parent;return e}function bp(){return H.lFrame.currentTNode}function nn(e,t){const n=H.lFrame;n.currentTNode=e,n.isParent=t}function uu(){return H.lFrame.isParent}function Je(){const e=H.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function $r(){return H.lFrame.bindingIndex++}function Sn(e){const t=H.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function DM(e,t){const n=H.lFrame;n.bindingIndex=n.bindingRootIndex=e,du(t)}function du(e){H.lFrame.currentDirectiveIndex=e}function Tp(){return H.lFrame.currentQueryIndex}function hu(e){H.lFrame.currentQueryIndex=e}function wM(e){const t=e[I];return 2===t.type?t.declTNode:1===t.type?e[Ze]:null}function Ap(e,t,n){if(n&L.SkipSelf){let o=t,i=e;for(;!(o=o.parent,null!==o||n&L.Host||(o=wM(i),null===o||(i=i[kr],10&o.type))););if(null===o)return!1;t=o,e=i}const r=H.lFrame=Np();return r.currentTNode=t,r.lView=e,!0}function pu(e){const t=Np(),n=e[I];H.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Np(){const e=H.lFrame,t=null===e?null:e.child;return null===t?Rp(e):t}function Rp(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function Op(){const e=H.lFrame;return H.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const xp=Op;function gu(){const e=Op();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function et(){return H.lFrame.selectedIndex}function fr(e){H.lFrame.selectedIndex=e}function Ce(){const e=H.lFrame;return yp(e.tView,e.selectedIndex)}let Fp=!0;function Ps(){return Fp}function zn(e){Fp=e}function Fs(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[l]<0&&(e[Lr]+=65536),(a>12>16&&(3&e[G])===t&&(e[G]+=4096,Lp(a,i)):Lp(a,i)}const Br=-1;class Xo{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function Vp(e){return e!==Br}function Vs(e){return 32767&e}function Hs(e,t){let n=function PM(e){return e>>16}(e),r=t;for(;n>0;)r=r[kr],n--;return r}let vu=!0;function js(e){const t=vu;return vu=e,t}const Hp=255,jp=5;let FM=0;const rn={};function $s(e,t){const n=$p(e,t);if(-1!==n)return n;const r=t[I];r.firstCreatePass&&(e.injectorIndex=t.length,Cu(r.data,e),Cu(t,null),Cu(r.blueprint,null));const o=Du(e,t),i=e.injectorIndex;if(Vp(o)){const s=Vs(o),a=Hs(o,t),l=a[I].data;for(let u=0;u<8;u++)t[i+u]=a[s+u]|l[s+u]}return t[i+8]=o,i}function Cu(e,t){e.push(0,0,0,0,0,0,0,0,t)}function $p(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Du(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;null!==o;){if(r=Zp(o),null===r)return Br;if(n++,o=o[kr],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return Br}function _u(e,t,n){!function kM(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(zo)&&(r=n[zo]),null==r&&(r=n[zo]=FM++);const o=r&Hp;t.data[e+(o>>jp)]|=1<=0?t&Hp:jM:t}(n);if("function"==typeof i){if(!Ap(t,e,r))return r&L.Host?Bp(o,0,r):Up(t,n,r,o);try{const s=i(r);if(null!=s||r&L.Optional)return s;ms()}finally{xp()}}else if("number"==typeof i){let s=null,a=$p(e,t),l=Br,u=r&L.Host?t[Te][Ze]:null;for((-1===a||r&L.SkipSelf)&&(l=-1===a?Du(e,t):t[a+8],l!==Br&&qp(r,!1)?(s=t[I],a=Vs(l),t=Hs(l,t)):a=-1);-1!==a;){const c=t[I];if(Wp(i,a,c.data)){const d=VM(a,t,n,s,r,u);if(d!==rn)return d}l=t[a+8],l!==Br&&qp(r,t[I].data[a+8]===u)&&Wp(i,a,t)?(s=c,a=Vs(l),t=Hs(l,t)):a=-1}}return o}function VM(e,t,n,r,o,i){const s=t[I],a=s.data[e+8],c=Bs(a,s,n,null==r?cr(a)&&vu:r!=s&&0!=(3&a.type),o&L.Host&&i===a);return null!==c?hr(t,s,c,a):rn}function Bs(e,t,n,r,o){const i=e.providerIndexes,s=t.data,a=1048575&i,l=e.directiveStart,c=i>>20,f=o?a+c:e.directiveEnd;for(let h=r?a:a+c;h=l&&p.type===n)return h}if(o){const h=s[l];if(h&&jt(h)&&h.type===n)return l}return null}function hr(e,t,n,r){let o=e[n];const i=t.data;if(function RM(e){return e instanceof Xo}(o)){const s=o;s.resolving&&function ub(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new w(-200,`Circular dependency in DI detected for ${e}${n}`)}(function re(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():B(e)}(i[n]));const a=js(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?it(s.injectImpl):null;Ap(e,r,L.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&function AM(e,t,n){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){const s=fp(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}(n,i[n],t)}finally{null!==l&&it(l),js(a),s.resolving=!1,xp()}}return o}function Wp(e,t,n){return!!(n[t+(e>>jp)]&1<{const t=e.prototype.constructor,n=t[En]||wu(t),r=Object.prototype;let o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){const i=o[En]||wu(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function wu(e){return Gl(e)?()=>{const t=wu($(e));return t&&t()}:dr(e)}function Zp(e){const t=e[I],n=t.type;return 2===n?t.declTNode:1===n?e[Ze]:null}const Gr="__parameters__";function qr(e,t,n){return _n(()=>{const r=function Eu(e){return function(...n){if(e){const r=e(...n);for(const o in r)this[o]=r[o]}}}(t);function o(...i){if(this instanceof o)return r.apply(this,i),this;const s=new o(...i);return a.annotation=s,a;function a(l,u,c){const d=l.hasOwnProperty(Gr)?l[Gr]:Object.defineProperty(l,Gr,{value:[]})[Gr];for(;d.length<=c;)d.push(null);return(d[c]=d[c]||[]).push(s),l}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}function ei(e,t){e.forEach(n=>Array.isArray(n)?ei(n,t):t(n))}function Qp(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function zs(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function wt(e,t,n){let r=Zr(e,t);return r>=0?e[1|r]=n:(r=~r,function WM(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(1===o)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;)e[o]=e[o-2],o--;e[t]=n,e[t+1]=r}}(e,r,t,n)),r}function bu(e,t){const n=Zr(e,t);if(n>=0)return e[1|n]}function Zr(e,t){return function Xp(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){const i=r+(o-r>>1),s=e[i<t?o=i:r=i+1}return~(o<((dt=dt||{})[dt.Important=1]="Important",dt[dt.DashCase=2]="DashCase",dt))();const Ru=new Map;let mS=0;const xu="__ngContext__";function Ye(e,t){_t(t)?(e[xu]=t[Zo],function vS(e){Ru.set(e[Zo],e)}(t)):e[xu]=t}let Pu;function Fu(e,t){return Pu(e,t)}function oi(e){const t=e[ve];return lt(t)?t[ve]:t}function ku(e){return mg(e[Wo])}function Lu(e){return mg(e[Ht])}function mg(e){for(;null!==e&&!lt(e);)e=e[Ht];return e}function Xr(e,t,n,r,o){if(null!=r){let i,s=!1;lt(r)?i=r:_t(r)&&(s=!0,r=r[Fe]);const a=pe(r);0===e&&null!==n?null==o?_g(t,n,a):pr(t,n,a,o||null,!0):1===e&&null!==n?pr(t,n,a,o||null,!0):2===e?function na(e,t,n){const r=ea(e,t);r&&function LS(e,t,n,r){e.removeChild(t,n,r)}(e,r,t,n)}(t,a,s):3===e&&t.destroyNode(a),null!=i&&function jS(e,t,n,r,o){const i=n[Jt];i!==pe(n)&&Xr(t,e,r,i,o);for(let a=Ue;a0&&(e[n-1][Ht]=r[Ht]);const i=zs(e,Ue+t);!function AS(e,t){si(e,t,t[U],2,null,null),t[Fe]=null,t[Ze]=null}(r[I],r);const s=i[Kt];null!==s&&s.detachView(i[I]),r[ve]=null,r[Ht]=null,r[G]&=-129}return r}function Cg(e,t){if(!(256&t[G])){const n=t[U];t[Es]?.destroy(),t[bs]?.destroy(),n.destroyNode&&si(e,t,n,3,null,null),function OS(e){let t=e[Wo];if(!t)return ju(e[I],e);for(;t;){let n=null;if(_t(t))n=t[Wo];else{const r=t[Ue];r&&(n=r)}if(!n){for(;t&&!t[Ht]&&t!==e;)_t(t)&&ju(t[I],t),t=t[ve];null===t&&(t=e),_t(t)&&ju(t[I],t),n=t&&t[Ht]}t=n}}(t)}}function ju(e,t){if(!(256&t[G])){t[G]&=-129,t[G]|=256,function kS(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r=0?r[s]():r[-s].unsubscribe(),i+=2}else n[i].call(r[n[i+1]]);null!==r&&(t[Pr]=null);const o=t[Bn];if(null!==o){for(let i=0;i-1){const{encapsulation:i}=e.data[r.directiveStart+o];if(i===Ct.None||i===Ct.Emulated)return null}return ut(r,n)}}(e,t.parent,n)}function pr(e,t,n,r,o){e.insertBefore(t,n,r,o)}function _g(e,t,n){e.appendChild(t,n)}function wg(e,t,n,r,o){null!==r?pr(e,t,n,r,o):_g(e,t,n)}function ea(e,t){return e.parentNode(t)}let Bu,Wu,oa,Mg=function bg(e,t,n){return 40&e.type?ut(e,n):null};function ta(e,t,n,r){const o=$u(e,r,t),i=t[U],a=function Eg(e,t,n){return Mg(e,t,n)}(r.parent||t[Ze],r,t);if(null!=o)if(Array.isArray(n))for(let l=0;le,createScript:e=>e,createScriptURL:e=>e})}catch{}return oa}()?.createScriptURL(e)||e}class Fg{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Fh})`}}function Gn(e){return e instanceof Fg?e.changingThisBreaksApplicationSecurity:e}function li(e,t){const n=function KS(e){return e instanceof Fg&&e.getTypeName()||null}(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${Fh})`)}return n===t}const nI=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;var Ae=(()=>((Ae=Ae||{})[Ae.NONE=0]="NONE",Ae[Ae.HTML=1]="HTML",Ae[Ae.STYLE=2]="STYLE",Ae[Ae.SCRIPT=3]="SCRIPT",Ae[Ae.URL=4]="URL",Ae[Ae.RESOURCE_URL=5]="RESOURCE_URL",Ae))();function Ku(e){const t=ci();return t?t.sanitize(Ae.URL,e)||"":li(e,"URL")?Gn(e):function Zu(e){return(e=String(e)).match(nI)?e:"unsafe:"+e}(B(e))}function Bg(e){const t=ci();if(t)return Pg(t.sanitize(Ae.RESOURCE_URL,e)||"");if(li(e,"ResourceURL"))return Pg(Gn(e));throw new w(904,!1)}function ci(){const e=_();return e&&e[ur].sanitizer}class N{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=O({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const di=new N("ENVIRONMENT_INITIALIZER"),zg=new N("INJECTOR",-1),Gg=new N("INJECTOR_DEF_TYPES");class Wg{get(t,n=Bo){if(n===Bo){const r=new Error(`NullInjectorError: No provider for ${Pe(t)}!`);throw r.name="NullInjectorError",r}return n}}function gI(...e){return{\u0275providers:qg(0,e),\u0275fromNgModule:!0}}function qg(e,...t){const n=[],r=new Set;let o;return ei(t,i=>{const s=i;ec(s,n,[],r)&&(o||=[],o.push(s))}),void 0!==o&&Zg(o,n),n}function Zg(e,t){for(let n=0;n{t.push(i)})}}function ec(e,t,n,r){if(!(e=$(e)))return!1;let o=null,i=Lh(e);const s=!i&&ne(e);if(i||s){if(s&&!s.standalone)return!1;o=e}else{const l=e.ngModule;if(i=Lh(l),!i)return!1;o=l}const a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){const l="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const u of l)ec(u,t,n,r)}}else{if(!i)return!1;{if(null!=i.imports&&!a){let u;r.add(o);try{ei(i.imports,c=>{ec(c,t,n,r)&&(u||=[],u.push(c))})}finally{}void 0!==u&&Zg(u,t)}if(!a){const u=dr(o)||(()=>new o);t.push({provide:o,useFactory:u,deps:ee},{provide:Gg,useValue:o,multi:!0},{provide:di,useValue:()=>A(o),multi:!0})}const l=i.providers;null==l||a||tc(l,c=>{t.push(c)})}}return o!==e&&void 0!==e.providers}function tc(e,t){for(let n of e)Wl(n)&&(n=n.\u0275providers),Array.isArray(n)?tc(n,t):t(n)}const mI=ie({provide:String,useValue:ie});function nc(e){return null!==e&&"object"==typeof e&&mI in e}function gr(e){return"function"==typeof e}const rc=new N("Set Injector scope."),sa={},vI={};let oc;function aa(){return void 0===oc&&(oc=new Wg),oc}class on{}class ic extends on{get destroyed(){return this._destroyed}constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,ac(t,s=>this.processProvider(s)),this.records.set(zg,Jr(void 0,this)),o.has("environment")&&this.records.set(on,Jr(void 0,this));const i=this.records.get(rc);null!=i&&"string"==typeof i.value&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Gg.multi,ee,L.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const t of this._ngOnDestroyHooks)t.ngOnDestroy();for(const t of this._onDestroyHooks)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();const n=$n(this),r=it(void 0);try{return t()}finally{$n(n),it(r)}}get(t,n=Bo,r=L.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(zh))return t[zh](this);r=Ds(r);const o=$n(this),i=it(void 0);try{if(!(r&L.SkipSelf)){let a=this.records.get(t);if(void 0===a){const l=function EI(e){return"function"==typeof e||"object"==typeof e&&e instanceof N}(t)&&ys(t);a=l&&this.injectableDefInScope(l)?Jr(sc(t),sa):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(r&L.Self?aa():this.parent).get(t,n=r&L.Optional&&n===Bo?null:n)}catch(s){if("NullInjectorError"===s.name){if((s[Cs]=s[Cs]||[]).unshift(Pe(t)),o)throw s;return function Eb(e,t,n,r){const o=e[Cs];throw t[$h]&&o.unshift(t[$h]),e.message=function bb(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let o=Pe(t);if(Array.isArray(t))o=t.map(Pe).join(" -> ");else if("object"==typeof t){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+("string"==typeof a?JSON.stringify(a):Pe(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(vb,"\n ")}`}("\n"+e.message,o,n,r),e.ngTokenPath=o,e[Cs]=null,e}(s,t,"R3InjectorError",this.source)}throw s}finally{it(i),$n(o)}}resolveInjectorInitializers(){const t=$n(this),n=it(void 0);try{const r=this.get(di.multi,ee,L.Self);for(const o of r)o()}finally{$n(t),it(n)}}toString(){const t=[],n=this.records;for(const r of n.keys())t.push(Pe(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new w(205,!1)}processProvider(t){let n=gr(t=$(t))?t:$(t&&t.provide);const r=function DI(e){return nc(e)?Jr(void 0,e.useValue):Jr(Xg(e),sa)}(t);if(gr(t)||!0!==t.multi)this.records.get(n);else{let o=this.records.get(n);o||(o=Jr(void 0,sa,!0),o.factory=()=>Xl(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){return n.value===sa&&(n.value=vI,n.value=n.factory()),"object"==typeof n.value&&n.value&&function wI(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}injectableDefInScope(t){if(!t.providedIn)return!1;const n=$(t.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){const n=this._onDestroyHooks.indexOf(t);-1!==n&&this._onDestroyHooks.splice(n,1)}}function sc(e){const t=ys(e),n=null!==t?t.factory:dr(e);if(null!==n)return n;if(e instanceof N)throw new w(204,!1);if(e instanceof Function)return function CI(e){const t=e.length;if(t>0)throw function ti(e,t){const n=[];for(let r=0;rn.factory(e):()=>new e}(e);throw new w(204,!1)}function Xg(e,t,n){let r;if(gr(e)){const o=$(e);return dr(o)||sc(o)}if(nc(e))r=()=>$(e.useValue);else if(function Qg(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...Xl(e.deps||[]));else if(function Yg(e){return!(!e||!e.useExisting)}(e))r=()=>A($(e.useExisting));else{const o=$(e&&(e.useClass||e.provide));if(!function _I(e){return!!e.deps}(e))return dr(o)||sc(o);r=()=>new o(...Xl(e.deps))}return r}function Jr(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function ac(e,t){for(const n of e)Array.isArray(n)?ac(n,t):n&&Wl(n)?ac(n.\u0275providers,t):t(n)}const la=new N("AppId",{providedIn:"root",factory:()=>bI}),bI="ng",Kg=new N("Platform Initializer"),mr=new N("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Jg=new N("CSP nonce",{providedIn:"root",factory:()=>function ai(){if(void 0!==Wu)return Wu;if(typeof document<"u")return document;throw new w(210,!1)}().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let tm=(e,t)=>null;function nm(e,t){return tm(e,t)}class PI{}class im{}class kI{resolveComponentFactory(t){throw function FI(e){const t=Error(`No component factory found for ${Pe(e)}.`);return t.ngComponent=e,t}(t)}}let ha=(()=>{class e{}return e.NULL=new kI,e})();function LI(){return eo(ze(),_())}function eo(e,t){return new Et(ut(e,t))}let Et=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=LI,e})();function VI(e){return e instanceof Et?e.nativeElement:e}class am{}let Tn=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function HI(){const e=_(),n=ct(ze().index,e);return(_t(n)?n:e)[U]}(),e})(),jI=(()=>{class e{}return e.\u0275prov=O({token:e,providedIn:"root",factory:()=>null}),e})();class gi{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const $I=new gi("16.0.1"),vc={};function mi(e){for(;e;){e[G]|=64;const t=oi(e);if(ru(e)&&!t)return e;e=t}return null}function Cc(e){return e.ngOriginalError}class yr{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&Cc(t);for(;n&&Cc(n);)n=Cc(n);return n||null}}const cm=new N("",{providedIn:"root",factory:()=>!1});function An(e){return e instanceof Function?e():e}class hm extends up{constructor(){super(...arguments),this.consumerAllowSignalWrites=!1,this._lView=null}set lView(t){this._lView=t}onConsumerDependencyMayHaveChanged(){mi(this._lView)}onProducerUpdateValueVersion(){}get hasReadASignal(){return this.hasProducers}runInContext(t,n,r){const o=je(this);this.trackingVersion++;try{t(n,r)}finally{je(o)}}destroy(){this.trackingVersion++}}let ga=null;function pm(){return ga??=new hm,ga}function gm(e,t){return e[t]??pm()}function mm(e,t){const n=pm();n.hasReadASignal&&(e[t]=ga,n.lView=e,ga=new hm)}const z={};function R(e){ym(K(),_(),et()+e,!1)}function ym(e,t,n,r){if(!r)if(3==(3&t[G])){const i=e.preOrderCheckHooks;null!==i&&ks(t,i,n)}else{const i=e.preOrderHooks;null!==i&&Ls(t,i,0,n)}fr(n)}function _m(e,t=null,n=null,r){const o=wm(e,t,n,r);return o.resolveInjectorInitializers(),o}function wm(e,t=null,n=null,r,o=new Set){const i=[n||ee,gI(e)];return r=r||("object"==typeof e?void 0:Pe(e)),new ic(i,t||aa(),r||null,o)}let sn=(()=>{class e{static create(n,r){if(Array.isArray(n))return _m({name:""},r,n,"");{const o=n.name??"";return _m({name:o},n.parent,n.providers,o)}}}return e.THROW_IF_NOT_FOUND=Bo,e.NULL=new Wg,e.\u0275prov=O({token:e,providedIn:"any",factory:()=>A(zg)}),e.__NG_ELEMENT_ID__=-1,e})();function D(e,t=L.Default){const n=_();return null===n?A(e,t):zp(ze(),n,$(e),t)}function ma(e,t,n,r,o,i,s,a,l,u,c){const d=t.blueprint.slice();return d[Fe]=o,d[G]=140|r,(null!==u||e&&2048&e[G])&&(d[G]|=2048),vp(d),d[ve]=d[kr]=e,d[_e]=n,d[ur]=s||e&&e[ur],d[U]=a||e&&e[U],d[Fr]=l||e&&e[Fr]||null,d[Ze]=i,d[Zo]=function yS(){return mS++}(),d[bn]=c,d[rp]=u,d[Te]=2==t.type?e[Te]:d,d}function no(e,t,n,r,o){let i=e.data[t];if(null===i)i=function Dc(e,t,n,r,o){const i=bp(),s=uu(),l=e.data[t]=function u0(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return function jr(){return null!==H.skipHydrationRootTNode}()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,s?i:i&&i.parent,n,t,r,o);return null===e.firstChild&&(e.firstChild=l),null!==i&&(s?null==i.child&&null!==l.parent&&(i.child=l):null===i.next&&(i.next=l,l.prev=i)),l}(e,t,n,r,o),function CM(){return H.lFrame.inI18n}()&&(i.flags|=32);else if(64&i.type){i.type=n,i.value=r,i.attrs=o;const s=function Qo(){const e=H.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();i.injectorIndex=null===s?-1:s.injectorIndex}return nn(i,!0),i}function yi(e,t,n,r){if(0===n)return-1;const o=t.length;for(let i=0;iX&&ym(e,t,X,!1),tn(a?2:0,o),a)i.runInContext(n,r,o);else{const u=je(null);try{n(r,o)}finally{je(u)}}}finally{a&&null===t[Es]&&mm(t,Es),fr(s),tn(a?3:1,o)}}function _c(e,t,n){if(nu(t)){const r=je(null);try{const i=t.directiveEnd;for(let s=t.directiveStart;snull;function Im(e,t,n,r){for(let o in e)if(e.hasOwnProperty(o)){n=null===n?{}:n;const i=e[o];null===r?Tm(n,t,o,i):r.hasOwnProperty(o)&&Tm(n,t,r[o],i)}return n}function Tm(e,t,n,r){e.hasOwnProperty(n)?e[n].push(t,r):e[n]=[t,r]}function bt(e,t,n,r,o,i,s,a){const l=ut(t,n);let c,u=t.inputs;!a&&null!=u&&(c=u[r])?(Ac(e,n,c,r,o),cr(t)&&function f0(e,t){const n=ct(t,e);16&n[G]||(n[G]|=64)}(n,t.index)):3&t.type&&(r=function d0(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),o=null!=s?s(o,t.value||"",r):o,i.setProperty(l,r,o))}function Mc(e,t,n,r){if(Ep()){const o=null===r?null:{"":-1},i=function v0(e,t){const n=e.directiveRegistry;let r=null,o=null;if(n)for(let i=0;i0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(s)!=a&&s.push(a),s.push(n,r,i)}}(e,t,r,yi(e,n,o.hostVars,z),o)}function an(e,t,n,r,o,i){const s=ut(e,t);!function Ic(e,t,n,r,o,i,s){if(null==i)e.removeAttribute(t,o,n);else{const a=null==s?B(i):s(i,r||"",o);e.setAttribute(t,o,a,n)}}(t[U],s,i,e.value,n,r,o)}function b0(e,t,n,r,o,i){const s=i[t];if(null!==s)for(let a=0;a{class e{constructor(){this.all=new Set,this.queue=new Map}create(n,r,o){const i=typeof Zone>"u"?null:Zone.current,s=new Kb(n,u=>{this.all.has(u)&&this.queue.set(u,i)},o);let a;this.all.add(s),s.notify();const l=()=>{s.cleanup(),a?.(),this.all.delete(s),this.queue.delete(s)};return a=r?.onDestroy(l),{destroy:l}}flush(){if(0!==this.queue.size)for(const[n,r]of this.queue)this.queue.delete(n),r?r.run(()=>n.run()):n.run()}get isQueueEmpty(){return 0===this.queue.size}}return e.\u0275prov=O({token:e,providedIn:"root",factory:()=>new e}),e})();function va(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(null!==t)for(let s=0;s0&&Rc(n)}}function Rc(e){for(let r=ku(e);null!==r;r=Lu(r))for(let o=Ue;o0&&Rc(i)}const n=e[I].components;if(null!==n)for(let r=0;r0&&Rc(o)}}class Ci{get rootNodes(){const t=this._lView,n=t[I];return vi(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[_e]}set context(t){this._lView[_e]=t}get destroyed(){return 256==(256&this._lView[G])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[ve];if(lt(t)){const n=t[Ms],r=n?n.indexOf(this):-1;r>-1&&(Hu(t,r),zs(n,r))}this._attachedToViewContainer=!1}Cg(this._lView[I],this._lView)}onDestroy(t){!function _p(e,t){if(256==(256&e[G]))throw new w(911,!1);null===e[Bn]&&(e[Bn]=[]),e[Bn].push(t)}(this._lView,t)}markForCheck(){mi(this._cdRefInjectingView||this._lView)}detach(){this._lView[G]&=-129}reattach(){this._lView[G]|=128}detectChanges(){Ca(this._lView[I],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new w(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function RS(e,t){si(e,t,t[U],2,null,null)}(this._lView[I],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new w(902,!1);this._appRef=t}}class L0 extends Ci{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;Ca(t[I],t,t[_e],!1)}checkNoChanges(){}get context(){return null}}class Hm extends ha{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=ne(t);return new Di(n,this.ngModule)}}function jm(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}class H0{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=Ds(r);const o=this.injector.get(t,vc,r);return o!==vc||n===vc?o:this.parentInjector.get(t,n,r)}}class Di extends im{get inputs(){return jm(this.componentDef.inputs)}get outputs(){return jm(this.componentDef.outputs)}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function Pb(e){return e.map(xb).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}create(t,n,r,o){let i=(o=o||this.ngModule)instanceof on?o:o?.injector;i&&null!==this.componentDef.getStandaloneInjector&&(i=this.componentDef.getStandaloneInjector(i)||i);const s=i?new H0(t,i):t,a=s.get(am,null);if(null===a)throw new w(407,!1);const c={rendererFactory:a,sanitizer:s.get(jI,null),effectManager:s.get(Vm,null)},d=a.createRenderer(null,this.componentDef),f=this.componentDef.selectors[0][0]||"div",h=r?function r0(e,t,n,r){const i=r.get(cm,!1)||n===Ct.ShadowDom,s=e.selectRootElement(t,i);return function o0(e){Sm(e)}(s),s}(d,r,this.componentDef.encapsulation,s):Js(d,f,function V0(e){const t=e.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(f)),p=this.componentDef.onPush?576:528,m=bc(0,null,null,1,0,null,null,null,null,null,null),v=ma(null,m,null,p,null,null,c,d,s,null,null);let E,g;pu(v);try{const M=this.componentDef;let x,Y=null;M.findHostDirectiveDefs?(x=[],Y=new Map,M.findHostDirectiveDefs(M,x,Y),x.push(M)):x=[M];const he=function $0(e,t){const n=e[I],r=X;return e[r]=t,no(n,r,2,"#host",null)}(v,h),Lo=function B0(e,t,n,r,o,i,s){const a=o[I];!function U0(e,t,n,r){for(const o of e)t.mergedAttrs=Go(t.mergedAttrs,o.hostAttrs);null!==t.mergedAttrs&&(va(t,t.mergedAttrs,!0),null!==n&&Rg(r,n,t))}(r,e,t,s);let l=null;null!==t&&(l=nm(t,o[Fr]));const u=i.rendererFactory.createRenderer(t,n),c=ma(o,Mm(n),null,n.onPush?64:16,o[e.index],e,i,u,null,null,l);return a.firstCreatePass&&Sc(a,e,r.length-1),ya(o,c),o[e.index]=c}(he,h,M,x,v,c,d);g=yp(m,X),h&&function G0(e,t,n,r){if(r)eu(e,n,["ng-version",$I.full]);else{const{attrs:o,classes:i}=function Fb(e){const t=[],n=[];let r=1,o=2;for(;r0&&Ng(e,n,i.join(" "))}}(d,M,h,r),void 0!==n&&function W0(e,t,n){const r=e.projection=[];for(let o=0;o=0;r--){const o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=Go(o.hostAttrs,n=Go(n,o.hostAttrs))}}(r)}function Oc(e){return e===wn?{}:e===ee?[]:e}function Y0(e,t){const n=e.viewQuery;e.viewQuery=n?(r,o)=>{t(r,o),n(r,o)}:t}function Q0(e,t){const n=e.contentQueries;e.contentQueries=n?(r,o,i)=>{t(r,o,i),n(r,o,i)}:t}function X0(e,t){const n=e.hostBindings;e.hostBindings=n?(r,o)=>{t(r,o),n(r,o)}:t}function _a(e){return!!function xc(e){return null!==e&&("function"==typeof e||"object"==typeof e)}(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function ln(e,t,n){return e[t]=n}function Qe(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function vr(e,t,n,r){const o=Qe(e,t,n);return Qe(e,t+1,r)||o}function un(e,t,n,r){const o=_();return Qe(o,$r(),t)&&(K(),an(Ce(),o,e,t,n,r)),un}function oo(e,t,n,r){return Qe(e,$r(),n)?t+B(n)+r:z}function io(e,t,n,r,o,i){const a=vr(e,function Mn(){return H.lFrame.bindingIndex}(),n,o);return Sn(2),a?t+B(n)+r+B(o)+i:z}function Rn(e,t,n,r,o,i,s,a){const l=_(),u=K(),c=e+X,d=u.firstCreatePass?function wT(e,t,n,r,o,i,s,a,l){const u=t.consts,c=no(t,e,4,s||null,Un(u,a));Mc(t,n,c,Un(u,l)),Fs(t,c);const d=c.tView=bc(2,c,r,o,i,t.directiveRegistry,t.pipeRegistry,null,t.schemas,u,null);return null!==t.queries&&(t.queries.template(t,c),d.queries=t.queries.embeddedTView(c)),c}(c,u,l,t,n,r,o,i,s):u.data[c];nn(d,!1);const f=ry(u,l,d,e);Ps()&&ta(u,l,f,d),Ye(f,l),ya(l,l[c]=Om(f,l,f,d)),Ss(d)&&wc(u,l,d),null!=s&&Ec(l,d,a)}let ry=function oy(e,t,n,r){return zn(!0),t[U].createComment("")};function W(e,t,n){const r=_();return Qe(r,$r(),t)&&bt(K(),Ce(),r,e,t,r[U],n,!1),W}function Hc(e,t,n,r,o){const s=o?"class":"style";Ac(e,n,t.inputs[s],s,r)}function y(e,t,n,r){const o=_(),i=K(),s=X+e,a=o[U],l=i.firstCreatePass?function IT(e,t,n,r,o,i){const s=t.consts,l=no(t,e,2,r,Un(s,o));return Mc(t,n,l,Un(s,i)),null!==l.attrs&&va(l,l.attrs,!1),null!==l.mergedAttrs&&va(l,l.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,l),l}(s,i,o,t,n,r):i.data[s],u=iy(i,o,l,a,t,e);o[s]=u;const c=Ss(l);return nn(l,!0),Rg(a,u,l),32!=(32&l.flags)&&Ps()&&ta(i,o,u,l),0===function cM(){return H.lFrame.elementDepthCount}()&&Ye(u,o),function dM(){H.lFrame.elementDepthCount++}(),c&&(wc(i,o,l),_c(i,l,o)),null!==r&&Ec(o,l),y}function C(){let e=ze();uu()?function cu(){H.lFrame.isParent=!1}():(e=e.parent,nn(e,!1));const t=e;(function hM(e){return H.skipHydrationRootTNode===e})(t)&&function yM(){H.skipHydrationRootTNode=null}(),function fM(){H.lFrame.elementDepthCount--}();const n=K();return n.firstCreatePass&&(Fs(n,e),nu(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function OM(e){return 0!=(8&e.flags)}(t)&&Hc(n,t,_(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function xM(e){return 0!=(16&e.flags)}(t)&&Hc(n,t,_(),t.stylesWithoutHost,!1),C}function de(e,t,n,r){return y(e,t,n,r),C(),de}let iy=(e,t,n,r,o,i)=>(zn(!0),Js(r,o,function Pp(){return H.lFrame.currentNamespace}()));function Sa(){return _()}function Mi(e){return!!e&&"function"==typeof e.then}function ly(e){return!!e&&"function"==typeof e.subscribe}function P(e,t,n,r){const o=_(),i=K(),s=ze();return function cy(e,t,n,r,o,i,s){const a=Ss(r),u=e.firstCreatePass&&Fm(e),c=t[_e],d=Pm(t);let f=!0;if(3&r.type||s){const m=ut(r,t),v=s?s(m):m,E=d.length,g=s?x=>s(pe(x[r.index])):r.index;let M=null;if(!s&&a&&(M=function xT(e,t,n,r){const o=e.cleanup;if(null!=o)for(let i=0;il?a[l]:null}"string"==typeof s&&(i+=2)}return null}(e,t,o,r.index)),null!==M)(M.__ngLastListenerFn__||M).__ngNextListenerFn__=i,M.__ngLastListenerFn__=i,f=!1;else{i=fy(r,t,c,i,!1);const x=n.listen(v,o,i);d.push(i,x),u&&u.push(o,g,E,E+1)}}else i=fy(r,t,c,i,!1);const h=r.outputs;let p;if(f&&null!==h&&(p=h[o])){const m=p.length;if(m)for(let v=0;v-1?ct(e.index,t):t);let l=dy(t,n,r,s),u=i.__ngNextListenerFn__;for(;u;)l=dy(t,n,u,s)&&l,u=u.__ngNextListenerFn__;return o&&!1===l&&(s.preventDefault(),s.returnValue=!1),l}}function Si(e=1){return function EM(e){return(H.lFrame.contextLView=function bM(e,t){for(;e>0;)t=t[kr],e--;return t}(e,H.lFrame.contextLView))[_e]}(e)}function Ia(e,t,n,r,o){const i=_(),s=oo(i,t,n,r);return s!==z&&bt(K(),Ce(),i,e,s,i[U],o,!1),Ia}function Ta(e,t){return e<<17|t<<2}function Wn(e){return e>>17&32767}function Bc(e){return 2|e}function Cr(e){return(131068&e)>>2}function Uc(e,t){return-131069&e|t<<2}function zc(e){return 1|e}function wy(e,t,n,r,o){const i=e[n+1],s=null===t;let a=r?Wn(i):Cr(i),l=!1;for(;0!==a&&(!1===l||s);){const c=e[a+1];BT(e[a],t)&&(l=!0,e[a+1]=r?zc(c):Bc(c)),a=r?Wn(c):Cr(c)}l&&(e[n+1]=r?Bc(i):zc(i))}function BT(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Zr(e,t)>=0}function Aa(e,t){return function $t(e,t,n,r){const o=_(),i=K(),s=Sn(2);i.firstUpdatePass&&function Ry(e,t,n,r){const o=e.data;if(null===o[n+1]){const i=o[et()],s=function Ny(e,t){return t>=e.expandoStartIndex}(e,n);(function Fy(e,t){return 0!=(e.flags&(t?8:16))})(i,r)&&null===t&&!s&&(t=!1),t=function XT(e,t,n,r){const o=function fu(e){const t=H.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let i=r?t.residualClasses:t.residualStyles;if(null===o)0===(r?t.classBindings:t.styleBindings)&&(n=Ii(n=Gc(null,e,t,n,r),t.attrs,r),i=null);else{const s=t.directiveStylingLast;if(-1===s||e[s]!==o)if(n=Gc(o,e,t,n,r),null===i){let l=function KT(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==Cr(r))return e[Wn(r)]}(e,t,r);void 0!==l&&Array.isArray(l)&&(l=Gc(null,e,t,l[1],r),l=Ii(l,t.attrs,r),function JT(e,t,n,r){e[Wn(n?t.classBindings:t.styleBindings)]=r}(e,t,r,l))}else i=function eA(e,t,n){let r;const o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i0)&&(u=!0)):c=n,o)if(0!==l){const f=Wn(e[a+1]);e[r+1]=Ta(f,a),0!==f&&(e[f+1]=Uc(e[f+1],r)),e[a+1]=function VT(e,t){return 131071&e|t<<17}(e[a+1],r)}else e[r+1]=Ta(a,0),0!==a&&(e[a+1]=Uc(e[a+1],r)),a=r;else e[r+1]=Ta(l,0),0===a?a=r:e[l+1]=Uc(e[l+1],r),l=r;u&&(e[r+1]=Bc(e[r+1])),wy(e,c,r,!0),wy(e,c,r,!1),function $T(e,t,n,r,o){const i=o?e.residualClasses:e.residualStyles;null!=i&&"string"==typeof t&&Zr(i,t)>=0&&(n[r+1]=zc(n[r+1]))}(t,c,e,r,i),s=Ta(a,l),i?t.classBindings=s:t.styleBindings=s}(o,i,t,n,s,r)}}(i,e,s,r),t!==z&&Qe(o,s,t)&&function xy(e,t,n,r,o,i,s,a){if(!(3&t.type))return;const l=e.data,u=l[a+1],c=function HT(e){return 1==(1&e)}(u)?Py(l,t,n,o,Cr(u),s):void 0;Na(c)||(Na(i)||function LT(e){return 2==(2&e)}(u)&&(i=Py(l,null,n,o,a,s)),function $S(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else{let i=-1===r.indexOf("-")?void 0:dt.DashCase;null==o?e.removeStyle(n,r,i):("string"==typeof o&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=dt.Important),e.setStyle(n,r,o,i))}}(r,s,Ns(et(),n),o,i))}(i,i.data[et()],o,o[U],e,o[s+1]=function oA(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=Pe(Gn(e)))),e}(t,n),r,s)}(e,t,null,!0),Aa}function Gc(e,t,n,r,o){let i=null;const s=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const l=e[o],u=Array.isArray(l),c=u?l[1]:l,d=null===c;let f=n[o+1];f===z&&(f=d?ee:void 0);let h=d?bu(f,r):c===r?f:void 0;if(u&&!Na(h)&&(h=bu(l,r)),Na(h)&&(a=h,s))return a;const p=e[o+1];o=s?Wn(p):Cr(p)}if(null!==t){let l=i?t.residualClasses:t.residualStyles;null!=l&&(a=bu(l,r))}return a}function Na(e){return void 0!==e}function b(e,t=""){const n=_(),r=K(),o=e+X,i=r.firstCreatePass?no(r,o,1,t,null):r.data[o],s=ky(r,n,i,t,e);n[o]=s,Ps()&&ta(r,n,s,i),nn(i,!1)}let ky=(e,t,n,r,o)=>(zn(!0),function Ks(e,t){return e.createText(t)}(t[U],r));function ht(e){return tt("",e,""),ht}function tt(e,t,n){const r=_(),o=oo(r,e,t,n);return o!==z&&Nn(r,et(),o),tt}function Ra(e,t,n,r,o){const i=_(),s=io(i,e,t,n,r,o);return s!==z&&Nn(i,et(),s),Ra}const Dr=void 0;var SA=["en",[["a","p"],["AM","PM"],Dr],[["AM","PM"],Dr,Dr],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Dr,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Dr,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Dr,"{1} 'at' {0}",Dr],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function MA(e){const n=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===r?1:5}];let po={};function nt(e){const t=function IA(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=nv(t);if(n)return n;const r=t.split("-")[0];if(n=nv(r),n)return n;if("en"===r)return SA;throw new w(701,!1)}function nv(e){return e in po||(po[e]=ce.ng&&ce.ng.common&&ce.ng.common.locales&&ce.ng.common.locales[e]),po[e]}var T=(()=>((T=T||{})[T.LocaleId=0]="LocaleId",T[T.DayPeriodsFormat=1]="DayPeriodsFormat",T[T.DayPeriodsStandalone=2]="DayPeriodsStandalone",T[T.DaysFormat=3]="DaysFormat",T[T.DaysStandalone=4]="DaysStandalone",T[T.MonthsFormat=5]="MonthsFormat",T[T.MonthsStandalone=6]="MonthsStandalone",T[T.Eras=7]="Eras",T[T.FirstDayOfWeek=8]="FirstDayOfWeek",T[T.WeekendRange=9]="WeekendRange",T[T.DateFormat=10]="DateFormat",T[T.TimeFormat=11]="TimeFormat",T[T.DateTimeFormat=12]="DateTimeFormat",T[T.NumberSymbols=13]="NumberSymbols",T[T.NumberFormats=14]="NumberFormats",T[T.CurrencyCode=15]="CurrencyCode",T[T.CurrencySymbol=16]="CurrencySymbol",T[T.CurrencyName=17]="CurrencyName",T[T.Currencies=18]="Currencies",T[T.Directionality=19]="Directionality",T[T.PluralCase=20]="PluralCase",T[T.ExtraData=21]="ExtraData",T))();const go="en-US";let rv=go;function Zc(e,t,n,r,o){if(e=$(e),Array.isArray(e))for(let i=0;i>20;if(gr(e)||!e.multi){const h=new Xo(l,o,D),p=Qc(a,t,o?c:c+f,d);-1===p?(_u($s(u,s),i,a),Yc(i,e,t.length),t.push(a),u.directiveStart++,u.directiveEnd++,o&&(u.providerIndexes+=1048576),n.push(h),s.push(h)):(n[p]=h,s[p]=h)}else{const h=Qc(a,t,c+f,d),p=Qc(a,t,c,c+f),v=p>=0&&n[p];if(o&&!v||!o&&!(h>=0&&n[h])){_u($s(u,s),i,a);const E=function bN(e,t,n,r,o){const i=new Xo(e,n,D);return i.multi=[],i.index=t,i.componentProviders=0,Tv(i,o,r&&!n),i}(o?EN:wN,n.length,o,r,l);!o&&v&&(n[p].providerFactory=E),Yc(i,e,t.length,0),t.push(a),u.directiveStart++,u.directiveEnd++,o&&(u.providerIndexes+=1048576),n.push(E),s.push(E)}else Yc(i,e,h>-1?h:p,Tv(n[o?p:h],l,!o&&r));!o&&r&&v&&n[p].componentProviders++}}}function Yc(e,t,n,r){const o=gr(t),i=function yI(e){return!!e.useClass}(t);if(o||i){const l=(i?$(t.useClass):t).prototype.ngOnDestroy;if(l){const u=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){const c=u.indexOf(n);-1===c?u.push(n,[r,l]):u[c+1].push(r,l)}else u.push(n,l)}}}function Tv(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Qc(e,t,n,r){for(let o=n;o{n.providersResolver=(r,o)=>function _N(e,t,n){const r=K();if(r.firstCreatePass){const o=jt(e);Zc(n,r.data,r.blueprint,o,!0),Zc(t,r.data,r.blueprint,o,!1)}}(r,o?o(e):e,t)}}class mo{}class Av{}class Kc extends mo{constructor(t,n,r){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Hm(this);const o=Dt(t);this._bootstrapComponents=An(o.bootstrap),this._r3Injector=wm(t,n,[{provide:mo,useValue:this},{provide:ha,useValue:this.componentFactoryResolver},...r],Pe(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Jc extends Av{constructor(t){super(),this.moduleType=t}create(t){return new Kc(this.moduleType,t,[])}}class Nv extends mo{constructor(t){super(),this.componentFactoryResolver=new Hm(this),this.instance=null;const n=new ic([...t.providers,{provide:mo,useValue:this},{provide:ha,useValue:this.componentFactoryResolver}],t.parent||aa(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function ed(e,t,n=null){return new Nv({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}let IN=(()=>{class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n.id)){const r=qg(0,n.type),o=r.length>0?ed([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n.id,o)}return this.cachedInjectors.get(n.id)}ngOnDestroy(){try{for(const n of this.cachedInjectors.values())null!==n&&n.destroy()}finally{this.cachedInjectors.clear()}}}return e.\u0275prov=O({token:e,providedIn:"environment",factory:()=>new e(A(on))}),e})();function Rv(e){e.getStandaloneInjector=t=>t.get(IN).getOrCreateStandaloneInjector(e)}function nd(e,t,n){const r=Je()+e,o=_();return o[r]===z?ln(o,r,n?t.call(n):t()):function _i(e,t){return e[t]}(o,r)}function rd(e,t,n,r){return function Vv(e,t,n,r,o,i){const s=t+n;return Qe(e,s,o)?ln(e,s+1,i?r.call(i,o):r(o)):xi(e,s+1)}(_(),Je(),e,t,n,r)}function xi(e,t){const n=e[t];return n===z?void 0:n}function Pi(e,t){const n=K();let r;const o=e+X;n.firstCreatePass?(r=function zN(e,t){if(t)for(let n=t.length-1;n>=0;n--){const r=t[n];if(e===r.name)return r}}(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];const i=r.factory||(r.factory=dr(r.type)),s=it(D);try{const a=js(!1),l=i();return js(a),function MT(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}(n,_(),o,l),l}finally{it(s)}}function Fi(e,t,n,r){const o=e+X,i=_(),s=function Hr(e,t){return e[t]}(i,o);return function ki(e,t){return e[I].data[t].pure}(i,o)?function Hv(e,t,n,r,o,i,s){const a=t+n;return vr(e,a,o,i)?ln(e,a+2,s?r.call(s,o,i):r(o,i)):xi(e,a+2)}(i,Je(),t,s.transform,n,r,s):s.transform(n,r)}function od(e){return t=>{setTimeout(e,void 0,t)}}const Ee=class YN extends Cn{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&"object"==typeof t){const l=t;o=l.next?.bind(l),i=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(i=od(i),o&&(o=od(o)),s&&(s=od(s)));const a=super.subscribe({next:o,error:i,complete:s});return t instanceof It&&t.add(a),a}};function QN(){return this._results[Symbol.iterator]()}class id{get changes(){return this._changes||(this._changes=new Ee)}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const n=id.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=QN)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){const r=this;r.dirty=!1;const o=function Ot(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function zM(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r{class e{}return e.__NG_ELEMENT_ID__=JN,e})();const XN=On,KN=class extends XN{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n,null)}createEmbeddedViewImpl(t,n,r){const o=this._declarationTContainer.tView,i=ma(this._declarationLView,o,t,16,null,o.declTNode,null,null,null,n||null,r||null);i[qo]=this._declarationLView[this._declarationTContainer.index];const a=this._declarationLView[Kt];return null!==a&&(i[Kt]=a.createEmbeddedView(o)),Nc(o,i,t),new Ci(i)}};function JN(){return ka(ze(),_())}function ka(e,t){return 4&e.type?new KN(t,e,eo(e,t)):null}let Ut=(()=>{class e{}return e.__NG_ELEMENT_ID__=sR,e})();function sR(){return Zv(ze(),_())}const aR=Ut,Wv=class extends aR{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return eo(this._hostTNode,this._hostLView)}get injector(){return new Ur(this._hostTNode,this._hostLView)}get parentInjector(){const t=Du(this._hostTNode,this._hostLView);if(Vp(t)){const n=Hs(t,this._hostLView),r=Vs(t);return new Ur(n[I].data[r+8],n)}return new Ur(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=qv(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-Ue}createEmbeddedView(t,n,r){let o,i;"number"==typeof r?o=r:null!=r&&(o=r.index,i=r.injector);const a=t.createEmbeddedViewImpl(n||{},i,null);return this.insertImpl(a,o,false),a}createComponent(t,n,r,o,i){const s=t&&!function Jo(e){return"function"==typeof e}(t);let a;if(s)a=n;else{const m=n||{};a=m.index,r=m.injector,o=m.projectableNodes,i=m.environmentInjector||m.ngModuleRef}const l=s?t:new Di(ne(t)),u=r||this.parentInjector;if(!i&&null==l.ngModule){const v=(s?u:this.parentInjector).get(on,null);v&&(i=v)}ne(l.componentType??{});const h=l.create(u,o,null,i);return this.insertImpl(h.hostView,a,false),h}insert(t,n){return this.insertImpl(t,n,!1)}insertImpl(t,n,r){const o=t._lView,i=o[I];if(function aM(e){return lt(e[ve])}(o)){const l=this.indexOf(t);if(-1!==l)this.detach(l);else{const u=o[ve],c=new Wv(u,u[Ze],u[ve]);c.detach(c.indexOf(t))}}const s=this._adjustIndex(n),a=this._lContainer;if(function xS(e,t,n,r){const o=Ue+r,i=n.length;r>0&&(n[o-1][Ht]=t),r0)r.push(s[a/2]);else{const u=i[a+1],c=t[-l];for(let d=Ue;d{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=S(Cd,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const n=[];for(const o of this.appInits){const i=o();if(Mi(i))n.push(i);else if(ly(i)){const s=new Promise((a,l)=>{i.subscribe({complete:a,error:l})});n.push(s)}}const r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),0===n.length&&r(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),CC=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();const xn=new N("LocaleId",{providedIn:"root",factory:()=>S(xn,L.Optional|L.SkipSelf)||function VR(){return typeof $localize<"u"&&$localize.locale||go}()});class jR{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let DC=(()=>{class e{compileModuleSync(n){return new Jc(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const r=this.compileModuleSync(n),i=An(Dt(n).declarations).reduce((s,a)=>{const l=ne(a);return l&&s.push(new Di(l)),s},[]);return new jR(r,i)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const UR=(()=>Promise.resolve(0))();function _d(e){typeof Zone>"u"?UR.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}function EC(...e){}class ye{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ee(!1),this.onMicrotaskEmpty=new Ee(!1),this.onStable=new Ee(!1),this.onError=new Ee(!1),typeof Zone>"u")throw new w(908,!1);Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!r&&n,o.shouldCoalesceRunChangeDetection=r,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function zR(){let e=ce.requestAnimationFrame,t=ce.cancelAnimationFrame;if(typeof Zone<"u"&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function qR(e){const t=()=>{!function WR(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(ce,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Ed(e),e.isCheckStableRunning=!0,wd(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Ed(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,o,i,s,a)=>{try{return bC(e),n.invokeTask(o,i,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||e.shouldCoalesceRunChangeDetection)&&t(),MC(e)}},onInvoke:(n,r,o,i,s,a,l)=>{try{return bC(e),n.invoke(o,i,s,a,l)}finally{e.shouldCoalesceRunChangeDetection&&t(),MC(e)}},onHasTask:(n,r,o,i)=>{n.hasTask(o,i),r===o&&("microTask"==i.change?(e._hasPendingMicrotasks=i.microTask,Ed(e),wd(e)):"macroTask"==i.change&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:(n,r,o,i)=>(n.handleError(o,i),e.runOutsideAngular(()=>e.onError.emit(i)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ye.isInAngularZone())throw new w(909,!1)}static assertNotInAngularZone(){if(ye.isInAngularZone())throw new w(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){const i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,GR,EC,EC);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const GR={};function wd(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Ed(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function bC(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function MC(e){e._nesting--,wd(e)}class ZR{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ee,this.onMicrotaskEmpty=new Ee,this.onStable=new Ee,this.onError=new Ee}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}}const SC=new N("",{providedIn:"root",factory:IC});function IC(){const e=S(ye);let t=!0;return function sb(...e){const t=$o(e),n=function JE(e,t){return"number"==typeof $l(e)?e.pop():t}(e,1/0),r=e;return r.length?1===r.length?Tt(r[0]):Rr(n)(xe(r,t)):Qt}(new be(o=>{t=e.isStable&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks,e.runOutsideAngular(()=>{o.next(t),o.complete()})}),new be(o=>{let i;e.runOutsideAngular(()=>{i=e.onStable.subscribe(()=>{ye.assertNotInAngularZone(),_d(()=>{!t&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks&&(t=!0,o.next(!0))})})});const s=e.onUnstable.subscribe(()=>{ye.assertInAngularZone(),t&&(t=!1,e.runOutsideAngular(()=>{o.next(!1)}))});return()=>{i.unsubscribe(),s.unsubscribe()}}).pipe(function ab(e={}){const{connector:t=(()=>new Cn),resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=e;return i=>{let s,a,l,u=0,c=!1,d=!1;const f=()=>{a?.unsubscribe(),a=void 0},h=()=>{f(),s=l=void 0,c=d=!1},p=()=>{const m=s;h(),m?.unsubscribe()};return $e((m,v)=>{u++,!d&&!c&&f();const E=l=l??t();v.add(()=>{u--,0===u&&!d&&!c&&(a=Bl(p,o))}),E.subscribe(v),!s&&u>0&&(s=new jo({next:g=>E.next(g),error:g=>{d=!0,f(),a=Bl(h,n,g),E.error(g)},complete:()=>{c=!0,f(),a=Bl(h,r),E.complete()}}),Tt(m).subscribe(s))})(i)}}()))}const TC=new N(""),ja=new N("");let Sd,bd=(()=>{class e{constructor(n,r,o){this._ngZone=n,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Sd||(function YR(e){Sd=e}(o),o.addToWindow(r)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{ye.assertNotInAngularZone(),_d(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())_d(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,o){let i=-1;r&&r>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==i),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:i,updateCb:o})}whenStable(n,r,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,r,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,r,o){return[]}}return e.\u0275fac=function(n){return new(n||e)(A(ye),A(Md),A(ja))},e.\u0275prov=O({token:e,factory:e.\u0275fac}),e})(),Md=(()=>{class e{constructor(){this._applications=new Map}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return Sd?.findTestabilityInTree(this,n,r)??null}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})(),qn=null;const AC=new N("AllowMultipleToken"),Id=new N("PlatformDestroyListeners"),Td=new N("appBootstrapListener");class RC{constructor(t,n){this.name=t,this.token=n}}function xC(e,t,n=[]){const r=`Platform: ${t}`,o=new N(r);return(i=[])=>{let s=Ad();if(!s||s.injector.get(AC,!1)){const a=[...n,...i,{provide:o,useValue:!0}];e?e(a):function KR(e){if(qn&&!qn.get(AC,!1))throw new w(400,!1);(function NC(){!function Qb(e){cp=e}(()=>{throw new w(600,!1)})})(),qn=e;const t=e.get(FC);(function OC(e){e.get(Kg,null)?.forEach(n=>n())})(e)}(function PC(e=[],t){return sn.create({name:t,providers:[{provide:rc,useValue:"platform"},{provide:Id,useValue:new Set([()=>qn=null])},...e]})}(a,r))}return function eO(e){const t=Ad();if(!t)throw new w(401,!1);return t}()}}function Ad(){return qn?.get(FC)??null}let FC=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const o=function tO(e="zone.js",t){return"noop"===e?new ZR:"zone.js"===e?new ye(t):e}(r?.ngZone,function kC(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing}));return o.run(()=>{const i=function SN(e,t,n){return new Kc(e,t,n)}(n.moduleType,this.injector,function $C(e){return[{provide:ye,useFactory:e},{provide:di,multi:!0,useFactory:()=>{const t=S(rO,{optional:!0});return()=>t.initialize()}},{provide:jC,useFactory:nO},{provide:SC,useFactory:IC}]}(()=>o)),s=i.injector.get(yr,null);return o.runOutsideAngular(()=>{const a=o.onError.subscribe({next:l=>{s.handleError(l)}});i.onDestroy(()=>{$a(this._modules,i),a.unsubscribe()})}),function LC(e,t,n){try{const r=n();return Mi(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(s,o,()=>{const a=i.injector.get(Dd);return a.runInitializers(),a.donePromise.then(()=>(function ov(e){At(e,"Expected localeId to be defined"),"string"==typeof e&&(rv=e.toLowerCase().replace(/_/g,"-"))}(i.injector.get(xn,go)||go),this._moduleDoBootstrap(i),i))})})}bootstrapModule(n,r=[]){const o=VC({},r);return function QR(e,t,n){const r=new Jc(n);return Promise.resolve(r)}(0,0,n).then(i=>this.bootstrapModuleFactory(i,o))}_moduleDoBootstrap(n){const r=n.injector.get(Co);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(o=>r.bootstrap(o));else{if(!n.instance.ngDoBootstrap)throw new w(-403,!1);n.instance.ngDoBootstrap(r)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new w(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const n=this._injector.get(Id,null);n&&(n.forEach(r=>r()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(n){return new(n||e)(A(sn))},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();function VC(e,t){return Array.isArray(t)?t.reduce(VC,e):{...e,...t}}let Co=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=S(jC),this.componentTypes=[],this.components=[],this.isStable=S(SC),this._injector=S(on)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,r){const o=n instanceof im;if(!this._injector.get(Dd).done)throw!o&&function xr(e){const t=ne(e)||qe(e)||at(e);return null!==t&&t.standalone}(n),new w(405,!1);let s;s=o?n:this._injector.get(ha).resolveComponentFactory(n),this.componentTypes.push(s.componentType);const a=function XR(e){return e.isBoundToModule}(s)?void 0:this._injector.get(mo),u=s.create(sn.NULL,[],r||s.selector,a),c=u.location.nativeElement,d=u.injector.get(TC,null);return d?.registerApplication(c),u.onDestroy(()=>{this.detachView(u.hostView),$a(this.components,u),d?.unregisterApplication(c)}),this._loadComponent(u),u}tick(){if(this._runningTick)throw new w(101,!1);try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this.internalErrorHandler(n)}finally{this._runningTick=!1}}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;$a(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);const r=this._injector.get(Td,[]);r.push(...this._bootstrapListeners),r.forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>$a(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new w(406,!1);const n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function $a(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const jC=new N("",{providedIn:"root",factory:()=>S(yr).handleError.bind(void 0)});function nO(){const e=S(ye),t=S(yr);return n=>e.runOutsideAngular(()=>t.handleError(n))}let rO=(()=>{class e{constructor(){this.zone=S(ye),this.applicationRef=S(Co)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();let Ba=(()=>{class e{}return e.__NG_ELEMENT_ID__=iO,e})();function iO(e){return function sO(e,t,n){if(cr(e)&&!n){const r=ct(e.index,t);return new Ci(r,r)}return 47&e.type?new Ci(t[Te],t):null}(ze(),_(),16==(16&e))}class GC{constructor(){}supports(t){return _a(t)}create(t){return new fO(t)}}const dO=(e,t)=>t;class fO{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||dO}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){const s=!r||n&&n.currentIndex{s=this._trackByFn(o,a),null!==n&&Object.is(n.trackById,s)?(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)):(n=this._mismatch(n,a,s,o),r=!0),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,o){let i;return null===t?i=this._itTail:(i=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,i,o)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(r,o))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,i,o)):t=this._addAfter(new hO(n,r),i,o),t}_verifyReinsertion(t,n,r,o){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==i?t=this._reinsertAfter(i,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const o=t._prevRemoved,i=t._nextRemoved;return null===o?this._removalsHead=i:o._nextRemoved=i,null===i?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){const o=null===n?this._itHead:n._next;return t._next=o,t._prev=n,null===o?this._itTail=t:o._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new WC),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,r=t._next;return null===n?this._itHead=r:n._next=r,null===r?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new WC),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class hO{constructor(t,n){this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class pO{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===n||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){const n=t._prevDup,r=t._nextDup;return null===n?this._head=r:n._nextDup=r,null===r?this._tail=n:r._prevDup=n,null===this._head}}class WC{constructor(){this.map=new Map}put(t){const n=t.trackById;let r=this.map.get(n);r||(r=new pO,this.map.set(n,r)),r.add(t)}get(t,n){const o=this.map.get(t);return o?o.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function qC(e,t,n){const r=e.previousIndex;if(null===r)return r;let o=0;return n&&r{class e{constructor(n){this.factories=n}static create(n,r){if(null!=r){const o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||YC()),deps:[[e,new qs,new Ws]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(null!=r)return r;throw new w(901,!1)}}return e.\u0275prov=O({token:e,providedIn:"root",factory:YC}),e})();const CO=xC(null,"core",[]);let DO=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(A(Co))},e.\u0275mod=Vt({type:e}),e.\u0275inj=Nt({}),e})(),nD=(()=>{class e{get whenAllTasksComplete(){return 0===this.collection.size&&this.complete(),this.promise}constructor(){this.taskId=0,this.collection=new Set,this.ngZone=S(ye),this.completed=!1,this.ngZone.runOutsideAngular(()=>{this.promise=new Promise(n=>{this.resolve=n})})}add(){if(this.completed)return-1;const n=this.taskId++;return this.collection.add(n),n}remove(n){this.completed||(this.collection.delete(n),0===this.collection.size&&this.complete())}ngOnDestroy(){this.complete(),this.collection.clear()}complete(){this.completed=!0,this.resolve()}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Do(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}let kd=null;function Zn(){return kd}class OO{}const Mt=new N("DocumentToken");let Ld=(()=>{class e{historyGo(n){throw new Error("Not implemented")}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:function(){return S(PO)},providedIn:"platform"}),e})();const xO=new N("Location Initialized");let PO=(()=>{class e extends Ld{constructor(){super(),this._doc=S(Mt),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Zn().getBaseHref(this._doc)}onPopState(n){const r=Zn().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){const r=Zn().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n}pushState(n,r,o){this._history.pushState(n,r,o)}replaceState(n,r,o){this._history.replaceState(n,r,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:function(){return new e},providedIn:"platform"}),e})();function Vd(e,t){if(0==e.length)return t;if(0==t.length)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function oD(e){const t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function Pn(e){return e&&"?"!==e[0]?"?"+e:e}let Yn=(()=>{class e{historyGo(n){throw new Error("Not implemented")}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:function(){return S(sD)},providedIn:"root"}),e})();const iD=new N("appBaseHref");let sD=(()=>{class e extends Yn{constructor(n,r){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??S(Mt).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return Vd(this._baseHref,n)}path(n=!1){const r=this._platformLocation.pathname+Pn(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){const s=this.prepareExternalUrl(o+Pn(i));this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){const s=this.prepareExternalUrl(o+Pn(i));this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}}return e.\u0275fac=function(n){return new(n||e)(A(Ld),A(iD,8))},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),aD=(()=>{class e extends Yn{constructor(n,r){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],null!=r&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}path(n=!1){let r=this._platformLocation.hash;return null==r&&(r="#"),r.length>0?r.substring(1):r}prepareExternalUrl(n){const r=Vd(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+Pn(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+Pn(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}}return e.\u0275fac=function(n){return new(n||e)(A(Ld),A(iD,8))},e.\u0275prov=O({token:e,factory:e.\u0275fac}),e})(),Hd=(()=>{class e{constructor(n){this._subject=new Ee,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;const r=this._locationStrategy.getBaseHref();this._basePath=function LO(e){if(new RegExp("^(https?:)?//").test(e)){const[,n]=e.split(/\/\/[^\/]+/);return n}return e}(oD(lD(r))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+Pn(r))}normalize(n){return e.stripTrailingSlash(function kO(e,t){if(!e||!t.startsWith(e))return t;const n=t.substring(e.length);return""===n||["/",";","?","#"].includes(n[0])?n:t}(this._basePath,lD(n)))}prepareExternalUrl(n){return n&&"/"!==n[0]&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",o=null){this._locationStrategy.pushState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Pn(r)),o)}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Pn(r)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)})),()=>{const r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(o=>o(n,r))}subscribe(n,r,o){return this._subject.subscribe({next:n,error:r,complete:o})}}return e.normalizeQueryParams=Pn,e.joinWithSlash=Vd,e.stripTrailingSlash=oD,e.\u0275fac=function(n){return new(n||e)(A(Yn))},e.\u0275prov=O({token:e,factory:function(){return function FO(){return new Hd(A(Yn))}()},providedIn:"root"}),e})();function lD(e){return e.replace(/\/index.html$/,"")}var Me=(()=>((Me=Me||{})[Me.Format=0]="Format",Me[Me.Standalone=1]="Standalone",Me))(),Q=(()=>((Q=Q||{})[Q.Narrow=0]="Narrow",Q[Q.Abbreviated=1]="Abbreviated",Q[Q.Wide=2]="Wide",Q[Q.Short=3]="Short",Q))(),De=(()=>((De=De||{})[De.Short=0]="Short",De[De.Medium=1]="Medium",De[De.Long=2]="Long",De[De.Full=3]="Full",De))(),k=(()=>((k=k||{})[k.Decimal=0]="Decimal",k[k.Group=1]="Group",k[k.List=2]="List",k[k.PercentSign=3]="PercentSign",k[k.PlusSign=4]="PlusSign",k[k.MinusSign=5]="MinusSign",k[k.Exponential=6]="Exponential",k[k.SuperscriptingExponent=7]="SuperscriptingExponent",k[k.PerMille=8]="PerMille",k[k.Infinity=9]="Infinity",k[k.NaN=10]="NaN",k[k.TimeSeparator=11]="TimeSeparator",k[k.CurrencyDecimal=12]="CurrencyDecimal",k[k.CurrencyGroup=13]="CurrencyGroup",k))();function qa(e,t){return Ft(nt(e)[T.DateFormat],t)}function Za(e,t){return Ft(nt(e)[T.TimeFormat],t)}function Ya(e,t){return Ft(nt(e)[T.DateTimeFormat],t)}function Pt(e,t){const n=nt(e),r=n[T.NumberSymbols][t];if(typeof r>"u"){if(t===k.CurrencyDecimal)return n[T.NumberSymbols][k.Decimal];if(t===k.CurrencyGroup)return n[T.NumberSymbols][k.Group]}return r}function cD(e){if(!e[T.ExtraData])throw new Error(`Missing extra locale data for the locale "${e[T.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Ft(e,t){for(let n=t;n>-1;n--)if(typeof e[n]<"u")return e[n];throw new Error("Locale data API: locale data undefined")}function $d(e){const[t,n]=e.split(":");return{hours:+t,minutes:+n}}const QO=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Hi={},XO=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var Ve=(()=>((Ve=Ve||{})[Ve.Short=0]="Short",Ve[Ve.ShortGMT=1]="ShortGMT",Ve[Ve.Long=2]="Long",Ve[Ve.Extended=3]="Extended",Ve))(),V=(()=>((V=V||{})[V.FullYear=0]="FullYear",V[V.Month=1]="Month",V[V.Date=2]="Date",V[V.Hours=3]="Hours",V[V.Minutes=4]="Minutes",V[V.Seconds=5]="Seconds",V[V.FractionalSeconds=6]="FractionalSeconds",V[V.Day=7]="Day",V))(),Z=(()=>((Z=Z||{})[Z.DayPeriods=0]="DayPeriods",Z[Z.Days=1]="Days",Z[Z.Months=2]="Months",Z[Z.Eras=3]="Eras",Z))();function KO(e,t,n,r){let o=function ax(e){if(hD(e))return e;if("number"==typeof e&&!isNaN(e))return new Date(e);if("string"==typeof e){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){const[o,i=1,s=1]=e.split("-").map(a=>+a);return Qa(o,i-1,s)}const n=parseFloat(e);if(!isNaN(e-n))return new Date(n);let r;if(r=e.match(QO))return function lx(e){const t=new Date(0);let n=0,r=0;const o=e[8]?t.setUTCFullYear:t.setFullYear,i=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),r=Number(e[9]+e[11])),o.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));const s=Number(e[4]||0)-n,a=Number(e[5]||0)-r,l=Number(e[6]||0),u=Math.floor(1e3*parseFloat("0."+(e[7]||0)));return i.call(t,s,a,l,u),t}(r)}const t=new Date(e);if(!hD(t))throw new Error(`Unable to convert "${e}" into a date`);return t}(e);t=Fn(n,t)||t;let a,s=[];for(;t;){if(a=XO.exec(t),!a){s.push(t);break}{s=s.concat(a.slice(1));const c=s.pop();if(!c)break;t=c}}let l=o.getTimezoneOffset();r&&(l=fD(r,l),o=function sx(e,t,n){const r=n?-1:1,o=e.getTimezoneOffset();return function ix(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}(e,r*(fD(t,o)-o))}(o,r,!0));let u="";return s.forEach(c=>{const d=function ox(e){if(Ud[e])return Ud[e];let t;switch(e){case"G":case"GG":case"GGG":t=fe(Z.Eras,Q.Abbreviated);break;case"GGGG":t=fe(Z.Eras,Q.Wide);break;case"GGGGG":t=fe(Z.Eras,Q.Narrow);break;case"y":t=Re(V.FullYear,1,0,!1,!0);break;case"yy":t=Re(V.FullYear,2,0,!0,!0);break;case"yyy":t=Re(V.FullYear,3,0,!1,!0);break;case"yyyy":t=Re(V.FullYear,4,0,!1,!0);break;case"Y":t=el(1);break;case"YY":t=el(2,!0);break;case"YYY":t=el(3);break;case"YYYY":t=el(4);break;case"M":case"L":t=Re(V.Month,1,1);break;case"MM":case"LL":t=Re(V.Month,2,1);break;case"MMM":t=fe(Z.Months,Q.Abbreviated);break;case"MMMM":t=fe(Z.Months,Q.Wide);break;case"MMMMM":t=fe(Z.Months,Q.Narrow);break;case"LLL":t=fe(Z.Months,Q.Abbreviated,Me.Standalone);break;case"LLLL":t=fe(Z.Months,Q.Wide,Me.Standalone);break;case"LLLLL":t=fe(Z.Months,Q.Narrow,Me.Standalone);break;case"w":t=Bd(1);break;case"ww":t=Bd(2);break;case"W":t=Bd(1,!0);break;case"d":t=Re(V.Date,1);break;case"dd":t=Re(V.Date,2);break;case"c":case"cc":t=Re(V.Day,1);break;case"ccc":t=fe(Z.Days,Q.Abbreviated,Me.Standalone);break;case"cccc":t=fe(Z.Days,Q.Wide,Me.Standalone);break;case"ccccc":t=fe(Z.Days,Q.Narrow,Me.Standalone);break;case"cccccc":t=fe(Z.Days,Q.Short,Me.Standalone);break;case"E":case"EE":case"EEE":t=fe(Z.Days,Q.Abbreviated);break;case"EEEE":t=fe(Z.Days,Q.Wide);break;case"EEEEE":t=fe(Z.Days,Q.Narrow);break;case"EEEEEE":t=fe(Z.Days,Q.Short);break;case"a":case"aa":case"aaa":t=fe(Z.DayPeriods,Q.Abbreviated);break;case"aaaa":t=fe(Z.DayPeriods,Q.Wide);break;case"aaaaa":t=fe(Z.DayPeriods,Q.Narrow);break;case"b":case"bb":case"bbb":t=fe(Z.DayPeriods,Q.Abbreviated,Me.Standalone,!0);break;case"bbbb":t=fe(Z.DayPeriods,Q.Wide,Me.Standalone,!0);break;case"bbbbb":t=fe(Z.DayPeriods,Q.Narrow,Me.Standalone,!0);break;case"B":case"BB":case"BBB":t=fe(Z.DayPeriods,Q.Abbreviated,Me.Format,!0);break;case"BBBB":t=fe(Z.DayPeriods,Q.Wide,Me.Format,!0);break;case"BBBBB":t=fe(Z.DayPeriods,Q.Narrow,Me.Format,!0);break;case"h":t=Re(V.Hours,1,-12);break;case"hh":t=Re(V.Hours,2,-12);break;case"H":t=Re(V.Hours,1);break;case"HH":t=Re(V.Hours,2);break;case"m":t=Re(V.Minutes,1);break;case"mm":t=Re(V.Minutes,2);break;case"s":t=Re(V.Seconds,1);break;case"ss":t=Re(V.Seconds,2);break;case"S":t=Re(V.FractionalSeconds,1);break;case"SS":t=Re(V.FractionalSeconds,2);break;case"SSS":t=Re(V.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=Ka(Ve.Short);break;case"ZZZZZ":t=Ka(Ve.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=Ka(Ve.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=Ka(Ve.Long);break;default:return null}return Ud[e]=t,t}(c);u+=d?d(o,n,l):"''"===c?"'":c.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}function Qa(e,t,n){const r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function Fn(e,t){const n=function VO(e){return nt(e)[T.LocaleId]}(e);if(Hi[n]=Hi[n]||{},Hi[n][t])return Hi[n][t];let r="";switch(t){case"shortDate":r=qa(e,De.Short);break;case"mediumDate":r=qa(e,De.Medium);break;case"longDate":r=qa(e,De.Long);break;case"fullDate":r=qa(e,De.Full);break;case"shortTime":r=Za(e,De.Short);break;case"mediumTime":r=Za(e,De.Medium);break;case"longTime":r=Za(e,De.Long);break;case"fullTime":r=Za(e,De.Full);break;case"short":const o=Fn(e,"shortTime"),i=Fn(e,"shortDate");r=Xa(Ya(e,De.Short),[o,i]);break;case"medium":const s=Fn(e,"mediumTime"),a=Fn(e,"mediumDate");r=Xa(Ya(e,De.Medium),[s,a]);break;case"long":const l=Fn(e,"longTime"),u=Fn(e,"longDate");r=Xa(Ya(e,De.Long),[l,u]);break;case"full":const c=Fn(e,"fullTime"),d=Fn(e,"fullDate");r=Xa(Ya(e,De.Full),[c,d])}return r&&(Hi[n][t]=r),r}function Xa(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(n,r){return null!=t&&r in t?t[r]:n})),e}function Gt(e,t,n="-",r,o){let i="";(e<0||o&&e<=0)&&(o?e=1-e:(e=-e,i=n));let s=String(e);for(;s.length0||a>-n)&&(a+=n),e===V.Hours)0===a&&-12===n&&(a=12);else if(e===V.FractionalSeconds)return function JO(e,t){return Gt(e,3).substring(0,t)}(a,t);const l=Pt(s,k.MinusSign);return Gt(a,t,l,r,o)}}function fe(e,t,n=Me.Format,r=!1){return function(o,i){return function tx(e,t,n,r,o,i){switch(n){case Z.Months:return function $O(e,t,n){const r=nt(e),i=Ft([r[T.MonthsFormat],r[T.MonthsStandalone]],t);return Ft(i,n)}(t,o,r)[e.getMonth()];case Z.Days:return function jO(e,t,n){const r=nt(e),i=Ft([r[T.DaysFormat],r[T.DaysStandalone]],t);return Ft(i,n)}(t,o,r)[e.getDay()];case Z.DayPeriods:const s=e.getHours(),a=e.getMinutes();if(i){const u=function GO(e){const t=nt(e);return cD(t),(t[T.ExtraData][2]||[]).map(r=>"string"==typeof r?$d(r):[$d(r[0]),$d(r[1])])}(t),c=function WO(e,t,n){const r=nt(e);cD(r);const i=Ft([r[T.ExtraData][0],r[T.ExtraData][1]],t)||[];return Ft(i,n)||[]}(t,o,r),d=u.findIndex(f=>{if(Array.isArray(f)){const[h,p]=f,m=s>=h.hours&&a>=h.minutes,v=s0?Math.floor(o/60):Math.ceil(o/60);switch(e){case Ve.Short:return(o>=0?"+":"")+Gt(s,2,i)+Gt(Math.abs(o%60),2,i);case Ve.ShortGMT:return"GMT"+(o>=0?"+":"")+Gt(s,1,i);case Ve.Long:return"GMT"+(o>=0?"+":"")+Gt(s,2,i)+":"+Gt(Math.abs(o%60),2,i);case Ve.Extended:return 0===r?"Z":(o>=0?"+":"")+Gt(s,2,i)+":"+Gt(Math.abs(o%60),2,i);default:throw new Error(`Unknown zone width "${e}"`)}}}const nx=0,Ja=4;function dD(e){return Qa(e.getFullYear(),e.getMonth(),e.getDate()+(Ja-e.getDay()))}function Bd(e,t=!1){return function(n,r){let o;if(t){const i=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,s=n.getDate();o=1+Math.floor((s+i)/7)}else{const i=dD(n),s=function rx(e){const t=Qa(e,nx,1).getDay();return Qa(e,0,1+(t<=Ja?Ja:Ja+7)-t)}(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5)}return Gt(o,e,Pt(r,k.MinusSign))}}function el(e,t=!1){return function(n,r){return Gt(dD(n).getFullYear(),e,Pt(r,k.MinusSign),t)}}const Ud={};function fD(e,t){e=e.replace(/:/g,"");const n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function hD(e){return e instanceof Date&&!isNaN(e.valueOf())}function yD(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const r=n.indexOf("="),[o,i]=-1==r?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}class wx{constructor(t,n,r,o){this.$implicit=t,this.ngForOf=n,this.index=r,this.count=o}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let wr=(()=>{class e{set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}constructor(n,r,o){this._viewContainer=n,this._template=r,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;!this._differ&&n&&(this._differ=this._differs.find(n).create(this.ngForTrackBy))}if(this._differ){const n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){const r=this._viewContainer;n.forEachOperation((o,i,s)=>{if(null==o.previousIndex)r.createEmbeddedView(this._template,new wx(o.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)r.remove(null===i?void 0:i);else if(null!==i){const a=r.get(i);r.move(a,s),DD(a,o)}});for(let o=0,i=r.length;o{DD(r.get(o.currentIndex),o)})}static ngTemplateContextGuard(n,r){return!0}}return e.\u0275fac=function(n){return new(n||e)(D(Ut),D(On),D(Ga))},e.\u0275dir=j({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),e})();function DD(e,t){e.context.$implicit=t.item}let _D=(()=>{class e{constructor(n,r){this._viewContainer=n,this._context=new Ex,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){wD("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){wD("ngIfElse",n),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(n,r){return!0}}return e.\u0275fac=function(n){return new(n||e)(D(Ut),D(On))},e.\u0275dir=j({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),e})();class Ex{constructor(){this.$implicit=null,this.ngIf=null}}function wD(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${Pe(t)}'.`)}const kx=new N("DATE_PIPE_DEFAULT_TIMEZONE"),Lx=new N("DATE_PIPE_DEFAULT_OPTIONS");let $i=(()=>{class e{constructor(n,r,o){this.locale=n,this.defaultTimezone=r,this.defaultOptions=o}transform(n,r,o,i){if(null==n||""===n||n!=n)return null;try{return KO(n,r??this.defaultOptions?.dateFormat??"mediumDate",i||this.locale,o??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(s){throw function Wt(e,t){return new w(2100,!1)}()}}}return e.\u0275fac=function(n){return new(n||e)(D(xn,16),D(kx,24),D(Lx,24))},e.\u0275pipe=st({name:"date",type:e,pure:!0,standalone:!0}),e})(),qx=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Vt({type:e}),e.\u0275inj=Nt({}),e})();function SD(e){return"server"===e}let Xx=(()=>{class e{}return e.\u0275prov=O({token:e,providedIn:"root",factory:()=>new Kx(A(Mt),window)}),e})();class Kx{constructor(t,n){this.document=t,this.window=n,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const n=function Jx(e,t){const n=e.getElementById(t)||e.getElementsByName(t)[0];if(n)return n;if("function"==typeof e.createTreeWalker&&e.body&&"function"==typeof e.body.attachShadow){const r=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT);let o=r.currentNode;for(;o;){const i=o.shadowRoot;if(i){const s=i.getElementById(t)||i.querySelector(`[name="${t}"]`);if(s)return s}o=r.nextNode()}}return null}(this.document,t);n&&(this.scrollToElement(n),n.focus())}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const n=this.window.history;n&&n.scrollRestoration&&(n.scrollRestoration=t)}}scrollToElement(t){const n=t.getBoundingClientRect(),r=n.left+this.window.pageXOffset,o=n.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(r-i[0],o-i[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=ID(this.window.history)||ID(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function ID(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}class TD{}class S1 extends OO{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class nf extends S1{static makeCurrent(){!function RO(e){kd||(kd=e)}(new nf)}onAndCancel(t,n,r){return t.addEventListener(n,r),()=>{t.removeEventListener(n,r)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,n){return(n=n||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return"window"===n?window:"document"===n?t:"body"===n?t.body:null}getBaseHref(t){const n=function I1(){return Ui=Ui||document.querySelector("base"),Ui?Ui.getAttribute("href"):null}();return null==n?null:function T1(e){ol=ol||document.createElement("a"),ol.setAttribute("href",e);const t=ol.pathname;return"/"===t.charAt(0)?t:`/${t}`}(n)}resetBaseElement(){Ui=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return yD(document.cookie,t)}}let ol,Ui=null,N1=(()=>{class e{build(){return new XMLHttpRequest}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac}),e})();const rf=new N("EventManagerPlugins");let xD=(()=>{class e{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,o){return this._findPluginFor(r).addEventListener(n,r,o)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new w(5101,!1);return this._eventNameToPlugin.set(n,r),r}}return e.\u0275fac=function(n){return new(n||e)(A(rf),A(ye))},e.\u0275prov=O({token:e,factory:e.\u0275fac}),e})();class PD{constructor(t){this._doc=t}}const sf="ng-app-id";let FD=(()=>{class e{constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,this.platformId=i,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=SD(i),this.resetHostNodes()}addStyles(n){for(const r of n)1===this.changeUsageCount(r,1)&&this.onStyleAdded(r)}removeStyles(n){for(const r of n)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){const n=this.styleNodesInDOM;n&&(n.forEach(r=>r.remove()),n.clear());for(const r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(const r of this.getAllStyles())this.addStyleToHost(n,r)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(const r of this.hostNodes)this.addStyleToHost(r,n)}onStyleRemoved(n){const r=this.styleRef;r.get(n)?.elements?.forEach(o=>o.remove()),r.delete(n)}collectServerRenderedStyles(){const n=this.doc.head?.querySelectorAll(`style[${sf}="${this.appId}"]`);if(n?.length){const r=new Map;return n.forEach(o=>{null!=o.textContent&&r.set(o.textContent,o)}),r}return null}changeUsageCount(n,r){const o=this.styleRef;if(o.has(n)){const i=o.get(n);return i.usage+=r,i.usage}return o.set(n,{usage:r,elements:[]}),r}getStyleElement(n,r){const o=this.styleNodesInDOM,i=o?.get(r);if(i?.parentNode===n)return o.delete(r),i.removeAttribute(sf),i;{const s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=r,this.platformIsServer&&s.setAttribute(sf,this.appId),s}}addStyleToHost(n,r){const o=this.getStyleElement(n,r);n.appendChild(o);const i=this.styleRef,s=i.get(r)?.elements;s?s.push(o):i.set(r,{elements:[o],usage:1})}resetHostNodes(){const n=this.hostNodes;n.clear(),n.add(this.doc.head)}}return e.\u0275fac=function(n){return new(n||e)(A(Mt),A(la),A(Jg,8),A(mr))},e.\u0275prov=O({token:e,factory:e.\u0275fac}),e})();const af={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/MathML/"},lf=/%COMP%/g,P1=new N("RemoveStylesOnCompDestory",{providedIn:"root",factory:()=>!1});function LD(e,t){return t.map(n=>n.replace(lf,e))}let VD=(()=>{class e{constructor(n,r,o,i,s,a,l,u=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestory=i,this.doc=s,this.platformId=a,this.ngZone=l,this.nonce=u,this.rendererByCompId=new Map,this.platformIsServer=SD(a),this.defaultRenderer=new uf(n,s,l,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Ct.ShadowDom&&(r={...r,encapsulation:Ct.Emulated});const o=this.getOrCreateRenderer(n,r);return o instanceof jD?o.applyToHost(n):o instanceof cf&&o.applyStyles(),o}getOrCreateRenderer(n,r){const o=this.rendererByCompId;let i=o.get(r.id);if(!i){const s=this.doc,a=this.ngZone,l=this.eventManager,u=this.sharedStylesHost,c=this.removeStylesOnCompDestory,d=this.platformIsServer;switch(r.encapsulation){case Ct.Emulated:i=new jD(l,u,r,this.appId,c,s,a,d);break;case Ct.ShadowDom:return new V1(l,u,n,r,s,a,this.nonce,d);default:i=new cf(l,u,r,c,s,a,d)}i.onDestroy=()=>o.delete(r.id),o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}}return e.\u0275fac=function(n){return new(n||e)(A(xD),A(FD),A(la),A(P1),A(Mt),A(mr),A(ye),A(Jg))},e.\u0275prov=O({token:e,factory:e.\u0275fac}),e})();class uf{constructor(t,n,r,o){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=o,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,n){return n?this.doc.createElementNS(af[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(HD(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(HD(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){t&&t.removeChild(n)}selectRootElement(t,n){let r="string"==typeof t?this.doc.querySelector(t):t;if(!r)throw new w(5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;const i=af[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){const o=af[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,o){o&(dt.DashCase|dt.Important)?t.style.setProperty(n,r,o&dt.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&dt.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t[n]=r}setValue(t,n){t.nodeValue=n}listen(t,n,r){if("string"==typeof t&&!(t=Zn().getGlobalEventTarget(this.doc,t)))throw new Error(`Unsupported event target ${t} for event ${n}`);return this.eventManager.addEventListener(t,n,this.decoratePreventDefault(r))}decoratePreventDefault(t){return n=>{if("__ngUnwrap__"===n)return t;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>t(n)):t(n))&&(n.preventDefault(),n.returnValue=!1)}}}function HD(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class V1 extends uf{constructor(t,n,r,o,i,s,a,l){super(t,i,s,l),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const u=LD(o.id,o.styles);for(const c of u){const d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=c,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(this.nodeOrShadowRoot(t),n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class cf extends uf{constructor(t,n,r,o,i,s,a,l){super(t,i,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestory=o,this.rendererUsageCount=0,this.styles=l?LD(l,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles),this.rendererUsageCount++}destroy(){this.removeStylesOnCompDestory&&(this.sharedStylesHost.removeStyles(this.styles),this.rendererUsageCount--,0===this.rendererUsageCount&&this.onDestroy?.())}}class jD extends cf{constructor(t,n,r,o,i,s,a,l){const u=o+"-"+r.id;super(t,n,r,i,s,a,l,u),this.contentAttr=function F1(e){return"_ngcontent-%COMP%".replace(lf,e)}(u),this.hostAttr=function k1(e){return"_nghost-%COMP%".replace(lf,e)}(u)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){const r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}}let H1=(()=>{class e extends PD{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o){return n.addEventListener(r,o,!1),()=>this.removeEventListener(n,r,o)}removeEventListener(n,r,o){return n.removeEventListener(r,o)}}return e.\u0275fac=function(n){return new(n||e)(A(Mt))},e.\u0275prov=O({token:e,factory:e.\u0275fac}),e})();const $D=["alt","control","meta","shift"],j1={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},$1={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let B1=(()=>{class e extends PD{constructor(n){super(n)}supports(n){return null!=e.parseEventName(n)}addEventListener(n,r,o){const i=e.parseEventName(r),s=e.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Zn().onAndCancel(n,i.domEventName,s))}static parseEventName(n){const r=n.toLowerCase().split("."),o=r.shift();if(0===r.length||"keydown"!==o&&"keyup"!==o)return null;const i=e._normalizeKey(r.pop());let s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),$D.forEach(u=>{const c=r.indexOf(u);c>-1&&(r.splice(c,1),s+=u+".")}),s+=i,0!=r.length||0===i.length)return null;const l={};return l.domEventName=o,l.fullKey=s,l}static matchEventFullKeyCode(n,r){let o=j1[n.key]||n.key,i="";return r.indexOf("code.")>-1&&(o=n.code,i="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),$D.forEach(s=>{s!==o&&(0,$1[s])(n)&&(i+=s+".")}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return"esc"===n?"escape":n}}return e.\u0275fac=function(n){return new(n||e)(A(Mt))},e.\u0275prov=O({token:e,factory:e.\u0275fac}),e})();const W1=xC(CO,"browser",[{provide:mr,useValue:"browser"},{provide:Kg,useValue:function U1(){nf.makeCurrent()},multi:!0},{provide:Mt,useFactory:function G1(){return function WS(e){Wu=e}(document),document},deps:[]}]),q1=new N(""),zD=[{provide:ja,useClass:class A1{addToWindow(t){ce.getAngularTestability=(r,o=!0)=>{const i=t.findTestabilityInTree(r,o);if(null==i)throw new w(5103,!1);return i},ce.getAllAngularTestabilities=()=>t.getAllTestabilities(),ce.getAllAngularRootElements=()=>t.getAllRootElements(),ce.frameworkStabilizers||(ce.frameworkStabilizers=[]),ce.frameworkStabilizers.push(r=>{const o=ce.getAllAngularTestabilities();let i=o.length,s=!1;const a=function(l){s=s||l,i--,0==i&&r(s)};o.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(t,n,r){return null==n?null:t.getTestability(n)??(r?Zn().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null)}},deps:[]},{provide:TC,useClass:bd,deps:[ye,Md,ja]},{provide:bd,useClass:bd,deps:[ye,Md,ja]}],GD=[{provide:rc,useValue:"root"},{provide:yr,useFactory:function z1(){return new yr},deps:[]},{provide:rf,useClass:H1,multi:!0,deps:[Mt,ye,mr]},{provide:rf,useClass:B1,multi:!0,deps:[Mt]},VD,FD,xD,{provide:am,useExisting:VD},{provide:TD,useClass:N1,deps:[]},[]];let Z1=(()=>{class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:la,useValue:n.appId}]}}}return e.\u0275fac=function(n){return new(n||e)(A(q1,12))},e.\u0275mod=Vt({type:e}),e.\u0275inj=Nt({providers:[...GD,...zD],imports:[qx,DO]}),e})(),WD=(()=>{class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}}return e.\u0275fac=function(n){return new(n||e)(A(Mt))},e.\u0275prov=O({token:e,factory:function(n){let r=null;return r=n?new n:function Q1(){return new WD(A(Mt))}(),r},providedIn:"root"}),e})();typeof window<"u"&&window;const{isArray:tP}=Array,{getPrototypeOf:nP,prototype:rP,keys:oP}=Object;function QD(e){if(1===e.length){const t=e[0];if(tP(t))return{args:t,keys:null};if(function iP(e){return e&&"object"==typeof e&&nP(e)===rP}(t)){const n=oP(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}const{isArray:sP}=Array;function XD(e){return te(t=>function aP(e,t){return sP(t)?e(...t):e(t)}(e,t))}function KD(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}let JD=(()=>{class e{constructor(n,r){this._renderer=n,this._elementRef=r,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}}return e.\u0275fac=function(n){return new(n||e)(D(Tn),D(Et))},e.\u0275dir=j({type:e}),e})(),Er=(()=>{class e extends JD{}return e.\u0275fac=function(){let t;return function(r){return(t||(t=Ge(e)))(r||e)}}(),e.\u0275dir=j({type:e,features:[se]}),e})();const fn=new N("NgValueAccessor"),uP={provide:fn,useExisting:ue(()=>ff),multi:!0};let ff=(()=>{class e extends Er{writeValue(n){this.setProperty("checked",n)}}return e.\u0275fac=function(){let t;return function(r){return(t||(t=Ge(e)))(r||e)}}(),e.\u0275dir=j({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(n,r){1&n&&P("change",function(i){return r.onChange(i.target.checked)})("blur",function(){return r.onTouched()})},features:[me([uP]),se]}),e})();const cP={provide:fn,useExisting:ue(()=>hn),multi:!0},fP=new N("CompositionEventMode");let hn=(()=>{class e extends JD{constructor(n,r,o){super(n,r),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function dP(){const e=Zn()?Zn().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(n){this.setProperty("value",n??"")}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}}return e.\u0275fac=function(n){return new(n||e)(D(Tn),D(Et),D(fP,8))},e.\u0275dir=j({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(n,r){1&n&&P("input",function(i){return r._handleInput(i.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(i){return r._compositionEnd(i.target.value)})},features:[me([cP]),se]}),e})();const Xe=new N("NgValidators"),Kn=new N("NgAsyncValidators");function u_(e){return null!=e}function c_(e){return Mi(e)?xe(e):e}function d_(e){let t={};return e.forEach(n=>{t=null!=n?{...t,...n}:t}),0===Object.keys(t).length?null:t}function f_(e,t){return t.map(n=>n(e))}function h_(e){return e.map(t=>function pP(e){return!e.validate}(t)?t:n=>t.validate(n))}function hf(e){return null!=e?function p_(e){if(!e)return null;const t=e.filter(u_);return 0==t.length?null:function(n){return d_(f_(n,t))}}(h_(e)):null}function pf(e){return null!=e?function g_(e){if(!e)return null;const t=e.filter(u_);return 0==t.length?null:function(n){return function lP(...e){const t=Rh(e),{args:n,keys:r}=QD(e),o=new be(i=>{const{length:s}=n;if(!s)return void i.complete();const a=new Array(s);let l=s,u=s;for(let c=0;c{d||(d=!0,u--),a[c]=f},()=>l--,void 0,()=>{(!l||!d)&&(u||i.next(r?KD(r,a):a),i.complete())}))}});return t?o.pipe(XD(t)):o}(f_(n,t).map(c_)).pipe(te(d_))}}(h_(e)):null}function m_(e,t){return null===e?[t]:Array.isArray(e)?[...e,t]:[e,t]}function gf(e){return e?Array.isArray(e)?e:[e]:[]}function sl(e,t){return Array.isArray(e)?e.includes(t):e===t}function C_(e,t){const n=gf(t);return gf(e).forEach(o=>{sl(n,o)||n.push(o)}),n}function D_(e,t){return gf(t).filter(n=>!sl(e,n))}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(t){this._rawValidators=t||[],this._composedValidatorFn=hf(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=pf(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,n){return!!this.control&&this.control.hasError(t,n)}getError(t,n){return this.control?this.control.getError(t,n):null}}class ot extends __{get formDirective(){return null}get path(){return null}}class Jn extends __{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class w_{constructor(t){this._cd=t}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let er=(()=>{class e extends w_{constructor(n){super(n)}}return e.\u0275fac=function(n){return new(n||e)(D(Jn,2))},e.\u0275dir=j({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,r){2&n&&Aa("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},features:[se]}),e})(),E_=(()=>{class e extends w_{constructor(n){super(n)}}return e.\u0275fac=function(n){return new(n||e)(D(ot,10))},e.\u0275dir=j({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,r){2&n&&Aa("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted)},features:[se]}),e})();const zi="VALID",ll="INVALID",_o="PENDING",Gi="DISABLED";function vf(e){return(ul(e)?e.validators:e)||null}function Cf(e,t){return(ul(t)?t.asyncValidators:e)||null}function ul(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class I_{constructor(t,n){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(t),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===zi}get invalid(){return this.status===ll}get pending(){return this.status==_o}get disabled(){return this.status===Gi}get enabled(){return this.status!==Gi}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(C_(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(C_(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(D_(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(D_(t,this._rawAsyncValidators))}hasValidator(t){return sl(this._rawValidators,t)}hasAsyncValidator(t){return sl(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(n=>{n.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(n=>{n.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=_o,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const n=this._parentMarkedDirty(t.onlySelf);this.status=Gi,this.errors=null,this._forEachChild(r=>{r.disable({...t,onlySelf:!0})}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...t,skipPristineCheck:n}),this._onDisabledChange.forEach(r=>r(!0))}enable(t={}){const n=this._parentMarkedDirty(t.onlySelf);this.status=zi,this._forEachChild(r=>{r.enable({...t,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors({...t,skipPristineCheck:n}),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===zi||this.status===_o)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Gi:zi}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=_o,this._hasOwnPendingAsyncValidator=!0;const n=c_(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(r=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(r,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,n={}){this.errors=t,this._updateControlsErrors(!1!==n.emitEvent)}get(t){let n=t;return null==n||(Array.isArray(n)||(n=n.split(".")),0===n.length)?null:n.reduce((r,o)=>r&&r._find(o),this)}getError(t,n){const r=n?this.get(n):this;return r&&r.errors?r.errors[t]:null}hasError(t,n){return!!this.getError(t,n)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new Ee,this.statusChanges=new Ee}_calculateStatus(){return this._allControlsDisabled()?Gi:this.errors?ll:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(_o)?_o:this._anyControlsHaveStatus(ll)?ll:zi}_anyControlsHaveStatus(t){return this._anyControls(n=>n.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){ul(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=function vP(e){return Array.isArray(e)?hf(e):e||null}(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=function CP(e){return Array.isArray(e)?pf(e):e||null}(this._rawAsyncValidators)}}class Df extends I_{constructor(t,n,r){super(vf(n),Cf(r,n)),this.controls=t,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,n){return this.controls[t]?this.controls[t]:(this.controls[t]=n,n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange),n)}addControl(t,n,r={}){this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(t,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}setControl(t,n,r={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],n&&this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,n={}){(function S_(e,t,n){e._forEachChild((r,o)=>{if(void 0===n[o])throw new w(1002,"")})})(this,0,t),Object.keys(t).forEach(r=>{(function M_(e,t,n){const r=e.controls;if(!(t?Object.keys(r):r).length)throw new w(1e3,"");if(!r[n])throw new w(1001,"")})(this,!0,r),this.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(t,n={}){null!=t&&(Object.keys(t).forEach(r=>{const o=this.controls[r];o&&o.patchValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(t={},n={}){this._forEachChild((r,o)=>{r.reset(t[o],{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n),this._updateTouched(n),this.updateValueAndValidity(n)}getRawValue(){return this._reduceChildren({},(t,n,r)=>(t[r]=n.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(n,r)=>!!r._syncPendingControls()||n);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(n=>{const r=this.controls[n];r&&t(r,n)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const[n,r]of Object.entries(this.controls))if(this.contains(n)&&t(r))return!0;return!1}_reduceValue(){return this._reduceChildren({},(n,r,o)=>((r.enabled||this.disabled)&&(n[o]=r.value),n))}_reduceChildren(t,n){let r=t;return this._forEachChild((o,i)=>{r=n(r,o,i)}),r}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}}const wo=new N("CallSetDisabledState",{providedIn:"root",factory:()=>cl}),cl="always";function Wi(e,t,n=cl){_f(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||"always"===n)&&t.valueAccessor.setDisabledState?.(e.disabled),function wP(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&T_(e,t)})}(e,t),function bP(e,t){const n=(r,o)=>{t.valueAccessor.writeValue(r),o&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}(e,t),function EP(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&T_(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),function _P(e,t){if(t.valueAccessor.setDisabledState){const n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}(e,t)}function hl(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function _f(e,t){const n=function y_(e){return e._rawValidators}(e);null!==t.validator?e.setValidators(m_(n,t.validator)):"function"==typeof n&&e.setValidators([n]);const r=function v_(e){return e._rawAsyncValidators}(e);null!==t.asyncValidator?e.setAsyncValidators(m_(r,t.asyncValidator)):"function"==typeof r&&e.setAsyncValidators([r]);const o=()=>e.updateValueAndValidity();hl(t._rawValidators,o),hl(t._rawAsyncValidators,o)}function T_(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}const AP={provide:ot,useExisting:ue(()=>gl)},qi=(()=>Promise.resolve())();let gl=(()=>{class e extends ot{constructor(n,r,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._directives=new Set,this.ngSubmit=new Ee,this.form=new Df({},hf(n),pf(r))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(n){qi.then(()=>{const r=this._findContainer(n.path);n.control=r.registerControl(n.name,n.control),Wi(n.control,n,this.callSetDisabledState),n.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(n)})}getControl(n){return this.form.get(n.path)}removeControl(n){qi.then(()=>{const r=this._findContainer(n.path);r&&r.removeControl(n.name),this._directives.delete(n)})}addFormGroup(n){qi.then(()=>{const r=this._findContainer(n.path),o=new Df({});(function A_(e,t){_f(e,t)})(o,n),r.registerControl(n.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(n){qi.then(()=>{const r=this._findContainer(n.path);r&&r.removeControl(n.name)})}getFormGroup(n){return this.form.get(n.path)}updateModel(n,r){qi.then(()=>{this.form.get(n.path).setValue(r)})}setValue(n){this.control.setValue(n)}onSubmit(n){return this.submitted=!0,function N_(e,t){e._syncPendingControls(),t.forEach(n=>{const r=n.control;"submit"===r.updateOn&&r._pendingChange&&(n.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}(this.form,this._directives),this.ngSubmit.emit(n),"dialog"===n?.target?.method}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(n){return n.pop(),n.length?this.form.get(n):this.form}}return e.\u0275fac=function(n){return new(n||e)(D(Xe,10),D(Kn,10),D(wo,8))},e.\u0275dir=j({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(n,r){1&n&&P("submit",function(i){return r.onSubmit(i)})("reset",function(){return r.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[me([AP]),se]}),e})();function R_(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function O_(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}const x_=class extends I_{constructor(t=null,n,r){super(vf(n),Cf(r,n)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),ul(n)&&(n.nonNullable||n.initialValueIsDefault)&&(this.defaultValue=O_(t)?t.value:t)}setValue(t,n={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(r=>r(this.value,!1!==n.emitViewToModelChange)),this.updateValueAndValidity(n)}patchValue(t,n={}){this.setValue(t,n)}reset(t=this.defaultValue,n={}){this._applyFormState(t),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){R_(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){R_(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){O_(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}},OP={provide:Jn,useExisting:ue(()=>kn)},k_=(()=>Promise.resolve())();let kn=(()=>{class e extends Jn{constructor(n,r,o,i,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this.control=new x_,this._registered=!1,this.name="",this.update=new Ee,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=function bf(e,t){if(!t)return null;let n,r,o;return Array.isArray(t),t.forEach(i=>{i.constructor===hn?n=i:function IP(e){return Object.getPrototypeOf(e.constructor)===Er}(i)?r=i:o=i}),o||r||n||null}(0,i)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){const r=n.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),function Ef(e,t){if(!e.hasOwnProperty("model"))return!1;const n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}(n,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Wi(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()}_updateValue(n){k_.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){const r=n.isDisabled.currentValue,o=0!==r&&Do(r);k_.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?function dl(e,t){return[...t.path,e]}(n,this._parent):[n]}}return e.\u0275fac=function(n){return new(n||e)(D(ot,9),D(Xe,10),D(Kn,10),D(fn,10),D(Ba,8),D(wo,8))},e.\u0275dir=j({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[me([OP]),se,Rt]}),e})(),L_=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=j({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),e})(),H_=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Vt({type:e}),e.\u0275inj=Nt({}),e})(),nF=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Vt({type:e}),e.\u0275inj=Nt({imports:[H_]}),e})(),oF=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:wo,useValue:n.callSetDisabledState??cl}]}}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Vt({type:e}),e.\u0275inj=Nt({imports:[nF]}),e})();function F(...e){return xe(e,$o(e))}function Eo(e,t){return le(t)?Be(e,t,1):Be(e,1)}function Ln(e,t){return $e((n,r)=>{let o=0;n.subscribe(He(r,i=>e.call(t,i,o++)&&r.next(i)))})}function pn(e,t){return $e((n,r)=>{let o=null,i=0,s=!1;const a=()=>s&&!o&&r.complete();n.subscribe(He(r,l=>{o?.unsubscribe();let u=0;const c=i++;Tt(e(l,c)).subscribe(o=He(r,d=>r.next(t?t(l,d,c,u++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}class ml{}class Rf{}class Ke{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(n=>{const r=n.indexOf(":");if(r>0){const o=n.slice(0,r),i=o.toLowerCase(),s=n.slice(r+1).trim();this.maybeSetNormalizedName(o,i),this.headers.has(i)?this.headers.get(i).push(s):this.headers.set(i,[s])}})}:()=>{this.headers=new Map,Object.entries(t).forEach(([n,r])=>{let o;if(o="string"==typeof r?[r]:"number"==typeof r?[r.toString()]:r.map(i=>i.toString()),o.length>0){const i=n.toLowerCase();this.headers.set(i,o),this.maybeSetNormalizedName(n,i)}})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}init(){this.lazyInit&&(this.lazyInit instanceof Ke?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(n=>{this.headers.set(n,t.headers.get(n)),this.normalizedNames.set(n,t.normalizedNames.get(n))})}clone(t){const n=new Ke;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof Ke?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){const n=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(t.name,n);const o=("a"===t.op?this.headers.get(n):void 0)||[];o.push(...r),this.headers.set(n,o);break;case"d":const i=t.value;if(i){let s=this.headers.get(n);if(!s)return;s=s.filter(a=>-1===i.indexOf(a)),0===s.length?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}else this.headers.delete(n),this.normalizedNames.delete(n)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}}class iF{encodeKey(t){return rw(t)}encodeValue(t){return rw(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const aF=/%(\d[a-f0-9])/gi,lF={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function rw(e){return encodeURIComponent(e).replace(aF,(t,n)=>lF[n]??t)}function yl(e){return`${e}`}class tr{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new iF,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function sF(e,t){const n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(o=>{const i=o.indexOf("="),[s,a]=-1==i?[t.decodeKey(o),""]:[t.decodeKey(o.slice(0,i)),t.decodeValue(o.slice(i+1))],l=n.get(s)||[];l.push(a),n.set(s,l)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{const r=t.fromObject[n],o=Array.isArray(r)?r.map(yl):[yl(r)];this.map.set(n,o)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const n=this.map.get(t);return n?n[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,n){return this.clone({param:t,value:n,op:"a"})}appendAll(t){const n=[];return Object.keys(t).forEach(r=>{const o=t[r];Array.isArray(o)?o.forEach(i=>{n.push({param:r,value:i,op:"a"})}):n.push({param:r,value:o,op:"a"})}),this.clone(n)}set(t,n){return this.clone({param:t,value:n,op:"s"})}delete(t,n){return this.clone({param:t,value:n,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const n=this.encoder.encodeKey(t);return this.map.get(t).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const n=new tr({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const n=("a"===t.op?this.map.get(t.param):void 0)||[];n.push(yl(t.value)),this.map.set(t.param,n);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let r=this.map.get(t.param)||[];const o=r.indexOf(yl(t.value));-1!==o&&r.splice(o,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class uF{constructor(){this.map=new Map}set(t,n){return this.map.set(t,n),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}}function ow(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function iw(e){return typeof Blob<"u"&&e instanceof Blob}function sw(e){return typeof FormData<"u"&&e instanceof FormData}class Zi{constructor(t,n,r,o){let i;if(this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function cF(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||o?(this.body=void 0!==r?r:null,i=o):i=r,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params)),this.headers||(this.headers=new Ke),this.context||(this.context=new uF),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=n;else{const a=n.indexOf("?");this.urlWithParams=n+(-1===a?"?":ad.set(f,t.setHeaders[f]),l)),t.setParams&&(u=Object.keys(t.setParams).reduce((d,f)=>d.set(f,t.setParams[f]),u)),new Zi(n,r,i,{params:u,headers:l,context:c,reportProgress:a,responseType:o,withCredentials:s})}}var Oe=(()=>((Oe=Oe||{})[Oe.Sent=0]="Sent",Oe[Oe.UploadProgress=1]="UploadProgress",Oe[Oe.ResponseHeader=2]="ResponseHeader",Oe[Oe.DownloadProgress=3]="DownloadProgress",Oe[Oe.Response=4]="Response",Oe[Oe.User=5]="User",Oe))();class Of{constructor(t,n=200,r="OK"){this.headers=t.headers||new Ke,this.status=void 0!==t.status?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class xf extends Of{constructor(t={}){super(t),this.type=Oe.ResponseHeader}clone(t={}){return new xf({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class bo extends Of{constructor(t={}){super(t),this.type=Oe.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new bo({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class aw extends Of{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function Pf(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}let Mr=(()=>{class e{constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof Zi)i=n;else{let l,u;l=o.headers instanceof Ke?o.headers:new Ke(o.headers),o.params&&(u=o.params instanceof tr?o.params:new tr({fromObject:o.params})),i=new Zi(n,r,void 0!==o.body?o.body:null,{headers:l,context:o.context,params:u,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials})}const s=F(i).pipe(Eo(l=>this.handler.handle(l)));if(n instanceof Zi||"events"===o.observe)return s;const a=s.pipe(Ln(l=>l instanceof bo));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(te(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(te(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(te(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(te(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:(new tr).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,o={}){return this.request("PATCH",n,Pf(o,r))}post(n,r,o={}){return this.request("POST",n,Pf(o,r))}put(n,r,o={}){return this.request("PUT",n,Pf(o,r))}}return e.\u0275fac=function(n){return new(n||e)(A(ml))},e.\u0275prov=O({token:e,factory:e.\u0275fac}),e})();function lw(e,t){return t(e)}function fF(e,t){return(n,r)=>t.intercept(n,{handle:o=>e(o,r)})}const uw=new N(""),Yi=new N(""),cw=new N("");function pF(){let e=null;return(t,n)=>(null===e&&(e=(S(uw,{optional:!0})??[]).reduceRight(fF,lw)),e(t,n))}let dw=(()=>{class e extends ml{constructor(n,r){super(),this.backend=n,this.injector=r,this.chain=null}handle(n){if(null===this.chain){const r=Array.from(new Set([...this.injector.get(Yi),...this.injector.get(cw,[])]));this.chain=r.reduceRight((o,i)=>function hF(e,t,n){return(r,o)=>n.runInContext(()=>t(r,i=>e(i,o)))}(o,i,this.injector),lw)}return this.chain(n,r=>this.backend.handle(r))}}return e.\u0275fac=function(n){return new(n||e)(A(Rf),A(on))},e.\u0275prov=O({token:e,factory:e.\u0275fac}),e})();const vF=/^\)\]\}',?\n/;let hw=(()=>{class e{constructor(n){this.xhrFactory=n}handle(n){if("JSONP"===n.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");const r=this.xhrFactory;return(r.\u0275loadImpl?xe(r.\u0275loadImpl()):F(null)).pipe(pn(()=>new be(i=>{const s=r.build();if(s.open(n.method,n.urlWithParams),n.withCredentials&&(s.withCredentials=!0),n.headers.forEach((g,M)=>s.setRequestHeader(g,M.join(","))),n.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){const g=n.detectContentTypeHeader();null!==g&&s.setRequestHeader("Content-Type",g)}if(n.responseType){const g=n.responseType.toLowerCase();s.responseType="json"!==g?g:"text"}const a=n.serializeBody();let l=null;const u=()=>{if(null!==l)return l;const g=s.statusText||"OK",M=new Ke(s.getAllResponseHeaders()),x=function CF(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(s)||n.url;return l=new xf({headers:M,status:s.status,statusText:g,url:x}),l},c=()=>{let{headers:g,status:M,statusText:x,url:Y}=u(),he=null;204!==M&&(he=typeof s.response>"u"?s.responseText:s.response),0===M&&(M=he?200:0);let Lo=M>=200&&M<300;if("json"===n.responseType&&"string"==typeof he){const EV=he;he=he.replace(vF,"");try{he=""!==he?JSON.parse(he):null}catch(bV){he=EV,Lo&&(Lo=!1,he={error:bV,text:he})}}Lo?(i.next(new bo({body:he,headers:g,status:M,statusText:x,url:Y||void 0})),i.complete()):i.error(new aw({error:he,headers:g,status:M,statusText:x,url:Y||void 0}))},d=g=>{const{url:M}=u(),x=new aw({error:g,status:s.status||0,statusText:s.statusText||"Unknown Error",url:M||void 0});i.error(x)};let f=!1;const h=g=>{f||(i.next(u()),f=!0);let M={type:Oe.DownloadProgress,loaded:g.loaded};g.lengthComputable&&(M.total=g.total),"text"===n.responseType&&s.responseText&&(M.partialText=s.responseText),i.next(M)},p=g=>{let M={type:Oe.UploadProgress,loaded:g.loaded};g.lengthComputable&&(M.total=g.total),i.next(M)};let m;s.addEventListener("load",c),s.addEventListener("error",d),s.addEventListener("timeout",d),s.addEventListener("abort",d),n.reportProgress&&(s.addEventListener("progress",h),null!==a&&s.upload&&s.upload.addEventListener("progress",p));const v=()=>{m??=function _F(){const e=setTimeout(()=>{},DF);return()=>clearTimeout(e)}()},E=()=>{m?.()};return s.addEventListener("loadstart",v),s.addEventListener("loadend",E),s.send(a),i.next({type:Oe.Sent}),()=>{s.removeEventListener("loadstart",v),s.removeEventListener("loadend",E),s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",c),s.removeEventListener("timeout",d),m?.(),n.reportProgress&&(s.removeEventListener("progress",h),null!==a&&s.upload&&s.upload.removeEventListener("progress",p)),s.readyState!==s.DONE&&s.abort()}})))}}return e.\u0275fac=function(n){return new(n||e)(A(TD))},e.\u0275prov=O({token:e,factory:e.\u0275fac}),e})();const DF=2147483647,Ff=new N("XSRF_ENABLED"),pw=new N("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),gw=new N("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class mw{}let bF=(()=>{class e{constructor(n,r,o){this.doc=n,this.platform=r,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=yD(n,this.cookieName),this.lastCookieString=n),this.lastToken}}return e.\u0275fac=function(n){return new(n||e)(A(Mt),A(mr),A(pw))},e.\u0275prov=O({token:e,factory:e.\u0275fac}),e})();function MF(e,t){const n=e.url.toLowerCase();if(!S(Ff)||"GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t(e);const r=S(mw).getToken(),o=S(gw);return null!=r&&!e.headers.has(o)&&(e=e.clone({headers:e.headers.set(o,r)})),t(e)}var Ie=(()=>((Ie=Ie||{})[Ie.Interceptors=0]="Interceptors",Ie[Ie.LegacyInterceptors=1]="LegacyInterceptors",Ie[Ie.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",Ie[Ie.NoXsrfProtection=3]="NoXsrfProtection",Ie[Ie.JsonpSupport=4]="JsonpSupport",Ie[Ie.RequestsMadeViaParent=5]="RequestsMadeViaParent",Ie))();function Mo(e,t){return{\u0275kind:e,\u0275providers:t}}function SF(...e){const t=[Mr,hw,dw,{provide:ml,useExisting:dw},{provide:Rf,useExisting:hw},{provide:Yi,useValue:MF,multi:!0},{provide:Ff,useValue:!0},{provide:mw,useClass:bF}];for(const n of e)t.push(...n.\u0275providers);return function Ju(e){return{\u0275providers:e}}(t)}const yw=new N("LEGACY_INTERCEPTOR_FN");let TF=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Vt({type:e}),e.\u0275inj=Nt({providers:[SF(Mo(Ie.LegacyInterceptors,[{provide:yw,useFactory:pF},{provide:Yi,useExisting:yw,multi:!0}]))]}),e})();function J(e,t,n){const r=le(e)||t||n?{next:e,error:t,complete:n}:e;return r?$e((o,i)=>{var s;null===(s=r.subscribe)||void 0===s||s.call(r);let a=!0;o.subscribe(He(i,l=>{var u;null===(u=r.next)||void 0===u||u.call(r,l),i.next(l)},()=>{var l;a=!1,null===(l=r.complete)||void 0===l||l.call(r),i.complete()},l=>{var u;a=!1,null===(u=r.error)||void 0===u||u.call(r,l),i.error(l)},()=>{var l,u;a&&(null===(l=r.unsubscribe)||void 0===l||l.call(r)),null===(u=r.finalize)||void 0===u||u.call(r)}))}):sr}function ge(e){return $e((t,n)=>{let i,r=null,o=!1;r=t.subscribe(He(n,void 0,void 0,s=>{i=Tt(e(s,ge(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}const Sr_restServerUrl="https://tds.truyen.network";let So=(()=>{class e{constructor(){this.messages=[]}add(n){this.messages.push((new Date).toLocaleTimeString()+") "+n)}clear(){this.messages=[]}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();class gn{constructor(t,n){this.http=t,this.appMessageService=n,this.httpOptions={headers:new Ke({"Content-Type":"application/json",Accept:"application/json"})}}handleError(t="operation",n){return r=>(console.error(r),this.log(`Error @ ${t}: ${r.status} ${r.statusText}`),F(n))}log(t){this.appMessageService.add(`ChatMessagesService: ${t}`)}getChatMessages(){return this.http.get(gn.REST_URL,this.httpOptions).pipe(J(t=>this.log(`fetched ${t.length} messages`)),ge(this.handleError("getChatMessages",[])))}addChatMessage(t,n){return this.http.post(gn.REST_URL,{author:t,text:n},this.httpOptions).pipe(J(o=>this.log(`added message w/ id=${o.id}`)),ge(this.handleError("addChatMessage")))}}gn.REST_URL=Sr_restServerUrl+"/api/chat",gn.\u0275fac=function(t){return new(t||gn)(A(Mr),A(So))},gn.\u0275prov=O({token:gn,factory:gn.\u0275fac,providedIn:"root"});class qt extends Cn{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){const{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}}function kf(...e){const t=$o(e),n=Rh(e),{args:r,keys:o}=QD(e);if(0===r.length)return xe([],t);const i=new be(function FF(e,t,n=sr){return r=>{vw(t,()=>{const{length:o}=e,i=new Array(o);let s=o,a=o;for(let l=0;l{const u=xe(e[l],t);let c=!1;u.subscribe(He(r,d=>{i[l]=d,c||(c=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}(r,t,o?s=>KD(o,s):sr));return n?i.pipe(XD(n)):i}function vw(e,t,n){e?Dn(n,e,t):t()}const vl=Vo(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function Lf(...e){return function kF(){return Rr(1)}()(xe(e,$o(e)))}function Cw(e){return new be(t=>{Tt(e()).subscribe(t)})}function Xi(e,t){const n=le(e)?e:()=>e,r=o=>o.error(n());return new be(t?o=>t.schedule(r,0,o):r)}function Vf(){return $e((e,t)=>{let n=null;e._refCount++;const r=He(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount)return void(n=null);const o=e._connection,i=n;n=null,o&&(!i||o===i)&&o.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}class Dw extends be{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,yh(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new It;const n=this.getSubject();t.add(this.source.subscribe(He(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=It.EMPTY)}return t}refCount(){return Vf()(this)}}function Io(e){return e<=0?()=>Qt:$e((t,n)=>{let r=0;t.subscribe(He(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function Cl(e){return $e((t,n)=>{let r=!1;t.subscribe(He(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function _w(e=VF){return $e((t,n)=>{let r=!1;t.subscribe(He(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function VF(){return new vl}function Ir(e,t){const n=arguments.length>=2;return r=>r.pipe(e?Ln((o,i)=>e(o,i,r)):sr,Io(1),n?Cl(t):_w(()=>new vl))}function Hf(e){return e<=0?()=>Qt:$e((t,n)=>{let r=[];t.subscribe(He(n,o=>{r.push(o),e{for(const o of r)n.next(o);n.complete()},void 0,()=>{r=null}))})}function jf(e){return $e((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}const q="primary",Ki=Symbol("RouteTitle");class UF{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const n=this.params[t];return Array.isArray(n)?n[0]:n}return null}getAll(t){if(this.has(t)){const n=this.params[t];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}}function To(e){return new UF(e)}function zF(e,t,n){const r=n.path.split("/");if(r.length>e.length||"full"===n.pathMatch&&(t.hasChildren()||r.lengthr[i]===o)}return e===t}function Ew(e){return e.length>0?e[e.length-1]:null}function nr(e){return function PF(e){return!!e&&(e instanceof be||le(e.lift)&&le(e.subscribe))}(e)?e:Mi(e)?xe(Promise.resolve(e)):F(e)}const WF={exact:function Sw(e,t,n){if(!Tr(e.segments,t.segments)||!Dl(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(const r in t.children)if(!e.children[r]||!Sw(e.children[r],t.children[r],n))return!1;return!0},subset:Iw},bw={exact:function qF(e,t){return mn(e,t)},subset:function ZF(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>ww(e[n],t[n]))},ignored:()=>!0};function Mw(e,t,n){return WF[n.paths](e.root,t.root,n.matrixParams)&&bw[n.queryParams](e.queryParams,t.queryParams)&&!("exact"===n.fragment&&e.fragment!==t.fragment)}function Iw(e,t,n){return Tw(e,t,t.segments,n)}function Tw(e,t,n,r){if(e.segments.length>n.length){const o=e.segments.slice(0,n.length);return!(!Tr(o,n)||t.hasChildren()||!Dl(o,n,r))}if(e.segments.length===n.length){if(!Tr(e.segments,n)||!Dl(e.segments,n,r))return!1;for(const o in t.children)if(!e.children[o]||!Iw(e.children[o],t.children[o],r))return!1;return!0}{const o=n.slice(0,e.segments.length),i=n.slice(e.segments.length);return!!(Tr(e.segments,o)&&Dl(e.segments,o,r)&&e.children[q])&&Tw(e.children[q],t,i,r)}}function Dl(e,t,n){return t.every((r,o)=>bw[n](e[o].parameters,r.parameters))}class Ao{constructor(t=new ae([],{}),n={},r=null){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=To(this.queryParams)),this._queryParamMap}toString(){return XF.serialize(this)}}class ae{constructor(t,n){this.segments=t,this.children=n,this.parent=null,Object.values(n).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return _l(this)}}class Ji{constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){return this._parameterMap||(this._parameterMap=To(this.parameters)),this._parameterMap}toString(){return Rw(this)}}function Tr(e,t){return e.length===t.length&&e.every((n,r)=>n.path===t[r].path)}let es=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:function(){return new $f},providedIn:"root"}),e})();class $f{parse(t){const n=new lk(t);return new Ao(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){const n=`/${ts(t.root,!0)}`,r=function ek(e){const t=Object.keys(e).map(n=>{const r=e[n];return Array.isArray(r)?r.map(o=>`${wl(n)}=${wl(o)}`).join("&"):`${wl(n)}=${wl(r)}`}).filter(n=>!!n);return t.length?`?${t.join("&")}`:""}(t.queryParams);return`${n}${r}${"string"==typeof t.fragment?`#${function KF(e){return encodeURI(e)}(t.fragment)}`:""}`}}const XF=new $f;function _l(e){return e.segments.map(t=>Rw(t)).join("/")}function ts(e,t){if(!e.hasChildren())return _l(e);if(t){const n=e.children[q]?ts(e.children[q],!1):"",r=[];return Object.entries(e.children).forEach(([o,i])=>{o!==q&&r.push(`${o}:${ts(i,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}{const n=function QF(e,t){let n=[];return Object.entries(e.children).forEach(([r,o])=>{r===q&&(n=n.concat(t(o,r)))}),Object.entries(e.children).forEach(([r,o])=>{r!==q&&(n=n.concat(t(o,r)))}),n}(e,(r,o)=>o===q?[ts(e.children[q],!1)]:[`${o}:${ts(r,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children[q]?`${_l(e)}/${n[0]}`:`${_l(e)}/(${n.join("//")})`}}function Aw(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function wl(e){return Aw(e).replace(/%3B/gi,";")}function Bf(e){return Aw(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function El(e){return decodeURIComponent(e)}function Nw(e){return El(e.replace(/\+/g,"%20"))}function Rw(e){return`${Bf(e.path)}${function JF(e){return Object.keys(e).map(t=>`;${Bf(t)}=${Bf(e[t])}`).join("")}(e.parameters)}`}const tk=/^[^\/()?;#]+/;function Uf(e){const t=e.match(tk);return t?t[0]:""}const nk=/^[^\/()?;=#]+/,ok=/^[^=?&#]+/,sk=/^[^&#]+/;class lk{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ae([],{}):new ae([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(t.length>0||Object.keys(n).length>0)&&(r[q]=new ae(t,n)),r}parseSegment(){const t=Uf(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new w(4009,!1);return this.capture(t),new Ji(El(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const n=function rk(e){const t=e.match(nk);return t?t[0]:""}(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const o=Uf(this.remaining);o&&(r=o,this.capture(r))}t[El(n)]=El(r)}parseQueryParam(t){const n=function ik(e){const t=e.match(ok);return t?t[0]:""}(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const s=function ak(e){const t=e.match(sk);return t?t[0]:""}(this.remaining);s&&(r=s,this.capture(r))}const o=Nw(n),i=Nw(r);if(t.hasOwnProperty(o)){let s=t[o];Array.isArray(s)||(s=[s],t[o]=s),s.push(i)}else t[o]=i}parseParens(t){const n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const r=Uf(this.remaining),o=this.remaining[r.length];if("/"!==o&&")"!==o&&";"!==o)throw new w(4010,!1);let i;r.indexOf(":")>-1?(i=r.slice(0,r.indexOf(":")),this.capture(i),this.capture(":")):t&&(i=q);const s=this.parseChildren();n[i]=1===Object.keys(s).length?s[q]:new ae([],s),this.consumeOptional("//")}return n}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new w(4011,!1)}}function Ow(e){return e.segments.length>0?new ae([],{[q]:e}):e}function xw(e){const t={};for(const r of Object.keys(e.children)){const i=xw(e.children[r]);if(r===q&&0===i.segments.length&&i.hasChildren())for(const[s,a]of Object.entries(i.children))t[s]=a;else(i.segments.length>0||i.hasChildren())&&(t[r]=i)}return function uk(e){if(1===e.numberOfChildren&&e.children[q]){const t=e.children[q];return new ae(e.segments.concat(t.segments),t.children)}return e}(new ae(e.segments,t))}function Ar(e){return e instanceof Ao}function Pw(e){let t;const o=Ow(function n(i){const s={};for(const l of i.children){const u=n(l);s[l.outlet]=u}const a=new ae(i.url,s);return i===e&&(t=a),a}(e.root));return t??o}function Fw(e,t,n,r){let o=e;for(;o.parent;)o=o.parent;if(0===t.length)return zf(o,o,o,n,r);const i=function dk(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new Lw(!0,0,e);let t=0,n=!1;const r=e.reduce((o,i,s)=>{if("object"==typeof i&&null!=i){if(i.outlets){const a={};return Object.entries(i.outlets).forEach(([l,u])=>{a[l]="string"==typeof u?u.split("/"):u}),[...o,{outlets:a}]}if(i.segmentPath)return[...o,i.segmentPath]}return"string"!=typeof i?[...o,i]:0===s?(i.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?n=!0:".."===a?t++:""!=a&&o.push(a))}),o):[...o,i]},[]);return new Lw(n,t,r)}(t);if(i.toRoot())return zf(o,o,new ae([],{}),n,r);const s=function fk(e,t,n){if(e.isAbsolute)return new Ml(t,!0,0);if(!n)return new Ml(t,!1,NaN);if(null===n.parent)return new Ml(n,!0,0);const r=bl(e.commands[0])?0:1;return function hk(e,t,n){let r=e,o=t,i=n;for(;i>o;){if(i-=o,r=r.parent,!r)throw new w(4005,!1);o=r.segments.length}return new Ml(r,!1,o-i)}(n,n.segments.length-1+r,e.numberOfDoubleDots)}(i,o,e),a=s.processChildren?rs(s.segmentGroup,s.index,i.commands):Vw(s.segmentGroup,s.index,i.commands);return zf(o,s.segmentGroup,a,n,r)}function bl(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function ns(e){return"object"==typeof e&&null!=e&&e.outlets}function zf(e,t,n,r,o){let s,i={};r&&Object.entries(r).forEach(([l,u])=>{i[l]=Array.isArray(u)?u.map(c=>`${c}`):`${u}`}),s=e===t?n:kw(e,t,n);const a=Ow(xw(s));return new Ao(a,i,o)}function kw(e,t,n){const r={};return Object.entries(e.children).forEach(([o,i])=>{r[o]=i===t?n:kw(i,t,n)}),new ae(e.segments,r)}class Lw{constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&bl(r[0]))throw new w(4003,!1);const o=r.find(ns);if(o&&o!==Ew(r))throw new w(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Ml{constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}}function Vw(e,t,n){if(e||(e=new ae([],{})),0===e.segments.length&&e.hasChildren())return rs(e,t,n);const r=function gk(e,t,n){let r=0,o=t;const i={match:!1,pathIndex:0,commandIndex:0};for(;o=n.length)return i;const s=e.segments[o],a=n[r];if(ns(a))break;const l=`${a}`,u=r0&&void 0===l)break;if(l&&u&&"object"==typeof u&&void 0===u.outlets){if(!jw(l,u,s))return i;r+=2}else{if(!jw(l,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}(e,t,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndex{"string"==typeof s&&(s=[s]),null!==s&&(o[i]=Vw(e.children[i],t,s))}),Object.entries(e.children).forEach(([i,s])=>{void 0===r[i]&&(o[i]=s)}),new ae(e.segments,o)}}function Gf(e,t,n){const r=e.segments.slice(0,t);let o=0;for(;o{"string"==typeof r&&(r=[r]),null!==r&&(t[n]=Gf(new ae([],{}),0,r))}),t}function Hw(e){const t={};return Object.entries(e).forEach(([n,r])=>t[n]=`${r}`),t}function jw(e,t,n){return e==n.path&&mn(t,n.parameters)}const os="imperative";class yn{constructor(t,n){this.id=t,this.url=n}}class Wf extends yn{constructor(t,n,r="imperative",o=null){super(t,n),this.type=0,this.navigationTrigger=r,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Nr extends yn{constructor(t,n,r){super(t,n),this.urlAfterRedirects=r,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Sl extends yn{constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class is extends yn{constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o,this.type=16}}class qf extends yn{constructor(t,n,r,o){super(t,n),this.error=r,this.target=o,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class yk extends yn{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class vk extends yn{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ck extends yn{constructor(t,n,r,o,i){super(t,n),this.urlAfterRedirects=r,this.state=o,this.shouldActivate=i,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Dk extends yn{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class _k extends yn{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class wk{constructor(t){this.route=t,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Ek{constructor(t){this.route=t,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class bk{constructor(t){this.snapshot=t,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Mk{constructor(t){this.snapshot=t,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Sk{constructor(t){this.snapshot=t,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ik{constructor(t){this.snapshot=t,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class $w{constructor(t,n,r){this.routerEvent=t,this.position=n,this.anchor=r,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Tk{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new ss,this.attachRef=null}}let ss=(()=>{class e{constructor(){this.contexts=new Map}onChildOutletCreated(n,r){const o=this.getOrCreateContext(n);o.outlet=r,this.contexts.set(n,o)}onChildOutletDestroyed(n){const r=this.getContext(n);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){const n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let r=this.getContext(n);return r||(r=new Tk,this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();class Bw{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const n=this.pathFromRoot(t);return n.length>1?n[n.length-2]:null}children(t){const n=Zf(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){const n=Zf(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){const n=Yf(t,this._root);return n.length<2?[]:n[n.length-2].children.map(o=>o.value).filter(o=>o!==t)}pathFromRoot(t){return Yf(t,this._root).map(n=>n.value)}}function Zf(e,t){if(e===t.value)return t;for(const n of t.children){const r=Zf(e,n);if(r)return r}return null}function Yf(e,t){if(e===t.value)return[t];for(const n of t.children){const r=Yf(e,n);if(r.length)return r.unshift(t),r}return[]}class Vn{constructor(t,n){this.value=t,this.children=n}toString(){return`TreeNode(${this.value})`}}function No(e){const t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}class Uw extends Bw{constructor(t,n){super(t),this.snapshot=n,Qf(this,t)}toString(){return this.snapshot.toString()}}function zw(e,t){const n=function Ak(e,t){const s=new Il([],{},{},"",{},q,t,null,{});return new Ww("",new Vn(s,[]))}(0,t),r=new qt([new Ji("",{})]),o=new qt({}),i=new qt({}),s=new qt({}),a=new qt(""),l=new rr(r,o,s,a,i,q,t,n.root);return l.snapshot=n.root,new Uw(new Vn(l,[]),n)}class rr{constructor(t,n,r,o,i,s,a,l){this.urlSubject=t,this.paramsSubject=n,this.queryParamsSubject=r,this.fragmentSubject=o,this.dataSubject=i,this.outlet=s,this.component=a,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(te(u=>u[Ki]))??F(void 0),this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i}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._paramMap=this.params.pipe(te(t=>To(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(te(t=>To(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Gw(e,t="emptyOnly"){const n=e.pathFromRoot;let r=0;if("always"!==t)for(r=n.length-1;r>=1;){const o=n[r],i=n[r-1];if(o.routeConfig&&""===o.routeConfig.path)r--;else{if(i.component)break;r--}}return function Nk(e){return e.reduce((t,n)=>({params:{...t.params,...n.params},data:{...t.data,...n.data},resolve:{...n.data,...t.resolve,...n.routeConfig?.data,...n._resolvedData}}),{params:{},data:{},resolve:{}})}(n.slice(r))}class Il{get title(){return this.data?.[Ki]}constructor(t,n,r,o,i,s,a,l,u){this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this.routeConfig=l,this._resolve=u}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._paramMap=To(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=To(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Ww extends Bw{constructor(t,n){super(n),this.url=t,Qf(this,n)}toString(){return qw(this._root)}}function Qf(e,t){t.value._routerState=e,t.children.forEach(n=>Qf(e,n))}function qw(e){const t=e.children.length>0?` { ${e.children.map(qw).join(", ")} } `:"";return`${e.value}${t}`}function Xf(e){if(e.snapshot){const t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,mn(t.queryParams,n.queryParams)||e.queryParamsSubject.next(n.queryParams),t.fragment!==n.fragment&&e.fragmentSubject.next(n.fragment),mn(t.params,n.params)||e.paramsSubject.next(n.params),function GF(e,t){if(e.length!==t.length)return!1;for(let n=0;nmn(n.parameters,t[r].parameters))}(e.url,t.url);return n&&!(!e.parent!=!t.parent)&&(!e.parent||Kf(e.parent,t.parent))}let Jf=(()=>{class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=q,this.activateEvents=new Ee,this.deactivateEvents=new Ee,this.attachEvents=new Ee,this.detachEvents=new Ee,this.parentContexts=S(ss),this.location=S(Ut),this.changeDetector=S(Ba),this.environmentInjector=S(on),this.inputBinder=S(Tl,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){const{firstChange:r,previousValue:o}=n.name;if(r)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new w(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new w(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new w(4012,!1);this.location.detach();const n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){const n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new w(4013,!1);this._activatedRoute=n;const o=this.location,s=n.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new Rk(n,a,o.injector);this.activated=o.createComponent(s,{index:o.length,injector:l,environmentInjector:r??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=j({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Rt]}),e})();class Rk{constructor(t,n,r){this.route=t,this.childContexts=n,this.parent=r}get(t,n){return t===rr?this.route:t===ss?this.childContexts:this.parent.get(t,n)}}const Tl=new N("");let Zw=(()=>{class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(n){this.unsubscribeFromRouteData(n),this.subscribeToRouteData(n)}unsubscribeFromRouteData(n){this.outletDataSubscriptions.get(n)?.unsubscribe(),this.outletDataSubscriptions.delete(n)}subscribeToRouteData(n){const{activatedRoute:r}=n,o=kf([r.queryParams,r.params,r.data]).pipe(pn(([i,s,a],l)=>(a={...i,...s,...a},0===l?F(a):Promise.resolve(a)))).subscribe(i=>{if(!n.isActivated||!n.activatedComponentRef||n.activatedRoute!==r||null===r.component)return void this.unsubscribeFromRouteData(n);const s=function NO(e){const t=ne(e);if(!t)return null;const n=new Di(t);return{get selector(){return n.selector},get type(){return n.componentType},get inputs(){return n.inputs},get outputs(){return n.outputs},get ngContentSelectors(){return n.ngContentSelectors},get isStandalone(){return t.standalone}}}(r.component);if(s)for(const{templateName:a}of s.inputs)n.activatedComponentRef.setInput(a,i[a]);else this.unsubscribeFromRouteData(n)});this.outletDataSubscriptions.set(n,o)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac}),e})();function as(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){const r=n.value;r._futureSnapshot=t.value;const o=function xk(e,t,n){return t.children.map(r=>{for(const o of n.children)if(e.shouldReuseRoute(r.value,o.value.snapshot))return as(e,r,o);return as(e,r)})}(e,t,n);return new Vn(r,o)}{if(e.shouldAttach(t.value)){const i=e.retrieve(t.value);if(null!==i){const s=i.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>as(e,a)),s}}const r=function Pk(e){return new rr(new qt(e.url),new qt(e.params),new qt(e.queryParams),new qt(e.fragment),new qt(e.data),e.outlet,e.component,e)}(t.value),o=t.children.map(i=>as(e,i));return new Vn(r,o)}}const eh="ngNavigationCancelingError";function Yw(e,t){const{redirectTo:n,navigationBehaviorOptions:r}=Ar(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,o=Qw(!1,0,t);return o.url=n,o.navigationBehaviorOptions=r,o}function Qw(e,t,n){const r=new Error("NavigationCancelingError: "+(e||""));return r[eh]=!0,r.cancellationCode=t,n&&(r.url=n),r}function Xw(e){return Kw(e)&&Ar(e.url)}function Kw(e){return e&&e[eh]}let Jw=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=Lt({type:e,selectors:[["ng-component"]],standalone:!0,features:[Rv],decls:1,vars:0,template:function(n,r){1&n&&de(0,"router-outlet")},dependencies:[Jf],encapsulation:2}),e})();function th(e){const t=e.children&&e.children.map(th),n=t?{...e,children:t}:{...e};return!n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==q&&(n.component=Jw),n}function Zt(e){return e.outlet||q}function ls(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let t=e.parent;t;t=t.parent){const n=t.routeConfig;if(n?._loadedInjector)return n._loadedInjector;if(n?._injector)return n._injector}return null}class $k{constructor(t,n,r,o,i){this.routeReuseStrategy=t,this.futureState=n,this.currState=r,this.forwardEvent=o,this.inputBindingEnabled=i}activate(t){const n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,t),Xf(this.futureState.root),this.activateChildRoutes(n,r,t)}deactivateChildRoutes(t,n,r){const o=No(n);t.children.forEach(i=>{const s=i.value.outlet;this.deactivateRoutes(i,o[s],r),delete o[s]}),Object.values(o).forEach(i=>{this.deactivateRouteAndItsChildren(i,r)})}deactivateRoutes(t,n,r){const o=t.value,i=n?n.value:null;if(o===i)if(o.component){const s=r.getContext(o.outlet);s&&this.deactivateChildRoutes(t,n,s.children)}else this.deactivateChildRoutes(t,n,r);else i&&this.deactivateRouteAndItsChildren(n,r)}deactivateRouteAndItsChildren(t,n){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,n):this.deactivateRouteAndOutlet(t,n)}detachAndStoreRouteSubtree(t,n){const r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=No(t);for(const s of Object.keys(i))this.deactivateRouteAndItsChildren(i[s],o);if(r&&r.outlet){const s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,n){const r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=No(t);for(const s of Object.keys(i))this.deactivateRouteAndItsChildren(i[s],o);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(t,n,r){const o=No(n);t.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new Ik(i.value.snapshot))}),t.children.length&&this.forwardEvent(new Mk(t.value.snapshot))}activateRoutes(t,n,r){const o=t.value,i=n?n.value:null;if(Xf(o),o===i)if(o.component){const s=r.getOrCreateContext(o.outlet);this.activateChildRoutes(t,n,s.children)}else this.activateChildRoutes(t,n,r);else if(o.component){const s=r.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){const a=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.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),Xf(a.route.value),this.activateChildRoutes(t,null,s.children)}else{const a=ls(o.snapshot);s.attachRef=null,s.route=o,s.injector=a,s.outlet&&s.outlet.activateWith(o,s.injector),this.activateChildRoutes(t,null,s.children)}}else this.activateChildRoutes(t,null,r)}}class eE{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class Al{constructor(t,n){this.component=t,this.route=n}}function Bk(e,t,n){const r=e._root;return us(r,t?t._root:null,n,[r.value])}function Ro(e,t){const n=Symbol(),r=t.get(e,n);return r===n?"function"!=typeof e||function pb(e){return null!==ys(e)}(e)?t.get(e):e:r}function us(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=No(t);return e.children.forEach(s=>{(function zk(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=e.value,s=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(s&&i.routeConfig===s.routeConfig){const l=function Gk(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!Tr(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Tr(e.url,t.url)||!mn(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Kf(e,t)||!mn(e.queryParams,t.queryParams);default:return!Kf(e,t)}}(s,i,i.routeConfig.runGuardsAndResolvers);l?o.canActivateChecks.push(new eE(r)):(i.data=s.data,i._resolvedData=s._resolvedData),us(e,t,i.component?a?a.children:null:n,r,o),l&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new Al(a.outlet.component,s))}else s&&cs(t,a,o),o.canActivateChecks.push(new eE(r)),us(e,null,i.component?a?a.children:null:n,r,o)})(s,i[s.value.outlet],n,r.concat([s.value]),o),delete i[s.value.outlet]}),Object.entries(i).forEach(([s,a])=>cs(a,n.getContext(s),o)),o}function cs(e,t,n){const r=No(e),o=e.value;Object.entries(r).forEach(([i,s])=>{cs(s,o.component?t?t.children.getContext(i):null:t,n)}),n.canDeactivateChecks.push(new Al(o.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,o))}function ds(e){return"function"==typeof e}function tE(e){return e instanceof vl||"EmptyError"===e?.name}const Nl=Symbol("INITIAL_VALUE");function Oo(){return pn(e=>kf(e.map(t=>t.pipe(Io(1),function LF(...e){const t=$o(e);return $e((n,r)=>{(t?Lf(e,n,t):Lf(e,n)).subscribe(r)})}(Nl)))).pipe(te(t=>{for(const n of t)if(!0!==n){if(n===Nl)return Nl;if(!1===n||n instanceof Ao)return n}return!0}),Ln(t=>t!==Nl),Io(1)))}function nE(e){return function xE(...e){return ph(e)}(J(t=>{if(Ar(t))throw Yw(0,t)}),te(t=>!0===t))}class Rl{constructor(t){this.segmentGroup=t||null}}class rE{constructor(t){this.urlTree=t}}function xo(e){return Xi(new Rl(e))}function oE(e){return Xi(new rE(e))}class dL{constructor(t,n){this.urlSerializer=t,this.urlTree=n}noMatchError(t){return new w(4002,!1)}lineralizeSegments(t,n){let r=[],o=n.root;for(;;){if(r=r.concat(o.segments),0===o.numberOfChildren)return F(r);if(o.numberOfChildren>1||!o.children[q])return Xi(new w(4e3,!1));o=o.children[q]}}applyRedirectCommands(t,n,r){return this.applyRedirectCreateUrlTree(n,this.urlSerializer.parse(n),t,r)}applyRedirectCreateUrlTree(t,n,r,o){const i=this.createSegmentGroup(t,n.root,r,o);return new Ao(i,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(t,n){const r={};return Object.entries(t).forEach(([o,i])=>{if("string"==typeof i&&i.startsWith(":")){const a=i.substring(1);r[o]=n[a]}else r[o]=i}),r}createSegmentGroup(t,n,r,o){const i=this.createSegments(t,n.segments,r,o);let s={};return Object.entries(n.children).forEach(([a,l])=>{s[a]=this.createSegmentGroup(t,l,r,o)}),new ae(i,s)}createSegments(t,n,r,o){return n.map(i=>i.path.startsWith(":")?this.findPosParam(t,i,o):this.findOrReturn(i,r))}findPosParam(t,n,r){const o=r[n.path.substring(1)];if(!o)throw new w(4001,!1);return o}findOrReturn(t,n){let r=0;for(const o of n){if(o.path===t.path)return n.splice(r),o;r++}return t}}const nh={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function fL(e,t,n,r,o){const i=rh(e,t,n);return i.matched?(r=function Fk(e,t){return e.providers&&!e._injector&&(e._injector=ed(e.providers,t,`Route: ${e.path}`)),e._injector??t}(t,r),function lL(e,t,n,r){const o=t.canMatch;return o&&0!==o.length?F(o.map(s=>{const a=Ro(s,e);return nr(function Xk(e){return e&&ds(e.canMatch)}(a)?a.canMatch(t,n):e.runInContext(()=>a(t,n)))})).pipe(Oo(),nE()):F(!0)}(r,t,n).pipe(te(s=>!0===s?i:{...nh}))):F(i)}function rh(e,t,n){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?{...nh}:{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};const o=(t.matcher||zF)(n,e,t);if(!o)return{...nh};const i={};Object.entries(o.posParams??{}).forEach(([a,l])=>{i[a]=l.path});const s=o.consumed.length>0?{...i,...o.consumed[o.consumed.length-1].parameters}:i;return{matched:!0,consumedSegments:o.consumed,remainingSegments:n.slice(o.consumed.length),parameters:s,positionalParamSegments:o.posParams??{}}}function iE(e,t,n,r){return n.length>0&&function gL(e,t,n){return n.some(r=>Ol(e,t,r)&&Zt(r)!==q)}(e,n,r)?{segmentGroup:new ae(t,pL(r,new ae(n,e.children))),slicedSegments:[]}:0===n.length&&function mL(e,t,n){return n.some(r=>Ol(e,t,r))}(e,n,r)?{segmentGroup:new ae(e.segments,hL(e,0,n,r,e.children)),slicedSegments:n}:{segmentGroup:new ae(e.segments,e.children),slicedSegments:n}}function hL(e,t,n,r,o){const i={};for(const s of r)if(Ol(e,n,s)&&!o[Zt(s)]){const a=new ae([],{});i[Zt(s)]=a}return{...o,...i}}function pL(e,t){const n={};n[q]=t;for(const r of e)if(""===r.path&&Zt(r)!==q){const o=new ae([],{});n[Zt(r)]=o}return n}function Ol(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path}class DL{constructor(t,n,r,o,i,s,a){this.injector=t,this.configLoader=n,this.rootComponentType=r,this.config=o,this.urlTree=i,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.allowRedirects=!0,this.applyRedirects=new dL(this.urlSerializer,this.urlTree)}noMatchError(t){return new w(4002,!1)}recognize(){const t=iE(this.urlTree.root,[],[],this.config).segmentGroup;return this.processSegmentGroup(this.injector,this.config,t,q).pipe(ge(n=>{if(n instanceof rE)return this.allowRedirects=!1,this.urlTree=n.urlTree,this.match(n.urlTree);throw n instanceof Rl?this.noMatchError(n):n}),te(n=>{const r=new Il([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},q,this.rootComponentType,null,{}),o=new Vn(r,n),i=new Ww("",o),s=function ck(e,t,n=null,r=null){return Fw(Pw(e),t,n,r)}(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,i.url=this.urlSerializer.serialize(s),this.inheritParamsAndData(i._root),{state:i,tree:s}}))}match(t){return this.processSegmentGroup(this.injector,this.config,t.root,q).pipe(ge(r=>{throw r instanceof Rl?this.noMatchError(r):r}))}inheritParamsAndData(t){const n=t.value,r=Gw(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),t.children.forEach(o=>this.inheritParamsAndData(o))}processSegmentGroup(t,n,r,o){return 0===r.segments.length&&r.hasChildren()?this.processChildren(t,n,r):this.processSegment(t,n,r,r.segments,o,!0)}processChildren(t,n,r){const o=[];for(const i of Object.keys(r.children))"primary"===i?o.unshift(i):o.push(i);return xe(o).pipe(Eo(i=>{const s=r.children[i],a=function Hk(e,t){const n=e.filter(r=>Zt(r)===t);return n.push(...e.filter(r=>Zt(r)!==t)),n}(n,i);return this.processSegmentGroup(t,a,s,i)}),function jF(e,t){return $e(function HF(e,t,n,r,o){return(i,s)=>{let a=n,l=t,u=0;i.subscribe(He(s,c=>{const d=u++;l=a?e(l,c,d):(a=!0,c),r&&s.next(l)},o&&(()=>{a&&s.next(l),s.complete()})))}}(e,t,arguments.length>=2,!0))}((i,s)=>(i.push(...s),i)),Cl(null),function $F(e,t){const n=arguments.length>=2;return r=>r.pipe(e?Ln((o,i)=>e(o,i,r)):sr,Hf(1),n?Cl(t):_w(()=>new vl))}(),Be(i=>{if(null===i)return xo(r);const s=sE(i);return function _L(e){e.sort((t,n)=>t.value.outlet===q?-1:n.value.outlet===q?1:t.value.outlet.localeCompare(n.value.outlet))}(s),F(s)}))}processSegment(t,n,r,o,i,s){return xe(n).pipe(Eo(a=>this.processSegmentAgainstRoute(a._injector??t,n,a,r,o,i,s).pipe(ge(l=>{if(l instanceof Rl)return F(null);throw l}))),Ir(a=>!!a),ge(a=>{if(tE(a))return function vL(e,t,n){return 0===t.length&&!e.children[n]}(r,o,i)?F([]):xo(r);throw a}))}processSegmentAgainstRoute(t,n,r,o,i,s,a){return function yL(e,t,n,r){return!!(Zt(e)===r||r!==q&&Ol(t,n,e))&&("**"===e.path||rh(t,e,n).matched)}(r,o,i,s)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,o,r,i,s,a):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,o,n,r,i,s):xo(o):xo(o)}expandSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s){return"**"===o.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,r,o,s):this.expandRegularSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,o){const i=this.applyRedirects.applyRedirectCommands([],r.redirectTo,{});return r.redirectTo.startsWith("/")?oE(i):this.applyRedirects.lineralizeSegments(r,i).pipe(Be(s=>{const a=new ae(s,{});return this.processSegment(t,n,a,s,o,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s){const{matched:a,consumedSegments:l,remainingSegments:u,positionalParamSegments:c}=rh(n,o,i);if(!a)return xo(n);const d=this.applyRedirects.applyRedirectCommands(l,o.redirectTo,c);return o.redirectTo.startsWith("/")?oE(d):this.applyRedirects.lineralizeSegments(o,d).pipe(Be(f=>this.processSegment(t,r,n,f.concat(u),s,!1)))}matchSegmentAgainstRoute(t,n,r,o,i,s){let a;if("**"===r.path){const l=o.length>0?Ew(o).parameters:{};a=F({snapshot:new Il(o,l,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,aE(r),Zt(r),r.component??r._loadedComponent??null,r,lE(r)),consumedSegments:[],remainingSegments:[]}),n.children={}}else a=fL(n,r,o,t).pipe(te(({matched:l,consumedSegments:u,remainingSegments:c,parameters:d})=>l?{snapshot:new Il(u,d,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,aE(r),Zt(r),r.component??r._loadedComponent??null,r,lE(r)),consumedSegments:u,remainingSegments:c}:null));return a.pipe(pn(l=>null===l?xo(n):this.getChildConfig(t=r._injector??t,r,o).pipe(pn(({routes:u})=>{const c=r._loadedInjector??t,{snapshot:d,consumedSegments:f,remainingSegments:h}=l,{segmentGroup:p,slicedSegments:m}=iE(n,f,h,u);if(0===m.length&&p.hasChildren())return this.processChildren(c,u,p).pipe(te(E=>null===E?null:[new Vn(d,E)]));if(0===u.length&&0===m.length)return F([new Vn(d,[])]);const v=Zt(r)===i;return this.processSegment(c,u,p,m,v?q:i,!0).pipe(te(E=>[new Vn(d,E)]))}))))}getChildConfig(t,n,r){return n.children?F({routes:n.children,injector:t}):n.loadChildren?void 0!==n._loadedRoutes?F({routes:n._loadedRoutes,injector:n._loadedInjector}):function aL(e,t,n,r){const o=t.canLoad;return void 0===o||0===o.length?F(!0):F(o.map(s=>{const a=Ro(s,e);return nr(function qk(e){return e&&ds(e.canLoad)}(a)?a.canLoad(t,n):e.runInContext(()=>a(t,n)))})).pipe(Oo(),nE())}(t,n,r).pipe(Be(o=>o?this.configLoader.loadChildren(t,n).pipe(J(i=>{n._loadedRoutes=i.routes,n._loadedInjector=i.injector})):function cL(e){return Xi(Qw(!1,3))}())):F({routes:[],injector:t})}}function wL(e){const t=e.value.routeConfig;return t&&""===t.path}function sE(e){const t=[],n=new Set;for(const r of e){if(!wL(r)){t.push(r);continue}const o=t.find(i=>r.value.routeConfig===i.value.routeConfig);void 0!==o?(o.children.push(...r.children),n.add(o)):t.push(r)}for(const r of n){const o=sE(r.children);t.push(new Vn(r.value,o))}return t.filter(r=>!n.has(r))}function aE(e){return e.data||{}}function lE(e){return e.resolve||{}}function uE(e){return"string"==typeof e.title||null===e.title}function oh(e){return pn(t=>{const n=e(t);return n?xe(n).pipe(te(()=>t)):F(t)})}const Po=new N("ROUTES");let ih=(()=>{class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=S(DC)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return F(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);const r=nr(n.loadComponent()).pipe(te(cE),J(i=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=i}),jf(()=>{this.componentLoaders.delete(n)})),o=new Dw(r,()=>new Cn).pipe(Vf());return this.componentLoaders.set(n,o),o}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return F({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);const i=this.loadModuleFactoryOrRoutes(r.loadChildren).pipe(te(a=>{this.onLoadEndListener&&this.onLoadEndListener(r);let l,u;return Array.isArray(a)?u=a:(l=a.create(n).injector,u=l.get(Po,[],L.Self|L.Optional).flat()),{routes:u.map(th),injector:l}}),jf(()=>{this.childrenLoaders.delete(r)})),s=new Dw(i,()=>new Cn).pipe(Vf());return this.childrenLoaders.set(r,s),s}loadModuleFactoryOrRoutes(n){return nr(n()).pipe(te(cE),Be(r=>r instanceof Av||Array.isArray(r)?F(r):xe(this.compiler.compileModuleAsync(r))))}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function cE(e){return function AL(e){return e&&"object"==typeof e&&"default"in e}(e)?e.default:e}let xl=(()=>{class e{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new Cn,this.configLoader=S(ih),this.environmentInjector=S(on),this.urlSerializer=S(es),this.rootContexts=S(ss),this.inputBindingEnabled=null!==S(Tl,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>F(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=o=>this.events.next(new Ek(o)),this.configLoader.onLoadStartListener=o=>this.events.next(new wk(o))}complete(){this.transitions?.complete()}handleNavigationRequest(n){const r=++this.navigationId;this.transitions?.next({...this.transitions.value,...n,id:r})}setupNavigations(n){return this.transitions=new qt({id:0,currentUrlTree:n.currentUrlTree,currentRawUrl:n.currentUrlTree,extractedUrl:n.urlHandlingStrategy.extract(n.currentUrlTree),urlAfterRedirects:n.urlHandlingStrategy.extract(n.currentUrlTree),rawUrl:n.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:os,restoredState:null,currentSnapshot:n.routerState.snapshot,targetSnapshot:null,currentRouterState:n.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(Ln(r=>0!==r.id),te(r=>({...r,extractedUrl:n.urlHandlingStrategy.extract(r.rawUrl)})),pn(r=>{let o=!1,i=!1;return F(r).pipe(J(s=>{this.currentNavigation={id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,trigger:s.source,extras:s.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),pn(s=>{const a=n.browserUrlTree.toString(),l=!n.navigated||s.extractedUrl.toString()!==a||a!==n.currentUrlTree.toString();if(!l&&"reload"!==(s.extras.onSameUrlNavigation??n.onSameUrlNavigation)){const c="";return this.events.next(new is(s.id,n.serializeUrl(r.rawUrl),c,0)),n.rawUrlTree=s.rawUrl,s.resolve(null),Qt}if(n.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return dE(s.source)&&(n.browserUrlTree=s.extractedUrl),F(s).pipe(pn(c=>{const d=this.transitions?.getValue();return this.events.next(new Wf(c.id,this.urlSerializer.serialize(c.extractedUrl),c.source,c.restoredState)),d!==this.transitions?.getValue()?Qt:Promise.resolve(c)}),function EL(e,t,n,r,o,i){return Be(s=>function CL(e,t,n,r,o,i,s="emptyOnly"){return new DL(e,t,n,r,o,s,i).recognize()}(e,t,n,r,s.extractedUrl,o,i).pipe(te(({state:a,tree:l})=>({...s,targetSnapshot:a,urlAfterRedirects:l}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,n.paramsInheritanceStrategy),J(c=>{if(r.targetSnapshot=c.targetSnapshot,r.urlAfterRedirects=c.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:c.urlAfterRedirects},"eager"===n.urlUpdateStrategy){if(!c.extras.skipLocationChange){const f=n.urlHandlingStrategy.merge(c.urlAfterRedirects,c.rawUrl);n.setBrowserUrl(f,c)}n.browserUrlTree=c.urlAfterRedirects}const d=new yk(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(d)}));if(l&&n.urlHandlingStrategy.shouldProcessUrl(n.rawUrlTree)){const{id:c,extractedUrl:d,source:f,restoredState:h,extras:p}=s,m=new Wf(c,this.urlSerializer.serialize(d),f,h);this.events.next(m);const v=zw(0,this.rootComponentType).snapshot;return F(r={...s,targetSnapshot:v,urlAfterRedirects:d,extras:{...p,skipLocationChange:!1,replaceUrl:!1}})}{const c="";return this.events.next(new is(s.id,n.serializeUrl(r.extractedUrl),c,1)),n.rawUrlTree=s.rawUrl,s.resolve(null),Qt}}),J(s=>{const a=new vk(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}),te(s=>r={...s,guards:Bk(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),function Jk(e,t){return Be(n=>{const{targetSnapshot:r,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=n;return 0===s.length&&0===i.length?F({...n,guardsResult:!0}):function eL(e,t,n,r){return xe(e).pipe(Be(o=>function sL(e,t,n,r,o){const i=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return i&&0!==i.length?F(i.map(a=>{const l=ls(t)??o,u=Ro(a,l);return nr(function Qk(e){return e&&ds(e.canDeactivate)}(u)?u.canDeactivate(e,t,n,r):l.runInContext(()=>u(e,t,n,r))).pipe(Ir())})).pipe(Oo()):F(!0)}(o.component,o.route,n,t,r)),Ir(o=>!0!==o,!0))}(s,r,o,e).pipe(Be(a=>a&&function Wk(e){return"boolean"==typeof e}(a)?function tL(e,t,n,r){return xe(t).pipe(Eo(o=>Lf(function rL(e,t){return null!==e&&t&&t(new bk(e)),F(!0)}(o.route.parent,r),function nL(e,t){return null!==e&&t&&t(new Sk(e)),F(!0)}(o.route,r),function iL(e,t,n){const r=t[t.length-1],i=t.slice(0,t.length-1).reverse().map(s=>function Uk(e){const t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(s)).filter(s=>null!==s).map(s=>Cw(()=>F(s.guards.map(l=>{const u=ls(s.node)??n,c=Ro(l,u);return nr(function Yk(e){return e&&ds(e.canActivateChild)}(c)?c.canActivateChild(r,e):u.runInContext(()=>c(r,e))).pipe(Ir())})).pipe(Oo())));return F(i).pipe(Oo())}(e,o.path,n),function oL(e,t,n){const r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||0===r.length)return F(!0);const o=r.map(i=>Cw(()=>{const s=ls(t)??n,a=Ro(i,s);return nr(function Zk(e){return e&&ds(e.canActivate)}(a)?a.canActivate(t,e):s.runInContext(()=>a(t,e))).pipe(Ir())}));return F(o).pipe(Oo())}(e,o.route,n))),Ir(o=>!0!==o,!0))}(r,i,e,t):F(a)),te(a=>({...n,guardsResult:a})))})}(this.environmentInjector,s=>this.events.next(s)),J(s=>{if(r.guardsResult=s.guardsResult,Ar(s.guardsResult))throw Yw(0,s.guardsResult);const a=new Ck(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);this.events.next(a)}),Ln(s=>!!s.guardsResult||(n.restoreHistory(s),this.cancelNavigationTransition(s,"",3),!1)),oh(s=>{if(s.guards.canActivateChecks.length)return F(s).pipe(J(a=>{const l=new Dk(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(l)}),pn(a=>{let l=!1;return F(a).pipe(function bL(e,t){return Be(n=>{const{targetSnapshot:r,guards:{canActivateChecks:o}}=n;if(!o.length)return F(n);let i=0;return xe(o).pipe(Eo(s=>function ML(e,t,n,r){const o=e.routeConfig,i=e._resolve;return void 0!==o?.title&&!uE(o)&&(i[Ki]=o.title),function SL(e,t,n,r){const o=function IL(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}(e);if(0===o.length)return F({});const i={};return xe(o).pipe(Be(s=>function TL(e,t,n,r){const o=ls(t)??r,i=Ro(e,o);return nr(i.resolve?i.resolve(t,n):o.runInContext(()=>i(t,n)))}(e[s],t,n,r).pipe(Ir(),J(a=>{i[s]=a}))),Hf(1),function BF(e){return te(()=>e)}(i),ge(s=>tE(s)?Qt:Xi(s)))}(i,e,t,r).pipe(te(s=>(e._resolvedData=s,e.data=Gw(e,n).resolve,o&&uE(o)&&(e.data[Ki]=o.title),null)))}(s.route,r,e,t)),J(()=>i++),Hf(1),Be(s=>i===o.length?F(n):Qt))})}(n.paramsInheritanceStrategy,this.environmentInjector),J({next:()=>l=!0,complete:()=>{l||(n.restoreHistory(a),this.cancelNavigationTransition(a,"",2))}}))}),J(a=>{const l=new _k(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(l)}))}),oh(s=>{const a=l=>{const u=[];l.routeConfig?.loadComponent&&!l.routeConfig._loadedComponent&&u.push(this.configLoader.loadComponent(l.routeConfig).pipe(J(c=>{l.component=c}),te(()=>{})));for(const c of l.children)u.push(...a(c));return u};return kf(a(s.targetSnapshot.root)).pipe(Cl(),Io(1))}),oh(()=>this.afterPreactivation()),te(s=>{const a=function Ok(e,t,n){const r=as(e,t._root,n?n._root:void 0);return new Uw(r,t)}(n.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return r={...s,targetRouterState:a}}),J(s=>{n.currentUrlTree=s.urlAfterRedirects,n.rawUrlTree=n.urlHandlingStrategy.merge(s.urlAfterRedirects,s.rawUrl),n.routerState=s.targetRouterState,"deferred"===n.urlUpdateStrategy&&(s.extras.skipLocationChange||n.setBrowserUrl(n.rawUrlTree,s),n.browserUrlTree=s.urlAfterRedirects)}),((e,t,n,r)=>te(o=>(new $k(t,o.targetRouterState,o.currentRouterState,n,r).activate(e),o)))(this.rootContexts,n.routeReuseStrategy,s=>this.events.next(s),this.inputBindingEnabled),Io(1),J({next:s=>{o=!0,this.lastSuccessfulNavigation=this.currentNavigation,n.navigated=!0,this.events.next(new Nr(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(n.currentUrlTree))),n.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(!0)},complete:()=>{o=!0}}),jf(()=>{o||i||this.cancelNavigationTransition(r,"",1),this.currentNavigation?.id===r.id&&(this.currentNavigation=null)}),ge(s=>{if(i=!0,Kw(s)){Xw(s)||(n.navigated=!0,n.restoreHistory(r,!0));const a=new Sl(r.id,this.urlSerializer.serialize(r.extractedUrl),s.message,s.cancellationCode);if(this.events.next(a),Xw(s)){const l=n.urlHandlingStrategy.merge(s.url,n.rawUrlTree),u={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===n.urlUpdateStrategy||dE(r.source)};n.scheduleNavigation(l,os,null,u,{resolve:r.resolve,reject:r.reject,promise:r.promise})}else r.resolve(!1)}else{n.restoreHistory(r,!0);const a=new qf(r.id,this.urlSerializer.serialize(r.extractedUrl),s,r.targetSnapshot??void 0);this.events.next(a);try{r.resolve(n.errorHandler(s))}catch(l){r.reject(l)}}return Qt}))}))}cancelNavigationTransition(n,r,o){const i=new Sl(n.id,this.urlSerializer.serialize(n.extractedUrl),r,o);this.events.next(i),n.resolve(!1)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function dE(e){return e!==os}let fE=(()=>{class e{buildTitle(n){let r,o=n.root;for(;void 0!==o;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(i=>i.outlet===q);return r}getResolvedTitleForRoute(n){return n.data[Ki]}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:function(){return S(NL)},providedIn:"root"}),e})(),NL=(()=>{class e extends fE{constructor(n){super(),this.title=n}updateTitle(n){const r=this.buildTitle(n);void 0!==r&&this.title.setTitle(r)}}return e.\u0275fac=function(n){return new(n||e)(A(WD))},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),RL=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:function(){return S(xL)},providedIn:"root"}),e})();class OL{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}}let xL=(()=>{class e extends OL{}return e.\u0275fac=function(){let t;return function(r){return(t||(t=Ge(e)))(r||e)}}(),e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Pl=new N("",{providedIn:"root",factory:()=>({})});let PL=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:function(){return S(FL)},providedIn:"root"}),e})(),FL=(()=>{class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var St=(()=>((St=St||{})[St.COMPLETE=0]="COMPLETE",St[St.FAILED=1]="FAILED",St[St.REDIRECTING=2]="REDIRECTING",St))();function hE(e,t){e.events.pipe(Ln(n=>n instanceof Nr||n instanceof Sl||n instanceof qf||n instanceof is),te(n=>n instanceof Nr||n instanceof is?St.COMPLETE:n instanceof Sl&&(0===n.code||1===n.code)?St.REDIRECTING:St.FAILED),Ln(n=>n!==St.REDIRECTING),Io(1)).subscribe(()=>{t()})}function kL(e){throw e}function LL(e,t,n){return t.parse("/")}const VL={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},HL={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let We=(()=>{class e{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){if("computed"===this.canceledNavigationResolution)return this.location.getState()?.\u0275routerPageId}get events(){return this.navigationTransitions.events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=S(CC),this.isNgZoneEnabled=!1,this.options=S(Pl,{optional:!0})||{},this.pendingTasks=S(nD),this.errorHandler=this.options.errorHandler||kL,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||LL,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=S(PL),this.routeReuseStrategy=S(RL),this.titleStrategy=S(fE),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=S(Po,{optional:!0})?.flat()??[],this.navigationTransitions=S(xl),this.urlSerializer=S(es),this.location=S(Hd),this.componentInputBindingEnabled=!!S(Tl,{optional:!0}),this.isNgZoneEnabled=S(ye)instanceof ye&&ye.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new Ao,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=zw(0,null),this.navigationTransitions.setupNavigations(this).subscribe(n=>{this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId??0},n=>{this.console.warn(`Unhandled Navigation Error: ${n}`)})}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const n=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),os,n)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(n=>{const r="popstate"===n.type?"popstate":"hashchange";"popstate"===r&&setTimeout(()=>{this.navigateToSyncWithBrowser(n.url,r,n.state)},0)}))}navigateToSyncWithBrowser(n,r,o){const i={replaceUrl:!0},s=o?.navigationId?o:null;if(o){const l={...o};delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(i.state=l)}const a=this.parseUrl(n);this.scheduleNavigation(a,r,s,i)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(th),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(n,r={}){const{relativeTo:o,queryParams:i,fragment:s,queryParamsHandling:a,preserveFragment:l}=r,u=l?this.currentUrlTree.fragment:s;let d,c=null;switch(a){case"merge":c={...this.currentUrlTree.queryParams,...i};break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=i||null}null!==c&&(c=this.removeEmptyProps(c));try{d=Pw(o?o.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof n[0]||!n[0].startsWith("/"))&&(n=[]),d=this.currentUrlTree.root}return Fw(d,n,c,u??null)}navigateByUrl(n,r={skipLocationChange:!1}){const o=Ar(n)?n:this.parseUrl(n),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,os,null,r)}navigate(n,r={skipLocationChange:!1}){return function jL(e){for(let t=0;t{const i=n[o];return null!=i&&(r[o]=i),r},{})}scheduleNavigation(n,r,o,i,s){if(this.disposed)return Promise.resolve(!1);let a,l,u;s?(a=s.resolve,l=s.reject,u=s.promise):u=new Promise((d,f)=>{a=d,l=f});const c=this.pendingTasks.add();return hE(this,()=>{Promise.resolve().then(()=>this.pendingTasks.remove(c))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:i,resolve:a,reject:l,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(d=>Promise.reject(d))}setBrowserUrl(n,r){const o=this.urlSerializer.serialize(n);if(this.location.isCurrentPathEqualTo(o)||r.extras.replaceUrl){const s={...r.extras.state,...this.generateNgRouterState(r.id,this.browserPageId)};this.location.replaceState(o,"",s)}else{const i={...r.extras.state,...this.generateNgRouterState(r.id,(this.browserPageId??0)+1)};this.location.go(o,"",i)}}restoreHistory(n,r=!1){if("computed"===this.canceledNavigationResolution){const i=this.currentPageId-(this.browserPageId??this.currentPageId);0!==i?this.location.historyGo(i):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===i&&(this.resetState(n),this.browserUrlTree=n.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(r&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=n.currentRouterState,this.currentUrlTree=n.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,r){return"computed"===this.canceledNavigationResolution?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Fo=(()=>{class e{constructor(n,r,o,i,s,a){this.router=n,this.route=r,this.tabIndexAttribute=o,this.renderer=i,this.el=s,this.locationStrategy=a,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.href=null,this.commands=null,this.onChanges=new Cn;const l=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===l||"area"===l,this.isAnchorElement?this.subscription=n.events.subscribe(u=>{u instanceof Nr&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}set preserveFragment(n){this._preserveFragment=Do(n)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(n){this._skipLocationChange=Do(n)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(n){this._replaceUrl=Do(n)}get replaceUrl(){return this._replaceUrl}setTabIndexIfNotOnNativeEl(n){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",n)}ngOnChanges(n){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(n){null!=n?(this.commands=Array.isArray(n)?n:[n],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(n,r,o,i,s){return!!(null===this.urlTree||this.isAnchorElement&&(0!==n||r||o||i||s||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const n=null===this.href?null:function Ug(e,t,n){return function pI(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?Bg:Ku}(t,n)(e)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",n)}applyAttributeValue(n,r){const o=this.renderer,i=this.el.nativeElement;null!==r?o.setAttribute(i,n,r):o.removeAttribute(i,n)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return e.\u0275fac=function(n){return new(n||e)(D(We),D(rr),function Us(e){return function LM(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const r=n.length;let o=0;for(;o{class e{get isActive(){return this._isActive}constructor(n,r,o,i,s){this.router=n,this.element=r,this.renderer=o,this.cdr=i,this.link=s,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new Ee,this.routerEventsSubscription=n.events.subscribe(a=>{a instanceof Nr&&this.update()})}ngAfterContentInit(){F(this.links.changes,F(null)).pipe(Rr()).subscribe(n=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const n=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=xe(n).pipe(Rr()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update()})}set routerLinkActive(n){const r=Array.isArray(n)?n:n.split(" ");this.classes=r.filter(o=>!!o)}ngOnChanges(n){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||Promise.resolve().then(()=>{const n=this.hasActiveLinks();this._isActive!==n&&(this._isActive=n,this.cdr.markForCheck(),this.classes.forEach(r=>{n?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r)}),n&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(n))})}isLinkActive(n){const r=function $L(e){return!!e.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return o=>!!o.urlTree&&n.isActive(o.urlTree,r)}hasActiveLinks(){const n=this.isLinkActive(this.router);return this.link&&n(this.link)||this.links.some(n)}}return e.\u0275fac=function(n){return new(n||e)(D(We),D(Et),D(Tn),D(Ba),D(Fo,8))},e.\u0275dir=j({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(n,r,o){if(1&n&&function Jv(e,t,n,r){const o=K();if(o.firstCreatePass){const i=ze();tC(o,new Xv(t,n,r),i.index),function mR(e,t){const n=e.contentQueries||(e.contentQueries=[]);t!==(n.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}(o,e),2==(2&n)&&(o.staticContentQueries=!0)}eC(o,_(),n)}(o,Fo,5),2&n){let i;La(i=Va())&&(r.links=i)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[Rt]}),e})();class gE{}let BL=(()=>{class e{constructor(n,r,o,i,s){this.router=n,this.injector=o,this.preloadingStrategy=i,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(Ln(n=>n instanceof Nr),Eo(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,r){const o=[];for(const i of r){i.providers&&!i._injector&&(i._injector=ed(i.providers,n,`Route: ${i.path}`));const s=i._injector??n,a=i._loadedInjector??s;(i.loadChildren&&!i._loadedRoutes&&void 0===i.canLoad||i.loadComponent&&!i._loadedComponent)&&o.push(this.preloadConfig(s,i)),(i.children||i._loadedRoutes)&&o.push(this.processRoutes(a,i.children??i._loadedRoutes))}return xe(o).pipe(Rr())}preloadConfig(n,r){return this.preloadingStrategy.preload(r,()=>{let o;o=r.loadChildren&&void 0===r.canLoad?this.loader.loadChildren(n,r):F(null);const i=o.pipe(Be(s=>null===s?F(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,this.processRoutes(s.injector??n,s.routes))));return r.loadComponent&&!r._loadedComponent?xe([i,this.loader.loadComponent(r)]).pipe(Rr()):i})}}return e.\u0275fac=function(n){return new(n||e)(A(We),A(DC),A(on),A(gE),A(ih))},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const sh=new N("");let mE=(()=>{class e{constructor(n,r,o,i,s={}){this.urlSerializer=n,this.transitions=r,this.viewportScroller=o,this.zone=i,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration=s.scrollPositionRestoration||"disabled",s.anchorScrolling=s.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof Wf?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof Nr?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof is&&0===n.code&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof $w&&(n.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(n.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new $w(n,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return e.\u0275fac=function(n){!function Em(){throw new Error("invalid")}()},e.\u0275prov=O({token:e,factory:e.\u0275fac}),e})();function Hn(e,t){return{\u0275kind:e,\u0275providers:t}}function vE(){const e=S(sn);return t=>{const n=e.get(Co);if(t!==n.components[0])return;const r=e.get(We),o=e.get(CE);1===e.get(ah)&&r.initialNavigation(),e.get(DE,null,L.Optional)?.setUpPreloading(),e.get(sh,null,L.Optional)?.init(),r.resetRootComponentType(n.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}const CE=new N("",{factory:()=>new Cn}),ah=new N("",{providedIn:"root",factory:()=>1}),DE=new N("");function WL(e){return Hn(0,[{provide:DE,useExisting:BL},{provide:gE,useExisting:e}])}const _E=new N("ROUTER_FORROOT_GUARD"),ZL=[Hd,{provide:es,useClass:$f},We,ss,{provide:rr,useFactory:function yE(e){return e.routerState.root},deps:[We]},ih,[]];function YL(){return new RC("Router",We)}let wE=(()=>{class e{constructor(n){}static forRoot(n,r){return{ngModule:e,providers:[ZL,[],{provide:Po,multi:!0,useValue:n},{provide:_E,useFactory:JL,deps:[[We,new Ws,new qs]]},{provide:Pl,useValue:r||{}},r?.useHash?{provide:Yn,useClass:aD}:{provide:Yn,useClass:sD},{provide:sh,useFactory:()=>{const e=S(Xx),t=S(ye),n=S(Pl),r=S(xl),o=S(es);return n.scrollOffset&&e.setOffset(n.scrollOffset),new mE(o,r,e,t,n)}},r?.preloadingStrategy?WL(r.preloadingStrategy).\u0275providers:[],{provide:RC,multi:!0,useFactory:YL},r?.initialNavigation?eV(r):[],r?.bindToComponentInputs?Hn(8,[Zw,{provide:Tl,useExisting:Zw}]).\u0275providers:[],[{provide:EE,useFactory:vE},{provide:Td,multi:!0,useExisting:EE}]]}}static forChild(n){return{ngModule:e,providers:[{provide:Po,multi:!0,useValue:n}]}}}return e.\u0275fac=function(n){return new(n||e)(A(_E,8))},e.\u0275mod=Vt({type:e}),e.\u0275inj=Nt({}),e})();function JL(e){return"guarded"}function eV(e){return["disabled"===e.initialNavigation?Hn(3,[{provide:Cd,multi:!0,useFactory:()=>{const t=S(We);return()=>{t.setUpLocationChangeListener()}}},{provide:ah,useValue:2}]).\u0275providers:[],"enabledBlocking"===e.initialNavigation?Hn(2,[{provide:ah,useValue:0},{provide:Cd,multi:!0,deps:[sn],useFactory:t=>{const n=t.get(xO,Promise.resolve());return()=>n.then(()=>new Promise(r=>{const o=t.get(We),i=t.get(CE);hE(o,()=>{r(!0)}),t.get(xl).afterPreactivation=()=>(r(!0),i.closed?F(void 0):i),o.initialNavigation()}))}}]).\u0275providers:[]]}const EE=new N("");class gt{constructor(t,n,r){this.http=t,this.router=n,this.appMessageService=r,this.authenticated=!1,this.credentials={username:"",password:""},this.authority="none"}handleError(t="operation",n){return r=>(console.error(r),this.log(`Error @ ${t}: ${r.status} ${r.statusText}`),r)}log(t){this.appMessageService.add(`LoginService: ${t}`)}isAuthenticated(){return this.authenticated}getAuthorizationToken(){return`Basic ${window.btoa(this.credentials.username+":"+this.credentials.password)}`}getUsername(){return this.credentials.username}authenticate(t){this.log(`Authenticating: ${t.username}`),this.credentials=t;const n=new Ke({"Content-Type":"application/json",Accept:"application/json",Authorization:this.getAuthorizationToken()});return this.http.get(gt.REST_URL,{headers:n}).pipe(J(r=>this.authorizationRecieved(r)),ge(this.handleError("authenticate")))}logout(){this.authenticated=!1,this.log("Logged out"),this.router.navigateByUrl("/").then(()=>{})}authorizationRecieved(t){this.authenticated=!0;let n=t.authorities[0].authority;n=n.substring(n.indexOf("_")+1),this.authority=n,this.log(`Authenticated '${t.name}' as '${n}'`),console.log(`Authenticated as ${JSON.stringify(t)}`)}}gt.REST_URL=Sr_restServerUrl+"/api/user",gt.\u0275fac=function(t){return new(t||gt)(A(Mr),A(We),A(So))},gt.\u0275prov=O({token:gt,factory:gt.\u0275fac,providedIn:"root"});const nV=["scrollMe"];function rV(e,t){if(1&e&&(y(0,"li")(1,"div",7)(2,"span",8),b(3),C(),y(4,"span",9),b(5),Pi(6,"date"),C(),y(7,"span",10),b(8),C()(),y(9,"span",11),b(10),C()()),2&e){const n=t.$implicit;R(3),ht(n.id),R(2),ht(Fi(6,4,n.dateCreated,"dd-MM-yyyy HH:mm:ss")),R(3),ht(n.author),R(2),ht(n.text)}}function oV(e,t){if(1&e){const n=Sa();y(0,"ul",4,5),P("scroll",function(){return Os(n),xs(Si().onScroll())}),Rn(2,rV,11,7,"li",6),C()}if(2&e){const n=Si();R(2),W("ngForOf",n.messages)}}let lh=(()=>{class e{constructor(n,r){this.chatService=n,this.loginService=r,this.disableScrollDown=!1,this.messages=[],this.newMessage=""}getChatMessages(){this.chatService.getChatMessages().subscribe(n=>{this.messages=n,this.disableScrollDown=!1,this.scrollToBottom()})}ngOnInit(){this.loginService.isAuthenticated()&&this.getChatMessages()}sendMessage(){this.chatService.addChatMessage(this.loginService.getUsername(),this.newMessage).subscribe(()=>this.getChatMessages()),this.newMessage=""}ngAfterViewChecked(){this.scrollToBottom()}onScroll(){let n=this.myScrollContainer.nativeElement;this.disableScrollDown=!(this.disableScrollDown&&n.scrollHeight-n.scrollTop===n.clientHeight)}scrollToBottom(){if(!this.disableScrollDown)try{this.myScrollContainer.nativeElement.scrollTop=this.myScrollContainer.nativeElement.scrollHeight}catch{}}}return e.\u0275fac=function(n){return new(n||e)(D(gn),D(gt))},e.\u0275cmp=Lt({type:e,selectors:[["app-chat"]],viewQuery:function(n,r){if(1&n&&hd(nV,5),2&n){let o;La(o=Va())&&(r.myScrollContainer=o.first)}},decls:7,vars:2,consts:[["class","chat",3,"scroll",4,"ngIf"],[1,"input"],["id","message-text","placeholder","hello",3,"ngModel","ngModelChange","keydown.enter"],[3,"click"],[1,"chat",3,"scroll"],["scrollMe",""],[4,"ngFor","ngForOf"],[1,"message-title"],[1,"badge"],[1,"date"],[1,"author"],[1,"text"]],template:function(n,r){1&n&&(Rn(0,oV,3,1,"ul",0),y(1,"div",1)(2,"input",2),P("ngModelChange",function(i){return r.newMessage=i})("keydown.enter",function(){return r.sendMessage()}),C(),y(3,"button",3),P("click",function(){return r.sendMessage()}),b(4,"Send"),C(),y(5,"button",3),P("click",function(){return r.getChatMessages()}),b(6,"Reload"),C()()),2&n&&(W("ngIf",r.messages.length),R(2),W("ngModel",r.newMessage))},dependencies:[wr,_D,hn,er,kn,$i],styles:[".chat[_ngcontent-%COMP%]{margin:0;list-style-type:none;padding:.1em;max-height:20em;overflow:auto}.chat[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{position:relative;left:0;margin:.1em;padding:0;border-radius:4px;border:solid 1px darkblue}.chat[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover{background-color:#e6e6e688}.message-title[_ngcontent-%COMP%]{display:block;text-align:left;font-size:x-small}.message-title[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline-block;color:#fff}.badge[_ngcontent-%COMP%]{padding:.3em .7em;background-color:#405061;border-radius:2px 0 0}.date[_ngcontent-%COMP%]{padding:.3em .7em;background-color:#605061}.author[_ngcontent-%COMP%]{padding:.3em .7em;background-color:#a0b0b1;border-radius:0 0 2px}.chat[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{align-self:center;margin:0 .1em .1em}.input[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{left:0;padding:0}.input[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:inline-block;padding-right:.2em}"]}),e})();const bE=function(){return{exact:!0}};let iV=(()=>{class e{constructor(n){this.loginService=n,this.title="Familie TDS",this.chatLoaded=!1,this.chatHidden=!0,this.pos1=0,this.pos2=0,this.pos3=0,this.pos4=0,this.target=null}isAuthenticated(){return this.loginService.isAuthenticated()}username(){return this.loginService.getUsername()}logout(){localStorage.setItem("username",""),localStorage.setItem("password",""),this.loginService.logout()}toggleChatHidden(){this.chatHidden=!this.chatHidden,!this.chatHidden&&!this.chatLoaded&&(this.chatComponent.getChatMessages(),this.chatLoaded=!0)}isChatHidden(){return this.chatHidden}startMouseDragging(n){0===n.button&&(n.preventDefault(),this.pos3=n.clientX,this.pos4=n.clientY,document.onmouseup=()=>this.endMouseDrag(),document.onmousemove=r=>this.mouseDragElement(r),this.target=document.getElementById("chatwindow"))}mouseDragElement(n){n.preventDefault(),this.pos1=this.pos3-n.clientX,this.pos2=this.pos4-n.clientY,this.pos3=n.clientX,this.pos4=n.clientY,this.target.style.top=this.target.offsetTop-this.pos2+"px",this.target.style.left=this.target.offsetLeft-this.pos1+"px"}endMouseDrag(){document.onmouseup=null,document.onmousemove=null,this.target=null}startTouchDragging(n){n.preventDefault(),this.pos3=n.targetTouches[0].clientX,this.pos4=n.targetTouches[0].clientY,document.ontouchend=()=>this.endTouchDrag(),document.ontouchmove=r=>this.touchDragElement(r),this.target=document.getElementById("chatwindow")}touchDragElement(n){n.preventDefault(),this.pos1=this.pos3-n.targetTouches[0].clientX,this.pos2=this.pos4-n.targetTouches[0].clientY,this.pos3=n.targetTouches[0].clientX,this.pos4=n.targetTouches[0].clientY,this.target.style.top=this.target.offsetTop-this.pos2+"px",this.target.style.left=this.target.offsetLeft-this.pos1+"px"}endTouchDrag(){document.ontouchend=null,document.ontouchmove=null,this.target=null}toggleTheme(){const n="theme-dark",r=document.querySelector(":root");if(!r)throw new Error("No root!?");r.classList.toggle(n),r.classList.contains(n)?localStorage.setItem("theme",n):localStorage.setItem("theme","theme-light")}setTheme(n){const r=document.querySelector(":root");if(!r)throw new Error("No root!?");r.classList.add(n),localStorage.setItem("theme",n)}detectTheme(){const n=localStorage.getItem("theme");"theme-dark"!==n&&"theme-light"!==n?window.matchMedia("(prefers-color-scheme: dark)").matches?this.setTheme("theme-dark"):(window.matchMedia("(prefers-color-scheme: light)"),this.setTheme("theme-light")):this.setTheme(n)}ngOnInit(){this.detectTheme()}}return e.\u0275fac=function(n){return new(n||e)(D(gt))},e.\u0275cmp=Lt({type:e,selectors:[["app-root"]],viewQuery:function(n,r){if(1&n&&hd(lh,5),2&n){let o;La(o=Va())&&(r.chatComponent=o.first)}},decls:36,vars:10,consts:[["title","Dark theme on/off",3,"click"],[3,"hidden"],["routerLinkActive","active-link","routerLink","/",3,"routerLinkActiveOptions"],["routerLinkActive","active-link","routerLink","/login"],["routerLinkActive","active-link","routerLink","/checklists"],["routerLinkActive","active-link","routerLink","/contacts"],["routerLinkActive","active-link","routerLink","/todo"],["id","logout",3,"click"],["id","tools",3,"hidden"],["id","toolbar"],[3,"click"],["id","chatwindow",3,"hidden"],["id","chattitlebar",3,"mousedown","touchstart"],[1,"close-button",3,"click"],["id","chatcontent"]],template:function(n,r){1&n&&(y(0,"nav")(1,"button",0),P("click",function(){return r.toggleTheme()}),b(2,"\u2600"),C(),y(3,"span",1)(4,"h1"),b(5),C(),y(6,"a",2),b(7,"Home"),C(),y(8,"a",3),b(9,"Login"),C()(),y(10,"span",1)(11,"h1"),b(12),C(),y(13,"a",2),b(14,"Home"),C(),y(15,"a",4),b(16,"Checklists"),C(),y(17,"a",5),b(18,"Contacts"),C(),y(19,"a",6),b(20,"Todo"),C(),y(21,"a",7),P("click",function(){return r.logout()}),b(22,"Logout"),C()()(),y(23,"div",8)(24,"div",9)(25,"button",10),P("click",function(){return r.toggleChatHidden()}),b(26,"Open Chat"),C()(),y(27,"div",11)(28,"div",12),P("mousedown",function(i){return r.startMouseDragging(i)})("touchstart",function(i){return r.startTouchDragging(i)}),b(29,"Chat"),y(30,"button",13),P("click",function(){return r.toggleChatHidden()}),b(31,"\u2716"),C()(),y(32,"div",14),de(33,"app-chat"),C()()(),y(34,"main"),de(35,"router-outlet"),C()),2&n&&(R(3),W("hidden",r.isAuthenticated()),R(2),ht(r.title),R(1),W("routerLinkActiveOptions",nd(8,bE)),R(4),W("hidden",!r.isAuthenticated()),R(2),ht(r.username()),R(1),W("routerLinkActiveOptions",nd(9,bE)),R(10),W("hidden",!r.isAuthenticated()),R(4),W("hidden",r.isChatHidden()))},dependencies:[Jf,Fo,pE,lh],styles:["h1[_ngcontent-%COMP%]{margin:0;float:right}nav[_ngcontent-%COMP%]{display:block;background:#93c6f948 linear-gradient(80deg,rgb(132,168,205) 0%,rgb(167,205,243) 30%,rgba(0,0,0,0) 100%);border-bottom:1px solid #336699;padding:.5em}nav[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:.2rem .3rem;text-decoration:none;display:inline-block;color:#3d3d3d;border-radius:2px}nav[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#fff;background-color:#42545c;-webkit-text-decoration:underline #93c6f9;text-decoration:underline #93c6f9}.active-link[_ngcontent-%COMP%]{background-color:#00000048}#logout[_ngcontent-%COMP%]{color:#ef4040;cursor:pointer;float:right;margin-right:1em;font-size:large}#logout[_ngcontent-%COMP%]:hover{background-color:#604040}#toolbar[_ngcontent-%COMP%]{margin-top:-.8em;margin-bottom:-.8em;margin-left:.2em}#chatwindow[_ngcontent-%COMP%]{border:1px solid black;z-index:9990;background:#f0f0f080;border-radius:2px;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);box-shadow:3px 3px 3px #0006;position:fixed;top:5em;left:5em}#chattitlebar[_ngcontent-%COMP%]{border-bottom:1px solid black;padding:2px;background:#d0d0d080;cursor:grab}#chatcontent[_ngcontent-%COMP%]{padding:2px}.close-button[_ngcontent-%COMP%]{padding:0 4px;margin:0;float:right}"]}),e})();class Yt{constructor(t,n){this.http=t,this.appMessageService=n,this.httpOptions={headers:new Ke({"Content-Type":"application/json",Accept:"application/json"})}}handleError(t="operation",n){return r=>(console.error(r),this.log(`Error @ ${t}: ${r.status} ${r.statusText}`),F(n))}log(t){this.appMessageService.add(`TodoService: ${t}`)}getTodos(){return this.http.get(Yt.REST_URL,this.httpOptions).pipe(J(t=>this.log(`fetched ${t.length} todos`)),ge(this.handleError("getTodos",[])))}addTodo(t){return this.http.post(Yt.REST_URL,{text:t},this.httpOptions).pipe(J(r=>this.log(`added todo w/ id=${r.id}`)),ge(this.handleError("addTodo")))}deleteTodo(t){return this.http.delete(`${Yt.REST_URL}/${t}`,this.httpOptions).pipe(J(r=>this.log(`deleted todo id=${t}`)),ge(this.handleError("deleteTodo")))}}function sV(e,t){if(1&e){const n=Sa();y(0,"li")(1,"div",6)(2,"span",7),b(3),C(),y(4,"span",8),b(5),Pi(6,"date"),C(),y(7,"button",9),P("click",function(){const i=Os(n).$implicit;return xs(Si().delete(i))}),b(8,"x"),C()(),y(9,"span",10),b(10),C()()}if(2&e){const n=t.$implicit;R(3),ht(n.id),R(2),ht(Fi(6,3,n.dateCreated,"dd-MM-yyyy HH:mm:ss")),R(5),ht(n.text)}}Yt.REST_URL=Sr_restServerUrl+"/api/todos",Yt.\u0275fac=function(t){return new(t||Yt)(A(Mr),A(So))},Yt.\u0275prov=O({token:Yt,factory:Yt.\u0275fac,providedIn:"root"});let aV=(()=>{class e{constructor(n){this.todoService=n,this.todos=[],this.newTodo=""}getTodos(){this.todoService.getTodos().subscribe(n=>this.todos=n)}ngOnInit(){this.getTodos()}sendTodo(){this.todoService.addTodo(this.newTodo).subscribe(()=>this.getTodos()),this.newTodo=""}delete(n){this.todoService.deleteTodo(n.id).subscribe(()=>this.todos=this.todos.filter(r=>r!==n))}}return e.\u0275fac=function(n){return new(n||e)(D(Yt))},e.\u0275cmp=Lt({type:e,selectors:[["app-todo"]],decls:13,vars:2,consts:[[1,"element-list"],[4,"ngFor","ngForOf"],[1,"input"],["for","input-text"],["id","input-text","placeholder","text",3,"ngModel","ngModelChange","keydown.enter"],[3,"click"],[1,"element-title"],[1,"badge"],[1,"date"],["type","button","title","Delete todo",1,"delete",3,"click"],[1,"text"]],template:function(n,r){1&n&&(y(0,"h2"),b(1,"Todos"),C(),y(2,"ol",0),Rn(3,sV,11,6,"li",1),C(),y(4,"h2"),b(5,"New Todo:"),C(),y(6,"div",2)(7,"div")(8,"label",3),b(9,"Text:"),C(),y(10,"input",4),P("ngModelChange",function(i){return r.newTodo=i})("keydown.enter",function(){return r.sendTodo()}),C(),y(11,"button",5),P("click",function(){return r.sendTodo()}),b(12,"Send"),C()()()),2&n&&(R(3),W("ngForOf",r.todos),R(7),W("ngModel",r.newTodo))},dependencies:[wr,hn,er,kn,$i],styles:[".element-list[_ngcontent-%COMP%]{margin-left:2em;padding:0}.element-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{position:relative;left:0;margin-top:.5em;padding:0;border-radius:4px;border:solid 1px #808080}.element-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover{background-color:#e6e6e680}.element-title[_ngcontent-%COMP%]{display:block;text-align:left;font-size:x-small}.element-title[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline-block;color:#fff}.element-title[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:small;padding:1px 6px;margin:0;border-radius:2px;float:right;background-color:#ff000080}.badge[_ngcontent-%COMP%]{padding:.3em .7em;background-color:#405061;border-radius:2px 0 0}.date[_ngcontent-%COMP%]{padding:.3em .7em;background-color:#605061;border-radius:0 0 2px}.text[_ngcontent-%COMP%]{align-self:center;margin:0 .1em .1em}.input[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{left:0;margin:0 0 .2em;padding:0}.input[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:inline-block;width:4em;text-align:right;padding-right:.2em}"]}),e})();class vn{constructor(t,n){this.http=t,this.appMessageService=n,this.httpOptions={headers:new Ke({"Content-Type":"application/json",Accept:"application/json"})}}handleError(t="operation",n){return r=>(console.error(r),this.log(`Error @ ${t}: ${r.status} ${r.statusText}`),F(n))}log(t){this.appMessageService.add(`NewsService: ${t}`)}getNewsPosts(){return this.http.get(vn.REST_URL,this.httpOptions).pipe(J(t=>this.log(`fetched ${t.length} news posts`)),ge(this.handleError("getNews",[])))}addNewsPost(t,n){return this.http.post(vn.REST_URL,{author:t,text:n},this.httpOptions).pipe(J(o=>this.log(`added message w/ id=${o.id}`)),ge(this.handleError("addNewsPost")))}}function lV(e,t){if(1&e&&(y(0,"p"),b(1),C()),2&e){const n=t.$implicit;R(1),ht(n.text)}}vn.REST_URL=Sr_restServerUrl+"/api/news",vn.\u0275fac=function(t){return new(t||vn)(A(Mr),A(So))},vn.\u0275prov=O({token:vn,factory:vn.\u0275fac,providedIn:"root"});let uV=(()=>{class e{constructor(n,r){this.loginService=n,this.newsService=r,this.messages=[]}getNews(){this.loginService.isAuthenticated()&&this.newsService.getNewsPosts().subscribe(n=>this.messages=n)}ngOnInit(){this.getNews()}isAuthenticated(){return this.loginService.isAuthenticated()}username(){return this.loginService.getUsername()}}return e.\u0275fac=function(n){return new(n||e)(D(gt),D(vn))},e.\u0275cmp=Lt({type:e,selectors:[["app-home"]],decls:9,vars:4,consts:[[3,"hidden"],[1,"context"],[4,"ngFor","ngForOf"]],template:function(n,r){1&n&&(y(0,"span",0)(1,"p"),b(2),C(),y(3,"h3"),b(4,"News"),C(),y(5,"div",1),Rn(6,lV,2,1,"p",2),C()(),y(7,"p",0),b(8,"Welcome to our family site! Please login."),C()),2&n&&(W("hidden",!r.isAuthenticated()),R(2),tt("Welcome, ",r.username(),"!"),R(4),W("ngForOf",r.messages),R(1),W("hidden",r.isAuthenticated()))},dependencies:[wr],styles:[".context[_ngcontent-%COMP%]{margin-left:1em}"]}),e})(),cV=(()=>{class e{constructor(n,r){this.app=n,this.router=r,this.error=!1,this.rememberme=!1,this.credentials={username:"",password:""},this.checkPreviousLogin()}ngOnInit(){}checkPreviousLogin(){this.credentials.username=localStorage.getItem("username"),this.credentials.password=localStorage.getItem("password"),this.credentials.username&&this.credentials.password&&this.login()}login(){return this.app.authenticate(this.credentials).subscribe({next:()=>{this.rememberme&&(localStorage.setItem("username",this.credentials.username),localStorage.setItem("password",this.credentials.password)),this.router.navigateByUrl("/").then(n=>{})},error:n=>{console.log("Login failed",n),this.error=!0}}),!1}}return e.\u0275fac=function(n){return new(n||e)(D(gt),D(We))},e.\u0275cmp=Lt({type:e,selectors:[["app-login"]],decls:19,vars:4,consts:[[1,"alert",3,"hidden"],["role","form",3,"submit"],[1,"form-group"],["for","username"],["type","text","id","username","name","username","placeholder","username",1,"form-control",3,"ngModel","ngModelChange"],["for","password"],["type","password","id","password","name","password","placeholder","password",1,"form-control",3,"ngModel","ngModelChange"],["for","rememberme"],["type","checkbox","id","rememberme","name","rememberme",1,"form-control",3,"ngModel","ngModelChange"],["type","submit",1,"btn","btn-primary"]],template:function(n,r){1&n&&(y(0,"h2"),b(1,"Login form"),C(),y(2,"p",0),b(3," There was a problem logging in. Please try again.\n"),C(),y(4,"form",1),P("submit",function(){return r.login()}),y(5,"div",2)(6,"label",3),b(7,"Username:"),C(),y(8,"input",4),P("ngModelChange",function(i){return r.credentials.username=i}),C()(),y(9,"div",2)(10,"label",5),b(11,"Password:"),C(),y(12,"input",6),P("ngModelChange",function(i){return r.credentials.password=i}),C()(),y(13,"div",2)(14,"label",7),b(15,"Remember me:"),C(),y(16,"input",8),P("ngModelChange",function(i){return r.rememberme=i}),C()(),y(17,"button",9),b(18,"Login"),C()()),2&n&&(R(2),W("hidden",!r.error),R(6),W("ngModel",r.credentials.username),R(4),W("ngModel",r.credentials.password),R(4),W("ngModel",r.rememberme))},dependencies:[L_,hn,ff,er,E_,kn,gl],styles:[".form-group[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:inline-block;width:8em;padding-right:.2em}.form-group[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{margin:0 0 .2em}.alert[_ngcontent-%COMP%]{color:red}button[_ngcontent-%COMP%]{border:revert}"]}),e})();const ko=(e,t)=>{const n=S(gt),r=S(We);return!!n.isAuthenticated()||r.parseUrl("/login")};class mt{constructor(t,n){this.http=t,this.appMessageService=n,this.httpOptions={headers:new Ke({"Content-Type":"application/json",Accept:"application/json"})}}handleError(t="operation",n){return r=>(console.error(r),this.log(`Error @ ${t}: ${r.status} ${r.statusText}`),F(n))}log(t){this.appMessageService.add(`TodoService: ${t}`)}getContacts(){return this.http.get(mt.REST_URL,this.httpOptions).pipe(J(t=>this.log(`fetched ${t.length} contacts`)),ge(this.handleError("getContacts",[])))}getContact(t){return this.http.get(`${mt.REST_URL}/${t}`,this.httpOptions).pipe(J(n=>this.log(`fetched Contact ${n.id}`)),ge(this.handleError("getContact",{})))}addContact(t){return this.http.post(mt.REST_URL,t,this.httpOptions).pipe(J(n=>this.log(`added contact w/ id=${n.id}`)),ge(this.handleError("addContact")))}saveContact(t){return this.http.post(mt.REST_URL,t,this.httpOptions).pipe(J(n=>this.log(`added todo w/ id=${n.id}`)),ge(this.handleError("addContact")))}deleteContact(t){return this.http.delete(`${mt.REST_URL}/${t}`,this.httpOptions).pipe(J(r=>this.log(`deleted contact id=${t}`)),ge(this.handleError("deleteContact")))}}mt.REST_URL=Sr_restServerUrl+"/api/contacts",mt.\u0275fac=function(t){return new(t||mt)(A(Mr),A(So))},mt.\u0275prov=O({token:mt,factory:mt.\u0275fac,providedIn:"root"});const dV=function(e){return["/contact",e]};function fV(e,t){if(1&e&&(y(0,"li")(1,"div",18)(2,"span")(3,"a",19),b(4),C()()(),y(5,"span",20),b(6),de(7,"br"),b(8),de(9,"br"),b(10),de(11,"br"),b(12,"Website: "),y(13,"a",21),b(14),C(),de(15,"br"),b(16),C()()),2&e){const n=t.$implicit;R(3),W("routerLink",rd(9,dV,n.id)),R(1),Ra("",n.firstName," ",n.lastName,""),R(2),tt(" Telephone: ",n.telephone," "),R(2),tt("E-mail: ",n.email," "),R(2),tt("Address: ",n.address," "),R(3),Ia("href","https://",n.website,"",Ku),R(1),ht(n.website),R(2),tt("Description: ",n.description,"")}}let hV=(()=>{class e{constructor(n){this.contactsService=n,this.contacts=[],this.newContact={}}getContacts(){this.contactsService.getContacts().subscribe(n=>this.contacts=n)}ngOnInit(){this.getContacts()}sendContact(){this.contactsService.addContact(this.newContact).subscribe(()=>this.getContacts()),this.newContact={}}}return e.\u0275fac=function(n){return new(n||e)(D(mt))},e.\u0275cmp=Lt({type:e,selectors:[["app-contacts"]],decls:38,vars:8,consts:[[1,"element-list"],[4,"ngFor","ngForOf"],[1,"input"],["for","input-firstName"],["id","input-firstName","placeholder","firstname",3,"ngModel","ngModelChange"],["for","input-lastName"],["id","input-lastName","placeholder","lastname",3,"ngModel","ngModelChange"],["for","input-telephone"],["id","input-telephone","placeholder","telephone",3,"ngModel","ngModelChange"],["for","input-email"],["id","input-email","placeholder","email",3,"ngModel","ngModelChange"],["for","input-website"],["id","input-website","placeholder","website",3,"ngModel","ngModelChange"],["for","input-address"],["id","input-address","placeholder","address",3,"ngModel","ngModelChange"],["for","input-description"],["id","input-description","placeholder","description",3,"ngModel","ngModelChange"],[3,"click"],[1,"element-title"],[3,"routerLink"],[1,"text"],["target","_blank",3,"href"]],template:function(n,r){1&n&&(y(0,"h2"),b(1,"Contacts"),C(),y(2,"ol",0),Rn(3,fV,17,11,"li",1),C(),y(4,"h2"),b(5,"New Contact:"),C(),y(6,"div",2)(7,"div")(8,"label",3),b(9,"Firstname:"),C(),y(10,"input",4),P("ngModelChange",function(i){return r.newContact.firstName=i}),C(),de(11,"br"),y(12,"label",5),b(13,"Lastname:"),C(),y(14,"input",6),P("ngModelChange",function(i){return r.newContact.lastName=i}),C(),de(15,"br"),y(16,"label",7),b(17,"Telephone:"),C(),y(18,"input",8),P("ngModelChange",function(i){return r.newContact.telephone=i}),C(),de(19,"br"),y(20,"label",9),b(21,"Email:"),C(),y(22,"input",10),P("ngModelChange",function(i){return r.newContact.email=i}),C(),de(23,"br"),y(24,"label",11),b(25,"Website:"),C(),y(26,"input",12),P("ngModelChange",function(i){return r.newContact.website=i}),C(),de(27,"br"),y(28,"label",13),b(29,"Address:"),C(),y(30,"input",14),P("ngModelChange",function(i){return r.newContact.address=i}),C(),de(31,"br"),y(32,"label",15),b(33,"Description:"),C(),y(34,"input",16),P("ngModelChange",function(i){return r.newContact.description=i}),C(),de(35,"br"),y(36,"button",17),P("click",function(){return r.sendContact()}),b(37,"Send"),C()()()),2&n&&(R(3),W("ngForOf",r.contacts),R(7),W("ngModel",r.newContact.firstName),R(4),W("ngModel",r.newContact.lastName),R(4),W("ngModel",r.newContact.telephone),R(4),W("ngModel",r.newContact.email),R(4),W("ngModel",r.newContact.website),R(4),W("ngModel",r.newContact.address),R(4),W("ngModel",r.newContact.description))},dependencies:[wr,hn,er,kn,Fo]}),e})();class yt{constructor(t,n){this.http=t,this.appMessageService=n,this.httpOptions={headers:new Ke({"Content-Type":"application/json",Accept:"application/json"})}}handleError(t="operation",n){return r=>(console.error(r),this.log(`Error @ ${t}: ${r.status} ${r.statusText}`),F(n))}log(t){this.appMessageService.add(`ChecklistService: ${t}`)}getChecklists(){return this.http.get(yt.REST_URL,this.httpOptions).pipe(J(t=>this.log(`fetched ${t.length} checklists`)),ge(this.handleError("getChecklists",[])))}getChecklist(t){return this.http.get(`${yt.REST_URL}/${t}`,this.httpOptions).pipe(J(n=>this.log(`fetched checklist ${n.id}`)),ge(this.handleError("getChecklist",{})))}addChecklist(t){return this.http.post(yt.REST_URL,{name:t},this.httpOptions).pipe(J(r=>this.log(`added todo w/ id=${r.id}`)),ge(this.handleError("addChecklist")))}saveChecklist(t){return this.http.post(yt.REST_URL,t,this.httpOptions).pipe(J(n=>this.log(`added todo w/ id=${n.id}`)),ge(this.handleError("addChecklist")))}deleteChecklist(t){return this.http.delete(`${yt.REST_URL}/${t}`,this.httpOptions).pipe(J(r=>this.log(`deleted checklist id=${t}`)),ge(this.handleError("deleteChecklist")))}}function pV(e,t){if(1&e&&(y(0,"li"),b(1),C()),2&e){const n=t.$implicit;R(1),tt(" ",n," ")}}yt.REST_URL=Sr_restServerUrl+"/api/checklists",yt.\u0275fac=function(t){return new(t||yt)(A(Mr),A(So))},yt.\u0275prov=O({token:yt,factory:yt.\u0275fac,providedIn:"root"});const gV=function(e){return["/checklist",e]};function mV(e,t){if(1&e&&(y(0,"li")(1,"span",6)(2,"a",7),b(3),C(),y(4,"ul",8),Rn(5,pV,2,1,"li",1),C()()()),2&e){const n=t.$implicit;R(2),W("routerLink",rd(3,gV,n.id)),R(1),ht(n.name),R(2),W("ngForOf",n.checks)}}let yV=(()=>{class e{constructor(n){this.checklistService=n,this.checklists=[],this.newChecklist=""}getChecklists(){this.checklistService.getChecklists().subscribe(n=>this.checklists=n)}ngOnInit(){this.getChecklists()}sendChecklist(){""!==this.newChecklist&&(this.checklistService.addChecklist(this.newChecklist).subscribe(()=>this.getChecklists()),this.newChecklist="")}}return e.\u0275fac=function(n){return new(n||e)(D(yt))},e.\u0275cmp=Lt({type:e,selectors:[["app-checklists"]],decls:13,vars:2,consts:[[1,"element-list"],[4,"ngFor","ngForOf"],[1,"input"],["for","input-name"],["id","input-name","placeholder","myChecklist",3,"ngModel","ngModelChange","keydown.enter"],[3,"click"],[1,"text"],[3,"routerLink"],[1,"item-list"]],template:function(n,r){1&n&&(y(0,"h2"),b(1,"Checklists"),C(),y(2,"ol",0),Rn(3,mV,6,5,"li",1),C(),y(4,"h2"),b(5,"New Checklist:"),C(),y(6,"div",2)(7,"div")(8,"label",3),b(9,"name:"),C(),y(10,"input",4),P("ngModelChange",function(i){return r.newChecklist=i})("keydown.enter",function(){return r.sendChecklist()}),C(),y(11,"button",5),P("click",function(){return r.sendChecklist()}),b(12,"Send"),C()()()),2&n&&(R(3),W("ngForOf",r.checklists),R(7),W("ngModel",r.newChecklist))},dependencies:[wr,hn,er,kn,Fo]}),e})();function vV(e,t){if(1&e){const n=Sa();y(0,"li"),b(1),y(2,"button",8),P("click",function(){const i=Os(n).index;return xs(Si().removeItem(i))}),b(3,"x"),C()()}if(2&e){const n=t.$implicit;R(1),tt("",n," ")}}const CV=[{path:"",component:uV,pathMatch:"full"},{path:"login",component:cV},{path:"chat",component:lh,canActivate:[ko]},{path:"todo",component:aV,canActivate:[ko]},{path:"contacts",component:hV,canActivate:[ko]},{path:"contact/:id",component:(()=>{class e{constructor(n,r){this.contactsService=n,this.router=r,this.route=S(rr),this.contactId=-1,this.contact={},this.contactId=Number(this.route.snapshot.params.id)}getChecklist(){this.contactsService.getContact(this.contactId).subscribe(n=>this.contact=n)}ngOnInit(){this.getChecklist()}saveContact(){this.contactsService.saveContact(this.contact).subscribe()}deleteContact(){this.contactsService.deleteContact(this.contactId).subscribe(),this.router.navigateByUrl("/contacts").then(n=>{})}}return e.\u0275fac=function(n){return new(n||e)(D(mt),D(We))},e.\u0275cmp=Lt({type:e,selectors:[["app-edit-contact"]],decls:43,vars:14,consts:[["type","button","title","Delete contact",1,"delete",3,"click"],[1,"input"],["for","input-firstName"],["id","input-firstName","placeholder","firstname",3,"ngModel","ngModelChange"],["for","input-lastName"],["id","input-lastName","placeholder","lastname",3,"ngModel","ngModelChange"],["for","input-telephone"],["id","input-telephone","placeholder","telephone",3,"ngModel","ngModelChange"],["for","input-email"],["id","input-email","placeholder","email",3,"ngModel","ngModelChange"],["for","input-website"],["id","input-website","placeholder","website",3,"ngModel","ngModelChange"],["for","input-address"],["id","input-address","placeholder","address",3,"ngModel","ngModelChange"],["for","input-description"],["id","input-description","placeholder","description",3,"ngModel","ngModelChange"],[3,"click"]],template:function(n,r){1&n&&(y(0,"h2"),b(1),C(),y(2,"p"),b(3),Pi(4,"date"),y(5,"button",0),P("click",function(){return r.deleteContact()}),b(6,"Delete contact"),C(),de(7,"br"),b(8),C(),de(9,"p"),y(10,"h3"),b(11,"Details:"),C(),y(12,"div",1)(13,"label",2),b(14,"Firstname:"),C(),y(15,"input",3),P("ngModelChange",function(i){return r.contact.firstName=i}),C(),de(16,"br"),y(17,"label",4),b(18,"Lastname:"),C(),y(19,"input",5),P("ngModelChange",function(i){return r.contact.lastName=i}),C(),de(20,"br"),y(21,"label",6),b(22,"Telephone:"),C(),y(23,"input",7),P("ngModelChange",function(i){return r.contact.telephone=i}),C(),de(24,"br"),y(25,"label",8),b(26,"Email:"),C(),y(27,"input",9),P("ngModelChange",function(i){return r.contact.email=i}),C(),de(28,"br"),y(29,"label",10),b(30,"Website:"),C(),y(31,"input",11),P("ngModelChange",function(i){return r.contact.website=i}),C(),de(32,"br"),y(33,"label",12),b(34,"Address:"),C(),y(35,"input",13),P("ngModelChange",function(i){return r.contact.address=i}),C(),de(36,"br"),y(37,"label",14),b(38,"Description:"),C(),y(39,"input",15),P("ngModelChange",function(i){return r.contact.description=i}),C(),de(40,"br"),y(41,"button",16),P("click",function(){return r.saveContact()}),b(42,"Save"),C()()),2&n&&(R(1),Ra("Editing contact: ",r.contact.firstName," ",r.contact.lastName,""),R(2),tt("Created on: ",Fi(4,11,r.contact.dateCreated,"dd-MM-yyyy HH:mm:ss")," "),R(5),tt("Id: ",r.contact.id,"\n"),R(7),W("ngModel",r.contact.firstName),R(4),W("ngModel",r.contact.lastName),R(4),W("ngModel",r.contact.telephone),R(4),W("ngModel",r.contact.email),R(4),W("ngModel",r.contact.website),R(4),W("ngModel",r.contact.address),R(4),W("ngModel",r.contact.description))},dependencies:[hn,er,kn,$i],styles:[".delete[_ngcontent-%COMP%]{background-color:#ff000080}"]}),e})(),canActivate:[ko]},{path:"checklists",component:yV,canActivate:[ko]},{path:"checklist/:id",component:(()=>{class e{constructor(n,r){this.checklistService=n,this.router=r,this.route=S(rr),this.checklistId=-1,this.checklist={},this.newItem="",this.checklistId=Number(this.route.snapshot.params.id)}getChecklist(){this.checklistService.getChecklist(this.checklistId).subscribe(n=>this.checklist=n)}ngOnInit(){this.getChecklist()}addItem(){""!==this.newItem&&(this.checklist.checks.push(this.newItem),this.newItem="",this.saveCheckList())}removeItem(n){(this.checklist.checks[n]||""===this.checklist.checks[n])&&(this.checklist.checks.splice(n,1),this.saveCheckList())}saveCheckList(){this.checklistService.saveChecklist(this.checklist).subscribe()}deleteChecklist(){this.checklistService.deleteChecklist(this.checklistId).subscribe(),this.router.navigateByUrl("/checklists").then(n=>{})}}return e.\u0275fac=function(n){return new(n||e)(D(yt),D(We))},e.\u0275cmp=Lt({type:e,selectors:[["app-edit-checklist"]],decls:31,vars:9,consts:[["type","button","title","Delete checklist",1,"delete",3,"click"],[4,"ngFor","ngForOf"],[1,"input"],["for","input-item"],["id","input-item","placeholder","Remember x",3,"ngModel","ngModelChange","keydown.enter"],[3,"click"],["for","input-checklist-name"],["id","input-checklist-name","placeholder","myChecklist",3,"ngModel","ngModelChange","keydown.enter"],["type","button","title","Delete item",1,"delete",3,"click"]],template:function(n,r){1&n&&(y(0,"h2"),b(1),C(),y(2,"p"),b(3),Pi(4,"date"),y(5,"button",0),P("click",function(){return r.deleteChecklist()}),b(6,"Delete checklist"),C(),de(7,"br"),b(8),C(),y(9,"h3"),b(10,"Items:"),C(),y(11,"ol"),Rn(12,vV,4,1,"li",1),C(),y(13,"h2"),b(14,"add item:"),C(),y(15,"div",2)(16,"div")(17,"label",3),b(18,"item:"),C(),y(19,"input",4),P("ngModelChange",function(i){return r.newItem=i})("keydown.enter",function(){return r.addItem()}),C(),y(20,"button",5),P("click",function(){return r.addItem()}),b(21,"Add"),C()()(),y(22,"h2"),b(23,"change checklist name:"),C(),y(24,"div",2)(25,"div")(26,"label",6),b(27,"newName:"),C(),y(28,"input",7),P("ngModelChange",function(i){return r.checklist.name=i})("keydown.enter",function(){return r.saveCheckList()}),C(),y(29,"button",5),P("click",function(){return r.saveCheckList()}),b(30,"Save"),C()()()),2&n&&(R(1),tt("Editing checklist: ",r.checklist.name,""),R(2),tt("Created on: ",Fi(4,6,r.checklist.dateCreated,"dd-MM-yyyy HH:mm:ss")," "),R(5),tt("Id: ",r.checklist.id,"\n"),R(4),W("ngForOf",r.checklist.checks),R(7),W("ngModel",r.newItem),R(9),W("ngModel",r.checklist.name))},dependencies:[wr,hn,er,kn,$i],styles:[".delete[_ngcontent-%COMP%]{background-color:#ff000080}"]}),e})(),canActivate:[ko]}];let DV=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Vt({type:e}),e.\u0275inj=Nt({imports:[wE.forRoot(CV),wE]}),e})(),_V=(()=>{class e{constructor(n){this.auth=n}intercept(n,r){if(this.auth.isAuthenticated()){const o=this.auth.getAuthorizationToken(),i=n.clone({headers:n.headers.set("Authorization",o)});return r.handle(i)}return r.handle(n)}}return e.\u0275fac=function(n){return new(n||e)(A(gt))},e.\u0275prov=O({token:e,factory:e.\u0275fac}),e})(),wV=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Vt({type:e,bootstrap:[iV]}),e.\u0275inj=Nt({providers:[{provide:uw,useClass:_V,multi:!0},{provide:Yn,useClass:aD}],imports:[Z1,oF,TF,DV]}),e})();W1().bootstrapModule(wV).catch(e=>console.error(e))}},le=>{le(le.s=534)}]); \ No newline at end of file diff --git a/front/dist/familySite1/main.b711afe55c8aa989.js b/front/dist/familySite1/main.b711afe55c8aa989.js new file mode 100644 index 0000000..27bbaef --- /dev/null +++ b/front/dist/familySite1/main.b711afe55c8aa989.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkfamilySite1=self.webpackChunkfamilySite1||[]).push([[179],{830:()=>{function le(e){return"function"==typeof e}function jo(e){const n=e(r=>{Error.call(r),r.stack=(new Error).stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}const ms=jo(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map((r,o)=>`${o+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=n});function Bo(e,t){if(e){const n=e.indexOf(t);0<=n&&e.splice(n,1)}}class It{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;const{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(const i of n)i.remove(this);else n.remove(this);const{initialTeardown:r}=this;if(le(r))try{r()}catch(i){t=i instanceof ms?i.errors:[i]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const i of o)try{_h(i)}catch(s){t=t??[],s instanceof ms?t=[...t,...s.errors]:t.push(s)}}if(t)throw new ms(t)}}add(t){var n;if(t&&t!==this)if(this.closed)_h(t);else{if(t instanceof It){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(t)}}_hasParent(t){const{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){const{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){const{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&Bo(n,t)}remove(t){const{_finalizers:n}=this;n&&Bo(n,t),t instanceof It&&t._removeParent(this)}}It.EMPTY=(()=>{const e=new It;return e.closed=!0,e})();const Ch=It.EMPTY;function Dh(e){return e instanceof It||e&&"closed"in e&&le(e.remove)&&le(e.add)&&le(e.unsubscribe)}function _h(e){le(e)?e():e.unsubscribe()}const ir={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},ys={setTimeout(e,t,...n){const{delegate:r}=ys;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){const{delegate:t}=ys;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function wh(e){ys.setTimeout(()=>{const{onUnhandledError:t}=ir;if(!t)throw e;t(e)})}function Eh(){}const Bw=jl("C",void 0,void 0);function jl(e,t,n){return{kind:e,value:t,error:n}}let sr=null;function vs(e){if(ir.useDeprecatedSynchronousErrorHandling){const t=!sr;if(t&&(sr={errorThrown:!1,error:null}),e(),t){const{errorThrown:n,error:r}=sr;if(sr=null,n)throw r}}else e()}class Bl extends It{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Dh(t)&&t.add(this)):this.destination=Yw}static create(t,n,r){return new Uo(t,n,r)}next(t){this.isStopped?zl(function zw(e){return jl("N",e,void 0)}(t),this):this._next(t)}error(t){this.isStopped?zl(function Uw(e){return jl("E",void 0,e)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?zl(Bw,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const Ww=Function.prototype.bind;function Ul(e,t){return Ww.call(e,t)}class qw{constructor(t){this.partialObserver=t}next(t){const{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Cs(r)}}error(t){const{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Cs(r)}else Cs(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Cs(n)}}}class Uo extends Bl{constructor(t,n,r){let o;if(super(),le(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&ir.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&Ul(t.next,i),error:t.error&&Ul(t.error,i),complete:t.complete&&Ul(t.complete,i)}):o=t}this.destination=new qw(o)}}function Cs(e){ir.useDeprecatedSynchronousErrorHandling?function Gw(e){ir.useDeprecatedSynchronousErrorHandling&&sr&&(sr.errorThrown=!0,sr.error=e)}(e):wh(e)}function zl(e,t){const{onStoppedNotification:n}=ir;n&&ys.setTimeout(()=>n(e,t))}const Yw={closed:!0,next:Eh,error:function Zw(e){throw e},complete:Eh},Gl="function"==typeof Symbol&&Symbol.observable||"@@observable";function ar(e){return e}function bh(e){return 0===e.length?ar:1===e.length?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}let be=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){const r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){const i=function Kw(e){return e&&e instanceof Bl||function Qw(e){return e&&le(e.next)&&le(e.error)&&le(e.complete)}(e)&&Dh(e)}(n)?n:new Uo(n,r,o);return vs(()=>{const{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return new(r=Mh(r))((o,i)=>{const s=new Uo({next:a=>{try{n(a)}catch(l){i(l),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(n)}[Gl](){return this}pipe(...n){return bh(n)(this)}toPromise(n){return new(n=Mh(n))((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function Mh(e){var t;return null!==(t=e??ir.Promise)&&void 0!==t?t:Promise}const Jw=jo(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let Dn=(()=>{class e extends be{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){const r=new Sh(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Jw}next(n){vs(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(n)}})}error(n){vs(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;const{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){vs(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return(null===(n=this.observers)||void 0===n?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){const{hasError:r,isStopped:o,observers:i}=this;return r||o?Ch:(this.currentObservers=null,i.push(n),new It(()=>{this.currentObservers=null,Bo(i,n)}))}_checkFinalizedStatuses(n){const{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){const n=new be;return n.source=this,n}}return e.create=(t,n)=>new Sh(t,n),e})();class Sh extends Dn{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.next)||void 0===r||r.call(n,t)}error(t){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.error)||void 0===r||r.call(n,t)}complete(){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===n||n.call(t)}_subscribe(t){var n,r;return null!==(r=null===(n=this.source)||void 0===n?void 0:n.subscribe(t))&&void 0!==r?r:Ch}}function Ih(e){return le(e?.lift)}function je(e){return t=>{if(Ih(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function He(e,t,n,r,o){return new eE(e,t,n,r,o)}class eE extends Bl{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(l){t.error(l)}}:super._next,this._error=o?function(a){try{o(a)}catch(l){t.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:n}=this;super.unsubscribe(),!n&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}}}function te(e,t){return je((n,r)=>{let o=0;n.subscribe(He(r,i=>{r.next(e.call(t,i,o++))}))})}function lr(e){return this instanceof lr?(this.v=e,this):new lr(e)}function oE(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,t=e[Symbol.asyncIterator];return t?t.call(e):(e=function Nh(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,l){!function o(i,s,a,l){Promise.resolve(l).then(function(u){i({value:u,done:a})},s)}(a,l,(s=e[i](s)).done,s.value)})}}}const Rh=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function Oh(e){return le(e?.then)}function Ph(e){return le(e[Gl])}function xh(e){return Symbol.asyncIterator&&le(e?.[Symbol.asyncIterator])}function Fh(e){return new TypeError(`You provided ${null!==e&&"object"==typeof e?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const kh=function sE(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Lh(e){return le(e?.[kh])}function Vh(e){return function rE(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,r=n.apply(e,t||[]),i=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(f){r[f]&&(o[f]=function(h){return new Promise(function(p,m){i.push([f,h,p,m])>1||a(f,h)})})}function a(f,h){try{!function l(f){f.value instanceof lr?Promise.resolve(f.value.v).then(u,c):d(i[0][2],f)}(r[f](h))}catch(p){d(i[0][3],p)}}function u(f){a("next",f)}function c(f){a("throw",f)}function d(f,h){f(h),i.shift(),i.length&&a(i[0][0],i[0][1])}}(this,arguments,function*(){const n=e.getReader();try{for(;;){const{value:r,done:o}=yield lr(n.read());if(o)return yield lr(void 0);yield yield lr(r)}}finally{n.releaseLock()}})}function Hh(e){return le(e?.getReader)}function Tt(e){if(e instanceof be)return e;if(null!=e){if(Ph(e))return function aE(e){return new be(t=>{const n=e[Gl]();if(le(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(Rh(e))return function lE(e){return new be(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,wh)})}(e);if(xh(e))return $h(e);if(Lh(e))return function cE(e){return new be(t=>{for(const n of e)if(t.next(n),t.closed)return;t.complete()})}(e);if(Hh(e))return function dE(e){return $h(Vh(e))}(e)}throw Fh(e)}function $h(e){return new be(t=>{(function fE(e,t){var n,r,o,i;return function tE(e,t,n,r){return new(n||(n=Promise))(function(i,s){function a(c){try{u(r.next(c))}catch(d){s(d)}}function l(c){try{u(r.throw(c))}catch(d){s(d)}}function u(c){c.done?i(c.value):function o(i){return i instanceof n?i:new n(function(s){s(i)})}(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})}(this,void 0,void 0,function*(){try{for(n=oE(e);!(r=yield n.next()).done;)if(t.next(r.value),t.closed)return}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})})(e,t).catch(n=>t.error(n))})}function _n(e,t,n,r=0,o=!1){const i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function Be(e,t,n=1/0){return le(t)?Be((r,o)=>te((i,s)=>t(r,i,o,s))(Tt(e(r,o))),n):("number"==typeof t&&(n=t),je((r,o)=>function hE(e,t,n,r,o,i,s,a){const l=[];let u=0,c=0,d=!1;const f=()=>{d&&!l.length&&!u&&t.complete()},h=m=>u{i&&t.next(m),u++;let C=!1;Tt(n(m,c++)).subscribe(He(t,b=>{o?.(b),i?h(b):t.next(b)},()=>{C=!0},void 0,()=>{if(C)try{for(u--;l.length&&up(b)):p(b)}f()}catch(b){t.error(b)}}))};return e.subscribe(He(t,h,()=>{d=!0,f()})),()=>{a?.()}}(r,o,e,n)))}function Pr(e=1/0){return Be(ar,e)}const Qt=new be(e=>e.complete());function ql(e){return e[e.length-1]}function jh(e){return le(ql(e))?e.pop():void 0}function zo(e){return function gE(e){return e&&le(e.schedule)}(ql(e))?e.pop():void 0}function Bh(e,t=0){return je((n,r)=>{n.subscribe(He(r,o=>_n(r,e,()=>r.next(o),t),()=>_n(r,e,()=>r.complete(),t),o=>_n(r,e,()=>r.error(o),t)))})}function Uh(e,t=0){return je((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function zh(e,t){if(!e)throw new Error("Iterable cannot be null");return new be(n=>{_n(n,t,()=>{const r=e[Symbol.asyncIterator]();_n(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function Pe(e,t){return t?function wE(e,t){if(null!=e){if(Ph(e))return function yE(e,t){return Tt(e).pipe(Uh(t),Bh(t))}(e,t);if(Rh(e))return function CE(e,t){return new be(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}(e,t);if(Oh(e))return function vE(e,t){return Tt(e).pipe(Uh(t),Bh(t))}(e,t);if(xh(e))return zh(e,t);if(Lh(e))return function DE(e,t){return new be(n=>{let r;return _n(n,t,()=>{r=e[kh](),_n(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){return void n.error(s)}i?n.complete():n.next(o)},0,!0)}),()=>le(r?.return)&&r.return()})}(e,t);if(Hh(e))return function _E(e,t){return zh(Vh(e),t)}(e,t)}throw Fh(e)}(e,t):Tt(e)}function Zl(e,t,...n){if(!0===t)return void e();if(!1===t)return;const r=new Uo({next:()=>{r.unsubscribe(),e()}});return Tt(t(...n)).subscribe(r)}function ie(e){for(let t in e)if(e[t]===ie)return t;throw Error("Could not find renamed property on target object.")}function Yl(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function xe(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(xe).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function Xl(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const ME=ie({__forward_ref__:ie});function ce(e){return e.__forward_ref__=ce,e.toString=function(){return xe(this())},e}function B(e){return Ql(e)?e():e}function Ql(e){return"function"==typeof e&&e.hasOwnProperty(ME)&&e.__forward_ref__===ce}function Kl(e){return e&&!!e.\u0275providers}const Gh="https://g.co/ng/security#xss";class w extends Error{constructor(t,n){super(function Jl(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(t,n)),this.code=t}}function U(e){return"string"==typeof e?e:null==e?"":String(e)}function Ds(e,t){throw new w(-201,!1)}function At(e,t){null==e&&function oe(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}(t,e,null,"!=")}function O(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Nt(e){return{providers:e.providers||[],imports:e.imports||[]}}function _s(e){return Wh(e,ws)||Wh(e,Zh)}function Wh(e,t){return e.hasOwnProperty(t)?e[t]:null}function qh(e){return e&&(e.hasOwnProperty(eu)||e.hasOwnProperty(PE))?e[eu]:null}const ws=ie({\u0275prov:ie}),eu=ie({\u0275inj:ie}),Zh=ie({ngInjectableDef:ie}),PE=ie({ngInjectorDef:ie});var L=(()=>((L=L||{})[L.Default=0]="Default",L[L.Host=1]="Host",L[L.Self=2]="Self",L[L.SkipSelf=4]="SkipSelf",L[L.Optional=8]="Optional",L))();let tu;function at(e){const t=tu;return tu=e,t}function Xh(e,t,n){const r=_s(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&L.Optional?null:void 0!==t?t:void Ds(xe(e))}const de=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),Go={},nu="__NG_DI_FLAG__",Es="ngTempTokenPath",FE=/\n/gm,Qh="__source";let xr;function Bn(e){const t=xr;return xr=e,t}function VE(e,t=L.Default){if(void 0===xr)throw new w(-203,!1);return null===xr?Xh(e,void 0,t):xr.get(e,t&L.Optional?null:void 0,t)}function N(e,t=L.Default){return(function Yh(){return tu}()||VE)(B(e),t)}function I(e,t=L.Default){return N(e,bs(t))}function bs(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function ru(e){const t=[];for(let n=0;n((Kt=Kt||{})[Kt.OnPush=0]="OnPush",Kt[Kt.Default=1]="Default",Kt))(),Ct=(()=>{return(e=Ct||(Ct={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",Ct;var e})();const En={},ee=[],Ms=ie({\u0275cmp:ie}),ou=ie({\u0275dir:ie}),iu=ie({\u0275pipe:ie}),Jh=ie({\u0275mod:ie}),bn=ie({\u0275fac:ie}),qo=ie({__NG_ELEMENT_ID__:ie}),ep=ie({__NG_ENV_ID__:ie});function tp(e,t,n){let r=e.length;for(;;){const o=e.indexOf(t,n);if(-1===o)return o;if(0===o||e.charCodeAt(o-1)<=32){const i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1}}function su(e,t,n){let r=0;for(;rt){s=i-1;break}}}for(;ii?"":o[d+1].toLowerCase();const h=8&r?f:null;if(h&&-1!==tp(h,u,0)||2&r&&u!==f){if(Lt(r))return!1;s=!0}}}}else{if(!s&&!Lt(r)&&!Lt(l))return!1;if(s&&Lt(l))continue;s=!1,r=l|1&r}}return Lt(r)||s}function Lt(e){return 0==(1&e)}function GE(e,t,n,r){if(null===t)return-1;let o=0;if(r||!n){let i=!1;for(;o-1)for(n++;n0?'="'+a+'"':"")+"]"}else 8&r?o+="."+s:4&r&&(o+=" "+s);else""!==o&&!Lt(s)&&(t+=lp(i,o),o=""),r=s,i=i||!Lt(r);n++}return""!==o&&(t+=lp(i,o)),t}function Rt(e){return wn(()=>{const t=cp(e),n={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Kt.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,data:e.data||{},encapsulation:e.encapsulation||Ct.Emulated,styles:e.styles||ee,_:null,schemas:e.schemas||null,tView:null,id:""};dp(n);const r=e.dependencies;return n.directiveDefs=Ss(r,!1),n.pipeDefs=Ss(r,!0),n.id=function o1(e){let t=0;const n=JSON.stringify([e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.exportAs,e.inputs,e.outputs,Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery]);for(const o of n)t=Math.imul(31,t)+o.charCodeAt(0)<<0;return t+=2147483648,"c"+t}(n),n})}function e1(e){return ne(e)||Ze(e)}function t1(e){return null!==e}function Vt(e){return wn(()=>({type:e.type,bootstrap:e.bootstrap||ee,declarations:e.declarations||ee,imports:e.imports||ee,exports:e.exports||ee,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function up(e,t){if(null==e)return En;const n={};for(const r in e)if(e.hasOwnProperty(r)){let o=e[r],i=o;Array.isArray(o)&&(i=o[1],o=o[0]),n[o]=r,t&&(t[o]=i)}return n}function $(e){return wn(()=>{const t=cp(e);return dp(t),t})}function lt(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function ne(e){return e[Ms]||null}function Ze(e){return e[ou]||null}function ut(e){return e[iu]||null}function Dt(e,t){const n=e[Jh]||null;if(!n&&!0===t)throw new Error(`Type ${xe(e)} does not have '\u0275mod' property.`);return n}function cp(e){const t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,exportAs:e.exportAs||null,standalone:!0===e.standalone,selectors:e.selectors||ee,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:up(e.inputs,t),outputs:up(e.outputs)}}function dp(e){e.features?.forEach(t=>t(e))}function Ss(e,t){if(!e)return null;const n=t?ut:e1;return()=>("function"==typeof e?e():e).map(r=>n(r)).filter(t1)}const Fe=0,T=1,W=2,ve=3,Ht=4,ur=5,Ye=6,kr=7,_e=8,Lr=9,cr=10,z=11,Yo=12,fp=13,Vr=14,Te=15,Xo=16,Hr=17,Jt=18,Qo=19,hp=20,Un=21,Mn=22,Is=23,Ts=24,Q=25,au=1,pp=2,en=7,As=8,$r=9,Ue=11;function _t(e){return Array.isArray(e)&&"object"==typeof e[au]}function ct(e){return Array.isArray(e)&&!0===e[au]}function lu(e){return 0!=(4&e.flags)}function dr(e){return e.componentOffset>-1}function Ns(e){return 1==(1&e.flags)}function $t(e){return!!e.template}function uu(e){return 0!=(512&e[W])}function fr(e,t){return e.hasOwnProperty(bn)?e[bn]:null}let u1=de.WeakRef??class l1{constructor(t){this.ref=t}deref(){return this.ref}},d1=0,tn=null,Rs=!1;function $e(e){const t=tn;return tn=e,t}class Cp{constructor(){this.id=d1++,this.ref=function c1(e){return new u1(e)}(this),this.producers=new Map,this.consumers=new Map,this.trackingVersion=0,this.valueVersion=0}consumerPollProducersForChange(){for(const[t,n]of this.producers){const r=n.producerNode.deref();if(void 0!==r&&n.atTrackingVersion===this.trackingVersion){if(r.producerPollStatus(n.seenValueVersion))return!0}else this.producers.delete(t),r?.consumers.delete(this.id)}return!1}producerMayHaveChanged(){const t=Rs;Rs=!0;try{for(const[n,r]of this.consumers){const o=r.consumerNode.deref();void 0!==o&&o.trackingVersion===r.atTrackingVersion?o.onConsumerDependencyMayHaveChanged():(this.consumers.delete(n),o?.producers.delete(this.id))}}finally{Rs=t}}producerAccessed(){if(Rs)throw new Error("");if(null===tn)return;let t=tn.producers.get(this.id);void 0===t?(t={consumerNode:tn.ref,producerNode:this.ref,seenValueVersion:this.valueVersion,atTrackingVersion:tn.trackingVersion},tn.producers.set(this.id,t),this.consumers.set(tn.id,t)):(t.seenValueVersion=this.valueVersion,t.atTrackingVersion=tn.trackingVersion)}get hasProducers(){return this.producers.size>0}get producerUpdatesAllowed(){return!1!==tn?.consumerAllowSignalWrites}producerPollStatus(t){return this.valueVersion!==t||(this.onProducerUpdateValueVersion(),this.valueVersion!==t)}}let Dp=null;const _p=()=>{};class g1 extends Cp{constructor(t,n,r){super(),this.watch=t,this.schedule=n,this.dirty=!1,this.cleanupFn=_p,this.registerOnCleanup=o=>{this.cleanupFn=o},this.consumerAllowSignalWrites=r}notify(){this.dirty||this.schedule(this),this.dirty=!0}onConsumerDependencyMayHaveChanged(){this.notify()}onProducerUpdateValueVersion(){}run(){if(this.dirty=!1,0!==this.trackingVersion&&!this.consumerPollProducersForChange())return;const t=$e(this);this.trackingVersion++;try{this.cleanupFn(),this.cleanupFn=_p,this.watch(this.registerOnCleanup)}finally{$e(t)}}cleanup(){this.cleanupFn()}}class m1{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function Ot(){return wp}function wp(e){return e.type.prototype.ngOnChanges&&(e.setInput=v1),y1}function y1(){const e=bp(this),t=e?.current;if(t){const n=e.previous;if(n===En)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function v1(e,t,n,r){const o=this.declaredInputs[n],i=bp(e)||function C1(e,t){return e[Ep]=t}(e,{previous:En,current:null}),s=i.current||(i.current={}),a=i.previous,l=a[o];s[o]=new m1(l&&l.currentValue,t,a===En),e[r]=t}Ot.ngInherit=!0;const Ep="__ngSimpleChanges__";function bp(e){return e[Ep]||null}const nn=function(e,t,n){};function ge(e){for(;Array.isArray(e);)e=e[Fe];return e}function xs(e,t){return ge(t[e])}function dt(e,t){return ge(t[e.index])}function Ip(e,t){return e.data[t]}function ft(e,t){const n=t[e];return _t(n)?n:n[Fe]}function Fs(e){return 128==(128&e[W])}function zn(e,t){return null==t?null:e[t]}function Tp(e){e[Hr]=0}function M1(e){1024&e[W]||(e[W]|=1024,Np(e,1))}function Ap(e){1024&e[W]&&(e[W]&=-1025,Np(e,-1))}function Np(e,t){let n=e[ve];if(null===n)return;n[ur]+=t;let r=n;for(n=n[ve];null!==n&&(1===t&&1===r[ur]||-1===t&&0===r[ur]);)n[ur]+=t,r=n,n=n[ve]}const H={lFrame:jp(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function Pp(){return H.bindingsEnabled}function _(){return H.lFrame.lView}function K(){return H.lFrame.tView}function ks(e){return H.lFrame.contextLView=e,e[_e]}function Ls(e){return H.lFrame.contextLView=null,e}function ze(){let e=xp();for(;null!==e&&64===e.type;)e=e.parent;return e}function xp(){return H.lFrame.currentTNode}function rn(e,t){const n=H.lFrame;n.currentTNode=e,n.isParent=t}function gu(){return H.lFrame.isParent}function tt(){const e=H.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Ur(){return H.lFrame.bindingIndex++}function In(e){const t=H.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function L1(e,t){const n=H.lFrame;n.bindingIndex=n.bindingRootIndex=e,yu(t)}function yu(e){H.lFrame.currentDirectiveIndex=e}function Vp(){return H.lFrame.currentQueryIndex}function Cu(e){H.lFrame.currentQueryIndex=e}function H1(e){const t=e[T];return 2===t.type?t.declTNode:1===t.type?e[Ye]:null}function Hp(e,t,n){if(n&L.SkipSelf){let o=t,i=e;for(;!(o=o.parent,null!==o||n&L.Host||(o=H1(i),null===o||(i=i[Vr],10&o.type))););if(null===o)return!1;t=o,e=i}const r=H.lFrame=$p();return r.currentTNode=t,r.lView=e,!0}function Du(e){const t=$p(),n=e[T];H.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function $p(){const e=H.lFrame,t=null===e?null:e.child;return null===t?jp(e):t}function jp(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function Bp(){const e=H.lFrame;return H.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Up=Bp;function _u(){const e=Bp();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function nt(){return H.lFrame.selectedIndex}function hr(e){H.lFrame.selectedIndex=e}function Ce(){const e=H.lFrame;return Ip(e.tView,e.selectedIndex)}let Gp=!0;function Vs(){return Gp}function Gn(e){Gp=e}function Hs(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[l]<0&&(e[Hr]+=65536),(a>12>16&&(3&e[W])===t&&(e[W]+=4096,qp(a,i)):qp(a,i)}const zr=-1;class ei{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function Zp(e){return e!==zr}function Bs(e){return 32767&e}function Us(e,t){let n=function Q1(e){return e>>16}(e),r=t;for(;n>0;)r=r[Vr],n--;return r}let bu=!0;function zs(e){const t=bu;return bu=e,t}const Yp=255,Xp=5;let K1=0;const on={};function Gs(e,t){const n=Qp(e,t);if(-1!==n)return n;const r=t[T];r.firstCreatePass&&(e.injectorIndex=t.length,Mu(r.data,e),Mu(t,null),Mu(r.blueprint,null));const o=Su(e,t),i=e.injectorIndex;if(Zp(o)){const s=Bs(o),a=Us(o,t),l=a[T].data;for(let u=0;u<8;u++)t[i+u]=a[s+u]|l[s+u]}return t[i+8]=o,i}function Mu(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Qp(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Su(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;null!==o;){if(r=og(o),null===r)return zr;if(n++,o=o[Vr],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return zr}function Iu(e,t,n){!function J1(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(qo)&&(r=n[qo]),null==r&&(r=n[qo]=K1++);const o=r&Yp;t.data[e+(o>>Xp)]|=1<=0?t&Yp:rb:t}(n);if("function"==typeof i){if(!Hp(t,e,r))return r&L.Host?Kp(o,0,r):Jp(t,n,r,o);try{const s=i(r);if(null!=s||r&L.Optional)return s;Ds()}finally{Up()}}else if("number"==typeof i){let s=null,a=Qp(e,t),l=zr,u=r&L.Host?t[Te][Ye]:null;for((-1===a||r&L.SkipSelf)&&(l=-1===a?Su(e,t):t[a+8],l!==zr&&rg(r,!1)?(s=t[T],a=Bs(l),t=Us(l,t)):a=-1);-1!==a;){const c=t[T];if(ng(i,a,c.data)){const d=tb(a,t,n,s,r,u);if(d!==on)return d}l=t[a+8],l!==zr&&rg(r,t[T].data[a+8]===u)&&ng(i,a,t)?(s=c,a=Bs(l),t=Us(l,t)):a=-1}}return o}function tb(e,t,n,r,o,i){const s=t[T],a=s.data[e+8],c=Ws(a,s,n,null==r?dr(a)&&bu:r!=s&&0!=(3&a.type),o&L.Host&&i===a);return null!==c?pr(t,s,c,a):on}function Ws(e,t,n,r,o){const i=e.providerIndexes,s=t.data,a=1048575&i,l=e.directiveStart,c=i>>20,f=o?a+c:e.directiveEnd;for(let h=r?a:a+c;h=l&&p.type===n)return h}if(o){const h=s[l];if(h&&$t(h)&&h.type===n)return l}return null}function pr(e,t,n,r){let o=e[n];const i=t.data;if(function Z1(e){return e instanceof ei}(o)){const s=o;s.resolving&&function SE(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new w(-200,`Circular dependency in DI detected for ${e}${n}`)}(function re(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():U(e)}(i[n]));const a=zs(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?at(s.injectImpl):null;Hp(e,r,L.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&function W1(e,t,n){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){const s=wp(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}(n,i[n],t)}finally{null!==l&&at(l),zs(a),s.resolving=!1,Up()}}return o}function ng(e,t,n){return!!(n[t+(e>>Xp)]&1<{const t=e.prototype.constructor,n=t[bn]||Tu(t),r=Object.prototype;let o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){const i=o[bn]||Tu(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function Tu(e){return Ql(e)?()=>{const t=Tu(B(e));return t&&t()}:fr(e)}function og(e){const t=e[T],n=t.type;return 2===n?t.declTNode:1===n?e[Ye]:null}const qr="__parameters__";function Yr(e,t,n){return wn(()=>{const r=function Au(e){return function(...n){if(e){const r=e(...n);for(const o in r)this[o]=r[o]}}}(t);function o(...i){if(this instanceof o)return r.apply(this,i),this;const s=new o(...i);return a.annotation=s,a;function a(l,u,c){const d=l.hasOwnProperty(qr)?l[qr]:Object.defineProperty(l,qr,{value:[]})[qr];for(;d.length<=c;)d.push(null);return(d[c]=d[c]||[]).push(s),l}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}function ri(e,t){e.forEach(n=>Array.isArray(n)?ri(n,t):t(n))}function sg(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Zs(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function wt(e,t,n){let r=Xr(e,t);return r>=0?e[1|r]=n:(r=~r,function ub(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(1===o)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;)e[o]=e[o-2],o--;e[t]=n,e[t+1]=r}}(e,r,t,n)),r}function Nu(e,t){const n=Xr(e,t);if(n>=0)return e[1|n]}function Xr(e,t){return function ag(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){const i=r+(o-r>>1),s=e[i<t?o=i:r=i+1}return~(o<((ht=ht||{})[ht.Important=1]="Important",ht[ht.DashCase=2]="DashCase",ht))();const Lu=new Map;let Pb=0;const Hu="__ngContext__";function Xe(e,t){_t(t)?(e[Hu]=t[Qo],function Fb(e){Lu.set(e[Qo],e)}(t)):e[Hu]=t}let $u;function ju(e,t){return $u(e,t)}function ai(e){const t=e[ve];return ct(t)?t[ve]:t}function Bu(e){return Sg(e[Yo])}function Uu(e){return Sg(e[Ht])}function Sg(e){for(;null!==e&&!ct(e);)e=e[Ht];return e}function Jr(e,t,n,r,o){if(null!=r){let i,s=!1;ct(r)?i=r:_t(r)&&(s=!0,r=r[Fe]);const a=ge(r);0===e&&null!==n?null==o?Rg(t,n,a):gr(t,n,a,o||null,!0):1===e&&null!==n?gr(t,n,a,o||null,!0):2===e?function sa(e,t,n){const r=oa(e,t);r&&function eM(e,t,n,r){e.removeChild(t,n,r)}(e,r,t,n)}(t,a,s):3===e&&t.destroyNode(a),null!=i&&function rM(e,t,n,r,o){const i=n[en];i!==ge(n)&&Jr(t,e,r,i,o);for(let a=Ue;a0&&(e[n-1][Ht]=r[Ht]);const i=Zs(e,Ue+t);!function Wb(e,t){ui(e,t,t[z],2,null,null),t[Fe]=null,t[Ye]=null}(r[T],r);const s=i[Jt];null!==s&&s.detachView(i[T]),r[ve]=null,r[Ht]=null,r[W]&=-129}return r}function Ag(e,t){if(!(256&t[W])){const n=t[z];t[Is]?.destroy(),t[Ts]?.destroy(),n.destroyNode&&ui(e,t,n,3,null,null),function Yb(e){let t=e[Yo];if(!t)return Wu(e[T],e);for(;t;){let n=null;if(_t(t))n=t[Yo];else{const r=t[Ue];r&&(n=r)}if(!n){for(;t&&!t[Ht]&&t!==e;)_t(t)&&Wu(t[T],t),t=t[ve];null===t&&(t=e),_t(t)&&Wu(t[T],t),n=t&&t[Ht]}t=n}}(t)}}function Wu(e,t){if(!(256&t[W])){t[W]&=-129,t[W]|=256,function Jb(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r=0?r[s]():r[-s].unsubscribe(),i+=2}else n[i].call(r[n[i+1]]);null!==r&&(t[kr]=null);const o=t[Un];if(null!==o){for(let i=0;i-1){const{encapsulation:i}=e.data[r.directiveStart+o];if(i===Ct.None||i===Ct.Emulated)return null}return dt(r,n)}}(e,t.parent,n)}function gr(e,t,n,r,o){e.insertBefore(t,n,r,o)}function Rg(e,t,n){e.appendChild(t,n)}function Og(e,t,n,r,o){null!==r?gr(e,t,n,r,o):Rg(e,t,n)}function oa(e,t){return e.parentNode(t)}let Zu,Ku,la,Fg=function xg(e,t,n){return 40&e.type?dt(e,n):null};function ia(e,t,n,r){const o=qu(e,r,t),i=t[z],a=function Pg(e,t,n){return Fg(e,t,n)}(r.parent||t[Ye],r,t);if(null!=o)if(Array.isArray(n))for(let l=0;le,createScript:e=>e,createScriptURL:e=>e})}catch{}return la}()?.createScriptURL(e)||e}class Gg{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Gh})`}}function Wn(e){return e instanceof Gg?e.changingThisBreaksApplicationSecurity:e}function di(e,t){const n=function gM(e){return e instanceof Gg&&e.getTypeName()||null}(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${Gh})`)}return n===t}const CM=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;var Ae=(()=>((Ae=Ae||{})[Ae.NONE=0]="NONE",Ae[Ae.HTML=1]="HTML",Ae[Ae.STYLE=2]="STYLE",Ae[Ae.SCRIPT=3]="SCRIPT",Ae[Ae.URL=4]="URL",Ae[Ae.RESOURCE_URL=5]="RESOURCE_URL",Ae))();function oc(e){const t=hi();return t?t.sanitize(Ae.URL,e)||"":di(e,"URL")?Wn(e):function ec(e){return(e=String(e)).match(CM)?e:"unsafe:"+e}(U(e))}function Kg(e){const t=hi();if(t)return zg(t.sanitize(Ae.RESOURCE_URL,e)||"");if(di(e,"ResourceURL"))return zg(Wn(e));throw new w(904,!1)}function hi(){const e=_();return e&&e[cr].sanitizer}class R{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=O({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const pi=new R("ENVIRONMENT_INITIALIZER"),em=new R("INJECTOR",-1),tm=new R("INJECTOR_DEF_TYPES");class nm{get(t,n=Go){if(n===Go){const r=new Error(`NullInjectorError: No provider for ${xe(t)}!`);throw r.name="NullInjectorError",r}return n}}function OM(...e){return{\u0275providers:rm(0,e),\u0275fromNgModule:!0}}function rm(e,...t){const n=[],r=new Set;let o;return ri(t,i=>{const s=i;sc(s,n,[],r)&&(o||=[],o.push(s))}),void 0!==o&&om(o,n),n}function om(e,t){for(let n=0;n{t.push(i)})}}function sc(e,t,n,r){if(!(e=B(e)))return!1;let o=null,i=qh(e);const s=!i&&ne(e);if(i||s){if(s&&!s.standalone)return!1;o=e}else{const l=e.ngModule;if(i=qh(l),!i)return!1;o=l}const a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){const l="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const u of l)sc(u,t,n,r)}}else{if(!i)return!1;{if(null!=i.imports&&!a){let u;r.add(o);try{ri(i.imports,c=>{sc(c,t,n,r)&&(u||=[],u.push(c))})}finally{}void 0!==u&&om(u,t)}if(!a){const u=fr(o)||(()=>new o);t.push({provide:o,useFactory:u,deps:ee},{provide:tm,useValue:o,multi:!0},{provide:pi,useValue:()=>N(o),multi:!0})}const l=i.providers;null==l||a||ac(l,c=>{t.push(c)})}}return o!==e&&void 0!==e.providers}function ac(e,t){for(let n of e)Kl(n)&&(n=n.\u0275providers),Array.isArray(n)?ac(n,t):t(n)}const PM=ie({provide:String,useValue:ie});function lc(e){return null!==e&&"object"==typeof e&&PM in e}function mr(e){return"function"==typeof e}const uc=new R("Set Injector scope."),ca={},FM={};let cc;function da(){return void 0===cc&&(cc=new nm),cc}class sn{}class dc extends sn{get destroyed(){return this._destroyed}constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,hc(t,s=>this.processProvider(s)),this.records.set(em,to(void 0,this)),o.has("environment")&&this.records.set(sn,to(void 0,this));const i=this.records.get(uc);null!=i&&"string"==typeof i.value&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(tm.multi,ee,L.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const t of this._ngOnDestroyHooks)t.ngOnDestroy();for(const t of this._onDestroyHooks)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();const n=Bn(this),r=at(void 0);try{return t()}finally{Bn(n),at(r)}}get(t,n=Go,r=L.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(ep))return t[ep](this);r=bs(r);const o=Bn(this),i=at(void 0);try{if(!(r&L.SkipSelf)){let a=this.records.get(t);if(void 0===a){const l=function $M(e){return"function"==typeof e||"object"==typeof e&&e instanceof R}(t)&&_s(t);a=l&&this.injectableDefInScope(l)?to(fc(t),ca):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(r&L.Self?da():this.parent).get(t,n=r&L.Optional&&n===Go?null:n)}catch(s){if("NullInjectorError"===s.name){if((s[Es]=s[Es]||[]).unshift(xe(t)),o)throw s;return function $E(e,t,n,r){const o=e[Es];throw t[Qh]&&o.unshift(t[Qh]),e.message=function jE(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let o=xe(t);if(Array.isArray(t))o=t.map(xe).join(" -> ");else if("object"==typeof t){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+("string"==typeof a?JSON.stringify(a):xe(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(FE,"\n ")}`}("\n"+e.message,o,n,r),e.ngTokenPath=o,e[Es]=null,e}(s,t,"R3InjectorError",this.source)}throw s}finally{at(i),Bn(o)}}resolveInjectorInitializers(){const t=Bn(this),n=at(void 0);try{const r=this.get(pi.multi,ee,L.Self);for(const o of r)o()}finally{Bn(t),at(n)}}toString(){const t=[],n=this.records;for(const r of n.keys())t.push(xe(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new w(205,!1)}processProvider(t){let n=mr(t=B(t))?t:B(t&&t.provide);const r=function LM(e){return lc(e)?to(void 0,e.useValue):to(am(e),ca)}(t);if(mr(t)||!0!==t.multi)this.records.get(n);else{let o=this.records.get(n);o||(o=to(void 0,ca,!0),o.factory=()=>ru(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){return n.value===ca&&(n.value=FM,n.value=n.factory()),"object"==typeof n.value&&n.value&&function HM(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}injectableDefInScope(t){if(!t.providedIn)return!1;const n=B(t.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){const n=this._onDestroyHooks.indexOf(t);-1!==n&&this._onDestroyHooks.splice(n,1)}}function fc(e){const t=_s(e),n=null!==t?t.factory:fr(e);if(null!==n)return n;if(e instanceof R)throw new w(204,!1);if(e instanceof Function)return function kM(e){const t=e.length;if(t>0)throw function oi(e,t){const n=[];for(let r=0;rn.factory(e):()=>new e}(e);throw new w(204,!1)}function am(e,t,n){let r;if(mr(e)){const o=B(e);return fr(o)||fc(o)}if(lc(e))r=()=>B(e.useValue);else if(function sm(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...ru(e.deps||[]));else if(function im(e){return!(!e||!e.useExisting)}(e))r=()=>N(B(e.useExisting));else{const o=B(e&&(e.useClass||e.provide));if(!function VM(e){return!!e.deps}(e))return fr(o)||fc(o);r=()=>new o(...ru(e.deps))}return r}function to(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function hc(e,t){for(const n of e)Array.isArray(n)?hc(n,t):n&&Kl(n)?hc(n.\u0275providers,t):t(n)}const fa=new R("AppId",{providedIn:"root",factory:()=>jM}),jM="ng",lm=new R("Platform Initializer"),yr=new R("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),um=new R("CSP nonce",{providedIn:"root",factory:()=>function ci(){if(void 0!==Ku)return Ku;if(typeof document<"u")return document;throw new w(210,!1)}().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let dm=(e,t)=>null;function fm(e,t){return dm(e,t)}class QM{}class gm{}class JM{resolveComponentFactory(t){throw function KM(e){const t=Error(`No component factory found for ${xe(e)}.`);return t.ngComponent=e,t}(t)}}let ya=(()=>{class e{}return e.NULL=new JM,e})();function eS(){return no(ze(),_())}function no(e,t){return new Et(dt(e,t))}let Et=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=eS,e})();function tS(e){return e instanceof Et?e.nativeElement:e}class ym{}let An=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function nS(){const e=_(),n=ft(ze().index,e);return(_t(n)?n:e)[z]}(),e})(),rS=(()=>{class e{}return e.\u0275prov=O({token:e,providedIn:"root",factory:()=>null}),e})();class vi{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const oS=new vi("16.0.1"),bc={};function Ci(e){for(;e;){e[W]|=64;const t=ai(e);if(uu(e)&&!t)return e;e=t}return null}function Mc(e){return e.ngOriginalError}class vr{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&Mc(t);for(;n&&Mc(n);)n=Mc(n);return n||null}}const Dm=new R("",{providedIn:"root",factory:()=>!1});function Nn(e){return e instanceof Function?e():e}class Em extends Cp{constructor(){super(...arguments),this.consumerAllowSignalWrites=!1,this._lView=null}set lView(t){this._lView=t}onConsumerDependencyMayHaveChanged(){Ci(this._lView)}onProducerUpdateValueVersion(){}get hasReadASignal(){return this.hasProducers}runInContext(t,n,r){const o=$e(this);this.trackingVersion++;try{t(n,r)}finally{$e(o)}}destroy(){this.trackingVersion++}}let Ca=null;function bm(){return Ca??=new Em,Ca}function Mm(e,t){return e[t]??bm()}function Sm(e,t){const n=bm();n.hasReadASignal&&(e[t]=Ca,n.lView=e,Ca=new Em)}const G={};function S(e){Im(K(),_(),nt()+e,!1)}function Im(e,t,n,r){if(!r)if(3==(3&t[W])){const i=e.preOrderCheckHooks;null!==i&&$s(t,i,n)}else{const i=e.preOrderHooks;null!==i&&js(t,i,0,n)}hr(n)}function Rm(e,t=null,n=null,r){const o=Om(e,t,n,r);return o.resolveInjectorInitializers(),o}function Om(e,t=null,n=null,r,o=new Set){const i=[n||ee,OM(e)];return r=r||("object"==typeof e?void 0:xe(e)),new dc(i,t||da(),r||null,o)}let an=(()=>{class e{static create(n,r){if(Array.isArray(n))return Rm({name:""},r,n,"");{const o=n.name??"";return Rm({name:o},n.parent,n.providers,o)}}}return e.THROW_IF_NOT_FOUND=Go,e.NULL=new nm,e.\u0275prov=O({token:e,providedIn:"any",factory:()=>N(em)}),e.__NG_ELEMENT_ID__=-1,e})();function D(e,t=L.Default){const n=_();return null===n?N(e,t):eg(ze(),n,B(e),t)}function Da(e,t,n,r,o,i,s,a,l,u,c){const d=t.blueprint.slice();return d[Fe]=o,d[W]=140|r,(null!==u||e&&2048&e[W])&&(d[W]|=2048),Tp(d),d[ve]=d[Vr]=e,d[_e]=n,d[cr]=s||e&&e[cr],d[z]=a||e&&e[z],d[Lr]=l||e&&e[Lr]||null,d[Ye]=i,d[Qo]=function xb(){return Pb++}(),d[Mn]=c,d[hp]=u,d[Te]=2==t.type?e[Te]:d,d}function oo(e,t,n,r,o){let i=e.data[t];if(null===i)i=function Sc(e,t,n,r,o){const i=xp(),s=gu(),l=e.data[t]=function MS(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return function Br(){return null!==H.skipHydrationRootTNode}()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,s?i:i&&i.parent,n,t,r,o);return null===e.firstChild&&(e.firstChild=l),null!==i&&(s?null==i.child&&null!==l.parent&&(i.child=l):null===i.next&&(i.next=l,l.prev=i)),l}(e,t,n,r,o),function k1(){return H.lFrame.inI18n}()&&(i.flags|=32);else if(64&i.type){i.type=n,i.value=r,i.attrs=o;const s=function Jo(){const e=H.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();i.injectorIndex=null===s?-1:s.injectorIndex}return rn(i,!0),i}function Di(e,t,n,r){if(0===n)return-1;const o=t.length;for(let i=0;iQ&&Im(e,t,Q,!1),nn(a?2:0,o),a)i.runInContext(n,r,o);else{const u=$e(null);try{n(r,o)}finally{$e(u)}}}finally{a&&null===t[Is]&&Sm(t,Is),hr(s),nn(a?3:1,o)}}function Ic(e,t,n){if(lu(t)){const r=$e(null);try{const i=t.directiveEnd;for(let s=t.directiveStart;snull;function Lm(e,t,n,r){for(let o in e)if(e.hasOwnProperty(o)){n=null===n?{}:n;const i=e[o];null===r?Vm(n,t,o,i):r.hasOwnProperty(o)&&Vm(n,t,r[o],i)}return n}function Vm(e,t,n,r){e.hasOwnProperty(n)?e[n].push(t,r):e[n]=[t,r]}function bt(e,t,n,r,o,i,s,a){const l=dt(t,n);let c,u=t.inputs;!a&&null!=u&&(c=u[r])?(Fc(e,n,c,r,o),dr(t)&&function TS(e,t){const n=ft(t,e);16&n[W]||(n[W]|=64)}(n,t.index)):3&t.type&&(r=function IS(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),o=null!=s?s(o,t.value||"",r):o,i.setProperty(l,r,o))}function Rc(e,t,n,r){if(Pp()){const o=null===r?null:{"":-1},i=function xS(e,t){const n=e.directiveRegistry;let r=null,o=null;if(n)for(let i=0;i0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(s)!=a&&s.push(a),s.push(n,r,i)}}(e,t,r,Di(e,n,o.hostVars,G),o)}function ln(e,t,n,r,o,i){const s=dt(e,t);!function Pc(e,t,n,r,o,i,s){if(null==i)e.removeAttribute(t,o,n);else{const a=null==s?U(i):s(i,r||"",o);e.setAttribute(t,o,a,n)}}(t[z],s,i,e.value,n,r,o)}function $S(e,t,n,r,o,i){const s=i[t];if(null!==s)for(let a=0;a{class e{constructor(){this.all=new Set,this.queue=new Map}create(n,r,o){const i=typeof Zone>"u"?null:Zone.current,s=new g1(n,u=>{this.all.has(u)&&this.queue.set(u,i)},o);let a;this.all.add(s),s.notify();const l=()=>{s.cleanup(),a?.(),this.all.delete(s),this.queue.delete(s)};return a=r?.onDestroy(l),{destroy:l}}flush(){if(0!==this.queue.size)for(const[n,r]of this.queue)this.queue.delete(n),r?r.run(()=>n.run()):n.run()}get isQueueEmpty(){return 0===this.queue.size}}return e.\u0275prov=O({token:e,providedIn:"root",factory:()=>new e}),e})();function wa(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(null!==t)for(let s=0;s0&&Lc(n)}}function Lc(e){for(let r=Bu(e);null!==r;r=Uu(r))for(let o=Ue;o0&&Lc(i)}const n=e[T].components;if(null!==n)for(let r=0;r0&&Lc(o)}}class wi{get rootNodes(){const t=this._lView,n=t[T];return _i(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[_e]}set context(t){this._lView[_e]=t}get destroyed(){return 256==(256&this._lView[W])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[ve];if(ct(t)){const n=t[As],r=n?n.indexOf(this):-1;r>-1&&(Gu(t,r),Zs(n,r))}this._attachedToViewContainer=!1}Ag(this._lView[T],this._lView)}onDestroy(t){!function Rp(e,t){if(256==(256&e[W]))throw new w(911,!1);null===e[Un]&&(e[Un]=[]),e[Un].push(t)}(this._lView,t)}markForCheck(){Ci(this._cdRefInjectingView||this._lView)}detach(){this._lView[W]&=-129}reattach(){this._lView[W]|=128}detectChanges(){Ea(this._lView[T],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new w(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Zb(e,t){ui(e,t,t[z],2,null,null)}(this._lView[T],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new w(902,!1);this._appRef=t}}class JS extends wi{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;Ea(t[T],t,t[_e],!1)}checkNoChanges(){}get context(){return null}}class Ym extends ya{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=ne(t);return new Ei(n,this.ngModule)}}function Xm(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}class tI{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=bs(r);const o=this.injector.get(t,bc,r);return o!==bc||n===bc?o:this.parentInjector.get(t,n,r)}}class Ei extends gm{get inputs(){return Xm(this.componentDef.inputs)}get outputs(){return Xm(this.componentDef.outputs)}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function QE(e){return e.map(XE).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}create(t,n,r,o){let i=(o=o||this.ngModule)instanceof sn?o:o?.injector;i&&null!==this.componentDef.getStandaloneInjector&&(i=this.componentDef.getStandaloneInjector(i)||i);const s=i?new tI(t,i):t,a=s.get(ym,null);if(null===a)throw new w(407,!1);const c={rendererFactory:a,sanitizer:s.get(rS,null),effectManager:s.get(Zm,null)},d=a.createRenderer(null,this.componentDef),f=this.componentDef.selectors[0][0]||"div",h=r?function DS(e,t,n,r){const i=r.get(Dm,!1)||n===Ct.ShadowDom,s=e.selectRootElement(t,i);return function _S(e){km(e)}(s),s}(d,r,this.componentDef.encapsulation,s):ra(d,f,function eI(e){const t=e.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(f)),p=this.componentDef.onPush?576:528,m=Nc(0,null,null,1,0,null,null,null,null,null,null),C=Da(null,m,null,p,null,null,c,d,s,null,null);let b,g;Du(C);try{const M=this.componentDef;let x,Y=null;M.findHostDirectiveDefs?(x=[],Y=new Map,M.findHostDirectiveDefs(M,x,Y),x.push(M)):x=[M];const pe=function rI(e,t){const n=e[T],r=Q;return e[r]=t,oo(n,r,2,"#host",null)}(C,h),$o=function oI(e,t,n,r,o,i,s){const a=o[T];!function iI(e,t,n,r){for(const o of e)t.mergedAttrs=Zo(t.mergedAttrs,o.hostAttrs);null!==t.mergedAttrs&&(wa(t,t.mergedAttrs,!0),null!==n&&jg(r,n,t))}(r,e,t,s);let l=null;null!==t&&(l=fm(t,o[Lr]));const u=i.rendererFactory.createRenderer(t,n),c=Da(o,Fm(n),null,n.onPush?64:16,o[e.index],e,i,u,null,null,l);return a.firstCreatePass&&Oc(a,e,r.length-1),_a(o,c),o[e.index]=c}(pe,h,M,x,C,c,d);g=Ip(m,Q),h&&function aI(e,t,n,r){if(r)su(e,n,["ng-version",oS.full]);else{const{attrs:o,classes:i}=function KE(e){const t=[],n=[];let r=1,o=2;for(;r0&&$g(e,n,i.join(" "))}}(d,M,h,r),void 0!==n&&function lI(e,t,n){const r=e.projection=[];for(let o=0;o=0;r--){const o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=Zo(o.hostAttrs,n=Zo(n,o.hostAttrs))}}(r)}function Vc(e){return e===En?{}:e===ee?[]:e}function dI(e,t){const n=e.viewQuery;e.viewQuery=n?(r,o)=>{t(r,o),n(r,o)}:t}function fI(e,t){const n=e.contentQueries;e.contentQueries=n?(r,o,i)=>{t(r,o,i),n(r,o,i)}:t}function hI(e,t){const n=e.hostBindings;e.hostBindings=n?(r,o)=>{t(r,o),n(r,o)}:t}function Ma(e){return!!function Hc(e){return null!==e&&("function"==typeof e||"object"==typeof e)}(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function un(e,t,n){return e[t]=n}function Qe(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function Cr(e,t,n,r){const o=Qe(e,t,n);return Qe(e,t+1,r)||o}function cn(e,t,n,r){const o=_();return Qe(o,Ur(),t)&&(K(),ln(Ce(),o,e,t,n,r)),cn}function so(e,t,n,r){return Qe(e,Ur(),n)?t+U(n)+r:G}function ao(e,t,n,r,o,i){const a=Cr(e,function Sn(){return H.lFrame.bindingIndex}(),n,o);return In(2),a?t+U(n)+r+U(o)+i:G}function On(e,t,n,r,o,i,s,a){const l=_(),u=K(),c=e+Q,d=u.firstCreatePass?function VI(e,t,n,r,o,i,s,a,l){const u=t.consts,c=oo(t,e,4,s||null,zn(u,a));Rc(t,n,c,zn(u,l)),Hs(t,c);const d=c.tView=Nc(2,c,r,o,i,t.directiveRegistry,t.pipeRegistry,null,t.schemas,u,null);return null!==t.queries&&(t.queries.template(t,c),d.queries=t.queries.embeddedTView(c)),c}(c,u,l,t,n,r,o,i,s):u.data[c];rn(d,!1);const f=hy(u,l,d,e);Vs()&&ia(u,l,f,d),Xe(f,l),_a(l,l[c]=Bm(f,l,f,d)),Ns(d)&&Tc(u,l,d),null!=s&&Ac(l,d,a)}let hy=function py(e,t,n,r){return Gn(!0),t[z].createComment("")};function j(e,t,n){const r=_();return Qe(r,Ur(),t)&&bt(K(),Ce(),r,e,t,r[z],n,!1),j}function Gc(e,t,n,r,o){const s=o?"class":"style";Fc(e,n,t.inputs[s],s,r)}function y(e,t,n,r){const o=_(),i=K(),s=Q+e,a=o[z],l=i.firstCreatePass?function UI(e,t,n,r,o,i){const s=t.consts,l=oo(t,e,2,r,zn(s,o));return Rc(t,n,l,zn(s,i)),null!==l.attrs&&wa(l,l.attrs,!1),null!==l.mergedAttrs&&wa(l,l.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,l),l}(s,i,o,t,n,r):i.data[s],u=gy(i,o,l,a,t,e);o[s]=u;const c=Ns(l);return rn(l,!0),jg(a,u,l),32!=(32&l.flags)&&Vs()&&ia(i,o,u,l),0===function I1(){return H.lFrame.elementDepthCount}()&&Xe(u,o),function T1(){H.lFrame.elementDepthCount++}(),c&&(Tc(i,o,l),Ic(i,l,o)),null!==r&&Ac(o,l),y}function v(){let e=ze();gu()?function mu(){H.lFrame.isParent=!1}():(e=e.parent,rn(e,!1));const t=e;(function N1(e){return H.skipHydrationRootTNode===e})(t)&&function x1(){H.skipHydrationRootTNode=null}(),function A1(){H.lFrame.elementDepthCount--}();const n=K();return n.firstCreatePass&&(Hs(n,e),lu(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function Y1(e){return 0!=(8&e.flags)}(t)&&Gc(n,t,_(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function X1(e){return 0!=(16&e.flags)}(t)&&Gc(n,t,_(),t.stylesWithoutHost,!1),v}function ue(e,t,n,r){return y(e,t,n,r),v(),ue}let gy=(e,t,n,r,o,i)=>(Gn(!0),ra(r,o,function zp(){return H.lFrame.currentNamespace}()));function Na(){return _()}function Ti(e){return!!e&&"function"==typeof e.then}function vy(e){return!!e&&"function"==typeof e.subscribe}function P(e,t,n,r){const o=_(),i=K(),s=ze();return function Dy(e,t,n,r,o,i,s){const a=Ns(r),u=e.firstCreatePass&&Gm(e),c=t[_e],d=zm(t);let f=!0;if(3&r.type||s){const m=dt(r,t),C=s?s(m):m,b=d.length,g=s?x=>s(ge(x[r.index])):r.index;let M=null;if(!s&&a&&(M=function YI(e,t,n,r){const o=e.cleanup;if(null!=o)for(let i=0;il?a[l]:null}"string"==typeof s&&(i+=2)}return null}(e,t,o,r.index)),null!==M)(M.__ngLastListenerFn__||M).__ngNextListenerFn__=i,M.__ngLastListenerFn__=i,f=!1;else{i=wy(r,t,c,i,!1);const x=n.listen(C,o,i);d.push(i,x),u&&u.push(o,g,b,b+1)}}else i=wy(r,t,c,i,!1);const h=r.outputs;let p;if(f&&null!==h&&(p=h[o])){const m=p.length;if(m)for(let C=0;C-1?ft(e.index,t):t);let l=_y(t,n,r,s),u=i.__ngNextListenerFn__;for(;u;)l=_y(t,n,u,s)&&l,u=u.__ngNextListenerFn__;return o&&!1===l&&(s.preventDefault(),s.returnValue=!1),l}}function Ai(e=1){return function $1(e){return(H.lFrame.contextLView=function j1(e,t){for(;e>0;)t=t[Vr],e--;return t}(e,H.lFrame.contextLView))[_e]}(e)}function Ra(e,t,n,r,o){const i=_(),s=so(i,t,n,r);return s!==G&&bt(K(),Ce(),i,e,s,i[z],o,!1),Ra}function Oa(e,t){return e<<17|t<<2}function qn(e){return e>>17&32767}function Zc(e){return 2|e}function Dr(e){return(131068&e)>>2}function Yc(e,t){return-131069&e|t<<2}function Xc(e){return 1|e}function Oy(e,t,n,r,o){const i=e[n+1],s=null===t;let a=r?qn(i):Dr(i),l=!1;for(;0!==a&&(!1===l||s);){const c=e[a+1];oT(e[a],t)&&(l=!0,e[a+1]=r?Xc(c):Zc(c)),a=r?qn(c):Dr(c)}l&&(e[n+1]=r?Zc(i):Xc(i))}function oT(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Xr(e,t)>=0}function Pa(e,t){return function jt(e,t,n,r){const o=_(),i=K(),s=In(2);i.firstUpdatePass&&function jy(e,t,n,r){const o=e.data;if(null===o[n+1]){const i=o[nt()],s=function $y(e,t){return t>=e.expandoStartIndex}(e,n);(function Gy(e,t){return 0!=(e.flags&(t?8:16))})(i,r)&&null===t&&!s&&(t=!1),t=function hT(e,t,n,r){const o=function vu(e){const t=H.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let i=r?t.residualClasses:t.residualStyles;if(null===o)0===(r?t.classBindings:t.styleBindings)&&(n=Ni(n=Qc(null,e,t,n,r),t.attrs,r),i=null);else{const s=t.directiveStylingLast;if(-1===s||e[s]!==o)if(n=Qc(o,e,t,n,r),null===i){let l=function pT(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==Dr(r))return e[qn(r)]}(e,t,r);void 0!==l&&Array.isArray(l)&&(l=Qc(null,e,t,l[1],r),l=Ni(l,t.attrs,r),function gT(e,t,n,r){e[qn(n?t.classBindings:t.styleBindings)]=r}(e,t,r,l))}else i=function mT(e,t,n){let r;const o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i0)&&(u=!0)):c=n,o)if(0!==l){const f=qn(e[a+1]);e[r+1]=Oa(f,a),0!==f&&(e[f+1]=Yc(e[f+1],r)),e[a+1]=function eT(e,t){return 131071&e|t<<17}(e[a+1],r)}else e[r+1]=Oa(a,0),0!==a&&(e[a+1]=Yc(e[a+1],r)),a=r;else e[r+1]=Oa(l,0),0===a?a=r:e[l+1]=Yc(e[l+1],r),l=r;u&&(e[r+1]=Zc(e[r+1])),Oy(e,c,r,!0),Oy(e,c,r,!1),function rT(e,t,n,r,o){const i=o?e.residualClasses:e.residualStyles;null!=i&&"string"==typeof t&&Xr(i,t)>=0&&(n[r+1]=Xc(n[r+1]))}(t,c,e,r,i),s=Oa(a,l),i?t.classBindings=s:t.styleBindings=s}(o,i,t,n,s,r)}}(i,e,s,r),t!==G&&Qe(o,s,t)&&function Uy(e,t,n,r,o,i,s,a){if(!(3&t.type))return;const l=e.data,u=l[a+1],c=function tT(e){return 1==(1&e)}(u)?zy(l,t,n,o,Dr(u),s):void 0;xa(c)||(xa(i)||function JI(e){return 2==(2&e)}(u)&&(i=zy(l,null,n,o,a,s)),function oM(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else{let i=-1===r.indexOf("-")?void 0:ht.DashCase;null==o?e.removeStyle(n,r,i):("string"==typeof o&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=ht.Important),e.setStyle(n,r,o,i))}}(r,s,xs(nt(),n),o,i))}(i,i.data[nt()],o,o[z],e,o[s+1]=function DT(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=xe(Wn(e)))),e}(t,n),r,s)}(e,t,null,!0),Pa}function Qc(e,t,n,r,o){let i=null;const s=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const l=e[o],u=Array.isArray(l),c=u?l[1]:l,d=null===c;let f=n[o+1];f===G&&(f=d?ee:void 0);let h=d?Nu(f,r):c===r?f:void 0;if(u&&!xa(h)&&(h=Nu(l,r)),xa(h)&&(a=h,s))return a;const p=e[o+1];o=s?qn(p):Dr(p)}if(null!==t){let l=i?t.residualClasses:t.residualStyles;null!=l&&(a=Nu(l,r))}return a}function xa(e){return void 0!==e}function E(e,t=""){const n=_(),r=K(),o=e+Q,i=r.firstCreatePass?oo(r,o,1,t,null):r.data[o],s=Wy(r,n,i,t,e);n[o]=s,Vs()&&ia(r,n,s,i),rn(i,!1)}let Wy=(e,t,n,r,o)=>(Gn(!0),function na(e,t){return e.createText(t)}(t[z],r));function rt(e){return Ke("",e,""),rt}function Ke(e,t,n){const r=_(),o=so(r,e,t,n);return o!==G&&Rn(r,nt(),o),Ke}function Fa(e,t,n,r,o){const i=_(),s=ao(i,e,t,n,r,o);return s!==G&&Rn(i,nt(),s),Fa}const _r=void 0;var BT=["en",[["a","p"],["AM","PM"],_r],[["AM","PM"],_r,_r],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],_r,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],_r,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",_r,"{1} 'at' {0}",_r],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function jT(e){const n=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===r?1:5}];let mo={};function ot(e){const t=function UT(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=fv(t);if(n)return n;const r=t.split("-")[0];if(n=fv(r),n)return n;if("en"===r)return BT;throw new w(701,!1)}function fv(e){return e in mo||(mo[e]=de.ng&&de.ng.common&&de.ng.common.locales&&de.ng.common.locales[e]),mo[e]}var A=(()=>((A=A||{})[A.LocaleId=0]="LocaleId",A[A.DayPeriodsFormat=1]="DayPeriodsFormat",A[A.DayPeriodsStandalone=2]="DayPeriodsStandalone",A[A.DaysFormat=3]="DaysFormat",A[A.DaysStandalone=4]="DaysStandalone",A[A.MonthsFormat=5]="MonthsFormat",A[A.MonthsStandalone=6]="MonthsStandalone",A[A.Eras=7]="Eras",A[A.FirstDayOfWeek=8]="FirstDayOfWeek",A[A.WeekendRange=9]="WeekendRange",A[A.DateFormat=10]="DateFormat",A[A.TimeFormat=11]="TimeFormat",A[A.DateTimeFormat=12]="DateTimeFormat",A[A.NumberSymbols=13]="NumberSymbols",A[A.NumberFormats=14]="NumberFormats",A[A.CurrencyCode=15]="CurrencyCode",A[A.CurrencySymbol=16]="CurrencySymbol",A[A.CurrencyName=17]="CurrencyName",A[A.Currencies=18]="Currencies",A[A.Directionality=19]="Directionality",A[A.PluralCase=20]="PluralCase",A[A.ExtraData=21]="ExtraData",A))();const yo="en-US";let hv=yo;function ed(e,t,n,r,o){if(e=B(e),Array.isArray(e))for(let i=0;i>20;if(mr(e)||!e.multi){const h=new ei(l,o,D),p=nd(a,t,o?c:c+f,d);-1===p?(Iu(Gs(u,s),i,a),td(i,e,t.length),t.push(a),u.directiveStart++,u.directiveEnd++,o&&(u.providerIndexes+=1048576),n.push(h),s.push(h)):(n[p]=h,s[p]=h)}else{const h=nd(a,t,c+f,d),p=nd(a,t,c,c+f),C=p>=0&&n[p];if(o&&!C||!o&&!(h>=0&&n[h])){Iu(Gs(u,s),i,a);const b=function $A(e,t,n,r,o){const i=new ei(e,n,D);return i.multi=[],i.index=t,i.componentProviders=0,Vv(i,o,r&&!n),i}(o?HA:VA,n.length,o,r,l);!o&&C&&(n[p].providerFactory=b),td(i,e,t.length,0),t.push(a),u.directiveStart++,u.directiveEnd++,o&&(u.providerIndexes+=1048576),n.push(b),s.push(b)}else td(i,e,h>-1?h:p,Vv(n[o?p:h],l,!o&&r));!o&&r&&C&&n[p].componentProviders++}}}function td(e,t,n,r){const o=mr(t),i=function xM(e){return!!e.useClass}(t);if(o||i){const l=(i?B(t.useClass):t).prototype.ngOnDestroy;if(l){const u=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){const c=u.indexOf(n);-1===c?u.push(n,[r,l]):u[c+1].push(r,l)}else u.push(n,l)}}}function Vv(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function nd(e,t,n,r){for(let o=n;o{n.providersResolver=(r,o)=>function LA(e,t,n){const r=K();if(r.firstCreatePass){const o=$t(e);ed(n,r.data,r.blueprint,o,!0),ed(t,r.data,r.blueprint,o,!1)}}(r,o?o(e):e,t)}}class vo{}class Hv{}class od extends vo{constructor(t,n,r){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Ym(this);const o=Dt(t);this._bootstrapComponents=Nn(o.bootstrap),this._r3Injector=Om(t,n,[{provide:vo,useValue:this},{provide:ya,useValue:this.componentFactoryResolver},...r],xe(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class id extends Hv{constructor(t){super(),this.moduleType=t}create(t){return new od(this.moduleType,t,[])}}class $v extends vo{constructor(t){super(),this.componentFactoryResolver=new Ym(this),this.instance=null;const n=new dc([...t.providers,{provide:vo,useValue:this},{provide:ya,useValue:this.componentFactoryResolver}],t.parent||da(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function sd(e,t,n=null){return new $v({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}let UA=(()=>{class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n.id)){const r=rm(0,n.type),o=r.length>0?sd([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n.id,o)}return this.cachedInjectors.get(n.id)}ngOnDestroy(){try{for(const n of this.cachedInjectors.values())null!==n&&n.destroy()}finally{this.cachedInjectors.clear()}}}return e.\u0275prov=O({token:e,providedIn:"environment",factory:()=>new e(N(sn))}),e})();function jv(e){e.getStandaloneInjector=t=>t.get(UA).getOrCreateStandaloneInjector(e)}function ld(e,t,n){const r=tt()+e,o=_();return o[r]===G?un(o,r,n?t.call(n):t()):function bi(e,t){return e[t]}(o,r)}function ud(e,t,n,r){return function Zv(e,t,n,r,o,i){const s=t+n;return Qe(e,s,o)?un(e,s+1,i?r.call(i,o):r(o)):ki(e,s+1)}(_(),tt(),e,t,n,r)}function ki(e,t){const n=e[t];return n===G?void 0:n}function Li(e,t){const n=K();let r;const o=e+Q;n.firstCreatePass?(r=function s2(e,t){if(t)for(let n=t.length-1;n>=0;n--){const r=t[n];if(e===r.name)return r}}(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];const i=r.factory||(r.factory=fr(r.type)),s=at(D);try{const a=zs(!1),l=i();return zs(a),function jI(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}(n,_(),o,l),l}finally{at(s)}}function Vi(e,t,n,r){const o=e+Q,i=_(),s=function jr(e,t){return e[t]}(i,o);return function Hi(e,t){return e[T].data[t].pure}(i,o)?function Yv(e,t,n,r,o,i,s){const a=t+n;return Cr(e,a,o,i)?un(e,a+2,s?r.call(s,o,i):r(o,i)):ki(e,a+2)}(i,tt(),t,s.transform,n,r,s):s.transform(n,r)}function cd(e){return t=>{setTimeout(e,void 0,t)}}const Ee=class d2 extends Dn{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&"object"==typeof t){const l=t;o=l.next?.bind(l),i=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(i=cd(i),o&&(o=cd(o)),s&&(s=cd(s)));const a=super.subscribe({next:o,error:i,complete:s});return t instanceof It&&t.add(a),a}};function f2(){return this._results[Symbol.iterator]()}class dd{get changes(){return this._changes||(this._changes=new Ee)}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const n=dd.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=f2)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){const r=this;r.dirty=!1;const o=function Pt(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function ab(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r{class e{}return e.__NG_ELEMENT_ID__=g2,e})();const h2=Pn,p2=class extends h2{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n,null)}createEmbeddedViewImpl(t,n,r){const o=this._declarationTContainer.tView,i=Da(this._declarationLView,o,t,16,null,o.declTNode,null,null,null,n||null,r||null);i[Xo]=this._declarationLView[this._declarationTContainer.index];const a=this._declarationLView[Jt];return null!==a&&(i[Jt]=a.createEmbeddedView(o)),kc(o,i,t),new wi(i)}};function g2(){return $a(ze(),_())}function $a(e,t){return 4&e.type?new p2(t,e,no(e,t)):null}let Ut=(()=>{class e{}return e.__NG_ELEMENT_ID__=w2,e})();function w2(){return oC(ze(),_())}const E2=Ut,nC=class extends E2{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return no(this._hostTNode,this._hostLView)}get injector(){return new Gr(this._hostTNode,this._hostLView)}get parentInjector(){const t=Su(this._hostTNode,this._hostLView);if(Zp(t)){const n=Us(t,this._hostLView),r=Bs(t);return new Gr(n[T].data[r+8],n)}return new Gr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=rC(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-Ue}createEmbeddedView(t,n,r){let o,i;"number"==typeof r?o=r:null!=r&&(o=r.index,i=r.injector);const a=t.createEmbeddedViewImpl(n||{},i,null);return this.insertImpl(a,o,false),a}createComponent(t,n,r,o,i){const s=t&&!function ni(e){return"function"==typeof e}(t);let a;if(s)a=n;else{const m=n||{};a=m.index,r=m.injector,o=m.projectableNodes,i=m.environmentInjector||m.ngModuleRef}const l=s?t:new Ei(ne(t)),u=r||this.parentInjector;if(!i&&null==l.ngModule){const C=(s?u:this.parentInjector).get(sn,null);C&&(i=C)}ne(l.componentType??{});const h=l.create(u,o,null,i);return this.insertImpl(h.hostView,a,false),h}insert(t,n){return this.insertImpl(t,n,!1)}insertImpl(t,n,r){const o=t._lView,i=o[T];if(function b1(e){return ct(e[ve])}(o)){const l=this.indexOf(t);if(-1!==l)this.detach(l);else{const u=o[ve],c=new nC(u,u[Ye],u[ve]);c.detach(c.indexOf(t))}}const s=this._adjustIndex(n),a=this._lContainer;if(function Xb(e,t,n,r){const o=Ue+r,i=n.length;r>0&&(n[o-1][Ht]=t),r0)r.push(s[a/2]);else{const u=i[a+1],c=t[-l];for(let d=Ue;d{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=I(Md,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const n=[];for(const o of this.appInits){const i=o();if(Ti(i))n.push(i);else if(vy(i)){const s=new Promise((a,l)=>{i.subscribe({complete:a,error:l})});n.push(s)}}const r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),0===n.length&&r(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),AC=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();const xn=new R("LocaleId",{providedIn:"root",factory:()=>I(xn,L.Optional|L.SkipSelf)||function eN(){return typeof $localize<"u"&&$localize.locale||yo}()});class nN{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let NC=(()=>{class e{compileModuleSync(n){return new id(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const r=this.compileModuleSync(n),i=Nn(Dt(n).declarations).reduce((s,a)=>{const l=ne(a);return l&&s.push(new Ei(l)),s},[]);return new nN(r,i)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const iN=(()=>Promise.resolve(0))();function Id(e){typeof Zone>"u"?iN.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}function PC(...e){}class ye{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ee(!1),this.onMicrotaskEmpty=new Ee(!1),this.onStable=new Ee(!1),this.onError=new Ee(!1),typeof Zone>"u")throw new w(908,!1);Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!r&&n,o.shouldCoalesceRunChangeDetection=r,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function sN(){let e=de.requestAnimationFrame,t=de.cancelAnimationFrame;if(typeof Zone<"u"&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function uN(e){const t=()=>{!function lN(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(de,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Ad(e),e.isCheckStableRunning=!0,Td(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Ad(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,o,i,s,a)=>{try{return xC(e),n.invokeTask(o,i,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||e.shouldCoalesceRunChangeDetection)&&t(),FC(e)}},onInvoke:(n,r,o,i,s,a,l)=>{try{return xC(e),n.invoke(o,i,s,a,l)}finally{e.shouldCoalesceRunChangeDetection&&t(),FC(e)}},onHasTask:(n,r,o,i)=>{n.hasTask(o,i),r===o&&("microTask"==i.change?(e._hasPendingMicrotasks=i.microTask,Ad(e),Td(e)):"macroTask"==i.change&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:(n,r,o,i)=>(n.handleError(o,i),e.runOutsideAngular(()=>e.onError.emit(i)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ye.isInAngularZone())throw new w(909,!1)}static assertNotInAngularZone(){if(ye.isInAngularZone())throw new w(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){const i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,aN,PC,PC);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const aN={};function Td(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Ad(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function xC(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function FC(e){e._nesting--,Td(e)}class cN{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ee,this.onMicrotaskEmpty=new Ee,this.onStable=new Ee,this.onError=new Ee}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}}const kC=new R("",{providedIn:"root",factory:LC});function LC(){const e=I(ye);let t=!0;return function EE(...e){const t=zo(e),n=function mE(e,t){return"number"==typeof ql(e)?e.pop():t}(e,1/0),r=e;return r.length?1===r.length?Tt(r[0]):Pr(n)(Pe(r,t)):Qt}(new be(o=>{t=e.isStable&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks,e.runOutsideAngular(()=>{o.next(t),o.complete()})}),new be(o=>{let i;e.runOutsideAngular(()=>{i=e.onStable.subscribe(()=>{ye.assertNotInAngularZone(),Id(()=>{!t&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks&&(t=!0,o.next(!0))})})});const s=e.onUnstable.subscribe(()=>{ye.assertInAngularZone(),t&&(t=!1,e.runOutsideAngular(()=>{o.next(!1)}))});return()=>{i.unsubscribe(),s.unsubscribe()}}).pipe(function bE(e={}){const{connector:t=(()=>new Dn),resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=e;return i=>{let s,a,l,u=0,c=!1,d=!1;const f=()=>{a?.unsubscribe(),a=void 0},h=()=>{f(),s=l=void 0,c=d=!1},p=()=>{const m=s;h(),m?.unsubscribe()};return je((m,C)=>{u++,!d&&!c&&f();const b=l=l??t();C.add(()=>{u--,0===u&&!d&&!c&&(a=Zl(p,o))}),b.subscribe(C),!s&&u>0&&(s=new Uo({next:g=>b.next(g),error:g=>{d=!0,f(),a=Zl(h,n,g),b.error(g)},complete:()=>{c=!0,f(),a=Zl(h,r),b.complete()}}),Tt(m).subscribe(s))})(i)}}()))}const VC=new R(""),za=new R("");let Od,Nd=(()=>{class e{constructor(n,r,o){this._ngZone=n,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Od||(function dN(e){Od=e}(o),o.addToWindow(r)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{ye.assertNotInAngularZone(),Id(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Id(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,o){let i=-1;r&&r>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==i),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:i,updateCb:o})}whenStable(n,r,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,r,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,r,o){return[]}}return e.\u0275fac=function(n){return new(n||e)(N(ye),N(Rd),N(za))},e.\u0275prov=O({token:e,factory:e.\u0275fac}),e})(),Rd=(()=>{class e{constructor(){this._applications=new Map}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return Od?.findTestabilityInTree(this,n,r)??null}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})(),Zn=null;const HC=new R("AllowMultipleToken"),Pd=new R("PlatformDestroyListeners"),xd=new R("appBootstrapListener");class jC{constructor(t,n){this.name=t,this.token=n}}function UC(e,t,n=[]){const r=`Platform: ${t}`,o=new R(r);return(i=[])=>{let s=Fd();if(!s||s.injector.get(HC,!1)){const a=[...n,...i,{provide:o,useValue:!0}];e?e(a):function pN(e){if(Zn&&!Zn.get(HC,!1))throw new w(400,!1);(function $C(){!function h1(e){Dp=e}(()=>{throw new w(600,!1)})})(),Zn=e;const t=e.get(GC);(function BC(e){e.get(lm,null)?.forEach(n=>n())})(e)}(function zC(e=[],t){return an.create({name:t,providers:[{provide:uc,useValue:"platform"},{provide:Pd,useValue:new Set([()=>Zn=null])},...e]})}(a,r))}return function mN(e){const t=Fd();if(!t)throw new w(401,!1);return t}()}}function Fd(){return Zn?.get(GC)??null}let GC=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const o=function yN(e="zone.js",t){return"noop"===e?new cN:"zone.js"===e?new ye(t):e}(r?.ngZone,function WC(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing}));return o.run(()=>{const i=function BA(e,t,n){return new od(e,t,n)}(n.moduleType,this.injector,function QC(e){return[{provide:ye,useFactory:e},{provide:pi,multi:!0,useFactory:()=>{const t=I(CN,{optional:!0});return()=>t.initialize()}},{provide:XC,useFactory:vN},{provide:kC,useFactory:LC}]}(()=>o)),s=i.injector.get(vr,null);return o.runOutsideAngular(()=>{const a=o.onError.subscribe({next:l=>{s.handleError(l)}});i.onDestroy(()=>{Ga(this._modules,i),a.unsubscribe()})}),function qC(e,t,n){try{const r=n();return Ti(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(s,o,()=>{const a=i.injector.get(Sd);return a.runInitializers(),a.donePromise.then(()=>(function pv(e){At(e,"Expected localeId to be defined"),"string"==typeof e&&(hv=e.toLowerCase().replace(/_/g,"-"))}(i.injector.get(xn,yo)||yo),this._moduleDoBootstrap(i),i))})})}bootstrapModule(n,r=[]){const o=ZC({},r);return function fN(e,t,n){const r=new id(n);return Promise.resolve(r)}(0,0,n).then(i=>this.bootstrapModuleFactory(i,o))}_moduleDoBootstrap(n){const r=n.injector.get(_o);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(o=>r.bootstrap(o));else{if(!n.instance.ngDoBootstrap)throw new w(-403,!1);n.instance.ngDoBootstrap(r)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new w(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const n=this._injector.get(Pd,null);n&&(n.forEach(r=>r()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(n){return new(n||e)(N(an))},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();function ZC(e,t){return Array.isArray(t)?t.reduce(ZC,e):{...e,...t}}let _o=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=I(XC),this.componentTypes=[],this.components=[],this.isStable=I(kC),this._injector=I(sn)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,r){const o=n instanceof gm;if(!this._injector.get(Sd).done)throw!o&&function Fr(e){const t=ne(e)||Ze(e)||ut(e);return null!==t&&t.standalone}(n),new w(405,!1);let s;s=o?n:this._injector.get(ya).resolveComponentFactory(n),this.componentTypes.push(s.componentType);const a=function hN(e){return e.isBoundToModule}(s)?void 0:this._injector.get(vo),u=s.create(an.NULL,[],r||s.selector,a),c=u.location.nativeElement,d=u.injector.get(VC,null);return d?.registerApplication(c),u.onDestroy(()=>{this.detachView(u.hostView),Ga(this.components,u),d?.unregisterApplication(c)}),this._loadComponent(u),u}tick(){if(this._runningTick)throw new w(101,!1);try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this.internalErrorHandler(n)}finally{this._runningTick=!1}}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;Ga(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);const r=this._injector.get(xd,[]);r.push(...this._bootstrapListeners),r.forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Ga(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new w(406,!1);const n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Ga(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const XC=new R("",{providedIn:"root",factory:()=>I(vr).handleError.bind(void 0)});function vN(){const e=I(ye),t=I(vr);return n=>e.runOutsideAngular(()=>t.handleError(n))}let CN=(()=>{class e{constructor(){this.zone=I(ye),this.applicationRef=I(_o)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();let Wa=(()=>{class e{}return e.__NG_ELEMENT_ID__=_N,e})();function _N(e){return function wN(e,t,n){if(dr(e)&&!n){const r=ft(e.index,t);return new wi(r,r)}return 47&e.type?new wi(t[Te],t):null}(ze(),_(),16==(16&e))}class tD{constructor(){}supports(t){return Ma(t)}create(t){return new TN(t)}}const IN=(e,t)=>t;class TN{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||IN}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){const s=!r||n&&n.currentIndex{s=this._trackByFn(o,a),null!==n&&Object.is(n.trackById,s)?(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)):(n=this._mismatch(n,a,s,o),r=!0),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,o){let i;return null===t?i=this._itTail:(i=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,i,o)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(r,o))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,i,o)):t=this._addAfter(new AN(n,r),i,o),t}_verifyReinsertion(t,n,r,o){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==i?t=this._reinsertAfter(i,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const o=t._prevRemoved,i=t._nextRemoved;return null===o?this._removalsHead=i:o._nextRemoved=i,null===i?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){const o=null===n?this._itHead:n._next;return t._next=o,t._prev=n,null===o?this._itTail=t:o._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new nD),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,r=t._next;return null===n?this._itHead=r:n._next=r,null===r?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new nD),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class AN{constructor(t,n){this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class NN{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===n||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){const n=t._prevDup,r=t._nextDup;return null===n?this._head=r:n._nextDup=r,null===r?this._tail=n:r._prevDup=n,null===this._head}}class nD{constructor(){this.map=new Map}put(t){const n=t.trackById;let r=this.map.get(n);r||(r=new NN,this.map.set(n,r)),r.add(t)}get(t,n){const o=this.map.get(t);return o?o.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function rD(e,t,n){const r=e.previousIndex;if(null===r)return r;let o=0;return n&&r{class e{constructor(n){this.factories=n}static create(n,r){if(null!=r){const o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||iD()),deps:[[e,new Qs,new Xs]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(null!=r)return r;throw new w(901,!1)}}return e.\u0275prov=O({token:e,providedIn:"root",factory:iD}),e})();const FN=UC(null,"core",[]);let kN=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(N(_o))},e.\u0275mod=Vt({type:e}),e.\u0275inj=Nt({}),e})(),fD=(()=>{class e{get whenAllTasksComplete(){return 0===this.collection.size&&this.complete(),this.promise}constructor(){this.taskId=0,this.collection=new Set,this.ngZone=I(ye),this.completed=!1,this.ngZone.runOutsideAngular(()=>{this.promise=new Promise(n=>{this.resolve=n})})}add(){if(this.completed)return-1;const n=this.taskId++;return this.collection.add(n),n}remove(n){this.completed||(this.collection.delete(n),0===this.collection.size&&this.complete())}ngOnDestroy(){this.complete(),this.collection.clear()}complete(){this.completed=!0,this.resolve()}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function wo(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}let Bd=null;function Yn(){return Bd}class ZN{}const Mt=new R("DocumentToken");let Ud=(()=>{class e{historyGo(n){throw new Error("Not implemented")}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:function(){return I(XN)},providedIn:"platform"}),e})();const YN=new R("Location Initialized");let XN=(()=>{class e extends Ud{constructor(){super(),this._doc=I(Mt),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Yn().getBaseHref(this._doc)}onPopState(n){const r=Yn().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){const r=Yn().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n}pushState(n,r,o){this._history.pushState(n,r,o)}replaceState(n,r,o){this._history.replaceState(n,r,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:function(){return new e},providedIn:"platform"}),e})();function zd(e,t){if(0==e.length)return t;if(0==t.length)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function pD(e){const t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function Fn(e){return e&&"?"!==e[0]?"?"+e:e}let Xn=(()=>{class e{historyGo(n){throw new Error("Not implemented")}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:function(){return I(mD)},providedIn:"root"}),e})();const gD=new R("appBaseHref");let mD=(()=>{class e extends Xn{constructor(n,r){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??I(Mt).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return zd(this._baseHref,n)}path(n=!1){const r=this._platformLocation.pathname+Fn(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){const s=this.prepareExternalUrl(o+Fn(i));this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){const s=this.prepareExternalUrl(o+Fn(i));this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}}return e.\u0275fac=function(n){return new(n||e)(N(Ud),N(gD,8))},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),yD=(()=>{class e extends Xn{constructor(n,r){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],null!=r&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}path(n=!1){let r=this._platformLocation.hash;return null==r&&(r="#"),r.length>0?r.substring(1):r}prepareExternalUrl(n){const r=zd(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+Fn(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+Fn(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}}return e.\u0275fac=function(n){return new(n||e)(N(Ud),N(gD,8))},e.\u0275prov=O({token:e,factory:e.\u0275fac}),e})(),Gd=(()=>{class e{constructor(n){this._subject=new Ee,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;const r=this._locationStrategy.getBaseHref();this._basePath=function JN(e){if(new RegExp("^(https?:)?//").test(e)){const[,n]=e.split(/\/\/[^\/]+/);return n}return e}(pD(vD(r))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+Fn(r))}normalize(n){return e.stripTrailingSlash(function KN(e,t){if(!e||!t.startsWith(e))return t;const n=t.substring(e.length);return""===n||["/",";","?","#"].includes(n[0])?n:t}(this._basePath,vD(n)))}prepareExternalUrl(n){return n&&"/"!==n[0]&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",o=null){this._locationStrategy.pushState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Fn(r)),o)}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Fn(r)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)})),()=>{const r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(o=>o(n,r))}subscribe(n,r,o){return this._subject.subscribe({next:n,error:r,complete:o})}}return e.normalizeQueryParams=Fn,e.joinWithSlash=zd,e.stripTrailingSlash=pD,e.\u0275fac=function(n){return new(n||e)(N(Xn))},e.\u0275prov=O({token:e,factory:function(){return function QN(){return new Gd(N(Xn))}()},providedIn:"root"}),e})();function vD(e){return e.replace(/\/index.html$/,"")}var Me=(()=>((Me=Me||{})[Me.Format=0]="Format",Me[Me.Standalone=1]="Standalone",Me))(),X=(()=>((X=X||{})[X.Narrow=0]="Narrow",X[X.Abbreviated=1]="Abbreviated",X[X.Wide=2]="Wide",X[X.Short=3]="Short",X))(),De=(()=>((De=De||{})[De.Short=0]="Short",De[De.Medium=1]="Medium",De[De.Long=2]="Long",De[De.Full=3]="Full",De))(),k=(()=>((k=k||{})[k.Decimal=0]="Decimal",k[k.Group=1]="Group",k[k.List=2]="List",k[k.PercentSign=3]="PercentSign",k[k.PlusSign=4]="PlusSign",k[k.MinusSign=5]="MinusSign",k[k.Exponential=6]="Exponential",k[k.SuperscriptingExponent=7]="SuperscriptingExponent",k[k.PerMille=8]="PerMille",k[k.Infinity=9]="Infinity",k[k.NaN=10]="NaN",k[k.TimeSeparator=11]="TimeSeparator",k[k.CurrencyDecimal=12]="CurrencyDecimal",k[k.CurrencyGroup=13]="CurrencyGroup",k))();function Qa(e,t){return kt(ot(e)[A.DateFormat],t)}function Ka(e,t){return kt(ot(e)[A.TimeFormat],t)}function Ja(e,t){return kt(ot(e)[A.DateTimeFormat],t)}function Ft(e,t){const n=ot(e),r=n[A.NumberSymbols][t];if(typeof r>"u"){if(t===k.CurrencyDecimal)return n[A.NumberSymbols][k.Decimal];if(t===k.CurrencyGroup)return n[A.NumberSymbols][k.Group]}return r}function DD(e){if(!e[A.ExtraData])throw new Error(`Missing extra locale data for the locale "${e[A.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function kt(e,t){for(let n=t;n>-1;n--)if(typeof e[n]<"u")return e[n];throw new Error("Locale data API: locale data undefined")}function qd(e){const[t,n]=e.split(":");return{hours:+t,minutes:+n}}const fR=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Bi={},hR=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var Ve=(()=>((Ve=Ve||{})[Ve.Short=0]="Short",Ve[Ve.ShortGMT=1]="ShortGMT",Ve[Ve.Long=2]="Long",Ve[Ve.Extended=3]="Extended",Ve))(),V=(()=>((V=V||{})[V.FullYear=0]="FullYear",V[V.Month=1]="Month",V[V.Date=2]="Date",V[V.Hours=3]="Hours",V[V.Minutes=4]="Minutes",V[V.Seconds=5]="Seconds",V[V.FractionalSeconds=6]="FractionalSeconds",V[V.Day=7]="Day",V))(),Z=(()=>((Z=Z||{})[Z.DayPeriods=0]="DayPeriods",Z[Z.Days=1]="Days",Z[Z.Months=2]="Months",Z[Z.Eras=3]="Eras",Z))();function pR(e,t,n,r){let o=function ER(e){if(ED(e))return e;if("number"==typeof e&&!isNaN(e))return new Date(e);if("string"==typeof e){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){const[o,i=1,s=1]=e.split("-").map(a=>+a);return el(o,i-1,s)}const n=parseFloat(e);if(!isNaN(e-n))return new Date(n);let r;if(r=e.match(fR))return function bR(e){const t=new Date(0);let n=0,r=0;const o=e[8]?t.setUTCFullYear:t.setFullYear,i=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),r=Number(e[9]+e[11])),o.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));const s=Number(e[4]||0)-n,a=Number(e[5]||0)-r,l=Number(e[6]||0),u=Math.floor(1e3*parseFloat("0."+(e[7]||0)));return i.call(t,s,a,l,u),t}(r)}const t=new Date(e);if(!ED(t))throw new Error(`Unable to convert "${e}" into a date`);return t}(e);t=kn(n,t)||t;let a,s=[];for(;t;){if(a=hR.exec(t),!a){s.push(t);break}{s=s.concat(a.slice(1));const c=s.pop();if(!c)break;t=c}}let l=o.getTimezoneOffset();r&&(l=wD(r,l),o=function wR(e,t,n){const r=n?-1:1,o=e.getTimezoneOffset();return function _R(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}(e,r*(wD(t,o)-o))}(o,r,!0));let u="";return s.forEach(c=>{const d=function DR(e){if(Yd[e])return Yd[e];let t;switch(e){case"G":case"GG":case"GGG":t=fe(Z.Eras,X.Abbreviated);break;case"GGGG":t=fe(Z.Eras,X.Wide);break;case"GGGGG":t=fe(Z.Eras,X.Narrow);break;case"y":t=Re(V.FullYear,1,0,!1,!0);break;case"yy":t=Re(V.FullYear,2,0,!0,!0);break;case"yyy":t=Re(V.FullYear,3,0,!1,!0);break;case"yyyy":t=Re(V.FullYear,4,0,!1,!0);break;case"Y":t=ol(1);break;case"YY":t=ol(2,!0);break;case"YYY":t=ol(3);break;case"YYYY":t=ol(4);break;case"M":case"L":t=Re(V.Month,1,1);break;case"MM":case"LL":t=Re(V.Month,2,1);break;case"MMM":t=fe(Z.Months,X.Abbreviated);break;case"MMMM":t=fe(Z.Months,X.Wide);break;case"MMMMM":t=fe(Z.Months,X.Narrow);break;case"LLL":t=fe(Z.Months,X.Abbreviated,Me.Standalone);break;case"LLLL":t=fe(Z.Months,X.Wide,Me.Standalone);break;case"LLLLL":t=fe(Z.Months,X.Narrow,Me.Standalone);break;case"w":t=Zd(1);break;case"ww":t=Zd(2);break;case"W":t=Zd(1,!0);break;case"d":t=Re(V.Date,1);break;case"dd":t=Re(V.Date,2);break;case"c":case"cc":t=Re(V.Day,1);break;case"ccc":t=fe(Z.Days,X.Abbreviated,Me.Standalone);break;case"cccc":t=fe(Z.Days,X.Wide,Me.Standalone);break;case"ccccc":t=fe(Z.Days,X.Narrow,Me.Standalone);break;case"cccccc":t=fe(Z.Days,X.Short,Me.Standalone);break;case"E":case"EE":case"EEE":t=fe(Z.Days,X.Abbreviated);break;case"EEEE":t=fe(Z.Days,X.Wide);break;case"EEEEE":t=fe(Z.Days,X.Narrow);break;case"EEEEEE":t=fe(Z.Days,X.Short);break;case"a":case"aa":case"aaa":t=fe(Z.DayPeriods,X.Abbreviated);break;case"aaaa":t=fe(Z.DayPeriods,X.Wide);break;case"aaaaa":t=fe(Z.DayPeriods,X.Narrow);break;case"b":case"bb":case"bbb":t=fe(Z.DayPeriods,X.Abbreviated,Me.Standalone,!0);break;case"bbbb":t=fe(Z.DayPeriods,X.Wide,Me.Standalone,!0);break;case"bbbbb":t=fe(Z.DayPeriods,X.Narrow,Me.Standalone,!0);break;case"B":case"BB":case"BBB":t=fe(Z.DayPeriods,X.Abbreviated,Me.Format,!0);break;case"BBBB":t=fe(Z.DayPeriods,X.Wide,Me.Format,!0);break;case"BBBBB":t=fe(Z.DayPeriods,X.Narrow,Me.Format,!0);break;case"h":t=Re(V.Hours,1,-12);break;case"hh":t=Re(V.Hours,2,-12);break;case"H":t=Re(V.Hours,1);break;case"HH":t=Re(V.Hours,2);break;case"m":t=Re(V.Minutes,1);break;case"mm":t=Re(V.Minutes,2);break;case"s":t=Re(V.Seconds,1);break;case"ss":t=Re(V.Seconds,2);break;case"S":t=Re(V.FractionalSeconds,1);break;case"SS":t=Re(V.FractionalSeconds,2);break;case"SSS":t=Re(V.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=nl(Ve.Short);break;case"ZZZZZ":t=nl(Ve.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=nl(Ve.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=nl(Ve.Long);break;default:return null}return Yd[e]=t,t}(c);u+=d?d(o,n,l):"''"===c?"'":c.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}function el(e,t,n){const r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function kn(e,t){const n=function eR(e){return ot(e)[A.LocaleId]}(e);if(Bi[n]=Bi[n]||{},Bi[n][t])return Bi[n][t];let r="";switch(t){case"shortDate":r=Qa(e,De.Short);break;case"mediumDate":r=Qa(e,De.Medium);break;case"longDate":r=Qa(e,De.Long);break;case"fullDate":r=Qa(e,De.Full);break;case"shortTime":r=Ka(e,De.Short);break;case"mediumTime":r=Ka(e,De.Medium);break;case"longTime":r=Ka(e,De.Long);break;case"fullTime":r=Ka(e,De.Full);break;case"short":const o=kn(e,"shortTime"),i=kn(e,"shortDate");r=tl(Ja(e,De.Short),[o,i]);break;case"medium":const s=kn(e,"mediumTime"),a=kn(e,"mediumDate");r=tl(Ja(e,De.Medium),[s,a]);break;case"long":const l=kn(e,"longTime"),u=kn(e,"longDate");r=tl(Ja(e,De.Long),[l,u]);break;case"full":const c=kn(e,"fullTime"),d=kn(e,"fullDate");r=tl(Ja(e,De.Full),[c,d])}return r&&(Bi[n][t]=r),r}function tl(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(n,r){return null!=t&&r in t?t[r]:n})),e}function Gt(e,t,n="-",r,o){let i="";(e<0||o&&e<=0)&&(o?e=1-e:(e=-e,i=n));let s=String(e);for(;s.length0||a>-n)&&(a+=n),e===V.Hours)0===a&&-12===n&&(a=12);else if(e===V.FractionalSeconds)return function gR(e,t){return Gt(e,3).substring(0,t)}(a,t);const l=Ft(s,k.MinusSign);return Gt(a,t,l,r,o)}}function fe(e,t,n=Me.Format,r=!1){return function(o,i){return function yR(e,t,n,r,o,i){switch(n){case Z.Months:return function rR(e,t,n){const r=ot(e),i=kt([r[A.MonthsFormat],r[A.MonthsStandalone]],t);return kt(i,n)}(t,o,r)[e.getMonth()];case Z.Days:return function nR(e,t,n){const r=ot(e),i=kt([r[A.DaysFormat],r[A.DaysStandalone]],t);return kt(i,n)}(t,o,r)[e.getDay()];case Z.DayPeriods:const s=e.getHours(),a=e.getMinutes();if(i){const u=function aR(e){const t=ot(e);return DD(t),(t[A.ExtraData][2]||[]).map(r=>"string"==typeof r?qd(r):[qd(r[0]),qd(r[1])])}(t),c=function lR(e,t,n){const r=ot(e);DD(r);const i=kt([r[A.ExtraData][0],r[A.ExtraData][1]],t)||[];return kt(i,n)||[]}(t,o,r),d=u.findIndex(f=>{if(Array.isArray(f)){const[h,p]=f,m=s>=h.hours&&a>=h.minutes,C=s0?Math.floor(o/60):Math.ceil(o/60);switch(e){case Ve.Short:return(o>=0?"+":"")+Gt(s,2,i)+Gt(Math.abs(o%60),2,i);case Ve.ShortGMT:return"GMT"+(o>=0?"+":"")+Gt(s,1,i);case Ve.Long:return"GMT"+(o>=0?"+":"")+Gt(s,2,i)+":"+Gt(Math.abs(o%60),2,i);case Ve.Extended:return 0===r?"Z":(o>=0?"+":"")+Gt(s,2,i)+":"+Gt(Math.abs(o%60),2,i);default:throw new Error(`Unknown zone width "${e}"`)}}}const vR=0,rl=4;function _D(e){return el(e.getFullYear(),e.getMonth(),e.getDate()+(rl-e.getDay()))}function Zd(e,t=!1){return function(n,r){let o;if(t){const i=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,s=n.getDate();o=1+Math.floor((s+i)/7)}else{const i=_D(n),s=function CR(e){const t=el(e,vR,1).getDay();return el(e,0,1+(t<=rl?rl:rl+7)-t)}(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5)}return Gt(o,e,Ft(r,k.MinusSign))}}function ol(e,t=!1){return function(n,r){return Gt(_D(n).getFullYear(),e,Ft(r,k.MinusSign),t)}}const Yd={};function wD(e,t){e=e.replace(/:/g,"");const n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function ED(e){return e instanceof Date&&!isNaN(e.valueOf())}function ID(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const r=n.indexOf("="),[o,i]=-1==r?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}class VR{constructor(t,n,r,o){this.$implicit=t,this.ngForOf=n,this.index=r,this.count=o}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Er=(()=>{class e{set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}constructor(n,r,o){this._viewContainer=n,this._template=r,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;!this._differ&&n&&(this._differ=this._differs.find(n).create(this.ngForTrackBy))}if(this._differ){const n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){const r=this._viewContainer;n.forEachOperation((o,i,s)=>{if(null==o.previousIndex)r.createEmbeddedView(this._template,new VR(o.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)r.remove(null===i?void 0:i);else if(null!==i){const a=r.get(i);r.move(a,s),ND(a,o)}});for(let o=0,i=r.length;o{ND(r.get(o.currentIndex),o)})}static ngTemplateContextGuard(n,r){return!0}}return e.\u0275fac=function(n){return new(n||e)(D(Ut),D(Pn),D(Ya))},e.\u0275dir=$({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),e})();function ND(e,t){e.context.$implicit=t.item}let RD=(()=>{class e{constructor(n,r){this._viewContainer=n,this._context=new HR,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){OD("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){OD("ngIfElse",n),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(n,r){return!0}}return e.\u0275fac=function(n){return new(n||e)(D(Ut),D(Pn))},e.\u0275dir=$({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),e})();class HR{constructor(){this.$implicit=null,this.ngIf=null}}function OD(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${xe(t)}'.`)}const KR=new R("DATE_PIPE_DEFAULT_TIMEZONE"),JR=new R("DATE_PIPE_DEFAULT_OPTIONS");let zi=(()=>{class e{constructor(n,r,o){this.locale=n,this.defaultTimezone=r,this.defaultOptions=o}transform(n,r,o,i){if(null==n||""===n||n!=n)return null;try{return pR(n,r??this.defaultOptions?.dateFormat??"mediumDate",i||this.locale,o??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(s){throw function Wt(e,t){return new w(2100,!1)}()}}}return e.\u0275fac=function(n){return new(n||e)(D(xn,16),D(KR,24),D(JR,24))},e.\u0275pipe=lt({name:"date",type:e,pure:!0,standalone:!0}),e})(),u3=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Vt({type:e}),e.\u0275inj=Nt({}),e})();function kD(e){return"server"===e}let h3=(()=>{class e{}return e.\u0275prov=O({token:e,providedIn:"root",factory:()=>new p3(N(Mt),window)}),e})();class p3{constructor(t,n){this.document=t,this.window=n,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const n=function g3(e,t){const n=e.getElementById(t)||e.getElementsByName(t)[0];if(n)return n;if("function"==typeof e.createTreeWalker&&e.body&&"function"==typeof e.body.attachShadow){const r=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT);let o=r.currentNode;for(;o;){const i=o.shadowRoot;if(i){const s=i.getElementById(t)||i.querySelector(`[name="${t}"]`);if(s)return s}o=r.nextNode()}}return null}(this.document,t);n&&(this.scrollToElement(n),n.focus())}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const n=this.window.history;n&&n.scrollRestoration&&(n.scrollRestoration=t)}}scrollToElement(t){const n=t.getBoundingClientRect(),r=n.left+this.window.pageXOffset,o=n.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(r-i[0],o-i[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=LD(this.window.history)||LD(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function LD(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}class VD{}class B3 extends ZN{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class cf extends B3{static makeCurrent(){!function qN(e){Bd||(Bd=e)}(new cf)}onAndCancel(t,n,r){return t.addEventListener(n,r),()=>{t.removeEventListener(n,r)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,n){return(n=n||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return"window"===n?window:"document"===n?t:"body"===n?t.body:null}getBaseHref(t){const n=function U3(){return Wi=Wi||document.querySelector("base"),Wi?Wi.getAttribute("href"):null}();return null==n?null:function z3(e){ll=ll||document.createElement("a"),ll.setAttribute("href",e);const t=ll.pathname;return"/"===t.charAt(0)?t:`/${t}`}(n)}resetBaseElement(){Wi=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return ID(document.cookie,t)}}let ll,Wi=null,W3=(()=>{class e{build(){return new XMLHttpRequest}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac}),e})();const df=new R("EventManagerPlugins");let UD=(()=>{class e{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,o){return this._findPluginFor(r).addEventListener(n,r,o)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new w(5101,!1);return this._eventNameToPlugin.set(n,r),r}}return e.\u0275fac=function(n){return new(n||e)(N(df),N(ye))},e.\u0275prov=O({token:e,factory:e.\u0275fac}),e})();class zD{constructor(t){this._doc=t}}const ff="ng-app-id";let GD=(()=>{class e{constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,this.platformId=i,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=kD(i),this.resetHostNodes()}addStyles(n){for(const r of n)1===this.changeUsageCount(r,1)&&this.onStyleAdded(r)}removeStyles(n){for(const r of n)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){const n=this.styleNodesInDOM;n&&(n.forEach(r=>r.remove()),n.clear());for(const r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(const r of this.getAllStyles())this.addStyleToHost(n,r)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(const r of this.hostNodes)this.addStyleToHost(r,n)}onStyleRemoved(n){const r=this.styleRef;r.get(n)?.elements?.forEach(o=>o.remove()),r.delete(n)}collectServerRenderedStyles(){const n=this.doc.head?.querySelectorAll(`style[${ff}="${this.appId}"]`);if(n?.length){const r=new Map;return n.forEach(o=>{null!=o.textContent&&r.set(o.textContent,o)}),r}return null}changeUsageCount(n,r){const o=this.styleRef;if(o.has(n)){const i=o.get(n);return i.usage+=r,i.usage}return o.set(n,{usage:r,elements:[]}),r}getStyleElement(n,r){const o=this.styleNodesInDOM,i=o?.get(r);if(i?.parentNode===n)return o.delete(r),i.removeAttribute(ff),i;{const s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=r,this.platformIsServer&&s.setAttribute(ff,this.appId),s}}addStyleToHost(n,r){const o=this.getStyleElement(n,r);n.appendChild(o);const i=this.styleRef,s=i.get(r)?.elements;s?s.push(o):i.set(r,{elements:[o],usage:1})}resetHostNodes(){const n=this.hostNodes;n.clear(),n.add(this.doc.head)}}return e.\u0275fac=function(n){return new(n||e)(N(Mt),N(fa),N(um,8),N(yr))},e.\u0275prov=O({token:e,factory:e.\u0275fac}),e})();const hf={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/MathML/"},pf=/%COMP%/g,X3=new R("RemoveStylesOnCompDestory",{providedIn:"root",factory:()=>!1});function qD(e,t){return t.map(n=>n.replace(pf,e))}let ZD=(()=>{class e{constructor(n,r,o,i,s,a,l,u=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestory=i,this.doc=s,this.platformId=a,this.ngZone=l,this.nonce=u,this.rendererByCompId=new Map,this.platformIsServer=kD(a),this.defaultRenderer=new gf(n,s,l,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Ct.ShadowDom&&(r={...r,encapsulation:Ct.Emulated});const o=this.getOrCreateRenderer(n,r);return o instanceof XD?o.applyToHost(n):o instanceof mf&&o.applyStyles(),o}getOrCreateRenderer(n,r){const o=this.rendererByCompId;let i=o.get(r.id);if(!i){const s=this.doc,a=this.ngZone,l=this.eventManager,u=this.sharedStylesHost,c=this.removeStylesOnCompDestory,d=this.platformIsServer;switch(r.encapsulation){case Ct.Emulated:i=new XD(l,u,r,this.appId,c,s,a,d);break;case Ct.ShadowDom:return new eO(l,u,n,r,s,a,this.nonce,d);default:i=new mf(l,u,r,c,s,a,d)}i.onDestroy=()=>o.delete(r.id),o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}}return e.\u0275fac=function(n){return new(n||e)(N(UD),N(GD),N(fa),N(X3),N(Mt),N(yr),N(ye),N(um))},e.\u0275prov=O({token:e,factory:e.\u0275fac}),e})();class gf{constructor(t,n,r,o){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=o,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,n){return n?this.doc.createElementNS(hf[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(YD(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(YD(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){t&&t.removeChild(n)}selectRootElement(t,n){let r="string"==typeof t?this.doc.querySelector(t):t;if(!r)throw new w(5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;const i=hf[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){const o=hf[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,o){o&(ht.DashCase|ht.Important)?t.style.setProperty(n,r,o&ht.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&ht.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t[n]=r}setValue(t,n){t.nodeValue=n}listen(t,n,r){if("string"==typeof t&&!(t=Yn().getGlobalEventTarget(this.doc,t)))throw new Error(`Unsupported event target ${t} for event ${n}`);return this.eventManager.addEventListener(t,n,this.decoratePreventDefault(r))}decoratePreventDefault(t){return n=>{if("__ngUnwrap__"===n)return t;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>t(n)):t(n))&&(n.preventDefault(),n.returnValue=!1)}}}function YD(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class eO extends gf{constructor(t,n,r,o,i,s,a,l){super(t,i,s,l),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const u=qD(o.id,o.styles);for(const c of u){const d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=c,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(this.nodeOrShadowRoot(t),n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class mf extends gf{constructor(t,n,r,o,i,s,a,l){super(t,i,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestory=o,this.rendererUsageCount=0,this.styles=l?qD(l,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles),this.rendererUsageCount++}destroy(){this.removeStylesOnCompDestory&&(this.sharedStylesHost.removeStyles(this.styles),this.rendererUsageCount--,0===this.rendererUsageCount&&this.onDestroy?.())}}class XD extends mf{constructor(t,n,r,o,i,s,a,l){const u=o+"-"+r.id;super(t,n,r,i,s,a,l,u),this.contentAttr=function Q3(e){return"_ngcontent-%COMP%".replace(pf,e)}(u),this.hostAttr=function K3(e){return"_nghost-%COMP%".replace(pf,e)}(u)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){const r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}}let tO=(()=>{class e extends zD{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o){return n.addEventListener(r,o,!1),()=>this.removeEventListener(n,r,o)}removeEventListener(n,r,o){return n.removeEventListener(r,o)}}return e.\u0275fac=function(n){return new(n||e)(N(Mt))},e.\u0275prov=O({token:e,factory:e.\u0275fac}),e})();const QD=["alt","control","meta","shift"],nO={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},rO={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let oO=(()=>{class e extends zD{constructor(n){super(n)}supports(n){return null!=e.parseEventName(n)}addEventListener(n,r,o){const i=e.parseEventName(r),s=e.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Yn().onAndCancel(n,i.domEventName,s))}static parseEventName(n){const r=n.toLowerCase().split("."),o=r.shift();if(0===r.length||"keydown"!==o&&"keyup"!==o)return null;const i=e._normalizeKey(r.pop());let s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),QD.forEach(u=>{const c=r.indexOf(u);c>-1&&(r.splice(c,1),s+=u+".")}),s+=i,0!=r.length||0===i.length)return null;const l={};return l.domEventName=o,l.fullKey=s,l}static matchEventFullKeyCode(n,r){let o=nO[n.key]||n.key,i="";return r.indexOf("code.")>-1&&(o=n.code,i="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),QD.forEach(s=>{s!==o&&(0,rO[s])(n)&&(i+=s+".")}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return"esc"===n?"escape":n}}return e.\u0275fac=function(n){return new(n||e)(N(Mt))},e.\u0275prov=O({token:e,factory:e.\u0275fac}),e})();const lO=UC(FN,"browser",[{provide:yr,useValue:"browser"},{provide:lm,useValue:function iO(){cf.makeCurrent()},multi:!0},{provide:Mt,useFactory:function aO(){return function uM(e){Ku=e}(document),document},deps:[]}]),uO=new R(""),e_=[{provide:za,useClass:class G3{addToWindow(t){de.getAngularTestability=(r,o=!0)=>{const i=t.findTestabilityInTree(r,o);if(null==i)throw new w(5103,!1);return i},de.getAllAngularTestabilities=()=>t.getAllTestabilities(),de.getAllAngularRootElements=()=>t.getAllRootElements(),de.frameworkStabilizers||(de.frameworkStabilizers=[]),de.frameworkStabilizers.push(r=>{const o=de.getAllAngularTestabilities();let i=o.length,s=!1;const a=function(l){s=s||l,i--,0==i&&r(s)};o.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(t,n,r){return null==n?null:t.getTestability(n)??(r?Yn().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null)}},deps:[]},{provide:VC,useClass:Nd,deps:[ye,Rd,za]},{provide:Nd,useClass:Nd,deps:[ye,Rd,za]}],t_=[{provide:uc,useValue:"root"},{provide:vr,useFactory:function sO(){return new vr},deps:[]},{provide:df,useClass:tO,multi:!0,deps:[Mt,ye,yr]},{provide:df,useClass:oO,multi:!0,deps:[Mt]},ZD,GD,UD,{provide:ym,useExisting:ZD},{provide:VD,useClass:W3,deps:[]},[]];let cO=(()=>{class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:fa,useValue:n.appId}]}}}return e.\u0275fac=function(n){return new(n||e)(N(uO,12))},e.\u0275mod=Vt({type:e}),e.\u0275inj=Nt({providers:[...t_,...e_],imports:[u3,kN]}),e})(),n_=(()=>{class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}}return e.\u0275fac=function(n){return new(n||e)(N(Mt))},e.\u0275prov=O({token:e,factory:function(n){let r=null;return r=n?new n:function fO(){return new n_(N(Mt))}(),r},providedIn:"root"}),e})();typeof window<"u"&&window;const{isArray:yO}=Array,{getPrototypeOf:vO,prototype:CO,keys:DO}=Object;function s_(e){if(1===e.length){const t=e[0];if(yO(t))return{args:t,keys:null};if(function _O(e){return e&&"object"==typeof e&&vO(e)===CO}(t)){const n=DO(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}const{isArray:wO}=Array;function a_(e){return te(t=>function EO(e,t){return wO(t)?e(...t):e(t)}(e,t))}function l_(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}let u_=(()=>{class e{constructor(n,r){this._renderer=n,this._elementRef=r,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}}return e.\u0275fac=function(n){return new(n||e)(D(An),D(Et))},e.\u0275dir=$({type:e}),e})(),br=(()=>{class e extends u_{}return e.\u0275fac=function(){let t;return function(r){return(t||(t=Ge(e)))(r||e)}}(),e.\u0275dir=$({type:e,features:[se]}),e})();const hn=new R("NgValueAccessor"),MO={provide:hn,useExisting:ce(()=>vf),multi:!0};let vf=(()=>{class e extends br{writeValue(n){this.setProperty("checked",n)}}return e.\u0275fac=function(){let t;return function(r){return(t||(t=Ge(e)))(r||e)}}(),e.\u0275dir=$({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(n,r){1&n&&P("change",function(i){return r.onChange(i.target.checked)})("blur",function(){return r.onTouched()})},features:[me([MO]),se]}),e})();const SO={provide:hn,useExisting:ce(()=>qt),multi:!0},TO=new R("CompositionEventMode");let qt=(()=>{class e extends u_{constructor(n,r,o){super(n,r),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function IO(){const e=Yn()?Yn().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(n){this.setProperty("value",n??"")}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}}return e.\u0275fac=function(n){return new(n||e)(D(An),D(Et),D(TO,8))},e.\u0275dir=$({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(n,r){1&n&&P("input",function(i){return r._handleInput(i.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(i){return r._compositionEnd(i.target.value)})},features:[me([SO]),se]}),e})();const Je=new R("NgValidators"),Jn=new R("NgAsyncValidators");function C_(e){return null!=e}function D_(e){return Ti(e)?Pe(e):e}function __(e){let t={};return e.forEach(n=>{t=null!=n?{...t,...n}:t}),0===Object.keys(t).length?null:t}function w_(e,t){return t.map(n=>n(e))}function E_(e){return e.map(t=>function NO(e){return!e.validate}(t)?t:n=>t.validate(n))}function Cf(e){return null!=e?function b_(e){if(!e)return null;const t=e.filter(C_);return 0==t.length?null:function(n){return __(w_(n,t))}}(E_(e)):null}function Df(e){return null!=e?function M_(e){if(!e)return null;const t=e.filter(C_);return 0==t.length?null:function(n){return function bO(...e){const t=jh(e),{args:n,keys:r}=s_(e),o=new be(i=>{const{length:s}=n;if(!s)return void i.complete();const a=new Array(s);let l=s,u=s;for(let c=0;c{d||(d=!0,u--),a[c]=f},()=>l--,void 0,()=>{(!l||!d)&&(u||i.next(r?l_(r,a):a),i.complete())}))}});return t?o.pipe(a_(t)):o}(w_(n,t).map(D_)).pipe(te(__))}}(E_(e)):null}function S_(e,t){return null===e?[t]:Array.isArray(e)?[...e,t]:[e,t]}function _f(e){return e?Array.isArray(e)?e:[e]:[]}function cl(e,t){return Array.isArray(e)?e.includes(t):e===t}function A_(e,t){const n=_f(t);return _f(e).forEach(o=>{cl(n,o)||n.push(o)}),n}function N_(e,t){return _f(t).filter(n=>!cl(e,n))}class R_{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(t){this._rawValidators=t||[],this._composedValidatorFn=Cf(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Df(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,n){return!!this.control&&this.control.hasError(t,n)}getError(t,n){return this.control?this.control.getError(t,n):null}}class st extends R_{get formDirective(){return null}get path(){return null}}class er extends R_{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class O_{constructor(t){this._cd=t}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let Ln=(()=>{class e extends O_{constructor(n){super(n)}}return e.\u0275fac=function(n){return new(n||e)(D(er,2))},e.\u0275dir=$({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,r){2&n&&Pa("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},features:[se]}),e})(),P_=(()=>{class e extends O_{constructor(n){super(n)}}return e.\u0275fac=function(n){return new(n||e)(D(st,10))},e.\u0275dir=$({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,r){2&n&&Pa("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted)},features:[se]}),e})();const qi="VALID",fl="INVALID",Eo="PENDING",Zi="DISABLED";function bf(e){return(hl(e)?e.validators:e)||null}function Mf(e,t){return(hl(t)?t.asyncValidators:e)||null}function hl(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class L_{constructor(t,n){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(t),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===qi}get invalid(){return this.status===fl}get pending(){return this.status==Eo}get disabled(){return this.status===Zi}get enabled(){return this.status!==Zi}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(A_(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(A_(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(N_(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(N_(t,this._rawAsyncValidators))}hasValidator(t){return cl(this._rawValidators,t)}hasAsyncValidator(t){return cl(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(n=>{n.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(n=>{n.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=Eo,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const n=this._parentMarkedDirty(t.onlySelf);this.status=Zi,this.errors=null,this._forEachChild(r=>{r.disable({...t,onlySelf:!0})}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...t,skipPristineCheck:n}),this._onDisabledChange.forEach(r=>r(!0))}enable(t={}){const n=this._parentMarkedDirty(t.onlySelf);this.status=qi,this._forEachChild(r=>{r.enable({...t,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors({...t,skipPristineCheck:n}),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===qi||this.status===Eo)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Zi:qi}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=Eo,this._hasOwnPendingAsyncValidator=!0;const n=D_(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(r=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(r,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,n={}){this.errors=t,this._updateControlsErrors(!1!==n.emitEvent)}get(t){let n=t;return null==n||(Array.isArray(n)||(n=n.split(".")),0===n.length)?null:n.reduce((r,o)=>r&&r._find(o),this)}getError(t,n){const r=n?this.get(n):this;return r&&r.errors?r.errors[t]:null}hasError(t,n){return!!this.getError(t,n)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new Ee,this.statusChanges=new Ee}_calculateStatus(){return this._allControlsDisabled()?Zi:this.errors?fl:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Eo)?Eo:this._anyControlsHaveStatus(fl)?fl:qi}_anyControlsHaveStatus(t){return this._anyControls(n=>n.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){hl(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=function xO(e){return Array.isArray(e)?Cf(e):e||null}(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=function FO(e){return Array.isArray(e)?Df(e):e||null}(this._rawAsyncValidators)}}class Sf extends L_{constructor(t,n,r){super(bf(n),Mf(r,n)),this.controls=t,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,n){return this.controls[t]?this.controls[t]:(this.controls[t]=n,n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange),n)}addControl(t,n,r={}){this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(t,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}setControl(t,n,r={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],n&&this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,n={}){(function k_(e,t,n){e._forEachChild((r,o)=>{if(void 0===n[o])throw new w(1002,"")})})(this,0,t),Object.keys(t).forEach(r=>{(function F_(e,t,n){const r=e.controls;if(!(t?Object.keys(r):r).length)throw new w(1e3,"");if(!r[n])throw new w(1001,"")})(this,!0,r),this.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(t,n={}){null!=t&&(Object.keys(t).forEach(r=>{const o=this.controls[r];o&&o.patchValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(t={},n={}){this._forEachChild((r,o)=>{r.reset(t[o],{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n),this._updateTouched(n),this.updateValueAndValidity(n)}getRawValue(){return this._reduceChildren({},(t,n,r)=>(t[r]=n.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(n,r)=>!!r._syncPendingControls()||n);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(n=>{const r=this.controls[n];r&&t(r,n)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const[n,r]of Object.entries(this.controls))if(this.contains(n)&&t(r))return!0;return!1}_reduceValue(){return this._reduceChildren({},(n,r,o)=>((r.enabled||this.disabled)&&(n[o]=r.value),n))}_reduceChildren(t,n){let r=t;return this._forEachChild((o,i)=>{r=n(r,o,i)}),r}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}}const bo=new R("CallSetDisabledState",{providedIn:"root",factory:()=>pl}),pl="always";function Yi(e,t,n=pl){If(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||"always"===n)&&t.valueAccessor.setDisabledState?.(e.disabled),function VO(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&V_(e,t)})}(e,t),function $O(e,t){const n=(r,o)=>{t.valueAccessor.writeValue(r),o&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}(e,t),function HO(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&V_(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),function LO(e,t){if(t.valueAccessor.setDisabledState){const n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}(e,t)}function yl(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function If(e,t){const n=function I_(e){return e._rawValidators}(e);null!==t.validator?e.setValidators(S_(n,t.validator)):"function"==typeof n&&e.setValidators([n]);const r=function T_(e){return e._rawAsyncValidators}(e);null!==t.asyncValidator?e.setAsyncValidators(S_(r,t.asyncValidator)):"function"==typeof r&&e.setAsyncValidators([r]);const o=()=>e.updateValueAndValidity();yl(t._rawValidators,o),yl(t._rawAsyncValidators,o)}function V_(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}const GO={provide:st,useExisting:ce(()=>Cl)},Xi=(()=>Promise.resolve())();let Cl=(()=>{class e extends st{constructor(n,r,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._directives=new Set,this.ngSubmit=new Ee,this.form=new Sf({},Cf(n),Df(r))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(n){Xi.then(()=>{const r=this._findContainer(n.path);n.control=r.registerControl(n.name,n.control),Yi(n.control,n,this.callSetDisabledState),n.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(n)})}getControl(n){return this.form.get(n.path)}removeControl(n){Xi.then(()=>{const r=this._findContainer(n.path);r&&r.removeControl(n.name),this._directives.delete(n)})}addFormGroup(n){Xi.then(()=>{const r=this._findContainer(n.path),o=new Sf({});(function H_(e,t){If(e,t)})(o,n),r.registerControl(n.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(n){Xi.then(()=>{const r=this._findContainer(n.path);r&&r.removeControl(n.name)})}getFormGroup(n){return this.form.get(n.path)}updateModel(n,r){Xi.then(()=>{this.form.get(n.path).setValue(r)})}setValue(n){this.control.setValue(n)}onSubmit(n){return this.submitted=!0,function $_(e,t){e._syncPendingControls(),t.forEach(n=>{const r=n.control;"submit"===r.updateOn&&r._pendingChange&&(n.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}(this.form,this._directives),this.ngSubmit.emit(n),"dialog"===n?.target?.method}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(n){return n.pop(),n.length?this.form.get(n):this.form}}return e.\u0275fac=function(n){return new(n||e)(D(Je,10),D(Jn,10),D(bo,8))},e.\u0275dir=$({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(n,r){1&n&&P("submit",function(i){return r.onSubmit(i)})("reset",function(){return r.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[me([GO]),se]}),e})();function j_(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function B_(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}const U_=class extends L_{constructor(t=null,n,r){super(bf(n),Mf(r,n)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),hl(n)&&(n.nonNullable||n.initialValueIsDefault)&&(this.defaultValue=B_(t)?t.value:t)}setValue(t,n={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(r=>r(this.value,!1!==n.emitViewToModelChange)),this.updateValueAndValidity(n)}patchValue(t,n={}){this.setValue(t,n)}reset(t=this.defaultValue,n={}){this._applyFormState(t),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){j_(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){j_(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){B_(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}},ZO={provide:er,useExisting:ce(()=>pn)},W_=(()=>Promise.resolve())();let pn=(()=>{class e extends er{constructor(n,r,o,i,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this.control=new U_,this._registered=!1,this.name="",this.update=new Ee,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=function Nf(e,t){if(!t)return null;let n,r,o;return Array.isArray(t),t.forEach(i=>{i.constructor===qt?n=i:function UO(e){return Object.getPrototypeOf(e.constructor)===br}(i)?r=i:o=i}),o||r||n||null}(0,i)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){const r=n.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),function Af(e,t){if(!e.hasOwnProperty("model"))return!1;const n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}(n,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Yi(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()}_updateValue(n){W_.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){const r=n.isDisabled.currentValue,o=0!==r&&wo(r);W_.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?function gl(e,t){return[...t.path,e]}(n,this._parent):[n]}}return e.\u0275fac=function(n){return new(n||e)(D(st,9),D(Je,10),D(Jn,10),D(hn,10),D(Wa,8),D(bo,8))},e.\u0275dir=$({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[me([ZO]),se,Ot]}),e})(),q_=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=$({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),e})(),Y_=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Vt({type:e}),e.\u0275inj=Nt({}),e})(),vP=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Vt({type:e}),e.\u0275inj=Nt({imports:[Y_]}),e})(),DP=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:bo,useValue:n.callSetDisabledState??pl}]}}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Vt({type:e}),e.\u0275inj=Nt({imports:[vP]}),e})();function F(...e){return Pe(e,zo(e))}function Mo(e,t){return le(t)?Be(e,t,1):Be(e,1)}function Vn(e,t){return je((n,r)=>{let o=0;n.subscribe(He(r,i=>e.call(t,i,o++)&&r.next(i)))})}function gn(e,t){return je((n,r)=>{let o=null,i=0,s=!1;const a=()=>s&&!o&&r.complete();n.subscribe(He(r,l=>{o?.unsubscribe();let u=0;const c=i++;Tt(e(l,c)).subscribe(o=He(r,d=>r.next(t?t(l,d,c,u++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}class Dl{}class Lf{}class We{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(n=>{const r=n.indexOf(":");if(r>0){const o=n.slice(0,r),i=o.toLowerCase(),s=n.slice(r+1).trim();this.maybeSetNormalizedName(o,i),this.headers.has(i)?this.headers.get(i).push(s):this.headers.set(i,[s])}})}:()=>{this.headers=new Map,Object.entries(t).forEach(([n,r])=>{let o;if(o="string"==typeof r?[r]:"number"==typeof r?[r.toString()]:r.map(i=>i.toString()),o.length>0){const i=n.toLowerCase();this.headers.set(i,o),this.maybeSetNormalizedName(n,i)}})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}init(){this.lazyInit&&(this.lazyInit instanceof We?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(n=>{this.headers.set(n,t.headers.get(n)),this.normalizedNames.set(n,t.normalizedNames.get(n))})}clone(t){const n=new We;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof We?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){const n=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(t.name,n);const o=("a"===t.op?this.headers.get(n):void 0)||[];o.push(...r),this.headers.set(n,o);break;case"d":const i=t.value;if(i){let s=this.headers.get(n);if(!s)return;s=s.filter(a=>-1===i.indexOf(a)),0===s.length?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}else this.headers.delete(n),this.normalizedNames.delete(n)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}}class _P{encodeKey(t){return p0(t)}encodeValue(t){return p0(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const EP=/%(\d[a-f0-9])/gi,bP={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function p0(e){return encodeURIComponent(e).replace(EP,(t,n)=>bP[n]??t)}function _l(e){return`${e}`}class tr{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new _P,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function wP(e,t){const n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(o=>{const i=o.indexOf("="),[s,a]=-1==i?[t.decodeKey(o),""]:[t.decodeKey(o.slice(0,i)),t.decodeValue(o.slice(i+1))],l=n.get(s)||[];l.push(a),n.set(s,l)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{const r=t.fromObject[n],o=Array.isArray(r)?r.map(_l):[_l(r)];this.map.set(n,o)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const n=this.map.get(t);return n?n[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,n){return this.clone({param:t,value:n,op:"a"})}appendAll(t){const n=[];return Object.keys(t).forEach(r=>{const o=t[r];Array.isArray(o)?o.forEach(i=>{n.push({param:r,value:i,op:"a"})}):n.push({param:r,value:o,op:"a"})}),this.clone(n)}set(t,n){return this.clone({param:t,value:n,op:"s"})}delete(t,n){return this.clone({param:t,value:n,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const n=this.encoder.encodeKey(t);return this.map.get(t).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const n=new tr({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const n=("a"===t.op?this.map.get(t.param):void 0)||[];n.push(_l(t.value)),this.map.set(t.param,n);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let r=this.map.get(t.param)||[];const o=r.indexOf(_l(t.value));-1!==o&&r.splice(o,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class MP{constructor(){this.map=new Map}set(t,n){return this.map.set(t,n),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}}function g0(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function m0(e){return typeof Blob<"u"&&e instanceof Blob}function y0(e){return typeof FormData<"u"&&e instanceof FormData}class Qi{constructor(t,n,r,o){let i;if(this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function SP(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||o?(this.body=void 0!==r?r:null,i=o):i=r,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params)),this.headers||(this.headers=new We),this.context||(this.context=new MP),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=n;else{const a=n.indexOf("?");this.urlWithParams=n+(-1===a?"?":ad.set(f,t.setHeaders[f]),l)),t.setParams&&(u=Object.keys(t.setParams).reduce((d,f)=>d.set(f,t.setParams[f]),u)),new Qi(n,r,i,{params:u,headers:l,context:c,reportProgress:a,responseType:o,withCredentials:s})}}var Oe=(()=>((Oe=Oe||{})[Oe.Sent=0]="Sent",Oe[Oe.UploadProgress=1]="UploadProgress",Oe[Oe.ResponseHeader=2]="ResponseHeader",Oe[Oe.DownloadProgress=3]="DownloadProgress",Oe[Oe.Response=4]="Response",Oe[Oe.User=5]="User",Oe))();class Vf{constructor(t,n=200,r="OK"){this.headers=t.headers||new We,this.status=void 0!==t.status?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class Hf extends Vf{constructor(t={}){super(t),this.type=Oe.ResponseHeader}clone(t={}){return new Hf({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class So extends Vf{constructor(t={}){super(t),this.type=Oe.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new So({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class v0 extends Vf{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function $f(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}let Sr=(()=>{class e{constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof Qi)i=n;else{let l,u;l=o.headers instanceof We?o.headers:new We(o.headers),o.params&&(u=o.params instanceof tr?o.params:new tr({fromObject:o.params})),i=new Qi(n,r,void 0!==o.body?o.body:null,{headers:l,context:o.context,params:u,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials})}const s=F(i).pipe(Mo(l=>this.handler.handle(l)));if(n instanceof Qi||"events"===o.observe)return s;const a=s.pipe(Vn(l=>l instanceof So));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(te(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(te(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(te(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(te(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:(new tr).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,o={}){return this.request("PATCH",n,$f(o,r))}post(n,r,o={}){return this.request("POST",n,$f(o,r))}put(n,r,o={}){return this.request("PUT",n,$f(o,r))}}return e.\u0275fac=function(n){return new(n||e)(N(Dl))},e.\u0275prov=O({token:e,factory:e.\u0275fac}),e})();function C0(e,t){return t(e)}function TP(e,t){return(n,r)=>t.intercept(n,{handle:o=>e(o,r)})}const D0=new R(""),Ki=new R(""),_0=new R("");function NP(){let e=null;return(t,n)=>(null===e&&(e=(I(D0,{optional:!0})??[]).reduceRight(TP,C0)),e(t,n))}let w0=(()=>{class e extends Dl{constructor(n,r){super(),this.backend=n,this.injector=r,this.chain=null}handle(n){if(null===this.chain){const r=Array.from(new Set([...this.injector.get(Ki),...this.injector.get(_0,[])]));this.chain=r.reduceRight((o,i)=>function AP(e,t,n){return(r,o)=>n.runInContext(()=>t(r,i=>e(i,o)))}(o,i,this.injector),C0)}return this.chain(n,r=>this.backend.handle(r))}}return e.\u0275fac=function(n){return new(n||e)(N(Lf),N(sn))},e.\u0275prov=O({token:e,factory:e.\u0275fac}),e})();const xP=/^\)\]\}',?\n/;let b0=(()=>{class e{constructor(n){this.xhrFactory=n}handle(n){if("JSONP"===n.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");const r=this.xhrFactory;return(r.\u0275loadImpl?Pe(r.\u0275loadImpl()):F(null)).pipe(gn(()=>new be(i=>{const s=r.build();if(s.open(n.method,n.urlWithParams),n.withCredentials&&(s.withCredentials=!0),n.headers.forEach((g,M)=>s.setRequestHeader(g,M.join(","))),n.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){const g=n.detectContentTypeHeader();null!==g&&s.setRequestHeader("Content-Type",g)}if(n.responseType){const g=n.responseType.toLowerCase();s.responseType="json"!==g?g:"text"}const a=n.serializeBody();let l=null;const u=()=>{if(null!==l)return l;const g=s.statusText||"OK",M=new We(s.getAllResponseHeaders()),x=function FP(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(s)||n.url;return l=new Hf({headers:M,status:s.status,statusText:g,url:x}),l},c=()=>{let{headers:g,status:M,statusText:x,url:Y}=u(),pe=null;204!==M&&(pe=typeof s.response>"u"?s.responseText:s.response),0===M&&(M=pe?200:0);let $o=M>=200&&M<300;if("json"===n.responseType&&"string"==typeof pe){const Zk=pe;pe=pe.replace(xP,"");try{pe=""!==pe?JSON.parse(pe):null}catch(Yk){pe=Zk,$o&&($o=!1,pe={error:Yk,text:pe})}}$o?(i.next(new So({body:pe,headers:g,status:M,statusText:x,url:Y||void 0})),i.complete()):i.error(new v0({error:pe,headers:g,status:M,statusText:x,url:Y||void 0}))},d=g=>{const{url:M}=u(),x=new v0({error:g,status:s.status||0,statusText:s.statusText||"Unknown Error",url:M||void 0});i.error(x)};let f=!1;const h=g=>{f||(i.next(u()),f=!0);let M={type:Oe.DownloadProgress,loaded:g.loaded};g.lengthComputable&&(M.total=g.total),"text"===n.responseType&&s.responseText&&(M.partialText=s.responseText),i.next(M)},p=g=>{let M={type:Oe.UploadProgress,loaded:g.loaded};g.lengthComputable&&(M.total=g.total),i.next(M)};let m;s.addEventListener("load",c),s.addEventListener("error",d),s.addEventListener("timeout",d),s.addEventListener("abort",d),n.reportProgress&&(s.addEventListener("progress",h),null!==a&&s.upload&&s.upload.addEventListener("progress",p));const C=()=>{m??=function LP(){const e=setTimeout(()=>{},kP);return()=>clearTimeout(e)}()},b=()=>{m?.()};return s.addEventListener("loadstart",C),s.addEventListener("loadend",b),s.send(a),i.next({type:Oe.Sent}),()=>{s.removeEventListener("loadstart",C),s.removeEventListener("loadend",b),s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",c),s.removeEventListener("timeout",d),m?.(),n.reportProgress&&(s.removeEventListener("progress",h),null!==a&&s.upload&&s.upload.removeEventListener("progress",p)),s.readyState!==s.DONE&&s.abort()}})))}}return e.\u0275fac=function(n){return new(n||e)(N(VD))},e.\u0275prov=O({token:e,factory:e.\u0275fac}),e})();const kP=2147483647,jf=new R("XSRF_ENABLED"),M0=new R("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),S0=new R("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class I0{}let $P=(()=>{class e{constructor(n,r,o){this.doc=n,this.platform=r,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=ID(n,this.cookieName),this.lastCookieString=n),this.lastToken}}return e.\u0275fac=function(n){return new(n||e)(N(Mt),N(yr),N(M0))},e.\u0275prov=O({token:e,factory:e.\u0275fac}),e})();function jP(e,t){const n=e.url.toLowerCase();if(!I(jf)||"GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t(e);const r=I(I0).getToken(),o=I(S0);return null!=r&&!e.headers.has(o)&&(e=e.clone({headers:e.headers.set(o,r)})),t(e)}var Ie=(()=>((Ie=Ie||{})[Ie.Interceptors=0]="Interceptors",Ie[Ie.LegacyInterceptors=1]="LegacyInterceptors",Ie[Ie.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",Ie[Ie.NoXsrfProtection=3]="NoXsrfProtection",Ie[Ie.JsonpSupport=4]="JsonpSupport",Ie[Ie.RequestsMadeViaParent=5]="RequestsMadeViaParent",Ie))();function Io(e,t){return{\u0275kind:e,\u0275providers:t}}function BP(...e){const t=[Sr,b0,w0,{provide:Dl,useExisting:w0},{provide:Lf,useExisting:b0},{provide:Ki,useValue:jP,multi:!0},{provide:jf,useValue:!0},{provide:I0,useClass:$P}];for(const n of e)t.push(...n.\u0275providers);return function ic(e){return{\u0275providers:e}}(t)}const T0=new R("LEGACY_INTERCEPTOR_FN");let zP=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Vt({type:e}),e.\u0275inj=Nt({providers:[BP(Io(Ie.LegacyInterceptors,[{provide:T0,useFactory:NP},{provide:Ki,useExisting:T0,multi:!0}]))]}),e})();function J(e,t,n){const r=le(e)||t||n?{next:e,error:t,complete:n}:e;return r?je((o,i)=>{var s;null===(s=r.subscribe)||void 0===s||s.call(r);let a=!0;o.subscribe(He(i,l=>{var u;null===(u=r.next)||void 0===u||u.call(r,l),i.next(l)},()=>{var l;a=!1,null===(l=r.complete)||void 0===l||l.call(r),i.complete()},l=>{var u;a=!1,null===(u=r.error)||void 0===u||u.call(r,l),i.error(l)},()=>{var l,u;a&&(null===(l=r.unsubscribe)||void 0===l||l.call(r)),null===(u=r.finalize)||void 0===u||u.call(r)}))}):ar}function he(e){return je((t,n)=>{let i,r=null,o=!1;r=t.subscribe(He(n,void 0,void 0,s=>{i=Tt(e(s,he(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}const Ir_restServerUrl="https://tds.truyen.network";let To=(()=>{class e{constructor(){this.messages=[]}add(n){this.messages.push((new Date).toLocaleTimeString()+") "+n)}clear(){this.messages=[]}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();class mn{constructor(t,n){this.http=t,this.appMessageService=n,this.httpOptions={headers:new We({"Content-Type":"application/json",Accept:"application/json"})}}handleError(t="operation",n){return r=>(console.error(r),this.log(`Error @ ${t}: ${r.status} ${r.statusText}`),F(n))}log(t){this.appMessageService.add(`ChatMessagesService: ${t}`)}getChatMessages(){return this.http.get(mn.REST_URL,this.httpOptions).pipe(J(t=>this.log(`fetched ${t.length} messages`)),he(this.handleError("getChatMessages",[])))}addChatMessage(t,n){return this.http.post(mn.REST_URL,{author:t,text:n},this.httpOptions).pipe(J(o=>this.log(`added message w/ id=${o.id}`)),he(this.handleError("addChatMessage")))}}mn.REST_URL=Ir_restServerUrl+"/api/chat",mn.\u0275fac=function(t){return new(t||mn)(N(Sr),N(To))},mn.\u0275prov=O({token:mn,factory:mn.\u0275fac,providedIn:"root"});const Ao="./ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),Bf=Array.from({length:64},(e,t)=>t),wl=e=>Array(e).fill(-1),nr=[...wl(46),0,1,...Bf.slice(54,64),...wl(7),...Bf.slice(2,28),...wl(6),...Bf.slice(28,54),...wl(5)],A0=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],N0=[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946,1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055,3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504,976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462],R0=[1332899944,1700884034,1701343084,1684370003,1668446532,1869963892],Uf=(e,t)=>{if(t<=0||t>e.length)throw Error(`Illegal len: ${t}`);let r,o,n=0;const i=[];for(;n>2&63]),r=(3&r)<<4,n>=t){i.push(Ao[63&r]);break}if(o=255&e[n++],r|=o>>4&15,i.push(Ao[63&r]),r=(15&o)<<2,n>=t){i.push(Ao[63&r]);break}o=255&e[n++],r|=o>>6&3,i.push(Ao[63&r]),i.push(Ao[63&o])}return i.join("")},El="object"==typeof process&&"edge"===process.env.NEXT_RUNTIME?setTimeout:"function"==typeof setImmediate?setImmediate:"object"==typeof process&&"function"==typeof process.nextTick?process.nextTick:setTimeout,es=(e,t,n,r)=>{let o,i=e[t],s=e[t+1];return i^=n[0],o=r[i>>>24],o+=r[256|i>>16&255],o^=r[512|i>>8&255],o+=r[768|255&i],s^=o^n[1],o=r[s>>>24],o+=r[256|s>>16&255],o^=r[512|s>>8&255],o+=r[768|255&s],i^=o^n[2],o=r[i>>>24],o+=r[256|i>>16&255],o^=r[512|i>>8&255],o+=r[768|255&i],s^=o^n[3],o=r[s>>>24],o+=r[256|s>>16&255],o^=r[512|s>>8&255],o+=r[768|255&s],i^=o^n[4],o=r[i>>>24],o+=r[256|i>>16&255],o^=r[512|i>>8&255],o+=r[768|255&i],s^=o^n[5],o=r[s>>>24],o+=r[256|s>>16&255],o^=r[512|s>>8&255],o+=r[768|255&s],i^=o^n[6],o=r[i>>>24],o+=r[256|i>>16&255],o^=r[512|i>>8&255],o+=r[768|255&i],s^=o^n[7],o=r[s>>>24],o+=r[256|s>>16&255],o^=r[512|s>>8&255],o+=r[768|255&s],i^=o^n[8],o=r[i>>>24],o+=r[256|i>>16&255],o^=r[512|i>>8&255],o+=r[768|255&i],s^=o^n[9],o=r[s>>>24],o+=r[256|s>>16&255],o^=r[512|s>>8&255],o+=r[768|255&s],i^=o^n[10],o=r[i>>>24],o+=r[256|i>>16&255],o^=r[512|i>>8&255],o+=r[768|255&i],s^=o^n[11],o=r[s>>>24],o+=r[256|s>>16&255],o^=r[512|s>>8&255],o+=r[768|255&s],i^=o^n[12],o=r[i>>>24],o+=r[256|i>>16&255],o^=r[512|i>>8&255],o+=r[768|255&i],s^=o^n[13],o=r[s>>>24],o+=r[256|s>>16&255],o^=r[512|s>>8&255],o+=r[768|255&s],i^=o^n[14],o=r[i>>>24],o+=r[256|i>>16&255],o^=r[512|i>>8&255],o+=r[768|255&i],s^=o^n[15],o=r[s>>>24],o+=r[256|s>>16&255],o^=r[512|s>>8&255],o+=r[768|255&s],i^=o^n[16],e[t]=s^n[17],e[t+1]=i,e},No=(e,t)=>{let n=0;for(let r=0;r<4;++r)n=n<<8|255&e[t],t=(t+1)%e.length;return{key:n,offp:t}},O0=(e,t,n)=>{const r=t.length,o=n.length;let a,i=0,s=[0,0];for(let l=0;l{const i=R0.slice(),s=i.length;if(n<4||n>31){const f=new Error(`Illegal number of rounds (4-31): ${n}`);if(!1===r)return Promise.reject(f);throw f}if(16!==t.length){const f=new Error(`Illegal salt length: ${t.length} != 16`);if(!1===r)return Promise.reject(f);throw f}n=1<>>0;let a,l,c,u=0;Int32Array?(a=new Int32Array(A0),l=new Int32Array(N0)):(a=A0.slice(),l=N0.slice()),((e,t,n,r)=>{const o=n.length,i=r.length;let l,s=0,a=[0,0];for(let u=0;u{if(o&&o(u/n),!(u>1;c++)es(i,c<<1,a,l);const f=[];for(u=0;u>24&255)>>>0),f.push((i[u]>>16&255)>>>0),f.push((i[u]>>8&255)>>>0),f.push((255&i[u])>>>0);return!1===r?Promise.resolve(f):f}{const f=Date.now();for(;u100)););}if(!1===r)return new Promise(f=>El(()=>{d().then(f)}))};if(!1===r)return d();{let f;for(;;)if(typeof(f=d())<"u")return f||[]}},zf=(e=10)=>{if("number"!=typeof e)throw Error("Illegal arguments: "+typeof e);e<4?e=4:e>31&&(e=31);const t=[];return t.push("$2a$"),e<10&&t.push("0"),t.push(e.toString()),t.push("$"),t.push(Uf((e=>{try{let t;t=typeof window<"u"?window.crypto??window.msCrypto:globalThis.crypto;const n=new Uint32Array(16);return t?.getRandomValues(n),Array.from(n)}catch{throw Error("WebCryptoAPI is not available")}})(),16)),t.join("")};const x0=(e,t=10)=>{if("number"==typeof t&&(t=zf(t)),"string"!=typeof e||"string"!=typeof t)throw Error("Illegal arguments: "+typeof e+", "+typeof t);return function Gf(e,t,n,r){if("string"!=typeof e||"string"!=typeof t){const h=new Error("Invalid string / salt: Not a string");if(!1===n)return Promise.reject(h);throw h}let o,i;if("$"!==t.charAt(0)||"2"!==t.charAt(1)){const h=new Error("Invalid salt version: "+t.substring(0,2));if(!1===n)return Promise.reject(h);throw h}if("$"===t.charAt(2))o="\0",i=3;else{if(o=t.charAt(2),"a"!==o&&"b"!==o&&"y"!==o||"$"!==t.charAt(3)){const h=Error("Invalid salt revision: "+t.substring(2,4));if(!1===n)return Promise.reject(h);throw h}i=4}if(t.charAt(i+2)>"$"){const h=new Error("Missing salt rounds");if(!1===n)return Promise.reject(h);throw h}const l=10*parseInt(t.substring(i,i+1),10)+parseInt(t.substring(i+1,i+2),10),u=t.substring(i+3,i+25),c=(e=>{const t=[];let n=0;return((e,t)=>{((e,t)=>{let n,r=null;for(;null!==(n=null!==r?r:e());)n>=55296&&n<=57343&&null!==(r=e())&&r>=56320&&r<=57343?(t(1024*(n-55296)+r-56320+65536),r=null):t(n);null!==r&&t(r)})(e,function(n){((e,t)=>{let n=null;for("number"==typeof e&&(n=e,e=()=>null);null!==n||null!==(n=e());)n<128?t(127&n):n<2048?(t(n>>6&31|192),t(63&n|128)):n<65536?(t(n>>12&15|224),t(n>>6&63|128),t(63&n|128)):(t(n>>18&7|240),t(n>>12&63|128),t(n>>6&63|128),t(63&n|128)),n=null})(n,t)})})(()=>n>=e.length?null:e.charCodeAt(n++),r=>{t.push(r)}),t})(e+=o>="a"?"\0":""),d=((e,t)=>{const n=e.length;let i,s,a,l,u,c,r=0,o=0;const d=[];for(;r>>0,u|=(48&s)>>4,d.push(String.fromCharCode(u)),++o>=16||r>=n)||(c=e.charCodeAt(r++),a=c>>0,u|=(60&a)>>2,d.push(String.fromCharCode(u)),++o>=16||r>=n)));)c=e.charCodeAt(r++),l=c>>0,u|=l,d.push(String.fromCharCode(u)),++o;return d.map(f=>f.charCodeAt(0))})(u),f=h=>{const p=[];return p.push("$2"),o>="a"&&p.push(o),p.push("$"),l<10&&p.push("0"),p.push(l.toString()),p.push("$"),p.push(Uf(d,d.length)),p.push(Uf(h,4*R0.length-1)),p.join("")};return!1===n?P0(c,d,l,!1,r).then(h=>f(h)):f(P0(c,d,l,!0,r))}(e,t,!0)};class Zt extends Dn{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){const{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}}function Wf(...e){const t=zo(e),n=jh(e),{args:r,keys:o}=s_(e);if(0===r.length)return Pe([],t);const i=new be(function sx(e,t,n=ar){return r=>{F0(t,()=>{const{length:o}=e,i=new Array(o);let s=o,a=o;for(let l=0;l{const u=Pe(e[l],t);let c=!1;u.subscribe(He(r,d=>{i[l]=d,c||(c=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}(r,t,o?s=>l_(o,s):ar));return n?i.pipe(a_(n)):i}function F0(e,t,n){e?_n(n,e,t):t()}const bl=jo(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function qf(...e){return function ax(){return Pr(1)}()(Pe(e,zo(e)))}function k0(e){return new be(t=>{Tt(e()).subscribe(t)})}function ts(e,t){const n=le(e)?e:()=>e,r=o=>o.error(n());return new be(t?o=>t.schedule(r,0,o):r)}function Zf(){return je((e,t)=>{let n=null;e._refCount++;const r=He(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount)return void(n=null);const o=e._connection,i=n;n=null,o&&(!i||o===i)&&o.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}class L0 extends be{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,Ih(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new It;const n=this.getSubject();t.add(this.source.subscribe(He(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=It.EMPTY)}return t}refCount(){return Zf()(this)}}function Ro(e){return e<=0?()=>Qt:je((t,n)=>{let r=0;t.subscribe(He(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function Ml(e){return je((t,n)=>{let r=!1;t.subscribe(He(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function V0(e=ux){return je((t,n)=>{let r=!1;t.subscribe(He(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function ux(){return new bl}function Tr(e,t){const n=arguments.length>=2;return r=>r.pipe(e?Vn((o,i)=>e(o,i,r)):ar,Ro(1),n?Ml(t):V0(()=>new bl))}function Yf(e){return e<=0?()=>Qt:je((t,n)=>{let r=[];t.subscribe(He(n,o=>{r.push(o),e{for(const o of r)n.next(o);n.complete()},void 0,()=>{r=null}))})}function Xf(e){return je((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}const q="primary",ns=Symbol("RouteTitle");class px{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const n=this.params[t];return Array.isArray(n)?n[0]:n}return null}getAll(t){if(this.has(t)){const n=this.params[t];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}}function Oo(e){return new px(e)}function gx(e,t,n){const r=n.path.split("/");if(r.length>e.length||"full"===n.pathMatch&&(t.hasChildren()||r.lengthr[i]===o)}return e===t}function $0(e){return e.length>0?e[e.length-1]:null}function rr(e){return function ix(e){return!!e&&(e instanceof be||le(e.lift)&&le(e.subscribe))}(e)?e:Ti(e)?Pe(Promise.resolve(e)):F(e)}const yx={exact:function U0(e,t,n){if(!Ar(e.segments,t.segments)||!Sl(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(const r in t.children)if(!e.children[r]||!U0(e.children[r],t.children[r],n))return!1;return!0},subset:z0},j0={exact:function vx(e,t){return yn(e,t)},subset:function Cx(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>H0(e[n],t[n]))},ignored:()=>!0};function B0(e,t,n){return yx[n.paths](e.root,t.root,n.matrixParams)&&j0[n.queryParams](e.queryParams,t.queryParams)&&!("exact"===n.fragment&&e.fragment!==t.fragment)}function z0(e,t,n){return G0(e,t,t.segments,n)}function G0(e,t,n,r){if(e.segments.length>n.length){const o=e.segments.slice(0,n.length);return!(!Ar(o,n)||t.hasChildren()||!Sl(o,n,r))}if(e.segments.length===n.length){if(!Ar(e.segments,n)||!Sl(e.segments,n,r))return!1;for(const o in t.children)if(!e.children[o]||!z0(e.children[o],t.children[o],r))return!1;return!0}{const o=n.slice(0,e.segments.length),i=n.slice(e.segments.length);return!!(Ar(e.segments,o)&&Sl(e.segments,o,r)&&e.children[q])&&G0(e.children[q],t,i,r)}}function Sl(e,t,n){return t.every((r,o)=>j0[n](e[o].parameters,r.parameters))}class Po{constructor(t=new ae([],{}),n={},r=null){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Oo(this.queryParams)),this._queryParamMap}toString(){return wx.serialize(this)}}class ae{constructor(t,n){this.segments=t,this.children=n,this.parent=null,Object.values(n).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Il(this)}}class rs{constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){return this._parameterMap||(this._parameterMap=Oo(this.parameters)),this._parameterMap}toString(){return Z0(this)}}function Ar(e,t){return e.length===t.length&&e.every((n,r)=>n.path===t[r].path)}let os=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:function(){return new Qf},providedIn:"root"}),e})();class Qf{parse(t){const n=new Px(t);return new Po(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){const n=`/${is(t.root,!0)}`,r=function Mx(e){const t=Object.keys(e).map(n=>{const r=e[n];return Array.isArray(r)?r.map(o=>`${Tl(n)}=${Tl(o)}`).join("&"):`${Tl(n)}=${Tl(r)}`}).filter(n=>!!n);return t.length?`?${t.join("&")}`:""}(t.queryParams);return`${n}${r}${"string"==typeof t.fragment?`#${function Ex(e){return encodeURI(e)}(t.fragment)}`:""}`}}const wx=new Qf;function Il(e){return e.segments.map(t=>Z0(t)).join("/")}function is(e,t){if(!e.hasChildren())return Il(e);if(t){const n=e.children[q]?is(e.children[q],!1):"",r=[];return Object.entries(e.children).forEach(([o,i])=>{o!==q&&r.push(`${o}:${is(i,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}{const n=function _x(e,t){let n=[];return Object.entries(e.children).forEach(([r,o])=>{r===q&&(n=n.concat(t(o,r)))}),Object.entries(e.children).forEach(([r,o])=>{r!==q&&(n=n.concat(t(o,r)))}),n}(e,(r,o)=>o===q?[is(e.children[q],!1)]:[`${o}:${is(r,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children[q]?`${Il(e)}/${n[0]}`:`${Il(e)}/(${n.join("//")})`}}function W0(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Tl(e){return W0(e).replace(/%3B/gi,";")}function Kf(e){return W0(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Al(e){return decodeURIComponent(e)}function q0(e){return Al(e.replace(/\+/g,"%20"))}function Z0(e){return`${Kf(e.path)}${function bx(e){return Object.keys(e).map(t=>`;${Kf(t)}=${Kf(e[t])}`).join("")}(e.parameters)}`}const Sx=/^[^\/()?;#]+/;function Jf(e){const t=e.match(Sx);return t?t[0]:""}const Ix=/^[^\/()?;=#]+/,Ax=/^[^=?&#]+/,Rx=/^[^&#]+/;class Px{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ae([],{}):new ae([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(t.length>0||Object.keys(n).length>0)&&(r[q]=new ae(t,n)),r}parseSegment(){const t=Jf(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new w(4009,!1);return this.capture(t),new rs(Al(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const n=function Tx(e){const t=e.match(Ix);return t?t[0]:""}(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const o=Jf(this.remaining);o&&(r=o,this.capture(r))}t[Al(n)]=Al(r)}parseQueryParam(t){const n=function Nx(e){const t=e.match(Ax);return t?t[0]:""}(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const s=function Ox(e){const t=e.match(Rx);return t?t[0]:""}(this.remaining);s&&(r=s,this.capture(r))}const o=q0(n),i=q0(r);if(t.hasOwnProperty(o)){let s=t[o];Array.isArray(s)||(s=[s],t[o]=s),s.push(i)}else t[o]=i}parseParens(t){const n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const r=Jf(this.remaining),o=this.remaining[r.length];if("/"!==o&&")"!==o&&";"!==o)throw new w(4010,!1);let i;r.indexOf(":")>-1?(i=r.slice(0,r.indexOf(":")),this.capture(i),this.capture(":")):t&&(i=q);const s=this.parseChildren();n[i]=1===Object.keys(s).length?s[q]:new ae([],s),this.consumeOptional("//")}return n}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new w(4011,!1)}}function Y0(e){return e.segments.length>0?new ae([],{[q]:e}):e}function X0(e){const t={};for(const r of Object.keys(e.children)){const i=X0(e.children[r]);if(r===q&&0===i.segments.length&&i.hasChildren())for(const[s,a]of Object.entries(i.children))t[s]=a;else(i.segments.length>0||i.hasChildren())&&(t[r]=i)}return function xx(e){if(1===e.numberOfChildren&&e.children[q]){const t=e.children[q];return new ae(e.segments.concat(t.segments),t.children)}return e}(new ae(e.segments,t))}function Nr(e){return e instanceof Po}function Q0(e){let t;const o=Y0(function n(i){const s={};for(const l of i.children){const u=n(l);s[l.outlet]=u}const a=new ae(i.url,s);return i===e&&(t=a),a}(e.root));return t??o}function K0(e,t,n,r){let o=e;for(;o.parent;)o=o.parent;if(0===t.length)return eh(o,o,o,n,r);const i=function kx(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new ew(!0,0,e);let t=0,n=!1;const r=e.reduce((o,i,s)=>{if("object"==typeof i&&null!=i){if(i.outlets){const a={};return Object.entries(i.outlets).forEach(([l,u])=>{a[l]="string"==typeof u?u.split("/"):u}),[...o,{outlets:a}]}if(i.segmentPath)return[...o,i.segmentPath]}return"string"!=typeof i?[...o,i]:0===s?(i.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?n=!0:".."===a?t++:""!=a&&o.push(a))}),o):[...o,i]},[]);return new ew(n,t,r)}(t);if(i.toRoot())return eh(o,o,new ae([],{}),n,r);const s=function Lx(e,t,n){if(e.isAbsolute)return new Rl(t,!0,0);if(!n)return new Rl(t,!1,NaN);if(null===n.parent)return new Rl(n,!0,0);const r=Nl(e.commands[0])?0:1;return function Vx(e,t,n){let r=e,o=t,i=n;for(;i>o;){if(i-=o,r=r.parent,!r)throw new w(4005,!1);o=r.segments.length}return new Rl(r,!1,o-i)}(n,n.segments.length-1+r,e.numberOfDoubleDots)}(i,o,e),a=s.processChildren?as(s.segmentGroup,s.index,i.commands):tw(s.segmentGroup,s.index,i.commands);return eh(o,s.segmentGroup,a,n,r)}function Nl(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function ss(e){return"object"==typeof e&&null!=e&&e.outlets}function eh(e,t,n,r,o){let s,i={};r&&Object.entries(r).forEach(([l,u])=>{i[l]=Array.isArray(u)?u.map(c=>`${c}`):`${u}`}),s=e===t?n:J0(e,t,n);const a=Y0(X0(s));return new Po(a,i,o)}function J0(e,t,n){const r={};return Object.entries(e.children).forEach(([o,i])=>{r[o]=i===t?n:J0(i,t,n)}),new ae(e.segments,r)}class ew{constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&Nl(r[0]))throw new w(4003,!1);const o=r.find(ss);if(o&&o!==$0(r))throw new w(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Rl{constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}}function tw(e,t,n){if(e||(e=new ae([],{})),0===e.segments.length&&e.hasChildren())return as(e,t,n);const r=function $x(e,t,n){let r=0,o=t;const i={match:!1,pathIndex:0,commandIndex:0};for(;o=n.length)return i;const s=e.segments[o],a=n[r];if(ss(a))break;const l=`${a}`,u=r0&&void 0===l)break;if(l&&u&&"object"==typeof u&&void 0===u.outlets){if(!rw(l,u,s))return i;r+=2}else{if(!rw(l,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}(e,t,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndex{"string"==typeof s&&(s=[s]),null!==s&&(o[i]=tw(e.children[i],t,s))}),Object.entries(e.children).forEach(([i,s])=>{void 0===r[i]&&(o[i]=s)}),new ae(e.segments,o)}}function th(e,t,n){const r=e.segments.slice(0,t);let o=0;for(;o{"string"==typeof r&&(r=[r]),null!==r&&(t[n]=th(new ae([],{}),0,r))}),t}function nw(e){const t={};return Object.entries(e).forEach(([n,r])=>t[n]=`${r}`),t}function rw(e,t,n){return e==n.path&&yn(t,n.parameters)}const ls="imperative";class vn{constructor(t,n){this.id=t,this.url=n}}class nh extends vn{constructor(t,n,r="imperative",o=null){super(t,n),this.type=0,this.navigationTrigger=r,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Rr extends vn{constructor(t,n,r){super(t,n),this.urlAfterRedirects=r,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Ol extends vn{constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class us extends vn{constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o,this.type=16}}class rh extends vn{constructor(t,n,r,o){super(t,n),this.error=r,this.target=o,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Bx extends vn{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ux extends vn{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class zx extends vn{constructor(t,n,r,o,i){super(t,n),this.urlAfterRedirects=r,this.state=o,this.shouldActivate=i,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Gx extends vn{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Wx extends vn{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class qx{constructor(t){this.route=t,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Zx{constructor(t){this.route=t,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Yx{constructor(t){this.snapshot=t,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Xx{constructor(t){this.snapshot=t,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Qx{constructor(t){this.snapshot=t,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Kx{constructor(t){this.snapshot=t,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ow{constructor(t,n,r){this.routerEvent=t,this.position=n,this.anchor=r,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Jx{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new cs,this.attachRef=null}}let cs=(()=>{class e{constructor(){this.contexts=new Map}onChildOutletCreated(n,r){const o=this.getOrCreateContext(n);o.outlet=r,this.contexts.set(n,o)}onChildOutletDestroyed(n){const r=this.getContext(n);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){const n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let r=this.getContext(n);return r||(r=new Jx,this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();class iw{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const n=this.pathFromRoot(t);return n.length>1?n[n.length-2]:null}children(t){const n=oh(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){const n=oh(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){const n=ih(t,this._root);return n.length<2?[]:n[n.length-2].children.map(o=>o.value).filter(o=>o!==t)}pathFromRoot(t){return ih(t,this._root).map(n=>n.value)}}function oh(e,t){if(e===t.value)return t;for(const n of t.children){const r=oh(e,n);if(r)return r}return null}function ih(e,t){if(e===t.value)return[t];for(const n of t.children){const r=ih(e,n);if(r.length)return r.unshift(t),r}return[]}class Hn{constructor(t,n){this.value=t,this.children=n}toString(){return`TreeNode(${this.value})`}}function xo(e){const t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}class sw extends iw{constructor(t,n){super(t),this.snapshot=n,sh(this,t)}toString(){return this.snapshot.toString()}}function aw(e,t){const n=function eF(e,t){const s=new Pl([],{},{},"",{},q,t,null,{});return new uw("",new Hn(s,[]))}(0,t),r=new Zt([new rs("",{})]),o=new Zt({}),i=new Zt({}),s=new Zt({}),a=new Zt(""),l=new or(r,o,s,a,i,q,t,n.root);return l.snapshot=n.root,new sw(new Hn(l,[]),n)}class or{constructor(t,n,r,o,i,s,a,l){this.urlSubject=t,this.paramsSubject=n,this.queryParamsSubject=r,this.fragmentSubject=o,this.dataSubject=i,this.outlet=s,this.component=a,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(te(u=>u[ns]))??F(void 0),this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i}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._paramMap=this.params.pipe(te(t=>Oo(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(te(t=>Oo(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function lw(e,t="emptyOnly"){const n=e.pathFromRoot;let r=0;if("always"!==t)for(r=n.length-1;r>=1;){const o=n[r],i=n[r-1];if(o.routeConfig&&""===o.routeConfig.path)r--;else{if(i.component)break;r--}}return function tF(e){return e.reduce((t,n)=>({params:{...t.params,...n.params},data:{...t.data,...n.data},resolve:{...n.data,...t.resolve,...n.routeConfig?.data,...n._resolvedData}}),{params:{},data:{},resolve:{}})}(n.slice(r))}class Pl{get title(){return this.data?.[ns]}constructor(t,n,r,o,i,s,a,l,u){this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this.routeConfig=l,this._resolve=u}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._paramMap=Oo(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Oo(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class uw extends iw{constructor(t,n){super(n),this.url=t,sh(this,n)}toString(){return cw(this._root)}}function sh(e,t){t.value._routerState=e,t.children.forEach(n=>sh(e,n))}function cw(e){const t=e.children.length>0?` { ${e.children.map(cw).join(", ")} } `:"";return`${e.value}${t}`}function ah(e){if(e.snapshot){const t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,yn(t.queryParams,n.queryParams)||e.queryParamsSubject.next(n.queryParams),t.fragment!==n.fragment&&e.fragmentSubject.next(n.fragment),yn(t.params,n.params)||e.paramsSubject.next(n.params),function mx(e,t){if(e.length!==t.length)return!1;for(let n=0;nyn(n.parameters,t[r].parameters))}(e.url,t.url);return n&&!(!e.parent!=!t.parent)&&(!e.parent||lh(e.parent,t.parent))}let uh=(()=>{class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=q,this.activateEvents=new Ee,this.deactivateEvents=new Ee,this.attachEvents=new Ee,this.detachEvents=new Ee,this.parentContexts=I(cs),this.location=I(Ut),this.changeDetector=I(Wa),this.environmentInjector=I(sn),this.inputBinder=I(xl,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){const{firstChange:r,previousValue:o}=n.name;if(r)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new w(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new w(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new w(4012,!1);this.location.detach();const n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){const n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new w(4013,!1);this._activatedRoute=n;const o=this.location,s=n.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new nF(n,a,o.injector);this.activated=o.createComponent(s,{index:o.length,injector:l,environmentInjector:r??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=$({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Ot]}),e})();class nF{constructor(t,n,r){this.route=t,this.childContexts=n,this.parent=r}get(t,n){return t===or?this.route:t===cs?this.childContexts:this.parent.get(t,n)}}const xl=new R("");let dw=(()=>{class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(n){this.unsubscribeFromRouteData(n),this.subscribeToRouteData(n)}unsubscribeFromRouteData(n){this.outletDataSubscriptions.get(n)?.unsubscribe(),this.outletDataSubscriptions.delete(n)}subscribeToRouteData(n){const{activatedRoute:r}=n,o=Wf([r.queryParams,r.params,r.data]).pipe(gn(([i,s,a],l)=>(a={...i,...s,...a},0===l?F(a):Promise.resolve(a)))).subscribe(i=>{if(!n.isActivated||!n.activatedComponentRef||n.activatedRoute!==r||null===r.component)return void this.unsubscribeFromRouteData(n);const s=function WN(e){const t=ne(e);if(!t)return null;const n=new Ei(t);return{get selector(){return n.selector},get type(){return n.componentType},get inputs(){return n.inputs},get outputs(){return n.outputs},get ngContentSelectors(){return n.ngContentSelectors},get isStandalone(){return t.standalone}}}(r.component);if(s)for(const{templateName:a}of s.inputs)n.activatedComponentRef.setInput(a,i[a]);else this.unsubscribeFromRouteData(n)});this.outletDataSubscriptions.set(n,o)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac}),e})();function ds(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){const r=n.value;r._futureSnapshot=t.value;const o=function oF(e,t,n){return t.children.map(r=>{for(const o of n.children)if(e.shouldReuseRoute(r.value,o.value.snapshot))return ds(e,r,o);return ds(e,r)})}(e,t,n);return new Hn(r,o)}{if(e.shouldAttach(t.value)){const i=e.retrieve(t.value);if(null!==i){const s=i.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>ds(e,a)),s}}const r=function iF(e){return new or(new Zt(e.url),new Zt(e.params),new Zt(e.queryParams),new Zt(e.fragment),new Zt(e.data),e.outlet,e.component,e)}(t.value),o=t.children.map(i=>ds(e,i));return new Hn(r,o)}}const ch="ngNavigationCancelingError";function fw(e,t){const{redirectTo:n,navigationBehaviorOptions:r}=Nr(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,o=hw(!1,0,t);return o.url=n,o.navigationBehaviorOptions=r,o}function hw(e,t,n){const r=new Error("NavigationCancelingError: "+(e||""));return r[ch]=!0,r.cancellationCode=t,n&&(r.url=n),r}function pw(e){return gw(e)&&Nr(e.url)}function gw(e){return e&&e[ch]}let mw=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=Rt({type:e,selectors:[["ng-component"]],standalone:!0,features:[jv],decls:1,vars:0,template:function(n,r){1&n&&ue(0,"router-outlet")},dependencies:[uh],encapsulation:2}),e})();function dh(e){const t=e.children&&e.children.map(dh),n=t?{...e,children:t}:{...e};return!n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==q&&(n.component=mw),n}function Yt(e){return e.outlet||q}function fs(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let t=e.parent;t;t=t.parent){const n=t.routeConfig;if(n?._loadedInjector)return n._loadedInjector;if(n?._injector)return n._injector}return null}class fF{constructor(t,n,r,o,i){this.routeReuseStrategy=t,this.futureState=n,this.currState=r,this.forwardEvent=o,this.inputBindingEnabled=i}activate(t){const n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,t),ah(this.futureState.root),this.activateChildRoutes(n,r,t)}deactivateChildRoutes(t,n,r){const o=xo(n);t.children.forEach(i=>{const s=i.value.outlet;this.deactivateRoutes(i,o[s],r),delete o[s]}),Object.values(o).forEach(i=>{this.deactivateRouteAndItsChildren(i,r)})}deactivateRoutes(t,n,r){const o=t.value,i=n?n.value:null;if(o===i)if(o.component){const s=r.getContext(o.outlet);s&&this.deactivateChildRoutes(t,n,s.children)}else this.deactivateChildRoutes(t,n,r);else i&&this.deactivateRouteAndItsChildren(n,r)}deactivateRouteAndItsChildren(t,n){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,n):this.deactivateRouteAndOutlet(t,n)}detachAndStoreRouteSubtree(t,n){const r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=xo(t);for(const s of Object.keys(i))this.deactivateRouteAndItsChildren(i[s],o);if(r&&r.outlet){const s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,n){const r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=xo(t);for(const s of Object.keys(i))this.deactivateRouteAndItsChildren(i[s],o);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(t,n,r){const o=xo(n);t.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new Kx(i.value.snapshot))}),t.children.length&&this.forwardEvent(new Xx(t.value.snapshot))}activateRoutes(t,n,r){const o=t.value,i=n?n.value:null;if(ah(o),o===i)if(o.component){const s=r.getOrCreateContext(o.outlet);this.activateChildRoutes(t,n,s.children)}else this.activateChildRoutes(t,n,r);else if(o.component){const s=r.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){const a=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.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),ah(a.route.value),this.activateChildRoutes(t,null,s.children)}else{const a=fs(o.snapshot);s.attachRef=null,s.route=o,s.injector=a,s.outlet&&s.outlet.activateWith(o,s.injector),this.activateChildRoutes(t,null,s.children)}}else this.activateChildRoutes(t,null,r)}}class yw{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class Fl{constructor(t,n){this.component=t,this.route=n}}function hF(e,t,n){const r=e._root;return hs(r,t?t._root:null,n,[r.value])}function Fo(e,t){const n=Symbol(),r=t.get(e,n);return r===n?"function"!=typeof e||function RE(e){return null!==_s(e)}(e)?t.get(e):e:r}function hs(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=xo(t);return e.children.forEach(s=>{(function gF(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=e.value,s=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(s&&i.routeConfig===s.routeConfig){const l=function mF(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!Ar(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Ar(e.url,t.url)||!yn(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!lh(e,t)||!yn(e.queryParams,t.queryParams);default:return!lh(e,t)}}(s,i,i.routeConfig.runGuardsAndResolvers);l?o.canActivateChecks.push(new yw(r)):(i.data=s.data,i._resolvedData=s._resolvedData),hs(e,t,i.component?a?a.children:null:n,r,o),l&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new Fl(a.outlet.component,s))}else s&&ps(t,a,o),o.canActivateChecks.push(new yw(r)),hs(e,null,i.component?a?a.children:null:n,r,o)})(s,i[s.value.outlet],n,r.concat([s.value]),o),delete i[s.value.outlet]}),Object.entries(i).forEach(([s,a])=>ps(a,n.getContext(s),o)),o}function ps(e,t,n){const r=xo(e),o=e.value;Object.entries(r).forEach(([i,s])=>{ps(s,o.component?t?t.children.getContext(i):null:t,n)}),n.canDeactivateChecks.push(new Fl(o.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,o))}function gs(e){return"function"==typeof e}function vw(e){return e instanceof bl||"EmptyError"===e?.name}const kl=Symbol("INITIAL_VALUE");function ko(){return gn(e=>Wf(e.map(t=>t.pipe(Ro(1),function lx(...e){const t=zo(e);return je((n,r)=>{(t?qf(e,n,t):qf(e,n)).subscribe(r)})}(kl)))).pipe(te(t=>{for(const n of t)if(!0!==n){if(n===kl)return kl;if(!1===n||n instanceof Po)return n}return!0}),Vn(t=>t!==kl),Ro(1)))}function Cw(e){return function Xw(...e){return bh(e)}(J(t=>{if(Nr(t))throw fw(0,t)}),te(t=>!0===t))}class Ll{constructor(t){this.segmentGroup=t||null}}class Dw{constructor(t){this.urlTree=t}}function Lo(e){return ts(new Ll(e))}function _w(e){return ts(new Dw(e))}class kF{constructor(t,n){this.urlSerializer=t,this.urlTree=n}noMatchError(t){return new w(4002,!1)}lineralizeSegments(t,n){let r=[],o=n.root;for(;;){if(r=r.concat(o.segments),0===o.numberOfChildren)return F(r);if(o.numberOfChildren>1||!o.children[q])return ts(new w(4e3,!1));o=o.children[q]}}applyRedirectCommands(t,n,r){return this.applyRedirectCreateUrlTree(n,this.urlSerializer.parse(n),t,r)}applyRedirectCreateUrlTree(t,n,r,o){const i=this.createSegmentGroup(t,n.root,r,o);return new Po(i,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(t,n){const r={};return Object.entries(t).forEach(([o,i])=>{if("string"==typeof i&&i.startsWith(":")){const a=i.substring(1);r[o]=n[a]}else r[o]=i}),r}createSegmentGroup(t,n,r,o){const i=this.createSegments(t,n.segments,r,o);let s={};return Object.entries(n.children).forEach(([a,l])=>{s[a]=this.createSegmentGroup(t,l,r,o)}),new ae(i,s)}createSegments(t,n,r,o){return n.map(i=>i.path.startsWith(":")?this.findPosParam(t,i,o):this.findOrReturn(i,r))}findPosParam(t,n,r){const o=r[n.path.substring(1)];if(!o)throw new w(4001,!1);return o}findOrReturn(t,n){let r=0;for(const o of n){if(o.path===t.path)return n.splice(r),o;r++}return t}}const fh={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function LF(e,t,n,r,o){const i=hh(e,t,n);return i.matched?(r=function sF(e,t){return e.providers&&!e._injector&&(e._injector=sd(e.providers,t,`Route: ${e.path}`)),e._injector??t}(t,r),function PF(e,t,n,r){const o=t.canMatch;return o&&0!==o.length?F(o.map(s=>{const a=Fo(s,e);return rr(function wF(e){return e&&gs(e.canMatch)}(a)?a.canMatch(t,n):e.runInContext(()=>a(t,n)))})).pipe(ko(),Cw()):F(!0)}(r,t,n).pipe(te(s=>!0===s?i:{...fh}))):F(i)}function hh(e,t,n){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?{...fh}:{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};const o=(t.matcher||gx)(n,e,t);if(!o)return{...fh};const i={};Object.entries(o.posParams??{}).forEach(([a,l])=>{i[a]=l.path});const s=o.consumed.length>0?{...i,...o.consumed[o.consumed.length-1].parameters}:i;return{matched:!0,consumedSegments:o.consumed,remainingSegments:n.slice(o.consumed.length),parameters:s,positionalParamSegments:o.posParams??{}}}function ww(e,t,n,r){return n.length>0&&function $F(e,t,n){return n.some(r=>Vl(e,t,r)&&Yt(r)!==q)}(e,n,r)?{segmentGroup:new ae(t,HF(r,new ae(n,e.children))),slicedSegments:[]}:0===n.length&&function jF(e,t,n){return n.some(r=>Vl(e,t,r))}(e,n,r)?{segmentGroup:new ae(e.segments,VF(e,0,n,r,e.children)),slicedSegments:n}:{segmentGroup:new ae(e.segments,e.children),slicedSegments:n}}function VF(e,t,n,r,o){const i={};for(const s of r)if(Vl(e,n,s)&&!o[Yt(s)]){const a=new ae([],{});i[Yt(s)]=a}return{...o,...i}}function HF(e,t){const n={};n[q]=t;for(const r of e)if(""===r.path&&Yt(r)!==q){const o=new ae([],{});n[Yt(r)]=o}return n}function Vl(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path}class GF{constructor(t,n,r,o,i,s,a){this.injector=t,this.configLoader=n,this.rootComponentType=r,this.config=o,this.urlTree=i,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.allowRedirects=!0,this.applyRedirects=new kF(this.urlSerializer,this.urlTree)}noMatchError(t){return new w(4002,!1)}recognize(){const t=ww(this.urlTree.root,[],[],this.config).segmentGroup;return this.processSegmentGroup(this.injector,this.config,t,q).pipe(he(n=>{if(n instanceof Dw)return this.allowRedirects=!1,this.urlTree=n.urlTree,this.match(n.urlTree);throw n instanceof Ll?this.noMatchError(n):n}),te(n=>{const r=new Pl([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},q,this.rootComponentType,null,{}),o=new Hn(r,n),i=new uw("",o),s=function Fx(e,t,n=null,r=null){return K0(Q0(e),t,n,r)}(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,i.url=this.urlSerializer.serialize(s),this.inheritParamsAndData(i._root),{state:i,tree:s}}))}match(t){return this.processSegmentGroup(this.injector,this.config,t.root,q).pipe(he(r=>{throw r instanceof Ll?this.noMatchError(r):r}))}inheritParamsAndData(t){const n=t.value,r=lw(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),t.children.forEach(o=>this.inheritParamsAndData(o))}processSegmentGroup(t,n,r,o){return 0===r.segments.length&&r.hasChildren()?this.processChildren(t,n,r):this.processSegment(t,n,r,r.segments,o,!0)}processChildren(t,n,r){const o=[];for(const i of Object.keys(r.children))"primary"===i?o.unshift(i):o.push(i);return Pe(o).pipe(Mo(i=>{const s=r.children[i],a=function cF(e,t){const n=e.filter(r=>Yt(r)===t);return n.push(...e.filter(r=>Yt(r)!==t)),n}(n,i);return this.processSegmentGroup(t,a,s,i)}),function dx(e,t){return je(function cx(e,t,n,r,o){return(i,s)=>{let a=n,l=t,u=0;i.subscribe(He(s,c=>{const d=u++;l=a?e(l,c,d):(a=!0,c),r&&s.next(l)},o&&(()=>{a&&s.next(l),s.complete()})))}}(e,t,arguments.length>=2,!0))}((i,s)=>(i.push(...s),i)),Ml(null),function fx(e,t){const n=arguments.length>=2;return r=>r.pipe(e?Vn((o,i)=>e(o,i,r)):ar,Yf(1),n?Ml(t):V0(()=>new bl))}(),Be(i=>{if(null===i)return Lo(r);const s=Ew(i);return function WF(e){e.sort((t,n)=>t.value.outlet===q?-1:n.value.outlet===q?1:t.value.outlet.localeCompare(n.value.outlet))}(s),F(s)}))}processSegment(t,n,r,o,i,s){return Pe(n).pipe(Mo(a=>this.processSegmentAgainstRoute(a._injector??t,n,a,r,o,i,s).pipe(he(l=>{if(l instanceof Ll)return F(null);throw l}))),Tr(a=>!!a),he(a=>{if(vw(a))return function UF(e,t,n){return 0===t.length&&!e.children[n]}(r,o,i)?F([]):Lo(r);throw a}))}processSegmentAgainstRoute(t,n,r,o,i,s,a){return function BF(e,t,n,r){return!!(Yt(e)===r||r!==q&&Vl(t,n,e))&&("**"===e.path||hh(t,e,n).matched)}(r,o,i,s)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,o,r,i,s,a):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,o,n,r,i,s):Lo(o):Lo(o)}expandSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s){return"**"===o.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,r,o,s):this.expandRegularSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,o){const i=this.applyRedirects.applyRedirectCommands([],r.redirectTo,{});return r.redirectTo.startsWith("/")?_w(i):this.applyRedirects.lineralizeSegments(r,i).pipe(Be(s=>{const a=new ae(s,{});return this.processSegment(t,n,a,s,o,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s){const{matched:a,consumedSegments:l,remainingSegments:u,positionalParamSegments:c}=hh(n,o,i);if(!a)return Lo(n);const d=this.applyRedirects.applyRedirectCommands(l,o.redirectTo,c);return o.redirectTo.startsWith("/")?_w(d):this.applyRedirects.lineralizeSegments(o,d).pipe(Be(f=>this.processSegment(t,r,n,f.concat(u),s,!1)))}matchSegmentAgainstRoute(t,n,r,o,i,s){let a;if("**"===r.path){const l=o.length>0?$0(o).parameters:{};a=F({snapshot:new Pl(o,l,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,bw(r),Yt(r),r.component??r._loadedComponent??null,r,Mw(r)),consumedSegments:[],remainingSegments:[]}),n.children={}}else a=LF(n,r,o,t).pipe(te(({matched:l,consumedSegments:u,remainingSegments:c,parameters:d})=>l?{snapshot:new Pl(u,d,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,bw(r),Yt(r),r.component??r._loadedComponent??null,r,Mw(r)),consumedSegments:u,remainingSegments:c}:null));return a.pipe(gn(l=>null===l?Lo(n):this.getChildConfig(t=r._injector??t,r,o).pipe(gn(({routes:u})=>{const c=r._loadedInjector??t,{snapshot:d,consumedSegments:f,remainingSegments:h}=l,{segmentGroup:p,slicedSegments:m}=ww(n,f,h,u);if(0===m.length&&p.hasChildren())return this.processChildren(c,u,p).pipe(te(b=>null===b?null:[new Hn(d,b)]));if(0===u.length&&0===m.length)return F([new Hn(d,[])]);const C=Yt(r)===i;return this.processSegment(c,u,p,m,C?q:i,!0).pipe(te(b=>[new Hn(d,b)]))}))))}getChildConfig(t,n,r){return n.children?F({routes:n.children,injector:t}):n.loadChildren?void 0!==n._loadedRoutes?F({routes:n._loadedRoutes,injector:n._loadedInjector}):function OF(e,t,n,r){const o=t.canLoad;return void 0===o||0===o.length?F(!0):F(o.map(s=>{const a=Fo(s,e);return rr(function vF(e){return e&&gs(e.canLoad)}(a)?a.canLoad(t,n):e.runInContext(()=>a(t,n)))})).pipe(ko(),Cw())}(t,n,r).pipe(Be(o=>o?this.configLoader.loadChildren(t,n).pipe(J(i=>{n._loadedRoutes=i.routes,n._loadedInjector=i.injector})):function FF(e){return ts(hw(!1,3))}())):F({routes:[],injector:t})}}function qF(e){const t=e.value.routeConfig;return t&&""===t.path}function Ew(e){const t=[],n=new Set;for(const r of e){if(!qF(r)){t.push(r);continue}const o=t.find(i=>r.value.routeConfig===i.value.routeConfig);void 0!==o?(o.children.push(...r.children),n.add(o)):t.push(r)}for(const r of n){const o=Ew(r.children);t.push(new Hn(r.value,o))}return t.filter(r=>!n.has(r))}function bw(e){return e.data||{}}function Mw(e){return e.resolve||{}}function Sw(e){return"string"==typeof e.title||null===e.title}function ph(e){return gn(t=>{const n=e(t);return n?Pe(n).pipe(te(()=>t)):F(t)})}const Vo=new R("ROUTES");let gh=(()=>{class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=I(NC)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return F(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);const r=rr(n.loadComponent()).pipe(te(Iw),J(i=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=i}),Xf(()=>{this.componentLoaders.delete(n)})),o=new L0(r,()=>new Dn).pipe(Zf());return this.componentLoaders.set(n,o),o}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return F({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);const i=this.loadModuleFactoryOrRoutes(r.loadChildren).pipe(te(a=>{this.onLoadEndListener&&this.onLoadEndListener(r);let l,u;return Array.isArray(a)?u=a:(l=a.create(n).injector,u=l.get(Vo,[],L.Self|L.Optional).flat()),{routes:u.map(dh),injector:l}}),Xf(()=>{this.childrenLoaders.delete(r)})),s=new L0(i,()=>new Dn).pipe(Zf());return this.childrenLoaders.set(r,s),s}loadModuleFactoryOrRoutes(n){return rr(n()).pipe(te(Iw),Be(r=>r instanceof Hv||Array.isArray(r)?F(r):Pe(this.compiler.compileModuleAsync(r))))}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Iw(e){return function ek(e){return e&&"object"==typeof e&&"default"in e}(e)?e.default:e}let Hl=(()=>{class e{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new Dn,this.configLoader=I(gh),this.environmentInjector=I(sn),this.urlSerializer=I(os),this.rootContexts=I(cs),this.inputBindingEnabled=null!==I(xl,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>F(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=o=>this.events.next(new Zx(o)),this.configLoader.onLoadStartListener=o=>this.events.next(new qx(o))}complete(){this.transitions?.complete()}handleNavigationRequest(n){const r=++this.navigationId;this.transitions?.next({...this.transitions.value,...n,id:r})}setupNavigations(n){return this.transitions=new Zt({id:0,currentUrlTree:n.currentUrlTree,currentRawUrl:n.currentUrlTree,extractedUrl:n.urlHandlingStrategy.extract(n.currentUrlTree),urlAfterRedirects:n.urlHandlingStrategy.extract(n.currentUrlTree),rawUrl:n.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:ls,restoredState:null,currentSnapshot:n.routerState.snapshot,targetSnapshot:null,currentRouterState:n.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(Vn(r=>0!==r.id),te(r=>({...r,extractedUrl:n.urlHandlingStrategy.extract(r.rawUrl)})),gn(r=>{let o=!1,i=!1;return F(r).pipe(J(s=>{this.currentNavigation={id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,trigger:s.source,extras:s.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),gn(s=>{const a=n.browserUrlTree.toString(),l=!n.navigated||s.extractedUrl.toString()!==a||a!==n.currentUrlTree.toString();if(!l&&"reload"!==(s.extras.onSameUrlNavigation??n.onSameUrlNavigation)){const c="";return this.events.next(new us(s.id,n.serializeUrl(r.rawUrl),c,0)),n.rawUrlTree=s.rawUrl,s.resolve(null),Qt}if(n.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return Tw(s.source)&&(n.browserUrlTree=s.extractedUrl),F(s).pipe(gn(c=>{const d=this.transitions?.getValue();return this.events.next(new nh(c.id,this.urlSerializer.serialize(c.extractedUrl),c.source,c.restoredState)),d!==this.transitions?.getValue()?Qt:Promise.resolve(c)}),function ZF(e,t,n,r,o,i){return Be(s=>function zF(e,t,n,r,o,i,s="emptyOnly"){return new GF(e,t,n,r,o,s,i).recognize()}(e,t,n,r,s.extractedUrl,o,i).pipe(te(({state:a,tree:l})=>({...s,targetSnapshot:a,urlAfterRedirects:l}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,n.paramsInheritanceStrategy),J(c=>{if(r.targetSnapshot=c.targetSnapshot,r.urlAfterRedirects=c.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:c.urlAfterRedirects},"eager"===n.urlUpdateStrategy){if(!c.extras.skipLocationChange){const f=n.urlHandlingStrategy.merge(c.urlAfterRedirects,c.rawUrl);n.setBrowserUrl(f,c)}n.browserUrlTree=c.urlAfterRedirects}const d=new Bx(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(d)}));if(l&&n.urlHandlingStrategy.shouldProcessUrl(n.rawUrlTree)){const{id:c,extractedUrl:d,source:f,restoredState:h,extras:p}=s,m=new nh(c,this.urlSerializer.serialize(d),f,h);this.events.next(m);const C=aw(0,this.rootComponentType).snapshot;return F(r={...s,targetSnapshot:C,urlAfterRedirects:d,extras:{...p,skipLocationChange:!1,replaceUrl:!1}})}{const c="";return this.events.next(new us(s.id,n.serializeUrl(r.extractedUrl),c,1)),n.rawUrlTree=s.rawUrl,s.resolve(null),Qt}}),J(s=>{const a=new Ux(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}),te(s=>r={...s,guards:hF(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),function bF(e,t){return Be(n=>{const{targetSnapshot:r,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=n;return 0===s.length&&0===i.length?F({...n,guardsResult:!0}):function MF(e,t,n,r){return Pe(e).pipe(Be(o=>function RF(e,t,n,r,o){const i=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return i&&0!==i.length?F(i.map(a=>{const l=fs(t)??o,u=Fo(a,l);return rr(function _F(e){return e&&gs(e.canDeactivate)}(u)?u.canDeactivate(e,t,n,r):l.runInContext(()=>u(e,t,n,r))).pipe(Tr())})).pipe(ko()):F(!0)}(o.component,o.route,n,t,r)),Tr(o=>!0!==o,!0))}(s,r,o,e).pipe(Be(a=>a&&function yF(e){return"boolean"==typeof e}(a)?function SF(e,t,n,r){return Pe(t).pipe(Mo(o=>qf(function TF(e,t){return null!==e&&t&&t(new Yx(e)),F(!0)}(o.route.parent,r),function IF(e,t){return null!==e&&t&&t(new Qx(e)),F(!0)}(o.route,r),function NF(e,t,n){const r=t[t.length-1],i=t.slice(0,t.length-1).reverse().map(s=>function pF(e){const t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(s)).filter(s=>null!==s).map(s=>k0(()=>F(s.guards.map(l=>{const u=fs(s.node)??n,c=Fo(l,u);return rr(function DF(e){return e&&gs(e.canActivateChild)}(c)?c.canActivateChild(r,e):u.runInContext(()=>c(r,e))).pipe(Tr())})).pipe(ko())));return F(i).pipe(ko())}(e,o.path,n),function AF(e,t,n){const r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||0===r.length)return F(!0);const o=r.map(i=>k0(()=>{const s=fs(t)??n,a=Fo(i,s);return rr(function CF(e){return e&&gs(e.canActivate)}(a)?a.canActivate(t,e):s.runInContext(()=>a(t,e))).pipe(Tr())}));return F(o).pipe(ko())}(e,o.route,n))),Tr(o=>!0!==o,!0))}(r,i,e,t):F(a)),te(a=>({...n,guardsResult:a})))})}(this.environmentInjector,s=>this.events.next(s)),J(s=>{if(r.guardsResult=s.guardsResult,Nr(s.guardsResult))throw fw(0,s.guardsResult);const a=new zx(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);this.events.next(a)}),Vn(s=>!!s.guardsResult||(n.restoreHistory(s),this.cancelNavigationTransition(s,"",3),!1)),ph(s=>{if(s.guards.canActivateChecks.length)return F(s).pipe(J(a=>{const l=new Gx(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(l)}),gn(a=>{let l=!1;return F(a).pipe(function YF(e,t){return Be(n=>{const{targetSnapshot:r,guards:{canActivateChecks:o}}=n;if(!o.length)return F(n);let i=0;return Pe(o).pipe(Mo(s=>function XF(e,t,n,r){const o=e.routeConfig,i=e._resolve;return void 0!==o?.title&&!Sw(o)&&(i[ns]=o.title),function QF(e,t,n,r){const o=function KF(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}(e);if(0===o.length)return F({});const i={};return Pe(o).pipe(Be(s=>function JF(e,t,n,r){const o=fs(t)??r,i=Fo(e,o);return rr(i.resolve?i.resolve(t,n):o.runInContext(()=>i(t,n)))}(e[s],t,n,r).pipe(Tr(),J(a=>{i[s]=a}))),Yf(1),function hx(e){return te(()=>e)}(i),he(s=>vw(s)?Qt:ts(s)))}(i,e,t,r).pipe(te(s=>(e._resolvedData=s,e.data=lw(e,n).resolve,o&&Sw(o)&&(e.data[ns]=o.title),null)))}(s.route,r,e,t)),J(()=>i++),Yf(1),Be(s=>i===o.length?F(n):Qt))})}(n.paramsInheritanceStrategy,this.environmentInjector),J({next:()=>l=!0,complete:()=>{l||(n.restoreHistory(a),this.cancelNavigationTransition(a,"",2))}}))}),J(a=>{const l=new Wx(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(l)}))}),ph(s=>{const a=l=>{const u=[];l.routeConfig?.loadComponent&&!l.routeConfig._loadedComponent&&u.push(this.configLoader.loadComponent(l.routeConfig).pipe(J(c=>{l.component=c}),te(()=>{})));for(const c of l.children)u.push(...a(c));return u};return Wf(a(s.targetSnapshot.root)).pipe(Ml(),Ro(1))}),ph(()=>this.afterPreactivation()),te(s=>{const a=function rF(e,t,n){const r=ds(e,t._root,n?n._root:void 0);return new sw(r,t)}(n.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return r={...s,targetRouterState:a}}),J(s=>{n.currentUrlTree=s.urlAfterRedirects,n.rawUrlTree=n.urlHandlingStrategy.merge(s.urlAfterRedirects,s.rawUrl),n.routerState=s.targetRouterState,"deferred"===n.urlUpdateStrategy&&(s.extras.skipLocationChange||n.setBrowserUrl(n.rawUrlTree,s),n.browserUrlTree=s.urlAfterRedirects)}),((e,t,n,r)=>te(o=>(new fF(t,o.targetRouterState,o.currentRouterState,n,r).activate(e),o)))(this.rootContexts,n.routeReuseStrategy,s=>this.events.next(s),this.inputBindingEnabled),Ro(1),J({next:s=>{o=!0,this.lastSuccessfulNavigation=this.currentNavigation,n.navigated=!0,this.events.next(new Rr(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(n.currentUrlTree))),n.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(!0)},complete:()=>{o=!0}}),Xf(()=>{o||i||this.cancelNavigationTransition(r,"",1),this.currentNavigation?.id===r.id&&(this.currentNavigation=null)}),he(s=>{if(i=!0,gw(s)){pw(s)||(n.navigated=!0,n.restoreHistory(r,!0));const a=new Ol(r.id,this.urlSerializer.serialize(r.extractedUrl),s.message,s.cancellationCode);if(this.events.next(a),pw(s)){const l=n.urlHandlingStrategy.merge(s.url,n.rawUrlTree),u={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===n.urlUpdateStrategy||Tw(r.source)};n.scheduleNavigation(l,ls,null,u,{resolve:r.resolve,reject:r.reject,promise:r.promise})}else r.resolve(!1)}else{n.restoreHistory(r,!0);const a=new rh(r.id,this.urlSerializer.serialize(r.extractedUrl),s,r.targetSnapshot??void 0);this.events.next(a);try{r.resolve(n.errorHandler(s))}catch(l){r.reject(l)}}return Qt}))}))}cancelNavigationTransition(n,r,o){const i=new Ol(n.id,this.urlSerializer.serialize(n.extractedUrl),r,o);this.events.next(i),n.resolve(!1)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Tw(e){return e!==ls}let Aw=(()=>{class e{buildTitle(n){let r,o=n.root;for(;void 0!==o;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(i=>i.outlet===q);return r}getResolvedTitleForRoute(n){return n.data[ns]}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:function(){return I(tk)},providedIn:"root"}),e})(),tk=(()=>{class e extends Aw{constructor(n){super(),this.title=n}updateTitle(n){const r=this.buildTitle(n);void 0!==r&&this.title.setTitle(r)}}return e.\u0275fac=function(n){return new(n||e)(N(n_))},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),nk=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:function(){return I(ok)},providedIn:"root"}),e})();class rk{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}}let ok=(()=>{class e extends rk{}return e.\u0275fac=function(){let t;return function(r){return(t||(t=Ge(e)))(r||e)}}(),e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const $l=new R("",{providedIn:"root",factory:()=>({})});let ik=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:function(){return I(sk)},providedIn:"root"}),e})(),sk=(()=>{class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var St=(()=>((St=St||{})[St.COMPLETE=0]="COMPLETE",St[St.FAILED=1]="FAILED",St[St.REDIRECTING=2]="REDIRECTING",St))();function Nw(e,t){e.events.pipe(Vn(n=>n instanceof Rr||n instanceof Ol||n instanceof rh||n instanceof us),te(n=>n instanceof Rr||n instanceof us?St.COMPLETE:n instanceof Ol&&(0===n.code||1===n.code)?St.REDIRECTING:St.FAILED),Vn(n=>n!==St.REDIRECTING),Ro(1)).subscribe(()=>{t()})}function ak(e){throw e}function lk(e,t,n){return t.parse("/")}const uk={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},ck={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let qe=(()=>{class e{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){if("computed"===this.canceledNavigationResolution)return this.location.getState()?.\u0275routerPageId}get events(){return this.navigationTransitions.events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=I(AC),this.isNgZoneEnabled=!1,this.options=I($l,{optional:!0})||{},this.pendingTasks=I(fD),this.errorHandler=this.options.errorHandler||ak,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||lk,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=I(ik),this.routeReuseStrategy=I(nk),this.titleStrategy=I(Aw),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=I(Vo,{optional:!0})?.flat()??[],this.navigationTransitions=I(Hl),this.urlSerializer=I(os),this.location=I(Gd),this.componentInputBindingEnabled=!!I(xl,{optional:!0}),this.isNgZoneEnabled=I(ye)instanceof ye&&ye.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new Po,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=aw(0,null),this.navigationTransitions.setupNavigations(this).subscribe(n=>{this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId??0},n=>{this.console.warn(`Unhandled Navigation Error: ${n}`)})}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const n=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),ls,n)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(n=>{const r="popstate"===n.type?"popstate":"hashchange";"popstate"===r&&setTimeout(()=>{this.navigateToSyncWithBrowser(n.url,r,n.state)},0)}))}navigateToSyncWithBrowser(n,r,o){const i={replaceUrl:!0},s=o?.navigationId?o:null;if(o){const l={...o};delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(i.state=l)}const a=this.parseUrl(n);this.scheduleNavigation(a,r,s,i)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(dh),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(n,r={}){const{relativeTo:o,queryParams:i,fragment:s,queryParamsHandling:a,preserveFragment:l}=r,u=l?this.currentUrlTree.fragment:s;let d,c=null;switch(a){case"merge":c={...this.currentUrlTree.queryParams,...i};break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=i||null}null!==c&&(c=this.removeEmptyProps(c));try{d=Q0(o?o.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof n[0]||!n[0].startsWith("/"))&&(n=[]),d=this.currentUrlTree.root}return K0(d,n,c,u??null)}navigateByUrl(n,r={skipLocationChange:!1}){const o=Nr(n)?n:this.parseUrl(n),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,ls,null,r)}navigate(n,r={skipLocationChange:!1}){return function dk(e){for(let t=0;t{const i=n[o];return null!=i&&(r[o]=i),r},{})}scheduleNavigation(n,r,o,i,s){if(this.disposed)return Promise.resolve(!1);let a,l,u;s?(a=s.resolve,l=s.reject,u=s.promise):u=new Promise((d,f)=>{a=d,l=f});const c=this.pendingTasks.add();return Nw(this,()=>{Promise.resolve().then(()=>this.pendingTasks.remove(c))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:i,resolve:a,reject:l,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(d=>Promise.reject(d))}setBrowserUrl(n,r){const o=this.urlSerializer.serialize(n);if(this.location.isCurrentPathEqualTo(o)||r.extras.replaceUrl){const s={...r.extras.state,...this.generateNgRouterState(r.id,this.browserPageId)};this.location.replaceState(o,"",s)}else{const i={...r.extras.state,...this.generateNgRouterState(r.id,(this.browserPageId??0)+1)};this.location.go(o,"",i)}}restoreHistory(n,r=!1){if("computed"===this.canceledNavigationResolution){const i=this.currentPageId-(this.browserPageId??this.currentPageId);0!==i?this.location.historyGo(i):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===i&&(this.resetState(n),this.browserUrlTree=n.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(r&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=n.currentRouterState,this.currentUrlTree=n.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,r){return"computed"===this.canceledNavigationResolution?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Ho=(()=>{class e{constructor(n,r,o,i,s,a){this.router=n,this.route=r,this.tabIndexAttribute=o,this.renderer=i,this.el=s,this.locationStrategy=a,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.href=null,this.commands=null,this.onChanges=new Dn;const l=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===l||"area"===l,this.isAnchorElement?this.subscription=n.events.subscribe(u=>{u instanceof Rr&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}set preserveFragment(n){this._preserveFragment=wo(n)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(n){this._skipLocationChange=wo(n)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(n){this._replaceUrl=wo(n)}get replaceUrl(){return this._replaceUrl}setTabIndexIfNotOnNativeEl(n){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",n)}ngOnChanges(n){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(n){null!=n?(this.commands=Array.isArray(n)?n:[n],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(n,r,o,i,s){return!!(null===this.urlTree||this.isAnchorElement&&(0!==n||r||o||i||s||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const n=null===this.href?null:function Jg(e,t,n){return function RM(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?Kg:oc}(t,n)(e)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",n)}applyAttributeValue(n,r){const o=this.renderer,i=this.el.nativeElement;null!==r?o.setAttribute(i,n,r):o.removeAttribute(i,n)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return e.\u0275fac=function(n){return new(n||e)(D(qe),D(or),function qs(e){return function eb(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const r=n.length;let o=0;for(;o{class e{get isActive(){return this._isActive}constructor(n,r,o,i,s){this.router=n,this.element=r,this.renderer=o,this.cdr=i,this.link=s,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new Ee,this.routerEventsSubscription=n.events.subscribe(a=>{a instanceof Rr&&this.update()})}ngAfterContentInit(){F(this.links.changes,F(null)).pipe(Pr()).subscribe(n=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const n=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=Pe(n).pipe(Pr()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update()})}set routerLinkActive(n){const r=Array.isArray(n)?n:n.split(" ");this.classes=r.filter(o=>!!o)}ngOnChanges(n){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||Promise.resolve().then(()=>{const n=this.hasActiveLinks();this._isActive!==n&&(this._isActive=n,this.cdr.markForCheck(),this.classes.forEach(r=>{n?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r)}),n&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(n))})}isLinkActive(n){const r=function fk(e){return!!e.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return o=>!!o.urlTree&&n.isActive(o.urlTree,r)}hasActiveLinks(){const n=this.isLinkActive(this.router);return this.link&&n(this.link)||this.links.some(n)}}return e.\u0275fac=function(n){return new(n||e)(D(qe),D(Et),D(An),D(Wa),D(Ho,8))},e.\u0275dir=$({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(n,r,o){if(1&n&&function uC(e,t,n,r){const o=K();if(o.firstCreatePass){const i=ze();dC(o,new aC(t,n,r),i.index),function O2(e,t){const n=e.contentQueries||(e.contentQueries=[]);t!==(n.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}(o,e),2==(2&n)&&(o.staticContentQueries=!0)}cC(o,_(),n)}(o,Ho,5),2&n){let i;ja(i=Ba())&&(r.links=i)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[Ot]}),e})();class Ow{}let hk=(()=>{class e{constructor(n,r,o,i,s){this.router=n,this.injector=o,this.preloadingStrategy=i,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(Vn(n=>n instanceof Rr),Mo(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,r){const o=[];for(const i of r){i.providers&&!i._injector&&(i._injector=sd(i.providers,n,`Route: ${i.path}`));const s=i._injector??n,a=i._loadedInjector??s;(i.loadChildren&&!i._loadedRoutes&&void 0===i.canLoad||i.loadComponent&&!i._loadedComponent)&&o.push(this.preloadConfig(s,i)),(i.children||i._loadedRoutes)&&o.push(this.processRoutes(a,i.children??i._loadedRoutes))}return Pe(o).pipe(Pr())}preloadConfig(n,r){return this.preloadingStrategy.preload(r,()=>{let o;o=r.loadChildren&&void 0===r.canLoad?this.loader.loadChildren(n,r):F(null);const i=o.pipe(Be(s=>null===s?F(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,this.processRoutes(s.injector??n,s.routes))));return r.loadComponent&&!r._loadedComponent?Pe([i,this.loader.loadComponent(r)]).pipe(Pr()):i})}}return e.\u0275fac=function(n){return new(n||e)(N(qe),N(NC),N(sn),N(Ow),N(gh))},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const mh=new R("");let Pw=(()=>{class e{constructor(n,r,o,i,s={}){this.urlSerializer=n,this.transitions=r,this.viewportScroller=o,this.zone=i,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration=s.scrollPositionRestoration||"disabled",s.anchorScrolling=s.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof nh?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof Rr?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof us&&0===n.code&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof ow&&(n.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(n.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new ow(n,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return e.\u0275fac=function(n){!function Pm(){throw new Error("invalid")}()},e.\u0275prov=O({token:e,factory:e.\u0275fac}),e})();function $n(e,t){return{\u0275kind:e,\u0275providers:t}}function Fw(){const e=I(an);return t=>{const n=e.get(_o);if(t!==n.components[0])return;const r=e.get(qe),o=e.get(kw);1===e.get(yh)&&r.initialNavigation(),e.get(Lw,null,L.Optional)?.setUpPreloading(),e.get(mh,null,L.Optional)?.init(),r.resetRootComponentType(n.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}const kw=new R("",{factory:()=>new Dn}),yh=new R("",{providedIn:"root",factory:()=>1}),Lw=new R("");function yk(e){return $n(0,[{provide:Lw,useExisting:hk},{provide:Ow,useExisting:e}])}const Vw=new R("ROUTER_FORROOT_GUARD"),Ck=[Gd,{provide:os,useClass:Qf},qe,cs,{provide:or,useFactory:function xw(e){return e.routerState.root},deps:[qe]},gh,[]];function Dk(){return new jC("Router",qe)}let Hw=(()=>{class e{constructor(n){}static forRoot(n,r){return{ngModule:e,providers:[Ck,[],{provide:Vo,multi:!0,useValue:n},{provide:Vw,useFactory:bk,deps:[[qe,new Xs,new Qs]]},{provide:$l,useValue:r||{}},r?.useHash?{provide:Xn,useClass:yD}:{provide:Xn,useClass:mD},{provide:mh,useFactory:()=>{const e=I(h3),t=I(ye),n=I($l),r=I(Hl),o=I(os);return n.scrollOffset&&e.setOffset(n.scrollOffset),new Pw(o,r,e,t,n)}},r?.preloadingStrategy?yk(r.preloadingStrategy).\u0275providers:[],{provide:jC,multi:!0,useFactory:Dk},r?.initialNavigation?Mk(r):[],r?.bindToComponentInputs?$n(8,[dw,{provide:xl,useExisting:dw}]).\u0275providers:[],[{provide:$w,useFactory:Fw},{provide:xd,multi:!0,useExisting:$w}]]}}static forChild(n){return{ngModule:e,providers:[{provide:Vo,multi:!0,useValue:n}]}}}return e.\u0275fac=function(n){return new(n||e)(N(Vw,8))},e.\u0275mod=Vt({type:e}),e.\u0275inj=Nt({}),e})();function bk(e){return"guarded"}function Mk(e){return["disabled"===e.initialNavigation?$n(3,[{provide:Md,multi:!0,useFactory:()=>{const t=I(qe);return()=>{t.setUpLocationChangeListener()}}},{provide:yh,useValue:2}]).\u0275providers:[],"enabledBlocking"===e.initialNavigation?$n(2,[{provide:yh,useValue:0},{provide:Md,multi:!0,deps:[an],useFactory:t=>{const n=t.get(YN,Promise.resolve());return()=>n.then(()=>new Promise(r=>{const o=t.get(qe),i=t.get(kw);Nw(o,()=>{r(!0)}),t.get(Hl).afterPreactivation=()=>(r(!0),i.closed?F(void 0):i),o.initialNavigation()}))}}]).\u0275providers:[]]}const $w=new R("");class et{constructor(t,n,r){this.http=t,this.router=n,this.appMessageService=r,this.authenticated=!1,this.credentials={username:"",password:""},this.authority="none",this.httpOptions={headers:new We({"Content-Type":"application/json",Accept:"application/json"})}}handleError(t="operation",n){return r=>(console.error(r),this.log(`Error @ ${t}: ${r.status} ${r.statusText}`),r)}log(t){this.appMessageService.add(`LoginService: ${t}`)}isAuthenticated(){return this.authenticated}getAuthorizationToken(){return`Basic ${window.btoa(this.credentials.username+":"+this.credentials.password)}`}getUsername(){return this.credentials.username}getAuthority(){return this.authority}authenticate(t){this.log(`Authenticating: ${t.username}`),this.credentials=t;const n=new We({"Content-Type":"application/json",Accept:"application/json",Authorization:this.getAuthorizationToken()});return this.http.get(et.REST_URL,{headers:n}).pipe(J(r=>this.authorizationRecieved(r)),he(this.handleError("authenticate")))}logout(){this.authenticated=!1,this.log("Logged out"),this.router.navigateByUrl("/").then(()=>{})}authorizationRecieved(t){if(this.authenticated=!0,t.authorities){let n=t.authorities[0].authority;n=n.substring(n.indexOf("_")+1),this.authority=n}this.log(`Authenticated '${t.name}' as '${this.authority}'`),console.log(`Authenticated as ${JSON.stringify(t)}`)}changePassword(t){this.log("Changing password.");const n=zf(10),r=x0(t,n);let o={};return o.username=this.credentials.username,o.password=r,this.http.post(et.REST_URL,o,this.httpOptions).pipe(J(i=>this.authorizationRecieved(i)),he(this.handleError("changePassword")))}}et.REST_URL=Ir_restServerUrl+"/api/user",et.\u0275fac=function(t){return new(t||et)(N(Sr),N(qe),N(To))},et.\u0275prov=O({token:et,factory:et.\u0275fac,providedIn:"root"});const Ik=["scrollMe"];function Tk(e,t){if(1&e&&(y(0,"li")(1,"div",7)(2,"span",8),E(3),v(),y(4,"span",9),E(5),Li(6,"date"),v(),y(7,"span",10),E(8),v()(),y(9,"span",11),E(10),v()()),2&e){const n=t.$implicit;S(3),rt(n.id),S(2),rt(Vi(6,4,n.dateCreated,"dd-MM-yyyy HH:mm:ss")),S(3),rt(n.author),S(2),rt(n.text)}}function Ak(e,t){if(1&e){const n=Na();y(0,"ul",4,5),P("scroll",function(){return ks(n),Ls(Ai().onScroll())}),On(2,Tk,11,7,"li",6),v()}if(2&e){const n=Ai();S(2),j("ngForOf",n.messages)}}let vh=(()=>{class e{constructor(n,r){this.chatService=n,this.loginService=r,this.disableScrollDown=!1,this.messages=[],this.newMessage=""}getChatMessages(){this.chatService.getChatMessages().subscribe(n=>{this.messages=n,this.disableScrollDown=!1,this.scrollToBottom()})}ngOnInit(){this.loginService.isAuthenticated()&&this.getChatMessages()}sendMessage(){this.chatService.addChatMessage(this.loginService.getUsername(),this.newMessage).subscribe(()=>this.getChatMessages()),this.newMessage=""}ngAfterViewChecked(){this.scrollToBottom()}onScroll(){let n=this.myScrollContainer.nativeElement;this.disableScrollDown=!(this.disableScrollDown&&n.scrollHeight-n.scrollTop===n.clientHeight)}scrollToBottom(){if(!this.disableScrollDown)try{this.myScrollContainer.nativeElement.scrollTop=this.myScrollContainer.nativeElement.scrollHeight}catch{}}}return e.\u0275fac=function(n){return new(n||e)(D(mn),D(et))},e.\u0275cmp=Rt({type:e,selectors:[["app-chat"]],viewQuery:function(n,r){if(1&n&&Cd(Ik,5),2&n){let o;ja(o=Ba())&&(r.myScrollContainer=o.first)}},decls:7,vars:2,consts:[["class","chat",3,"scroll",4,"ngIf"],[1,"input"],["id","message-text","placeholder","hello",3,"ngModel","ngModelChange","keydown.enter"],[3,"click"],[1,"chat",3,"scroll"],["scrollMe",""],[4,"ngFor","ngForOf"],[1,"message-title"],[1,"badge"],[1,"date"],[1,"author"],[1,"text"]],template:function(n,r){1&n&&(On(0,Ak,3,1,"ul",0),y(1,"div",1)(2,"input",2),P("ngModelChange",function(i){return r.newMessage=i})("keydown.enter",function(){return r.sendMessage()}),v(),y(3,"button",3),P("click",function(){return r.sendMessage()}),E(4,"Send"),v(),y(5,"button",3),P("click",function(){return r.getChatMessages()}),E(6,"Reload"),v()()),2&n&&(j("ngIf",r.messages.length),S(2),j("ngModel",r.newMessage))},dependencies:[Er,RD,qt,Ln,pn,zi],styles:[".chat[_ngcontent-%COMP%]{margin:0;list-style-type:none;padding:.1em;max-height:20em;overflow:auto}.chat[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{position:relative;left:0;margin:.1em;padding:0;border-radius:4px;border:solid 1px darkblue}.chat[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover{background-color:#e6e6e688}.message-title[_ngcontent-%COMP%]{display:block;text-align:left;font-size:x-small}.message-title[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline-block;color:#fff}.badge[_ngcontent-%COMP%]{padding:.3em .7em;background-color:#405061;border-radius:2px 0 0}.date[_ngcontent-%COMP%]{padding:.3em .7em;background-color:#605061}.author[_ngcontent-%COMP%]{padding:.3em .7em;background-color:#a0b0b1;border-radius:0 0 2px}.chat[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{align-self:center;margin:0 .1em .1em}.input[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{left:0;padding:0}.input[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:inline-block;padding-right:.2em}"]}),e})();const jw=function(){return{exact:!0}};let Nk=(()=>{class e{constructor(n){this.loginService=n,this.title="Familie TDS",this.chatLoaded=!1,this.chatHidden=!0,this.linksHidden=!0,this.profileHidden=!0,this.pos1=0,this.pos2=0,this.pos3=0,this.pos4=0,this.target=null}isAuthenticated(){return this.loginService.isAuthenticated()}username(){return this.loginService.getUsername()}logout(){localStorage.setItem("username",""),localStorage.setItem("password",""),this.loginService.logout()}toggleLinks(){this.linksHidden=!this.linksHidden,this.profileHidden=!0}isLinksHidden(){return this.linksHidden}toggleProfile(){this.profileHidden=!this.profileHidden,this.linksHidden=!0}isProfileHidden(){return this.profileHidden}toggleChatHidden(){this.chatHidden=!this.chatHidden,!this.chatHidden&&!this.chatLoaded&&(this.chatComponent.getChatMessages(),this.chatLoaded=!0)}isChatHidden(){return this.chatHidden}startMouseDragging(n){0===n.button&&(n.preventDefault(),this.pos3=n.clientX,this.pos4=n.clientY,document.onmouseup=()=>this.endMouseDrag(),document.onmousemove=r=>this.mouseDragElement(r),this.target=document.getElementById("chatwindow"))}mouseDragElement(n){n.preventDefault(),this.pos1=this.pos3-n.clientX,this.pos2=this.pos4-n.clientY,this.pos3=n.clientX,this.pos4=n.clientY;let r=this.target.offsetTop-this.pos2;r<0&&(r=0),this.target.style.top=r+"px";let o=this.target.offsetLeft-this.pos1;o<0&&(o=0),this.target.style.left=o+"px"}endMouseDrag(){document.onmouseup=null,document.onmousemove=null,this.target=null}startTouchDragging(n){n.preventDefault(),this.pos3=n.targetTouches[0].clientX,this.pos4=n.targetTouches[0].clientY,document.ontouchend=()=>this.endTouchDrag(),document.ontouchmove=r=>this.touchDragElement(r),this.target=document.getElementById("chatwindow")}touchDragElement(n){n.preventDefault(),this.pos1=this.pos3-n.targetTouches[0].clientX,this.pos2=this.pos4-n.targetTouches[0].clientY,this.pos3=n.targetTouches[0].clientX,this.pos4=n.targetTouches[0].clientY;let r=this.target.offsetTop-this.pos2;r<0&&(r=0),this.target.style.top=r+"px";let o=this.target.offsetLeft-this.pos1;o<0&&(o=0),this.target.style.left=o+"px"}endTouchDrag(){document.ontouchend=null,document.ontouchmove=null,this.target=null}toggleTheme(){const n="theme-dark",r=document.querySelector(":root");if(!r)throw new Error("No root!?");r.classList.toggle(n),r.classList.contains(n)?localStorage.setItem("theme",n):localStorage.setItem("theme","theme-light")}setTheme(n){const r=document.querySelector(":root");if(!r)throw new Error("No root!?");r.classList.add(n),localStorage.setItem("theme",n)}detectTheme(){const n=localStorage.getItem("theme");"theme-dark"!==n&&"theme-light"!==n?window.matchMedia("(prefers-color-scheme: dark)").matches?this.setTheme("theme-dark"):(window.matchMedia("(prefers-color-scheme: light)"),this.setTheme("theme-light")):this.setTheme(n)}ngOnInit(){this.detectTheme()}}return e.\u0275fac=function(n){return new(n||e)(D(et))},e.\u0275cmp=Rt({type:e,selectors:[["app-root"]],viewQuery:function(n,r){if(1&n&&Cd(vh,5),2&n){let o;ja(o=Ba())&&(r.chatComponent=o.first)}},decls:45,vars:12,consts:[[3,"hidden"],["id","toggle-links",1,"big",3,"click"],["id","toggle-profile",1,"big","float-right",3,"click"],["id","links",3,"hidden"],["routerLinkActive","active-link","routerLink","/",3,"routerLinkActiveOptions"],["routerLinkActive","active-link","routerLink","/checklists"],["routerLinkActive","active-link","routerLink","/contacts"],["routerLinkActive","active-link","routerLink","/todo"],["id","profile",1,"float-right",3,"hidden"],[3,"click"],["title","Dark theme on/off",3,"click"],["routerLinkActive","active-link","routerLink","/profile"],["id","logout",3,"click"],[1,"float-right"],["routerLinkActive","active-link","routerLink","/login"],["id","tools",3,"hidden"],["id","toolbar"],["id","chatwindow",3,"hidden"],["id","chattitlebar",3,"mousedown","touchstart"],[1,"close-button",3,"click"],["id","chatcontent"]],template:function(n,r){1&n&&(y(0,"nav")(1,"span",0)(2,"a",1),P("click",function(){return r.toggleLinks()}),E(3,"\u2261"),v(),y(4,"a",2),P("click",function(){return r.toggleProfile()}),E(5),v(),y(6,"div")(7,"div",3)(8,"a",4),E(9,"Home"),v(),y(10,"a",5),E(11,"Checklists"),v(),y(12,"a",6),E(13,"Contacts"),v(),y(14,"a",7),E(15,"Todo"),v()(),y(16,"div",8)(17,"button",9),P("click",function(){return r.toggleChatHidden()}),E(18,"Toggle Chat"),v(),y(19,"button",10),P("click",function(){return r.toggleTheme()}),E(20,"\u2600 Theme"),v(),y(21,"a",11),E(22,"Profile"),v(),y(23,"a",12),P("click",function(){return r.logout()}),E(24,"Logout"),v()()()(),y(25,"span",0)(26,"h1",13),E(27),v(),y(28,"a",4),E(29,"Home"),v(),y(30,"a",14),E(31,"Login"),v()()(),y(32,"div",15)(33,"div",16)(34,"button",9),P("click",function(){return r.toggleChatHidden()}),E(35,"Toggle Chat"),v()(),y(36,"div",17)(37,"div",18),P("mousedown",function(i){return r.startMouseDragging(i)})("touchstart",function(i){return r.startTouchDragging(i)}),E(38," Chat"),y(39,"button",19),P("click",function(){return r.toggleChatHidden()}),E(40,"\u2716"),v()(),y(41,"div",20),ue(42,"app-chat"),v()()(),y(43,"main"),ue(44,"router-outlet"),v()),2&n&&(S(1),j("hidden",!r.isAuthenticated()),S(4),rt(r.username()),S(2),j("hidden",r.isLinksHidden()),S(1),j("routerLinkActiveOptions",ld(10,jw)),S(8),j("hidden",r.isProfileHidden()),S(9),j("hidden",r.isAuthenticated()),S(2),rt(r.title),S(1),j("routerLinkActiveOptions",ld(11,jw)),S(4),j("hidden",!r.isAuthenticated()),S(4),j("hidden",r.isChatHidden()))},dependencies:[uh,Ho,Rw,vh],styles:[".big[_ngcontent-%COMP%]{font-size:x-large}.float-right[_ngcontent-%COMP%]{margin:0;float:right}nav[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin:0;float:right}nav[_ngcontent-%COMP%]{display:block;background:#93c6f948 linear-gradient(80deg,rgb(132,168,205) 0%,rgb(167,205,243) 30%,rgba(0,0,0,0) 100%);border-bottom:1px solid #336699;padding:.5em}nav[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:.2rem .3rem;text-decoration:none;display:inline-block;color:#3d3d3d;border-radius:2px}nav[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#fff;background-color:#42545c;-webkit-text-decoration:underline #93c6f9;text-decoration:underline #93c6f9}.active-link[_ngcontent-%COMP%]{background-color:#00000048}#logout[_ngcontent-%COMP%]{color:#ef4040;cursor:pointer}#logout[_ngcontent-%COMP%]:hover{background-color:#604040}#toolbar[_ngcontent-%COMP%]{margin-top:-.8em;margin-bottom:-.8em;margin-left:.2em}#chatwindow[_ngcontent-%COMP%]{border:1px solid black;z-index:9990;background:#f0f0f080;border-radius:2px;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);box-shadow:3px 3px 3px #0006;position:fixed;top:5em;left:5em}#chattitlebar[_ngcontent-%COMP%]{border-bottom:1px solid black;padding:2px;background:#d0d0d080;cursor:grab}#chatcontent[_ngcontent-%COMP%]{padding:2px}.close-button[_ngcontent-%COMP%]{padding:0 4px;margin:0;float:right}"]}),e})();class Xt{constructor(t,n){this.http=t,this.appMessageService=n,this.httpOptions={headers:new We({"Content-Type":"application/json",Accept:"application/json"})}}handleError(t="operation",n){return r=>(console.error(r),this.log(`Error @ ${t}: ${r.status} ${r.statusText}`),F(n))}log(t){this.appMessageService.add(`TodoService: ${t}`)}getTodos(){return this.http.get(Xt.REST_URL,this.httpOptions).pipe(J(t=>this.log(`fetched ${t.length} todos`)),he(this.handleError("getTodos",[])))}addTodo(t){return this.http.post(Xt.REST_URL,{text:t},this.httpOptions).pipe(J(r=>this.log(`added todo w/ id=${r.id}`)),he(this.handleError("addTodo")))}deleteTodo(t){return this.http.delete(`${Xt.REST_URL}/${t}`,this.httpOptions).pipe(J(r=>this.log(`deleted todo id=${t}`)),he(this.handleError("deleteTodo")))}}function Rk(e,t){if(1&e){const n=Na();y(0,"li")(1,"div",6)(2,"span",7),E(3),v(),y(4,"span",8),E(5),Li(6,"date"),v(),y(7,"button",9),P("click",function(){const i=ks(n).$implicit;return Ls(Ai().delete(i))}),E(8,"x"),v()(),y(9,"span",10),E(10),v()()}if(2&e){const n=t.$implicit;S(3),rt(n.id),S(2),rt(Vi(6,3,n.dateCreated,"dd-MM-yyyy HH:mm:ss")),S(5),rt(n.text)}}Xt.REST_URL=Ir_restServerUrl+"/api/todos",Xt.\u0275fac=function(t){return new(t||Xt)(N(Sr),N(To))},Xt.\u0275prov=O({token:Xt,factory:Xt.\u0275fac,providedIn:"root"});let Ok=(()=>{class e{constructor(n){this.todoService=n,this.todos=[],this.newTodo=""}getTodos(){this.todoService.getTodos().subscribe(n=>this.todos=n)}ngOnInit(){this.getTodos()}sendTodo(){this.todoService.addTodo(this.newTodo).subscribe(()=>this.getTodos()),this.newTodo=""}delete(n){this.todoService.deleteTodo(n.id).subscribe(()=>this.todos=this.todos.filter(r=>r!==n))}}return e.\u0275fac=function(n){return new(n||e)(D(Xt))},e.\u0275cmp=Rt({type:e,selectors:[["app-todo"]],decls:13,vars:2,consts:[[1,"element-list"],[4,"ngFor","ngForOf"],[1,"input"],["for","input-text"],["id","input-text","placeholder","text",3,"ngModel","ngModelChange","keydown.enter"],[3,"click"],[1,"element-title"],[1,"badge"],[1,"date"],["type","button","title","Delete todo",1,"delete",3,"click"],[1,"text"]],template:function(n,r){1&n&&(y(0,"h2"),E(1,"Todos"),v(),y(2,"ol",0),On(3,Rk,11,6,"li",1),v(),y(4,"h2"),E(5,"New Todo:"),v(),y(6,"div",2)(7,"div")(8,"label",3),E(9,"Text:"),v(),y(10,"input",4),P("ngModelChange",function(i){return r.newTodo=i})("keydown.enter",function(){return r.sendTodo()}),v(),y(11,"button",5),P("click",function(){return r.sendTodo()}),E(12,"Send"),v()()()),2&n&&(S(3),j("ngForOf",r.todos),S(7),j("ngModel",r.newTodo))},dependencies:[Er,qt,Ln,pn,zi],styles:[".element-list[_ngcontent-%COMP%]{margin-left:2em;padding:0}.element-list[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{position:relative;left:0;margin-top:.5em;padding:0;border-radius:4px;border:solid 1px #808080}.element-list[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]:hover{background-color:#e6e6e680}.element-title[_ngcontent-%COMP%]{display:block;text-align:left;font-size:x-small}.element-title[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline-block;color:#fff}.element-title[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:small;padding:1px 6px;margin:0;border-radius:2px;float:right;background-color:#ff000080}.badge[_ngcontent-%COMP%]{padding:.3em .7em;background-color:#405061;border-radius:2px 0 0}.date[_ngcontent-%COMP%]{padding:.3em .7em;background-color:#605061;border-radius:0 0 2px}.text[_ngcontent-%COMP%]{align-self:center;margin:0 .1em .1em}.input[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{left:0;margin:0 0 .2em;padding:0}.input[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:inline-block;width:4em;text-align:right;padding-right:.2em}"]}),e})();class Cn{constructor(t,n){this.http=t,this.appMessageService=n,this.httpOptions={headers:new We({"Content-Type":"application/json",Accept:"application/json"})}}handleError(t="operation",n){return r=>(console.error(r),this.log(`Error @ ${t}: ${r.status} ${r.statusText}`),F(n))}log(t){this.appMessageService.add(`NewsService: ${t}`)}getNewsPosts(){return this.http.get(Cn.REST_URL,this.httpOptions).pipe(J(t=>this.log(`fetched ${t.length} news posts`)),he(this.handleError("getNews",[])))}addNewsPost(t,n){return this.http.post(Cn.REST_URL,{author:t,text:n},this.httpOptions).pipe(J(o=>this.log(`added message w/ id=${o.id}`)),he(this.handleError("addNewsPost")))}}function Pk(e,t){if(1&e&&(y(0,"p"),E(1),v()),2&e){const n=t.$implicit;S(1),rt(n.text)}}Cn.REST_URL=Ir_restServerUrl+"/api/news",Cn.\u0275fac=function(t){return new(t||Cn)(N(Sr),N(To))},Cn.\u0275prov=O({token:Cn,factory:Cn.\u0275fac,providedIn:"root"});let xk=(()=>{class e{constructor(n,r){this.loginService=n,this.newsService=r,this.messages=[]}getNews(){this.loginService.isAuthenticated()&&this.newsService.getNewsPosts().subscribe(n=>this.messages=n)}ngOnInit(){this.getNews()}isAuthenticated(){return this.loginService.isAuthenticated()}username(){return this.loginService.getUsername()}}return e.\u0275fac=function(n){return new(n||e)(D(et),D(Cn))},e.\u0275cmp=Rt({type:e,selectors:[["app-home"]],decls:9,vars:4,consts:[[3,"hidden"],[1,"context"],[4,"ngFor","ngForOf"]],template:function(n,r){1&n&&(y(0,"span",0)(1,"p"),E(2),v(),y(3,"h3"),E(4,"News"),v(),y(5,"div",1),On(6,Pk,2,1,"p",2),v()(),y(7,"p",0),E(8,"Welcome to our family site! Please login."),v()),2&n&&(j("hidden",!r.isAuthenticated()),S(2),Ke("Welcome, ",r.username(),"!"),S(4),j("ngForOf",r.messages),S(1),j("hidden",r.isAuthenticated()))},dependencies:[Er],styles:[".context[_ngcontent-%COMP%]{margin-left:1em}"]}),e})(),Fk=(()=>{class e{constructor(n,r){this.loginService=n,this.router=r,this.error=!1,this.rememberme=!1,this.credentials={username:"",password:""},this.checkPreviousLogin()}checkPreviousLogin(){this.credentials.username=localStorage.getItem("username"),this.credentials.password=localStorage.getItem("password"),this.credentials.username&&this.credentials.password&&this.login()}login(){return this.loginService.authenticate(this.credentials).subscribe({next:()=>{this.rememberme&&(localStorage.setItem("username",this.credentials.username),localStorage.setItem("password",this.credentials.password)),this.router.navigateByUrl("/").then(n=>{})},error:n=>{console.log("Login failed",n),this.error=!0}}),!1}}return e.\u0275fac=function(n){return new(n||e)(D(et),D(qe))},e.\u0275cmp=Rt({type:e,selectors:[["app-login"]],decls:19,vars:4,consts:[[1,"alert",3,"hidden"],["role","form",3,"submit"],[1,"form-group"],["for","username"],["type","text","id","username","name","username","placeholder","username",1,"form-control",3,"ngModel","ngModelChange"],["for","password"],["type","password","id","password","name","password","placeholder","password",1,"form-control",3,"ngModel","ngModelChange"],["for","rememberme"],["type","checkbox","id","rememberme","name","rememberme",1,"form-control",3,"ngModel","ngModelChange"],["type","submit",1,"btn","btn-primary"]],template:function(n,r){1&n&&(y(0,"h2"),E(1,"Login form"),v(),y(2,"p",0),E(3," There was a problem logging in. Please try again.\n"),v(),y(4,"form",1),P("submit",function(){return r.login()}),y(5,"div",2)(6,"label",3),E(7,"Username:"),v(),y(8,"input",4),P("ngModelChange",function(i){return r.credentials.username=i}),v()(),y(9,"div",2)(10,"label",5),E(11,"Password:"),v(),y(12,"input",6),P("ngModelChange",function(i){return r.credentials.password=i}),v()(),y(13,"div",2)(14,"label",7),E(15,"Remember me:"),v(),y(16,"input",8),P("ngModelChange",function(i){return r.rememberme=i}),v()(),y(17,"button",9),E(18,"Login"),v()()),2&n&&(S(2),j("hidden",!r.error),S(6),j("ngModel",r.credentials.username),S(4),j("ngModel",r.credentials.password),S(4),j("ngModel",r.rememberme))},dependencies:[q_,qt,vf,Ln,P_,pn,Cl],styles:[".form-group[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:inline-block;width:8em;padding-right:.2em}.form-group[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{margin:0 0 .2em}.alert[_ngcontent-%COMP%]{color:red}button[_ngcontent-%COMP%]{border:revert}"]}),e})();const Or=(e,t)=>{const n=I(et),r=I(qe);return!!n.isAuthenticated()||r.parseUrl("/login")};class mt{constructor(t,n){this.http=t,this.appMessageService=n,this.httpOptions={headers:new We({"Content-Type":"application/json",Accept:"application/json"})}}handleError(t="operation",n){return r=>(console.error(r),this.log(`Error @ ${t}: ${r.status} ${r.statusText}`),F(n))}log(t){this.appMessageService.add(`TodoService: ${t}`)}getContacts(){return this.http.get(mt.REST_URL,this.httpOptions).pipe(J(t=>this.log(`fetched ${t.length} contacts`)),he(this.handleError("getContacts",[])))}getContact(t){return this.http.get(`${mt.REST_URL}/${t}`,this.httpOptions).pipe(J(n=>this.log(`fetched Contact ${n.id}`)),he(this.handleError("getContact",{})))}addContact(t){return this.http.post(mt.REST_URL,t,this.httpOptions).pipe(J(n=>this.log(`added contact w/ id=${n.id}`)),he(this.handleError("addContact")))}saveContact(t){return this.http.post(mt.REST_URL,t,this.httpOptions).pipe(J(n=>this.log(`added todo w/ id=${n.id}`)),he(this.handleError("addContact")))}deleteContact(t){return this.http.delete(`${mt.REST_URL}/${t}`,this.httpOptions).pipe(J(r=>this.log(`deleted contact id=${t}`)),he(this.handleError("deleteContact")))}}mt.REST_URL=Ir_restServerUrl+"/api/contacts",mt.\u0275fac=function(t){return new(t||mt)(N(Sr),N(To))},mt.\u0275prov=O({token:mt,factory:mt.\u0275fac,providedIn:"root"});const kk=function(e){return["/contact",e]};function Lk(e,t){if(1&e&&(y(0,"li")(1,"div",18)(2,"span")(3,"a",19),E(4),v()()(),y(5,"span",20),E(6),ue(7,"br"),E(8),ue(9,"br"),E(10),ue(11,"br"),E(12,"Website: "),y(13,"a",21),E(14),v(),ue(15,"br"),E(16),v()()),2&e){const n=t.$implicit;S(3),j("routerLink",ud(9,kk,n.id)),S(1),Fa("",n.firstName," ",n.lastName,""),S(2),Ke(" Telephone: ",n.telephone," "),S(2),Ke("E-mail: ",n.email," "),S(2),Ke("Address: ",n.address," "),S(3),Ra("href","https://",n.website,"",oc),S(1),rt(n.website),S(2),Ke("Description: ",n.description,"")}}let Vk=(()=>{class e{constructor(n){this.contactsService=n,this.contacts=[],this.newContact={}}getContacts(){this.contactsService.getContacts().subscribe(n=>this.contacts=n)}ngOnInit(){this.getContacts()}sendContact(){this.contactsService.addContact(this.newContact).subscribe(()=>this.getContacts()),this.newContact={}}}return e.\u0275fac=function(n){return new(n||e)(D(mt))},e.\u0275cmp=Rt({type:e,selectors:[["app-contacts"]],decls:38,vars:8,consts:[[1,"element-list"],[4,"ngFor","ngForOf"],[1,"input"],["for","input-firstName"],["id","input-firstName","placeholder","firstname",3,"ngModel","ngModelChange"],["for","input-lastName"],["id","input-lastName","placeholder","lastname",3,"ngModel","ngModelChange"],["for","input-telephone"],["id","input-telephone","placeholder","telephone",3,"ngModel","ngModelChange"],["for","input-email"],["id","input-email","placeholder","email",3,"ngModel","ngModelChange"],["for","input-website"],["id","input-website","placeholder","website",3,"ngModel","ngModelChange"],["for","input-address"],["id","input-address","placeholder","address",3,"ngModel","ngModelChange"],["for","input-description"],["id","input-description","placeholder","description",3,"ngModel","ngModelChange"],[3,"click"],[1,"element-title"],[3,"routerLink"],[1,"text"],["target","_blank",3,"href"]],template:function(n,r){1&n&&(y(0,"h2"),E(1,"Contacts:"),v(),y(2,"ol",0),On(3,Lk,17,11,"li",1),v(),y(4,"h2"),E(5,"New Contact:"),v(),y(6,"div",2)(7,"div")(8,"label",3),E(9,"Firstname:"),v(),y(10,"input",4),P("ngModelChange",function(i){return r.newContact.firstName=i}),v(),ue(11,"br"),y(12,"label",5),E(13,"Lastname:"),v(),y(14,"input",6),P("ngModelChange",function(i){return r.newContact.lastName=i}),v(),ue(15,"br"),y(16,"label",7),E(17,"Telephone:"),v(),y(18,"input",8),P("ngModelChange",function(i){return r.newContact.telephone=i}),v(),ue(19,"br"),y(20,"label",9),E(21,"Email:"),v(),y(22,"input",10),P("ngModelChange",function(i){return r.newContact.email=i}),v(),ue(23,"br"),y(24,"label",11),E(25,"Website:"),v(),y(26,"input",12),P("ngModelChange",function(i){return r.newContact.website=i}),v(),ue(27,"br"),y(28,"label",13),E(29,"Address:"),v(),y(30,"input",14),P("ngModelChange",function(i){return r.newContact.address=i}),v(),ue(31,"br"),y(32,"label",15),E(33,"Description:"),v(),y(34,"input",16),P("ngModelChange",function(i){return r.newContact.description=i}),v(),ue(35,"br"),y(36,"button",17),P("click",function(){return r.sendContact()}),E(37,"Send"),v()()()),2&n&&(S(3),j("ngForOf",r.contacts),S(7),j("ngModel",r.newContact.firstName),S(4),j("ngModel",r.newContact.lastName),S(4),j("ngModel",r.newContact.telephone),S(4),j("ngModel",r.newContact.email),S(4),j("ngModel",r.newContact.website),S(4),j("ngModel",r.newContact.address),S(4),j("ngModel",r.newContact.description))},dependencies:[Er,qt,Ln,pn,Ho],styles:[".element-list[_ngcontent-%COMP%]{margin-left:2em;padding:0}.element-list[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{position:relative;left:0;margin-top:.5em;padding:.1em;border-radius:4px;border:solid 1px #808080}.element-list[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]:hover{background-color:#e6e6e680}"]}),e})();class yt{constructor(t,n){this.http=t,this.appMessageService=n,this.httpOptions={headers:new We({"Content-Type":"application/json",Accept:"application/json"})}}handleError(t="operation",n){return r=>(console.error(r),this.log(`Error @ ${t}: ${r.status} ${r.statusText}`),F(n))}log(t){this.appMessageService.add(`ChecklistService: ${t}`)}getChecklists(){return this.http.get(yt.REST_URL,this.httpOptions).pipe(J(t=>this.log(`fetched ${t.length} checklists`)),he(this.handleError("getChecklists",[])))}getChecklist(t){return this.http.get(`${yt.REST_URL}/${t}`,this.httpOptions).pipe(J(n=>this.log(`fetched checklist ${n.id}`)),he(this.handleError("getChecklist",{})))}addChecklist(t){return this.http.post(yt.REST_URL,{name:t},this.httpOptions).pipe(J(r=>this.log(`added todo w/ id=${r.id}`)),he(this.handleError("addChecklist")))}saveChecklist(t){return this.http.post(yt.REST_URL,t,this.httpOptions).pipe(J(n=>this.log(`added todo w/ id=${n.id}`)),he(this.handleError("addChecklist")))}deleteChecklist(t){return this.http.delete(`${yt.REST_URL}/${t}`,this.httpOptions).pipe(J(r=>this.log(`deleted checklist id=${t}`)),he(this.handleError("deleteChecklist")))}}function Hk(e,t){if(1&e&&(y(0,"li"),E(1),v()),2&e){const n=t.$implicit;S(1),Ke(" ",n," ")}}yt.REST_URL=Ir_restServerUrl+"/api/checklists",yt.\u0275fac=function(t){return new(t||yt)(N(Sr),N(To))},yt.\u0275prov=O({token:yt,factory:yt.\u0275fac,providedIn:"root"});const $k=function(e){return["/checklist",e]};function jk(e,t){if(1&e&&(y(0,"li")(1,"span",6)(2,"a",7),E(3),v(),y(4,"ul",8),On(5,Hk,2,1,"li",1),v()()()),2&e){const n=t.$implicit;S(2),j("routerLink",ud(3,$k,n.id)),S(1),rt(n.name),S(2),j("ngForOf",n.checks)}}let Bk=(()=>{class e{constructor(n){this.checklistService=n,this.checklists=[],this.newChecklist=""}getChecklists(){this.checklistService.getChecklists().subscribe(n=>this.checklists=n)}ngOnInit(){this.getChecklists()}sendChecklist(){""!==this.newChecklist&&(this.checklistService.addChecklist(this.newChecklist).subscribe(()=>this.getChecklists()),this.newChecklist="")}}return e.\u0275fac=function(n){return new(n||e)(D(yt))},e.\u0275cmp=Rt({type:e,selectors:[["app-checklists"]],decls:13,vars:2,consts:[[1,"element-list"],[4,"ngFor","ngForOf"],[1,"input"],["for","input-name"],["id","input-name","placeholder","myChecklist",3,"ngModel","ngModelChange","keydown.enter"],[3,"click"],[1,"text"],[3,"routerLink"],[1,"item-list"]],template:function(n,r){1&n&&(y(0,"h2"),E(1,"Checklists"),v(),y(2,"ol",0),On(3,jk,6,5,"li",1),v(),y(4,"h2"),E(5,"New Checklist:"),v(),y(6,"div",2)(7,"div")(8,"label",3),E(9,"name:"),v(),y(10,"input",4),P("ngModelChange",function(i){return r.newChecklist=i})("keydown.enter",function(){return r.sendChecklist()}),v(),y(11,"button",5),P("click",function(){return r.sendChecklist()}),E(12,"Send"),v()()()),2&n&&(S(3),j("ngForOf",r.checklists),S(7),j("ngModel",r.newChecklist))},dependencies:[Er,qt,Ln,pn,Ho],styles:[".element-list[_ngcontent-%COMP%]{margin-left:2em;padding:0}.element-list[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{position:relative;left:0;margin-top:.5em;padding:.1em;border-radius:4px;border:solid 1px #808080}.element-list[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]:hover{background-color:#e6e6e680}"]}),e})();function Uk(e,t){if(1&e){const n=Na();y(0,"li"),E(1),y(2,"button",8),P("click",function(){const i=ks(n).index;return Ls(Ai().removeItem(i))}),E(3,"x"),v()()}if(2&e){const n=t.$implicit;S(1),Ke("",n," ")}}const zk=[{path:"",component:xk,pathMatch:"full"},{path:"login",component:Fk},{path:"profile",component:(()=>{class e{constructor(n){this.loginService=n,this.newPassword1="",this.newPassword2="",this.message=""}username(){return this.loginService.getUsername()}saveProfile(){this.newPassword1==this.newPassword2?this.loginService.changePassword(this.newPassword1).subscribe({next:()=>{this.message="Password changed"},error:n=>{this.message="Failed to change password"}}):this.message="Passwords do not match!"}toggleTheme(){const n="theme-dark",r=document.querySelector(":root");if(!r)throw new Error("No root!?");r.classList.toggle(n),r.classList.contains(n)?localStorage.setItem("theme",n):localStorage.setItem("theme","theme-light")}}return e.\u0275fac=function(n){return new(n||e)(D(et))},e.\u0275cmp=Rt({type:e,selectors:[["app-profile"]],decls:20,vars:4,consts:[["title","Dark theme on/off",3,"click"],[1,"input"],["for","input-newPassword1"],["id","input-newPassword1","placeholder","new password",3,"ngModel","ngModelChange"],["for","input-newPassword2"],["id","input-newPassword2","placeholder","new password",3,"ngModel","ngModelChange"],[3,"click"]],template:function(n,r){1&n&&(y(0,"h1"),E(1),v(),y(2,"button",0),P("click",function(){return r.toggleTheme()}),E(3,"\u2600 Theme"),v(),y(4,"h2"),E(5,"Change password:"),v(),y(6,"div",1)(7,"div")(8,"label",2),E(9,"New password:"),v(),y(10,"input",3),P("ngModelChange",function(i){return r.newPassword1=i}),v(),ue(11,"br"),y(12,"label",4),E(13,"Repeat new password:"),v(),y(14,"input",5),P("ngModelChange",function(i){return r.newPassword2=i}),v(),ue(15,"br"),y(16,"button",6),P("click",function(){return r.saveProfile()}),E(17,"Save"),v(),y(18,"span"),E(19),v()()()),2&n&&(S(1),Ke("Profile of: ",r.username(),""),S(9),j("ngModel",r.newPassword1),S(4),j("ngModel",r.newPassword2),S(5),rt(r.message))},dependencies:[qt,Ln,pn]}),e})(),canActivate:[Or]},{path:"chat",component:vh,canActivate:[Or]},{path:"todo",component:Ok,canActivate:[Or]},{path:"contacts",component:Vk,canActivate:[Or]},{path:"contact/:id",component:(()=>{class e{constructor(n,r){this.contactsService=n,this.router=r,this.route=I(or),this.contactId=-1,this.contact={},this.contactId=Number(this.route.snapshot.params.id)}getChecklist(){this.contactsService.getContact(this.contactId).subscribe(n=>this.contact=n)}ngOnInit(){this.getChecklist()}saveContact(){this.contactsService.saveContact(this.contact).subscribe()}deleteContact(){this.contactsService.deleteContact(this.contactId).subscribe(),this.router.navigateByUrl("/contacts").then(n=>{})}}return e.\u0275fac=function(n){return new(n||e)(D(mt),D(qe))},e.\u0275cmp=Rt({type:e,selectors:[["app-edit-contact"]],decls:43,vars:14,consts:[["type","button","title","Delete contact",1,"delete",3,"click"],[1,"input"],["for","input-firstName"],["id","input-firstName","placeholder","firstname",3,"ngModel","ngModelChange"],["for","input-lastName"],["id","input-lastName","placeholder","lastname",3,"ngModel","ngModelChange"],["for","input-telephone"],["id","input-telephone","placeholder","telephone",3,"ngModel","ngModelChange"],["for","input-email"],["id","input-email","placeholder","email",3,"ngModel","ngModelChange"],["for","input-website"],["id","input-website","placeholder","website",3,"ngModel","ngModelChange"],["for","input-address"],["id","input-address","placeholder","address",3,"ngModel","ngModelChange"],["for","input-description"],["id","input-description","placeholder","description",3,"ngModel","ngModelChange"],[3,"click"]],template:function(n,r){1&n&&(y(0,"h2"),E(1),v(),y(2,"p"),E(3),Li(4,"date"),y(5,"button",0),P("click",function(){return r.deleteContact()}),E(6,"Delete contact"),v(),ue(7,"br"),E(8),v(),ue(9,"p"),y(10,"h3"),E(11,"Details:"),v(),y(12,"div",1)(13,"label",2),E(14,"Firstname:"),v(),y(15,"input",3),P("ngModelChange",function(i){return r.contact.firstName=i}),v(),ue(16,"br"),y(17,"label",4),E(18,"Lastname:"),v(),y(19,"input",5),P("ngModelChange",function(i){return r.contact.lastName=i}),v(),ue(20,"br"),y(21,"label",6),E(22,"Telephone:"),v(),y(23,"input",7),P("ngModelChange",function(i){return r.contact.telephone=i}),v(),ue(24,"br"),y(25,"label",8),E(26,"Email:"),v(),y(27,"input",9),P("ngModelChange",function(i){return r.contact.email=i}),v(),ue(28,"br"),y(29,"label",10),E(30,"Website:"),v(),y(31,"input",11),P("ngModelChange",function(i){return r.contact.website=i}),v(),ue(32,"br"),y(33,"label",12),E(34,"Address:"),v(),y(35,"input",13),P("ngModelChange",function(i){return r.contact.address=i}),v(),ue(36,"br"),y(37,"label",14),E(38,"Description:"),v(),y(39,"input",15),P("ngModelChange",function(i){return r.contact.description=i}),v(),ue(40,"br"),y(41,"button",16),P("click",function(){return r.saveContact()}),E(42,"Save"),v()()),2&n&&(S(1),Fa("Editing contact: ",r.contact.firstName," ",r.contact.lastName,""),S(2),Ke("Created on: ",Vi(4,11,r.contact.dateCreated,"dd-MM-yyyy HH:mm:ss")," "),S(5),Ke("Id: ",r.contact.id,"\n"),S(7),j("ngModel",r.contact.firstName),S(4),j("ngModel",r.contact.lastName),S(4),j("ngModel",r.contact.telephone),S(4),j("ngModel",r.contact.email),S(4),j("ngModel",r.contact.website),S(4),j("ngModel",r.contact.address),S(4),j("ngModel",r.contact.description))},dependencies:[qt,Ln,pn,zi],styles:[".delete[_ngcontent-%COMP%]{background-color:#ff000080}"]}),e})(),canActivate:[Or]},{path:"checklists",component:Bk,canActivate:[Or]},{path:"checklist/:id",component:(()=>{class e{constructor(n,r){this.checklistService=n,this.router=r,this.route=I(or),this.checklistId=-1,this.checklist={},this.newItem="",this.checklistId=Number(this.route.snapshot.params.id)}getChecklist(){this.checklistService.getChecklist(this.checklistId).subscribe(n=>this.checklist=n)}ngOnInit(){this.getChecklist()}addItem(){""!==this.newItem&&(this.checklist.checks.push(this.newItem),this.newItem="",this.saveCheckList())}removeItem(n){(this.checklist.checks[n]||""===this.checklist.checks[n])&&(this.checklist.checks.splice(n,1),this.saveCheckList())}saveCheckList(){this.checklistService.saveChecklist(this.checklist).subscribe()}deleteChecklist(){this.checklistService.deleteChecklist(this.checklistId).subscribe(),this.router.navigateByUrl("/checklists").then(n=>{})}}return e.\u0275fac=function(n){return new(n||e)(D(yt),D(qe))},e.\u0275cmp=Rt({type:e,selectors:[["app-edit-checklist"]],decls:31,vars:9,consts:[["type","button","title","Delete checklist",1,"delete",3,"click"],[4,"ngFor","ngForOf"],[1,"input"],["for","input-item"],["id","input-item","placeholder","Remember x",3,"ngModel","ngModelChange","keydown.enter"],[3,"click"],["for","input-checklist-name"],["id","input-checklist-name","placeholder","myChecklist",3,"ngModel","ngModelChange","keydown.enter"],["type","button","title","Delete item",1,"delete",3,"click"]],template:function(n,r){1&n&&(y(0,"h2"),E(1),v(),y(2,"p"),E(3),Li(4,"date"),y(5,"button",0),P("click",function(){return r.deleteChecklist()}),E(6,"Delete checklist"),v(),ue(7,"br"),E(8),v(),y(9,"h3"),E(10,"Items:"),v(),y(11,"ol"),On(12,Uk,4,1,"li",1),v(),y(13,"h2"),E(14,"add item:"),v(),y(15,"div",2)(16,"div")(17,"label",3),E(18,"item:"),v(),y(19,"input",4),P("ngModelChange",function(i){return r.newItem=i})("keydown.enter",function(){return r.addItem()}),v(),y(20,"button",5),P("click",function(){return r.addItem()}),E(21,"Add"),v()()(),y(22,"h2"),E(23,"change checklist name:"),v(),y(24,"div",2)(25,"div")(26,"label",6),E(27,"newName:"),v(),y(28,"input",7),P("ngModelChange",function(i){return r.checklist.name=i})("keydown.enter",function(){return r.saveCheckList()}),v(),y(29,"button",5),P("click",function(){return r.saveCheckList()}),E(30,"Save"),v()()()),2&n&&(S(1),Ke("Editing checklist: ",r.checklist.name,""),S(2),Ke("Created on: ",Vi(4,6,r.checklist.dateCreated,"dd-MM-yyyy HH:mm:ss")," "),S(5),Ke("Id: ",r.checklist.id,"\n"),S(4),j("ngForOf",r.checklist.checks),S(7),j("ngModel",r.newItem),S(9),j("ngModel",r.checklist.name))},dependencies:[Er,qt,Ln,pn,zi],styles:[".delete[_ngcontent-%COMP%]{background-color:#ff000080}"]}),e})(),canActivate:[Or]}];let Gk=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Vt({type:e}),e.\u0275inj=Nt({imports:[Hw.forRoot(zk),Hw]}),e})(),Wk=(()=>{class e{constructor(n){this.auth=n}intercept(n,r){if(this.auth.isAuthenticated()){const o=this.auth.getAuthorizationToken(),i=n.clone({headers:n.headers.set("Authorization",o)});return r.handle(i)}return r.handle(n)}}return e.\u0275fac=function(n){return new(n||e)(N(et))},e.\u0275prov=O({token:e,factory:e.\u0275fac}),e})(),qk=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Vt({type:e,bootstrap:[Nk]}),e.\u0275inj=Nt({providers:[{provide:D0,useClass:Wk,multi:!0},{provide:Xn,useClass:yD}],imports:[cO,DP,zP,Gk]}),e})();lO().bootstrapModule(qk).catch(e=>console.error(e))}},le=>{le(le.s=830)}]); \ No newline at end of file